Iterates over each attribute present in the given symbol.
543203
def each_attribute
      
      #If we weren't passed a block, return an enumerator referencing this function.
      return enum_for(:each_attribute) unless block_given?

      #Yield each of the known attributes in turn.
      @xml.css("symbol attr").each do |attr|
        yield attr.attribute('name').value, attr.attribute('value').value
      end

    end
692449
public Iteration createIteration(Map<String, Object> attributes) {
        return getInstance().create().iteration(this, attributes);
    }
233081
function _attr(el, attr, attrs, i) {
        var result = (el.getAttribute && el.getAttribute(attr)) || 0;

        if (!result) {
            attrs = el.attributes;

            for (i = 0; i < attrs.length; ++i) {
                if (attrs[i].nodeName === attr) {
                    return attrs[i].nodeValue;
                }
            }
        }

        return result;
    }
407110
def flatatt(attrs):
    
    return _flatatt({k.replace('_', '-'): v for k, v in attrs.items()})
1373848
public static <T> Predicates<T> attributeIn(
            Function<? super T, ?> function,
            Iterable<?> iterable)
    {
        return new AttributePredicate<T, Object>(function, Predicates.in(iterable));
    }
37715
private void computeAttributesIndices() {
        this.hsAttributesIndices = new HashMap<String, Integer>();
        // iterates through all existing attributes 
        // and sets an unique identifier for each one of them
        for (int i = 0; i < this.numAttributes(); i++) {
            hsAttributesIndices.put(this.attribute(i).name(), i);
        }
    }
1042579
private void  symbol(Attributes attributes) throws SVGParseException
   {
      debug("<symbol>");

      if (currentElement == null)
         throw new SVGParseException("Invalid document. Root element must be <svg>");
      SVG.Symbol  obj = new SVG.Symbol();
      obj.document = svgDocument;
      obj.parent = currentElement;
      parseAttributesCore(obj, attributes);
      parseAttributesStyle(obj, attributes);
      parseAttributesConditional(obj, attributes);
      parseAttributesViewBox(obj, attributes);
      currentElement.addChild(obj);
      currentElement = obj;
   }
188800
function(itemSet, symbol){

            var self = this,
                gotoItemSet = new DataTypes.ItemSet();

            _.each(itemSet.subItems, function(item){
                if(item.dotSymbol === symbol){
                    gotoItemSet.push(new DataTypes.Item(item.production, item.dotPosition+1, item.lookaheads));
                }
            });

            return gotoItemSet;
        }
181801
def method(self, symbol):
        '''
        
        '''
        assert issubclass(symbol, SymbolBase)
        def wrapped(fn):
            setattr(symbol, fn.__name__, fn)
        return wrapped
447364
public Iterator getAttributeNames() {
        if (!_iSess.isValid())
            throw new IllegalStateException();
        Iterator value = null;
        if (_iSess != null) {
            ArrayList list = new ArrayList();
            for (Enumeration e = _iSess.getAttributeNames(); e.hasMoreElements();) {
                list.add(e.nextElement());
            }
            value = list.iterator();
        }
        return value;
    }
1119139
public void forAllExtents(String template, Properties attributes) throws XDocletException
    {
        for (Iterator it = _curClassDef.getExtentClasses(); it.hasNext(); )
        {
            _curExtent = (ClassDescriptorDef)it.next();
            generate(template);
        }
        _curExtent = null;
    }
774105
def get_resource_class_member_attribute_iterator(rc):
    
    for attr in itervalues_(rc.__everest_attributes__):
        if attr.kind == RESOURCE_ATTRIBUTE_KINDS.MEMBER:
            yield attr
428234
def parse_symbol attr_name, xpath
      v = parse_value xpath
      v = v.to_sym unless v.nil?
      send("#{attr_name}=", v)
    end
704263
private void mapAttributes(List<Attribute> input, Map<String, List<Attribute>> output) {
        Iterator<Attribute> it = input.iterator();
        while (it.hasNext()) {
            Attribute attr = it.next();
            String id = attr.getId().toString();

            if (output.containsKey(id)) {
                List<Attribute> list = output.get(id);
                list.add(attr);
            } else {
                List list = new ArrayList<Attribute>();
                list.add(attr);
                output.put(id, list);
            }
        }
    }
1071323
def visit_attribute(self, node):
        """"""
        return "%s.%s" % (self._precedence_parens(node, node.expr), node.attrname)
298697
def add_attrs(self, symbol, **kwargs):
        
        for key, val in kwargs.items():
            symbol.add_extension_attribute(self.extension_name, key, val)
1225730
function(elem, attr) {
		// for each attributeName
		for (var name in attr) {
			if (attr.hasOwnProperty(name)) {
				// attributes
				elem.setAttribute(name, attr[name]);
			}
		}
		return elem;
	}