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 |
|---|---|---|---|---|---|---|
Add a peak to this cluster. | def H2v5(YKHO, hfRT):
YKHO.peaks.append(hfRT)
YKHO.end = max(YKHO.end, hfRT.end)
YKHO.len = YKHO.start - YKHO.end
YKHO.count += 1
YKHO.pops.append(hfRT.pop)
YKHO.fold_change = (YKHO.fold_change + hfRT.fold_change) / 2
YKHO.log10p = (YKHO.log10p + hfRT.log10p) / 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wl3p(YKHO, hfRT):\n YKHO.sequence.append({'type': 'foundPeak', 'coord': hfRT})",
"def hfRT(YKHO):\n pass",
"def npHp(YKHO, XP5J):\n YKHO.peak = XP5J",
"def hfRT(YKHO):\n return YKHO.peak",
"def hfRT(YKHO):\n return YKHO._data[0]",
"def gzBX(YKHO, UXr5):\n raise drfY('Finder had no p... | [
"0.6952894",
"0.6380414",
"0.6218962",
"0.5416108",
"0.5400935",
"0.5379657",
"0.53623825",
"0.5355127",
"0.5292391",
"0.51798177",
"0.51113623",
"0.50968796",
"0.5028456",
"0.5016791",
"0.49638537",
"0.4945158",
"0.48710155",
"0.4830253",
"0.4813596",
"0.47821036",
"0.475357... | 0.7404187 | 0 |
Return file handle of file regardless of zipped or not. Text mode enforced for compatibility with python2. | def kiFR(apum, Tuqy='r'):
Tuqy = Tuqy[0] + 't'
UVov = Tuqy
if hasattr(apum, 'write'):
return apum
if isinstance(apum, str):
if apum.endswith('.gz'):
return lGU7.open(apum, Tuqy)
if apum.endswith('.bz2'):
if hasattr(FNO7, 'open'):
return FNO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UNtK(zip, Ux0P):\n if isinstance(zip, GO9B):\n return zip.open(Ux0P)\n else:\n return xDSY.TextIOWrapper(zip.open(Ux0P, 'r'), encoding='utf8')",
"def LtB9(VqRE, Tuqy, *, Rrsh=None, tZ2K=None, UAju=None, wN2A=None):\n if Rrsh:\n aIHS = Tuqy.replace('b', '').replace('t', '')\n ... | [
"0.64964736",
"0.64299065",
"0.6348069",
"0.62734354",
"0.61643595",
"0.6111869",
"0.61030376",
"0.60944647",
"0.5920198",
"0.58220613",
"0.57453364",
"0.5724395",
"0.5721311",
"0.5685008",
"0.567374",
"0.5657052",
"0.56300277",
"0.5614082",
"0.5614082",
"0.56082886",
"0.5586... | 0.6201446 | 4 |
return list of all groups id's where player is the owner | def nqQr(YKHO, oyg0: str) -> list:
return [uOe2 for uOe2 in YKHO._groups if YKHO._groups[uOe2]['player'] == oyg0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MvIi(YKHO):\n Narx = YKHO.get()\n u8YN = []\n if Narx:\n for wvau in pNZh.match(start_node=Narx, rel_type='in'):\n u8YN.append(pTpi(id=wvau.end_node()['id']))\n return u8YN",
"def MvIi(YKHO, YEnM):\n h4wE = vun1(YEnM)\n return [WKvO.id for WKvO in h4wE]",
"def ccl4(YKHO)... | [
"0.6568522",
"0.65168047",
"0.64288473",
"0.6422493",
"0.6243459",
"0.6239092",
"0.61937416",
"0.61693347",
"0.6161194",
"0.6145746",
"0.6113854",
"0.6108952",
"0.6093858",
"0.6059349",
"0.6035539",
"0.60080665",
"0.59834534",
"0.5961168",
"0.59402305",
"0.58921856",
"0.58681... | 0.7803114 | 0 |
Get information about current playing item | def ym1V(YKHO):
YKHO.logger.debug('Fetching currently playing information')
try:
h0vI = NnkB(YKHO.url('/jsonrpc', True))
oyg0 = h0vI.Player.GetActivePlayers()[0]
adHx = oyg0['playerid']
if oyg0['type'] == 'video':
bjd4 = ['speed', 'position', 'time', 'totaltime', 'per... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RK4T(YKHO):\n return YKHO.get(J1jo, 'GetMusicInfo')",
"def kTCt(YKHO):\n return YKHO.item",
"def kTCt(YKHO):\n return YKHO.item",
"def A0t9():\n Kt_s = DAt9('webview/t/now_playing.html')\n A3Vt = Kt_s.render(cFqH({'now_playing': REE8}))\n return A3Vt",
"def jGRS(YKHO):\n tO9_ = Non... | [
"0.67777663",
"0.6668891",
"0.6668891",
"0.63178694",
"0.63054585",
"0.6297474",
"0.6271164",
"0.6243441",
"0.62359065",
"0.61851037",
"0.6185019",
"0.6183303",
"0.6180103",
"0.61662066",
"0.6115445",
"0.6060738",
"0.60542786",
"0.60418993",
"0.6037503",
"0.6008975",
"0.60042... | 0.7455609 | 0 |
Check if the argument `arg_name` is mandatory. | def DxAd(YKHO, WLRG):
return WLRG in YKHO.get_mandatory_args() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gY9O(BWXx, WLRG):\n if BWXx is None or BWXx == '':\n HwRy.stderr.write('The ' + WLRG + ' argument is mandatory.\\n')\n HwRy.exit('Invalid input')",
"def O23I(YKHO, WLRG):\n raise NotImplementedError('ICallable.has_arg')",
"def QGVw(YKHO, qIxc):\n if len(qIxc) == 0:\n print('No... | [
"0.7754579",
"0.70682615",
"0.6923531",
"0.68402016",
"0.6792005",
"0.67807925",
"0.65515625",
"0.65259904",
"0.64652187",
"0.644721",
"0.6427926",
"0.6339972",
"0.62767094",
"0.62161946",
"0.6090793",
"0.6080348",
"0.60725844",
"0.6066505",
"0.6065314",
"0.6064399",
"0.60621... | 0.8900179 | 0 |
Sum an array over the latitude and longitude dimensions. | def L4iB(ezWE):
return ezWE.sum(C8PP.LAT_STR).sum(C8PP.LON_STR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_qW(Sxzb):\n zr3f = pcfj.geo_m(Sxzb)\n sum = 0\n UHFx = 0\n nPrm = oyIN.zeros(zr3f.size)\n for Csk6 in zr3f:\n sum += Csk6\n nPrm[UHFx] = sum\n UHFx += 1\n return nPrm",
"def ZGwj(jzdc, **c_sp):\n return oyIN.sum(oyIN.ascontiguousarray(jzdc), axis=-1, **c_sp)",
"d... | [
"0.64502245",
"0.6207058",
"0.60490465",
"0.58714014",
"0.5825379",
"0.5756719",
"0.5718592",
"0.5710989",
"0.5643108",
"0.56417847",
"0.56413555",
"0.56291634",
"0.56116784",
"0.55120707",
"0.55063874",
"0.5505126",
"0.5470343",
"0.5461687",
"0.5458216",
"0.5439408",
"0.5425... | 0.78578496 | 0 |
Instantiate a Region object. If a region spans across the endpoint of the data's longitude array (i.e. it crosses the Prime Meridian for data with longitudes spanning 0 to 360), it must be defined as the union of two sections extending to the east and to the west of the Prime Meridian. | def FIMM(YKHO, mWFP='', JBZA='', y6qv=[], yHNO=[], JTRy=[], C3vb=False):
YKHO.name = mWFP
YKHO.description = JBZA
if y6qv and yHNO and (not JTRy):
YKHO.mask_bounds = [(yHNO, y6qv)]
else:
YKHO.mask_bounds = JTRy
YKHO.do_land_mask = C3vb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s5AZ(YKHO):\n jNOo = YKHO.convert_coords()\n RKD7.debug(jNOo)\n gAx4 = ['color', 'dash', 'dashlist', 'width', 'font', 'symsize', 'symbol', 'symsize', 'fontsize', 'fontstyle', 'usetex', 'labelpos', 'labeloff', 'linewidth', 'linestyle', 'point', 'textangle', 'fontweight']\n if isinstance(jNOo[0], UJN... | [
"0.63053006",
"0.61687976",
"0.6125895",
"0.6087599",
"0.58740324",
"0.580751",
"0.5777614",
"0.57774085",
"0.5741435",
"0.57384056",
"0.57265013",
"0.5713294",
"0.5701933",
"0.56727165",
"0.5537091",
"0.543792",
"0.54341775",
"0.5381034",
"0.5349791",
"0.53306013",
"0.532360... | 0.0 | -1 |
Standard deviation of regionaverage timeseries. | def M1Jx(YKHO, nPrm):
vtSS = YKHO.ts(nPrm)
if 'year' not in vtSS.coords:
return vtSS
return vtSS.std('year') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTIN(qw7D):\n if not qw7D or len(qw7D) == 1:\n return 0\n S8vG = GSLK['mean_arithmetic'](qw7D)\n I8JS = map(lambda WKvO: (WKvO - S8vG) ** 2, qw7D)\n ee6l = GSLK['mean_arithmetic'](I8JS)\n return epAf.sqrt(ee6l)",
"def z2bo(Mkmy):\n qqgr = S8vG(Mkmy)\n kGeR = sum([(YRbF - qqgr) ** ... | [
"0.73579425",
"0.73224527",
"0.7210962",
"0.7085255",
"0.70257044",
"0.70104164",
"0.7002761",
"0.6999386",
"0.6996699",
"0.6960966",
"0.6922874",
"0.6914699",
"0.68882704",
"0.68609214",
"0.6852386",
"0.6829597",
"0.681832",
"0.6818129",
"0.6817461",
"0.6782195",
"0.67674816... | 0.66603476 | 32 |
A port of the functionality of in_cksum() from ping.c Ideally this would act on the string as a series of 16bit ints (host packed), but this works. Network data is bigendian, hosts are typically littleendian | def yRui(zfuf):
JaIM = int(len(zfuf) / 2) * 2
sum = 0
UHFx = 0
iEvl = 0
oAxN = 0
while UHFx < JaIM:
if abwh == 'little':
iEvl = zfuf[UHFx]
oAxN = zfuf[UHFx + 1]
else:
iEvl = zfuf[UHFx + 1]
oAxN = zfuf[UHFx]
sum = sum + (ord(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zqOS(zfuf):\n if len(zfuf) % 2:\n zfuf += '\\x00'\n DwRD = qw7D.array('H', zfuf)\n if HwRy.byteorder == 'big':\n DwRD.bytewap()\n wEf2 = sum(DwRD)\n wEf2 &= 4294967295\n wEf2 = (wEf2 >> 16) + (wEf2 & 65535)\n wEf2 += wEf2 >> 16\n ANfV = ~wEf2 & 65535\n ANfV = GGmw.htons... | [
"0.6901242",
"0.6826661",
"0.6166087",
"0.6124918",
"0.60836464",
"0.59694684",
"0.5967868",
"0.59589195",
"0.5887343",
"0.58318347",
"0.5816561",
"0.5809599",
"0.57735616",
"0.5735805",
"0.5701893",
"0.5671904",
"0.5660636",
"0.56178164",
"0.56142515",
"0.56102103",
"0.55950... | 0.662299 | 2 |
Tests to check that the ip binary is both existing and executable | def xdPu(Sd0C):
import os
return os.path.isfile(Sd0C) and os.access(Sd0C, os.X_OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C6TW(KcEq):\n KcEq.file(SO4K).exists",
"def BtFO(YKHO):\n if RDuA.which(YKHO.binary):\n return True\n else:\n G9jH.warning(A3Vt + 'The supplied binary or path does not exist... Exiting' + XcU5)\n exit(1)",
"def hoYn(neaT):\n try:\n ypig = Yn3K.check_output(['which', ... | [
"0.6890221",
"0.66422766",
"0.6618069",
"0.66121614",
"0.64765495",
"0.6438529",
"0.632655",
"0.6285194",
"0.6247665",
"0.61838907",
"0.61346996",
"0.6055075",
"0.60460854",
"0.60087377",
"0.59815407",
"0.5950691",
"0.5943396",
"0.5911114",
"0.58980256",
"0.58867633",
"0.5882... | 0.0 | -1 |
Tests that a valid nickname is deemed valid | def cXal(YKHO):
YKHO.assertEqual(first=LYP8.format_trainer_code('111122223333'), second='1111 2222 3333') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jgbH(YKHO, dP7V):\n for hcXw in dP7V:\n if not hcXw.isdigit() and (not hcXw.isalpha()):\n raise IyFz.ValidationError('Nickname contains characters that are not numbers nor letters.')\n return dP7V",
"def G3sG(CVgL):\n if not q5CT < len(CVgL) < Qfzv:\n return False\n r8bT ... | [
"0.78913736",
"0.7589311",
"0.73727137",
"0.7255789",
"0.725182",
"0.7126826",
"0.70817244",
"0.704509",
"0.7013513",
"0.69120085",
"0.6886412",
"0.68635315",
"0.68081886",
"0.67777926",
"0.67737234",
"0.672804",
"0.67146164",
"0.66870165",
"0.6686512",
"0.6677102",
"0.666763... | 0.8228256 | 0 |
Name of the broker. | def xK8n(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'broker_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xK8n(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'broker_name')",
"def mWFP(YKHO):\n return '{} {}'.format(YKHO._clientname, YKHO._name)",
"def zp4y(dxwd=None):\n pass",
"def ldbq(YKHO) -> str:\n return qe4Y.get(YKHO, 'delivery_channel_name')",
"def ldbq(YKHO) -> str:\n return qe4... | [
"0.8728616",
"0.6610538",
"0.6537796",
"0.65365344",
"0.65365344",
"0.65365344",
"0.6383963",
"0.6353745",
"0.6351735",
"0.6351735",
"0.6303344",
"0.6276458",
"0.622978",
"0.6229164",
"0.6202573",
"0.62012804",
"0.61884606",
"0.6156356",
"0.61429304",
"0.6103458",
"0.60999596... | 0.83233035 | 2 |
List of subnet IDs in which to launch the broker. A `SINGLE_INSTANCE` deployment requires one subnet. An `ACTIVE_STANDBY_MULTI_AZ` deployment requires multiple subnets. | def pAck(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'subnet_ids') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['ResourceIdArgs']]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def pAck(YKHO) -> qe4Y.Input[bdI... | [
"0.75503856",
"0.75484973",
"0.74949217",
"0.7348017",
"0.7348017",
"0.7348017",
"0.7342196",
"0.7189892",
"0.7189892",
"0.7166254",
"0.70746905",
"0.70746905",
"0.70746905",
"0.7070669",
"0.7033409",
"0.6867835",
"0.68383294",
"0.68383294",
"0.67263055",
"0.6678942",
"0.6672... | 0.7413906 | 5 |
Map of tags to assign to the broker. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel. | def dJ1p(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) ->... | [
"0.606254",
"0.606254",
"0.60574615",
"0.60574615",
"0.60574615",
"0.60574615",
"0.58956105",
"0.58736855",
"0.5815294",
"0.5806402",
"0.57935935",
"0.57886183",
"0.57753205",
"0.5653901",
"0.56476367",
"0.56439185",
"0.55700433",
"0.554056",
"0.554056",
"0.554056",
"0.546022... | 0.0 | -1 |
ARN of the broker. | def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xK8n(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'broker_name')",
"def nDi7(YKHO) -> str:\n return qe4Y.get(YKHO, 'topic_arn')",
"def nDi7(YKHO) -> str:\n return YKHO['Sns']['TopicArn']",
"def Ljej(YKHO):\n if not YKHO.topic_arn_prefix:\n YKHO.topic_arn_prefix = N5b_(YKHO.sns_co... | [
"0.69551474",
"0.67289007",
"0.6443844",
"0.6407738",
"0.6339225",
"0.6283615",
"0.6270799",
"0.6270799",
"0.6257132",
"0.61897296",
"0.61897296",
"0.61897296",
"0.61897296",
"0.61897296",
"0.61897296",
"0.61897296",
"0.61897296",
"0.61897296",
"0.61897296",
"0.61897296",
"0.... | 0.5454213 | 80 |
Name of the broker. | def xK8n(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'broker_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xK8n(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'broker_name')",
"def mWFP(YKHO):\n return '{} {}'.format(YKHO._clientname, YKHO._name)",
"def zp4y(dxwd=None):\n pass",
"def ldbq(YKHO) -> str:\n return qe4Y.get(YKHO, 'delivery_channel_name')",
"def ldbq(YKHO) -> str:\n return qe4... | [
"0.8728616",
"0.6610538",
"0.6537796",
"0.65365344",
"0.65365344",
"0.65365344",
"0.6383963",
"0.6353745",
"0.6351735",
"0.6351735",
"0.6303344",
"0.6276458",
"0.622978",
"0.6229164",
"0.6202573",
"0.62012804",
"0.61884606",
"0.6156356",
"0.61429304",
"0.6103458",
"0.60999596... | 0.83233035 | 1 |
List of subnet IDs in which to launch the broker. A `SINGLE_INSTANCE` deployment requires one subnet. An `ACTIVE_STANDBY_MULTI_AZ` deployment requires multiple subnets. | def pAck(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'subnet_ids') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['ResourceIdArgs']]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def pAck(YKHO) -> qe4Y.Input[bdI... | [
"0.75503856",
"0.75484973",
"0.74949217",
"0.7348017",
"0.7348017",
"0.7348017",
"0.7342196",
"0.7189892",
"0.7189892",
"0.7166254",
"0.70746905",
"0.70746905",
"0.70746905",
"0.7070669",
"0.7033409",
"0.6867835",
"0.68383294",
"0.68383294",
"0.67263055",
"0.6678942",
"0.6672... | 0.7413906 | 4 |
Map of tags to assign to the broker. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel. | def dJ1p(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) ->... | [
"0.606254",
"0.606254",
"0.60574615",
"0.60574615",
"0.60574615",
"0.60574615",
"0.58956105",
"0.58736855",
"0.5815294",
"0.5806402",
"0.57935935",
"0.57886183",
"0.57753205",
"0.5653901",
"0.56476367",
"0.56439185",
"0.55700433",
"0.554056",
"0.554056",
"0.554056",
"0.546022... | 0.0 | -1 |
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. | def TQje(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'tags_all') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) ->... | [
"0.7442922",
"0.7442922",
"0.74372643",
"0.74372643",
"0.74372643",
"0.74372643",
"0.71595305",
"0.7096487",
"0.70816255",
"0.70577693",
"0.69300693",
"0.6916472",
"0.68235135",
"0.67972314",
"0.67532057",
"0.6701463",
"0.66302735",
"0.66302735",
"0.66302735",
"0.66302735",
"... | 0.0 | -1 |
Get an existing Broker 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, KmXk: Optional[pulumi.Input[bool]]=None, hMqs: Optional[pulumi.Input[str]]=None, Vkpt: Optional[pulumi.Input[str]]=None, rlir: Optional[pulumi.Input[bool]]=None, xK8n: Optional[pulumi.Input[str]]=None, wOGa: Optional[pulumi.Input[pu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q_BA(ZuB6):\n BQtU = S8SU.get('State', ZuB6)\n if BQtU is None:\n eTsH(404)\n return pz3A(BQtU.to_dict())",
"def Q_BA(ZuB6):\n QTBn = S8SU.get(wHLO, ZuB6)\n if not QTBn:\n eTsH(404)\n return (pz3A(QTBn.to_dict()), 200)",
"def Q_BA(ZuB6):\n for H5ew, BWXx in S8SU.all('Stat... | [
"0.58474654",
"0.5841396",
"0.58206564",
"0.5734607",
"0.5674083",
"0.563005",
"0.56278497",
"0.555021",
"0.5538892",
"0.5452593",
"0.5434635",
"0.5374448",
"0.5358285",
"0.5334165",
"0.532351",
"0.52982545",
"0.5272039",
"0.52711546",
"0.5222293",
"0.51918983",
"0.51530343",... | 0.5958051 | 0 |
ARN of the broker. | def hMqs(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xK8n(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'broker_name')",
"def nDi7(YKHO) -> str:\n return qe4Y.get(YKHO, 'topic_arn')",
"def nDi7(YKHO) -> str:\n return YKHO['Sns']['TopicArn']",
"def Ljej(YKHO):\n if not YKHO.topic_arn_prefix:\n YKHO.topic_arn_prefix = N5b_(YKHO.sns_co... | [
"0.69551474",
"0.67289007",
"0.6443844",
"0.6407738",
"0.6339225",
"0.6283615",
"0.6270799",
"0.6270799",
"0.6257132",
"0.6172612",
"0.6156959",
"0.6156959",
"0.6156959",
"0.6156959",
"0.6156959",
"0.6146207",
"0.6146207",
"0.61393595",
"0.58863443",
"0.58863443",
"0.58863443... | 0.61897296 | 30 |
Name of the broker. | def xK8n(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'broker_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xK8n(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'broker_name')",
"def xK8n(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'broker_name')",
"def mWFP(YKHO):\n return '{} {}'.format(YKHO._clientname, YKHO._name)",
"def zp4y(dxwd=None):\n pass",
"def ldbq(YKHO) -> str:\n ... | [
"0.83233035",
"0.83233035",
"0.6610538",
"0.6537796",
"0.65365344",
"0.65365344",
"0.65365344",
"0.6383963",
"0.6353745",
"0.6351735",
"0.6351735",
"0.6303344",
"0.6276458",
"0.622978",
"0.6229164",
"0.6202573",
"0.62012804",
"0.61884606",
"0.6156356",
"0.61429304",
"0.610345... | 0.8728616 | 0 |
List of subnet IDs in which to launch the broker. A `SINGLE_INSTANCE` deployment requires one subnet. An `ACTIVE_STANDBY_MULTI_AZ` deployment requires multiple subnets. | def pAck(YKHO) -> qe4Y.Output[bdIy[str]]:
return qe4Y.get(YKHO, 'subnet_ids') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['ResourceIdArgs']]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'subnets')",
"def Npkd(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'subnets')",
"def pAck(YKHO) -> h8nf[qe4Y.Inpu... | [
"0.75503856",
"0.75484973",
"0.74949217",
"0.7413906",
"0.7413906",
"0.7413906",
"0.7348017",
"0.7348017",
"0.7348017",
"0.7342196",
"0.7189892",
"0.7189892",
"0.7166254",
"0.7070669",
"0.7033409",
"0.6867835",
"0.68383294",
"0.68383294",
"0.67263055",
"0.6678942",
"0.6672491... | 0.70746905 | 15 |
Map of tags to assign to the broker. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the providerlevel. | def dJ1p(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) ->... | [
"0.606254",
"0.606254",
"0.60574615",
"0.60574615",
"0.60574615",
"0.60574615",
"0.58956105",
"0.58736855",
"0.5815294",
"0.5806402",
"0.57935935",
"0.57886183",
"0.57753205",
"0.5653901",
"0.56476367",
"0.56439185",
"0.55700433",
"0.554056",
"0.554056",
"0.554056",
"0.543255... | 0.54602206 | 45 |
A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block. | def TQje(YKHO) -> qe4Y.Output[GySg[str, str]]:
return qe4Y.get(YKHO, 'tags_all') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) ->... | [
"0.7442922",
"0.7442922",
"0.74372643",
"0.74372643",
"0.74372643",
"0.74372643",
"0.71595305",
"0.7096487",
"0.70816255",
"0.70577693",
"0.69300693",
"0.6916472",
"0.68235135",
"0.67972314",
"0.67532057",
"0.6701463",
"0.66302735",
"0.66302735",
"0.66302735",
"0.66302735",
"... | 0.64104486 | 63 |
Returns formated timedelta string representation | def i2Ct(ZfUD):
if isinstance(ZfUD, fCoM):
C6wh = int(ZfUD.total_seconds())
Wave, K0A_ = divmod(C6wh, 3600)
O66n, C6wh = divmod(K0A_, 60)
p7fT = '{}h {}m {}s'.format(Wave, O66n, C6wh)
else:
raise TypeError(ZfUD, 'is not timedelta object')
return p7fT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QotR(YEnM):\n C6wh = int(YEnM.seconds) % 60\n O66n = int(YEnM.seconds / 60) % 60\n Wave = int(YEnM.seconds / 3600) % 24\n return '%d %02d:%02d:%02d' % (YEnM.days, Wave, O66n, C6wh)",
"def zji3(g75m: datetime.timedelta) -> str:\n return str(g75m)",
"def zji3(YKHO, BWXx):\n Y8BA = str(BWXx)... | [
"0.74144894",
"0.73528314",
"0.7307537",
"0.7288194",
"0.72773784",
"0.7070185",
"0.6843803",
"0.68035924",
"0.6795394",
"0.6678191",
"0.66690946",
"0.65893155",
"0.6561124",
"0.65476084",
"0.6545894",
"0.6495852",
"0.64728785",
"0.6436285",
"0.64282244",
"0.6426938",
"0.6426... | 0.6994802 | 6 |
Returns datetime object. Function used to convert string to datetime object. If date_string is already a datetime object just returns it. | def TvuN(JvEs, CidK='%Y-%m-%d'):
if isinstance(JvEs, str):
return qcWV.strptime(JvEs, CidK)
elif isinstance(JvEs, qcWV):
return JvEs
else:
raise TypeError(JvEs, 'is not a string or datetime object') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HJff(JvEs):\n try:\n return qcWV.datetime.strptime(JvEs, x8us)\n except Exception as e:\n print('Got exception parsing date {} with format {} {}'.format(JvEs, x8us, tTpl))",
"def B2pA(JvEs: str) -> JRYC.datetime:\n return JRYC.datetime.strptime(JvEs, asJJ().datetime_format)",
"def FU... | [
"0.8040265",
"0.78717506",
"0.781886",
"0.77506477",
"0.7701899",
"0.7701899",
"0.76960564",
"0.7671397",
"0.7650383",
"0.76367456",
"0.7630254",
"0.7624333",
"0.75221795",
"0.7506938",
"0.7483182",
"0.74683553",
"0.74263096",
"0.7317703",
"0.73175424",
"0.727061",
"0.7242163... | 0.73399264 | 17 |
Summarize values of two defaultdicts. Function sumarize two defaultdicts values if they both have similar keys or just adds key and value if don't | def GzJ0(b8V_, Elif):
for G1Hx, Ty9i in Elif.items():
b8V_[G1Hx] += Ty9i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b2go(jzdc: dict, Fg_i: dict) -> dict:\n if not jzdc:\n return Fg_i\n if not Fg_i:\n return jzdc\n bCtM = [H5ew for H5ew in jzdc if H5ew in Fg_i]\n TTm1 = jzdc | Fg_i\n for H5ew in bCtM:\n TTm1[H5ew] += jzdc[H5ew]\n return TTm1",
"def uO3S(YKHO, WbPA, S69B):\n for FhT... | [
"0.73068297",
"0.7038657",
"0.6947184",
"0.6885608",
"0.68774766",
"0.68165267",
"0.663558",
"0.65204126",
"0.64888173",
"0.6467172",
"0.6461064",
"0.6358043",
"0.63158417",
"0.6300903",
"0.6259106",
"0.62307036",
"0.6204824",
"0.6195062",
"0.616329",
"0.61411226",
"0.6138271... | 0.66640764 | 6 |
Overloaded equality operator for the class | def xa14(YKHO, Elif):
return str(YKHO) == str(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YK... | [
"0.8396269",
"0.8396269",
"0.8396269",
"0.8396269",
"0.8396269",
"0.8396269",
"0.8396269",
"0.8396269",
"0.8396269",
"0.8396269",
"0.8396269",
"0.8360098",
"0.8360098",
"0.8360098",
"0.8360098",
"0.8360098",
"0.8360098",
"0.8360098",
"0.8360098",
"0.8360098",
"0.8360098",
"... | 0.0 | -1 |
Return whether the episode should terminate. Terminate if max_step steps have passed | def j38M(YKHO, D5gV, sEAN):
_ins = sEAN.current_step >= YKHO.max_step
nyyK = False
return (YKHO.reward, _ins, nyyK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZMx3(YKHO):\n if YKHO._never_terminate:\n return False\n if YKHO._counter >= YKHO._max_steps:\n return True\n return YKHO.is_fallen()",
"def QDgs(YKHO):\n wdIo = YKHO._get_available_vehicles()\n if oyIN.sum(wdIo == 0) < YKHO.episode_threshold:\n return True\n else:\n ... | [
"0.7581827",
"0.70965433",
"0.7037806",
"0.70207846",
"0.7004036",
"0.70007825",
"0.68862116",
"0.67529184",
"0.65158343",
"0.6487399",
"0.6444401",
"0.6424382",
"0.64164233",
"0.6408329",
"0.634589",
"0.6321121",
"0.63011533",
"0.62767315",
"0.6198808",
"0.616694",
"0.613246... | 0.0 | -1 |
Creates a new AnalysisRequest object | def FIMM(YKHO, gTi_: str):
YKHO.request_id = gTi_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qJoj(YKHO):\n return VNUm()",
"def BPZw(YKHO, QePW: contact_center_insights.CreateAnalysisRequest=None, *, _AKB: str=None, d4r9: resources.Analysis=None, ZFzw: retries.Retry=uMLX.method.DEFAULT, vYBr: float=None, yIVm: Sequence[Tuple[str, str]]=()) -> oPhP.Operation:\n RRHz = any([_AKB, d4r9])\n if ... | [
"0.6017797",
"0.59626925",
"0.59556144",
"0.5861292",
"0.57329386",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
"0.569805",
... | 0.0 | -1 |
From group name, get group UUID | def UOSn(YKHO, KVlU, mWFP):
MDDt = {}
try:
moMn = KVlU.server_groups.list()
for uOe2 in moMn:
Osv6 = getattr(uOe2, 'name', '')
if mWFP == Osv6:
MDDt['group'] = getattr(uOe2, 'id', '')
except Exception as e:
na1r.exception(tTpl)
finally:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aiHR(YKHO, IXKo):\n return YKHO._group[IXKo]",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def XZ_F(hE03: BSONObjectId, mxTz: Token=JHvC(YvzV)):\n D2a8(mxTz.owner, 'sni.read_group')\n return ZMp9.from_record(c... | [
"0.6951393",
"0.68161505",
"0.68161505",
"0.67960966",
"0.6780895",
"0.67358655",
"0.6651917",
"0.6610393",
"0.6601873",
"0.6585751",
"0.6553352",
"0.65283877",
"0.6505381",
"0.6484785",
"0.6481061",
"0.64764214",
"0.64747655",
"0.63902175",
"0.63843095",
"0.63664514",
"0.635... | 0.64547014 | 17 |
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['Cache-Control'] = 'no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0'
geh0.headers['Pragma'] = 'no-cache'
geh0.headers['Expires'] = '-1'
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.8221727",
"0.8220911",
"0.8220911",
"0.8220911",
"0.8220911",
"0.81940746",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
... | 0.72363365 | 38 |
Test create_app without passing test config. | def zmu8():
assert LUif('testing', settings={'TESTING': True, 'SQLALCHEMY_TRACK_MODIFICATIONS': False}).testing | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5pL():\n assert not LUif().testing\n assert LUif({'TESTING': True}).testing",
"def zmu8():\n assert not mvm2.create_app().testing\n assert mvm2.create_app({'TESTING': True}).testing",
"def zmu8():\n assert not LUif().testing\n assert LUif(LV7V).testing",
"def x4Zm(P4t4):\n assert P4... | [
"0.88498396",
"0.8132289",
"0.8124712",
"0.803595",
"0.8010812",
"0.76881677",
"0.76236284",
"0.7604287",
"0.7598619",
"0.75018466",
"0.73570627",
"0.73001164",
"0.7252014",
"0.7214372",
"0.7185277",
"0.7180016",
"0.71766704",
"0.71629363",
"0.71615326",
"0.71521",
"0.7067521... | 0.7561507 | 9 |
Called when the user specifies an intent for this skill | def E97p(McO3, cuiw):
print('on_intent requestId=' + McO3['requestId'] + ', sessionId=' + cuiw['sessionId'])
E2VF = McO3['intent']
q8Qy = McO3['intent']['name']
if q8Qy == 'RandNumIntent':
return inDF(E2VF, cuiw)
elif q8Qy == 'RangeRandNumIntent':
return inDF(E2VF, cuiw)
elif q8Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r... | [
"0.7143966",
"0.6956116",
"0.6949057",
"0.6905333",
"0.68928874",
"0.67641324",
"0.6754843",
"0.6722764",
"0.6720773",
"0.67161995",
"0.6699252",
"0.6691263",
"0.6670276",
"0.6645522",
"0.6642719",
"0.6638686",
"0.6607724",
"0.6594981",
"0.6575682",
"0.6570076",
"0.65620786",... | 0.6510799 | 27 |
The proportion of samples that have been lost. | def Dh6q(nPrm, oEL_=None):
if oEL_ is None:
oEL_ = cGpL(nPrm)
kqge = 100
if len(nPrm) < kqge:
raise g4yC
d6pt = aqIr(nPrm)
assert d6pt[-1] > d6pt[0]
WbTE = d6pt[-1] - d6pt[0]
GozC = round(WbTE.total_seconds() / oEL_ + 1)
lo24 = 1 - d6pt.size / GozC
if lo24 < 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tf2w(YKHO):\n return sum(YKHO._loss) / len(YKHO._loss)",
"def O656(YKHO):\n return YKHO.proportion",
"def kBU0(YKHO):\n return float(len(YKHO.wins)) / len(YKHO.wins + YKHO.losses)",
"def L8kW(YKHO):\n return YKHO.loss / YKHO.cnt",
"def yqMa(YKHO):\n return YKHO._total_samples_processed",... | [
"0.70687175",
"0.7034177",
"0.6614869",
"0.65577173",
"0.65507036",
"0.6548132",
"0.6483958",
"0.6473325",
"0.6423944",
"0.63829404",
"0.63606644",
"0.6357249",
"0.6311645",
"0.6290148",
"0.6276209",
"0.6270897",
"0.6252563",
"0.6250081",
"0.6250081",
"0.62403184",
"0.6224787... | 0.0 | -1 |
Find the Levenshtein distance between two Strings. Python version of Levenshtein distance method implemented in Java at | def DR4Z(KCHu: Union[bytes, str], a1PO: Union[bytes, str]) -> int:
if KCHu is None or a1PO is None:
raise ValueError('Strings must not be None')
exwG = len(KCHu)
r8hN = len(a1PO)
if exwG == 0:
return r8hN
elif r8hN == 0:
return exwG
if exwG > r8hN:
jbXL = KCHu
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DR4Z(j93S, Nqp_):\n if len(j93S) < len(Nqp_):\n return oIP6.levenshtein_distance(Nqp_, j93S)\n if len(Nqp_) == 0:\n return len(j93S)\n LrTp = range(len(Nqp_) + 1)\n for YRbF, dg7v in enumerate(j93S):\n kaNW = [YRbF + 1]\n for r845, iYf1 in enumerate(Nqp_):\n o... | [
"0.83297145",
"0.8327251",
"0.8115644",
"0.8046201",
"0.80442786",
"0.804366",
"0.8013871",
"0.7989521",
"0.7872376",
"0.7792652",
"0.7784483",
"0.77689654",
"0.7667645",
"0.7634608",
"0.76198804",
"0.7619774",
"0.7507073",
"0.7492066",
"0.7447954",
"0.7440172",
"0.7401199",
... | 0.7339986 | 22 |
Returns a Motion Cloud movie as a 3D matrix from a given envelope. It first creates a random phase spectrum, multiplies with the envelope and then it computes the inverse FFT to obtain the spatiotemporal stimulus. | def MKSu(c8Hf, yokr=None, T_wp=False, YTVa=None, AjRj=True, ntAy=False):
pCKp, xb99, Fb6k = c8Hf.shape
kn6_ = 1.0
if T_wp:
AOlJ, stDt, ai9l = zSNB(pCKp, xb99, Fb6k)
JT9N = -2 * oyIN.pi * (pCKp / 2 * AOlJ + xb99 / 2 * stDt + Fb6k / 2 * ai9l)
jrvx = oyIN.exp(1j * JT9N)
elif YTVa is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A09t(C2zp, Szwr, qUIJ, jX6f, Jr8Y, I0Oe, a1PO):\n gQBW = 0\n KCHu = o050(C2zp, Szwr)\n v2Ut = KCHu[:, :, 0, a1PO:a1PO + 2].reshape(6, 2, order='F')\n 'Compute the covariance matrix and the eigendecompositon'\n Naub = oyIN.cov(v2Ut)\n lWPh, T8ck = Q1bM.eig(Naub)\n 'Sort the eigenvalues in D... | [
"0.51922804",
"0.50948226",
"0.50926536",
"0.50071335",
"0.50039333",
"0.4938448",
"0.49112144",
"0.49058267",
"0.4886002",
"0.4854153",
"0.48483717",
"0.47905207",
"0.4748071",
"0.4738337",
"0.47351697",
"0.47317702",
"0.47304097",
"0.47149524",
"0.46758437",
"0.46521857",
"... | 0.5928419 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=None):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
print(Bcwd)
QrM1.figure(figsize=(4, 4))
Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.791787... | 0.7869866 | 39 |
Return True if the queen at column c clashes with any queen to its left. | def nERh(lHmx, Z9rn):
for YRbF in range(Z9rn):
if C7r_(YRbF, lHmx[YRbF], Z9rn, lHmx[Z9rn]):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQiv(fvDH, OHLN):\n if fvDH in OHLN:\n return False\n elif any([abs(fvDH - iIDh) == len(OHLN) - d6pt for d6pt, iIDh in enumerate(OHLN)]):\n return False\n else:\n return True",
"def SGVO(OHLN):\n exwG = len(OHLN)\n WfCS = range(exwG)\n return exwG == len(set((OHLN[YRbF]... | [
"0.77055407",
"0.72922397",
"0.7145801",
"0.70153964",
"0.6985228",
"0.6902115",
"0.66958386",
"0.65576535",
"0.6551649",
"0.6548673",
"0.6523149",
"0.6523149",
"0.6522317",
"0.6519715",
"0.65155363",
"0.6512403",
"0.6512403",
"0.65036315",
"0.64987516",
"0.6493879",
"0.64932... | 0.6501785 | 18 |
Initialize the matplotlib figure and GridPlot object. | def FIMM(YKHO, *, LZpg: Optional[Figure]=None, MPlV: Optional[Union[np.ndarray, Axes]]=None, AB_Q: List[str], LAOT: Optional[Tuple[int, int]]=None, wytA: Optional[Tuple[int, int]]=None):
if isinstance(AB_Q, str):
raise TypeError('`y_names` must be a List[str], but given {}'.format(type(AB_Q)))
AB_Q = li... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wy33(YKHO):\n YKHO.dpi = 100\n YKHO.fig = QD4e((5.0, 5.0), dpi=YKHO.dpi)\n YKHO.main_plot = YKHO.fig.add_subplot(111)\n YKHO.main_plot.set_axis_bgcolor('black')\n YKHO.main_plot.set_title('Dynamic venous flow view', size=12)\n qjJM.setp(YKHO.main_plot.get_xticklabels(), fontsize=8)\n qjJM.... | [
"0.7536752",
"0.7196492",
"0.7190278",
"0.71868855",
"0.71805996",
"0.70625436",
"0.70282066",
"0.70282066",
"0.69899327",
"0.69891554",
"0.6923905",
"0.68701833",
"0.6838461",
"0.6760895",
"0.6759643",
"0.67508215",
"0.6697638",
"0.66482455",
"0.66034454",
"0.6595117",
"0.65... | 0.6142369 | 41 |
Return a grid of subplots (always a 2D ndarray). | def MPlV(YKHO) -> oyIN.ndarray:
return YKHO._axes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nlwp(YKHO, HN6s=1, co3n=1, a4x2=None, yWHn=None, Je0U=None, GKAS=None):\n if a4x2 is not None and len(a4x2) != co3n:\n raise ValueError('Expected the given number of width ratios to match the number of columns of the grid')\n if yWHn is not None and len(yWHn) != HN6s:\n raise ValueError('Ex... | [
"0.7304047",
"0.7254653",
"0.72422755",
"0.7179701",
"0.71366996",
"0.7044677",
"0.6823591",
"0.6676199",
"0.6587275",
"0.64933026",
"0.6481466",
"0.6339463",
"0.633844",
"0.63063467",
"0.6275917",
"0.62279123",
"0.6191162",
"0.61514986",
"0.61210155",
"0.61203027",
"0.611277... | 0.0 | -1 |
Return a flattened ndarray of inactive subplots, whose length equals `prod(self.axes.shape) self.n_plots`. | def _X3x(YKHO) -> oyIN.ndarray:
return YKHO.axes.flat[YKHO.n_plots:] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y3K7(YKHO) -> oyIN.ndarray:\n return YKHO.axes.flat[:YKHO.n_plots]",
"def oBv9(MPlV, ywwl):\n if ywwl > 1:\n MPlV = MPlV.flat\n for aNZO in MPlV[ywwl:]:\n aNZO.remove()\n return MPlV[:ywwl]\n else:\n return [MPlV]",
"def uvK3(YKHO):\n return list(YKHO.plot... | [
"0.72921747",
"0.59275514",
"0.5794449",
"0.56709194",
"0.5659157",
"0.55580115",
"0.5506378",
"0.549707",
"0.5492854",
"0.5442966",
"0.5355067",
"0.5355067",
"0.5304853",
"0.5271664",
"0.5269523",
"0.52568686",
"0.5246508",
"0.5213127",
"0.52067137",
"0.5192821",
"0.5182257"... | 0.7877082 | 0 |
Test that env settings can be retrieved, or if not then a default value is returned. | def GplO(Ehsq):
DGOD = qxeD()
HyJ9, l3Bh = ('foo', 'bar')
assert XN37.get_setting(DGOD, HyJ9) == HyJ9
Ehsq.setenv(DGOD, l3Bh)
assert XN37.get_setting(DGOD, HyJ9) == l3Bh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykgQ(YKHO, sEAN: yaenv.Env):\n assert sEAN.get('BLANK', 'default') == ''\n assert sEAN.get('MISSING') is None\n assert sEAN.get('MISSING', 'default') == 'default'",
"def sEAN(*vars, **B2fa):\n for Ty9i in vars:\n BWXx = Hy7s.environ.get(Ty9i)\n if BWXx:\n return BWXx\n ... | [
"0.70710206",
"0.7011443",
"0.6983878",
"0.69824255",
"0.69612914",
"0.69612914",
"0.6923273",
"0.6879512",
"0.68406063",
"0.6804731",
"0.6786106",
"0.67596006",
"0.6723182",
"0.67197627",
"0.6629905",
"0.6599743",
"0.6583553",
"0.6572079",
"0.65530443",
"0.6550808",
"0.65293... | 0.6491509 | 25 |
Test that settings are correctly loaded into the Flask app. | def LsFH(Ehsq):
v_jh = ajWY(100, 1200)
AlV5 = Acvy(['null', 'simple', 'redis'])
yyDw = tc9N(16)
kO5c = bool(ajWY(0, 1))
Ehsq.setenv('CACHE_DEFAULT_TIMEOUT', str(v_jh))
Ehsq.setenv('CACHE_TYPE', AlV5)
Ehsq.setenv('FLASK_SECRET_KEY', yyDw)
Ehsq.setenv('FLASK_TESTING', str(kO5c))
_Fei =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JNJc(YKHO):\n P4t4 = LUif('movieapp.settings.TestConfig')\n assert P4t4.config['DEBUG'] is True\n assert P4t4.config['SQLALCHEMY_ECHO'] is True\n assert P4t4.config['CACHE_TYPE'] == 'null'",
"def bGcW(YKHO):\n YKHO.assertFalse(P4t4.config['SECRET_KEY'] == 'my_precious')\n YKHO.assertTrue(P4... | [
"0.75946486",
"0.75625217",
"0.7519716",
"0.74718064",
"0.7446341",
"0.72706926",
"0.71636003",
"0.70559764",
"0.7020328",
"0.698516",
"0.698516",
"0.6969537",
"0.6964495",
"0.69616747",
"0.69612527",
"0.69421375",
"0.69421375",
"0.69185895",
"0.69110566",
"0.6893109",
"0.687... | 0.7779113 | 0 |
Returns starting state of the board. | def W9gz():
return [[KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf], [KAvf, KAvf, KAvf]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEkR(YKHO):\n return oyIN.zeros(YKHO.board_size, dtype=oyIN.int8)",
"def rEkR():\n return H66R.Board()",
"def jKlz(YKHO):\n return (YKHO.startingPosition, (False, False, False, False))",
"def D3Ar(YKHO):\n gnPz.raiseNotDefined()",
"def D3Ar(YKHO):\n gnPz.raiseNotDefined()",
"def D3Ar(Y... | [
"0.8081514",
"0.7890486",
"0.7534929",
"0.72789717",
"0.72789717",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
"0.72262055",
... | 0.0 | -1 |
Returns player who has the next turn on a board. | def oyg0(iBIi):
XXfj = xASv(iBIi)
if iBIi == W9gz():
return EcVT
if len(XXfj) % 2 == 0:
return LTX_
else:
return EcVT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zia_(iBIi, UwI3):\n RUgX = VlLD.opponent(UwI3)\n if VlLD.any_legal_move(RUgX, iBIi):\n return RUgX\n elif VlLD.any_legal_move(UwI3, iBIi):\n return UwI3\n return None",
"def Zia_(YKHO, iBIi, UwI3):\n RUgX = YKHO.opponent(UwI3)\n iiQJ = YKHO.any_legal_move(RUgX, iBIi)\n v5zX... | [
"0.7911148",
"0.7521969",
"0.74204457",
"0.73687756",
"0.71954805",
"0.69775087",
"0.69621766",
"0.69253695",
"0.69208723",
"0.69010353",
"0.6845991",
"0.6841043",
"0.6838282",
"0.68265843",
"0.67751175",
"0.67751175",
"0.6769739",
"0.6713109",
"0.67060393",
"0.66561204",
"0.... | 0.6521695 | 26 |
Returns the optimal action for the current player on the board. | def SR1K(iBIi):
tRnr = oyg0(iBIi)
if f9TP(iBIi):
return None
if iBIi == W9gz():
WKvO = tuKI.choice([0, 2])
LVAh = tuKI.choice([0, 2])
return (WKvO, LVAh)
if tRnr == EcVT:
Ty9i = -epAf.inf
for XeOP in xASv(iBIi):
TKGt = dgIT(Aofo(iBIi, XeOP))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction",
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0,... | [
"0.7766856",
"0.76323676",
"0.75855315",
"0.75285065",
"0.75175256",
"0.74667144",
"0.7460485",
"0.74263537",
"0.7416421",
"0.73943585",
"0.7375846",
"0.7333894",
"0.73147565",
"0.7306611",
"0.7284639",
"0.72650313",
"0.72650313",
"0.7250975",
"0.72331834",
"0.7203267",
"0.71... | 0.0 | -1 |
Get the request structure for list of entities. | def tYTU(MMe4: Sequence[Union[Entity, StepCollection]]) -> x1iM[WpsG]:
BqZ6 = []
for LEXu in MMe4:
if isinstance(LEXu, ahCL):
BqZ6.append(LEXu.to_request())
elif isinstance(LEXu, v4fC):
BqZ6.extend(LEXu.request_dicts())
return BqZ6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q49r(YKHO):\n Aofo = FKLG().getRequests()\n wLeR = []\n if not Aofo:\n return (pz3A(Error='NOT FOUND'), 404)\n else:\n for Mkmy in Aofo:\n wLeR.append(YKHO.mapToUserRequestDict(Mkmy))\n return (pz3A(TURN=wLeR), 200)",
"def D9Zm(YKHO, QePW, **B2fa):\n return []",... | [
"0.6224929",
"0.6217253",
"0.61349475",
"0.6079711",
"0.60549563",
"0.5875875",
"0.5855828",
"0.58397305",
"0.5826141",
"0.58037436",
"0.58037436",
"0.58037436",
"0.57790506",
"0.57790506",
"0.5772978",
"0.5772978",
"0.5713536",
"0.5696873",
"0.562451",
"0.56143486",
"0.55720... | 0.7075147 | 0 |
Open the input word list file and return the file object. If input_file is None, then we just return sys.stdin. | def nv6J(eZ_W):
if eZ_W:
if not Hy7s.path.isfile(eZ_W):
HwRy.stderr.write('ERROR! Input file (%s) is not a normal file.\n' % eZ_W)
HwRy.exit(1)
try:
return T_Uj.open(eZ_W, 'r', 'utf8')
except:
HwRy.stderr.write('ERROR! Could not open input file... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i2bV(apum, *qIxc):\n if apum is None:\n G9jH.info('Reading input from STDIN')\n return HwRy.stdin\n if isinstance(apum, str):\n if tTro.match(apum):\n import urllib2\n return urllib2.urlopen(apum)\n if len(apum) > 3 and apum[-3:] == '.gz':\n im... | [
"0.69666266",
"0.69087464",
"0.66441137",
"0.6496703",
"0.6385994",
"0.63825643",
"0.62801826",
"0.6275751",
"0.6205489",
"0.60920316",
"0.6043968",
"0.6026387",
"0.597928",
"0.59514",
"0.59138834",
"0.58076197",
"0.5806814",
"0.5700559",
"0.56787676",
"0.56601083",
"0.563108... | 0.75980544 | 0 |
Takes as input a ND tensor, where N >= 3. It downscales the input video by the specified factor, by keeping only the maximum value of nonoverlapping patches of size (ds[0],ds[1],ds[2]) (time, height, width) | def wJvS(input, oxOY, FtNe=False):
if input.ndim < 3:
raise NotImplementedError('max_pool_3d requires a dimension >= 3')
U6Ex = input.ndim
mc9O = input.shape[-2:]
Ep8u = Kt_s.prod(input.shape[:-2])
Ep8u = Kt_s.shape_padright(Ep8u, 1)
EZd9 = Kt_s.cast(Kt_s.join(0, Ep8u, Kt_s.as_tensor([1]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZnXT(WKvO, exwG):\n if exwG == 1:\n return WKvO\n OOcW = ZylS.shape(WKvO)\n H2v2, TVTK = (OOcW[1], OOcW[2])\n return ZylS.image.resize_nearest_neighbor(WKvO, [exwG * H2v2, exwG * TVTK])",
"def Zu2p(input, oxOY, FtNe=False):\n if input.ndim < 2:\n raise NotImplementedError('max_po... | [
"0.58566093",
"0.5847041",
"0.5815044",
"0.57028204",
"0.5666426",
"0.56636876",
"0.54923755",
"0.54436594",
"0.5427133",
"0.5388685",
"0.5376357",
"0.5370685",
"0.53169405",
"0.52993727",
"0.5272983",
"0.5270929",
"0.5267408",
"0.5251892",
"0.52470976",
"0.5237011",
"0.51959... | 0.6798123 | 0 |
Disables the LED matrix. All LED's are switched off. | def drCV():
U5bT = Yg1o.led_matrix_click_disable()
if U5bT < 0:
raise Exception('led matrix click disable failed') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO):\n print('Turning the lights off')\n YKHO.led.all_off()\n YKHO.client.publish(uf2Z, nGxz)",
"def YHq4():\n xi8C.output(EuGx, xi8C.HIGH)",
"def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)",
"def QAmq(YKHO):\n for GDDk in f7Ob:\n YKHO.led_off(GDDk)\n G9jH.info('LED: A... | [
"0.74292153",
"0.7150311",
"0.71218115",
"0.7097676",
"0.70667136",
"0.6875131",
"0.6841519",
"0.6801441",
"0.679131",
"0.67708206",
"0.6768421",
"0.67139024",
"0.6702695",
"0.66928625",
"0.6660404",
"0.66271096",
"0.66114485",
"0.65515655",
"0.654366",
"0.6529631",
"0.652925... | 0.78311884 | 0 |
Get the cluster main label | def DeTJ(YKHO):
ixuD = None
gPhE = {}
ixuD = None
for UXqs in YKHO._labels:
if gPhE.has_key(UXqs):
gPhE[UXqs] += 1
else:
gPhE[UXqs] = 0
QTg7 = None
for UXqs in gPhE:
if ixuD is None:
ixuD = UXqs
QTg7 = gP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DeTJ(YKHO):\n return YKHO.job[YKHO.label_key]",
"def nscJ(YKHO):\n return YKHO.label",
"def YWvt(Emd4):\n x1fj = BfLU()\n if x1fj.is_sps_cluster:\n return Emd4.SPS\n if x1fj.is_spts_cluster:\n return Emd4.SPTS\n if x1fj.is_mdfl_cluster:\n return Emd4.MDFL\n return ... | [
"0.71604896",
"0.7156659",
"0.711994",
"0.70542175",
"0.70542175",
"0.70542175",
"0.70542175",
"0.702552",
"0.7006214",
"0.69977146",
"0.69818366",
"0.6951561",
"0.6949971",
"0.6949292",
"0.6944529",
"0.6944529",
"0.6944529",
"0.6944529",
"0.6944529",
"0.6944529",
"0.6944529"... | 0.0 | -1 |
Applies `op` to the `flat_values` of one or more RaggedTensors. Replaces any `RaggedTensor` in `args` or `kwargs` with its `flat_values` tensor (which collapses all ragged dimensions), and then calls `op`. Returns a `RaggedTensor` that is constructed from the input `RaggedTensor`s' `nested_row_splits` and the value ret... | def kB8B(khtY, *qIxc, **B2fa):
es9L = []
TrZs = []
U8A6 = jvvC(qIxc, es9L, TrZs)
HPgO = jvvC(B2fa, es9L, TrZs)
if not es9L:
return khtY(*qIxc, **B2fa)
if TrZs:
TrZs = set(TrZs)
if len(TrZs) != 1:
raise ValueError("Input RaggedTensors' flat_values must all have... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jvvC(BWXx, es9L, TrZs):\n if c1ZF.is_ragged(BWXx):\n BWXx = c1ZF.convert_to_tensor_or_ragged_tensor(BWXx)\n es9L.append(BWXx._nested_row_partitions)\n HN6s = qiip.dimension_at_index(BWXx.flat_values.shape, 0).value\n if HN6s is not None:\n TrZs.append(HN6s)\n re... | [
"0.58905184",
"0.50941586",
"0.5034008",
"0.50086904",
"0.48855546",
"0.47923228",
"0.4791662",
"0.4785154",
"0.47354266",
"0.47063193",
"0.47051123",
"0.4682232",
"0.4642244",
"0.4612512",
"0.46040416",
"0.4579073",
"0.45764583",
"0.45676824",
"0.45488873",
"0.45210654",
"0.... | 0.8251573 | 0 |
Replace RaggedTensors with their flat_values, and record their partitions. Returns a copy of `value`, with any nested `RaggedTensor`s replaced by their `flat_values` tensor. Looks inside lists, tuples, and dicts. Appends each `RaggedTensor`'s `RowPartition`s to `partition_lists`. | def jvvC(BWXx, es9L, TrZs):
if c1ZF.is_ragged(BWXx):
BWXx = c1ZF.convert_to_tensor_or_ragged_tensor(BWXx)
es9L.append(BWXx._nested_row_partitions)
HN6s = qiip.dimension_at_index(BWXx.flat_values.shape, 0).value
if HN6s is not None:
TrZs.append(HN6s)
return BWXx.fl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kB8B(khtY, *qIxc, **B2fa):\n es9L = []\n TrZs = []\n U8A6 = jvvC(qIxc, es9L, TrZs)\n HPgO = jvvC(B2fa, es9L, TrZs)\n if not es9L:\n return khtY(*qIxc, **B2fa)\n if TrZs:\n TrZs = set(TrZs)\n if len(TrZs) != 1:\n raise ValueError(\"Input RaggedTensors' flat_valu... | [
"0.6881033",
"0.61487126",
"0.57602715",
"0.5700375",
"0.5536173",
"0.5507936",
"0.53469265",
"0.5063189",
"0.5023042",
"0.50201434",
"0.5018325",
"0.49882728",
"0.49735722",
"0.4941061",
"0.48811442",
"0.48353505",
"0.47892997",
"0.4760579",
"0.47469118",
"0.47372139",
"0.47... | 0.8572067 | 0 |
The device against which the job was run. | def begE(YKHO):
return YKHO.broker.device(**{'JobDetailID': YKHO.JobDetailID}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def begE(YKHO):\n return YKHO._vars[0].device",
"def begE(YKHO):\n return next(YKHO.parameters()).device",
"def begE(YKHO):\n return next(YKHO.parameters()).device",
"def begE(YKHO):\n return next(YKHO.parameters()).device",
"def begE(YKHO):\n return next(YKHO.parameters()).device",
"def b... | [
"0.83943903",
"0.83879054",
"0.83879054",
"0.83879054",
"0.83879054",
"0.83879054",
"0.82321364",
"0.8225333",
"0.8215564",
"0.8180785",
"0.80171067",
"0.8003143",
"0.7923292",
"0.7919176",
"0.79105085",
"0.7863221",
"0.78355986",
"0.76112944",
"0.75542474",
"0.7546913",
"0.7... | 0.8198492 | 9 |
The device against which the job was run. | def P9DP(YKHO):
return YKHO.broker.infradevice(**{'JobDetailID': YKHO.JobDetailID}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def begE(YKHO):\n return YKHO._vars[0].device",
"def begE(YKHO):\n return next(YKHO.parameters()).device",
"def begE(YKHO):\n return next(YKHO.parameters()).device",
"def begE(YKHO):\n return next(YKHO.parameters()).device",
"def begE(YKHO):\n return next(YKHO.parameters()).device",
"def b... | [
"0.83943903",
"0.83879054",
"0.83879054",
"0.83879054",
"0.83879054",
"0.83879054",
"0.82321364",
"0.8225333",
"0.8215564",
"0.8198492",
"0.8180785",
"0.80171067",
"0.8003143",
"0.7923292",
"0.7919176",
"0.79105085",
"0.7863221",
"0.78355986",
"0.76112944",
"0.75542474",
"0.7... | 0.661275 | 87 |
Application of the adjoint operator to a vector. Computes (A^)y for a given vector y from the codomain. | def eQUr(YKHO, LVAh):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sQ5I(jzdc, Fg_i):\n return H4yH.inner(jzdc.ravel().conj(), Fg_i.ravel())",
"def fxrA(YKHO) -> 'MultiVector':\n return YKHO._newMV(YKHO.layout.adjoint_func(YKHO.value))",
"def yYJc(WKvO, LVAh):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(WKvO, LVAh)))",
"def fxrA(YKHO, tF9S: np.ndarray) -> oy... | [
"0.6331265",
"0.60137206",
"0.5912388",
"0.59052134",
"0.58590674",
"0.5856081",
"0.5846921",
"0.57862145",
"0.5785192",
"0.57703084",
"0.57580215",
"0.5710117",
"0.57094914",
"0.5647398",
"0.5644571",
"0.5638333",
"0.5636922",
"0.562523",
"0.5611404",
"0.5597268",
"0.5545397... | 0.5282028 | 77 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) | def GeVo(WKvO):
for YRbF in WKvO:
if YRbF == None:
return None
igSk, GgQG, TGuP, tk0B = list(map(oyIN.radians, [WKvO[0], WKvO[1], WKvO[2], WKvO[3]]))
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = oyIN.sin(n_9K / 2) ** 2 + oyIN.cos(igSk) * oyIN.cos(TGuP) * oyIN.sin(H91H / 2) ** 2
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def T97B(GgQG, ... | [
"0.81450045",
"0.7863265",
"0.76322985",
"0.76064754",
"0.75978696",
"0.75965863",
"0.75944835",
"0.75720793",
"0.75630087",
"0.7555095",
"0.7528691",
"0.7517629",
"0.7492963",
"0.7467739",
"0.7452678",
"0.7434477",
"0.73914117",
"0.7357736",
"0.73484355",
"0.73318124",
"0.73... | 0.0 | -1 |
Method getting product's nutriscore ID. | def eMNV(YKHO):
NCls.execute('SELECT nutriscore_id FROM Product WHERE id = %s', (YKHO.id,))
YKHO.nutriscore = NCls.fetch()[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mc9N(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'product_id')",
"def Mc9N(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'product_id')",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO._product_id",
"de... | [
"0.77723044",
"0.7449794",
"0.74374616",
"0.74374616",
"0.74374616",
"0.74374616",
"0.732073",
"0.70184064",
"0.69368744",
"0.6890182",
"0.67340386",
"0.65285313",
"0.6444514",
"0.6386144",
"0.6330298",
"0.6330298",
"0.6238861",
"0.6213666",
"0.62134933",
"0.6209786",
"0.6109... | 0.74196374 | 6 |
Get the default location for a thing. | def Sy0r(YKHO, vGaq):
if isinstance(vGaq, mA7V):
return (1, 1)
else:
SqOt = lambda d7pR: tuKI.choice(range(1, d7pR - 1))
while True:
MKAx, zPWo = (SqOt(YKHO.width), SqOt(YKHO.height))
if (1, 1) == (MKAx, zPWo):
continue
break
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sy0r(YKHO, vGaq):\n return None",
"def Sy0r(YKHO, vGaq):\n return None",
"def Sy0r(YKHO, vGaq):\n return None",
"def Sy0r(YKHO, vGaq):\n return tuKI.choice([yABQ, Qw1d])",
"def Sy0r(YKHO, vGaq):\n return tuKI.choice([yABQ, Qw1d])",
"def bCmR(YKHO):\n return YKHO.default_alt_loc",
... | [
"0.8686049",
"0.8686049",
"0.8686049",
"0.8045653",
"0.8045653",
"0.7563369",
"0.73235804",
"0.67967564",
"0.67370534",
"0.6690137",
"0.6638082",
"0.6621053",
"0.66186607",
"0.66186607",
"0.66186607",
"0.6617872",
"0.6578346",
"0.65268564",
"0.64841",
"0.6444653",
"0.64130384... | 0.7032851 | 7 |
Compute the output height of a torch.nn.Conv2d, assuming NCHW format. This requires knowing the input height. Because NCHW format makes this very easy to mix up, this is a seperate function from conv2d_output_height. It also works on torch.nn.MaxPool2d. This function implements the formula described in the torch.nn.Con... | def GKCc(gEmA, H2v2):
assert isinstance(gEmA, (ht2j.nn.Conv2d, ht2j.nn.MaxPool2d))
dvgN = txLf(gEmA.padding, 0)
ivFb = txLf(gEmA.dilation, 0)
Ot1W = txLf(gEmA.kernel_size, 0)
_0fC = txLf(gEmA.stride, 0)
return epAf.floor((H2v2 + 2 * dvgN - ivFb * (Ot1W - 1) - 1) / _0fC + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKmu(H2v2, TVTK, St08, l7WZ, tYiq, _0fC):\n return (tYiq, (H2v2 - St08) / _0fC + 1, (TVTK - l7WZ) / _0fC + 1)",
"def iNRX(yIp6, zNig):\n w6pM = oyIN.array(zNig) + 2 * oyIN.array(yIp6.padding)\n w6pM -= oyIN.array(yIp6.dilation) * (oyIN.array(yIp6.kernel_size) - 1)\n w6pM -= 1\n w6pM = w6pM / o... | [
"0.67586565",
"0.6545094",
"0.65356714",
"0.63673604",
"0.6244041",
"0.6244041",
"0.6170728",
"0.6155149",
"0.6129938",
"0.5961064",
"0.59450907",
"0.59450907",
"0.59450907",
"0.5940992",
"0.59360725",
"0.5914094",
"0.59030193",
"0.5870342",
"0.57871354",
"0.5761146",
"0.5743... | 0.7067752 | 0 |
Compute the output width of a torch.nn.Conv2d, assuming NCHW format. This requires knowing the input width. Because NCHW format makes this very easy to mix up, this is a seperate function from conv2d_output_height. It also works on torch.nn.MaxPool2d. This function implements the formula described in the torch.nn.Conv2... | def Xyru(gEmA, TVTK):
assert isinstance(gEmA, (ht2j.nn.Conv2d, ht2j.nn.MaxPool2d))
dvgN = txLf(gEmA.padding, 1)
ivFb = txLf(gEmA.dilation, 1)
Ot1W = txLf(gEmA.kernel_size, 1)
_0fC = txLf(gEmA.stride, 1)
return epAf.floor((TVTK + 2 * dvgN - ivFb * (Ot1W - 1) - 1) / _0fC + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iNRX(yIp6, zNig):\n w6pM = oyIN.array(zNig) + 2 * oyIN.array(yIp6.padding)\n w6pM -= oyIN.array(yIp6.dilation) * (oyIN.array(yIp6.kernel_size) - 1)\n w6pM -= 1\n w6pM = w6pM / oyIN.array(yIp6.stride) + 1\n return oyIN.floor(w6pM)",
"def hKmu(H2v2, TVTK, St08, l7WZ, tYiq, _0fC):\n return (tY... | [
"0.71252257",
"0.6865731",
"0.6858309",
"0.6858309",
"0.65181834",
"0.6498349",
"0.649154",
"0.64886934",
"0.6349364",
"0.6312991",
"0.6306007",
"0.6292105",
"0.62589157",
"0.6207056",
"0.61827743",
"0.6178904",
"0.6136974",
"0.61354136",
"0.6117296",
"0.6117296",
"0.6117296"... | 0.71432614 | 0 |
Return a sample, sampled from this TanhNormal Distribution. | def mvm2(YKHO, rIHd=ht2j.Size()):
with ht2j.no_grad():
return YKHO.rsample(sample_shape=rIHd) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmA1(YKHO):\n yGTL = YKHO._get_mean()\n mvm2 = YKHO.random.normal(yGTL)\n return mvm2",
"def QmA1(YKHO):\n yGTL = YKHO._get_mean().reshape((1, YKHO.out_dim))\n WTkW = YKHO.variables['s']\n mvm2 = YKHO.random.normal(yGTL, WTkW)\n mvm2 = mvm2.reshape(YKHO.out_dim)\n return mvm2",
"def... | [
"0.7998289",
"0.7842812",
"0.7748903",
"0.7524445",
"0.7492324",
"0.73508835",
"0.72046816",
"0.7183297",
"0.71665144",
"0.69742036",
"0.6967657",
"0.6936659",
"0.6928369",
"0.689816",
"0.689816",
"0.689816",
"0.689816",
"0.689816",
"0.6850898",
"0.6827285",
"0.67973536",
"... | 0.6278723 | 69 |
Return a sample, sampled from this TanhNormal Distribution. | def YGtz(YKHO, rIHd=ht2j.Size()):
epBp = YKHO._normal.rsample(rIHd)
return ht2j.tanh(epBp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmA1(YKHO):\n yGTL = YKHO._get_mean()\n mvm2 = YKHO.random.normal(yGTL)\n return mvm2",
"def QmA1(YKHO):\n yGTL = YKHO._get_mean().reshape((1, YKHO.out_dim))\n WTkW = YKHO.variables['s']\n mvm2 = YKHO.random.normal(yGTL, WTkW)\n mvm2 = mvm2.reshape(YKHO.out_dim)\n return mvm2",
"def... | [
"0.7998289",
"0.7842812",
"0.7748903",
"0.7524445",
"0.7492324",
"0.73508835",
"0.72046816",
"0.7183297",
"0.71665144",
"0.69742036",
"0.6967657",
"0.6936659",
"0.6928369",
"0.689816",
"0.689816",
"0.689816",
"0.689816",
"0.689816",
"0.6850898",
"0.6827285",
"0.67973536",
"... | 0.0 | -1 |
Return a sample, sampled from this TanhNormal distribution. Returns the sampled value before the tanh transform is applied and the sampled value with the tanh transform applied to it. | def gMsY(YKHO, rIHd=ht2j.Size()):
epBp = YKHO._normal.rsample(rIHd)
return (epBp, ht2j.tanh(epBp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO, E_ud=False):\n epBp = YKHO.gmm.sample().detach()\n if E_ud:\n return (ht2j.tanh(epBp), epBp)\n else:\n return ht2j.tanh(epBp)",
"def QmA1(YKHO):\n yGTL = YKHO._get_mean()\n mvm2 = YKHO.random.normal(yGTL)\n return mvm2",
"def YGtz(YKHO, E_ud=False):\n QyVM = ht... | [
"0.7045227",
"0.6643862",
"0.661791",
"0.6559539",
"0.64037824",
"0.63933057",
"0.6303293",
"0.62149936",
"0.61520743",
"0.61195123",
"0.60475385",
"0.6021716",
"0.60064816",
"0.59601545",
"0.59327734",
"0.59178597",
"0.58999103",
"0.5853273",
"0.58399326",
"0.58273923",
"0.5... | 0.684629 | 1 |
Returns the CDF at the value. Returns the cumulative density/mass function evaluated at `value` on the underlying normal distribution. | def YzER(YKHO, BWXx):
return YKHO._normal.cdf(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(YKHO, BWXx):\n YzER = ht2j.where(BWXx < 1.0, YKHO.base.cdf(BWXx), ht2j.ones_like(BWXx))\n YzER = ht2j.where(BWXx < 0.0, ht2j.zeros_like(YzER), YzER)\n return YzER",
"def YzER(YKHO, BWXx=None):\n if BWXx is None:\n BWXx = YKHO.value\n return YKHO.rv.cdf(BWXx, *YKHO._pymc_dists_to_va... | [
"0.81373006",
"0.81329435",
"0.7053435",
"0.6949887",
"0.6798191",
"0.6798191",
"0.6743553",
"0.67353845",
"0.66956973",
"0.6630497",
"0.660014",
"0.65874225",
"0.6499921",
"0.6458189",
"0.64000773",
"0.63886636",
"0.6379384",
"0.6256264",
"0.62064976",
"0.61630267",
"0.60968... | 0.856838 | 0 |
Returns the icdf function evaluated at `value`. Returns the icdf function evaluated at `value` on the underlying normal distribution. | def lYVX(YKHO, BWXx):
return YKHO._normal.icdf(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(YKHO, BWXx):\n return YKHO._normal.cdf(BWXx)",
"def lYVX(YKHO, BWXx, qqgr=False):\n if not YKHO.fp_init:\n YKHO._init_full_props()\n if isinstance(BWXx, float):\n BWXx = a1PO.tensor(BWXx).to(dtype=YKHO.dtype, device=YKHO.device)\n BWXx = YKHO._validate_sample(BWXx, True)\n i... | [
"0.72333896",
"0.66934586",
"0.664089",
"0.65650505",
"0.65522",
"0.63574195",
"0.62464124",
"0.62368834",
"0.6186738",
"0.59597504",
"0.5895068",
"0.58603346",
"0.5838809",
"0.5797628",
"0.5797428",
"0.57342076",
"0.5686313",
"0.56025434",
"0.55522335",
"0.55234224",
"0.5523... | 0.7998645 | 0 |
Construct a new TanhNormal distribution from a normal distribution. | def aFK1(Emd4, NEhl):
BdN0 = Emd4(ht2j.zeros(1), ht2j.zeros(1))
BdN0._normal = NEhl
return BdN0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S3eG(yokr=None):\n return lambda ROpF, yDqo, W6pi=0: OM8D(ROpF, yDqo, W6pi, scale=2.0, mode='fan_in', distribution='truncated_normal', seed=yokr)",
"def vle1(YKHO, *qIxc, **B2fa):\n return PdgQ.TransformedDistribution(distribution=PdgQ.Normal(*qIxc, **B2fa), bijector=KCQP.bijectors.Sigmoid(), name='Log... | [
"0.6454655",
"0.6355096",
"0.6289681",
"0.62268305",
"0.6169032",
"0.6101354",
"0.60796565",
"0.60796565",
"0.6068122",
"0.6049477",
"0.6044005",
"0.6040817",
"0.6035759",
"0.60352576",
"0.59746313",
"0.5857746",
"0.5842183",
"0.58302766",
"0.5819444",
"0.5812787",
"0.5802669... | 0.6965061 | 0 |
Returns a new TanhNormal distribution. (or populates an existing instance provided by a derived class) with batch dimensions expanded to `batch_shape`. This method calls | def lHli(YKHO, ooTa, _1IC=None):
NEhl = YKHO._normal.expand(ooTa, _1IC)
BdN0 = YKHO._from_distribution(NEhl)
return BdN0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, *qIxc, **B2fa):\n return (PdgQ.Normal(loc=YKHO.mu, scale=ZylS.eye(YKHO.size)), YKHO.mu)",
"def dLob(YKHO, Ep8u=1):\n tuKI = ht2j.randn(Ep8u)\n WKvO = YKHO._make_features(tuKI)\n return iQnE(WKvO)",
"def mhAC(YKHO, zNig=None, qqgr=0.0, M1Jx=1.0, qC1Y=None, yDqo=None):\n return YKHO... | [
"0.66755587",
"0.6333017",
"0.6261871",
"0.6244066",
"0.61328435",
"0.59586996",
"0.58858806",
"0.5879122",
"0.586914",
"0.5858788",
"0.58411443",
"0.58339906",
"0.5766042",
"0.573976",
"0.5728738",
"0.57225204",
"0.57009685",
"0.5699366",
"0.5611609",
"0.5609239",
"0.5575837... | 0.68449855 | 0 |
Returns the global device that torch.Tensors should be placed on. | def RI3p():
global _DEVICE
return oDLN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def begE():\n return ht2j.device('cuda:0' if ht2j.cuda.is_available() else 'cpu')",
"def XXJM():\n begE = ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu')\n return begE",
"def VeaS():\n import torch\n if torch.cuda.is_available():\n return torch.device('cuda')\n return torch.... | [
"0.7927794",
"0.790405",
"0.78334385",
"0.7824908",
"0.7824908",
"0.7824908",
"0.7824908",
"0.7808479",
"0.77662355",
"0.7717447",
"0.76212174",
"0.7361139",
"0.7326816",
"0.73079854",
"0.7287433",
"0.7227104",
"0.72168684",
"0.7199564",
"0.7069759",
"0.70641893",
"0.7060081"... | 0.7698877 | 10 |
Append single transition to the current context. | def Twb4(YKHO, dbXs):
z1Rg = ht2j.as_tensor(dbXs.observation[None, None, ...], device=RI3p()).float()
jzdc = ht2j.as_tensor(dbXs.action[None, None, ...], device=RI3p()).float()
Mkmy = ht2j.as_tensor(oyIN.array([dbXs.reward])[None, None, ...], device=RI3p()).float()
KOdv = ht2j.as_tensor(dbXs.next_observ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.transition(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.buffer.append(tTpl)",
"def _jXH(YKHO, OZkM, KAOR=0):\n YKHO.memory.put(OZkM)",
"def _jXH(YKHO, OZkM, *qIxc, **B2fa):\n raise NotImplementedError",
"def OnZY(YKHO, OZkM):\n YKHO.buffer.ap... | [
"0.67034715",
"0.64400506",
"0.6407242",
"0.6395189",
"0.6333643",
"0.6177075",
"0.61750966",
"0.6168164",
"0.61126125",
"0.6044615",
"0.6044615",
"0.58084846",
"0.5725783",
"0.5719482",
"0.56473804",
"0.56341976",
"0.56253994",
"0.5618466",
"0.56035244",
"0.5594931",
"0.5588... | 0.0 | -1 |
Sample action from the policy, conditioned on the task embedding. | def AMEM(YKHO, W061):
epBp = YKHO.z
W061 = ht2j.as_tensor(W061[None], device=RI3p()).float()
VG4y = ht2j.cat([W061, epBp], dim=1)
XeOP, U34r = YKHO._policy.get_action(VG4y)
return (XeOP, U34r) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S2sP(YKHO, rNYq):\n RKD7.info('Random action')\n bGrB = rNYq\n XeOP = YKHO.env.action_space.sample()\n return XeOP",
"def IT9e(YKHO, WZ52):\n y0sJ = ht2j.Tensor(WZ52['p_state'])\n Xz9E = ht2j.Tensor(WZ52['legal_actions'])\n XeOP = YKHO.policy.sampleAction(y0sJ, Xz9E)\n return XeOP",
... | [
"0.7224492",
"0.7145083",
"0.712341",
"0.6978279",
"0.68931067",
"0.68927395",
"0.68423647",
"0.67885727",
"0.6771046",
"0.670903",
"0.667441",
"0.665535",
"0.66477776",
"0.65515167",
"0.6511037",
"0.64361537",
"0.6433321",
"0.6410071",
"0.64010894",
"0.6392426",
"0.6385707",... | 0.0 | -1 |
Numpy arrays to PyTorch tensors. | def syWo(qw7D):
vhpA = ht2j.from_numpy(qw7D)
if vhpA.dtype != ht2j.float32:
vhpA = vhpA.float()
return vhpA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BiYq(qw7D, begE=None):\n vhpA = ht2j.from_numpy(qw7D)\n return vhpA",
"def Gzng(qw7D: np.ndarray) -> oyIN.ndarray:\n ROpF = (xwpV['batch'], xwpV['channels'], xwpV['depth'], xwpV['height'], xwpV['width'])\n qw7D = oyIN.transpose(qw7D, ROpF)\n return qw7D",
"def NCWL(*Sk_F):\n oj2F.info('n2... | [
"0.746771",
"0.7162682",
"0.7031392",
"0.69994986",
"0.672084",
"0.654441",
"0.65428984",
"0.6538737",
"0.6412483",
"0.6412483",
"0.6412483",
"0.6394862",
"0.6394862",
"0.6331952",
"0.63312197",
"0.63106656",
"0.62869483",
"0.6254502",
"0.6227219",
"0.62162215",
"0.6191168",
... | 0.7657822 | 0 |
Downloads the keras model from the url provided. Arguments | def Up5G(bD7m):
print('Model download started...')
uRP3 = bD7m.split('/')[-1]
AesY = f'../kerasModels/{uRP3}'
if not Hy7s.path.exists(Hy7s.path.dirname(AesY)):
try:
Hy7s.makedirs(Hy7s.path.dirname(uRP3))
except OSError as exc:
if BQDi.errno != d1hN.EXIST:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbYf(bD7m: str=r1Il.Argument(..., help='The link to a model'), pmON: Path=r1Il.Argument(..., file_okay=True, help='The saved path and file name.')):\n from modelci.hub.registrar import hbYf\n hbYf(bD7m, pmON)\n r1Il.echo(f'{pmON} model downloaded successfully.')",
"def LQs7(zLj6, jTqs=10):\n AY3i... | [
"0.7541133",
"0.7043842",
"0.69337887",
"0.68987656",
"0.68111223",
"0.6804341",
"0.67991847",
"0.67405045",
"0.66448855",
"0.65763366",
"0.6502837",
"0.6490908",
"0.6452319",
"0.6402259",
"0.6343985",
"0.6297874",
"0.6281097",
"0.62647754",
"0.6254215",
"0.6241432",
"0.62136... | 0.78551733 | 0 |
Given a document root as stored in the db, this function will return an array of all child documents. | def DOA_(kxL1):
ol4k = NCls.child(kxL1).get()
yID6 = []
for A97Q in ol4k.each():
"\n Each **doc** within **documents** has a key and a val. The key is the document id, which\n we'll use to reference the document for db manipulation later, and the val\n contains the document object itself. T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EZF9(YKHO):\n return [ZfUD[0] for ZfUD in YKHO.sql_session.query(yQaM).values(yQaM.id)]",
"def dvck(YKHO) -> iu5r[dict]:\n return YKHO._db['documents']",
"def i7sj(YKHO):\n return YKHO.root.getchildren()",
"def RbaF(YKHO):\n M1Jx = YKHO._std\n y0Da = YKHO._bld\n Emd4 = YKHO.__class__\n ... | [
"0.66113776",
"0.6512009",
"0.65081656",
"0.6267396",
"0.62382126",
"0.61985",
"0.6104843",
"0.6092379",
"0.6087452",
"0.60752064",
"0.6053975",
"0.60261023",
"0.6010659",
"0.60009974",
"0.5994695",
"0.5986459",
"0.5975035",
"0.59590566",
"0.59313375",
"0.5922037",
"0.5912757... | 0.7554137 | 0 |
Computes the histogram of the input image | def oicS(YKHO, LNo8):
QzFq = [0] * 256
[MKlR, yzQ0] = LNo8.shape
print(MKlR, yzQ0)
YRbF = 0
while YRbF < 256:
for rdlD in range(MKlR):
for fvDH in range(yzQ0):
if LNo8[rdlD, fvDH] == YRbF:
QzFq[YRbF] += 1
YRbF += 1
return QzFq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oicS(YKHO, LNo8):\n QzFq = [0] * 256\n WKvO, LVAh = LNo8.shape[:2]\n for YRbF in range(WKvO):\n for r845 in range(LVAh):\n QzFq[LNo8[YRbF, r845]] += 1\n return QzFq",
"def QzFq(VXjJ):\n HGlB = VXjJ[VXjJ.shape[0] // 2:, :]\n thJw = HGlB.sum(axis=0)\n return thJw",
"def... | [
"0.82736444",
"0.8064423",
"0.8037536",
"0.7930632",
"0.76470864",
"0.7604351",
"0.75007343",
"0.73157203",
"0.7244618",
"0.71898323",
"0.7063043",
"0.6988698",
"0.69718844",
"0.69492954",
"0.6931104",
"0.6850683",
"0.6834464",
"0.6798194",
"0.6795921",
"0.6792963",
"0.677200... | 0.8042533 | 2 |
Comptues the binary image of the the input image based on histogram analysis and thresholding take as input | def Ffz0(YKHO, LNo8, gwAu):
llUt = LNo8.copy()
[MKlR, yzQ0] = llUt.shape
VoYq = gwAu
print(VoYq)
for rdlD in range(MKlR):
for fvDH in range(yzQ0):
if llUt[rdlD, fvDH] > VoYq:
llUt[rdlD, fvDH] = 255
else:
llUt[rdlD, fvDH] = 0
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ffz0(YKHO, LNo8, gwAu):\n llUt = LNo8.copy()\n for YRbF in range(LNo8.shape[0]):\n for r845 in range(LNo8.shape[1]):\n if LNo8[YRbF, r845] >= gwAu:\n llUt[YRbF, r845] = 0\n else:\n llUt[YRbF, r845] = 255\n return llUt",
"def Ffz0(YKHO, LNo8)... | [
"0.7313494",
"0.727349",
"0.7154536",
"0.70358247",
"0.6959854",
"0.68780637",
"0.68720067",
"0.68675977",
"0.6862011",
"0.68446094",
"0.68052274",
"0.67665195",
"0.6766293",
"0.67088926",
"0.66867805",
"0.66724813",
"0.6671647",
"0.66591763",
"0.6615787",
"0.66022474",
"0.65... | 0.76806265 | 0 |
Checks if the auto update service is enable_on_reboot on the VM | def O4wH(YKHO, oISy):
YKHO.composite_logger.log_debug('Checking if auto update service is installed...')
Wxnj, yvT9 = YKHO.env_layer.run_command_output(oISy, False, False)
YKHO.composite_logger.log_debug(' - Code: ' + str(Wxnj) + ', Output: \n|\t' + '\n|\t'.join(yvT9.splitlines()))
if len(yvT9.strip()) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cXo7(YKHO, oUZx):\n YKHO.composite_logger.log_debug('Checking if auto update service is set to enable on reboot...')\n Wxnj, yvT9 = YKHO.env_layer.run_command_output(oUZx, False, False)\n YKHO.composite_logger.log_debug(' - Code: ' + str(Wxnj) + ', Output: \\n|\\t' + '\\n|\\t'.join(yvT9.splitlines()))... | [
"0.83913594",
"0.7520064",
"0.7445612",
"0.68281204",
"0.6648872",
"0.66161555",
"0.6524987",
"0.6457033",
"0.6389063",
"0.62379265",
"0.6159933",
"0.61143976",
"0.60994196",
"0.6091484",
"0.6081966",
"0.60404265",
"0.6007859",
"0.59858376",
"0.59765625",
"0.5974475",
"0.5932... | 0.696775 | 3 |
Get number of resources for the given node. | def AOv2(YKHO, Q6kx, UaO_=None):
return len(YKHO.getForNode(Q6kx, UaO_)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO, Eorv):\n return len(YKHO.all(Eorv))",
"def d9xZ(DpUl, Q6kx):\n Pe9W = '\\n SELECT\\n COUNT(*)\\n FROM\\n nodes\\n WHERE\\n parent=%s;\\n '\n DpUl.execute(Pe9W, (str(Q6kx),))\n Aofo = DpUl.fetchone()\n return Aofo['count']",
"def QNI9(YKHO, *q... | [
"0.6942366",
"0.68160576",
"0.6759424",
"0.6742038",
"0.65458816",
"0.65458816",
"0.6451336",
"0.6440532",
"0.6440414",
"0.6440414",
"0.6424699",
"0.63875806",
"0.62739694",
"0.6212865",
"0.6207482",
"0.61690944",
"0.6125102",
"0.6112109",
"0.60914487",
"0.6072903",
"0.603811... | 0.7681628 | 0 |
Returns if x is a line vector | def E464(WKvO):
return WKvO.ndim == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Auqn(WKvO):\n return len(WKvO.shape) == 1",
"def laiV(vC9B):\n return isinstance(vC9B, list) and len(vC9B) == 2 and YOxO(vC9B[0]) and YOxO(vC9B[1])",
"def Auqn(YKHO):\n return len(YKHO.coeffs.shape[YKHO.sdim:]) == 1",
"def v5bb(YKHO, WKvO, LVAh):\n return YKHO.isLineAt(WKvO, LVAh, 1, 0) or YK... | [
"0.7318772",
"0.70347726",
"0.6813595",
"0.6661464",
"0.6655709",
"0.66003424",
"0.66003424",
"0.65703124",
"0.6501752",
"0.6425515",
"0.63541573",
"0.62394893",
"0.6196948",
"0.6122228",
"0.6111727",
"0.6060558",
"0.5943779",
"0.590312",
"0.5894377",
"0.5886347",
"0.5849381"... | 0.8678551 | 0 |
Returns if x is a vector with (strictly) increasing values | def uiZx(WKvO):
return oLG2.all(oLG2.diff(WKvO) > 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qYvq(WKvO):\n return oLG2.all(oLG2.diff(WKvO) <= 0)",
"def Cd87(WKvO):\n return oLG2.all(oLG2.diff(WKvO) < 0)",
"def TAdc(WKvO):\n return oLG2.all(oLG2.diff(WKvO) >= 0)",
"def Mg38(jzdc):\n return oyIN.all(oyIN.diff(jzdc) > 0)",
"def U4Ag(nPrm):\n return (oyIN.diff(nPrm) > 0).all() == Tr... | [
"0.77735466",
"0.76834404",
"0.7547428",
"0.7222248",
"0.689625",
"0.6661161",
"0.6551474",
"0.65255845",
"0.6474087",
"0.64734685",
"0.6412531",
"0.62575585",
"0.6223273",
"0.6214999",
"0.6173246",
"0.6161648",
"0.6124167",
"0.6124167",
"0.6119906",
"0.6095253",
"0.60752106"... | 0.8209932 | 0 |
Returns if x is a vector with nonincreasing values | def qYvq(WKvO):
return oLG2.all(oLG2.diff(WKvO) <= 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAdc(WKvO):\n return oLG2.all(oLG2.diff(WKvO) >= 0)",
"def uiZx(WKvO):\n return oLG2.all(oLG2.diff(WKvO) > 0)",
"def Cd87(WKvO):\n return oLG2.all(oLG2.diff(WKvO) < 0)",
"def Mg38(jzdc):\n return oyIN.all(oyIN.diff(jzdc) > 0)",
"def tm4B(WKvO):\n if WKvO < 0:\n return True\n re... | [
"0.8488845",
"0.8168255",
"0.80972946",
"0.7044522",
"0.65920085",
"0.6579653",
"0.65360093",
"0.64840376",
"0.64633423",
"0.64599055",
"0.6389071",
"0.6362141",
"0.63620883",
"0.6303656",
"0.62858564",
"0.6238266",
"0.61703837",
"0.61620253",
"0.6153845",
"0.6145223",
"0.612... | 0.8637021 | 0 |
Returns if x is a vector with equal values | def uRKn(WKvO):
return oLG2.all(WKvO == WKvO[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Auqn(WKvO):\n return len(WKvO.shape) == 1",
"def jSLS(YKHO):\n hQHm = lNLu(3, 4, 5)\n assert hQHm == [3, 4, 5]\n assert hQHm != [0, 2, 4]\n jlSq = lNLu(3.0, 4.0, 5.0)\n assert hQHm == jlSq\n bUZ8 = lNLu(2, 2)\n assert hQHm != bUZ8",
"def InF8(YKHO, WKvO):\n return kCXI.SwigPyIter... | [
"0.6959696",
"0.6736299",
"0.6717924",
"0.65841",
"0.64839286",
"0.6394011",
"0.637222",
"0.6325009",
"0.6307421",
"0.62646866",
"0.62550586",
"0.617889",
"0.6145178",
"0.6109711",
"0.6082822",
"0.6079916",
"0.6073307",
"0.60381484",
"0.6007522",
"0.5980817",
"0.5969379",
"... | 0.8356515 | 0 |
Converts a line vector to a column vector | def dtSL(WKvO):
assert WKvO.ndim == 1
return oLG2.expand_dims(WKvO, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pywP(WKvO):\n WKvO = oyIN.atleast_1d(WKvO)\n return WKvO[:, None]",
"def fvDH(YKHO, YRbF):\n return lNLu([rdlD[YRbF] for rdlD in YKHO.data])",
"def ny3o(YKHO):\n assert len(YKHO.xcoords) == 2\n q_cO = YKHO.xcoords[1] - YKHO.xcoords[0]\n ggF6 = YKHO.zcoords[1] - YKHO.zcoords[0]\n he6J =... | [
"0.6698258",
"0.65644085",
"0.65443087",
"0.6507199",
"0.6473032",
"0.63910407",
"0.62793183",
"0.6259065",
"0.6121611",
"0.6104566",
"0.6102995",
"0.6007699",
"0.6005219",
"0.59967834",
"0.5979476",
"0.5973361",
"0.596417",
"0.5955236",
"0.59308064",
"0.59209263",
"0.5918016... | 0.6259775 | 7 |
Returns a unit vector in ith dimension for the standard coordinate system | def fwyd(exwG, YRbF):
return oLG2.zeros(exwG).at[YRbF].set(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXGI():\n return DKJk(0, 1)",
"def PXGI(YKHO):\n return lNLu(YKHO.x / YKHO.length(), YKHO.y / YKHO.length())",
"def tm2k(YKHO):\n if YKHO.is_zero():\n return lNLu(0, 0, 0)\n else:\n YXbZ = YKHO.l2_norm()\n return lNLu(YKHO.x / YXbZ, YKHO.y / YXbZ, YKHO.z / YXbZ)",
"def j8... | [
"0.7735446",
"0.7390393",
"0.7160047",
"0.71379507",
"0.70428914",
"0.70428914",
"0.70428914",
"0.7021703",
"0.69872844",
"0.69510007",
"0.69510007",
"0.69510007",
"0.69510007",
"0.69510007",
"0.69510007",
"0.69510007",
"0.69510007",
"0.69510007",
"0.69510007",
"0.69510007",
... | 0.59104747 | 67 |
Right shift the contents of the vector | def kLoF(WKvO):
return oLG2.zeros_like(WKvO).at[1:].set(WKvO[:-1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OvXI(WKvO):\n return oLG2.roll(WKvO, 1)",
"def G8po(YKHO):\n YKHO.pointer = (YKHO.pointer + 1) % len(YKHO.data)",
"def GNsP(WKvO):\n return oLG2.zeros_like(WKvO).at[0:-1].set(WKvO[1:])",
"def JkW4(WKvO, exwG):\n return oLG2.zeros_like(WKvO).at[exwG:].set(WKvO[:-exwG])",
"def vFUu(WKvO):\n ... | [
"0.74227875",
"0.7008702",
"0.67520916",
"0.6741145",
"0.671371",
"0.65788853",
"0.657209",
"0.636291",
"0.6354332",
"0.62614614",
"0.6199991",
"0.61862296",
"0.6182634",
"0.6179469",
"0.6151821",
"0.6139111",
"0.60783416",
"0.60385096",
"0.60254526",
"0.6023933",
"0.6009376"... | 0.8077497 | 0 |
Left shift the contents of the vector | def GNsP(WKvO):
return oLG2.zeros_like(WKvO).at[0:-1].set(WKvO[1:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLoF(WKvO):\n return oLG2.zeros_like(WKvO).at[1:].set(WKvO[:-1])",
"def vFUu(WKvO):\n return oLG2.roll(WKvO, -1)",
"def OvXI(WKvO):\n return oLG2.roll(WKvO, 1)",
"def DkWr(YKHO, DUlE, LpaZ=False):\n if len(YKHO.vertices) == 0:\n raise Omhn('cannot shift zero length geometry')\n if l... | [
"0.76559925",
"0.7226969",
"0.67600715",
"0.6736687",
"0.66364413",
"0.6594939",
"0.64988995",
"0.64787215",
"0.64436054",
"0.640513",
"0.6337259",
"0.6305275",
"0.62912095",
"0.6229094",
"0.62002164",
"0.6198291",
"0.61754423",
"0.61272913",
"0.6120745",
"0.60527754",
"0.603... | 0.7746941 | 0 |
Left shift the contents of the vector by n places | def N4Nc(WKvO, exwG):
return oLG2.zeros_like(WKvO).at[0:-exwG].set(WKvO[exwG:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JkW4(WKvO, exwG):\n return oLG2.zeros_like(WKvO).at[exwG:].set(WKvO[:-exwG])",
"def DkWr(jzdc, exwG=1):\n return jzdc[exwG:] + jzdc[:exwG]",
"def qhxF(WKvO, exwG):\n return oLG2.roll(WKvO, -exwG)",
"def xCBs(WKvO, exwG):\n return oLG2.roll(WKvO, exwG)",
"def DkWr(fUYa, exwG):\n tTpl = oy... | [
"0.7926303",
"0.7835327",
"0.76371765",
"0.7231364",
"0.71568394",
"0.69230956",
"0.69173783",
"0.685816",
"0.685816",
"0.6854778",
"0.67303336",
"0.67303336",
"0.6705286",
"0.66911525",
"0.662501",
"0.6615008",
"0.6609778",
"0.65472424",
"0.649368",
"0.6425879",
"0.63407624"... | 0.8086534 | 0 |
Returns the central part of a vector of a specified length | def LH6Y(WKvO, u54L):
RmFd = len(WKvO)
u54L = min(RmFd, u54L)
yKcO = (len(WKvO) - u54L) // 2
Os4s = yKcO + u54L
return WKvO[yKcO:Os4s] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HmiB(YKHO, iArr):\n return YKHO.eval_2pts(iArr, 0.5)",
"def j8U8(iArr):\n assert iArr != [0, 0]\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(iArr):\n return iArr /... | [
"0.6605002",
"0.6272887",
"0.6215661",
"0.6215661",
"0.6215661",
"0.62071174",
"0.62071174",
"0.62071174",
"0.62071174",
"0.62071174",
"0.62071174",
"0.62071174",
"0.62071174",
"0.62071174",
"0.62071174",
"0.62071174",
"0.61762536",
"0.6144691",
"0.61167395",
"0.60959315",
"0... | 0.7731614 | 0 |
Computes a probability mass function from a given vector | def xDCO(jzdc):
KCHu = oLG2.sum(jzdc) * 1.0
return jzdc / KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8QR(WKvO, yGTL, SRYB):\n r8hN, exwG = oyIN.atleast_2d(WKvO).shape\n I8JS = oyIN.diag(SRYB)\n aM8h = 1.0 / ((2 * oyIN.pi) ** (exwG / 2.0) * oyIN.linalg.det(I8JS) ** 0.5)\n XP5J = oyIN.array([aM8h * oyIN.exp(-0.5 * (CAzz.T @ oyIN.linalg.inv(I8JS) @ CAzz).sum()) for CAzz in oyIN.atleast_2d(WKvO - yGT... | [
"0.6657569",
"0.6639386",
"0.65446126",
"0.65427697",
"0.6480422",
"0.6465506",
"0.6346475",
"0.62492263",
"0.6184395",
"0.6178397",
"0.6164373",
"0.61155885",
"0.60912615",
"0.60704386",
"0.6053747",
"0.6040162",
"0.6032478",
"0.60078126",
"0.60037005",
"0.59988767",
"0.5968... | 0.69556713 | 0 |
Computes a cumulative mass function from a given vector | def lZVi(jzdc):
KCHu = oLG2.sum(jzdc) * 1.0
jzdc = jzdc / KCHu
return oLG2.cumsum(jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jFmf(iArr):\n VXAf = 0\n for ZfUD in iArr:\n VXAf += ZfUD ** 2\n return VXAf",
"def r3ae(YKHO):\n if YKHO.mass is None:\n raise pF1j('The particle mass needs to be specified to calculate the particle momentum from velocity.')\n hkxX = {}\n for XSoh in YKHO.v.order:\n KM... | [
"0.65208346",
"0.641715",
"0.5931126",
"0.5929662",
"0.5916127",
"0.58981115",
"0.5871822",
"0.5861446",
"0.58560264",
"0.5843584",
"0.5833268",
"0.5819571",
"0.57770246",
"0.57463765",
"0.5703675",
"0.5698386",
"0.5697855",
"0.5693897",
"0.5669646",
"0.5664808",
"0.56470555"... | 0.6606852 | 0 |
Left shift the contents of the vector | def opzW(LaVg, wEf2):
return LaVg.at[1:].set(LaVg[:-1]).at[0].set(wEf2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GNsP(WKvO):\n return oLG2.zeros_like(WKvO).at[0:-1].set(WKvO[1:])",
"def kLoF(WKvO):\n return oLG2.zeros_like(WKvO).at[1:].set(WKvO[:-1])",
"def vFUu(WKvO):\n return oLG2.roll(WKvO, -1)",
"def OvXI(WKvO):\n return oLG2.roll(WKvO, 1)",
"def DkWr(YKHO, DUlE, LpaZ=False):\n if len(YKHO.vert... | [
"0.7746941",
"0.76559925",
"0.7226969",
"0.67600715",
"0.6736687",
"0.66364413",
"0.6594939",
"0.64988995",
"0.64787215",
"0.64436054",
"0.640513",
"0.6337259",
"0.6305275",
"0.62912095",
"0.6229094",
"0.62002164",
"0.6198291",
"0.61754423",
"0.61272913",
"0.6120745",
"0.6052... | 0.0 | -1 |
Left shift the contents of the vector | def K27G(LaVg, wEf2):
return LaVg.at[:-1].set(LaVg[1:]).at[-1].set(wEf2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GNsP(WKvO):\n return oLG2.zeros_like(WKvO).at[0:-1].set(WKvO[1:])",
"def kLoF(WKvO):\n return oLG2.zeros_like(WKvO).at[1:].set(WKvO[:-1])",
"def vFUu(WKvO):\n return oLG2.roll(WKvO, -1)",
"def OvXI(WKvO):\n return oLG2.roll(WKvO, 1)",
"def DkWr(YKHO, DUlE, LpaZ=False):\n if len(YKHO.vert... | [
"0.7746941",
"0.76559925",
"0.7226969",
"0.67600715",
"0.6736687",
"0.66364413",
"0.6594939",
"0.64988995",
"0.64787215",
"0.64436054",
"0.640513",
"0.6337259",
"0.6305275",
"0.62912095",
"0.6229094",
"0.62002164",
"0.6198291",
"0.61754423",
"0.61272913",
"0.6120745",
"0.6052... | 0.0 | -1 |
Checks if x is a min heap | def pc_a(WKvO):
exwG = len(WKvO)
or8S = oLG2.arange(1, exwG, dtype=int)
ACnF = (or8S - 1) // 2
return oLG2.all(WKvO[ACnF] <= WKvO[1:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QNq6(WKvO):\n exwG = len(WKvO)\n or8S = oLG2.arange(1, exwG, dtype=int)\n ACnF = (or8S - 1) // 2\n return oLG2.all(WKvO[ACnF] >= WKvO[1:])",
"def yryI(YKHO):\n for oeNL in range(YKHO.size // 2, 0, -1):\n YKHO.min_heapify(oeNL)",
"def QZno(WKvO):\n pass",
"def l6g0(YKHO, oeNL):\n ... | [
"0.7123914",
"0.6827665",
"0.65061194",
"0.64888835",
"0.6423431",
"0.64178413",
"0.6403038",
"0.63220936",
"0.6310775",
"0.623755",
"0.61982036",
"0.61665004",
"0.6097122",
"0.6049346",
"0.6044598",
"0.6029829",
"0.5975115",
"0.5953446",
"0.5911516",
"0.5898301",
"0.58380467... | 0.8512507 | 0 |
Returns the index of the left child | def ixOR(or8S):
return (or8S << 1) + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uI3T(YKHO):\n return 2 * YKHO.index + 1",
"def cdj0(YKHO, d6pt):\n return 2 * d6pt + 1",
"def cdj0(YKHO, d6pt):\n return 2 * d6pt",
"def uI3T(YKHO, _AKB):\n return 2 * _AKB + 1",
"def zqXl(YKHO, oeNL):\n return 2 * oeNL",
"def zqXl(YKHO, oeNL):\n return 2 * oeNL",
"def cdj0(YKHO, ... | [
"0.92512465",
"0.8947772",
"0.8826891",
"0.87518626",
"0.8361981",
"0.8361981",
"0.8360912",
"0.7980738",
"0.7829544",
"0.7797249",
"0.7730859",
"0.7611618",
"0.75685126",
"0.7400831",
"0.7389259",
"0.7362745",
"0.7343726",
"0.72990113",
"0.7226029",
"0.7170904",
"0.71376586"... | 0.8276688 | 7 |
Returns the index of the right child | def uefD(or8S):
return or8S + 1 << 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBm4(YKHO):\n return 2 * YKHO.index + 2",
"def MBm4(YKHO, _AKB):\n return 2 * _AKB + 2",
"def esTa(YKHO, d6pt):\n return 2 * d6pt + 1",
"def esTa(YKHO, d6pt):\n return 2 * d6pt + 2",
"def esTa(YKHO, oeNL):\n return 2 * oeNL + 1",
"def T4m8(YKHO, oeNL):\n return 2 * oeNL + 1",
"def... | [
"0.9172102",
"0.8854869",
"0.87777513",
"0.867917",
"0.84217525",
"0.83991",
"0.83991",
"0.8107605",
"0.78409326",
"0.7703145",
"0.769417",
"0.758315",
"0.7561745",
"0.74584305",
"0.74520445",
"0.72334725",
"0.72197473",
"0.7207952",
"0.7179746",
"0.71431094",
"0.71211493",
... | 0.8335453 | 7 |
Return the index of the largest value between a parent and its children | def qhUn(WKvO, or8S):
vC9B = (or8S << 1) + 1
Mkmy = or8S + 1 << 1
CjUr = oLG2.where(WKvO[or8S] < WKvO[vC9B], vC9B, or8S)
CjUr = oLG2.where(WKvO[CjUr] < WKvO[Mkmy], Mkmy, CjUr)
return CjUr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RSt8(YKHO, d6pt):\n if YKHO.empty():\n return None\n if YKHO._has_left(d6pt):\n LFlW = YKHO._left(d6pt)\n D4CG = LFlW\n if YKHO._has_right(d6pt):\n _tIi = YKHO._right(d6pt)\n if YKHO._data[_tIi] == YKHO._data[LFlW]:\n D4CG = _tIi\n ... | [
"0.7674155",
"0.76735413",
"0.7172528",
"0.7167502",
"0.70155597",
"0.6976711",
"0.6932303",
"0.691233",
"0.6876073",
"0.687408",
"0.6855974",
"0.683167",
"0.680894",
"0.6774955",
"0.6743871",
"0.6741475",
"0.67109",
"0.6709332",
"0.66989976",
"0.6674324",
"0.66686666",
"0.... | 0.0 | -1 |
Heapifies a subtree starting from a given node | def Qi4g(WKvO, or8S):
exwG = len(WKvO)
cWFu = exwG >> 1
def A4ns(QTBn):
WKvO, or8S, bGrB = QTBn
CjUr = qhUn(WKvO, or8S)
nZuS = CjUr != or8S
WKvO = FePL.cond(nZuS, lambda WKvO: Ovux(WKvO, CjUr, or8S), lambda WKvO: WKvO, WKvO)
return (WKvO, CjUr, nZuS)
def JTyZ(QT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l6g0(YKHO, oeNL):\n if not YKHO.is_leaf(oeNL):\n if YKHO.Heap[oeNL] > YKHO.Heap[YKHO.left_child(oeNL)] or YKHO.Heap[oeNL] > YKHO.Heap[YKHO.right_child(oeNL)]:\n if YKHO.Heap[YKHO.left_child(oeNL)] < YKHO.Heap[YKHO.right_child(oeNL)]:\n YKHO.swap(oeNL, YKHO.left_child(oeNL))\... | [
"0.730668",
"0.7233791",
"0.6870105",
"0.68508685",
"0.6771289",
"0.67139894",
"0.66019195",
"0.65518856",
"0.6536261",
"0.6514367",
"0.6467823",
"0.6361919",
"0.6342516",
"0.6341134",
"0.6329597",
"0.6328174",
"0.6314242",
"0.62666494",
"0.62335044",
"0.62251323",
"0.620571"... | 0.6990611 | 2 |
Returns a random quote to be displayed on the community sandwich page | def gTcu():
PenU = ['Growth is never by mere chance; it is the result of forces working together.\n-James Cash Penney', 'We cannot accomplish all that we need to do without working together\n-Bill Richardson', 'The power of one, if fearless and focused, is formidable, but the power of many working together is bette... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BV4r(YKHO):\n return tuKI.choice(YKHO.inspirational_quotes)",
"def zlaX() -> cuzp:\n NCC9 = tuKI.choice(LiVU['quotes'])\n return NCC9",
"def zlaX():\n with open('./data/quotes.txt', 'r') as PenU:\n AEf6 = PenU.read().rstrip('\\n').split('\\n\\n')\n NCC9 = Acvy(AEf6)\n retur... | [
"0.7840503",
"0.76459634",
"0.7557797",
"0.74808735",
"0.7117414",
"0.7083641",
"0.6864093",
"0.6830333",
"0.6722464",
"0.6641399",
"0.64240575",
"0.6358891",
"0.6341214",
"0.6230407",
"0.6228168",
"0.62198406",
"0.6171568",
"0.6139154",
"0.61251044",
"0.61234236",
"0.6101212... | 0.8133398 | 0 |