Render the List-of-Analyses overview page.
3880
def get(self):
        """"""
        return self.render(
            'index.html',
            databench_version=DATABENCH_VERSION,
            meta_infos=self.meta_infos(),
            **self.info
        )
1233493
def _render_content_list(self, content, depth, dstack, **settings):
        
        result = []
        i = 0
        size = len(content)
        for value in content:
            ds = [(depth, i, size)]
            ds = dstack + ds
            if isinstance(value, dict):
                result.append(self._render_item(ds, "[{}]".format(i), **settings))
                result += self._render_content_dict(value, depth + 1, ds, **settings)
            elif isinstance(value, list):
                result.append(self._render_item(ds, "[{}]".format(i), **settings))
                result += self._render_content_list(value, depth + 1, ds, **settings)
            else:
                result.append(self._render_item(ds, value, **settings))
            i += 1
        return result
712214
def build_alias_summary_list(section)
      @context.aliases.map do |al|
        next unless al.section == section

        res = {
          'old_name' => al.old_name,
          'new_name' => al.new_name,
        }

        if al.comment and not al.comment.empty? then
          res['desc'] = markup al.comment, true
        end

        res
      end.compact
    end
656673
def render():
    ''''''
    from udata.core.organization.models import Organization
    from udata.core.post.models import Post
    from udata.core.reuse.models import Reuse
    from udata.core.user.models import User

    header('Rendering images')

    count = Counter()
    total = Counter()

    organizations = Organization.objects(logo__exists=True)
    total['orgs'] = organizations.count()
    log.info('Processing {0} organizations logos'.format(total['orgs']))
    for org in organizations:
        count['orgs'] += render_or_skip(org, 'logo')

    users = User.objects(avatar__exists=True)
    total['users'] = users.count()
    log.info('Processing {0} user avatars'.format(total['users']))
    for user in users:
        count['users'] += render_or_skip(user, 'avatar')

    posts = Post.objects(image__exists=True)
    total['posts'] = posts.count()
    log.info('Processing {0} post images'.format(total['posts']))
    for post in posts:
        count['posts'] += render_or_skip(post, 'image')

    reuses = Reuse.objects(image__exists=True)
    total['reuses'] = reuses.count()
    log.info('Processing {0} reuse images'.format(total['reuses']))
    for reuse in reuses:
        count['reuses'] += render_or_skip(reuse, 'image')

    log.info('''Summary:
    Organization logos: {count[orgs]}/{total[orgs]}
    User avatars: {count[users]}/{total[users]}
    Post images: {count[posts]}/{total[posts]}
    Reuse images: {count[reuses]}/{total[reuses]}
    '''.format(count=count, total=total))
    success('Images rendered')
761066
private function clientRenderList()
    {
        if ($this->settings['useGroups'])
        {
            $view = new Gallery_ClientGroupedListView();
        }
        else
        {
            $view = new Gallery_ClientListView();
        }

        $html = $view->render();
        return $html;
    }
120455
def render_summary(self, include_title=True):
        """"""
        title = ""
        classes = ["traceback"]
        if not self.frames:
            classes.append("noframe-traceback")
            frames = []
        else:
            library_frames = sum(frame.is_library for frame in self.frames)
            mark_lib = 0 < library_frames < len(self.frames)
            frames = [group.render(mark_lib=mark_lib) for group in self.groups]

        if include_title:
            if self.is_syntax_error:
                title = u"Syntax Error"
            else:
                title = u"Traceback <em>(most recent call last)</em>:"

        if self.is_syntax_error:
            description_wrapper = u"<pre class=syntaxerror>%s</pre>"
        else:
            description_wrapper = u"<blockquote>%s</blockquote>"

        return SUMMARY_HTML % {
            "classes": u" ".join(classes),
            "title": u"<h3>%s</h3>" % title if title else u"",
            "frames": u"\n".join(frames),
            "description": description_wrapper % escape(self.exception),
        }
