Internal: Returns the Integer number of the room.

 Returns the Integer room number.
 Raises NotFound if a room cannot be found for the given name.
 Raises ConnectionError if an HTTP error occurs.
976108
def fetch_room_id
      connect do |http|
        response = http.request(http_request(:get, "/rooms.json"))

        case response
        when Net::HTTPOK
          find_room_in_json(JSON.parse(response.body))
        else
          raise ConnectionError
        end
      end
    end
1138708
def find_first_number(ll):
    
    for nr, entry in enumerate(ll):
        try:
            float(entry)
        except (ValueError, TypeError) as e:
            pass
        else:
            return nr
    return None
176276
async def fetch_room(self, room_id):
        """"""
        url = "https://production.plum.technology/v2/getRoom"
        data = {"rid": room_id}
        return await self.__post(url, data)
767630
def getIntFromGet(request,key):
    '''
    
    '''
    try:
        return int(request.GET.get(key))
    except (ValueError, TypeError):
        return None
729164
public int getInt(String name)
  {
    Integer value = (Integer) get(name);

    if (value != null)
      return value.intValue();
    else
      return 0;
  }
212449
private Room getSfsRoom() {
        if(StringUtils.isEmpty(roomName))
            return extension.getParentZone().getRoomById(roomId);
        return CommandUtil.getSfsRoom(roomName, extension);
    }
107810
@Basic
    @Column(name = "NUMBER", unique = true, nullable = false, length=255)
	public String getNumber() 
	{
		return number;
	}
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)
866027
def fetch_room_ids(self, names):
        
        ret = {}
        names_set = set(names)
        try:
            for d in msgpack.unpack(urllib2.urlopen(
                    "%s/list/locations?format=msgpack" % self.url)):
                name = d['name'].upper() # normalize: Hg -> HG
                if name in names_set:
                    ret[name] = d['id']
        except urllib2.HTTPError, e:
            raise RuusterError(e)
        return ret
1236983
def get_room_history(
                         self,
                         room_id,
                         oldest=None,
                         latest=datetime.now(),
                         inclusive=False,
                         count=20,
                         unreads=False,
                         **kwargs
                        ):
        
        return GetRoomHistory(settings=self.settings, **kwargs).call(
            room_id=room_id,
            oldest=oldest,
            latest=latest,
            inclusive=inclusive,
            count=count,
            unreads=unreads,
            **kwargs
        )
778911
def number(self) -> int:
        
        match = self._NUMBER_SUFFIX.search(self.epno)
        return int(match.group(1))
428362
def get_int(self):
        

        token = self.get().unescape()
        if not token.is_identifier():
            raise dns.exception.SyntaxError('expecting an identifier')
        if not token.value.isdigit():
            raise dns.exception.SyntaxError('expecting an integer')
        return int(token.value)
1337981
public Integer getInt (String name) {
        try {
            return Integer.parseInt(get(name, "").trim());
        } catch (Exception e) {
            return null;
        }
    }
951319
def get_room(id)
      return @rooms[id] if @rooms.key? id
      room = Room.new id, @users, @matrix
      @rooms[id] = room
      broadcast(:added, room)
      room
    end
1105169
def find_room_by_id(id)
      id = id.to_i
      rooms.detect { |room| room.id == id }
    end
647900
def subscriptions_get_one(self, room_id, **kwargs):
        """"""
        return self.__call_api_get('subscriptions.getOne', roomId=room_id, kwargs=kwargs)
1112732
function toRooms(data) {
    var i, rooms;

    rooms = [];
    for (i = 0; i < data.rooms.length; i++) {
      rooms.push(new Room(connection, data.rooms[i]));
    }

    return rooms;
  }