Gets the person with the specified name.

@param name the name of the person
@return the Person instance with the specified name (or null if it doesn't exist)
@throws IllegalArgumentException if the name is null or empty
545227
@Nullable
    public Person getPersonWithName(@Nonnull String name) {
        if (name == null || name.trim().length() == 0) {
            throw new IllegalArgumentException("A person name must be specified.");
        }

        for (Person person : getPeople()) {
            if (person.getName().equals(name)) {
                return person;
            }
        }

        return null;
    }
627272
public CompilerInput getByName(String name) {
    for (CompilerInput input : inputs) {
      if (name.equals(input.getName())) {
        return input;
      }
    }
    return null;
  }
104588
public <T> T get(String name){
        Map<String,Object> m = getMap(name);
        if(m!=null)
            return (T)m.get(name);
        return null;
    }
1331690
@Override
    public String getParameter(String name) {
        String[] vals = getParameterMap().get(name);

        return (vals != null && vals.length > 0) ? vals[0] : null;
    }
352459
public Object get(String name){
        return RequestContext.getHttpRequest().getSession(true).getAttribute(name);
    }
646799
public function getPersonByName($name){
		$name = strtolower($name);
		$url = self::APIURL.'/search/people?q='.$name;
		$person = $this->getFile($url);

		$people = [];
		foreach($person as $peeps){
		$people[] = new Actor($peeps['person']);
		}

		return $people;
	}
891127
public @NonNull Optional<T> get(final @NonNull String name) {
    return Optional.ofNullable(this.byName.get(name));
  }
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;
    }
245107
public static <T> T lookup(String name) {
        InitialContext initialContext = initialContext();
        try {
            @SuppressWarnings("unchecked")
            T object = (T) initialContext.lookup(name);
            if (object == null) {
                throw new NameNotFoundException(name + " was found but is null");
            }
            return object;
        } catch (NameNotFoundException e) {
            throw new IllegalArgumentException(name + " was not found in JNDI", e);
        } catch (NamingException e) {
            throw new IllegalArgumentException("JNDI lookup failed", e);
        } finally {
            closeContext(initialContext);
        }
    }
838731
public Object getProperty(String name) {
		if (!StringUtils.isBlank(name)) {
			return getProperties().get(name);
		}
		return null;
	}
1342007
public JavaField getField(String name)
  {
    ArrayList<JavaField> fieldList = getFieldList();
    
    for (int i = 0; i < fieldList.size(); i++) {
      JavaField field = fieldList.get(i);

      if (field.getName().equals(name))
        return field;
    }

    return null;
  }
286496
public Object get(final String name) {
        Object bean = this.beans.get(name);
        if (bean != null) {
            return bean;
        }
        return resolveBeanIfAbsent(name);
    }
361519
@SuppressWarnings("unchecked")
    public <T> T getArgument(String name) {
        return (T) arguments.get(name);
    }
996626
private final CClassLoader getLoaderByName(final String name) {
		try {

			CClassLoader loader = (CClassLoader) this.childrenMap.get(name);

			if (loader == null) {
				loader = CClassLoader.createLoader(this, name);
				this.childrenMap.put(name, loader);
			}

			return loader;
		} finally {
			try {

			} catch (final Exception ignore) {
			}
		}
	}
615595
def get_person_by_full_name(self, name):
        """"""
        return next((person for person in self.get_all_people()
                     if person.full_name.lower() == name.lower()), None)
349462
public Set<String> getIdsPerName(final String surname, final String name) {
        if (surname == null || name == null) {
            return Collections.emptySet();
        }
        final Map<String, SortedSet<String>> namesPerSurname =
                getNamesPerSurnameMap(surname);
        if (!namesPerSurname.containsKey(name)) {
            return Collections.emptySet();
        }
        return Collections.unmodifiableSet(namesPerSurname.get(name));
    }
701095
public static FileHandlerResult fromName(final String name) {
        if (name == null) {
            return null;
        }
        for (final FileHandlerResult result : INSTANCES) {
            if (result.name.equals(name)) {
                return result;
            }
        }
        throw new IllegalArgumentException("Unknown name: " + name);
    }