query
stringlengths
9
3.4k
document
stringlengths
9
87.4k
metadata
dict
negatives
listlengths
4
101
negative_scores
listlengths
4
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Perform a osd "action."
def _action(self, action, osd, info=None, **kwargs): body = {action: info} self.run_hooks('modify_body_for_action', body, **kwargs) url = '/osds/%s/action' % base.getid(osd) return self.api.client.post(url, body=body)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def device_action(self, client, action):\r\n client.deviceAction(action)", "def perform_actual_action(self, action):\n self.game.perform_action(action)", "def execute_action(self, agent, action):\n agent.bump = False\n agent.performance_measure -= 1\n \n if action == '...
[ "0.6288845", "0.59816945", "0.5836515", "0.5802067", "0.5802067", "0.57797366", "0.574658", "0.56953174", "0.56953174", "0.5662237", "0.5661676", "0.5661676", "0.5661676", "0.5661676", "0.5660734", "0.56254244", "0.5604492", "0.5561712", "0.5526677", "0.5524998", "0.55161124"...
0.6980433
0
A clade in NCBI taxonomy, containing all leaf taxon's KEGG organisms.
def __init__(self, ncbiNames: 'e.g. Enterobacter or Proteobacteria/Gammaproteobacteria. Allows list of names, e.g. ["Gammaproteobacteria", "/Archaea"]', excludeUnclassified = defaultExcludeUnclassified, oneOrganismPerSpecies = defaultOneOrganismPerSpecies): taxonomy = NCBI.getTaxonomy() if isin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HaarGOB(treeG):\n # number of level of the chain (or tree)\n Ntr = len(treeG)\n # reorder chain (optional) \n # reordering each level so that in each level the nodes are in the\n # descent order of degrees\n # compute u_l^c for level J_0 (top level)\n clusterJ0 = treeG[Ntr-1]['clusters']\n...
[ "0.5632232", "0.55822456", "0.54981554", "0.5494588", "0.5481911", "0.54404086", "0.54022205", "0.5397675", "0.53802574", "0.5376222", "0.5372132", "0.5346099", "0.5334962", "0.5320827", "0.5275802", "0.5263081", "0.52418846", "0.5239825", "0.52368", "0.52352065", "0.521025",...
0.5424304
6
The SubstanceEC graph representing the collective metabolic network, occuring in any organism of the clade. This includes each and every EC number which occurs in any organism of this clade.
def collectiveMetabolism(self, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes, addEcDescriptions = False) -> SubstanceEcGraph: graph = self.group.collectiveEcGraph(noMultifunctional = excludeMultifunctionalEnzymes, addCount = True, keepOnHeap = True, addEcDescriptions = addEcDescriptions) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c_edges(self):\n self.compute_c_edges(self)\n return self._c_edges", "def graph(self):\n assert self._modeled, \"Need to do calc_covariance\"\n return self._graph", "def scc(self):\n return self.to_ddm().scc()", "def edges(self):\r\n return self.capacity.keys()",...
[ "0.6119846", "0.59690535", "0.5778467", "0.5737808", "0.5701327", "0.56940114", "0.56930697", "0.563835", "0.5614581", "0.5609551", "0.55770725", "0.5549687", "0.55336034", "0.55317324", "0.54990387", "0.5468927", "0.5466693", "0.54418373", "0.54250294", "0.5423668", "0.54227...
0.5447247
17
The SubstanceEnzyme graph representing the collective metabolic network, occuring in any organism of the clade. This includes each and every enzyme of every organism of this clade.
def collectiveMetabolismEnzymes(self, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes) -> SubstanceEnzymeGraph: graph = self.group.collectiveEnzymeGraph(noMultifunctional = excludeMultifunctionalEnzymes, keepOnHeap = True) graph.name = 'Collective metabolism enzymes ' + ' '.join(sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_graph_karateclub():\n all_members = set(range(34))\n club1 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 11, 12, 13, 16, 17, 19, 21}\n # club2 = all_members - club1\n\n G = eg.Graph(name=\"Zachary's Karate Club\")\n for node in all_members:\n G.add_node(node+1)\n\n zacharydat = \"\"\"\\\n0 1 1...
[ "0.6028162", "0.59044474", "0.57775235", "0.5567599", "0.554882", "0.5535332", "0.5522798", "0.5515686", "0.55137914", "0.55136275", "0.54814845", "0.5472295", "0.5457305", "0.5456937", "0.54244757", "0.54244757", "0.54244757", "0.5421997", "0.5420029", "0.5370936", "0.536334...
0.626008
0
The SubstanceEC graph representing the common metabolic network, shared among all organisms of the clade. This includes only EC numbers which occur in at least `majorityPercentageCoreMetabolism` % of all organisms of this clade.
def coreMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes) -> SubstanceEcGraph: graph = self.group.majorityEcGraph(majorityPercentage = majorityPercentageCoreMetabolism, noMultifunctional = excludeMul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def conservedMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEcGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majorityPercentageCoreMetabo...
[ "0.6851328", "0.6829522", "0.67308336", "0.67119503", "0.6634819", "0.66100425", "0.6589145", "0.6467408", "0.624838", "0.611285", "0.60297996", "0.60168624", "0.60092956", "0.5978053", "0.5830879", "0.58009404", "0.575013", "0.5714629", "0.5646468", "0.5639464", "0.56288904"...
0.7358444
0
The SubstanceEnzyme graph representing the common metabolic network, shared among all organisms of the clade.
def coreMetabolismEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes) -> SubstanceEnzymeGraph: graph = self.group.collectiveEnzymeGraphByEcMajority(majorityPercentage = majorityPercentageCoreMetabolism, m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def network(self):\n G = nx.MultiDiGraph()\n reaction_hash = []\n product_count = 0\n mapping = {}\n reaction_count = 0\n\n for r in self.reactions:\n reaction_count += 1\n\n reaction_dict = r.__dict__\n G.add_edge(reaction_dict.get('left')...
[ "0.6422785", "0.6301998", "0.6166783", "0.61175174", "0.60750496", "0.6073714", "0.60270894", "0.5952155", "0.5944933", "0.59022546", "0.5872501", "0.58624905", "0.58611155", "0.585283", "0.5848682", "0.58481604", "0.58378226", "0.5821275", "0.5820361", "0.58025944", "0.57834...
0.53822803
73
The number of organisms (leaf taxons) in this clade. Returns int The number of organisms (leaf taxons) in this clade.
def organismsCount(self) -> int: return self.group.organismsCount
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def leaf_count(self) -> int:\n if self.children == []:\n return 1\n else:\n return sum([x.leaf_count() for x in self.children])", "def n_trees(self):\n return len(self.data_kd)", "def count_atoms(self):\n n = 0\n for chain in self.iter_chains():\n ...
[ "0.67566955", "0.6556457", "0.6517457", "0.6517457", "0.6510434", "0.64950323", "0.6437851", "0.6435725", "0.64108914", "0.6374372", "0.6369585", "0.6362572", "0.63609064", "0.63561183", "0.63489836", "0.63383377", "0.6318547", "0.63147897", "0.63098747", "0.63017595", "0.627...
0.77582914
0
The substanceEnzyme graph of all gene duplicated enzymes of the core metabolism.
def geneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False) -> SubstanceEnzymeGraph: enzymeGraph = self.coreMetabolismEnzymes(majorityPercentageCoreMetabolism) geneDuplicationModel = SimpleGeneDup...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addedMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majorit...
[ "0.6935128", "0.6869094", "0.63864636", "0.63718253", "0.62681776", "0.6187902", "0.6169614", "0.61466265", "0.6134928", "0.61197543", "0.61049575", "0.60786825", "0.58720994", "0.5807282", "0.5740409", "0.5649418", "0.56281716", "0.5621698", "0.5607962", "0.5592912", "0.5568...
0.6968888
0
All gene duplicated enzymes of the core metabolism, pointing to all their duplicates.
def geneDuplicatedEnzymesDict(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Dict[Enzyme, Set[GeneID]]: enzymeGraph = self.coreMetabolismEnzymes(majorityPercentageCoreMetabolism) geneDuplicationModel = SimpleGeneDuplication geneIDs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def geneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]:\n \n \n enzymes = self.coreMetabolismEnzymes(majorityPercentageCoreMetabolism).getEnzymes()\n geneDuplicationModel = SimpleGeneDuplication\n ...
[ "0.7099837", "0.7025168", "0.69302565", "0.6652433", "0.65650713", "0.65152824", "0.6477518", "0.6289955", "0.6230133", "0.62202966", "0.60999846", "0.59928745", "0.5987962", "0.58550674", "0.5808454", "0.5769425", "0.564335", "0.5591993", "0.5578701", "0.5500059", "0.5488227...
0.71266633
0
All gene duplicated enzymes of the core metabolism, paired with each of their duplicates. If enzyme A is a duplicate of enzyme B and vice versa, this does not return duplicates, but returns only one pair, with the "smaller" enzyme as the first value. An enzyme is "smaller" if its gene ID string is "smaller".
def geneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]: enzymes = self.coreMetabolismEnzymes(majorityPercentageCoreMetabolism).getEnzymes() geneDuplicationModel = SimpleGeneDuplication ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def divergedMetabolismGeneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]:\n # get diverged metabolism\n divergedMetabolismEnzymes = self.divergedMetabolismEnzymes(majorityPercentageCoreMetabolism).getEnzymes()\n ...
[ "0.74381024", "0.7337452", "0.7129101", "0.690591", "0.6749732", "0.66438884", "0.6258788", "0.6047571", "0.59916437", "0.583954", "0.5826309", "0.5580656", "0.5540774", "0.54498655", "0.52426744", "0.5234347", "0.5220493", "0.5200757", "0.5197881", "0.51871806", "0.51799005"...
0.7607282
0
The substanceEnzyme graph of all neofunctionalised enzymes of the core metabolism.
def neofunctionalisedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False, eValue = defaultEValue, considerOnlyECs = None) -> SubstanceEnzymeGraph: # get neofunctionalisations neofunctionalisedEnzymes = self._neofunctionalisedEnzymes(majorityPe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def collectiveMetabolismEnzymes(self, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes) -> SubstanceEnzymeGraph:\n graph = self.group.collectiveEnzymeGraph(noMultifunctional = excludeMultifunctionalEnzymes, keepOnHeap = True)\n graph.name = 'Collective metabolism enzymes ' + ' '.j...
[ "0.65755415", "0.65146273", "0.6336113", "0.6197786", "0.6159029", "0.60107636", "0.5905536", "0.58942384", "0.5848229", "0.58273816", "0.57506675", "0.57506675", "0.57506675", "0.57395303", "0.5701725", "0.56882715", "0.5686614", "0.5670043", "0.56549966", "0.56356984", "0.5...
0.590379
7
The substanceEC graph of EC numbers belonging to function changes of neofunctionalised enzymes of the core metabolism. Only EC numbers which could have actually taken part in a function change are reported. This is because enzymes can have multiple EC numbers, while only some might be eligible for a function change. Fo...
def neofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, colour = False, eValue = defaultEValue, considerOnlyECs = None) -> SubstanceEcGraph: # get neofunctionalisations ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def redundantECsForContributingNeofunctionalisation(self, \n majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, \n majorityPercentageNeofunctionalisation = defaultMajorityPercentag...
[ "0.6066636", "0.5614624", "0.5553752", "0.5487054", "0.54392904", "0.54148823", "0.5396551", "0.53906614", "0.52966624", "0.52825737", "0.5221849", "0.5204589", "0.51931787", "0.5125437", "0.5115151", "0.51081955", "0.5107046", "0.5076023", "0.50700116", "0.50495934", "0.5038...
0.5634353
1
Get neofunctionalisation events of all enzymes in the core metabolism.
def neofunctionalisations(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, eValue = defaultEValue, considerOnlyECs = None) -> Set[Neofunctionalisation]: # get neofunctionalisations return self._neofunctionalisedEnzymes(majorityPercentageCoreMetabolism, eValue, co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neofunctionalisationsForFunctionChange(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, eValue = defaultEValue, considerOnlyECs = None) -> Dict[FunctionChange, Set[Neofunctionalisation]]:\n ...
[ "0.59909326", "0.57868326", "0.57269204", "0.5654965", "0.5592295", "0.5470599", "0.54684854", "0.54546684", "0.54503614", "0.54164416", "0.54042697", "0.5348139", "0.5230972", "0.52255017", "0.52217627", "0.52217627", "0.5192401", "0.51829016", "0.5179526", "0.5167479", "0.5...
0.6120901
0
Get neofunctionalisation events of all enzymes in the core metabolism, grouped by each possible function change event.
def neofunctionalisationsForFunctionChange(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, eValue = defaultEValue, considerOnlyECs = None) -> Dict[FunctionChange, Set[Neofunctionalisation]]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neofunctionalisations(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, eValue = defaultEValue, considerOnlyECs = None) -> Set[Neofunctionalisation]:\n # get neofunctionalisations \n return self._neofunctionalisedEnzymes(majorityPercentageCoreMetabolism, eVa...
[ "0.5865203", "0.55186284", "0.54669976", "0.54044694", "0.5370907", "0.53479284", "0.532519", "0.52754444", "0.5167715", "0.5159104", "0.5134438", "0.5128673", "0.5123458", "0.5117896", "0.5097917", "0.5074114", "0.49859592", "0.49851054", "0.49779522", "0.49597242", "0.49597...
0.68809205
0
Get neofunctionalisation events of all enzymes in the core metabolism, which contribute to redundancy, pointing to the EC numbers their function changes' EC numbers provides redundancy for.
def redundantECsForContributingNeofunctionalisation(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neofunctionalisationsForFunctionChange(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, eValue = defaultEValue, considerOnlyECs = None) -> Dict[FunctionChange, Set[Neofunctionalisation]]:\n ...
[ "0.6847851", "0.6301637", "0.6094617", "0.60497826", "0.5845832", "0.58000714", "0.5776784", "0.5648149", "0.54955536", "0.547115", "0.5464117", "0.5397465", "0.5397401", "0.5384487", "0.5378686", "0.5366517", "0.5358685", "0.5353077", "0.53527224", "0.5348591", "0.53361887",...
0.6713973
1
Two clades in NCBI taxonomy, 'child' is assumed younger than 'parent'. Does not check if the child taxon is actually a child of the parent taxon.
def __init__(self, parent, child, excludeUnclassified = defaultExcludeUnclassified, oneOrganismPerSpecies = defaultOneOrganismPerSpecies): # read NCBI names from Clade object, if necessary if isinstance(parent, Clade): self.parentClade = parent else: self.parentClade = Cl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, parent, child, excludeUnclassified = defaultExcludeUnclassified):\n # read first NCBI name from Clade object, if necessary\n if isinstance(parent, Clade):\n parentNCBIname = parent.ncbiNames[0]\n elif not isinstance(parent, str):\n # must be iterable, e...
[ "0.6561486", "0.60595864", "0.5947192", "0.5942709", "0.5786277", "0.57073885", "0.5304779", "0.52430177", "0.52060413", "0.51680994", "0.51654136", "0.51636094", "0.5141324", "0.5114871", "0.5113854", "0.51016045", "0.5086166", "0.5085786", "0.50788975", "0.50663656", "0.505...
0.5611119
6
All names/paths in NCBI taxonomy used to create the parent clade.
def parentNCBInames(self): return self.parentClade.ncbiNames
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def childNCBInames(self):\n return self.childClade.ncbiNames", "def display_all_paths(taxonomy):\n for i,entry in enumerate(taxonomy):\n print \"For nodeId : {} :: NodeName : {} \" .format(entry['nodeId'], entry['nodeName'])\n parentId = entry['parentId']\n parentName = entry['pare...
[ "0.66094685", "0.5948672", "0.59455013", "0.5883354", "0.58186686", "0.57299733", "0.5665493", "0.5624762", "0.55911696", "0.55900514", "0.55431145", "0.554038", "0.55155194", "0.5509813", "0.55068725", "0.55050105", "0.5497012", "0.5494448", "0.54918534", "0.546851", "0.5436...
0.6904
0
All names/paths in NCBI taxonomy used to create the child clade.
def childNCBInames(self): return self.childClade.ncbiNames
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def children(self, taxon, taxonomy):\n\n c = set()\n for taxon_id, taxa in taxonomy.items():\n if taxon in taxa:\n\n if taxon.startswith('s__'):\n c.add(taxon_id)\n else:\n taxon_index = taxa.index(taxon)\n ...
[ "0.626776", "0.6162786", "0.60941124", "0.60593927", "0.6052144", "0.5884141", "0.5847267", "0.56961423", "0.56444347", "0.5616592", "0.56161517", "0.55935484", "0.55766165", "0.5564394", "0.55252403", "0.54684275", "0.5455569", "0.54430205", "0.5435376", "0.54307735", "0.539...
0.6842796
0
SubstanceEC graph of the conserved core metabolism.
def conservedMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEcGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism) childCoreMetabolism = self.childClade.coreMetabolism(majorityPercentageCoreMetabolism) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def coreMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes) -> SubstanceEcGraph:\n graph = self.group.majorityEcGraph(majorityPercentage = majorityPercentageCoreMetabolism, noMultifunctional = excl...
[ "0.6580189", "0.6125802", "0.5889315", "0.5867898", "0.5865846", "0.5857007", "0.5807236", "0.5736168", "0.57251334", "0.5632387", "0.5575763", "0.5573248", "0.5559867", "0.5544407", "0.5537933", "0.55150014", "0.5493232", "0.5482677", "0.5473975", "0.5453563", "0.5412237", ...
0.6567516
1
SubstanceEC graph of the added core metabolism.
def addedMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEcGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism) childCoreMetabolism = self.childClade.coreMetabolism(majorityPercentageCoreMetabolism) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def coreMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes) -> SubstanceEcGraph:\n graph = self.group.majorityEcGraph(majorityPercentage = majorityPercentageCoreMetabolism, noMultifunctional = excl...
[ "0.6702209", "0.6497114", "0.61611027", "0.61203563", "0.6050524", "0.59818614", "0.5975307", "0.5904523", "0.58224356", "0.58078855", "0.57479113", "0.574062", "0.56759965", "0.560662", "0.5584677", "0.5557808", "0.5547269", "0.54960835", "0.54925925", "0.54916406", "0.54622...
0.6712265
0
SubstanceEC graph of the lost core metabolism.
def lostMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEcGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism) childCoreMetabolism = self.childClade.coreMetabolism(majorityPercentageCoreMetabolism) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def coreMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes) -> SubstanceEcGraph:\n graph = self.group.majorityEcGraph(majorityPercentage = majorityPercentageCoreMetabolism, noMultifunctional = excl...
[ "0.6420541", "0.6397231", "0.62007076", "0.602886", "0.5997335", "0.5955496", "0.59275013", "0.5926646", "0.5912952", "0.5824851", "0.58129376", "0.57867503", "0.57554734", "0.57294613", "0.5672753", "0.5659814", "0.55902183", "0.5589726", "0.554685", "0.55202645", "0.5518092...
0.62924904
2
SubstanceEC graph of the diverged core metabolism.
def divergedMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False) -> SubstanceEcGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism) childCoreMetabolism = self.childClade.coreMetabolism(majorityPercentageCo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def coreMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes) -> SubstanceEcGraph:\n graph = self.group.majorityEcGraph(majorityPercentage = majorityPercentageCoreMetabolism, noMultifunctional = excl...
[ "0.6751704", "0.60177904", "0.60164267", "0.590895", "0.59067005", "0.58751273", "0.5843088", "0.58061826", "0.56646645", "0.56605947", "0.5620607", "0.55881226", "0.55458206", "0.5473036", "0.5414878", "0.537738", "0.5358601", "0.5356833", "0.5347023", "0.534355", "0.5315393...
0.5925859
3
SubstanceEC graph of the unified core metabolisms. The lost metabolism of the parent is coloured in blue, the conserved metabolism of both in red, and the added metabolism of the child in pink. The colouring is realised by adding a 'colour' attribute to each edge. Nodes are not coloured.
def unifiedMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False) -> SubstanceEcGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism) childCoreMetabolism = self.childClade.coreMetabolism(majorityPercentageCor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def divergedMetabolism(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False) -> SubstanceEcGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majorityPerce...
[ "0.66438884", "0.653458", "0.6519239", "0.64919496", "0.63315225", "0.63292813", "0.6266335", "0.6138613", "0.60851824", "0.60435796", "0.59619445", "0.5899194", "0.5817667", "0.5779564", "0.57427", "0.57339853", "0.5727987", "0.5700911", "0.5666281", "0.563707", "0.5624694",...
0.6774996
0
SubstanceEnzyme graph derived from the unified core metabolisms. The lost metabolism of the parent is coloured in blue, the conserved metabolism of both in red, and the added metabolism of the child in pink. The colouring is realised by adding a 'colour' attribute to each edge. Nodes are not coloured.
def unifiedMetabolismEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False) -> SubstanceEnzymeGraph: parentGraph = self.parentClade.coreMetabolismEnzymes(majorityPercentageCoreMetabolism) childGraph = self.childClade.coreMetabolismEnzymes(majorityPercen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unifiedMetabolismNeofunctionalisedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False) -> SubstanceEnzymeGraph: \n parentNeofunctionalised = self.parentClade.neofunctionalisedEnzymes(majorityPercentageCoreMetabolism, colour = False)\n ch...
[ "0.6252327", "0.60120577", "0.5928985", "0.5926421", "0.58765775", "0.58404446", "0.5823357", "0.58075684", "0.57982713", "0.5772567", "0.57336694", "0.5562557", "0.5510959", "0.54624", "0.5434476", "0.5418058", "0.5414687", "0.54030573", "0.54009295", "0.5381006", "0.5378098...
0.64225346
0
Two SubstanceEnzyme graphs of geneduplicated enzymes, derived from the conserved core metabolism. First, the conserved core metabolism is calculated. Then, the enzymes associated with the conserved EC numbers are extracted from the collective parent's and child's metabolism individually. Then, for parent and child, the...
def conservedMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False): conservedMetabolismEnzymes = self.conservedMetabolismEnzymes(majorityPercentageCoreMetabolism, colour = colour) parentGeneDuplicated = self.parentClade...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addedMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majorit...
[ "0.66521823", "0.64501685", "0.6347639", "0.62944245", "0.62218815", "0.6211035", "0.5993993", "0.5903329", "0.5869201", "0.5856222", "0.58459413", "0.5815877", "0.5802752", "0.57704216", "0.5740368", "0.567628", "0.5618934", "0.55103505", "0.5490561", "0.5435735", "0.5388179...
0.6191911
6
SubstanceEnzyme graph of geneduplicated enzymes, derived from the added core metabolism. First, the added core metabolism is calculated. Then, the enzymes associated with the added EC numbers are extracted from the child's enzyme metabolism.
def addedMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism) childCoreMetabolism = self.childClade.coreMetabolism(majorityPercen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addedMetabolismNeofunctionalisedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majo...
[ "0.67369306", "0.6330515", "0.6303329", "0.62048954", "0.6128838", "0.6119623", "0.6048695", "0.5975053", "0.5937219", "0.5809199", "0.57253855", "0.5707537", "0.56158155", "0.5594471", "0.55635613", "0.5519335", "0.5513304", "0.5461732", "0.53989816", "0.5391257", "0.5377590...
0.69637746
0
SubstanceEnzyme graph of geneduplicated enzymes, derived from the lost core metabolism. First, the lost core metabolism is calculated. Then, the enzymes associated with the added EC numbers are extracted from the parent's enzyme metabolism.
def lostMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism) childCoreMetabolism = self.childClade.coreMetabolism(majorityPercent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addedMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majorit...
[ "0.6755201", "0.6535308", "0.62986535", "0.62453306", "0.6057391", "0.60101473", "0.5982564", "0.5913863", "0.5899153", "0.5793252", "0.57070243", "0.56880486", "0.5584127", "0.5576912", "0.55608404", "0.5558294", "0.5490599", "0.5468845", "0.54171175", "0.54139686", "0.53863...
0.66248214
1
Two SubstanceEnzyme graphs of geneduplicated enzymes, derived from the diverged core metabolism. First, the diverged core metabolism is calculated. Then, the enzymes associated with the added EC numbers are extracted from the collective parent's and child's metabolism individually.
def divergedMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False): divergedMetabolismEnzymes = self.divergedMetabolismEnzymes(majorityPercentageCoreMetabolism, colour = colour) parentGeneDuplicated = self.parentClade.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addedMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majorit...
[ "0.6781583", "0.6486627", "0.63396204", "0.6203486", "0.6108755", "0.6007883", "0.59520006", "0.59370637", "0.59090215", "0.58419424", "0.5797574", "0.5780279", "0.5770737", "0.5715894", "0.5696853", "0.555999", "0.5557011", "0.55346835", "0.5528872", "0.5479832", "0.5477482"...
0.6241954
3
SubstanceEnzyme graph of geneduplicated enzymes, derived from the unified core metabolisms. The lost metabolism of the parent is coloured in blue, the conserved metabolism of both in red, and the added metabolism of the child in pink. The colouring is realised by adding a 'colour' attribute to each edge. Nodes are not ...
def unifiedMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False) -> SubstanceEnzymeGraph: parentGeneDuplicated = self.parentClade.geneDuplicatedEnzymes(majorityPercentageCoreMetabolism, colour = False) childGeneDuplicate...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unifiedMetabolismEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False) -> SubstanceEnzymeGraph:\n parentGraph = self.parentClade.coreMetabolismEnzymes(majorityPercentageCoreMetabolism)\n childGraph = self.childClade.coreMetabolismEnzymes(majorit...
[ "0.6744551", "0.6610802", "0.6297652", "0.6144678", "0.6123074", "0.59895116", "0.59827703", "0.59156704", "0.5911058", "0.58746463", "0.58439463", "0.5841829", "0.5766261", "0.57605356", "0.56579214", "0.5651781", "0.5634423", "0.5581046", "0.5564763", "0.5537896", "0.549665...
0.65293896
2
Pairs of geneduplicated enzymes, derived from the conserved core metabolism. First, the conserved core metabolism is calculated. Then, the enzymes associated with the conserved EC numbers are extracted from the collective parent's and child's metabolism individually. Then, for parent and child, the geneduplicated enzym...
def conservedMetabolismGeneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Tuple[Set[Tuple[Enzyme, Enzyme]]]: # get conserved metabolism conservedMetabolismEnzymes = self.conservedMetabolismEnzymes(majorityPercentageCoreMetabolism).getEnzymes() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def divergedMetabolismGeneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]:\n # get diverged metabolism\n divergedMetabolismEnzymes = self.divergedMetabolismEnzymes(majorityPercentageCoreMetabolism).getEnzymes()\n ...
[ "0.70549107", "0.69402546", "0.6706098", "0.6682713", "0.6562122", "0.64990956", "0.63584626", "0.6323621", "0.62530905", "0.61966795", "0.61394745", "0.6038204", "0.60298336", "0.5788429", "0.5784712", "0.56987387", "0.56817615", "0.56580746", "0.564051", "0.555223", "0.5536...
0.703319
1
Pairs of geneduplicated enzymes, derived from the added core metabolism. First, the added core metabolism is calculated. Then, the enzymes associated with the added EC numbers are extracted from the child's enzyme metabolism. Then the geneduplicated enzymes are calculated. Finally, the geneduplicated enzyme pairs of th...
def addedMetabolismGeneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]: # get added metabolism addedMetabolismEnzymes = self.addedMetabolismEnzymes(majorityPercentageCoreMetabolism).getEnzymes() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addedMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majorit...
[ "0.6991242", "0.6888838", "0.6858794", "0.66786027", "0.64065367", "0.6397439", "0.63523155", "0.6340977", "0.6323248", "0.6269163", "0.61335814", "0.61182314", "0.590612", "0.58313143", "0.58045435", "0.5669029", "0.5563966", "0.54859126", "0.54399043", "0.5420107", "0.54190...
0.6781111
3
Pairs of geneduplicated enzymes, derived from the lost core metabolism. First, the lost core metabolism is calculated. Then, the enzymes associated with the added EC numbers are extracted from the parent's enzyme metabolism. Then the geneduplicated enzymes are calculated. Finally, the geneduplicated enzyme pairs of the...
def lostMetabolismGeneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]: # get added metabolism lostMetabolismEnzymes = self.lostMetabolismEnzymes(majorityPercentageCoreMetabolism).getEnzymes() # get gen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def divergedMetabolismGeneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]:\n # get diverged metabolism\n divergedMetabolismEnzymes = self.divergedMetabolismEnzymes(majorityPercentageCoreMetabolism).getEnzymes()\n ...
[ "0.67933184", "0.6792436", "0.6789464", "0.6684693", "0.6612867", "0.6583527", "0.6384082", "0.63719314", "0.6275588", "0.61921793", "0.61527735", "0.61174685", "0.59615004", "0.5912156", "0.58016247", "0.57320845", "0.5670212", "0.5606411", "0.55643255", "0.5555347", "0.5532...
0.6283631
8
Pairs of geneduplicated enzymes, derived from the diverged core metabolism. First, the diverged core metabolism is calculated. Then, the enzymes associated with the added EC numbers are extracted from the collective parent's and child's metabolism individually. Then, for parent and child, the geneduplicated enzyme pair...
def divergedMetabolismGeneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]: # get diverged metabolism divergedMetabolismEnzymes = self.divergedMetabolismEnzymes(majorityPercentageCoreMetabolism).getEnzymes() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unifiedMetabolismGeneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]: \n parentGeneDuplicated = self.parentClade.geneDuplicatedEnzymePairs(majorityPercentageCoreMetabolism)\n childGeneDuplicated = self.ch...
[ "0.68335646", "0.6791156", "0.6528488", "0.647306", "0.6471037", "0.6426987", "0.6238266", "0.6163832", "0.61556786", "0.61163086", "0.60860956", "0.59248537", "0.5918993", "0.5840949", "0.58134377", "0.5805267", "0.5802707", "0.5529467", "0.5491607", "0.54788053", "0.5477662...
0.7014142
0
Pairs of geneduplicated enzymes, derived from the unified core metabolisms.
def unifiedMetabolismGeneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]: parentGeneDuplicated = self.parentClade.geneDuplicatedEnzymePairs(majorityPercentageCoreMetabolism) childGeneDuplicated = self.childClad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def geneDuplicatedEnzymePairs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> Set[Tuple[Enzyme, Enzyme]]:\n \n \n enzymes = self.coreMetabolismEnzymes(majorityPercentageCoreMetabolism).getEnzymes()\n geneDuplicationModel = SimpleGeneDuplication\n ...
[ "0.66328585", "0.6220458", "0.61605203", "0.59667987", "0.59406346", "0.59398246", "0.592409", "0.58372545", "0.58349013", "0.5752567", "0.5708292", "0.5680166", "0.5635978", "0.55386114", "0.5525389", "0.548303", "0.5480818", "0.5471715", "0.54622984", "0.54544353", "0.54533...
0.6404736
1
Two SubstanceEnzyme graphs of neofunctionalised enzymes, derived from the conserved core metabolism. First, the conserved core metabolism is calculated. Then, the enzymes associated with the conserved EC numbers are extracted from the collective parent's and child's metabolism individually. Then, for parent and child, ...
def conservedMetabolismNeofunctionalisedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False): conservedMetabolismEnzymes = self.conservedMetabolismEnzymes(majorityPercentageCoreMetabolism, colour = colour) parentNeofunctionalised= self.parent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addedMetabolismGeneDuplicatedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majorit...
[ "0.64256305", "0.63676214", "0.622601", "0.61938006", "0.6062135", "0.6010304", "0.6010293", "0.60097474", "0.59877676", "0.5869369", "0.5815081", "0.5781504", "0.5677861", "0.5672876", "0.5646275", "0.5618267", "0.557111", "0.5519256", "0.5493546", "0.5470436", "0.54425895",...
0.5749789
12
SubstanceEnzyme graph of neofunctionalised enzymes, derived from the added core metabolism.
def addedMetabolismNeofunctionalisedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism) childCoreMetabolism = self.childClade.coreMetabolism(majorityPer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def collectiveMetabolismEnzymes(self, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes) -> SubstanceEnzymeGraph:\n graph = self.group.collectiveEnzymeGraph(noMultifunctional = excludeMultifunctionalEnzymes, keepOnHeap = True)\n graph.name = 'Collective metabolism enzymes ' + ' '.j...
[ "0.62832594", "0.6032561", "0.59919894", "0.5936504", "0.58536375", "0.5780906", "0.5709709", "0.56339985", "0.56321144", "0.561988", "0.56182474", "0.5617661", "0.5614264", "0.5597388", "0.5581094", "0.5547819", "0.5524394", "0.54902864", "0.5435478", "0.54295534", "0.534995...
0.6251779
1
SubstanceEnzyme graph of neofunctionalised enzymes, derived from the lost core metabolism.
def lostMetabolismNeofunctionalisedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism) childCoreMetabolism = self.childClade.coreMetabolism(majorityPerc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addedMetabolismNeofunctionalisedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majo...
[ "0.619215", "0.61078405", "0.59768206", "0.58706874", "0.5782916", "0.5741197", "0.57312053", "0.5701871", "0.56801665", "0.56514645", "0.56266373", "0.56028616", "0.56004995", "0.55960053", "0.5593098", "0.55900544", "0.5576522", "0.55513394", "0.5510709", "0.54889655", "0.5...
0.61164635
1
Two SubstanceEnzyme graphs of neofunctionalised enzymes, derived from the diverged core metabolism.
def divergedMetabolismNeofunctionalisedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False): divergedMetabolismEnzymes = self.divergedMetabolismEnzymes(majorityPercentageCoreMetabolism, colour = colour) parentNeofunctionalised = self.parentCl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addedMetabolismNeofunctionalisedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism) -> SubstanceEnzymeGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetabolism)\n childCoreMetabolism = self.childClade.coreMetabolism(majo...
[ "0.59838927", "0.589952", "0.5832633", "0.56326586", "0.56310344", "0.5626422", "0.56225055", "0.55621135", "0.54962337", "0.54747903", "0.54667443", "0.5462511", "0.54569364", "0.53659475", "0.53473836", "0.5333074", "0.5322089", "0.53175056", "0.5287885", "0.5286352", "0.52...
0.5563202
7
SubstanceEnzyme graph of neofunctionalised enzymes, derived from the unified core metabolisms.
def unifiedMetabolismNeofunctionalisedEnzymes(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, colour = False) -> SubstanceEnzymeGraph: parentNeofunctionalised = self.parentClade.neofunctionalisedEnzymes(majorityPercentageCoreMetabolism, colour = False) childNeof...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def collectiveMetabolismEnzymes(self, excludeMultifunctionalEnzymes = defaultExcludeMultifunctionalEnzymes) -> SubstanceEnzymeGraph:\n graph = self.group.collectiveEnzymeGraph(noMultifunctional = excludeMultifunctionalEnzymes, keepOnHeap = True)\n graph.name = 'Collective metabolism enzymes ' + ' '.j...
[ "0.617909", "0.61629224", "0.5923444", "0.5919812", "0.59115475", "0.58200246", "0.56218606", "0.56167334", "0.55720574", "0.5556307", "0.5541195", "0.5539453", "0.5454966", "0.54378295", "0.54142547", "0.541205", "0.5399196", "0.5363297", "0.5334433", "0.52926433", "0.528798...
0.6051317
2
Two SubstanceEC graphs of "neofunctionalised" EC numbers, derived from the conserved core metabolism. First, the conserved core metabolism is calculated. Then, the enzymes associated with the conserved EC numbers are extracted from the collective parent's and child's metabolism individually. Then, for parent and child,...
def conservedMetabolismNeofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, colour = False): conservedMetabolism = self.conservedMetabolism(majorityPercentageCoreMetabolism) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addedMetabolismNeofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation) -> SubstanceEcGraph:\n parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCo...
[ "0.64958113", "0.6374259", "0.62749887", "0.6169494", "0.6111205", "0.5938053", "0.5924793", "0.58652455", "0.57341826", "0.56797636", "0.5670327", "0.56631213", "0.56203586", "0.5609623", "0.55797595", "0.5485678", "0.5472537", "0.54486245", "0.5443317", "0.5437867", "0.5432...
0.63496363
2
SubstanceEC graph of "neofunctionalised" EC numbers, derived from the added core metabolism.
def addedMetabolismNeofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation) -> SubstanceEcGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMeta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unifiedMetabolismNeofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, colour = False) -> SubstanceEcGraph: \n parentNeofunctionalised = self.parentClade.neofun...
[ "0.6423988", "0.6371142", "0.63001156", "0.62050164", "0.6046099", "0.5791749", "0.5715767", "0.55602425", "0.5521478", "0.5479102", "0.54652435", "0.5458608", "0.54561746", "0.54515", "0.5428723", "0.5406992", "0.53999406", "0.53977454", "0.52835554", "0.5282024", "0.526819"...
0.65178627
0
SubstanceEC graph of "neofunctionalised" EC numbers, derived from the lost core metabolism.
def lostMetabolismNeofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation) -> SubstanceEcGraph: parentCoreMetabolism = self.parentClade.coreMetabolism(majorityPercentageCoreMetab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unifiedMetabolismNeofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, colour = False) -> SubstanceEcGraph: \n parentNeofunctionalised = self.parentClade.neofun...
[ "0.62724626", "0.6260132", "0.6220738", "0.62084836", "0.61106306", "0.5663413", "0.5543432", "0.5502784", "0.5501765", "0.5500046", "0.54863024", "0.54842806", "0.54061544", "0.5403373", "0.5400027", "0.53941774", "0.5352519", "0.5325761", "0.53250736", "0.53149056", "0.5311...
0.61469126
4
Two SubstanceEC graphs of "neofunctionalised" EC numbers, derived from the diverged core metabolism.
def divergedMetabolismNeofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, colour = False): divergedMetabolism = self.divergedMetabolism(majorityPercentageCoreMetabolism, col...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unifiedMetabolismNeofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, colour = False) -> SubstanceEcGraph: \n parentNeofunctionalised = self.parentClade.neofun...
[ "0.6214158", "0.60957927", "0.59478533", "0.58485806", "0.57059896", "0.5507641", "0.5501157", "0.54937583", "0.54590195", "0.5301212", "0.52908236", "0.52827936", "0.5239076", "0.5235464", "0.5215645", "0.52147555", "0.52099645", "0.5206502", "0.5192779", "0.5181326", "0.517...
0.61443126
1
SubstanceEC graph of "neofunctionalised" EC numbers, derived from the unified core metabolisms.
def unifiedMetabolismNeofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, colour = False) -> SubstanceEcGraph: parentNeofunctionalised = self.parentClade.neofunctiona...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neofunctionalisedECs(self, majorityPercentageCoreMetabolism = defaultMajorityPercentageCoreMetabolism, majorityPercentageNeofunctionalisation = defaultMajorityPercentageNeofunctionalisation, colour = False, eValue = defaultEValue, considerOnlyECs = None) -> SubstanceEcGraph:\n # get neofunctionalisation...
[ "0.6325263", "0.6321526", "0.62352514", "0.6154268", "0.6030487", "0.5650482", "0.5579346", "0.55359584", "0.55139494", "0.5471832", "0.5470082", "0.54345083", "0.54121524", "0.53877515", "0.53301024", "0.53161114", "0.5314621", "0.5297274", "0.5284816", "0.5276731", "0.52697...
0.6479725
0
Two clades in NCBI taxonomy, 'child' is assumed younger and must be nested somewhere inside 'parent'.
def __init__(self, parent, child, excludeUnclassified = defaultExcludeUnclassified): # read first NCBI name from Clade object, if necessary if isinstance(parent, Clade): parentNCBIname = parent.ncbiNames[0] elif not isinstance(parent, str): # must be iterable, else fail ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, parent, child, excludeUnclassified = defaultExcludeUnclassified, oneOrganismPerSpecies = defaultOneOrganismPerSpecies):\n # read NCBI names from Clade object, if necessary\n if isinstance(parent, Clade):\n self.parentClade = parent\n else:\n self.parent...
[ "0.5975638", "0.58271253", "0.5484291", "0.5396265", "0.5390652", "0.53713834", "0.53584284", "0.53490835", "0.5338156", "0.53251886", "0.5263821", "0.5227132", "0.51992923", "0.5184101", "0.51213396", "0.5080763", "0.50803787", "0.5078497", "0.50769305", "0.5075885", "0.5074...
0.68073165
0
Placeholders for input NB images are expressed in terms of vector and not matrices.
def main(restore_save=False): x = tf.placeholder(tf.float32, shape=[None, 784]) # Placeholder for targets targets = tf.placeholder(tf.float32, shape=[None, 10]) # Placeholder for discerning train/eval mode is_training = tf.placeholder(dtype=tf.bool) # Define global step to indicize checkpoint...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def logits_placeholder(self):", "def neural_net_image_input(image_shape):\n return tf.placeholder(tf.float32, shape=[None]+list(image_shape), name=\"x\")", "def neural_net_image_input(image_shape):\n # TODO: Implement Function\n n_input_1 = image_shape[0]\n n_input_2 = image_shape[1]\n n_input_3...
[ "0.6088899", "0.59365016", "0.5740839", "0.573186", "0.5731295", "0.5677845", "0.56754416", "0.56236225", "0.55761564", "0.5560068", "0.5500983", "0.5489259", "0.5475015", "0.5471705", "0.54692245", "0.54186827", "0.5388585", "0.53639835", "0.5345162", "0.5341476", "0.5339761...
0.0
-1
Update the current file metadata with component versions on the database
def checkVersions(): item = Item(fromScene=True) for ns, componentMData in item.components.iteritems(): if ns == 'cam': # todo tratar versoes da camera continue if componentMData['assembleMode'] == 'reference': refComponent = ReferenceComponent(ns, component...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_version(self, version):\n self._metadata['version'] = version\n\n if self._type == '.json':\n with open(self._filename, 'w') as f:\n f.write(json.dumps(self._metadata, indent=2))\n\n dof_filename = os.path.join(self.path, self.name + '.dof')\n if os....
[ "0.6678135", "0.6618736", "0.6559671", "0.65394354", "0.6385025", "0.6356499", "0.627543", "0.61180854", "0.6045036", "0.60443014", "0.6028333", "0.601643", "0.59997", "0.59620434", "0.5956937", "0.59510905", "0.5949729", "0.59445655", "0.59294254", "0.5921162", "0.591343", ...
0.6078741
8
Compare the current scene references versions with metadata and update as needed
def sceneRefCheck(silent=False): uptodate = True logger.debug('init sceneChecking...') currentProject = database.getCurrentProject() projName = pm.fileInfo.get('projectName') if currentProject != projName: logger.error('This file is from a project different from the current project') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def checkVersions():\n item = Item(fromScene=True)\n\n for ns, componentMData in item.components.iteritems():\n if ns == 'cam':\n # todo tratar versoes da camera\n continue\n\n if componentMData['assembleMode'] == 'reference':\n refComponent = ReferenceComponent...
[ "0.6834863", "0.6241142", "0.6191124", "0.6186932", "0.6126859", "0.5808705", "0.57901436", "0.5686815", "0.5674683", "0.56705105", "0.5636066", "0.5609275", "0.55931807", "0.553265", "0.54316425", "0.5389392", "0.53655267", "0.52925307", "0.52915853", "0.52761626", "0.525988...
0.6645423
1
Renvoie la liste des noeuds du graph
def getNoeuds(self) -> list: return self._noeuds
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def graph(self):\n ...", "def _get_full_graph(self):", "def populate_graph(self):", "def print_list_of_nodes(self):\n\n for node in self.list_empty_nodes:\n print(\"--------------------------\")\n print(\"Node num : \"+str(node.num))\n print(\"Node distance from...
[ "0.61656684", "0.6132704", "0.5961668", "0.5949655", "0.5797799", "0.5743925", "0.57238185", "0.57080424", "0.5702499", "0.56886774", "0.5665844", "0.5662841", "0.55272645", "0.5525712", "0.55255455", "0.5511591", "0.5497783", "0.5492539", "0.54852766", "0.54834795", "0.54732...
0.59119767
4
Renvoie la liste des Arrettes du graph
def getArrettes(self) -> list: return self._arrettes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def graph(self):\n ...", "def populate_graph(self):", "def _get_full_graph(self):", "def gen_graph(self):", "def plot_graph(self) -> None:", "def list(self):", "def allGraphs(date):\n g = getGraph()\n for uri, label, filename in subgraphs(date):\n if not label:\n label = ...
[ "0.6653496", "0.6502852", "0.61809665", "0.5993094", "0.59424686", "0.57306266", "0.5700172", "0.5697255", "0.5596236", "0.5589515", "0.55849475", "0.55651873", "0.5546893", "0.5532899", "0.55003935", "0.5471013", "0.54704064", "0.5469078", "0.5429392", "0.54259014", "0.54221...
0.574315
5
Normalizes string, converts to lowercase, removes nonalpha characters, and converts spaces to hyphens. From Django's "django/template/defaultfilters.py".
def _slugify(value): import unicodedata if not isinstance(value, unicode): value = unicode(value) value = unicodedata.normalize('NFKD', value).encode('ascii', 'ignore') value = unicode(_slugify_strip_re.sub('', value).strip().lower()) return _slugify_hyphenate_re.sub('-', value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sanitize(str):\n res = str.lower()\n return res.replace(' ', '-')", "def normalize(s):\n s = replace_whitespace(s)\n s = remove_dashes(s)\n s = s.lower()\n return s", "def sanitize(string):\n retval = string.lower()\n retval = re.sub(r\"[^\\w\\s]\", '', retval)\n retval = re.sub(...
[ "0.8050005", "0.7715769", "0.7337892", "0.7264596", "0.7262135", "0.7178926", "0.7171534", "0.714335", "0.71391594", "0.70830053", "0.7070548", "0.70457333", "0.70426863", "0.70101064", "0.70101064", "0.6989748", "0.69828415", "0.69823", "0.69683266", "0.69340587", "0.6910592...
0.6851728
28
Read a .plist file from filepath. Return the unpacked root object (which usually is a dictionary).
def readPlist(filepath): plistData = NSData.dataWithContentsOfFile_(filepath) dataObject, plistFormat, error = NSPropertyListSerialization.propertyListFromData_mutabilityOption_format_errorDescription_(plistData, NSPropertyListMutableContainers, None, None) if error: errmsg = "%s in file %s" % (error, filepath) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _read_plist(path: str, format: plistlib.PlistFormat) -> dict:\n if not os.path.isfile(path):\n raise ValueError(f'File {path} does not exist')\n\n with open(path, 'rb') as file:\n return plistlib.load(file, fmt=format, dict_type=dict)", "def _read_plist(self, filename):\n file_path...
[ "0.7377023", "0.7077552", "0.7020647", "0.70009124", "0.69380563", "0.6635612", "0.66037655", "0.6400661", "0.6191319", "0.60980314", "0.59968185", "0.5973855", "0.5956443", "0.5919474", "0.5916405", "0.59139293", "0.58797735", "0.58763933", "0.58301824", "0.5828497", "0.5816...
0.76269853
0
Print out the end status of the game when the server closes the connection.
def server_closed_connection(self): print("Game Over!") if self._winner: print("Player {} wins!".format(self._winner)) else: print("Draw!")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_connection_end() -> None:\r\n print(\"Connection lost with G-Earth\")\r\n print()", "def endSession(self):\n if(self.verb >= DLS_VERB_HIGH):\n print \"--Ending session with %s (no action)\" % (self.server)", "def end(self):\n winners = mafia.str_player_list(self.game.winners())\...
[ "0.7442786", "0.7357788", "0.70812464", "0.7068161", "0.6758912", "0.67495376", "0.6671296", "0.6662621", "0.66588444", "0.6629597", "0.6612989", "0.6597301", "0.658959", "0.6576882", "0.657107", "0.65640134", "0.65556294", "0.64894456", "0.6479372", "0.64617205", "0.64595443...
0.78706425
0
Find the next empty square in the board.
def _find_empty_cell(self): for r, row in enumerate(self._board): for c, cell in enumerate(row): if cell is None: return r, c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_next_empty_cell(self):\n for row in range(len(self.grid)):\n for col in range(len(self.grid[0])):\n if self.grid[row][col] == 0:\n return (row, col)\n return None", "def find_empty_squares(board):\n for i in range(len(board)):\n for j i...
[ "0.771726", "0.76045936", "0.759847", "0.74498457", "0.72153336", "0.70994276", "0.6846962", "0.67881215", "0.67627925", "0.67542005", "0.6752573", "0.6666043", "0.6641799", "0.66194654", "0.6548566", "0.6522966", "0.6478559", "0.64705473", "0.6379805", "0.63471836", "0.63375...
0.7049689
6
Handle a received message from the server.
def message_received_from_server(self, message): if message["type"] == "state": self._board = message["board"] self._winner = message["winner"] elif message["type"] == "turn": row, col = self._find_empty_cell() self.send_message_to_server({ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def handle(self, message):\n print(\"You received a message:\")\n print(message)\n # Overwrite this function to do something with the message!", "def received_message(self, m):\n self.receiver.handle_message(m)", "def handle(self):\n try:\n # Wait for data\n ...
[ "0.81080824", "0.7629044", "0.7614227", "0.759747", "0.7582353", "0.7567339", "0.738713", "0.7327663", "0.72030395", "0.7197576", "0.71963334", "0.7182009", "0.7154054", "0.7151546", "0.7145494", "0.7141526", "0.71328634", "0.7116805", "0.7099164", "0.70977116", "0.7085751", ...
0.6640116
55
Clean AFOS and friends
def main(): pgconn = get_dbconn("afos") acursor = pgconn.cursor() # reflect changes to docs/datasets/afos.md # RRM removed due to request acursor.execute( "delete from products WHERE " "entered < ('YESTERDAY'::date - '7 days'::interval) and " "entered > ('YESTERDAY'::date - ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cleaning (data):", "def clean(_context):", "def clean(c):", "def cleanup(self):\n for residue in self.debumper.biomolecule.residues:\n if not isinstance(residue, aa.Amino):\n continue\n if residue.name == \"GLH\" or \"GLH\" in residue.patches:\n ...
[ "0.6322474", "0.63047546", "0.6143992", "0.6081225", "0.6070681", "0.5969005", "0.5901452", "0.5889662", "0.584422", "0.58323973", "0.5830357", "0.5830357", "0.58122694", "0.5788065", "0.57749754", "0.57663184", "0.5693208", "0.5692589", "0.56887585", "0.56775504", "0.5664054...
0.0
-1
Track a download in Piwik
def track_download_request(download_url, download_title): from indico_piwik.plugin import PiwikPlugin if not download_url: raise ValueError("download_url can't be empty") if not download_title: raise ValueError("download_title can't be empty") request = PiwikRequest(server_url=PiwikPlu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def download(self):\n pass", "def download(self):\n pass", "def download(self, download_request):\n raise NotImplementedError", "def download_progress(self, cloud_file, size, downloaded):", "def dowload_vt():\n print get_date_time_now() + \" ==> Download VT Samples started!\"\n p...
[ "0.62857395", "0.62857395", "0.6190119", "0.61862576", "0.60990036", "0.60830104", "0.59435177", "0.5895922", "0.58797216", "0.58775985", "0.58351547", "0.5832015", "0.5803117", "0.579149", "0.5750479", "0.5704647", "0.5701332", "0.5676492", "0.5647217", "0.5612867", "0.56082...
0.7677783
0
T.__new__(S, ...) > a new object with type S, a subtype of T
def __new__(S, *more): # real signature unknown; restored from __doc__ pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __new__(cls):\n return object.__new__(cls)", "def __new__(cls):\n return object.__new__(cls)", "def __newobj__(cls, *args):\n return cls.__new__(cls, *args)", "def __new__(S, *more): # real signature unknown; restored from __doc__\n pass", "def __new__(S, *more): # real signatur...
[ "0.72864395", "0.72864395", "0.7262999", "0.7261351", "0.7261351", "0.7261351", "0.7261351", "0.7228152", "0.72100246", "0.72100246", "0.66210115", "0.66210115", "0.66210115", "0.66210115", "0.66210115", "0.66210115", "0.6530774", "0.6427577", "0.6424623", "0.64146465", "0.64...
0.73813504
0
Create the test server application instance.
def create_app(self): coverage.process_startup() app = create_test_app() selenium_server_url = "http://{}:{}/wd/hub".format( os.environ.get("{{ cookiecutter.project_slug|upper }}_SELENIUM_HOST", "chrome"), os.environ.get("{{ cookiecutter.project_slug|upper }}_SELENIUM_POR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_app(test_config=None):\n app = Flask(__name__, instance_relative_config=True)\n app.config.from_mapping(\n SECRET_KEY=os.environ.get('FLASK_SECRET_KEY', 'dev'),\n # SQLALCHEMY_DATABASE_URI='sqlite:////' + os.path.join(app.instance_path, 'app.sqlite'),\n SQLALCHEMY_DATABASE_URI...
[ "0.7417531", "0.73058623", "0.7296637", "0.7289872", "0.72620034", "0.72145504", "0.71641845", "0.7141066", "0.7107825", "0.71020865", "0.7096506", "0.70654595", "0.70639825", "0.704083", "0.70407116", "0.7004533", "0.6990313", "0.6979766", "0.69694114", "0.6966402", "0.69436...
0.7206358
6
Close the browser, and clean up the database.
def tearDown(self): self.browser.quit() clean_db()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def close(self):\n\t\tself.db.close()", "def close(self):\n self.db.close()", "def close_db():\n if ( not g.get( 'db' ) is None ):\n g.db.dispose()\n\n g.db = None", "def disconnect(self):\n self.db.close()", "def close(self):\n self.db.remove()\n self.engine.dispos...
[ "0.77067506", "0.7608747", "0.7564536", "0.748835", "0.7487941", "0.74589837", "0.7395597", "0.73916876", "0.73889124", "0.73546255", "0.7339338", "0.73319304", "0.7327354", "0.7327354", "0.7327354", "0.73114276", "0.7295338", "0.72949415", "0.7287185", "0.72680247", "0.72311...
0.7449147
6
Returns the names of all qualities with exitsting expert knowledge.
def get_qualities_with_expert_knowledge(self) -> List[str]: return sorted(list(set([q for _, q in self.expert_knowledge])))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_expert_knowledge_for_qualities(self, qualities: List[str]) -> List[str]:\n expert_knowledge = reduce(\n lambda res, q: res | set(p for p, _q in self.expert_knowledge if _q == q),\n qualities,\n set()\n )\n return sorted(list(expert_knowledge))", "def ...
[ "0.6796296", "0.6399958", "0.5745922", "0.570581", "0.56431264", "0.5579781", "0.5524196", "0.5486619", "0.5414175", "0.5371931", "0.5336818", "0.5334099", "0.5322436", "0.53192633", "0.5316867", "0.5283304", "0.5277264", "0.527555", "0.52340245", "0.5215532", "0.5200703", ...
0.68818367
0
Returns the names of all parameters with exitsting expert knowledge.
def get_parameters_with_expert_knowledge(self) -> List[str]: return sorted(list(set([p for p, _ in self.expert_knowledge])))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def parameter_names(self) -> List[str]:", "def _get_fitted_param_names(self):\n return self._fitted_param_names", "def get_hyperparameter_names():\n params = ['mu', 'nu', 'r', 's']\n return params", "def get_parameter_names(self):\n parNames = []\n # for par in self.variabl...
[ "0.6681219", "0.65302336", "0.6523821", "0.6485351", "0.64587325", "0.64377654", "0.63435304", "0.63268703", "0.6247378", "0.62124157", "0.6184946", "0.61841184", "0.6173412", "0.6156799", "0.61424565", "0.6138973", "0.6092514", "0.6074142", "0.6068428", "0.60556334", "0.6051...
0.7096718
0
Returns the names of all qualities that are affected by the given parameter.
def get_qualities_affected_by_paramter(self, parameter: str) -> List[str]: return [q for p, q in self.correlating_pq_tuples if p == parameter]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_parameters_affecting_qualites(self, qualities: List[str]) -> List[str]:\n parameters = reduce(\n lambda res, q: res | set(self.get_parameters_affecting_quality(q)),\n qualities,\n set()\n )\n return sorted(list(parameters))", "def get_parameters_affec...
[ "0.7138901", "0.65434414", "0.60828495", "0.5970741", "0.5706705", "0.56861335", "0.5615085", "0.5553577", "0.5414541", "0.53965795", "0.5352581", "0.5300973", "0.52954173", "0.52879333", "0.5286698", "0.5282407", "0.5249492", "0.5248632", "0.52475625", "0.52351964", "0.52118...
0.7769609
0
Returns the names of all parameters are affecting the given quality.
def get_parameters_affecting_quality(self, quality: str) -> List[str]: return [p for p, q in self.correlating_pq_tuples if q == quality]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_parameters(self, quality):\n if (quality.upper() == 'NAV') or (quality.upper() == 'NAVIGATION'):\n return self._sensor_param_dict['navigation'].copy()\n \n elif (quality.upper() == 'TAC') or (quality.upper() == 'TACTICAL'):\n return self._sensor_param_dict['tactic...
[ "0.6934809", "0.67903876", "0.6167672", "0.61589646", "0.6091067", "0.6062602", "0.59788996", "0.59663045", "0.5930198", "0.5925212", "0.5914016", "0.587946", "0.57363737", "0.5702479", "0.57009995", "0.57009995", "0.5699666", "0.5673059", "0.5664768", "0.5636903", "0.5629475...
0.8470386
0
Returns the names of all parameters are affecting the given qualities.
def get_parameters_affecting_qualites(self, qualities: List[str]) -> List[str]: parameters = reduce( lambda res, q: res | set(self.get_parameters_affecting_quality(q)), qualities, set() ) return sorted(list(parameters))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_parameters_affecting_quality(self, quality: str) -> List[str]:\n return [p for p, q in self.correlating_pq_tuples if q == quality]", "def get_qualities_affected_by_paramter(self, parameter: str) -> List[str]:\n return [q for p, q in self.correlating_pq_tuples if p == parameter]", "def par...
[ "0.684624", "0.6697432", "0.64668196", "0.6275496", "0.62012315", "0.60170823", "0.5992412", "0.597497", "0.5971461", "0.5962293", "0.5953351", "0.5907317", "0.58813965", "0.5875759", "0.58324844", "0.57914823", "0.5765543", "0.57585037", "0.5748246", "0.5748246", "0.5661398"...
0.82784075
0
Returns the names of all parameters that are expert knowledge of the given qualities.
def get_expert_knowledge_for_qualities(self, qualities: List[str]) -> List[str]: expert_knowledge = reduce( lambda res, q: res | set(p for p, _q in self.expert_knowledge if _q == q), qualities, set() ) return sorted(list(expert_knowledge))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_parameters_affecting_qualites(self, qualities: List[str]) -> List[str]:\n parameters = reduce(\n lambda res, q: res | set(self.get_parameters_affecting_quality(q)),\n qualities,\n set()\n )\n return sorted(list(parameters))", "def get_parameters_with_...
[ "0.7242944", "0.6727106", "0.6571987", "0.63019365", "0.6018897", "0.60036373", "0.57837", "0.57691544", "0.5760132", "0.5750516", "0.5735969", "0.5735225", "0.56694657", "0.56694657", "0.56474066", "0.56144816", "0.5601561", "0.55747986", "0.55496305", "0.5520627", "0.551223...
0.6919965
1
Returns the names of all qualties that are expert knowledge of the given parameter.
def get_expert_knowledge_for_parameter(self, parameter: str) -> List[str]: expert_knowledge = [q for (p, q) in self.expert_knowledge if p == parameter] return sorted(list(set(expert_knowledge)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_qualities_affected_by_paramter(self, parameter: str) -> List[str]:\n return [q for p, q in self.correlating_pq_tuples if p == parameter]", "def get_qualities_with_expert_knowledge(self) -> List[str]:\n return sorted(list(set([q for _, q in self.expert_knowledge])))", "def get_expert_knowl...
[ "0.69750583", "0.6972947", "0.6572471", "0.6532671", "0.6255699", "0.62491757", "0.5842264", "0.5311929", "0.52768415", "0.5177957", "0.5048739", "0.50431305", "0.502833", "0.49590343", "0.49437335", "0.4934118", "0.49310294", "0.49303398", "0.49248543", "0.4907331", "0.48799...
0.7195483
0
method tests timetable records in STATE_EMBRYO state
def test_state_embryo(self): self.pipeline_real.insert_uow = then_return_uow pipeline = spy(self.pipeline_real) job_record = get_job_record(job.STATE_EMBRYO, TEST_PRESET_TIMEPERIOD, PROCESS_SITE_HOURLY) pipeline.ma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_preset_timeperiod_state_in_progress(self):\n when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True)\n uow_dao_mock = mock(UnitOfWorkDao)\n when(uow_dao_mock).get_one(any()).thenReturn(create_unit_of_work(PROCESS_UNIT_TEST, 0, 1, None))\n self....
[ "0.6052409", "0.60238993", "0.60199136", "0.5990552", "0.59654564", "0.59051305", "0.58771414", "0.587141", "0.5824163", "0.57776195", "0.575167", "0.57320946", "0.57115203", "0.57089746", "0.57080287", "0.56987756", "0.5684115", "0.5668643", "0.564905", "0.56462383", "0.5624...
0.68013006
0
method tests timetable records in STATE_EMBRYO state
def test_duplicatekeyerror_state_embryo(self): self.pipeline_real.insert_uow = then_raise pipeline = spy(self.pipeline_real) job_record = get_job_record(job.STATE_EMBRYO, TEST_PRESET_TIMEPERIOD, PROCESS_SITE_HOURLY) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_state_embryo(self):\n self.pipeline_real.insert_uow = then_return_uow\n pipeline = spy(self.pipeline_real)\n\n job_record = get_job_record(job.STATE_EMBRYO,\n TEST_PRESET_TIMEPERIOD,\n PROCESS_SITE_HOURLY)\n\n ...
[ "0.68013006", "0.6052409", "0.60238993", "0.60199136", "0.5990552", "0.59654564", "0.59051305", "0.58771414", "0.587141", "0.5824163", "0.57776195", "0.575167", "0.57320946", "0.57115203", "0.57089746", "0.57080287", "0.5684115", "0.5668643", "0.564905", "0.56462383", "0.5624...
0.56987756
16
method tests timetable records in STATE_IN_PROGRESS state
def test_future_timeperiod_state_in_progress(self): when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True) uow_dao_mock = mock(UnitOfWorkDao) when(uow_dao_mock).get_one(any()).thenReturn(create_unit_of_work(PROCESS_UNIT_TEST, 0, 1, None)) self.pipeline_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_preset_timeperiod_state_in_progress(self):\n when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True)\n uow_dao_mock = mock(UnitOfWorkDao)\n when(uow_dao_mock).get_one(any()).thenReturn(create_unit_of_work(PROCESS_UNIT_TEST, 0, 1, None))\n self....
[ "0.71193224", "0.6860334", "0.66941416", "0.628547", "0.6147146", "0.6099557", "0.60727316", "0.59782106", "0.59703326", "0.59561163", "0.58597606", "0.5858871", "0.5750034", "0.57215893", "0.57205486", "0.5681524", "0.5675636", "0.56590813", "0.5616347", "0.56143284", "0.558...
0.7257185
0
method tests timetable records in STATE_IN_PROGRESS state
def test_preset_timeperiod_state_in_progress(self): when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True) uow_dao_mock = mock(UnitOfWorkDao) when(uow_dao_mock).get_one(any()).thenReturn(create_unit_of_work(PROCESS_UNIT_TEST, 0, 1, None)) self.pipeline_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_future_timeperiod_state_in_progress(self):\n when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True)\n uow_dao_mock = mock(UnitOfWorkDao)\n when(uow_dao_mock).get_one(any()).thenReturn(create_unit_of_work(PROCESS_UNIT_TEST, 0, 1, None))\n self....
[ "0.7257716", "0.6861403", "0.6694048", "0.6286829", "0.61476827", "0.6099142", "0.6072867", "0.59780765", "0.5971016", "0.595613", "0.5860175", "0.58586013", "0.5750365", "0.5722227", "0.57212484", "0.5681915", "0.56768733", "0.56603575", "0.5617645", "0.56150514", "0.5581628...
0.71204054
1
method tests timetable records in STATE_IN_PROGRESS state
def test_transfer_to_final_timeperiod_state_in_progress(self): when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True) uow_dao_mock = mock(UnitOfWorkDao) when(uow_dao_mock).get_one(any()).thenReturn( create_unit_of_work(PROCESS_UNIT_TEST, 1, 1, None,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_future_timeperiod_state_in_progress(self):\n when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True)\n uow_dao_mock = mock(UnitOfWorkDao)\n when(uow_dao_mock).get_one(any()).thenReturn(create_unit_of_work(PROCESS_UNIT_TEST, 0, 1, None))\n self....
[ "0.7257185", "0.71193224", "0.6860334", "0.628547", "0.6147146", "0.6099557", "0.60727316", "0.59782106", "0.59703326", "0.59561163", "0.58597606", "0.5858871", "0.5750034", "0.57215893", "0.57205486", "0.5681524", "0.5675636", "0.56590813", "0.5616347", "0.56143284", "0.5581...
0.66941416
3
method tests timetable records in STATE_IN_PROGRESS state
def test_retry_state_in_progress(self): when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True) uow_dao_mock = mock(UnitOfWorkDao) when(uow_dao_mock).get_one(any()).thenReturn( create_unit_of_work(PROCESS_UNIT_TEST, 1, 1, None, unit_of_work.STATE_PRO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_future_timeperiod_state_in_progress(self):\n when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True)\n uow_dao_mock = mock(UnitOfWorkDao)\n when(uow_dao_mock).get_one(any()).thenReturn(create_unit_of_work(PROCESS_UNIT_TEST, 0, 1, None))\n self....
[ "0.7257185", "0.71193224", "0.66941416", "0.628547", "0.6147146", "0.6099557", "0.60727316", "0.59782106", "0.59703326", "0.59561163", "0.58597606", "0.5858871", "0.5750034", "0.57215893", "0.57205486", "0.5681524", "0.5675636", "0.56590813", "0.5616347", "0.56143284", "0.558...
0.6860334
2
method tests timetable records in STATE_FINAL_RUN state
def test_processed_state_final_run(self): uow_dao_mock = mock(UnitOfWorkDao) when(uow_dao_mock).get_one(any()).thenReturn( create_unit_of_work(PROCESS_UNIT_TEST, 1, 1, None, unit_of_work.STATE_PROCESSED)) self.pipeline_real.uow_dao = uow_dao_mock pipeline = spy(self.pipeline...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_transfer_to_final_timeperiod_state_in_progress(self):\n when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True)\n uow_dao_mock = mock(UnitOfWorkDao)\n when(uow_dao_mock).get_one(any()).thenReturn(\n create_unit_of_work(PROCESS_UNIT_TEST, 1,...
[ "0.66075", "0.6143854", "0.61161435", "0.61069274", "0.6051925", "0.59604484", "0.58838767", "0.58052", "0.5779052", "0.5769028", "0.57552785", "0.5731349", "0.5673748", "0.56650174", "0.56536967", "0.5641838", "0.56204814", "0.5584373", "0.5582211", "0.55599564", "0.55164605...
0.65768546
1
method tests timetable records in STATE_FINAL_RUN state
def test_cancelled_state_final_run(self): uow_dao_mock = mock(UnitOfWorkDao) when(uow_dao_mock).get_one(any()).thenReturn( create_unit_of_work(PROCESS_UNIT_TEST, 1, 1, None, unit_of_work.STATE_CANCELED)) self.pipeline_real.uow_dao = uow_dao_mock pipeline = spy(self.pipeline_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_transfer_to_final_timeperiod_state_in_progress(self):\n when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True)\n uow_dao_mock = mock(UnitOfWorkDao)\n when(uow_dao_mock).get_one(any()).thenReturn(\n create_unit_of_work(PROCESS_UNIT_TEST, 1,...
[ "0.66093767", "0.6576982", "0.6142489", "0.6118232", "0.6109181", "0.6053264", "0.5884454", "0.5807409", "0.57819825", "0.5768662", "0.5756515", "0.57349944", "0.56748885", "0.56665564", "0.5654893", "0.5644546", "0.5621295", "0.55847925", "0.55834424", "0.5561242", "0.551816...
0.5960294
6
method tests timetable records in STATE_SKIPPED state
def test_state_skipped(self): pipeline = spy(self.pipeline_real) job_record = get_job_record(job.STATE_SKIPPED, TEST_PRESET_TIMEPERIOD, PROCESS_SITE_HOURLY) pipeline.manage_pipeline_for_process(job_record.process_name, job_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def verify_skip(self, d_stmt, table): \n pass", "def skip_dti_tests():\n return True", "def IsSkipped(self):\n state = self.GetState()\n return state.status == TestState.SKIPPED", "def test_table_false_positives(self):\n pass", "def test_csv_skipped_status_report(self):\n skip...
[ "0.64526933", "0.62094676", "0.61737317", "0.6080123", "0.6063041", "0.59828675", "0.59114105", "0.5883286", "0.5864295", "0.5789228", "0.578475", "0.5716462", "0.56791854", "0.5611211", "0.5603914", "0.5570936", "0.5559213", "0.55535394", "0.5551212", "0.5548782", "0.5545937...
0.6912011
0
method tests timetable records in STATE_PROCESSED state
def test_state_processed(self): pipeline = spy(self.pipeline_real) job_record = get_job_record(job.STATE_PROCESSED, TEST_PRESET_TIMEPERIOD, PROCESS_SITE_HOURLY) pipeline.manage_pipeline_for_process(job_record.process_name, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_preset_timeperiod_state_in_progress(self):\n when(self.time_table_mocked).can_finalize_job_record(any(str), any(Job)).thenReturn(True)\n uow_dao_mock = mock(UnitOfWorkDao)\n when(uow_dao_mock).get_one(any()).thenReturn(create_unit_of_work(PROCESS_UNIT_TEST, 0, 1, None))\n self....
[ "0.67496896", "0.6644145", "0.6472953", "0.62294924", "0.6101738", "0.5977244", "0.59124064", "0.5691305", "0.55319977", "0.5511322", "0.55038923", "0.5429801", "0.54225284", "0.5324777", "0.5302315", "0.52370924", "0.5232825", "0.5190848", "0.5188738", "0.5178702", "0.514694...
0.72442085
0
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def plot_confusion_matrix(cm, classes=[], normalize=False, title='Confusion matrix', cmap=plt.cm.Blues): plt.figure() if normalize: cm = cm.astype('float') / cm.sum(axis=1)[:, np.newaxis] print("Normalized confusion ma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_confusion_matrix(cm, classes=[0,1], normalize=False, title='Confusion matrix', print_matrix=False):\n\n if normalize:\n cm = cm.astype('float') / cm.sum(axis=1)[:, np.newaxis]\n print(\"Normalized confusion matrix\")\n else:\n print('Confusion matrix, without normalization')\n\n...
[ "0.8194366", "0.8095442", "0.8029135", "0.8019134", "0.7993755", "0.7991176", "0.79808146", "0.79755133", "0.79609716", "0.7956584", "0.79375756", "0.79346216", "0.79343396", "0.7931212", "0.7926087", "0.7924503", "0.7923946", "0.79228765", "0.79227114", "0.7921956", "0.79178...
0.7835582
61
function to create employee manager.
def create_manager(self, name, pos, dept): self.manager[dept.upper()].append( { 'name': name, 'pos': pos, 'dept': dept, 'senior': [], 'junior': [], 'trainee': [] } )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_emp(self, name, pos, dept):\n if pos.upper() == 'MANAGER':\n self.create_manager(name, pos, dept)\n elif pos.upper() == 'SENIOR':\n self.create_senior(name, pos, dept)\n elif pos.upper() == 'JUNIOR':\n self.create_junior(name, pos, dept)\n els...
[ "0.70986205", "0.70202345", "0.6854372", "0.6521865", "0.63904655", "0.62510014", "0.6242744", "0.6056396", "0.60380864", "0.6034902", "0.6033909", "0.6022222", "0.60213274", "0.5988317", "0.59657365", "0.591008", "0.5900008", "0.58407825", "0.58102566", "0.57738036", "0.5749...
0.74205023
0
function to create employee senior.
def create_senior(self, name, pos, dept): self.senior[dept.upper()].append( { 'name': name, 'pos': pos, 'dept': dept, 'manager': self.manager[dept.upper()][0]['name'], 'junior': [], 'trainee': [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_emp(self, name, pos, dept):\n if pos.upper() == 'MANAGER':\n self.create_manager(name, pos, dept)\n elif pos.upper() == 'SENIOR':\n self.create_senior(name, pos, dept)\n elif pos.upper() == 'JUNIOR':\n self.create_junior(name, pos, dept)\n els...
[ "0.7395388", "0.6873678", "0.6652067", "0.6417113", "0.63125676", "0.6297487", "0.6267351", "0.62289935", "0.6222155", "0.6122551", "0.6114099", "0.6063726", "0.6037256", "0.60092777", "0.60071415", "0.59452486", "0.5924796", "0.5911677", "0.58706707", "0.58596087", "0.585595...
0.72263277
1
functions to create employee junior.
def create_junior(self, name, pos, dept): self.junior[dept.upper()].append( { 'name': name, 'pos': pos, 'dept': dept, 'manager': self.manager[dept.upper()][0]['name'], 'senior': self.senior[dept.upper()][0]['name'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_emp(self, name, pos, dept):\n if pos.upper() == 'MANAGER':\n self.create_manager(name, pos, dept)\n elif pos.upper() == 'SENIOR':\n self.create_senior(name, pos, dept)\n elif pos.upper() == 'JUNIOR':\n self.create_junior(name, pos, dept)\n els...
[ "0.6703623", "0.6629079", "0.58912194", "0.5825029", "0.57799065", "0.557808", "0.5561385", "0.55040497", "0.5481859", "0.54713845", "0.5368414", "0.5327975", "0.52699995", "0.52693903", "0.52427757", "0.52367204", "0.52185136", "0.52170134", "0.5204411", "0.5148115", "0.5135...
0.6939935
0
function to create employee trainee.
def create_trainee(self, name, pos, dept): self.trainee[dept.upper()].append( { 'name': name, 'pos': pos, 'dept': dept, 'manager': self.manager[dept.upper()][0]['name'], 'senior': self.senior[dept.upper()][0]['name'], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_emp(self, name, pos, dept):\n if pos.upper() == 'MANAGER':\n self.create_manager(name, pos, dept)\n elif pos.upper() == 'SENIOR':\n self.create_senior(name, pos, dept)\n elif pos.upper() == 'JUNIOR':\n self.create_junior(name, pos, dept)\n els...
[ "0.71946114", "0.64039135", "0.6397927", "0.60852325", "0.60668916", "0.5989232", "0.59618133", "0.5926233", "0.59155416", "0.584691", "0.5840692", "0.58354217", "0.57622826", "0.5757782", "0.57444525", "0.57208085", "0.5719296", "0.56969446", "0.56930053", "0.56875426", "0.5...
0.696836
1
function to create employee based on postion.
def create_emp(self, name, pos, dept): if pos.upper() == 'MANAGER': self.create_manager(name, pos, dept) elif pos.upper() == 'SENIOR': self.create_senior(name, pos, dept) elif pos.upper() == 'JUNIOR': self.create_junior(name, pos, dept) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_employee(self,personal_identity):\r\n new_emp = Employee(*personal_identity)\r\n registration_str = new_emp.get_registration_str()\r\n\r\n return_value = self.save_object_to_DB(\"employee\",registration_str)\r\n return return_value", "def create_employee(self):\n try...
[ "0.7340392", "0.7060474", "0.6856134", "0.66949964", "0.66828686", "0.6662708", "0.6607132", "0.66030127", "0.6332911", "0.6295497", "0.6276587", "0.62654424", "0.626206", "0.62513125", "0.62459964", "0.6240261", "0.6239734", "0.62260616", "0.6169861", "0.61182666", "0.607446...
0.7889773
0
test attrs of City when created
def test_attrs(self): city = City() self.assertEqual(city.name, "") self.assertEqual(City.name, "") self.assertEqual(city.state_id, "") self.assertEqual(City.state_id, "") self.assertIn("id", city.__dict__) self.assertIn("created_at", city.to_dict()) self....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_attributes(self):\n self.assertTrue(hasattr(self.city, 'name'))\n self.assertTrue(hasattr(self.city, 'state_id'))", "def test_set_attrs(self):\n city2 = City()\n city2.name = \"Hawaii\"\n self.assertEqual(city2.name, \"Hawaii\")\n city2.state_id = \"<3\"\n ...
[ "0.79669297", "0.7755154", "0.76454324", "0.75021863", "0.7164923", "0.7156203", "0.70737207", "0.70595056", "0.70520234", "0.6963021", "0.69118476", "0.69103384", "0.67882353", "0.67593557", "0.67574525", "0.6731778", "0.6674009", "0.66470456", "0.6544833", "0.6540936", "0.6...
0.76267827
3
test the attrs of City when set
def test_set_attrs(self): city2 = City() city2.name = "Hawaii" self.assertEqual(city2.name, "Hawaii") city2.state_id = "<3" self.assertEqual(city2.state_id, "<3") self.assertEqual(City.name, "") self.assertEqual(City.state_id, "")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_attributes(self):\n self.assertTrue(hasattr(self.city, 'name'))\n self.assertTrue(hasattr(self.city, 'state_id'))", "def test_city(self):\n c = City()\n self.assertEqual(c.name, \"\")\n self.assertEqual(c.state_id, \"\")\n c.name = \"San Francisco\"\n c.s...
[ "0.77947956", "0.74044555", "0.7307759", "0.7248982", "0.71909946", "0.71890724", "0.69839954", "0.68954945", "0.6838572", "0.6797316", "0.6596423", "0.6592114", "0.6484486", "0.64782625", "0.6418063", "0.6380564", "0.6375229", "0.62248665", "0.62208533", "0.61856556", "0.618...
0.79602754
0
test the inheritance of City from BaseModel
def test_inheritance(self): city3 = City() self.assertIsInstance(city3, BaseModel) self.assertIsInstance(city3, City)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_inheritence(self):\n self.assertTrue(issubclass(City, BaseModel))", "def test_subclass(self):\n self.assertIsInstance(self.city, BaseModel)\n self.assertTrue(hasattr(self.city, \"id\"))\n self.assertTrue(hasattr(self.city, \"created_at\"))\n self.assertTrue(hasattr(sel...
[ "0.8789952", "0.8498339", "0.8354064", "0.7497503", "0.7128531", "0.70219684", "0.700617", "0.698174", "0.6981573", "0.6797616", "0.6792511", "0.6769275", "0.6727983", "0.66833794", "0.6660511", "0.6656261", "0.65980506", "0.6585381", "0.6571345", "0.6492039", "0.64787066", ...
0.86559975
1
check that fifo matches expected types and perms, catch security hold were it could be replace with another file
def __checkFifo(path): pass # FIXME implement
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsys_fifo_exists(path):\n if not os.path.exists(path):\n collectd.error('File does not exist: %s' % path)\n return False\n if not stat.S_ISFIFO(os.stat(path).st_mode):\n collectd.error('File is not a fifo: %s' % path)\n return False\n return True", "def _check_fifo(self):...
[ "0.6131964", "0.60713536", "0.57345945", "0.56298536", "0.5624965", "0.56156325", "0.5565259", "0.5526661", "0.5506482", "0.5501304", "0.5494585", "0.5419358", "0.5417479", "0.5339467", "0.5335473", "0.5235633", "0.5192825", "0.51720446", "0.51720446", "0.51584595", "0.514473...
0.6538033
0
Returns all the grid positions that are currently available for scoring. YB is only available after YZ has been scored other than 0 or NB, NT and GT are never available for scoring If 13 positions have been scored in the grid, no further positions can be filled
def available_positions(self): if len([x for x in self.grid.values() if x[0] != None]) < 13: return [x for x in assignable_positions if self.grid[x][1] == "---"] else: return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def free_positions(self):\n positions = []\n for i in range(self.grid_size):\n for j in range(self.grid_size):\n if self.grid[i][j] == 0:\n positions.append((i, j))\n if positions == []:\n raise GameException('Game Over. No free position ...
[ "0.6839561", "0.6820858", "0.6375092", "0.6179692", "0.6175604", "0.61393595", "0.6134617", "0.6129079", "0.61183804", "0.6112216", "0.6101577", "0.6083837", "0.5964636", "0.59512347", "0.58837503", "0.5817103", "0.5804341", "0.5783051", "0.5754948", "0.57523113", "0.5745287"...
0.72613794
0
Returns all the grid positions that have been filled in.
def filled_positions(self): return [x for x in assignable_positions if self.grid[x][0]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def free_positions(self):\n positions = []\n for i in range(self.grid_size):\n for j in range(self.grid_size):\n if self.grid[i][j] == 0:\n positions.append((i, j))\n if positions == []:\n raise GameException('Game Over. No free position ...
[ "0.77568364", "0.723596", "0.7119489", "0.70678014", "0.7052116", "0.69976157", "0.68781596", "0.68656486", "0.68310523", "0.6827777", "0.67618763", "0.66904217", "0.6631231", "0.65709645", "0.65524876", "0.65520054", "0.65291786", "0.65274036", "0.6515479", "0.6496653", "0.6...
0.80966496
0
Assigns a tuple to a position in the grid, of the form (hand, score of this hand for this position)
def assign(self, hand, position): assert isinstance(hand, h.Hand) # print "POSITION:", position # print self try: assert self.grid[position][1] == "---" except AssertionError: raise FilledInError self.grid[position] = (hand, self.score(hand, positi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def score_tuple( hand ):\n m = matches(hand)\n #print( m )\n #royal_flush -- a special case of straight flush.\n if flush(hand) and straight(hand) and hand[4].rank == 14:\n return (8, hand[4].rank, 0)\n #straight_flush\n elif flush(hand) and straight(hand):\n return (8, hand[4].rank...
[ "0.6446688", "0.60046214", "0.5860571", "0.5825233", "0.57931954", "0.5780548", "0.57786965", "0.5750296", "0.57402545", "0.57364994", "0.5714486", "0.5714486", "0.57086986", "0.5672831", "0.5660482", "0.5629688", "0.5591937", "0.5587683", "0.55868065", "0.55848455", "0.55837...
0.7689742
0
This function checks how many points you would get if the hand would be filled in at the given position.
def score(self, hand, position): try: assert self.grid[position][1] == "---" except AssertionError: print self print position raise FilledInError except KeyError: print "\nCheck your code. This is not a valid position:", position, "\n"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def check_masked (self, pos : list,) :\n count = 0\n total = 0\n for x in range(pos[0],min(pos[0] + AUTO_width1, self.m_x)) :\n for y in range(pos[1], min(pos[1] + AUTO_width1, self.m_y)) :\n total += 1\n if self.current_grid[x][y] :\n ...
[ "0.6565153", "0.63837904", "0.63379383", "0.6248904", "0.62295264", "0.6200083", "0.6106756", "0.6105779", "0.60929984", "0.6092066", "0.60837704", "0.60635835", "0.60598457", "0.60598457", "0.6055476", "0.60407025", "0.60384566", "0.60374635", "0.6029937", "0.60184675", "0.5...
0.5970365
22
Sums all scores of the currently filled number positions
def number_total(self): return sum(self.grid[pos][1] for pos in ["n1", "n2", "n3", "n4", "n5", "n6"] if self.grid[pos][0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_scores(self):\n self.score[0] = (-1)*sum(self.board[self.board == -1])\n self.score[1] = sum(self.board[self.board == 1])\n #self.score[i] = sum(1 for j in range(len(stones_on_board)) if stones_on_board[j] == i)", "def grades_sum(grades_input):\n total = 0\n for score in sco...
[ "0.7418236", "0.6753837", "0.6666424", "0.64958215", "0.6413631", "0.6385383", "0.63700944", "0.6284259", "0.62794924", "0.62260115", "0.62230796", "0.620351", "0.62015486", "0.6172633", "0.6159928", "0.61399513", "0.6136497", "0.6111552", "0.6099969", "0.6067096", "0.6052499...
0.5861139
39
Sums all scores of the currently filled assignable positions plus the number bonus
def grand_total(self): return sum(self.grid[pos][1] for pos in assignable_positions if self.grid[pos][0]) + self.grid["nb"][1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_scores(self):\n self.score[0] = (-1)*sum(self.board[self.board == -1])\n self.score[1] = sum(self.board[self.board == 1])\n #self.score[i] = sum(1 for j in range(len(stones_on_board)) if stones_on_board[j] == i)", "def update_scores(self):\r\n totals = [0, 0, 0, 0]\r\n ...
[ "0.69169897", "0.6778899", "0.66893876", "0.6492624", "0.6446686", "0.64220786", "0.6389673", "0.63117045", "0.62862825", "0.627944", "0.62590975", "0.62550724", "0.6167822", "0.6160577", "0.6156003", "0.6153973", "0.6143272", "0.6137463", "0.6123372", "0.6122803", "0.6114237...
0.6580822
3
Aggregate the statistics of a log dict
def aggregate_log_dict(agg_dict, new_dict) -> dict: for k in new_dict: # init new if not present if k not in agg_dict: agg_dict[k] = { 'n': 0, 'sum': 0.0, 'max': new_dict[k], 'min': new_dict[k], } # aggre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aggregate_logging_outputs(logging_outputs):\n cider_sum = sum(log.get('cider', 0) for log in logging_outputs)\n loss_sum = sum(log.get('loss', 0) for log in logging_outputs)\n sc_loss_sum = sum(log.get('sc_loss', 0) for log in logging_outputs)\n n_pos_sum = sum(log.get('n_positive',...
[ "0.72006446", "0.7089349", "0.7069627", "0.6966819", "0.6952808", "0.6841634", "0.683194", "0.6784331", "0.65914315", "0.64268196", "0.606027", "0.60507745", "0.6043965", "0.6035893", "0.60186166", "0.5961135", "0.59582734", "0.59497863", "0.5914297", "0.5878846", "0.5870959"...
0.7331248
0
Initializes the path to write the log to
def init_logger(self, logger_path, logger_name='Experiment') -> logging.Logger: self.logger = logging.getLogger(logger_name) self.logger.setLevel(logging.INFO) file_handler = logging.FileHandler(logger_path) # TOD bug here formatter = logging.Formatter('%(asctime)s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def init_log(path):\n file = open(path, 'w+')\n file.close()", "def _init_log(self):\n if not os_path_exists(self.log_file):\n self._write('', 'w')", "def __init__(self, log_path, on=True):\n self.log_path = log_path\n self.on = on\n\n if self.on:\n while...
[ "0.7888636", "0.78552186", "0.75470525", "0.75144166", "0.74878", "0.74750996", "0.7430851", "0.7277765", "0.7158862", "0.7153729", "0.71011764", "0.7067894", "0.7024228", "0.70093405", "0.6994423", "0.69160753", "0.68876475", "0.6852987", "0.6842736", "0.68300515", "0.682812...
0.6496009
42
Helper method to permute the state axis (from MinAtar)
def get_state(self, s): return (torch.tensor(s, device=self.device).permute(2, 0, 1)).unsqueeze(0).float()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def permute(ts: Tensor, axes) -> Tensor:\n permute_op = PermuteOp(axes)\n return permute_op(ts, None)", "def _apply_swap(self, state, axes, **kwargs):\n all_axes = list(range(len(state.shape)))\n all_axes[axes[0]] = axes[1]\n all_axes[axes[1]] = axes[0]\n return self._transpose(...
[ "0.64760816", "0.6295351", "0.6107544", "0.5883316", "0.58024627", "0.57838786", "0.5779762", "0.5742571", "0.56866443", "0.56657296", "0.5552952", "0.55455023", "0.5537342", "0.5535267", "0.5505405", "0.54731023", "0.54124594", "0.5388099", "0.5386475", "0.5386475", "0.53864...
0.0
-1
Helper method that takes in a variable number of namedtuples and construct a joint namedtuple for writeout
def construct_out_logfields(*tups): fields = [] for tupStruct in tups: for k in tupStruct._fields: if k.startswith("Diagnostic"): k_str = k.replace('_', '/', 1) fields.append(k_str) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tuple_namer(name,tupl):\n tupl_templ = collections.namedtuple(name, 'battery status neighbour')\n named = tupl_templ(battery = tupl[0], status = tupl[1], neighbour = tupl[2])\n return named", "def core_named_tuple(user_kwargs: dict, disdat_kwargs: dict) -> NamedTuple('Output', [('user_kwargs', dict)...
[ "0.63004136", "0.5937142", "0.58391273", "0.58231133", "0.57692385", "0.5645236", "0.55839163", "0.54995245", "0.54713005", "0.532123", "0.52468985", "0.523908", "0.51835376", "0.5111085", "0.5099475", "0.50992185", "0.5072765", "0.50404245", "0.5036017", "0.50100225", "0.500...
0.50794727
16
backup database before some critical operations
def backup_database(db_host=None, db_name=None, cfg='project'): data = __salt__['mc_project.get_configuration'](cfg) db = data['data']['django_settings']['DATABASES']['default'] if not db_host: db_host = db['HOST'] if not db_name: db_name = db['NAME'] dump_filename = '/tmp/{0}-{1}.du...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def backup_database():\n logger.info(\"start database_backup\")\n management.call_command('dbbackup', compress=True)\n logger.info(\"end database_backup\")", "def backup_database():\n db_path = os.path.join(config.cum_dir, 'cum.db')\n backup_path = os.path.join(config.cum_dir, 'cum.db.bak')\n c...
[ "0.8267241", "0.74766415", "0.7415895", "0.7311228", "0.71407634", "0.67931277", "0.6724161", "0.6582637", "0.6562484", "0.65504694", "0.65399987", "0.6503169", "0.64341927", "0.64200234", "0.6383028", "0.6301118", "0.6289786", "0.6247211", "0.62126917", "0.62072396", "0.6204...
0.5757434
84
Execute Ping RPC over NETCONF.
def ping(host, destination, repeat_count, vrf_name): # create NETCONF provider provider = NetconfServiceProvider(address=host, port=830, username='admin', password='admin', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ping():\n return ping_response()", "def ping():\n return ping_response()", "def ping():\n return ping_response()", "def ping():\n return ping_response()", "def rpc_ping(self):\n\t\treturn True", "async def ping(self):\n uri = \"/fapi/v1/ping\"\n success, error = await self.r...
[ "0.68399215", "0.68399215", "0.68399215", "0.68399215", "0.6729562", "0.67104983", "0.6690351", "0.6629603", "0.66143537", "0.6611325", "0.6556811", "0.64874136", "0.64824206", "0.64485735", "0.64286697", "0.63662034", "0.63428634", "0.6277983", "0.6233143", "0.6226974", "0.6...
0.0
-1
Ansible module to verify IP reachability using Ping RPC over NETCONF.
def main(): module = AnsibleModule( argument_spec=dict( host=dict(type='str', required=True), destination=dict(type='str', required=True), repeat_count=dict(type='int', default=5), vrf_name=dict(type='str'), min_success_rate=dict(type='int', defaul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ping():\n return ping_response()", "def ping():\n return ping_response()", "def ping():\n return ping_response()", "def ping():\n return ping_response()", "def ip_check():\n hosts = []\n valid_hosts = []\n for item in sys.argv:\n if '@' in item:\n hosts.append(ite...
[ "0.6234672", "0.6234672", "0.6234672", "0.6234672", "0.6228038", "0.6227247", "0.616574", "0.60879576", "0.607467", "0.5944119", "0.5944096", "0.58443975", "0.57498163", "0.5747767", "0.57241446", "0.57212025", "0.57056487", "0.57054055", "0.5702251", "0.56238407", "0.561111"...
0.65288395
0