content
stringlengths
40
137k
"public void save() {\n boolean postProcessModified = model.getForm().postProcessModel();\n if (!model.isSaved() || postProcessModified) {\n FormDef form = model.getForm();\n IStorageUtility instances = StorageManager.getStorage(DataModelTree.STORAGE_KEY);\n DataModelTree instance = (DataMode...
"private static long getSizeOfPhysicalMemoryForMac() {\n try {\n Process proc = Runtime.getRuntime().exec(\"String_Node_Str\");\n bi = new BufferedReader(new InputStreamReader(proc.getInputStream()));\n String line;\n while ((line = bi.readLine()) != null) {\n if (line.startsWi...
"public TreeOperation handleBackspaceOnTextNode(Range caret) {\n int pos = caret.getStartOffset();\n Node startContainer = caret.getStartContainer();\n List<Integer> path = TreeHelper.getLocator(startContainer);\n TreeOperation op = null;\n Node ancestorBelowParagraph = getAncestorBelowParagraph(startCon...
"protected void applyCustomSections() {\n ChartBindingGroupDescriptorProvider bindingProvider = new ChartBindingGroupDescriptorProvider();\n bindingProvider.setRefrenceSection(((BindingGroupSection) getSection(PageSectionId.BINDING_GROUP)));\n ((BindingGroupSection) getSection(PageSectionId.BINDING_GROUP)).set...
"public Object visitObjectFieldAccessNode(ObjectFieldAccessNode node, LinkedList args) {\n NameContext subCtx = new NameContext((NameContext) args.get(0));\n subCtx.resolveAsObject = true;\n node.setObject((ExprNode) (node.getObject().accept(this, TNLManip.cons(subCtx))));\n return node;\n}\n"
"public void defineAggregation(AggregationDefinition aggregationDefinition) {\n DefinitionParserHelper.validateDefinition(aggregationDefinition, streamDefinitionMap, tableDefinitionMap, windowDefinitionMap, aggregationDefinitionMap);\n aggregationDefinitionMap.putIfAbsent(aggregationDefinition.getId(), aggregatio...
"public void testCreateClusterBySpecFile() throws Exception {\n CookieCache.put(\"String_Node_Str\", \"String_Node_Str\");\n DistroRead[] distros = new DistroRead[1];\n DistroRead distro = new DistroRead();\n distro.setName(Constants.DEFAULT_DISTRO);\n List<String> roles = new ArrayList<String>();\n r...
"public final int[] readHighScores() {\n File file = new File(Environment.getExternalStorageDirectory() + \"String_Node_Str\");\n FileInputStream fis = null;\n int[] scores = new int[5];\n try {\n fis = new FileInputStream(file);\n XmlPullParser parser = Xml.newPullParser();\n parser.se...
"private void addTable(EventList<DownloadItem> list, String title, DownloadState... states) {\n final JXCollapsiblePane collapsePane = new JXCollapsiblePane();\n collapsePane.setLayout(new BorderLayout());\n EventList<DownloadItem> filterList = new FilterList<DownloadItem>(list, new DownloadStateMatcher(states...
"public void setXmlMarshaller(XMLMarshaller xmlMarshaller) {\n getXMLHelperDelegate().setXmlMarshaller(xmlMarshaller);\n}\n"
"private int getErrors(int trial) {\n int errors = 0;\n for (int i = 0, n = _patterns.size(); i < n; ++i) {\n ListPattern target = _responses.get(trial).get(i).clone();\n ListPattern response = _patterns.get(i).getSecond().clone();\n target.setNotFinished();\n response.setNotFinished()...
"public void onAnimationEnd(Animator animation) {\n dismissView.setTag(R.id.original_height, originalHeight);\n mCallback.onDismiss(mListView, dismissPosition);\n mDismissing = false;\n}\n"
"public LoadBalancer createLoadBalancer(EcsClusterMetadata clusterMetadata, EcsPushDefinition definition) {\n String appName = definition.getAppName();\n EcsPortHandler portHandler = new EcsPortHandler();\n String protocol = definition.getService().getProtocol();\n if (protocol == null) {\n protocol ...
"public boolean apply(Game game, Ability source) {\n ExileZone exile = game.getExile().getExileZone(source.getSourceId());\n Card sourceCard = game.getCard(source.getSourceId());\n if (exile != null && sourceCard != null) {\n LinkedList<UUID> cards = new LinkedList<>(exile);\n for (UUID cardId : ...
"public Set<Object> getDistinctValues() {\n if (!distinctComputed) {\n computeDistinctValues();\n }\n return distinctValues;\n}\n"
"public ExactRelation visitQuery_specification(VerdictSQLParser.Query_specificationContext ctx) {\n List<ExactRelation> tableSources = new ArrayList<ExactRelation>();\n for (Table_sourceContext s : ctx.table_source()) {\n TableSourceExtractor e = new TableSourceExtractor();\n ExactRelation r1 = e.vi...
"public void initGui() {\n super.initGui();\n titleString = new BeefGuiLabel(this, _entity.getInventoryName(), guiLeft + 8, guiTop + 6);\n fluidBar = new BeefGuiFluidBar(this, guiLeft + 8, guiTop + 16, _entity, 0);\n powerBar = new BeefGuiPowerBar(this, guiLeft + 148, guiTop + 16, _entity);\n progressArr...
"public Set<IType> getSubTypes(IType superType) {\n if (subTypeMap.containsKey(superType)) {\n Set<IType> subTypes = subTypeMap.get(superType);\n LinkedHashSet<IType> subTypesOfAbstractSubTypes = new LinkedHashSet<IType>();\n try {\n for (IType subType : subTypes) {\n i...
"private void processEnvelopeWithBuffer(final TransferEnvelope transferEnvelope, final TransferEnvelopeReceiverList receiverList, final boolean freeSourceBuffer) {\n if (!freeSourceBuffer) {\n final List<ChannelID> localReceivers = receiverList.getLocalReceivers();\n if (localReceivers.size() != 1) {\n...
"public Result readAll() {\n notificationManager.markAllAsRead(Component.currentAccount());\n flash(\"String_Node_Str\", messagesApi.get(Lang.defaultLang(), \"String_Node_Str\"));\n return Secured.nullRedirect(request());\n}\n"
"public static int getTotalPages(String query) {\n int numPages = 0;\n try {\n Document document = Jsoup.connect(Constants.FUNCTION_SEARCH + \"String_Node_Str\" + Constants.PARAM_QUERY + \"String_Node_Str\" + URLEncoder.encode(query)).timeout(Constants.TIMEOUT).get();\n Element div = document.select...
"public Result evaluateBuildResult(final BuildListener listener, int errorsCount, int newErrorsCount, KloConfig kloConfig, Map<String, String> matrixBuildVars) {\n String failureThreshold = kloConfig.getConfigSeverityEvaluation().getFailureThreshold();\n String newFailureThreshold = kloConfig.getConfigSeverityEva...
"public static int wtf(String tag, String msg, Throwable tr) {\n return Log.wtf(Log.LOG_ID_SYSTEM, tag, msg, tr, false, true);\n}\n"
"public static int rowNumber(int index, INDArray arr) {\n double otherTest = ((double) index) / arr.size(-1);\n int test = (int) Math.floor(otherTest);\n int vectors = arr.vectorsAlongDimension(-1);\n if (test >= vectors)\n return vectors - 1;\n return test;\n}\n"
"public List<IArgumentInfo> getArguments() {\n List<IArgumentInfo> arguments = new ArrayList<IArgumentInfo>();\n period1 = new ArgumentInfo(IArgumentInfo.PERIOD_1, Message.getMessage(ResourceConstants.TIMEFUNCITON_PERIOD1_DISPLAYNAME), Message.getMessage(ResourceConstants.TIMEFUNCITON_PERIOD1), false);\n perio...
"private StudyEventBean createNewStudyEventBean(StudyEventDefinitionBean sedBean, StudySubjectBean studySubjectBean) {\n int ordinal = getStudyEventDao().getMaxSampleOrdinal(sedBean, studySubjectBean);\n StudyEventBean testStudyEventBean = (StudyEventBean) getStudyEventDao().findByStudySubjectIdAndDefinitionIdAnd...
"public void postDel(Del operation, FCNode node) {\n for (Object n : node.getElements()) {\n postDel(operation, node);\n tree.getMap().remove(((FCNode) n).getId());\n }\n}\n"
"public void run() {\n try {\n doRun();\n } catch (Throwable e) {\n handleProcessingFailure(e);\n }\n}\n"
"private void attributesEdgeColumns(AttributeModel attributeModel) {\n List<AttributeColumn> cols = new ArrayList<AttributeColumn>();\n if (exportAttributes && attributeModel != null) {\n for (AttributeColumn column : attributeModel.getEdgeTable().getColumns()) {\n if (!isEdgeDefaultColumn(colum...
"public static GameManifest createGameManifest(final UniverseWrapper universeWrapper, final ModuleManager moduleManager, final Config config) {\n GameManifest gameManifest = new GameManifest();\n if (StringUtils.isNotBlank(universeWrapper.getGameName())) {\n gameManifest.setTitle(universeWrapper.getGameNam...
"public String toString() {\n return \"String_Node_Str\" + pseudoClass + (!arguments.isEmpty() ? new String(\"String_Node_Str\" + arguments + \"String_Node_Str\") : \"String_Node_Str\");\n}\n"
"protected String[] getExtensionIdsToActivate(String perspectiveId) {\n if (perspectiveFilterExtensionsReader == null) {\n perspectiveFilterExtensionsReader = new PerspectiveFilterRegistryReader(getActionProviderId());\n perspectiveFilterExtensionsReader.readRegistry();\n }\n INavigatorContentSer...
"private void populateDimensionAxis(IAggregationResultSet rs, BirtEdgeView view) throws IOException {\n List dimensionAxisList = new ArrayList();\n int index = -1, levelIndex = -1;\n if (!isCalculatedMember) {\n ILevelDefinition mirrorStartLevel = null;\n if (view.getMirroredDefinition() != null)...
"private void syncModel(int min, int max) {\n RowRenderer renderer = null;\n final int newsz = _model.getSize();\n final int oldsz = _rows != null ? _rows.getChildren().size() : 0;\n if (oldsz > 0) {\n if (newsz > 0 && min < oldsz) {\n if (max < 0 || max >= oldsz)\n max = ol...
"public void showPrompt(int taskId, boolean allowCancel) {\n try {\n clearPrompt();\n } catch (IllegalArgumentException e) {\n }\n this.taskId = taskId;\n mRequestWindow = new RequestWindowView(mContext, allowCancel);\n mRequestWindow.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE);\n ...
"protected String canonizePath(String path, String separator, String tildeReplacement) throws MalformedURLException {\n if (!path.equals(\"String_Node_Str\")) {\n int pos;\n int pos2 = 0;\n String dir;\n String dirWS;\n Vector pathV = new Vector();\n while ((pos = pos2) != -...
"public void jobStateChange(StateEvent event) {\n StateCondition condition = StateConditions.ACTIVE;\n if (condition.test(event.getState())) {\n logger().info(\"String_Node_Str\");\n action.set(new AsyncAction());\n }\n}\n"
"public void fire() throws CloneNotSupportedException, IllegalActionException {\n if (_firstFiring) {\n DECQDirector dir = ((DECQDirector) getDirector());\n if (dir == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n _plot.setXRange(dir.getStartTime(...
"public void setHeaderInfo(float rFree, float rWork, float resolution, String title, String depositionDate, String releaseDate, String[] experimnetalMethods) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"String_Node_Str\");\n PDBHeader pdbHeader = structure.getPDBHeader();\n pdbHeader.setTitle(title)...
"public boolean testConnection(String driverClassName, String connectionString, String jndiNameUrl, String userId, String password) throws OdaException {\n boolean canConnect = false;\n try {\n if (getDriverConnectionFactory(driverClassName) != null) {\n tryCreateConnection(driverClassName, conn...
"private String generatePaginator() {\n boolean in_leading_range = false;\n boolean in_trailing_range = false;\n List<Integer> pages_outside_leading_range = new ArrayList<Integer>();\n List<Integer> pages_outside_trailing_range = new ArrayList<Integer>();\n List<Integer> page_numbers;\n if (totalPages...
"public boolean equals(Object o) {\n if (o instanceof PasswordCredential) {\n PasswordCredential pc = (PasswordCredential) o;\n if (pc.getUser().equals(username) && Arrays.equals(pc.getPassword(), password) && pc.getRealm().equals(realm)) {\n return true;\n }\n }\n return false;...
"private static int getMaxHorProd(int[][] grid) {\n int product = 1;\n int maxProduct = 0;\n for (int[] element : grid) {\n for (int c = 0; c < element.length - 3; c++) {\n for (int i = c; i < c + 4; i++) {\n product *= element[i];\n }\n maxProduct = Math....
"public File getNewFile() throws IOException {\n final String startTimestamp = IsoDateFormat.formatCurrentDate();\n final String endTimestamp = \"String_Node_Str\";\n String fileName = String.format(FILENAME_TEMPLATE, startTimestamp, endTimestamp);\n return new File(logDir, fileName);\n}\n"
"protected void reloadDataproviderAndFillConnCombo() {\n Collection<Connection> connections = ProxyRepositoryViewObject.getAllDatabaseConnections(true);\n Collection<Connection> mdmConne = ProxyRepositoryViewObject.getAllMDMConnections(true);\n connections.addAll(mdmConne);\n int index = 0;\n connCombo.r...
"public void onClick(View v) {\n View myView = ((RevealFrameLayout) mCardsGroup.getChildAt(0)).getChildAt(0);\n int cx = myView.getRight() - 100;\n int cy = myView.getBottom() - 100;\n int finalRadius = Math.max(myView.getWidth(), myView.getHeight()) + 100;\n Animator animator = ViewAnimationUtils.create...
"private ListResult<T> doListTypeRequest(HttpUriRequest request) throws SocializeException {\n List<T> results = null;\n List<ActionError> errors = null;\n HttpEntity entity = null;\n ListResult<T> result = null;\n try {\n HttpClient client = clientFactory.getClient();\n HttpResponse respon...
"public Bitstream getFirstBitstream(int itemId, String bundleName) throws SQLException {\n TableRowIterator tri = null;\n try {\n tri = DatabaseManager.query(context, SELECT_FIRST_BITSTREAM_ID, itemId, bundleName);\n if (tri.hasNext()) {\n TableRow row = tri.next();\n int bid =...
"static void enforceConsistency(Name<?> resourceName, String managerId, DataSet newState, DataSet currentState) throws InvalidContentException {\n ManagedIndividualId id = ManagedIndividualId.createId(resourceName, managerId);\n LOGGER.debug(\"String_Node_Str\", format(id));\n LOGGER.trace(\"String_Node_Str\",...
"protected boolean getIfMemoryMapped() {\n if (getConfig() != null) {\n String useMemMapped = (String) getConfig().get(Config.USE_MEMORY_MAPPED_BUFFERS);\n if (useMemMapped != null && useMemMapped.toLowerCase().equals(\"String_Node_Str\")) {\n return false;\n }\n }\n return true...
"public static List<String> splitAndTrim(final String value, final String separator) {\n return com.navercorp.pinpoint.common.util.StringUtils.tokenizeToStringList(value, separator);\n}\n"
"public boolean verifyAuthToken(String token) {\n String[] parts = User.decodeAuthToken(token);\n long expiry = parts.length <= 1 ? 0L : Long.parseLong(parts[1]);\n boolean isExpired = expiry < System.currentTimeMillis();\n return isEnabled() && !isExpired && createAuthToken(expiry).equals(token);\n}\n"
"public static boolean teleportPlayer(Player player, HumanNPC npc) {\n Wizard wizard = npc.getType(\"String_Node_Str\");\n if (wizard.getNumberOfLocations() > 0) {\n if (decreaseMana(player, npc, 5)) {\n player.teleport(wizard.getCurrentLocation());\n return true;\n }\n ...
"public static ImageInfoRet call(String url) {\n CallRet ret = new Client().call(makeRequest(url));\n return new ImageInfoRet(ret);\n}\n"
"private Manifest getManifest(ExportFileResource libResource, List<ProcessItem> itemToBeExport, String bundleName) throws IOException {\n Analyzer analyzer = new Analyzer();\n Jar bin = new Jar(classesLocation);\n analyzer.setJar(bin);\n String symbolicName = bundleName;\n Project project = ProjectManage...
"private NodeTemplateDTO createNodeTemplate(CSARID csarId, QName serviceTemplateId, String nodeTemplateId) {\n final NodeTemplateDTO currentNodeTemplate = new NodeTemplateDTO();\n currentNodeTemplate.setId(nodeTemplateQName.toString());\n currentNodeTemplate.setName(nodeTemplateQName.toString());\n currentN...
"public int getEndIndex() {\n int endIndex = sortedSource.indexOfSimulated(new Integer(upperThreshold));\n while (endIndex < sortedSource.size() && sourceIndexToThreshold(endIndex) == upperThreshold) endIndex++;\n return Math.max(getStartIndex(), endIndex);\n}\n"
"public void adjustTargets(Ability ability, Game game) {\n if (ability instanceof SpellAbility && KickedCondition.getInstance().apply(game, ability)) {\n ability.getTargets().clear();\n ability.addTarget(new TargetNonlandPermanent(2));\n }\n}\n"
"private static int getMaxIndex(FrequenciesState fs, int low, int high) {\n int max = 0;\n int maxIndex = 0;\n int realhigh = Math.min(high, fs.getState().length);\n for (int i = low; i < realhigh; i++) {\n if (max < fs.getState()[i].abs()) {\n max = (int) Math.ceil(fs.getState()[i].abs())...
"public void handle(MouseEvent event) {\n Profile.PairCameraPosition currentCamPos = (Profile.PairCameraPosition) CamPosCheckbox.this.getTableView().getItems().get(CamPosCheckbox.this.getIndex());\n try {\n if (cellCheckbox.isSelected()) {\n if (checkboxTyp.equals(\"String_Node_Str\")) {\n ...
"private boolean isSubproblemRoot(Node n) {\n boolean passes = n.equals(root);\n if (!passes) {\n return subproblemIds.contains(Long.valueOf(((String) n.getProperty(NodeProperty.TAX_UID.propertyName, null))));\n }\n return passes;\n}\n"
"private boolean proxyReturnBoolean(final EventId eventId, final Consumer<ValueOut> consumer) {\n final long startTime = Time.currentTimeMillis();\n return readBoolean(sendEvent(startTime, eventId, consumer), startTime);\n}\n"
"public void registerExtenderCallbacks(final IBurpExtenderCallbacks callbacks) {\n callbacks.setExtensionName(\"String_Node_Str\");\n this.callbacks = callbacks;\n this.helpers = callbacks.getHelpers();\n stdout = new PrintWriter(callbacks.getStdout(), true);\n stderr = new PrintWriter(callbacks.getStder...
"public void setSource(final int queryIndex, final CharSequence sourceQuery, final CharSequence sourceQual, final CharSequence cigar, final CharSequence md, final int position, final boolean reverseStrand) {\n final String cigarString = cigar.toString();\n if (!cigarString.contains(N_STRING)) {\n numEntrie...
"protected void keyTyped(char par1, int par2) {\n if (par2 == 1)\n mc.thePlayer.closeScreen();\n } else if (par1 == 13) {\n updateHeat(0);\n } else if (textboxHeat != null && textboxHeat.isFocused() && (Character.isDigit(par1) || par1 == 0 || par1 == 8)) {\n textboxHeat.textboxKeyTyped(par...
"public SortedMap<ArtifactDescriptor, PluginClass> call(DatasetContext context) throws Exception {\n Table metaTable = getMetaTable(context);\n ArtifactCell parentCell = new ArtifactCell(parentArtifactId);\n byte[] parentDataBytes = metaTable.get(parentCell.rowkey, parentCell.column);\n if (parentDataBytes ...
"public void endTurn(int turnTime, boolean advanceTime) {\n if (advanceTime) {\n minutesPassed += turnTime;\n setResponses(currentDialogueNode, false);\n }\n handleAtmosphericConditions(turnTime);\n NPCMap.entrySet().removeIf(e -> (e.getValue().getLocationPlace().getPlaceType() != Dominion.CIT...
"protected void onConnectionAborted(int endpoint) {\n if (isServer()) {\n } else {\n String pendingCommand;\n if ((pendingCommand = this._commandQueue.peek()) != null) {\n Vector<String> args = new Vector<String>();\n args.add(\"String_Node_Str\");\n args.add(String....
"private String getHost(HttpMethod httpMethod) {\n try {\n URI url = httpMethod.getURI();\n return getEndpoint(url.getHost(), url.getPort());\n } catch (URIException e) {\n logger.error(\"String_Node_Str\", e);\n }\n return null;\n}\n"
"protected void onActivityResult(int requestCode, int resultCode, Intent intent) {\n switch(requestCode) {\n case BARCODE_FETCH:\n processBarcodeFetch(resultCode, intent);\n break;\n case CALLOUT:\n processCalloutResult(resultCode, intent);\n break;\n ...
"public static void foundAdjacent(Cube c1, int e1, Cube c2, int e2) {\n if (c1.adjacencyAlong(e1) == null && c2.adjacencyAlong(e2) == null) {\n if (activeGame != null) {\n activeGame.cubesJoined(c1, e1, c2, e2);\n }\n c1.joinedCube(c2, e1);\n }\n if (c2.adjacencyAlong(e2) == nul...
"public static String printRequestParameters(HttpServletRequest request) {\n String requestParameters = \"String_Node_Str\";\n for (Enumeration<?> f = request.getParameterNames(); f.hasMoreElements(); ) {\n String paramet = new String(f.nextElement().toString());\n requestParameters += paramet + \"S...
"private void getConnFromNode() {\n DriverShim wapperDriver = null;\n try {\n List list = null;\n if (dbType.equals(EDatabaseTypeName.GENERAL_JDBC.getDisplayName())) {\n list = ExtractMetaDataUtils.connect(trueDBTypeForJDBC, url, username, pwd, driverClassName, driverJarPath, dbVersion, a...
"public static void packageWarsToEar(LibertyServer server, String dir, String earName, boolean addEarResources, String... warFiles) throws Exception {\n String baseDir = DIR_PUBLISH + server.getServerName() + \"String_Node_Str\" + dir + \"String_Node_Str\";\n EnterpriseArchive ear = ShrinkWrap.create(EnterpriseAr...
"private void updateProperty() {\n Object updateObject = result.getUpdateObject();\n if (updateObject == null) {\n return;\n }\n if (updateObject instanceof Node) {\n Node node = (Node) updateObject;\n boolean update = false;\n boolean isXsdPath = false;\n Object parameter...
"public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + number;\n return result;\n}\n"
"public void completionOfOutboxShouldLeadToHangup() {\n ivrContext.callState(CallState.OUTBOX);\n ivrContext.outboxCompleted(true);\n String patientId = \"String_Node_Str\";\n tamaIVRContextForTest.patientId(patientId);\n assertEquals(TAMACallFlowController.HANG_UP_URL, tamaCallFlowController.urlFor(kooK...
"public static IEditorPart getActiveEditor(String id) {\n IWorkbenchPage tPage = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\n if (tPage == null)\n return null;\n IEditorPart activeEditPart = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor()...
"public boolean shouldTestPassInMemory(ReadAllExpressionTest test) {\n String name = test.getName();\n if ((name.indexOf(\"String_Node_Str\") > -1) || (name.indexOf(\"String_Node_Str\") > -1) || (name.indexOf(\"String_Node_Str\") > -1) || (name.indexOf(\"String_Node_Str\") > -1) || (name.equals(\"String_Node_Str\...
"public Net cloneFlagged() {\n Net clonedNet = new Net();\n for (Node node : nodes) {\n if (node.getFlag()) {\n clonedNet.addNode(node.clone());\n }\n }\n for (Edge edge : edges) {\n Node orig = edge.getOrigin();\n Node targ = edge.getTarget();\n if (orig.isFlag...
"private void storeUnAlignedSeqRes(Structure structure, List<Chain> seqResChains) {\n SeqRes2AtomAligner aligner = new SeqRes2AtomAligner();\n for (int i = 0; i < structure.nrModels(); i++) {\n List<Chain> atomList = structure.getModel(i);\n for (Chain seqRes : seqResChains) {\n Chain ato...
"public LSN restart() throws BabuDBException {\n if (!this.stopped)\n throw new BabuDBException(ErrorCode.IO_ERROR, \"String_Node_Str\");\n databaseManager.reset();\n dbCheckptr = new CheckpointerImpl(this);\n LSN dbLsn = null;\n LSN zero = new LSN(0, 0L);\n for (Database dbRaw : databaseManage...
"public void fire() throws IllegalActionException {\n Director director = getDirector();\n if (director == null) {\n throw new IllegalActionException(this, \"String_Node_Str\");\n }\n if (input.hasToken(0)) {\n RecordToken record = (RecordToken) input.get(0);\n Iterator labels = record....
"private static void extractTbz(final String tbzPath, final String targetDir) throws IOException {\n try (final FileInputStream fin = new FileInputStream(tbzPath);\n final BufferedInputStream in = new BufferedInputStream(fin);\n final ByteArrayOutputStream tarOut = new ByteArrayOutputStream();\n ...
"protected void loadEmitterExtensionDefns() {\n IExtension[] exts = getExtensions(EXTENSION_POINT_EMITTERS);\n if (exts == null) {\n return;\n }\n for (int i = 0; i < exts.length; i++) {\n String namespace = exts[i].getNamespace();\n IConfigurationElement[] configs = exts[i].getConfigur...
"public void test() throws InterruptedException, IOException {\n YamlLogging.setAll(false);\n String data = generateValue();\n final ConcurrentMap<String, String> map;\n final String type = System.getProperty(\"String_Node_Str\", \"String_Node_Str\");\n map = tree.acquireMap(NAME, String.class, String.cl...
"public static Vector3f normal(BakedQuad quad) {\n int[] data = quad.getVertexData();\n int step = data.length / 4;\n data = Arrays.copyOf(data, data.length);\n Point3f[] positions = new Point3f[3];\n for (int i = 0; i < 3; i++) {\n Point3f vec = new Point3f();\n vec.x = Float.intBitsToFloa...
"public boolean execute(Player plr, String... args) {\n PlotWorld plotworld = PlotMain.getWorldSettings(plr.getWorld());\n if (args.length > 0 && args[0].equalsIgnoreCase(\"String_Node_Str\")) {\n StringBuilder msg = new StringBuilder();\n for (C c : C.values()) {\n msg.append(c.s() + \"S...
"public void merge(MessageDrivenBeanMetaData override, MessageDrivenBeanMetaData original) {\n super.merge(override, original);\n if (override != null && override.getAcknowledgeMode() != null)\n this.acknowledgeMode = override.getAcknowledgeMode();\n else if (original != null)\n this.acknowledgeM...
"public boolean canInsertItem(int slot, ItemStack stack, int side) {\n if (slots[slot] != null) {\n int availSpace = this.getInventoryStackLimit() - slots[slot].stackSize;\n if (availSpace > 0) {\n return true;\n }\n } else if (isItemValidForSlot(slot, stack)) {\n return tru...
"public void stop() throws ServiceRegistrationException {\n final Callable<CheckedListenableFuture<Cluster>> transition = Automata.sequenceTransitions(this, State.DISABLED, State.STOPPED);\n try {\n Automata.sequenceTransitions(this, State.DISABLED, State.STOPPED).call().get();\n } catch (InterruptedExc...
"protected void configure() {\n bind(ProgramStateWriter.class).to(MessagingProgramStateWriter.class);\n MapBinder<ProgramType, ProgramRunner> defaultProgramRunnerBinder = MapBinder.newMapBinder(binder(), ProgramType.class, ProgramRunner.class);\n defaultProgramRunnerBinder.addBinding(ProgramType.FLOW).to(Distr...
"public void openEditor(Item item) {\n PatternItemEditorInput analysisEditorInput = new PatternItemEditorInput(item);\n CorePlugin.getDefault().openEditor(analysisEditorInput, PatternEditor.class.getName());\n}\n"
"public void sign(Bundle params) {\n params.putBoolean(OpenPgpConstants.PARAMS_REQUEST_ASCII_ARMOR, true);\n InputStream is = getInputstream(false);\n final ByteArrayOutputStream os = new ByteArrayOutputStream();\n OpenPgpApi api = new OpenPgpApi(this, mCryptoServiceConnection.getService());\n api.sign(p...
"public void removeLogListener(LogListener logListener) {\n lsListeners.remove(new LogListenerRegistration(Level.ALL, logListener));\n}\n"
"public boolean doWork() throws IOException {\n boolean worked = false;\n String name = queue.dequeue();\n if (name != null) {\n worked = true;\n String[] pathsOrUrls = null;\n try {\n pathsOrUrls = db.nameToUrls(name);\n } catch (IOException e) {\n LOGGER.seve...
"public static ArrayList<ItemStack> parseItems(String rawitems) {\n ArrayList<ItemStack> ret = new ArrayList<ItemStack>();\n try {\n String[] a = rawitems.split(\"String_Node_Str\");\n for (String b : a) {\n if (b.startsWith(\"String_Node_Str\")) {\n String[] guntype = b.sp...
"public void apply() {\n super.apply();\n Vector3 temp = Vector3.REUSABLE_STACK.pop();\n mView.initIdentity().multiply(TransformUtils.createTranslation(temp.set(position).negateSelf())).multiply(TransformUtils.createRotation(rotation));\n Vector3.REUSABLE_STACK.push(temp);\n GL3Context.enable(GL11.GL_DEP...
"public static DatabaseMetaData getConnectionMetadata(java.sql.Connection conn) throws SQLException {\n DatabaseMetaData dbMetaData = conn.getMetaData();\n if (dbMetaData != null && dbMetaData.getDatabaseProductName() != null) {\n if (\"String_Node_Str\".equals(conn.getClass().getName())) {\n db...
"public void handleEvent(Event event) {\n try {\n List<ComputedColumn> columnList = new ArrayList<ComputedColumn>();\n CubeHandle cubeHandle = ChartCubeUtil.getBindingCube(inputElement);\n if (cubeHandle != null) {\n if (inputElement.getCube() == null) {\n refreshBindin...