Get all data and display the page
344963
def page(self, course, errors=None, saved=False):
        
        return self.template_helper.get_renderer().course_admin.settings(course, errors, saved)
862079
private function show_all()
    {
        $query = "SELECT expires, body FROM cache";
        if ($result = $this->db->query($query)) {
            if ($result->size() > 0) {
                $results = $result->fetchAll();
                echo '<pre>';
                print_r($results);
                echo '</pre>';
            } else {
                return false;
            }
        } else {
            // TODO: Handle error
            return false;
        }
    }
3880
def get(self):
        """"""
        return self.render(
            'index.html',
            databench_version=DATABENCH_VERSION,
            meta_infos=self.meta_infos(),
            **self.info
        )
64750
def pages(self):
        
        url = self._build_url('pages', base_url=self._api)
        json = self._json(self._get(url), 200)
        return PagesInfo(json) if json else None
1110052
def _get_page_content(self, page):
        
        src_file = os.path.join(self.pages_dir, page)
        with open(src_file) as f:
            _meta, content = frontmatter.parse(f.read())
            return content
434146
def list():
    
    for name, url in get_all_data().items():
        echo('{}: {}'.format(
            style(name, fg='blue'),
            style(url, fg='green')
        ))
310086
def get_page(url):
    
    response = requests.get(url)
    handle_error(response, 200)
    data = response.json()
    return data
696824
def do_requests_to_getall(self, uri, requested_count):
        
        items = []

        while uri:
            logger.debug('Making HTTP request to get all resources. Uri: {0}'.format(uri))
            response = self._connection.get(uri)
            members = self.get_members(response)
            items += members

            logger.debug("Response getAll: nextPageUri = {0}, members list length: {1}".format(uri, str(len(members))))
            uri = self.get_next_page(response, items, requested_count)

        logger.debug('Total # of members found = {0}'.format(str(len(items))))
        return items
111358
def show
      @all_pages = @question_sheet.pages.find(:all)
      @page = @all_pages[0]

      respond_to do |format|
        format.html # show.rhtml
        format.xml  { render :xml => @question_sheet.to_xml }
      end
    end
785090
def display(self):
        
        total = 0
        count = 0
        for i, result in enumerate(self._results):
            if total == 0:
                self.pre_write()
            self.write(result)
            count += 1
            total += 1
            if (
                count >= self.pagesize
                and self.pagesize > 0
                and i < len(self._results) - 1
            ):
                self.wait()
                count = 0
        if total == 0:
            self._ostream.write("No results\n")
        else:
            self.post_write()
422270
def all(self, archived=False, limit=None, page=None):
        """"""
        path = partial(_path, self.adapter)
        if not archived:
            path = _path(self.adapter)
        else:
            path = _path(self.adapter, 'archived')
        return self._get(path, limit=limit, page=page)
1161552
def values(self, limit=None, page=None):
        
        return self.get(limit=limit, page=page).values()
1354392
public function fetch($page = 1) {
    $params = $this->params;
    if ($this->paginate) {
      $params = array_merge($params, array('page' => $page));
    }

    $response = $this->client->get($this->path(), $params);
    $data = $response->json();

    if ($this->paginate) {
      $this->total = $data['total'];
      $this->pages = $data['pages'];
      $this->limit = $data['limit'];
      $this->currentPage = $data['current_page'];
      foreach ($data[static::$name] as $i => $deviceData) {
        $position = $i + ($this->currentPage - 1) * $this->limit;
        $this->setResource($position, $deviceData);
      }
    } else {
      $data = current($data);
      $this->total = count($data);
      foreach ($data as $i => $deviceData) {
        $this->setResource($i, $deviceData);
      }
    }
  }
210426
protected function loadPage()
	{
		$this->_dataProvider->getPagination()->setCurrentPage($this->_currentPage);
		return $this->_items=$this->dataProvider->getData(true);
	}
1257806
def _collect_data(self):
        
        all_data = []
        for line in self.engine.run_engine():
            logging.debug("Adding {} to all_data".format(line))
            all_data.append(line.copy())
            logging.debug("all_data is now {}".format(all_data))

        return all_data
138531
def initialize_page_data(self):
        """"""
        if self.term.is_a_tty:
            self.display_initialize()
        self.character_generator = self.character_factory(self.screen.wide)
        page_data = list()
        while True:
            try:
                page_data.append(next(self.character_generator))
            except StopIteration:
                break
        if LIMIT_UCS == 0x10000:
            echo(self.term.center('press any key.').rstrip())
            flushout()
            self.term.inkey(timeout=None)
        return page_data
145980
async def get_data(self):
        """"""
        try:
            await self.get_session_data()
            await self.get_home_data()
            await self.get_users()
            await self.get_user_data()
        except (asyncio.TimeoutError, aiohttp.ClientError, socket.gaierror):
            msg = "Can not load data from Tautulli."
            logger(msg, 40)