Get a summoner by summoner name.
 @param [String] name Summoner name
 @return [DynamicModel] Summoner representation
9737
def find_by_name name
      name = CGI.escape name.downcase.gsub(/\s/, '')
      DynamicModel.new perform_request api_url "summoners/by-name/#{name}"
    end
1011261
def get(self, name: str, default: Any = None) -> np.ndarray:
		
		if name in self:
			return self[name]
		else:
			return default
1306225
def get_object_by_name(self, name):
        
        for obj in self.objects:
            if obj.name == name:
                return obj
        raise ValueError
318910
def job(self, name):
        
        for job in self.jobs():
            if job.data.name == name:
                return job
1039526
def get(self, name):
        
        schema = TagSchema()
        resp = self.service.get_id(self.base, name)
        return self.service.decode(schema, resp)
1204692
def find_level(name = nil)
      @levels ||= {}
      level = name.nil? ? load_default_request_level : @levels[name.to_sym]
      level = superclass.find_level(name) and @levels[name.to_sym] = level if level.nil? && superclass.present?
      raise NoSuchRequestLevelError.new(name, self.name) if level.nil?
      level
    end
708921
def get_class_by_name!(name , super_class = :Object)
      c = get_class_by_name(name)
      return c if c
      create_class( name ,super_class)
    end
359896
public Job getJob(String name) {
        //FIXME: Check for null of jobs? Can that happen?
        return jobs.stream()
            .map(SET_CLIENT(this.client))
            .filter(item -> item.getName().equals(name))
            .findAny()
            .orElseThrow(() -> new IllegalArgumentException("Job with name " + name + " does not exist."));
    }
1196129
def get_field(name)
      @fields ||= {}
      field = fields[name]
      raise Tripod::Errors::FieldNotPresent.new unless field
      field
    end
1020971
public List<String> getUsersForRole(String name) {
        try {
            return model.model.get("g").get("g").rm.getUsers(name);
        } catch (Error e) {
            if (!e.getMessage().equals("error: name does not exist")) {
                throw e;
            }
        }
        return null;
    }
1360827
def _get(self, name):
        
        return self._stores.get(name, self._resolve(name))
1360717
def fetch_child(name, *args)
      raise NoSuchChildError.new("no child named #{name}") unless children.has_key?(name)
      children[name]
    end
421226
def [](name)
      attribute = @server.getAttribute(@object_name, name.to_s)
      return attribute.value if attribute.kind_of? javax.management.Attribute
      attribute
    end
65232
def named(self, name):
        ''''''
        name = self.serialize(name)
        return self.get_by('name', name)
230117
def getmember(self, name):
        '''
        
        '''
        members = self.getmembers()
        for m in members[::-1]:
            if m.name == name:
                return m

        raise KeyError("member %s could not be found" % name)
588596
def field_by_name(name)
      field = fields[name.to_sym] unless name.blank?
      if field.nil?
        dotted = name.to_s.split('.')[0]
        field = fields[dotted.to_sym] unless dotted.blank?
        if field && field.key_relation.nil?
          return nil
        end
      end
      field
    end
617043
def element_as_json(name):
    
    if name:
        element = fetch_json_by_name(name)
        if element.json:
            return element.json