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 the resource corresponding to all the comments. | def Tj1O(YKHO):
return Tj1O.Comments(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qX9M(YKHO):\n return YKHO._client.get_comments(YKHO)",
"def jxrn(YKHO, xDcj=None):\n Tj1O = MzXW.all()\n for aM_I in Tj1O:\n aM_I['_links'] = YKHO.make_links({'self': jY1u.get_self_url(aM_I.doc_id)})\n Ylbp = {'total_queried': len(Tj1O), 'comments': Tj1O, '_links': YKHO.make_links({'self':... | [
"0.6735218",
"0.6725039",
"0.6587293",
"0.6587293",
"0.6587293",
"0.6313756",
"0.6307524",
"0.6307524",
"0.6307524",
"0.6306926",
"0.630429",
"0.62883407",
"0.6280537",
"0.6270549",
"0.6221953",
"0.6193822",
"0.61809343",
"0.6169425",
"0.6132067",
"0.6117559",
"0.61134094",
... | 0.641053 | 5 |
Return the resource corresponding to all of this user's comments. | def Tj1O(YKHO):
return Tj1O.UserComments(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r6ot(NtEF):\n return Jhi6",
"def qX9M(YKHO):\n return YKHO._client.get_comments(YKHO)",
"def _COo(YKHO):\n\n def TKWP(aM_I, rydH):\n if type(aM_I) is dict:\n rydH.add(aM_I['user'].id)\n if aM_I.has_key('responses'):\n [TKWP(Z9rn, rydH) for Z9rn in aM_I['... | [
"0.70850796",
"0.6651653",
"0.65808094",
"0.6452365",
"0.6449989",
"0.6449989",
"0.6449989",
"0.64124626",
"0.6403769",
"0.6390257",
"0.6337211",
"0.6213856",
"0.6193817",
"0.6192557",
"0.6192557",
"0.6192557",
"0.6190133",
"0.6190133",
"0.6187502",
"0.6150996",
"0.61280555",... | 0.7382017 | 0 |
Return the resource corresponding to the YouTube Playlists | def tfH8(YKHO):
return bUZ8.Playlists(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u6Nl(YKHO):\n if YKHO.youtube is None:\n YKHO.youtube = k4Zd()\n return YKHO.youtube.playlists().list(part='snippet', mine=True).execute()",
"def u6Nl(XLMv):\n global parent_folder\n print(f' getting playlists for section: {XLMv['title']}')\n Z9JV = kqu4(XLMv['link'])\n if Z9JV is N... | [
"0.6754862",
"0.6697045",
"0.6623662",
"0.65069294",
"0.646077",
"0.646035",
"0.61430085",
"0.6042112",
"0.60321444",
"0.60097325",
"0.5990431",
"0.5983874",
"0.59558606",
"0.5937219",
"0.5932054",
"0.59086484",
"0.5908195",
"0.5899041",
"0.58758587",
"0.5839282",
"0.5834208"... | 0.6632622 | 2 |
Return the resource corresponding to the YouTube Subscriptions | def eSe8(YKHO):
return bUZ8.Subscriptions(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Iew(YKHO):\n geh0 = G4JS.get('https://www.googleapis.com/youtube/v3/subscriptions', params={'part': 'snippet', 'mine': 'true', 'forChannelId': YKHO.channel_id}, headers=YKHO.headers)\n if geh0.status_code == 200:\n return geh0.json()\n return {}",
"def nxRy(YKHO):\n return YKHO.request({'... | [
"0.79645103",
"0.7069119",
"0.6598874",
"0.6476571",
"0.6470104",
"0.6287942",
"0.6284973",
"0.62670606",
"0.62295264",
"0.62210214",
"0.61988777",
"0.6154147",
"0.6135554",
"0.6106043",
"0.6106043",
"0.6031797",
"0.60022885",
"0.6000031",
"0.5960165",
"0.5930125",
"0.5912645... | 0.6149269 | 12 |
Returns a collection of categories that can be associated with YouTube videos. | def NMoC(YKHO, Q7me, id=None, sPdQ=None, XSBh=None):
NArs = P8oC.get_params(None, locals())
QePW = Xqgu.Request('GET', YKHO.get_url(), NArs)
return (QePW, gpan.parse_json) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWzS(YKHO):\n return bUZ8.VideoCategories(YKHO)",
"def LeZt(YKHO):\n h50c = YKHO.game_categories.all()\n return [gigf.category for gigf in h50c]",
"def LQuW():\n C4ft = 'http://www.watchonlinemovies.com.pk'\n Mkmy = G4JS.get(C4ft, headers=A38p)\n if Mkmy.url != C4ft:\n C4ft = Mkmy.... | [
"0.79530084",
"0.67595774",
"0.6713365",
"0.6540915",
"0.6496266",
"0.6441612",
"0.64391786",
"0.6358694",
"0.63561547",
"0.6334929",
"0.62823737",
"0.62817943",
"0.62730896",
"0.6254678",
"0.6249304",
"0.6225428",
"0.6218096",
"0.62041676",
"0.62024724",
"0.61943537",
"0.616... | 0.0 | -1 |
Returns subscription resources that match the API request criteria. | def NMoC(YKHO, Q7me, id=None, j47j=None, MxAv=None, B7tj=None, NM2x=None, T4Wy=None, EC5i=None):
NArs = P8oC.get_params(None, locals())
QePW = Xqgu.Request('GET', YKHO.get_url(), NArs)
return (QePW, gpan.parse_json) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VOru(YKHO):\n bD7m = '{}/v2/subscriptions'.format(YKHO.url)\n Mkmy = G4JS.get(bD7m, headers=YKHO.headers_v2)\n return Mkmy.json()",
"def rDYv(YKHO):\n return YKHO.__GetJson('/subscriptions', True)",
"def XU4s(YKHO):\n return YKHO.request('getAllSubscriptions')",
"def VOru(YKHO):\n retur... | [
"0.73445415",
"0.7118463",
"0.7062832",
"0.7013306",
"0.69856024",
"0.69256896",
"0.6823033",
"0.6807029",
"0.67277104",
"0.6647062",
"0.6628444",
"0.6578449",
"0.65667546",
"0.65571445",
"0.6549804",
"0.6480854",
"0.6469625",
"0.64272916",
"0.63716",
"0.63703364",
"0.6359951... | 0.0 | -1 |
Returns a list of categories that can be associated with YouTube videos. | def NMoC(YKHO, Q7me, id=None, sPdQ=None, XSBh=None):
NArs = P8oC.get_params(None, locals())
QePW = Xqgu.Request('GET', YKHO.get_url(), NArs)
return (QePW, gpan.parse_json) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWzS(YKHO):\n return bUZ8.VideoCategories(YKHO)",
"def LQuW():\n C4ft = 'http://www.watchonlinemovies.com.pk'\n Mkmy = G4JS.get(C4ft, headers=A38p)\n if Mkmy.url != C4ft:\n C4ft = Mkmy.url\n DumB = {'ARecently Uploaded Movies': C4ft, 'B2018 Movies': C4ft + 'category/indian-movies/2018-f... | [
"0.78526914",
"0.68738294",
"0.6737075",
"0.67035896",
"0.6636226",
"0.6524073",
"0.644248",
"0.64121985",
"0.6400719",
"0.6364837",
"0.63543475",
"0.6301363",
"0.62861824",
"0.6266739",
"0.6247231",
"0.62418324",
"0.62268776",
"0.61963785",
"0.6189354",
"0.61885417",
"0.6168... | 0.0 | -1 |
Fetch tickets where this user is CC'd. | def Nn0p(YKHO, B2Dn=None, USOo=None):
bD7m = '{0}/tickets/{1}'.format(YKHO.get_url(), 'ccd')
NArs = P8oC.get_params(('page', 'per_page'), locals())
return (Xqgu.Request('GET', bD7m, NArs), gpan.parse_json) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n CBIr = YKHO.request.user\n return GIX6.objects.filter(owner=CBIr)",
"def t1hT(YKHO, CBIr=None):\n return YKHO.filter(T8ck(cargo__recepient=CBIr) | T8ck(cargo__sender=CBIr))",
"def BJmk(YwkQ, uJjO):\n return f3Cv.get_user_valid_cheques(uJjO)",
"def k66M(YKHO):\n CBIr = YKHO.re... | [
"0.5682697",
"0.56496537",
"0.5647105",
"0.55938566",
"0.5494229",
"0.5424158",
"0.539869",
"0.53902",
"0.53715104",
"0.532084",
"0.5280117",
"0.52714515",
"0.52681667",
"0.5245622",
"0.52302974",
"0.5167618",
"0.51446545",
"0.5133098",
"0.51089305",
"0.50959206",
"0.5077349"... | 0.5323581 | 9 |
Fetch ratings provided by customers. | def CGbw(YKHO, B2Dn=None, USOo=None, s1HA=None):
bD7m = '{0}/{1}'.format(YKHO.get_url(), 'received')
NArs = P8oC.get_params(('page', 'per_page', 'sort_order'), locals())
return (Xqgu.Request('GET', bD7m, NArs), gpan.parse_json) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SxwO(YKHO, di0Y):\n ugMh = YKHO.__get_customers(di0Y).collect()\n return ugMh",
"def q_T8(YKHO):\n return YKHO.ratings",
"def q_T8(YKHO):\n return YKHO.ratings",
"def e4x7(uJjO):\n return ygsU(f'SELECT item_id, rating_type FROM ratings WHERE user_id = {uJjO}')",
"def jxrn(YKHO, di0Y, xDc... | [
"0.6473273",
"0.64632213",
"0.64632213",
"0.6195762",
"0.619169",
"0.60768425",
"0.6002465",
"0.5927671",
"0.5916712",
"0.5916712",
"0.587501",
"0.5850623",
"0.5846458",
"0.5821022",
"0.58031505",
"0.5802162",
"0.57631135",
"0.57128286",
"0.5709364",
"0.5646398",
"0.5624069",... | 0.0 | -1 |
Returns the ticket count for a single view. | def UHFx(YKHO):
bD7m = '{0}/{1}'.format(YKHO.get_url(), 'count')
return (Xqgu.Request('GET', bD7m), gpan.parse_json) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tiuk(YKHO) -> int:\n ...",
"def ocYh(YKHO):\n _ins = YKHO.cur.execute('SELECT CAST(SUM(view_count) AS DECIMAL(10, 0)) FROM videos')\n UHFx = YKHO.cur.fetchone()[0]\n return UHFx",
"def _W95(YKHO):\n YKHO.count_views += 1\n YKHO.save(update_fields=['count_views'])",
"def zgs0(QePW, C3ST)... | [
"0.6837477",
"0.65789443",
"0.65467197",
"0.62692124",
"0.6162044",
"0.6107379",
"0.6087425",
"0.60828656",
"0.60357815",
"0.60284144",
"0.5927084",
"0.59164405",
"0.5887451",
"0.5871777",
"0.5871777",
"0.5857377",
"0.57901645",
"0.57864004",
"0.5785058",
"0.5782175",
"0.5773... | 0.5690087 | 28 |
Return the resource corresponding to a single user. If `user_id` is `None` the returned resource is the currently authenticated user, otherwise it is the user with the given ID number. | def CBIr(YKHO, uJjO=None):
if uJjO is None:
return JKCy.CurrentUser(YKHO)
return JKCy.User(YKHO, uJjO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBIr(YKHO, uJjO):\n return JKCy.User(YKHO, uJjO)",
"def NMoC(YKHO, uJjO):\n CBIr = Tv2r(public_id=uJjO).get_an_item()\n if not CBIr:\n nNXP.abort(404)\n else:\n return CBIr",
"def NMoC(YKHO, uJjO):\n return mv1M.get(uJjO)",
"def TKWP(YKHO, uJjO=None):\n raise NotImplemente... | [
"0.80638885",
"0.79123026",
"0.78612626",
"0.7841557",
"0.78327763",
"0.77799094",
"0.7679593",
"0.76716787",
"0.7644515",
"0.7644241",
"0.7606206",
"0.75912315",
"0.75811857",
"0.7577359",
"0.7568213",
"0.7556357",
"0.7528745",
"0.75075066",
"0.7495682",
"0.7474496",
"0.7468... | 0.8231574 | 0 |
Update the game board content, called by game event engine. Registered at `SelectDeckLayer.on_start_game`. | def eL9D(YKHO, mwed, i7ps):
YKHO._sm.clear_frontend()
for Jqc7 in YKHO.all_entity_sprites():
if Jqc7 is not None:
Jqc7.update_status_border()
YKHO.schedule(YKHO.update_content_after_animations) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MXFK(YKHO):\n YKHO.update_board()",
"def iXC1(YKHO):\n if not YKHO.gameOver:\n Vjhr.fill(iAXl)\n YKHO.board.drawBoard()\n YKHO.handleEvents()\n for mrj1 in YKHO.board.pieces.values():\n mrj1.update()\n else:\n YKHO.resetGame()\n a9eO.display.update()"... | [
"0.7663053",
"0.72211796",
"0.713308",
"0.699417",
"0.6502369",
"0.64226234",
"0.6406697",
"0.6383633",
"0.63578284",
"0.6259676",
"0.62383544",
"0.6213443",
"0.61591786",
"0.61179775",
"0.60913104",
"0.6090441",
"0.6085328",
"0.6085168",
"0.607487",
"0.6033798",
"0.6028166",... | 0.0 | -1 |
r"""Converts an image to an array of patches. | def lN81(VXjJ, ufJO, _0fC=1):
G1Hx = 0
SGDi = VXjJ.shape[0]
BKPO = VXjJ.shape[1]
D3jo = VXjJ.shape[2]
if BKPO < ufJO or D3jo < ufJO:
return oyIN.zeros([SGDi, ufJO, ufJO, 0])
Po4F = VXjJ[:, 0:BKPO - ufJO + 0 + 1:_0fC, 0:D3jo - ufJO + 0 + 1:_0fC]
WFAB = Po4F.shape[1] * Po4F.shape[2]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Euoq(VXjJ, FTrt):\n assert len(VXjJ.shape) == 3 and VXjJ.shape[-1] == 3\n H2v2, TVTK, YDR7 = VXjJ.shape\n W0Eb = R5Ot(H2v2, TVTK, FTrt)\n ohfT = []\n for tlxW, LFlW in W0Eb:\n ohfT.append(VXjJ[tlxW:tlxW + FTrt, LFlW:LFlW + FTrt])\n return oyIN.array(ohfT).astype('uint8')",
"def HFX6(... | [
"0.7854776",
"0.75616324",
"0.7549491",
"0.72703636",
"0.70486134",
"0.70028967",
"0.6958456",
"0.6909938",
"0.68323326",
"0.675181",
"0.67363024",
"0.67051655",
"0.656339",
"0.656175",
"0.6521076",
"0.65112495",
"0.6466662",
"0.6460362",
"0.6389225",
"0.6251025",
"0.61952174... | 0.6843423 | 8 |
Welcome message for the API. | def Rn9e():
Ol8d = {'apiVersion': 'v1.0', 'status': '200', 'message': 'Flask API - Doubtnut - OPENCV'}
_hkX = pz3A(Ol8d)
return _hkX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uthR():\n return 'Welcome to API Deployment'",
"def uthR():\n return f'Welcome to the climate Analysis API!<br/>Here are available API routes:<br/>/api/v1.0/precipitation<br/>/api/v1.0/stations<br/>/api/v1.0/tobs<br/>/api/v1.0/<start><br/>/api/v1.0/<start>/<end>'",
"def uthR():\n return f'Welcome ... | [
"0.8442242",
"0.8009187",
"0.79936653",
"0.7917552",
"0.7655814",
"0.7635997",
"0.7543247",
"0.75141686",
"0.74537206",
"0.7429971",
"0.73989016",
"0.73761165",
"0.73628753",
"0.73622763",
"0.73504317",
"0.7325423",
"0.73133004",
"0.73133004",
"0.729659",
"0.729072",
"0.72843... | 0.0 | -1 |
Test trying to load array data from JSON file. | def Fbxx(ZqHk: Path) -> None:
IznC = ZqHk / 'test5.json'
with open(IznC, 'w', encoding='utf8') as nVrR:
nVrR.write('[{"a": 1, "B": "two"}]')
assert lc9H(IznC) == [{'a': 1, 'B': 'two'}]
assert Ub6t(IznC) == [{'a': 1, 'B': 'two'}]
with trZe.raises(xDmq, match='Expected JSON to be parsed as a d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fCI2(YKHO):\n from test.resources import array_json\n YKHO.assertEqual(array_json._data, [1, 2, 3])\n YKHO.assertEqual(len(array_json), 3)\n YKHO.assertEqual(array_json[0], 1)",
"def _imc(YKHO):\n YKHO.assertEqual(len(YKHO.loaded_json_list), 620042)",
"def lESt():\n gIsw = 'test_fooof_all... | [
"0.89673525",
"0.81199336",
"0.7778483",
"0.76964587",
"0.7553491",
"0.75039333",
"0.7399689",
"0.7389728",
"0.7315527",
"0.7248975",
"0.71876556",
"0.71876556",
"0.71196544",
"0.70354867",
"0.7023173",
"0.7020684",
"0.7019821",
"0.7003741",
"0.70018315",
"0.68066037",
"0.677... | 0.8258165 | 1 |
Test json_loads_object validates result. | def bI9p() -> None:
assert mzKx('{"c":1.2}') == {'c': 1.2}
with trZe.raises(ValueError, match="Expected JSON to be parsed as a dict got <class 'list'>"):
mzKx('[]')
with trZe.raises(ValueError, match="Expected JSON to be parsed as a dict got <class 'bool'>"):
mzKx('true')
with trZe.raise... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JUss(YKHO):\n r9uX = jbJm(keys=['status', 'result'])\n r845 = qQXR.loads('{\"status\": \"success\", \"resultd\": \"yes\"}')\n YKHO.assertFalse(Y5E6(r845, r9uX))",
"def pvW5(YKHO):\n r9uX = jbJm(keys=['status', 'result'])\n r845 = qQXR.loads('{\"status\": \"success\", \"result\": \"yes\"}')\n ... | [
"0.7466225",
"0.7436751",
"0.7261869",
"0.7108797",
"0.707524",
"0.7068392",
"0.7052709",
"0.69498384",
"0.6922862",
"0.68458074",
"0.679536",
"0.6768142",
"0.674017",
"0.6738646",
"0.66757935",
"0.66757935",
"0.66631764",
"0.66617775",
"0.66461724",
"0.65988183",
"0.6568571"... | 0.8140474 | 1 |
Sanitises data to a numpy matrix of fixed shape, and ensures it has at most 2 axes. | def ca3I(nPrm):
qw7D = oyIN.array(nPrm)
if qw7D.ndim == 0:
qw7D = qw7D[oyIN.newaxis, oyIN.newaxis]
elif qw7D.ndim == 1:
qw7D = qw7D[:, oyIN.newaxis]
elif qw7D.ndim != 2:
raise ValueError(f'Only 1/2 dimensional data can be saved to text files, data.shape = {qw7D.shape}')
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mA6a(EcVT):\n if len(EcVT.shape) == 1:\n EcVT = oyIN.reshape(EcVT, (-1, EcVT.shape[0]))\n return EcVT",
"def A5mx(YKHO):\n for nPrm in (YKHO.data_obs, YKHO.data_fcst):\n BLg0 = nPrm.shape\n if len(BLg0) == 2:\n pass\n elif len(BLg0) == 3:\n if BLg0[0... | [
"0.71771",
"0.71079373",
"0.6615282",
"0.6384039",
"0.61972165",
"0.6155169",
"0.6080135",
"0.60708475",
"0.60477996",
"0.5951343",
"0.5947953",
"0.5896574",
"0.5869475",
"0.58553904",
"0.5839236",
"0.58330786",
"0.58031565",
"0.57977146",
"0.5787511",
"0.5755802",
"0.5754680... | 0.67515355 | 2 |
A sampling routine. Given environment and a policy samples one episode and returns states, actions, rewards and dones from environment's step function and policy's sample_action function as lists. | def Canq(sEAN, Qabx):
wspz = []
xASv = []
vwlo = []
nQSc = []
_ins = False
QTBn = sEAN.reset()
while _ins == False:
wspz.append(QTBn)
XeOP = Qabx.sample_action(QTBn)
xASv.append(XeOP)
QTBn, vOGg, _ins, bGrB = sEAN.step(XeOP)
vwlo.append(vOGg)
n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def su1c(Qabx, QTBn):\n JMmE, BJo2 = Qabx.shape\n xlpn = oyIN.arange(BJo2)\n return oyIN.random.choice(xlpn, p=Qabx[QTBn])",
"def S2sP(YKHO, rNYq):\n RKD7.info('Random action')\n bGrB = rNYq\n XeOP = YKHO.env.action_space.sample()\n return XeOP",
"def hXof(sEAN, VYwu, gbXe, j7hk, tzvm=1.0,... | [
"0.69147265",
"0.6641896",
"0.6619065",
"0.6563944",
"0.6479253",
"0.64499104",
"0.63408285",
"0.6337864",
"0.63366675",
"0.6334423",
"0.6330075",
"0.631111",
"0.63043743",
"0.6265704",
"0.6253534",
"0.61865306",
"0.6159716",
"0.6145004",
"0.61104715",
"0.6088625",
"0.6069504... | 0.82025427 | 0 |
A condensed version of the `clients_daily` data. | def qEzO(i1rm):
jQ3Z = i1rm.where("locale in ('en-US', 'de')")
jQ3Z.createOrReplaceTempView('clients_daily')
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def urV_(i1rm):\n jQ3Z = i1rm.where(\"locale = 'en-US'\").withColumn('client_id', shD1('client_id', '_', -1)).where(shD1('client_id', '-', -1).isin([1, 2, 3, 4, 5]))\n jQ3Z.createOrReplaceTempView('clients_daily')\n return jQ3Z",
"def i1rm(iPgu, gGF6):\n AzR4 = []\n for NCqB, O9Ia in gGF6.items():... | [
"0.68820405",
"0.5860383",
"0.58024186",
"0.5754519",
"0.5713662",
"0.5689565",
"0.56336623",
"0.5629968",
"0.5612201",
"0.5523348",
"0.54937387",
"0.5490515",
"0.54843533",
"0.5476792",
"0.5472972",
"0.5454424",
"0.5448323",
"0.5427168",
"0.5407161",
"0.5366059",
"0.5353632"... | 0.60970265 | 1 |
Return if the light is on. | def Debg(YKHO):
return YKHO._brightness != 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def Debg(YKHO):\n return YKHO._light_on",
"def h0Nz(YKHO) -> bool:\n return f34S.Light.value in YKHO.type_data.attributes",
"def h0Nz(YKHO) -> bool:\n return f34S.Light.value in YKHO.type_data.att... | [
"0.9090864",
"0.9000277",
"0.8880072",
"0.7923601",
"0.7923601",
"0.78666836",
"0.78627694",
"0.7827662",
"0.7824029",
"0.7699558",
"0.7693509",
"0.76305723",
"0.7629523",
"0.7629523",
"0.7629523",
"0.76270443",
"0.76050496",
"0.7564038",
"0.7560062",
"0.75537366",
"0.7519818... | 0.81211835 | 3 |
Return the device state attributes. | def R1i3(YKHO):
return {CXUB: YKHO._index} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attrs",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._... | [
"0.93173087",
"0.9245708",
"0.92207897",
"0.92147964",
"0.92147964",
"0.9210798",
"0.9210798",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
... | 0.8423787 | 42 |
Turn off the light. | def Z_rv(YKHO, **B2fa):
YKHO._lj.deactivate_load(YKHO._index) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)",
"def fnTm(YKHO):\n YKHO._light = 'OFF'",
"def fnTm(YKHO):\n YKHO._light = 'OFF'",
"def V8X5(YKHO):\n YKHO.turnOff()",
"def Z_rv(YKHO, **B2fa):\n YKHO._light.set_color(0, 0, 0, 0)",
"def Z_rv(YKHO, **B2fa: Any) -> None:\n YKHO._light.turn... | [
"0.9052932",
"0.88391656",
"0.8812152",
"0.8755596",
"0.87526155",
"0.87362814",
"0.8640198",
"0.8629958",
"0.8588046",
"0.8578178",
"0.8392005",
"0.8388165",
"0.8384779",
"0.83275425",
"0.8298985",
"0.8174446",
"0.81200165",
"0.8115888",
"0.8092821",
"0.8077324",
"0.8018149"... | 0.710131 | 64 |
Check if the given user password is correct when compared to the hash. The hash is gotten from the database. | def DBnx(fZOT: str, qM3Q: str) -> bool:
return NByB.verify(fZOT, qM3Q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gqrr(YKHO, CBIr, jTXt):\n try:\n DpUl = YKHO.conn.cursor()\n ZZDk = YKHO.get_author_by_name(CBIr)\n inK4 = ZZDk['author_id']\n kg40 = sM10(jTXt)\n xDcj = 'SELECT password_id FROM password WHERE password.author_id = ?AND password.password = ? '\n DpUl.execute(xDcj, (... | [
"0.8125063",
"0.7940244",
"0.7915666",
"0.7885574",
"0.78575313",
"0.78059345",
"0.7798117",
"0.77622247",
"0.77281785",
"0.77144974",
"0.7708951",
"0.7701401",
"0.76974505",
"0.76865697",
"0.7660447",
"0.7632825",
"0.7626976",
"0.76176304",
"0.76046985",
"0.7569628",
"0.7569... | 0.7516905 | 28 |
Sum over the rightmost two dimensions of an array of dimension >= 2 | def nIOC(jzdc):
return oyIN.sum(oyIN.sum(jzdc, -1), -1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sWq7(ezWE: List[List[int]]) -> int:\n return sum([sum(nJ_P) for nJ_P in ezWE])",
"def ls4S(ezWE):\n return sum(ezWE)",
"def mkRe(WKvO, qC1Y):\n if qC1Y == 0:\n return WKvO\n MPlV = list(range(-qC1Y, 0))\n return WKvO.sum(MPlV)",
"def VgM8(jzdc, jDK_, UHFx):\n if jzdc.shape[jDK_] ... | [
"0.7523916",
"0.67625",
"0.67602265",
"0.6698008",
"0.65642995",
"0.65124923",
"0.6481741",
"0.6455778",
"0.64475065",
"0.63794875",
"0.63732326",
"0.63718665",
"0.63578904",
"0.6340318",
"0.6216051",
"0.6175985",
"0.6174619",
"0.6088001",
"0.6069331",
"0.6051356",
"0.6051020... | 0.790109 | 0 |
Takes an angular pixel size in arcseconds/pixel ("/pixel) and converts it to meters/pixel or whatever the units of focal length is. | def S8wF(dja2, DDOk):
hrJK = 206265 / DDOk
JEhi = dja2 * (1 / hrJK)
return JEhi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A5xF(zNig):\n return zNig / 2.54",
"def A5xF(zNig):\n return zNig / 2.54",
"def A5xF(zNig):\n return zNig / 2.54",
"def j5JF(JiMj):\n return JiMj / 25.4",
"def HTGA():\n return 1 / G_Pv()",
"def zrUK(r1VO):\n return int(float(r1VO) * 1609.34)",
"def NudO(Y7KK: float, JiMj: float) ... | [
"0.6734346",
"0.6734346",
"0.6734346",
"0.66692674",
"0.6224799",
"0.61458594",
"0.6138592",
"0.60364604",
"0.5954309",
"0.593193",
"0.5902105",
"0.58950925",
"0.5852452",
"0.58499926",
"0.58343464",
"0.583265",
"0.57690644",
"0.5767215",
"0.5729263",
"0.5720367",
"0.57019436... | 0.6925902 | 0 |
Excel row/colum style for excel | def Trs_():
_Cnz = GpzP.XFStyle()
gFxg = GpzP.Borders()
gFxg.bottom = gFxg.top = gFxg.left = gFxg.right = GpzP.Borders.THIN
gFxg.top = GpzP.Borders.THIN
_Cnz.borders = gFxg
_Cnz.pattern.pattern = 26
_Cnz.pattern.pattern_fore_colour = 22
_Cnz.protection.cell_locked = False
_Cnz.protec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mHvB(rdlD, fvDH):\n vPob, wXAI = divmod(ord(fvDH) - ord('A'), 26)\n return (chr(vPob - 1 + ord('A')) if vPob else '') + (chr(wXAI + ord('A')) + str(rdlD))",
"def HmKe(YKHO):\n hFFO = GpzP.Workbook()\n gFxg = nN5C()\n eSSr = nN5C()\n eSSr.left, eSSr.right, eSSr.top, eSSr.bottom = (nN5C.THIN,... | [
"0.72301614",
"0.7046897",
"0.6691636",
"0.6624054",
"0.62313724",
"0.61537844",
"0.60798424",
"0.60307777",
"0.5997343",
"0.59934",
"0.5973019",
"0.59477186",
"0.5922355",
"0.58758396",
"0.58657336",
"0.5839537",
"0.57668066",
"0.57346296",
"0.5619365",
"0.56127036",
"0.5601... | 0.63192767 | 4 |
Returns all objects from collection. | def all(YKHO) -> tDV1:
YKHO.cursor = YKHO.collection.find()
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pi1E(xUwc):\n nPrm = []\n for ZfUD in xUwc.find({}):\n nPrm.append(ZfUD)\n return nPrm",
"def all(YKHO):\n return YKHO.__objects",
"def all(YKHO):\n return YKHO.__objects",
"def all(YKHO):\n return YKHO.__objects",
"def all(YKHO):\n return YKHO.__objects",
"def all(YKHO):\... | [
"0.7990171",
"0.7843609",
"0.7843609",
"0.7843609",
"0.7843609",
"0.7843609",
"0.7843609",
"0.77008",
"0.7686561",
"0.74988216",
"0.7494295",
"0.74571806",
"0.7433366",
"0.7286414",
"0.7271335",
"0.71830356",
"0.7182171",
"0.71772283",
"0.7159048",
"0.7146208",
"0.70792997",
... | 0.7014782 | 23 |
Returns number of documents in a collection. | async def count(YKHO, *, qJWj: t.Mapping[str, t.Any]=None, qoqK: int=None, vgXP: int=None) -> int:
dDGN = {}
if qoqK:
dDGN['limit'] = qoqK
if vgXP:
dDGN['offset'] = vgXP
return await YKHO.collection.count_documents(filter=qJWj or {}, **dDGN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JIEM(YKHO, zk5o):\n UHFx = zk5o.find().count()\n return UHFx",
"def WPSX(YKHO):\n return YKHO.index.collection.count()",
"def DUZc(YKHO):\n UzPC = YKHO.__get_database_connection()\n geh0 = YKHO.__make_request(UzPC, '/%s' % YKHO.database_name)\n return geh0.get('doc_count', 0)",
"def G61... | [
"0.8042569",
"0.7735632",
"0.7336015",
"0.7248509",
"0.72162277",
"0.70503086",
"0.69550437",
"0.6950146",
"0.6943056",
"0.6916497",
"0.68519145",
"0.6783466",
"0.67821157",
"0.6759907",
"0.66268",
"0.6603032",
"0.6583171",
"0.6540785",
"0.6527973",
"0.6500622",
"0.6463433",
... | 0.68944484 | 10 |
Moves the mongodb cursor to defined offset value. | def vgXP(YKHO, vgXP: int) -> tDV1:
YKHO.cursor = YKHO.cursor.skip(vgXP)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vgXP(YKHO, vgXP: int) -> 'Query':\n YKHO.offset_index = max(0, vgXP)\n return YKHO",
"def vgXP(YKHO, vgXP):\n YKHO._offset += vgXP",
"def Ns7W(YKHO, vgXP):\n oeNL = max(YKHO.GetCurrentPos() + vgXP, 0)\n oeNL = min(oeNL, YKHO.GetLength())\n YKHO.GotoPos(oeNL)\n YKHO.ChooseCaretX()",
"... | [
"0.6661199",
"0.6581992",
"0.6327135",
"0.62868166",
"0.62843686",
"0.62808806",
"0.6229022",
"0.620047",
"0.620047",
"0.61549455",
"0.60947615",
"0.60947615",
"0.60947615",
"0.60667515",
"0.59504426",
"0.59477156",
"0.5947141",
"0.5908491",
"0.57469136",
"0.5740447",
"0.5720... | 0.7315865 | 0 |
Limits the documents in the cursor to defined limit value. | def qoqK(YKHO, qoqK: int) -> tDV1:
YKHO.cursor = YKHO.cursor.limit(qoqK)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qoqK(YKHO, qoqK):\n M3FU = TN0U(YKHO.session, YKHO.cls, YKHO.ming_cursor.limit(qoqK))\n HybA(YKHO, 'cursor_created', M3FU, 'limit', YKHO, qoqK)\n return M3FU",
"def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK",
"def qoqK(YKHO, qoqK):\n raise NotImplementedError('This should have been implemented.... | [
"0.8076397",
"0.74416834",
"0.73314196",
"0.73248935",
"0.73248935",
"0.73248935",
"0.7260591",
"0.72338104",
"0.72052693",
"0.71998924",
"0.7145041",
"0.7123546",
"0.70018935",
"0.68956673",
"0.6888152",
"0.687591",
"0.68410194",
"0.67575103",
"0.66824925",
"0.66513735",
"0.... | 0.7708748 | 1 |
Set cells in obstacle grid to be empty Reset zombie and human lists to be empty | def Y7Bk(YKHO):
XYBu.Grid.clear(YKHO)
YKHO._zombie_list = []
YKHO._human_list = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LM9n(YKHO):\n YKHO.obstacles = oyIN.array([])",
"def Y7Bk(YKHO):\n XYBu.Grid.clear(YKHO)\n YKHO._zombie_list = []\n YKHO._human_list = []",
"def SiRx(YKHO):\n YKHO._cells = [[0 for L9B9 in range(YKHO._grid_width)] for Uabx in range(YKHO._grid_height)]\n YKHO.new_tile()\n YKHO.new_tile(... | [
"0.7903046",
"0.77138525",
"0.77031183",
"0.76965207",
"0.76223475",
"0.76102734",
"0.7586986",
"0.74917936",
"0.7486784",
"0.74409497",
"0.7411356",
"0.7393945",
"0.7387012",
"0.73719716",
"0.73582643",
"0.7325802",
"0.72839963",
"0.72313416",
"0.72108424",
"0.7210384",
"0.7... | 0.77405584 | 1 |
Add zombie to the zombie list | def PooL(YKHO, rdlD, fvDH):
YKHO._zombie_list.append((rdlD, fvDH)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PooL(YKHO, LEXu):\n if LEXu not in YKHO._entities['all']:\n YKHO._entities['all'].append(LEXu)\n YKHO._entities['zombies'].append(LEXu)\n YKHO._entities[LEXu._team]['zombies'].append(LEXu)\n LEXu.set_id(YKHO._entities[LEXu._team]['id'])\n YKHO._entities[LEXu._team]['id'] += 1",
"def Poo... | [
"0.8145755",
"0.7627476",
"0.7598467",
"0.59433466",
"0.5911907",
"0.58728415",
"0.58334374",
"0.5747301",
"0.5735042",
"0.5729783",
"0.5714266",
"0.56813896",
"0.56762284",
"0.5671887",
"0.5589427",
"0.5577833",
"0.5557215",
"0.5556951",
"0.553771",
"0.55231005",
"0.55041355... | 0.7579104 | 3 |
Returns the filtered queryset based on the value provided in the query string and retrievable via `self.value()`. | def SR0I(YKHO, QePW, SR0I):
if YKHO.value() == 'p':
return SR0I.filter(pointe=True)
if YKHO.value() == 'rapp':
return SR0I.filter(rapp__isnull=False)
if YKHO.value() == 'rien':
return SR0I.filter(rapp__isnull=True, pointe=False)
if YKHO.value() == 'pr':
return SR0I.exclud... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n return SR0I.all()\n return SR0I.filter(firm__pk=YKHO.value())",
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value():\n return SR0I.filter(state_pol=YKHO.value())",
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n retu... | [
"0.7539923",
"0.7419924",
"0.7245252",
"0.72038484",
"0.70902455",
"0.70488775",
"0.6975942",
"0.67827517",
"0.6762181",
"0.67344034",
"0.6681628",
"0.66560334",
"0.6588891",
"0.6470637",
"0.64161074",
"0.64019424",
"0.6383527",
"0.6369606",
"0.63506347",
"0.63492984",
"0.627... | 0.5848898 | 71 |
Returns the filtered queryset based on the value provided in the query string and retrievable via `self.value()`. | def SR0I(YKHO, QePW, SR0I):
if YKHO.value() == '1':
return SR0I.exclude(moyen_id=24)
if YKHO.value() == '0':
return SR0I.filter(moyen_id=24) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n return SR0I.all()\n return SR0I.filter(firm__pk=YKHO.value())",
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value():\n return SR0I.filter(state_pol=YKHO.value())",
"def SR0I(YKHO, QePW, SR0I):\n if YKHO.value() is None:\n retu... | [
"0.7539923",
"0.7419924",
"0.7245252",
"0.72038484",
"0.70902455",
"0.70488775",
"0.6975942",
"0.67827517",
"0.6762181",
"0.67344034",
"0.6681628",
"0.66560334",
"0.6588891",
"0.64161074",
"0.64019424",
"0.6383527",
"0.6369606",
"0.63506347",
"0.63492984",
"0.62763286",
"0.62... | 0.6470637 | 13 |
Replace the month in integer with String code | def Lo2v(QBPu: DataFrame) -> list:
sp3M = []
for d6pt, rdlD in QBPu.iterrows():
sp3M.append(X_bn[rdlD['mon'] - 1])
return sp3M | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kpxX(Emd4, lO87: typing.Union[int, str], x0eS: typing.Union[int, str]) -> str:\n _fR_: str\n if isinstance(lO87, int):\n _fR_ = str(lO87)\n else:\n _fR_ = lO87\n dG5d: str\n if isinstance(x0eS, int):\n dG5d = str(x0eS)\n else:\n dG5d = x0eS\n if len(dG5d) == 1:\... | [
"0.70956534",
"0.7087181",
"0.6967834",
"0.6792782",
"0.674902",
"0.67312735",
"0.6610879",
"0.6604569",
"0.6587096",
"0.65789783",
"0.6534974",
"0.65188295",
"0.64927775",
"0.642898",
"0.636451",
"0.6344429",
"0.630933",
"0.6284827",
"0.6283563",
"0.6262319",
"0.6252343",
... | 0.0 | -1 |
this function will create a ployly graph with buttons, to show the average monthly spending and last years' | def e5vt(lO87: int):
TQUV = {'key': 'category', 'operation': '!=', 'value': 16}
zRT4 = gh2c().get_average_monthly_spending_amount(condition_dict=TQUV)
knjO = gh2c().get_monthly_total_spending_of_a_year(lO87, include_doctor=False)
dHYv = rLdf.DataFrame(zRT4, columns=['avg', 'mon'])
rMfL = rLdf.DataFr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lxCM():\n jQ3Z = _aXU[~_aXU.category.isin(['general', 'transfer'])].pivot_table('amount', 'month', 'category', aggfunc='sum', fill_value=0).reset_index().melt(id_vars=['month'], value_name='amount')\n jZ6p = jQ3Z[jQ3Z.category.eq('income')]\n Oa1e = jQ3Z.groupby('month')\n LZpg = Xlvp.bar(jQ3Z[~jQ3... | [
"0.67285436",
"0.6484247",
"0.6418406",
"0.628061",
"0.6259569",
"0.60250574",
"0.59973586",
"0.59255695",
"0.5883959",
"0.58687085",
"0.584124",
"0.58407044",
"0.5813536",
"0.5785619",
"0.5781299",
"0.57138664",
"0.57034945",
"0.56852907",
"0.56799436",
"0.56153363",
"0.5613... | 0.7362779 | 0 |
This function will create a interactive graph of monthly utility amount The total spending will be displayed as bar chart, and each category of utility will be displayed as scatter | def NrPj(lO87: int):
tpYD = qZuN().get_category_id_by_name('Utility')
O5UL = gh2c().get_specific_category_monthly_spending(lO87, [tpYD])
fuqy = gh2c().get_sub_category_monthly_spending_of_a_category(lO87, [tpYD])
YebZ = rLdf.DataFrame(O5UL, columns=['sum', 'mon'])
wLqY = rLdf.DataFrame(fuqy, columns... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lxCM():\n jQ3Z = _aXU[~_aXU.category.isin(['general', 'transfer'])].pivot_table('amount', 'month', 'category', aggfunc='sum', fill_value=0).reset_index().melt(id_vars=['month'], value_name='amount')\n jZ6p = jQ3Z[jQ3Z.category.eq('income')]\n Oa1e = jQ3Z.groupby('month')\n LZpg = Xlvp.bar(jQ3Z[~jQ3... | [
"0.74418813",
"0.6877958",
"0.65640676",
"0.6301336",
"0.6221581",
"0.614772",
"0.6125227",
"0.5975157",
"0.5951633",
"0.5940316",
"0.5939569",
"0.58743334",
"0.5867813",
"0.5858301",
"0.58566684",
"0.5782786",
"0.5782677",
"0.5755141",
"0.57481027",
"0.574579",
"0.5743694",
... | 0.6956549 | 1 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(geh0):
geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
geh0.headers['Cache-Control'] = 'public, max-age=0'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.8222435",
"0.82216024",
"0.82216024",
"0.82216024",
"0.82216024",
"0.81946385",
"0.8111404",
"0.80855757",
"0.7971387",
"0.78645533",
"0.76601756",
"0.7236063",
"0.715884",
"0.71517485",
"0.71517485",
"0.714975",
"0.714975",
"0.7140646",
"0.71359515",
"0.71272135",
"0.7127... | 0.816232 | 22 |
Pytest fixture which injects a django rest framework client instance. | def d4y1() -> iJSR:
return iJSR() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.client = nNXP.Client(GPtr.get_config(), nNXP.json_handler)",
"def FCbF(YKHO):\n YKHO.client = i9zE()",
"def FCbF(YKHO):\n YKHO.client = i9zE()",
"def FCbF(YKHO):\n YKHO.client = i9zE()",
"def FCbF(YKHO):\n YKHO.client = i9zE()",
"def FCbF(YKHO):\n super().setUp()\... | [
"0.7319412",
"0.70755637",
"0.70755637",
"0.70755637",
"0.70755637",
"0.7059814",
"0.7027466",
"0.7027466",
"0.68769187",
"0.6871533",
"0.6871533",
"0.6871533",
"0.6773114",
"0.67475015",
"0.6723367",
"0.6721506",
"0.66742784",
"0.66474265",
"0.6621592",
"0.6569413",
"0.65502... | 0.0 | -1 |
Generates entries from each of the provided Greenbutton data files. | def Yr6r(YKHO, RRlC):
VECZ = []
for eHNT in RRlC:
J_Es = ukcD.parse(eHNT)
tk5Y = J_Es.getroot()
VECZ = tk5Y.findall(dJ1p['entry'])
for bTKY in VECZ:
yield bTKY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zDiL(YKHO, RRlC):\n or8S = 0\n for Ux0P in RRlC:\n with open(Ux0P) as nUeQ:\n for zFiD in nUeQ:\n yield (or8S, {'text': zFiD})\n or8S += 1",
"def dHHF():\n USlW = 10000\n eAYh = 100\n UX7M('hg38.fa', USlW, eAYh, 1, 'hg38_train.txt')\n UX7M('HI... | [
"0.6313032",
"0.6202636",
"0.6150706",
"0.606797",
"0.60145676",
"0.5986367",
"0.59478027",
"0.5945808",
"0.58385766",
"0.5838076",
"0.57933563",
"0.57643247",
"0.57389617",
"0.5734838",
"0.57137495",
"0.5711457",
"0.5707829",
"0.56954503",
"0.56777245",
"0.566645",
"0.565011... | 0.5873022 | 8 |
This method creates AdaptorHostEthIfProfile policy. | def lI34(nVrR, mWFP, G_YN='', gUIp='org-root'):
from ucsmsdk.mometa.adaptor.AdaptorHostEthIfProfile import AdaptorHostEthIfProfile
YEnM = nVrR.query_dn(gUIp)
if not YEnM:
raise ValueError("org '%s' does not exist" % gUIp)
ohcp = AdaptorHostEthIfProfile(parent_mo_or_dn=YEnM, name=mWFP, descr=G_YN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UVEh(YKHO, mWFP, Z6yy):\n aG24 = TPP0('uni/infra/funcprof/', mWFP, lagT='node')\n YKHO.commit(aG24)\n atlT = vkrz('infraAttEntityP')\n atlT.propFilter = 'eq(infraAttEntityP.name, \"' + WAiO + Z6yy + '\")'\n NWRl = YKHO.moDir.query(atlT)\n if len(NWRl) == 0:\n zfKH = YKHO.create_vlan_po... | [
"0.58866274",
"0.55993426",
"0.5365943",
"0.5124747",
"0.51193327",
"0.5064496",
"0.49703965",
"0.4899957",
"0.48902172",
"0.48667002",
"0.4864065",
"0.4786049",
"0.47673097",
"0.47424978",
"0.4677131",
"0.46756542",
"0.4663658",
"0.46517113",
"0.46456283",
"0.4644628",
"0.46... | 0.7026777 | 0 |
Test exception is raised if subcircuit contains an operation with generator object that is not an observable | def wxXb(YKHO, Ehsq):
M4N3 = B2Ja.device('default.qubit', wires=1)
def DPNn(jzdc):
B2Ja.RX(jzdc, wires=0)
return B2Ja.expval(B2Ja.PauliX(0))
DPNn = B2Ja.QNode(DPNn, M4N3)
with Ehsq.context() as r8hN:
r8hN.setattr('pennylane.RX.generator', [B2Ja.RX, 1])
with trZe.raises(B... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bFiX():\n\n @Uzsc\n def eHNT():\n yield 1\n Aofo = eHNT()\n with cR0t(TypeError) as Oahu:\n dCof(Aofo)\n assert str(Oahu.value).startswith('@do functions must only yield Effects. Got 1 from <generator object')",
"def KqPW(YKHO):\n Z9rn = QRnd()\n WKvO = Z9rn.mock()\n WKv... | [
"0.6523689",
"0.64775455",
"0.64284253",
"0.6372232",
"0.61417514",
"0.6129703",
"0.601559",
"0.6003714",
"0.6001106",
"0.5984249",
"0.5873093",
"0.5850067",
"0.5839496",
"0.5754167",
"0.57381845",
"0.56983274",
"0.5681301",
"0.5672368",
"0.56595016",
"0.56354475",
"0.5620144... | 0.64794165 | 1 |
Test that a metric tensor under the diagonal approximation evaluates correctly. | def WjPp(YKHO, L1W4, yJiH):
M4N3, DPNn, Zb3H, jzdc, Fg_i, Z9rn = L1W4
NArs = [-0.282203, 0.145554, 0.331624, -0.163907, 0.57662, 0.081272]
WKvO, LVAh, epBp, MKlR, Oa1e, eHNT = NArs
yvY1 = DPNn.metric_tensor(*NArs, diag_approx=True)
CDgX = oyIN.zeros([3, 3])
CDgX[0, 0] = oyIN.sin(jzdc) ** 2 / 4
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lb61(YKHO, yJiH):\n M4N3 = B2Ja.device('default.qubit', wires=2)\n\n def DPNn(jzdc, Fg_i, Z9rn):\n B2Ja.RX(jzdc, wires=0)\n B2Ja.RY(Fg_i, wires=0)\n B2Ja.CNOT(wires=[0, 1])\n B2Ja.PhaseShift(Z9rn, wires=1)\n return (B2Ja.expval(B2Ja.PauliX(0)), B2Ja.expval(B2Ja.PauliX(1... | [
"0.7833904",
"0.6673464",
"0.6383571",
"0.62189",
"0.6203809",
"0.6167207",
"0.60502464",
"0.60118705",
"0.59665453",
"0.595428",
"0.592036",
"0.59104395",
"0.59087455",
"0.58832943",
"0.588172",
"0.5880375",
"0.5875833",
"0.58663774",
"0.58381766",
"0.5818486",
"0.5818486",
... | 0.67906964 | 1 |
Returns the name of the musical note this note corresponds to | def Q0HP(YKHO):
if YKHO.vel == 0:
return 'Rest'
T4Wy = YKHO.nbr % 12
return ['C', 'C#/Db', 'D', 'D#/Eb', 'E', 'F', 'F#/Gb', 'G', 'G#/Ab', 'A', 'A#/Bb', 'B'][T4Wy] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z8Iy(YKHO):\n return YKHO.noteName",
"def fytP(YKHO):\n return YKHO.title_str",
"def fytP(YKHO) -> str:\n return YKHO.__note",
"def fytP(YKHO) -> str:\n return YKHO.__note",
"def fytP(YKHO) -> str:\n return YKHO.__note",
"def Azpa(YKHO):\n if YKHO.noteName != None and YKHO.noteName ... | [
"0.7862357",
"0.70012754",
"0.6951025",
"0.6951025",
"0.6951025",
"0.6942635",
"0.6744959",
"0.6702597",
"0.66751194",
"0.6671548",
"0.65037185",
"0.6424212",
"0.63710207",
"0.63269234",
"0.63095987",
"0.6283868",
"0.6249129",
"0.6247104",
"0.61888605",
"0.61888605",
"0.61888... | 0.0 | -1 |
Updates current querystring with a given dict of params, removing existing occurrences of such params. Returns a urlencoded querystring. | def rldq(QePW, NArs):
_Tvo = QePW.GET.copy()
for H5ew in NArs:
if H5ew in _Tvo:
_Tvo.pop(H5ew)
_Tvo.update(NArs)
return _Tvo.urlencode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bljg(Emd4, bD7m: str, **NArs: Mapping[str, str]) -> str:\n bD7m, bGrB = Emd4.separate_query_params(bD7m, NArs.keys())\n return Emd4.add_query_params(bD7m, **NArs)",
"def sYT1(XP5J, rosz=None, kSdD=None):\n if rosz is None:\n rosz = {}\n if kSdD is None:\n kSdD = []\n for Mkmy in ... | [
"0.79360574",
"0.7495798",
"0.71526724",
"0.6789524",
"0.6771018",
"0.673861",
"0.6721096",
"0.67060024",
"0.6666685",
"0.66172284",
"0.65444434",
"0.6466793",
"0.64520234",
"0.64520234",
"0.6450109",
"0.644347",
"0.6358858",
"0.6355403",
"0.63208115",
"0.63082075",
"0.625383... | 0.8049678 | 0 |
Serialize an object to JSON, ensuring that the datetimes are formatted according to RFC 3339. | def Dyhw(nPrm):
def ddW7(U6D_):
if isinstance(U6D_, qcWV):
return U6D_.isoformat('T') + 'Z'
return qQXR.dumps(nPrm, default=ddW7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YEnM):\n return YEnM.to_json()",
"def u8GA(YEnM):\n if isinstance(YEnM, (qcWV.datetime, qcWV.date, qcWV.time)):\n return YEnM.isoformat()\n return str(YEnM)",
"def erUo(YEnM):\n if isinstance(YEnM, (qcWV, _c1T)):\n return YEnM.isoformat()",
"def erUo(YEnM):\n if isinstan... | [
"0.7534164",
"0.7529157",
"0.74062586",
"0.73459065",
"0.7144621",
"0.713271",
"0.7114011",
"0.70955473",
"0.70740694",
"0.70545864",
"0.7033137",
"0.7031966",
"0.70287806",
"0.70287806",
"0.7024826",
"0.69944197",
"0.69906336",
"0.69906336",
"0.69906336",
"0.69906336",
"0.69... | 0.727265 | 4 |
Add card(rank,suit) to list. D = first index C = 2nd index H = 3rd index S = 4th index | def lACn(YKHO, fdMZ, iCfd):
N1p7 = YKHO.first()
while N1p7 != None:
if N1p7.element()._suit[0] == iCfd and str(fdMZ) in YKHO.listOfCards:
if YKHO.find(YKHO._headD, fdMZ) == False and iCfd == 'D':
tnil = YKHO.Card(fdMZ, iCfd, YKHO._headD)
YKHO._headD = tnil
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UZ_k(YKHO, dxhl: List[Tuple[int, str, str]], MqlA: int=0) -> None:\n YKHO._cards[MqlA].extend(dxhl)",
"def lACn(YKHO, dxhl):\n if isinstance(dxhl, list):\n for U6D_ in range(len(dxhl)):\n mJ0s = MsG1([dxhl[U6D_]])\n YKHO.cards += mJ0s.cards\n else:\n mJ0s = MsG1([... | [
"0.6483237",
"0.63969505",
"0.63931733",
"0.62963516",
"0.62657714",
"0.61991394",
"0.61983746",
"0.6156078",
"0.6151326",
"0.61485326",
"0.6122928",
"0.60813206",
"0.60766363",
"0.6068484",
"0.6067215",
"0.60018414",
"0.600078",
"0.5992856",
"0.59735036",
"0.5958028",
"0.593... | 0.7368908 | 0 |
Test updating a movie with patch | def Ys6O(YKHO):
LHvA = QWui(user=YKHO.user)
LHvA.tags.add(eo18(user=YKHO.user))
MGzK = eo18(user=YKHO.user, name='Hentai')
pB3N = {'title': 'Test movie partial check', 'tags': [MGzK.id]}
bD7m = iLuo(LHvA.id)
YKHO.client.patch(bD7m, pB3N)
LHvA.refresh_from_db()
YKHO.assertEqual(LHvA.title... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2Ku(YKHO):\n Ylbp = YKHO.client().patch('/movies/2', json=qIhf, headers=lwuw)\n nPrm = qQXR.loads(Ylbp.data)",
"def lSt0(YKHO):\n CBIr = mv1M.objects.create(username='test_user')\n CBIr.set_password('test123')\n CBIr.save()\n YKHO.client.login(username='test_user', password='test123')\n ... | [
"0.808587",
"0.76667094",
"0.7644342",
"0.76276356",
"0.7492771",
"0.73175",
"0.7077396",
"0.7068895",
"0.7068895",
"0.7068895",
"0.70215964",
"0.68750256",
"0.6820797",
"0.6807643",
"0.6804073",
"0.6803915",
"0.6768356",
"0.6695697",
"0.6685852",
"0.66777843",
"0.66709876",
... | 0.72431964 | 6 |
Test uploading an invalid image | def gopI(YKHO):
bD7m = xx5i(YKHO.movie.id)
Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='multipart')
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ICKa(YKHO):\n bD7m = xx5i(YKHO.reteta.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='multipart')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def ZM12(YKHO):\n bD7m = LDEV(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'not_image'}, format='... | [
"0.86194044",
"0.8567676",
"0.8433633",
"0.8430187",
"0.8360368",
"0.83143234",
"0.83053386",
"0.82888144",
"0.82306975",
"0.81376487",
"0.7897103",
"0.75692457",
"0.7536378",
"0.74416286",
"0.73935485",
"0.7353074",
"0.72465086",
"0.7230261",
"0.72119063",
"0.72095186",
"0.7... | 0.82901424 | 7 |
returns true if a schema is contained in a list of schema | def sjlC(finE, zbDt):
vtfo = False
r50I = xClP.categorical_edge_match('label', 1)
for LJfo in zbDt:
if jHsn.is_isomorphic(LJfo, finE, edge_match=r50I):
vtfo = True
break
return vtfo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UVDS(uPxI):\n return True",
"def _Fer(YKHO, uPxI):\n Mkmy = YKHO.fetchSqlRecords(\"SELECT count(*) FROM information_schema.schemata WHERE schema_name = '{}'\".format(uPxI))\n return Mkmy[0][0] > 0",
"def Io0Y(YKHO, uPxI):\n return uPxI in YKHO.registered_dde_schemas",
"def dJ6t(YKHO, uPxI):\n... | [
"0.6565631",
"0.62309325",
"0.6181419",
"0.61752677",
"0.6161067",
"0.6063107",
"0.6033649",
"0.59754974",
"0.59479606",
"0.59334487",
"0.5915806",
"0.5838609",
"0.5785676",
"0.5761583",
"0.575914",
"0.57571036",
"0.5701424",
"0.56992906",
"0.5695427",
"0.56794447",
"0.565583... | 0.0 | -1 |
Name of this entity. | def mWFP(YKHO):
return YKHO._get_field('name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tWCk(YKHO):\n return YKHO.__entity_name",
"def mWFP(YKHO):\n return '{} {}'.format(YKHO._vehicle_name, YKHO._entity_name)",
"def mWFP(YKHO):\n return str(YKHO.name)",
"def mWFP(YKHO):\n return YKHO.name_",
"def W0tD(YKHO):\n return YKHO.name",
"def W0tD(YKHO) -> str:\n return YKHO.n... | [
"0.87787664",
"0.8556441",
"0.847294",
"0.8399189",
"0.8399103",
"0.83793205",
"0.8353756",
"0.83533615",
"0.83533615",
"0.83533615",
"0.8349588",
"0.8344451",
"0.83406395",
"0.83406395",
"0.83406395",
"0.83406395",
"0.83388186",
"0.83320695",
"0.83320695",
"0.83320695",
"0.8... | 0.0 | -1 |
Sets the name of this entity. | def mWFP(YKHO, mWFP):
YKHO._set_field('name', mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP:... | [
"0.8463752",
"0.8463752",
"0.8463752",
"0.8463752",
"0.8463752",
"0.8427705",
"0.83615834",
"0.83325535",
"0.8328878",
"0.8328878",
"0.8326068",
"0.8307529",
"0.8302958",
"0.8195788",
"0.81844836",
"0.81844836",
"0.81353045",
"0.81340176",
"0.81340176",
"0.8094047",
"0.809344... | 0.8005952 | 25 |
ComodIT's UUID for this entity. | def qxeD(YKHO):
return YKHO._get_field('uuid') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxeD(YKHO) -> str:\n return YKHO.obj.uuid",
"def qxeD(YKHO):\n return S7kj(YKHO.unique_id)",
"def qxeD(YKHO) -> str:\n return YKHO.__uuid",
"def qxeD(YKHO) -> str:\n return YKHO._uuid",
"def qxeD(YKHO) -> str:\n return YKHO._uuid",
"def qxeD(YKHO) -> str:\n return YKHO._uuid",
"de... | [
"0.84459674",
"0.82274014",
"0.81994444",
"0.8115037",
"0.8115037",
"0.8115037",
"0.8091729",
"0.8091729",
"0.8054669",
"0.80123174",
"0.79733056",
"0.79733056",
"0.7755392",
"0.7755392",
"0.7755392",
"0.7611566",
"0.7569097",
"0.7569097",
"0.75482804",
"0.74507844",
"0.73815... | 0.8030808 | 9 |
The description of this entity. | def JBZA(YKHO):
return YKHO._get_field('description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t5do(YKHO):\n return 'It is an Entity.'",
"def JBZA(YKHO) -> str:\n pass",
"def JBZA(YKHO):\n pass",
"def JBZA(YKHO):\n pass",
"def JBZA(YKHO):\n return YKHO.definition.description",
"def JBZA(YKHO) -> str:\n return YKHO.data['description']",
"def JBZA(YKHO) -> str:\n return qe... | [
"0.8756202",
"0.8477393",
"0.84632444",
"0.84632444",
"0.845411",
"0.84511495",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
"0.8438358",
... | 0.82185614 | 94 |
Sets the description of this entity. | def JBZA(YKHO, JBZA):
YKHO._set_field('description', JBZA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO._description = JBZA",
"def AqxA(YKHO, QoB4: str) -> None:\n YKHO.metadata.data['description'] = QoB4",
"... | [
"0.8438528",
"0.84281254",
"0.84229875",
"0.8398042",
"0.8314487",
"0.8280811",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
"0.8069048",
... | 0.7948341 | 54 |
Split an image in multiple subimages. | def RJgE(YKHO, zZcM, tWPo):
IAqO, ngoX = zZcM.shape
Ylbp = []
if tWPo == YKHO.VERTICAL:
for YRbF in range(0, IAqO - YKHO.slideThickness, YKHO.slideThickness):
jbXL = zZcM[YRbF:YRbF + YKHO.slideThickness, 0:ngoX]
Ylbp.append(jbXL)
else:
for YRbF in range(0, ngoX - ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(YKHO):\n hoTe = []\n for zn0c in N409(YKHO.cells):\n QymI, tfZ6, nkgu, tVN0 = zn0c.bbox\n w4GE = YKHO.image_raw[max(0, QymI - 10):nkgu, max(0, tfZ6 - 10):tVN0, :]\n hoTe.append(_h9Q(data=w4GE))\n return hoTe",
"def qHkF(VXjJ):\n GkJn = VXjJ.shape[2]\n if GkJn is 1:\n ... | [
"0.74881077",
"0.7465553",
"0.7275183",
"0.7061011",
"0.6906471",
"0.68981",
"0.6828294",
"0.6809874",
"0.6809874",
"0.67250365",
"0.66569096",
"0.64237046",
"0.63910985",
"0.63754225",
"0.6337027",
"0.6298405",
"0.6224891",
"0.6169443",
"0.61632943",
"0.6141884",
"0.612824",... | 0.58945954 | 33 |
Extracts the environment variable from the node's value | def WYO1(DWkG, Q6kx) -> ImMB:
BWXx = DWkG.construct_scalar(Q6kx)
kUBT = mXDZ.findall(BWXx)
if kUBT:
diFJ = BWXx
for Oa1e in kUBT:
I45O.debug(f'match: {Oa1e}')
NGQW, qwGV = Oa1e.split('::')
if '${' in NGQW:
NGQW = NGQW.replace('$', '').forma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mrr1(DWkG: SafeLineLoader, Q6kx: yaml.nodes.Node) -> str:\n qIxc = Q6kx.value.split()\n if len(qIxc) > 1:\n return Hy7s.getenv(qIxc[0], ' '.join(qIxc[1:]))\n if qIxc[0] in Hy7s.environ:\n return Hy7s.environ[qIxc[0]]\n bo34.error('Environment variable %s not defined', Q6kx.value)\n ... | [
"0.7472852",
"0.7351715",
"0.73319286",
"0.7076",
"0.70132583",
"0.68896335",
"0.6859308",
"0.67984575",
"0.6757028",
"0.6700027",
"0.66749007",
"0.666836",
"0.665469",
"0.66477776",
"0.6585286",
"0.65750843",
"0.6573921",
"0.6559446",
"0.65353906",
"0.6517019",
"0.6423753",
... | 0.0 | -1 |
Load a yaml configuration file and resolve any environment variables The environment variables must have !ENV before them and be in this format | def JfAc(TZ9E: str='!ENV') -> None:
mXDZ = ZbWC.compile('.*?\\${([^}]+::[^}]*)}.*?')
DWkG = eJb6.SafeLoader
DWkG.add_implicit_resolver(TZ9E, mXDZ, None)
def CAXB(DWkG, Q6kx) -> ImMB:
"""
Extracts the environment variable from the node's value
:param yaml.Loader loader: the yaml ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NzmD():\n global api_key\n oagM = pmON.join(pmON.dirname(pmON.abspath(xAKo)), 'env.yml')\n try:\n wOb_ = open(oagM, 'r')\n LVAh = eJb6.safe_load(wOb_)\n except IOError:\n print('ERROR: Environment file {} not found'.format(oagM))\n HwRy.exit(3)\n except eJb6.parser.Pa... | [
"0.73805815",
"0.73421687",
"0.7001632",
"0.7001632",
"0.6950898",
"0.6896238",
"0.6882277",
"0.6724952",
"0.6684018",
"0.65472513",
"0.6542343",
"0.65099776",
"0.6494649",
"0.6489318",
"0.6473562",
"0.64439356",
"0.64003223",
"0.63729566",
"0.63570625",
"0.63543767",
"0.6347... | 0.0 | -1 |
Extracts the environment variable from the node's value | def CAXB(DWkG, Q6kx) -> ImMB:
BWXx = DWkG.construct_scalar(Q6kx)
kUBT = mXDZ.findall(BWXx)
if kUBT:
diFJ = BWXx
for Oa1e in kUBT:
IH1p, Xvek = Oa1e.split('::')
BWXx = Hy7s.environ.get(IH1p, Xvek)
diFJ = diFJ.replace(f'${{{Oa1e}}}', BWXx)
if not... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mrr1(DWkG: SafeLineLoader, Q6kx: yaml.nodes.Node) -> str:\n qIxc = Q6kx.value.split()\n if len(qIxc) > 1:\n return Hy7s.getenv(qIxc[0], ' '.join(qIxc[1:]))\n if qIxc[0] in Hy7s.environ:\n return Hy7s.environ[qIxc[0]]\n bo34.error('Environment variable %s not defined', Q6kx.value)\n ... | [
"0.7472852",
"0.7351715",
"0.73319286",
"0.7076",
"0.68896335",
"0.6859308",
"0.67984575",
"0.6757028",
"0.6700027",
"0.66749007",
"0.666836",
"0.665469",
"0.66477776",
"0.6585286",
"0.65750843",
"0.6573921",
"0.6559446",
"0.65353906",
"0.6517019",
"0.6423753",
"0.6415939",
... | 0.70132583 | 4 |
Transform Kaolin legacy rasterization coordinate system to OpenGL format (for nvdiffrast) | def Y2dx(UubZ, xO5J, ERy3=None):
epBp = -xO5J / (abs(xO5J).max() + 1e-06)
Kpro = UubZ.reshape(*UubZ.shape[:-3], -1, 2)
oeNL = ht2j.stack([Kpro[..., 0], -Kpro[..., 1], epBp.reshape(*epBp.shape[:-2], -1)], dim=-1)
if ERy3 is None:
oeNL = ht2j.nn.functional.pad(oeNL, (0, 1), value=1.0)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ozoA(YKHO):\n pass",
"def Man2(YKHO, QnmL, FDPT, MKlR):\n plM3 = YKHO.origin[0]\n pXZT = YKHO.origin[1]\n WKvO, LVAh, epBp = TlDD.geodetic2enu(QnmL, FDPT, MKlR, plM3, pXZT, YKHO.h0)\n edtg = YhSR(YKHO.local_rot) * WKvO + YUNn(YKHO.local_rot) * LVAh\n rGKe = -1 * YUNn(YKHO.local_rot) * WKvO ... | [
"0.60179245",
"0.56210995",
"0.55048364",
"0.5501991",
"0.54620486",
"0.5442536",
"0.5425325",
"0.54175884",
"0.5377072",
"0.5368177",
"0.53330666",
"0.5317852",
"0.5293177",
"0.5290985",
"0.52758396",
"0.52647",
"0.526396",
"0.52589256",
"0.52511907",
"0.5231623",
"0.5229879... | 0.6061634 | 0 |
Seek relative to file_area_byte_offset. | def XQMs(YKHO, vgXP, hAIC=0):
vgXP += YKHO.file_area_byte_offset + YKHO.offset
YKHO.infile.seek(vgXP, hAIC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lhwp(YKHO, vgXP, c4ZO):\n YKHO.oFile.seek(vgXP, c4ZO)",
"def lhwp(YKHO, vgXP, hAIC=xDSY.SEEK_SET):\n if hAIC == xDSY.SEEK_SET:\n YKHO._offset = vgXP\n elif hAIC == xDSY.SEEK_CUR:\n YKHO._offset += vgXP\n elif hAIC == xDSY.SEEK_END:\n YKHO._offset = YKHO.end_of_file + vgXP\n ... | [
"0.7081536",
"0.6833883",
"0.66971445",
"0.664149",
"0.6525978",
"0.64832455",
"0.646119",
"0.6325034",
"0.6190566",
"0.6188283",
"0.6188283",
"0.61775285",
"0.61498404",
"0.6039575",
"0.59850365",
"0.59260595",
"0.586741",
"0.58603215",
"0.58527005",
"0.5845467",
"0.58263093... | 0.81114537 | 0 |
Returns the scale factor for the width of the axis box | def BJFX(YKHO, VVGa, ulBT=None, GAJY=None):
if ulBT is None:
ulBT = YKHO.num_cols(VVGa)
if GAJY is None:
GAJY = YKHO.fontsize(VVGa, ulBT)
if YKHO.max_cols is not None:
return 1 - YKHO.max_h_space * ulBT / YKHO.max_cols * (GAJY / YKHO.max_fontsize) * YKHO.space_scale
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXpY(YKHO):\n return YKHO.scale_factor / r9jE.AU",
"def TVTK(YKHO):\n return YKHO.x.max() - YKHO.x.min()",
"def CJdE(YKHO, aM8h: Number=1) -> float:\n return YKHO.width + YKHO.spaces_width * aM8h",
"def lnKW(YKHO, iVKh, jzdc=0.66, Fg_i=0.88, aM8h=1.5):\n return jzdc * iVKh ** Fg_i * aM8h",
... | [
"0.70327425",
"0.6950268",
"0.6889892",
"0.6835199",
"0.6830303",
"0.676532",
"0.6737701",
"0.67198175",
"0.67139065",
"0.66777384",
"0.6658519",
"0.66488045",
"0.66089356",
"0.6558155",
"0.6555649",
"0.65511245",
"0.65358007",
"0.65076655",
"0.65062785",
"0.64100164",
"0.638... | 0.65792114 | 13 |
Translate a controller type to a name. | def LXSw(KWSA):
if KWSA == MLF9.StorageControllerType_PIIX3 or KWSA == MLF9.StorageControllerType_PIIX4:
hFW4 = 'IDE Controller'
elif KWSA == MLF9.StorageControllerType_IntelAhci:
hFW4 = 'SATA Controller'
elif KWSA == MLF9.StorageControllerType_LsiLogicSas:
hFW4 = 'SAS Controller'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jF2m(type: int) -> QMSQ:\n ...",
"def aFE8(YKHO, Wdeb):\n PXIy = map(lambda WKvO: WKvO.capitalize(), Wdeb.split(' '))\n PXIy[0] = PXIy[0].lower()\n mWFP = ''.join(PXIy) + 'Type'\n return QMSQ(mWFP)",
"def ls_D(type: int) -> QMSQ:\n ...",
"def mWFP(YKHO) -> str:\n return 'Controller'"... | [
"0.7146486",
"0.6372622",
"0.62254006",
"0.6164952",
"0.61595356",
"0.614937",
"0.60111874",
"0.6004752",
"0.594891",
"0.594891",
"0.594891",
"0.594891",
"0.594891",
"0.594891",
"0.594891",
"0.5871991",
"0.5869582",
"0.5851202",
"0.58345306",
"0.57794523",
"0.5759673",
"0.5... | 0.7379146 | 0 |
Returns the current not black listed test config as an array of strings. | def qiNE(YKHO):
WNzz = []
if YKHO.iTestLvl < len(YKHO.at3TestLvls):
for D0yn in YKHO.at3TestLvls:
FMQE, bGrB, edun = D0yn
WNzz.append(edun[FMQE])
WNzz.reverse()
return WNzz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0E7(YKHO):\n return [YRbF for YRbF in YKHO._config.sections() if YRbF not in ['Local', 'GitHub', 'Logging', 'DEFAULT']]",
"def ynSc(YKHO) -> x1iM[str]:\n return YKHO.raw_config.get('blacklist', [])",
"def ybl8():\n return sorted(YF8x.keys())",
"def vsc2(YKHO):\n return list(YKHO.stage.active... | [
"0.6282755",
"0.6282413",
"0.62770605",
"0.6172584",
"0.60647786",
"0.605392",
"0.6014482",
"0.60080713",
"0.59811246",
"0.584818",
"0.5815075",
"0.57773846",
"0.5772139",
"0.57370687",
"0.57148117",
"0.5710934",
"0.57015395",
"0.56642467",
"0.56596774",
"0.5639696",
"0.56240... | 0.71002847 | 0 |
Parses the command line arguments and returns the parser. | def AmRs():
wvEv = j1Jz.ArgumentParser(description=__doc__)
wvEv.add_argument('-f', '--file', help='Text file to be used (e.g. mem/sample_mem.txt)')
wvEv.add_argument('--memsize', help='Memory size of generated memory')
wvEv.add_argument('--memrange', help='Max range of memory in generated memory')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y8nX():\n wvEv = j1Jz.ArgumentParser(description='Pure-python command-line calculator.')\n wvEv.add_argument('EXPRESSION', action='store', type=str, help='expression string to evaluate')\n wvEv.add_argument('-m', '--use-modules', nargs='+', action='store', dest='MODULE', type=str, help='additional mod... | [
"0.760216",
"0.7560904",
"0.7473432",
"0.7457433",
"0.7451018",
"0.74482155",
"0.7428243",
"0.7402612",
"0.73983216",
"0.7374284",
"0.7349192",
"0.73466986",
"0.73466986",
"0.7317629",
"0.73165995",
"0.7310506",
"0.7295483",
"0.72881424",
"0.7286667",
"0.72757745",
"0.7274726... | 0.6942706 | 95 |
Calculate gradient at point `x`. Uses an approximation, if the gradient is not explicitly known. | def eUlf(YKHO, WKvO: np.ndarray) -> oyIN.ndarray:
if YKHO.gradient_f:
return YKHO.gradient_f(WKvO)
return jMk9(YKHO.f, WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ICX2(YKHO, WKvO):\n P6bq = oyIN.asarray([WKvO[0]])\n Nq1b = YKHO.C_func(P6bq)\n ibax = YKHO.dC_func(P6bq, order=1)\n V6IE = YKHO.P\n M6pt = oyIN.sum((Nq1b - V6IE) * ibax, axis=0)\n UUZ1 = oyIN.sum(oyIN.sum((Nq1b - V6IE) ** 2, axis=0) ** (1 / 2))\n if oyIN.abs(UUZ1) > 0:\n ICX2 = M6p... | [
"0.7864868",
"0.77895117",
"0.7750716",
"0.7703351",
"0.75522006",
"0.7534183",
"0.7534183",
"0.7534183",
"0.7441254",
"0.7436047",
"0.7426651",
"0.73456204",
"0.732094",
"0.7221774",
"0.71592295",
"0.71355796",
"0.6970773",
"0.6928474",
"0.69265467",
"0.6897377",
"0.6889926"... | 0.8715633 | 0 |
Opens a new database connection if there is none yet for the current application context. | def GGod():
if not hasattr(Oa1e, 'mysql_db'):
Oa1e.mysql_db = _uJw()
return Oa1e.mysql_db | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db",
"def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)",
"def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)",
"def W... | [
"0.7737639",
"0.7582971",
"0.73180443",
"0.71693045",
"0.70220166",
"0.6966687",
"0.6954785",
"0.69486743",
"0.6897534",
"0.6842663",
"0.68292314",
"0.68191963",
"0.680592",
"0.67950195",
"0.67697805",
"0.6762173",
"0.6751266",
"0.6746273",
"0.67316663",
"0.670031",
"0.668866... | 0.0 | -1 |
Create `TrainingInstance`s from raw text | def AJtv(js2W, C6qx, b0j5, G8d9, xlLU, LT6S=True):
ol4k = {}
for eZ_W in js2W:
with open(xc2Q + '/' + eZ_W, 'r') as N5Pj:
while True:
zFiD = N5Pj.readline().strip()
if not zFiD:
break
zFiD = qQXR.loads(zFiD)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TyQe(YKHO, s2mk: List[str], Crrw: List[str]=None) -> ec6H:\n o0n1, gQVb, XB2B = YKHO._wordpiece_tokenize_input(s2mk)\n mlBN = qp6h([_J2v(a1PO, text_id=YKHO.bert_tokenizer.vocab[a1PO]) for a1PO in o0n1], token_indexers=YKHO._token_indexers)\n lMAI = OnqA(Crrw, gQVb)\n jndb: cuzp[str, wsY0] = {'text'... | [
"0.65462077",
"0.65218043",
"0.6495789",
"0.62886065",
"0.6228445",
"0.611052",
"0.60587054",
"0.6050886",
"0.5992009",
"0.5980758",
"0.5970788",
"0.5937586",
"0.59270895",
"0.5907981",
"0.5896349",
"0.5860185",
"0.5848174",
"0.5806621",
"0.57917535",
"0.5784725",
"0.5784621"... | 0.0 | -1 |
Hide messages about cursor position requrests. | def XCQF(YKHO) -> 'None':
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUxT(YKHO) -> None:\n YKHO._impl.hide_cursor()",
"def zfbl():\n print('\\x1b[?25l', end='')",
"def JrDO():\n return XaEZ.SDL_ShowCursor(fFxy) == TkG6",
"def LUxT():\n lhy8 = wbOP()\n lhy8.setCursorHidden(True)\n P8oC.win.requestProperties(lhy8)",
"def LUxT():\n U5bT = XaEZ.SDL_Show... | [
"0.71606404",
"0.6779006",
"0.67171675",
"0.6540551",
"0.6357821",
"0.6296624",
"0.6205155",
"0.61937284",
"0.60729694",
"0.59937185",
"0.59637403",
"0.5960276",
"0.5949692",
"0.59252346",
"0.5879071",
"0.5870746",
"0.5864899",
"0.5849275",
"0.58406717",
"0.5800492",
"0.57866... | 0.0 | -1 |
Write a sound file from an array with the sound and the sampling rate | def KHBo(LVAh, Vb5F, Ux0P):
WKvO = jth9.deepcopy(LVAh)
WKvO *= cK2I
WKvO = oyIN.int16(WKvO)
C7H1.write(Ux0P, Vb5F, WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szgk(qaEx, _rWM, D8Si):\n D8Si = (D8Si.numpy() * 32768).astype('int16')\n Lsrz(qaEx, _rWM, D8Si)",
"def PRTJ(IznC, FCpM, _rWM=16000, NkkI=True):\n if FCpM.ndim != 1 and FCpM.shape[0] < FCpM.shape[1]:\n FCpM = oyIN.transpose(FCpM)\n FCpM = oyIN.squeeze(FCpM)\n if NkkI:\n FCpM ... | [
"0.78300136",
"0.75019807",
"0.72466123",
"0.71881396",
"0.7115552",
"0.7015506",
"0.70126903",
"0.70035785",
"0.6991196",
"0.69215935",
"0.6900578",
"0.6861992",
"0.68387115",
"0.6798821",
"0.6773288",
"0.67463064",
"0.6741162",
"0.6707108",
"0.66568154",
"0.6634303",
"0.659... | 0.6939813 | 9 |
Check if given nickname is admin or channel admin. | def _Kb1(YKHO, CVgL, FyXI=None):
if CVgL not in YKHO.admins(FyXI):
return False
if YKHO.client.users.get(CVgL, {}).get('identified'):
return True
U34r = (yield from YKHO.client.whois(CVgL))
if U34r and U34r['identified']:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uJBC(YKHO, CVgL):\n if CVgL in YKHO.config['admins']:\n return True\n else:\n return False",
"def _Kb1(taDc):\n if str(taDc).lower() in GPtr['admins']:\n return True\n return False",
"async def is_admin(OaeV):\n mS46 = OaeV.message.author\n wqJw = ZOrr.utils.get(mS46.... | [
"0.74868315",
"0.68208987",
"0.6685735",
"0.6601396",
"0.65550625",
"0.65173554",
"0.64925414",
"0.6482357",
"0.6479235",
"0.6469031",
"0.6434223",
"0.6405458",
"0.6347444",
"0.6330826",
"0.63240314",
"0.6313198",
"0.62531495",
"0.6229994",
"0.6208824",
"0.6198447",
"0.619199... | 0.7145601 | 1 |
r""" Method for getting data precision | def Oqjw():
return mJjH.GmatBase_GetDataPrecision() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VvxU(YKHO):\n ...",
"def wMte():\n return mJjH.GmatBase_GetDataPrecision()",
"def Q8au(YKHO):\n return YKHO.get_precision()",
"def rhd_(YKHO):\n return YKHO.__precision",
"def rhd_(YKHO):\n return YKHO.__precision",
"def gCUM(YKHO):\n raise NotImplementedError",
"def rhd_(YKHO):\n... | [
"0.83890766",
"0.7972469",
"0.7487251",
"0.7473303",
"0.7473303",
"0.7323318",
"0.7206994",
"0.7136413",
"0.70747113",
"0.70449924",
"0.7034808",
"0.6956692",
"0.69461715",
"0.67545533",
"0.6733648",
"0.67171735",
"0.67164093",
"0.67134964",
"0.6712346",
"0.6706391",
"0.67044... | 0.8008087 | 1 |
r""" Method for getting data precision | def wMte():
return mJjH.GmatBase_GetDataPrecision() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VvxU(YKHO):\n ...",
"def Oqjw():\n return mJjH.GmatBase_GetDataPrecision()",
"def Q8au(YKHO):\n return YKHO.get_precision()",
"def rhd_(YKHO):\n return YKHO.__precision",
"def rhd_(YKHO):\n return YKHO.__precision",
"def gCUM(YKHO):\n raise NotImplementedError",
"def rhd_(YKHO):\n... | [
"0.83890766",
"0.8008087",
"0.7487251",
"0.7473303",
"0.7473303",
"0.7323318",
"0.7206994",
"0.7136413",
"0.70747113",
"0.70449924",
"0.7034808",
"0.6956692",
"0.69461715",
"0.67545533",
"0.6733648",
"0.67171735",
"0.67164093",
"0.67134964",
"0.6712346",
"0.6706391",
"0.67044... | 0.7972469 | 2 |
r""" Method to get the attitude as a Quaternion | def lv5Q(YKHO, lO2J):
return mJjH.Attitude_GetQuaternion(YKHO, lO2J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lv5Q(YKHO, lO2J):\n return mJjH.SpiceAttitude_GetQuaternion(YKHO, lO2J)",
"async def attitude_quaternion(YKHO):\n QePW = idM_.SubscribeAttitudeQuaternionRequest()\n EP0n = YKHO._stub.SubscribeAttitudeQuaternion(QePW)\n try:\n async for geh0 in EP0n:\n yield R5H8.translate_from_r... | [
"0.74226385",
"0.71435827",
"0.6827715",
"0.67824006",
"0.6773786",
"0.67503244",
"0.6649619",
"0.6586673",
"0.6459578",
"0.64204955",
"0.64178765",
"0.64139855",
"0.6409874",
"0.6334396",
"0.63327575",
"0.63021564",
"0.62907344",
"0.62835777",
"0.62696093",
"0.6242305",
"0.6... | 0.7372396 | 1 |
r""" Has this attitude been initialized? | def KNi1(YKHO):
return mJjH.Attitude_IsInitialized(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G96d(YKHO) -> bool:\n return len(YKHO) > 0",
"def Hp9g(YKHO):\n Ylbp = True\n for H5ew, wEf2 in YKHO._attrs.iteritems():\n if H5ew not in YKHO._optional_attrs:\n if wEf2 is None:\n Ylbp = False\n return Ylbp",
"def KeU_(YKHO) -> bool:\n return YKHO._exchange_... | [
"0.79921746",
"0.72366804",
"0.71726424",
"0.7018671",
"0.6942208",
"0.6939028",
"0.6904621",
"0.6903393",
"0.6776798",
"0.66145027",
"0.65922046",
"0.6579765",
"0.6579765",
"0.65669936",
"0.655243",
"0.65399873",
"0.64898354",
"0.6453738",
"0.6446207",
"0.6442884",
"0.644089... | 0.8398566 | 0 |
r""" get the attitude as a Quaternion | def lv5Q(YKHO, lO2J):
return mJjH.SpiceAttitude_GetQuaternion(YKHO, lO2J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lv5Q(YKHO, lO2J):\n return mJjH.Attitude_GetQuaternion(YKHO, lO2J)",
"async def attitude_quaternion(YKHO):\n QePW = idM_.SubscribeAttitudeQuaternionRequest()\n EP0n = YKHO._stub.SubscribeAttitudeQuaternion(QePW)\n try:\n async for geh0 in EP0n:\n yield R5H8.translate_from_rpc(ge... | [
"0.7421688",
"0.7009992",
"0.69873285",
"0.6977707",
"0.69415385",
"0.68793845",
"0.68269247",
"0.673119",
"0.66361195",
"0.6617345",
"0.65966856",
"0.6553035",
"0.6550608",
"0.6544818",
"0.65240717",
"0.6463198",
"0.64292306",
"0.6376732",
"0.63540214",
"0.6347694",
"0.63466... | 0.74447095 | 0 |
r""" Calculates the atmospheric density at a specified location. Density is the core calculation provided by classes derived from this one. The output array, density, must contain the density at the requested locations, expressed in kg / m^3. | def MPRT(YKHO, *qIxc):
return mJjH.AtmosphereModel_Density(YKHO, *qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InLe(YKHO):\n return 0.001 * YKHO.molar_mass * YKHO.pressure / (K6Rf * YKHO.temperature)",
"def InLe(YKHO, Jyyj=None, kjD5=None, Qth0=False, gV78=False):\n Jyyj = Jyyj if Jyyj else YKHO.fieldset.U\n if isinstance(kjD5, str):\n kjD5 = [getattr(XP5J, kjD5) for XP5J in YKHO.particles]\n else:... | [
"0.5840306",
"0.57527643",
"0.57067126",
"0.5681572",
"0.5650363",
"0.55167806",
"0.5512332",
"0.5468166",
"0.54662126",
"0.5445136",
"0.5414758",
"0.5376314",
"0.53536695",
"0.53438574",
"0.53399134",
"0.53359634",
"0.53359634",
"0.53111833",
"0.530559",
"0.5289131",
"0.5270... | 0.5877226 | 0 |
Get input, initial state, final state, and probabilities tensor from | def Zur1(aNyl):
FRUf = aNyl.get_tensor_by_name('input: 0')
Mf3n = aNyl.get_tensor_by_name('initial_state: 0')
BZPa = aNyl.get_tensor_by_name('final_state: 0')
JynB = aNyl.get_tensor_by_name('probs: 0')
return (FRUf, Mf3n, BZPa, JynB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMhG(YKHO):\n K2Ug = ZylS.placeholder(ZylS.int32, [None, None], name='n_input')\n MeT8 = ZylS.placeholder(ZylS.int32, [None, None], name='t_input')\n BT6X = ZylS.placeholder(ZylS.int32, [None, None], name='n_target')\n YpOa = ZylS.placeholder(ZylS.int32, [None, None], name='t_target')\n sMyr = Z... | [
"0.6919892",
"0.6620756",
"0.6511043",
"0.6486629",
"0.64565337",
"0.6425143",
"0.63318515",
"0.6296343",
"0.62888265",
"0.6261344",
"0.6243823",
"0.6226342",
"0.62257415",
"0.620524",
"0.613511",
"0.6114939",
"0.6086137",
"0.6084299",
"0.6062921",
"0.6059765",
"0.603353",
... | 0.6424294 | 6 |
Decodes a signed 32 bit integer. | def vatl(D92J: typing.List[int]) -> int:
return sqoO(D92J, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3A2(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n return MZ6z(BWXx, 32, dmhX, Zihr)",
"def ipB4(D92J: typing.List[int]) -> int:\n return sqoO(D92J, False)",
"def DknG(nPrm):\n BWXx = MZ6z(vqOS.INT32_BYTE_FORMAT, nPrm[:4])[0]\n return (BWXx, 4)",
"def JDXO(nPrm):\n return Bl... | [
"0.7229827",
"0.70931906",
"0.6872794",
"0.6782309",
"0.6687748",
"0.66059446",
"0.65033996",
"0.64982307",
"0.6496074",
"0.6489442",
"0.6399384",
"0.6380516",
"0.637989",
"0.6365057",
"0.6355177",
"0.6317449",
"0.62876743",
"0.6275529",
"0.6254298",
"0.62485373",
"0.62188756... | 0.71375215 | 1 |
Decodes an unsigned 32 bit integer. | def ipB4(D92J: typing.List[int]) -> int:
return sqoO(D92J, False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fbhp(nPrm):\n BWXx = MZ6z(vqOS.UINT32_BYTE_FORMAT, nPrm[:4])[0]\n return (BWXx, 4)",
"def K3A2(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n return MZ6z(BWXx, 32, dmhX, Zihr)",
"def JDXO(nPrm):\n return BlNT.unpack('<I', nPrm)[0]",
"def K3A2(Csk6):\n return MZ6z('<I', Csk6)[... | [
"0.7431432",
"0.73210275",
"0.72915196",
"0.72206765",
"0.7178999",
"0.7067336",
"0.6935761",
"0.6691178",
"0.66779864",
"0.66587055",
"0.66559905",
"0.660376",
"0.6481877",
"0.6478498",
"0.644645",
"0.644645",
"0.64327276",
"0.6368677",
"0.6334877",
"0.62754583",
"0.627525",... | 0.76892203 | 0 |
Inicializa la clase C{RecordLiteralExpressionNode}. | def FIMM(YKHO, l87X, J_RZ, Ozx3):
super(beYw, YKHO).__init__()
YKHO._type_name = l87X
YKHO._fields_names = J_RZ
YKHO._fields_values = Ozx3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j76n():\n return GVaG()",
"def nrlN():\n eOtH = _J2v('h', HYz5('<stdin>', 0, 1, 'he'))\n assert eOtH.info.offset == 1\n assert eOtH.info.filename == '<stdin>'\n assert eOtH.lexeme == 'h'\n assert eOtH.info.lineno == 0\n assert eOtH.symbol == GVaG.STRING\n assert eOtH.info.line == 'he'... | [
"0.5540882",
"0.5374074",
"0.53232354",
"0.52458715",
"0.51550907",
"0.5153178",
"0.5113182",
"0.50667745",
"0.50487894",
"0.5032673",
"0.5026399",
"0.5001773",
"0.49965465",
"0.49949604",
"0.49620786",
"0.49559867",
"0.4836285",
"0.4831824",
"0.48252314",
"0.4807608",
"0.480... | 0.73756516 | 0 |
Path to the config zip bundle. | def AWa1(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'config_bundle') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def jizk():\n return './' + vg61",
"def Nu1S(YKHO):\n return zOLB(YKHO.prefix.etc.bohrium, 'config.ini')",
"def pmON(YKHO):\n return Hy7s.path.join(YKHO.config.get('path', Hy7s.getcwd()))",
"def igzT(pmON: pathlib.Path) -> oAb3.Path:\n retu... | [
"0.7283038",
"0.6995751",
"0.6866358",
"0.6786433",
"0.67606413",
"0.66499025",
"0.662366",
"0.66044086",
"0.65981674",
"0.6558877",
"0.6554403",
"0.6544566",
"0.6537482",
"0.6535534",
"0.6524432",
"0.65130174",
"0.6508878",
"0.6441182",
"0.64047194",
"0.63971",
"0.6379755",
... | 0.61901206 | 33 |
The Apigee Organization name associated with the Apigee instance. | def g9KT(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'org_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ejLf(YKHO):\n if YKHO.organization is not None:\n return YKHO.organization.name\n return ''",
"def Ovk1(YKHO):\n if 'vppOrganizationName' in YKHO._prop_dict:\n return YKHO._prop_dict['vppOrganizationName']\n else:\n return None",
"def gZ75(YKHO) -> str:\n return qe4Y.get... | [
"0.81171525",
"0.7516329",
"0.7502677",
"0.74622196",
"0.73833174",
"0.7252722",
"0.71921974",
"0.7140922",
"0.7140922",
"0.7103832",
"0.7103334",
"0.70069987",
"0.6892309",
"0.6878696",
"0.68732154",
"0.68732154",
"0.6774168",
"0.6617596",
"0.6591997",
"0.6591997",
"0.657811... | 0.64333826 | 24 |
Path to the config zip bundle. | def AWa1(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'config_bundle') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def jizk():\n return './' + vg61",
"def Nu1S(YKHO):\n return zOLB(YKHO.prefix.etc.bohrium, 'config.ini')",
"def pmON(YKHO):\n return Hy7s.path.join(YKHO.config.get('path', Hy7s.getcwd()))",
"def igzT(pmON: pathlib.Path) -> oAb3.Path:\n retu... | [
"0.7283038",
"0.6995751",
"0.6866358",
"0.6786433",
"0.67606413",
"0.66499025",
"0.662366",
"0.66044086",
"0.65981674",
"0.6558877",
"0.6554403",
"0.6544566",
"0.6537482",
"0.6535534",
"0.6524432",
"0.65130174",
"0.6508878",
"0.6441182",
"0.64047194",
"0.63971",
"0.6379755",
... | 0.59009606 | 71 |
The id of the most recently created revision for this shared flow. | def xif0(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'latest_revision_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gla_(YKHO):\n try:\n return YKHO.get_latest_revision().get('id', 0)\n except fFqq:\n return 0",
"def ec7i(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'revision_id')",
"def xif0(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'latest_revision_id')",
"def ec7i(YKHO) -> h... | [
"0.76812416",
"0.72882044",
"0.72706366",
"0.6977183",
"0.6530618",
"0.6506168",
"0.6498441",
"0.6498441",
"0.64886236",
"0.64559025",
"0.64507973",
"0.6387955",
"0.63512534",
"0.63470894",
"0.6335843",
"0.6329425",
"0.63035214",
"0.6292592",
"0.6292592",
"0.6292592",
"0.6292... | 0.70386684 | 3 |
The Apigee Organization name associated with the Apigee instance. | def g9KT(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'org_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ejLf(YKHO):\n if YKHO.organization is not None:\n return YKHO.organization.name\n return ''",
"def Ovk1(YKHO):\n if 'vppOrganizationName' in YKHO._prop_dict:\n return YKHO._prop_dict['vppOrganizationName']\n else:\n return None",
"def gZ75(YKHO) -> str:\n return qe4Y.get... | [
"0.81171525",
"0.7516329",
"0.7502677",
"0.74622196",
"0.73833174",
"0.7252722",
"0.71921974",
"0.7140922",
"0.7140922",
"0.7103832",
"0.7103334",
"0.70069987",
"0.6892309",
"0.6878696",
"0.68732154",
"0.68732154",
"0.6774168",
"0.6617596",
"0.6591997",
"0.6591997",
"0.657811... | 0.6291727 | 28 |
Get an existing Sharedflow resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, AWa1: Optional[pulumi.Input[str]]=None, Ule1: Optional[pulumi.Input[str]]=None, xif0: Optional[pulumi.Input[str]]=None, ZIgK: Optional[pulumi.Input[str]]=None, F8xl: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['Shar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, ul9_: Optional[pulumi.Input[str]]=None, qDzk: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, vdqp: Optional[pulumi.Input[str]]=None, VPRs: Optional[pulumi.Input... | [
"0.59822434",
"0.59443784",
"0.585369",
"0.5806733",
"0.5799817",
"0.5738055",
"0.5719232",
"0.57172894",
"0.56600094",
"0.5652182",
"0.56423956",
"0.55507535",
"0.55300856",
"0.55063367",
"0.54463834",
"0.54358244",
"0.5416559",
"0.5413932",
"0.5364564",
"0.5353318",
"0.5301... | 0.71794796 | 0 |
Path to the config zip bundle. | def AWa1(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'config_bundle') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def jizk():\n return './' + vg61",
"def Nu1S(YKHO):\n return zOLB(YKHO.prefix.etc.bohrium, 'config.ini')",
"def pmON(YKHO):\n return Hy7s.path.join(YKHO.config.get('path', Hy7s.getcwd()))",
"def igzT(pmON: pathlib.Path) -> oAb3.Path:\n retu... | [
"0.7283038",
"0.6995751",
"0.6866358",
"0.6786433",
"0.67606413",
"0.66499025",
"0.662366",
"0.66044086",
"0.65981674",
"0.6558877",
"0.6544566",
"0.6537482",
"0.6535534",
"0.6524432",
"0.65130174",
"0.6508878",
"0.6441182",
"0.64047194",
"0.63971",
"0.6379755",
"0.6367533",
... | 0.6554403 | 10 |
The id of the most recently created revision for this shared flow. | def xif0(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'latest_revision_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gla_(YKHO):\n try:\n return YKHO.get_latest_revision().get('id', 0)\n except fFqq:\n return 0",
"def ec7i(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'revision_id')",
"def xif0(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'latest_revision_id')",
"def ec7i(YKHO)... | [
"0.76812416",
"0.72882044",
"0.70386684",
"0.6977183",
"0.6530618",
"0.6506168",
"0.6498441",
"0.6498441",
"0.64886236",
"0.64559025",
"0.64507973",
"0.6387955",
"0.63512534",
"0.63470894",
"0.6335843",
"0.6329425",
"0.63035214",
"0.6292592",
"0.6292592",
"0.6292592",
"0.6292... | 0.72706366 | 2 |
The Apigee Organization name associated with the Apigee instance. | def g9KT(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'org_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ejLf(YKHO):\n if YKHO.organization is not None:\n return YKHO.organization.name\n return ''",
"def Ovk1(YKHO):\n if 'vppOrganizationName' in YKHO._prop_dict:\n return YKHO._prop_dict['vppOrganizationName']\n else:\n return None",
"def gZ75(YKHO) -> str:\n return qe4Y.get... | [
"0.81171525",
"0.7516329",
"0.7502677",
"0.74622196",
"0.73833174",
"0.7252722",
"0.71921974",
"0.7140922",
"0.7140922",
"0.7103832",
"0.7103334",
"0.70069987",
"0.6892309",
"0.6878696",
"0.68732154",
"0.68732154",
"0.6617596",
"0.6591997",
"0.6591997",
"0.6578113",
"0.657037... | 0.6774168 | 16 |
Returns information needed to create and access members of the numpy array based upon the string names given to them in the model file. | def EuYY(zbDt, ahQW):
if isinstance(zbDt, list):
U6D_ = zbDt[0]
else:
U6D_ = zbDt
dQgj = []
AGPF = {}
xJ4o = 0
UqER = U6D_.replace('!', '').replace(' ', '').split(',')
for U6D_ in UqER:
if U6D_ in ahQW.keys():
if isinstance(ahQW[U6D_], list):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V4A3():\n nPrm = oyIN.loadtxt('u_sol_meta.txt', dtype=int)\n return nPrm",
"def Rtev(YKHO, str, XTiz):\n try:\n if YKHO.model_aligned is None:\n YKHO.model_aligned = BsCR.msg.ModelMsg()\n if YKHO.data_aligned is None:\n YKHO.data_aligned = BsCR.msg.ModelMsg()\n ... | [
"0.5752396",
"0.5697247",
"0.566183",
"0.56597584",
"0.56410146",
"0.5611665",
"0.55960697",
"0.55573547",
"0.5532038",
"0.54913133",
"0.54846275",
"0.54447067",
"0.54179895",
"0.541514",
"0.54105467",
"0.5406376",
"0.53921825",
"0.53917456",
"0.5362444",
"0.5347126",
"0.5343... | 0.50603986 | 65 |
Test Verify request with missing brand value Should fail with status code 2. | def KSIG(YKHO, hl9o):
_hkX = G4JS.get(QTUw.format('json', hl9o[0], hl9o[1], '', thOB))
assert _hkX.status_code == 200
assert _hkX.headers['Content-Type'] == 'application/json'
assert _hkX.json()['status'] == '2'
assert _hkX.json()['error_text'] == vO6F.format('brand') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3iM(YKHO, hl9o, DkIV):\n _hkX = G4JS.get(QTUw.format('json', hl9o[0], hl9o[1], DkIV, thOB))\n assert _hkX.status_code == 200\n assert _hkX.headers['Content-Type'] == 'application/json'\n assert _hkX.json()['status'] == '3'\n assert _hkX.json()['error_text'] == CzHL.format('brand')",
"def i3iM... | [
"0.7527192",
"0.74593455",
"0.65705734",
"0.65206546",
"0.65159154",
"0.650097",
"0.6480939",
"0.646824",
"0.64556175",
"0.64105755",
"0.6371035",
"0.63585746",
"0.6358118",
"0.63550997",
"0.63507974",
"0.6335049",
"0.6279814",
"0.6270002",
"0.6243947",
"0.6223656",
"0.615021... | 0.8299026 | 0 |
Test Verify request with missing number value Should fail with status code 2. | def NKU5(YKHO, hl9o):
_hkX = G4JS.get(QTUw.format('json', hl9o[0], hl9o[1], 'TestApp', ''))
assert _hkX.status_code == 200
assert _hkX.headers['Content-Type'] == 'application/json'
assert _hkX.json()['status'] == '2'
assert _hkX.json()['error_text'] == vO6F.format('number') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLKj():\n geh0 = TgwQ.number({'body': '{}'}, {})\n assert geh0['statusCode'] == 422",
"def S1QV(YKHO, hl9o, FGW3):\n _hkX = G4JS.get(QTUw.format('json', hl9o[0], hl9o[1], 'TestApp', FGW3))\n assert _hkX.status_code == 200\n assert _hkX.headers['Content-Type'] == 'application/json'\n assert ... | [
"0.77207595",
"0.76499265",
"0.73036575",
"0.7118488",
"0.7052097",
"0.6802697",
"0.6757512",
"0.67412406",
"0.6737935",
"0.67317605",
"0.67129725",
"0.671236",
"0.671116",
"0.6654235",
"0.665321",
"0.66414976",
"0.66390216",
"0.6638087",
"0.6602569",
"0.65924805",
"0.6590433... | 0.8145963 | 0 |
Test Verify request with various invalid country values. Each request should fail with status code 3. | def Qx4n(YKHO, hl9o, vxW9):
_hkX = G4JS.get(QTUw.format('json', hl9o[0], hl9o[1], 'TestApp', thOB), params={'country': vxW9})
assert _hkX.status_code == 200
assert _hkX.headers['Content-Type'] == 'application/json'
assert _hkX.json()['status'] == '3'
assert _hkX.json()['error_text'] == W2HG.format('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cpzV(YKHO):\n nPrm = YKHO.valid_payload\n nPrm['nationality'] = 500\n geh0 = YKHO.client.post(gxEw('contacts'), data=qQXR.dumps(nPrm), content_type='application/json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def UE12(YKHO, hl9o, vxW9):\n _hkX = G4JS.get(QTUw.format('... | [
"0.76502514",
"0.75579715",
"0.6922745",
"0.67692876",
"0.65385807",
"0.64556086",
"0.6448754",
"0.64330894",
"0.6366458",
"0.63648164",
"0.63454086",
"0.6327804",
"0.63264453",
"0.63224614",
"0.6249265",
"0.6246183",
"0.62318015",
"0.62281466",
"0.6216486",
"0.61520356",
"0.... | 0.7675625 | 0 |
Test restricted PUT request for Verify API. Should fail with HTTP response code 403. | def J4ml(YKHO, hl9o):
_hkX = G4JS.put(QTUw.format('json', hl9o[0], hl9o[1], 'TestApp', thOB))
assert _hkX.status_code == 403 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xlwL(YKHO):\n if not YKHO.url:\n return\n geh0 = YKHO.client.put(YKHO.url, {}, format='json')\n YKHO.assertIn(geh0.status_code, [jGRS.HTTP_405_METHOD_NOT_ALLOWED, jGRS.HTTP_401_UNAUTHORIZED])",
"def CqkI(YKHO):\n geh0 = YKHO.client.put(YKHO.get_url(), {})\n YKHO.assertEqual(geh0.status_... | [
"0.79548436",
"0.78114045",
"0.75909805",
"0.75813395",
"0.7576684",
"0.74793416",
"0.74729383",
"0.74062437",
"0.7315796",
"0.72243464",
"0.71211046",
"0.7096399",
"0.70668197",
"0.70668197",
"0.70577997",
"0.70344",
"0.7024218",
"0.7013273",
"0.69723976",
"0.68880117",
"0.6... | 0.7766535 | 2 |
Test restricted PATCH request for Verify API. Should fail with HTTP response code 403. | def U7rj(YKHO, hl9o):
_hkX = G4JS.patch(QTUw.format('json', hl9o[0], hl9o[1], 'TestApp', thOB))
assert _hkX.status_code == 403 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g4Yd(YKHO):\n if not YKHO.url:\n return\n geh0 = YKHO.client.patch(YKHO.url, {}, format='json')\n YKHO.assertIn(geh0.status_code, [jGRS.HTTP_405_METHOD_NOT_ALLOWED, jGRS.HTTP_401_UNAUTHORIZED])",
"def fYra(YKHO):\n geh0 = YKHO.httpbin_4.test_requests_patch_method()\n YKHO.assertEqual(ge... | [
"0.8240094",
"0.78260213",
"0.7820633",
"0.7321083",
"0.7242652",
"0.7111741",
"0.70515025",
"0.7012251",
"0.6983282",
"0.6938487",
"0.68935174",
"0.68935174",
"0.68321675",
"0.6745928",
"0.67293745",
"0.6723776",
"0.6702492",
"0.6695284",
"0.669198",
"0.66165584",
"0.6588495... | 0.75707245 | 3 |
Test restricted DELETE request for Verify API. Should fail with HTTP response code 403. | def mc5s(YKHO, hl9o):
_hkX = G4JS.delete(QTUw.format('json', hl9o[0], hl9o[1], 'TestApp', thOB))
assert _hkX.status_code == 403 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xD4r(YKHO):\n if not YKHO.url:\n return\n geh0 = YKHO.client.delete(YKHO.url, {}, format='json')\n YKHO.assertIn(geh0.status_code, [jGRS.HTTP_405_METHOD_NOT_ALLOWED, jGRS.HTTP_401_UNAUTHORIZED])",
"def R2UQ(YKHO):\n geh0 = YKHO.httpbin_4.test_requests_delete_method()\n YKHO.assertEqual(... | [
"0.79818076",
"0.77895",
"0.77523166",
"0.7589787",
"0.75405",
"0.7525945",
"0.74339676",
"0.7412615",
"0.73589504",
"0.73357993",
"0.7333994",
"0.732221",
"0.73218495",
"0.731201",
"0.7301917",
"0.7242355",
"0.7241946",
"0.72242445",
"0.7179126",
"0.716601",
"0.7153246",
"... | 0.7875675 | 1 |
Return the tracers to compute the independent covariance workspaces. | def rioB(YKHO, wGKH=False):
ulof = YKHO.io.get_sacc_file()
Xkhf = ulof.get_tracer_combinations()
_PsJ = []
Ffvl = []
for YRbF, fJBW in enumerate(Xkhf):
j93S, Nqp_ = YKHO.get_tracer_comb_spin(fJBW)
zNW6, HDPQ = [YKHO.mask_names[nXnc] for nXnc in fJBW]
for hu_K in Xkhf[YRbF:]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xt7_(YKHO):\n return (YKHO.__XPEnsembleBefore, YKHO.__XPEnsembleAfter)",
"def naBM(YKHO):\n ...",
"def MLQR(YKHO):\n return oyIN.dot(YKHO._Phi.T, oyIN.dot(YKHO._sigma_W, YKHO._Phi))",
"def MqSa(YKHO, **B2fa):\n IXf4, lQRH, Df4j = YKHO.get_tracer_info(return_noise_coupled=True)\n nAyt = YKH... | [
"0.5634948",
"0.56146663",
"0.55264515",
"0.5499077",
"0.54395944",
"0.54240656",
"0.5408449",
"0.53271437",
"0.5289332",
"0.5191894",
"0.51264536",
"0.5082605",
"0.50139487",
"0.5003587",
"0.49764603",
"0.49627328",
"0.49625468",
"0.49344084",
"0.49140158",
"0.49139526",
"0.... | 0.49436438 | 17 |
Return the remaining covariance tracers combinations. It will remove the tracer combinations used to compute the workspaces and covariance workspaces. | def d0sV(YKHO):
Ffvl = YKHO.get_list_of_tracers_for_cov()
CmNk = YKHO.get_list_of_tracers_for_cov_wsp()
for fhU0 in CmNk:
Ffvl.remove(fhU0)
return Ffvl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MqSa(YKHO, **B2fa):\n IXf4, lQRH, Df4j = YKHO.get_tracer_info(return_noise_coupled=True)\n nAyt = YKHO.get_list_of_tracers_for_wsp()\n CmNk = YKHO.get_list_of_tracers_for_cov_wsp(remove_trs_wsp=True)\n dpPn = YKHO.get_list_of_tracers_for_cov_without_trs_wsp_cwsp()\n rmyT = []\n QJJm = []\n ... | [
"0.58636063",
"0.557694",
"0.53534746",
"0.51565015",
"0.51511306",
"0.5109525",
"0.502225",
"0.50152045",
"0.49989572",
"0.4948857",
"0.4909146",
"0.4867145",
"0.48559666",
"0.48379377",
"0.48266694",
"0.48099142",
"0.4793617",
"0.4781395",
"0.4779724",
"0.47619644",
"0.4758... | 0.5672852 | 1 |
Return a dictionary with the workspaces for the given tracers. | def Z9Fg(YKHO, TIUz, Pyrc, wyyA=None, V_D6=None, oGem=None, **B2fa):
GvXx = YKHO.get_mask_names_dict(TIUz)
if oGem is None:
oGem = YKHO.get_masks_dict(TIUz, wyyA)
if V_D6 is None:
V_D6 = YKHO.get_fields_dict(TIUz, wyyA, masks=oGem)
if wyyA is None:
wyyA = {}
h5Kc = YKHO.nmt_c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qWwU(YKHO):\n return Rops(client=YKHO)",
"def TVRp(PNq_, ED6X=False, gYza=False):\n i2I_ = 'CMAKE_PREFIX_PATH'\n BWXx = PNq_[i2I_] if i2I_ in PNq_ else ''\n ckRy = [pmON for pmON in BWXx.split(Hy7s.pathsep) if pmON]\n qWwU = [pmON for pmON in ckRy if Hy7s.path.isfile(Hy7s.path.join(pmON, xdHI)... | [
"0.61350834",
"0.5921812",
"0.56038654",
"0.54939324",
"0.5484076",
"0.5455866",
"0.53780025",
"0.53523856",
"0.52552027",
"0.5165345",
"0.50992",
"0.5087015",
"0.5063419",
"0.50469375",
"0.5031635",
"0.49122727",
"0.49098918",
"0.4897525",
"0.48877034",
"0.48779872",
"0.4871... | 0.611199 | 1 |