Returns the name of the artist.
        If properly_capitalized was asserted then the name would be downloaded
        overwriting the given one.
185425
def get_name(self, properly_capitalized=False):
        """"""

        if properly_capitalized:
            self.name = _extract(
                self._request(self.ws_prefix + ".getInfo", True), "name"
            )

        return self.name
1272818
def name(self, name=None):
        ''''''
        if name:
            self._name = name
            return self
        return self._name
1171518
def get_available_name(self, name):
        
        if self.exists(name):
            self.delete(name)
        return name
1231595
def display_name(self):
        
        for k in self._NAME_KEYS:
            if self._raw.get(k):
                return self._raw[k]
            if "profile" in self._raw and self._raw["profile"].get(k):
                return self._raw["profile"][k]
        return self._raw["name"]
459730
def get_by_name(self, name):
        
        managed_sans = self.get_all()
        result = [x for x in managed_sans if x['name'] == name]

        resource = result[0] if result else None
        if resource:
            resource = self.new(self._connection, resource)

        return resource
44858
def name(self):
        
        res = type(self).__name__
        if self._id:
            res += ".{}".format(self._id)
        return res
1287371
def set_name(self,name=None):
        
        if name:
            self.name = name[:254]
        else:
            self.name = self.extract_name()[:254]

        self.save()

        return self.name
622586
def name(self, name):
        
        self._data['name'] = name
        request = self._base_request
        request['name'] = name
        return self._tc_requests.update(request, owner=self.owner)
144102
def extract_last(name)
      return unless name && name.size >= 1

      @last = name.last.gsub(/['`"]+/, "'").gsub(/-+/, '-')
      name.delete_at(name.size - 1)

      @last.capitalize! unless @last =~ /[a-z]/ && @last =~ /[A-Z]/
    end
930158
async def get_friendly_name(self) -> Text:
        

        if 'first_name' not in self._user:
            user = await self._get_full_user()
        else:
            user = self._user

        return user.get('first_name')
798779
def artist_undelete(self, artist_id):
        
        return self._get('artists/{0}/undelete.json'.format(artist_id),
                         method='POST', auth=True)
126094
def name(anon, obj, field, val):
    
    return anon.faker.name(field=field)
44839
def get_xy(artist):
    
    xy = None

    if hasattr(artist, 'get_offsets'):
        xy = artist.get_offsets().T
    elif hasattr(artist, 'get_xydata'):
        xy = artist.get_xydata().T

    return xy
893802
def alternate_version_of?(another_track)
      return another_track && short_title.downcase == another_track.short_title.downcase \
            && another_track.artist && artist.name.downcase == another_track.artist.name.downcase
    end
796572
def lookup_track(self, track):
        
        tracks = Track.objects.filter(title__iexact=track.title)
        for track_obj in tracks:
            for contributor in track_obj.get_primary_contributors(permitted=False):
                if contributor.title == track.artist:
                    return track_obj
        return None
1088210
def similar(self):
        
        if self._similar is None:
            self._similar = [
                Artist(artist['ArtistID'], artist['Name'], self._connection)
                for artist in self._connection.request(
                    'artistGetSimilarArtists',
                    {'artistID': self.id},
                    self._connection.header('artistGetSimilarArtists'))[1]['SimilarArtists']]
        return iter(self._similar)
652963
def album_to_ref(album):
    """"""
    name = ''
    for artist in album.artists:
        if len(name) > 0:
            name += ', '
        name += artist.name
    if (len(name)) > 0:
        name += ' - '
    if album.name:
        name += album.name
    else:
        name += 'Unknown Album'
    return Ref.directory(uri=album.uri, name=name)