content
stringlengths
40
137k
"private IResultClass mergeResultHint(List modelResultHints, IResultClass meta) {\n if (modelResultHints == null || modelResultHints.isEmpty())\n return meta;\n IResultClass newResultClass;\n try {\n newResultClass = copyResultClass(meta);\n } catch (Exception ex) {\n return meta;\n ...
"protected static void addLogOperation(DgEnvironmentFactory envFactory, boolean addArg) {\n DgOperationInstance doi = new DgOperationInstance();\n doi.setName(\"String_Node_Str\");\n doi.setAnnotationName(\"String_Node_Str\");\n if (addArg) {\n EParameter parm = EcoreFactory.eINSTANCE.createEParamete...
"protected void adaptFormToEditable() {\n super.adaptFormToEditable();\n if (isContextMode()) {\n prefixCombo.setBackground(null);\n } else {\n prefixCombo.setBackground(getShell().getDisplay().getSystemColor(SWT.COLOR_WHITE));\n }\n prefixCombo.setEditable(isContextMode());\n loopTableE...
"public IDataRenderer createPortalRenderer(IApplication app, Portal objToRender, Form dataProviderLookup, IScriptExecuter listner, boolean printing, ControllerUndoManager undoManager) throws Exception {\n List<IPersist> allObjectsAsList = objToRender.getAllObjectsAsList();\n List<IFormElement> formElements = new ...
"public void onData(RealtimeData item) {\n if (item.line.equals(searchLine) && item.destination.equals(searchDestination)) {\n if (routeData.realtimeData == null) {\n routeData.realtimeData = item;\n routeList.notifyDataSetChanged();\n } else {\n routeData.realtimeData....
"public <T extends NewAbstractExtensionElement> List<T> getChildExtensionsOfType(Class<T> type) {\n synchronized (childExtensions) {\n return getChildExtensions().stream().filter(element -> type.isInstance(element)).map(element -> (T) element).collect(Collectors.toList());\n }\n}\n"
"public void eSet(int featureID, Object newValue) {\n if (ConnectionPackage.ABSTRACT_METADATA_OBJECT__LABEL == featureID) {\n setLabelFix((String) newValue);\n return;\n }\n super.eSet(featureID, newValue);\n}\n"
"public int getOutputPowerIndicator() {\n return (memory[REG_TXPOWER] & 0x1f);\n}\n"
"private List<BlockKeyDefinition> convertToList(BlockKeyDefinition[] blockArray) {\n List<BlockKeyDefinition> resultList = new ArrayList<BlockKeyDefinition>();\n for (BlockKeyDefinition blocKey : blockArray) {\n resultList.add(blocKey);\n }\n return resultList;\n}\n"
"private String getEquivalentName(String dbVendor) {\n if (dbVendor.toUpperCase(Locale.getDefault()).startsWith(DATABASE_VENDOR_JAVADB) || dbVendor.equalsIgnoreCase(DATABASE_VENDOR_EMBEDDED_DERBY) || dbVendor.equalsIgnoreCase(DATABASE_VENDOR_EMBEDDED_DERBY_30) || dbVendor.equalsIgnoreCase(DATABASE_VENDOR_DERBY_30) |...
"protected void drawText(String text, float textX, float textY, float baseline, float width, float height, TextStyle textStyle) {\n writer.drawText(text, textX, textY, width + 1f, height, textStyle.getFontInfo(), textStyle.getColor(), textStyle.isRtl(), link);\n}\n"
"public void characters(String value) {\n try {\n if (isStartElementOpen) {\n openAndCloseStartElement();\n isStartElementOpen = false;\n }\n xmlEventWriter.add(xmlEventFactory.createCharacters(value));\n } catch (Exception e) {\n throw XMLMarshalException.marshal...
"public void componentOpened() {\n refreshAllOnce();\n}\n"
"private void processEndOfStream() throws ExoPlaybackException {\n outputStreamEnded = true;\n try {\n audioSink.playToEndOfStream();\n } catch (AudioSink.WriteException e) {\n throw ExoPlaybackException.createForRenderer(e, getIndex());\n }\n}\n"
"private static String createURL(String webappName, String servletName, String report, String format, String resourceFolder, String maxrows, String maxrowlevels, String maxcolumnlevels) {\n String encodedReportName = null;\n try {\n encodedReportName = URLEncoder.encode(report, UTF_8);\n } catch (Unsupp...
"public Rule createRuleFromItemSet(BinaryItemSet itemSet, BinaryItemSet currentSet, double confidance, int suportXY) {\n if (itemSet.getNumberOfAttributes() == 0 || currentSet.getNumberOfAttributes() == 0)\n throw new RuntimeException(\"String_Node_Str\");\n List<Integer> condPart = new LinkedList<Integer>...
"public String list() {\n List<HashMap<String, String>> result = new ArrayList<>();\n List<CamelContext> camelO = WebConsoleComponent.getCamelContexts();\n for (CamelContext cCtx : camelO) {\n for (RouteDefinition rd : cCtx.getRouteDefinitions()) {\n HashMap<String, String> route = new HashMa...
"public ClassificationResult classify(DataHandleInternal handle, int row) {\n return result;\n}\n"
"static StreamHandler getTracingHandler() {\n return TracingHandlerHolder.tracingHandler;\n}\n"
"public void handleTestresultSummaryChanged(final ITestResultSummaryPO summary, DataState state) {\n if (state != DataState.Added) {\n return;\n }\n IProjectPO project = GeneralStorage.getInstance().getProject();\n m_projProps = project.getProjectProperties();\n final boolean reportSuccess = m_pro...
"private static ComponentDefinition createComponentDefinitionData(SBOLDocument SBOL2Doc_test, Set<URI> type, Set<URI> roles, List<String> componentData, Sequence structureData, List<Component> structureInstantiationData, List<SequenceAnnotation> structureAnnotationData, List<SequenceConstraint> structureConstraintData)...
"protected StructureDefinition getDefinition(int line, int col, String name) throws FHIRFormatError {\n if (name == null) {\n logError(line, col, name, IssueType.STRUCTURE, \"String_Node_Str\", IssueSeverity.FATAL);\n return null;\n }\n for (StructureDefinition sd : context.allStructures()) {\n ...
"public void setFeatureStates(String[] argv) {\n for (int i = 0; i < argv.length; i++) {\n String arg = argv[i];\n if (arg.charAt(0) == '-') {\n String option = arg.substring(1);\n String key = option.toLowerCase(Locale.ENGLISH);\n XMLFeatureState feature = (XMLFeatureS...
"private void checkOpen() {\n if (closed) {\n throw DataUtils.newIllegalStateException(DataUtils.ERROR_CLOSED, \"String_Node_Str\", panicException);\n }\n}\n"
"public void addTakeOffAndRTL() {\n if (!mMission.isFirstItemTakeoff()) {\n Altitude defaultAlt = new Altitude(Takeoff.DEFAULT_TAKEOFF_ALTITUDE);\n if (!mMissionItems.isEmpty()) {\n MissionItem firstItem = mMissionItems.get(0).getMissionItem();\n if (firstItem instanceof SpatialCo...
"public FieldMatch resolveField(Name name) {\n for (int i = 0; i < this.parameterCount; i++) {\n IParameter param = this.parameters[i];\n if (param.getName() == name) {\n return param;\n }\n }\n if (this.body != null) {\n IField field = this.body.getProperty(name);\n ...
"public Object load(ICS ics, String resourceName) throws Exception {\n if (!isLoaded) {\n bootEngine(ics, path);\n isLoaded = true;\n }\n if (logger.isDebugEnabled())\n logger.debug(\"String_Node_Str\" + resourceName);\n if (ics.IsElement(resourceName)) {\n final StatementParam p...
"public void formBondsFromStructConn(List<StructConn> structConn) {\n final String symop = \"String_Node_Str\";\n List<Bond> ssbonds = new ArrayList<>();\n for (StructConn conn : structConn) {\n if (!BOND_TYPES_TO_PARSE.contains(conn.getConn_type_id()))\n continue;\n String chainId1;\n...
"public void removeSelectionPaths(int[][] paths) {\n int newPathLength = paths != null ? paths.length : 0;\n if (newPathLength > 0 && !_selections.isEmpty()) {\n for (TreeNode<E> e : getNodesByPath(paths)) {\n if (_selections.containsKey(e)) {\n _selections.remove(e);\n ...
"public int getRangePoints() {\n int points = 1;\n for (InvItem item : inventory.getItems()) {\n ItemWieldableDef def = ItemAttributes.getWieldable(item.id);\n if (item.wielded && def != null) {\n points += def.getRangePoints();\n }\n }\n return points < 1 ? 1 : points;\n}\n"...
"protected boolean readBufferData(final ReadableByteChannel readableByteChannel) throws IOException {\n if (getBuffer() == null) {\n try {\n if (!getDeserializedJobID().equals(this.lastDeserializedJobID) || !getDeserializedSourceID().equals(this.lastDeserializedSourceID)) {\n this.bu...
"public Response removeAttribute(String persistenceUnit, String type, String key, String attribute, HttpHeaders hh, UriInfo ui) {\n return removeAttributeInternal(null, persistenceUnit, type, key, attribute, hh, ui);\n}\n"
"private boolean satisfiesCreationDate(TurboIssue issue) {\n LocalDate creationDate = issue.getCreatedAt().toLocalDate();\n if (date.isPresent()) {\n return creationDate.isEqual(date.get());\n } else if (dateRange.isPresent()) {\n return dateRange.get().encloses(creationDate);\n } else {\n ...
"public void fire() throws CloneNotSupportedException, IllegalActionException {\n DECQDirector dir = (DECQDirector) getDirector();\n output.broadcast(new DoubleToken(_value));\n refireAtTime(_interval);\n}\n"
"public void run() {\n try {\n Bitmap Qrbitmap = BitmapFactory.decodeStream(cr.openInputStream(uri));\n String qrcontent = QRUtils.getInstance().decodeQRcode(Qrbitmap);\n Qrbitmap.recycle();\n Qrbitmap = null;\n System.gc();\n if (!TextUtils.isEmpty(qrcontent)) {\n ...
"protected Object encode(ChannelHandlerContext ctx, Channel channel, Object msg) throws Exception {\n if (!(msg instanceof ServerPacket))\n return msg;\n final ChannelBuffer buffer = ChannelBuffers.dynamicBuffer(ByteOrder.LITTLE_ENDIAN, 10);\n final ServerPacket packet = (ServerPacket) msg;\n buffer....
"private static ItemStack getModule(TileEntity tileEntity) {\n if (tileEntity instanceof StorageTerminalTileEntity) {\n StorageTerminalTileEntity terminalTileEntity = (StorageTerminalTileEntity) tileEntity;\n return terminalTileEntity.getStackInSlot(StorageTerminalContainer.SLOT_MODULE);\n }\n re...
"public void render() {\n super.render();\n updateCameraParameters();\n if (SHOW_PLACING_BOX) {\n if (_selectedBlock != null) {\n Block block = BlockManager.getInstance().getBlock(_parent.getWorldProvider().getBlockAtPosition(_selectedBlock.getBlockPosition().toVector3d()));\n if (...
"protected Map<ByteBuffer, Map<String, List<Mutation>>> prepareMutation(EntityMetadata entityMetadata, Object entity, Object id, List<RelationHolder> relationHolders, Map<ByteBuffer, Map<String, List<Mutation>>> mutationMap) {\n if (!isOpen()) {\n throw new PersistenceException(\"String_Node_Str\");\n }\n ...
"public Set<BoardCoordinate> getCapturingMovesFrom(BoardCoordinate startLocation, BoardSize boardSize) {\n return getMovesFromImpl(startLocation, boardSize, mCapturingMovements);\n}\n"
"protected Char chooseEnemy() {\n if (beamCharged && enemy != null)\n return enemy;\n return super.chooseEnemy();\n}\n"
"public void testUnrelateFromAll() throws OseeCoreException {\n ArtifactReadable artifact1 = null;\n ArtifactReadable artifact2 = null;\n ArtifactReadable artifact3 = null;\n ArtifactReadable artifact4 = null;\n TransactionBuilder tx1 = createTx();\n ArtifactId art1 = tx1.createArtifact(Component, \"S...
"public boolean next() throws SQLException {\n if (closed) {\n throw new SQLException(\"String_Node_Str\");\n }\n if (iterators != null && iterators.hasNext()) {\n currentRow = iterators.next();\n return true;\n }\n return false;\n}\n"
"public void handleRequest(HttpServerExchange exchange, RequestContext context) throws Exception {\n FormDataParser parser = this.formParserFactory.createParser(exchange);\n FormData data = parser.parseBlocking();\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"String_Node_Str\");\n data.forEac...
"public String getLogo() {\n return logo;\n}\n"
"public void bindView(View view, Context context, Cursor cursor) {\n CheckedTextView text = (CheckedTextView) view.findViewById(R.id.text1);\n text.setText(cursor.getString(mLabelIndex));\n listView.setItemChecked(cursor.getPosition() + listView.getHeaderViewsCount(), cursor.getInt(mIsCheckedIndex) == 1);\n}\n...
"protected void okPressed() {\n if (noUseProjectSettingsButton.getSelection()) {\n setOptionValue(\"String_Node_Str\");\n if (updateProjectSettingsButton.getSelection())\n setOptionValue(\"String_Node_Str\");\n super.okPressed();\n}\n"
"private void load() {\n String contextPath = portletWindow.getContextPath();\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\" + context);\n }\n ServletContext ctx = this.ctx.getContext(context);\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\" + ctx);\n }\n ...
"public void add(int index, E element) {\n new AddToList<E>(list, element, index, listName);\n}\n"
"public void notifyDataSetChanged() {\n if (modified && !runningTransaction) {\n dataChangedEvent.raiseEvent(this, this);\n }\n modified = false;\n}\n"
"public static void initBotaniaCrops() {\n if (ModIntegration.LoadedMods.botania && ConfigurationHandler.integration_Botania) {\n botaniaWhite = new BlockModPlant(ModItems.petal, 0, 3, 1);\n botaniaOrange = new BlockModPlant(ModItems.petal, 1, 3, 1);\n botaniaMagenta = new BlockModPlant(ModItems...
"private void saveToCache(InputStream is, File to) {\n logger.info(\"String_Node_Str\" + to.getAbsolutePath());\n FileOutputStream fs = null;\n int times = 0;\n try {\n if (to.exists()) {\n to.delete();\n }\n fs = new FileOutputStream(to);\n int byteRead = 0;\n ...
"public BigDecimal getBalance() {\n if (this.transactionInfoService == null) {\n throw new IllegalStateException(\"String_Node_Str\");\n }\n Collection<BankTransaction> transactions = this.transactionInfoService.getLastTransactions(this.ownerId, this.lastTimestamp);\n if (!transactions.isEmpty()) {\n...
"public String getName() {\n return NbBundle.getMessage(IntraEdgesBuilder.class, \"String_Node_Str\") + \"String_Node_Str\" + partition.getColumn().getTitle() + \"String_Node_Str\";\n}\n"
"private void constantForName(String cls, SootMethod src, Stmt srcUnit) {\n if (cls.charAt(0) == '[') {\n if (cls.charAt(1) == 'L' && cls.charAt(cls.length() - 1) == ';') {\n cls = cls.substring(2, cls.length() - 1);\n constantForName(cls, src, srcUnit);\n }\n } else {\n ...
"public boolean hitEntity(ItemStack stack, EntityLivingBase damaged, EntityLivingBase damager) {\n if (!(damager instanceof EntityPlayer)) {\n return false;\n }\n DamageSource dmg = DamageSource.causePlayerDamage((EntityPlayer) damager);\n byte charge = this.getCharge(stack);\n float totalDmg = 14...
"private void getAttributeAndVerify(final String domain, String bean, final String attribute, final String expectedBean, final Object expectedValue) {\n command.setDomain(domain);\n command.setBean(bean);\n command.setAttributes(Arrays.asList(attribute));\n command.setSimpleFormat(true);\n final MBeanSer...
"public void processAnswer(VMOperationListener listener, long agentId, long seq, Answer answer) {\n UserVmVO vm = listener.getVm();\n VMOperationParam param = listener.getParam();\n AsyncJobManager asyncMgr = getAsyncJobMgr();\n ManagementServer managementServer = asyncMgr.getExecutorContext().getManagement...
"protected Object call() throws Exception {\n endpoint.setClientStatistics(parameters.stats);\n return null;\n}\n"
"public void testApplication() throws Exception {\n Skype.setDebug(true);\n Application application = Skype.addApplication(APPLICATION_NAME);\n Friend friend = TestData.getFriend();\n checkConnectableFriendsBeforeConnecting(application);\n try {\n Stream[] streams = application.connect(friend);\n ...
"private static void initialize(InputStream is) throws MetaDataReaderException {\n try {\n if (!isInitialized.booleanValue())\n MetaDataReader.read(is);\n if (!MetaDataDictionary.getInstance().isIntializedExtension())\n MetaDataDictionary.intializeExtension();\n if (!isInit...
"public boolean apply(final VmInfo runVm) {\n if (!Entities.isPersistent(VmInstance.this)) {\n throw new TransientEntityException(this.toString());\n } else {\n final EntityTransaction db = Entities.get(VmInstance.class);\n try {\n final VmState runVmState = VmState.Mapper.get(runV...
"public static CmdResult run(String cmd, File dir) throws CommandLineException, AbnormalProcessTerminationException {\n logger.trace_function();\n logger.debug(\"String_Node_Str\" + cmd);\n String[] cmds = new String[3];\n cmds[0] = \"String_Node_Str\";\n cmds[1] = \"String_Node_Str\";\n cmds[2] = cmd...
"public void removeSession(ServerSession session) {\n log.info(\"String_Node_Str\", session.getTransportId());\n sessions.remove(session.getTransportId());\n}\n"
"private Integer doSend() throws Exception {\n if (message == null) {\n this.progress.incrFailed();\n return 0;\n }\n if (message.getClients() == null || message.getClients().size() == 0) {\n this.progress.incrFailed();\n logger.error(\"String_Node_Str\", message);\n return 0...
"List<Redirect> generateRedirects(String key, List<String> registryUrls) {\n List<Redirect> redirects = new ArrayList<Redirect>();\n if (!validateKey(key) || !removeEmptyUrlsAndValidate(registryUrls)) {\n return redirects;\n }\n key = StringUtils.lowerCase(key);\n String[] splits = StringUtils.spl...
"public List<MenuItem> layoutMenuItems(List<MenuItem> menuItems, int suggestedWidth) {\n Preconditions.checkNotNull(menuItems);\n final int toolbarWidth = width - getEstimatedOpenOverflowButtonWidth(mContext);\n int availableWidth = toolbarWidth;\n final LinkedList<MenuItem> remainingMenuItems = new LinkedL...
"protected void drawImage(IImageArea image) {\n int imageX = currentX + getX(image);\n int imageY = currentY + getY(image);\n int height = getHeight(image);\n int width = getWidth(image);\n String helpText = image.getHelpText();\n try {\n byte[] data = image.getImageData();\n String exte...
"protected double getDecisionVariableValue(final int decisionVariable) {\n int col = getNumObjectiveFunctions() + decisionVariable;\n Integer basicRow = getBasicRow(col);\n if (basicRow == null) {\n return 0;\n }\n for (int i = getNumObjectiveFunctions(); i < col; i++) {\n if (tableau.getEn...
"public String getObject() {\n if (idx == 0) {\n style.append(\"String_Node_Str\").append(borderDef);\n } else if (idx == WebCellBasedView.this.visibleColummIdentifierComponents.size() - 1) {\n return \"String_Node_Str\";\n }\n return \"String_Node_Str\";\n}\n"
"public void addIncomingMessageWrapper(M1 message) {\n inMsgs.add(makeCloneOf(message, incomingMessageClass));\n}\n"
"public boolean checkAscension(Player player, double y1, double y2) {\n if (!isMovingExempt(player) && player.getLocation().getBlock().getType() != Material.WATER && player.getLocation().getBlock().getType() != Material.STATIONARY_WATER && !Utilities.isOnLadder(player)) {\n String name = player.getName();\n ...
"private void createLayout(LayoutManager layoutManager, boolean isHighlightLayout) {\n Row baseRow = new Row(\"String_Node_Str\");\n layoutManager.setBaseElementLayout(baseRow);\n if ((contextualTablePerspectives == null || contextualTablePerspectives.isEmpty()) && (geneTablePerspectives == null || geneTablePe...
"private static void addDefaultParam(final Column column) {\n column.setFunction(\"String_Node_Str\");\n final List<Parameter> params = new ArrayList<>();\n final Parameter param = new Parameter();\n param.setName(\"String_Node_Str\");\n param.setValue(table + \"String_Node_Str\" + column.getName() + \"S...
"public static ContentValues getContentValuesFromScreenshot(Screenshot screenshot) {\n ContentValues values = new ContentValues();\n if (screenshot.getTitle() != null) {\n values.put(ScreenshotContract.Screenshot.TITLE, screenshot.getTitle());\n if (screenshot.getUrl() != null)\n values.put(Scree...
"public void testIsContainsTableConnectionCatalogString() {\n String catalogName = \"String_Node_Str\";\n String tablePattern = null;\n boolean containsTable = false;\n Connection dataProvider = null;\n DatabaseMetaData metaData = null;\n java.sql.Connection sqlConn = null;\n Catalog catalog = null...
"protected Map<String, String> doInBackground() throws Exception {\n return NodeViewerMetaData.this.zooInspectorManager.getNodeMeta(selectedNode);\n}\n"
"protected Object remove(Page p, long writeVersion, Object key) {\n int index = p.binarySearch(key);\n Object result = null;\n if (p.isLeaf()) {\n if (index >= 0) {\n result = p.getValue(index);\n p.remove(index);\n }\n return result;\n }\n if (index < 0) {\n ...
"private boolean isSameGroupName(Query query, String groupName) {\n if (query instanceof BooleanQuery) {\n BooleanQuery booleanQuery = (BooleanQuery) query;\n for (BooleanClause clause : booleanQuery.clauses()) {\n if (!isSameGroupName(clause.getQuery(), groupName)) {\n return...
"public double[] pixelFromGeo(final double lon, final double lat) throws GeoLocationException {\n double[] resultReverse = new double[2];\n double[] pXYZ = GeoUtils.convertFromGeoToEarthCentred(lat, lon);\n Double[] dd2 = (Double[]) orbitInterpolation.getTimeStampInterp().toArray(new Double[0]);\n double[] ...
"public void onNodeDragEnd(NodeDragEndEvent event) {\n int i = 0;\n for (WiresShape shape : m_selectionManager.m_selected.m_shapes) {\n shape.setX(m_shapeStartLocations.get(i++) + event.getDragContext().getDx());\n shape.setY(m_shapeStartLocations.get(i++) + event.getDragContext().getDy());\n ...
"public void anonymize(String propertyFile) {\n Configuration configuration = null;\n try {\n configuration = new PropertiesConfiguration(propertyFile);\n } catch (ConfigurationException ex) {\n log.error(ColumnDiscoverer.class);\n }\n String driver = configuration.getString(\"String_Node_S...
"public void restoreView(AggregationCellHandle cell) {\n try {\n Chart cm = ChartReportItemUtil.getChartFromHandle(getChartHandle(cell));\n ChartXTabUtil.removeAxisChartInXTab(cell, cm);\n } catch (BirtException e) {\n ExceptionHandler.handle(e);\n }\n}\n"
"public String[][] generateFwRules() {\n String[][] result = new String[2][];\n Set<String> toAdd = new HashSet<String>();\n for (FirewallRuleTO fwTO : rules) {\n if (fwTO.revoked() == true) {\n StringBuilder sb = new StringBuilder();\n sb.append(fwTO.getSrcIp()).append(\"String_No...
"public String readRawValue() {\n int start = lastPos;\n while (start < length && jsop.charAt(start) <= ' ') {\n start++;\n }\n skipRawValue();\n return jsop.substring(start, lastPos);\n}\n"
"public void findDefinitions_shouldFindDefinitionsForRegimen() {\n DrugOrder lamivudine = new DrugOrder();\n lamivudine.setConcept(Context.getConceptService().getConcept(78643));\n lamivudine.setDose(150d);\n lamivudine.setUnits(\"String_Node_Str\");\n lamivudine.setFrequency(\"String_Node_Str\");\n D...
"public void insertFloatTest() throws ConnectorException {\n ClusterName clusterName = getClusterName();\n TableMetadataBuilder tableMetadataBuilder = new TableMetadataBuilder(CATALOG, TABLE, clusterName.getName());\n TableMetadata tableMetadata = tableMetadataBuilder.addColumn(FLOAT_COLUMN, ColumnType.FLOAT)....
"public static ClusterCreate createDefaultSpec(ClusterType type, String vendor, String distroVersion, String appManagerType) throws FileNotFoundException {\n if (vendor.trim().equalsIgnoreCase(Constants.MAPR_VENDOR)) {\n switch(type) {\n case HDFS_MAPRED:\n return loadFromFile(locate...
"private void addLevelMemberSql(SqlQuery sqlQuery, RolapLevel level, Map<RolapLevel, RolapStar.Column> levelToColumnMap, Map<String, RolapStar.Table> relationNamesToStarTableMap, WhichSelect whichSelect) {\n RolapHierarchy hierarchy = level.getHierarchy();\n RolapLevel[] levels = (RolapLevel[]) hierarchy.getLevel...
"private double distributeTo(List<Content> available, double size) {\n if (available.isEmpty()) {\n return size;\n }\n size = horizontal ? snapSizeX(size) : snapSizeY(size);\n int portion = (int) (size) / available.size();\n int remainder;\n while (size > 0 && !available.isEmpty()) {\n I...
"private void update() {\n NamedThing property = getSubProperties().getProperty(getParameterName());\n if (property != null && property instanceof Property) {\n List<?> values = ((Property) property).getPossibleValues();\n if (values != null) {\n this.setPossibleValues(values);\n }...
"private void declareStyle(StyleEntry style, int id) {\n boolean wrapText = context.getWrappingText();\n String whiteSpace = (String) style.getProperty(StyleConstant.WHITE_SPACE);\n if (CSSConstants.CSS_NOWRAP_VALUE.equals(whiteSpace)) {\n wrapText = false;\n }\n writer.openTag(\"String_Node_Str\"...
"public Cursor query() {\n Cursor cursor = null;\n String query = getQuery();\n if (mWhereBase.getQueryBuilderBase() instanceof Select) {\n cursor = mManager.getWritableDatabase().rawQuery(query, null);\n } else {\n mManager.getWritableDatabase().execSQL(query);\n }\n return cursor;\n}\n...
"protected boolean resize(AjaxRequestTarget target) {\n Request request = RequestCycle.get().getRequest();\n bounds.width = Utils.getAsInteger(request.getParameter(\"String_Node_Str\"));\n bounds.height = Utils.getAsInteger(request.getParameter(\"String_Node_Str\"));\n return !(\"String_Node_Str\".equals(re...
"private void doInvokeRemote() {\n operationService.registerInvocation(this);\n boolean sent = operationService.send(op, invTarget);\n if (!sent) {\n operationService.deregisterInvocation(this);\n notify(new RetryableIOException(\"String_Node_Str\" + invTarget));\n }\n}\n"
"public Response<Void> agentCheckDeregister(String checkId) {\n RawResponse rawResponse = rawClient.makePutRequest(\"String_Node_Str\" + checkId);\n if (rawResponse.getStatusCode() == 200) {\n return new Response<Void>(null, rawResponse);\n } else {\n throw new OperationException(rawResponse);\n ...
"public String awaitAccessToken(String foursquareAuthorizationCode) {\n Uri.Builder uriBuilder = Uri.parse(getString(R.string.gf_api_base_url)).buildUpon().appendEncodedPath(getString(R.string.gf_api_users_path)).appendEncodedPath(getString(R.string.gf_api_users_register_with_foursquare_path));\n if (foursquareAu...
"public static long readLongFromFile(File file) throws IOException {\n try (FileInputStream fis = new FileInputStream(file);\n BufferedReader br = new BufferedReader(new InputStreamReader(fis, Charset.forName(\"String_Node_Str\")))) {\n long value = Long.parseLong(br.readLine());\n return value;...
"protected void onResume() {\n super.onResume();\n Cursor cursor = getContentResolver().query(getListContentUri(), Shuffle.Contexts.cFullTaskProjection, null, null, null);\n mTaskCountArray = BindingUtils.readCountArray(cursor);\n cursor.close();\n}\n"
"private void changeForMultipleMergeComponents(INode graphicalNode) {\n String hashMergeOutput = \"String_Node_Str\";\n String hashMergeInput = \"String_Node_Str\";\n INode mergeDataNode = buildCheckMap.get(graphicalNode);\n IComponent hashMergeOutputComponent = ComponentsFactoryProvider.getInstance().get(h...