content stringlengths 40 137k |
|---|
"private void initialize() {\n setStatus(Status.OK_STATUS);\n this.cachedFirstLines = new String[0];\n this.columnInfoList = new ArrayList<ITeiidColumnInfo>();\n IPath filePath = new Path(getDataFile().getName());\n String fileName = filePath.removeFileExtension().lastSegment();\n setViewTableName(fil... |
"private void generateLatexScript(List<List<List<List<Double>>>> data) throws IOException {\n String latexDirectoryName = configuration.getExperimentBaseDirectory() + \"String_Node_Str\" + DEFAULT_LATEX_DIRECTORY;\n File latexOutput;\n latexOutput = new File(latexDirectoryName);\n if (!latexOutput.exists())... |
"private M2Model readCustomContentModel(NodeRef modelNodeRef) {\n ContentReader reader = this.contentService.getReader(modelNodeRef, ContentModel.TYPE_CONTENT);\n if (reader.exists() == false) {\n throw new AlfrescoRuntimeException(I18NUtil.getMessage(MSG_CUSTOM_MODEL_NO_CONTENT, modelNodeRef.toString()));... |
"public void setLocalFileDataData(byte[] data) {\n localData = copy(data);\n}\n"
|
"public static void logUnban(User author, User target, String reason, Guild guild, TextChannel channel, Message message) {\n Settings set = bot.getSettings(guild);\n TextChannel tc = guild.getTextChannelById(set.getModLogId());\n OffsetDateTime time = message.getCreationTime();\n int hour = time.getHour();\... |
"public List<ForeignKey> getForeignKeys(String catalogName, String schemaPattern, String tableName) throws SQLException {\n List<ForeignKey> pks = new ArrayList<ForeignKey>();\n String driverName = ConnectionUtils.getConnectionMetadata(connection).getDriverName();\n String dbLanguage = SupportDBUrlType.SQLITE3... |
"public void testMultipleIndices() throws Exception {\n database = BabuDBFactory.createBabuDB(new BabuDBConfig(baseDir, baseDir, 1, 0, 0, SyncMode.SYNC_WRITE, 0, 0, compression, maxNumRecs, maxBlockFileSize, true, 0, Logging.LEVEL_DEBUG));\n Database db = database.getDatabaseManager().createDatabase(\"String_Node... |
"private void cleanBatchAggregator(Vector3 position, ChunkMesh chunkMesh) {\n Map<RenderMaterial, Map<BlockFace, ChunkMeshBatchAggregator>> aggregatorPerMaterial = chunkRenderersByPosition.get(position.getFloorX(), position.getFloorY(), position.getFloorZ());\n if (aggregatorPerMaterial != null) {\n Linked... |
"public static void setupMeta() throws OperationException {\n String account = Constants.DEVELOPER_ACCOUNT_ID;\n Location appArchiveLocation = locationFactory.getHomeLocation();\n Application app = new WordCount();\n ApplicationSpecification appSpec = app.configure();\n wordCountAppId = new Id.Applicatio... |
"public void currentlyChosen(int index, int idFilter, boolean greenscreen) {\n try {\n this.index = index;\n titel.setText(\"String_Node_Str\");\n greengrid = new GridPane();\n if (filtergrid == null) {\n filtergrid = new GridPane();\n }\n if (index > -1) {\n ... |
"public static File getDecompressedAttachment(File iCompressedFile, String iFileName) throws IOException {\n File attachment = null;\n String sessionId = getSessionId();\n ZipInputStream zis = new ZipInputStream(new FileInputStream(iCompressedFile));\n ZipEntry entry;\n while ((entry = zis.getNextEntry()... |
"protected JMethod generateRemoveTagFromElement() throws Exception {\n JMethodSignature jms = JMethodSignature.factory.create(JParameter.factory.create(JModifier.FINAL, \"String_Node_Str\", \"String_Node_Str\"), JParameter.factory.create(JModifier.FINAL, \"String_Node_Str\", \"String_Node_Str\"));\n JMethod jm = ... |
"protected void updateCommandViewerInput(ServiceCommand toDelete, ServiceCommand toAdd, ServerService service) {\n if (service != null && (toDelete != null || toAdd != null)) {\n List<ServiceCommand> commands = service.getCommands();\n List<ServiceCommand> newCommands = new ArrayList<ServiceCommand>();... |
"private static void setDelimitedFileValue(DelimitedFileConnection connection, INode node, IElementParameter param) {\n if (\"String_Node_Str\".equals(param.getRepositoryValue())) {\n String value = getParameterValue(connection, node, param);\n if (value != null) {\n connection.setFilePath(v... |
"public List<Variable> getNonReplicatedVariables() {\n return this.nonReplicatedVariablesList;\n}\n"
|
"private void moveInternal(final int where) throws IOException {\n buf.cursor += where;\n if (terminal.isAnsiSupported()) {\n if (where < 0) {\n back(Math.abs(where));\n } else {\n int width = getTerminal().getWidth();\n int cursor = getCursorPosition();\n ... |
"public void run() {\n try {\n final Class guiTestClass = testCase.getClass();\n final Method setUp = guiTestClass.getMethod(SET_UP_METHOD, DECLARE_NO_PARAMETERS);\n final Method tearDown = guiTestClass.getMethod(TEAR_DOWN_METHOD, DECLARE_NO_PARAMETERS);\n final Method[] allMethods = guiT... |
"protected void updateChart(List<Map.Entry<String, Integer>> chartData) {\n chartCards.removeAll();\n String style = styleGroup.getSelection().getActionCommand();\n String orientationCommand = orientationGroup.getSelection().getActionCommand();\n PlotOrientation orientation = PlotOrientation.VERTICAL;\n ... |
"protected RuleKey.Builder ruleKeyBuilder() {\n ImmutableSortedSet.Builder<String> resFiles = ImmutableSortedSet.naturalOrder();\n addResContents(resFiles);\n ImmutableSortedSet.Builder<String> assetsFiles = ImmutableSortedSet.naturalOrder();\n addAssetsContents(assetsFiles);\n return super.ruleKeyBuilde... |
"public Object get(Class klass, String name) throws ConfigurationException {\n if (!providers.containsKey(klass)) {\n throw new ConfigurationException(\"String_Node_Str\" + klass);\n }\n ProviderSet pset = providers.get(klass);\n String path = pset.path + \"String_Node_Str\" + name;\n if (conf.get... |
"public static boolean isSignWarp(Sign sign) {\n ArrayList<String> lines = new ArrayList<String>();\n for (int i = 0; i < 4; i++) {\n if (!sign.getLine(i).trim().equals(\"String_Node_Str\")) {\n lines.add(sign.getLine(i).trim());\n }\n }\n if (lines.size() == 2 && lines.get(0).equal... |
"public void processModel(Model model, boolean isLastModel) {\n String modelName = modelNamingStrategy.getName(model);\n writer.write(modelName).writeLine(MODEL_EXTEND_START).indent();\n DefaultValueSectionWriter defaultValueSectionWriter = new DefaultValueSectionWriter(writer);\n defaultValueSectionWriter.... |
"public static void main(String[] args) {\n Parameters.initializeParameterCollections(new String[] { \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\", \"String_Node_Str\" });\n MMNEAT.loadClasses();\n TWEANNGenotype tg1 = new TWEANNGenotype(5, 2, 0);\n MMNEAT.genotype = tg1... |
"private Set<T> getTheirEntriesMut(Connection connection) {\n return getChannelProperty(PROPERTY_THEIR_ENTRIES, connection, GraphCollectionSynchronizer::newConcurrentSet);\n}\n"
|
"protected Element createClassElement(ClassFile classFile) {\n Element classElem = report.createElement(\"String_Node_Str\");\n classElem.setAttribute(\"String_Node_Str\", classFile.getName());\n if (null != classFile.getSourceFile()) {\n classElem.setAttribute(\"String_Node_Str\", classFile.getSourceFi... |
"protected void onPostExecute(Map<String, Status> statuses) {\n AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(appContext);\n for (int widgetId : pairWidgets.keySet()) {\n RemoteViews views = new RemoteViews(appContext.getPackageName(), R.layout.appwidget_layout);\n Status status =... |
"public ResponseEntity queryDomain(String domainName) {\n String decodeDomain = domainName;\n String punyDomainName = decodeDomain;\n try {\n punyDomainName = DomainUtil.geneDomainPunyName(decodeDomain);\n } catch (Exception e) {\n return RestResponseUtil.createResponse400();\n }\n if (!... |
"protected String url(String path) {\n return baseUrlWithPort() + \"String_Node_Str\" + path;\n}\n"
|
"public CheckResult check(String gridName, String rowName, String colName, Map params, Map<String, String> rowVars, Map<String, String> colVars, int timeout) {\n HashMap<String, String> netLogParams = new HashMap<String, String>();\n NetLogger netLog = NetLogger.getTlogger();\n TemplateVariableMap vars = new T... |
"private RecordSource filter(QueryModel model, RecordSource rs) throws ParserException {\n try {\n if (model.getWhereClause() == null) {\n return rs;\n }\n RecordMetadata m = rs.getMetadata();\n if (model.getAlias() != null) {\n m.setAlias(model.getAlias().token);\n ... |
"public static byte[] cryptoPwhash(byte[] passwd, byte[] salt, long opsLimit, NativeLong memLimit, int algorithm) throws SodiumLibraryException {\n byte[] key = new byte[sodium().crypto_box_seedbytes().intValue()];\n logger.info(\"String_Node_Str\" + NativeLong.SIZE * 8 + \"String_Node_Str\");\n int rc = sodiu... |
"public Location get(Id.Namespace namespaceId, String subPath) throws IOException {\n String namespacesDir = cConf.get(Constants.Namespace.NAMESPACES_DIR);\n Location namespaceLocation = locationFactory.create(namespacesDir).append(namespaceId.getId());\n if (subPath != null) {\n namespaceLocation = nam... |
"void update(List<OModuleMetadata> modulesForWrite) {\n Document document = readFromFile();\n if (document == null)\n throw new UnsupportedOperationException(\"String_Node_Str\");\n Element rootElement = document.getRootElement();\n List<Node> modules = rootElement.elements(MODULE);\n List<OModule... |
"private void writePackets() {\n try {\n StringBuffer stream = new StringBuffer();\n stream.append(\"String_Node_Str\");\n stream.append(\"String_Node_Str\" + connection.getHost() + \"String_Node_Str\");\n stream.append(\"String_Node_Str\");\n stream.append(\"String_Node_Str\");\n ... |
"public void writeExternal(ObjectOutput out) throws IOException {\n out.writeInt(sessionMap.size());\n for (GrillSessionHandle sessionHandle : sessionMap.values()) {\n GrillSessionImpl session = getSession(sessionHandle);\n session.getGrillSessionPersistInfo().writeExternal(out);\n }\n LOG.inf... |
"private void updateIncrementsPassIntoCont(Continuation cont, RCTracker increments) {\n if (cont.spawnsSingleTask()) {\n long incr = 1;\n for (Var keepOpen : cont.getKeepOpenVars()) {\n assert (RefCounting.hasWriteRefCount(keepOpen));\n increments.writeIncr(keepOpen, incr);\n ... |
"public void applyParameters(Material program) {\n super.applyParameters(program);\n FBO scene = CoreRegistry.get(DynamicFBOsManager.class).get(DefaultDynamicFBOs.READ_ONLY_GBUFFER.getName());\n if (scene != null) {\n GL13.glActiveTexture(GL13.GL_TEXTURE0);\n scene.bindDepthTexture();\n pr... |
"private Term parseCompoundTerm(final String s0) throws InvalidInputException {\n final String s = s0.trim();\n if (s.isEmpty()) {\n throw new InvalidInputException(\"String_Node_Str\" + s);\n }\n final int firstSeparator = s.indexOf(ARGUMENT_SEPARATOR);\n if (firstSeparator == -1) {\n thro... |
"public void setIsReduntant(boolean reduntant) {\n this.redundant = reduntant;\n}\n"
|
"public List<Camera> readActive() throws PersistenceException {\n List<Camera> cameraList = new ArrayList<>();\n PreparedStatement stmt = null;\n String query = \"String_Node_Str\";\n try {\n stmt = con.prepareStatement(query);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {... |
"protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n super.onLayout(changed, left, top, right, bottom);\n if (mOriginalHeaderViewHeight <= 0) {\n mOriginalHeaderViewHeight = mHeaderView.getHeight();\n }\n}\n"
|
"public ResponseEntity searchNameserver(String name, HttpServletRequest request, HttpServletResponse response) {\n String decodeNameserver = name;\n String punyNameserver = decodeNameserver;\n try {\n decodeNameserver = DomainUtil.iso8859Decode(name);\n decodeNameserver = DomainUtil.decodeAndTrim... |
"public void addVoucher(long expireTime, long voucherSize) {\n if (!xcapExpireTimeMap.containsKey(expireTime)) {\n xcapExpireTimeMap.put(expireTime, voucherSize);\n } else {\n System.out.println(\"String_Node_Str\" + getClass() + \"String_Node_Str\");\n }\n}\n"
|
"public void executeRequestsNow(int howMany) {\n int started = 0;\n for (JobRequest jobRequest : JobManager.instance().getAllJobRequests()) {\n if (isSoonButNotImmediate(jobRequest)) {\n JobRequest.Builder builder = jobRequest.cancelAndEdit();\n long endMillis = Math.max(jobRequest.ge... |
"protected <K, V> CacheConfig<K, V> createConfigOnPartition(CacheConfig<K, V> cacheConfig) {\n try {\n int partitionId = clientContext.getPartitionService().getPartitionId(cacheConfig.getNameWithPrefix());\n CacheCreateConfigRequest request = new CacheCreateConfigRequest(cacheConfig, false, partitionId... |
"public ReportItemDesign findDesign(ReportElementHandle handle) {\n ReportElementDesign elementDesign = getReportItemByID(handle.getID());\n if (elementDesign != null) {\n return (ReportItemDesign) elementDesign;\n } else {\n return new MultiViewEngineIRVisitor(reportDesign).translate(handle, thi... |
"private static void dispatchMotionEvent(InputHandler inputHandler, MotionEvent event, long finishedToken) {\n Runnable finishedCallback = FinishedCallback.obtain(finishedToken);\n inputHandler.handleMotion(event, finishedCallback);\n}\n"
|
"public static MultivariateGaussian getRoadBeliefFromGround(MultivariateGaussian belief, InferredEdge edge, boolean useAbsVelocity) {\n Preconditions.checkArgument(belief.getInputDimensionality() == 4);\n final MultivariateGaussian tmpMg = getRoadBeliefFromGround(belief, edge.getGeometry(), false, null, 0, useAbs... |
"private void doInteractWithOtherGroups() {\n Tuple<InteractionResult, Double> interactionResult = interactWithOtherGroups();\n switch(interactionResult.getKey()) {\n case LoanTaken:\n this.setReservedFood(this.getDataModel().getCurrentReservedFood() + interactionResult.getValue());\n cas... |
"synchronized public int setOutputReport(byte reportID, byte[] data, int length) {\n if (!m_Open)\n throw new IllegalStateException(\"String_Node_Str\");\n if (m_UsesNumberedReports)\n m_OutputReportBytes[0] = reportID;\n }\n System.arraycopy(data, 0, m_OutputReportBytes, offs, length);\n i... |
"public void bind(ResourceResolverFactory resourceResolverFactory) throws LoginException {\n if (resourceResolverFactory == null) {\n throw new IllegalArgumentException(\"String_Node_Str\");\n }\n this.resolver = factory.getAdministrativeResourceResolver(null);\n}\n"
|
"protected void internalTransform(Body b, String phaseName, Map<String, String> options) {\n int weight = soot.jbco.Main.getWeight(phaseName, b.getMethod().getSignature());\n if (weight == 0) {\n return;\n PatchingChain<Unit> units = b.getUnits();\n int localCount = 0;\n Collection<Local> locals =... |
"public void continueBuffering(long playbackPositionUs) {\n if (manifestFetcher == null || !currentManifest.isLive || fatalError != null) {\n return;\n }\n SmoothStreamingManifest newManifest = manifestFetcher.getManifest();\n if (currentManifest != newManifest && newManifest != null) {\n Stre... |
"public void addTemplateConfigurationTestScenario1() throws Exception {\n String configName = \"String_Node_Str\";\n DomainInfoDTO domainInfo = executionManagerAdminServiceClient.getDomainInfo(\"String_Node_Str\");\n if (domainInfo == null) {\n Assert.fail(\"String_Node_Str\");\n } else {\n lo... |
"public void itemUpdated(String name, String value) {\n if (value != null && !value.isEmpty()) {\n try {\n synchronized (mHandlers) {\n for (CommandHandler mHandler : mHandlers) {\n try {\n if (mHandler.handleCommand(value)) {\n ... |
"public View getGroupView(int groupPosition, boolean isLastChild, View view, ViewGroup parent) {\n FriendGroup friendGroup = (FriendGroup) getGroup(groupPosition);\n View hiddenView = new FrameLayout(context);\n if (friendGroup.getUserList().isEmpty()) {\n return hiddenView;\n } else {\n view ... |
"private static SparkFramework prepareSpark2Framework(Properties sparkConf, LocationFactory locationFactory, File tempDir) throws IOException {\n String sparkYarnArchive = sparkConf.getProperty(SPARK_YARN_ARCHIVE);\n if (sparkYarnArchive != null) {\n URI sparkYarnArchiveURI = URI.create(sparkYarnArchive);\... |
"public boolean performFinish() {\n IFile file = page.createNewFile();\n if (file == null)\n return false;\n IContainer parent = file.getParent();\n if (parent != null && parent.exists()) {\n IFile sourceFile = parent.getFile(new Path(parent.getName() + \"String_Node_Str\"));\n if (sour... |
"protected Object getTargetRepository(RepositoryMetadata metadata) {\n EntityInformation<?, Serializable> entityInformation = getEntityInformation(metadata.getDomainType());\n Class<?> repositoryInterface = metadata.getRepositoryInterface();\n Class<?> javaType = entityInformation.getJavaType();\n String cu... |
"protected boolean setField(Object effect, String key, ConfigurationSection section, ConfigurationSection parameterMap) {\n try {\n String stringValue = section.getString(key);\n if (key.contains(\"String_Node_Str\")) {\n key = key.replace(\"String_Node_Str\", \"String_Node_Str\");\n ... |
"private boolean isRecordMetadata(NodeRef filePlan, QName property) {\n boolean result = false;\n ClassDefinition parent = null;\n PropertyDefinition def = dictionaryService.getProperty(property);\n if (def != null) {\n parent = def.getContainerClass();\n }\n if (parent != null && TYPE_NON_ELEC... |
"public void run() {\n ClassLoader previousClassLoader = null;\n try {\n previousClassLoader = Utility.setContextClassLoader(clsLoader);\n mdbClient.close();\n _logger.log(Level.FINE, \"String_Node_Str\");\n } catch (Exception e) {\n _logger.log(Level.SEVERE, \"String_Node_Str\", ne... |
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n String color = null;\n HashMap<String, String> hm = new HashMap<String, String>();\n hm.put(\"String_Node_Str\", request.getParameter(\"String_Node_Str\"));\n hm.put(\"String_Node_Str\", ... |
"public void replace_2arg_Missing() {\n SimpleCacheLoader<Integer> loader = new SimpleCacheLoader<Integer>();\n Cache<Integer, Integer> cache = getCacheManager().configureCache(getTestCacheName(), new MutableConfiguration<Integer, Integer>().setCacheLoaderFactory(Factories.of(loader)));\n Integer key = 1;\n ... |
"protected OEntity toOEntity(EdmEntitySet ees, Object obj, List<EntitySimpleProperty> expand) {\n EntityInfo<?, ?> ei = eis.get(ees.getName());\n final List<OLink> links = new ArrayList<OLink>();\n final List<OProperty<?>> properties = new ArrayList<OProperty<?>>();\n Object keyValue = ei.properties.getProp... |
"public List getDataSources() {\n return getModuleHandle().getVisibleDataSources();\n}\n"
|
"public void onLocationChanged(Location location) {\n if (location.isAccurate()) {\n state = FollowStates.FOLLOW_RUNNING;\n lastLocation = location;\n followAlgorithm.onLocationReceived(location);\n } else {\n state = FollowStates.FOLLOW_START;\n }\n drone.notifyDroneEvent(DroneE... |
"private void initNodesView() {\n Runnable initNodesRunnable = new Runnable() {\n public void run() {\n try {\n String busyMsg = NbBundle.getMessage(DataTableTopComponent.class, \"String_Node_Str\");\n BusyUtils.BusyLabel busylabel = BusyUtils.createCenteredBusyLabel(t... |
"protected TOExecutionResult execution(File transformedAppFolder, TransformationContext transformationContext) {\n File fileToBeChanged = getAbsoluteFile(transformedAppFolder, transformationContext);\n File tempFile = new File(fileToBeChanged.getAbsolutePath() + \"String_Node_Str\" + System.currentTimeMillis());\... |
"public void testProjectMode() throws Exception {\n OFExport ofExport = new OFExport();\n ofExport.getProjectRoot().add(f1);\n ofExport.setFormat(\"String_Node_Str\");\n ofExport.process();\n StringWriter out = new StringWriter();\n ofExport.write(out);\n Diff.diff(new String[] { \"String_Node_Str\... |
"protected Element invokeInternal(Element requestElement, Document document) throws Exception {\n System.out.println(\"String_Node_Str\");\n try {\n NodeList nlist = requestElement.getElementsByTagNameNS(CONNECTOR_NAMESPACE_V1, \"String_Node_Str\");\n this.logNodeList(nlist);\n for (int i = 0... |
"private int executeCommands(BufferedReader reader) throws CommandException, CommandValidationException, IOException {\n String line = null;\n int rc = 0;\n programOpts.toEnvironment(env);\n for (; ; ) {\n if (printPrompt) {\n System.out.print(\"String_Node_Str\");\n System.out.... |
"public void selectSplitOffset() {\n SplitMergeLineFitLoop alg = new SplitMergeLineFitLoop(9.0 / 9.0, MINIMUM_SPLIT_FRACTION, 100);\n alg.contour = new ArrayList<Point2D_I32>();\n for (int i = 0; i < 10; i++) alg.contour.add(new Point2D_I32(i, 0));\n alg.contour.get(4).y = 10;\n alg.N = alg.contour.size(... |
"protected void testSetUp() throws Exception {\n setupFilesAndDB();\n setupMocks();\n}\n"
|
"public Pattern read(Resource resource) {\n checkNotNull(resource);\n PatternImpl.Builder patternBuilder = new PatternImpl.Builder();\n patternBuilder.setElement(resource);\n int count = 0;\n count = 0;\n for (Statement smt : resource.listProperties(DCTerms.identifier).toList()) {\n checkArgume... |
"public static boolean isGoodResponse(int statusCode) {\n return ((statusCode >= 200) && (statusCode <= 299));\n}\n"
|
"public ItemStack transferStackInSlot(EntityPlayer player, int index) {\n ItemStack itemstack = ItemStack.EMPTY;\n Slot slot = inventorySlots.get(index);\n if (slot != null && slot.getHasStack()) {\n ItemStack itemstack1 = slot.getStack();\n itemstack = itemstack1.copy();\n if (index == 2)... |
"public static Test suite() {\n TestSuite suite = new TestSuite();\n suite.setName(\"String_Node_Str\");\n suite.addTest(new OrderedListJunitTest(\"String_Node_Str\"));\n suite.addTest(new OrderedListJunitTest(\"String_Node_Str\"));\n suite.addTest(new OrderedListJunitTest(\"String_Node_Str\"));\n sui... |
"private Object getValueFromAttribute(Attr node, XMLField key) {\n currentNode = node.getOwnerElement();\n Object convertedValue = key.convertValueBasedOnSchemaType(node.getNodeValue(), (XMLConversionManager) session.getDatasourcePlatform().getConversionManager(), this);\n currentNode = getDOM();\n return c... |
"private int appendHeader(int field) {\n switch(field) {\n case PduHeaders.MMS_VERSION:\n appendOctet(field);\n int version = mPduHeader.getOctet(field);\n if (0 == version) {\n appendShortInteger(PduHeaders.CURRENT_MMS_VERSION);\n } else {\n ... |
"public void zoomToLastKnowPosition() {\n if (drone.GPS.isPositionValid()) {\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(drone.GPS.getPosition(), 16));\n } else {\n Toast.makeText(getActivity(), \"String_Node_Str\", Toast.LENGTH_SHORT).show();\n }\n}\n"
|
"public void writeEndElement() throws XMLStreamException {\n try {\n if (null != processingStack.get(depth).lastElementWriter) {\n if (processingStack.get(depth).lastIsArray) {\n processingStack.get(depth).writer.write(\"String_Node_Str\");\n processingStack.get(depth)... |
"public void createControl(Composite parent) {\n Composite composite = new Composite(parent, SWT.BORDER);\n composite.setLayout(new GridLayout(1, false));\n browseViewer = new TableViewer(composite, SWT.FULL_SELECTION | SWT.SINGLE | SWT.H_SCROLL);\n GridData gd = new GridData(SWT.FILL, SWT.FILL, true, true,... |
"public boolean hasNextChild() {\n if (currentElement < totalElements) {\n return true;\n }\n if (endOfGroup) {\n return false;\n }\n try {\n while (!endOfGroup) {\n IQueryResultSet rset = listingExecutor.getResultSet();\n GroupDesign groupDesign = (GroupDesign)... |
"public void testXmlJavaTypeAdapterOnProperty() {\n Class[] classesToProcess = new Class[] { org.eclipse.persistence.testing.jaxb.externalizedmetadata.xmladapter.property.MyClass.class };\n MySchemaOutputResolver outputResolver = new MySchemaOutputResolver();\n JAXBContext jaxbContext = null;\n try {\n ... |
"public static NamedObj getCorrespondingPatternObject(NamedObj replacementObject) {\n if (replacementObject instanceof Replacement) {\n return ((TransformationRule) replacementObject.getContainer()).getPattern();\n }\n PatternObjectAttribute attribute;\n try {\n attribute = getPatternObjectAtt... |
"protected void onPostExecute(DetailsOverviewRow detailRow) {\n ClassPresenterSelector ps = new ClassPresenterSelector();\n DetailsOverviewRowPresenter dorPresenter = new DetailsOverviewRowPresenter(new DetailsDescriptionPresenter());\n dorPresenter.setBackgroundColor(getResources().getColor(R.color.detail_bac... |
"public RemoteViews getViewAt(int position) {\n EventEntry entry = eventEntries.get(position);\n if (entry instanceof DayHeader) {\n return updateDayHeader((DayHeader) entry);\n }\n for (int i = 0; i < eventProviders.size(); i++) {\n IEventVisualizer<?> eventProvider = eventProviders.get(i);\n... |
"public int size(final String name) {\n int size = 0;\n for (final TxnRecord txnRecord : lsTxnRecords) {\n if (txnRecord.name.equals(name)) {\n if (txnRecord.removed) {\n if (!txnRecord.newRecord) {\n if (txnRecord.map) {\n size--;\n ... |
"private void sendUdpPingShutdown() {\n ByteBuffer buf = setupUdpPing(NEO_SHUTDOWN, sessionId);\n SocketAddress host = new InetSocketAddress(UDP_HOST, UDP_PORT);\n new UdpPinger(buf, host).sendPing();\n}\n"
|
"protected String getFullyQualifiedTableName(ColumnSet set) {\n Schema parentSchema = SchemaHelper.getParentSchema(set);\n Catalog parentCatalog = CatalogHelper.getParentCatalog(set);\n if (parentSchema != null) {\n parentCatalog = CatalogHelper.getParentCatalog(parentSchema);\n }\n String schemaN... |
"public static Object getNamedPlugin(Class intfc, String name) throws PluginInstantiationException {\n try {\n String iname = intfc.getName();\n configureNamedPlugin(iname);\n String key = iname + SEP + name;\n String cname = (String) namedPluginClasses.get(key);\n if (cname == nul... |
"public Storage getStorage() {\n SharedPreferences widgetPreferences = null;\n try {\n widgetPreferences = context.getApplicationContext().getSharedPreferences(context.getString(R.string.prefs_name) + this.id, 0);\n } catch (Resources.NotFoundException ignored) {\n }\n return new PreferenceStorage... |
"public static void setUpClass() throws Exception {\n if (START_LOCAL_STANDALONE) {\n File adapterDir = TMP_FOLDER.newFolder(\"String_Node_Str\");\n configuration = CConfiguration.create();\n configuration.set(Constants.AppFabric.ADAPTER_DIR, adapterDir.getAbsolutePath());\n setupAdapters... |
"public void update() {\n if (badCounter > 0) {\n badCounter--;\n markDirty();\n }\n if (goodCounter > 0) {\n goodCounter--;\n markDirty();\n }\n if (!getWorld().isRemote) {\n todoEndergenics.add(this);\n }\n}\n"
|
"public TdReport readFromFile(IFile file) {\n this.remove(file);\n Resource fileResource = getFileResource(file);\n TdReport report = retireReport(fileResource);\n if (report != null) {\n allRepMap.put(file, report);\n }\n return report;\n}\n"
|
"protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n super.onSizeChanged(w, h, oldw, oldh);\n destination.top = 0;\n destination.bottom = h;\n if (getAdapter() != null && bitmap != null)\n calculateParallaxParameters();\n}\n"
|
"public LabeledMultinomial<Label> getChooseMulti(Pair<Label, String> pair, List<Label> children) {\n LabeledMultinomial<Label> mult = new LabeledMultinomial<Label>();\n for (Label child : children) {\n int c = tagAlphabet.lookupObject(child);\n if (pair.get1().equals(WallDepTreeNode.WALL_LABEL)) {\n... |
"public int write(byte[] data, int offset, int length, long filePosition) throws Exception {\n final int firstObject = (int) (filePosition / this.stripeSize);\n int lastObject = (int) ((filePosition + ((long) length)) / this.stripeSize);\n if (((filePosition + ((long) length)) % this.stripeSize) == 0)\n ... |
"public InputStream getInputStream() throws IOException {\n if (isClosed() || shutdown)\n throw new IOException(\"String_Node_Str\");\n if (reader instanceof NIOInputStream)\n return ((NIOInputStream) reader).getInputStream();\n else\n throw new IllegalStateException(\"String_Node_Str\");\... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.