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
Convert the given length to this unit system.
def rIrH(YKHO, aj9W: float | None, lnes: str) -> float: if not isinstance(aj9W, KUXB): raise TypeError(f'{aj9W!s} is not a numeric value.') return N1PR.convert(aj9W, lnes, YKHO.accumulated_precipitation_unit)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rZ_k(YKHO, tvqc):\n try:\n izFS, t1WD = (float('0' + str(YKHO.v.get())), YKHO.dropdown.get())\n K6ku = {'angstroms': 10 ** (-10), 'au': 149598550000.0, 'barleycorns': 0.008467, 'cables': 182.88, 'centimeters': 0.01, 'chains': 20.11684, 'decimeters': 0.1, 'ells': 0.875, 'ems': 0.004233, 'fathom...
[ "0.6670528", "0.66462547", "0.6538739", "0.65376264", "0.6306371", "0.6266917", "0.62175375", "0.61862123", "0.60758966", "0.60726297", "0.57924855", "0.5782921", "0.5779073", "0.5777692", "0.57317674", "0.5725653", "0.57113177", "0.5657724", "0.56575876", "0.56210715", "0.56...
0.0
-1
Convert the given pressure to this unit system.
def CJ2p(YKHO, CJ2p: float | None, lnes: str) -> float: if not isinstance(CJ2p, KUXB): raise TypeError(f'{CJ2p!s} is not a numeric value.') return UweZ.convert(CJ2p, lnes, YKHO.pressure_unit)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def set_pressure(YKHO, CJ2p: str) -> R29p.Quantity:\n try:\n float(CJ2p)\n except ValueError:\n pass\n else:\n bo34.warning('No units provided to set_pressure, assuming mbar.')\n CJ2p = CJ2p + 'mbar'\n return g_7g.Quantity(CJ2p)", "def JTHz(YKHO, tvqc):\n try:\n ...
[ "0.6652109", "0.66339236", "0.62720007", "0.61590123", "0.6077406", "0.60663325", "0.6018506", "0.5881737", "0.5860045", "0.5814669", "0.5710054", "0.57037246", "0.5678668", "0.56356466", "0.56356466", "0.56356466", "0.56026274", "0.5590976", "0.5579915", "0.5566469", "0.5563...
0.6949114
0
get u from time
def xe8Y(YKHO, a1PO): if a1PO < YKHO.time_final: YRbF = oyIN.abs(YKHO.t_sol - a1PO).argmin() P6bq = YKHO.u_sol[YRbF, :] else: P6bq = YKHO.ubar return P6bq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ITS7(YKHO, P6bq):\n return YKHO._ll_tree.get_time(P6bq)", "def m7L9(YKHO):\n return '%02u:%02u:%02u (%d)' % YKHO.rtc.datetime()[4:8]", "def DCor():\n C6wh = fCoM(seconds=int(ITS7.time() - SWox))\n Csk6 = qcWV(1, 1, 1) + C6wh\n return '%dD:%dH:%dM:%dS' % (Csk6.day - 1, Csk6.hour, Csk6.minute,...
[ "0.76406306", "0.6499333", "0.62756634", "0.6248426", "0.62467057", "0.6226869", "0.6211265", "0.6151163", "0.6135651", "0.6134488", "0.61249197", "0.61018676", "0.60952395", "0.6094671", "0.608546", "0.60584384", "0.6053521", "0.6022374", "0.6012883", "0.6012883", "0.6011582...
0.57993203
46
Darknet Convolution2D followed by BatchNormalization and LeakyReLU.
def xRTZ(*qIxc, **B2fa): _Eb8 = {'use_bias': False} _Eb8.update(B2fa) return capf(v9Xb(*qIxc, **_Eb8), GVKG(), ybb1(alpha=0.1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MBDB(*qIxc, **B2fa):\n _Eb8 = {'use_bias': False}\n _Eb8.update(B2fa)\n return capf(ND0_(*qIxc, **_Eb8), r1No(), ybb1(alpha=0.1))", "def acd3(*qIxc, **B2fa):\n _Eb8 = {'use_bias': False}\n _Eb8.update(B2fa)\n return capf(ND0_(*qIxc, **_Eb8), r1No(), MroH(vpws))", "def PbqX():\n return ...
[ "0.72769314", "0.69703734", "0.68800706", "0.6808079", "0.6775198", "0.66250277", "0.6619191", "0.6596903", "0.6548156", "0.6438889", "0.6412645", "0.6403083", "0.6384412", "0.6384063", "0.6368069", "0.63608307", "0.63480204", "0.6341501", "0.6320468", "0.6317373", "0.6316059...
0.64908445
9
Create YOLO_V3 model CNN body in Keras.
def R4qF(g4y1, HT_T, jTqs): RSpz = wOed(g4y1, PbqX(g4y1)) WKvO, si3g = aAFM(RSpz.output, 512, HT_T * (jTqs + 5)) WKvO = capf(xRTZ(256, (1, 1)), wJ8e(2))(WKvO) WKvO = xlGu()([WKvO, RSpz.layers[148].output]) WKvO, skBL = aAFM(WKvO, 256, HT_T * (jTqs + 5)) WKvO = capf(xRTZ(128, (1, 1)), wJ8e(2))(WK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQs7(EZd9):\n C3ST = ileL()\n C3ST.add(GVLU(input_shape=EZd9[1:], filters=64, kernel_size=6, data_format='channels_first'))\n C3ST.add(lARV(0.2))\n C3ST.add(GVLU(filters=64, kernel_size=3, padding='valid', data_format='channels_first'))\n C3ST.add(ReZh(pool_size=(2, 2, 2), strides=None, padding=...
[ "0.7000937", "0.6814621", "0.6803811", "0.68015534", "0.67773974", "0.67460144", "0.6714797", "0.6638663", "0.6617054", "0.6589045", "0.65775615", "0.65713036", "0.65538025", "0.65469056", "0.6522481", "0.64997536", "0.6484227", "0.64808244", "0.6478727", "0.6426085", "0.6413...
0.66727483
7
Convert final layer features to bounding box parameters.
def j_fo(LyKa, qvIa, jTqs, exwG): HT_T = len(qvIa) EGRg = nMvt.reshape(nMvt.constant(qvIa), [1, 1, 1, HT_T, 2]) KGVh = nMvt.shape(LyKa)[1:3] gjGP = nMvt.arange(0, stop=KGVh[0]) m7R6 = nMvt.arange(0, stop=KGVh[1]) gjGP = nMvt.tile(gjGP, [KGVh[1]]) m7R6 = nMvt.tile(nMvt.expand_dims(m7R6, 0), [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fWWM(bySB):\n h3cg = bySB['image/object/bbox/ymin'].values\n BQGg = bySB['image/object/bbox/xmin'].values\n Z3uP = bySB['image/object/bbox/ymax'].values\n bYzl = bySB['image/object/bbox/xmax'].values\n return ZylS.transpose([h3cg, BQGg, Z3uP, bYzl])", "def olTr(YKHO):\n if YKHO.bbox is not ...
[ "0.7014735", "0.63791776", "0.630396", "0.6226149", "0.6146508", "0.6130948", "0.61238664", "0.61238664", "0.61097616", "0.60883397", "0.60687864", "0.6041045", "0.6035037", "0.5999887", "0.59981453", "0.599375", "0.59856915", "0.59845275", "0.59782374", "0.59268117", "0.5925...
0.0
-1
Convert YOLO box predictions to bounding box corners.
def xZPR(mZ3_, FWeA): KjRz = mZ3_ - FWeA / 2.0 iesS = mZ3_ + FWeA / 2.0 return nMvt.concatenate([KjRz[..., 1:2], KjRz[..., 0:1], iesS[..., 1:2], iesS[..., 0:1]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GSU9(mZ3_, FWeA):\n KjRz = mZ3_ - FWeA / 2.0\n iesS = mZ3_ + FWeA / 2.0\n return nMvt.concatenate([KjRz[..., 1:2], KjRz[..., 0:1], iesS[..., 1:2], iesS[..., 0:1]])", "def xZPR(mZ3_, FWeA):\n KjRz = mZ3_ - FWeA / 2.0\n iesS = mZ3_ + FWeA / 2.0\n return ZylS.concat([KjRz[..., 1:2], KjRz[..., ...
[ "0.6786762", "0.6678438", "0.66167235", "0.62608075", "0.62465745", "0.61667407", "0.61380535", "0.6099331", "0.5994448", "0.598241", "0.59424794", "0.58903325", "0.58597636", "0.5851628", "0.5850366", "0.5840755", "0.58114934", "0.580946", "0.5795982", "0.57877517", "0.57852...
0.6826108
0
Get a random element from the set.
def UIrZ(YKHO) -> int: zNig = len(YKHO.value_set) if zNig > 0: from random import randint WKvO = randint(1, zNig) return YKHO.values[WKvO - 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UIrZ(YKHO):\n return YKHO.nums[tuKI.randint(0, len(YKHO.nums) - 1)]", "def UIrZ(YKHO):\n exwG = len(YKHO.keys)\n while exwG > 0:\n d6pt = tuKI.randint(0, exwG - 1)\n Ufrw = YKHO.keys[d6pt]\n if Ufrw in YKHO.ds:\n return Ufrw\n else:\n YKHO.keys[d6pt]...
[ "0.77060276", "0.738916", "0.7296881", "0.72187954", "0.6871744", "0.68453854", "0.68330806", "0.67740154", "0.67226046", "0.6703282", "0.6665089", "0.66356236", "0.66217655", "0.6612035", "0.6567767", "0.6477719", "0.6462421", "0.64428514", "0.64162946", "0.6400411", "0.6398...
0.66000897
14
Returns a String representation of this node.
def zAg0(YKHO): return 'BinarySearchTreeNode(' + str(YKHO.element) + ')'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return 'Node Name: ' + str(YKHO.name) + '\\n' + 'Node Attributes: ' + str(YKHO.attributes) + '\\n' + 'Incident Edges: ' + '\\n'.join([D70y.__str__() for D70y in YKHO.incident_edges]) + '\\n'", "def zAg0(YKHO):\n return 'Node Name: ' + str(YKHO.name) + '\\n' + 'Node Attributes: ' + str(YKH...
[ "0.8291988", "0.8291988", "0.82533664", "0.8191103", "0.8079578", "0.80739796", "0.80497724", "0.804564", "0.79801595", "0.79225874", "0.7911872", "0.7892363", "0.78823924", "0.7861754", "0.78566617", "0.7829123", "0.78088105", "0.77361065", "0.773497", "0.7688711", "0.765610...
0.0
-1
Returns a String representation of this node.
def wHJl(YKHO): return str(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return 'Node Name: ' + str(YKHO.name) + '\\n' + 'Node Attributes: ' + str(YKHO.attributes) + '\\n' + 'Incident Edges: ' + '\\n'.join([D70y.__str__() for D70y in YKHO.incident_edges]) + '\\n'", "def zAg0(YKHO):\n return 'Node Name: ' + str(YKHO.name) + '\\n' + 'Node Attributes: ' + str(YKH...
[ "0.8291988", "0.8291988", "0.82533664", "0.8191103", "0.8079578", "0.80739796", "0.80497724", "0.804564", "0.79801595", "0.79225874", "0.7911872", "0.7892363", "0.78823924", "0.7861754", "0.78566617", "0.7829123", "0.78088105", "0.77361065", "0.773497", "0.7688711", "0.765610...
0.74894565
44
Get the node in left Returns
def gEGd(YKHO): return YKHO.left
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LFlW(YKHO, Q6kx):\n if YKHO._col(Q6kx.count) > 0:\n return YKHO.nodes[Q6kx.count - 1]\n else:\n return None", "def urqV(Q6kx):\n return 2 * Q6kx + 1", "def gEGd(YKHO):\n return bBBw.or_none(YKHO.left)", "def gEGd(YKHO):\n return YKHO.__left", "def LFlW(YKHO):\n return YK...
[ "0.8266706", "0.8181526", "0.8121266", "0.80485576", "0.7981654", "0.7856588", "0.7795719", "0.7795719", "0.7756437", "0.76558304", "0.7613392", "0.7586135", "0.7560027", "0.7547983", "0.7500931", "0.7464654", "0.74285597", "0.73867786", "0.73867786", "0.73559", "0.7345297", ...
0.81041837
3
Check if there is a left node Returns Boolean True if this node has a left node, False otherwise
def RzNo(YKHO): return YKHO.left != None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RzNo(YKHO):\n return YKHO.__left != None", "def PSau(YKHO):\n if YKHO.parent is None:\n return None\n else:\n return YKHO is YKHO.parent.left", "def fpuL(YKHO):\n return YKHO.left", "def RzNo(YKHO):\n return YKHO.l is not None", "def RzNo(YKHO, dQgj):\n return YKHO.left_...
[ "0.8452011", "0.8218997", "0.81602395", "0.8051771", "0.7943002", "0.7887608", "0.7633336", "0.75017947", "0.7456436", "0.7453908", "0.72634757", "0.719522", "0.7152842", "0.7035977", "0.69829607", "0.6890689", "0.68843067", "0.6857836", "0.68354315", "0.6823545", "0.67718804...
0.8503447
0
Check if there is a right node Returns Boolean True if this node has a right node, False otherwise
def Hu5_(YKHO): return YKHO.right != None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hu5_(YKHO):\n return YKHO.__right != None", "def Hu5_(YKHO):\n return YKHO.r is not None", "def Hu5_(YKHO, dQgj):\n return YKHO.right_child(dQgj) is not None", "def Dhlx(YKHO):\n return YKHO.right", "def sD6b(YKHO):\n if YKHO.parent == None:\n return False\n return YKHO.parent....
[ "0.82744443", "0.80768716", "0.799553", "0.767467", "0.7664969", "0.7276706", "0.72104865", "0.7195391", "0.7141292", "0.7041455", "0.68037605", "0.6722828", "0.6719649", "0.6683277", "0.66723096", "0.6653542", "0.6602737", "0.6491335", "0.64379066", "0.6428469", "0.64243644"...
0.83415973
0
Check if this node is a left child. Returns Boolean True if this node is a Left child, False otherwise
def GYkL(YKHO): if YKHO.parent == None: return False return YKHO.parent.left == YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GYkL(YKHO):\n GYkL = False\n _AKB = YKHO.get_parent()\n if _AKB is not None:\n GYkL = _AKB.get_left() == YKHO\n return GYkL", "def PSau(YKHO):\n if YKHO.parent is None:\n return None\n else:\n return YKHO is YKHO.parent.left", "def RzNo(YKHO, dQgj):\n return YKHO.l...
[ "0.86834097", "0.8252207", "0.81634355", "0.81033516", "0.7756187", "0.77090186", "0.75064105", "0.73689735", "0.7367423", "0.7285645", "0.72672045", "0.7069587", "0.70231384", "0.69660443", "0.6911641", "0.68435735", "0.6837624", "0.67881703", "0.67812175", "0.6779749", "0.6...
0.875686
0
Check if this node is a right child. Returns Boolean True if this node is a right child, False otherwise
def sD6b(YKHO): if YKHO.parent == None: return False return YKHO.parent.right == YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sD6b(YKHO):\n sD6b = False\n _AKB = YKHO.get_parent()\n if _AKB is not None:\n sD6b = _AKB.get_right() == YKHO\n return sD6b", "def Hu5_(YKHO, dQgj):\n return YKHO.right_child(dQgj) is not None", "def Hu5_(YKHO):\n return YKHO.right != None", "def Dhlx(YKHO):\n return YKHO.rig...
[ "0.8800208", "0.8230735", "0.7642522", "0.7597405", "0.7575094", "0.73211753", "0.726169", "0.7253628", "0.71304727", "0.7090633", "0.69669855", "0.67735183", "0.67693514", "0.67012644", "0.66908145", "0.6678091", "0.66195977", "0.65199625", "0.6487182", "0.64120066", "0.6392...
0.8847885
0
Add new child node for this move remove m from list of untried_moves. Return the added child node.
def ZIWp(YKHO, BZN_, QTBn, xf49): Q6kx = o7DN(Move=BZN_, state=QTBn, isGameOver=xf49, parent=YKHO) YKHO.untried_moves.remove(BZN_) YKHO.child.append(Q6kx) return Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M4sg(YKHO, r8hN, KCHu):\n exwG = o7DN(move=r8hN, parent=YKHO, state=KCHu)\n YKHO.untried_moves.remove(r8hN)\n YKHO.child_nodes.append(exwG)\n return exwG", "def ZIWp(YKHO, r8hN, KCHu):\n exwG = o7DN(move=r8hN, parent=YKHO, state=KCHu)\n YKHO.untriedMoves.remove(r8hN)\n YKHO.childNodes.ap...
[ "0.78564954", "0.75309515", "0.75309515", "0.68633735", "0.6787122", "0.6705781", "0.6516797", "0.6291655", "0.6028146", "0.5708837", "0.5531847", "0.5402255", "0.5396621", "0.53821003", "0.5376219", "0.5351933", "0.5319961", "0.5271597", "0.51948035", "0.5180786", "0.5155151...
0.71495616
3
Acquisition end time, as a python time or datetime object. `acquisition_end_time` is taken from the $ETIM keyword parameter in the TEXT segment of the FCS file. If date information is also found, `acquisition_end_time` is a datetime object with the acquisition date. If not, `acquisition_end_time` is a datetime.time obj...
def WTQe(YKHO): return YKHO._acquisition_end_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dgoV(YKHO) -> qcWV:\n if YKHO._scenario == JxQ3.Scenario.ValidSince:\n raise Wbvg(\"timeEnd not defined for scenario 'ValidSince'\")\n return YKHO._lic.params['timeEnd'].value", "def C7pn(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'end_time')", "def C7pn(YKHO) -> h8nf[qe4Y.Input[str]]:\n ...
[ "0.6776973", "0.67281276", "0.6718161", "0.66283387", "0.66228485", "0.66228485", "0.6568629", "0.6546321", "0.646039", "0.6458155", "0.6410434", "0.63802314", "0.62897855", "0.62298214", "0.6216701", "0.6216701", "0.6216701", "0.6216701", "0.6216701", "0.6216701", "0.6214385...
0.6902065
0
The name of the channels contained in `FCSData`.
def xMux(YKHO): return YKHO._channels
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ODiI(YKHO):\n SS7a = ('Neutral', 'BBC1', 'BBC2', 'ITV', 'Channel 4', 'Channel 5')\n R5yJ = SS7a[YKHO.channel]\n return R5yJ", "def nvpa(AgwO):\n fHmP = AgwO.GetSizeC()\n U5bT = []\n for YRbF in range(fHmP):\n mWFP = AgwO.GetChannelName(YRbF)\n U5bT.append(mWFP)\n return U5b...
[ "0.7196674", "0.71135443", "0.6969351", "0.67643434", "0.6583998", "0.6531709", "0.6453464", "0.6431921", "0.6379767", "0.6379767", "0.6379767", "0.6379767", "0.6379767", "0.6379767", "0.6379767", "0.6379767", "0.6379767", "0.6379767", "0.6379767", "0.6379767", "0.6379767", ...
0.5646401
54
if y = f(ab), then dy/da = f'(ab) b
def ZD5u(YKHO, ICX2: Tensor) -> llWB: YKHO.b_grad = oyIN.sum(ICX2, axis=0) YKHO.w_grad = YKHO.inputs.T @ ICX2 return ICX2 @ YKHO.w.T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYKK(jzdc, LVAh):\n return 0.5 * oyIN.linalg.norm(jzdc - LVAh) ** 2", "def eHNT(LVAh):\n G1Hx = 1.0\n return LVAh * (1 - LVAh)", "def JfyU(WKvO, eHNT, ytgA):\n return oyIN.sqrt((1 + ytgA(WKvO) ** 2) / (2 * Oa1e * eHNT(WKvO)))", "def eHNT(a1PO, LVAh):\n return EhIg * LVAh", "def eHNT(epBp...
[ "0.6806588", "0.67754924", "0.6533475", "0.65239465", "0.6343497", "0.6326029", "0.6315155", "0.6309114", "0.6250414", "0.6245013", "0.6226546", "0.61594445", "0.614734", "0.61399615", "0.6118182", "0.61175346", "0.6117179", "0.61162466", "0.6064573", "0.60514385", "0.6014878...
0.0
-1
Get total area of all tile indices specified in a list.
def CUAw(owcC, cuiw): SFMY, eNSt = (0, 0) for rdlD in cuiw.query(RLs9).filter(RLs9.tile_index.in_(owcC)): SFMY += rdlD.building_area_ml eNSt += rdlD.building_area_osm return (SFMY, eNSt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ILBk(JnVq):\n return XTiz.array([ZrLT(JnVq[YRbF]) for YRbF in range(len(JnVq.keys()))])", "def f0tD(w_3R):\n if len(w_3R) == 1:\n return w_3R[0] * w_3R[0]\n elif len(w_3R) == 2:\n return w_3R[0] * w_3R[1]\n else:\n raise ValueError", "def jZuO(g4y1):\n wjRY = 0\n g4y1...
[ "0.6270175", "0.61464286", "0.61337996", "0.6116405", "0.6088713", "0.6076375", "0.60678476", "0.6043014", "0.6015344", "0.601369", "0.6001085", "0.58745104", "0.5868182", "0.58441234", "0.5834597", "0.5828097", "0.5824046", "0.5824019", "0.581013", "0.58012897", "0.5787106",...
0.7806504
0
Adds trailing slash (if needed) necessary for pathprefix
def LKyM(): return Hy7s.path.join(SAs9.deploy.http_root, '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fRAO(pmON):\n if len(pmON) > 0:\n if pmON[len(pmON) - 1] == '/':\n return pmON\n else:\n return pmON + '/'\n else:\n return pmON + '/'", "def KbHS(pmON):\n if len(pmON) > 0:\n if pmON[len(pmON) - 1] == '/':\n return pmON[0:-1]\n els...
[ "0.78178227", "0.7040311", "0.69666165", "0.67129457", "0.6707802", "0.6658162", "0.6609265", "0.6604214", "0.6496019", "0.6462296", "0.64223737", "0.6406034", "0.6382311", "0.6335334", "0.6305823", "0.6254839", "0.6242467", "0.6230016", "0.62023354", "0.61835104", "0.6161932...
0.0
-1
Return file relative path to CONF.deploy.http_root
def ShUM(qaEx): return Hy7s.path.relpath(qaEx, LKyM())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LKyM():\n return Hy7s.path.join(SAs9.deploy.http_root, '')", "def j193() -> str:\n if '--develop' in HwRy.argv:\n return ZCws._get_real_path('public') + '/'\n return ZCws._get_real_path('build') + '/'", "def m68C() -> str:\n PSrQ.__get()\n assert PSrQ.__config is not None\n return ...
[ "0.7876288", "0.67677426", "0.67573947", "0.67458016", "0.6736677", "0.6667319", "0.6615886", "0.6596041", "0.65944177", "0.65932536", "0.6570204", "0.65567654", "0.65524304", "0.65293", "0.6512645", "0.6503641", "0.6495014", "0.64725935", "0.6442347", "0.6441308", "0.6437111...
0.7450004
1
This function will load the caffe model that we will use for detecting a human_blob, and then set the preferable target to the correct target.
def U0uz(YKHO): print('Loading caffe model used for detecting a human_blob.') YKHO.detector = XC5k.dnn.readNetFromCaffe(prototxt='human_detection_model/MobileNetSSD_deploy.prototxt.txt', caffeModel='human_detection_model/MobileNetSSD_deploy.caffemodel') YKHO.detector.setPreferableTarget(EcCE.preferable_targ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xKx2(tEZ3, begE):\n DMw4 = tEZ3['name']\n y1k8 = tEZ3['weights']\n if DMw4 == 'imagenet_swav':\n C3ST = FYrf.resnet50(pretrained=False)\n C3ST.fc = ht2j.nn.Identity()\n xA7f = ht2j.load(y1k8, map_location='cpu')\n xA7f = {G1Hx.replace('module.', ''): Ty9i for G1Hx, Ty9i in ...
[ "0.6256075", "0.60586816", "0.59366816", "0.58215976", "0.58113027", "0.5756603", "0.57422817", "0.5735567", "0.5632396", "0.5629319", "0.5626558", "0.56104046", "0.56073666", "0.5607243", "0.560487", "0.5601525", "0.55759776", "0.5566809", "0.5552113", "0.5545482", "0.554111...
0.7959105
0
Tests when we go to the welcome url it loads the welcome view
def WEnv(YKHO): uthR = xBs1(gxEw('managealumni:welcome')) return YKHO.assertEqual(uthR.func.__name__, WsMo.__name__)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uthR(YKHO):\n if YKHO.user:\n return YKHO.render('welcome.html')\n YKHO.redirect('/register')", "def uthR(QePW):\n return igJ6('Welcome from Site')", "def j3Yc():\n return vKnz('/static/welcome.html')", "def NMoC(YKHO):\n if YKHO.user:\n YKHO.render('welcome.html', username=Y...
[ "0.74080044", "0.72399986", "0.71286726", "0.71176225", "0.6983478", "0.6920026", "0.6920026", "0.6734718", "0.6733647", "0.67083305", "0.6688498", "0.664293", "0.6634933", "0.6626609", "0.653521", "0.651643", "0.6512423", "0.65058875", "0.6498859", "0.6489529", "0.6486775", ...
0.7603674
0
Function to perform a gnomonic projection on a sphere of points of a plane.
def RlcZ(XtxY, rVnq, WKvO, LVAh): oZuG = (WKvO ** 2 + LVAh ** 2) ** 0.5 Z9rn = oyIN.arctan(oZuG) gYZ3 = WKvO * oyIN.sin(Z9rn) gYZ3 /= oZuG * oyIN.cos(rVnq) * oyIN.cos(Z9rn) - LVAh * oyIN.sin(rVnq) * oyIN.sin(Z9rn) gYZ3 = XtxY + oyIN.arctan(gYZ3) upem = oyIN.cos(Z9rn) * oyIN.sin(rVnq) upem +=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rv9d(XtxY, upem, gYZ3, rVnq):\n nzzz = oyIN.sin(upem) * oyIN.sin(rVnq)\n nzzz += oyIN.cos(upem) * oyIN.cos(rVnq) * oyIN.cos(gYZ3 - XtxY)\n WKvO = oyIN.cos(rVnq) * oyIN.sin(gYZ3 - XtxY)\n WKvO /= nzzz\n LVAh = oyIN.cos(upem) * oyIN.sin(rVnq)\n LVAh -= oyIN.sin(upem) * oyIN.cos(rVnq) * oyIN.cos...
[ "0.6797266", "0.66344917", "0.64777976", "0.6369328", "0.6367009", "0.61759984", "0.6168496", "0.60970324", "0.60864496", "0.60579985", "0.601673", "0.60148984", "0.60132277", "0.6003982", "0.59006894", "0.5888742", "0.5850808", "0.58436984", "0.58426523", "0.5841092", "0.582...
0.6882025
0
Returns the NSPoint of the rightmost intersection with the baseline.
def d1J4(yb3l): S3Om = 1 sVZ5 = yb3l.bounds.origin.x - S3Om A4Z7 = M720(sVZ5, 0.0) D9wQ = sVZ5 + yb3l.bounds.size.width + S3Om AbJD = M720(D9wQ, 0.0) ZDXA = pFix(yb3l, A4Z7, AbJD) print('intersectionOnBaseline:', ZDXA, A4Z7, AbJD) if ZDXA: Ozms = ZDXA[-2].pointValue() ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _tIi(YKHO):\n return YKHO.points['topRight'].x", "def _tIi(YKHO):\n return YKHO.points['topRight'].x", "def Oe84(YKHO):\n YKHO._updateExtents()\n return (YKHO._mMaxX, YKHO._mMinY)", "def lOGt(YKHO) -> NTRO:\n yKcO = PvyL(YKHO.shape.right_bound, YKHO.shape.top_bound)\n return NTRO(yKcO, ...
[ "0.5926043", "0.5926043", "0.58119345", "0.57971543", "0.5672867", "0.56642306", "0.5607061", "0.5522033", "0.551393", "0.55041677", "0.5503997", "0.548169", "0.54784906", "0.54652107", "0.5458439", "0.54455906", "0.5410307", "0.5391617", "0.53753906", "0.53621024", "0.536009...
0.7168148
0
Check if the field_name field is a valid user.
def slIf(vXX7): @z9nL(vXX7) def b6ry(YKHO): """Decorator wrapper method. """ fE5u = c5Zq(vXX7)(YKHO) BFbM = bu6c.getFromKeyFields({'link_id': fE5u}) if not BFbM: raise H6V6.ValidationError('This user does not exist.') return BFbM return b6ry
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z3WL(YKHO, Jyyj):\n if mv1M.query.filter_by(username=Jyyj.data).first():\n raise sUXu('Username already in use.')", "def Z3WL(YKHO, NvFm):\n if mv1M.get_by_username(NvFm.data):\n raise sUXu('This username is already taken.')", "def Zs5O(L03z, Jyyj):\n NtEF = Jyyj.data\n CBIr = Nc2...
[ "0.7212673", "0.70796436", "0.6978678", "0.6972315", "0.6951979", "0.6951052", "0.69260347", "0.6917713", "0.6860696", "0.6784827", "0.67585427", "0.67394245", "0.6690567", "0.66882473", "0.6684545", "0.6666737", "0.65888906", "0.65641105", "0.6563912", "0.6559857", "0.654989...
0.63284314
45
Check if the field_name field is a valid user and is not equal to the current user.
def XFju(vXX7): @z9nL(vXX7) def b6ry(YKHO): """Decorator wrapper method. """ quKd = slIf(vXX7) BFbM = quKd(YKHO) YIj3 = bu6c.getCurrentUser() if BFbM.key() == YIj3.key(): raise H6V6.ValidationError('You cannot enter yourself here.') return BFbM ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z3WL(YKHO, Jyyj):\n if mv1M.query.filter_by(username=Jyyj.data).first():\n raise sUXu('Username already in use.')", "def abMM(vXX7):\n\n @z9nL(vXX7)\n def b6ry(YKHO):\n \"\"\"Decorator wrapper method.\n \"\"\"\n YtF6 = YKHO.cleaned_data.get(vXX7).lower()\n RGrh = DW23....
[ "0.695105", "0.69149786", "0.6637322", "0.6575774", "0.6573968", "0.65097433", "0.65089965", "0.64932936", "0.64925766", "0.6458666", "0.64563656", "0.6427139", "0.6398337", "0.6388755", "0.63648266", "0.6345251", "0.6330887", "0.63149107", "0.6292026", "0.6290428", "0.628893...
0.71450865
0
Check if the field_name value contains an email address that hasn't been used for an existing account.
def abMM(vXX7): @z9nL(vXX7) def b6ry(YKHO): """Decorator wrapper method. """ YtF6 = YKHO.cleaned_data.get(vXX7).lower() RGrh = DW23.User(YtF6) V_D6 = {'account': RGrh} BFbM = bu6c.getForFields(V_D6, unique=True) if BFbM or bu6c.isFormerAccount(RGrh): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bt7w(YKHO, nPrm, vXX7):\n Ys3F = mv1M.objects.filter(email__iexact=nPrm['email'])\n if Ys3F.exists():\n raise V_D6.ValidationError('A user with that email already exists.')\n else:\n return nPrm", "def YBiq(YKHO):\n Ys3F = mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']...
[ "0.7526965", "0.72224885", "0.72059774", "0.71725845", "0.70428735", "0.70428735", "0.70380056", "0.70377064", "0.70362145", "0.70286083", "0.702808", "0.7024613", "0.7017353", "0.70158327", "0.7003014", "0.70017296", "0.6969533", "0.69595975", "0.691978", "0.68686837", "0.68...
0.70151365
14
Checks whether the current user has the required access.
def JL1u(KOwb, _yfG, dW9q, y0cW): ZUyI = db6b.getCore().getRightsChecker(y0cW) Tf5Y = ZUyI.getMembership(_yfG) ONR4 = {'scope_path': dW9q, 'prefix': y0cW} return KOwb.hasMembership(Tf5Y, ONR4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pn7U(YKHO):\n return YKHO.user_has_access(DW23.get_current_user())", "def JL1u(YKHO, CBIr):\n if CBIr.is_superuser:\n return True\n return YKHO.user_objects(CBIr).filter(id=YKHO.id).exists()", "def D1QP(YKHO, CBIr):\n if not YKHO.modOnlyAccess:\n return True\n if CBIr.modAccess...
[ "0.8458953", "0.7809165", "0.7621577", "0.7597592", "0.7593007", "0.7593007", "0.7593007", "0.7535834", "0.739783", "0.7392741", "0.7333217", "0.7291266", "0.7289617", "0.72522485", "0.7227394", "0.71588236", "0.71465874", "0.71465874", "0.71465796", "0.7139072", "0.71167153"...
0.0
-1
Clean method for cleaning comma separated strings. Obtains the separated string from the form and returns it as a set of strings.
def gONR(Iy58, g8rx=','): def h3Xc(YKHO): """Decorator wrapper method. """ VMhS = YKHO.cleaned_data Ht4_ = VMhS.get(Iy58) OtVm = [] for vIwR in Ht4_.split(g8rx): VkPx = vIwR.strip() if VkPx and VkPx not in OtVm: OtVm.append(VkPx) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XYhm(YKHO, vIwR):\n if vIwR is None:\n return []\n hkWs = vIwR.strip().split(',')\n return [mAB6.strip() for mAB6 in hkWs]", "def aRD2(KCHu):\n return KCHu.split(',')", "def Yczo(hHld):\n while True:\n try:\n hHld.remove('')\n except ValueError:\n b...
[ "0.7104075", "0.6398996", "0.6370906", "0.63630885", "0.6339547", "0.6207833", "0.6163238", "0.6115373", "0.60795194", "0.605182", "0.60515034", "0.6040052", "0.60056716", "0.59161395", "0.5872921", "0.586806", "0.5853141", "0.5853141", "0.58201516", "0.5802614", "0.5780249",...
0.6953057
1
Name of the service.
def bSEa(YKHO) -> str: return qe4Y.get(YKHO, 'service_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSEa(YKHO):\n return YKHO._service_name", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YK...
[ "0.89885104", "0.87708855", "0.87708855", "0.87708855", "0.8632549", "0.8632549", "0.8632549", "0.832409", "0.832409", "0.832409", "0.82325894", "0.8127267", "0.785057", "0.7743876", "0.76368743", "0.7590222", "0.75873625", "0.7544445", "0.73286045", "0.7316036", "0.7237534",...
0.90985924
1
Current value of the service quota.
def BWXx(YKHO) -> float: return qe4Y.get(YKHO, 'value')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LOK8(YKHO) -> int:\n return qe4Y.get(YKHO, 'quota')", "def c3Au(YKHO):\n raise NotImplementedError", "def LOK8(YKHO) -> 'outputs.CommitmentQuotaResponse':\n return qe4Y.get(YKHO, 'quota')", "def o4ij(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'usage_quota')", "def CxeQ(YKHO):\n...
[ "0.77670854", "0.7446824", "0.70987386", "0.6942532", "0.6688799", "0.66298956", "0.6514471", "0.64642084", "0.6391936", "0.63593936", "0.63506377", "0.6349508", "0.6329015", "0.6328705", "0.63007766", "0.62739515", "0.62664056", "0.62437546", "0.6234557", "0.62256527", "0.62...
0.61880404
24
Generate a new list of class objects with random networkconnection values in [0, nbr_networks].
def C6M2(NKcE='random'): if NKcE == 'random': sE9u = MAqI.possible_connections.start nFVa = MAqI.possible_connections.stop - 1 ApnM = [MAqI(ajWY(sE9u, nFVa), v32L) for v32L in MAqI.possible_building_codes] else: ApnM = [MAqI(0, v32L) for v32L in MAqI.possible_building_codes] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WIoj(YKHO):\n for H5ew in YKHO.nn_param_choices:\n YKHO.network[H5ew] = tuKI.choice(YKHO.nn_param_choices[H5ew])", "def WIoj(YKHO):\n WYxq = tuKI.choice(YKHO.parameter_choices['number_of_layers'])\n YbkM = []\n ajdO = []\n YKHO.network['number_of_layers'] = WYxq\n for YRbF in range(W...
[ "0.685704", "0.6813407", "0.6693404", "0.66514516", "0.6629633", "0.6415598", "0.629567", "0.62762225", "0.6211654", "0.6205845", "0.61777097", "0.61707705", "0.6114049", "0.60692084", "0.60692084", "0.60692084", "0.60563594", "0.60473967", "0.60437477", "0.6041458", "0.60371...
0.67087376
2
Get EVSE controller flags
def CdvL(YKHO): _ins, nPrm = YKHO._request('GE') if _ins: JbyC = int(nPrm[1], 16) else: raise mROW return {'service_level': (JbyC & 1) + 1, 'diode_check': not JbyC & 2, 'vent_required': not JbyC & 4, 'ground_check': not JbyC & 8, 'stuck_relay_check': not JbyC & 16, 'auto_service_level': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Whq2(QNb_, zFiD):\n zgsA = QNb_.getTrace()\n E0cB = URgV.split(zFiD)\n if len(E0cB) not in (0, 1):\n return QNb_.do_help('eflags')\n if len(E0cB) > 0:\n I1mm = E0cB[0].upper()\n HGCF = list(zgsA.getStatusFlags().keys())\n if I1mm not in HGCF:\n raise Exception...
[ "0.586173", "0.57777774", "0.5696792", "0.56556875", "0.5625211", "0.5605443", "0.55081916", "0.5506377", "0.5478047", "0.54634863", "0.546029", "0.5455059", "0.54491174", "0.5444521", "0.54341966", "0.5419467", "0.539428", "0.53742415", "0.5360109", "0.5359566", "0.5357107",...
0.69314706
0
Get or set the charge time limit, in minutes. This time is rounded to the nearest quarter hour. The maximum value is 3825 minutes. Returns the limit
def s_nr(YKHO, qoqK=None): if qoqK is None: _ins, nPrm = YKHO._request('G3') if _ins: return int(nPrm[0]) * 15 else: qoqK = int(round(qoqK / 15.0)) if YKHO._request('S3', str(qoqK))[0]: return qoqK raise mROW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y9Jp(YKHO, qoqK=None):\n if qoqK is None:\n _ins, nPrm = YKHO._request('GH')\n if _ins:\n return int(nPrm[0])\n elif YKHO._request('SH', str(int(qoqK)))[0]:\n return qoqK\n raise mROW", "def s_nr(YKHO) -> float:\n return YKHO._time_limit", "def m4vu(YKHO):\n p...
[ "0.70346034", "0.6572836", "0.6342111", "0.6304517", "0.6276798", "0.6195106", "0.6171386", "0.6147078", "0.6147078", "0.61444235", "0.6120159", "0.6114225", "0.6092856", "0.6006875", "0.600371", "0.59972626", "0.5992696", "0.5955476", "0.5953279", "0.588673", "0.5855543", ...
0.6266285
5
Get or set the charge limit (in kWh) Returns the limit in kWh
def y9Jp(YKHO, qoqK=None): if qoqK is None: _ins, nPrm = YKHO._request('GH') if _ins: return int(nPrm[0]) elif YKHO._request('SH', str(int(qoqK)))[0]: return qoqK raise mROW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BL92(YKHO):\n return YKHO._limit_bandwidth_unit", "def qoqK(YKHO) -> qe4Y.Input[float]:\n return qe4Y.get(YKHO, 'limit')", "def Xin8(YKHO):\n return YKHO._read(e8vZ)", "def K3hO(YKHO):\n return YKHO.limit", "def mH2I(YKHO):\n return YKHO._limit_bandwidth", "def qoqK():\n W__b = HA5f...
[ "0.6939957", "0.6737347", "0.6714779", "0.6697181", "0.6669025", "0.65325147", "0.65267825", "0.65267825", "0.6385521", "0.6384387", "0.629606", "0.62420326", "0.6241383", "0.6171989", "0.61673516", "0.61560285", "0.61560285", "0.6148095", "0.6139005", "0.60568637", "0.603571...
0.773973
0
Set the service level
def t1uN(YKHO, ABDL=None): if ABDL is None: JbyC = YKHO._flags() if JbyC['auto_service_level']: return 0 return JbyC['service_level'] elif YKHO._request('SL', Et2g[ABDL])[0]: return ABDL raise mROW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fTst(YKHO, jf3N, VfMB):\n return YKHO.post(YKHO.value_url % (qYO6, jf3N), {'value': VfMB})", "def fTst(YKHO, ABDL: LogLevel):\n pass", "def ABDL(YKHO, ABDL=kQI7):\n try:\n YKHO._level = EjAa[ABDL]\n except KeyError:\n raise ValueError(f'Input level is invalid.')\n YKHO.cnsl_han...
[ "0.641874", "0.6370891", "0.62254953", "0.61440414", "0.61306614", "0.61165065", "0.6041749", "0.6006176", "0.5909119", "0.58666164", "0.58651865", "0.58479106", "0.5822135", "0.58183753", "0.58151615", "0.57751316", "0.5769112", "0.57529086", "0.5747073", "0.5677586", "0.566...
0.76737183
0
Get the response of a command.
def c295(YKHO): if YKHO.sync: YKHO.newline_available.wait() geh0 = YKHO.newline YKHO.newline_available.clear() GtY0 = YKHO.respose_regex.match(geh0) if GtY0 is not None: return (GtY0.group('status') == 'OK', (GtY0.group('args') or '').split()) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T_2m(oUZx):\n UzPC = bxbw()\n UzPC.send(oUZx)\n nPrm = UzPC.recv()\n UzPC.close()\n return nPrm", "def nrOS(YKHO, oUZx):\n return YKHO.execute(oUZx).response.body", "def c295(YKHO):\n _hkX = (yield from YKHO._responses.get())\n if len(_hkX) == 1:\n zFiD = _hkX[0]\n if ...
[ "0.83564925", "0.7146335", "0.7053197", "0.7028037", "0.7028037", "0.7028037", "0.7028037", "0.7028037", "0.7028037", "0.7028037", "0.7028037", "0.7028037", "0.7028037", "0.7028037", "0.7028037", "0.70096374", "0.6872557", "0.6804226", "0.67991716", "0.67609257", "0.6743227",...
0.64145964
35
Retrieve and decrypt all EYAML nodes identified via a YAML Path.
def OujA(YKHO, SFUd: YAMLPath, yVl3: bool=False, HyJ9: str='') -> jd6F[uLKX[str, list], None, None]: YKHO.logger.verbose(f'Decrypting value(s) at {SFUd}.') for Q6kx in YKHO.get_nodes(SFUd, mustexist=yVl3, default_value=HyJ9): cVwz: uLKX[str, list] = YKHO.decrypt_eyaml(Q6kx.node) yield cVwz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VzHI(YKHO, BWXx: Union[str, list, NodeCoords]) -> uLKX[str, list]:\n if isinstance(BWXx, GsAQ):\n BWXx = YKHO.decrypt_eyaml(BWXx.node)\n if isinstance(BWXx, list):\n Rci7: list = []\n for yplh in BWXx:\n Rci7.append(YKHO.decrypt_eyaml(yplh))\n return Rci7\n if no...
[ "0.5978005", "0.5765115", "0.5633267", "0.56090814", "0.5413266", "0.53038657", "0.5284189", "0.52752095", "0.52709526", "0.5243304", "0.5226155", "0.5220826", "0.5200933", "0.5188679", "0.5147183", "0.51428044", "0.51317084", "0.5058167", "0.50533456", "0.49935448", "0.49839...
0.6616852
0
The name of current database
def wnys(): MOPg = {'accept': 'text/plain'} try: geh0 = G4JS.get('https://reactome.org/AnalysisService/database/name', headers=MOPg) except ConnectionError as e: print(tTpl) if geh0.status_code == 200: return geh0.text else: print('Status code returned a value of %s' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N5CR(YKHO) -> str:\n return qe4Y.get(YKHO, 'database_name')", "def s0ar(YKHO):\n return YKHO._base.getDatabaseName()", "def zndY(YKHO):\n return Fv2L.db_name", "def wnys(YKHO):\n return YKHO._db_name", "def N5CR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'database_name')", "def...
[ "0.9027067", "0.88655585", "0.8811652", "0.8764089", "0.8694933", "0.86814076", "0.8625411", "0.8547365", "0.83625615", "0.8308478", "0.8196721", "0.81481373", "0.8005808", "0.79866225", "0.79125184", "0.7890239", "0.77313614", "0.77204466", "0.7567863", "0.7537789", "0.74966...
0.0
-1
Given a hour and an a/p specifier, then convert the hour into 24 hour clock if need be
def Elw4(ITS7, VqfF): if VqfF.lower() == 'p' and ITS7 <= 12: ITS7 += 12 return ITS7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JhJa(v1VR):\n if v1VR == 0:\n nRaM = '12am'\n elif v1VR == 12:\n nRaM = '12pm'\n elif v1VR > 12:\n nRaM = str(v1VR - 12) + 'pm'\n else:\n nRaM = str(v1VR) + 'am'\n return nRaM", "def zNc3(Wave: float) -> str:\n return (JRYC.datetime(2001, 1, 2) + JRYC.timedelta(h...
[ "0.7251803", "0.6876839", "0.67813945", "0.6776302", "0.6769173", "0.67146665", "0.6684279", "0.6507988", "0.6449184", "0.6422249", "0.6371726", "0.6339657", "0.61947954", "0.6154167", "0.6153549", "0.6083289", "0.60241634", "0.6023049", "0.60043037", "0.59405994", "0.5928877...
0.7937838
0
Adds a Donor to the list but not a donation
def vd5D(): print() print('Welcome to the Add a Donor Menu') print() UZsd = FRZ9() fcCO, jBHA = UZsd.split(' ') hoW5(fcCO, jBHA, UZsd) print('Added Donor to our database. See below for updated database list') WEmW()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hoW5(YKHO, l0hJ: Donor):\n YKHO.donor_list.append(l0hJ)", "def hoW5(YKHO, mWFP, OOWi=None):\n if ',' in mWFP:\n print('Warning: Comma will be removed from name')\n mWFP = mWFP.replace(',', '')\n if mWFP in YKHO.donor_names:\n raise NameError(f\"Can't add {mWFP} to database. Dono...
[ "0.75522584", "0.731089", "0.70302176", "0.7023298", "0.6981367", "0.69480103", "0.6905423", "0.6902113", "0.68842626", "0.6616342", "0.658263", "0.6440102", "0.6378078", "0.6367712", "0.6330996", "0.6246403", "0.61361134", "0.6083845", "0.6029793", "0.59989804", "0.59128356"...
0.5808881
23
Return the KLDivergence of q from p, where they are both discrete.
def WlRn(XP5J, vexM): lTIZ = 1e-10 return sum((XP5J.get(H5ew, lTIZ) * epAf.log(XP5J.get(H5ew, lTIZ) / vexM.get(H5ew, lTIZ)) for H5ew in set(eNCK(XP5J.keys(), vexM.keys()))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzAH(XP5J, vexM):\n XP5J = oyIN.asarray(XP5J, dtype=oyIN.float)\n vexM = oyIN.asarray(vexM, dtype=oyIN.float)\n return oyIN.sum(oyIN.where(XP5J != 0, XP5J * oyIN.log(XP5J / vexM), 0))", "def Qll2(XP5J, qTZE, vexM):\n for vhpA in [XP5J, qTZE, vexM]:\n if not vhpA.dtype.is_floating:\n ...
[ "0.83783793", "0.8248797", "0.8238453", "0.8237623", "0.8002661", "0.7934934", "0.7809173", "0.7544666", "0.7491476", "0.7442535", "0.72507805", "0.7227291", "0.72206163", "0.7204128", "0.7196086", "0.71212834", "0.7028148", "0.6997681", "0.69451886", "0.6937735", "0.693512",...
0.8021706
4
Create a new Application.
def eLpg(YKHO, **B2fa): Eorv = YKHO.resource.create(B2fa) if 'admin_token' in B2fa: Eorv.context.authorize('Gem-Application', api_token=Eorv.api_token, admin_token=B2fa['admin_token']) P4t4 = YKHO.wrap(Eorv) return YKHO.add(P4t4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPKU(mWFP=None, JBZA=None):\n pass", "def eLpg():\n return Z33s()", "def LUif(YKHO):\n raise NotImplementedError", "def kYMg(B5PH, kvcN):\n from flask_create_app.core.commands.cmd_newapp import create_new_app\n t7Ny = Hy7s.getcwd()\n create_new_app(kvcN, t7Ny, B5PH)", "def P4t4():\n ...
[ "0.8049611", "0.7894759", "0.778717", "0.7714202", "0.76950544", "0.7632642", "0.7461711", "0.743065", "0.7373661", "0.734395", "0.7319151", "0.7264961", "0.7224036", "0.7176076", "0.7156717", "0.7142044", "0.71234006", "0.7078663", "0.70746887", "0.70540684", "0.70340383", ...
0.0
-1
Resets any of the tokens for this Application. Note that you may have to reauthenticate afterwards.
def SiRx(YKHO, *qIxc): YKHO.resource = YKHO.resource.reset(list(qIxc)) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s0Gq(YKHO):\n YKHO._send_request('/reset')", "def SiRx(YKHO):\n G4JS.put('{}/reset'.format(YKHO._get_url()))", "def iPse(YKHO):\n YKHO._auth_token = YKHO.generate_auth_token()", "def iZDY() -> None:\n V7ok.run(Kp2V())", "def SiRx(OaeV):\n Z7L0 = OaeV.obj['controller']\n k8wH.echo('Res...
[ "0.6538824", "0.6530027", "0.64196795", "0.63505626", "0.622071", "0.6215047", "0.6198929", "0.61964613", "0.6158335", "0.612172", "0.6065665", "0.60498947", "0.6018655", "0.5990005", "0.59845394", "0.5968237", "0.5966214", "0.5955728", "0.5937876", "0.59283274", "0.58569354"...
0.0
-1
Fetch and return Subscriptions associated with this account.
def eSe8(YKHO): if not hasattr(YKHO, '_subscriptions'): rS6A = YKHO.resource.subscriptions YKHO._subscriptions = Pmni(rS6A, YKHO.client) return YKHO._subscriptions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VOru(YKHO):\n bD7m = '{}/v2/subscriptions'.format(YKHO.url)\n Mkmy = G4JS.get(bD7m, headers=YKHO.headers_v2)\n return Mkmy.json()", "def eSe8(YKHO):\n return zbDt.AccountSubscriptions(YKHO)", "def VOru(YKHO):\n return YKHO.subscriptions.all()", "def rDYv(YKHO):\n return YKHO.__GetJson('...
[ "0.7990724", "0.7946658", "0.78739756", "0.7686811", "0.7393206", "0.7365164", "0.7336142", "0.7271344", "0.6977177", "0.69047856", "0.6897478", "0.6868403", "0.68661726", "0.68577534", "0.67974514", "0.6767764", "0.6758763", "0.67523557", "0.67145425", "0.6712708", "0.667692...
0.70616055
8
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)", "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\...
[ "0.8331214", "0.8284662", "0.82381004", "0.8229767", "0.82202226", "0.81864446", "0.81847763", "0.8175173", "0.8171541", "0.81699467", "0.81664646", "0.81645083", "0.81637454", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "...
0.7847017
100
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, qtWj, qIxc): tspZ = qIxc.lr * 0.3 ** (qtWj // qIxc.lr_decay) for Lwm5 in K0do.param_groups: Lwm5['lr'] = 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.79125106", "0.7905808", "0.784919", "0.77743787", "0.7733029", "0.7730123", "0.7722105", "0.77219707", "0.771907", "0.7708634", "0.769325", "0.76734984", "0.7665429", "0.7665429", "0.7665429", "0.7654525", "0.76393783", "0.7637545", "0.7625412", "0.762393", "0.7620798", ...
0.7641484
16
Returns a list of a tuple of two lists of usually ints.
def Cafj(): return list(tq_1().revoked().values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SsTF(YKHO):\n pass", "def GPVD(YKHO, Ty9i):\n try:\n jzdc, Fg_i = [int(WKvO) for WKvO in Ty9i]\n except TypeError:\n jzdc, Fg_i = (int(Ty9i), int(Ty9i))\n return (jzdc, Fg_i)", "def qsp4(hkxX: Union[int, Iterable[int]]) -> AzJI[int, ...]:\n try:\n return tuple(hkxX)\n ...
[ "0.7138478", "0.7056853", "0.70269233", "0.6809916", "0.676243", "0.6708052", "0.66612697", "0.6595524", "0.6498595", "0.644377", "0.6419206", "0.64167994", "0.6400565", "0.63758326", "0.6371181", "0.63563305", "0.633618", "0.6319137", "0.6305672", "0.63044655", "0.6290991", ...
0.0
-1
Is this user authorized to edit this domain?
def JvDI(YKHO, CBIr): if not CBIr: return False if UQP5.query.filter_by(domain=YKHO, user=CBIr).notempty(): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kFCl(YKHO, CBIr):\n return YKHO.is_public or CBIr == YKHO.owner or CBIr in list(YKHO.auth_users.all())", "def hO62(YKHO, CBIr):\n return YKHO.author_id == CBIr.id or CBIr.is_staff", "def FAbd(YKHO, CBIr):\n return CBIr == YKHO.owner", "def otSk(YKHO):\n ZrNc = tHSi.current_user_account\n i...
[ "0.7709783", "0.77018327", "0.76261306", "0.76224643", "0.74032384", "0.73819256", "0.71887064", "0.6987602", "0.6955905", "0.69551045", "0.69412404", "0.6897451", "0.6876156", "0.68627214", "0.6856763", "0.684721", "0.68378896", "0.68247706", "0.68235326", "0.68235326", "0.6...
0.0
-1
Align text representation with neural soft attention
def rkpn(my6U, HLds): v2uf = i9da(axes=-1)([my6U, HLds]) FmNy = Zlsf(lambda WKvO: N93T(WKvO, axis=1), output_shape=kB5l)(v2uf) QvFy = G370((2, 1))(Zlsf(lambda WKvO: N93T(WKvO, axis=2), output_shape=kB5l)(v2uf)) JYf7 = i9da(axes=1)([FmNy, my6U]) Ixus = i9da(axes=1)([QvFy, HLds]) return (JYf7, Ixu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PqwB(YKHO, g4y1):\n v2uf = g4y1[0]\n yAmx = g4y1[1]\n kLQb = nMvt.exp(v2uf - nMvt.max(v2uf, axis=-1, keepdims=True))\n oItg = nMvt.sum(kLQb, axis=-1, keepdims=True)\n N93T = kLQb / oItg\n return nMvt.batch_dot(N93T, yAmx)", "def BVsz(OZbn, RsoQ, LNo8):\n sCer = 5\n BIhi = sCer\n FL...
[ "0.66776156", "0.62227994", "0.6209605", "0.61780703", "0.6041781", "0.6035291", "0.60170335", "0.5924213", "0.5906429", "0.5897682", "0.5815565", "0.5757317", "0.5754428", "0.57333404", "0.5706334", "0.5701764", "0.5694026", "0.5676868", "0.5669681", "0.56671107", "0.5653984...
0.5906069
9
Checks whether the event is close (< 333.33 km), local (< 1111.1 km) or nonlocal.
def fw4S(o9O6): if 0.001 * o9O6[0] / 111.11 < 10.0: if 0.001 * o9O6[0] / 111.11 < 3.0: fw4S = 'close' else: fw4S = 'local' else: fw4S = 'non-local' return fw4S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cnd2(mAYH, pks6, D1sU=10):\n return CgaZ(mAYH, pks6).meters < D1sU", "def xpqH(YKHO, igSk, GgQG, TGuP, tk0B, Ayfi=0.5):\n Ayfi = jLKC.distance.distance((igSk, GgQG), (TGuP, tk0B)).km < Ayfi\n return Ayfi", "def vmcZ(YKHO):\n if oyIN.all(oyIN.abs(YKHO.arroots) > 1.0):\n return True\n e...
[ "0.59032863", "0.5859245", "0.57062525", "0.5683135", "0.5587486", "0.55783063", "0.55658764", "0.5556887", "0.549712", "0.5462718", "0.54563504", "0.5442784", "0.5435991", "0.54337895", "0.539335", "0.5373526", "0.5359536", "0.53254163", "0.532251", "0.53136206", "0.52923113...
0.5320151
19
Set actor name. Should be an AJAX POST.
def wzuD(QePW, hbFX): if QePW.method == 'POST' and QePW.is_ajax(): CBIr = QePW.user.username mWFP = QePW.POST.get('name', None) if not mWFP: return igJ6(qQXR.dumps({'success': False, 'message': 'Not all info provided.'}), content_type='application/json') Aofo = WYZm(hbFX,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMo8(mWFP, ehDb):\n H5ew = Wv1k.MakeKey('MeshName', 'root')\n YRbF = YU_E.vtkInformation()\n YRbF.Set(H5ew, mWFP)\n ehDb.SetPropertyKeys(YRbF)", "def NpNj(YKHO, QiwA, mWFP):\n YKHO.post(QiwA, mWFP)", "def oSgC(YKHO, BWXx):\n assert BWXx == None or type(BWXx) == str, repr(BWXx) + ' is not ...
[ "0.7654658", "0.69476855", "0.6570049", "0.6494318", "0.6388236", "0.63637435", "0.6328593", "0.6318659", "0.6312924", "0.6309923", "0.62596786", "0.62596786", "0.62312734", "0.6184796", "0.61632735", "0.6155613", "0.6146275", "0.6124514", "0.6119059", "0.6089604", "0.6089604...
0.782819
0
Test case for get_asset_location
async def test_get_asset_location(x0hE): NArs = [('access_token', 'access_token_example'), ('start_ms', 56), ('end_ms', 56)] MOPg = {'Accept': 'application/json'} geh0 = await x0hE.request(method='GET', path='/v1/fleet/assets/{asset_id}/locations'.format(asset_id=56), headers=MOPg, params=NArs) assert g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rw8T(YKHO):\n pass", "def N00R(YKHO):\n pass", "def mHlc(Rci7, Ux0P):\n return hOl8.compute_location(Rci7.course_key, Ux0P)", "def pZ_U(YKHO):\n pass", "def HqDd(YKHO):\n pass", "def jBLA(VXBI, pmON, XkTm=None, AXFp=False):\n pmON = pmON.replace('/', '_')\n return Lzk7(VXBI.org, ...
[ "0.7415348", "0.69235885", "0.6899057", "0.638585", "0.62809753", "0.6270019", "0.6233576", "0.6228147", "0.6144367", "0.60533535", "0.60388875", "0.6031024", "0.6000491", "0.5995636", "0.59561104", "0.58891505", "0.58824044", "0.5879761", "0.5842656", "0.5838969", "0.5795523...
0.7002647
1
Test case for update_vehicles /fleet/set_data
async def test_update_vehicles(x0hE): JURJ = {} NArs = [('access_token', 'access_token_example')] MOPg = {'Accept': 'application/json', 'Content-Type': 'application/json'} geh0 = await x0hE.request(method='POST', path='/v1/fleet/set_data', headers=MOPg, json=JURJ, params=NArs) assert geh0.status == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FhdM(YKHO):\n FMwV = paQy(YKHO.user)\n pB3N = {'type': 'VSL', 'license_plate': 'BB-123-BB'}\n bD7m = iLuo(FMwV.id)\n YKHO.client.put(bD7m, pB3N)\n FMwV.refresh_from_db()\n YKHO.assertEqual(FMwV.type, pB3N['type'])\n YKHO.assertEqual(FMwV.license_plate, pB3N['license_plate'])", "async def...
[ "0.71505785", "0.68947595", "0.6579535", "0.6251394", "0.6177396", "0.61734515", "0.61277056", "0.6039747", "0.6037411", "0.6037411", "0.6037411", "0.6005619", "0.5963101", "0.59276724", "0.58947337", "0.5876618", "0.5862244", "0.58160585", "0.58143586", "0.58109504", "0.5786...
0.7403942
0
Returns the object the view is displaying. You may want to override this if you need to provide nonstandard queryset lookups. Eg if objects are referenced using multiple keyword arguments in the url conf.
def AMX5(YKHO): try: YEnM = yXC8.objects.get(T8ck(workout=YKHO.kwargs['workout_id']) & T8ck(file=f'workouts/{YKHO.kwargs['workout_id']}/{YKHO.kwargs['filename']}')) except: raise uhgT('Media does not exist') YKHO.check_object_permissions(YKHO.request, YEnM) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMX5(YKHO):\n SR0I = YKHO.filter_queryset(YKHO.get_queryset())\n err5 = YKHO.lookup_url_kwarg or YKHO.lookup_field\n assert err5 in YKHO.kwargs, 'Expected view %s to be called with a URL keyword argument named \"%s\". Fix your URL conf, or set the `.lookup_field` attribute on the view correctly.' % (Y...
[ "0.78314036", "0.769374", "0.7584883", "0.7418032", "0.73830104", "0.7135776", "0.7098794", "0.7098794", "0.7051305", "0.7049022", "0.7027892", "0.7011859", "0.6934976", "0.68255", "0.67854565", "0.66764516", "0.66085947", "0.65987587", "0.6594525", "0.6593504", "0.6590956", ...
0.0
-1
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('..') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep", "def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join...
[ "0.8371822", "0.8281945", "0.82500875", "0.8140755", "0.81153977", "0.81001383", "0.80954826", "0.80812496", "0.80692154", "0.8064015", "0.8064015", "0.8064015", "0.8064015", "0.8064015", "0.8064015", "0.8064015", "0.80585384", "0.80561507", "0.8046439", "0.8046439", "0.80464...
0.8068952
9
Calculate the great circle distance between two points on the earth (specified in decimal degrees) with aversine methods (Formula dell'emisenoverso) Distance between center of the earth and one pole of 6356,988 Km
def Nkg6(GgQG, igSk, tk0B, TGuP): GgQG = float(GgQG) tk0B = float(tk0B) igSk = float(igSk) TGuP = float(TGuP) GgQG, igSk, tk0B, TGuP = map(epAf.radians, [GgQG, igSk, tk0B, TGuP]) H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = epAf.sin(n_9K / 2) ** 2 + epAf.cos(igSk) * epAf.cos(TGuP) * epAf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6", "def DJ7s(YKHO, ...
[ "0.7871812", "0.7415874", "0.7413148", "0.7409321", "0.7187257", "0.7163925", "0.71522003", "0.7136417", "0.7133373", "0.7127404", "0.7115002", "0.7108447", "0.7105007", "0.7093324", "0.7091262", "0.70894", "0.70875317", "0.7083735", "0.7082329", "0.7051968", "0.70396394", ...
0.6902858
36
Calculate the distance between two objects in earth surface with aversine function
def Uy8Q(BzZr, RL4V): Ayfi = Nkg6(BzZr.details['lon'], BzZr.details['lat'], RL4V.details['lon'], RL4V.details['lat']) return Ayfi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P__5(YKHO, Elif):\n igSk, GgQG, TGuP, tk0B = (jzdc / 180 * mM0K for jzdc in [YKHO.stop_lat, YKHO.stop_lon, Elif.stop_lat, Elif.stop_lon])\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2\n Z9rn = 2 * P099(min(1, PZyS(jzdc)))\n...
[ "0.70784503", "0.6869446", "0.6761259", "0.67116684", "0.6543642", "0.65325594", "0.6512383", "0.645304", "0.6434847", "0.6404621", "0.63854754", "0.6365717", "0.6317675", "0.6310138", "0.628761", "0.628512", "0.6275293", "0.62502754", "0.62141174", "0.6207847", "0.6205076", ...
0.7500694
0
Return the resource classes for the given type names
def Dno6(Emd4, Fbrv): BFqS, o3cf = SApE(Emd4.resource_map, Fbrv) for Mkmy in BFqS: Emd4.resources.notify(Mkmy) return (BFqS, o3cf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U7C7(Fbrv):\n return [jKi7.text_type(YRbF) for YRbF, a1PO in enumerate(Fbrv)]", "def Fbrv(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'resource_types')", "def KndY(YKHO):\n if YKHO.classname:\n return [YKHO.classname]\n return []", "def Bcbc(lOnf):\n KndY = []\n for HGq1 in lOnf:...
[ "0.6930224", "0.655719", "0.63146454", "0.61923003", "0.61095965", "0.6028112", "0.5930096", "0.5885124", "0.58668715", "0.58506316", "0.58110446", "0.57932234", "0.57844025", "0.57808083", "0.57771176", "0.57461643", "0.5736121", "0.57168233", "0.5711547", "0.5679436", "0.56...
0.7458863
0
Load YAML config file, replacing environmental variables.
def LgIG(Nu1S): with open(Nu1S) as kP8s: GPtr = eJb6.load(kP8s) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgIG(Ux0P):\n QmMM['config'] = jnN0(Ux0P)", "def LgIG():\n global config\n with open('config.yml', 'r') as nUeQ:\n GPtr = eJb6.load(nUeQ)", "def LgIG(Ux0P):\n with open(Ux0P, 'r') as wOb_:\n try:\n global CONFIG\n X8Rg = eJb6.load(wOb_)\n except eJb6.Y...
[ "0.759806", "0.75476813", "0.7429467", "0.7321961", "0.7150322", "0.71351194", "0.71229714", "0.7112208", "0.7074874", "0.7074874", "0.7048942", "0.701205", "0.7001649", "0.69677484", "0.6959319", "0.6842998", "0.6834498", "0.67806965", "0.67494947", "0.67384756", "0.6738105"...
0.6527966
31
Returns unique identifier for this item.
def unpH(YKHO): return YKHO.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CpvB(YKHO) -> str:\n return qe4Y.get(YKHO, 'unique_identifier')", "def ht7m(YKHO):\n return YKHO._item_id", "def ShR8(YKHO) -> str:\n return YKHO._unique_id", "def ShR8(YKHO) -> str:\n return YKHO._unique_id", "def ShR8(YKHO) -> str:\n return YKHO._unique_id", "def ShR8(YKHO) -> str:\n...
[ "0.7988448", "0.79261", "0.79163027", "0.79163027", "0.79163027", "0.79163027", "0.79163027", "0.79163027", "0.79163027", "0.79163027", "0.7907528", "0.79003954", "0.79003954", "0.7835717", "0.783288", "0.78139853", "0.78109676", "0.7801746", "0.7772201", "0.7761753", "0.7760...
0.0
-1
Returns name for this item. By default it is always file name but it does not have to be.
def W0tD(YKHO): return YKHO.file_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n return YKHO._file.name", "def dvRm(YKHO):\n return YKHO.__item_name", "def g_2H(YKHO):\n return str(YKHO.get_file())", "def mWFP(YKHO):\n return Hy7s.path.splitext(Hy7s.path.basename(YKHO.fileName))[0]", "def mWFP(YKHO):\n return YKHO._filename", "def Q0HP(YKHO, ZfUD):\n ...
[ "0.8253217", "0.79557985", "0.79266256", "0.7917495", "0.78880054", "0.78258127", "0.7702499", "0.76604885", "0.76604885", "0.76604885", "0.76604885", "0.76604885", "0.7622075", "0.7603988", "0.7601418", "0.74866647", "0.74866647", "0.74638736", "0.7448695", "0.7448695", "0.7...
0.8299885
0
Always returns ebooklib.ITEM_DOCUMENT as type of this document.
def FRul(YKHO): return V0Pg.ITEM_DOCUMENT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJse(YKHO, WmM4='article'):\n return YKHO.data.get('document_type', [{}])", "def XV9O(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'document_type')", "def Lojf(YKHO):\n return YKHO._item_type", "def lJse(YKHO, WmM4=[None]):\n return YKHO.data.get('metadata', {}).get('document_type'...
[ "0.69555175", "0.6916534", "0.6800712", "0.6697258", "0.66136515", "0.65289104", "0.65249836", "0.63585246", "0.62989086", "0.62585694", "0.61281234", "0.6040799", "0.5930187", "0.5899448", "0.58831155", "0.58387256", "0.58204675", "0.5791197", "0.57875174", "0.57697415", "0....
0.9294342
0
Get language code for this book item. Language of the book item can be different from the language settings defined globaly for book.
def Bmkt(YKHO): return YKHO.lang
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r6VR(YKHO) -> str:\n return qe4Y.get(YKHO, 'language_code')", "def rQow(YKHO) -> str:\n if YKHO.language_code in JBp2:\n return JBp2[YKHO.language_code]\n return YKHO.language_code", "def r6VR(YKHO):\n return YKHO._language_code", "def L5PF(YKHO):\n return YKHO.langs.lang", "def B...
[ "0.784877", "0.78031695", "0.77836025", "0.74651676", "0.7389355", "0.7333395", "0.728975", "0.724844", "0.72329926", "0.7231016", "0.7231016", "0.72168297", "0.72112036", "0.72112036", "0.7206865", "0.7201981", "0.7201981", "0.7201981", "0.7201981", "0.7183346", "0.71661973"...
0.7451734
4
Sets unique id for this epub
def JdS4(YKHO, PObu): YKHO.uid = PObu YKHO.set_unique_metadata('DC', 'identifier', YKHO.uid, {'id': YKHO.IDENTIFIER_ID})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f6Qh(YKHO):\n raise NotImplementedError()", "def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX", "def f6Qh(YKHO, BWXx):\n pass", "def id(YKHO, _eu6):\n YKHO.metadata['id'] = _eu6", "def gHuE(YKHO):\n YKHO.attributes['id'] = 'H_%d...
[ "0.71130604", "0.6918782", "0.6905892", "0.68966883", "0.6835794", "0.68318474", "0.68172216", "0.68147004", "0.67846906", "0.6764645", "0.6761164", "0.6708345", "0.6698819", "0.66710097", "0.6651248", "0.6651248", "0.6651248", "0.6651248", "0.6651248", "0.6651248", "0.665124...
0.0
-1
Gets the text_rendering_hint of this GraphicsOptions.
def bf6_(YKHO): return YKHO._text_rendering_hint
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bf6_(YKHO, bf6_):\n if bf6_ is None:\n raise ValueError('Invalid value for `text_rendering_hint`, must not be `None`')\n BbPm = ['SystemDefault', 'SingleBitPerPixelGridFit', 'SingleBitPerPixel', 'AntiAliasGridFit', 'AntiAlias', 'ClearTypeGridFit']\n if not bf6_.isdigit():\n if bf6_ not i...
[ "0.69604117", "0.62317777", "0.62317777", "0.5886041", "0.5681343", "0.54823095", "0.5445572", "0.53595686", "0.53379554", "0.5291398", "0.5291398", "0.5291398", "0.5256358", "0.5242656", "0.5223719", "0.51909864", "0.51909864", "0.51569676", "0.510505", "0.50916517", "0.5064...
0.8371151
0
Gets the smoothing_mode of this GraphicsOptions.
def WLzs(YKHO): return YKHO._smoothing_mode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WLzs(YKHO, WLzs):\n if WLzs is None:\n raise ValueError('Invalid value for `smoothing_mode`, must not be `None`')\n BbPm = ['Default', 'HighSpeed', 'HighQuality', 'None', 'AntiAlias', 'Invalid']\n if not WLzs.isdigit():\n if WLzs not in BbPm:\n raise ValueError('Invalid value ...
[ "0.6940231", "0.59442544", "0.5766346", "0.56253767", "0.56072974", "0.54676175", "0.5460788", "0.5443999", "0.54239273", "0.53444034", "0.53301466", "0.5329961", "0.532129", "0.5301903", "0.5252747", "0.52279854", "0.5216892", "0.52037525", "0.51897633", "0.51848143", "0.517...
0.85734326
0
Gets the interpolation_mode of this GraphicsOptions.
def ACsV(YKHO): return YKHO._interpolation_mode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GoGv(YKHO):\n return YKHO._image.interpolation", "def GoGv(YKHO):\n return YKHO._interpolation", "def ACsV(YKHO, ACsV):\n if ACsV is None:\n raise ValueError('Invalid value for `interpolation_mode`, must not be `None`')\n BbPm = ['Default', 'Low', 'High', 'Bilinear', 'Bicubic', 'NearestN...
[ "0.7008349", "0.6776836", "0.6755735", "0.6540449", "0.6482457", "0.6359577", "0.58184665", "0.57703996", "0.52565974", "0.52365285", "0.5205391", "0.5149392", "0.5140956", "0.5114028", "0.51070696", "0.51070696", "0.510544", "0.5094688", "0.507713", "0.5065038", "0.50186205"...
0.86079556
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, hfg6): return False 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.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
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.84568954", "0.83923674", "0.81447554", "0.81407183", "0.81326675", "0.80941343", "0.8092415", "0.8092415", "0.8092415", "0.8085536", "0.8085536", "0.8076502", "0.8076502", "0.8066026" ]
0.0
-1
transfer date string into datetime format
def LxqE(wU8J): if ZbWC.compile('(\\d+)-(\\d+)-(\\d+) (\\d+):(\\d+):(\\d+)').match(wU8J): return qcWV.strptime(wU8J, '%Y-%m-%d %H:%M:%S')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YerM(GXef: str) -> qcWV:\n return qcWV.strptime(GXef, '%Y-%b-%d %I:%M %p')", "def R2Sr(KCHu):\n return qcWV.strptime(KCHu.decode(), '%Y-%m-%d %H:%M:%S')", "def J6Ib(_c1T):\n import datetime\n _c1T = str(_c1T)\n lO87 = int(_c1T[0:4])\n x0eS = int(_c1T[4:6])\n CjKC = int(_c1T[6:8])\n ...
[ "0.7619423", "0.7598419", "0.7523032", "0.7468575", "0.74368787", "0.7366947", "0.73159945", "0.7309965", "0.730503", "0.7283155", "0.7243974", "0.72322965", "0.71828765", "0.717542", "0.7172572", "0.71616393", "0.7157044", "0.7146218", "0.71439713", "0.7105502", "0.70988613"...
0.6414288
92
Convert a positive integer num into an mbit bit vector
def weg1(mLGw, r8hN): return oyIN.array(list(oyIN.binary_repr(mLGw).zfill(r8hN))).astype(oyIN.int8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CgPp(WKvO, r8hN):\n Fg_i = [1 if Ko6S == '1' else 0 for Ko6S in bin(WKvO)[2:]]\n for YRbF in range(len(Fg_i), r8hN):\n Fg_i.insert(0, 0)\n return Fg_i", "def Shl2(mLGw):\n return bin(int(mLGw))[2:]", "def UOVU(jzdc, r8hN):\n if isinstance(jzdc, int):\n Ylbp = [None] * r8hN\n ...
[ "0.7303951", "0.69518465", "0.6793526", "0.65504116", "0.65124774", "0.63102084", "0.62854797", "0.6249089", "0.6228623", "0.62114257", "0.61986667", "0.61986667", "0.61485374", "0.6075668", "0.6073431", "0.60692275", "0.6055679", "0.6054397", "0.603171", "0.5994067", "0.5955...
0.64981943
5
This function search for money in the dataframe series. We try to locate keyletters to determine the money amount. We are only considering the money ponderated in $. We'll filter amountwise.
def JNV0(YAgj=None): CCr2 = {'$': 1, 'M': 2, 'k': 3, 'K': 4, 'B': 5} for H5ew, ulZ4 in CCr2.items(): if H5ew in YAgj: return YAgj return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KCtP(jQ3Z, fvDH):\n jQ3Z[fvDH] = jQ3Z[fvDH].apply(lambda KCHu: KCHu.strip('$')).astype(float)\n return jQ3Z", "def cwEH(WPdU, sMch=['First Place Prize', 'Total Prize']):\n hlel = WPdU.copy()\n for iVRZ in sMch:\n for YRbF in range(len(WPdU)):\n CCr2 = WPdU.loc[YRbF, iVRZ].replac...
[ "0.548414", "0.5436483", "0.5252488", "0.52291626", "0.5182891", "0.51439315", "0.512255", "0.5093436", "0.5091164", "0.5045387", "0.4961957", "0.4879498", "0.48383567", "0.48377803", "0.482176", "0.47819585", "0.4776685", "0.47725916", "0.4736894", "0.47220966", "0.46958765"...
0.5407936
2
Calculate the great circle distance between two points on the earth (specified in decimal degrees)
def GeVo(GgQG, igSk, tk0B, TGuP): GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP]) H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2 Z9rn = 2 * P099(PZyS(jzdc)) q5XV = 6371 * Z9rn return q5XV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6", "def T97B(GgQG, ...
[ "0.81450045", "0.7863265", "0.76322985", "0.76064754", "0.75978696", "0.75965863", "0.75944835", "0.75720793", "0.75630087", "0.7555095", "0.7528691", "0.7517629", "0.7492963", "0.7467739", "0.7452678", "0.7434477", "0.73914117", "0.7357736", "0.73484355", "0.73318124", "0.73...
0.0
-1
Convert 'string' to Unicode according to current encoding and replace all invalid characters with '?'
def Hk0C(vIwR, tZ2K=None): return gldS(_ha7(vIwR, tZ2K), tZ2K).replace(u'�', '?')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ktW0(l5Ny):\n QrZ9 = l5Ny.encode('ascii', errors='replace').strip().decode('ascii')\n QrZ9 = QrZ9.replace('?', ' ')\n return QrZ9", "def brQJ(vIwR):\n if not isinstance(vIwR, QMSQ):\n for ZGum in Nos9:\n try:\n LVYF = QMSQ(vIwR, ZGum)\n except UnicodeEr...
[ "0.7505681", "0.73375976", "0.7302059", "0.7115624", "0.71018153", "0.70222497", "0.70015144", "0.6964247", "0.68974555", "0.6822589", "0.68002146", "0.6763085", "0.6746833", "0.6710765", "0.6704518", "0.667207", "0.66646576", "0.66643494", "0.6642949", "0.66275585", "0.65879...
0.7598488
0
Return the UUID of the object.
def VyW9(YKHO, YEnM): return wbP3(YEnM, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qxeD(YKHO) -> str:\n return YKHO.obj.uuid", "def qxeD(YKHO):\n return YKHO.__uuid", "def qxeD(YKHO):\n return YKHO.__uuid", "def qxeD(YKHO):\n return YKHO.__uuid", "def qxeD(YKHO) -> str:\n return YKHO.__uuid", "def qxeD(YKHO):\n return YKHO._uuid", "def qxeD(YKHO):\n return YK...
[ "0.85558087", "0.79988", "0.7993092", "0.7993092", "0.79525244", "0.7904036", "0.7904036", "0.7889704", "0.7872532", "0.7872532", "0.7872532", "0.7865517", "0.785074", "0.7837192", "0.75898683", "0.74724305", "0.7459345", "0.74169964", "0.7348409", "0.7348409", "0.73042244", ...
0.8143481
2
Applies dropout to the inputs, as vanilla dropout, but also scales the remaining elements up by 1/drop_prob.
def xmDf(YKHO, g4y1): ZHfW = ZylS.cast(1 - ZylS.compat.v1.distributions.Bernoulli(probs=1.0 - YKHO.drop_prob).sample(sample_shape=ihqc(g4y1)), ZylS.bool) NXpY = ZylS.convert_to_tensor(1.0 / (1 - YKHO.drop_prob), dtype=ZylS.float32) if YKHO.drop_prob > 0: g4y1 = ZylS.where(ZHfW, 0.0, g4y1) * NXpY ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RZj3(YKHO, mWFP, j63z):\n return super()._Dropout(mWFP, keep_prob=1.0 - j63z)", "def mCnT(YKHO, YoQM, Qzhb=0.5):\n if Qzhb < 0 or Qzhb > 1:\n Qzhb = 0.5\n YoQM /= Qzhb\n hObQ = oyIN.random.binomial(1, Qzhb, size=YoQM.shape)\n YoQM *= hObQ\n return YoQM", "def jKC_(YKHO):\n\n def...
[ "0.73190767", "0.72104555", "0.6984206", "0.6726625", "0.6438859", "0.6378311", "0.63739455", "0.6333642", "0.6303439", "0.62422913", "0.6238144", "0.6197577", "0.61939985", "0.6146432", "0.611204", "0.6100422", "0.6041613", "0.598868", "0.59458494", "0.5928544", "0.59189373"...
0.73971844
0
Applies embedding based on inputs tensor.
def pOv4(YKHO, Pha6: tf.Tensor=None, h6bD: tf.Tensor=None, blF9: tf.Tensor=None, ThNW: tf.Tensor=None, ZHfW: tf.Tensor=None, Y9ns: bool=False) -> ZylS.Tensor: if Pha6 is None and ThNW is None: raise ValueError('Need to provide either `input_ids` or `input_embeds`.') if Pha6 is not None: BYE1(Pha...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOv4(YKHO, g4y1: tf.Tensor, **B2fa):\n yvT9 = ZzUg.embedding_lookup(YKHO.embeddings, g4y1)\n return yvT9", "def pOv4(YKHO, g4y1):\n ygzP = jPbk.unpack_inputs(g4y1)\n ZO3Q = ygzP[0]\n blF9 = ygzP[1]\n GhuM = jPbk.get_shape_list(ZO3Q, expected_rank=3)\n Ep8u = GhuM[0]\n q4aw = GhuM[1]\n...
[ "0.7492827", "0.7180979", "0.7180979", "0.7164134", "0.70087683", "0.69689703", "0.6889047", "0.6888748", "0.66949385", "0.66910964", "0.66897273", "0.66417754", "0.6632423", "0.66254747", "0.6582906", "0.6548298", "0.6505206", "0.6484405", "0.64827895", "0.64605796", "0.6443...
0.6407886
22
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(Ewdh, YKHO).__init__(*qIxc, **c_sp) if YKHO.header is None: YKHO.header = kKAJ.msg.Header() if YKHO.battery_voltage is None: YKHO.battery_voltage = 0.0 if YKHO.flight_mode_ll is None: YKHO.fligh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.77944714", "0.77215654", "0.77215654", "0.76878554", "0.762691", "0.7565032", "0.744052", "0.7418174", "0.73521847", "0.7309203", "0.72811013", "0.7238687", "0.7227824", "0.7225277", "0.7225277", "0.7219933", "0.72126967", "0.72126967", "0.72126967", "0.72126967", "0.72126...
0.0
-1
Set up data used in the tests. this method is called before each test function execution.
def FCbF(YKHO): rRJ4.tests.test_tryton.install_module('nereid_webshop')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.dataset = eis1()", "def izSt(Emd4):\n BJsk.initialize_empty_volunteer()", "def FCbF(YKHO):\n YKHO.test_data_path = 'testing/test_data/'", "def FCbF(YKHO):\n YKHO.dataset = YKHO.dataset_cls()", "def izSt(Emd4):\n tOFR.run()", "def izSt(Emd4):\n tOFR.run()", "def ...
[ "0.8316004", "0.81669205", "0.80365294", "0.79593265", "0.7851743", "0.7851743", "0.7851743", "0.7851743", "0.78030396", "0.7733172", "0.77156585", "0.7709763", "0.7698654", "0.7601516", "0.75898266", "0.75895333", "0.7572539", "0.75524235", "0.7548495", "0.7548288", "0.75450...
0.0
-1
Verify that exceptions are raised when invalid inputs are provided.
def zZo3(YKHO): with YKHO.assertRaises(ValueError): JxU2 = PAEn(7) with YKHO.assertRaises(ValueError): JxU2 = PAEn([]) with YKHO.assertRaises(ValueError): JxU2 = PAEn([7, 1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W2hP(YKHO):\n for puqW in ['ruler', 'pencil', 'cheese']:\n with YKHO.assertRaises(ValueError) as BQDi:\n amUA(puqW)\n YKHO.assertEqual(\"Dataset type not 'regular' or 'raw' is %s\" % puqW, str(BQDi.exception))", "def S8I6(YKHO):\n YKHO.assertRaises(Exception, YKHO.validate, (3,...
[ "0.7241708", "0.7142847", "0.7078709", "0.7075399", "0.6971915", "0.6874864", "0.68641305", "0.68528914", "0.67550623", "0.67008084", "0.66096216", "0.660916", "0.66013396", "0.65843433", "0.6580535", "0.65796393", "0.65637916", "0.64911616", "0.64769465", "0.6474615", "0.647...
0.66250074
10
Function that creates a popup window, where the user choses the path of the pictures to be imported.
def gEm_(YKHO, YEnM): U1Yg = ztNg(size_hint_y=None) hGN5 = kxtP(orientation='vertical', spacing=7) SJHa = NMta() U1Yg.bind(on_submit=YKHO._validate) U1Yg.height = 500 SJHa.add_widget(U1Yg) hGN5.add_widget(PY8A(size_hint_y=None, height=5)) hGN5.add_widget(SJHa) hGN5.add_widget(PY8A(si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ki2L():\n VqRE = XqpT.askopenfilename(initialdir='./', title='Seleccionar archivo', filetypes=(('xls files', '*.xls'), ('xlsx files', '*.xlsx')))\n if not VqRE:\n return\n KnxT.title(VqRE)\n x2Ox['text'] = VqRE\n Q_mi['state'] = 'normal'", "def amDZ(YKHO, tvqc):\n P10q = lnPd.FileDia...
[ "0.66438276", "0.6612577", "0.6491037", "0.6460821", "0.63719344", "0.6350408", "0.62853444", "0.62116045", "0.61943567", "0.60447955", "0.60042334", "0.5988993", "0.5987815", "0.59491676", "0.58990157", "0.5892898", "0.5881457", "0.58800566", "0.5879434", "0.5872016", "0.587...
0.55250293
59
This function recodes age to voting age indicator.
def Rkhe(rdlD, wSCv): return d3C6(**rdlD.asDict(), VA=int(int(rdlD[wSCv]) >= 18))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VdL2():\n oURO = 'QAGE'\n PWKZ = BJma(EKvY.AGE.getLevels())\n Pe9W = ['case']\n Pe9W += [f\"when {oURO} = '{ZJe_}' then '0'\" for ZJe_ in PWKZ[:18]]\n Pe9W += [f\"when {oURO} = '{ZJe_}' then '1'\" for ZJe_ in PWKZ[18:]]\n Pe9W += ['else -1']\n Pe9W += ['end']\n Pe9W = '\\n'.join(Pe9W)\n...
[ "0.72888666", "0.63422006", "0.61982685", "0.6087664", "0.6044752", "0.60132456", "0.5996665", "0.5911703", "0.5901286", "0.5840923", "0.58004", "0.57445115", "0.5730684", "0.57280827", "0.57280827", "0.571167", "0.56999373", "0.5686093", "0.56769687", "0.5626336", "0.5591922...
0.70308846
1
This function recodes age to voting age indicator.
def N6Qp(rdlD, QFYL): dict = {0: 0, 2: 1, 3: 2, 4: 3, 6: 4, 7: 5, 8: 6, 9: 7} return d3C6(**rdlD.asDict(), GQTYPE2=int(dict[int(rdlD[QFYL])]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VdL2():\n oURO = 'QAGE'\n PWKZ = BJma(EKvY.AGE.getLevels())\n Pe9W = ['case']\n Pe9W += [f\"when {oURO} = '{ZJe_}' then '0'\" for ZJe_ in PWKZ[:18]]\n Pe9W += [f\"when {oURO} = '{ZJe_}' then '1'\" for ZJe_ in PWKZ[18:]]\n Pe9W += ['else -1']\n Pe9W += ['end']\n Pe9W = '\\n'.join(Pe9W)\n...
[ "0.7288859", "0.7029836", "0.6342088", "0.61982423", "0.6086834", "0.60438293", "0.6011859", "0.59954005", "0.5910818", "0.5900025", "0.5839856", "0.57997704", "0.5743357", "0.57295084", "0.57269484", "0.57269484", "0.5710921", "0.5698795", "0.56848055", "0.5676055", "0.56264...
0.0
-1
Returns dict required by the submissions app for creating and retrieving submissions for a particular student.
def v1ti(YKHO): return {'student_id': 'TURMAS_PROFESSORES2', 'course_id': YKHO.block_course_id(), 'item_id': 'TURMAS_PROFESSORES', 'item_type': 'TURMAS_PROFESSORES'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmbp(YKHO):\n w213 = YKHO.get_submission()\n if w213:\n F3YL = w213.get('answer').get('filename', None)\n if F3YL:\n c44j = {'filename': w213['answer']['filename']}\n else:\n c44j = None\n else:\n c44j = None\n w213 = YKHO.get_question()\n if w21...
[ "0.6342659", "0.62900764", "0.611838", "0.6073937", "0.6051365", "0.6027995", "0.60204875", "0.59528667", "0.5901761", "0.5887693", "0.58747524", "0.5845859", "0.58351123", "0.5783542", "0.5770243", "0.5769744", "0.57578826", "0.57285917", "0.5711314", "0.5651691", "0.563121"...
0.60782087
3
Implementation of the gelu activation function.
def Vmco(WKvO): return WKvO * 0.5 * (1.0 + ht2j.erf(WKvO / epAf.sqrt(2.0)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CKFj(pKvt):\n yvT9 = 1 + ZylS.tanh(oyIN.sqrt(oyIN.pi) * (pKvt + 0.044715 * ZylS.pow(pKvt, 3)))\n yvT9 *= 0.5 * pKvt\n return yvT9", "def CKFj(pKvt):\n yvT9 = 1 + ZylS.tanh(oyIN.sqrt(oyIN.pi) * (pKvt + 0.044715 * ZylS.pow(pKvt, 3)))\n yvT9 *= 0.5 * pKvt\n return yvT9", "def Vmco(WKvO):\n ...
[ "0.81878746", "0.81878746", "0.78091353", "0.75566226", "0.75261027", "0.74784553", "0.7371147", "0.7235054", "0.7213163", "0.72079337", "0.71979815", "0.71930933", "0.71736133", "0.7157644", "0.6968456", "0.6956587", "0.69499516", "0.6794776", "0.6789725", "0.677464", "0.677...
0.69697493
21
Check if given string is a number
def ye72(l5Ny): return l5Ny.lower() in a02f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except ValueError:\n return False", "def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except ValueError:\n return False", "def QirG(Dhyu):\n return Myyj(Dhyu) or QpCZ(Dhyu)", "def ye72(vIwR):\n tr...
[ "0.86266977", "0.8614113", "0.85569495", "0.8530858", "0.85076964", "0.83444005", "0.83386594", "0.8308308", "0.8308308", "0.8308308", "0.8232177", "0.82226145", "0.81765175", "0.8125507", "0.8109672", "0.8108557", "0.8100462", "0.80996865", "0.7942509", "0.79189825", "0.7896...
0.75334406
42
max_noutput_items(udp_debug_sptr self) > int
def VS9X(YKHO): return kWKo.udp_debug_sptr_max_noutput_items(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VS9X(YKHO):\n return kWKo.ax25_udp_pdu_gen_sptr_max_noutput_items(YKHO)", "def VS9X(YKHO):\n return kWKo.ax25_udp_pdu_receiver_sptr_max_noutput_items(YKHO)", "def UpRM(YKHO, r8hN):\n return kWKo.udp_debug_sptr_set_max_noutput_items(YKHO, r8hN)", "def VS9X(YKHO):\n return kWKo.message_debug_sp...
[ "0.8176988", "0.81450784", "0.8090422", "0.80487424", "0.7770448", "0.76995355", "0.7576218", "0.7572661", "0.7562225", "0.75537467", "0.75497144", "0.75414896", "0.7504701", "0.7499048", "0.74851", "0.7482035", "0.7474103", "0.7460695", "0.7447523", "0.7441404", "0.7428933",...
0.8675666
0
set_max_noutput_items(udp_debug_sptr self, int m)
def UpRM(YKHO, r8hN): return kWKo.udp_debug_sptr_set_max_noutput_items(YKHO, r8hN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpRM(YKHO, r8hN):\n return kWKo.ax25_udp_pdu_gen_sptr_set_max_noutput_items(YKHO, r8hN)", "def UpRM(YKHO, r8hN):\n return kWKo.message_debug_sptr_set_max_noutput_items(YKHO, r8hN)", "def UpRM(YKHO, r8hN):\n return kWKo.ax25_udp_pdu_receiver_sptr_set_max_noutput_items(YKHO, r8hN)", "def UpRM(YKHO...
[ "0.8731032", "0.872651", "0.8692746", "0.8410931", "0.8314686", "0.8240967", "0.82327634", "0.8226602", "0.8218581", "0.81887805", "0.8179597", "0.8112417", "0.8104528", "0.805799", "0.80314523", "0.80273014", "0.8019604", "0.8013521", "0.7984897", "0.7877809", "0.7876769", ...
0.9258258
0
is_set_max_noutput_items(udp_debug_sptr self) > bool
def q5C7(YKHO): return kWKo.udp_debug_sptr_is_set_max_noutput_items(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q5C7(YKHO):\n return kWKo.ax25_udp_pdu_receiver_sptr_is_set_max_noutput_items(YKHO)", "def q5C7(YKHO):\n return kWKo.message_debug_sptr_is_set_max_noutput_items(YKHO)", "def q5C7(YKHO):\n return kWKo.ax25_udp_pdu_gen_sptr_is_set_max_noutput_items(YKHO)", "def UpRM(YKHO, r8hN):\n return kWKo.u...
[ "0.82234603", "0.8190864", "0.815605", "0.8080453", "0.8004134", "0.79332983", "0.7811644", "0.7752836", "0.7727448", "0.77059495", "0.7700653", "0.76872283", "0.7634478", "0.7621657", "0.7564723", "0.7564068", "0.7536739", "0.7535124", "0.75273585", "0.75152254", "0.7491826"...
0.8736726
0
set_min_noutput_items(udp_debug_sptr self, int m)
def uGiS(YKHO, r8hN): return kWKo.udp_debug_sptr_set_min_noutput_items(YKHO, r8hN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uGiS(YKHO, r8hN):\n return kWKo.message_debug_sptr_set_min_noutput_items(YKHO, r8hN)", "def uGiS(YKHO, r8hN):\n return kWKo.ax25_udp_pdu_gen_sptr_set_min_noutput_items(YKHO, r8hN)", "def uGiS(YKHO, r8hN):\n return kWKo.ax25_udp_pdu_receiver_sptr_set_min_noutput_items(YKHO, r8hN)", "def UpRM(YKHO...
[ "0.84740466", "0.8459526", "0.84588146", "0.8285908", "0.8146845", "0.8030416", "0.80297667", "0.8007855", "0.7955436", "0.79414004", "0.78577363", "0.78562254", "0.77967966", "0.77940476", "0.7793667", "0.77389014", "0.77387166", "0.7705193", "0.7688705", "0.76880807", "0.76...
0.90772825
0
pc_noutput_items(udp_debug_sptr self) > float
def O2Ac(YKHO): return kWKo.udp_debug_sptr_pc_noutput_items(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O2Ac(YKHO) -> 'float':\n return pZ_q.doaesprit_sptr_pc_noutput_items(YKHO)", "def qDM9(YKHO) -> 'float':\n return pZ_q.doaesprit_sptr_pc_noutput_items_var(YKHO)", "def O2Ac(YKHO) -> 'float':\n return pZ_q.beamformer_sptr_pc_noutput_items(YKHO)", "def qDM9(YKHO) -> 'float':\n return pZ_q.beamf...
[ "0.70510346", "0.6985436", "0.69120073", "0.68841857", "0.6744606", "0.67430186", "0.66462183", "0.66411895", "0.6380339", "0.63471013", "0.6328753", "0.6194949", "0.61185396", "0.60945433", "0.6074499", "0.6050756", "0.6025998", "0.60117245", "0.59765965", "0.59574544", "0.5...
0.6299872
11
pc_nproduced_avg(udp_debug_sptr self) > float
def V9br(YKHO): return kWKo.udp_debug_sptr_pc_nproduced_avg(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V9br(YKHO) -> 'float':\n return pZ_q.beamformer_sptr_pc_nproduced_avg(YKHO)", "def V9br(YKHO) -> 'float':\n return pZ_q.doaesprit_sptr_pc_nproduced_avg(YKHO)", "def V9br(YKHO) -> 'float':\n return pZ_q.phasedarray_sptr_pc_nproduced_avg(YKHO)", "def V9br(YKHO) -> 'float':\n return pZ_q.randoms...
[ "0.74531144", "0.7408706", "0.74051094", "0.7268281", "0.6997663", "0.6896879", "0.68887824", "0.68878484", "0.6863739", "0.67930955", "0.6790072", "0.6755643", "0.67507094", "0.66394335", "0.66389656", "0.6608949", "0.6579007", "0.65693325", "0.6563511", "0.65218437", "0.651...
0.73349625
3
pc_input_buffers_full_var(udp_debug_sptr self, int which) > float pc_input_buffers_full_var(udp_debug_sptr self) > pmt_vector_float
def MimA(YKHO, *qIxc): return kWKo.udp_debug_sptr_pc_input_buffers_full_var(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MimA(YKHO, *qIxc) -> 'std::vector< float,std::allocator< float > >':\n return pZ_q.doaesprit_sptr_pc_input_buffers_full_var(YKHO, *qIxc)", "def MimA(YKHO, *qIxc) -> 'std::vector< float,std::allocator< float > >':\n return pZ_q.beamformer_sptr_pc_input_buffers_full_var(YKHO, *qIxc)", "def MimA(YKHO, *...
[ "0.77895504", "0.77480537", "0.7715826", "0.7558733", "0.74101645", "0.7374321", "0.73480177", "0.7325397", "0.73100954", "0.7305582", "0.71849203", "0.71570075", "0.7122481", "0.7112337", "0.7100657", "0.70335454", "0.6987018", "0.6966076", "0.6932339", "0.6916485", "0.69117...
0.75039816
4
pc_output_buffers_full(udp_debug_sptr self, int which) > float pc_output_buffers_full(udp_debug_sptr self) > pmt_vector_float
def MU7G(YKHO, *qIxc): return kWKo.udp_debug_sptr_pc_output_buffers_full(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MU7G(YKHO, *qIxc) -> 'std::vector< float,std::allocator< float > >':\n return pZ_q.doaesprit_sptr_pc_output_buffers_full(YKHO, *qIxc)", "def Iila(YKHO, *qIxc) -> 'std::vector< float,std::allocator< float > >':\n return pZ_q.doaesprit_sptr_pc_output_buffers_full_var(YKHO, *qIxc)", "def MU7G(YKHO, *qIx...
[ "0.7752476", "0.76877147", "0.7650493", "0.7642452", "0.75981295", "0.7544605", "0.7446683", "0.7419137", "0.74005014", "0.73852396", "0.7354925", "0.732073", "0.73042905", "0.7262177", "0.72431934", "0.7229593", "0.72227234", "0.7211849", "0.71948636", "0.71867716", "0.71379...
0.76134247
4
pc_output_buffers_full_avg(udp_debug_sptr self, int which) > float pc_output_buffers_full_avg(udp_debug_sptr self) > pmt_vector_float
def y44Y(YKHO, *qIxc): return kWKo.udp_debug_sptr_pc_output_buffers_full_avg(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y44Y(YKHO, *qIxc) -> 'std::vector< float,std::allocator< float > >':\n return pZ_q.doaesprit_sptr_pc_output_buffers_full_avg(YKHO, *qIxc)", "def y44Y(YKHO, *qIxc) -> 'std::vector< float,std::allocator< float > >':\n return pZ_q.phasedarray_sptr_pc_output_buffers_full_avg(YKHO, *qIxc)", "def y44Y(YKHO...
[ "0.81388396", "0.80316126", "0.8029397", "0.80271417", "0.79425716", "0.7912824", "0.78737164", "0.78492975", "0.7787294", "0.77725387", "0.7742103", "0.7732606", "0.77256894", "0.77253693", "0.76800233", "0.7653576", "0.7653434", "0.76514405", "0.7648713", "0.76471686", "0.7...
0.80217606
4
pc_output_buffers_full_var(udp_debug_sptr self, int which) > float pc_output_buffers_full_var(udp_debug_sptr self) > pmt_vector_float
def Iila(YKHO, *qIxc): return kWKo.udp_debug_sptr_pc_output_buffers_full_var(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iila(YKHO, *qIxc) -> 'std::vector< float,std::allocator< float > >':\n return pZ_q.doaesprit_sptr_pc_output_buffers_full_var(YKHO, *qIxc)", "def Iila(YKHO, *qIxc) -> 'std::vector< float,std::allocator< float > >':\n return pZ_q.beamformer_sptr_pc_output_buffers_full_var(YKHO, *qIxc)", "def Iila(YKHO,...
[ "0.7959861", "0.79230946", "0.7895542", "0.7710034", "0.76395094", "0.7538643", "0.75088626", "0.7403616", "0.7378762", "0.73759335", "0.7374973", "0.7362911", "0.7325134", "0.73201096", "0.7313963", "0.7293196", "0.7263875", "0.7254347", "0.722618", "0.7204909", "0.71927387"...
0.7716308
3
max_noutput_items(hdlc_framer_sptr self) > int
def VS9X(YKHO): return kWKo.hdlc_framer_sptr_max_noutput_items(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VS9X(YKHO) -> 'int':\n return pZ_q.beamformer_sptr_max_noutput_items(YKHO)", "def VS9X(YKHO) -> 'int':\n return pZ_q.doaesprit_sptr_max_noutput_items(YKHO)", "def VS9X(YKHO):\n return QGRL.my_qpsk_demod_cb_sptr_max_noutput_items(YKHO)", "def VS9X(YKHO):\n return tGN_.usrp_sink_sptr_max_noutpu...
[ "0.86392236", "0.86145955", "0.856988", "0.8524229", "0.8497105", "0.8468115", "0.8461704", "0.8388109", "0.83707696", "0.8359412", "0.8353683", "0.8324141", "0.8318215", "0.8317569", "0.8283969", "0.8275221", "0.82706237", "0.8240553", "0.82174313", "0.82123303", "0.81874096...
0.87307626
0