content
stringlengths
40
137k
"public default int getSubClassDistance(IType subtype) {\n return subtype.getSuperTypeDistance(this);\n}\n"
"public static ItemStack extractItemsByRecipe(IEnergySource energySrc, BaseActionSource mySrc, IMEMonitor<IAEItemStack> src, World w, IRecipe r, ItemStack output, InventoryCrafting ci, ItemStack providedTemplate, int slot, IItemList<IAEItemStack> aitems, Actionable realForFake) {\n if (energySrc.extractAEPower(1, Actionable.SIMULATE, PowerMultiplier.CONFIG) > 0.9) {\n if (providedTemplate == null)\n return null;\n AEItemStack ae_req = AEItemStack.create(providedTemplate);\n ae_req.setStackSize(1);\n IAEItemStack ae_ext = src.extractItems(ae_req, realForFake, mySrc);\n if (ae_ext != null) {\n ItemStack extracted = ae_ext.getItemStack();\n if (extracted != null) {\n energySrc.extractAEPower(1, realForFake, PowerMultiplier.CONFIG);\n return extracted;\n }\n }\n boolean checkFuzzy = ae_req.isOre() || providedTemplate.getItemDamage() == OreDictionary.WILDCARD_VALUE || providedTemplate.hasTagCompound() || providedTemplate.isItemStackDamageable();\n if (aitems != null && checkFuzzy) {\n for (IAEItemStack x : aitems) {\n ItemStack sh = x.getItemStack();\n if ((Platform.isSameItemType(providedTemplate, sh) || ae_req.sameOre(x)) && !Platform.isSameItem(sh, output)) {\n ItemStack cp = Platform.cloneItemStack(sh);\n cp.stackSize = 1;\n ci.setInventorySlotContents(slot, cp);\n if (r.matches(ci, w) && Platform.isSameItem(r.getCraftingResult(ci), output)) {\n IAEItemStack ax = x.copy();\n ax.setStackSize(1);\n IAEItemStack ex = src.extractItems(ax, realForFake, mySrc);\n if (ex != null) {\n energySrc.extractAEPower(1, realForFake, PowerMultiplier.CONFIG);\n return ex.getItemStack();\n }\n }\n ci.setInventorySlotContents(slot, providedTemplate);\n }\n }\n }\n }\n return null;\n}\n"
"public List<HighlightInfoFactory> check(CSharpLanguageVersion languageVersion, CSharpReferenceExpression expression) {\n PsiElement referenceElement = expression.getReferenceElement();\n if (referenceElement == null || expression.isSoft() || CSharpDocUtil.isInsideDoc(expression)) {\n return Collections.emptyList();\n }\n PsiElement parent = expression.getParent();\n if (parent instanceof CSharpMethodCallExpressionImpl || parent instanceof CSharpConstructorSuperCallImpl) {\n return Collections.emptyList();\n }\n return checkReference(expression, Arrays.asList(referenceElement));\n}\n"
"int random(int from, int to) {\n double diff = (to - from);\n return (int) (diff * Math.random() + from);\n}\n"
"public void run() {\n try {\n if (mSocket == null)\n mSocket = new ServerSocket(mPort, BACKLOG, mAddress);\n Log.d(TAG, \"String_Node_Str\" + mAddress + \"String_Node_Str\" + mPort);\n mRunning = true;\n while (mRunning) {\n try {\n Socket client = mSocket.accept();\n new ProxyThread(client, mFilters).start();\n } catch (IOException e) {\n Log.e(TAG, e.toString());\n }\n }\n Log.d(TAG, \"String_Node_Str\");\n try {\n Socket client = mSocket.accept();\n new ProxyThread(client, mFilters).start();\n } catch (IOException e) {\n Log.e(TAG, e.toString());\n }\n }\n try {\n mSocket.close();\n } catch (IOException e) {\n Log.e(TAG, e.toString());\n }\n}\n"
"private void addResultSetColumn(DataSetHandle dataSetHandle, IResultMetaData meta) throws BirtException {\n if (meta == null || !(dataSetHandle instanceof OdaDataSetHandle))\n return;\n List columnList = new ArrayList();\n for (int i = 1; i <= meta.getColumnCount(); i++) {\n OdaResultSetColumn rsColumn = new OdaResultSetColumn();\n if (!meta.isComputedColumn(i)) {\n try {\n rsColumn.setColumnName(meta.getColumnName(i));\n rsColumn.setDataType(toModelDataType(meta.getColumnType(i)));\n rsColumn.setNativeName(meta.getColumnName(i));\n rsColumn.setPosition(new Integer(i));\n resultSetColumnHandle.addItem(rsColumn);\n } catch (BirtException e) {\n e.printStackTrace();\n }\n }\n }\n}\n"
"private void execute(String command, Object obj) {\n System.out.println(command + \"String_Node_Str\" + obj);\n try {\n if (command.equals(\"String_Node_Str\")) {\n Game.getInstance().getBoard().setCols(this.convertToInt(obj));\n } else if (command.equals(\"String_Node_Str\")) {\n Game.getInstance().getBoard().setData((List<Map>) obj);\n } else if (command.equals(\"String_Node_Str\")) {\n Game.getInstance().setPlayers((Map<String, Map>) obj);\n } else if (command.equals(\"String_Node_Str\")) {\n int player_id = this.convertToInt(((List) obj).get(0));\n int x = this.convertToInt(((List) obj).get(1));\n int y = this.convertToInt(((List) obj).get(2));\n Game.getInstance().addPlayer(player_id, x, y);\n } else if (command.equals(\"String_Node_Str\")) {\n Game.getInstance().delPlayer(this.convertToInt(obj));\n } else if (command.equals(\"String_Node_Str\")) {\n int player_id = this.convertToInt(((List) obj).get(0));\n int x = this.convertToInt(((List) obj).get(1));\n int y = this.convertToInt(((List) obj).get(2));\n Game.getInstance().getPlayer(player_id).reposition(x, y);\n } else if (command.equals(\"String_Node_Str\")) {\n int player_id = this.convertToInt(((List) obj).get(0));\n int x = this.convertToInt(((List) obj).get(1));\n int y = this.convertToInt(((List) obj).get(2));\n Game.getInstance().getPlayer(player_id).startMove(x, y);\n } else if (command.equals(\"String_Node_Str\")) {\n int x = this.convertToInt(((List) obj).get(0));\n int y = this.convertToInt(((List) obj).get(1));\n Game.getInstance().dropBomb(x, y);\n } else if (command.equals(\"String_Node_Str\")) {\n int x = this.convertToInt(((List) obj).get(0));\n int y = this.convertToInt(((List) obj).get(1));\n Game.getInstance().burstBomb(x, y);\n }\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n}\n"
"public synchronized static void retain(ConfigDatabase configdb, Environment.ConnectionConfig config, String tableNamesPrefix) {\n final Key key = new Key(config, tableNamesPrefix);\n SharedResourceReference ref = sharedResources.get(key);\n if (ref == null) {\n int threadPoolSize;\n Optional<Integer> tpoolSize = configdb.get(KEY_THREADPOOL_SIZE, Integer.class).or(configdb.getGlobal(KEY_THREADPOOL_SIZE, Integer.class));\n if (tpoolSize.isPresent()) {\n Integer poolSize = tpoolSize.get();\n Preconditions.checkState(poolSize.intValue() > 0, \"String_Node_Str\", poolSize);\n threadPoolSize = poolSize;\n } else {\n threadPoolSize = Math.max(Runtime.getRuntime().availableProcessors(), 2);\n }\n final String threadGroupName = String.format(\"String_Node_Str\", config.getServer(), config.getPortNumber(), config.getDatabaseName());\n final ThreadGroup threadGroup = new ThreadGroup(threadGroupName);\n final ThreadFactory threadFactory = new ThreadFactory() {\n public Thread newThread(Runnable r) {\n return new Thread(threadGroup, r);\n }\n };\n ExecutorService databaseExecutor = createExecutorService(threadFactory, config, threadPoolSize);\n Cache<ObjectId, byte[]> byteCache = createCache(configdb);\n ref = new SharedResourceReference(byteCache, databaseExecutor, threadPoolSize);\n sharedResources.put(key, ref);\n } else {\n ref.refCount++;\n }\n}\n"
"public void doesNotThrowWhenASubTemplateIsNotFoundButReturnsEmptyStringAndLogs() throws Exception {\n StringBuilder builder = new StringBuilder();\n Templates templates = templates(getClass()).add(\"String_Node_Str\", ignore -> \"String_Node_Str\").logger(builder);\n String result = templates.get(\"String_Node_Str\").render(map());\n assertThat(result, is(\"String_Node_Str\"));\n String log = builder.toString();\n assertThat(log, startsWith(\"String_Node_Str\"));\n assertThat(log, not(contains(\"String_Node_Str\")));\n}\n"
"private int getParameterType(int i) throws OdaException {\n if (parameterDefn.getParameterType(i) != Types.CHAR)\n return parameterDefn.getParameterType(i);\n try {\n IParameterMetaData paramMetaData = getParameterMetaData();\n if (paramMetaData != null && paramMetaData.getParameterCount() >= i)\n return paramMetaData.getParameterType(i);\n else\n return parameterDefn.getParameterType(i);\n } catch (OdaException ex) {\n return parameterDefn.getParameterType(i);\n}\n"
"private final void processConfigSpec(ExprNode pred, Context c, List subs) {\n if (pred instanceof SubstInNode) {\n SubstInNode pred1 = (SubstInNode) pred;\n this.processConfigSpec(pred1.getBody(), c, subs.cons(pred1));\n return;\n }\n if (pred instanceof OpApplNode) {\n OpApplNode pred1 = (OpApplNode) pred;\n ExprOrOpArgNode[] args = pred1.getArgs();\n if (args.length == 0) {\n SymbolNode opNode = pred1.getOperator();\n Object val = this.lookup(opNode, c, false);\n if (val instanceof OpDefNode) {\n if (((OpDefNode) val).getArity() != 0) {\n Assert.fail(EC.TLC_CONFIG_OP_NO_ARGS, new String[] { opNode.getName().toString() });\n }\n ExprNode body = ((OpDefNode) val).getBody();\n if (this.getLevelBound(body, c) == 1) {\n this.initPredVec.addElement(new Action(Spec.addSubsts(body, subs), c));\n } else {\n this.processConfigSpec(body, c, subs);\n }\n } else if (val == null) {\n Assert.fail(EC.TLC_CONFIG_OP_NOT_IN_SPEC, new String[] { opNode.getName().toString() });\n } else if (val instanceof BoolValue) {\n if (!((BoolValue) val).val) {\n Assert.fail(EC.TLC_CONFIG_SPEC_IS_TRIVIAL, opNode.getName().toString());\n }\n } else {\n Assert.fail(EC.TLC_CONFIG_OP_IS_EQUAL, new String[] { opNode.getName().toString(), val.toString(), \"String_Node_Str\" });\n }\n return;\n }\n int opcode = BuiltInOPs.getOpCode(pred1.getOperator().getName());\n if (opcode == OPCODE_cl || opcode == OPCODE_land) {\n for (int i = 0; i < args.length; i++) {\n this.processConfigSpec((ExprNode) args[i], c, subs);\n }\n return;\n }\n if (opcode == OPCODE_box) {\n SemanticNode boxArg = args[0];\n if ((boxArg instanceof OpApplNode) && BuiltInOPs.getOpCode(((OpApplNode) boxArg).getOperator().getName()) == OPCODE_sa) {\n ExprNode arg = (ExprNode) ((OpApplNode) boxArg).getArgs()[0];\n ExprNode subscript = (ExprNode) ((OpApplNode) boxArg).getArgs()[1];\n Vect varsInSubscript = null;\n try {\n class SubscriptCollector {\n Vect components;\n SubscriptCollector() {\n this.components = new Vect();\n }\n void enter(ExprNode subscript, Context c) {\n SymbolNode var = getVar(subscript, c, false);\n if (var != null) {\n components.addElement(var);\n return;\n }\n switch(subscript.getKind()) {\n case OpApplKind:\n {\n OpApplNode subscript1 = (OpApplNode) subscript;\n SymbolNode opNode = subscript1.getOperator();\n ExprOrOpArgNode[] args = subscript1.getArgs();\n int opCode = BuiltInOPs.getOpCode(opNode.getName());\n if (opCode == OPCODE_tup) {\n for (int i = 0; i < args.length; i++) {\n this.enter((ExprNode) args[i], c);\n }\n return;\n } else if (opCode != 0) {\n return;\n }\n Object opDef = lookup(opNode, c, false);\n if (opDef instanceof OpDefNode) {\n OpDefNode opDef1 = (OpDefNode) opDef;\n this.enter(opDef1.getBody(), getOpContext(opDef1, args, c, false));\n return;\n }\n if (opDef instanceof LazyValue) {\n LazyValue lv = (LazyValue) opDef;\n this.enter((ExprNode) lv.expr, lv.con);\n return;\n }\n break;\n }\n case SubstInKind:\n {\n SubstInNode subscript1 = (SubstInNode) subscript;\n Subst[] subs = subscript1.getSubsts();\n Context c1 = c;\n for (int i = 0; i < subs.length; i++) {\n c1 = c1.cons(subs[i].getOp(), getVal(subs[i].getExpr(), c, false));\n }\n this.enter(subscript1.getBody(), c1);\n return;\n }\n case LetInKind:\n {\n LetInNode subscript1 = (LetInNode) subscript;\n this.enter(subscript1.getBody(), c);\n return;\n }\n case LabelKind:\n {\n LabelNode subscript1 = (LabelNode) subscript;\n this.enter((ExprNode) subscript1.getBody(), c);\n return;\n }\n default:\n Assert.fail(EC.TLC_CANT_HANDLE_SUBSCRIPT, subscript.toString());\n return;\n }\n }\n Vect getComponents() {\n return components;\n }\n }\n SubscriptCollector collector = new SubscriptCollector();\n Context c1 = c;\n List subs1 = subs;\n while (!subs1.isEmpty()) {\n SubstInNode sn = (SubstInNode) subs1.car();\n Subst[] snsubs = sn.getSubsts();\n for (int i = 0; i < snsubs.length; i++) {\n c1 = c1.cons(snsubs[i].getOp(), getVal(snsubs[i].getExpr(), c, false));\n }\n subs1 = subs1.cdr();\n }\n collector.enter(subscript, c1);\n varsInSubscript = collector.getComponents();\n } catch (Exception e) {\n MP.printWarning(EC.TLC_COULD_NOT_DETERMINE_SUBSCRIPT, new String[0]);\n varsInSubscript = null;\n }\n if (varsInSubscript != null) {\n for (int i = 0; i < this.variablesNodes.length; i++) {\n if (!varsInSubscript.contains(this.variablesNodes[i])) {\n MP.printWarning(EC.TLC_SUBSCRIPT_CONTAIN_NO_STATE_VAR, new String[] { this.variablesNodes[i].getName().toString() });\n }\n }\n }\n if (this.nextPred == null) {\n this.nextPred = new Action(Spec.addSubsts(arg, subs), c);\n } else {\n Assert.fail(EC.TLC_CANT_HANDLE_TOO_MANY_NEXT_STATE_RELS);\n }\n } else {\n this.temporalVec.addElement(new Action(Spec.addSubsts(pred, subs), c));\n this.temporalNameVec.addElement(pred.toString());\n }\n return;\n }\n }\n int level = this.getLevelBound(pred, c);\n if (level <= 1) {\n this.initPredVec.addElement(new Action(Spec.addSubsts(pred, subs), c));\n } else if (level == 3) {\n this.temporalVec.addElement(new Action(Spec.addSubsts(pred, subs), c));\n this.temporalNameVec.addElement(pred.toString());\n } else {\n Assert.fail(EC.TLC_CANT_HANDLE_CONJUNCT, pred.toString());\n }\n}\n"
"public void addNumbers(int from, int to) {\n if (from > to) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n Integer oldTo = ranges.get(from);\n if (oldTo == null || oldTo < to) {\n ranges.put(from, to);\n }\n}\n"
"private void shouldDisplayPermission(Context context, boolean toShow) {\n Intent service = new Intent(context, SensorbergService.class);\n service.putExtra(SensorbergServiceMessage.EXTRA_GENERIC_TYPE, SensorbergServiceMessage.MSG_LOCATION_SERVICES_IS_SET);\n service.putExtra(SensorbergServiceMessage.EXTRA_LOCATION_PERMISSION, toShow);\n context.startService(service);\n}\n"
"public void goAlgo() {\n if (layout.canAlgo()) {\n layout.goAlgo();\n } else {\n layout.endAlgo();\n if (level > 0) {\n CoarseningStrategy coarsening = getCoarseningStrategy();\n coarsening.refine(getGraph());\n level--;\n } else {\n acabou = true;\n }\n }\n}\n"
"protected void updateVertices(GL gl, LoadedGroup loaded, Group group, boolean fill) {\n boolean initialized = fill ? loaded.glFillBufferInitialized : loaded.glLineBufferInitialized;\n int maxSize = fill ? loaded.glFillBufferMaxSize : loaded.glLineBufferMaxSize;\n int currentSize = fill ? loaded.glFillBufferCurrentSize : loaded.glLineBufferCurrentSize;\n int insertSize = fill ? group.fillInsertVertexCount : group.lineInsertVertexCount;\n int totalSize = fill ? group.totalFillVertexCount : group.totalLineVertexCount;\n int handle = fill ? loaded.glFillBufferHandle : loaded.glLineBufferHandle;\n int sizeNeeded = currentSize + insertSize;\n if (!initialized || maxSize < sizeNeeded) {\n if (!initialized || maxSize < DELETE_EXPAND_FACTOR * totalSize) {\n if (initialized) {\n gl.glDeleteBuffers(1, new int[] { handle }, 0);\n maxSize = Math.max((int) (maxSize * 1.5), totalSize);\n } else {\n maxSize = totalSize;\n }\n int[] bufferHandle = new int[1];\n gl.glGenBuffers(1, bufferHandle, 0);\n handle = bufferHandle[0];\n }\n ensureDataBufferSize(maxSize);\n if (fill) {\n loaded.loadFillVerticesIntoBuffer(group, dataBuffer, 0, group.polygonMap.values());\n } else {\n loaded.loadLineVerticesIntoBuffer(group, dataBuffer, 0, group.polygonMap.values());\n }\n gl.glBindBuffer(GL.GL_ARRAY_BUFFER, handle);\n glHandleError(gl, \"String_Node_Str\");\n gl.glBufferData(GL.GL_ARRAY_BUFFER, maxSize * 3 * BYTES_PER_FLOAT, dataBuffer.rewind(), GL.GL_DYNAMIC_DRAW);\n glHandleError(gl, \"String_Node_Str\");\n if (fill) {\n loaded.glFillBufferInitialized = true;\n loaded.glFillBufferCurrentSize = totalSize;\n loaded.glFillBufferHandle = handle;\n loaded.glFillBufferMaxSize = maxSize;\n } else {\n loaded.glLineBufferInitialized = true;\n loaded.glLineBufferCurrentSize = totalSize;\n loaded.glLineBufferHandle = handle;\n loaded.glLineBufferMaxSize = maxSize;\n }\n } else {\n ensureDataBufferSize(insertSize);\n if (fill) {\n loaded.loadFillVerticesIntoBuffer(group, dataBuffer, currentSize, group.newPolygons);\n } else {\n loaded.loadLineVerticesIntoBuffer(group, dataBuffer, currentSize, group.newPolygons);\n }\n gl.glBindBuffer(GL.GL_ARRAY_BUFFER, handle);\n glHandleError(gl, \"String_Node_Str\");\n gl.glBufferSubData(GL.GL_ARRAY_BUFFER, currentSize * 3 * BYTES_PER_FLOAT, insertVertices * 3 * BYTES_PER_FLOAT, dataBuffer.rewind());\n glHandleError(gl, \"String_Node_Str\");\n if (fill) {\n loaded.glFillBufferCurrentSize = sizeNeeded;\n } else {\n loaded.glLineBufferCurrentSize = sizeNeeded;\n }\n }\n}\n"
"boolean loadAggregations() {\n if (!isDirty()) {\n return false;\n }\n final List<Future<Map<Segment, SegmentWithData>>> sqlSegmentMapFutures = new ArrayList<Future<Map<Segment, SegmentWithData>>>();\n final List<CellRequest> cellRequests1 = new ArrayList<CellRequest>(cellRequests);\n for (int iteration = 0; ; ++iteration) {\n final BatchLoader.LoadBatchResponse response = cacheMgr.execute(new BatchLoader.LoadBatchCommand(Locus.peek(), cacheMgr, getDialect(), cube, Collections.unmodifiableList(cellRequests1)));\n int failureCount = 0;\n Map<SegmentHeader, SegmentBody> headerBodies = new HashMap<SegmentHeader, SegmentBody>();\n final Set<SegmentHeader> failedSegments = new HashSet<SegmentHeader>();\n for (SegmentHeader header : response.cacheSegments) {\n final SegmentBody body = cacheMgr.compositeCache.get(header);\n if (body == null) {\n failedSegments.add(header);\n ++failureCount;\n continue;\n }\n headerBodies.put(header, body);\n final SegmentWithData segmentWithData = response.convert(header, body);\n segmentWithData.getStar().register(segmentWithData);\n }\n final List<BatchLoader.RollupInfo> failedRollups = new ArrayList<BatchLoader.RollupInfo>();\n final Map<SegmentHeader, SegmentBody> succeededRollups = new HashMap<SegmentHeader, SegmentBody>();\n for (BatchLoader.RollupInfo rollup : response.rollups) {\n Map<SegmentHeader, SegmentBody> map = findResidentRollupCandidate(headerBodies, rollup);\n if (map == null) {\n failedRollups.add(rollup);\n ++failureCount;\n continue;\n }\n final Set<String> keepColumns = new HashSet<String>();\n for (RolapStar.Column column : rollup.constrainedColumns) {\n keepColumns.add(column.getExpression().getGenericExpression());\n }\n Pair<SegmentHeader, SegmentBody> rollupHeaderBody = SegmentBuilder.rollup(map, keepColumns, rollup.constrainedColumnsBitKey, rollup.measure.getAggregator().getRollup());\n final SegmentHeader header = rollupHeaderBody.left;\n final SegmentBody body = rollupHeaderBody.right;\n if (headerBodies.containsKey(header)) {\n continue;\n }\n headerBodies.put(header, body);\n succeededRollups.put(header, body);\n final SegmentWithData segmentWithData = response.convert(header, body);\n segmentWithData.getStar().register(segmentWithData);\n }\n if (failureCount == 0) {\n for (Future<Map<Segment, SegmentWithData>> sqlSegmentMapFuture : response.sqlSegmentMapFutures) {\n final Map<Segment, SegmentWithData> segmentMap = Util.safeGet(sqlSegmentMapFuture, \"String_Node_Str\");\n for (SegmentWithData segmentWithData : segmentMap.values()) {\n segmentWithData.getStar().register(segmentWithData);\n }\n }\n }\n if (failureCount == 0) {\n break;\n }\n List<CellRequest> unsatisfied = new ArrayList<CellRequest>();\n for (CellRequest cellRequest : cellRequests) {\n if (cellRequest.getMeasure().getStar().getCellFromCache(cellRequest, null) == null) {\n unsatisfied.add(cellRequest);\n }\n }\n if (unsatisfied.isEmpty()) {\n break;\n }\n throw new UnsupportedOperationException();\n }\n dirty = false;\n cellRequests.clear();\n return true;\n}\n"
"public void close() throws DataException {\n try {\n if (this.groupOutput != null) {\n for (int i = 0; i < this.groupOutput.length; i++) {\n this.groupOutput[i].seek(0);\n IOUtil.writeInt(this.groupOutput[i], this.groupInstanceIndex[i]);\n this.groupOutput[i].close();\n }\n this.groupOutput = null;\n }\n if (this.aggrOutput != null) {\n for (int i = 0; i < this.aggrOutput.length; i++) {\n if (this.aggrOutput[i] != null)\n this.aggrOutput[i].close();\n }\n this.aggrOutput = null;\n }\n if (this.aggrIndexOutput != null) {\n for (int i = 0; i < this.aggrIndexOutput.length; i++) {\n if (this.aggrIndexOutput[i] != null)\n this.aggrIndexOutput[i].close();\n }\n this.aggrIndexOutput = null;\n }\n if (this.overallAggrs.size() > 0 && this.combinedAggrIndexOutput != null) {\n this.combinedAggrIndexRAOutput.seek(0);\n IOUtil.writeLong(this.combinedAggrIndexOutput, this.combinedAggrRAOutput.getOffset());\n this.combinedAggrIndexRAOutput.close();\n for (String aggrName : overallAggrs) {\n IOUtil.writeObject(this.combinedAggrOutput, this.aggrHelper.getLatestAggrValue(aggrName));\n }\n this.combinedAggrOutput.close();\n }\n if (this.aggrHelper != null) {\n this.aggrHelper.close();\n this.aggrHelper = null;\n }\n if (this.groupBys.length == 0 && this.streamManager != null) {\n OutputStream out = streamManager.getOutStream(DataEngineContext.GROUP_INFO_STREAM, StreamManager.ROOT_STREAM, StreamManager.SELF_SCOPE);\n IOUtil.writeInt(out, 0);\n out.close();\n }\n } catch (IOException e) {\n throw new DataException(e.getLocalizedMessage(), e);\n }\n}\n"
"public void _testGroovyPropertyAccessors_ErrorCases6() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n}\n"
"private static boolean isServiceLoaderDisabled() {\n return !serviceLoaderEnabled;\n}\n"
"public void testBookmark() {\n ActionDesign action = new ActionDesign();\n Expression<String> bookmark = Expression.newConstant(\"String_Node_Str\");\n action.setBookmark(bookmark);\n assertEquals(action.getActionType(), ActionDesign.ACTION_BOOKMARK);\n assertEquals(action.getBookmark(), bookmark);\n}\n"
"private void validateSubscriptionType(Event event, WaitingQueueSubscription.Type type) {\n if (type == WaitingQueueSubscription.Type.PRE_SALES) {\n Validate.isTrue(configurationManager.getBooleanConfigValue(Configuration.enablePreRegistration(event), false), \"String_Node_Str\");\n } else {\n Validate.isTrue(eventStatisticsManager.noSeatsAvailable().test(event), \"String_Node_Str\");\n }\n}\n"
"private void updateReferences(Tree src, Tree dest) throws RepositoryException {\n for (PropertyState prop : src.getProperties()) {\n if (isReferenceType(prop) && !VersionConstants.VERSION_PROPERTY_NAMES.contains(prop.getName())) {\n updateProperty(prop, dest);\n }\n for (Tree child : src.getChildren()) {\n updateReferences(child, dest.getChild(child.getName()));\n }\n}\n"
"private void updatePostsWithCurrentTag(RequestDataAction updateAction) {\n if (hasCurrentTag()) {\n updatePostsWithTag(mCurrentTag, updateAction, RefreshType.AUTOMATIC);\n }\n}\n"
"private String stringFromTimestamp(Timestamp sourceDate, QName schemaType) {\n if (Constants.DATE_QNAME.equals(schemaType)) {\n Calendar cal = Calendar.getInstance(getTimeZone());\n cal.setTime(sourceDate);\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n if (cal.get(Calendar.ERA) == GregorianCalendar.BC) {\n xgc.setYear(-cal.get(Calendar.YEAR));\n } else {\n xgc.setYear(cal.get(Calendar.YEAR));\n }\n xgc.setMonth(cal.get(Calendar.MONTH) + 1);\n xgc.setDay(cal.get(Calendar.DAY_OF_MONTH));\n return xgc.toXMLFormat();\n }\n if (Constants.TIME_QNAME.equals(schemaType)) {\n Calendar cal = Calendar.getInstance(getTimeZone());\n cal.setTimeInMillis(sourceDate.getTime());\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n xgc.setHour(cal.get(Calendar.HOUR_OF_DAY));\n xgc.setMinute(cal.get(Calendar.MINUTE));\n xgc.setSecond(cal.get(Calendar.SECOND));\n String string = xgc.toXMLFormat();\n string = appendNanos(string, sourceDate);\n return appendTimeZone(string, sourceDate);\n }\n if (Constants.G_DAY_QNAME.equals(schemaType)) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorianChange(new Date(Long.MIN_VALUE));\n cal.setTime(sourceDate);\n xgc.setDay(cal.get(Calendar.DAY_OF_MONTH));\n return xgc.toXMLFormat();\n }\n if (Constants.G_MONTH_QNAME.equals(schemaType)) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorianChange(new Date(Long.MIN_VALUE));\n cal.setTime(sourceDate);\n xgc.setMonth(cal.get(Calendar.MONTH) + 1);\n return stringFromXMLGregorianCalendar(xgc, schemaType);\n }\n if (Constants.G_MONTH_DAY_QNAME.equals(schemaType)) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorianChange(new Date(Long.MIN_VALUE));\n cal.setTime(sourceDate);\n xgc.setMonth(cal.get(Calendar.MONTH) + 1);\n xgc.setDay(cal.get(Calendar.DAY_OF_MONTH));\n return xgc.toXMLFormat();\n }\n if (Constants.G_YEAR_QNAME.equals(schemaType)) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorianChange(new Date(Long.MIN_VALUE));\n cal.setTime(sourceDate);\n if (cal.get(Calendar.ERA) == GregorianCalendar.BC) {\n xgc.setYear(-cal.get(Calendar.YEAR));\n } else {\n xgc.setYear(cal.get(Calendar.YEAR));\n }\n return xgc.toXMLFormat();\n }\n if (Constants.G_YEAR_MONTH_QNAME.equals(schemaType)) {\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorianChange(new Date(Long.MIN_VALUE));\n cal.setTime(sourceDate);\n if (cal.get(Calendar.ERA) == GregorianCalendar.BC) {\n xgc.setYear(-cal.get(Calendar.YEAR));\n } else {\n xgc.setYear(cal.get(Calendar.YEAR));\n }\n xgc.setMonth(cal.get(Calendar.MONTH) + 1);\n return xgc.toXMLFormat();\n }\n if (Constants.DURATION_QNAME.equals(schemaType)) {\n throw new IllegalArgumentException();\n }\n XMLGregorianCalendar xgc = getDatatypeFactory().newXMLGregorianCalendar();\n GregorianCalendar cal = new GregorianCalendar(getTimeZone());\n cal.setGregorianChange(new Date(Long.MIN_VALUE));\n cal.setTime(sourceDate);\n if (cal.get(Calendar.ERA) == GregorianCalendar.BC) {\n xgc.setYear(-cal.get(Calendar.YEAR));\n } else {\n xgc.setYear(cal.get(Calendar.YEAR));\n }\n xgc.setMonth(cal.get(Calendar.MONTH) + 1);\n xgc.setDay(cal.get(Calendar.DAY_OF_MONTH));\n xgc.setHour(cal.get(Calendar.HOUR_OF_DAY));\n xgc.setMinute(cal.get(Calendar.MINUTE));\n xgc.setSecond(cal.get(Calendar.SECOND));\n String string = xgc.toXMLFormat();\n string = appendNanos(string, sourceDate);\n return appendTimeZone(string, sourceDate);\n}\n"
"public void onViewDetachedFromWindow(View v) {\n removeListeners();\n sPendingTransitions.remove(mSceneRoot);\n ArrayList<Transition> runningTransitions = getRunningTransitions().get(mSceneRoot);\n if (runningTransitions != null && runningTransitions.size() > 0) {\n for (Transition runningTransition : runningTransitions) {\n runningTransition.resume(mSceneRoot);\n }\n }\n mTransition.clearValues(true);\n}\n"
"public void loop() throws ConnectionLostException, InterruptedException {\n statusLED.write(true);\n if ((Calendar.getInstance().getTimeInMillis() - lastRead) > 30) {\n readBuffer.clear();\n }\n if (!callbackRegistered && mIBusCbListener != null)\n initiateHandlers();\n try {\n if (busIn.available() > 0) {\n lastRead = Calendar.getInstance().getTimeInMillis();\n readBuffer.add((byte) busIn.read());\n if (readBuffer.size() == 1) {\n msgLength = 256;\n } else if (readBuffer.size() == 2) {\n msgLength = (int) readBuffer.get(1);\n }\n if (readBuffer.size() == msgLength + 2) {\n if (checksumMessage(readBuffer)) {\n String data = \"String_Node_Str\";\n for (int i = 0; i < readBuffer.size(); i++) data = String.format(\"String_Node_Str\", data, readBuffer.get(i));\n Log.d(TAG, String.format(\"String_Node_Str\", DeviceLookup.get(readBuffer.get(0)), DeviceLookup.get(readBuffer.get(2)), data));\n handleMessage(readBuffer);\n }\n readBuffer.clear();\n }\n } else if (actionQueue.size() > 0) {\n if ((Calendar.getInstance().getTimeInMillis() - lastSend) > 75) {\n Log.d(TAG, String.format(\"String_Node_Str\", actionQueue.get(0).toString()));\n IBusMethodHolder command = IBusCommandMap.get(actionQueue.get(0));\n byte[] outboundMsg = new byte[] {};\n try {\n outboundMsg = (byte[]) command.methodReference.invoke(command.classInstance);\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (IllegalArgumentException e) {\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n e.printStackTrace();\n }\n actionQueue.remove(0);\n String out = \"String_Node_Str\";\n for (int i = 0; i < outboundMsg.length; i++) {\n out = String.format(\"String_Node_Str\", out, outboundMsg[i]);\n busOut.write(outboundMsg[i]);\n }\n Log.d(TAG, out);\n lastSend = Calendar.getInstance().getTimeInMillis();\n }\n }\n } catch (IOException e) {\n Log.e(TAG, String.format(\"String_Node_Str\", e.getMessage()));\n }\n statusLED.write(false);\n Thread.sleep(2);\n}\n"
"public <T> CLBuffer<?> createInputBufferFor(CLContext context, PList<T> list) {\n int[] ar = ((IntList) list).getArray();\n IntBuffer ibuffer = IntBuffer.wrap(ar, 0, list.size());\n return context.createIntBuffer(CLMem.Usage.Input, ibuffer, true);\n}\n"
"public static ContentType extractRequestContentType(final SubLocatorParameter param) throws ODataUnsupportedMediaTypeException {\n final MediaType requestMediaType = param.getHttpHeaders().getMediaType();\n if (requestMediaType == null) {\n return ContentType.APPLICATION_OCTET_STREAM;\n } else if (requestMediaType == MediaType.WILDCARD_TYPE || requestMediaType == MediaType.TEXT_PLAIN_TYPE || requestMediaType == MediaType.APPLICATION_XML_TYPE) {\n throw new ODataUnsupportedMediaTypeException(ODataUnsupportedMediaTypeException.NOT_SUPPORTED.addContent(param.getHttpHeaders().getRequestHeader(HttpHeaders.CONTENT_TYPE).get(0)));\n } else {\n try {\n final String contentType = param.getHttpHeaders().getHeaderString(HttpHeaders.CONTENT_TYPE);\n if (ContentType.isParseable(contentType)) {\n return ContentType.create(contentType);\n }\n throw new ODataBadRequestException(ODataBadRequestException.INVALID_HEADER.addContent(HttpHeaders.CONTENT_TYPE, contentType));\n } catch (IllegalArgumentException e) {\n throw new ODataUnsupportedMediaTypeException(ODataUnsupportedMediaTypeException.NOT_SUPPORTED.addContent(requestMediaType.toString()), e);\n }\n }\n}\n"
"protected boolean checkPool(ExcludeList avoid, StoragePoolVO pool, DiskProfile dskCh, VMTemplateVO template, List<VMTemplateStoragePoolVO> templatesInPool, StatsCollector sc) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + pool.getName() + \"String_Node_Str\" + pool.getId());\n }\n if (avoid.shouldAvoid(pool)) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\");\n }\n return false;\n }\n if (dskCh.getType().equals(VolumeType.ROOT) && pool.getPoolType().equals(StoragePoolType.Iscsi)) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\");\n }\n return false;\n }\n if (!pool.getStatus().equals(StoragePoolStatus.Up)) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + pool.getStatus().name() + \"String_Node_Str\");\n }\n return false;\n }\n if (!poolIsCorrectType(dskCh, pool)) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\");\n }\n return false;\n }\n Long clusterId = pool.getClusterId();\n ClusterVO cluster = _clusterDao.findById(clusterId);\n if (!(cluster.getHypervisorType() == dskCh.getHypersorType())) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\");\n }\n return false;\n }\n if (sc != null) {\n long totalSize = pool.getCapacityBytes();\n StorageStats stats = sc.getStorageStats(pool.getId());\n if (stats != null) {\n double usedPercentage = ((double) stats.getByteUsed() / (double) totalSize);\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + pool.getId() + \"String_Node_Str\" + pool.getCapacityBytes() + \"String_Node_Str\" + stats.getByteUsed() + \"String_Node_Str\" + usedPercentage + \"String_Node_Str\" + _storageUsedThreshold);\n }\n if (usedPercentage >= _storageUsedThreshold) {\n return false;\n }\n }\n }\n Pair<Long, Long> sizes = _volumeDao.getCountAndTotalByPool(pool.getId());\n long totalAllocatedSize = sizes.second() + sizes.first() * _extraBytesPerVolume;\n boolean tmpinstalled = false;\n List<VMTemplateStoragePoolVO> templatePoolVOs;\n if (templatesInPool != null) {\n templatePoolVOs = templatesInPool;\n } else {\n templatePoolVOs = _templatePoolDao.listByPoolId(pool.getId());\n }\n for (VMTemplateStoragePoolVO templatePoolVO : templatePoolVOs) {\n if ((template != null) && !tmpinstalled && (templatePoolVO.getTemplateId() == template.getId())) {\n tmpinstalled = true;\n }\n long templateSize = templatePoolVO.getTemplateSize();\n totalAllocatedSize += templateSize + _extraBytesPerVolume;\n }\n if ((template != null) && !tmpinstalled) {\n HostVO secondaryStorageHost = _storageMgr.getSecondaryStorageHost(pool.getDataCenterId());\n if (secondaryStorageHost == null) {\n return false;\n } else {\n VMTemplateHostVO templateHostVO = _templateHostDao.findByHostTemplate(secondaryStorageHost.getId(), template.getId());\n if (templateHostVO == null) {\n return false;\n } else {\n s_logger.debug(\"String_Node_Str\" + template.getName() + \"String_Node_Str\" + 2);\n long templateSize = templateHostVO.getSize();\n long templatePhysicalSize = templateHostVO.getPhysicalSize();\n totalAllocatedSize += (templateSize + _extraBytesPerVolume) + (templatePhysicalSize + _extraBytesPerVolume);\n }\n }\n }\n long askingSize = dskCh.getSize();\n int storageOverprovisioningFactor = 1;\n if (pool.getPoolType() == StoragePoolType.NetworkFilesystem) {\n storageOverprovisioningFactor = _storageOverprovisioningFactor;\n }\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + pool.getId() + \"String_Node_Str\" + (pool.getCapacityBytes() * storageOverprovisioningFactor) + \"String_Node_Str\" + totalAllocatedSize + \"String_Node_Str\" + askingSize);\n }\n if ((pool.getCapacityBytes() * storageOverprovisioningFactor) < (totalAllocatedSize + askingSize)) {\n if (s_logger.isDebugEnabled()) {\n s_logger.debug(\"String_Node_Str\" + pool.getId() + \"String_Node_Str\" + (pool.getCapacityBytes() * storageOverprovisioningFactor) + \"String_Node_Str\" + totalAllocatedSize + \"String_Node_Str\" + askingSize);\n }\n return false;\n }\n return true;\n}\n"
"public String assertPackageImportXML(final String xml, final Path resource) {\n if (packageHeaderInfo.getHeader() == null) {\n return xml;\n }\n final Imports imports = ImportsParser.parseImports(packageHeaderInfo.getHeader());\n if (imports == null) {\n return xml;\n }\n DocumentBuilderFactory domfac = DocumentBuilderFactory.newInstance();\n try {\n DocumentBuilder dombuilder = domfac.newDocumentBuilder();\n Document doc = dombuilder.parse(new ByteArrayInputStream(xml.getBytes(Charsets.UTF_8)));\n if (doc.getElementsByTagName(\"String_Node_Str\").getLength() != 0) {\n return xml;\n }\n Element root = doc.getDocumentElement();\n Element topImportsElement = doc.createElement(\"String_Node_Str\");\n Element nestedImportsElement = doc.createElement(\"String_Node_Str\");\n topImportsElement.appendChild(nestedImportsElement);\n for (final Import i : imports.getImports()) {\n Element importElement = doc.createElement(Import.class.getCanonicalName());\n Element typeElement = doc.createElement(\"String_Node_Str\");\n typeElement.appendChild(doc.createTextNode(i.getType()));\n importElement.appendChild(typeElement);\n nestedImportsElement.appendChild(importElement);\n }\n root.appendChild(topImportsElement);\n TransformerFactory transfac = TransformerFactory.newInstance();\n Transformer trans = transfac.newTransformer();\n trans.setOutputProperty(OutputKeys.METHOD, \"String_Node_Str\");\n trans.setOutputProperty(OutputKeys.INDENT, \"String_Node_Str\");\n trans.setOutputProperty(\"String_Node_Str\", Integer.toString(2));\n StringWriter sw = new StringWriter();\n StreamResult result = new StreamResult(sw);\n DOMSource s = new DOMSource(root);\n trans.transform(s, result);\n String xmlString = sw.toString();\n if (xmlString != null)\n xmlString = xmlString.substring(xmlString.indexOf(\"String_Node_Str\") + 1);\n return xmlString;\n } catch (TransformerConfigurationException e) {\n e.printStackTrace();\n } catch (ParserConfigurationException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (SAXException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (TransformerException e) {\n e.printStackTrace();\n }\n return xml;\n}\n"
"public void testTodoListHeaderInsertTwice() {\n clearRealm();\n TodoListHeader header = createHeader();\n repository.insert(header);\n boolean success = repository.insert(header);\n assertFalse(success);\n TodoListHeaderDAO dao = realm.where(TodoListHeaderDAO.class).equalTo(\"String_Node_Str\", header.getUuid()).findFirst();\n assertNotNull(dao);\n fillRealm();\n}\n"
"protected void setupGroup(GroupDesign group, GroupHandle handle) {\n group.setID(handle.getID());\n setupElementIDMap(group);\n group.setName(handle.getName());\n String pageBreakBefore = handle.getStringProperty(StyleHandle.PAGE_BREAK_BEFORE_PROP);\n String pageBreakAfter = handle.getStringProperty(StyleHandle.PAGE_BREAK_AFTER_PROP);\n String pageBreakInside = handle.getStringProperty(StyleHandle.PAGE_BREAK_INSIDE_PROP);\n group.setPageBreakBefore(pageBreakBefore);\n group.setPageBreakAfter(pageBreakAfter);\n group.setPageBreakInside(pageBreakInside);\n TOCHandle tocHandle = handle.getTOC();\n if (tocHandle != null) {\n String toc = tocHandle.getExpression();\n group.setTOC(createExpression(toc));\n }\n String bookmark = handle.getBookmark();\n group.setBookmark(bookmark);\n String scriptText = handle.getOnCreate();\n if (null != scriptText) {\n String id = ModuleUtil.getScriptUID(handle.getPropertyHandle(IGroupElementModel.ON_CREATE_METHOD));\n ScriptExpression scriptExpr = new ScriptExpression(scriptText, id);\n group.setOnCreate(scriptExpr);\n }\n scriptText = handle.getOnRender();\n if (null != scriptText) {\n String id = ModuleUtil.getScriptUID(handle.getPropertyHandle(IGroupElementModel.ON_RENDER_METHOD));\n ScriptExpression scriptExpr = new ScriptExpression(scriptText, id);\n group.setOnRender(scriptExpr);\n }\n scriptText = handle.getOnPageBreak();\n if (null != scriptText) {\n String id = ModuleUtil.getScriptUID(handle.getPropertyHandle(IGroupElementModel.ON_PAGE_BREAK_METHOD));\n ScriptExpression scriptExpr = new ScriptExpression(scriptText, id);\n group.setOnPageBreak(scriptExpr);\n }\n group.setHandle(handle);\n group.setJavaClass(handle.getEventHandlerClass());\n}\n"
"private List<CandidateEntity> sortByFrequency(List<CandidateEntity> candidates) {\n candidates.sort((e1, e2) -> Comparator.comparingInt(CandidateEntity::getFrequency).compare(e1, e2));\n return candidates;\n}\n"
"protected void populateAvailableDbObjects() {\n DataSetDesign dataSetDesign = getDataSetDesign();\n DataSourceDesign curDataSourceDesign = dataSetDesign.getDataSourceDesign();\n if (curDataSourceDesign == prevDataSourceDesign) {\n if ((cachedSearchTxt == searchTxt.getText() || (cachedSearchTxt != null && cachedSearchTxt.equals(searchTxt.getText()))) && (cachedDbType == getSelectedDbType() || (cachedDbType != null && cachedDbType.equals(getSelectedDbType())))) {\n if (schemaList != null && schemaList.size() > 0) {\n if (cachedSchemaComboIndex == schemaCombo.getSelectionIndex()) {\n return;\n }\n } else\n return;\n }\n }\n removeAllAvailableDbObjects();\n setRootElement();\n setRefreshInfo();\n if (isSchemaSupported) {\n populateSchemaList();\n } else {\n populateTableList();\n }\n addFetchDbObjectListener();\n if (rootNode != null) {\n selectNode(rootNode);\n }\n}\n"
"public boolean onOptionsItemSelected(MenuItem item) {\n if (infoMenu.onOptionsItemSelected(item))\n return true;\n return super.onOptionsItemSelected(item);\n}\n"
"public static OlapElement lookupCompound(SchemaReader schemaReader, OlapElement parent, List<Id.Segment> names, boolean failIfNotFound, int category, MatchType matchType) {\n Util.assertPrecondition(parent != null, \"String_Node_Str\");\n if (LOGGER.isDebugEnabled()) {\n StringBuilder buf = new StringBuilder(64);\n buf.append(\"String_Node_Str\");\n buf.append(\"String_Node_Str\");\n buf.append(parent.getName());\n buf.append(\"String_Node_Str\");\n buf.append(Category.instance.getName(category));\n buf.append(\"String_Node_Str\");\n quoteMdxIdentifier(names, buf);\n LOGGER.debug(buf.toString());\n }\n switch(category) {\n case Category.Member:\n case Category.Unknown:\n Member member = schemaReader.getCalculatedMember(names);\n if (member != null) {\n return member;\n }\n }\n switch(category) {\n case Category.Set:\n case Category.Unknown:\n NamedSet namedSet = schemaReader.getNamedSet(names);\n if (namedSet != null) {\n return namedSet;\n }\n }\n for (int i = 0; i < names.size(); i++) {\n Id.Segment name = names.get(i);\n OlapElement child = schemaReader.getElementChild(parent, name, matchType);\n if (child != null && !matchType.isExact() && !Util.equalName(child.getName(), name.name)) {\n Util.assertPrecondition(child instanceof Member);\n Member bestChild = (Member) child;\n for (int j = i + 1; j < names.size(); j++) {\n List<Member> childrenList = schemaReader.getMemberChildren(bestChild);\n FunUtil.hierarchize(childrenList, false);\n if (matchType == MatchType.AFTER) {\n bestChild = childrenList.get(0);\n } else {\n bestChild = childrenList.get(childrenList.size() - 1);\n }\n if (bestChild == null) {\n child = null;\n break;\n }\n }\n parent = bestChild;\n break;\n }\n if (child == null) {\n if (LOGGER.isDebugEnabled()) {\n StringBuilder buf = new StringBuilder(64);\n buf.append(\"String_Node_Str\");\n buf.append(\"String_Node_Str\");\n buf.append(parent.getName());\n buf.append(\"String_Node_Str\");\n buf.append(name);\n LOGGER.debug(buf.toString());\n }\n if (!failIfNotFound) {\n return null;\n } else if (category == Category.Member) {\n throw MondrianResource.instance().MemberNotFound.ex(quoteMdxIdentifier(names));\n } else {\n throw MondrianResource.instance().MdxChildObjectNotFound.ex(name.name, parent.getQualifiedName());\n }\n }\n parent = child;\n }\n if (LOGGER.isDebugEnabled()) {\n StringBuilder buf = new StringBuilder(64);\n buf.append(\"String_Node_Str\");\n buf.append(\"String_Node_Str\");\n buf.append(parent.getName());\n buf.append(\"String_Node_Str\");\n buf.append(parent.getClass().getName());\n LOGGER.debug(buf.toString());\n }\n switch(category) {\n case Category.Dimension:\n if (parent instanceof Dimension) {\n return parent;\n } else if (parent instanceof Hierarchy) {\n return parent.getDimension();\n } else if (failIfNotFound) {\n throw Util.newError(\"String_Node_Str\" + implode(names) + \"String_Node_Str\");\n } else {\n return null;\n }\n case Category.Hierarchy:\n if (parent instanceof Hierarchy) {\n return parent;\n } else if (parent instanceof Dimension) {\n return parent.getHierarchy();\n } else if (failIfNotFound) {\n throw Util.newError(\"String_Node_Str\" + implode(names) + \"String_Node_Str\");\n } else {\n return null;\n }\n case Category.Level:\n if (parent instanceof Level) {\n return parent;\n } else if (failIfNotFound) {\n throw Util.newError(\"String_Node_Str\" + implode(names) + \"String_Node_Str\");\n } else {\n return null;\n }\n case Category.Member:\n if (parent instanceof Member) {\n return parent;\n } else if (failIfNotFound) {\n throw MondrianResource.instance().MdxCantFindMember.ex(implode(names));\n } else {\n return null;\n }\n case Category.Unknown:\n assertPostcondition(parent != null, \"String_Node_Str\");\n return parent;\n default:\n throw newInternal(\"String_Node_Str\" + category);\n }\n}\n"
"private void createFile(AutoTypeImage imageType) throws FileNotFoundException {\n String suffix = imageType.getAbbreviatedType();\n suffix = suffix.compareTo(\"String_Node_Str\") == 0 ? \"String_Node_Str\" : suffix;\n className = \"String_Node_Str\" + suffix;\n String sumType = imageType.getSumType();\n setOutputFile(className);\n out.print(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + getClass().getName() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + className + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + sumType + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + className + \"String_Node_Str\" + sumType + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + className + \"String_Node_Str\" + sumType + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + sumType + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + className + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + className + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + sumType + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + className + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + className + \"String_Node_Str\" + sumType + \"String_Node_Str\" + \"String_Node_Str\" + className + \"String_Node_Str\" + className + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + className + \"String_Node_Str\" + \"String_Node_Str\" + className + \"String_Node_Str\" + className + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + imageType.isInteger() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + sumType + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + sumType + \"String_Node_Str\" + \"String_Node_Str\" + sumType + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + sumType + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n if (imageType.isInteger())\n out.print(\"String_Node_Str\");\n else if (imageType.isInteger())\n out.print(\"String_Node_Str\");\n out.print(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n}\n"
"public void callArtifactPluginMethod(HttpRequest request, HttpResponder responder, String namespaceId, String artifactName, String artifactVersion, String pluginName, String pluginType, String methodName, String scope) throws Exception {\n String requestBody = request.getContent().toString(Charsets.UTF_8);\n NamespaceId namespace = Ids.namespace(namespaceId);\n NamespaceId artifactNamespace = validateAndGetScopedNamespace(namespace, scope);\n Id.Artifact artifactId = validateAndGetArtifactId(artifactNamespace, artifactName, artifactVersion);\n if (requestBody.isEmpty()) {\n throw new BadRequestException(\"String_Node_Str\" + \"String_Node_Str\");\n }\n try {\n PluginEndpoint pluginEndpoint = pluginService.getPluginEndpoint(namespace, artifactId, pluginType, pluginName, methodName);\n Object response = pluginEndpoint.invoke(GSON.fromJson(requestBody, pluginEndpoint.getMethodParameterType()));\n responder.sendString(HttpResponseStatus.OK, GSON.toJson(response));\n } catch (JsonSyntaxException e) {\n responder.sendString(HttpResponseStatus.BAD_REQUEST, \"String_Node_Str\");\n } catch (InvocationTargetException e) {\n if (e.getCause() instanceof javax.ws.rs.NotFoundException) {\n throw new NotFoundException(e.getCause());\n } else if (e.getCause() instanceof javax.ws.rs.BadRequestException) {\n throw new BadRequestException(e.getCause());\n } else if (e.getCause() instanceof IllegalArgumentException && e.getCause() != null) {\n responder.sendString(HttpResponseStatus.BAD_REQUEST, e.getCause().getMessage());\n } else {\n Throwable rootCause = Throwables.getRootCause(e);\n String message = String.format(\"String_Node_Str\", methodName);\n if (rootCause != null && rootCause.getMessage() != null) {\n message = String.format(\"String_Node_Str\", message, rootCause.getMessage());\n }\n responder.sendString(HttpResponseStatus.INTERNAL_SERVER_ERROR, message);\n }\n }\n}\n"
"private void performDeleteRelation(IStructuredSelection selection) {\n Object[] objects = selection.toArray();\n for (Object object : objects) {\n if (hasWriteRelationTypePermission(artifact, object)) {\n if (object instanceof WrapperForRelationLink) {\n WrapperForRelationLink wrapper = (WrapperForRelationLink) object;\n try {\n RelationManager.deleteRelation(wrapper.getRelationType(), wrapper.getArtifactA(), wrapper.getArtifactB());\n Object parent = ((ITreeContentProvider) treeViewer.getContentProvider()).getParent(wrapper);\n refreshParent(parent);\n } catch (OseeCoreException ex) {\n OseeLog.log(Activator.class, Level.SEVERE, ex);\n }\n } else if (object instanceof RelationTypeSideSorter) {\n RelationTypeSideSorter group = (RelationTypeSideSorter) object;\n try {\n RelationManager.deleteRelations(artifact, group.getRelationType(), group.getSide());\n treeViewer.refresh(group);\n } catch (OseeCoreException ex) {\n OseeLog.log(Activator.class, Level.SEVERE, ex);\n }\n }\n }\n }\n editor.onDirtied();\n}\n"
"void invokeReadWriteCallback(final ReadWriteListener listener_nullable, final ReadWriteListener.ReadWriteEvent event) {\n if (event.wasSuccess() && event.isRead() && event.target() == ReadWriteListener.Target.CHARACTERISTIC) {\n final EpochTime timestamp = new EpochTime();\n final BleNodeConfig.HistoricalDataLogFilter.Source source = event.type().toHistoricalDataSource();\n m_historicalDataMngr.add_single(event.charUuid(), event.data(), timestamp, source);\n }\n m_txnMngr.onReadWriteResult(event);\n if (listener_nullable != null) {\n postEvent(listener_nullable, event);\n }\n if (m_defaultReadWriteListener != null) {\n postEvent(m_defaultReadWriteListener, event);\n }\n if (getManager() != null && getManager().m_defaultReadWriteListener != null) {\n postEvent(getManager().m_defaultReadWriteListener, event);\n }\n if (m_defaultNotificationListener != null && (event.type().isNotification() || event.type() == Type.DISABLING_NOTIFICATION || event.type() == Type.ENABLING_NOTIFICATION)) {\n m_defaultNotificationListener.onEvent(fromReadWriteEvent(event));\n }\n m_txnMngr.onReadWriteResultCallbacksCalled();\n}\n"
"private void sendFetchImageMessage(ImageView view) {\n final PhotoInfo info = (PhotoInfo) view.getTag();\n if (info == null) {\n return;\n }\n final long photoId = info.photoId;\n if (photoId == 0) {\n return;\n }\n mImageFetcher = new ImageDbFetcher(photoId, view);\n synchronized (ContactsListActivity.this) {\n if (sImageFetchThreadPool == null) {\n sImageFetchThreadPool = Executors.newFixedThreadPool(1);\n }\n sImageFetchThreadPool.execute(mImageFetcher);\n }\n}\n"
"public boolean isSoldOut() {\n Owner owner;\n for (PublicCertificate cert : certificates.view()) {\n owner = cert.getOwner();\n if (owner instanceof BankPortfolio || owner == cert.getCompany()) {\n return false;\n }\n }\n return true;\n}\n"
"private String calculateMountPointName(String server, String fqan) {\n URI uri = null;\n String hostname = null;\n try {\n uri = new URI(server);\n hostname = uri.getHost();\n } catch (Exception e) {\n hostname = server;\n }\n String name = hostname + \"String_Node_Str\" + (fqan.substring(fqan.lastIndexOf(\"String_Node_Str\") + 1) + \"String_Node_Str\");\n return name;\n}\n"
"public void init(Tree tree, Table[] tables, IBackgroundRefresher backgroundRefresher) {\n this.display = tree.getDisplay();\n this.backgroundRefresher = backgroundRefresher;\n for (Table table : tables) {\n new LinkableTable(controlsLinker, backgroundRefresher, table, (BgDrawableComposite) this, false);\n }\n new LinkableTree(this, backgroundRefresher, tree, (BgDrawableComposite) this, true);\n this.tables = Arrays.asList(tables);\n this.tree = tree;\n}\n"
"public void showBalance(CommandSender to) {\n if (to != null) {\n String tag = iConomy.Template.raw(Template.Node.TAG_MONEY);\n Template template = iConomy.Template;\n template.set(Template.Node.PLAYER_BALANCE);\n template.add(\"String_Node_Str\", name);\n template.add(\"String_Node_Str\", toString());\n Messaging.send(to, tag + template.parse());\n }\n Player player = iConomy.Server.getPlayer(name);\n if (iConomy.Server.getPlayer(name) == null)\n return;\n String tag = iConomy.Template.color(Template.Node.TAG_MONEY);\n Template template = iConomy.Template;\n template.set(Template.Node.PERSONAL_BALANCE);\n template.add(\"String_Node_Str\", getBalance());\n Messaging.send(player, tag + template.parse());\n}\n"
"public void serialize(ONCRPCBufferWriter writer) {\n truncate_xcap.serialize(writer);\n}\n"
"private static void fuseRangeLoop(Iterator<Continuation> it, LinkedList<Continuation> mergeCands, RangeLoop loop1) {\n for (Continuation c2 : mergeCands) {\n if (c2.getType() == ContinuationType.RANGE_LOOP) {\n RangeLoop loop2 = (RangeLoop) c2;\n if (loop2.fuseable(loop1)) {\n assert (loop2 != loop1);\n loop2.fuseInto(function, loop1, true);\n it.remove();\n return;\n }\n }\n }\n}\n"
"public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {\n try {\n if (roundEnv.processingOver()) {\n return false;\n }\n Multimap<TypeElement, Element> props = LinkedListMultimap.create();\n for (Element exported : roundEnv.getElementsAnnotatedWith(Exported.class)) {\n props.put((TypeElement) exported.getEnclosingElement(), exported);\n }\n Set<String> exposedBeanNames = scanExisting();\n for (Entry<TypeElement, Collection<Element>> e : props.asMap().entrySet()) {\n exposedBeanNames.add(e.getKey().getQualifiedName().toString());\n final Properties javadocs = new Properties();\n for (Element md : e.getValue()) {\n switch(md.getKind()) {\n case FIELD:\n case METHOD:\n String javadoc = getJavadoc(md);\n if (javadoc != null)\n javadocs.put(md.getSimpleName().toString(), javadoc);\n break;\n default:\n throw new AssertionError(\"String_Node_Str\" + md);\n }\n }\n String javadocFile = e.getKey().getQualifiedName().toString().replace('.', '/') + \"String_Node_Str\";\n notice(\"String_Node_Str\" + javadocFile, e.getKey());\n writePropertyFile(javadocs, javadocFile);\n }\n FileObject beans = createResource(STAPLER_BEAN_FILE);\n PrintWriter w = new PrintWriter(new OutputStreamWriter(beans.openOutputStream(), \"String_Node_Str\"));\n for (String beanName : exposedBeanNames) w.println(beanName);\n w.close();\n } catch (IOException x) {\n error(x.toString());\n }\n return false;\n}\n"
"public void run() {\n try {\n while (!quit) {\n selector.select(connectionReadTimeout);\n for (SelectionKey key : selector.selectedKeys()) {\n if (key.isValid() && key.isWritable() && upstreamQueue.peek() != null) {\n SocketChannel channel = (SocketChannel) key.channel();\n channel.write(upstreamQueue.take());\n } else if (key.isValid() && key.isReadable()) {\n read(socket, downstreamBuffer);\n switch(state) {\n case HANDSHAKE:\n pipeline.sendHandshakeDownstream(WebSocketBase.this, downstreamBuffer);\n if (getHandshake().isDone()) {\n if (downstreamBuffer.hasRemaining()) {\n processBuffer(downstreamBuffer);\n }\n }\n break;\n case WAIT:\n processBuffer(downstreamBuffer);\n break;\n case CLOSED:\n break;\n }\n }\n }\n }\n } catch (WebSocketException we) {\n handler.onError(WebSocketBase.this, we);\n } catch (Exception e) {\n handler.onError(WebSocketBase.this, new WebSocketException(3000, e));\n } finally {\n try {\n socket.close();\n } catch (IOException e) {\n ;\n }\n try {\n selector.close();\n } catch (IOException e) {\n ;\n }\n }\n}\n"
"public static int findQtyOf(IInventory inv, ItemStack stack) {\n int qty = 0;\n for (int i = 0; i < inv.getSizeInventory(); ++i) {\n final ItemStack item = inv.getStackInSlot(i);\n if (areItemsStackable(item, stack)) {\n qty += item.stackSize;\n }\n }\n return qty;\n}\n"
"public void modifyText(ModifyEvent arg0) {\n double value;\n try {\n value = format.parse(text.getText()).doubleValue();\n } catch (Exception e) {\n value = -1;\n }\n if (value <= 0d || value > 1d) {\n text.setForeground(GUIHelper.COLOR_RED);\n return;\n } else {\n text.setForeground(GUIHelper.COLOR_BLACK);\n }\n DataHandle handle = model.getInputConfig().getInput().getHandle();\n if (value == model.getRiskModel().getSampleFraction(handle)) {\n return;\n }\n model.getRiskModel().setSampleFraction(value);\n for (int i = 0; i < list.getItemCount(); i++) {\n if (list.getItem(i).equals(Region.NONE.getName())) {\n list.select(i);\n break;\n }\n }\n text2.setText(format.format(model.getRiskModel().getPopulationSize(handle.getNumRows())));\n controller.update(new ModelEvent(ViewRisksPopulationModel.this, ModelPart.POPULATION_MODEL, model.getRiskModel()));\n}\n"
"private static void pipeApplicationLogicHandlers(final Configuration conf, final PathHandler paths, final IdentityManager identityManager, final AccessManager accessManager) {\n if (conf.getApplicationLogicMounts() != null) {\n conf.getApplicationLogicMounts().stream().forEach(al -> {\n try {\n String alClazz = (String) al.get(Configuration.APPLICATION_LOGIC_MOUNT_WHAT_KEY);\n String alWhere = (String) al.get(Configuration.APPLICATION_LOGIC_MOUNT_WHERE_KEY);\n boolean alSecured = (Boolean) al.get(Configuration.APPLICATION_LOGIC_MOUNT_SECURED_KEY);\n Object alArgs = al.get(Configuration.APPLICATION_LOGIC_MOUNT_ARGS_KEY);\n if (alWhere == null || !alWhere.startsWith(\"String_Node_Str\")) {\n LOGGER.error(\"String_Node_Str\", alWhere);\n return;\n }\n if (alArgs != null && !(alArgs instanceof Map)) {\n LOGGER.error(\"String_Node_Str\" + \"String_Node_Str\", alWhere, alWhere.getClass());\n return;\n }\n Object o = Class.forName(alClazz).getConstructor(PipedHttpHandler.class, Map.class).newInstance(null, (Map) alArgs);\n if (o instanceof ApplicationLogicHandler) {\n ApplicationLogicHandler alHandler = (ApplicationLogicHandler) o;\n PipedHttpHandler handler = new CORSHandler(new RequestContextInjectorHandler(\"String_Node_Str\", \"String_Node_Str\", alHandler));\n if (alSecured) {\n paths.addPrefixPath(\"String_Node_Str\" + alWhere, new SecurityHandler(handler, identityManager, accessManager));\n } else {\n paths.addPrefixPath(\"String_Node_Str\" + alWhere, new SecurityHandler(handler, identityManager, new FullAccessManager()));\n }\n LOGGER.info(\"String_Node_Str\" + \"String_Node_Str\", \"String_Node_Str\" + alWhere, alClazz, alSecured);\n } else {\n LOGGER.error(\"String_Node_Str\" + \"String_Node_Str\", alWhere, alClazz);\n }\n } catch (Throwable t) {\n LOGGER.error(\"String_Node_Str\", al.get(Configuration.APPLICATION_LOGIC_MOUNT_WHERE_KEY), t);\n }\n });\n }\n}\n"
"private void createOrUpdateNode(DocumentStore store, UpdateOp op) {\n Map<String, Object> map = store.createOrUpdate(Collection.NODES, op);\n if (baseRevision != null) {\n Revision newestRev = mk.getNewestRevision(map, revision, true);\n if (newestRev != null) {\n if (op.isNew) {\n throw new MicroKernelException(\"String_Node_Str\" + op.path + \"String_Node_Str\" + newestRev + \"String_Node_Str\" + revision + \"String_Node_Str\" + map);\n }\n if (mk.isRevisionNewer(newestRev, baseRevision)) {\n throw new MicroKernelException(\"String_Node_Str\" + op.path + \"String_Node_Str\" + newestRev + \"String_Node_Str\" + baseRevision);\n }\n }\n }\n int size = Utils.estimateMemoryUsage(map);\n if (size > MAX_DOCUMENT_SIZE) {\n UpdateOp[] split = splitDocument(map);\n UpdateOp old = split[0];\n if (old != null) {\n store.createOrUpdate(Collection.NODES, old);\n }\n UpdateOp main = split[1];\n if (main != null) {\n store.createOrUpdate(Collection.NODES, main);\n }\n }\n}\n"
"public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {\n nodeset = ExtUtil.readString(in);\n}\n"
"public void connectionsChanged(Port port) {\n super.connectionsChanged(port);\n if (port == input) {\n Manager manager = getManager();\n if (manager != null) {\n Manager.State managerState = manager.getState();\n if (managerState == Manager.ITERATING || managerState == Manager.PAUSED || managerState == Manager.PAUSED_ON_BREAKPOINT) {\n _reinitializeInnerActors();\n }\n }\n }\n}\n"
"final void rebuildAppWindowListLocked() {\n int NW = mWindows.size();\n int i;\n i = 0;\n while (i < NW) {\n if (((WindowState) mWindows.get(i)).mAppToken != null) {\n WindowState win = (WindowState) mWindows.remove(i);\n if (DEBUG_WINDOW_MOVEMENT)\n Log.v(TAG, \"String_Node_Str\" + win);\n NW--;\n continue;\n }\n i++;\n }\n int NT = mAppTokens.size();\n i = 0;\n for (int j = 0; j < NT; j++) {\n AppWindowToken wt = mAppTokens.get(j);\n final int NTW = wt.windows.size();\n for (int k = 0; k < NTW; k++) {\n WindowState win = wt.windows.get(k);\n final int NC = win.mChildWindows.size();\n int c;\n for (c = 0; c < NC; c++) {\n WindowState cwin = (WindowState) win.mChildWindows.get(c);\n if (cwin.mSubLayer >= 0) {\n break;\n }\n mWindows.add(i, cwin);\n i++;\n }\n mWindows.add(i, win);\n i++;\n for (; c < NC; c++) {\n WindowState cwin = (WindowState) win.mChildWindows.get(c);\n mWindows.add(i, cwin);\n i++;\n }\n }\n }\n}\n"
"public void testEnumPositions_GRE1072() {\n runConformTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" });\n GroovyCompilationUnitDeclaration decl = getCUDeclFor(\"String_Node_Str\");\n FieldDeclaration fDecl = null;\n fDecl = grabField(decl, \"String_Node_Str\");\n if (GroovyUtils.GROOVY_LEVEL < 18) {\n assertEquals(\"String_Node_Str\", stringifyFieldDecl(fDecl));\n } else {\n assertEquals(\"String_Node_Str\", stringifyFieldDecl(fDecl));\n }\n fDecl = grabField(decl, \"String_Node_Str\");\n if (GroovyUtils.GROOVY_LEVEL < 18) {\n assertEquals(\"String_Node_Str\", stringifyFieldDecl(fDecl));\n } else {\n assertEquals(\"String_Node_Str\", stringifyFieldDecl(fDecl));\n }\n fDecl = grabField(decl, \"String_Node_Str\");\n if (GroovyUtils.GROOVY_LEVEL < 18) {\n assertEquals(\"String_Node_Str\", stringifyFieldDecl(fDecl));\n } else {\n assertEquals(\"String_Node_Str\", stringifyFieldDecl(fDecl));\n }\n}\n"
"public void mouseClicked(MouseEvent e) {\n Point2D_F32 latlon = new Point2D_F32();\n EquirectangularTools_F32 tools = distorter.getTools();\n double scale = panelImage.scale;\n distorter.compute((int) (e.getX() / scale), (int) (e.getY() / scale));\n tools.equiToLonlatFV(distorter.distX, distorter.distY, latlon);\n distorter.setDirection(latlon.x, latlon.y, 0);\n distortImage.setModel(distorter);\n if (inputMethod == InputMethod.IMAGE) {\n renderOutput(inputCopy);\n }\n}\n"
"public static void pidCheck(String pidDir, String run) throws ConfigurationException {\n String dir = pidDir == null ? \"String_Node_Str\" : pidDir;\n try {\n final File propsFile = PropertiesUtil.findConfigFile(\"String_Node_Str\");\n if (propsFile == null) {\n s_logger.debug(\"String_Node_Str\");\n } else {\n final FileInputStream finputstream = new FileInputStream(propsFile);\n final Properties props = new Properties();\n props.load(finputstream);\n finputstream.close();\n dir = props.getProperty(\"String_Node_Str\");\n if (dir == null) {\n dir = pidDir == null ? \"String_Node_Str\" : pidDir;\n }\n }\n } catch (IOException e) {\n s_logger.debug(\"String_Node_Str\");\n }\n final File pidFile = new File(dir + File.separator + run);\n try {\n if (!pidFile.createNewFile()) {\n if (!pidFile.exists()) {\n throw new ConfigurationException(\"String_Node_Str\" + pidFile.getAbsolutePath() + \"String_Node_Str\");\n }\n final String pidLine = FileUtils.readFileToString(pidFile).trim();\n if (pidLine.isEmpty()) {\n throw new ConfigurationException(\"String_Node_Str\" + pidFile.getAbsolutePath());\n }\n try {\n final long pid = Long.parseLong(pidLine);\n final Script script = new Script(\"String_Node_Str\", 120000, s_logger);\n script.add(\"String_Node_Str\", \"String_Node_Str\" + pid);\n final String result = script.execute();\n if (result == null) {\n throw new ConfigurationException(\"String_Node_Str\" + pidFile.getAbsolutePath());\n }\n if (!pidFile.delete()) {\n throw new ConfigurationException(\"String_Node_Str\" + pidFile.getAbsolutePath());\n }\n if (!pidFile.createNewFile()) {\n throw new ConfigurationException(\"String_Node_Str\" + pidFile.getAbsolutePath());\n }\n } catch (final NumberFormatException e) {\n throw new ConfigurationException(\"String_Node_Str\" + pidFile.getAbsolutePath());\n }\n }\n pidFile.deleteOnExit();\n final Script script = new Script(\"String_Node_Str\", 120000, s_logger);\n script.add(\"String_Node_Str\", \"String_Node_Str\");\n final OutputInterpreter.OneLineParser parser = new OutputInterpreter.OneLineParser();\n script.execute(parser);\n final String pid = parser.getLine();\n FileUtils.writeStringToFile(pidFile, pid + \"String_Node_Str\");\n } catch (final IOException e) {\n throw new CloudRuntimeException(\"String_Node_Str\" + pidFile.getAbsolutePath() + \"String_Node_Str\", e);\n }\n}\n"
"public void testGrails20SourceAttachements() throws Exception {\n if (GrailsVersion.MOST_RECENT.compareTo(GrailsVersion.V_2_2_4) > 0) {\n try {\n doTestType(GrailsVersion.MOST_RECENT, \"String_Node_Str\", \"String_Node_Str\");\n fail(\"String_Node_Str\");\n } catch (AssertionFailedError e) {\n assertTrue(e.getMessage().contains(\"String_Node_Str\"));\n }\n DownloadSourcesActionDelegate.doit(project, new NullProgressMonitor());\n doTestType(GrailsVersion.MOST_RECENT, \"String_Node_Str\", \"String_Node_Str\");\n }\n}\n"
"public void setContext(Context ctx) {\n if (ctx == null) {\n return;\n }\n super.setContext(ctx);\n Response response = (Response) getResponse();\n if ((response != null) && (ctx instanceof PwcWebModule)) {\n String[] cacheControls = ((PwcWebModule) ctx).getCacheControls();\n for (int i = 0; cacheControls != null && i < cacheControls.length; i++) {\n response.addHeader(\"String_Node_Str\", cacheControls[i]);\n }\n }\n sunWebXmlChecked = false;\n}\n"
"public Object run(Config config_w) throws PropertyVetoException, TransactionFailure {\n createAdminNetworkListener(t, nc);\n createAdminVirtualServer(t, config_w);\n return config_w;\n}\n"
"public boolean onInterceptTouchEvent(MotionEvent ev) {\n final int action = ev.getAction();\n if ((action == MotionEvent.ACTION_MOVE) && (mIsBeingDragged)) {\n return true;\n }\n switch(action & MotionEvent.ACTION_MASK) {\n case MotionEvent.ACTION_MOVE:\n final int yDiff = (int) Math.abs(y - mLastMotionY);\n if (yDiff > mTouchSlop) {\n mIsBeingDragged = true;\n mLastMotionY = y;\n }\n break;\n case MotionEvent.ACTION_DOWN:\n if (!inChild((int) ev.getX(), (int) y)) {\n mIsBeingDragged = false;\n break;\n }\n mLastMotionY = y;\n mIsBeingDragged = !mScroller.isFinished();\n break;\n case MotionEvent.ACTION_CANCEL:\n case MotionEvent.ACTION_UP:\n mIsBeingDragged = false;\n break;\n }\n return mIsBeingDragged;\n}\n"
"public boolean checkPermission(String permissionName, Map<String, String> permissionArguments) {\n boolean retval;\n System.err.println(\"String_Node_Str\" + permissionName + \"String_Node_Str\" + login_);\n if (inversePermissions_) {\n retval = !permissions_.contains(permissionName);\n } else {\n return permissions_.contains(permissionName);\n }\n}\n"
"private void checkBlockSizeReached() throws IOException {\n if (recordCount >= recordCountForNextMemCheck) {\n long memSize = store.memSize();\n if (memSize > blockSize) {\n LOG.info(\"String_Node_Str\" + memSize + \"String_Node_Str\" + blockSize + \"String_Node_Str\" + recordCount + \"String_Node_Str\");\n flushStore();\n initStore();\n recordCountForNextMemCheck = min(max(MINIMUM_RECORD_COUNT_FOR_CHECK, recordCount / 2), MAXIMUM_RECORD_COUNT_FOR_CHECK);\n } else {\n float recordSize = (float) memSize / recordCount;\n recordCountForNextMemCheck = Math.max(100, (recordCount + (long) (blockSize / recordSize)) / 2);\n LOG.debug(\"String_Node_Str\" + recordCount + \"String_Node_Str\" + recordCountForNextMemCheck);\n }\n }\n}\n"
"public static String diff(String aString, String bString) {\n String systemEol = System.getProperty(\"String_Node_Str\");\n String eol = \"String_Node_Str\";\n String[] aStringSplit = aString.split(eol);\n String[] bStringSplit = bString.split(eol);\n int aNumberOfLines = aStringSplit.length;\n int bNumberOfLines = bStringSplit.length;\n int[][] lcs = new int[aNumberOfLines + 1][bNumberOfLines + 1];\n for (int i = aNumberOfLines - 1; i >= 0; i--) {\n for (int j = bNumberOfLines - 1; j >= 0; j--) {\n if (aStringSplit[i].equals(bStringSplit[j])) {\n lcs[i][j] = lcs[i + 1][j + 1] + 1;\n } else {\n lcs[i][j] = Math.max(lcs[i + 1][j], lcs[i][j + 1]);\n }\n }\n }\n StringBuffer result = new StringBuffer();\n int i = 0, j = 0;\n while (i < aNumberOfLines && j < bNumberOfLines) {\n if (aStringSplit[i].equals(bStringSplit[j])) {\n i++;\n j++;\n } else if (lcs[i + 1][j] >= lcs[i][j + 1]) {\n result.append(\"String_Node_Str\" + aStringSplit[i++] + eol);\n } else {\n result.append(\"String_Node_Str\" + bStringSplit[j++] + eol);\n }\n }\n while (i < aNumberOfLines || j < bNumberOfLines) {\n if (i == aNumberOfLines) {\n result.append(\"String_Node_Str\" + aStringSplit[j++] + eol);\n } else if (j == bNumberOfLines) {\n result.append(\"String_Node_Str\" + bStringSplit[i++] + eol);\n }\n }\n return result.toString();\n}\n"
"private JPanel getPerformancePanel() {\n JPanel p = new JPanel();\n p.setBorder(BorderFactory.createTitledBorder(\"String_Node_Str\"));\n p.setLayout(new MigLayout(\"String_Node_Str\"));\n p.setOpaque(false);\n disableUltraPeerCheckBox = new JCheckBox(I18n.tr(\"String_Node_Str\"));\n disableMojitoCheckBox = new JCheckBox(I18n.tr(\"String_Node_Str\"));\n disableTLS = new JCheckBox(I18n.tr(\"String_Node_Str\"));\n disableOutOfBandSearchCheckBox = new JCheckBox(I18n.tr(\"String_Node_Str\"));\n disableUltraPeerCheckBox.setOpaque(false);\n disableMojitoCheckBox.setOpaque(false);\n disableTLS.setOpaque(false);\n disableOutOfBandSearchCheckBox.setOpaque(false);\n p.add(new MultiLineLabel(firstMultiLineLabel, ReallyAdvancedOptionPanel.MULTI_LINE_LABEL_WIDTH), \"String_Node_Str\");\n p.add(disableUltraPeerCheckBox, \"String_Node_Str\");\n p.add(disableMojitoCheckBox, \"String_Node_Str\");\n p.add(new MultiLineLabel(secondMultiLineLabel, ReallyAdvancedOptionPanel.MULTI_LINE_LABEL_WIDTH), \"String_Node_Str\");\n p.add(disableTLS, \"String_Node_Str\");\n p.add(new MultiLineLabel(thirdMultiLineLabel, ReallyAdvancedOptionPanel.MULTI_LINE_LABEL_WIDTH), \"String_Node_Str\");\n p.add(disableOutOfBandSearchCheckBox, \"String_Node_Str\");\n return p;\n}\n"
"public void textChanged(TextEvent event) {\n final Object oldInput = getInput();\n if (event.getDocumentEvent() != null && oldInput instanceof CompareInputAdapter) {\n final AttributeChange diff = (AttributeChange) ((CompareInputAdapter) oldInput).getComparisonObject();\n final EAttribute eAttribute = diff.getAttribute();\n final Match match = diff.getMatch();\n final IEqualityHelper equalityHelper = match.getComparison().getEqualityHelper();\n updateModel(diff, eAttribute, equalityHelper, match.getLeft(), true);\n updateModel(diff, eAttribute, equalityHelper, match.getRight(), false);\n }\n}\n"
"public void render(JCas aJcas, VDocument vdoc, AnnotatorState aState, ColoringStrategy aColoringStrategy, AnnotationLayer layer, RecommendationService recommendationService, LearningRecordService learningRecordService, AnnotationSchemaService aAnnotationService, FeatureSupportRegistry aFsRegistry) {\n if (aJcas == null || recommendationService == null) {\n return;\n }\n int windowBegin = aState.getWindowBeginOffset();\n int windowEnd = aState.getWindowEndOffset();\n Predictions model = recommendationService.getPredictions(aState.getUser(), aState.getProject());\n if (model == null) {\n return;\n }\n List<List<AnnotationObject>> recommendations = model.getPredictions(DocumentMetaData.get(aJcas).getDocumentTitle(), layer, windowBegin, windowEnd, aJcas, false);\n String color = aColoringStrategy.getColor(null, null);\n String bratTypeName = TypeUtil.getUiTypeName(typeAdapter);\n List<VSpan> vspansWithoutRecommendations = new ArrayList<>(vdoc.spans(layer.getId()));\n List<LearningRecord> recordedAnnotations = learningRecordService.getAllRecordsByDocumentAndUserAndLayer(aState.getDocument(), aState.getUser().getUsername(), layer);\n for (List<AnnotationObject> token : recommendations) {\n Map<String, Map<Long, AnnotationObject>> labelMap = new HashMap<>();\n for (AnnotationObject ao : token) {\n if (ao.getAnnotation() != null) {\n if (isOverlapping(vspansWithoutRecommendations, ao.getOffset(), windowBegin, ao.getFeature())) {\n break;\n }\n if (isRejected(recordedAnnotations, ao)) {\n continue;\n }\n if (!labelMap.containsKey(ao.getAnnotation()) || !labelMap.get(ao.getAnnotation()).containsKey(ao.getRecommenderId()) || labelMap.get(ao.getAnnotation()).get(ao.getRecommenderId()).getConfidence() < ao.getConfidence()) {\n Map<Long, AnnotationObject> confidencePerClassifier;\n if (labelMap.get(ao.getAnnotation()) == null) {\n confidencePerClassifier = new HashMap<>();\n } else {\n confidencePerClassifier = labelMap.get(ao.getAnnotation());\n }\n confidencePerClassifier.put(ao.getRecommenderId(), ao);\n labelMap.put(ao.getAnnotation(), confidencePerClassifier);\n }\n }\n }\n Map<String, Double> maxConfidencePerLabel = new HashMap<>();\n for (String label : labelMap.keySet()) {\n double maxConfidence = 0;\n for (Entry<Long, AnnotationObject> classifier : labelMap.get(label).entrySet()) {\n if (classifier.getValue().getConfidence() > maxConfidence) {\n maxConfidence = classifier.getValue().getConfidence();\n }\n }\n maxConfidencePerLabel.put(label, maxConfidence);\n }\n List<String> filtered = maxConfidencePerLabel.entrySet().stream().sorted((e1, e2) -> Double.compare(e2.getValue(), e1.getValue())).limit(recommendationService.getMaxSuggestions(aState.getUser())).map(Entry::getKey).collect(Collectors.toList());\n for (String label : labelMap.keySet()) {\n if (!filtered.contains(label)) {\n continue;\n }\n AnnotationObject prediction = token.stream().filter(p -> p.getAnnotation().equals(label)).max(Comparator.comparingInt(TokenObject::getId)).orElse(null);\n if (prediction == null) {\n continue;\n }\n VID vid = new VID(RecommendationEditorExtension.BEAN_NAME, layer.getId(), (int) prediction.getRecommenderId(), prediction.getId(), VID.NONE, VID.NONE);\n boolean first = true;\n Map<Long, AnnotationObject> confidencePerClassifier = labelMap.get(label);\n for (Long recommenderId : confidencePerClassifier.keySet()) {\n AnnotationObject ao = confidencePerClassifier.get(recommenderId);\n if (first) {\n AnnotationFeature feature = aAnnotationService.getFeature(ao.getFeature(), layer);\n String annotation = aFsRegistry.getFeatureSupport(feature).renderFeatureValue(feature, ao.getAnnotation());\n Map<String, String> featureAnnotation = new HashMap<>();\n featureAnnotation.put(ao.getFeature(), annotation);\n VSpan v = new VSpan(layer, vid, bratTypeName, new VRange(ao.getOffset().getBeginCharacter() - windowBegin, ao.getOffset().getEndCharacter() - windowBegin), featureAnnotation, Collections.emptyMap(), color);\n vdoc.add(v);\n first = false;\n }\n vdoc.add(new VComment(vid, VCommentType.INFO, ao.getClassifier()));\n if (ao.getConfidence() != -1) {\n vdoc.add(new VComment(vid, VCommentType.INFO, String.format(\"String_Node_Str\", ao.getConfidence())));\n }\n if (ao.getDescription() != null && !ao.getDescription().isEmpty()) {\n vdoc.add(new VComment(vid, VCommentType.INFO, \"String_Node_Str\" + ao.getDescription()));\n }\n }\n }\n }\n}\n"
"public MediaSize asLandscape() {\n return new MediaSize(mId, mLabel, mPackageName, Math.max(mWidthMils, mHeightMils), Math.min(mWidthMils, mHeightMils), mLabelResId);\n}\n"
"public ProgramController run(Program program, ProgramOptions options) {\n ApplicationSpecification appSpec = program.getApplicationSpecification();\n Preconditions.checkNotNull(appSpec, \"String_Node_Str\");\n ProgramType processorType = program.getType();\n Preconditions.checkNotNull(processorType, \"String_Node_Str\");\n Preconditions.checkArgument(processorType == ProgramType.WORKFLOW, \"String_Node_Str\");\n WorkflowSpecification workflowSpec = appSpec.getWorkflows().get(program.getName());\n Preconditions.checkNotNull(workflowSpec, \"String_Node_Str\", program.getName());\n WorkflowDriver driver = new WorkflowDriver(program, options, hostname, workflowSpec, programRunnerFactory, metricsCollectionService, datasetFramework, discoveryServiceClient, txClient, store, cConf);\n RunId runId = RunIds.fromString(options.getArguments().getOption(ProgramOptionConstants.RUN_ID));\n ProgramController controller = new WorkflowProgramController(program, driver, serviceAnnouncer, runId);\n driver.start();\n return controller;\n}\n"
"public ProgramController run(Program program, ProgramOptions options) {\n try {\n ApplicationSpecification appSpec = program.getSpecification();\n Preconditions.checkNotNull(appSpec, \"String_Node_Str\");\n Type processorType = program.getProcessorType();\n Preconditions.checkNotNull(processorType, \"String_Node_Str\");\n Preconditions.checkArgument(processorType == Type.PROCEDURE, \"String_Node_Str\");\n ProcedureSpecification procedureSpec = appSpec.getProcedures().get(program.getProgramName());\n Preconditions.checkNotNull(procedureSpec, \"String_Node_Str\", program.getProgramName());\n int instanceId = Integer.parseInt(options.getArguments().getOption(\"String_Node_Str\", \"String_Node_Str\"));\n Class<? extends Procedure> procedureClass = (Class<? extends Procedure>) program.getMainClass();\n ClassLoader classLoader = procedureClass.getClassLoader();\n RunId runId = RunId.generate();\n OperationContext opCtx = new OperationContext(program.getAccountId(), program.getApplicationId());\n TransactionProxy transactionProxy = new TransactionProxy();\n DataFabric dataFabric = new DataFabricImpl(opex, opCtx);\n DataSetInstantiator dataSetInstantiator = new DataSetInstantiator(dataFabric, transactionProxy, classLoader);\n dataSetInstantiator.setReadOnly();\n dataSetInstantiator.setDataSets(ImmutableList.copyOf(appSpec.getDataSets().values()));\n BasicProcedureContext procedureContext = new BasicProcedureContext(program, instanceId, runId, DataSets.createDataSets(dataSetInstantiator, procedureSpec.getDataSets()), procedureSpec);\n bootstrap = createBootstrap(program);\n return null;\n } catch (Exception e) {\n throw Throwables.propagate(e);\n }\n}\n"
"public void setFormat(MediaFormat format) {\n if (logger.isTraceEnabled())\n logger.trace(\"String_Node_Str\" + hashCode() + \"String_Node_Str\" + format);\n setAdvancedAttributes(format.getAdvancedAttributes());\n handleAttributes(format.getAdvancedAttributes());\n handleAttributes(format.getFormatParameters());\n getDeviceSession().setFormat(format);\n}\n"
"void dump(PrintWriter pw, String prefix, boolean dumpAll) {\n final TaskStack stack = getStack();\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(getDisplayId());\n if (stack != null) {\n pw.print(\"String_Node_Str\");\n pw.print(stack.mStackId);\n }\n pw.print(\"String_Node_Str\");\n pw.print(mSession);\n pw.print(\"String_Node_Str\");\n pw.println(mClient.asBinder());\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mOwnerUid);\n pw.print(\"String_Node_Str\");\n pw.print(mShowToOwnerOnly);\n pw.print(\"String_Node_Str\");\n pw.print(mAttrs.packageName);\n pw.print(\"String_Node_Str\");\n pw.println(AppOpsManager.opToName(mAppOp));\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.println(mAttrs);\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mRequestedWidth);\n pw.print(\"String_Node_Str\");\n pw.print(mRequestedHeight);\n pw.print(\"String_Node_Str\");\n pw.println(mLayoutSeq);\n if (mRequestedWidth != mLastRequestedWidth || mRequestedHeight != mLastRequestedHeight) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mLastRequestedWidth);\n pw.print(\"String_Node_Str\");\n pw.println(mLastRequestedHeight);\n }\n if (isChildWindow() || mLayoutAttached) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mAttachedWindow);\n pw.print(\"String_Node_Str\");\n pw.println(mLayoutAttached);\n }\n if (mIsImWindow || mIsWallpaper || mIsFloatingLayer) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mIsImWindow);\n pw.print(\"String_Node_Str\");\n pw.print(mIsWallpaper);\n pw.print(\"String_Node_Str\");\n pw.print(mIsFloatingLayer);\n pw.print(\"String_Node_Str\");\n pw.println(mWallpaperVisible);\n }\n if (dumpAll) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mBaseLayer);\n pw.print(\"String_Node_Str\");\n pw.print(mSubLayer);\n pw.print(\"String_Node_Str\");\n pw.print(mLayer);\n pw.print(\"String_Node_Str\");\n pw.print((mTargetAppToken != null ? mTargetAppToken.mAppAnimator.animLayerAdjustment : (mAppToken != null ? mAppToken.mAppAnimator.animLayerAdjustment : 0)));\n pw.print(\"String_Node_Str\");\n pw.print(mWinAnimator.mAnimLayer);\n pw.print(\"String_Node_Str\");\n pw.println(mWinAnimator.mLastLayer);\n }\n if (dumpAll) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.println(mToken);\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.println(mRootToken);\n if (mAppToken != null) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.println(mAppToken);\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(isAnimatingWithSavedSurface());\n pw.print(\"String_Node_Str\");\n pw.println(mAppDied);\n }\n if (mTargetAppToken != null) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.println(mTargetAppToken);\n }\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(Integer.toHexString(mViewVisibility));\n pw.print(\"String_Node_Str\");\n pw.print(mHaveFrame);\n pw.print(\"String_Node_Str\");\n pw.println(mObscured);\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mSeq);\n pw.print(\"String_Node_Str\");\n pw.println(Integer.toHexString(mSystemUiVisibility));\n }\n if (!mPolicyVisibility || !mPolicyVisibilityAfterAnim || !mAppOpVisibility || mAttachedHidden) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mPolicyVisibility);\n pw.print(\"String_Node_Str\");\n pw.print(mPolicyVisibilityAfterAnim);\n pw.print(\"String_Node_Str\");\n pw.print(mAppOpVisibility);\n pw.print(\"String_Node_Str\");\n pw.println(mAttachedHidden);\n }\n if (!mRelayoutCalled || mLayoutNeeded) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mRelayoutCalled);\n pw.print(\"String_Node_Str\");\n pw.println(mLayoutNeeded);\n }\n if (mXOffset != 0 || mYOffset != 0) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mXOffset);\n pw.print(\"String_Node_Str\");\n pw.println(mYOffset);\n }\n if (dumpAll) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n mGivenContentInsets.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mGivenVisibleInsets.printShortString(pw);\n pw.println();\n if (mTouchableInsets != 0 || mGivenInsetsPending) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mTouchableInsets);\n pw.print(\"String_Node_Str\");\n pw.println(mGivenInsetsPending);\n Region region = new Region();\n getTouchableRegion(region);\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.println(region);\n }\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.println(mConfiguration);\n if (mOverrideConfig != Configuration.EMPTY) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.println(mOverrideConfig);\n }\n }\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mHasSurface);\n pw.print(\"String_Node_Str\");\n mShownPosition.printShortString(pw);\n pw.print(\"String_Node_Str\");\n pw.print(isReadyForDisplay());\n pw.print(\"String_Node_Str\");\n pw.print(hasSavedSurface());\n pw.print(\"String_Node_Str\");\n pw.println(mWindowRemovalAllowed);\n if (dumpAll) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n mFrame.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mLastFrame.printShortString(pw);\n pw.println();\n }\n if (mEnforceSizeCompat) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n mCompatFrame.printShortString(pw);\n pw.println();\n }\n if (dumpAll) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n mContainingFrame.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mParentFrame.printShortString(pw);\n pw.println();\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n mDisplayFrame.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mOverscanFrame.printShortString(pw);\n pw.println();\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n mContentFrame.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mVisibleFrame.printShortString(pw);\n pw.println();\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n mDecorFrame.printShortString(pw);\n pw.println();\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n mOutsetFrame.printShortString(pw);\n pw.println();\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n mOverscanInsets.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mContentInsets.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mVisibleInsets.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mStableInsets.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mOutsets.printShortString(pw);\n pw.println();\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n mLastOverscanInsets.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mLastContentInsets.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mLastVisibleInsets.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mLastStableInsets.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mLastOutsets.printShortString(pw);\n pw.print(\"String_Node_Str\");\n mLastOutsets.printShortString(pw);\n pw.println();\n }\n pw.print(prefix);\n pw.print(mWinAnimator);\n pw.println(\"String_Node_Str\");\n mWinAnimator.dump(pw, prefix + \"String_Node_Str\", dumpAll);\n if (mAnimatingExit || mRemoveOnExit || mDestroying || mRemoved) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mAnimatingExit);\n pw.print(\"String_Node_Str\");\n pw.print(mRemoveOnExit);\n pw.print(\"String_Node_Str\");\n pw.print(mDestroying);\n pw.print(\"String_Node_Str\");\n pw.println(mRemoved);\n }\n if (mOrientationChanging || mAppFreezing || mTurnOnScreen) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mOrientationChanging);\n pw.print(\"String_Node_Str\");\n pw.print(mAppFreezing);\n pw.print(\"String_Node_Str\");\n pw.println(mTurnOnScreen);\n }\n if (mLastFreezeDuration != 0) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n TimeUtils.formatDuration(mLastFreezeDuration, pw);\n pw.println();\n }\n if (mHScale != 1 || mVScale != 1) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mHScale);\n pw.print(\"String_Node_Str\");\n pw.println(mVScale);\n }\n if (mWallpaperX != -1 || mWallpaperY != -1) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mWallpaperX);\n pw.print(\"String_Node_Str\");\n pw.println(mWallpaperY);\n }\n if (mWallpaperXStep != -1 || mWallpaperYStep != -1) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mWallpaperXStep);\n pw.print(\"String_Node_Str\");\n pw.println(mWallpaperYStep);\n }\n if (mWallpaperDisplayOffsetX != Integer.MIN_VALUE || mWallpaperDisplayOffsetY != Integer.MIN_VALUE) {\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(mWallpaperDisplayOffsetX);\n pw.print(\"String_Node_Str\");\n pw.println(mWallpaperDisplayOffsetY);\n }\n if (mDrawLock != null) {\n pw.print(prefix);\n pw.println(\"String_Node_Str\" + mDrawLock);\n }\n if (isDragResizing()) {\n pw.print(prefix);\n pw.println(\"String_Node_Str\" + isDragResizing());\n }\n if (computeDragResizing()) {\n pw.print(prefix);\n pw.println(\"String_Node_Str\" + computeDragResizing());\n }\n}\n"
"protected final void insertIntoTable(final PactRecord record, final int hashCode) throws IOException {\n final int posHashCode = hashCode % this.numBuckets;\n final int bucketArrayPos = posHashCode >> this.bucketsPerSegmentBits;\n final int bucketInSegmentPos = (posHashCode & this.bucketsPerSegmentMask) << NUM_INTRA_BUCKET_BITS;\n final MemorySegment bucket = this.buckets[bucketArrayPos];\n final int partitionNumber = bucket.get(bucketInSegmentPos + HEADER_PARTITION_OFFSET);\n if (partitionNumber < 0 || partitionNumber >= this.partitionsBeingBuilt.size()) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n final Partition p = this.partitionsBeingBuilt.get(partitionNumber);\n long pointer = p.insertIntoBuildBuffer(record);\n if (pointer == -1) {\n MemorySegment nextSeg = getNextBuffer();\n if (nextSeg == null) {\n int spilledPartitionNum = spillPartition();\n if (spilledPartitionNum != partitionNumber) {\n nextSeg = getNextBuffer();\n if (nextSeg == null) {\n throw new RuntimeException(\"String_Node_Str\");\n }\n p.addBuildSideBuffer(nextSeg);\n }\n }\n p.addBuildSideBuffer(nextSeg);\n pointer = p.insertIntoBuildBuffer(record);\n if (pointer == -1) {\n throw new IOException(\"String_Node_Str\");\n }\n }\n if (p.isInMemory()) {\n insertBucketEntry(p, bucket, bucketInSegmentPos, hashCode, pointer);\n } else {\n return;\n }\n}\n"
"public ParcelFileDescriptor getStatsOverTime(long minTime) {\n mAm.mContext.enforceCallingOrSelfPermission(android.Manifest.permission.PACKAGE_USAGE_STATS, null);\n mWriteLock.lock();\n try {\n Parcel current = Parcel.obtain();\n long curTime;\n synchronized (mAm) {\n mProcessStats.mTimePeriodEndRealtime = SystemClock.elapsedRealtime();\n mProcessStats.writeToParcel(current, 0);\n curTime = mProcessStats.mTimePeriodEndRealtime - mProcessStats.mTimePeriodStartRealtime;\n }\n if (curTime < minTime) {\n ArrayList<String> files = getCommittedFiles(0, false, true);\n if (files != null && files.size() > 0) {\n current.setDataPosition(0);\n ProcessStats stats = ProcessStats.CREATOR.createFromParcel(current);\n current.recycle();\n int i = 0;\n while (i < files.size() && (stats.mTimePeriodEndRealtime - stats.mTimePeriodStartRealtime) < minTime) {\n AtomicFile file = new AtomicFile(new File(files.get(i)));\n i++;\n ProcessStats moreStats = new ProcessStats(false);\n readLocked(moreStats, file);\n if (moreStats.mReadError == null) {\n stats.add(moreStats);\n StringBuilder sb = new StringBuilder();\n sb.append(\"String_Node_Str\");\n sb.append(moreStats.mTimePeriodStartClockStr);\n sb.append(\"String_Node_Str\");\n TimeUtils.formatDuration(moreStats.mTimePeriodEndRealtime - moreStats.mTimePeriodStartRealtime, sb);\n Slog.i(TAG, sb.toString());\n } else {\n Slog.w(TAG, \"String_Node_Str\" + files.get(i - 1) + \"String_Node_Str\" + moreStats.mReadError);\n continue;\n }\n }\n current = Parcel.obtain();\n stats.writeToParcel(current, 0);\n }\n }\n final byte[] outData = current.marshall();\n current.recycle();\n final ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe();\n Thread thr = new Thread(\"String_Node_Str\") {\n public void run() {\n FileOutputStream fout = new ParcelFileDescriptor.AutoCloseOutputStream(fds[1]);\n try {\n fout.write(outData);\n fout.close();\n } catch (IOException e) {\n Slog.w(TAG, \"String_Node_Str\", e);\n }\n }\n };\n thr.start();\n return fds[0];\n } catch (IOException e) {\n Slog.w(TAG, \"String_Node_Str\", e);\n } finally {\n mWriteLock.unlock();\n }\n return null;\n}\n"
"public static void main(String[] args) throws Exception {\n DebugClient.disableReadTimeoutHandler(ReadTimeoutHandler.class);\n SpongeVanilla.main(new String[0]);\n List<URL> urls = new ArrayList<>(Arrays.asList(Launch.classLoader.getURLs()));\n urls.removeIf(url -> url.getFile().contains(\"String_Node_Str\"));\n URLClassLoader loader = new DebugClientClassloader(urls.toArray(new URL[urls.size()]));\n Class<?> main = Class.forName(\"String_Node_Str\", false, loader);\n main.getMethod(\"String_Node_Str\", String[].class).invoke(null, (Object) args);\n}\n"
"private void deleteFolder(final RepositoryNode node, final IProxyRepositoryFactory factory, final DeleteActionCache deleteActionCache) {\n if (node.getObject().isDeleted()) {\n try {\n deleteElements(factory, deleteActionCache, node);\n } catch (Exception e) {\n ExceptionHandler.process(e);\n }\n return;\n }\n IPath path = RepositoryNodeUtilities.getPath(node);\n ERepositoryObjectType objectType = (ERepositoryObjectType) node.getProperties(EProperties.CONTENT_TYPE);\n List<IRepositoryNode> repositoryList = node.getChildren();\n boolean success = true;\n Exception bex = null;\n for (IRepositoryNode repositoryNode : repositoryList) {\n try {\n boolean ret = deleteRepositoryNode(repositoryNode, factory);\n if (!ret) {\n return;\n }\n } catch (Exception e) {\n bex = e;\n ExceptionHandler.process(e);\n success = false;\n }\n }\n if (bex != null) {\n final Shell shell = getShell();\n MessageDialog.openWarning(shell, Messages.getString(\"String_Node_Str\"), Messages.getString(\"String_Node_Str\"));\n }\n if (!success) {\n return;\n }\n FolderItem folderItem = factory.getFolderItem(ProjectManager.getInstance().getCurrentProject(), objectType, path);\n folderItem.getState().setDeleted(true);\n String fullPath = \"String_Node_Str\";\n FolderItem curItem = folderItem;\n while (curItem.getParent() instanceof FolderItem && ((Item) curItem.getParent()).getParent() instanceof FolderItem && ((FolderItem) ((Item) curItem.getParent()).getParent()).getType().getValue() == FolderType.FOLDER) {\n FolderItem parentFolder = (FolderItem) curItem.getParent();\n if (\"String_Node_Str\".equals(fullPath)) {\n fullPath = parentFolder.getProperty().getLabel() + fullPath;\n } else {\n fullPath = parentFolder.getProperty().getLabel() + \"String_Node_Str\" + fullPath;\n }\n curItem = parentFolder;\n }\n if (!objectType.getKey().toString().startsWith(\"String_Node_Str\") && objectType != ERepositoryObjectType.SQLPATTERNS && objectType != ERepositoryObjectType.ROUTINES && objectType != ERepositoryObjectType.JOB_SCRIPT && curItem.getParent() instanceof FolderItem && ((Item) curItem.getParent()).getParent() instanceof FolderItem && !objectType.isDQItemType()) {\n FolderItem parentFolder = (FolderItem) curItem.getParent();\n if (\"String_Node_Str\".equals(fullPath)) {\n fullPath = parentFolder.getProperty().getLabel() + fullPath;\n } else {\n fullPath = parentFolder.getProperty().getLabel() + \"String_Node_Str\" + fullPath;\n }\n curItem = parentFolder;\n }\n if (objectType.getKey().toString().startsWith(\"String_Node_Str\")) {\n while (((FolderItem) curItem.getParent()).getType().getValue() != FolderType.SYSTEM_FOLDER) {\n if (\"String_Node_Str\".equals(fullPath)) {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + fullPath;\n } else {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + \"String_Node_Str\" + fullPath;\n }\n curItem = (FolderItem) curItem.getParent();\n }\n }\n if (objectType == ERepositoryObjectType.ROUTINES) {\n while (((FolderItem) curItem.getParent()).getType().getValue() != FolderType.SYSTEM_FOLDER) {\n if (\"String_Node_Str\".equals(fullPath)) {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + fullPath;\n } else {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + \"String_Node_Str\" + fullPath;\n }\n curItem = (FolderItem) curItem.getParent();\n }\n }\n if (objectType == ERepositoryObjectType.JOB_SCRIPT) {\n while (((FolderItem) curItem.getParent()).getType().getValue() != FolderType.SYSTEM_FOLDER) {\n if (\"String_Node_Str\".equals(fullPath)) {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + fullPath;\n } else {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + \"String_Node_Str\" + fullPath;\n }\n curItem = (FolderItem) curItem.getParent();\n }\n }\n if (objectType == ERepositoryObjectType.SQLPATTERNS) {\n while (((FolderItem) curItem.getParent()).getType().getValue() != FolderType.SYSTEM_FOLDER) {\n if (\"String_Node_Str\".equals(fullPath)) {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + fullPath;\n } else {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + \"String_Node_Str\" + fullPath;\n }\n curItem = (FolderItem) curItem.getParent();\n }\n while (!((FolderItem) curItem.getParent()).getProperty().getLabel().equals(\"String_Node_Str\")) {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + \"String_Node_Str\" + fullPath;\n curItem = (FolderItem) curItem.getParent();\n }\n }\n if (objectType.isDQItemType()) {\n while (((FolderItem) curItem.getParent()).getType().getValue() != FolderType.SYSTEM_FOLDER) {\n if (\"String_Node_Str\".equals(fullPath)) {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + fullPath;\n } else {\n fullPath = ((FolderItem) curItem.getParent()).getProperty().getLabel() + \"String_Node_Str\" + fullPath;\n }\n curItem = (FolderItem) curItem.getParent();\n }\n }\n folderItem.getState().setPath(fullPath);\n this.setChildFolderPath(folderItem);\n}\n"
"public void changeValue(AbstractCSS2Properties properties, String newValue, CSSStyleDeclaration declaration, boolean important) {\n properties.setPropertyValueLCAlt(FONT, newValue, important);\n if (newValue != null && newValue.length() > 0) {\n String fontSpecTL = newValue.toLowerCase();\n FontInfo fontInfo = (FontInfo) HtmlValues.SYSTEM_FONTS.get(fontSpecTL);\n if (fontInfo != null) {\n if (fontInfo.getFontFamily() != null) {\n properties.setPropertyValueLCAlt(FONT_FAMILY, fontInfo.getFontFamily(), important);\n }\n if (fontInfo.fontSize != null) {\n properties.setPropertyValueLCAlt(FONT_SIZE, fontInfo.fontSize, important);\n }\n if (fontInfo.fontStyle != null) {\n properties.setPropertyValueLCAlt(FONT_STYLE, fontInfo.fontStyle, important);\n }\n if (fontInfo.fontVariant != null) {\n properties.setPropertyValueLCAlt(FONT_VARIANT, fontInfo.fontVariant, important);\n }\n if (fontInfo.fontWeight != null) {\n properties.setPropertyValueLCAlt(FONT_WEIGHT, fontInfo.fontWeight, important);\n }\n return;\n }\n String[] tokens = HtmlValues.splitCssValue(fontSpecTL);\n String token = null;\n int length = tokens.length;\n int i;\n for (i = 0; i < length; i++) {\n token = tokens[i];\n if (HtmlValues.isFontStyle(token)) {\n properties.setPropertyValueLCAlt(FONT_STYLE, token, important);\n continue;\n }\n if (HtmlValues.isFontVariant(token)) {\n properties.setPropertyValueLCAlt(FONT_VARIANT, token, important);\n continue;\n }\n if (HtmlValues.isFontWeight(token)) {\n properties.setPropertyValueLCAlt(FONT_WEIGHT, token, important);\n continue;\n }\n break;\n }\n if (token != null) {\n int slashIdx = token.indexOf('/');\n String fontSizeText = slashIdx == -1 ? token : token.substring(0, slashIdx);\n properties.setPropertyValueLCAlt(FONT_SIZE, fontSizeText, important);\n String lineHeightText = slashIdx == -1 ? null : token.substring(slashIdx + 1);\n if (lineHeightText != null) {\n properties.setPropertyValueLCAlt(LINE_HEIGHT, lineHeightText, important);\n }\n if (++i < length) {\n StringBuffer fontFamilyBuff = new StringBuffer();\n do {\n token = tokens[i];\n fontFamilyBuff.append(token);\n fontFamilyBuff.append(' ');\n } while (++i < length);\n properties.setPropertyValueLCAlt(FONT_FAMILY, fontFamilyBuff.toString(), important);\n }\n }\n }\n}\n"
"public static boolean checkPermission(String permission, User user, Snip object) {\n Permissions permissions = object.getPermissions();\n if (null == permissions || permissions.empty()) {\n return true;\n } else {\n return permissions.check(permission, getRoles(user, object));\n }\n}\n"
"public static void setup() throws Exception {\n CConfiguration cConf = CConfiguration.create();\n cConf.set(Constants.CFG_LOCAL_DATA_DIR, TMP_FOLDER.newFolder().getAbsolutePath());\n cConf.setBoolean(Constants.Security.ENABLED, true);\n cConf.setBoolean(Constants.Security.KERBEROS_ENABLED, false);\n cConf.setBoolean(Constants.Security.Authorization.ENABLED, true);\n cConf.setBoolean(Constants.Security.Authorization.CACHE_ENABLED, false);\n Location deploymentJar = AppJarHelper.createDeploymentJar(new LocalLocationFactory(TMP_FOLDER.newFolder()), InMemoryAuthorizer.class);\n cConf.set(Constants.Security.Authorization.EXTENSION_JAR_PATH, deploymentJar.toURI().getPath());\n cConf.set(Constants.Security.Authorization.ADMIN_USERS, ADMIN_USER.getName());\n instanceId = new InstanceId(cConf.get(Constants.INSTANCE_NAME));\n File systemArtifactsDir = TMP_FOLDER.newFolder();\n cConf.set(Constants.AppFabric.SYSTEM_ARTIFACTS_DIR, systemArtifactsDir.getAbsolutePath());\n createSystemArtifact(systemArtifactsDir);\n Injector injector = Guice.createInjector(new AppFabricTestModule(cConf));\n namespaceQueryAdmin = injector.getInstance(NamespaceQueryAdmin.class);\n namespaceAdmin = injector.getInstance(NamespaceAdmin.class);\n defaultNamespaceEnsurer = new DefaultNamespaceEnsurer(namespaceAdmin);\n discoveryServiceClient = injector.getInstance(DiscoveryServiceClient.class);\n txManager = injector.getInstance(TransactionManager.class);\n datasetService = injector.getInstance(DatasetService.class);\n authorizationEnforcementService = injector.getInstance(AuthorizationEnforcementService.class);\n authorizationEnforcementService.startAndWait();\n systemArtifactLoader = injector.getInstance(SystemArtifactLoader.class);\n authorizationBootstrapper = injector.getInstance(AuthorizationBootstrapper.class);\n namespaceQueryAdmin = injector.getInstance(NamespaceQueryAdmin.class);\n namespaceAdmin = injector.getInstance(NamespaceAdmin.class);\n artifactRepository = injector.getInstance(ArtifactRepository.class);\n dsFramework = injector.getInstance(DatasetFramework.class);\n}\n"
"public DocLevelLinkingScoring summarizeObservation(final EvalPair<DocLevelArgLinking, DocLevelArgLinking> item) {\n final Symbol keyDocId = item.key().docID();\n final Symbol testDocId = item.test().docID();\n checkArgument(ImmutableSet.copyOf(concat(item.key())).containsAll(ImmutableSet.copyOf(concat(item.test()))), \"String_Node_Str\");\n if (!keyDocId.equalTo(testDocId)) {\n log.warn(\"String_Node_Str\", keyDocId, testDocId);\n }\n final LinkingScoreDocRecord.Builder linkingScoreDocRecordB = new LinkingScoreDocRecord.Builder();\n final ImmutableMap.Builder<Symbol, LinkingScoreDocRecord> recordsPerEventB = ImmutableMap.builder();\n final ExplicitFMeasureInfo counts = LinkF1.create().score(item.test(), item.key());\n final File docOutput = new File(outputDir, keyDocId.asString());\n docOutput.mkdirs();\n final PrintWriter outputWriter;\n try {\n Files.asCharSink(new File(docOutput, \"String_Node_Str\"), Charsets.UTF_8).write(counts.toString());\n } catch (IOException e) {\n throw new TACKBPEALException(e);\n }\n final ImmutableSet<DocLevelEventArg> args = ImmutableSet.copyOf(concat(transform(concat(item.test().eventFrames(), item.key().eventFrames()), ScoringEventFrameFunctions.arguments())));\n linkingScoreDocRecordB.fMeasureInfo(counts).predictedCounts(ImmutableSet.copyOf(concat(item.test().eventFrames())).size()).actualCounts(ImmutableSet.copyOf(concat(item.key().eventFrames())).size()).linkingArgCounts(args.size());\n final ImmutableSet<Symbol> eventTypes = FluentIterable.from(item.test().eventFrames()).append(item.key().eventFrames()).transform(ScoringEventFrameFunctions.eventType()).toSet();\n for (final Symbol eventType : eventTypes) {\n final Predicate<DocLevelEventArg> argPred = Predicates.compose(Predicates.equalTo(eventType), DocLevelEventArgFunctions.eventType());\n DocLevelArgLinking filteredKey = item.key().filterArguments(argPred);\n DocLevelArgLinking filteredTest = item.test().filterArguments(argPred);\n final ExplicitFMeasureInfo countsForEventType = LinkF1.create().score(filteredTest, filteredKey);\n final ImmutableSet<DocLevelEventArg> argsForEventType = ImmutableSet.copyOf(concat(transform(concat(filteredTest.eventFrames(), filteredKey.eventFrames()), ScoringEventFrameFunctions.arguments())));\n final LinkingScoreDocRecord recordForEventType = new LinkingScoreDocRecord.Builder().fMeasureInfo(countsForEventType).predictedCounts(ImmutableSet.copyOf(concat(filteredTest.eventFrames())).size()).actualCounts(ImmutableSet.copyOf(concat(filteredKey.eventFrames())).size()).linkingArgCounts(argsForEventType.size()).build();\n recordsPerEventB.put(eventType, recordForEventType);\n }\n return new DocLevelLinkingScoring.Builder().linkingScoreDocRecord(linkingScoreDocRecordB.build()).docRecordsPerEventType(recordsPerEventB.build()).build();\n}\n"
"public void testValidateRequestValidIdAndPWNoIdentityStoreHandlerCallbackHandlerException() throws Exception {\n final String msg = \"String_Node_Str\";\n IOException ex = new IOException(msg);\n withMessageContext(ap).withIsNewAuthentication(false).withGetResponse().withHandler(ch);\n withUsernamePassword(USER1, PASSWORD1).withIDSBeanInstance(null, true, false).withCallbackHandlerException(ex);\n withJaspicSessionEnabled(false);\n try {\n cfam.validateRequest(request, res, hmc);\n fail(\"String_Node_Str\");\n } catch (AuthenticationException e) {\n assertTrue(\"String_Node_Str\", outputMgr.checkForStandardOut(\"String_Node_Str\"));\n assertTrue(\"String_Node_Str\", e.getMessage().contains(msg));\n }\n}\n"
"public void run() {\n iWorldEditor.reSearch();\n}\n"
"public final void processStarted(ParsingContext context) {\n super.processStarted(context);\n splitter.reset();\n}\n"
"private void update(ArrayList<Unit> entities, FlockRulesCalculator flock, Team team) {\n int size = entities.size();\n int num_to_update = (int) ((size * m_fraction_to_update) + 1);\n if (size == 0) {\n return;\n }\n int last_updated = m_last_updated.get(team);\n if (last_updated > size - 1) {\n last_updated = 0;\n }\n int i = last_updated;\n while (num_to_update > 0) {\n Unit entity = entities.get(i);\n if (entity.getType() == UnitType.DEFENDING) {\n m_defensive.update(entity, this, flock);\n } else if (entity.getType() == UnitType.ATTACKING) {\n m_offensive.update(entity, this, flock);\n } else if (entity.getType() == UnitType.UBER) {\n m_offensive.update(entity, this, flock);\n }\n num_to_update--;\n if (i >= size - 1) {\n i = 0;\n } else {\n i++;\n }\n }\n if (i > size - 1) {\n m_last_updated.put(team, 0);\n } else {\n m_last_updated.put(team, i);\n }\n if (m_tester != null) {\n for (int c = 0; c < size; c++) {\n Unit entity = entities.get(c);\n float start_x = entity.getX();\n float start_y = entity.getY();\n float heading = entity.getHeading();\n float startheading = heading;\n boolean clear = false;\n int tries = 0;\n while (!clear) {\n if (tries > 100) {\n heading = startheading + MathUtils.PI;\n break;\n }\n float s_x = start_x + 3.0f * FloatMath.cos(heading);\n float s_y = start_y + 3.0f * FloatMath.sin(heading);\n float stickoffsetx = 6.0f * FloatMath.cos(heading - MathUtils.PI / 2.0f);\n float stickoffsety = 6.0f * FloatMath.sin(heading - MathUtils.PI / 2.0f);\n float leftx1 = s_x + stickoffsetx;\n float lefty1 = s_y + stickoffsety;\n float leftx2 = leftx1 + 12.0f * FloatMath.cos(heading + MathUtils.PI / 6.0f);\n float lefty2 = lefty1 + 12.0f * FloatMath.sin(heading + MathUtils.PI / 6.0f);\n float rightx1 = s_x - stickoffsetx;\n float righty1 = s_y - stickoffsety;\n float rightx2 = rightx1 + 12.0f * FloatMath.cos(heading - MathUtils.PI / 6.0f);\n float righty2 = righty1 + 12.0f * FloatMath.sin(heading - MathUtils.PI / 6.0f);\n Wall result = m_tester.isLineOfSightClear(rightx1, righty1, rightx2, righty2);\n Wall result2 = m_tester.isLineOfSightClear(leftx1, lefty1, leftx2, lefty2);\n if (result == null && result2 == null) {\n clear = true;\n } else {\n if (result != null) {\n getTurnVector(entity, result, heading);\n } else if (result2 != null) {\n getTurnVector(entity, result2, heading);\n }\n if (m_vec_result.x == 0 && m_vec_result.y == 0) {\n m_vec_result.x = 0.01f;\n m_vec_result.y = 0.01f;\n }\n float otherangle = MathUtils.getAngle(0, 0, m_vec_result.x, m_vec_result.y);\n if (MathUtils.normalizeAngle(otherangle, startheading) - startheading > 0) {\n heading += .08f;\n } else {\n heading -= .08f;\n }\n tries++;\n }\n }\n entity.setVelocity(entity.getSpeed(), heading);\n }\n }\n}\n"
"private void closeApp() {\n QApplication.exit();\n}\n"
"private IAggregationResultSet[] onePassExecute(AggregationDefinition[] aggregations, StopSign stopSign) throws DataException, IOException, BirtException {\n IDiskArray[] dimPosition = getFilterResult();\n FactTableRowIterator factTableRowIterator = populateFactTableIterator(stopSign, dimPosition);\n DimensionResultIterator[] dimensionResultIterators = populateDimensionResultIterator(dimPosition, stopSign);\n IDataSet4Aggregation dataSet4Aggregation = new DataSetFromOriginalCube(factTableRowIterator, dimensionResultIterators, computedMeasureHelper);\n AggregationExecutor aggregationCalculatorExecutor = new AggregationExecutor(new CubeDimensionReader(cube), dataSet4Aggregation, aggregations, memoryCacheSize);\n aggregationCalculatorExecutor.setMaxDataObjectRows(maxDataObjectRows);\n return aggregationCalculatorExecutor.execute(stopSign);\n}\n"
"public void onConfirmFinish() {\n new Handler().postDelayed(new Runnable() {\n public void run() {\n getSupportFragmentManager().beginTransaction().setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE).remove(confirmFragment).commit();\n }\n }, 3000);\n mFrameLayout.setClickable(false);\n getSupportActionBar().show();\n}\n"
"public Stream<? extends Arguments> arguments(ContainerExtensionContext context) throws Exception {\n return ResourcesReader.readJson(RESOURCES_DIRECTORY).map(ObjectArrayArguments::create);\n}\n"
"public static Structure createArtificalStructure(AFPChain afpChain, Atom[] ca1, Atom[] ca2) throws StructureException {\n if (afpChain.getNrEQR() < 1) {\n return DisplayAFP.getAlignedStructure(ca1, ca2);\n }\n Group[] twistedGroups = StructureAlignmentDisplay.prepareGroupsForDisplay(afpChain, ca1, ca2);\n List<Atom> twistedAs = new ArrayList<Atom>();\n for (Group g : twistedGroups) {\n if (g == null)\n continue;\n if (g.size() < 1)\n continue;\n Atom a = g.getAtom(0);\n twistedAs.add(a);\n }\n Atom[] twistedAtoms = twistedAs.toArray(new Atom[twistedAs.size()]);\n List<Group> hetatms = StructureTools.getUnalignedGroups(ca1);\n List<Group> hetatms2 = StructureTools.getUnalignedGroups(ca2);\n Atom[] arr1 = DisplayAFP.getAtomArray(ca1, hetatms);\n Atom[] arr2 = DisplayAFP.getAtomArray(twistedAtoms, hetatms2);\n Structure artificial = DisplayAFP.getAlignedStructure(arr1, arr2);\n return artificial;\n}\n"
"public void testCopyFromWithInvalidGivenGeneratedColumn() throws Exception {\n execute(\"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n ensureYellow();\n execute(\"String_Node_Str\", new Object[] { copyFilePath + \"String_Node_Str\" });\n assertThat(response.rowCount(), is(3L));\n refresh();\n execute(\"String_Node_Str\");\n assertThat((String) response.rows()[0][0], is(\"String_Node_Str\"));\n}\n"
"public void getHTable(String table) throws IOException {\n _hTable = hTablePool.getTable(table);\n}\n"
"public void doTest() {\n int playerCount = header.getMaxPlayers();\n addHeader(\"String_Node_Str\", fix);\n for (int x = 0; x < data.getWidth(); x++) {\n for (int y = 0; y < data.getHeight(); y++) {\n MapDataObject mapObject = data.getMapObject(x, y);\n if (mapObject instanceof IPlayerIdProvider) {\n int p = ((IPlayerIdProvider) mapObject).getPlayerId();\n if (p >= playerCount) {\n fix.addInvalidObject(new ShortPoint2D(x, y));\n addErrorMessage(\"String_Node_Str\", new ShortPoint2D(x, y));\n }\n }\n }\n }\n}\n"
"void addEdge(boolean complete, SqlgEdge sqlgEdge, SqlgVertex outVertex, SqlgVertex inVertex, Map<String, Object> keyValueMap) {\n SchemaTable outSchemaTable = SchemaTable.of(outVertex.getSchema(), sqlgEdge.getTable());\n if (!streaming) {\n Pair<SortedSet<String>, Map<SqlgEdge, Triple<SqlgVertex, SqlgVertex, Map<String, Object>>>> triples = this.edgeCache.get(outSchemaTable);\n if (triples == null) {\n triples = new LinkedHashMap<>();\n triples.put(sqlgEdge, Triple.of(outVertex, inVertex, keyValueMap));\n this.edgeCache.put(outSchemaTable, triples);\n } else {\n triples.put(sqlgEdge, Triple.of(outVertex, inVertex, keyValueMap));\n }\n Map<SchemaTable, List<SqlgEdge>> outEdgesMap = this.vertexOutEdgeCache.get(outVertex);\n if (outEdgesMap == null) {\n outEdgesMap = new HashMap<>();\n List<SqlgEdge> edges = new ArrayList<>();\n edges.add(sqlgEdge);\n outEdgesMap.put(SchemaTable.of(sqlgEdge.getSchema(), sqlgEdge.getTable()), edges);\n this.vertexOutEdgeCache.put(outVertex, outEdgesMap);\n } else {\n List<SqlgEdge> sqlgEdges = outEdgesMap.get(SchemaTable.of(sqlgEdge.getSchema(), sqlgEdge.getTable()));\n if (sqlgEdges == null) {\n List<SqlgEdge> edges = new ArrayList<>();\n edges.add(sqlgEdge);\n outEdgesMap.put(SchemaTable.of(sqlgEdge.getSchema(), sqlgEdge.getTable()), edges);\n } else {\n sqlgEdges.add(sqlgEdge);\n }\n }\n Map<SchemaTable, List<SqlgEdge>> inEdgesMap = this.vertexInEdgeCache.get(outVertex);\n if (inEdgesMap == null) {\n inEdgesMap = new HashMap<>();\n List<SqlgEdge> edges = new ArrayList<>();\n edges.add(sqlgEdge);\n inEdgesMap.put(SchemaTable.of(sqlgEdge.getSchema(), sqlgEdge.getTable()), edges);\n this.vertexInEdgeCache.put(inVertex, inEdgesMap);\n } else {\n List<SqlgEdge> sqlgEdges = inEdgesMap.get(SchemaTable.of(sqlgEdge.getSchema(), sqlgEdge.getTable()));\n if (sqlgEdges == null) {\n List<SqlgEdge> edges = new ArrayList<>();\n edges.add(sqlgEdge);\n inEdgesMap.put(SchemaTable.of(sqlgEdge.getSchema(), sqlgEdge.getTable()), edges);\n } else {\n sqlgEdges.add(sqlgEdge);\n }\n }\n } else {\n if (this.streamingBatchModeEdgeSchemaTable == null) {\n this.streamingBatchModeEdgeSchemaTable = sqlgEdge.getSchemaTablePrefixed();\n }\n if (this.streamingBatchModeEdgeKeys == null) {\n this.streamingBatchModeEdgeKeys = new ArrayList<>(keyValueMap.keySet());\n }\n if (isStreamingVertices()) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n if (isBatchModeBatchStreaming() && this.batchCount == this.batchSize) {\n throw new IllegalStateException(\"String_Node_Str\" + this.batchCount + \"String_Node_Str\" + this.batchSize);\n }\n if (isBatchModeBatchStreaming() && this.batchCount == 0) {\n this.batchedElements = new ArrayList<>();\n this.sqlDialect.lockTable(sqlgGraph, outSchemaTable, SchemaManager.EDGE_PREFIX);\n this.sequenceName = this.sqlDialect.sequenceName(sqlgGraph, outSchemaTable, SchemaManager.EDGE_PREFIX);\n this.batchIndex = this.sqlDialect.nextSequenceVal(sqlgGraph, outSchemaTable, SchemaManager.EDGE_PREFIX);\n sqlgEdge.setInternalPrimaryKey(RecordId.from(outSchemaTable, ++this.batchIndex));\n }\n if (isBatchModeBatchStreaming() && this.batchCount > 0) {\n sqlgEdge.setInternalPrimaryKey(RecordId.from(outSchemaTable, ++this.batchIndex));\n this.batchedElements.add(sqlgEdge);\n }\n OutputStream out = this.streamingEdgeCache.get(outSchemaTable);\n if (out == null) {\n String sql = this.sqlDialect.constructCompleteCopyCommandSqlEdge(sqlgGraph, sqlgEdge, outVertex, inVertex, keyValueMap);\n out = this.sqlDialect.streamSql(this.sqlgGraph, sql);\n this.streamingEdgeCache.put(outSchemaTable, out);\n }\n try {\n this.sqlDialect.flushCompleteEdge(out, sqlgEdge, outVertex, inVertex, keyValueMap);\n if (isBatchModeBatchStreaming()) {\n this.batchCount++;\n }\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n if (isBatchModeBatchStreaming() && this.batchCount == this.batchSize) {\n this.flush();\n if (this.batchCallback != null) {\n this.batchCallback.callBack(this.batchedElements);\n this.batchedElements.clear();\n }\n }\n }\n}\n"
"public SentRequestItemHolder onCreateViewHolder(ViewGroup viewGroup, int i) {\n View v = LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.row_sent_requests, null);\n SentRequestItemHolder mh = new SentRequestItemHolder(v);\n return mh;\n}\n"
"public void action(RuleContext _localctx, int ruleIndex, int actionIndex) {\n switch(ruleIndex) {\n case 102:\n COMMENT_action((RuleContext) _localctx, actionIndex);\n break;\n case 102:\n WHITESPACE_action((RuleContext) _localctx, actionIndex);\n break;\n case 103:\n CPPCOMMENT_action((RuleContext) _localctx, actionIndex);\n break;\n case 104:\n OTHER_action((RuleContext) _localctx, actionIndex);\n break;\n }\n}\n"
"private void handleCursorDragging(final GL gl) {\n Point currentPoint = pickingTriggerMouseAdapter.getPickedPoint();\n float[] fArTargetWorldCoordinates = new float[3];\n float fselElement;\n fArTargetWorldCoordinates = GLCoordinateUtils.convertWindowCoordinatesToWorldCoordinates(gl, currentPoint.x, currentPoint.y);\n float fHeight = viewFrustum.getHeight() - 0.2f;\n float fStep = fHeight / iAlNumberSamples.get(0);\n if (iDraggedCursor == 1) {\n fPosCursor = fArTargetWorldCoordinates[1] - 0.1f;\n if (fPosCursor > fPosCursorLastElement && iFirstSample >= 0) {\n fPosCursorFirstElement = fPosCursor;\n fselElement = (viewFrustum.getHeight() - 0.1f - fArTargetWorldCoordinates[1]) / fStep;\n if ((int) Math.floor(fselElement) >= 0) {\n iFirstSample = (int) Math.floor(fselElement);\n iSamplesPerHeatmap = iLastSample - iFirstSample + 1;\n }\n }\n }\n if (iDraggedCursor == 2) {\n fPosCursorLastElement = fArTargetWorldCoordinates[1] - 0.1f;\n if (fPosCursorFirstElement > fPosCursorLastElement && iLastSample <= iAlNumberSamples.get(0))\n ;\n {\n fselElement = (viewFrustum.getHeight() - 0.1f - fArTargetWorldCoordinates[1]) / fStep;\n if ((int) Math.ceil(fselElement) < iAlNumberSamples.get(0))\n ;\n {\n iLastSample = (int) Math.ceil(fselElement);\n iSamplesPerHeatmap = iLastSample - iFirstSample + 1;\n }\n }\n }\n setDisplayListDirty();\n triggerSelectionBlock();\n if (pickingTriggerMouseAdapter.wasMouseReleased()) {\n bIsDraggingActive = false;\n }\n}\n"
"public List<ResourceField> getFields() {\n List<ResourceField> fields = new ArrayList<>();\n new ResourceField(fields, getFacetLabel(), \"String_Node_Str\", ResourceFieldType.Enum, new ReferenceFacetListener(), getSubjectFacets());\n new ResourceField(fields, Boolean.toString(tlObj.isIdGroup()), \"String_Node_Str\", ResourceFieldType.CheckButton, new IdGroupListener());\n return fields;\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 if (!r.checkArgs(args, 0)) {\n if (!r.isPlayer(cs)) {\n return;\n }\n Player p = (Player) cs;\n if (r.getOnlinePlayers().length > 64) {\n r.sendMes(cs, \"String_Node_Str\");\n return;\n }\n Integer size = 9;\n while (r.getOnlinePlayers().length > size) {\n size = size + 9;\n }\n Inventory inv = Bukkit.createInventory(null, size, r.mes(\"String_Node_Str\"));\n for (Player pl : r.getOnlinePlayers()) {\n if (!(pl == p)) {\n ItemStack item = new ItemStack(Material.SKULL_ITEM);\n item.setDurability(Short.parseShort(\"String_Node_Str\"));\n SkullMeta meta = (SkullMeta) item.getItemMeta();\n meta.setDisplayName(r.neutral + pl.getName());\n meta.setOwner(pl.getName());\n item.setItemMeta(meta);\n inv.addItem(item);\n }\n }\n UC.getPlayer(p).setInTeleportMenu(true);\n if (inv.getItem(0) == null) {\n Inventory inv2 = Bukkit.createInventory(null, 9, r.mes(\"String_Node_Str\"));\n p.openInventory(inv2);\n return;\n }\n p.openInventory(inv);\n } else if ((r.isDouble(args[0].replace(\"String_Node_Str\", \"String_Node_Str\")) || args[0].replace(\"String_Node_Str\", \"String_Node_Str\").isEmpty()) && (r.isDouble(args[1].replace(\"String_Node_Str\", \"String_Node_Str\")) || args[1].replace(\"String_Node_Str\", \"String_Node_Str\").isEmpty())) {\n if (!r.isPlayer(cs)) {\n return;\n }\n Player p = (Player) cs;\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n World w = p.getWorld();\n Double x = LocationUtil.getCoordinate(args[0], p.getLocation().getX());\n Double y;\n Double z;\n if (r.checkArgs(args, 2) == false) {\n z = LocationUtil.getCoordinate(args[1], p.getLocation().getZ());\n y = (double) w.getHighestBlockYAt(x.intValue(), z.intValue());\n } else {\n y = LocationUtil.getCoordinate(args[1], p.getLocation().getY());\n z = LocationUtil.getCoordinate(args[2], p.getLocation().getZ());\n }\n LocationUtil.teleport(p, new Location(w, x, y, z), PlayerTeleportEvent.TeleportCause.COMMAND, true, true);\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_Str\", x, \"String_Node_Str\", y, \"String_Node_Str\", z);\n } else if (r.checkArgs(args, 1) == true && (r.isDouble(args[1].replace(\"String_Node_Str\", \"String_Node_Str\")) || args[1].replace(\"String_Node_Str\", \"String_Node_Str\").isEmpty()) && (!r.isDouble(args[0].replace(\"String_Node_Str\", \"String_Node_Str\")) && !args[0].replace(\"String_Node_Str\", \"String_Node_Str\").isEmpty())) {\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n Player t = r.searchPlayer(args[0]);\n if (t == null) {\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_Str\", args[0]);\n return;\n }\n World w = t.getWorld();\n Double x = LocationUtil.getCoordinate(args[1], t.getLocation().getX());\n Double y;\n Double z;\n if (r.checkArgs(args, 3) == false) {\n z = LocationUtil.getCoordinate(args[2], t.getLocation().getZ());\n y = (double) w.getHighestBlockYAt(x.intValue(), z.intValue());\n } else {\n y = LocationUtil.getCoordinate(args[2], t.getLocation().getY());\n z = LocationUtil.getCoordinate(args[3], t.getLocation().getZ());\n }\n LocationUtil.teleport(t, new Location(w, x, y, z), PlayerTeleportEvent.TeleportCause.COMMAND, true, false);\n LocationUtil.playEffect(t, new Location(w, x, y, z));\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_Str\", t.getName(), \"String_Node_Str\", x, \"String_Node_Str\", y, \"String_Node_Str\", z);\n } else {\n Player tg = r.searchPlayer(args[0]);\n if (tg == null) {\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_Str\", args[0]);\n } else {\n if (r.checkArgs(args, 1) == false) {\n if (!r.isPlayer(cs)) {\n return;\n }\n Player p = (Player) cs;\n if (!UC.getPlayer(tg).hasTeleportEnabled() && !r.perm(cs, \"String_Node_Str\", false, false)) {\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_Str\", tg.getName());\n return;\n }\n LocationUtil.teleport(p, tg, PlayerTeleportEvent.TeleportCause.COMMAND, true, true);\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_Str\", tg.getName());\n } else {\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n Player tg2 = r.searchPlayer(args[1]);\n if (tg2 == null) {\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_Str\", args[1]);\n } else {\n if (UC.getPlayer(tg).hasTeleportEnabled() == false && !r.perm(cs, \"String_Node_Str\", false, false)) {\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_Str\", tg.getName());\n return;\n }\n if (UC.getPlayer(tg2).hasTeleportEnabled() == false && !r.perm(cs, \"String_Node_Str\", false, false)) {\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_Str\", tg2.getName());\n return;\n }\n LocationUtil.teleport(tg, tg2, PlayerTeleportEvent.TeleportCause.COMMAND, true, false);\n LocationUtil.playEffect(tg, tg2.getLocation());\n r.sendMes(cs, \"String_Node_Str\", \"String_Node_Str\", tg.getName(), \"String_Node_Str\", tg2.getName());\n }\n }\n }\n }\n}\n"