content stringlengths 40 137k |
|---|
"public boolean triggerAbility(TriggeredAbility source, Game game) {\n if (source == null) {\n logger.warn(\"String_Node_Str\");\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n int bookmark = game.bookmarkState();\n TriggeredAbility ability = source.copy();\n MageObject sourceObject = ability.getSourceObject(game);\n if (sourceObject != null) {\n sourceObject.adjustTargets(ability, game);\n }\n if (ability.canChooseTarget(game)) {\n if (ability.isUsesStack()) {\n game.getStack().push(new StackAbility(ability, playerId));\n }\n if (ability.activate(game, false)) {\n if ((ability.isUsesStack() || ability.getRuleVisible()) && !game.isSimulation()) {\n game.informPlayers(ability.getGameLogMessage(game));\n }\n if (!ability.isUsesStack()) {\n ability.resolve(game);\n }\n game.removeBookmark(bookmark);\n return true;\n }\n }\n restoreState(bookmark, source.getRule(), game);\n return false;\n}\n"
|
"public Packet getPacket(Packet packet, int timeout) throws IOException {\n if (packet == null) {\n packet = new Packet();\n packet.buffer = buffer;\n packet.mask = bufferMask;\n }\n Packet ret = null;\n long startTime = System.currentTimeMillis();\n boolean interrupted = false;\n int packetId = -1;\n while (ret == null && length < bufferLength && startTime + timeout > System.currentTimeMillis() && !Thread.currentThread().isInterrupted()) {\n try {\n ret = PacketScan.packetScan(buffer, start, length, bufferMask, packet);\n } catch (IllegalStateException ise) {\n throw ise;\n }\n int readSoFar = 0;\n if (ret == null) {\n int startMod = start & bufferMask;\n int endMod = (start + length) & bufferMask;\n int available;\n if (endMod >= startMod) {\n available = bufferLength - endMod;\n } else {\n available = startMod - endMod;\n }\n available = Math.min(available, buffer.length - SPARE_BYTES - length);\n int actual = 0;\n try {\n actual = in.read(buffer, endMod, available);\n if (actual > 0 && packetId == -1) {\n packetId = 0xFF & buffer[startMod];\n }\n readSoFar += actual;\n if (readSoFar < 100) {\n try {\n Thread.sleep(10);\n } catch (InterruptedException e) {\n Thread.currentThread().interrupt();\n }\n }\n } catch (SocketTimeoutException ste) {\n continue;\n }\n if (actual == -1) {\n throw new EOFException();\n } else {\n length += actual;\n if (length > buffer.length - 1 - SPARE_BYTES) {\n System.err.println(\"String_Node_Str\");\n System.out.println(\"String_Node_Str\");\n StringBuilder sb = new StringBuilder();\n boolean first = true;\n for (int i = -32; i < 256; i++) {\n if (!first) {\n sb.append(\"String_Node_Str\");\n } else {\n first = false;\n }\n int pos = (start + i) & bufferMask;\n if (i == 0) {\n sb.append(\"String_Node_Str\");\n }\n sb.append(Integer.toHexString(buffer[pos] & 0xFF));\n if (i == 0) {\n sb.append(\"String_Node_Str\");\n }\n }\n throw new IOException(\"String_Node_Str\");\n }\n }\n }\n }\n if (interrupted) {\n Thread.currentThread().interrupt();\n }\n if (ret == null) {\n return null;\n }\n int size = ret.end - ret.start;\n start += size;\n length -= size;\n return ret;\n}\n"
|
"public TrackingNumber getTrackingNumber(Product product, int sizeOfLot, Company company, LocalDate date) throws AxelorException {\n TrackingNumber trackingNumber = TrackingNumber.all().filter(\"String_Node_Str\", product, sizeOfLot).fetchOne();\n if (trackingNumber == null) {\n trackingNumber = this.createTrackingNumber(product, company, date).save();\n }\n trackingNumber.setCounter(trackingNumber.getCounter() + 1);\n return trackingNumber;\n}\n"
|
"private void initAnchorChooser(Object handle, boolean isToc) {\n anchorChooser.removeAll();\n if (handle instanceof ReportDesignHandle) {\n if (isToc) {\n List chooserItems = ((ReportDesignHandle) handle).getAllTocs();\n chooserItems.add(0, (Object) new String(\"String_Node_Str\"));\n anchorChooser.setItems((String[]) chooserItems.toArray(new String[0]));\n } else {\n anchorChooser.setItems((String[]) ((ReportDesignHandle) handle).getAllBookmarks().toArray(new String[0]));\n }\n } else if (handle instanceof IReportDocument) {\n if (isToc) {\n String format = \"String_Node_Str\";\n for (int i = 0; i < supportedFormats.length; i++) {\n if (((Button) formatCheckBtns.get(supportedFormats[i])).getSelection()) {\n format = supportedFormats[i];\n break;\n }\n }\n ITOCTree tocTree = ((IReportDocument) handle).getTOCTree(format, SessionHandleAdapter.getInstance().getSessionHandle().getULocale());\n TOCNode rootTocNode = tocTree.getRoot();\n anchorChooser.setItems((String[]) getAllTocDisplayString(rootTocNode).toArray(new String[0]));\n } else {\n anchorChooser.setItems(getDocumentBookmarks((IReportDocument) handle));\n }\n }\n bookmarkEditor.setText(\"String_Node_Str\");\n String bookmark = inputHandle.getTargetBookmark();\n String[] chooserValues = anchorChooser.getItems();\n if (bookmark != null && chooserValues != null) {\n for (int i = 0; i < chooserValues.length; i++) {\n if (bookmark.equals(chooserValues[i])) {\n anchorChooser.select(i);\n bookmarkEditor.setText(anchorChooser.getText());\n }\n }\n }\n anchorChooser.setEnabled(anchorChooser.getItemCount() > 0);\n}\n"
|
"public Instance pipe(Instance carrier) {\n String dataStr = (String) carrier.getData();\n if (dataStr.contains(\"String_Node_Str\")) {\n dataStr = dataStr.substring(0, dataStr.indexOf('#'));\n }\n String[] terms = dataStr.split(\"String_Node_Str\");\n String classStr = terms[0];\n if (classStr.equals(\"String_Node_Str\")) {\n classStr = \"String_Node_Str\";\n }\n Label label = ((LabelAlphabet) getTargetAlphabet()).lookupLabel(classStr, true);\n carrier.setTarget(label);\n ArrayList<Integer> indices = new ArrayList<Integer>();\n ArrayList<Double> values = new ArrayList<Double>();\n for (int termIndex = 1; termIndex < terms.length; termIndex++) {\n if (!terms[termIndex].equals(\"String_Node_Str\")) {\n String[] s = terms[termIndex].split(\"String_Node_Str\");\n if (s.length != 2) {\n throw new RuntimeException(\"String_Node_Str\" + terms[termIndex] + \"String_Node_Str\");\n }\n String feature = s[0];\n indices[termIndex - 1] = getDataAlphabet().lookupIndex(feature, true);\n values[termIndex - 1] = Double.parseDouble(s[1]);\n }\n }\n FeatureVector fv = new FeatureVector(getDataAlphabet(), indices, values);\n carrier.setData(fv);\n return carrier;\n}\n"
|
"private Point2D _getCenterPoint(Site site) {\n Figure figure = site.getFigure();\n if (figure == null) {\n return site.getPoint();\n }\n}\n"
|
"private void resetAudioStateAfterDisconnect() {\n if (VDBG)\n log(\"String_Node_Str\");\n if (mBluetoothHandsfree != null) {\n mBluetoothHandsfree.audioOff();\n }\n PhoneUtils.turnOnSpeaker(mPhone.getContext(), false, true);\n PhoneUtils.setAudioMode(mPhone.getContext(), AudioManager.MODE_NORMAL);\n}\n"
|
"public void projectChanged(GrailsElementKind[] changeKinds, IResourceDelta change) {\n synchronized (GrailsCore.get().getLockForProject(project)) {\n boolean foundRelevantChange = changeKinds.length > 0;\n if (foundRelevantChange) {\n classNodeCache.clear();\n setProject(project);\n }\n }\n}\n"
|
"public List<TypedSpan> performTyping(Document document) throws GerbilException {\n return getDocumentMarkings(document.getDocumentURI(), document.getText().length(), TypedSpan.class);\n}\n"
|
"public List<InputSplit> getSplits(JobContext jobContext) throws IOException {\n List<InputSplit> splits = new ArrayList<InputSplit>();\n Configuration configuration = jobContext.getConfiguration();\n FileSystem fs = FileSystem.get(configuration);\n List<Footer> footers = getFooters(jobContext);\n for (Footer footer : footers) {\n final Path file = footer.getFile();\n LOG.debug(file);\n FileSystem fs = file.getFileSystem(configuration);\n FileStatus fileStatus = fs.getFileStatus(file);\n ParquetMetadata parquetMetaData = footer.getParquetMetadata();\n List<BlockMetaData> blocks = parquetMetaData.getBlocks();\n BlockLocation[] fileBlockLocations = fs.getFileBlockLocations(fileStatus, 0, fileStatus.getLen());\n splits.addAll(generateSplits(blocks, fileBlockLocations, fileStatus, parquetMetaData.getFileMetaData(), readSupportClass, requestedSchema, parquetMetaData.getKeyValueMetaData()));\n }\n return splits;\n}\n"
|
"private boolean qualifiedNameMatches(ClassNode declaringType) {\n if (declaringType == null) {\n return false;\n } else if (declaringQualifiedName.isEmpty()) {\n return true;\n } else if (declaringType.getName().equals(declaringQualifiedName)) {\n return true;\n } else {\n return false;\n }\n}\n"
|
"public void handlePicking(final int iViewID, final GL gl, final boolean bIsMaster) {\n if (bEnablePicking == false)\n return;\n AGLEventListener canvasUser = (GeneralManager.get().getViewGLCanvasManager().getGLEventListener(iViewID));\n PickingJoglMouseListener pickingTriggerMouseAdapter = canvasUser.getParentGLCanvas().getJoglMouseListener();\n Point pickPoint = null;\n EPickingMode ePickingMode = EPickingMode.CLICKED;\n if (pickingTriggerMouseAdapter.wasMouseDoubleClicked()) {\n pickPoint = pickingTriggerMouseAdapter.getPickedPoint();\n ePickingMode = EPickingMode.DOUBLE_CLICKED;\n } else if (pickingTriggerMouseAdapter.wasLeftMouseButtonPressed()) {\n pickPoint = pickingTriggerMouseAdapter.getPickedPoint();\n ePickingMode = EPickingMode.CLICKED;\n } else if (pickingTriggerMouseAdapter.wasMouseDragged()) {\n pickPoint = pickingTriggerMouseAdapter.getPickedPoint();\n ePickingMode = EPickingMode.DRAGGED;\n } else if (pickingTriggerMouseAdapter.wasMouseMoved()) {\n hashViewIDToLastMouseMovedTimeStamp.put(iViewID, System.nanoTime());\n hashViewIDToIsMouseOverPickingEvent.put(iViewID, true);\n } else if (hashViewIDToIsMouseOverPickingEvent.get(iViewID) != null && hashViewIDToIsMouseOverPickingEvent.get(iViewID) == true) {\n pickPoint = pickingTriggerMouseAdapter.getPickedPoint();\n hashViewIDToLastMouseMovedTimeStamp.put(iViewID, System.nanoTime());\n ePickingMode = EPickingMode.MOUSE_OVER;\n }\n if (pickPoint == null) {\n return;\n }\n hashViewIDToIsMouseOverPickingEvent.put(iViewID, false);\n int PICKING_BUFSIZE = 1024;\n int[] iArPickingBuffer = new int[PICKING_BUFSIZE];\n IntBuffer pickingBuffer = BufferUtil.newIntBuffer(PICKING_BUFSIZE);\n int iHitCount = -1;\n int[] viewport = new int[4];\n gl.glGetIntegerv(GL.GL_VIEWPORT, viewport, 0);\n gl.glSelectBuffer(PICKING_BUFSIZE, pickingBuffer);\n gl.glRenderMode(GL.GL_SELECT);\n gl.glInitNames();\n gl.glMatrixMode(GL.GL_PROJECTION);\n gl.glPushMatrix();\n gl.glLoadIdentity();\n GLU glu = new GLU();\n glu.gluPickMatrix(pickPoint.x, (viewport[3] - pickPoint.y), 5.0, 5.0, viewport, 0);\n float fAspectRatio = (float) (viewport[3] - viewport[1]) / (float) (viewport[2] - viewport[0]);\n IViewFrustum viewFrustum = canvasUser.getViewFrustum();\n viewFrustum.setProjectionMatrix(gl, fAspectRatio);\n gl.glMatrixMode(GL.GL_MODELVIEW);\n Point tmpPickPoint = (Point) pickPoint.clone();\n pickPoint = null;\n canvasUser.display(gl);\n gl.glMatrixMode(GL.GL_PROJECTION);\n gl.glPopMatrix();\n gl.glMatrixMode(GL.GL_MODELVIEW);\n iHitCount = gl.glRenderMode(GL.GL_RENDER);\n pickingBuffer.get(iArPickingBuffer);\n ArrayList<Integer> iAlPickedObjectId = processHits(iHitCount, iArPickingBuffer);\n if (iAlPickedObjectId.size() > 0) {\n processPicks(iAlPickedObjectId, iViewID, ePickingMode, bIsMaster, tmpPickPoint, pickingTriggerMouseAdapter.getPickedPointDragStart());\n }\n}\n"
|
"public boolean onSingleTapUp(MotionEvent e) {\n OnChartGestureListener l = mChart.getOnChartGestureListener();\n if (l != null) {\n l.onChartSingleTapped(e);\n }\n performHighlight(e);\n return super.onSingleTapUp(e);\n}\n"
|
"public boolean equals(Object obj) {\n if (obj == this) {\n return true;\n }\n return super.equals(obj);\n}\n"
|
"public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {\n if (logger.isInfoEnabled()) {\n logger.info(\"String_Node_Str\", className);\n }\n try {\n final InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);\n if (!target.isInterceptable()) {\n return null;\n }\n List<InstrumentMethod> methodList = target.getDeclaredMethods(METHOD_FILTER);\n for (InstrumentMethod method : methodList) {\n if (logger.isTraceEnabled()) {\n logger.trace(\"String_Node_Str\", className, method.getName(), Arrays.toString(method.getParameterTypes()));\n }\n addInterceptor(method);\n }\n return target.toBytecode();\n } catch (Exception e) {\n logger.warn(\"String_Node_Str\", e.getMessage(), e);\n return null;\n }\n}\n"
|
"private String readRequestBody(HttpServletRequest request) {\n try {\n StringBuilder buffer = new StringBuilder();\n BufferedReader reader = request.getReader();\n String line;\n while ((line = reader.readLine()) != null) {\n buffer.append(line);\n }\n return buffer.toString();\n } catch (Exception e) {\n logger.error(\"String_Node_Str\", e);\n }\n return null;\n}\n"
|
"private static void setOnItemClickListener(Object classObj, View contentView, Method method) {\n OnItemClick onItemClick = method.getAnnotation(OnItemClick.class);\n int[] ids = onItemClick.value();\n if (ids != null) {\n for (int id : ids) {\n View view = viewFinder.findViewById(id);\n if (view instanceof AbsListView) {\n ((AbsListView) view).setOnItemClickListener(new EventListener(classObj, method.getName()));\n }\n }\n }\n}\n"
|
"public void dragFinished(DragSourceEvent event) {\n Control control = ((DragSource) event.widget).getControl();\n if ((control instanceof List) && ((event.detail & DND.DROP_MOVE) == DND.DROP_MOVE)) {\n ((List) control).remove(selected);\n MenuMainPage.this.markDirtyWithoutCommit();\n }\n}\n"
|
"public static void main(String[] args) throws IOException, InterruptedException {\n List<String> commands = Arrays.asList(args);\n JarSpawner spawner = new JarSpawner();\n spawner.initialSetup();\n if (commands.contains(SELION_CONFIG_ARG)) {\n ConfigParser.setConfigFile(commands.get(commands.indexOf(SELION_CONFIG_ARG) + 1));\n }\n long interval = ConfigParser.parse().getLong(\"String_Node_Str\", 60000L);\n LOGGER.info(\"String_Node_Str\" + interval + \"String_Node_Str\");\n while (true) {\n FileDownloader.checkForDownloads();\n if (commands.contains(HELP_ARG) || commands.contains(\"String_Node_Str\")) {\n spawner.continuouslyRestart(commands, 100, true);\n spawner.printUsageInfo();\n return;\n }\n spawner.continuouslyRestart(commands, interval, false);\n LOGGER.info(\"String_Node_Str\");\n }\n}\n"
|
"public Intent getIntent() {\n Bundle bundle = new Bundle();\n final Intent intent = new Intent(mContext, ChatActivity.class);\n ChatRoom currentChatRoom = new ChatRoom(mRoomIdString);\n currentChatRoom.setId(mRoomId);\n intent.putExtra(Const.CURRENT_CHAT_ROOM, new Gson().toJson(currentChatRoom));\n intent.putExtra(Const.CURRENT_CHAT_MEMBER, new Gson().toJson(mMember));\n intent.putExtras(bundle);\n return intent;\n}\n"
|
"public static Collection<Object[]> allTestsParameters() {\n return (new TestFileUtils()).loadTestFiles(standardCases, lessjsIncompatible, lessjsTests);\n}\n"
|
"protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {\n ChannelBuffer buf = (ChannelBuffer) msg;\n int header = buf.readShort();\n if (header == 0x7878) {\n int length = buf.readUnsignedByte();\n int dataLength = length - 5;\n int type = buf.readUnsignedByte();\n if (type == MSG_LOGIN) {\n String imei = ChannelBuffers.hexDump(buf.readBytes(8)).substring(1);\n buf.readUnsignedShort();\n if (dataLength > 10) {\n int extensionBits = buf.readUnsignedShort();\n int hours = (extensionBits >> 4) / 100;\n int minutes = (extensionBits >> 4) % 100;\n int offset = (hours * 60 + minutes) * 60;\n if ((extensionBits & 0x8) != 0) {\n offset = -offset;\n }\n if (!forceTimeZone) {\n timeZone.setRawOffset(offset * 1000);\n }\n }\n if (getDeviceSession(channel, remoteAddress, imei) != null) {\n buf.skipBytes(buf.readableBytes() - 6);\n sendResponse(channel, type, buf.readUnsignedShort());\n }\n } else {\n DeviceSession deviceSession = getDeviceSession(channel, remoteAddress);\n if (deviceSession == null) {\n return null;\n }\n if (type == MSG_LBS_EXTEND) {\n Position position = new Position();\n position.setDeviceId(deviceSession.getDeviceId());\n position.setProtocol(getProtocolName());\n DateBuilder dateBuilder = new DateBuilder(timeZone).setDate(buf.readUnsignedByte(), buf.readUnsignedByte(), buf.readUnsignedByte()).setTime(buf.readUnsignedByte(), buf.readUnsignedByte(), buf.readUnsignedByte());\n getLastLocation(position, dateBuilder.getDate());\n int mcc = buf.readUnsignedShort();\n int mnc = buf.readUnsignedByte();\n Network network = new Network();\n for (int i = 0; i < 7; i++) {\n network.addCellTower(CellTower.from(mcc, mnc, buf.readUnsignedShort(), buf.readUnsignedMedium(), -buf.readUnsignedByte()));\n }\n position.setNetwork(network);\n return position;\n }\n if (type == MSG_STRING) {\n Position position = new Position();\n position.setDeviceId(deviceSession.getDeviceId());\n position.setProtocol(getProtocolName());\n getLastLocation(position, null);\n int commandLength = buf.readUnsignedByte();\n if (commandLength > 0) {\n buf.readUnsignedByte();\n position.set(\"String_Node_Str\", buf.readBytes(commandLength - 1).toString(StandardCharsets.US_ASCII));\n }\n buf.readUnsignedShort();\n sendResponse(channel, type, buf.readUnsignedShort());\n return position;\n } else if (isSupported(type)) {\n Position position = new Position();\n position.setDeviceId(deviceSession.getDeviceId());\n position.setProtocol(getProtocolName());\n if (hasGps(type)) {\n decodeGps(position, buf);\n } else {\n getLastLocation(position, null);\n }\n if (hasLbs(type)) {\n decodeLbs(position, buf, hasStatus(type));\n }\n if (hasStatus(type)) {\n decodeStatus(position, buf);\n }\n if (type == MSG_GPS_LBS_1 && buf.readableBytes() == 4 + 6) {\n position.set(Position.KEY_ODOMETER, buf.readUnsignedInt());\n }\n if (buf.readableBytes() > 6) {\n buf.skipBytes(buf.readableBytes() - 6);\n }\n int index = buf.readUnsignedShort();\n position.set(Position.KEY_INDEX, index);\n sendResponse(channel, type, index);\n return position;\n } else {\n buf.skipBytes(dataLength);\n if (type != MSG_COMMAND_0 && type != MSG_COMMAND_1 && type != MSG_COMMAND_2) {\n sendResponse(channel, type, buf.readUnsignedShort());\n }\n }\n }\n } else if (header == 0x7979) {\n DeviceSession deviceSession = getDeviceSession(channel, remoteAddress);\n if (deviceSession == null) {\n return null;\n }\n buf.readUnsignedShort();\n int type = buf.readUnsignedByte();\n if (type == MSG_INFO) {\n int subType = buf.readUnsignedByte();\n Position position = new Position();\n position.setDeviceId(deviceSession.getDeviceId());\n position.setProtocol(getProtocolName());\n getLastLocation(position, null);\n if (subType == 0x00) {\n position.set(Position.KEY_POWER, buf.readUnsignedShort() * 0.01);\n return position;\n } else if (subType == 0x05) {\n int flags = buf.readUnsignedByte();\n position.set(\"String_Node_Str\", BitUtil.check(flags, 0));\n position.set(Position.PREFIX_IO + 1, BitUtil.check(flags, 2));\n return position;\n }\n }\n }\n return null;\n}\n"
|
"public void createPartControl(Composite parent) {\n GridLayout layout = new GridLayout();\n parent.setLayoutData(new GridData(GridData.FILL_BOTH));\n parent.setLayout(layout);\n makeAction();\n createCoolBar(parent);\n tableView = new TableViewer(parent, SWT.SINGLE | SWT.FULL_SELECTION | SWT.BORDER);\n Table table = tableView.getTable();\n MenuManager popupMenu = new MenuManager();\n popupMenu.add(exportAction);\n Menu menu = popupMenu.createContextMenu(table);\n table.setMenu(menu);\n exportAction.setTable(table);\n GridDataFactory.fillDefaults().grab(true, true).align(SWT.FILL, SWT.FILL).applyTo(table);\n if (this.getEditorInput() instanceof DrillDownEditorInput) {\n DrillDownEditorInput ddEditorInput = (DrillDownEditorInput) this.getEditorInput();\n if (ddEditorInput.getCurrIndicator().isUsedMapDBMode()) {\n initTableViewerForMapDB(parent, table, ddEditorInput);\n } else {\n initTableViewerForJava(table, ddEditorInput);\n }\n for (TableColumn packColumn : table.getColumns()) {\n packColumn.pack();\n }\n }\n}\n"
|
"protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n System.out.println(\"String_Node_Str\" + w + \"String_Node_Str\" + h);\n final float length = Math.min(w, h);\n final float strokeWidth = length * mProgressRingStrokeRatio;\n mRadius = length / 2 - strokeWidth;\n final float textSize = mRadius / 2;\n mPaint.setStrokeWidth(strokeWidth);\n mProgressRect.left = w / 2 - mRadius - strokeWidth / 2;\n mProgressRect.top = h / 2 - mRadius - strokeWidth / 2;\n mProgressRect.right = w / 2 + mRadius + strokeWidth / 2;\n mProgressRect.bottom = h / 2 + mRadius + strokeWidth / 2;\n mTextPaint.setTextSize(textSize);\n invalidate();\n}\n"
|
"public ICachedObject createInstance(Object[] fields) {\n GroupBoundaryInfo groupBoundaryInfo = new GroupBoundaryInfo(((Integer) fields[0]).intValue(), ((Integer) fields[1]).intValue());\n Object[] sortKeys = null;\n int sortKeysTotalLength = 1;\n if (fields[2] != null) {\n sortKeys = new Object[((Integer) fields[2]).intValue()];\n System.arraycopy(fields, 3, sortKeys, 0, sortKeys.length);\n sortKeysTotalLength = sortKeys.length + 1;\n }\n boolean[] sortDirections = null;\n if (fields[2 + sortKeysTotalLength] != null) {\n sortDirections = new boolean[((Integer) fields[2 + sortKeysTotalLength]).intValue()];\n for (int i = 0; i < sortDirections.length; i++) {\n sortDirections[i] = ((Boolean) fields[3 + sortKeysTotalLength + i]).booleanValue();\n }\n }\n int[] sortStrength = null;\n if (fields[2 + sortKeysTotalLength * 2] != null) {\n sortStrength = new int[((Integer) fields[2 + sortKeysTotalLength * 2]).intValue()];\n for (int i = 0; i < sortStrength.length; i++) {\n sortStrength[i] = ((Integer) fields[3 + sortKeysTotalLength * 2 + i]).intValue();\n }\n locales = new ULocale[sortStrength.length];\n for (int i = 0; i < sortStrength.length; i++) {\n Object locale = fields[3 + sortKeysTotalLength * 3 + i];\n if (locale != null)\n locales[i] = new ULocale((String) locale);\n }\n }\n groupBoundaryInfo.setSortCondition(sortKeys, sortDirections, sortStrength, locales);\n groupBoundaryInfo.setAccepted(((Boolean) fields[fields.length - 1]).booleanValue());\n return groupBoundaryInfo;\n}\n"
|
"public void clearVouchers(Set<Long> expireTimes) {\n for (Long expireTime : expireTimes) {\n if (xcapExpireTimeList.contains(expireTime)) {\n xcapExpireTimeList.remove(expireTime);\n } else {\n System.out.println(\"String_Node_Str\");\n }\n }\n}\n"
|
"private BundleManifest loadManifest(ArtifactFS compositeArtifactFS) throws DeploymentException {\n ArtifactFSEntry entry = compositeArtifactFS.getEntry(JarFile.MANIFEST_NAME);\n Reader reader = null;\n try {\n reader = new InputStreamReader(entry.getInputStream(), UTF_8);\n return BundleManifestFactory.createBundleManifest(reader);\n } catch (IOException ex) {\n throw new DeploymentException(\"String_Node_Str\" + compositeArtifactFS + \"String_Node_Str\", ex);\n } finally {\n IOUtils.closeQuietly(reader);\n }\n}\n"
|
"public ExactRelation rewriteForPointEstimate() {\n List<SelectElem> scaled = new ArrayList<SelectElem>();\n List<ColNameExpr> samplingProbColumns = newSource.accumulateSamplingProbColumns();\n for (SelectElem e : elems) {\n scaled.add(new SelectElem(transformForSingleFunction(e.getExpr(), stratifiedSampleTables), e.getAlias()));\n }\n ExactRelation r = new AggregatedRelation(vc, source.rewriteForPointEstimate(), scaled);\n r.setAliasName(getAliasName());\n return r;\n}\n"
|
"public Proc launch(ProcStarter starter) throws IOException {\n if (!waitUntilContainerIsReady()) {\n throw new IOException(\"String_Node_Str\" + \"String_Node_Str\" + containerName + \"String_Node_Str\" + podName + \"String_Node_Str\" + \"String_Node_Str\");\n }\n final CountDownLatch started = new CountDownLatch(1);\n final CountDownLatch finished = new CountDownLatch(1);\n final AtomicBoolean alive = new AtomicBoolean(false);\n PrintStream printStream = launcher.getListener().getLogger();\n OutputStream stream = printStream;\n if (starter.quiet()) {\n stream = new NullOutputStream();\n printStream = new PrintStream(stream, false, StandardCharsets.UTF_8.toString());\n }\n ExitCodeOutputStream exitCodeOutputStream = new ExitCodeOutputStream();\n stream = new TeeOutputStream(exitCodeOutputStream, stream);\n String msg = \"String_Node_Str\" + containerName + \"String_Node_Str\" + podName + \"String_Node_Str\";\n LOGGER.log(Level.FINEST, msg);\n printStream.println(msg);\n ExecWatch watch = client.pods().inNamespace(namespace).withName(podName).inContainer(containerName).redirectingInput().writingOutput(stream).writingError(stream).withTTY().usingListener(new ExecListener() {\n\n public void onOpen(Response response) {\n alive.set(true);\n started.countDown();\n }\n public void onFailure(Throwable t, Response response) {\n alive.set(false);\n t.printStackTrace(launcher.getListener().getLogger());\n started.countDown();\n LOGGER.log(Level.FINEST, \"String_Node_Str\", finished);\n if (finished.getCount() == 0) {\n LOGGER.log(Level.WARNING, \"String_Node_Str\");\n }\n finished.countDown();\n }\n public void onClose(int i, String s) {\n alive.set(false);\n started.countDown();\n LOGGER.log(Level.FINEST, \"String_Node_Str\", finished);\n if (finished.getCount() == 0) {\n LOGGER.log(Level.WARNING, \"String_Node_Str\");\n }\n finished.countDown();\n }\n }).exec();\n waitQuietly(started);\n if (starter.pwd() != null) {\n watch.getInput().write(String.format(\"String_Node_Str\", starter.pwd(), NEWLINE).getBytes(StandardCharsets.UTF_8));\n }\n doExec(watch, printStream, getCommands(starter));\n proc = new ContainerExecProc(watch, alive, finished, new Callable<Integer>() {\n public Integer call() {\n return exitCodeOutputStream.getExitCode();\n }\n });\n return proc;\n}\n"
|
"public void setDeploymentContext(DeploymentContext deploymentContext) {\n synchronized (this) {\n this.deploymentContext = deploymentContext;\n }\n}\n"
|
"public static String toRapidshareCom(File file) {\n try {\n Form form = Form.getForms(\"String_Node_Str\")[0];\n form.fileToPost = file;\n System.out.println(form.getRequestInfo().getHtmlCode());\n System.out.println(form.toString());\n } catch (Exception e) {\n }\n return \"String_Node_Str\";\n}\n"
|
"private void deserializeField(final VPackSlice parent, final VPackSlice vpack, final Object entity, final FieldInfo fieldInfo) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException, VPackException {\n final VPackSlice attr = new VPackSlice(vpack.getVpack(), vpack.getStart() + vpack.getByteSize());\n if (!attr.isNone()) {\n final Object value = getValue(parent, attr, fieldInfo.getType(), fieldInfo.getFieldName());\n fieldInfo.set(entity, value);\n }\n}\n"
|
"public String toString() {\n return type == null ? \"String_Node_Str\" : type.getFullQualifiedName().getFullQualifiedNameAsString() + getValues();\n}\n"
|
"public void run() {\n Connection conn = null;\n while (running) {\n try {\n WanReplicationEvent event = (failureQ.size() > 0) ? failureQ.removeFirst() : eventQueue.take();\n if (conn == null) {\n conn = getConnection();\n if (conn != null) {\n boolean authorized = checkAuthorization(groupName, password, conn.getEndPoint());\n if (!authorized) {\n conn.close();\n conn = null;\n if (logger != null) {\n logger.severe(\"String_Node_Str\");\n }\n }\n }\n }\n if (conn != null && conn.live()) {\n Data data = node.nodeEngine.getSerializationService().toData(event);\n Packet packet = new Packet(data, node.nodeEngine.getSerializationContext());\n packet.setHeader(Packet.HEADER_WAN_REPLICATION);\n node.nodeEngine.send(packet, conn);\n } else {\n failureQ.addFirst(event);\n conn = null;\n }\n } catch (InterruptedException e) {\n running = false;\n } catch (Throwable e) {\n if (logger != null) {\n logger.warning(e);\n }\n conn = null;\n }\n }\n}\n"
|
"protected final void _importOnDemand(String qualName) {\n NameNode name = (NameNode) StaticResolution.makeNameNode(qualName);\n StaticResolution.resolveAName(name, StaticResolution.SYSTEM_PACKAGE.getEnviron(), null, null, CG_PACKAGE);\n _importOnDemand((PackageDecl) name.getDefinedProperty(DECL_KEY));\n}\n"
|
"private synchronized boolean add(Block block, boolean tryConnecting) throws BlockStoreException, VerificationException, ScriptException {\n if (System.currentTimeMillis() - statsLastTime > 1000) {\n if (statsBlocksAdded > 1)\n log.info(\"String_Node_Str\", statsBlocksAdded);\n statsLastTime = System.currentTimeMillis();\n statsBlocksAdded = 0;\n }\n if (block.equals(getChainHead().getHeader())) {\n log.debug(\"String_Node_Str\", block.getHash());\n return true;\n }\n boolean contentsImportant = false;\n if (block.transactions != null) {\n contentsImportant = containsRelevantTransactions(block);\n }\n try {\n block.verifyHeader();\n if (contentsImportant)\n block.verifyTransactions();\n } catch (VerificationException e) {\n log.error(\"String_Node_Str\", e);\n log.error(block.getHashAsString());\n throw e;\n }\n StoredBlock storedPrev = blockStore.get(block.getPrevBlockHash());\n if (storedPrev == null) {\n checkState(tryConnecting, \"String_Node_Str\");\n log.warn(\"String_Node_Str\", block.getHashAsString(), block.getPrevBlockHash());\n unconnectedBlocks.add(block);\n return false;\n } else {\n StoredBlock newStoredBlock = storedPrev.build(block);\n if (params.checkBlockDifficulty)\n checkDifficultyTransitions(storedPrev, newStoredBlock);\n blockStore.put(newStoredBlock);\n connectBlock(newStoredBlock, storedPrev, block.transactions);\n }\n if (tryConnecting)\n tryConnectingUnconnected();\n statsBlocksAdded++;\n return true;\n}\n"
|
"public void blendMode(int mode) {\n if (blendMode != mode) {\n flush();\n setBlendMode(mode);\n }\n}\n"
|
"public List<Domain> search(QueryParam queryParam, JdbcTemplate jdbcTemplate) {\n DomainSearchParam domainSearchParam = (DomainSearchParam) queryParam;\n final String domainName = domainSearchParam.getQ();\n final String punyName = domainSearchParam.getPunyName();\n final String domainNameLikeClause = generateLikeClause(domainName);\n final String punyNameLikeClause = generateLikeClause(punyName);\n final String sql = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\";\n final PageBean page = domainSearchParam.getPageBean();\n int startPage = page.getCurrentPage() - 1;\n startPage = startPage >= 0 ? startPage : 0;\n final long startRow = startPage * page.getMaxRecords();\n DomainQueryDaoImpl domainDao = new DomainQueryDaoImpl();\n List<Domain> result = null;\n result = jdbcTemplate.query(new PreparedStatementCreator() {\n public PreparedStatement createPreparedStatement(Connection connection) throws SQLException {\n PreparedStatement ps = connection.prepareStatement(sql);\n ps.setString(1, punyNameLikeClause);\n ps.setString(2, domainNameLikeClause);\n ps.setLong(3, startRow);\n ps.setLong(4, page.getMaxRecords());\n return ps;\n }\n }, domainDao.new DomainWithStatusResultSetExtractor());\n return result;\n}\n"
|
"public void testConstructorsForEnumWrong_GRE285() {\n runNegativeTest(new String[] { \"String_Node_Str\", \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" }, \"String_Node_Str\");\n}\n"
|
"private void createAnonClassDecl(polyglot.ast.New aNew) {\n SootClass outerClass = ((soot.RefType) Util.getSootType(aNew.anonType().outer())).getSootClass();\n if (InitialResolver.v().getInnerClassInfoMap() == null) {\n InitialResolver.v().setInnerClassInfoMap(new HashMap());\n }\n InitialResolver.v().getInnerClassInfoMap().put(sootClass, new InnerClassInfo(outerClass, \"String_Node_Str\", InnerClassInfo.ANON));\n sootClass.setOuterClass(outerClass);\n soot.SootClass typeClass = ((soot.RefType) Util.getSootType(aNew.objectType().type())).getSootClass();\n if (((polyglot.types.ClassType) aNew.objectType().type()).flags().isInterface()) {\n sootClass.addInterface(typeClass);\n sootClass.setSuperclass(soot.Scene.v().getSootClass(\"String_Node_Str\"));\n } else {\n sootClass.setSuperclass(typeClass);\n if (((polyglot.types.ClassType) aNew.objectType().type()).isNested()) {\n polyglot.types.ClassType superType = (polyglot.types.ClassType) aNew.objectType().type();\n Util.addInnerClassTag(sootClass, typeClass.getName(), ((soot.RefType) Util.getSootType(superType.outer())).toString(), superType.name(), Util.getModifier(superType.flags()));\n }\n }\n ArrayList params = new ArrayList();\n soot.SootMethod method;\n if (((polyglot.types.ClassType) aNew.objectType().type()).flags().isInterface()) {\n method = new soot.SootMethod(\"String_Node_Str\", params, soot.VoidType.v());\n } else {\n Iterator aIt = aNew.arguments().iterator();\n while (aIt.hasNext()) {\n polyglot.types.Type pType = ((polyglot.ast.Expr) aIt.next()).type();\n params.add(Util.getSootType(pType));\n }\n method = new soot.SootMethod(\"String_Node_Str\", params, soot.VoidType.v());\n }\n AnonClassInitMethodSource src = new AnonClassInitMethodSource();\n method.setSource(src);\n sootClass.addMethod(method);\n AnonLocalClassInfo info = (AnonLocalClassInfo) InitialResolver.v().finalLocalInfo().get(new polyglot.util.IdentityKey(aNew.anonType()));\n if (aNew.qualifier() != null) {\n addQualifierRefToInit(aNew.qualifier().type());\n src.hasQualifier(true);\n }\n if (!info.inStaticMethod()) {\n addOuterClassThisRefToInit(aNew.anonType().outer());\n addOuterClassThisRefField(aNew.anonType().outer());\n src.thisOuterType(Util.getSootType(aNew.anonType().outer()));\n src.hasOuterRef(true);\n }\n src.inStaticMethod(info.inStaticMethod());\n if (info != null) {\n src.setFinalsList(addFinalLocals(aNew.body(), info.finalLocalsAvail(), (polyglot.types.ClassType) aNew.anonType(), info));\n }\n src.outerClassType(Util.getSootType(aNew.anonType().outer()));\n if (((polyglot.types.ClassType) aNew.objectType().type()).isNested()) {\n src.superOuterType(Util.getSootType(((polyglot.types.ClassType) aNew.objectType().type()).outer()));\n src.isSubType(Util.isSubType(aNew.anonType().outer(), ((polyglot.types.ClassType) aNew.objectType().type()).outer()));\n }\n}\n"
|
"private int formatInternal(Unit<?> unit, Appendable buffer) throws IOException {\n return InternalFormater.INSTANCE.formatInternal(unit, buffer, symbolMap);\n}\n"
|
"public void testAccuracy() throws ParseException {\n Date d = df.parse(\"String_Node_Str\");\n assertEquals(\"String_Node_Str\", dateToISO8601UTCDateTimeString(d, true));\n assertEquals(\"String_Node_Str\", dateToISO8601String(d, true, true, true, DateUtil.ACCURACY_MILLISECONDS, null));\n assertEquals(\"String_Node_Str\", dateToISO8601String(d, true, true, true, DateUtil.ACCURACY_SECONDS, null));\n assertEquals(\"String_Node_Str\", dateToISO8601String(d, true, true, true, DateUtil.ACCURACY_MINUTES, null));\n assertEquals(\"String_Node_Str\", dateToISO8601String(d, true, true, true, DateUtil.ACCURACY_HOURS, null));\n}\n"
|
"public JavaClass[] processObjectFactory(JavaClass objectFactoryClass, ArrayList<JavaClass> classes) {\n Collection methods = objectFactoryClass.getDeclaredMethods();\n Iterator methodsIter = methods.iterator();\n NamespaceInfo namespaceInfo = getNamespaceInfoForPackage(objectFactoryClass.getPackage());\n while (methodsIter.hasNext()) {\n JavaMethod next = (JavaMethod) methodsIter.next();\n if (next.getName().startsWith(\"String_Node_Str\")) {\n JavaClass type = next.getReturnType();\n if (type.getName().equals(\"String_Node_Str\")) {\n type = (JavaClass) next.getReturnType().getActualTypeArguments().toArray()[0];\n } else {\n this.factoryMethods.put(next.getReturnType().getRawName(), next);\n }\n if (helper.isAnnotationPresent(next, XmlElementDecl.class)) {\n XmlElementDecl elementDecl = (XmlElementDecl) helper.getAnnotation(next, XmlElementDecl.class);\n String url = elementDecl.namespace();\n if (\"String_Node_Str\".equals(url)) {\n url = namespaceInfo.getNamespace();\n }\n String localName = elementDecl.name();\n QName qname = new QName(url, localName);\n if (this.globalElements == null) {\n globalElements = new HashMap<QName, ElementDeclaration>();\n }\n boolean isList = false;\n if (\"String_Node_Str\".equals(type.getName())) {\n isList = true;\n if (type.hasActualTypeArguments()) {\n type = (JavaClass) type.getActualTypeArguments().toArray()[0];\n }\n }\n ElementDeclaration declaration = new ElementDeclaration(qname, type, type.getQualifiedName(), isList, elementDecl.scope());\n if (!elementDecl.substitutionHeadName().equals(\"String_Node_Str\")) {\n String subHeadLocal = elementDecl.substitutionHeadName();\n String subHeadNamespace = elementDecl.substitutionHeadNamespace();\n if (subHeadNamespace.equals(\"String_Node_Str\")) {\n subHeadNamespace = namespaceInfo.getNamespace();\n }\n declaration.setSubstitutionHead(new QName(subHeadNamespace, subHeadLocal));\n }\n if (helper.isAnnotationPresent(next, XmlJavaTypeAdapter.class)) {\n XmlJavaTypeAdapter typeAdapter = (XmlJavaTypeAdapter) helper.getAnnotation(next, XmlJavaTypeAdapter.class);\n Class typeAdapterClass = typeAdapter.value();\n declaration.setJavaTypeAdapterClass(typeAdapterClass);\n Method[] tacMethods = typeAdapterClass.getMethods();\n Class declJavaType = null;\n for (int i = 0; i < tacMethods.length; i++) {\n Method method = tacMethods[i];\n if (method.getName().equals(\"String_Node_Str\")) {\n declJavaType = method.getReturnType();\n break;\n }\n }\n declaration.setJavaType(helper.getJavaClass(declJavaType));\n declaration.setAdaptedJavaType(type);\n }\n globalElements.put(qname, declaration);\n }\n if (!helper.isBuiltInJavaType(type) && !classes.contains(type)) {\n classes.add(type);\n }\n }\n }\n if (classes.size() > 0) {\n return classes.toArray(new JavaClass[classes.size()]);\n } else {\n return new JavaClass[0];\n }\n}\n"
|
"public void run() {\n try {\n CSPReceiver receiver = getReceiver();\n ConditionalBranchController controller = getController();\n synchronized (receiver) {\n if (receiver._isConditionalReceiveWaiting() || receiver._isGetWaiting()) {\n throw new InvalidStateException(((Nameable) controller.getParent()).getName() + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\");\n }\n while (true) {\n if (!isAlive()) {\n controller._branchFailed(getID());\n return;\n } else if (receiver._isPutWaiting()) {\n _arriveAfterPut(receiver, controller);\n return;\n } else if (receiver._isConditionalSendWaiting()) {\n if (!_arriveAfterConditionalSend(receiver, controller)) {\n return;\n }\n } else {\n _arriveFirst(receiver, controller);\n return;\n }\n }\n }\n } catch (InterruptedException ex) {\n getController()._branchFailed(getID());\n } catch (TerminateProcessException ex) {\n getController()._branchFailed(getID());\n } finally {\n getReceiver()._setConditionalReceive(false, null, -1);\n }\n}\n"
|
"public Double getFrequency(Object dataValue) {\n if (this.count.compareTo(0L) == 0) {\n return Double.NaN;\n }\n ModelMatcher matcher = null;\n if (dataValue instanceof ModelMatcher) {\n matcher = (ModelMatcher) dataValue;\n }\n return ((double) matcher.getScore()) / this.getCount().longValue();\n}\n"
|
"public void sleep(long ms) throws InterruptedException {\n long now = getTimeInMilliseconds() + ms;\n setTimeInMillieconds(now);\n Assert.assertTrue(String.format(\"String_Node_Str\", now, max_end), now < max_end);\n}\n"
|
"public StringBuilder matchCommand(MessageReceiver caller, String command, boolean onlySubcommands) {\n int matches = 0;\n int maxMatches = 4;\n StringBuilder matching = new StringBuilder();\n command = command.toLowerCase();\n for (String key : commands.keySet()) {\n if (!onlySubcommands) {\n if (key.toLowerCase().equals(command)) {\n if (matching.indexOf(\"String_Node_Str\".concat(key)) == -1) {\n if (commands.get(key).canUse(caller) && matches <= maxMatches) {\n ++matches;\n matching.append(\"String_Node_Str\").append(key).append(\"String_Node_Str\");\n }\n }\n } else if (key.toLowerCase().contains(command)) {\n if (matching.indexOf(\"String_Node_Str\".concat(key)) == -1) {\n if (commands.get(key).canUse(caller) && matches <= maxMatches) {\n ++matches;\n matching.append(\"String_Node_Str\").append(key).append(\"String_Node_Str\");\n }\n }\n }\n }\n for (CanaryCommand cmd : commands.get(key).getSubCommands(new ArrayList<CanaryCommand>())) {\n for (String alias : cmd.meta.aliases()) {\n if (alias.toLowerCase().equals(command)) {\n if (matching.indexOf(alias) == -1) {\n if (cmd.canUse(caller) && matches <= maxMatches) {\n ++matches;\n matching.append(alias).append(\"String_Node_Str\");\n }\n }\n } else if (alias.toLowerCase().indexOf(command) != -1) {\n if (matching.indexOf(alias) == -1) {\n if (cmd.canUse(caller) && matches <= maxMatches) {\n ++matches;\n matching.append(alias).append(\"String_Node_Str\");\n }\n }\n }\n }\n }\n }\n return matching;\n}\n"
|
"public SearchResult<ActionLog> filterSearchActionLogs(SearchFilter filter, SearchOrder orderBy, SearchDirection direction, int offset, int limit) {\n int paramIndex = 1;\n Map<String, Object> params = new HashMap<String, Object>();\n ANDList andList = new ANDList();\n ORList orList = new ORList();\n for (String searchText : filter.getSearchText()) {\n orList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), \"String_Node_Str\" + searchText + \"String_Node_Str\");\n }\n andList.add(orList);\n orList = new ORList();\n for (String stateName : filter.getStates()) {\n orList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), stateName);\n }\n andList.add(orList);\n orList = new ORList();\n for (Person assignee : filter.getAssignees()) {\n orList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), assignee);\n }\n andList.add(orList);\n orList = new ORList();\n for (EmbargoType embargo : filter.getEmbargoTypes()) {\n orList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), embargo);\n }\n andList.add(orList);\n orList = new ORList();\n for (Semester semester : filter.getGraduationSemesters()) {\n ANDList semesterList = new ANDList();\n if (semester.year != null) {\n semesterList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), semester.year);\n }\n if (semester.month != null) {\n semesterList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), semester.month);\n }\n if (semesterList.size() > 0)\n orList.add(semesterList);\n }\n andList.add(orList);\n orList = new ORList();\n for (String degree : filter.getDegrees()) {\n orList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), degree);\n }\n andList.add(orList);\n orList = new ORList();\n for (String department : filter.getDepartments()) {\n orList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), department);\n }\n andList.add(orList);\n orList = new ORList();\n for (String college : filter.getColleges()) {\n orList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), college);\n }\n andList.add(orList);\n orList = new ORList();\n for (String major : filter.getMajors()) {\n orList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), major);\n }\n andList.add(orList);\n orList = new ORList();\n for (String docType : filter.getDocumentTypes()) {\n orList.add(new Statement(\"String_Node_Str\" + paramIndex));\n params.put(\"String_Node_Str\" + (paramIndex++), docType);\n }\n andList.add(orList);\n if (filter.getUMIRelease() != null) {\n if (filter.getUMIRelease()) {\n andList.add(new Statement(\"String_Node_Str\"));\n } else {\n andList.add(new Statement(\"String_Node_Str\"));\n }\n }\n if (filter.getSubmissionDateRangeStart() != null && filter.getSubmissionDateRangeEnd() != null) {\n Date start = filter.getSubmissionDateRangeStart();\n Date end = filter.getSubmissionDateRangeEnd();\n andList.add(new Statement(\"String_Node_Str\" + paramIndex));\n andList.add(new Statement(\"String_Node_Str\" + (paramIndex + 1)));\n params.put(\"String_Node_Str\" + (paramIndex++), start);\n params.put(\"String_Node_Str\" + (paramIndex++), end);\n }\n StringBuilder queryText = new StringBuilder();\n queryText.append(\"String_Node_Str\");\n queryText.append(\"String_Node_Str\");\n queryText.append(\"String_Node_Str\");\n queryText.append(\"String_Node_Str\");\n queryText.append(\"String_Node_Str\");\n queryText.append(\"String_Node_Str\");\n queryText.append(\"String_Node_Str\");\n queryText.append(\"String_Node_Str\");\n queryText.append(\"String_Node_Str\");\n params.put(\"String_Node_Str\", AttachmentType.PRIMARY);\n if (andList.size() > 0) {\n queryText.append(\"String_Node_Str\");\n andList.buildClause(queryText);\n queryText.append(\"String_Node_Str\");\n }\n queryText.append(\"String_Node_Str\");\n String orderByClause = ACTION_LOG_ORDER_BY_COLUMNS[orderBy.ordinal()];\n if (direction == SearchDirection.DESCENDING)\n orderByClause = orderByClause.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n else\n orderByClause = orderByClause.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n queryText.append(\"String_Node_Str\" + orderByClause);\n if (Logger.isDebugEnabled()) {\n String message = \"String_Node_Str\" + queryText.toString() + \"String_Node_Str\";\n for (String key : params.keySet()) {\n message += \"String_Node_Str\" + key + \"String_Node_Str\" + params.get(key) + \"String_Node_Str\";\n }\n Logger.debug(message);\n }\n TypedQuery<JpaActionLogImpl> limittedQuery = JPA.em().createQuery(queryText.toString(), JpaActionLogImpl.class);\n limittedQuery.setFirstResult(offset);\n limittedQuery.setMaxResults(limit);\n for (String key : params.keySet()) limittedQuery.setParameter(key, params.get(key));\n TypedQuery<JpaActionLogImpl> query = JPA.em().createQuery(queryText.toString(), JpaActionLogImpl.class);\n for (String key : params.keySet()) query.setParameter(key, params.get(key));\n JpaSearchResultsImpl<ActionLog> result = new JpaSearchResultsImpl(filter, direction, orderBy, offset, limit, (List) limittedQuery.getResultList(), query.getResultList().size());\n return result;\n}\n"
|
"public static String AskAndSetLabel(String ComponentName, String OldLabel, Circuit circ, Component comp, AttributeSet attrs, SetAttributeAction act, boolean CreateAction) {\n boolean correct = false;\n String NewLabel = OldLabel;\n while (!correct) {\n NewLabel = (String) JOptionPane.showInputDialog(null, Strings.get(\"String_Node_Str\") + \"String_Node_Str\" + ComponentName, Strings.get(\"String_Node_Str\"), JOptionPane.QUESTION_MESSAGE, null, null, OldLabel);\n if (NewLabel != null) {\n if (Circuit.IsCorrectLabel(NewLabel, circ.getNonWires(), attrs, true) && SyntaxChecker.isVariableNameAcceptable(NewLabel, true) && !CorrectLabel.IsKeyword(NewLabel, true)) {\n if (CreateAction)\n act.set(comp, StdAttr.LABEL, NewLabel);\n else\n SetLabel(NewLabel, circ);\n correct = true;\n }\n } else {\n correct = true;\n NewLabel = OldLabel;\n }\n }\n return NewLabel;\n}\n"
|
"public void actionPerformed(ActionEvent e) {\n traceInput();\n if (e.getActionCommand().equals(\"String_Node_Str\")) {\n NamedClass nc = classesTable.getSelectedClass(currentClassIndex);\n if (!showingMultiTables) {\n }\n if (showingMultiTables && showingEquivalentSuggestions) {\n if (defaultSuperMap.get(nc) != null) {\n showSuperSuggestions(nc);\n showSingleTable();\n } else {\n currentClassIndex++;\n classesTable.setSelectedClass(currentClassIndex);\n graphPanel.setConcept(classesTable.getSelectedClass(currentClassIndex));\n if (defaultEquivalenceMap.get(classesTable.getSelectedClass(currentClassIndex)) != null) {\n showEquivalentSuggestions(classesTable.getSelectedClass(currentClassIndex));\n } else {\n showSuperSuggestions(classesTable.getSelectedClass(currentClassIndex));\n }\n showSingleTable();\n }\n } else if (!showingMultiTables && showingEquivalentSuggestions) {\n if (owlEquivalenceStandardMap.get(nc) != null) {\n showMultiTables();\n } else if (defaultSuperMap.get(nc) != null) {\n showSuperSuggestions(nc);\n showSingleTable();\n } else {\n currentClassIndex++;\n classesTable.setSelectedClass(currentClassIndex);\n graphPanel.setConcept(classesTable.getSelectedClass(currentClassIndex));\n if (defaultEquivalenceMap.get(classesTable.getSelectedClass(currentClassIndex)) != null) {\n showEquivalentSuggestions(classesTable.getSelectedClass(currentClassIndex));\n } else {\n showSuperSuggestions(classesTable.getSelectedClass(currentClassIndex));\n }\n showSingleTable();\n }\n } else if (!showingMultiTables && !showingEquivalentSuggestions) {\n if (owlSuperStandardMap.get(nc) != null) {\n showMultiTables();\n } else {\n currentClassIndex++;\n classesTable.setSelectedClass(currentClassIndex);\n NamedClass newNc = classesTable.getSelectedClass(currentClassIndex);\n graphPanel.setConcept(newNc);\n if (defaultEquivalenceMap.get(newNc) != null) {\n showEquivalentSuggestions(newNc);\n } else {\n showSuperSuggestions(newNc);\n }\n showSingleTable();\n }\n } else {\n currentClassIndex++;\n classesTable.setSelectedClass(currentClassIndex);\n NamedClass newCl = classesTable.getSelectedClass(currentClassIndex);\n graphPanel.setConcept(newCl);\n if (defaultEquivalenceMap.containsKey(newCl)) {\n showEquivalentSuggestions(newCl);\n } else {\n showSuperSuggestions(newCl);\n }\n showSingleTable();\n }\n setFinished();\n resetTablePanels();\n } else if (e.getActionCommand().equals(\"String_Node_Str\")) {\n closeDialog();\n saveInput();\n }\n}\n"
|
"private IDimension populateDimension(CubeMaterializer cubeMaterializer, DimensionHandle dim, TabularCubeHandle cubeHandle, Map appContext, Map<ReportElementHandle, QueryDefinition> queryMap, Map<ReportElementHandle, List<ColumnMeta>> metaMap, SecurityListener sl) throws AdapterException {\n List hiers = dim.getContents(DimensionHandle.HIERARCHIES_PROP);\n List iHiers = new ArrayList();\n for (int j = 0; j < hiers.size(); j++) {\n TabularHierarchyHandle hierhandle = (TabularHierarchyHandle) hiers.get(0);\n List levels = hierhandle.getContents(TabularHierarchyHandle.LEVELS_PROP);\n List<ILevelDefn> levelInHier = new ArrayList<ILevelDefn>();\n List<String> leafLevelKeyColumn = new ArrayList<String>();\n Set<String> columnNamesForLevels = new HashSet<String>();\n for (int k = 0; k < levels.size(); k++) {\n TabularLevelHandle level = (TabularLevelHandle) levels.get(k);\n columnNamesForLevels.add(level.getColumnName());\n List levelAttrs = new ArrayList();\n Iterator it = level.attributesIterator();\n while (it.hasNext()) {\n LevelAttributeHandle levelAttr = (LevelAttributeHandle) it.next();\n levelAttrs.add(OlapExpressionUtil.getAttributeColumnName(level.getName(), levelAttr.getName()));\n }\n if (DesignChoiceConstants.LEVEL_TYPE_DYNAMIC.equals(level.getLevelType()) && level.getDisplayColumnName() != null) {\n levelAttrs.add(OlapExpressionUtil.getDisplayColumnName(level.getName()));\n }\n leafLevelKeyColumn.add(level.getName());\n levelInHier.add(CubeElementFactory.createLevelDefinition(level.getName(), new String[] { level.getName() }, this.toStringArray(levelAttrs)));\n }\n String[] jointHierarchyKeys = getJointHierarchyKeys(cubeHandle, hierhandle);\n if (!cubeHandle.autoPrimaryKey()) {\n for (String jointKey : jointHierarchyKeys) {\n if (!columnNamesForLevels.contains(jointKey)) {\n throw new AdapterException(ResourceConstants.CUBE_JOINT_COLUMN_NOT_IN_LEVELS, new String[] { jointKey, dim.getName() });\n }\n }\n }\n if (levelInHier.size() >= 1) {\n if (cubeHandle.autoPrimaryKey() && jointHierarchyKeys.length > 0) {\n if (!Arrays.deepEquals(jointHierarchyKeys, new String[] { ((TabularLevelHandle) levels.get(levels.size() - 1)).getColumnName() })) {\n levelInHier.add(CubeElementFactory.createLevelDefinition(\"String_Node_Str\", getDummyLevelNamesForJointHierarchyKeys(jointHierarchyKeys), new String[0]));\n } else if (levelInHier.size() > 1 && isDateTimeDimension(hierhandle)) {\n levelInHier.add(CubeElementFactory.createLevelDefinition(\"String_Node_Str\", leafLevelKeyColumn.toArray(new String[0]), new String[0]));\n }\n } else if (levelInHier.size() > 1) {\n levelInHier.add(CubeElementFactory.createLevelDefinition(\"String_Node_Str\", leafLevelKeyColumn.toArray(new String[0]), new String[0]));\n }\n }\n try {\n sl.process(dim);\n Object originalMemCache = null;\n if (!(cubeHandle.getDataSet().equals(hierhandle.getDataSet()) || hierhandle.getDataSet() == null)) {\n originalMemCache = appContext.remove(DataEngine.MEMORY_DATA_SET_CACHE);\n }\n IDatasetIterator valueIt = null;\n String[] timeType = getTimeLevelType(hierhandle);\n for (int i = 0; i < timeType.length; i++) {\n levelInHier.get(i).setTimeType(timeType[i]);\n }\n if (!CubeHandleUtil.isTimeDimension(dim)) {\n valueIt = new DataSetIterator(this, queryMap.get(hierhandle), metaMap.get(hierhandle), appContext, sl, dim.getName());\n } else {\n valueIt = new TimeDimensionDatasetIterator(this, CubeHandleUtil.getStartTime(dim), CubeHandleUtil.getEndTime(dim), getFieldName(hierhandle), timeType);\n }\n iHiers.add(cubeMaterializer.createHierarchy(dim.getName(), hierhandle.getName(), valueIt, levelInHier.toArray(new ILevelDefn[0]), dataEngine.getSession().getStopSign()));\n if (originalMemCache != null) {\n appContext.put(DataEngine.MEMORY_DATA_SET_CACHE, originalMemCache);\n }\n } catch (Exception e) {\n throw new AdapterException(ResourceConstants.CUBE_HIERARCHY_CREATION_ERROR, e, dim.getName() + \"String_Node_Str\" + hierhandle.getName());\n }\n }\n try {\n return cubeMaterializer.createDimension(dim.getName(), (IHierarchy) iHiers.get(0));\n } catch (Exception e) {\n throw new AdapterException(ResourceConstants.CUBE_DIMENSION_CREATION_ERROR, e, dim.getName());\n }\n}\n"
|
"private void doInvoke(String methodName, InstructionHandle stmt, Context context, ContextMap<CallString, SymbolicAddressMap> input, Interpreter<CallString, SymbolicAddressMap> interpreter, Map<InstructionHandle, ContextMap<CallString, SymbolicAddressMap>> state, ContextMap<CallString, SymbolicAddressMap> retval) {\n DFATool p = interpreter.getProgram();\n MethodInfo method = p.getMethod(methodName);\n methodName = method.getSignature().toString();\n if (method.isNative()) {\n handleNative(method, context, input, retval);\n } else {\n int varPtr = context.stackPtr - MethodHelper.getArgSize(method);\n Context c = new Context(context);\n c.stackPtr = method.getCode().getMaxLocals();\n c.constPool = method.getClassInfo().getConstantPoolGen();\n if (method.isSynchronized()) {\n c.syncLevel = context.syncLevel + 1;\n }\n c.method = method.getMethodRef();\n c.callString = c.callString.push(method, stmt, callStringLength);\n SymbolicAddressMap in = input.get(context.callString);\n SymbolicAddressMap out = in.cloneInvoke(varPtr);\n HashMap<CallString, SymbolicAddressMap> initialMap = new HashMap<CallString, SymbolicAddressMap>();\n ContextMap<CallString, SymbolicAddressMap> tmpresult = new ContextMap<CallString, SymbolicAddressMap>(c, initialMap);\n tmpresult.put(c.callString, out);\n InstructionHandle entry = method.getCode().getInstructionList().getStart();\n state.put(entry, join(state.get(entry), tmpresult));\n if (DEBUG_PRINT) {\n System.out.println(\"String_Node_Str\" + method.getSignature());\n System.out.println(String.format(\"String_Node_Str\", context.stackPtr, varPtr, MethodHelper.getArgSize(method)));\n }\n Map<InstructionHandle, ContextMap<CallString, SymbolicAddressMap>> r = interpreter.interpret(c, entry, state, false);\n SymbolicAddressMap ctxInfo = retval.get(context.callString);\n InstructionHandle exit = method.getCode().getInstructionList().getEnd();\n if (r.get(exit) != null) {\n SymbolicAddressMap returned = r.get(exit).get(c.callString);\n if (returned != null) {\n ctxInfo.joinReturned(returned, varPtr);\n } else {\n System.err.println(\"String_Node_Str\");\n }\n } else {\n System.err.println(\"String_Node_Str\" + methodName + \"String_Node_Str\");\n }\n ctxInfo.addStackUpto(in, context.stackPtr - MethodHelper.getArgSize(method));\n if (DEBUG_PRINT) {\n System.out.println(\"String_Node_Str\" + method.getSignature());\n System.out.println(String.format(\"String_Node_Str\", context.stackPtr, varPtr, MethodHelper.getArgSize(method)));\n }\n }\n}\n"
|
"public void run() {\n if (onDownloadListener != null) {\n mHandler.post(new Runnable() {\n public void run() {\n onDownloadListener.onSuccess(mOutputFile);\n }\n });\n}\n"
|
"private void initDefaultLang() {\n if (!hasLangPref()) {\n if (isCurrentLocSupported()) {\n useCurrentLocAsDefault();\n } else {\n useSupportedLocAsDefault();\n }\n }\n ContentResolver resolver = getContentResolver();\n mDefaultLanguage = Settings.Secure.getString(resolver, TTS_DEFAULT_LANG);\n mDefaultCountry = Settings.Secure.getString(resolver, KEY_TTS_DEFAULT_COUNTRY);\n mDefaultLocVariant = Settings.Secure.getString(resolver, KEY_TTS_DEFAULT_VARIANT);\n mDemoStringIndex = mDefaultLocPref.findIndexOfValue(mDefaultLanguage + LOCALE_DELIMITER + mDefaultCountry);\n if (mDemoStringIndex > -1) {\n mDefaultLocPref.setValueIndex(mDemoStringIndex);\n }\n}\n"
|
"private static File getServiceTagRegistry(File serviceTagRegistry) {\n if (!serviceTagRegistry.exists()) {\n File serviceTagLink = new File(getRegistrationHome(), SERVICE_TAG_REGISTRY_LINK_NAME);\n if (serviceTagLink.exists()) {\n BufferedReader in = null;\n try {\n in = new BufferedReader(new FileReader(serviceTagLink));\n String indirectedServiceTagRegistryName = in.readLine();\n if (indirectedServiceTagRegistryName != null) {\n File indirectedServiceTagRegisitryFile = new File(indirectedServiceTagRegistryName);\n if (indirectedServiceTagRegisitryFile.exists()) {\n serviceTagRegistry = indirectedServiceTagRegisitryFile;\n }\n }\n } catch (IOException e) {\n } finally {\n if (in != null)\n try {\n in.close();\n } catch (IOException ex) {\n }\n }\n } else {\n }\n }\n return serviceTagRegistry;\n}\n"
|
"private final void queueOrSendMessage(int what, Object obj, int arg1, int arg2) {\n synchronized (this) {\n if (DEBUG_MESSAGES)\n Slog.v(TAG, \"String_Node_Str\" + what + \"String_Node_Str\" + mH.codeToString(what) + \"String_Node_Str\" + arg1 + \"String_Node_Str\" + obj);\n Message msg = Message.obtain();\n msg.what = what;\n msg.obj = obj;\n msg.arg1 = arg1;\n msg.arg2 = arg2;\n mH.sendMessage(msg);\n }\n}\n"
|
"public static OTDataObject copy(OTDataObject original, OTDatabase otDb, int maxDepth) throws Exception {\n OTDataObject copy = otDb.createDataObject();\n copyInto(original, copy, orphanDataList, maxDepth);\n return copy;\n}\n"
|
"public static void printGraphToDotFile(String filename, DirectedGraph graph, String graphname, boolean onePage) {\n nodecount = 0;\n Hashtable nodeindex = new Hashtable(graph.size());\n DotGraph canvas = new DotGraph(filename);\n if (!onePage) {\n canvas.setPageSize(8.5, 11.0);\n }\n canvas.setNodeShape(DotGraphConstants.NODE_SHAPE_BOX);\n canvas.setGraphLabel(graphname);\n for (EquivalentValue node : graph) {\n canvas.drawNode(getNodeName(node));\n canvas.getNode(getNodeName(node)).setLabel(getNodeLabel(node));\n Iterator succsIt = graph.getSuccsOf(node).iterator();\n while (succsIt.hasNext()) {\n Object s = succsIt.next();\n canvas.drawNode(getNodeName(s));\n canvas.getNode(getNodeName(s)).setLabel(getNodeLabel(s));\n canvas.drawEdge(getNodeName(node), getNodeName(s));\n }\n }\n canvas.plot(filename + \"String_Node_Str\");\n}\n"
|
"protected void initConnectionParameters() {\n connParameters = null;\n connParameters = new ConnectionParameters();\n String type = getValueFromRepositoryName(elem, \"String_Node_Str\");\n if (type.equals(\"String_Node_Str\") || type.contains(\"String_Node_Str\")) {\n IElementParameter ele = elem.getElementParameter(\"String_Node_Str\");\n if (ele != null) {\n type = (String) ele.getValue();\n } else\n type = \"String_Node_Str\";\n }\n connParameters.setDbType(type);\n String driverName = getValueFromRepositoryName(elem, \"String_Node_Str\");\n String dbVersionName = EDatabaseVersion4Drivers.getDbVersionName(type, driverName);\n connParameters.setDbVersion(dbVersionName);\n connParameters.setNode(elem);\n String selectedComponentName = (String) elem.getPropertyValue(EParameterName.UNIQUE_NAME.getName());\n connParameters.setSelectedComponentName(selectedComponentName);\n connParameters.setFieldType(paramFieldType);\n if (elem instanceof Node) {\n connParameters.setMetadataTable(((Node) elem).getMetadataList().get(0));\n }\n connParameters.setSchemaRepository(EmfComponent.REPOSITORY.equals(elem.getPropertyValue(EParameterName.SCHEMA_TYPE.getName())));\n connParameters.setFromDBNode(true);\n connParameters.setQuery(\"String_Node_Str\");\n List<? extends IElementParameter> list = elem.getElementParameters();\n boolean end = false;\n for (int i = 0; i < list.size() && !end; i++) {\n IElementParameter param = list.get(i);\n if (param.getFieldType() == EParameterFieldType.MEMO_SQL) {\n connParameters.setNodeReadOnly(param.isReadOnly());\n end = true;\n }\n }\n Object value = elem.getPropertyValue(\"String_Node_Str\");\n IElementParameter compList = elem.getElementParameterFromField(EParameterFieldType.COMPONENT_LIST);\n if (value != null && (value instanceof Boolean) && ((Boolean) value) && compList != null && !isConnectionExist()) {\n Object compValue = compList.getValue();\n if (compValue != null && !compValue.equals(\"String_Node_Str\")) {\n List<? extends INode> nodes = part.getProcess().getGraphicalNodes();\n for (INode node : nodes) {\n if (node.getUniqueName().equals(compValue) && (node instanceof Node)) {\n connectionNode = (Node) node;\n break;\n }\n }\n if (connectionNode != null) {\n setAllConnectionParameters(type, connectionNode);\n }\n }\n } else {\n setAllConnectionParameters(null, elem);\n }\n if (connectionNode != null) {\n setConnectionParameterNames(connectionNode, connParameters);\n } else {\n setConnectionParameterNames(elem, connParameters);\n }\n}\n"
|
"public void testTransactionSuccess() {\n try {\n Patient patient = buildPatient();\n OperationOutcome createdPatientEntry = testClient.create(Patient.class, patient);\n patient.setBirthDateElement(new DateType(\"String_Node_Str\"));\n Reference patientReference = new Reference();\n patient.setId(getEntryPath(createdPatientEntry));\n patientReference.setReference(getEntryPath(createdPatientEntry));\n Observation obs = new Observation();\n obs.setSubject(patientReference);\n obs.setEffective(Factory.newDateTime(\"String_Node_Str\"));\n OperationOutcome createdObservationEntry = testClient.create(Observation.class, obs);\n obs.setId(getEntryPath(createdObservationEntry));\n Bundle batchFeed = new Bundle();\n batchFeed.getEntry().add(new BundleEntryComponent().setResource(patient));\n batchFeed.getEntry().add(new BundleEntryComponent().setResource(obs));\n System.out.println(new String(ClientUtils.getFeedAsByteArray(batchFeed, false, false)));\n Bundle responseFeed = testClient.transaction(batchFeed);\n assertNotNull(responseFeed);\n assert (responseFeed.getEntry().get(0).getResource() instanceof Patient);\n } catch (Exception e) {\n e.printStackTrace();\n fail();\n }\n}\n"
|
"public boolean addHeader(BlockHeader header) {\n lock.lock();\n HeaderDigest hd = new HeaderDigest(header.getPreHash().getDigestHex(), header.getHeight() - 1);\n if (!headerDigestList.isEmpty() && headerDigestList.indexOf(hd) != (headerDigestList.size() - 1)) {\n return false;\n }\n headerDigestList.add(new HeaderDigest(header.getHash().getDigestHex(), header.getHeight()));\n lock.unlock();\n return true;\n}\n"
|
"private void coldPlug() throws IOException {\n List<BMIDevice> devices = Arrays.asList(BMIDeviceHelper.getDevices(context));\n if (devices != null) {\n logService.log(LogService.LOG_DEBUG, \"String_Node_Str\");\n for (BMIDevice bmiMessage : devices) {\n if (bmiMessage != null) {\n logService.log(LogService.LOG_DEBUG, \"String_Node_Str\" + bmiMessage.toString());\n eventHandler.handleEvent(new BMIModuleEvent(bmiMessage));\n }\n }\n } else {\n logService.log(LogService.LOG_DEBUG, \"String_Node_Str\");\n }\n}\n"
|
"public static void setGroovyClasspath(Map<String, String> optionMap, IJavaProject javaProject) {\n IFile file = javaProject.getProject().getFile(\"String_Node_Str\");\n if (file.exists()) {\n try {\n PropertyResourceBundle prb = new PropertyResourceBundle(file.getContents());\n for (String k : prb.keySet()) {\n String v = fixup(prb.getString(k), javaProject);\n if (k.equals(CompilerOptions.OPTIONG_GroovyClassLoaderPath)) {\n optionMap.put(CompilerOptions.OPTIONG_GroovyClassLoaderPath, v);\n }\n }\n } catch (IOException ioe) {\n System.err.println(\"String_Node_Str\");\n ioe.printStackTrace();\n } catch (CoreException ce) {\n System.err.println(\"String_Node_Str\");\n ce.printStackTrace();\n } catch (Throwable t) {\n System.err.println(\"String_Node_Str\");\n t.printStackTrace();\n }\n } else {\n try {\n String classpath = calculateClasspath(javaProject);\n optionMap.put(CompilerOptions.OPTIONG_GroovyClassLoaderPath, classpath);\n } catch (Throwable t) {\n System.err.println(\"String_Node_Str\");\n t.printStackTrace();\n }\n }\n IProject project = javaProject.getProject();\n try {\n IPath defaultOutputPath = javaProject.getOutputLocation();\n String defaultOutputLocation = pathToString(defaultOutputPath, project);\n optionMap.put(CompilerOptions.OPTIONG_GroovyExcludeGlobalASTScan, defaultOutputLocation);\n } catch (Throwable t) {\n System.err.println(\"String_Node_Str\");\n t.printStackTrace();\n }\n optionMap.put(CompilerOptions.OPTIONG_GroovyProjectName, project.getName());\n}\n"
|
"static void dumpProcessSummaryLocked(PrintWriter pw, String prefix, ArrayList<ProcessState> procs, int[] screenStates, int[] memStates, int[] procStates, long now, long totalTime) {\n for (int i = procs.size() - 1; i >= 0; i--) {\n ProcessState proc = procs.get(i);\n pw.print(prefix);\n pw.print(\"String_Node_Str\");\n pw.print(proc.mName);\n pw.print(\"String_Node_Str\");\n UserHandle.formatUid(pw, proc.mUid);\n pw.println(\"String_Node_Str\");\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, procStates, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_PERSISTENT }, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_TOP }, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_IMPORTANT_FOREGROUND }, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_IMPORTANT_BACKGROUND }, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_BACKUP }, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_HEAVY_WEIGHT }, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_SERVICE }, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_RECEIVER }, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_HOME }, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_LAST_ACTIVITY }, now, totalTime, true);\n dumpProcessSummaryDetails(pw, proc, prefix, \"String_Node_Str\", screenStates, memStates, new int[] { STATE_CACHED_ACTIVITY, STATE_CACHED_ACTIVITY_CLIENT, STATE_CACHED_EMPTY }, now, totalTime, true);\n }\n}\n"
|
"public static Comment.Range textOffsetToRange(CharSequence charsSequence, int start, int end) {\n int startLine = 1;\n int startOffset = -1;\n int endLine = 1;\n int endOffset = -1;\n try {\n BufferedReader reader = new BufferedReader(charSequenceReader);\n String lineString;\n int currentCharCount = 0;\n while ((lineString = reader.readLine()) != null) {\n currentCharCount += lineString.length();\n currentCharCount++;\n if (start > currentCharCount) {\n startLine++;\n } else if (startOffset < 0) {\n startOffset = start - (currentCharCount - lineString.length() - 1);\n }\n if (end > currentCharCount) {\n endLine++;\n } else if (endOffset < 0) {\n endOffset = end - (currentCharCount - lineString.length() - 1);\n break;\n }\n }\n } catch (IOException e) {\n throw Throwables.propagate(e);\n }\n Comment.Range range = new Comment.Range();\n range.startLine = startLine;\n range.startCharacter = startOffset;\n range.endLine = endLine;\n range.endCharacter = endOffset;\n return range;\n}\n"
|
"public void setWidth(int width) {\n int borderWidth = 0;\n Iterator<IPersist> it2 = cellview.getAllObjects();\n while (it2.hasNext()) {\n IPersist element = it2.next();\n if (id.equals(ComponentFactory.getWebID(form, element))) {\n GraphicalComponent gc = (GraphicalComponent) view.labelsFor.get(((ISupportName) element).getName());\n if (gc != null) {\n TextualStyle styleObj = new TextualStyle();\n BorderAndPadding ins = TemplateGenerator.applyBaseComponentProperties(gc, view.fc.getForm(), styleObj, (Insets) TemplateGenerator.DEFAULT_LABEL_PADDING.clone(), null, application);\n if (ins.border != null)\n borderWidth = ins.border.left + ins.border.right;\n }\n }\n }\n int headerPadding = TemplateGenerator.SORTABLE_HEADER_PADDING;\n if (view.labelsFor.size() == 0) {\n int extraWidth = TemplateGenerator.NO_LABELFOR_DEFAULT_BORDER_WIDTH;\n String headerBorder = view.getHeaderBorder();\n if (headerBorder != null) {\n Properties properties = new Properties();\n Insets borderIns = ComponentFactoryHelper.createBorderCSSProperties(headerBorder, properties);\n extraWidth = borderIns.left + borderIns.right;\n headerPadding = 0;\n }\n borderWidth += extraWidth;\n }\n final int clientWidth = width - headerPadding - borderWidth;\n this.width = clientWidth;\n StyleAppendingModifier styleModifier = new StyleAppendingModifier(new Model<String>() {\n public String getObject() {\n return \"String_Node_Str\" + clientWidth + \"String_Node_Str\";\n }\n });\n add(styleModifier);\n headerColumnTable.add(styleModifier);\n labelResolver.setWidth(clientWidth - SortableCellViewHeader.ARROW_WIDTH);\n getStylePropertyChanges().setChanged();\n}\n"
|
"public void onResponse(Call<UpcomingMoviesResponse> call, Response<UpcomingMoviesResponse> response) {\n if (response.code() != 200)\n return;\n mUpcomingLayout.setVisibility(View.VISIBLE);\n for (MovieBrief movie : response.body().getResults()) {\n Call<Movie> call2 = apiService.getMovieDetails(movie.getId(), getResources().getString(R.string.MOVIE_DB_API_KEY));\n call2.enqueue(new Callback<Movie>() {\n public void onResponse(Call<Movie> call, Response<Movie> response) {\n if (response.code() != 200)\n return;\n if (response.body().getBackdropPath() != null) {\n mUpcomingMovies.add(response.body());\n mUpcomingAdapter.notifyDataSetChanged();\n }\n }\n public void onFailure(Call<Movie> call, Throwable t) {\n }\n });\n }\n mUpcomingAdapter.notifyDataSetChanged();\n}\n"
|
"public ExpressionTree EXPONENTIATION_EXPRESSION() {\n return b.<ExpressionTree>nonterminal().is(f.newExponentiation(UNARY_EXPRESSION(), b.zeroOrMore(f.newTuple31(b.token(JavaScriptPunctuator.EXP), UNARY_EXPRESSION()))));\n}\n"
|
"public void preinitialize() throws IllegalActionException {\n super.preinitialize();\n Scheduler scheduler = getScheduler();\n if (scheduler == null)\n throw new IllegalActionException(\"String_Node_Str\" + \"String_Node_Str\");\n if (_debugging)\n _debug(\"String_Node_Str\");\n try {\n Schedule sched = scheduler.getSchedule();\n } catch (Exception ex) {\n throw new IllegalActionException(this, ex, \"String_Node_Str\");\n }\n}\n"
|
"private void getMigrationEffortDetails(ProjectModelTraversal traversal, Set<String> includeTags, Set<String> excludeTags, boolean recursive, boolean includeZero, EffortAccumulatorFunction accumulatorFunction) {\n final Set<Vertex> initialVertices = traversal.getAllProjectsAsVertices(recursive);\n GremlinPipeline<Vertex, Vertex> pipeline = new GremlinPipeline<>(this.getGraphContext().getGraph());\n pipeline.V();\n if (!includeZero) {\n pipeline.has(EffortReportModel.EFFORT, Compare.GREATER_THAN, 0);\n pipeline.has(WindupVertexFrame.TYPE_PROP, Text.CONTAINS, ClassificationModel.TYPE);\n } else {\n pipeline.has(WindupVertexFrame.TYPE_PROP, ClassificationModel.TYPE);\n }\n pipeline.as(\"String_Node_Str\");\n pipeline.out(ClassificationModel.FILE_MODEL);\n pipeline.in(ProjectModel.PROJECT_MODEL_TO_FILE);\n pipeline.filter(new SetMembersFilter(initialVertices));\n pipeline.back(\"String_Node_Str\");\n boolean checkTags = !includeTags.isEmpty() || !excludeTags.isEmpty();\n for (Vertex v : pipeline) {\n if (checkTags && !frame(v).matchesTags(includeTags, excludeTags))\n continue;\n for (Vertex fileVertex : v.getVertices(Direction.OUT, ClassificationModel.FILE_MODEL)) {\n FileModel fileModel = fileService.frame(fileVertex);\n if (initialVertices.contains(fileModel.getProjectModel().asVertex()))\n accumulatorFunction.accumulate(v);\n }\n }\n}\n"
|
"public void onDetach() {\n super.onDetach();\n getList().removeListener(this);\n}\n"
|
"private void _initializeLocalVariables() throws IllegalActionException {\n _errorTolerance = ((DoubleToken) errorTolerance.getToken()).doubleValue();\n _initStepSize = ((DoubleToken) initStepSize.getToken()).doubleValue();\n _maxIterations = ((IntToken) maxIterations.getToken()).intValue();\n _maxStepSize = ((DoubleToken) maxStepSize.getToken()).doubleValue();\n _minStepSize = ((DoubleToken) minStepSize.getToken()).doubleValue();\n _valueResolution = ((DoubleToken) valueResolution.getToken()).doubleValue();\n _currentSolver = null;\n _prefiredActors = new HashSet();\n _currentStepSize = _initStepSize;\n _suggestedNextStepSize = _initStepSize;\n _discretePhase = true;\n _executionPhase = CTExecutionPhase.UNKNOWN_PHASE;\n if (_debugging) {\n _debug(getFullName(), \"String_Node_Str\");\n }\n if (_breakpoints != null) {\n _breakpoints.clear();\n } else {\n _breakpoints = new TotallyOrderedSet(new GeneralComparator());\n }\n}\n"
|
"public void saveAnalysis() throws DataprofilerCoreException {\n List<DQRule> oldDqRules = getDqRules(analysis);\n analysis.setName(analysis.getName().replace(\"String_Node_Str\", \"String_Node_Str\"));\n for (Domain domain : this.analysis.getParameters().getDataFilter()) {\n domain.setName(this.analysis.getName());\n }\n IRepositoryViewObject reposObject = null;\n analysisHandler.clearAnalysis();\n TableIndicator[] tableIndicators = treeViewer.getTableIndicator();\n Connection tdProvider = null;\n Analysis analysis = analysisHandler.getAnalysis();\n analysis.getParameters().setExecutionLanguage(ExecutionLanguage.get(execLang));\n if (tableIndicators != null && tableIndicators.length != 0) {\n tdProvider = ConnectionHelper.getDataProvider(tableIndicators[0].getColumnSet());\n if (tdProvider.eIsProxy()) {\n tdProvider = (Connection) EObjectHelper.resolveObject(tdProvider);\n }\n analysis.getContext().setConnection(tdProvider);\n for (TableIndicator tableIndicator : tableIndicators) {\n analysisHandler.addIndicator(tableIndicator.getColumnSet(), tableIndicator.getIndicators());\n }\n } else {\n tdProvider = (Connection) analysis.getContext().getConnection();\n if (tdProvider != null && tdProvider.getSupplierDependency().size() > 0) {\n tdProvider.getSupplierDependency().get(0).getClient().remove(analysis);\n analysis.getContext().setConnection(null);\n analysis.getClientDependency().clear();\n }\n }\n analysisHandler.setStringDataFilter(dataFilterComp.getDataFilterString());\n String urlString = analysis.eResource() != null ? (analysis.eResource().getURI().isFile() ? analysis.eResource().getURI().toFileString() : analysis.eResource().getURI().toString()) : PluginConstant.EMPTY_STRING;\n this.updateAnalysisClientDependency();\n ReturnCode saved = new ReturnCode(false);\n IEditorInput editorInput = this.getEditorInput();\n if (editorInput instanceof AnalysisItemEditorInput) {\n AnalysisItemEditorInput analysisInput = (AnalysisItemEditorInput) editorInput;\n TDQAnalysisItem tdqAnalysisItem = analysisInput.getTDQAnalysisItem();\n tdqAnalysisItem.getProperty().setLabel(analysisHandler.getName());\n this.nameText.setText(analysisHandler.getName());\n saved = ElementWriterFactory.getInstance().createAnalysisWrite().save(tdqAnalysisItem);\n }\n if (saved.isOk()) {\n RepositoryNode node = RepositoryNodeHelper.recursiveFind(tdProvider);\n if (node != null) {\n ElementWriterFactory.getInstance().createDataProviderWriter().save(node.getObject().getProperty().getItem());\n }\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + urlString + \"String_Node_Str\");\n }\n this.updateDQRuleDependency(oldDqRules);\n } else {\n throw new DataprofilerCoreException(DefaultMessagesImpl.getString(\"String_Node_Str\", analysis.getName(), urlString, saved.getMessage()));\n }\n treeViewer.setDirty(false);\n dataFilterComp.setDirty(false);\n}\n"
|
"private Vector<MediaDescription> createMediaDescriptions(Vector<MediaDescription> offerMediaDescs, InetSocketAddress publicAudioAddress, InetSocketAddress publicVideoAddress) throws SdpException, MediaException {\n MediaControl mediaControl = mediaServCallback.getMediaControl(getCall());\n String[] supportedAudioEncodings = mediaControl.getSupportedAudioEncodings();\n String[] supportedVideoEncodings = mediaControl.getSupportedVideoEncodings();\n if (offerMediaDescs != null && offerMediaDescs.size() > 0) {\n Vector<String> offeredVideoEncodings = new Vector<String>();\n Vector<String> offeredAudioEncodings = new Vector<String>();\n for (MediaDescription desc : offerMediaDescs) {\n Media media = desc.getMedia();\n String mediaType = media.getMediaType();\n if (mediaType.equalsIgnoreCase(\"String_Node_Str\")) {\n offeredVideoEncodings = media.getMediaFormats(true);\n } else if (mediaType.equalsIgnoreCase(\"String_Node_Str\")) {\n offeredAudioEncodings = media.getMediaFormats(true);\n }\n }\n Hashtable<String, List<String>> encodings = new Hashtable<String, List<String>>(2);\n encodings.put(\"String_Node_Str\", offeredAudioEncodings);\n encodings.put(\"String_Node_Str\", offeredVideoEncodings);\n encodings = intersectMediaEncodings(encodings);\n List<String> intersectedAudioEncsList = encodings.get(\"String_Node_Str\");\n List<String> intersectedVideoEncsList = encodings.get(\"String_Node_Str\");\n supportedAudioEncodings = intersectedAudioEncsList.toArray(new String[0]);\n supportedVideoEncodings = intersectedVideoEncsList.toArray(new String[0]);\n }\n Vector<MediaDescription> mediaDescs = new Vector<MediaDescription>();\n if (supportedAudioEncodings.length > 0) {\n MediaDescription am = mediaServCallback.getSdpFactory().createMediaDescription(\"String_Node_Str\", publicAudioAddress.getPort(), 1, \"String_Node_Str\", supportedAudioEncodings);\n String g723Str = String.valueOf(SdpConstants.G723);\n for (String supportedAudioEncoding : supportedAudioEncodings) {\n if (supportedAudioEncoding.equals(g723Str)) {\n am.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n am.setAttribute(\"String_Node_Str\", \"String_Node_Str\");\n }\n }\n byte onHold = this.onHold;\n if (mediaServCallback.getDeviceConfiguration().isAudioCaptureSupported()) {\n setAttributeOnHold(am, onHold);\n TransformConnector transConnector = this.transConnectors.get(audioRtpManager);\n if (transConnector != null) {\n TransformEngine engine = transConnector.getEngine();\n if (engine instanceof ZRTPTransformEngine) {\n ZRTPTransformEngine ze = (ZRTPTransformEngine) engine;\n String helloHash = ze.getHelloHash();\n if (helloHash != null && helloHash.length() > 0)\n am.setAttribute(\"String_Node_Str\", ze.getHelloHash());\n }\n }\n }\n mediaDescs.add(am);\n }\n if (supportedVideoEncodings.length > 0) {\n MediaDescription vm = mediaServCallback.getSdpFactory().createMediaDescription(\"String_Node_Str\", publicVideoAddress.getPort(), 1, \"String_Node_Str\", supportedVideoEncodings);\n String h264Str = String.valueOf(Constants.H264_RTP_SDP);\n for (String supportedVideoEncoding : supportedVideoEncodings) {\n if (supportedVideoEncoding.equals(h264Str)) {\n vm.setAttribute(\"String_Node_Str\", Constants.H264_RTP_SDP + \"String_Node_Str\");\n vm.setAttribute(\"String_Node_Str\", Constants.H264_RTP_SDP + \"String_Node_Str\");\n }\n }\n byte onHold = this.onHold;\n if (!mediaServCallback.getDeviceConfiguration().isVideoCaptureSupported() || !mediaControl.isLocalVideoAllowed()) {\n onHold |= ON_HOLD_REMOTELY;\n }\n setAttributeOnHold(vm, onHold);\n TransformConnector transConnector = this.transConnectors.get(videoRtpManager);\n if (transConnector != null) {\n TransformEngine engine = transConnector.getEngine();\n if (engine instanceof ZRTPTransformEngine) {\n ZRTPTransformEngine ze = (ZRTPTransformEngine) engine;\n String helloHash = ze.getHelloHash();\n if (helloHash != null && helloHash.length() > 0)\n vm.setAttribute(\"String_Node_Str\", ze.getHelloHash());\n }\n }\n mediaDescs.add(vm);\n }\n return mediaDescs;\n}\n"
|
"public static void setJobResources(HalvadeOptions opt, Configuration conf, int type, boolean subtractAM, boolean BAMinput) throws InterruptedException {\n int tmpmem = (int) (opt.mem * 1024);\n int tmpvcores = opt.vcores;\n BAMinput = BAMinput && type < 3;\n int mmem = RESOURCE_REQ[BAMinput ? 3 : type][0];\n int rmem = RESOURCE_REQ[type][1] == ALL ? tmpmem - MEM_AM : RESOURCE_REQ[type][1];\n if (rmem == MEM_ELPREP && !opt.useElPrep)\n rmem = MEM_REF;\n if ((opt.overrideMapMem > 0 || opt.overrideRedMem > 0) && type != COMBINE) {\n if (!BAMinput && opt.overrideMapMem > 0)\n mmem = opt.overrideMapMem;\n if (type != RNA_SHMEM_PASS1 && opt.overrideRedMem > 0)\n rmem = opt.overrideRedMem;\n }\n if (mmem > opt.mem * 1024 || rmem > opt.mem * 1024)\n throw new InterruptedException(\"String_Node_Str\" + opt.mem * 1024 + \"String_Node_Str\" + Math.max(rmem, mmem));\n if (opt.setMapContainers)\n opt.mapContainersPerNode = Math.min(tmpvcores, Math.max(tmpmem / mmem, 1));\n if (opt.setReduceContainers && (type != RNA_SHMEM_PASS2 || type != COMBINE))\n opt.reducerContainersPerNode = Math.min(tmpvcores, Math.max(tmpmem / rmem, 1));\n HalvadeConf.setVcores(conf, opt.vcores);\n opt.mthreads = Math.max(1, tmpvcores / opt.mapContainersPerNode);\n opt.rthreads = Math.max(1, tmpvcores / opt.reducerContainersPerNode);\n if (opt.smtEnabled) {\n opt.mthreads *= 2;\n opt.rthreads *= 2;\n }\n if (opt.mthreads > 1 && opt.mthreads % 2 == 1) {\n opt.mthreads++;\n opt.mapContainersPerNode = Math.min(Math.max(tmpvcores / opt.mthreads, 1), Math.max(tmpmem / mmem, 1));\n }\n opt.maps = Math.max(1, opt.nodes * opt.mapContainersPerNode);\n opt.parallel_reducers = Math.max(1, opt.nodes * opt.reducerContainersPerNode);\n Logger.DEBUG(\"String_Node_Str\" + opt.maps);\n HalvadeConf.setMapContainerCount(conf, opt.maps);\n if (subtractAM)\n opt.rthreads -= VCORES_AM;\n Logger.DEBUG(\"String_Node_Str\" + opt.mapContainersPerNode + \"String_Node_Str\" + opt.mthreads + \"String_Node_Str\" + mmem + \"String_Node_Str\" + opt.reducerContainersPerNode + \"String_Node_Str\" + opt.rthreads + \"String_Node_Str\" + rmem + \"String_Node_Str\");\n conf.set(\"String_Node_Str\", \"String_Node_Str\" + opt.mthreads);\n conf.set(\"String_Node_Str\", \"String_Node_Str\" + mmem);\n conf.set(\"String_Node_Str\", \"String_Node_Str\" + opt.rthreads);\n conf.set(\"String_Node_Str\", \"String_Node_Str\" + rmem);\n conf.set(\"String_Node_Str\", \"String_Node_Str\" + (int) (0.30 * rmem) + \"String_Node_Str\");\n conf.set(\"String_Node_Str\", \"String_Node_Str\" + (int) (0.30 * mmem) + \"String_Node_Str\");\n if (type == COMBINE) {\n conf.set(\"String_Node_Str\", \"String_Node_Str\" + (int) (0.80 * rmem) + \"String_Node_Str\");\n conf.set(\"String_Node_Str\", \"String_Node_Str\" + (int) (0.80 * mmem) + \"String_Node_Str\");\n }\n if (type != COMBINE)\n conf.set(\"String_Node_Str\", \"String_Node_Str\");\n HalvadeConf.setMapThreads(conf, opt.mthreads);\n HalvadeConf.setReducerThreads(conf, opt.rthreads);\n}\n"
|
"protected void calculateHeaders() {\n String[] headers = getTerseHeaders();\n if (outputHeaderList != null) {\n headers = outputHeaderList.split(\"String_Node_Str\");\n if (headers.length == 0)\n headers = getTerseHeaders();\n } else if (useLongFormat)\n headers = getSupportedHeaders();\n Set<String> validHeaders = new HashSet<String>();\n for (String h : getSupportedHeaders()) validHeaders.add(h.toLowerCase(Locale.US));\n for (int i = 0; i < headers.length; i++) {\n if (!validHeaders.contains(headers[i].toLowerCase())) {\n throw new IllegalArgumentException(\"String_Node_Str\" + headers[i]);\n }\n headers[i] = headers[i].toLowerCase();\n }\n outputHeaders = headers;\n displayHeaders = new String[outputHeaders.length];\n for (int index = 0; index < displayHeaders.length; index++) displayHeaders[index] = isHeaderRequired() ? outputHeaders[index].toUpperCase() : \"String_Node_Str\";\n}\n"
|
"public void put(String name, Object v) {\n newData.put(name, v);\n if (!this.dirty && data != null) {\n store.markChanged(this);\n }\n this.dirty = true;\n}\n"
|
"public boolean step() {\n NetworkSystem networkSystem = CoreRegistry.get(NetworkSystem.class);\n BlockManager blockManager;\n if (networkSystem.getMode().isAuthority()) {\n blockManager = new BlockManagerAuthority(worldInfo.getBlockIdMap());\n blockManager.subscribe(CoreRegistry.get(NetworkSystem.class));\n } else {\n blockManager = new BlockManagerClient(networkSystem.getServer().getInfo().getRegisterBlockFamilyList(), worldInfo.getBlockIdMap());\n }\n blockManager.buildAtlas();\n CoreRegistry.put(BlockManager.class, blockManager);\n return true;\n}\n"
|
"private void updateWeightedNormaliser(final double sigmaX, final double sigmaY) {\n if (normaliser == null || sx != sigmaX || sy != sigmaY) {\n float[] normalisation = weights.clone();\n sx = sigmaX;\n sy = sigmaY;\n DPGaussianFilter gf = new DPGaussianFilter(accuracy);\n gf.convolve(normalisation, weightWidth, weightHeight, sigmaX, sigmaY);\n normaliser = new PerPixelNormaliser(normalisation);\n }\n}\n"
|
"public void buildProcedureOperation(ProcedureOperationModel procedureOperationModel) {\n for (ProcedureType storedProcedure : procedureOperationModel.getDbStoredProcedures()) {\n boolean hasComplexArgs = hasComplexArgs(storedProcedure);\n QueryOperation qo = new QueryOperation();\n qo.setName(getNameForQueryOperation(procedureOperationModel, storedProcedure));\n String qualifiedProcName = getQualifiedProcedureName(procedureOperationModel, storedProcedure);\n dbwsBuilder.logMessage(FINEST, BUILDING_QUERYOP_FOR + qualifiedProcName);\n QueryHandler qh = null;\n List<DatabaseQuery> queries = dbwsBuilder.getOrProject().getQueries();\n if (queries.size() > 0) {\n for (DatabaseQuery q : queries) {\n if (q.getName().equals(qo.getName())) {\n qh = new NamedQueryHandler();\n ((NamedQueryHandler) qh).setName(qo.getName());\n }\n }\n }\n if (qh == null) {\n if (storedProcedure.isFunctionType()) {\n qh = new StoredFunctionQueryHandler();\n } else {\n qh = new StoredProcedureQueryHandler();\n }\n ((StoredProcedureQueryHandler) qh).setName(qualifiedProcName);\n }\n qo.setQueryHandler(qh);\n String returnType = procedureOperationModel.getReturnType();\n boolean isCollection = procedureOperationModel.isCollection();\n boolean isSimpleXMLFormat = procedureOperationModel.isSimpleXMLFormat();\n Result result = null;\n int outArgCount = 0;\n for (ArgumentType argument : storedProcedure.getArguments()) {\n ArgumentTypeDirection argDirection = argument.getDirection();\n if (argDirection == OUT) {\n outArgCount++;\n }\n }\n if (outArgCount > 1 || (outArgCount > 0 && storedProcedure.isFunctionType())) {\n isCollection = true;\n isSimpleXMLFormat = true;\n result = new CollectionResult();\n result.setType(ANY_QNAME);\n } else {\n if (storedProcedure.isFunctionType()) {\n ArgumentType returnArg = ((FunctionType) storedProcedure).getReturnArgument();\n result = buildResultForStoredFunction(returnArg, returnType);\n if (returnArg.getEnclosedType().isPLSQLCursorType()) {\n customizeSimpleXMLTagNames((PLSQLCursorType) returnArg.getEnclosedType(), procedureOperationModel);\n }\n } else if (hasComplexArgs) {\n if (Util.noOutArguments(storedProcedure)) {\n result = new Result();\n result.setType(new QName(SCHEMA_URL, INT, SCHEMA_PREFIX));\n }\n } else {\n if (returnType != null) {\n result = new Result();\n result.setType(buildCustomQName(returnType, dbwsBuilder));\n } else {\n if (isCollection) {\n result = new CollectionResult();\n if (isSimpleXMLFormat) {\n result.setType(SXF_QNAME_CURSOR);\n }\n } else {\n result = new Result();\n result.setType(SXF_QNAME);\n }\n }\n }\n }\n for (ArgumentType arg : storedProcedure.getArguments()) {\n String argName = arg.getArgumentName();\n if (argName != null) {\n QName xmlType = null;\n ProcedureArgument pa = null;\n ProcedureArgument paShadow = null;\n Parameter parm = null;\n ArgumentTypeDirection direction = arg.getDirection();\n if (!hasComplexArgs) {\n if (arg.getEnclosedType().isPLSQLCursorType()) {\n PLSQLCursorType cursorType = (PLSQLCursorType) arg.getEnclosedType();\n if (cursorType.isWeaklyTyped()) {\n xmlType = buildCustomQName(\"String_Node_Str\", dbwsBuilder);\n }\n } else {\n xmlType = getXMLTypeFromJDBCType(Util.getJDBCTypeFromTypeName(arg.getTypeName()));\n }\n } else {\n if (arg.getEnclosedType().isPLSQLType()) {\n String packageName = ((PLSQLType) arg.getEnclosedType()).getParentType().getPackageName();\n String typeString = (packageName != null && packageName.length() > 0) ? packageName + UNDERSCORE + arg.getTypeName() : arg.getTypeName();\n typeString = typeString.contains(PERCENT) ? typeString.replace(PERCENT, UNDERSCORE) : typeString;\n xmlType = buildCustomQName(nct.generateSchemaAlias(typeString), dbwsBuilder);\n } else if (arg.getEnclosedType().isVArrayType() || arg.getEnclosedType().isObjectType() || arg.getEnclosedType().isObjectTableType()) {\n xmlType = buildCustomQName(nct.generateSchemaAlias(arg.getTypeName()), dbwsBuilder);\n } else {\n switch(Util.getJDBCTypeFromTypeName(arg.getTypeName())) {\n case STRUCT:\n case ARRAY:\n String typeString = nct.generateSchemaAlias(arg.getTypeName());\n xmlType = buildCustomQName(typeString, dbwsBuilder);\n break;\n default:\n xmlType = getXMLTypeFromJDBCType(Util.getJDBCTypeFromTypeName(arg.getTypeName()));\n break;\n }\n }\n }\n if (direction == null || direction == IN) {\n parm = new Parameter();\n parm.setName(argName);\n parm.setType(xmlType);\n parm.setOptional(arg.optional());\n pa = new ProcedureArgument();\n pa.setName(argName);\n pa.setParameterName(argName);\n if (qh instanceof StoredProcedureQueryHandler) {\n ((StoredProcedureQueryHandler) qh).getInArguments().add(pa);\n }\n } else {\n pa = new ProcedureOutputArgument();\n ProcedureOutputArgument pao = (ProcedureOutputArgument) pa;\n pao.setName(argName);\n pao.setParameterName(argName);\n boolean isCursor = arg.isPLSQLCursorType() || arg.getTypeName().contains(CURSOR_STR);\n if (arg.isPLSQLCursorType()) {\n customizeSimpleXMLTagNames((PLSQLCursorType) arg.getEnclosedType(), procedureOperationModel);\n }\n if (isCursor && returnType == null) {\n pao.setResultType(SXF_QNAME_CURSOR);\n if (result == null) {\n result = new CollectionResult();\n result.setType(SXF_QNAME_CURSOR);\n }\n } else {\n if (returnType != null && !isSimpleXMLFormat) {\n xmlType = qNameFromString(OPEN_PAREN + dbwsBuilder.getTargetNamespace() + CLOSE_PAREN + returnType, dbwsBuilder.getSchema());\n }\n if (isCursor) {\n pao.setResultType(new QName(EMPTY_STRING, CURSOR_OF_STR + returnType));\n Result newResult = new CollectionResult();\n newResult.setType(result.getType());\n result = newResult;\n } else {\n pao.setResultType(xmlType);\n }\n if (result == null) {\n if (isCollection) {\n result = new CollectionResult();\n } else {\n result = new Result();\n }\n result.setType(xmlType);\n }\n }\n if (direction == INOUT) {\n parm = new Parameter();\n parm.setName(argName);\n parm.setType(xmlType);\n result.setType(xmlType);\n if (qh instanceof StoredProcedureQueryHandler) {\n ((StoredProcedureQueryHandler) qh).getInOutArguments().add(pao);\n }\n paShadow = new ProcedureArgument();\n paShadow.setName(argName);\n paShadow.setParameterName(argName);\n } else {\n if (qh instanceof StoredProcedureQueryHandler) {\n ((StoredProcedureQueryHandler) qh).getOutArguments().add(pao);\n }\n }\n }\n if (arg.getEnclosedType() == ScalarDatabaseTypeEnum.XMLTYPE_TYPE) {\n pa.setJdbcType(getJDBCTypeForTypeName(XMLTYPE_STR));\n }\n if (hasComplexArgs && arg.getEnclosedType().isPLSQLType()) {\n pa.setComplexTypeName(storedProcedure.getCatalogName() + UNDERSCORE + arg.getTypeName());\n if (paShadow != null) {\n paShadow.setComplexTypeName(pa.getComplexTypeName());\n }\n }\n if (parm != null) {\n qo.getParameters().add(parm);\n }\n }\n }\n if (procedureOperationModel.getBinaryAttachment()) {\n Attachment attachment = new Attachment();\n attachment.setMimeType(APP_OCTET_STREAM);\n result.setAttachment(attachment);\n }\n handleSimpleXMLFormat(isSimpleXMLFormat, result, procedureOperationModel);\n qo.setResult(result);\n dbwsBuilder.getXrServiceModel().getOperations().put(qo.getName(), qo);\n }\n finishProcedureOperation();\n}\n"
|
"private void handleIncomingData(LttngEvent e) {\n long eventTime = e.getTimestamp().getValue();\n TmfTrace<LttngEvent> inTrace = e.getParentTrace();\n if (!(inTrace == getTrace())) {\n return;\n }\n updateSynEvent(e);\n if (eventTime >= fDispatchTime) {\n syntheticEvent.setSequenceInd(SequenceInd.BEFORE);\n LttngSyntheticEvent[] result = new LttngSyntheticEvent[1];\n result[0] = syntheticEvent;\n fmainRequest.setData(result);\n fmainRequest.handleData();\n result[0] = syntheticAckIndicator;\n fmainRequest.setData(result);\n fmainRequest.handleData();\n syntheticEvent.setSequenceInd(SequenceInd.UPDATE);\n fstateUpdateProcessor.process(syntheticEvent, fTraceModel);\n syntheticEvent.setSequenceInd(SequenceInd.AFTER);\n result = new LttngSyntheticEvent[1];\n result[0] = syntheticEvent;\n fmainRequest.setData(result);\n fmainRequest.handleData();\n result[0] = syntheticAckIndicator;\n fmainRequest.setData(result);\n fmainRequest.handleData();\n incrementSynEvenCount();\n subEventCount++;\n } else {\n syntheticEvent.setSequenceInd(SequenceInd.UPDATE);\n fstateUpdateProcessor.process(syntheticEvent, fTraceModel);\n }\n}\n"
|
"protected String[] getTestBundlesNames() {\n return new String[] { \"String_Node_Str\" + getSpringDMVersion(), \"String_Node_Str\" + getSpringDMVersion() };\n}\n"
|
"protected Promise<AuthorizationResult, ResourceException> authorize(Context context) {\n try {\n String userId = getUserId(context);\n if (isSuperUser(userId)) {\n if (debug.messageEnabled()) {\n debug.message(\"String_Node_Str\" + userId + \"String_Node_Str\");\n }\n return Promises.newResultPromise(AuthorizationResult.accessPermitted());\n } else {\n if (debug.messageEnabled()) {\n debug.message(\"String_Node_Str\" + userId);\n }\n return Promises.newResultPromise(AuthorizationResult.accessDenied(\"String_Node_Str\"));\n }\n } catch (ForbiddenException e) {\n return Promises.newResultPromise(AuthorizationResult.accessDenied(\"String_Node_Str\"));\n } catch (ResourceException re) {\n return re.asPromise();\n }\n}\n"
|
"public void setup() throws Exception {\n String str = MyIOUtils.getResourceAsString(REDMINE_1_1_FILE_1_ISSUES_XML_FILE_NAME);\n this.issuesList = RedmineXMLParser.parseIssuesFromXML(str);\n RedmineIssuesMap loader = new RedmineIssuesMap(issuesList);\n issuesMap = loader.getIssuesMap();\n}\n"
|
"public void testIsHighDegreeConnection() throws IOException {\n ManagedConnection mc = new ManagedConnection(\"String_Node_Str\", Backend.BACKEND_PORT);\n mc.initialize();\n assertTrue(\"String_Node_Str\", mc.isHighDegreeConnection());\n mc.close();\n}\n"
|
"private void linkOldPreviousToNew(DataHubKey oldLastKey, DataHubKey newKey) {\n if (oldLastKey != null) {\n LinkedDataHubCompositeValue previousLinkedValue = channelValues.getIfPresent(oldLastKey);\n if (previousLinkedValue != null) {\n channelValues.put(oldLastKey, new LinkedDataHubCompositeValue(previousLinkedValue.getValue(), previousLinkedValue.getPrevious(), Optional.of(new DataHubKey(newKey.date, newKey.sequence))));\n }\n }\n}\n"
|
"public boolean performNextAttack() {\n boolean doContinue = false;\n if (initialMessage == null || initialMessage.getRequest() == null) {\n BurpCallbacks.getInstance().print(\"String_Node_Str\");\n return false;\n }\n if (initialMessage.getReq().getChangeParam() == null) {\n }\n ListManagerList list = ListManager.getInstance().getModel().getList(Integer.parseInt(attackData));\n String data = list.getContent().get(state);\n data = data.replace(\"String_Node_Str\", XssIndicator.getInstance().getIndicator());\n try {\n SentinelHttpMessage httpMessage = attack(data);\n } catch (ConnectionTimeoutException ex) {\n state++;\n return false;\n }\n if (state < list.getContent().size() - 1) {\n doContinue = true;\n } else {\n doContinue = false;\n }\n state++;\n return doContinue;\n}\n"
|
"protected void createContentsVirtically() {\n content.setLayout(UIUtil.createGridLayoutWithoutMargin());\n Composite topContainer = new Composite(content, SWT.NONE);\n topContainer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n topContainer.setLayout(new GridLayout(2, false));\n FormWidgetFactory.getInstance().createLabel(topContainer, isFormStyle()).setText(LABEL_FORMAT_NUMBER_PAGE);\n if (!isFormStyle())\n typeChoicer = new CCombo(topContainer, SWT.READ_ONLY | SWT.BORDER);\n else\n typeChoicer = FormWidgetFactory.getInstance().createCCombo(topContainer, true);\n typeChoicer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n typeChoicer.addSelectionListener(new SelectionAdapter() {\n public void widgetSelected(SelectionEvent e) {\n reLayoutSubPages();\n updatePreview();\n notifyFormatChange();\n }\n });\n typeChoicer.setItems(provider.getFormatTypes());\n infoComp = new Composite(content, SWT.NONE);\n infoComp.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n infoComp.setLayout(new StackLayout());\n createCategoryPages(infoComp);\n createCategoryPatterns();\n setInput(null, null);\n setPreviewText(DEFAULT_PREVIEW_TEXT);\n}\n"
|
"public Response execute() {\n ArrayList<AnnotationInformation> annotations = new ArrayList<AnnotationInformation>();\n DatabaseAccessor db = null;\n Map<String, Integer> a = null;\n try {\n db = initDB();\n a = db.getAnnotations();\n List<String> list = new ArrayList<String>(a.keySet());\n System.out.println(\"String_Node_Str\" + list.toString());\n Iterator<String> keys = a.keySet().iterator();\n ArrayList<String> annotation_names = new ArrayList<String>();\n while (keys.hasNext()) {\n annotation_names.add(keys.next());\n }\n for (String label : list) {\n database.containers.Annotation annotationObject = null;\n ArrayList<String> values = new ArrayList<String>();\n annotationObject = db.getAnnotationObject(annotation_names.get(i));\n if (annotationObject.dataType == database.containers.Annotation.FREETEXT) {\n values.add(\"String_Node_Str\");\n } else if (annotationObject.dataType == database.containers.Annotation.DROPDOWN) {\n values = (ArrayList<String>) annotationObject.getPossibleValues();\n }\n AnnotationInformation annotation = new AnnotationInformation(annotationObject.label, values, annotationObject.isRequired);\n annotations.add(annotation);\n }\n db.close();\n return new GetAnnotationInformationResponse(StatusCode.OK, annotations);\n } catch (SQLException | IOException e) {\n return new ErrorResponse(StatusCode.BAD_REQUEST, \"String_Node_Str\" + e.getMessage());\n }\n}\n"
|
"public IProject createProject(String label) {\n IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\n IProject prj = root.getProject(label);\n if (prj.exists())\n return prj;\n final IWorkspace workspace = ResourcesPlugin.getWorkspace();\n final IProjectDescription desc = workspace.newProjectDescription(label);\n desc.setNatureIds(new String[] { MdmNature.ID });\n desc.setComment(\"String_Node_Str\");\n try {\n prj.create(desc, null);\n prj.open(IResource.BACKGROUND_REFRESH, null);\n } catch (CoreException e) {\n log.error(e.getMessage(), e);\n }\n return prj;\n}\n"
|
"public boolean apply(Game game, Ability source) {\n Player controller = game.getPlayer(source.getControllerId());\n if (controller != null) {\n Spell spell = game.getStack().getSpell(source.getId());\n if (spell != null) {\n Card spellCard = spell.getCard();\n if (spellCard != null) {\n Player owner = game.getPlayer(spellCard.getOwnerId());\n if (owner != null) {\n controller.moveCardToLibraryWithInfo(spellCard, source.getSourceId(), game, Zone.STACK, true, true);\n owner.shuffleLibrary(game);\n }\n }\n }\n return true;\n }\n return false;\n}\n"
|
"public static _Fields findByThriftId(int fieldId) {\n switch(fieldId) {\n case 1:\n return ID;\n case 2:\n return RSV;\n case 3:\n return SCREEN_NAME;\n case 4:\n return EPOCH;\n case 5:\n return TEXT;\n default:\n return null;\n }\n}\n"
|
"private void createPKVectorsFromMap(Reference reference) {\n XMLCollectionReferenceMapping mapping = (XMLCollectionReferenceMapping) reference.getMapping();\n Vector pks = new Vector();\n if (null == referenceDescriptor) {\n CacheId pkVals = (CacheId) reference.getPrimaryKeyMap().get(null);\n if (null == pkVals) {\n return;\n }\n for (int x = 0; x < pkVals.getPrimaryKey().length; x++) {\n Object[] values = new Object[1];\n values[0] = pkVals.getPrimaryKey()[x];\n pks.add(new CacheId(values));\n }\n } else {\n Vector pkFields = referenceDescriptor.getPrimaryKeyFieldNames();\n if (pkFields.isEmpty()) {\n return;\n }\n if (init) {\n for (int i = 0; i < pkVals.getPrimaryKey().length; i++) {\n pks.add(new CacheId(new Object[0]));\n }\n init = false;\n }\n for (int i = 0; i < pkVals.getPrimaryKey().length; i++) {\n Object val = pkVals.getPrimaryKey()[i];\n ((CacheId) pks.get(i)).add(val);\n }\n }\n reference.primaryKey = pks;\n}\n"
|
"private BeanManager lookupInJNDI() {\n try {\n InitialContext ic = new InitialContext();\n return (this.beanManager = (BeanManager) ic.lookup(BEAN_MANAGER_LOCATION));\n } catch (Exception e) {\n return null;\n }\n return this.beanManager;\n}\n"
|
"public final void visit(NodeTraversal nodeTraversal, Node n, Node parent) {\n if (n.isCall() && parent.isExprResult() && n.getFirstChild().matchesQualifiedName(closureFunction)) {\n calls.add(parent);\n } else if (NodeUtil.isNameDeclaration(parent) && n.hasChildren() && n.getLastChild().isCall() && n.getLastChild().getFirstChild().matchesQualifiedName(closureFunction)) {\n Preconditions.checkState(n.isName() || n.isDestructuringLhs());\n calls.add(parent);\n }\n}\n"
|
"public void deactivated() {\n super.deactivated();\n synchronized (this) {\n if (localGUI != null) {\n localGUI.disposeClient();\n localGUI = null;\n }\n }\n shells.clear();\n if (sharedObjectEventListener != null) {\n sharedObjectEventListener = null;\n }\n if (workbenchWindow != null) {\n workbenchWindow = null;\n }\n if (localResource != null) {\n localResource = null;\n }\n}\n"
|
"private void processSingleRequest(JsonObject request, String jsonToken, HttpServletRequest httpRequest, JsonWriter writer) throws Exception {\n long s = System.nanoTime();\n String interfaceName = request.get(\"String_Node_Str\").getAsString();\n String methodName = request.get(\"String_Node_Str\").getAsString();\n SService sService = bimServer.getServicesMap().getByName(interfaceName);\n if (sService == null) {\n sService = bimServer.getServicesMap().getBySimpleName(interfaceName);\n }\n if (sService == null) {\n throw new UserException(\"String_Node_Str\" + interfaceName);\n }\n SMethod method = sService.getSMethod(methodName);\n if (method == null) {\n SMethod alternative = bimServer.getServicesMap().findMethod(methodName);\n if (alternative == null) {\n throw new UserException(\"String_Node_Str\" + methodName + \"String_Node_Str\" + interfaceName);\n } else {\n throw new UserException(\"String_Node_Str\" + methodName + \"String_Node_Str\" + interfaceName + \"String_Node_Str\" + alternative.getService().getSimpleName() + \"String_Node_Str\");\n }\n }\n KeyValuePair[] parameters = new KeyValuePair[method.getParameters().size()];\n if (request.has(\"String_Node_Str\")) {\n JsonObject parametersJson = request.getAsJsonObject(\"String_Node_Str\");\n for (int i = 0; i < method.getParameters().size(); i++) {\n SParameter parameter = method.getParameter(i);\n if (parametersJson.has(parameter.getName())) {\n parameters[i] = new KeyValuePair(parameter.getName(), converter.fromJson(parameter.getType(), parameter.getGenericType(), parametersJson.get(parameter.getName())));\n } else {\n LOGGER.error(\"String_Node_Str\" + method.getName() + \"String_Node_Str\" + parameter.getName());\n }\n }\n }\n PublicInterface service = getServiceInterface(httpRequest, bimServer, sService.getInterfaceClass(), methodName, jsonToken);\n Thread.currentThread().setName(interfaceName + \"String_Node_Str\" + methodName);\n try {\n Object result = method.invoke(sService.getInterfaceClass(), service, parameters);\n if (writer != null) {\n if (result == null) {\n writer.beginObject();\n writer.name(\"String_Node_Str\");\n writer.beginObject();\n writer.endObject();\n writer.endObject();\n } else {\n writer.beginObject();\n writer.name(\"String_Node_Str\");\n converter.toJson(result, writer);\n writer.endObject();\n }\n }\n }\n long e = System.nanoTime();\n LOGGER.debug(interfaceName + \"String_Node_Str\" + methodName + \"String_Node_Str\" + ((e - s) / 1000000) + \"String_Node_Str\");\n}\n"
|
"public void add(T entity, String key, Object value) {\n for (Object oneValue : PrimitiveUtils.asArray(value)) {\n getConnection().add(this, entity, key, oneValue);\n }\n}\n"
|
"private boolean deleteFile(File path) {\n if (path != null && path.exists()) {\n if (path.isDirectory()) {\n File[] files = path.listFiles();\n for (File file : files) {\n if (file.isDirectory()) {\n deleteFile(file);\n if (file.delete())\n continue;\n } else {\n file.delete();\n }\n }\n }\n path.delete();\n }\n return true;\n}\n"
|
"public URI saveToUri(Resource res, URI destinationUri) {\n EcoreUtil.resolveAll(res);\n Map<EObject, Collection<Setting>> find = EcoreUtil.ExternalCrossReferencer.find(res);\n List<Resource> needSaves = new ArrayList<Resource>();\n for (EObject object : find.keySet()) {\n Resource resource = object.eResource();\n if (resource == null) {\n continue;\n }\n EcoreUtil.resolveAll(resource);\n needSaves.add(resource);\n }\n URI changeUri = EMFUtil.changeUri(res, destinationUri);\n needSaves.add(res);\n for (Resource toSave : needSaves) {\n saveResource(toSave);\n }\n return changeUri;\n}\n"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.