query
stringlengths
9
9.05k
document
stringlengths
10
222k
metadata
dict
negatives
listlengths
30
30
negative_scores
listlengths
30
30
document_score
stringlengths
4
10
document_rank
stringclasses
2 values
Pass through to provider supports_catalog_hierarchy_design
def supports_catalog_hierarchy_design(self): # Implemented from kitosid template for - # osid.resource.ResourceProfile.supports_resource_lookup return self._provider_manager.supports_catalog_hierarchy_design()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def supports_catalog_hierarchy_design(self):\n return False", "def supports_catalog_hierarchy(self):\n return False", "def supports_book_hierarchy_design(self):\n return False", "def supports_catalog_hierarchy(self):\n # Implemented from kitosid template for -\n # osid.reso...
[ "0.86324745", "0.7739988", "0.72497606", "0.71859103", "0.7051641", "0.70463115", "0.6772082", "0.6659368", "0.6655546", "0.65757155", "0.6380629", "0.6223649", "0.6004748", "0.59804386", "0.59804386", "0.5856369", "0.5785725", "0.5724177", "0.5713283", "0.5661503", "0.549893...
0.8373554
1
Pass through to provider get_catalog_record_types
def get_catalog_record_types(self): # Implemented from kitosid template for - # osid.resource.ResourceProfile.get_resource_record_types return self._provider_manager.get_catalog_record_types()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_record_types(self):\n return TypeList([])", "def get_catalog_search_record_types(self):\n # Implemented from kitosid template for -\n # osid.resource.ResourceProfile.get_resource_record_types\n return self._provider_manager.get_catalog_search_record_types()", "def ge...
[ "0.8058518", "0.78703153", "0.7501678", "0.70615953", "0.6976058", "0.6870028", "0.6829432", "0.6801652", "0.67067724", "0.66908145", "0.66009", "0.65769285", "0.64779913", "0.644772", "0.6430422", "0.6419788", "0.63961476", "0.63717157", "0.63620895", "0.63473743", "0.634354...
0.8274152
0
Pass through to provider get_catalog_search_record_types
def get_catalog_search_record_types(self): # Implemented from kitosid template for - # osid.resource.ResourceProfile.get_resource_record_types return self._provider_manager.get_catalog_search_record_types()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_search_record_types(self):\n return TypeList([])", "def get_book_search_record_types(self):\n return TypeList([])", "def get_catalog_record_types(self):\n # Implemented from kitosid template for -\n # osid.resource.ResourceProfile.get_resource_record_types\n r...
[ "0.8379832", "0.7579349", "0.735006", "0.7297328", "0.72568154", "0.69283974", "0.69054884", "0.6652005", "0.6462058", "0.64570224", "0.6413988", "0.6193402", "0.61646557", "0.6160769", "0.61058164", "0.605122", "0.59236294", "0.58947945", "0.58835816", "0.580844", "0.5784361...
0.86107105
0
Sets the underlying catalog view to match current view
def _set_catalog_view(self, session): if self._catalog_view == COMPARATIVE: try: session.use_comparative_catalog_view() except AttributeError: pass else: try: session.use_plenary_catalog_view() except Attribu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_catalog_view(self, session):\n if self._catalog_view == FEDERATED:\n try:\n session.use_federated_catalog_view()\n except AttributeError:\n pass\n else:\n try:\n session.use_isolated_catalog_view()\n exc...
[ "0.7653462", "0.6380571", "0.6070326", "0.5951991", "0.5917372", "0.5841899", "0.5828823", "0.5798195", "0.57301855", "0.569667", "0.56866413", "0.56350636", "0.56345433", "0.56257606", "0.5610489", "0.55495274", "0.54750896", "0.5470648", "0.5437594", "0.5437594", "0.5437594...
0.7872513
0
Gets the session from a subpackage
def _get_sub_package_provider_session(self, sub_package, session_name, proxy=None): agent_key = self._get_agent_key(proxy) if session_name in self._provider_sessions[agent_key]: return self._provider_sessions[agent_key][session_name] else: manager = self._get_sub_package_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def session(get_session):\n return get_session()", "def getSession():\n return call(\"getSession\")", "def session(self):\n return self.session_store.get_session()", "def get_session(self):\n return self.session", "def session(self):\n return session", "def session(self):\n ...
[ "0.71302146", "0.7097068", "0.6674535", "0.6588422", "0.6516722", "0.6399272", "0.6355631", "0.62893623", "0.6212347", "0.6211648", "0.6177836", "0.6176052", "0.6169064", "0.6169064", "0.61314595", "0.6100953", "0.6097932", "0.6096678", "0.6087465", "0.60775274", "0.6071135",...
0.79204565
0
Instantiates a provider session
def _instantiate_session(self, method_name, proxy=None, *args, **kwargs): if 'manager' in kwargs: session_class = getattr(kwargs['manager'], method_name) del kwargs['manager'] else: session_class = getattr(self._provider_manager, method_name) if proxy is None:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_session(self, **params):\n raise NotImplementedError('Should be implemented by a sub-class.')", "def init_session(self):\n pass", "def init_session(self):\n pass", "def __init__(self):\r\n # create a session id\r\n self.session = ViSession()", "def get_session_...
[ "0.6511579", "0.6373079", "0.6373079", "0.6330975", "0.6295228", "0.6226995", "0.6220061", "0.62079823", "0.615411", "0.61176205", "0.61087424", "0.60451734", "0.60339946", "0.60192454", "0.60136837", "0.601073", "0.6005657", "0.5998351", "0.5991237", "0.5929469", "0.59292233...
0.64221215
1
Close all sessions, unless session management is set to MANDATORY
def close_sessions(self): if self._session_management != MANDATORY: self._provider_sessions = dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def close_all_sessions() -> None:\n\n for sess in _sessions.values():\n sess.close()", "def close_all(cls) -> None:\n\n close_all_sessions()", "def close_all(cls):\n for sess in cls._session_registry.values():\n sess.close()", "def close_sessions(self):\n if self._se...
[ "0.8069694", "0.7919251", "0.78704804", "0.7759464", "0.7459878", "0.72732544", "0.7217262", "0.70671594", "0.7067076", "0.70469946", "0.70124066", "0.700974", "0.6959029", "0.6959029", "0.6959029", "0.6921884", "0.6890681", "0.68874145", "0.6872762", "0.68708336", "0.6870833...
0.7968633
1
Pass through to provider get_catalog_query_session
def get_catalog_query_session(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.ResourceManager.get_resource_lookup_session_manager_template return self._provider_manager.get_catalog_query_session(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_query_session(self, *args, **kwargs):\n raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))", "def get_catalog_query_session(self):\n raise Unimplemented()", "def get_catalog_search_session(self):\n raise Unimplemented()", ...
[ "0.83558625", "0.8204912", "0.7239545", "0.7182094", "0.7030906", "0.6998137", "0.6978501", "0.68319386", "0.654379", "0.6536579", "0.6507497", "0.6347546", "0.6346573", "0.63335603", "0.62351453", "0.6196124", "0.6195246", "0.6028609", "0.59862524", "0.5964894", "0.5946849",...
0.8260475
1
Pass through to provider get_catalog_admin_session
def get_catalog_admin_session(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.ResourceManager.get_resource_lookup_session_manager_template return self._provider_manager.get_catalog_admin_session(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_admin_session(self, *args, **kwargs):\n raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))", "def get_catalog_admin_session(self):\n raise Unimplemented()", "def get_catalog_admin_session(self, proxy=None):\n if proxy is N...
[ "0.8437221", "0.83185905", "0.7339218", "0.6643529", "0.64041466", "0.63769376", "0.6330563", "0.6111108", "0.60221255", "0.60099477", "0.60082084", "0.60075504", "0.600136", "0.599006", "0.5966561", "0.59342504", "0.59141946", "0.58589745", "0.5848066", "0.57931256", "0.5787...
0.8414123
1
Pass through to provider get_catalog_hierarchy_session
def get_catalog_hierarchy_session(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.ResourceManager.get_resource_lookup_session_manager_template return self._provider_manager.get_catalog_hierarchy_session(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_hierarchy_session(self, *args, **kwargs):\n raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))", "def get_catalog_hierarchy_session(self):\n raise Unimplemented()", "def get_catalog_hierarchy_design_session(self, *args, **kwargs)...
[ "0.86353874", "0.8420382", "0.7561283", "0.73959595", "0.73737717", "0.7040935", "0.6796574", "0.65512466", "0.65199095", "0.6479028", "0.63418096", "0.6297986", "0.6224188", "0.6153219", "0.60889125", "0.596233", "0.59440124", "0.5941705", "0.59115237", "0.5806202", "0.57967...
0.84561896
1
Pass through to provider get_catalog_hierarchy_design_session
def get_catalog_hierarchy_design_session(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.ResourceManager.get_resource_lookup_session_manager_template return self._provider_manager.get_catalog_hierarchy_design_session(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_hierarchy_design_session(self, *args, **kwargs):\n raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))", "def get_catalog_hierarchy_design_session(self):\n raise Unimplemented()", "def get_catalog_hierarchy_design_session(self, pr...
[ "0.87507206", "0.860315", "0.7749623", "0.7638858", "0.760503", "0.74266785", "0.7085852", "0.657221", "0.6267638", "0.6251328", "0.6228877", "0.6203119", "0.61071116", "0.56198263", "0.5512792", "0.54343414", "0.5387622", "0.53685737", "0.53505504", "0.5345083", "0.53332824"...
0.8633038
1
Pass through to provider CatalogLookupSession.can_lookup_catalogs
def can_lookup_catalogs(self): # Implemented from kitosid template for - # osid.resource.BinLookupSession.can_lookup_bins_template return self._get_provider_session('catalog_lookup_session').can_lookup_catalogs()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def supports_catalog_lookup(self):\n # Implemented from kitosid template for -\n # osid.resource.ResourceProfile.supports_resource_lookup\n return self._provider_manager.supports_catalog_lookup()", "def supports_catalog_lookup(self):\n return False", "def can_lookup_books(self):\n ...
[ "0.82303095", "0.8136246", "0.795465", "0.76487786", "0.7565057", "0.71672946", "0.7157921", "0.67965895", "0.6784433", "0.6692012", "0.65605557", "0.65363663", "0.65017694", "0.63277256", "0.63157886", "0.6307392", "0.6290821", "0.62715584", "0.6236082", "0.62267435", "0.621...
0.8945682
0
Pass through to provider CatalogLookupSession.use_comparative_catalog_view
def use_comparative_catalog_view(self): self._catalog_view = COMPARATIVE # self._get_provider_session('catalog_lookup_session') # To make sure the session is tracked for session in self._get_provider_sessions(): try: session.use_comparative_catalog_view() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def use_comparative_book_view(self):\n # Implemented from template for\n # osid.resource.BinLookupSession.use_comparative_bin_view\n self._catalog_view = COMPARATIVE\n if self._catalog_session is not None:\n self._catalog_session.use_comparative_catalog_view()", "def use_co...
[ "0.78012896", "0.78012896", "0.78012896", "0.75476444", "0.75476444", "0.7364595", "0.66365737", "0.6407088", "0.6262432", "0.622518", "0.60275424", "0.5577789", "0.5465742", "0.5254421", "0.50744075", "0.506318", "0.5031475", "0.50121546", "0.49354354", "0.489478", "0.488881...
0.86723423
0
Pass through to provider CatalogLookupSession.use_plenary_catalog_view
def use_plenary_catalog_view(self): self._catalog_view = PLENARY # self._get_provider_session('catalog_lookup_session') # To make sure the session is tracked for session in self._get_provider_sessions(): try: session.use_plenary_catalog_view() except Attri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def use_plenary_book_view(self):\n # Implemented from template for\n # osid.resource.BinLookupSession.use_plenary_bin_view\n self._catalog_view = PLENARY\n if self._catalog_session is not None:\n self._catalog_session.use_plenary_catalog_view()", "def use_plenary_book_view(...
[ "0.78021324", "0.78021324", "0.78021324", "0.77686775", "0.77686775", "0.65821373", "0.6460522", "0.64184636", "0.54385746", "0.5225436", "0.5125031", "0.49971545", "0.4929327", "0.48092023", "0.46781814", "0.46667302", "0.4628395", "0.4622144", "0.45594007", "0.45330468", "0...
0.8617257
0
Pass through to provider CatalogLookupSession.get_catalogs_by_ids
def get_catalogs_by_ids(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinLookupSession.get_bins_by_ids catalogs = self._get_provider_session('catalog_lookup_session').get_catalogs_by_ids(*args, **kwargs) cat_list = [] for cat in catalogs: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def query_ids_catalogs(self, source_ids, *, catalogs=__ALL_STRING, row_limit=DEFAULT_ROW_LIMIT,\n get_query_payload=False, cache=True, verbose=False):\n sanitized_catalogs = self._sanitize_input_catalogs(catalogs)\n sanitized_row_limit = self._sanitize_input_row_limit(row_li...
[ "0.687608", "0.68108445", "0.6797527", "0.67103606", "0.6504811", "0.63963205", "0.62897474", "0.6222304", "0.61367583", "0.61326736", "0.60006285", "0.5967969", "0.59336644", "0.58902305", "0.58789563", "0.5856664", "0.580235", "0.57954663", "0.5789944", "0.57779837", "0.575...
0.8377241
0
Pass through to provider CatalogLookupSession.get_catalogs_by_genus_type
def get_catalogs_by_genus_type(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinLookupSession.get_bins_by_genus_type catalogs = self._get_provider_session('catalog_lookup_session').get_catalogs_by_genus_type(*args, **kwargs) cat_list = [] for c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalogs_by_parent_genus_type(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinLookupSession.get_bins_by_parent_genus_type\n catalogs = self._get_provider_session('catalog_lookup_session').get_catalogs_by_parent_genus_type(*args, **kwargs)\n ...
[ "0.73568535", "0.6875554", "0.63545704", "0.61625624", "0.6112447", "0.59714943", "0.5629469", "0.56187636", "0.5547003", "0.5511414", "0.55090463", "0.5447316", "0.5379001", "0.5371051", "0.53498363", "0.53343624", "0.53103036", "0.5240032", "0.52066165", "0.5198516", "0.518...
0.8638777
0
Pass through to provider CatalogLookupSession.get_catalogs_by_parent_genus_type
def get_catalogs_by_parent_genus_type(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinLookupSession.get_bins_by_parent_genus_type catalogs = self._get_provider_session('catalog_lookup_session').get_catalogs_by_parent_genus_type(*args, **kwargs) cat_li...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalogs_by_genus_type(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinLookupSession.get_bins_by_genus_type\n catalogs = self._get_provider_session('catalog_lookup_session').get_catalogs_by_genus_type(*args, **kwargs)\n cat_list = []\n ...
[ "0.71648747", "0.6957899", "0.64228", "0.6352422", "0.61795235", "0.60324603", "0.5886922", "0.56472236", "0.55829614", "0.5565245", "0.5385594", "0.5288705", "0.52565855", "0.5242748", "0.5226299", "0.5188614", "0.5185927", "0.5169943", "0.5166642", "0.5164425", "0.5149007",...
0.8795304
0
Pass through to provider CatalogLookupSession.get_catalogs_by_record_type
def get_catalogs_by_record_type(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinLookupSession.get_bins_by_record_type catalogs = self._get_provider_session('catalog_lookup_session').get_catalogs_by_record_type(*args, **kwargs) cat_list = [] fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_books_by_record_type(self, book_record_type):\n raise errors.Unimplemented()", "def get_catalog_record_types(self):\n # Implemented from kitosid template for -\n # osid.resource.ResourceProfile.get_resource_record_types\n return self._provider_manager.get_catalog_record_types(...
[ "0.68990505", "0.67648774", "0.6703916", "0.6664338", "0.664531", "0.64445525", "0.63894403", "0.6387929", "0.6130862", "0.6035976", "0.58686966", "0.58163524", "0.5804801", "0.5748946", "0.5695022", "0.56245303", "0.55583835", "0.55504656", "0.5542325", "0.5529362", "0.55207...
0.85964394
0
Pass through to provider CatalogLookupSession.get_catalogs_by_provider
def get_catalogs_by_provider(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinLookupSession.get_bins_by_provider catalogs = self._get_provider_session('catalog_lookup_session').get_catalogs_by_provider(*args, **kwargs) cat_list = [] for cat in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getCatalogs():", "def get_catalogs(self):\n # Implemented from kitosid template for -\n # osid.resource.BinLookupSession.get_bins_template\n catalogs = self._get_provider_session('catalog_lookup_session').get_catalogs()\n cat_list = []\n for cat in catalogs:\n ca...
[ "0.67733276", "0.67415875", "0.6619406", "0.6432229", "0.64017737", "0.6373136", "0.63554007", "0.63192785", "0.6243004", "0.61907905", "0.6176288", "0.6121346", "0.61044186", "0.61037636", "0.60998917", "0.6073811", "0.60145897", "0.60041785", "0.5992079", "0.599185", "0.598...
0.8459622
0
Pass through to provider CatalogLookupSession.get_catalogs
def get_catalogs(self): # Implemented from kitosid template for - # osid.resource.BinLookupSession.get_bins_template catalogs = self._get_provider_session('catalog_lookup_session').get_catalogs() cat_list = [] for cat in catalogs: cat_list.append(Catalog(self._provide...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getCatalogs():", "def get_catalogs_by_provider(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinLookupSession.get_bins_by_provider\n catalogs = self._get_provider_session('catalog_lookup_session').get_catalogs_by_provider(*args, **kwargs)\n ...
[ "0.79242986", "0.7733211", "0.7497713", "0.7362184", "0.7123644", "0.7016613", "0.6908637", "0.6893423", "0.68917024", "0.68790054", "0.6840749", "0.6761759", "0.675409", "0.6751744", "0.6750636", "0.66686434", "0.66536814", "0.6608449", "0.6515111", "0.65041375", "0.641323",...
0.7808394
1
Pass through to provider CatalogQuerySession.can_search_catalogs
def can_search_catalogs(self): # Implemented from kitosid template for - # osid.resource.BinQuerySession.can_search_bins_template return self._get_provider_session('catalog_query_session').can_search_catalogs()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def supports_catalog_search(self):\n return False", "def supports_catalog_query(self):\n # Implemented from kitosid template for -\n # osid.resource.ResourceProfile.supports_resource_lookup\n return self._provider_manager.supports_catalog_query()", "def can_lookup_catalogs(self):\n ...
[ "0.8033921", "0.74830914", "0.7328233", "0.7088473", "0.66452014", "0.65125376", "0.6422996", "0.6311823", "0.6307956", "0.62400585", "0.61784935", "0.6172449", "0.6154136", "0.5964574", "0.5960428", "0.5946245", "0.59361005", "0.5905267", "0.5871345", "0.58358365", "0.573414...
0.8864633
0
Pass through to provider CatalogQuerySession.get_catalog_query
def get_catalog_query(self): # Implemented from kitosid template for - # osid.resource.BinQuerySession.get_bin_query_template return self._get_provider_session('catalog_query_session').get_catalog_query()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_query_session(self):\n raise Unimplemented()", "def get_catalog_query_session(self, *args, **kwargs):\n raise Unimplemented('Unimplemented in dlkit.services - args=' + str(args) + ', kwargs=' + str(kwargs))", "def get_catalog_query_session(self, *args, **kwargs):\n # Implem...
[ "0.7529669", "0.74305516", "0.71600085", "0.68536264", "0.6706009", "0.6566236", "0.6566236", "0.6564279", "0.6545803", "0.6495516", "0.6379832", "0.6374171", "0.6347719", "0.63346213", "0.6286401", "0.6281748", "0.6281748", "0.6281748", "0.62769556", "0.6248882", "0.6213487"...
0.7912566
0
Pass through to provider CatalogQuerySession.get_catalogs_by_query
def get_catalogs_by_query(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinQuerySession.get_bins_by_query_template return self._get_provider_session('catalog_query_session').get_catalogs_by_query(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def search_catalog(self, query):\n scope = datacatalog.SearchCatalogRequest.Scope()\n scope.include_project_ids.append(self.__project_id)\n\n request = datacatalog.SearchCatalogRequest()\n request.scope = scope\n request.query = query\n request.page_size = 1000\n\n ...
[ "0.7642009", "0.6733933", "0.66568756", "0.65138435", "0.64999104", "0.64843935", "0.64589727", "0.63104904", "0.63059086", "0.6284542", "0.62835383", "0.62727606", "0.62385577", "0.6213242", "0.61514544", "0.60568017", "0.60284245", "0.601286", "0.59745634", "0.5887758", "0....
0.8549721
0
Pass through to provider CatalogAdminSession.can_create_catalogs
def can_create_catalogs(self): # Implemented from kitosid template for - # osid.resource.BinAdminSession.can_create_bins return self._get_provider_session('catalog_admin_session').can_create_catalogs()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def can_create_books(self):\n # Implemented from template for\n # osid.resource.BinAdminSession.can_create_bins\n # NOTE: It is expected that real authentication hints will be\n # handled in a service adapter above the pay grade of this impl.\n if self._catalog_session is not Non...
[ "0.75228477", "0.7024193", "0.6926643", "0.67800385", "0.6702987", "0.6540861", "0.6539525", "0.6433934", "0.63877416", "0.6312353", "0.62024695", "0.6192197", "0.6175844", "0.61720634", "0.60334325", "0.5963481", "0.59497404", "0.58628106", "0.58412707", "0.58098143", "0.576...
0.8740738
0
Pass through to provider CatalogAdminSession.can_create_catalog_with_record_types
def can_create_catalog_with_record_types(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinAdminSession.can_create_bin_with_record_types return self._get_provider_session('catalog_admin_session').can_create_catalog_with_record_types(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def supports_catalog_record_type(self, catalog_record_type=None):\n if catalog_record_type is None:\n raise NullArgument()\n return False", "def can_create_book_with_record_types(self, book_record_types):\n # Implemented from template for\n # osid.resource.BinAdminSession.c...
[ "0.73059326", "0.69893354", "0.69627184", "0.68502027", "0.6609438", "0.65626746", "0.63158554", "0.63049453", "0.6282918", "0.6282484", "0.59466547", "0.58646506", "0.5791292", "0.5788916", "0.57652843", "0.57473034", "0.57256", "0.559158", "0.5569805", "0.55403835", "0.5538...
0.88522863
0
Pass through to provider CatalogAdminSession.get_catalog_form_for_create
def get_catalog_form_for_create(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinAdminSession.get_bin_form_for_create return self._get_provider_session('catalog_admin_session').get_catalog_form_for_create(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_form(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinAdminSession.get_bin_form_for_update_template\n # This method might be a bit sketchy. Time will tell.\n if isinstance(args[-1], list) or 'catalog_record_types' in kwargs:\n ...
[ "0.7591304", "0.69972867", "0.6811873", "0.67891073", "0.65012026", "0.64878917", "0.6272795", "0.62517387", "0.6236303", "0.623171", "0.62170404", "0.6156007", "0.6156007", "0.61468923", "0.6145996", "0.614019", "0.6120052", "0.6082279", "0.6065062", "0.6064923", "0.6049344"...
0.8792004
0
Pass through to provider CatalogAdminSession.create_catalog
def create_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinAdminSession.create_bin return Catalog( self._provider_manager, self._get_provider_session('catalog_admin_session').create_catalog(*args, **kwargs), self._r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def catalog_create(self, args):\n try:\n if args.id and self.server.connect_ermrest(args.id).exists():\n print(\"Catalog already exists\")\n return\n owner = args.owner if args.owner else None\n catalog = self.server.create_ermrest_catalog(args....
[ "0.745109", "0.6975634", "0.6975634", "0.6975634", "0.6817875", "0.67300034", "0.67300034", "0.67300034", "0.67300034", "0.67300034", "0.6693062", "0.6683488", "0.66725117", "0.666314", "0.66110927", "0.66062343", "0.658615", "0.65681654", "0.6548711", "0.6512952", "0.6437378...
0.7582978
0
Pass through to provider CatalogAdminSession.can_update_catalogs
def can_update_catalogs(self): # Implemented from kitosid template for - # osid.resource.BinAdminSession.can_update_bins return self._get_provider_session('catalog_admin_session').can_update_catalogs()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def can_update_books(self):\n # Implemented from template for\n # osid.resource.BinAdminSession.can_update_bins\n # NOTE: It is expected that real authentication hints will be\n # handled in a service adapter above the pay grade of this impl.\n if self._catalog_session is not Non...
[ "0.76364976", "0.6954973", "0.67726964", "0.67226964", "0.6306999", "0.6272507", "0.62427044", "0.6209875", "0.6097616", "0.6068694", "0.6023836", "0.5938341", "0.5894968", "0.58353955", "0.5790709", "0.57722265", "0.5749628", "0.5745617", "0.57250977", "0.56373686", "0.55659...
0.882789
0
Pass through to provider CatalogAdminSession.get_catalog_form_for_update
def get_catalog_form_for_update(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinAdminSession.get_bin_form_for_update return self._get_provider_session('catalog_admin_session').get_catalog_form_for_update(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_form(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinAdminSession.get_bin_form_for_update_template\n # This method might be a bit sketchy. Time will tell.\n if isinstance(args[-1], list) or 'catalog_record_types' in kwargs:\n ...
[ "0.7162163", "0.6573394", "0.63171417", "0.6288806", "0.61876136", "0.60886014", "0.60630125", "0.6054842", "0.5957297", "0.5948865", "0.59461755", "0.59461755", "0.58364516", "0.58364516", "0.58364516", "0.5799192", "0.57846195", "0.57535666", "0.57506627", "0.57150495", "0....
0.8787373
0
Pass through to provider CatalogAdminSession.get_catalog_form_for_update
def get_catalog_form(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinAdminSession.get_bin_form_for_update_template # This method might be a bit sketchy. Time will tell. if isinstance(args[-1], list) or 'catalog_record_types' in kwargs: ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_form_for_update(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinAdminSession.get_bin_form_for_update\n return self._get_provider_session('catalog_admin_session').get_catalog_form_for_update(*args, **kwargs)", "def getEditForm( self ):\...
[ "0.8787373", "0.6573394", "0.63171417", "0.6288806", "0.61876136", "0.60886014", "0.60630125", "0.6054842", "0.5957297", "0.5948865", "0.59461755", "0.59461755", "0.58364516", "0.58364516", "0.58364516", "0.5799192", "0.57846195", "0.57535666", "0.57506627", "0.57150495", "0....
0.7162163
1
Pass through to provider CatalogAdminSession.update_catalog
def update_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinAdminSession.update_bin # OSID spec does not require returning updated catalog return Catalog( self._provider_manager, self._get_provider_session('catalog_admin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def save_catalog(self, catalog_form, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinAdminSession.update_bin\n if catalog_form.is_for_update():\n return self.update_catalog(catalog_form, *args, **kwargs)\n else:\n return self.crea...
[ "0.695575", "0.65899086", "0.64527303", "0.63767856", "0.6348782", "0.62388414", "0.5986489", "0.59143436", "0.5849566", "0.5802538", "0.57939005", "0.5788721", "0.5669034", "0.56669474", "0.56507957", "0.5650015", "0.5579512", "0.5533091", "0.5521288", "0.5521288", "0.552128...
0.72620577
0
Pass through to provider CatalogAdminSession.update_catalog
def save_catalog(self, catalog_form, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinAdminSession.update_bin if catalog_form.is_for_update(): return self.update_catalog(catalog_form, *args, **kwargs) else: return self.create_catalog(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_catalog(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinAdminSession.update_bin\n # OSID spec does not require returning updated catalog\n return Catalog(\n self._provider_manager,\n self._get_provider_session('ca...
[ "0.72620577", "0.65899086", "0.64527303", "0.63767856", "0.6348782", "0.62388414", "0.5986489", "0.59143436", "0.5849566", "0.5802538", "0.57939005", "0.5788721", "0.5669034", "0.56669474", "0.56507957", "0.5650015", "0.5579512", "0.5533091", "0.5521288", "0.5521288", "0.5521...
0.695575
1
Pass through to provider CatalogAdminSession.can_delete_catalogs
def can_delete_catalogs(self): # Implemented from kitosid template for - # osid.resource.BinAdminSession.can_delete_bins return self._get_provider_session('catalog_admin_session').can_delete_catalogs()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def can_delete_books(self):\n # Implemented from template for\n # osid.resource.BinAdminSession.can_delete_bins\n # NOTE: It is expected that real authentication hints will be\n # handled in a service adapter above the pay grade of this impl.\n if self._catalog_session is not Non...
[ "0.7544853", "0.7086018", "0.6701606", "0.6693337", "0.6532898", "0.6312073", "0.63093925", "0.62068963", "0.612478", "0.605064", "0.5948238", "0.59362906", "0.59276235", "0.58809143", "0.5872019", "0.58165145", "0.5810001", "0.579043", "0.5786722", "0.5723496", "0.5723496", ...
0.8756142
0
Pass through to provider CatalogAdminSession.can_manage_catalog_aliases
def can_manage_catalog_aliases(self): # Implemented from kitosid template for - # osid.resource.ResourceAdminSession.can_manage_resource_aliases_template return self._get_provider_session('catalog_admin_session').can_manage_catalog_aliases()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def can_manage_book_aliases(self):\n # NOTE: It is expected that real authentication hints will be\n # handled in a service adapter above the pay grade of this impl.\n return True", "def can_manage_relationship_aliases(self):\n # NOTE: It is expected that real authentication hints wil...
[ "0.7482216", "0.71607053", "0.71438783", "0.6937126", "0.67473656", "0.6654894", "0.66373825", "0.647238", "0.6433087", "0.6335908", "0.62401813", "0.62278897", "0.61096185", "0.5870672", "0.5863249", "0.58247435", "0.5809853", "0.5801972", "0.5765618", "0.5741113", "0.570954...
0.899018
0
Pass through to provider CatalogAdminSession.alias_catalog
def alias_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinAdminSession.alias_bin self._get_provider_session('catalog_admin_session').alias_catalog(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_alias(self):", "def can_manage_catalog_aliases(self):\n # Implemented from kitosid template for -\n # osid.resource.ResourceAdminSession.can_manage_resource_aliases_template\n return self._get_provider_session('catalog_admin_session').can_manage_catalog_aliases()", "def catalog_ali...
[ "0.7177646", "0.67365676", "0.66353583", "0.6606362", "0.6505425", "0.650178", "0.64422536", "0.6232894", "0.6232894", "0.6196061", "0.6169235", "0.60587853", "0.60041684", "0.5951661", "0.5941393", "0.59237397", "0.59237397", "0.59237397", "0.5876475", "0.5863977", "0.584959...
0.8511196
0
Pass through to provider CatalogHierarchySession.get_catalog_hierarchy_id
def get_catalog_hierarchy_id(self): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.get_bin_hierarchy_id return self._get_provider_session('catalog_hierarchy_session').get_catalog_hierarchy_id()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_catalog_id(self):\n return self._catalog_id", "def get_book_hierarchy_id(self):\n # Implemented from template for\n # osid.resource.BinHierarchySession.get_bin_hierarchy_id\n if self._catalog_session is not None:\n return self._catalog_session.get_catalog_hierarchy_...
[ "0.6811032", "0.66457605", "0.66457605", "0.657649", "0.6574508", "0.6568247", "0.65487117", "0.63936114", "0.6189958", "0.61780137", "0.61780137", "0.6101886", "0.6101886", "0.6101886", "0.6101886", "0.6097169", "0.60141516", "0.5978055", "0.5973247", "0.593903", "0.5923195"...
0.8230053
0
Pass through to provider CatalogHierarchySession.can_access_catalog_hierarchy
def can_access_catalog_hierarchy(self): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.can_access_bin_hierarchy return self._get_provider_session('catalog_hierarchy_session').can_access_catalog_hierarchy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def supports_catalog_hierarchy(self):\n # Implemented from kitosid template for -\n # osid.resource.ResourceProfile.supports_resource_lookup\n return self._provider_manager.supports_catalog_hierarchy()", "def supports_catalog_hierarchy(self):\n return False", "def can_access_book_hi...
[ "0.7873286", "0.7798301", "0.7606915", "0.75920963", "0.74497044", "0.7416652", "0.7145832", "0.68291575", "0.656526", "0.649082", "0.6440466", "0.6397366", "0.6219411", "0.60701853", "0.6026021", "0.5990887", "0.59899867", "0.59638166", "0.59417635", "0.5934202", "0.59136015...
0.88391834
0
Pass through to provider CatalogHierarchySession.get_root_catalog_ids
def get_root_catalog_ids(self): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.get_root_bin_ids return self._get_provider_session('catalog_hierarchy_session').get_root_catalog_ids()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_root_catalogs(self):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.get_root_bins\n return self._get_provider_session('catalog_hierarchy_session').get_root_catalogs()", "def get_parent_catalog_ids(self, *args, **kwargs):\n # Implemented from ...
[ "0.766696", "0.73261166", "0.729064", "0.7192844", "0.68685246", "0.683469", "0.65727335", "0.6398405", "0.6275661", "0.62064254", "0.60082555", "0.5885929", "0.58608425", "0.58488876", "0.5833088", "0.5794371", "0.57656646", "0.57117355", "0.56929755", "0.56665826", "0.56581...
0.8767685
0
Pass through to provider CatalogHierarchySession.get_root_catalogs
def get_root_catalogs(self): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.get_root_bins return self._get_provider_session('catalog_hierarchy_session').get_root_catalogs()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_root_catalog_ids(self):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.get_root_bin_ids\n return self._get_provider_session('catalog_hierarchy_session').get_root_catalog_ids()", "def add_root_catalog(self, *args, **kwargs):\n # Implemented fr...
[ "0.7801686", "0.6804592", "0.67762333", "0.6740477", "0.6688819", "0.66048336", "0.6503141", "0.64630276", "0.6396706", "0.63399214", "0.6286938", "0.6255754", "0.62088436", "0.61911476", "0.6149752", "0.60605836", "0.6013731", "0.5986957", "0.59574866", "0.5935375", "0.59259...
0.85008
0
Pass through to provider CatalogHierarchySession.has_parent_catalogs
def has_parent_catalogs(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.has_parent_bins return self._get_provider_session('catalog_hierarchy_session').has_parent_catalogs(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_parent_of_catalog(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.is_parent_of_bin\n return self._get_provider_session('catalog_hierarchy_session').is_parent_of_catalog(*args, **kwargs)", "def get_parent_catalogs(self, *args, *...
[ "0.81539416", "0.70088917", "0.68231374", "0.6792578", "0.6758142", "0.668867", "0.6635198", "0.66057396", "0.65017813", "0.637503", "0.63561594", "0.634598", "0.63103586", "0.6302823", "0.6243032", "0.6171307", "0.616938", "0.6165371", "0.6160172", "0.6029738", "0.6018495", ...
0.86852837
0
Pass through to provider CatalogHierarchySession.is_parent_of_catalog
def is_parent_of_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.is_parent_of_bin return self._get_provider_session('catalog_hierarchy_session').is_parent_of_catalog(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_parent_catalogs(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.has_parent_bins\n return self._get_provider_session('catalog_hierarchy_session').has_parent_catalogs(*args, **kwargs)", "def is_parent_of(self):\n return s...
[ "0.7857881", "0.72796524", "0.6986244", "0.69826543", "0.68545604", "0.6775658", "0.67153686", "0.67133415", "0.66863465", "0.6580127", "0.65474105", "0.64807767", "0.6463843", "0.64192414", "0.6390802", "0.633645", "0.63349867", "0.63169396", "0.6304779", "0.62793714", "0.62...
0.8697966
0
Pass through to provider CatalogHierarchySession.get_parent_catalog_ids
def get_parent_catalog_ids(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.get_parent_bin_ids return self._get_provider_session('catalog_hierarchy_session').get_parent_catalog_ids(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_parent_catalogs(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.get_parent_bins\n return self._get_provider_session('catalog_hierarchy_session').get_parent_catalogs(*args, **kwargs)", "def parent_ids(self):\n return sel...
[ "0.7998668", "0.7363536", "0.696838", "0.69027364", "0.66203564", "0.6506402", "0.64475", "0.6402672", "0.6333523", "0.6320524", "0.6316251", "0.6168418", "0.61279976", "0.610233", "0.60682", "0.60235626", "0.60160255", "0.6005199", "0.5984334", "0.5960438", "0.59309244", "...
0.87886137
0
Pass through to provider CatalogHierarchySession.get_parent_catalogs
def get_parent_catalogs(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.get_parent_bins return self._get_provider_session('catalog_hierarchy_session').get_parent_catalogs(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_parent_catalog_ids(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.get_parent_bin_ids\n return self._get_provider_session('catalog_hierarchy_session').get_parent_catalog_ids(*args, **kwargs)", "def has_parent_catalogs(self, *a...
[ "0.8095617", "0.73897886", "0.7032074", "0.6821506", "0.6483291", "0.6390385", "0.6327576", "0.63254446", "0.6324419", "0.63218534", "0.62388545", "0.61941415", "0.6172516", "0.61589235", "0.615859", "0.61254734", "0.6033831", "0.60224056", "0.60156983", "0.60114145", "0.5996...
0.853051
0
Pass through to provider CatalogHierarchySession.is_ancestor_of_catalog
def is_ancestor_of_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.is_ancestor_of_bin return self._get_provider_session('catalog_hierarchy_session').is_ancestor_of_catalog(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_parent_of_catalog(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.is_parent_of_bin\n return self._get_provider_session('catalog_hierarchy_session').is_parent_of_catalog(*args, **kwargs)", "def is_ancestor(self, other):\n\n ...
[ "0.73788285", "0.7033561", "0.68419254", "0.68260515", "0.67330486", "0.6610965", "0.6431064", "0.6375805", "0.63628376", "0.6359571", "0.62930906", "0.6237245", "0.6208972", "0.6201697", "0.61422455", "0.6132922", "0.6124667", "0.6006275", "0.59708625", "0.58888805", "0.5873...
0.867389
0
Pass through to provider CatalogHierarchySession.has_child_catalogs
def has_child_catalogs(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.has_child_bins return self._get_provider_session('catalog_hierarchy_session').has_child_catalogs(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_child_of_catalog(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.is_child_of_bin\n return self._get_provider_session('catalog_hierarchy_session').is_child_of_catalog(*args, **kwargs)", "def can_access_catalog_hierarchy(self):\n...
[ "0.7949357", "0.7360942", "0.72842836", "0.7187016", "0.71072066", "0.6979136", "0.6863362", "0.6737884", "0.6410965", "0.63950104", "0.638041", "0.6379482", "0.63554066", "0.62884295", "0.62827367", "0.6278772", "0.625046", "0.6156322", "0.61274344", "0.6070764", "0.6001654"...
0.86689335
0
Pass through to provider CatalogHierarchySession.is_child_of_catalog
def is_child_of_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.is_child_of_bin return self._get_provider_session('catalog_hierarchy_session').is_child_of_catalog(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_child_catalogs(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.has_child_bins\n return self._get_provider_session('catalog_hierarchy_session').has_child_catalogs(*args, **kwargs)", "def can_access_catalog_hierarchy(self):\n ...
[ "0.77237946", "0.7143672", "0.70289576", "0.69561505", "0.688092", "0.66770446", "0.66351765", "0.66218406", "0.6584798", "0.6354802", "0.6343982", "0.6327329", "0.632024", "0.6268294", "0.6172168", "0.6165548", "0.61519617", "0.6147762", "0.6114851", "0.60704774", "0.6052648...
0.85293674
0
Pass through to provider CatalogHierarchySession.get_child_catalog_ids
def get_child_catalog_ids(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.get_child_bin_ids return self._get_provider_session('catalog_hierarchy_session').get_child_catalog_ids(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_child_catalogs(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.get_child_bins\n return self._get_provider_session('catalog_hierarchy_session').get_child_catalogs(*args, **kwargs)", "def get_parent_catalog_ids(self, *args, **kw...
[ "0.7401815", "0.7348298", "0.7025363", "0.6930277", "0.678443", "0.6497605", "0.6119004", "0.611284", "0.60767853", "0.6071542", "0.6027419", "0.5965562", "0.59502524", "0.59161633", "0.5915887", "0.5891585", "0.5855213", "0.58476925", "0.5836786", "0.5830484", "0.5828751", ...
0.8718959
0
Pass through to provider CatalogHierarchySession.get_child_catalogs
def get_child_catalogs(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.get_child_bins return self._get_provider_session('catalog_hierarchy_session').get_child_catalogs(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_child_catalog_ids(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.get_child_bin_ids\n return self._get_provider_session('catalog_hierarchy_session').get_child_catalog_ids(*args, **kwargs)", "def has_child_catalogs(self, *args,...
[ "0.7695005", "0.7191783", "0.6933719", "0.6777457", "0.6694784", "0.6565827", "0.6523393", "0.64990836", "0.64811045", "0.638691", "0.62869525", "0.6214057", "0.6202119", "0.61270833", "0.612524", "0.6088896", "0.6064623", "0.6010594", "0.60035586", "0.5971074", "0.59446925",...
0.84957665
0
Pass through to provider CatalogHierarchySession.is_descendant_of_catalog
def is_descendant_of_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.is_descendant_of_bin return self._get_provider_session('catalog_hierarchy_session').is_descendant_of_catalog(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_descendant_of(self, node):\n return False", "def is_descendant(self, other):\n return other.is_ancestor(self)", "def is_descendant(self, tree, ancestor, descendant):\n if ancestor == descendant:\n return True\n if descendant:\n return self.is_descendant(...
[ "0.7492194", "0.7202114", "0.68935853", "0.67118734", "0.66138786", "0.65653235", "0.6547139", "0.6419343", "0.63985586", "0.639619", "0.6300235", "0.6179104", "0.6114777", "0.604928", "0.60068697", "0.5845451", "0.58135253", "0.580462", "0.5800574", "0.57724535", "0.5709981"...
0.8551386
0
Pass through to provider CatalogHierarchySession.get_catalog_node_ids
def get_catalog_node_ids(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.get_bin_node_ids return self._get_provider_session('catalog_hierarchy_session').get_catalog_node_ids(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_node_ids(self):\n \n return self.node_ids", "def node_ids(self):\n return [self.node_id]", "def _node_ids(self, nodes=None): # this function comes from BaseCard.py\n if not nodes:\n nodes = self.nodes\n if isinstance(nodes[0], integer_types):\n ...
[ "0.77367467", "0.75492555", "0.74984306", "0.7128543", "0.7099024", "0.6643188", "0.6526547", "0.64715105", "0.6450242", "0.637974", "0.6292235", "0.62349534", "0.6192993", "0.6161532", "0.615063", "0.61332947", "0.61310065", "0.6128657", "0.61259454", "0.6114231", "0.6087251...
0.8636566
0
Pass through to provider CatalogHierarchySession.get_catalog_nodes
def get_catalog_nodes(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchySession.get_bin_nodes return self._get_provider_session('catalog_hierarchy_session').get_catalog_nodes(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_nodes(self):\n pass", "def get_catalog_node_ids(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchySession.get_bin_node_ids\n return self._get_provider_session('catalog_hierarchy_session').get_catalog_node_ids(*args, **kwargs)", ...
[ "0.73020756", "0.7236734", "0.6919679", "0.6883763", "0.6679498", "0.6602363", "0.6584786", "0.6574527", "0.6553018", "0.65429574", "0.6517708", "0.6517684", "0.6517684", "0.6517684", "0.6512372", "0.6499225", "0.64947295", "0.64802605", "0.6421677", "0.6402249", "0.6383097",...
0.8524279
0
Pass through to provider CatalogHierarchyDesignSession.can_modify_catalog_hierarchy
def can_modify_catalog_hierarchy(self): # Implemented from kitosid template for - # osid.resource.BinHierarchyDesignSession.can_modify_bin_hierarchy return self._get_provider_session('catalog_hierarchy_design_session').can_modify_catalog_hierarchy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def can_modify_book_hierarchy(self):\n # Implemented from template for\n # osid.resource.BinHierarchyDesignSession.can_modify_bin_hierarchy_template\n # NOTE: It is expected that real authentication hints will be\n # handled in a service adapter above the pay grade of this impl.\n ...
[ "0.76344025", "0.7528093", "0.74309456", "0.7356475", "0.7188082", "0.70395255", "0.6643134", "0.6203075", "0.6158186", "0.6116174", "0.58900255", "0.5861437", "0.57747525", "0.5696459", "0.56135714", "0.55301833", "0.5500113", "0.5452903", "0.5327024", "0.5275934", "0.519724...
0.8979005
0
Pass through to provider CatalogHierarchyDesignSession.add_root_catalog
def add_root_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchyDesignSession.add_root_bin self._get_provider_session('catalog_hierarchy_design_session').add_root_catalog(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_root_catalog(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchyDesignSession.remove_root_bin\n self._get_provider_session('catalog_hierarchy_design_session').remove_root_catalog(*args, **kwargs)", "def add_child_catalog(self, *args, ...
[ "0.6813875", "0.6523921", "0.62321925", "0.61788124", "0.61788124", "0.61788124", "0.61527556", "0.6121284", "0.6121284", "0.6121284", "0.6121284", "0.6121284", "0.60987204", "0.60559887", "0.587504", "0.58617026", "0.5803131", "0.5803131", "0.5765531", "0.5675847", "0.567578...
0.8653618
0
Pass through to provider CatalogHierarchyDesignSession.remove_root_catalog
def remove_root_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchyDesignSession.remove_root_bin self._get_provider_session('catalog_hierarchy_design_session').remove_root_catalog(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_child_catalog(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchyDesignSession.remove_child_bin\n self._get_provider_session('catalog_hierarchy_design_session').remove_child_catalog(*args, **kwargs)", "def delete_catalog_hierarchy(sel...
[ "0.6850928", "0.67396414", "0.652211", "0.6465035", "0.6255723", "0.61706936", "0.6166417", "0.6135597", "0.6002828", "0.57741207", "0.57471824", "0.572127", "0.57035214", "0.5689762", "0.56423634", "0.56191367", "0.561291", "0.55900383", "0.55674046", "0.5533645", "0.5533078...
0.86070573
0
Pass through to provider CatalogHierarchyDesignSession.add_child_catalog
def add_child_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchyDesignSession.add_child_bin self._get_provider_session('catalog_hierarchy_design_session').add_child_catalog(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_child_catalog(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchyDesignSession.remove_child_bin\n self._get_provider_session('catalog_hierarchy_design_session').remove_child_catalog(*args, **kwargs)", "def add_root_catalog(self, *args...
[ "0.6714754", "0.6531312", "0.6380619", "0.6301281", "0.6141535", "0.6067072", "0.6044568", "0.60347086", "0.5952647", "0.5951329", "0.59413445", "0.59090525", "0.5812203", "0.5704964", "0.5689148", "0.5640887", "0.5628979", "0.55973136", "0.55917484", "0.55917484", "0.5576806...
0.85860157
0
Pass through to provider CatalogHierarchyDesignSession.remove_child_catalog
def remove_child_catalog(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchyDesignSession.remove_child_bin self._get_provider_session('catalog_hierarchy_design_session').remove_child_catalog(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_child_catalogs(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchyDesignSession.remove_child_bins\n self._get_provider_session('catalog_hierarchy_design_session').remove_child_catalogs(*args, **kwargs)", "def delete_catalog_hierarchy(...
[ "0.7964511", "0.69431597", "0.66732615", "0.62930405", "0.6147283", "0.6056059", "0.60204434", "0.59958714", "0.5990975", "0.59719396", "0.596596", "0.5918154", "0.5915128", "0.5896816", "0.5896775", "0.58822143", "0.58287936", "0.5758725", "0.57460916", "0.57098067", "0.5688...
0.84851974
0
Pass through to provider CatalogHierarchyDesignSession.remove_child_catalogs
def remove_child_catalogs(self, *args, **kwargs): # Implemented from kitosid template for - # osid.resource.BinHierarchyDesignSession.remove_child_bins self._get_provider_session('catalog_hierarchy_design_session').remove_child_catalogs(*args, **kwargs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_child_catalog(self, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinHierarchyDesignSession.remove_child_bin\n self._get_provider_session('catalog_hierarchy_design_session').remove_child_catalog(*args, **kwargs)", "def delete_catalog_hierarchy(sel...
[ "0.8125606", "0.67528665", "0.66996413", "0.5946237", "0.579681", "0.57834023", "0.5759221", "0.5613291", "0.5572947", "0.5561859", "0.5501291", "0.54950947", "0.54866475", "0.5486411", "0.54716957", "0.54330075", "0.54288805", "0.5419981", "0.54142064", "0.54124284", "0.5395...
0.84887135
0
Sets the underlying catalog view to match current view
def _set_catalog_view(self, session): if self._catalog_view == FEDERATED: try: session.use_federated_catalog_view() except AttributeError: pass else: try: session.use_isolated_catalog_view() except AttributeE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_catalog_view(self, session):\n if self._catalog_view == COMPARATIVE:\n try:\n session.use_comparative_catalog_view()\n except AttributeError:\n pass\n else:\n try:\n session.use_plenary_catalog_view()\n ...
[ "0.7872513", "0.6380571", "0.6070326", "0.5951991", "0.5917372", "0.5841899", "0.5828823", "0.5798195", "0.57301855", "0.569667", "0.56866413", "0.56350636", "0.56345433", "0.56257606", "0.5610489", "0.55495274", "0.54750896", "0.5470648", "0.5437594", "0.5437594", "0.5437594...
0.7653462
1
Sets the underlying object views to match current view
def _set_object_view(self, session): for obj_name in self._object_views: if self._object_views[obj_name] == PLENARY: try: getattr(session, 'use_plenary_' + obj_name + '_view')() except AttributeError: pass else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_action_set_view(self, content):\n self._view = content['view']\n self.refresh_traits_widget()", "def views(self, views):\n\n self._views = views", "def set_view(self, index):\n view = index\n self.reset_scroll_area()\n self.clearSelection()\n\n if view ==...
[ "0.642989", "0.6317955", "0.62381274", "0.62121856", "0.61683553", "0.61243427", "0.60863346", "0.607278", "0.60501987", "0.60130256", "0.59132856", "0.5909396", "0.5882508", "0.58528304", "0.5812102", "0.5759648", "0.5733881", "0.57300025", "0.5714099", "0.5709085", "0.56918...
0.665704
0
Sets the underlying operable views to match current view
def _set_operable_view(self, session): for obj_name in self._operable_views: if self._operable_views[obj_name] == ACTIVE: try: getattr(session, 'use_active_' + obj_name + '_view')() except AttributeError: pass else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_action_set_view(self, content):\n self._view = content['view']\n self.refresh_traits_widget()", "def views(self, views):\n\n self._views = views", "def switch_view(self, *args):\n if not self.rightwin.data:\n return\n\n if self.cur == Win.right:\n ...
[ "0.6402035", "0.6123511", "0.60095805", "0.59634674", "0.5906052", "0.58527505", "0.5831052", "0.5789425", "0.5751221", "0.57355815", "0.57335454", "0.5718964", "0.5668233", "0.56401366", "0.5618445", "0.5529013", "0.54861164", "0.5480957", "0.54507565", "0.5442017", "0.54279...
0.6814051
0
Sets the underlying containable views to match current view
def _set_containable_view(self, session): for obj_name in self._containable_views: if self._containable_views[obj_name] == SEQUESTERED: try: getattr(session, 'use_sequestered_' + obj_name + '_view')() except AttributeError: pass...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_action_set_view(self, content):\n self._view = content['view']\n self.refresh_traits_widget()", "def views(self, views):\n\n self._views = views", "def _add_all(self, window):\r\n\r\n for view in window.views:\r\n if view.visible:\r\n self._add_view(...
[ "0.6018899", "0.5493033", "0.546562", "0.54010123", "0.5316874", "0.5293752", "0.52362514", "0.5230312", "0.52012634", "0.51944643", "0.51662743", "0.51123357", "0.50995046", "0.50995046", "0.50995046", "0.50925916", "0.50868434", "0.5046261", "0.50452673", "0.50266683", "0.5...
0.67774415
0
Returns the requested provider session. Instantiates a new one if the named session is not already known.
def _get_provider_session(self, session_name): agent_key = self._get_agent_key() if session_name in self._provider_sessions[agent_key]: return self._provider_sessions[agent_key][session_name] else: session_class = getattr(self._provider_manager, 'get_' + session_name + '_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _get_provider_session(self, session_name, proxy=None):\n agent_key = self._get_agent_key(proxy)\n if session_name in self._provider_sessions[agent_key]:\n return self._provider_sessions[agent_key][session_name]\n else:\n session = self._instantiate_session('get_' + se...
[ "0.8087127", "0.6742886", "0.6699897", "0.66368324", "0.6628441", "0.6581126", "0.657559", "0.6502984", "0.649964", "0.64979595", "0.6478074", "0.64763755", "0.64591295", "0.64428717", "0.6420301", "0.63978803", "0.6389079", "0.6378353", "0.63697463", "0.6349902", "0.6341175"...
0.8100593
0
Gets the Id of this catalog.
def get_catalog_id(self): return self._catalog_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def catalog_id(self):\n return self._catalog_id", "def getId(self):\n return _libsbml.Compartment_getId(self)", "def getId(self):\n\n return self.__id", "def get_id(self):\n return self._id", "def get_id(self):\n return self._id", "def get_id(self):\n return self...
[ "0.8678884", "0.7484622", "0.73726004", "0.7355493", "0.7355493", "0.7355493", "0.7355493", "0.7355493", "0.7355493", "0.7279988", "0.72571033", "0.72358394", "0.72195864", "0.72195864", "0.7185139", "0.7183837", "0.7183837", "0.7183837", "0.7183837", "0.7183837", "0.7183837"...
0.86728644
1
Returns a list of all the endpoints currently being managed by the reactor.
def endpoint_list(self): _, body = self.request('/v1.1/endpoints', 'GET') return body
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def endpoints(self):\n return self[\"endpoints\"]", "def get_flask_endpoints(self):\n urls = self.endpoints.keys()\n return urls", "def endpoints(self):\n return self.settings[\"endpoints\"]", "def get_endpoints(self):\n return self.endpoints.values()", "async def Availab...
[ "0.77835125", "0.7656806", "0.75507295", "0.75212026", "0.7391385", "0.7229766", "0.7081538", "0.7042687", "0.7039604", "0.7015201", "0.66251105", "0.66251105", "0.65999174", "0.65949714", "0.65367913", "0.6516309", "0.651511", "0.6484123", "0.648212", "0.6472074", "0.6465471...
0.7719079
1
Create the endpoint using the given configuration.
def endpoint_create(self, endpoint_name=None, config=None): if config is None: raise Exception("Config required!") if endpoint_name is None: self.request('/v1.1/endpoint', 'PUT', body=config) else: self.request('/v1.1/endpoints/%s' % endpoint_name, 'PUT', body...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_endpoint(EndpointName=None, EndpointConfigName=None, Tags=None):\n pass", "def create_endpoint_config(EndpointConfigName=None, ProductionVariants=None, Tags=None, KmsKeyId=None):\n pass", "def build_endpoint(self, **kwargs):\n\n raise NotImplementedError()", "def create_endpoint(self,...
[ "0.7641476", "0.70716697", "0.6865303", "0.67652607", "0.6601517", "0.6475733", "0.64034057", "0.6290825", "0.62038696", "0.6139458", "0.6135826", "0.6062212", "0.6062212", "0.5979539", "0.58875746", "0.58744985", "0.5861857", "0.58543056", "0.58315206", "0.58291125", "0.5825...
0.76554227
0
Update the endpoint using the given configuration.
def endpoint_update(self, endpoint_name=None, config=None): if config is None: raise Exception("Config required!") if endpoint_name is None: self.request('/v1.1/endpoint', 'POST', body=config) else: self.request('/v1.1/endpoints/%s' % endpoint_name, 'POST', bo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_endpoint(EndpointName=None, EndpointConfigName=None):\n pass", "def update_endpoint(self, endpoint_id, endpoint_ref):\n raise exception.NotImplemented() # pragma: no cover", "def update_endpoint(self, endpoint):\n exists = self.get_endpoint(endpoint)\n if exists:\n ...
[ "0.8008503", "0.7051678", "0.70378244", "0.67874885", "0.67596745", "0.65136", "0.6494991", "0.6477921", "0.6355377", "0.6339313", "0.63132703", "0.6277759", "0.62509173", "0.61962646", "0.6189687", "0.6161519", "0.6137492", "0.60737664", "0.60737664", "0.6072482", "0.6068666...
0.84411603
0
Return the endpoint's configuration.
def endpoint_config(self, endpoint_name=None): if endpoint_name is None: _, body = self.request('/v1.1/endpoint', 'GET') else: _, body = self.request('/v1.1/endpoints/%s' % endpoint_name, 'GET') return body
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_config(self):\n return self.config", "def get_configuration(self) -> dict:\n return self.config", "def _est_config(self):\n return self._est_method.config", "def describe_endpoint_config(EndpointConfigName=None):\n pass", "def _get_config(self):\n return self.__config", ...
[ "0.7586859", "0.75094473", "0.7406959", "0.7339215", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", "0.7338158", ...
0.82205737
0
Returns a list of all configured managers.
def manager_configs_list(self): _, body = self.request('/v1.1/managers/configs', 'GET') return body
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def manager_active_list(self):\n _, body = self.request('/v1.1/managers/active', 'GET')\n return body", "def manager_agents(self):\n return self.get(\"manager_agents\")", "def list_podmanager(cls):\n return cls.dbdriver.list_podmanager()", "def get_managers_list(self):\n tr...
[ "0.6901478", "0.67316854", "0.65988505", "0.6525097", "0.646066", "0.6366126", "0.633342", "0.62295026", "0.61671317", "0.61062044", "0.6025322", "0.6015233", "0.59620667", "0.58453923", "0.5841155", "0.5767544", "0.57509774", "0.57332975", "0.5725349", "0.57098037", "0.56826...
0.8021785
0
Returns a list of all running managers.
def manager_active_list(self): _, body = self.request('/v1.1/managers/active', 'GET') return body
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_podmanager(cls):\n return cls.dbdriver.list_podmanager()", "def manager_configs_list(self):\n _, body = self.request('/v1.1/managers/configs', 'GET')\n return body", "def getAllFlightServiceManagers(self):\n staffObject_list = self.mainObject.getStaffIO()\n flightSer...
[ "0.69092685", "0.66732454", "0.63529295", "0.63384855", "0.6262632", "0.6169025", "0.61374104", "0.60452974", "0.5992976", "0.5987581", "0.5891855", "0.58843946", "0.58792484", "0.58792007", "0.5762086", "0.5749272", "0.5729349", "0.56972295", "0.56700397", "0.56640375", "0.5...
0.75390095
0
Update the manager with the given configuration.
def manager_update(self, manager, config): self.request('/v1.1/managers/configs/%s' % manager, 'POST', body=config)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update(self, **kwargs):\n self.manager.update(self, **kwargs)", "def update(self, **kwargs):\n self.manager.update(self, **kwargs)", "def conf_update(self):\n pass", "def update_config(self, config):\n return self._update_config(\"config\", config)", "def update(self):\n ...
[ "0.728846", "0.728846", "0.68354344", "0.67852616", "0.66971695", "0.66957706", "0.652014", "0.6490412", "0.648134", "0.648134", "0.648134", "0.6468057", "0.63706076", "0.6332101", "0.6330236", "0.6268073", "0.61836416", "0.6150563", "0.6149348", "0.6104999", "0.60649383", ...
0.8075267
0
Return the manager's configuration.
def manager_config(self, manager): _, body = self.request('/v1.1/managers/configs/%s' % manager, 'GET') return body
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_config(self):\n return self.config", "def get_configuration(self) -> dict:\n return self.config", "def getConfig(self):\n \n return self.config", "def config(self):\n return self.__config", "def config(self):\n return self.__config", "def config(self):\n ...
[ "0.8012625", "0.799986", "0.7858629", "0.78259075", "0.78259075", "0.7732619", "0.7732619", "0.7732619", "0.77212644", "0.7713746", "0.7709552", "0.7693966", "0.76747704", "0.7667241", "0.76168424", "0.7599402", "0.7599402", "0.75130105", "0.75130105", "0.75130105", "0.751301...
0.81382024
0
Return the active manager info.
def manager_info(self, manager): _, body = self.request('/v1.1/managers/active/%s' % manager, 'GET') return body
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def manager_active_list(self):\n _, body = self.request('/v1.1/managers/active', 'GET')\n return body", "def get_manager_info(handle, timeout):\n mgr_info = dict()\n mgr_info['ls-modules'] = ceph_mon_command(handle, 'mgr module ls', timeout)\n mgr_info['dump'] = ceph_mon_command(hand...
[ "0.7522451", "0.6985423", "0.695754", "0.6794533", "0.66179204", "0.6552652", "0.64267594", "0.6259618", "0.60771346", "0.6048752", "0.6020053", "0.5943902", "0.59426236", "0.5939026", "0.5847248", "0.58350825", "0.5816105", "0.5816105", "0.5776043", "0.5774912", "0.57687855"...
0.8867749
0
Remove the given manager's configuration.
def manager_remove(self, manager): self.request('/v1.1/managers/configs/%s' % manager, 'DELETE')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_config(name):\n db = dbm.open(config_file, 'c')\n del db[name]\n db.close()", "def del_conf(self, path):\n\t\tself.monitor.removePath(path)\n\t\tself.cache.pop(path, None)", "def remove_machine_from_config(machine):\n cfg = _get_config()\n cfg[\"frontends\"].pop(machine.id, None)\n ...
[ "0.6436418", "0.63584477", "0.6163542", "0.60472786", "0.60100406", "0.6005122", "0.59852", "0.5979645", "0.5950956", "0.5924563", "0.5869929", "0.5866752", "0.58290803", "0.58163756", "0.57940984", "0.57779753", "0.5771216", "0.5771216", "0.5770334", "0.5725332", "0.57213074...
0.86958385
0
Set the custom endpoint metrics.
def endpoint_metrics_set(self, endpoint_name=None, metrics=None): if metrics is None: raise Exception("Metrics required!") if endpoint_name is None: self.request('/v1.1/endpoint/metrics', 'POST', body=metrics) else: self.request('/v1.1/endpoints/%s/metrics' % ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_metrics(self):", "def set_metrics(self, metrics: List[Callable]) -> None:\n self.metrics = metrics", "def metrics(self, metrics):\n\n self._metrics = metrics", "def record_custom_metrics(self, metrics):\n\n if not self.__settings:\n return\n\n for name, value in...
[ "0.7323405", "0.6530676", "0.64212704", "0.6347529", "0.60994095", "0.5981285", "0.58775526", "0.5772988", "0.5707842", "0.56893635", "0.5633273", "0.56062645", "0.56058544", "0.558932", "0.55644834", "0.5553006", "0.5525284", "0.5476125", "0.5475177", "0.54414856", "0.543024...
0.7356621
0
Return the full endpoint log.
def endpoint_log(self, endpoint_name=None, since=None): if endpoint_name is None: url = '/v1.1/endpoint/log' else: url = '/v1.1/endpoints/%s/log' % endpoint_name if since is not None: url += '?since=%f' % float(since) _, body = self.request(url, 'GET')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_full_log(self):\n return self._get_log('full')", "def log(self):\n resp = requests.get(\"%s/api/log\"%self.urlbase, verify=False)\n return resp.json[\"log\"]", "def getLog(self):\n return self.session.request('diag/log/')", "def getLogs():", "def getLogs():", "def getLog(s...
[ "0.7822475", "0.72016114", "0.7017197", "0.6889371", "0.6889371", "0.67776823", "0.66976184", "0.6696164", "0.6696164", "0.66779715", "0.6653893", "0.66104734", "0.66104734", "0.6448469", "0.6329218", "0.6319319", "0.62839574", "0.6251437", "0.61940414", "0.61634755", "0.6099...
0.7715094
1
Post a message to the endpoint log.
def endpoint_post(self, endpoint_name=None, message=None, level=None): if message is None: raise Exception("Message required!") if endpoint_name is None: url = '/v1.1/endpoint/log' else: url = '/v1.1/endpoints/%s/log' % endpoint_name if level is not No...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def log_post(msg):\n casalog.post(msg, 'INFO', 'bsvoboda')", "def log(self, message):", "def log(self, message: str):", "def log_message(self, message):\n log_info = {'logGroupName': self.log_group_name,\n 'logStreamName': self.log_stream_name,\n 'logEvents': [...
[ "0.7623483", "0.69189143", "0.68100804", "0.6766771", "0.67448765", "0.67176473", "0.66051364", "0.6535955", "0.6521147", "0.65033543", "0.6469652", "0.6450492", "0.64386064", "0.6419901", "0.6396873", "0.63063043", "0.6303807", "0.6289788", "0.6288486", "0.6243808", "0.62349...
0.78706574
0
List all available metadata.
def metadata_list(self, endpoint_name=None): if endpoint_name is None: _, body = self.request('/v1.1/endpoint/metadata', 'GET') else: _, body = self.request('/v1.1/endpoints/%s/metadata' % endpoint_name, 'GET') return body
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_all_metadata(self):\n return self.db.get_all_nodes()", "def metadata(self): # -> list[Unknown]:\n ...", "def metadata(self): # -> list[Unknown]:\n ...", "def list(self, filter = NotImplemented, pager = NotImplemented):\n\n kparams = KalturaParams()\n kparams.addObje...
[ "0.72405505", "0.70674235", "0.70674235", "0.692333", "0.67305756", "0.6682802", "0.6525229", "0.64878017", "0.6483379", "0.6448371", "0.64321834", "0.6295765", "0.629346", "0.62883264", "0.6154566", "0.61519384", "0.6135041", "0.6129806", "0.60716623", "0.60687107", "0.60669...
0.7420968
0
Register the given IP.
def ip_register(self, ip=None): if ip is None: self.request('/v1.1/register', 'POST') else: self.request('/v1.1/register/%s' % ip, 'POST')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_ip(self, inf, ip):\n self.interfaces[inf]['ip'] = ip", "def new_ip(self, ip):\n if not ip in self.ip_list:\n self.ip_list.add(ip)\n host = self.hs.id_to_object(ip)\n host.add_tag('sniffer')\n host.save()\n print_success(\"New ip address...
[ "0.7263847", "0.6985573", "0.6919389", "0.6659432", "0.6566385", "0.62973195", "0.62700164", "0.62700164", "0.6252467", "0.61964816", "0.6180218", "0.6099269", "0.6095723", "0.60725296", "0.5906903", "0.5898586", "0.5887893", "0.5861625", "0.5840779", "0.5830391", "0.5815397"...
0.86831564
0
Unregister the given IP.
def ip_drop(self, ip=None): if ip is None: self.request('/v1.1/unregister', 'POST') else: self.request('/v1.1/unregister/%s' % ip, 'POST')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove(ip):\n return __apf_cmd(\"-u {}\".format(ip))", "def deregister_elastic_ip(ElasticIp=None):\n pass", "def remove_ip(enode, portlbl, addr, shell=None):\n assert portlbl\n assert ip_interface(addr)\n port = enode.ports[portlbl]\n\n cmd = 'ip addr del {addr} dev {port}'.format(addr=ad...
[ "0.67559963", "0.6748413", "0.6658068", "0.6620643", "0.63501626", "0.63131154", "0.6244726", "0.62287134", "0.6226786", "0.6176832", "0.61236423", "0.6076246", "0.6064919", "0.6024129", "0.60091347", "0.60011864", "0.5969445", "0.5937021", "0.58520246", "0.58340704", "0.5798...
0.8101048
0
Associate an instance with an endpoint.
def associate(self, endpoint_name=None, instance_id=None): if instance_id is None: raise Exception("Instance required!") if endpoint_name is None: self.request('/v1.1/endpoint/instances/%s' % instance_id, 'POST') else: self.request('/v1.1/endpoints/%s/instance...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def register_endpoint(self, **kwargs):\n self._database.update('endpoint', kwargs, kwargs, upsert=True)", "def add_endpoint(self, endpoint, **kwargs):\n endpoint.arguments = kwargs\n self.endpoints.append(endpoint)", "def endpoint_create(self, endpoint_name=None, config=None):\n if ...
[ "0.7313337", "0.69591093", "0.69211304", "0.6877627", "0.6833103", "0.68066996", "0.6666065", "0.65525895", "0.6445415", "0.6299226", "0.62065667", "0.61701995", "0.61642414", "0.61555827", "0.6136932", "0.61315817", "0.6085916", "0.60416996", "0.6022668", "0.59917736", "0.59...
0.83996296
0
Disassociate an instance from an endpoint.
def disassociate(self, endpoint_name=None, instance_id=None): if instance_id is None: raise Exception("Instance required!") if endpoint_name is None: self.request('/v1.1/endpoint/instances/%s' % instance_id, 'DELETE') else: self.request('/v1.1/endpoints/%s/ins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def disassociate_elastic_ip(ElasticIp=None):\n pass", "def delete_endpoint(self, endpoint):\n exists = self.get_endpoint(endpoint)\n if exists:\n self.endpoints.remove(exists)", "def disassociate_resolver_endpoint_ip_address(ResolverEndpointId=None, IpAddress=None):\n pass", "a...
[ "0.682443", "0.6806596", "0.6765547", "0.65948784", "0.64978296", "0.64549416", "0.64292914", "0.62376964", "0.619817", "0.6015638", "0.6000786", "0.59864897", "0.5925916", "0.5924013", "0.58500004", "0.5841745", "0.5825078", "0.5784667", "0.57450336", "0.5740795", "0.5693632...
0.870822
0
Draw a bootstrap sample from a 1D data set.
def draw_bs_sample(data): return np.random.choice(data, size=len(data))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def draw_bs_sample(data):\n return rg.choice(data, size=len(data))", "def bootstrap(X):\n return X[np.random.choice(list(range(X.shape[0])), size=X.shape[0]), :]", "def bootstrap_sample(data):\n return [random.choice(data) for _ in data]", "def standard_bootstrap(dataset):\n randseed=np.random.ra...
[ "0.68372715", "0.65911174", "0.65090394", "0.6487167", "0.61641103", "0.6111652", "0.60635245", "0.5922539", "0.5889676", "0.5822204", "0.58034134", "0.5802497", "0.5789218", "0.56030756", "0.5595742", "0.5585387", "0.5578551", "0.5560512", "0.55390865", "0.5533374", "0.55205...
0.7062562
0
Draw a pairs bootstrap sample.
def draw_bs_pairs(x, y): inds = np.arange(len(x)) bs_inds = draw_bs_sample(inds) return x[bs_inds], y[bs_inds]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def draw_bootstrap_pairs(x, y, func, size=1):\n\n # Set up array of indices to sample from: inds\n inds = np.arange(len(x))\n\n # Initialize replicates: bs_replicates\n bs_replicates = np.empty(size)\n\n # Generate replicates\n for i in range(size):\n bs_inds = np.random.choice(inds, len(i...
[ "0.6408204", "0.619511", "0.6144731", "0.6112099", "0.6074894", "0.6004757", "0.5883876", "0.57678866", "0.5728837", "0.5718084", "0.57075393", "0.5656741", "0.56540686", "0.55870754", "0.5527278", "0.5527278", "0.54886264", "0.54886264", "0.5477913", "0.5466753", "0.5445432"...
0.625779
1
Draw boostrap replicates of the mean from 1D data set.
def draw_bs_reps_mean(data, size=1): out = np.empty(size) for i in range(size): out[i] = np.mean(draw_bs_sample(data)) return out
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def draw_bs_reps(data, func, reps=1):\n bs_replicates = np.empty(reps)\n for i in range(reps):\n bs = np.random.choice(data, replace=True, size=len(data))\n bs_replicates[i] = np.mean(bs)\n return func(bs_replicates)", "def expanding_mean_1d_nb(a, minp=1):\n return rolling_mean_1d_nb(a,...
[ "0.6356295", "0.5573147", "0.5505484", "0.54908717", "0.5478007", "0.54538715", "0.5435412", "0.5399054", "0.5367195", "0.5365157", "0.5319779", "0.5285857", "0.5244797", "0.5215043", "0.5209573", "0.51538163", "0.5143565", "0.51350296", "0.51278985", "0.5111824", "0.5110092"...
0.69946057
0
Function to split excel files into indivdual csv's and then delete.
def split_excel_files(self): for x in self.files: if x[-4:] not in [".xls", "xlsx"]: continue else: files = pd.read_excel(x, sheet_name=None) for k, v in files.items(): #get name with the extension stripped ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def make_csvs():\n for oneFile in glob.glob('excel/*.xlsx'):\n pd = pandas.read_excel(oneFile)\n outName = os.path.splitext(os.path.basename(oneFile))[0]\n pd.to_csv('lists/'+outName+'.csv',index=False)", "def csv_from_excel(path=os.getcwd()):\n path = path + '/*.xls*'\n files = glo...
[ "0.59048206", "0.58225185", "0.5787659", "0.57107836", "0.5645881", "0.5633174", "0.5561667", "0.5561204", "0.5554499", "0.55346644", "0.5507042", "0.5490549", "0.5482629", "0.54694206", "0.54608023", "0.545365", "0.544657", "0.5445508", "0.5395078", "0.53660935", "0.53414905...
0.7902608
0
Returns the diff header.
def header_diff(diff): return diff[:diff.find(clean_diff(diff))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getHeader():\n return _HEADER", "def get_header(self):\n return self._header", "def getHeader(self):\n return self.data.header", "def header(self):\r\n return self.__header", "def header(self):\n return self._header", "def header(self):\n return self._header", ...
[ "0.74034965", "0.731021", "0.7231756", "0.70983106", "0.7060388", "0.7060388", "0.7060388", "0.68315625", "0.6825599", "0.6802016", "0.67298836", "0.67139643", "0.6710982", "0.6694566", "0.6694566", "0.66496134", "0.6633935", "0.66212666", "0.6615713", "0.6597214", "0.6579236...
0.7866826
0
Writes a patch tempfile.
def write_tmp_patch(diff, filename=None): if not filename: prefix = 'cugit-' suffix = '-patch' filename = mkstemp(suffix, prefix)[1] with open(filename, 'w') as f: f.write(diff) return filename
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def write_patch(self, patch_str:str, offset:int):\n self.cycle_stream_mode(True) #set io as read\n old_file = self.io_stream.read()\n\n old_file_front = old_file[:offset]\n old_file_back = old_file[offset+len(patch_str):]\n\n new_file = old_file_front + patch_str + old_file_back\...
[ "0.61978513", "0.6094686", "0.6089081", "0.5811616", "0.570289", "0.56202227", "0.56129915", "0.5567952", "0.54997003", "0.54888415", "0.5467721", "0.5421477", "0.5417318", "0.5410641", "0.5394676", "0.53655595", "0.53639346", "0.5354897", "0.5350714", "0.5337507", "0.5326419...
0.7572888
0
Returns a list with all the chunks in this diff.
def get_chunks(diff): diff = clean_diff(diff) chunk = [] chunks = [] for line in diff.split('\n'): if not line: continue if line.startswith('@@ '): if chunk: chunks.append('\n'.join(chunk) + '\n') chunk = [line] else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getChunks():", "def chunks(self) -> List[OctreeChunk]:\n return [tile_data.octree_chunk for tile_data in self._tiles.values()]", "def chunk_set(self) -> Set[OctreeChunk]:\n return self._chunks", "def smallfile_blocks(self):\n return self._smallfile_blocks", "def chunks(self, n):\n ...
[ "0.7277695", "0.70243096", "0.6752348", "0.66361326", "0.6562482", "0.64825803", "0.6463599", "0.6388702", "0.63127536", "0.62394726", "0.6157505", "0.6129312", "0.6112083", "0.61033", "0.60561705", "0.60495746", "0.6049434", "0.6047188", "0.6032273", "0.6024378", "0.60216916...
0.76115656
0
Checks if chunk is inside text.
def chunk_in_text(chunk, text): chunk = clean_chunk(chunk) return text.find(chunk) >= 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hasRawText(self, text):\n r = re.compile(r'<(p|blockquote|div|form|table|ul|ol|dl|pre|h\\d)[^>]*?>.*</\\1>',\n re.S).sub('', text.strip()).strip()\n r = re.compile(r'<(hr|br)[^>]*?/>').sub('', r)\n return '' != r", "def has_text(self, page: fitz.Page) -> bool:\n ...
[ "0.6827184", "0.6780171", "0.6645555", "0.661451", "0.6532266", "0.64886785", "0.6441595", "0.6326669", "0.63196266", "0.63009065", "0.6285457", "0.61925936", "0.6188996", "0.6134521", "0.61328065", "0.6126684", "0.5998353", "0.59940386", "0.59071785", "0.5866151", "0.5856510...
0.8283613
0
Checks if this file is binary withi diff command.
def is_binary(check_file): res = diff[devnull, check_file](retcode=(0,1,2)) return res.startswith('Binary files')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_binary_diff(self):\n diff = (\n b'diff --git a/pysvn-1.5.1.tar.gz b/pysvn-1.5.1.tar.gz\\n'\n b'new file mode 100644\\n'\n b'index 0000000..86b520c\\n'\n b'Binary files /dev/null and b/pysvn-1.5.1.tar.gz differ\\n'\n )\n\n parsed_files = self...
[ "0.7357386", "0.6626895", "0.66226614", "0.6603421", "0.6584796", "0.6577146", "0.65536094", "0.6459666", "0.64458364", "0.6394738", "0.63663214", "0.63508457", "0.6341169", "0.61732894", "0.61545825", "0.6121706", "0.61196023", "0.60302585", "0.59410125", "0.5940805", "0.593...
0.7674245
0
Functions that transforms measurement data with samples taken it any (possibly irregular) sample rate and outputs the same measurements evenly spanced according to a given step length.
def recreate_sampling_times( data: DataFrame, step_length: float, start_time: float, end_time: float, plot_col=None, ) -> DataFrame: first_time_in_df = data[DFKeys.TIME.value].iloc[0] if start_time < first_time_in_df: raise ValueError("start time cannot precede first time in df") ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def smoothed(sequence, step=1, start=0):\n next_index = start + 1\n last = len(sequence) \n new_sequence = []\n if not step:\n return sequence\n ratio_step = step + 1\n for item in sequence:\n new_sequence.append(item)\n if next_index < last:\n next_item = sequence...
[ "0.61137354", "0.5560548", "0.5529538", "0.544452", "0.5436568", "0.54274285", "0.54136103", "0.53967273", "0.53775096", "0.5371207", "0.5365279", "0.53076035", "0.5302743", "0.52841", "0.5283588", "0.5236762", "0.52195495", "0.52108365", "0.52093816", "0.52066445", "0.519955...
0.587361
1
Function for converting messages on topics in a bag into a single dataframe with equal timesteps. Uses 1d interpolation to synchronize topics.
def bag_to_dataframe( bagpath: Path, topics: List[str], step_length: float, plot_col=None ) -> DataFrame: # convert bag to dataframes dataframes = bag_to_dataframes(bagpath, topics) # find global start and end times start_times = list() end_times = list() for topic in topics: df = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_topic_history(data, bow_corpus, topic_ID, lda_model,\r\n timestep_code='1A', agg=np.mean):\r\n\r\n agg_results = {}\r\n for time_step, data in data.resample(timestep_code, on='year'):\r\n\r\n # Get indices for data in this range\r\n indices = data.index.tolist()\r\n...
[ "0.57238615", "0.5574867", "0.53912854", "0.5151434", "0.5077015", "0.49671167", "0.49580783", "0.49085027", "0.48793778", "0.4872549", "0.486572", "0.48051518", "0.47753602", "0.47723496", "0.47499838", "0.47255534", "0.46917838", "0.4691524", "0.4651114", "0.46419352", "0.4...
0.66636413
0
Gets a dictionary of all input files related to a problem
def get_problem_files(problem_name, base_data_dir=None): raw_problem_data_dir, _, __ = _get_base_dirs(base_data_dir) problem_file_templates = _get_problem_file_templates(raw_problem_data_dir) ensure_dir_exists(raw_problem_data_dir.format(problem_name=problem_name)) problem_files = problem_file_templat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def inputFiles(self):\n inputfiles = set()\n for f in self:\n [ inputfiles.add(x) for x in f['input']]\n return list(inputfiles)", "def inputs(self):\n return {\n \"path_to_result_folder\": File_IO(self.node.inputs[0]),\n \"pathToLanguageMappin...
[ "0.68964374", "0.6508628", "0.6470385", "0.6470385", "0.6335087", "0.6294588", "0.62819946", "0.61027294", "0.60853153", "0.6044708", "0.6009861", "0.5923437", "0.5883391", "0.58639646", "0.5841919", "0.58342904", "0.5831044", "0.57976127", "0.5794483", "0.5770861", "0.575632...
0.66878194
1
Static function responsible for creating a new instance of Proxy. This implementation aims to create a single instance of Proxy in the first assignment and then only return this instance. This current implementation doesn't allow multiple assignments to Proxy. Once assigned, the instance will not take a new value, unle...
def __new__(cls, urls=None): if Proxy.__instance is None: Proxy.__instance = object.__new__(cls) Proxy.__instance.urls = urls return Proxy.__instance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create(self, upstream, name, listen=None, enabled=None):\n\n if name in self.proxies():\n raise_with_traceback(ProxyExists(\"This proxy already exists.\"))\n\n # Lets build a dictionary to send the data to the Toxiproxy server\n json = {\n \"upstream\": upstream,\n ...
[ "0.6240453", "0.6203818", "0.59883887", "0.59883887", "0.59512824", "0.58887017", "0.5730821", "0.5691852", "0.55683607", "0.5517402", "0.54947203", "0.5489108", "0.54607826", "0.5457385", "0.5434269", "0.5401339", "0.5399806", "0.5329499", "0.5329499", "0.5329499", "0.532858...
0.7647028
0
Fill the draw with ordered set of card
def fill_draw(self): self.draw = [x + str(y) for x in COLOR for y in CARD_VALUE]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def draw_a_card(cards):\n import random\n card_drawn = random.choices(card_deck)\n cards.append(card_drawn[0])\n return", "def draw_card(self,card):\n self.hand.append(card)", "def draw_card(self, card):\n self.current_hand.append(card)", "def draw(self, canvas, pos):\r\n # D...
[ "0.72226983", "0.6849346", "0.67760706", "0.6662149", "0.6661963", "0.6635878", "0.66047674", "0.6596281", "0.65947175", "0.656584", "0.6545951", "0.6444289", "0.64289516", "0.63977695", "0.63781214", "0.6375881", "0.6361973", "0.63425326", "0.6213734", "0.6210681", "0.619574...
0.7324256
0
Draw CARD_IN_HANDS cards and put it in the hands of each players
def draw_initial_hands(self): self.hands = [[] for i in range(self.num_players)] for i in range(self.num_players): for _ in range(CARD_IN_HANDS): self.hands[i].append(self.draw_card())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def draw_hands(n_players=1):\n if n_players > 6:\n assert \"too many players. someone can't play.\"\n\n deck = make_deck()\n\n random.shuffle(deck)\n\n hands = []\n\n for i in range(n_players):\n hands.append(deck[15*i:15*(i+1)])\n\n bag = deck[n_players*15:]\n\n return hands, ba...
[ "0.7210847", "0.7161282", "0.7158964", "0.7154756", "0.71415424", "0.7067022", "0.7014355", "0.6951996", "0.6947632", "0.6837969", "0.6819214", "0.68042874", "0.6789673", "0.67616475", "0.67540085", "0.6737133", "0.66947967", "0.6661551", "0.6657943", "0.66329676", "0.6595771...
0.77261215
0
discard the card in player_index hand at card_index position
def discard_card(self, player_index, card_index): self.discard.append(self.hands[player_index][card_index]) self.nb_blue_stone = min(self.nb_blue_stone + 1, MAX_BLUE_STONE) self.hands[player_index][card_index] = self.draw_card() return self.hands[player_index][card_index]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_card(self, card_idx: int) -> None:", "def discard_card(self, card_index):\n if self.game.discard_card(self.index, card_index) == NO_CARD:\n self.know[card_index] = NO_CARD\n else:\n self.know[card_index] = \"??\"", "def discard(self, card: Card) -> None:\n\n ...
[ "0.7953479", "0.7897812", "0.7351607", "0.735034", "0.71947783", "0.7015518", "0.69786286", "0.6937379", "0.6872043", "0.68690753", "0.6841711", "0.68187994", "0.68112737", "0.67882866", "0.6767954", "0.67522264", "0.6749074", "0.6715408", "0.668885", "0.66758704", "0.6662474...
0.8206749
0
Try to use the card in player_index hands at card_index position to complete one fireworks
def play_card(self, player_index, card_index): card = self.hands[player_index][card_index] color_index = COLOR.index(card[0]) if self.is_card_playable(card): # the color and the number match, add the card self.firework[color_index].append(card) # if we complet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hit(self, hand_index: int) -> None:\n\n self._hands[hand_index].deal_card()", "def hit(self, hand):\n if hand == \"player\":\n self.player_hand.append(self.cards_list[self.top_card_int])\n self.calculate_value(\"player\")\n elif hand == \"dealer\":\n self...
[ "0.6926654", "0.66886723", "0.6646441", "0.66020334", "0.6499319", "0.6453483", "0.64293414", "0.6423775", "0.63456625", "0.6319759", "0.6314192", "0.6274448", "0.62138325", "0.61962587", "0.61802703", "0.61195254", "0.6112211", "0.60624474", "0.6038025", "0.6034104", "0.6015...
0.7138669
0
check if the card is in other players hands
def is_card_in_other_hands(self, own_hand_index, card): for i, hand in enumerate(self.hands): if i == own_hand_index: continue if card in hand: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def still_in_hand(self):\n return len(self.hand.cards)!=0", "def does_player_have_card(self, player, card):\n return card in self.hands[player]", "def hitMe(hand, deck):\n if deck.cardsLeft == 0:\n return False\n hand.getCard(deck.drawCard())\n return True", "def hasBlackjack(se...
[ "0.7485425", "0.731124", "0.69145197", "0.6886143", "0.6801055", "0.6795613", "0.6710412", "0.6705385", "0.6697481", "0.66499996", "0.6609032", "0.6579931", "0.6578903", "0.655311", "0.65114313", "0.64970493", "0.6496383", "0.64959776", "0.64737856", "0.6472519", "0.64617413"...
0.7958578
0
Function that creates a sudoku matrix
def make_sudoku(size): def mutate_list_1(lst, size): """Helper function for removing part of a list from the beginning and add it to the end.""" count = 0 while count < size: elem = lst[0] lst.remove(elem) lst.append(elem) count += 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_sudoku(self)->list:\n grid = [[None for x in range(9)] for row in range(9)]\n for row in range(0,9):\n for column in range(0,9):\n if row <= 2 and column <=2:\n grid[row][column] = cell.Cell(0)\n elif row <= 2 and 3 <= column <= 5...
[ "0.77155757", "0.70223457", "0.68659484", "0.67353135", "0.6707213", "0.66946906", "0.6685877", "0.66664875", "0.6648201", "0.6629207", "0.662782", "0.66213465", "0.6606546", "0.6600456", "0.6567484", "0.65639156", "0.65273124", "0.6484139", "0.6478473", "0.64574647", "0.6436...
0.79173344
0