get a value from a tag (if it exists)
508747
def _get_minidom_tag_value(station, tag_name):
    """"""
    tag = station.getElementsByTagName(tag_name)[0].firstChild
    if tag:
        return tag.nodeValue

    return None
1141090
def find_by_tag(self, tag) -> Dict[str, Set[Parameter]]:
        
        return self.tags[tag]
651221
def get_tagvalues(self, tagnames, tagidxs):
        
        values = tuple(getattr(self, tagname)[tagidx + 1]
                       for tagidx, tagname in zip(tagidxs, tagnames))
        return values
1018924
def find_obj_by_tag(self, tag):
        """"""
        for obj in self.__up_objects:
            if obj.tag == tag:
                return obj

        for obj in self.__draw_objects:
            if obj.tag == tag:
                return obj

        return None
1188144
def get_tag(self, name, params=None):
        
        return self.tag(name, action='GET', params=params)
995430
def get_tag(self, tagtype):
        ''' '''
        for tag in self.__tags:
            if tag.tagtype == tagtype:
                return tag
        return None
893403
@SuppressWarnings("unused")
		private String getTextValue(Element ele, String tagName) {
			String textVal = null;
			NodeList nl = ele.getElementsByTagName(tagName);
			if(nl != null && nl.getLength() > 0) {
				Element el = (Element)nl.item(0);
				textVal = el.getFirstChild().getNodeValue();
			}

			return textVal;
		}
746324
def get(self,id):
		'''

		'''
		query = meta.Session.query(TagSemanticTag).filter(TagSemanticTag.id==id)
		return query.first()
1336182
def get_value(self, node):
        """"""
        if not isinstance(node, ast.Str):
            raise TypeError("must be a string literal")

        return node.s
575340
def getElementById(self, _id):
        '''
            
        '''
        for tag in self:
            if tag.id == _id:
                return tag
            for subtag in tag.children:
                tmp = subtag.getElementById(_id)
                if tmp is not None:
                    return tmp
        return None
1178047
private Tag getTag(Element node, Tag... tags) {
        String name = node.getTagName();
        String error = null;
        
        try {
            Tag tag = Tag.valueOf(name.toUpperCase());
            int i = ArrayUtils.indexOf(tags, tag);

            if (i < 0) {
                error = "Tag '%s' is not valid at this location";
            } else {
                if (!tag.allowMultiple) {
                    tags[i] = null;
                }

                return tag;
            }
        } catch (IllegalArgumentException e) {
            error = "Unrecognized tag '%s' in layout";
        }

        throw new IllegalArgumentException(getInvalidTagError(error, name, tags));
    }
1028644
def get_fd_value(tag):
    
    if tag.VR == 'OB' or tag.VR == 'UN':
        value = struct.unpack('d', tag.value)[0]
        return value
    return tag.value
170397
def get_selected_tag(self):
        """"""
        cols, _ = self.taglist.get_focus()
        tagwidget = cols.original_widget.get_focus()
        return tagwidget.tag
356502
public <T extends Tag> T get(String tagName) {
        return (T) this.value.get(tagName);
    }
154056
public TagValue getTag(String name) {
    TagValue tv = null;
    int id = TiffTags.getTagId(name);
    if (tags.containsTagId(id))
      tv = tags.get(id);
    return tv;
  }
709579
def _get_tag(repo, name):
    '''
    
    '''
    try:
        return [x for x in _all_tags(repo) if x[0] == name][0]
    except IndexError:
        return False
839106
def get_tag(self, tag):
        
        headers = {'Accept': 'text/plain'}
        j, _ = self.datacenter.request('GET', self.path + '/tags/' + tag)
        return j