content
stringlengths
40
137k
"private void saveTag(TermModel term, boolean isNewTerm) {\n if (isNewTerm && tagExists(term.getName())) {\n ToastUtils.showToast(this, R.string.error_tag_exists);\n return;\n }\n showProgressDialog(R.string.dlg_saving_tag);\n Action action = TaxonomyActionBuilder.newPushTermAction(new TaxonomyStore.RemoteTermPayload(term, mSite));\n mDispatcher.dispatch(action);\n}\n"
"protected static String convertSystemPath(String path) {\n if (path == null)\n return path;\n Pattern p = Pattern.compile(\"String_Node_Str\", Pattern.CASE_INSENSITIVE);\n Matcher m = p.matcher(path);\n if (m.find()) {\n String sysPath = DataUtil.trimSepEnd(System.getProperty(m.group(1).trim()));\n if (sysPath.length() <= 0)\n return DataUtil.trimSepFirst(m.group(2).trim());\n else\n return sysPath + m.group(2).trim();\n }\n return path;\n}\n"
"void updateDisplayInfo(final DisplayContent displayContent) {\n if (displayContent == null) {\n return;\n }\n if (mFullscreen) {\n setBounds(null, Configuration.EMPTY);\n return;\n }\n final int newRotation = displayContent.getDisplayInfo().rotation;\n if (mRotation == newRotation) {\n return;\n }\n mTmpRect2.set(mPreScrollBounds);\n displayContent.rotateBounds(mRotation, newRotation, mTmpRect2);\n if (setBounds(mTmpRect2, mOverrideConfig) != BOUNDS_CHANGE_NONE) {\n mService.mH.obtainMessage(RESIZE_TASK, mTaskId, RESIZE_MODE_SYSTEM_SCREEN_ROTATION, mPreScrollBounds).sendToTarget();\n }\n}\n"
"public void engineUpdate() {\n super.engineUpdate();\n if (isRedstonePowered)\n if (worldObj.getTotalWorldTime() % 16 == 0)\n addEnergy(1);\n}\n"
"public int compare(File file1, File file2) {\n long lastModifiedTimeDifference = file2.lastModified() - file1.lastModified();\n if (lastModifiedTimeDifference != 0) {\n return Long.signum(lastModifiedTimeDifference);\n }\n return file1.toPath().normalize().compareTo(file2.toPath().normalize());\n}\n"
"protected void doStart() {\n server = new ServerBootstrap(new NioServerSocketChannelFactory(Executors.newCachedThreadPool(), Executors.newCachedThreadPool()));\n server.setPipelineFactory(new Lineage2PipelineFactory(injector, this));\n channel = (ServerChannel) server.bind(config.getListenAddress());\n}\n"
"public boolean execute() {\n try {\n DQStructureManager manager = DQStructureManager.getInstance();\n IFolder createNewFoler = manager.createNewReadOnlyFolder(ResourceManager.getLibrariesFolder(), DQStructureManager.DQ_RULES);\n TdqPropertieManager.getInstance().addFolderProperties(createNewFoler, DQStructureManager.FOLDER_CLASSIFY_KEY, DQStructureManager.DQRULES_FOLDER_PROPERTY);\n manager.copyFilesToFolder(CorePlugin.getDefault(), DQStructureManager.DQ_RULES_PATH, true, createNewFoler, null);\n } catch (Exception e) {\n ExceptionHandler.process(e);\n return false;\n }\n return true;\n}\n"
"public static void setColors(ActionBar actionBar, Object value, Activity activity) {\n int color = (int) value;\n actionBar.setBackgroundDrawable(new ColorDrawable(color));\n if (Build.VERSION.SDK_INT >= 21) {\n ActivityManager.TaskDescription tDesc = new ActivityManager.TaskDescription(activity.getString(R.string.app_name), drawableToBitmap(activity.getDrawable(R.mipmap.ic_launcher)), color);\n activity.setTaskDescription(tDesc);\n if (getPreferences().getBoolean(\"String_Node_Str\", false)) {\n activity.getWindow().setNavigationBarColor(darkenColor(color, 0.85f));\n } else {\n int black = activity.getResources().getColor(android.R.color.black);\n activity.getWindow().setNavigationBarColor(black);\n }\n }\n}\n"
"protected Class getCommonSupertypeForUnwrappingHint(Class c1, Class c2) {\n if (c1 == c2)\n return c1;\n if (bugfixed) {\n final boolean c1WasPrim;\n if (c1.isPrimitive()) {\n c1 = ClassUtil.primitiveClassToBoxingClass(c1);\n c1WasPrim = true;\n } else {\n c1WasPrim = false;\n }\n final boolean c2WasPrim;\n if (c2.isPrimitive()) {\n c2 = OverloadedMethodsSubset.primitiveClassToBoxingClass(c2);\n c2WasPrim = true;\n } else {\n c2WasPrim = false;\n }\n if (c1 == c2) {\n return c1;\n } else if (Number.class.isAssignableFrom(c1) && Number.class.isAssignableFrom(c2)) {\n return Number.class;\n } else if (c1WasPrim || c2WasPrim) {\n return Object.class;\n }\n } else {\n if (c2.isPrimitive()) {\n if (c2 == Byte.TYPE)\n c2 = Byte.class;\n else if (c2 == Short.TYPE)\n c2 = Short.class;\n else if (c2 == Character.TYPE)\n c2 = Character.class;\n else if (c2 == Integer.TYPE)\n c2 = Integer.class;\n else if (c2 == Float.TYPE)\n c2 = Float.class;\n else if (c2 == Long.TYPE)\n c2 = Long.class;\n else if (c2 == Double.TYPE)\n c2 = Double.class;\n }\n }\n Set commonTypes = MethodUtilities.getAssignables(c1, c2);\n commonTypes.retainAll(MethodUtilities.getAssignables(c2, c1));\n if (commonTypes.isEmpty()) {\n return Object.class;\n }\n List max = new ArrayList();\n listCommonTypes: for (Iterator commonTypesIter = commonTypes.iterator(); commonTypesIter.hasNext(); ) {\n Class clazz = (Class) commonTypesIter.next();\n for (Iterator maxIter = max.iterator(); maxIter.hasNext(); ) {\n Class maxClazz = (Class) maxIter.next();\n if (MethodUtilities.isMoreSpecificOrTheSame(maxClazz, clazz, bugfixed)) {\n continue listCommonTypes;\n }\n if (MethodUtilities.isMoreSpecificOrTheSame(clazz, maxClazz, bugfixed)) {\n maxIter.remove();\n }\n }\n max.add(clazz);\n }\n if (max.size() > 1) {\n if (bugfixed) {\n for (Iterator it = max.iterator(); it.hasNext(); ) {\n Class maxCl = (Class) it.next();\n if (!maxCl.isInterface()) {\n if (maxCl != Object.class) {\n return maxCl;\n } else {\n it.remove();\n }\n }\n }\n max.remove(Cloneable.class);\n if (max.size() > 1) {\n max.remove(Serializable.class);\n if (max.size() > 1) {\n max.remove(Comparable.class);\n if (max.size() > 1) {\n return Object.class;\n }\n }\n }\n } else {\n return Object.class;\n }\n }\n return (Class) max.get(0);\n}\n"
"public String getUserId() {\n return this.userId;\n}\n"
"public float getMinVal() {\n return mDimension == X ? mMinX : mMinY;\n}\n"
"public void onClick(View v) {\n if (v.getTag() != null) {\n PackageManager manager = getActivity().getPackageManager();\n String uri = v.getTag().toString();\n Intent i = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));\n List<ResolveInfo> handlers = manager.queryIntentActivities(i, 0);\n if (!handlers.isEmpty()) {\n startActivity(i);\n } else {\n PackageManager manager = getActivity().getPackageManager();\n String uri = v.getTag().toString();\n Intent i = new Intent(android.content.Intent.ACTION_VIEW, Uri.parse(uri));\n List<ResolveInfo> handlers = manager.queryIntentActivities(i, 0);\n if (!handlers.isEmpty()) {\n startActivity(i);\n } else {\n Toast.makeText(getActivity(), \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n}\n"
"public void truncate(int upto_index) {\n if ((upto_index < firstApplied) || (upto_index > lastApplied)) {\n return;\n }\n WriteBatch batch = null;\n try {\n batch = db.createWriteBatch();\n for (int index = firstApplied; index < upto_index; index++) {\n batch.delete(fromIntToByteArray(index));\n }\n LogEntry last = getLogEntry(upto_index);\n firstApplied = upto_index;\n batch.put(FIRSTAPPLIED, fromIntToByteArray(upto_index));\n db.write(batch);\n } finally {\n Util.close(batch);\n }\n}\n"
"void migrateBlock(final Block blockInfo) {\n List<Record> lsRecordsToMigrate = prepareMigratingRecords(blockInfo);\n if (lsRecordsToMigrate == null)\n return;\n }\n if (concurrentMapManager.isSuperClient()) {\n return;\n }\n if (blockReal.isMigrationStarted())\n return;\n blockReal.setMigrationStarted(true);\n blockReal.setOwner(blockInfo.getOwner());\n blockReal.setMigrationAddress(blockInfo.getMigrationAddress());\n logger.log(Level.FINEST, \"String_Node_Str\" + blockInfo);\n List<Record> lsRecordsToMigrate = new ArrayList<Record>(1000);\n Collection<CMap> cmaps = concurrentMapManager.maps.values();\n for (final CMap cmap : cmaps) {\n for (Record rec : cmap.mapRecords.values()) {\n if (rec.isActive() && concurrentMapManager.isOwned(rec)) {\n if (rec.getKeyData() == null || rec.getKeyData().size() == 0) {\n throw new RuntimeException(\"String_Node_Str\" + rec.getKeyData());\n }\n if (rec.getBlockId() == blockInfo.getBlockId()) {\n cmap.onMigrate(rec);\n Record recordCopy = rec.copy();\n lsRecordsToMigrate.add(recordCopy);\n cmap.markAsEvicted(rec);\n }\n }\n }\n }\n logger.log(Level.FINEST, \"String_Node_Str\" + lsRecordsToMigrate.size() + \"String_Node_Str\" + blockInfo);\n final CountDownLatch latch = new CountDownLatch(lsRecordsToMigrate.size());\n for (final Record rec : lsRecordsToMigrate) {\n final CMap cmap = concurrentMapManager.getMap(rec.getName());\n parallelExecutorMigration.execute(new FallThroughRunnable() {\n public void doRun() {\n try {\n concurrentMapManager.migrateRecord(cmap, rec);\n } finally {\n latch.countDown();\n }\n }\n });\n }\n parallelExecutorMigration.execute(new FallThroughRunnable() {\n public void doRun() {\n try {\n logger.log(Level.FINEST, \"String_Node_Str\" + blockInfo + \"String_Node_Str\");\n latch.await(10, TimeUnit.SECONDS);\n if (MIGRATION_COMPLETE_WAIT_SECONDS > 0) {\n Thread.sleep(MIGRATION_COMPLETE_WAIT_SECONDS * 1000);\n }\n } catch (InterruptedException ignored) {\n } finally {\n concurrentMapManager.enqueueAndReturn(new Processable() {\n public void process() {\n blockInfo.setOwner(blockInfo.getMigrationAddress());\n blockInfo.setMigrationAddress(null);\n completeMigration(blockInfo.getBlockId());\n sendCompletionInfo(blockInfo);\n }\n });\n }\n }\n });\n}\n"
"protected void playManaAbilities(ManaCost unpaid, Game game) {\n updateGameStatePriority(\"String_Node_Str\", game);\n MageObject object = game.getObject(response.getUUID());\n if (object == null) {\n return;\n }\n Zone zone = game.getState().getZone(object.getId());\n if (zone != null) {\n LinkedHashMap<UUID, ActivatedManaAbilityImpl> useableAbilities = getUseableManaAbilities(object, zone, game);\n if (useableAbilities != null && useableAbilities.size() > 0) {\n useableAbilities = ManaUtil.tryToAutoPay(unpaid, useableAbilities);\n currentlyUnpaidMana = unpaid;\n activateAbility(useableAbilities, object, game);\n currentlyUnpaidMana = null;\n }\n }\n}\n"
"void add(Node n, Context context) {\n if (!cc.continueProcessing()) {\n return;\n }\n int type = n.getType();\n String opstr = NodeUtil.opToStr(type);\n int childCount = n.getChildCount();\n Node first = n.getFirstChild();\n Node last = n.getLastChild();\n if (opstr != null && first != last) {\n Preconditions.checkState(childCount == 2, \"String_Node_Str\", opstr, childCount);\n int p = NodeUtil.precedence(type);\n Context rhsContext = getContextForNoInOperator(context);\n if (last.getType() == type && NodeUtil.isAssociative(type)) {\n addExpr(first, p, context);\n cc.addOp(opstr, true);\n addExpr(last, p, rhsContext);\n } else if (NodeUtil.isAssignmentOp(n) && NodeUtil.isAssignmentOp(last)) {\n addExpr(first, p, context);\n cc.addOp(opstr, true);\n addExpr(last, p, rhsContext);\n } else {\n unrollBinaryOperator(n, type, opstr, context, rhsContext, p, p + 1);\n }\n return;\n }\n cc.startSourceMapping(n);\n switch(type) {\n case Token.TRY:\n {\n Preconditions.checkState(first.getNext().isBlock() && !first.getNext().hasMoreThanOneChild());\n Preconditions.checkState(childCount >= 2 && childCount <= 3);\n add(\"String_Node_Str\");\n add(first, Context.PRESERVE_BLOCK);\n Node catchblock = first.getNext().getFirstChild();\n if (catchblock != null) {\n add(catchblock);\n }\n if (childCount == 3) {\n add(\"String_Node_Str\");\n add(last, Context.PRESERVE_BLOCK);\n }\n break;\n }\n case Token.CATCH:\n Preconditions.checkState(childCount == 2);\n add(\"String_Node_Str\");\n add(first);\n add(\"String_Node_Str\");\n add(last, Context.PRESERVE_BLOCK);\n break;\n case Token.THROW:\n Preconditions.checkState(childCount == 1);\n add(\"String_Node_Str\");\n add(first);\n cc.endStatement(true);\n break;\n case Token.RETURN:\n add(\"String_Node_Str\");\n if (childCount == 1) {\n add(first);\n } else {\n Preconditions.checkState(childCount == 0);\n }\n cc.endStatement();\n break;\n case Token.VAR:\n if (first != null) {\n add(\"String_Node_Str\");\n addList(first, false, getContextForNoInOperator(context));\n }\n break;\n case Token.LABEL_NAME:\n Preconditions.checkState(!n.getString().isEmpty());\n addIdentifier(n.getString());\n break;\n case Token.NAME:\n if (first == null || first.isEmpty()) {\n addIdentifier(n.getString());\n } else {\n Preconditions.checkState(childCount == 1);\n addIdentifier(n.getString());\n cc.addOp(\"String_Node_Str\", true);\n if (first.isComma()) {\n addExpr(first, NodeUtil.precedence(Token.ASSIGN), Context.OTHER);\n } else {\n addExpr(first, 0, getContextForNoInOperator(context));\n }\n }\n break;\n case Token.ARRAYLIT:\n add(\"String_Node_Str\");\n addArrayList(first);\n add(\"String_Node_Str\");\n break;\n case Token.PARAM_LIST:\n add(\"String_Node_Str\");\n addList(first);\n add(\"String_Node_Str\");\n break;\n case Token.COMMA:\n Preconditions.checkState(childCount == 2);\n unrollBinaryOperator(n, Token.COMMA, \"String_Node_Str\", context, getContextForNoInOperator(context), 0, 0);\n break;\n case Token.NUMBER:\n Preconditions.checkState(childCount == 0);\n cc.addNumber(n.getDouble());\n break;\n case Token.TYPEOF:\n case Token.VOID:\n case Token.NOT:\n case Token.BITNOT:\n case Token.POS:\n {\n Preconditions.checkState(childCount == 1);\n cc.addOp(NodeUtil.opToStrNoFail(type), false);\n addExpr(first, NodeUtil.precedence(type), Context.OTHER);\n break;\n }\n case Token.NEG:\n {\n Preconditions.checkState(childCount == 1);\n if (n.getFirstChild().isNumber()) {\n cc.addNumber(-n.getFirstChild().getDouble());\n } else {\n cc.addOp(NodeUtil.opToStrNoFail(type), false);\n addExpr(first, NodeUtil.precedence(type), Context.OTHER);\n }\n break;\n }\n case Token.HOOK:\n {\n Preconditions.checkState(childCount == 3);\n int p = NodeUtil.precedence(type);\n addExpr(first, p + 1, context);\n cc.addOp(\"String_Node_Str\", true);\n addExpr(first.getNext(), 1, Context.OTHER);\n cc.addOp(\"String_Node_Str\", true);\n addExpr(last, 1, Context.OTHER);\n break;\n }\n case Token.REGEXP:\n if (!first.isString() || !last.isString()) {\n throw new Error(\"String_Node_Str\");\n }\n String regexp = regexpEscape(first.getString(), outputCharsetEncoder);\n if (childCount == 2) {\n add(regexp + last.getString());\n } else {\n Preconditions.checkState(childCount == 1);\n add(regexp);\n }\n break;\n case Token.FUNCTION:\n if (n.getClass() != Node.class) {\n throw new Error(\"String_Node_Str\");\n }\n Preconditions.checkState(childCount == 3);\n boolean funcNeedsParens = (context == Context.START_OF_EXPR);\n if (funcNeedsParens) {\n add(\"String_Node_Str\");\n }\n add(\"String_Node_Str\");\n add(first);\n add(first.getNext());\n add(last, Context.PRESERVE_BLOCK);\n cc.endFunction(context == Context.STATEMENT);\n if (funcNeedsParens) {\n add(\"String_Node_Str\");\n }\n break;\n case Token.GETTER_DEF:\n case Token.SETTER_DEF:\n Preconditions.checkState(n.getParent().isObjectLit());\n Preconditions.checkState(childCount == 1);\n Preconditions.checkState(first.isFunction());\n Preconditions.checkState(first.getFirstChild().getString().isEmpty());\n if (type == Token.GETTER_DEF) {\n Preconditions.checkState(!first.getChildAtIndex(1).hasChildren());\n add(\"String_Node_Str\");\n } else {\n Preconditions.checkState(first.getChildAtIndex(1).hasOneChild());\n add(\"String_Node_Str\");\n }\n String name = n.getString();\n Node fn = first;\n Node parameters = fn.getChildAtIndex(1);\n Node body = fn.getLastChild();\n if (!n.isQuotedString() && TokenStream.isJSIdentifier(name) && NodeUtil.isLatin(name)) {\n add(name);\n } else {\n double d = getSimpleNumber(name);\n if (!Double.isNaN(d)) {\n cc.addNumber(d);\n } else {\n addJsString(n);\n }\n }\n add(parameters);\n add(body, Context.PRESERVE_BLOCK);\n break;\n case Token.SCRIPT:\n case Token.BLOCK:\n {\n if (n.getClass() != Node.class) {\n throw new Error(\"String_Node_Str\");\n }\n boolean preserveBlock = context == Context.PRESERVE_BLOCK;\n if (preserveBlock) {\n cc.beginBlock();\n }\n boolean preferLineBreaks = type == Token.SCRIPT || (type == Token.BLOCK && !preserveBlock && n.getParent() != null && n.getParent().isScript());\n for (Node c = first; c != null; c = c.getNext()) {\n add(c, Context.STATEMENT);\n if (c.isVar()) {\n cc.endStatement();\n }\n if (c.isFunction()) {\n cc.maybeLineBreak();\n }\n if (preferLineBreaks) {\n cc.notePreferredLineBreak();\n }\n }\n if (preserveBlock) {\n cc.endBlock(cc.breakAfterBlockFor(n, context == Context.STATEMENT));\n }\n break;\n }\n case Token.FOR:\n if (childCount == 4) {\n add(\"String_Node_Str\");\n if (first.isVar()) {\n add(first, Context.IN_FOR_INIT_CLAUSE);\n } else {\n addExpr(first, 0, Context.IN_FOR_INIT_CLAUSE);\n }\n add(\"String_Node_Str\");\n add(first.getNext());\n add(\"String_Node_Str\");\n add(first.getNext().getNext());\n add(\"String_Node_Str\");\n addNonEmptyStatement(last, getContextForNonEmptyExpression(context), false);\n } else {\n Preconditions.checkState(childCount == 3);\n add(\"String_Node_Str\");\n add(first);\n add(\"String_Node_Str\");\n add(first.getNext());\n add(\"String_Node_Str\");\n addNonEmptyStatement(last, getContextForNonEmptyExpression(context), false);\n }\n break;\n case Token.DO:\n Preconditions.checkState(childCount == 2);\n add(\"String_Node_Str\");\n addNonEmptyStatement(first, Context.OTHER, false);\n add(\"String_Node_Str\");\n add(last);\n add(\"String_Node_Str\");\n cc.endStatement();\n break;\n case Token.WHILE:\n Preconditions.checkState(childCount == 2);\n add(\"String_Node_Str\");\n add(first);\n add(\"String_Node_Str\");\n addNonEmptyStatement(last, getContextForNonEmptyExpression(context), false);\n break;\n case Token.EMPTY:\n Preconditions.checkState(childCount == 0);\n break;\n case Token.GETPROP:\n {\n Preconditions.checkState(childCount == 2, \"String_Node_Str\", childCount);\n Preconditions.checkState(last.isString(), \"String_Node_Str\");\n boolean needsParens = (first.isNumber());\n if (needsParens) {\n add(\"String_Node_Str\");\n }\n addExpr(first, NodeUtil.precedence(type), context);\n if (needsParens) {\n add(\"String_Node_Str\");\n }\n add(\"String_Node_Str\");\n addIdentifier(last.getString());\n break;\n }\n case Token.GETELEM:\n Preconditions.checkState(childCount == 2, \"String_Node_Str\", childCount);\n addExpr(first, NodeUtil.precedence(type), context);\n add(\"String_Node_Str\");\n add(first.getNext());\n add(\"String_Node_Str\");\n break;\n case Token.WITH:\n Preconditions.checkState(childCount == 2);\n add(\"String_Node_Str\");\n add(first);\n add(\"String_Node_Str\");\n addNonEmptyStatement(last, getContextForNonEmptyExpression(context), false);\n break;\n case Token.INC:\n case Token.DEC:\n {\n Preconditions.checkState(childCount == 1);\n String o = type == Token.INC ? \"String_Node_Str\" : \"String_Node_Str\";\n int postProp = n.getIntProp(Node.INCRDECR_PROP);\n if (postProp != 0) {\n addExpr(first, NodeUtil.precedence(type), context);\n cc.addOp(o, false);\n } else {\n cc.addOp(o, false);\n add(first);\n }\n break;\n }\n case Token.CALL:\n if (isIndirectEval(first) || n.getBooleanProp(Node.FREE_CALL) && NodeUtil.isGet(first)) {\n add(\"String_Node_Str\");\n addExpr(first, NodeUtil.precedence(Token.COMMA), Context.OTHER);\n add(\"String_Node_Str\");\n } else {\n addExpr(first, NodeUtil.precedence(type), context);\n }\n add(\"String_Node_Str\");\n addList(first.getNext());\n add(\"String_Node_Str\");\n break;\n case Token.IF:\n boolean hasElse = childCount == 3;\n boolean ambiguousElseClause = context == Context.BEFORE_DANGLING_ELSE && !hasElse;\n if (ambiguousElseClause) {\n cc.beginBlock();\n }\n add(\"String_Node_Str\");\n add(first);\n add(\"String_Node_Str\");\n if (hasElse) {\n addNonEmptyStatement(first.getNext(), Context.BEFORE_DANGLING_ELSE, false);\n add(\"String_Node_Str\");\n addNonEmptyStatement(last, getContextForNonEmptyExpression(context), false);\n } else {\n addNonEmptyStatement(first.getNext(), Context.OTHER, false);\n Preconditions.checkState(childCount == 2);\n }\n if (ambiguousElseClause) {\n cc.endBlock();\n }\n break;\n case Token.NULL:\n Preconditions.checkState(childCount == 0);\n cc.addConstant(\"String_Node_Str\");\n break;\n case Token.THIS:\n Preconditions.checkState(childCount == 0);\n add(\"String_Node_Str\");\n break;\n case Token.FALSE:\n Preconditions.checkState(childCount == 0);\n cc.addConstant(\"String_Node_Str\");\n break;\n case Token.TRUE:\n Preconditions.checkState(childCount == 0);\n cc.addConstant(\"String_Node_Str\");\n break;\n case Token.CONTINUE:\n Preconditions.checkState(childCount <= 1);\n add(\"String_Node_Str\");\n if (childCount == 1) {\n if (!first.isLabelName()) {\n throw new Error(\"String_Node_Str\");\n }\n add(\"String_Node_Str\");\n add(first);\n }\n cc.endStatement();\n break;\n case Token.DEBUGGER:\n Preconditions.checkState(childCount == 0);\n add(\"String_Node_Str\");\n cc.endStatement();\n break;\n case Token.BREAK:\n Preconditions.checkState(childCount <= 1);\n add(\"String_Node_Str\");\n if (childCount == 1) {\n if (!first.isLabelName()) {\n throw new Error(\"String_Node_Str\");\n }\n add(\"String_Node_Str\");\n add(first);\n }\n cc.endStatement();\n break;\n case Token.EXPR_RESULT:\n Preconditions.checkState(childCount == 1);\n add(first, Context.START_OF_EXPR);\n cc.endStatement();\n break;\n case Token.NEW:\n add(\"String_Node_Str\");\n int precedence = NodeUtil.precedence(type);\n if (NodeUtil.containsType(first, Token.CALL, NodeUtil.MATCH_NOT_FUNCTION)) {\n precedence = NodeUtil.precedence(first.getType()) + 1;\n }\n addExpr(first, precedence, Context.OTHER);\n Node next = first.getNext();\n if (next != null) {\n add(\"String_Node_Str\");\n addList(next);\n add(\"String_Node_Str\");\n }\n break;\n case Token.STRING_KEY:\n Preconditions.checkState(childCount == 1, \"String_Node_Str\");\n addJsString(n);\n break;\n case Token.STRING:\n Preconditions.checkState(childCount == 0, \"String_Node_Str\");\n addJsString(n);\n break;\n case Token.DELPROP:\n Preconditions.checkState(childCount == 1);\n add(\"String_Node_Str\");\n add(first);\n break;\n case Token.OBJECTLIT:\n {\n boolean needsParens = (context == Context.START_OF_EXPR);\n if (needsParens) {\n add(\"String_Node_Str\");\n }\n add(\"String_Node_Str\");\n for (Node c = first; c != null; c = c.getNext()) {\n if (c != first) {\n cc.listSeparator();\n }\n if (c.isGetterDef() || c.isSetterDef()) {\n add(c);\n } else {\n Preconditions.checkState(c.isStringKey());\n String key = c.getString();\n if (!c.isQuotedString() && !TokenStream.isKeyword(key) && TokenStream.isJSIdentifier(key) && NodeUtil.isLatin(key)) {\n add(key);\n } else {\n double d = getSimpleNumber(key);\n if (!Double.isNaN(d)) {\n cc.addNumber(d);\n } else {\n addExpr(c, 1, Context.OTHER);\n }\n }\n add(\"String_Node_Str\");\n addExpr(c.getFirstChild(), 1, Context.OTHER);\n }\n }\n add(\"String_Node_Str\");\n if (needsParens) {\n add(\"String_Node_Str\");\n }\n break;\n }\n case Token.SWITCH:\n add(\"String_Node_Str\");\n add(first);\n add(\"String_Node_Str\");\n cc.beginBlock();\n addAllSiblings(first.getNext());\n cc.endBlock(context == Context.STATEMENT);\n break;\n case Token.CASE:\n Preconditions.checkState(childCount == 2);\n add(\"String_Node_Str\");\n add(first);\n addCaseBody(last);\n break;\n case Token.DEFAULT_CASE:\n Preconditions.checkState(childCount == 1);\n add(\"String_Node_Str\");\n addCaseBody(first);\n break;\n case Token.LABEL:\n Preconditions.checkState(childCount == 2);\n if (!first.isLabelName()) {\n throw new Error(\"String_Node_Str\");\n }\n add(first);\n add(\"String_Node_Str\");\n addNonEmptyStatement(last, getContextForNonEmptyExpression(context), true);\n break;\n case Token.CAST:\n add(\"String_Node_Str\");\n add(first);\n add(\"String_Node_Str\");\n break;\n default:\n throw new Error(\"String_Node_Str\" + type + \"String_Node_Str\" + n.toStringTree());\n }\n cc.endSourceMapping(n);\n}\n"
"public final void redrawBlock() {\n if (hasWorldObj()) {\n IBlockState state = worldObj.getBlockState(pos);\n worldObj.notifyBlockUpdate(pos, state, state, 0);\n }\n}\n"
"public int func_150905_g(ItemStack item) {\n int healAmount = 0;\n if (item.getTagCompound() != null)\n if (item.getTagCompound().hasKey(\"String_Node_Str\")) {\n NBTTagList layersList = item.getTagCompound().getTagList(\"String_Node_Str\", 10);\n if (layersList != null) {\n for (int i = 0; i < layersList.tagCount(); ++i) {\n NBTTagCompound layerCompound = layersList.getCompoundTagAt(i);\n healAmount += ModConfig.getSandwichConfig().getHealAmount(ItemStack.loadItemStackFromNBT(layerCompound));\n }\n byte combo = item.getTagCompound().getCompoundTag(\"String_Node_Str\").getByte(\"String_Node_Str\");\n if (SandwichCombo.combos[(int) combo] != null)\n healAmount += SandwichCombo.combos[(int) combo].getExtraHeal();\n }\n }\n return healAmount;\n}\n"
"private Iterator populateParameter(DataSetHandle modelDataSet, BaseDataSetDesign dteDataSet) throws BirtException {\n HashMap paramBindingCandidates = new HashMap();\n Iterator elmtIter = modelDataSet.parametersIterator();\n if (elmtIter != null) {\n while (elmtIter.hasNext()) {\n DataSetParameterHandle modelParam = (DataSetParameterHandle) elmtIter.next();\n if (modelParam.isInput()) {\n String defaultValueExpr = null;\n if (modelParam instanceof OdaDataSetParameterHandle) {\n String linkedReportParam = ((OdaDataSetParameterHandle) modelParam).getParamName();\n if (linkedReportParam != null) {\n ParameterHandle ph = modelDataSet.getModuleHandle().findParameter(linkedReportParam);\n if (ph instanceof ScalarParameterHandle) {\n if (((ScalarParameterHandle) ph).getParamType().equals(DesignChoiceConstants.SCALAR_PARAM_TYPE_MULTI_VALUE)) {\n throw new DataException(ResourceConstants.Linked_REPORT_PARAM_ALLOW_MULTI_VALUES, new String[] { linkedReportParam, modelParam.getName() });\n }\n }\n defaultValueExpr = ExpressionUtil.createJSParameterExpression(((OdaDataSetParameterHandle) modelParam).getParamName());\n } else {\n defaultValueExpr = getExpressionDefaultValue(modelParam);\n }\n } else {\n if (ExpressionType.CONSTANT.equals(modelParam.getExpressionProperty(DataSetParameter.DEFAULT_VALUE_MEMBER).getType())) {\n defaultValueExpr = \"String_Node_Str\" + JavascriptEvalUtil.transformToJsConstants(modelParam.getDefaultValue()) + \"String_Node_Str\";\n } else {\n defaultValueExpr = modelParam.getDefaultValue();\n }\n }\n dteDataSet.addParameter(newParam(modelParam));\n paramBindingCandidates.put(modelParam.getName(), new ScriptExpression(defaultValueExpr, DataAdapterUtil.modelDataTypeToCoreDataType(modelParam.getDataType())));\n } else {\n dteDataSet.addParameter(newParam(modelParam));\n }\n }\n }\n elmtIter = modelDataSet.paramBindingsIterator();\n if (elmtIter != null) {\n while (elmtIter.hasNext()) {\n ParamBindingHandle modelParamBinding = (ParamBindingHandle) elmtIter.next();\n paramBindingCandidates.put(modelParamBinding.getParamName(), new ScriptExpression(modelParamBinding.getExpression()));\n }\n }\n if (paramBindingCandidates.size() > 0) {\n elmtIter = paramBindingCandidates.keySet().iterator();\n while (elmtIter.hasNext()) {\n Object paramName = elmtIter.next();\n assert (paramName != null && paramName instanceof String);\n ScriptExpression expression = (ScriptExpression) paramBindingCandidates.get(paramName);\n dteDataSet.addInputParamBinding(newInputParamBinding((String) paramName, expression));\n }\n }\n return elmtIter;\n}\n"
"public void doDropValidation(DropTargetEvent event, CommonViewer commonViewer) {\n event.detail = DND.DROP_NONE;\n IRepositoryNode firstElement = (RepositoryNode) ((StructuredSelection) LocalSelectionTransfer.getTransfer().getSelection()).getFirstElement();\n IRepositoryViewObject repViewObj = firstElement.getObject();\n if (repViewObj instanceof MetadataColumnRepositoryObject) {\n DBColumnRepNode column = (DBColumnRepNode) firstElement;\n Table table = (Table) ((DropTarget) event.widget).getControl();\n AbstractColumnDropTree viewer = (AbstractColumnDropTree) table.getData();\n if (viewer != null && viewer.canDrop(firstElement)) {\n event.detail = DND.DROP_MOVE;\n }\n }\n}\n"
"public String getInternalName(Name name) {\n return \"String_Node_Str\" + name.qualified;\n}\n"
"private void cleanupPendingJobs(List<SyncQueueItemVO> l) {\n if (l != null && l.size() > 0) {\n for (SyncQueueItemVO item : l) {\n if (s_logger.isInfoEnabled()) {\n s_logger.info(\"String_Node_Str\" + item.toString());\n }\n String contentType = item.getContentType();\n if (contentType != null && contentType.equals(\"String_Node_Str\")) {\n Long jobId = item.getContentId();\n if (jobId != null) {\n s_logger.warn(\"String_Node_Str\" + jobId);\n completeAsyncJob(jobId, AsyncJobResult.STATUS_FAILED, 0, getResetResultResponse(\"String_Node_Str\"));\n }\n }\n _queueMgr.purgeItem(item.getId());\n }\n }\n}\n"
"public static EthernetAddress getHWAddress() {\n if (noEthernetInterfaces) {\n return null;\n }\n if (hwAddress != null) {\n return hwAddress;\n }\n try {\n hwAddress = NativeInterfaces.getPrimaryInterface();\n } catch (Throwable t) {\n System.err.println(\"String_Node_Str\" + t.getMessage());\n noEthernetInterfaces = true;\n return null;\n }\n if (hwAddress == null) {\n System.err.println(\"String_Node_Str\");\n EthernetAddress[] addressArray = NativeInterfaces.getAllInterfaces();\n for (int i = 0; i < addressArray.length; i++) {\n if (addressArray[i] != null) {\n hwAddress = addressArray[i];\n }\n }\n if (hwAddress == null) {\n System.err.println(\"String_Node_Str\");\n }\n }\n if (hwAddress == null) {\n noEthernetInterfaces = true;\n }\n return hwAddress;\n}\n"
"public void accept(ClassVisitor cv, Attribute[] attrs, int flags) {\n cv = new ClassRemapper(cv, new Remapper() {\n\n public String map(String typeName) {\n return prefix(typeName);\n }\n });\n super.accept(cv, attrs, flags);\n}\n"
"public void walk(String mainFilePath, String originalMainFilePath, boolean preprocessed) throws UserException {\n GlobalContext context = new GlobalContext(mainFilePath, Logging.getSTCLogger(), foreignFuncs);\n String mainModuleName = FilenameUtils.getBaseName(originalMainFilePath);\n LocatedModule mainModule = new LocatedModule(mainFilePath, mainModuleName, preprocessed);\n LocatedModule builtins = LocatedModule.fromPath(context, Arrays.asList(\"String_Node_Str\"), false);\n loadDefinitions(context, mainModule, builtins);\n compileTopLevel(context, mainModule, builtins);\n compileFunctions(context);\n}\n"
"private static IPath buildTempCSVFilename(IPath inPath) {\n String filename = inPath.lastSegment();\n if (inPath.getFileExtension() != null) {\n filename = filename.substring(0, filename.length() - inPath.getFileExtension().length());\n } else {\n int length = filename.length();\n filename = filename.substring(0, length - 1) + \"String_Node_Str\";\n }\n filename += CSV_EXT;\n IPath tempPath;\n tempPath = getTmpFolderPath();\n tempPath = tempPath.append(filename);\n return tempPath;\n}\n"
"public List<MatchMetaData> discover(IDBFactory factory, Properties dataDiscoveryProperties, Set<String> tables) throws AnonymizerException {\n log.info(\"String_Node_Str\");\n double probabilityThreshold = parseDouble(dataDiscoveryProperties.getProperty(\"String_Node_Str\"));\n log.info(\"String_Node_Str\" + probabilityThreshold);\n List<MatchMetaData> finalList = new ArrayList<>();\n for (String model : modelList) {\n log.info(\"String_Node_Str\" + model);\n Model modelPerson = createModel(dataDiscoveryProperties, model);\n matches = discoverAgainstSingleModel(factory, dataDiscoveryProperties, tables, modelPerson, probabilityThreshold);\n finalList = ListUtils.union(finalList, matches);\n }\n DecimalFormat decimalFormat = new DecimalFormat(\"String_Node_Str\");\n for (MatchMetaData data : finalList) {\n String probability = decimalFormat.format(data.getAverageProbability());\n String result = String.format(\"String_Node_Str\", data.getTableName(), data.getColumnName(), probability, data.getModel());\n log.info(result);\n }\n return matches;\n}\n"
"public void _commandAction(Command c, Displayable d) {\n if (c.equals(List.SELECT_COMMAND)) {\n controller.chooseSessionItem(view.getSelectedIndex());\n controller.next();\n } else if (c.equals(BACK)) {\n transitions.exitMenuTransition();\n }\n}\n"
"public SplitResult split(int height, boolean force) throws BirtException {\n SplitResult result = super.split(height, force);\n if (result.getResult() != null) {\n TableArea tableResult = (TableArea) result.getResult();\n int h = tableResult.layout.resolveAll(tableResult.getLastRow());\n if (h > 0) {\n tableResult.setHeight(tableResult.getHeight() + h);\n }\n tableResult.resolveBottomBorder();\n relayoutChildren();\n }\n return result;\n}\n"
"private String[] split(String s, String delim) {\n StringTokenizer tok = new StringTokenizer(s, delim, false);\n List list = new ArrayList();\n while (tok.hasMoreTokens()) {\n list.add(tok.nextToken());\n }\n String[] tmp = new String[list.size()];\n tmp = (String[]) list.toArray(tmp);\n return tmp;\n}\n"
"private void updateGlobalHierarchy() {\n updateMinAndMax();\n if (model == null || model.getInputConfig() == null) {\n return;\n }\n final DataDefinition definition = model.getInputConfig().getInput().getDefinition();\n final Hierarchy h = Hierarchy.create(hierarchy);\n if (definition.getAttributeType(attribute) instanceof Hierarchy) {\n model.getInputConfig().getInput().getDefinition().setAttributeType(attribute, h);\n updateMin();\n updateMax();\n controller.update(new ModelEvent(this, ModelPart.ATTRIBUTE_TYPE, attribute));\n }\n if (definition.getAttributeType(attribute) == AttributeType.SENSITIVE_ATTRIBUTE) {\n model.getInputConfig().setHierarchy(attribute, h);\n controller.update(new ModelEvent(this, ModelPart.ATTRIBUTE_TYPE, attribute));\n }\n}\n"
"public void getSubRecordsBetween(MultiResultSet results, Comparable from, Comparable to) {\n takeReadLock();\n try {\n Comparable paramFrom = from;\n Comparable paramTo = to;\n int trend = paramFrom.compareTo(paramTo);\n if (trend == 0) {\n ConcurrentMap<Data, QueryableEntry> records = recordMap.get(paramFrom);\n if (records != null) {\n results.addResultSet(records);\n }\n return;\n }\n if (trend < 0) {\n Comparable oldFrom = paramFrom;\n paramFrom = to;\n paramTo = oldFrom;\n }\n Set<Comparable> values = mapRecords.keySet();\n for (Comparable value : values) {\n if (value.compareTo(paramFrom) <= 0 && value.compareTo(paramTo) >= 0) {\n ConcurrentMap<Data, QueryableEntry> records = mapRecords.get(value);\n if (records != null) {\n results.addResultSet(records);\n }\n }\n }\n } finally {\n releaseReadLock();\n }\n}\n"
"public void getFile(final String srcRemotePath, final String dstLocalPath) throws GenieException {\n log.debug(\"String_Node_Str\", srcRemotePath, dstLocalPath);\n File cachedFile;\n try {\n cachedFile = fileCache.get(srcRemotePath);\n final long lastModifiedTime = getFileTransfer(srcRemotePath).getLastModifiedTime(srcRemotePath);\n if (lastModifiedTime > cachedFile.lastModified()) {\n synchronized (this) {\n if (lastModifiedTime > cachedFile.lastModified()) {\n fileCache.invalidate(srcRemotePath);\n deleteFile(cachedFile);\n cachedFile = fileCache.get(srcRemotePath);\n }\n }\n }\n } catch (Exception e) {\n final String message = String.format(\"String_Node_Str\", srcRemotePath);\n log.error(message);\n throw new GenieServerException(message, e);\n }\n localFileTransfer.getFile(cachedFile.getPath(), dstLocalPath);\n}\n"
"private static String setupPathingJarClassPath(final File dir, final Class context) throws IOException {\n final String classpath = getClasspath(context);\n final File jarDir = new File(dir.getParentFile().getAbsolutePath() + File.separator + \"String_Node_Str\");\n if (!jarDir.exists()) {\n try {\n jarDir.mkdirs();\n } catch (final Exception e) {\n LOGGER.error(\"String_Node_Str\" + e);\n return null;\n }\n }\n final File jarFile = new File(jarDir, \"String_Node_Str\");\n if (jarFile.exists()) {\n try {\n jarFile.delete();\n } catch (final Exception e) {\n LOGGER.error(\"String_Node_Str\" + e);\n return null;\n }\n }\n final Manifest manifest = new Manifest();\n manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, \"String_Node_Str\");\n manifest.getMainAttributes().put(Attributes.Name.CLASS_PATH, classpath);\n try (final JarOutputStream target = new JarOutputStream(new FileOutputStream(jarFile), manifest)) {\n target.close();\n }\n return jarFile.getAbsolutePath();\n}\n"
"private void computeFinalTerrainClusterCenters(final double[][] fdd, final java.util.List<ClusterInfo> pvCenterList, final java.util.List<ClusterInfo> pdCenterList, final java.util.List<ClusterInfo> psCenterList, final PolBandUtils.PolSourceBand srcBandList, final Rectangle[] tileRectangles, final PolarimetricClassificationOp op) {\n boolean endIteration = false;\n final StatusProgressMonitor status = new StatusProgressMonitor(StatusProgressMonitor.TYPE.SUBTASK);\n status.beginTask(\"String_Node_Str\", tileRectangles.length * maxIterations);\n final int pvNumClusters = pvCenterList.size();\n final int pdNumClusters = pdCenterList.size();\n final int psNumClusters = psCenterList.size();\n final int maxNumClusters = Math.max(pvNumClusters, Math.max(pdNumClusters, psNumClusters));\n final int[][] clusterCounter = new int[3][maxNumClusters];\n final ThreadManager threadManager = new ThreadManager();\n try {\n for (int it = 0; (it < maxIterations && !endIteration); ++it) {\n final double[][][] pvSumRe = new double[pvNumClusters][3][3];\n final double[][][] pvSumIm = new double[pvNumClusters][3][3];\n final double[][][] pdSumRe = new double[pdNumClusters][3][3];\n final double[][][] pdSumIm = new double[pdNumClusters][3][3];\n final double[][][] psSumRe = new double[psNumClusters][3][3];\n final double[][][] psSumIm = new double[psNumClusters][3][3];\n java.util.Arrays.fill(clusterCounter[0], 0);\n java.util.Arrays.fill(clusterCounter[1], 0);\n java.util.Arrays.fill(clusterCounter[2], 0);\n for (final Rectangle rectangle : tileRectangles) {\n final Thread worker = new Thread() {\n final Tile[] sourceTiles = new Tile[srcBandList.srcBands.length];\n final ProductData[] dataBuffers = new ProductData[srcBandList.srcBands.length];\n final double[][] Tr = new double[3][3];\n final double[][] Ti = new double[3][3];\n public void run() {\n op.checkIfCancelled();\n final int x0 = rectangle.x;\n final int y0 = rectangle.y;\n final int w = rectangle.width;\n final int h = rectangle.height;\n final int xMax = x0 + w;\n final int yMax = y0 + h;\n final Rectangle sourceRectangle = getSourceRectangle(x0, y0, w, h);\n for (int i = 0; i < sourceTiles.length; ++i) {\n sourceTiles[i] = op.getSourceTile(srcBandList.srcBands[i], sourceRectangle);\n dataBuffers[i] = sourceTiles[i].getDataBuffer();\n }\n final TileIndex srcIndex = new TileIndex(sourceTiles[0]);\n for (int y = y0; y < yMax; ++y) {\n for (int x = x0; x < xMax; ++x) {\n PolOpUtils.getMeanCoherencyMatrix(x, y, halfWindowSizeX, halfWindowSizeY, srcWidth, srcHeight, sourceProductType, srcIndex, dataBuffers, Tr, Ti);\n int clusterIdx;\n synchronized (clusterCounter) {\n if (mask[y][x] < -64) {\n clusterIdx = findClosestCluster(Tr, Ti, pvCenterList);\n computeSummationOfT3(clusterIdx + 1, Tr, Ti, pvSumRe, pvSumIm);\n clusterCounter[0][clusterIdx] += 1;\n mask[y][x] = (byte) (-128 + clusterIdx);\n } else if (mask[y][x] < 0) {\n clusterIdx = findClosestCluster(Tr, Ti, pdCenterList);\n computeSummationOfT3(clusterIdx + 1, Tr, Ti, pdSumRe, pdSumIm);\n clusterCounter[1][clusterIdx] += 1;\n mask[y][x] = (byte) (-64 + clusterIdx);\n } else if (mask[y][x] < 64) {\n clusterIdx = findClosestCluster(Tr, Ti, psCenterList);\n computeSummationOfT3(clusterIdx + 1, Tr, Ti, psSumRe, psSumIm);\n clusterCounter[2][clusterIdx] += 1;\n mask[y][x] = (byte) clusterIdx;\n } else {\n java.util.List<ClusterInfo> allCenterList = new ArrayList<>();\n allCenterList.addAll(pvCenterList);\n allCenterList.addAll(pdCenterList);\n allCenterList.addAll(psCenterList);\n clusterIdx = findClosestCluster(Tr, Ti, allCenterList);\n if (clusterIdx >= pvNumClusters + pdNumClusters) {\n clusterIdx -= pvNumClusters + pdNumClusters;\n computeSummationOfT3(clusterIdx + 1, Tr, Ti, psSumRe, psSumIm);\n clusterCounter[2][clusterIdx] += 1;\n mask[y][x] = (byte) clusterIdx;\n } else if (clusterIdx >= pvNumClusters) {\n clusterIdx -= pvNumClusters;\n computeSummationOfT3(clusterIdx + 1, Tr, Ti, pdSumRe, pdSumIm);\n clusterCounter[1][clusterIdx] += 1;\n mask[y][x] = (byte) (-64 + clusterIdx);\n } else {\n computeSummationOfT3(clusterIdx + 1, Tr, Ti, pvSumRe, pvSumIm);\n clusterCounter[0][clusterIdx] += 1;\n mask[y][x] = (byte) (-128 + clusterIdx);\n }\n }\n }\n }\n }\n }\n };\n threadManager.add(worker);\n status.worked(1);\n }\n threadManager.finish();\n updateClusterCenter(pvCenterList, clusterCounter[0], pvSumRe, pvSumIm);\n updateClusterCenter(pdCenterList, clusterCounter[1], pdSumRe, pdSumIm);\n updateClusterCenter(psCenterList, clusterCounter[2], psSumRe, psSumIm);\n }\n final double[] pvAvgClusterPower = new double[pvNumClusters];\n final double[] pdAvgClusterPower = new double[pdNumClusters];\n final double[] psAvgClusterPower = new double[psNumClusters];\n int clusterIdx = -1;\n for (int y = 0; y < srcHeight; y++) {\n for (int x = 0; x < srcWidth; x++) {\n if (category[y][x] == Categories.vol) {\n pvAvgClusterPower[cluster[y][x]] += fdd[y][x];\n } else if (category[y][x] == Categories.dbl) {\n pdAvgClusterPower[cluster[y][x]] += fdd[y][x];\n } else {\n clusterIdx = mask[y][x];\n psAvgClusterPower[clusterIdx] += fdd[y][x];\n }\n }\n }\n for (int c = 0; c < pvNumClusters; c++) {\n pvAvgClusterPower[c] /= clusterCounter[0][c];\n }\n for (int c = 0; c < pdNumClusters; c++) {\n pdAvgClusterPower[c] /= clusterCounter[1][c];\n }\n for (int c = 0; c < psNumClusters; c++) {\n psAvgClusterPower[c] /= clusterCounter[2][c];\n }\n pvColourIndexMap = new int[pvNumClusters];\n pdColourIndexMap = new int[pdNumClusters];\n psColourIndexMap = new int[psNumClusters];\n for (int c = 0; c < pvNumClusters; c++) {\n pvColourIndexMap[c] = numInitialClusters + getColourIndex(c, pvAvgClusterPower, numInitialClusters) + 1;\n }\n for (int c = 0; c < pdNumClusters; c++) {\n pdColourIndexMap[c] = 2 * numInitialClusters + getColourIndex(c, pdAvgClusterPower, numInitialClusters) + 1;\n }\n for (int c = 0; c < psNumClusters; c++) {\n psColourIndexMap[c] = getColourIndex(c, psAvgClusterPower, numInitialClusters) + 1;\n }\n } catch (Throwable e) {\n OperatorUtils.catchOperatorException(op.getId() + \"String_Node_Str\", e);\n } finally {\n status.done();\n }\n}\n"
"protected void _loadAttributes(NamedObj model, File attributesPath, boolean force) throws IllegalActionException {\n for (Object attrObject : model.attributeList(Variable.class)) {\n Attribute attr = (Attribute) attrObject;\n for (Object paramObject : attr.attributeList(NaomiParameter.class)) {\n NaomiParameter naomiParam = (NaomiParameter) paramObject;\n String attributeName = naomiParam.getAttributeName();\n if (!_inputAttributes.contains(attributeName)) {\n continue;\n }\n Tuple<String, Date, String, String> tuple = _loadAttribute(attributesPath, attributeName);\n String value = tuple.getV1();\n Date date = tuple.getV2();\n String unit = tuple.getV3();\n String doc = tuple.getV4();\n if (!force) {\n Date attributeDate = naomiParam.getModifiedDate();\n if (!attributeDate.before(date)) {\n continue;\n }\n }\n System.out.println(\"String_Node_Str\" + attributeName + \"String_Node_Str\" + value);\n String moml = \"String_Node_Str\" + attr.getName() + \"String_Node_Str\" + \"String_Node_Str\" + value + \"String_Node_Str\";\n MoMLChangeRequest request = new MoMLChangeRequest(this, attr.getContainer(), moml);\n if (_undoable) {\n request.setUndoable(true);\n request.setMergeWithPreviousUndo(_mergeWithPrevious);\n _mergeWithPrevious = true;\n }\n request.execute();\n moml = \"String_Node_Str\" + naomiParam.getName() + \"String_Node_Str\" + \"String_Node_Str\" + NaomiParameter.formatExpression(naomiParam.getMethod(), naomiParam.getAttributeName(), date, unit, doc) + \"String_Node_Str\";\n request = new MoMLChangeRequest(this, attr, moml);\n if (_undoable) {\n request.setUndoable(true);\n request.setMergeWithPreviousUndo(_mergeWithPrevious);\n _mergeWithPrevious = true;\n }\n request.execute();\n break;\n }\n }\n}\n"
"public StackDescription describeStackWithResources(User user, Stack stack, Credential credential) {\n AwsTemplate awsInfra = (AwsTemplate) stack.getTemplate();\n AwsCredential awsCredential = (AwsCredential) credential;\n DescribeStacksResult stackResult = null;\n DescribeStackResourcesResult resourcesResult = null;\n DescribeInstancesResult instancesResult = null;\n Resource resource = stack.getResourceByType(ResourceType.CLOUDFORMATION_STACK);\n if (resource != null) {\n try {\n AmazonCloudFormationClient client = awsStackUtil.createCloudFormationClient(awsInfra.getRegion(), awsCredential);\n DescribeStacksRequest stackRequest = new DescribeStacksRequest().withStackName(resource.getResourceName());\n stackResult = client.describeStacks(stackRequest);\n DescribeStackResourcesRequest resourcesRequest = new DescribeStackResourcesRequest().withStackName(resource.getResourceName());\n resourcesResult = client.describeStackResources(resourcesRequest);\n } catch (AmazonServiceException e) {\n if (CF_SERVICE_NAME.equals(e.getServiceName()) && e.getErrorMessage().equals(String.format(\"String_Node_Str\", resource.getResourceName()))) {\n LOGGER.error(\"String_Node_Str\", resource.getResourceName());\n stackResult = new DescribeStacksResult();\n } else {\n throw e;\n }\n }\n }\n AmazonEC2Client ec2Client = awsStackUtil.createEC2Client(awsInfra.getRegion(), awsCredential);\n DescribeInstancesRequest instancesRequest = new DescribeInstancesRequest().withFilters(new Filter().withName(\"String_Node_Str\" + INSTANCE_TAG_NAME).withValues(resource.getResourceName()));\n DescribeInstancesResult instancesResult = ec2Client.describeInstances(instancesRequest);\n return new DetailedAwsStackDescription(stackResult, resourcesResult, instancesResult);\n}\n"
"public void handleException(Exception ex) {\n if (ex != null) {\n logger.fatal(\"String_Node_Str\" + (ex.getMessage() == null ? \"String_Node_Str\" : ex.getMessage()));\n if (ex.getCause() != null) {\n logger.debug(\"String_Node_Str\" + (ex.getCause().getMessage() == null ? \"String_Node_Str\" : ex.getCause().getMessage()));\n }\n ex.printStackTrace();\n } else {\n logger.fatal(\"String_Node_Str\");\n }\n}\n"
"private void updateSettingsLI(PackageParser.Package newPackage, String installerPackageName, PackageInstalledInfo res) {\n String pkgName = newPackage.packageName;\n synchronized (mPackages) {\n mSettings.setInstallStatus(pkgName, PKG_INSTALL_INCOMPLETE);\n mSettings.writeLP();\n }\n if ((res.returnCode = moveDexFilesLI(newPackage)) != PackageManager.INSTALL_SUCCEEDED) {\n return;\n }\n if ((res.returnCode = setPermissionsLI(newPackage)) != PackageManager.INSTALL_SUCCEEDED) {\n if (mInstaller != null) {\n mInstaller.rmdex(newPackage.mScanPath);\n }\n return;\n } else {\n Log.d(TAG, \"String_Node_Str\" + newPackage.mPath);\n }\n synchronized (mPackages) {\n updatePermissionsLP(newPackage.packageName, newPackage, newPackage.permissions.size() > 0, true, false);\n res.name = pkgName;\n res.uid = newPackage.applicationInfo.uid;\n res.pkg = newPackage;\n mSettings.setInstallStatus(pkgName, PKG_INSTALL_COMPLETE);\n mSettings.setInstallerPackageName(pkgName, installerPackageName);\n res.returnCode = PackageManager.INSTALL_SUCCEEDED;\n mSettings.writeLP();\n }\n}\n"
"public void scheduleRepeatingJobsForFourDayRecall(String patientDocId, String treatmentAdviceId, LocalDate treatmentAdviceStartDate) {\n Patient patient = allPatients.get(patientDocId);\n Integer maxOutboundRetries = Integer.valueOf(properties.getProperty(TAMAConstants.RETRIES_PER_DAY));\n int repeatIntervalInMinutes = Integer.valueOf(properties.getProperty(TAMAConstants.RETRY_INTERVAL));\n TimeOfDay callTime = patient.getPatientPreferences().getBestCallTime();\n DateTime jobStartTime = DateUtil.newDateTime(DateUtil.today(), callTime.getHour(), callTime.getMinute(), 0).plusMinutes(retryInterval);\n DateTime jobEndTime = jobStartTime.plusDays(1);\n Map<String, Object> eventParams = new FourDayRecallEventPayloadBuilder().withJobId(FOUR_DAY_RECALL_JOB_ID_PREFIX + UUIDUtil.newUUID()).withPatientDocId(patientDocId).withTreatmentAdviceId(treatmentAdviceId).withTreatmentAdviceStartDate(treatmentAdviceStartDate).withRetryFlag(true).payload();\n MotechEvent fourDayRecallRepeatingEvent = new MotechEvent(TAMAConstants.FOUR_DAY_RECALL_SUBJECT, eventParams);\n RepeatingSchedulableJob repeatingSchedulableJob = new RepeatingSchedulableJob(fourDayRecallRepeatingEvent, jobStartTime.toDate(), jobEndTime.toDate(), maxOutboundRetries, retryInterval * 60 * 1000);\n motechSchedulerService.scheduleRepeatingJob(repeatingSchedulableJob);\n}\n"
"private void handleErr(final RequestImpl req, final ResponseImpl rsp, final Throwable ex) {\n try {\n log.debug(\"String_Node_Str\", req.method(), req.path(), ex);\n Status status = sc.apply(ex);\n if (status == Status.REQUESTED_RANGE_NOT_SATISFIABLE) {\n String range = rsp.header(\"String_Node_Str\").toOptional().map(it -> \"String_Node_Str\" + it).orElse(\"String_Node_Str\");\n rsp.reset();\n rsp.header(\"String_Node_Str\", range);\n } else {\n rsp.reset();\n }\n rsp.header(\"String_Node_Str\", NO_CACHE);\n rsp.status(status);\n Err err = ex instanceof Err ? (Err) ex : new Err(status, ex);\n Iterator<Handler> it = this.err.iterator();\n while (!rsp.committed() && it.hasNext()) {\n Err.Handler next = it.next();\n log.debug(\"String_Node_Str\", next);\n next.handle(req, rsp, err);\n }\n } catch (Throwable errex) {\n log.error(\"String_Node_Str\", req.method(), req.path(), req.route().print(6), Throwables.getStackTraceAsString(errex), ex);\n }\n}\n"
"public void start() {\n view = new LawenaView();\n new StartLogger(\"String_Node_Str\").toTextComponent(settings.getLogUiLevel(), view.getTextAreaLog());\n new StartLogger(\"String_Node_Str\").toLabel(Level.FINE, view.getLblStatus());\n log.fine(\"String_Node_Str\" + version + \"String_Node_Str\" + build);\n log.fine(\"String_Node_Str\" + settings.getTfPath());\n log.fine(\"String_Node_Str\" + cl.getSteamPath());\n log.fine(\"String_Node_Str\" + settings.getMoviePath());\n log.fine(\"String_Node_Str\" + Paths.get(\"String_Node_Str\").toAbsolutePath());\n view.setTitle(\"String_Node_Str\" + shortver());\n try {\n view.setIconImage(new ImageIcon(Lawena.class.getClassLoader().getResource(\"String_Node_Str\")).getImage());\n } catch (Exception e) {\n }\n view.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n saveAndExit();\n }\n });\n view.getMntmAbout().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (dialog == null) {\n dialog = new AboutDialog(version, build);\n dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n dialog.setModalityType(ModalityType.APPLICATION_MODAL);\n dialog.getBtnUpdater().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n updater.showSwitchUpdateChannelDialog();\n }\n });\n }\n dialog.setVisible(true);\n }\n });\n view.getMntmSelectEnhancedParticles().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n startParticlesDialog();\n }\n });\n view.getMntmAddCustomSettings().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JTextArea custom = getCustomSettingsTextArea();\n String previous = custom.getText();\n int result = JOptionPane.showConfirmDialog(view, getCustomSettingsScrollPane(), \"String_Node_Str\", JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE);\n if (result == JOptionPane.OK_OPTION) {\n log.info(\"String_Node_Str\" + custom.getText());\n saveSettings();\n } else {\n custom.setText(previous);\n }\n }\n });\n final JTable table = view.getTableCustomContent();\n table.setModel(customPaths);\n table.getColumnModel().getColumn(0).setMaxWidth(20);\n table.getColumnModel().getColumn(2).setMaxWidth(50);\n table.setDefaultRenderer(CustomPath.class, new TooltipRenderer(settings));\n table.getModel().addTableModelListener(new TableModelListener() {\n public void tableChanged(TableModelEvent e) {\n if (e.getColumn() == CustomPathList.Column.SELECTED.ordinal()) {\n int row = e.getFirstRow();\n TableModel model = (TableModel) e.getSource();\n CustomPath cp = (CustomPath) model.getValueAt(row, CustomPathList.Column.PATH.ordinal());\n checkCustomHud(cp);\n if (cp == CustomPathList.particles && cp.isSelected()) {\n startParticlesDialog();\n }\n }\n }\n });\n table.setDropTarget(new DropTarget() {\n private static final long serialVersionUID = 1L;\n public synchronized void dragOver(DropTargetDragEvent dtde) {\n Point point = dtde.getLocation();\n int row = table.rowAtPoint(point);\n if (row < 0) {\n table.clearSelection();\n } else {\n table.setRowSelectionInterval(row, row);\n }\n dtde.acceptDrag(DnDConstants.ACTION_COPY);\n }\n public synchronized void drop(DropTargetDropEvent dtde) {\n if (dtde.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {\n dtde.acceptDrop(DnDConstants.ACTION_COPY);\n Transferable t = dtde.getTransferable();\n List<?> fileList = null;\n try {\n fileList = (List<?>) t.getTransferData(DataFlavor.javaFileListFlavor);\n if (fileList.size() > 0) {\n table.clearSelection();\n for (Object value : fileList) {\n if (value instanceof File) {\n File f = (File) value;\n log.info(\"String_Node_Str\" + f.toPath());\n new PathCopyTask(f.toPath()).execute();\n }\n }\n }\n } catch (UnsupportedFlavorException e) {\n log.log(Level.FINE, \"String_Node_Str\", e);\n } catch (IOException e) {\n log.log(Level.FINE, \"String_Node_Str\", e);\n }\n } else {\n dtde.rejectDrop();\n }\n }\n });\n TableRowSorter<CustomPathList> sorter = new TableRowSorter<>(customPaths);\n table.setRowSorter(sorter);\n RowFilter<CustomPathList, Object> filter = new RowFilter<CustomPathList, Object>() {\n public boolean include(Entry<? extends CustomPathList, ? extends Object> entry) {\n CustomPath cp = (CustomPath) entry.getValue(CustomPathList.Column.PATH.ordinal());\n return !cp.getContents().contains(PathContents.READONLY);\n }\n };\n sorter.setRowFilter(filter);\n SwingWorker<Void, Void> scannerTask = new PathScanTask();\n SwingWorker<Void, Void> skySetupTask = new SwingWorker<Void, Void>() {\n\n protected Void doInBackground() throws Exception {\n try {\n configureSkyboxes(view.getCmbSkybox());\n } catch (Exception e) {\n log.log(Level.INFO, \"String_Node_Str\", e);\n }\n return null;\n }\n protected void done() {\n selectSkyboxFromSettings();\n }\n }.execute();\n loadSettings();\n view.getMntmChangeTfDirectory().addActionListener(new Tf2FolderChange());\n view.getMntmChangeMovieDirectory().addActionListener(new MovieFolderChange());\n view.getMntmRevertToDefault().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n Path movies = settings.getMoviePath();\n settings.loadDefaults();\n settings.setMoviePath(movies);\n loadSettings();\n customPaths.loadResourceSettings();\n loadHudComboState();\n saveSettings();\n }\n });\n view.getMntmExit().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n saveAndExit();\n }\n });\n view.getMntmSaveSettings().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n saveSettings();\n }\n });\n view.getBtnStartTf().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n new StartTfTask().execute();\n }\n });\n view.getBtnClearMovieFolder().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n startSegmentsDialog();\n }\n });\n view.getMntmOpenMovieFolder().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n new SwingWorker<Void, Void>() {\n protected Void doInBackground() throws Exception {\n try {\n Desktop.getDesktop().open(settings.getMoviePath().toFile());\n } catch (IOException ex) {\n log.log(Level.FINE, \"String_Node_Str\", ex);\n }\n return null;\n }\n }.execute();\n }\n });\n view.getMntmOpenCustomFolder().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n new SwingWorker<Void, Void>() {\n protected Void doInBackground() throws Exception {\n try {\n Desktop.getDesktop().open(Paths.get(\"String_Node_Str\").toFile());\n } catch (IOException ex) {\n log.log(Level.FINE, \"String_Node_Str\", ex);\n }\n return null;\n }\n }.execute();\n }\n });\n view.getChckbxmntmInsecure().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n settings.setInsecure(view.getChckbxmntmInsecure().isSelected());\n }\n });\n view.getMntmLaunchTimeout().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n Object answer = JOptionPane.showInputDialog(view, \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", JOptionPane.PLAIN_MESSAGE, null, null, settings.getLaunchTimeout());\n if (answer != null) {\n try {\n int value = Integer.parseInt(answer.toString());\n settings.setLaunchTimeout(value);\n } catch (IllegalArgumentException ex) {\n JOptionPane.showMessageDialog(view, \"String_Node_Str\", \"String_Node_Str\", JOptionPane.WARNING_MESSAGE);\n }\n }\n }\n });\n view.getCustomLaunchOptionsMenuItem().addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n if (launchOptionsDialog == null) {\n launchOptionsDialog = new LaunchOptionsDialog();\n }\n launchOptionsDialog.getOptionsTextField().setText(settings.getString(Key.LaunchOptions));\n int result = launchOptionsDialog.showDialog();\n if (result == JOptionPane.YES_OPTION) {\n String launchOptions = launchOptionsDialog.getOptionsTextField().getText();\n settings.setString(Key.LaunchOptions, launchOptions);\n } else if (result == 1) {\n settings.setString(Key.LaunchOptions, (String) Key.LaunchOptions.defValue());\n }\n }\n });\n view.getCmbViewmodel().addItemListener(new ItemListener() {\n public void itemStateChanged(ItemEvent e) {\n if (e.getStateChange() == ItemEvent.SELECTED) {\n checkViewmodelState();\n }\n }\n });\n view.getCmbSourceVideoFormat().addItemListener(new ItemListener() {\n public void itemStateChanged(ItemEvent e) {\n if (e.getStateChange() == ItemEvent.SELECTED) {\n checkFrameFormatState();\n }\n }\n });\n view.getTabbedPane().addTab(\"String_Node_Str\", null, vdm.start());\n view.setVisible(true);\n}\n"
"public void afterBeanDiscoveryCustomIdentityStoreHandlerExists() {\n final Set<Type> types = new HashSet<Type>();\n types.add(new TypeLiteral<Bean>() {\n }.getType());\n types.add(new TypeLiteral<IdentityStoreHandler>() {\n }.getType());\n context.checking(new Expectations() {\n {\n exactly(2).of(pb).getBean();\n will(returnValue(bn));\n between(2, 3).of(bn).getBeanClass();\n will(returnValue(Object.class));\n exactly(2).of(bn).getTypes();\n will(returnValue(types));\n never(abd).addBean(with(any(IdentityStoreHandlerBean.class)));\n }\n });\n JavaEESecCDIExtension j3ce = new JavaEESecCDIExtension();\n assertFalse(\"String_Node_Str\", j3ce.getIdentityStoreHandlerRegistered());\n j3ce.processBean(pb, bm);\n assertTrue(\"String_Node_Str\", j3ce.getIdentityStoreHandlerRegistered());\n j3ce.afterBeanDiscovery(abd, bm);\n assertTrue(\"String_Node_Str\", j3ce.getBeansToAdd().isEmpty());\n}\n"
"protected void onOntologyClicked(OntologySummaryBean ontology, Widget widget) {\n if (widget == selectedOntologyWidget) {\n editor.setValue(null);\n widget.getElement().getParentElement().removeClassName(\"String_Node_Str\");\n selectedOntologyWidget = null;\n return;\n }\n if (selectedOntologyWidget != null) {\n if (editor.isDirty()) {\n Window.alert(i18n.format(\"String_Node_Str\"));\n return;\n }\n selectedOntologyWidget.getElement().getParentElement().removeClassName(\"String_Node_Str\");\n selectedOntologyWidget = null;\n }\n widget.getElement().getParentElement().addClassName(\"String_Node_Str\");\n selectedOntologyWidget = widget;\n editor.clear();\n ontologyService.get(ontology.getUuid(), true, new IRpcServiceInvocationHandler<OntologyBean>() {\n public void onReturn(OntologyBean data) {\n editor.setValue(data);\n }\n public void onError(Throwable error) {\n notificationService.sendErrorNotification(i18n.format(\"String_Node_Str\"), error);\n editor.clear();\n }\n });\n}\n"
"private boolean containsTableInSchema(String schemaName, boolean showSystemTable) {\n String dbType = getSelectedDbType();\n String namePattern = SQLUtility.getTailoredSearchText(searchTxt.getText());\n if (dbType.equalsIgnoreCase(DbType.PROCEDURE_STRING)) {\n return containsProcedure(schemaName, namePattern);\n } else if (dbType.equalsIgnoreCase(DbType.TABLE_STRING)) {\n return containsTableOfTableType(schemaName, showSystemTable);\n } else if (dbType.equalsIgnoreCase(DbType.VIEW_STRING)) {\n return containsTableOfViewType(schemaName);\n }\n return false;\n}\n"
"private void setAllConnectionParameters(String typ, IElement element) {\n String type = null;\n if (typ != null && !typ.equals(\"String_Node_Str\")) {\n type = typ;\n } else {\n type = getValueFromRepositoryName(element, \"String_Node_Str\");\n }\n if (type.equals(\"String_Node_Str\") || type.contains(\"String_Node_Str\")) {\n IElementParameter ele = element.getElementParameter(\"String_Node_Str\");\n if (ele != null) {\n type = (String) ele.getValue();\n } else {\n type = \"String_Node_Str\";\n }\n }\n if (type.equals(EDatabaseTypeName.HSQLDB.name()) && getValueFromRepositoryName(element, \"String_Node_Str\").equals(\"String_Node_Str\")) {\n type = EDatabaseTypeName.HSQLDB_IN_PROGRESS.getDisplayName();\n }\n if (StringUtils.trimToNull(type) == null && StringUtils.trimToNull(connParameters.getDbType()) == null) {\n type = EDatabaseTypeName.GENERAL_JDBC.getXmlName();\n }\n if (StringUtils.trimToNull(type) != null) {\n connParameters.setDbType(type);\n }\n String frameWorkKey = getValueFromRepositoryName(element, \"String_Node_Str\");\n connParameters.setFrameworkType(frameWorkKey);\n String schema = getValueFromRepositoryName(element, EConnectionParameterName.SCHEMA.getName());\n connParameters.setSchema(schema);\n String userName = getValueFromRepositoryName(element, EConnectionParameterName.USERNAME.getName());\n connParameters.setUserName(userName);\n String password = getValueFromRepositoryName(element, EConnectionParameterName.PASSWORD.getName());\n connParameters.setPassword(password);\n String host = getValueFromRepositoryName(element, EConnectionParameterName.SERVER_NAME.getName());\n connParameters.setHost(host);\n String port = getValueFromRepositoryName(element, EConnectionParameterName.PORT.getName());\n connParameters.setPort(port);\n boolean https = Boolean.parseBoolean(getValueFromRepositoryName(element, EConnectionParameterName.HTTPS.getName()));\n connParameters.setHttps(https);\n boolean isOracleOCI = type.equals(EDatabaseTypeName.ORACLE_OCI.getXmlName()) || type.equals(EDatabaseTypeName.ORACLE_OCI.getDisplayName());\n if (isOracleOCI) {\n String localServiceName = getValueFromRepositoryNameAndParameterName(element, EConnectionParameterName.SID.getName(), EParameterName.LOCAL_SERVICE_NAME.getName());\n connParameters.setLocalServiceName(localServiceName);\n }\n String datasource = getValueFromRepositoryName(element, EConnectionParameterName.DATASOURCE.getName());\n connParameters.setDatasource(datasource);\n String dbName = getValueFromRepositoryName(element, EConnectionParameterName.SID.getName());\n connParameters.setDbName(dbName);\n if (connParameters.getDbType().equals(EDatabaseTypeName.SQLITE.getXmlName()) || connParameters.getDbType().equals(EDatabaseTypeName.ACCESS.getXmlName()) || connParameters.getDbType().equals(EDatabaseTypeName.FIREBIRD.getXmlName())) {\n String file = getValueFromRepositoryName(element, EConnectionParameterName.FILE.getName());\n connParameters.setFilename(file);\n }\n String dir = getValueFromRepositoryName(element, EConnectionParameterName.DIRECTORY.getName());\n if (type.equals(EDatabaseTypeName.HSQLDB_IN_PROGRESS.getDisplayName())) {\n dir = getValueFromRepositoryName(elem, EConnectionParameterName.DBPATH.getName());\n }\n connParameters.setDirectory(dir);\n String url = getValueFromRepositoryName(element, EConnectionParameterName.URL.getName());\n if (StringUtils.isEmpty(url)) {\n if (EDatabaseTypeName.ORACLE_CUSTOM.getXmlName().equals(type)) {\n url = getValueFromRepositoryName(element, \"String_Node_Str\" + EConnectionParameterName.URL.getName());\n }\n }\n connParameters.setUrl(TalendTextUtils.removeQuotes(url));\n String driverJar = getValueFromRepositoryName(element, EConnectionParameterName.DRIVER_JAR.getName());\n connParameters.setDriverJar(TalendTextUtils.removeQuotes(driverJar));\n String driverClass = getValueFromRepositoryName(element, EConnectionParameterName.DRIVER_CLASS.getName());\n connParameters.setDriverClass(TalendTextUtils.removeQuotes(driverClass));\n if (driverClass != null && !\"String_Node_Str\".equals(driverClass) && !EDatabaseTypeName.GENERAL_JDBC.getDisplayName().equals(connParameters.getDbType())) {\n if (driverClass.startsWith(\"String_Node_Str\") && driverClass.endsWith(\"String_Node_Str\")) {\n driverClass = TalendTextUtils.removeQuotes(driverClass);\n }\n String dbTypeByClassName = \"String_Node_Str\";\n if (driverJar != null && !\"String_Node_Str\".equals(driverJar)) {\n dbTypeByClassName = extractMeta.getDbTypeByClassNameAndDriverJar(driverClass, driverJar);\n } else {\n dbTypeByClassName = ExtractMetaDataUtils.getDbTypeByClassName(driverClass);\n }\n if (dbTypeByClassName != null) {\n connParameters.setDbType(dbTypeByClassName);\n }\n }\n String jdbcProps = getValueFromRepositoryName(element, EConnectionParameterName.PROPERTIES_STRING.getName());\n connParameters.setJdbcProperties(jdbcProps);\n String realTableName = null;\n if (EmfComponent.REPOSITORY.equals(elem.getPropertyValue(EParameterName.SCHEMA_TYPE.getName()))) {\n final Object propertyValue = elem.getPropertyValue(EParameterName.REPOSITORY_SCHEMA_TYPE.getName());\n IMetadataTable metadataTable = null;\n String connectionId = propertyValue.toString().split(\"String_Node_Str\")[0];\n String tableLabel = propertyValue.toString().split(\"String_Node_Str\")[1];\n IProxyRepositoryFactory factory = ProxyRepositoryFactory.getInstance();\n Item item = null;\n try {\n IRepositoryViewObject repobj = factory.getLastVersion(connectionId);\n if (repobj != null) {\n Property property = repobj.getProperty();\n if (property != null) {\n item = property.getItem();\n }\n }\n } catch (PersistenceException e) {\n ExceptionHandler.process(e);\n }\n if (item != null && item instanceof ConnectionItem) {\n Connection connection = ((ConnectionItem) item).getConnection();\n for (org.talend.core.model.metadata.builder.connection.MetadataTable table : ConnectionHelper.getTables(connection)) {\n if (table.getLabel().equals(tableLabel)) {\n metadataTable = ConvertionHelper.convert(table);\n break;\n }\n }\n }\n if (metadataTable != null) {\n realTableName = metadataTable.getTableName();\n }\n }\n connParameters.setSchemaName(QueryUtil.getTableName(elem, connParameters.getMetadataTable(), TalendTextUtils.removeQuotes(schema), type, realTableName));\n}\n"
"public int compare(Status<T> o1, Status<T> o2) {\n if ((o1.isPending() && o2.isPending()) || (!o1.isPending() && !o2.isPending())) {\n if (o1.getValue() instanceof Request) {\n Request rq1 = (Request) o1.getValue();\n Request rq2 = (Request) o2.getValue();\n if (rq2 == null)\n return +1;\n Token rq1t = rq1.getToken();\n Token rq2t = rq2.getToken();\n if (rq1t.compareTo(rq2t) == 0) {\n switch(rq1t) {\n case ACK:\n return rq2.getLSN().compareTo(rq1.getLSN());\n case RQ:\n return rq1.getLSN().compareTo(rq2.getLSN());\n case REPLICA_BROADCAST:\n return rq1.getLSN().compareTo(rq2.getLSN());\n case CHUNK:\n return rq1.getChunk().compareTo(rq2.getChunk());\n case ACK_RQ:\n if (rq1.getLSN().equals(rq2.getLSN()))\n return -1;\n else\n return rq1.getLSN().compareTo(rq2.getLSN());\n case REPLICA:\n return rq1.getLSN().compareTo(rq2.getLSN());\n case CHUNK_RP:\n return rq1.getChunkDetails().compareTo(rq2.getChunkDetails());\n default:\n return 0;\n }\n }\n return rq1t.compareTo(rq2t);\n } else if (o1.getValue() instanceof LSN) {\n LSN lsn1 = (LSN) o1.getValue();\n LSN lsn2 = (LSN) o2.getValue();\n return lsn1.compareTo(lsn2);\n } else if (o1.getValue() instanceof Chunk) {\n Chunk chunk1 = (Chunk) o1.getValue();\n Chunk chunk2 = (Chunk) o2.getValue();\n return chunk1.compareTo(chunk2);\n } else\n return +1;\n } else if (o1.isPending())\n return +1;\n else\n return -1;\n}\n"
"public void close() throws DataException {\n try {\n if (!this.holders.isEmpty()) {\n Collection<RDAggrValueHolder> values = this.holders.values();\n Iterator<RDAggrValueHolder> iter = values.iterator();\n while (iter.hasNext()) {\n iter.next().close();\n }\n }\n if (aggrIndexStream != null) {\n aggrIndexStream.close();\n }\n } catch (IOException ex) {\n }\n}\n"
"public String toString() {\n return \"String_Node_Str\" + seqResIndex;\n}\n"
"public void setPageincrement(int increment) {\n this.pageIncrement = increment;\n}\n"
"protected void onPause() {\n super.onPause();\n Log.d(TAG, \"String_Node_Str\");\n if (mCursor != null) {\n mCursor.moveToFirst();\n long encrypted = mCursor.getLong(COLUMN_INDEX_ENCRYPTED);\n if (encrypted == 0) {\n String text = mText.getText().toString();\n int length = text.length();\n if (isFinishing() && (length == 0) && !mNoteOnly) {\n setResult(RESULT_CANCELED);\n deleteNote();\n } else {\n ContentValues values = new ContentValues();\n if (!mNoteOnly) {\n values.put(Notes.MODIFIED_DATE, System.currentTimeMillis());\n String title = ExtractTitle.extractTitle(text);\n values.put(Notes.TITLE, title);\n }\n values.put(Notes.NOTE, text);\n getContentResolver().update(mUri, values, null, null);\n }\n } else {\n if (mDecryptedText != null) {\n encryptNote(false);\n }\n }\n }\n}\n"
"public Void call() throws Exception {\n log.debug(\"String_Node_Str\");\n if (verbose) {\n System.out.println(\"String_Node_Str\" + app + \"String_Node_Str\" + locations);\n }\n ResourceUtils utils = new ResourceUtils(this);\n ClassLoader parent = utils.getLoader();\n GroovyClassLoader loader = new GroovyClassLoader(parent);\n log.debug(\"String_Node_Str\", app);\n AbstractApplication application = loadApplicationFromClasspathOrParse(utils, loader, app);\n if (script != null) {\n log.debug(\"String_Node_Str\", script);\n String content = utils.getResourceAsString(script);\n GroovyShell shell = new GroovyShell(loader);\n shell.evaluate(content);\n }\n List<Location> brooklynLocations = new LocationRegistry().getLocationsById((locations == null || Iterables.isEmpty(locations)) ? ImmutableSet.of(CommandLineLocations.LOCALHOST) : locations);\n log.info(\"String_Node_Str\");\n BrooklynLauncher.manage(application, port, !noShutdownOnExit, !noConsole);\n log.info(\"String_Node_Str\", app);\n application.start(brooklynLocations);\n if (verbose) {\n Entities.dumpInfo(application);\n }\n if (stopOnKeyPress) {\n log.info(\"String_Node_Str\");\n System.in.read();\n application.stop();\n } else {\n log.info(\"String_Node_Str\");\n waitUntilInterrupted();\n }\n return null;\n}\n"
"public void testGetProvider() {\n final AuthProviderType type = AuthProviderType.FACEBOOK;\n Map<Integer, AuthProvider<?>> providerMap = AndroidMock.createMock(Map.class);\n AuthProvider<FacebookAuthProviderInfo> provider = AndroidMock.createMock(AuthProvider.class);\n AndroidMock.expect((AuthProvider<FacebookAuthProviderInfo>) providerMap.get(type.getId())).andReturn(provider);\n AndroidMock.replay(providerMap);\n AuthProviders providers = new AuthProviders();\n providers.setProviders(providerMap);\n assertSame(provider, providers.getProvider(type));\n AndroidMock.verify(providerMap);\n}\n"
"public String getAttribute(Attribute attribute) {\n if (attribute == null)\n return null;\n if (attribute.startsWith(\"String_Node_Str\"))\n return new dLocation(this.add(0, 1, 0)).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new dLocation(this.add(0, -1, 0)).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\")) {\n return new dLocation(getWorld(), getBlockX(), getBlockY(), getBlockZ()).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return new dLocation(getWorld().getHighestBlockAt(this).getLocation().add(0, -1, 0)).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return new Element(getBlock().getState() instanceof InventoryHolder).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return Element.HandleNull(identify() + \"String_Node_Str\", getInventory(), \"String_Node_Str\").getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\"))\n return dMaterial.getMaterialFrom(getBlock().getType(), getBlock().getData()).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element((getBlock().getData() & 0x8) > 0).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\")) {\n if (getBlock().getState() instanceof Sign) {\n dList toReturn = new dList();\n for (String line : ((Sign) getBlock().getState()).getLines()) toReturn.add(EscapeTags.Escape(line));\n return toReturn.getAttribute(attribute.fulfill(2));\n } else\n return \"String_Node_Str\";\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n if (getBlock().getState() instanceof Sign) {\n return new dList(Arrays.asList(((Sign) getBlock().getState()).getLines())).getAttribute(attribute.fulfill(1));\n } else\n return \"String_Node_Str\";\n }\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(\"String_Node_Str\" + getBlockX() + \"String_Node_Str\" + getBlockY() + \"String_Node_Str\" + getBlockZ() + \"String_Node_Str\" + getWorld().getName() + \"String_Node_Str\").getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getBlockX() + \"String_Node_Str\" + getBlockY() + \"String_Node_Str\" + getBlockZ() + \"String_Node_Str\" + getWorld().getName()).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\")) {\n double xzLen = Math.cos((getPitch() % 360) * (Math.PI / 180));\n double nx = xzLen * Math.sin(-getYaw() * (Math.PI / 180));\n double ny = Math.sin(getPitch() * (Math.PI / 180));\n double nz = xzLen * Math.cos(getYaw() * (Math.PI / 180));\n return new dLocation(getWorld(), nx, -ny, nz).getAttribute(attribute.fulfill(2));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n if (attribute.hasContext(1) && dLocation.matches(attribute.getContext(1))) {\n dLocation target = dLocation.valueOf(attribute.getContext(1));\n attribute = attribute.fulfill(1);\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(Rotation.normalizeYaw(Rotation.getYaw(target.toVector().subtract(this.toVector()).normalize()))).getAttribute(attribute.fulfill(1));\n else\n return new Element(Rotation.getCardinal(Rotation.getYaw(target.toVector().subtract(this.toVector()).normalize()))).getAttribute(attribute);\n } else {\n return new Element(Rotation.getCardinal(getYaw())).getAttribute(attribute.fulfill(1));\n }\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n if (attribute.hasContext(1)) {\n int degrees = 45;\n int attributePos = 1;\n if (attribute.getAttribute(2).startsWith(\"String_Node_Str\") && attribute.hasContext(2) && aH.matchesInteger(attribute.getContext(2))) {\n degrees = attribute.getIntContext(2);\n attributePos++;\n }\n if (dLocation.matches(attribute.getContext(1))) {\n return new Element(Rotation.isFacingLocation(this, dLocation.valueOf(attribute.getContext(1)), degrees)).getAttribute(attribute.fulfill(attributePos));\n } else if (dEntity.matches(attribute.getContext(1))) {\n return new Element(Rotation.isFacingLocation(this, dEntity.valueOf(attribute.getContext(1)).getBukkitEntity().getLocation(), degrees)).getAttribute(attribute.fulfill(attributePos));\n }\n }\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return new Element(getPitch()).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n String context = attribute.getContext(1);\n Float pitch = 0f;\n Float yaw = 0f;\n if (dEntity.matches(context)) {\n dEntity ent = dEntity.valueOf(context);\n if (ent.isSpawned()) {\n pitch = ent.getBukkitEntity().getLocation().getPitch();\n yaw = ent.getBukkitEntity().getLocation().getYaw();\n }\n } else if (context.split(\"String_Node_Str\").length == 2) {\n String[] split = context.split(\"String_Node_Str\");\n pitch = Float.valueOf(split[0]);\n yaw = Float.valueOf(split[1]);\n }\n dLocation loc = dLocation.valueOf(identify());\n loc.setPitch(pitch);\n loc.setYaw(yaw);\n return loc.getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n float yaw = Rotation.normalizeYaw(getYaw());\n if (yaw < 45)\n return new Element(\"String_Node_Str\").getAttribute(attribute.fulfill(2));\n else if (yaw < 135)\n return new Element(\"String_Node_Str\").getAttribute(attribute.fulfill(2));\n else if (yaw < 225)\n return new Element(\"String_Node_Str\").getAttribute(attribute.fulfill(2));\n else if (yaw < 315)\n return new Element(\"String_Node_Str\").getAttribute(attribute.fulfill(2));\n else\n return new Element(\"String_Node_Str\").getAttribute(attribute.fulfill(2));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return new Element(getYaw()).getAttribute(attribute.fulfill(2));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return new Element(Rotation.normalizeYaw(getYaw())).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\") || attribute.startsWith(\"String_Node_Str\")) {\n attribute.fulfill(1);\n if (attribute.startsWith(\"String_Node_Str\") && attribute.getAttribute(2).startsWith(\"String_Node_Str\") && attribute.hasContext(2)) {\n ArrayList<dLocation> found = new ArrayList<dLocation>();\n double radius = aH.matchesDouble(attribute.getContext(2)) ? attribute.getDoubleContext(2) : 10;\n List<dMaterial> materials = new ArrayList<dMaterial>();\n if (attribute.hasContext(1))\n materials = dList.valueOf(attribute.getContext(1)).filter(dMaterial.class);\n if (materials == null)\n return Element.NULL.getAttribute(attribute.fulfill(2));\n attribute.fulfill(2);\n for (double x = -(radius); x <= radius; x++) for (double y = -(radius); y <= radius; y++) for (double z = -(radius); z <= radius; z++) if (!materials.isEmpty()) {\n for (dMaterial material : materials) if (material.matchesMaterialData(getBlock().getLocation().add(x, y, z).getBlock().getType().getNewData(getBlock().getLocation().add(x, y, z).getBlock().getData())))\n found.add(new dLocation(getBlock().getLocation().add(x + 0.5, y, z + 0.5)));\n } else\n found.add(new dLocation(getBlock().getLocation().add(x + 0.5, y, z + 0.5)));\n Collections.sort(found, new Comparator<dLocation>() {\n public int compare(dLocation loc1, dLocation loc2) {\n return Compare(loc1, loc2);\n }\n });\n return new dList(found).getAttribute(attribute);\n } else if (attribute.startsWith(\"String_Node_Str\") && attribute.getAttribute(2).startsWith(\"String_Node_Str\") && attribute.hasContext(2)) {\n ArrayList<dLocation> found = new ArrayList<dLocation>();\n double radius = aH.matchesDouble(attribute.getContext(2)) ? attribute.getDoubleContext(2) : 10;\n List<dMaterial> materials = new ArrayList<dMaterial>();\n if (attribute.hasContext(1))\n materials = dList.valueOf(attribute.getContext(1)).filter(dMaterial.class);\n if (materials == null)\n return Element.NULL.getAttribute(attribute.fulfill(2));\n attribute.fulfill(2);\n for (double x = -(radius); x <= radius; x++) for (double y = -(radius); y <= radius; y++) for (double z = -(radius); z <= radius; z++) {\n Location l = getBlock().getLocation().clone().add(x, y, z);\n if (!materials.isEmpty()) {\n for (dMaterial material : materials) {\n if (material.matchesMaterialData(getBlock().getLocation().clone().add(x, y, z).getBlock().getType().getNewData(getBlock().getLocation().clone().add(x, y, z).getBlock().getData()))) {\n if (l.clone().add(0, 1, 0).getBlock().getType() == Material.AIR && l.clone().add(0, 2, 0).getBlock().getType() == Material.AIR && l.getBlock().getType() != Material.AIR)\n found.add(new dLocation(getBlock().getLocation().clone().add(x + 0.5, y, z + 0.5)));\n }\n }\n } else {\n if (l.clone().add(0, 1, 0).getBlock().getType() == Material.AIR && l.clone().add(0, 2, 0).getBlock().getType() == Material.AIR && l.getBlock().getType() != Material.AIR) {\n found.add(new dLocation(getBlock().getLocation().clone().add(x + 0.5, y, z + 0.5)));\n }\n }\n }\n Collections.sort(found, new Comparator<dLocation>() {\n public int compare(dLocation loc1, dLocation loc2) {\n return Compare(loc1, loc2);\n }\n });\n return new dList(found).getAttribute(attribute);\n } else if (attribute.startsWith(\"String_Node_Str\") && attribute.getAttribute(2).startsWith(\"String_Node_Str\") && attribute.hasContext(2)) {\n ArrayList<dPlayer> found = new ArrayList<dPlayer>();\n double radius = aH.matchesDouble(attribute.getContext(2)) ? attribute.getDoubleContext(2) : 10;\n attribute.fulfill(2);\n for (Player player : Bukkit.getOnlinePlayers()) if (!player.isDead() && Utilities.checkLocation(this, player.getLocation(), radius))\n found.add(new dPlayer(player));\n Collections.sort(found, new Comparator<dPlayer>() {\n public int compare(dPlayer pl1, dPlayer pl2) {\n return Compare(pl1.getLocation(), pl2.getLocation());\n }\n });\n return new dList(found).getAttribute(attribute);\n } else if (attribute.startsWith(\"String_Node_Str\") && attribute.getAttribute(2).startsWith(\"String_Node_Str\") && attribute.hasContext(2)) {\n ArrayList<dNPC> found = new ArrayList<dNPC>();\n double radius = aH.matchesDouble(attribute.getContext(2)) ? attribute.getDoubleContext(2) : 10;\n attribute.fulfill(2);\n for (dNPC npc : DenizenAPI.getSpawnedNPCs()) if (Utilities.checkLocation(this, npc.getLocation(), radius))\n found.add(npc);\n Collections.sort(found, new Comparator<dNPC>() {\n public int compare(dNPC npc1, dNPC npc2) {\n return Compare(npc1.getLocation(), npc2.getLocation());\n }\n });\n return new dList(found).getAttribute(attribute);\n } else if (attribute.startsWith(\"String_Node_Str\") && attribute.getAttribute(2).startsWith(\"String_Node_Str\") && attribute.hasContext(2)) {\n dList ent_list = new dList();\n if (attribute.hasContext(1)) {\n for (String ent : dList.valueOf(attribute.getContext(1))) {\n if (dEntity.matches(ent))\n ent_list.add(ent.toUpperCase());\n }\n }\n ArrayList<dEntity> found = new ArrayList<dEntity>();\n double radius = aH.matchesDouble(attribute.getContext(2)) ? attribute.getDoubleContext(2) : 10;\n attribute.fulfill(2);\n for (Entity entity : getWorld().getEntities()) {\n if (Utilities.checkLocation(this, entity.getLocation(), radius)) {\n dEntity current = new dEntity(entity);\n if (!ent_list.isEmpty()) {\n for (String ent : ent_list) {\n if ((entity.getType().name().equals(ent) || current.identify().equalsIgnoreCase(ent)) && entity.isValid()) {\n found.add(current);\n break;\n }\n }\n } else\n found.add(current);\n }\n }\n Collections.sort(found, new Comparator<dEntity>() {\n public int compare(dEntity ent1, dEntity ent2) {\n return Compare(ent1.getLocation(), ent2.getLocation());\n }\n });\n return new dList(found).getAttribute(attribute);\n } else if (attribute.startsWith(\"String_Node_Str\") && attribute.getAttribute(2).startsWith(\"String_Node_Str\") && attribute.hasContext(2)) {\n ArrayList<dEntity> found = new ArrayList<dEntity>();\n double radius = aH.matchesDouble(attribute.getContext(2)) ? attribute.getDoubleContext(2) : 10;\n attribute.fulfill(2);\n for (Entity entity : getWorld().getEntities()) if (entity instanceof LivingEntity && Utilities.checkLocation(this, entity.getLocation(), radius))\n found.add(new dEntity(entity));\n Collections.sort(found, new Comparator<dEntity>() {\n public int compare(dEntity ent1, dEntity ent2) {\n return Compare(ent1.getLocation(), ent2.getLocation());\n }\n });\n return new dList(found).getAttribute(attribute);\n }\n return new Element(\"String_Node_Str\").getAttribute(attribute);\n }\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getX() + \"String_Node_Str\" + getY() + \"String_Node_Str\" + getZ() + \"String_Node_Str\" + getWorld().getName()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(\"String_Node_Str\" + getX() + \"String_Node_Str\" + getY() + \"String_Node_Str\" + getZ() + \"String_Node_Str\" + getWorld().getName() + \"String_Node_Str\").getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\") || attribute.startsWith(\"String_Node_Str\"))\n return new dChunk(this).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\")) {\n dLocation rawLocation = new dLocation(this);\n rawLocation.setRaw(true);\n return rawLocation.getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return dWorld.mirrorBukkitWorld(getWorld()).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return new Element(getX()).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return new Element(getY()).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return new Element(getZ()).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\") && attribute.hasContext(1)) {\n if (attribute.getContext(1).split(\"String_Node_Str\").length == 3) {\n String[] ints = attribute.getContext(1).split(\"String_Node_Str\", 3);\n if ((aH.matchesDouble(ints[0]) || aH.matchesInteger(ints[0])) && (aH.matchesDouble(ints[1]) || aH.matchesInteger(ints[1])) && (aH.matchesDouble(ints[2]) || aH.matchesInteger(ints[2]))) {\n return new dLocation(this.clone().add(Double.valueOf(ints[0]), Double.valueOf(ints[1]), Double.valueOf(ints[2]))).getAttribute(attribute.fulfill(1));\n }\n } else if (dLocation.matches(attribute.getContext(1))) {\n return new dLocation(this.clone().add(dLocation.valueOf(attribute.getContext(1)))).getAttribute(attribute.fulfill(1));\n }\n }\n if (attribute.startsWith(\"String_Node_Str\") && attribute.hasContext(1)) {\n if (attribute.getContext(1).split(\"String_Node_Str\").length == 3) {\n String[] ints = attribute.getContext(1).split(\"String_Node_Str\", 3);\n if ((aH.matchesDouble(ints[0]) || aH.matchesInteger(ints[0])) && (aH.matchesDouble(ints[1]) || aH.matchesInteger(ints[1])) && (aH.matchesDouble(ints[2]) || aH.matchesInteger(ints[2]))) {\n return new dLocation(this.clone().subtract(Double.valueOf(ints[0]), Double.valueOf(ints[1]), Double.valueOf(ints[2]))).getAttribute(attribute.fulfill(1));\n }\n } else if (dLocation.matches(attribute.getContext(1))) {\n return new dLocation(this.clone().subtract(dLocation.valueOf(attribute.getContext(1)))).getAttribute(attribute.fulfill(1));\n }\n }\n if (attribute.startsWith(\"String_Node_Str\") && attribute.hasContext(1)) {\n return new dLocation(this.clone().multiply(Double.parseDouble(attribute.getContext(1)))).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\") && attribute.hasContext(1)) {\n return new dLocation(this.clone().multiply(1D / Double.parseDouble(attribute.getContext(1)))).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n return new Element(Math.sqrt(Math.pow(getX(), 2) + Math.pow(getY(), 2) + Math.pow(getZ(), 2))).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\") && attribute.hasContext(1)) {\n if (dLocation.matches(attribute.getContext(1))) {\n dLocation toLocation = dLocation.valueOf(attribute.getContext(1));\n if (attribute.getAttribute(2).startsWith(\"String_Node_Str\")) {\n if (attribute.getAttribute(3).startsWith(\"String_Node_Str\"))\n return new Element(Math.sqrt(Math.pow(this.getX() - toLocation.getX(), 2) + Math.pow(this.getZ() - toLocation.getZ(), 2))).getAttribute(attribute.fulfill(3));\n else if (this.getWorld() == toLocation.getWorld())\n return new Element(Math.sqrt(Math.pow(this.getX() - toLocation.getX(), 2) + Math.pow(this.getZ() - toLocation.getZ(), 2))).getAttribute(attribute.fulfill(2));\n } else if (attribute.getAttribute(2).startsWith(\"String_Node_Str\")) {\n if (attribute.getAttribute(3).startsWith(\"String_Node_Str\"))\n return new Element(Math.abs(this.getY() - toLocation.getY())).getAttribute(attribute.fulfill(3));\n else if (this.getWorld() == toLocation.getWorld())\n return new Element(Math.abs(this.getY() - toLocation.getY())).getAttribute(attribute.fulfill(2));\n } else\n return new Element(this.distance(toLocation)).getAttribute(attribute.fulfill(1));\n }\n }\n if (attribute.startsWith(\"String_Node_Str\") && attribute.hasContext(1)) {\n dCuboid cuboid = dCuboid.valueOf(attribute.getContext(1));\n if (cuboid != null)\n return new Element(cuboid.isInsideCuboid(this)).getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getBlock().getBiome().name().toLowerCase().replace('_', ' ')).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getBlock().getHumidity()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getBlock().getTemperature()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getBlock().getBiome().name()).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\")) {\n List<dCuboid> cuboids = dCuboid.getNotableCuboidsContaining(this);\n dList cuboid_list = new dList();\n for (dCuboid cuboid : cuboids) {\n cuboid_list.add(cuboid.identify());\n }\n return cuboid_list.getAttribute(attribute.fulfill(1));\n }\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getBlock().isLiquid()).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\") || attribute.startsWith(\"String_Node_Str\"))\n return new Element(getBlock().getLightFromBlocks()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\") || attribute.startsWith(\"String_Node_Str\"))\n return new Element(getBlock().getLightFromSky()).getAttribute(attribute.fulfill(2));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getBlock().getLightLevel()).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\"))\n return new Element(getBlock().getBlockPower()).getAttribute(attribute.fulfill(1));\n if (attribute.startsWith(\"String_Node_Str\")) {\n if (Depends.worldGuard == null) {\n dB.echoError(\"String_Node_Str\");\n return null;\n }\n if (attribute.hasContext(1)) {\n dList region_list = dList.valueOf(attribute.getContext(1));\n for (String region : region_list) if (WorldGuardUtilities.inRegion(this, region))\n return Element.TRUE.getAttribute(attribute.fulfill(1));\n return Element.FALSE.getAttribute(attribute.fulfill(1));\n } else {\n return new Element(WorldGuardUtilities.inRegion(this)).getAttribute(attribute.fulfill(1));\n }\n }\n if (attribute.startsWith(\"String_Node_Str\")) {\n if (Depends.worldGuard == null) {\n dB.echoError(\"String_Node_Str\");\n return null;\n }\n return new dList(WorldGuardUtilities.getRegions(this)).getAttribute(attribute.fulfill(1));\n }\n for (Property property : PropertyParser.getProperties(this)) {\n String returned = property.getAttribute(attribute);\n if (returned != null)\n return returned;\n }\n return new Element(identify()).getAttribute(attribute);\n}\n"
"protected void doRender(Animation animation, int frame, final File targetFile, double detailHint, boolean alpha) {\n targetApplication.setSlider(frame);\n animation.applyFrame(frame);\n animatorSceneController.addPrePaintTask(preRenderTask);\n animatorSceneController.addPostPaintTask(prePostRenderTask);\n ScreenshotPaintTask screenshotTask = new ScreenshotPaintTask(targetFile, alpha);\n animatorSceneController.addPostPaintTask(screenshotTask);\n animatorSceneController.addPostPaintTask(postRenderTask);\n wwd.redraw();\n screenshotTask.waitForScreenshot();\n}\n"
"public void loadTaskData(Task t) {\n Drawable applicationIcon = mApplicationIconCache.getAndInvalidateIfModified(t.key);\n Bitmap thumbnail = mThumbnailCache.getAndInvalidateIfModified(t.key);\n boolean requiresLoad = (applicationIcon == null) || (thumbnail == null);\n applicationIcon = applicationIcon != null ? applicationIcon : mDefaultApplicationIcon;\n thumbnail = thumbnail != null ? thumbnail : mDefaultThumbnail;\n if (requiresLoad) {\n mLoadQueue.addTask(t);\n }\n t.notifyTaskDataLoaded(thumbnail, applicationIcon);\n}\n"
"public void doAction(PortletWindow portletWindow, HttpServletRequest request, HttpServletResponse response) throws PortletException, IOException, PortletContainerException {\n ensureInitialized();\n InternalPortletWindow internalPortletWindow = new InternalPortletWindowImpl(PortletContextManager.getPortletContext(servletContext, portletWindow.getContextPath()), portletWindow);\n debugWithName(\"String_Node_Str\" + portletWindow.getPortletName());\n InternalActionRequest actionRequest = getOptionalContainerServices().getPortletEnvironmentService().createActionRequest(this, request, response, internalPortletWindow);\n InternalActionResponse actionResponse = getOptionalContainerServices().getPortletEnvironmentService().createActionResponse(this, request, response, internalPortletWindow);\n PortletInvokerService invoker = optionalContainerServices.getPortletInvokerService();\n try {\n ContainerInvocation.setInvocation(this, internalPortletWindow);\n invoker.action(actionRequest, actionResponse, internalPortletWindow);\n } finally {\n ContainerInvocation.clearInvocation();\n }\n debugWithName(\"String_Node_Str\" + portletWindow.getPortletName());\n PortletURLProvider portletURLProvider = requiredContainerServices.getPortalCallbackService().getPortletURLProvider(request, internalPortletWindow);\n portletURLProvider.savePortalURL(request);\n saveChangedParameters((PortletRequest) actionRequest, (StateAwareResponseImpl) actionResponse, portletURLProvider);\n EventProvider provider = this.getRequiredContainerServices().getPortalCallbackService().getEventProvider(request, portletWindow);\n provider.fireEvents(this);\n String location = actionResponse.getRedirectLocation();\n if (location == null) {\n debugWithName(\"String_Node_Str\");\n PortletURLProvider redirectURL = requiredContainerServices.getPortalCallbackService().getPortletURLProvider(request, internalPortletWindow);\n saveChangedParameters(actionRequest, actionResponse, redirectURL);\n location = actionResponse.encodeRedirectURL(redirectURL.toString());\n }\n response.sendRedirect(location);\n debugWithName(\"String_Node_Str\");\n}\n"
"protected Callback createCallback(String methodName, String[] parameterTypes, Object[] params) {\n Method m;\n try {\n m = Callback.getMethod(methodName, this, parameterTypes);\n } catch (Exception e) {\n writeError(\"String_Node_Str\" + methodName + \"String_Node_Str\" + Arrays.toString(parameterTypes) + \"String_Node_Str\");\n e.printStackTrace();\n fail();\n return null;\n }\n return new Callback(m, this, params);\n}\n"
"public Map getRowValue() throws DataException {\n try {\n if (this.rowCount == 0) {\n if (this.exprValueMap == null)\n this.exprValueMap = this.getValueMap();\n } else if (currReadIndex < currRowIndex + 1) {\n this.skipTo(currRowIndex);\n this.exprValueMap = this.getValueMap();\n }\n currReadIndex = currRowIndex + 1;\n } catch (IOException e) {\n throw new DataException(ResourceConstants.RD_LOAD_ERROR, e, \"String_Node_Str\");\n }\n return exprValueMap;\n}\n"
"public int method(boolean subMethod, boolean isInterface, List<MethodBody> callStack, String pkg, boolean needsActivation, List<AssignableAVM2Item> subvariables, int initScope, boolean hasRest, int line, String className, String superType, boolean constructor, SourceGeneratorLocalData localData, List<GraphTargetItem> paramTypes, List<String> paramNames, List<GraphTargetItem> paramValues, List<GraphTargetItem> body, GraphTargetItem retType) throws CompilationException {\n SourceGeneratorLocalData newlocalData = new SourceGeneratorLocalData(new HashMap<String, Integer>(), 1, true, 0);\n newlocalData.currentClass = className;\n newlocalData.pkg = localData.pkg;\n newlocalData.callStack.addAll(localData.callStack);\n newlocalData.traitUsages = localData.traitUsages;\n newlocalData.currentScript = localData.currentScript;\n newlocalData.documentClass = localData.documentClass;\n newlocalData.subMethod = subMethod;\n localData = newlocalData;\n localData.activationReg = 0;\n for (int i = 0; i < subvariables.size(); i++) {\n AssignableAVM2Item an = subvariables.get(i);\n if (an instanceof UnresolvedAVM2Item) {\n UnresolvedAVM2Item n = (UnresolvedAVM2Item) an;\n if (n.resolved == null) {\n String fullClass = localData.getFullClass();\n GraphTargetItem res = n.resolve(new TypeItem(fullClass), paramTypes, paramNames, abc, allABCs, callStack, subvariables);\n if (res instanceof AssignableAVM2Item) {\n subvariables.set(i, (AssignableAVM2Item) res);\n } else {\n subvariables.remove(i);\n i--;\n }\n }\n }\n }\n for (int t = 0; t < paramTypes.size(); t++) {\n GraphTargetItem an = paramTypes.get(t);\n if (an instanceof UnresolvedAVM2Item) {\n UnresolvedAVM2Item n = (UnresolvedAVM2Item) an;\n if (n.resolved == null) {\n String fullClass = localData.getFullClass();\n GraphTargetItem res = n.resolve(new TypeItem(fullClass), paramTypes, paramNames, abc, allABCs, callStack, subvariables);\n paramTypes.set(t, res);\n }\n }\n }\n boolean hasArguments = false;\n List<String> slotNames = new ArrayList<>();\n List<String> slotTypes = new ArrayList<>();\n slotNames.add(\"String_Node_Str\");\n slotTypes.add(\"String_Node_Str\");\n List<String> registerNames = new ArrayList<>();\n List<String> registerTypes = new ArrayList<>();\n if (className != null) {\n String fullClassName = pkg == null || pkg.isEmpty() ? className : pkg + \"String_Node_Str\" + className;\n registerTypes.add(fullClassName);\n localData.scopeStack.add(new LocalRegAVM2Item(null, registerNames.size(), null));\n registerNames.add(\"String_Node_Str\");\n } else {\n registerTypes.add(\"String_Node_Str\");\n registerNames.add(\"String_Node_Str\");\n }\n for (GraphTargetItem t : paramTypes) {\n registerTypes.add(t.toString());\n slotTypes.add(t.toString());\n }\n registerNames.addAll(paramNames);\n slotNames.addAll(paramNames);\n if (hasRest) {\n slotTypes.add(\"String_Node_Str\");\n }\n localData.registerVars.clear();\n for (AssignableAVM2Item an : subvariables) {\n if (an instanceof NameAVM2Item) {\n NameAVM2Item n = (NameAVM2Item) an;\n if (n.getVariableName().equals(\"String_Node_Str\") & !n.isDefinition()) {\n registerNames.add(\"String_Node_Str\");\n registerTypes.add(\"String_Node_Str\");\n hasArguments = true;\n break;\n }\n }\n }\n int paramRegCount = registerNames.size();\n if (needsActivation) {\n registerNames.add(\"String_Node_Str\");\n localData.activationReg = registerNames.size() - 1;\n registerTypes.add(\"String_Node_Str\");\n localData.scopeStack.add(new LocalRegAVM2Item(null, localData.activationReg, null));\n }\n for (AssignableAVM2Item an : subvariables) {\n if (an instanceof NameAVM2Item) {\n NameAVM2Item n = (NameAVM2Item) an;\n if (n.isDefinition()) {\n if (!needsActivation || (n.getSlotScope() <= 0)) {\n registerNames.add(n.getVariableName());\n registerTypes.add(n.type.toString());\n slotNames.add(n.getVariableName());\n slotTypes.add(n.type.toString());\n }\n }\n }\n }\n int slotScope = subMethod ? 0 : 1;\n for (AssignableAVM2Item an : subvariables) {\n if (an instanceof NameAVM2Item) {\n NameAVM2Item n = (NameAVM2Item) an;\n if (n.getVariableName() != null) {\n if (!n.getVariableName().equals(\"String_Node_Str\") && needsActivation) {\n if (n.getSlotNumber() <= 0) {\n n.setSlotNumber(slotNames.indexOf(n.getVariableName()));\n n.setSlotScope(slotScope);\n }\n } else {\n n.setRegNumber(registerNames.indexOf(n.getVariableName()));\n }\n }\n }\n }\n for (int i = 0; i < registerNames.size(); i++) {\n if (needsActivation && i > localData.activationReg) {\n break;\n }\n localData.registerVars.put(registerNames.get(i), i);\n }\n List<NameAVM2Item> declarations = new ArrayList<>();\n loopn: for (AssignableAVM2Item an : subvariables) {\n if (an instanceof NameAVM2Item) {\n NameAVM2Item n = (NameAVM2Item) an;\n if (needsActivation) {\n if (n.getSlotScope() != slotScope) {\n continue;\n } else {\n if (n.getSlotNumber() < paramRegCount) {\n continue;\n }\n }\n }\n for (NameAVM2Item d : declarations) {\n if (n.getVariableName() != null && n.getVariableName().equals(d.getVariableName())) {\n continue loopn;\n }\n }\n for (GraphTargetItem it : body) {\n if (it instanceof NameAVM2Item) {\n NameAVM2Item n2 = (NameAVM2Item) it;\n if (n2.isDefinition() && n2.getAssignedValue() != null && n2.getVariableName().equals(n.getVariableName())) {\n continue loopn;\n }\n if (!n2.isDefinition() && n2.getVariableName() != null && n2.getVariableName().equals(n.getVariableName())) {\n break;\n }\n }\n }\n if (n.unresolved) {\n continue;\n }\n if (n.redirect != null) {\n continue;\n }\n if (n.getNs() != null) {\n continue;\n }\n if (\"String_Node_Str\".equals(n.getVariableName()) || paramNames.contains(n.getVariableName()) || \"String_Node_Str\".equals(n.getVariableName())) {\n continue;\n }\n NameAVM2Item d = new NameAVM2Item(n.type, n.line, n.getVariableName(), NameAVM2Item.getDefaultValue(\"String_Node_Str\" + n.type), true, n.openedNamespaces);\n if (needsActivation) {\n if (d.getSlotNumber() <= 0) {\n d.setSlotNumber(n.getSlotNumber());\n d.setSlotScope(n.getSlotScope());\n }\n } else {\n d.setRegNumber(n.getRegNumber());\n }\n declarations.add(d);\n }\n }\n int[] param_types = new int[paramTypes.size()];\n ValueKind[] optional = new ValueKind[paramValues.size()];\n for (int i = 0; i < paramTypes.size(); i++) {\n param_types[i] = typeName(localData, paramTypes.get(i));\n }\n for (int i = 0; i < paramValues.size(); i++) {\n optional[i] = getValueKind(Namespace.KIND_NAMESPACE, paramTypes.get(paramTypes.size() - paramValues.size() + i), paramValues.get(i));\n if (optional[i] == null) {\n throw new CompilationException(\"String_Node_Str\", line);\n }\n }\n MethodInfo mi = new MethodInfo(param_types, constructor ? 0 : typeName(localData, retType), 0, 0, optional, new int[0]);\n if (hasArguments) {\n mi.setFlagNeed_Arguments();\n }\n if (!paramValues.isEmpty()) {\n mi.setFlagHas_optional();\n }\n if (hasRest) {\n mi.setFlagNeed_rest();\n }\n int mindex;\n if (!isInterface) {\n MethodBody mbody = new MethodBody();\n if (needsActivation) {\n mbody.traits = new Traits();\n int slotId = 1;\n for (int i = 1; i < slotNames.size(); i++) {\n TraitSlotConst tsc = new TraitSlotConst();\n tsc.slot_id = slotId++;\n tsc.name_index = abc.constants.getMultinameId(new Multiname(Multiname.QNAME, abc.constants.getStringId(slotNames.get(i), true), abc.constants.getNamespaceId(new Namespace(Namespace.KIND_PACKAGE_INTERNAL, abc.constants.getStringId(pkg, true)), 0, true), 0, 0, new ArrayList<Integer>()), true);\n tsc.type_index = typeName(localData, new TypeItem(slotTypes.get(i)));\n mbody.traits.traits.add(tsc);\n }\n for (int i = 1; i < paramRegCount; i++) {\n NameAVM2Item param = new NameAVM2Item(new TypeItem(registerTypes.get(i)), 0, registerNames.get(i), null, false, new ArrayList<Integer>());\n param.setRegNumber(i);\n NameAVM2Item d = new NameAVM2Item(new TypeItem(registerTypes.get(i)), 0, registerNames.get(i), param, true, new ArrayList<Integer>());\n d.setSlotScope(slotScope);\n d.setSlotNumber(slotNames.indexOf(registerNames.get(i)));\n declarations.add(d);\n }\n }\n if (body != null) {\n body.addAll(0, declarations);\n }\n localData.exceptions = new ArrayList<>();\n localData.callStack.add(mbody);\n List<GraphSourceItem> src = body == null ? new ArrayList<GraphSourceItem>() : generate(localData, body);\n mbody.method_info = abc.addMethodInfo(mi);\n mi.setBody(mbody);\n List<AVM2Instruction> mbodyCode = toInsList(src);\n mbody.setCode(new AVM2Code());\n mbody.getCode().code = mbodyCode;\n if (needsActivation) {\n if (localData.traitUsages.containsKey(mbody)) {\n List<Integer> usages = localData.traitUsages.get(mbody);\n for (int i = 0; i < mbody.traits.traits.size(); i++) {\n if (usages.contains(i)) {\n TraitSlotConst tsc = (TraitSlotConst) mbody.traits.traits.get(i);\n GraphTargetItem type = TypeItem.UNBOUNDED;\n if (tsc.type_index > 0) {\n type = new TypeItem(abc.constants.constant_multiname.get(tsc.type_index).getNameWithNamespace(abc.constants, true));\n }\n NameAVM2Item d = new NameAVM2Item(type, 0, tsc.getName(abc).getName(abc.constants, new ArrayList<String>(), true), NameAVM2Item.getDefaultValue(\"String_Node_Str\" + type), true, new ArrayList<Integer>());\n d.setSlotNumber(tsc.slot_id);\n d.setSlotScope(slotScope);\n mbodyCode.addAll(0, toInsList(d.toSourceIgnoreReturnValue(localData, this)));\n }\n }\n }\n List<AVM2Instruction> acts = new ArrayList<>();\n acts.add(ins(new NewActivationIns()));\n acts.add(ins(new DupIns()));\n acts.add(AssignableAVM2Item.generateSetLoc(localData.activationReg));\n acts.add(ins(new PushScopeIns()));\n mbodyCode.addAll(0, acts);\n }\n if (constructor) {\n List<ABC> abcs = new ArrayList<>();\n abcs.add(abc);\n abcs.addAll(allABCs);\n int parentConstMinAC = 0;\n for (ABC a : abcs) {\n int ci = a.findClassByName(superType);\n if (ci > -1) {\n MethodInfo pmi = a.method_info.get(a.instance_info.get(ci).iinit_index);\n parentConstMinAC = pmi.param_types.length;\n if (pmi.flagHas_optional()) {\n parentConstMinAC -= pmi.optional.length;\n }\n }\n }\n int ac = -1;\n for (AVM2Instruction ins : mbodyCode) {\n if (ins.definition instanceof ConstructSuperIns) {\n ac = ins.operands[0];\n if (parentConstMinAC > ac) {\n throw new CompilationException(\"String_Node_Str\", line);\n }\n }\n }\n if (ac == -1) {\n if (parentConstMinAC == 0) {\n mbodyCode.add(0, new AVM2Instruction(0, new GetLocal0Ins(), null));\n mbodyCode.add(1, new AVM2Instruction(0, new ConstructSuperIns(), new int[] { 0 }));\n } else {\n throw new CompilationException(\"String_Node_Str\", line);\n }\n }\n }\n if (className != null && !subMethod) {\n mbodyCode.add(0, new AVM2Instruction(0, new GetLocal0Ins(), null));\n mbodyCode.add(1, new AVM2Instruction(0, new PushScopeIns(), null));\n }\n boolean addRet = false;\n if (!mbodyCode.isEmpty()) {\n InstructionDefinition lastDef = mbodyCode.get(mbodyCode.size() - 1).definition;\n if (!((lastDef instanceof ReturnVoidIns) || (lastDef instanceof ReturnValueIns))) {\n addRet = true;\n }\n } else {\n addRet = true;\n }\n if (addRet) {\n if (retType.toString().equals(\"String_Node_Str\") || retType.toString().equals(\"String_Node_Str\") || constructor) {\n mbodyCode.add(new AVM2Instruction(0, new ReturnVoidIns(), null));\n } else {\n mbodyCode.add(new AVM2Instruction(0, new PushUndefinedIns(), null));\n mbodyCode.add(new AVM2Instruction(0, new ReturnValueIns(), null));\n }\n }\n mbody.exceptions = localData.exceptions.toArray(new ABCException[localData.exceptions.size()]);\n int offset = 0;\n for (int i = 0; i < mbodyCode.size(); i++) {\n AVM2Instruction ins = mbodyCode.get(i);\n if (ins instanceof ExceptionMarkAVM2Instruction) {\n ExceptionMarkAVM2Instruction m = (ExceptionMarkAVM2Instruction) ins;\n switch(m.markType) {\n case MARK_E_START:\n mbody.exceptions[m.exceptionId].start = offset;\n break;\n case MARK_E_END:\n mbody.exceptions[m.exceptionId].end = offset;\n break;\n case MARK_E_TARGET:\n mbody.exceptions[m.exceptionId].target = offset;\n break;\n }\n mbodyCode.remove(i);\n i--;\n continue;\n }\n offset += ins.getBytes().length;\n }\n mbody.markOffsets();\n mbody.autoFillStats(abc, initScope, className != null);\n abc.addMethodBody(mbody);\n mindex = mbody.method_info;\n } else {\n mindex = abc.addMethodInfo(mi);\n }\n return mindex;\n}\n"
"public void initTextures(ISet set, ContentVirtualArray contentVA, StorageVirtualArray storageVA) {\n int textureWidth = storageVA.size();\n int textureHeight = numberOfElements = contentVA.size();\n if (uncertaintyVA != null) {\n textureHeight = numberOfElements = uncertaintyVA.size();\n }\n numberOfTextures = (int) Math.ceil((double) numberOfElements / MAX_SAMPLES_PER_TEXTURE);\n if (numberOfTextures <= 1)\n samplesPerTexture = numberOfElements;\n else\n samplesPerTexture = MAX_SAMPLES_PER_TEXTURE;\n textures.clear();\n numberSamples.clear();\n Texture tempTexture;\n samplesPerTexture = (int) Math.ceil((double) textureHeight / numberOfTextures);\n FloatBuffer[] floatBuffer = new FloatBuffer[numberOfTextures];\n for (int iTexture = 0; iTexture < numberOfTextures; iTexture++) {\n if (iTexture == numberOfTextures - 1) {\n numberSamples.add(textureHeight - samplesPerTexture * iTexture);\n floatBuffer[iTexture] = FloatBuffer.allocate((textureHeight - samplesPerTexture * iTexture) * textureWidth * 4);\n } else {\n numberSamples.add(samplesPerTexture);\n floatBuffer[iTexture] = FloatBuffer.allocate(samplesPerTexture * textureWidth * 4);\n }\n }\n int contentCount = 0;\n int textureCounter = 0;\n for (Integer contentIndex : contentVA) {\n contentCount++;\n float uncertainty;\n try {\n uncertainty = set.getNormalizedUncertainty(contentIndex);\n } catch (IllegalStateException ex) {\n uncertainty = 0;\n }\n for (int i = 0; i < textureWidth; i++) {\n float[] rgba = new float[4];\n if ((float) i / textureWidth > uncertainty) {\n rgba = light;\n } else {\n rgba = dark;\n }\n floatBuffer[textureCounter].put(rgba);\n }\n if (contentCount >= numberSamples.get(textureCounter)) {\n floatBuffer[textureCounter].rewind();\n TextureData texData = new TextureData(GLProfile.getDefault(), GL2.GL_RGBA, textureWidth, numberSamples.get(textureCounter), 0, GL2.GL_RGBA, GL2.GL_FLOAT, false, false, false, floatBuffer[textureCounter], null);\n tempTexture = TextureIO.newTexture(0);\n tempTexture.updateImage(texData);\n textures.add(tempTexture);\n textureCounter++;\n contentCount = 0;\n }\n }\n}\n"
"public void shutdown() {\n writeQueue.clear();\n urgentWriteQueue.clear();\n final CountDownLatch latch = new CountDownLatch(1);\n ioSelector.addTaskAndWakeup(new Runnable() {\n\n public void run() {\n try {\n socketChannel.closeOutbound();\n } catch (IOException e) {\n logger.finest(\"String_Node_Str\", e);\n } finally {\n latch.countDown();\n }\n }\n });\n ioSelector.wakeup();\n try {\n latch.await(TIMEOUT, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n EmptyStatement.ignore(e);\n }\n}\n"
"void setAttribute(String name, String value) throws SAXException {\n if (name.equals(ID)) {\n id = getInt(value);\n } else if (name.equals(NAME)) {\n this.name = value;\n } else if (name.equals(COLOR)) {\n color = value.charAt(0);\n } else if (name.equals(IGNORE_CHESTS)) {\n ignoreChestLocks = true;\n } else if (name.equals(IGNORE_AREAS)) {\n ignoreAreas = true;\n } else if (name.equals(FORWARD_UNKNOWN)) {\n forwardUnknownCommands = true;\n } else if (name.equals(SHOW_TITLE)) {\n showTitle = true;\n } else if (name.equals(COOLDOWN)) {\n cooldown = getInt(value);\n } else if (name.equals(WARMUP)) {\n warmup = getInt(value);\n }\n}\n"
"private DesignElement makeLocalCompositeValue(DesignElement topElement, ElementPropertyDefn prop, DesignElement content) {\n Object localValue = topElement.getLocalProperty(module, prop);\n if (localValue != null)\n return content;\n ArrayList inherited = (ArrayList) topElement.getProperty(module, prop);\n if (inherited == null)\n return null;\n int index = -1;\n if (content != null)\n index = inherited.indexOf(content);\n List value = (List) ModelUtil.copyValue(prop, inherited);\n ActivityStack activityStack = module.getActivityStack();\n list = new ArrayList();\n PropertyRecord propRecord = new PropertyRecord(topElement, prop, list);\n activityStack.execute(propRecord);\n ContainerContext context = new ContainerContext(topElement, prop.getName());\n for (int i = 0; i < value.size(); i++) {\n DesignElement tmpContent = (DesignElement) value.get(i);\n ContentRecord addRecord = new ContentRecord(module, context, tmpContent, i);\n activityStack.execute(addRecord);\n }\n if (index != -1)\n return (DesignElement) value.get(index);\n return null;\n}\n"
"public static Location deployApplication(AppFabricService.Iface appFabricServer, LocationFactory locationFactory, final String account, final AuthToken token, final String applicationId, final String fileName, Class<? extends Application> applicationClz) throws Exception {\n Preconditions.checkNotNull(applicationClz, \"String_Node_Str\");\n Application application = applicationClz.newInstance();\n ApplicationSpecification appSpec = application.configure();\n Location deployedJar = locationFactory.create(createDeploymentJar(applicationClz, appSpec).getAbsolutePath());\n try {\n byte[] chunk = is.read();\n while (chunk.length > 0) {\n appFabricServer.chunk(token, id, ByteBuffer.wrap(chunk));\n chunk = is.read();\n DeploymentStatus status = appFabricServer.dstatus(token, id);\n Preconditions.checkState(status.getOverall() == 2, \"String_Node_Str\");\n }\n appFabricServer.deploy(token, id);\n int status = appFabricServer.dstatus(token, id).getOverall();\n while (status == 3) {\n status = appFabricServer.dstatus(token, id).getOverall();\n TimeUnit.MILLISECONDS.sleep(100);\n }\n Preconditions.checkState(status == 5, \"String_Node_Str\");\n } finally {\n deployedJar.delete(true);\n }\n return deployedJar;\n}\n"
"public void onProgressUpdate(UploadItem uploadItem, int chunkNumber, int numChunks) {\n MFConfiguration.getStaticMFLogger().logMessage(TAG, \"String_Node_Str\");\n notifyUploadListenerOnProgressUpdate(uploadItem, chunkNumber, numChunks);\n}\n"
"public void renderTerrainArialPerspective(DrawContext dc) {\n Shader shader;\n String glslOptions = \"String_Node_Str\" + atmosphere.getParamCode();\n glslOptions += dc.isPosEffectsEnabled() ? \"String_Node_Str\" : \"String_Node_Str\";\n glslOptions += dc.isShadowsEnabled() ? \"String_Node_Str\" : \"String_Node_Str\";\n glslOptions += (useShadowVolume && dc.isShadowsEnabled()) ? \"String_Node_Str\" : \"String_Node_Str\";\n shader = dc.getShaderContext().getShader(\"String_Node_Str\", glslOptions);\n shader.enable(dc.getShaderContext());\n if (dc.isShadowsEnabled()) {\n shader.setParam(\"String_Node_Str\", ShadowMapFactory.getWorldShadowMapInstance(dc).computeEyeToTextureTransform(dc.getView()));\n shader.setParam(\"String_Node_Str\", 3);\n if (useShadowVolume) {\n shader.setParam(\"String_Node_Str\", 8);\n }\n }\n shader.setParam(\"String_Node_Str\", 0);\n shader.setParam(\"String_Node_Str\", 1);\n shader.setParam(\"String_Node_Str\", 2);\n shader.setParam(\"String_Node_Str\", 4);\n shader.setParam(\"String_Node_Str\", 5);\n shader.setParam(\"String_Node_Str\", 6);\n shader.setParam(\"String_Node_Str\", 7);\n shader.setParam(\"String_Node_Str\", 9);\n shader.setParam(\"String_Node_Str\", dc.getSunlightDirection());\n shader.setParam(\"String_Node_Str\", new float[] { calcExposure(dc) });\n shader.setParam(\"String_Node_Str\", dc.getView().getEyePoint());\n shader.setParam(\"String_Node_Str\", new float[] { (float) dc.getView().getNearClipDistance() });\n shader.setParam(\"String_Node_Str\", new float[] { (float) dc.getView().getFarClipDistance() });\n dc.getView().pushReferenceCenter(dc, Vec4.ZERO);\n drawQuadTex(dc.getGL().getGL2());\n dc.getView().popReferenceCenter(dc);\n shader.disable(dc.getShaderContext());\n}\n"
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_my_requests);\n ButterKnife.bind(this);\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\n fab.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n Snackbar.make(view, \"String_Node_Str\", Snackbar.LENGTH_LONG).setAction(\"String_Node_Str\", null).show();\n }\n });\n searchIV.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n startActivity(SearchActivity.createIntent());\n }\n });\n if (AppController.getStoredString(Constants.Authorization) != null) {\n setupViewPager(mainVp);\n mainTabs.setupWithViewPager(mainVp);\n mainVp.setCurrentItem(1, false);\n } else {\n hasNotAuthorityFirstTime = true;\n myGiftLoginBtn.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n onBackPressed();\n }\n });\n replaceFragment(new MyRequestsFragment(), MyRequestsFragment.class.getName());\n}\n"
"private List<JspcWorker> initJspcWorkers(StringBuilder classpathStr, String[] jspFiles, List<String> jspFilesList) throws JasperException, IOException {\n List<JspcWorker> workers = new ArrayList<>();\n int minItem = jspFiles.length / threads;\n int maxItem = minItem + 1;\n int threadsWithMaxItems = jspFiles.length - threads * minItem;\n int start = 0;\n JspCContextAccessor topJspC = initJspc(classpathStr, -1, null);\n for (int index = 0; index < threads; index++) {\n int itemsCount = (index < threadsWithMaxItems ? maxItem : minItem);\n int end = start + itemsCount;\n List<String> jspFilesSubList = jspFilesList.subList(start, end);\n if (jspFilesSubList.isEmpty()) {\n getLog().info(\"String_Node_Str\" + threadNumber + \"String_Node_Str\");\n } else {\n JspC firstJspC = initJspc(classpathStr, index, topJspC);\n JspcWorker worker = new JspcWorker(firstJspC, jspFilesSubList);\n workers.add(worker);\n start = end;\n getLog().info(\"String_Node_Str\" + threadNumber + \"String_Node_Str\" + jspFilesSubList.size());\n }\n }\n return workers;\n}\n"
"protected void setConnectionParam(DataSource obj, String propertyName, String value) {\n Method[] setMethods = obj.getClass().getMethods();\n for (Method setMethod : setMethods) {\n if (!setMethod.getName().equals(\"String_Node_Str\" + StringUtil.upperFirstLetter(propertyName))) {\n continue;\n }\n if (setMethod.getParameterTypes().length > 1) {\n continue;\n }\n Class<?> paramType = setMethod.getParameterTypes()[0];\n try {\n if (paramType == Boolean.TYPE || paramType == Boolean.class) {\n Boolean v = (Boolean.valueOf(value)).booleanValue();\n setMethod.invoke(obj, v);\n } else if (paramType == Integer.TYPE || paramType == Integer.class) {\n Integer v = Integer.parseInt(value);\n setMethod.invoke(obj, v);\n } else if (paramType == Byte.TYPE || paramType == Byte.class) {\n Byte v = Byte.parseByte(value);\n setMethod.invoke(obj, v);\n } else if (paramType == Long.TYPE || paramType == Long.class) {\n Long v = Long.parseLong(value);\n setMethod.invoke(obj, v);\n } else if (paramType == Short.TYPE || paramType == Short.class) {\n Short v = Short.valueOf(value);\n setMethod.invoke(obj, v);\n } else if (paramType == Float.TYPE || paramType == Float.class) {\n Float v = Float.valueOf(value);\n setMethod.invoke(obj, v);\n } else if (paramType == Double.TYPE || paramType == Double.class) {\n Double v = Double.valueOf(value);\n setMethod.invoke(obj, v);\n } else if (paramType == Character.TYPE || paramType == Character.class) {\n Character v = value.charAt(0);\n setMethod.invoke(obj, v);\n } else {\n setMethod.invoke(obj, value);\n }\n }\n }\n}\n"
"public JavaClass getReturnType() {\n JType type = xjcMethod.type();\n try {\n Field argsField = PrivilegedAccessHelper.getDeclaredField(type.getClass(), \"String_Node_Str\", true);\n List<JClass> args = (List<JClass>) PrivilegedAccessHelper.getValueFromField(argsField, type);\n arg = args.get(0);\n } catch (Exception e) {\n }\n if (((XJCJavaClassImpl) getOwningClass()).getJavaModel() != null) {\n return ((XJCJavaClassImpl) getOwningClass()).getJavaModel().getClass(type.fullName());\n }\n try {\n return new XJCJavaClassImpl(jCodeModel._class(type.fullName()), jCodeModel, dynamicClassLoader);\n } catch (JClassAlreadyExistsException ex) {\n return new XJCJavaClassImpl(jCodeModel._getClass(type.fullName()), jCodeModel, dynamicClassLoader);\n }\n}\n"
"private Composite Processing_OptionsCreate(Composite parent) {\n String defKey;\n String defaultString;\n boolean defaultBool = false;\n String defaultArray;\n Group editGroupProcessing_Options = new Group(parent, SWT.NONE);\n GridLayout layout = new GridLayout();\n editGroupProcessing_Options.setLayout(layout);\n editGroupProcessing_Options.setText(\"String_Node_Str\");\n editGroupProcessing_Options.setData(\"String_Node_Str\", \"String_Node_Str\");\n String descProcessing_Options = \"String_Node_Str\";\n if (descProcessing_Options.length() > 0) {\n Label descLabelProcessing_Options = new Label(editGroupProcessing_Options, SWT.WRAP);\n descLabelProcessing_Options.setText(descProcessing_Options);\n }\n OptionData[] data;\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultBool = getBoolDef(defKey);\n } else {\n defaultBool = false;\n }\n setProcessing_Optionsoptimize_widget(new BooleanOptionWidget(editGroupProcessing_Options, SWT.NONE, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", defaultBool)));\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultBool = getBoolDef(defKey);\n } else {\n defaultBool = false;\n }\n setProcessing_Optionswhole_optimize_widget(new BooleanOptionWidget(editGroupProcessing_Options, SWT.NONE, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", defaultBool)));\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultBool = getBoolDef(defKey);\n } else {\n defaultBool = false;\n }\n setProcessing_Optionsvia_grimp_widget(new BooleanOptionWidget(editGroupProcessing_Options, SWT.NONE, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", defaultBool)));\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultBool = getBoolDef(defKey);\n } else {\n defaultBool = false;\n }\n setProcessing_Optionsvia_shimple_widget(new BooleanOptionWidget(editGroupProcessing_Options, SWT.NONE, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", defaultBool)));\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultBool = getBoolDef(defKey);\n } else {\n defaultBool = false;\n }\n setProcessing_Optionsomit_excepting_unit_edges_widget(new BooleanOptionWidget(editGroupProcessing_Options, SWT.NONE, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", defaultBool)));\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultBool = getBoolDef(defKey);\n } else {\n defaultBool = false;\n }\n setProcessing_Optionstrim_cfgs_widget(new BooleanOptionWidget(editGroupProcessing_Options, SWT.NONE, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", defaultBool)));\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultBool = getBoolDef(defKey);\n } else {\n defaultBool = false;\n }\n setProcessing_Optionsignore_resolution_errors_widget(new BooleanOptionWidget(editGroupProcessing_Options, SWT.NONE, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", defaultBool)));\n data = new OptionData[] { new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", false), new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", false), new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", false), new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", true) };\n setProcessing_Optionswrong_staticness_widget(new MultiOptionWidget(editGroupProcessing_Options, SWT.NONE, data, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\")));\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultString = getStringDef(defKey);\n getProcessing_Optionswrong_staticness_widget().setDef(defaultString);\n }\n data = new OptionData[] { new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", false), new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", false), new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", true) };\n setProcessing_Optionsfield_type_mismatches_widget(new MultiOptionWidget(editGroupProcessing_Options, SWT.NONE, data, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\")));\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultString = getStringDef(defKey);\n getProcessing_Optionsfield_type_mismatches_widget().setDef(defaultString);\n }\n data = new OptionData[] { new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", false), new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", true), new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", false) };\n setProcessing_Optionsthrow_analysis_widget(new MultiOptionWidget(editGroupProcessing_Options, SWT.NONE, data, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\")));\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultString = getStringDef(defKey);\n getProcessing_Optionsthrow_analysis_widget().setDef(defaultString);\n }\n data = new OptionData[] { new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", true), new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", false), new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", false), new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", false) };\n setProcessing_Optionscheck_init_throw_analysis_widget(new MultiOptionWidget(editGroupProcessing_Options, SWT.NONE, data, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\")));\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultString = getStringDef(defKey);\n getProcessing_Optionscheck_init_throw_analysis_widget().setDef(defaultString);\n }\n defKey = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n defKey = defKey.trim();\n if (isInDefList(defKey)) {\n defaultString = getArrayDef(defKey);\n } else {\n defaultString = \"String_Node_Str\";\n }\n setProcessing_Optionsplugin_widget(new ListOptionWidget(editGroupProcessing_Options, SWT.NONE, new OptionData(\"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", defaultString)));\n return editGroupProcessing_Options;\n}\n"
"public void shouldEstablishConnectionWithRequestHeaderSecWebSocketExtensions() throws Exception {\n final IoHandler handler = context.mock(IoHandler.class);\n context.checking(new Expectations() {\n {\n oneOf(handler).sessionCreated(with(any(IoSessionEx.class)));\n atMost(1).of(handler).sessionOpened(with(any(IoSessionEx.class)));\n }\n });\n String[] extensions = { \"String_Node_Str\", \"String_Node_Str\" };\n ConnectFuture connectFuture = connector.connect(\"String_Node_Str\", null, extensions, handler);\n connectFuture.awaitUninterruptibly();\n assertTrue(connectFuture.isConnected());\n k3po.finish();\n}\n"
"public final <E> List<E> findAll(Class<E> entityClass, Object... rowIds) {\n EntityMetadata entityMetadata = KunderaMetadataManager.getEntityMetadata(entityClass);\n List<E> results = new ArrayList<E>();\n for (Object rowKey : rowIds) {\n E r = (E) find(entityClass, entityMetadata, rowKey.toString(), entityMetadata.getRelationNames());\n if (r != null) {\n results.add(r);\n }\n }\n return results.isEmpty() ? null : results;\n}\n"
"public void getGUINetworkData(int id, int value) {\n switch(id) {\n case 0:\n energy = (energy & 0xffff0000) | (value & 0xffff);\n break;\n case 1:\n iEnergy = Math.round(energy);\n iEnergy = (iEnergy & 0xffff) | ((value & 0xffff) << 16);\n energy = iEnergy;\n break;\n case 2:\n currentOutput = value;\n break;\n case 3:\n heat = value / 100F;\n break;\n }\n}\n"
"public void close() throws IllegalActionException {\n if (_reader != null) {\n if (_reader != FileUtilities.STD_IN) {\n try {\n _reader.close();\n } catch (IOException ex) {\n }\n }\n }\n if (_writer != null) {\n try {\n _writer.flush();\n if (_writer != _stdOut) {\n _writer.close();\n }\n } catch (IOException ex) {\n }\n }\n}\n"
"private BlockFamilyDefinitionData createBaseData(JsonObject jsonObject) {\n JsonPrimitive basedOn = jsonObject.getAsJsonPrimitive(\"String_Node_Str\");\n if (basedOn != null && !basedOn.getAsString().isEmpty()) {\n Optional<BlockFamilyDefinition> baseDef = assetManager.getAsset(basedOn.getAsString(), BlockFamilyDefinition.class);\n if (baseDef.isPresent()) {\n BlockFamilyDefinitionData data = baseDef.get().getData();\n if (data.getFamilyFactory() instanceof FreeformBlockFamilyFactory) {\n data.setFamilyFactory(null);\n }\n return data;\n } else {\n throw new JsonParseException(\"String_Node_Str\" + basedOn.getAsString() + \"String_Node_Str\");\n }\n }\n BlockFamilyDefinitionData data = new BlockFamilyDefinitionData();\n data.getBaseSection().setSounds(assetManager.getAsset(\"String_Node_Str\", BlockSounds.class).get());\n return data;\n}\n"
"public void setup() throws GenieException {\n MockitoAnnotations.initMocks(this);\n final Registry registry = Mockito.mock(Registry.class);\n this.downloadTimer = Mockito.mock(Timer.class);\n this.downloadTimerId = Mockito.mock(Id.class);\n this.uploadTimer = Mockito.mock(Timer.class);\n this.uploadTimerId = Mockito.mock(Id.class);\n this.urlFailingStrictValidationCounter = Mockito.mock(Counter.class);\n Mockito.when(registry.createId(\"String_Node_Str\")).thenReturn(this.downloadTimerId);\n Mockito.when(downloadTimerId.withTags(Mockito.anyMap())).thenReturn(downloadTimerId);\n Mockito.when(registry.timer(Mockito.eq(downloadTimerId))).thenReturn(downloadTimer);\n Mockito.when(registry.createId(\"String_Node_Str\")).thenReturn(this.uploadTimerId);\n Mockito.when(uploadTimerId.withTags(Mockito.anyMap())).thenReturn(uploadTimerId);\n Mockito.when(registry.timer(Mockito.eq(uploadTimerId))).thenReturn(uploadTimer);\n Mockito.when(registry.counter(\"String_Node_Str\")).thenReturn(urlFailingStrictValidationCounter);\n this.s3Client = Mockito.mock(AmazonS3Client.class);\n this.s3FileTransferProperties = Mockito.mock(S3FileTransferProperties.class);\n this.s3FileTransfer = new S3FileTransferImpl(this.s3Client, registry, s3FileTransferProperties);\n this.tagsCaptor = ArgumentCaptor.forClass(Map.class);\n}\n"
"public SuggestionsInfo onGetSuggestions(final TextInfo textInfo, final int suggestionsLimit) {\n try {\n final String text = textInfo.getText();\n if (shouldFilterOut(text)) {\n DictAndProximity dictInfo = null;\n try {\n dictInfo = mDictionaryPool.takeOrGetNull();\n if (null == dictInfo)\n return NOT_IN_DICT_EMPTY_SUGGESTIONS;\n return dictInfo.mDictionary.isValidWord(text) ? IN_DICT_EMPTY_SUGGESTIONS : NOT_IN_DICT_EMPTY_SUGGESTIONS;\n } finally {\n if (null != dictInfo) {\n if (!mDictionaryPool.offer(dictInfo)) {\n Log.e(TAG, \"String_Node_Str\");\n }\n }\n }\n }\n final SuggestionsGatherer suggestionsGatherer = new SuggestionsGatherer(text, mService.mSuggestionThreshold, mService.mLikelyThreshold, suggestionsLimit);\n final WordComposer composer = new WordComposer();\n final int length = text.length();\n for (int i = 0; i < length; ++i) {\n final int character = text.codePointAt(i);\n final int proximityIndex = SpellCheckerProximityInfo.getIndexOf(character);\n final int[] proximities;\n if (-1 == proximityIndex) {\n proximities = new int[] { character };\n } else {\n proximities = Arrays.copyOfRange(SpellCheckerProximityInfo.PROXIMITY, proximityIndex, proximityIndex + SpellCheckerProximityInfo.ROW_SIZE);\n }\n composer.add(character, proximities, WordComposer.NOT_A_COORDINATE, WordComposer.NOT_A_COORDINATE);\n }\n final int capitalizeType = getCapitalizationType(text);\n boolean isInDict = true;\n DictAndProximity dictInfo = null;\n try {\n dictInfo = mDictionaryPool.takeOrGetNull();\n if (null == dictInfo)\n return NOT_IN_DICT_EMPTY_SUGGESTIONS;\n dictInfo.mDictionary.getWords(composer, suggestionsGatherer, dictInfo.mProximityInfo);\n isInDict = dictInfo.mDictionary.isValidWord(text);\n if (!isInDict && CAPITALIZE_NONE != capitalizeType) {\n isInDict = dictInfo.mDictionary.isValidWord(text.toLowerCase(mLocale));\n }\n } finally {\n if (null != dictInfo) {\n if (!mDictionaryPool.offer(dictInfo)) {\n Log.e(TAG, \"String_Node_Str\");\n }\n }\n }\n final SuggestionsGatherer.Result result = suggestionsGatherer.getResults(capitalizeType, mLocale);\n if (DBG) {\n Log.i(TAG, \"String_Node_Str\" + text + \"String_Node_Str\" + suggestionsLimit);\n Log.i(TAG, \"String_Node_Str\" + isInDict);\n Log.i(TAG, \"String_Node_Str\" + (!isInDict));\n Log.i(TAG, \"String_Node_Str\" + result.mHasLikelySuggestions);\n if (null != result.mSuggestions) {\n for (String suggestion : result.mSuggestions) {\n Log.i(TAG, suggestion);\n }\n }\n }\n final int flags = (isInDict ? SuggestionsInfo.RESULT_ATTR_IN_THE_DICTIONARY : SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO);\n return new SuggestionsInfo(flags, result.mSuggestions);\n } catch (RuntimeException e) {\n if (DBG) {\n throw e;\n } else {\n Log.e(TAG, \"String_Node_Str\" + e);\n return NOT_IN_DICT_EMPTY_SUGGESTIONS;\n }\n }\n}\n"
"public ServerResponse<String> checkQuestionAnswer(String username, String question, String answer) {\n int resultCount = userMapper.selectQuestionAnswer(username, question, answer);\n if (resultCount > 0) {\n String checkToken = UUID.randomUUID().toString();\n TokenCache.setKey(TokenCache.TOKEN_PREFIX + username, checkToken);\n return ServerResponse.createBySuccess(checkToken);\n }\n return ServerResponse.createByErrorMessage(\"String_Node_Str\");\n}\n"
"public void run() {\n widget.setDate(toSet.getYear() + 1900, toSet.getMonth(), toSet.getDate());\n widget.setHours(toSet.getHours());\n widget.setMinutes(toSet.getMinutes());\n widget.setSeconds(toSet.getSeconds());\n}\n"
"protected List createQueryReply(byte[] guid, byte ttl, long speed, Response[] res, byte[] clientGUID, boolean busy, boolean uploaded, boolean measuredSpeed, boolean isFromMcast, boolean canFWTransfer) {\n List queryReplies = new ArrayList();\n QueryReply queryReply = null;\n int port = -1;\n byte[] ip = null;\n if (isFromMcast) {\n ip = RouterService.getNonForcedAddress();\n port = RouterService.getNonForcedPort();\n if (!NetworkUtils.isValidPort(port) || !NetworkUtils.isValidAddress(ip))\n isFromMcast = false;\n }\n if (!isFromMcast) {\n port = RouterService.getPort();\n if (!NetworkUtils.isValidPort(port))\n return Collections.EMPTY_LIST;\n if (canFWTransfer) {\n ip = RouterService.getExternalAddress();\n if (!NetworkUtils.isValidAddress(ip))\n canFWTransfer = false;\n }\n if (!canFWTransfer) {\n ip = RouterService.getAddress();\n if (!NetworkUtils.isValidAddress(ip))\n return Collections.EMPTY_LIST;\n }\n }\n String xmlCollectionString = LimeXMLDocumentHelper.getAggregateString(res);\n if (xmlCollectionString == null)\n xmlCollectionString = \"String_Node_Str\";\n byte[] xmlBytes = null;\n try {\n xmlBytes = xmlCollectionString.getBytes(\"String_Node_Str\");\n } catch (UnsupportedEncodingException ueex) {\n ErrorService.error(ueex, \"String_Node_Str\" + xmlCollectionString);\n }\n boolean notIncoming = !RouterService.acceptedIncomingConnection();\n Set proxies = (notIncoming ? _manager.getPushProxies() : null);\n if (xmlBytes.length > QueryReply.XML_MAX_SIZE) {\n List splitResps = new LinkedList();\n splitAndAddResponses(splitResps, res);\n while (!splitResps.isEmpty()) {\n Response[] currResps = (Response[]) splitResps.remove(0);\n String currXML = LimeXMLDocumentHelper.getAggregateString(currResps);\n byte[] currXMLBytes = null;\n try {\n currXMLBytes = currXML.getBytes(\"String_Node_Str\");\n } catch (UnsupportedEncodingException ueex) {\n ErrorService.error(ueex, \"String_Node_Str\" + currXML);\n currXMLBytes = \"String_Node_Str\".getBytes();\n }\n if ((currXMLBytes.length > QueryReply.XML_MAX_SIZE) && (currResps.length > 1))\n splitAndAddResponses(splitResps, currResps);\n else {\n byte[] xmlCompressed = null;\n if ((currXML != null) && (!currXML.equals(\"String_Node_Str\")))\n xmlCompressed = LimeXMLUtils.compress(currXMLBytes);\n else\n xmlCompressed = DataUtils.EMPTY_BYTE_ARRAY;\n queryReply = new QueryReply(guid, ttl, port, ip, speed, currResps, _clientGUID, xmlCompressed, notIncoming, busy, uploaded, measuredSpeed, ChatSettings.CHAT_ENABLED.getValue(), isFromMcast, canFWTransfer, proxies);\n queryReplies.add(queryReply);\n }\n }\n } else {\n byte[] xmlCompressed = null;\n if (xmlCollectionString != null && !xmlCollectionString.equals(\"String_Node_Str\"))\n xmlCompressed = LimeXMLUtils.compress(xmlBytes);\n else\n xmlCompressed = DataUtils.EMPTY_BYTE_ARRAY;\n queryReply = new QueryReply(guid, ttl, port, ip, speed, res, _clientGUID, xmlCompressed, notIncoming, busy, uploaded, measuredSpeed, ChatSettings.CHAT_ENABLED.getValue(), isFromMcast, canFWTransfer, proxies);\n queryReplies.add(queryReply);\n }\n return queryReplies;\n}\n"
"private static ArrayList<String> stringToArrayListString(String str) {\n ArrayList<String> als = new ArrayList<String>();\n StringTokenizer tok = new StringTokenizer(str);\n int numTokens = tok.countTokens();\n if (numTokens <= 0) {\n return null;\n }\n for (int i = 0; i < numTokens; i++) {\n String s = tok.nextToken();\n als.add(s);\n }\n return als;\n}\n"
"public void setSingleState(int Nvalue) {\n System.out.println(\"String_Node_Str\" + Nvalue);\n double arySum;\n double aryFact;\n for (int i = 0; i < controls; ++i) rawCn[i] = 0.0;\n rawCn[Nvalue] = 1.0;\n normalize();\n for (int i = 0; i < controlvalues.length; ++i) {\n rawCn[i] = 100.0d * aryCn[i];\n controlvalues[i] = 100 - (int) rawCn[i];\n }\n}\n"
"protected int getTitle() {\n return R.string.navigation_issues;\n}\n"
"public void handleEvent(Event event) {\n String key = openDataContent.canClose();\n if (key != null) {\n boolean ok = MessageDialog.openConfirm(shell, i18nFile.getText(I18nFile.CLOSEAPP), key + \"String_Node_Str\" + i18nFile.getText(I18nFile.CLOSEAPPERROR));\n event.doit = ok;\n } else\n event.doit = true;\n}\n"
"protected void dump(FileDescriptor fd, PrintWriter fout, String[] args) {\n final Printer p = new PrintWriterPrinter(fout);\n p.println(\"String_Node_Str\" + this + \"String_Node_Str\");\n p.println(\"String_Node_Str\" + mWindowCreated + \"String_Node_Str\" + mWindowAdded);\n p.println(\"String_Node_Str\" + mWindowVisible + \"String_Node_Str\" + mWindowWasVisible + \"String_Node_Str\" + mInShowWindow);\n p.println(\"String_Node_Str\" + getResources().getConfiguration());\n p.println(\"String_Node_Str\" + mToken);\n p.println(\"String_Node_Str\" + mInputBinding);\n p.println(\"String_Node_Str\" + mInputConnection);\n p.println(\"String_Node_Str\" + mStartedInputConnection);\n p.println(\"String_Node_Str\" + mInputStarted + \"String_Node_Str\" + mInputViewStarted + \"String_Node_Str\" + mCandidatesViewStarted);\n if (mInputEditorInfo != null) {\n p.println(\"String_Node_Str\");\n mInputEditorInfo.dump(p, \"String_Node_Str\");\n } else {\n p.println(\"String_Node_Str\");\n }\n p.println(\"String_Node_Str\" + mShowInputRequested + \"String_Node_Str\" + mLastShowInputRequested + \"String_Node_Str\" + Integer.toHexString(mShowInputFlags));\n p.println(\"String_Node_Str\" + mCandidatesVisibility + \"String_Node_Str\" + mFullscreenApplied + \"String_Node_Str\" + mIsFullscreen + \"String_Node_Str\" + mExtractViewHidden);\n if (mExtractedText != null) {\n p.println(\"String_Node_Str\");\n p.println(\"String_Node_Str\" + mExtractedText.text.length() + \"String_Node_Str\" + \"String_Node_Str\" + mExtractedText.startOffset);\n p.println(\"String_Node_Str\" + mExtractedText.selectionStart + \"String_Node_Str\" + mExtractedText.selectionEnd + \"String_Node_Str\" + Integer.toHexString(mExtractedText.flags));\n } else {\n p.println(\"String_Node_Str\");\n }\n p.println(\"String_Node_Str\" + mExtractedToken);\n p.println(\"String_Node_Str\" + mIsInputViewShown + \"String_Node_Str\" + mStatusIcon);\n p.println(\"String_Node_Str\");\n p.println(\"String_Node_Str\" + mTmpInsets.contentTopInsets + \"String_Node_Str\" + mTmpInsets.visibleTopInsets + \"String_Node_Str\" + mTmpInsets.touchableInsets + \"String_Node_Str\" + mTmpInsets.touchableRegion);\n p.println(\"String_Node_Str\" + mShouldClearInsetOfPreviousIme);\n p.println(\"String_Node_Str\" + mSettingsObserver);\n}\n"
"public boolean doInteraction(Object arg) {\n retries++;\n int maxRetries = 0;\n if (JDUtilities.getConfiguration().getProperty(PROPERTY_IP_RETRIES) != null)\n maxRetries = Integer.parseInt((String) JDUtilities.getConfiguration().getProperty(PROPERTY_IP_RETRIES));\n logger.info(\"String_Node_Str\" + NAME + \"String_Node_Str\" + retries);\n String ipBefore;\n String ipAfter;\n ipBefore = getIPAddress();\n logger.fine(\"String_Node_Str\" + ipBefore);\n try {\n logger.info(JDUtilities.runCommandWaitAndReturn((String) JDUtilities.getConfiguration().getProperty(PROPERTY_RECONNECT_COMMAND)));\n } catch (IOException e1) {\n e1.printStackTrace();\n return false;\n }\n if (JDUtilities.getConfiguration().getProperty(PROPERTY_IP_WAITCHECK) != null) {\n try {\n Thread.sleep(Integer.parseInt((String) JDUtilities.getConfiguration().getProperty(PROPERTY_IP_WAITCHECK)) * 1000);\n } catch (NumberFormatException e) {\n } catch (InterruptedException e) {\n }\n }\n ipAfter = getIPAddress();\n logger.fine(\"String_Node_Str\" + ipAfter);\n if (ipBefore == null || ipAfter == null || ipBefore.equals(ipAfter)) {\n logger.severe(\"String_Node_Str\");\n if (retries < ExternReconnect.MAX_RETRIES && (retries < maxRetries || maxRetries <= 0)) {\n return doInteraction(arg);\n }\n this.setCallCode(Interaction.INTERACTION_CALL_ERROR);\n retries = 0;\n return false;\n }\n this.setCallCode(Interaction.INTERACTION_CALL_SUCCESS);\n retries = 0;\n return true;\n}\n"
"private boolean isNeedColumnWarning(MatchRuleDefinition matchRuleDef) {\n boolean needColumnWarning = false;\n if (dialogType != MATCHGROUP_TYPE && dialogType != RECORD_MATCHING_TYPE) {\n for (BlockKeyDefinition bkd : matchRuleDef.getBlockKeys()) {\n if (!hasColumnMatchTheKey(bkd)) {\n needColumnWarning = true;\n break;\n }\n }\n }\n if (dialogType != GENKEY_TYPE) {\n for (MatchRule rule : matchRuleDef.getMatchRules()) {\n EList<MatchKeyDefinition> matchKeys = rule.getMatchKeys();\n for (MatchKeyDefinition mkd : matchKeys) {\n if (!hasColumnMatchTheKey(mkd)) {\n needColumnWarning = true;\n break;\n }\n }\n if (needColumnWarning) {\n break;\n }\n }\n }\n return needColumnWarning;\n}\n"
"public void run(final CommandSender cs, String label, String[] args) {\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n StringBuilder s = new StringBuilder(\"String_Node_Str\");\n for (World w : Bukkit.getWorlds()) {\n if (r.checkArgs(args, 0) && !w.getName().equalsIgnoreCase(args[0])) {\n continue;\n }\n Integer c = 0;\n for (Chunk chunk : w.getLoadedChunks()) {\n try {\n chunk.unload(true, true);\n } catch (Exception ex) {\n r.log(\"String_Node_Str\" + chunk.getX() + \"String_Node_Str\" + chunk.getZ());\n return;\n }\n c++;\n }\n c = c - w.getLoadedChunks().length;\n Integer e = 0;\n Integer d = 0;\n for (Entity en : w.getEntities()) {\n if (en instanceof Monster) {\n if (en.getTicksLived() > 200 && en.getCustomName() == null) {\n en.playEffect(EntityEffect.DEATH);\n en.remove();\n e++;\n }\n }\n if (en instanceof Item) {\n Item item = (Item) en;\n if (item.getTicksLived() > 200) {\n if (!item.isValid()) {\n en.remove();\n }\n d++;\n }\n }\n }\n s.append(r.mes(\"String_Node_Str\", \"String_Node_Str\", w.getName(), \"String_Node_Str\", c, \"String_Node_Str\", e, \"String_Node_Str\", d));\n }\n cs.sendMessage(s.toString());\n}\n"
"private Set<Response> queryFileNames(QueryRequest request) {\n String str = request.getQuery();\n boolean includeXML = request.shouldIncludeXMLInResponse();\n str = keywordTrie.canonicalCase(str);\n IntSet matches = search(str, null, request.desiresPartialResults());\n if (request.getQueryUrns().size() > 0)\n matches = urnSearch(request.getQueryUrns(), matches);\n if (matches == null)\n return Collections.emptySet();\n Set<Response> responses = new HashSet<Response>();\n Predicate<String> filter = mediaTypeAggregator.getPredicateForQuery(request);\n LimeXMLDocument doc = request.getRichQuery();\n for (IntSet.IntSetIterator iter = matches.iterator(); iter.hasNext(); ) {\n int i = iter.next();\n FileDesc desc = gnutellaFileView.getFileDescForIndex(i);\n if (desc == null) {\n desc = incompleteFileView.getFileDescForIndex(i);\n }\n if (desc != null) {\n if (!filter.apply(FileUtils.getFileExtension(desc.getFileName()))) {\n continue;\n activityCallback.handleSharedFileUpdate(desc.getFile());\n Response resp = responseFactory.get().createResponse(desc);\n if (includeXML) {\n if (doc != null && resp.getDocument() != null && !isValidXMLMatch(resp, doc))\n continue;\n } else {\n resp.setDocument(null);\n }\n responses.add(resp);\n }\n }\n if (responses.size() == 0)\n return Collections.emptySet();\n return responses;\n}\n"
"public boolean isEquivalentTo(JSType other) {\n if (!other.isRecordType()) {\n return false;\n }\n RecordType otherRecord = (RecordType) other;\n Set<String> keySet = properties.keySet();\n Map<String, JSType> otherProps = otherRecord.properties;\n if (!otherProps.keySet().equals(keySet)) {\n return false;\n }\n for (String key : keySet) {\n if (!otherProps.get(key).isEquivalentTo(properties.get(key))) {\n return false;\n }\n }\n return true;\n}\n"
"private Object[] getXSDSimpleTypeDefinitionChildren_ATOMIC(XSDSimpleTypeDefinition parent) {\n ArrayList<Object> list = new ArrayList<Object>();\n if (parent != null && parent.getSchema() != null && parent.getSchema().getSchemaForSchema() != null) {\n if (!parent.getSchema().getSchemaForSchema().getTypeDefinitions().contains(parent))\n list.add(parent.getBaseTypeDefinition());\n }\n if (!Util.isBuildInType(parent))\n list.addAll(parent.getFacetContents());\n return list.toArray(new Object[list.size()]);\n}\n"
"public void process(float c_x, float c_y, float orientation, float radius, TupleDesc_B feature) {\n float scale = (float) (radius / BoofDefaults.BRIEF_SCALE_TO_RADIUS);\n boolean isInside = BoofMiscOps.checkInside(blur, c_x, c_y, definition.radius * scale);\n float c = (float) Math.cos(orientation);\n float s = (float) Math.sin(orientation);\n Arrays.fill(feature.data, 0);\n if (isInside) {\n for (int i = 0; i < definition.samplePoints.length; i++) {\n Point2D_I32 a = definition.samplePoints[i];\n float x0 = c_x + (c * a.x - s * a.y) * scale;\n float y0 = c_y + (s * a.x + c * a.y) * scale;\n values[i] = interp.get_fast(x0, y0);\n }\n } else {\n for (int i = 0; i < definition.samplePoints.length; i++) {\n Point2D_I32 a = definition.samplePoints[i];\n float x0 = c_x + (c * a.x - s * a.y) * scale;\n float y0 = c_y + (s * a.x + c * a.y) * scale;\n if (BoofMiscOps.checkInside(blur, x0, y0)) {\n values[i] = interp.get(x0, y0);\n }\n }\n }\n for (int i = 0; i < definition.compare.length; i++) {\n Point2D_I32 comp = definition.compare[i];\n if (values[comp.x] < values[comp.y]) {\n feature.data[i / 32] |= 1 << (i % 32);\n }\n }\n}\n"
"public void run() {\n while (PMS.get().getServer().getHost() == null) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n return;\n }\n }\n RealFile f = new RealFile(new File(folder));\n f.discoverChildren();\n f.analyzeChildren(-1);\n player.addAll(-1, f.getChildren(), -1);\n try {\n Thread.sleep(1000);\n } catch (Exception e) {\n }\n player.pressPlay(null, null);\n}\n"
"public StringBuffer generateAsseblyFile() throws IllegalActionException {\n StringBuffer code = new StringBuffer();\n if (((CompositeActor) getComponent().getContainer()).getExecutiveDirector() instanceof ptolemy.domains.ptides.kernel.PtidesBasicDirector) {\n return code;\n }\n Map<LuminarySensorHandler, String> devices = new HashMap<LuminarySensorHandler, String>();\n for (Actor actor : (List<Actor>) ((TypedCompositeActor) getComponent().getContainer()).deepEntityList()) {\n if (actor instanceof LuminarySensorHandler) {\n devices.put(actor, new String(\"String_Node_Str\" + NamedProgramCodeGeneratorAdapter.generateName((NamedObj) actor)));\n }\n }\n List args = new LinkedList();\n StringBuffer externs = new StringBuffer();\n for (Actor actor : (Set<Actor>) devices.keySet()) {\n externs.append(\"String_Node_Str\" + devices.get(actor) + _eol);\n }\n args.add(externs.toString());\n int configurationSize = LuminarySensorHandler.numberOfSupportedInputDeviceConfigurations;\n String[] GPHandlers = new String[configurationSize];\n boolean foundConfig = false;\n for (LuminarySensorHandler actor : (Set<LuminarySensorHandler>) devices.keySet()) {\n for (int i = 0; i < actor.supportedConfigurations().size(); i++) {\n if (actor.configuration().compareTo(actor.supportedConfigurations().get(i)) == 0) {\n GPHandlers[i + Integer.parseInt(actor.startingConfiguration())] = (String) devices.get(actor);\n foundConfig = true;\n break;\n }\n }\n if (foundConfig == false) {\n throw new IllegalActionException(actor, \"String_Node_Str\" + \"String_Node_Str\");\n }\n }\n for (int i = 0; i < configurationSize; i++) {\n if (GPHandlers[i] == null) {\n args.add(\"String_Node_Str\");\n } else {\n args.add(GPHandlers[i]);\n }\n }\n code.append(_templateParser.getCodeStream().getCodeBlock(\"String_Node_Str\", args));\n return code;\n}\n"
"public Object get(int offset) throws NoSuchElementException {\n Object obj = null;\n try {\n if (offset >= 0) {\n int loc = _queueback + offset;\n if (loc >= _queuecapacity)\n loc = loc % _queuecapacity;\n if (loc >= _queuefront) {\n String str = \"String_Node_Str\";\n if (_container != null) {\n str = \"String_Node_Str\" + _container.getFullName();\n }\n throw new NoSuchElementException(\"String_Node_Str\" + offset + \"String_Node_Str\" + str);\n } else if (loc >= _queuecapacity)\n loc = loc % _queuecapacity;\n obj = _queuearray[loc];\n } else {\n obj = _historylist.at(historySize() + offset);\n }\n } catch (NoSuchElementException ex) {\n String str = \"String_Node_Str\";\n if (_container != null) {\n str = \"String_Node_Str\" + _container.getFullName();\n }\n throw new NoSuchElementException(\"String_Node_Str\" + offset + \"String_Node_Str\" + str);\n }\n return obj;\n}\n"
"public boolean loadPosts(boolean loadMore) {\n Vector<?> loadedPosts;\n if (isPage) {\n loadedPosts = WordPress.wpDB.loadUploadedPosts(getActivity().getApplicationContext(), WordPress.currentBlog.getId(), true);\n } else {\n loadedPosts = WordPress.wpDB.loadUploadedPosts(getActivity().getApplicationContext(), WordPress.currentBlog.getId(), false);\n }\n if (loadedPosts != null) {\n titles = new String[loadedPosts.size()];\n postIDs = new String[loadedPosts.size()];\n dateCreated = new String[loadedPosts.size()];\n dateCreatedFormatted = new String[loadedPosts.size()];\n statuses = new String[loadedPosts.size()];\n } else {\n titles = new String[0];\n postIDs = new String[0];\n dateCreated = new String[0];\n dateCreatedFormatted = new String[0];\n statuses = new String[0];\n if (pla != null) {\n pla.notifyDataSetChanged();\n }\n }\n if (loadedPosts != null) {\n for (int i = 0; i < loadedPosts.size(); i++) {\n HashMap<?, ?> contentHash = (HashMap<?, ?>) loadedPosts.get(i);\n titles[i] = EscapeUtils.unescapeHtml(contentHash.get(\"String_Node_Str\").toString());\n postIDs[i] = contentHash.get(\"String_Node_Str\").toString();\n dateCreated[i] = contentHash.get(\"String_Node_Str\").toString();\n if (contentHash.get(\"String_Node_Str\") != null) {\n String api_status = contentHash.get(\"String_Node_Str\").toString();\n if (api_status.equals(\"String_Node_Str\")) {\n statuses[i] = getResources().getText(R.string.published).toString();\n } else if (api_status.equals(\"String_Node_Str\")) {\n statuses[i] = getResources().getText(R.string.draft).toString();\n } else if (api_status.equals(\"String_Node_Str\")) {\n statuses[i] = getResources().getText(R.string.pending_review).toString();\n } else if (api_status.equals(\"String_Node_Str\")) {\n statuses[i] = getResources().getText(R.string.post_private).toString();\n }\n }\n int flags = 0;\n flags |= android.text.format.DateUtils.FORMAT_SHOW_DATE;\n flags |= android.text.format.DateUtils.FORMAT_ABBREV_MONTH;\n flags |= android.text.format.DateUtils.FORMAT_SHOW_YEAR;\n flags |= android.text.format.DateUtils.FORMAT_SHOW_TIME;\n long localTime = (Long) contentHash.get(\"String_Node_Str\");\n dateCreatedFormatted[i] = DateUtils.formatDateTime(getActivity().getApplicationContext(), localTime, flags);\n }\n List<String> postIDList = Arrays.asList(postIDs);\n List<String> newPostIDList = new ArrayList<String>();\n newPostIDList.add(\"String_Node_Str\");\n newPostIDList.addAll(postIDList);\n postIDs = (String[]) newPostIDList.toArray(new String[newPostIDList.size()]);\n List<String> postTitleList = Arrays.asList(titles);\n List<CharSequence> newPostTitleList = new ArrayList<CharSequence>();\n newPostTitleList.add(getResources().getText((isPage) ? R.string.tab_pages : R.string.tab_posts));\n newPostTitleList.addAll(postTitleList);\n titles = (String[]) newPostTitleList.toArray(new String[newPostTitleList.size()]);\n List<String> dateList = Arrays.asList(dateCreated);\n List<String> newDateList = new ArrayList<String>();\n newDateList.add(\"String_Node_Str\");\n newDateList.addAll(dateList);\n dateCreated = (String[]) newDateList.toArray(new String[newDateList.size()]);\n List<String> dateFormattedList = Arrays.asList(dateCreatedFormatted);\n List<String> newDateFormattedList = new ArrayList<String>();\n newDateFormattedList.add(\"String_Node_Str\");\n newDateFormattedList.addAll(dateFormattedList);\n dateCreatedFormatted = (String[]) newDateFormattedList.toArray(new String[newDateFormattedList.size()]);\n List<String> statusList = Arrays.asList(statuses);\n List<String> newStatusList = new ArrayList<String>();\n newStatusList.add(\"String_Node_Str\");\n newStatusList.addAll(statusList);\n statuses = (String[]) newStatusList.toArray(new String[newStatusList.size()]);\n }\n boolean drafts = loadDrafts();\n if (drafts) {\n List<String> draftIDList = Arrays.asList(draftIDs);\n List<String> newDraftIDList = new ArrayList<String>();\n newDraftIDList.add(\"String_Node_Str\");\n newDraftIDList.addAll(draftIDList);\n draftIDs = (String[]) newDraftIDList.toArray(new String[newDraftIDList.size()]);\n List<String> titleList = Arrays.asList(draftTitles);\n List<CharSequence> newTitleList = new ArrayList<CharSequence>();\n newTitleList.add(getResources().getText(R.string.local_drafts));\n newTitleList.addAll(titleList);\n draftTitles = (String[]) newTitleList.toArray(new String[newTitleList.size()]);\n List<String> draftDateList = Arrays.asList(draftDateCreated);\n List<String> newDraftDateList = new ArrayList<String>();\n newDraftDateList.add(\"String_Node_Str\");\n newDraftDateList.addAll(draftDateList);\n draftDateCreated = (String[]) newDraftDateList.toArray(new String[newDraftDateList.size()]);\n List<String> draftStatusList = Arrays.asList(draftStatuses);\n List<String> newDraftStatusList = new ArrayList<String>();\n newDraftStatusList.add(\"String_Node_Str\");\n newDraftStatusList.addAll(draftStatusList);\n draftStatuses = (String[]) newDraftStatusList.toArray(new String[newDraftStatusList.size()]);\n postIDs = StringHelper.mergeStringArrays(draftIDs, postIDs);\n titles = StringHelper.mergeStringArrays(draftTitles, titles);\n dateCreatedFormatted = StringHelper.mergeStringArrays(draftDateCreated, dateCreatedFormatted);\n statuses = StringHelper.mergeStringArrays(draftStatuses, statuses);\n } else {\n if (pla != null) {\n pla.notifyDataSetChanged();\n }\n }\n if (loadedPosts != null || drafts == true) {\n ListView listView = getListView();\n listView.removeFooterView(switcher);\n if (!isPage) {\n if (loadedPosts != null) {\n if (loadedPosts.size() >= 20) {\n listView.addFooterView(switcher);\n }\n }\n }\n if (loadMore) {\n pla.notifyDataSetChanged();\n } else {\n pla = new PostListAdapter(getActivity().getApplicationContext());\n listView.setAdapter(pla);\n listView.setOnItemClickListener(new OnItemClickListener() {\n public void onItemClick(AdapterView<?> arg0, View v, int position, long id) {\n if (v != null && !postIDs[position].equals(\"String_Node_Str\") && !postIDs[position].equals(\"String_Node_Str\")) {\n selectedPosition = position;\n selectedID = v.getId();\n Post post = new Post(WordPress.currentBlog.getId(), selectedID, isPage, getActivity().getApplicationContext());\n WordPress.currentPost = post;\n onPostSelectedListener.onPostSelected(post);\n pla.notifyDataSetChanged();\n }\n }\n });\n listView.setOnCreateContextMenuListener(new OnCreateContextMenuListener() {\n public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {\n AdapterView.AdapterContextMenuInfo info;\n try {\n info = (AdapterView.AdapterContextMenuInfo) menuInfo;\n } catch (ClassCastException e) {\n return;\n }\n Object[] args = { R.id.row_post_id };\n try {\n Method m = android.view.View.class.getMethod(\"String_Node_Str\");\n m.invoke(selectedID, args);\n } catch (NoSuchMethodException e) {\n selectedID = info.targetView.getId();\n } catch (IllegalArgumentException e) {\n selectedID = info.targetView.getId();\n } catch (IllegalAccessException e) {\n selectedID = info.targetView.getId();\n } catch (InvocationTargetException e) {\n selectedID = info.targetView.getId();\n }\n rowID = info.position;\n if (totalDrafts > 0 && rowID <= totalDrafts && rowID != 0) {\n menu.clear();\n menu.setHeaderTitle(getResources().getText(R.string.draft_actions));\n menu.add(1, 0, 0, getResources().getText(R.string.edit_draft));\n menu.add(1, 1, 0, getResources().getText(R.string.delete_draft));\n } else if (rowID == 1 || ((rowID != (totalDrafts + 1)) && rowID != 0)) {\n menu.clear();\n if (isPage) {\n menu.setHeaderTitle(getResources().getText(R.string.page_actions));\n menu.add(2, 0, 0, getResources().getText(R.string.edit_page));\n menu.add(2, 1, 0, getResources().getText(R.string.delete_page));\n menu.add(2, 2, 0, getResources().getText(R.string.share_url));\n } else {\n menu.setHeaderTitle(getResources().getText(R.string.post_actions));\n menu.add(0, 0, 0, getResources().getText(R.string.edit_post));\n menu.add(0, 1, 0, getResources().getText(R.string.delete_post));\n menu.add(0, 2, 0, getResources().getText(R.string.share_url));\n }\n }\n }\n });\n }\n if (this.shouldSelectAfterLoad) {\n if (postIDs != null) {\n if (postIDs.length >= 1) {\n Post post = new Post(WordPress.currentBlog.getId(), Integer.valueOf(postIDs[1]), isPage, getActivity().getApplicationContext());\n WordPress.currentPost = post;\n onPostSelectedListener.onPostSelected(post);\n selectedPosition = 1;\n pla.notifyDataSetChanged();\n }\n }\n shouldSelectAfterLoad = false;\n }\n if (loadedPosts == null) {\n refreshPosts(false);\n }\n return true;\n } else {\n if (loadedPosts == null) {\n refreshPosts(false);\n }\n return false;\n }\n}\n"
"public List<VMTemplateStoragePoolVO> listByHostTemplate(long hostId, long templateId) {\n TransactionLegacy txn = TransactionLegacy.currentTxn();\n PreparedStatement pstmt = null;\n List<VMTemplateStoragePoolVO> result = new ArrayList<VMTemplateStoragePoolVO>();\n String sql = HOST_TEMPLATE_SEARCH;\n try (PreparedStatement pstmt = txn.prepareStatement(sql)) {\n pstmt.setLong(1, hostId);\n pstmt.setLong(2, templateId);\n rs = pstmt.executeQuery();\n while (rs.next()) {\n long id = rs.getLong(1);\n result.add(findById(id));\n }\n } catch (Exception e) {\n s_logger.warn(\"String_Node_Str\", e);\n } finally {\n try {\n if (rs != null) {\n rs.close();\n }\n if (pstmt != null) {\n pstmt.close();\n }\n } catch (SQLException e) {\n }\n }\n return result;\n}\n"
"public Response execute() {\n DatabaseAccessor db = null;\n try {\n db = new DatabaseAccessor(DatabaseSettings.username, DatabaseSettings.password, DatabaseSettings.host, DatabaseSettings.database);\n try {\n if (db.getChoices(\"String_Node_Str\").contains(species)) {\n ArrayList<Genome> genomeReleases = db.getAllGenomReleasesForSpecies(species);\n return new GetGenomeReleaseRespons(StatusCode.OK, genomeReleases);\n } else {\n return new ErrorResponse(StatusCode.BAD_REQUEST, \"String_Node_Str\");\n }\n } catch (SQLException e) {\n return new ErrorResponse(StatusCode.SERVICE_UNAVAILABLE, \"String_Node_Str\" + e.getMessage());\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }\n return null;\n}\n"