513397
def show(self):
        
        print("APKs in Session: {}".format(len(self.analyzed_apk)))
        for d, a in self.analyzed_apk.items():
            print("\t{}: {}".format(d, a))

        print("DEXs in Session: {}".format(len(self.analyzed_dex)))
        for d, dex in self.analyzed_dex.items():
            print("\t{}: {}".format(d, dex))

        print("Analysis in Session: {}".format(len(self.analyzed_vms)))
        for d, a in self.analyzed_vms.items():
            print("\t{}: {}".format(d, a))
643319
protected function renderContent() {        
        ?>                
        <div id="maj-geodisp-list-page" class="center">
			<h2><?php echo $this->data->get('title'); ?></h2>
			
			<?php
			if($this->data->get('has_list', false)) { 
    		    $galist = $this->data->get('geoanalysislist');
    		?>
    		
    		<p class="center"><?php echo I18N::translate('Choose a geographical dispersion analysis:'); ?><p>
			
			<div class="maj-table">
				<?php foreach($galist as $ga) {?>
				<div class="maj-row">
					<div class="label">	
						<?php if($ga->hasMap()) { ?>
						<i class="icon-maj-map" title="<?php echo I18N::translate('Map'); ?>"></i>
						<?php } else { ?>
						<i class="icon-maj-table" title="<?php echo I18N::translate('Table'); ?>"></i>
						<?php } ?>
                	</div>
                	<div class="value">	
                		<a href="<?php echo $ga->getHtmlUrl(); ?>" title="<?php echo $ga->getTitle(); ?>" alt="<?php echo $ga->getTitle(); ?>"><?php echo $ga->getTitle(); ?></a>
                	</div>                	
                </div>
                <?php } ?>
      		</div>	
      		
      		<?php } else { ?>
      		<p class="warning"><?php echo I18N::translate('There is no geographical dispersion analysis to display.'); ?><p>
      		<?php } ?>	
    	</div>
    	
    	<?php 
    }
1050872
def render(self):
        """"""
        engine = Engine()
        return engine.from_string(SUMMARY_TEMPLATE).render(Context(self.__dict__))
588252
def getAnalysisServicesDisplayList(self):
        ''' 
        '''
        bsc = getToolByName(self, 'bika_setup_catalog')
        items = [('', '')] + [(o.getObject().Keyword, o.Title) for o in
                                bsc(portal_type = 'AnalysisService',
                                    is_active = True)]
        items.sort(lambda x, y: cmp(x[1].lower(), y[1].lower()))
        return DisplayList(list(items))
