!
        @brief Flash one or more pages.
        
        @exception FlashProgramFailure
509325
def program_page(self, address, bytes):
        
        assert self._active_operation == self.Operation.PROGRAM

        # prevent security settings from locking the device
        bytes = self.override_security_bits(address, bytes)

        # first transfer in RAM
        self.target.write_memory_block8(self.begin_data, bytes)

        # update core register to execute the program_page subroutine
        result = self._call_function_and_wait(self.flash_algo['pc_program_page'], address, len(bytes), self.begin_data)

        # check the return code
        if result != 0:
            raise FlashProgramFailure('program_page(0x%x) error: %i' % (address, result), address, result)
297058
protected void flash(String name, String value) {
        /*if (session().get(Context.FLASH_SESSION_KEYWORD) == null) {
            session().put(Context.FLASH_SESSION_KEYWORD, new HashMap<String, Object>());
        }
        ((Map<String, Object>) session().get(Context.FLASH_SESSION_KEYWORD)).put(name, value);*/
        //context.setFlash(name, value);
        context.getFlash().put(name, value);
    }
1291821
public Void call() throws TTException {
        emitStartDocument();

        long[] versionsToUse;

        // if there are no versions specified, take the last one, of not version==0
        if (mVersions.length == 0) {
            if (mSession.getMostRecentVersion() > 0) {
                versionsToUse = new long[] {
                    mSession.getMostRecentVersion()
                };
            }// revision 0 = bootstrapped page
            else {
                versionsToUse = new long[0];
            }
        } // if there is any negative number specified, take the entire range of versions, otherwise take the
          // parameter
        else {
            // sort the versions first
            Arrays.sort(mVersions);
            if (mVersions[0] < 0) {
                versionsToUse = new long[(int)mSession.getMostRecentVersion() - 1];

                for (int i = 0; i < versionsToUse.length; i++) {
                    versionsToUse[i] = i + 1;
                }

            }// otherwise take the versions as requested as params
            else {
                int index = Arrays.binarySearch(mVersions, 1);
                versionsToUse = Arrays.copyOfRange(mVersions, index, mVersions.length);
            }
        }

        for (int i = 0; i < versionsToUse.length; i++) {

            INodeReadTrx rtx = new NodeReadTrx(mSession.beginBucketRtx(versionsToUse[i]));

            if (versionsToUse == null || mVersions.length > 1) {
                emitStartManualElement(i);
            }

            rtx.moveTo(mNodeKey);

            final AbsAxis descAxis = new DescendantAxis(rtx, true);

            // Setup primitives.
            boolean closeElements = false;
            long key = rtx.getNode().getDataKey();

            // Iterate over all nodes of the subtree including self.
            while (descAxis.hasNext()) {
                key = descAxis.next();
                ITreeStructData currentStruc = (ITreeStructData)rtx.getNode();

                // Emit all pending end elements.
                if (closeElements) {
                    while (!mStack.empty() && mStack.peek() != currentStruc.getLeftSiblingKey()) {
                        rtx.moveTo(mStack.pop());
                        emitEndElement(rtx);
                        rtx.moveTo(key);
                    }
                    if (!mStack.empty()) {
                        rtx.moveTo(mStack.pop());
                        emitEndElement(rtx);
                    }
                    rtx.moveTo(key);
                    closeElements = false;
                }
                // Emit node.
                emitStartElement(rtx);
                // Push end element to stack if we are a start element with
                // children.
                if (currentStruc.getKind() == IConstants.ELEMENT && currentStruc.hasFirstChild()) {
                    mStack.push(rtx.getNode().getDataKey());
                }

                // Remember to emit all pending end elements from stack if
                // required.
                if (!currentStruc.hasFirstChild() && !currentStruc.hasRightSibling()) {
                    closeElements = true;
                }

            }

            // Finally emit all pending end elements.
            while (!mStack.empty()) {
                rtx.moveTo(mStack.pop());
                emitEndElement(rtx);
            }

            if (versionsToUse == null || mVersions.length > 1) {
                emitEndManualElement(i);
            }
        }
        emitEndDocument();

        return null;
    }
