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 |
|---|---|---|---|---|---|---|
Defines whether the role is a "superuser", and therefore can override all access restrictions within the database. Default value is `false`. | def COmz(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'superuser') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qMrd(YKHO):\n return YKHO.sesh.curr_role == 'admin'",
"def qMrd(YKHO):\n return YKHO.admin",
"def qMrd(YKHO) -> bool:\n return YKHO.is_admin",
"def hSiU(CBIr):\n assert isinstance(CBIr, mv1M)\n return gCuF.SU_ACCESS_OVERRIDE and CBIr.is_superuser",
"def qMrd(YKHO):\n if YKHO.admin:\n ... | [
"0.73517036",
"0.73417914",
"0.72437006",
"0.7239257",
"0.71924394",
"0.70565236",
"0.7050956",
"0.6995244",
"0.6939416",
"0.69171995",
"0.6849522",
"0.6838381",
"0.68383336",
"0.6778258",
"0.6778258",
"0.6734083",
"0.67141277",
"0.66711545",
"0.66659415",
"0.66446155",
"0.66... | 0.68824106 | 11 |
Defines the date and time after which the role's password is no longer valid. Established connections past this `valid_time` will have to be manually terminated. This value corresponds to a PostgreSQL datetime. If omitted or the magic value `NULL` is used, `valid_until` will be set to `infinity`. Default is `NULL`, the... | def WkNg(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'valid_until') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGPQ(YKHO) -> qcWV:\n pass",
"def PeWH(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'password_expiration_time')",
"def PeWH(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'password_expiration_time')",
"def fO0v(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'valid_time')",
... | [
"0.66583794",
"0.6444193",
"0.6190555",
"0.6171189",
"0.6111864",
"0.6040985",
"0.6023468",
"0.6016944",
"0.6003459",
"0.59613025",
"0.59613025",
"0.5955784",
"0.5935501",
"0.59318656",
"0.59178793",
"0.59111947",
"0.5863175",
"0.581967",
"0.58090115",
"0.57938856",
"0.568723... | 0.62392384 | 3 |
If this role can log in, this specifies how many concurrent connections the role can establish. `1` (the default) means no limit. | def RMXK(YKHO) -> qe4Y.Output[h8nf[int]]:
return qe4Y.get(YKHO, 'connection_limit') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q8Ws(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_connections_per_instance')",
"def WWaa(Emd4):\n Emd4.__maximum_connection_tries += 1",
"def b0_5(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_connections')",
"def b0_5(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_connections')",
"def RMXK(YKHO) ->... | [
"0.67448014",
"0.66924644",
"0.66379714",
"0.66379714",
"0.65749055",
"0.6513604",
"0.65007466",
"0.6458051",
"0.64580137",
"0.64580137",
"0.64580137",
"0.64580137",
"0.6438095",
"0.64369625",
"0.64369625",
"0.64369625",
"0.64369625",
"0.6426681",
"0.6426681",
"0.6395661",
"0... | 0.62238467 | 24 |
Defines whether the role is a "superuser", and therefore can override all access restrictions within the database. Default value is `false`. | def COmz(YKHO) -> qe4Y.Output[h8nf[bool]]:
return qe4Y.get(YKHO, 'superuser') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qMrd(YKHO):\n return YKHO.sesh.curr_role == 'admin'",
"def qMrd(YKHO):\n return YKHO.admin",
"def qMrd(YKHO) -> bool:\n return YKHO.is_admin",
"def hSiU(CBIr):\n assert isinstance(CBIr, mv1M)\n return gCuF.SU_ACCESS_OVERRIDE and CBIr.is_superuser",
"def qMrd(YKHO):\n if YKHO.admin:\n ... | [
"0.73517036",
"0.73417914",
"0.72437006",
"0.7239257",
"0.71924394",
"0.70565236",
"0.7050956",
"0.6995244",
"0.6939416",
"0.69171995",
"0.68824106",
"0.68824106",
"0.6849522",
"0.6838381",
"0.68383336",
"0.6778258",
"0.6778258",
"0.6734083",
"0.67141277",
"0.66711545",
"0.66... | 0.66659415 | 20 |
Defines the date and time after which the role's password is no longer valid. Established connections past this `valid_time` will have to be manually terminated. This value corresponds to a PostgreSQL datetime. If omitted or the magic value `NULL` is used, `valid_until` will be set to `infinity`. Default is `NULL`, the... | def WkNg(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'valid_until') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGPQ(YKHO) -> qcWV:\n pass",
"def PeWH(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'password_expiration_time')",
"def WkNg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'valid_until')",
"def WkNg(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'valid_until')",
... | [
"0.66583794",
"0.6444193",
"0.62392384",
"0.62392384",
"0.6190555",
"0.6171189",
"0.6111864",
"0.6023468",
"0.6016944",
"0.6003459",
"0.59613025",
"0.59613025",
"0.5955784",
"0.5935501",
"0.59318656",
"0.59178793",
"0.59111947",
"0.5863175",
"0.581967",
"0.58090115",
"0.57938... | 0.6040985 | 7 |
Get ROC and AUC. Extract ReceiverOperatorCharacteristic and AUROC of PLSDA model. | def XYC7(C3ST, tQX9):
yaE0 = {}
if len(tQX9) == 2:
tQX9 = ['0']
cYGy = XTiz.nanmean(C3ST.bootstrapParameters['DA']['boot_TrainROC_fpr'], axis=0)
GwXn = XTiz.nanmean(C3ST.bootstrapParameters['DA']['boot_TrainROC_tpr'], axis=0)
r1ie = XTiz.nanmean(C3ST.bootstrapParameters['DA']['boot_TrainAUC'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def No_o(YKHO):\n if oyIN.sum(YKHO.y_true) != len(YKHO.y_true) / 2.0:\n qmLP.warn('AUROC is not recommended in the case of class imbalance. ', Warning)\n return Qq_d(YKHO.y_true, YKHO.y_pred)",
"def No_o(YKHO):\n if oyIN.sum(YKHO.y_true) != len(YKHO.y_true) / 2.0:\n qmLP.warn('AUROC is not... | [
"0.6077175",
"0.6077175",
"0.60386467",
"0.6004363",
"0.59437364",
"0.5908081",
"0.57513857",
"0.5703473",
"0.5694282",
"0.56927526",
"0.5689174",
"0.5645448",
"0.5641115",
"0.5623667",
"0.5618988",
"0.5604691",
"0.55847967",
"0.55718803",
"0.5566327",
"0.5502433",
"0.5453325... | 0.0 | -1 |
Initialize pathway analysis. Initialization function for pathway analysis. | def yuOQ(pKvt, qmhe, rPvT, EoWT, _OhW, SNex, b7pf, il4b, DpNF):
pKvt['path_file_pathway_org'] = GkAb(qmhe)
pKvt['pathway_alpha'] = rPvT
pKvt['pathway_correction'] = EoWT
pKvt['pathway_selection'] = _OhW
pKvt['pathway_topology_measure'] = SNex
pKvt['pathway_labelsize'] = b7pf
pKvt['pathway_fi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n \"\"\"*** YOUR CODE HERE\"\"\"\n global path_travers\n global destination\n XMH2 = [[1] for YRbF in range(10)]\n yFgu = [[-1, -1] for YRbF in range(10)]",
"def FIMM(YKHO):\n YKHO.flight_database = {}\n YKHO.airport_flights = {}\n YKHO.graph_nodes = {}\n YKHO.graph_edg... | [
"0.6999832",
"0.6682194",
"0.6642926",
"0.663068",
"0.6630477",
"0.65497726",
"0.6540124",
"0.65105665",
"0.64937186",
"0.64842695",
"0.6414293",
"0.63878506",
"0.63700485",
"0.6342193",
"0.6331078",
"0.63211775",
"0.6302142",
"0.62784255",
"0.6268686",
"0.6265765",
"0.625920... | 0.0 | -1 |
Returns dims with initial values where available. An initial value is represented by a single choice value in dims. | def p8n9(YKHO):
return [tpio if RqgG is None else [RqgG] for tpio, RqgG in zip(YKHO.dims, YKHO.initials)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HYea(NArs, U34r, DbyF, cnd2):\n QTBn = NArs[U34r['initial_states']].reshape(1, DbyF['n_mixtures'], DbyF['n_latent_factors'])\n return oLG2.repeat(QTBn, cnd2, axis=0)",
"def DbxN():\n return oyIN.zeros(kvqa)",
"def pE9D(YKHO):\n FKSA = 10 * YKHO._integrand_model.dimensions\n return YKHO._inte... | [
"0.61698204",
"0.5821288",
"0.58112746",
"0.57453316",
"0.57303286",
"0.56984586",
"0.56165475",
"0.5606879",
"0.56007814",
"0.5585249",
"0.554585",
"0.5534924",
"0.5523999",
"0.551859",
"0.5508612",
"0.5508317",
"0.54536444",
"0.54536444",
"0.54536444",
"0.54536444",
"0.5453... | 0.7600348 | 0 |
this operation multiplies the gradient by hp_lambda when computing grads | def FIMM(YKHO, wmEl=1):
super(qO4W, YKHO).__init__()
YKHO.hp_lambda = wmEl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPaw(YKHO, DMIq=None):\n N77f = None\n if DMIq is not None:\n N77f = DMIq()\n for uOe2 in YKHO.param_groups:\n for XP5J in uOe2['params']:\n if XP5J.grad is None:\n continue\n Ro40 = XP5J.grad.data\n QTBn = YKHO.state[XP5J]\n if ... | [
"0.67556596",
"0.6714502",
"0.6657952",
"0.66514313",
"0.66493213",
"0.66493136",
"0.6635299",
"0.6628747",
"0.6623261",
"0.662079",
"0.6613032",
"0.6611842",
"0.6602818",
"0.6576081",
"0.6567873",
"0.6567221",
"0.65564173",
"0.6536169",
"0.6513336",
"0.6513009",
"0.6506671",... | 0.6534915 | 18 |
Fill missing values by interpolation, ffill, and filling NaNs | def jdPK(jQ3Z):
jQ3Z.update(jQ3Z.groupby('GeoID').ConfirmedCases.apply(lambda uOe2: uOe2.interpolate(limit_area='inside')))
jQ3Z.dropna(subset=['ConfirmedCases'], inplace=True)
jQ3Z.update(jQ3Z.groupby('GeoID').ConfirmedDeaths.apply(lambda uOe2: uOe2.interpolate(limit_area='inside')))
jQ3Z.dropna(subset... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def foSh(YKHO, nPrm):\n nPrm = nPrm.filled(oyIN.nan)\n iomA, WKvO = (oyIN.isnan(nPrm), lambda epBp: epBp.nonzero()[0])\n nPrm[iomA] = oyIN.interp(WKvO(iomA), WKvO(~iomA), nPrm[~iomA])\n return nPrm",
"def x7Dv(YKHO):\n if oyIN.isnan(YKHO.spint[0]):\n YKHO.spint[0] = 0\n if oyIN.isnan(YKH... | [
"0.80434555",
"0.77514994",
"0.7553838",
"0.748882",
"0.7477093",
"0.7374533",
"0.7345521",
"0.73453665",
"0.73410213",
"0.7267814",
"0.7262971",
"0.7245693",
"0.72402364",
"0.7239543",
"0.71475303",
"0.7121053",
"0.7098699",
"0.70440286",
"0.7002412",
"0.6958556",
"0.6877399... | 0.72424984 | 12 |
Load a transformers model in TF2, with fallback to PyTorch weights. | def Y4QU(Emd4, *qIxc, **YSA3):
try:
return Emd4.from_pretrained(*qIxc, **YSA3)
except OSError as e:
G9jH.warning('Caught OSError loading model: %s', tTpl)
G9jH.warning('Re-trying to convert from PyTorch checkpoint (from_pt=True)')
return Emd4.from_pretrained(*qIxc, from_pt=True, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SUd8(a2jN, C3ST, cfQG, y7GR):\n ZGE9 = Hy7s.path.join(a2jN, 'transformer_ep' + str(cfQG) + '_' + y7GR + '.pt')\n if Hy7s.path.isfile(ZGE9):\n C3ST.load_state_dict(ht2j.load(ZGE9))\n print('Loading Transformer weights... : {}'.format(ZGE9))\n return C3ST",
"def DTnm():\n return l90I.... | [
"0.62014496",
"0.60497046",
"0.59193724",
"0.591104",
"0.5856432",
"0.5843697",
"0.58309054",
"0.5821479",
"0.58111876",
"0.5790707",
"0.5739672",
"0.573022",
"0.57102907",
"0.57086486",
"0.56967103",
"0.5685802",
"0.568104",
"0.56606543",
"0.5639841",
"0.562937",
"0.5591041"... | 0.0 | -1 |
Returns the queryset for the view By default return all objects using self.model | def k66M(YKHO):
return YKHO.model.objects | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n return YKHO._meta.model.objects.all()",
"def wc3e(YKHO):\n return YKHO.get_queryset()",
"def k66M(YKHO):\n return YKHO.queryset.all()",
"def k66M(YKHO):\n return YKHO.queryset.all()",
"def k66M(YKHO):\n return YKHO.queryset.filter(model_id=YKHO.kwargs['model_id'])",
"def ... | [
"0.85399175",
"0.8523497",
"0.85190374",
"0.85190374",
"0.85080904",
"0.85080904",
"0.84755063",
"0.8446501",
"0.841638",
"0.8390045",
"0.82907236",
"0.82059604",
"0.8141412",
"0.8126372",
"0.81067353",
"0.8090061",
"0.80718327",
"0.8051894",
"0.80036384",
"0.7954129",
"0.791... | 0.8744425 | 0 |
Like the POST handle but updates the object with given ID | def NpNj(YKHO, **B2fa):
from flask import request
nPrm = qQXR.loads(request.data)
YSA3 = YKHO.get_object_kwargs(nPrm)
WBAH = B2fa[YKHO.view_arg_name]
YEnM = YKHO.get_object(WBAH)
for G1Hx, Ty9i in YSA3.iteritems():
setattr(YEnM, G1Hx, Ty9i)
YEnM.save()
return GWqT(YKHO.get_object... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NpNj(YKHO, id):\n nPrm = QePW.json\n HrwA(id, nPrm)\n return (None, 204)",
"def NpNj(YKHO, id):\n nPrm = QePW.json\n HrwA(id, nPrm)\n return (None, 204)",
"def NpNj(YKHO, id):\n try:\n YEnM = Iofl(YKHO.resource_object, id)\n sPBL = YEnM.update(QePW.get_json())\n re... | [
"0.8000226",
"0.8000226",
"0.77551687",
"0.76611",
"0.7471931",
"0.7465056",
"0.7435817",
"0.74343437",
"0.7380983",
"0.73675466",
"0.7318786",
"0.73164535",
"0.7308393",
"0.73036015",
"0.7265694",
"0.72578216",
"0.7246595",
"0.7242349",
"0.7242349",
"0.7242349",
"0.7242349",... | 0.76170737 | 4 |
Paginate the given query. | def roPg(YKHO, USOo=None, PJtN=None, ZLJ_=None):
if ZLJ_ is None:
ZLJ_ = ['*']
wjRY = YKHO._query.get_count_for_pagination()
B2Dn = PJtN or NIbP.resolve_current_page()
USOo = USOo or YKHO._model.get_per_page()
YKHO._query.for_page(B2Dn, USOo)
return y2_x(YKHO.get(ZLJ_).all(), wjRY, USOo,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiLI(YKHO, xDcj):\n if YKHO.paginator is None:\n return None\n return YKHO.paginator.paginate_query(xDcj, YKHO.request)",
"def Z1fV(YKHO, xDcj, vgXP=None, qoqK=None):\n if vgXP is not None:\n xDcj = xDcj.offset(vgXP)\n if qoqK is not None:\n xDcj = xDcj.limit(qoqK)\n retur... | [
"0.8268786",
"0.8062698",
"0.78423005",
"0.7451312",
"0.74461395",
"0.7400479",
"0.7066227",
"0.70539",
"0.7035293",
"0.6956807",
"0.68598056",
"0.68127406",
"0.67980295",
"0.67976665",
"0.67602867",
"0.67435277",
"0.6718017",
"0.6700951",
"0.668766",
"0.66565704",
"0.6644935... | 0.0 | -1 |
Paginate the given query. | def wjGm(YKHO, USOo=None, PJtN=None, ZLJ_=None):
if ZLJ_ is None:
ZLJ_ = ['*']
B2Dn = PJtN or NIbP.resolve_current_page()
USOo = USOo or YKHO._model.get_per_page()
YKHO.skip((B2Dn - 1) * USOo).take(USOo + 1)
return NIbP(YKHO.get(ZLJ_).all(), USOo, B2Dn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiLI(YKHO, xDcj):\n if YKHO.paginator is None:\n return None\n return YKHO.paginator.paginate_query(xDcj, YKHO.request)",
"def Z1fV(YKHO, xDcj, vgXP=None, qoqK=None):\n if vgXP is not None:\n xDcj = xDcj.offset(vgXP)\n if qoqK is not None:\n xDcj = xDcj.limit(qoqK)\n retur... | [
"0.8268786",
"0.8062698",
"0.78423005",
"0.7451312",
"0.74461395",
"0.7400479",
"0.7066227",
"0.70539",
"0.7035293",
"0.6956807",
"0.68598056",
"0.68127406",
"0.67980295",
"0.67976665",
"0.67602867",
"0.67435277",
"0.6718017",
"0.6700951",
"0.668766",
"0.66565704",
"0.6644935... | 0.0 | -1 |
Eager load the relationship of the models. | def KzOL(YKHO, FYrf):
for mWFP, gkIT in YKHO._eager_load.items():
if mWFP.find('.') == -1:
FYrf = YKHO._load_relation(FYrf, mWFP, gkIT)
return FYrf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VJKz(YKHO, FYrf, mWFP, gkIT):\n koMu = YKHO.get_relation(mWFP)\n koMu.add_eager_constraints(FYrf)\n if callable(gkIT):\n gkIT(koMu.get_query())\n else:\n koMu.merge_query(gkIT)\n FYrf = koMu.init_relation(FYrf, mWFP)\n dixj = koMu.get_eager()\n return koMu.match(FYrf, dixj, m... | [
"0.6876254",
"0.6603804",
"0.65508413",
"0.6421163",
"0.63690144",
"0.6252235",
"0.6251202",
"0.62331647",
"0.6149964",
"0.61263275",
"0.6106062",
"0.6065875",
"0.6060094",
"0.6036783",
"0.5980607",
"0.58544934",
"0.5841449",
"0.5669541",
"0.56656265",
"0.56491184",
"0.563481... | 0.7762311 | 0 |
Add a relationship count condition to the query. | def xc3U(YKHO, koMu, seET='>=', UHFx=1, _J6_='and', dDGN=None):
if koMu.find('.') >= 0:
return YKHO._has_nested(koMu, seET, UHFx, _J6_, dDGN)
koMu = YKHO._get_has_relation_query(koMu)
xDcj = koMu.get_relation_count_query(koMu.get_related().new_query(), YKHO)
if dDGN:
if callable(dDGN):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELnB(YKHO, xDcj, _AKB):\n if _AKB.get_query().from__ == xDcj.get_query().from__:\n return YKHO.get_relation_count_query_for_self_join(xDcj, _AKB)\n YKHO._set_join(xDcj)\n return super(UWrq, YKHO).get_relation_count_query(xDcj, _AKB)",
"def qzhI(Emd4, shjz, koMu):\n return Emd4.store.fget(E... | [
"0.6967103",
"0.66879785",
"0.6565775",
"0.6565166",
"0.63088584",
"0.6231494",
"0.6126758",
"0.60458106",
"0.59944206",
"0.5970833",
"0.59483665",
"0.5895576",
"0.5862375",
"0.58605397",
"0.58605397",
"0.5812488",
"0.57842755",
"0.577739",
"0.5769185",
"0.5769185",
"0.574648... | 0.6591791 | 2 |
Add a relationship count to the query. | def oH2v(YKHO, koMu, _J6_='and', dDGN=None):
return YKHO.has(koMu, '<', 1, _J6_, dDGN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELnB(YKHO, xDcj, _AKB):\n if _AKB.get_query().from__ == xDcj.get_query().from__:\n return YKHO.get_relation_count_query_for_self_join(xDcj, _AKB)\n YKHO._set_join(xDcj)\n return super(UWrq, YKHO).get_relation_count_query(xDcj, _AKB)",
"def qzhI(Emd4, shjz, koMu):\n return Emd4.store.fget(E... | [
"0.6829595",
"0.6827389",
"0.6706977",
"0.62633604",
"0.622719",
"0.6146138",
"0.6100548",
"0.6088404",
"0.6023782",
"0.59478784",
"0.5946635",
"0.5849293",
"0.58263457",
"0.58024484",
"0.5728337",
"0.56893724",
"0.5663465",
"0.5658432",
"0.56574",
"0.5641676",
"0.5641676",
... | 0.0 | -1 |
Add a relationship count condition to the query with where clauses. | def cmBF(YKHO, koMu, dDGN, seET='>=', UHFx=1):
return YKHO.has(koMu, seET, UHFx, 'and', dDGN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELnB(YKHO, xDcj, _AKB):\n if _AKB.get_query().from__ == xDcj.get_query().from__:\n return YKHO.get_relation_count_query_for_self_join(xDcj, _AKB)\n YKHO._set_join(xDcj)\n return super(UWrq, YKHO).get_relation_count_query(xDcj, _AKB)",
"def wHkx(YKHO, zKTh, koMu, seET, UHFx, _J6_):\n YKHO._... | [
"0.6588103",
"0.65552515",
"0.64265263",
"0.6332289",
"0.62491345",
"0.6243024",
"0.61089796",
"0.60351956",
"0.5966973",
"0.5896508",
"0.5873679",
"0.58483607",
"0.57366234",
"0.569677",
"0.5667883",
"0.5667883",
"0.56676626",
"0.56676626",
"0.56314665",
"0.56151295",
"0.560... | 0.6670275 | 0 |
Add a relationship count condition to the query with where clauses. | def eY4Q(YKHO, koMu, dDGN=None):
return YKHO.doesnt_have(koMu, 'and', dDGN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cmBF(YKHO, koMu, dDGN, seET='>=', UHFx=1):\n return YKHO.has(koMu, seET, UHFx, 'and', dDGN)",
"def ELnB(YKHO, xDcj, _AKB):\n if _AKB.get_query().from__ == xDcj.get_query().from__:\n return YKHO.get_relation_count_query_for_self_join(xDcj, _AKB)\n YKHO._set_join(xDcj)\n return super(UWrq, Y... | [
"0.66692674",
"0.65881455",
"0.65547746",
"0.6426356",
"0.6333174",
"0.6248212",
"0.6242639",
"0.6109268",
"0.6036128",
"0.59666663",
"0.5896346",
"0.58744866",
"0.5849783",
"0.57362944",
"0.5696602",
"0.56683844",
"0.56683844",
"0.56680137",
"0.56680137",
"0.5631119",
"0.561... | 0.0 | -1 |
Add the "has" condition where clause to the query. | def wHkx(YKHO, zKTh, koMu, seET, UHFx, _J6_):
YKHO._merge_wheres_to_has(zKTh, koMu)
if isinstance(UHFx, exCv) and UHFx.isdigit():
UHFx = hfRv(UHFx)
return YKHO.where(hfRv('(%s)' % zKTh.to_sql()), seET, UHFx, _J6_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cmBF(YKHO, koMu, dDGN, seET='>=', UHFx=1):\n return YKHO.has(koMu, seET, UHFx, 'and', dDGN)",
"def O76D(YKHO, koMu, dDGN, seET='>=', UHFx=1):\n return YKHO.has(koMu, seET, UHFx, 'or', dDGN)",
"def rcfv(YKHO):\n YKHO._validate_where_syntax()\n return super(gme2, YKHO)._where_clause()",
"def xc... | [
"0.71796346",
"0.63545614",
"0.61117107",
"0.60386574",
"0.5995486",
"0.5995486",
"0.59898025",
"0.59069574",
"0.59040827",
"0.58825755",
"0.58680487",
"0.58305043",
"0.5764999",
"0.57566714",
"0.56490105",
"0.5646113",
"0.56447166",
"0.55873096",
"0.55726326",
"0.5568638",
"... | 0.77681386 | 0 |
Merge the "wheres" from the relation query to a has query. | def ty7D(YKHO, zKTh, koMu):
ExLb = koMu.get_base_query()
zKTh.merge_wheres(ExLb.wheres, ExLb.get_bindings())
YKHO._query.merge_bindings(zKTh.get_query()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHkx(YKHO, zKTh, koMu, seET, UHFx, _J6_):\n YKHO._merge_wheres_to_has(zKTh, koMu)\n if isinstance(UHFx, exCv) and UHFx.isdigit():\n UHFx = hfRv(UHFx)\n return YKHO.where(hfRv('(%s)' % zKTh.to_sql()), seET, UHFx, _J6_)",
"def cmBF(YKHO, koMu, dDGN, seET='>=', UHFx=1):\n return YKHO.has(koMu... | [
"0.680828",
"0.6547272",
"0.63533354",
"0.60929674",
"0.59130925",
"0.584064",
"0.58051014",
"0.5737838",
"0.5600735",
"0.55428505",
"0.5503912",
"0.5499997",
"0.5487824",
"0.54203165",
"0.5415973",
"0.5411796",
"0.540863",
"0.5395629",
"0.5323295",
"0.53231514",
"0.5307818",... | 0.80802345 | 0 |
Parse the nested relationship in a relation. | def zHCG(YKHO, mWFP, dixj):
Eb4t = []
for hTWD in mWFP.split('.'):
Eb4t.append(hTWD)
XVAW = '.'.join(Eb4t)
if XVAW not in dixj:
dixj[XVAW] = YKHO.__class__(YKHO.get_query().new_query())
return dixj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vUEd(KCHu):\n uOqp = '^________________________________________________________\\\\n' + '____(?P<type>.*)____\\\\n'\n AvtT = ZbWC.match(uOqp, KCHu).group('type')\n c_NS = dict(GrxB)\n if AvtT not in c_NS:\n raise Exception('Unknown PDTB relation type: ' + AvtT)\n wvEv = klZY(AvtT, c_NS[Av... | [
"0.69195366",
"0.618824",
"0.5960765",
"0.5945443",
"0.55505764",
"0.54950845",
"0.5398149",
"0.53839797",
"0.5353858",
"0.53330255",
"0.533281",
"0.5271559",
"0.52455586",
"0.52332187",
"0.52136296",
"0.5210526",
"0.51548886",
"0.51547915",
"0.51322836",
"0.5127421",
"0.5116... | 0.45631036 | 83 |
Render the home page. | def kZiy():
return QKT4('home.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('pages/home.html')",
"def vja_():\n return TvZl('home.html')",
"def kZiy():\n return... | [
"0.8777613",
"0.8774461",
"0.87677056",
"0.870502",
"0.8609293",
"0.8596855",
"0.8593956",
"0.8579833",
"0.8579833",
"0.8569989",
"0.8569989",
"0.8553895",
"0.85526305",
"0.85526305",
"0.85526305",
"0.85526305",
"0.85526305",
"0.85526305",
"0.85526305",
"0.85526305",
"0.85526... | 0.0 | -1 |
Test service area requests in a simple case. | def Yytt(YKHO, C_Pq):
buk3 = ['ca_alameda_94601']
C_Pq.return_value = buk3
try:
hlel = cPPi.service_areas_request(YKHO.app, {}, eHpk)
except TypeError:
trZe.fail('Could not retrieve service areas.')
assert hlel == buk3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zW1L(QePW):\n pass",
"def _zNX(YKHO):\n pzVU = ['https://api.omniture.com/admin/1.4/rest/', 'https://api2.omniture.com/admin/1.4/rest/', 'https://api3.omniture.com/admin/1.4/rest/', 'https://api4.omniture.com/admin/1.4/rest/', 'https://api5.omniture.com/admin/1.4/rest/']\n YKHO.assertIn(YKHO.analyti... | [
"0.68162644",
"0.63686824",
"0.63198084",
"0.6319663",
"0.63192177",
"0.62919104",
"0.62841535",
"0.624469",
"0.61760074",
"0.61752415",
"0.615875",
"0.61250955",
"0.60982496",
"0.60867435",
"0.60796994",
"0.6053916",
"0.6051062",
"0.60043055",
"0.59762096",
"0.59714204",
"0.... | 0.7090567 | 0 |
IsEdgeInOnextRing(itkQuadEdge self, itkQuadEdge testEdge) > bool | def uOXL(YKHO, bFzh: 'itkQuadEdge') -> 'bool':
return vpqw.itkQuadEdge_IsEdgeInOnextRing(YKHO, bFzh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tqys(YKHO, *qIxc):\n return SKjC.itkGeometricalQuadEdgeULULBBT_IsInOnextRing(YKHO, *qIxc)",
"def Tqys(YKHO, *qIxc):\n return SKjC.itkGeometricalQuadEdgeULULBBF_IsInOnextRing(YKHO, *qIxc)",
"def oxL1(WKvO, LVAh, pdhd, WcTf):\n QRFO = 1\n if WcTf[LVAh][WKvO] == 0:\n return pdhd[LVAh - 1][W... | [
"0.80016",
"0.79583097",
"0.66466206",
"0.6618432",
"0.6260855",
"0.6241195",
"0.6197372",
"0.61716294",
"0.6150142",
"0.6149708",
"0.61077046",
"0.61064017",
"0.60829365",
"0.60761714",
"0.6072893",
"0.6042695",
"0.6033638",
"0.6024876",
"0.60157996",
"0.60131526",
"0.599070... | 0.92768794 | 0 |
Define reward functions (tactical, and strategic value and hierarchical reward if applicable) given the input paremeters. | def FIMM(YKHO, EmUK, efQv, x1Qd=[], Wff1=None, COPe=None, OYML=GPtr.W_SPEED, QOIi=None, BOVZ=None, V572=GPtr.W_BEHIND, yOKL=GPtr.W_CONTROL, voHt=GPtr.W_BOUNDED_CONTROL, iBLD=30.0 * uwaB.METERS_TO_VIS, pKaj=GPtr.FINE_BEHIND_R, RAMi=GPtr.FENCE_SIGMOID, MW4C=uwaB.CAR_CONTROL_BOUNDS, Dge_=False):
YKHO.world = EmUK
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tc71(YKHO, NArs: dict):\n YKHO.qed_weight = NArs.get('qed_weight', 0.0)\n YKHO.tox21_weight = NArs.get('tox21_weight', 0.5)\n YKHO.paccmann_weight = NArs.get('paccmann_weight', 1.0)\n YKHO.affinity_weight = NArs.get('affinity_weight', 1.0)\n YKHO.weight_tot = YKHO.paccmann_weight + YKHO.affinity... | [
"0.6741629",
"0.6452855",
"0.64313245",
"0.6424942",
"0.6420041",
"0.63961536",
"0.63889915",
"0.6356126",
"0.6355036",
"0.6338445",
"0.6061351",
"0.6050083",
"0.604444",
"0.60251945",
"0.5979406",
"0.59290063",
"0.5886571",
"0.5861865",
"0.5843842",
"0.5843842",
"0.5843842",... | 0.0 | -1 |
Compute the control reward. | def vqvo(YKHO, nDEB):
boLL = YKHO.w_control * RDhP.control()
myYU = YKHO.w_bounded_control * RDhP.bounded_control(nDEB, YKHO.car_control_bounds)
return boLL + myYU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _KvT(YKHO, pR3T, _ins):\n return vOGg",
"def hHjb(YKHO):\n QTBn = YKHO._getDroneStateVector(0)\n return -1 * oyIN.linalg.norm(oyIN.array([0, 0, 1]) - QTBn[0:3]) ** 2",
"def vOGg(YKHO):\n YKHO.r = YKHO.calc_reward()",
"def YncY(YKHO):\n raise NotImplementedError",
"def I3Dg(YKHO):\n RA... | [
"0.8168806",
"0.79984516",
"0.7900204",
"0.78972375",
"0.7770318",
"0.77483183",
"0.7747166",
"0.7723963",
"0.7677335",
"0.7677335",
"0.7677335",
"0.7677335",
"0.7677335",
"0.7649988",
"0.76211923",
"0.76147956",
"0.7593173",
"0.7585267",
"0.7585267",
"0.7548052",
"0.7525969"... | 0.7151536 | 49 |
Returns whether this is constant or not. | def avzC(YKHO):
return YKHO.is_const | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def avzC(YKHO):\n return YKHO._is_constant",
"def avzC(YKHO):\n return False",
"def Ac9L(YKHO):\n pass",
"def feog(YKHO):\n return False",
"def Ac9L(YKHO):\n raise NotImplementedError()",
"def Ac9L(YKHO):\n raise NotImplementedError()",
"def fAGM(YKHO):\n return 0",
"def si3H(YKH... | [
"0.89371777",
"0.8644367",
"0.8577344",
"0.8073081",
"0.7903284",
"0.7903284",
"0.7886181",
"0.78131056",
"0.77346563",
"0.772137",
"0.76302797",
"0.7501008",
"0.7329039",
"0.72937435",
"0.7140005",
"0.68935794",
"0.68642473",
"0.685589",
"0.6846297",
"0.6796631",
"0.676222",... | 0.8969379 | 0 |
Build the home (index.html) page and, optionally, the trends.html toplevel page. | def qsUn(mvm2, rK1j, Xx_4='index.html', Xzf3=0.262, aiCm=jOxa, S497=BAK2, B5_u=TJfR, QWRD=True):
import legacyhalos.html
pelh = Hy7s.path.join(rK1j, Xx_4)
print('Building {}'.format(pelh))
Rf_J = idNh.html.html_javadate()
with open(pelh, 'w') as _R2e:
_R2e.write('<html><body>\n')
_R2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return TvZl('home/index.html', title='Welcome to VTrack!')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('main1.html', pred={})",
"def C_QL():\n return TvZl('home/index.html', title='Welcome')",
"def C_QL():\n return TvZl('home/index.html', title='S... | [
"0.71828",
"0.7145025",
"0.71072364",
"0.7097028",
"0.7092859",
"0.7089564",
"0.70817655",
"0.7042513",
"0.7036922",
"0.7036922",
"0.7036922",
"0.7036922",
"0.7036922",
"0.70311433",
"0.6977414",
"0.6977414",
"0.69721836",
"0.69676197",
"0.6966958",
"0.6966107",
"0.6966107",
... | 0.0 | -1 |
Factory command to create the Driver. This method gets the appropriate Driver class from the registry and creates an instance of it, while passing in the parameters given in ``kwargs``. | def kED_(Emd4, mWFP: str, UET8: NetworkFunction) -> 'DriverBase':
if mWFP not in Emd4.registry:
print('Driver %s does not exist in the registry' % mWFP)
return None
vEBI = Emd4.registry[mWFP]
E_qD = vEBI(UET8)
return E_qD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, **YSA3):\n CBIr = QePW.environ.get('repoze.who.identity')['user']\n mWFP = YSA3['name']\n Guod = hexq.by_drivertype_name(YSA3['type'])\n license = fVaT.by_license_name(YSA3['license'])\n V3AY = KKZo.by_vendor_name(YSA3['vendor'])\n DpZH = YSA3['version']\n aM_I = YSA3['comment']... | [
"0.67581683",
"0.6508416",
"0.6417873",
"0.6408658",
"0.63939786",
"0.6230412",
"0.6140355",
"0.61335987",
"0.6128836",
"0.61196727",
"0.6075506",
"0.60480464",
"0.5971493",
"0.5909966",
"0.586489",
"0.58593786",
"0.5849409",
"0.58455884",
"0.5841633",
"0.58371574",
"0.581961... | 0.6943569 | 0 |
When a new Alumni() object is created, this runs | def FIMM(YKHO, qIxc):
G8qb.__init__(YKHO, qIxc)
tjON = qIxc['degrees']
YKHO.program = tjON['program']
YKHO.degree = tjON['degree']
YKHO.conferred_date = tjON['conferred_date'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.clawfoot_tub = HvY3()\n YKHO.free_nutella = HvY3()\n YKHO.free_nutella.save()",
"def FCbF(YKHO):\n YKHO.eric = TjLA('eric', 'matthews', 60000)",
"def FIMM(YKHO, rb7F, q_pB):\n YKHO.ulica = rb7F\n YKHO.miasto = q_pB",
"def FIMM(YKHO, PObu, mWFP, jPoi=None, gBHy=None, k... | [
"0.6336201",
"0.58822554",
"0.5817134",
"0.58047837",
"0.58010846",
"0.57899755",
"0.57565826",
"0.57501143",
"0.57501143",
"0.5719127",
"0.5717819",
"0.57174325",
"0.5682518",
"0.5663976",
"0.56494725",
"0.5639626",
"0.5638175",
"0.5623222",
"0.56029344",
"0.55919033",
"0.55... | 0.0 | -1 |
If no questions exist, an appropriate message is displayed. | def oK9x(YKHO):
geh0 = YKHO.client.get(gxEw('polls:index'))
YKHO.assertEqual(geh0.status_code, 200)
YKHO.assertContains(geh0, 'No polls are available.')
YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAls():\n return 'Sure.'",
"def oK9x(YKHO):\n geh0 = YKHO.client.get('/polls/')\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, '등록된 설문조사가 없습니다.')\n YKHO.assertQuerysetEqual(geh0.context['question_list'], [])",
"def oK9x(YKHO):\n geh0 = YKHO.client.get(gxEw('polls:in... | [
"0.70968",
"0.6961695",
"0.6906153",
"0.68853587",
"0.68397427",
"0.682135",
"0.682135",
"0.682135",
"0.682135",
"0.68052185",
"0.6790371",
"0.675324",
"0.6674977",
"0.6672006",
"0.65892637",
"0.6539892",
"0.65218174",
"0.6503947",
"0.65029293",
"0.64880466",
"0.6478606",
"... | 0.68753886 | 4 |
Questions with a pub_date in the past are displayed on the index page. | def MULS(YKHO):
II0Q(question_text='Past question.', days=-30)
geh0 = YKHO.client.get(gxEw('polls:index'))
YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question.>']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lrPw(YKHO):\n II0Q(question_text='Past question.', days=-1)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question.>'])",
"def hOEG(YKHO):\n II0Q(question_text='Past question.', days=-1)\n II0Q(question_text='Fu... | [
"0.7111651",
"0.7096923",
"0.7055705",
"0.70429885",
"0.7034033",
"0.7000487",
"0.69339925",
"0.6872151",
"0.6857239",
"0.6852442",
"0.6820576",
"0.67842954",
"0.6783682",
"0.6761873",
"0.6761184",
"0.6759549",
"0.6741265",
"0.673391",
"0.67238563",
"0.6699716",
"0.66741055",... | 0.6466408 | 49 |
Questions with a pub_date in the future aren't displayed on the index page. | def ALCE(YKHO):
II0Q(question_text='Future question.', days=30)
geh0 = YKHO.client.get(gxEw('polls:index'))
YKHO.assertContains(geh0, 'No polls are available.')
YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t9CC(YKHO):\n II0Q(question_text='Test future question?', days=25)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertContains(geh0, 'No polls are available.')\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], [])",
"def t9CC(YKHO):\n II0Q(question_text='Future Question.... | [
"0.71425766",
"0.69929594",
"0.6990391",
"0.6987513",
"0.6979976",
"0.69576967",
"0.6935176",
"0.6926429",
"0.69094735",
"0.68905807",
"0.6873639",
"0.68667066",
"0.6854875",
"0.68499845",
"0.68481845",
"0.6844279",
"0.6844279",
"0.68321866",
"0.68314046",
"0.68215585",
"0.68... | 0.67692274 | 32 |
Even if both past and future questions exist, only past questions are displayed. | def fV9N(YKHO):
II0Q(question_text='Past question.', days=-30)
II0Q(question_text='Future question.', days=30)
geh0 = YKHO.client.get(gxEw('polls:index'))
YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question.>']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tDUO(YKHO):\n II0Q(question_text='Future Question Example', days=30)\n II0Q(question_text='Past Question Example', days=-30)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past Question Example>'])",
"def Xb9Y(YKHO):\n ... | [
"0.77833176",
"0.77218467",
"0.75857556",
"0.7584727",
"0.758094",
"0.75713533",
"0.7550779",
"0.75446093",
"0.7520637",
"0.7505378",
"0.7474501",
"0.74588656",
"0.7434542",
"0.73871607",
"0.73791546",
"0.7379003",
"0.7358587",
"0.734601",
"0.7343335",
"0.7334387",
"0.7321191... | 0.7517527 | 10 |
was_published_recnetly() returns False for questions whose pub_date is in the future. | def GoiU(YKHO):
ITS7 = rIAI.now() + qcWV.timedelta(days=30)
vS5o = Y4Gy(pub_date=ITS7)
YKHO.assertIs(vS5o.was_published_recently(), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sDWK(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=10)\n vS5o = Y4Gy(pub_date=ITS7)\n YKHO.assertIs(vS5o.is_published(), False)",
"def GoiU(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=30)\n vS5o = Y4Gy(pub_date=ITS7)\n YKHO.assertEqual(vS5o.was_published_recently(), False)",
"def ... | [
"0.7967027",
"0.79310405",
"0.79032207",
"0.7902354",
"0.7893057",
"0.7888259",
"0.78861105",
"0.7884706",
"0.7882048",
"0.78796756",
"0.78783095",
"0.78696036",
"0.78667694",
"0.78667694",
"0.78667694",
"0.7865636",
"0.7865636",
"0.7865636",
"0.7865636",
"0.78650755",
"0.785... | 0.76070625 | 71 |
was_published_recently() returns False for questions whose pub_date is older than 1 day. | def QPdK(YKHO):
ITS7 = rIAI.now() - qcWV.timedelta(days=1, seconds=1)
lPNG = Y4Gy(pub_date=ITS7)
YKHO.assertIs(lPNG.was_published_recently(), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_... | [
"0.8741497",
"0.8741497",
"0.8741497",
"0.8741497",
"0.8681268",
"0.82433194",
"0.8219166",
"0.8215317",
"0.8190133",
"0.817755",
"0.81692386",
"0.81692386",
"0.81692386",
"0.81692386",
"0.81692386",
"0.81692386",
"0.81692386",
"0.81692386",
"0.81692386",
"0.81692386",
"0.816... | 0.8146135 | 28 |
was_published_recently() returns True for questions whose pub_date is within the last day. | def eC1B(YKHO):
ITS7 = rIAI.now() - qcWV.timedelta(hours=23, minutes=59)
m5xt = Y4Gy(pub_date=ITS7)
YKHO.assertIs(m5xt.was_published_recently(), True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_date <= wzkt",
"def WC1_(YKHO):\n wzkt = rIAI.now()\n return wzkt - qcWV.timedelta(days=1) <= YKHO.pub_... | [
"0.87500256",
"0.87500256",
"0.87500256",
"0.87500256",
"0.86421126",
"0.8240479",
"0.8157581",
"0.814848",
"0.81437826",
"0.81424725",
"0.81409675",
"0.81409675",
"0.81409675",
"0.81409675",
"0.81409675",
"0.81409675",
"0.81409675",
"0.81409675",
"0.81409675",
"0.81409675",
... | 0.8129161 | 24 |
The outgoing edges from this vertex. | def eab2(YKHO):
return YKHO.__outgoing_edges | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eab2(YKHO) -> fHNa['Edge']:\n return YKHO._outgoing_edges",
"def eab2(YKHO):\n return [tTpl for tTpl in YKHO._incident_edges if not tTpl._directed or tTpl._source == YKHO]",
"def QD1e(YKHO):\n lXYU = YKHO.outgoing_edge\n U7KR = []\n uLl_ = set()\n while lXYU and lXYU not in uLl_:\n ... | [
"0.8783576",
"0.83460766",
"0.83373475",
"0.78902614",
"0.7874066",
"0.7797162",
"0.771301",
"0.7709554",
"0.7689231",
"0.7657967",
"0.7652798",
"0.76421916",
"0.760939",
"0.760939",
"0.760939",
"0.760939",
"0.7586089",
"0.7586089",
"0.7566838",
"0.75584024",
"0.75584024",
... | 0.9005244 | 0 |
Plot model loss and accuracy through epochs. | def x75Y(YKHO, YbcW, SsqE, _0UF, UiRP):
pPPK = '#34495E'
jlxe = '#2ECC71'
nH0o = '#E23B13'
LZpg, (hh7H, fTVC) = QrM1.subplots(2, figsize=(10, 8))
hh7H.plot(range(1, len(YbcW) + 1), YbcW, pPPK, linewidth=5, label='training')
hh7H.plot(range(1, len(_0UF) + 1), _0UF, jlxe, linewidth=5, label='valid... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBbd(YKHO):\n QrM1.plot(YKHO.model.history.history['loss'])\n QrM1.plot(YKHO.model.history.history['val_loss'])\n QrM1.title('Model loss')\n QrM1.ylabel('Loss')\n QrM1.xlabel('Epoch')\n QrM1.legend(['Train', 'Test'], loc='upper right')\n return QrM1.show()",
"def mBbd(YKHO):\n QrM1.pl... | [
"0.8261776",
"0.82285136",
"0.8138557",
"0.8018733",
"0.79982907",
"0.7991229",
"0.7932334",
"0.78862983",
"0.787881",
"0.78601956",
"0.78599006",
"0.78384364",
"0.78298795",
"0.7819278",
"0.7809163",
"0.78086823",
"0.77876997",
"0.77607536",
"0.7732576",
"0.7721147",
"0.7719... | 0.78491664 | 11 |
Reads the CSV file from path provided. | def mjM_(BjdU):
with open(BjdU, 'r') as LtY3:
nPrm = []
VmXa = m6_J.reader(LtY3, delimiter=',')
next(VmXa)
for rdlD in VmXa:
nPrm.append(rdlD)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HND1(u9X4):\n raise NotImplementedError()",
"def HND1(YKHO, qaEx):\n with open(qaEx, mode='r') as z36O:\n ixsc = m6_J.reader(z36O, delimiter=',')\n YKHO.file_data = list(ixsc)",
"def HND1(pmON):\n pmON = pmON if isinstance(pmON, str) else str(pmON)\n return Yu9h().read.csv(pmON, h... | [
"0.8149749",
"0.7804677",
"0.77303666",
"0.7612528",
"0.7538909",
"0.7514694",
"0.7513111",
"0.747701",
"0.7442037",
"0.73999274",
"0.7329418",
"0.73246896",
"0.7307981",
"0.73001736",
"0.729468",
"0.72770315",
"0.72740126",
"0.72429365",
"0.7239088",
"0.7232555",
"0.72146326... | 0.729053 | 15 |
Applies any state from a restart run. The only state applied from a restart run is the 'run_params' attr. This is initialized to ensure that any original run params are preserved from the original run spec (e.g. a staged run) unless otherwise updated by the restart. | def TY6L(o4sw):
khtY = o4sw.batch_op if o4sw.batch_op else o4sw.user_op
assert khtY
assert not khtY.run_attrs, khtY.run_attrs
khtY.run_attrs['run_params'] = o4sw.restart_run.get('run_params') or {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oCCY(iXC1, OoK2=None):\n ZOTy = ['force_flags', 'gpus', 'max_trials', 'maximize', 'minimize', 'no_gpus', 'opt_flags', 'optimizer', 'random_seed']\n from guild.commands.run import iXC1 as fupw\n mdJC = iXC1.get('run_params', {})\n if not isinstance(mdJC, dict):\n return\n vz2f = fupw.make_... | [
"0.71239305",
"0.71041346",
"0.6628817",
"0.6499741",
"0.619243",
"0.58710307",
"0.57362604",
"0.57362604",
"0.5668954",
"0.56498134",
"0.55990475",
"0.55881596",
"0.5587151",
"0.55525535",
"0.5546638",
"0.55300856",
"0.5458164",
"0.5407862",
"0.5393392",
"0.5377633",
"0.5362... | 0.7993719 | 0 |
Function to recursively update sample covariance matrix. | def QqTN(YKHO, iter, poLx, UIb4):
WhY1 = iter - poLx
qC1Y = YKHO.ndim
if WhY1 == 0:
YKHO.M2 = oyIN.zeros((qC1Y, qC1Y))
YKHO.mu = oyIN.zeros(qC1Y)
for P2GO in range(poLx):
yk4i = oyIN.zeros(qC1Y)
WhY1 += 1
for gDyN in range(qC1Y):
yk4i[gDyN] = YKHO._AMb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _IBo(YKHO):\n Z9rn, Mkmy = YKHO.size()\n float(Z9rn)\n float(Mkmy)\n Sfqw = YKHO.mean()\n rS_H = rw78((Z9rn, Mkmy))\n for VheP in range(Z9rn):\n A6dL = float(0)\n for B2tN in range(Z9rn):\n for YRbF in range(Mkmy):\n A6dL += (YKHO[VheP, YRbF] - Sfqw[Vhe... | [
"0.6593434",
"0.64377624",
"0.6368761",
"0.6251227",
"0.61852276",
"0.6139064",
"0.60593456",
"0.6052738",
"0.60516655",
"0.60274476",
"0.59734684",
"0.59246486",
"0.5914773",
"0.5900123",
"0.5871096",
"0.5840373",
"0.5839266",
"0.58165884",
"0.5803451",
"0.57688016",
"0.5752... | 0.53321487 | 57 |
setUp method that will run before every test | def FCbF(YKHO):
YKHO.new_sources = LSFv('cgtn-news', 'CGTN News', 'cgtnnews.com') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n DuvM.TestCase.setUp(YKHO)",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):\n pass",
"def FCbF(YKHO):... | [
"0.8793139",
"0.8697705",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"0.8667009",
"... | 0.0 | -1 |
Push element x onto stack. | def _jXH(YKHO, WKvO: int) -> None:
if YKHO.empty() or not YKHO.queue2:
YKHO.queue1.append(WKvO)
else:
YKHO.queue2.append(WKvO)
YKHO.topElement = WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, WKvO):\n YKHO.in_stack.append(WKvO)",
"def _jXH(YKHO, WKvO):\n ycBG = S9Ut()\n while not YKHO.stack.empty():\n U6D_ = YKHO.stack.pop()\n ycBG.push(U6D_)\n YKHO.stack.push(WKvO)\n while not ycBG.empty():\n U6D_ = ycBG.pop()\n YKHO.stack.push(U6D_)\n ret... | [
"0.8884891",
"0.88815904",
"0.8851905",
"0.8829994",
"0.8825823",
"0.87915844",
"0.8784638",
"0.8781226",
"0.8723327",
"0.87200546",
"0.87101483",
"0.8696664",
"0.86889726",
"0.8672952",
"0.86561507",
"0.86259526",
"0.8610324",
"0.86102635",
"0.860013",
"0.860013",
"0.8581793... | 0.75812155 | 67 |
Removes the element on top of the stack and returns that element. | def BEuN(YKHO) -> int:
if not YKHO.queue1:
s_GD = YKHO.queue2
wzDi = YKHO.queue1
else:
s_GD = YKHO.queue1
wzDi = YKHO.queue2
Ylbp = s_GD[0]
while len(s_GD) != 1:
Ylbp = s_GD.pop(0)
wzDi.append(Ylbp)
YKHO.topElement = Ylbp
return s_GD.pop(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN():\n global top\n if A4KR():\n return None\n U6D_ = E5BI[tlxW]\n E5BI[tlxW] = None\n BAMb[tlxW] = None\n tlxW -= 1\n return U6D_",
"def BEuN(E5BI):\n LihS = E5BI.elements[-1]\n del E5BI.elements[-1]\n return LihS",
"def BEuN(YKHO):\n ZfUD = YKHO.stack.pop()\n ... | [
"0.83285564",
"0.82814056",
"0.8210085",
"0.81704277",
"0.81349236",
"0.8095011",
"0.8064679",
"0.8016918",
"0.7953157",
"0.7943855",
"0.793094",
"0.78770566",
"0.7872679",
"0.7850065",
"0.7826401",
"0.77995974",
"0.77936834",
"0.77862775",
"0.7773103",
"0.7773103",
"0.777310... | 0.0 | -1 |
Returns whether the stack is empty. | def lsmZ(YKHO) -> bool:
return True if not YKHO.queue1 and (not YKHO.queue2) else False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def A4K... | [
"0.9128382",
"0.9128382",
"0.9089147",
"0.9089147",
"0.9089147",
"0.9054476",
"0.90168625",
"0.90168625",
"0.9007831",
"0.89530855",
"0.8949649",
"0.8949649",
"0.8938501",
"0.89370805",
"0.8922049",
"0.88844925",
"0.88758796",
"0.88700867",
"0.88436955",
"0.8797164",
"0.87931... | 0.0 | -1 |
Set the emoji used to represent TeqBot on slack. A simple setter function for assigning an emoji to TeqBot. Emojis are used in slack posts as TeqBot's user icon. | def DlxZ(YKHO, oANC):
YKHO.emoji = oANC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def set_emoji(YKHO, OaeV, mWFP: str, JUOb: Union[discord.Emoji, str]):\n lSCo = OaeV.guild\n try:\n hNYd = await YKHO.get_starboard_from_name(lSCo, mWFP)\n except KxVg:\n await OaeV.send(bGrB('There is no starboard named ') + mWFP)\n return\n if type(JUOb) == ZOrr.Emoji:\n ... | [
"0.7068237",
"0.6778605",
"0.6563133",
"0.65529937",
"0.6493493",
"0.64844334",
"0.64275837",
"0.61703485",
"0.61460364",
"0.61348164",
"0.61348164",
"0.6129488",
"0.6109339",
"0.6092944",
"0.6077047",
"0.59510845",
"0.5942921",
"0.5927975",
"0.59278864",
"0.59109867",
"0.585... | 0.77726316 | 0 |
Provide a valid SQLAlchemy Session for use in a context. | def KfiN(YKHO):
cuiw, jSYO = YKHO._build_session()
try:
yield cuiw
if jSYO:
cuiw.commit()
except Exception:
cuiw.rollback()
raise
finally:
UiLO.debug('Database with() context complete.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfiN() -> DMju:\n return NGRy()",
"def eo12(cuiw, **B2fa):\n if cuiw is None:\n cuiw = B0ll.Session(**B2fa)\n yield cuiw\n cuiw.close()\n else:\n yield cuiw",
"def ouvA():\n return cuiw",
"def cuiw(p9bx, *qIxc, **B2fa):\n return DMju(p9bx, *qIxc, **B2fa)",
"de... | [
"0.7378297",
"0.73758084",
"0.7212932",
"0.7188795",
"0.7184904",
"0.7135742",
"0.7098409",
"0.7094365",
"0.7065493",
"0.7056322",
"0.7022438",
"0.7006801",
"0.7006801",
"0.6989087",
"0.6986448",
"0.69610494",
"0.69610494",
"0.6956833",
"0.69516116",
"0.69484437",
"0.6914634"... | 0.0 | -1 |
Construct a SQLAlchemy Session() context object. To avoid having to pass session objects around between Barbados (backend) and Jamaica (frontend) this function will attempt to determine if we're running inside of a Flask context at the time of call (scoped session perrequest) and use that session. If we're not then gen... | def pO5H(YKHO):
jSYO = False
try:
from flask_sqlalchemy_session import current_session as cuiw
if not cuiw:
raise RuntimeError
UiLO.debug('Using Flask session')
except RuntimeError as e:
cuiw = YKHO.ScopedSession()
jSYO = True
UiLO.debug('Using thr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gte4():\n return NCls.session",
"def cuiw(NCls, QePW):\n cuiw = NCls.create_scoped_session()\n return cuiw",
"def KfiN() -> DMju:\n if FEJ9.in_flask_request():\n if 'session' not in Oa1e:\n FEJ9.new_session()\n return Oa1e.session\n else:\n if not cuiw.session... | [
"0.7407787",
"0.72914684",
"0.7246713",
"0.7122299",
"0.7112834",
"0.7077047",
"0.70466983",
"0.70466983",
"0.70466983",
"0.70466983",
"0.70466983",
"0.6979081",
"0.69566345",
"0.6934784",
"0.69325954",
"0.6908235",
"0.6822038",
"0.6817348",
"0.67857766",
"0.6781804",
"0.6764... | 0.76292133 | 0 |
Convert img from BGR to the target color space | def umiL(VXjJ, Wine):
assert Wine in ['RGB', 'HSV', 'LUV', 'HLS', 'YUV', 'YCrCb', 'GRAY'], 'Invalid target color space'
VXjJ = VXjJ.copy()
if Wine == 'BGR':
jIHT = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2RGB)
elif Wine == 'HSV':
jIHT = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HSV)
elif Wine == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKTg(VXjJ):\n Fg_i = Oa1e = Mkmy = VXjJ.copy()\n Fg_i[Fg_i[:, :, 0] < 255] = 0\n Oa1e[Oa1e[:, :, 1] < 255] = 0\n Mkmy[Mkmy[:, :, 2] < 255] = 0\n return Fg_i * Oa1e * Mkmy",
"def Qh7z(VXjJ):\n return XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2RGB)",
"def _BwQ(YKHO):\n if YKHO.channels() == 1:\n... | [
"0.750942",
"0.74704903",
"0.74319917",
"0.7331292",
"0.72239983",
"0.7210511",
"0.7209335",
"0.7156152",
"0.7121063",
"0.7114266",
"0.71078134",
"0.7091575",
"0.70599",
"0.7018467",
"0.6953118",
"0.68842196",
"0.68842196",
"0.68756175",
"0.6850677",
"0.68441415",
"0.68430656... | 0.69040304 | 15 |
Takes the mean and standard deviation of observed spike widths | def FIMM(YKHO, rNYq={'mean': None, 'std': None}, mWFP='Action potential width'):
STnF.__init__(YKHO, rNYq, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yP6U(YKHO, wPJM):\n return oyIN.std(wPJM)",
"def M1Jx(WUeM):\n return ee6l(WUeM)",
"def ee6l(BkYD):\n return qw7D.standardDeviation(BkYD)",
"def fA77(JBMS=17.5, ee6l=2):\n return JBMS + oyIN.random.normal() * ee6l",
"def ee6l(hkxX):\n return I8JS(hkxX) ** 0.5",
"def ee6l(YKHO):\n ra... | [
"0.689188",
"0.6690835",
"0.66711295",
"0.66689336",
"0.6648964",
"0.6637014",
"0.66315585",
"0.66005105",
"0.6574072",
"0.65670455",
"0.65634537",
"0.6554651",
"0.6513215",
"0.650868",
"0.645739",
"0.6444699",
"0.64420146",
"0.64417326",
"0.6437103",
"0.6426581",
"0.64251584... | 0.0 | -1 |
Takes the mean and standard deviation of reference membrane potentials. | def FIMM(YKHO, rNYq={'mean': None, 'std': None}, mWFP='Resting potential test'):
STnF.__init__(YKHO, rNYq, mWFP)
YKHO.required_capabilities += (OzFT, yhGL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N24f(Qirh):\n JBMS = 0.0\n MQ4f = 0.0\n ifkm = 0.0\n exwG = len(Qirh)\n if exwG > 1:\n for YRbF, WKvO in enumerate(Qirh):\n RA_F = WKvO - JBMS\n JBMS = JBMS + RA_F / (YRbF + 1)\n MQ4f = MQ4f + RA_F * (WKvO - JBMS)\n I8JS = MQ4f / (exwG - 1)\n ... | [
"0.64806795",
"0.6444101",
"0.6304199",
"0.62799066",
"0.6145309",
"0.6106121",
"0.6095178",
"0.6021238",
"0.60192776",
"0.60192776",
"0.6014794",
"0.6001631",
"0.5966773",
"0.59560055",
"0.5942071",
"0.59340805",
"0.59267884",
"0.5919678",
"0.59079",
"0.59074",
"0.59069276",... | 0.0 | -1 |
Amazon Resource Name (Arn) for the Resource Discovery. | def bAqQ(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'ipam_resource_discovery_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EszR(YKHO) -> str:\n raise NotImplementedError",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs... | [
"0.7771874",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.7480306",
"0.744527",
"0.7339977",
"0.7339977",
"0... | 0.7053711 | 74 |
The region the resource discovery is setup in. | def ZR8O(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'ipam_resource_discovery_region') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn0c(YKHO):\n return YKHO.get('region')",
"def zn0c(YKHO) -> h8nf[str]:\n return N4yN.get('region') or i5mz.get_env('ALICLOUD_REGION')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'region')",
"def zn0c(YKHO) -> str:\n retur... | [
"0.7969279",
"0.79481834",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",
"0.79475355",... | 0.76049554 | 33 |
The state of this Resource Discovery. | def QTBn(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QTBn(YKHO):\n return YKHO.status",
"def jGRS(YKHO):\n return YKHO.state",
"def jGRS(YKHO):\n return YKHO.state",
"def PKJf(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_state')",
"def QTBn(YKHO):\n return YKHO.api.describe.get().json()['state']",
"def QTBn(YKHO):\n return YKHO._ge... | [
"0.7710546",
"0.765803",
"0.765803",
"0.7651822",
"0.75697404",
"0.7546986",
"0.75303656",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"0.7521969",
"... | 0.0 | -1 |
An array of keyvalue pairs to apply to this resource. | def dJ1p(YKHO) -> h8nf[bdIy['outputs.IpamResourceDiscoveryTag']]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZBZ(YKHO):\n return Pbc4.keys(YKHO)",
"def azoT(YKHO):\n return {}",
"def o8Kj(YKHO):\n return dict(YKHO.__dict__)",
"def NURA(YKHO):\n return dict()",
"def hkxX(YKHO):\n return {d7pR.name: getattr(YKHO, d7pR.name) for d7pR in YKHO._args}",
"def A0zC(YKHO):\n return {'resource_buck... | [
"0.62136066",
"0.61935407",
"0.6150437",
"0.61122954",
"0.61113304",
"0.61103046",
"0.60933435",
"0.6088976",
"0.6046326",
"0.60413164",
"0.604069",
"0.6030783",
"0.6004779",
"0.59993136",
"0.59576553",
"0.5950659",
"0.5936195",
"0.5930758",
"0.5915258",
"0.5903809",
"0.59038... | 0.0 | -1 |
Get the school id from the url of a ncaa team. | def g41u(bD7m: str) -> str:
return bD7m.split('/')[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iYZB(dZPi):\n return ciuW[dZPi]",
"def R05z(bD7m: str) -> str:\n return bD7m.split('/')[2][:]",
"def Jhkn(bD7m: str) -> str:\n return bD7m.split('/')[2].split('?')[0]",
"def Opo8(YKHO, qsJ6, dZPi):\n bD7m = '%s/orgs/%s/teams' % (YKHO._api_url, qsJ6)\n geh0 = YKHO.get(bD7m)\n if not YKHO... | [
"0.6773441",
"0.6394421",
"0.6340688",
"0.62861586",
"0.6161227",
"0.59470695",
"0.59214616",
"0.58972585",
"0.5865432",
"0.5865432",
"0.58394355",
"0.58150953",
"0.5804427",
"0.5804427",
"0.5804427",
"0.58040595",
"0.57946324",
"0.5767797",
"0.57565516",
"0.575027",
"0.57430... | 0.7710599 | 0 |
Get the player's id from their url. | def xVL0(bD7m: str) -> str:
return bD7m[bD7m.rindex('=') + 1:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(bD7m):\n return bD7m.split('v=')[1]",
"def mLJR(bD7m):\n Nndq = KVWQ.urlparse(bD7m)\n return KVWQ.parse_qs(Nndq.query)['id'][0]",
"def HaA_(YKHO, bD7m: str) -> str:\n return bD7m.split('=')[1]",
"def unpH(bD7m):\n Y9yg = KVWQ(bD7m)\n hlBI = _Ibt(Y9yg.query).get('v')\n if hlBI:\n... | [
"0.740579",
"0.73289245",
"0.72306657",
"0.7199546",
"0.7126529",
"0.7124543",
"0.7085916",
"0.70742303",
"0.70708025",
"0.70648247",
"0.7038637",
"0.69665647",
"0.69410306",
"0.689051",
"0.6837271",
"0.6800543",
"0.67966145",
"0.6787198",
"0.676194",
"0.6759861",
"0.6755425"... | 0.82400894 | 0 |
Get the game's id from its url. | def R05z(bD7m: str) -> str:
return bD7m.split('/')[2][:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLJR(bD7m):\n Nndq = KVWQ.urlparse(bD7m)\n return KVWQ.parse_qs(Nndq.query)['id'][0]",
"def unpH(bD7m):\n return bD7m.split('v=')[1]",
"def unpH(bD7m):\n Y9yg = KVWQ(bD7m)\n hlBI = _Ibt(Y9yg.query).get('v')\n if hlBI:\n return hlBI[0]\n SXRB = Y9yg.path.split('/')\n if SXRB:\... | [
"0.76060206",
"0.7457614",
"0.74074435",
"0.740481",
"0.7330114",
"0.720412",
"0.70602477",
"0.7009122",
"0.6892675",
"0.6882827",
"0.6882322",
"0.6865361",
"0.6801324",
"0.6788877",
"0.67307615",
"0.66356903",
"0.6633486",
"0.6612713",
"0.66122466",
"0.65832114",
"0.65645176... | 0.73058736 | 5 |
1. removes currency symbol. 2. removes commas 3. fix the val which is represented as lakh | def E6ip(wEf2):
if not wEf2:
return ''
wEf2 = str(wEf2)
wEf2 = wEf2.replace(',', '')
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RnqS(wEf2):\n Z6gX = wEf2.replace(',', '').replace('$', '')\n return float(Z6gX)",
"def RnqS(wEf2):\n Z6gX = wEf2.replace(',', '').replace('$', '')\n return float(Z6gX)",
"def MKe7(BWXx: str) -> str:\n nPrm = wPHx(BWXx)\n nPrm = nPrm.replace(',', '.').replace(' ', '')\n return nPrm",
... | [
"0.6994752",
"0.69458324",
"0.6854334",
"0.6825261",
"0.6721871",
"0.6692661",
"0.66555053",
"0.6583106",
"0.65684414",
"0.6491423",
"0.6414956",
"0.63851285",
"0.6378427",
"0.63480836",
"0.63064796",
"0.6300334",
"0.6277549",
"0.62021005",
"0.6194375",
"0.6179429",
"0.615577... | 0.73942876 | 0 |
Returns a list of the changed parameters in the group. Returns a list of (parameter, value) pairs. Each parameter is an instance of the Parameter class, and thus the parameter value can be changed via its set method, or this object can be passed to the tuning functions. | def owZD(YKHO):
RI88 = []
for mS46 in YKHO.__dict__.values():
if isinstance(mS46, RDrV) and mS46 != YKHO._parent:
RI88.extend(mS46.get_changed())
if isinstance(mS46, XDS4):
if mS46.get() != mS46.default():
RI88.append((mS46, mS46.get()))
return RI88 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NArs(YKHO):\n hnFq = []\n for mWFP, Csk6, MKlR in evzO.default_group_parameters:\n H5ew = '%s,%d' % (mWFP, YKHO.groupnum)\n\n def gJdh(mWFP=mWFP, uOe2=YKHO):\n return getattr(uOe2, mWFP)\n\n def aWgE(BWXx, mWFP=mWFP, uOe2=YKHO):\n setattr(uOe2, mWFP, BWXx)\n ... | [
"0.6901241",
"0.67042977",
"0.66529554",
"0.643465",
"0.6361658",
"0.6306628",
"0.6301075",
"0.6295958",
"0.6291172",
"0.6287786",
"0.6270079",
"0.6268181",
"0.62281865",
"0.6212424",
"0.62107366",
"0.613361",
"0.6087499",
"0.60825884",
"0.60711384",
"0.60427785",
"0.60388553... | 0.75198823 | 0 |
Perform a linear regression on the given points. This function returns a pair of floats (a, b) such that the line y = a + bx is the approximation of this data. | def u5rr(LTIa: List[Tuple[float, float]]) -> AzJI[float, float]:
WKvO = S8vG([XP5J[0] for XP5J in LTIa])
LVAh = S8vG([XP5J[1] for XP5J in LTIa])
Fg_i = sum([(XP5J[0] - WKvO) * (XP5J[1] - LVAh) for XP5J in LTIa]) / sum([(XP5J[0] - WKvO) ** 2 for XP5J in LTIa])
jzdc = LVAh - Fg_i * WKvO
return (jzdc, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u5rr(WKvO, LVAh):\n H4fn = JBMS(WKvO)\n THQL = JBMS(LVAh)\n kiHT = [A3mO - H4fn for A3mO in WKvO]\n W8V8 = [ijL8 - THQL for ijL8 in LVAh]\n M_DK = QQQg(kiHT, W8V8)\n CAzz = QQQg(kiHT, kiHT)\n try:\n VMex = M_DK / CAzz\n except ZeroDivisionError:\n VMex = 0\n PtXs = THQL... | [
"0.76471925",
"0.76304644",
"0.76261944",
"0.7554079",
"0.7478885",
"0.74532926",
"0.74401367",
"0.74269074",
"0.73955",
"0.7323766",
"0.7241243",
"0.723383",
"0.7222923",
"0.711123",
"0.70792514",
"0.70677114",
"0.70490444",
"0.70295686",
"0.69841635",
"0.6977126",
"0.697595... | 0.8620456 | 0 |
Return the R squared value when the given points are modelled as the line y = a + bx. | def RfJF(LTIa: list, jzdc: float, Fg_i: float) -> float:
LVAh = S8vG([XP5J[1] for XP5J in LTIa])
i9Rn = sum([(XP5J[1] - LVAh) ** 2 for XP5J in LTIa])
Ylbp = sum([(XP5J[1] - (jzdc + Fg_i * XP5J[0])) ** 2 for XP5J in LTIa])
return 1 - Ylbp / i9Rn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BKL_(BWKJ, CbQz):\n return sum((CbQz - BWKJ) ** 2)",
"def whQk(XSm6, B3MX):\n LVAh, r8hN, WKvO, Z9rn = RSWl(XSm6, B3MX)\n h_rC = [(YRbF - LVAh) ** 2 for YRbF in B3MX]\n k9jB = float(sum(fO5J(x_arr=XSm6, y_arr=B3MX, m=r8hN, c=Z9rn))) / sum(h_rC)\n return 1 - k9jB",
"def Mkmy(WKvO, LVAh):\n ... | [
"0.6885119",
"0.6859257",
"0.6753448",
"0.67428404",
"0.6671386",
"0.6656627",
"0.65979683",
"0.65919256",
"0.6576009",
"0.6563301",
"0.65531653",
"0.6538138",
"0.6513972",
"0.64486253",
"0.64074504",
"0.6398083",
"0.63831043",
"0.6381874",
"0.6376187",
"0.6364159",
"0.632496... | 0.8042294 | 0 |
Gets the loss for the t+k step. | def ivls(YKHO, cb_Q, C3ST, Ep8u, _Rzm, Sjs1, fvMf=1):
fTff = oyIN.random.RandomState(1234)
nJ0e = [YKHO.get_batch_random(Ep8u, fTff) for P2GO in range(YKHO._lookahead_steps + fvMf)]
for P2GO in range(YKHO._lookahead_steps):
VIkw = YKHO.get_fdict(C3ST, nJ0e[P2GO])
cb_Q.run(_Rzm, feed_dict=VIk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L8kW(YKHO):\n raise NotImplementedError",
"def ZaX_(YKHO, a1PO):\n YKHO.o_.subtract(a1PO, target=YKHO.c_)\n return YKHO.c_.sum()",
"def N77f(YKHO):\n return YKHO.ml_loss",
"def L8kW(YKHO):\n return",
"def N77f(YKHO):\n return YKHO._loss",
"def N77f(YKHO):\n return YKHO._loss",
... | [
"0.70954436",
"0.70898366",
"0.6992631",
"0.69881463",
"0.69874334",
"0.69874334",
"0.69874334",
"0.69874334",
"0.6876834",
"0.684119",
"0.6840349",
"0.68110925",
"0.68102896",
"0.68101794",
"0.67481816",
"0.6682165",
"0.6668636",
"0.6664208",
"0.66622436",
"0.6579134",
"0.65... | 0.0 | -1 |
Create an Azure Devops merge request entity. | def bL9H(YKHO, FGW3: int):
return dict(key=str(FGW3), title=f'Pull request {FGW3}', target_branch='refs/heads/main', state='active', url=f'{YKHO.landing_url.rstrip('s')}/{FGW3}', created='2021-02-09T17:10:11.0326704Z', closed=None, upvotes='1', downvotes='0') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iB5j(YKHO, KeIw, orsX, leAC, **B2fa):\n nPrm = {'source_branch': KeIw, 'target_branch': orsX, 'title': leAC, **B2fa}\n geh0 = YKHO.__post(url='merge_requests', data=nPrm)\n GtGV = geh0.json()\n if geh0.ok:\n G9jH.info(f'Created merge request: {GtGV['iid']} - {GtGV['title']}')\n return... | [
"0.6446691",
"0.6248049",
"0.62148917",
"0.5934549",
"0.58813727",
"0.586225",
"0.5470997",
"0.5285279",
"0.52755576",
"0.5234093",
"0.5226232",
"0.5206312",
"0.5163227",
"0.5101837",
"0.5089743",
"0.50702226",
"0.50581664",
"0.50523484",
"0.5040689",
"0.50331175",
"0.5031825... | 0.0 | -1 |
Test that pagination works. | async def test_pagination(YKHO):
DA3Z.PAGE_SIZE = 1
S8T2 = [dict(value=[YKHO.create_merge_request(1)]), dict(value=[YKHO.create_merge_request(2)]), dict(value=[])]
geh0 = await YKHO.collect(get_request_json_side_effect=[YKHO.repositories] + 3 * S8T2)
YKHO.assert_measurement(geh0, value='2', total='2', e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VEV0(dixj, vgXP, qoqK, aEqx):\n assert nuiO(dixj, vgXP, qoqK) == aEqx",
"def JlEo(YKHO):\n for YSCM in YKHO.recipe_list({'metrics': ['pop2000'], 'dimensions': ['age'], 'pagination_page_size': 10}):\n YKHO.assertRecipeSQLContains(YSCM, 'LIMIT 10')\n YKHO.assertRecipeSQLContains(YSCM, 'OFFS... | [
"0.8407543",
"0.82386696",
"0.8111601",
"0.7955745",
"0.7948204",
"0.79429376",
"0.7935751",
"0.79295444",
"0.7909021",
"0.7813544",
"0.7773049",
"0.77632767",
"0.77451533",
"0.7670902",
"0.76592535",
"0.76302767",
"0.762931",
"0.7617734",
"0.76148206",
"0.7607812",
"0.760479... | 0.0 | -1 |
Checks if this user can be assigned to issues on login/repository. | def ubrD(YKHO, MC83, F3jJ):
bD7m = YKHO._build_url('repos', MC83, F3jJ, 'assignees', YKHO.login)
return YKHO._boolean(YKHO._get(bD7m), 204, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Desw(CBIr, YXSb):\n if CBIr.is_superuser or CBIr.groups.filter(name=ew5p).exists():\n return\n elif CBIr.groups.filter(name=ItER).exists() and YXSb.assignee == CBIr:\n return\n else:\n raise wPvU()",
"def bT1Y(CBIr, YXSb):\n if CBIr.is_superuser or CBIr.groups.filter(name=ew5... | [
"0.7179599",
"0.7089159",
"0.67564887",
"0.65594745",
"0.6514118",
"0.64753944",
"0.6407414",
"0.63864887",
"0.63233966",
"0.63105255",
"0.62693465",
"0.6265864",
"0.6262203",
"0.6227767",
"0.6213199",
"0.62038714",
"0.61650187",
"0.6146114",
"0.61367524",
"0.61124355",
"0.60... | 0.58504385 | 51 |
Number of private gists owned by this user | def PBGT(YKHO):
return YKHO._private_gists | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iknV(YKHO):\n return len(YKHO.users)",
"def szAg(YKHO):\n return YKHO.num_users",
"def hdsS():\n return len(HN7T())",
"def CyiD(YKHO) -> int:\n raise NotImplementedError",
"def DpyK(YKHO):\n return len(YKHO.user_data)",
"def UHFx(YKHO):\n return len(YKHO._users)",
"def pmSu(YKHO):... | [
"0.6775939",
"0.67478853",
"0.6711806",
"0.66670364",
"0.66017365",
"0.65774804",
"0.6575949",
"0.6547103",
"0.64285827",
"0.6425185",
"0.62884825",
"0.62884384",
"0.62793547",
"0.6243874",
"0.62344396",
"0.6231778",
"0.6219065",
"0.6190842",
"0.6169453",
"0.616805",
"0.61657... | 0.677284 | 1 |
Render the homepage template on the / route Guest are allowed to view the homepage BUT NOT submit reviews and rate books | def C_QL():
return TvZl('home/index.html', title='Welcome') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IC8O():\n if cuiw.get('user'):\n return TvZl('homepage.html')\n else:\n return TvZl('login_create.html')",
"def C_QL():\n if c5ow.is_authenticated:\n TTUj = c5ow.discs\n vXOI = c5ow.wish_discs\n e6YJ = DlQp(TTUj)\n TFcC = c5ow.broken_in_discs\n return... | [
"0.76787335",
"0.76491076",
"0.7485778",
"0.7360381",
"0.725547",
"0.7210293",
"0.7165392",
"0.7058967",
"0.70563036",
"0.7042331",
"0.7033639",
"0.702044",
"0.70150816",
"0.7013493",
"0.7013493",
"0.7006931",
"0.69950676",
"0.6977576",
"0.6977576",
"0.6968866",
"0.6967863",
... | 0.6783693 | 44 |
Render the profile template on the /profile route Users must be logged in to view profile | def z39Z(N5Pj):
kSgn = E1cg.query.filter_by(reader_id=c5ow.id).all()
Dz5C = c5ow.books_reviewed
L03z = NRxX()
if L03z.validate_on_submit():
dvjT = L03z.select.data
ZkGz = L03z.search.data
return vKnz(nKyW('home.results', searchBy=dvjT, searchTerm=ZkGz))
return TvZl('home/prof... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGll():\n if c5ow.is_authenticated:\n return TvZl('user_profile.html')\n else:\n Dwep('Please login to view this page')\n return TvZl('index.html')",
"def SGll():\n return TvZl('user_profile_page.html')",
"def z39Z():\n return TvZl('profile.html', name=c5ow.name)",
"def z... | [
"0.86799395",
"0.84568954",
"0.8432103",
"0.84154123",
"0.8377118",
"0.8350508",
"0.833938",
"0.8293306",
"0.8260114",
"0.82336295",
"0.8230885",
"0.818546",
"0.81396794",
"0.8128201",
"0.8119018",
"0.80498743",
"0.80269337",
"0.80110496",
"0.8004736",
"0.79607856",
"0.789019... | 0.0 | -1 |
Render the profile template on the /profile route Users must be logged in to view profile | def dixj(dvjT, ZkGz):
if dvjT == 'isbn':
dixj = dl5x.query.filter(dl5x.isbn.ilike(f'%{ZkGz}%'))
elif dvjT == 'author':
dixj = dl5x.query.filter(dl5x.author.ilike(f'%{ZkGz}%'))
else:
dixj = dl5x.query.filter(dl5x.title.ilike(f'%{ZkGz}%'))
return TvZl('home/results.html', title='My... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGll():\n if c5ow.is_authenticated:\n return TvZl('user_profile.html')\n else:\n Dwep('Please login to view this page')\n return TvZl('index.html')",
"def SGll():\n return TvZl('user_profile_page.html')",
"def z39Z():\n return TvZl('profile.html', name=c5ow.name)",
"def z... | [
"0.8679066",
"0.84561443",
"0.84308475",
"0.84146935",
"0.8376516",
"0.8349459",
"0.8338373",
"0.8292734",
"0.82596785",
"0.82327515",
"0.82301015",
"0.818469",
"0.8138685",
"0.8127215",
"0.8118494",
"0.8049505",
"0.80260664",
"0.8010965",
"0.8003792",
"0.7960367",
"0.7889574... | 0.0 | -1 |
Render the book template on the /book/isbn route | def jI4j(Z5r0):
PODh = 'JzDtAyR5qcTeAuhFKOHSw'
Ylbp = G4JS.get('https://www.goodreads.com/book/review_counts.json', params={'key': PODh, 'isbns': Z5r0})
if Ylbp.status_code != 200:
raise Exception('ERROR: API request unsuccessful.')
nPrm = Ylbp.json()
mwlV = nPrm['books'][0]['reviews_count']... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jI4j(HcYB):\n jI4j = dl5x.query.get(HcYB)\n if jI4j is None:\n return TvZl('error.html', message='No such book.')\n kSgn = jI4j.reviews\n return TvZl('book.html', book=jI4j, reviews=kSgn)",
"def jI4j(HcYB):\n jI4j = NCls.execute('SELECT * FROM books WHERE isbn = :isbn', {'isbn': HcYB}).... | [
"0.7957374",
"0.7922106",
"0.7682793",
"0.75976217",
"0.74136436",
"0.73572904",
"0.7279551",
"0.7277684",
"0.71823466",
"0.7160337",
"0.70692486",
"0.6966311",
"0.6924658",
"0.6905943",
"0.68907845",
"0.6836693",
"0.68075854",
"0.67543334",
"0.6723483",
"0.6696646",
"0.66875... | 0.69883406 | 11 |
r"""The number of outputs of the model. Equal to the sum of the number of outputs of the individual models in the ModelList. | def I07O(YKHO) -> int:
return sum((C3ST.num_outputs for C3ST in YKHO.models)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYgB(YKHO) -> int:\n YKHO._valid()\n YRbF = J7AE()\n GfdN(_e0h.tract_inference_model_output_count(YKHO.ptr, dWW6(YRbF)))\n return YRbF.value",
"def VYgB(YKHO) -> int:\n YKHO._valid()\n YRbF = J7AE()\n GfdN(_e0h.tract_model_output_count(YKHO.ptr, dWW6(YRbF)))\n return YRbF.value",
"d... | [
"0.82735974",
"0.81743956",
"0.79249156",
"0.7838674",
"0.7796024",
"0.77611506",
"0.7556391",
"0.7497473",
"0.7410187",
"0.73884237",
"0.7364746",
"0.72350043",
"0.71868795",
"0.7103336",
"0.70896184",
"0.707845",
"0.6976444",
"0.69368535",
"0.6921167",
"0.6888008",
"0.68585... | 0.89439744 | 0 |
Check if the specified tables can be found and compiled. This can be used to check if a list of tables contains errors before sending it to other liblouis functions that accept a list of tables. | def wthm(B5O0):
JaXR = jKUo(B5O0)
if not v5pz.lou_checkTable(JaXR):
raise RuntimeError("Can't compile: tables %s" % B5O0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wthm(B5O0):\n JaXR = jKUo(B5O0)\n if not v5pz.lou_getTable(JaXR):\n raise RuntimeError(\"Can't compile: tables %s\" % B5O0)",
"def OcI9(NCls, B5O0):\n for mWFP in B5O0:\n if not LsUg(NCls, mWFP):\n raise Exception('Table ' + mWFP + ' in ' + NCls + ' does not exist')",
"def... | [
"0.81645447",
"0.73014486",
"0.70623326",
"0.6921356",
"0.6889653",
"0.6835046",
"0.6826264",
"0.6806233",
"0.6776666",
"0.6707065",
"0.66728455",
"0.66566634",
"0.6547735",
"0.654172",
"0.64795625",
"0.6378653",
"0.63784134",
"0.62984526",
"0.6252707",
"0.61738896",
"0.61436... | 0.8185292 | 0 |
Takes a 2d array of absolute value distances to a Solved Puzzle state and returns a sum Manhattan distance | def Liv7(Qimd):
for YRbF, qw7D in enumerate(Qimd):
for r845, U6D_ in enumerate(qw7D):
if U6D_ < 3:
continue
elif U6D_ == 3:
Qimd[YRbF, r845] = 1
else:
Qimd[YRbF, r845] = U6D_ // 3 + U6D_ % 3
MGqZ = oyIN.sum(Qimd)
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZUi(YKHO, uros):\n yaaC = 0\n YRbF = 0\n for C6id in uros:\n if not C6id == '0':\n ZcHf, tjdY = YKHO.get_mat_position(int(C6id) - 1)\n rn_i, i34e = YKHO.get_mat_position(YRbF)\n yaaC += abs(ZcHf - rn_i) + abs(tjdY - i34e)\n YRbF += 1\n return yaaC",
... | [
"0.7787873",
"0.77632034",
"0.7610153",
"0.7329783",
"0.7245248",
"0.7216718",
"0.7214421",
"0.70375884",
"0.7019367",
"0.69228625",
"0.6848207",
"0.68059564",
"0.67907554",
"0.6697788",
"0.6648629",
"0.66408473",
"0.6635218",
"0.6629182",
"0.6621279",
"0.6570753",
"0.6561832... | 0.764724 | 2 |
Returns the sum Manhattan distance for all tiles to reach a Solved Puzzle state | def DCMt(YKHO):
if YKHO.is_goal():
return 0
else:
SVyB = oyIN.abs(oyIN.subtract(sqYZ.SOLVED_PUZZLE, YKHO.puzzle))
SVyB[YKHO.zeroloc[0]] = 0
MGqZ = Liv7(SVyB)
return MGqZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EP01(YKHO):\n Ayfi = 0\n rdlD = 0\n fvDH = 0\n for eL5z, YRbF in zip(YKHO.state, range(R_iB + 1)):\n if YRbF % YAeK == 0:\n rdlD += 1\n fvDH = 1\n if YRbF in (1, 2, 4, 5, 7, 8):\n fvDH += 1\n Ayfi += Hp7Q(eL5z, rdlD, fvDH)\n return Ayfi",
"... | [
"0.79518855",
"0.780052",
"0.7780559",
"0.7555901",
"0.7517751",
"0.74034137",
"0.72941726",
"0.71897167",
"0.71807295",
"0.7078426",
"0.7064325",
"0.7036717",
"0.7033366",
"0.7009387",
"0.6930508",
"0.6913494",
"0.6903053",
"0.686726",
"0.6862335",
"0.6840475",
"0.6807814",
... | 0.7337588 | 6 |
Creates and saves a User with the given email and password. | def xWi2(YKHO, D3lj, jTXt, WJxI, qMrd, **wdCM):
vHj7 = rIAI.now()
if not D3lj:
raise ValueError('The given email must be set')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, is_staff=WJxI, is_active=True, is_superuser=qMrd, last_login=vHj7, **wdCM)
CBIr.set_password(jTXt)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ... | [
"0.87203795",
"0.8471124",
"0.8462932",
"0.84520763",
"0.84274495",
"0.84224284",
"0.84208685",
"0.84165066",
"0.8410754",
"0.8409538",
"0.8409538",
"0.8401648",
"0.84014827",
"0.8391565",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.... | 0.0 | -1 |
Updates a shopping list | def wGmK(YKHO, mWFP, QoB4):
if mWFP and QoB4:
if mWFP not in YKHO.shoppinglist.keys():
return {'type': 'error', 'msg': 'List does not exist'}
YKHO.shoppinglist[mWFP] = {'name': mWFP, 'desc': QoB4}
print(YKHO.shoppinglist)
return {'type': 'success', 'data': YKHO.shoppingli... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(Emd4, QePW, _8aQ):\n nPrm = VlsX.query.get(_8aQ)\n for YRbF in QePW:\n exec(\"data.{}='{}'\".format(YRbF, QePW[YRbF]))\n NCls.session.commit()\n return pz3A(VlsX.set_json_shopping_list(nPrm))",
"def g7fa(oBeo):\n L03z = Y1kY(QePW.form)\n if QePW.method == 'POST' and L03z.validat... | [
"0.77431524",
"0.73085684",
"0.71326303",
"0.6959181",
"0.6861218",
"0.68467665",
"0.66961837",
"0.6583371",
"0.65417004",
"0.6508896",
"0.6486218",
"0.647717",
"0.63741904",
"0.6333959",
"0.63129795",
"0.6277377",
"0.6269778",
"0.61821115",
"0.61740416",
"0.6157802",
"0.6133... | 0.6978526 | 3 |
Given two container items, assert that they contain an equal number of items and are non empty | def riMo(YKHO, CZxs, AhJh):
assert len(CZxs) == len(AhJh), 'Unequal language sizes'
assert len(CZxs) and len(AhJh), 'Got language of size 0' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wnQM(DumB):\n fUYa, bEXe = DumB\n assert len(fUYa) == len(bEXe)",
"def FtAQ(cntZ: Iterable, CsFy: Iterable, Ol8d: str=None) -> None:\n return _znt().assertCountEqual(cntZ, CsFy, msg=Ol8d)",
"def _S4A(YKHO, jzdc, Fg_i, tO9_=None):\n pEuX, Ae2G = (list(jzdc), list(Fg_i))\n YKHO.assertEqual(len... | [
"0.74719465",
"0.7125381",
"0.7081462",
"0.69050145",
"0.68806934",
"0.6759069",
"0.6699393",
"0.66834235",
"0.6681828",
"0.6667597",
"0.66406906",
"0.66351384",
"0.6626131",
"0.66158277",
"0.65950817",
"0.64922196",
"0.64424926",
"0.63873124",
"0.6352748",
"0.634144",
"0.633... | 0.6300311 | 23 |
Removes all html tags from the given string | def JZhs(gmUX):
OuqX = ''
if gmUX:
KCHu = o205()
KCHu.feed(gmUX.decode('latin-1').encode('ascii', 'ignore'))
OuqX = KCHu.get_data()
return OuqX.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)",
"def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)",
"def JZhs(l5Ny):\n import re\n x0SS = re.compile('<.*?>')\n return re.sub(x0SS, '', l5Ny)",
"def JZhs(l5Ny):\n import re\n x0SS = re... | [
"0.87319565",
"0.86484337",
"0.85861045",
"0.85861045",
"0.85401183",
"0.85344887",
"0.8531302",
"0.8531302",
"0.8531302",
"0.8531302",
"0.8531302",
"0.8531302",
"0.8513901",
"0.8499948",
"0.84993553",
"0.84993553",
"0.84993553",
"0.8497661",
"0.8466088",
"0.8388919",
"0.8372... | 0.80332005 | 30 |
Test creating a new user with an email is successfull | def uPc_(YKHO):
D3lj = 'test@londonappdev.com'
jTXt = 'Testpass123'
CBIr = egNl().objects.create_user(email=D3lj, password=jTXt)
YKHO.assertEqual(CBIr.email, D3lj)
YKHO.assertTrue(CBIr.check_password(jTXt)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jH7C(YKHO):\n syqx = {'email': 'test@ezmeetup.ca', 'password': 'testpass123', 'first_name': 'Firstname', 'last_name': 'Lastname', 'phone_number': '123-456-7890'}\n CBIr = egNl().objects.create_user(**syqx)\n YKHO.assertEqual(CBIr.email, syqx['email'])\n YKHO.assertEqual(CBIr.first_name, syqx['first... | [
"0.86533535",
"0.85612935",
"0.8537123",
"0.8517793",
"0.84833294",
"0.8443384",
"0.84060764",
"0.83707905",
"0.83700925",
"0.834194",
"0.83371437",
"0.8333068",
"0.83268607",
"0.83239615",
"0.83206403",
"0.8318714",
"0.8293486",
"0.82842",
"0.8281204",
"0.82793534",
"0.82790... | 0.799503 | 100 |
Test the email for new user is normalized | def dda2(YKHO):
D3lj = 'test@LONDONAPPDEV.com'
CBIr = egNl().objects.create_user(email=D3lj, password='Test123!')
YKHO.assertEqual(CBIr.email, D3lj.lower()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U4Gr(YKHO):\n D3lj = 'test@EMRE.COM'\n CBIr = egNl().objects.create_user(D3lj, 'test123')\n YKHO.assertEqual(CBIr.email, D3lj.lower())",
"def ho5W(YKHO):\n D3lj = 'test@TEST.FR'\n CBIr = egNl().objects.create_user(D3lj, 'testtest')\n YKHO.assertEqual(CBIr.email, D3lj.lower())",
"def saHt(... | [
"0.79820114",
"0.79674053",
"0.79634285",
"0.7962129",
"0.7926402",
"0.79004353",
"0.78938407",
"0.7884183",
"0.7839598",
"0.783828",
"0.7828452",
"0.7824794",
"0.78071654",
"0.77992016",
"0.77672124",
"0.7748668",
"0.7745283",
"0.7737268",
"0.7730278",
"0.77212465",
"0.77206... | 0.7526934 | 33 |
Test creating new user with no error rising error | def nCzI(YKHO):
with YKHO.assertRaises(ValueError):
egNl().objects.create_user(email=None, password='Test123') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qtiS(YKHO):\n YKHO._test_create_new_user()",
"def F3wO(YKHO):\n pass",
"def cDXr(YKHO):\n pass",
"def YcIQ(YKHO):\n D3lj = 'abc@gmail.com'\n jTXt = 'defghi'\n jeLr = 'ABCD'\n YKHO.assertFalse(YKHO.user.create_new_user(D3lj, jTXt, jeLr))",
"def J0v1(YKHO):\n YKHO._test_existing_u... | [
"0.853227",
"0.8492089",
"0.8482626",
"0.8199721",
"0.81824154",
"0.81530225",
"0.8035525",
"0.80207723",
"0.80044353",
"0.8000797",
"0.7998959",
"0.79810643",
"0.79810643",
"0.79765373",
"0.7975081",
"0.7975081",
"0.7968162",
"0.7967016",
"0.79609793",
"0.7960178",
"0.796017... | 0.7847377 | 46 |
Test creating a new superuser | def B84k(YKHO):
CBIr = egNl().objects.create_superuser(email='test@londondev.com', password='Test123!')
YKHO.assertTrue(CBIr.is_superuser)
YKHO.assertTrue(CBIr.is_stuff) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LqR1(YKHO):\n CBIr = egNl().objects.create_superuser('test@undeinveti.ro', 'test123')\n YKHO.assertTrue(CBIr.is_superuser)\n YKHO.assertTrue(CBIr.is_staff)",
"def LqR1(YKHO):\n CBIr = egNl().objects.create_superuser('testsuper@gmail.com', 'test@123')\n YKHO.assertTrue(CBIr.is_superuser)\n Y... | [
"0.87034905",
"0.86985886",
"0.86361283",
"0.86126035",
"0.8606349",
"0.8591782",
"0.857967",
"0.85259736",
"0.85191494",
"0.848048",
"0.84751505",
"0.8472082",
"0.84552705",
"0.8452226",
"0.83610165",
"0.8334969",
"0.83212703",
"0.8318251",
"0.8295097",
"0.8293466",
"0.82778... | 0.83251256 | 16 |
Get a boolean argument from the query string, and decide if it's true or false | def hDhI(KCHu):
if KCHu is None:
return False
if type(KCHu) is bool:
return KCHu
if KCHu.isdigit():
return int(KCHu)
if KCHu.lower() in ('', 'off', 'f', 'false', 'no', 'none', 'undefined'):
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FLBk(d7pR):\n if isinstance(d7pR, bool):\n return d7pR\n elif isinstance(d7pR, str):\n if d7pR.lower() in ['true', '1']:\n return True\n elif d7pR.lower() in ['false', '0']:\n return False",
"def Kvw3(L03z: cgi.FieldStorage, H5ew: str) -> bool:\n return s3M... | [
"0.74020773",
"0.710794",
"0.71028954",
"0.7085147",
"0.69828814",
"0.69828814",
"0.6921248",
"0.6921248",
"0.68405074",
"0.6676331",
"0.66500384",
"0.65636694",
"0.6525888",
"0.65258366",
"0.6504238",
"0.6491869",
"0.64586633",
"0.64572066",
"0.6452395",
"0.6424161",
"0.6406... | 0.6307649 | 30 |
Connect to a PostgreSQL server using the module wide connection and set the isolation level. | def FIMM(YKHO, j8eK=OYNT, Lgwu=qVE2.RealDictCursor, y_SV=True):
YKHO._uri = j8eK
YKHO._use_pool = y_SV
YKHO._conn = YKHO._connect()
YKHO._cursor = YKHO._get_cursor(Lgwu)
YKHO._autocommit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def euQP(GPtr):\n G9jH.debug('Connecting to the PostgreSQL server.')\n try:\n w2B8 = ehoX.connect(host=GPtr['postgres']['host'], port=GPtr['postgres']['port'], database=GPtr['postgres']['database'], user=GPtr['postgres']['username'], password=GPtr['postgres']['password'])\n w2B8.set_isolation_l... | [
"0.7081652",
"0.6819524",
"0.6648627",
"0.6626505",
"0.6617969",
"0.6546209",
"0.65071356",
"0.6489443",
"0.6460675",
"0.64512205",
"0.64476645",
"0.6421639",
"0.64184535",
"0.64168894",
"0.64069444",
"0.64059335",
"0.6398492",
"0.6398492",
"0.6354268",
"0.63497025",
"0.63494... | 0.0 | -1 |
Return the transaction status for the current connection. | def bRxN(YKHO):
return YKHO._conn.get_transaction_status() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO, **B2fa):\n return YKHO.get_transaction(**B2fa)",
"def VLTN(YKHO) -> IDdx:\n return YKHO.status",
"def tKSE(YKHO, Kh6j):\n return True",
"def uRKJ(YKHO) -> VaR6:\n return YKHO._connection_status",
"def YxSs(YKHO, QePW):\n return YKHO._gateway_request(method='POST', path='/api/t... | [
"0.756607",
"0.7471189",
"0.7320954",
"0.7185262",
"0.7176635",
"0.6937392",
"0.6829159",
"0.6775696",
"0.6762648",
"0.67519414",
"0.67519414",
"0.67519414",
"0.6739929",
"0.6714363",
"0.66729736",
"0.66323113",
"0.66241133",
"0.6613485",
"0.6574552",
"0.65687215",
"0.6557708... | 0.89768386 | 0 |
Gets the stripped_cell_line_name of this CellLine. | def g19S(YKHO) -> str:
return YKHO._stripped_cell_line_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g19S(YKHO, g19S: str):\n YKHO._stripped_cell_line_name = g19S",
"def ltrT(mWFP):\n return mWFP.split('_')[0]",
"def U5qm(YKHO):\n return YKHO._orig_cell_name",
"def zSOA(zFiD):\n return zFiD.rstrip().lstrip()",
"def sxpv(YKHO, zFiD):\n return zFiD[zFiD.find('>') + 2:zFiD.find('<', 2) - 1... | [
"0.75222415",
"0.67425954",
"0.6483084",
"0.6129742",
"0.6079721",
"0.60370165",
"0.5941107",
"0.589393",
"0.5830092",
"0.5804071",
"0.57890135",
"0.57233775",
"0.56520617",
"0.5629021",
"0.56085974",
"0.5603657",
"0.55932915",
"0.5590501",
"0.5536064",
"0.542625",
"0.5409499... | 0.8984606 | 0 |
Gets the sanger_id of this CellLine. | def OK4e(YKHO) -> str:
return YKHO._sanger_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zdbk(YKHO):\n return YKHO.shelfID",
"def bflT(YKHO):\n return YKHO._seat_id",
"def OK4e(YKHO, OK4e: str):\n YKHO._sanger_id = OK4e",
"def fOFt(YKHO) -> str:\n return YKHO._ledger_id",
"def z888(YKHO):\n return YKHO.cell_id_manager.next()",
"def zFiD(YKHO):\n return YKHO._relationshi... | [
"0.62927693",
"0.60750073",
"0.5954063",
"0.5949041",
"0.58791775",
"0.58372444",
"0.5815732",
"0.5803055",
"0.5778964",
"0.5727433",
"0.5727433",
"0.5727433",
"0.5727433",
"0.5727433",
"0.5727433",
"0.5693811",
"0.566673",
"0.566673",
"0.5642118",
"0.5615993",
"0.56120074",
... | 0.7490203 | 0 |
Gets the disease_subtype of this CellLine. | def alqV(YKHO) -> str:
return YKHO._disease_subtype | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p6y2(YKHO) -> str:\n return YKHO._disease_sub_subtype",
"def alqV(YKHO, alqV: str):\n YKHO._disease_subtype = alqV",
"def BG33(YKHO):\n YKHO.logger.debug('In subtype getter.')\n return YKHO._subtype",
"def pZsg(YKHO):\n return YKHO._maintenance_subtype",
"def p6y2(YKHO, p6y2: str):\n ... | [
"0.7789969",
"0.6755665",
"0.65896606",
"0.6113372",
"0.5967281",
"0.57612157",
"0.5675302",
"0.55051345",
"0.5431519",
"0.5377362",
"0.5288618",
"0.5265729",
"0.5264835",
"0.52340597",
"0.52303827",
"0.5228231",
"0.52270204",
"0.52196544",
"0.5213879",
"0.51884335",
"0.51749... | 0.8256597 | 0 |
Gets the gender of this CellLine. | def EE3v(YKHO) -> str:
return YKHO._gender | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xVNR(YKHO):\n return YKHO.__gender",
"def EE3v(YKHO):\n return YKHO._gender",
"def EE3v(YKHO):\n return YKHO._gender",
"def xVNR(YKHO):\n return YKHO.gender",
"def xVNR(YKHO):\n return YKHO.gender",
"def EE3v(YKHO):\n return lhy8.object.gender[YKHO.id]",
"def EE3v(YKHO):\n retu... | [
"0.79789275",
"0.79590756",
"0.79590756",
"0.7936507",
"0.78552765",
"0.784325",
"0.78157556",
"0.75862014",
"0.75279987",
"0.7449975",
"0.7280247",
"0.7197926",
"0.7190781",
"0.6732019",
"0.6550337",
"0.65467155",
"0.65304476",
"0.63607824",
"0.63317853",
"0.6327656",
"0.625... | 0.77255964 | 7 |
Creates and saves a User with the given email and password. | def lYUQ(YKHO, D3lj, jTXt=None):
if not D3lj:
raise ValueError('Users must have an email address')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj))
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ... | [
"0.87203795",
"0.8471124",
"0.8462932",
"0.84520763",
"0.84274495",
"0.84224284",
"0.84208685",
"0.84165066",
"0.8410754",
"0.8409538",
"0.8409538",
"0.8401648",
"0.84014827",
"0.8391565",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.83900344",
"0.... | 0.0 | -1 |
Creates and saves a staff user with the given email and password. | def CECe(YKHO, D3lj, jTXt):
CBIr = YKHO.create_user(D3lj, password=jTXt)
CBIr.staff = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CECe(YKHO, NtEF='test_staffuser', D3lj='admin@example.com'):\n NNCJ = mv1M.objects.create_user(username=NtEF)\n NNCJ.is_staff = True\n NNCJ.set_password = 'pass'\n NNCJ.email = D3lj\n NNCJ.save()\n return NNCJ",
"def CECe(YKHO, D3lj, c9ua, zp3f, jTXt):\n CBIr = YKHO.create_user(D3lj, c9u... | [
"0.8490624",
"0.8467911",
"0.8414016",
"0.84046584",
"0.83996266",
"0.83691",
"0.8351542",
"0.8318316",
"0.8309993",
"0.8273697",
"0.82046163",
"0.8115335",
"0.8115335",
"0.8107958",
"0.8023492",
"0.79991686",
"0.7964073",
"0.783607",
"0.78292745",
"0.78292745",
"0.7809392",
... | 0.83522683 | 7 |
Creates and saves a superuser with the given email and password. | def Zp54(YKHO, D3lj, jTXt):
CBIr = YKHO.create_user(D3lj, password=jTXt)
CBIr.staff = True
CBIr.admin = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)",
"def Zp54(YKHO, D3lj, jTXt, **wdCM):\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(D3lj, password=jTXt, **wdCM)\n CBIr.is_superuser = True\n CBIr.is_... | [
"0.85563576",
"0.83591324",
"0.8352117",
"0.8302056",
"0.82927024",
"0.8274004",
"0.8273861",
"0.82523894",
"0.82496953",
"0.82387406",
"0.8226232",
"0.82236284",
"0.82235533",
"0.82158184",
"0.8211599",
"0.8203947",
"0.81932044",
"0.81884634",
"0.81816155",
"0.817944",
"0.81... | 0.81334835 | 46 |
Put ground truth boxes on images. | def iuga(yLaY, Yw_3, J594, tGDF=['person']):
with ZylS.variable_scope('build_image_scope'):
TTVR = ZylS.shape(Yw_3)[1] / 32
yLaY = ZylS.reshape(yLaY, [-1, J594 * TTVR ** 2, 5])
Emd4 = yLaY[..., 0:1]
WKvO = yLaY[..., 1:2]
LVAh = yLaY[..., 2:3]
yzQ0 = yLaY[..., 3:4]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VD89(LNo8, v7iA):\n MKlR, yzQ0 = (LNo8.shape[0], LNo8.shape[1])\n jlxe = (0, 255, 0)\n for r845 in range(v7iA.shape[0]):\n FlUN = v7iA[r845, :]\n X3qZ = (int(yzQ0 * FlUN[1]), int(MKlR * FlUN[0]))\n ZYCo = (int(yzQ0 * FlUN[3]), int(MKlR * FlUN[2]))\n XC5k.rectangle(LNo8, X3q... | [
"0.6717979",
"0.66154057",
"0.6504134",
"0.64414775",
"0.63174367",
"0.62548816",
"0.62298083",
"0.62201273",
"0.6205314",
"0.6191313",
"0.6156276",
"0.613098",
"0.61064726",
"0.6097681",
"0.607622",
"0.60726386",
"0.6067119",
"0.59992665",
"0.5974143",
"0.59705853",
"0.59562... | 0.6290207 | 5 |
Get an existing Organization resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, f7R8: Optional[pulumi.Input[int]]=None, ejLf: Optional[pulumi.Input[str]]=None, A8By: Optional[pulumi.Input[str]]=None, JZXy: Optional[pulumi.Input[str]]=None) -> 'Organization':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.Reso... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, cMrz: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, pwxl: Optional[pulumi.Input[str]]=None, Rci7: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, wbiw: Optional[pulumi.Input... | [
"0.56057584",
"0.55725455",
"0.55447507",
"0.5395884",
"0.53413665",
"0.53297955",
"0.5325853",
"0.53104794",
"0.5301005",
"0.5272337",
"0.52707374",
"0.5254093",
"0.5226372",
"0.5208036",
"0.5197198",
"0.5192907",
"0.5192603",
"0.5189931",
"0.51782715",
"0.51333773",
"0.5115... | 0.6796074 | 0 |
Tests if x is an iterable and is not a string. | def kWhm(WKvO):
return isinstance(WKvO, g760.Iterable) and (not isinstance(WKvO, (str, bytes))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XNOR(WKvO):\n return isinstance(WKvO, iu5r) and (not isinstance(WKvO, str))",
"def ztQD(YEnM):\n return isinstance(YEnM, iu5r) and (not isinstance(YEnM, str))",
"def XNOR(ZfUD):\n GfZ5 = isinstance(ZfUD, iu5r)\n TcK7 = isinstance(ZfUD, (str, QMSQ, bytes, bytearray))\n return GfZ5 and (not Tc... | [
"0.9046814",
"0.83769304",
"0.8189027",
"0.8027803",
"0.80260134",
"0.7928586",
"0.7859458",
"0.78388876",
"0.7721205",
"0.7721205",
"0.7671438",
"0.7659122",
"0.7585353",
"0.75654566",
"0.7510941",
"0.74818486",
"0.7431543",
"0.73742896",
"0.73734784",
"0.7373317",
"0.734939... | 0.82498777 | 2 |
Returns True if G is a complete graph. | def CSuK(yvY1):
if jHsn.number_of_selfloops(yvY1) > 0:
raise jHsn.NetworkXError('Self loop found in _is_complete_graph()')
exwG = yvY1.number_of_nodes()
if exwG < 2:
return True
tTpl = yvY1.number_of_edges()
LXZG = exwG * (exwG - 1) / 2
return tTpl == LXZG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZQq(pNZh: Graph) -> bool:\n cAlv = len(pNZh.vertices())\n LXZG = cAlv ** 2 - cAlv\n if not pNZh.is_directed():\n LXZG //= 2\n ut5U = len(pNZh.edges())\n if ut5U != LXZG:\n return False\n for SLBp in pNZh:\n if len(pNZh[SLBp]) != cAlv - 1:\n return False\n r... | [
"0.8204374",
"0.7239187",
"0.7198086",
"0.70670784",
"0.69569063",
"0.69207853",
"0.68589586",
"0.6830823",
"0.6813229",
"0.6685366",
"0.66820824",
"0.6675284",
"0.6532223",
"0.65232366",
"0.65224636",
"0.65173316",
"0.65038776",
"0.65038776",
"0.6502132",
"0.64876944",
"0.64... | 0.8407422 | 0 |