content
stringlengths
40
137k
"private Sound mix(final Sound firstSound, final Sound... sounds) {\n int maxlength = 0;\n final Sound[] ajustedSounds = new Sound[sounds.length + 1];\n ajustedSounds[0] = firstSound;\n for (int i = 1; i < sounds.length + 1; i++) {\n ajustedSounds[i] = this.soundAppender.changeNbBytesPerSample(this.s...
"private Map handleJavaExpression(List jsExprs) {\n List columns = new ArrayList();\n Map retMap = new HashMap();\n for (int i = 0; i < jsExprs.size(); i++) {\n String jsExpr = (String) jsExprs.get(i);\n IColumnBinding boundColumn = ExpressionUtil.getColumnBinding(jsExpr);\n if (boundColum...
"public void commandAction(Command command, Displayable s) {\n if (command == backCommand) {\n this.show();\n } else if (command == exitNoSaveCommand) {\n controller.exit();\n } else if (command == exitSaveCommand) {\n controller.save();\n controller.exit();\n } else if (command ...
"public ConfigCheck createConfigCheck() {\n String joinerType = joiner == null ? \"String_Node_Str\" : joiner.getType();\n return new ConfigCheck(config, joinerType);\n}\n"
"public boolean checkout(AbstractBuild<?, ?> build, Launcher launcher, FilePath workspace, BuildListener listener, File changelogFile) throws IOException, InterruptedException {\n MultiSCMRevisionState revisionState = new MultiSCMRevisionState();\n build.addAction(revisionState);\n HashSet<Object> scmActions =...
"protected Object getAttribute(BindContext ctx, Object key) {\n Map<Object, Object> bindingBag = getBindingAttribute(ctx);\n return bindingBag != null ? bindingBag.get(key) : null;\n}\n"
"public void execute(RequestHandler handler, FtpRequestImpl request, FtpWriter out) throws IOException, FtpException {\n boolean success = false;\n IFtpConfig fconfig = handler.getConfig();\n Log log = fconfig.getLogFactory().getInstance(getClass());\n IConnectionManager conManager = fconfig.getConnectionMa...
"public int getMarginStart() {\n if (startMargin != DEFAULT_MARGIN_RELATIVE)\n return startMargin;\n if ((mMarginFlags & NEED_RESOLUTION_MASK) == NEED_RESOLUTION_MASK) {\n doResolveMargins();\n }\n switch(mLayoutDirection) {\n case View.LAYOUT_DIRECTION_RTL:\n return rightMar...
"public void onClick(DialogInterface dialogInterface, int i) {\n if (callback != null) {\n String password = input.getText().toString();\n if (callback.onPasswordCheck(password)) {\n dialog.dismiss();\n token.continueAuthentication();\n } else {\n input.setError(...
"private Set<String> resolveFiles(List<String> files) {\n if (files != null) {\n Set<String> resolvedFiles = new LinkedHashSet<String>();\n for (String f : files) {\n if (f.startsWith(\"String_Node_Str\") || f.startsWith(\"String_Node_Str\")) {\n resolvedFiles.add(f);\n ...
"private void exportJar(File root, Collection<File> list, Manifest manifest) throws IOException {\n if (jarFile.exists()) {\n StringBuffer tempFolderBuffer = new StringBuffer(jarFile.getParent());\n String tempFolderPath = tempFolderBuffer.append(File.separatorChar).toString();\n File tempFolder...
"public void testEven4ParitySubtreeCrossover() {\n final int LOWER_SUCCESS = 70;\n final int UPPER_SUCCESS = 80;\n Evolver evolver = getEvolver();\n final EvenParity model = new EvenParity(evolver, 4);\n setupModel(model);\n model.setCrossover(new SubtreeCrossover(evolver));\n final int noSuccess =...
"public BuildRule buildAbi() {\n getLibraryRule();\n BuildTarget requestedTarget = getInitialBuildTarget();\n if (HasJavaAbi.isSourceAbiTarget(requestedTarget)) {\n return getSourceAbiRule();\n } else if (HasJavaAbi.isClassAbiTarget(requestedTarget)) {\n return getClassAbiRule();\n } else i...
"public static void testEncryptionAndDecryption(StreamingAead encryptionStreamingAead, StreamingAead decryptionStreamingAead, byte[] plaintext, byte[] aad) throws Exception {\n ByteArrayOutputStream ciphertext = new ByteArrayOutputStream();\n WritableByteChannel encChannel = encryptionStreamingAead.newEncryptingC...
"public Void run() {\n String textAtColumn = getRenderedText(node);\n if (textAtColumn != null) {\n res.add(textAtColumn);\n }\n String text = CAPUtil.getWidgetText(node, node.getText());\n if (text != null) {\n res.add(text);\n }\n return null;\n}\n"
"private void readValue() {\n if (ignoreTrailingWhitespace) {\n while (length-- > 0) {\n output.appender.appendIgnoringWhitespaceAndPadding(ch);\n ch = input.nextChar();\n }\n } else {\n while (length-- > 0 && ch != '\\0') {\n output.appender.appendIgnoringPad...
"public void testClusterCreateOutput() 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 distros[0] = distro;\n NetworkRead[] networks = new N...
"public boolean equalsAsOption(PossibleAction action) {\n if (!(action instanceof DiscardTrain))\n return false;\n DiscardTrain a = (DiscardTrain) action;\n return a.ownedTrains.equals(ownedTrains) && a.company == company;\n}\n"
"public synchronized void send(String chanstr, byte[] channel, byte[] data) {\n try {\n synchronized (subscriptions) {\n for (SubscriptionRecord sr : subscriptions) {\n if (sr.pat.matcher(chanstr).matches()) {\n outs.writeInt(TCPProvider.MESSAGE_TYPE_PUBLISH);\n ...
"public void validateCreatedCharacterActionHandler(P132_UnknownAction action) {\n LOGGER.debug(\"String_Node_Str\");\n Session session = action.getSession();\n SessionAttachment attachment = (SessionAttachment) session.getAttachment();\n P141_UnknownAction dAction = new P141_UnknownAction();\n dAction.in...
"protected boolean _isOpaque(CompositeEntity entity) {\n if (entity instanceof CompositeActor && ((CompositeActor) entity).isOpaque()) {\n return true;\n } else {\n NamedObj container = entity.getContainer();\n Token value = _getAttribute(container, \"String_Node_Str\", HierarchyFlatteningAtt...
"public Response getTransferredResourceLastReport(String id, String resourceOrSip, String acceptFormat) throws RODAException {\n String mediaType = ApiUtils.getMediaType(acceptFormat, request);\n User user = UserUtility.getApiUser(request);\n try {\n Report lastReport = Browser.lastReport(user, id, reso...
"public void actionPerformed(final ActionEvent event) {\n if (product != null) {\n if (product.isMultiSize()) {\n final Product resampledProduct = MultiSizeIssue.maybeResample(this.product);\n if (resampledProduct != null) {\n product = resampledProduct;\n }\n ...
"public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (!(activity instanceof OnMissionDetailListener)) {\n throw new IllegalStateException(\"String_Node_Str\" + OnMissionDetailListener.class.getName());\n }\n mListener = (OnMissionDetailListener) activity;\n}\n"
"private void indexJar(File file, String parent) {\n final JarFile jar = getJarFile(file);\n final Enumeration<JarEntry> entries = jar.entries();\n final String jarBase = \"String_Node_Str\" + file.toURI() + \"String_Node_Str\";\n while (entries.hasMoreElements()) {\n JarEntry e = entries.nextElement...
"public void run() {\n dialog.show();\n String fatal = null;\n ToolsInstaller installer = new ToolsInstaller(appContext);\n if (Shell.isRootGranted() == false)\n fatal = \"String_Node_Str\";\n else if (Shell.isBinaryAvailable(\"String_Node_Str\") == false)\n fatal = \"String_Node_Str\";\n ...
"protected void internalLoadFromXml(EwsServiceXmlReader reader, PropertyBag propertyBag) throws Exception {\n OutParam<Object> complexProperty = new OutParam<Object>();\n boolean justCreated = getPropertyInstance(propertyBag, complexProperty);\n if (!justCreated && this.hasFlag(PropertyDefinitionFlags.UpdateCo...
"public List getMigrationTasks(String packageName) throws MigrationException {\n String path = packageName.replace('.', File.separatorChar);\n String[] scripts = ClassDiscoveryUtil.getResources(path, SQL_PATCH_REGEX);\n if (log.isDebugEnabled()) {\n log.debug(\"String_Node_Str\" + scripts.length + \"Str...
"public double surveyEntropy(Survey s, ArrayList<SurveyResponse> responses) {\n double entropy = 0;\n ArrayList<Map<String, Double>> hists = qHistograms(s, responses);\n for (int x = 0; x < s.questions.size(); x++) {\n int qopts = s.questions.get(x).options.size();\n for (Double count : hists.get...
"public void setUp() {\n createTestData();\n}\n"
"public synchronized static void destroy() {\n if (driver != null) {\n driver.close();\n driver = null;\n }\n configuration.clear();\n}\n"
"public ShortPoint2D findBestConstructionPosition(AiStatistics aiStatistics, AbstractConstructionMarkableMap constructionMap, byte playerId) {\n List<ShortPoint2D> borderLandNextToFreeLandForPlayer = aiStatistics.getBorderLandNextToFreeLandForPlayer(playerId);\n if (borderLandNextToFreeLandForPlayer.size() == 0) ...
"public final void run() {\n if (isDone()) {\n return;\n }\n Thread currentThread = Thread.currentThread();\n if (!compareAndSet(null, currentThread)) {\n return;\n }\n T result = null;\n Throwable error = null;\n try {\n if (run) {\n result = runInterruptibly();\...
"public void testSelectFromFooSchemaWithRequestHeaders() throws Exception {\n execute(requestWithSchema(\"String_Node_Str\", \"String_Node_Str\"));\n ensureYellow();\n waitNoPendingTasksOnAll();\n execute(requestWithSchema(\"String_Node_Str\", \"String_Node_Str\"));\n assertThat(getTableCount(\"String_No...
"protected Enumeration _schedule() throws NotSchedulableException {\n StaticSchedulingDirector dir = (StaticSchedulingDirector) getContainer();\n CompositeActor ca = (CompositeActor) (dir.getContainer());\n LinkedList AllActors = new LinkedList();\n Enumeration Entities = ca.deepGetEntities();\n while (E...
"private void showLogin(HttpServletResponse response, String bookmark, String message) throws IOException {\n HashMap<String, Object> model = new HashMap<String, Object>();\n model.put(\"String_Node_Str\", message);\n model.put(\"String_Node_Str\", bookmark == null ? \"String_Node_Str\" : bookmark);\n Templ...
"public int read(byte[] b, int off, int len) throws IOException {\n int ret = in.read(b, off, len);\n crc.update(b, off, ret);\n return ret;\n}\n"
"private void pprint(Node node, OutputStream out) {\n PPrint pprint;\n if (out != null) {\n Out o = OutFactory.getOut(this.configuration, out);\n Lexer lexer = new Lexer(null, this.configuration, this.report);\n pprint = new PPrint(configuration);\n if (configuration.isXmlTags()) {\n ...
"private void mergeParts() throws IOException {\n long finalOutFileSize = 0;\n long finalIndexFileSize = 0;\n final Path[] filename = new Path[numSpills];\n final String taskIdentifier = outputContext.getUniqueIdentifier();\n for (int i = 0; i < numSpills; i++) {\n filename[i] = mapOutputFile.getS...
"public boolean isMatchTableStillValid() {\n if (!table.isTournament()) {\n int humanPlayers = 0;\n int validHumanPlayers = 0;\n if (match == null) {\n return false;\n }\n for (Map.Entry<UUID, UUID> userPlayerEntry : userPlayerMap.entrySet()) {\n MatchPlayer m...
"public void run() {\n try {\n if (log.isDebugEnabled())\n log.debug(\"String_Node_Str\");\n runImpl();\n } catch (Exception e) {\n log.warn(\"String_Node_Str\", e);\n }\n}\n"
"protected void activate() {\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n ContentBrowserManager manager = ContentBrowserManager.getContentBrowserManager();\n defaultBrowser = new ContentBrowserJDialog(getSessionManager());\n manager.setDefaultContentBr...
"private void unschedule() throws IOException {\n if (dirtyOutputBuffer() || currentFrame != null) {\n registerOp(OP_WRITE);\n return;\n }\n unregisterOp(OP_WRITE);\n scheduled.set(false);\n if (writeQueue.isEmpty() && priorityWriteQueue.isEmpty()) {\n return;\n }\n if (!schedu...
"void shareInstancesWith(final ExecutionGroupVertex groupVertex) throws GraphConversionException {\n if (userDefinedVertexToShareInstancesWith && this.vertexToShareInstancesWith.get() != null) {\n throw new GraphConversionException(\"String_Node_Str\");\n }\n if (groupVertex == null) {\n throw ne...
"public int getBurnTimeRemainingScaled(int scale) {\n if (worldObj.getBlockMetadata(xCoord, yCoord, zCoord) == 1) {\n if (this.currentItemBurnTime == 0) {\n this.currentItemBurnTime = 200;\n }\n return this.furnaceBurnTime * scale / this.currentItemBurnTime;\n } else {\n ret...
"private void updateTimeSummary() {\n if (null == alarmTime) {\n return;\n }\n Calendar cal = Calendar.getInstance();\n cal.setTimeInMillis(alarmTime.toTimestamp());\n mAlarmTimePref.setSummary(DateFormat.format(getResources().getString(R.string.date_format_alarm_time), cal));\n}\n"
"public void setStderr(OutputStream stderr) throws IOException {\n mIO.setStderr(stderr);\n}\n"
"private void registerForRiskAnalyzedEvent() {\n try {\n Method method = SagaManager.class.getMethod(\"String_Node_Str\", new Class[] { Object.class });\n SpringEventHandler eventHandler = new SpringEventHandler(RiskAnalyzedResponse.class, \"String_Node_Str\", method, applicationContext);\n even...
"public void close() {\n if (destination != null) {\n endStatefulConnection();\n }\n}\n"
"public void reloadLibrary(LibraryHandle libraryToReload) throws SemanticException, DesignFileException {\n if (libraryToReload == null)\n return;\n LibraryCommand command = new LibraryCommand(module);\n command.reloadLibrary(path);\n}\n"
"private UUID createJsonForGeometryPath(GeometryPath path, ModelDisplayHints mdh, JSONArray json_geometries, JSONArray json_materials, boolean visible) {\n Map<String, Object> mat_json = new LinkedHashMap<String, Object>();\n UUID mat_uuid = UUID.randomUUID();\n mat_json.put(\"String_Node_Str\", mat_uuid.toStr...
"public static ItemStack[] getInventory(Player player) {\n EBean eBeanClass = EBean.find(player);\n if (eBeanClass != null) {\n String data = eBeanClass.getInventory();\n if (data != \"String_Node_Str\" && data != null) {\n String[] inv = Util.split(data, \"String_Node_Str\");\n ...
"public void collect(final IJsonNode value) {\n if (SopremoUtil.LOG.isTraceEnabled())\n SopremoUtil.LOG.trace(String.format(\"String_Node_Str\", value));\n this.collector.collect(this.record = this.schema.jsonToRecord(value, this.record, this.context));\n}\n"
"public static LogService getLogService(BundleContext context) {\n final LogService logService;\n boolean created = false;\n ServiceReference sr = null;\n if (context != null)\n sr = context.getServiceReference(LogService.class.getName());\n if (sr != null) {\n logService = (LogService) con...
"private boolean elementClicked(TreeItem root, Element hElem) {\n Vector chain = new Vector();\n collectElementChain(chain, getElement(), hElem);\n TreeItem item = findItemByChain(chain, 0, root);\n if (item != null) {\n if (DOM.isOrHasChild(item.getImageElement(), hElem)) {\n item.setStat...
"public HashMap<String, HashMap<PlotId, Plot>> getPlotMePlots(Connection connection) throws SQLException {\n ResultSet r;\n PreparedStatement stmt;\n final HashMap<String, Integer> plotWidth = new HashMap<>();\n final HashMap<String, Integer> roadWidth = new HashMap<>();\n final HashMap<String, HashMap<P...
"public ConnectionAnchor getSourceConnectionAnchor(Request request) {\n return new ColumnAnchor(this, getFigure(), true);\n}\n"
"private static ECallGraph loadFromFile(String fileName, ClassLoader loader) {\n Resource r = new XMIResourceImpl(URI.createURI(fileName));\n XMLResource.XMLMap xmlMap = new XMLMapImpl();\n xmlMap.setNoNamespacePackage(CallGraphPackage.eINSTANCE);\n Map<String, XMLMap> options = new HashMap<String, XMLMap>(...
"private void cloneInto(Notification that) {\n that.when = this.when;\n that.icon = this.icon;\n that.number = this.number;\n that.contentIntent = this.contentIntent;\n that.deleteIntent = this.deleteIntent;\n that.fullScreenIntent = this.fullScreenIntent;\n if (this.tickerText != null) {\n ...
"protected void setupJUnitDelegate() {\n final ClassLoader myLoader = JUnitTask.class.getClassLoader();\n if (splitJunit) {\n Path path = new Path(getProject());\n path.add(antRuntimeClasses);\n Path extra = getCommandline().getClasspath();\n if (extra != null) {\n path.add(...
"public String getInputName() {\n if (inputContext == null) {\n return null;\n }\n return inputContext.getInputName();\n}\n"
"protected void doExecuteCommands(double startTimeMillis) {\n assert (!isExecutionTimerPending());\n boolean wasCanceled = false;\n try {\n setExecuting(true);\n iterator.setEnd(commands.size());\n cancellationTimer.schedule(DEFAULT_CANCELLATION_TIMEOUT_MILLIS);\n while (iterator.ha...
"public void render() {\n GL11.glEnableClientState(GL11.GL_VERTEX_ARRAY);\n ARBBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, vertexBufferID);\n GL11.glVertexPointer(2, GL11.GL_FLOAT, 0, 0);\n if (colourBufferID > -1) {\n GL11.glEnableClientState(GL11.GL_COLOR_ARRAY);\n ...
"public void checkDownloadInOtherInstall() throws InterruptedException {\n String statusBtnUiSelector = \"String_Node_Str\";\n List<AndroidElement> downloadBtnList = mDriver.findElementsByAndroidUIAutomator(statusBtnUiSelector);\n int eListSize;\n if ((eListSize = downloadBtnList.size()) > 0) {\n int...
"public void show(int x, int y) {\n if (model.getSelectedElement() == null) {\n return;\n }\n if (model.getSelectedElement() instanceof HierarchyWizardGroupingInterval) {\n if (model.getIntervals().size() == 1) {\n this.remove.setEnabled(false);\n } else if (model.isFirst(interv...
"public final boolean isString() {\n return isSubtype(getNativeType(JSTypeNative.STRING_VALUE_OR_OBJECT_TYPE));\n}\n"
"public static <T extends ImageBase> SegmentFelzenszwalbHuttenlocher04<T> fh04(ConfigFh04 config, ImageType<T> imageType) {\n if (config == null)\n config = new ConfigFh04();\n FhEdgeWeights<T> edgeWeights = weightsFelzenszwalb04(config.connectRule, imageType);\n SegmentFelzenszwalbHuttenlocher04<T> alg...
"public void deactivate() {\n ((Node) getModel()).removePropertyChangeListener(this);\n nodeTransferDragSourceListener.setEditPart(null);\n getViewer().removeDragSourceListener(nodeTransferDragSourceListener.getNodeTransferDragSourceListener());\n super.deactivate();\n}\n"
"public void execute() throws MojoExecutionException, MojoFailureException {\n aetherUtil = new AetherUtil(repoSystem, repoSession, remoteRepos, localRepo, getLog());\n try {\n Set<Artifact> featureArtifacts = new LinkedHashSet<Artifact>();\n featureArtifacts.addAll(aetherUtil.resolveDependencies(Mv...
"public void position(long at) {\n ensure(at, margin).position((int) (at - filePos));\n}\n"
"private synchronized void informMesh(RemoteFileDesc rfd, boolean good) {\n URN bucketHash = null;\n IncompleteFileDesc ifd = null;\n AlternateLocation loc = null;\n AlternateLocation forFD = null;\n if (!rfd.isAltLocCapable())\n return;\n bucketHash = buckets.getURNForBucket(bucketNumber);\n ...
"public void onSelect(Integer target) {\n if (target != null && (Dungeon.level.visited[target] || Dungeon.level.mapped[target])) {\n int missileProperties = (Dungeon.depth == 10 || Dungeon.depth == 15 || Dungeon.depth == 20 || Dungeon.depth == 25) ? Ballistica.PROJECTILE : Ballistica.STOP_CHARS | Ballistica.S...
"private <Arg, Result> Result executeCommand(String db, Command<? super Arg, ? super Result> command, Arg arg, WriteMongodTransaction trans) throws MongoException {\n Request req = new Request(db, null, true, null);\n Status<Result> result = trans.execute(req, command, arg);\n if (result == null) {\n th...
"public int runCovariance(String[] args) throws Exception {\n Job job = Job.getInstance();\n job.setJarByClass(Covariance.class);\n job.addCacheFile(new URI(\"String_Node_Str\" + args[1] + \"String_Node_Str\"));\n job.setOutputKeyClass(IntWritable.class);\n job.setOutputValueClass(FloatImage.class);\n ...
"public XAKnoxAuditEventDao getXAKnoxAuditEvent() {\n if (mKnoxDao == null) {\n mKnoxDao = new XAKnoxAuditEventDao(this);\n }\n return mKnoxDao;\n}\n"
"public static final ColorFactory getInstance() {\n if (instance == null) {\n instance = new ColorFactory();\n }\n return instance;\n}\n"
"public void run() {\n long startTime = System.currentTimeMillis();\n personMatchList = new ArrayList<PersonMatch>();\n Connection conn = Sql.connect();\n Calendar cal = Calendar.getInstance();\n String sql = \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String_Node_Str\" + \"String...
"public void run() {\n for (long i = 0; i < 10000; i++) log.warn(\"String_Node_Str\" + i);\n}\n"
"void removeConnectionLocked(ConnectionRecord c, ProcessRecord skipApp, ActivityRecord skipAct) {\n IBinder binder = c.conn.asBinder();\n AppBindRecord b = c.binding;\n ServiceRecord s = b.service;\n ArrayList<ConnectionRecord> clist = s.connections.get(binder);\n if (clist != null) {\n clist.remo...
"public void testProcessIntersections() throws DelaunayError {\n ConstrainedMesh mesh = new ConstrainedMesh();\n mesh.addConstraintEdge(new MyEdge(new MyPoint(0, 0, 0), new MyPoint(2, 2, 0)));\n mesh.addConstraintEdge(new MyEdge(new MyPoint(0, 2, 0), new MyPoint(2, 0, 0)));\n mesh.forceConstraintIntegrity()...
"public boolean placeBlock(BlockGroup type) {\n IWorldProvider worldProvider = _player.getParent().getWorldProvider();\n RayBlockIntersection.Intersection selectedBlock = _player.getSelectedBlock();\n if (selectedBlock != null) {\n BlockPosition centerPos = selectedBlock.getBlockPosition();\n Blo...
"public boolean enderman$isScreaming() {\n return this.dataWatcher.getWatchableObjectByte(18) > 0;\n}\n"
"public void updateRowComponentsRenderState(AjaxRequestTarget target) {\n if (currentData == null)\n return;\n List<Integer> indexToUpdate;\n if ((indexToUpdate = getIndexToUpdate()) != null) {\n int firstRow = table.getCurrentPage() * table.getRowsPerPage();\n int lastRow = firstRow + tab...
"private String newModel(String modelName) {\n String projectFullPath = getCurrentHome();\n TelosysProject telosysProject = new TelosysProject(projectFullPath);\n try {\n File modelFile = telosysProject.createNewDslModel(modelName);\n setCurrentModel(modelFile);\n return \"String_Node_Str\...
"public boolean apply(Game game, Ability source) {\n Player player = game.getPlayer(source.getControllerId());\n if (player == null) {\n return false;\n }\n boolean doAgain;\n do {\n Cards cards = new CardsImpl();\n int count = Math.min(player.getLibrary().size(), 5);\n for (i...
"public void spvSendFundsResult(SpvSendFundsResult event) {\n if (!event.operationId.equals(lastOperationId)) {\n return;\n }\n if (!event.isSuccess) {\n new AlertDialog.Builder(getActivity()).setTitle(Html.fromHtml(\"String_Node_Str\" + getString(R.string.error) + \"String_Node_Str\")).setMessag...
"protected void analyzeType(JType type) {\n String modelAnnotation = getModelAnnotation(type.getComment());\n boolean isEClassifier = false;\n String kind = null;\n if (modelAnnotation != null) {\n kind = getModelAnnotationAttribute(modelAnnotation, \"String_Node_Str\");\n isEClassifier = !\"S...
"public URL getURL() {\n return configurator.getUrl();\n}\n"
"private void renderGeometryCollection(GeometryCollection features, Color color, float lineWidth) {\n if (features != null) {\n Graphics2D g2d = (Graphics2D) displayImage.getGraphics();\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setColor(col...
"private void generateSysCall(int parametersSize, VM_Field target) {\n int linkageAreaSize = parametersSize + BYTES_IN_STACKSLOT + (6 * BYTES_IN_STACKSLOT);\n if (VM.BuildFor32Addr) {\n asm.emitSTWU(FP, -linkageAreaSize, FP);\n } else {\n asm.emitSTDU(FP, -linkageAreaSize, FP);\n }\n asm.em...
"public String toString() {\n String name = getClass().getSimpleName();\n if (name.isEmpty()) {\n name = \"String_Node_Str\";\n }\n MoreObjects.ToStringHelper helper = MoreObjects.toStringHelper(name).omitNullValues();\n helper.add(\"String_Node_Str\", resultType());\n extraToStringProperties(h...
"public int getDragLimitHeight(View rootView) {\n return rootView.getMeasuredHeight() / 3;\n}\n"
"private void loadCatalogItems() {\n Iterable<CatalogItemDtoAbstract<?, ?>> entries = dto.getUniqueEntries();\n if (entries != null) {\n for (CatalogItemDtoAbstract<?, ?> entry : entries) {\n CatalogUtils.installLibraries(mgmt, entry.getLibrariesDto());\n }\n }\n}\n"
"private ICubeCursor createCursor(IBindingValueFetcher fetcher) throws DataException, IOException, OLAPException {\n ICubeCursor cursor;\n executor = new CubeQueryExecutor(this.outResults, cubeQueryDefinition, this.session, this.scope, this.context);\n executor.getdimensionSimpleFilter().addAll(this.preparedQu...
"private void showIngestSourceObjects(final SelectedItems<?> selected) {\n if (selected != null) {\n selectedList.clear();\n selectedListPanel.setVisible(true);\n if (ClientSelectedItemsUtils.isEmpty(selected) && isJobInFinalState()) {\n Label noSourceLabel = new Label(messages.noItem...
"static private void serializeJArray(StringBuilder sb, JsonArray jarray) {\n sb.append(\"String_Node_Str\");\n JsonValue[] vs = jarray.toArray(new JsonValue[0]);\n if (vs.length != 0) {\n serializeAnyJValue(sb, vs[0], ancestorIdSet);\n }\n for (int i = 1; i < vs.length; i++) {\n sb.append(\...
"public boolean matches(IBond targetBond) {\n if (this.queryBond != null && queryBond instanceof IQueryBond) {\n return ((IQueryBond) queryBond).matches(targetBond);\n } else if ((queryBond != null && targetBond != null) && isBondMatchFlag() && isBondTypeMatch(targetBond)) {\n return true;\n }\n ...
"public static OpenBitSet getPrimeDocBitSet(Term primeDocTerm, IndexReader reader) throws IOException {\n Object key = reader.getCoreCacheKey();\n final Map<Object, OpenBitSet> primeDocMap = getPrimeDocMap(primeDocTerm);\n OpenBitSet bitSet = primeDocMap.get(key);\n if (bitSet == null) {\n reader.add...
"public void processXML(AnnotationsProcessor annotationsProcessor, JavaModelInput jModelInput) {\n this.jModelInput = jModelInput;\n this.aProcessor = annotationsProcessor;\n XmlBindings xmlBindings;\n for (String packageName : xmlBindingMap.keySet()) {\n xmlBindings = xmlBindingMap.get(packageName);...
"private void showHelp() {\n LayoutInflater li = LayoutInflater.from(this);\n View view = li.inflate(R.layout.layout_help, null);\n StringBuilder msg = new StringBuilder();\n msg.append(R.string.help_text_1);\n msg.append(\"String_Node_Str\");\n msg.append(R.string.help_text_2);\n msg.append(\"Stri...