/* (non-Javadoc)
@see com.tvd12.ezyfox.core.command.FetchRoomInfo#getPlayersList()
541319
@Override
    public <T extends ApiUser> List<T> getPlayersList() {
        return CommandUtil.getApiUserList(room.getPlayersList());
    }
893539
@Override
    protected List<CmsListItem> getListItems() {

        List<CmsListItem> ret = new ArrayList<CmsListItem>();
        applyColumnVisibilities();
        CmsHtmlList list = getList();

        CmsListColumnDefinition colPermissions = list.getMetadata().getColumnDefinition(
            A_CmsListExplorerDialog.LIST_COLUMN_PERMISSIONS);
        boolean showPermissions = (colPermissions.isVisible() || colPermissions.isPrintable());
        CmsListColumnDefinition colDateLastMod = list.getMetadata().getColumnDefinition(
            A_CmsListExplorerDialog.LIST_COLUMN_DATELASTMOD);
        boolean showDateLastMod = (colDateLastMod.isVisible() || colDateLastMod.isPrintable());
        CmsListColumnDefinition colUserLastMod = list.getMetadata().getColumnDefinition(
            A_CmsListExplorerDialog.LIST_COLUMN_USERLASTMOD);
        boolean showUserLastMod = (colUserLastMod.isVisible() || colUserLastMod.isPrintable());
        CmsListColumnDefinition colDateCreate = list.getMetadata().getColumnDefinition(
            A_CmsListExplorerDialog.LIST_COLUMN_DATECREATE);
        boolean showDateCreate = (colDateCreate.isVisible() || colDateCreate.isPrintable());
        CmsListColumnDefinition colUserCreate = list.getMetadata().getColumnDefinition(
            A_CmsListExplorerDialog.LIST_COLUMN_USERCREATE);
        boolean showUserCreate = (colUserCreate.isVisible() || colUserCreate.isPrintable());
        CmsListColumnDefinition colDateRel = list.getMetadata().getColumnDefinition(
            A_CmsListExplorerDialog.LIST_COLUMN_DATEREL);
        boolean showDateRel = (colDateRel.isVisible() || colDateRel.isPrintable());
        CmsListColumnDefinition colDateExp = list.getMetadata().getColumnDefinition(
            A_CmsListExplorerDialog.LIST_COLUMN_DATEEXP);
        boolean showDateExp = (colDateExp.isVisible() || colDateExp.isPrintable());
        CmsListColumnDefinition colState = list.getMetadata().getColumnDefinition(
            A_CmsListExplorerDialog.LIST_COLUMN_STATE);
        boolean showState = (colState.isVisible() || colState.isPrintable());
        CmsListColumnDefinition colLockedBy = list.getMetadata().getColumnDefinition(
            A_CmsListExplorerDialog.LIST_COLUMN_LOCKEDBY);
        boolean showLockedBy = (colLockedBy.isVisible() || colLockedBy.isPrintable());
        CmsListColumnDefinition colSite = list.getMetadata().getColumnDefinition(
            A_CmsListExplorerDialog.LIST_COLUMN_SITE);
        boolean showSite = (colSite.isVisible() || colSite.isPrintable());

        // get content
        Iterator<CmsResource> itRes = m_files.iterator();
        while (itRes.hasNext()) {

            CmsResource resource = itRes.next();

            CmsListItem item = createResourceListItem(
                resource,
                list,
                showPermissions,
                showDateLastMod,
                showUserLastMod,
                showDateCreate,
                showUserCreate,
                showDateRel,
                showDateExp,
                showState,
                showLockedBy,
                showSite);

            ret.add(item);
        }
        return ret;
    }
399522
def find_for_player_id(player_id, connection=None, page_size=100,
        page_number=0, sort_by=DEFAULT_SORT_BY, sort_order=DEFAULT_SORT_ORDER):
        
        return pybrightcove.connection.ItemResultSet(
            "find_playlists_for_player_id", Playlist, connection, page_size,
            page_number, sort_by, sort_order, player_id=player_id)
1363758
@Override
    public void switchPlayerToSpectator(ApiBaseUser user) {
        try {
            room.switchPlayerToSpectator(CommandUtil.getSfsUser(user, api));
        } catch (SFSRoomException e) {
            throw new IllegalStateException(e);
        }
    }
808701
private List<String> getUsersFor(Collection<String> roles){
		List<String> users = new HashList<>();
		for(String role: roles){
			if(roleMembershipRU.containsKey(role))
				users.addAll(roleMembershipRU.get(role));
		}
		return users;
	}
1263114
func GetPlayersInfo(steamids []string) (map[string]*PlayerInfo, error) {
	url := "http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=" +
		steamApiKey + "&steamids=" + strings.Join(steamids, ",")

	profiles := make(map[string]*PlayerInfo)

	response, err := getJsonFromUrl(url)
	if err != nil {
		return nil, err
	}

	ps, err := response.Get("response").Get("players").Array()
	if err != nil {
		return nil, err
	}

	for _, _elem := range ps {
		elem := _elem.(map[string]interface{})
		player := new(PlayerInfo)

		pErr := player.Parse(elem)

		if pErr != nil {
			return nil, pErr
		}

		profiles[player.Steamid] = player
	}

	return profiles, nil
}
542646
private function getOpponentPlayer($player)
    {
        if (!in_array($player, $this->players)) {
            return false;
        }

        $opponentArray = array_diff($this->players, [$player]);

        return array_shift($opponentArray);
    }
584844
@Restricted(NoExternalUse.class)
    public List<User> getImpactedUserList() {
        return User.getAll().stream()
                .filter(user -> {
                    ApiTokenProperty apiTokenProperty = user.getProperty(ApiTokenProperty.class);
                    return (apiTokenProperty != null && apiTokenProperty.hasLegacyToken());
                })
                .collect(Collectors.toList());
    }
884951
@Override
    public <T extends ApiUser> List<T> getUserList() {
        return CommandUtil.getApiUserList(room.getUserList());
    }
815989
function updatePlayerList(dstListName, srcList, updateRule) {
                var dstList;
                // Initial setup call. Nothing to do.
                if (!srcList && !updateRule) return;

                dstList = dstListName === 'pl' ? this.game.pl : this.game.ml;
                updateRule = updateRule || 'replace';

                if (updateRule === 'replace') {
                    dstList.clear(true);
                }
                else if (updateRule !== 'append') {
                    throw new Error('setup("' + dstListName + '") is invalid ' +
                                    'updateRule: ' + updateRule + '.');
                }

                // Import clients (if any).
                // Automatic cast from Object to Player.
                if (srcList) dstList.importDB(srcList);

                return { updateRule: updateRule, list: srcList };
            }
177629
function getSourceList(playlist) {
  return (playlist || []).map((_, i) => getTrackSources(playlist, i)[0].src);
}
427128
public void createNewPlayers() {
        for (int i = 0; i < size(); i++) {
            players[i] = new SServerPlayer(teamName, getNewControllerPlayer(i), playerPort, hostname);
        }
    }
829499
public function getPlaylists($methodVars)
    {
        // Check for required variables
        if (!empty($methodVars['user'])) {
            $vars = array(
                'method' => 'user.getplaylists',
                'api_key' => $this->auth->apiKey
            );
            $vars = array_merge($vars, $methodVars);

            if ($call = $this->apiGetCall($vars)) {
                if (count($call->playlists->playlist) > 0) {
                    $i = 0;
                    foreach ($call->playlists->playlist as $playlist) {
                        $playlists[$i]['id'] = (string) $playlist->id;
                        $playlists[$i]['title'] = (string) $playlist->title;
                        $playlists[$i]['date'] = strtotime(trim((string) $playlist->date));
                        $playlists[$i]['size'] = (string) $playlist->size;
                        $playlists[$i]['streamalbe'] = (string) $playlist->streamable;
                        $playlists[$i]['creator'] = (string) $playlist->creator;
                        $i++;
                    }

                    return $playlists;
                } else {
                    throw new NoResultsException('This user has no past events');
                }
            } else {
                return false;
            }
        } else {
            throw new InvalidArgumentException('You must include artist variable in the call for this method');
        }
    }
943279
def getPlayer(name):
    """"""
    if isinstance(name, PlayerRecord): return name
    try:    return getKnownPlayers()[name.lower()]
    except KeyError:
        raise ValueError("given player name '%s' is not a known player definition"%(name))
524527
@Restricted(NoExternalUse.class)
    public List<DisplayExecutor> getDisplayExecutors() {
        // The size may change while we are populating, but let's start with a reasonable guess to minimize resizing
        List<DisplayExecutor> result = new ArrayList<>(executors.size() + oneOffExecutors.size());
        int index = 0;
        for (Executor e: executors) {
            if (e.isDisplayCell()) {
                result.add(new DisplayExecutor(Integer.toString(index + 1), String.format("executors/%d", index), e));
            }
            index++;
        }
        index = 0;
        for (OneOffExecutor e: oneOffExecutors) {
            if (e.isDisplayCell()) {
                result.add(new DisplayExecutor("", String.format("oneOffExecutors/%d", index), e));
            }
            index++;
        }
        return result;
    }
1169518
def idPlayerResults(cfg, rawResult):
    """"""
    result = {}
    knownPlayers = []
    dictResult = {plyrRes.player_id : plyrRes.result for plyrRes in rawResult}
    for p in cfg.players:
        if p.playerID and p.playerID in dictResult: # identified player w/ result
            knownPlayers.append(p)
            result[p.name] = dictResult[p.playerID]
    #if len(knownPlayers) == len(dictResult) - 1: # identified all but one player
    #    for p in cfg.players: # search for the not identified player
    #        if p in knownPlayers: continue # already found
    #        result.append( [p.name, p.playerID, dictResult[p.playerID]] )
    #        break # found missing player; stop searching
    #for r in result:
    #    print("result:>", r)
    return result
448994
@Override
    public void setPlayerId(int id, ApiRoom room) {
        sfsUser.setPlayerId(id, getSfsRoom(room, extension));
    }