query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Return an empty list, suitable as a LastInFirstOut Queue. | def S9Ut():
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V5Bx():\n return []",
"def eejY(YKHO, gGq6):\n list = []\n while True:\n try:\n list.append(gGq6.get(block=False))\n except rWmY:\n break\n return list",
"def VwEg(vexM):\n U5bT = []\n while True:\n try:\n U5bT.append(vexM.get_nowait()... | [
"0.7428059",
"0.7064755",
"0.68901134",
"0.6799977",
"0.67261785",
"0.67261785",
"0.6623768",
"0.65076554",
"0.64402944",
"0.6428013",
"0.6383567",
"0.637932",
"0.6376046",
"0.63469845",
"0.6320786",
"0.6277775",
"0.62600154",
"0.6236068",
"0.62002075",
"0.6193706",
"0.618860... | 0.0 | -1 |
returns the bool represented by the string, or None if the string can't be converted | def tYgd(KCHu):
if KCHu == 'true':
return True
elif KCHu == 'false':
return False
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOc6(vIwR):\n try:\n return bool(YcAF(vIwR))\n except ValueError:\n return None",
"def E8Lj(KCHu):\n if KCHu.lower() == 'true':\n return True\n elif KCHu.lower() == 'false':\n return False\n return None",
"def oOc6(KCHu, NNyr=False):\n KCHu = str(KCHu)\n if ... | [
"0.8491845",
"0.8471688",
"0.82704437",
"0.8212492",
"0.81907415",
"0.81496614",
"0.8147202",
"0.8128702",
"0.8099915",
"0.80930024",
"0.80845165",
"0.79911345",
"0.7986238",
"0.79537",
"0.79250604",
"0.79143625",
"0.78939945",
"0.7852688",
"0.785091",
"0.7837642",
"0.7834432... | 0.8068622 | 11 |
returns the quoted string represented by the string, or None if the string can't be converted | def W3zO(KCHu):
if _zb8.match(KCHu) is not None:
return KCHu[1:len(KCHu) - 1]
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FQK6(KCHu):\n if KCHu is None:\n return None\n QJFU = str(KCHu).replace('\\\\', '\\\\\\\\').replace(\"'\", \"\\\\'\")\n return \"'{}'\".format(QJFU)",
"def Rcnn(KCHu: str):\n SQ3m = KCHu.split()\n if len(SQ3m) < 2:\n return KCHu\n if '\"' in KCHu:\n raise ValueError(f'D... | [
"0.6818427",
"0.67505354",
"0.66215247",
"0.6553328",
"0.65063673",
"0.6441417",
"0.6378793",
"0.6373609",
"0.6373609",
"0.63251954",
"0.6317026",
"0.6308752",
"0.62499034",
"0.6235993",
"0.6212212",
"0.6208231",
"0.62022495",
"0.62018555",
"0.6200196",
"0.6194145",
"0.618631... | 0.7726075 | 0 |
Return the current state of this future. The state can be any string used to indicate the progress this future is making in its task. | def o5v_(YKHO):
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.async_result.state",
"def Olgd(YKHO):\n return YKHO.__state.value",
"def ja6o(YKHO) -> str:\n return YKHO._state",
"def QTBn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'state')",
"def QTBn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'state')",
"... | [
"0.77911896",
"0.73753977",
"0.7296719",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
"0.7285648",
... | 0.0 | -1 |
Stop the task (nicely). This method may return another future if stopping the task is expected to take time. Subclasses may extend this method and/or use _checkStop to determine whether stop() has been called. | def JCyR(YKHO, lo9Y='task stop requested'):
if YKHO.isDone():
return
if lo9Y is not None:
YKHO._errorMessage = lo9Y
YKHO._stopRequested = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n if YKHO.running:\n YKHO.should_stop = True\n YKHO.task.join()\n YKHO.task = None\n YKHO.running = False",
"def qLey(YKHO):\n YKHO.thread_stop = True",
"async def stop(YKHO):\n YKHO._stopping = True\n if YKHO.watch_task and (not YKHO.watch_task.done()):\n ... | [
"0.7275064",
"0.7175982",
"0.70260173",
"0.7015661",
"0.6937841",
"0.6919356",
"0.6910049",
"0.68470323",
"0.67501235",
"0.66546977",
"0.6618445",
"0.6617649",
"0.65908635",
"0.65490437",
"0.6503484",
"0.6497421",
"0.64796597",
"0.64578533",
"0.6443096",
"0.6414333",
"0.63813... | 0.66730344 | 9 |
Read file contents. Extract yaml config. Return post contents and parsed config. | def Gs92(YKHO):
eHNT = open(YKHO.path, 'r')
Z9rn = ''
yKcO = False
Os4s = False
Fv2L = ''
for WKvO in eHNT:
if WKvO.startswith('-' * 79):
if not yKcO:
yKcO = True
else:
Os4s = True
continue
if yKcO and (not Os4s)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pCTH():\n lqQH = vFN_()\n with open(lqQH, 'r') as Nu1S:\n return eJb6.safe_load(Nu1S)",
"def kfOW():\n with open(Fm4J) as WRxi:\n GPtr = eJb6.load(WRxi)\n return GPtr",
"def pCXw():\n RJsz = 'etc/settings.yml'\n with open(RJsz) as IznC:\n return eJb6.load(IznC)",
"d... | [
"0.7299155",
"0.7266564",
"0.72376436",
"0.72317797",
"0.7183048",
"0.7107277",
"0.7046054",
"0.7023881",
"0.6993181",
"0.6990255",
"0.6876",
"0.68676794",
"0.6847025",
"0.6846652",
"0.68439066",
"0.68410236",
"0.6840891",
"0.68300724",
"0.6789827",
"0.6788897",
"0.6784443",
... | 0.7168624 | 5 |
Return the index of the first or last occurrence of the target in the sorted list. | def Vrw5(IqQl, pan_, EOUg):
gqRb = 0
ODP9 = len(IqQl) - 1
d6pt = -1
while gqRb <= ODP9:
x1fj = gqRb + (ODP9 - gqRb) // 2
if IqQl[x1fj] == pan_:
if EOUg == WKue.FIRST:
d6pt = x1fj
ODP9 = x1fj - 1
elif EOUg == WKue.LAST:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bn4h(pan_, list):\n for YRbF in range(len(list) - 1, -1, -1):\n if list[YRbF] == pan_:\n return YRbF\n return None",
"def eMqW(yv6U, pan_):\n d6pt = 0\n for YRbF in yv6U:\n d6pt += 1\n if pan_ == YRbF:\n return d6pt - 1\n return -1",
"def kS1Y(YKHO,... | [
"0.8184334",
"0.805659",
"0.7761018",
"0.77503234",
"0.7717981",
"0.7674875",
"0.7653849",
"0.75511473",
"0.755024",
"0.75319535",
"0.74953383",
"0.7459491",
"0.742095",
"0.739406",
"0.7389712",
"0.7380581",
"0.72986037",
"0.7263138",
"0.7253968",
"0.7177298",
"0.7139689",
... | 0.74279475 | 12 |
Return the index of the first or last occurrence of the target in the sorted list. | def aHV3(IqQl, pan_, gqRb, ODP9, EOUg):
if gqRb > ODP9:
if EOUg == WKue.FIRST:
return float('inf')
elif EOUg == WKue.LAST:
return float('-inf')
x1fj = gqRb + (ODP9 - gqRb) // 2
if IqQl[x1fj] == pan_:
if EOUg == WKue.FIRST:
return min(x1fj, aHV3(IqQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bn4h(pan_, list):\n for YRbF in range(len(list) - 1, -1, -1):\n if list[YRbF] == pan_:\n return YRbF\n return None",
"def eMqW(yv6U, pan_):\n d6pt = 0\n for YRbF in yv6U:\n d6pt += 1\n if pan_ == YRbF:\n return d6pt - 1\n return -1",
"def kS1Y(YKHO,... | [
"0.8183994",
"0.8056657",
"0.7760392",
"0.77496356",
"0.7717463",
"0.7674138",
"0.7654111",
"0.75495857",
"0.7549381",
"0.75312287",
"0.74951965",
"0.74598557",
"0.7428033",
"0.7420462",
"0.7394246",
"0.7388963",
"0.7379003",
"0.7297693",
"0.7264045",
"0.7253749",
"0.71770483... | 0.0 | -1 |
Returns the last message created or None, if output has not been specified. | async def respond_with_output(OaeV: _ApplicationContext, hlel: _Union[_List[_Embed], _List[str]], wfOR: int=qWPk, Gniv: bool=False, tTee: _View=AnPu) -> NWoW[GeAi, RUT9]:
Aofo = None
if hlel:
a7ki = OaeV.interaction.response.is_done()
ZBlj = isinstance(hlel[0], l1Aw)
hlel = o6p8(hlel)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eair(YKHO):\n YKHO.newest_message = YKHO.sub.get_message()\n return YKHO.newest_message",
"def Eair(YKHO):\n if not YKHO._messages:\n return None\n else:\n return YKHO._messages.pop(0)",
"def FRPD(YKHO, komd=False):\n My6x = YKHO.get_messages(ghost=komd).order_by('-id')\n re... | [
"0.63534373",
"0.623615",
"0.6221894",
"0.6119247",
"0.61176634",
"0.6067987",
"0.6032784",
"0.6025334",
"0.601829",
"0.5957762",
"0.58679545",
"0.5826438",
"0.58261025",
"0.5804369",
"0.57987136",
"0.57441545",
"0.57290435",
"0.5728797",
"0.57260704",
"0.5716807",
"0.5712259... | 0.0 | -1 |
Returns the last message created or None, if neither output nor files have been specified. | async def reply_with_output_and_files(OaeV: _Context, hlel: _Union[_List[_Embed], _List[str]], xXFf: _List[str], ZBlj: bool=False, wfOR: int=qWPk, zQWe: bool=False) -> None:
Aofo = None
if hlel or xXFf:
if hlel:
hlel = o6p8(hlel)
if ZBlj:
FvVY = SDg3(hlel)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dL4c(YKHO):\n if YKHO.file:\n return YKHO.file.pop(0)\n else:\n return ''",
"def Wr0U(YKHO) -> h8nf[JRYC.datetime]:\n if YKHO.__desc.touched_at is not None:\n return JRYC.datetime.utcfromtimestamp(YKHO.__desc.touched_at / 1000.0)\n return None",
"def Eair(YKHO):\n YKHO.n... | [
"0.6105006",
"0.60622823",
"0.5960094",
"0.59564227",
"0.5952187",
"0.58546853",
"0.5850392",
"0.58300495",
"0.57826704",
"0.5719864",
"0.5680942",
"0.563106",
"0.562478",
"0.5618683",
"0.5586375",
"0.5569725",
"0.5503107",
"0.5458602",
"0.5440215",
"0.5425501",
"0.5423137",
... | 0.0 | -1 |
Returns the last message created or None, if output has not been specified. | async def respond_with_output_and_files(OaeV: _ApplicationContext, hlel: _Union[_List[_Embed], _List[str]], xXFf: _List[str], wfOR: int=qWPk, Gniv: bool=False) -> NWoW[GeAi, RUT9]:
Aofo = None
if hlel:
ZBlj = isinstance(hlel[0], l1Aw)
hlel = o6p8(hlel)
if ZBlj:
FvVY = SDg3(hl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eair(YKHO):\n YKHO.newest_message = YKHO.sub.get_message()\n return YKHO.newest_message",
"def Eair(YKHO):\n if not YKHO._messages:\n return None\n else:\n return YKHO._messages.pop(0)",
"def FRPD(YKHO, komd=False):\n My6x = YKHO.get_messages(ghost=komd).order_by('-id')\n re... | [
"0.6354125",
"0.62366843",
"0.62221307",
"0.61197644",
"0.6117577",
"0.60677433",
"0.6031276",
"0.6025524",
"0.6017971",
"0.5955882",
"0.58690023",
"0.5826898",
"0.5826363",
"0.58040404",
"0.5799166",
"0.5745047",
"0.5728884",
"0.57281697",
"0.5725257",
"0.57165337",
"0.57104... | 0.0 | -1 |
Return the list of transport reactions that have no associated gpr. | def aq6H(C3ST):
return [lt_I for lt_I in XN37.find_transport_reactions(C3ST) if not lt_I.gene_reaction_rule] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lEsA(YKHO):\n return (u_ln for u_ln in YKHO.filter(include={rhS7}) if not u_ln.peers)",
"def ZeIz(YKHO):\n return [lt_I for lt_I in YKHO.reactions if not lt_I.reversible]",
"def F0D1(YKHO):\n return (u_ln for u_ln in YKHO.filter(include={BnOw}) if not u_ln.peers)",
"def gWDF(YKHO):\n return [... | [
"0.6501435",
"0.6501162",
"0.62788576",
"0.60952014",
"0.60740155",
"0.59615177",
"0.58707494",
"0.57201725",
"0.5653641",
"0.5612554",
"0.55687624",
"0.551804",
"0.551804",
"0.5489447",
"0.5433948",
"0.5421759",
"0.53967506",
"0.53838813",
"0.53546053",
"0.53546053",
"0.5343... | 0.72324246 | 0 |
Return reduced copy of `items` | def AQ_M(DumB, gJdh=lambda eHNT: eHNT, Zode=True, lsmZ=True, DNHh=(), a4gM=()):
def SBDS(pmON):
for mWFP in str(pmON).split(Hy7s.sep):
if mWFP != '.' and mWFP != '..' and mWFP and (mWFP[0] == '.'):
return True
return False
def Eprg(pmON, jw3d=tuple((WKvO for WKvO in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWqx(DumB):\n PwWw = {}\n return [PwWw.setdefault(WKvO, WKvO) for WKvO in DumB if WKvO not in PwWw]",
"def nHZh(Emd4, DumB):\n PMve = []\n for YRbF in range(0, len(DumB)):\n PMve.append(Emd4._dh_flatten_item(DumB[YRbF]))\n return PMve",
"def jth9(YKHO):\n jth9 = aQHO(YKHO.items)\n ... | [
"0.6390767",
"0.6318465",
"0.6316943",
"0.6285459",
"0.6282968",
"0.6246178",
"0.62363213",
"0.6218858",
"0.6176917",
"0.6130537",
"0.61152846",
"0.6077062",
"0.60635126",
"0.6007953",
"0.59942913",
"0.59696555",
"0.5949362",
"0.59353405",
"0.5928883",
"0.59182596",
"0.591819... | 0.0 | -1 |
Return whether `url` is a valid URL | def yto3(bD7m):
try:
P6bq = uRlK.parse.urlparse(bD7m)
P6bq.port
except Exception:
return False
else:
if not P6bq.scheme or not P6bq.netloc:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yaqE(bD7m):\n return True if f8eG.match(bD7m) else False",
"def SGVO(bD7m):\n aBkf = _FIc.URLValidator()\n try:\n aBkf(bD7m)\n except _FIc.ValidationError:\n return False\n else:\n return True",
"def XdzF(bD7m: str) -> bool:\n try:\n return VyJ2(bD7m).scheme in... | [
"0.92011523",
"0.9003754",
"0.89502275",
"0.8879773",
"0.8872446",
"0.8831143",
"0.8779783",
"0.8772738",
"0.8770575",
"0.8735567",
"0.87276995",
"0.8723745",
"0.8723324",
"0.8718916",
"0.8715847",
"0.87119836",
"0.8696536",
"0.8696536",
"0.8696536",
"0.8696536",
"0.8696536",... | 0.8475523 | 39 |
Reads a csv of voters preferences and return a NumPy array representing it. | def y1h5(pmON: str) -> oyIN.ndarray:
QhXp = oyIN.loadtxt(pmON, delimiter=',', dtype=int)
return QhXp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZAQi():\n xbrj = []\n nUeQ = open('coronavirus_data.csv', 'r', encoding='utf8')\n Nqlg = nUeQ.readlines()\n nUeQ.close()\n for zFiD in Nqlg[1:]:\n nPrm = zFiD.split(',')\n xbrj.append(nPrm)\n UgKn = oyIN.array(xbrj)\n return UgKn",
"def HND1(YKHO):\n F_On = []\n eHNT ... | [
"0.64927536",
"0.6364118",
"0.6232736",
"0.6195839",
"0.61396575",
"0.6125269",
"0.6082274",
"0.60687584",
"0.6048112",
"0.60423386",
"0.6033881",
"0.60032445",
"0.59748226",
"0.59506255",
"0.5925547",
"0.59132093",
"0.5903684",
"0.5880692",
"0.5880132",
"0.5867704",
"0.58315... | 0.55427676 | 50 |
Calculates the normalized kendall tau distance of two sorted indices arrays. | def M2nJ(jzdc: np.ndarray, Fg_i: np.ndarray) -> float:
r8hN = len(jzdc)
YRbF, r845 = oyIN.meshgrid(oyIN.arange(r8hN), oyIN.arange(r8hN))
zGeN = oyIN.logical_or(oyIN.logical_and(jzdc[YRbF] < jzdc[r845], Fg_i[YRbF] > Fg_i[r845]), oyIN.logical_and(jzdc[YRbF] > jzdc[r845], Fg_i[YRbF] < Fg_i[r845])).sum()
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qsjl(p9uc, ODx9):\n exwG = len(p9uc)\n assert len(ODx9) == exwG, 'Both lists have to be of equal length'\n YRbF, r845 = oyIN.meshgrid(oyIN.arange(exwG), oyIN.arange(exwG))\n jzdc = oyIN.argsort(p9uc)\n Fg_i = oyIN.argsort(ODx9)\n zGeN = oyIN.logical_or(oyIN.logical_and(jzdc[YRbF] < jzdc[r845]... | [
"0.7661407",
"0.71715444",
"0.6676597",
"0.66079515",
"0.6379015",
"0.62235373",
"0.6119765",
"0.605038",
"0.5953051",
"0.5881451",
"0.58796084",
"0.58700216",
"0.5772315",
"0.576693",
"0.5696796",
"0.5673524",
"0.5668937",
"0.5665361",
"0.56593937",
"0.56272584",
"0.56219053... | 0.6707426 | 2 |
Return the default mocked config entry. | def XRWJ() -> Jaru:
return Jaru(title='Green House', unique_id='unique', domain=Sugg, data={Z8q8: 52.42, BcvV: 4.42}, options={fFds: 'abcdef12345', IB5I: 30, L5y4: 190, Ige_: 5100, ACi9: 0.5}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XRWJ() -> Jaru:\n return Jaru(domain=Sugg, title=kdvQ, unique_id=zJw9, data=X8Rg, options=None)",
"def XRWJ() -> Jaru:\n return Jaru(title='KNX', domain=Pu9l, data={rmRs: rkMn, sHTF: i0lq, Gkyp: PJ28, S3JQ: mLal, XTwe: ocvY, m6sJ: gyYU})",
"def XRWJ() -> Jaru:\n return Jaru(domain=Sugg, data={WYtC... | [
"0.7947017",
"0.7613147",
"0.7547239",
"0.74817073",
"0.7465494",
"0.7247815",
"0.71769524",
"0.7163008",
"0.71356505",
"0.7087014",
"0.701563",
"0.7013493",
"0.6955764",
"0.6914516",
"0.6879431",
"0.68706983",
"0.68609935",
"0.6855602",
"0.6799779",
"0.6766686",
"0.6756392",... | 0.7292877 | 5 |
Return a mocked Forecast.Solar client. | def s1aF() -> jd6F[None, CFMy, None]:
with Po4F('homeassistant.components.forecast_solar.ForecastSolar', autospec=True) as duL1:
wzAx = duL1.return_value
bbTD = CFMy()
bbTD.timezone = 'Europe/Amsterdam'
bbTD.energy_production_today = 100
bbTD.energy_production_tomorrow = 200
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d1k_() -> i9zE:\n return i9zE(host=EHMP, api_key=WXSU, reliability='C - Fairly reliable')",
"def ugjJ(m4Tx: Decoy) -> hKE7:\n return m4Tx.mock(cls=hKE7)",
"def PDWV(YKHO):\n return FM6F(get=FM6F())",
"def d1k_(DpZH: str) -> i9zE:\n _djb = cqxZ if DpZH == cqxZ.API_VER else rYgu\n x0hE: i9zE... | [
"0.6487455",
"0.6415803",
"0.64109457",
"0.591696",
"0.58375716",
"0.58349985",
"0.57589096",
"0.5755162",
"0.56145793",
"0.5594139",
"0.558102",
"0.55456114",
"0.55428094",
"0.5494878",
"0.54804367",
"0.5476849",
"0.5473105",
"0.5461497",
"0.5460008",
"0.5445281",
"0.5437612... | 0.6341921 | 3 |
Preinitialize any required attributes for the interface. | def xLeW(YKHO):
YKHO.telescope = oj0g(aperture=LtgV(12.0 * P6bq.m))
YKHO.camera = RUQe()
YKHO.telescope.add_camera(YKHO.camera)
YKHO.image_options = ['Deep Field', 'Pluto']
YKHO.format_string = rQ9a
YKHO.interface_file = Hy7s.path.join(Qeo_, 'interface.yaml')
YKHO.upload_js = a_kJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qtjT(YKHO):\n raise Exception('Not implemented.')",
"def kxbk(YKHO):\n pass",
"def RCl8(YKHO):\n YKHO._vioservers, YKHO._hmcs = (None, None)",
"def _I9l(YKHO):\n try:\n YKHO.PortScanner = Xe1g.PortScanner()\n except:\n YKHO.PortScanner = None",
"def RCl8(YKHO):\n pass",
... | [
"0.73194796",
"0.6998262",
"0.6963127",
"0.6947998",
"0.69407743",
"0.69148564",
"0.6903438",
"0.6863118",
"0.6771098",
"0.6765616",
"0.6712453",
"0.66806275",
"0.66713667",
"0.6671165",
"0.6665041",
"0.6665041",
"0.6665041",
"0.6665041",
"0.6665041",
"0.66367924",
"0.6590816... | 0.6276894 | 81 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
kdXA = cmPJ.get('gateway')
jGRS = cmPJ.get('status')
mRbj = cmPJ.get('pgid')
aJ2e = cmPJ.get('created_at')
zB0d = cmPJ.get('updated_at')
return Emd4(kdXA, jGRS, mRbj, aJ2e, zB0d) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78... | 0.0 | -1 |
Checks that GET types return correct status code and data format | def F0aT(YKHO):
print('(' + YKHO.test_get_users.__name__ + ')', YKHO.test_get_users.__doc__)
_hkX = YKHO.client.get(WsL5.url_for('users'))
YKHO.assertEqual(_hkX.status_code, 200)
nPrm = qQXR.loads(_hkX.data.decode('utf-8'))
vQ4U = nPrm['@controls']
YKHO.assertIn('self', vQ4U)
YKHO.assertIn('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tx7H(YKHO):\n MESd = JeT2\n for kM7a in MESd:\n aY_I = YKHO.app.get(f'/{kM7a}')\n JBvl = aY_I.status_code\n YKHO.assertEqual(JBvl, 404)",
"def ochF(YKHO):\n geh0 = LohM('GET')\n YKHO.assertEquals(geh0.code, rFt7.OK)",
"def W0YI(YKHO):\n NArs = {'submission_id': YKHO.stat... | [
"0.71817034",
"0.6905018",
"0.66747993",
"0.6642022",
"0.65481514",
"0.65013254",
"0.64911026",
"0.64806604",
"0.6438676",
"0.6392376",
"0.637973",
"0.6345933",
"0.63382185",
"0.6294093",
"0.62828344",
"0.62828344",
"0.62828344",
"0.62809694",
"0.6231841",
"0.6227691",
"0.621... | 0.0 | -1 |
Checks that GET users return correct status code and data format | def QbAl(YKHO):
print('(' + YKHO.test_get_users_mimetype.__name__ + ')', YKHO.test_get_users_mimetype.__doc__)
_hkX = YKHO.client.get(WsL5.url_for('users'))
YKHO.assertEqual(_hkX.status_code, 200)
YKHO.assertEqual(_hkX.headers.get('Content-Type', None), '{};{}'.format(nALE, JdT4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ochF(YKHO):\n geh0 = LohM('GET')\n YKHO.assertEquals(geh0.code, rFt7.OK)",
"def jsYV(YKHO):\n geh0 = YKHO.client.get(nKyW('users.get_user', user_id=YKHO.user.id), headers=YKHO.headers)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertEqual(qQXR.loads(geh0.data.decode('utf-8')), YKHO.user... | [
"0.68393934",
"0.68361455",
"0.67174333",
"0.6696012",
"0.6633826",
"0.6620582",
"0.655492",
"0.65521544",
"0.6528466",
"0.65267676",
"0.6499793",
"0.64869934",
"0.6482549",
"0.6478904",
"0.6451934",
"0.6449975",
"0.6440866",
"0.64252156",
"0.64252156",
"0.64252156",
"0.64211... | 0.0 | -1 |
Checks that GET users return correct status code and data format | def QbAl(YKHO):
print('(' + YKHO.test_get_users_mimetype.__name__ + ')', YKHO.test_get_users_mimetype.__doc__)
_hkX = YKHO.client.get(YKHO.url)
YKHO.assertEqual(_hkX.status_code, 200)
YKHO.assertEqual(_hkX.headers.get('Content-Type', None), '{};{}'.format(nALE, JdT4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ochF(YKHO):\n geh0 = LohM('GET')\n YKHO.assertEquals(geh0.code, rFt7.OK)",
"def jsYV(YKHO):\n geh0 = YKHO.client.get(nKyW('users.get_user', user_id=YKHO.user.id), headers=YKHO.headers)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertEqual(qQXR.loads(geh0.data.decode('utf-8')), YKHO.user... | [
"0.68393934",
"0.68361455",
"0.67174333",
"0.6696012",
"0.6633826",
"0.6620582",
"0.655492",
"0.65521544",
"0.6528466",
"0.65267676",
"0.6499793",
"0.64869934",
"0.6482549",
"0.6478904",
"0.6451934",
"0.6449975",
"0.6440866",
"0.64252156",
"0.64252156",
"0.64252156",
"0.64211... | 0.0 | -1 |
Returns the (flattened, logtransformed) nonfixed hyperparameters. Note that theta are typically the logtransformed values of the kernel's hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like lengthscales naturally live on a logscale. Returns | def q7In(YKHO):
return YKHO.kernel.theta | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q7In(YKHO):\n q7In = []\n NArs = YKHO.get_params()\n for bpHD in YKHO.hyperparameters:\n if not bpHD.fixed:\n q7In.append(NArs[bpHD.name])\n if len(q7In) > 0:\n return oyIN.log(oyIN.hstack(q7In))\n else:\n return oyIN.array([])",
"def RATq(q7In):\n if q8TV.ev... | [
"0.6377291",
"0.63405436",
"0.6296741",
"0.6261318",
"0.60328346",
"0.6027783",
"0.596458",
"0.59014344",
"0.5887043",
"0.5850546",
"0.5845749",
"0.5820643",
"0.57535666",
"0.57346517",
"0.56468487",
"0.56365097",
"0.5582832",
"0.5560661",
"0.5543631",
"0.5519803",
"0.5498933... | 0.0 | -1 |
Returns the logtransformed bounds on the theta. Returns | def X7zS(YKHO):
return YKHO.kernel.bounds | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EG1P(YKHO) -> AzJI[float, float]:\n return (YKHO.logMl, YKHO.logMu)",
"def EG1P(YKHO) -> AzJI[float, float]:\n return (YKHO.logMl, YKHO.logMu)",
"def EG1P(YKHO) -> AzJI[float, float]:\n return (YKHO.logMl, YKHO.logMu)",
"def X7zS(YKHO):\n X7zS = [bpHD.bounds for bpHD in YKHO.hyperparameters i... | [
"0.69729733",
"0.69729733",
"0.69729733",
"0.67421013",
"0.661179",
"0.6607925",
"0.65807354",
"0.6508612",
"0.64597243",
"0.6446726",
"0.6440564",
"0.6391395",
"0.63823384",
"0.6381809",
"0.636526",
"0.63580024",
"0.63318896",
"0.6284675",
"0.6249483",
"0.6237106",
"0.622878... | 0.0 | -1 |
Returns the (flattened, logtransformed) nonfixed hyperparameters. Note that theta are typically the logtransformed values of the kernel's hyperparameters as this representation of the search space is more amenable for hyperparameter search, as hyperparameters like lengthscales naturally live on a logscale. Returns | def q7In(YKHO):
return YKHO.kernel.theta | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q7In(YKHO):\n q7In = []\n NArs = YKHO.get_params()\n for bpHD in YKHO.hyperparameters:\n if not bpHD.fixed:\n q7In.append(NArs[bpHD.name])\n if len(q7In) > 0:\n return oyIN.log(oyIN.hstack(q7In))\n else:\n return oyIN.array([])",
"def RATq(q7In):\n if q8TV.ev... | [
"0.63763136",
"0.63382137",
"0.6293428",
"0.6263062",
"0.6033155",
"0.6030535",
"0.5968042",
"0.5898369",
"0.58898443",
"0.58522224",
"0.5848797",
"0.5816403",
"0.57518566",
"0.5737472",
"0.5645461",
"0.5639448",
"0.55845916",
"0.55612075",
"0.5541476",
"0.5519229",
"0.549701... | 0.0 | -1 |
Returns the logtransformed bounds on the theta. Returns | def X7zS(YKHO):
return YKHO.kernel.bounds | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EG1P(YKHO) -> AzJI[float, float]:\n return (YKHO.logMl, YKHO.logMu)",
"def EG1P(YKHO) -> AzJI[float, float]:\n return (YKHO.logMl, YKHO.logMu)",
"def EG1P(YKHO) -> AzJI[float, float]:\n return (YKHO.logMl, YKHO.logMu)",
"def X7zS(YKHO):\n X7zS = [bpHD.bounds for bpHD in YKHO.hyperparameters i... | [
"0.69730186",
"0.69730186",
"0.69730186",
"0.6740756",
"0.6613702",
"0.6610737",
"0.65842104",
"0.651126",
"0.6461923",
"0.6450129",
"0.64428765",
"0.6393845",
"0.63839966",
"0.63839597",
"0.6367364",
"0.63559824",
"0.6332911",
"0.62872994",
"0.6250788",
"0.62395006",
"0.6231... | 0.0 | -1 |
Find the maximum number in a list. | def jlgE(JTgH):
QI1n = max(JTgH)
return QI1n | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipPO(aO51):\n WGtv = aO51[0]\n for FGW3 in aO51:\n if WGtv < FGW3:\n WGtv = FGW3\n return WGtv",
"def sU3K(CaKm):\n WGtv = max(CaKm)\n return WGtv",
"def FtUH(mSrU):\n kUVL = mSrU[0]\n for exwG in mSrU:\n if exwG > kUVL:\n kUVL = exwG\n return kUV... | [
"0.8635619",
"0.85421604",
"0.8485",
"0.8356557",
"0.8305229",
"0.83030105",
"0.8116753",
"0.81148374",
"0.8104465",
"0.8072957",
"0.79926944",
"0.79724026",
"0.79703456",
"0.78901786",
"0.7886808",
"0.7861601",
"0.78592944",
"0.7855372",
"0.7852619",
"0.7825125",
"0.7797674"... | 0.86809194 | 0 |
Present frontpage with user authentication. | def Wp7P(YKHO):
MkeE = YKHO.headers.get('Authorization')
zYnI = None
if MkeE:
if MkeE == f'Basic {YKHO.KEY}':
SXZs.do_GET(YKHO)
else:
YKHO.send_error(code=401, message='not authenticated')
else:
KkWy = YKHO.path.split('?')
if len(KkWy) > 1:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IC8O():\n if cuiw.get('user'):\n return TvZl('homepage.html')\n else:\n return TvZl('login_create.html')",
"def vja_():\n if 'logged_in_customer_email' in cuiw:\n cHyp = cuiw['logged_in_customer_email']\n CBIr = mv1M.query.filter(mv1M.email == cHyp).one()\n return ... | [
"0.7462021",
"0.71685314",
"0.7038804",
"0.7032825",
"0.7032825",
"0.7004823",
"0.69094133",
"0.68740255",
"0.6858815",
"0.68415034",
"0.68261695",
"0.68153125",
"0.6811711",
"0.67637426",
"0.67457366",
"0.6724238",
"0.670809",
"0.6693382",
"0.6677664",
"0.66773283",
"0.66396... | 0.0 | -1 |
Checks for existing users with the supplied email address. | def YBiq(YKHO):
D3lj = mV2G(YKHO.cleaned_data['email'])
if mv1M._default_manager.filter(email__iexact=D3lj).exists():
raise H6V6.ValidationError(bGrB('A user with that email address already exists'))
return D3lj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hnaj(D3lj):\n return u1Nz(None, D3lj, None, None).__len__() > 0",
"def V7zm(D3lj):\n if not TQW7.get_user(D3lj):\n raise sUXu(Eair('USER_DOES_NOT_EXIST')[0])",
"def e6RR(YKHO, D3lj):\n UzPC = S8mj()\n jyYI = UzPC.cursor()\n jyYI.execute('SELECT * FROM users WHERE email = %(email)s', {... | [
"0.78866273",
"0.78847134",
"0.7853794",
"0.7752215",
"0.76294243",
"0.76098174",
"0.7522005",
"0.74301386",
"0.7405773",
"0.7381359",
"0.73502654",
"0.7321614",
"0.73210895",
"0.72889215",
"0.7288017",
"0.72870517",
"0.7269294",
"0.7200452",
"0.71792364",
"0.716135",
"0.7131... | 0.0 | -1 |
Updates a training history dataframe. | def rdod(FLXQ, Wbxz, qtWj, N77f, AIKr, ITS7):
Zc0J = {'epoch': [qtWj], 'time': [ITS7], 'loss': [N77f], 'val_loss': [AIKr]}
Zc0J.update(Wbxz)
Zc0J = rLdf.DataFrame.from_dict(Zc0J)
if FLXQ is not None:
return rLdf.concat([FLXQ, Zc0J]).reset_index(drop=True)
else:
return Zc0J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SjWN(YKHO, M4N3):\n for YRbF in range(YKHO.history - 1):\n YKHO._history[:, YRbF] = YKHO._history[:, YRbF + 1]\n YKHO._history[:, -1] = M4N3",
"def ZVi_(YKHO, jQ3Z):\n YKHO.dataframe.unpersist()\n YKHO.dataframe = jQ3Z\n YKHO.dataframe.persist()\n YKHO.historyIndex += 1\n YKHO.his... | [
"0.67762357",
"0.6547751",
"0.64504707",
"0.6284133",
"0.6266519",
"0.62099123",
"0.6186952",
"0.6174979",
"0.6174979",
"0.60936326",
"0.60722023",
"0.6034543",
"0.6034169",
"0.6000638",
"0.59827614",
"0.5962794",
"0.5959609",
"0.5953607",
"0.59477013",
"0.5920437",
"0.591694... | 0.72037965 | 0 |
Dictionary of preset names and configurations that include weights. | def TbT_(Emd4):
return jth9.deepcopy(TbT_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TbT_(Emd4):\n return {}",
"def TbT_(Emd4):\n return {}",
"def TbT_(Emd4):\n return {}",
"def TbT_(Emd4):\n return Emd4.presets",
"def TbT_(Emd4):\n return Emd4.presets",
"def TbT_(Emd4):\n return Emd4.presets",
"def TbT_(Emd4):\n return Emd4.presets",
"def TbT_(Emd4):\n re... | [
"0.75927156",
"0.75927156",
"0.75927156",
"0.717307",
"0.717307",
"0.717307",
"0.717307",
"0.717307",
"0.717307",
"0.717307",
"0.717307",
"0.717307",
"0.717307",
"0.6822244",
"0.67972183",
"0.6724511",
"0.6720216",
"0.6720216",
"0.6720216",
"0.6695795",
"0.6652589",
"0.6590... | 0.6646334 | 21 |
Get the description of the version. | def JBZA(YKHO):
return YKHO.__description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _DcP(YKHO) -> str:\n return qe4Y.get(YKHO, 'version_description')",
"def bH1X(YKHO, DpZH='v1'):\n return YKHO._list_request(DpZH, permanent=True)",
"def t5do(YKHO, KAOR):\n uPYU = KAOR.latest_version\n if uPYU:\n return uPYU.description\n return ''",
"def JBZA(YKHO):\n return YKH... | [
"0.8955533",
"0.8575007",
"0.8037037",
"0.7578249",
"0.74300086",
"0.73550594",
"0.73532134",
"0.735281",
"0.72979677",
"0.72892433",
"0.72821486",
"0.72821486",
"0.72821486",
"0.72821486",
"0.72821486",
"0.72821486",
"0.72821486",
"0.72821486",
"0.72821486",
"0.72821486",
"0... | 0.0 | -1 |
Get the output type of the version. | def type(YKHO):
return YKHO.__type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bfmr(YKHO):\n return YKHO.output_type",
"def SXc_(YKHO):\n return YKHO.__output_type",
"def SXc_(YKHO):\n return YKHO.__output_type",
"def SXc_(YKHO):\n return YKHO.__output_type",
"def SXc_(YKHO):\n return YKHO.__output_type",
"def SXc_(YKHO):\n return YKHO.__output_type",
"def S... | [
"0.7972665",
"0.79555726",
"0.79555726",
"0.79555726",
"0.79555726",
"0.79555726",
"0.79555726",
"0.787813",
"0.7747286",
"0.7573434",
"0.7275931",
"0.7275931",
"0.7275931",
"0.7275931",
"0.7275931",
"0.7202128",
"0.7200267",
"0.7200267",
"0.7200267",
"0.7200267",
"0.7200267"... | 0.0 | -1 |
Returns whether the user is complete. Should be used for assigning the state. | def ZZQq(CBIr):
return CBIr.dob and CBIr.gid_is and CBIr.gid_seeking and CBIr.seeking_age_from and CBIr.seeking_age_to and CBIr.first_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZQq(YKHO):\n return YKHO.status == YKHO.COMPLETE",
"def ZZQq(YKHO):\n return YKHO._is_complete",
"def ZZQq(YKHO):\n return YKHO._is_complete",
"def ZdZa(YKHO):\n return YKHO.state == UZjT",
"def AKc4(YKHO):\n return YKHO.password and YKHO.is_contributor_or_beneficiary",
"def ZZQq(YKHO... | [
"0.77666074",
"0.7703319",
"0.7703319",
"0.75209135",
"0.75159365",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
"0.74998224",
... | 0.7828508 | 0 |
Return the unit of measurement. | def xklW(YKHO):
return hMVl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82... | [
"0.90788347",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9042988",
"0.9013875",
"0.90051067",
"0.89462197",
"0.89462197",
"0.89366317",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.8918... | 0.0 | -1 |
Return the state attributes. | def R1i3(YKHO):
o8Kj = super().state_attributes
if YKHO._channel is not None:
o8Kj[ZD3w] = YKHO._channel
if YKHO._id is not None:
o8Kj[l24W] = YKHO._id
if YKHO._battery is not None:
o8Kj[K5I4] = YKHO._battery
return o8Kj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.0 | -1 |
Returns the neighbors of the given node. | def qIRx(Q6kx):
bdGm = []
RA_F = [-1, 1]
for YRbF in RA_F:
bdGm.append((Q6kx.x + YRbF, Q6kx.y))
bdGm.append((Q6kx.x, Q6kx.y + YRbF))
return bdGm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_IW(YKHO, Q6kx):\n return YKHO._node_neighbors[Q6kx]",
"def A_IW(YKHO, Q6kx):\n try:\n Aofo = list(YKHO._graph.neighbors(Q6kx))\n except jHsn.NetworkXError:\n Aofo = []\n return Aofo",
"def A_IW(YKHO, Q6kx):\n return ((Q6kx[0] + J87D[0], Q6kx[1] + J87D[1], Q6kx[2] + J87D[2]) f... | [
"0.8724109",
"0.86769146",
"0.8562028",
"0.84741277",
"0.84741277",
"0.84741277",
"0.8439733",
"0.83919567",
"0.838444",
"0.8289046",
"0.827723",
"0.82641995",
"0.8231675",
"0.81434965",
"0.8134114",
"0.8090533",
"0.80408704",
"0.7986808",
"0.79470605",
"0.79161966",
"0.78534... | 0.77650434 | 23 |
Load a list from a JSON string. | def Z2eN(OaeV, xqoZ, BWXx):
if type(BWXx) is str:
BWXx = qQXR.loads(BWXx)
if type(BWXx) not in [list, type(None)]:
OaeV.fail('Invalid option: %s=%s, which must be list, str, or None.' % (xqoZ.name, BWXx))
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3BH(zEKB):\n Uqbu = []\n if zEKB is None or not zEKB:\n return Uqbu\n else:\n Uqbu = qQXR.loads(zEKB)\n return Uqbu",
"def K3BH(zEKB):\n UHhk = []\n if zEKB is None or len(zEKB) == 0:\n return UHhk\n else:\n UHhk = qQXR.loads(zEKB)\n return UHhk",
... | [
"0.77412313",
"0.7668925",
"0.7614108",
"0.7561253",
"0.7516209",
"0.73419285",
"0.73380476",
"0.73213536",
"0.71956545",
"0.717173",
"0.717173",
"0.7167023",
"0.7154647",
"0.71151626",
"0.71151626",
"0.71151626",
"0.71151626",
"0.70734715",
"0.70687276",
"0.7059993",
"0.7057... | 0.6190304 | 76 |
Computes the global beta vector, mean_y_global & dof_global | def KR28(qIxc):
IqQl = qIxc['input']
Fe0Y = list(IqQl)[0]
ikh4 = oyIN.array(qIxc['cache']['avg_beta_vector'])
bv8o = [IqQl[qpDA]['local_stats_list'] for qpDA in IqQl]
uYz1 = [IqQl[qpDA]['mean_y_local'] for qpDA in IqQl]
JvtM = [oyIN.array(IqQl[qpDA]['count_local']) for qpDA in IqQl]
tQZD = o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yD0E(YKHO, Oa1e):\n if Oa1e.dim == YKHO._Nd:\n return YKHO.rock.BULK_MODULUS * 3 * YKHO.rock.THERMAL_EXPANSION\n else:\n X73w = YKHO.gb.node_props(Oa1e)[_oWe.STATE][_oWe.ITERATE]\n RTOE = X73w[YKHO.temperature_variable] * YKHO.temperature_scale\n AEBY = YKHO.fluid.specific_hea... | [
"0.6854266",
"0.65834534",
"0.6333845",
"0.63013136",
"0.62784415",
"0.6234823",
"0.6208489",
"0.6203159",
"0.6198122",
"0.6169724",
"0.6168337",
"0.6149813",
"0.6141815",
"0.61097383",
"0.6106059",
"0.6080675",
"0.6080675",
"0.6072954",
"0.6070694",
"0.60664773",
"0.60246617... | 0.0 | -1 |
Build a dictionary for a given company's belongings | def uHkQ(q9zX):
m72s = yKHO(initial={'company_name': q9zX.name})
_NXQ = kjZ_(initial={'company_name': q9zX.name})
RAaQ = z1L7(q9zX)
i4Z4 = nH3a(q9zX)
BsXf = {'company': q9zX, 'cleaned_company_name': NVCy(q9zX.name), 'workspace_launch_form': m72s, 'employment_form': _NXQ, 'workspaces_list': RAaQ, 'em... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EVPy(Ld8m):\n oZqY = s9HI.objects.filter(owner=Ld8m)\n RHY_ = s9HI.objects.filter(employee=Ld8m)\n Vdmk = {}\n for q9zX in oZqY:\n BsXf = uHkQ(q9zX)\n Vdmk[q9zX.name] = BsXf\n for q9zX in RHY_:\n BsXf = uHkQ(q9zX)\n Vdmk[q9zX.name] = BsXf\n return Vdmk",
"def wX7... | [
"0.69926846",
"0.66526634",
"0.6364869",
"0.59921926",
"0.5956312",
"0.5856157",
"0.5812788",
"0.5808186",
"0.57356167",
"0.57221526",
"0.55858696",
"0.55721486",
"0.5538876",
"0.5523585",
"0.5499545",
"0.5490962",
"0.5486849",
"0.5483946",
"0.5469845",
"0.54626054",
"0.54291... | 0.62924546 | 3 |
Checks that a given email is a valid email email email to validate errors (out) | def OiRQ(D3lj, UAju):
Aofo = True
try:
Bt7w(D3lj)
except:
UAju.append('El email que se uso no es valido')
Aofo = False
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bt7w(D3lj):\n P1dF = None\n if not D3lj:\n P1dF = 'Email cant be left blank'\n elif not ZbWC.search('[^@]+@[^@]+\\\\.[^@]+', D3lj):\n P1dF = 'Wrong format for email'\n return P1dF",
"def lCPN(D3lj):\n return Bt7w(D3lj)",
"def Bt7w(D3lj):\n return G4pt(D3lj)",
"def TuBt(YKH... | [
"0.8115544",
"0.7979369",
"0.79253584",
"0.7901464",
"0.78799254",
"0.7876182",
"0.78239316",
"0.77198327",
"0.7669879",
"0.7614737",
"0.7602146",
"0.75863236",
"0.75863236",
"0.75799376",
"0.7575914",
"0.75615454",
"0.7533422",
"0.7499524",
"0.7493489",
"0.7487956",
"0.74472... | 0.7621871 | 9 |
Get specified value, or an empty string if value is empty | def GmR1(BWXx, WmM4=''):
return BWXx or WmM4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h7DF(YKHO, BWXx):\n return BWXx if BWXx is not None else ''",
"def lTF3(BWXx):\n return '' if BWXx is None else BWXx",
"def mKFv(YKHO, H5ew, WmM4=''):\n BWXx = YKHO.Get(H5ew)\n return WmM4 if BWXx is None else BWXx",
"def MG_u(BWXx: str, HyJ9: str):\n return HyJ9 if BWXx is None or BWXx.st... | [
"0.79522836",
"0.77929825",
"0.7440023",
"0.74366987",
"0.74366987",
"0.7406047",
"0.7233535",
"0.72065705",
"0.7172626",
"0.71705365",
"0.71622944",
"0.71080726",
"0.7073903",
"0.7063896",
"0.7027043",
"0.70261955",
"0.70261955",
"0.70261955",
"0.70261955",
"0.70261955",
"0.... | 0.0 | -1 |
Timestamp representing the current time. | def wzkt(VD6W=0):
return umfa.from_time(ITS7.time(), VD6W) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mPGD(Emd4):\n return qcWV.utcnow().timestamp()",
"def vHj7(YKHO) -> float:\n return ITS7.time()",
"def nOtw(Emd4):\n return jjYN.j.UtilDateTime.nowTimestamp()",
"def wzkt() -> umfa:\n return umfa(monotonic_ns=ITS7.monotonic_ns(), system_ns=ITS7.time_ns())",
"def E3oo(Emd4):\n return int(... | [
"0.85753",
"0.8493007",
"0.84687275",
"0.8371908",
"0.8363891",
"0.8269146",
"0.82450044",
"0.82378846",
"0.82378846",
"0.820374",
"0.81592643",
"0.8138524",
"0.8123316",
"0.8105675",
"0.8093487",
"0.8071825",
"0.8071825",
"0.8071825",
"0.8071825",
"0.8071825",
"0.8067548",
... | 0.0 | -1 |
Get the time in seconds since the epoch. | def ITS7(YKHO):
return YKHO.seconds + YKHO.nanoseconds / umfa._NS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Vy8():\n return int(ITS7.time())",
"def xhp_():\n if BjwX():\n SWek = ITS7.clock()\n else:\n SWek = ITS7.time()\n return SWek",
"def qtWj(YKHO):\n h5YN = rIAI(wyKz)\n qtWj = h5YN.localize(qcWV.utcfromtimestamp(0))\n JRYC = h5YN.normalize(YKHO._dt)\n RA_F = JRYC - qtWj... | [
"0.8560923",
"0.8330748",
"0.8127338",
"0.8122964",
"0.7870966",
"0.7800874",
"0.7714797",
"0.76779586",
"0.76513463",
"0.7606175",
"0.7597195",
"0.75699013",
"0.74192107",
"0.7407854",
"0.7407854",
"0.7405743",
"0.73709446",
"0.73466307",
"0.73362803",
"0.73237187",
"0.73174... | 0.6858587 | 66 |
Create an SPL ``int8`` value. | def Xc1Q(BWXx):
return tNVR.spl.op.Expression('INT8', int(BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sZ5t(BWXx):\n return tNVR.spl.op.Expression('UINT8', int(BWXx))",
"def WVVG(YKHO) -> int:\n YKHO.tc.assertLess(YKHO.params_idx, len(YKHO.params))\n XP5J = YKHO.params[YKHO.params_idx]\n YKHO.tc.assertEqual(XP5J[0], gk2W.c_int8)\n YKHO.params_idx += 1\n return XP5J[1]",
"def Snv7(YKHO):\n ... | [
"0.7332237",
"0.70720375",
"0.70329297",
"0.7018808",
"0.70114696",
"0.6974775",
"0.6925357",
"0.6894146",
"0.6784733",
"0.65993965",
"0.6554627",
"0.6550729",
"0.64646393",
"0.6441985",
"0.6371977",
"0.6365612",
"0.61977947",
"0.6128764",
"0.6122534",
"0.6079617",
"0.5993960... | 0.8198753 | 0 |
Create an SPL ``int32`` value. | def LY4g(BWXx):
return tNVR.spl.op.Expression('INT32', int(BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LY4g(BWXx=0):\n return LMN6('uint32', BWXx)",
"def hgNn(YKHO) -> int:\n return YKHO._value_as(Hog7.INT32)",
"def _V17(mWFP, wEf2):\n pass",
"def H0S6(WKvO, mWFP='ToInt32'):\n return YWvJ(WKvO, m1c7.int32, name=mWFP)",
"def wwAB(YKHO):\n return c5Lh.uint8_array_to_int32(YKHO._request(4))"... | [
"0.78334117",
"0.7793521",
"0.7540887",
"0.7441863",
"0.73018897",
"0.7242166",
"0.7216416",
"0.7140622",
"0.7036991",
"0.6894523",
"0.6880764",
"0.6876172",
"0.68436027",
"0.67786014",
"0.67467374",
"0.6731646",
"0.6716693",
"0.66435415",
"0.6643041",
"0.6623926",
"0.6563579... | 0.8244761 | 0 |
Create an SPL ``int64`` value. | def OohW(BWXx):
return tNVR.spl.op.Expression('INT64', int(BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qdYZ(mWFP, wEf2):\n pass",
"def asHF(YKHO) -> int:\n return YKHO._value_as(Hog7.INT64)",
"def bgHW(wEf2):\n return oyIN.int(wEf2)",
"def WMAZ(YKHO) -> int:\n YKHO.tc.assertLess(YKHO.params_idx, len(YKHO.params))\n XP5J = YKHO.params[YKHO.params_idx]\n YKHO.params_idx += 1\n YKHO.tc.a... | [
"0.7558325",
"0.73382294",
"0.72768253",
"0.71594286",
"0.7074481",
"0.70145553",
"0.6996982",
"0.6993752",
"0.68651736",
"0.6838428",
"0.6754629",
"0.6731865",
"0.67229277",
"0.6718673",
"0.67043984",
"0.65859693",
"0.6501755",
"0.6498745",
"0.64924353",
"0.64498335",
"0.644... | 0.8323284 | 0 |
Create an SPL ``uint8`` value. | def sZ5t(BWXx):
return tNVR.spl.op.Expression('UINT8', int(BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EAuO(Xc1Q):\n return tMMy(b'<B', Xc1Q)",
"def Oy0f(BSLH):\n return pVtH(rFDh, BSLH)",
"def GlMr(qxeD, IuXB, BWXx):\n return fyNO(qxeD, IuXB, fyNO.TYPE_UINT8, BWXx)",
"def gkVC(YKHO, wEf2):\n return oyIN.uint8((wEf2 - YKHO.umin) / YKHO.urange * 255)",
"def vcmC(jzdc: Any) -> oyIN.ndarray:\n ... | [
"0.66696566",
"0.6642206",
"0.6574225",
"0.6475611",
"0.64710575",
"0.64435863",
"0.6429543",
"0.64232296",
"0.639612",
"0.6384849",
"0.6382512",
"0.63554686",
"0.63367075",
"0.62685055",
"0.62641335",
"0.6225378",
"0.6156499",
"0.6119453",
"0.6112882",
"0.60919154",
"0.60434... | 0.768374 | 0 |
Create an SPL ``uint32`` value. | def U4RK(BWXx):
return tNVR.spl.op.Expression('UINT32', int(BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U4RK(BWXx=0):\n return LMN6('uint32', BWXx)",
"def b07A(BWXx):\n return BlNT.pack('>L', BWXx)",
"def VSo6(mWFP, wEf2):\n pass",
"def LY4g(BWXx=0):\n return LMN6('uint32', BWXx)",
"def OjKU(nPrm):\n BWXx = yKGC.unpack(nPrm[0:4])[0]\n Cc00 = nPrm[4:]\n return (BWXx, Cc00)",
"def E7... | [
"0.7862137",
"0.7669403",
"0.7458385",
"0.73584944",
"0.7256616",
"0.70254505",
"0.6968853",
"0.69556314",
"0.695406",
"0.69214135",
"0.69048923",
"0.68548316",
"0.6830935",
"0.6815368",
"0.6790741",
"0.67801195",
"0.6776298",
"0.6752899",
"0.6735919",
"0.6638012",
"0.6565709... | 0.79721004 | 0 |
Create an SPL ``uint64`` value. | def oevr(BWXx):
return tNVR.spl.op.Expression('UINT64', int(BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZmh(mWFP, wEf2):\n pass",
"def EeZh(BWXx):\n return BlNT.pack('>Q', BWXx)",
"def iFSk():\n return KupS.ottery_rand_uint64()",
"def YDx2(YKHO, BWXx, dmhX='<') -> int:\n return YKHO._pack('%sQ' % dmhX, BWXx)",
"def oxrk(YKHO, *qIxc):\n return PZpo.TStr_GetUInt64(YKHO, *qIxc)",
"def j5PQ... | [
"0.80168945",
"0.78074986",
"0.71637505",
"0.71269524",
"0.70813787",
"0.69439",
"0.69221544",
"0.6921356",
"0.6886511",
"0.6854941",
"0.682797",
"0.6811247",
"0.67416316",
"0.6725216",
"0.67244166",
"0.66475356",
"0.6579209",
"0.65445375",
"0.6504497",
"0.646384",
"0.6348259... | 0.8117906 | 0 |
Parse pip reqs file and transform it to setuptools requirements. | def qHZg(Ux0P):
fA3L = []
for zFiD in open(gzes(YnkN, 'requirements', Ux0P)):
zFiD = zFiD.strip()
if not zFiD or '://' in zFiD:
continue
kUBT = Em3y.match(zFiD)
if kUBT:
fA3L.extend(qHZg(kUBT.group('filename')))
else:
fA3L.append(zFiD)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnMZ(qIxc):\n with open(qIxc.file) as eHNT:\n for zFiD in eHNT:\n vOPP = zFiD.split('==')\n if len(vOPP) == 2:\n KEkS(vOPP[0].strip(), vOPP[1].strip())\n else:\n HwRy.exit(\"\\nName format in cext.txt is incorrect. Should be 'packageName=... | [
"0.7518035",
"0.7199836",
"0.719943",
"0.7186429",
"0.7133201",
"0.7130575",
"0.7119776",
"0.70532435",
"0.70526284",
"0.69582444",
"0.69562715",
"0.6843496",
"0.6837493",
"0.6837493",
"0.6832537",
"0.6780452",
"0.6762028",
"0.6757125",
"0.66530037",
"0.65795344",
"0.656044",... | 0.7250093 | 1 |
Return next uncommented stripped line from open file, `f`. | def ALP8(eHNT):
while True:
vC9B = next(eHNT).strip()
if not vC9B.startswith('#'):
return vC9B | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSRL(Fwbn):\n zFiD = Fwbn.readline()\n oeNL = zFiD.find('#')\n while (oeNL == 0 or zFiD.strip() == '') and zFiD:\n zFiD = Fwbn.readline()\n oeNL = zFiD.find('#')\n return zFiD[:oeNL]",
"def it3e(eHNT):\n vC9B = eHNT.readline().strip()\n while len(vC9B) > 0 and vC9B[0] == '#':\... | [
"0.7556212",
"0.7535445",
"0.70681494",
"0.69479567",
"0.6904866",
"0.68955666",
"0.6638244",
"0.6597483",
"0.6589662",
"0.6589349",
"0.65155894",
"0.6395497",
"0.6243858",
"0.62431127",
"0.6138183",
"0.6122499",
"0.6095055",
"0.6051261",
"0.5997302",
"0.5984879",
"0.598326",... | 0.7841906 | 0 |
If given a bad base url template, the request to the ACCESS_TOKEN_URL should fail and an exception be raised. | def PWPo(YKHO):
eOtH = None
with YKHO.assertRaises(Exception):
eOtH = VAsp(base_url_template='https://arc90.com/{0}')
YKHO.assertEqual(eOtH, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WEtw(bD7m: str):\n raise G4JS.exceptions.RequestException",
"def imu9(YKHO):\n YKHO.mock_client.get_access_token.return_value = None\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertRedirects(geh0, gCuF.LOGIN_URL)",
"def myQ_(YKHO):\n YKHO.assertRaises(Bx6I.BadRequest, YKHO.client.validate_te... | [
"0.6313165",
"0.6178483",
"0.61329824",
"0.6105996",
"0.60793525",
"0.6049956",
"0.6038873",
"0.5969076",
"0.5964017",
"0.59508175",
"0.59479123",
"0.59303313",
"0.5929996",
"0.5925812",
"0.5883954",
"0.5854507",
"0.58342767",
"0.5799127",
"0.5799127",
"0.5799127",
"0.5766417... | 0.7453067 | 0 |
If given a bad consumer key, the `xauth` method should raise an exception. | def ntxd(YKHO):
eOtH = None
with YKHO.assertRaises(Exception):
eOtH = VAsp(consumer_key='bad consumer key')
YKHO.assertEqual(eOtH, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AmZG(YKHO):\n eOtH = None\n with YKHO.assertRaises(Exception):\n eOtH = VAsp(consumer_secret='bad consumer secret')\n YKHO.assertEqual(eOtH, None)",
"def ntxd(YKHO):\n NArs = {'oauth_version': '1.0', 'oauth_nonce': FeDH.generate_nonce(), 'oauth_timestamp': int(ITS7.time()), 'oauth_token': ... | [
"0.7275724",
"0.71754575",
"0.679008",
"0.64497",
"0.64234227",
"0.63074505",
"0.61805534",
"0.61072886",
"0.60699886",
"0.6059694",
"0.60446024",
"0.60230756",
"0.59238154",
"0.5907459",
"0.590708",
"0.5886999",
"0.58789796",
"0.5863755",
"0.58546257",
"0.58528084",
"0.58522... | 0.8058003 | 0 |
If given a bad consumer key, the `xauth` method should raise an exception. | def AmZG(YKHO):
eOtH = None
with YKHO.assertRaises(Exception):
eOtH = VAsp(consumer_secret='bad consumer secret')
YKHO.assertEqual(eOtH, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ntxd(YKHO):\n eOtH = None\n with YKHO.assertRaises(Exception):\n eOtH = VAsp(consumer_key='bad consumer key')\n YKHO.assertEqual(eOtH, None)",
"def ntxd(YKHO):\n NArs = {'oauth_version': '1.0', 'oauth_nonce': FeDH.generate_nonce(), 'oauth_timestamp': int(ITS7.time()), 'oauth_token': YKHO.t... | [
"0.80579233",
"0.7174926",
"0.6788482",
"0.6448705",
"0.64225787",
"0.63068455",
"0.6180528",
"0.6105967",
"0.6070556",
"0.6061289",
"0.6042061",
"0.6021741",
"0.59239686",
"0.5907834",
"0.5906939",
"0.588613",
"0.5877419",
"0.5863154",
"0.58540225",
"0.5852184",
"0.5852174",... | 0.7275963 | 1 |
Return a custom 404 error. | def m7kB(tTpl):
return (TvZl('404.html'), 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf(P1dF):\n return '404'",
"def mZnU():\n return oGir(RA4y, '<h1>404 Error : Some crap went down, so just <a href=\"/\">HEAD HOME</a>.</h1>', [])",
"def eJkH(XObx):\n return dict(err=XObx)",
"def o3cf(P1dF):\n return G3KB('Not Found', 404)",
"def RQdI(P1dF):\n return 'Sorry, Nothing at... | [
"0.8263737",
"0.79933435",
"0.79192984",
"0.78825426",
"0.7845269",
"0.78424567",
"0.7818006",
"0.7818006",
"0.7818006",
"0.7816168",
"0.78139937",
"0.78001934",
"0.77720594",
"0.77618265",
"0.7702134",
"0.76248384",
"0.7620647",
"0.76148254",
"0.75642604",
"0.75578934",
"0.7... | 0.72424537 | 96 |
Return a custom 500 error. | def e_kA(tTpl):
return ('Sorry, unexpected error: {}'.format(tTpl), 500) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C89g(tTpl):\n return (TvZl('500.html'), 500)",
"def e_kA(tTpl):\n return ('Sorry, unexpected error: {}'.format(tTpl), 500)",
"def r1yd(tTpl):\n return (TvZl('500.html'), 500)",
"def e_kA(tTpl):\n return ('Sorry, unexpected error: {}'.format(tTpl), 500)",
"def r1yd(XObx):\n return (TvZl('... | [
"0.77419347",
"0.77353114",
"0.7727835",
"0.76502776",
"0.76437634",
"0.7625618",
"0.7604917",
"0.7602182",
"0.7597321",
"0.75885934",
"0.7562816",
"0.7562463",
"0.75489175",
"0.75489175",
"0.75374174",
"0.75283426",
"0.75283426",
"0.74986404",
"0.74597794",
"0.7424432",
"0.7... | 0.7710948 | 3 |
Returns the name of the Jenkins job represented by this instance. | def mWFP(YKHO):
return unXU.create_job_name(YKHO.component, YKHO.branch) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wxIh(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_name')",
"def wxIh(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'job_name')",
"def wxIh(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'job_name')",
"def W0tD(YKHO):\n return YKHO.get_job()['name']",
"def mWFP(YKHO) -> str:\n return YKHO.... | [
"0.86732703",
"0.8426572",
"0.8230904",
"0.81160724",
"0.7714306",
"0.75619495",
"0.7545959",
"0.75194454",
"0.7510208",
"0.7390265",
"0.73499787",
"0.72984844",
"0.7295025",
"0.7193508",
"0.7178035",
"0.7178035",
"0.7168409",
"0.71602994",
"0.705879",
"0.7018024",
"0.7000128... | 0.7605309 | 5 |
Returns the humanoriented label of the job represented by an instance. | def qQNS(YKHO):
return '{0}: Build branch {1} in Brew'.format(YKHO.component, YKHO.branch) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U9vx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'job_label')",
"def _f5V(YKHO):\n zeTD = pVs1(YKHO.instance, 'Name')\n if zeTD is None:\n zeTD = YKHO.instance.id\n else:\n zeTD = '%s (%s)' % (zeTD, YKHO.instance.id)\n return zeTD",
"def UXqs(Emd4) -> str:\n retu... | [
"0.74510324",
"0.7450713",
"0.74428856",
"0.7429123",
"0.73873115",
"0.72981185",
"0.7253797",
"0.72462803",
"0.7235629",
"0.72140217",
"0.72132635",
"0.7212169",
"0.7204613",
"0.7204613",
"0.7204613",
"0.7204613",
"0.7204613",
"0.7204613",
"0.7204613",
"0.7201712",
"0.718648... | 0.0 | -1 |
Returns the name of the job represented by an instance. | def mWFP(YKHO):
return it0j.create_job_name(YKHO.component) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0tD(YKHO):\n return YKHO.get_job()['name']",
"def wxIh(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_name')",
"def s_PL(YKHO):\n mWFP = YKHO._name if not YKHO._name[0].isdigit() else '_%s' % YKHO._name\n return '%s_%s' % (eIIt(mWFP), YKHO.instance_type.capitalize())",
"def mWFP(YKHO):\n retu... | [
"0.77640724",
"0.7706932",
"0.75146055",
"0.7450253",
"0.7424737",
"0.7424737",
"0.7424737",
"0.73990965",
"0.73931795",
"0.7274452",
"0.7204186",
"0.7075987",
"0.7039357",
"0.699971",
"0.69928235",
"0.69012314",
"0.689827",
"0.68104273",
"0.67603856",
"0.67487687",
"0.674581... | 0.69247276 | 15 |
Returns the (humanoriented) label of a job represented by an instance. | def qQNS(YKHO):
return '{0}: Schedule Brew build'.format(YKHO.component) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U9vx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'job_label')",
"def ukMC(YKHO, o_gm):\n return YKHO.linode_command.get_label(o_gm)",
"def _f5V(YKHO):\n zeTD = pVs1(YKHO.instance, 'Name')\n if zeTD is None:\n zeTD = YKHO.instance.id\n else:\n zeTD = '%s (%s)' % (zeT... | [
"0.7624911",
"0.75744003",
"0.7325023",
"0.72793365",
"0.72354627",
"0.7210781",
"0.7132778",
"0.711683",
"0.71141195",
"0.7098678",
"0.7098678",
"0.7098678",
"0.7098678",
"0.7098678",
"0.7098678",
"0.7098678",
"0.7080456",
"0.70688796",
"0.70688796",
"0.7068054",
"0.7054105"... | 0.0 | -1 |
To match DaCe variable naming conventions, replaces all undesired characters with "_". | def lSad(vIwR):
bD3d = vIwR
if vIwR[0].isdigit():
bD3d = '_' + vIwR
yvT9 = ZbWC.sub('[^a-zA-Z0-9_]', '_', bD3d)
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wsqw(mWFP):\n mWFP = mWFP.strip().replace(':', '_')\n if mWFP[0] in '0123456789':\n mWFP = 'i' + mWFP\n return mWFP",
"def PeQQ(Jyyj):\n Jyyj.path = Jyyj.path.replace('-', '_')\n Jyyj.path = ZbWC.sub('(?<!^)(?=[A-Z])', '_', Jyyj.path).lower()\n return Jyyj",
"def xKyb(xqKM: str) ->... | [
"0.798805",
"0.7715667",
"0.7601757",
"0.75059533",
"0.7434957",
"0.72865933",
"0.7284186",
"0.7269498",
"0.72333914",
"0.72247905",
"0.7224627",
"0.7188507",
"0.7161353",
"0.70971245",
"0.70836604",
"0.7065962",
"0.7050243",
"0.7023281",
"0.7016586",
"0.6987495",
"0.6983535"... | 0.0 | -1 |
Total number of species present in the mixture. This is the sum of the numbers of species in each phase. | def pbxr(YKHO):
return bMU8.mix_nSpecies(YKHO.__mixid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO):\n UHFx = 0\n for WKvO in YKHO.particles:\n UHFx += len(YKHO.particles[WKvO])\n return UHFx",
"def i6N9(YKHO):\n RlCN, cK9O = YKHO._island.number_of_animals()\n return {'herbivores': RlCN, 'carnivores': cK9O}",
"def EqYd(YKHO):\n IDEA = [XP5J.size for XP5J in YKHO.teeth]... | [
"0.72592854",
"0.7241507",
"0.70697814",
"0.6989837",
"0.6900401",
"0.68990713",
"0.6806451",
"0.6728923",
"0.66997993",
"0.66409236",
"0.66101253",
"0.6604598",
"0.6586761",
"0.6567826",
"0.651564",
"0.64491487",
"0.6439797",
"0.64376014",
"0.64286673",
"0.64286673",
"0.6398... | 0.71982557 | 2 |
Index of species with name species. If species is not a string, then it is simply returned. | def m873(YKHO, oMqC):
if type(oMqC) == SnBA.StringType:
return YKHO._spnames.index(oMqC)
else:
return oMqC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nfdH(YKHO, mWFP):\n for YRbF in range(len(YKHO.names)):\n if YKHO.names[YRbF] == mWFP:\n return YRbF\n raise KeyError(\"No ion species named '{}' found in output.\".format(mWFP))",
"def hDX3(YKHO, mWFP) -> int:\n (bGrB, d6pt), bGrB = YKHO._find_name(mWFP)\n return d6pt",
"def ... | [
"0.78154856",
"0.714766",
"0.66868126",
"0.6566451",
"0.6538203",
"0.6538203",
"0.65288955",
"0.6471129",
"0.6463285",
"0.64016783",
"0.63978404",
"0.635383",
"0.6342353",
"0.63316184",
"0.61068124",
"0.6055287",
"0.60547245",
"0.6028607",
"0.60217613",
"0.60133463",
"0.60127... | 0.8829034 | 0 |
The total charge in Coulombs, summed over all phases. | def WJkG(YKHO):
return bMU8.mix_charge(YKHO.__mixid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJkG(YKHO) -> int:\n return sum([WhQ6.formal_charge for WhQ6 in YKHO.atoms])",
"def JJVa(YKHO):\n WJkG = 0\n for Tq1v in YKHO.subunits:\n WJkG += abs(Tq1v.coefficient) * Tq1v.species_type.get_charge()\n return WJkG",
"def Vj10(YKHO):\n return YKHO._total_concentration",
"def wjRY(YK... | [
"0.70862323",
"0.7081807",
"0.6981236",
"0.6701848",
"0.6668185",
"0.6519168",
"0.6513701",
"0.6510144",
"0.64780957",
"0.64362425",
"0.6436051",
"0.6428281",
"0.6422996",
"0.63923544",
"0.63923544",
"0.6377561",
"0.6369624",
"0.6367004",
"0.63333684",
"0.6327268",
"0.6326115... | 0.0 | -1 |
The charge of phase p (Coulombs). | def FMeQ(YKHO, XP5J):
return bMU8.mix_phaseCharge(YKHO.__mixid, XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OukG(YKHO):\n return oyIN.sqrt((YKHO.lam + 2.0 * YKHO.g) / YKHO.rho)",
"def YOt4(YKHO):\n return YKHO.f_c * 2 * mM0K",
"def P5jt(YKHO):\n return gQS9.PulWaveform_phaseconst(YKHO)",
"def sCqH(YKHO):\n XP5J = YKHO.potential_coeffs()\n XP5J = oyIN.linalg.inv(XP5J)\n Ty9i = [G1Hx.ph_to_gnd_... | [
"0.72595865",
"0.68433535",
"0.66920054",
"0.6677891",
"0.6640503",
"0.6577088",
"0.6566629",
"0.65569943",
"0.65569943",
"0.65214676",
"0.646133",
"0.6446994",
"0.6356445",
"0.633836",
"0.6337846",
"0.63303953",
"0.6329929",
"0.6302704",
"0.62891084",
"0.6283946",
"0.6283946... | 0.79955256 | 0 |
Total number of moles of element m, summed over all species. The element may be referenced either by index number or by name. | def Faxb(YKHO, r8hN):
cpvk = YKHO.elementIndex(r8hN)
return bMU8.mix_elementMoles(YKHO.__mixid, cpvk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dfj8(YKHO):\n try:\n bMbF = YKHO[:, 'mass'].sum()\n except KeyError:\n hXS8 = YKHO.add_data('mass')\n bMbF = hXS8[:, 'mass'].sum()\n return bMbF",
"def cMAx(YKHO):\n return KFJf.Base_cell_msum(YKHO)",
"def efa9(YKHO, G1Hx, r8hN):\n ERMG = YKHO.speciesIndex(G1Hx)\n cpv... | [
"0.65701747",
"0.64827585",
"0.6455133",
"0.64413154",
"0.64006215",
"0.6358273",
"0.6290797",
"0.6271011",
"0.62561435",
"0.6230803",
"0.6190456",
"0.61889106",
"0.61497194",
"0.6128047",
"0.6103165",
"0.6101272",
"0.6077181",
"0.6020618",
"0.6001973",
"0.59760505",
"0.59673... | 0.0 | -1 |
Set the mixture to a state of chemical equilibrium. This method uses a version of the VCS algorithm to find the composition that minimizes the total Gibbs free energy of the mixture, subject to element conservation constraints. For a description of the theory, see Smith and Missen, "Chemical Reaction Equilibrium." The ... | def BTrS(YKHO, qp3h='TP', TwrJ=0, pbyh=0, ykvB=2, LL2J=1e-09, dJ1a=1000, rzQt=1000, NX0m=0):
YRbF = bMU8.mix_vcs_equilibrate(YKHO.__mixid, qp3h, TwrJ, pbyh, ykvB, LL2J, dJ1a, rzQt, NX0m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eWnP(YKHO, IW1m):\n try:\n YKHO.alpha_params\n except AttributeError:\n YKHO.import_raw_property_data()\n YKHO.alpha = oyIN.polyval(YKHO.alpha_params, IW1m) * 1e-06\n YKHO.k = oyIN.polyval(YKHO.k_params, IW1m)\n YKHO.sigma = oyIN.polyval(YKHO.sigma_params, IW1m) * 100.0\n YKHO.r... | [
"0.62340224",
"0.5642181",
"0.5570921",
"0.54563004",
"0.53540605",
"0.5299175",
"0.5253213",
"0.52447",
"0.5194066",
"0.5148173",
"0.51312584",
"0.50633734",
"0.50333655",
"0.50162494",
"0.5005635",
"0.49988768",
"0.49860758",
"0.49832702",
"0.49715474",
"0.49700266",
"0.496... | 0.47435102 | 44 |
Underlying bound of methodspecific type, without extra constraints. Usually this returns `self`. However, subclasses that wrap the bound to provide additional information (for example externally imposed interval constraints) will return the wrapped bound. | def XFw0(YKHO) -> 'Bound':
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mmRm(YKHO):\n return YKHO._bound",
"def Cryy(YKHO):\n raise NotImplementedError('Call to unimplemented base class')",
"def mmRm(JfyU):\n JfyU.__bound__ = True\n return JfyU",
"def mmRm(YKHO):\n raise NotImplementedError()",
"def CN9P(YKHO):\n mmRm = YKHO._ub()\n if mmRm is None:\n ... | [
"0.60966396",
"0.5935606",
"0.58251953",
"0.57678413",
"0.56992435",
"0.56985426",
"0.5695843",
"0.56908655",
"0.5667357",
"0.5546771",
"0.55250067",
"0.5507443",
"0.5498441",
"0.5471577",
"0.5461357",
"0.54530084",
"0.5432302",
"0.54167616",
"0.5407822",
"0.539648",
"0.53961... | 0.7067215 | 0 |
Read the value from the environment. | def Ueki(YKHO, SRYB: JaxVar) -> uLKX[DAr0, llWB]:
if isinstance(SRYB, yOcR.core.Literal):
return SRYB.val
else:
wEf2 = YKHO.env[SRYB]
if isinstance(wEf2, b9kp):
return YKHO.read(wEf2.target_var)
else:
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _h_a(YKHO):\n with IPme.name_scope('Read'):\n BWXx = YKHO._read_variable_op()\n return _WqI.identity(BWXx)",
"def gqmQ(YKHO):\n mWFP, BWXx = YKHO.get_value()\n Hy7s.environ[mWFP] = BWXx",
"def P1Fg(H5ew, BWXx):\n ci3_ = H5ew.replace('.', '_').replace('-', '_').upper()\n return ILrs... | [
"0.7146893",
"0.71060944",
"0.7014538",
"0.67901903",
"0.67474514",
"0.66296095",
"0.6620213",
"0.65477073",
"0.6517218",
"0.6413585",
"0.64027137",
"0.63978857",
"0.6396696",
"0.63748884",
"0.63618946",
"0.63547933",
"0.63301027",
"0.6289042",
"0.6272559",
"0.6263292",
"0.62... | 0.0 | -1 |
Initializes a new empty cluster whose centroid is a copy of | def FIMM(YKHO, tgCD, e6ux):
assert isinstance(tgCD, nkHA.Dataset)
YKHO._dataset = tgCD
YKHO._indices = []
Aofo = []
for nqP5 in e6ux:
Aofo.append(nqP5)
YKHO._centroid = Aofo
if YKHO._centroid != []:
assert oCrX.is_point(e6ux) and len(e6ux) == YKHO._dataset.getDimension()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VJNw(YKHO):\n YKHO.centroids = XTiz.zeros((YKHO.cluster_number, YKHO.total_objects))\n rgwR = list(range(YKHO.total_objects))\n for YRbF in range(YKHO.cluster_number):\n BjyP = tuKI.randrange(len(rgwR))\n YKHO.centroids[YRbF, :] = YKHO.similarity_matrix[rgwR[BjyP], :]\n rgwR.remov... | [
"0.78693783",
"0.72588235",
"0.7220297",
"0.72033507",
"0.7200756",
"0.7190167",
"0.71708643",
"0.7151561",
"0.70223135",
"0.6983437",
"0.6941952",
"0.6926738",
"0.69236594",
"0.69147915",
"0.68920887",
"0.683677",
"0.68305904",
"0.6818692",
"0.6771534",
"0.6745109",
"0.67393... | 0.64628345 | 46 |
Returns the centroid of this cluster. This getter method is to protect access to the centroid. | def G0Yq(YKHO):
hlel = []
for nqP5 in YKHO._centroid:
hlel.append(nqP5)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G0Yq(YKHO):\n return YKHO._centroid",
"def e6ux(YKHO):\n return YKHO.coords.centroid",
"def e6ux(YKHO):\n return YKHO.coords.centroid",
"def SZpp(YKHO):\n return YKHO.centroid",
"def e6ux(YKHO):\n return LG9n.util.centroid(YKHO)",
"def e6ux(YKHO):\n return YKHO.shape.centroid.coords... | [
"0.88161683",
"0.8781901",
"0.8781901",
"0.87555313",
"0.8658206",
"0.861184",
"0.85718155",
"0.85196984",
"0.8507378",
"0.8257964",
"0.82440054",
"0.8152784",
"0.81007415",
"0.8061571",
"0.7956114",
"0.78071773",
"0.7789771",
"0.77336603",
"0.7648725",
"0.7644761",
"0.763855... | 0.74221385 | 28 |
Returns the indices of points in this cluster This method returns the attribute _indices directly. Any changes made to this list will modify the cluster. | def BJma(YKHO):
hlel = []
for nqP5 in YKHO._indices:
hlel.append(nqP5)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _0VL(YKHO) -> XTiz.ndarray:\n return YKHO.__indices",
"def BJma(YKHO):\n return YKHO._indices",
"def BJma(YKHO):\n return YKHO._indices.copy()",
"def BJma(YKHO):\n return jth9(YKHO._indices)",
"def _0VL(YKHO) -> h8nf[x1iM[int]]:\n return YKHO._indices",
"def xvIg(YKHO) -> x1iM[int]:\n ... | [
"0.8279906",
"0.80920404",
"0.7895288",
"0.7797246",
"0.7674287",
"0.7582971",
"0.74567664",
"0.73880696",
"0.73568",
"0.7317684",
"0.72456324",
"0.7227542",
"0.72112274",
"0.71489316",
"0.7085484",
"0.701938",
"0.7001335",
"0.6995691",
"0.6948514",
"0.69382423",
"0.6938039",... | 0.8071098 | 2 |
Adds the given dataset index to this cluster. If the index is already in this cluster, this method leaves the cluster unchanged. | def d_Y9(YKHO, d6pt):
if YKHO.getIndices().count(d6pt) == 0:
YKHO._indices.append(d6pt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d_Y9(YKHO, d6pt):\n assert type(d6pt) == int and d6pt >= 0\n assert d6pt <= YKHO._dataset.getSize() - 1\n if not d6pt in YKHO._indices:\n YKHO._indices.append(d6pt)",
"def d_Y9(YKHO, d6pt):\n assert type(d6pt) == int and d6pt >= 0 and (d6pt <= YKHO._dataset.getSize() - 1), 'index is not va... | [
"0.7231968",
"0.7200393",
"0.63634557",
"0.6331266",
"0.6198274",
"0.60926807",
"0.60312533",
"0.58822024",
"0.5852172",
"0.58269256",
"0.58116275",
"0.5791461",
"0.57503307",
"0.5717963",
"0.5647435",
"0.55877817",
"0.5538897",
"0.550777",
"0.5507696",
"0.5494354",
"0.547315... | 0.6449332 | 2 |
Returns the euclidean distance from point to this cluster's centroid. | def Ayfi(YKHO, AU8u):
assert oCrX.is_point(AU8u) and len(AU8u) == len(YKHO._centroid)
return XTiz.sqrt(sum([(Fg_i - jzdc) * (Fg_i - jzdc) for jzdc, Fg_i in zip(AU8u, YKHO._centroid)])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(YKHO, AU8u):\n assert oCrX.is_point(AU8u) == True\n assert len(AU8u) == len(YKHO._centroid)\n aVav = 0\n moiP = len(AU8u)\n wjRY = 0\n b2s1 = YKHO.getCentroid()\n for WKvO in range(moiP):\n aVav = AU8u[WKvO] - b2s1[WKvO]\n Fyji = aVav ** 2\n wjRY = wjRY + Fyji\n ... | [
"0.7969155",
"0.7597461",
"0.7572299",
"0.7561649",
"0.7552062",
"0.7552062",
"0.7487664",
"0.7325415",
"0.73193306",
"0.73145044",
"0.7300114",
"0.7273712",
"0.7273293",
"0.7181505",
"0.7166489",
"0.7162858",
"0.71135646",
"0.7088686",
"0.70826083",
"0.70330065",
"0.70330065... | 0.80383384 | 0 |
Returns the maximum distance from any point in this cluster, to the centroid. This method loops over the contents to find the maximum distance from the centroid. If there are no points in this cluster, it returns 0. | def iwTD(YKHO):
Aofo = []
if YKHO._indices != []:
for nqP5 in YKHO.getContents():
Aofo.append(YKHO.distance(nqP5))
return max(Aofo)
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iwTD(YKHO):\n Ew3d = 0\n eDKD = []\n tHcB = len(YKHO._indices)\n for WKvO in YKHO._indices:\n AU8u = YKHO._dataset.getContents()[WKvO]\n OG6K = YKHO.distance(AU8u)\n if OG6K > Ew3d:\n Ew3d = OG6K\n if len(YKHO._indices) == 0:\n Ew3d = 0\n return Ew3d",
... | [
"0.69292504",
"0.6758938",
"0.65652347",
"0.63824683",
"0.63597405",
"0.63203603",
"0.6297497",
"0.62946033",
"0.6286806",
"0.6278704",
"0.6270199",
"0.62642854",
"0.62642854",
"0.62512344",
"0.6246325",
"0.6241819",
"0.62070024",
"0.61732215",
"0.6158367",
"0.6122888",
"0.61... | 0.6451108 | 3 |
Returns a String representation of the centroid of this cluster. | def zAg0(YKHO):
return str(YKHO._centroid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SZpp(YKHO):\n return YKHO.centroid",
"def e6ux(YKHO):\n return LG9n.util.centroid(YKHO)",
"def G0Yq(YKHO):\n return YKHO._centroid",
"def e6ux(YKHO):\n return YKHO.coords.centroid",
"def e6ux(YKHO):\n return YKHO.coords.centroid",
"def e6ux(YKHO):\n return YKHO.shape.centroid.coords... | [
"0.7829054",
"0.77980757",
"0.7760437",
"0.7714701",
"0.7714701",
"0.7579417",
"0.75469136",
"0.75229925",
"0.7495615",
"0.736486",
"0.7321569",
"0.73189825",
"0.7274702",
"0.7265304",
"0.7260363",
"0.7192823",
"0.7122014",
"0.7082548",
"0.70539504",
"0.6973649",
"0.6964095",... | 0.8365555 | 0 |
Returns an unambiguous representation of this cluster. | def wHJl(YKHO):
return str(YKHO.__class__) + str(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.cluster.__str__()",
"def wHJl(YKHO):\n sWfS = 'alg_cluster.Cluster('\n sWfS += str(YKHO._fips_codes) + ', '\n sWfS += str(YKHO._horiz_center) + ', '\n sWfS += str(YKHO._vert_center) + ', '\n sWfS += str(YKHO._total_population) + ', '\n sWfS += str(YKHO._averaged... | [
"0.7779751",
"0.72405034",
"0.7115191",
"0.70642626",
"0.70263565",
"0.69806427",
"0.69181025",
"0.6769635",
"0.67258036",
"0.67055887",
"0.67055887",
"0.6704837",
"0.6659688",
"0.6643524",
"0.6643524",
"0.6643524",
"0.6643524",
"0.66400063",
"0.66400063",
"0.65615207",
"0.65... | 0.0 | -1 |
Plots of batch of images along with their labels and predictions. Noise cases are colored in red, clean cases in green. Images are assumed to be numpy images (use ToNumpy() transform). | def hoTT(YKHO, N6Z1: np.ndarray, bJeO: np.ndarray) -> QrM1.Figure:
assert YKHO.dataset is not None
LZpg, aNZO = QrM1.subplots(8, 8, figsize=(8, 10))
aNZO = aNZO.ravel()
for YRbF, d6pt in enumerate(bJeO):
PjQx = int(N6Z1[d6pt])
qfpW = 'red' if d6pt in YKHO.true_mislabelled_ids else 'green... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U0xK(Yw_3, KP9C, oNZq=None, leAC=None):\n LZpg, MPlV = QrM1.subplots(3, 3, figsize=(9, 9))\n LZpg.subplots_adjust(hspace=0.3, wspace=0.3)\n Jarx = do44 = oyIN.sqrt(Yw_3.shape[-1]).astype(int)\n for YRbF, aNZO in enumerate(MPlV.flat):\n aNZO.imshow(Yw_3[YRbF].reshape((Jarx, do44)), cmap='bina... | [
"0.7948237",
"0.790891",
"0.7778575",
"0.7726999",
"0.77098775",
"0.7674233",
"0.76706344",
"0.7647598",
"0.7638344",
"0.7627475",
"0.76140267",
"0.76131827",
"0.75778174",
"0.75281346",
"0.74943596",
"0.74943596",
"0.744587",
"0.7438784",
"0.7407655",
"0.7407655",
"0.7407655... | 0.7653838 | 7 |
Returns torch.utils.data.DataLoader for custom coco dataset. | def _RZA(gIsw, mbYR, CtWL, Ep8u=32, hXNa=True, I7Gy=2):
Oz57 = FPsA(gIsw, mbYR, CtWL)
zQKy = nPrm.DataLoader(dataset=Oz57, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy, collate_fn=QxcP)
return zQKy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RuZU(tk5Y, qQXR, SZFh, Ep8u, hXNa, I7Gy):\n N8JC = Qon4(root=tk5Y, json=qQXR, transform=SZFh)\n zQKy = ht2j.utils.data.DataLoader(dataset=N8JC, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy)\n return (zQKy, N8JC)",
"def qFG4(i0XC: str, Ep8u: int) -> pVAc:\n rrl5 = i0XC + '/train2017'\n XOtI ... | [
"0.74904853",
"0.72587734",
"0.70325327",
"0.6757468",
"0.6757468",
"0.671094",
"0.65647876",
"0.64585733",
"0.6431798",
"0.6377102",
"0.6323418",
"0.630777",
"0.630777",
"0.630777",
"0.6304401",
"0.628844",
"0.62798905",
"0.6253598",
"0.6237868",
"0.62244886",
"0.6221185",
... | 0.65776044 | 6 |
The string representation should be built with the page `title` fields. Only 1 query to the associated page should be generated. | def AIpO(YKHO):
B2Dn = GyRB('Nano particles', 'courses/cms/course_detail.html', 'en')
GQfX = W10k(extended_object=B2Dn)
with YKHO.assertNumQueries(1):
YKHO.assertEqual(str(GQfX), 'Course: Nano particles') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return '<Page id={id} title={title}>'.format(id=YKHO.id, title=YKHO.title)",
"def zAg0(YKHO):\n return 'Title: {}, Author: {}, Pages: {}'.format(YKHO.title, YKHO.author, YKHO.pages)",
"def zAg0(YKHO):\n if YKHO.links == None:\n return YKHO.title\n else:\n Ylbp = ''\n... | [
"0.7037651",
"0.6821996",
"0.6648242",
"0.6506322",
"0.6477836",
"0.643956",
"0.6425058",
"0.6425058",
"0.6425058",
"0.6425058",
"0.6425058",
"0.6415068",
"0.6408311",
"0.6306682",
"0.6287637",
"0.6275324",
"0.6275324",
"0.6275324",
"0.6275324",
"0.6274296",
"0.62547827",
"... | 0.0 | -1 |
semiparse a text file that has comments, key = value lines and other lines are returned as is (stripping whitespace), in a list of length 1 | def d1aN(YKHO, FYKK):
with open(FYKK, 'rt') as ytgA:
def w2fL():
for zFiD in ytgA:
zFiD = zFiD.split('--')[0]
if '=' not in zFiD:
yield [zFiD.strip()]
else:
G1Hx, Ty9i = zFiD.split('=')
G... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def edtm(ytgA):\n jbXL = []\n for zFiD in ytgA:\n zFiD = zFiD.strip()\n if zFiD and (not zFiD.startswith('#')):\n jbXL.append(zFiD)\n return jbXL",
"def aInN(eHNT):\n for zFiD in eHNT:\n zFiD = zFiD.rstrip()\n if zFiD and zFiD.startswith('#'):\n yield... | [
"0.69672686",
"0.6917995",
"0.68542063",
"0.6817842",
"0.68152475",
"0.6658309",
"0.6636224",
"0.66254747",
"0.6607961",
"0.6563203",
"0.65343416",
"0.64913666",
"0.64273506",
"0.64273506",
"0.6422764",
"0.6377683",
"0.63752335",
"0.6362103",
"0.6357091",
"0.63267463",
"0.630... | 0.0 | -1 |
compute the iou of two boxes. | def Ksb_(knvf, IkxF, BQsO=True, HS_I=False):
if BQsO == False:
a4TF, muDC, tBwn, _AAi = knvf
Xn4L, QTZF, mZ91, b8lW = IkxF
else:
a4TF, muDC = (int(knvf[0] - knvf[2] / 2.0), int(knvf[1] - knvf[3] / 2.0))
tBwn, _AAi = (int(knvf[0] + knvf[2] / 2.0), int(knvf[1] + knvf[3] / 2.0))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RjuK(YKHO, knvf, IkxF):\n V2zj = min(knvf[0] + 0.5 * knvf[2], IkxF[0] + 0.5 * IkxF[2]) - max(knvf[0] - 0.5 * knvf[2], IkxF[0] - 0.5 * IkxF[2])\n tspZ = min(knvf[1] + 0.5 * knvf[3], IkxF[1] + 0.5 * IkxF[3]) - max(knvf[1] - 0.5 * knvf[3], IkxF[1] - 0.5 * IkxF[3])\n C7_8 = 0 if V2zj < 0 or tspZ < 0 else ... | [
"0.87311876",
"0.86956525",
"0.861473",
"0.86043346",
"0.8596631",
"0.8575147",
"0.8518549",
"0.8505585",
"0.8499229",
"0.84857213",
"0.8458491",
"0.84202886",
"0.8411013",
"0.8410743",
"0.83866537",
"0.83816576",
"0.8347008",
"0.8342121",
"0.8334235",
"0.8333239",
"0.832718"... | 0.0 | -1 |
Creates an instance of class Animal. | def FIMM(YKHO, mWFP, cQ3M=0):
YKHO._name = mWFP
YKHO._hunger = cQ3M | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n print('Animal created')",
"def FIMM(YKHO):\n rON5.__init__(YKHO)\n print('Dog created')",
"def q81M(YKHO, **B2fa):\n return iVWX(**B2fa)",
"def q81M(YKHO, **B2fa):\n return JCe6(**B2fa)",
"def q81M(YKHO, **B2fa):\n return E0Vw(**B2fa)",
"def FIMM(YKHO, iSsU='female', b... | [
"0.7184566",
"0.6961994",
"0.62448823",
"0.6189959",
"0.61339426",
"0.6039524",
"0.5937324",
"0.579748",
"0.5656645",
"0.55648804",
"0.5564804",
"0.54436314",
"0.5330105",
"0.52873236",
"0.52864784",
"0.5279677",
"0.52543855",
"0.52505744",
"0.5243841",
"0.5199954",
"0.511847... | 0.0 | -1 |
Returns a random string of length string_length. | def kSFd(a__r=10):
tuKI = str(qxeD.uuid4())
tuKI = tuKI.upper()
tuKI = tuKI.replace('-', '')
return tuKI[0:a__r] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWvy(a__r):\n return Hy7s.urandom(a__r)",
"def GLL2(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(u54L)))",
"def BWvy(u54L):\n return ''.join(tuKI.choices(vIwR.ascii_uppercase + vIwR.digits + vIwR.ascii_lowercase, k=u54L))",
"def BWvy(u54L):\n retu... | [
"0.8876176",
"0.8827222",
"0.8770069",
"0.8710327",
"0.8710327",
"0.8690012",
"0.8683446",
"0.86809766",
"0.86495167",
"0.86455065",
"0.8627251",
"0.8614129",
"0.8605394",
"0.8601623",
"0.8582271",
"0.8578396",
"0.85707814",
"0.8557459",
"0.8545255",
"0.8528147",
"0.85265285"... | 0.0 | -1 |
Returns current object name. None if it is not set. | def N5Em(YKHO):
return YKHO._currObjectName | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i0kJ(YKHO):\n try:\n if YKHO.name is not None:\n return str(YKHO.name)\n return None\n except Exception as e:\n raise tTpl",
"def i0kJ(YKHO):\n try:\n if YKHO.name is not None:\n return str(YKHO.name)\n return None\n except Exception as e:\... | [
"0.866407",
"0.866407",
"0.866407",
"0.866407",
"0.866407",
"0.85296285",
"0.85012245",
"0.85012245",
"0.8421817",
"0.83291274",
"0.83291274",
"0.83184725",
"0.8251067",
"0.8237647",
"0.8091236",
"0.8061451",
"0.79343474",
"0.79343474",
"0.79324615",
"0.79232717",
"0.79232717... | 0.0 | -1 |
Returns current object name. None if it is not set. | def oY3v(YKHO):
return YKHO._currObjectName | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i0kJ(YKHO):\n try:\n if YKHO.name is not None:\n return str(YKHO.name)\n return None\n except Exception as e:\n raise tTpl",
"def i0kJ(YKHO):\n try:\n if YKHO.name is not None:\n return str(YKHO.name)\n return None\n except Exception as e:\... | [
"0.866407",
"0.866407",
"0.866407",
"0.866407",
"0.866407",
"0.85296285",
"0.85012245",
"0.85012245",
"0.8421817",
"0.83291274",
"0.83291274",
"0.83184725",
"0.8251067",
"0.8237647",
"0.8091236",
"0.8061451",
"0.79343474",
"0.79343474",
"0.79232717",
"0.79232717",
"0.78984237... | 0.79324615 | 18 |
Convert Bteq ignore errors in a string separate by comma to a list format | def TPGV(ZqaC):
return [int(tTpl.strip()) for tTpl in ZqaC.split(',') if tTpl.strip()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jMvJ(YKHO, BWXx, gU8d):\n return list((wEf2.strip() for wEf2 in BWXx.split(',') if len(wEf2) > 0 and (not wEf2.isspace())))",
"def T9qr(vIwR: str) -> list:\n WfCS = []\n for ZfUD in vIwR:\n if ZfUD[-1] == ',' or ZfUD[-1] == ';' or ZfUD[-1] == '\\n':\n WfCS.append(ZfUD[:-1])\n ... | [
"0.6855962",
"0.6723704",
"0.6630219",
"0.66156936",
"0.63917834",
"0.6342141",
"0.631878",
"0.62707514",
"0.625223",
"0.6251391",
"0.62477463",
"0.62390363",
"0.622334",
"0.61753863",
"0.6131711",
"0.6130732",
"0.6129192",
"0.61149734",
"0.61029583",
"0.60809916",
"0.6000793... | 0.66270405 | 3 |
Attempt to delete a document with a matching document identifier. | def PTpj(YKHO, _eu6):
return YKHO.handler(YKHO.path + _eu6, 'DELETE') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kax1(YKHO, yZn6: ObjectId):\n try:\n qm8v.db[YKHO.collection_name].delete_one({'_id': yZn6})\n except IOError as e:\n raise Exception(f'ERROR - Failed to delete document: {tTpl}.')",
"def XRs9(OaeV, yZn6, qh1n):\n xUwc = OaeV.obj['Collection']\n if yZn6:\n ulrI = '{' + f'\"_i... | [
"0.76769036",
"0.76758176",
"0.7491672",
"0.74713856",
"0.7404414",
"0.73789334",
"0.73283637",
"0.7323801",
"0.7293941",
"0.72052425",
"0.71977466",
"0.712191",
"0.70895684",
"0.703184",
"0.69943357",
"0.6986407",
"0.6933111",
"0.68861383",
"0.68778986",
"0.68372893",
"0.682... | 0.0 | -1 |
Add a book to the library. | def E4mv(YKHO, jI4j):
YKHO.books.append(jI4j) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E4mv(YKHO, jI4j):\n return",
"def E4mv(jI4j):\n i8RB.append(jI4j)",
"def E4mv(YKHO, leAC, taDc):\n jI4j = dl5x(leAC, taDc)\n YKHO.books.append(jI4j)",
"def E4mv(YKHO):\n YKHO.add_book_name = YKHO.get_add_book_input()\n YKHO.list_of_books.append(YKHO.add_book_name)\n print('Thank You ... | [
"0.8991837",
"0.8680567",
"0.8494412",
"0.8034343",
"0.7914179",
"0.786893",
"0.779766",
"0.7635844",
"0.7578153",
"0.75529706",
"0.7483738",
"0.74751544",
"0.73474205",
"0.729922",
"0.7295855",
"0.7227322",
"0.72094524",
"0.71292436",
"0.7111635",
"0.7103149",
"0.7083316",
... | 0.8826761 | 1 |
Preprocess a single raw image. | def eaip(Uz1D):
LNo8 = ZvG6.preprocess_image(Uz1D, is_training=False, image_size=N0ky)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(YKHO, LNo8):\n return LNo8",
"def biH0(YKHO, LNo8):\n raise NotImplementedError",
"def biH0(YKHO, VXjJ):\n ydET = [CgcG()] + YKHO.cfg.data.test.pipeline[1:]\n ydET = jeFo(ydET)\n nPrm = dict(img=VXjJ)\n nPrm = ydET(nPrm)\n return nPrm['img'][0]",
"def biH0(YKHO, QMAG):\n LNo8... | [
"0.78647614",
"0.7759762",
"0.769974",
"0.7430862",
"0.739451",
"0.7299347",
"0.7265184",
"0.7143495",
"0.7057689",
"0.70532817",
"0.7046976",
"0.70419234",
"0.70187324",
"0.7013158",
"0.695172",
"0.6947131",
"0.69356227",
"0.6927113",
"0.69267887",
"0.6919717",
"0.6893285",
... | 0.702305 | 12 |
Returns image mask for CutMix. | def AYV9(YKHO, Cwt5, MKlR, yzQ0):
ggLL = ZylS.random.uniform([], 0, yzQ0, ZylS.int32)
eeC1 = ZylS.random.uniform([], 0, MKlR, ZylS.int32)
f0tD = ZylS.distributions.Beta(Cwt5, Cwt5).sample()
xokG = ZylS.cast(ZylS.math.sqrt(1 - f0tD), ZylS.float32)
sYpN = ZylS.cast(xokG * ZylS.cast(yzQ0, ZylS.float32)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PbUT(YKHO):\n return g74T.mask.from_surface(YKHO.img)",
"def PbUT(YKHO):\n return a9eO.mask.from_surface(YKHO.img)",
"def PbUT(YKHO):\n return a9eO.mask.from_surface(YKHO.img)",
"def PbUT(YKHO):\n return a9eO.mask.from_surface(YKHO.img)",
"def PbUT(YKHO, LNo8):\n ZHfW = YKHO._threshold(Y... | [
"0.7240027",
"0.68374366",
"0.68374366",
"0.68374366",
"0.68082243",
"0.6780108",
"0.67561865",
"0.67391837",
"0.671897",
"0.67156905",
"0.66680026",
"0.66483754",
"0.66131175",
"0.65456665",
"0.6523756",
"0.65106976",
"0.65066624",
"0.64852214",
"0.6450925",
"0.6430947",
"0.... | 0.0 | -1 |
Function to transform a pytorch tensor to numpy image | def AP7o(LNo8: torch.Tensor):
LNo8 = LNo8.detach().cpu()
LNo8 = LNo8 - LNo8.min()
LNo8 = LNo8 / LNo8.max()
LNo8 = LNo8.numpy()
if len(LNo8.shape) == 2:
return LNo8
assert LNo8.shape[0] == 3, 'Expected color channel to be on first axis. Got: {}'.format(LNo8.shape)
LNo8 = oyIN.moveaxis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYDm(VXjJ):\n FhQ1(VXjJ.permute(1, 2, 0))",
"def bJ9i(vhpA):\n if not isinstance(vhpA, oyIN.ndarray):\n if isinstance(vhpA, ht2j.Tensor):\n return vhpA.detach().cpu().numpy()\n return vhpA",
"def uaVh(vhpA):\n vhpA = vhpA.mul(255).add_(0.5).clamp_(0, 255).permute(1, 2, 0)\n ... | [
"0.83413893",
"0.8210778",
"0.82096475",
"0.82096475",
"0.7813993",
"0.76535076",
"0.7636818",
"0.7622779",
"0.75969905",
"0.752228",
"0.75101113",
"0.7498566",
"0.74884826",
"0.74414134",
"0.7404018",
"0.73393303",
"0.7306384",
"0.7301034",
"0.72924566",
"0.7257021",
"0.7187... | 0.663065 | 84 |
Search for duplicate vertices and remove all references to them in self.faces, by replacing them with the index of the first matching vertex in the list. Works inplace. | def bkwU(YKHO, f_12=True, j42V=True):
HX2b = YKHO.normals_zyx.shape[0] > 0
Iiuh = YoaT(YKHO.vertices_zyx)
PiBN, qk3l = Iiuh.transpose()
if len(PiBN) == 0:
if HX2b:
YKHO.recompute_normals(True)
return False
YKHO.drop_normals()
YAg3 = SmSa(PiBN, qk3l)
YAg3.apply_inp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBGX(YKHO):\n for RpU_ in YKHO.getFaces():\n T8yx = []\n YRbF = 0\n for SLBp in RpU_.getVertices():\n if SLBp.vertex.getPosition().isClose(RpU_.getVertices()[YRbF - 1].vertex.getPosition()):\n T8yx.append(SLBp)\n YRbF += 1\n for Ty9i in T8yx:\... | [
"0.7284171",
"0.6719114",
"0.6437008",
"0.6209284",
"0.59625655",
"0.5926016",
"0.5871556",
"0.58584183",
"0.58391386",
"0.57940036",
"0.5770395",
"0.5735541",
"0.57264614",
"0.5701264",
"0.5691409",
"0.5661539",
"0.5560956",
"0.5548034",
"0.55154955",
"0.54977435",
"0.544324... | 0.57365334 | 11 |
Approximate the spread of a cov_matrix in position space | def GntZ(gbZI):
hFWC = gbZI[:3, :3]
ufVO = oyIN.sqrt(oyIN.linalg.eigvalsh(hFWC))
return oyIN.prod(ufVO) ** (1.0 / 3.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFC2(E3D9):\n ywwl = E3D9.shape[0]\n P6bq = E3D9.mean(axis=0)\n E3D9 = E3D9 - oyIN.kron(oyIN.ones((ywwl, 1)), P6bq)\n Nq1b = oyIN.dot(E3D9.T, E3D9) / (ywwl - 1)\n return Nq1b",
"def _IBo(vb7U):\n Sfqw = dCyq(vb7U)\n vb7U = vb7U - XTiz.array([Sfqw])\n XeH_ = vb7U.shape[1]\n PFC2 = 1... | [
"0.64202446",
"0.63142586",
"0.6171994",
"0.6148626",
"0.6070836",
"0.60146934",
"0.6009522",
"0.599811",
"0.59677064",
"0.59024274",
"0.5893124",
"0.58906513",
"0.588311",
"0.58802104",
"0.5864438",
"0.58495694",
"0.5848824",
"0.58340573",
"0.5833987",
"0.5831697",
"0.579442... | 0.7379238 | 0 |
Generate covariance matrix from standard devs and correlations | def M8bM(K5WD):
v8j0, rKIL, R5Nm, qlpc = 1.0 / oyIN.array(K5WD[6:10])
d4bm, _S_b, uZWo = K5WD[10:13]
PFC2 = oyIN.array([[v8j0 ** 2, d4bm * v8j0 * rKIL, _S_b * v8j0 * R5Nm, 0.0, 0.0, 0.0], [d4bm * v8j0 * rKIL, rKIL ** 2, uZWo * rKIL * R5Nm, 0.0, 0.0, 0.0], [_S_b * v8j0 * R5Nm, uZWo * rKIL * R5Nm, R5Nm ** 2, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFC2(YKHO):\n if 'correlation' not in YKHO._paras.keys():\n print('correlation model has not been fitted yet!')\n return\n Kt_s = YKHO._corrs.shape[2]\n Csk6 = YKHO._corrs.shape[0]\n PFC2 = oyIN.empty([Csk6, Csk6, Kt_s])\n for YRbF in range(Kt_s):\n bSmD = YKHO._corrs[:, :, ... | [
"0.77753067",
"0.7426519",
"0.736965",
"0.71937555",
"0.71922326",
"0.71869403",
"0.7134452",
"0.7130676",
"0.70884097",
"0.70816123",
"0.70665884",
"0.70665884",
"0.70367414",
"0.70187056",
"0.69774467",
"0.6956143",
"0.68777144",
"0.68581694",
"0.68108034",
"0.67982125",
"0... | 0.62402856 | 87 |
Reverse engineer variance and correlations from cov matrix | def DEOZ(PFC2):
v8j0 = oyIN.sqrt(PFC2[0, 0])
rKIL = oyIN.sqrt(PFC2[1, 1])
R5Nm = oyIN.sqrt(PFC2[2, 2])
qlpc = (PFC2[3, 3] * PFC2[4, 4] * PFC2[5, 5]) ** (1 / 6)
d4bm = PFC2[0, 1] / (v8j0 ** 2 * rKIL ** 2)
_S_b = PFC2[0, 2] / (v8j0 ** 2 * R5Nm ** 2)
uZWo = PFC2[1, 2] / (rKIL ** 2 * R5Nm ** 2)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFC2(YKHO):\n if 'correlation' not in YKHO._paras.keys():\n print('correlation model has not been fitted yet!')\n return\n Kt_s = YKHO._corrs.shape[2]\n Csk6 = YKHO._corrs.shape[0]\n PFC2 = oyIN.empty([Csk6, Csk6, Kt_s])\n for YRbF in range(Kt_s):\n bSmD = YKHO._corrs[:, :, ... | [
"0.70863163",
"0.7038274",
"0.6959387",
"0.6935622",
"0.6905472",
"0.6877816",
"0.67736185",
"0.6735565",
"0.6659633",
"0.66246665",
"0.6621086",
"0.66195077",
"0.6616838",
"0.6611556",
"0.65960807",
"0.658873",
"0.6584826",
"0.656502",
"0.6562878",
"0.6560415",
"0.65583795",... | 0.0 | -1 |
Serialize object to json string. | def GS_w(YKHO):
return qQXR.dumps(YKHO._elements_dict) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO, YEnM):\n return qQXR.dumps(YEnM, cls=feCR)",
"def Napc(YKHO, YEnM):\n return qQXR.dumps(YEnM, cls=YKHO.PistonSerializableEncoder)",
"def kLcZ(YKHO, YEnM):\n return qQXR.dumps(YEnM)",
"def kLcZ(YKHO, YEnM):\n return qQXR.dumps(YEnM)",
"def Napc(YKHO, YEnM):\n try:\n retu... | [
"0.8541638",
"0.8224889",
"0.821481",
"0.821481",
"0.81135887",
"0.8002367",
"0.79987377",
"0.798975",
"0.79721993",
"0.7951556",
"0.7938145",
"0.7938145",
"0.7938145",
"0.7878903",
"0.785889",
"0.7841091",
"0.7802434",
"0.7802434",
"0.7788745",
"0.7774346",
"0.7774346",
"0... | 0.0 | -1 |
Return the location information for this expression as a string in a format suitable for use in ``__repr__`` methods. | def aYU_(YKHO) -> str:
return '???' if YKHO.location is None else YKHO.location.gnu_style_repr(relative=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L2UI(YKHO):\n return '({}, {})'.format(YKHO.location_x, YKHO.location_y)",
"def PrXH(YKHO):\n raise NotImplementedError",
"def wHJl(YKHO):\n return repr(YKHO.location.row) + ',' + repr(YKHO.location.column)",
"def zAg0(YKHO):\n hksT = 'Location Estimate: lat_deg = {}\\n'.format(YKHO._lat_deg)... | [
"0.7747265",
"0.75634015",
"0.7159788",
"0.7155361",
"0.7088783",
"0.69636804",
"0.69484067",
"0.6850691",
"0.6822476",
"0.68140334",
"0.6805091",
"0.67736006",
"0.6770187",
"0.67319816",
"0.66928184",
"0.6685723",
"0.6685723",
"0.6682112",
"0.66739315",
"0.66661775",
"0.6645... | 0.7685782 | 1 |