1039769
function render(list) {
	const blank = new Array(process.stdout.rows).fill('\n')
	console.log(blank)
	readline.cursorTo(process.stdout, 0, 0)
	readline.clearScreenDown(process.stdout)
	list.forEach( user => {
		console.log(`${chalk.hsl(color(user.name),100,50)(user.name)}: ${user.id}`)
	})


}
203823
public function render_positions(){
		$debug_pages_cache=defined('DEBUG_PAGES_CACHE')?DEBUG_PAGES_CACHE:1;
		$bCache = BFactory::getCache();
		if(($bCache)&&($debug_pages_cache)){
			//Accumulating keys...
			$keys=array();
			$suffix=BBrowserUseragent::getDeviceSuffix();
			foreach($this->rules as &$c){
				$c->key=$this->getUrlCahceKey($c->com,$this->langcode,$suffix,$c->segments);
				$keys[]=$c->key;
				}
			//Multi-get from cache
			$list=$bCache->mget($keys);
			foreach($this->rules as &$c){
				if(($list[$c->key]!==false)&&($list[$c->key]!==NULL)){
					$c->status=$list[$c->key]->status;//200 | 403 | 404
					$c->output=$list[$c->key]->output;
					$c->title=$list[$c->key]->title;
					$c->meta=$list[$c->key]->meta;
					$c->link=$list[$c->key]->link;
					$c->js=$list[$c->key]->js;
					$c->style=$list[$c->key]->style;
					$c->frameworks=$list[$c->key]->frameworks;
					$c->breadcrumbs=$list[$c->key]->breadcrumbs;
					$c->modified=new DateTime($list[$c->key]->modified);
					$c->cachecontrol=$list[$c->key]->cachecontrol;
					$c->cachetime=$list[$c->key]->cachetime;
					$c->locationurl=$list[$c->key]->locationurl;
					$c->locationtime=$list[$c->key]->locationtime;
					$c->rendered=true;
					}
				}
			}
		//Rendering components, not loaded from cache...
		$tocache=array();
		foreach($this->rules as &$c){
			if(!$c->rendered){
				if(ROUTER_DEBUG){
					$view=isset($c->segments['view'])?$c->segments['view']:'';
					BLog::addToLog('[Router]: Rendering component ('.$c->com.(empty($view)?'':'.'.$view).')...');
					}
				$controller=$this->component_load($c->com);
				if(empty($controller)){
					continue;
					}
				$controller->templatename=$this->templatename;
				//Running component...
				$c->output=$controller->run($c->segments);
				$c->status=$controller->status;
				$c->title=$controller->title;
				$c->meta=$controller->meta;
				$c->link=$controller->link;
				$c->js=$controller->js;
				$c->style=$controller->style;
				$c->frameworks=$controller->frameworks;
				$c->breadcrumbs=$controller->breadcrumbs;
				$c->modified=empty($controller->modified)?NULL:$controller->modified->format('Y-m-d H:i:s');
				$c->cachecontrol=$controller->cachecontrol;
				$c->cachetime=$controller->cachetime;
				$c->locationurl=$controller->locationurl;
				$c->locationtime=$controller->locationtime;
				$c->rendered=true;
				//Caching the result, if necessary.
				if(($bCache)&&($debug_pages_cache)&&($c->cachecontrol)){
					$bCache->set($c->key,$c,$c->cachetime);
					}
				//Convert to object.
				$c->modified=$controller->modified;
				}
			}
		}
785719
def analyze(self):
        
        key = '/library/sections/%s/analyze' % self.key
        self._server.query(key, method=self._server._session.put)
161099
def list_analyses(self, component=None):
        
        self.assert_open()
        analyses = []
        if 'Analyses' not in self.handle:
            return analyses
        ana_groups = self.handle['Analyses'].keys()
        for group_name in ana_groups:
            group_attrs = self.handle['Analyses/{}'.format(group_name)].attrs
            if 'component' in group_attrs:
                comp = _clean(group_attrs['component'])
            elif group_name[:-4] in LEGACY_COMPONENT_NAMES:
                comp = LEGACY_COMPONENT_NAMES[group_name[:-4]]
            else:
                # We don't know anything about this component!
                comp = None
            if comp is not None and (component is None or comp == component):
                analyses.append((comp, group_name))
        return analyses
99857
def overview
      @sessions = Gricer.config.session_model.browsers.between_dates(@stat_from, @stat_thru)
      @requests = Gricer.config.request_model.browsers.between_dates(@stat_from, @stat_thru)
      
      render partial: 'overview', formats: [:html], locals: {sessions: @sessions, requests: @requests}
    end
1141774
def account_overview(object):
    """"""
    return Layout(
        Container(
            Row(
                Column2(
                    Panel(
                        'Avatar',
                        Img(src="{}{}".format(settings.MEDIA_URL, object.avatar)),
                        collapse=True,
                    ),
                ),
                Column10(
                    Panel(
                        'Account information',
                        DescriptionList(
                            'email',
                            'first_name',
                            'last_name',
                        ),
                    )
                ),
            )
        )
    )
1041071
public function renderProfile()
    {
        $this->checkIsLogin();

        $name = $this->di->get('session')->get("user");
        $user = $this->getUserDetails($name);


        $views = [
            ["comment/user/profile/profile", ["user" => $user], "main"]
        ];

        if ($user->authority == "admin") {
            $views = [
                ["comment/admin/navbar", [], "main"],
                ["comment/user/profile/profile", ["user" => $user], "main"]
            ];
        }

        $this->di->get("pageRenderComment")->renderPage([
            "views" =>  $views,
            "title" => "$user->name"
        ]);
    }