query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns a neatly formatted string representation of the Edge object | def zAg0(YKHO):
return 'Edge Weight: ' + str(YKHO.weight) + '\n' + 'Edge Attributes: ' + str(YKHO.attributes) + '\n' + 'First Incident Node: \n' + str(YKHO.first_incident_node.get_name()) + '\n' + 'Second Incident Node: \n' + str(YKHO.second_incident_node.get_name()) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n KCHu = f\"GraphViaEdges '{YKHO.name}',\\nedges :\\n\"\n for D70y, j3Ar in YKHO.edges.items():\n KCHu += f' {D70y[0]} {j3Ar.value} {D70y[1]}\\n'\n return KCHu",
"def wHJl(YKHO) -> str:\n if YKHO._has_direction:\n return f\"<Edge: from {YKHO._start} to {YKHO._end} wit... | [
"0.82040614",
"0.8060393",
"0.7995197",
"0.7733873",
"0.7632803",
"0.76063347",
"0.74718153",
"0.74718153",
"0.7468327",
"0.73569363",
"0.72818464",
"0.72779083",
"0.72449094",
"0.7231813",
"0.7149456",
"0.7144907",
"0.70975465",
"0.7085748",
"0.7036638",
"0.7021868",
"0.6974... | 0.82814515 | 0 |
Given an Edge object, checks whether this Edge object is equal to the input Edge object equality of two Edge objects is defined in terms of equality of inner fields and not as identical objects in memory | def xa14(YKHO, Elif):
return YKHO.weight == Elif.get_weight() and YKHO.attributes.__eq__(Elif.get_attributes()) and YKHO.get_incident_nodes().__eq__(Elif.get_incident_nodes()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not type(Elif) == type(YKHO):\n return False\n SuUu, j5CH = (YKHO.edges, Elif.edges)\n return len(SuUu) == len(j5CH) and all((XTiz.all(nESp == fPwP) for nESp, fPwP in zip(SuUu, j5CH)))",
"def xa14(YKHO, Elif: Vertex) -> bool:\n if isinstance(Elif, YKHO.__class__):\n ... | [
"0.74431676",
"0.72960687",
"0.705057",
"0.70363057",
"0.69611436",
"0.69486606",
"0.68862784",
"0.68857896",
"0.6836915",
"0.68208396",
"0.6810775",
"0.6760811",
"0.6709949",
"0.66960603",
"0.6661585",
"0.6647696",
"0.6606761",
"0.6606037",
"0.65925986",
"0.65676755",
"0.656... | 0.6921303 | 6 |
Returns the set of incident nodes of the edge | def aFen(YKHO):
return {YKHO.first_incident_node, YKHO.second_incident_node} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QyK1(YKHO):\n return set(YKHO.incident_edges)",
"def QyK1(YKHO):\n return set(YKHO.incident_edges)",
"def zXh1(YKHO):\n return set({D70y for Q6kx in YKHO.nodeset for D70y in Q6kx.get_incident_edges()})",
"def mC4V(YKHO) -> fHNa[AzJI[int, int]]:\n mC4V: fHNa[AzJI[int, int]] = set()\n for Ln... | [
"0.81497467",
"0.81497467",
"0.79593974",
"0.6999665",
"0.69706666",
"0.6923077",
"0.6884884",
"0.6862551",
"0.6847484",
"0.6847341",
"0.66978186",
"0.66516453",
"0.66198707",
"0.6604278",
"0.6597416",
"0.65804565",
"0.65804565",
"0.65804565",
"0.65804565",
"0.65804565",
"0.6... | 0.84504414 | 0 |
Constructor for the UndirectedGraph class used to initialize all necessary fields of the UndirectedGraph object | def FIMM(YKHO, hD12):
YKHO.nodeset = hD12
YKHO.__check_validity() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO._graph = u_5c()\n YKHO._graph_copies = []",
"def FIMM(YKHO):\n YKHO.graph = None",
"def FIMM(YKHO):\n YKHO._adjacency_list = {}",
"def FIMM(YKHO):\n YKHO.graph = {}\n YKHO.edges = 0\n YKHO.vertices = 0",
"def FIMM(YKHO):\n YKHO.graph = _sfu()",
"def FIMM(YKH... | [
"0.7334895",
"0.72836196",
"0.6959662",
"0.6936605",
"0.688283",
"0.67758995",
"0.6768145",
"0.6719209",
"0.6694202",
"0.66806513",
"0.6675121",
"0.6643877",
"0.6641952",
"0.6630725",
"0.6620418",
"0.6611511",
"0.66015965",
"0.6595077",
"0.65761536",
"0.65761536",
"0.65744764... | 0.6142115 | 99 |
Given an UndirectedGraph object, checks whether this UndirectedGraph object is equal to the input UndirectedGraph object equality of two UndirectedGraph objects is defined in terms of equality of inner fields and not as identical objects in memory | def xa14(YKHO, Elif):
return YKHO.nodeset.__eq__(Elif.get_nodeset()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, wOed):\n return False\n return YKHO.graph == Elif.graph",
"def xa14(YKHO, Elif):\n if not type(Elif) == type(YKHO):\n return False\n SuUu, j5CH = (YKHO.edges, Elif.edges)\n return len(SuUu) == len(j5CH) and all((XTiz.all(nESp == fPwP) f... | [
"0.7523416",
"0.75222325",
"0.7511622",
"0.7403132",
"0.7257212",
"0.7236885",
"0.71853983",
"0.71622",
"0.71622",
"0.71622",
"0.71622",
"0.71622",
"0.7143371",
"0.71366626",
"0.71069914",
"0.7105524",
"0.7102913",
"0.70744616",
"0.70490736",
"0.70204526",
"0.69930714",
"0.... | 0.705797 | 18 |
Helper function that adds a duplicate edge to the input graph and returns the modified graph. Useful for extracting subgraphs. | def bddP(yvY1, D70y):
wE9E = q65e.search_node_names(yvY1.get_nodeset(), D70y.get_first_incident_node().get_name()).pop()
O_Pf = q65e.search_node_names(yvY1.get_nodeset(), D70y.get_second_incident_node().get_name()).pop()
yvY1.add_edge(D70y.get_weight(), dict(D70y.get_attributes()), wE9E, O_Pf)
return yv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LHwl(YKHO):\n return Q1Kq(YKHO.vertices[:], YKHO.edges[:])",
"def rz7z(YKHO, D70y):\n D70y = set(D70y)\n CBRg, j9ly = tuple(D70y)\n if CBRg in YKHO.graph_dict:\n YKHO.graph_dict[CBRg].append(j9ly)\n else:\n YKHO.graph_dict[CBRg] = [j9ly]\n return D70y",
"def LHwl(YKHO):\n ... | [
"0.7245972",
"0.711353",
"0.7053633",
"0.6733795",
"0.6715932",
"0.6670997",
"0.6650648",
"0.64860946",
"0.64417297",
"0.6236953",
"0.6235841",
"0.6192263",
"0.6180105",
"0.6116902",
"0.60675865",
"0.60634625",
"0.60634625",
"0.6043934",
"0.60427433",
"0.6018553",
"0.6018553"... | 0.6925253 | 3 |
Returns True if the graph has multiple edges originating from and leading to the same node and False otherwise | def BzKt(YKHO):
return len(list([tuple((D70y.get_first_incident_node().get_name(), D70y.get_second_incident_node().get_name())) for D70y in YKHO.get_edges()])) != len(set({tuple((D70y.get_first_incident_node().get_name(), D70y.get_second_incident_node().get_name())) for D70y in YKHO.get_edges()})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPfD(YKHO):\n Z_8Y = [(tTpl['from_id'], tTpl['to_id']) for tTpl in YKHO._edges]\n if len(Z_8Y) > len(set(Z_8Y)):\n return True\n Z_8Y = [(min(tTpl['from_id'], tTpl['to_id']), max(tTpl['from_id'], tTpl['to_id'])) for tTpl in YKHO._edges]\n kRAn = set(Z_8Y)\n if len(Z_8Y) == 2 * len(kRAn):\... | [
"0.7612069",
"0.7316966",
"0.7045262",
"0.7041747",
"0.6953627",
"0.6944002",
"0.6906258",
"0.6894936",
"0.68891203",
"0.68841875",
"0.68400526",
"0.682799",
"0.6795179",
"0.6794149",
"0.67861754",
"0.67733485",
"0.67662656",
"0.6754904",
"0.6741777",
"0.67363137",
"0.6730243... | 0.76320726 | 0 |
Helper to create an initialized Variable with weight decay. Note that the Variable is initialized with a truncated normal distribution. A weight decay is added only if one is specified. | def xSbR(mWFP, ROpF, z2bo, TI1B):
SRYB = js1U(mWFP, ROpF, ZylS.truncated_normal_initializer(stddev=z2bo))
if TI1B:
oNEO = ZylS.mul(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss')
ZylS.add_to_collection('losses', oNEO)
return SRYB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xSbR(mWFP, ROpF, z2bo, TI1B):\n SRYB = Es0b(mWFP, ROpF, initializer=ZylS.truncated_normal_initializer(stddev=z2bo, dtype=ZylS.float32))\n if TI1B is not None:\n oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss')\n ZylS.add_to_collection('losses', oNEO)\n return SRYB",
... | [
"0.7514996",
"0.74297583",
"0.7427654",
"0.73323244",
"0.73323244",
"0.73174566",
"0.73167795",
"0.72758734",
"0.7265685",
"0.7255274",
"0.7237691",
"0.71960557",
"0.7104415",
"0.6970338",
"0.6799838",
"0.67324245",
"0.6716466",
"0.6677384",
"0.6564459",
"0.65503156",
"0.6548... | 0.7274419 | 8 |
Gets the maximum population size in a run | def HG0I(iXC1):
max = 0
vi7w = 0
for YRbF in range(800, 900):
if int(iXC1[YRbF]) > int(max):
max = iXC1[YRbF]
vi7w = YRbF
return (max, vi7w) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def max(YKHO) -> int:\n return YKHO._status['party_size'][1]",
"def czJG(YKHO):\n eQSh = YKHO.scores()\n return eQSh['largestContig']",
"def zNig(YKHO):\n CHNM = YKHO._population\n if CHNM is None:\n return 0\n else:\n return len(CHNM)",
"def G4Qz(YKHO):\n try:\n ret... | [
"0.69212866",
"0.68412",
"0.6781325",
"0.6757765",
"0.6755588",
"0.67328644",
"0.6716556",
"0.6716556",
"0.6714173",
"0.67063975",
"0.6704005",
"0.66716623",
"0.6659488",
"0.664889",
"0.66412914",
"0.6582964",
"0.65644836",
"0.6526689",
"0.65228426",
"0.6510454",
"0.64592606"... | 0.65834653 | 15 |
Remove comments and new line | def Qfyg(zFiD: str) -> str:
zFiD = zFiD.rstrip('\n')
QalN = zFiD.find('/')
if QalN == -1:
return zFiD
return zFiD[0:QalN] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RPT9(YKHO):\n AHFD = list()\n for zFiD in YKHO.lines:\n if (not zFiD.startswith('//')) & (not zFiD.isspace()) & (not zFiD.startswith('/*') & (not zFiD.startswith('*/'))):\n zFiD = i9Wa.strip_line(zFiD)\n AHFD.append(zFiD)\n YKHO.lines = AHFD",
"def h3jL(YKHO):\n YKHO.... | [
"0.8335459",
"0.7778711",
"0.7778711",
"0.76206267",
"0.7578965",
"0.74520445",
"0.731222",
"0.7271957",
"0.7263193",
"0.7231542",
"0.72007823",
"0.71217996",
"0.7110644",
"0.7033847",
"0.7028351",
"0.7017453",
"0.6964428",
"0.690862",
"0.68862206",
"0.6879813",
"0.6851116",
... | 0.58337724 | 85 |
Finds all restricted words and their conditions of the given string 1. strips special chars + spaces 2. finds all restricted words that are substrings of 'content' 3. finds condition info with the 'word id' for each restricted word in 'content' pairs each word with its condition info in a dict 4. returns json containin... | def Z0qI(hGN5):
SgFT = PKRu.strip_content(hGN5)
try:
EhrF = PKRu.find_restricted_words(SgFT)
except BQDi.SQLAlchemyError as err:
wk5E.logger.debug(XObx.with_traceback(None))
return (None, 'An error occurred accessing the restricted words.', 500)
except AttributeError:
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A2lK(hGN5):\n NvH4 = NCls.engine.execute('select * from restricted_word;')\n EhrF = []\n for rdlD in NvH4:\n if ' ' + rdlD[1].upper().strip() + ' ' in hGN5:\n EhrF.append({'id': rdlD[0], 'phrase': rdlD[1].upper()})\n return EhrF",
"def mw09():\n l5Ny = QePW.args.get('text', '... | [
"0.7591177",
"0.5981314",
"0.5789155",
"0.5605926",
"0.556458",
"0.5535346",
"0.54419225",
"0.54311794",
"0.5392195",
"0.5356077",
"0.5334967",
"0.5321158",
"0.53209925",
"0.5296926",
"0.5277071",
"0.52698666",
"0.5234821",
"0.5234098",
"0.52301294",
"0.522406",
"0.52131975",... | 0.71821505 | 1 |
Initialize RNN for learning the response metric. | def FIMM(YKHO, cb_Q, **B2fa):
o4Jx = YKHO._build_rnn(**B2fa)
rdIH, QOxj, KoR6, EvQg, N77f, dwcd, eg6z, Qweb = o4Jx
YKHO.anchor = rdIH
YKHO.pos = QOxj
YKHO.neg = KoR6
YKHO.embed_anchor = dwcd
YKHO.embed_pos = eg6z
YKHO.embed_neg = Qweb
YKHO.loss = N77f
YKHO.train_step = EvQg
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, EIMs):\n YKHO.mode = 'test'\n super(wqfP, YKHO).__init__(EIMs)\n YKHO.check_keys(EIMs)\n YKHO.weight_matrix_name = YKHO.default_variable_define(EIMs, 'weight_matrix_name', arg_type='string')\n YKHO.model.open_weights(YKHO.weight_matrix_name)\n YKHO.label_file_name = YKHO.default_va... | [
"0.64805114",
"0.63750297",
"0.6325332",
"0.62590796",
"0.62460816",
"0.62377024",
"0.6220376",
"0.6186108",
"0.61828625",
"0.6161586",
"0.6160966",
"0.61445755",
"0.61436206",
"0.6118667",
"0.611263",
"0.6049739",
"0.60281134",
"0.5983516",
"0.59619683",
"0.5945069",
"0.5945... | 0.58027387 | 33 |
Gives RNN embedding of x_in. | def Sbwf(dqxq):
AmlP = ZylS.reshape(dqxq, [Ep8u * fymP, abJR])
KgjX = ZylS.get_variable('w_in', shape=[abJR, xh95], initializer=ZylS.random_normal_initializer())
Qtfm = ZylS.get_variable('b_in', shape=[xh95], initializer=ZylS.random_normal_initializer())
oh89 = ZylS.matmul(AmlP, KgjX) + Qtfm
BmeK = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q1PJ(YKHO, WKvO):\n if YKHO.embedding is None:\n return WKvO\n else:\n return YKHO.embedding(WKvO)",
"def JznN(YKHO):\n KTQ3 = ZylS.get_variable('embeddings', initializer=YKHO.pretrained_embeddings, trainable=True)\n g4y1 = YKHO.input_placeholder\n g4y1 = ZylS.reshape(g4y1, [YKHO... | [
"0.6534581",
"0.64001054",
"0.6389327",
"0.63428414",
"0.63109326",
"0.6294589",
"0.6207175",
"0.617457",
"0.61326677",
"0.60898113",
"0.60811156",
"0.6067596",
"0.6050508",
"0.60446",
"0.6039447",
"0.602483",
"0.59878796",
"0.595955",
"0.59588444",
"0.5946203",
"0.59192175",... | 0.7203094 | 0 |
Test that moving a page with WAGTAILSIMPLETRANSLATION_SYNC_PAGE_TREE disabled doesn't apply to its translations. | def YVfy(YKHO):
YKHO.login()
YKHO.fr_blog_index = YKHO.en_blog_index.copy_for_translation(YKHO.fr_locale)
YKHO.de_blog_index = YKHO.en_blog_index.copy_for_translation(YKHO.de_locale)
YKHO.fr_blog_post = YKHO.en_blog_post.copy_for_translation(YKHO.fr_locale)
YKHO.de_blog_post = YKHO.en_blog_post.copy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YVRf(YKHO):\n YKHO.login()\n YKHO.fr_blog_index = YKHO.en_blog_index.copy_for_translation(YKHO.fr_locale)\n YKHO.de_blog_index = YKHO.en_blog_index.copy_for_translation(YKHO.de_locale)\n YKHO.fr_blog_post = YKHO.en_blog_post.copy_for_translation(YKHO.fr_locale)\n YKHO.de_blog_post = YKHO.en_blog... | [
"0.6345104",
"0.63098896",
"0.5931454",
"0.5797064",
"0.57853794",
"0.57045573",
"0.568899",
"0.56284195",
"0.55567646",
"0.549087",
"0.5488178",
"0.54736084",
"0.54512286",
"0.5443057",
"0.53974795",
"0.53561413",
"0.5353193",
"0.53478533",
"0.5313943",
"0.5244605",
"0.52300... | 0.74702215 | 0 |
Test the context info is correct in the confirm_delete.html template. | def lm6_(YKHO):
YKHO.login()
YKHO.fr_blog_index = YKHO.en_blog_index.copy_for_translation(YKHO.fr_locale)
YKHO.fr_blog_post = YKHO.en_blog_post.copy_for_translation(YKHO.fr_locale)
Zgcn = AY1p(YKHO.en_blog_post, recursive=False, parent=YKHO.en_blog_index, update_slug='alias-page-slug', user=None)
Zg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DlFY(YKHO):\n VA7R = YKHO.client.get('/papers/commentary/1/delete')\n YKHO.assertEqual(VA7R.status_code, 200)\n YKHO.assertTrue('object' in VA7R.context)\n YKHO.assertTemplateUsed(VA7R, 'base.html')\n YKHO.assertTemplateUsed(VA7R, 'confirm_delete.html')",
"def _4cr(VyuW):\n jI4j = _Yzj()\n ... | [
"0.7784873",
"0.68129754",
"0.6680758",
"0.6495699",
"0.6452206",
"0.6397493",
"0.62806404",
"0.62697196",
"0.6256095",
"0.6196811",
"0.61854",
"0.6152297",
"0.6134135",
"0.6126343",
"0.60810006",
"0.6049257",
"0.6019478",
"0.6010736",
"0.5992513",
"0.5991509",
"0.59868765",
... | 0.6753589 | 2 |
Return the information for group type and name. | def iGap(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aeBi(YKHO, IXKo, UeG8='exclusivity'):\n IKXK = YKHO.check_group_exists(IXKo)\n try:\n if IKXK is None:\n uBEK.log_info('Creating group')\n OeRI = YKHO.create_group(IXKo, UeG8)\n return (OeRI.json()['id'], OeRI.json()['members'])\n else:\n uBEK.log... | [
"0.68182933",
"0.6790353",
"0.65697926",
"0.65398145",
"0.63632655",
"0.63375264",
"0.62905514",
"0.6250018",
"0.62018716",
"0.62002045",
"0.6187684",
"0.6180423",
"0.6180334",
"0.61587197",
"0.6105385",
"0.61001325",
"0.60850614",
"0.6070986",
"0.60471135",
"0.60231036",
"0.... | 0.716048 | 0 |
Set atoms as new list. | def WRe6(YKHO, RR8p):
YKHO.__atoms = RR8p | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RR8p(YKHO, BWXx: Union[List[Atom], Atoms, None]):\n YKHO._atoms = geHR(BWXx) if BWXx is not None else None",
"def xSBA(YKHO):\n RR8p = []\n KgtG = []\n for asBq in YKHO.values():\n RR8p += [WhQ6 for WhQ6 in asBq.atoms]\n KgtG += [WhQ6 for WhQ6 in asBq.atoms if WhQ6.invariom_name is ... | [
"0.64921635",
"0.62474805",
"0.6131976",
"0.6116909",
"0.6065645",
"0.59862775",
"0.5974076",
"0.59594613",
"0.59221935",
"0.5892651",
"0.5850862",
"0.5796815",
"0.5751149",
"0.5737333",
"0.56685233",
"0.5596711",
"0.55773705",
"0.5567906",
"0.5566636",
"0.5546234",
"0.553856... | 0.7304434 | 0 |
assume energies has energy units and return flux in flux units. | def Rbl5(_owh, qbnw):
qbnw = rYO3.tonumpy(qbnw, rYO3.MeV)
eLgw = IcaR.get_dnde_mev(_owh, qbnw)
return rYO3.tosympy(eLgw, rYO3.ph / rYO3.cm ** 2 / rYO3.s / rYO3.MeV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shSu(YKHO, WKvO):\n return YKHO.cal_spec.get_flux(YKHO(WKvO))",
"def VOKl(YKHO):\n return uzJx.flux_measure(YKHO.ensemble_transition_matrix)",
"def shSu():\n RA_F = 0.01\n Z9rn = uv6v * 10 ** 2 / (A3Vt * hAuS)\n OK1G = 0.001626528 / uv6v\n zje2 = 3e-07\n saqR = 1.5e-07\n I9ur = (oT2... | [
"0.69974995",
"0.6963157",
"0.68555844",
"0.6633164",
"0.66011536",
"0.654915",
"0.6457882",
"0.6343487",
"0.6338429",
"0.63239986",
"0.6266599",
"0.62627566",
"0.62520486",
"0.62454754",
"0.62452394",
"0.620821",
"0.6168983",
"0.61646634",
"0.6155122",
"0.61509204",
"0.61449... | 0.0 | -1 |
assume energies has energy units and return flux in flux units. | def f5j7(_owh, GvHN, qbnw):
qbnw = rYO3.tonumpy(qbnw, rYO3.MeV)
mnTJ = IcaR.get_dnde_error_mev(_owh, GvHN, qbnw)
return rYO3.tosympy(mnTJ, rYO3.ph / rYO3.cm ** 2 / rYO3.s / rYO3.MeV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shSu(YKHO, WKvO):\n return YKHO.cal_spec.get_flux(YKHO(WKvO))",
"def VOKl(YKHO):\n return uzJx.flux_measure(YKHO.ensemble_transition_matrix)",
"def shSu():\n RA_F = 0.01\n Z9rn = uv6v * 10 ** 2 / (A3Vt * hAuS)\n OK1G = 0.001626528 / uv6v\n zje2 = 3e-07\n saqR = 1.5e-07\n I9ur = (oT2... | [
"0.6992403",
"0.6960369",
"0.68521965",
"0.66305506",
"0.65944445",
"0.6545115",
"0.64580876",
"0.6340136",
"0.6337281",
"0.63203204",
"0.62660766",
"0.6262048",
"0.62566465",
"0.62435746",
"0.62399626",
"0.6207805",
"0.6169491",
"0.616759",
"0.6151849",
"0.6145921",
"0.61428... | 0.0 | -1 |
asume energy in mev and return flux in units of ph/cm2/s/MeV. | def _MkY(_owh, qbnw):
if isinstance(_owh, dict):
return IcaR.get_dnde_mev(zHfi(_owh), qbnw)
elif isinstance(_owh, L27Y.Function):
return IcaR.get_dnde_mev_gtlike(_owh, qbnw)
elif isinstance(_owh, wOed):
return IcaR.get_dnde_mev_pointlike(_owh, qbnw)
else:
raise Xj9N('Unre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qSlP(cAlv):\n return 5.227e-06 * cAlv * cAlv",
"def M6MN(YKHO):\n return YKHO.momentum * YKHO.momentum / (2 * YKHO.mass)",
"def CmXG(ut5U):\n return PZyS(ut5U / 5.227e-06)",
"def VYvU(YKHO):\n dBA9, re2o, lcbZ, tTpl = (YKHO.nocc, YKHO.ntot, YKHO.gmo, YKHO.e)\n b10C = 0.0\n for YRbF in r... | [
"0.6786896",
"0.6494946",
"0.6491758",
"0.6481541",
"0.64616996",
"0.64482963",
"0.6383973",
"0.62659645",
"0.62378734",
"0.61247027",
"0.611011",
"0.6085963",
"0.6080484",
"0.6068067",
"0.6065201",
"0.6053852",
"0.59490985",
"0.5922774",
"0.59090346",
"0.5907285",
"0.5899263... | 0.0 | -1 |
asume energy in mev and return flux in units of ph/cm2/s/MeV. | def SaXK(_owh, GvHN, qbnw):
from .models import gtlike_unscale_all_parameters
_owh = gtlike_unscale_all_parameters(_owh)
rALc = oyIN.empty_like(qbnw)
for YRbF, VYvU in enumerate(qbnw):
qThC = L27Y.StringVector()
_owh.getParamNames(qThC)
d7pR = L27Y.dArg(VYvU)
WlSc = oyIN.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qSlP(cAlv):\n return 5.227e-06 * cAlv * cAlv",
"def M6MN(YKHO):\n return YKHO.momentum * YKHO.momentum / (2 * YKHO.mass)",
"def CmXG(ut5U):\n return PZyS(ut5U / 5.227e-06)",
"def VYvU(YKHO):\n dBA9, re2o, lcbZ, tTpl = (YKHO.nocc, YKHO.ntot, YKHO.gmo, YKHO.e)\n b10C = 0.0\n for YRbF in r... | [
"0.6786505",
"0.6493319",
"0.6490341",
"0.6479747",
"0.64619136",
"0.644653",
"0.63808095",
"0.6266306",
"0.6239441",
"0.61250776",
"0.61099756",
"0.6086027",
"0.6079539",
"0.6066857",
"0.6064897",
"0.6054837",
"0.5947557",
"0.5922441",
"0.59097433",
"0.59057546",
"0.58995396... | 0.0 | -1 |
Choose the peaks corresponding to point x,y | def ChBW(EzjL, WKvO, LVAh, YPaw=0.25):
cbZA = oyIN.sin(oyIN.radians(EzjL.omega))
SCpB = oyIN.cos(oyIN.radians(EzjL.omega))
r3R4 = oyIN.round((WKvO * SCpB + LVAh * cbZA) / YPaw).astype(int)
MyUE = oyIN.round(EzjL.dty / YPaw).astype(int)
I9Kg = EzjL.copy()
I9Kg.filter(MyUE == r3R4)
return I9Kg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TpFT(YKHO, **B2fa):\n TpFT, C9U5 = YKHO.peak_indices(**B2fa)\n return (YKHO.xs[TpFT], C9U5)",
"def v71E(YKHO, **B2fa):\n vmBb = {'width': 5}\n vmBb.update(B2fa)\n return Gaon.find_peaks(YKHO.ys, **vmBb)",
"def _7xm(HmAy, PPHi, LTIa=9):\n PPHi, HmAy = w6Gx(PPHi, HmAy)\n LTIa += 1 - LTIa... | [
"0.70081353",
"0.69391865",
"0.68195677",
"0.6759043",
"0.6710816",
"0.6409172",
"0.63777024",
"0.63564837",
"0.63548744",
"0.6336582",
"0.63109726",
"0.62950945",
"0.62950677",
"0.62950677",
"0.62231237",
"0.62030494",
"0.6187273",
"0.61756575",
"0.61653316",
"0.6165042",
"0... | 0.0 | -1 |
The view should only operate on profile items belonging to the specified topic. | def hGLD(CTR7, O0mU):
ZfUD = O0mU()
CTR7(profile_item=ZfUD)
CTR7()
tTee = RCd1.ListEntryListView()
tTee.kwargs = {'pk': ZfUD.pk}
assert list(tTee.get_queryset()) == list(ZfUD.list_entries.all()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n return FYrf.ProfileItem.objects.filter(topic=YKHO.kwargs.get('pk'))",
"def k66M(YKHO):\n return FYrf.ProfileTopic.objects.filter(profile__pk=YKHO.kwargs.get('pk'))",
"def k66M(YKHO, QePW):\n umWR = super(VCwN, YKHO).get_queryset(QePW)\n if QePW.user.is_superuser:\n return u... | [
"0.7220275",
"0.67885256",
"0.6610144",
"0.5929561",
"0.591494",
"0.5904914",
"0.5812586",
"0.5808425",
"0.5755044",
"0.57337576",
"0.57100403",
"0.5693986",
"0.56728226",
"0.5651503",
"0.56485724",
"0.56184536",
"0.56066394",
"0.5564422",
"0.5554585",
"0.5519211",
"0.5512079... | 0.0 | -1 |
Checks whether the given object is an estimator of sklearnlibrary (Code from sklearn.base.clone()) | def n2nK(YKHO, BHCt):
return hasattr(BHCt, 'get_params') and (not isinstance(BHCt, type)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HNRA(YEnM):\n if not as9g(YEnM):\n YEnM = type(YEnM)\n JgUE = issubclass(YEnM, afK8)\n QSoC = issubclass(YEnM, PpMM)\n Udax = JgUE and (not QSoC)\n return Udax",
"def u_ur(YEnM):\n if as9g(YEnM):\n return issubclass(YEnM, nDw0)\n else:\n return isinstance(YEnM, nDw0)... | [
"0.8051364",
"0.78775334",
"0.76269525",
"0.7348721",
"0.7162278",
"0.696898",
"0.6945187",
"0.6865845",
"0.6823968",
"0.6768385",
"0.67387277",
"0.6689152",
"0.63498086",
"0.6218306",
"0.6176209",
"0.60381263",
"0.59505427",
"0.59373426",
"0.5926252",
"0.5922796",
"0.5903188... | 0.74265784 | 3 |
Initialize the ball and its starting position | def FIMM(YKHO, Vjhr):
YKHO.screen = Vjhr
YKHO.image = a9eO.image.load('Images/ball.bmp')
YKHO.rect = YKHO.image.get_rect()
YKHO.screen_rect = Vjhr.get_rect()
YKHO.rect.centerx = YKHO.screen_rect.centerx
YKHO.rect.bottom = YKHO.screen_rect.centerx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, oeNL=(0, 0)):\n super().__init__()\n YKHO.penup()\n YKHO.shapesize(stretch_wid=1, stretch_len=1)\n YKHO.color('white')\n YKHO.shape('circle')\n YKHO.setpos(oeNL)\n YKHO.x_dir = 1\n YKHO.y_dir = 1",
"def FIMM(YKHO, WKvO=140, LVAh=140):\n super(mEGe, YKHO).__init__(image=m... | [
"0.7526015",
"0.74091625",
"0.729483",
"0.7253316",
"0.71886206",
"0.70889515",
"0.70707536",
"0.7052182",
"0.6984171",
"0.69805896",
"0.6899886",
"0.68200874",
"0.6811955",
"0.6733119",
"0.67150885",
"0.66971225",
"0.6684712",
"0.6611438",
"0.66027737",
"0.6567602",
"0.65643... | 0.7121195 | 5 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, juJS, qtWj):
print('the learning rate is set to {0:.5f}'.format(juJS[qtWj] * qIxc.lr))
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = juJS[qtWj] * qIxc.lr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.7912448",
"0.7905818",
"0.78496826",
"0.77745205",
"0.77331823",
"0.77298284",
"0.77224445",
"0.77215135",
"0.77187204",
"0.77081376",
"0.7692789",
"0.7673609",
"0.7664976",
"0.7664976",
"0.7664976",
"0.7654216",
"0.76410955",
"0.76391095",
"0.76370764",
"0.7625343",
"0.76... | 0.75664645 | 35 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.76427615",
"0.74189496",
"0.7418079",
"0.72710466",
"0.72456723",
"0.72446615",
"0.7237539",
"0.72213703",
"0.7210107",
"0.7058935",
"0.6852219",
"0.6786084",
"0.67836976",
"0.6768417",
"0.67273885",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.... | 0.0 | -1 |
Loads the Inception graph and classes | def srj7(YKHO):
YKHO.reqsize = YKHO.confs['Classifier']['ImageSize']
with open(YKHO.confs['Classifier']['NetworkPath'] + YKHO.confs['Classifier']['InceptionGraph'], mode='rb') as eHNT:
lP0p = eHNT.read()
YKHO.allocateGraph(lP0p)
with open(YKHO.confs['Classifier']['DatasetDir'] + '/' + YKHO.confs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zgmU():\n with ZylS.gfile.FastGFile('./models/inception_v4.pb', 'rb') as eHNT:\n r8JX = ZylS.GraphDef()\n r8JX.ParseFromString(eHNT.read())\n bGrB = ZylS.import_graph_def(r8JX, name='')",
"def uyMl(YKHO):\n YKHO.pred_net.load((YKHO.save_path / 'iqn_pred_net').absolute().as_posix())... | [
"0.6511181",
"0.64528036",
"0.64337915",
"0.61772007",
"0.61719984",
"0.61360323",
"0.6123919",
"0.6072896",
"0.60557735",
"0.60510826",
"0.6048289",
"0.601576",
"0.5998613",
"0.5986519",
"0.5985819",
"0.5976342",
"0.5969458",
"0.5956845",
"0.5922292",
"0.58771574",
"0.586822... | 0.8139506 | 0 |
Go to test page | def FCbF(YKHO):
YKHO.driver.get('http://taqc-opencart.epizy.com/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r6eW(YKHO):\n im04 = YKHO.app.get('/')\n assert 'Enter your url here' in im04.data",
"def GvGQ(YKHO):\n YKHO.selenium.get('{}/'.format(YKHO.live_server_url))",
"def iEax(YKHO, bD7m):\n YKHO.driver.get(bD7m)",
"def HKrV(YKHO):\n YKHO.page.open_site(NAbY.PREVIOUS_LINK)\n YKHO.page.fill_al... | [
"0.7551494",
"0.7259827",
"0.7064684",
"0.70475477",
"0.7046293",
"0.6929917",
"0.6924912",
"0.6918897",
"0.69008166",
"0.68792135",
"0.68698084",
"0.68595827",
"0.6844422",
"0.68273646",
"0.6810299",
"0.6784199",
"0.67750263",
"0.67750263",
"0.67746055",
"0.6754976",
"0.6750... | 0.0 | -1 |
Return the index.html page of the Password Universe website. | def d6pt():
return (TvZl('index.html'), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def t7ng():\n return TvZl('index.html')",
"def b8V_():\n return TvZl('index.html')",
"def b8V_():\n return TvZl('index.html')",
"def Ozko():\n return TvZ... | [
"0.71260875",
"0.7054246",
"0.7054246",
"0.7054246",
"0.70494664",
"0.70494664",
"0.70068157",
"0.70067465",
"0.7004832",
"0.69887996",
"0.69621223",
"0.69468725",
"0.6938778",
"0.6937886",
"0.6933447",
"0.69050145",
"0.6891349",
"0.6890243",
"0.6870681",
"0.6870681",
"0.6870... | 0.6891909 | 16 |
Test that root does not have mc_select_envs (it does not make sense to exclude everything) | def zFqz():
with cR0t(AttributeError) as wrFM:
@vVq6(UsoG, load_now=True)
def GPtr(QZcN):
QZcN.mc_select_envs(exclude=[XuKm])
assert "'McConfigRoot' object has no attribute 'mc_select_envs'" in str(wrFM.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MDqq():\n with cR0t(AttributeError) as wrFM:\n with uaMr() as QZcN:\n QZcN.mc_select_envs()\n assert \"'McConfigRoot' object has no attribute 'mc_select_envs'\" in str(wrFM.value)",
"def DrQd():\n GPtr = PSrQ(env_var='DO_NOT_USE', env_prefix='DO_NOT_USE', entry_point_name='DO_NOT_U... | [
"0.7592168",
"0.61023694",
"0.59756315",
"0.59184957",
"0.591061",
"0.59063035",
"0.5830476",
"0.5829531",
"0.57927436",
"0.57542735",
"0.5740126",
"0.573774",
"0.5733296",
"0.57254755",
"0.57113105",
"0.5710605",
"0.5707892",
"0.569747",
"0.56814545",
"0.5673697",
"0.5667233... | 0.796145 | 0 |
Wrapper around ndarray aliasing hack. >>> x = array([1.0, 2.0, 3.0, 4.0, 5.0]) >>> array_equal(x, _deserialize_byte_array(x.shape, x.data, 0)) True >>> x = array([1.0, 2.0, 3.0, 4.0]).reshape(2,2) >>> array_equal(x, _deserialize_byte_array(x.shape, x.data, 0)) True | def wZKB(ROpF, pLEX, vgXP):
wc14 = gyIm(shape=ROpF, buffer=pLEX, offset=vgXP, dtype='float64', order='C')
return wc14.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zPaD(XOOk, pHXX):\n try:\n return XOOk.__array_interface__['data'] == pHXX.__array_interface__['data'] and XOOk.strides == pHXX.strides\n except AttributeError:\n return False",
"def eGui(DDLl):\n WKvO = oyIN.random.rand(10, 10)\n LuOt = DDLl.from_numpy(WKvO)\n z_f_ = DDLl.to_num... | [
"0.6361858",
"0.6245808",
"0.6227964",
"0.6193836",
"0.6155957",
"0.60416263",
"0.59381014",
"0.59291565",
"0.5817922",
"0.57907975",
"0.5745442",
"0.57209456",
"0.5706878",
"0.568244",
"0.568091",
"0.5647656",
"0.56448275",
"0.56415445",
"0.5618394",
"0.56103987",
"0.5607068... | 0.5615291 | 19 |
Deserialize a double vector from a mutually understood format. >>> x = array([1.0, 2.0, 3.0, 4.0, 1.0, 0.0, 0.0]) >>> array_equal(x, _deserialize_double_vector(_serialize_double_vector(x))) True | def HNra(pLEX):
if type(pLEX) != bytearray:
raise TypeError('_deserialize_double_vector called on a %s; wanted bytearray' % type(pLEX))
if len(pLEX) < 16:
raise TypeError('_deserialize_double_vector called on a %d-byte array, which is too short' % len(pLEX))
if len(pLEX) & 7 != 0:
ra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rZg2(Ty9i):\n if type(Ty9i) != gyIm:\n raise TypeError('_serialize_double_vector called on a %s; wanted ndarray' % type(Ty9i))\n if Ty9i.dtype != HUFt:\n raise TypeError('_serialize_double_vector called on an ndarray of %s; wanted ndarray of float64' % Ty9i.dtype)\n if Ty9i.ndim != 1:\n ... | [
"0.6707795",
"0.6113284",
"0.5786269",
"0.56795543",
"0.5495888",
"0.54919577",
"0.5456707",
"0.5354497",
"0.53364736",
"0.5333154",
"0.53231746",
"0.53171945",
"0.52942795",
"0.5292617",
"0.52296126",
"0.52151054",
"0.5191334",
"0.50949425",
"0.50904024",
"0.5087779",
"0.504... | 0.7254384 | 0 |
Check that x is a onedimensional vector of the right shape. This is a temporary hackaround until I actually implement bulk predict. | def GMMC(WKvO, GUUu):
if type(WKvO) == gyIm:
if WKvO.ndim == 1:
if WKvO.shape == GUUu.shape:
pass
else:
raise RuntimeError('Got array of %d elements; wanted %d' % (ROpF(WKvO)[0], ROpF(GUUu)[0]))
else:
raise RuntimeError('Bulk predic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Auqn(WKvO):\n return len(WKvO.shape) == 1",
"def xmkl(WKvO):\n return WKvO.ndim == 1 or (WKvO.ndim == 2 and (WKvO.shape[0] == 1 or WKvO.shape[1] == 1))",
"def E464(WKvO):\n return WKvO.ndim == 1",
"def Fuw0(YKHO, EcVT):\n return all([EcVT.shape[YRbF] == YKHO.train_shape[YRbF] for YRbF in rang... | [
"0.7342536",
"0.6889477",
"0.6531228",
"0.63374406",
"0.61370045",
"0.61367226",
"0.6098564",
"0.607217",
"0.60542035",
"0.59740096",
"0.59663516",
"0.59615034",
"0.5911842",
"0.5901362",
"0.5886204",
"0.58270955",
"0.57948434",
"0.5725792",
"0.5725418",
"0.5720275",
"0.56826... | 0.6094588 | 7 |
Stays the same for a given instance. | def Q0iB(YKHO):
return Hy7s.path.join(YKHO.workdir, 'params.txt') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAOR(YKHO, KAOR):\n YKHO._instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",... | [
"0.56533366",
"0.55378175",
"0.55378175",
"0.55378175",
"0.55378175",
"0.55378175",
"0.54724264",
"0.5452471",
"0.5417543",
"0.5372319",
"0.5335833",
"0.5326472",
"0.51769525",
"0.5175158",
"0.5168104",
"0.5144223",
"0.51336",
"0.5116122",
"0.5110856",
"0.5081676",
"0.5040539... | 0.0 | -1 |
Stays the same for a given instance. | def Id3V(YKHO):
return Hy7s.path.join(YKHO.workdir, 'conv.txt') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAOR(YKHO, KAOR):\n YKHO._instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",... | [
"0.56533366",
"0.55378175",
"0.55378175",
"0.55378175",
"0.55378175",
"0.55378175",
"0.54724264",
"0.5452471",
"0.5417543",
"0.5372319",
"0.5335833",
"0.5326472",
"0.51769525",
"0.5175158",
"0.5168104",
"0.5144223",
"0.51336",
"0.5116122",
"0.5110856",
"0.5081676",
"0.5040539... | 0.0 | -1 |
Stays the same for a given instance. | def QCmP(YKHO):
return Hy7s.path.join(YKHO.workdir, 'default.psf') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAOR(YKHO, KAOR):\n YKHO._instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",... | [
"0.56533366",
"0.55378175",
"0.55378175",
"0.55378175",
"0.55378175",
"0.55378175",
"0.54724264",
"0.5452471",
"0.5417543",
"0.5372319",
"0.5335833",
"0.5326472",
"0.51769525",
"0.5175158",
"0.5168104",
"0.5144223",
"0.51336",
"0.5116122",
"0.5110856",
"0.5081676",
"0.5040539... | 0.0 | -1 |
Clip bboxes to fit the image shape. | def duQR(c8oy, yOrK):
assert c8oy.shape[-1] % 4 == 0
yh94 = oyIN.empty_like(c8oy, dtype=c8oy.dtype)
yh94[..., 0::2] = oyIN.maximum(oyIN.minimum(c8oy[..., 0::2], yOrK[1] - 1), 0)
yh94[..., 1::2] = oyIN.maximum(oyIN.minimum(c8oy[..., 1::2], yOrK[0] - 1), 0)
return yh94 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ltpr(YKHO, c8oy, gpgb, ur7t):\n with ZylS.variable_scope('clip_bboxes'):\n gpgb = ZylS.cast(gpgb, ZylS.float32)\n ur7t = ZylS.cast(ur7t, ZylS.float32)\n LVAh, WKvO, MKlR, yzQ0 = ZylS.split(c8oy, 4, axis=1)\n WioY = ZylS.minimum(ZylS.maximum(WKvO - yzQ0 / 2.0, 0.0), gpgb)\n ... | [
"0.778881",
"0.7772928",
"0.7660154",
"0.75552136",
"0.75552136",
"0.7549674",
"0.7549674",
"0.7529571",
"0.7487794",
"0.7414111",
"0.74131626",
"0.7376993",
"0.72794527",
"0.72648734",
"0.7036597",
"0.7036597",
"0.7002851",
"0.69426197",
"0.69376284",
"0.6869409",
"0.6854082... | 0.8199216 | 0 |
Show an index page. | def t7ng():
return TvZl('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j4m5():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html', title='Index')",
"def d6pt():\n return TvZl('pages/index.html', isNav=True)",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')... | [
"0.8531908",
"0.80338854",
"0.7943412",
"0.77842605",
"0.77842605",
"0.7766452",
"0.7744886",
"0.76850814",
"0.76816297",
"0.7678797",
"0.7672546",
"0.7672546",
"0.7657335",
"0.76573086",
"0.7628134",
"0.76141024",
"0.76105523",
"0.75957036",
"0.75957036",
"0.75957036",
"0.75... | 0.7667954 | 14 |
Constructor to store the first name,last name and health of a patient instance. | def FIMM(YKHO, c9ua, zp3f, ZnpV):
super(Iaah, YKHO).__init__(c9ua, zp3f)
if ZnpV < 0:
'Health points should not go below zero.'
YKHO.health = 0
elif ZnpV > 100:
"Health points can't be more than 100."
YKHO.health = 100
else:
YKHO.health = ZnpV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, fcCO, jBHA, FZsn, jGRS):\n YKHO.firstname = fcCO\n YKHO.lastname = jBHA\n YKHO.healthstatus = FZsn\n YKHO.status = jGRS",
"def FIMM(YKHO, MlTh):\n G9jH.info('Creating patient {}...'.format(MlTh))\n YKHO.patient_number = MlTh\n YKHO.signals, YKHO.additional_fields = YKHO.get_ra... | [
"0.71669364",
"0.65691054",
"0.65114737",
"0.64892024",
"0.6474344",
"0.64555013",
"0.64555013",
"0.64555013",
"0.64555013",
"0.64555013",
"0.64555013",
"0.64555013",
"0.64555013",
"0.64144146",
"0.63724023",
"0.6336638",
"0.6305234",
"0.6273053",
"0.6251734",
"0.62514305",
"... | 0.7335338 | 0 |
Get the entry for the given row and column | def IDYM(YKHO, begg: int, a4rF: str) -> str:
return YKHO.get_entry_from_row(YKHO.content[begg], a4rF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3sq(YKHO, rdlD, iVRZ):\n if rdlD is None or iVRZ is None:\n raise NotImplementedError()\n return YKHO.thing[YKHO.convertColumn(row=rdlD, column=iVRZ)]",
"def bwbz(YKHO, rdlD, iVRZ):\n return YKHO.sudoku_matrix[rdlD][iVRZ]",
"def bTKY(YKHO, YRbF, r845):\n return YKHO.data[YKHO.columns * ... | [
"0.7507318",
"0.7456228",
"0.74014276",
"0.7325261",
"0.72512394",
"0.7212305",
"0.71460277",
"0.7102703",
"0.7090901",
"0.7063147",
"0.7022075",
"0.7019966",
"0.7002386",
"0.6979934",
"0.6979934",
"0.6979934",
"0.69701535",
"0.6965903",
"0.6949171",
"0.69463885",
"0.6943153"... | 0.7086427 | 9 |
Get the entry belonging to the given column from the given row | def s_9f(YKHO, rdlD: [str], a4rF: str) -> str:
f1pu = YKHO.header.index(a4rF)
return rdlD[f1pu] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gXxG(YKHO, rdlD):\n return YKHO.sudoku_matrix[rdlD]",
"def NMoC(YKHO, z0q4, begg):\n YKHO.check_for_column(z0q4)\n return YKHO.data[z0q4][begg]",
"def Zmkp(YKHO, rdlD, tcLV):\n return YKHO[rdlD][YKHO._columns[tcLV]]",
"def Iov8(YKHO, rdlD, iVRZ, WmM4=None):\n nPrm = YKHO.data\n if rdlD ... | [
"0.7296542",
"0.7152905",
"0.71496636",
"0.7088844",
"0.6985232",
"0.6937727",
"0.6935333",
"0.6747563",
"0.6728058",
"0.6713525",
"0.6684846",
"0.6662804",
"0.66605157",
"0.66015303",
"0.65883416",
"0.65693355",
"0.6501107",
"0.6488285",
"0.6462475",
"0.6456663",
"0.6439121"... | 0.78629786 | 0 |
very very naive pluralize, just adds s | def hQ0A(mLGw, vIwR, rhd_=2):
if round(ZjSO(mLGw), rhd_) > round(ZjSO('1.00'), rhd_):
return '%ss' % vIwR
return vIwR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hQ0A(exwG, KCHu):\n if exwG == 1:\n return f'1 {KCHu}'\n else:\n return f'{exwG} {KCHu}s'",
"def nd0d(exwG):\n if exwG == 1:\n return ''\n else:\n return 's'",
"def nd0d(exwG):\n if exwG != 1:\n return 's'\n else:\n return ''",
"def nd0d(PXGI, Z... | [
"0.79829484",
"0.7915699",
"0.78340757",
"0.7617053",
"0.7535224",
"0.730487",
"0.70135933",
"0.698556",
"0.68743074",
"0.68722934",
"0.6788626",
"0.67601335",
"0.6614811",
"0.66109085",
"0.6584668",
"0.651783",
"0.649231",
"0.64409363",
"0.64108646",
"0.63652754",
"0.6350769... | 0.6653324 | 12 |
gets the value from the configuration object | def kTCt(YKHO, H5ew):
return YKHO.config[H5ew] if H5ew in YKHO.config.keys() else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZR0i(YKHO, mWFP):\n if mWFP in YKHO.config_values:\n return YKHO.config_values[mWFP]",
"def ge7L(YKHO, XLMv, H5ew):\n return GPtr.get(XLMv, H5ew)",
"def BWXx(YKHO) -> str:\n return YKHO._config.get('value')",
"def Zmkp(YKHO, H5ew):\n if H5ew not in YKHO._config:\n raise ValueErr... | [
"0.77354336",
"0.7606471",
"0.7420668",
"0.7387481",
"0.7344595",
"0.71818465",
"0.71232295",
"0.70952135",
"0.7087758",
"0.70867974",
"0.7083559",
"0.70619535",
"0.7059382",
"0.70289695",
"0.6982438",
"0.69510937",
"0.6898194",
"0.6863989",
"0.68603384",
"0.6844882",
"0.6830... | 0.6711421 | 33 |
u"""Divide gray image into blocks. | def n5nD(VXjJ, zNig):
l5eN = int(VXjJ.shape[0])
Kmi0 = int(VXjJ.shape[1])
de0z = int(zNig[0])
ypq7 = int(zNig[1])
if l5eN % de0z != 0 or Kmi0 % ypq7 != 0:
print('Please give an appropriate bloxk size.')
print('You can use only numbers that are divisors of image height and width as bl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DxWg(rmyT):\n paO3, Pjj0, de0z, ypq7 = rmyT.shape\n LNo8 = oyIN.empty((0, Pjj0 * ypq7), int)\n for WKvO in rmyT:\n wUHg = oyIN.empty((de0z, 0), int)\n for XkN1 in WKvO:\n wUHg = oyIN.concatenate([wUHg, XkN1], axis=1)\n LNo8 = oyIN.concatenate([LNo8, wUHg], axis=0)\n ... | [
"0.6731676",
"0.6658642",
"0.6568362",
"0.606704",
"0.59839576",
"0.5975712",
"0.59656936",
"0.5910308",
"0.58338696",
"0.58223164",
"0.58062303",
"0.5800758",
"0.5782312",
"0.57337934",
"0.56755203",
"0.5625667",
"0.562036",
"0.5574986",
"0.55627763",
"0.55623704",
"0.555712... | 0.7180591 | 0 |
u"""Divide color image into blocks. | def HmnE(VXjJ, zNig):
l5eN = int(VXjJ.shape[0])
Kmi0 = int(VXjJ.shape[1])
de0z = int(zNig[0])
ypq7 = int(zNig[1])
mfYs = int(VXjJ.shape[2])
if l5eN % de0z != 0 or Kmi0 % ypq7 != 0:
print('Please give an appropriate bloxk size.')
print('You can use only numbers that are divisors o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hLSv(LNo8, dqIL):\n VXjJ = LNo8.convert('L') if LNo8.mode != 'L' else LNo8\n yzQ0, MKlR = VXjJ.size\n SQ3m = []\n global opt\n for exwG in range(int(y7GR.imblev)):\n VXjJ = VXjJ.filter(x5w2.SMOOTH_MORE)\n clsG(VXjJ, [WKvO for WKvO in range(256) if WKvO % int(y7GR.impalred) == 0])\n ... | [
"0.65155435",
"0.624646",
"0.6239561",
"0.62394613",
"0.6135836",
"0.6135836",
"0.60933346",
"0.6022509",
"0.59738773",
"0.59429914",
"0.59008485",
"0.58460575",
"0.58390707",
"0.583048",
"0.57971483",
"0.5779264",
"0.5772563",
"0.5752157",
"0.5730624",
"0.57300776",
"0.57203... | 0.7383179 | 0 |
u"""Get only Y from YCC image. | def yDCK(VXjJ):
H2v2 = VXjJ.shape[0]
TVTK = VXjJ.shape[1]
CjQX = oyIN.empty([H2v2, TVTK])
for YRbF in oyIN.arange(H2v2):
for r845 in oyIN.arange(TVTK):
CjQX[YRbF][r845] = VXjJ[YRbF][r845][0]
return CjQX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vHO5(LVAh):\n return NAx7 + Npgh(LVAh - pF1u)",
"def yDCK():\n yIVm = EyRT(['shape_y', 'type_y'])\n return R17P(name='y_original', arr_shape=yIVm['shape_y'], arr_type=yIVm['type_y'])",
"def Qfh0(VXjJ):\n return heR2(VXjJ, 1, Vq3K(VXjJ, ignore_ch=2))",
"def LVAh(YKHO, KCHu):\n return YKHO._... | [
"0.65909845",
"0.6411533",
"0.63502985",
"0.6156765",
"0.60780954",
"0.6013728",
"0.6013346",
"0.5999833",
"0.59865606",
"0.5937645",
"0.5896112",
"0.58949685",
"0.5894247",
"0.5873268",
"0.585955",
"0.58450264",
"0.57808733",
"0.5779396",
"0.5777858",
"0.5773827",
"0.5767510... | 0.6605728 | 0 |
Get str representation of Timestamp obj. | def gTzM(YKHO):
return YKHO.PATTERN % (YKHO.hours, YKHO.minutes, YKHO.seconds, YKHO.milliseconds) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U1_3(YKHO, yl4j: Optional[datetime.tzinfo]=None, ooLV: str='auto') -> str:\n JRYC = qcWV.datetime.fromtimestamp(YKHO.timestamp / 1000, yl4j)\n JRYC += qcWV.timedelta(microseconds=YKHO.timestamp % 1000000)\n return JRYC.isoformat(sep=' ', timespec=ooLV)",
"def pbe6(YKHO, i8WE):\n g55J = qcWV.datet... | [
"0.7700884",
"0.7622101",
"0.71152836",
"0.6918671",
"0.68974334",
"0.68974334",
"0.68914753",
"0.6861705",
"0.68483186",
"0.68179756",
"0.68154323",
"0.67821974",
"0.67821974",
"0.6756783",
"0.674591",
"0.668406",
"0.66679394",
"0.6653605",
"0.66450053",
"0.6610342",
"0.6592... | 0.6435426 | 28 |
Sets the learning rate to the initial LR decayed by D every E epochs | def e_63(y7GR, qtWj):
Csk6, tTpl = qIxc.lr_decay
tspZ = qIxc.lr * Csk6 ** (-(qtWj // tTpl))
for Lwm5 in y7GR.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1j9(ouZy, K0do, qtWj):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ",
"def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return",
"def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsi... | [
"0.79788506",
"0.7453891",
"0.7453891",
"0.74239624",
"0.737331",
"0.7358115",
"0.73497933",
"0.73324907",
"0.72884756",
"0.7259489",
"0.7258635",
"0.72108644",
"0.7198025",
"0.71921885",
"0.71896166",
"0.717072",
"0.71688414",
"0.7167585",
"0.71649855",
"0.7160978",
"0.71523... | 0.7132064 | 24 |
Takes a dictionary and writes it to JSON file. | def uP8n(wM3v, mUif):
with open(wM3v, 'w+') as ytgA:
qQXR.dump(mUif, ytgA, indent=4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0cv(pmON, cmPJ):\n jcIu = qQXR.dumps(cmPJ, indent=4)\n with open(pmON, 'w', encoding='utf-8') as eHNT:\n eHNT.write(jcIu)",
"def M8gv(dict, nUeQ):\n with open(nUeQ, 'w') as eHNT:\n qQXR.dump(dict, eHNT, indent=2)\n return nUeQ",
"def uP8n(cmPJ, Ux0P):\n with open(Ux0P, 'w') as... | [
"0.8643125",
"0.86294276",
"0.85052043",
"0.85014194",
"0.841116",
"0.81844026",
"0.81315315",
"0.81022525",
"0.80936927",
"0.8084935",
"0.807246",
"0.80614495",
"0.8059166",
"0.795476",
"0.78906167",
"0.78708726",
"0.7823375",
"0.7806617",
"0.78030896",
"0.77584386",
"0.7751... | 0.8544851 | 2 |
Takes a JSON file and returns a dictionary | def PSj2(wM3v):
with open(wM3v, 'r') as ytgA:
nPrm = qQXR.load(ytgA)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nw5e(wM3v: str) -> dict:\n zgjV = {}\n if not Hy7s.path.isfile(wM3v):\n UtPW(Hy7s.path.basename(wM3v) + ' does not exist.')\n HwRy.exit(1)\n with open(wM3v) as eHNT:\n zgjV = qQXR.load(eHNT)\n return zgjV",
"def D20L(aRNY):\n with open(aRNY) as ECmi:\n tbx9 = qQXR.l... | [
"0.8422568",
"0.8301822",
"0.8219417",
"0.8140747",
"0.80515075",
"0.80420357",
"0.7942872",
"0.7899943",
"0.7843489",
"0.78176135",
"0.7786652",
"0.77566785",
"0.77397615",
"0.7688224",
"0.7687582",
"0.7679812",
"0.7628684",
"0.7620761",
"0.7614746",
"0.7612159",
"0.7604614"... | 0.76727957 | 16 |
The min played from all songs | def NHCc():
yE2z = jwfB.objects.filter(score__gte=0).aggregate(XgIN('played'))
if yE2z['played__min'] is None:
Aofo = 0
else:
Aofo = yE2z['played__min']
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QEiI(YKHO):\n return YKHO._min_players",
"def bYEU(YKHO):\n W7M9 = g5js.objects.filter(played=False, playtime__lte=qcWV.datetime.now()).order_by('-priority', 'id')\n if not W7M9:\n W7M9 = g5js.objects.filter(played=False, playtime=None).order_by('-priority', 'id')\n if gCuF.PLAY_JINGLES:\n... | [
"0.65163004",
"0.6432951",
"0.62016034",
"0.6162245",
"0.61431795",
"0.61414146",
"0.6057275",
"0.60077447",
"0.58519214",
"0.57888436",
"0.57389116",
"0.57225204",
"0.57199043",
"0.57173324",
"0.5711706",
"0.57039195",
"0.5695126",
"0.5690211",
"0.56678027",
"0.5665134",
"0.... | 0.7974759 | 0 |
Remove and return top element of Stack self. Assume Stack self is not emp. >>> s = Stack() >>> s.add(5) >>> s.add(7) >>> s.remove() 7 | def kSdD(YKHO) -> object:
return YKHO._contains.pop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSdD(YKHO):\n return YKHO.stack_list.pop()",
"def Hrgs(YKHO):\n tlxW = YKHO.list[len(YKHO.list) - 1]\n YKHO.list.remove(tlxW)\n return tlxW",
"def BEuN(YKHO) -> ImMB:\n if YKHO.is_empty():\n raise IndexError('pop from empty stack')\n else:\n assert isinstance(YKHO.top, o7DN)... | [
"0.80629367",
"0.7931176",
"0.7917126",
"0.7774958",
"0.7739002",
"0.7729922",
"0.77208126",
"0.76893616",
"0.7678212",
"0.7652607",
"0.76382715",
"0.7633024",
"0.761818",
"0.760966",
"0.75917655",
"0.75876814",
"0.754995",
"0.75227964",
"0.75086695",
"0.74909174",
"0.7467124... | 0.0 | -1 |
Return whether Stack self is empty. >>> s = Stack() >>> s.is_empty() True >>> s.add(5) >>> s.is_empty() False | def FBfn(YKHO) -> bool:
return len(YKHO._contains) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_stack) == 0",
"def FBfn(YKHO):\n if YKHO.num_items == 0:\n return True\n else:\n return False",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YKHO):\n return YKHO._stack_items == []",
"def FBfn(YKHO):\n return not YKHO._stac... | [
"0.855077",
"0.8483018",
"0.84812194",
"0.83824253",
"0.8365015",
"0.8311074",
"0.82961464",
"0.8262513",
"0.8237809",
"0.81858057",
"0.81858057",
"0.8162426",
"0.81405157",
"0.81287754",
"0.81247586",
"0.81058663",
"0.8104045",
"0.8104045",
"0.8080431",
"0.80754447",
"0.8036... | 0.0 | -1 |
takes the sequence column of a wga.bed and returns true if INDEL is reference specific | def HZGb(jWe2):
bf9h = jWe2[0]
yb8D = jWe2[1:]
for IQVR in yb8D:
if IQVR.count('-') != yb8D[0].count('-'):
return False
if bf9h.count('-') == yb8D[0].count('-'):
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lInb(wEf2):\n return mrqe.match(wEf2)",
"def gggD(l7AA: str) -> bool:\n Jo1h = {'A', 'G', 'T', 'C', 'N'}\n MYz3 = {KCHu.upper() for KCHu in l7AA}\n return MYz3.issubset(Jo1h)",
"def FYXB(YKHO, Q6uT):\n return bool(mwrK.faidx_has_seq(YKHO._fai, Q6uT))",
"def LU0k(hdWx, wzH_=6):\n for P8o... | [
"0.6160675",
"0.5821415",
"0.57303554",
"0.56204385",
"0.55308646",
"0.55237347",
"0.5521176",
"0.5458686",
"0.5451818",
"0.53763634",
"0.53569275",
"0.5340711",
"0.53387123",
"0.5326899",
"0.529347",
"0.5272458",
"0.52553964",
"0.52283573",
"0.5220181",
"0.52161914",
"0.5202... | 0.563189 | 3 |
Reset all of the InferenceEngine's caches. | def SiRx(YKHO):
YKHO.cache = TAb_(loop=YKHO.loop, keycalc=YKHO.compute_ref, keytransform=YKHO.get_actual_ref)
YKHO.reference_map = {}
YKHO.constructors = {x9nG: sDym() for x9nG, sDym in YKHO._constructors.items()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.simple_cache = {}\n YKHO.complex_cache = {}\n YKHO.target_cache = {}",
"def jYKP(YKHO):\n YKHO.izx.reset_cache()\n YKHO.ezx.reset_cache()",
"def jYKP(YKHO):\n YKHO.cache = [None] * YKHO.n_layers\n YKHO.offset = 0\n bo34.debug('Reset cache.')",
"def jYKP(YKHO):\n... | [
"0.7868653",
"0.7644266",
"0.74462676",
"0.70547193",
"0.7020653",
"0.69841766",
"0.6940243",
"0.6937187",
"0.6867262",
"0.68052256",
"0.672163",
"0.67167383",
"0.6698589",
"0.6693518",
"0.66860414",
"0.6682639",
"0.66790634",
"0.6634859",
"0.6626176",
"0.6604577",
"0.6604063... | 0.7343298 | 3 |
App route function for the homepage. | def kZiy():
tLbq = None
if 'email' in sGQh:
tLbq = True
QTBn = ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in range(32)))
sGQh['state'] = QTBn
LeZt = cuiw.query(eorc).order_by(eorc.name).all()
ZT1E = cuiw.query(QKm6).order_by(QKm6.date_created.desc()).limit(10)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n G9jH.info('Entering route: HOME')\n G9jH.info('Rendering template: main.html')\n return TvZl('main.html')",
"def oUar(QePW):\n bD7m = QePW.route_url('home', _app_url=NxLh(QePW))\n return MEVA(location=bD7m)",
"def C_QL():\n return vKnz('index.html')",
"def vja_():\n return ... | [
"0.78022426",
"0.7568384",
"0.7434946",
"0.735678",
"0.7213179",
"0.7199198",
"0.7145265",
"0.71114254",
"0.7109418",
"0.7098216",
"0.709711",
"0.70954907",
"0.70900023",
"0.70505875",
"0.70505875",
"0.70505875",
"0.70505875",
"0.70505875",
"0.70505875",
"0.7038412",
"0.70345... | 0.0 | -1 |
Forward propgate the input through the NN and output the activations of the last layer. | def YEmv(YKHO, input):
input = input.reshape((input.shape[0], 1))
return YKHO.feedforward(input) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c2Ky(YKHO, g4y1):\n YoQM = g4y1\n YKHO.activations[0] = g4y1\n for YRbF, yzQ0 in enumerate(YKHO.weights):\n pwfr = oyIN.dot(YoQM, yzQ0)\n YoQM = YKHO._sigmoid(pwfr)\n YKHO.activations[YRbF + 1] = YoQM\n return YoQM",
"def KVH6(YKHO, WKvO):\n for vC9B in range(len(YKHO.laye... | [
"0.7504301",
"0.7402312",
"0.73639065",
"0.7323897",
"0.73121256",
"0.7260464",
"0.7260464",
"0.7221287",
"0.72073746",
"0.7159437",
"0.7155914",
"0.71521133",
"0.71360034",
"0.7127911",
"0.7115368",
"0.70961785",
"0.7093189",
"0.7084813",
"0.7078287",
"0.7044685",
"0.7044489... | 0.0 | -1 |
Gets RxCUI for a given drug. | def uMdG(rPZK, o6OS):
if o6OS not in ['name', 'ndc']:
raise ValueError("Sorry! id_type must be either 'name' or 'ndc'")
try:
pmON = 'https://rxnav.nlm.nih.gov/REST/rxcui.json'
if o6OS == 'name':
Mkmy = G4JS.get(pmON + f'?name={rPZK}')
if o6OS == 'ndc':
Mkm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HBtG(YKHO):\n if YKHO.results is not None and 'drug' in YKHO.results.columns:\n return YKHO.results[['drug', 'interactor_name']]",
"def CPnX(YKHO, iIih):\n Aofo = None\n jgxC = \"drugbank:drug/drugbank:drugbank-id/.[@primary='true']/..[drugbank:drugbank-id='%s']\" % iIih\n Aofo = gpVL._top... | [
"0.51848173",
"0.50451195",
"0.49801227",
"0.4976184",
"0.4945317",
"0.49125826",
"0.4843322",
"0.48027936",
"0.47699386",
"0.47515327",
"0.47100946",
"0.4672981",
"0.45692477",
"0.45569628",
"0.4523084",
"0.4509458",
"0.44925392",
"0.4448462",
"0.4367492",
"0.4337862",
"0.43... | 0.73186564 | 0 |
From a column label, gets numerical ZT time. | def qS2L(YKHO, KCHu):
assert 'ZT' in KCHu
r8hN = ZbWC.search('ZT([0-9]\\.?[0-9]*)', KCHu)
if r8hN == None:
raise Exception('Badly formed ZT time, bro!')
return float(r8hN.group(1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e2T1(YKHO):\n return YKHO.time_col",
"def sWPl(vC9B):\n return Kmii(vC9B['date-obs'], format='fits') + vC9B['exptime'] / 2 * P6bq.s",
"def xWD9(YKHO, rdlD):\n return ITS7.Time(YKHO['mjd'][rdlD], format='mjd')",
"def ITS7(YKHO, P6bq):\n return YKHO._ll_tree.get_time(P6bq)",
"def ITS7(YKHO, r... | [
"0.61929613",
"0.5722301",
"0.56998736",
"0.5694093",
"0.56104845",
"0.55867994",
"0.55804175",
"0.5538305",
"0.5529717",
"0.55292004",
"0.55292004",
"0.54735035",
"0.5436888",
"0.54153395",
"0.5384827",
"0.5384393",
"0.5363586",
"0.53618324",
"0.5360558",
"0.53585005",
"0.53... | 0.6237694 | 0 |
Splits SQL text into list. Text should be delimited by a comma. | def hfK9(l5Ny):
if l5Ny == None:
return l5Ny
return l5Ny.split(',') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(YKHO, l5Ny):\n return [WKvO.strip() for WKvO in l5Ny.split(',')]",
"def tFpc(YKHO, Pe9W):\n HMZy = ''\n if YKHO._delimiter == ';':\n return g4Ww.split(Pe9W)\n while HMZy in Pe9W:\n HMZy += HMZy[0]\n Pe9W = Pe9W.replace(';', HMZy)\n Pe9W = Pe9W.replace(YKHO._delimiter, ';... | [
"0.7266849",
"0.7073962",
"0.70081115",
"0.65453166",
"0.65445995",
"0.63893896",
"0.6296578",
"0.62681395",
"0.6262549",
"0.6235158",
"0.62129486",
"0.62125826",
"0.61667824",
"0.61415637",
"0.6136977",
"0.6063075",
"0.60546774",
"0.6010854",
"0.5987965",
"0.59820384",
"0.59... | 0.7011453 | 2 |
Rejoins list into commadelimited string for storage in database. | def N4Dy(ZPAo):
return ','.join(ZPAo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6RL(yv6U):\n return ','.join(yv6U)",
"def G8UU(yv6U):\n if isinstance(yv6U, exCv):\n return yv6U\n else:\n return ', '.join(yv6U)",
"def KP6z(qgK3):\n rIkN = ''\n for ZfUD in qgK3:\n rIkN += ' ' + str(ZfUD) + ','\n return rIkN[:-1]",
"def nt7k(YKHO, cWbH):\n ret... | [
"0.7462827",
"0.7449191",
"0.7351027",
"0.7093535",
"0.7080787",
"0.7071568",
"0.7057957",
"0.69338745",
"0.69092566",
"0.6905546",
"0.68478066",
"0.67825806",
"0.67806244",
"0.67595553",
"0.6743379",
"0.66823757",
"0.66760206",
"0.66661733",
"0.66403437",
"0.6612989",
"0.655... | 0.7691195 | 0 |
Returns the given date_time string formatted with date_format as timestamp, in a PY2/3 compatible way | def ItX3(ppPa, x8us='%Y-%m-%dT%H:%M:%S'):
ppPa = qcWV.strptime(ppPa, x8us)
try:
return ppPa.timestamp()
except AttributeError:
import time
return time.mktime(ppPa.timetuple()) + ppPa.microsecond / 1000000.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHhE(G91o, x8us):\n tSNG = ITS7.localtime(G91o)\n return ITS7.strftime(x8us, tSNG)",
"def ct8j(E3oo=None, format='%Y%m%d-%H%M%S'):\n jmHs = ITS7.strftime(format, ITS7.localtime(E3oo if E3oo else ITS7.time()))\n return jmHs",
"def Vip5(E3oo=None):\n if E3oo is None:\n E3oo = ITS7.time(... | [
"0.7694034",
"0.7516344",
"0.74994844",
"0.74418426",
"0.7325264",
"0.73093706",
"0.72688025",
"0.7134653",
"0.7115484",
"0.70885175",
"0.70763326",
"0.6975815",
"0.6940705",
"0.6905071",
"0.6895671",
"0.68947285",
"0.6847823",
"0.6847294",
"0.68285996",
"0.6777699",
"0.67666... | 0.69727254 | 12 |
Merge names of environments by leaving the last nonblank one | def LZMJ(ZWCE):
Sqt8 = [mWFP for mWFP in ZWCE if mWFP]
if Sqt8:
return Sqt8[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGZu(sEAN, iSU0):\n Aofo = iSU0.copy()\n for H5ew, BWXx in sEAN.items():\n BWXx = _e0h.partial_format(BWXx, data=iSU0, missing='')\n Aofo[H5ew] = BWXx\n return Aofo",
"def Twf1(YKHO):\n QUTX = YKHO.config['tox']['envlist']\n Aofo = ZbWC.split('\\\\n| ,|,', QUTX)\n Aofo = [vIwR... | [
"0.6135013",
"0.5953949",
"0.5896729",
"0.57350785",
"0.5734773",
"0.57154953",
"0.558945",
"0.55229133",
"0.5433475",
"0.5207432",
"0.5201507",
"0.5188975",
"0.51800877",
"0.51742756",
"0.5172692",
"0.51722693",
"0.5166253",
"0.50655353",
"0.50587493",
"0.5055376",
"0.505196... | 0.5304375 | 9 |
Return whether the graph doesn't contain a cycle | def xzCw(YKHO):
if len(YKHO.independent_nodes) > 0:
try:
YKHO.topological_sort()
return True
except ValueError:
return False
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HzZv(YKHO):\n DemM = dict()\n for YRbF in YKHO.adj_list:\n DemM[YRbF] = False\n for YRbF in YKHO.adj_list:\n if not DemM[YRbF]:\n if YKHO.has_cycle_helper(YRbF, DemM, -1):\n return True\n return False",
"def CU9c(pNZh):\n pmON = set()\n\n def TClq(Q6k... | [
"0.8170607",
"0.8127583",
"0.798393",
"0.78322",
"0.773429",
"0.76222944",
"0.7594766",
"0.75538254",
"0.74817705",
"0.7325417",
"0.7205659",
"0.719672",
"0.71861297",
"0.71527576",
"0.71388316",
"0.7125199",
"0.7100493",
"0.70241714",
"0.7011045",
"0.7003908",
"0.6999341",
... | 0.0 | -1 |
Calculate precision. `labels` will be used to Arguments | def rhd_(Y8eF, aMgO, S8vG, Crrw):
Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)
Aofo = None
r8hN = len(Y8eF)
exwG = len(Crrw)
YsYU = A3YK(Y8eF, aMgO, Crrw)
if S8vG == 'micro':
M6pt = oyIN.trace(YsYU)
UUZ1 = oyIN.sum(YsYU)
Aofo = M6pt / UUZ1
elif S8vG == 'macro':
A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(JhSG, BBqg):\n jTes = 0\n G9Fx = 0\n for YRbF in range(0, len(JhSG)):\n if JhSG[YRbF] == BBqg[YRbF] == '1':\n jTes += 1\n elif JhSG[YRbF] == '0' and BBqg[YRbF] == '1':\n G9Fx += 1\n if jTes == 0:\n return 0\n else:\n return float(jTes / (jTe... | [
"0.7269268",
"0.69795805",
"0.68197227",
"0.68104523",
"0.67358947",
"0.66702604",
"0.66301626",
"0.66046584",
"0.65841097",
"0.65733427",
"0.65733427",
"0.65733427",
"0.65733427",
"0.65733427",
"0.65733427",
"0.65641636",
"0.655487",
"0.6541217",
"0.6541217",
"0.6541217",
"0... | 0.69519407 | 2 |
Calculate recall. `labels` will be used to Arguments | def AOzf(Y8eF, aMgO, S8vG, Crrw):
Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)
Aofo = None
r8hN = len(Y8eF)
exwG = len(Crrw)
YsYU = A3YK(Y8eF, aMgO, Crrw).T
if S8vG == 'micro':
M6pt = oyIN.trace(YsYU)
UUZ1 = oyIN.sum(YsYU)
Aofo = M6pt / UUZ1
elif S8vG == 'macro':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOzf(JhSG, BBqg):\n jTes = 0\n Bt4n = 0\n for YRbF in range(0, len(JhSG)):\n if JhSG[YRbF] == BBqg[YRbF] == '1':\n jTes += 1\n elif JhSG[YRbF] == '1' and BBqg[YRbF] == '0':\n Bt4n += 1\n if jTes == 0:\n return 0\n else:\n return float(jTes / (jTe... | [
"0.7338403",
"0.70431715",
"0.69503856",
"0.68975264",
"0.6780457",
"0.677081",
"0.6578526",
"0.6557324",
"0.6553921",
"0.6531879",
"0.65238833",
"0.652297",
"0.64937663",
"0.6459216",
"0.6423728",
"0.64160484",
"0.64160484",
"0.64160484",
"0.64160484",
"0.64160484",
"0.64160... | 0.7166566 | 1 |
Checks that .png files have the right file name format, which must be in the form of NAME_expected(_(skia|skiapaths))?(_(win|mac|linux))?.pdf..png. This format must be the same as the one used in PDFium's PRESUBMIT.py's _CheckPNGFormat(). | def xMgJ(Ba1k, CReJ):
PEwt = Ba1k.re.compile('.+_expected(_(skia|skiapaths))?(_(win|mac|linux))?\\.pdf\\.\\d+.png')
qmLP = []
for eHNT in Ba1k.AffectedFiles(include_deletes=False):
rAod = eHNT.LocalPath()
if rAod.endswith('.png'):
if not PEwt.match(rAod):
qmLP.app... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l56I(Ux0P):\n return '.png' in Ux0P",
"def ofow(Ux0P):\n return Ux0P.endswith(b'.png')",
"def uWQ9(p4m8):\n ZI14 = p4m8.split('.')[-1]\n if ZI14 in CUEY._VALID_IMAGE_SUFFIXES:\n return True\n return False",
"def ET8B(Ux0P: str) -> bool:\n wgT_ = '|'.join(eVms.ALL_FORMAT)\n njy... | [
"0.6886442",
"0.6752584",
"0.65919787",
"0.61115843",
"0.60981864",
"0.6089255",
"0.6009296",
"0.5970936",
"0.59649247",
"0.5929344",
"0.592229",
"0.5903049",
"0.58974063",
"0.58870816",
"0.58729017",
"0.58368284",
"0.58309925",
"0.5826213",
"0.5799892",
"0.57856745",
"0.5783... | 0.8107115 | 0 |
Creates an empty Trie data structure. | def FIMM(YKHO):
YKHO.root = gbVy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _csl():\n ZOCz = etby()\n return ZOCz",
"def _csl():\n from trie import Trie\n trie = Trie()\n return trie",
"def FIMM(YKHO):\n YKHO.root = ep_x(None)",
"def FIMM(YKHO):\n YKHO.root = ep_x(None)",
"def FIMM(YKHO):\n YKHO.root = ep_x('*')\n YKHO.size = 0",
"def whF1(_csl):\n... | [
"0.8166488",
"0.79128367",
"0.7602523",
"0.7602523",
"0.7431437",
"0.7385183",
"0.7369724",
"0.7351714",
"0.73250306",
"0.7312923",
"0.73109144",
"0.7294403",
"0.72811514",
"0.72055435",
"0.71812075",
"0.71812075",
"0.71812075",
"0.71812075",
"0.71812075",
"0.71812075",
"0.71... | 0.0 | -1 |
init the weight of some layers | def dGkD(YKHO):
U78l.init.xavier_normal_(YKHO.out.weight) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)",
"def yYlq(gEmA):\n if gEmA.weight.ndimension() == 4:\n _LFN, Ya2q, H2v2, TVTK = gEmA.weight.size()\n exwG = Ya2q * H2v2 * TVTK\n elif gEmA.weight.ndimension() == 2:\n _LFN, exwG = ... | [
"0.8651084",
"0.8243662",
"0.7972445",
"0.79263115",
"0.78876466",
"0.7880778",
"0.7865069",
"0.78641295",
"0.77994853",
"0.7797192",
"0.77273303",
"0.7702495",
"0.7659687",
"0.76342404",
"0.76224715",
"0.76123804",
"0.7553077",
"0.7527488",
"0.7527488",
"0.7527488",
"0.75160... | 0.0 | -1 |
Initialize the encoder hidden state. | def b03l(YKHO, r5GU):
if r5GU is None:
return None
if isinstance(r5GU, tuple):
r5GU = tuple([YKHO._cat_directions(MKlR) for MKlR in r5GU])
else:
r5GU = YKHO._cat_directions(r5GU)
return r5GU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mDs7(YKHO, E9hj: torch.Tensor):\n pass",
"def X8hH(YKHO, r5GU):\n if r5GU is None:\n return None\n if isinstance(r5GU, tuple):\n r5GU = tuple([YKHO._cat_directions(MKlR) for MKlR in r5GU])\n else:\n r5GU = YKHO._cat_directions(r5GU)\n return r5GU",
"def X8hH(YKHO, r5GU):... | [
"0.83275086",
"0.77102697",
"0.77102697",
"0.74040484",
"0.7290414",
"0.7279931",
"0.7215229",
"0.7215229",
"0.70479804",
"0.6901168",
"0.68980813",
"0.689464",
"0.68280524",
"0.6804546",
"0.67857987",
"0.6757444",
"0.6757444",
"0.6757444",
"0.66996604",
"0.6488062",
"0.62742... | 0.69852823 | 9 |
Test Campaign model creation. | def SXhK(YKHO):
j4i0 = YKHO.campaign
YKHO.assertTrue(isinstance(j4i0, Glze))
YKHO.assertEqual(j4i0.name, 'Test Campaign') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SXhK(YKHO):\n afc8 = tHSi.objects.create(name='acc1', code='111-111')\n rdlD = {'PROJ_NAME1': 'China Fund', 'PROJ_NO': 'CFD-111', 'LOCATION': 'CHINA', 'SUMMARY': 'Ssssss'}\n H69_.create_campaign(afc8, rdlD, 'China Fund', tHSi.COUNTRY)\n j4i0 = Glze.objects.filter(name='China Fund').first()\n YKH... | [
"0.78902245",
"0.7651008",
"0.7359439",
"0.71211284",
"0.67662543",
"0.67198855",
"0.6708729",
"0.6648027",
"0.65363836",
"0.65191734",
"0.64824545",
"0.6344745",
"0.63350147",
"0.63057655",
"0.6257441",
"0.62380844",
"0.62292516",
"0.620606",
"0.61954194",
"0.61694616",
"0.6... | 0.84397465 | 0 |
Test Location model creation. | def kpYU(YKHO):
Rci7 = YKHO.location
YKHO.assertTrue(isinstance(Rci7, _JMH))
YKHO.assertEqual(Rci7.name, 'Test Location') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AKqx():\n return kDyA()",
"def Y6zq(YKHO, Rci7):\n \"\"\"Does nothing\"\"\"",
"def op95(YKHO):\n YKHO.c.force_login(YKHO.u)\n geh0 = YKHO.c.get(gxEw(lMJ1), nPrm)\n YKHO.assertEqual(PvyL.objects.last().lat, nPrm['lat'])",
"def jZqg(YKHO):\n YKHO.assertIsInstance(YKHO.one_off_training.loc... | [
"0.73845196",
"0.70042175",
"0.7003142",
"0.69560915",
"0.6769358",
"0.6760668",
"0.6760372",
"0.6750908",
"0.66711414",
"0.6621288",
"0.6592469",
"0.6591204",
"0.6536766",
"0.6521401",
"0.65132946",
"0.6496338",
"0.63848555",
"0.6367077",
"0.6346326",
"0.6325834",
"0.6314009... | 0.8253273 | 0 |
Convert time strings to seconds. Strings can be of the | def B0uL(XF7F):
if XF7F.endswith('m'):
lcOE = 60 * int(XF7F.replace('m', ''))
elif XF7F.endswith('h'):
lcOE = 60 * 60 * int(XF7F.replace('h', ''))
elif XF7F.endswith('d'):
lcOE = 24 * 60 * 60 * int(XF7F.replace('d', ''))
elif XF7F.endswith('y'):
lcOE = 365 * 24 * 60 * 60 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xTt2(KCHu):\n a1PO = KCHu.split(':')\n UET8 = len(a1PO)\n if UET8 == 1:\n lcOE = int(a1PO[0])\n elif UET8 == 2:\n lcOE = int(a1PO[1]) + int(a1PO[0]) * 60\n elif UET8 == 3:\n lcOE = int(a1PO[2]) + int(a1PO[1]) * 60 + int(a1PO[0]) * 60 * 60\n elif UET8 == 4:\n lcOE =... | [
"0.7774056",
"0.7758759",
"0.77493227",
"0.76101214",
"0.7355431",
"0.73487556",
"0.73450696",
"0.7279362",
"0.72536737",
"0.72536737",
"0.72315645",
"0.72298837",
"0.713335",
"0.7079136",
"0.70435554",
"0.7030023",
"0.7013202",
"0.695403",
"0.69182235",
"0.6909746",
"0.69088... | 0.7723457 | 3 |
Return True if the event is too old or too far in the future to process; return False otherwise. | def q9o5(tvqc, GPtr):
vHj7 = ITS7.time()
try:
r04X = qcWV.strptime(tvqc['time'], uwaB.TIMEFMT).replace(tzinfo=rIAI.utc).timestamp()
except ValueError:
r04X = qcWV.strptime(tvqc['time'], uwaB.ALT_TIMEFMT).replace(tzinfo=rIAI.utc).timestamp()
if GPtr['old_event_age'] >= 0 and r04X + GPtr['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z80H(YKHO):\n if len(YKHO.event_queue) > 0:\n tvqc = YKHO.event_queue.pop(0)\n YKHO.event_queue_proc(tvqc)\n return True\n return False",
"def PfPk(YQTM: event_models.Event, pIVB: event_models.Event) -> bool:\n YQTM.status = s1nI.EventStatusEnum.cancelled\n return YQTM == pIV... | [
"0.75837344",
"0.6788557",
"0.6575105",
"0.64717174",
"0.64503145",
"0.64024466",
"0.63278306",
"0.62811536",
"0.62544596",
"0.62283874",
"0.6224967",
"0.6211071",
"0.6204464",
"0.61829203",
"0.6167654",
"0.61507803",
"0.61417854",
"0.6135952",
"0.6129829",
"0.6121233",
"0.61... | 0.74514717 | 1 |
Will find where the brace ends in a control statement. | def I935(YKHO):
qVUm, oSM8 = (0, False)
for Qjwp, zFiD in enumerate(YKHO.file_ltxt[YKHO.line_num:]):
if '{' in zFiD:
qVUm += 1
if '}' in zFiD:
qVUm -= 1
if not oSM8:
if qVUm > 0:
oSM8 = True
else:
continue
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JoFN(E5A3):\n e6YO = E5A3.find('(') + 1\n Krj9 = 1\n for Z9rn in Ni9Y(e6YO, len(E5A3)):\n if E5A3[Z9rn] == ')':\n Krj9 -= 1\n elif E5A3[Z9rn] == '(':\n Krj9 += 1\n if Krj9 == 0:\n return E5A3[:Z9rn + 1]",
"def pRvt(YKHO) -> int:\n return 0",
... | [
"0.62316036",
"0.6064271",
"0.5846728",
"0.5740664",
"0.57180727",
"0.571373",
"0.5700736",
"0.5651915",
"0.56058455",
"0.55664545",
"0.5517524",
"0.5394171",
"0.53695446",
"0.5360177",
"0.53203243",
"0.531651",
"0.5316293",
"0.5306972",
"0.52825934",
"0.52331245",
"0.5200116... | 0.7725958 | 0 |
Will find the variables that have been used in a string (i.e. with the $). If any variables found aren't declared an error will be thrown | def eBKy(YKHO, zFiD):
YKHO.E_str = 'find_vars_in_str'
rfMd = [YRbF[1:] for YRbF in ZbWC.findall(q_ST, zFiD)]
for Y58A in rfMd:
if Y58A not in YKHO.variables:
YKHO.print_error(f"Can't find variable '{Y58A}'")
RELP = getattr(YKHO, Y58A)
if hasattr(RELP, 'data') and type(REL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wh3y(Qe2y: Text) -> x1iM[I2jr]:\n try:\n JIfd = Qe2y.index('$', 0)\n except ValueError:\n return []\n ymH8 = []\n while JIfd < len(Qe2y):\n TeQS = Pvpd.match(Qe2y, JIfd)\n if TeQS:\n JIfd = TeQS.end()\n continue\n G7rE = ujz0.match(Qe2y, JIfd... | [
"0.6805193",
"0.62757117",
"0.6274954",
"0.61823285",
"0.6043678",
"0.6012364",
"0.5927913",
"0.5924077",
"0.5872563",
"0.58598167",
"0.5839836",
"0.5799833",
"0.5774229",
"0.570927",
"0.5708174",
"0.56886286",
"0.56884277",
"0.56582034",
"0.5654751",
"0.56535",
"0.5652215",
... | 0.7143965 | 0 |
Returns the list of data elements excluding zero padding elements. | def gGnb(YKHO):
return YKHO._values[:YKHO.nsamples] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V0Bq(nPrm):\n yvT9 = []\n for ZfUD in nPrm:\n if ZfUD == '':\n continue\n yvT9.append(ZfUD)\n return yvT9",
"def DpMN(YKHO):\n return list(YKHO.parent().characters())",
"def Qx72(YKHO):\n return [_pUq for _pUq in YKHO if _pUq is not None]",
"def o8c1(YKHO):\n Tf... | [
"0.6466449",
"0.64213526",
"0.615112",
"0.608498",
"0.5921419",
"0.58596534",
"0.5856476",
"0.5835441",
"0.5750241",
"0.5690156",
"0.5689491",
"0.567011",
"0.5668841",
"0.5654338",
"0.5653573",
"0.56457525",
"0.56206554",
"0.5619142",
"0.5576521",
"0.5570819",
"0.5568666",
... | 0.0 | -1 |
Tunes a window settings for the given parameters. | def m_mT(fQqb, J1c0, k09p=None, Spyh=False, QLpD=True, DGwk=eBH2.rectangle, yDqo=oyIN.float_):
J1c0 = oyIN.atleast_1d(J1c0)
bcre = oyIN.max(J1c0)
assert fQqb / 2 >= bcre, 'Highest target frequency violates Nyquist sampling theorem.'
bo34.info('Tuning window size for frequencies {}'.format(', '.join([str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sNuA(YKHO, yzQ0):\n YKHO.nn.set_param_values(yzQ0)",
"def sNuA(YKHO, LEyJ):\n YKHO.wts = LEyJ",
"def nSAl():\n KxSs.SetProfile(KxSs.PROF_SENSOR)\n KxSs.SetArenaR(uNr6, Rnv3, iT3i)\n KxSs.SetArenaTheta(L437, B9aP, XI8p)\n KxSs.SetArenaPhi(esPm, AQKR, SI6C)\n KxSs.SetDynamicImageFilter(K... | [
"0.534648",
"0.5311427",
"0.5152892",
"0.5060417",
"0.48906752",
"0.48856765",
"0.4831677",
"0.48254257",
"0.4791882",
"0.478922",
"0.47399178",
"0.47190318",
"0.47018352",
"0.46973658",
"0.46945414",
"0.46941888",
"0.46799698",
"0.46716556",
"0.46669194",
"0.4658543",
"0.465... | 0.5419968 | 0 |
Return True if the priority queue is empty. | def FBfn(YKHO):
return len(YKHO) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.priority_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO... | [
"0.9179846",
"0.8469489",
"0.8437107",
"0.8437107",
"0.8436066",
"0.838734",
"0.836409",
"0.8344005",
"0.83305556",
"0.83305556",
"0.83042455",
"0.83034027",
"0.82889843",
"0.82803255",
"0.8267934",
"0.8259419",
"0.82293385",
"0.8219118",
"0.82072806",
"0.8198649",
"0.8182699... | 0.0 | -1 |
Return the number of items in the priority queue. | def szAg(YKHO):
raise NotImplementedError('must be implemented by subclass') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO._queue_items)",
"def yAGA(YKHO):\n with YKHO.mutex:\n return len(YKHO.queues)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n return YKHO.num_items",
"def zNig(YKHO):\n return l... | [
"0.73094535",
"0.7214424",
"0.71406925",
"0.7130484",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7050724",
"0.7050724",
"0.70315284",
"0.70315284",
"0.70139974",
"0.6985575",
"0.6979711",
"0.69724464",
"0.6955107",
"0.6938039",
"0.6901929",
"0.681586",
"0.6785586"... | 0.0 | -1 |
Create a new empty Priority Queue. | def FIMM(YKHO):
YKHO._data = Hoio() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWEK():\n return g5js(0, None, None)",
"def Rdbh():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n return Rdbh",
"def WPv_():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n Rdbh.insert(15, 5)\n Rdbh.insert(12, 3)\n Rdbh.insert(11, 1)\n ... | [
"0.7893713",
"0.74452215",
"0.71636957",
"0.7081834",
"0.7081834",
"0.6581613",
"0.6313973",
"0.63086706",
"0.6265996",
"0.6179255",
"0.61486804",
"0.6126521",
"0.60874456",
"0.6058897",
"0.60504574",
"0.6046229",
"0.60360074",
"0.6026002",
"0.5990476",
"0.5980345",
"0.597111... | 0.0 | -1 |
Return the number of items in the priority queue. | def szAg(YKHO):
return len(YKHO._data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO._queue_items)",
"def yAGA(YKHO):\n with YKHO.mutex:\n return len(YKHO.queues)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n return YKHO.num_items",
"def zNig(YKHO):\n return l... | [
"0.73094535",
"0.7214424",
"0.71406925",
"0.7130484",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7050724",
"0.7050724",
"0.70315284",
"0.70315284",
"0.70139974",
"0.6985575",
"0.6979711",
"0.69724464",
"0.6955107",
"0.6938039",
"0.6901929",
"0.681586",
"0.6785586"... | 0.0 | -1 |
Return Position of item with minimum key. | def CTDF(YKHO):
if YKHO.is_empty():
raise rWmY('Priority queue is empty')
wuLw = YKHO._data.first()
ZAda = YKHO._data.after(wuLw)
while ZAda is not None:
if ZAda.element() < wuLw.element():
wuLw = ZAda
ZAda = YKHO._data.after(ZAda)
return wuLw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iuzb(YKHO, H5ew):\n return Ce1H.bisect_left(YKHO.keys, H5ew)",
"def Z23B(YKHO):\n return YKHO.__keys[YKHO.__pq[1]]",
"def XUaA(YKHO, oeNL):\n OQfX = ZJSA = None\n for Z9rn in YKHO.children(oeNL):\n if ZJSA == None or YKHO.heap[Z9rn].key < ZJSA:\n ZJSA, OQfX = (YKHO.heap[Z9rn].... | [
"0.77470106",
"0.7666157",
"0.7395155",
"0.73203367",
"0.7254431",
"0.72505504",
"0.7220308",
"0.7152589",
"0.70716697",
"0.7071603",
"0.70055217",
"0.6933423",
"0.6918526",
"0.6828535",
"0.6828328",
"0.6822287",
"0.6822287",
"0.67781764",
"0.67364544",
"0.6730928",
"0.673092... | 0.6869165 | 13 |
Create a new empty Priority Queue. | def FIMM(YKHO):
YKHO._data = Hoio() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWEK():\n return g5js(0, None, None)",
"def Rdbh():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n return Rdbh",
"def WPv_():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n Rdbh.insert(15, 5)\n Rdbh.insert(12, 3)\n Rdbh.insert(11, 1)\n ... | [
"0.7893713",
"0.74452215",
"0.71636957",
"0.7081834",
"0.7081834",
"0.6581613",
"0.6313973",
"0.63086706",
"0.6265996",
"0.6179255",
"0.61486804",
"0.6126521",
"0.60874456",
"0.6058897",
"0.60504574",
"0.6046229",
"0.60360074",
"0.6026002",
"0.5990476",
"0.5980345",
"0.597111... | 0.0 | -1 |
Return the number of items in the priority queue. | def szAg(YKHO):
return len(YKHO._data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO._queue_items)",
"def yAGA(YKHO):\n with YKHO.mutex:\n return len(YKHO.queues)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n return YKHO.num_items",
"def zNig(YKHO):\n return l... | [
"0.73094535",
"0.7214424",
"0.71406925",
"0.7130484",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7050724",
"0.7050724",
"0.70315284",
"0.70315284",
"0.70139974",
"0.6985575",
"0.6979711",
"0.69724464",
"0.6955107",
"0.6938039",
"0.6901929",
"0.681586",
"0.6785586"... | 0.0 | -1 |
Create a new empty Priority Queue. | def FIMM(YKHO):
YKHO._data = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWEK():\n return g5js(0, None, None)",
"def Rdbh():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n return Rdbh",
"def WPv_():\n from src.priorityq import PriorityQueue\n Rdbh = PriorityQueue()\n Rdbh.insert(15, 5)\n Rdbh.insert(12, 3)\n Rdbh.insert(11, 1)\n ... | [
"0.7893713",
"0.74452215",
"0.71636957",
"0.7081834",
"0.7081834",
"0.6581613",
"0.6313973",
"0.63086706",
"0.6265996",
"0.6179255",
"0.61486804",
"0.6126521",
"0.60874456",
"0.6058897",
"0.60504574",
"0.6046229",
"0.60360074",
"0.6026002",
"0.5990476",
"0.5980345",
"0.597111... | 0.0 | -1 |
Return the number of items in the priority queue. | def szAg(YKHO):
return len(YKHO._data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO._queue_items)",
"def yAGA(YKHO):\n with YKHO.mutex:\n return len(YKHO.queues)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def zNig(YKHO):\n if YKHO.is_empty():\n return 0\n else:\n return YKHO.num_items",
"def zNig(YKHO):\n return l... | [
"0.73094535",
"0.7214424",
"0.71406925",
"0.7130484",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7051237",
"0.7050724",
"0.7050724",
"0.70315284",
"0.70315284",
"0.70139974",
"0.6985575",
"0.6979711",
"0.69724464",
"0.6955107",
"0.6938039",
"0.6901929",
"0.681586",
"0.6785586"... | 0.0 | -1 |
Attempts to convert a string to the most appropriate valid Python identifier (for entity ID enums). Removes useless prefixes, like "SFX ". Removes spaces and capitalizes any letters that appear after them. Replaces some spaces with underscores, like spaces before "mXXXX". Removes invalid characters. Adds leading "_" to... | def hFAz(_Kve: str, t01U=(), A8yi=True) -> str:
kVtJ = _Kve.strip(' ')
FrNr = ZbWC.compile('[cohm]\\d\\d\\d\\d') if A8yi else None
for y0cW in t01U:
kVtJ = kVtJ.removeprefix(y0cW)
while (Actp := kVtJ.find(' ')) != -1:
HEoB = True
if FrNr and FrNr.match(kVtJ[Actp + 1:]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FhlS(vIwR):\n vIwR = vIwR.lower()\n vIwR = vIwR.strip()\n vIwR = vIwR.replace(' ', '_')\n vIwR = vIwR.replace(',', '__').replace('[', '__')\n vIwR = ZbWC.sub('[^0-9a-zA-Z_]', '', vIwR)\n vIwR = ZbWC.sub('^[^a-zA-Z_]+', '', vIwR)\n if vIwR in peBr.kwlist:\n vIwR += '_element'\n re... | [
"0.7303983",
"0.7028515",
"0.695694",
"0.6928142",
"0.69110376",
"0.67664975",
"0.6756843",
"0.6541595",
"0.6538051",
"0.65297824",
"0.6222688",
"0.62155825",
"0.6186026",
"0.6184884",
"0.6179486",
"0.6157909",
"0.61505485",
"0.6143066",
"0.6111259",
"0.6080164",
"0.60718894"... | 0.7555152 | 0 |
Converts the original matrix to RFPF based on the Transr and Uplo parameters. Note that Fortran of A is required, otherwise, the matrix will be taken as a transpose of the original one. | def HoIL(jzdc, e45k='N', iA7y='U', yvT9=None):
qNHB, RKDB = jzdc.shape
if qNHB != RKDB:
raise ValueError('Matrix is not square.')
if jzdc.flags.c_contiguous:
jzdc = oyIN.asfortranarray(jzdc)
pex6 = jzdc.strides[1] / jzdc.dtype.itemsize
if yvT9 is None:
pfA5 = pyyo.get_rfpf_sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pjso(YKHO, rdlD):\n if 'Goal x' in rdlD:\n i7nc = kzfP.from_euler('xyz', [rdlD['Goal roll'], rdlD['Goal pitch'], rdlD['Goal yaw']], degrees=False)\n dLn2 = oyIN.identity(4)\n dLn2[:3, :3] = i7nc.as_matrix()\n dLn2[:3, 3] = [rdlD['Goal x'] * 1000, rdlD['Goal y'] * 1000, rdlD['Goal... | [
"0.5849987",
"0.5813485",
"0.5658212",
"0.5588726",
"0.5402625",
"0.53986967",
"0.5344376",
"0.52956057",
"0.5285376",
"0.5284727",
"0.52596354",
"0.52595824",
"0.52395636",
"0.5228851",
"0.5207768",
"0.5207023",
"0.5200803",
"0.5186005",
"0.5160041",
"0.5150841",
"0.5133533"... | 0.7669588 | 0 |
Dumps the simulated data to a pandas DataFrame. This is convenient for use with popular Python statistical packages or to simply write a CSV file containing the simulated data to disk. | def o87x(YKHO):
import pandas as rLdf
Csk6 = U8Lr({'y': YKHO.y})
for nvEb in YKHO.predictors:
Csk6[nvEb.name] = nvEb.x
jQ3Z = rLdf.DataFrame(Csk6)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def print(YKHO):\n jQ3Z = YKHO.gen_test()\n jQ3Z.to_csv('some_dated_file.csv', index=False)\n return jQ3Z",
"def CcBk(YKHO):\n nPrm = YKHO._get_data(pd=True)\n return nPrm",
"def i_mH(Emd4, **B2fa):\n keQt = vmkq(namedArray=Emd4.runSimulationArr(**B2fa))\n return keQt.to_dataframe()",
"d... | [
"0.6228638",
"0.6172396",
"0.61369705",
"0.60617644",
"0.6025214",
"0.5964169",
"0.5955786",
"0.5955786",
"0.59400773",
"0.5937557",
"0.5924051",
"0.59146446",
"0.58873343",
"0.58598584",
"0.579721",
"0.5752081",
"0.57507753",
"0.572597",
"0.5709258",
"0.5701143",
"0.56337845... | 0.57468003 | 17 |
returns whether or not the entity has the component of the specified class | def xc3U(YKHO, LEXu):
return LEXu.has_component(YKHO.component_type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, UksD):\n if issubclass(UksD, C1zu):\n try:\n KWtU = YKHO.type.components[UksD.interface]\n except KeyError:\n return False\n else:\n return issubclass(KWtU, UksD)\n else:\n return UksD in YKHO.type.components",
"def nROb(YKHO, *qIx... | [
"0.7239293",
"0.68413556",
"0.67001134",
"0.6527737",
"0.65255064",
"0.638794",
"0.636948",
"0.6339106",
"0.62741023",
"0.6241453",
"0.62410194",
"0.62317437",
"0.61038023",
"0.6094753",
"0.6085668",
"0.6075856",
"0.6073516",
"0.60707146",
"0.60639143",
"0.60556614",
"0.60514... | 0.78403777 | 0 |
Displays image and the topn predicted probabilities in a bar graph | def JBo6(LNo8, aTLP):
QrM1.imshow(LNo8)
QrM1.axis('off')
QrM1.figure()
T4Wy = list(reversed(range(len(aTLP))))
E_uF = [zTi3[2] for zTi3 in aTLP]
Crrw = (zTi3[1] for zTi3 in aTLP)
QrM1.barh(T4Wy, E_uF, alpha=0.5)
QrM1.yticks(T4Wy, Crrw)
QrM1.xlabel('Probability')
QrM1.xlim(0, 1.01... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lNC_(VXjJ, nvEb):\n QrM1.imshow(VXjJ)\n QrM1.axis('off')\n QrM1.figure()\n T4Wy = list(reversed(range(len(nvEb))))\n E_uF = [zTi3[2] for zTi3 in nvEb]\n Crrw = (zTi3[1] for zTi3 in nvEb)\n QrM1.barh(T4Wy, E_uF, alpha=0.5)\n QrM1.yticks(T4Wy, Crrw)\n QrM1.xlabel('Probability')\n Qr... | [
"0.77978665",
"0.7721485",
"0.769006",
"0.76070917",
"0.7603528",
"0.71370405",
"0.70984143",
"0.7009505",
"0.68326867",
"0.6766593",
"0.6606671",
"0.6594294",
"0.6510035",
"0.64082754",
"0.63103276",
"0.63035893",
"0.62614477",
"0.6234734",
"0.6204136",
"0.62028116",
"0.6188... | 0.7922684 | 0 |
returns full class name for instance | def n78L(KAOR):
return '%s.%s' % (KAOR.__module__, KAOR.__class__.__name__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _2sc(Emd4):\n return Emd4.__name__",
"def _2sc(Emd4):\n return Emd4.__name__",
"def _2sc(YKHO) -> str:\n return qe4Y.get(YKHO, 'class_name')",
"def vrep(YKHO):\n return YKHO.__class__.__name__",
"def Um9M(YKHO):\n CtJU = YKHO.__class__.__name__\n return str(CtJU)",
"def _2sc(YKHO) -... | [
"0.8666152",
"0.8666152",
"0.85594887",
"0.85485005",
"0.8518022",
"0.8463381",
"0.8461112",
"0.8461112",
"0.843077",
"0.8349398",
"0.8326935",
"0.8158884",
"0.80965906",
"0.80774647",
"0.80329406",
"0.7957002",
"0.79116803",
"0.7911652",
"0.7868199",
"0.7855517",
"0.7822544"... | 0.8530454 | 4 |
Initialize the battery's attributes. | def FIMM(YKHO, n8ok=85):
YKHO.battery_size = n8ok | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, n8ok=40):\n YKHO.battery_size = n8ok",
"def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok",
"def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok",
"def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok",
"def FIMM(YKHO, n8ok=70):\n YKHO.battery_size = n8ok",
"def FIMM(YKHO, ... | [
"0.7382995",
"0.73729676",
"0.73598105",
"0.73598105",
"0.73598105",
"0.73419243",
"0.73419243",
"0.7318721",
"0.73161864",
"0.7284151",
"0.72274315",
"0.7195436",
"0.69978577",
"0.69625956",
"0.69494915",
"0.6906689",
"0.6906689",
"0.6906689",
"0.6906689",
"0.6906689",
"0.69... | 0.7206751 | 11 |
The name of the channel. | def YwkQ(YKHO):
return YKHO._channel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R5yJ(YKHO) -> str:\n return YKHO._channel_name",
"def R5yJ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'channel_name')",
"def R5yJ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'channel_name')",
"def R5yJ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'channel_name')",
"def R5y... | [
"0.9192925",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.8496867",
"0.83327353",
... | 0.7171293 | 27 |
Construct a new `MainFrame' instance. All arguments are passed asis to the `Tix.Frame' constructor. | def FIMM(YKHO, LDIG=None, *qIxc, **YSA3):
D4qv.Frame.__init__(YKHO, LDIG, *qIxc, **YSA3)
YKHO._init_widgets()
YKHO._init_bindings()
YKHO._root().title('KaeChat')
YKHO._page_serial = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, LDIG, Hghu=ra1W, **YSA3):\n LQRw.__init__(YKHO, LDIG, **YSA3)\n YKHO.main_frame = LQRw(YKHO, bd=1)\n YKHO.main_frame.pack()",
"def LD17(YKHO):\n YKHO.frame = yYMY(YKHO)",
"def FIMM(YKHO, *qIxc, **B2fa):\n on8l.Tk.__init__(YKHO, *qIxc, **B2fa)\n YKHO.winfo_toplevel().title('Elog... | [
"0.623563",
"0.60203487",
"0.5910724",
"0.5901951",
"0.580496",
"0.5598728",
"0.5498089",
"0.54192674",
"0.537996",
"0.53550845",
"0.53512836",
"0.5348354",
"0.5335231",
"0.5321712",
"0.524399",
"0.5225888",
"0.51881254",
"0.51840496",
"0.517467",
"0.5141346",
"0.5126489",
... | 0.5854602 | 4 |
This function takes either a json string or a path to a json file, it loads the json into memory and returns the corresponding Python object. | def BSIT(Y16Z):
try:
ytgA = T_Uj.open(Y16Z, mode='r', encoding='utf-8')
A97Q = qQXR.load(ytgA, encoding='utf-8')
except:
A97Q = qQXR.loads(Y16Z)
return A97Q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pktP(_ugn):\n if isinstance(_ugn, (str, GkAb)):\n return Aqrg(qQXR.loads(_ugn))\n else:\n return Aqrg(qQXR.load(_ugn))",
"def DXiT(pmON: str) -> JKNE:\n with open(pmON, encoding='utf-8') as Ga6V:\n return qQXR.load(Ga6V)",
"def pktP(pmON: str):\n with open(pmON) as eHNT:\n ... | [
"0.79873586",
"0.7819393",
"0.7774818",
"0.77054214",
"0.77010757",
"0.7643722",
"0.74792045",
"0.7475597",
"0.7443932",
"0.7403512",
"0.7401574",
"0.7313957",
"0.7312576",
"0.7296914",
"0.7287474",
"0.72822225",
"0.7282216",
"0.72820985",
"0.72766435",
"0.7263966",
"0.725663... | 0.8028446 | 0 |
Sanitize a URL against XSS attacks. See the docstring on markdown.inlinepatterns.LinkPattern.sanitize_url. | def H3MP(bD7m: str) -> h8nf[str]:
try:
SQ3m = uRlK.parse.urlparse(bD7m.replace(' ', '%20'))
ht58, RYr6, pmON, NArs, xDcj, vBtp = SQ3m
except ValueError:
return ''
if ht58 == '' and RYr6 == '' and ('@' in pmON):
ht58 = 'mailto'
elif ht58 == '' and RYr6 == '' and (len(pmON)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H3MP(YKHO, bD7m):\n if not YKHO.markdown.safeMode:\n return bD7m\n try:\n ht58, RYr6, pmON, NArs, xDcj, vBtp = bD7m = KVWQ(bD7m)\n except ValueError:\n return ''\n IM29 = ['', 'mailto', 'news']\n if RYr6 == '' and ht58 not in IM29:\n return ''\n for Q7me in bD7m[2:... | [
"0.76825964",
"0.7267443",
"0.7074259",
"0.68428046",
"0.6672135",
"0.65712535",
"0.6517339",
"0.63524514",
"0.6350029",
"0.6321725",
"0.61863273",
"0.6176373",
"0.6112945",
"0.61007994",
"0.60385245",
"0.6029643",
"0.60176325",
"0.6013761",
"0.60058284",
"0.59789073",
"0.597... | 0.6313954 | 10 |
Return a list of values sorted by keys. | def zFaG(cmPJ):
sjXb = X_7r(cmPJ)
return [cmPJ[H5ew] for H5ew in sjXb] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def npUm(dict):\n return [dict[G1Hx] for G1Hx in wfj9(dict)]",
"def Xdkm(Csk6):\n DumB = Csk6.items()\n hCiz = [[Ty9i[1], Ty9i[0]] for Ty9i in DumB]\n hCiz.sort()\n return [hCiz[YRbF][1] for YRbF in range(0, len(hCiz))]",
"def GnuM(YKHO):\n qWex = list(YKHO.items())\n\n def qk7K(WKvO, LVAh... | [
"0.81164074",
"0.7441192",
"0.73108894",
"0.72504437",
"0.721299",
"0.68719834",
"0.68652326",
"0.6843726",
"0.68216145",
"0.6769109",
"0.67602456",
"0.67507297",
"0.6729393",
"0.67024803",
"0.66808075",
"0.66176605",
"0.65959835",
"0.658811",
"0.6572188",
"0.654413",
"0.6519... | 0.7722557 | 1 |