469930
def run(self, resources):
        
        if not resources['connection']._port.startswith('jlink'):
            raise ArgumentError("FlashBoardStep is currently only possible through jlink", invalid_port=args['port'])

        hwman = resources['connection']
        debug = hwman.hwman.debug(self._debug_string)
        debug.flash(self._file)
1211790
function (msg, nodeId, ns) {
            nodeId = nodeId || "errorFlash";
            this.flashMessage(msg, nodeId, ns, true);
        }
986666
public void actionPreview() throws IOException, JspException {

        try {
            // save content of the editor to the temporary file
            performSaveContent(getParamElementname(), getElementLocale());
        } catch (CmsException e) {
            // show error page
            showErrorPage(this, e);
        }

        // redirect to the temporary file with current active element language
        String param = "?" + org.opencms.i18n.CmsLocaleManager.PARAMETER_LOCALE + "=" + getParamElementlanguage();
        sendCmsRedirect(getParamTempfile() + param);
    }
260100
private void buildFilmListFlash() throws Exception {
        final NodeList subtitleData = doc.getElementsByTagName("p");

        for (int i = 0; i < subtitleData.getLength(); i++) {
            final Subtitle subtitle = new Subtitle();

            final Node subnode = subtitleData.item(i);
            if (subnode.hasAttributes()) {
                // retrieve the begin and end attributes...
                final NamedNodeMap attrMap = subnode.getAttributes();
                final Node beginNode = attrMap.getNamedItem("begin");
                final Node endNode = attrMap.getNamedItem("end");
                if (beginNode != null && endNode != null) {
                    subtitle.begin = parseFlash(beginNode.getNodeValue());
                    subtitle.end = parseFlash(endNode.getNodeValue());
                    final StyledString textContent = new StyledString();
                    textContent.setColor(color); // sicher ist sicher
                    textContent.setText(subnode.getTextContent());

                    final Node col = attrMap.getNamedItem("tts:color");
                    if (col != null) {
                        textContent.setColor(col.getNodeValue());
                    } else {
                        final NodeList childNodes = subnode.getChildNodes();
                        for (int j = 0; j < childNodes.getLength(); j++) {
                            final Node node = childNodes.item(j);
                            if (node.getNodeName().equalsIgnoreCase("span")) {
                                //retrieve the text and color information...
                                final NamedNodeMap attr = node.getAttributes();
                                final Node co = attr.getNamedItem("tts:color");
                                textContent.setColor(co.getNodeValue());
                            }
                        }
                    }
                    subtitle.listOfStrings.add(textContent);

                }
            }
            subtitleList.add(subtitle);
        }
    }
263428
public void writeScript(AbstractRenderAppender sb)
    {
        assert(sb != null) : "The paramter 'sb' must not be null;";
        if (_writeScript)
            return;

        _writeScript = true;
        IScriptReporter sr = getParentScriptReporter();
        if (sr != null) {
            sr.writeScript(sb);
            return;
        }

        writeBeforeBlocks(sb);
        writeFrameworkScript(sb);
        writeAfterBlocks(sb);
    }
34587
def continue
      fail 'This is the last page' unless continue?

      action = @action.merge(@metadata.fetch('continue'))

      self.class.new(action, merge_responses(JSON.parse(action.perform)))
    end
1196267
public int doStartTag()
            throws JspException {

        if (!_visible)
            return SKIP_BODY;

        // If the parent is a DivPanel then this section will be inlined.
        Tag parentTag = getParent();
        // If the parent tag is a repeater then we must insure that the parent of that is a DivPanel
        if (parentTag instanceof Repeater) {
            parentTag = parentTag.getParent();
            if (!(parentTag instanceof DivPanel)) {
                String s = Bundle.getString("Temp_SectionInRepeater");
                registerTagError(s,null);
                reportErrors();
                localRelease();
                return EVAL_PAGE;
             }
        }
        if (parentTag instanceof DivPanel) {
            InternalStringBuilder results = new InternalStringBuilder(128);
            results.append("<div ");
            renderTagId(results);
            if (hasErrors()) {
                reportErrors();
                localRelease();
                return EVAL_PAGE;
            }
            results.append(">");
            ResponseUtils.write(pageContext,results.toString());
            return EVAL_BODY_BUFFERED;
        }

        return EVAL_BODY_BUFFERED;
    }
