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 |
|---|---|---|---|---|---|---|
Extract a number from a text string The function handles pronunciations in long scale and short scale | def KYR0(l5Ny, DAyo=True, Ld9C=False):
return mhKi(wr3U(l5Ny.lower()), DAyo, Ld9C).value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yzS4(YKHO, l5Ny):\n try:\n if 'studio' in l5Ny.lower():\n return 0.0\n l5Ny = l5Ny.replace(',', '')\n mXDZ = '[-+]?\\\\d*\\\\.\\\\d+|\\\\d+'\n Aofo = ZbWC.findall(mXDZ, l5Ny)[0]\n return float(Aofo)\n except:\n return oyIN.nan",
"def WyYT(l5Ny):\n ... | [
"0.72513664",
"0.7204464",
"0.70958847",
"0.70813584",
"0.7041385",
"0.6992192",
"0.6937413",
"0.68897563",
"0.6824895",
"0.6658313",
"0.6648845",
"0.6637215",
"0.6591175",
"0.64477766",
"0.6366237",
"0.63319725",
"0.6317852",
"0.6311217",
"0.625251",
"0.622737",
"0.62188727"... | 0.7091531 | 3 |
Convert an english phrase into a number of seconds. The function handles durations from seconds up to days. | def m0fT(l5Ny):
if not l5Ny:
return None
qrj1 = {'microseconds': 0, 'milliseconds': 0, 'seconds': 0, 'minutes': 0, 'hours': 0, 'days': 0, 'weeks': 0}
fYOr = {'microseconds': ['microsecond', 'microseconde', 'microseconden', 'microsecondje', 'microsecondjes'], 'milliseconds': ['millisecond', 'millisec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tm89(YKHO, KCHu):\n WbTE = 0\n for YRbF in KCHu.split('-'):\n if 'h' in YRbF:\n WbTE = WbTE + int(YRbF.split('h')[0]) * 3600\n if 'm' in YRbF:\n WbTE = WbTE + int(YRbF.split('m')[0]) * 60\n if 's' in YRbF:\n WbTE = WbTE + int(YRbF.split('s')[0])\n ... | [
"0.7178708",
"0.6962914",
"0.6932655",
"0.6885539",
"0.6848539",
"0.6793686",
"0.67823154",
"0.6662335",
"0.6656179",
"0.66171587",
"0.6605932",
"0.65735215",
"0.6557307",
"0.653899",
"0.6531352",
"0.64744496",
"0.6446356",
"0.6434398",
"0.63777435",
"0.63544595",
"0.63463396... | 0.5997365 | 40 |
Convert a human date reference into an exact datetime Convert things like "today" "tomorrow afternoon" "next Tuesday at 4pm" "August 3rd" into a datetime. If a reference date is not provided, the current local time is used. Also consumes the words used to define the date returning the remaining string. For example, the... | def x3Wa(l5Ny, G2UP=None, ngXP=None):
def oRP1(KCHu):
KCHu = KCHu.lower().replace('?', '').replace('.', '').replace(',', '').replace(' de ', ' ').replace(' het ', ' ').replace(' het ', ' ').replace('paar', '2').replace('eeuwen', 'eeuw').replace('decennia', 'decennium').replace('millennia', 'millennium')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def slWZ(_c1T):\n if _c1T == 'today':\n Csk6 = qcWV.date.today()\n elif _c1T == 'tomorrow':\n Csk6 = qcWV.date.today() + qcWV.timedelta(days=1)\n elif ZbWC.match('(\\\\d+) days later', _c1T):\n KBuT = ZbWC.match('(\\\\d+) days later', _c1T).group(1)\n Csk6 = qcWV.date.today() +... | [
"0.6147141",
"0.6041106",
"0.5967153",
"0.59643936",
"0.5658326",
"0.56513596",
"0.5602159",
"0.5569253",
"0.5562136",
"0.5488648",
"0.5442202",
"0.5431956",
"0.54209316",
"0.5413553",
"0.5407651",
"0.53510106",
"0.5286126",
"0.52684903",
"0.5237963",
"0.5211437",
"0.5207391"... | 0.60672224 | 1 |
Return a set of multiclass indices as multihot vectors. | def theA(YKHO, BMUZ):
Pwlv = len(YKHO.cocoGt.attrs)
kGbZ = {jzdc: YRbF for YRbF, jzdc in enumerate(YKHO.cocoGt.attrs.keys())}
sSN4 = oyIN.zeros(Pwlv, dtype=oyIN.int32)
for ogYM in BMUZ:
sSN4[kGbZ[ogYM]] = 1
return sSN4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj8B(bADd, jTqs):\n V756 = oyIN.zeros((len(bADd), jTqs))\n for xV_c, xgs4 in enumerate(bADd):\n V756[xV_c, xgs4] = 1.0\n return V756",
"def UPru(YeV4, Ybg9):\n x6A0 = oyIN.array(YeV4).reshape(-1)\n return oyIN.eye(Ybg9)[x6A0]",
"def UPru(nPrm, Ybg9):\n x6A0 = oyIN.array(nPrm).resha... | [
"0.7239161",
"0.7084645",
"0.6928073",
"0.68947214",
"0.68947214",
"0.68947214",
"0.68947214",
"0.6856891",
"0.6856891",
"0.67570007",
"0.6685289",
"0.66684866",
"0.6637794",
"0.6411512",
"0.63106364",
"0.6303697",
"0.6262328",
"0.6241711",
"0.623851",
"0.6196373",
"0.6184103... | 0.7304781 | 0 |
Test align with packaged elements and upper layer defaulting | def Z0fh(YKHO):
exwG = YKHO._process('\nclass c1 "C1"\n class c3 "C3"\n class c4 "C4"\nclass c2 "C2"\n class c5 "C5"\n class c6 "C6"\n\n# check if c1 and c2 default alignment is ok!\n:layout:\n center g1: c3 c5\n')
Al8j = yKxK(exwG, 'c1')
a78n = yKxK(exwG, 'c2')
xJEH = yKxK(exwG, 'c3')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mIJV(YKHO):\n ...",
"def XXAL(YKHO):\n exwG = YKHO._process('\\nclass c \"C\"\\n class c1 \"C1\"\\n class c2 \"C2\"\\nclass c3 \"C3\"\\nclass c4 \"C4\"\\nclass c5 \"C5\"\\n\\n:layout:\\n center g1: c2 c3\\n')\n M98S = yKxK(exwG, 'c')\n Al8j = yKxK(exwG, 'c1')\n a78n = yKxK(exwG, 'c2')... | [
"0.6880478",
"0.68650484",
"0.64431536",
"0.61465687",
"0.613308",
"0.59912145",
"0.59322894",
"0.58792317",
"0.5859829",
"0.58438075",
"0.5815869",
"0.56735545",
"0.5634762",
"0.5560718",
"0.5523211",
"0.5517181",
"0.55113804",
"0.5496439",
"0.5481082",
"0.5475312",
"0.54561... | 0.64602655 | 2 |
Given two objects, check if the given arraylike attributes of those objects have the same shape. If one object has an attribute value of ``None``, the other must too. | def xw7t(fHx1, EAsg, hkS8):
cntZ, CsFy = (getattr(fHx1, hkS8), getattr(EAsg, hkS8))
if cntZ is None or CsFy is None:
return cntZ is CsFy
else:
return cntZ.shape == CsFy.shape | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N0cH(fHx1, EAsg, hkS8):\n import numpy as oyIN\n return xw7t(fHx1, EAsg, hkS8) and oyIN.array_equal(getattr(fHx1, hkS8), getattr(EAsg, hkS8))",
"def BtK0(oVJE, miE1, hkS8):\n N4Jv = getattr(oVJE, hkS8, None)\n n2qr = getattr(miE1, hkS8, None)\n if not N4Jv:\n return not n2qr\n return... | [
"0.75609267",
"0.7321417",
"0.72469866",
"0.6869249",
"0.6621087",
"0.6517299",
"0.6511858",
"0.64516515",
"0.6402344",
"0.6279386",
"0.6244291",
"0.6202596",
"0.61950827",
"0.6192208",
"0.6176825",
"0.6173649",
"0.60977036",
"0.609501",
"0.6086053",
"0.60272735",
"0.6017286"... | 0.828162 | 0 |
Given two objects, check if the given arraylike attributes of those objects are equal. If one object has an attribute value of ``None``, the other must too. | def N0cH(fHx1, EAsg, hkS8):
import numpy as oyIN
return xw7t(fHx1, EAsg, hkS8) and oyIN.array_equal(getattr(fHx1, hkS8), getattr(EAsg, hkS8)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return oyIN.all([YKHO.__getattribute__(mWFP) == Elif.__getattribute__(mWFP) for mWFP in YKHO._fields])",
"def uw6l(jzdc, Fg_i):\n\n def mPqE(WKvO, LVAh, hkS8):\n if isinstance(WKvO, nScl.operation._HOOMDGetSetAttrBase):\n uw6l(WKvO, LVAh)\n return\n ... | [
"0.7156824",
"0.7099863",
"0.6967573",
"0.68989354",
"0.6869788",
"0.67362773",
"0.6682781",
"0.6625628",
"0.66157895",
"0.6553396",
"0.6515508",
"0.64974266",
"0.6479229",
"0.6478214",
"0.6476183",
"0.6472838",
"0.64684623",
"0.6420389",
"0.6420206",
"0.6414899",
"0.637217",... | 0.7933077 | 0 |
Given two meshes, check if they have the same vertex count and same faces. In other words, check if they have the same topology. | def ngk5(twgA, tHob):
return xw7t(twgA, tHob, 'v') and N0cH(twgA, tHob, 'f') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def poMF(ICwc: list, qh8G: list):\n if len(ICwc[0]) != len(qh8G[0]):\n return False\n return True",
"def pH3P(LWvH: List[np.ndarray], ovLg: List[np.ndarray]) -> bool:\n if len(LWvH) != len(ovLg):\n return False\n yk4i = LWvH - ovLg\n if oyIN.abs(oyIN.max(yk4i)) < ORQu:\n retur... | [
"0.68985",
"0.6723203",
"0.6649889",
"0.661135",
"0.64859855",
"0.6419518",
"0.63383436",
"0.63224435",
"0.6256035",
"0.6232129",
"0.6145951",
"0.6143663",
"0.6142556",
"0.6124895",
"0.6109253",
"0.6088644",
"0.6010268",
"0.59883684",
"0.597066",
"0.5947466",
"0.59260404",
... | 0.79614437 | 0 |
Load file into json object | def RD8O(YKHO):
try:
if not YKHO.file_allowed():
raise Exception('File type {} is not allowed'.format(YKHO.get_ext()))
with open(YKHO._file_path, 'r') as _RR0:
hGN5 = _RR0.read()
if YKHO.is_json() or YKHO.is_template():
return qQXR.loads(hGN5)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y4Mn(VqRE):\n with open(VqRE, 'r') as eHNT:\n return qQXR.load(eHNT)",
"def lc9H(gIsw):\n return qQXR.load(open(gIsw))",
"def lc9H(VqRE: str):\n with open(VqRE, encoding='utf-8') as eHNT:\n return qQXR.load(eHNT)",
"def tyeH(YKHO):\n if not YKHO.exist:\n YKHO.create()\n ... | [
"0.7922215",
"0.7892867",
"0.7877693",
"0.78131616",
"0.7779231",
"0.7775226",
"0.7744948",
"0.77275276",
"0.7726553",
"0.76970154",
"0.76712483",
"0.76706",
"0.7669138",
"0.76046544",
"0.75819004",
"0.75763077",
"0.75706434",
"0.75048196",
"0.7497272",
"0.74855417",
"0.74742... | 0.0 | -1 |
Darknet Convolution2D followed by CustomBatchNormalization and LeakyReLU. | def xRTZ(*qIxc, **B2fa):
_Eb8 = {'use_bias': False}
_Eb8.update(B2fa)
return capf(v9Xb(*qIxc, **_Eb8), b_6B(), ybb1(alpha=0.1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBDB(*qIxc, **B2fa):\n _Eb8 = {'use_bias': False}\n _Eb8.update(B2fa)\n return capf(ND0_(*qIxc, **_Eb8), r1No(), ybb1(alpha=0.1))",
"def acd3(*qIxc, **B2fa):\n _Eb8 = {'use_bias': False}\n _Eb8.update(B2fa)\n return capf(ND0_(*qIxc, **_Eb8), r1No(), MroH(vpws))",
"def xRTZ(*qIxc, **B2fa):... | [
"0.7161675",
"0.68290746",
"0.6676103",
"0.66487426",
"0.6616754",
"0.65722287",
"0.6535824",
"0.6442383",
"0.63929534",
"0.6380529",
"0.63805145",
"0.6380281",
"0.6358514",
"0.63435227",
"0.63362634",
"0.63307637",
"0.632894",
"0.63203245",
"0.631328",
"0.6309257",
"0.629174... | 0.6431586 | 8 |
is_kind_of_class function. obj object. a_class. | def Bk6c(YEnM, J9Xy):
return isinstance(YEnM, J9Xy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bk6c(YEnM, J9Xy):\n return isinstance(YEnM, J9Xy)",
"def Bk6c(YEnM, J9Xy):\n return isinstance(YEnM, J9Xy)",
"def Bk6c(YEnM, J9Xy):\n if isinstance(YEnM, J9Xy):\n return True\n else:\n return False",
"def Bk6c(YEnM, J9Xy):\n if isinstance(YEnM, J9Xy):\n return True\n ... | [
"0.9197217",
"0.91221917",
"0.91213906",
"0.91213906",
"0.9114493",
"0.91093194",
"0.9096093",
"0.9088017",
"0.9067632",
"0.8381849",
"0.8361569",
"0.83301085",
"0.8319449",
"0.8308477",
"0.8298797",
"0.8248152",
"0.8221121",
"0.8202421",
"0.8202421",
"0.817544",
"0.8119745",... | 0.9146275 | 4 |
Returns the User named username from the repository. If there is no User with the given username, this method returns None. | def TKWP(YKHO, NtEF) -> mv1M:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kQ3Y(YKHO, NtEF):\n try:\n return mv1M.objects.get(username=NtEF)\n except:\n return None",
"def TKWP(YKHO, NtEF):\n return YKHO.users.get(NtEF, None)",
"def zaNW(NtEF: str) -> mv1M:\n return mv1M.query.filter_by(username=NtEF).first()",
"def NMoC(YKHO, NtEF):\n return mv1M.f... | [
"0.7991678",
"0.7830297",
"0.77564865",
"0.77404994",
"0.7699172",
"0.7670924",
"0.7546243",
"0.75118715",
"0.75090003",
"0.750763",
"0.74798155",
"0.7462709",
"0.74557424",
"0.74237853",
"0.7398951",
"0.73935986",
"0.7389816",
"0.7366452",
"0.73561954",
"0.73304206",
"0.7326... | 0.7821788 | 2 |
Returns the Tags stored in the repository. | def z4GG(YKHO) -> x1iM[zOPr]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qwli(YKHO):\n _hkX = YKHO.get(RDhu.build_uri('tags', domain=YKHO.domain))\n return BfDw.handle_response(_hkX)",
"def Qwli(YKHO):\n return YKHO.tags",
"def Qwli(YKHO):\n return YKHO.tags",
"def qvDz(YKHO):\n return YKHO.tags",
"def dJ1p(YKHO) -> x1iM[str]:\n return YKHO._db_data.tags",... | [
"0.8031258",
"0.8020358",
"0.7972669",
"0.7882092",
"0.78389585",
"0.7806504",
"0.772199",
"0.7687606",
"0.7687606",
"0.7687606",
"0.7687606",
"0.7687606",
"0.7687606",
"0.7687606",
"0.7687606",
"0.7651873",
"0.7601646",
"0.75842124",
"0.75656277",
"0.7563274",
"0.75124985",
... | 0.0 | -1 |
Adds a Comment to the repository. If the Comment doesn't have bidirectional links with an Article and a User, this method raises a RepositoryException and doesn't update the repository. | def mUhk(YKHO, Slbv: Review):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PU3S(YKHO):\n aM_I = jY1u(title=YKHO.title, comment=YKHO.comment, rating=YKHO.rating, user_from_id=Oa1e.user.id, user_to_id=YKHO.user_to_id)\n NCls.session.add(aM_I)\n NCls.session.commit()\n return aM_I",
"def PU3S(Emd4, Fi3q, uJjO, hGN5):\n Z9rn = Emd4(parent=_nPR(), post_id=Fi3q, user_id=uJ... | [
"0.63090664",
"0.619766",
"0.5997666",
"0.59554213",
"0.5949031",
"0.58348954",
"0.58040637",
"0.5797085",
"0.5683328",
"0.5635592",
"0.552336",
"0.54804283",
"0.5472863",
"0.5426345",
"0.5403599",
"0.53591305",
"0.5347403",
"0.53313214",
"0.53260833",
"0.53260833",
"0.522558... | 0.0 | -1 |
Returns the Comments stored in the repository. | def qX9M(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qX9M(YKHO):\n return YKHO._client.get_comments(YKHO)",
"def Tj1O(YKHO):\n return XnsH(YKHO)",
"def qX9M(YKHO):\n bD7m = 'https://api.imgur.com/3/gallery/{0}/comments'.format(YKHO.id)\n _hkX = YKHO._imgur._send_request(bD7m)\n return [jY1u(zJeG, YKHO._imgur) for zJeG in _hkX]",
"def Tj1O(YK... | [
"0.8394376",
"0.77528745",
"0.7595973",
"0.75652796",
"0.75375575",
"0.75087225",
"0.749548",
"0.74827653",
"0.74827653",
"0.74827653",
"0.742862",
"0.74115026",
"0.74115026",
"0.7369467",
"0.71737844",
"0.71627605",
"0.7124688",
"0.7124688",
"0.7124688",
"0.70628506",
"0.702... | 0.74296016 | 10 |
Quick function to make dictionary out of row | def zT8f(rdlD):
return dict(((H5ew[0], BWXx) for H5ew, BWXx in zip(NKcn, rdlD))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cmYw(N1p7, rdlD):\n return dict(((N1p7.description[or8S][0], BWXx) for or8S, BWXx in enumerate(rdlD)))",
"def cmYw(N1p7, rdlD):\n return dict(((N1p7.description[or8S][0], BWXx) for or8S, BWXx in enumerate(rdlD)))",
"def ij1k(N1p7, rdlD):\n V_D6 = [iVRZ[0] for iVRZ in N1p7.description]\n return ... | [
"0.7840575",
"0.7840575",
"0.7475275",
"0.7416168",
"0.74088275",
"0.7320337",
"0.7266134",
"0.7266134",
"0.7266134",
"0.72257596",
"0.72038424",
"0.72006977",
"0.7102867",
"0.7097499",
"0.70790124",
"0.7012028",
"0.7010276",
"0.7005142",
"0.6933884",
"0.6909822",
"0.6890841"... | 0.8144377 | 0 |
Get id of the map configuration | def VQif(YKHO, bpnQ):
return YKHO.map_to_id_dict[tuple(bpnQ)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S8MR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'config_id')",
"def S8MR(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'config_id')",
"def id(YKHO):\n return YKHO.config['key']",
"def yRef(YKHO) -> str:\n return YKHO._depmap_id",
"def JqtQ(YKHO) -> qe4Y.Output[str]:\n return ... | [
"0.76382995",
"0.73559886",
"0.7354669",
"0.7206583",
"0.713211",
"0.7086469",
"0.6984925",
"0.6925354",
"0.68631417",
"0.68329775",
"0.6793866",
"0.67080826",
"0.67080826",
"0.6626834",
"0.657097",
"0.6497727",
"0.64776593",
"0.6439301",
"0.64233565",
"0.6403954",
"0.6394926... | 0.6585377 | 14 |
r"""Creates a BatchPredictionJob. A BatchPredictionJob once created will right away be attempted to start. | def lNnX(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('Create')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nNTj(YKHO, qIxc):\n oCfW = SYSq.BuildBatchPredictionJob(job_name=qIxc.job, model_name=qIxc.model, version_name=qIxc.version, input_paths=qIxc.input_paths, data_format=qIxc.data_format, output_path=qIxc.output_path, region=qIxc.region)\n return SYSq.Create(oCfW)",
"def LZ5Z(YKHO, mWFP, HYlZ, JBZA='', a9... | [
"0.6705501",
"0.61796373",
"0.61208755",
"0.60551083",
"0.6014603",
"0.59128076",
"0.5867087",
"0.5849908",
"0.5833807",
"0.58014685",
"0.57266665",
"0.57052267",
"0.5686084",
"0.5685439",
"0.56122243",
"0.55940497",
"0.5586986",
"0.5565439",
"0.5539847",
"0.5518586",
"0.5439... | 0.0 | -1 |
r"""Exports data from a Dataset. | def pwQG(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('Export')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nsd6(YKHO):\n raise NotImplementedError",
"def lrlN(QePW, *V_D6, SR0I, Ux0P, wvuQ=';'):\n mWFP, Fst3 = Hy7s.path.splitext(Ux0P)\n unm1 = Fst3[1:]\n MOPg, usx6 = V8R5(*V_D6, queryset=SR0I)\n hlel = None\n if unm1 == 'csv':\n m5r4 = 'text/csv'\n hlel = xDSY.StringIO()\n W... | [
"0.80311924",
"0.68339235",
"0.6501299",
"0.6458989",
"0.6446935",
"0.63666266",
"0.6325356",
"0.6248156",
"0.62478554",
"0.6190174",
"0.61632293",
"0.6142523",
"0.6140128",
"0.60868084",
"0.60850114",
"0.6073141",
"0.60716176",
"0.60636085",
"0.6061393",
"0.60459274",
"0.603... | 0.0 | -1 |
r"""Retrieves a specific Artifact. | def xP7V(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('Get')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I9zd(YKHO, qowK: str) -> object:\n return YKHO._artifacts[qowK]",
"def WkDN(qIxc, cU8q, jUTK):\n if cU8q not in qIxc._artifacts:\n raise KeyError(f'Cannot find {cU8q} in _artifacts. The task either did not run, or it did not produce any artifacts.')\n for l34Y in qIxc._artifacts[cU8q]:\n ... | [
"0.744388",
"0.71868914",
"0.69514936",
"0.6910733",
"0.6855669",
"0.66040236",
"0.6567243",
"0.6557538",
"0.6452426",
"0.6438798",
"0.64127606",
"0.63713574",
"0.63480353",
"0.6336706",
"0.63255733",
"0.6323822",
"0.6321211",
"0.6278157",
"0.5925727",
"0.5891122",
"0.5781684... | 0.0 | -1 |
r"""Adds a set of Artifacts and Executions to a Context. If any of the Artifacts or Executions have already been added to a Context, they are simply skipped. | def ZAS8(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('AddContextArtifactsAndExecutions')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qfW6(YKHO, qIxc):\n for l34Y in YKHO.artifacts:\n dIeA.add_artifact(qIxc, l34Y)",
"def H2v5(YKHO, QpfX):\n YKHO._contexts.add(QpfX)",
"async def cadd(YKHO, OaeV, *qIxc: Input):\n await YKHO.add(yCaQ(z6cI(ctx=OaeV, inputs=list(qIxc))))\n return OaeV",
"def NAPt(qIxc, dIeA: Artifact):\n ... | [
"0.5791988",
"0.5267684",
"0.5251709",
"0.51927793",
"0.5177818",
"0.514051",
"0.5104011",
"0.50617725",
"0.4919937",
"0.48422354",
"0.48230633",
"0.48167974",
"0.48162982",
"0.4725292",
"0.47249752",
"0.47234204",
"0.47047934",
"0.46864888",
"0.4662501",
"0.4659048",
"0.4638... | 0.71376556 | 0 |
r"""Retrieves a specific MetadataStore. | def xP7V(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('Get')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def niGF(EE2u: str):\n return LDOr.get_store(EE2u)",
"def niGF(YKHO, fmKd):\n for VUF1 in YKHO.get_stores():\n if VUF1['code'] == fmKd:\n return VUF1",
"def niGF(YKHO, EE2u: str) -> ImMB:\n pass",
"def NMoC(YKHO, fmKd):\n VUF1 = L82Y.query.filter_by(id=fmKd).first()\n if not ... | [
"0.7656098",
"0.68932706",
"0.6879895",
"0.6807665",
"0.6600442",
"0.6546118",
"0.64372784",
"0.6276773",
"0.61008143",
"0.60236686",
"0.5884253",
"0.58835924",
"0.5880788",
"0.5853448",
"0.584593",
"0.5791415",
"0.5791187",
"0.57900834",
"0.5768068",
"0.5728936",
"0.57026416... | 0.0 | -1 |
Build a dictionary through a list of words | def o18O(YKHO, V22M):
for GIN8 in V22M:
u54L = len(GIN8)
H5ew = '{}/{}'.format(u54L, GIN8[0])
Uqbu = YKHO.origin.get(H5ew, [])
Uqbu.append(GIN8)
YKHO.origin[H5ew] = Uqbu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BCj6(vwCE):\n Csk6 = dict()\n for YRbF in vwCE:\n H5ew = ''.join(sorted(list(YRbF)))\n if H5ew in Csk6:\n Csk6[H5ew].append(YRbF)\n else:\n Csk6[H5ew] = [YRbF]\n return Csk6",
"def K63D(V22M):\n dixj = MabX(set([YKHO.normalize(yzQ0) for yzQ0 in V22M] + V... | [
"0.7771935",
"0.7714796",
"0.76650697",
"0.75896126",
"0.75077",
"0.7371921",
"0.7257023",
"0.724838",
"0.72190464",
"0.71511894",
"0.7121465",
"0.70906883",
"0.70329714",
"0.69910663",
"0.6939837",
"0.6926235",
"0.69013107",
"0.68620795",
"0.68157786",
"0.6809816",
"0.676353... | 0.7402118 | 5 |
Returns if there is any word in the trie that equals to the given word after modifying exactly one character | def TgwQ(YKHO, GIN8):
u54L = len(GIN8)
if u54L == 1:
for sZqf in vIwR.ascii_lowercase:
H5ew = '{}/{}'.format(1, sZqf)
if H5ew in YKHO.origin and sZqf != GIN8:
return True
return False
H5ew = '{}/{}'.format(len(GIN8), GIN8[0])
Uqbu = YKHO.origin.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gtm1(ZOCz, vIwR: str) -> bool:\n return any((yzQ0 == vIwR for yzQ0 in ZOCz))",
"def TgwQ(YKHO, GIN8):\n ZbOB = YKHO.trie\n for YRbF, Npgh in enumerate(GIN8):\n ZbOB = ZbOB.get(Npgh, {})\n if ZbOB:\n continue\n else:\n break\n if YRbF == len(GIN8) - 1 and... | [
"0.7899592",
"0.77150905",
"0.7682861",
"0.749954",
"0.74967194",
"0.7493748",
"0.7473293",
"0.744279",
"0.7442054",
"0.7417374",
"0.7414684",
"0.7398874",
"0.7384888",
"0.7366409",
"0.73336977",
"0.73324597",
"0.72957736",
"0.72941583",
"0.7278798",
"0.7278575",
"0.72140145"... | 0.7652631 | 3 |
Merges dictionaries right to left. Has side effects for each argument. | def W0j7(*qIxc):
return Pusg(lambda Csk6, KCHu: Csk6.update(KCHu) or Csk6, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGZu(*c974):\n Aofo = {}\n for cmPJ in c974:\n Aofo.update(cmPJ)\n return Aofo",
"def W0j7(*qIxc):\n return Pusg(lambda Csk6, KCHu: Csk6.update(KCHu) or Csk6, qIxc)",
"def roQF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp",
"def roQF(WKvO, LVAh):\n ep... | [
"0.7757057",
"0.7651782",
"0.75542307",
"0.75542307",
"0.75542307",
"0.75128335",
"0.75071603",
"0.75071603",
"0.75071603",
"0.75071603",
"0.75071603",
"0.75071603",
"0.74747777",
"0.74335444",
"0.7399247",
"0.73883593",
"0.7383911",
"0.7383911",
"0.7383911",
"0.7383911",
"0.... | 0.7640341 | 2 |
returns a datetime.datetime object giving the closest minute to a given timestamp | def sR8Z(a1PO):
i8WE = JRYC.datetime.utcfromtimestamp(a1PO / 1000)
KCHu = i8WE.second
if KCHu < 30:
return JRYC.datetime(i8WE.year, i8WE.month, i8WE.day, i8WE.hour, i8WE.minute)
else:
return JRYC.datetime(i8WE.year, i8WE.month, i8WE.day, i8WE.hour, i8WE.minute) + JRYC.timedelta(minutes=1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FcvX(YKHO, ZpyY):\n try:\n return oyIN.argmin(oyIN.abs(YKHO.time.datetime - ZpyY))\n except AttributeError:\n YKHO.load_time()\n return oyIN.argmin(oyIN.abs(YKHO.time.datetime - ZpyY))",
"def Fbcu(YKHO, i8WE):\n return qcWV.datetime.fromtimestamp(int(i8WE.timestamp()) // YKHO.in... | [
"0.6282389",
"0.62027633",
"0.6182773",
"0.6145511",
"0.5943151",
"0.5937589",
"0.57929146",
"0.5759673",
"0.57589716",
"0.5738214",
"0.57307565",
"0.56261486",
"0.5603806",
"0.55833924",
"0.55608606",
"0.5448825",
"0.54237705",
"0.5418581",
"0.5416169",
"0.53974205",
"0.5349... | 0.84306616 | 0 |
given a tensor t of dimension d with integer values from range(r), return a new tensor of dimension d + 1 with values 0/1, where the last dimension gives a onehot representation of the values in t. if r is not given, r is set to max(t) + 1 Taken from benanne | def CO8l(a1PO, Mkmy=None):
if Mkmy is None:
Mkmy = Kt_s.max(a1PO) + 1
XT48 = Kt_s.shape_padleft(Kt_s.arange(Mkmy), a1PO.ndim)
return Kt_s.eq(XT48, Kt_s.shape_padright(a1PO, 1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sAJt(vhpA, Crrw=10):\n KLLm = oyIN.zeros((vhpA.shape[0], Crrw))\n KLLm[range(vhpA.shape[0]), vhpA.astype(int)] = 1.0\n return KLLm",
"def aFAW(a1PO, jTqs, begE='cpu'):\n return ht2j.zeros(a1PO.size()[0], jTqs).to(begE).scatter_(1, a1PO.view(-1, 1), 1)",
"def kj8B(ezWE, jTqs):\n ezWE = ezWE.d... | [
"0.66438264",
"0.6629859",
"0.64352036",
"0.64352036",
"0.63995916",
"0.63084185",
"0.6223035",
"0.6172736",
"0.6149063",
"0.6013955",
"0.5994439",
"0.59788144",
"0.59711903",
"0.59682393",
"0.59422356",
"0.59417987",
"0.5920349",
"0.58973324",
"0.58843565",
"0.58813536",
"0.... | 0.79046035 | 0 |
The function approximates percentage point z_p of the standard normal distribution corresponding to a prescribed value p for the lower tail area. | def u92g(XP5J):
m4Ro = 0.425
hlaX = 5.0
Ks_Z = 0.180625
icUf = 1.6
k0lF = YLnl(FgKS, 3.3871328727963665, 133.14166789178438, 1971.5909503065513, 13731.69376550946, 45921.95393154987, 67265.7709270087, 33430.57558358813, 2509.0809287301227)
tjUW = YLnl(FgKS, 1, 42.31333070160091, 687.187007492057... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KD9H(epBp):\n jzdc = abs(float(epBp))\n if jzdc >= 8.3:\n sum = 0.5\n else:\n qYa6 = OXAZ = jzdc * FuaH(jzdc)\n mPai = jzdc * jzdc\n sum = 0.0\n YRbF = 1.0\n while sum != qYa6:\n sum = qYa6\n YRbF += 2.0\n OXAZ *= mPai / YRbF\n... | [
"0.6932838",
"0.6404745",
"0.6341033",
"0.6294059",
"0.62753767",
"0.62004036",
"0.61605823",
"0.6084907",
"0.6067155",
"0.6040915",
"0.60377944",
"0.6033759",
"0.5955054",
"0.59393936",
"0.5938724",
"0.5931665",
"0.58902735",
"0.5889003",
"0.58805996",
"0.5867613",
"0.586752... | 0.56002384 | 53 |
The function approximately calculates cumulative distribution function of a standard normal distribution | def BhHP(WKvO, Yka9=tVah):
return (1 + Yka9(WKvO / epAf.sqrt(2))) / 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XA7A(epBp):\n from math import exp\n kYGz = +0.31938153\n ftz7 = -0.356563782\n _2fo = +1.781477937\n BZh4 = -1.821255978\n CH56 = +1.330274429\n XP5J = +0.2316419\n Z9rn = +0.39894228\n if epBp >= 0.0:\n a1PO = 1.0 / (1.0 + XP5J * epBp)\n return 1.0 - Z9rn * exp(-epBp ... | [
"0.77945924",
"0.77630913",
"0.75755465",
"0.7447359",
"0.73842084",
"0.72590417",
"0.70391554",
"0.7025244",
"0.692356",
"0.67897284",
"0.675789",
"0.673923",
"0.6720004",
"0.67141575",
"0.66990364",
"0.66586804",
"0.66506124",
"0.66417515",
"0.6638327",
"0.66374487",
"0.663... | 0.6759445 | 10 |
Gets the interpolated value after setting Y. | def DXJi(YKHO) -> float:
return float(YKHO.dss_obj.XYCurvesF(gk2W.c_int32(0), gk2W.c_double(0))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LVAh(YKHO):\n return YKHO['y']",
"def LVAh(YKHO):\n hkxX = YKHO._interpolate_table('y')\n hkxX += YKHO._corrections(('ortho_eop', p3QP.ortho_eop, 1, 1e-06), ('pmsdnut2', p3QP.pmsdnut2, 1, 1e-06))\n return hkxX",
"def LVAh(YKHO) -> float:\n return YKHO.data[1]",
"def yDCK(YKHO):\n return... | [
"0.7033561",
"0.6954421",
"0.6926672",
"0.68852884",
"0.6865361",
"0.6849734",
"0.6818525",
"0.6782346",
"0.67787695",
"0.67787695",
"0.67787695",
"0.67787695",
"0.67787695",
"0.67787695",
"0.67787695",
"0.67787695",
"0.67787695",
"0.67787695",
"0.6777467",
"0.6777467",
"0.67... | 0.0 | -1 |
Gets the interpolated value after setting X. | def Rsnr(YKHO) -> float:
return float(YKHO.dss_obj.XYCurvesF(gk2W.c_int32(2), gk2W.c_double(0))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sOr0(YKHO, Yqag):\n return YKHO.interpolator(Yqag)",
"def WKvO(YKHO):\n return YKHO['x']",
"def WKvO(YKHO):\n hkxX = YKHO._interpolate_table('x')\n hkxX += YKHO._corrections(('ortho_eop', p3QP.ortho_eop, 0, 1e-06), ('pmsdnut2', p3QP.pmsdnut2, 0, 1e-06))\n return hkxX",
"def EcVT(YKHO):\n ... | [
"0.7305209",
"0.6666661",
"0.6499916",
"0.6499487",
"0.6445549",
"0.6421296",
"0.64183414",
"0.6369727",
"0.63690907",
"0.63069355",
"0.6304407",
"0.6304407",
"0.6304407",
"0.6304407",
"0.6304407",
"0.6304407",
"0.6304407",
"0.6304407",
"0.6304407",
"0.6304407",
"0.6304407",
... | 0.0 | -1 |
Sets the Y value. | def mpuP(YKHO, wAVY) -> float:
wAVY = i_Aq.check_float_param(wAVY)
return float(YKHO.dss_obj.XYCurvesF(gk2W.c_int32(3), gk2W.c_double(wAVY))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fuBA(YKHO, BWXx):\n YKHO._Y = BWXx",
"def z9NM(YKHO, LVAh):\n YKHO.y = LVAh\n pass",
"def QEd2(YKHO, LVAh):\n YKHO._y = LVAh",
"def z9NM(YKHO, LVAh):\n YKHO._y = LVAh",
"def lcEV(YKHO, LVAh):\n YKHO._y = LVAh",
"def lcEV(YKHO, LVAh: float):\n YKHO.y = LVAh",
"def lcEV(YKHO, eLq... | [
"0.91072935",
"0.90802085",
"0.90718526",
"0.89927083",
"0.88287175",
"0.87173516",
"0.8678768",
"0.85754174",
"0.85754174",
"0.8464187",
"0.8409413",
"0.8394292",
"0.82334244",
"0.81278807",
"0.8088417",
"0.8079064",
"0.8016184",
"0.80157703",
"0.7979977",
"0.7979977",
"0.79... | 0.0 | -1 |
Gets the amount to shift X value from original curve. | def zIRh(YKHO) -> float:
return float(YKHO.dss_obj.XYCurvesF(gk2W.c_int32(4), gk2W.c_double(0))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KdwR(YKHO, wAVY) -> float:\n wAVY = i_Aq.check_float_param(wAVY)\n return float(YKHO.dss_obj.XYCurvesF(gk2W.c_int32(5), gk2W.c_double(wAVY)))",
"def NMoC(YKHO):\n return YKHO.x - YKHO.offset",
"def m6Me():\n return ((0.25 * WKvO + 0.75) * WKvO - 1.5) * WKvO - 2",
"def bufb(NGQK: Sequence[floa... | [
"0.65569335",
"0.6393618",
"0.6001156",
"0.5995149",
"0.5976282",
"0.59183425",
"0.5905446",
"0.5898929",
"0.5845319",
"0.58366793",
"0.58189315",
"0.57699335",
"0.5751608",
"0.5748109",
"0.57423717",
"0.57303536",
"0.5730051",
"0.57224935",
"0.5715305",
"0.570562",
"0.570469... | 0.6500198 | 1 |
Sets the amount to shift X value from original curve. | def KdwR(YKHO, wAVY) -> float:
wAVY = i_Aq.check_float_param(wAVY)
return float(YKHO.dss_obj.XYCurvesF(gk2W.c_int32(5), gk2W.c_double(wAVY))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YjSW(YKHO, kNbz):\n YKHO.x = kNbz",
"def BZN_(YKHO, Z5kt):\n YKHO.positionx = YKHO.positionx + YKHO.amount\n return YKHO.positionx",
"def tFjp(EcVT):\n ZnNw = LQPw(EcVT.X)\n EcVT.update(ZnNw)\n return EcVT",
"def VIZJ(YKHO, BWXx):\n YKHO.position[0] = BWXx",
"def lAY0(YKHO, Y9Vw):\... | [
"0.6458887",
"0.6203283",
"0.6127777",
"0.607945",
"0.60447365",
"0.603066",
"0.5987132",
"0.59496725",
"0.58954704",
"0.58609486",
"0.58055",
"0.57906365",
"0.5722999",
"0.5708155",
"0.5708155",
"0.5651732",
"0.56311274",
"0.56311274",
"0.56262946",
"0.5620136",
"0.5608478",... | 0.6096829 | 3 |
Sets the amount to shift Y value from original curve. | def rysT(YKHO, wAVY) -> float:
wAVY = i_Aq.check_float_param(wAVY)
return float(YKHO.dss_obj.XYCurvesF(gk2W.c_int32(7), gk2W.c_double(wAVY))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lcEV(YKHO, eLqP):\n YKHO.y = eLqP",
"def fuBA(YKHO, BWXx):\n YKHO._Y = BWXx",
"def z9NM(YKHO, BWXx):\n YKHO.position[1] = BWXx",
"def z9NM(YKHO, BWXx):\n YKHO.components[1] = BWXx",
"def z9NM(YKHO, BWXx):\n YKHO.components[1] = BWXx",
"def z9NM(YKHO, LVAh):\n YKHO._y = LVAh",
"def... | [
"0.69036645",
"0.6636268",
"0.65646815",
"0.64976007",
"0.64976007",
"0.6374737",
"0.63383204",
"0.6262409",
"0.6246471",
"0.621929",
"0.62125945",
"0.62117916",
"0.61952525",
"0.618615",
"0.61686647",
"0.61441106",
"0.6136226",
"0.6111145",
"0.6083079",
"0.6064591",
"0.60351... | 0.6355606 | 6 |
Gets the factor to scale Y values from original curve. | def zIHV(YKHO) -> float:
return float(YKHO.dss_obj.XYCurvesF(gk2W.c_int32(10), gk2W.c_double(0))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XZoj(YKHO, wAVY) -> float:\n wAVY = i_Aq.check_float_param(wAVY)\n return float(YKHO.dss_obj.XYCurvesF(gk2W.c_int32(11), gk2W.c_double(wAVY)))",
"def ZxUn(BWXx):\n m5hN.yscale(**locals())",
"def ZxUn(YKHO):\n nniR = [aNZO.get_yscale() for aNZO in YKHO._subaxes]\n return nniR",
"def dj63(YK... | [
"0.68518925",
"0.6663268",
"0.65233207",
"0.64875025",
"0.6467838",
"0.6406587",
"0.6263091",
"0.6227672",
"0.62132496",
"0.621313",
"0.6124604",
"0.6105014",
"0.6088854",
"0.608287",
"0.6073872",
"0.60674536",
"0.60631317",
"0.6058462",
"0.6038444",
"0.6037679",
"0.60177153"... | 0.7133073 | 0 |
Sets the factor to scale Y values from original curve. | def XZoj(YKHO, wAVY) -> float:
wAVY = i_Aq.check_float_param(wAVY)
return float(YKHO.dss_obj.XYCurvesF(gk2W.c_int32(11), gk2W.c_double(wAVY))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZxUn(YKHO, BWXx='linear'):\n for aNZO in YKHO._subaxes:\n aNZO.set_yscale(BWXx)\n YKHO.figure.canvas.draw()",
"def zjlW(YKHO, fuBA):\n assert isinstance(fuBA, (oyIN.ndarray, Z_Mn))\n QTBn = YKHO.update_model()\n YKHO.update_model(False)\n if YKHO.normalizer is not None:\n YKHO... | [
"0.75081146",
"0.6858008",
"0.68107396",
"0.68019193",
"0.67409706",
"0.673716",
"0.6663312",
"0.66326845",
"0.65760386",
"0.65181726",
"0.64641476",
"0.6408924",
"0.63801867",
"0.63801867",
"0.62524796",
"0.6243968",
"0.62426376",
"0.62181735",
"0.6199037",
"0.6192931",
"0.6... | 0.65079486 | 10 |
Initializes a single PanopticDeepLab decoder of layers.Layer. | def FIMM(YKHO, vKgq, FmSb, ZLU0, NVdy, g8iQ, OCm9, mWFP, N2Qq=False, SCAA='depthwise_separable_conv', Ymdl=ZylS.keras.layers.BatchNormalization):
super(BFcb, YKHO).__init__(name=mWFP)
YKHO._channel_axis = 3
YKHO._aspp = u2KK.ASPP(NVdy, OCm9, aspp_use_only_1x1_proj_conv=N2Qq, name='aspp', bn_layer=Ymdl)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, DzmQ, y72d, Ymdl=ZylS.keras.layers.BatchNormalization):\n super(iVRY, YKHO).__init__(name='PanopticDeepLab')\n PePB = [ZfUD.feature_key for ZfUD in y72d.low_level]\n ZLU0 = [ZfUD.channels_project for ZfUD in y72d.low_level]\n YKHO._semantic_decoder = BFcb(high_level_feature_name=DzmQ.fea... | [
"0.73221886",
"0.67310715",
"0.66408485",
"0.6260712",
"0.6168698",
"0.60930175",
"0.60601765",
"0.6049734",
"0.59970814",
"0.5992899",
"0.59640974",
"0.59540546",
"0.5933902",
"0.59291553",
"0.5921898",
"0.59215474",
"0.5911953",
"0.5879884",
"0.58628774",
"0.5854844",
"0.58... | 0.6604072 | 3 |
Resets the ASPP pooling layer to global average pooling. | def DzmR(YKHO):
YKHO._aspp.reset_pooling_layer() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DzmR(YKHO):\n YKHO._semantic_decoder.reset_pooling_layer()\n if YKHO._instance_decoder is not None:\n YKHO._instance_decoder.reset_pooling_layer()",
"def fjxy(YKHO):\n YKHO.mating_pool = []",
"def o17m(YKHO, EcAO):\n YKHO._aspp.set_pool_size(EcAO)",
"def OZmy(Emd4, vWye, g4y1, bwrw):\n... | [
"0.7554862",
"0.629558",
"0.58746326",
"0.5791968",
"0.57604885",
"0.5760475",
"0.5750768",
"0.56030494",
"0.55657035",
"0.553496",
"0.5532608",
"0.550204",
"0.54957354",
"0.54856956",
"0.5468703",
"0.54022026",
"0.5395914",
"0.5371068",
"0.5370663",
"0.5345092",
"0.53399026"... | 0.86640024 | 0 |
Initializes a single PanopticDeepLab head. | def FIMM(YKHO, Fgum, dxEX, II_x, mWFP, G_fK='depthwise_separable_conv', Ymdl=ZylS.keras.layers.BatchNormalization):
super(ANBV, YKHO).__init__(name=mWFP)
YKHO._pred_key = II_x
YKHO.conv_block = WUpd.StackedConv2DSame(conv_type=G_fK, num_layers=1, output_channels=Fgum, kernel_size=5, name='conv_block', use_b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, PqMZ: tf.keras.Model, iRLB: tf.keras.Model, ys0L: tf.keras.layers.Layer, fyqo: tf.keras.layers.Layer, _Q4a: Optional[tf.keras.Model]=None, aXyH: Optional[panoptic_deeplab_merge.PostProcessor]=None, **B2fa):\n super(c4_l, YKHO).__init__(**B2fa)\n YKHO._config_dict = {'backbone': PqMZ, 'semantic... | [
"0.6247763",
"0.62427413",
"0.6140338",
"0.6132792",
"0.6061848",
"0.5982211",
"0.5828008",
"0.58260304",
"0.58068585",
"0.58068585",
"0.58068585",
"0.58068585",
"0.5744543",
"0.5698922",
"0.5698922",
"0.5698922",
"0.5656525",
"0.5650814",
"0.56434244",
"0.56427056",
"0.56100... | 0.0 | -1 |
Initializes a PanopticDeepLab decoder. | def FIMM(YKHO, DzmQ, y72d, Ymdl=ZylS.keras.layers.BatchNormalization):
super(iVRY, YKHO).__init__(name='PanopticDeepLab')
PePB = [ZfUD.feature_key for ZfUD in y72d.low_level]
ZLU0 = [ZfUD.channels_project for ZfUD in y72d.low_level]
YKHO._semantic_decoder = BFcb(high_level_feature_name=DzmQ.feature_key,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, PqMZ: tf.keras.Model, iRLB: tf.keras.Model, ys0L: tf.keras.layers.Layer, fyqo: tf.keras.layers.Layer, _Q4a: Optional[tf.keras.Model]=None, aXyH: Optional[panoptic_deeplab_merge.PostProcessor]=None, **B2fa):\n super(c4_l, YKHO).__init__(**B2fa)\n YKHO._config_dict = {'backbone': PqMZ, 'semantic... | [
"0.6692689",
"0.61116683",
"0.59618396",
"0.5818309",
"0.5756397",
"0.569056",
"0.5644331",
"0.56145287",
"0.5603161",
"0.55748147",
"0.5552552",
"0.5529444",
"0.5466931",
"0.54613006",
"0.5426948",
"0.5392329",
"0.5387444",
"0.53614014",
"0.53488314",
"0.5342656",
"0.5319555... | 0.7286051 | 0 |
Resets the ASPP pooling layers to global average pooling. | def DzmR(YKHO):
YKHO._semantic_decoder.reset_pooling_layer()
if YKHO._instance_decoder is not None:
YKHO._instance_decoder.reset_pooling_layer() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DzmR(YKHO):\n YKHO._aspp.reset_pooling_layer()",
"def fjxy(YKHO):\n YKHO.mating_pool = []",
"def WGBA(YKHO):\n YKHO.weights = oyIN.zeros((XP5J.num_rovers, YKHO.n_weights))\n YKHO.in_layer = oyIN.zeros((XP5J.num_rovers, YKHO.n_inputs))\n YKHO.hid_layer = oyIN.zeros((XP5J.num_rovers, YKHO.n_no... | [
"0.874484",
"0.6409958",
"0.59012246",
"0.5812475",
"0.5745941",
"0.57268673",
"0.56944275",
"0.5670068",
"0.5540687",
"0.55281293",
"0.55054444",
"0.5482639",
"0.5475751",
"0.5463239",
"0.5461209",
"0.54516894",
"0.54464805",
"0.5445505",
"0.5428134",
"0.5425068",
"0.5421752... | 0.7678402 | 1 |
"params" is a dictionary containing w (angular frequency), kx (angular wavenumber), ex_list (unitless permittivity of each layer in xdirection), ez_list (ditto in z direction), mu_list (unitless permeability in ydirection). This function returns a new dictionary containing all those data PLUS kz_list, a list of kz in e... | def PLCd(NArs):
yzQ0 = NArs['w']
DMUU = NArs['kx']
nDmp = NArs['ex_list']
FxFb = NArs['ez_list']
pTTR = NArs['mu_list']
ywwl = len(FxFb)
assert ywwl == len(nDmp) == len(FxFb) == len(pTTR) >= 2
assert yzQ0 > 0
for CXYT in ['ex_list', 'ez_list', 'mu_list']:
for YRbF in range(yw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TFBZ(NArs):\n rosz = PLCd(_qLf(NArs))\n yzQ0 = rosz['w']\n vM5z = rosz['d_list']\n DMUU = rosz['kx']\n iMMz = rosz['kz_list']\n nDmp = rosz['ex_list']\n FxFb = rosz['ez_list']\n pTTR = rosz['mu_list']\n ywwl = len(pTTR)\n vb7U = fNS4(rosz)\n yVoA, Auq5 = oyIN.linalg.eig(vb7U)\n... | [
"0.6808118",
"0.6375971",
"0.58800775",
"0.5871339",
"0.5802168",
"0.57402164",
"0.5726071",
"0.5715336",
"0.5686229",
"0.5670122",
"0.56541234",
"0.56342363",
"0.5564652",
"0.55642027",
"0.5555333",
"0.55512416",
"0.55504936",
"0.55360514",
"0.5519573",
"0.55160856",
"0.5515... | 0.7805702 | 0 |
Return the layer index (0 through N1) in which you find the zcoordinate z. At a layer boundary, returns either one of those two layers arbitrarily. | def LTrE(epBp, NArs):
ywwl = len(NArs['d_list'])
for YRbF in range(ywwl):
if epBp <= NArs['layer_bottom_list'][YRbF]:
return YRbF - 1
return ywwl - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ceKl(gEmA: int, NpBf: Optional[int]=None) -> int:\n assert 0 <= gEmA <= 20\n if NpBf is None:\n return gEmA\n assert 0 <= NpBf <= 20\n return (NpBf + 1) * 21 + gEmA",
"def PVXS(YKHO, epBp):\n if epBp < YKHO.min_z or YKHO.max_z <= epBp:\n raise ValueError\n for YRbF in range(ep... | [
"0.6963449",
"0.67218643",
"0.6654992",
"0.6330411",
"0.63175285",
"0.6270758",
"0.6240972",
"0.6131223",
"0.6102039",
"0.60857546",
"0.6011387",
"0.5963897",
"0.59525484",
"0.5939461",
"0.5903523",
"0.5867593",
"0.58332527",
"0.57702476",
"0.57599545",
"0.5743295",
"0.568166... | 0.78421247 | 0 |
Called when the user specifies an intent for this skill | def E97p(McO3, cuiw):
E2VF = McO3['intent']
q8Qy = McO3['intent']['name']
print('************')
print(McO3)
if q8Qy == 'welcome_intent':
return VyUN.get_welcome_msg(E2VF, cuiw)
elif q8Qy == 'search_intent':
return VyUN.get_search_msg(E2VF, cuiw)
elif q8Qy == 'architecture':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r... | [
"0.7143966",
"0.6956116",
"0.6949057",
"0.6905333",
"0.68928874",
"0.67641324",
"0.6754843",
"0.6722764",
"0.6720773",
"0.67161995",
"0.6699252",
"0.6691263",
"0.6670276",
"0.6645522",
"0.6638686",
"0.6607724",
"0.6594981",
"0.6575682",
"0.6570076",
"0.65620786",
"0.65609014"... | 0.6642719 | 14 |
Test Agency lookup by subtier. | def MYRu():
SNZa = bAXD.make('references.ToptierAgency', toptier_code='xyz', name='yo')
Tzhd = bAXD.make('references.SubtierAgency', subtier_code='abc', name='hi')
bAXD.make('references.Agency', toptier_agency=SNZa, subtier_agency=bAXD.make('references.SubtierAgency', subtier_code='bbb'))
zuAY = bAXD.ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dwjN(WU34):\n Tzhd = cJQ3.objects.get(toptier_agency__cgac_code='013', subtier_agency__subtier_code='1341')\n X5CZ = cJQ3.objects.get(toptier_agency__cgac_code='013', toptier_flag=True)\n print('SUB: {}, TOP: {}'.format(Tzhd.toptier_agency, X5CZ.toptier_agency))\n assert Tzhd.toptier_agency == X5CZ... | [
"0.7781893",
"0.7689504",
"0.7563451",
"0.73967075",
"0.7393137",
"0.6469514",
"0.62636054",
"0.61552125",
"0.5756034",
"0.569268",
"0.56649166",
"0.56355953",
"0.56257945",
"0.5537344",
"0.55182505",
"0.5341854",
"0.5175669",
"0.5164294",
"0.5147646",
"0.5106575",
"0.5100656... | 0.7817973 | 0 |
Test Agency lookup by subtier. | def savd():
SNZa = bAXD.make('references.ToptierAgency', toptier_code='xyz', name='yo')
Tzhd = bAXD.make('references.SubtierAgency', subtier_code='abc', name='hi')
bAXD.make('references.Agency', toptier_agency=SNZa, subtier_agency=bAXD.make('references.SubtierAgency', subtier_code='bbb'))
zuAY = bAXD.ma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MYRu():\n SNZa = bAXD.make('references.ToptierAgency', toptier_code='xyz', name='yo')\n Tzhd = bAXD.make('references.SubtierAgency', subtier_code='abc', name='hi')\n bAXD.make('references.Agency', toptier_agency=SNZa, subtier_agency=bAXD.make('references.SubtierAgency', subtier_code='bbb'))\n zuAY ... | [
"0.7817973",
"0.7781893",
"0.7689504",
"0.73967075",
"0.7393137",
"0.6469514",
"0.62636054",
"0.61552125",
"0.5756034",
"0.569268",
"0.56649166",
"0.56355953",
"0.56257945",
"0.5537344",
"0.55182505",
"0.5341854",
"0.5175669",
"0.5164294",
"0.5147646",
"0.5106575",
"0.5100656... | 0.7563451 | 3 |
post an answer to a question | def m8z6(YKHO, JVBp):
nPrm = QePW.json
xzCw(nPrm, V8nd)
if nPrm['answer'] is not None and nPrm['answer'].strip() == '':
return ({'message': 'Please provide an answer'}, 400)
aafV = LdTk(JVBp, nPrm['answer'])
geh0 = aafV.post_answer()
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hPMl(YKHO, bAls):\n YKHO.messages_sent.append(bAls)\n return input(bAls)",
"def z7LA(YKHO):\n YKHO.post_meetup()\n return YKHO.client.post('api/v2/questions', headers={'Authorization': '{}'.format(YKHO.token())}, data=qQXR.dumps(YKHO.question), content_type='application/json')",
"def VXwH(YKHO)... | [
"0.7244064",
"0.7198138",
"0.7134266",
"0.70751995",
"0.69598126",
"0.69598126",
"0.6904651",
"0.6870204",
"0.6867406",
"0.6841298",
"0.68355626",
"0.682807",
"0.6646317",
"0.6627941",
"0.66170263",
"0.65946686",
"0.65898305",
"0.6527494",
"0.6519632",
"0.65176594",
"0.650409... | 0.71707684 | 2 |
Helper for building a conv2d layer. | def b_zE(KgjX, n5BH, G1Hx, *, _0fC=1, moMn=1, oug5=False):
assert G1Hx % 2 == 1, 'Only odd size kernels supported to avoid padding issues.'
KCHu, XP5J, Oa1e, Fg_i = (_0fC, (G1Hx - 1) // 2, moMn, oug5)
return U78l.Conv2d(KgjX, n5BH, G1Hx, stride=KCHu, padding=XP5J, groups=Oa1e, bias=Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def adXX(YKHO, g4y1, VqiK, Ot1W, mWFP, e5sz=False, FEri=1):\n if FEri > 1:\n g4y1 = ZylS.pad(g4y1, paddings=[[0, 0], [1, 0], [1, 0], [0, 0]], mode='CONSTANT')\n yIp6 = ZylS.layers.conv2d(inputs=g4y1, filters=VqiK, kernel_size=Ot1W, strides=[FEri, FEri], padding='SAME' if FEri == 1 else 'VALID', use_bi... | [
"0.76058155",
"0.7376415",
"0.73336285",
"0.7329594",
"0.73203355",
"0.728013",
"0.7242761",
"0.7238204",
"0.7225983",
"0.722589",
"0.7214021",
"0.721386",
"0.716578",
"0.70802724",
"0.70802724",
"0.70080996",
"0.69990337",
"0.6985278",
"0.6985278",
"0.6985278",
"0.6985278",
... | 0.65229636 | 62 |
Helper for building a linear layer. | def z8o0(KgjX, n5BH, *, oug5=False):
return U78l.Linear(KgjX, n5BH, bias=oug5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hLBI(YwQk, Sqw_):\n g4y1 = ht2j.randn(Sqw_, dtype=ht2j.float64).requires_grad_(True)\n oug5 = ht2j.ones((), dtype=ht2j.float64).requires_grad_(True)\n yvT9 = YwQk(g4y1, oug5)\n gEmA = U78l.Linear(Sqw_, len(yvT9))\n for YRbF, WKvO in enumerate(yvT9):\n g4y1.grad = None\n oug5.grad =... | [
"0.71131116",
"0.68448937",
"0.6676704",
"0.65724283",
"0.6543671",
"0.64902174",
"0.6476528",
"0.6473037",
"0.6460511",
"0.6439599",
"0.6378947",
"0.63731986",
"0.6314667",
"0.6261287",
"0.62058914",
"0.6201607",
"0.6151638",
"0.6141985",
"0.61394376",
"0.60950655",
"0.60574... | 0.6222696 | 14 |
Helper for building an activation layer. | def YDYE(v3qL=None):
v3qL = (v3qL or _Fei.MODEL.ACTIVATION_FUN).lower()
if v3qL == 'relu':
return U78l.ReLU(inplace=_Fei.MODEL.ACTIVATION_INPLACE)
elif v3qL == 'silu' or v3qL == 'swish':
try:
return ht2j.nn.SiLU()
except AttributeError:
return m_Dk()
elif ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RN9v(YKHO, N9LM):\n return {}",
"def gwuZ(Mz5r):\n if type(Mz5r) == list:\n if len(Mz5r) == 2:\n OYqn, Mzf9 = Mz5r\n if OYqn == 'elu':\n return q9ei(alpha=Mzf9)\n elif OYqn == 'leaky':\n return ybb1(alpha=Mzf9)\n elif OYqn... | [
"0.728228",
"0.6942284",
"0.6899826",
"0.6887086",
"0.6849536",
"0.6820246",
"0.6817062",
"0.66507107",
"0.6643892",
"0.66202193",
"0.65660816",
"0.6565229",
"0.6513071",
"0.6508596",
"0.64989275",
"0.64343494",
"0.6427853",
"0.64264524",
"0.6413621",
"0.637558",
"0.6364205",... | 0.60476947 | 49 |
Performs ResNetstyle weight initialization. | def vB93(r8hN):
if isinstance(r8hN, U78l.Conv2d):
XNhq = r8hN.kernel_size[0] * r8hN.kernel_size[1] * r8hN.out_channels
r8hN.weight.data.normal_(mean=0.0, std=oyIN.sqrt(2.0 / XNhq))
elif isinstance(r8hN, U78l.BatchNorm2d):
ylHS = _Fei.BN.ZERO_INIT_FINAL_GAMMA
ylHS = hasattr(r8hN, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)",
"def i7WW(YKHO):\n uHk4(YKHO.norm0)",
"def C0Lv(YKHO):\n pass",
"def vB93(C3ST):\n ...",
"def vJuA(YKHO):\n raise NotImplementedError",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights... | [
"0.794305",
"0.7931965",
"0.78618616",
"0.779945",
"0.7740557",
"0.7665479",
"0.76638657",
"0.7567309",
"0.7430468",
"0.74122566",
"0.73904157",
"0.7377073",
"0.73491365",
"0.7320014",
"0.7317331",
"0.7291626",
"0.72672474",
"0.7248729",
"0.72031635",
"0.7198896",
"0.7198735"... | 0.0 | -1 |
Execute git showprefix command & return the result. | def caYU(YKHO, zOGz):
XP5J = fGmS(['git', 'rev-parse', '--show-prefix'], stdout=h5ye, stderr=h5ye, cwd=Hy7s.path.join(YKHO.root_dir, zOGz))
oqgE, w55O = XP5J.communicate()
if XP5J.returncode == 0:
Aofo = {'code': XP5J.returncode, 'under_repo_path': oqgE.decode('utf-8').strip('\n')}
return Ao... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r3p3(y0cW):\n return Yn3K.check_output(['git', 'for-each-ref', '--format=%(refname)', y0cW]).decode().splitlines()",
"def RVGT(YKHO) -> str:\n return YKHO.config['Core'].get('CmdPrefix', '!')",
"async def get_command_prefix(YKHO, lSCo: Guild) -> str:\n if (y0cW := YKHO._cache[lSCo.id].prefix) is N... | [
"0.61059946",
"0.6034955",
"0.5924407",
"0.58987445",
"0.58825487",
"0.5787618",
"0.5783249",
"0.5764955",
"0.576039",
"0.57314634",
"0.56335336",
"0.56047255",
"0.5542272",
"0.5529859",
"0.54658985",
"0.54455745",
"0.54366654",
"0.5388389",
"0.5387387",
"0.53846246",
"0.5327... | 0.83287 | 0 |
Execute 'git branch a' to get current branch details in case of detached HEAD | def Q5ki(YKHO, zOGz):
oUZx = ['git', 'branch', '-a']
XP5J = Yn3K.Popen(oUZx, stdout=h5ye, stderr=h5ye, cwd=Hy7s.path.join(YKHO.root_dir, zOGz))
hlel, P1dF = XP5J.communicate()
if XP5J.returncode == 0:
for jehQ in hlel.decode('utf-8').splitlines():
jehQ = jehQ.strip()
if j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RVbN():\n Aofo, hlel = Slaj('git branch', False, False)\n jehQ = None\n for zFiD in hlel:\n if zFiD.startswith('*'):\n jehQ = zFiD.split('*')[-1].strip()\n break\n return jehQ",
"def jehQ(YKHO, zOGz):\n XP5J = Yn3K.Popen(['git', 'show-ref'], stdout=h5ye, stderr=h5y... | [
"0.7474854",
"0.72879326",
"0.7252333",
"0.7165187",
"0.6856834",
"0.68022025",
"0.6462068",
"0.642568",
"0.6397609",
"0.63859",
"0.6352266",
"0.6274084",
"0.62251276",
"0.62018996",
"0.6192054",
"0.61843634",
"0.61769795",
"0.6157888",
"0.61046886",
"0.6098733",
"0.6096977",... | 0.6443435 | 7 |
Execute 'git revparse abbrevref branch_name@{upstream}' to get upstream branch name tracked by given local branch. | def Jjm6(YKHO, zOGz, srZT):
oUZx = ['git', 'rev-parse', '--abbrev-ref', '{}@{{upstream}}'.format(srZT)]
XP5J = Yn3K.Popen(oUZx, stdout=h5ye, stderr=h5ye, cwd=Hy7s.path.join(YKHO.root_dir, zOGz))
hlel, P1dF = XP5J.communicate()
if XP5J.returncode == 0:
return hlel.decode('utf-8').strip()
elif... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YW7W(AGPF):\n return Yn3K.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], cwd=AGPF).strip()",
"def IFzv(jehQ):\n return jehQ.replace('refs/heads/', '')",
"def jehQ(YKHO):\n return Hy7s.popen('git rev-parse --abbrev-ref HEAD').read().strip()",
"def dUOl(boHx, bf9h='HEAD'):\n return ... | [
"0.71057904",
"0.7024317",
"0.6779354",
"0.6479095",
"0.6451836",
"0.63070357",
"0.62569445",
"0.59796923",
"0.5976724",
"0.5974788",
"0.59745777",
"0.59732896",
"0.5968235",
"0.5957883",
"0.58169025",
"0.5788772",
"0.5775885",
"0.5770128",
"0.56852037",
"0.56796134",
"0.5646... | 0.6603801 | 3 |
Sets the name of this Clan. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zPdd(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):... | [
"0.80973566",
"0.8062854",
"0.8062854",
"0.8062854",
"0.8062854",
"0.8062854",
"0.7999819",
"0.79666376",
"0.79074615",
"0.79074615",
"0.7875422",
"0.7867688",
"0.78507364",
"0.7822552",
"0.7820742",
"0.7820742",
"0.776812",
"0.7703301",
"0.76225805",
"0.7610843",
"0.7610843"... | 0.0 | -1 |
Sets the badge_id of this Clan. | def fkgK(YKHO, fkgK):
YKHO._badge_id = fkgK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MZKG(YKHO, MZKG):\n YKHO._notification_id = MZKG",
"def nWrh(YKHO, gbpR):\n pass",
"def yJhm(YKHO, yJhm):\n YKHO._bundle_id = yJhm",
"def HMFB(YKHO, HMFB):\n YKHO._loan_id = HMFB",
"def ekm0(YKHO, eEzR):\n YKHO._id = eEzR",
"def Bnkd(YKHO, Bnkd):\n YKHO._gid = Bnkd",
"def Bnkd(YKH... | [
"0.59174496",
"0.58539605",
"0.5800103",
"0.5747081",
"0.5719728",
"0.5680777",
"0.5680777",
"0.5680777",
"0.5579899",
"0.55292284",
"0.55292284",
"0.55292284",
"0.55292284",
"0.55292284",
"0.55292284",
"0.54735214",
"0.5393793",
"0.5393793",
"0.53526014",
"0.5335957",
"0.532... | 0.8268331 | 0 |
Sets the required_trophies of this Clan. | def NyQH(YKHO, NyQH):
YKHO._required_trophies = NyQH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Phpk(YKHO, Phpk):\n YKHO._starting_trophies = Phpk",
"def jeGQ(YKHO, jeGQ):\n YKHO._required = jeGQ",
"def jeGQ(YKHO, jeGQ):\n YKHO._required = jeGQ",
"def jeGQ(YKHO, jeGQ):\n YKHO._required = jeGQ",
"def jeGQ(YKHO, jeGQ):\n YKHO._required = jeGQ",
"def n9ns(YKHO, gLZs: int):\n YKHO... | [
"0.63429874",
"0.54329276",
"0.54329276",
"0.54329276",
"0.54329276",
"0.5427912",
"0.52866733",
"0.52805066",
"0.5208635",
"0.49984428",
"0.49629155",
"0.49217412",
"0.48641327",
"0.48267636",
"0.47932696",
"0.47898537",
"0.475513",
"0.47385138",
"0.4725301",
"0.47104645",
"... | 0.83047855 | 0 |
Sets the donations_per_week of this Clan. | def Kd4y(YKHO, Kd4y):
YKHO._donations_per_week = Kd4y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7AH(YKHO, H7AH):\n YKHO._weekly_days = H7AH",
"def psoX(YKHO, psoX):\n YKHO._weekly_limit = psoX",
"def Vzk6(YKHO, Vzk6):\n YKHO._week = Vzk6",
"def PEro(YKHO, VOlW, *, KFIZ, yNCu, **B2fa):\n YKHO.set_daily(VOlW, **B2fa)\n YKHO.__days_of_week = set(KFIZ)\n YKHO.__first_day_of_week = yN... | [
"0.6115252",
"0.60212094",
"0.57366747",
"0.52707773",
"0.5213389",
"0.507831",
"0.50685537",
"0.50505716",
"0.50256926",
"0.48610085",
"0.4817383",
"0.4725476",
"0.47164652",
"0.46518594",
"0.46384618",
"0.46010986",
"0.4576828",
"0.45617372",
"0.4553825",
"0.45285034",
"0.4... | 0.86958605 | 0 |
Sets the description of this Clan. | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO._description = JBZA",
"def prlj(YKHO, JBZA):\n YKHO.description = str(JBZA)",
"def AqxA(YKHO, QoB4: str)... | [
"0.8264153",
"0.8211607",
"0.8184949",
"0.81457514",
"0.8129541",
"0.79315096",
"0.7905649",
"0.7905649",
"0.7905649",
"0.7905649",
"0.78128994",
"0.78128994",
"0.78128994",
"0.78128994",
"0.77492315",
"0.7690724",
"0.76306623",
"0.76065713",
"0.7592899",
"0.7558441",
"0.7550... | 0.78621995 | 36 |
Sets the clan_chest_status of this Clan. | def FSTU(YKHO, FSTU):
YKHO._clan_chest_status = FSTU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OS6A(YKHO, OS6A):\n YKHO._clan_chest_level = OS6A",
"def xeoM(YKHO, xeoM):\n YKHO._clan_chest_max_level = xeoM",
"def KC3y(YKHO, KC3y):\n YKHO._clan = KC3y",
"def FFzI(YKHO, FFzI):\n YKHO._clan_score = FFzI",
"def w8Lw(YKHO, jGRS):\n YKHO.status = jGRS",
"def w8Lw(YKHO, jGRS):\n YKH... | [
"0.72924536",
"0.57138175",
"0.57025963",
"0.5697975",
"0.56055117",
"0.56055117",
"0.56055117",
"0.5554727",
"0.54681146",
"0.53389376",
"0.53085625",
"0.5270748",
"0.52576107",
"0.5222537",
"0.5202103",
"0.51878464",
"0.5187555",
"0.5145184",
"0.5073611",
"0.506757",
"0.504... | 0.8854483 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, PPn3):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088463",
"0.8088463",
"0.80553037",
"0.7983272",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.8455985",
"0.83913255",
"0.81440157",
"0.8140831",
"0.8132328",
"0.80937284",
"0.809181",
"0.809181",
"0.809181",
"0.808509",
"0.808509",
"0.8076134",
"0.8076134",
"0.8065528"
] | 0.0 | -1 |
Test of pandas write to csv function. test_data_r DataFrame read with pandas function test_filtered_data DataFrame from created functions | def NppO(i95p):
rmjO.write_data(i95p, directory='Test_files/test_top_products.csv')
ccML = rLdf.read_csv('Test_files/test_top_products.csv')
J3WZ(ccML, i95p) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N0bj():\n jQ3Z = rLdf.DataFrame(['a', 'b', 'c'])\n jQ3Z.to_csv(pmON + '/fakeCSV.csv')\n Hy7s.rename('fakeCSV.csv', 'data.csv')",
"def f18e() -> None:\n AEPt.write_dataframe()\n assert Hy7s.path.isfile('Airbnb.csv') == True",
"def S5CC(YKHO):\n ewCu = DLnL.get_counter()\n LtY3 = DLnL.cr... | [
"0.66377884",
"0.6545651",
"0.636206",
"0.632532",
"0.63055974",
"0.6222229",
"0.6190178",
"0.5997063",
"0.5979462",
"0.59663147",
"0.5942057",
"0.59268534",
"0.5900926",
"0.58566844",
"0.5846982",
"0.58243686",
"0.58136487",
"0.5804839",
"0.5800642",
"0.5799701",
"0.57953906... | 0.7724291 | 0 |
Getter pentru atributul __min_confidence. | def _EbQ(YKHO):
return YKHO.__min_confidence | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KDOb(YKHO) -> float:\n return YKHO._min_confidence",
"def OlT9(YKHO, LWLc):\n YKHO.__min_confidence = LWLc",
"def la9G(YKHO):\n return YKHO._confidence",
"def la9G(YKHO):\n return YKHO._confidence",
"def la9G(YKHO) -> float:\n return YKHO._confidence",
"def HlS4(YKHO):\n return YKHO... | [
"0.8523157",
"0.76282865",
"0.741227",
"0.741227",
"0.71796274",
"0.69774187",
"0.69677085",
"0.6938508",
"0.6705979",
"0.65639347",
"0.6543416",
"0.6515097",
"0.64491266",
"0.6446821",
"0.63807154",
"0.63723004",
"0.63427204",
"0.630076",
"0.6218631",
"0.62124974",
"0.620253... | 0.90395373 | 0 |
Getter pentru atributul _medie_confidence. | def HlS4(YKHO):
return YKHO.__medie_confidence | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la9G(YKHO):\n return YKHO._confidence",
"def la9G(YKHO):\n return YKHO._confidence",
"def IIOv(YKHO):\n qoQs = 0\n i5jP = 0\n for geyT in YKHO.__results['conf']:\n qoQs += int(geyT)\n i5jP += 1\n qoQs /= i5jP\n return qoQs",
"def la9G(YKHO) -> float:\n return YKHO._c... | [
"0.7377788",
"0.7377788",
"0.7309912",
"0.6992883",
"0.6892211",
"0.6857149",
"0.63752836",
"0.6246596",
"0.58325344",
"0.58325344",
"0.56074905",
"0.55653125",
"0.554705",
"0.554705",
"0.5516829",
"0.55109423",
"0.55109423",
"0.5501256",
"0.5490215",
"0.5423888",
"0.5419406"... | 0.9078658 | 0 |
Reset and initiate a new episode in the environment. | def SiRx(YKHO, dt0H=False):
if YKHO._scores is not None:
YKHO._score_history += (oyIN.mean(YKHO._scores),)
YKHO._info = YKHO._env.reset(train_mode=dt0H)[YKHO._brain_name]
YKHO._scores = oyIN.zeros(YKHO.get_agent_size())
return YKHO._info.vector_observations | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnkt(YKHO, Tpgu='active'):\n Ppsi = YKHO._environment.reset()\n return YKHO._agent.begin_episode(Tpgu, Ppsi)",
"def n5Kk(YKHO):\n YKHO.last_sensation = YKHO.env()\n YKHO.next_action = YKHO.agent(YKHO.last_sensation)",
"def pLnl(YKHO):\n YKHO.lastState = None\n YKHO.lastAction = None\n ... | [
"0.76193005",
"0.7611589",
"0.74994534",
"0.7306433",
"0.72016984",
"0.71067774",
"0.70161414",
"0.69388556",
"0.6845876",
"0.6775926",
"0.67268443",
"0.6721903",
"0.6721903",
"0.6685957",
"0.66748244",
"0.6656482",
"0.66065323",
"0.651383",
"0.6492164",
"0.64756376",
"0.6416... | 0.0 | -1 |
Return the cumulative average reward of the current episode. | def hckV(YKHO):
return oyIN.max(YKHO._scores) if YKHO._scores is not None else YKHO._score_history[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mdZy(sEAN, Qabx, j7hk):\n hSfT = 0.0\n for bGrB in range(j7hk):\n QTBn = sEAN.reset()\n _ins = False\n hhie = 0.0\n while not _ins:\n XeOP = Qabx(QTBn)\n rxHc, vOGg, _ins, bGrB = sEAN.step(XeOP)\n if _ins:\n vOGg = -1.0\n ... | [
"0.74970686",
"0.74853575",
"0.746575",
"0.74554896",
"0.72942895",
"0.72631377",
"0.72631377",
"0.7206196",
"0.7206196",
"0.7206196",
"0.71509546",
"0.7147016",
"0.69452465",
"0.69452465",
"0.6909704",
"0.67942137",
"0.67004323",
"0.6653196",
"0.65607065",
"0.6539264",
"0.65... | 0.0 | -1 |
Return the cumulative average reward of all episodes. | def l3mk(YKHO):
return YKHO._score_history | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mdZy(sEAN, Qabx, j7hk):\n hSfT = 0.0\n for bGrB in range(j7hk):\n QTBn = sEAN.reset()\n _ins = False\n hhie = 0.0\n while not _ins:\n XeOP = Qabx(QTBn)\n rxHc, vOGg, _ins, bGrB = sEAN.step(XeOP)\n if _ins:\n vOGg = -1.0\n ... | [
"0.758039",
"0.72312915",
"0.7189153",
"0.70355904",
"0.7032392",
"0.6994628",
"0.6839585",
"0.67961115",
"0.67961115",
"0.6749009",
"0.6618799",
"0.6612154",
"0.66022915",
"0.65630287",
"0.6562718",
"0.65486854",
"0.6539658",
"0.6539658",
"0.6539658",
"0.6395119",
"0.6379173... | 0.0 | -1 |
Clear the cumulative average reward of all episodes. | def hahK(YKHO):
YKHO._scores = None
YKHO._score_history = () | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.tracker.reset()\n YKHO.total_max_q = 0.0\n YKHO.episode_step = 0\n YKHO.episode += 1",
"def SiRx(YKHO):\n YKHO._value_estimates[:] = YKHO.prior\n YKHO.action_attempts[:] = 0\n YKHO.last_action = None\n YKHO.t = 0",
"def PpHP(YKHO) -> None:\n for YWSi in YKHO.re... | [
"0.68802357",
"0.66505903",
"0.65826684",
"0.6550821",
"0.65490127",
"0.65407825",
"0.6533738",
"0.65146095",
"0.64866084",
"0.6469025",
"0.64294916",
"0.64294916",
"0.63664365",
"0.6358061",
"0.6355953",
"0.63371485",
"0.6332964",
"0.63301295",
"0.630464",
"0.630422",
"0.629... | 0.58268684 | 57 |
Create a couple auth sets in various states, including 'preauthorized'. The fixture is specific to testing internal PUT /devices/{id}/status. Some common funcs are reused, but existing common fixtures don't fit the bill. | def eNW7(Can8, x8fW):
return keyK(x8fW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D9my(Can8, x8fW):\n MEJw = {}\n with Evvb.fake_tenantadm():\n for a1PO in Zo7_:\n MEJw[a1PO] = keyK(x8fW, a1PO)\n return MEJw",
"def FCbF(YKHO):\n YKHO.client = iJSR()\n CsU1 = {'username': 'user-authlist', 'password': 'password', 'email': 'test@user.cl', 'first_name': 'user-... | [
"0.6460186",
"0.6456053",
"0.6365276",
"0.6332338",
"0.6313852",
"0.628525",
"0.62742114",
"0.62251467",
"0.61645216",
"0.6090005",
"0.608271",
"0.6043193",
"0.6024283",
"0.60211396",
"0.6011293",
"0.5991708",
"0.5989522",
"0.59624475",
"0.5958706",
"0.5950985",
"0.59474415",... | 0.66291475 | 0 |
Create a couple auth sets in various states, including 'preauthorized', in a MT context (2 tenants). The fixture is specific to testing internal PUT /devices/{id}/status. | def D9my(Can8, x8fW):
MEJw = {}
with Evvb.fake_tenantadm():
for a1PO in Zo7_:
MEJw[a1PO] = keyK(x8fW, a1PO)
return MEJw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.client = iJSR()\n CsU1 = {'username': 'user-authlist', 'password': 'password', 'email': 'test@user.cl', 'first_name': 'user-authlist', 'last_name': ''}\n MULR = {'username': 'user-normal', 'password': 'password', 'email': 'test@user.cl', 'first_name': 'user-normal', 'last_name': ''}... | [
"0.64302176",
"0.61763",
"0.6169329",
"0.61172134",
"0.60065144",
"0.5984644",
"0.5925554",
"0.58845514",
"0.5852329",
"0.5850194",
"0.58440864",
"0.58432055",
"0.583555",
"0.58326703",
"0.58108956",
"0.5752648",
"0.5743863",
"0.57385606",
"0.5737821",
"0.57343847",
"0.573131... | 0.6444135 | 0 |
Calcute the distance between to location point by longitude and latitude | def ZJvs(GgQG, igSk, tk0B, TGuP):
GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])
Dq4M = 6371
jzdc = YUNn((TGuP - igSk) / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn((tk0B - GgQG) / 2) ** 2
Z9rn = 2 * P099(PZyS(jzdc))
Csk6 = Z9rn * Dq4M
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s7yO(YKHO, Rci7):\n return d8UF.getDistance((YKHO.latitude, YKHO.longitude), Rci7)",
"def mOUS(IM3G, _3JW):\n WKvO = _3JW.x - IM3G.x\n LVAh = _3JW.y - IM3G.y\n epBp = _3JW.z - IM3G.z\n CkYf = oyIN.linalg.norm([WKvO, LVAh, epBp]) + oyIN.finfo(float).eps\n return CkYf",
"def mOUS(IM3G, _3JW... | [
"0.7903324",
"0.73969567",
"0.73969567",
"0.7347176",
"0.7318489",
"0.72100395",
"0.71392787",
"0.71267563",
"0.7072397",
"0.7056978",
"0.7053601",
"0.703918",
"0.703918",
"0.703918",
"0.703918",
"0.703918",
"0.70092225",
"0.69955146",
"0.69721884",
"0.6954898",
"0.6935185",
... | 0.0 | -1 |
Map boxes from the (x_min, y_min, x_max, y_max) format to the (x_ctr, y_ctr, width, height) format This should work equally well for np arrays or tf tensors | def kkaO(oUSw, r0DR=False):
if not r0DR:
oUSw = oyIN.copy(oUSw)
oUSw[:, 2] = oUSw[:2] - oUSw[:, 0]
oUSw[:, 3] = oUSw[:3] - oUSw[:, 1]
oUSw[:, 0] += 0.5 * oUSw[:, 2]
oUSw[:, 1] += 0.5 * oUSw[:, 3]
return oUSw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLIR(YKHO, oUSw, H2v2, TVTK):\n Z_jk = oyIN.zeros_like(oUSw)\n Z_jk[:, 0] = oUSw[:, 0] * H2v2\n Z_jk[:, 1] = oUSw[:, 1] * TVTK\n Z_jk[:, 2] = oUSw[:, 2] * H2v2\n Z_jk[:, 3] = oUSw[:, 3] * TVTK\n return Z_jk",
"def h1D9(oUSw, H2v2, TVTK):\n Z_jk = oyIN.zeros_like(oUSw)\n Z_jk[:, 0] = o... | [
"0.6983423",
"0.682791",
"0.6460341",
"0.6421834",
"0.63771826",
"0.63394135",
"0.6292141",
"0.6289745",
"0.62322646",
"0.6230314",
"0.6225671",
"0.62188447",
"0.62044215",
"0.6180487",
"0.61774206",
"0.6165569",
"0.61506706",
"0.6136353",
"0.6128254",
"0.61241853",
"0.610954... | 0.0 | -1 |
Constructs a `BertConfig` from a Python dictionary of parameters. | def jG8h(Emd4, KGvk):
GPtr = tnop(vocab_size=None)
for H5ew, BWXx in KGvk.items():
GPtr.__dict__[H5ew] = BWXx
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, KGvk):\n GPtr = tnop(max_seq_length=None, vocab_size=None)\n for H5ew, BWXx in jKi7.iteritems(KGvk):\n GPtr.__dict__[H5ew] = BWXx\n return GPtr",
"def jG8h(Emd4, KGvk):\n GPtr = tnop(vocab_size_or_config_json_file=-1)\n for H5ew, BWXx in KGvk.items():\n GPtr.__dict__[H... | [
"0.71663034",
"0.6755975",
"0.6755975",
"0.6755975",
"0.6446094",
"0.6409663",
"0.62960255",
"0.6256366",
"0.59984165",
"0.5973467",
"0.59622306",
"0.59601086",
"0.5949448",
"0.5949448",
"0.592684",
"0.5828971",
"0.57762665",
"0.57383204",
"0.57319874",
"0.5730355",
"0.560631... | 0.6759385 | 1 |
Serializes this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict... | [
"0.84213614",
"0.8404149",
"0.8361815",
"0.83085287",
"0.8282512",
"0.8282512",
"0.8282512",
"0.8282512",
"0.8282512",
"0.8282512",
"0.82356626",
"0.8217365",
"0.8213078",
"0.82028514",
"0.8181517",
"0.8179291",
"0.8173084",
"0.8153445",
"0.8117766",
"0.80902547",
"0.80730605... | 0.0 | -1 |
Serializes this instance to a JSON string. | def IZ3T(YKHO):
return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d... | [
"0.89013636",
"0.88374937",
"0.8804384",
"0.8804384",
"0.8804384",
"0.8804384",
"0.8804384",
"0.8804384",
"0.8804384",
"0.8804384",
"0.8804384",
"0.8714153",
"0.8636141",
"0.86186236",
"0.8597715",
"0.8570726",
"0.8567598",
"0.8567598",
"0.84452665",
"0.84452665",
"0.84452665... | 0.0 | -1 |
Return the raw content of the manifest (i.e. the text file). It needs to be parsed to be of any practical use. | def So52(qIxc):
if Hy7s.path.exists(qIxc.manifest_location):
S6k_ = qIxc.manifest_location
RKD7('INFO', 'Using manifest file at location: {}'.format(S6k_))
with open(S6k_, 'r') as wJFV:
xbac = wJFV.read()
else:
xbac = Hcwd
RKD7('TRACE', 'Raw manifest contents: {}'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cSyE(YKHO):\n Kz8N = YKHO.open(YKHO.urls['manifest'])\n return Kz8N.read()",
"def VBTH(YKHO, K5WD, AGPF):\n return None",
"def fyYz(PTzw):\n d7u0(PTzw)\n QlfH = _jtk(PTzw)\n return xLxe(QlfH)",
"def oI9l(gIsw):\n nHI3 = open(gIsw, 'rb')\n try:\n return PObv(nHI3)\n final... | [
"0.7207048",
"0.7077067",
"0.6828709",
"0.67457515",
"0.67026746",
"0.65474397",
"0.64228165",
"0.6368967",
"0.63276255",
"0.6327144",
"0.63010377",
"0.621979",
"0.62109387",
"0.61506087",
"0.6116406",
"0.6116406",
"0.61138344",
"0.60180944",
"0.6012399",
"0.6007664",
"0.5991... | 0.73306626 | 0 |
(On a live db) drops all foreign key constraints before dropping all tables. Workaround for SQLAlchemy not doing DROP CASCADE for drop_all() | def bQxs():
from sqlalchemy.engine.reflection import Inspector
from sqlalchemy.schema import DropConstraint, DropTable, MetaData, Table
hAVj = NCls.engine.connect()
uPnQ = hAVj.begin()
ckTe = Inspector.from_engine(NCls.engine)
e5kH = MetaData()
xU0C = []
oZV0 = []
for GTA_ in ckTe.ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQxs():\n from sqlalchemy.engine.reflection import Inspector\n from sqlalchemy.schema import DropConstraint, DropTable, MetaData, Table\n hAVj = NCls.engine.connect()\n uPnQ = hAVj.begin()\n ckTe = Inspector.from_engine(NCls.engine)\n e5kH = MetaData()\n xU0C = []\n oZV0 = []\n for G... | [
"0.8310194",
"0.7779926",
"0.75747436",
"0.7514917",
"0.7466314",
"0.7278043",
"0.72485375",
"0.722998",
"0.71626633",
"0.71427345",
"0.7111776",
"0.7109257",
"0.7046072",
"0.69923794",
"0.6970264",
"0.69441855",
"0.6853205",
"0.6848049",
"0.6833532",
"0.6689668",
"0.66810393... | 0.83014876 | 1 |
Get all function parameters with default values. | def OqPV(JfyU, qIxc=(), B2fa=None, lA4_=False, ev4C=False, WmM4=None):
cnE6, NArs, B2fa = fXYb(func=JfyU, args=qIxc, kwargs=B2fa, onlykeys=lA4_, onlyused=ev4C)
for H2v5, H5ew in zip(cnE6, NArs):
if H2v5 and H5ew not in B2fa:
B2fa[H5ew] = WmM4
if lA4_:
return B2fa
return (qIxc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwg0(JfyU):\n aadv = tq_1.signature(JfyU)\n return {G1Hx: Ty9i.default for G1Hx, Ty9i in aadv.parameters.items() if Ty9i.default is not tq_1.Parameter.empty}",
"def OqPV(YKHO):\n NArs = {}\n for XP5J in YKHO.DEFAULT_VALUES.keys():\n NArs[XP5J] = getattr(YKHO, XP5J)\n return NArs",
"de... | [
"0.7991095",
"0.72307616",
"0.7216641",
"0.7215457",
"0.7177556",
"0.6949219",
"0.69382375",
"0.69041574",
"0.6832772",
"0.67613566",
"0.6724417",
"0.67017615",
"0.66662735",
"0.66280305",
"0.6593104",
"0.6578593",
"0.65332985",
"0.6519495",
"0.65187293",
"0.6476483",
"0.6412... | 0.63243324 | 30 |
Creates new Carrier of the same class with parameters of this instance. | def cl53(YKHO, *qIxc, **B2fa):
qIxc, B2fa = YKHO.get_arguments(qIxc, B2fa)
QGkr = type(YKHO)(*qIxc, **B2fa)
return QGkr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, NArs):\n YKHO.time = fCoM()\n YKHO._cars = []\n YKHO._enterQueue = []\n YKHO._lights = []\n YKHO._road = XFKR()\n YKHO._lastCarGenerationTime = fCoM()\n YKHO.params = NArs\n YKHO._loggerName = 'kts46.roadModel'\n YKHO._logger = G9jH.getLogger(YKHO._loggerName)\n YKHO._l... | [
"0.59102464",
"0.5751534",
"0.5751534",
"0.5751534",
"0.57425714",
"0.57342905",
"0.5712459",
"0.57033104",
"0.5611247",
"0.5552669",
"0.5539888",
"0.54993415",
"0.54993415",
"0.54993415",
"0.54993415",
"0.54993415",
"0.54993415",
"0.5457987",
"0.54372215",
"0.5429669",
"0.54... | 0.0 | -1 |
Creation time formated string | def XAPA(YKHO):
return '%Y/%m/%d %I:%M:%S'.format(YKHO.creation_time) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d5tn(YKHO):\n i8WE = ITS7.localtime(YKHO._create_ts)\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', i8WE)",
"def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')",
"def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_time')",
"def bZt2(YKHO) -> str:\n return qe4Y.get(YKHO, 'cr... | [
"0.8071289",
"0.7862688",
"0.7862688",
"0.7862688",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"0.7751866",
"... | 0.8681965 | 0 |
Return (discounted) sum of rewards. | def krXm(YKHO, KMvS: float=1.0):
f8HR = len(YKHO)
assert f8HR > 0, 'called on empty trajectory'
vwlo = YKHO.reward
bnZy = [KMvS ** YRbF for YRbF in range(f8HR)]
return sum((vOGg * FMQW for vOGg, FMQW in zip(vwlo, bnZy))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbRe(YKHO, FMQW):\n GPIy = len(YKHO)\n return (1 - FMQW) * oyIN.sum(FMQW ** oyIN.arange(GPIy) * YKHO.rewards)",
"def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for a1PO in reversed(range(0, len(vwlo))):\n S8qo = S8qo * lA6Z + vwlo[a1PO]\n g2lU[a1PO] = S8qo\n retur... | [
"0.79736036",
"0.76155037",
"0.7552798",
"0.74747086",
"0.73849505",
"0.7284605",
"0.7278386",
"0.7269382",
"0.7249274",
"0.7150412",
"0.70134884",
"0.6938608",
"0.6938608",
"0.6919903",
"0.6900073",
"0.6883275",
"0.6786912",
"0.67181003",
"0.66741055",
"0.6637312",
"0.662459... | 0.0 | -1 |
give one sample of transition matrix self._M and set to itself | def mvm2(YKHO):
E3D9 = oyIN.random.normal(YKHO._mu.reshape(-1), YKHO._sig).reshape(YKHO.shape)
return E3D9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jvlo(YKHO):\n YKHO.transition_matrix = YKHO.markovModel._get_transmat()[:]\n for YRbF in range(len(YKHO.transition_matrix)):\n d6pt = oyIN.argmax(YKHO.transition_matrix[YRbF, :])\n if d6pt == YRbF:\n YKHO.transition_matrix[YRbF, d6pt] = 0",
"def SZFh(YKHO, vb7U: TxMatrix) -> No... | [
"0.6716518",
"0.64793944",
"0.6314981",
"0.6110422",
"0.60836154",
"0.6009614",
"0.59421176",
"0.59378177",
"0.5912435",
"0.58599097",
"0.58462507",
"0.5838158",
"0.58322746",
"0.58322746",
"0.58322746",
"0.58322746",
"0.58322746",
"0.58322746",
"0.58322746",
"0.58322746",
"0... | 0.0 | -1 |
Return a proof of formula via AXIOMATIC_SYSTEM_IMPLIES_NOT from the assumptions that all variables are valued as in model, with the assumptions being ordered alphabetically by the names of the variables. It is assumed that formula is true in model, and may only have the operators implies and not in it | def Je2L(l9Ur, C3ST):
WNtM = qlG4(U2wA(C3ST), l9Ur)
Nqlg = rIOH(WNtM)
C3rK(l9Ur, C3ST, Nqlg)
return F3bq(WNtM, Xmm2, Nqlg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ywcA(gxxV):\n vars = set()\n for l9Ur in gxxV:\n vars.update(l9Ur.variables())\n for C3ST in Uk9h(list(vars)):\n if all((b7La(l9Ur, C3ST) for l9Ur in gxxV)):\n return C3ST\n rVnq = gxxV[0]\n for YRbF in range(1, len(gxxV)):\n rVnq = RWlt('&', rVnq, gxxV[YRbF])\n ... | [
"0.64332277",
"0.62529474",
"0.5919353",
"0.5909296",
"0.58295596",
"0.5772179",
"0.5749535",
"0.55274194",
"0.54888123",
"0.5456915",
"0.5454004",
"0.5380801",
"0.5370294",
"0.53525364",
"0.5352434",
"0.5343943",
"0.5333761",
"0.52752733",
"0.5266835",
"0.52566487",
"0.51466... | 0.69277567 | 0 |
Creates an initial stratego env state with manually specified piece positions for a single player and a random human initialization for the other player. Example initial board piece positions. | def lKUf(AgBv, IDMm, v9lv, pyyQ, h9yl, q4YU, TriV, sK14, wQNT, oGMV, VMRf, tiy4, KV0Y=snWo):
SNUT = KnDZ['version']
d3QN = J4B_[SNUT]
aaFO = (d3QN['rows'], d3QN['columns'])
xdGR = ltRo(*aaFO)
if not (KV0Y == 1 or KV0Y == -1):
raise ValueError('specify_pieces_for_player must be 1 or -1')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCGt(oyg0, QTBn):\n global ME\n global THEM\n global STATE\n oyg0 = oyg0.upper()\n assert oyg0 == 'X' or oyg0 == 'O'\n eZQN = oyg0\n IKUg = 'O' if oyg0 is 'X' else 'X'\n assert QTBn\n SUbQ = QTBn",
"def W9gz() -> yELo:\n iBIi = ('rnbqkbnr', 'pppppppp', '........', '........', '.... | [
"0.63363653",
"0.6291022",
"0.62477577",
"0.6245532",
"0.6191804",
"0.61188823",
"0.61159444",
"0.60772234",
"0.60507745",
"0.6018206",
"0.600466",
"0.5966546",
"0.59647363",
"0.594928",
"0.59141934",
"0.5906652",
"0.5881884",
"0.58389556",
"0.582883",
"0.5823945",
"0.5788779... | 0.73350084 | 0 |
Returns a random string of length string_length. | def kSFd(a__r=10):
tuKI = str(qxeD.uuid4())
tuKI = tuKI.upper()
tuKI = tuKI.replace('-', '')
return tuKI[0:a__r] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWvy(u54L):\n return ''.join((jxbx().choice(C1SZ + BHGE) for YRbF in range(u54L)))",
"def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))",
"def GLL2(u54L: int) -> str:\n return ''.join(tuKI.choices(vIwR.ascii_letters + vIwR.digits, k=u54L... | [
"0.8690689",
"0.8690023",
"0.86754036",
"0.86705065",
"0.86494744",
"0.86292434",
"0.862709",
"0.8589604",
"0.8587193",
"0.8574596",
"0.85603994",
"0.85407233",
"0.8537981",
"0.8535718",
"0.84930295",
"0.8490286",
"0.8450394",
"0.8443344",
"0.8428098",
"0.8425758",
"0.8387344... | 0.8063513 | 79 |
Computes an initial RNN `cell` state from an embedding, `z`. | def wgmL(VmPb, epBp, mWFP=None):
cCgs = pf_1.flatten(VmPb.state_size)
return pf_1.pack_sequence_as(VmPb.zero_state(batch_size=epBp.shape[0], dtype=ZylS.float32), ZylS.split(ZylS.layers.dense(epBp, sum(cCgs), activation=ZylS.tanh, kernel_initializer=ZylS.random_normal_initializer(stddev=0.001), name=mWFP), cCgs,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wgmL(VmPb, epBp, Ep8u, mWFP=None):\n cCgs = Mg7i.flatten(VmPb.state_size)\n return Mg7i.pack_sequence_as(VmPb.zero_state(batch_size=Ep8u, dtype=ZylS.float32), ZylS.split(ZylS.layers.dense(epBp, sum(cCgs), activation=ZylS.tanh, kernel_initializer=ZylS.random_normal_initializer(stddev=0.001), name=mWFP), c... | [
"0.75581205",
"0.66781557",
"0.6639578",
"0.63234484",
"0.6284584",
"0.62799436",
"0.60732836",
"0.60372776",
"0.586355",
"0.583919",
"0.5825217",
"0.57762516",
"0.57531124",
"0.574572",
"0.57224375",
"0.57222444",
"0.5714887",
"0.5712465",
"0.56996095",
"0.5675058",
"0.56520... | 0.7778715 | 0 |
A string representation of the model. | def zAg0(YKHO):
return YKHO.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def wHJl(YKHO):\n VlDb = f'{YKHO.__class__.__name__} Model'\n try:\n VlDb += f': {YKHO.filename}'\n except AttributeError:\n pass\n KCHu = [VlDb]\n for mWFP, Ty9i in YKHO.metadata.items():\n KCHu += [f'{mW... | [
"0.8567286",
"0.80320746",
"0.7939547",
"0.78144956",
"0.78115743",
"0.7782607",
"0.7757796",
"0.7757796",
"0.773894",
"0.77152467",
"0.7714009",
"0.7679083",
"0.7661709",
"0.765754",
"0.7645759",
"0.7645759",
"0.7628557",
"0.762749",
"0.75903344",
"0.75903344",
"0.7569605",
... | 0.0 | -1 |
Create a logger to write info to console and file. Params | def lmAE(R5Jy=None, jQJk=True, eJmI=True, niya=False, eaoR=2, fzag=2, sNVR=False, wW0h=False, mWFP=None):
if jQJk:
y0cW = F803('%Y%m%d%H%M%S', FdZ9(ITS7()))
if R5Jy is None:
R5Jy = Hy7s.path.join(Hy7s.path.dirname(xAKo), y0cW)
elif niya:
R5Jy = Hy7s.path.join(Hy7s.pat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nWQP():\n IXZ4 = GkAb(f'logs/{ITS7.strftime('%Y.%m.%d %H:%M')}.txt')\n IXZ4.parent.mkdir(exist_ok=True)\n G9jH.basicConfig(filename=IXZ4, level=G9jH.DEBUG)",
"def lmAE(qIxc, SQP_, IznC=None):\n if not Hy7s.path.exists(SQP_):\n Hy7s.makedirs(SQP_)\n tk5Y = G9jH.getLogger()\n tk5Y.setL... | [
"0.7088355",
"0.70839256",
"0.7043006",
"0.69959706",
"0.6958781",
"0.69531715",
"0.6947866",
"0.6911476",
"0.6900669",
"0.68932366",
"0.68329054",
"0.6808091",
"0.6776985",
"0.6758689",
"0.67446285",
"0.6722444",
"0.6720137",
"0.6720137",
"0.6720137",
"0.6720137",
"0.6709073... | 0.69441277 | 7 |
1D Laplace Filter in Xdirection. | def bZuE(vuvg, E3D9):
TCEg, KO11 = vuvg.shape
Xf5Z = oyIN.zeros((TCEg, KO11 + 2), dtype=vuvg.dtype)
Xf5Z[:, 1:-1] = vuvg
MQ4f = oyIN.zeros((TCEg, KO11 + 2), dtype=E3D9.dtype)
MQ4f[:, 1:-1] = E3D9
At90 = MQ4f[:, 2:] + MQ4f[:, :-2]
qwqz = Xf5Z[:, 2:] * MQ4f[:, 2:] + Xf5Z[:, :-2] * MQ4f[:, :-2]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gg7q(yMhW) -> ht2j.Tensor:\n HfMq = ht2j.ones(yMhW)\n HfMq[yMhW // 2] = 1 - yMhW\n Gg7q: ht2j.Tensor = HfMq\n return Gg7q",
"def r4gk(YKHO, WKvO):\n return oyIN.squeeze(YKHO.forward(WKvO[oyIN.newaxis, :]), axis=0)",
"def KVH6(YKHO, WKvO):\n WKvO = ht2j.matmul(YKHO.laplacian, WKvO)\n Ht... | [
"0.63577104",
"0.6234054",
"0.6144333",
"0.5966761",
"0.5954551",
"0.5952195",
"0.5915278",
"0.58461845",
"0.58461845",
"0.58461845",
"0.5812492",
"0.58106375",
"0.5791939",
"0.5761384",
"0.5753243",
"0.57375836",
"0.5731421",
"0.5721564",
"0.5721564",
"0.5721564",
"0.5721564... | 0.53161734 | 60 |
Load the Colission dataset into memory. This uses a cachefile which is reloaded if it already exists, otherwise the KnifeySpoony dataset is created and saved to the cachefile. The reason for using a cachefile is that it ensure the files are ordered consistently each time the dataset is loaded. This is important when th... | def tyeH():
gLDJ = Hy7s.path.join(h_xa, 'collisions.pkl')
__n6 = kGHy(cache_path=gLDJ, in_dir=h_xa)
return __n6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kGHy(gLDJ, OSgP):\n print('Creating dataset from the files in: ' + OSgP)\n wyyA = EgZb()\n __n6 = wyyA.cache_data(cache_path=gLDJ, fn=x3i3, in_dir=OSgP)\n return __n6",
"def UlWi(UzN7, oCqZ):\n if not Hy7s.path.exists(UzN7) or not Hy7s.path.exists(oCqZ):\n raise RuntimeError('##########... | [
"0.70754915",
"0.6590718",
"0.6590718",
"0.6590718",
"0.6590718",
"0.6475103",
"0.6397429",
"0.63524705",
"0.6349271",
"0.6323211",
"0.6305531",
"0.62925446",
"0.6281802",
"0.6277945",
"0.6264784",
"0.6249426",
"0.6228197",
"0.622775",
"0.6211522",
"0.61961836",
"0.6192108",
... | 0.7125186 | 0 |
Initialize with decimal value (either of type 'float' or 'Decimal') or a binary digit string of total length = .digits or the same string with spaces between sign, characteristic, and significand elements (total length .digits+2). | def FIMM(YKHO, BWXx):
try:
assert YKHO.significandClass.digits is not None
except AssertionError:
raise NotImplementedError('Create concrete sub-type of ContextClass')
NGzL = None
if isinstance(BWXx, (float, oyIN.float64)):
if not oyIN.isfinite(BWXx):
cxYt = str(BWXx)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NML7(YKHO, Csk6):\n if Csk6.is_nan():\n YKHO.signbit = Zi3Q('0')\n YKHO.characteristic = YKHO.characteristicClass('1' * YKHO.characteristicClass.digits)\n YKHO.significand = YKHO.significandClass('1' * YKHO.significandClass.digits)\n return None\n elif Csk6.is_infinite():\n ... | [
"0.64563996",
"0.6042144",
"0.60229164",
"0.59428126",
"0.5868686",
"0.5868168",
"0.58436245",
"0.5823799",
"0.58220327",
"0.5816814",
"0.57826775",
"0.57702744",
"0.57118696",
"0.56985646",
"0.568761",
"0.5683196",
"0.5623489",
"0.5621969",
"0.5613885",
"0.56138366",
"0.5606... | 0.54693484 | 24 |
Return state DB if model's app name is a database | def Xvy7(YKHO, C3ST, **MDDt):
HWkJ = YKHO._db_name(C3ST)
if HWkJ in gCuF.DATABASES:
mWFP = HWkJ
else:
mWFP = 'default'
bo34.debug('db_for_read({}): {}'.format(HWkJ, mWFP))
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xvy7(YKHO, C3ST, **MDDt):\n if C3ST._meta.app_label == YKHO.APP_LABEL:\n return YKHO.DB_NAME\n return None",
"def Xvy7(YKHO, C3ST, **MDDt):\n if C3ST._meta.app_label == YKHO.app_label:\n return YKHO.db_name\n return None",
"def Xvy7(YKHO, C3ST, **MDDt):\n if C3ST._meta.app_labe... | [
"0.7832437",
"0.7719763",
"0.7677701",
"0.7522128",
"0.7452216",
"0.73540705",
"0.7352329",
"0.7350436",
"0.7318393",
"0.72737455",
"0.71622944",
"0.7160004",
"0.7120515",
"0.6991537",
"0.6970428",
"0.69467795",
"0.6944531",
"0.69265777",
"0.6920151",
"0.686924",
"0.68667346"... | 0.78371465 | 0 |
Return state DB if model's app name is a database | def v4v1(YKHO, C3ST, **MDDt):
HWkJ = YKHO._db_name(C3ST)
if HWkJ in gCuF.DATABASES:
mWFP = HWkJ
else:
mWFP = 'default'
bo34.debug('db_for_write({}): {}'.format(HWkJ, mWFP))
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xvy7(YKHO, C3ST, **MDDt):\n HWkJ = YKHO._db_name(C3ST)\n if HWkJ in gCuF.DATABASES:\n mWFP = HWkJ\n else:\n mWFP = 'default'\n bo34.debug('db_for_read({}): {}'.format(HWkJ, mWFP))\n return mWFP",
"def Xvy7(YKHO, C3ST, **MDDt):\n if C3ST._meta.app_label == YKHO.APP_LABEL:\n ... | [
"0.78365654",
"0.7831844",
"0.7719117",
"0.7677259",
"0.7521613",
"0.7451467",
"0.73531467",
"0.7351727",
"0.73497677",
"0.73175615",
"0.7162176",
"0.7159914",
"0.71199745",
"0.69908273",
"0.696895",
"0.6945631",
"0.6944266",
"0.69263124",
"0.6919346",
"0.6868149",
"0.6865811... | 0.7273037 | 10 |
Get list of nodes. | def aAQH(YKHO):
return YKHO.ironic_client.node.list() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTxU(YKHO):\n return []",
"def vTxU(YKHO):\n return YKHO.node_list",
"def vTxU(YKHO):\n return [[Q6kx] for Q6kx in YKHO.graph.nodes]",
"def AyQV(YKHO):\n return G4JS.get(YKHO.__url + 'nodes').json()",
"def aAQH(YKHO):\n return list(dict(YKHO._from_json(YKHO.manage.run(override='list-node... | [
"0.84767705",
"0.8473476",
"0.83787113",
"0.82331884",
"0.8058226",
"0.7998461",
"0.7995019",
"0.7963107",
"0.7963107",
"0.7944589",
"0.7898844",
"0.789162",
"0.7869904",
"0.7830366",
"0.7784292",
"0.7730874",
"0.7717769",
"0.7711457",
"0.7711457",
"0.7711457",
"0.76871616",
... | 0.82806164 | 3 |
Method to get every form for a given FormID | def Bw9e(eJmI: Console, cb_Q: requests.Session, _gHB: str='General_Record_2020v2.0'):
yazP = hKhs(url=f'https://forms.agterra.com/api/{_gHB}/GetAll/0', sess=cb_Q)
if yazP.status_code != 200:
eJmI.log(f'[red] Something went wrong, we got status [white]{yazP.status_code}')
zgjV = yazP.json()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bw9e(YKHO):\n yR_P = YKHO.get_module()\n return (yR_P.get_form_by_unique_id(L03z.form_id) for L03z in YKHO._get_forms())",
"def h54X(YKHO, **KUnM):\n Aofo = YKHO.client.get(YKHO._endpoint + '/form', params=KUnM)\n return smQK(Aofo, Y509, (YKHO.user_id, YKHO.site_id), 'form_id')",
"def Bw9e(YKHO... | [
"0.727102",
"0.66311896",
"0.6495922",
"0.62302047",
"0.6167212",
"0.61593956",
"0.6157303",
"0.60471255",
"0.59703356",
"0.59149796",
"0.5890059",
"0.5884478",
"0.5847229",
"0.5836415",
"0.5787309",
"0.5776162",
"0.5766826",
"0.57480156",
"0.5737533",
"0.57359487",
"0.573161... | 0.6215262 | 4 |
Sends a 401 response that enables basic auth | def NLCy():
return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8095378",
"0.80943215",
"0.7960329",
"0.785324",
"0.7844362",
"0.78259075",
"0.77677304",
"0.77562714",
"0.7749071",
"0.7749071",
"0.7749071",
"0.7749071",
"0.7749071",
"0.7749071",
"0.7749071",
"0.7749071",
"0.77206504",
"0.7669128",
"0.7665531",
"0.7650957",
"0.7616053",... | 0.7812201 | 20 |
Returns an int64_list from a bool / enum / int / uint. | def Oety(BWXx):
hkxX = BWXx if isinstance(BWXx, (list, tuple)) else [BWXx]
return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=hkxX)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo",
... | [
"0.68804044",
"0.6595641",
"0.6460418",
"0.64473724",
"0.63664657",
"0.6290767",
"0.6272148",
"0.62160176",
"0.6105423",
"0.5951581",
"0.5946504",
"0.5900947",
"0.5856559",
"0.58458245",
"0.584331",
"0.58296096",
"0.58006585",
"0.5793528",
"0.5793528",
"0.5793528",
"0.5789359... | 0.58637303 | 12 |
If data_structure is a str, suffixed with 'L', and has an equivalent long, return that long. Otherwise, leave it unmodified. | def nTkk(jQ_r):
if type(jQ_r) is str and len(jQ_r) > 0 and (jQ_r[-1] == 'L'):
try:
return Swre(jQ_r)
except ValueError:
return jQ_r
else:
return jQ_r | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uG8f(jQ_r):\n if type(jQ_r) is Swre:\n return str(jQ_r) + 'L'\n else:\n return jQ_r",
"def tWWY(jQ_r):\n return OTjp(nTkk, jQ_r)",
"def b6tD(BWXx):\n if isinstance(BWXx, (int, Swre)):\n return Swre(BWXx)\n elif isinstance(BWXx, exCv):\n return s509(o4TR(BWXx))\n ... | [
"0.7218836",
"0.71197873",
"0.65231264",
"0.6382989",
"0.63033456",
"0.6299685",
"0.6279305",
"0.6231567",
"0.60436136",
"0.60384095",
"0.5879732",
"0.58451825",
"0.58367836",
"0.5819657",
"0.5729154",
"0.5717518",
"0.5660829",
"0.5635816",
"0.5575279",
"0.5541829",
"0.553071... | 0.8521766 | 0 |