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 |
|---|---|---|---|---|---|---|
Tests that an empty context (with is_admin set to True) can access an image with is_public set to True. | def MIIs(YKHO):
YKHO.do_visible(True, None, True, is_admin=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxQr(YKHO, Hgd7, A3RV, ECxo, **B2fa):\n VXjJ = jZtL(A3RV, ECxo)\n OaeV = QpfX.RequestContext(**B2fa)\n YKHO.assertEqual(OaeV.is_image_visible(VXjJ), Hgd7)",
"def nNen(YKHO):\n pass",
"def EJWK(YKHO):\n pass",
"def Vp8B(YKHO):\n with YKHO.login(YKHO.user_admin):\n YKHO.assertTrue(... | [
"0.6889831",
"0.67943805",
"0.67671615",
"0.6649116",
"0.66382194",
"0.6531554",
"0.64865774",
"0.6406382",
"0.6406382",
"0.62943596",
"0.6245481",
"0.62123114",
"0.6179777",
"0.61140406",
"0.6112191",
"0.6104334",
"0.61026704",
"0.6068213",
"0.605546",
"0.6054745",
"0.599086... | 0.65038705 | 6 |
Tests that an empty context (with is_admin set to True) can access an image with is_public set to False. | def MFte(YKHO):
YKHO.do_visible(True, None, False, is_admin=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxQr(YKHO, Hgd7, A3RV, ECxo, **B2fa):\n VXjJ = jZtL(A3RV, ECxo)\n OaeV = QpfX.RequestContext(**B2fa)\n YKHO.assertEqual(OaeV.is_image_visible(VXjJ), Hgd7)",
"def nNen(YKHO):\n pass",
"def EJWK(YKHO):\n pass",
"def hmce(YKHO):\n Ylbp = YKHO.client.get(njKG)\n YKHO.assertEqual(Ylbp.sta... | [
"0.6836172",
"0.6736128",
"0.67086965",
"0.6513356",
"0.65056294",
"0.6466665",
"0.64133674",
"0.6399818",
"0.6399818",
"0.63390875",
"0.6302523",
"0.6226055",
"0.61997557",
"0.6121848",
"0.6118551",
"0.6102106",
"0.6089454",
"0.6087831",
"0.6057525",
"0.6023837",
"0.5988064"... | 0.6399744 | 9 |
Tests that an empty context (with is_admin set to True) can not share an image, with or without membership. | def N5vI(YKHO):
YKHO.do_sharable(False, 'pattieblack', None, is_admin=True)
YKHO.do_sharable(False, 'pattieblack', AgE2(True), is_admin=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ARKz(YKHO):\n _Ikf = fXlv()\n geh0 = YKHO.client.post(YKHO.user_passport_url, data={'passport': _Ikf})\n YKHO.assertEqual(403, geh0.status_code)",
"def HD8h(YKHO):\n YKHO.do_sharable(False, 'pattieblack', AgE2(False), tenant='froggy')",
"def M4mp(YKHO):\n Ny6k(CXiN.EDIT, YKHO.user1, YKHO.col... | [
"0.6628714",
"0.65942466",
"0.6389793",
"0.63213843",
"0.6221423",
"0.6164767",
"0.6150678",
"0.6041313",
"0.6000155",
"0.5972449",
"0.597103",
"0.5943589",
"0.59278715",
"0.59188557",
"0.59188557",
"0.5916836",
"0.59154505",
"0.5850877",
"0.58333635",
"0.5827698",
"0.5801319... | 0.60693204 | 7 |
Tests that an anonymous context (with is_admin set to False) cannot access an owned image with is_public set to False. | def yevd(YKHO):
YKHO.do_visible(False, 'pattieblack', False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D66f(YKHO):\n YKHO.do_visible(True, 'pattieblack', True, tenant='froggy')",
"def vMBe(YKHO):\n YKHO.do_visible(False, 'pattieblack', False, tenant='froggy')",
"def tGsz(YKHO):\n Sdbo = QrDS(user=YKHO.anonymous_user)\n with YKHO.assertRaises(T0EN):\n QUSm.get_by_id(YKHO.fixture.user1_temp... | [
"0.7152943",
"0.7109335",
"0.70072263",
"0.69585896",
"0.69585896",
"0.68980104",
"0.6817293",
"0.6704428",
"0.66895926",
"0.64946806",
"0.64736044",
"0.64594865",
"0.645942",
"0.644374",
"0.64420414",
"0.6405941",
"0.6374608",
"0.6368752",
"0.6364217",
"0.6354941",
"0.634457... | 0.6603411 | 9 |
Tests that an empty context (with is_admin set to True) can not share an image, with or without membership. | def FQOT(YKHO):
YKHO.do_sharable(False, 'pattieblack', None)
YKHO.do_sharable(False, 'pattieblack', AgE2(True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ARKz(YKHO):\n _Ikf = fXlv()\n geh0 = YKHO.client.post(YKHO.user_passport_url, data={'passport': _Ikf})\n YKHO.assertEqual(403, geh0.status_code)",
"def HD8h(YKHO):\n YKHO.do_sharable(False, 'pattieblack', AgE2(False), tenant='froggy')",
"def M4mp(YKHO):\n Ny6k(CXiN.EDIT, YKHO.user1, YKHO.col... | [
"0.6629645",
"0.6598161",
"0.6393106",
"0.6323076",
"0.62207663",
"0.61628443",
"0.61534476",
"0.6073732",
"0.6038234",
"0.6002864",
"0.5974506",
"0.5970309",
"0.5945625",
"0.5925215",
"0.5923474",
"0.5923474",
"0.59200865",
"0.59187025",
"0.5852431",
"0.58361256",
"0.5830204... | 0.54502434 | 86 |
Tests that an authenticated context (with is_admin set to False) can access an image (which it does not own) with is_public set to True. | def D66f(YKHO):
YKHO.do_visible(True, 'pattieblack', True, tenant='froggy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxQr(YKHO, Hgd7, A3RV, ECxo, **B2fa):\n VXjJ = jZtL(A3RV, ECxo)\n OaeV = QpfX.RequestContext(**B2fa)\n YKHO.assertEqual(OaeV.is_image_visible(VXjJ), Hgd7)",
"def nNen(YKHO):\n pass",
"def EJWK(YKHO):\n pass",
"def hmce(YKHO):\n Ylbp = YKHO.client.get(njKG)\n YKHO.assertEqual(Ylbp.sta... | [
"0.7225246",
"0.7020056",
"0.7001125",
"0.6687295",
"0.6627152",
"0.6603058",
"0.6603058",
"0.6587212",
"0.6518558",
"0.6515378",
"0.64673233",
"0.63507557",
"0.63226664",
"0.63195735",
"0.6267392",
"0.6243786",
"0.6220447",
"0.62151307",
"0.6181711",
"0.61252385",
"0.6124277... | 0.6331947 | 12 |
Tests that an authenticated context (with is_admin set to False) can access an image with is_public set to False. | def FoZN(YKHO):
YKHO.do_visible(True, None, False, tenant='froggy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxQr(YKHO, Hgd7, A3RV, ECxo, **B2fa):\n VXjJ = jZtL(A3RV, ECxo)\n OaeV = QpfX.RequestContext(**B2fa)\n YKHO.assertEqual(OaeV.is_image_visible(VXjJ), Hgd7)",
"def EJWK(YKHO):\n pass",
"def nNen(YKHO):\n pass",
"def Vp8B(YKHO):\n with YKHO.login(YKHO.user_admin):\n YKHO.assertTrue(... | [
"0.7295332",
"0.69605845",
"0.69604754",
"0.67785037",
"0.66477525",
"0.6625932",
"0.65665686",
"0.6512257",
"0.65008277",
"0.65008277",
"0.6442916",
"0.62628233",
"0.62376827",
"0.6148696",
"0.6145751",
"0.6145588",
"0.61448425",
"0.61161464",
"0.6112119",
"0.60931945",
"0.6... | 0.66329974 | 5 |
Tests that an authenticated context (with is_admin set to False) cannot access an image (which it does not own) with is_public set to False. | def vMBe(YKHO):
YKHO.do_visible(False, 'pattieblack', False, tenant='froggy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hmce(YKHO):\n Ylbp = YKHO.client.get(njKG)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_401_UNAUTHORIZED)",
"def IAi_(YKHO):\n raise NotImplementedError",
"def ARKz(YKHO):\n _Ikf = fXlv()\n geh0 = YKHO.client.post(YKHO.user_passport_url, data={'passport': _Ikf})\n YKHO.assertEqual(403, ... | [
"0.72276163",
"0.69970745",
"0.6978492",
"0.68080735",
"0.6803085",
"0.6803085",
"0.67497104",
"0.6643472",
"0.6630605",
"0.6568257",
"0.65023047",
"0.64936197",
"0.6412895",
"0.6403637",
"0.6389285",
"0.6367777",
"0.6367777",
"0.6348167",
"0.6298395",
"0.6289524",
"0.6269371... | 0.6672808 | 7 |
Tests that an authenticated context (with is_admin set to False) can access an image (which it does own) with is_public set to False. | def HLHt(YKHO):
YKHO.do_visible(True, 'pattieblack', False, tenant='pattieblack') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pxQr(YKHO, Hgd7, A3RV, ECxo, **B2fa):\n VXjJ = jZtL(A3RV, ECxo)\n OaeV = QpfX.RequestContext(**B2fa)\n YKHO.assertEqual(OaeV.is_image_visible(VXjJ), Hgd7)",
"def EJWK(YKHO):\n pass",
"def nNen(YKHO):\n pass",
"def kO_i(YKHO):\n pass",
"def Vp8B(YKHO):\n with YKHO.login(YKHO.user_ad... | [
"0.72539985",
"0.70253825",
"0.7010216",
"0.66228914",
"0.65394044",
"0.652322",
"0.649416",
"0.649245",
"0.649245",
"0.6490199",
"0.6474233",
"0.64500856",
"0.64078796",
"0.6296748",
"0.6282635",
"0.6253098",
"0.6213612",
"0.61675084",
"0.61526585",
"0.60946745",
"0.6082156"... | 0.61762923 | 17 |
Tests that an authenticated context (with is_admin set to False) cannot share an image it neither owns nor is shared with it. | def dtB8(YKHO):
YKHO.do_sharable(False, 'pattieblack', None, tenant='froggy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HD8h(YKHO):\n YKHO.do_sharable(False, 'pattieblack', AgE2(False), tenant='froggy')",
"def k9Uc(QePW, h9HD=None, *qIxc, **B2fa):\n if h9HD:\n try:\n h9HD = int(h9HD)\n except ValueError:\n h9HD = None\n lVHe = QePW.session.get('personal_group_shared_photo_id', None... | [
"0.73269576",
"0.66646326",
"0.662856",
"0.6424367",
"0.6423024",
"0.63863295",
"0.62619466",
"0.6225412",
"0.62130284",
"0.62111557",
"0.62085885",
"0.61964643",
"0.61871755",
"0.60659873",
"0.6040665",
"0.59974575",
"0.59781015",
"0.59628546",
"0.5954561",
"0.59475374",
"0.... | 0.5450656 | 81 |
Tests that an authenticated context (with is_admin set to False) cannot share an image it does not own even if it is shared with it, but with can_share = False. | def HD8h(YKHO):
YKHO.do_sharable(False, 'pattieblack', AgE2(False), tenant='froggy') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ha9Q(YKHO, QpfX, weUZ, _26P=None):\n pass",
"def ha9Q(YKHO, QpfX, weUZ, _26P=None):\n na1r.debug('Ensure share.')",
"def k9Uc(QePW, h9HD=None, *qIxc, **B2fa):\n if h9HD:\n try:\n h9HD = int(h9HD)\n except ValueError:\n h9HD = None\n lVHe = QePW.session.get('p... | [
"0.6938848",
"0.6857029",
"0.68210304",
"0.67752564",
"0.6616296",
"0.63722545",
"0.6287799",
"0.6185038",
"0.61454177",
"0.6070145",
"0.6063103",
"0.6063056",
"0.59651726",
"0.5954177",
"0.5950448",
"0.58537835",
"0.5789933",
"0.57651097",
"0.5743968",
"0.57354796",
"0.57342... | 0.74366206 | 0 |
Add vertex to DCEL if it doesn't already exists, otherwise return the existing vertex. | def ohmD(YKHO, SLBp):
try:
jfFh = YKHO.vertices.index(SLBp)
return YKHO.vertices[jfFh]
except Exception:
YKHO.vertices.append(SLBp)
return SLBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, SLBp):\n if SLBp.id not in YKHO.vertices.keys():\n YKHO.vertices[SLBp.id] = SLBp",
"def nnbj(YKHO, WKvO, LVAh):\n Ty9i = YB8K(WKvO, LVAh)\n YRbF = Ce1H(YKHO.vertices, Ty9i)\n if len(YKHO.vertices) > YRbF and YKHO.vertices[YRbF] == Ty9i:\n return YKHO.vertices[YRbF]\n Y... | [
"0.7698422",
"0.75747514",
"0.7562474",
"0.75239784",
"0.7504211",
"0.7403369",
"0.7356343",
"0.7279313",
"0.71772546",
"0.7124853",
"0.70904213",
"0.7066278",
"0.7066278",
"0.7043618",
"0.70346177",
"0.7016917",
"0.69948727",
"0.6946342",
"0.6899464",
"0.6882716",
"0.6859618... | 0.8166046 | 0 |
Return all faces where the circumcentre is not infinity. | def fwja(YKHO):
return [RpU_ for RpU_ in YKHO.faces if RpU_.is_bounded()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQy6(YKHO):\n return YKHO._faces_only",
"def zqFE(YKHO, y_PJ):\n zJPn = []\n for RpU_ in y_PJ:\n YRbF, r845, G1Hx = RpU_\n knl1 = 100.0\n if YKHO.get_distance_between_points(YRbF, r845) > knl1:\n continue\n elif YKHO.get_distance_between_points(r845, G1Hx) > kn... | [
"0.6049252",
"0.6032412",
"0.5654293",
"0.5523289",
"0.55073357",
"0.5405898",
"0.5375053",
"0.53417516",
"0.52805036",
"0.52619165",
"0.52610266",
"0.5258601",
"0.5257462",
"0.5247194",
"0.5216561",
"0.52134645",
"0.5212665",
"0.5200357",
"0.5186478",
"0.51604086",
"0.515638... | 0.5622148 | 3 |
Add a face to DCEL if it doesn't already exists, otherwise return the existing face. | def pCxt(YKHO, RpU_):
try:
x0nO = YKHO.faces.index(RpU_)
return YKHO.faces[x0nO]
except Exception:
YKHO.faces.append(RpU_)
return RpU_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pCxt(YKHO, RpU_):\n if RpU_.uuid is None:\n RpU_.uuid = YKHO._generate_uuid()\n if RpU_.uuid in YKHO._faces:\n h9sr = 'Trying to add an already existing face with uuid: ' + str(RpU_.uuid)\n raise KeyError(h9sr)\n YKHO._faces[RpU_.uuid] = duMp.from_face(RpU_)\n return RpU_.uuid"... | [
"0.7516604",
"0.62119764",
"0.61790365",
"0.5979341",
"0.5872748",
"0.5751965",
"0.5587595",
"0.539488",
"0.5394591",
"0.5375931",
"0.53083056",
"0.5234154",
"0.52226603",
"0.5124483",
"0.5124483",
"0.5102945",
"0.50553864",
"0.5042418",
"0.5035193",
"0.502191",
"0.5008115",
... | 0.8184843 | 0 |
Return the dual of the current DCEL. | def wNz9(YKHO):
def sSf0():
for ZfgL in range(0, len(IsBI.edges), 2):
IsBI.edges[ZfgL].twin = IsBI.edges[ZfgL + 1]
IsBI.edges[ZfgL + 1].twin = IsBI.edges[ZfgL]
def UgZh():
for RpU_ in IsBI.faces:
VPc6 = [D70y for D70y in IsBI.edges if D70y.incident_face == R... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wNz9(YKHO):\n return XLPm(YKHO)",
"def q6vi(YKHO, QVZg):\n EODr = gk2W.c_double()\n Ylbp = TW1v.MSK_XX_getdualobj(YKHO.__nativep, QVZg, gk2W.byref(EODr))\n if Ylbp != 0:\n bGrB, tO9_ = YKHO.__getlasterror(Ylbp)\n raise xxyF(piss(Ylbp), tO9_)\n EODr = EODr.value\n iGCZ = EODr\n... | [
"0.68338317",
"0.6423258",
"0.5941094",
"0.5921593",
"0.57853687",
"0.57633495",
"0.5762203",
"0.57469624",
"0.5682356",
"0.5682002",
"0.5639214",
"0.5613858",
"0.55889916",
"0.55681217",
"0.5535743",
"0.5530557",
"0.55077",
"0.54985017",
"0.5457592",
"0.54481125",
"0.5441906... | 0.6778644 | 1 |
Printfriendly representation of the DCEL object. | def wHJl(YKHO):
return '<DCEL (vertices:\n {obj.vertices},\nedges:\n {obj.edges},\nfaces:\n {obj.faces}>'.format(obj=YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n Emd4 = YKHO.__class__.__name__\n return '%s(%s)' % (Emd4, repr(YKHO.d))",
"def zAg0(YKHO):\n Aofo = 'curv %f d0 %f z0 %f ctheta %f phi %f barcode %d' % (YKHO.curv, YKHO.d0, YKHO.z0, YKHO.ctheta, YKHO.phi, YKHO.barcode)\n return Aofo",
"def D1Rr(YKHO):\n return 'patient_id:{}, m... | [
"0.71572053",
"0.70599174",
"0.70522857",
"0.69488704",
"0.69239604",
"0.6836956",
"0.6819858",
"0.6812137",
"0.6802802",
"0.6789431",
"0.6776764",
"0.6766797",
"0.6753627",
"0.6751448",
"0.6745186",
"0.67189395",
"0.6699513",
"0.6692117",
"0.6681709",
"0.6676318",
"0.6663971... | 0.74030674 | 0 |
Add padding for unet of given depth | def AeBf(WKvO, rb7a=4):
di96 = oyIN.power(2, rb7a)
K0A_ = WKvO.shape[0] % di96
if K0A_ == 0:
return WKvO
elif len(WKvO.shape) == 2:
return oyIN.pad(WKvO, [(0, di96 - K0A_), (0, 0)], 'constant')
elif len(WKvO.shape) == 3:
return oyIN.pad(WKvO, [(0, di96 - K0A_), (0, di96 - K0A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A88a(g4y1, Ot1W, wH3T='channels_last', Z1S6=2):\n FpMw = Ot1W - 1\n bWa5 = (FpMw // 2 + 1) // Z1S6\n REHY = FpMw // 2 // Z1S6\n return XGdJ(g4y1, (bWa5, REHY), wH3T)",
"def OTSl(YKHO):\n return YKHO.paddings_shape_param('D')",
"def Qf2F(bySB, rb7a):\n exwG = int(bySB.get_shape().dims[-1])... | [
"0.66942734",
"0.6406283",
"0.61821586",
"0.6131536",
"0.5901226",
"0.5837195",
"0.57383364",
"0.56973714",
"0.56866306",
"0.56743133",
"0.56252444",
"0.551921",
"0.55042475",
"0.5423706",
"0.5403531",
"0.54034203",
"0.5395218",
"0.53895396",
"0.538164",
"0.5379684",
"0.53743... | 0.69494796 | 0 |
Returns the q'th percentile of the distribution given in the argument 'data'. Uses the 'precision' parameter to control the noise level. | def xI5m(nPrm, vexM, rhd_=1.0):
ywwl, Pyrc = oyIN.histogram(nPrm, bins=rhd_ * oyIN.sqrt(len(nPrm)))
NNMu = 1.0 * ywwl.cumsum() / len(nPrm)
for YRbF in range(0, len(NNMu)):
if NNMu[YRbF] > vexM:
return Pyrc[YRbF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jviO(nPrm):\n vexM = oyIN.percentile(nPrm, [25, 50, 75])\n return (vexM[0], vexM[1], vexM[2])",
"def m99B(YKHO):\n lJYz = qw7D(range(25, 42))\n Xgmb(FPyy(lJYz, 0.5), BjRM(lJYz))\n lJYz = sorted(qw7D([0.17483293, 0.99891939, 0.81377467, 0.8137437, 0.51990174, 0.35521497, 0.98751461]))\n Xgmb... | [
"0.72270185",
"0.7012418",
"0.6803648",
"0.67029893",
"0.67029893",
"0.669614",
"0.6685391",
"0.65556973",
"0.65500534",
"0.65500534",
"0.65500534",
"0.64803755",
"0.64564687",
"0.64286137",
"0.64046985",
"0.6381233",
"0.6363074",
"0.636056",
"0.6354891",
"0.63055617",
"0.626... | 0.7864236 | 0 |
Return true if light is on. | def Debg(YKHO):
return YKHO._is_on | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def Debg(YKHO):\n return YKHO._light_on",
"def h0Nz(YKHO) -> bool:\n return f34S.Light.value in YKHO.type_data.attributes",
"def h0Nz(YKHO) -> bool:\n return f34S.Light.value in YKHO.type_data.att... | [
"0.9035416",
"0.89275813",
"0.86664206",
"0.8008696",
"0.8008696",
"0.78880787",
"0.7866302",
"0.7610281",
"0.7565963",
"0.7415077",
"0.7345493",
"0.7335999",
"0.73116577",
"0.7303292",
"0.72991306",
"0.7243393",
"0.71792775",
"0.71722543",
"0.7157757",
"0.7157757",
"0.715775... | 0.67288214 | 71 |
Instruct the light to turn off. | def Z_rv(YKHO, **B2fa: Any) -> None:
YKHO._device.power_on = False
vzeF.debug('Turn off light %s', YKHO._device.ip) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)",
"def fnTm(YKHO):\n YKHO._light = 'OFF'",
"def fnTm(YKHO):\n YKHO._light = 'OFF'",
"def V8X5(YKHO):\n YKHO.turnOff()",
"def Z_rv(YKHO, **B2fa: Any) -> None:\n YKHO._set_light(r7z_)",
"def Z_rv(YKHO, **B2fa: Any) -> None:\n YKHO._light.tur... | [
"0.9141917",
"0.89695406",
"0.89557284",
"0.89015293",
"0.8897358",
"0.8873913",
"0.8805522",
"0.87862444",
"0.86670524",
"0.86476165",
"0.847877",
"0.8473624",
"0.84669805",
"0.8463841",
"0.8435901",
"0.8370482",
"0.83494097",
"0.8275936",
"0.82717854",
"0.82705396",
"0.8253... | 0.87764317 | 8 |
Calculate dawn time in the UTC timezone. | def pBTS(YKHO, _c1T, _UuI, fopC):
c1uj = YKHO._julianday(_c1T.day, _c1T.month, _c1T.year)
if _UuI > 89.8:
_UuI = 89.8
if _UuI < -89.8:
_UuI = -89.8
a1PO = YKHO._jday_to_jcentury(c1uj)
OCgA = YKHO._eq_of_time(a1PO)
HNED = YKHO._sun_declination(a1PO)
try:
O9Up = YKHO._h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uZGG(YKHO, _c1T=None, WY3t=True):\n if YKHO.astral is None:\n YKHO.astral = Q1BZ()\n if _c1T is None:\n _c1T = qcWV.date.today()\n uZGG = YKHO.astral.dawn_utc(_c1T, YKHO.latitude, YKHO.longitude)\n if WY3t:\n return uZGG.astimezone(YKHO.tz)\n else:\n return uZGG",
"... | [
"0.628965",
"0.59754497",
"0.58763033",
"0.5851417",
"0.5806555",
"0.5735901",
"0.56585526",
"0.56538594",
"0.55857354",
"0.55760634",
"0.5519843",
"0.55160165",
"0.55128175",
"0.55116653",
"0.53910935",
"0.5379949",
"0.536428",
"0.5360612",
"0.53601545",
"0.5338035",
"0.5333... | 0.76470286 | 0 |
Calculate solar noon time in the UTC timezone. | def FTeD(YKHO, _c1T, fopC):
c1uj = YKHO._julianday(_c1T.day, _c1T.month, _c1T.year)
HYwt = YKHO._jday_to_jcentury(c1uj + 0.5 + fopC / 360.0)
OCgA = YKHO._eq_of_time(HYwt)
N34W = 720.0 + fopC * 4.0 - OCgA
N34W = N34W / 60.0
ROt1 = int(N34W)
yVtz = int((N34W - ROt1) * 60)
CsFy = int(((N34W... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lV0U(YKHO, _c1T=None, WY3t=True):\n if YKHO.astral is None:\n YKHO.astral = Q1BZ()\n if _c1T is None:\n _c1T = qcWV.date.today()\n d9lq = YKHO.astral.solar_noon_utc(_c1T, YKHO.longitude)\n if WY3t:\n return d9lq.astimezone(YKHO.tz)\n else:\n return d9lq",
"def FTeD(... | [
"0.6777714",
"0.6724988",
"0.6343755",
"0.626581",
"0.62460506",
"0.59971875",
"0.59616363",
"0.594989",
"0.5928303",
"0.5893481",
"0.5877765",
"0.58015263",
"0.5749765",
"0.5749219",
"0.5719723",
"0.571865",
"0.571865",
"0.56694263",
"0.5617303",
"0.5612241",
"0.56063336",
... | 0.74279106 | 0 |
Calculate sunset time in the UTC timezone. | def j_Go(YKHO, _c1T, _UuI, fopC):
c1uj = YKHO._julianday(_c1T.day, _c1T.month, _c1T.year)
a1PO = YKHO._jday_to_jcentury(c1uj)
OCgA = YKHO._eq_of_time(a1PO)
HNED = YKHO._sun_declination(a1PO)
try:
O9Up = YKHO._hour_angle_sunset(_UuI, HNED)
except:
raise EFX7('Sun remains below hor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IiKz(YKHO, _c1T=None, WY3t=True):\n if YKHO.astral is None:\n YKHO.astral = Q1BZ()\n if _c1T is None:\n _c1T = qcWV.date.today()\n IiKz = YKHO.astral.sunset_utc(_c1T, YKHO.latitude, YKHO.longitude)\n if WY3t:\n return IiKz.astimezone(YKHO.tz)\n else:\n return IiKz",
... | [
"0.65699303",
"0.64950114",
"0.63881093",
"0.61808205",
"0.61730003",
"0.6134258",
"0.60923696",
"0.60374415",
"0.60219973",
"0.5875478",
"0.5835468",
"0.5818931",
"0.5818664",
"0.58087045",
"0.5799634",
"0.57659054",
"0.57374483",
"0.5717565",
"0.5715173",
"0.5711675",
"0.57... | 0.74293166 | 0 |
Calculate dusk time in the UTC timezone. | def _sbR(YKHO, _c1T, _UuI, fopC):
c1uj = YKHO._julianday(_c1T.day, _c1T.month, _c1T.year)
if _UuI > 89.8:
_UuI = 89.8
if _UuI < -89.8:
_UuI = -89.8
a1PO = YKHO._jday_to_jcentury(c1uj)
OCgA = YKHO._eq_of_time(a1PO)
HNED = YKHO._sun_declination(a1PO)
try:
O9Up = YKHO._h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JT1u():\n return GRk0.timegm(ITS7.gmtime())",
"def _meq():\n return 'UTC'",
"def m7L9():\n swig = rIAI('US/Eastern')\n wzkt = qcWV.datetime.now(swig).time()\n return wzkt",
"def rIAI():\n pass",
"def W5lc():\n return qcWV.datetime.now(FXGE.utc)",
"def pBTS(YKHO, _c1T, _UuI, fopC)... | [
"0.69508314",
"0.6756243",
"0.646933",
"0.64476836",
"0.64054435",
"0.6378315",
"0.6367498",
"0.6344899",
"0.630024",
"0.6293508",
"0.62492496",
"0.62225604",
"0.6172558",
"0.615256",
"0.6152383",
"0.6115891",
"0.61116207",
"0.610577",
"0.6104182",
"0.6066876",
"0.606603",
... | 0.7123817 | 0 |
Calculate ruhakaalam times in the UTC timezone. | def KXDL(YKHO, _c1T, _UuI, fopC):
if _c1T is None:
_c1T = qcWV.date.today()
try:
kxLF = YKHO.sunrise_utc(_c1T, _UuI, fopC)
IiKz = YKHO.sunset_utc(_c1T, _UuI, fopC)
except:
raise EFX7('Sun remains below horizon on this day, at this location.')
CgYU = (IiKz - kxLF) / 8
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B6h6(YKHO, _c1T=None, WY3t=True):\n if YKHO.astral is None:\n YKHO.astral = Q1BZ()\n if _c1T is None:\n _c1T = qcWV.date.today()\n B6h6 = YKHO.astral.rahukaalam_utc(_c1T, YKHO.latitude, YKHO.longitude)\n if WY3t:\n for H5ew, JRYC in B6h6.items():\n B6h6[H5ew] = JRYC.... | [
"0.6330134",
"0.61681116",
"0.60523003",
"0.59781736",
"0.5969716",
"0.56076247",
"0.55986744",
"0.55825686",
"0.5552908",
"0.5434768",
"0.53342485",
"0.53334755",
"0.53267014",
"0.5321076",
"0.5287703",
"0.5276938",
"0.5276938",
"0.5272016",
"0.52586037",
"0.5246418",
"0.522... | 0.6230036 | 1 |
Calculate the azimuth of the sun in the UTC timezone. | def icE8(YKHO, maVG, _UuI, fopC):
if _UuI > 89.8:
_UuI = 89.8
if _UuI < -89.8:
_UuI = -89.8
lhKE = -maVG.utcoffset().seconds / 3600.0
ZCQF = maVG.astimezone(FXGE.utc)
NfGH = ZCQF.hour + ZCQF.minute / 60.0 + ZCQF.second / 3600
tQ7A = YKHO._julianday(maVG.day, maVG.month, maVG.year... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def icE8(YKHO, maVG=None):\n if YKHO.astral is None:\n YKHO.astral = Q1BZ()\n if maVG is None:\n maVG = qcWV.datetime.now(tz=YKHO.tz)\n return YKHO.astral.solar_azimuth(maVG, YKHO.latitude, YKHO.longitude)",
"def d1Zr(f4IJ):\n xzOe = rSp5(0 * P6bq.deg, 0 * P6bq.deg, 0 * P6bq.km)\n np... | [
"0.67131555",
"0.6504118",
"0.64523375",
"0.6439935",
"0.6436878",
"0.641925",
"0.6345609",
"0.6120051",
"0.6109093",
"0.6081307",
"0.6055947",
"0.6041341",
"0.6014488",
"0.5996403",
"0.5920246",
"0.5873155",
"0.586566",
"0.5822988",
"0.58073103",
"0.5778373",
"0.573385",
"... | 0.6639568 | 1 |
Calculate the elevation of the sun. | def etfU(YKHO, maVG, _UuI, fopC):
if _UuI > 89.8:
_UuI = 89.8
if _UuI < -89.8:
_UuI = -89.8
lhKE = -maVG.utcoffset().seconds / 3600.0
ZCQF = maVG.astimezone(FXGE.utc)
NfGH = ZCQF.hour + ZCQF.minute / 60.0 + ZCQF.second / 3600
tQ7A = YKHO._julianday(maVG.day, maVG.month, maVG.year... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yzQA(YKHO):\n return YKHO.altitude - YKHO.heightAboveGround",
"def yzQA(WKvO, LVAh):\n nUeQ = Hy7s.path.abspath('..') + '\\\\Shape\\\\Shape.vrt'\n gEmA = MDcw.Open(nUeQ)\n _ger = gEmA.GetGeoTransform()\n j8Br = int((WKvO - _ger[0]) / _ger[1])\n wg7x = int((LVAh - _ger[3]) / _ger[5])\n pr... | [
"0.6999895",
"0.668499",
"0.6425622",
"0.6422953",
"0.6396147",
"0.6377398",
"0.63741803",
"0.61598486",
"0.61377054",
"0.61298066",
"0.5996655",
"0.59889287",
"0.5973628",
"0.58740777",
"0.58685416",
"0.5855382",
"0.58081555",
"0.57917005",
"0.5758174",
"0.5704655",
"0.57044... | 0.5579604 | 27 |
returns ghost layer width. | def g_p1(YKHO):
return YKHO.mesh.discretization.ghosts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V8C_(YKHO):\n return len(YKHO._background) if YKHO._background else 0",
"def usGx(YKHO):\n pass",
"def TVTK(YKHO) -> int:\n return YKHO._obj[YKHO.x_dim].size",
"def xiCJ(YKHO):\n return _VfD.Dimensions_getWidth(YKHO)",
"def xiCJ(YKHO):\n return YKHO._image.width()",
"def V8C_(YKHO) -> ... | [
"0.74909455",
"0.73224",
"0.71234566",
"0.7045834",
"0.69717586",
"0.6938515",
"0.69376487",
"0.693364",
"0.693364",
"0.69244164",
"0.692004",
"0.68859637",
"0.6870889",
"0.6870504",
"0.6858993",
"0.6841644",
"0.68349195",
"0.68349195",
"0.68349195",
"0.6833873",
"0.68273956"... | 0.0 | -1 |
returns id of the task that owns this topology | def _TKD(YKHO):
return YKHO._mpis.task_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _TKD(YKHO):\n return YKHO._task_id",
"def _TKD(YKHO):\n return YKHO._task_id",
"def _TKD(YKHO):\n return YKHO._task_id",
"def _TKD(YKHO):\n return YKHO._task_id",
"def kGvP(YKHO):\n raise NotImplementedError('Must be implemented by subclass.')",
"def _TKD(YKHO) -> str:\n return YKHO... | [
"0.75476515",
"0.75476515",
"0.75476515",
"0.75476515",
"0.7357828",
"0.72557056",
"0.7198645",
"0.6637944",
"0.6620676",
"0.65653884",
"0.6474",
"0.6436455",
"0.63189775",
"0.6293882",
"0.6293882",
"0.62764555",
"0.6194142",
"0.61492884",
"0.6114325",
"0.611248",
"0.60441566... | 0.75019264 | 4 |
Comparison of two topologies. Two topos are equal if they have the same mesh, shape and domain. | def xa14(YKHO, Elif):
if YKHO.__class__ != Elif.__class__:
return False
return YKHO.mesh == Elif.mesh and sqqd.equal(YKHO.shape, Elif.shape).all() and (YKHO.domain == Elif.domain) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngk5(twgA, tHob):\n return xw7t(twgA, tHob, 'v') and N0cH(twgA, tHob, 'f')",
"def T0rY(C3nE, cntZ, CsFy):\n if cntZ.empty() and CsFy.empty():\n return True\n elif cntZ.vertices.shape[0] != CsFy.vertices.shape[0]:\n return False\n elif cntZ.edges.shape[0] != CsFy.edges.shape[0]:\n ... | [
"0.7391109",
"0.69211054",
"0.66308445",
"0.6267532",
"0.6095765",
"0.5980267",
"0.5966569",
"0.5945673",
"0.59418166",
"0.5940273",
"0.59177405",
"0.5912851",
"0.59052336",
"0.59029365",
"0.5899751",
"0.5899751",
"0.589094",
"0.587771",
"0.58488256",
"0.5842145",
"0.5818348"... | 0.651133 | 3 |
Not equal operator. Seems to be required in addition to __eq__ to avoid 'cornercase' behaviors. | def Vdqg(YKHO, Elif):
Aofo = YKHO.__eq__(Elif)
if Aofo is NotImplemented:
return Aofo
return not Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, RKYb):\n return not YKHO.__eq__(RKYb)",
"def Vdqg(YKHO, Elif):\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif)... | [
"0.8394335",
"0.8386683",
"0.8160081",
"0.81121725",
"0.81121725",
"0.81121725",
"0.81121725",
"0.8075682",
"0.80685496",
"0.80672383",
"0.8056072",
"0.8056072",
"0.8056072",
"0.8056072",
"0.8056072",
"0.8056072",
"0.8056072",
"0.8056072",
"0.8056072",
"0.8056072",
"0.8056072... | 0.0 | -1 |
True if ghost layer length is not zero. | def CPSi(YKHO):
return not oyIN.all(YKHO.mesh.discretization.ghosts == 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(YKHO):\n return len(YKHO.layers) == 0",
"def FBfn(YKHO):\n return Npgh.prod(Npgh.tensor(YKHO.x.shape)).item() == 0",
"def aWo0(YKHO):\n return False",
"def iHGU(YKHO):\n return YKHO.dims == 0",
"def FBfn(YKHO) -> bool:\n return YKHO.num_grna() == 0",
"def qiBc(YKHO):\n if YKHO.... | [
"0.7561698",
"0.72112876",
"0.7065583",
"0.7046145",
"0.7030016",
"0.69214237",
"0.6830907",
"0.6792221",
"0.67822015",
"0.67809653",
"0.67568576",
"0.6733361",
"0.6685363",
"0.6656976",
"0.6638194",
"0.6637561",
"0.6615059",
"0.660577",
"0.65900713",
"0.6586594",
"0.658374",... | 0.72264445 | 1 |
return the id of the present topology. This id is unique among all defined topologies. | def unpH(YKHO):
return YKHO.__id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO) -> str:\n return str(YKHO.coordinator.gios.station_id)",
"def LHjG(YKHO):\n return YKHO._topology_name",
"def zLC2(YKHO):\n return YKHO._topology",
"def C3RF(YKHO):\n return id(YKHO)",
"def wuRQ(YKHO):\n if YKHO.config.node_id is None:\n YKHO.config.node_id = str(kxTZ()... | [
"0.69869524",
"0.66642356",
"0.6493194",
"0.6485879",
"0.64025915",
"0.63910806",
"0.6356197",
"0.62523925",
"0.62455714",
"0.62014794",
"0.6190886",
"0.61564124",
"0.6125926",
"0.60740584",
"0.6072235",
"0.60693944",
"0.60588557",
"0.6046706",
"0.60322815",
"0.60287",
"0.602... | 0.0 | -1 |
True if target and current object are equal and have the same parent. Equal means same mesh, same shape and same domain. | def VpE_(YKHO, pan_):
awMJ = YKHO.parent() == pan_.parent()
return sqqd.equal(YKHO.shape, pan_.shape).all() and awMJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if YKHO.__class__ != Elif.__class__:\n return False\n return YKHO.mesh == Elif.mesh and sqqd.equal(YKHO.shape, Elif.shape).all() and (YKHO.domain == Elif.domain)",
"def xa14(YKHO, Elif):\n Bpjt = YKHO.parent1.rid == Elif.parent1.rid and YKHO.parent2.rid == Elif.parent2.rid... | [
"0.70844996",
"0.66548616",
"0.66513604",
"0.6646044",
"0.64481336",
"0.6433953",
"0.63558435",
"0.63483995",
"0.6299958",
"0.6295003",
"0.62756413",
"0.6267289",
"0.6267289",
"0.6267289",
"0.6267289",
"0.6267289",
"0.626677",
"0.62649465",
"0.62575334",
"0.6204619",
"0.62005... | 0.7603044 | 0 |
Calculate cumulative probability from a list of probabilities | def y7r8(CsxD):
if not epAf.isclose(sum(CsxD.values()), 1, rel_tol=0.001):
ValueError('Input probabilities do not sum to 1.')
yvT9 = []
OIFX = 0
for G1Hx, Ty9i in CsxD.items():
OIFX += Ty9i
yvT9.append((G1Hx, OIFX))
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eqa2(YKHO):\n return list(pD6w(YKHO.probability_distribution()))",
"def jZZ9(YKHO):\n return YKHO.probabilities.cumsum(-1)",
"def s9Sb(YKHO, nsSB, hkxX):\n QyzB = tuKI()\n for XP5J in range(len(nsSB)):\n if QyzB < nsSB[XP5J]:\n return hkxX[XP5J]",
"def uPxI(nPrm):\n wjRY ... | [
"0.7402393",
"0.6922577",
"0.6584128",
"0.6549101",
"0.65145403",
"0.63271004",
"0.62952936",
"0.6243871",
"0.6198528",
"0.6177253",
"0.61713296",
"0.6147572",
"0.6130507",
"0.61138874",
"0.610889",
"0.60820377",
"0.60630465",
"0.6000701",
"0.59468305",
"0.5934774",
"0.592816... | 0.68047005 | 2 |
Find the difference in unique counts of two distributions and return as percentage | def JBzX(oVOT, ZcTA):
f6h6 = set(oVOT.keys()) - set(ZcTA.keys())
RXws = set(ZcTA.keys()) - set(oVOT.keys())
return sum([oVOT[G1Hx] for G1Hx in f6h6] + [ZcTA[G1Hx] for G1Hx in RXws]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QMUZ(iIDh, C0Wu, eHNT):\n h3cP = 10\n Kwrj, yEMw = (iIDh.value_counts().to_dict(), float(len(iIDh)))\n Kwrj['_Empty_'] = sum(iIDh.map(lambda WKvO: lZXZ(WKvO)))\n ki9b, T0Lp = (C0Wu.value_counts().to_dict(), float(len(C0Wu)))\n ki9b['_Empty_'] = sum(C0Wu.map(lambda WKvO: lZXZ(WKvO)))\n hkxX = ... | [
"0.6724862",
"0.6445435",
"0.6334011",
"0.6307524",
"0.62770367",
"0.6188019",
"0.61835897",
"0.6182407",
"0.6136989",
"0.60972196",
"0.60946876",
"0.6093589",
"0.60753244",
"0.6063225",
"0.60029024",
"0.5996274",
"0.5993236",
"0.5984397",
"0.5978963",
"0.59674275",
"0.596382... | 0.62579167 | 5 |
Compute drift score as the percentage of overlapping probabilities | def XNh0(lXh8, L2WA):
return sum(abs(oyIN.asarray(lXh8) - oyIN.array(L2WA)) * 100) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RHr8(YKHO):\n _ger = YKHO.ground_truth.flatten().astype(oyIN.int8)\n pG0V = YKHO.segmentation.flatten().astype(oyIN.int8)\n jvAP = oyIN.absolute(_ger - pG0V).sum()\n Usi0 = (_ger * pG0V).sum()\n if Usi0 != 0:\n return jvAP / (2.0 * Usi0)\n else:\n return -1",
"def UZbM(W061, M... | [
"0.6732613",
"0.6518283",
"0.6426524",
"0.6424136",
"0.6334499",
"0.6254541",
"0.6188233",
"0.61744064",
"0.6095827",
"0.6077343",
"0.6045876",
"0.5990594",
"0.5986692",
"0.59864265",
"0.59614843",
"0.5960128",
"0.5936167",
"0.5935803",
"0.59078395",
"0.590509",
"0.58760846",... | 0.7712985 | 0 |
take 1D float array of rewards and compute discounted reward | def AC1_(YKHO, Mkmy, KMvS):
g2lU = oyIN.zeros_like(Mkmy)
S8qo = 0
for a1PO in reversed(range(0, Mkmy.size)):
if Mkmy[a1PO] != 0:
S8qo = 0
S8qo = S8qo * KMvS + Mkmy[a1PO]
g2lU[a1PO] = S8qo
return oyIN.array(g2lU, dtype=oyIN.float64) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for a1PO in reversed(range(0, len(vwlo))):\n S8qo = S8qo * lA6Z + vwlo[a1PO]\n g2lU[a1PO] = S8qo\n return g2lU",
"def AC1_(vwlo, KMvS):\n AFmI = vwlo.shape\n if len(AFmI) == 1:\n g2lU = oyIN.zeros(shape=(*AFmI, 1),... | [
"0.8100923",
"0.78397125",
"0.7792625",
"0.7742053",
"0.7653779",
"0.75987715",
"0.7583268",
"0.75820553",
"0.7579539",
"0.7536054",
"0.7519005",
"0.75047183",
"0.7467692",
"0.7456702",
"0.7433794",
"0.7426565",
"0.74062765",
"0.73950297",
"0.7370545",
"0.73564714",
"0.732851... | 0.69414437 | 29 |
Gets the x coordinate of this atom. Returns | def nIKw(YKHO):
return YKHO.coords[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p5xg(YKHO):\n return YKHO.x_coord",
"def vAgg(YKHO):\n return YKHO.position.x",
"def h1ia(YKHO) -> float:\n return YKHO.x_coord",
"def YH9x(YKHO):\n return YKHO.actual_coordinates[0]",
"def WKvO(YKHO):\n return YKHO._coords[0]",
"def Aco_(YKHO):\n return YKHO.__pos_x",
"def WKvO(Y... | [
"0.8656004",
"0.8442269",
"0.84205234",
"0.83736426",
"0.8353082",
"0.83035123",
"0.82412916",
"0.8212211",
"0.82038295",
"0.81553376",
"0.8097587",
"0.80942667",
"0.7829044",
"0.78141165",
"0.78131527",
"0.7794782",
"0.7767253",
"0.77473986",
"0.773306",
"0.76320076",
"0.762... | 0.8588003 | 1 |
Gets the y coordinate of this atom. Returns | def yDCK(YKHO):
return YKHO.coords[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LVAh(YKHO):\n return YKHO._coords[1]",
"def LVAh(YKHO):\n return _VfD.Point_y(YKHO)",
"def n_tS(YKHO) -> float:\n return YKHO.y_coord",
"def bDS1(YKHO):\n return YKHO.__y",
"def xdjK(YKHO):\n return YKHO._y",
"def bDS1(YKHO):\n return YKHO._y",
"def LVAh(YKHO):\n return YKHO.co... | [
"0.85608596",
"0.8548253",
"0.8522086",
"0.84701955",
"0.84196323",
"0.8416182",
"0.8400373",
"0.8396566",
"0.8396566",
"0.8329309",
"0.8296547",
"0.82906246",
"0.8284484",
"0.82126814",
"0.8207803",
"0.8192792",
"0.81803006",
"0.79841197",
"0.795317",
"0.7928298",
"0.7902805... | 0.8524346 | 2 |
Gets the mass of this atom. Returns | def yrkk(YKHO):
return YKHO.m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bMbF(YKHO):\n return YKHO._mass",
"def bMbF(YKHO):\n return YKHO._mass",
"def yrkk(YKHO):\n MUcb.lib.geometry_get_mass.restype = Z9rn.c_float\n return MUcb.lib.geometry_get_mass(YKHO._geometry)",
"def bMbF(YKHO):\n return YKHO._getAttribute(URbA.mass)",
"def MLew(YKHO):\n N8fB = YKHO.... | [
"0.8615101",
"0.8615101",
"0.8449791",
"0.827885",
"0.81125116",
"0.7995724",
"0.7925729",
"0.7887645",
"0.78556985",
"0.78556985",
"0.7763608",
"0.76362807",
"0.7610759",
"0.7542108",
"0.735307",
"0.7303788",
"0.7278605",
"0.7205126",
"0.7170194",
"0.7108265",
"0.7056702",
... | 0.8783727 | 0 |
Gets the euler tensor of this atom. Returns | def yBWk(YKHO):
return qw7D([BHsk * YKHO.coords for BHsk in YKHO.coords]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _2j2(YKHO):\n return YKHO.imu.get_euler()",
"def UBpC(YKHO, a1PO, LVAh, jmzt):\n return YKHO.plant.rhs(a1PO, LVAh, jmzt)",
"def xoL9(YKHO):\n return YKHO.cur_tensor",
"def E3E4(YKHO):\n return YKHO.deltaE",
"def tTpl(YKHO):\n return oyIN.matrix([YKHO.y - YKHO.arg[0, 0] * YKHO.x ** 3 - YK... | [
"0.65126354",
"0.6043174",
"0.59547913",
"0.590338",
"0.5897418",
"0.58401287",
"0.58401287",
"0.5825734",
"0.5797117",
"0.5762484",
"0.572737",
"0.5713381",
"0.5662122",
"0.5651244",
"0.5643783",
"0.56348675",
"0.56310534",
"0.56149095",
"0.56149095",
"0.56149095",
"0.559066... | 0.64894354 | 1 |
Gets the symbol of this atom. Returns | def LRuN(YKHO):
return YKHO.symbol | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o61b(YKHO):\n return YKHO._symbol",
"def o61b(YKHO):\n return YKHO.__symbol",
"def _bGg(YKHO) -> str:\n return YKHO._symbol",
"def DUQK(YKHO):\n return _VfD.InitialAssignment_getSymbol(YKHO)",
"def qvA0(YKHO):\n N8fB = YKHO.__dict__\n Jd40 = YKHO\n while Jd40 is not None:\n ... | [
"0.85209036",
"0.8121533",
"0.76356006",
"0.75384325",
"0.73964155",
"0.7318919",
"0.73038465",
"0.7173422",
"0.7173422",
"0.70371056",
"0.69875854",
"0.6953391",
"0.6953391",
"0.6947048",
"0.6933806",
"0.6931096",
"0.68797255",
"0.68131906",
"0.6801363",
"0.6762182",
"0.6737... | 0.85047024 | 1 |
Gets the label of this atom. Returns | def DeTJ(YKHO):
return YKHO.label | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ(YKHO):\n return YKHO._label",
"def DeTJ(YKHO):\n return YKHO._label",
"def zLGW(YKHO):\n return YKHO._label",
"def DeTJ(YKHO):\n return YKHO.attrs.get(YKHO.AttributeNames.LABEL, None)",
"def zLGW(YKHO) -> str:\n return YKHO._label",
"def zLGW(YKHO):\n return YKHO.label_str",
... | [
"0.844582",
"0.843851",
"0.8382816",
"0.8357652",
"0.8327101",
"0.8326299",
"0.82825094",
"0.8282123",
"0.82630473",
"0.82630473",
"0.82630473",
"0.82630473",
"0.82630473",
"0.82630473",
"0.82630473",
"0.82630473",
"0.82630473",
"0.82630473",
"0.8249067",
"0.8249067",
"0.8157... | 0.8260186 | 19 |
Gets the euclid distance from this atom to the given atom. Returns | def Is3K(YKHO, WhQ6):
return aJJu.norm(YKHO.get_coords() - WhQ6.get_coords()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zG70(YKHO) -> int:\n return YKHO.get_measurement_data().distance",
"def Ayfi(Emd4, fMAh, kZtE):\n return oyIN.linalg.norm((fMAh - kZtE).atom_loc)",
"def k9Tn(YKHO, JLR5):\n LM_e, RnOm = JLR5.get_coordinates()\n pJ_5, bXMf = YKHO._coordinates\n _gRY = (LM_e - pJ_5) ** 2 + (RnOm - bXMf) ** 2\n... | [
"0.66581625",
"0.6649904",
"0.6637657",
"0.6630217",
"0.6601542",
"0.6598605",
"0.6596507",
"0.63966656",
"0.636073",
"0.63055176",
"0.62724113",
"0.62593937",
"0.6219049",
"0.62136334",
"0.62126756",
"0.6210324",
"0.61876845",
"0.61710095",
"0.616928",
"0.61606264",
"0.61590... | 0.8762926 | 0 |
Returns True if the content type is valid. | def LFq8(Emd4, m5r4: str) -> bool:
return m5r4 in Emd4.CONTENT_TYPES.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lJ4U(m5r4: str) -> bool:\n m5r4 = m5r4.strip()\n return _NpM(mEpa, m5r4)",
"def Jrp8(m5r4: str) -> bool:\n return lJ4U(m5r4) or KVrZ(m5r4) or rCXE(m5r4) or UH5F(m5r4) or _I0c(m5r4) or UtNY(m5r4) or fy_S(m5r4)",
"def xQRa(YKHO):\n GO9R = {'string', 'int', 'float', 'datetime', 'boolean'}\n S2d... | [
"0.7517771",
"0.7417243",
"0.70675975",
"0.6998834",
"0.68573606",
"0.6832993",
"0.67981493",
"0.6714344",
"0.6592863",
"0.6578096",
"0.6575198",
"0.6568513",
"0.6541694",
"0.65321887",
"0.65321887",
"0.6491889",
"0.6491021",
"0.6470095",
"0.6450657",
"0.63938487",
"0.6392137... | 0.8173388 | 0 |
Setup the Binary Sensor platform fo EnOcean. | def AbqV(ajET, GPtr, deL4, tR5e=None):
SjDy = GPtr.get(vLVn, None)
BCo9 = GPtr.get(BiEj, 'EnOcean binary sensor')
deL4([BkCQ(SjDy, BCo9)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AbqV(ajET: HomeAssistant, GPtr: ConfigType, uVcJ: AddEntitiesCallback, tR5e: DiscoveryInfoType | None=None) -> None:\n if tR5e is None:\n return\n dx0Q = []\n for mWFP in ajET.data[Sugg]:\n if mWFP in u32P:\n dx0Q.append(Gxic(mWFP))\n uVcJ(dx0Q, True)",
"def FCbF(YKHO):\n... | [
"0.6923445",
"0.6406349",
"0.6367884",
"0.630438",
"0.6297725",
"0.62513864",
"0.61724937",
"0.61561346",
"0.61022043",
"0.60586834",
"0.60506696",
"0.60256183",
"0.59961325",
"0.59727365",
"0.59395474",
"0.5925092",
"0.5920433",
"0.5904643",
"0.58785045",
"0.5876473",
"0.587... | 0.7185503 | 0 |
Cache Bitcoin Core `listtransactions` result | def Y0cF(YKHO, MI4h):
NdG0 = {UShr['txid']: UShr for UShr in MI4h if UShr['category'] != 'orphan'}
b1_Y = YKHO.cache_raw_txs(NdG0)
oNS_ = YKHO.cache_txs(b1_Y)
return oNS_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L2jE(YKHO):\n pass",
"def dmfD(YKHO, UTX6, QdZT=True, PJWX=False, **B2fa):\n if YKHO.apikey is None:\n QdZT = False\n if PJWX:\n print('load_transactions', UTX6)\n FYKK = Hy7s.path.join(YKHO.cache_dir, UTX6 + '.json')\n N58m = None\n gQVK = []\n if Hy7s.path.exists(FYKK):\n... | [
"0.7081673",
"0.69549066",
"0.6773823",
"0.66765434",
"0.66569877",
"0.660985",
"0.64810187",
"0.6435633",
"0.6424816",
"0.64240026",
"0.63761234",
"0.63547444",
"0.6330722",
"0.6327416",
"0.6321605",
"0.6307761",
"0.6297964",
"0.6269112",
"0.62622905",
"0.62056416",
"0.61879... | 0.531083 | 95 |
Set the value of a field of this SugarEntry. | def O1R3(YKHO, vXX7, BWXx):
if vXX7 in YKHO._module._fields.keys():
YKHO._fields[vXX7] = BWXx
if vXX7 not in YKHO._dirty_fields:
YKHO._dirty_fields.append(vXX7)
else:
raise AttributeError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6Nn(YKHO, Jyyj, BWXx):\n Jyyj = YKHO.find_first(Jyyj)\n if Jyyj is not None:\n Jyyj.value = BWXx",
"def m6eq(YKHO, Jyyj, BWXx):\n YKHO._contents[Jyyj] = BWXx",
"def oMVk(YKHO, Jyyj, BWXx):\n YKHO.__setitem__(Jyyj, BWXx)",
"def CTe4(YKHO, wEf2):\n YKHO.value = wEf2",
"def j6Nn(YKH... | [
"0.80276215",
"0.7663564",
"0.7361043",
"0.698671",
"0.67777884",
"0.6728715",
"0.6728715",
"0.6699535",
"0.6690918",
"0.66474557",
"0.65780324",
"0.65772873",
"0.65541035",
"0.65541035",
"0.65541035",
"0.6483881",
"0.64639485",
"0.64538443",
"0.6433936",
"0.64043486",
"0.637... | 0.5998666 | 55 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Welcome! Let's explore some US bikeshare data!")
while True:
try:
j5sA = input('Enter the name of the city you want to explore the data of (chicago, new york city, or washington): ')
if j5sA not in dict.keys(OerS):
raise Exception('Invalid city ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.66714007",
"0.65354675",
"0.64593667",
"0.6374057",
"0.6348314",
"0.63097656",
"0.62868035",
"0.6259136",
"0.62316",
"0.62130964",
"0.62050414",
"0.6181105",
"0.6171822",
"0.61686903",
"0.6158568",
"0.61582303",
"0.61532456",
"0.61444426",
"0.6131269",
"0.610484",
"0.61025... | 0.58922184 | 44 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name
if x0eS != 'all':
X_bn = [... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.7787979 | 37 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z, x0eS, CjKC):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
if x0eS == 'all':
hFPs = jQ3Z['month'].mode()[0]
print('The most frequent month of travel is: ', GRk0.month_name[hFPs])
if CjKC == 'all':
DSEJ = jQ3Z['day_of_week'].mode()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.773628",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7625196",
"0.7623158",
"0.7612803",
"0.76002145",
"0.7583... | 0.74564284 | 39 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
Ri0C = jQ3Z['Start Station'].mode()[0]
print('The most frequent start station is:\n ->', Ri0C)
k7bv = jQ3Z['End Station'].mode()[0]
print('The most frequent end station is:\n ->', k7bv)
jQ3Z['co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.7134921 | 58 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
bJiw = round(oyIN.sum(jQ3Z['Trip Duration']) / 60 / 60, 2)
print('Total travel time over the selected period (in hours) is: ', bJiw)
RB_u = round(oyIN.mean(jQ3Z['Trip Duration']) / 60, 2)
print('The mean travel time ove... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.784452 | 32 |
Automatically generate a basename or else use the one provided. | def bGQY(y8rd, Q9dT):
if y8rd['output_basename'] in ['', 'auto']:
return Q9dT.input_fname.lower().split('.json')[0]
else:
return y8rd['output_basename'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z7rK(aPr_, Hghu=None):\n return '{}.{}'.format(aPr_, CBZq.get(Hghu, None))",
"def fxz1(YKHO, aPr_, sWmO=None, ZI14=None, gnjM=True, YBcr=None):\n if not aPr_:\n tO9_ = 'Unable to generate filename for command %s. ' % YKHO.cmd\n tO9_ += 'basename is not set!'\n raise ValueError(tO9_... | [
"0.7162985",
"0.71130204",
"0.71064943",
"0.70725805",
"0.70725805",
"0.6988176",
"0.6869497",
"0.6849551",
"0.672568",
"0.6704061",
"0.66934615",
"0.65571934",
"0.6534404",
"0.64742374",
"0.6473847",
"0.646789",
"0.6352444",
"0.6296653",
"0.6274127",
"0.62643063",
"0.6244662... | 0.77820414 | 0 |
Returns True is string is a number. | def ye72(KCHu):
try:
float(KCHu)
return True
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except... | [
"0.8850884",
"0.8807396",
"0.87623763",
"0.87143797",
"0.86495125",
"0.86369324",
"0.8611852",
"0.8602863",
"0.85868895",
"0.8556723",
"0.8540039",
"0.846474",
"0.83899784",
"0.83504224",
"0.82912153",
"0.8217023",
"0.81620115",
"0.81181717",
"0.8040893",
"0.8037833",
"0.8027... | 0.8597067 | 10 |
Returns the requested income range view in full detail. | def rmPU(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fanc(YKHO):\n return YKHO.range",
"def UE63(fRw6):\n BsDK = fRw6.activeRange()\n try:\n BsDK = (fRw6.toDisplay(min(BsDK)), fRw6.toDisplay(max(BsDK)))\n except AttributeError:\n pass\n return BsDK",
"def iBOJ(YKHO) -> float:\n return float(YKHO.query(':timebase:range?'))",
... | [
"0.5824725",
"0.5612662",
"0.55873716",
"0.54605365",
"0.54605365",
"0.5444421",
"0.5324229",
"0.5322225",
"0.5300629",
"0.5277442",
"0.5269223",
"0.5262803",
"0.5230335",
"0.52228105",
"0.5218109",
"0.51848346",
"0.5179088",
"0.51768607",
"0.5176457",
"0.51640767",
"0.515955... | 0.700728 | 0 |
Returns the path to a package or cwd if that cannot be found. | def _Bqv(mWFP):
try:
return Hy7s.path.abspath(Hy7s.path.dirname(HwRy.modules[mWFP].__file__))
except (KeyError, AttributeError):
return Hy7s.getcwd() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEYt():\n hxGQ = yj5T()\n return hxGQ.replace('.', '/')",
"def MfYP():\n return GkAb(xAKo).parent",
"def YO0r(B5hb):\n tk5Y = apVC.get_package_root(B5hb)\n if dZ_K(B5hb):\n ax6Y = Hy7s.path.dirname(tk5Y)\n return Hy7s.path.dirname(ax6Y)\n return Hy7s.path.dirname(tk5Y)",
"... | [
"0.7696517",
"0.7690331",
"0.74621767",
"0.7385542",
"0.735868",
"0.7233731",
"0.7224455",
"0.68511313",
"0.6845975",
"0.6718231",
"0.66957945",
"0.6695532",
"0.66928047",
"0.6686478",
"0.66783273",
"0.65905523",
"0.6572487",
"0.6560498",
"0.6526827",
"0.6526827",
"0.6525203"... | 0.7207799 | 7 |
AMAZON.FallbackIntent is only available in enUS locale. This handler will not be triggered except in that locale, so it is safe to deploy on any locale. | def uvXI(om6U):
P57q = "The {} skill can't help you with that. I can look up a word in the dictionary for you".format(eMGe)
l3s1 = 'I can look up a word in the dictionary, Just say any word in English'
om6U.response_builder.speak(P57q).ask(l3s1)
return om6U.response_builder.response | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aQ4o():\n ACxF = 'Fallback Message'\n T3xu = \"Sorry. I couldn't understood it. Please say again.\"\n P1Y2 = False\n Zz_i = {'speech_output': T3xu}\n return Xeta(Zz_i, waxf(ACxF, T3xu, 'Ask me to say hello...', P1Y2))",
"def pVzp(YKHO, Ikh1, DuqQ, Ol8d, BoeP):\n tO9_ = Ol8d.reply('mycroft.s... | [
"0.5877872",
"0.5590493",
"0.54645765",
"0.54645765",
"0.5408452",
"0.5357488",
"0.5357488",
"0.53020567",
"0.52696717",
"0.5181241",
"0.5174385",
"0.5174385",
"0.5167612",
"0.51544356",
"0.5071739",
"0.5060613",
"0.5031619",
"0.49786136",
"0.4932573",
"0.4868343",
"0.4852090... | 0.5607832 | 1 |
Returns the application directory. | def JZZ_():
return UMs9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _SvI(YKHO):\n return YKHO._app_dir",
"def QDYj(YKHO) -> str:\n return Hy7s.path.join(YKHO._project_dir, 'appdata')",
"def DIA3():\n if getattr(HwRy, 'frozen', False):\n return Hy7s.path.dirname(HwRy.executable)\n else:\n return Hy7s.path.dirname(xAKo)",
"def BJCG():\n if geta... | [
"0.8366667",
"0.7430168",
"0.73666745",
"0.7327246",
"0.731593",
"0.73079205",
"0.7295801",
"0.7282597",
"0.7222026",
"0.7218878",
"0.72007245",
"0.7196958",
"0.71940666",
"0.7193182",
"0.71729344",
"0.7168441",
"0.7165291",
"0.7127867",
"0.70903516",
"0.70903516",
"0.708375"... | 0.8947229 | 0 |
Return all of the projects for a given Workspace | def VNaC(YKHO, id):
return YKHO.request(ck73.WORKSPACES + '/{0}'.format(id) + '/projects') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKRp(YKHO):\n llaM = []\n B2Dn = 1\n while not len(llaM) % 100:\n llaM += YKHO._get('/projects?{0}'.format(uRlK.urlencode({'per_page': 100, 'page': B2Dn})))\n if not llaM:\n break\n B2Dn += 1\n return llaM",
"def PKRp(YKHO, *OPAs):\n from wkcdd.models.helpers im... | [
"0.74932694",
"0.7458052",
"0.7392975",
"0.73838377",
"0.737569",
"0.7349293",
"0.730423",
"0.7239146",
"0.72044575",
"0.7192277",
"0.71775115",
"0.71413183",
"0.71402687",
"0.713788",
"0.71083647",
"0.7094535",
"0.7094002",
"0.7023004",
"0.6982993",
"0.6981023",
"0.6948548",... | 0.7177935 | 10 |
Fastest way to just consume an iterator. | def E_nZ(oHE7):
MUE7(oHE7, maxlen=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_nZ(oHE7, exwG=None):\n if exwG is None:\n g760.deque(oHE7, maxlen=0)\n else:\n next(uOgj(oHE7, exwG, exwG), None)",
"def E_nZ(oHE7, exwG=None):\n if exwG is None:\n MUE7(oHE7, maxlen=0)\n else:\n next(uOgj(oHE7, exwG, exwG), None)",
"def E_nZ(oHE7, exwG=None, next=... | [
"0.72329783",
"0.71654475",
"0.67598706",
"0.606488",
"0.60311234",
"0.60123855",
"0.5925557",
"0.592464",
"0.5869508",
"0.5843964",
"0.5843164",
"0.58100826",
"0.57714164",
"0.5746189",
"0.5739034",
"0.5733739",
"0.57284236",
"0.5727265",
"0.5726913",
"0.5722843",
"0.5719147... | 0.7133738 | 2 |
Creates a Flask application. | def z_uJ(YKHO, GPtr={}):
P4t4 = L2w0('signac-dashboard')
P4t4.config.update({'SECRET_KEY': Hy7s.urandom(24), 'SEND_FILE_MAX_AGE_DEFAULT': 300})
P4t4.config.update(GPtr)
if P4t4.config.get('PROFILE'):
bo34.warning('Application profiling is enabled.')
from werkzeug.contrib.profiler import ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nd3k() -> L2w0:\n bo34.info('creating flask application')\n P4t4 = L2w0('pasta', static_url_path='/static', static_folder='./static', template_folder='./views')\n GPtr.flask.SECRET_KEY = Hy7s.urandom(32)\n GPtr.flask.SERVER_NAME = None\n P4t4.config.from_mapping(GPtr.flask)\n return P4t4",
... | [
"0.85773337",
"0.84702384",
"0.8426545",
"0.84196174",
"0.84109616",
"0.8407618",
"0.83920527",
"0.8390233",
"0.83386177",
"0.8315099",
"0.83083576",
"0.8303583",
"0.8263485",
"0.8250034",
"0.8220532",
"0.82113147",
"0.82048184",
"0.81779504",
"0.81760377",
"0.8132556",
"0.81... | 0.0 | -1 |
Test the popxl simple addition example | def a9UR(YKHO):
Ux0P = 'simple_addition.py'
YKHO.run_python(Ux0P, file_dir=aOxl, working_dir=aOxl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)",
"def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)",
"def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)",
"def P5cm(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)",
"def gGPK(YKHO):\n YKHO.assertEqual(H2v5(5, 9), 14)",
"def Qk_G(YKHO):\n ... | [
"0.65502137",
"0.65502137",
"0.65502137",
"0.64431727",
"0.63226366",
"0.6308587",
"0.628632",
"0.6280519",
"0.6253776",
"0.6226606",
"0.62078625",
"0.61861867",
"0.61754084",
"0.6170412",
"0.61692727",
"0.615465",
"0.6137472",
"0.61353207",
"0.6135082",
"0.6111764",
"0.60554... | 0.70790774 | 0 |
Test the popxl simple addition example | def vlLB(YKHO):
Ux0P = 'tensor_addition.py'
YKHO.run_python(Ux0P, file_dir=aOxl, working_dir=aOxl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a9UR(YKHO):\n Ux0P = 'simple_addition.py'\n YKHO.run_python(Ux0P, file_dir=aOxl, working_dir=aOxl)",
"def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)",
"def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)",
"def nsFJ(YKHO):\n YKHO.assertEqual(H2v5(3, 8), 11)",
"def P5cm(YKHO):\n YKH... | [
"0.70790774",
"0.65502137",
"0.65502137",
"0.65502137",
"0.64431727",
"0.63226366",
"0.6308587",
"0.628632",
"0.6280519",
"0.6253776",
"0.6226606",
"0.62078625",
"0.61861867",
"0.61754084",
"0.6170412",
"0.61692727",
"0.615465",
"0.6137472",
"0.61353207",
"0.6135082",
"0.6111... | 0.5998734 | 25 |
Sets the inventory_item_group_key of this MigrateListingResponse. | def TxYz(YKHO, TxYz):
YKHO._inventory_item_group_key = TxYz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jhsI(YKHO, W9z1):\n YKHO.group_key = W9z1\n return YKHO",
"def pkX7(YKHO, H5ew):\n axhA = {'hosts': [], 'vars': {}}\n YKHO.inventory[H5ew] = axhA\n return",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n ... | [
"0.61608106",
"0.5747907",
"0.5501611",
"0.5501611",
"0.5501611",
"0.5501611",
"0.5501611",
"0.5501611",
"0.54646176",
"0.5375903",
"0.53397626",
"0.53107274",
"0.53079605",
"0.53079605",
"0.53079605",
"0.5276046",
"0.5275524",
"0.5234625",
"0.51415646",
"0.5023584",
"0.50226... | 0.8215857 | 0 |
Sets the listing_id of this MigrateListingResponse. | def Lo2R(YKHO, Lo2R):
YKHO._listing_id = Lo2R | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yor9(QePW, Lo2R):\n _Z1k = Iofl(Lait, pk=Lo2R)\n _Z1k.delete()\n yEHD.success(QePW, 'Your listing has been removed from the database.')\n return vKnz(gxEw('addlisting'))",
"def QdZT(YKHO, jxlV):\n jxlV.sku = YKHO.asin\n jxlV.title = YKHO.title\n jxlV.brand = YKHO.brand\n jxlV.model = ... | [
"0.54151386",
"0.50424653",
"0.49489492",
"0.49403444",
"0.454123",
"0.4485277",
"0.4483447",
"0.44773117",
"0.44772324",
"0.44687784",
"0.4437293",
"0.44051337",
"0.4390934",
"0.4387617",
"0.43608093",
"0.43608093",
"0.4329542",
"0.430929",
"0.4308864",
"0.4278942",
"0.42528... | 0.8304697 | 0 |
Sets the marketplace_id of this MigrateListingResponse. | def aZe0(YKHO, aZe0):
YKHO._marketplace_id = aZe0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dMWo(YKHO, BWXx):\n super(pPpf, YKHO)._set_input('AWSMarketplaceId', BWXx)",
"def Ag8D(YKHO, Ag8D):\n YKHO._registration_marketplace_id = Ag8D",
"def Lo2R(YKHO, Lo2R):\n YKHO._listing_id = Lo2R",
"def eUG7(YKHO, eUG7):\n YKHO._feed_id = eUG7",
"def AsxT(YKHO, AsxT):\n YKHO._sportsbook_id... | [
"0.68738204",
"0.60930204",
"0.5767067",
"0.5177802",
"0.5172527",
"0.49900728",
"0.49834523",
"0.49834523",
"0.49834523",
"0.49834523",
"0.49759004",
"0.49217004",
"0.4853357",
"0.48184267",
"0.47949788",
"0.47403908",
"0.4719058",
"0.46994156",
"0.46824563",
"0.4669242",
"0... | 0.7607272 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, _K88):
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.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 |
Return a string representation of the data source. | def wHJl(YKHO):
HGq1 = YKHO.__class__.__name__
zA5h = str(YKHO._connection)
aPD1 = YKHO._table
return '{0}({1}, table={2!r})'.format(HGq1, zA5h, aPD1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlXF(YKHO) -> 'outputs.DatasourceResponse':\n return qe4Y.get(YKHO, 'data_source_info')",
"def wHJl(YKHO):\n return f'{YKHO.data.to_string(max_rows=None)}'",
"def zAg0(YKHO):\n Aofo = ['rows: ' + str(YKHO.rows), 'columns: ' + str(YKHO.columns), 'data: ' + str(YKHO.data)]\n return '\\n'.join(Aof... | [
"0.68854165",
"0.6721115",
"0.6685485",
"0.6684266",
"0.6650188",
"0.6645341",
"0.66202325",
"0.65916854",
"0.65053624",
"0.65022147",
"0.64303386",
"0.64116",
"0.63948935",
"0.6373004",
"0.63408643",
"0.63251483",
"0.6323788",
"0.63087815",
"0.62860817",
"0.62860817",
"0.626... | 0.6042121 | 58 |
Normalize value for use as SQLite column name. | def fZdf(iVRZ):
if not isinstance(iVRZ, str):
tO9_ = "expected column of type 'str', got {0!r} instead"
raise TypeError(tO9_.format(iVRZ.__class__.__name__))
iVRZ = iVRZ.strip()
iVRZ = iVRZ.replace('"', '""')
if iVRZ == '':
iVRZ = '_empty_'
return '"' + iVRZ + '"' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, BWXx):\n return str(BWXx)",
"def HEvq(BWXx):\n BWXx = BWXx.strip()\n BWXx = ZbWC.sub('\\\\s{2,}', ' ', BWXx)\n BWXx = ZbWC.sub('/{2,}', '/', BWXx)\n BWXx = ZbWC.sub('\\\\\\\\{2,}', '\\\\\\\\', BWXx)\n BWXx = ZbWC.sub('-{2,}', '-', BWXx)\n BWXx = ZbWC.sub('\\\\*{2,}', '*', BWXx... | [
"0.67484534",
"0.6414139",
"0.64000803",
"0.6394291",
"0.62145936",
"0.62083966",
"0.62030125",
"0.6104114",
"0.6069231",
"0.604914",
"0.59973955",
"0.5969188",
"0.59618396",
"0.59541255",
"0.5941385",
"0.5940318",
"0.58399045",
"0.5810996",
"0.5807061",
"0.5782344",
"0.57602... | 0.6757992 | 1 |
Handles linear scaling rule and LR decay. Scale learning rate at epoch boundaries provided in LR_SCHEDULE by the provided scaling factor. | def FvGu(aOou, pSFx, ybL1, Ep8u):
del pSFx, ybL1
OmaG = BJsk.BASE_LEARNING_RATE * Ep8u / 128
b0Ix = OmaG
for hObQ, aMlA in cAYu:
if aOou >= aMlA:
b0Ix = OmaG * hObQ
else:
break
return b0Ix | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Whsi(K0do, qtWj, ma4o, a4i2, Qhsg):\n Nw4g = len([Bc7X for Bc7X in Qhsg if Bc7X < qtWj])\n tspZ = ma4o * a4i2 ** Nw4g\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ",
"def lNKw(K0do, qtWj, nmF_, ma4o):\n djTW = ma4o * 0.1\n DJmW = ma4o - djTW\n tspZ = djTW + DJmW - DJmW * min(1... | [
"0.6678285",
"0.66325784",
"0.6542716",
"0.6416433",
"0.6363528",
"0.63295734",
"0.62856907",
"0.6262307",
"0.62460744",
"0.6218091",
"0.61931515",
"0.6188003",
"0.61465865",
"0.614502",
"0.6144216",
"0.6138332",
"0.6137244",
"0.6130743",
"0.6122289",
"0.6105983",
"0.61007077... | 0.65202194 | 3 |
Initializing Cin as o, l2 as empty list and final as empty string | def H2v5(_1qI, zDMu, TKZC):
TKZC = 0
V70B = []
lXgg = ''
'Using for loop for starting addition from the last indexed number'
for YRbF in range(len(_1qI) - 1, -1, -1):
Ty7c = _1qI[YRbF]
w4m0 = zDMu[YRbF]
w_Eq = Oa1e.XOR(Ty7c, w4m0)
yvp2 = Oa1e.NAND(w_Eq, TKZC)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, NTXN=(0, 0), u7RQ=(0, 0)):\n YKHO._output = [NTXN, u7RQ]",
"def FIMM(YKHO, vC9B=None, Z9rn=True):\n if vC9B is None:\n vC9B = 0\n if vC9B == []:\n vC9B = 0\n try:\n vC9B = ncGu._translate(vC9B)\n except:\n try:\n vC9B = [__xj(vC9B)]\n ex... | [
"0.6156051",
"0.60318625",
"0.5904705",
"0.5787834",
"0.5713939",
"0.56481445",
"0.56018484",
"0.5577135",
"0.5547001",
"0.55375147",
"0.54676926",
"0.5461734",
"0.54217833",
"0.5397691",
"0.5375492",
"0.5349343",
"0.53472084",
"0.53472084",
"0.53247607",
"0.53019875",
"0.529... | 0.0 | -1 |
Sets the qos_type of this NetflowFilters. | def FwNQ(YKHO, FwNQ):
YKHO._qos_type = FwNQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qaYg(YKHO, qaYg: int):\n if qaYg is not None and qaYg > 2:\n raise ValueError('Invalid value for `qos`, must be a value less than or equal to `2`')\n if qaYg is not None and qaYg < 0:\n raise ValueError('Invalid value for `qos`, must be a value greater than or equal to `0`')\n YKHO._qos ... | [
"0.69267035",
"0.665194",
"0.6260876",
"0.6227411",
"0.61854005",
"0.6163835",
"0.61467403",
"0.6086317",
"0.6053018",
"0.60085255",
"0.5876559",
"0.5848173",
"0.56665426",
"0.56485814",
"0.5635002",
"0.559807",
"0.53704786",
"0.52488047",
"0.5220447",
"0.5210421",
"0.5194985... | 0.8767736 | 0 |
Sets the ip_version of this NetflowFilters. | def mVJr(YKHO, mVJr):
YKHO._ip_version = mVJr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cf76(YKHO, cf76):\n YKHO._vip = cf76",
"def bYMk(YKHO, bYMk):\n YKHO._protocol_version = bYMk",
"def dPFR(YKHO, DpZH):\n if DpZH is not None:\n try:\n YKHO.version = [int(XP5J) for XP5J in DpZH.split('.')]\n except AttributeError:\n if len(DpZH) == 2:\n ... | [
"0.63388056",
"0.58770186",
"0.5694638",
"0.5656582",
"0.5656582",
"0.56357116",
"0.55922115",
"0.55871147",
"0.5562405",
"0.55404204",
"0.5522308",
"0.55216855",
"0.5502596",
"0.5502596",
"0.5502596",
"0.5491824",
"0.54864305",
"0.54864305",
"0.54864305",
"0.54864305",
"0.54... | 0.8065355 | 0 |
Sets the netflow_devices of this NetflowFilters. | def py8f(YKHO, py8f):
YKHO._netflow_devices = py8f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YfpN(YKHO, YfpN):\n YKHO._devices = YfpN",
"def YfpN(YKHO, YfpN):\n YKHO._devices = YfpN",
"def rXRk(qIxc):\n global devices\n if qIxc is not None:\n YfpN = [ht2j.device(YRbF) for YRbF in jZ4I.literal_eval('[' + qIxc + ']')]\n ht2j.cuda.set_device(YfpN[0])\n else:\n YfpN... | [
"0.6428995",
"0.6428995",
"0.5585992",
"0.54547",
"0.5365216",
"0.5246433",
"0.51710474",
"0.50898916",
"0.50661755",
"0.5038719",
"0.5004575",
"0.49756554",
"0.4974928",
"0.49667272",
"0.4923213",
"0.48840016",
"0.48089606",
"0.48036066",
"0.47994307",
"0.4792203",
"0.479017... | 0.86378056 | 0 |
Sets the app_type of this NetflowFilters. | def zv1n(YKHO, zv1n):
YKHO._app_type = zv1n | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D1_G(YKHO):\n return YKHO._event['app_type']",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def WWD2(YKHO, type: int, filter: int) -> None:\n ...",
"def TG_K(YKHO, type):\n YKHO._type = type",
"def TG_K(YKHO, type: int):\n YKHO.type = type... | [
"0.6110402",
"0.6007707",
"0.6007707",
"0.5881547",
"0.5826859",
"0.5705285",
"0.5672125",
"0.5645346",
"0.5516108",
"0.5502036",
"0.5485557",
"0.54566836",
"0.5454073",
"0.5433174",
"0.54322046",
"0.54322046",
"0.54322046",
"0.54322046",
"0.54322046",
"0.54322046",
"0.543220... | 0.8083322 | 0 |
Sets the nbar_application_names of this NetflowFilters. | def uVBz(YKHO, uVBz):
YKHO._nbar_application_names = uVBz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jbwm(YKHO, KUnM):\n if YKHO._completer:\n YKHO._completer.model().setNameFilters(KUnM)",
"def WZrJ(YKHO, VpPs):\n YKHO._name = VpPs",
"def pfVe(YKHO):\n return YKHO.get_app_names()",
"def kvcN(YKHO, BWXx):\n YKHO._app_name = BWXx",
"def mcIN(YKHO, mcIN: ConfigNodePropertyArray):\n ... | [
"0.5579578",
"0.5503502",
"0.51913893",
"0.5184525",
"0.51769996",
"0.5006621",
"0.4993549",
"0.48435128",
"0.48244205",
"0.4778834",
"0.4738988",
"0.47321886",
"0.47280967",
"0.47159183",
"0.4684673",
"0.46767935",
"0.46593088",
"0.46463352",
"0.4644338",
"0.46052152",
"0.46... | 0.86759675 | 0 |
Sets the conversation of this NetflowFilters. | def AiRR(YKHO, AiRR):
YKHO._conversation = AiRR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NJzm(YKHO, AiRR):\n YKHO.conversation = AiRR",
"def vlHf(YKHO, fQEs):\n YKHO.gift_conversation = fQEs",
"def QdZT(YKHO, AiRR):\n YKHO.content_type = 'application/json'\n YKHO.method = 'PATCH'\n LEXu = n9Bx(qQXR.loads(YKHO.send(AiRR).content))\n YKHO._initialize_collection_properties(LEXu)... | [
"0.7668855",
"0.6350055",
"0.52989596",
"0.5078657",
"0.50487155",
"0.50432694",
"0.49181578",
"0.49066126",
"0.4869592",
"0.48333606",
"0.4763982",
"0.47448006",
"0.47074327",
"0.46813306",
"0.46577984",
"0.45800743",
"0.4569655",
"0.45474747",
"0.45351785",
"0.44976678",
"0... | 0.72746265 | 1 |
Sets the direction of this NetflowFilters. | def XSoh(YKHO, XSoh):
YKHO._direction = XSoh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oivB(YKHO, XSoh: str) -> None:\n YKHO.wink.set_fan_direction(XSoh)",
"def oivB(YKHO, bPBo):\n YKHO.__direction = bPBo",
"def zWQZ(YKHO, EaBz=2):\n pass",
"def sM7_(YKHO, *qIxc, **B2fa):\n return UiY4.coordsys_setdirection(YKHO, *qIxc, **B2fa)",
"def oivB(YKHO, dir):\n if dir == 0:\n ... | [
"0.7139598",
"0.7040138",
"0.7006834",
"0.69987583",
"0.6970682",
"0.68825686",
"0.6802282",
"0.6730239",
"0.63998103",
"0.6399511",
"0.6314273",
"0.6307516",
"0.63062197",
"0.63062197",
"0.62925655",
"0.62565696",
"0.6163797",
"0.6163797",
"0.60774386",
"0.60496444",
"0.6030... | 0.7080141 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, O1dx):
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.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 |
Modify an existing outcome group. Fields not provided are left as is; unrecognized fields are ignored. When changing the parent outcome group, the new parent group must belong to the same context as this outcome group, and must not be a descendant of this outcome group (i.e. no cycles allowed). | def omKU(msGH, id, leAC=None, JBZA=None, HyVm=None, Hnjh=None, **GDFt):
pmON = '/v1/global/outcome_groups/{id}'
pB3N = {'title': leAC, 'description': JBZA, 'vendor_guid': HyVm, 'parent_outcome_group_id': Hnjh}
bD7m = msGH.base_api_url + pmON.format(id=id)
geh0 = x0hE.put(msGH, bD7m, payload=pB3N, **GDFt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uLdq(msGH, Z31E, id, leAC=None, JBZA=None, HyVm=None, Hnjh=None, **GDFt):\n pmON = '/v1/accounts/{account_id}/outcome_groups/{id}'\n pB3N = {'title': leAC, 'description': JBZA, 'vendor_guid': HyVm, 'parent_outcome_group_id': Hnjh}\n bD7m = msGH.base_api_url + pmON.format(account_id=Z31E, id=id)\n g... | [
"0.61605686",
"0.61406356",
"0.5958074",
"0.59414357",
"0.5797429",
"0.5668177",
"0.5624319",
"0.5621426",
"0.561763",
"0.5572149",
"0.5539592",
"0.55051327",
"0.54824334",
"0.5461233",
"0.54360193",
"0.5433018",
"0.53988296",
"0.5368346",
"0.53458875",
"0.52537507",
"0.52454... | 0.67553115 | 0 |
Modify an existing outcome group. Fields not provided are left as is; unrecognized fields are ignored. When changing the parent outcome group, the new parent group must belong to the same context as this outcome group, and must not be a descendant of this outcome group (i.e. no cycles allowed). | def uLdq(msGH, Z31E, id, leAC=None, JBZA=None, HyVm=None, Hnjh=None, **GDFt):
pmON = '/v1/accounts/{account_id}/outcome_groups/{id}'
pB3N = {'title': leAC, 'description': JBZA, 'vendor_guid': HyVm, 'parent_outcome_group_id': Hnjh}
bD7m = msGH.base_api_url + pmON.format(account_id=Z31E, id=id)
geh0 = x0h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def omKU(msGH, id, leAC=None, JBZA=None, HyVm=None, Hnjh=None, **GDFt):\n pmON = '/v1/global/outcome_groups/{id}'\n pB3N = {'title': leAC, 'description': JBZA, 'vendor_guid': HyVm, 'parent_outcome_group_id': Hnjh}\n bD7m = msGH.base_api_url + pmON.format(id=id)\n geh0 = x0hE.put(msGH, bD7m, payload=pB3... | [
"0.67553115",
"0.61406356",
"0.5958074",
"0.59414357",
"0.5797429",
"0.5668177",
"0.5624319",
"0.5621426",
"0.561763",
"0.5572149",
"0.5539592",
"0.55051327",
"0.54824334",
"0.5461233",
"0.54360193",
"0.5433018",
"0.53988296",
"0.5368346",
"0.53458875",
"0.52537507",
"0.52454... | 0.61605686 | 1 |
Modify an existing outcome group. Fields not provided are left as is; unrecognized fields are ignored. When changing the parent outcome group, the new parent group must belong to the same context as this outcome group, and must not be a descendant of this outcome group (i.e. no cycles allowed). | def AR4m(msGH, S7Jr, id, leAC=None, JBZA=None, HyVm=None, Hnjh=None, **GDFt):
pmON = '/v1/courses/{course_id}/outcome_groups/{id}'
pB3N = {'title': leAC, 'description': JBZA, 'vendor_guid': HyVm, 'parent_outcome_group_id': Hnjh}
bD7m = msGH.base_api_url + pmON.format(course_id=S7Jr, id=id)
geh0 = x0hE.p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def omKU(msGH, id, leAC=None, JBZA=None, HyVm=None, Hnjh=None, **GDFt):\n pmON = '/v1/global/outcome_groups/{id}'\n pB3N = {'title': leAC, 'description': JBZA, 'vendor_guid': HyVm, 'parent_outcome_group_id': Hnjh}\n bD7m = msGH.base_api_url + pmON.format(id=id)\n geh0 = x0hE.put(msGH, bD7m, payload=pB3... | [
"0.67553115",
"0.61605686",
"0.5958074",
"0.59414357",
"0.5797429",
"0.5668177",
"0.5624319",
"0.5621426",
"0.561763",
"0.5572149",
"0.5539592",
"0.55051327",
"0.54824334",
"0.5461233",
"0.54360193",
"0.5433018",
"0.53988296",
"0.5368346",
"0.53458875",
"0.52537507",
"0.52454... | 0.61406356 | 2 |
Deleting an outcome group deletes descendant outcome groups and outcome links. The linked outcomes themselves are only deleted if all links to the outcome were deleted. Aligned outcomes cannot be deleted; as such, if all remaining links to an aligned outcome are included in this group's descendants, the group deletion ... | def uh_U(msGH, id, **GDFt):
pmON = '/v1/global/outcome_groups/{id}'
bD7m = msGH.base_api_url + pmON.format(id=id)
geh0 = x0hE.delete(msGH, bD7m, **GDFt)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FTay(msGH, Z31E, id, **GDFt):\n pmON = '/v1/accounts/{account_id}/outcome_groups/{id}'\n bD7m = msGH.base_api_url + pmON.format(account_id=Z31E, id=id)\n geh0 = x0hE.delete(msGH, bD7m, **GDFt)\n return geh0",
"def j3nB(YKHO):\n P0YW.step(JUtC, ZFEF)\n assert TbA1.run('delete', ZFEF)[0], \"F... | [
"0.66492325",
"0.6541948",
"0.6461525",
"0.6348538",
"0.633461",
"0.6283196",
"0.6217388",
"0.6203314",
"0.6168106",
"0.61588556",
"0.6150082",
"0.61439496",
"0.6109929",
"0.61078966",
"0.6060277",
"0.60184395",
"0.6001307",
"0.6001307",
"0.59507966",
"0.5928808",
"0.5904541"... | 0.662239 | 1 |
Deleting an outcome group deletes descendant outcome groups and outcome links. The linked outcomes themselves are only deleted if all links to the outcome were deleted. Aligned outcomes cannot be deleted; as such, if all remaining links to an aligned outcome are included in this group's descendants, the group deletion ... | def FTay(msGH, Z31E, id, **GDFt):
pmON = '/v1/accounts/{account_id}/outcome_groups/{id}'
bD7m = msGH.base_api_url + pmON.format(account_id=Z31E, id=id)
geh0 = x0hE.delete(msGH, bD7m, **GDFt)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uh_U(msGH, id, **GDFt):\n pmON = '/v1/global/outcome_groups/{id}'\n bD7m = msGH.base_api_url + pmON.format(id=id)\n geh0 = x0hE.delete(msGH, bD7m, **GDFt)\n return geh0",
"def j3nB(YKHO):\n P0YW.step(JUtC, ZFEF)\n assert TbA1.run('delete', ZFEF)[0], \"Failed to delete group '%s'\" % ZFEF",
... | [
"0.662239",
"0.6541948",
"0.6461525",
"0.6348538",
"0.633461",
"0.6283196",
"0.6217388",
"0.6203314",
"0.6168106",
"0.61588556",
"0.6150082",
"0.61439496",
"0.6109929",
"0.61078966",
"0.6060277",
"0.60184395",
"0.6001307",
"0.6001307",
"0.59507966",
"0.5928808",
"0.5904541",
... | 0.66492325 | 0 |
Deleting an outcome group deletes descendant outcome groups and outcome links. The linked outcomes themselves are only deleted if all links to the outcome were deleted. Aligned outcomes cannot be deleted; as such, if all remaining links to an aligned outcome are included in this group's descendants, the group deletion ... | def xbsk(msGH, S7Jr, id, **GDFt):
pmON = '/v1/courses/{course_id}/outcome_groups/{id}'
bD7m = msGH.base_api_url + pmON.format(course_id=S7Jr, id=id)
geh0 = x0hE.delete(msGH, bD7m, **GDFt)
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FTay(msGH, Z31E, id, **GDFt):\n pmON = '/v1/accounts/{account_id}/outcome_groups/{id}'\n bD7m = msGH.base_api_url + pmON.format(account_id=Z31E, id=id)\n geh0 = x0hE.delete(msGH, bD7m, **GDFt)\n return geh0",
"def uh_U(msGH, id, **GDFt):\n pmON = '/v1/global/outcome_groups/{id}'\n bD7m = ms... | [
"0.66492325",
"0.662239",
"0.6541948",
"0.6461525",
"0.6348538",
"0.6283196",
"0.6217388",
"0.6203314",
"0.6168106",
"0.61588556",
"0.6150082",
"0.61439496",
"0.6109929",
"0.61078966",
"0.6060277",
"0.60184395",
"0.6001307",
"0.6001307",
"0.59507966",
"0.5928808",
"0.5904541"... | 0.633461 | 5 |
Link an outcome into the outcome group. The outcome to link can either be specified by a PUT to the link URL for a specific outcome (the outcome_id in the PUT URLs) or by supplying the information for a new outcome (title, description, ratings, mastery_points) in a POST to the collection. If linking an existing outcome... | def _N38(msGH, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):
pmON = '/v1/global/outcome_groups/{id}/outcomes'
pB3N = {'outcome_id': pxhe, 'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ_, 'ratings[descrip... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QQvF(msGH, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):\n pmON = '/v1/global/outcome_groups/{id}/outcomes/{outcome_id}'\n pB3N = {'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ_, 'ratings[descrip... | [
"0.717459",
"0.7163847",
"0.7061997",
"0.6714336",
"0.66986096",
"0.5106874",
"0.4798102",
"0.47242922",
"0.45309213",
"0.44986874",
"0.44323424",
"0.44262272",
"0.44031692",
"0.4358714",
"0.43203336",
"0.43203336",
"0.43050796",
"0.43030095",
"0.4294811",
"0.42858493",
"0.42... | 0.7362988 | 0 |
Link an outcome into the outcome group. The outcome to link can either be specified by a PUT to the link URL for a specific outcome (the outcome_id in the PUT URLs) or by supplying the information for a new outcome (title, description, ratings, mastery_points) in a POST to the collection. If linking an existing outcome... | def QQvF(msGH, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):
pmON = '/v1/global/outcome_groups/{id}/outcomes/{outcome_id}'
pB3N = {'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ_, 'ratings[description]':... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _N38(msGH, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):\n pmON = '/v1/global/outcome_groups/{id}/outcomes'\n pB3N = {'outcome_id': pxhe, 'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ_, 'ratings[... | [
"0.7362988",
"0.7163847",
"0.7061997",
"0.6714336",
"0.66986096",
"0.5106874",
"0.4798102",
"0.47242922",
"0.45309213",
"0.44986874",
"0.44323424",
"0.44262272",
"0.44031692",
"0.4358714",
"0.43203336",
"0.43203336",
"0.43050796",
"0.43030095",
"0.4294811",
"0.42858493",
"0.4... | 0.717459 | 1 |
Link an outcome into the outcome group. The outcome to link can either be specified by a PUT to the link URL for a specific outcome (the outcome_id in the PUT URLs) or by supplying the information for a new outcome (title, description, ratings, mastery_points) in a POST to the collection. If linking an existing outcome... | def aaNz(msGH, Z31E, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):
pmON = '/v1/accounts/{account_id}/outcome_groups/{id}/outcomes'
pB3N = {'outcome_id': pxhe, 'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _N38(msGH, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):\n pmON = '/v1/global/outcome_groups/{id}/outcomes'\n pB3N = {'outcome_id': pxhe, 'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ_, 'ratings[... | [
"0.7362988",
"0.717459",
"0.7163847",
"0.7061997",
"0.66986096",
"0.5106874",
"0.4798102",
"0.47242922",
"0.45309213",
"0.44986874",
"0.44323424",
"0.44262272",
"0.44031692",
"0.4358714",
"0.43203336",
"0.43203336",
"0.43050796",
"0.43030095",
"0.4294811",
"0.42858493",
"0.42... | 0.6714336 | 4 |
Link an outcome into the outcome group. The outcome to link can either be specified by a PUT to the link URL for a specific outcome (the outcome_id in the PUT URLs) or by supplying the information for a new outcome (title, description, ratings, mastery_points) in a POST to the collection. If linking an existing outcome... | def XxMj(msGH, Z31E, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):
pmON = '/v1/accounts/{account_id}/outcome_groups/{id}/outcomes/{outcome_id}'
pB3N = {'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ_, 'r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _N38(msGH, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):\n pmON = '/v1/global/outcome_groups/{id}/outcomes'\n pB3N = {'outcome_id': pxhe, 'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ_, 'ratings[... | [
"0.7362988",
"0.717459",
"0.7061997",
"0.6714336",
"0.66986096",
"0.5106874",
"0.4798102",
"0.47242922",
"0.45309213",
"0.44986874",
"0.44323424",
"0.44262272",
"0.44031692",
"0.4358714",
"0.43203336",
"0.43203336",
"0.43050796",
"0.43030095",
"0.4294811",
"0.42858493",
"0.42... | 0.7163847 | 2 |
Link an outcome into the outcome group. The outcome to link can either be specified by a PUT to the link URL for a specific outcome (the outcome_id in the PUT URLs) or by supplying the information for a new outcome (title, description, ratings, mastery_points) in a POST to the collection. If linking an existing outcome... | def Hx3Q(msGH, S7Jr, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):
pmON = '/v1/courses/{course_id}/outcome_groups/{id}/outcomes'
pB3N = {'outcome_id': pxhe, 'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _N38(msGH, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):\n pmON = '/v1/global/outcome_groups/{id}/outcomes'\n pB3N = {'outcome_id': pxhe, 'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ_, 'ratings[... | [
"0.7362988",
"0.717459",
"0.7163847",
"0.7061997",
"0.6714336",
"0.5106874",
"0.4798102",
"0.47242922",
"0.45309213",
"0.44986874",
"0.44323424",
"0.44262272",
"0.44031692",
"0.4358714",
"0.43203336",
"0.43203336",
"0.43050796",
"0.43030095",
"0.4294811",
"0.42858493",
"0.427... | 0.66986096 | 5 |
Link an outcome into the outcome group. The outcome to link can either be specified by a PUT to the link URL for a specific outcome (the outcome_id in the PUT URLs) or by supplying the information for a new outcome (title, description, ratings, mastery_points) in a POST to the collection. If linking an existing outcome... | def YGhj(msGH, S7Jr, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):
pmON = '/v1/courses/{course_id}/outcome_groups/{id}/outcomes/{outcome_id}'
pB3N = {'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ_, 'rat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _N38(msGH, id, pxhe=None, leAC=None, qQNS=None, JBZA=None, HyVm=None, slZ_=None, v47e=None, aNzQ=None, **GDFt):\n pmON = '/v1/global/outcome_groups/{id}/outcomes'\n pB3N = {'outcome_id': pxhe, 'title': leAC, 'display_name': qQNS, 'description': JBZA, 'vendor_guid': HyVm, 'mastery_points': slZ_, 'ratings[... | [
"0.7362988",
"0.717459",
"0.7163847",
"0.6714336",
"0.66986096",
"0.5106874",
"0.4798102",
"0.47242922",
"0.45309213",
"0.44986874",
"0.44323424",
"0.44262272",
"0.44031692",
"0.4358714",
"0.43203336",
"0.43203336",
"0.43050796",
"0.43030095",
"0.4294811",
"0.42858493",
"0.42... | 0.7061997 | 3 |
Declares an array. Initializes it to zeros. TODO Handle more than two dimensions. | def YAr_(ZaUd, ZlgM: ParsedStatementDim):
for mWFP, BWXx in ZlgM._dimensions:
MuED = e4k5(BWXx)
ZaUd.put_symbol(mWFP, MuED, M096.ARRAY, arg=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UX5C(YKHO, l87X, ytCQ=True):\n if ytCQ:\n return oyIN.zeros((1, YKHO.get_max_id(l87X)), dtype='float32')\n else:\n return oyIN.zeros((YKHO.get_max_id(l87X),), dtype='float32')",
"def JjWg(YKHO, ROpF):\n return oyIN.zeros((ROpF[0], ROpF[1]))",
"def VNqG(Emd4, Htse, KpGw):\n Htse = ... | [
"0.66444355",
"0.66228235",
"0.65934485",
"0.65253294",
"0.63993794",
"0.63414425",
"0.6330485",
"0.63030803",
"0.6281445",
"0.62749404",
"0.6273253",
"0.62706274",
"0.62627155",
"0.62333333",
"0.6128069",
"0.6122897",
"0.60999733",
"0.60854125",
"0.6048962",
"0.6042979",
"0.... | 0.0 | -1 |
Take a draft_dict that was already validated by draft_dict_validator then further sanitize, validate, and transform it. Ultimately return this "further validated" draft dict. It will have a slightly different set of keys the values for which can be used to directly create a Draft object. | def jqml(sLMW: Dict[str, Any], SGll: UserProfile) -> cuzp[str, ImMB]:
hGN5 = wD16(sLMW['content'])
E3oo = sLMW.get('timestamp', ITS7.time())
E3oo = round(E3oo, 6)
if E3oo < 0:
raise Y3dj(bGrB('Timestamp must not be negative.'))
Bc9f = k_T9(E3oo)
rlUa = ''
wzCW = None
Br5Q = sLMW[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Yg7(nPrm):\n return Y3ZY(uuid=S7kj(nPrm['uuid']), bundle_uuid=S7kj(nPrm['bundle_uuid']), name=nPrm['name'], updated_at=d5IO.parser.parse(nPrm['staged_draft']['updated_at']), files={pmON: PLrj(path=pmON, **nUeQ) for pmON, nUeQ in nPrm['staged_draft']['files'].items()}, links={mWFP: jizU(name=mWFP, direct=Ph... | [
"0.56550765",
"0.56206477",
"0.5450413",
"0.52529806",
"0.52475804",
"0.5194902",
"0.51102144",
"0.51091665",
"0.50821674",
"0.5033902",
"0.5002",
"0.49568045",
"0.4842201",
"0.48251075",
"0.48187992",
"0.48105076",
"0.48069793",
"0.47712836",
"0.47657195",
"0.47256124",
"0.4... | 0.7376656 | 0 |
Get next release version. | def YgXC(YKHO: _R, g35J: Literal['major', 'minor', 'micro']=Uxw6.MICRO, jZ6p: int=1) -> oWhY:
if g35J == Uxw6.MAJOR:
return YKHO.bump_major(jZ6p)
if g35J == Uxw6.MINOR:
return YKHO.bump_minor(jZ6p)
return YKHO.bump_micro(jZ6p) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mRU6(IJ4N=False, cbKy=False, Po4F=True):\n try:\n Mkmy = Y8WM.objects.latest()\n except Y8WM.DoesNotExist:\n return moxu('0.0.0')\n Ty9i = Mkmy.version\n if IJ4N:\n Ty9i = Ty9i.next_major()\n elif cbKy:\n Ty9i = Ty9i.next_minor()\n else:\n Ty9i = Ty9i.next_p... | [
"0.8136026",
"0.8127919",
"0.7517721",
"0.71033996",
"0.6974199",
"0.6932763",
"0.6864649",
"0.6853223",
"0.6828289",
"0.6774772",
"0.67444694",
"0.6615308",
"0.6605916",
"0.6588041",
"0.65674776",
"0.65634",
"0.65570605",
"0.6548462",
"0.6492869",
"0.64794105",
"0.6404592",
... | 0.0 | -1 |
Get next prerelease version. If version is stable bump `micro` for a proper versioning as well. Defaults to `rc` prereleases. | def TKzb(YKHO: _R, jZ6p: int=1, g35J: Literal['rc', 'alpha', 'beta', 'a', 'b']=None, YgXC: Literal['major', 'minor', 'micro']=Uxw6.MICRO) -> oWhY:
M2i8 = g35J or YKHO.prerelease_type or Uxw6.RC
EAdr = jZ6p if not YKHO.base.pre else max(YKHO.base.pre[-1], 1) + jZ6p
uv6v = (M2i8, EAdr)
Etq1 = YKHO._replac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mRU6(IJ4N=False, cbKy=False, Po4F=True):\n try:\n Mkmy = Y8WM.objects.latest()\n except Y8WM.DoesNotExist:\n return moxu('0.0.0')\n Ty9i = Mkmy.version\n if IJ4N:\n Ty9i = Ty9i.next_major()\n elif cbKy:\n Ty9i = Ty9i.next_minor()\n else:\n Ty9i = Ty9i.next_p... | [
"0.74618196",
"0.73501813",
"0.72785693",
"0.6688966",
"0.6573726",
"0.6516371",
"0.63295984",
"0.632609",
"0.61778533",
"0.60363823",
"0.60113215",
"0.60052055",
"0.59608686",
"0.59551674",
"0.594888",
"0.5904299",
"0.5897116",
"0.5894186",
"0.5864545",
"0.58246434",
"0.5817... | 0.6240163 | 8 |
Whether version is not prerelease or devrelease. | def kVYE(YKHO) -> bool:
return not YKHO.is_prerelease | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EeKk():\n return wx3I[-1]",
"def EeKk(YKHO):\n return bool(ZbWC.match('^[\\\\d.]+$', YKHO.version))",
"def ktqJ(DpZH=None):\n return HEQ_() and Yeel(DpZH)",
"def h1K3(Tl0b: str) -> bool:\n if Tl0b == 'current_branch':\n return False\n DpZH = gF4c.version.parse(Tl0b)\n return DpZH... | [
"0.7988306",
"0.7390222",
"0.72329897",
"0.71225476",
"0.70509773",
"0.674931",
"0.67251575",
"0.66882837",
"0.6623015",
"0.6601849",
"0.65394694",
"0.64932364",
"0.64372605",
"0.639243",
"0.63218457",
"0.6310093",
"0.62938845",
"0.6283808",
"0.6193949",
"0.6171282",
"0.60062... | 0.7183544 | 3 |