505773
function () /*:Void*/ {

        //set the current page
        this._curPage = this._pages.shift();

        this.fire(this.TEST_PAGE_BEGIN_EVENT, this._curPage);

        //load the frame - destroy history in case there are other iframes that
        //need testing
        this._frame.location.replace(this._curPage);

    }
448000
private AFTPClient actionCreateDir() throws IOException, PageException {
	required("directory", directory);

	AFTPClient client = getClient();
	client.makeDirectory(directory);
	writeCfftp(client);
	return client;
    }
745060
private void processNextPage() throws IOException {
        int bitOffset = sasFileProperties.isU64() ? PAGE_BIT_OFFSET_X64 : PAGE_BIT_OFFSET_X86;
        currentPageDataSubheaderPointers.clear();

        try {
            sasFileStream.readFully(cachedPage, 0, sasFileProperties.getPageLength());
        } catch (EOFException ex) {
            eof = true;
            return;
        }

        readPageHeader();
        if (currentPageType == PAGE_META_TYPE_1 || currentPageType == PAGE_META_TYPE_2
                || currentPageType == PAGE_AMD_TYPE) {
            List<SubheaderPointer> subheaderPointers = new ArrayList<SubheaderPointer>();
            processPageMetadata(bitOffset, subheaderPointers);
            if (currentPageType == PAGE_AMD_TYPE) {
                processMissingColumnInfo();
            }
        }
    }
1327601
@Override
    public int doStartTag() throws JspException {
        try {
            XPathContext context = XalanUtil.getContext(this, pageContext);
            XObject result = select.execute(context, context.getCurrentNode(), null);
            pageContext.setAttribute(var, XalanUtil.coerceToJava(result), scope);
            return SKIP_BODY;
        } catch (TransformerException e) {
            throw new JspTagException(e);
        }
    }
856646
public void actionShow() throws Exception {

        // try to load the historical resource
        if (CmsStringUtil.isNotEmpty(getParamVersion())) {
            showHistoricVersion();
        } else {
            String resourceStr = getParamResource();
            // trying to read the resource
            CmsResource resource = readResource(resourceStr);
            if (isDeleted(resource)) {
                // resource has been deleted in offline project
                throw new CmsVfsResourceNotFoundException(Messages.get().container(
                    Messages.ERR_RESOURCE_DELETED_2,
                    resourceStr,
                    getCms().getRequestContext().getCurrentProject().getName()));
            }

            // check for release / expiration time window
            autoTimeWarp(resource);

            // code for display resource after all tests for displayability (exists, not deleted)
            //            if (CmsResourceTypeXmlContainerPage.isContainerPage(resource)) {
            //                // if we have a container page look for the first sitemap entry
            //                // and use that to display the container page
            //                List<CmsInternalSitemapEntry> entries = OpenCms.getSitemapManager().getEntriesForStructureId(
            //                    getJsp().getCmsObject(),
            //                    resource.getStructureId());
            //                if (!entries.isEmpty()) {
            //                    CmsInternalSitemapEntry entry = entries.get(0);
            //                    resourceStr = entry.getRootPath();
            //                }
            //            }
            if (OpenCms.getSiteManager().isSharedFolder(getCms().getRequestContext().getSiteRoot())) {
                if (!OpenCms.getSiteManager().startsWithShared(resourceStr)) {
                    resourceStr = CmsStringUtil.joinPaths(OpenCms.getSiteManager().getSharedFolder(), resourceStr);
                }
            }
            String url = getJsp().link(resourceStr);
            // if in online project
            if ((url.indexOf("://") < 0) && getCms().getRequestContext().getCurrentProject().isOnlineProject()) {
                url = prependSiteRoot(url);
            }
            getJsp().getResponse().sendRedirect(url);
        }
    }
731292
def flash(
    categories, param_file, project_dir, plugin, target,
    status_update_interval, board
):
    
    _init(board, project_dir)
    _run(
        categories, param_file, project_dir, plugin, target,
        status_update_interval
    )
    print "Done"
1093785
private function swishFails()
  {
    return function($isAjax, $code) {
      if ($code == 404) throw new NotFoundHttpException($isAjax, $code);
      throw new ClientErrorsException($isAjax, $code);
    };
  }