[getCurrentFeatured description]

Get information about currently featured products.

Pattern: %s/api/featured/

@return {[type]} [description]
348340
function(){
    return this.get('/featured', {
      'cc': this.options.country,
      'l': this.options.language
    }).then(function (body) {
      console.log('featured - ', body)
      return Promise.resolve(body);
    });
  }
68180
private FeatureInfo getFeatureInfo(String name,
                                       Map<String, ProductInfo> productInfos,
                                       Map<String, FeatureInfo> featuresBySymbolicName) {
        String productName, featureName;
        int index = name.indexOf(':');
        if (index == -1) {
            FeatureInfo featureInfo = featuresBySymbolicName.get(name);
            if (featureInfo != null) {
                return featureInfo;
            }

            productName = ManifestFileProcessor.CORE_PRODUCT_NAME;
            featureName = name;
        } else {
            productName = name.substring(0, index);
            featureName = name.substring(index + 1);
        }

        ProductInfo product = productInfos.get(productName);
        return product == null ? null : product.featuresByShortName.get(featureName);
    }
392569
def featured (count: 10)
      response = Faraday.get("#{API_BASE}/featuredlist/featured?count=#{count}")
      attributes = JSON.parse(response.body)
      assemble_tracks attributes
    end
80462
public function GetCurrentFilterAsArray()
    {
        $aFilterAsArray = $this->GetFromInternalCache('aFilterAsArray');
        if (is_null($aFilterAsArray)) {
            $oList = &$this->GetFieldPkgShopListfilterItemList();
            $aFilterAsArray = $oList->GetListSettingAsArray();
            $this->SetInternalCache('aFilterAsArray', $aFilterAsArray);
        }

        return $aFilterAsArray;
    }
944466
def getFeature(self, compoundId):
        
        feature = self._getFeatureById(compoundId.featureId)
        feature.id = str(compoundId)
        return feature
194396
public String getCurrentShrinkedLine() {
		if (!isCurrentLine()) {
			return null;
		}
		String string = FlatFileUtils.trim(currentLine,
				getTagWidth(currentLine));
		if (string.equals("")) {
			return null;
		}
		return FlatFileUtils.shrink(string);
	}
264332
def get_additional_charge_by_description(self, description):
        
        params = {
            "description": description
        }
        return self.client._get(self.url + 'recurringBillItems/', params=params, headers=self.get_headers())
900114
public function getCurrentDescription()
    {
        $files = $this->files;
        if(!($this->current === null)) {
            $files = $this->owner->$files;
            $file = $files[$this->current];
            return isset($file->vars->description) ? $file->vars->description : "";
        }
        return "";
    }
1143485
function getCurrentType() {
    let currentType = storage.getDataByKey(savedChartTypeKey);

    if (!currentType) {
        currentType = charts[0];
        storage.setDataByKey(savedChartTypeKey, currentType);
    }

    return currentType;
}
383757
public String getCurrentMaskedLine() {
		if (!isCurrentLine()) {
			return null;
		}
		StringBuilder str = new StringBuilder();
		int tagWidth = getTagWidth(currentLine);
		for (int i = 0; i < tagWidth; ++i) {
			str.append(" ");
		}
		if (currentLine.length() > tagWidth) {
			str.append(currentLine.substring(tagWidth));
		}
		return str.toString();
	}
941533
function fetchMainThemeId(env) {
  return new Promise((resolve, reject) => {
    const c = config.shopify[env]

    https.get({
      hostname: c.store,
      path: '/admin/themes.json',
      auth: `${c.api_key}:${c.password}`,
      agent: false
    }, (res) => {
      let body = ''

      res.on('data', datum => (body += datum))

      res.on('end', () => {
        const parsed = JSON.parse(body)

        if (parsed.errors) {
          reject(JSON.stringify(parsed.errors, null, '\t'))
          return
        }

        if (!Array.isArray(parsed.themes)) {
          reject(`
            Shopify response for /admin/themes.json is not an array.

            ${JSON.stringify(parsed, null, '\t')}
          `)
          return
        }

        const mainTheme = parsed.themes.find(t => t.role === 'main')

        if (!mainTheme) {
          reject(`
            No main theme in response.

            ${JSON.stringify(parsed.themes, null, '\t')}
          `)
          return
        }

        resolve(mainTheme.id)
      })
    })
  })
}
865575
def _get_patterns(installed_only=None, root=None):
    '''
    
    '''
    patterns = {}
    for element in __zypper__(root=root).nolock.xml.call('se', '-t', 'pattern').getElementsByTagName('solvable'):
        installed = element.getAttribute('status') == 'installed'
        if (installed_only and installed) or not installed_only:
            patterns[element.getAttribute('name')] = {
                'installed': installed,
                'summary': element.getAttribute('summary'),
            }

    return patterns
936221
function() {
      var name = this.jCal[NAME_INDEX];
      var designSet = this._designSet;

      if (name in designSet.property) {
        var details = designSet.property[name];
        if ('defaultType' in details) {
          return details.defaultType;
        }
      }
      return design.defaultType;
    }
812432
def getcomponentdetails(self, product, component, force_refresh=False):
        
        d = self.getcomponentsdetails(product, force_refresh)
        return d[component]
469351
protected function _fetchCurrent()
    {
        if ($this->_current !== null) {
            return $this->_current;
        }

        return $this->_current = parent::current();
    }
1267673
def getCurrentItem(self): # TODO: rename? getCurrentItemAndIndex? getCurrentTuple? getCurrent?
        
        currentIndex = self.getRowCurrentIndex()
        currentItem = self.model().getItem(currentIndex)
        return currentItem, currentIndex
965892
public function getCurrentPageAttributes()
    {
        // Create Attributes Array:
        
        $attributes = [];
        
        // Define Attributes Array:
        
        if ($id = $this->getCurrentPageClassID()) {
            $attributes['id'] = $id;
        }
        
        if ($class = $this->getCurrentPageAncestry()) {
            $attributes['class'] = $class;
        }
        
        // Extend Attributes Array:
        
        $this->extend('updateCurrentPageAttributes', $attributes);
        
        // Answer Attributes Array:
        
        return $attributes;
    }