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 |
|---|---|---|---|---|---|---|
The constructor takes no argument. It initialises the container to an empty stack. | def FIMM(YKHO):
YKHO.container = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.stack = S9Ut()\n return",
"def HaB_():\n return S9Ut(0, None)",
"def FIMM(YKHO):\n YKHO.stack = MUE7()",
"def FIMM(YKHO):\n YKHO.stack = MUE7()",
"def FIMM(YKHO):\n YKHO._stack = MUE7()\n YKHO._first = None",
"def FIMM(YKHO, nPrm=()):\n S9Ut.__init__(YKHO, n... | [
"0.76663744",
"0.75148964",
"0.74737",
"0.74737",
"0.7468129",
"0.73328614",
"0.73246443",
"0.73246443",
"0.72906125",
"0.728138",
"0.72706056",
"0.722082",
"0.71975607",
"0.7174977",
"0.7174977",
"0.7174977",
"0.7174977",
"0.7174977",
"0.7174977",
"0.7174977",
"0.7174977",
... | 0.0 | -1 |
Test that a User instance is returned by UserFactory.build(). | def s6vg(YKHO):
CBIr = Rqdq.UserFactory.build()
YKHO.assertIsInstance(CBIr, mv1M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MM16(YKHO):\n CBIr = Rqdq.UserFactory.create()\n YKHO.assertIsInstance(CBIr, mv1M)",
"def ZlWU(YKHO):\n CBIr = Rqdq.SuperUserFactory.build()\n YKHO.assertIsInstance(CBIr, mv1M)",
"def CBIr():\n return NqOl()",
"def K9hf(ryCd, k6sM):\n CBIr = k6sM()\n assert ryCd.get_user(CBIr.id) == ... | [
"0.84592843",
"0.81660604",
"0.8157021",
"0.79766095",
"0.7967021",
"0.791785",
"0.782488",
"0.7584634",
"0.7539379",
"0.7531943",
"0.74655896",
"0.74301445",
"0.74301213",
"0.7427237",
"0.7425278",
"0.7421514",
"0.7394565",
"0.73793626",
"0.73722655",
"0.7363564",
"0.7357052... | 0.8708442 | 0 |
Test that a User instance is returned by UserFactory.create(). | def MM16(YKHO):
CBIr = Rqdq.UserFactory.create()
YKHO.assertIsInstance(CBIr, mv1M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cCBn(YKHO):\n CBIr = YKHO.make_user(pwd=False, confirm=False)\n assert CBIr in NCls.session",
"def s6vg(YKHO):\n CBIr = Rqdq.UserFactory.build()\n YKHO.assertIsInstance(CBIr, mv1M)",
"def CBIr():\n return NqOl()",
"def Jna8(YKHO):\n CBIr = Rqdq.SuperUserFactory.create()\n YKHO.assert... | [
"0.83770484",
"0.8327866",
"0.8159255",
"0.8157672",
"0.81144273",
"0.80491006",
"0.79977703",
"0.79632133",
"0.7939381",
"0.7900323",
"0.7899004",
"0.7895846",
"0.78951174",
"0.7861158",
"0.7860165",
"0.7853493",
"0.7849674",
"0.78271955",
"0.78203857",
"0.7805414",
"0.77933... | 0.8761219 | 0 |
Test that a User instance is returned by UserFactory.build_batch(5). | def ZtQy(YKHO):
DW23 = Rqdq.UserFactory.build_batch(5)
for a0GJ in DW23:
YKHO.assertIsInstance(a0GJ, mv1M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvYy(YKHO):\n DW23 = Rqdq.UserFactory.create_batch(5)\n for a0GJ in DW23:\n YKHO.assertIsInstance(a0GJ, mv1M)",
"def D5Rx(YKHO):\n DW23 = Rqdq.SuperUserFactory.build_batch(5)\n for a0GJ in DW23:\n YKHO.assertIsInstance(a0GJ, mv1M)",
"def xaFr(YKHO):\n DW23 = Rqdq.SuperUserFacto... | [
"0.8762094",
"0.8564661",
"0.84998894",
"0.71042293",
"0.698468",
"0.6981729",
"0.6911813",
"0.69012475",
"0.6860063",
"0.68338245",
"0.68103445",
"0.6808072",
"0.6807796",
"0.67603326",
"0.6751883",
"0.6653106",
"0.6636982",
"0.6618041",
"0.6592793",
"0.6559751",
"0.6527668"... | 0.89379376 | 0 |
Test that a User instance is returned by UserFactory.create_batch(5). | def JvYy(YKHO):
DW23 = Rqdq.UserFactory.create_batch(5)
for a0GJ in DW23:
YKHO.assertIsInstance(a0GJ, mv1M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZtQy(YKHO):\n DW23 = Rqdq.UserFactory.build_batch(5)\n for a0GJ in DW23:\n YKHO.assertIsInstance(a0GJ, mv1M)",
"def xaFr(YKHO):\n DW23 = Rqdq.SuperUserFactory.create_batch(5)\n for a0GJ in DW23:\n YKHO.assertIsInstance(a0GJ, mv1M)",
"def D5Rx(YKHO):\n DW23 = Rqdq.SuperUserFacto... | [
"0.884295",
"0.87040037",
"0.83635575",
"0.7380683",
"0.720812",
"0.71586275",
"0.6985457",
"0.6940323",
"0.6929018",
"0.6918055",
"0.6875027",
"0.68467546",
"0.6846393",
"0.6841553",
"0.6830282",
"0.677996",
"0.67311",
"0.67249733",
"0.669566",
"0.6661127",
"0.6660216",
"0... | 0.90708256 | 0 |
Test that a User instance is returned by factories.SuperUserFactory.create(). | def Jna8(YKHO):
CBIr = Rqdq.SuperUserFactory.create()
YKHO.assertIsInstance(CBIr, mv1M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZlWU(YKHO):\n CBIr = Rqdq.SuperUserFactory.build()\n YKHO.assertIsInstance(CBIr, mv1M)",
"def COmz():\n return qCmB()",
"def MM16(YKHO):\n CBIr = Rqdq.UserFactory.create()\n YKHO.assertIsInstance(CBIr, mv1M)",
"def CBIr():\n return NqOl()",
"def rCAj(YKHO):\n D3lj = 'super_user@aqu... | [
"0.838124",
"0.78869265",
"0.7852263",
"0.77025",
"0.7675956",
"0.7636774",
"0.76052433",
"0.75991917",
"0.75941294",
"0.75903374",
"0.7559094",
"0.7544209",
"0.75383663",
"0.7533679",
"0.7521262",
"0.75141644",
"0.75053847",
"0.747121",
"0.7463461",
"0.7456082",
"0.7443481",... | 0.8765672 | 0 |
Test that a User instance is returned by factories.SuperUserFactory.build_batch(5). | def D5Rx(YKHO):
DW23 = Rqdq.SuperUserFactory.build_batch(5)
for a0GJ in DW23:
YKHO.assertIsInstance(a0GJ, mv1M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xaFr(YKHO):\n DW23 = Rqdq.SuperUserFactory.create_batch(5)\n for a0GJ in DW23:\n YKHO.assertIsInstance(a0GJ, mv1M)",
"def ZtQy(YKHO):\n DW23 = Rqdq.UserFactory.build_batch(5)\n for a0GJ in DW23:\n YKHO.assertIsInstance(a0GJ, mv1M)",
"def JvYy(YKHO):\n DW23 = Rqdq.UserFactory.cr... | [
"0.88047606",
"0.84852237",
"0.8256288",
"0.69281435",
"0.6904192",
"0.6868374",
"0.68191546",
"0.68101406",
"0.67991704",
"0.67961013",
"0.6772864",
"0.6772049",
"0.67644626",
"0.67545253",
"0.6745182",
"0.6649584",
"0.65363944",
"0.652408",
"0.6504097",
"0.64592457",
"0.643... | 0.8962769 | 0 |
Test that a User instance is returned by factories.SuperUserFactory.create_batch(5). | def xaFr(YKHO):
DW23 = Rqdq.SuperUserFactory.create_batch(5)
for a0GJ in DW23:
YKHO.assertIsInstance(a0GJ, mv1M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D5Rx(YKHO):\n DW23 = Rqdq.SuperUserFactory.build_batch(5)\n for a0GJ in DW23:\n YKHO.assertIsInstance(a0GJ, mv1M)",
"def JvYy(YKHO):\n DW23 = Rqdq.UserFactory.create_batch(5)\n for a0GJ in DW23:\n YKHO.assertIsInstance(a0GJ, mv1M)",
"def ZtQy(YKHO):\n DW23 = Rqdq.UserFactory.bu... | [
"0.88104504",
"0.8697621",
"0.851187",
"0.7313017",
"0.7167592",
"0.7120899",
"0.70674354",
"0.701478",
"0.7012695",
"0.6982203",
"0.6948973",
"0.69473577",
"0.6920101",
"0.6905479",
"0.6870663",
"0.6848118",
"0.6823977",
"0.6805943",
"0.6785003",
"0.664711",
"0.6606177",
"... | 0.9079791 | 0 |
Test that a User instance is returned by factories.SuperUserFactory.create(). | def VzTj(YKHO):
CBIr = Rqdq.SuperUserFactory.create()
YKHO.assertTrue(CBIr.is_superuser)
YKHO.assertTrue(CBIr.is_staff) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jna8(YKHO):\n CBIr = Rqdq.SuperUserFactory.create()\n YKHO.assertIsInstance(CBIr, mv1M)",
"def ZlWU(YKHO):\n CBIr = Rqdq.SuperUserFactory.build()\n YKHO.assertIsInstance(CBIr, mv1M)",
"def COmz():\n return qCmB()",
"def MM16(YKHO):\n CBIr = Rqdq.UserFactory.create()\n YKHO.assertIsIn... | [
"0.87650585",
"0.8380535",
"0.7886819",
"0.78506255",
"0.7699639",
"0.7677194",
"0.7635388",
"0.76002014",
"0.7592402",
"0.7588949",
"0.75602114",
"0.7545177",
"0.7539289",
"0.75345516",
"0.75186974",
"0.75150293",
"0.7505999",
"0.746972",
"0.74629074",
"0.7457261",
"0.744428... | 0.7605627 | 7 |
Returns dict mapping box id to list of nodes to check able to push box to. Returns current node id robot. | def lNg6(YKHO, MYdN):
YWSi, Iuo4, yj4T = YKHO.get_robot_information(MYdN)
wJtB = {}
j7Gx = YWSi.lst_of_neighbors_with_moveable_boxes(YKHO)
for exwG in j7Gx:
wJtB[YKHO.boxes.index(exwG.box[-1])] = [YKHO.nodes.index(Q6kx) for Q6kx in exwG.neighbors if Q6kx != Iuo4]
return (wJtB, yj4T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k1TW(YKHO, MYdN, frl8):\n YWSi, Iuo4, yj4T = YKHO.get_robot_information(MYdN)\n ' Option 1: '\n YzsN = YKHO.bot_to_current_path.get(MYdN, [])\n if len(YzsN) > 0:\n YivB = YWSi.calculate_collision_detection_weights(YKHO)\n O8d4 = YKHO.nodes.index(YzsN[0]) in frl8[YWSi.target_pheromone ... | [
"0.595613",
"0.57711005",
"0.57140106",
"0.56989324",
"0.5647553",
"0.5641351",
"0.56187415",
"0.55759245",
"0.55589575",
"0.5489861",
"0.5407846",
"0.53804135",
"0.5341112",
"0.53292555",
"0.5286282",
"0.5231151",
"0.5216829",
"0.52145916",
"0.5209111",
"0.51814723",
"0.5167... | 0.7830444 | 0 |
Clipping gradients at L2 norm grad_bound. Returns the L2 norm. | def LI2z(NArs, AYIH=None):
NArs = list(filter(lambda XP5J: XP5J.grad is not None, NArs))
GRKF = 0
for XP5J in NArs:
if XP5J.grad is None:
continue
yQLB = XP5J.grad.data.norm(2)
GRKF += yQLB ** 2
GRKF = GRKF ** 0.5
if AYIH is not None:
WsX1 = AYIH / (GRKF +... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tv6i(YKHO, wTln):\n YKHO._sync_fp16_grads_to_fp32()\n oWRZ = BfDw.clip_grad_norm_(YKHO.fp32_params.grad.data, wTln)\n oUcR = NVAd.has_overflow(oWRZ)\n YKHO.scaler.update_scale(oUcR)\n if oUcR:\n if YKHO.scaler.loss_scale <= YKHO.min_loss_scale:\n raise FloatingPointError('Minim... | [
"0.6389206",
"0.638494",
"0.6384877",
"0.63018847",
"0.62626046",
"0.6226159",
"0.6223654",
"0.62185466",
"0.6119725",
"0.6104986",
"0.60828644",
"0.6065764",
"0.6043308",
"0.6043308",
"0.6043308",
"0.6043308",
"0.6043308",
"0.6043308",
"0.6043308",
"0.6036953",
"0.60187054",... | 0.66664016 | 0 |
return a list of stripped string by splitting the string given as argument on `sep` (',' by default). Empty string are discarded. >>> _splitstrip('a, b, c , 4,,') ['a', 'b', 'c', '4'] >>> _splitstrip('a') ['a'] >>> _splitstrip('a,\nb,\nc,') ['a', 'b', 'c'] | def YTLh(vIwR, VWe_=','):
return [GIN8.strip() for GIN8 in vIwR.split(VWe_) if GIN8.strip()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7HQ(cxYt, VWe_=','):\n return [YRbF for YRbF in (YRbF.strip() for YRbF in cxYt.split(VWe_)) if YRbF]",
"def lpha(KCHu, VWe_=','):\n SQ3m = KCHu.split(VWe_)\n SQ3m = [XP5J.strip() for XP5J in SQ3m]\n if SQ3m == ['']:\n SQ3m = []\n return SQ3m",
"def lpha(KCHu, VWe_=','):\n SQ3m = K... | [
"0.8012089",
"0.76653427",
"0.76653427",
"0.7645391",
"0.743063",
"0.7382033",
"0.6884889",
"0.67700934",
"0.67537796",
"0.6741395",
"0.66932553",
"0.6662348",
"0.6610471",
"0.6535984",
"0.65187764",
"0.64503276",
"0.636678",
"0.6322963",
"0.6216135",
"0.6171892",
"0.6099799"... | 0.84864336 | 0 |
remove optional quotes (simple or double) from the string | def tnoA(vIwR):
if not vIwR:
return vIwR
if vIwR[0] in '"\'':
vIwR = vIwR[1:]
if vIwR[-1] in '"\'':
vIwR = vIwR[:-1]
return vIwR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gg3h(str):\n return str.replace(\"'\", '')",
"def clqC(vIwR: str) -> str:\n return vIwR[1:-1] if (vIwR[-1:], vIwR[:1]) == ('\"', '\"') else vIwR",
"def QM2G(KCHu):\n if KCHu == '' or KCHu == ' ':\n return KCHu.strip()\n if KCHu[0] == KCHu[-1] and KCHu.startswith((\"'\", '\"')):\n ... | [
"0.7857239",
"0.76928747",
"0.76280046",
"0.7613423",
"0.7601545",
"0.76011163",
"0.75956494",
"0.7594899",
"0.75448996",
"0.75448996",
"0.7481779",
"0.7445074",
"0.74115825",
"0.7392215",
"0.73863304",
"0.73602396",
"0.7336368",
"0.73270184",
"0.73068476",
"0.73068476",
"0.7... | 0.7318517 | 18 |
Onehot encodes a policy | def oidm(Qabx, ROpF):
KdL6 = oyIN.zeros(ROpF)
KdL6[oyIN.arange(ROpF[0]), Qabx] = 1
return KdL6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vzTG(WKvO):\n WKvO[oyIN.where(WKvO)[0]] = 1\n return WKvO",
"def OjaS(g4y1, QTg7, CtWL):\n rTfk = []\n for input in g4y1:\n WKvO = oyIN.zeros((len(input), len(i9lr)))\n for YRbF in range(len(input)):\n for r845 in range(len(CtWL)):\n if input[YRbF].lower() ... | [
"0.74557835",
"0.7441807",
"0.7376947",
"0.7334668",
"0.7322601",
"0.7314473",
"0.72742414",
"0.72618383",
"0.7258484",
"0.72523224",
"0.72374636",
"0.72235817",
"0.7221656",
"0.72171193",
"0.72135025",
"0.7193899",
"0.7156854",
"0.7138518",
"0.71326035",
"0.7120561",
"0.7112... | 0.0 | -1 |
Tests the login method of the User class | def Jug3(YKHO):
mv1M.add('xxxxxx', 'xxxxxx')
Aofo = mv1M.login('xxxxxx', 'xxxxxx')
YKHO.assertEqual(Aofo, 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hBsi(YKHO):\n pass",
"def xEDx(YKHO):\n dsbO = mv1M.login('tester1', 'password')\n YKHO.assertTrue(dsbO)\n YKHO.assertEqual(dsbO.username, 'tester1')",
"def xSMt(YKHO):\n MC83 = YKHO.login_user(data=YKHO.user)\n YKHO.assertEqual(MC83.json['message'], 'Success')\n YKHO.assertEqual(MC83.... | [
"0.8802848",
"0.8706887",
"0.8468239",
"0.84154314",
"0.8295225",
"0.8200123",
"0.8200123",
"0.8199481",
"0.81949294",
"0.81488407",
"0.81417906",
"0.8130686",
"0.81184226",
"0.8100415",
"0.80915415",
"0.8091223",
"0.8078797",
"0.80668986",
"0.8061807",
"0.80576456",
"0.80563... | 0.82554 | 5 |
Tests the login method of the User class for testing bad credentials | def YYmi(YKHO):
mv1M.add('xxxxxx', 'xxxxxx')
Aofo = mv1M.login('xxxxxx', 'password')
YKHO.assertEqual(Aofo, fmVn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m0p0(YKHO):\n dsbO = mv1M.login('testuser', 'pass1234toomany')\n YKHO.assertFalse(dsbO)",
"def _r7T(YKHO):\n dsbO = mv1M.login('testuserbad', 'pass123')\n YKHO.assertFalse(dsbO)",
"def CVkz(YKHO):\n Aofo = mv1M.login('', '')\n YKHO.assertEqual(Aofo, fmVn)",
"def LK9P(YKHO):\n CBIr = ... | [
"0.8580394",
"0.8492118",
"0.8327298",
"0.82827306",
"0.8260265",
"0.8244192",
"0.8228492",
"0.8220035",
"0.81918824",
"0.81039715",
"0.80797595",
"0.8076219",
"0.8071178",
"0.8064184",
"0.80590504",
"0.8036419",
"0.80191696",
"0.79932374",
"0.79926103",
"0.79803985",
"0.7971... | 0.8605282 | 0 |
Tests the login method of the User class for testing empty credentials | def CVkz(YKHO):
Aofo = mv1M.login('', '')
YKHO.assertEqual(Aofo, fmVn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xiJ6(YKHO):\n YKHO.assertEqual(FYrf.FAILURE, YKHO.users.login('', 'password'))",
"def hANA(YKHO):\n CBIr = mv1M()\n no2R = CBIr.add('user1', '')\n YKHO.assertEquals(mv1M.SUCCESS, no2R)\n YDZc = CBIr.login('user1', '')\n YKHO.assertEquals(mv1M.SUCCESS, YDZc)",
"def PtmO(YKHO):\n YKHO.as... | [
"0.83128625",
"0.8306472",
"0.8274437",
"0.8234474",
"0.81342214",
"0.8108208",
"0.8101216",
"0.8092548",
"0.80822414",
"0.8074728",
"0.80484027",
"0.8048014",
"0.8002444",
"0.7999732",
"0.7944614",
"0.79310894",
"0.7927923",
"0.78983384",
"0.7882004",
"0.78795964",
"0.787013... | 0.87489605 | 0 |
Test that the default qubit plugin provides correct result for a simple circuit | def ZWUY(YKHO, X3sL, ALqe, yJiH):
XP5J = 0.543
M4N3 = X3sL
M4N3.R_DTYPE = ALqe
@B2Ja.qnode(M4N3, diff_method='parameter-shift')
def DPNn(WKvO):
B2Ja.RX(WKvO, wires=0)
return B2Ja.expval(B2Ja.PauliY(0))
aEqx = -oyIN.sin(XP5J)
Ylbp = DPNn(XP5J)
assert oyIN.isclose(Ylbp, aE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pfl4(YKHO):\n LZom = Rv0t(1)\n LZom.x(0)\n TkwI = XOH4(LZom)\n aLbr = vu7u(1)\n aLbr.add_gate('X', targets=[0])\n assert YKHO._compare_circuit(TkwI, aLbr)",
"def EzwN(YKHO, X3sL, yJiH):\n XP5J = 0.543\n\n @B2Ja.qnode(X3sL)\n def DPNn(WKvO):\n \"\"\"Test quantum function\"\"\... | [
"0.72575706",
"0.715807",
"0.7152533",
"0.70350355",
"0.7033626",
"0.7008296",
"0.6987907",
"0.69847035",
"0.6924621",
"0.6910895",
"0.6878332",
"0.685823",
"0.68414915",
"0.68275857",
"0.6764945",
"0.67628485",
"0.66983104",
"0.6698156",
"0.66962796",
"0.6671009",
"0.6664896... | 0.69669265 | 8 |
Test that the default qubit plugin provides correct result for a simple circuit | def dVKS(YKHO, ALqe, led5, D3vS):
XP5J = 0.543
M4N3 = B2Ja.device('default.qubit', wires=3, r_dtype=ALqe, c_dtype=led5)
@B2Ja.qnode(M4N3, diff_method='parameter-shift')
def DPNn(WKvO):
B2Ja.RX(WKvO, wires=0)
return B2Ja.apply(D3vS)
Ylbp = DPNn(XP5J)
assert Ylbp.dtype == ALqe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pfl4(YKHO):\n LZom = Rv0t(1)\n LZom.x(0)\n TkwI = XOH4(LZom)\n aLbr = vu7u(1)\n aLbr.add_gate('X', targets=[0])\n assert YKHO._compare_circuit(TkwI, aLbr)",
"def EzwN(YKHO, X3sL, yJiH):\n XP5J = 0.543\n\n @B2Ja.qnode(X3sL)\n def DPNn(WKvO):\n \"\"\"Test quantum function\"\"\... | [
"0.7258177",
"0.7158311",
"0.7153299",
"0.7035075",
"0.7033696",
"0.7009181",
"0.6987755",
"0.6984271",
"0.69676983",
"0.69244546",
"0.6912343",
"0.68788636",
"0.68570906",
"0.6841199",
"0.6828158",
"0.67654806",
"0.6763863",
"0.66994864",
"0.6698703",
"0.66971666",
"0.667151... | 0.0 | -1 |
Test that the default qubit plugin provides correct result for a simple circuit | def G7_p(YKHO, ALqe, led5, D3vS):
XP5J = 0.543
M4N3 = B2Ja.device('default.qubit', wires=3, r_dtype=ALqe, c_dtype=led5)
@B2Ja.qnode(M4N3, diff_method='parameter-shift')
def DPNn(WKvO):
B2Ja.RX(WKvO, wires=0)
return B2Ja.apply(D3vS)
Ylbp = DPNn(XP5J)
assert Ylbp.dtype == led5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pfl4(YKHO):\n LZom = Rv0t(1)\n LZom.x(0)\n TkwI = XOH4(LZom)\n aLbr = vu7u(1)\n aLbr.add_gate('X', targets=[0])\n assert YKHO._compare_circuit(TkwI, aLbr)",
"def EzwN(YKHO, X3sL, yJiH):\n XP5J = 0.543\n\n @B2Ja.qnode(X3sL)\n def DPNn(WKvO):\n \"\"\"Test quantum function\"\"\... | [
"0.7257393",
"0.71584064",
"0.7150621",
"0.7035268",
"0.703246",
"0.70081216",
"0.69881177",
"0.6983833",
"0.6966045",
"0.6924028",
"0.69106716",
"0.68767244",
"0.6859799",
"0.684163",
"0.6826746",
"0.6764815",
"0.676183",
"0.6697417",
"0.6696428",
"0.66963786",
"0.66707015",... | 0.0 | -1 |
Test if the application of single qubit operations is correct. | def kR_4(YKHO, khtY, NKcE):
Voe1 = NKcE(YKHO.state, axes=[1])
khtY = khtY(wires=[1])
SppC = khtY.matrix()
UHoW = oyIN.einsum('ab,ibjk->iajk', SppC, YKHO.state)
assert oyIN.allclose(Voe1, UHoW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pfl4(YKHO):\n LZom = Rv0t(1)\n LZom.x(0)\n TkwI = XOH4(LZom)\n aLbr = vu7u(1)\n aLbr.add_gate('X', targets=[0])\n assert YKHO._compare_circuit(TkwI, aLbr)",
"def Ctlt(YKHO):\n nzPj = Rv0t(1)\n HmDv = Rv0t(1)\n HmDv.x(0)\n khtY = QWPH.from_list([('I', 1)])\n EkqX = QWPH.from_l... | [
"0.7204365",
"0.71587646",
"0.70582676",
"0.6793175",
"0.67858225",
"0.6753071",
"0.6722554",
"0.662121",
"0.6529382",
"0.63465655",
"0.63223356",
"0.6311657",
"0.6300406",
"0.62987185",
"0.6268586",
"0.6268586",
"0.62649965",
"0.6249246",
"0.62461287",
"0.62282276",
"0.62165... | 0.6316411 | 11 |
Test if the application of two qubit operations is correct. | def t7kt(YKHO, khtY, NKcE):
Voe1 = NKcE(YKHO.state, axes=[0, 1])
khtY = khtY(wires=[0, 1])
SppC = khtY.matrix()
SppC = SppC.reshape((2, 2, 2, 2))
UHoW = oyIN.einsum('abcd,cdjk->abjk', SppC, YKHO.state)
assert oyIN.allclose(Voe1, UHoW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PVBz(YKHO):\n zXcj = uS5l()\n jOpO = zXcj.create_quantum_register('qr', 1)\n KBgZ = zXcj.create_classical_register('cr', 1)\n PFCA = zXcj.create_circuit('qc1', [jOpO], [KBgZ])\n HmDv = zXcj.create_circuit('qc2', [jOpO], [KBgZ])\n PFCA.measure(jOpO[0], KBgZ[0])\n HmDv.x(jOpO[0])\n HmDv.m... | [
"0.6776249",
"0.67522395",
"0.667041",
"0.65706456",
"0.6415328",
"0.64005893",
"0.63984793",
"0.6388102",
"0.6326631",
"0.632437",
"0.6310066",
"0.63076603",
"0.6276993",
"0.6272366",
"0.62496185",
"0.62412333",
"0.62261623",
"0.61856574",
"0.61753994",
"0.61643475",
"0.6137... | 0.6196558 | 17 |
Test if the application of two qubit operations is correct when the applied wires are reversed. | def E1tl(YKHO, khtY, NKcE):
Voe1 = NKcE(YKHO.state, axes=[2, 1])
khtY = khtY(wires=[2, 1])
SppC = khtY.matrix()
SppC = SppC.reshape((2, 2, 2, 2))
UHoW = oyIN.einsum('abcd,idck->ibak', SppC, YKHO.state)
assert oyIN.allclose(Voe1, UHoW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t7kt(YKHO, khtY, NKcE):\n Voe1 = NKcE(YKHO.state, axes=[0, 1])\n khtY = khtY(wires=[0, 1])\n SppC = khtY.matrix()\n SppC = SppC.reshape((2, 2, 2, 2))\n UHoW = oyIN.einsum('abcd,cdjk->abjk', SppC, YKHO.state)\n assert oyIN.allclose(Voe1, UHoW)",
"def b_9r(YKHO, khtY, NKcE):\n Voe1 = NKcE(... | [
"0.60720676",
"0.60364544",
"0.59955543",
"0.5882425",
"0.5867898",
"0.5861022",
"0.58182603",
"0.58085555",
"0.5794974",
"0.5771315",
"0.57535595",
"0.5734279",
"0.5716448",
"0.5709642",
"0.5709545",
"0.5705892",
"0.5703489",
"0.56935036",
"0.5679359",
"0.5678758",
"0.567057... | 0.6689407 | 0 |
Test if the application of three qubit operations is correct when both control wires are greater than the target wire. | def b_9r(YKHO, khtY, NKcE):
Voe1 = NKcE(YKHO.state, axes=[2, 1, 0])
khtY = khtY(wires=[2, 1, 0])
SppC = khtY.matrix()
SppC = SppC.reshape((2, 2) * 3)
UHoW = oyIN.einsum('abcdef,fedk->cbak', SppC, YKHO.state)
assert oyIN.allclose(Voe1, UHoW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gkrk(YKHO):\n LZom = Rv0t(2)\n LZom.cx(1, 0)\n TkwI = XOH4(LZom)\n aLbr = vu7u(2)\n aLbr.add_gate('CX', targets=[0], controls=[1])\n assert YKHO._compare_circuit(TkwI, aLbr)",
"def iv7Q(jzdc, Fg_i):\n if jzdc + Fg_i > 10:\n if jzdc % 2 == 0 or Fg_i % 2 == 0:\n print('An... | [
"0.6010063",
"0.5961008",
"0.5956239",
"0.5924895",
"0.5908779",
"0.58694583",
"0.58682334",
"0.58650404",
"0.58223",
"0.5796157",
"0.5770552",
"0.5762959",
"0.5739894",
"0.5720207",
"0.5714302",
"0.5706747",
"0.5683712",
"0.56757706",
"0.5670654",
"0.5664677",
"0.5647491",
... | 0.637058 | 0 |
Test if the application of three qubit operations is correct when one control wire is smaller and one control wire is greater than the target wire. | def SR78(YKHO, khtY, NKcE):
Voe1 = NKcE(YKHO.state, axes=[3, 1, 2])
khtY = khtY(wires=[3, 1, 2])
SppC = khtY.matrix()
SppC = SppC.reshape((2, 2) * 3)
UHoW = oyIN.einsum('abcdef,kdfe->kacb', SppC, YKHO.state)
assert oyIN.allclose(Voe1, UHoW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_9r(YKHO, khtY, NKcE):\n Voe1 = NKcE(YKHO.state, axes=[2, 1, 0])\n khtY = khtY(wires=[2, 1, 0])\n SppC = khtY.matrix()\n SppC = SppC.reshape((2, 2) * 3)\n UHoW = oyIN.einsum('abcdef,fedk->cbak', SppC, YKHO.state)\n assert oyIN.allclose(Voe1, UHoW)",
"def Gkrk(YKHO):\n LZom = Rv0t(2)\n ... | [
"0.6305379",
"0.59959906",
"0.5954294",
"0.5943379",
"0.59098923",
"0.58994734",
"0.5882388",
"0.58667123",
"0.58241516",
"0.5798193",
"0.5784716",
"0.5782162",
"0.577136",
"0.5747306",
"0.5728982",
"0.57251453",
"0.57213366",
"0.57213366",
"0.57089907",
"0.57025224",
"0.5702... | 0.0 | -1 |
Test that applying a ParametrizedEvolution raises an error. | def Ba_V(YKHO):
fCI2 = B2Ja.evolve(QIRc([1], [B2Ja.PauliX(0)]))
with trZe.raises(NotImplementedError, match='The device default.qubit cannot execute a ParametrizedEvolution operation'):
YKHO.dev._apply_parametrized_evolution(state=YKHO.state, operation=fCI2)
@B2Ja.qnode(YKHO.dev)
def DPNn():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qOQv(YKHO):\n with YKHO.assertRaises(ValueError):\n bGrB = qAeR(QWPH('Z', oyIN.array(XDS4('t'))))",
"def nbqx(YKHO):\n with trZe.raises(ValueError, match='Input state should have the same length'):\n B2Ja.Projector(state=[1, 1, 0], wires=[0, 1])\n with trZe.raises(ValueError, match='In... | [
"0.6878747",
"0.6539711",
"0.653206",
"0.63925827",
"0.63264567",
"0.61288",
"0.61254996",
"0.6119425",
"0.60913587",
"0.60913587",
"0.6057773",
"0.6044264",
"0.60400695",
"0.6031073",
"0.60193944",
"0.59967977",
"0.59787786",
"0.59787786",
"0.5967183",
"0.59383494",
"0.59232... | 0.80551785 | 0 |
Tests that the device does not attempt to get rotations for Hamiltonians. | def Kbf_(YKHO, AZgw):
M4N3 = B2Ja.device('default.qubit', wires=2, shots=10)
C7Ls = B2Ja.Hamiltonian([0.1, 0.2], [B2Ja.PauliX(0), B2Ja.PauliZ(1)])
h6oM = AZgw.spy(B2Ja.QubitDevice, '_get_diagonalizing_gates')
umWR = B2Ja.tape.QuantumScript([B2Ja.RX(1, 0)], [B2Ja.expval(B2Ja.PauliX(0)), B2Ja.expval(C7Ls)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MzMg(YKHO):\n pass",
"def qX_E() -> None:\n lPNS = I5r0(R=oyIN.eye(2), t=oyIN.array([2, 1]), s=3.0)\n utLZ = I5r0(R=-1 * oyIN.eye(2), t=oyIN.array([2.0, 1.0]), s=3)\n assert lPNS != utLZ",
"def d5__(YKHO):\n Qb1s = _qLf(YKHO.crystal)\n Mkmy = bULF(Y_1E(360), [0, 0, 1])\n YKHO.crystal.t... | [
"0.64083725",
"0.6217453",
"0.61993164",
"0.61109924",
"0.6086419",
"0.60274637",
"0.59980077",
"0.5994391",
"0.5945647",
"0.592053",
"0.587855",
"0.5866891",
"0.5832008",
"0.5820888",
"0.58009404",
"0.5741998",
"0.5728565",
"0.5724262",
"0.5713341",
"0.5708835",
"0.570829",
... | 0.680617 | 0 |
Test that an error is raised if a tensor is provided that does not have a proper shape/ndim. | def dgdL(YKHO):
M4N3 = B2Ja.device('default.qubit', wires=1)
with trZe.raises(ValueError, match='could not broadcast'):
M4N3._get_batch_size([B2Ja.math.ones((2, 3)), B2Ja.math.ones((2, 2))], (2, 2, 2), 8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvHx():\n with oyIN.testing.assert_raises(ValueError):\n vhpA()",
"def BtK0(vhpA, u54L=None, AzER=''):\n ROpF = kbUw(vhpA)\n if not ROpF:\n raise RuntimeError('The ndim of input tensor {} must more than 0, actual input is {}'.format(AzER, len(ROpF)))\n for CI_o in ROpF:\n if ... | [
"0.79899603",
"0.7368018",
"0.7304062",
"0.7131351",
"0.7057013",
"0.6952232",
"0.6925165",
"0.6917791",
"0.6900477",
"0.6892548",
"0.6882701",
"0.68712926",
"0.68491644",
"0.6842571",
"0.6820816",
"0.6818538",
"0.6755225",
"0.67438096",
"0.67142445",
"0.66188455",
"0.6605274... | 0.7515848 | 1 |
Test login home page. | def UHFF(YKHO):
Aofo = YKHO.client.get('/')
YKHO.assertIn('Hi sisi!', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zSjQ(YKHO):\n nyyK = YKHO.client.login(username=YKHO.user_id, password=YKHO.user_password)\n YKHO.assertEqual(nyyK, True)\n geh0 = YKHO.client.get('/', follow=True)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'home.html')",
"def XnRh(YKHO):\n YKHO.client.login(... | [
"0.8512661",
"0.8451308",
"0.8414639",
"0.83970684",
"0.8248901",
"0.8207084",
"0.81663936",
"0.81329787",
"0.81283987",
"0.80976284",
"0.80605394",
"0.8047861",
"0.8037859",
"0.8019401",
"0.8007886",
"0.7970645",
"0.7970645",
"0.795252",
"0.79344183",
"0.7902586",
"0.7890017... | 0.7593552 | 45 |
Test wrong login page. | def abv1(YKHO):
Aofo = YKHO.client.post('/login', data={'email': 'wangss.wuhan@gmail.com', 'password': '111'}, follow_redirects=True)
YKHO.assertIn('Your information is incorrect.', Aofo.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CzOE(YKHO):\n with YKHO.client as Z9rn:\n im04 = Z9rn.post('/auth/login', data=dict(username='pirate.user', password='incorrect'), follow_redirects=True)\n YKHO.assert200(im04, 'Login should return 200 code')\n YKHO.assertMessageFlashed(bGrB('Benutzername oder Passwort ist ungültig'))\n... | [
"0.8231169",
"0.8207666",
"0.814753",
"0.811726",
"0.8071234",
"0.79773355",
"0.79430723",
"0.7927855",
"0.78874636",
"0.7864914",
"0.7860576",
"0.7838218",
"0.7805972",
"0.77964485",
"0.77895534",
"0.77772015",
"0.77719885",
"0.77621573",
"0.7761675",
"0.77581906",
"0.775781... | 0.7784872 | 15 |
Determines if the provided problem_type is a multiclass classification problem type. | def i3Ek(tKA5):
return SeLS(tKA5) in [Tosh.MULTICLASS, Tosh.TIME_SERIES_MULTICLASS] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yqWX(tKA5):\n return vDzF(tKA5) or i3Ek(tKA5)",
"def h3db(YKHO):\n return YKHO.json_dict.get('multiclass', None)",
"def H2aT(LVAh):\n LVAh = rLdf.Series(LVAh).dropna()\n jTqs = LVAh.nunique()\n if jTqs < 2:\n raise ValueError('Less than 2 classes detected! Target unusable for modeling... | [
"0.8114805",
"0.6595842",
"0.6111468",
"0.6059837",
"0.6048436",
"0.59664696",
"0.5960828",
"0.5939645",
"0.59338814",
"0.5898075",
"0.58965254",
"0.5833093",
"0.5758226",
"0.56214267",
"0.5608646",
"0.55735826",
"0.55622697",
"0.55088645",
"0.5508619",
"0.5495047",
"0.548602... | 0.8893014 | 0 |
Determines if the provided problem_type is a time series problem type. | def vgdo(tKA5):
return SeLS(tKA5) in [Tosh.TIME_SERIES_BINARY, Tosh.TIME_SERIES_MULTICLASS, Tosh.TIME_SERIES_REGRESSION] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def urNh(tKA5):\n return SeLS(tKA5) in [Tosh.REGRESSION, Tosh.TIME_SERIES_REGRESSION]",
"def vgdo(YKHO) -> bool:\n return YKHO._is_time_series_index",
"def tIX0(qIxc):\n return qIxc.time_series or qIxc.time_series_set or qIxc.time_series_file",
"def i3Ek(tKA5):\n return SeLS(tKA5) in [Tosh.MULTIC... | [
"0.7110718",
"0.6993335",
"0.6457869",
"0.6366362",
"0.6042979",
"0.60249174",
"0.60208255",
"0.59931976",
"0.59187424",
"0.584423",
"0.5756903",
"0.5742458",
"0.5732735",
"0.56353575",
"0.5604925",
"0.5539382",
"0.5488293",
"0.5436813",
"0.5404445",
"0.53751314",
"0.5371417"... | 0.87595874 | 0 |
Returns the Python version as string ``'major.minor.patchlevel'`` Note that unlike the Python ``sys.version``, the returned value will always include the patchlevel (it defaults to 0). | def wkGJ():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def knc1() -> str:\n IJ4N = HwRy.version_info[0]\n cbKy = HwRy.version_info[1]\n return f'{IJ4N}.{cbKy}'",
"def juHB():\n return '{}.{}'.format(*HwRy.version_info)",
"def qg0e() -> str:\n return f'{HwRy.version_info.major}.{HwRy.version_info.minor}.{HwRy.version_info.micro}'",
"def wkGJ():\n ... | [
"0.80343825",
"0.78304493",
"0.76792777",
"0.76024765",
"0.75894094",
"0.7568023",
"0.7534259",
"0.74690163",
"0.73493344",
"0.7332854",
"0.7308502",
"0.7303925",
"0.7215355",
"0.71177584",
"0.7045301",
"0.7017898",
"0.7014483",
"0.7008461",
"0.6991135",
"0.69833255",
"0.6947... | 0.6646063 | 40 |
Returns the system's release version, e.g. ``'3 on degas'``. An empty string is returned if the value cannot be determined. | def DpZH():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uz8_():\n return DpZH",
"def PQNM():\n try:\n with open('version.txt') as Ga6V:\n return Ga6V.read().strip()\n except Exception:\n return '__UNKNOWN__'",
"def ZB9Y():\n return ZbWC.match('[\\\\d.]+', a9EH.release()).group(0)",
"def kaPv() -> str:\n return wx3I",
... | [
"0.80759287",
"0.7773147",
"0.7545463",
"0.7542084",
"0.7507101",
"0.74931157",
"0.74894166",
"0.7485763",
"0.7435426",
"0.74165165",
"0.7269894",
"0.724925",
"0.7247073",
"0.72392005",
"0.7156421",
"0.7143421",
"0.7136124",
"0.7125013",
"0.71112275",
"0.7101999",
"0.7094334"... | 0.0 | -1 |
Starting at 0, go through the maze until 3 + 3j is found. | def Asu7(pmON: str) -> str:
AtyE = len(pmON)
xi3E = 3 + 3j
gGq6 = MUE7([(0, pmON)])
while True:
oeNL, pmON = gGq6.pop()
for R8mN, ddn9 in BZN_(oeNL, pmON):
if SGVO(R8mN):
if R8mN == xi3E:
return ddn9[AtyE:]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g4S2():\n pass",
"def ixFI(X3eO):\n KCHu = o5oX.SOUTH\n yzQ0 = o5oX.WEST\n return [KCHu, KCHu, yzQ0, KCHu, yzQ0, yzQ0, KCHu, yzQ0]",
"def iXC1(_rK1, aWuw):\n TxAA = HWcG(_rK1)\n gGq6 = g5js(aWuw)\n gGq6.reset()\n qXv8 = Jeo4(TxAA, gGq6.next())\n for dQgj in qXv8:\n pmON = ... | [
"0.67446387",
"0.62095517",
"0.61396676",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6119712",
"0.6102915",
"0.60993147",
"0.6084566",
"0.6053366",
"0.6049424",... | 0.0 | -1 |
Return the first n terms of a sequence as an integer. >>> sequence(6, abs) Terms are 1, 2, 3, 4, 5, 6 123456 | def aWuw(exwG, OXAZ):
cwp3 = 0
for YRbF in range(1, exwG + 1):
lk9W = 1
wEf2 = OXAZ(YRbF)
while lk9W <= wEf2:
lk9W *= 10
cwp3 = cwp3 * lk9W + wEf2
return cwp3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ANfV(exwG):\n aWuw = gH2v(int(exwG))\n return sum((1 for bGrB in aWuw)) - 1",
"def aWuw(exwG):\n if exwG == 0:\n return 5\n else:\n return 2 * aWuw(exwG - 1) - 1",
"def ryDR(exwG):\n if exwG % 2:\n return 3 * exwG + 1\n return exwG / 2",
"def dZ5c(exwG):\n return... | [
"0.66371673",
"0.6513742",
"0.6422162",
"0.62135595",
"0.61940765",
"0.60558045",
"0.59763646",
"0.5953298",
"0.59447235",
"0.5856932",
"0.58486795",
"0.5844541",
"0.58171517",
"0.57103956",
"0.56929284",
"0.56847924",
"0.5680562",
"0.5660176",
"0.56476086",
"0.5615384",
"0.5... | 0.72404104 | 0 |
Tests the count_cosines_from function. | def pR4i():
print()
print('--------------------------------------------------')
print('Testing the count_cosines_from function:')
print('--------------------------------------------------')
XOOk = txsh(3, 7, 0.24)
pHXX = txsh(2, 7, 0.3)
MgfK = txsh(5, 12, 0.5)
h2Hz = txsh(6, 9, 0.1)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _pEs():\n print()\n print('--------------------------------------------------')\n print('Testing the count_sines_vs_cosines function:')\n print('--------------------------------------------------')\n aEqx = 100\n ANfV = cZP3(101)\n print('Test 1 expected:', aEqx)\n print(' act... | [
"0.7460016",
"0.7105743",
"0.64848924",
"0.63357264",
"0.6320796",
"0.62094146",
"0.61919284",
"0.61378384",
"0.6117857",
"0.6113456",
"0.60113287",
"0.59715647",
"0.5954899",
"0.5903772",
"0.587094",
"0.5853307",
"0.5834178",
"0.5815894",
"0.5786895",
"0.5745318",
"0.5702306... | 0.8320487 | 0 |
Similar to the ``authorize_request()`` function with no access to the request but rather than raising an exception to stop the request if a permission check fails, this function simply returns ``False`` so that you can test permissions in your code without triggering a sign in. It can therefore be used in a controller ... | def oAWu(Uvf2):
try:
ZRY8(Uvf2)
except (a5DL, Csg3):
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHTF(YKHO: 'IsNotAuthenticated', QePW: Request, tTee: Any) -> bool:\n return not bool(QePW.user and QePW.user.is_authenticated)",
"def qHTF(YKHO, QePW, tTee):\n if QePW.method == 'GET':\n return True\n return QePW.user.is_superuser",
"def qHTF(YKHO, QePW, tTee):\n if QePW.method in M_tO:... | [
"0.78307766",
"0.7529882",
"0.7300784",
"0.72574115",
"0.72468626",
"0.72279614",
"0.72279614",
"0.72237307",
"0.72237307",
"0.7188707",
"0.7170962",
"0.70544267",
"0.70131373",
"0.7005732",
"0.6995893",
"0.6995893",
"0.6995893",
"0.6995893",
"0.6995893",
"0.6991616",
"0.6969... | 0.7259587 | 3 |
Return the string representation of the app command. | def zAg0(YKHO):
return f'{YKHO.app_name}: {YKHO.name}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uI27(YKHO):\n return ' '.join(YKHO.command)",
"def zAg0(YKHO):\n return ' '.join(YKHO.command)",
"def uI27(YKHO):\n return ' '.join(map(jKi7.moves.shlex_quote, YKHO.command))",
"def zAg0(YKHO):\n return '{0} {1}'.format(YKHO.command, YKHO.arguments)",
"def zAg0(YKHO):\n return '{}'.forma... | [
"0.7701745",
"0.75350875",
"0.74947983",
"0.7419937",
"0.7403861",
"0.7313379",
"0.7313379",
"0.72579056",
"0.71964574",
"0.71964574",
"0.70576733",
"0.7025667",
"0.69164723",
"0.6875921",
"0.6875921",
"0.6820534",
"0.6814914",
"0.6806684",
"0.6776163",
"0.67486763",
"0.67472... | 0.6184921 | 62 |
Return the string representation of the app command. | def zAg0(YKHO):
return f'Report {YKHO.task.name} {YKHO.invocation_result} {YKHO.invocation_datetime}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uI27(YKHO):\n return ' '.join(YKHO.command)",
"def zAg0(YKHO):\n return ' '.join(YKHO.command)",
"def uI27(YKHO):\n return ' '.join(map(jKi7.moves.shlex_quote, YKHO.command))",
"def zAg0(YKHO):\n return '{0} {1}'.format(YKHO.command, YKHO.arguments)",
"def zAg0(YKHO):\n return '{}'.forma... | [
"0.7701809",
"0.75353396",
"0.74953187",
"0.74203724",
"0.74034816",
"0.73147",
"0.73147",
"0.72575337",
"0.71968716",
"0.71968716",
"0.7057513",
"0.70256394",
"0.6916482",
"0.68749136",
"0.68749136",
"0.6819449",
"0.68151253",
"0.6807409",
"0.6777011",
"0.67485404",
"0.67458... | 0.0 | -1 |
Converts a number 09 to an array where that index is 1 and others are 0 | def fIsm(Crrw):
EaWK = oyIN.zeros((10, len(Crrw)))
for nWi7, UXqs in enumerate(Crrw):
EaWK[UXqs][nWi7] = 1
return EaWK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phZW(RcQu):\n U5bT = []\n if not ZYHs(RcQu):\n G9jH.error('invalid what, cannot convert to array: {0}'.format(RcQu))\n return U5bT\n for Z9rn in RcQu:\n yuVB = int(Z9rn)\n if yuVB == 0:\n yuVB = 10\n U5bT.append(yuVB)\n U5bT.sort()\n return U5bT",
... | [
"0.60547376",
"0.6029771",
"0.5987332",
"0.59626544",
"0.59626544",
"0.5913013",
"0.58857363",
"0.58818763",
"0.5839155",
"0.58332986",
"0.5821836",
"0.57980686",
"0.5797593",
"0.57865137",
"0.57865137",
"0.57810104",
"0.5777815",
"0.5751498",
"0.57470345",
"0.5739488",
"0.57... | 0.0 | -1 |
Build the transaction for minting a new native asset. Requires a running and synced node. | def LQIR(YKHO, ulWc, Zn3F, FKVq, kZCr, vPcw, mkAP, hRft=None, ZocD=0.0, xtX7=None, HySU=True) -> str:
oNY_ = 2.1
if xtX7 is None:
xtX7 = YKHO.shelley.working_dir
else:
xtX7 = GkAb(xtX7)
if YKHO.shelley.ssh is None:
xtX7.mkdir(parents=True, exist_ok=True)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQIR(eVVj, Q1g5, X7fk, _amA, u2OO, ulWc, e5Qp, woha, PcZo):\n if _amA is None or u2OO == 0:\n return False\n return jIJh(eVVj, Q1g5, X7fk, 0, _amA, u2OO, True, ulWc, e5Qp, woha, PcZo)",
"def KT7y(woha, U3Gf, _q9O, ttpg, xBU6, ijoR, ulWc, s2mk, B6sC, yIVm, PcZo='matx.raw', PIOv=[]):\n for YRbF... | [
"0.6469367",
"0.6265551",
"0.59828013",
"0.5874338",
"0.5837354",
"0.5695973",
"0.5522347",
"0.5502114",
"0.5497097",
"0.54913753",
"0.54724693",
"0.54592633",
"0.54448646",
"0.54443717",
"0.54359907",
"0.53946006",
"0.5366441",
"0.5351859",
"0.53460974",
"0.53408754",
"0.532... | 0.6234424 | 2 |
The offset from UTC for local time read from this clock. | def MImm(Emd4):
return ufun(-int(iVVu(WPt4(0)))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L7cn():\n if ITS7.localtime().tm_isdst and ITS7.daylight:\n return ITS7.altzone\n else:\n return ITS7.timezone",
"def UJxm(YKHO):\n return YKHO._utc_offset",
"def ueuK(YKHO):\n exwG = FdZ9(wzkt())\n return exwG.hour * 3600 + exwG.minute * 60 + exwG.second",
"def PduB(YKHO):\n... | [
"0.8028166",
"0.80110055",
"0.7941113",
"0.7819807",
"0.77611387",
"0.73967123",
"0.71996504",
"0.7190176",
"0.71728706",
"0.7146415",
"0.7091785",
"0.70872533",
"0.7087118",
"0.69505984",
"0.6771618",
"0.6768482",
"0.67573225",
"0.6682204",
"0.661036",
"0.6567604",
"0.653431... | 0.82748896 | 0 |
Convert from a ClockTime relative to a given epoch. | def pHwr(Emd4, Y8_t, qtWj):
try:
Y8_t = ufun(*Y8_t)
except (TypeError, ValueError):
raise ValueError('Clock time must be a 2-tuple of (s, ns)')
else:
VVMx = Y8_t.seconds // 86400
return Qrp8.from_ordinal(VVMx + qtWj.date().to_ordinal()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pHwr(Emd4, Y8_t, qtWj):\n Y8_t = ufun(*Y8_t)\n i8WE = Y8_t.seconds % 86400\n RDwm = int(1000000000 * i8WE + Y8_t.nanoseconds)\n return Kmii.from_ticks(qtWj.time().ticks + RDwm / 1000000000)",
"def pHwr(Emd4, Y8_t, qtWj):\n try:\n C6wh, RDwm = ufun(*Y8_t)\n except (TypeError, ValueErr... | [
"0.7535612",
"0.69198257",
"0.6801885",
"0.66876936",
"0.6611116",
"0.6544796",
"0.6526763",
"0.64811265",
"0.6456127",
"0.6437831",
"0.6394143",
"0.6355402",
"0.63504314",
"0.63412774",
"0.63412774",
"0.63412774",
"0.63286877",
"0.6315928",
"0.63131166",
"0.6311728",
"0.6274... | 0.73048663 | 1 |
Convert from a `.ClockTime` relative to a given epoch. | def pHwr(Emd4, Y8_t, qtWj):
Y8_t = ufun(*Y8_t)
i8WE = Y8_t.seconds % 86400
RDwm = int(1000000000 * i8WE + Y8_t.nanoseconds)
return Kmii.from_ticks(qtWj.time().ticks + RDwm / 1000000000) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pHwr(Emd4, Y8_t, qtWj):\n try:\n Y8_t = ufun(*Y8_t)\n except (TypeError, ValueError):\n raise ValueError('Clock time must be a 2-tuple of (s, ns)')\n else:\n VVMx = Y8_t.seconds // 86400\n return Qrp8.from_ordinal(VVMx + qtWj.date().to_ordinal())",
"def pHwr(Emd4, Y8_t, q... | [
"0.7280089",
"0.69134337",
"0.68081146",
"0.67190325",
"0.6690904",
"0.6524837",
"0.6480407",
"0.64309776",
"0.6430363",
"0.6338215",
"0.63270414",
"0.6325627",
"0.63172716",
"0.63090855",
"0.62890446",
"0.62575257",
"0.62375146",
"0.6222397",
"0.62019116",
"0.61963034",
"0.6... | 0.7584726 | 0 |
Convert from a ClockTime relative to a given epoch. | def pHwr(Emd4, Y8_t, qtWj):
try:
C6wh, RDwm = ufun(*Y8_t)
except (TypeError, ValueError):
raise ValueError('Clock time must be a 2-tuple of (s, ns)')
else:
VVMx, q_E9 = divmod(C6wh, 86400)
y6Fc = Qrp8.from_ordinal(VVMx + qtWj.date().to_ordinal())
RDwm = int(1000000000... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pHwr(Emd4, Y8_t, qtWj):\n Y8_t = ufun(*Y8_t)\n i8WE = Y8_t.seconds % 86400\n RDwm = int(1000000000 * i8WE + Y8_t.nanoseconds)\n return Kmii.from_ticks(qtWj.time().ticks + RDwm / 1000000000)",
"def pHwr(Emd4, Y8_t, qtWj):\n try:\n Y8_t = ufun(*Y8_t)\n except (TypeError, ValueError):\n... | [
"0.7537078",
"0.7306517",
"0.68016857",
"0.6687647",
"0.66107655",
"0.65476406",
"0.652228",
"0.6481649",
"0.64578503",
"0.64372444",
"0.6394765",
"0.6355602",
"0.6348688",
"0.6338541",
"0.6338541",
"0.6338541",
"0.6326774",
"0.63125473",
"0.63117135",
"0.6309102",
"0.6272152... | 0.6921328 | 2 |
Convert to a native Python `datetime.datetime` value. | def dGsl(YKHO):
LVAh, ohcp, Csk6 = YKHO.year_month_day
MKlR, r8hN, KCHu = YKHO.hour_minute_second
KCHu, PCpl = UgTh(KCHu, 1)
NmYP = int(D8eF(PCpl, 1000000))
yl4j = YKHO.tzinfo
return qcWV(LVAh, ohcp, Csk6, MKlR, r8hN, KCHu, NmYP, yl4j) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HD8_(YKHO, BWXx):\n if BWXx is None:\n return None\n if isinstance(BWXx, qcWV.datetime):\n return BWXx\n if isinstance(BWXx, ITS7.struct_time):\n return qcWV.datetime(*BWXx[:6])\n if BfDw.is_string(BWXx):\n BWXx = int(BWXx)\n if isinstance(BWXx, float) or isinstance(B... | [
"0.7686005",
"0.72873324",
"0.7117993",
"0.7073667",
"0.69670993",
"0.690869",
"0.684892",
"0.6847382",
"0.6760503",
"0.6670159",
"0.66678524",
"0.6648308",
"0.66308933",
"0.653971",
"0.65127987",
"0.6458655",
"0.64411473",
"0.6440873",
"0.64405304",
"0.6410465",
"0.640437",
... | 0.67387784 | 9 |
Converts a date/time string into a datetime object with the given time zone. | def o5Ya(CMdN, yl4j):
try:
JRYC = qcWV.strptime(CMdN, '%Y-%m-%d')
except ValueError:
try:
JRYC = qcWV.strptime(CMdN, '%Y-%m-%d %H:%M')
except ValueError:
JRYC = qcWV.strptime(CMdN, '%Y-%m-%d %H:%M:%S')
return yl4j.localize(JRYC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ed19(YKHO, GXef):\n lhKE = rIAI(YKHO.env.config.timezone)\n XY0T = TZLK(GXef)\n if XY0T.tzinfo:\n return XY0T.astimezone(lhKE)\n elif XY0T:\n return lhKE.localize(XY0T)",
"def TZLK(CMdN, yl4j=rIAI.utc):\n JRYC = None\n try:\n JRYC = qcWV.datetime.strptime(CMdN, '%Y-%m-%... | [
"0.76232785",
"0.7466339",
"0.7371291",
"0.73580354",
"0.7290975",
"0.7147598",
"0.70725405",
"0.70714974",
"0.70582604",
"0.70553404",
"0.7002087",
"0.69544375",
"0.6922212",
"0.6889806",
"0.68724585",
"0.6854225",
"0.68246686",
"0.68223566",
"0.6798458",
"0.676805",
"0.6730... | 0.7487011 | 1 |
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter. | def cfQO(tvqc, QpfX):
print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId'])
"\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill that sends requests to this\n function.\n "
i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])... | [
"0.6921032",
"0.6763787",
"0.65839535",
"0.649157",
"0.64585096",
"0.63782",
"0.6287271",
"0.6271771",
"0.62701666",
"0.62468606",
"0.62197703",
"0.6216392",
"0.61955833",
"0.6180577",
"0.61535",
"0.61444795",
"0.6134036",
"0.6131286",
"0.6051962",
"0.6008233",
"0.5982422",
... | 0.56619215 | 53 |
An elementwise softmin between two or more arrays. Related to the logsumexp() function. Useful for optimization because it's differentiable and preserves convexity! | def Xi1m(*qIxc: Union[float, _np.ndarray], kSbX: float=None, XVEk: float=None) -> uLKX[float, VEDo.ndarray]:
return -N93T(*[-d7pR for d7pR in qIxc], hardness=kSbX, softness=XVEk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xi1m(EcVT, SGf8, jDK_=1):\n ut5U = oyIN.exp(-EcVT / SGf8)\n ut5U = ut5U.sum(axis=jDK_).reshape(-1, 1)\n return -SGf8 * oyIN.log(ut5U)",
"def Xi1m(ezWE, Cwt5):\n return -N93T(-ezWE, Cwt5)",
"def _HQn(jzdc, Fg_i, Z9rn):\n Lcmt = min(jzdc, min(Fg_i, Z9rn))\n FAxD = oyIN.exp(Lcmt - jzdc)\n ... | [
"0.70007706",
"0.6862455",
"0.67259455",
"0.66548616",
"0.6254726",
"0.62411106",
"0.6216185",
"0.61800677",
"0.6156386",
"0.614548",
"0.61439717",
"0.6125787",
"0.6101624",
"0.61000067",
"0.60983324",
"0.609337",
"0.6090497",
"0.6076195",
"0.60728866",
"0.6064903",
"0.606155... | 0.6498125 | 4 |
Replace all uses of `self` in the Graph with the Node `replace_with`. Returns the list of nodes on which this change was made. | def ifLj(YKHO, zkdw: 'Node') -> x1iM['Node']:
_exR: x1iM[o7DN] = YKHO.find_uses()
for QAMp in _exR:
def N2uW(exwG: Node) -> o7DN:
if exwG == YKHO:
YKHO.uses -= 1
return zkdw
else:
return exwG
APaO = n8_G(QAMp.args, N2uW)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EfVI(YKHO, Oqqm: Dict[Elements.Element, Elements.Element]):\n if YKHO.__class__.implementationLib == HuE0:\n ziRQ.relabel_nodes(YKHO.underlyingRawGraph, Oqqm, copy=False)\n else:\n raise NotImplementedError",
"def qx_G(YKHO, vfKK):\n x0SS = set()\n for LiTy in tuple(vfKK.observers):... | [
"0.6680008",
"0.609415",
"0.6015967",
"0.60155463",
"0.5982683",
"0.59416896",
"0.5797015",
"0.57231146",
"0.5682371",
"0.5643416",
"0.5478037",
"0.5412196",
"0.5399845",
"0.53826404",
"0.5274915",
"0.52693665",
"0.5241302",
"0.5239573",
"0.52190036",
"0.52139",
"0.5200907",
... | 0.78324026 | 0 |
Tests that a patch on a specific setting returns forbidden if unauthenticated | def eYg3(x0hE, FZLv, I62H):
bD7m = gxEw('notification_settings-detail', kwargs={'notification_type': I62H})
geh0 = x0hE.patch(bD7m, {'trigger_frequency': FZLv})
assert geh0.status_code == jGRS.HTTP_401_UNAUTHORIZED | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qbbb(YKHO):\n YKHO.client.force_authenticate(user=YKHO.regular_user)\n geh0 = YKHO.client.patch(mrnh(1), YKHO.survey_data)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def TC_x(YKHO, x0hE, muwo):\n xKba = qaMD.create(type='value')\n bD7m = YKHO.get_detail_url(xKba.id)\n ... | [
"0.70244175",
"0.6891208",
"0.68659085",
"0.6837154",
"0.6599281",
"0.6575721",
"0.6529025",
"0.64406216",
"0.64081347",
"0.64074564",
"0.6399419",
"0.63911843",
"0.63911843",
"0.63646364",
"0.63569945",
"0.63547754",
"0.6348501",
"0.6341057",
"0.6327048",
"0.63226205",
"0.62... | 0.7051555 | 0 |
Turn list of words into list of indices, ignoring words that have been excluded from the dictionary. | def Dcxv(l5Ny: list, OaWc: dict) -> list:
_0VL = []
for GIN8 in l5Ny:
try:
_0VL.append(OaWc[GIN8])
except KeyError as error:
pass
return _0VL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def txtC(YKHO, V22M):\n return [YKHO.get_index(GIN8) for GIN8 in V22M]",
"def ngNG(V22M, cmPJ):\n return [cmPJ[GIN8] if GIN8 in cmPJ else 0 for GIN8 in V22M]",
"def CGAu(YKHO, xDcj):\n s2mk = wr3U(xDcj)\n if YKHO.use_lemma:\n s2mk = map(dhx_, s2mk)\n if YKHO.maxngram > 1:\n IWQI = ... | [
"0.763418",
"0.7289582",
"0.71374184",
"0.6951087",
"0.69173795",
"0.6861308",
"0.6831116",
"0.68172985",
"0.68172985",
"0.6811959",
"0.6807816",
"0.6774819",
"0.67689556",
"0.6757249",
"0.6700089",
"0.6688974",
"0.6680444",
"0.6489431",
"0.64855677",
"0.64855677",
"0.6481132... | 0.69040674 | 5 |
Returns the type of the instance (device type). | def EhYO(YKHO) -> str:
if YKHO._type is not None:
return YKHO._type
try:
YKHO._type = YKHO.state_file.load_field_type()
except Ne3R as e:
LBMK = F9PD(tTpl)
raise LBMK(f"Cannot retrieve the 'type' field because: {str(tTpl)}") from tTpl
return YKHO._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DEXX(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_type')",
"def DEXX(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_type')",
"def DEXX(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_type')",
"def DEXX(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_type')",
"def DEXX(YKHO) -> str:\n ... | [
"0.8362992",
"0.8362992",
"0.8362992",
"0.8362992",
"0.8362992",
"0.8362992",
"0.8229741",
"0.81885076",
"0.81885076",
"0.7962601",
"0.79456866",
"0.7933898",
"0.7933898",
"0.7933898",
"0.7933898",
"0.7933898",
"0.7933898",
"0.7933898",
"0.7933898",
"0.7856823",
"0.7856823",
... | 0.7263053 | 77 |
Path to the device state file / device instance's state file. Usually found at `[mydeviceinstancedir]/device.json`. | def x6nZ(YKHO) -> H5Xe:
return H5Xe(YKHO._dir.joinpath(YKHO._dir_layout.state_file_stem).with_suffix(f'.{YKHO._dir_layout.state_file_ext}')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def smW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_path')",
"def Okx7(YKHO, Hvmc, x6nZ):\n if not x6nZ:\n return Hy7s.path.join(Hvmc, 'state', 'siem_sophos.json')\n else:\n return x6nZ if Hy7s.path.isabs(x6nZ) else Hy7s.path.join(Hvmc, x6nZ)",
"def smW4(YKHO):\n return YKHO._devic... | [
"0.7153123",
"0.69029766",
"0.686362",
"0.67793065",
"0.67128724",
"0.6651037",
"0.6624433",
"0.65653604",
"0.64866924",
"0.6460016",
"0.6314065",
"0.6265916",
"0.6227156",
"0.61729735",
"0.6149816",
"0.6104837",
"0.6099995",
"0.60433304",
"0.60382974",
"0.6029475",
"0.602468... | 0.6941388 | 1 |
Returns the state for the instance. | def QTBn(YKHO) -> aiN_:
try:
return YKHO.state_file.load()
except Ne3R as e:
LBMK = F9PD(tTpl)
raise LBMK(f'Cannot retrieve the state because: {str(tTpl)}') from tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO) -> wHLO:\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
... | [
"0.8592148",
"0.8589274",
"0.85763854",
"0.85763854",
"0.85763854",
"0.85763854",
"0.85763854",
"0.85763854",
"0.85763854",
"0.8568242",
"0.85668993",
"0.85668993",
"0.85668993",
"0.85668993",
"0.8529174",
"0.85211414",
"0.85211414",
"0.845494",
"0.8438391",
"0.8438391",
"0.8... | 0.0 | -1 |
Returns the state for the instance. | def K3iZ(YKHO) -> UYdn:
try:
return YKHO.state_file.load_plain()
except Ne3R as e:
LBMK = F9PD(tTpl)
raise LBMK(f'Cannot retrieve the plain state because: {str(tTpl)}') from tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO) -> wHLO:\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
... | [
"0.8589214",
"0.8587613",
"0.8574368",
"0.8574368",
"0.8574368",
"0.8574368",
"0.8574368",
"0.8574368",
"0.8574368",
"0.85665214",
"0.8564561",
"0.8564561",
"0.8564561",
"0.8564561",
"0.8527066",
"0.8519087",
"0.8519087",
"0.84537065",
"0.84367347",
"0.84367347",
"0.84367347"... | 0.0 | -1 |
Return this repository's root directory. | def dir(YKHO) -> GkAb:
return YKHO._root_dir | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jNha(YKHO) -> GkAb:\n if YKHO.test_root:\n return GkAb(YKHO.test_root)\n return GkAb(Hy7s.getcwd())",
"def Rip8(YKHO):\n return YKHO.root_path",
"def jNha(YKHO) -> str:\n return YKHO._root_dir",
"def jNha(YKHO):\n return YKHO.__root_dir",
"def Rip8(YKHO):\n return YKHO._root_di... | [
"0.8605026",
"0.84534454",
"0.8381454",
"0.83806276",
"0.8295277",
"0.8264244",
"0.82291853",
"0.82153845",
"0.8130369",
"0.8104504",
"0.79401445",
"0.7861549",
"0.78401977",
"0.78401977",
"0.7777512",
"0.77770513",
"0.774346",
"0.7734434",
"0.77165735",
"0.77061385",
"0.7669... | 0.75361586 | 32 |
A namedtuple of detector parameters extracted from its name (readonly). | def QwO3(YKHO):
nUPH = UQtd('Detector', ['id', 'n_modules', 'version'])
return nUPH(*(int(Csk6) for Csk6 in ZbWC.findall('\\d+', YKHO.detector_name))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rdgn(Emd4):\n return dict(l='unit resistor length, in meters.', w='unit resistor width, in meters.', res_type='the resistor type.', sub_type='the substrate type.', threshold='substrate threshold flavor.', min_tracks='Minimum number of tracks on each layer per block.', em_specs='resistor EM spec specificatio... | [
"0.63456506",
"0.6314298",
"0.62636566",
"0.624087",
"0.61400294",
"0.6133914",
"0.6129135",
"0.6096016",
"0.60774726",
"0.60564584",
"0.6052888",
"0.6050558",
"0.6020377",
"0.601432",
"0.60138816",
"0.60133636",
"0.5983615",
"0.5929732",
"0.5894946",
"0.5882581",
"0.5851122"... | 0.0 | -1 |
Return resulting image dtype of a detector. | def ctjU(YKHO, TtHW, *, ya19=True):
if ya19:
if TtHW != oyIN.uint16:
raise TypeError(f'Only images of dtype {oyIN.dtype(oyIN.uint16)} can be converted.')
if YKHO.factor is None:
g3AB = oyIN.dtype(oyIN.float32)
else:
g3AB = oyIN.dtype(oyIN.int32)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDqo(YKHO):\n return YKHO._finfo.dtype",
"def yDqo(YKHO):\n jNOo = [0] * len(YKHO.shape)\n return YKHO[tuple(jNOo)].dtype",
"def yDqo(YKHO):\n return YKHO.profile['dtype']",
"def yDqo(YKHO):\n return oyIN.dtype(YKHO.ai_['typestr'])",
"def qxps(YKHO):\n pass",
"def iR6h(YKHO):\n r... | [
"0.68832296",
"0.68045026",
"0.6656139",
"0.66261005",
"0.6538671",
"0.6485988",
"0.6378252",
"0.6376808",
"0.63194966",
"0.6313591",
"0.63036066",
"0.6295684",
"0.62649125",
"0.6262448",
"0.6240128",
"0.6234844",
"0.6212901",
"0.6201198",
"0.6201198",
"0.6201198",
"0.6201198... | 0.5910431 | 62 |
Set up the application for testing. The method 'setUp' simply starts the application in test mode. | def FCbF(YKHO):
YKHO.app = LUif('testing')
YKHO.app_context = YKHO.app.app_context()
YKHO.app_context.push()
NCls.create_all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO) -> None:\n YKHO.testapp = UG4b(P4t4.app())",
"def FCbF(YKHO):\n YKHO.app = LUif(config_name='testing')\n YKHO.app.testing = True\n YKHO.client = YKHO.app.test_client()",
"def FCbF(YKHO):\n b8V_.app.testing = True\n YKHO.app = b8V_.app.test_client()",
"def FCbF(YKHO):\n YKH... | [
"0.8308737",
"0.8255703",
"0.8218447",
"0.8210657",
"0.8191113",
"0.8135798",
"0.81145245",
"0.80347025",
"0.80140156",
"0.80140156",
"0.80140156",
"0.80140156",
"0.80140156",
"0.80140156",
"0.80140156",
"0.80140156",
"0.80072373",
"0.80024093",
"0.79900557",
"0.7989506",
"0.... | 0.0 | -1 |
Spherical model, m is [psill, range, nugget] | def sE6F(r8hN, Csk6):
Y1mV = float(r8hN[0])
PC7c = float(r8hN[1])
VYEn = float(r8hN[2])
return oyIN.piecewise(Csk6, [Csk6 <= PC7c, Csk6 > PC7c], [lambda WKvO: Y1mV * (3.0 * WKvO / (2.0 * PC7c) - WKvO ** 3.0 / (2.0 * PC7c ** 3.0)) + VYEn, Y1mV + VYEn]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ed_v(gaWM, rRm2, Z5Hx, VSwK, VEUe):\n Te5p = 4 * Z5Hx * VSwK * (1 - gaWM) / (3 * Z5Hx * gaWM + 4 * VSwK)\n oOo0 = VSwK * (9 * Z5Hx + 8 * VSwK) * (1 - gaWM) / (9 * Z5Hx + 8 * VSwK + 6 * (Z5Hx + 2 * VSwK) * gaWM)\n [mkHD, kOej] = nc1f(gaWM, Te5p, oOo0, Z5Hx, VEUe)\n vspo = oyIN.sqrt((mkHD + 4 / 3 * k... | [
"0.7119486",
"0.66906416",
"0.6669481",
"0.66597563",
"0.66342926",
"0.65330905",
"0.6414132",
"0.6400606",
"0.63740766",
"0.6359318",
"0.6353346",
"0.629818",
"0.6260253",
"0.623085",
"0.62083274",
"0.61723346",
"0.6084538",
"0.6051465",
"0.6001947",
"0.5984164",
"0.5943806"... | 0.7461142 | 0 |
Internal method to handle translation of a tuple to object | def hBUG(YEnM, ZLJ_, hGN5):
return super(_JMH, _JMH).translate(YEnM, ZLJ_, hGN5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pav5(YEnM):\n if isinstance(YEnM, str):\n return (YEnM,)\n else:\n return YEnM",
"def XR1G(YEnM):\n if isinstance(YEnM, (str, bytes)):\n return (YEnM,)\n else:\n try:\n return tuple(YEnM)\n except:\n return (YEnM,)",
"def zkrP(YEnM):\n ... | [
"0.740889",
"0.7301764",
"0.7031614",
"0.684574",
"0.676961",
"0.67068",
"0.66947037",
"0.6579755",
"0.6556398",
"0.64589787",
"0.64249927",
"0.635806",
"0.6289153",
"0.6276838",
"0.6228675",
"0.6204439",
"0.6192786",
"0.61619055",
"0.6148897",
"0.61472267",
"0.61365616",
"... | 0.0 | -1 |
Internal method to handle translation of a tuples to objects | def JeBc(YEnM, ZLJ_, kGys):
return super(_JMH, _JMH).translate_many(YEnM, ZLJ_, kGys) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pav5(YEnM):\n if isinstance(YEnM, str):\n return (YEnM,)\n else:\n return YEnM",
"def XR1G(YEnM):\n if isinstance(YEnM, (str, bytes)):\n return (YEnM,)\n else:\n try:\n return tuple(YEnM)\n except:\n return (YEnM,)",
"def zkrP(YEnM):\n ... | [
"0.71320087",
"0.6954752",
"0.6590924",
"0.6496758",
"0.6445813",
"0.6388577",
"0.6384088",
"0.6272497",
"0.6202767",
"0.619588",
"0.6190889",
"0.6180225",
"0.61569536",
"0.606912",
"0.6056004",
"0.6045443",
"0.6042249",
"0.60392565",
"0.6014947",
"0.59984154",
"0.5960606",
... | 0.0 | -1 |
Takes an array of hex strings and converts them into integers | def huug(YKHO, ezWE):
OeK1 = []
for ZfUD in ezWE:
OeK1.append(int(ZfUD, 16))
YKHO.logger.debug('Converted %d/%d items', len(OeK1), len(ezWE))
return OeK1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xCpn(a1PO):\n return (int(Fg_i, 16) for Fg_i in a1PO)",
"def xCpn(cUBR):\n return [int(cUBR[YRbF:YRbF + 2], 16) for YRbF in (1, 3, 5)]",
"def dBNd(YKHO, KCHu):\n return oyIN.int(''.join([chr(WKvO) for WKvO in KCHu]), 0)",
"def bkaR(WPdU):\n return [int(WKvO, 16) for WKvO in WPdU]",
"def PCN... | [
"0.7465936",
"0.74114066",
"0.73552305",
"0.7186071",
"0.6882951",
"0.68334216",
"0.6820107",
"0.6754939",
"0.6752894",
"0.67240894",
"0.6723167",
"0.6713972",
"0.6707585",
"0.6707399",
"0.67064923",
"0.6634771",
"0.662683",
"0.66108423",
"0.65859",
"0.65817916",
"0.65556765"... | 0.59568876 | 97 |
Updates parameters using the gradient descent update rule given above | def pu93(SGPK, vtNT, b0Ix=1.2):
eiBr = SGPK['W1']
kYGz = SGPK['b1']
krgz = SGPK['W2']
ftz7 = SGPK['b2']
ZU58 = vtNT['dW1']
Xl0U = vtNT['db1']
RaNI = vtNT['dW2']
eQPS = vtNT['db2']
eiBr = eiBr - b0Ix * ZU58
kYGz = kYGz - b0Ix * Xl0U
krgz = krgz - b0Ix * RaNI
ftz7 = ftz7 - ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EayS(Fv2L, NArs, JuX_):\n vGU_ = {}\n hUTg = int(len(NArs.items()) / 2 + 1)\n b0Ix = Fv2L['learning_rate']\n for vC9B in range(1, hUTg):\n vGU_['W_' + str(vC9B)] = NArs['W_' + str(vC9B)] - b0Ix * JuX_['grad_W_' + str(vC9B)]\n vGU_['b_' + str(vC9B)] = NArs['b_' + str(vC9B)] - b0Ix * Ju... | [
"0.8033603",
"0.7880712",
"0.7785652",
"0.7504555",
"0.74239635",
"0.73795944",
"0.7350396",
"0.73156595",
"0.7307017",
"0.72490376",
"0.72246295",
"0.72243696",
"0.72145325",
"0.72054857",
"0.72013146",
"0.71899176",
"0.7179707",
"0.71490955",
"0.7146075",
"0.714261",
"0.713... | 0.7299298 | 9 |
Render the login form | def LIPt(PNq_):
from example_app.lib.base import render
from pylons import tmpl_context as Z9rn
Z9rn.dto = {'errors': {}, 'data': {}}
KvKd = PNq_['paste.parsed_dict_querystring'][0] if 'paste.parsed_dict_querystring' in PNq_ and len(PNq_['paste.parsed_dict_querystring']) > 0 else {}
Z9rn.came_from =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gckm():\n return TvZl('login_form.html')",
"def Gckm():\n return TvZl('login.html')",
"def LIPt():\n return TvZl('login.html')",
"def WDGs():\n return TvZl('login.html')",
"def WDGs():\n return TvZl('login_form.html')",
"def XnII():\n return TvZl('login_form.html')",
"def WDGs():\... | [
"0.88121104",
"0.8792796",
"0.8701698",
"0.86093724",
"0.85996693",
"0.8599376",
"0.85955024",
"0.84732735",
"0.83035564",
"0.8139964",
"0.8132899",
"0.802313",
"0.80176306",
"0.7992132",
"0.7992132",
"0.79679567",
"0.7961619",
"0.7961619",
"0.79078",
"0.78934866",
"0.7868799... | 0.75595564 | 37 |
Rotate the given node left, making the new head be node.right | def hoh2(J_Es, Q6kx):
G9jH.debug('Rotating Left: {}'.format(Q6kx))
assert isinstance(Q6kx, o7DN)
assert Q6kx.right is not None
yN3e, _5oG = Q6kx.rotate_left()
if yN3e:
J_Es.root = _5oG
return _5oG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eXAm(Q6kx):\n print('left rotation node:', Q6kx.get_data())\n U5bT = Q6kx.get_left()\n Q6kx.set_left(U5bT.get_right())\n U5bT.set_right(Q6kx)\n zhMh = a45I(xglF(Q6kx.get_right()), xglF(Q6kx.get_left())) + 1\n Q6kx.set_height(zhMh)\n WL4f = a45I(xglF(U5bT.get_right()), xglF(U5bT.get_left)) ... | [
"0.8341275",
"0.8283953",
"0.8276951",
"0.817075",
"0.8140886",
"0.80123407",
"0.7936561",
"0.79189533",
"0.7895073",
"0.78476983",
"0.7844696",
"0.7828422",
"0.77492034",
"0.76700735",
"0.76543355",
"0.7636723",
"0.7631679",
"0.76311094",
"0.76159614",
"0.759616",
"0.7564849... | 0.8156994 | 4 |
Rotate the given node right, making the new head be node.left | def I_tC(J_Es, Q6kx):
G9jH.debug('Rotating Right: {}'.format(Q6kx))
assert isinstance(Q6kx, o7DN)
assert Q6kx.left is not None
yN3e, _5oG = Q6kx.rotate_right()
if yN3e:
J_Es.root = _5oG
return _5oG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k2v7(Q6kx):\n Q6kx.set_left(l6Fu(Q6kx.get_left()))\n return eXAm(Q6kx)",
"def cD9a(Q6kx):\n jbXL = Q6kx.left\n jbXL.right, Q6kx.left = (Q6kx, jbXL.right)\n jbXL.parent = Q6kx.parent\n Q6kx.parent = jbXL\n if Q6kx.left:\n Q6kx.left.parent = Q6kx\n return jbXL",
"def cwJK(Q6kx)... | [
"0.8225029",
"0.81004554",
"0.8075031",
"0.79545045",
"0.7854847",
"0.7829539",
"0.7828546",
"0.7797864",
"0.7775695",
"0.7749106",
"0.7747098",
"0.77360207",
"0.77262396",
"0.7681067",
"0.76547974",
"0.7645478",
"0.76427424",
"0.76139",
"0.7599036",
"0.7596462",
"0.74928933"... | 0.8157465 | 1 |
The Amazon Resource Name (ARN) of an IAM role that grants the AWS Support App access to perform operations for AWS services. | def EHCx(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'channel_role_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'",
"def axXk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"d... | [
"0.82535475",
"0.7886661",
"0.7886661",
"0.7886661",
"0.7886661",
"0.7886661",
"0.7886661",
"0.78559625",
"0.7739233",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.... | 0.0 | -1 |
The severity level of a support case that a customer wants to get notified for. | def UQsm(YKHO) -> qe4Y.Input['SlackChannelConfigurationNotifyOnCaseSeverity']:
return qe4Y.get(YKHO, 'notify_on_case_severity') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwlZ(YKHO) -> int:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> float:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(Y... | [
"0.7737812",
"0.7720389",
"0.7673477",
"0.7673477",
"0.7673477",
"0.7673477",
"0.7673477",
"0.7673477",
"0.7673477",
"0.75489485",
"0.75489485",
"0.75489485",
"0.7515551",
"0.749044",
"0.742269",
"0.7372626",
"0.72767663",
"0.72767663",
"0.7270143",
"0.7270143",
"0.7251369",
... | 0.7009557 | 25 |
The team ID in Slack, which uniquely identifies a workspace. | def b2mu(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'team_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NPt0(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_id')",
"def NPt0(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_id')",
"def NPt0(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_id')",
"def b2mu(YKHO):\n return YKHO.c['team'].id",
"def b2mu(YKHO) -> qe4Y.Output[str]:\n return qe4... | [
"0.79873914",
"0.79873914",
"0.79873914",
"0.7945292",
"0.7851514",
"0.7851514",
"0.77429384",
"0.7734128",
"0.769033",
"0.769033",
"0.769033",
"0.75297886",
"0.75297886",
"0.74810433",
"0.745003",
"0.7417603",
"0.7417603",
"0.74101555",
"0.71540344",
"0.71363854",
"0.7083915... | 0.784517 | 6 |
The Amazon Resource Name (ARN) of an IAM role that grants the AWS Support App access to perform operations for AWS services. | def EHCx(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'channel_role_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'",
"def axXk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"def axXk(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'role_arn')",
"d... | [
"0.82535475",
"0.7886661",
"0.7886661",
"0.7886661",
"0.7886661",
"0.7886661",
"0.7886661",
"0.78559625",
"0.7739233",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.77071965",
"0.... | 0.0 | -1 |
The severity level of a support case that a customer wants to get notified for. | def UQsm(YKHO) -> qe4Y.Output['SlackChannelConfigurationNotifyOnCaseSeverity']:
return qe4Y.get(YKHO, 'notify_on_case_severity') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwlZ(YKHO) -> int:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> float:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(Y... | [
"0.7738852",
"0.7721878",
"0.7674776",
"0.7674776",
"0.7674776",
"0.7674776",
"0.7674776",
"0.7674776",
"0.7674776",
"0.75507355",
"0.75507355",
"0.75507355",
"0.7516783",
"0.7492239",
"0.74236417",
"0.7373664",
"0.72777593",
"0.72777593",
"0.727174",
"0.727174",
"0.7131987",... | 0.72517455 | 20 |
The team ID in Slack, which uniquely identifies a workspace. | def b2mu(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'team_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NPt0(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_id')",
"def NPt0(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_id')",
"def NPt0(YKHO) -> str:\n return qe4Y.get(YKHO, 'workspace_id')",
"def b2mu(YKHO):\n return YKHO.c['team'].id",
"def b2mu(YKHO) -> qe4Y.Input[str]:\n return qe4Y... | [
"0.79866487",
"0.79866487",
"0.79866487",
"0.7946875",
"0.7846211",
"0.7743331",
"0.7732863",
"0.7690889",
"0.7690889",
"0.7690889",
"0.75288117",
"0.75288117",
"0.74802095",
"0.7449307",
"0.7416549",
"0.7416549",
"0.7411514",
"0.7154456",
"0.7137527",
"0.7085351",
"0.6966663... | 0.7852197 | 4 |
Answer an array containing a list of dendrites for each frame. | def UfFL(YKHO):
TVTK, H2v2, e305, R6Qk, PJmH = YKHO.image.getDimensions()
Y3XK = [[] for WKvO in range(0, PJmH)]
for U6D_ in YKHO.elements.values():
a1PO = U6D_.getFrame()
Y3XK[a1PO - 1].append(U6D_)
return Y3XK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Csk6(YKHO):\n return [YKHO.ptr.contents.d[YRbF] for YRbF in range(8)]",
"def HPwY(VIPT):\n Pp7E = []\n for f4IJ in VIPT.itervalues():\n for YRbF in range(len(f4IJ)):\n for r845 in range(len(f4IJ)):\n if YRbF != r845:\n kUWz = nq0m(f4IJ[YRbF]['type'... | [
"0.62261385",
"0.5824938",
"0.5604493",
"0.5602853",
"0.557126",
"0.5567489",
"0.5508102",
"0.5494531",
"0.5478156",
"0.5419549",
"0.54087394",
"0.5406678",
"0.53782785",
"0.5368383",
"0.5363545",
"0.53518206",
"0.53098387",
"0.5298105",
"0.52930117",
"0.52846444",
"0.5278469... | 0.64516467 | 0 |
Pull all values of specified key from nested JSON. | def SMfb(YEnM, H5ew):
ezWE = []
def JDhM(YEnM, ezWE, H5ew):
"""Recursively search for values of key in JSON tree."""
if isinstance(YEnM, dict):
for G1Hx, Ty9i in YEnM.items():
if isinstance(Ty9i, (dict, list)):
JDhM(Ty9i, ezWE, H5ew)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SMfb(YEnM, H5ew):\n ezWE = []\n\n def JDhM(YEnM, ezWE, H5ew):\n \"\"\"Recursively search for values of key in JSON tree.\"\"\"\n if isinstance(YEnM, dict):\n for G1Hx, Ty9i in YEnM.items():\n if isinstance(Ty9i, (dict, list)):\n JDhM(Ty9i, ezWE, ... | [
"0.7435941",
"0.7420898",
"0.7418829",
"0.73826176",
"0.73826176",
"0.7332915",
"0.7264724",
"0.72622323",
"0.69451916",
"0.6679351",
"0.663465",
"0.6526586",
"0.6514475",
"0.6406688",
"0.6268716",
"0.6146409",
"0.6143308",
"0.61209124",
"0.6115008",
"0.6106384",
"0.6106384",... | 0.7370373 | 5 |
TC(time conv) Residual block. | def ZLzW(g4y1, zl8R, Ot1W, KUnM, ivFb, uuHL, GCA8, hr1G, YDYE):
if uuHL and GCA8 not in ('same', 'causal'):
raise ValueError('padding should be same or causal')
Zxma = g4y1
if uuHL:
hyZd = ZylS.keras.layers.Conv2D(filters=KUnM, kernel_size=1, activation='linear')(Zxma)
hyZd = ZylS.ke... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QufS(oubr, KUnM):\n Csk6 = yHwh(KUnM, kernel_size=(3, 3), strides=1, padding='same')(oubr)\n Csk6 = MroH('relu')(Csk6)\n Csk6 = yHwh(KUnM, kernel_size=(3, 3), strides=1, padding='same')(Csk6)\n Csk6 = MroH('relu')(Csk6)\n Csk6 = XVRe()([Csk6, oubr])\n return Csk6",
"def QufS(oubr, KUnM):\n ... | [
"0.597741",
"0.5948439",
"0.59356797",
"0.59269345",
"0.59269345",
"0.5917048",
"0.5893645",
"0.5783892",
"0.5719162",
"0.5708702",
"0.56593555",
"0.56502825",
"0.5623476",
"0.5615957",
"0.56144965",
"0.56018025",
"0.5582862",
"0.5571085",
"0.5541462",
"0.5537223",
"0.5520447... | 0.65008086 | 0 |
karafTimeout is an optional argument. karafTimeout value passed by user would be used to set the current karaf shell idle timeout. Note that when ever this property is modified the shell will exit and the subsequent login would reflect new idle timeout. Below is an example to start a session with 60 seconds idle timeou... | def aaIZ(YKHO, M4sn, hv4z='', zSN8=10, inNM=60):
YKHO.onosIp = M4sn
try:
YKHO.handle.sendline('')
WKvO = YKHO.handle.expect(['\\$', 'onos>'], zSN8)
if WKvO == 1:
b8V_.log.info('ONOS cli is already running')
return b8V_.TRUE
YKHO.handle.sendline('onos -w ' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NI9K(YKHO, eRPr, ufay='vtysh', IiI9={'matches': None, 'newline': True, 'timeout': None, 'connection': None}):\n HCmI = ['session-timeout {mins}']\n cbwj = YKHO.enode.get_shell(ufay)\n cbwj.send_command(' '.join(HCmI).format(**locals()), **IiI9)\n Aofo = cbwj.get_response(connection=IiI9.get('connec... | [
"0.6328789",
"0.59217256",
"0.5669486",
"0.55167574",
"0.55097747",
"0.5414073",
"0.5414073",
"0.53570557",
"0.5347919",
"0.53342164",
"0.5324501",
"0.5321769",
"0.5280813",
"0.5240721",
"0.52315575",
"0.5206506",
"0.5179851",
"0.51520276",
"0.5150339",
"0.5150339",
"0.513377... | 0.0 | -1 |
Determine whether the plate is done from the pluggings on that plate. | def XpyV(YKHO):
if True not in ['boss' in Inv7.label.lower() for Inv7 in YKHO.surveys]:
return 'n/a'
if YKHO.completionStatus.pk == 0:
return YKHO._automaticCompletionStatus()
else:
return YKHO.completionStatus.label | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IXlb(YKHO):\n jzdc = YKHO.vision_data.get_can_shoot()\n if len(jzdc) > 0:\n return jzdc[0] == 1\n else:\n return False",
"def dwZO(YKHO):\n for wEf2 in YKHO._player_cards.values():\n if wEf2['hand']:\n return False\n return True",
"def sDNt(YKHO):\n SW0z = ... | [
"0.6678329",
"0.6535476",
"0.6511398",
"0.64899504",
"0.64843976",
"0.6436583",
"0.63548124",
"0.6335259",
"0.63040245",
"0.6267421",
"0.6249773",
"0.62304467",
"0.62220603",
"0.622053",
"0.6211837",
"0.6200089",
"0.61964685",
"0.6187687",
"0.61412466",
"0.6137474",
"0.611809... | 0.0 | -1 |
Parse snetences and labels from a serialized tf.train.Example. | def mrkP(PU1l: Dict[str, tf.Tensor]) -> cuzp[str, ImMB]:
or8S = PU1l['idx']
UXqs = PU1l['label']
XZRj, uq1L = x4n2[YKHO.name]
PKBr = PU1l[XZRj]
ZZRG = None
if uq1L:
ZZRG = PU1l[uq1L]
TlBS = {'text_a': PKBr, 'text_b': ZZRG, 'labels': UXqs, 'idx': or8S}
return TlBS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mrkP(PU1l: Dict[str, tf.Tensor]) -> cuzp[str, ZylS.Tensor]:\n bySB = ZylS.io.parse_single_example(PU1l['features'], features={'seq': ZylS.io.FixedLenFeature([], ZylS.string), 'label': ZylS.io.FixedLenFeature([], ZylS.int64), 'seq_info': ZylS.io.VarLenFeature(ZylS.string), 'domain': ZylS.io.VarLenFeature(Zyl... | [
"0.7838363",
"0.7601162",
"0.75633895",
"0.7560596",
"0.75278425",
"0.74802804",
"0.7471141",
"0.7441138",
"0.7358778",
"0.7293862",
"0.72562945",
"0.72441155",
"0.7212967",
"0.71159905",
"0.71131074",
"0.7088281",
"0.70730275",
"0.7027194",
"0.70235723",
"0.70235723",
"0.695... | 0.73749846 | 8 |
Resets the agent to start a new episode. | def SiRx(YKHO):
YKHO.buffer_indices = oyIN.zeros(shape=(YKHO.parallel_interactions,), dtype=gnPz.np_dtype(dtype='int'))
YKHO.timesteps, YKHO.episodes, YKHO.updates = YKHO.model.reset() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO, xgXB):\n raise NotImplementedError",
"def n5Kk(YKHO):\n YKHO._eps_length = 0\n YKHO._prev_obs = YKHO.env.reset()[0]",
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n YKHO.episodeRewards = 0.0",
"def Egem(YKHO, QTBn):\n YKHO.buff.reset_episode(QTBn)",
... | [
"0.7689599",
"0.7584548",
"0.75528044",
"0.75224906",
"0.7509441",
"0.7445272",
"0.7396035",
"0.7394922",
"0.7325059",
"0.71721804",
"0.70864",
"0.7018632",
"0.700767",
"0.6952199",
"0.6886398",
"0.6883801",
"0.68632156",
"0.6839457",
"0.6809684",
"0.67892295",
"0.67590326",
... | 0.0 | -1 |
Initializer of the onehot encoding transformation. | def FIMM(YKHO, TFPw: int):
super().__init__()
YKHO.n_classes = TFPw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vzTG(WKvO: DNDarray) -> _5mP:\n cDK5 = WKvO.shape[0]\n ROaS = ZsLl.max(WKvO).item() + 1\n KLLm = ZsLl.zeros((cDK5, ROaS), split=WKvO.split, device=WKvO.device, comm=WKvO.comm)\n KLLm.lloc[range(KLLm.lshape[0]), WKvO.larray] = 1\n return KLLm",
"def vzTG(WKvO):\n WKvO[oyIN.where(WKvO)[0]] = ... | [
"0.76334435",
"0.7595135",
"0.75231665",
"0.7450767",
"0.7443145",
"0.74206835",
"0.7410812",
"0.7313182",
"0.72943616",
"0.72886133",
"0.72841126",
"0.7283563",
"0.72666335",
"0.7254331",
"0.7252227",
"0.72424394",
"0.72235566",
"0.721204",
"0.72061527",
"0.7205592",
"0.7197... | 0.0 | -1 |
Returns the dict representation of the actual instance | def MNRr(YKHO, lDiP: bool=False) -> dict:
if YKHO.actual_instance is None:
return None
MNRr = getattr(YKHO.actual_instance, 'to_dict', None)
if callable(MNRr):
return YKHO.actual_instance.to_dict(by_alias=lDiP)
else:
return YKHO.actual_instance | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO) -> dict:\n if YKHO.actual_instance is None:\n return 'null'\n oD7C = getattr(YKHO.actual_instance, 'to_json', None)\n if callable(oD7C):\n return YKHO.actual_instance.to_dict()\n else:\n return qQXR.dumps(YKHO.actual_instance)",
"def MNRr(YKHO) -> dict:\n if YKH... | [
"0.86566573",
"0.84392285",
"0.8390739",
"0.8318623",
"0.8318623",
"0.8318623",
"0.8318623",
"0.8318623",
"0.8318623",
"0.8318623",
"0.8318623",
"0.8318623",
"0.8318623",
"0.8318078",
"0.8272369",
"0.8272369",
"0.8272369",
"0.8234455",
"0.81806",
"0.8178143",
"0.815099",
"0... | 0.0 | -1 |
Returns the string representation of the actual instance | def gTzM(YKHO, lDiP: bool=False) -> str:
return CgYo.pformat(YKHO.dict(by_alias=lDiP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '<{} instance>'.format(type(YKHO).__name__)",
"def gTzM(YKHO, KAOR):\n raise NotImplementedError",
"def wHJl(YKHO):\n return YKHO.to_str()",
"def wHJl(YKHO):\n return YKHO.to_str()",
"def wHJl(YKHO):\n return YKHO.to_str()",
"def wHJl(YKHO):\n return YKHO.to_str... | [
"0.83457786",
"0.82929766",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
"0.8267996",
... | 0.0 | -1 |
Return the type of the shortest path along the walls of a cuboid with dimensions x by y by z from one vertex to the opposite vertex. float is returned if the length is nonintegral, and int is returned if the length is integral. Assume x <= y <= z. | def W0UJ(WKvO, LVAh, epBp):
Rzk6 = (WKvO + LVAh) ** 2 + epBp ** 2
Lx0h = Rzk6 ** 0.5
if int(round(Lx0h)) ** 2 == Rzk6:
return int
else:
return float | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A1L2(jzdc=0, Fg_i=0, Z9rn=0):\n if not (isinstance(jzdc, (int, float)) and isinstance(Fg_i, (int, float)) and isinstance(Z9rn, (int, float))):\n return 'invalid'\n if jzdc <= 0 or Fg_i <= 0 or Z9rn <= 0:\n return 'invalid'\n if jzdc == Fg_i and Fg_i == Z9rn:\n return 'equilateral'... | [
"0.56026906",
"0.5533243",
"0.53815186",
"0.5374161",
"0.53620267",
"0.5345271",
"0.53039217",
"0.5296133",
"0.52880913",
"0.52727437",
"0.52547",
"0.52438545",
"0.5228532",
"0.52258265",
"0.5143029",
"0.5142636",
"0.5141446",
"0.5130379",
"0.51267576",
"0.5124545",
"0.506609... | 0.71314853 | 0 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
X_bn = {1: 'january', 2: 'february', 3: 'march', 4: 'april', 5: 'may', 6: 'june'}
Sm0u = {0: 'Monday', 1: 'Tuesday', 2: 'Wednesday', 3: 'Thursday', 4: 'Friday', 5: 'Saturday', 6: 'Sunday'}
jQ3Z['Start Ti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
bTuL = eQSh.mode(jQ3Z['Start Station'])[0]
bTuL = ''.join(bTuL)
print('the most common Start Station is {}'.format(str(bTuL)))
Nj0t = eQSh.mode(jQ3Z['End Station'])[0]
Nj0t = ''.join(Nj0t)
p... | {
"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 v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
RGHr = jQ3Z['Trip Duration'].sum()
print('the total travel time is {} minutes, or in other way the total travel time is {} hours'.format(str(int(RGHr / 60)), str(int(RGHr / (60 * 60)))))
RB_u = jQ3Z['Trip Duration'].mean()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
Return the main page (from /site/main.html) for requests to the file root | def d6pt():
return WsL5.send_file(Hy7s.path.join(j4oZ, 'main.html')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ozko():\n return TvZl('index.html')",
"def VI_d():\n return c5qa('static/index.html')",
"def d6pt():\n YfUB = Hy7s.path.join(wk5E.root_path, 'static', 'static_html', 'main_page_static_html.html')\n try:\n with open(YfUB) as eHNT:\n ueOy = eHNT.read()\n except:\n ueOy... | [
"0.7496437",
"0.74854267",
"0.7445483",
"0.7326621",
"0.7246588",
"0.7238741",
"0.7076721",
"0.6997337",
"0.6971091",
"0.6928802",
"0.69282657",
"0.69217676",
"0.68994147",
"0.68897605",
"0.68630266",
"0.68527436",
"0.68225974",
"0.68153256",
"0.67959076",
"0.67859536",
"0.67... | 0.6457196 | 50 |
Method turns a number into its byte representation in a byte array of size 'factors' + 1 | def y57E(FGW3, aM8h):
if aM8h == 0:
return bytearray([FGW3])
return y57E(FGW3 % 256 ** aM8h, aM8h - 1) + bytearray([FGW3 / 256 ** aM8h]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_YD(FGW3, zNig=G6Yh, aM8h=1):\n NrCO = Swre(FGW3 * aM8h)\n bytes = qw7D.array('B')\n for YRbF in range(zNig):\n bytes.append(0)\n while NrCO > 0 and YRbF >= 0:\n bytes[YRbF] = NrCO % 256\n NrCO /= 256\n YRbF -= 1\n return bytes.tostring()",
"def FpR6(mLGw):\n re... | [
"0.69645274",
"0.6685616",
"0.66659284",
"0.6654684",
"0.6654684",
"0.639845",
"0.6356479",
"0.62225837",
"0.6191532",
"0.61666954",
"0.61575574",
"0.61570823",
"0.6135821",
"0.61183465",
"0.61034703",
"0.60868955",
"0.6063992",
"0.60406286",
"0.6012263",
"0.6010664",
"0.5998... | 0.83594346 | 0 |
Collate fn requires datasets which returns samples as a dict in the following format sample = { | def QxcP(YKHO, c1OB):
uepV = [mvm2['image'] for mvm2 in c1OB]
vTZW = [mvm2['annotations'] for mvm2 in c1OB]
for d6pt, (LNo8, XgyP) in enumerate(zip(uepV, vTZW)):
if YKHO.configs['allow_transform']:
LNo8, XgyP = YKHO._random_transform_entry(LNo8, XgyP)
if YKHO.configs['allow_image... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QxcP(Wc9F):\n gGnb = {'original_image': [], 'padding': [], 'original_image_size': [], 'img_filename': []}\n ICya = []\n for mvm2 in Wc9F:\n for H5ew in gGnb.keys():\n gGnb[H5ew].append(mvm2[H5ew])\n ICya.append(mvm2['trans_image'])\n gGnb['trans_image'] = ht2j.stack(ICya, 0... | [
"0.733677",
"0.70574504",
"0.6785827",
"0.6747536",
"0.65431374",
"0.650508",
"0.65045583",
"0.64154387",
"0.6413341",
"0.6385686",
"0.62717277",
"0.6240847",
"0.6237782",
"0.62240463",
"0.61865056",
"0.61769444",
"0.6163154",
"0.6155901",
"0.612151",
"0.61186993",
"0.6101798... | 0.6148361 | 18 |
Add tree_to_add as a subtree of this tree. If include_root is False, then the children of tree_to_add will be added as children of this tree's root node. Otherwise, the root node of tree_to_add will be added as a child of this tree's root node. The root_title and root_notes arguments are optional, and can be used to se... | def kRgV(YKHO, fL87, BwZK=False, WpL1=None, muvl=None):
if not BwZK:
YKHO.subtasks.extend(fL87.subtasks)
else:
if WpL1 is not None:
fL87.title = WpL1
if fL87.title is None:
fL87.title = ''
if muvl is not None:
fL87.notes = muvl
YKHO.sub... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zgLo(YKHO, J_Es: 'BinarySearchTree') -> None:\n if J_Es.root > YKHO.root:\n if YKHO.right is None:\n YKHO.right = J_Es\n else:\n YKHO.right.add_tree(J_Es)\n elif YKHO.left is None:\n YKHO.left = J_Es\n else:\n YKHO.left.add_tree(J_Es)",
"def Yamk(YKH... | [
"0.61614877",
"0.5923596",
"0.5823034",
"0.5665003",
"0.56507343",
"0.5559325",
"0.554028",
"0.5435866",
"0.54327506",
"0.5426999",
"0.5414486",
"0.5405664",
"0.54035616",
"0.53996336",
"0.53774834",
"0.53559655",
"0.5329244",
"0.5282404",
"0.51710266",
"0.5159483",
"0.510613... | 0.8370366 | 0 |
Return a new list with the strings filtered out. | def Nep5(vC9B):
return [WKvO for WKvO in vC9B if type(WKvO) is int] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZujM(vC9B, ulrI):\n if ulrI is None:\n return vC9B\n else:\n ulrI = dp1P(ulrI)\n return [eHNT for eHNT in vC9B if ulrI(eHNT)]",
"def b_xr(YKHO, DumB, IvnW=True):\n if YKHO.alphas_only is None:\n ngrm = IvnW\n else:\n ngrm = YKHO.alphas_only\n if ngrm:\n ... | [
"0.7375071",
"0.694382",
"0.68888396",
"0.68289125",
"0.67771494",
"0.67293155",
"0.67102224",
"0.6693054",
"0.6693054",
"0.6585079",
"0.6583102",
"0.6546738",
"0.6426148",
"0.63677305",
"0.6328396",
"0.6305623",
"0.6291455",
"0.6253209",
"0.62452585",
"0.6230295",
"0.622218"... | 0.0 | -1 |
Initializer for conv2d / dilated_conv2d | def R1Ju(YKHO, ROpF, mWFP, NKcE=None):
assert len(ROpF) == 4, 'conv2d requires shape of format (k1, k2, in_c, out_c)'
DbxN = YKHO._layer_init(mWFP)
if DbxN is not None:
return DbxN
else:
DbxN = TSKM()
DbxN.biases = ZylS.constant_initializer(0.0)
DbxN.weights = YKHO._var_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_zE(YKHO, rb7a, M6vu, _0fC, hVLt=SU7A, YDYE=kZdx, FJYT=IRWS):\n return YKHO.add(yHwh(rb7a, M6vu, _0fC, hVLt, YDYE, FJYT))",
"def adXX(K8MZ, *qIxc, **B2fa):\n B2fa['use_bias'] = K8MZ.use_bias\n B2fa['kernel_regularizer'] = K8MZ.l2_regularizer\n return yHwh(*qIxc, **B2fa)",
"def b_zE(YKHO, *qIxc... | [
"0.7388529",
"0.7376062",
"0.72248864",
"0.72248864",
"0.7184782",
"0.70839506",
"0.7051662",
"0.6939125",
"0.6912099",
"0.6866966",
"0.68456465",
"0.6803274",
"0.67831486",
"0.6773884",
"0.6758546",
"0.6746571",
"0.6739651",
"0.6731733",
"0.6725829",
"0.6697894",
"0.66772014... | 0.6776111 | 13 |
Initializer for batch norm | def _8u6(YKHO, mWFP):
tt_T = YKHO._layer_init(mWFP)
if tt_T is not None:
aJhS = TSKM()
aJhS.moving_mean = tt_T['mean']
aJhS.moving_variance = tt_T['variance']
aJhS.gamma = tt_T['scale']
aJhS.beta = tt_T['offset']
return aJhS
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tn3D(YKHO):\n YKHO.decoder = ZylS.contrib.layers.batch_norm(YKHO.decoder, center=True, scale=True, is_training=YKHO.is_training, scope='bn')",
"def lS53():\n return _w_u(op_name='BatchNorm', transforms={'epsilon': 'eps'}, extras={'cudnn_off': 1}, ignores=['spatial', 'is_test', 'consumed_inputs'])",
"... | [
"0.79933107",
"0.77114755",
"0.7430137",
"0.72017384",
"0.71823996",
"0.71176654",
"0.70479465",
"0.70390636",
"0.70005244",
"0.6997976",
"0.6979421",
"0.6934933",
"0.6923366",
"0.6906507",
"0.6905229",
"0.68953174",
"0.6876483",
"0.6862688",
"0.6862178",
"0.68611795",
"0.684... | 0.0 | -1 |
Getter method for type, mapped from YANG variable /interfaces/interface/config/type (identityref) | def yaSt(YKHO):
return YKHO.__type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sP3I(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={}), is_leaf=True, yang_name='type', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmetho... | [
"0.71062434",
"0.7097222",
"0.6822064",
"0.6822064",
"0.6822064",
"0.6813375",
"0.6813375",
"0.6813375",
"0.6287181",
"0.6190052",
"0.61741906",
"0.5899994",
"0.5879579",
"0.58554965",
"0.5848208",
"0.5841917",
"0.5841917",
"0.58313084",
"0.5828175",
"0.5807462",
"0.5803341",... | 0.0 | -1 |
Getter method for name, mapped from YANG variable /interfaces/interface/config/name (string) | def wGWt(YKHO):
return YKHO.__name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ks8p(YKHO) -> str:\n return YKHO._config.get_name()",
"def mWFP(YKHO) -> str:\n return YKHO.config.name",
"def mWFP(YKHO):\n return YKHO._config['name']",
"def mWFP(YKHO):\n return YKHO._config.name",
"def mWFP(YKHO):\n return YKHO._config.name",
"def mWFP(YKHO):\n return YKHO._conf... | [
"0.7047328",
"0.6834522",
"0.67523956",
"0.6728854",
"0.6728854",
"0.6728854",
"0.6711425",
"0.665933",
"0.66427654",
"0.65468556",
"0.651969",
"0.6473309",
"0.6441921",
"0.64055055",
"0.6323162",
"0.6318434",
"0.61969334",
"0.61969334",
"0.6179672",
"0.6129953",
"0.6052856",... | 0.0 | -1 |
Getter method for description, mapped from YANG variable /interfaces/interface/config/description (string) | def jteg(YKHO):
return YKHO.__description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBZA(YKHO) -> str:\n if YKHO._description is None:\n YKHO._description = YKHO.config.description\n return YKHO._description",
"def aWJK(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'configuration_description')",
"def aWJK(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'configuration_descript... | [
"0.7313226",
"0.7273669",
"0.7273669",
"0.7273669",
"0.7273669",
"0.6807638",
"0.66926616",
"0.6623251",
"0.6619047",
"0.66182196",
"0.65886396",
"0.657082",
"0.657082",
"0.657082",
"0.657082",
"0.657082",
"0.657082",
"0.657082",
"0.657082",
"0.657082",
"0.657082",
"0.65708... | 0.0 | -1 |
Getter method for enabled, mapped from YANG variable /interfaces/interface/config/enabled (boolean) | def buCy(YKHO):
return YKHO.__enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def etR_(YKHO):\n if YKHO._getValue('enabled').lower() == 'true':\n return True\n else:\n return False",
"def n30Z(YKHO):\n return YKHO._tag == 'enabled'",
"def etR_(YKHO):\n return YKHO._spec.get('enabled', False)",
"def etR_(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, '... | [
"0.68232894",
"0.6808347",
"0.6751335",
"0.67365307",
"0.6725971",
"0.6725971",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
"0.66966593",
... | 0.0 | -1 |