return list of purchasable and not entitled products
15068
def list(self):
        
        mylist = []
        for prod in self.product_list:
            if self.purchasable(prod) and not self.entitled(prod):
                mylist.append(prod)
        return mylist
1097945
def list(ctx):
    """"""
    if ctx.namespace != 'accounts':
        click.echo(
            click.style('Only account data is available for listing.', fg='red')
        )
        return

    swag = create_swag_from_ctx(ctx)
    accounts = swag.get_all()
    _table = [[result['name'], result.get('id')] for result in accounts]
    click.echo(
        tabulate(_table, headers=["Account Name", "Account Number"])
    )
406908
def get_items(self):
        """"""
        ils = get_item_lookup_session(runtime=self._runtime, proxy=self._proxy)
        ils.use_federated_bank_view()
        items = []
        if self.has_items():
            for idstr in self._my_map['itemIds']:
                items.append(ils.get_item(Id(idstr)))
        return ItemList(items, runtime=self._runtime, proxy=self._proxy)
442089
function (wishlist) {
        if (!wishlist) {
            return wishlist;
        }

        for (var key in wishlist) {
            wishlist[key].product = sofa.Util.extend(new sofa.models.Product(), wishlist[key].product);
        }
        return wishlist;
    }
84252
def relatedItems(self):
        '''
        
        '''
        if self.registration:
            return self.registration.revenueitem_set.exclude(pk=self.pk)
994502
public function getRelatedPurchasablesFromArray(array $purchasables, $limit)
    {
        $categories = [];

        /**
         * @var PurchasableInterface $product
         */
        foreach ($purchasables as $purchasable) {
            $category = $purchasable->getPrincipalCategory();
            if (
                $category instanceof CategoryInterface &&
                !in_array($category, $categories)
            ) {
                $categories[] = $category;
            }
        }

        if (empty($categories)) {
            return [];
        }

        return $this
            ->purchasableRepository
            ->createQueryBuilder('p')
            ->where('p.principalCategory IN(:categories)')
            ->andWhere('p NOT IN(:purchasables)')
            ->andWhere('p.enabled = :enabled')
            ->setParameters([
                'categories' => $categories,
                'purchasables' => $purchasables,
                'enabled' => true,
            ])
            ->setMaxResults($limit)
            ->getQuery()
            ->getResult();
    }
1093266
public function getWishlist()
    {
        $conditions = array(
            'product_status' => 1,
            'user_id' => $this->cart_uid,
            'store_id' => $this->store_id
        );

        return (array) $this->wishlist->getList($conditions);
    }
649329
def get_req_list():
    """"""
    req_list = parse_reqs(REQUIREMENTS['prod'])
    if len(sys.argv) > 2 and sys.argv[2] == ('develop'):
        req_list += parse_reqs(REQUIREMENTS['dev'])
    return req_list
988923
def itemlist(item, sep, suppress_trailing=True):
    """"""
    return condense(item + ZeroOrMore(addspace(sep + item)) + Optional(sep.suppress() if suppress_trailing else sep))
742937
def items(self):
        
        if not self.cursor.rowcount:
            return []

        self.cursor.scroll(0, 'absolute')
        return self.cursor.fetchall()
58733
def list():
        
        try:
            devs = hid.enumerate(VENDOR_ID,PRODUCT_ID)
            serials = list(map(lambda d:d.get('serial_number'), devs))
            return serials
        except IOError as e:
            return []
177065
def _standard_items(self, restrictions):
        """"""
        standard_items = self._build_where(restrictions, for_in=False)
        names = ["{}.{} == ?".format(pair[0], pair[1])
                 for pair in standard_items]
        values = [item[2] for item in standard_items]
        return (names, values)
928509
public function listProduct()
    {
        $this->actionListProduct();
        $this->setTitleListProduct();
        $this->setBreadcrumbListProduct();
        $this->setFilterListProduct();
        $this->setPagerListProduct();

        $this->setData('products', $this->getListProduct());
        $this->setData('currencies', $this->currency->getList(array('enabled' => true)));

        $this->outputListProduct();
    }
1184612
def getExportsList(self, enable=True):
        
        if enable:
            return [e for e in self._exports]
        else:
            return [e for e in self._exports_all]
1328844
def getBillableItems(self):
        
        # Assigned profiles
        profiles = self.getProfiles()
        # Billable profiles which have a fixed price set
        billable_profiles = filter(
            lambda pr: pr.getUseAnalysisProfilePrice(), profiles)
        # All services contained in the billable profiles
        billable_profile_services = reduce(lambda a, b: a+b, map(
            lambda profile: profile.getService(), billable_profiles), [])
        # Keywords of the contained services
        billable_service_keys = map(
            lambda s: s.getKeyword(), set(billable_profile_services))
        # The billable items contain billable profiles and single selected analyses
        billable_items = billable_profiles
        # Get the analyses to be billed
        exclude_rs = ["retracted", "rejected"]
        for analysis in self.getAnalyses(is_active=True):
            if analysis.review_state in exclude_rs:
                continue
            if analysis.getKeyword in billable_service_keys:
                continue
            billable_items.append(api.get_object(analysis))
        return billable_items
1330083
def filter_items(self, items):
        ''''''
        items = self._filter_active(items)
        items = self._filter_in_nav(items)
        return items
350539
function listWithoutVersions() {
  const options = {
    transforms() {
      return [filter({wantStrings: true}, function (str) {
        return str.indexOf('@') === -1;
      })];
    }
  };

  return list(options);
}