content
stringlengths
40
137k
"private Set<String> getNewServerObjectPref() {\n Set<String> values = new HashSet<String>();\n for (IRepositoryViewObject conf : enabledConfigs) {\n String label = getLabel(conf);\n if (label.length() > 0) {\n values.add(label);\n }\n }\n return values;\n}\n"
"public static List<String> getAllSourceCodeLineList(IFile javaFile) throws Exception {\n List<String> lines = new ArrayList<String>();\n InputStream is = null;\n BufferedReader br = null;\n try {\n is = javaFile.getContents();\n br = new BufferedReader(new InputStreamReader(is));\n Str...
"public void control(Agent me, Agent[] agents, Thing[] things) {\n MeView meV = new MeView();\n meV.t = t;\n meV.vt = vt;\n meV.x = x;\n meV.y = y;\n meV.r = r;\n meV.a = a;\n meV.AMIN = AMIN;\n meV.AMAX = AMAX;\n meV.VTMIN = VTMIN;\n meV.VTMAX = VTMAX;\n meV.CDRAG = CDRAG;\n Agen...
"static void gc() {\n if (VM_Synchronization.testAndSet(instance, gcLockOffset, 1)) {\n MM_Interface.gc();\n VM_Synchronization.fetchAndStore(instance, gcLockOffset, 0);\n }\n}\n"
"public static String getRelativePath(File base, File file) {\n if (base.isFile())\n base = base.getParentFile();\n String[] bb = Strings.splitIgnoreBlank(base.getAbsolutePath(), \"String_Node_Str\");\n String[] ff = Strings.splitIgnoreBlank(file.getAbsolutePath(), \"String_Node_Str\");\n int pos = 0...
"public void addPages() {\n super.addPages();\n Set<INodePO> specSet = new HashSet<INodePO>();\n for (Iterator iterator = m_setOfExecsToReplace.iterator(); iterator.hasNext(); ) {\n IExecTestCasePO exec = (IExecTestCasePO) iterator.next();\n if (ISpecTestCasePO.class.isAssignableFrom(exec.getPare...
"public void startingLayer(LayerRules lc) throws Exception {\n lc.setFractionDone();\n if (lc.getMachineLayer() > 0 && Preferences.loadGlobalBool(\"String_Node_Str\"))\n homeToZeroXYE();\n double datumX = getExtruder().getNozzleWipeDatumX();\n double datumY = getExtruder().getNozzleWipeDatumY();\n ...
"protected Object doMainTask(TaskMonitor monitor, ObjectRepository repository) {\n Option[] variedParamValueOptions = this.variedParamValuesOption.getList();\n double[] variedParamValues = new double[variedParamValueOptions.length];\n for (int i = 0; i < variedParamValueOptions.length; i++) {\n variedPa...
"public void testLGGWithTrees() {\n QueryTreeFactory<String> factory = new QueryTreeFactoryImpl();\n Set<QueryTree<String>> posExampleTrees = DBpediaExample.getPosExampleTrees();\n int cnt = 1;\n for (QueryTree<String> tree : posExampleTrees) {\n System.out.println(\"String_Node_Str\" + cnt);\n ...
"public <V> void persist(final String field, final V value) {\n document.field(field, value);\n if (document.getIdentity().isPersistent()) {\n sudoSave();\n }\n}\n"
"void addBuilderButtons() {\n for (int i = 0; i < numAllowed; i++) {\n FlipButton btn;\n btn = new FlipButton(allowedBuilderTexture, allowedBuilderTexture, null);\n builderButtons.add(btn);\n btn.setPosition(BUILDER_WIDTH * i, 0);\n btn.setSize(BUILDER_WIDTH, BUILDER_WIDTH);\n ...
"public double fastDistance(double lat1, double lon1, double lat2, double lon2) {\n final double xd = lon1 - lon2;\n final double yd = lat1 - lat2;\n return Math.sqrt(xd * xd + yd * yd);\n}\n"
"public Heritrix3JobMonitor getRunningH3Job(long jobId) {\n Heritrix3JobMonitor h3Job;\n synchronized (runningJobMonitorMap) {\n h3Job = runningJobMonitorMap.get(jobId);\n LOG.debug(\"String_Node_Str\", runningJobMonitorMap.hashCode());\n }\n return h3Job;\n}\n"
"public Pair<String, String> generate(int id, RandomGenerator random) {\n if (id == 0) {\n PMML pmml = buildModel();\n return new Pair<>(\"String_Node_Str\", PMMLUtils.toString(pmml));\n } else {\n String nodeID = \"String_Node_Str\" + ((id % 2 == 0) ? '-' : '+');\n Map<Integer, Intege...
"protected void startUp() throws Exception {\n if (!directory.exists()) {\n if (!directory.mkdir()) {\n throw new IOException(\"String_Node_Str\");\n }\n }\n try {\n File chainFile = new File(directory, filePrefix + \"String_Node_Str\");\n boolean chainFileExists = chainF...
"public LocationResources getLocationResources(Location location) {\n Orchestrator orchestrator = orchestratorService.get(location.getOrchestratorId());\n if (orchestrator != null && orchestratorPluginService.get(orchestrator.getId()) != null) {\n return getLocationResourcesFromOrchestrator(location);\n ...
"protected boolean check(Analysis analysis) {\n if (analysis.getContext().getAnalysedElements().size() == 0) {\n if (analysis.getContext().getConnection() == null) {\n this.errorMessage = \"String_Node_Str\";\n return false;\n }\n this.errorMessage = \"String_Node_Str\";\n ...
"protected int[] clean(int start, int end, String[] tokens) {\n int newStart = start, newEnd = end;\n if (removeLeadingStopwords) {\n String tok = tokens[newStart];\n if (stopWordsIgnoreCase)\n tok = tok.toLowerCase();\n if (stopWords.contains(tok)) {\n newStart++;\n ...
"public void testEncodeForBase64() {\n System.out.println(\"String_Node_Str\");\n Encoder instance = ESAPI.encoder();\n try {\n assertEquals(null, instance.encodeForBase64(null, false));\n assertEquals(null, instance.encodeForBase64(null, true));\n assertEquals(null, instance.decodeFromBas...
"public void updateWorkbookFormulas(BlockTransformation transformation) {\n Set sheetNames = sheetFormulasMap.keySet();\n Formula formula, newFormula;\n Set cellRefs, newCellRefs;\n CellRef cellRef, newCellRef;\n List resultCells;\n String newCell;\n Point point, newPoint;\n Set cellRefsToRemove...
"public Tag readTag(Timelined timelined, int level, long pos, boolean resolve, boolean parallel, boolean skipUnusualTags) throws IOException, InterruptedException {\n int tagIDTagLength = readUI16(\"String_Node_Str\");\n int tagID = (tagIDTagLength) >> 6;\n logger.log(Level.INFO, \"String_Node_Str\", new Objec...
"private void updateState() {\n ExcludeArtifactRefactoring refactoring = (ExcludeArtifactRefactoring) getRefactoring();\n if (hierarchy.getSelection()) {\n MavenProject project = fromSelection(pomHierarchy.getSelection());\n updateStatusBar(project);\n refactoring.setExclusionPoint(project);\...
"public static String getInstanceData(FeatureSet f, Set<String> authors) {\n StringBuffer x = new StringBuffer();\n appendAttributes(f, x);\n x.append(getAuthorName((AbstractExtractor) f) + \"String_Node_Str\");\n authors.add(getAuthorName((AbstractExtractor) f));\n return x.toString();\n}\n"
"public org.hl7.fhir.dstu2.model.CarePlan convertCarePlan(org.hl7.fhir.dstu3.model.CarePlan src) throws FHIRException {\n if (src == null || src.isEmpty())\n return null;\n org.hl7.fhir.dstu2.model.CarePlan tgt = new org.hl7.fhir.dstu2.model.CarePlan();\n copyDomainResource(src, tgt);\n for (org.hl7....
"protected void startLoadDialogMessages(boolean isLoadOldMessages) {\n if (currentChatDialog == null) {\n return;\n }\n showActionBarProgress();\n (new BaseAsyncTask<Void, Void, Boolean>() {\n private long messageDateSent;\n public Boolean performInBackground(Void... params) throws Exce...
"public void updateDisplayLists() {\n while (!_displayListUpdates.isEmpty()) {\n Chunk c = _displayListUpdates.removeFirst();\n c.generateVBOs();\n }\n}\n"
"public void collect(int doc) throws IOException {\n groupByFieldLookup.setNextDocId(doc);\n Object[] keyValue = new Object[parsedStatement.groupByColumnNames.size()];\n for (int i = 0; i < parsedStatement.groupByColumnNames.size(); i++) {\n keyValue[i] = groupByFieldLookup.lookupField(parsedStatement.g...
"public void moveNode(NodeData node, ForceVector forceData) {\n ForceVector displacement = forceData;\n displacement.multiply(step);\n float x = node.x();\n float y = node.y();\n node.setX(node.x() + displacement.x());\n node.setY(node.y() + displacement.y());\n}\n"
"public void checkDatabaseChangeLogTable() throws JDBCException {\n DatabaseConnection connection = getConnection();\n ResultSet checkTableRS = null;\n ResultSet checkColumnsRS = null;\n List<SqlStatement> statementsToExecute = new ArrayList<SqlStatement>();\n try {\n checkTableRS = connection.get...
"private void bringToHierarchy(SootClass sc) {\n if (sc.resolvingLevel() >= SootClass.HIERARCHY)\n return;\n if (Options.v().debug_resolver())\n G.v().out.println(\"String_Node_Str\" + sc);\n sc.setResolvingLevel(SootClass.HIERARCHY);\n String className = sc.getName();\n ClassSource is = So...
"public void visitEnd() {\n if (isMessage && !clinitFound) {\n if (!msgPackDefined) {\n FieldVisitor fv = cv.visitField(ACC_PRIVATE + ACC_FINAL + ACC_STATIC, \"String_Node_Str\", \"String_Node_Str\", null, null);\n fv.visitEnd();\n msgPackDefined = true;\n }\n Me...
"protected void event(UserRequest ureq, Controller source, Event event) {\n if (event instanceof RestoreBinderEvent || event instanceof DeleteBinderEvent || event instanceof PageDeletedEvent) {\n stackPanel.popUpToController(this);\n }\n super.event(ureq, source, event);\n}\n"
"public static String convertBorderWeight(String weight) {\n String w = StyleConstant.NULL;\n if (linestyle != null && !\"String_Node_Str\".equalsIgnoreCase(linestyle)) {\n linestyle = ExcelUtil.getValue(linestyle);\n int weight = (int) Double.parseDouble(linestyle);\n if (weight >= 749 && we...
"private void terminateInstances(Event event, RequestInfo resources) {\n Map requestParameters = event.getRequestParameters();\n if (requestParameters != null && requestParameters.containsKey(\"String_Node_Str\")) {\n Map<String, ArrayList> resourceSet = (LinkedTreeMap) requestParameters.get(\"String_Node_...
"public static void classSetup() throws Exception {\n printTestClassHeader();\n ts = loadTestScenario();\n System.out.println(\"String_Node_Str\" + ts.coordinator.id);\n long start = System.currentTimeMillis();\n BackDoor.deleteCoord(ts.coordinator.id);\n BackDoor.createCoord(ts.coordinator);\n Bac...
"protected boolean setFrame(int l, int t, int r, int b) {\n final boolean changed = super.setFrame(l, t, r, b);\n final Drawable drawable = getDrawable();\n if (!isInEditMode() && drawable != null) {\n this.computeImageMatrix(drawable);\n }\n return changed;\n}\n"
"public void setDrawingEnabled(boolean drawingEnabled) {\n if (mListener instanceof BarLineChartTouchListener) {\n ((BarLineChartTouchListener<?>) mListener).setDrawingEnabled(drawingEnabled);\n }\n}\n"
"public void onNext(GenericOverall genericOverall) {\n if (conversationUser.getUserId().equals(\"String_Node_Str\") && TextUtils.isEmpty(myFirstMessage)) {\n myFirstMessage = message;\n }\n if (popupBubble != null && popupBubble.isShown()) {\n popupBubble.hide();\n }\n if (messagesList != n...
"public static void test1() {\n Variables variables = new Variables();\n EF_SparseMultinomial dist = new EF_SparseMultinomial(variables.newMultinomialVariable(\"String_Node_Str\", 10));\n System.out.println(dist.getSufficientStatistics(1).output());\n System.out.println(dist.getNaturalParameters().output())...
"public <T extends Serializable> void updateJobPercentage(Plugin<T> plugin, int stepsCompleted, int totalSteps) {\n String jobId = PluginHelper.getJobId(plugin);\n if (jobId != null) {\n synchronized (runningTasks) {\n Integer totalNumberOfObjects = runningTasksTotalObjects.get(jobId);\n ...
"public static Long getMaxExplorationTimeInMin(ExplorationStrategy strategyConfig) {\n String value = strategyConfig.getConfiguration().get(MAX_EXPLORATION_TIME_IN_MIN);\n if (value != null && !value.isEmpty()) {\n return Long.valueOf(value);\n } else {\n return MAX_EXPLORATION_TIME_IN_MIN_DEFAUL...
"private void updateThresholdBind(final DataBindingContext bindingContext, IObservableValue masterObservable) {\n IObservableValue uiElement;\n IObservableValue modelElement;\n String boundProperty = IObjectMappingProfilePO.PROP_THRESHOLD;\n uiElement = WidgetProperties.selection().observe(m_threshold);\n ...
"EagerLoadNulableObservableReferenceModel.MyEntity getMyEntity() {\n if (Arez.shouldCheckApiInvariants()) {\n Guards.apiInvariant(() -> ComponentState.isActive(this.$$arezi$$_state), () -> \"String_Node_Str\" + ComponentState.describe(this.$$arezi$$_state) + \"String_Node_Str\" + $$arezi$$_name() + \"String_N...
"private void reportReceivedMessage(MAVLinkMessage msg) {\n if (mListeners.isEmpty())\n return;\n for (MavLinkConnectionListener listener : mListeners.values()) {\n listener.onReceiveMessage(msg);\n }\n}\n"
"public static void drawItemStack(GuiForestry gui, ItemStack stack, int xPos, int yPos) {\n GL11.glPushAttrib(GL11.GL_ENABLE_BIT);\n RenderHelper.enableGUIStandardItemLighting();\n RenderItem itemRender = GuiForestry.getItemRenderer();\n GL11.glTranslatef(0.0F, 0.0F, 32.0F);\n gui.setZLevel(100.0F);\n ...
"public void requestEndEvent(HttpServletRequest request, Host host, Context context, int statusCode) {\n if (requestProbeProvider != null) {\n String appName = null;\n if (context instanceof WebModule) {\n appName = ((WebModule) context).getMonitoringNodeName();\n }\n String ho...
"public void closeGroup(MetaContactGroup group) {\n if (countSubgroupContacts(group) > 0) {\n contentRemoved(this.indexOf(group.getMetaContact(0)), this.indexOf(group.getMetaContact(countSubgroupContacts(group) - 1)));\n this.closedGroups.add(group);\n }\n}\n"
"public void removePolicy(String name) throws AuthException {\n if (Strings.isNullOrEmpty(name)) {\n throw new AuthException(AuthException.EMPTY_POLICY_NAME);\n }\n EntityWrapper<UserEntity> db = EntityWrapper.get(UserEntity.class);\n try {\n UserEntity user = db.getUnique(UserEntity.newInstan...
"protected void unsetTaskService(TaskService taskService) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"String_Node_Str\");\n }\n ServiceReferenceHolder.getInstance().setTaskService(null);\n}\n"
"protected void finalize() throws Throwable {\n try {\n if (paloHttpClient != null) {\n paloHttpClient.getConnectionManager().shutdown();\n } catch (Exception e) {\n } finally {\n super.finalize();\n }\n}\n"
"public static void convertSWF(SWF swf, String swfFileName, String outfile, boolean compressed, String generator, String generatorVerName, String generatorVersion, boolean paralel) {\n File file = new File(outfile);\n File outDir = file.getParentFile();\n String domDocument = \"String_Node_Str\";\n String b...
"public Node getPredecessor(Node node) {\n Edge edge = predecessors.get(node);\n if (edge != null) {\n if (edge.getSource() != node) {\n return edge.getSource();\n } else {\n return edge.getTarget();\n }\n }\n return null;\n}\n"
"private Optional<Path> unarchivePomFile(JarFile jarFile, JarEntry jarEntry) throws IOException {\n Optional<Path> resultOptional = Optional.absent();\n int pointer = jarEntry.getName().lastIndexOf(\"String_Node_Str\") + 1;\n String fileName = jarEntry.getName().substring(pointer);\n Path path = File.create...
"public SummonerSpell next() {\n final com.merakianalytics.orianna.types.data.staticdata.SummonerSpell data = new com.merakianalytics.orianna.types.data.staticdata.SummonerSpell();\n data.setPlatform(platform.getTag());\n data.setSummonerId(iterator.next().longValue());\n return new VerificationString(data)...
"public void run() {\n table.setRedraw(false);\n SWTUtil.enable(table);\n for (final TableItem i : table.getItems()) {\n i.dispose();\n }\n list.clear();\n final ARXLattice l = result.getLattice();\n for (final ARXNode[] level : l.getLevels()) {\n for (final ARXNode node : level) {\n ...
"public void parseArgs(String[] args) throws ParseException {\n CommandLine cmd = null;\n CommandLineParser parser = new PosixParser();\n cmd = parser.parse(options, args);\n fieldValueMap = new HashMap<>();\n try {\n for (Option apacheOpt : optionFieldMap.keySet()) {\n Field field = op...
"public static String getErrorMessageFromPostError(Context context, PostModel post, PostError error) {\n switch(error.type) {\n case UNKNOWN_POST:\n return post.isPage() ? context.getString(R.string.error_unknown_page_param) : context.getString(R.string.error_unknown_post_param);\n case UNKN...
"public void testCreateVMFromSpec() {\n final int id = random.nextInt(65534);\n final String name = \"String_Node_Str\";\n final int cpus = _random.nextInt(2) + 1;\n final int minSpeed = 1024;\n final int maxSpeed = 2048;\n final int minRam = 256 * 1024;\n final int maxRam = 512 * 1024;\n final ...
"public static Class<?> toClass(String className, ClassLoader loader, ProtectionDomain domain, byte[] bcode) throws CannotCompileException {\n try {\n return privileged.defineClass(className, bcode, 0, bcode.length, loader, domain);\n } catch (RuntimeException e) {\n throw e;\n } catch (ClassForm...
"private Collection<Resource> extractUnlinkedConcepts() {\n Collection<Resource> unlinkedConcepts = new HashSet<>();\n for (Resource concept : extResourcesForConcept.keySet()) {\n if (extResourcesForConcept.get(concept).isEmpty()) {\n unlinkedConcepts.add(concept);\n }\n }\n return ...
"public String getPersent() {\n if (percent != null) {\n if (percent != Double.NaN) {\n return StringFormatUtil.format(percent, StringFormatUtil.PERCENT).toString();\n } else {\n return \"String_Node_Str\";\n }\n } else {\n return null;\n }\n}\n"
"public List<Pair<Pair<String, VirtualMachine.Type>, Pair<Long, String>>> getVmsDetailByNames(Set<String> vmNames, String detail) {\n TransactionLegacy txn = TransactionLegacy.currentTxn();\n List<Pair<Pair<String, VirtualMachine.Type>, Pair<Long, String>>> vmsDetailByNames = new ArrayList<Pair<Pair<String, Virtu...
"public void startText(ITextContent text) {\n IStyle mergedStyle = text.getStyle();\n if (peek(mergedStyle)) {\n return;\n }\n logger.log(Level.FINE, \"String_Node_Str\");\n StringBuffer styleBuffer = new StringBuffer();\n DimensionType x = text.getX();\n DimensionType y = text.getY();\n ...
"private float getUnigramProbability(WordSequence wordSequence) {\n String unigram = wordSequence.getWord(0);\n Integer unigramID = (Integer) unigramIDMap.get(unigram);\n if (unigramID == null) {\n unigram = \"String_Node_Str\";\n unigramID = (Integer) unigramIDMap.get(unigram);\n if (unig...
"public static String readContentAsUtf8(HttpServletRequest request) throws IOException, ServletException {\n int contentLength = request.getContentLength();\n if (contentLength == -1) {\n throw new ServletException(\"String_Node_Str\");\n }\n String contentType = request.getContentType();\n boolea...
"static boolean assemble() {\n try {\n Simulator.kill();\n String[] args = AssemblerOptions.command.toArray(new String[0]);\n process = Runtime.getRuntime().exec(args);\n stdout = new BufferedReader(new InputStreamReader(process.getInputStream()));\n process = null;\n return...
"private static synchronized Integer createNextRequestId() {\n uniqueRequestId = (uniqueRequestId == Integer.MAX_VALUE) ? 0 : uniqueRequestId + 1;\n return new Integer(uniqueRequestId);\n}\n"
"public Pattern findPattern(IFile file) {\n if (checkFile(file)) {\n Pattern pattern = patternsMap.get(file);\n if (pattern == null) {\n pattern = retirePattern(getFileResource(file));\n }\n patternsMap.put(file, pattern);\n }\n return pattern;\n}\n"
"public ClientResponse updateById(E obj, Type gType, String accept, String type) throws PhrescoException {\n S_LOGGER.debug(\"String_Node_Str\");\n builder = resource.accept(accept).type(type);\n ClientResponse clientResponse = builder.put(ClientResponse.class, obj);\n isErrorThrow(clientResponse);\n ret...
"private byte[] serialize(Collection<? extends GrantedAuthority> collection) {\n ByteArrayOutputStream buf = new ByteArrayOutputStream();\n DataOutputStream dout = new DataOutputStream(buf);\n try {\n ObjectMapper mapper = new ObjectMapper();\n mapper.writeValue(dout, auths);\n dout.close(...
"protected Collection<NavigationNode> getNodeChildren(final long nodeId, final int level, final int depth, String linkAttribute) {\n StatementParam param = CHILD_STMT.newParam();\n param.setLong(0, nodeId);\n IListIterable root = SqlHelper.select(ics, CHILD_STMT, param);\n List<NavigationNode> collection = ...
"public void setDegreeOfParallelism(final int dop) {\n if (dop < 1)\n throw new IllegalArgumentException(\"String_Node_Str\");\n this.dop = dop;\n}\n"
"protected Composite getComponent(Composite parent) {\n GridLayout glContent = new GridLayout();\n glContent.numColumns = 2;\n glContent.horizontalSpacing = 5;\n glContent.verticalSpacing = 5;\n glContent.marginHeight = 7;\n glContent.marginWidth = 7;\n GridLayout glGeneral = new GridLayout();\n ...
"public void setContactsDictionary(Context context, boolean enabled) {\n if (!enabled && mContactsDictionary != null) {\n Log.i(TAG, \"String_Node_Str\");\n mContactsDictionary.close();\n mContactsDictionary = null;\n } else if (enabled && mContactsDictionary == null) {\n mContactsDict...
"private void addResultSetColumn(DataSetHandle dataSetHandle, IResultMetaData meta) throws BirtException {\n if (meta == null || !(dataSetHandle instanceof OdaDataSetHandle))\n return;\n Set computedColumnNameSet = new HashSet();\n Iterator computedIter = dataSetHandle.computedColumnsIterator();\n wh...
"private void createButtonComposite() {\n Composite composite = new Composite(mainControl, SWT.NONE);\n GridData gd = new GridData();\n gd.verticalIndent = -5;\n gd.verticalAlignment = SWT.BEGINNING;\n composite.setLayoutData(gd);\n composite.setLayout(new GridLayout());\n SelectionAdapter listener...
"public SetReference<PrivateNetworkIndex, VmInstance> allocateNetworkIndex() throws TransactionException {\n if (!NetworkGroups.networkingConfiguration().hasNetworking()) {\n try {\n return PrivateNetworkIndex.bogus().allocate();\n } catch (ResourceAllocationException ex) {\n thro...
"private void writeDefinition(final ModelConfiguration config, final String prefix, final ZipOutputStream zip) throws IOException {\n if (config.getInput() != null) {\n if (config.getInput().getDefinition() != null) {\n zip.putNextEntry(new ZipEntry(prefix + \"String_Node_Str\"));\n fina...
"private void assertStoredAndLoadedEqual(CachedContentIndex index, CachedContentIndex index2) throws IOException {\n index.addNew(new CachedContent(5, \"String_Node_Str\", 10));\n index.getOrAdd(\"String_Node_Str\");\n index.store();\n index2.load();\n Set<String> keys = index.getKeys();\n Set<String>...
"public void insertIndex(int index) {\n int logicalColumnCountBefore = logicalColumnCount();\n int logicalRowCountBefore = logicalRowCount();\n gridComponents.add(index, new CellComponents());\n fixCellCount(logicalRowCountBefore, logicalColumnCountBefore);\n}\n"
"public IBaseResultSet executeQuery(IBaseResultSet parent, IDataQueryDefinition query, Object handle) {\n IDataEngine dataEngine = context.getDataEngine();\n if (query != null) {\n boolean useCache = false;\n if (handle instanceof ReportItemHandle) {\n ReportItemHandle referenceHandle = (...
"public void close() throws DataException {\n try {\n List<T> keyList = new LinkedList<T>();\n keyList.addAll(this.numberAndIndex.keySet());\n Collections.sort(keyList, new NumberComparator<T>());\n int segs = (keyList.size() - 1) / BLOCKNUMBER + 1;\n IOUtil.writeInt(output, segs);...
"public Object getArrayFor(PropertyRecord propertyRecord, ReadFromBuffer buffer) {\n int recordToFind = (int) propertyRecord.getPropBlock();\n Iterator<DynamicRecord> records = propertyRecord.getValueRecords().iterator();\n List<byte[]> byteList = new LinkedList<byte[]>();\n int totalSize = 0;\n while (r...
"private Long getVpcId() {\n if (publicIpId != null) {\n IpAddress ipAddr = _networkService.getIp(publicIpId);\n if (ipAddr == null || !ipAddr.readyToUse()) {\n throw new InvalidParameterValueException(\"String_Node_Str\" + publicIpId);\n } else {\n return ipAddr.getVpcId()...
"public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int hitSide, float hitX, float hitY, float hitZ) {\n if (super.onBlockActivated(world, x, y, z, player, hitSide, hitX, hitY, hitZ)) {\n if (Utils.isHoldingDebugger(player) || Utils.isHoldingMultimeter(player) || Utils.isHo...
"private int tryAllDownloads3() throws InterruptedException {\n LOG.trace(\"String_Node_Str\");\n int completedSize = -1;\n synchronized (this) {\n needed = new IntervalSet();\n {\n Assert.that(incompleteFile != null);\n synchronized (incompleteFileManager) {\n ...
"public DetectedPixels analyse(final KDistributionEstimation kdist, final int band) throws IOException {\n DetectedPixels dpixels = new DetectedPixels(gir.getRangeSpacing(), gir.getAzimuthSpacing());\n String bb = ((SarImageReader) gir).getBands()[band];\n float thresholdBand = this.thresholdsBandParams.get(bb...
"public void run() throws Exception {\n final CacheService service = getService();\n final CacheConfig cacheConfig = service.getCacheConfig(name);\n if (cacheConfig == null) {\n CacheSimpleConfig simpleConfig = service.findCacheConfig(simpleName);\n if (simpleConfig != null) {\n try {\...
"public void show() {\n if (issue == null || issue.getId() <= 0) {\n return;\n }\n loadIssueDetailsInBackground();\n}\n"
"public ArtifactProxy asCastedObject(Object object) throws OseeCoreException {\n XArtifactProxy proxy = null;\n if (object instanceof Artifact) {\n final Artifact artifact = (Artifact) object;\n proxy = new XArtifactProxy(artifact);\n } else if (object instanceof IOseeBranch) {\n IOseeBran...
"public long deleteByQuery(Query<K, T> query) {\n try {\n long deletedRows = 0;\n Result<K, T> result = query.execute();\n while (result.next()) {\n if (delete(result.getKey()))\n deletedRows++;\n }\n return deletedRows;\n } catch (Exception e) {\n ...
"private void showAddDQRuleDialog(final TreeItem treeItem, final TableIndicator tableIndicator) {\n IndicatorCheckedTreeSelectionDialog dialog = new IndicatorCheckedTreeSelectionDialog(null, new DQRuleLabelProvider(), new WorkbenchContentProvider());\n dialog.setInput(ResourceManager.getLibrariesFolder());\n d...
"private void separateLocalAndRemoteMutations(Table targetHTable, Region region, List<Mutation> mutations, List<Mutation> localRegionMutations, List<Mutation> remoteRegionMutations, boolean isPKChanging) {\n boolean areMutationsInSameTable = areMutationsInSameTable(targetHTable, region);\n if (areMutationsInSameT...
"public void initialize() {\n final SimplePanel panel = new SimplePanel();\n panel.setStyleName(LOGIN_BG);\n final Grid grid = new Grid(1, 2);\n grid.setStyleName(LOGIN_BOX);\n grid.setWidget(0, 0, new Image(LOGO_URL));\n final FlexTable form = new FlexTable();\n form.setWidth(\"String_Node_Str\");...
"private final boolean updateOomAdjLocked() {\n boolean didOomAdj = true;\n final HistoryRecord TOP_ACT = resumedAppLocked();\n final ProcessRecord TOP_APP = TOP_ACT != null ? TOP_ACT.app : null;\n if (false) {\n RuntimeException e = new RuntimeException();\n e.fillInStackTrace();\n Slo...
"public String getValue(Game game) {\n StringBuilder sb = threadLocalBuilder.get();\n List<String> cards = new ArrayList<>();\n for (UUID cardId : this) {\n Card card = game.getCard(cardId);\n cards.add(card.getName());\n }\n for (String name : cards) {\n sb.append(name).append(\"Str...
"public void setGroups(String[] groups, String worldName) {\n if (groups == null) {\n return;\n }\n this.node.set(FileEntity.formatPath(worldName, \"String_Node_Str\"), Arrays.asList(groups));\n this.save();\n this.callEvent(PermissionEntityEvent.Action.INHERITANCE_CHANGED);\n}\n"
"public void resolveTypes(MarkerList markers, IContext context) {\n if (context.isStatic()) {\n markers.add(Markers.semantic(this.position, \"String_Node_Str\"));\n return;\n }\n if (this.type != Types.UNKNOWN) {\n this.type = this.type.resolveType(markers, context);\n return;\n ...
"public void dropDatabase() {\n if (!existsDatabase()) {\n return;\n }\n try {\n if (isDBopen()) {\n db.close();\n }\n Files.deleteIfExists(filepath);\n Files.deleteIfExists(Paths.get(filepath.toString() + \"String_Node_Str\"));\n } catch (IOException ex) {\n ...
"public void createContent(String id, Element parent) {\n String dBranding = \"String_Node_Str\";\n String branding = System.getProperty(\"String_Node_Str\");\n if (branding == null || \"String_Node_Str\".equals(branding)) {\n branding = dBranding;\n }\n Document dom = parent.getOwnerDocument();\n...