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 |
|---|---|---|---|---|---|---|
Set the processwide random seed. | def e3of(yokr):
yokr %= 4294967294
global seed_
global seed_stream_
o5eM = yokr
tuKI.seed(yokr)
oyIN.random.seed(yokr)
if 'tensorflow' in HwRy.modules:
import tensorflow as ZylS
ZylS.compat.v1.set_random_seed(yokr)
try:
import tensorflow_probability as KCQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PVng(yokr: int) -> None:\n pass",
"def yokr(YKHO, yokr):\n YKHO.random.seed(yokr)\n YKHO.nprandom.seed(yokr)",
"def e3of(yokr):\n PVng(yokr)",
"def CQsD(YKHO, GPtr):\n if GPtr.is_master_process:\n yokr = ITS7.time()\n Hy7s.environ['mytarget_tests_random_seed'] = str(yokr)\n ... | [
"0.80804384",
"0.807381",
"0.8061748",
"0.8048051",
"0.8044468",
"0.8020135",
"0.7903459",
"0.78962666",
"0.7885492",
"0.78767246",
"0.7850095",
"0.78400916",
"0.78154075",
"0.7806296",
"0.7803658",
"0.7803525",
"0.77948827",
"0.7791884",
"0.7783769",
"0.778261",
"0.7779982",... | 0.7534862 | 62 |
Get the processwide random seed. | def vjbM():
return o5eM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def igb0():\n import platform\n import time\n import hashlib\n QrM1 = ''.join(platform.uname())\n KdNK = '%s%s%s' % (QrM1, Hy7s.getpid(), time.time())\n KdNK = KdNK.encode('utf-8')\n yokr = int(hashlib.md5(KdNK).hexdigest(), 16)\n return yokr % oyIN.iinfo(oyIN.int32).max",
"def CtZY() -> ... | [
"0.8349082",
"0.806107",
"0.789706",
"0.7819037",
"0.78172106",
"0.7792699",
"0.77526987",
"0.77401584",
"0.7729413",
"0.77111846",
"0.7709649",
"0.75617456",
"0.73802567",
"0.737382",
"0.737382",
"0.737273",
"0.72346324",
"0.7178643",
"0.7105072",
"0.7077542",
"0.705429",
... | 0.7855716 | 3 |
Decorate routes to require login. | def uKii(eHNT):
@zaGL(eHNT)
def SzLu(*qIxc, **B2fa):
if cuiw.get('user_id') is None:
return vKnz('/login')
return eHNT(*qIxc, **B2fa)
return SzLu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if not 'logged_in' in cuiw:\n return vKnz(nKyW('index', next=QePW.url))\n return JfyU(*qIxc, **B2fa)\n return WS4m",
"def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if Oa1e.user i... | [
"0.7088456",
"0.69661",
"0.69525415",
"0.6949141",
"0.6931404",
"0.69277924",
"0.69114035",
"0.6908829",
"0.68492377",
"0.68424016",
"0.68367666",
"0.68357086",
"0.6820801",
"0.6820801",
"0.6820801",
"0.6820801",
"0.6806658",
"0.68059635",
"0.67959154",
"0.6781016",
"0.677388... | 0.656372 | 53 |
Adds self to rhs and returns a new vector. | def FOdN(YKHO, RKYb):
if isinstance(RKYb, (jKi7.integer_types, float)):
return lNLu(YKHO.x + RKYb, YKHO.y + RKYb, YKHO.z + RKYb)
else:
return lNLu(YKHO.x + RKYb.x, YKHO.y + RKYb.y, YKHO.z + RKYb.z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, RKYb):\n if len(YKHO) != len(RKYb):\n raise ValueError('Dimensions must agree.')\n Aofo = lNLu(len(YKHO))\n for d6pt in range(len(YKHO)):\n Aofo[d6pt] = YKHO[d6pt] + RKYb[d6pt]\n return Aofo",
"def FOdN(YKHO, Elif):\n return lNLu(YKHO[0] + Elif[0], YKHO[1] + Elif[1])",... | [
"0.8080069",
"0.7855897",
"0.7828574",
"0.7820388",
"0.7799137",
"0.777898",
"0.77262837",
"0.7684716",
"0.7684716",
"0.7684716",
"0.7684432",
"0.7640922",
"0.75609744",
"0.755596",
"0.755324",
"0.75383073",
"0.753472",
"0.74346375",
"0.74346375",
"0.73977673",
"0.73665345",
... | 0.8015016 | 1 |
Return the magnitude of this vector. | def YXbZ(YKHO):
return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return (YKHO.u ** 2 + YKHO.v ** 2) ** 0.5",
"def YXbZ(YKHO) -> float:\n return epAf.sqrt(YKHO._x ** 2 + YKHO._y ** 2)",
"def YXbZ(YKHO) -> float:\n return epAf.sqrt(YKHO._x ** 2 + YKHO._y ** 2)",
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO._x ** 2 + YKHO._y ** 2)",
"def YXbZ(YKHO... | [
"0.83990073",
"0.8321593",
"0.82535523",
"0.82458824",
"0.8230875",
"0.82122844",
"0.81426823",
"0.8126489",
"0.81259036",
"0.8119467",
"0.80251706",
"0.8018196",
"0.79966563",
"0.79643244",
"0.7963003",
"0.7955915",
"0.79125243",
"0.78671604",
"0.7825138",
"0.7808988",
"0.77... | 0.83265793 | 1 |
Return the cross product of this vector and rhs. | def WHx2(YKHO, RKYb):
return lNLu(YKHO.y * RKYb.z - YKHO.z * RKYb.y, YKHO.z * RKYb.x - YKHO.x * RKYb.z, YKHO.x * RKYb.y - YKHO.y * RKYb.x) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHx2(YKHO, RKYb):\n return lNLu(YKHO.y * RKYb.z - YKHO.z * RKYb.y, YKHO.z * RKYb.x - YKHO.x * RKYb.z, YKHO.x * RKYb.y - YKHO.y * RKYb.x)",
"def WHx2(YKHO, Elif: array_like) -> lNLu:\n Yipr = YKHO.set_dimension(3)\n Vkf3 = lNLu(Elif).set_dimension(3)\n return lNLu(oyIN.cross(Yipr, Vkf3))",
"def ... | [
"0.8401964",
"0.75308317",
"0.74965805",
"0.7452017",
"0.7407578",
"0.7347652",
"0.7335576",
"0.7323687",
"0.72884643",
"0.7226337",
"0.71736056",
"0.7171556",
"0.7067145",
"0.7050359",
"0.70479244",
"0.7044492",
"0.7011913",
"0.7006239",
"0.7005613",
"0.6993334",
"0.69873285... | 0.84825253 | 0 |
Return the angle between this vector and rhs in radians. | def hoP4(YKHO, RKYb):
return epAf.acos(YKHO.dot(RKYb) / (YKHO.magnitude() * RKYb.magnitude())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hoP4(YKHO, RKYb):\n return epAf.acos(YKHO.dot(RKYb) / (YKHO.magnitude() * RKYb.magnitude()))",
"def YylR(YKHO, Elif: 'Vector'):\n return epAf.atan2(Elif.y, Elif.x) - epAf.atan2(YKHO.y, YKHO.x)",
"def YylR(YKHO):\n PXGI = YKHO.unit()\n return epAf.atan2(PXGI.y, PXGI.x)",
"def YylR(YKHO) -> BH6... | [
"0.83565974",
"0.8055776",
"0.8035207",
"0.78784215",
"0.78655326",
"0.77585256",
"0.7709664",
"0.76959634",
"0.76850146",
"0.76850146",
"0.7666571",
"0.76440376",
"0.76332414",
"0.75905603",
"0.75802445",
"0.755816",
"0.755816",
"0.7549618",
"0.7526921",
"0.7481136",
"0.7465... | 0.84547025 | 0 |
Convert str to bool | def Cn0p(KCHu):
return str(KCHu).lower() in ('yes', 'true', 't', '1') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M0mR(YKHO, str):\n if str.lower() == 'true':\n return True\n elif str.lower() == 'false':\n return False\n else:\n raise ValueError",
"def M0mR(YKHO, str):\n try:\n if str.lower() == 'true':\n return True\n elif str.lower() == 'false':\n re... | [
"0.90700305",
"0.9034085",
"0.8853171",
"0.87808406",
"0.8773626",
"0.87439203",
"0.8643749",
"0.8638797",
"0.85993004",
"0.8595162",
"0.85687166",
"0.8544031",
"0.85213816",
"0.84549075",
"0.8434289",
"0.84070396",
"0.8403431",
"0.83891696",
"0.8353389",
"0.83529764",
"0.835... | 0.83917886 | 17 |
Initialize int comparison class. | def FIMM(YKHO, jMta='old', oGE4='new'):
super().__init__(jMta, oGE4)
YKHO.type = int
YKHO.default = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, jzdc, Fg_i):\n assert jzdc < Fg_i\n assert isinstance(jzdc, int)\n assert isinstance(Fg_i, int)\n YKHO._a = jzdc\n YKHO._b = Fg_i",
"def FIMM(YKHO, *qIxc, **B2fa):\n super(zllO, YKHO).__init__()\n YKHO._min, YKHO._max, YKHO._step = YKHO.parse_args(*qIxc, **B2fa)\n YKHO.__cu... | [
"0.6643106",
"0.63838804",
"0.6370466",
"0.63137454",
"0.62728405",
"0.61807305",
"0.6175742",
"0.6105331",
"0.60692805",
"0.60613734",
"0.6039543",
"0.6038166",
"0.60196716",
"0.5935479",
"0.5934535",
"0.59313464",
"0.5920602",
"0.5909736",
"0.5870129",
"0.5863745",
"0.58562... | 0.0 | -1 |
Get default attribute if it is None | def R4HB(YKHO, Elif, H5ew, BWXx):
if not BWXx and isinstance(Elif, dict):
H5ew = Elif[H5ew] if not Elif[H5ew] == None else ''
return I1bG[type(H5ew)].__dict__.get('default', BWXx)
else:
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R0XU(YKHO, H5ew):\n try:\n return YKHO[H5ew]\n except KeyError:\n return YKHO.attributes[H5ew]['default']",
"def cyhl(YKHO, YEnM, mWFP, WmM4=None):\n if not hasattr(YEnM, mWFP):\n if hasattr(YEnM, 'func_globals') and mWFP in YEnM.func_globals.keys():\n return YEnM.fun... | [
"0.7965779",
"0.7849753",
"0.7835059",
"0.7737524",
"0.75835276",
"0.7575802",
"0.75731677",
"0.75219387",
"0.74304456",
"0.74279475",
"0.7426072",
"0.7397979",
"0.7381497",
"0.73668134",
"0.7338941",
"0.73196954",
"0.73196954",
"0.7316463",
"0.7314723",
"0.7314293",
"0.72841... | 0.0 | -1 |
Test empty json payload causes an AppError. | def V2R9(YKHO):
for lwj3 in VQ66:
with trZe.raises(SIlU):
YKHO.testapp.post(lwj3.endpoint, {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jarp(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.post('/users', data=qQXR.dumps({}), content_type='application/json')\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertEqual(geh0.status_code, 400)\n YKHO.assertIn('Invalid payload', nPrm['message'])\n YKHO.assertIn('... | [
"0.81321275",
"0.7487784",
"0.7389556",
"0.73154956",
"0.72941846",
"0.7242098",
"0.72294956",
"0.71876013",
"0.7162941",
"0.71584207",
"0.7107556",
"0.7099561",
"0.7089279",
"0.7052609",
"0.7045636",
"0.70123994",
"0.6992442",
"0.69733775",
"0.69681144",
"0.694539",
"0.69297... | 0.7818829 | 1 |
Return the variable assigned at this label. If no variable is assigned at this label, return an empty set. | def FOvi(_Fei, UXqs):
Ylbp = set()
for Ty9i in _Fei.neighbors(UXqs):
if _Fei[UXqs][Ty9i]['command'].typename == 'Assign':
Ylbp.update(_Fei[UXqs][Ty9i]['command'].children[0].name)
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ixeq(YKHO):\n return YKHO.vars_to_assign.pop()",
"def qK5C(YKHO):\n for Ty9i in YKHO.network.variables:\n if not Ty9i.isAssigned():\n return Ty9i\n return None",
"def xrRd(YKHO):\n return YKHO.varsToAssign",
"def jbKh(YKHO):\n if len(YKHO._matrix) > 0:\n return set... | [
"0.71573806",
"0.70218426",
"0.668597",
"0.6668571",
"0.66304195",
"0.6597573",
"0.6555129",
"0.65392244",
"0.65370923",
"0.64577013",
"0.62966883",
"0.6258307",
"0.62319064",
"0.6228473",
"0.6210137",
"0.6210137",
"0.6210137",
"0.6195084",
"0.6193073",
"0.6193073",
"0.619307... | 0.0 | -1 |
Check if a variable is referenced in a path before being defined again. | def VKz4(_Fei, Es0b, pmON):
if len(pmON) <= 1:
return False
P6bq = pmON[0]
Ty9i = pmON[1]
kLQb, oUZx = (_Fei[P6bq][Ty9i]['booleanexpr'], _Fei[P6bq][Ty9i]['command'])
if kLQb is not None and Es0b in T1Dj(kLQb):
return True
if oUZx.typename == 'Assign' and Es0b in T1Dj(oUZx.childre... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HEVF(_Fei, pmON, Es0b):\n P6bq = pmON[0]\n Ty9i = pmON[-1]\n if len(pmON) < 2:\n return False\n if Es0b not in FOvi(_Fei, P6bq):\n return False\n if Es0b not in ivgF(_Fei, Ty9i):\n return False\n for YRbF in range(1, len(pmON) - 1):\n yzQ0 = pmON[YRbF]\n if ... | [
"0.7155128",
"0.655698",
"0.62758887",
"0.6215106",
"0.6182584",
"0.61621606",
"0.61524683",
"0.6012107",
"0.59918535",
"0.5968578",
"0.5924351",
"0.5902482",
"0.5878381",
"0.5875808",
"0.5860008",
"0.58230984",
"0.58041745",
"0.58037925",
"0.57889295",
"0.5785628",
"0.577424... | 0.77780825 | 0 |
Return the reward for a position i,j | def _s7R(YRbF, r845) -> float:
if YKHO.grid[YRbF][r845] == zZgD.GOAL:
return 1.0
elif YKHO.grid[YRbF][r845] == zZgD.OBSTACLE:
return -1.0
else:
return 0.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xyVK(kpkG):\n return vOGg[kpkG[0], kpkG[1]]",
"def z5eZ(YKHO, jNOo):\n return YKHO.rewards[jNOo[0]][jNOo[1]]",
"def xyVK(YKHO, _ins):\n x70T = oyIN.clip(0.1 * YKHO.sim.v[2], -1, 1)\n CuSx = oyIN.clip(1 - 0.003 * abs(YKHO.sim.pose[:3] - YKHO.target_pos), -1, 1).sum() / 3\n return CuSx + x70T"... | [
"0.7582696",
"0.7350659",
"0.71303564",
"0.6983816",
"0.6962443",
"0.69225574",
"0.6916444",
"0.6916444",
"0.69031614",
"0.6869436",
"0.6860059",
"0.6762923",
"0.6758725",
"0.6752719",
"0.6672631",
"0.6638425",
"0.6602672",
"0.66015834",
"0.65987873",
"0.65839076",
"0.6577310... | 0.0 | -1 |
Checks if the state is an obstacle. | def mArh(YKHO, QTBn: Tuple[int, int]) -> bool:
if QTBn in YKHO.obstacles:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bkug(YKHO, QTBn: tuple) -> bool:\n for VmPb in QTBn:\n if YKHO.grid_map[VmPb] == 1:\n return False\n return True",
"def ECp5(YKHO, XSoh):\n AN2W = YKHO.player.getTilePos()\n if (AN2W[0] + XSoh[0], AN2W[1] + XSoh[1], AN2W[2]) in P8oC.tileCoords:\n eL5z = P8oC.tileCoords[AN... | [
"0.70986813",
"0.69997436",
"0.6793273",
"0.67789453",
"0.6698603",
"0.65350235",
"0.64967126",
"0.6446605",
"0.64130396",
"0.64099544",
"0.6401557",
"0.637712",
"0.6355562",
"0.63138664",
"0.62628895",
"0.6222066",
"0.62145984",
"0.6202135",
"0.61968666",
"0.6157757",
"0.612... | 0.89721155 | 0 |
Whether `path1` is the super path of `path2`. Note that if `path1` is same as `path2`, it's also regarded as the super path os `path2`. For instance "/", "/opt" and "/opt/test" are all the super paths of "/opt/test", while "/opt/t" is the super path of "/opt/test". | def JdAw(daXS, AUB0):
daXS = Hy7s.path.normpath(daXS)
dsWn = Hy7s.path.normpath(AUB0)
hzk1 = Hy7s.path.dirname(dsWn)
if daXS == dsWn:
return True
while hzk1 != dsWn:
if daXS == hzk1:
return True
dsWn = hzk1
hzk1 = Hy7s.path.dirname(hzk1)
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eKGA(daXS, AUB0):\n daXS = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.path.normpath(daXS)))\n AUB0 = Hy7s.path.normcase(Hy7s.path.abspath(Hy7s.path.normpath(AUB0)))\n return daXS == AUB0",
"def euCt(r0Bg, FMQJ):\n return Hy7s.path.realpath(CrT2(r0Bg)) == Hy7s.path.realpath(CrT2(FMQJ))",
"def g05... | [
"0.73056126",
"0.72440296",
"0.7053122",
"0.6976722",
"0.6972568",
"0.69654185",
"0.68689704",
"0.6852509",
"0.68429416",
"0.67543316",
"0.67360085",
"0.6659591",
"0.663215",
"0.66231626",
"0.66151226",
"0.65030146",
"0.63503635",
"0.6283773",
"0.62797445",
"0.6271451",
"0.62... | 0.8979769 | 0 |
Return the filename without extension. | def Ux0P(pmON):
return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AjhE(YKHO):\n return Hy7s.path.basename(YKHO.file.name).split('.')[0]",
"def t5OZ(qaEx):\n return gLx5(aPr_(qaEx))[0]",
"def icfS(pmON):\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0]",
"def AjhE(qaEx):\n return Hy7s.path.basename(qaEx).split('.')[0]",
"def LnvH(nUeQ):\n return... | [
"0.90336883",
"0.8769331",
"0.8640329",
"0.85336536",
"0.84122026",
"0.83301324",
"0.83219314",
"0.83160394",
"0.8300479",
"0.82872313",
"0.82458943",
"0.82437503",
"0.81029826",
"0.8065812",
"0.7955411",
"0.7857036",
"0.7832169",
"0.7821392",
"0.78140986",
"0.78124106",
"0.7... | 0.7374644 | 50 |
Create a paginator for an operation. | def oL8A(hTqE=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass",
"def oL8A(YKHO, hTqE: str=None) -> NIbP:\... | [
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.76366186",
"0.70472574",
"0.67338336",
"0.6382978",... | 0.7726925 | 2 |
Returns the normal queryset with all topics. In the background all attachments and the related agenda item are prefetched from the database. | def XlsC(YKHO):
return YKHO.get_queryset().prefetch_related('attachments', 'lists_of_speakers', 'agenda_items') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bou5():\n AdpB = oosv.objects.all()\n return AdpB",
"def fmfM(YKHO, *qIxc, **B2fa):\n return super().get_prefetched_queryset(*qIxc, **B2fa).prefetch_related('attachments', 'lists_of_speakers', 'agenda_items')",
"def k66M(YKHO):\n return oosv.objects.order_by('-pub_date')",
"def Bou5(YKHO):\n ... | [
"0.70420253",
"0.70328116",
"0.69922495",
"0.6671471",
"0.6612736",
"0.658168",
"0.65469176",
"0.64307255",
"0.62804735",
"0.6256208",
"0.6198139",
"0.6140627",
"0.61136687",
"0.61136687",
"0.60812765",
"0.6070474",
"0.60703844",
"0.6027984",
"0.60069424",
"0.5998259",
"0.598... | 0.7497506 | 0 |
Add a dummy patch object so we can get legend data. | def P2VU(YKHO, aNZO, qfpW, UXqs):
if len(qfpW) == 4:
qfpW = qfpW[:3]
mawX = QrM1.Rectangle([0, 0], 0, 0, linewidth=YKHO.linewidth / 2, edgecolor=YKHO.gray, facecolor=qfpW, label=UXqs)
aNZO.add_patch(mawX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P2VU(YKHO, aNZO, qfpW, UXqs):\n mawX = QrM1.Rectangle([0, 0], 0, 0, linewidth=YKHO.linewidth / 2, edgecolor=YKHO.gray, facecolor=qfpW, label=UXqs)\n aNZO.add_patch(mawX)",
"def s3bP(YKHO):\n Po4F = AKVf.Polygon(xy=YKHO.vertices, edgecolor='red', facecolor='None')\n return Po4F",
"def s3bP(YKHO)... | [
"0.6366043",
"0.6304089",
"0.596473",
"0.5913081",
"0.5699871",
"0.56964725",
"0.56722593",
"0.56689924",
"0.5634006",
"0.5603089",
"0.5539396",
"0.5529892",
"0.55089915",
"0.54768956",
"0.54412633",
"0.5386356",
"0.53725815",
"0.53343564",
"0.5333831",
"0.5320934",
"0.532093... | 0.6293981 | 2 |
output onehot encoding of paths | def owec(JACg, AxQr=5, x3Zh=3):
yjbO = sum([AxQr ** YRbF for YRbF in range(1, x3Zh + 1)])
e3G_ = HOCN(JACg, num_ops=AxQr)
tZ2K = oyIN.zeros(yjbO)
for d6pt in e3G_:
tZ2K[d6pt] = 1
return tZ2K | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gb5P(Crrw, q1vv):\n KLLm = oyIN.zeros((q1vv, Crrw.shape[0]))\n for Z9rn in oyIN.arange(0, q1vv):\n oeNL = oyIN.where(Crrw == Z9rn)\n KLLm[Z9rn][oeNL] = 1\n return KLLm",
"def zGX0(LeZt, input):\n FJDa = ZylS.strings.bytes_split(input)\n rGCG = ZylS.reshape(FJDa, (250,))\n F_z2... | [
"0.7136373",
"0.69061834",
"0.6810981",
"0.6790863",
"0.67737466",
"0.67565405",
"0.6726054",
"0.6694165",
"0.6692946",
"0.66333985",
"0.6629736",
"0.66253257",
"0.66186774",
"0.6602364",
"0.65917957",
"0.65781975",
"0.6548888",
"0.65358883",
"0.6534058",
"0.6510029",
"0.6505... | 0.6342353 | 41 |
If ``True`` at least a task failed. | def _j4m(YKHO) -> bool:
return any([MKlR.failed for MKlR in YKHO]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _j4m(YKHO):\n return YKHO.done and (not YKHO.succeeded)",
"def QgT2(YKHO):\n return False",
"def gjOz(YKHO, D5gV):\n pass",
"def _j4m(YKHO):\n return YKHO.has_run and YKHO.failed_tests > 0",
"def QgT2(YKHO) -> ld92[bool]:\n return YKHO.instance.is_failed()",
"def QgT2(YKHO) -> ld92[boo... | [
"0.7631295",
"0.7395734",
"0.7343711",
"0.72896636",
"0.7259539",
"0.7259539",
"0.72189873",
"0.71023756",
"0.70758456",
"0.70536876",
"0.7046478",
"0.7046478",
"0.7046478",
"0.7046478",
"0.7046478",
"0.7046478",
"0.702741",
"0.70239186",
"0.6933804",
"0.6906594",
"0.68840265... | 0.6638369 | 41 |
Initialize the LVM object. The LVM object is based on an LVM VolumeGroup, one instantiation for each VolumeGroup you have/use. | def FIMM(YKHO, br0e: str, F1HG: str, kHWx: bool=False, w57T: Optional[list]=None, yVYE: Optional[str]='default', ZaUd: Optional[Callable]=None, oP92=None, OwX1: Optional[bool]=False):
super(PDH1, YKHO).__init__(execute=ZaUd, root_helper=F1HG)
YKHO.vg_name = br0e
YKHO.pv_list = []
YKHO.vg_size = 0.0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, br0e, F1HG, kHWx=False, w57T=None, yVYE='default', ZaUd=yc1d.execute):\n super(PDH1, YKHO).__init__(execute=ZaUd, root_helper=F1HG)\n YKHO.vg_name = br0e\n YKHO.pv_list = []\n YKHO.lv_list = []\n YKHO.vg_size = 0.0\n YKHO.vg_free_space = 0.0\n YKHO.vg_lv_count = 0\n YKHO.vg_u... | [
"0.77503985",
"0.6936306",
"0.6784605",
"0.65631074",
"0.6162861",
"0.60421044",
"0.59184486",
"0.5871725",
"0.5868874",
"0.5816083",
"0.5786951",
"0.5784858",
"0.5755174",
"0.5738747",
"0.56899947",
"0.56580704",
"0.56507754",
"0.5630421",
"0.5625123",
"0.5577422",
"0.557727... | 0.7207301 | 1 |
Ensure that logical volume/snapshot logical volume is activated. | def BeOH(YKHO, mWFP: str, tHUz: bool=False, tesq: bool=False) -> None:
if tHUz and (not YKHO.supports_snapshot_lv_activation):
return
ZUD9 = YKHO.vg_name + '/' + YKHO._mangle_lv_name(mWFP)
HCmI = ['lvchange', '-a', 'y', '--yes']
if YKHO.supports_lvchange_ignoreskipactivation:
HCmI.append... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KBYD(YKHO, akib, DHvX):\n if akib['status'] not in ['available', 'in-use']:\n tO9_ = bGrB('Volume status must be available/in-use.')\n raise AJ5d.InvalidVolume(reason=tO9_)\n if not DHvX and 'in-use' == akib['status']:\n tO9_ = bGrB('Volume status is in-use.')\n raise AJ5d.Inv... | [
"0.6735124",
"0.6710101",
"0.6557837",
"0.64320415",
"0.63834715",
"0.63621753",
"0.6347614",
"0.6340566",
"0.6340134",
"0.62724304",
"0.6266138",
"0.6253044",
"0.62454796",
"0.62147725",
"0.62022305",
"0.61960286",
"0.61904955",
"0.61843187",
"0.6164029",
"0.6164029",
"0.616... | 0.0 | -1 |
Get the fireplace state. | def QTBn(YKHO):
return YKHO.__state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.game.get_state()",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def QTBn(YKHO):\n return YKHO.get('state')",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.... | [
"0.69270027",
"0.6924028",
"0.69102",
"0.68636",
"0.68216276",
"0.68216276",
"0.68216276",
"0.68216276",
"0.68216276",
"0.68216276",
"0.68216276",
"0.681215",
"0.6793044",
"0.6793044",
"0.6778141",
"0.6756664",
"0.67371124",
"0.67371124",
"0.67371124",
"0.67371124",
"0.672513... | 0.0 | -1 |
Get a flag indicating whether the fireplace is on. | def Debg(YKHO):
return YKHO.state == sCks.ON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dgwp(YKHO):\n return YKHO.state == sCks.OFF",
"def A9nw() -> bool:\n return pAF4",
"def Debg(YKHO) -> bool | None:\n return YKHO._value",
"def Debg(YKHO) -> bool | None:\n return YKHO._value",
"def Debg(YKHO) -> bool | None:\n return YKHO._value",
"def Debg(YKHO) -> bool | None:\n r... | [
"0.7047818",
"0.6974143",
"0.68858904",
"0.68858904",
"0.68858904",
"0.6797654",
"0.67456794",
"0.671993",
"0.671993",
"0.671993",
"0.671993",
"0.671993",
"0.671993",
"0.671993",
"0.671993",
"0.671993",
"0.671993",
"0.671993",
"0.671993",
"0.670031",
"0.66996324",
"0.668966... | 0.8088272 | 0 |
Get a flag indicating whether the pilot light is on. | def h5ZE(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Debg(YKHO):\n return YKHO._light_on",
"def Debg(YKHO):\n return YKHO._light.on",
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def fBZe(YKHO):\n return YKHO._light == 'ON'",
"def xypM(YKHO):\n asva = YKHO.get_brightness\n Debg = True if asva > 0 else False\n try:\n YKHO.o... | [
"0.75873077",
"0.74956656",
"0.74269485",
"0.74269485",
"0.74101645",
"0.70841485",
"0.7001024",
"0.696281",
"0.68940264",
"0.687616",
"0.6810708",
"0.68049216",
"0.6772523",
"0.67303693",
"0.6724877",
"0.6716242",
"0.66760087",
"0.66358113",
"0.662028",
"0.6588774",
"0.65556... | 0.7642038 | 0 |
Make sure that when replayjsoninline is passed, parse_test_runner_command_line_args doesn't complain about a missing test path. | def Dr7t(YKHO):
wfdZ.parse_test_runner_command_line_args([], ['--replay-json-inline', '{something that obviously isnt json}']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H0lj(YKHO):\n wfdZ.parse_test_runner_command_line_args([], ['--replay-json', 'somejsonfile.txt'])",
"def gr9P(YKHO):\n with DQkc(t19r):\n wfdZ.parse_test_runner_command_line_args([], [])",
"def Sd56(YKHO):\n YKHO.test_instance.parse_args.assert_called_with()",
"def aRZA(YKHO):\n wfdZ.p... | [
"0.79379207",
"0.6789529",
"0.61972696",
"0.6191741",
"0.61636764",
"0.6133355",
"0.6114174",
"0.60288703",
"0.58697224",
"0.5867102",
"0.5852338",
"0.5848785",
"0.5831724",
"0.57562137",
"0.5738509",
"0.5684703",
"0.566511",
"0.5656776",
"0.56287885",
"0.5628455",
"0.5622513... | 0.827512 | 0 |
Make sure that when replayjsoninline is passed, parse_test_runner_command_line_args doesn't complain about a missing test path. | def H0lj(YKHO):
wfdZ.parse_test_runner_command_line_args([], ['--replay-json', 'somejsonfile.txt']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dr7t(YKHO):\n wfdZ.parse_test_runner_command_line_args([], ['--replay-json-inline', '{something that obviously isnt json}'])",
"def gr9P(YKHO):\n with DQkc(t19r):\n wfdZ.parse_test_runner_command_line_args([], [])",
"def Sd56(YKHO):\n YKHO.test_instance.parse_args.assert_called_with()",
"... | [
"0.82763505",
"0.67886955",
"0.6196032",
"0.6193278",
"0.61637217",
"0.6132778",
"0.61144197",
"0.60289073",
"0.587012",
"0.5866717",
"0.58505696",
"0.5848992",
"0.5832587",
"0.5754362",
"0.5737493",
"0.5681538",
"0.56652",
"0.5655091",
"0.5628598",
"0.5626101",
"0.5621102",
... | 0.79382694 | 1 |
If a and b are TileMaps with the same overall tiling but different active tile sets, then c = a.with_tiles(b) will make c a TileMap with the union of the active tiles of a and b and the data from a (new tiles are zeroinitialized). If strict==True, then c will have exactly the active tiles of b, in exactly that order. B... | def RiGc(YKHO, Elif, U3Fm=False):
try:
WZHJ = Elif.geometry.active
except AttributeError:
WZHJ = LrYj(Elif, YKHO.ntile)
if oyIN.all(WZHJ == YKHO.geometry.active):
return YKHO.copy()
if U3Fm:
bk_f = YKHO.geometry.copy(active=WZHJ)
else:
bk_f = YKHO.geometry.cop... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0Xu(jzdc, Fg_i):\n for Csk6 in range(2, jzdc.dim()):\n TVTK = jzdc.shape[Csk6] - Fg_i.shape[Csk6]\n T86l = TVTK // 2\n jzdc = jzdc.narrow(Csk6, T86l, jzdc.shape[Csk6] - TVTK)\n return jzdc",
"def G7E1(YKHO, jzdc, Fg_i):\n YKHO.assertEqual(jzdc.shape, Fg_i.shape)\n eHkp = jzd... | [
"0.5525549",
"0.55031055",
"0.5420421",
"0.5420421",
"0.53934705",
"0.5344411",
"0.5300942",
"0.5243237",
"0.5217462",
"0.51996917",
"0.5174531",
"0.5055441",
"0.50500053",
"0.49952352",
"0.49939677",
"0.49869907",
"0.4979018",
"0.49553883",
"0.49505314",
"0.49456924",
"0.492... | 0.6901291 | 0 |
Elementwise matrix multiplication matvec. Result will have the same shape as vec. Multiplication happens along the last nonpixel indices. | def PjnS(vb7U, he6J):
vb7U = oyIN.asanyarray(vb7U)
if vb7U.ndim <= 2:
return vb7U * he6J
me9R = oQim(oyIN.einsum('...abi,...bi->...ai', vb7U, he6J), vb7U, he6J)
return me9R | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cpp4(he6J):\n f_9U = len(he6J)\n yvT9 = oyIN.zeros([f_9U, f_9U])\n for YRbF in range(0, f_9U):\n for r845 in range(0, f_9U):\n yvT9[YRbF, r845] = he6J[YRbF] * he6J[r845]\n return yvT9",
"def _HVB(he6J: np.ndarray, vb7U: np.ndarray):\n return oyIN.dot(oyIN.array([he6J]), vb7U.... | [
"0.7939787",
"0.7445035",
"0.74149925",
"0.73604536",
"0.73324484",
"0.72307664",
"0.7136754",
"0.7084713",
"0.7071917",
"0.7063291",
"0.7009208",
"0.7006998",
"0.6882163",
"0.6817947",
"0.6776194",
"0.67028934",
"0.6701506",
"0.66352975",
"0.66352975",
"0.6627812",
"0.659520... | 0.77380675 | 1 |
vars is a set of variables factors is a set of factors. All of the factors are instances of CPD (e.g., Prob). | def FIMM(YKHO, leAC, kc1W, Llmz):
_jFe.__init__(YKHO, leAC, kc1W, Llmz)
assert all((isinstance(eHNT, R7Ci) for eHNT in Llmz))
YKHO.var2cpt = {eHNT.child: eHNT for eHNT in Llmz}
YKHO.var2parents = {eHNT.child: eHNT.parents for eHNT in Llmz}
YKHO.children = {exwG: [] for exwG in YKHO.variables}
fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PNwm(YKHO, vars):\n YKHO._probs = [0 for bGrB in range(Pusg(seET.mul, [SRYB.num_states for SRYB in vars]))]\n YKHO._probs_index = 0\n YKHO._assignment = U8Lr([(SRYB, None) for SRYB in vars])\n YKHO._vars = list(reversed(vars))\n YKHO._recurse_generate_factor()\n return pPiq.SgFactor(vars, YKH... | [
"0.6142273",
"0.6006164",
"0.57981676",
"0.5679507",
"0.5666113",
"0.55700225",
"0.54323435",
"0.5420451",
"0.5408893",
"0.5408558",
"0.5393919",
"0.5326559",
"0.532251",
"0.5311257",
"0.52981466",
"0.52981466",
"0.52928936",
"0.52928936",
"0.52928936",
"0.527629",
"0.5247648... | 0.50370467 | 42 |
Return answer ids for the given question. Ids are randomized so is_correct doesn't always have id==1. Randomization always yield the same results for the given question_id. | def iKO8(JVBp, Kj6l):
A07C = list(range(1, Kj6l + 1))
tuKI.seed(hash(JVBp))
tuKI.shuffle(A07C)
return A07C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cMNl(N1p7: RealDictCursor, JVBp):\n xDcj = Pe9W.SQL('\\n SELECT id\\n FROM answer\\n WHERE question_id = %(question_id)s\\n ')\n N1p7.execute(xDcj, {'question_id': JVBp})\n return N1p7.fetchall()",
"def iKO8(YKHO):\n Wo3y = []\n for A... | [
"0.6677991",
"0.63912",
"0.62359315",
"0.61423707",
"0.6136654",
"0.60457915",
"0.6017104",
"0.6008266",
"0.59938705",
"0.59741",
"0.5923361",
"0.58734196",
"0.58661133",
"0.5853831",
"0.5797271",
"0.57942045",
"0.57735085",
"0.5772188",
"0.5767215",
"0.57197833",
"0.5714657"... | 0.72704446 | 0 |
Convert Geodataframe to geojson and plot it. | def wFOJ(Tvv2, mWFP='layer', TVTK='100%', H2v2='100%', Rci7=None, qfpW='blue', MWtk=None, trlf=7, PttE='OpenStreetMap', hkS8=None, _Cnz={}):
vrjl = Tvv2.copy()
tlgE = 'color{}'.format(eHHU(4))
if isinstance(qfpW, list):
vrjl[tlgE] = qfpW
elif qfpW.lower() == 'random':
vrjl[tlgE] = u4me(l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m_xQ(YKHO):\n try:\n MhBQ = U_NH.GeoDataFrame({'geometry': U_NH.GeoSeries(YKHO.geometries)})\n MhBQ.crs = YKHO.crs\n MhBQ = MhBQ.join(YKHO.attributes)\n except Exception:\n bo34.debug('failed to build a GeoDataFrame from shapelygeometries')\n raise Exception()\n retu... | [
"0.6886236",
"0.66372913",
"0.6528266",
"0.6504614",
"0.64111495",
"0.6348397",
"0.63473326",
"0.6307946",
"0.6305293",
"0.6269971",
"0.6258744",
"0.62396574",
"0.62066483",
"0.6167532",
"0.614943",
"0.6143343",
"0.61365986",
"0.6115611",
"0.60359895",
"0.600496",
"0.60023636... | 0.59069675 | 28 |
It should return the result of operation (addition) | def n22U(YKHO):
YKHO.assertEqual(YKHO.math_helper.calc('addition', 1, 1), 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(jzdc, Fg_i):\n SKE2 = jzdc + Fg_i\n return SKE2",
"def H2v5(jzdc, Fg_i):\n Aofo = jzdc + Fg_i\n return Aofo",
"def H2v5(jzdc, Fg_i):\n Aofo = jzdc + Fg_i\n return Aofo",
"def H2v5(jzdc, Fg_i):\n Aofo = jzdc + Fg_i\n return Aofo",
"def H2v5(YKHO, J8Hj: float, ol_Q: float) ->... | [
"0.7848246",
"0.76449573",
"0.76449573",
"0.76449573",
"0.75526357",
"0.75421286",
"0.75272095",
"0.75063753",
"0.749511",
"0.7467847",
"0.7441806",
"0.7436607",
"0.7436607",
"0.7436607",
"0.7427011",
"0.74195373",
"0.74137497",
"0.74000216",
"0.73772126",
"0.73695916",
"0.73... | 0.7867546 | 0 |
Gets the proper title of this asset. This may be the same as the display name or the display name may be used for a less formal label. | def Upwb(YKHO):
return YKHO._payload.get_title() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Upwb(YKHO):\n return YKHO.data['metadata']['title'].lower()",
"def leAC(YKHO):\n return YKHO._info['name']",
"def _0LT(YKHO):\n return YKHO._asset['name']",
"def mWFP(YKHO) -> str | None:\n return YKHO._title",
"def Jx3D(YKHO):\n Aofo = YKHO.get_attribute(s6Cf.AttributeIds.DisplayName)\n... | [
"0.7408133",
"0.73327565",
"0.7325147",
"0.728668",
"0.72470456",
"0.7239105",
"0.72231585",
"0.71911347",
"0.7190871",
"0.7184332",
"0.71841776",
"0.7179271",
"0.7164936",
"0.71394104",
"0.7135518",
"0.7117404",
"0.7117404",
"0.7117404",
"0.7117404",
"0.7117404",
"0.7117404"... | 0.0 | -1 |
Tests if this asset is in the public domain. An asset is in the public domain if copyright is not applicable, the copyright has expired, or the copyright owner has expressly relinquished the copyright. | def G_dZ(YKHO):
return YKHO._payload.is_public_domain() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C76K(YKHO):\n return YKHO.iptype().startswith(('ALLOCATED', 'PUBLIC'))",
"def uqJB(YKHO):\n if YKHO.taken_by_me:\n return True\n elif YKHO.license_code is None:\n return False\n elif getattr(gCuF, 'SITE_IS_COMMERCIAL', False) and 'nc' in YKHO.license_code:\n return False\n ... | [
"0.6171341",
"0.60822654",
"0.60186696",
"0.6017781",
"0.6017781",
"0.6017781",
"0.5965811",
"0.59310097",
"0.5902447",
"0.58929634",
"0.5863955",
"0.5863955",
"0.5863955",
"0.5863955",
"0.5863955",
"0.5863955",
"0.5863955",
"0.5863955",
"0.5863955",
"0.5863955",
"0.5863955",... | 0.6837949 | 0 |
Tests if there are any license restrictions on this asset that restrict the distribution, republication or public display of this asset, commercial or otherwise, without modification, alteration, or inclusion in other works. This method is intended to offer consumers a means of filtering out search results that restric... | def kWSe(YKHO):
return YKHO._payload.can_distribute_verbatim() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kcWi():\n fvVL = bIQh['commercial']\n WvKQ = bIQh['modification']\n pbPh = set.intersection(WvKQ, fvVL)\n geh0 = G4JS.get(f'{l4ys}/v1/images?q=dog&license_type=commercial,modification', verify=False)\n U5Jc = qQXR.loads(geh0.text)\n for Aofo in U5Jc['results']:\n assert Aofo['license']... | [
"0.6486999",
"0.63148594",
"0.6229978",
"0.6229978",
"0.6229978",
"0.6229978",
"0.6229978",
"0.6229978",
"0.6229978",
"0.6229978",
"0.6229978",
"0.6229978",
"0.6229978",
"0.6229978",
"0.6229978",
"0.62277836",
"0.62277836",
"0.62277836",
"0.62277836",
"0.62277836",
"0.6227783... | 0.0 | -1 |
Tests if there are any license restrictions on this asset that restrict the distribution, republication or public display of any alterations or modifications to this asset, commercial or otherwise, for any purpose. This method is intended to offer consumers a means of filtering out search results that restrict the dist... | def jLRG(YKHO):
return YKHO._payload.can_distribute_alterations() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kcWi():\n fvVL = bIQh['commercial']\n WvKQ = bIQh['modification']\n pbPh = set.intersection(WvKQ, fvVL)\n geh0 = G4JS.get(f'{l4ys}/v1/images?q=dog&license_type=commercial,modification', verify=False)\n U5Jc = qQXR.loads(geh0.text)\n for Aofo in U5Jc['results']:\n assert Aofo['license']... | [
"0.6605007",
"0.62122893",
"0.62122893",
"0.62122893",
"0.62122893",
"0.62122893",
"0.62122893",
"0.62122893",
"0.62122893",
"0.62122893",
"0.62122893",
"0.62122893",
"0.62122893",
"0.62122893",
"0.6207823",
"0.6207823",
"0.6207823",
"0.6207823",
"0.6207823",
"0.6207823",
"0.... | 0.0 | -1 |
Tests if there are any license restrictions on this asset that restrict the distribution, republication or public display of this asset as an inclusion within other content or composition, commercial or otherwise, for any purpose, including restrictions upon the distribution or license of the resulting composition. Thi... | def Euj8(YKHO):
return YKHO._payload.can_distribute_compositions() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kcWi():\n fvVL = bIQh['commercial']\n WvKQ = bIQh['modification']\n pbPh = set.intersection(WvKQ, fvVL)\n geh0 = G4JS.get(f'{l4ys}/v1/images?q=dog&license_type=commercial,modification', verify=False)\n U5Jc = qQXR.loads(geh0.text)\n for Aofo in U5Jc['results']:\n assert Aofo['license']... | [
"0.66095394",
"0.6285994",
"0.60382193",
"0.59424686",
"0.59424686",
"0.59424686",
"0.59424686",
"0.59424686",
"0.59424686",
"0.59424686",
"0.59424686",
"0.59424686",
"0.59424686",
"0.59424686",
"0.59424686",
"0.59424686",
"0.5936542",
"0.5936542",
"0.5936542",
"0.5936542",
"... | 0.0 | -1 |
Gets the ``Resource Id`` of the source of this asset. The source is the original owner of the copyright of this asset and may differ from the creator of this asset. The source for a published book written by Margaret Mitchell would be Macmillan. The source for an unpublished painting by Arthur Goodwin would be Arthur G... | def cP1Y(YKHO):
return YKHO._payload.get_source_id() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbPQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_resource_id')",
"def hbPQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_resource_id')",
"def hbPQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'source_resource_id')",
"def hbPQ(YKHO) -> h8nf[qe4Y.In... | [
"0.68646884",
"0.68646884",
"0.68646884",
"0.68646884",
"0.68646884",
"0.68646884",
"0.68646884",
"0.68646884",
"0.68646884",
"0.68646884",
"0.68646884",
"0.68646884",
"0.68646884",
"0.6642016",
"0.659136",
"0.65046674",
"0.65046674",
"0.65046674",
"0.65046674",
"0.65046674",
... | 0.59993076 | 44 |
Gets the ``Resource`` of the source of this asset. The source is the original owner of the copyright of this asset and may differ from the creator of this asset. The source for a published book written by Margaret Mitchell would be Macmillan. The source for an unpublished painting by Arthur Goodwin would be Arthur Good... | def wVsX(YKHO):
return YKHO._payload.get_source() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v0Pj(YKHO, O0al, qaEx, JZXy):\n bNKA, qaEx = YKHO.project_for(O0al, qaEx, JZXy)\n return (bNKA, Kt_M.path_to_resource(bNKA, qaEx))",
"def JZXy(YKHO):\n F4nI = YKHO.json_dict.get('source', None)\n if F4nI is not None:\n return LSFv(F4nI, YKHO.prescience)\n else:\n return None",
... | [
"0.658139",
"0.6473733",
"0.6401714",
"0.6401714",
"0.6391205",
"0.6315556",
"0.62918437",
"0.62918437",
"0.62815356",
"0.6251487",
"0.6251487",
"0.6251487",
"0.6251487",
"0.6251487",
"0.6251487",
"0.6251487",
"0.6251487",
"0.6251487",
"0.6251487",
"0.6251487",
"0.6251487",
... | 0.5911391 | 79 |
Gets the resource ``Ids`` representing the source of this asset in order from the most recent provider to the originating source. | def EYGk(YKHO):
return YKHO._payload.get_provider_link_ids() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XO2c(YKHO):\n N5z6 = nNXP.get_crds_server()\n c4hO = []\n for YKiD in YKHO.instruments:\n y__M = YKHO.datasets_since(YKiD)\n if y__M:\n RKD7.info('Dumping dataset parameters for', repr(YKiD), 'from CRDS server at', repr(N5z6), 'since', repr(y__M))\n else:\n R... | [
"0.7421316",
"0.7092585",
"0.7092585",
"0.6770206",
"0.6744295",
"0.6744295",
"0.6744295",
"0.6665256",
"0.66007155",
"0.6572529",
"0.65359837",
"0.65318924",
"0.64896196",
"0.6483916",
"0.64219373",
"0.6389",
"0.63664025",
"0.63533616",
"0.63447684",
"0.6340703",
"0.6340703"... | 0.0 | -1 |
Gets the created date of this asset, which is generally not related to when the object representing the asset was created. The date returned may indicate that not much is known. | def uVt6(YKHO):
return YKHO._payload.get_created_date() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0GP(YKHO):\n return YKHO._created_date",
"def a0GP(YKHO):\n return YKHO._created_date",
"def a0GP(YKHO):\n return YKHO._created_date",
"def a0GP(YKHO):\n return YKHO._created_date",
"def a0GP(YKHO):\n return YKHO._created_date",
"def a0GP(YKHO) -> qcWV:\n return YKHO._created_date"... | [
"0.80579835",
"0.80579835",
"0.80579835",
"0.80579835",
"0.80579835",
"0.7991624",
"0.7794936",
"0.7791697",
"0.7791697",
"0.77862525",
"0.77862525",
"0.77862525",
"0.77862525",
"0.76115775",
"0.75932866",
"0.75720257",
"0.7550474",
"0.74973935",
"0.7490928",
"0.74668396",
"0... | 0.78334343 | 6 |
Gets the published date of this asset. Unpublished assets have no published date. A published asset has a date available, however the date returned may indicate that not much is known. | def kIAV(YKHO):
return YKHO._payload.get_published_date() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bJNE(YKHO):\n if not YKHO.can_see_published:\n return None\n _c1T = YKHO.context.EffectiveDate()\n if not _c1T or _c1T == 'None':\n return None\n return cJ1g(_c1T)",
"def jEGC(YKHO):\n return YKHO._date_published",
"def n9bz(YKHO):\n return YKHO.__publish_date",
"def s8Ll(... | [
"0.7438305",
"0.742556",
"0.73822004",
"0.68149686",
"0.68149686",
"0.6705397",
"0.6699381",
"0.65351933",
"0.6507114",
"0.64233625",
"0.6389154",
"0.6380918",
"0.6326395",
"0.62701744",
"0.61489904",
"0.61418563",
"0.6138901",
"0.6124041",
"0.6074137",
"0.6064863",
"0.605981... | 0.7591598 | 0 |
Gets the content of this asset. | def kBeI(YKHO):
return mE1c(YKHO._payload.get_asset_contents(), YKHO._config_map) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EPt3(YKHO):\n return YKHO.content",
"def EPt3(YKHO):\n return YKHO.__data",
"def EPt3(YKHO):\n return YKHO.__content",
"def EPt3(YKHO):\n return YKHO.__content",
"def v0Aw(YKHO):\n return YKHO._payload.get_asset()",
"def EPt3(YKHO):\n return YKHO.content",
"def EPt3(YKHO):\n re... | [
"0.78174603",
"0.779797",
"0.77792203",
"0.77792203",
"0.77676487",
"0.77415806",
"0.7720337",
"0.76922476",
"0.7614579",
"0.7614579",
"0.7614579",
"0.7614579",
"0.7600122",
"0.75954854",
"0.75224996",
"0.75052303",
"0.75018793",
"0.7495624",
"0.7479154",
"0.7479154",
"0.7479... | 0.73883307 | 23 |
Gets the ``Composition`` ``Id`` corresponding to this asset. | def NsI3(YKHO):
return YKHO._payload.get_composition_id() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tGYK(YKHO):\n return YKHO._payload.get_asset_id()",
"def J5tT(YKHO):\n return YKHO._assetId.get_waarde()",
"def J5tT(YKHO):\n return YKHO._assetId.get_waarde()",
"def pDQF(YKHO):\n with iHz4.TRN as LbEQ:\n Pe9W = 'SELECT composition_id\\n FROM labcontrol.composition... | [
"0.7513194",
"0.71496207",
"0.71496207",
"0.63188493",
"0.63034195",
"0.63034195",
"0.63034195",
"0.63034195",
"0.63034195",
"0.63034195",
"0.6220374",
"0.6216621",
"0.6175656",
"0.6175143",
"0.6165181",
"0.6165181",
"0.6165181",
"0.61641103",
"0.61641103",
"0.61641103",
"0.6... | 0.74904674 | 1 |
Sets the published date. | def OPOz(YKHO, FO9w=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwHs(YKHO):\n if YKHO.is_published() and YKHO.date_published is None:\n YKHO.date_published = rIAI.now()",
"def FO9w(YKHO, FO9w):\n YKHO._published_date = FO9w",
"def jEGC(YKHO, jEGC):\n YKHO._date_published = jEGC",
"def saLu(YKHO, hkS8):\n _c1T = BOAD(I3lj(hkS8), YKHO.date_format)\n ... | [
"0.86994976",
"0.85257995",
"0.83893174",
"0.8319375",
"0.78299004",
"0.77673644",
"0.76560515",
"0.7594692",
"0.74476177",
"0.74123114",
"0.72275025",
"0.7204256",
"0.70573306",
"0.7051243",
"0.7034182",
"0.6977907",
"0.6941202",
"0.6935152",
"0.69343585",
"0.6933856",
"0.68... | 0.90573955 | 0 |
Gets the next ``Asset`` in this list. | def DyZ5(YKHO):
return next(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ThEi(YKHO):\n return next(YKHO)",
"def WBna(YKHO):\n try:\n ZfUD = YKHO.items[YKHO.index]\n except IndexError:\n YKHO.index = 0\n return None\n YKHO.index += 1\n if YKHO.index >= len(YKHO.items):\n YKHO.index = 0\n return ZfUD",
"def next(YKHO):\n return YKH... | [
"0.75788444",
"0.6801651",
"0.66090256",
"0.6606211",
"0.65085167",
"0.64663804",
"0.6435215",
"0.6221986",
"0.6208352",
"0.61958385",
"0.6191807",
"0.61457795",
"0.61389583",
"0.61333853",
"0.61333853",
"0.6112804",
"0.61121196",
"0.6112002",
"0.61014986",
"0.6087759",
"0.60... | 0.82886916 | 0 |
Gets the ``Asset Id`` corresponding to this content. | def tGYK(YKHO):
return YKHO._payload.get_asset_id() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J5tT(YKHO):\n return YKHO._assetId.get_waarde()",
"def J5tT(YKHO):\n return YKHO._assetId.get_waarde()",
"def OuuU(YKHO):\n return YKHO._asset['id']",
"def uY1h(YKHO) -> h8nf[str]:\n if not YKHO.did:\n return None\n return kkgs(Ijgy(YKHO.did))",
"def LCrd(YKHO, TkXF: RESTManagemen... | [
"0.8278256",
"0.8278256",
"0.76159596",
"0.71847236",
"0.70850813",
"0.70480007",
"0.6970742",
"0.6801331",
"0.67287076",
"0.6690331",
"0.6592591",
"0.65550256",
"0.6518655",
"0.65182155",
"0.65182155",
"0.65182155",
"0.6515975",
"0.6515975",
"0.6515975",
"0.6515975",
"0.6515... | 0.8749583 | 0 |
Gets the ``Asset`` corresponding to this content. | def v0Aw(YKHO):
return YKHO._payload.get_asset() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v0Aw(YKHO):\n import predix.data.asset\n IbHI = D1Hb.data.asset.Asset()\n return IbHI",
"def v0Aw():\n return nNXP.Session.get('AVALON_ASSET', None)",
"def v5wy(YKHO, piqx):\n IbHI = YKHO._assets.get(piqx, None)\n if isinstance(IbHI, dv6U):\n return IbHI\n return dv6U({})",
"d... | [
"0.8096311",
"0.74230546",
"0.73908377",
"0.7080994",
"0.70668375",
"0.701095",
"0.6930167",
"0.68681306",
"0.6823976",
"0.68227315",
"0.6787885",
"0.6715414",
"0.66473216",
"0.6596639",
"0.6477531",
"0.6466311",
"0.6451409",
"0.6449673",
"0.6403445",
"0.637928",
"0.6377462",... | 0.8313369 | 0 |
Tests if a data length is available. | def XvMV(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AczZ(YKHO):\n return YKHO._length != None",
"def dM3Q(nPrm: Union[Sequence, Iterable]) -> bool:\n try:\n len(nPrm)\n return True\n except (TypeError, NotImplementedError):\n return False",
"def LUSK(YKHO):\n return YKHO.get_size() > 0",
"def SGS5(JyoU: DataLoader) -> bool... | [
"0.7675259",
"0.74010175",
"0.7381595",
"0.7363958",
"0.7302082",
"0.7299203",
"0.7269077",
"0.7234979",
"0.7210778",
"0.71185046",
"0.70645773",
"0.6981891",
"0.6981891",
"0.6913365",
"0.6856192",
"0.6839833",
"0.6793986",
"0.6781673",
"0.67787737",
"0.67787737",
"0.6775924"... | 0.8363156 | 0 |
Gets the length of the data represented by this content in bytes. | def S9FJ(YKHO):
raise bfHs() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mgq9(YKHO):\n return YKHO.length()",
"def j8Af(YKHO):\n return YKHO._data_len",
"def u54L(YKHO):\n return YKHO.data.length()",
"def OZpQ(YKHO):\n return len(YKHO._pack_data())",
"def u54L(YKHO):\n return len(YKHO.to_bytes())",
"def jiw9(YKHO, nPrm=None):\n return YKHO._numbytes",
... | [
"0.82243615",
"0.81195605",
"0.79994005",
"0.79173815",
"0.7912159",
"0.78747374",
"0.7842032",
"0.78404266",
"0.78364676",
"0.77764153",
"0.7756888",
"0.7755288",
"0.7737119",
"0.77192134",
"0.77063525",
"0.770274",
"0.7640605",
"0.76333016",
"0.75587815",
"0.7546307",
"0.75... | 0.71492374 | 94 |
Gets the URL associated with this content for webbased retrieval. | def hKhs(YKHO):
return CRqJ(YKHO._payload.get_url(), YKHO._config_map) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bD7m(YKHO):\n return YKHO.content.url",
"def hKhs(YKHO):\n return YKHO.url",
"def hKhs(YKHO):\n return YKHO.url",
"def FvYA(YKHO):\n return YKHO.url",
"def hKhs(YKHO):\n return YKHO.__url",
"def hKhs(YKHO) -> str:\n return YKHO.__url",
"def hKhs(YKHO):\n return YKHO.url",
"de... | [
"0.8606806",
"0.8440166",
"0.8440166",
"0.84317577",
"0.8429082",
"0.84034",
"0.83835375",
"0.83353674",
"0.8298029",
"0.82952803",
"0.82774174",
"0.82774174",
"0.82774174",
"0.82774174",
"0.82774174",
"0.82774174",
"0.82774174",
"0.82774174",
"0.82774174",
"0.82774174",
"0.8... | 0.0 | -1 |
Gets the next ``AssetContent`` in this list. | def ThEi(YKHO):
return next(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DyZ5(YKHO):\n return next(YKHO)",
"def kBiT(YKHO, exwG=None):\n if exwG is None:\n raise Mw1j()\n if not isinstance(exwG, int):\n raise lhyT()\n EXbv = YKHO._payload_list.get_next_asset_contents(exwG)\n S06t = []\n for zdiP in EXbv:\n if zdiP.has_url() and 'amazonaws.co... | [
"0.7663334",
"0.65336156",
"0.6256383",
"0.6141818",
"0.6123965",
"0.6070931",
"0.598513",
"0.59087443",
"0.5894047",
"0.5849718",
"0.5842748",
"0.5784469",
"0.5784469",
"0.57604814",
"0.5737607",
"0.57284015",
"0.5725205",
"0.57193226",
"0.57096803",
"0.5644664",
"0.56435955... | 0.8742136 | 0 |
Gets the next set of ``AssetContents`` in this list which must be less than or equal to the return from ``available()``. | def kBiT(YKHO, exwG=None):
if exwG is None:
raise Mw1j()
if not isinstance(exwG, int):
raise lhyT()
EXbv = YKHO._payload_list.get_next_asset_contents(exwG)
S06t = []
for zdiP in EXbv:
if zdiP.has_url() and 'amazonaws.com' in zdiP.get_url():
S06t.append(RWb0(zdiP, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ThEi(YKHO):\n return next(YKHO)",
"def DyZ5(YKHO):\n return next(YKHO)",
"def R_t6(YKHO, exwG=None):\n return YKHO._get_next_n(exwG)",
"def min(YKHO):\n ZfUD = next(YKHO)\n for YRbF in YKHO:\n if YRbF < ZfUD:\n ZfUD = YRbF\n return ZfUD",
"def T7C_(YKHO, exwG):\n ... | [
"0.65167403",
"0.630606",
"0.59052926",
"0.5406147",
"0.53890455",
"0.5356852",
"0.531857",
"0.53103",
"0.5282472",
"0.52775675",
"0.5231551",
"0.5220001",
"0.51740754",
"0.513246",
"0.5130546",
"0.51141787",
"0.50897235",
"0.5088748",
"0.5088302",
"0.50808513",
"0.504996",
... | 0.5998667 | 2 |
Gets the next ``Repository`` in this list. | def ni2a(YKHO):
return next(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPDE(YKHO, exwG=None):\n return YKHO._get_next_n(exwG)",
"def JvFA(YKHO, mWFP):\n return YKHO.repositories.get(mWFP)",
"def _xs3(YKHO, bFeS):\n return YKHO._repositories.get(bFeS, None)",
"def _xs3(YKHO) -> Iz_c:\n return _xs3(YKHO.repository_url)",
"def ZfQb(YKHO):\n return YKHO.__next"... | [
"0.6686443",
"0.6294342",
"0.6248344",
"0.62449193",
"0.6202622",
"0.61790484",
"0.6156262",
"0.6058087",
"0.59858644",
"0.59719056",
"0.5970787",
"0.59593654",
"0.59370553",
"0.5936589",
"0.59330386",
"0.58758533",
"0.5864626",
"0.5855324",
"0.58400846",
"0.58392453",
"0.581... | 0.8281547 | 0 |
Gets the next set of ``Repository`` elements in this list which must be less than or equal to the return from ``available()``. | def YPDE(YKHO, exwG=None):
return YKHO._get_next_n(exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ni2a(YKHO):\n return next(YKHO)",
"def Xxa_(YKHO, exwG=None):\n if exwG > YKHO.available():\n raise bfHs('not enough elements available in this list')\n else:\n h2v_ = []\n WKvO = 0\n while WKvO < exwG:\n try:\n h2v_.append(YKHO.next())\n ... | [
"0.67983174",
"0.5489418",
"0.54573673",
"0.5443318",
"0.54137766",
"0.5403397",
"0.5355561",
"0.5333684",
"0.533245",
"0.53282213",
"0.5322379",
"0.5320153",
"0.53184724",
"0.5273296",
"0.5265758",
"0.52359027",
"0.5198194",
"0.5187195",
"0.5183008",
"0.51705456",
"0.5163203... | 0.6607002 | 1 |
Initialize instance of a MaxPool2D layer. | def FIMM(YKHO, EcAO, FEri, dvgN='SAME'):
YKHO.ksize = [1] + list(EcAO) + [1]
YKHO.strides = [1] + list(FEri) + [1]
YKHO.padding = dvgN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n super(n3Kt, YKHO).__init__()\n YKHO.max_pool = U78l.MaxPool2d(kernel_size=2, stride=2)",
"def FIMM(YKHO, EcVT, aOex, FEri, dvgN, cb_Q=None):\n super(rKMH, YKHO).__init__(EcVT, aOex, FEri, dvgN, cb_Q)\n YKHO.shape = (EcVT.shape[0], YKHO._out_height, YKHO._out_width, EcVT.shape[3])\n ... | [
"0.7275323",
"0.71780133",
"0.71276855",
"0.70994955",
"0.7021825",
"0.67575186",
"0.6644434",
"0.65374756",
"0.65089375",
"0.64535683",
"0.6445747",
"0.6445747",
"0.6445747",
"0.6445747",
"0.6445747",
"0.63916504",
"0.6388034",
"0.63170725",
"0.6298843",
"0.6256055",
"0.6251... | 0.0 | -1 |
Create and instance of a variational Conv2D layer. | def FIMM(YKHO, KUnM, Ot1W, FEri=(1, 1), dvgN='SAME', ltwO='glorot', L1Lp=False, e5sz=True):
YKHO.filters = KUnM
YKHO.kernel_size = Ot1W
YKHO.strides = [1] + list(FEri) + [1]
YKHO.padding = dvgN
YKHO.use_bias = e5sz
YKHO.prior_std0 = ltwO
YKHO.learn_prior = L1Lp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, DYuh, tYiq, Ot1W, _0fC=1, dvgN=0, ivFb=1, moMn=1, oug5=True, z5sU=True):\n super(Y051, YKHO).__init__()\n YKHO.in_channels = DYuh\n YKHO.out_channels = tYiq\n YKHO.bias = oug5\n YKHO.kernel_size = Ot1W\n YKHO.padding = dvgN\n YKHO.stride = _0fC\n YKHO.is_variational = z5sU\n ... | [
"0.75511706",
"0.671791",
"0.6543289",
"0.65315247",
"0.64898676",
"0.6487692",
"0.6387003",
"0.63417196",
"0.63330674",
"0.6305214",
"0.62996745",
"0.62992007",
"0.6263995",
"0.625984",
"0.6255288",
"0.6250736",
"0.62250763",
"0.6211731",
"0.6196538",
"0.61799115",
"0.614638... | 0.0 | -1 |
Create and instance of a variational dense layer. | def FIMM(YKHO, EDoJ, ltwO=1.0, L1Lp=False, vBWh=False, e5sz=True):
YKHO.output_dim = EDoJ
YKHO.full = vBWh
YKHO.use_bias = e5sz
YKHO.prior_std0 = ltwO
YKHO.learn_prior = L1Lp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bXaG(YKHO, VrCG, rZh3, DQUN):\n YKHO.dense_layers[rZh3] = {}\n YKHO.dense_layers[rZh3]['weights'] = oyIN.random.uniform(-0.5, 0.5, [VrCG, DQUN])\n YKHO.dense_layers[rZh3]['bias'] = oyIN.random.uniform(-0.5, 0.5, VrCG)\n YKHO.dense_layers[rZh3]['vdw'] = oyIN.zeros(VrCG)\n YKHO.dense_layers[rZh3][... | [
"0.7008456",
"0.6847148",
"0.67444587",
"0.6729526",
"0.6665483",
"0.6607074",
"0.64336395",
"0.63800436",
"0.6337252",
"0.6336772",
"0.62969524",
"0.62845325",
"0.6224509",
"0.6126142",
"0.6101308",
"0.60997117",
"0.6039837",
"0.6031022",
"0.6028903",
"0.6022306",
"0.6013415... | 0.0 | -1 |
Create and instance of a variational dense embedding layer. | def FIMM(YKHO, EDoJ, QeoX, ltwO=1.0, L1Lp=False, vBWh=False):
assert QeoX >= 2, 'Need 2 or more categories for embedding!'
YKHO.output_dim = EDoJ
YKHO.n_categories = QeoX
YKHO.full = vBWh
YKHO.prior_std0 = ltwO
YKHO.learn_prior = L1Lp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bXaG(YKHO, VrCG, rZh3, DQUN):\n YKHO.dense_layers[rZh3] = {}\n YKHO.dense_layers[rZh3]['weights'] = oyIN.random.uniform(-0.5, 0.5, [VrCG, DQUN])\n YKHO.dense_layers[rZh3]['bias'] = oyIN.random.uniform(-0.5, 0.5, VrCG)\n YKHO.dense_layers[rZh3]['vdw'] = oyIN.zeros(VrCG)\n YKHO.dense_layers[rZh3][... | [
"0.6625248",
"0.64851165",
"0.6347407",
"0.6326084",
"0.63209563",
"0.6260387",
"0.6174466",
"0.6135856",
"0.61325425",
"0.6124199",
"0.6109201",
"0.6082076",
"0.6066054",
"0.6055967",
"0.60001045",
"0.59895957",
"0.59827614",
"0.59812695",
"0.5974954",
"0.5972859",
"0.595737... | 0.0 | -1 |
Instantiate a DenseNCP layer. | def FIMM(YKHO, EDoJ, ltwO=1.0, L1Lp=False, e5sz=True, fSL4=0.0, Re7N=1.0):
super().__init__(output_dim=EDoJ, prior_std=ltwO, learn_prior=L1Lp, full=False, use_bias=e5sz)
YKHO.f_prior = ZylS.distributions.Normal(fSL4, Re7N) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XDlP(VGnc, DCIk, w9Yh=fmAV.sigmoid, **YSA3):\n wFDu = uDsg(VGnc, DCIk.shape[1], w9Yh, **YSA3)\n wFDu.weight = DCIk.copy()\n return wFDu",
"def bXaG(YKHO, VrCG, rZh3, DQUN):\n YKHO.dense_layers[rZh3] = {}\n YKHO.dense_layers[rZh3]['weights'] = oyIN.random.uniform(-0.5, 0.5, [VrCG, DQUN])\n Y... | [
"0.6693319",
"0.6576203",
"0.6478873",
"0.6421178",
"0.6372024",
"0.6320742",
"0.6316177",
"0.630748",
"0.62596357",
"0.6256432",
"0.6256056",
"0.62519616",
"0.6244155",
"0.6236518",
"0.623646",
"0.62322265",
"0.6226545",
"0.6222045",
"0.621005",
"0.6199475",
"0.61913764",
... | 0.0 | -1 |
Create and instance of a variational Conv2D layer. | def FIMM(YKHO, KUnM, Ot1W, FEri=(1, 1), dvgN='SAME', hnfo=0.0, UAp8=0.0, e5sz=True, PfZw='glorot_trunc'):
YKHO.filters = KUnM
YKHO.kernel_size = Ot1W
YKHO.strides = [1] + list(FEri) + [1]
YKHO.padding = dvgN
YKHO.l1 = hnfo
YKHO.l2 = UAp8
YKHO.use_bias = e5sz
YKHO.init_fn = PfZw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, DYuh, tYiq, Ot1W, _0fC=1, dvgN=0, ivFb=1, moMn=1, oug5=True, z5sU=True):\n super(Y051, YKHO).__init__()\n YKHO.in_channels = DYuh\n YKHO.out_channels = tYiq\n YKHO.bias = oug5\n YKHO.kernel_size = Ot1W\n YKHO.padding = dvgN\n YKHO.stride = _0fC\n YKHO.is_variational = z5sU\n ... | [
"0.7551409",
"0.6716874",
"0.6542701",
"0.6530239",
"0.648968",
"0.64872307",
"0.6386553",
"0.6341346",
"0.6332309",
"0.6304822",
"0.6300104",
"0.6299373",
"0.6263708",
"0.6260034",
"0.6255599",
"0.6250786",
"0.62241954",
"0.6211745",
"0.6196179",
"0.61792755",
"0.6147471",
... | 0.0 | -1 |
Converts euler angles to rotation matrix. | def XDEc(epBp, LVAh, WKvO):
Ep8u = ZylS.shape(epBp)[0]
exwG = 1
epBp = ZylS.clip_by_value(epBp, -oyIN.pi, oyIN.pi)
LVAh = ZylS.clip_by_value(LVAh, -oyIN.pi, oyIN.pi)
WKvO = ZylS.clip_by_value(WKvO, -oyIN.pi, oyIN.pi)
epBp = ZylS.expand_dims(ZylS.expand_dims(epBp, -1), -1)
LVAh = ZylS.expand_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OJzE(q7In):\n return A3Vt.from_euler('xyz', q7In).as_matrix()",
"def yf8C(YylR):\n xTkQ, H2HG, rKSe = (-YylR[0], -YylR[1], -YylR[2])\n Zl7o = oyIN.array([[1, 0, 0], [0, epAf.cos(xTkQ), -epAf.sin(xTkQ)], [0, epAf.sin(xTkQ), epAf.cos(xTkQ)]])\n xEPK = oyIN.array([[epAf.cos(H2HG), 0, epAf.sin(H2HG)]... | [
"0.8463581",
"0.8416458",
"0.8071421",
"0.79117197",
"0.78699076",
"0.76263964",
"0.7595121",
"0.7541297",
"0.75058925",
"0.738944",
"0.738293",
"0.7362804",
"0.73059136",
"0.7292886",
"0.7239065",
"0.718018",
"0.7144107",
"0.7139404",
"0.7121914",
"0.706197",
"0.704084",
"... | 0.0 | -1 |
Video streaming generator function. | def G8mk(Emd4, yDvq):
while True:
f4IJ = yDvq.get_frame()
yield (b'--frame\r\nContent-Type: image/jpeg\r\n\r\n' + f4IJ + b'\r\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LNm5(R72Z):\n e5kH = False\n while True:\n if not e5kH:\n yield b'<meta http-equiv=\"refresh\" content=\"300\">\\n'\n e5kH = True\n else:\n tO9_ = R72Z.poll()\n if tO9_ is not None:\n yield (b'--frame\\r\\n' + b'Content-Type: image/... | [
"0.72318304",
"0.72217125",
"0.7202193",
"0.7199314",
"0.71750987",
"0.70998365",
"0.70878965",
"0.7068008",
"0.7030866",
"0.69874614",
"0.69693893",
"0.69512975",
"0.69257456",
"0.6923195",
"0.6923195",
"0.690304",
"0.6903035",
"0.6878873",
"0.68674815",
"0.6864852",
"0.6840... | 0.0 | -1 |
Return True if nested dicts d1 and d2 are equal. | def eYCM(AjzU, _sQW):
for G1Hx in AjzU:
if G1Hx not in _sQW:
return False
elif isinstance(AjzU[G1Hx], dict):
if not eYCM(AjzU[G1Hx], _sQW[G1Hx]):
return False
else:
gnZc = AjzU[G1Hx].replace("u'", "'")
Po7q = _sQW[G1Hx].replace(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MpCv(AjzU, _sQW):\n if not isinstance(AjzU, dict):\n return False\n if not isinstance(_sQW, dict):\n return False\n if not Zik9(list(AjzU.keys()), list(_sQW.keys())):\n return False\n for G1Hx in AjzU:\n if isinstance(AjzU[G1Hx], type(_sQW[G1Hx])):\n return Fa... | [
"0.83181113",
"0.8159504",
"0.7975356",
"0.78716373",
"0.7786598",
"0.7784577",
"0.7705666",
"0.7653743",
"0.7614734",
"0.7477687",
"0.743176",
"0.74248695",
"0.7369692",
"0.73684865",
"0.73033583",
"0.7298097",
"0.72870755",
"0.7270631",
"0.72687477",
"0.7221029",
"0.7161855... | 0.796933 | 3 |
Assert that URLs without discogs.com as host produce ValidationErrors. | def HT9M(YKHO):
re2s = ['https://www.google.com', 'www.google.com', 'google.com', 'invalid/discogs.com']
for bD7m in re2s:
with YKHO.subTest(url=bD7m):
with YKHO.assertRaises(sUXu) as Bcwd:
YKHO.validator(bD7m)
YKHO.assertEqual(Bcwd.exception.message, 'Bitte nur A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YycQ(YKHO):\n YKHO.assertEqual(BjOQ(['http://???']), [('http://???', None, \"Invalid URL 'http://???': No host supplied\")])",
"def Zngb(YKHO):\n pzVU = ['https://www.discogs.com/release/4126', 'www.discogs.com/release/4126', 'discogs.com/release/4126', 'https://www.discogs.com/release/4126-Led-Zeppeli... | [
"0.79708225",
"0.768816",
"0.768816",
"0.75072724",
"0.74841565",
"0.74673235",
"0.7351189",
"0.7343504",
"0.7340666",
"0.72651446",
"0.71683264",
"0.7133514",
"0.7084278",
"0.7051421",
"0.69431615",
"0.68713975",
"0.6840914",
"0.6829745",
"0.6807785",
"0.6804311",
"0.6803598... | 0.7937565 | 1 |
Assert that DNB URLs pass as valid. | def Zngb(YKHO):
pzVU = ['http://d-nb.info/gnd/11863996X', 'https://d-nb.info/gnd/11863996X', 'https://portal.dnb.de/opac.htm?method=simpleSearch&cqlMode=true&query=nid%3D11863996X']
for bD7m in pzVU:
with YKHO.subTest(url=bD7m):
with YKHO.assertNotRaises(sUXu):
YKHO.validator... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zngb(YKHO):\n pzVU = ['https://www.discogs.com/release/4126', 'www.discogs.com/release/4126', 'discogs.com/release/4126', 'https://www.discogs.com/release/4126-Led-Zeppelin-Led-Zeppelin', 'www.discogs.com/release/4126-Led-Zeppelin-Led-Zeppelin', 'discogs.com/release/4126-Led-Zeppelin-Led-Zeppelin', 'https:/... | [
"0.77893305",
"0.77893305",
"0.76635593",
"0.76586443",
"0.7351511",
"0.7269956",
"0.7025986",
"0.70218277",
"0.6989715",
"0.698233",
"0.69104344",
"0.6899252",
"0.68834317",
"0.6870537",
"0.68699586",
"0.6851255",
"0.66125464",
"0.6604569",
"0.66004723",
"0.65616316",
"0.655... | 0.8328398 | 0 |
Check if a discord channel is private | def F0OH(YwkQ):
return isinstance(YwkQ, ZOrr.abc.PrivateChannel) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zG7A(YKHO, iF9r, F0OH, aEqx):\n print('Test is Slack channel private - {}\\n'.format(aEqx))\n lP3X = {'id': 'C0EAQDV4Z', 'name': 'test-channel', 'is_channel': iF9r, 'is_private': F0OH}\n _KKP = fDvO('fake_api_key')\n _KKP.set_channel(lP3X)\n assert _KKP.is_channel_private() == aEqx",
"def XSsW... | [
"0.72729605",
"0.7212112",
"0.7112632",
"0.71105856",
"0.6857562",
"0.6837456",
"0.6828343",
"0.67730325",
"0.6767853",
"0.67320746",
"0.66875947",
"0.65592706",
"0.6456142",
"0.64383614",
"0.64383614",
"0.64088434",
"0.64088434",
"0.64088434",
"0.63903415",
"0.63730544",
"0.... | 0.85634136 | 0 |
Check if user has an admin role defined in our settings | def yxKr(Tf5Y):
for Mkmy in Tf5Y:
if Mkmy.id in gCuF.admin_roles:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Kb1(YKHO):\n return YKHO.role == mv1M.ROLE_ADMINISTRATOR",
"def _Kb1():\n return SAs9.patrole.rbac_test_role == SAs9.identity.admin_role",
"def _Kb1(YKHO):\n return YKHO.role == YKHO.IS_ADMIN",
"def _Kb1(OaeV):\n for LmAn in OaeV.author.roles:\n if LmAn.id == 294283611870461953:\n ... | [
"0.7917248",
"0.79008365",
"0.78994346",
"0.78758925",
"0.7872424",
"0.7860716",
"0.7848459",
"0.7831441",
"0.7770565",
"0.77680427",
"0.7749499",
"0.7746583",
"0.7729004",
"0.77018505",
"0.7624926",
"0.7619503",
"0.7614231",
"0.7613191",
"0.7595151",
"0.75575143",
"0.7556280... | 0.77627784 | 10 |
[Regression Test] Test the fail of login with 'admin' / 'bad_password' | def XugT(YKHO):
Ylbp = YKHO.ru_obj.authenticate(YKHO.db, 'admin', 'bad_password', {})
YKHO.assertEqual(Ylbp, False, "'admin' / 'bad_password' login must fail.") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N1QD(YKHO):\n Ylbp = YKHO.ru_obj.authenticate(YKHO.db, 'demo', 'bad_password', {})\n YKHO.assertEqual(Ylbp, False, \"'demo' / 'bad_password' login must fail.\")",
"def JEOk():\n rJYx('student.test@unsw.edu.au', '!@678hello', 'Student', 'Test')\n with trZe.raises(DQrD):\n BvBh('student.test... | [
"0.82383007",
"0.8076944",
"0.80731666",
"0.8051193",
"0.8000272",
"0.79939127",
"0.7982273",
"0.7965184",
"0.7956163",
"0.7948836",
"0.79428405",
"0.79157233",
"0.79110503",
"0.78952146",
"0.78936356",
"0.78839725",
"0.7873572",
"0.7871246",
"0.78681177",
"0.785316",
"0.7852... | 0.8278482 | 0 |
Decay learning rate by a factor of 0.1 every lr_decay_epoch epochs. | def eDsF(K0do, qtWj, f9Ey=0.0008, jnHZ=200):
if qtWj % jnHZ == 0 and qtWj != 0 and (qtWj > 99):
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = Lwm5['lr'] * 0.1
print('LR is set to {}'.format(Lwm5['lr']))
return K0do | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwoX(qtWj, b0Ix):\n return b0Ix / 1.1",
"def PjIb(YKHO):\n if YKHO.decay:\n YKHO.lr = YKHO.decay * YKHO.lr",
"def PjIb(qtWj):\n assert Nlk2.nn_solver in ('sgd', 'momentum', 'adam')\n if qtWj >= Nlk2.lr_decay_after_epoch:\n gxDU = Nlk2.lr_decay_after_epoch / Nlk2.floatX(qtWj) * Nlk... | [
"0.8291664",
"0.8266521",
"0.8234404",
"0.82235026",
"0.80433357",
"0.78540355",
"0.780998",
"0.7805587",
"0.7780508",
"0.7773197",
"0.7765782",
"0.7732937",
"0.7708644",
"0.76925606",
"0.76925606",
"0.76925606",
"0.7642324",
"0.7628484",
"0.76168543",
"0.7587379",
"0.7557118... | 0.6966517 | 96 |
Gets a dictionary representing the content of this class. | def MNRr(YKHO):
Csk6 = g760.OrderedDict()
Csk6[HJEE.RECORD_NAME] = YKHO.test_name
Csk6[HJEE.RECORD_CLASS] = YKHO.test_class
Csk6[HJEE.RECORD_BEGIN_TIME] = YKHO.begin_time
Csk6[HJEE.RECORD_END_TIME] = YKHO.end_time
Csk6[HJEE.RECORD_LOG_BEGIN_TIME] = YKHO.log_begin_time
Csk6[HJEE.RECORD_LOG_EN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hGN5(YKHO) -> dict:\n return YKHO._content",
"def hGN5(YKHO) -> dict:\n return YKHO._content",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n... | [
"0.8240634",
"0.8240634",
"0.80562484",
"0.80562484",
"0.80562484",
"0.80562484",
"0.80562484",
"0.80562484",
"0.80562484",
"0.80562484",
"0.80562484",
"0.80562484",
"0.80321217",
"0.7991733",
"0.79099923",
"0.78699404",
"0.78622997",
"0.7856481",
"0.7803059",
"0.77655554",
"... | 0.0 | -1 |
Converts this test record to a string in json format. | def nMY2(YKHO):
return qQXR.dumps(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def format(YKHO, AIu6):\n AIu6 = YKHO.serialize(AIu6)\n return qQXR.dumps(AIu6)",
"def IZ3T(YKHO):\n nPrm = YKHO.to_dict()\n return qQXR.dumps(nPrm)",
"def vmDR(YKHO):\n return YKHO.__str__()",
"def oD7C(YKHO, AIu6: Mapping[str, Any]):\n return YKHO.json_lib.dumps(AIu6, cls=Y4Gi)",
"def o... | [
"0.7818283",
"0.7553936",
"0.74764454",
"0.74478734",
"0.742165",
"0.74126923",
"0.74072814",
"0.74053305",
"0.74053305",
"0.74053305",
"0.74053305",
"0.74053305",
"0.74053305",
"0.74053305",
"0.74053305",
"0.74053305",
"0.74053305",
"0.74053305",
"0.74053305",
"0.74053305",
... | 0.7551738 | 2 |
Converts this test result to a string in json format. | def nMY2(YKHO):
Csk6 = g760.OrderedDict()
Csk6['ControllerInfo'] = {AIu6.controller_name: AIu6.controller_info for AIu6 in YKHO.controller_info}
Csk6['Results'] = [AIu6.to_dict() for AIu6 in YKHO.executed]
Csk6['Summary'] = YKHO.summary_dict()
Csk6['Error'] = YKHO.errors_list()
nMY2 = qQXR.dumps... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7C(YKHO):\n nPrm = nQ3j.to_dict(YKHO)\n return qQXR.dumps(nPrm)",
"def lTK0(YKHO):\n return qQXR.dumps(YKHO.results)",
"def c3ht(YKHO):\n return YKHO.result",
"def nMY2(YKHO):\n return qQXR.dumps(YKHO.to_dict())",
"def IZ3T(YKHO):\n nPrm = YKHO.to_dict()\n return qQXR.dumps(nPrm)... | [
"0.8120456",
"0.77285945",
"0.766273",
"0.7590815",
"0.7511101",
"0.74937415",
"0.7469343",
"0.7435349",
"0.74097353",
"0.7407223",
"0.7384447",
"0.7366528",
"0.73498654",
"0.734198",
"0.73381597",
"0.73381597",
"0.73381597",
"0.732452",
"0.73158276",
"0.73158276",
"0.7315827... | 0.7232879 | 82 |
Check supplied string is an email address | def q76_(D3lj):
if not jneN.match(D3lj):
raise ValueError("Email doesn't match pattern: user@domain") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gqOy(KCHu):\n return bool(abGk.match(KCHu))",
"def Bt7w(UTX6):\n UTX6 = Qsf5(UTX6)\n if '@' not in UTX6:\n return False\n i9qL, Slw0 = UTX6.rsplit('@', 1)\n return XY7k.search(Slw0) is not None and lUx9.search(i9qL) is not None",
"def QLqX(ombM):\n if '@' not in ombM:\n rais... | [
"0.8570061",
"0.84293175",
"0.82933414",
"0.82693255",
"0.8251473",
"0.8244576",
"0.82148963",
"0.81803757",
"0.8147219",
"0.8127151",
"0.8056349",
"0.804049",
"0.80201155",
"0.79804903",
"0.79741114",
"0.7957935",
"0.79314405",
"0.7930896",
"0.7928882",
"0.7916717",
"0.79083... | 0.7728331 | 39 |
Get maximum value. Max value (integer) | def qQji(YKHO):
return YKHO.maximum | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def max(YKHO) -> int:\n return qe4Y.get(YKHO, 'max')",
"def max(YKHO) -> int:\n return qe4Y.get(YKHO, 'max')",
"def qfB5(YKHO):\n return YKHO.maxi",
"def qfB5(YKHO):\n return YKHO.max",
"def ZWqN(YKHO):\n return YKHO._maximum",
"def qfB5(YKHO):\n return YKHO.value['Max']",
"def qfB5(Y... | [
"0.85569364",
"0.85569364",
"0.85282105",
"0.8449911",
"0.8433494",
"0.8390575",
"0.8382445",
"0.8381261",
"0.8381261",
"0.83566624",
"0.83566624",
"0.8317473",
"0.8317473",
"0.8317247",
"0.8314481",
"0.8249027",
"0.8187408",
"0.8178207",
"0.81777096",
"0.8177706",
"0.8166337... | 0.8314624 | 14 |
Retrieves the current IAM policy data for a Dataproc cluster. example ```python import pulumi import pulumi_gcp as gcp policy = gcp.dataproc.get_cluster_iam_policy(cluster=google_dataproc_cluster["cluster"]["name"], region="uscentral1") ``` | def Gw1x(hKn5: Optional[str]=None, bNKA: Optional[str]=None, zn0c: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> FoQD:
rYZf = dict()
rYZf['cluster'] = hKn5
rYZf['project'] = bNKA
rYZf['region'] = zn0c
VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_defaults(), VKhi)
p5j3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ciC8(YKHO, hKn5):\n Eorv = YKHO.dao.fetch_cai_asset(hshX.iam_policy, 'dataproc.googleapis.com/Cluster', '//dataproc.googleapis.com/{}'.format(hKn5), YKHO.session)\n if Eorv:\n return Eorv\n return {}",
"def VkL0(hKn5: Optional[pulumi.Input[str]]=None, bNKA: Optional[pulumi.Input[Optional[str]... | [
"0.8606822",
"0.780286",
"0.5948579",
"0.57961476",
"0.57961476",
"0.57592666",
"0.5722277",
"0.571391",
"0.5708668",
"0.56824464",
"0.5681995",
"0.56389344",
"0.55979073",
"0.5581559",
"0.5563335",
"0.5533948",
"0.55099326",
"0.5504364",
"0.5488984",
"0.5476127",
"0.547212",... | 0.7920694 | 1 |
Retrieves the current IAM policy data for a Dataproc cluster. example ```python import pulumi import pulumi_gcp as gcp policy = gcp.dataproc.get_cluster_iam_policy(cluster=google_dataproc_cluster["cluster"]["name"], region="uscentral1") ``` | def VkL0(hKn5: Optional[pulumi.Input[str]]=None, bNKA: Optional[pulumi.Input[Optional[str]]]=None, zn0c: Optional[pulumi.Input[Optional[str]]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[tejB]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ciC8(YKHO, hKn5):\n Eorv = YKHO.dao.fetch_cai_asset(hshX.iam_policy, 'dataproc.googleapis.com/Cluster', '//dataproc.googleapis.com/{}'.format(hKn5), YKHO.session)\n if Eorv:\n return Eorv\n return {}",
"def Gw1x(hKn5: Optional[str]=None, bNKA: Optional[str]=None, zn0c: Optional[str]=None, VKh... | [
"0.8607361",
"0.7922002",
"0.594852",
"0.5795956",
"0.5795956",
"0.57595915",
"0.57225066",
"0.5714603",
"0.5706915",
"0.56831527",
"0.5681256",
"0.5638403",
"0.55984503",
"0.55789596",
"0.55626315",
"0.55327606",
"0.5511105",
"0.5502619",
"0.54875445",
"0.5475498",
"0.547114... | 0.7803615 | 2 |
Function to assign NAICS codes to each dataframe activity | def lRbj(jQ3Z):
XOzQ = rLdf.read_csv(KqNH + 'VIPNametoNAICStoFF.csv', usecols=['FF Source Category', '2012_NAICS_Code'], dtype='str').drop_duplicates()
jQ3Z = jQ3Z.merge(XOzQ, how='left', left_on=['Activity'], right_on=['FF Source Category'])
jQ3Z = jQ3Z.drop(columns='FF Source Category')
jQ3Z = jQ3Z.ap... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lRbj(jQ3Z):\n jQ3Z.loc[jQ3Z['Activity'] == 'Aquaculture', 'Sector'] = '1125'\n jQ3Z.loc[jQ3Z['Activity'] == 'Domestic', 'Sector'] = 'F01000'\n jQ3Z.loc[jQ3Z['Activity'] == 'Hydroelectric Power', 'Sector'] = '221111'\n jQ3Z.loc[jQ3Z['Activity'] == 'Industrial', 'Sector'] = '1133'\n jQ3Z = jQ3Z.ap... | [
"0.6583977",
"0.5801201",
"0.5406067",
"0.5393395",
"0.5380176",
"0.5354805",
"0.53222",
"0.532208",
"0.52601564",
"0.52283436",
"0.51925683",
"0.51844686",
"0.51687294",
"0.51550806",
"0.51480675",
"0.51467776",
"0.51442415",
"0.5134256",
"0.5124654",
"0.5107916",
"0.5099302... | 0.72139674 | 0 |
Return a queryset the order by the first name of user. | def k66M(YKHO):
SR0I = super(IUCQ, YKHO).get_queryset()
LAeX = YKHO.request.user.staff
if LAeX.get_role() in ['manager', 'teacher']:
SR0I = SR0I.filter(locations__short_name__in=LAeX.get_locations())
return SR0I.order_by('user__first_name').distinct() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n return YKHO.queryset.filter(user=YKHO.request.user).order_by('-name')",
"def k66M(YKHO):\n try:\n return mv1M.objects.order_by('username')\n except hbZn.db.utils.OperationalError:\n return None",
"def k66M(YKHO):\n return i9zE.objects.order_by('first_name')",
"def ... | [
"0.6989913",
"0.6933914",
"0.68673974",
"0.68102336",
"0.68102336",
"0.68102336",
"0.68102336",
"0.68102336",
"0.68102336",
"0.6764677",
"0.67101234",
"0.6685463",
"0.66722643",
"0.6629709",
"0.6629709",
"0.66092944",
"0.65489244",
"0.65058416",
"0.6334067",
"0.62167615",
"0.... | 0.5994637 | 27 |
Adds Symbol.contrib.ctc_loss on top of pred symbol and returns the resulting symbol | def uxU3(nvEb, tsWk, RBZG, UXqs):
UXqs = RsfQ.sym.Reshape(data=UXqs, shape=(-1,))
UXqs = RsfQ.sym.Cast(data=UXqs, dtype='int32')
return RsfQ.sym.WarpCTC(data=nvEb, label=UXqs, label_length=RBZG, input_length=tsWk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsO7(nvEb, tsWk, UXqs):\n Mkmo = RsfQ.sym.Reshape(data=nvEb, shape=(-4, tsWk, -1, 0))\n N77f = RsfQ.sym.contrib.ctc_loss(data=Mkmo, label=UXqs)\n QZCC = RsfQ.sym.MakeLoss(N77f)\n Lwlq = RsfQ.symbol.SoftmaxActivation(data=nvEb)\n w7Eo = RsfQ.sym.MakeLoss(Lwlq)\n w7Eo = RsfQ.sym.BlockGrad(w7Eo)... | [
"0.7470461",
"0.7312757",
"0.64533675",
"0.62158173",
"0.62158173",
"0.615036",
"0.6136237",
"0.6111419",
"0.60664",
"0.6060456",
"0.60527694",
"0.6032138",
"0.6020895",
"0.59970593",
"0.5934392",
"0.58956605",
"0.58629113",
"0.58523136",
"0.5848986",
"0.5848899",
"0.58485705... | 0.71675086 | 2 |
Adds Symbol.WapCTC on top of pred symbol and returns the resulting symbol | def vsO7(nvEb, tsWk, UXqs):
Mkmo = RsfQ.sym.Reshape(data=nvEb, shape=(-4, tsWk, -1, 0))
N77f = RsfQ.sym.contrib.ctc_loss(data=Mkmo, label=UXqs)
QZCC = RsfQ.sym.MakeLoss(N77f)
Lwlq = RsfQ.symbol.SoftmaxActivation(data=nvEb)
w7Eo = RsfQ.sym.MakeLoss(Lwlq)
w7Eo = RsfQ.sym.BlockGrad(w7Eo)
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uxU3(nvEb, tsWk, RBZG, UXqs):\n UXqs = RsfQ.sym.Reshape(data=UXqs, shape=(-1,))\n UXqs = RsfQ.sym.Cast(data=UXqs, dtype='int32')\n return RsfQ.sym.WarpCTC(data=nvEb, label=UXqs, label_length=RBZG, input_length=tsWk)",
"def ZYkC(nvEb, tsWk, RBZG, NKL0):\n UXqs = RsfQ.sym.Variable('label')\n if ... | [
"0.58643186",
"0.5756085",
"0.4902352",
"0.48846087",
"0.48524296",
"0.48320085",
"0.48266825",
"0.48243478",
"0.48221496",
"0.47751167",
"0.4764837",
"0.47135016",
"0.46758568",
"0.46745986",
"0.46587417",
"0.45973152",
"0.45962843",
"0.45875093",
"0.45577082",
"0.45518607",
... | 0.5577652 | 2 |
Adds CTC loss on top of pred symbol and returns the resulting symbol | def ZYkC(nvEb, tsWk, RBZG, NKL0):
UXqs = RsfQ.sym.Variable('label')
if NKL0 == 'warpctc':
print('Using WarpCTC Loss')
vg0C = uxU3(nvEb, tsWk, RBZG, UXqs)
else:
print('Using MXNet CTC Loss')
assert NKL0 == 'ctc'
vg0C = vsO7(nvEb, tsWk, UXqs)
return vg0C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsO7(nvEb, tsWk, UXqs):\n Mkmo = RsfQ.sym.Reshape(data=nvEb, shape=(-4, tsWk, -1, 0))\n N77f = RsfQ.sym.contrib.ctc_loss(data=Mkmo, label=UXqs)\n QZCC = RsfQ.sym.MakeLoss(N77f)\n Lwlq = RsfQ.symbol.SoftmaxActivation(data=nvEb)\n w7Eo = RsfQ.sym.MakeLoss(Lwlq)\n w7Eo = RsfQ.sym.BlockGrad(w7Eo)... | [
"0.72791153",
"0.67494327",
"0.63716257",
"0.62595874",
"0.6081572",
"0.60517526",
"0.583979",
"0.5820812",
"0.5820812",
"0.5820391",
"0.5819615",
"0.5792815",
"0.5787389",
"0.5743813",
"0.5719938",
"0.5714718",
"0.57011074",
"0.56986594",
"0.5693025",
"0.5665518",
"0.5657319... | 0.7314365 | 0 |
Converts a string into all lowercase and replaces spaces with hyphens | def UzIt(BWXx):
return BWXx.lower().replace(' ', '-').replace("'", '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MDej(KCHu):\n if KCHu:\n KCHu = A7fK(KCHu).replace('_', '-')\n return KCHu",
"def eIIt(vIwR):\n return vIwR.replace(' ', '-').replace('\\n', '-').replace('.', '').replace(',', '').lower()",
"def eIIt(vIwR):\n return ZbWC.sub('[-\\\\s]+', '-', ZbWC.sub('[^\\\\w\\\\s-]', '', vIwR).strip().... | [
"0.77706146",
"0.76634145",
"0.74994254",
"0.7492695",
"0.74389595",
"0.7433804",
"0.7372867",
"0.7304124",
"0.72654265",
"0.7247241",
"0.7228791",
"0.72282827",
"0.719275",
"0.7191451",
"0.71778935",
"0.717701",
"0.71751875",
"0.7160038",
"0.71367633",
"0.7133399",
"0.712688... | 0.0 | -1 |
Gets the row index for the given cellrow. >>> board = Board(2, 5) >>> board[0].cellrow = 1 >>> board.get_index_from_cell_row(1) 0 >>> board.get_row_from_cell_row(3) | def UmII(YKHO, I82g):
for d6pt, rdlD in enumerate(YKHO):
if rdlD.cellrow == I82g:
return d6pt
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p2Z8(YKHO, f6_R):\n if f6_R >= YKHO.get_nrow():\n raise IndexError('Out of Bounds: input row index exceeded number of rows in grid.')\n else:\n return YKHO._grid[f6_R]",
"def JCIn(YKHO, VmPb):\n return YKHO.get_index_from_cell_row(VmPb.y)",
"def H9l6(YKHO, I82g):\n for rdlD in YKH... | [
"0.77366847",
"0.7501778",
"0.7460047",
"0.7445296",
"0.71779585",
"0.7138188",
"0.70970374",
"0.7089295",
"0.701973",
"0.701973",
"0.6958772",
"0.6936259",
"0.689472",
"0.68010557",
"0.67727077",
"0.66737837",
"0.6671247",
"0.6583437",
"0.65830815",
"0.6500439",
"0.64918613"... | 0.85343313 | 0 |
Gets the row for the given Cell.. >>> from rpgrun.board.bcell import BCell >>> board = Board(2, 5) >>> board[0].cellrow = 1 >>> board.get_row_from_cell(BCell(0, 1, None)).cellrow 1 >>> board.get_row_from_cell_row(BCell(0, 3, None)) | def DSOx(YKHO, VmPb):
return YKHO.get_row_from_cell_row(VmPb.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H9l6(YKHO, I82g):\n for rdlD in YKHO:\n if rdlD.cellrow == I82g:\n return rdlD\n return None",
"def Kh2d(YKHO, JnVq):\n try:\n usx6 = YKHO.find_rows_by_cells(JnVq)\n return usx6[0]\n except IndexError:\n return None",
"def gXxG(YKHO, rdlD):\n return YKH... | [
"0.7782221",
"0.7327152",
"0.67323047",
"0.6662602",
"0.6647458",
"0.6551865",
"0.64805704",
"0.6367981",
"0.6363622",
"0.6321144",
"0.62890637",
"0.6263635",
"0.62250453",
"0.6213758",
"0.61851275",
"0.61744463",
"0.6099421",
"0.60623753",
"0.60573256",
"0.6048239",
"0.60475... | 0.8258354 | 0 |
Gets the row index for the given Cell. >>> from rpgrun.board.bcell import BCell >>> board = Board(2, 5) >>> board[0].cellrow = 1 >>> board.get_index_from_cell(BCell(0, 1, None)) 0 >>> board.get_row_from_cell_row(BCell(0, 3, None)) | def JCIn(YKHO, VmPb):
return YKHO.get_index_from_cell_row(VmPb.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UmII(YKHO, I82g):\n for d6pt, rdlD in enumerate(YKHO):\n if rdlD.cellrow == I82g:\n return d6pt\n return None",
"def DSOx(YKHO, VmPb):\n return YKHO.get_row_from_cell_row(VmPb.y)",
"def p2Z8(YKHO, f6_R):\n if f6_R >= YKHO.get_nrow():\n raise IndexError('Out of Bounds: i... | [
"0.80067664",
"0.7698613",
"0.7041466",
"0.70253694",
"0.67945606",
"0.6759133",
"0.65167755",
"0.639464",
"0.639464",
"0.63221836",
"0.6305476",
"0.6295029",
"0.62886",
"0.6274344",
"0.6260473",
"0.6216276",
"0.62142676",
"0.6118766",
"0.60967344",
"0.60957134",
"0.6090463",... | 0.7561911 | 2 |
Returns current request state. | def ja6o(YKHO):
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FhLB(YKHO) -> str:\n return qe4Y.get(YKHO, 'requested_state')",
"def elVU(YKHO):\n return YKHO.status",
"def c0mt(YKHO):\n return YKHO.agent.get_state()",
"def ja6o(YKHO):\n return YKHO._current_state",
"def ja6o(QePW):\n QTBn = lVlK(QePW).current_state_v1()\n if isinstance(QTBn['stat... | [
"0.74663925",
"0.718765",
"0.7170182",
"0.7064374",
"0.70371217",
"0.7026388",
"0.70091593",
"0.70091593",
"0.70091593",
"0.70091593",
"0.6992304",
"0.69870144",
"0.69870144",
"0.6981464",
"0.69768584",
"0.6972605",
"0.6950087",
"0.6950087",
"0.69417995",
"0.6940439",
"0.6937... | 0.6919291 | 29 |
Gets the domain of this RealmDomain. The new allowed domain. | def zrIJ(YKHO):
return YKHO._domain | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrIJ(YKHO) -> OwEs:\n return YKHO._domain",
"def vK05(YKHO):\n return YKHO.m_domain",
"def zrIJ(YKHO) -> Nlmb:\n if YKHO._domain is None:\n YKHO._domain = Nlmb(u2h7.legion_index_space_get_domain(YKHO.runtime, YKHO.handle))\n return YKHO._domain",
"def zrIJ(YKHO):\n try:\n ret... | [
"0.7453244",
"0.7261984",
"0.7014177",
"0.69628316",
"0.6927001",
"0.69007546",
"0.69007546",
"0.68787026",
"0.6865063",
"0.6865063",
"0.68451285",
"0.68403983",
"0.6780037",
"0.672364",
"0.6721667",
"0.6667155",
"0.66666293",
"0.6638616",
"0.6593329",
"0.6593329",
"0.6539609... | 0.68542737 | 10 |
bogus file to raise an exception | def EUG7():
q0C1 = Hy7s.path.join(p_9N, 'bogus.txt')
with trZe.raises(VrQA):
uPu5(q0C1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWuE(b4rG):\n with trZe.raises(IOError):\n m_u7.FileProcessor('foobar.py', b4rG)",
"def HlhX(YKHO):\n with YKHO.assertRaises(IOError):\n l4pn('foo')",
"def HlhX(YKHO):\n with YKHO.assertRaises(IOError):\n l4pn('foobar')",
"def syxF(YKHO):\n dWtS = DfNA()\n with trZe.ra... | [
"0.76156354",
"0.7485745",
"0.7481955",
"0.7471117",
"0.73976576",
"0.7394158",
"0.7388478",
"0.7354296",
"0.7331157",
"0.73118615",
"0.7311246",
"0.72958624",
"0.7194647",
"0.7189713",
"0.7186453",
"0.71590894",
"0.7145841",
"0.71289146",
"0.71220535",
"0.70714945",
"0.70708... | 0.68073404 | 49 |
X is normally distributed. | def XGQu(YKHO):
with YKHO.model:
vsOj = TlDD.Normal('mux', 0, 1)
y_Rk = TlDD.Lognormal('sdx', 0, 1)
EcVT = TlDD.Normal('X', mu=vsOj, sd=y_Rk, observed=YKHO.X) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _uVk(Gzv5, EDoJ):\n z2bo = oyIN.sqrt(2 / (Gzv5 + EDoJ))\n return oyIN.random.normal(loc=0.0, scale=z2bo, size=(Gzv5, EDoJ))",
"def nrOS(YKHO, WKvO):\n M1Jx = oyIN.random.uniform(low=YKHO.std_min, high=YKHO.std_max)\n return WKvO + ht2j.FloatTensor(WKvO.size()).normal_(0, M1Jx).double()",
"def K... | [
"0.6875902",
"0.6775854",
"0.6634455",
"0.65939975",
"0.6573691",
"0.656097",
"0.65456516",
"0.6473975",
"0.6472654",
"0.64267105",
"0.64197415",
"0.6409172",
"0.63847256",
"0.63783115",
"0.636922",
"0.6358342",
"0.6358342",
"0.63518876",
"0.63476443",
"0.63211495",
"0.631796... | 0.6328347 | 19 |
Pads sequences to the same length. This function transforms a list of `num_samples` sequences (lists of integers) into a 2D Numpy array of shape `(num_samples, num_timesteps)`. `num_timesteps` is either the `maxlen` argument if provided, or the length of the longest sequence otherwise. Sequences that are shorter than `... | def S5Za(jWe2, KLk8=None, yDqo='int32', dvgN='pre', qG1m='pre', BWXx=0.0):
if not hasattr(jWe2, '__len__'):
raise ValueError('`sequences` must be iterable.')
eAYh = len(jWe2)
Fbjb = []
for WKvO in jWe2:
try:
Fbjb.append(len(WKvO))
except TypeError:
raise V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S5Za(jWe2, KLk8=None, BWXx=0):\n if KLk8 is None:\n KLk8 = max((len(WKvO) for WKvO in jWe2))\n o4Jx = []\n for WKvO in jWe2:\n WKvO = WKvO[:KLk8]\n vSNv = (0, KLk8 - len(WKvO))\n WKvO = oyIN.pad(array=WKvO, pad_width=vSNv, mode='constant', constant_values=BWXx)\n o4J... | [
"0.7443474",
"0.73459876",
"0.7241935",
"0.7037513",
"0.70148724",
"0.6985811",
"0.6917505",
"0.68911254",
"0.6768792",
"0.6606885",
"0.65574765",
"0.65410334",
"0.646839",
"0.6444223",
"0.64271784",
"0.6417178",
"0.6405635",
"0.6398135",
"0.6393204",
"0.6384902",
"0.63212794... | 0.7368867 | 1 |
Returns raw queries of all players. | def dPXt(YKHO):
return YKHO.fetch_all_rows('players') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pi1E():\n return mVZ4.query.all()",
"async def get_all_players(cuiw: Session=JHvC(HNqP.get_session)) -> x1iM[gclh.Details]:\n lV8G = SoFO.query_players_by_(cuiw).all()\n return lV8G",
"def kBaW(YKHO, **o2VW):\n if YKHO.is_single_player_query(**o2VW):\n YKHO.clear_data()\n LZbL = o... | [
"0.7668944",
"0.7512916",
"0.72558206",
"0.7165263",
"0.70093346",
"0.6982659",
"0.68960065",
"0.6860533",
"0.6672566",
"0.66369295",
"0.6624143",
"0.6603601",
"0.6477273",
"0.6472514",
"0.6472514",
"0.6467874",
"0.64249414",
"0.6395294",
"0.6382502",
"0.63666743",
"0.6355092... | 0.6708375 | 8 |
Load one example company from CSV sample data. | def CLw4() -> dict:
for nPrm in fjKE.read_csv(fjKE.SAMPLE_CSV, ['2430372-7']):
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYHY(YKHO):\n YKHO.data = eK5b.load_csv_data(YKHO.csv_file)\n assert isinstance(YKHO.data.index, z1fx.RangeIndex)\n YKHO.eval_data_cols()\n assert len(YKHO.data.columns) == len(YKHO.data_cols) + 1\n return",
"def TMlZ(z36O, qOe5):\n z36O.seek(0)\n Nqlg = (zFiD for zFiD in z36O.readlines(... | [
"0.6318346",
"0.60622334",
"0.598251",
"0.5967584",
"0.5945387",
"0.59405845",
"0.5925334",
"0.591505",
"0.58467084",
"0.5815259",
"0.57961446",
"0.571635",
"0.56934017",
"0.5692395",
"0.56855065",
"0.5677382",
"0.5677382",
"0.56691915",
"0.56616515",
"0.56473714",
"0.5645128... | 0.715346 | 0 |
Returns the number of species that the supermatrix has. | def npgy(YKHO):
return YKHO.__number_of_species | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rLm3(U34r):\n return len(U34r.loc[:, 'name'].unique())",
"def _F5x(qPXk, VbjS):\n return Pusg(lambda WKvO, LVAh: WKvO * LVAh, VbjS['supercell_dimensions'], qPXk.site_count)",
"def pbxr(YKHO):\n return bMU8.mix_nSpecies(YKHO.__mixid)",
"def vOH5(YKHO):\n return len(YKHO.species)",
"def dUt6(... | [
"0.716358",
"0.701441",
"0.6971344",
"0.68890095",
"0.6798117",
"0.6736917",
"0.6693292",
"0.6616703",
"0.65386504",
"0.6516693",
"0.6467911",
"0.64150536",
"0.63763916",
"0.6348665",
"0.6340189",
"0.6336728",
"0.6307641",
"0.63017875",
"0.6299173",
"0.6263052",
"0.62395775",... | 0.78520364 | 0 |
Returns the number of sites that the supermatrix has. | def NU1I(YKHO):
return YKHO.__number_of_sites | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5z1(YKHO):\n fiDj = 0\n for v0pW in YKHO.sites.keys():\n for lBlS in YKHO.sites[v0pW].keys():\n fiDj += len(YKHO.sites[v0pW][lBlS])\n return fiDj",
"def o_jE(YKHO):\n exwG = len(YKHO.sites)\n return exwG",
"def _F5x(qPXk, VbjS):\n return Pusg(lambda WKvO, LVAh: WKvO * L... | [
"0.77558845",
"0.7573289",
"0.6894585",
"0.68130064",
"0.6778938",
"0.674203",
"0.65958285",
"0.65892565",
"0.65700924",
"0.6478082",
"0.64622355",
"0.6427266",
"0.6416964",
"0.6388535",
"0.6354575",
"0.63542",
"0.63393396",
"0.6331323",
"0.6330661",
"0.6309968",
"0.63066626"... | 0.7790046 | 0 |
Returns a string representation of the supermatrix. | def yLCI(YKHO, jSQJ='RAW'):
if jSQJ == 'FASTA':
return YKHO.fasta_format
elif jSQJ == 'NEXUS':
return YKHO.nexus_format
elif jSQJ == 'PHYLIP':
return YKHO.phylip_format
else:
return YKHO.raw_format | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO._matrix)",
"def zAg0(YKHO):\n return '\\n'.join((' '.join([str(YRbF) for YRbF in Mkmy]) for Mkmy in YKHO.__matrix)) if not YKHO.diagonal else '\\n'.join((' '.join([str(YKHO.__matrix[YRbF]) if YRbF == r845 else '0' for YRbF in range(len(YKHO.__matrix))]) for r845 in range... | [
"0.76261723",
"0.7499254",
"0.7497589",
"0.74502975",
"0.7169318",
"0.7106125",
"0.7089162",
"0.7082293",
"0.705618",
"0.6936636",
"0.68997663",
"0.68487215",
"0.679042",
"0.67615473",
"0.67423666",
"0.67175066",
"0.6657349",
"0.66289866",
"0.66225344",
"0.66209954",
"0.65537... | 0.0 | -1 |
A string representation of the calling instance. In other words, a string representation of the supermatrix. | def zAg0(YKHO):
return YKHO.to_string() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO._matrix)",
"def zAg0(YKHO):\n return YKHO.matrix.toarray().__str__()",
"def zAg0(YKHO):\n return '%dx%d %s matrix\\nIDs:\\n%s\\nData:\\n' % (YKHO.shape[0], YKHO.shape[1], YKHO._matrix_element_name, YKHO._pprint_ids()) + str(YKHO.data)",
"def zAg0(YKHO):\n vIwR = ... | [
"0.7605951",
"0.7553423",
"0.7262356",
"0.7170553",
"0.71137416",
"0.70734334",
"0.70145565",
"0.70145565",
"0.7005179",
"0.69548243",
"0.6887853",
"0.6881675",
"0.6869505",
"0.68373835",
"0.68190956",
"0.68142366",
"0.6801278",
"0.6800218",
"0.6800218",
"0.6766317",
"0.67663... | 0.0 | -1 |