content stringlengths 40 137k |
|---|
"protected void processRequest(Object request, final RP rp) throws Exception {\n Class reqClass = request.getClass();\n if (reqClass == ProcessBlock.class) {\n ProcessBlock req = (ProcessBlock) request;\n Block block = req.block;\n block.setCurrentPosition(currentPosition);\n forcedWri... |
"public void writeData(String tableName, EntityMetadata m, EnhancedEntity e) throws IOException {\n List<SuperColumn> columnFamilies = m.getSuperColumnsAsList();\n for (SuperColumn columnFamily : columnFamilies) {\n String columnFamilyName = columnFamily.getName();\n Field columnFamilyField = column... |
"public synchronized void AddSplit(String[] segs) {\n if (!fileopen)\n this.OpenFQHandle();\n String nl = System.lineSeparator();\n String rn1 = \"String_Node_Str\" + segs[2] + \"String_Node_Str\";\n String rn2 = \"String_Node_Str\" + segs[2] + \"String_Node_Str\";\n int len = segs[11].length();\n... |
"public V get(long l, TimeUnit tu) throws InterruptedException, TimeoutException, ExecutionException {\n if (!isDone() && !isCancelled()) {\n boolean expired = false;\n if (l == -1) {\n latch.await();\n } else {\n failed = !latch.await(l, tu);\n if (responseTimeo... |
"private void checkPage() {\n final String dstpath = directoryText.getText();\n if (dstpath.length() == 0) {\n setErrorMessage(UIText.CloneDestinationPage_errorDirectoryRequired);\n setPageComplete(false);\n return;\n }\n final File absoluteFile = new File(dstpath).getAbsoluteFile();\n ... |
"public void run(TurkishWordParserGenerator parser) throws IOException {\n String input;\n System.out.println(\"String_Node_Str\");\n Scanner sc = new Scanner(System.in);\n input = sc.nextLine();\n while (!input.equals(\"String_Node_Str\") && !input.equals(\"String_Node_Str\")) {\n List<MorphParse... |
"public Object convertDataValueToObjectValue(Object dataValue, Session session) {\n Object result = null;\n try {\n result = PrivilegedAccessHelper.invokeMethod(fromStringMethod, enumClass, new Object[] { dataValue });\n } catch (Exception ex) {\n throw XMLMarshalException.errorInvokingFromString... |
"public void onNPCRightCLick(NPCRightClickEvent event) {\n if (!isEconomyNpc(event.getNPC()))\n return;\n CitizensTrader.getInstance();\n if (CitizensTrader.getDenizen() != null && CitizensTrader.getDenizen().getDenizenNPCRegistry().isDenizenNPC(event.getNPC()))\n return;\n Player player = eve... |
"protected static Function2D getFunction2D(int attIndex1, int attIndex2, int[] v1, int v2, double[] predInt) {\n double[] splits1 = null;\n double[] splits2 = new double[] { v2, Double.POSITIVE_INFINITY };\n double[][] predictions = null;\n if (v1[0] < v1[1]) {\n splits1 = new double[] { v1[0] + 0.5,... |
"public void setComments(String comments) {\n this.comments = (comments == null ? null : comments.trim());\n}\n"
|
"public LContinue leaveEndpointGraphBuilding(ScribNode parent, ScribNode child, EndpointGraphBuilder graph, ScribNode visited) throws ScribbleException {\n LContinue lr = (LContinue) visited;\n RecVar rv = lr.recvar.toName();\n if (graph.builder.isUnguardedInChoice()) {\n graph.builder.addContinueEdge(g... |
"public List<? extends IElementParameter> createElementParameters(INode node) {\n List<IElementParameter> listParam = new ArrayList<IElementParameter>();\n ElementParameter param = new ElementParameter(node);\n param.setName(EParameterName.UNIQUE_NAME.getName());\n param.setValue(\"String_Node_Str\");\n ... |
"public Void call() throws IOException, APIException {\n APISession api = apiSession.get();\n if (null != api) {\n Logger.debug(\"String_Node_Str\" + openFileHandler.get());\n if (openFileHandler.get() >= CHECKOUT_TRESHOLD) {\n Logger.debug(\"String_Node_Str\" + api.toString() + \"String_... |
"protected TimeValue computeNext() {\n if (currentTs == Long.MAX_VALUE) {\n return endOfData();\n }\n boolean atEnd = true;\n int currentTsValue = 0;\n Iterator<BiDirectionalPeekingIterator> timeseriesIter = timeseriesList.iterator();\n while (timeseriesIter.hasNext()) {\n BiDirectionalP... |
"public ArrayList<GLHeatMap> getHeatMaps() {\n ArrayList<GLHeatMap> heatMaps = new ArrayList<GLHeatMap>();\n for (Group group : selectedGroups.keySet()) {\n GLHeatMap heatMap = hashHeatMaps.get(group.getGroupIndex());\n heatMaps.add(heatMap);\n }\n return hashHeatMaps.values();\n}\n"
|
"public IBreakpoint[] setBreakpoints(String source, IBreakpoint[] breakpoints, boolean sourceModified) {\n List<IBreakpoint> result = new ArrayList<>();\n HashMap<String, IBreakpoint> breakpointMap = this.sourceToBreakpoints.get(source);\n if (sourceModified && breakpointMap != null) {\n for (IBreakpoin... |
"protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n String url = \"String_Node_Str\";\n new GetBuilder().mName(\"String_Node_Str\").folder(new File(\"String_Node_Str\")).uri(url).build().execute(this, new FileCallBack() {\np... |
"public void testGetBlob1() throws Exception {\n expect(mockStore.getId()).andReturn(new URI(\"String_Node_Str\")).times(3);\n replay(mockStore, mockFs);\n HDFSBlobStoreConnection connection = new HDFSBlobStoreConnection(mockStore);\n HDFSBlob b = (HDFSBlob) connection.getBlob(new URI(\"String_Node_Str\"), ... |
"public void run(final CommandSender cs, String label, String[] args) {\n if (!r.perm(cs, \"String_Node_Str\", false, true)) {\n return;\n }\n if (!r.isPlayer(cs)) {\n return;\n }\n if (!r.checkArgs(args, 0)) {\n r.sendMes(cs, \"String_Node_Str\");\n return;\n }\n Player... |
"protected void consume(DefaultHttpSession session) {\n if (session.isReadSuspended()) {\n return;\n }\n Queue<IoBufferEx> deferredReads = session.getDeferredReads();\n IoBufferEx buffer;\n while ((buffer = deferredReads.poll()) != null) {\n if (buffer.hasRemaining()) {\n IoFilte... |
"private void dispatchQueueEmpty() {\n synchronized (listeners) {\n for (int i = listeners.size() - 1; i >= 0; i--) {\n JobHandlerListener listener = listeners.get(i);\n listener.onQueueEmpty();\n }\n }\n}\n"
|
"public Object render(final ContactModelDTO model, final String property, final ColumnData config, final int rowIndex, final int colIndex, final ListStore<ContactModelDTO> store, final Grid<ContactModelDTO> grid) {\n ContactModelType type = model.get(property);\n String typeLabel = I18N.CONSTANTS.contactTypeIndiv... |
"public void onInteract(PlayerInteractEntityEvent event) {\n Entity entity = event.getRightClicked();\n if (!entity.hasMetadata(GlobalValues.METATAG)) {\n return;\n }\n if (entity.hasMetadata(GlobalValues.CURRENTLY_BREEDING) && entity.getMetadata(GlobalValues.CURRENTLY_BREEDING).get(0).asBoolean()) {... |
"public Void doInBackground() {\n ComponentManager cm = ComponentManager.getInstance();\n URL endpointURL = null;\n try {\n endpointURL = new URL(comboBox.getSelectedItem().toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n List<String> defaultGraphURIS = new... |
"void onAmountChanged(Editable editable) {\n amountTextView.setText(editable);\n transferViewModel.transferAmount.setValue(editable.toString());\n}\n"
|
"public boolean executeExample(String[] args) throws Exception {\n CommandLine cmd = parser.parse(options, args);\n ConfigurationProperties.properties.setProperty(\"String_Node_Str\", \"String_Node_Str\");\n String dependenciespath = null, folder = null, failing = null, location = null, packageToInstrument = n... |
"public void testScannedPaths() throws Exception {\n File fileA = null, fileB = null;\n String filenameA, filenameB, fileRegex;\n String tempPath = \"String_Node_Str\";\n ScannedPaths sc;\n Iterator<String> iter = null;\n try {\n filenameA = \"String_Node_Str\";\n filenameB = \"String_No... |
"public CustomXmlEvent extractEvent(Element element, InputElement inputElement) {\n CustomXmlEvent event = new CustomXmlEvent(fDefinition, this, TmfTimestamp.ZERO, \"String_Node_Str\", fEventType, \"String_Node_Str\");\n event.setContent(new CustomEventContent(event, \"String_Node_Str\"));\n parseElement(eleme... |
"public int getActionBarHideOffset() {\n return mActionBarTop != null ? -((int) mActionBarTop.getTranslationY()) : 0;\n}\n"
|
"public boolean isSquareWalkable(int i, int j) {\n Element element = this.getElements().get(j * this.cols + i);\n if (element == null) {\n return true;\n }\n return element.isWalkable();\n}\n"
|
"private String getStyleClass(SocialButton sb) {\n String sClass = sb.getStyleClass();\n if (sClass == null)\n sClass = \"String_Node_Str\";\n sClass += \"String_Node_Str\";\n if (sb.isIconOnly())\n sClass += \"String_Node_Str\";\n sClass += (\"String_Node_Str\" + sb.getSocial());\n sCla... |
"private void refresh(JTable table, String[] cols) {\n for (int i = 0; i < cols.length; i++) {\n table.setValueAt(cols[i], 0, i);\n }\n DefaultTableModel tableModel = (DefaultTableModel) table.getModel();\n tableModel.setRowCount(1);\n TableColumn tcol = table.getColumnModel().getColumn(3);\n t... |
"public DmvSolution getProjectedDmvSolution(RelaxedDmvSolution relaxSol) {\n if (!relaxSol.getStatus().hasSolution()) {\n return null;\n }\n double[][] logProbs = Utilities.copyOf(relaxSol.getLogProbs());\n for (int c = 0; c < logProbs.length; c++) {\n double[] probs = Vectors.getExp(logProbs[... |
"public static boolean checkAttributeModelName(String name) {\n if (name == null || name.trim().isEmpty()) {\n throw new IllegalNameException(\"String_Node_Str\");\n }\n if (name.matches(\"String_Node_Str\")) {\n return true;\n } else {\n return false;\n }\n}\n"
|
"private void resetFile(String file) {\n File f = new File(file);\n if (f.exists()) {\n JMetalLogger.logger.info(\"String_Node_Str\" + file + \"String_Node_Str\");\n if (f.isDirectory()) {\n System.out.println(\"String_Node_Str\" + file + \"String_Node_Str\");\n if (f.delete())... |
"public static URL getCanonicalURL(String href, String context) {\n try {\n URI normalized;\n if (context != null) {\n normalized = new URI(context);\n if (normalized.getPath().equals(\"String_Node_Str\"))\n context += \"String_Node_Str\";\n normalized = ... |
"public void endElement(XPathFragment xPathFragment, UnmarshalRecord unmarshalRecord) {\n unmarshalRecord.removeNullCapableValue(this);\n UnmarshalRecord childRecord = unmarshalRecord.getChildRecord();\n if (null != childRecord) {\n Object childObject = childRecord.getCurrentObject();\n if (xmlAn... |
"public void process() throws Throwable {\n try {\n String env = getEnv();\n this.assetFile = new File(getOutput(), \"String_Node_Str\" + env + \"String_Node_Str\");\n new JoobyContainer(getProject()).run(getMainClassName(), (app, conf) -> compile(getLogger(), app.getClass().getClassLoader(), en... |
"private void generateGettersForAccessedFields() {\n AST contextAST = sourceTypeDeclaration.getAST();\n Set<VariableDeclarationFragment> accessedFields = new LinkedHashSet<VariableDeclarationFragment>();\n accessedFields.addAll(typeCheckElimination.getAccessedFields());\n accessedFields.addAll(typeCheckElim... |
"private void deleteIndicatorItems(TableIndicator tableIndicator) {\n for (TableIndicatorUnit indiUnit : tableIndicator.getIndicatorUnits()) {\n deleteIndicatorAideItems(tableIndicator, indiUnit);\n tableIndicator.removeIndicatorUnit(indiUnit);\n this.indicatorTreeItemMap.remove(indiUnit);\n ... |
"public boolean putCardsOnBottomOfLibrary(Cards cardsToLibrary, Game game, Ability source, boolean anyOrder) {\n if (!cardsToLibrary.isEmpty()) {\n Cards cards = new CardsImpl(cardsToLibrary);\n if (!anyOrder) {\n while (!cards.isEmpty()) {\n UUID cardId = cards.getRandom(game... |
"public void buildImageStyle(IImageContent image, StringBuffer styleBuffer, int display) {\n buildSize(styleBuffer, HTMLTags.ATTR_WIDTH, image.getWidth());\n buildSize(styleBuffer, HTMLTags.ATTR_HEIGHT, image.getHeight());\n setDisplayProperty(display, 0, styleBuffer);\n IStyle style = image.getStyle();\n ... |
"private static final DataFile defineWorkingDirectory(final AbstractWorkflow workflow, final Step step, final boolean copyResultsToOutput) {\n final boolean hadoopMode = EoulsanRuntime.getRuntime().isHadoopMode();\n if (!hadoopMode) {\n if (copyResultsToOutput)\n return workflow.getOutputDir();\... |
"public boolean extractValues(boolean primaryKeyOnly, boolean requireExactMatch, ClassDescriptor descriptor, AbstractRecord primaryKeyRow, AbstractRecord translationRow) {\n if (requireExactMatch && (!(this.operator.getSelector() == ExpressionOperator.Equal))) {\n return false;\n }\n if ((!requireExactM... |
"public static void main(final String[] args) throws Exception {\n if (args.length < 1 || args.length > 2) {\n System.err.println(\"String_Node_Str\");\n printUsage();\n return;\n }\n final int port = Integer.parseInt(args[0]);\n if (port <= 0 || port >= MAX_PORT) {\n System.err.... |
"public void handle() throws Exception {\n Class handlerClass = MvcHandlerTest.class;\n MvcHandlerTest handler = new MvcHandlerTest();\n Method method = handlerClass.getDeclaredMethod(\"String_Node_Str\");\n new MockUnit(RequestParamProvider.class, Request.class, Response.class).expect(unit -> {\n Re... |
"public void checkNoNotify() throws InterruptedException {\n WaitUtil.implicitlyWait(5);\n LogUtil.printCurrentMethodName();\n AndroidElement element = mDriver.findElementById(\"String_Node_Str\");\n if (element != null)\n element.click();\n WaitUtil.forceWait(1);\n}\n"
|
"public static void handleOperation(Operation operation, ViewerAttributeBean bean, Map parameterMap, Map displayTexts) throws Exception {\n if (operation == null || bean == null || parameterMap == null || displayTexts == null)\n return;\n List locs = new ArrayList();\n Map params = new HashMap();\n S... |
"public ArrayList<DownloadLink> decryptIt(CryptedLink param) throws Exception {\n String parameter = param.toString().trim();\n br.setCookiesExclusive(true);\n br.clearCookies(\"String_Node_Str\");\n br.getPage(\"String_Node_Str\");\n ArrayList<DownloadLink> decryptedLinks = new ArrayList<DownloadLink>()... |
"public static Sequence<String> lines(Reader reader) {\n return Streams.lines(reader).memorise();\n}\n"
|
"protected ArrayList<FileHeader> doInBackground(File... params) {\n ArrayList<FileHeader> elements = new ArrayList<>();\n try {\n ArrayList<FileHeader> elements = new ArrayList<>();\n Archive zipfile = new Archive(new File(fileLocation));\n String relativeDirDiffSeparator = relativeDirectory.... |
"public LinkedList<Tuple<Short, ShortPoint2D>> getPartitionsList() {\n LinkedList<Tuple<Short, ShortPoint2D>> resultList = new LinkedList<Tuple<Short, ShortPoint2D>>();\n resultList.addAll(partitionsList);\n if (resultList.size() >= 2 && resultList.getFirst().e1.equals(resultList.getLast().e1)) {\n resu... |
"private GitLabClient buildClient(String url, String apiToken, Class<? extends GitLabApi> proxyClass, ProxyConfiguration httpProxyConfig, boolean ignoreCertificateErrors, int connectionTimeout, int readTimeout) {\n ResteasyClientBuilder builder = new ResteasyClientBuilder();\n if (ignoreCertificateErrors) {\n ... |
"public void fire() throws IllegalActionException {\n try {\n if (_debugging) {\n _debug(\"String_Node_Str\");\n }\n Nameable container = getContainer();\n Iterator<?> actors = ((CompositeActor) container).deepEntityList().iterator();\n LinkedList<MetroIIActorThread> act... |
"public static URL specToURL(String spec) throws IOException {\n URL specURL = null;\n try {\n specURL = new URL(null, spec);\n InputStream urlStream = specURL.openStream();\n urlStream.close();\n return specURL;\n } catch (Exception ex) {\n try {\n File file = new... |
"public void setNodeProperty(long batchId, String property, Object value) {\n try {\n if (!ignoreProperty(value)) {\n inserter.setNodeProperty(batchId, property, value);\n Map<String, Object> indexProperties = collectIndexProperties(inserter.getNodeProperties(batchId));\n if (... |
"protected <E> List<E> getColumnsByIdUsingCql(String schemaName, String tableName, String pKeyColumnName, String columnName, Object pKeyColumnValue, Class columnJavaType) {\n List results = new ArrayList();\n CQLTranslator translator = new CQLTranslator();\n String selectQuery = translator.SELECT_QUERY;\n s... |
"public HttpEntity sendToServer(List<NameValuePair> qparams, String strAPIUrl) throws paloexception {\n try {\n URI uri = URIUtils.createURI(\"String_Node_Str\", strServer, Integer.valueOf(strPort), strAPIUrl, URLEncodedUtils.format(qparams, \"String_Node_Str\"), null);\n HttpGet req = new HttpGet(uri)... |
"public void execute(Hero hero, String action) {\n if (action.equals(AC_CAST)) {\n curUser = hero;\n if (!isEquipped(hero)) {\n GLog.i(Messages.get(Artifact.class, \"String_Node_Str\"));\n else if (charge < 1)\n GLog.i(Messages.get(this, \"String_Node_Str\"));\n else... |
"private void getSpecificSchema(String schemaName) {\n if (!isPageInitialization) {\n if (schemaName.equals(JdbcPlugin.getResourceString(\"String_Node_Str\")) || schemaName.trim().length() == 0) {\n getAvailableSchema();\n setMessage(DEFAULT_MESSAGE);\n return;\n }\n ... |
"public boolean apply(Permanent input, Game game) {\n if (counter == null) {\n return !input.getCounters().keySet().isEmpty();\n } else {\n return input.getCounters().containsKey(counter);\n }\n}\n"
|
"public ModelClass getItem(int position) {\n ModelClass model;\n if (cacheModels) {\n model = mModelCache.get(position);\n if (model == null && mCursor.moveToPosition(position)) {\n model = SqlUtils.convertToModel(true, mTable, mCursor);\n mModelCache.put(position, model);\n ... |
"void prune(ConstPool cp) {\n LinkedList newAttributes = new LinkedList();\n AttributeInfo invisibleAnnotations = getAttribute(AnnotationsAttribute.invisibleTag);\n if (invisibleAnnotations != null) {\n invisibleAnnotations = invisibleAnnotations.copy(cp, null);\n newAttributes.add(invisibleAnnot... |
"public void drawValues(Canvas c) {\n if (passesCheck()) {\n List<BarDataSet> dataSets = mChart.getBarData().getDataSets();\n final float valueOffsetPlus = Utils.convertDpToPixel(4.5f);\n float posOffset = 0f;\n float negOffset = 0f;\n boolean drawValueAboveBar = mChart.isDrawValue... |
"private CacheConnection getAvailableConnection() throws DataException {\n Iterator it = this.getOdaConnections(true).iterator();\n while (it.hasNext()) {\n CacheConnection c = (CacheConnection) (it.next());\n if (c.currentStatements < c.maxStatements)\n return c;\n }\n return newCo... |
"public Set<Map.Entry<K, V>> entrySet() {\n return Collections.unmodifiableMap(getContentsUnsafe()).entrySet();\n}\n"
|
"public void actionPerformed(final ActionEvent e) {\n final Sector sector = this.sectorProvider.getSector();\n final SelectSectorDialog dialog = this.gameProvider.getGame().getSelectSectorDialog();\n dialog.setSelected(sector);\n if (dialog.open() == Result.OK)\n this.provider.setSector(dialog.getSel... |
"public String extractRegularExpressionFunction(Expression expression) {\n String functionName = null;\n try {\n String tempString = splictExpression(expression);\n functionName = tempString.split(\"String_Node_Str\").length > 1 ? tempString.split(\"String_Node_Str\")[0] : \"String_Node_Str\";\n ... |
"public JcloudsSshMachineLocation obtain(Map flags) throws NoMachinesAvailableException {\n BrooklynJcloudsSetupHolder setup = new BrooklynJcloudsSetupHolder(this).useConfig(flags).apply();\n String groupId = elvis(setup.remove(\"String_Node_Str\"), generateGroupId(setup.provider));\n final ComputeService comp... |
"private FunctionActionItem function(boolean withBody, String functionName, boolean isMethod, List<VariableActionItem> variables) throws IOException, ParseException {\n GraphTargetItem ret = null;\n ParsedSymbol s = null;\n expectedType(SymbolType.PARENT_OPEN);\n s = lex();\n List<String> paramNames = ne... |
"public void endDocument() throws SAXException {\n if (unmarshaller.getIDResolver() != null && parentRecord == null) {\n unmarshaller.getIDResolver().endDocument();\n }\n if (null != selfRecords) {\n for (int x = 0, selfRecordsSize = selfRecords.size(); x < selfRecordsSize; x++) {\n Un... |
"public Time add(Time time) {\n if (time._isNegativeInfinite) {\n if (_isPositiveInfinite) {\n throw new ArithmeticException(\"String_Node_Str\" + \"String_Node_Str\");\n } else {\n return NEGATIVE_INFINITY;\n }\n } else if (time._isPositiveInfinite) {\n if (_isNe... |
"private static Object[] getAllFields(DimensionRow dimRow) {\n List fields = new ArrayList();\n for (int i = 0; i < dimRow.getMembers().length; i++) {\n if (dimRow.getMembers()[i].getKeyValues() != null) {\n for (int j = 0; j < dimRow.getMembers()[i].getKeyValues().length; j++) {\n ... |
"public Format[] getSupportedOutputFormats(Format in) {\n if (in == null)\n supportedOutputFormats = SUPPORTED_OUTPUT_FORMATS;\n else if (!(in instanceof VideoFormat) || (null == AbstractCodecExt.matches(in, inputFormats)))\n supportedOutputFormats = new Format[0];\n else\n supportedOutput... |
"public static LocatedFeature fromFeature(Feature feature) {\n LocatedFeature lFeature = new LocatedFeature();\n for (Field field : Feature.class.getFields()) {\n try {\n Object o = field.get(feature);\n if (o != null) {\n field.set(lFeature, o);\n }\n ... |
"public T poll(long timeout, TimeUnit unit) throws InterruptedException {\n long nanos = unit.toNanos(timeout);\n final ReentrantLock lock = this.lock;\n lock.lockInterruptibly();\n T result;\n try {\n T result = dequeue();\n while (result == null && nanos > 0) {\n nanos = notEmp... |
"public int proc(int damage, Char attacker) {\n if (timer == 0) {\n charge += damage * (0.5 + level * 0.025);\n if (charge > chargeCap) {\n charge = 0;\n timer = 5 + level;\n }\n }\n if (timer != 0) {\n int deflected = Random.NormalIntRange(0, (int) (damage * 0... |
"public View getView(int position, View convertView, ViewGroup parent) {\n final ViewHolder holder;\n if (convertView == null) {\n convertView = mInfalter.inflate(R.layout.gallery_item, null);\n holder = new ViewHolder();\n holder.imgQueue = (ImageView) convertView.findViewById(R.id.imgQueue)... |
"public void clearFlushStack() {\n if (flushStack != null && !flushStack.isEmpty()) {\n flushStack.clear();\n }\n if (joinTableDataCollection != null && !joinTableDataCollection.isEmpty()) {\n joinTableDataCollection.clear();\n }\n if (eventLogQueue != null) {\n eventLogQueue.clear()... |
"public void updatePanel() {\n warpPanel.clear();\n Collection<UUID> activeWarps = plugin.getWarpSignsListener().listSortedWarps();\n if (DEBUG)\n plugin.getLogger().info(\"String_Node_Str\" + activeWarps.size());\n int size = activeWarps.size();\n int panelNumber = size / (PANELSIZE - 2);\n in... |
"public Set<String> create(SyncopeUser user, Set<String> syncResourceNames) throws PropagationException {\n Set<TargetResource> resources = new HashSet<TargetResource>();\n for (TargetResource resource : user.getTargetResources()) {\n resources.add(resource);\n }\n for (Membership membership : user.g... |
"private void processCompleteHeaders() throws CompressionException {\n if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {\n Tr.debug(tc, \"String_Node_Str\" + myID);\n }\n if (this.headerBlock != null) {\n WsByteBufferPoolManager bufManager = HttpDispatcher.getBufferManager();\n ... |
"private void testDimensionCreate3(IDocumentManager documentManager) throws IOException, BirtException, DataException {\n ILevelDefn[] levelDefs = new ILevelDefn[3];\n String[] attrs = { \"String_Node_Str\" };\n levelDefs[0] = new LevelDefinition(\"String_Node_Str\", new String[] { \"String_Node_Str\" }, null)... |
"public void testUnboundRequest() throws JAXBException, InvalidModelException, IOException {\n final String filename = \"String_Node_Str\";\n final InputStream inputRspec = RequestConverterTest.class.getResourceAsStream(filename);\n System.out.println(\"String_Node_Str\" + filename + \"String_Node_Str\");\n ... |
"public static List<ElementParameter> getParametersFromForm(IElement element, EComponentCategory category, ComponentProperties compProperties, String parentPropertiesPath, Form form, Widget parentWidget, AtomicInteger lastRowNum) {\n List<ElementParameter> elementParameters = new ArrayList<>();\n EComponentCatego... |
"public static URL getURL(Plugin plugin, String pluginRelPath) {\n URL unresolvedUrl = plugin.getBundle().getEntry(pluginRelPath);\n URL fileURL = null;\n try {\n fileURL = FileLocator.resolve(unresolvedUrl);\n } catch (IOException e) {\n StringBuilder logMsg = new StringBuilder();\n lo... |
"public Object decode(Class targetClass, Object fromDBObject, MappedField optionalExtraInfo) throws MappingException {\n if (fromDBObject == null)\n return null;\n }\n String l = fromDBObject.toString();\n try {\n return Class.forName(l);\n } catch (ClassNotFoundException e) {\n thro... |
"public void checkStateServer() {\n tickCounter++;\n ticks--;\n if (ticks < 0) {\n lastRfGained = rfGained;\n lastRfLost = rfLost;\n lastRfPerTick = (rfGained - rfLost) / 100;\n lastPearlsLost = pearlsLost;\n lastPearlsLaunched = pearlsLaunched;\n lastChargeCounter = c... |
"protected void populateViewContext(String path, PortletRequest portletRequest, PortletResponse portletResponse, Template template, TemplateHashModel staticModels) throws Exception {\n ThemeDisplay themeDisplay = (ThemeDisplay) portletRequest.getAttribute(WebKeys.THEME_DISPLAY);\n PortletPreferences portletPrefer... |
"public static synchronized List<TrackFile> getTracks(Context context) {\n final List<TrackFile> jumps = new ArrayList<>();\n final File logDir = getTrackDirectory(context);\n if (logDir != null) {\n final File[] files = logDir.listFiles();\n for (File file : files) {\n if (!file.getNa... |
"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.g... |
"public void flush() {\n final BufferedExecute buffersToFlush = this.bufferedExecute;\n if (!buffersToFlush.isEmpty()) {\n final int rowsToFlush = this.totalQueuedRows;\n this.pendingFlush = this.bufferedExecute;\n this.bufferedExecute = new BufferedExecute();\n this.totalQueuedRows = ... |
"public int getItemCount() {\n return accountsWithoutCurrent.size() + (accountsWithoutCurrent.size() > 0 ? 1 : 0) + FOOTER_COUNT;\n}\n"
|
"private void initFileContent() {\n if (getConnection().getXmlFilePath() == null || \"String_Node_Str\".equals(getConnection().getXmlFilePath())) {\n return;\n }\n byte[] bytes = getConnection().getFileContent();\n Project project = ProjectManager.getInstance().getCurrentProject();\n IProject fsPr... |
"public void put(String prefix, String namespaceURI) {\n if (null == prefix || 0 == prefix.length()) {\n defaultNamespaceURI = namespaceURI;\n } else {\n getPrefixesToNamespaces().put(prefix, namespaceURI.intern());\n }\n}\n"
|
"public String toString() {\n return \"String_Node_Str\" + scaleX + \"String_Node_Str\" + scaleY + \"String_Node_Str\" + orientation + \"String_Node_Str\" + pageMargin + \"String_Node_Str\" + pageLimit + \"String_Node_Str\" + pagerId;\n}\n"
|
"private static <T> BooleanBuilder prepareQuerySearchPart(PathBuilder<T> entity, Map<String, List<String>> filterByAssociations, DatatablesCriterias datatablesCriterias, boolean findInAllColumns, Map<String, PathBuilder<?>> associationMap, BooleanBuilder filtersByTablePredicate, ConversionService conversionService) {\n... |
"private void addToAchive(List<PluginArchive> archives, String path) {\n Path archivePath = selfContext.getPluginPath().resolve(path);\n ParsingResult<ArchiveRoot> result = archiveParser.parseDir(archivePath);\n PluginArchive pluginArchive = new PluginArchive(result.getResult(), archivePath);\n archives.add... |
"protected void drawGuiContainerBackgroundLayer(float v, int i, int i2) {\n drawWindow();\n long currentRF = GenericEnergyStorageTileEntity.getCurrentRF();\n energyBar.setValue(currentRF);\n tileEntity.requestRfFromServer(RFTools.MODID);\n}\n"
|
"public void run() {\n try {\n Writer writer;\n Encoding enc = getCurrentEncoding();\n if (enc == null) {\n writer = new OutputStreamWriter(new FileOutputStream(file));\n } else {\n writer = new OutputStreamWriter(new FileOutputStream(file), enc.name());\n }\n... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.