Get a menu object corresponding to the daily menu for the
        venue with building_id.

        :param building_id:
          A string representing the id of a building, e.g. "abc".


        >>> commons_today = din.menu_daily("593")
552933
def menu_daily(self, building_id):
        
        today = str(datetime.date.today())
        v2_response = DiningV2(self.bearer, self.token).menu(building_id, today)
        response = {'result_data': {'Document': {}}}
        response["result_data"]["Document"]["menudate"] = datetime.datetime.strptime(today, '%Y-%m-%d').strftime('%-m/%d/%Y')
        if building_id in VENUE_NAMES:
            response["result_data"]["Document"]["location"] = VENUE_NAMES[building_id]
        else:
            response["result_data"]["Document"]["location"] = v2_response["result_data"]["days"][0]["cafes"][building_id]["name"]
        response["result_data"]["Document"]["tblMenu"] = {"tblDayPart": get_meals(v2_response, building_id)}
        return response
23189
def find_or_new(self, id, columns=None):
        
        if columns is None:
            columns = ['*']

        instance = self.find(id, columns)

        if instance is None:
            instance = self._related.new_instance()
            self._set_foreign_attributes_for_create(instance)

        return instance
131164
def build_id
      section = section_by_name('.note.gnu.build-id')
      return nil if section.nil?

      note = section.notes.first
      return nil if note.nil?

      note.desc.unpack('H*').first
    end
1182379
def get_daily(self, date=None):
        
        if date == None:
            return self.get("/daily.json")
        url = "/daily/{}/{}/{}.json".format(date.year, date.month, date.day)
        return self.get(url)
1191220
def get(self, id):
        
        data = self.db.get_data(self.get_path, id=id)
        return self._build_item(**data['Data'][self.name])
673449
def get_menus(self, id):
        
        resp = self.get_details([id])
        menus = []
        for obj in resp['objects']:
            if obj['has_menu']:
                menus += obj['menus']
        return menus
811570
def get(self, id=None):
        
        if id is None:
            res = self._get('department/list')
        else:
            res = self._get('department/list', params={'id': id})
        return res['department']
1076167
def get_room_id(self, room_name, **kwargs):
        
        return GetRoomId(settings=self.settings, **kwargs).call(
            room_name=room_name,
            **kwargs
        )
1207563
def get_atom_feed_entry(self, feedentry_id):
        
        return self.session.query(self.feedentry_model).filter(
            self.feedentry_model.id == feedentry_id
        ).one()
123890
def get_venue_details(self, venue_id):

        ''' 
        '''

        title = '%s.get_venue_details' % self.__class__.__name__

    # validate inputs
        input_fields = {
            'venue_id': venue_id
        }
        for key, value in input_fields.items():
            if value:
                object_title = '%s(%s=%s)' % (title, key, str(value))
                self.fields.validate(value, '.%s' % key, object_title)

    # construct request fields
        url = '%s/2/venues' % self.endpoint
        params = {
            'venue_id': str(venue_id)
        }

    # send request
        venue_details = self._get_request(url, params=params)

    # reconstruct method output
        if venue_details['json']:
            if 'results' in venue_details['json'].keys():
                if venue_details['json']['results']:
                    details = venue_details['json']['results'][0]
                    venue_details['json'] = self.objects.venue.ingest(**details)

        return venue_details
503567
def get_items_of_recurring_per_page(self, recurring_id, per_page=1000, page=1):
        
        return self._get_resource_per_page(
            resource=RECURRING_ITEMS,
            per_page=per_page,
            page=page,
            params={'recurring_id': recurring_id},
        )
21247
def get_appliances(self, location_id):
    
    url = "https://api.neur.io/v1/appliances"

    headers = self.__gen_headers()
    headers["Content-Type"] = "application/json"

    params = {
      "locationId": location_id,
    }
    url = self.__append_url_params(url, params)

    r = requests.get(url, headers=headers)
    return r.json()
368632
def get_entry(self, id_, scope=None):
        
        if id_[-1] in DEPRECATED_SUFFIXES:
            id_ = id_[:-1]  # Remove it

        if scope is not None:
            assert len(self.table) > scope
            return self[scope][id_]

        for sc in self:
            if sc[id_] is not None:
                return sc[id_]

        return None
94575
def location_id(self, location_id):
        

        if location_id is None:
            raise ValueError("Invalid value for `location_id`, must not be `None`")
        if len(location_id) < 1:
            raise ValueError("Invalid value for `location_id`, length must be greater than or equal to `1`")

        self._location_id = location_id
222368
def get_room_id(self, room_alias):
        
        content = self._send("GET", "/directory/room/{}".format(quote(room_alias)))
        return content.get("room_id", None)
310739
def get_connection(self, id): # pylint: disable=invalid-name,redefined-builtin
        
        schema = ConnectionSchema()
        resp = self.service.get(self.base+str(id)+'/connect/')
        return self.service.decode(schema, resp)
1015755
def verify_build_id!(build_id)
      return if build_id =~ /\A#{OneGadget::Helper::BUILD_ID_FORMAT}\Z/

      raise OneGadget::Error::ArgumentError, format('invalid BuildID format: %p', build_id)
    end