Helper to add a list of similar elements to the current section.
        Element names will be used as an identifier.
492014
def add_element_list(self, elt_list, **kwargs):
        """"""
        for e in elt_list:
            self.add_element(Element(e, **kwargs))
1365278
public void addTo(String section, Object element)
    {
        Composite s = (Composite)sections.get(section);
        if (s==null)
            add(element);
        else
            s.add(element);
    }
479364
def add_element(self, priority, element, count=None):
        
        if count is None:
            count = next(self.counter)
        entry = [priority, count, element]
        self.element_finder[element] = entry
        heapq.heappush(self.pq, entry)
431043
private void addFirstChildElements() {
		for (Node node : nodes) {
			Index index = helper.getIndexInParent(node, false);
			if (index.index == 0)
				result.add(node);
		}
	}
1000708
protected function addToListBottom()
    {
        if ($this->isInList()) return;

        $newPosition = $this->getBottomPositionValue();

        if (null === $newPosition) {
            $newPosition = $this->listifyTop();
        } else {
            $newPosition += 1;
        }

        $this->setListifyPosition($newPosition);
    }
1302207
public void addSection(final Section SECTION) {
        if (null == SECTION) return;
        getSections().add(SECTION);
        getSections().sort(new SectionComparator());
        fireTileEvent(SECTION_EVENT);
    }
655669
def addend_ids(self):
        
        return tuple(
            arg
            for arg in self._subtotal_dict.get("args", [])
            if arg in self.valid_elements.element_ids
        )
364645
public List<Element> append(String name, Collection<String> values) {
		List<Element> elements = new ArrayList<Element>(values.size());
		for (String value : values) {
			elements.add(append(name, value));
		}
		return elements;
	}
522980
async def addFeedData(self, name, items, seqn=None):
        '''
        
        '''
        return await self.core.addFeedData(name, items, seqn)
414286
def prepend_elements(self, elements):
        
        self._elements = list(elements) + self._elements
        self._on_element_change()
1056006
def add_section(self, section, friendly_name = None):
  """"""
  if not isinstance(section, BASESTRING): # Make sure the user isn't expecting to use something stupid as a key.
   raise ValueError(section)
  # See if we've got this section already:
  if section in self.config:
   raise DuplicateSectionError(section) # Yep... Kick off.
  else:
   self.config[section] = OrderedDict() # Nope... Ad it
   if friendly_name == None:
    friendly_name = section.title()
   if '&' not in friendly_name:
    friendly_name = '&' + friendly_name
   self.section_names[section] = friendly_name
146219
def set_section_order(self, section_name_list):
        
        self.section_headings = section_name_list[:]
        for section_name in self.sections.keys():
            if section_name not in section_name_list:
                self.section_headings.append(section_name)
        return
1208152
def _preprocess_add_items(self, items):
        
        paths = []
        entries = []

        for item in items:
            if isinstance(item, string_types):
                paths.append(self._to_relative_path(item))
            elif isinstance(item, (Blob, Submodule)):
                entries.append(BaseIndexEntry.from_blob(item))
            elif isinstance(item, BaseIndexEntry):
                entries.append(item)
            else:
                raise TypeError("Invalid Type: %r" % item)
        # END for each item
        return (paths, entries)
485750
def _populate_bunch_with_element(element):
    
    if 'value' in element.attrib:
        return element.get('value')
    current_bunch = Bunch()

    if element.get('id'):
        current_bunch['nextra_element_id'] = element.get('id')
    for subelement in element.getchildren():
        current_bunch[subelement.tag] = _populate_bunch_with_element(
            subelement)
    return current_bunch
1003293
def _register_elements(self, elements):
        
        self.elements = elements

        for key, obj in elements.items():
            obj.contribute_to_class(self.metadata, key)

        # Create the common Django fields
        fields = {}
        for key, obj in elements.items():
            if obj.editable:
                field = obj.get_field()
                if not field.help_text:
                    if key in self.bulk_help_text:
                        field.help_text = self.bulk_help_text[key]
                fields[key] = field

        # 0. Abstract base model with common fields
        base_meta = type('Meta', (), self.original_meta)
        class BaseMeta(base_meta):
            abstract = True
            app_label = 'seo'
        fields['Meta'] = BaseMeta
        # Do we need this?
        fields['__module__'] = __name__ #attrs['__module__']
        self.MetadataBaseModel = type('%sBase' % self.name, (models.Model,), fields)
874499
public MarkedSection addSection(float indentation, int numberDepth) {
		MarkedSection section = ((Section)element).addMarkedSection();
		section.setIndentation(indentation);
		section.setNumberDepth(numberDepth);
		return section;
	}
101405
public function addSection( $section )
	{
		if ( !( isset( $this->data[$section] ) && is_array( $this->data[$section] ) ) )
			$this->data[$section]	= array();
		$this->currentSection	= $section;
	}