content
stringlengths
40
137k
"public static int getDrawerWidth(Resources res) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {\n if (res.getConfiguration().smallestScreenWidthDp >= 600 || res.getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n return (int) (320 * res.getDisplayMetric...
"public void run() {\n try {\n while (true) {\n repOk();\n try {\n waitForQueued();\n sendQueued();\n } catch (IOException e) {\n if (_manager != null)\n _manager.remove(ManagedConnection.this);\n _...
"public ModelAndView search(NodeCond searchCondition) throws InvalidSearchConditionException {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\" + searchCondition);\n }\n if (!searchCondition.checkValidity()) {\n LOG.error(\"String_Node_Str\" + searchCondition);\n throw new Inv...
"public void drawRadialGridLines(Graphics2D g2, PolarPlot plot, ValueAxis radialAxis, List<ValueTick> ticks, Rectangle2D dataArea) {\n g2.setFont(radialAxis.getTickLabelFont());\n g2.setPaint(plot.getRadiusGridlinePaint());\n g2.setStroke(plot.getRadiusGridlineStroke());\n double centerValue;\n if (radia...
"protected void handleDebuggingIntent(Intent intent, Context context, boolean showMessage) {\n switch(intent.getIntExtra(SensorbergServiceMessage.EXTRA_GENERIC_TYPE, -1)) {\n case SensorbergServiceMessage.MSG_TYPE_DISABLE_LOGGING:\n {\n Logger.log = Logger.QUIET_LOG;\n ...
"public void testEntityOptions() throws URISyntaxException {\n final EntityResource entityResource = new EntityResource();\n entityResource.setPersistenceFactory(factory);\n final Response response = entityResource.getEntityOptions(version, pu, \"String_Node_Str\", TestHttpHeaders.generateHTTPHeader(MediaType....
"private static void visualizeWithTextArea(RenderedImage ri, String title, final int textFields, final int index, final boolean displayImage) {\n StringBuffer sb = new StringBuffer();\n switch(textFields) {\n case TextType.ONLY_IMAGE_METADATA:\n sb.append(\"String_Node_Str\").append(title);\n ...
"public static void inject(int splitPoint) {\n if (leftoversLoaded) {\n startLoadingFragment(splitPoint);\n return;\n }\n if (baseLoading || leftoversLoading) {\n waitingForLeftovers.add(splitPoint);\n return;\n }\n baseLoading = true;\n logEventProgress(LwmLabels.downloadG...
"public void loadProperties(String propertyPath) {\n InputStream in = null;\n try {\n in = getClass().getResourceAsStream(propertyPath);\n if (in != null) {\n logger.debug(\"String_Node_Str\", propertyPath);\n Properties prop = new Properties();\n prop.load(in);\n ...
"public AccountInfo getAccountInformation(Account account) throws Exception {\n AccountInfo ai = new AccountInfo(this, account);\n this.setBrowserExclusive();\n try {\n login(account);\n } catch (PluginException e) {\n ai.setValid(false);\n return ai;\n }\n if (!UserInfo.containsK...
"public boolean execute(final PlotPlayer plr, String... args) {\n final ArrayList<Plot> plots = PlotSquared.sortPlots(PlotSquared.getPlots(plr), plr.getLocation().getWorld());\n if (plots.size() == 1) {\n MainUtil.teleportPlayer(plr, plr.getLocation(), plots.get(0));\n return true;\n } else if (p...
"private void updateAnalysisTypes(DataSetViewData[] viewDatas, boolean updateFlag) {\n for (int i = 0; i < viewDatas.length; i++) {\n DataSetViewData item = viewDatas[i];\n ColumnHintHandle hint = findColumnHint(item);\n if (hint != null) {\n try {\n String analysis = h...
"protected TreeNode addElement(TreeNode lastTreeNode, String lastXmlPath, XMLFileNode xmlFilenode) {\n String newPath = xmlFilenode.getXMLPath();\n String defaultValue = xmlFilenode.getDefaultValue();\n String name = newPath.substring(newPath.lastIndexOf(\"String_Node_Str\") + 1);\n String parentPath = newP...
"public int getOwnOptionInteger(String optionName, String world, int defaultValue) {\n String option = this.getOwnOption(optionName, world, Integer.toString(defaultValue));\n try {\n return Integer.parseInt(option);\n } catch (NumberFormatException ignore) {\n }\n return defaultValue;\n}\n"
"private static String subscribeToLb(String cartridgeType, String loadBalancedCartridgeType, String lbAlias, String defaultAutoscalingPolicy, String deploymentPolicy, ConfigurationContext configurationContext, String userName, String tenantDomain, Property[] props) throws ADCException {\n CartridgeSubscription cartr...
"public void onTaskStackChanged() {\n RecentsConfiguration config = Recents.getConfiguration();\n if (config.svelteLevel == RecentsConfiguration.SVELTE_NONE) {\n RecentsTaskLoader loader = Recents.getTaskLoader();\n SystemServicesProxy ssp = Recents.getSystemServices();\n ActivityManager.Runn...
"public static String getCategoryDisplayName(String categoryId) {\n if (containCategory(categoryId)) {\n return categoryMap.get(categoryId);\n }\n return categoryId;\n}\n"
"public void testGrandTotal() throws Exception {\n ICubeQueryDefinition cqd = new CubeQueryDefinition(cubeName);\n IEdgeDefinition columnEdge = cqd.createEdge(ICubeQueryDefinition.COLUMN_EDGE);\n IEdgeDefinition rowEdge = cqd.createEdge(ICubeQueryDefinition.ROW_EDGE);\n IDimensionDefinition dim1 = columnEdg...
"public void execute(Element ele, HashMap styles) {\n HashMap cssStyle = null;\n if (!ele.hasAttribute(\"String_Node_Str\")) {\n cssStyle = new HashMap();\n } else {\n cssParser.ReInit(new StringReader(ele.getAttribute(\"String_Node_Str\")));\n cssParser.setCssStatement(ele.getAttribute(\"...
"public GenericSQLHandler replaceColumn(String columns) {\n sqlString = sqlString.replace(COLUMN_NAMES, columns);\n return this;\n}\n"
"protected List getTableEditParts() {\n List tableParts = new ArrayList();\n for (Iterator itor = getSelectedObjects().iterator(); itor.hasNext(); ) {\n Object obj = itor.next();\n if (obj instanceof DummyEditpart) {\n } else if (obj instanceof TableEditPart) {\n if (obj instanceof...
"public CodeBlock getLoadFromCursorMethod(boolean isModelContainerAdapter) {\n CodeBlock.Builder builder = CodeBlock.builder().add(\"String_Node_Str\");\n CodeBlock.Builder ifNullBuilder = CodeBlock.builder().add(\"String_Node_Str\");\n CodeBlock.Builder selectBuilder = CodeBlock.builder();\n for (int i = 0...
"public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n requestWindowFeature(Window.FEATURE_NO_TITLE);\n setContentView(R.layout.gallery);\n ViewParams params = new ViewParams(getResources().getDisplayMetrics());\n initParams(params);\n mLayout = (LinearLayout) findV...
"public List<IComponent> filterNeededComponents(Item item, RepositoryNode seletetedNode, ERepositoryObjectType type) {\n List<IComponent> neededComponents = new ArrayList<IComponent>();\n if (!(item instanceof HadoopClusterConnectionItem)) {\n return neededComponents;\n }\n IComponentsService service...
"public void evaluate() throws Throwable {\n Future<Throwable> submitted = executor.submit(callable);\n try {\n Throwable result = submitted.get(timeout, TimeUnit.MILLISECONDS);\n if (result == null) {\n return;\n }\n if (result instanceof TimeoutException) {\n th...
"public final int getDpiResolution() {\n if (iDpiResolution == 0) {\n switch(getGraphicsContext().getDeviceConfiguration().getDevice().getType()) {\n case GraphicsDevice.TYPE_RASTER_SCREEN:\n iDpiResolution = computeScreenDpi();\n break;\n case GraphicsDevic...
"public void run() {\n if (minimizing) {\n LabeledRectangle sourceComponent = zoomArrow.getSource();\n LabeledRectangle targetComponent = zoomArrow.getTarget();\n for (LabeledRectangle component : sourceComponents) if (component != sourceComponent)\n component.setVisible(false);\n ...
"public void checkRefsEnumerationInMatchingState(EnumTypeRef enumRef) {\n EObject owner = objLookup.getStatefulOwner(enumRef);\n ILifecycleStateResolver stateRes = new StateAttributeLifecycleStateResolver(owner.eResource().getResourceSet());\n if (owner != null && stateRes.definesState(owner)) {\n if (!...
"public void addHessian(float sigma) {\n float[] sobelFilter_x = { 1f, 2f, 1f, 0f, 0f, 0f, -1f, -2f, -1f };\n float[] sobelFilter_y = { 1f, 0f, -1f, 2f, 0f, -2f, 1f, 0f, -1f };\n Convolver c = new Convolver();\n GaussianBlur gs = new GaussianBlur();\n ImageProcessor ip_x = originalImage.getProcessor().du...
"public void adjustStreamVolume(int streamType, int direction, int flags) {\n IAudioService service = getService();\n try {\n if (mUseMasterVolume) {\n service.adjustMasterVolume(direction, flags, mContext.getOpPackageName());\n } else {\n service.adjustStreamVolume(streamType,...
"public JSONArray getKieServerStasus() throws ApsSystemException {\n Map<String, String> headersMap = new HashMap<>();\n JSONArray ServersStatus = new JSONArray();\n String result = null;\n JSONObject json = null;\n HashMap<String, KieBpmConfig> ServerConfigurations = super.getKieServerConfigurations();\...
"public void testExecutionDoubleConnection() {\n File inputFile = null;\n File outputFile = null;\n File jarFile = new File(ServerTestUtils.getTempDir() + File.separator + \"String_Node_Str\");\n try {\n inputFile = ServerTestUtils.createInputFile(0);\n outputFile = new File(ServerTestUtils.ge...
"public int showDialog() {\n if (!SwingUtilities.isEventDispatchThread()) {\n final int[] returnCodes = new int[1];\n Exception exception = null;\n try {\n lock.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return returnCo...
"public synchronized void setIsolated(boolean isolated) {\n ignoreBase = isolated;\n}\n"
"public void processNodes() {\n HTML2Content.processNodes(element, cssStyles, content, action, 0);\n}\n"
"public static void verifyNodesStatus(List<NodeEntity> nodes, NodeStatus expectedStatus, boolean ignoreMissing) {\n for (NodeEntity node : nodes) {\n if (node.getStatus() != expectedStatus) {\n if (ignoreMissing && node.getStatus() == NodeStatus.NOT_EXIST) {\n continue;\n ...
"private static IntervalsSet buildIntervalSet(final Vector3D start, final Vector3D end) throws MathIllegalArgumentException {\n final Line line = new Line(start, end);\n return new IntervalsSet(line.toSubSpace((Point<Euclidean3D>) start).getX(), line.toSubSpace((Point<Euclidean3D>) end).getX());\n}\n"
"private boolean init(Uri uri, IImageList imageList) {\n if (uri == null)\n return false;\n mAllImagesState = (imageList == null) ? buildImageListFromUri(uri) : imageList;\n mAllImages = mAllImagesState;\n mAllImages.open(getContentResolver());\n IImage image = mAllImages.getImageForUri(uri);\n ...
"public void addResourceIntoDB(String clusterName, String vcRPName, String networkName, Map<DatastoreType, List<String>> dsNames) {\n rpSvc.addResourcePool(DEFAULT_RP, clusterName, vcRPName);\n logger.info(\"String_Node_Str\" + vcRPName);\n if (!dsNames.get(DatastoreType.SHARED).isEmpty()) {\n dsSvc.add...
"public static List<Album> filterByYear(List<Album> albums, String year) {\n return select(albums, having(on(Album.class).getReleaseYear(), equalTo(year)));\n}\n"
"public RefiringData fire(Token arguments) throws IllegalActionException {\n _debug(new PteraDebugEvent(this, \"String_Node_Str\"));\n List<String> names = parameters.getParameterNames();\n Type[] types = parameters.getParameterTypes();\n if (arguments instanceof ArrayToken) {\n ArrayToken array = (A...
"public void run() {\n TreeItem item = (TreeItem) composite.getSelectedElement();\n Object selectedElement = item.getData();\n if (selectedElement == null || !(selectedElement instanceof ReportDesignHandle)) {\n return;\n }\n reportProject = createProject(item.getText().substring(0, item.getText()...
"public void resetReactor(HttpRequest request, HttpResponder responder) {\n try {\n if (!conf.getBoolean(Constants.Dangerous.UNRECOVERABLE_RESET, Constants.Dangerous.DEFAULT_UNRECOVERABLE_RESET)) {\n responder.sendStatus(HttpResponseStatus.FORBIDDEN);\n return;\n }\n String...
"public void run() {\n BamMetadataGeneration metadata = new BamMetadataGeneration(checkRG);\n metadata.ScanFile(input, samplimit);\n final Map<String, Integer[]> values = metadata.getThresholds(maxdist);\n Map<String, DivetOutputHandle> divets = metadata.generateDivetOuts(outbase);\n Map<String, SplitOut...
"public void applyPostLayoutPolicyLw(WindowState win, WindowManager.LayoutParams attrs, WindowState attached) {\n if (DEBUG_LAYOUT)\n Slog.i(TAG, \"String_Node_Str\" + win + \"String_Node_Str\" + win.isVisibleOrBehindKeyguardLw());\n final int fl = PolicyControl.getWindowFlags(win, attrs);\n if (mTopFul...
"public void tick(float elapsed) {\n if (_editor.isThirdButtonDown() && !_editor.isControlDown()) {\n _editor.deleteMouseObject();\n }\n}\n"
"public void onDisable() {\n PlayerQuitEvent pqe;\n for (Player p : getServer().getOnlinePlayers()) {\n pqe = new PlayerQuitEvent(p, null);\n pL.onPlayerQuit(pqe);\n }\n config.saveAll();\n config.unLoad();\n}\n"
"private static NodeVarNames readNodeVarNames(DataInputStream dis, ReteNode node, List<Symbol> symbolMap) throws SoarException, IOException {\n if (node.node_type == ReteNodeType.DUMMY_TOP_BNODE) {\n return null;\n }\n if (node.node_type == ReteNodeType.CN_BNODE) {\n ReteNode temp = node.b_cn().p...
"public void onCurrencyHoldCheck(CurrencyHoldEvent event) {\n if (event.getAccount() == null || !transactionCanFail()) {\n return;\n }\n if (!provider.hasAccount(NameManager.getUsername(event.getAccount()), event.getWorld().getName())) {\n event.canHold(false);\n return;\n }\n Econom...
"protected Enumeration _schedule() throws NotSchedulableException {\n CTDirector dir = (CTDirector) getContainer();\n if (dir == null) {\n return null;\n }\n CompositeActor ca = (CompositeActor) (dir.getContainer());\n if (ca == null) {\n return null;\n }\n _stateschedule = new Linked...
"public List<IGenericDatasourceInfo> getIds() throws PentahoAccessControlException {\n helper.checkAdministratorAccess();\n List<IGenericDatasourceInfo> datasourceInfoList = new ArrayList<IGenericDatasourceInfo>();\n for (MondrianCatalog mondrianCatalog : mondrianCatalogService.listCatalogs(PentahoSessionHolde...
"private void marshal(Object object, MarshalRecord marshalRecord, AbstractSession session, XMLDescriptor descriptor, boolean isXMLRoot) {\n if (null != schema) {\n marshalRecord = new ValidatingMarshalRecord(marshalRecord, this);\n }\n if (getAttachmentMarshaller() != null) {\n marshalRecord.setX...
"private void selectDefaultListEntry() {\n for (GuiListExtended.IGuiListEntry entry : this.partList.getEntries()) {\n PartEntry partEntry = (PartEntry) entry;\n if ((!partEntry.partInfo.hasPart && !partInfo.hasPart) || (partInfo.hasPart && partEntry.partInfo.hasPart && partEntry.partInfo.typeid == part...
"public MaterialContainer checkMaterial(final CommandSender sender, final String mat) {\n MaterialContainer m = null;\n try {\n m = Utils.checkMaterial(mat);\n } catch (final InvalidInputException e) {\n final HashMap<String, String> replace = new HashMap<String, String>();\n replace.put(\...
"private void writeModelToFileSystem(List<TreeNode> trees, Path out) {\n FSDataOutputStream fos = null;\n try {\n fos = FileSystem.get(new Configuration()).create(out);\n LOG.info(\"String_Node_Str\", out);\n fos.writeUTF(modelConfig.getAlgorithm());\n fos.writeUTF(this.validParams.get...
"public void onReceive(Integer from, int protocol, byte[] msg) {\n int sequence = ByteManipulator.getInt(msg, 0);\n Session session = this.m_sessionManager.getSession(from);\n if (protocol == MESSAGE_TYPE.NORMAL) {\n if (session.didAlreadyReceiveSequence(sequence)) {\n info(\"String_Node_Str\...
"public void setHighLowSupport(String support) {\n String parentPos;\n boolean haveLow = false;\n int i;\n for (Pair<Integer, Dir> a : rootPath) {\n i = a.get1();\n if (i == -1) {\n break;\n }\n if (cs.prm.useGoldSyntax) {\n parentPos = sent.get(i).getPos();...
"public Algorithm configure(Properties configuration) throws JMException {\n Algorithm algorithm;\n Mutation mutation;\n algorithm = new SMPSO(problem_);\n swarmSize_ = Integer.parseInt(configuration.getProperty(\"String_Node_Str\", String.valueOf(swarmSize_)));\n maxIterations_ = Integer.parseInt(config...
"public static String getErrorMessage(final Context context, boolean suggestMediaOptimization, final MediaModel media, final MediaStore.MediaError error) {\n if (context == null || media == null || error == null) {\n return null;\n }\n switch(error.type) {\n case FS_READ_PERMISSION_DENIED:\n ...
"public void create(NamespaceMeta namespaceMeta) throws IOException, ExploreException, SQLException {\n createLocation(namespaceMeta);\n if (cConf.getBoolean(Constants.Explore.EXPLORE_ENABLED)) {\n try {\n exploreFacade.createNamespace(namespaceMeta);\n } catch (ExploreException | SQLExce...
"public Control createControl(final Composite subComposite, final IElementParameter param, final int numInRow, final int nbInRow, final int top, final Control lastControl) {\n this.setDragAndDropActionBool();\n this.curParameter = param;\n Button btnEdit = getWidgetFactory().createButton(subComposite, \"String...
"private String freeAgentsGrouping() {\n String chosenGroup = \"String_Node_Str\";\n double currentHeuristic = 0, previousHeuristic = 0;\n double vectorDistance;\n double maxDistance = Math.sqrt(2);\n double economic, social, esFaction = 0;\n double trustFaction = 0;\n String bestPartner = \"String...
"public static void main(String[] args) {\n final User user = new User(\"String_Node_Str\", \"String_Node_Str\", emptySet());\n driver(true, dsl -> {\n dsl.startNode(\"String_Node_Str\", singleton(new ServiceInfo(ValidatingNotaryService.Companion.getType(), null)), emptyList(), emptyMap());\n try {\...
"public void start(Context context) throws LifecycleException, InterruptedException {\n logger.info(\"String_Node_Str\", this);\n Preconditions.checkState(name != null, \"String_Node_Str\");\n Preconditions.checkState(source != null, \"String_Node_Str\");\n Preconditions.checkState(sink != null, \"String_No...
"public void doOpenGraph(File selectedFile) {\n try {\n if (selectedFile.getName().startsWith(\"String_Node_Str\")) {\n GraphViewerPanelManager<UndirectedGraph<String, String>> viewerPanelManager = new GraphViewerPanelManager<UndirectedGraph<String, String>>(this, path, selectedFile, UndirectedSpar...
"public void mergeInto(DoubleLinkedList<T> newList) {\n newList.head.prev.next = this.head.next;\n this.head.next.prev = newList.head.prev;\n this.head.prev.next = newList.head;\n newList.head.prev = this.head.prev;\n newList.size += size;\n clear();\n}\n"
"private void traverse(MappingState state, PDGNodeMapping nodeMapping) {\n PDGNode nodeG1 = nodeMapping.getNodeG1();\n PDGNode nodeG2 = nodeMapping.getNodeG2();\n Iterator<GraphEdge> nodeG1EdgeIterator = nodeG1.getDependenceIterator();\n while (nodeG1EdgeIterator.hasNext()) {\n PDGDependence edgeG1 =...
"public static Object invokeMethod(Object owner, String methodName, Object[] args) {\n Object returnValue = null;\n Class ownerClass = owner.getClass();\n Class[] argsClass = new Class[args.length];\n for (int i = 0, j = args.length; i < j; i++) {\n argsClass[i] = args[i].getClass();\n }\n Meth...
"public void initialize(Rect taskStackBounds) {\n SystemServicesProxy ssp = Recents.getSystemServices();\n RecentsConfiguration config = Recents.getConfiguration();\n int widthPadding = (int) (config.taskStackWidthPaddingPct * taskStackBounds.width());\n int heightPadding = mContext.getResources().getDimens...
"private Object getGenericRepositoryValue(GenericConnection connection, String value, IMetadataTable table) {\n if (connection == null) {\n return null;\n }\n String compPropertiesStr = connection.getCompProperties();\n if (compPropertiesStr != null) {\n Deserialized fromSerialized = Component...
"protected void updateWorkflowOptions() {\n if (selectedPlugin == null) {\n workflowListDescription.clear();\n workflowListDescriptionCategories.setText(\"String_Node_Str\");\n workflowListDescription.setVisible(false);\n workflowListDescriptionCategories.setVisible(false);\n workf...
"private int encode(RenderedImage im, TIFFEncodeParam encodeParam, int ifdOffset, boolean isLast) throws IOException {\n if (CodecUtils.isPackedByteImage(im)) {\n ColorModel sourceCM = im.getColorModel();\n ColorModel destCM = RasterFactory.createComponentColorModel(DataBuffer.TYPE_BYTE, sourceCM.getCo...
"protected Hashtable buildFieldTypes() {\n Hashtable fieldTypeMapping;\n fieldTypeMapping = new Hashtable();\n fieldTypeMapping.put(Boolean.class, new FieldTypeDefinition(\"String_Node_Str\", false));\n fieldTypeMapping.put(Integer.class, new FieldTypeDefinition(\"String_Node_Str\", 10));\n fieldTypeMapp...
"public void purgeIndicator(Indicator indicator) throws APIException {\n getPersister(indicator.getClass()).purgeIndicator(indicator);\n}\n"
"private <T extends AbstractSchema> boolean evaluateMandatoryCondition(final Set<TargetResource> resources, final List<? extends AbstractAttribute> attributes, final String schemaName, final Class<T> referenceSchema) {\n boolean result = false;\n TargetResource resource;\n for (Iterator<TargetResource> itor = ...
"public static void shutdownGui() {\n dispatchAndWait(new Runnable() {\n\n public void run() {\n if (!alreadyRunningGTK) {\n gtk_main_quit();\n }\n started = false;\n }\n });\n}\n"
"public List<Pool> listSharedPoolsOf(Pool pool) {\n return listByCriteria(currentSession().createCriteria(Pool.class).createAlias(\"String_Node_Str\", \"String_Node_Str\").createAlias(\"String_Node_Str\", \"String_Node_Str\").add(Restrictions.eq(\"String_Node_Str\", Boolean.TRUE)).add(Restrictions.eq(\"String_Node_S...
"private void themeComboBoxActionPerformed(java.awt.event.ActionEvent evt) {\n String laf = (String) lafComboBox.getSelectedItem();\n if (laf.equals(LAF_JGOODIES)) {\n config.setLafJGoodiesTheme((String) themeComboBox.getSelectedItem());\n } else if (laf.equals(LAF_SUBSTANCE)) {\n config.setLafSu...
"private void runPost(PostEntHelper postHelper, Entitlement ent) {\n Invocable inv = (Invocable) jsEngine;\n EntitlementPool pool = ent.getPool();\n Consumer c = ent.getConsumer();\n String productOID = pool.getProduct();\n jsEngine.put(\"String_Node_Str\", new ReadOnlyConsumer(c));\n jsEngine.put(\"S...
"private boolean isDescriptionAllowed(OWLClassExpression description) {\n if (learningProblem instanceof ClassLearningProblem) {\n if (isEquivalenceProblem) {\n if (occursOnFirstLevel(description, classToDescribe)) {\n return false;\n }\n toTest.addAll(reasoner....
"protected void align(boolean lastLine) {\n if (root == null) {\n return;\n }\n assert (parent instanceof PDFBlockStackingLM);\n String align = ((PDFBlockStackingLM) parent).getTextAlign();\n boolean isRightAligned = BidiAlignmentResolver.isRightAligned(root.getContent(), align, lastLine);\n if...
"protected Bundle perform(Bundle extras) throws Exception {\n int friendId = extras.getInt(QBServiceConsts.EXTRA_FRIEND_ID);\n friendListHelper.removeFriend(friendId);\n Bundle result = new Bundle();\n result.putSerializable(QBServiceConsts.EXTRA_FRIEND_ID, friendId);\n return result;\n}\n"
"public boolean equals(Object obj) {\n if (obj == this)\n return true;\n if (obj == null)\n return false;\n if (obj.getClass() != getClass())\n return false;\n GitModelBlob objBlob = (GitModelBlob) obj;\n boolean equalsRemoteId;\n ObjectId objRemoteId = objBlob.remoteId;\n if (...
"private boolean exportJobScript(List<RepositoryNode> nodes, String version, String bundleVersion, IProgressMonitor monitor) {\n manager.setJobVersion(version);\n manager.setBundleVersion(bundleVersion);\n List<ExportFileResource> processes = getProcesses(nodes, \"String_Node_Str\");\n boolean isNotFirstTim...
"private void renderSplineRelation(GL gl, ContentVirtualArray va, HeatMapWrapper heatMapWrapper) {\n float alpha = 0.6f;\n ContentSelectionManager contentSelectionManager = useCase.getContentSelectionManager();\n gl.glColor3f(0, 0, 0);\n for (Integer contentID : va) {\n for (SelectionType type : cont...
"protected boolean transferIsland(final UUID oldOwner, final UUID newOwner) {\n if (players.hasIsland(oldOwner)) {\n Location islandLoc = players.getIslandLocation(oldOwner);\n players.setHasIsland(newOwner, true);\n players.setIslandLocation(newOwner, islandLoc);\n players.setTeamIslandL...
"protected Entity createEntity() {\n Entity ret = new Entity(this.getClass().getName() + \"String_Node_Str\" + cell.getCellID());\n rootNode = createSceneGraph(ret);\n if (cell.getComponent(MovableComponent.class) != null) {\n moveProcessor = new MoveProcessor(ClientContextJME.getWorldManager(), rootNod...
"private void feedNalUnitTargetEnd(long pesTimeUs, int discardPadding) {\n sps.endNalUnit(discardPadding);\n pps.endNalUnit(discardPadding);\n if (sei.endNalUnit(discardPadding)) {\n int unescapedLength = unescapeStream(sei.nalData, sei.nalLength);\n seiReader.read(sei.nalData, 0, unescapedLength...
"public void disconnected(final boolean errorCall) {\n if (SwingUtilities.isEventDispatchThread()) {\n LOGGER.info(\"String_Node_Str\");\n setStatusText(\"String_Node_Str\");\n disableButtons();\n hideGames();\n hideTables();\n } else {\n logger.info(\"String_Node_Str\");...
"public Function getFuntionFromArray(MetadataColumnExt bean, RowGeneratorComponent externalNode, int index) {\n String value = externalNode.getColumnValue(bean, index);\n List<Function> functions = getFunctionByName(bean.getTalendType());\n Function currentFun = getAvailableFunFromValue(bean, value, functions)...
"public void check(RequiresDockerMachine context) throws UnsatisfiedRequirementException {\n String name = context.name();\n try {\n if (name != null && !name.isEmpty()) {\n String ip = commandLineExecutor.execCommand(new String[] { \"String_Node_Str\", \"String_Node_Str\", name });\n ...
"public void setMotionPointData(final byte[] geometry, final byte[] image, final String missionUUID, final String trackNumber, final String trackUUID, final String trackStatus, final String trackClassification, final String trackItemUUID, final String trackPointSource, final long timeStamp, final long endTimeStamp, fin...
"public void handleMessage(Message msg) {\n AsyncResult ar;\n int[] ints;\n String[] strings;\n switch(msg.what) {\n case EVENT_RADIO_AVAILABLE:\n break;\n case EVENT_RUIM_READY:\n isSubscriptionFromRuim = true;\n if (mNeedToRegForRuimLoaded) {\n ...
"public void buildTableStyle(ITableContent table, StringBuffer styleBuffer) {\n addDefaultTableStyles(styleBuffer);\n IStyle style = table.getStyle();\n CSSValue display = style.getProperty(IStyle.STYLE_DISPLAY);\n if (IStyle.NONE_VALUE == display) {\n styleBuffer.append(\"String_Node_Str\");\n } ...
"public void afterRun() {\n mapService.interceptAfterPut(name, dataValue);\n if (eventType == null)\n eventType = dataOldValue == null ? EntryEventType.ADDED : EntryEventType.UPDATED;\n mapService.publishEvent(getCallerAddress(), name, eventType, dataKey, dataOldValue, dataValue);\n invalidateNearCac...
"public static int adminChatToggle(Player player, String[] args) {\n if (!player.canUseCommand(\"String_Node_Str\"))\n return EXIT_FAIL;\n if (!vMinecraftSettings.getInstance().adminChatToggle())\n return EXIT_FAIL;\n if (vMinecraftSettings.getInstance().isAdminToggled(player.getName())) {\n ...
"public static void updateMileageBuffer(FloatBuffer xyBuffer, ByteBuffer flagsBuffer, FloatBuffer mileageBuffer, boolean useInitialMileages, double ppvAspectRatio) {\n int firstVertex = mileageBuffer.position();\n xyBuffer.position(2 * firstVertex);\n flagsBuffer.position(1 * firstVertex);\n float x;\n f...
"public String getValidPrintable(String context, String input, int maxLength, boolean allowNull) throws ValidationException, IntrusionException {\n String canonical = \"String_Node_Str\";\n try {\n canonical = ESAPI.encoder().canonicalize(input);\n return new String(getValidPrintable(context, canoni...
"private void executeTask(Runnable task) {\n NonBlockingIOThread target = getTargetIoThread(task);\n if (target == this) {\n task.run();\n } else {\n target.addTaskAndWakeup(task);\n }\n}\n"
"public void init() throws ComponentInitException {\n Set<NamedClass> usedConcepts;\n Set<NamedClass> allowedConcepts = configurator.getAllowedConcepts() == null ? null : CommonConfigMappings.getAtomicConceptSet(configurator.getAllowedConcepts());\n Set<NamedClass> ignoredConcepts = configurator.getIgnoredConc...