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 |
|---|---|---|---|---|---|---|
Get all leaf nodes from the tree of which this is the head. This returns a generator of all leaf nodes belonging to this tree. A leaf node is a node that has no ancestors. | def lju5(YKHO, PKko=None):
if PKko is None:
if YKHO.is_root:
PKko = 'forest'
else:
PKko = 'tree'
QH8x = YKHO[PKko, 'uid']
BfNl = YKHO[PKko, 'desc_uid']
fXP7 = oyIN.where(~oyIN.in1d(QH8x, BfNl))[0]
for Ulor in fXP7:
yield YKHO.get_node(PKko, Ulor) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKa2(YKHO):\n aeQa = set([ZfUD for XuXy in YKHO.edges.values() for ZfUD in XuXy])\n return (WKvO for WKvO in YKHO.nodes if WKvO not in aeQa)",
"def S6TB(YKHO):\n return (Ty9i for Ty9i in YKHO.node_gen if Ty9i.is_leaf)",
"def v0Kv(YKHO):\n for LihS in YKHO[1:]:\n if isinstance(LihS, UD_O)... | [
"0.7606356",
"0.7265476",
"0.7202606",
"0.71604365",
"0.71463764",
"0.71184134",
"0.7054126",
"0.7034083",
"0.69661665",
"0.6925725",
"0.685431",
"0.6741353",
"0.6739723",
"0.67098",
"0.67022145",
"0.668154",
"0.66534376",
"0.66515875",
"0.66343683",
"0.6592297",
"0.6588354",... | 0.7058569 | 6 |
Get all root nodes from the forest to which this node belongs. This returns a generator of all root nodes in the forest. A root node is a node that has no descendents. Returns | def WlWW(YKHO):
PKko = 'forest'
BfNl = YKHO[PKko, 'desc_uid']
nUvg = oyIN.where(BfNl == -1)[0]
for ZTUg in nUvg:
yield YKHO.get_node(PKko, ZTUg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPJ1(YKHO):\n for Q6kx in YKHO:\n if not Q6kx.incoming:\n yield Q6kx",
"def AyQV(YKHO):\n JqV7 = []\n if not YKHO._root is None:\n JqV7.append(YKHO._root)\n YRbF = 0\n while YRbF < len(JqV7):\n for Q6kx in JqV7[YRbF]._children:\n JqV7.... | [
"0.7504852",
"0.6858595",
"0.68569803",
"0.68552417",
"0.6780215",
"0.67416185",
"0.6731141",
"0.67081296",
"0.668952",
"0.65601224",
"0.65464175",
"0.65101284",
"0.64965814",
"0.64653754",
"0.6418019",
"0.6351439",
"0.63415235",
"0.63213944",
"0.63096553",
"0.6249233",
"0.62... | 0.7747892 | 0 |
Return the field array indices for all TreeNodes in the tree beneath, starting with this TreeNode. | def kFO5(YKHO):
if YKHO._tfi is not None:
return YKHO._tfi
YKHO.arbor._grow_tree(YKHO)
YKHO._tfi = oyIN.array([Q6kx.tree_id for Q6kx in YKHO._tree_nodes])
return YKHO._tfi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5lM(YKHO):\n return YKHO._ffi",
"def CgWU(YKHO):\n if YKHO._pfi is not None:\n return YKHO._pfi\n YKHO.arbor._grow_tree(YKHO)\n YKHO._pfi = oyIN.array([Q6kx.tree_id for Q6kx in YKHO._prog_nodes])\n return YKHO._pfi",
"def N9Rz(YKHO):\n\n def iFPA(J_Es, wjRY):\n wjRY[0] += 1... | [
"0.68725413",
"0.684114",
"0.62957066",
"0.61334234",
"0.610952",
"0.6079161",
"0.6061128",
"0.59328806",
"0.5931311",
"0.5866322",
"0.58386046",
"0.58168143",
"0.58105195",
"0.58016896",
"0.57985693",
"0.57763493",
"0.575891",
"0.5744971",
"0.5728258",
"0.5713622",
"0.571149... | 0.8350539 | 0 |
Return the field array indices for all TreeNodes in the progenitor list, starting with this TreeNode. | def CgWU(YKHO):
if YKHO._pfi is not None:
return YKHO._pfi
YKHO.arbor._grow_tree(YKHO)
YKHO._pfi = oyIN.array([Q6kx.tree_id for Q6kx in YKHO._prog_nodes])
return YKHO._pfi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kFO5(YKHO):\n if YKHO._tfi is not None:\n return YKHO._tfi\n YKHO.arbor._grow_tree(YKHO)\n YKHO._tfi = oyIN.array([Q6kx.tree_id for Q6kx in YKHO._tree_nodes])\n return YKHO._tfi",
"def q5lM(YKHO):\n return YKHO._ffi",
"def ofQq(YKHO):\n return oyIN.array([WhQ6.atom_idxs for WhQ6 in... | [
"0.80564946",
"0.6520078",
"0.61335653",
"0.60979617",
"0.5926736",
"0.5916426",
"0.5908792",
"0.59066695",
"0.58951336",
"0.587203",
"0.584773",
"0.5845271",
"0.5817503",
"0.58022374",
"0.58008176",
"0.5798868",
"0.5784032",
"0.57836574",
"0.57620966",
"0.57543164",
"0.57272... | 0.75537264 | 1 |
Displays the GUI frame. | def yKcO(YKHO):
if YKHO._system.get_settings().show_gui and (not YKHO.is_running()):
YKHO.frame = True
P4t4 = x5x0.QApplication(HwRy.argv)
YKHO.gui = lYML(YKHO._system)
if YKHO.is_speech_enabled:
YKHO.gui.enable_speech(True)
HwRy.exit(P4t4.exec_()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kORW():\n pass",
"def nUHY(YKHO):\n YKHO.frame.Show(True)",
"def nUHY(YKHO):\n YKHO.frame.grid()\n YKHO.visible = True",
"def W8mS(YKHO) -> None:\n YKHO.root.display()",
"def _Qq2(YKHO):\n YKHO.setGeometry(100, 100, 300, 200)\n YKHO.setWindowTitle('Formulario')\n YKHO.displayWid... | [
"0.79651785",
"0.7507943",
"0.7257487",
"0.72238183",
"0.71769357",
"0.7044597",
"0.7023292",
"0.69915986",
"0.6982538",
"0.6949862",
"0.6939466",
"0.69197243",
"0.689979",
"0.68448013",
"0.6805102",
"0.68050927",
"0.6786359",
"0.67839664",
"0.67568046",
"0.67529875",
"0.6707... | 0.63411075 | 67 |
Create a schedule with a learning rate that decreases following the values of the cosine function between 0 and `pi cycles` after a warmup period during which it increases linearly between 0 and 1. | def MIxn(K0do, USzt, aNjR, rabA=0.5, IKjI=-1):
def EAQd(cVyJ):
if cVyJ < USzt:
return float(cVyJ) / float(max(1, USzt))
Eb4t = float(cVyJ - USzt) / float(max(1, aNjR - USzt))
return max(0.0, 0.5 * (1.0 + epAf.cos(epAf.pi * float(rabA) * 2.0 * Eb4t)))
return y31S(K0do, EAQd, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FvGu(uH9w):\n b0Ix = Seb7.cosine_decay_with_warmup(global_step=ZylS.train.get_or_create_global_step(), learning_rate_base=0.04, total_steps=uH9w, warmup_learning_rate=0.0133, warmup_steps=100)\n return b0Ix",
"def ZT_s(Zbwy):\n return lambda qtWj: 1.0",
"def FIMM(YKHO, Gysa, uH9w, hZF9=0, hzUc=0.0... | [
"0.71117914",
"0.69005686",
"0.6646178",
"0.6642547",
"0.66401637",
"0.6588159",
"0.6563767",
"0.6551723",
"0.65377104",
"0.65334845",
"0.6471999",
"0.6443835",
"0.6401223",
"0.6353843",
"0.633249",
"0.633249",
"0.6309466",
"0.6226509",
"0.6216965",
"0.6216965",
"0.6216965",
... | 0.6750027 | 2 |
decaying the learning rate | def wxAT(K0do, mVUw):
tspZ = NkTt(K0do) * mVUw
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qh2O(YPaw):\n return Cwt5 / (1 + f9Ey * YPaw)",
"def biVQ(qtWj):\n tspZ = b0Ix\n if qtWj >= 60:\n tspZ *= 0.1\n print('Learning rate: ', tspZ)\n return tspZ",
"def biVQ(qtWj):\n oLNr = 0.1\n ReNU = 0.5\n Gn2V = 10.0\n fqnS = oLNr * epAf.pow(ReNU, epAf.floor((1 + qtWj) / Gn... | [
"0.8667119",
"0.8320443",
"0.82278764",
"0.8163907",
"0.807087",
"0.8066573",
"0.80086863",
"0.7910637",
"0.78965694",
"0.7796221",
"0.77716106",
"0.77685934",
"0.7720703",
"0.7712578",
"0.76935744",
"0.7663555",
"0.7641688",
"0.7590731",
"0.7559678",
"0.73559076",
"0.7338",
... | 0.75940657 | 17 |
find the index of a given value in a given list | def CvRu(oEeO=None, BWXx=None):
if not isinstance(oEeO, list):
raise TypeError('Input list must be a list object.')
return [YRbF for YRbF, WKvO in enumerate(oEeO) if WKvO == BWXx] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(Uj1v, BWXx):\n for P2GO in range(len(Uj1v)):\n if Uj1v[P2GO] == BWXx:\n return P2GO\n return None",
"def neBz(YKHO, list, H5ew, BWXx):\n for YRbF, Op6c in enumerate(list):\n if Op6c[H5ew] == BWXx:\n return YRbF\n return -1",
"def d6pt(YKHO, BWXx):\n Y... | [
"0.8687077",
"0.810302",
"0.79014814",
"0.7769255",
"0.77509016",
"0.7699577",
"0.76754856",
"0.76398146",
"0.7632851",
"0.7620169",
"0.7612017",
"0.7606102",
"0.7561632",
"0.7558114",
"0.75460845",
"0.7532872",
"0.74935573",
"0.74557704",
"0.7413306",
"0.7389148",
"0.7354836... | 0.68561393 | 43 |
Performs a Lorentz transform on the vector. | def leTk(YKHO, cFTJ):
a1PO = super(M3uk, YKHO).lorentz_transform(cFTJ)
return M3uk(a1PO.tensor(), syms=YKHO.syms, config=YKHO.config, parent_metric=None, name=IC5r(YKHO.name, context='__lt')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FkdK(YKHO):\n iB6t = YnkN.TLorentzVector()\n iB6t.SetPtEtaPhiM(YKHO.pt, YKHO.eta, YKHO.phi, YKHO.mass)\n return iB6t",
"def vFUu(WKvO):\n return oLG2.roll(WKvO, -1)",
"def QbAs(WKvO, nJ9F, k0lF, tjUW, Csk6):\n return tjUW + k0lF / (((WKvO - nJ9F) / Csk6) ** 2 + 1)",
"def qhxF(WKvO, exwG):\... | [
"0.6331831",
"0.6181236",
"0.6142289",
"0.59298164",
"0.5923603",
"0.5902213",
"0.5847495",
"0.56440014",
"0.56340456",
"0.56318974",
"0.5612878",
"0.55883527",
"0.55797714",
"0.55745167",
"0.5567964",
"0.5529249",
"0.5522221",
"0.55176085",
"0.5491763",
"0.5486713",
"0.54774... | 0.60128504 | 3 |
Render the homepage template on the / route | def C_QL():
return TvZl('home/index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('home/index.html', title='Welcome')",
"def bVaH():\n return TvZl('index.html')",
"def vja_():\n return TvZl('index.html')",
"def C_QL():\n return TvZl('home/index.html',... | [
"0.8568932",
"0.8526821",
"0.8473926",
"0.8473321",
"0.84519774",
"0.84239286",
"0.84239286",
"0.8420498",
"0.8387553",
"0.8311804",
"0.82661605",
"0.82661605",
"0.82661605",
"0.82661605",
"0.82661605",
"0.82661605",
"0.8263859",
"0.8259376",
"0.82504493",
"0.82504493",
"0.82... | 0.8596693 | 0 |
Render the about_us template on the /aboutus route | def AGH9():
return TvZl('home/about-us.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AGH9():\n return TvZl('about_us.html')",
"def AGH9():\n return TvZl('about_us.html')",
"def PzLT():\n return TvZl('aboutUs.html')",
"def AGH9(QePW):\n return _1tc(QePW, 'about_us.html')",
"def vsuQ():\n return TvZl('about.html', title='About')",
"def PzLT(QePW):\n return _1tc(QePW, ... | [
"0.8903028",
"0.8835818",
"0.8761167",
"0.8633831",
"0.8625896",
"0.86161256",
"0.856144",
"0.84916216",
"0.8441198",
"0.8436129",
"0.8402152",
"0.84006095",
"0.83976036",
"0.8381833",
"0.8356158",
"0.8356158",
"0.8356158",
"0.8356158",
"0.8356158",
"0.8356158",
"0.8356158",
... | 0.89343494 | 0 |
Render the contact_us template on the /contactus route | def RyYT():
return TvZl('home/contact-us.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mxk0():\n return TvZl('contact.html')",
"def RyYT(PNq_):\n return TvZl(template_name='contact.html', context={'path': PNq_.get('PATH_INFO')})",
"def Mxk0():\n return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='My contact page.')",
"def Mxk0():\n return TvZl('contact.h... | [
"0.8353081",
"0.82002187",
"0.80727744",
"0.805473",
"0.80517304",
"0.8047666",
"0.8047666",
"0.8031661",
"0.8029988",
"0.8029988",
"0.8029988",
"0.8029988",
"0.8029988",
"0.8029988",
"0.8029988",
"0.8029988",
"0.79944587",
"0.79249156",
"0.79147327",
"0.7856688",
"0.78550154... | 0.88874876 | 0 |
Get distance from start and destination coordinates. | def zG70(_UuI, fopC, FcqO, di7h):
BHsk = (_UuI, fopC)
y3gM = (FcqO, di7h)
return Ayfi.geodesic(BHsk, y3gM).km | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zG70(yKcO, Os4s):\n qNod, DR0o, DHMH = oOJP(yKcO, Os4s)\n Ayfi = ccKF.getAttr('%s.distance' % DHMH)\n ccKF.delete([qNod, DR0o, DHMH])\n return Ayfi",
"def yrGf(YKHO, JZXy, e1vZ):\n igSk = JZXy[0]\n TGuP = e1vZ[0]\n GgQG = JZXy[1]\n tk0B = e1vZ[1]\n A3Vt = 6370000\n upem = epAf.r... | [
"0.8166633",
"0.79528666",
"0.7804172",
"0.7737754",
"0.7346324",
"0.732576",
"0.7267776",
"0.7264587",
"0.72487295",
"0.7244245",
"0.7168621",
"0.71665347",
"0.71612674",
"0.71542186",
"0.7149351",
"0.71472156",
"0.7099931",
"0.7070449",
"0.7069942",
"0.70689565",
"0.705163"... | 0.0 | -1 |
Get distance from two coordinates. | def sC_M(igSk, GgQG, TGuP, tk0B):
NbhI = 6371.393
igSk, GgQG, TGuP, tk0B = map(oyIN.deg2rad, [igSk, GgQG, TGuP, tk0B])
n_9K = TGuP - igSk
H91H = tk0B - GgQG
jzdc = oyIN.sin(n_9K / 2) ** 2 + oyIN.cos(igSk) * oyIN.cos(TGuP) * oyIN.sin(H91H / 2) ** 2
Z9rn = 2 * oyIN.arcsin(oyIN.sqrt(jzdc))
Ayfi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LhCJ(YKHO, a0GJ, TLv5):\n Jw7X = a0GJ.x - TLv5.x\n eUWA = a0GJ.y - TLv5.y\n return epAf.sqrt(Jw7X * Jw7X + eUWA * eUWA)",
"def Ayfi(UdKV, P38E):\n Jw7X = UdKV.x - P38E.x\n eUWA = UdKV.y - P38E.y\n return epAf.sqrt(Jw7X * Jw7X + eUWA * eUWA)",
"def zG70(o4D3, si3g, ajwV, skBL):\n return... | [
"0.8170887",
"0.8095228",
"0.809197",
"0.80104154",
"0.8001834",
"0.7926047",
"0.7912562",
"0.7904516",
"0.789397",
"0.7885519",
"0.7874656",
"0.78444225",
"0.7842947",
"0.7834536",
"0.7818351",
"0.78146046",
"0.78054804",
"0.7803747",
"0.7760409",
"0.77574486",
"0.77199554",... | 0.0 | -1 |
Shift time by timezone to all cities | def U41u(jQ3Z):
jQ3Z = fHBr(jQ3Z, 1078, 3)
jQ3Z = fHBr(jQ3Z, 22390, 4)
jQ3Z = fHBr(jQ3Z, 22430, 4)
jQ3Z = fHBr(jQ3Z, 22438, 5)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fHBr(jQ3Z, accd, gjX5):\n jQ3Z[jQ3Z.main_id_locality == accd][['OrderedDate']].apply(lambda WKvO: WKvO - fCoM(hours=gjX5))\n return jQ3Z",
"def rIAI():\n pass",
"def YLZk(jQ3Z, qpDA):\n if qpDA == 'berk':\n _hcX = jQ3Z.index.name[-5:]\n if _hcX[0] == '-':\n yl4j = '+'\n... | [
"0.6614628",
"0.64892036",
"0.58666486",
"0.58491415",
"0.5836806",
"0.57713103",
"0.57510126",
"0.5715088",
"0.568087",
"0.5669149",
"0.56524056",
"0.56185365",
"0.56127524",
"0.55835557",
"0.55559874",
"0.5555039",
"0.55279166",
"0.5504311",
"0.5499577",
"0.54788864",
"0.54... | 0.7495316 | 0 |
Construct a new Section instance, located using the specified attribute and attributevalue OR a supplied xpath. | def FIMM(YKHO, Ilxn=None, xC3W=None, laNn=None):
super().__init__(element_type='section', identifier=Ilxn, attribute=xC3W, xpath=laNn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, pmON, aUGN=False, xC3W=False):\n pjeI = pmON.split('/')\n WFse = YKHO.doc\n for qt2O in pjeI:\n U6D_ = YKHO.doc.getElementsByTagName(qt2O)\n if U6D_:\n U6D_ = U6D_[0]\n if not U6D_ or qt2O == pjeI[-1:][0]:\n U6D_ = YKHO.doc.createElement(qt2O)\n ... | [
"0.55087703",
"0.48760945",
"0.4855316",
"0.48539492",
"0.48430482",
"0.4826501",
"0.480831",
"0.47075155",
"0.45331714",
"0.4529393",
"0.45273814",
"0.45112675",
"0.44956315",
"0.44864228",
"0.4480916",
"0.447953",
"0.4436473",
"0.4433798",
"0.4395288",
"0.43912488",
"0.4367... | 0.697304 | 0 |
Update position of bullets to get rid of bullets that have exited screen | def FRcs(YKHO):
YKHO.bullets.update()
for YBnT in YKHO.bullets.copy():
if YBnT.rect.bottom <= 0:
YKHO.bullets.remove(YBnT)
YKHO._check_bullet_alien_collisions() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRcs(YKHO):\n for YBnT in YKHO.bullets.copy():\n if YBnT.rect.bottom <= 0:\n YKHO.bullets.remove(YBnT)",
"def hZuk(YKHO):\n YKHO.bullets.update()\n for YBnT in YKHO.bullets.copy():\n if YBnT.rect.left >= YKHO.screen_width:\n YKHO.bullets.remove(YBnT)\n YKHO._ch... | [
"0.8220918",
"0.8209496",
"0.80927676",
"0.7921505",
"0.7895895",
"0.7889641",
"0.76503944",
"0.7634875",
"0.7633335",
"0.7574489",
"0.74772364",
"0.74678594",
"0.73834866",
"0.73242325",
"0.7258007",
"0.7257042",
"0.72246635",
"0.71733856",
"0.6927442",
"0.69240916",
"0.6899... | 0.8126849 | 2 |
Verify if aliends reach bottom od screen | def wMxK(YKHO):
VXOZ = YKHO.screen.get_rect()
for oeTy in YKHO.aliens.sprites():
if oeTy.rect.bottom >= VXOZ.bottom:
YKHO._ship_hit()
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >= VXOZ.bottom:\n YKHO._ship_hit()\n break",
"def T2b6(YKHO):\n if YKHO.y >= YKHO.scene.screen.get_height() - YKHO.image.get_height() or YKHO.y <= 0:\n return Tr... | [
"0.7724187",
"0.7674752",
"0.7479625",
"0.73927456",
"0.72978747",
"0.7296279",
"0.72872806",
"0.72289807",
"0.7205694",
"0.7181904",
"0.700385",
"0.6819365",
"0.6752128",
"0.66071683",
"0.65507865",
"0.6502241",
"0.64941067",
"0.640842",
"0.6407622",
"0.62794805",
"0.6277700... | 0.7673087 | 3 |
Return the current location This is the fastest way to receive the current location. The current location is set by init() and stored in a global variable. This function provides access to this global variable. | def Y45c():
global current_location
return ekLW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y45c(YKHO):\n return YKHO._current_loc",
"def Y45c(YKHO):\n return YKHO.enu_2_local()",
"def hbd3(YKHO):\n return YKHO.location",
"def hbd3(YKHO):\n YKHO.location = YKHO.func(0)",
"def hbd3(YKHO):\n return YKHO.__location",
"def QXqx(YKHO):\n return YKHO._Location",
"def G3_s(YKHO... | [
"0.8349494",
"0.81059754",
"0.75150764",
"0.7470198",
"0.74093384",
"0.72308797",
"0.7229095",
"0.72238237",
"0.7163456",
"0.7026359",
"0.70226884",
"0.70051014",
"0.7003448",
"0.6947182",
"0.6839595",
"0.6810496",
"0.67843527",
"0.6762033",
"0.6746848",
"0.6724896",
"0.67248... | 0.8971525 | 0 |
Return the current gis database (gisdbase) This is the fastest way to receive the current gisdbase. The current gisdbase is set by init() and stored in a global variable. This function provides access to this global variable. | def pH79():
global current_gisdbase
return SOmV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xI5g():\n global tgis_database\n return tpFp",
"def GGod():\n if not hasattr(Oa1e, 'sql_db'):\n Oa1e.sql_db = _uJw()\n return Oa1e.sql_db",
"def GGod():\n if Oa1e.get('db') is None:\n Oa1e.db = _uJw()\n return Oa1e.db.connect()",
"def GGod():\n if not hasattr(Oa1e, 'db_... | [
"0.7361921",
"0.721205",
"0.7100395",
"0.7065702",
"0.7052889",
"0.70309776",
"0.70309776",
"0.70215815",
"0.7017342",
"0.7017283",
"0.7001556",
"0.69798386",
"0.6971853",
"0.6960738",
"0.6960738",
"0.6960738",
"0.6960738",
"0.6960738",
"0.6960738",
"0.6960738",
"0.6960738",
... | 0.8945491 | 0 |
Close the DBMI connection There may be several temporal databases in a location, hence close all temporal databases that have been opened. | def DDI8(YKHO):
for H5ew in YKHO.unique_connections.keys():
YKHO.unique_connections[H5ew].close()
YKHO.connected = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n if YKHO._dbopen:\n YKHO._dbcon.close()",
"def ssTe(YKHO):\n with FMyx():\n V2zj.file._open_files.close_all()",
"def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None",
"def rDE9(YKHO):\n assert YKHO._conn is not None\n ... | [
"0.7387683",
"0.73765916",
"0.7347628",
"0.726698",
"0.7245583",
"0.7219529",
"0.7213888",
"0.7198183",
"0.71847427",
"0.71828026",
"0.71057165",
"0.70927864",
"0.7089359",
"0.7072032",
"0.7061039",
"0.7053634",
"0.70442593",
"0.70442593",
"0.70442593",
"0.70140606",
"0.70058... | 0.0 | -1 |
Creates all unique combinations of a list a that is passed in. | def Etel(jzdc):
jzdc.sort()
yield list(jzdc)
YRbF = 0
cntZ = 0
o82Q = len(jzdc)
while True:
YRbF = o82Q - 1
while True:
YRbF -= 1
if jzdc[YRbF] < jzdc[YRbF + 1]:
r845 = o82Q - 1
while not jzdc[YRbF] < jzdc[r845]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E6VQ(*qIxc: List[Any]) -> x1iM[x1iM]:\n return list([list(geyT) for geyT in list(Lx3t(*qIxc))])",
"def B7x7(DumB):\n return set(p2Oz(DumB))",
"def rspw(aPd6):\n import itertools\n Aofo = []\n for YRbF in range(len(aPd6) + 1):\n Aofo += list(itertools.combinations(aPd6, YRbF))\n ret... | [
"0.66352284",
"0.6468013",
"0.6387283",
"0.6282946",
"0.6236239",
"0.6219714",
"0.6143335",
"0.61014414",
"0.6070962",
"0.6062573",
"0.6048774",
"0.6014745",
"0.5958898",
"0.5946201",
"0.5919083",
"0.5903067",
"0.5886177",
"0.5845741",
"0.5800105",
"0.5798076",
"0.57739854",
... | 0.0 | -1 |
Builds months. It's extreamly slow since it's fetching all posts. | def oy2m(YKHO):
X_bn = AlUc.get_months()
if X_bn is not None:
return X_bn
FvVY = YKHO.base_query().fetch()
ZWCE = []
for m8z6 in FvVY:
ZWCE.append('%d/%02d' % (m8z6.date_published.year, m8z6.date_published.month))
ZWCE.sort()
jvSB = ZWCE[0]
X_bn = {}
X_bn[jvSB] = 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SviJ(YKHO, KBgZ, PObu, QpfX):\n X_bn = [(str(exwG), str(exwG)) for exwG in range(1, 13)]\n return X_bn",
"def Rt7z(YKHO):\n r8hN = {}\n for m8z6 in YKHO:\n Csk6 = '-'.join(m8z6.Date.split('-')[:2])\n if Csk6 not in r8hN:\n r8hN[Csk6] = []\n r8hN[Csk6].append(m8z6)\... | [
"0.6594332",
"0.6573108",
"0.65620947",
"0.6464085",
"0.6354909",
"0.6310111",
"0.63038605",
"0.59203243",
"0.5852066",
"0.5843194",
"0.5827282",
"0.5811662",
"0.5798935",
"0.5758575",
"0.57321835",
"0.57141775",
"0.56937027",
"0.5691933",
"0.56731457",
"0.5627034",
"0.562507... | 0.69626737 | 0 |
note that the order of value in input_batch tuple matters Args input_batch, tuple (encoder_input, decoder_input, decoder_label) encoder_len, a length list shape of (batch_size) decoder_len, a length list shape of (batch_size+1) with one more word or Returns | def Ozfc(YKHO, j9VG, Snhg, cCe7, VUPy=None, J5AU=None, Tuqy='train'):
if Tuqy == 'train':
NYDs = (YKHO.ph_encoder_input, YKHO.ph_input_encoder_sentence_len, YKHO.ph_decoder_label, YKHO.ph_input_encoder_len, YKHO.ph_input_decoder_len, YKHO.ph_dropout)
ITjR = (j9VG, Snhg, VUPy, cCe7, J5AU, YKHO.config... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IYbP(YKHO, Wc9F):\n KvRS = Wc9F\n xZIv = YKHO.make_src_mask(Wc9F)\n Xfip = YKHO.encoder(KvRS, xZIv)\n QZ_H = [[YKHO.trg_lang.SOS_idx] for bGrB in range(len(Wc9F))]\n D3dJ = ht2j.LongTensor(QZ_H).to(YKHO.device)\n for bGrB in range(YKHO.hparams.max_len):\n pU63 = YKHO.make_trg_mask(D3dJ... | [
"0.66344386",
"0.65888876",
"0.64937705",
"0.64207864",
"0.6388816",
"0.63103473",
"0.6309044",
"0.6307817",
"0.6304426",
"0.6299908",
"0.62840825",
"0.62738085",
"0.6260539",
"0.6242666",
"0.6239428",
"0.62268186",
"0.6218688",
"0.6183289",
"0.61484134",
"0.6148167",
"0.6142... | 0.0 | -1 |
Context vector calculation function. Here the encoder's contribution to attention remains the same and can be computed earlier. We perform currying to return a function that takes as input just the decoder state. | def kWiO(YKHO, GrLT):
NArs = YKHO.dec_params
if len(GrLT.shape) == 3:
GrLT = oyIN.squeeze(GrLT, axis=0)
LK7X = oyIN.matmul(GrLT, NArs.attn_enc_w)
def v2uf(LJan):
ifhs = oyIN.matmul(LJan, NArs.attn_dec_w) + NArs.attn_dec_b
FFGE = oyIN.tanh(LK7X + ifhs)
glmp = oyIN.squeeze... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, g4y1, QTBn, QpfX=None):\n if not YKHO._wt_attention:\n Mkmy, epBp = ZylS.split(1, 2, ZylS.matmul(ZylS.concat(1, [g4y1, QTBn]), ZylS.concat(0, [YKHO._W_z_r, YKHO._U_z_r])) + YKHO._B_z_r)\n else:\n if QpfX is None:\n raise ValueError('Attention mechanism used, while cont... | [
"0.63690066",
"0.6275593",
"0.6264098",
"0.6199529",
"0.59737337",
"0.5918458",
"0.58860505",
"0.58325225",
"0.5768694",
"0.5685881",
"0.5639822",
"0.55264103",
"0.5508727",
"0.5404031",
"0.53728426",
"0.5359123",
"0.53201216",
"0.53117514",
"0.53001666",
"0.5289079",
"0.5286... | 0.56646925 | 10 |
A generator, which gets a frame generator as an input. | def QP9o(VIPT):
mIJV = IDYM('recognition')['face alignment']
kT1P = mIJV['provider']
bo34 = G9jH.getLogger('alignment')
bo34.setLevel(G9jH.INFO)
bo34.info('alignment provider: ' + kT1P)
if kT1P == 'opencv':
from faceR.alignment import opencv as PTdT
elif kT1P == 'dlib':
impor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZEBb(YKHO):\n f4IJ = 0\n while not YKHO.process.termination:\n yield f4IJ\n f4IJ += 1",
"def ZEBb(YKHO, brh6, c_UV):\n c1sR = brh6\n while YKHO.ya:\n vjJT = YKHO.ya[:c1sR]\n del YKHO.ya[:c_UV]\n yqRF = YKHO.yv[:c1sR]\n del YKHO.yv[:c_UV]\n Xugt = Y... | [
"0.7335359",
"0.71742725",
"0.7088323",
"0.70659345",
"0.6973411",
"0.69498765",
"0.69046044",
"0.68536127",
"0.6816608",
"0.6806921",
"0.6806921",
"0.6806921",
"0.6806921",
"0.6806921",
"0.6806921",
"0.6806921",
"0.6806921",
"0.6806081",
"0.6786263",
"0.6715308",
"0.66840833... | 0.0 | -1 |
Gets the name of this Company. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u8qZ(YKHO):\n if 'companyName' in YKHO._prop_dict:\n return YKHO._prop_dict['companyName']\n else:\n return None",
"def u8qZ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'company_name')",
"def W0tD(YKHO) -> str:\n return YKHO.name_",
"def Hy08(YKHO):\n return gTEQ('PrlLic_GetC... | [
"0.7926703",
"0.7775462",
"0.7774501",
"0.7692799",
"0.7619582",
"0.7619582",
"0.75912875",
"0.7579159",
"0.7579159",
"0.7568535",
"0.7568535",
"0.7568535",
"0.7517485",
"0.7517485",
"0.7517485",
"0.7517485",
"0.7517485",
"0.7517485",
"0.7517485",
"0.7517485",
"0.7517485",
... | 0.0 | -1 |
Sets the name of this Company. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u8qZ(YKHO, u8qZ):\n YKHO._company_name = u8qZ",
"def zPdd(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YK... | [
"0.7888336",
"0.7711231",
"0.7685548",
"0.7661592",
"0.7661592",
"0.7661592",
"0.7661592",
"0.7661592",
"0.7647515",
"0.75937706",
"0.7523401",
"0.7523401",
"0.75214493",
"0.7444677",
"0.7439563",
"0.74340993",
"0.74340993",
"0.73960227",
"0.7386336",
"0.7386336",
"0.73589766... | 0.0 | -1 |
Gets the description of this Company. | def JBZA(YKHO):
return YKHO._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t5do(YKHO):\n return YKHO._description",
"def t5do(YKHO):\n return YKHO.description",
"def t5do(YKHO):\n return YKHO.description",
"def t5do(YKHO):\n return YKHO.description",
"def t5do(YKHO):\n return YKHO.description",
"def t5do(YKHO):\n return YKHO._description",
"def KUG7(YKHO... | [
"0.80592185",
"0.80585045",
"0.80585045",
"0.80585045",
"0.80585045",
"0.8009937",
"0.79839545",
"0.797689",
"0.7951439",
"0.79141355",
"0.79141355",
"0.79141355",
"0.79141355",
"0.79141355",
"0.79141355",
"0.79141355",
"0.79141355",
"0.79141355",
"0.79141355",
"0.79141355",
... | 0.77512527 | 70 |
Sets the description of this Company. | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO._description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def prlj(YKHO, JBZA):\n YKHO.description = str(JBZA)",
"def JBZA(YKHO, JBZA):\n ... | [
"0.8320545",
"0.82596636",
"0.8246851",
"0.82402205",
"0.81133765",
"0.7964233",
"0.7964233",
"0.7964233",
"0.7964233",
"0.79296684",
"0.7899737",
"0.7899737",
"0.7899737",
"0.7899737",
"0.7861616",
"0.77460575",
"0.7637197",
"0.76277846",
"0.75996643",
"0.7534183",
"0.745419... | 0.7965466 | 31 |
Gets the address_1 of this Company. | def Tu7p(YKHO):
return YKHO._address_1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fy4A(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'address1')",
"def fy4A(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'address1')",
"def fy4A(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'address1')",
"def UdcS(YKHO) -> str:\n return qe4Y.get(YKHO, 'street_a... | [
"0.779159",
"0.7574656",
"0.7574656",
"0.7460589",
"0.7195744",
"0.71361697",
"0.7024129",
"0.6889645",
"0.6849692",
"0.6801628",
"0.6735676",
"0.6718778",
"0.6708028",
"0.6685305",
"0.66586125",
"0.6644929",
"0.6634718",
"0.66256124",
"0.66256124",
"0.65462595",
"0.64831024"... | 0.8136192 | 0 |
Sets the address_1 of this Company. | def Tu7p(YKHO, Tu7p):
YKHO._address_1 = Tu7p | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fy4A(YKHO, fy4A):\n YKHO._address1 = fy4A",
"def FGUY(YKHO, FGUY):\n YKHO._address_line1 = FGUY",
"def FGUY(YKHO, FGUY):\n YKHO._address_line1 = FGUY",
"def FGUY(YKHO, FGUY):\n if FGUY is None:\n raise ValueError('Invalid value for `address_line1`, must not be `None`')\n YKHO._addre... | [
"0.8197091",
"0.7381611",
"0.7381611",
"0.7173592",
"0.70151013",
"0.6688908",
"0.6550875",
"0.65290755",
"0.65156233",
"0.6468798",
"0.6466647",
"0.6401733",
"0.62853265",
"0.6220995",
"0.62102145",
"0.6180758",
"0.6180758",
"0.6157007",
"0.6132031",
"0.6081737",
"0.6081737"... | 0.83252025 | 0 |
Gets the address_2 of this Company. | def mZad(YKHO):
return YKHO._address_2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JkuS(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'address2')",
"def JkuS(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'address2')",
"def JkuS(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'address2')",
"def JkuS(YKHO, KAOR):\n return KAOR.user.profile.address... | [
"0.79922736",
"0.7832418",
"0.7832418",
"0.76082075",
"0.74009013",
"0.680921",
"0.68006164",
"0.676114",
"0.66945094",
"0.66733724",
"0.65642446",
"0.6523316",
"0.64951575",
"0.6484699",
"0.6447007",
"0.6443324",
"0.63932294",
"0.6370246",
"0.6357862",
"0.6357862",
"0.635761... | 0.8279981 | 0 |
Sets the address_2 of this Company. | def mZad(YKHO, mZad):
YKHO._address_2 = mZad | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JkuS(YKHO, JkuS):\n YKHO._address2 = JkuS",
"def y6Xr(YKHO, y6Xr):\n YKHO._address_line2 = y6Xr",
"def y6Xr(YKHO, y6Xr):\n YKHO._address_line2 = y6Xr",
"def y6Xr(YKHO, y6Xr):\n YKHO._address_line2 = y6Xr",
"def x9Fq(YKHO, x9Fq):\n YKHO._street_2 = x9Fq",
"def mZad(YKHO):\n return YK... | [
"0.8420217",
"0.75927866",
"0.75927866",
"0.75927866",
"0.7307024",
"0.691906",
"0.6805402",
"0.6756377",
"0.6611891",
"0.6541268",
"0.64908457",
"0.64300764",
"0.64300764",
"0.635333",
"0.62606573",
"0.61777145",
"0.61408424",
"0.5984044",
"0.5935465",
"0.5875783",
"0.584719... | 0.8543798 | 0 |
Gets the postcode of this Company. | def BQ5d(YKHO):
return YKHO._postcode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kAHQ(YKHO):\n return YKHO._postal_code",
"def kAHQ(YKHO):\n if 'postalCode' in YKHO._prop_dict:\n return YKHO._prop_dict['postalCode']\n else:\n return None",
"def kAHQ(YKHO):\n if 'postalCode' in YKHO._prop_dict:\n return YKHO._prop_dict['postalCode']\n else:\n r... | [
"0.7425708",
"0.73551387",
"0.73551387",
"0.73383325",
"0.6910429",
"0.67521304",
"0.67521304",
"0.67521304",
"0.671513",
"0.6070526",
"0.6022538",
"0.6011883",
"0.5995387",
"0.5939424",
"0.5856153",
"0.58192235",
"0.58192235",
"0.58192235",
"0.58192235",
"0.58192235",
"0.581... | 0.81306285 | 1 |
Sets the postcode of this Company. | def BQ5d(YKHO, BQ5d):
YKHO._postcode = BQ5d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q8sW(YKHO, q8sW):\n YKHO._post_code = q8sW",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ",
"def aS2h(YKHO, aS2h):\n YKHO._zip_post_code = aS2h",
"def vEcJ(YKHO, BWXx):\n sup... | [
"0.7746496",
"0.7240486",
"0.7240486",
"0.7240486",
"0.6933452",
"0.6356589",
"0.62528837",
"0.62528837",
"0.56795007",
"0.56297016",
"0.5546234",
"0.55123204",
"0.54621243",
"0.54621243",
"0.5391004",
"0.5304791",
"0.5304791",
"0.5297066",
"0.52903193",
"0.5253824",
"0.51896... | 0.8149303 | 1 |
Sets the country_id of this Company. | def j6q_(YKHO, j6q_):
YKHO._country_id = j6q_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n if vxW9 is None:\n ... | [
"0.7315682",
"0.7315682",
"0.7315682",
"0.7315682",
"0.7315682",
"0.6993897",
"0.6839812",
"0.662452",
"0.6393392",
"0.6393392",
"0.63233525",
"0.6018672",
"0.59501576",
"0.58453393",
"0.57888764",
"0.57541275",
"0.5719039",
"0.570507",
"0.5695646",
"0.5568804",
"0.54427946",... | 0.8399308 | 1 |
Sets the currency_id of this Company. | def qPCP(YKHO, qPCP):
YKHO._currency_id = qPCP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def set_currency(YKHO, VIXL: str):\n qQXR = {**YKHO.get_data(), 'currencyId': VIXL}\n return await YKHO.easee.put(f'/api/sites/{YKHO.id}', json=qQXR)",
"def VIXL(YKHO, VIXL):\n YKHO._currency = VIXL",
"def VIXL(YKHO, VIXL):\n YKHO._currency = VIXL",
"def VIXL(YKHO, VIXL):\n YKHO._currenc... | [
"0.7101681",
"0.68601733",
"0.68601733",
"0.68601733",
"0.68601733",
"0.68110937",
"0.6571344",
"0.6540228",
"0.6540228",
"0.6540228",
"0.6540228",
"0.6540228",
"0.63970655",
"0.6365557",
"0.63166565",
"0.62406725",
"0.61308426",
"0.61069095",
"0.6100509",
"0.59956086",
"0.59... | 0.838314 | 0 |
Sets the business_email of this Company. | def _U6u(YKHO, _U6u):
YKHO._business_email = _U6u | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BKry(YKHO, BKry):\n YKHO._business_owner_email = BKry",
"def HmwW(YKHO, HmwW):\n YKHO._business_account = HmwW",
"def SUUa(YKHO, SUUa):\n YKHO._business_owner = SUUa",
"def EFZl(YKHO, EFZl):\n YKHO._customer_email = EFZl",
"def OY_H(YKHO, OY_H):\n YKHO._business_phone = OY_H",
"def _U6... | [
"0.8080338",
"0.689418",
"0.686568",
"0.67763877",
"0.67261475",
"0.66786194",
"0.6668555",
"0.6668555",
"0.6586404",
"0.657997",
"0.657997",
"0.657997",
"0.657997",
"0.657997",
"0.657997",
"0.657997",
"0.657997",
"0.657997",
"0.657997",
"0.65718806",
"0.6424658",
"0.633523... | 0.8853504 | 0 |
Gets the business_phone of this Company. | def OY_H(YKHO):
return YKHO._business_phone | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def agb1(YKHO):\n if 'businessPhones' in YKHO._prop_dict:\n return YKHO._prop_dict['businessPhones']\n else:\n return None",
"def agb1(YKHO):\n if 'businessPhones' in YKHO._prop_dict:\n return YKHO._prop_dict['businessPhones']\n else:\n return None",
"def agb1(YKHO):\n ... | [
"0.7370643",
"0.7370643",
"0.7370643",
"0.7165213",
"0.6941323",
"0.6880082",
"0.68516576",
"0.68516576",
"0.68516576",
"0.6811236",
"0.67628103",
"0.6624384",
"0.65310836",
"0.64551425",
"0.6450338",
"0.6450338",
"0.635741",
"0.6334432",
"0.6310043",
"0.60831684",
"0.6026935... | 0.8635432 | 0 |
Sets the business_phone of this Company. | def OY_H(YKHO, OY_H):
YKHO._business_phone = OY_H | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yjwf(YKHO, Yjwf):\n YKHO._business_phone_number = Yjwf",
"def x3_F(YKHO, bWtk):\n YKHO.phone = bWtk",
"def OY_H(YKHO):\n return YKHO._business_phone",
"def x3_F(YKHO, bWtk):\n YKHO.phone = bWtk\n return YKHO",
"def yJYn(YKHO, yJYn):\n YKHO._personal_phone = yJYn",
"def bWtk(YKHO, bW... | [
"0.8076993",
"0.6945956",
"0.6847377",
"0.6815752",
"0.67607933",
"0.66212636",
"0.66212636",
"0.66212636",
"0.66212636",
"0.66212636",
"0.6500315",
"0.644862",
"0.6441339",
"0.6301416",
"0.62995297",
"0.62439615",
"0.62439615",
"0.62439615",
"0.62439615",
"0.62408894",
"0.61... | 0.87642604 | 0 |
Gets the vat_number of this Company. | def bp77(YKHO):
return YKHO._vat_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oeua(YKHO):\n return YKHO._vat_id",
"def oeua(YKHO) -> str:\n return YKHO._vat_id",
"def lwfF(YKHO):\n return YKHO._vcn_id",
"def Lpu6(YKHO):\n return YKHO._contract_number",
"def lFNR(YKHO) -> xBeT:\n return YKHO._carrier_voyage_number",
"def kaPv(YKHO):\n return YKHO.versions[0].n... | [
"0.7281263",
"0.7006975",
"0.6277326",
"0.6089214",
"0.60248196",
"0.57753575",
"0.562731",
"0.5602054",
"0.5568899",
"0.5547058",
"0.54992557",
"0.54235643",
"0.53771305",
"0.53771305",
"0.53552306",
"0.5316702",
"0.53111017",
"0.5291103",
"0.52378243",
"0.52328",
"0.5231529... | 0.8119231 | 0 |
Gets the registration_number of this Company. | def UAmN(YKHO):
return YKHO._registration_number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c6yP(YKHO):\n return YKHO._reg_number",
"def sNy1(YKHO):\n return YKHO._regcode",
"def A2on(YKHO) -> str:\n return qe4Y.get(YKHO, 'registration_definition_id')",
"def lb7m(YKHO):\n return YKHO.__account_number",
"def unpH(YKHO) -> str:\n return YKHO._register_id",
"def sNy1(YKHO) -> h8... | [
"0.82520056",
"0.70589495",
"0.6414419",
"0.63728654",
"0.6371001",
"0.6345038",
"0.6274442",
"0.6094897",
"0.60431165",
"0.60099185",
"0.60011536",
"0.598054",
"0.59553367",
"0.5921105",
"0.58988446",
"0.5841004",
"0.58306414",
"0.58209103",
"0.58139616",
"0.58067155",
"0.57... | 0.839242 | 0 |
Sets the registration_number of this Company. | def UAmN(YKHO, UAmN):
YKHO._registration_number = UAmN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NEqR(YKHO, NEqR):\n YKHO._registration_id = NEqR",
"def iBJa(YKHO, iBJa):\n YKHO._registry_number = iBJa",
"def Yjwf(YKHO, Yjwf):\n YKHO._business_phone_number = Yjwf",
"def UAmN(YKHO):\n return YKHO._registration_number",
"def RPcJ(YKHO, RPcJ):\n YKHO._registration_name = RPcJ",
"def ... | [
"0.6912592",
"0.6457588",
"0.6257057",
"0.6224843",
"0.61997736",
"0.60711586",
"0.60256827",
"0.5984901",
"0.5948491",
"0.58809835",
"0.5849947",
"0.5833053",
"0.5739443",
"0.5689491",
"0.5689491",
"0.5689491",
"0.5689491",
"0.5641926",
"0.5641356",
"0.56060535",
"0.55992377... | 0.80694664 | 0 |
Gets the timezone of this Company. | def rIAI(YKHO):
return YKHO._timezone | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI(YKHO):\n return YKHO._tz",
"def rIAI(YKHO) -> str:\n return YKHO._tz",
"def rIAI(YKHO):\n return YKHO.data.get('timezone')",
"def Vsdc(YKHO) -> str:\n return YKHO.AD.time_zone",
"def rIAI(YKHO):\n o7b4 = YKHO._router_request(YKHO._make_request_data('getTimeZone', data=dict()))\n ... | [
"0.8252713",
"0.8000823",
"0.78496724",
"0.77686936",
"0.77271044",
"0.77052397",
"0.76508176",
"0.75870216",
"0.7469745",
"0.728207",
"0.722694",
"0.7185324",
"0.7130271",
"0.70653164",
"0.7024833",
"0.700182",
"0.6941019",
"0.6834261",
"0.66794467",
"0.6624282",
"0.6568153"... | 0.80441254 | 2 |
Sets the timezone of this Company. | def rIAI(YKHO, rIAI):
YKHO._timezone = rIAI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D1G8(YKHO, wnl6):\n YKHO.startdate = wnl6.localize(YKHO.startdate.replace(tzinfo=None))\n YKHO.enddate = wnl6.localize(YKHO.enddate.replace(tzinfo=None))\n YKHO.timezone = wnl6",
"def MbZJ(YKHO, MbZJ):\n YKHO._time_zone = MbZJ",
"def set(YKHO, d5dG):\n if YKHO.no_dbus:\n return\n Y... | [
"0.7343945",
"0.68632",
"0.64408696",
"0.6346224",
"0.63077927",
"0.6267625",
"0.5988582",
"0.59514844",
"0.5927159",
"0.58890826",
"0.58873683",
"0.58839226",
"0.5845754",
"0.57898414",
"0.577315",
"0.577315",
"0.56699646",
"0.56699646",
"0.56699646",
"0.5620195",
"0.5603739... | 0.7526051 | 3 |
Gets the contact of this Company. | def Mxk0(YKHO):
return YKHO._contact | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U2Av(YKHO):\n return YKHO.__contact",
"def aimK(YKHO, tB6k, I8Xd=None):\n return YKHO.get_object('contact', tB6k, user_key=I8Xd)",
"def Mxk0(YKHO, ANj3):\n return T1p0.Contact(YKHO, ANj3)",
"def aimK(YKHO, Artt):\n for Mxk0 in YKHO._contacts:\n if Mxk0.guid == Artt:\n return... | [
"0.7899693",
"0.71088445",
"0.7083013",
"0.7066555",
"0.7037144",
"0.70047146",
"0.6858584",
"0.67821676",
"0.67773175",
"0.6624245",
"0.6598721",
"0.6589603",
"0.6589603",
"0.6572919",
"0.65651846",
"0.6555251",
"0.6555251",
"0.6555251",
"0.6416731",
"0.6378814",
"0.6339303"... | 0.7883839 | 2 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.7961088",
"0.7961088",
"0.79433626",
"0.79303336",
"0.7926563",
"0.7897525",
"0.78826123",
"0.78826123",
"0.78806067",
"0.7872423",
"0.7868354",
"0.78668815",
"0.7825702",
"0.7819993",
"0.78162885",
"0.78078854",
"0.78068... | 0.79670393 | 36 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
List all the available triggers on current engine. | def UigP(eHpk: Engine) -> x1iM[o9Dw]:
BOjq = eHpk.execute("SELECT event_object_schema as schema, event_object_table as table_name, trigger_schema, trigger_name, action_statement as definition, string_agg(event_manipulation, ',') as trigger_event FROM information_schema.triggers GROU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZXmZ(YKHO, GTA_=None):\n if not GTA_:\n GTA_ = YKHO.name\n jsay = YKHO.execute(YKHO.commands.get_triggers(YKHO.db.name, GTA_))\n return [WKvO[0] for WKvO in jsay]",
"def cG_K(YKHO, A07C=[], dJ1p=[]):\n NArs = {'triggerIds': A07C, 'tags': dJ1p}\n MMe4 = YKHO._get(path='triggers', params=... | [
"0.7431098",
"0.6860732",
"0.6859406",
"0.6841385",
"0.68203676",
"0.663856",
"0.6513156",
"0.6513156",
"0.6493004",
"0.6228277",
"0.62007135",
"0.6017275",
"0.6012129",
"0.59884036",
"0.5939788",
"0.5913822",
"0.5836523",
"0.5688732",
"0.56261116",
"0.55999434",
"0.55907685"... | 0.7638215 | 0 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038813",
"0.79248375",
"0.7923423",
"0.7885103",
"0.78773195",
"0.7815877",
"0.77655786",
"0.77556044",
"0.77441615",
"0.7731815",
"0.77288336",
"0.772473",
"0.77028215",
"0.76889825",
"0.76889825",
"0.7664208",
"0.76570904",
"0.7655856",
"0.7655856",
"0.76458347",
"0.764... | 0.7448925 | 69 |
Formats a LUSID cash ladder response to a pandas DataFrame. | def RfT8(geh0) -> rLdf.DataFrame:
MAD7 = lytx()
for U6D_ in geh0.values:
gLG9 = {HRlp: BWXx.value.label_value for HRlp, BWXx in U6D_.sub_holding_keys.items()}
for AIu6 in U6D_.records:
fMQ3 = ivTL(U6D_, AIu6)
for rxHD, BWXx in AIu6.activities.items():
fMQ3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kiac(J2us: list) -> CwDs.DataFrame:\n return CwDs.DataFrame(J2us, columns=HhOh)",
"def fdp9(PziP: lusid.ResourceListOfPortfolioCashFlow, B1Wc: bool=True) -> rLdf.DataFrame:\n\n def _3_P(jQ3Z: pd.DataFrame, dmDz: str, MGu9: str, Qdrd: list) -> rLdf.DataFrame:\n return jQ3Z[jQ3Z[dmDz] == MGu9][Qdr... | [
"0.63423157",
"0.5973283",
"0.5932889",
"0.5777047",
"0.57526",
"0.5706653",
"0.568698",
"0.56812215",
"0.56495386",
"0.56055146",
"0.55479723",
"0.5523329",
"0.5516826",
"0.5491577",
"0.54050946",
"0.5397629",
"0.53685623",
"0.53604895",
"0.53483397",
"0.53479195",
"0.534146... | 0.6482358 | 0 |
Returns whether or not an object can be converted to JSON. | def vqLp(YEnM, MnDN=QPqx):
try:
_wLH = QPqx.encode(YEnM)
except Exception as e:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHEG(WFhB):\n try:\n qQXR.loads(WFhB)\n except ValueError:\n return False\n return True",
"def bAkp(YKHO, input):\n try:\n qQXR.dumps(input)\n return True\n except (TypeError, OverflowError):\n return False",
"def kIjs(vxw0):\n try:\n return isins... | [
"0.79664415",
"0.78763944",
"0.7367911",
"0.7197148",
"0.713905",
"0.6969035",
"0.6829706",
"0.680232",
"0.67917013",
"0.67396057",
"0.6645885",
"0.662105",
"0.6602041",
"0.65659904",
"0.65080845",
"0.63526535",
"0.62688875",
"0.6190081",
"0.6122338",
"0.6118775",
"0.60716945... | 0.82562476 | 0 |
Filters text that is too short for analyzing readability | def kuHV(l5Ny):
if len(l5Ny) < 30:
return None
return l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pNAZ(l5Ny):\n if len(l5Ny) > 400:\n return l5Ny[:400] + ' ...'\n return l5Ny",
"def RfHw(l5Ny):\n return ' '.join([GIN8 for GIN8 in str(l5Ny).split() if len(GIN8) <= 12])",
"def cll5(l5Ny):\n sWfS = {' *health *center': '', ' *health *ceanter': '', ' +H[./]*C': '', ' *health *post': '', ... | [
"0.73136395",
"0.68807745",
"0.6618025",
"0.650179",
"0.619532",
"0.61639285",
"0.61639285",
"0.61639285",
"0.61639285",
"0.61639285",
"0.61639285",
"0.6150892",
"0.6134878",
"0.61055446",
"0.60902816",
"0.6079755",
"0.6065434",
"0.6006502",
"0.5986323",
"0.5932173",
"0.59119... | 0.64893574 | 4 |
Make the model object behave like a dict. | def QdZT(YKHO, hkxX):
for G1Hx, Ty9i in jKi7.iteritems(hkxX):
setattr(YKHO, G1Hx, Ty9i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oawR(YKHO):\n I78j = KcDH()\n YKHO.assertTrue(dict, type(I78j.to_dict()))",
"def ECt_(YKHO) -> dict:\n return dict(((H5ew, getattr(YKHO, H5ew)) for H5ew in YKHO.__mapper__.c.keys()))",
"def dict(YKHO) -> cuzp:\n return super().dict()",
"def dict(YKHO) -> cuzp:\n return super().dict()",
"... | [
"0.7156991",
"0.70300174",
"0.6915193",
"0.6915193",
"0.68749535",
"0.68191147",
"0.6766341",
"0.6752122",
"0.66892827",
"0.6662648",
"0.66206944",
"0.65513957",
"0.6487081",
"0.6468018",
"0.6455899",
"0.6440813",
"0.6429715",
"0.6374103",
"0.63627994",
"0.635863",
"0.6354428... | 0.0 | -1 |
Function read files in 'images' folder, and asks user to chose file | def _dII() -> str:
print('===SELECT FILE===')
iumf = next(ZAda(Rulv), (None, None, []))[2]
iumf.append('Exit the program')
oUZx = lxkz(iumf)
if int(oUZx) == len(iumf):
exit()
else:
return iumf[int(oUZx) - 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CL5K(pmON):\n global user_select\n yVA2 = Hy7s.listdir(pmON)\n print('=======================================')\n print('Listing files...')\n for YRbF, Ty9i in enumerate(yVA2):\n print(YRbF, Ty9i)\n print('=======================================')\n AhPp = O38l + '/' + yVA2[int(inpu... | [
"0.719572",
"0.70949745",
"0.682704",
"0.68198854",
"0.67932004",
"0.67099917",
"0.6636783",
"0.6574526",
"0.65283275",
"0.65054274",
"0.64513147",
"0.6334133",
"0.6333946",
"0.62933576",
"0.62772834",
"0.6180488",
"0.6057207",
"0.6052334",
"0.60423726",
"0.6016772",
"0.60085... | 0.656131 | 8 |
Plot boxplot of data using seaborn.boxplot | def FlUN(jQ3Z, LVAh='value', WKvO=None, xEOs=None, Dy_V=True, leAC=None, aNZO=None, **B2fa):
WKvO = WKvO or xr4U(jQ3Z)
if not isinstance(jQ3Z, rLdf.DataFrame):
jQ3Z = jQ3Z.as_pandas()
if xEOs:
RBVb = Sim4()
if 'palette' not in B2fa and 'color' in RBVb and (xEOs in RBVb['color']):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wLS1(nPrm):\n uuEx.boxplot(nPrm, width=0.5, palette='colorblind')\n uuEx.swarmplot(nPrm, color='red', alpha=0.75)",
"def LVC6():\n jQ3Z = rLdf.read_csv('./housing.csv')\n jQ3Z = jQ3Z.dropna()\n QrM1.figure(figsize=(10, 6))\n uuEx.boxplot(data=jQ3Z, x='ocean_proximity', y='median_house_value... | [
"0.8502467",
"0.7457859",
"0.74180037",
"0.709566",
"0.70572317",
"0.7054994",
"0.69945204",
"0.69095457",
"0.6896563",
"0.68391865",
"0.68065375",
"0.67931604",
"0.6766868",
"0.67599857",
"0.67527527",
"0.6731448",
"0.66956323",
"0.66836214",
"0.66387737",
"0.66069305",
"0.6... | 0.6115522 | 35 |
Return a taxlot state populated with pseudo random data | def ImWH(YKHO, QAIN, **YSA3):
qN9j = YKHO.get_details()
qN9j.update(YSA3)
mizK = is0M.objects.create(organization=QAIN, **qN9j)
tikL = {}
clvY.objects.create(organization=QAIN, state=mizK, **tikL)
return mizK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rxHc(YKHO):\n YKHO.state = oyIN.random.choice(['checkout', 'dairy', 'drinks', 'fruit', 'spices'], p=YKHO.tr_array_dict[f'{YKHO.state}'])",
"def ADdS(YKHO):\n return YKHO.State.rand()",
"def mvm2(YKHO):\n WKvO = YKHO.state\n Jw7X = YKHO.theta * (YKHO.mu - WKvO) + YKHO.sigma * oyIN.random.standar... | [
"0.7410216",
"0.6749461",
"0.67086345",
"0.670357",
"0.670357",
"0.670357",
"0.670357",
"0.670357",
"0.6696778",
"0.66843545",
"0.66800725",
"0.66706353",
"0.6645671",
"0.6628989",
"0.66086066",
"0.6599826",
"0.64371413",
"0.63752556",
"0.6357058",
"0.63456243",
"0.6310371",
... | 0.0 | -1 |
Calculates IoU of the given box with the array of the given boxes. | def kHsH(FlUN, oUSw, ab__):
si3g = oyIN.maximum(FlUN[0], oUSw[:, 0])
skBL = oyIN.minimum(FlUN[2], oUSw[:, 2])
o4D3 = oyIN.maximum(FlUN[1], oUSw[:, 1])
ajwV = oyIN.minimum(FlUN[3], oUSw[:, 3])
return oyIN.divide(oyIN.maximum(ajwV - o4D3, 0) * oyIN.maximum(skBL - si3g, 0), ab__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xWy(FlUN, oUSw):\n RjuK = [FlUN.intersection(Fg_i).area / FlUN.union(Fg_i).area for Fg_i in oUSw]\n return oyIN.array(RjuK, dtype=oyIN.float32)",
"def _xWy(FlUN, oUSw, ab__, p1Yn):\n o4D3 = oyIN.maximum(FlUN[0], oUSw[:, 0])\n ajwV = oyIN.minimum(FlUN[2], oUSw[:, 2])\n si3g = oyIN.maximum(FlUN... | [
"0.8233654",
"0.8128509",
"0.8116598",
"0.8116598",
"0.8116598",
"0.80252707",
"0.79859704",
"0.7928408",
"0.77582073",
"0.77385104",
"0.77119327",
"0.7706524",
"0.7639222",
"0.7638932",
"0.7638932",
"0.76373506",
"0.76087755",
"0.76022065",
"0.76022065",
"0.75603807",
"0.751... | 0.0 | -1 |
Calculates IoU of the given box with the array of the given boxes. | def _xWy(FlUN, oUSw, ab__, p1Yn):
si3g = oyIN.maximum(FlUN[0], oUSw[:, 0])
skBL = oyIN.minimum(FlUN[2], oUSw[:, 2])
o4D3 = oyIN.maximum(FlUN[1], oUSw[:, 1])
ajwV = oyIN.minimum(FlUN[3], oUSw[:, 3])
iQin = oyIN.maximum(ajwV - o4D3, 0) * oyIN.maximum(skBL - si3g, 0)
b65I = ab__ + p1Yn[:] - iQin[:]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xWy(FlUN, oUSw):\n RjuK = [FlUN.intersection(Fg_i).area / FlUN.union(Fg_i).area for Fg_i in oUSw]\n return oyIN.array(RjuK, dtype=oyIN.float32)",
"def _xWy(FlUN, oUSw, ab__, p1Yn):\n o4D3 = oyIN.maximum(FlUN[0], oUSw[:, 0])\n ajwV = oyIN.minimum(FlUN[2], oUSw[:, 2])\n si3g = oyIN.maximum(FlUN... | [
"0.8233654",
"0.8128509",
"0.80252707",
"0.79859704",
"0.7928408",
"0.77582073",
"0.77385104",
"0.77119327",
"0.7706524",
"0.7639222",
"0.7638932",
"0.7638932",
"0.76373506",
"0.76087755",
"0.76022065",
"0.76022065",
"0.75603807",
"0.7515975",
"0.72115165",
"0.7174434",
"0.71... | 0.8116598 | 3 |
Computes IoU overlaps between two sets of boxes. | def I7Mo(wGB6, QFOH):
bzU2 = (wGB6[:, 2] - wGB6[:, 0]) * (wGB6[:, 3] - wGB6[:, 1])
Eq1k = (QFOH[:, 2] - QFOH[:, 0]) * (QFOH[:, 3] - QFOH[:, 1])
PZIW = oyIN.zeros((wGB6.shape[0], QFOH.shape[0]))
for YRbF in range(PZIW.shape[1]):
IkxF = QFOH[YRbF]
PZIW[:, YRbF] = _xWy(IkxF, wGB6, Eq1k[YRbF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oZg1(Bsc6, IUcw, Tuqy='iou'):\n from icv.data.core.bbox import BBox\n assert Tuqy in ['iou', 'iof']\n Bsc6 = oyIN.array([oyIN.array(Fg_i.bbox) if isinstance(Fg_i, BBox) else Fg_i for Fg_i in Bsc6])\n IUcw = oyIN.array([oyIN.array(Fg_i.bbox) if isinstance(Fg_i, BBox) else Fg_i for Fg_i in IUcw])\n ... | [
"0.7990258",
"0.78904206",
"0.7689194",
"0.7660567",
"0.7657809",
"0.7563204",
"0.7563204",
"0.7537507",
"0.7537489",
"0.7537075",
"0.7535801",
"0.7518172",
"0.74753666",
"0.7450694",
"0.74426514",
"0.74420667",
"0.73539835",
"0.7332804",
"0.731948",
"0.7306193",
"0.72520274"... | 0.81729996 | 0 |
Get all the pairs of interacting residues from two proteins that are within a certain distance. | def DOND(bXBe, oG2y, pImw):
cEnR = list(filter(lambda WKvO: WKvO.get_id() == 'CB', bXBe))
ncoY = list(filter(lambda WKvO: WKvO.get_id() == 'CB', oG2y))
PCpl = GYTp(cEnR)
hJrH = []
for WhQ6 in ncoY:
NYGc = PCpl.search(WhQ6.get_coord(), pImw)
hJrH.extend([tuple(sorted([str(WhQ6.get_par... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xdox(Wqlh, bskW):\n kvsE = []\n aSjR = []\n for y7Au in range(0, len(Wqlh)):\n TF_U = 100000\n XT5M = 0\n PvyL = []\n for hZ1y in range(0, len(bskW)):\n XT5M = Tsdz(Wqlh[y7Au], bskW[hZ1y])\n if XT5M < TF_U:\n PvyL = bskW[hZ1y]\n ... | [
"0.6220838",
"0.61719257",
"0.59122163",
"0.58906657",
"0.586396",
"0.5844812",
"0.58085406",
"0.5768291",
"0.5693437",
"0.5661015",
"0.56012255",
"0.55946124",
"0.5582859",
"0.55632806",
"0.55475515",
"0.5537653",
"0.5498095",
"0.54965824",
"0.5456797",
"0.54521513",
"0.5415... | 0.59804183 | 2 |
Close and shutdown sockets and connection | def DDI8(YKHO) -> None:
YKHO.__is_active = False
if YKHO.__connection is not None:
YKHO.__connection.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hqgk(YKHO):\n YKHO.socket.close()\n YKHO.socket_state.close()",
"def hqgk(YKHO):\n YKHO.sock.close()",
"def DDI8(YKHO):\n if YKHO.socket is not None:\n try:\n YKHO.socket.shutdown(2)\n except Exception:\n pass\n try:\n YKHO.socket.close()\n ... | [
"0.8226016",
"0.7964312",
"0.784553",
"0.7837744",
"0.77594286",
"0.7735829",
"0.7615989",
"0.7611033",
"0.760557",
"0.75683033",
"0.7541371",
"0.7538251",
"0.75269824",
"0.7443392",
"0.741075",
"0.7410218",
"0.7409785",
"0.7402068",
"0.74015504",
"0.74015135",
"0.74015135",
... | 0.0 | -1 |
Return the version identifier of the current store state. | def DpZH(YKHO):
raise NotImplementedError('version') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpZH(YKHO) -> h8nf[qe4Y.Input['FhirStoreVersion']]:\n return qe4Y.get(YKHO, 'version')",
"def DpZH(YKHO):\n return YKHO.version_guid",
"def cQmv(YKHO):\n return next(YKHO.graph[YKHO.identifier_bound:BC_u.versionIRI])",
"def mljj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'versio... | [
"0.72512376",
"0.695747",
"0.6941922",
"0.687185",
"0.68630636",
"0.67687935",
"0.67407936",
"0.67307717",
"0.67116773",
"0.6640965",
"0.66392475",
"0.66392475",
"0.66392475",
"0.66392475",
"0.6635625",
"0.6613744",
"0.6588299",
"0.6582557",
"0.6547867",
"0.65447706",
"0.6541... | 0.0 | -1 |
Turn off all LEDs of the DotStar strip. | def k_fH(YKHO):
YKHO.spi.write(bytearray([0] * 4 + [255, 0, 0, 0] * YKHO.bmp2led.num_pixels + [255] * ((YKHO.bmp2led.num_pixels + 15) // 16))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l4XF(YKHO):\n for agxD in YKHO.all:\n xi8C.output(agxD, 0)",
"def QAmq(YKHO):\n for GDDk in f7Ob:\n YKHO.led_off(GDDk)\n G9jH.info('LED: ALL - Status: 0')",
"def SCq0():\n F8uC.red_left.brightness = 0\n F8uC.red_right.brightness = 0\n F8uC.green_left.brightness = 0\n F8uC... | [
"0.7888904",
"0.7400187",
"0.73682964",
"0.7360544",
"0.7255599",
"0.7219795",
"0.7209766",
"0.7132352",
"0.70545423",
"0.69862396",
"0.6957128",
"0.6953507",
"0.6932725",
"0.6909033",
"0.6853271",
"0.68143815",
"0.6800145",
"0.6759947",
"0.67106116",
"0.6708061",
"0.66907585... | 0.0 | -1 |
Return the value of the given stateaction pair | def Hrr1(YKHO, QTBn, XeOP):
tFdA = ht2j.from_numpy(QTBn).float().to(YKHO.device)
hlel = ht2j.dot(YKHO.weights[XeOP, :], tFdA)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dg7R(YKHO, QTBn, XeOP):\n return YKHO.value_function[lCim(QTBn, XeOP)]",
"def Hrr1(YKHO, QTBn, XeOP):\n raise NotImplementedError",
"def T6ie(YKHO, QTBn, XeOP):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return YKHO.values[str(QTBn), XeOP]",
"def UnfG(YKHO, QTBn):\n return YKHO.values[QTBn]",
... | [
"0.8025442",
"0.79498625",
"0.78717256",
"0.7635291",
"0.7574047",
"0.75734794",
"0.75489855",
"0.7420877",
"0.73798805",
"0.73798805",
"0.73798805",
"0.73798805",
"0.7344557",
"0.73308986",
"0.73293626",
"0.73293626",
"0.73293626",
"0.73293626",
"0.73293626",
"0.73293626",
"... | 0.7288848 | 26 |
Return the value of the given stateaction pair | def Hrr1(YKHO, QTBn, XeOP):
tFdA = ht2j.from_numpy(QTBn).float().to(YKHO.device)
hlel = ht2j.dot(YKHO.weights[XeOP, :], tFdA.view(-1))
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dg7R(YKHO, QTBn, XeOP):\n return YKHO.value_function[lCim(QTBn, XeOP)]",
"def Hrr1(YKHO, QTBn, XeOP):\n raise NotImplementedError",
"def T6ie(YKHO, QTBn, XeOP):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return YKHO.values[str(QTBn), XeOP]",
"def UnfG(YKHO, QTBn):\n return YKHO.values[QTBn]",
... | [
"0.80276626",
"0.795146",
"0.7872588",
"0.76328826",
"0.75749767",
"0.75744814",
"0.7549472",
"0.7418124",
"0.73807997",
"0.73807997",
"0.73807997",
"0.73807997",
"0.73456675",
"0.73264176",
"0.73264176",
"0.73264176",
"0.73264176",
"0.73264176",
"0.73264176",
"0.73264176",
"... | 0.7332363 | 13 |
Return the group ID | def hE03(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def yvPJ(YKHO):\n return YKHO._get_attribute('groupId')",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n ... | [
"0.89156306",
"0.89156306",
"0.8833338",
"0.8735677",
"0.8735677",
"0.8735677",
"0.8662106",
"0.8641046",
"0.8603176",
"0.8590198",
"0.85514855",
"0.8358276",
"0.83364713",
"0.83364713",
"0.83364713",
"0.78458196",
"0.7838624",
"0.7830914",
"0.78196335",
"0.7753614",
"0.77427... | 0.8825894 | 3 |
Return True if this is a group amdin group Returns bool indicating whether or not members of this group are able to administer group memberships of any groups on the system. | def x7ht(YKHO):
moMn = YKHO['__store']
return YKHO.group_id in moMn.get_group_admin_group_ids() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Kb1(YKHO, CBIr):\n if CBIr.is_superuser:\n return True\n if CBIr.groups.filter(name=YKHO.admin_group_name).count() > 0:\n return True\n else:\n return False",
"def _Kb1(YKHO, CBIr) -> bool:\n return CBIr.is_superuser or CBIr.groups.filter(pk=YKHO.admins_group.pk).exists()",
... | [
"0.72873867",
"0.7059797",
"0.68159175",
"0.6769821",
"0.6706483",
"0.67023385",
"0.66888475",
"0.6678075",
"0.6653066",
"0.6600334",
"0.65930074",
"0.65486026",
"0.65431315",
"0.65217096",
"0.651486",
"0.6501157",
"0.64216006",
"0.64158636",
"0.6395955",
"0.6382704",
"0.6366... | 0.8059573 | 0 |
Returns the administrator group name | def ng0F(YKHO):
VUF1 = YKHO['__store']
ZYUI = VUF1.get(YKHO.get('admin_group_id', None))
if ZYUI:
return ZYUI.name
return 'nothing' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hseu(YKHO):\n return YKHO.short_name + '_admins'",
"def XZ_F(YKHO):\n return YKHO.groupname",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def iEH5(YKHO):\n return YKHO.config['security_group']",
"def IXKo(YKHO):\n return YKHO._group_name",
"def IXKo(YKHO) -> qe4Y.O... | [
"0.82731897",
"0.75625664",
"0.74049485",
"0.7158549",
"0.7133534",
"0.7036086",
"0.6978985",
"0.6978985",
"0.69113356",
"0.68901753",
"0.67829925",
"0.67626375",
"0.6743625",
"0.6741621",
"0.6741621",
"0.6728629",
"0.6712347",
"0.6568609",
"0.65675133",
"0.6515803",
"0.65049... | 0.8095456 | 1 |
Update apps by app group ids | def X_oU(YKHO, KYNe):
return YKHO.update_supergroups_by_id(KYNe, 'app') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xuZ(YKHO, vmR4, MV0m):\n for ey92 in vmR4:\n ey92['flags'] = {MV0m: True}\n YKHO._app_groups = vmR4\n YKHO._modify_schedule_policy_properties()",
"def _3b_(YKHO, oRf5):\n YKHO.remove_apps()\n for B7c0 in oRf5:\n YKHO.add_app(iV7l.objects.get(pk=B7c0))\n BBwy.delay(oRf5)",
"... | [
"0.6434253",
"0.63284683",
"0.61405957",
"0.6094547",
"0.6081245",
"0.6024579",
"0.5925237",
"0.59032786",
"0.58908784",
"0.58757144",
"0.5824666",
"0.58239055",
"0.5814318",
"0.5791068",
"0.57755035",
"0.5754458",
"0.5739425",
"0.5735661",
"0.5687409",
"0.56152153",
"0.56049... | 0.8027855 | 0 |
Post updated group memberships | def f8W5(YKHO, wjS6):
sPBL = set((int(id) for id in wjS6))
bo34 = G9jH.getLogger(__name__)
dsE5 = bo34.debug
NCls = YKHO['__store'].db
DW23 = trlf.users.Users(NCls)
dsE5('updating members: %r', sPBL)
HCmI = 'select user_id from members where group_id=%s'
Ys3F = set((uJjO for uJjO, in NCl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NKOD(YKHO):\n pass",
"def AZrk(YKHO, onft, QePW):\n hE03 = onft.viewed_user_auth.user_id\n g3Qi, fUQg = YKHO._services.usergroup.LookupMembers(onft.cnxn, [hE03])\n _xfu = fUQg.get(hE03, [])\n xibX = g3Qi.get(hE03, [])\n if not w0rQ.CanEditGroup(onft.perms, onft.auth.effective_ids, _xfu):\n ... | [
"0.66777635",
"0.66728055",
"0.65853345",
"0.65093434",
"0.6490823",
"0.6481676",
"0.6472818",
"0.64283276",
"0.6389209",
"0.6298107",
"0.62815",
"0.6263807",
"0.62254673",
"0.6215808",
"0.621252",
"0.61899585",
"0.6180922",
"0.6166971",
"0.6136744",
"0.6129081",
"0.60964304"... | 0.56305474 | 40 |
tocs One or more TOCs (Tables of Contents), normally an Analysis.pure. If this TOC has an attribute `_code_cache`, this is expected to be a dict of module code objects from ModuleGraph. kwargs | def FIMM(YKHO, *w0v5, **B2fa):
from PyInstaller.config import CONF
xU76.__init__(YKHO)
mWFP = B2fa.get('name', None)
KUf6 = B2fa.get('cipher', None)
YKHO.toc = heUV()
YKHO.code_dict = {}
for a1PO in w0v5:
YKHO.toc.extend(a1PO)
YKHO.code_dict.update(getattr(a1PO, '_code_cache'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jbcm(n3p_):\n global BUILDPATH\n iGvk = '/'.join([n5B_, 'localpycos'])\n Dxic = []\n for hPll, TP27, cM24 in n3p_:\n bMqP = TP27[:-1]\n if s537(bMqP) > s537(TP27):\n try:\n mhmZ.compile(bMqP)\n except IOError:\n YBcr = Hy7s.path.spli... | [
"0.6388336",
"0.5847333",
"0.53447455",
"0.53239065",
"0.53239065",
"0.53239065",
"0.5264372",
"0.5197867",
"0.50625503",
"0.49940208",
"0.49513757",
"0.49335647",
"0.4905165",
"0.48410487",
"0.4824864",
"0.4794297",
"0.4791417",
"0.47382355",
"0.4663958",
"0.46632838",
"0.46... | 0.5248665 | 7 |
check string is valid ip address string | def kxWU(YKHO, g4y1):
format = '((?:(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|[01]?\\d?\\d))'
mXDZ = ZbWC.match(format, g4y1)
if mXDZ is not None:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tkzz(r3gH: str) -> bool:\n try:\n SwOd.ip_address(r3gH)\n return True\n except ValueError:\n return False",
"def kxWU(vIwR):\n return nMQK.is_ip(vIwR) or vted.is_ip(vIwR)",
"def mty4(D8Ke):\n ...",
"def RPkW(YKHO, UTX6):\n try:\n z05X.IPNetwork(UTX6)\n except... | [
"0.8318397",
"0.79284453",
"0.78429705",
"0.77904046",
"0.77660614",
"0.7712624",
"0.7698703",
"0.76797354",
"0.76436925",
"0.76039636",
"0.754775",
"0.7510383",
"0.7503149",
"0.7499064",
"0.7481129",
"0.7459918",
"0.7459599",
"0.74506295",
"0.74488795",
"0.74433327",
"0.7376... | 0.7686832 | 7 |
Gather all torch parameters in each `TorchPipe`s, and create an optimizer. | def p4Za(YKHO, **B2fa) -> hCm3:
assert hasattr(YKHO, 'pipeline')
NArs = YKHO.get_params()
return YKHO.create_optimizer(NArs, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFuh(YKHO, nPIK, N1Fg):\n bpHD = YKHO.hyperparameter_tunning(nPIK, N1Fg)\n YKHO.pipeline_dict['hyperparameter'] = bpHD",
"def FIMM(YKHO, e3dN, i4Pn=ZylS.keras.optimizers.Adam, ZCaR=0.001):\n super().__init__()\n YKHO.forward_models = e3dN\n YKHO.bootstraps = len(e3dN)\n YKHO.forward_model_o... | [
"0.62348574",
"0.6012905",
"0.5845732",
"0.5806131",
"0.57638663",
"0.5680216",
"0.567872",
"0.56155795",
"0.55297214",
"0.5504017",
"0.5502343",
"0.54859793",
"0.5485532",
"0.54807246",
"0.5449912",
"0.5447135",
"0.5431203",
"0.5419512",
"0.54169554",
"0.54083735",
"0.540735... | 0.0 | -1 |
Opens a new database connection if there is none yet for the current application context. | def GGod():
if not hasattr(Oa1e, 'sqlite_db'):
Oa1e.sqlite_db = _uJw()
return Oa1e.sqlite_db | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db",
"def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)",
"def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)",
"def W... | [
"0.7737639",
"0.7582971",
"0.73180443",
"0.71693045",
"0.70220166",
"0.6966687",
"0.6954785",
"0.69486743",
"0.6897534",
"0.6842663",
"0.68292314",
"0.68191963",
"0.680592",
"0.67950195",
"0.67697805",
"0.6762173",
"0.6751266",
"0.6746273",
"0.67316663",
"0.670031",
"0.668866... | 0.640242 | 77 |
Specify who you want to pay for release. Defaults to you. | async def _bailout_heist(YKHO, OaeV, CBIr: discord.Member=None):
taDc = OaeV.message.author
w7QH = await YKHO.thief.get_guild_theme(OaeV.guild)
fJiE = w7QH['Bail']
Jy0e = w7QH['Sentence']
if CBIr is None:
oyg0 = taDc
else:
oyg0 = CBIr
if await YKHO.thief.get_member_status(oyg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVVd(YKHO, qsJ6):\n YKHO.settings['owner'] = qsJ6",
"def fpBc(pan_, mWFP):\n return 'You use the ' + mWFP + ' to pay ' + pan_.name",
"def qsJ6(YKHO, qsJ6: str):\n YKHO._owner = qsJ6",
"def DjF0(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'distributor')",
"def DjF0(YKHO) -> h8nf[... | [
"0.56409293",
"0.56209874",
"0.51891136",
"0.5075082",
"0.5075082",
"0.5007444",
"0.49734676",
"0.49693066",
"0.4951719",
"0.49499342",
"0.49372828",
"0.49185884",
"0.49091807",
"0.48933157",
"0.48930064",
"0.48854217",
"0.4863039",
"0.48510385",
"0.48455834",
"0.48428652",
"... | 0.0 | -1 |
tokenize documents and preprocess with stemmer (or not) removes small words (12 chars) removes numbers returns array of arrays (list of tokens in each document) | def b0j5(Q5mJ, JCyR, mkhU):
DbxN = ITS7.time()
import re
njyT = re.compile('^\\d*[.,]?\\d*$')
pgQT = []
for A97Q in Q5mJ:
Q4kH = [mkhU.stem(w2fL) for w2fL in dFss(A97Q) if not w2fL in JCyR if len(w2fL) > 2 if njyT.match(w2fL) == None]
Q4kH = [w2fL.upper() for w2fL in Q4kH]
pg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OTws(przZ):\n b0j5 = M9Fq('\\\\w+')\n s2mk = b0j5.tokenize(przZ.lower())\n hwHU = set(Dhdw.corpus.stopwords.words('english'))\n i6lF = [yzQ0 for yzQ0 in s2mk if not yzQ0 in hwHU]\n return i6lF",
"def wr3U(l5Ny):\n qyGl = ZbWC.sub('[^a-zA-Z0-9]', ' ', l5Ny)\n vwCE = dFss(qyGl)\n vgRf =... | [
"0.7697597",
"0.74643224",
"0.74624354",
"0.7413457",
"0.74129677",
"0.7384192",
"0.7372711",
"0.73623204",
"0.73561376",
"0.7347036",
"0.7222008",
"0.72213477",
"0.71896404",
"0.7183078",
"0.7180746",
"0.7178835",
"0.71431893",
"0.7136261",
"0.7091147",
"0.7082246",
"0.70801... | 0.7133871 | 18 |
Tests windows of small length that are normalized to 1. See the documentation for the Taylor window for more information on normalization. | def VtZH(YKHO):
eYzO(w_5H.taylor(1, 2, 15), 1.0)
eYzO(w_5H.taylor(5, 2, 15), oyIN.array([0.75803341, 0.90757699, 1.0, 0.90757699, 0.75803341]))
eYzO(w_5H.taylor(6, 2, 15), oyIN.array([0.7504082, 0.86624416, 0.98208011, 0.98208011, 0.86624416, 0.7504082])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eo6L(YKHO):\n eYzO(w_5H.taylor(5, 2, 15, norm=False), oyIN.array([0.87508054, 1.04771499, 1.15440894, 1.04771499, 0.87508054]))\n eYzO(w_5H.taylor(6, 2, 15, norm=False), oyIN.array([0.86627793, 1.0, 1.13372207, 1.13372207, 1.0, 0.86627793]))",
"def UVvS(YKHO):\n hQHm = lNLu.ones(4)\n exwG = hQHm.... | [
"0.693231",
"0.5852944",
"0.5824091",
"0.5813663",
"0.5779127",
"0.5678927",
"0.56341004",
"0.5628803",
"0.56145126",
"0.5593999",
"0.55509543",
"0.5528892",
"0.55057746",
"0.54885566",
"0.5449871",
"0.5432865",
"0.5407584",
"0.540464",
"0.54026544",
"0.5385893",
"0.537957",
... | 0.740907 | 0 |
Compute new learning rate given the old learning rate | def c6l7(YKHO, *qIxc, **B2fa):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr",
"def NkTt():\n return 1e-05",
"def fggk(YKHO):\n YKHO.scheduler.step()\n tspZ = YKHO.optimizer.param_groups[0]['lr']\n print('learning rate = %.7f' % tspZ)",
"def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor *... | [
"0.79107493",
"0.7664384",
"0.76230997",
"0.7568912",
"0.7563467",
"0.7563467",
"0.74999577",
"0.7457279",
"0.7454079",
"0.74362475",
"0.74362475",
"0.74102443",
"0.7405542",
"0.73833823",
"0.7355138",
"0.7353453",
"0.73001283",
"0.72837174",
"0.7250734",
"0.72296596",
"0.716... | 0.0 | -1 |
Get the precipitation forecast for the specified time frame. | def orlr(YKHO, QnmL: Optional[float]=None, Swre: Optional[float]=None, XHnM: Optional[int]=None) -> aMIk:
nPrm = YKHO.get_data(QnmL, Swre, XHnM).get('precipitation_forecast', {})
return aMIk(average=nPrm.get('average'), total=nPrm.get('total'), time_frame=nPrm.get('timeframe')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QVeo(YKHO) -> beLU:\n KS9L = YKHO.ts.make_future(YKHO.horizon)\n N6Z1 = YKHO.model.forecast(KS9L)\n return N6Z1",
"def nQom(YKHO, d6pt: int) -> pifX:\n if YKHO.source_job is not None:\n with YKHO.source_job.artifact(cache=False) as dIeA:\n return pifX.load(dIeA.path / 'predictio... | [
"0.6218127",
"0.5919591",
"0.5877034",
"0.58056325",
"0.57791793",
"0.5666769",
"0.55921024",
"0.5525678",
"0.5510178",
"0.5471158",
"0.54336786",
"0.53708804",
"0.5324199",
"0.52646524",
"0.525668",
"0.5227249",
"0.51410526",
"0.5125636",
"0.50894153",
"0.5080412",
"0.505378... | 0.5582583 | 7 |
Return the node's NodeGraph NodeGraph | def Tj_K(YKHO):
return YKHO._nodegraph | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WtxK(YKHO):\n gEmA = YKHO.makeLayer()\n YKHO.addNodeToLayer(gEmA)\n return YKHO.graph",
"def Wlps(YKHO):\n return YKHO._graph",
"def pNZh(YKHO):\n return YKHO.__graph",
"def eM0w(YKHO):\n return YKHO.graph",
"def pNZh(YKHO):\n return YKHO._graph",
"def pNZh(YKHO):\n return YKH... | [
"0.73016775",
"0.7204065",
"0.71601033",
"0.7048062",
"0.7035083",
"0.7035083",
"0.6930696",
"0.69170517",
"0.6902187",
"0.6896812",
"0.687968",
"0.6845988",
"0.68274575",
"0.6810035",
"0.675057",
"0.6749938",
"0.6485926",
"0.6470273",
"0.64138275",
"0.6396021",
"0.6389931",
... | 0.84522706 | 0 |
Loads PaLM vocab only works internally. | def fGR1():
Tnh1 = Mkmy.sp_model
del Tnh1
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fGR1(YKHO, FYKK):\n CtWL = fGR1(FYKK)\n YKHO.vocab = CtWL\n YKHO.has_vocab = True",
"def fGR1(FYKK):\n return fJyn.Dictionary.load(FYKK)",
"def fGR1(pmON: str) -> zoYt:\n return ht2j.load(pmON, map_location=lambda S8SU, hksT: S8SU)['args'].vocab",
"def fGR1(CtWL):\n CtWL = [zFiD.split()... | [
"0.74547046",
"0.7163356",
"0.7048411",
"0.673345",
"0.6692046",
"0.6650584",
"0.66093504",
"0.6512217",
"0.65044004",
"0.6490185",
"0.6481662",
"0.647369",
"0.64578485",
"0.64502347",
"0.64196974",
"0.6409408",
"0.63728464",
"0.6166811",
"0.6137364",
"0.6061744",
"0.60443956... | 0.782089 | 0 |
Returns the pytree from a checkpoint file path. | def GCKv(V1C0):
with qJi5.Open(V1C0, 'rb') as ytgA:
WCPD = ytgA.read()
if WCPD.startswith(b'model_checkpoint_path'):
raise ValueError(f'Attempting to restore a TensorFlow checkpoint as a native T5X checkpoint. Path: {V1C0}')
return pIty.msgpack_restore(WCPD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gp1R(pmON, vauY):\n if vauY is not None:\n return vauY\n else:\n MVVZ = SC2F.glob(pmON + '/*.pt')\n if not MVVZ:\n raise AssertionError(f'Please ensure a checkpoint file (.pt) is present in folder {pmON}')\n elif len(MVVZ) > 1:\n raise AssertionError('Mul... | [
"0.6083149",
"0.60600823",
"0.5867521",
"0.5751019",
"0.5648478",
"0.5643851",
"0.56255007",
"0.56063",
"0.5599683",
"0.55895084",
"0.5570945",
"0.5542903",
"0.54789066",
"0.5448071",
"0.5443102",
"0.54409754",
"0.5418238",
"0.5418188",
"0.54128486",
"0.54072845",
"0.53696245... | 0.6173213 | 0 |
Splits an iterable into chunks of size n. | def Wc9F(OxJJ: Iterable[_T], exwG: int) -> jd6F[tuple[sb5H, ...], None, None]:
oHE7 = iter(OxJJ)
while True:
try:
yield tuple([next(oHE7) for bGrB in range(exwG)])
except StopIteration:
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KtkT(OxJJ, exwG=1):\n vC9B = len(OxJJ)\n for cXyw in range(0, vC9B, exwG):\n yield OxJJ[cXyw:min(cXyw + exwG, vC9B)]",
"def yOAJ(OxJJ, exwG):\n OxJJ = [tTpl for tTpl in OxJJ]\n O23F = int(epAf.ceil(len(OxJJ) / exwG))\n return [OxJJ[YRbF * O23F:(YRbF + 1) * O23F] for YRbF in range(exwG)]... | [
"0.84885985",
"0.8449931",
"0.83416164",
"0.83344704",
"0.8277892",
"0.8257809",
"0.82528317",
"0.8247746",
"0.824125",
"0.8226297",
"0.82259643",
"0.82184935",
"0.8208977",
"0.8184857",
"0.8184857",
"0.8184857",
"0.8184857",
"0.8184857",
"0.81651706",
"0.8160641",
"0.8158792... | 0.0 | -1 |
converts a timestamp to seconds | def YFKD(BWXx):
try:
return int(BWXx)
except ValueError:
pass
kUBT = DJWw.match(BWXx) or ESMI.match(BWXx)
if not kUBT:
raise ValueError
KCHu = 0
KCHu += int(kUBT.group('hours') or '0') * 60 * 60
KCHu += int(kUBT.group('minutes') or '0') * 60
KCHu += int(kUBT.group... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XYAA(E3oo):\n return int(E3oo.seconds) + 60 * int(E3oo.minutes) + 3600 * int(E3oo.hours) + float(int(E3oo.hours) / 1000)",
"def bQkZ(ITS7):\n return 3600 * ITS7",
"def jEKs(a1PO) -> float:\n return a1PO.astype(int) / 1000000000.0",
"def bQkZ(Wave, O66n, C6wh):\n return Wave * 60 ** 2 + O66n *... | [
"0.84017295",
"0.75573933",
"0.74558437",
"0.7085874",
"0.70557505",
"0.70189095",
"0.70137745",
"0.69444406",
"0.6938694",
"0.68768996",
"0.6874828",
"0.6825287",
"0.6779684",
"0.6731789",
"0.67272127",
"0.6722617",
"0.6683075",
"0.6654156",
"0.66440445",
"0.6640721",
"0.663... | 0.0 | -1 |
Gets all Todos resource. | def NMoC(YKHO):
u_Nx = {'todos': [{'id': 1, 'description': 'Create README file'}, {'id': 2, 'description': 'Publish to Github'}]}
return (u_Nx, qed_.OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u_Nx(YKHO):\n return cV6I(YKHO)",
"def Ag97(YKHO):\n if YKHO.is_new:\n return YKHO.get_yml_todos()\n else:\n return YKHO.get_db_todos()",
"def Ag97():\n u_Nx = [pPvV.to_dict() for pPvV in gx9E.query.all()]\n return (pz3A(u_Nx), 200)",
"def NMoC(YKHO):\n c5ow = lm8r.get_cur... | [
"0.75168145",
"0.6883351",
"0.68827796",
"0.6579338",
"0.65217936",
"0.6414708",
"0.63957435",
"0.6243867",
"0.60718876",
"0.5891086",
"0.5819834",
"0.5784376",
"0.5775382",
"0.57740855",
"0.5772143",
"0.567011",
"0.5657571",
"0.56499344",
"0.5645021",
"0.56344616",
"0.562194... | 0.6604196 | 3 |
Create an isoformat date string from this Date. | def aIUD(YKHO) -> str:
return YKHO.isoformat() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A4Zb(YKHO):\n return '%04d-%02d-%02d' % (YKHO._year, YKHO._month, YKHO._day)",
"def A4Zb(YKHO):\n KCHu = '{0:04}'.format(YKHO._year)\n if YKHO._month:\n KCHu += '-{0:02}'.format(YKHO._month)\n if YKHO._day:\n KCHu += '-{0:02}'.format(YKHO._day)\n return KCHu",
"def Net5... | [
"0.75414586",
"0.736134",
"0.71829635",
"0.71418405",
"0.7099204",
"0.6878252",
"0.6816845",
"0.6789153",
"0.6730386",
"0.6695931",
"0.66583467",
"0.66230786",
"0.6574283",
"0.650539",
"0.6443834",
"0.6401029",
"0.6397785",
"0.63933116",
"0.63633114",
"0.62939066",
"0.6256426... | 0.75690156 | 0 |
Create a date string from this Date using a format string. | def iSzb(YKHO, sI3h: str) -> str:
return YKHO.strftime(sI3h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mIri(YKHO, FMLJ):\n mXDZ = '%({})'.format(Pusg(lambda WKvO, LVAh: '{}|{}'.format(WKvO, LVAh), qVkX.keys()))\n for eHNT in ZbWC.findall(mXDZ, FMLJ):\n FMLJ = FMLJ.replace('%{}'.format(eHNT), qVkX[eHNT](YKHO))\n return FMLJ",
"def KL2v(Emd4, JvEs: str, sI3h: str) -> Qrp8:\n from .datetime_ i... | [
"0.6933965",
"0.68708915",
"0.68092424",
"0.6585816",
"0.6450375",
"0.63761795",
"0.6354226",
"0.6313782",
"0.63034517",
"0.62871087",
"0.6269514",
"0.62582916",
"0.6254345",
"0.6223545",
"0.6222153",
"0.6173694",
"0.613281",
"0.6124387",
"0.6120722",
"0.6117278",
"0.61069894... | 0.69485676 | 0 |
Create a humanreadable time string from this DateTime with several options. | def LYk5(YKHO, hp_G: bool=False, wyni: bool=True, Wkwm: bool=False) -> str:
CjKC, x0eS, lO87 = (YKHO.Day.with_suffix if Wkwm else YKHO.day, YKHO.Month.full if hp_G else YKHO.Month.short, YKHO.Year.with_century)
return ' '.join([str(ZfUD) for ZfUD in ((CjKC, x0eS, lO87) if wyni else (x0eS, CjKC, lO87))]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def scnb(YKHO):\n return f'{YKHO.year} {YKHO.month:02} {YKHO.start_day:02} {YKHO.start_hour:02} 00 {YKHO.get_duration():6}'",
"def d5tn(YKHO):\n i8WE = ITS7.localtime(YKHO._create_ts)\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', i8WE)",
"def zAg0(YKHO):\n LVAh, r8hN, Csk6 = (YKHO._year, YKHO._month,... | [
"0.7110949",
"0.6817784",
"0.6801233",
"0.6718882",
"0.6642093",
"0.66080934",
"0.6581386",
"0.6561189",
"0.6560545",
"0.6442802",
"0.6390975",
"0.63618034",
"0.63426423",
"0.6267777",
"0.626095",
"0.6247236",
"0.62433845",
"0.6239813",
"0.62271416",
"0.62006533",
"0.619565",... | 0.0 | -1 |
Create a Date from today at midnight. | def yo7_(Emd4, **B2fa: Any) -> Qrp8:
return Emd4.from_date(JRYC.date.today()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yo7_(Emd4):\n E3oo = ITS7.localtime()\n return Qrp8(E3oo[0], E3oo[1], E3oo[3], E3oo[6], E3oo[7])",
"def gVTZ() -> qcWV.date:\n return qcWV.date.today()",
"def kKWq() -> qcWV.date:\n return qcWV.today().date()",
"def yo7_():\n yo7_ = qcWV.utcnow()\n return qcWV(yo7_.year, yo7_.month, yo7... | [
"0.74099165",
"0.7333084",
"0.7278586",
"0.72465634",
"0.7152306",
"0.69251025",
"0.68287486",
"0.68287486",
"0.6661718",
"0.6661391",
"0.665765",
"0.6654856",
"0.6652682",
"0.6538258",
"0.6535921",
"0.6450293",
"0.6362922",
"0.6357925",
"0.6332802",
"0.6300479",
"0.627944",
... | 0.74643505 | 0 |
Create a Date from a time.date object. | def f_eo(Emd4, _c1T: dt.date) -> Qrp8:
return Emd4(_c1T.year, _c1T.month, _c1T.day) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HS3O(_c1T, ITS7):\n WGEB = qcWV.strptime(_c1T, '%Y-%m-%d').date()\n netS = qcWV.strptime(ITS7, '%H:%M').time()\n return qcWV.combine(WGEB, netS)",
"def OGYn(Emd4, _c1T):\n return Emd4(_c1T.year, _c1T.month, _c1T.day)",
"def UZOD(_c1T, ITS7=None):\n if ITS7 is None:\n ITS7 = JRYC.datet... | [
"0.7220657",
"0.6966645",
"0.6937123",
"0.67936563",
"0.6624508",
"0.6614254",
"0.65052974",
"0.64413595",
"0.63926005",
"0.6317461",
"0.62916887",
"0.6284789",
"0.6274759",
"0.6233129",
"0.6200301",
"0.6173724",
"0.6166902",
"0.6122965",
"0.6098339",
"0.6051661",
"0.59796745... | 0.7382172 | 0 |
Create a Date from a valid python object. Raises TypeError if an unsupported type is passed. Raises ValueError if an invalid instance of a supported type (like 'str' or 'int') is passed. | def DI_U(Emd4, iGAp: Union[dt.datetime, dt.date, int, str]) -> Qrp8:
if isinstance(iGAp, JRYC.datetime):
return Emd4(iGAp.year, iGAp.month, iGAp.day)
elif isinstance(iGAp, Emd4):
return iGAp
elif isinstance(iGAp, JRYC.date):
return Emd4.from_date(iGAp)
elif isinstance(iGAp, int):... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NTec(YEnM: 'Any') -> _c1T:\n if isinstance(YEnM, _c1T):\n return YEnM\n elif isinstance(YEnM, qcWV):\n return YEnM.date()\n elif isinstance(YEnM, (int, float)):\n return _c1T(1970, 1, 1) + fCoM(days=YEnM)\n elif isinstance(YEnM, str):\n for FMLJ in CKKT:\n try... | [
"0.7450836",
"0.6951005",
"0.6691249",
"0.66588193",
"0.63721585",
"0.6272691",
"0.61928105",
"0.6164889",
"0.61193395",
"0.60615635",
"0.60614127",
"0.6043271",
"0.5995233",
"0.59876716",
"0.5985614",
"0.59645593",
"0.5880631",
"0.5874277",
"0.58578247",
"0.58540434",
"0.584... | 0.6367289 | 5 |
Construct a `Search` instance from a draw dict containing the search body. | def jG8h(Emd4, Csk6):
KCHu = Emd4()
KCHu.update_from_dict(Csk6)
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, qHj0) -> 'SearchResult':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def eLpg(OaeV, pB3N):\n pB3N = mwdr(OaeV, pB3N)\n Mkmy = RyCZ(OaeV.obj['TOKEN'], OaeV.obj['DEBUG']).create(pB3N)\n k8wH.echo(wilB(Mkmy, OaeV.obj['PRETTY']))",
"def l_xx(YKHO):\n return YKHO.as_search().constru... | [
"0.57710487",
"0.56360793",
"0.5615689",
"0.55305743",
"0.55175436",
"0.5382924",
"0.5382924",
"0.52906585",
"0.52845085",
"0.5235228",
"0.522636",
"0.5198401",
"0.5188544",
"0.5185464",
"0.5156216",
"0.51433825",
"0.5136985",
"0.51216304",
"0.5109404",
"0.5091168",
"0.503521... | 0.4971267 | 73 |
Add sorting information to the search request. If called without arguments it will remove all sort requirements. Otherwise it will | def BA9O(YKHO, *sjXb):
KCHu = YKHO._clone()
KCHu._sort = []
for G1Hx in sjXb:
if isinstance(G1Hx, str) and G1Hx.startswith('-'):
G1Hx = {G1Hx[1:]: {'order': 'desc'}}
KCHu._sort.append(G1Hx)
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jpGc(a_r2='sort by ex. artist'):\n pass",
"def DbxN(qv1X, C3ST):\n xs48 = C3ST.relationships\n V_D6 = C3ST.all_fields\n NArs = qv1X.get_param_as_list('sort') or [auGi.config.SORT]\n NArs = [VRR0(xqoZ.lower()) for xqoZ in NArs]\n for xqoZ in NArs:\n uGAC(xqoZ, xs48)\n Gyce(xqoZ... | [
"0.66080487",
"0.6545593",
"0.6393814",
"0.6366594",
"0.6349183",
"0.6149911",
"0.6138048",
"0.6136657",
"0.6129322",
"0.60635847",
"0.60281175",
"0.6025556",
"0.602447",
"0.5989252",
"0.59840035",
"0.59762186",
"0.590449",
"0.58013254",
"0.5782561",
"0.5769298",
"0.5759062",... | 0.0 | -1 |
Timezones are often stored as abreviations such as EST. These are ambiguous, but should still be handled. See | def judo():
if not len(HSUp):
for s45I in map(str.split, swNh.split('\n')):
_hcX = int(float(s45I[0]) * 3600)
for HnAh in s45I[1:]:
HSUp[HnAh] = _hcX
return HSUp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI():\n pass",
"def Bnmt(YKHO):\n __Xe = mv1M.objects.create()\n CBIr = exMx.objects.create(user=__Xe)\n cwMg = rIAI.datetime.today()\n cwMg = rIAI.datetime(year=cwMg.year, month=cwMg.month, day=cwMg.day)\n fH6P = rIAI.make_aware(cwMg + rIAI.timedelta(hours=23), timezone=FXGE.timezone('US... | [
"0.69378114",
"0.69220954",
"0.6883536",
"0.67076755",
"0.6446923",
"0.64340466",
"0.6388828",
"0.6376133",
"0.6367042",
"0.63650316",
"0.6356866",
"0.6356866",
"0.6356866",
"0.6356866",
"0.6356866",
"0.6356866",
"0.6356866",
"0.6356866",
"0.6356866",
"0.6356866",
"0.6356866"... | 0.5615681 | 79 |
Convert a timezone relative datetime a to nonrelative utc datetime. | def Zt6_(JRYC):
if JRYC.tzinfo:
if JRYC.tzinfo._offset >= qcWV.timedelta(1):
JRYC.tzinfo._offset -= qcWV.timedelta(1)
JRYC += qcWV.timedelta(1)
elif JRYC.tzinfo._offset <= qcWV.timedelta(-1):
JRYC.tzinfo._offset += qcWV.timedelta(1)
JRYC -= qcWV.timede... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s6Dy(JRYC: datetime) -> qcWV:\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=oEnn())\n return JRYC.astimezone(oEnn())",
"def S0gT(JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=FXGE.utc)\n else:\n return JRYC.astimezone(FXGE.utc)",
"def W8tu(YKHO, JRY... | [
"0.7210858",
"0.71615225",
"0.7091327",
"0.7077078",
"0.7048212",
"0.70145214",
"0.7007961",
"0.69734097",
"0.69734097",
"0.69734097",
"0.693837",
"0.6934955",
"0.6908958",
"0.69082457",
"0.6906368",
"0.6901625",
"0.68752646",
"0.6771138",
"0.67469096",
"0.67440575",
"0.67392... | 0.7210598 | 1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj, gwAu, bYD2, RvCN):
tspZ = bYD2 * RvCN ** (qtWj // gwAu)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ
return tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.7913536",
"0.7906521",
"0.7849834",
"0.777524",
"0.77338326",
"0.77306354",
"0.7722718",
"0.77224237",
"0.771982",
"0.77092624",
"0.7693604",
"0.76742035",
"0.7665748",
"0.7665748",
"0.7665748",
"0.7655329",
"0.76419765",
"0.76399755",
"0.7637868",
"0.7626077",
"0.76247585... | 0.757343 | 34 |
Returns a set of MotionAction(s) that are valid to be executed from robot pose (i.e. they will not bump into obstacles). The validity is determined under the assumption that the robot dynamics is deterministic. | def kBNo(YKHO, MYdN, YHnc, Y2OV):
QTBn = KH0i(YKHO._obstacle_states)
QTBn.set_object_state(MYdN, x1cL(MYdN, YHnc, None, None))
deVW = set({})
for wlcO in Y2OV:
if not isinstance(wlcO, VJMy):
raise ValueError('This (%s) is not a motion action' % str(wlcO))
Vq0t = n0sa.if_move_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sXMf(oeNL, rM81):\n hOfQ = [False] * len(osS0.Actions)\n for or8S, XeOP in enumerate(osS0.Actions[:-1]):\n deVW = RIUO(oeNL + osS0.ACTIONS_TO_MOVES[XeOP])\n if deVW:\n hOfQ[or8S] = True\n return oyIN.array(hOfQ)",
"def hOfQ(YKHO):\n wVjn = []\n for d6pt, n294 in enumer... | [
"0.7243671",
"0.6776928",
"0.67530525",
"0.64807683",
"0.62983394",
"0.6268939",
"0.62421227",
"0.62382",
"0.6225572",
"0.6219347",
"0.61160934",
"0.6113396",
"0.61110914",
"0.6083935",
"0.60742635",
"0.60727865",
"0.6024543",
"0.60100716",
"0.59611654",
"0.5959929",
"0.59446... | 0.7322208 | 0 |
Returns a state object for the current thread state. | def QTBn(YKHO):
if YKHO._thread.breakpoint and YKHO._thread.pc in YKHO._process.threads._breakpoint_original_bytes:
S0MI.warning("Overwriting current breakpoint in memory so it doesn't trip up angr.")
S0MI.warning('This has the side-effect of disabling this breakpoint. You can re-enable manually.')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__state",
"def bGIA(YKHO):\n return YKHO.__stat... | [
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864",
"0.74767864"... | 0.0 | -1 |