Get the master league for a given queue.

        :param string region:   the region to execute this request on
        :param string queue:    the queue to get the master players for

        :returns: LeagueListDTO
507224
def masters_by_queue(self, region, queue):
        
        url, query = LeagueApiV4Urls.master_by_queue(region=region, queue=queue)
        return self._raw_request(self.masters_by_queue.__name__, region, url, query)
1167121
public function GetLiveLeagueGamesV1($league_id = null, $match_id = null)
    {
        return $this->_call(__METHOD__, 'GET', array('league_id' => $league_id, 'match_id' => $match_id));
    }
248268
@Override
    public List<com.enioka.jqm.api.Queue> getQueues()
    {
        try
        {
            return target.path("q").request().get(new GenericType<List<Queue>>()
            {
            });
        }
        catch (Exception e)
        {
            throw new JqmClientException(e);
        }
    }
281084
def fetch_viewers(self, game):
        
        r = self.kraken_request('GET', 'streams/summary',
                                params={'game': game.name}).json()
        game.viewers = r['viewers']
        game.channels = r['channels']
        return game
828937
def _get_from_send_queue(self):
        '''  '''
        try:
            packet = self.transmit.get(block=False)
            self.logger.info('Sending packet')
            self.logger.debug(packet)
            return packet
        except queue.Empty:
            pass
        return None
492773
public function GetTeamInfoV1($team_id = null, $league_id = null)
    {
        return $this->_call(__METHOD__, 'GET', array('team_id' => $team_id, 'league_id' => $league_id));
    }
1172961
def by_name(self, region, summoner_name):
        
        url, query = SummonerApiV4Urls.by_name(
            region=region, summoner_name=summoner_name
        )
        return self._raw_request(self.by_name.__name__, region, url, query)
1206557
def get_lobbies(session, game_id):
    """"""
    if isinstance(game_id, str):
        game_id = lookup_game_id(game_id)
    lobbies = _make_request(session, LOBBY_URL, game_id)
    for lobby in lobbies:
        # pylint: disable=len-as-condition
        if len(lobby['ladders']) > 0:
            lobby['ladders'] = lobby['ladders'][:-1].split('|')
    return lobbies
506502
private static com.enioka.jqm.api.Queue getQueue(Queue queue)
    {
        com.enioka.jqm.api.Queue q = new com.enioka.jqm.api.Queue();

        q.setDescription(queue.getDescription());
        q.setId(queue.getId());
        q.setName(queue.getName());

        return q;
    }
818801
@Override
	public QueueDefinition getQueue(String queueName) {
		if (!StringUtils.hasText(queueName)) {
			return null;
		}
		for (QueueDefinition qd: m_queues) {
			if (qd.getName().equals(queueName)) {
				return qd;
			}
		}
		log.warn("failed to find queue: {}", queueName);
		return null;
	}
1131294
def get_region():
    
    log = logging.getLogger(mod_logger + '.get_region')

    # First get the availability zone
    availability_zone = get_availability_zone()

    if availability_zone is None:
        msg = 'Unable to determine the Availability Zone for this system, cannot determine the AWS Region'
        log.error(msg)
        return

    # Strip of the last character to get the region
    region = availability_zone[:-1]
    return region
330914
def get_league(self, slug):
        
        endpoint = '/league/' + slug
        return self.make_request(self.BASE_URL + endpoint)
1087459
def get_all_regions(db_connection):
    

    if not hasattr(get_all_regions, '_results'):
        sql = 'CALL get_all_regions();'
        results = execute_sql(sql, db_connection)
        get_all_regions._results = results

    return get_all_regions._results
388714
public Future<List<PlayerStats>> getStatsSummary(long summoner, Season season) {
        return new ApiFuture<>(() -> handler.getStatsSummary(summoner, season));
    }
278381
public Queue getQueue(String contextUrl, String queueName) throws ServiceLocatorException {
        try {
            String jndiName = null;
            if (contextUrl == null) {
                jndiName = namingProvider.qualifyJmsQueueName(queueName);
            }
            else {
                jndiName = queueName; // don't qualify remote queue names
            }
            return (Queue) namingProvider.lookup(contextUrl, jndiName, Queue.class);
        }
        catch (Exception ex) {
            throw new ServiceLocatorException(-1, ex.getMessage(), ex);
        }
    }
1041298
def get_attributes(name, region=None, key=None, keyid=None, profile=None):
    '''
    
    '''
    conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)

    try:
        url = conn.get_queue_url(QueueName=name)['QueueUrl']
        r = conn.get_queue_attributes(QueueUrl=url, AttributeNames=['All'])
        return {'result': r['Attributes']}
    except botocore.exceptions.ClientError as e:
        return {'error': __utils__['boto3.get_error'](e)}
912985
def list_(prefix='', region=None, key=None, keyid=None, profile=None):
    '''
    
    '''
    conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)

    def extract_name(queue_url):
        # Note: this logic taken from boto, so should be safe
        return _urlparse(queue_url).path.split('/')[2]

    try:
        r = conn.list_queues(QueueNamePrefix=prefix)
        # The 'QueueUrls' attribute is missing if there are no queues
        urls = r.get('QueueUrls', [])
        return {'result': [extract_name(url) for url in urls]}
    except botocore.exceptions.ClientError as e:
        return {'error': __utils__['boto3.get_error'](e)}