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 |
|---|---|---|---|---|---|---|
Return a condensed version of the review so that it does not exceed some specified length. Includes ellipses to indicate that the text continues if it is longer than the max length. | def vc4u(YKHO, wzH_=40):
return WEKM(YKHO.review, wzH_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R_Hu(YKHO, ai8o=50):\n if len(YKHO.comment) > ai8o:\n return YKHO.comment[:ai8o] + '...'\n else:\n return YKHO.comment",
"def R_Hu(YKHO, ai8o=50):\n if len(YKHO.text) > ai8o:\n return YKHO.text[:ai8o] + '...'\n else:\n return YKHO.text",
"def pNAZ(l5Ny):\n if len(... | [
"0.6722693",
"0.67107177",
"0.66276777",
"0.6574656",
"0.65310395",
"0.65192646",
"0.64799404",
"0.6364686",
"0.6339288",
"0.63075477",
"0.6288298",
"0.62859076",
"0.62415665",
"0.6207872",
"0.61938876",
"0.61147434",
"0.60993254",
"0.5960138",
"0.59266937",
"0.5908461",
"0.5... | 0.8607684 | 0 |
Function to convert a tensor to a PIL image, show it and save it. | def uaVh(vhpA, xkzz=None):
VXjJ = Ymkf.ToPILImage(mode='RGB')(vhpA)
VXjJ.show()
if xkzz:
VXjJ.save(xkzz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaVh(VXjJ):\n a1PO = Ymkf.ToPILImage()\n return a1PO(VXjJ)",
"def zy6L(vhpA):\n yInu = Ymkf.ToPILImage()\n LNo8 = vhpA.cpu().clone()\n LNo8 = LNo8.squeeze(0)\n LNo8 = yInu(LNo8)\n return LNo8",
"def p1dx(LNo8):\n LNo8 = ZylS.constant(LNo8)\n LNo8 = ZylS.image.convert_image_dtype(... | [
"0.7564247",
"0.74056727",
"0.72033066",
"0.71953124",
"0.7072148",
"0.70350677",
"0.70091414",
"0.69938576",
"0.6954114",
"0.69509315",
"0.69324684",
"0.691701",
"0.691701",
"0.6914065",
"0.69139165",
"0.69139165",
"0.69139165",
"0.68705267",
"0.6849567",
"0.682147",
"0.6799... | 0.8431221 | 0 |
find euclidean dist b/w arrays x & y >>> KNN.euclidean(np.array([0, 0]), np.array([3, 4])) 5.0 | def sOE8(WKvO, LVAh):
ldJB = oyIN.sqrt(oyIN.sum((WKvO - LVAh) ** 2))
return ldJB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dm2A(EcVT, LVAh):\n return oyIN.sqrt(oyIN.sum((EcVT - LVAh) ** 2, 1))",
"def FlVB(YKHO):\n PYVH = jHxP(n_neighbors=3)\n PYVH.fit(oyIN.array(Pz5Q), hRF2)\n Csk6 = PYVH._euclidean_distance(oyIN.array([5, 6]))\n assert (Csk6 == [5, 5]).all(), 'Euclidean Distance is not correct'",
"def t6Pq(WKvO... | [
"0.81508106",
"0.8048962",
"0.8040036",
"0.8040036",
"0.8013634",
"0.800576",
"0.79853535",
"0.7839889",
"0.7760837",
"0.77046335",
"0.7704592",
"0.762838",
"0.7619347",
"0.76099575",
"0.75979793",
"0.7504445",
"0.7358911",
"0.7339859",
"0.7277312",
"0.72647184",
"0.72538716"... | 0.78300065 | 8 |
Test of the equality special method (__eq__) of Rnode class. | def uq87():
WKvO = tl3z(2.0)
try:
assert (WKvO == 2.0) == True
assert (WKvO == 1.0) == False
except AssertionError as e:
print(tTpl)
raise AssertionError
WKvO = tl3z(2.0)
LVAh = tl3z(2.0)
epBp = tl3z(1.0)
try:
assert (WKvO == LVAh) == True
asse... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YK... | [
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015",
"0.78237015"... | 0.8349103 | 0 |
Test of the not equal special method (__neq__) of Rnode class. | def Cd8L():
WKvO = tl3z(2.0)
try:
assert (WKvO != 2) == False
assert (WKvO != 1) == True
except AssertionError as e:
print(tTpl)
raise AssertionError
WKvO = tl3z(2.0)
LVAh = tl3z(2.0)
epBp = tl3z(1.0)
try:
assert (WKvO != LVAh) == False
assert ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wU_U(YKHO, Elif):\n return not YKHO == Elif",
"def d_5N(YKHO, Elif):\n return not YKHO == Elif",
"def t33R(YKHO):\n BfDw.compare_tracing_methods(pr14('notEqual'), ht2j.randn(3, 4, 5), ht2j.randn(3, 4, 5), fusible_ops={'aten::ne'})",
"def Vdqg(YKHO, RKYb):\n return not YKHO.__eq__(RKYb)",
"d... | [
"0.7729452",
"0.7568806",
"0.7487238",
"0.74660546",
"0.7357911",
"0.7323891",
"0.7312588",
"0.7269901",
"0.7258679",
"0.7190942",
"0.7188006",
"0.71747214",
"0.7170952",
"0.71637297",
"0.7154526",
"0.7150574",
"0.71466833",
"0.71417236",
"0.71382135",
"0.70904255",
"0.707939... | 0.83115476 | 0 |
Creates a dict for degree program role emojis | def d31v(YKHO):
ZfIV = {}
iYc4 = {}
BP4m = YKHO.assignable_roles[0]
for JUOb in YKHO.bot.emojis:
if JUOb.name in BP4m:
ZfIV[JUOb.name] = JUOb
for H5ew in BP4m.keys():
iYc4[H5ew] = ZfIV.get(H5ew)
return iYc4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sQEf(YKHO):\n iYc4 = {}\n U4aE = YKHO.assignable_roles[1]\n for JUOb in YKHO.bot.emojis:\n if JUOb.name in U4aE:\n iYc4[JUOb.name] = JUOb\n return iYc4",
"def CpEt(YKHO):\n NIGc = {}\n for zFiD in YKHO.emoji_full_filepath.split('\\n'):\n JUOb, JBZA = zFiD.strip().sp... | [
"0.67376924",
"0.6416135",
"0.566497",
"0.55706185",
"0.5553401",
"0.5523874",
"0.55177945",
"0.5304827",
"0.5247061",
"0.52435064",
"0.5193873",
"0.5188143",
"0.5119345",
"0.51125866",
"0.5111811",
"0.509967",
"0.5092796",
"0.50083697",
"0.50078994",
"0.50059485",
"0.4994313... | 0.772204 | 0 |
Creates a dict for special role emojis | def i62w(YKHO):
return YKHO.assignable_roles[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sQEf(YKHO):\n iYc4 = {}\n U4aE = YKHO.assignable_roles[1]\n for JUOb in YKHO.bot.emojis:\n if JUOb.name in U4aE:\n iYc4[JUOb.name] = JUOb\n return iYc4",
"def CpEt(YKHO):\n NIGc = {}\n for zFiD in YKHO.emoji_full_filepath.split('\\n'):\n JUOb, JBZA = zFiD.strip().sp... | [
"0.6909326",
"0.6556305",
"0.6393406",
"0.5776544",
"0.57104194",
"0.55993867",
"0.55544674",
"0.5541749",
"0.5498031",
"0.5464273",
"0.54079306",
"0.53472483",
"0.53032136",
"0.5264089",
"0.5214847",
"0.5213427",
"0.5205784",
"0.52042633",
"0.5081268",
"0.5077816",
"0.507236... | 0.6518509 | 2 |
Get the key for a given role. This role is used for adding or removing a role from a user. | def mexE(YKHO, LmAn):
for H5ew, h1Ur in YKHO.assignable_roles[0].items():
if h1Ur == LmAn.name:
return H5ew | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EMqA(H5ew, EmYE):\n LEXu = NCls.get(H5ew)\n z39Z = TKMx(LEXu, EmYE)\n return z39Z.key()",
"def FgBa(LmAn, dQgj):\n return {'id': LmAn.id, 'position': dQgj}",
"def d9OY(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'role_id')",
"def mexE(YKHO):\n return YKHO._determine_key()",
"def... | [
"0.7237859",
"0.66870034",
"0.6470941",
"0.6447546",
"0.6437402",
"0.6393708",
"0.63731253",
"0.63731253",
"0.63573575",
"0.63294184",
"0.627488",
"0.6259605",
"0.6172182",
"0.6165065",
"0.6143015",
"0.6126313",
"0.61181027",
"0.61163",
"0.61163",
"0.61163",
"0.606961",
"0.... | 0.8833362 | 0 |
Test validating a genesis block without a balance | def ByoC(YKHO):
NCls = f_ia()
THkp = Itpi(block_type=rGUo.CHECKPOINT, transaction={})
Aofo, UAju = THkp.validate_transaction(NCls)
YKHO.assertEqual(Aofo, LY3L.invalid)
YKHO.assertIsInstance(UAju[0], Hdod.MissingBalance) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rUum(YKHO):\n NCls = f_ia()\n THkp = Itpi(block_type=rGUo.CHECKPOINT, transaction={'balance': 0})\n Aofo, UAju = THkp.validate_transaction(NCls)\n YKHO.assertEqual(Aofo, LY3L.valid)\n YKHO.assertEqual(UAju, [])\n NCls.add_block(THkp)",
"def aLSd(YKHO):\n NCls = f_ia()\n THkp = Itpi(bl... | [
"0.87593347",
"0.8491371",
"0.810086",
"0.7774584",
"0.75393575",
"0.71184",
"0.70073706",
"0.6988844",
"0.6858272",
"0.67265385",
"0.6725867",
"0.67177886",
"0.67166823",
"0.67023444",
"0.6700901",
"0.6694032",
"0.6687411",
"0.6680484",
"0.66763043",
"0.6668178",
"0.6656399"... | 0.7751824 | 4 |
Test validating a genesis block without a balance | def FW7E(YKHO):
NCls = f_ia()
yvY1 = NCls.owner
k0lF = LjZo()
CDgX = Itpi(key=yvY1, block_type=rGUo.CREATION, transaction={'amount': 10}, links=k0lF)
Aofo, UAju = CDgX.validate_transaction(NCls)
YKHO.assertEqual(Aofo, LY3L.valid)
YKHO.assertEqual(UAju, [])
NCls.add_block(CDgX)
i8nr =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rUum(YKHO):\n NCls = f_ia()\n THkp = Itpi(block_type=rGUo.CHECKPOINT, transaction={'balance': 0})\n Aofo, UAju = THkp.validate_transaction(NCls)\n YKHO.assertEqual(Aofo, LY3L.valid)\n YKHO.assertEqual(UAju, [])\n NCls.add_block(THkp)",
"def aLSd(YKHO):\n NCls = f_ia()\n THkp = Itpi(bl... | [
"0.8759085",
"0.8491472",
"0.8099709",
"0.7752675",
"0.753929",
"0.7118385",
"0.7007441",
"0.6987988",
"0.6858475",
"0.67260003",
"0.6725478",
"0.671735",
"0.67161006",
"0.6702666",
"0.6700453",
"0.6694123",
"0.66869605",
"0.66800416",
"0.6675733",
"0.6667983",
"0.6655829",
... | 0.777491 | 3 |
Test validating a block that points towards a previous block with a non eurotoken block in between | def gWo7(YKHO):
NCls = f_ia()
yvY1 = NCls.owner
i8nr = Itpi(block_type=rGUo.CHECKPOINT, transaction={'balance': 0}, links=yvY1)
Aofo, UAju = i8nr.validate_transaction(NCls)
YKHO.assertEqual(Aofo, LY3L.valid)
YKHO.assertEqual(UAju, [])
NCls.add_block(i8nr)
vo6s = Itpi(block_type='NonEurot... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def agB5(YKHO):\n NCls = f_ia()\n yvY1 = NCls.owner\n i8nr = Itpi(block_type=rGUo.CHECKPOINT, transaction={'balance': 0}, links=yvY1)\n Aofo, UAju = i8nr.validate_transaction(NCls)\n YKHO.assertEqual(Aofo, LY3L.valid)\n YKHO.assertEqual(UAju, [])\n vo6s = Itpi(block_type='NonEurotoken', transa... | [
"0.7168689",
"0.7145038",
"0.6877735",
"0.67636186",
"0.6729137",
"0.66422474",
"0.6636067",
"0.6624457",
"0.65232956",
"0.6517384",
"0.6478784",
"0.6478032",
"0.6471213",
"0.6467041",
"0.6453987",
"0.6446847",
"0.6430455",
"0.64177257",
"0.64101344",
"0.64051735",
"0.6399836... | 0.74822056 | 0 |
Renders the home page. | def d6pt(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/site/indexSite.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Início', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the home page. | def d2Jv(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/index.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Index', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the home page. | def TgwQ(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/geral/resultados.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Resultados', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the home page. | def k9ik(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/site/s_quemSomos.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Quem Somos', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the home page. | def SZQy(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/site/s_contato.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Contato', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the about page. | def fh4D(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/geral/quemSomos.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Quem Somos', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def ftOK(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/prestador/frm_prestador.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Cad.Prestador', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85655934",
"0.8504223",
"0.8449257",
"0.84052455",
"0.83946466",
"0.8293479",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.8267646",
... | 0.0 | -1 |
Renders the about page. | def G4dI(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/prestador/servPrestados.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Serv.Prestados', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def YUt8(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/prestador/colmeiaPontos.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | ColPontos', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def pTfE(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/contratante/frm_contratante.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Cad. Contratante', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def AdbN(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/contratante/frm_contratante.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Serv.Contratados', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85655934",
"0.8504223",
"0.8449257",
"0.84052455",
"0.83946466",
"0.8293479",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.82707715",
"0.8267646",
... | 0.0 | -1 |
Renders the about page. | def Jb8w(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/contratante/relatorioContratante.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Relatorios Contratante', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def _xyQ(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/index.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Inicio', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def MC83(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/geral/login.html', context_instance=K1Ja(QePW, {'title': 'Colmeia | Login', 'year': qcWV.now().year})) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
str to dict, replace '' with None | def s7Lz(BWXx):
if not BWXx:
return None
hkxX = qQXR.loads(BWXx)
for H5ew in hkxX:
if hkxX[H5ew] == '':
hkxX[H5ew] = None
return hkxX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VkT_(jpnV):\n if nIKz():\n jpnV = bytes(jpnV).decode('utf-8')\n m6Me = jpnV.split(T2Pq)[:-2]\n nPrm = {}\n for YRbF in range(0, len(m6Me) - 1, 2):\n H5ew, wEf2 = (m6Me[YRbF], m6Me[YRbF + 1])\n UpH3 = H5ew.split('\\x1c')\n if len(UpH3) == 1:\n if H5ew in nPrm:\... | [
"0.6168078",
"0.60156316",
"0.59842765",
"0.59556097",
"0.5898509",
"0.58916295",
"0.58255106",
"0.5792088",
"0.57648796",
"0.5736805",
"0.57342845",
"0.5708212",
"0.5681782",
"0.5654695",
"0.5602385",
"0.5569952",
"0.5556853",
"0.5530618",
"0.551076",
"0.5510464",
"0.5497134... | 0.6775666 | 0 |
Add a new item onto the top of our stack. | def _jXH(YKHO, ZfUD):
YKHO.stack.push(ZfUD)
HKli = YKHO.get_max()
if HKli is None or HKli < ZfUD:
HKli = ZfUD
YKHO.max_stack.push(HKli) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jXH(YKHO, ZfUD):\n YKHO.stack.insert(0, ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.stack.append(ZfUD)",
"def _jXH(YKHO, ZfUD):\n super().add_item_to_front(ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.top = [ZfUD] + YKHO.top",
"def _jXH(YKHO, ZfUD... | [
"0.8660057",
"0.8422733",
"0.8422733",
"0.82595897",
"0.822329",
"0.8117008",
"0.7997836",
"0.7981091",
"0.7941532",
"0.7931066",
"0.7874844",
"0.78689915",
"0.77990323",
"0.7743534",
"0.7714328",
"0.7706821",
"0.76146543",
"0.76113874",
"0.75759387",
"0.757182",
"0.757182",
... | 0.70391506 | 60 |
Remove and return the top item from our stack. | def BEuN(YKHO):
ZfUD = YKHO.stack.pop()
YKHO.max_stack.pop()
return ZfUD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO):\n try:\n if YKHO.size() > 0:\n tlxW = YKHO.top()\n YKHO.items.pop()\n return tlxW\n else:\n raise IndexError('Cannot pop item, stack is empty.')\n except IndexError as err:\n print(XObx)\n raise",
"def BEuN(YKHO):\n ... | [
"0.8795645",
"0.85758275",
"0.85595405",
"0.8312504",
"0.82554007",
"0.82049006",
"0.8165187",
"0.81395227",
"0.8128441",
"0.8109492",
"0.81087446",
"0.80679446",
"0.8064436",
"0.80616176",
"0.80537707",
"0.80385906",
"0.8038233",
"0.7967132",
"0.79590183",
"0.7957032",
"0.79... | 0.0 | -1 |
The last item in maxex_stack is the max item in our stack. | def qfB5(YKHO):
return YKHO.max_stack.peek() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WlKn(YKHO):\n if YKHO.maxx == []:\n return None\n return YKHO.maxx[-1]",
"def dJsD(YKHO):\n return YKHO.__max_stack[-1]",
"def max(YKHO):\n assert YKHO.__stack\n return YKHO.__max_values[-1]",
"def BEuN(YKHO):\n ZfUD = YKHO.stack.pop()\n if ZfUD == YKHO.max[-1]:\n YKHO.... | [
"0.8510795",
"0.7924731",
"0.7765927",
"0.7196239",
"0.7151589",
"0.709411",
"0.7048309",
"0.6803708",
"0.6731458",
"0.6667348",
"0.6666899",
"0.6538575",
"0.6518682",
"0.6505575",
"0.6404108",
"0.6403371",
"0.6373301",
"0.6365572",
"0.63617873",
"0.63423467",
"0.6326194",
... | 0.791391 | 2 |
Visualizes annotation using cv2.imshow from OpenCV. Press `Esc` to exit. | def rzaM(YKHO, BmZ6, mkCb=1, hXNa=False):
ZlQs = (1280, 768)
Yw_3 = list(YKHO.annotation['images'])
if hXNa:
import random
random.shuffle(Yw_3)
for f4IJ in PRqg(Yw_3):
QMAG = f4IJ['file_name']
assert Hy7s.path.exists(QMAG), f'does not exist {QMAG}'
LNo8 = XC5k.imr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1dx(VXjJ, UXqs):\n XC5k.imshow(UXqs, VXjJ)\n XC5k.waitKey(0)\n XC5k.destroyAllWindows()",
"def nUHY(VXjJ, mWFP='img'):\n XC5k.imshow(mWFP, VXjJ)\n XC5k.waitKey(0)\n XC5k.destroyWindow(mWFP)",
"def nUHY(LNo8):\n XC5k.imshow('press ENTER to close', LNo8)\n XC5k.waitKey(0)",
"def nU... | [
"0.7073545",
"0.7017247",
"0.6957055",
"0.6829036",
"0.6626486",
"0.65930355",
"0.65789217",
"0.6578278",
"0.6545489",
"0.6517613",
"0.65037686",
"0.6487285",
"0.6481418",
"0.6464025",
"0.64157873",
"0.6399011",
"0.63903165",
"0.63572997",
"0.63012075",
"0.6297656",
"0.627864... | 0.62584 | 24 |
Return a reference to a component. | def NMoC(mWFP):
return RszK.components[mWFP] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UksD(YKHO):\n return YKHO._component",
"def UksD(YKHO):\n return YKHO._component",
"def yCnv(YKHO, cEkx):\n Mnpw = YKHO.components.lookup(cEkx)\n if Mnpw == None:\n raise Exception(\"Component not found: '{0}'.\".format(cEkx))\n return Mnpw",
"def Gg28(YKHO, mWFP: str) -> ImMB:\n ... | [
"0.7232111",
"0.7232111",
"0.67434037",
"0.66446954",
"0.6628947",
"0.65864563",
"0.65580434",
"0.6483506",
"0.6451921",
"0.64111656",
"0.6335025",
"0.6333815",
"0.6294749",
"0.6263135",
"0.61872965",
"0.61623025",
"0.613299",
"0.6105409",
"0.6103949",
"0.6094527",
"0.607536"... | 0.6889208 | 2 |
Function to return. Takes an instance of the class and returns its string representation | def f58Q(KAOR):
FiiE = [] if qIxc is None else [getattr(KAOR, d7pR) for d7pR in qIxc if hasattr(KAOR, d7pR)]
InUh = {} if B2fa is None else {H5ew: getattr(KAOR, H5ew) for H5ew in B2fa if hasattr(KAOR, H5ew)}
aadv(KAOR.__class__).bind(*FiiE, **InUh)
return KAOR.__class__.__name__ + '(' + G0Jz(*FiiE, **In... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return '<instance of {}>'.format(YKHO.__class__.__name__)",
"def wHJl(YKHO):\n return str(YKHO.__class__) + str(YKHO)",
"def nrOS(YKHO, Emd4):\n ZYWN = dict(Emd4.__dict__)\n\n def e2zd(DkWm):\n return YKHO.pformat(DkWm)\n ZYWN['__repr__'] = e2zd\n return type(Emd4.__n... | [
"0.7379035",
"0.73591554",
"0.7304432",
"0.73019904",
"0.72913086",
"0.7290749",
"0.7260209",
"0.7233015",
"0.7233015",
"0.7233015",
"0.7229833",
"0.7226634",
"0.72218925",
"0.72218925",
"0.72218925",
"0.7207321",
"0.7198061",
"0.7173377",
"0.7173377",
"0.7168357",
"0.7162599... | 0.0 | -1 |
This function takes in a pd.DataFrame, a user defined title str, a user defined values string, and then parses and produces a plotly express pie chart; it then appends a prefix of the title_str before it returns the dataframe. | def RWQt(jo7f, qWBe, x3oC):
import pandas as rLdf
import plotly.express as Xlvp
jo7f = jo7f[x3oC].value_counts()
jo7f = rLdf.DataFrame(jo7f)
jo7f = jo7f.reset_index()
LZpg = Xlvp.pie(jo7f, values=x3oC, names='index', title="'" + qWBe + "'" + ' distribution by race', color_discrete_sequence=Xlvp.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mxzB(YKHO, hkxX: str, wk71: str, leAC: str='Pie Plot', **B2fa) -> QD4e:\n LZpg = Xlvp.pie(YKHO.df, values=hkxX, names=wk71, title=leAC, **B2fa)\n return LZpg",
"def NY2E(Crrw: list, hkxX: list, leAC: str) -> XXWp:\n LZpg = XXWp.create_subplots(1, 3, specs=[[{'type': 'domain'}, {'type': 'pie', 'colsp... | [
"0.6220093",
"0.60791814",
"0.59988254",
"0.58728814",
"0.5822571",
"0.56006414",
"0.5567305",
"0.55106544",
"0.55006415",
"0.5493332",
"0.5450346",
"0.5383633",
"0.53785443",
"0.53618294",
"0.53375953",
"0.53019255",
"0.51803726",
"0.5143313",
"0.5139939",
"0.5121946",
"0.51... | 0.79543734 | 0 |
The inchi representation of the molecule Created by lazy evaluation. Will cause the molecule to be sanitized. | def ovwT(YKHO) -> str:
if not YKHO._inchi:
YKHO.sanitize(raise_exception=False)
YKHO._inchi = OJ0g.MolToInchi(YKHO.rd_mol)
if YKHO._inchi is None:
raise Vk5w('Could not make InChI')
return YKHO._inchi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JGvc(YKHO) -> str:\n if not YKHO._inchi_key:\n YKHO.sanitize(raise_exception=False)\n YKHO._inchi_key = OJ0g.MolToInchiKey(YKHO.rd_mol)\n if YKHO._inchi_key is None:\n raise Vk5w('Could not make InChI key')\n return YKHO._inchi_key",
"def IWwv(YKHO):\n HlGW = '(1S\\\\... | [
"0.66942304",
"0.64981216",
"0.63017654",
"0.62291807",
"0.62291807",
"0.6121862",
"0.6089784",
"0.60197574",
"0.5882245",
"0.58663726",
"0.5770186",
"0.5677955",
"0.5667427",
"0.5654148",
"0.5627222",
"0.54973763",
"0.54892105",
"0.5479777",
"0.5465602",
"0.5449101",
"0.5405... | 0.8080842 | 0 |
Return a dictionary mapping to atom mappings to atom indices | def rvZM(YKHO) -> cuzp[int, int]:
if not YKHO._atom_mappings:
YKHO._atom_mappings = {WhQ6.GetAtomMapNum(): WhQ6.GetIdx() for WhQ6 in YKHO.rd_mol.GetAtoms() if WhQ6.GetAtomMapNum()}
return YKHO._atom_mappings | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rvZM(YKHO) -> cuzp[int, int]:\n if not YKHO._atom_mappings:\n YKHO._atom_mappings = {WhQ6.GetAtomMapNum(): WhQ6.GetIdx() for WhQ6 in YKHO.mapped_mol.GetAtoms() if WhQ6.GetAtomMapNum()}\n return YKHO._atom_mappings",
"def dq6E(YKHO) -> cuzp[int, int]:\n if not YKHO._reverse_atom_mappings:\n ... | [
"0.7814939",
"0.7206743",
"0.6909596",
"0.6887894",
"0.6662952",
"0.6656431",
"0.6656431",
"0.65971655",
"0.6515416",
"0.6481276",
"0.6475598",
"0.6410209",
"0.63842255",
"0.63825047",
"0.6320345",
"0.628117",
"0.62599856",
"0.624677",
"0.62401754",
"0.6190376",
"0.618866",
... | 0.79496324 | 0 |
Returns an instance of the UniqueMolecule class that is representing the same molecule but is not hashable or comparable. | def Lj0k(YKHO) -> 'UniqueMolecule':
return qW5o(rd_mol=YKHO.rd_mol) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yO5g() -> qW5o:\n return qW5o(rd_mol=OJ0g.MolFromSmiles(''))",
"def kcwm(YKHO):\n return frozenset(YKHO)",
"def kcwm(YKHO):\n PwWw = {}\n Aofo = []\n for XP5J in map(tuple, YKHO):\n if XP5J not in PwWw:\n PwWw[XP5J] = True\n Aofo.append(XP5J)\n return HBeR(Aof... | [
"0.7282849",
"0.610543",
"0.5885973",
"0.5789799",
"0.5687429",
"0.5687429",
"0.55871034",
"0.54921764",
"0.54882026",
"0.54718494",
"0.5441569",
"0.5438885",
"0.54042864",
"0.53965944",
"0.53803945",
"0.5377621",
"0.5313008",
"0.5304414",
"0.52989197",
"0.52948606",
"0.52867... | 0.8251841 | 0 |
Return a dictionary mapping to atom mappings to atom indices | def rvZM(YKHO) -> cuzp[int, int]:
if not YKHO._atom_mappings:
YKHO._atom_mappings = {WhQ6.GetAtomMapNum(): WhQ6.GetIdx() for WhQ6 in YKHO.mapped_mol.GetAtoms() if WhQ6.GetAtomMapNum()}
return YKHO._atom_mappings | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rvZM(YKHO) -> cuzp[int, int]:\n if not YKHO._atom_mappings:\n YKHO._atom_mappings = {WhQ6.GetAtomMapNum(): WhQ6.GetIdx() for WhQ6 in YKHO.rd_mol.GetAtoms() if WhQ6.GetAtomMapNum()}\n return YKHO._atom_mappings",
"def dq6E(YKHO) -> cuzp[int, int]:\n if not YKHO._reverse_atom_mappings:\n ... | [
"0.79496324",
"0.7206743",
"0.6909596",
"0.6887894",
"0.6662952",
"0.6656431",
"0.6656431",
"0.65971655",
"0.6515416",
"0.6481276",
"0.6475598",
"0.6410209",
"0.63842255",
"0.63825047",
"0.6320345",
"0.628117",
"0.62599856",
"0.624677",
"0.62401754",
"0.6190376",
"0.618866",
... | 0.7814939 | 1 |
Returns a new, single point via uniform distribution. | def mvm2(YKHO):
qC1Y = len(YKHO.lower_bounds)
y5bX = XTiz.zeros(qC1Y)
for r845 in range(qC1Y):
Ae2G = YKHO.lower_bounds[r845]
oVTz = YKHO.upper_bounds[r845]
y5bX[r845] = XTiz.random.uniform(Ae2G, oVTz)
return y5bX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dfyx(YKHO):\n WKvO = YKHO.dist.sample(1)\n return WKvO",
"def xdCF(WKvO, P6bq):\n return AU8u(WKvO)",
"def Qc2B(YKHO, cDK5=1, wTln=1):\n AU8u = (oyIN.random.rand(cDK5, YKHO.dimension) - 0.5) * wTln\n AU8u = YKHO.intrinsic_to_extrinsic_coords(AU8u)\n assert oyIN.all(YKHO.belongs(AU8u))\n ... | [
"0.670535",
"0.6499165",
"0.64316136",
"0.64157754",
"0.63686895",
"0.6287546",
"0.62819993",
"0.62597746",
"0.62487924",
"0.62299883",
"0.62272865",
"0.6218811",
"0.61978704",
"0.6152032",
"0.60811263",
"0.6076544",
"0.60763395",
"0.6063436",
"0.60350066",
"0.6031453",
"0.60... | 0.0 | -1 |
determine what the final output file name suffix is | def Mw7T(JQgJ, mvm2, GPtr):
p3w_ = NZnu.get(JQgJ, '')
pwOY = len(GPtr['sample_data'][mvm2]['raw'])
if JQgJ not in dVS4 and pwOY == 1:
p3w_ = ZbWC.sub('interleaved', '', p3w_)
if JQgJ == 'None' and pwOY == 2:
p3w_ = 'interleaved'
if JQgJ in dVS4:
PgRt, LWre = pPqw(mvm2, GPtr)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cRRG(YKHO, y0cW, ZI14):\n Ux0P = '%s%s%s' % (y0cW, dgl3._file_index, ZI14)\n dgl3._file_index += 1\n return Ux0P",
"def kBpi(YKHO):\n return f'{YKHO.image_count:05}' if YKHO.sequential_naming else qcWV.datetime.now().strftime('%Y-%m-%d-%H-%M-%S')",
"def bGQY(y8rd, Q9dT):\n if y8rd['output_ba... | [
"0.75334775",
"0.72492594",
"0.7187885",
"0.71285695",
"0.7061977",
"0.7024112",
"0.694769",
"0.6922232",
"0.69019306",
"0.6874067",
"0.6861291",
"0.68280846",
"0.68128335",
"0.6808286",
"0.6808286",
"0.6808286",
"0.68066615",
"0.68066615",
"0.67965025",
"0.67462647",
"0.6728... | 0.6426988 | 64 |
Set up the sensors. | async def async_setup_platform(ajET, GPtr, QEEk, tR5e=None):
nPrm = await WIEr.get_data()
MMe4 = [mJPy(nPrm, 'R'), mJPy(nPrm, 'S'), mJPy(nPrm, 'G')]
QEEk(MMe4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _kZf(YKHO, b32v):\n YKHO.__sensors = YKHO.setup_components(b32v, 'scale_client.sensors')",
"def _kZf(YKHO, gCuF):\n for XtFw in gCuF.sensors:\n KCHu = XTqt(XtFw, gCuF.sensors, gCuF, YKHO.tiny_image, YKHO.send_q)\n YKHO.sensors.append(KCHu)",
"def _kZf(YKHO):\n YKHO._target_sensors = ... | [
"0.79451984",
"0.7280013",
"0.719321",
"0.71287286",
"0.7115475",
"0.70235187",
"0.70175487",
"0.70025635",
"0.6995161",
"0.6968315",
"0.6840185",
"0.6827717",
"0.67570966",
"0.6757062",
"0.67450905",
"0.67096263",
"0.67093563",
"0.66530246",
"0.6593661",
"0.65507644",
"0.654... | 0.0 | -1 |
Property for the state attributes. | def QTBn(YKHO):
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def upgy(YKHO):\n return... | [
"0.8222077",
"0.8222077",
"0.7945815",
"0.7945815",
"0.79192454",
"0.79192454",
"0.7833931",
"0.781245",
"0.7786447",
"0.7786339",
"0.7780284",
"0.77755797",
"0.7716974",
"0.7716974",
"0.7666419",
"0.76396936",
"0.76030153",
"0.76030153",
"0.76030153",
"0.76030153",
"0.760301... | 0.0 | -1 |
Name property for sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def mWFP(YKHO):\n return f'{YKHO._name} {YKHO._sensor_name}'",
"def mWFP(YKHO):\n return f'{YKHO._name}_{YKHO._sensor}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.de... | [
"0.8401038",
"0.8286776",
"0.8209207",
"0.8089812",
"0.80468774",
"0.78169984",
"0.7793606",
"0.7586986",
"0.74556863",
"0.74098885",
"0.74098885",
"0.7384246",
"0.73621696",
"0.73397535",
"0.7325094",
"0.732079",
"0.723027",
"0.7183104",
"0.7126652",
"0.71193516",
"0.7091977... | 0.0 | -1 |
Property for the state attributes. | def upgy(YKHO):
return YKHO._attributes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def upgy(YKHO):\n return YKHO._wan",
"def R1i3(YKHO):\n return YKHO._attr",
"def R1i3(YKHO):\n return YKHO._attrs"... | [
"0.7945815",
"0.7945815",
"0.79192454",
"0.79192454",
"0.7833931",
"0.781245",
"0.7786447",
"0.7786339",
"0.7780284",
"0.77755797",
"0.7716974",
"0.7716974",
"0.7666419",
"0.76396936",
"0.76030153",
"0.76030153",
"0.76030153",
"0.76030153",
"0.76030153",
"0.76030153",
"0.7603... | 0.8222077 | 1 |
Get the column represented by this source location. | def iVRZ(YKHO):
return YKHO._get_instantiation()[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iVRZ(YKHO):\n return YKHO['column']",
"def nga2(YKHO, iVRZ):\n return YKHO._source.columns.get_loc(YKHO._dataframe.columns[iVRZ])",
"def iYZ_(YKHO):\n return YKHO._column_number",
"def iVRZ(YKHO):\n return YKHO._column",
"def CUXk(YKHO):\n return _VfD.SBase_getColumn(YKHO)",
"def fvDH(... | [
"0.8202586",
"0.8186537",
"0.81281596",
"0.81090987",
"0.7839749",
"0.78167313",
"0.7734256",
"0.7679857",
"0.7651216",
"0.76362187",
"0.76080227",
"0.7458868",
"0.744459",
"0.7411419",
"0.7411419",
"0.7411419",
"0.7411419",
"0.7411419",
"0.7411419",
"0.7411419",
"0.7411419",... | 0.7495845 | 11 |
Return a SourceLocation representing the first character within a source range. | def yKcO(YKHO):
return Fv2L.lib.clang_getRangeStart(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RiuV(YKHO):\n try:\n return YKHO.hp.parse(YKHO.term).posedit.pos.start\n except xZUQ.exceptions.HGVSParseError:\n return None",
"def yKcO(YKHO, yKcO=None):\n return YKHO.bounds(yKcO)[0]",
"def Ruu7(YKHO) -> Hjj_:\n return IPme.GeoStartPoint(YKHO).to_expr()",
"def vwh_(YKHO) -> A... | [
"0.61829656",
"0.6081692",
"0.60044247",
"0.59896797",
"0.59643614",
"0.59604144",
"0.591591",
"0.58417094",
"0.5837312",
"0.578252",
"0.5671531",
"0.56464666",
"0.563894",
"0.5573167",
"0.5557585",
"0.5542953",
"0.5531345",
"0.5527467",
"0.5510017",
"0.5488377",
"0.5480777",... | 0.5620392 | 13 |
Obtain a registered TokenKind instance from its value. | def x3f2(BWXx):
Aofo = Owr5._value_map.get(BWXx, None)
if Aofo is None:
raise ValueError('Unknown TokenKind: %d' % BWXx)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJTR(YKHO):\n return Owr5.from_value(Fv2L.lib.clang_getTokenKind(YKHO))",
"def gr_i(BWXx, mWFP):\n if BWXx in Owr5._value_map:\n raise ValueError('TokenKind already registered: %d' % BWXx)\n eJTR = Owr5(BWXx, mWFP)\n Owr5._value_map[BWXx] = eJTR\n setattr(Owr5, mWFP, eJTR)",
"def eOtH... | [
"0.71096385",
"0.6861361",
"0.5733355",
"0.5616717",
"0.55858064",
"0.5507318",
"0.55009174",
"0.52356625",
"0.51657856",
"0.5150533",
"0.51364356",
"0.51281285",
"0.5124118",
"0.5101072",
"0.5100127",
"0.5100127",
"0.5094459",
"0.50671434",
"0.50639117",
"0.5058934",
"0.5040... | 0.85034496 | 0 |
Get the enumeration name of this cursor kind. | def mWFP(YKHO):
if YKHO._name_map is None:
YKHO._name_map = {}
for H5ew, BWXx in EO9X.__dict__.items():
if isinstance(BWXx, EO9X):
YKHO._name_map[BWXx] = H5ew
return YKHO._name_map[YKHO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GqZP(YKHO) -> str:\n return YKHO.kindName_",
"def eJTR(YKHO):\n return EO9X.from_id(YKHO._kind_id)",
"def qQ1Y(YKHO, mWFP: str) -> str:\n return c3S0(Bixh(deKr(mWFP, YKHO.strip_prefix.lower() + '_'), '_t'))",
"def mWFP(YKHO):\n if YKHO._name_map is None:\n YKHO._name_map = {}\n ... | [
"0.6952754",
"0.6836199",
"0.6568886",
"0.6470323",
"0.64484495",
"0.640635",
"0.6387758",
"0.6341467",
"0.6328878",
"0.6328878",
"0.6302517",
"0.6283944",
"0.62196887",
"0.61947507",
"0.6184855",
"0.6183771",
"0.6183771",
"0.6183771",
"0.6183771",
"0.6183771",
"0.6183771",
... | 0.7517167 | 0 |
Return all CursorKind enumeration instances. | def Uz2a():
return filter(None, EO9X._kinds) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJTR(YKHO):\n return EO9X.from_id(YKHO._kind_id)",
"def NpOb(Q6kx, mwXN):\n\n def jbn3(Q6kx, _AKB, EmMj):\n if Q6kx.kind in mwXN:\n EmMj.append(Q6kx)\n return 2\n EmMj = []\n HYLZ.Cursor_visit(Q6kx, HYLZ.Cursor_visit_callback(jbn3), EmMj)\n return EmMj",
"def mWFP(YK... | [
"0.7203632",
"0.66063005",
"0.6298967",
"0.6226333",
"0.59354454",
"0.58342755",
"0.5799652",
"0.57028824",
"0.5615335",
"0.55768055",
"0.5390652",
"0.5386993",
"0.53696704",
"0.5336619",
"0.52967525",
"0.52808607",
"0.52640164",
"0.5262177",
"0.5249215",
"0.52460957",
"0.517... | 0.8220977 | 0 |
Test if this is a reference kind. | def m338(YKHO):
return Fv2L.lib.clang_isReference(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m338(type):\n ThyU = Nl70(type)\n return isinstance(ThyU, ZdIm.reference_t)",
"def m338(YKHO):\n return YKHO.resource.is_reference()",
"def pJQr(YKHO):\n if 'N' in YKHO.ref:\n return False\n else:\n return True",
"def zEmF(*qIxc):\n return EdJ_.XCAFDoc_ShapeTool_IsReferenc... | [
"0.7555281",
"0.7463913",
"0.6985615",
"0.6943711",
"0.6936441",
"0.68996096",
"0.6808804",
"0.65281665",
"0.648281",
"0.6480759",
"0.6454408",
"0.64146924",
"0.63703185",
"0.6369095",
"0.63676953",
"0.6333936",
"0.63290805",
"0.632155",
"0.626628",
"0.620127",
"0.619808",
... | 0.73788285 | 2 |
Test if this is an invalid kind. | def g8qG(YKHO):
return Fv2L.lib.clang_isInvalid(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RS_k(eJTR: Any) -> None:\n if not eJTR in {'T', 'P'}:\n raise ValueError(f\"`kind` should be 'T' or 'P', but got {eJTR}.\")",
"def xWBV(YKHO):\n assert YKHO.filekind in YKHO.obs_package.FILEKINDS, 'Invalid filekind ' + repr(YKHO.filekind) + ' in ' + repr(YKHO.filename)",
"def g8qG(YKHO):\n ... | [
"0.649228",
"0.6314246",
"0.62624824",
"0.6208556",
"0.6190684",
"0.61733776",
"0.61721855",
"0.602325",
"0.5988068",
"0.59478384",
"0.5914175",
"0.5906867",
"0.58863896",
"0.5857071",
"0.58547044",
"0.58503956",
"0.57941204",
"0.57845545",
"0.57790446",
"0.57776433",
"0.5744... | 0.5782813 | 18 |
Return the kind of this cursor. | def eJTR(YKHO):
return EO9X.from_id(YKHO._kind_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n if not hasattr(YKHO, '_type'):\n YKHO._type = Fv2L.lib.clang_getCursorType(YKHO)\n return YKHO._type",
"def eJTR(YKHO):\n return YKHO._kind()",
"def eJTR(YKHO):\n return YKHO._kind",
"def eJTR(YKHO):\n return YKHO._kind",
"def S5Rp(YKHO):\n return YKHO.kind",
"d... | [
"0.8076149",
"0.7395552",
"0.72831637",
"0.72831637",
"0.7163372",
"0.7129203",
"0.7086099",
"0.70003194",
"0.6892582",
"0.6891974",
"0.68441606",
"0.684342",
"0.6806143",
"0.6759466",
"0.67292345",
"0.67292345",
"0.67292345",
"0.67292345",
"0.67292345",
"0.67292345",
"0.6729... | 0.8762075 | 0 |
Retrieve the Type (if any) of the entity pointed at by the cursor. | def type(YKHO):
if not hasattr(YKHO, '_type'):
YKHO._type = Fv2L.lib.clang_getCursorType(YKHO)
return YKHO._type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRul(YKHO):\n return YKHO._type_obj",
"def FRul(YKHO) -> str:\n return YKHO.row_dict['type']",
"def n8Qd(YKHO):\n return YKHO.entity_type",
"def zXgc(YKHO):\n return YKHO._entity_type",
"def FRul(YKHO):\n return YKHO._type",
"def FRul(YKHO):\n return YKHO._type",
"def YwLH(YKHO):\... | [
"0.7195941",
"0.7165912",
"0.7143174",
"0.70549",
"0.7047004",
"0.7047004",
"0.7024994",
"0.6984422",
"0.6984422",
"0.69765097",
"0.69765097",
"0.69765097",
"0.69765097",
"0.69765097",
"0.69765097",
"0.69765097",
"0.69765097",
"0.69765097",
"0.69765097",
"0.69765097",
"0.6976... | 0.71532154 | 2 |
Retrieve the Type of the result for this Cursor. | def HfXH(YKHO):
if not hasattr(YKHO, '_result_type'):
YKHO._result_type = Fv2L.lib.clang_getResultType(YKHO.type)
return YKHO._result_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HfXH(YKHO) -> h8nf[str]:\n if hasattr(YKHO, '_result_type'):\n return YKHO._result_type\n M56f: list[kDLT] = []\n GSuR = YKHO._select('resultType', M56f)\n return GSuR.execute_sync(h8nf[str])",
"def FRul(YKHO) -> str:\n return YKHO.row_dict['type']",
"def YwLH(YKHO):\n return YKHO.... | [
"0.8078356",
"0.7562815",
"0.7324258",
"0.72558236",
"0.72528577",
"0.7252847",
"0.7245781",
"0.7243352",
"0.7243352",
"0.7213263",
"0.7213263",
"0.72067064",
"0.72004765",
"0.71624434",
"0.7155078",
"0.71191704",
"0.71191704",
"0.71191704",
"0.71191704",
"0.71191704",
"0.711... | 0.75714606 | 1 |
Return the integer type of an enum declaration. Returns a Type corresponding to an integer. If the cursor is not for an enum, this raises. | def p5ux(YKHO):
if not hasattr(YKHO, '_enum_type'):
assert YKHO.kind == EO9X.ENUM_DECL
YKHO._enum_type = Fv2L.lib.clang_getEnumDeclIntegerType(YKHO)
return YKHO._enum_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO):\n if YKHO.__type is None:\n KNtt = Ncah(YKHO.__type_name, YKHO.message_definition())\n if not (KNtt is not bHD7 and isinstance(KNtt, type) and issubclass(KNtt, bHD7)):\n raise nJQM('Invalid enum type: %s' % KNtt)\n YKHO.__type = KNtt\n return YKHO.__type",
"d... | [
"0.6668528",
"0.6556559",
"0.6346278",
"0.6315874",
"0.6040577",
"0.5952468",
"0.5787921",
"0.57735497",
"0.57700783",
"0.57422316",
"0.5733731",
"0.56884867",
"0.5685823",
"0.56746346",
"0.5640415",
"0.5623708",
"0.56144726",
"0.56100196",
"0.560141",
"0.55462855",
"0.554627... | 0.834504 | 0 |
Return the value of an enum constant. | def iid8(YKHO):
if not hasattr(YKHO, '_enum_value'):
assert YKHO.kind == EO9X.ENUM_CONSTANT_DECL
qiq3 = YKHO.type
if qiq3.kind == WIHE.ENUM:
qiq3 = qiq3.get_declaration().enum_type
if qiq3.kind in (WIHE.CHAR_U, WIHE.UCHAR, WIHE.CHAR16, WIHE.CHAR32, WIHE.USHORT, WIHE.UINT,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UeSt(mWFP, zy0m):\n GYYW = zy0m.GMT_Get_Enum\n GYYW.argtypes = [gk2W.c_char_p]\n GYYW.restype = gk2W.c_int\n BWXx = GYYW(mWFP.encode())\n if BWXx is None or BWXx == -99999:\n raise EIDr(\"Constant '{}' doesn't exits in libgmt.\".format(mWFP))\n return BWXx",
"def iid8(Emd4: Any, tTpl... | [
"0.6877435",
"0.67854774",
"0.6428005",
"0.63341635",
"0.63341635",
"0.63341635",
"0.61973345",
"0.6167562",
"0.6158918",
"0.6133673",
"0.60927504",
"0.60549426",
"0.60345817",
"0.5913396",
"0.5896884",
"0.5874184",
"0.5840397",
"0.58348507",
"0.5827577",
"0.58219963",
"0.581... | 0.7888394 | 0 |
Obtain Token instances formulating that compose this Cursor. This is a generator for Token instances. It returns all tokens which occupy the extent this cursor occupies. | def thS1(YKHO):
return sSkP.get_tokens(YKHO._tu, YKHO.extent) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s2mk(YKHO):\n return YKHO.iter_tokens(YKHO._blob)",
"def thS1(YKHO):\n\n def lRqS(N1p7, WrFl):\n if N1p7.location.file and N1p7.location.file.name != YKHO.filepath:\n return\n if (N1p7.kind, N1p7.spelling) in exE9:\n return\n WrFl.append(N1p7)\n for aUG... | [
"0.70742357",
"0.70366806",
"0.7018434",
"0.7010121",
"0.69175786",
"0.6865068",
"0.6841545",
"0.68311644",
"0.6761095",
"0.6734778",
"0.66665196",
"0.6582777",
"0.65827334",
"0.65827334",
"0.65827334",
"0.64513296",
"0.6439483",
"0.64223206",
"0.62753505",
"0.6236372",
"0.62... | 0.7108672 | 0 |
Get the enumeration name of this cursor kind. | def mWFP(YKHO):
if YKHO._name_map is None:
YKHO._name_map = {}
for H5ew, BWXx in WIHE.__dict__.items():
if isinstance(BWXx, WIHE):
YKHO._name_map[BWXx] = H5ew
return YKHO._name_map[YKHO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n if YKHO._name_map is None:\n YKHO._name_map = {}\n for H5ew, BWXx in EO9X.__dict__.items():\n if isinstance(BWXx, EO9X):\n YKHO._name_map[BWXx] = H5ew\n return YKHO._name_map[YKHO]",
"def GqZP(YKHO) -> str:\n return YKHO.kindName_",
"def eJTR(Y... | [
"0.7517167",
"0.6952754",
"0.6836199",
"0.6568886",
"0.64484495",
"0.640635",
"0.6387758",
"0.6341467",
"0.6328878",
"0.6328878",
"0.6302517",
"0.6283944",
"0.62196887",
"0.61947507",
"0.6184855",
"0.6183771",
"0.6183771",
"0.6183771",
"0.6183771",
"0.6183771",
"0.6183771",
... | 0.6470323 | 4 |
Retrieve the spelling of this TypeKind. | def HXX0(YKHO):
return Fv2L.lib.clang_getTypeKindSpelling(YKHO.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HXX0(YKHO):\n return Fv2L.lib.clang_getTranslationUnitSpelling(YKHO)",
"def mWFP(YKHO):\n if YKHO._name_map is None:\n YKHO._name_map = {}\n for H5ew, BWXx in WIHE.__dict__.items():\n if isinstance(BWXx, WIHE):\n YKHO._name_map[BWXx] = H5ew\n return YKHO._name... | [
"0.7000876",
"0.6776368",
"0.6767621",
"0.6715922",
"0.6512624",
"0.64286685",
"0.6419308",
"0.6412794",
"0.6376492",
"0.63488835",
"0.629028",
"0.628916",
"0.6243327",
"0.620276",
"0.61757696",
"0.6120861",
"0.6120861",
"0.6113694",
"0.6103267",
"0.6083025",
"0.60745436",
... | 0.86546105 | 0 |
Return the kind of this type. | def eJTR(YKHO):
return WIHE.from_id(YKHO._kind_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJTR(YKHO):\n return YKHO._kind()",
"def A3bn(YKHO):\n return YKHO._kind",
"def eJTR(YKHO):\n return YKHO._kind",
"def eJTR(YKHO):\n return YKHO._kind",
"def S5Rp(YKHO):\n return YKHO.kind",
"def eJTR(YKHO):\n return YKHO.get_data('kind')",
"def S5Rp(YKHO):\n pass",
"def eJTR... | [
"0.8805417",
"0.8671091",
"0.8664501",
"0.8664501",
"0.86448044",
"0.8431001",
"0.8381873",
"0.82542956",
"0.82542956",
"0.82542956",
"0.82542956",
"0.82542956",
"0.82542956",
"0.82542956",
"0.82542956",
"0.82542956",
"0.82542956",
"0.82542956",
"0.82542956",
"0.82542956",
"0... | 0.8864351 | 0 |
Determine whether this Type represents plain old data (POD). | def e9Gk(YKHO):
return Fv2L.lib.clang_isPODType(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmqr(YKHO):\n return not YKHO.has_structure",
"def vK2i(YKHO):\n return False",
"def kL6g(YKHO) -> bool:\n return YKHO.data in ('int', 'bool', 'float', 'str')",
"def g9YX(YKHO, i8q0):\n if not hasattr(i8q0, '_type_'):\n return i8q0 in [int, Swre, float, bool]\n return YKHO.is_basic_... | [
"0.6809016",
"0.66576004",
"0.63237625",
"0.616281",
"0.60937804",
"0.6042739",
"0.59935755",
"0.59933263",
"0.59440213",
"0.59237224",
"0.5922243",
"0.5922243",
"0.59220815",
"0.59200174",
"0.5914625",
"0.5895693",
"0.5891164",
"0.5891063",
"0.58569914",
"0.5814967",
"0.5814... | 0.7335874 | 0 |
Create a TranslationUnit instance from a saved AST file. A previouslysaved AST file (provided with emitast or TranslationUnit.save()) is loaded from the filename specified. If the file cannot be loaded, a TranslationUnitLoadError will be raised. index is optional and is the Index instance to use. If not provided, a def... | def QAya(Emd4, Ux0P, d6pt=None):
if d6pt is None:
d6pt = tTFA.create()
AsCw = Fv2L.lib.clang_createTranslationUnit(d6pt, Ux0P)
if AsCw is None:
raise eqer(Ux0P)
return Emd4(ptr=AsCw, index=d6pt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J4ls(Emd4, Ux0P, qIxc=None, SW5L=None, xAU6=0, d6pt=None):\n if qIxc is None:\n qIxc = []\n if SW5L is None:\n SW5L = []\n if d6pt is None:\n d6pt = tTFA.create()\n DbK_ = None\n if len(qIxc) > 0:\n DbK_ = (TO1V * len(qIxc))(*qIxc)\n _2wb = None\n if len(SW5L) >... | [
"0.7135722",
"0.67183644",
"0.6540111",
"0.60254574",
"0.5984081",
"0.5877664",
"0.5866693",
"0.5775847",
"0.5764207",
"0.5709046",
"0.56454676",
"0.564197",
"0.5627172",
"0.55952233",
"0.55898684",
"0.5581314",
"0.5537145",
"0.5516443",
"0.54568744",
"0.54483056",
"0.5433146... | 0.8995971 | 0 |
Get the original translation unit source file name. | def HXX0(YKHO):
return Fv2L.lib.clang_getTranslationUnitSpelling(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return Fv2L.lib.clang_getCString(Fv2L.lib.clang_getFileName(YKHO))",
"def W0tD(YKHO):\n return YKHO.source.get_name()",
"def n3Ag(x3xP):\n alNz = None\n if not x3xP:\n return\n try:\n alNz = x3xP.event_outcome_detail.split(';')[0]\n except IndexError:\n ... | [
"0.7178109",
"0.6968237",
"0.6927974",
"0.6799572",
"0.66629463",
"0.6661065",
"0.6631746",
"0.6588131",
"0.6546193",
"0.6486504",
"0.64688313",
"0.6446357",
"0.6440533",
"0.6433717",
"0.6399247",
"0.6357081",
"0.6357081",
"0.6357081",
"0.6357081",
"0.6357081",
"0.63352764",
... | 0.0 | -1 |
Obtain a SourceLocation for a file in this translation unit. | def hbd3(YKHO, Ux0P, dQgj):
eHNT = YKHO.get_file(Ux0P)
if isinstance(dQgj, int):
return kIfk.from_offset(YKHO, eHNT, dQgj)
return kIfk.from_position(YKHO, eHNT, dQgj[0], dQgj[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _jo8(KAU7, nUeQ, zFiD, iVRZ):\n return Fv2L.lib.clang_getLocation(KAU7, nUeQ, zFiD, iVRZ)",
"def vx4U(KAU7, nUeQ, vgXP):\n return Fv2L.lib.clang_getLocationForOffset(KAU7, nUeQ, vgXP)",
"def _bsB(YKHO, nUeQ: str) -> str:\n return Hy7s.path.join(str(YKHO.id), nUeQ)",
"def vFAS(YKHO):\n return ... | [
"0.6847043",
"0.64851457",
"0.62081945",
"0.61951745",
"0.5898386",
"0.58658266",
"0.58355093",
"0.57988423",
"0.5777193",
"0.57614523",
"0.5748111",
"0.5734581",
"0.571492",
"0.5675142",
"0.5658473",
"0.56413215",
"0.56351453",
"0.5623252",
"0.5620258",
"0.55920285",
"0.5588... | 0.71237415 | 0 |
The SourceLocation this Token occurs at. | def Rci7(YKHO):
return Fv2L.lib.clang_getTokenLocation(YKHO._tu, YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rci7(YKHO):\n if not hasattr(YKHO, '_loc'):\n YKHO._loc = Fv2L.lib.clang_getCursorLocation(YKHO)\n return YKHO._loc",
"def hbd3(YKHO) -> tuple:\n return YKHO.__location",
"def hbd3(YKHO):\n return YKHO.__location",
"def Rci7(YKHO):\n return YKHO._location",
"def Rci7(YKHO):\n r... | [
"0.7474823",
"0.7098137",
"0.69544077",
"0.69299287",
"0.69299287",
"0.688192",
"0.68398285",
"0.6815098",
"0.678722",
"0.67455536",
"0.67392105",
"0.6726999",
"0.66918975",
"0.66918975",
"0.66918975",
"0.66894287",
"0.66824937",
"0.66738325",
"0.66532385",
"0.6567933",
"0.65... | 0.7883145 | 0 |
Set the current goal that the agent needs to achieve in the environment | def q_Tz(YKHO, xi3E: GoalType) -> None:
YKHO.goal = xi3E | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q_Tz(YKHO, **B2fa):\n return YKHO.env.set_goal(**B2fa)",
"def xi3E(YKHO, xi3E):\n YKHO._goal = xi3E",
"def q_Tz(YKHO, xi3E):\n YKHO.goal = xi3E\n YKHO.start_time = YKHO.get_current_time()",
"def q_Tz(YKHO, xi3E):\n YKHO._pid_lock.acquire()\n YKHO._goal = xi3E\n YKHO._pid_lock.release... | [
"0.8073704",
"0.73742783",
"0.72853035",
"0.71791995",
"0.683782",
"0.6798636",
"0.6642405",
"0.651443",
"0.6456783",
"0.6353563",
"0.62709266",
"0.6205044",
"0.6075797",
"0.60703367",
"0.60542816",
"0.60179466",
"0.6002478",
"0.592347",
"0.5770437",
"0.57452714",
"0.5743431"... | 0.7037371 | 4 |
Return self.template_name if set. Otherwise, resolve the template path by model app_label and name. | def sA4G(YKHO):
if YKHO.template_name is not None:
return YKHO.template_name
BzGc = YKHO.queryset.model._meta
return f'{BzGc.app_label}/{BzGc.model_name}.html' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DAt9(YKHO):\n C3ST = YKHO.get_object()\n qm1k = YKHO.model_template_name or 'template'\n try:\n KJWQ = getattr(C3ST, qm1k)\n except AttributeError as e:\n raise rqaQ('%(model)s is missing a template. Define %(model)s.template, %(cls)s.model_template_name or override %(cls)s.get_templa... | [
"0.71611077",
"0.7061638",
"0.6938421",
"0.66925704",
"0.6648103",
"0.6602701",
"0.6588683",
"0.6568682",
"0.6446615",
"0.6441177",
"0.642512",
"0.6387935",
"0.6360613",
"0.63458544",
"0.62905234",
"0.62689495",
"0.6263235",
"0.6257681",
"0.6152296",
"0.6081352",
"0.60554194"... | 0.7669378 | 0 |
Reads a plain text file line by line | def voJB(IQfy, YAg3=None):
with open(Hy7s.path.expanduser(IQfy), 'r') as p36l:
if YAg3 is not None:
for zFiD in p36l:
yield YAg3(zFiD)
else:
for zFiD in p36l:
yield zFiD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Np1T(gIsw):\n YB6w = open(gIsw)\n Nqlg = YB6w.readlines()\n YB6w.close()\n return Nqlg",
"def UsVE(pmON):\n with open(pmON, 'r') as eHNT:\n NRcB = eHNT.read().splitlines()\n eHNT.close()\n return NRcB",
"def zlYa(pmON):\n with open(pmON, 'r') as eHNT:\n return eHNT... | [
"0.7221692",
"0.718376",
"0.7044758",
"0.7044758",
"0.70015895",
"0.69851875",
"0.6940246",
"0.6921058",
"0.68300956",
"0.68039554",
"0.68039554",
"0.67749524",
"0.6737522",
"0.6733063",
"0.67276615",
"0.6702963",
"0.6691704",
"0.66834134",
"0.66781735",
"0.6677143",
"0.66246... | 0.0 | -1 |
Cleanup PTF server, including delete test cases and root test folder. | def pE_R(PPA3):
lBC8(PPA3)
rOzN(PPA3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n if Hy7s.path.isdir(xGD1):\n RDuA.rmtree(xGD1)",
"def tBIc(YKHO):\n if Hy7s.path.isdir(xGD1):\n RDuA.rmtree(xGD1)",
"def BLOa():\n global TEST_WORKSPACE\n rnFC = sEAN.import_test_cfg(Vndn)['codechecker_cfg']\n _q2e.remove_test_package_product(Vndn, rnFC['check_env'... | [
"0.7709915",
"0.7709915",
"0.7578644",
"0.7410671",
"0.74088687",
"0.7368031",
"0.7368012",
"0.7337715",
"0.7267924",
"0.7251823",
"0.7220985",
"0.71946526",
"0.719021",
"0.7184331",
"0.7148105",
"0.7147391",
"0.713078",
"0.70856106",
"0.70847803",
"0.70847803",
"0.70578027",... | 0.81201303 | 0 |
Prepare SAI test env including create root test folder and copy cases. | def ia0C(PPA3, QePW):
bo34.info('Preparing SAI test environment.')
x6fJ(PPA3)
FsgA(PPA3, QePW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSwW(YKHO):\n _3Up._test_index += 1\n YKHO._status = -1\n YKHO._preserve_files = []\n BbtN = jz9n()\n MpXb = BbtN['${TEST NAME}']\n bo34.info('Setup test %s' % MpXb)\n MpXb = MpXb.replace(' ', '_').replace('.', '_')\n MpXb = '%03d_%s' % (_3Up._test_index, MpXb)\n YKHO._execdir = Hy7s... | [
"0.7469071",
"0.73028517",
"0.7237037",
"0.7081117",
"0.70688003",
"0.70015097",
"0.6990957",
"0.69040465",
"0.6878071",
"0.6836587",
"0.67487043",
"0.671235",
"0.6702409",
"0.66680336",
"0.6649729",
"0.663223",
"0.6627897",
"0.6575918",
"0.6568277",
"0.6568277",
"0.6568277",... | 0.8458113 | 0 |
Compute the pairwise distances matrix. Given input embedding vectors, this utility computes the (squared) pairwise distances matrix. | def QMWw(UZOJ: types.Tensor) -> SnBA.Tensor:
Mkmy = ZylS.reduce_sum(UZOJ * UZOJ, axis=1, keepdims=True)
IS2E = Mkmy - 2 * ZylS.matmul(UZOJ, UZOJ, transpose_b=True) + ZylS.transpose(Mkmy)
return ZylS.cast(IS2E, dtype=ZylS.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y8vu(YKHO, F5zh, j8q6, lRRB=False):\n fQc2 = j8q6.norm(p=2, dim=-1) ** 2\n cBd3 = F5zh.norm(p=2, dim=-1) ** 2\n uYbU = YKHO._pairwise_dot_product(F5zh, j8q6)\n fQc2 = fQc2.unsqueeze(0).unsqueeze(0)\n cBd3 = cBd3.unsqueeze(2)\n R7Ie = fQc2 + cBd3 - 2 * uYbU\n if lRRB:\n return R7Ie\n... | [
"0.76852447",
"0.7613163",
"0.75362676",
"0.74399203",
"0.70909184",
"0.6681631",
"0.6608723",
"0.6606141",
"0.6453361",
"0.63931906",
"0.6250037",
"0.6238846",
"0.62133175",
"0.6211315",
"0.62037796",
"0.61723065",
"0.6095981",
"0.605958",
"0.6056382",
"0.5985497",
"0.598172... | 0.73271704 | 4 |
A function to create a logger. | def lmAE(G9jH, vWpo, ABDL):
bo34 = G9jH.getLogger(vWpo)
DCgT = G9jH.StreamHandler()
DCgT.setLevel(ABDL)
UIUm = G9jH.Formatter('[%(name)s - %(asctime)s] %(levelname)s: %(message)s')
DCgT.setFormatter(UIUm)
bo34.addHandler(DCgT)
bo34.setLevel(ABDL)
return bo34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmAE() -> G9jH.Logger:\n pass",
"def lmAE():\n global logger\n bo34 = G9jH.getLogger(E70h)\n uaPq = G9jH.Formatter(fmt='%(asctime)s %(levelname)s %(message)s')\n DCgT = G9jH.StreamHandler()\n DCgT.setFormatter(uaPq)\n bo34.addHandler(DCgT)\n return bo34",
"def lmAE():\n G9jH.basi... | [
"0.8594537",
"0.8298179",
"0.78457147",
"0.78177017",
"0.77317595",
"0.7699181",
"0.7696191",
"0.7682176",
"0.7678915",
"0.7560471",
"0.75225383",
"0.7410358",
"0.7407225",
"0.74024403",
"0.734758",
"0.7334353",
"0.73106",
"0.7309574",
"0.72945255",
"0.7286092",
"0.72805953",... | 0.7303894 | 18 |
Returns the minimax action using self.depth and self.evaluationFunction | def bk5W(YKHO, Ov5A):
"""*** YOUR CODE HERE ***"""
return YKHO.alpha_beta(Ov5A, 0, YKHO.depth, (-1000000000.0, None), (1000000000.0, None))[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\... | [
"0.7482665",
"0.7383559",
"0.71806973",
"0.7110041",
"0.70884514",
"0.70694935",
"0.70683014",
"0.7048308",
"0.70055133",
"0.69651455",
"0.69642085",
"0.69604385",
"0.6945924",
"0.68998593",
"0.6895832",
"0.688605",
"0.6826282",
"0.6767276",
"0.6758028",
"0.6751636",
"0.67054... | 0.0 | -1 |
Checks if a table exists with the given name. | def n2Bh(GTA_):
IVkI = HagN()
N1p7 = IVkI.cursor()
try:
N1p7.execute("SHOW TABLES LIKE '" + GTA_ + "'")
except:
IVkI.close()
N1p7.close()
print("Show Tables query didn't execute.")
return
usx6 = N1p7.fetchall()
IVkI.close()
N1p7.close()
if len(usx6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HBKT(YKHO, GTA_: str) -> bool:\n return i48E.inspect(EOaO.sessions.DB_ENGINE).has_table(GTA_)",
"def U9IL(XGln):\n if not eHpk.dialect.has_table(eHpk, XGln):\n return False\n else:\n return True",
"def n2Bh(YKHO, GTA_):\n n2Bh = YKHO.query(Pe9W.table_existence, (GTA_, YKHO._curren... | [
"0.85193187",
"0.84410435",
"0.84112984",
"0.8382124",
"0.8313438",
"0.8308835",
"0.82274175",
"0.82096237",
"0.817949",
"0.81168747",
"0.8109942",
"0.8086627",
"0.8073405",
"0.804916",
"0.801264",
"0.7918885",
"0.787237",
"0.78723496",
"0.7869844",
"0.7845956",
"0.7807311",
... | 0.79917246 | 15 |
Constructor method; creates a BDLToPandas object based on the passed bdl_data value. | def FIMM(YKHO):
PDnE.__init__(YKHO)
YKHO.pandas_df = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Plv9, QTg7=None, kepv=None, KhBf=None, upF9=False):\n YKHO.pudl_engine = Plv9\n YKHO.freq = QTg7\n if kepv is None:\n YKHO.start_date = rLdf.to_datetime('{}-01-01'.format(min(IhAk.working_years['eia923'])))\n else:\n YKHO.start_date = rLdf.to_datetime(kepv)\n if KhBf is ... | [
"0.59134245",
"0.5831505",
"0.5776117",
"0.5725441",
"0.5705764",
"0.5534953",
"0.55232364",
"0.5518365",
"0.5493648",
"0.5461806",
"0.54614383",
"0.54326206",
"0.5375795",
"0.5363052",
"0.5325064",
"0.5276987",
"0.5253269",
"0.51962966",
"0.5195874",
"0.5194251",
"0.51741",
... | 0.6237992 | 0 |
Converts the `min` column from minutes/seconds to minutes and decimals of minutes. | def OFhG(YKHO):
YKHO.pandas_df['min'] = YKHO.pandas_df['min'].str.replace(':', '.').astype(float)
YKHO.pandas_df['min'] = YKHO.pandas_df['min'].astype(int) + (((YKHO.pandas_df.loc[:, 'min'] - YKHO.pandas_df.loc[:, 'min'].astype(int)) * 100).round(0).astype(int) / 60).round(2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKsQ(PjeQ: int) -> str:\n if PjeQ % 60 == 0:\n return f'{PjeQ // 60}'\n r8hN = PjeQ / 60\n return f'{r8hN:.2g}'",
"def vmkx(i8WE, min):\n WWmL = xOzv * min\n return int(i8WE / WWmL) * WWmL",
"def cYnB(BWXx):\n min = int(int(BWXx) / 60)\n kRsb = int(int(BWXx) % 60)\n return '%... | [
"0.668429",
"0.6512969",
"0.6488133",
"0.64852476",
"0.6413825",
"0.63802475",
"0.6319943",
"0.63076246",
"0.6208787",
"0.61900145",
"0.6094321",
"0.6065351",
"0.60561085",
"0.6039695",
"0.603219",
"0.599995",
"0.5990582",
"0.5958932",
"0.5958284",
"0.59345317",
"0.5849321",
... | 0.7709544 | 0 |
Plot motion quiver on top of an image. | def EGD0(pdhd, cAlv, ormZ, uBsB, _0fC=10, ITyF=None, kyIY=None):
if len(cAlv.shape) != 3:
raise ValueError('V must be a three-dimensional array')
if pdhd.shape != cAlv.shape[0:2]:
raise ValueError('I and V must have the same shape')
LZpg = JI1i()
aNZO = LZpg.gca()
pdhd = pdhd.copy()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L3LP():\n QrM1.quiver(WKvO, LVAh, P6bq, Ty9i, Ozvo, scale=50, color='b')\n QrM1.gca().invert_yaxis()\n QrM1.gca().set_aspect(1)\n QrM1.plot(WKvO.flat[ebVP], LVAh.flat[ebVP], 'rx')\n QrM1.colorbar(orientation='horizontal')",
"def kQ4Y():\n QrM1.ion()",
"def jF2r(P6bq, Ty9i, VXjJ):\n X6r... | [
"0.69074863",
"0.6185567",
"0.6162103",
"0.6126877",
"0.60671085",
"0.60385",
"0.60096127",
"0.5985237",
"0.5971989",
"0.593883",
"0.58368593",
"0.5834218",
"0.58250654",
"0.5824373",
"0.5816438",
"0.5792457",
"0.57871026",
"0.57871026",
"0.57871026",
"0.5759019",
"0.574998",... | 0.0 | -1 |
Short function to build a batch normalization layer with less syntax | def ykhl(WKvO, Y9ns, mWFP):
tlxW = ZylS.layers.batch_normalization(WKvO, axis=3, training=Y9ns, name=mWFP)
return tlxW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GVKG(g4y1, wH3T):\n return ZylS.layers.BatchNormalization(axis=1 if wH3T == 'channels_first' else 3, momentum=ddHF, epsilon=UCFg, scale=True)(g4y1)",
"def idFg(g4y1, Y9ns, wH3T):\n return ZylS.compat.v1.layers.batch_normalization(inputs=g4y1, axis=1 if wH3T == 'channels_first' else 3, momentum=ddHF, ep... | [
"0.7129626",
"0.7101603",
"0.7091098",
"0.7001034",
"0.6996596",
"0.69212055",
"0.69170916",
"0.6882678",
"0.68783796",
"0.68710005",
"0.6868827",
"0.6831503",
"0.67668843",
"0.6699075",
"0.66879886",
"0.66404885",
"0.6617548",
"0.659394",
"0.65638477",
"0.6542637",
"0.653838... | 0.7173043 | 0 |
Creates a string of specified length, either by adding whitespace to the right, or concatenating | def L6aI(Jyyj, u54L):
Jyyj = str(Jyyj)
KJU0 = len(Jyyj)
if KJU0 > u54L:
Jyyj = Jyyj[:u54L]
if KJU0 < u54L:
while len(Jyyj) < u54L:
Jyyj += ' '
return Jyyj.upper() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n7cc(d7pR, u54L):\n if u54L <= len(d7pR):\n return d7pR\n else:\n return d7pR + ' ' * (u54L - len(d7pR))",
"def D4YJ(vIwR: str, u54L=20) -> str:\n if len(vIwR) > u54L:\n return f'{vIwR[:u54L - 3]}...'\n HHea = ''.join((' ' for bGrB in range(u54L - len(vIwR))))\n return f'{... | [
"0.7970846",
"0.7273823",
"0.7216539",
"0.7151123",
"0.70272475",
"0.70058894",
"0.6891849",
"0.6890155",
"0.6764301",
"0.6732633",
"0.67102164",
"0.6693542",
"0.66901344",
"0.66811126",
"0.66744465",
"0.6603903",
"0.659562",
"0.6562817",
"0.6554759",
"0.6554683",
"0.65364474... | 0.70130754 | 5 |
Reads a single byte from I2C Bus | def Ueki(YKHO, lQ3t):
return YKHO.bus.read_byte_data(YKHO.address, lQ3t) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _9Bs(Gcbu, lQ3t):\n Fg_i, = ml9D(Gcbu, bytes([lQ3t]), 1)\n return Fg_i",
"def UGeu(YKHO):\n nPrm = YKHO.Port.read(1)\n return nPrm",
"def NxqF(YKHO, gr_i, qwxf=None):\n if qwxf is not None:\n YKHO.set_bank(qwxf)\n return YKHO.i2c.read_byte_data(YKHO.address, gr_i)",
"def xMsC(YKH... | [
"0.80617946",
"0.7530884",
"0.7428474",
"0.73639494",
"0.7319571",
"0.70990145",
"0.7015081",
"0.6988176",
"0.6821304",
"0.68055683",
"0.67879254",
"0.67338437",
"0.67205846",
"0.67188895",
"0.6649439",
"0.6608932",
"0.6597721",
"0.6597721",
"0.6555857",
"0.6555857",
"0.65221... | 0.65364146 | 20 |
dict > int Just a sanity check to find the number of nodes on a undirected graph. | def ICx5(F7Z0):
W6fU = 0
for Q6kx in F7Z0:
W6fU += len(F7Z0[Q6kx])
if W6fU % 2 == 0:
return W6fU / 2
else:
return 'Not Undirected' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CYQC(pNZh):\n return len(pNZh.keys())",
"def EKkU(Oa1e):\n return len(Oa1e.keys())",
"def kRap(YKHO) -> int:\n return int(YKHO.graph_tuple_stats.node_count or 0)",
"def fsAe(YKHO):\n try:\n return YKHO.num_node\n except:\n print('ERROR: No graph exists')",
"def ann4(pNZh):\... | [
"0.768968",
"0.76730096",
"0.736214",
"0.7186066",
"0.7120402",
"0.70767295",
"0.6930425",
"0.69196856",
"0.68751156",
"0.6852514",
"0.6844907",
"0.6841625",
"0.6822395",
"0.682207",
"0.6805743",
"0.6785262",
"0.6777823",
"0.67750794",
"0.67616606",
"0.6755209",
"0.67515177",... | 0.6248431 | 73 |
Check for file name, size limits and whether they are readable | def KA9W(YKHO):
RRlC = YKHO.files.getlist('file_field')
for nUeQ in RRlC:
_FIc.validate_filename(nUeQ.name)
if not nUeQ:
raise H6V6.ValidationError('Could not read file: %(file_name)s', params={'file_name': nUeQ.name})
for nUeQ in RRlC:
if nUeQ.size > UwyA.INDIVIDUAL_FILE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D0hl(YKHO, gIsw: str) -> bool:\n try:\n zNig = Hy7s.path.getsize(gIsw)\n except Exception as e:\n print('Failed to get file file size for %s - %s' % (gIsw, tTpl))\n return -1\n if zNig >= YKHO.file_size:\n return True\n return False",
"def k192(YKHO):\n YKHO.check_n... | [
"0.6694444",
"0.6494879",
"0.6359874",
"0.63116676",
"0.62775886",
"0.627256",
"0.6157853",
"0.61169684",
"0.60863405",
"0.60738975",
"0.60631853",
"0.60620165",
"0.59731174",
"0.5969702",
"0.5946082",
"0.5925457",
"0.5870645",
"0.58688116",
"0.58512044",
"0.58486426",
"0.577... | 0.587739 | 16 |
Set the license queryset according to the set or selected access policy. | def GNWJ(YKHO, y628):
YKHO.fields['license'].queryset = fVaT.objects.filter(resource_types__icontains=str(YKHO.instance.resource_type.id), access_policy=y628) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Jk5f=True, **B2fa):\n super().__init__(**B2fa)\n KbHS = fVaT.objects.filter(resource_types__icontains=str(YKHO.instance.resource_type.id))\n fguu = [jzdc for jzdc in range(len(H1ja.ACCESS_POLICIES)) if KbHS.filter(access_policy=jzdc)]\n YKHO.fields['access_policy'].choices = tuple((H1ja.... | [
"0.6292814",
"0.5715369",
"0.55870116",
"0.5525325",
"0.5466198",
"0.5367235",
"0.53351736",
"0.53175277",
"0.5315126",
"0.5315126",
"0.5202911",
"0.52006674",
"0.5145886",
"0.50934076",
"0.5076889",
"0.5073441",
"0.50716424",
"0.5014374",
"0.4999472",
"0.4977471",
"0.4958207... | 0.8609018 | 0 |
Invitation must be active, user must be invited | def x0SS(YKHO):
VMhS = super().clean()
if not YKHO.instance.is_active:
raise H6V6.ValidationError('Invalid invitation.')
if YKHO.instance.email not in YKHO.user.get_emails():
raise H6V6.ValidationError('You are not invited.')
return VMhS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBgT(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'send_user_invitation')",
"def CBgT(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'send_user_invitation')",
"def J5jR(YKHO):\n pass",
"def CBgT(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'send_user_invitat... | [
"0.70818466",
"0.70818466",
"0.69969034",
"0.69837475",
"0.6752548",
"0.6684189",
"0.65947866",
"0.65220106",
"0.64866036",
"0.64336324",
"0.63623214",
"0.6356424",
"0.63498276",
"0.63496995",
"0.6347151",
"0.6326091",
"0.63260293",
"0.62712115",
"0.6268641",
"0.62617564",
"0... | 0.6688163 | 5 |
return a string to represent this RobustWemoControl object | def zAg0(YKHO):
KCHu = '%s named "%s" (retry = %ds)' % (YKHO.__class__.__name__, YKHO.name, YKHO.retry)
if YKHO.state:
KCHu += ' has %s' % YKHO.state
else:
KCHu += ' has not been discovered yet'
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n Ebev = ', '.join(['group: ' + str(YKHO.group), 'controls: ' + str(YKHO.controls)])\n return f'ActuatorControlTarget: [{Ebev}]'",
"def zAg0(YKHO):\n return f'\\n {super().__str__()}\\n Brand: {YKHO._breand}\\n Pover: {YKHO._power} (W)\\n Nozzle: {YKHO._nozzle... | [
"0.7142754",
"0.6953869",
"0.68628013",
"0.68612415",
"0.68612415",
"0.6847384",
"0.6847384",
"0.6847384",
"0.6847384",
"0.68463326",
"0.68463326",
"0.68463326",
"0.68463326",
"0.68463326",
"0.68463326",
"0.68463326",
"0.68463326",
"0.68463326",
"0.68463326",
"0.68463326",
"0... | 0.0 | -1 |
Returns a function that maps each index in 0, 1, ..., n1 to a distinct RGB color; the keyword argument name must be a standard mpl colormap name. | def tRp2(exwG, mWFP='hsv'):
return QrM1.cm.get_cmap(mWFP, exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tRp2(exwG, mWFP='jet'):\n return QrM1.cm.get_cmap(mWFP, exwG)",
"def tRp2(exwG, mWFP='hsv'):\n return QrM1.cm.get_cmap(mWFP, exwG)",
"def tRp2(exwG, mWFP='hsv'):\n return QrM1.cm.get_cmap(mWFP, exwG)",
"def tRp2(exwG, mWFP='Paired'):\n return QrM1.cm.get_cmap(mWFP, exwG)",
"def XTKI(mWFP):\... | [
"0.70270115",
"0.6977335",
"0.6977335",
"0.6946025",
"0.67233455",
"0.6578183",
"0.6510557",
"0.6427171",
"0.63589215",
"0.6329049",
"0.6286419",
"0.6181896",
"0.61389565",
"0.61124665",
"0.60927886",
"0.60417897",
"0.6018993",
"0.5989977",
"0.5959873",
"0.5958555",
"0.588903... | 0.6929189 | 5 |
Test that the census_area_to_observation API endpoint will raise an error if it's missing the required keyword arguments. | def qxFI(x0hE):
geh0 = x0hE.get(gxEw('acs'))
assert geh0.status_code == 400
assert geh0.json().get('error') is not None
assert 'required query parameters' in geh0.json()['error'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def swRP(x0hE):\n geh0 = x0hE.get(gxEw('acs'), {'census_area': '10000', 'primary_source': 'bar'})\n assert geh0.status_code == 400\n assert geh0.json().get('error') is not None\n assert 'No CensusArea object' in geh0.json()['error']",
"def wFl0(x0hE, zkJc):\n geh0 = x0hE.get(gxEw('acs'), {'census_... | [
"0.76882076",
"0.7227478",
"0.70550704",
"0.64740604",
"0.6260564",
"0.62261754",
"0.5891789",
"0.57930166",
"0.5700037",
"0.5650203",
"0.56330025",
"0.5601142",
"0.55904615",
"0.55292386",
"0.55245364",
"0.5512393",
"0.55047697",
"0.54997784",
"0.54839",
"0.545214",
"0.54378... | 0.8616821 | 0 |
Test that the census_area_to_observation API endpoint will raise an error if no SurveyComponent matches the given value for primary_source. | def wFl0(x0hE, zkJc):
geh0 = x0hE.get(gxEw('acs'), {'census_area': zkJc.id, 'primary_source': 'bar'})
assert geh0.status_code == 400
assert geh0.json().get('error') is not None
assert 'No SurveyComponent found' in geh0.json()['error'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WVfJ(x0hE, zkJc, KJHS):\n geh0 = x0hE.get(gxEw('acs'), {'census_area': zkJc.id, 'primary_source': KJHS.name})\n assert geh0.status_code == 400\n assert geh0.json().get('error') is not None\n assert 'No corresponding ACS variable' in geh0.json()['error']",
"def swRP(x0hE):\n geh0 = x0hE.get(gxE... | [
"0.7502378",
"0.7317383",
"0.6705738",
"0.64691615",
"0.5503064",
"0.52981013",
"0.5281305",
"0.52505475",
"0.5244518",
"0.5233845",
"0.52287",
"0.5125688",
"0.51229334",
"0.5108435",
"0.51010627",
"0.50934577",
"0.50826454",
"0.5048",
"0.50320905",
"0.5016764",
"0.4960427",
... | 0.7872837 | 0 |
Returns True for primes, False for nonprimes and raises ValueError for unsure cases. | def xam_(exwG):
if exwG <= 1:
return False
elif exwG == 2:
return True
elif exwG % 2 == 0:
return False
ZGED = tHJl(exwG)
if ZGED is None:
tO9_ = 'No definite Miller-Rabin test is available for %d' % exwG
raise ValueError(tO9_)
Csk6, KCHu = ZQvR(exwG - 1)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DRsG(YKHO, mLGw):\n if mLGw == 2:\n return True\n if mLGw < 2 or mLGw % 2 == 0:\n return False\n for exwG in range(3, int(mLGw ** 0.5) + 2, 2):\n if mLGw % exwG == 0:\n return False\n return True",
"def T1qg(mLGw: int) -> bool:\n return TFEx(mLGw - 1) % mLGw != ... | [
"0.76142275",
"0.74802965",
"0.7415529",
"0.7399411",
"0.73923016",
"0.73830795",
"0.73809665",
"0.7376884",
"0.737067",
"0.73683363",
"0.73669016",
"0.7362903",
"0.73542917",
"0.73462844",
"0.73424715",
"0.7340357",
"0.73369205",
"0.73184973",
"0.73036975",
"0.7298675",
"0.7... | 0.0 | -1 |
Tests if mut_replace_terminal raises an exception if no valid mutation is possible. | def L5X3(YKHO):
QyVM = YKHO.individuals[YKHO.ind_strings[0]]
nkRe = YKHO.gama._toolbox.clone(QyVM)
with YKHO.assertRaises(ValueError) as P1dF:
OwLH(nkRe, YKHO.gama._pset)
YKHO.assertTrue('Individual could not be mutated' in str(P1dF.exception)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vN0Q(YKHO):\n uYDe = YKHO.individuals[YKHO.ind_strings[1]]\n YKHO._test_mutation(uYDe, OwLH, YKHO._mut_replace_terminal_is_applied)",
"def QChn(YKHO):\n epGW = oRi_(int)\n ywwl = YKHO._min_trials(n_mutations=2)\n for YRbF in range(ywwl):\n QyVM = YKHO.individuals[YKHO.ind_strings[0]]\n ... | [
"0.7506788",
"0.6660839",
"0.6444186",
"0.5763094",
"0.57083815",
"0.56965375",
"0.5392572",
"0.53382933",
"0.52986753",
"0.5185884",
"0.5173018",
"0.5129428",
"0.5126142",
"0.5103757",
"0.509309",
"0.50922424",
"0.5044614",
"0.5044458",
"0.49753955",
"0.49649343",
"0.4958031... | 0.7529728 | 0 |
Checks if mutation was caused by `deap.gp.mutInsert`. | def bhoH(YKHO, eJh7, xP9A):
Rriu = [geyT for geyT in eJh7 if isinstance(geyT, U_NH.Primitive)]
zmOZ = [geyT for geyT in xP9A if isinstance(geyT, U_NH.Primitive)]
if len(Rriu) >= len(zmOZ):
return (False, 'Number of primitives should be strictly greater, was {} is {}.'.format(len(Rriu), len(zmOZ)))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u2rZ(YKHO, d6pt, BWXx):\n return not bool(YKHO._insert_callback(d6pt, BWXx))",
"def kpaX(YKHO) -> bool:\n return YKHO.statement.is_dml and YKHO.statement.is_insert",
"def nifU(YKHO, ROpF):\n for JPHp in YKHO.inserts:\n if JPHp.shape == ROpF:\n return True\n return False",
"d... | [
"0.6702704",
"0.6424923",
"0.6306667",
"0.62216896",
"0.61911243",
"0.6085243",
"0.60064816",
"0.5976177",
"0.5894078",
"0.5869688",
"0.57659245",
"0.56692725",
"0.56637037",
"0.5555225",
"0.55511403",
"0.553932",
"0.5523064",
"0.55163795",
"0.5502787",
"0.5471894",
"0.541966... | 0.5994648 | 7 |
A generator to divide a sequence into chunks of n units. | def Z0az(Q6uT, exwG):
while Q6uT:
yield Q6uT[:exwG]
Q6uT = Q6uT[exwG:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AyNP(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def AyNP(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(Q6uT: Sequence[T], exwG: int) -> bDy6[bdIy[Kt_s]]:\n for YRbF in range(0, len(Q6uT), ... | [
"0.8228046",
"0.8158689",
"0.81524664",
"0.81280315",
"0.8093729",
"0.8079474",
"0.8073035",
"0.8020304",
"0.80031013",
"0.79684955",
"0.79610103",
"0.79569995",
"0.79483324",
"0.7947087",
"0.7937754",
"0.7937198",
"0.7937198",
"0.7937198",
"0.7937198",
"0.7937198",
"0.793290... | 0.8043498 | 7 |
r""" Given a Normal distribution for the latent function, return the mean of Y if q(f) = N(Fmu, Fvar) and this object represents p(y|f) then this method computes the predictive mean \int\int y p(y|f)q(f) df dy and the predictive variance \int\int y^2 p(y|f)q(f) df dy [ \int\int y^2 p(y|f)q(f) df dy ]^2 Here, we impleme... | def JjIe(YKHO, O_5T, GdLY):
def R9Vg(*EcVT):
return YKHO.conditional_variance(*EcVT) + YKHO.conditional_mean(*EcVT) ** 2
JpZP = [YKHO.conditional_mean, R9Vg]
JhNy = YKHO.num_gauss_hermite_points
HlYt, OU2c = bF8_(JpZP, JhNy, O_5T, GdLY)
j7ww = OU2c - HlYt ** 2
return (HlYt, j7ww) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JjIe(YKHO, O_5T, GdLY):\n kZUC, KX02 = b3zI(YKHO.num_gauss_hermite_points)\n KX02 /= oyIN.sqrt(oyIN.pi)\n KX02 = KX02.reshape(-1, 1)\n ROpF = ZylS.shape(O_5T)\n O_5T, GdLY = [ZylS.reshape(tTpl, (-1, 1)) for tTpl in (O_5T, GdLY)]\n EcVT = kZUC[None, :] * ZylS.sqrt(2.0 * GdLY) + O_5T\n HlYt ... | [
"0.663573",
"0.6460364",
"0.6429855",
"0.6404866",
"0.62841773",
"0.6234333",
"0.6140915",
"0.602175",
"0.5968484",
"0.5883561",
"0.5763818",
"0.5759419",
"0.5677004",
"0.56543744",
"0.56238586",
"0.5618409",
"0.56159556",
"0.5589227",
"0.5565066",
"0.5555828",
"0.55404377",
... | 0.6765706 | 0 |
Convert time in seconds to time in hours, minutes and seconds. | def ct8j(KCHu):
KCHu = int(KCHu)
r8hN, KCHu = divmod(KCHu, 60)
MKlR, r8hN = divmod(r8hN, 60)
return f'{MKlR:02d}h{r8hN:02d}m{KCHu:02d}s' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQkZ(Wave, O66n, C6wh):\n return Wave * 60 ** 2 + O66n * 60 + C6wh",
"def bQkZ(Wave, O66n, C6wh):\n return Wave * 3600 + O66n * 60 + C6wh",
"def QBVI(a1PO):\n O66n = int(a1PO / 60)\n C6wh = int(a1PO - 60 * O66n)\n return (O66n, C6wh)",
"def bQkZ(Wave, O66n, C6wh):\n return Wave * 3600 +... | [
"0.80692863",
"0.80254215",
"0.799807",
"0.79945284",
"0.78130025",
"0.7704133",
"0.7704133",
"0.7698898",
"0.7696824",
"0.74990517",
"0.7410873",
"0.73650587",
"0.7349785",
"0.73492056",
"0.7289429",
"0.7117542",
"0.71097934",
"0.7022713",
"0.7018364",
"0.701456",
"0.7012328... | 0.0 | -1 |
This function checking allowed file extensions | def XT0o(Ux0P):
return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in UWr8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t8G0(YKHO):\n for YBcr in list(UWr8):\n Ux0P = f'somename.{YBcr}'\n F4VP = BfDw.is_allowed_file(Ux0P)\n YKHO.assertTrue(F4VP)",
"def tSZB(YKHO):\n if YKHO._allowed_ext:\n if YKHO.get_ext() not in YKHO._allowed_ext:\n return False\n return True",
"def YgKf(Ux0... | [
"0.8545738",
"0.83287936",
"0.83192676",
"0.8236479",
"0.8138803",
"0.811488",
"0.811488",
"0.8112973",
"0.8111941",
"0.8084105",
"0.8084105",
"0.8084105",
"0.8084105",
"0.8084105",
"0.8084105",
"0.8079472",
"0.80490905",
"0.80490905",
"0.80483234",
"0.80283713",
"0.80039155"... | 0.80681026 | 24 |
Adds new tuple of (state, action, reward, next_state) sample to replay buffer If buffer is full (i.e. more than self. capacity) add new samples to beginning of replay buffer | def _jXH(YKHO, QTBn, XeOP, vOGg, rxHc):
A9IP = [QTBn, XeOP, vOGg, rxHc]
if len(YKHO.buffer) < YKHO.capacity:
YKHO.buffer.append(None)
YKHO.buffer[YKHO.position] = YKHO.transition(*A9IP)
YKHO.position = int((YKHO.position + 1) % YKHO.capacity) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qw6N(YKHO, mvm2):\n if YKHO._next_idx >= len(YKHO._buffer):\n YKHO._buffer.append(mvm2)\n else:\n YKHO._buffer[YKHO._next_idx] = mvm2\n YKHO._next_idx = (YKHO._next_idx + 1) % YKHO._capacity",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.replay_buffer.append([QTBn, XeOP, vO... | [
"0.77560866",
"0.76785696",
"0.72983265",
"0.684511",
"0.68351316",
"0.6824877",
"0.6721372",
"0.6699466",
"0.66743344",
"0.6667704",
"0.66306",
"0.6615876",
"0.65554106",
"0.65277845",
"0.6514543",
"0.64194286",
"0.6419416",
"0.640763",
"0.6375637",
"0.6332847",
"0.6304025",... | 0.6817292 | 6 |
Get a Server object to perform OpenID authentication. | def BEVH(QePW):
return NnkB(FyL6(), FEOp(QePW, w2IS)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IxWS(YKHO):\n IfHm = YKHO.get_server_class()\n cots = YKHO.get_validator_class()\n return IfHm(cots(), token_expires_in=sOaq.ACCESS_TOKEN_EXPIRATION)",
"def N5z6(YKHO):\n ihMv = YKHO.app.config.get('OAUTH2_PROVIDER_TOKEN_EXPIRES_IN')\n jVr7 = YKHO.app.config.get('OAUTH2_PROVIDER_TOKEN_GENERATO... | [
"0.71160233",
"0.646662",
"0.6294737",
"0.6046784",
"0.58545995",
"0.5845522",
"0.5821783",
"0.5799322",
"0.57881004",
"0.5558022",
"0.55277944",
"0.54716",
"0.5450539",
"0.54219204",
"0.54199255",
"0.53839576",
"0.5380627",
"0.53803277",
"0.53803277",
"0.5353777",
"0.5330513... | 0.7269823 | 0 |
Get an openid request from the session, if any. | def RcaE(QePW):
return QePW.session.get('openid_request') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N0q9(YKHO, *d7pR, **LwG6):\n return YKHO.request_session.request(*d7pR, **LwG6)",
"def ytXY(YKHO):\n if not hasattr(YKHO, '_request_session'):\n Slew = YKHO.shared_vars.pop('rqsid', '')\n jBuw = YKHO.request_session_manager.pop_request_session(Slew)\n if not jBuw:\n if Y... | [
"0.6442676",
"0.63404447",
"0.63169587",
"0.6301979",
"0.62605435",
"0.62605435",
"0.621756",
"0.60975814",
"0.6068422",
"0.6052874",
"0.6043776",
"0.6005419",
"0.59721625",
"0.5971672",
"0.59678847",
"0.5967356",
"0.5950531",
"0.59373575",
"0.58636814",
"0.5839714",
"0.58035... | 0.7254437 | 0 |
Split dataframe in half by drifters. | def xv3n():
jQ3Z = Rccq()
A07C = oyIN.unique(jQ3Z.index.get_level_values(level=0))
xlLU = oyIN.random.default_rng(seed=1)
bLrt = oyIN.sort(xlLU.choice(A07C, size=len(A07C) // 2, replace=False))
HrkN = oyIN.sort(oyIN.setdiff1d(A07C, bLrt))
x4W3 = jQ3Z[jQ3Z.index.get_level_values(level=0).isin(bLr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C6uO(slice):\n slice = wjGx(slice)\n slice['Date'] = rLdf.to_datetime(slice['Date'])\n AlVb = ['Date', 'Label', 'Text Extract', 'Processed']\n slice = slice[AlVb]\n J_vj = slice['Date'].max()\n mFQo = slice['Date'].min()\n NikU = mFQo + (J_vj - mFQo) // 2\n dPmj = slice[slice['Date'] > ... | [
"0.7023574",
"0.6993554",
"0.6990156",
"0.6822474",
"0.6762066",
"0.6669045",
"0.66426045",
"0.66318053",
"0.6470719",
"0.6401817",
"0.6371597",
"0.6366472",
"0.6351574",
"0.6311583",
"0.6243279",
"0.62074",
"0.616344",
"0.6156157",
"0.6143206",
"0.61354506",
"0.6113867",
"... | 0.67686856 | 4 |
Generate rolling windows of data. | def w_5H(EcVT, TVTK, BPJz):
U5bT = []
exwG = EcVT.shape[0]
for YRbF in range(exwG - TVTK + 1 - BPJz):
KnxT = EcVT[YRbF:YRbF + TVTK, :]
U5bT.append([tuple(WKvO) for WKvO in KnxT[:]])
return oyIN.array(U5bT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def knKl(jzdc, KnxT):\n if KnxT > jzdc.shape[0]:\n raise ValueError('Specified `window` length of {0} exceeds length of `a`, {1}.'.format(KnxT, jzdc.shape[0]))\n if isinstance(jzdc, (rLdf.Series, rLdf.DataFrame)):\n jzdc = jzdc.values\n if jzdc.ndim == 1:\n jzdc = jzdc.reshape(-1, 1)\... | [
"0.71918565",
"0.70031863",
"0.6970743",
"0.6831108",
"0.6812186",
"0.6783765",
"0.67305446",
"0.6666456",
"0.65978324",
"0.64609146",
"0.6452989",
"0.6430759",
"0.63927996",
"0.63502514",
"0.63501185",
"0.6286638",
"0.6257188",
"0.6212885",
"0.62062985",
"0.6178038",
"0.6152... | 0.6158828 | 20 |
Split windowed data into separate inputs for each feature. | def Gk5m(me1n, zmQ1, BPJz):
exwG = me1n.shape[0]
return {f'concept_{YRbF}': me1n[:-1 if BPJz else exwG, :, YRbF] for YRbF in range(zmQ1)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gq95(QpfX, bySB, XfQO=7):\n MA1z = bySB['position'].get_shape().as_list()[0]\n N4KX = MA1z - XfQO + 1\n viYR = {}\n viYR['particle_type'] = ZylS.tile(ZylS.expand_dims(QpfX['particle_type'], axis=0), [N4KX, 1])\n if 'step_context' in bySB:\n Pfi5 = []\n for or8S in range(N4KX):\n ... | [
"0.6697223",
"0.6475389",
"0.64160585",
"0.63944924",
"0.6368413",
"0.6367853",
"0.63276374",
"0.63041466",
"0.62341577",
"0.6208215",
"0.6178964",
"0.60845566",
"0.6021297",
"0.6009604",
"0.60032076",
"0.5974468",
"0.59717387",
"0.5952166",
"0.59230554",
"0.59179825",
"0.590... | 0.60943645 | 11 |