content
stringlengths
40
137k
"public static Collection<String> findLiterals(String query) {\n Collection<String> ret = new HashSet<String>();\n String regex = \"String_Node_Str\";\n String q = query;\n q = q.replaceAll(\"String_Node_Str\", \"String_Node_Str\");\n Pattern p = Pattern.compile(regex, Pattern.UNICODE_CHARACTER_CLASS);\n...
"public void start() {\n dc.start();\n if (isPresent())\n storeTailer.index = RollingChronicleQueue.index(storeTailer.cycle, toSequenceNumber(storeTailer.index) + 1);\n}\n"
"private void updateDatabase() {\n MainFactory mainFactory = new MainFactory(configuration);\n DbMaintainer dbMaintainer = mainFactory.createDbMaintainer();\n return dbMaintainer.updateDatabase(false);\n}\n"
"public void actionPerformed(ActionEvent e) {\n if (!isBlank(destinationField.getText())) {\n File currentDir = new File(destinationField.getText());\n while (!currentDir.exists() && !currentDir.isDirectory()) {\n if (currentDir.getParentFile() == null) {\n break;\n ...
"private void updateClipping(StackScrollState resultState, StackScrollAlgorithmState algorithmState) {\n float previousNotificationEnd = 0;\n float previousNotificationStart = 0;\n boolean previousNotificationIsSwiped = false;\n int childCount = algorithmState.visibleChildren.size();\n for (int i = 0; i ...
"public static void setupReplacers() {\n boolean test = false;\n listFoliageReplacers.clear();\n if (!test) {\n HashMap<Comparable, String> lookup = new HashMap<>();\n lookup.clear();\n lookup.put(BlockPlanks.EnumType.OAK, \"String_Node_Str\");\n lookup.put(BlockPlanks.EnumType.SPRU...
"public String getException() {\n if (this.t != null) {\n return this.t.getMessage();\n }\n}\n"
"public String cachedXPathGetString(String xpath, String prefixMappings) throws Docx4JException {\n if (cachedXPathAPI == null) {\n cachedXPathAPI = new CachedXPathAPI();\n cachedXPathAPI.getXPathContext().setNamespaceContext(getNamespaceContext());\n }\n if (cachedPrefixMappings == null && prefi...
"public void fire() throws IllegalActionException {\n super.fire();\n for (int channel = 0; channel < input.getWidth(); channel++) {\n if (input.hasToken(channel)) {\n input.get(channel);\n }\n long time = (long) (_director.getModelTime().getDoubleValue() / _director.localClock.get...
"public void addAccount(ProtocolProviderService protocolProvider) {\n StatusSelectorBox protocolStatusCombo;\n int providerIndex = this.mainFrame.getProviderIndex(protocolProvider);\n if (mainFrame.getProtocolPresenceOpSet(protocolProvider) != null) {\n protocolStatusCombo = new PresenceStatusSelectorBo...
"protected void internalPutProperty(String key, String value) {\n if (key.equals(HOST_NAME) || key.equals(HOST)) {\n if (value == null || value.length() == 0) {\n return;\n }\n if (isEnableHostLookUp) {\n try {\n InetAddress address = java.net.InetAddress.get...
"public boolean equals(JobLauncher otherLauncher) {\n boolean retVal;\n if (this == otherLauncher) {\n return true;\n }\n if (otherLauncher == null || !(otherLauncher instanceof Item) || !super.equals(otherLauncher)) {\n return false;\n }\n JobLauncher launcher = (JobLauncher) otherLaunc...
"public synchronized GpuAllocation selectCandidateRequestNode(ResourceDescriptor request, String nodeLabel, String nodeGpuType) {\n LOGGER.logDebug(\"String_Node_Str\", request, nodeLabel, nodeGpuType);\n ClusterConfiguration clusterConfiguration = am.getClusterConfiguration();\n Map<String, NodeConfiguration>...
"public static byte[] getFormattedContent(Element formattedItemElement) throws XMLStreamException {\n ByteArrayOutputStream data = new ByteArrayOutputStream((int) Math.pow(2, 10));\n XMLStreamWriter xmlWriter = null;\n try {\n xmlWriter = XMLOutputFactory.newInstance().createXMLStreamWriter(data, \"Stri...
"public void onPlayerEnterOnIsland(IslandEnterEvent e) {\n Player player = plugin.getServer().getPlayer(e.getPlayer());\n if (VaultHelper.checkPerm(player, Settings.PERMPREFIX + \"String_Node_Str\") && plugin.getGrid().playerIsOnIsland(player)) {\n player.setAllowFlight(true);\n player.setFlying(tru...
"private X509Certificate importCertificateFromAppPrivateDir(String packageName) {\n File[] certMatchingFiles = certificateFolder.listFiles(new CertFileFilter(packageName));\n X509Certificate verifiedCertificate = null;\n if (certMatchingFiles != null && certMatchingFiles.length != 0) {\n InputStream inS...
"public void handleWeeklyFallingAdherence(MotechEvent motechEvent) {\n String patientDocId = motechEvent.getParameters().get(PATIENT_DOC_ID_KEY).toString();\n Patient patient = allPatients.get(patientDocId);\n TreatmentAdvice treatmentAdvice = allTreatmentAdvices.currentTreatmentAdvice(patient.getId());\n i...
"public boolean act() {\n charge--;\n if (charge <= 0) {\n detach();\n GLog.w(\"String_Node_Str\");\n }\n exp += 10 + ((Hero) target).lvl;\n if (exp >= level * 50 && level < 26) {\n exp -= level * 50;\n GLog.p(\"String_Node_Str\");\n level++;\n chargeCap++;\n ...
"public boolean isUp() {\n if (State.READY.equals(getState()))\n return true;\n if (getIpAddress() == null)\n return false;\n try {\n ping();\n } catch (Exception e) {\n RuntimeContext.logger.log(Level.SEVERE, \"String_Node_Str\" + config.getName() + \"String_Node_Str\" + e.getMe...
"public boolean isOptimizable(DataHandle handle) {\n if (!(handle instanceof DataHandleOutput)) {\n return false;\n }\n DataHandleOutput output = (DataHandleOutput) handle;\n if (output.getInputBuffer() == null || !output.getInputBuffer().equals(this.manager.getDataGeneralized().getArray())) {\n ...
"private final void checkAndRethrow() {\n final Throwable t = this.ex.getAndSet(null);\n if (t != null) {\n if (t instanceof Error)\n throw (Error) t;\n if (t instanceof RuntimeException)\n throw (RuntimeException) t;\n else\n throw new RuntimeException(t);\n ...
"private void runUserCodeInTx(TransactionExecutor.Procedure<MapReduceContext> userCode) {\n TransactionContext txContext = new TransactionContext(txClient, context.getDatasetInstantiator().getTransactionAware());\n DynamicBasicMapReduceContext mapReduceContextWithTX = null;\n try {\n txContext.start();\...
"protected static double computeLoudestFreq(FrequenciesState fs, int maxFrequency) {\n double max = 0;\n double freq = 0;\n for (int i = 0; i < maxFrequency / 2; i++) {\n double val = fs.getState()[i].abs();\n freq = (max < val ? i : freq);\n max = (max < val ? val : max);\n }\n retu...
"public boolean loadComments(boolean refresh, boolean loadMore) {\n refreshOnly = refresh;\n String author, postID, comment, dateCreatedFormatted, status, authorEmail, authorURL, postTitle;\n int commentID;\n List<Map<String, Object>> loadedComments = WordPress.wpDB.loadComments(WordPress.currentBlog.getId(...
"public void clearItems() {\n if (ITEMS != null) {\n ITEMS.clear();\n }\n return;\n}\n"
"private int getOffsetLoc(Chunk c) {\n return IntMath.mod(c.getX(), 32) + IntMath.mod(c.getZ(), 32) * 32;\n}\n"
"public void handleException(Exception ex) {\n if (ex != null) {\n logger.fatal(\"String_Node_Str\");\n ex.printStackTrace();\n } else {\n logger.fatal(\"String_Node_Str\");\n }\n}\n"
"public Boolean call() throws Exception {\n HostConfig hostConfig = new HostConfig();\n hostConfig.setNetworkMode(\"String_Node_Str\");\n hostConfig.setPrivileged(true);\n hostConfig.setRestartPolicy(RestartPolicy.alwaysRestart());\n Ports ports = new Ports();\n ports.add(new PortBinding(new Ports.Bin...
"public boolean matches(E item) {\n filterComparables.clear();\n if (filterator == null)\n filterComparables.add((D) item);\n else\n filterator.getFilterValues(filterComparables, item);\n for (int c = 0; c < filterComparables.size(); c++) {\n D filterComparable = filterComparables.get(c...
"private static void toXML(StringBuffer sb, String tagName, Class type, Object obj) {\n Class<?> clazz = obj.getClass();\n if (clazz.isArray()) {\n if (obj.getClass() == INT_ARRAY_CLASS) {\n int[] objs = (int[]) obj;\n for (int i = 0; i < objs.length; i++) {\n sb.append...
"FunctionTypeBuilder inferInheritance(JSDocInfo info) {\n if (info != null) {\n isConstructor = info.isConstructor();\n makesStructs = info.makesStructs();\n makesDicts = info.makesDicts();\n isInterface = info.isInterface();\n if (makesStructs && !isConstructor) {\n rep...
"public Dimension getMinimumSize() {\n Dimension dimension = new Dimension();\n dimension.width = 2 * (ITEM_WIDTH + MARGIN) + MIN_SPACE_BETWEEN_COLUMNS;\n dimension.height = Math.min(HEADER_HEIGHT + HEADER_TOP_MARGIN + Math.max(sourceComponents.size(), cdmComponents.size()) * (ITEM_HEIGHT + MARGIN), maxHeight)...
"public void removeOpenContentProperty(Property property) {\n if (isLogging()) {\n getChangeSummary().setUnsetOCProperty(this, property);\n }\n _getOpenContentProperties().remove(property);\n _getOpenContentPropertiesAttributes().remove(property);\n getInstanceProperties().remove(property);\n f...
"public boolean set(Data dataKey, Object value, long ttl) {\n checkIfLoaded();\n earlyWriteCleanup();\n Record record = records.get(key);\n boolean newRecord = false;\n if (record == null) {\n value = mapService.interceptPut(name, null, value);\n value = mapStoreWrite(dataKey, value, null);...
"public void memberAdded(MembershipEvent membershipEvent) {\n try {\n Member member = membershipEvent.getMember();\n if (member != null && instance.node.isMaster() && urlChanged) {\n ManagementCenterConfigOperation operation = new ManagementCenterConfigOperation(webServerUrl);\n c...
"private ContentElementInfo getEventTarget() {\n IContainerDefn tmpContainerDefn = focus.getContainerDefn();\n if (tmpContainerDefn instanceof SlotDefn)\n return null;\n DesignElement tmpElement = focus.getElement();\n PropertyDefn tmpPropDefn = (PropertyDefn) tmpContainerDefn;\n ContentElementInf...
"public void commitTransaction() throws TransactionException {\n transaction.commit(true);\n}\n"
"String getString(String cacheName, String propertyName) {\n try {\n startSuperTenantFlow();\n Cache<String, String> cache = getCacheManager().getCache(cacheName);\n String value = cache.get(propertyName);\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"String_Node_St...
"protected void renderImpl(GLGraphics g, float w, float h) {\n g.color(Color.RED).fillRect(10, 10, 500, 18);\n g.drawText(\"String_Node_Str\", 10, 10, 500, 18);\n}\n"
"protected <V> ListenableScheduledFuture<V> schedule(Callable<V> callable, long delayInMillis) {\n ListenableRunnableFuture<V> taskFuture = new ListenableFutureTask<V>(false, callable);\n OneTimeTaskWrapper ottw = new OneTimeTaskWrapper(taskFuture, delayInMillis);\n if (delayInMillis == 0) {\n pSchedule...
"public void testForget() {\n final int numVertices = 1500;\n final int numEdges = 3000;\n final int targetVertices = numVertices / 2;\n final int targetEdges = numEdges / 2;\n OCMind m = new OCMind();\n printMemory(\"String_Node_Str\");\n new RandomGraphGenerator(m, numVertices, numEdges);\n as...
"public void optimizeLayout() throws NullPointerException {\n try {\n if (mDevice.isRecoverySupported() || mDevice.isKernelSupported()) {\n if (getIntent().getAction().equals(Intent.ACTION_VIEW)) {\n setContentView(R.layout.flash_as);\n RelativeLayout FlashAsLayout = (...
"public Boolean call() throws Exception {\n try {\n getDSFramework().getInstances(NamespaceId.SYSTEM);\n return true;\n } catch (ServiceUnavailableException sue) {\n return false;\n }\n}\n"
"public void setParent(Shape parent) {\n List<AbstractController> parentList = model.getEntitiesByCategory(\"String_Node_Str\");\n if (!parentList.isEmpty()) {\n ((Group) parentList.get(0).getRepresentation()).getChildren().remove(view.getRepresentation());\n }\n String operator = parent.getProperty(...
"public static void main(String[] args) throws Exception {\n Options options = new Options();\n options.addOption(new Option(HELP_OPTION, \"String_Node_Str\"));\n options.addOption(new Option(JSON_OPTION, \"String_Node_Str\"));\n options.addOption(new Option(TSV_OPTION, \"String_Node_Str\"));\n options.a...
"public Response<T> send() {\n Response<T> response = doOnlineRequest(onlineRequest, cleanStorageOnSuccessDownload, saveDownloadedDataToStorage);\n afterRequests(onlineRequest);\n return response;\n}\n"
"protected String buildDrillAction(IAction action, Object context) {\n String baseURL = null;\n if (context != null) {\n if (context instanceof HTMLRenderContext) {\n baseURL = ((HTMLRenderContext) context).getBaseURL();\n }\n if (context instanceof PDFRenderContext) {\n ...
"public static List loadSorts(InputStream inputStream, int version) throws IOException {\n DataInputStream dis = new DataInputStream(inputStream);\n List sortList = new ArrayList();\n int size = IOUtil.readInt(dis);\n for (int i = 0; i < size; i++) {\n String sortKeyColumn = IOUtil.readString(dis);\n...
"private void fillLocalPullDown(IMenuManager manager) {\n setStatusMenu = new MenuManager(Messages.MultiRosterView_SetStatusAs, null);\n setStatusMenu.add(setAvailableAction);\n setStatusMenu.add(setAwayAction);\n setStatusMenu.add(setDNDAction);\n setStatusMenu.add(setInvisibleAction);\n setStatusMen...
"public CloseableIterator<LeagueList> getManyLeagueList(final Map<String, Object> query, final PipelineContext context) {\n final Platform platform = (Platform) query.get(\"String_Node_Str\");\n Utilities.checkNotNull(platform, \"String_Node_Str\");\n final Tier tier = (Tier) query.get(\"String_Node_Str\");\n ...
"private static TreeSet<Gateway> importGateways(Set<URL> gatewayURLs) throws IntrospectionException {\n logger.finer(\"String_Node_Str\" + gatewayURLs.size() + \"String_Node_Str\");\n TreeSet<Gateway> gateways = new TreeSet<Gateway>();\n for (URL gatewayURL : gatewayURLs) {\n try {\n Gateway ...
"public void createNewUser(String userName) throws SecurityException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException {\n doingWork = true;\n String[] paramTypes = { \"String_Node_Str\", byte[].class.getName(), \"String_Node_Str\" };\n Method createFiles = Callb...
"private void initialize() {\n AbstractMethodDeclaration methodObject1 = this.mapper.getPDG1().getMethod();\n AbstractMethodDeclaration methodObject2 = this.mapper.getPDG2().getMethod();\n MethodDeclaration methodDeclaration1 = methodObject1.getMethodDeclaration();\n MethodDeclaration methodDeclaration2 = m...
"public void close() throws IOException {\n List<IOException> exs = new ArrayList<IOException>(2);\n try {\n if (primaryOpen)\n primary.close();\n } catch (IOException ex) {\n exs.add(ex);\n }\n try {\n if (backupOpen)\n backup.close();\n } catch (IOException...
"public String getValue(String key) throws Exception {\n Object val = null;\n for (ObjectName oname : hadoopObjectNames) {\n try {\n val = mbsc.getAttribute(oname, key);\n } catch (AttributeNotFoundException anfe) {\n continue;\n } catch (ReflectionException re) {\n ...
"protected KeyValueQuery<?> prepareQuery(Object[] parameters) {\n PartTree tree = null;\n if (this.queryMethod.getParameters().getNumberOfParameters() > 0) {\n tree = new PartTree(getQueryMethod().getName(), getQueryMethod().getEntityInformation().getJavaType());\n this.isCount = tree.isCountProject...
"public void start(IReportContent report) {\n logger.log(Level.FINE, \"String_Node_Str\");\n this.report = report;\n writer.open(out, \"String_Node_Str\");\n ReportDesignHandle designHandle = null;\n Report reportDesign = null;\n if (report != null) {\n reportDesign = report.getDesign();\n ...
"private List<Class> breakDownClassesGroupTreeLeaves(Class[] groupsGiven) {\n final List<Class> groupsToCheck = new ArrayList<Class>();\n if (groupsGiven.length > 0) {\n for (Class groupGiven : groupsGiven) {\n addLeavesToList(groupGiven, groupsToCheck);\n }\n }\n return groupsToChe...
"protected void setupHexesGUI() {\n hexes = new ArrayList<GUIHex>();\n hexArray = mapManager.getHexes();\n MapHex mh;\n h = new GUIHex[hexArray.length][hexArray[0].length];\n for (int i = minX; i < hexArray.length; i++) {\n for (int j = minY; j < hexArray[0].length; j++) {\n mh = hexArr...
"public javax.portlet.PortletRequestDispatcher getRequestDispatcher(String path) {\n try {\n RequestDispatcher rd = servletContext.getRequestDispatcher(path);\n return rd == null ? null : new PortletRequestDispatcherImpl(rd, parms);\n } catch (Exception e) {\n return null;\n }\n}\n"
"private void withdrawConsentOld(String healthCode, StudyConsent studyConsent) {\n DynamoUserConsent consentToDelete = new DynamoUserConsent(healthCode, studyConsent);\n consentToDelete.setWithdraw(NOT_WITHDRAW_YET);\n consentToDelete = mapperOld.load(consentToDelete);\n mapperOld.delete(consentToDelete);\n...
"public void setupImageLayout(View layout, final String source) {\n ImageView iv = (ImageView) layout;\n Bitmap b;\n if (!source.equals(\"String_Node_Str\")) {\n try {\n b = BitmapFactory.decodeStream(ReferenceManager._().DeriveReference(source).getStream());\n if (b == null) {\n ...
"public void handleVolumeSync(DataStore store) {\n if (store == null) {\n s_logger.warn(\"String_Node_Str\");\n return;\n }\n long storeId = store.getId();\n String lockString = \"String_Node_Str\" + storeId;\n GlobalLock syncLock = GlobalLock.getInternLock(lockString);\n try {\n ...
"protected void createLogPropertyFiles(File directory) {\n ArgumentNotValid.checkNotNull(directory, \"String_Node_Str\");\n for (Application app : applications) {\n try {\n PrintWriter logPrinter = new PrintWriter(logProp);\n try {\n logfw.write(prop);\n } fi...
"public void onPause() {\n String serverAddress = serverAddressView.getText().toString().trim();\n Object selectedRoomName = roomNameView.getSelectedItem();\n String roomName = \"String_Node_Str\";\n if (selectedRoomName != null) {\n roomName = selectedRoomName.toString().trim();\n }\n editor.p...
"public void put(String key, DataSet dataSet) {\n File file = resolveKey(key);\n File parentDir = file.getParentFile();\n if (!parentDir.exists()) {\n if (!parentDir.mkdirs()) {\n throw new IllegalStateException(\"String_Node_Str\" + parentDir);\n }\n dataSet.save(file);\n }\...
"protected void actionPerformed(GuiButton button) {\n if (tileEntity.getTurret() != null) {\n switch(button.id) {\n case 0:\n {\n this.entityPlayer.openGui(ZhuYaoGangShao.instance, CommonProxy.GUI_PLATFORM_TERMINAL_ID, this.tileEntity.worldObj, this.tileEntity.xCoo...
"public SqlStatement[] generateStatements(Database database) throws UnsupportedChangeException {\n String schemaName = getSchemaName() == null ? database.getDefaultSchemaName() : getSchemaName();\n CreateTableStatement statement = new CreateTableStatement(schemaName, getTableName());\n for (ColumnConfig column...
"protected DatabaseConnection fillCatalogSchema(IMetadataConnection newMetadataConn) {\n MetadataFillFactory instance = MetadataFillFactory.getDBInstance();\n ReturnCode rc = instance.checkConnection(newMetadataConn);\n DatabaseConnection dbConn = null;\n if (rc.isOk()) {\n dbConn = (DatabaseConnecti...
"public static void claimChunk(final CommandContext args, final MyResidence plugin, final Nation nation, final Player player, final Session session) throws MyResidenceException {\n final Town selectedTown = session.getSelectedTown();\n final Chunk playerChunk = player.getLocation().getBlock().getChunk();\n fin...
"public String getToolTip() {\n if (toolTip != null)\n return toolTip;\n else\n return getDefaultToolTip();\n}\n"
"private static void appendWhereStatement(JoinedFlatTableDesc intermediateTableDesc, StringBuilder sql) {\n boolean hasCondition = false;\n StringBuilder whereBuilder = new StringBuilder();\n whereBuilder.append(\"String_Node_Str\");\n CubeDesc cubeDesc = intermediateTableDesc.getCubeDesc();\n if (cubeDe...
"public ArrayList<String> getIssueUsersExceptMe() {\n if (timeline == null)\n return null;\n ArrayList<String> users = new ArrayList<String>();\n for (IssueEvent event : timeline) {\n String userLoginId = event.getUser() == null ? event.getActor().getLogin() : event.getUser().getLogin();\n ...
"private void addToHttpQueue(String json, String endPoint, String httpMethod) {\n LQQueue queuedEvent = new LQQueue(endPoint, httpMethod, json);\n mHttpQueue.add(queuedEvent);\n if (mHttpQueue.size() > LIQUID_QUEUE_SIZE_LIMIT) {\n mHttpQueue.remove(0);\n }\n LQQueue.saveQueue(mContext, mHttpQueue,...
"public void testDeprecatedStaticFlip() {\n RoaringBitmap rb1 = RoaringBitmap.flip(new RoaringBitmap(), 300000, 500000);\n RoaringBitmap rb2 = RoaringBitmap.flip(new RoaringBitmap(), 300000L, 500000L);\n assertTrue(rb1.equals(rb2));\n RoaringBitmap.flip(rb1, Integer.MAX_VALUE + 300000, Integer.MAX_VALUE + 5...
"public void processLineOut(final String line) {\n if (DownloadInfo.isProgress(line)) {\n final DownloadInfo dinf = new DownloadInfo(line);\n final double c = dinf.progress / 100.0;\n double base = (double) (current - 1) / (double) total;\n base += c / total;\n StepDownload.this.re...
"private void processSequence(ShortKmer startKmer) {\n int value = hm.get(startKmer.toLong());\n StringBuilder sequenceSB = new StringBuilder(startKmer.toString());\n long seqWeight = value;\n int minWeight = value, maxWeight = value;\n ShortKmer kmer = new ShortKmer(startKmer);\n while (true) {\n ...
"private String getFinalAccessStatement(CodeBlock.Builder codeBuilder, boolean isModelContainerAdapter, String statement) {\n String finalAccessStatement = statement;\n if (columnAccess instanceof TypeConverterAccess || isModelContainerAdapter) {\n finalAccessStatement = getRefName();\n TypeName typ...
"public boolean isFertile() {\n return GrowthRequirements.getGrowthRequirement(this.seed, this.seedMeta).canGrow(this.worldObj, this.xCoord, this.yCoord, this.zCoord);\n}\n"
"public AbstractRecord buildRowFromPrimaryKeyValues(Vector key, AbstractSession session) {\n AbstractRecord databaseRow = createRecord(key.size(), session);\n int keySize = key.size();\n for (int index = 0; index < keySize; index++) {\n DatabaseField field = this.descriptor.getPrimaryKeyFields().get(ind...
"public void manifestBasedCacheHit() throws Exception {\n DefaultDependencyFileRuleKeyFactory depFilefactory = new DefaultDependencyFileRuleKeyFactory(FIELD_LOADER, fileHashCache, pathResolver, ruleFinder);\n BuildTarget target = BuildTargetFactory.newInstance(\"String_Node_Str\");\n BuildRuleParams params = n...
"public Method getAuditedMethod(HandlerMethod controllerMethod) {\n RequestMapping methodMapping = AnnotationUtils.findAnnotation(controllerMethod.getMethod(), RequestMapping.class);\n RequestMapping controllerMapping = AnnotationUtils.findAnnotation(controllerMethod.getMethod().getDeclaringClass(), RequestMappin...
"public void testBasic4() 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 = columnEdge.cr...
"public void widgetSelected(SelectionEvent e) {\n testButton.setEnabled(false);\n try {\n if (testConnection()) {\n MessageDialog.openInformation(getShell(), JdbcPlugin.getResourceString(\"String_Node_Str\"), JdbcPlugin.getResourceString(\"String_Node_Str\"));\n } else {\n Exce...
"public float getGroupExpandFraction() {\n int visibleChildrenExpandedHeight = getVisibleChildrenExpandHeight();\n int minExpandHeight = getCollapsedHeight();\n float factor = (mActualHeight - minExpandHeight) / (float) (visibleChildrenExpandedHeight - minExpandHeight);\n return Math.max(0.0f, Math.min(1.0f...
"public void testBindingFormatList() throws Exception {\n List<Object> inputFiles = new ArrayList<Object>();\n inputFiles.add(new File(FILE_OXM_XML));\n inputFiles.add(new InputSource(new FileInputStream(INPUT_SRC_OXM_XML)));\n inputFiles.add(new FileInputStream(INPUT_STRM_OXM_XML));\n inputFiles.add(new...
"protected boolean playAbility(ActivatedAbility ability, Game game) {\n if (ability.isUsesStack()) {\n if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.ACTIVATE_ABILITY, ability.getId(), ability.getSourceId(), playerId))) {\n int bookmark = game.bookmarkState();\n ability.ne...
"public ItemStack decrStackSize(ItemStack me, int slot, int size) {\n NBTTagCompound plateNBT = getPlateNBT(me);\n if (plateNBT != null) {\n ItemStack toBeRemoved = new ItemStack(plateNBT.getCompoundTag(\"String_Node_Str\"));\n me.getTagCompound().removeTag(\"String_Node_Str\");\n return toBe...
"public String toString() {\n StringBuilder sb = new StringBuilder(64);\n for (int i = 0, n = list.size(); i < n; i++) {\n Pair<String, String> pair = list.get(i);\n if (i > 0) {\n sb.append(\"String_Node_Str\");\n }\n sb.append(pair.left);\n sb.append('=');\n ...
"public boolean cancel(String uuid, boolean interrupt) {\n final CallableProcessor processor = submittedTasks.remove(uuid);\n if (processor != null && processor.cancel(interrupt)) {\n processor.sendResponse(new CancellationException());\n getLocalExecutorStats(processor.name).cancelExecution();\n ...
"public void addClassFile(UnwovenClassFile classFile) {\n addedClasses.add(classFile);\n if (null != sourceJavaClasses.put(classFile.getClassName(), classFile)) {\n }\n world.addSourceObjectType(classFile.getJavaClass());\n}\n"
"public static List<File> exportNodeAS(List<Tag> allTags, AbortRetryIgnoreHandler handler, List<TagNode> nodeList, String outdir, ExportMode exportMode, AtomicInteger index, int count, EventListener ev) throws IOException {\n File dir = new File(outdir);\n List<File> ret = new ArrayList<>();\n if (!outdir.ends...
"public void testTimedFlushConsumerStateWhenAutoCommitIsDisabled() throws InterruptedException {\n final SidelineConsumerConfig config = getDefaultSidelineConsumerConfig(topicName);\n config.setConsumerStateAutoCommit(false);\n config.setConsumerStateAutoCommitIntervalMs(1000);\n PersistenceManager mockPers...
"public static String toString(Model model) {\n String result = \"String_Node_Str\";\n for (final StmtIterator i = model.listStatements(); i.hasNext(); ) {\n final Statement stmt = i.nextStatement();\n result += PrintUtil.print(stmt) + Parser.NL;\n }\n return result;\n}\n"
"void sendRequestMessage(Request mes, Contact to, Message message) {\n CallIdHeader call = (CallIdHeader) mes.getHeader(CallIdHeader.NAME);\n String callid = call.getCallId();\n AuthorizationHeader authorization = sipProvider.getSipSecurityManager().getCachedAuthorizationHeader(callid);\n if (authorization ...
"public void updateSerializer(SSerializerPluginConfiguration serializer) throws ServerException, UserException {\n requireRealUserAuthentication();\n DatabaseSession session = getBimServer().getDatabase().createSession();\n try {\n SerializerPluginConfiguration convert = session.get(serializer.getOid(),...
"private void populateAggregationSort(CubeQueryExecutor executor, CubeQueryExecutorHelper cubeQueryExcutorHelper, int type) throws DataException {\n List columnSort;\n switch(type) {\n case ICubeQueryDefinition.COLUMN_EDGE:\n columnSort = executor.getColumnEdgeSort();\n break;\n ...
"public Dimension getPreferredSize(int wHint, int hHint) {\n Dimension dimension = new Dimension(0, CONTROL_SIZE.height);\n List list = getChildren();\n for (int i = 0; i < list.size(); i++) {\n Figure figure = (Figure) list.get(i);\n dimension.width = dimension.width + figure.getSize().width;\n ...
"public final void writeTo(Object object, Class<?> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, Object> httpHeaders, OutputStream entityStream) throws IOException, WebApplicationException {\n try {\n Class<?> domainClass = getDomainClass(genericType);\n ...
"protected final void renderFittingCurve(IPrimitiveRenderer ipr, Location[] points, CurveFitting curve, boolean bShowAsTape, boolean bDeferred) throws ChartException {\n if (!curve.getLineAttributes().isSetVisible()) {\n throw new ChartException(ChartEnginePlugin.ID, ChartException.RENDERING, \"String_Node_St...