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 |
|---|---|---|---|---|---|---|
Returns True is obj is a reference to a type. >>> is_type(1) False >>> is_type(object) True | def WUsn(YEnM):
return type(YEnM) is type or type(YEnM) is SnBA.ClassType | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WUsn(YEnM: Any) -> bool:\n return type(YEnM).__name__ == 'type'",
"def e8zD(YKHO, YEnM):\n return isinstance(YEnM, YKHO.type_)",
"def ib6s(YEnM, ZGwW):\n return type(YEnM) == ZGwW",
"def K5fQ(c13A):\n if c13A is None:\n return False\n if not DceF:\n return isinstance(c13A, Sn... | [
"0.791339",
"0.7387892",
"0.7010945",
"0.6943464",
"0.6870494",
"0.68617153",
"0.68305147",
"0.6828325",
"0.67018855",
"0.66557115",
"0.6645049",
"0.6580793",
"0.65725607",
"0.65243757",
"0.64704484",
"0.6450948",
"0.64284396",
"0.6380083",
"0.6344656",
"0.63404536",
"0.63287... | 0.808517 | 0 |
Returns True is obj is a reference to an object instance. >>> is_object(1) True >>> is_object(object()) True | def xKy2(YEnM):
return isinstance(YEnM, object) and type(YEnM) is not type and (type(YEnM) is not SnBA.FunctionType) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uFYo(NBcv):\n lyOf = BDQe.coercerhinoobject(NBcv, True, True)\n return lyOf.IsReference",
"def EdCR(NBcv):\n return BDQe.coercerhinoobject(NBcv, True, False) is not None",
"def xKy2(n294, AasG):\n return n294.wrap(n294.is_object(AasG))",
"def osAN(YKHO, hgiF):\n return hgiF in VLRj.Object.... | [
"0.7468232",
"0.73197794",
"0.72269255",
"0.6879951",
"0.6802244",
"0.67232734",
"0.64855975",
"0.6451984",
"0.64154863",
"0.62765783",
"0.61777854",
"0.61642814",
"0.61642814",
"0.6127504",
"0.61242884",
"0.60844016",
"0.6053116",
"0.60480267",
"0.6020916",
"0.60170317",
"0.... | 0.7734988 | 0 |
Helper method to see if the object is a basic data type. Strings, integers, longs, floats, booleans, and None are considered primitive and will return True when passed into is_primitive() >>> is_primitive(3) True >>> is_primitive([4,4]) False | def sRWQ(YEnM):
if YEnM is None:
return True
elif type(YEnM) in sZ_2:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g9YX(YKHO, i8q0):\n if not hasattr(i8q0, '_type_'):\n return i8q0 in [int, Swre, float, bool]\n return YKHO.is_basic_ctype(i8q0)",
"def FSSu(YKHO):\n for z394 in (535, 'test_string', False, 12.45, u'test_unicode_stirng'):\n sRWQ = YKHO.tested_class._is_primitive(z394)\n YKHO.ass... | [
"0.79031056",
"0.7398652",
"0.73961365",
"0.7393698",
"0.7353975",
"0.73247886",
"0.6896635",
"0.6829993",
"0.673652",
"0.6556259",
"0.648209",
"0.64195037",
"0.6398852",
"0.63926184",
"0.6378206",
"0.62249726",
"0.61391526",
"0.60943526",
"0.6040481",
"0.59672046",
"0.596686... | 0.74452585 | 1 |
Helper method to see if the object is a Python collection (list, set, or tuple). >>> is_collection([4]) True | def WCg9(YEnM):
return type(YEnM) in fo9f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gYQS(YEnM):\n return (issubclass(YEnM.__class__, V28l) or Kuz2(YEnM)) and (not WCg9(YEnM))",
"def WCg9(SRYB):\n return isinstance(SRYB, iu5r) and (not isinstance(SRYB, str))",
"def r5B4(YKHO):\n ZejL(YKHO)",
"def YoTJ(YKHO):\n try:\n 1 in YKHO.collection\n except TypeError:\n ... | [
"0.8260522",
"0.78678584",
"0.73681325",
"0.7262765",
"0.70221525",
"0.7021473",
"0.65363497",
"0.64900017",
"0.6382033",
"0.63326865",
"0.62610656",
"0.6208034",
"0.6162035",
"0.6145411",
"0.61411995",
"0.6115035",
"0.6077727",
"0.60110456",
"0.5977089",
"0.5959623",
"0.5927... | 0.84770554 | 0 |
Helper method to see if the object is a Python list. >>> is_list([4]) True | def Lm1b(YEnM):
return type(YEnM) is list | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S7ID(nPrm):\n try:\n from types import ListType\n if type(nPrm) == ListType:\n return True\n except ImportError:\n if type(nPrm) == type([]):\n return True\n return False",
"def j5rG(ZfUD):\n return isinstance(ZfUD, list)",
"def S7ID(YEnM):\n return... | [
"0.8442964",
"0.8376786",
"0.8311924",
"0.830583",
"0.82700586",
"0.8251966",
"0.81997067",
"0.81977147",
"0.8097914",
"0.8094664",
"0.78864336",
"0.78753334",
"0.78445375",
"0.77541244",
"0.7615006",
"0.7410618",
"0.7396422",
"0.7375246",
"0.73741853",
"0.73629355",
"0.72911... | 0.87735677 | 0 |
Returns True if obj is a subclass of list, set or tuple. obj must be a subclass and not the actual builtin, such as list, set, tuple, etc.. | def gYQS(YEnM):
return (issubclass(YEnM.__class__, V28l) or Kuz2(YEnM)) and (not WCg9(YEnM)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lm1b(YEnM):\n return type(YEnM) is list",
"def S7ID(YEnM):\n return type(YEnM) == SnBA.ListType",
"def my84(cM24, YEnM):\n Vrsd = Mm7l(cM24)\n yZzT = Vrsd.count('List')\n assert Vrsd.count('[') == yZzT, 'type_check only supports List for now, no Sets, Dicts, Tuples, ...'\n assert Vrsd.sta... | [
"0.7147075",
"0.71085155",
"0.6974685",
"0.681954",
"0.6817514",
"0.6765451",
"0.6727528",
"0.671393",
"0.6700237",
"0.6659976",
"0.66541415",
"0.66493607",
"0.664676",
"0.66411483",
"0.663225",
"0.66282433",
"0.66225743",
"0.66203415",
"0.661844",
"0.6607744",
"0.6591619",
... | 0.7164753 | 0 |
Returns True if obj is a special (weird) class, that is more complex | def Dpwb(YEnM):
if type(YEnM) is ITS7.struct_time:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NC32(object):\n if not hasattr(object, '__class__'):\n return False\n if MP1F(object.__class__):\n return False\n return True",
"def PwMT(YEnM: Any) -> bool:\n return nf7Q.is_dataclass(YEnM) and (not isinstance(YEnM, type))",
"def K_Aw(YEnM, WavV):\n try:\n return issubc... | [
"0.71667075",
"0.71147746",
"0.69153434",
"0.6908728",
"0.68993634",
"0.6893631",
"0.6861276",
"0.6840176",
"0.6838236",
"0.68376714",
"0.68376714",
"0.6833158",
"0.6828304",
"0.6820547",
"0.6803409",
"0.67869216",
"0.67861944",
"0.6762696",
"0.675223",
"0.6748474",
"0.674797... | 0.6549571 | 47 |
Return True if an object cannot be pickled >>> import os >>> is_picklable('os', os) True | def KqlB(mWFP, BWXx):
if mWFP in dJ1p.RESERVED:
return False
return not rVKq(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KqlB(YEnM):\n try:\n t2lc.dumps(YEnM)\n except t2lc.PicklingError:\n return False\n return True",
"def VEHN(WKvO):\n try:\n KCHu = aKaX()\n t2lc.dump(WKvO, KCHu)\n return True\n except:\n return False",
"def xKy2(YKHO, mWFP: str) -> bool:\n return... | [
"0.85166097",
"0.78606915",
"0.6729656",
"0.65293086",
"0.62020314",
"0.6198074",
"0.6111126",
"0.6106467",
"0.59374523",
"0.5719179",
"0.5693285",
"0.56175345",
"0.553347",
"0.54608434",
"0.5449504",
"0.5390889",
"0.5382938",
"0.53372186",
"0.5323035",
"0.53207034",
"0.53068... | 0.59385574 | 8 |
Get projects of user | def rVub(NtEF):
Aofo = []
try:
BWXx = bf9h.child('users/%s' % NtEF).get()
if 'project_index' in BWXx:
for H5ew in BWXx['project_index']:
IDBL = bf9h.child('projects/%s' % H5ew).get()
if IDBL is None:
continue
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bDA_(YKHO, uJjO):\n Ylbp = YKHO.conn.cursor().execute('SELECT * FROM projects p JOIN users_projects up \\n ON p.id = up.project_id \\n WHERE owner=? OR up.user_id=?\\n GROUP BY p.id\\n ORDER BY last_update DESC', (uJjO, uJjO))\n return Ylbp.fetchall()",
"def ayXM(CBIr):\n ... | [
"0.84227496",
"0.82517576",
"0.804769",
"0.7926223",
"0.77041376",
"0.76710916",
"0.76028585",
"0.75088835",
"0.7460393",
"0.74276555",
"0.73983717",
"0.7385052",
"0.7343898",
"0.7341461",
"0.7337472",
"0.73101056",
"0.7303128",
"0.7272241",
"0.7193392",
"0.71912986",
"0.7165... | 0.7330072 | 15 |
Method called to set the client's name. | def lt1V(YKHO, mWFP):
YKHO.__name = mWFP
YKHO._window.chat_panel.place_name = mWFP
YKHO.encode_message(action='NO', selected_name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iZWd(YKHO, mWFP, x0hE):\n if YKHO.name_is_unique(mWFP):\n x0hE.set_name(mWFP)\n YKHO.send_message('Usuario actualizado exitosamente.', x0hE.get_socket())\n else:\n YKHO.send_message('Nombre repetido.', x0hE.get_socket())",
"def xE1z(Q5dE, Ug_6):\n pass",
"def mWFP(YKHO):\n ... | [
"0.80215865",
"0.7751605",
"0.7565856",
"0.7203643",
"0.7203643",
"0.71981955",
"0.69989085",
"0.6944729",
"0.69077426",
"0.6889327",
"0.68495977",
"0.68416435",
"0.68377745",
"0.6812275",
"0.6810859",
"0.6810859",
"0.6810859",
"0.6810859",
"0.6810859",
"0.6798633",
"0.678767... | 0.67023957 | 32 |
generated source for method getHome | def DfM3(YKHO):
KcEq = YKHO.url[YKHO.host_head:YKHO.host_tail]
return 'http://' + KcEq + '/' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PJpd(YKHO):\n return YKHO.home",
"def ugFx(YKHO):\n pass",
"def snQx(YKHO):\n return YKHO.home_url",
"def kZiy(YKHO, *qIxc, **B2fa):\n pass",
"def kZiy() -> ImMB:\n return vja_()",
"def WdRB(YKHO):\n raise Exception('Not implemented')",
"def NooO(YKHO):\n print(YKHO.home.name)"... | [
"0.811916",
"0.79175884",
"0.7601972",
"0.7563043",
"0.75163716",
"0.7130797",
"0.6968598",
"0.6846898",
"0.6827225",
"0.6817982",
"0.6763875",
"0.6686223",
"0.6614228",
"0.65909207",
"0.6586324",
"0.6567089",
"0.6546231",
"0.65179783",
"0.6492359",
"0.64821094",
"0.64449996"... | 0.6691287 | 11 |
Returns file size in KB. | def mNo4(pmON):
zNig = Hy7s.path.getsize(pmON)
return '{:.2f}'.format(zNig / 1000.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cZkV(YKHO) -> int:\n return YKHO.get_main_information()['FileSize']",
"def jiw9(nUeQ):\n KyFM = Hy7s.path.getsize(nUeQ)\n Y9mY = KyFM / 1000000\n return Y9mY",
"def mfF2():\n return Hy7s.path.getsize(bkJI)",
"def mfF2(YKHO) -> int:\n return YKHO.get_main_information()['FileSize']",
"d... | [
"0.8458789",
"0.8404989",
"0.83733505",
"0.82816774",
"0.8268154",
"0.81772405",
"0.8157656",
"0.8119022",
"0.8073503",
"0.8063257",
"0.8055653",
"0.8046322",
"0.80349934",
"0.801686",
"0.798756",
"0.79860276",
"0.79828596",
"0.7980973",
"0.7980973",
"0.7980973",
"0.7948388",... | 0.80924153 | 8 |
Returns a set of requirements that are defined in `requirements_file`, without versions | def fZJH(ndwV: str) -> fHNa:
ltY3 = set()
DTpp = VnMZ(ndwV, session=False)
Kwd0 = ('=', '<', '>', '[')
for qv1X in DTpp:
uiGr = qv1X.requirement
for g8rx in Kwd0:
uiGr = uiGr.replace(g8rx, '|')
ltY3.add(uiGr.split('|')[0])
return ltY3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nt4a(ndwV: Path) -> x1iM[str]:\n Nqlg = ndwV.read_text().strip().split('\\n')\n return [zFiD for zFiD in Nqlg if not zFiD.startswith('#')]",
"def tANu():\n return [zFiD.strip() for zFiD in open('requirements.txt').readlines() if not zFiD.startswith('#')]",
"def O1OY():\n with open('requirements... | [
"0.82415545",
"0.813241",
"0.81053686",
"0.8000438",
"0.7981304",
"0.79583406",
"0.7907496",
"0.78128254",
"0.7795061",
"0.778891",
"0.77822506",
"0.77343833",
"0.77295756",
"0.7715063",
"0.76591295",
"0.76359296",
"0.7615231",
"0.75511235",
"0.75434804",
"0.752997",
"0.75122... | 0.76021177 | 17 |
remove any white space | def dklL(Uqbu):
for YRbF in range(len(Uqbu)):
Uqbu[YRbF] = ZbWC.sub('\\s+', '', Uqbu[YRbF])
return Uqbu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EQOQ():\n pass",
"def Wdyj(deaU, l5Ny):\n return l5Ny.replace(' ', '')",
"def uH_F(YKHO) -> None:\n YKHO.text = ZbWC.sub('\\\\s+', ' ', YKHO.text)",
"def mQFJ(YKHO) -> None:\n YKHO.text = ZbWC.sub('\\\\s[^\\n\\\\s]\\\\s', ' ', YKHO.text)",
"def T7vC(YKHO, KCHu):\n return KCHu.translate(... | [
"0.8438603",
"0.81502515",
"0.7875083",
"0.78410953",
"0.7829858",
"0.777944",
"0.77414465",
"0.77311254",
"0.77111334",
"0.77081054",
"0.766668",
"0.7657448",
"0.7654829",
"0.76396036",
"0.76009005",
"0.76009005",
"0.7580781",
"0.75354224",
"0.75125444",
"0.74910736",
"0.746... | 0.7294412 | 27 |
Euclidean distance between this and other | def sOE8(YKHO, Elif):
return aJJu.norm([YKHO.x - Elif.x, YKHO.y - Elif.y]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(YKHO, Elif):\n Jgwa, NsEU = (YKHO.x - Elif.x, YKHO.y - Elif.y)\n return epAf.sqrt(Jgwa ** 2 + NsEU ** 2)",
"def Ayfi(YKHO, Elif):\n return epAf.sqrt((YKHO.x - Elif.x) ** 2 + (YKHO.y - Elif.y) ** 2)",
"def Ayfi(YKHO, Elif):\n return epAf.sqrt((YKHO.x - Elif.x) ** 2 + (YKHO.y - Elif.y) ** 2)... | [
"0.8179104",
"0.81120116",
"0.8068012",
"0.8031966",
"0.80238307",
"0.80083776",
"0.7997179",
"0.7963617",
"0.7920559",
"0.7919298",
"0.79116815",
"0.7905978",
"0.7902945",
"0.78874314",
"0.78831",
"0.78543276",
"0.77549237",
"0.7711358",
"0.7704861",
"0.7697606",
"0.7691205"... | 0.84480786 | 0 |
Get a connection block ID. | def unpH(UzPC):
if UzPC is None:
return None
return UzPC.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VDR9(YKHO):\n return YKHO._block_id",
"def nTQy(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('SaaSessionBlockId')\n return YKHO._SaaSessionBlockId",
"def H1aQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection_id')",
"def H1aQ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(... | [
"0.75690824",
"0.67081314",
"0.65562147",
"0.6314481",
"0.63095534",
"0.6296897",
"0.6296537",
"0.62865657",
"0.6196766",
"0.61526275",
"0.6149997",
"0.60899556",
"0.6076141",
"0.60537815",
"0.6045492",
"0.59969467",
"0.59662706",
"0.5894705",
"0.58773893",
"0.5868735",
"0.57... | 0.618471 | 9 |
JSON dump a string. | def jxm1(nPrm):
return e1Ec(nPrm).replace(']], ', ']],\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dbb4(YKHO, vIwR):\n return qQXR.dumps(vIwR)",
"def IxRr(YKHO, vIwR):\n B2fa = {'cls': sFr4, 'indent': 1, 'sort_keys': True, 'separators': (',', ': ')}\n return Ur3m(qQXR.dumps(vIwR, **B2fa), 'utf-8')",
"def vmDR(KCHu):\n return qQXR.dumps(KCHu.as_dict())",
"def U8bG(vIwR):\n try:\n ... | [
"0.76443094",
"0.76181805",
"0.66817296",
"0.6537304",
"0.6531794",
"0.6476015",
"0.64486194",
"0.64096475",
"0.6395297",
"0.6334097",
"0.63286424",
"0.6242508",
"0.62305313",
"0.61401904",
"0.61360085",
"0.6092913",
"0.6060817",
"0.6037397",
"0.60260874",
"0.60130656",
"0.60... | 0.0 | -1 |
Dock strings only if they convert to numbers. Avoid /0 and root(1) | def VFMg(mS8r, Gjad, gvVs, lhjK):
if mS8r == None or Gjad == None:
return True
if mS8r.name in ['sqrt', 'number', 'string'] and Gjad.name in ['sqrt', 'number', 'string']:
if mS8r.name == 'number' or mS8r.name == 'string':
if not Lzpm(mS8r.values[0]) or iasT(mS8r.values[0]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OPAL(wEf2, KCHu):\n if isinstance(wEf2, (int, float)) and '!!' not in KCHu and _ofk(KCHu):\n return KCHu\n return wEf2",
"def TxfX(vIwR):\n if vIwR == 'N/A':\n return 0\n else:\n return float(vIwR)",
"def OK8E(YKHO):\n YKHO.assertEquals(LPxM.latex_preview('3.1415'), '3.1... | [
"0.56220216",
"0.5488573",
"0.5430639",
"0.54106253",
"0.5306939",
"0.53026676",
"0.5263703",
"0.52631605",
"0.5257628",
"0.52558744",
"0.52527916",
"0.52271265",
"0.51972127",
"0.51866883",
"0.51726633",
"0.5165894",
"0.5156772",
"0.5156592",
"0.5155036",
"0.512953",
"0.5112... | 0.0 | -1 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(KndY))
QrM1.xticks(wIWT, KndY, rotation=45)
QrM1.yticks(wIWT, KndY)
if NkkI:
Bcwd = Bcwd.astype... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.7917871",
"0.791609... | 0.7934962 | 11 |
Returns the sequential serial number that represents a particular date. | def naCA(lO87: func_xltypes.XlNumber, x0eS: func_xltypes.XlNumber, CjKC: func_xltypes.XlNumber) -> TkOC.XlDateTime:
if not 0 < lO87 < 9999:
raise Yx_A.NumExcelError(f'Year must be between 1 and 9999, got {lO87}')
if lO87 < 1900:
lO87 = 1900 + lO87
RA_F = enlf(years=lO87 - 1900, months=int(x0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jaSW(YKHO):\n Kt_s = ITS7.gmtime()\n P8oC = Kt_s[0] * 10000 + Kt_s[1] * 100 + Kt_s[2]\n NalO = YKHO.serial // 100\n if NalO < P8oC:\n return P8oC * 100\n else:\n return YKHO.serial + 1",
"def OIdI(YKHO) -> str:\n return qe4Y.get(YKHO, 'serial_number')",
"def _RhT(YKHO):\n ... | [
"0.66022766",
"0.65611565",
"0.6326017",
"0.63022614",
"0.6295826",
"0.6287588",
"0.62082916",
"0.6184591",
"0.61796135",
"0.61796135",
"0.60857105",
"0.59542125",
"0.5876401",
"0.58438075",
"0.5836313",
"0.58199716",
"0.5816556",
"0.5790853",
"0.57762975",
"0.5743495",
"0.56... | 0.0 | -1 |
Returns the day of a date, represented by a serial number. The day is given as an integer ranging from 1 to 31. | def fDD5(OIdI: func_xltypes.XlNumber) -> TkOC.XlNumber:
_c1T = BfDw.number_to_datetime(int(OIdI))
return int(_c1T.strftime('%d')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDD5(_c1T):\n return g6xZ(_c1T).day",
"def ofjd(_c1T):\n WEW5 = _c1T.split('-')\n return WEW5[2]",
"def BgU3(_c1T):\n return gLAx(_c1T)",
"def Tln5(YKHO):\n hXk4 = YKHO.__read_register(LaQ2)\n YuSI = (hXk4 & 48) >> 4\n Ko6S = hXk4 & 15\n return 10 * YuSI + Ko6S",
"def Wf1P(lO87)... | [
"0.75094163",
"0.68820107",
"0.68608266",
"0.68543416",
"0.6842634",
"0.6794882",
"0.6770856",
"0.6744484",
"0.6639107",
"0.6532474",
"0.6528437",
"0.64861405",
"0.63666",
"0.63230574",
"0.631975",
"0.62611413",
"0.62399435",
"0.6199375",
"0.6140222",
"0.6111929",
"0.6073561"... | 0.8530884 | 0 |
Returns the number of days between two dates. | def epma(KhBf: func_xltypes.XlDateTime, kepv: func_xltypes.XlDateTime) -> TkOC.XlNumber:
Sm0u = KhBf - kepv
return Sm0u | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qfAF(YKHO, AjzU, _sQW):\n YKHO.is_not_used()\n try:\n AjzU = YKHO.format_date(AjzU)\n _sQW = YKHO.format_date(_sQW)\n AjzU = qcWV.strptime(AjzU, '%Y-%m-%d')\n _sQW = qcWV.strptime(_sQW, '%Y-%m-%d')\n return abs((_sQW - AjzU).days)\n except Exception as e:\n YK... | [
"0.8285177",
"0.825683",
"0.81270593",
"0.80479735",
"0.80295044",
"0.8012088",
"0.80055386",
"0.7893747",
"0.78872097",
"0.782132",
"0.7678929",
"0.7665893",
"0.75952554",
"0.7585435",
"0.7536408",
"0.7400894",
"0.7321065",
"0.72761923",
"0.7117498",
"0.7109541",
"0.7101482"... | 0.7619281 | 12 |
Returns the serial number that represents the date that is the indicated number of months before or after a specified date (the start_date) | def wgmD(kepv: func_xltypes.XlDateTime, X_bn: func_xltypes.XlNumber) -> TkOC.XlDateTime:
RA_F = enlf(months=int(X_bn))
J6Z2 = BfDw.number_to_datetime(int(kepv)) + RA_F
if J6Z2 <= BfDw.EXCEL_EPOCH:
raise Yx_A.NumExcelError(f'Date result before {BfDw.EXCEL_EPOCH}')
return BfDw.datetime_to_number(J... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hCRm(_c1T):\n if _c1T.month == 12:\n _c1T = qcWV(_c1T.year + 1, 1, 1)\n else:\n _c1T = qcWV(_c1T.year, _c1T.month + 1, 1)\n return _c1T",
"def uwR8(Csk6):\n return _c1T(Csk6.year, Csk6.month, 1)",
"def ZiWT(YKHO) -> qe4Y.Input['GoogleTypeDateArgs']:\n return qe4Y.get(YKHO, 'eff... | [
"0.6496438",
"0.6180055",
"0.60394514",
"0.600491",
"0.5974207",
"0.58408254",
"0.5810796",
"0.57881445",
"0.5734235",
"0.57038325",
"0.5680332",
"0.56578046",
"0.56111413",
"0.5596714",
"0.55790526",
"0.5573294",
"0.5557663",
"0.55233175",
"0.549865",
"0.5476547",
"0.5470482... | 0.56211865 | 12 |
Returns the serial number for the last day of the month that is the indicated number of months before or after start_date. | def fCwu(kepv: func_xltypes.XlDateTime, X_bn: func_xltypes.XlNumber) -> TkOC.XlNumber:
RA_F = enlf(months=int(X_bn))
J6Z2 = BfDw.number_to_datetime(int(kepv)) + RA_F
if J6Z2 <= BfDw.EXCEL_EPOCH:
raise Yx_A.NumExcelError(f'Date result before {BfDw.EXCEL_EPOCH}')
sLPY = J6Z2 + enlf(day=31)
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xjYu(_c1T):\n return qcWV(_c1T.year, _c1T.month, 1) + fCoM(days=-1)",
"def sz_R(Csk6):\n return _c1T(Csk6.year, Csk6.month, wTnG(Csk6.year, Csk6.month)[1])",
"def o4Rw(x0eS):\n return qcWV(2020, x0eS, 28)",
"def g6Qx(YKHO, ULUV):\n CjKC = qcWV.strptime(ULUV, gCuF.TIME_FORMAT)\n yHf1 = GRk0... | [
"0.6887431",
"0.6753189",
"0.6579611",
"0.6384442",
"0.6377608",
"0.6313313",
"0.62549496",
"0.6222332",
"0.6156236",
"0.61529213",
"0.61529213",
"0.6106549",
"0.61044925",
"0.6093002",
"0.5966115",
"0.5962716",
"0.5947614",
"0.59262943",
"0.58437514",
"0.57685935",
"0.571669... | 0.5610097 | 29 |
Returns number of the ISO week number of the year for a given date. | def C1Fr(_c1T: func_xltypes.XlDateTime) -> TkOC.XlNumber:
AqO6 = BfDw.number_to_datetime(int(_c1T))
rYc6 = AqO6.isocalendar()[1]
return rYc6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def COIP(YKHO, _c1T):\n LVAh, r8hN, Csk6 = _c1T.split('-')\n return (JRYC.date(int(LVAh), int(r8hN), int(Csk6)) - YKHO.START_DATE).days / 7",
"def iYML(_c1T):\n _c1T = mDaS('week', _c1T)\n UGCx = mDaS('week', mDaS('year', _c1T))\n if UGCx.year < _c1T.year:\n UGCx += qcWV.timedelta(weeks=1)\... | [
"0.7689929",
"0.75421417",
"0.7513008",
"0.7494453",
"0.73564196",
"0.7075879",
"0.7074813",
"0.6916116",
"0.6815475",
"0.6793665",
"0.66957754",
"0.65802777",
"0.6554721",
"0.6545535",
"0.65019614",
"0.6280024",
"0.62691706",
"0.6132038",
"0.6114491",
"0.6022619",
"0.5980099... | 0.71484226 | 5 |
Returns the month of a date represented by a serial number. The month is given as an integer, ranging from 1 (January) to 12 (December). | def sFG4(OIdI: func_xltypes.XlNumber) -> TkOC.XlNumber:
_c1T = BfDw.number_to_datetime(int(OIdI))
return int(_c1T.strftime('%m')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sFG4(_c1T):\n return g6xZ(_c1T).month",
"def Ts0o(_c1T):\n return _c1T.month",
"def x0eS(YKHO, x0eS: str):\n return _mmD(YKHO.months, 'month', x0eS)",
"def ssjQ(mLGw):\n X_bn = {'01': 'January', '02': 'February', '03': 'March', '04': 'April', '05': 'May', '06': 'June', '07': 'July', '08': 'Au... | [
"0.7629",
"0.74563485",
"0.7338108",
"0.7152897",
"0.7121106",
"0.7110391",
"0.70654064",
"0.70519125",
"0.6986605",
"0.69298065",
"0.69133335",
"0.690376",
"0.6854037",
"0.68275785",
"0.6798793",
"0.6771319",
"0.6738992",
"0.6728494",
"0.6727914",
"0.6666149",
"0.65723515",
... | 0.876099 | 0 |
Returns the serial number of the current date and time. | def HMRb() -> TkOC.XlDateTime:
return BfDw.datetime_to_number(wzkt()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jaSW(YKHO):\n Kt_s = ITS7.gmtime()\n P8oC = Kt_s[0] * 10000 + Kt_s[1] * 100 + Kt_s[2]\n NalO = YKHO.serial // 100\n if NalO < P8oC:\n return P8oC * 100\n else:\n return YKHO.serial + 1",
"def OIdI(YKHO) -> str:\n return qe4Y.get(YKHO, 'serial_number')",
"def OIdI(YKHO):\n ... | [
"0.73336643",
"0.7316327",
"0.7192099",
"0.702219",
"0.69481325",
"0.6945059",
"0.68689",
"0.6858294",
"0.6763856",
"0.67397267",
"0.669843",
"0.6662579",
"0.6647956",
"0.6604528",
"0.6600162",
"0.65788484",
"0.6559291",
"0.65082675",
"0.6500693",
"0.6461435",
"0.6461435",
... | 0.0 | -1 |
Returns the serial number of the current date. | def vbXY() -> TkOC.XlDateTime:
edYc = wzkt()
_c1T = edYc.replace(hour=0, minute=0, second=0, microsecond=0)
return BfDw.datetime_to_number(_c1T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OIdI(YKHO) -> str:\n return qe4Y.get(YKHO, 'serial_number')",
"def OIdI(YKHO):\n vL7S = YKHO._raw_version_data()\n if YKHO._serial_number is None:\n YKHO._serial_number = vL7S['serial']\n return YKHO._serial_number",
"def jaSW(YKHO):\n Kt_s = ITS7.gmtime()\n P8oC = Kt_s[0] * 10000 ... | [
"0.73160756",
"0.7241172",
"0.7063082",
"0.69923073",
"0.69186425",
"0.6908373",
"0.6686096",
"0.6608836",
"0.64926183",
"0.64926183",
"0.64204603",
"0.64204603",
"0.64020807",
"0.635582",
"0.6343414",
"0.63368654",
"0.6325623",
"0.6292808",
"0.62877005",
"0.62111324",
"0.619... | 0.0 | -1 |
Return the main page. | def d6pt():
nvWN = Lh6Z(NCls, count=3)
return TvZl('index.html', count=len(nvWN), places=nvWN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ozko():\n return TvZl('main_page.html')",
"def Ozko():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('Main_Page.html')",
"def b8V_():\n B2Dn = xhTS()\n DumB = UlWi(B2Dn)\n SV4W = CDCC()\n QpfX = {'current_page': B2Dn, 'total_pages': SV4W, 'items': DumB}\n return TvZl('i... | [
"0.82845694",
"0.8143359",
"0.77520114",
"0.7678913",
"0.76491636",
"0.7477202",
"0.74368745",
"0.74368745",
"0.7415956",
"0.7336081",
"0.7303977",
"0.7234337",
"0.7207475",
"0.7207475",
"0.71984005",
"0.7193869",
"0.713179",
"0.71184117",
"0.71184117",
"0.7114224",
"0.711049... | 0.0 | -1 |
Return the about page. | def vsuQ():
return TvZl('about.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='Your application description page.')",
"def v... | [
"0.85650903",
"0.85443485",
"0.85230863",
"0.8494638",
"0.8469827",
"0.84001523",
"0.83943474",
"0.83943474",
"0.83943474",
"0.83943474",
"0.83943474",
"0.83943474",
"0.83943474",
"0.83943474",
"0.83943474",
"0.83943474",
"0.83943474",
"0.83943474",
"0.83943474",
"0.8357133",
... | 0.809435 | 33 |
Given an action, make state transition and observe reward. | def G5Fj(YKHO, oOT7):
if oyIN.random.uniform(0, 1) < YKHO.random_move_probability:
m6oq = oyIN.arange(YKHO.num_actions, dtype=int)
m6oq = oyIN.delete(m6oq, oOT7)
oOT7 = oyIN.random.choice(m6oq, 1)[0]
XeOP = YKHO.actions[oOT7]
tyiL = YKHO.agent_position
F7ba = YKHO.agent_position
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPaw(YKHO, XeOP):\n Ylbp = YKHO.reward_table.get(YKHO.curr_state, XeOP)\n YKHO.curr_state = Ylbp['result']\n return Ylbp",
"def YPaw(YKHO, XeOP):\n KCHu = YKHO.get_state()\n UqER = oyIN.arange(YKHO.S)\n _mSQ = YKHO.nextStateProbability[KCHu, XeOP]\n DGn2 = mrPm(UqER, _mSQ, k=1)[0]\n v... | [
"0.7485294",
"0.74373305",
"0.7386105",
"0.7372976",
"0.72845864",
"0.72733206",
"0.72685844",
"0.71875054",
"0.71726376",
"0.7170161",
"0.71582",
"0.71346724",
"0.7124485",
"0.71015763",
"0.70898825",
"0.7083155",
"0.70738685",
"0.7065874",
"0.70622146",
"0.70525545",
"0.700... | 0.0 | -1 |
Renders the home page. | def kZiy():
return TvZl('index.html', title='Home Page', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.8061255 | 39 |
Renders the about page. | def vsuQ():
return TvZl('about.html', title='About', year=qcWV.now().year, message='Your application description page.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82680845",
"0.8243358",
"0.8239194",
"0.8224137",
"0.82079816",
"0.8204868",
"0.8173699",
"0.8172736",
"0.80967313",
"0.80501616",
"0.80501616",
"0.80501616",
"0.80501616",
"0.80501616",
"0.... | 0.82709616 | 11 |
Return a dict mapping id to string name for all global variables | def fqHI(YKHO):
return YKHO.module_node.used_vars | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PDZg(YKHO):\n return [b''.join(WFmf).strip().decode() for WFmf in YKHO._f.variables['name_glo_var'][:]]",
"def rnFd(YKHO):\n return YKHO.globals.values()",
"def MgLH(YKHO):\n Aofo = {}\n for SRYB in YKHO.variables:\n Aofo[SRYB.name.upper()] = SRYB\n return Aofo",
"def EMUS(YKHO):\n ... | [
"0.6912686",
"0.6838243",
"0.6743445",
"0.6642719",
"0.66283077",
"0.65740776",
"0.6490776",
"0.6437585",
"0.6416777",
"0.64092",
"0.63613534",
"0.633619",
"0.6316035",
"0.6260247",
"0.6258549",
"0.6246101",
"0.6241849",
"0.6233003",
"0.62268966",
"0.6211455",
"0.61730105",
... | 0.69046956 | 1 |
A string representation of the model. | def zAg0(YKHO):
return YKHO.comment | {
"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 |
A `tf.Operation` that should be run to initialize this iterator. | def MuED(YKHO):
if YKHO._initializer is not None:
return YKHO._initializer
else:
raise ValueError('The iterator does not have an initializer. This means it was likely created using `tf.data.Dataset.make_one_shot_iterator()`. For an initializable iterator, use `tf.data.Dataset.make_initializable_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U6op(YKHO):\n QjBU = YKHO.hparams\n J7g5 = ZylS.trainable_variables()\n vtNT = ZylS.gradients(YKHO.cost, J7g5)\n if QjBU.gradient_clipping_by_global_norm > 0.0:\n vtNT, CkYf = ZylS.clip_by_global_norm(vtNT, QjBU.gradient_clipping_by_global_norm)\n ZylS.summary.scalar('grad_norm', CkYf... | [
"0.63732797",
"0.6372677",
"0.61928415",
"0.61928415",
"0.6183827",
"0.61515856",
"0.61282384",
"0.60020703",
"0.5993488",
"0.59929574",
"0.59447944",
"0.59418595",
"0.58725953",
"0.58582807",
"0.5853859",
"0.5841829",
"0.58366185",
"0.5829517",
"0.58191735",
"0.58134913",
"0... | 0.5500446 | 55 |
Returns the next element. >>> dataset = tf.data.Dataset.from_tensors(42) >>> iterator = iter(dataset) >>> print(iterator.get_next()) tf.Tensor(42, shape=(), dtype=int32) | def OPHn(YKHO):
raise NotImplementedError('Iterator.get_next()') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OPHn(YKHO, mWFP=None):\n YKHO._get_next_call_count += 1\n if YKHO._get_next_call_count > _8PB:\n qmLP.warn(_nY4)\n with IPme.colocate_with(YKHO._iterator_resource):\n E1rM = CPGG.iterator_get_next(YKHO._iterator_resource, output_types=YKHO._flat_tensor_types, output_shapes=YKHO._flat_ten... | [
"0.7010407",
"0.64563787",
"0.6298481",
"0.62972987",
"0.6241756",
"0.6191541",
"0.6160718",
"0.6134648",
"0.61189985",
"0.61013645",
"0.60707587",
"0.60537446",
"0.6034525",
"0.59972167",
"0.59648746",
"0.59382707",
"0.593443",
"0.5933434",
"0.589824",
"0.5875894",
"0.587463... | 0.6571849 | 1 |
Returns the next element wrapped in `tf.experimental.Optional`. If the iterator has reached the end of the sequence, the returned `tf.experimental.Optional` will have no value. >>> dataset = tf.data.Dataset.from_tensors(42) >>> iterator = iter(dataset) >>> optional = iterator.get_next_as_optional() >>> print(optional.h... | def z4ax(YKHO):
raise NotImplementedError('Iterator.get_next_as_optional()') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z4ax(oHE7):\n return oHE7.get_next_as_optional()",
"def cntZ(YKHO):\n try:\n return YKHO.next()\n except StopIteration:\n return None",
"def OPHn(YKHO):\n try:\n return YKHO.the_input[YKHO.index]\n except IndexError:\n return None",
"def OPHn(YKHO, mWFP=None):\n... | [
"0.7879689",
"0.63527375",
"0.62644297",
"0.6205212",
"0.6166065",
"0.5992998",
"0.59687847",
"0.5950846",
"0.59332424",
"0.5909193",
"0.5904805",
"0.5860199",
"0.5836594",
"0.5813866",
"0.58055085",
"0.5783859",
"0.5741394",
"0.5681748",
"0.5665594",
"0.5649734",
"0.56365746... | 0.7580918 | 1 |
Returns a `tf.experimental.Optional` with the next element of the iterator. If the iterator has reached the end of the sequence, the returned `tf.experimental.Optional` will have no value. | def z4ax(oHE7):
return oHE7.get_next_as_optional() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z4ax(YKHO):\n raise NotImplementedError('Iterator.get_next_as_optional()')",
"def Ee70(iter: Iterable, d6pt: int) -> h8nf[any]:\n if d6pt < len(iter):\n return iter[d6pt]\n return None",
"def cntZ(YKHO):\n try:\n return YKHO.next()\n except StopIteration:\n return None",... | [
"0.7409302",
"0.69344676",
"0.67602026",
"0.6540311",
"0.6472368",
"0.6347067",
"0.63168347",
"0.62889636",
"0.6276383",
"0.62265646",
"0.6221217",
"0.6214293",
"0.61614627",
"0.61393565",
"0.61228245",
"0.6073923",
"0.60564023",
"0.604784",
"0.59702075",
"0.59295785",
"0.591... | 0.8235539 | 0 |
Helper method to see if filename ends with certain extension | def QCpd(Ux0P):
return any((Ux0P.endswith(tTpl) for tTpl in CBZq)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X5E1(nUeQ: Path, Fst3: str):\n YBcr = Fst3.lower()\n JZxJ = nUeQ.suffix.lower()[1:]\n XiCv = {'jpg', 'jpeg'}\n if JZxJ in XiCv and YBcr in XiCv:\n return True\n elif JZxJ == YBcr:\n return True\n return False",
"def ufXY(Ux0P):\n for tTpl in CBZq:\n if Ux0P.endswith(... | [
"0.78286934",
"0.7715419",
"0.7690795",
"0.75723946",
"0.75723946",
"0.7541415",
"0.7531205",
"0.7429993",
"0.73595744",
"0.7353166",
"0.72853684",
"0.72138846",
"0.7159781",
"0.71052444",
"0.7104127",
"0.709392",
"0.7090864",
"0.7074538",
"0.70362025",
"0.7028646",
"0.702864... | 0.78229445 | 1 |
Get the height of the board. | def VAHQ(YKHO):
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v2(YKHO):\n return YKHO.board.shape[0]",
"def bAiv(YKHO):\n return YKHO.height",
"def bAiv(YKHO):\n return YKHO.height",
"def bAiv(YKHO):\n return YKHO._height",
"def VAHQ(YKHO):\n return YKHO._height",
"def VAHQ(YKHO):\n return YKHO._height",
"def xglF(YKHO):\n return YKHO._... | [
"0.8506178",
"0.7828281",
"0.7828281",
"0.7792005",
"0.7788401",
"0.7788401",
"0.77683884",
"0.77683884",
"0.77683884",
"0.77683884",
"0.77662206",
"0.7763028",
"0.776071",
"0.77545404",
"0.7742475",
"0.77377915",
"0.7721646",
"0.769687",
"0.76945823",
"0.76945823",
"0.769458... | 0.0 | -1 |
get_processed_path Return the path of the processed image. | def sT9G(YKHO):
return YKHO.processed_img_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sT9G(YKHO):\n Rci7 = YKHO.get_storage().location\n return YKHO.get_processed_key_name()[len(Rci7):]",
"def wlYV(YKHO):\n return YKHO.raw_img_path",
"def r3L4(YKHO) -> GkAb:\n return YKHO.flow_data_paths.processed_flow_path",
"def vJ9o(YKHO):\n return YKHO.config['processed_folder_path']",
... | [
"0.7148072",
"0.7044103",
"0.69271433",
"0.68576616",
"0.6614305",
"0.6582985",
"0.65731406",
"0.6437839",
"0.63826907",
"0.61899906",
"0.6160464",
"0.6144508",
"0.61177987",
"0.6117216",
"0.6071506",
"0.602279",
"0.60207313",
"0.598378",
"0.5957673",
"0.59549123",
"0.5914848... | 0.9124141 | 0 |
reset the network parameters using xavier init | def Q0Ko(YKHO):
for XP5J in YKHO.parameters():
if len(XP5J.shape) > 1 and XP5J.size(-1) != 2:
U78l.init.xavier_normal_(XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0Ko(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)",
"def Q0Ko(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__... | [
"0.7137537",
"0.7137537",
"0.70319754",
"0.7009362",
"0.6990484",
"0.69618165",
"0.69261223",
"0.6893333",
"0.6796462",
"0.6796462",
"0.6796462",
"0.67606765",
"0.6713357",
"0.6697281",
"0.6693835",
"0.6693835",
"0.66392934",
"0.66078997",
"0.6584755",
"0.6584032",
"0.6552471... | 0.67024213 | 14 |
reset the network parameters using xavier init | def Q0Ko(YKHO):
for XP5J in YKHO.parameters():
if len(XP5J.shape) > 1 and XP5J.size(-1) != 2:
U78l.init.xavier_normal_(XP5J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0Ko(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__)\n for exwG, XP5J in YKHO.named_parameters():\n Lfar(exwG, XP5J)",
"def Q0Ko(YKHO):\n bo34.info('===== Initialize %s with Xavier uniform distribution =====' % YKHO.__class__.__name__... | [
"0.7137537",
"0.7137537",
"0.70319754",
"0.7009362",
"0.6990484",
"0.69618165",
"0.69261223",
"0.6893333",
"0.6796462",
"0.6796462",
"0.6796462",
"0.67606765",
"0.6713357",
"0.6697281",
"0.6693835",
"0.6693835",
"0.66392934",
"0.66078997",
"0.6584755",
"0.6584032",
"0.6552471... | 0.67024213 | 13 |
Base utility class for a 3D object | def FIMM(YKHO, r1VO: float, Rci7: tuple, mWFP: str):
YKHO.loc = Rci7
YKHO.radius = r1VO
YKHO.name = mWFP
YKHO.verts = []
YKHO.edges = []
YKHO.faces = []
YKHO.mesh_data = None
YKHO.obj = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, eeYG, MOYU, MzFU):\n YKHO.position = x2om(int(eeYG), int(MOYU), int(MzFU))\n YKHO.velocity = jIFH(0, 0, 0)",
"def AZ0W(YKHO, *qIxc):\n return nvSv.Adaptor3d_Surface_D3(YKHO, *qIxc)",
"def Tooi(Iup5):\n Mkmy = DwWk()\n for C5Es in Iup5:\n Mkmy.add((Iup5[C5Es][0], 'b', 1))\n ... | [
"0.6517773",
"0.65008557",
"0.6297051",
"0.61934984",
"0.6189151",
"0.61820394",
"0.6121362",
"0.6065915",
"0.606356",
"0.6036464",
"0.6034633",
"0.60264176",
"0.60030615",
"0.6002801",
"0.597907",
"0.597907",
"0.59410536",
"0.594044",
"0.59030646",
"0.5880547",
"0.5867427",
... | 0.0 | -1 |
(list of ClassRecorder) > str Return dot node and relationship string from list of ClassRecorder | def Lsrz(YKHO, KndY):
assert isinstance(KndY, list)
gxJA = 'digraph "class" {\n'
gxJA = YKHO.write_node(gxJA, KndY)
gxJA = YKHO.write_edge(gxJA, KndY)
gxJA += '}'
print(gxJA)
return gxJA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MAje(YKHO, gxJA, KndY):\n assert isinstance(KndY, list) and isinstance(gxJA, str)\n for Emd4 in KndY:\n assert isinstance(Emd4, zREJ)\n gxJA = YKHO._write_class(gxJA, Emd4.name)\n gxJA = YKHO._write_members(gxJA, Emd4.members)\n gxJA = YKHO._write_methods(gxJA, Emd4.methods)\n... | [
"0.677315",
"0.6288453",
"0.6200629",
"0.61379313",
"0.6048865",
"0.59876096",
"0.5975047",
"0.5916194",
"0.5914346",
"0.58823943",
"0.58641964",
"0.5822125",
"0.58183676",
"0.5778875",
"0.5769247",
"0.5767818",
"0.5737888",
"0.5737888",
"0.5719834",
"0.57124996",
"0.56566143... | 0.5640032 | 22 |
(str, list of ClassRecorder) > str Return dot node string from list of ClassRecorder. >>> writer = DotWriter() >>> writer.write_node('dot_string', 1) | def MAje(YKHO, gxJA, KndY):
assert isinstance(KndY, list) and isinstance(gxJA, str)
for Emd4 in KndY:
assert isinstance(Emd4, zREJ)
gxJA = YKHO._write_class(gxJA, Emd4.name)
gxJA = YKHO._write_members(gxJA, Emd4.members)
gxJA = YKHO._write_methods(gxJA, Emd4.methods)
gxJA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lsrz(YKHO, KndY):\n assert isinstance(KndY, list)\n gxJA = 'digraph \"class\" {\\n'\n gxJA = YKHO.write_node(gxJA, KndY)\n gxJA = YKHO.write_edge(gxJA, KndY)\n gxJA += '}'\n print(gxJA)\n return gxJA",
"def WwrJ(Ziit, eCYA, gEYm):\n\n def NSNj(V_D6):\n return ' | '.join(sorted(... | [
"0.6175634",
"0.6106742",
"0.6038707",
"0.5997778",
"0.59966487",
"0.5970593",
"0.58346593",
"0.5713313",
"0.56094396",
"0.5526045",
"0.54803103",
"0.5478874",
"0.5442519",
"0.53971756",
"0.5386999",
"0.5315951",
"0.5302441",
"0.5302441",
"0.52937675",
"0.5286204",
"0.5285468... | 0.7733519 | 0 |
Initialize the Calculator frame. This frame contains frames for other calculator types. | def FIMM(YKHO, LDIG, Hghu=ra1W, **YSA3):
LQRw.__init__(YKHO, LDIG, **YSA3)
YKHO.main_frame = LQRw(YKHO, bd=1)
YKHO.main_frame.pack() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n EceD.__init__(YKHO, 'Calculator', resizable=False)\n YKHO.calculator = sFjc()\n YKHO.operatorEntered = False\n for iVRZ in range(5):\n ksOe = YKHO.addPanel(row=0, column=iVRZ, background='black')\n for rdlD in range(1, 6):\n JZmJ = YKHO.addPanel(row=rdlD, column=4, ba... | [
"0.67058825",
"0.64705867",
"0.6338738",
"0.6195571",
"0.6167947",
"0.6119221",
"0.6107527",
"0.59098125",
"0.58212906",
"0.57819384",
"0.57573354",
"0.5733919",
"0.5732447",
"0.57315475",
"0.57264185",
"0.5703008",
"0.5633254",
"0.561861",
"0.56053686",
"0.560241",
"0.560175... | 0.54168886 | 35 |
Plots transformed word embeddings with some given cluster labels. | def soCR(uuMR: dict, V22M: np.ndarray, gOe1: np.ndarray, odmM: Optional[dict]=None, sPIW: Optional[list]=None, a9g5: bool=False, pIQO: bool=False) -> None:
if odmM is None:
odmM = {}
if sPIW is None:
sPIW = list(uuMR.keys())
XlLT = len(oyIN.unique(gOe1))
for EFb4 in sPIW:
if EFb4... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yztr(KTQ3, cBMM, yLbG=300, leAC=''):\n ElPO = cAlZ()\n Biup = ElPO.fit_transform(KTQ3[:yLbG, :])\n LZpg, aNZO = QrM1.subplots(figsize=(14, 14))\n for or8S in range(yLbG):\n QrM1.scatter(*Biup[or8S, :], color='steelblue')\n QrM1.annotate(cBMM[or8S], (Biup[or8S, 0], Biup[or8S, 1]), alph... | [
"0.73643863",
"0.7026746",
"0.69125473",
"0.6783121",
"0.67311496",
"0.64863634",
"0.6378388",
"0.6281596",
"0.6258286",
"0.6249376",
"0.62302804",
"0.61491436",
"0.61248475",
"0.60913694",
"0.6073896",
"0.60533696",
"0.6050925",
"0.6039259",
"0.6011604",
"0.59520876",
"0.593... | 0.76622856 | 0 |
Returns the organization name associated with the project or an empty string if no organization is set. | def ejLf(YKHO):
if YKHO.organization is not None:
return YKHO.organization.name
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wbiw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organization')",
"def Ovk1(YKHO):\n if 'vppOrganizationName' in YKHO._prop_dict:\n return YKHO._prop_dict['vppOrganizationName']\n else:\n return None",
"def PI_r(YKHO):\n return YKHO.reference[Issx][NNfF]",
"def gZ75... | [
"0.78841555",
"0.7617757",
"0.74921674",
"0.7478675",
"0.7334929",
"0.72538245",
"0.7246963",
"0.7246963",
"0.70083797",
"0.69322044",
"0.6905932",
"0.68770164",
"0.68595076",
"0.68595076",
"0.6849413",
"0.6849413",
"0.67948025",
"0.6753732",
"0.6753732",
"0.67186034",
"0.669... | 0.8445462 | 0 |
Turn the relay off. | async def async_turn_off(YKHO, **B2fa: Any) -> None:
YKHO._attr_is_on = await YKHO.relay.set_active(False)
YKHO.async_write_ha_state() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO, **B2fa):\n hodN(YKHO._host, 'off')\n YKHO._state = False",
"def Z_rv(YKHO):\n print('Turning the lights off')\n YKHO.led.all_off()\n YKHO.client.publish(uf2Z, nGxz)",
"def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()",
"async def async_turn_off(YKHO, **B2fa):\n try:\n ... | [
"0.8096829",
"0.7890653",
"0.7842926",
"0.77896625",
"0.77758825",
"0.7774262",
"0.7712081",
"0.7640466",
"0.7614276",
"0.76131517",
"0.76007503",
"0.75667477",
"0.7547972",
"0.74837375",
"0.7462361",
"0.7458294",
"0.7433815",
"0.7398294",
"0.7373427",
"0.7372174",
"0.7362091... | 0.75073 | 13 |
Normalize the list with given max value. If the max_ is default value, and it is automatically assigned the maximun value in the list. | def NkkI(BDwY, Np5D=0):
if type(BDwY) == list:
if Np5D == 0:
Np5D = max(BDwY)
return [tTpl / float(Np5D) for tTpl in BDwY]
elif type(BDwY) == dict:
if Np5D == 0:
Np5D = max(BDwY.values())
return dict([(G1Hx, Ty9i / float(Np5D)) for G1Hx, Ty9i in BDwY.items... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(list, bQ6z=1):\n wmQo = max(list)\n TKGt = min(list)\n if wmQo == TKGt or len(list) == 1:\n return list\n CkYf = []\n for ZfUD in list:\n BdN0 = bQ6z * ((ZfUD - TKGt) / (wmQo - TKGt))\n CkYf.append(BdN0)\n return CkYf",
"def uI9b(wEf2, _OU1):\n l2lq = 100.0\n ... | [
"0.75630575",
"0.70214725",
"0.66076034",
"0.6392074",
"0.63734424",
"0.63646644",
"0.63362056",
"0.6264399",
"0.6224984",
"0.61147344",
"0.60855836",
"0.6060915",
"0.5983791",
"0.59730875",
"0.59521365",
"0.59400845",
"0.59232664",
"0.5903608",
"0.5896476",
"0.5893984",
"0.5... | 0.75798833 | 0 |
Computes the outereye corner normalised rmse error. | def q7aK(o3Uj, yLaY):
xfTG = 68
assert o3Uj.points.shape[0] == xfTG
assert yLaY.points.shape[0] == xfTG
AwKm = oyIN.linalg.norm(yLaY.points[36] - yLaY.points[45])
aapo = oyIN.sum(oyIN.linalg.norm(o3Uj.points - yLaY.points, axis=-1))
return aapo / (xfTG * AwKm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iAxY(V35R):\n return oyIN.sqrt(2 * V35R)",
"def clq4(tTpl):\n \"\"\"Corresponds to sqrt(2*MSE)\"\"\"\n return oyIN.sqrt(2 * F6sv(tTpl))",
"def Cq_Q(YpkZ, Ias5):\n gCCm = oyIN.sqrt(oyIN.sum(oyIN.power(Ias5 - YpkZ, 2)))\n return gCCm",
"def S8W8(YKHO) -> float:\n return float(oyIN.sqrt(oy... | [
"0.67534137",
"0.65286773",
"0.647784",
"0.647524",
"0.6470162",
"0.6423531",
"0.64027965",
"0.6352728",
"0.63381714",
"0.6277581",
"0.6261508",
"0.6260215",
"0.62589383",
"0.62534255",
"0.6250657",
"0.624107",
"0.6235428",
"0.6222021",
"0.6222021",
"0.6219185",
"0.620392",
... | 0.0 | -1 |
Return an iterable of `seq` with `el` added to the end | def rEw1(Q6uT: Iterable[TItem], geyT: TElement) -> iu5r[uLKX[vnKb, JAcI]]:
yield from Q6uT
yield geyT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sDym(geyT, Q6uT):\n yield geyT\n for KCHu in Q6uT:\n yield KCHu",
"def FJj_(YKHO, Q6uT):\n for U6D_ in Q6uT:\n YKHO.append(U6D_)",
"def n9Ew(geyT, Q6uT):\n return wOmD(VdIF(lambda WKvO: [geyT, WKvO], Q6uT))",
"def SStx(vC9B):\n while True:\n WKvO = (yield)\n vC9... | [
"0.68907595",
"0.6866106",
"0.6426324",
"0.6409817",
"0.6101",
"0.6071541",
"0.5917339",
"0.5833091",
"0.58219445",
"0.5798548",
"0.57672757",
"0.5682871",
"0.5679354",
"0.5675059",
"0.5648116",
"0.56096643",
"0.55766773",
"0.554685",
"0.55368954",
"0.55049795",
"0.5498552",
... | 0.7085079 | 0 |
Create a new temporary diractory in self.tempdir. | def FCbF(YKHO):
super(OsWQ, YKHO).setUp()
YKHO.tempdir = gbPf.mkdtemp()
YKHO.addCleanup(RDuA.rmtree, YKHO.tempdir) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m2xH(YKHO):\n XLTj = gbPf.mkdtemp(dir=gbPf.gettempdir())\n YKHO.addCleanup(RDuA.rmtree, XLTj)\n return XLTj",
"def wOor(YKHO):\n try:\n Hy7s.mkdir(YKHO.temp_dir)\n except FileExistsError:\n pass",
"def eJQD():\n return qf3c()",
"def eJQD(YKHO):\n YKHO.tempdir_path = YKH... | [
"0.81288224",
"0.79946566",
"0.79593354",
"0.7931041",
"0.7836506",
"0.7821261",
"0.7753192",
"0.7722916",
"0.7560119",
"0.7502192",
"0.74321467",
"0.7423052",
"0.73303294",
"0.7321855",
"0.73091966",
"0.7287271",
"0.72400796",
"0.7220534",
"0.7215599",
"0.7201676",
"0.717171... | 0.677739 | 49 |
Draws an ellipse on the input image. The input image is modified. | def A40V(vb7U, reHN, Yqe6, YylR, qfpW=(0, 0, 255), dGrG=1):
XC5k.ellipse(vb7U, (reHN, Yqe6), YylR, 0, 0, qfpW, thickness=dGrG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VQyQ(VXjJ, hgjH, MPlV, YylR, Y0xQ=0, Suvq=360, qfpW=(0, 0, 255), LGJQ=-1):\n XC5k.ellipse(VXjJ, hgjH, MPlV, YylR, Y0xQ, Suvq, qfpW, LGJQ)",
"def PXEh(YKHO):\n eHNT = YKHO.img\n WKvO = YKHO.x\n LVAh = YKHO.y\n ajwV = YKHO.x2\n skBL = YKHO.y2\n M_DK = YKHO.xy\n YKHO.a2 = ajwV + skBL + P... | [
"0.7968521",
"0.76760113",
"0.7426522",
"0.7189586",
"0.7176237",
"0.7028311",
"0.7021333",
"0.6984966",
"0.6980804",
"0.6956461",
"0.6932573",
"0.6857018",
"0.6803738",
"0.6801288",
"0.6792579",
"0.6777636",
"0.6730455",
"0.6581335",
"0.652445",
"0.6515943",
"0.6478726",
"... | 0.7104427 | 5 |
Draws a line on the input image. The input image is modified. | def lXKT(vb7U, X3qZ, ZYCo, qfpW=(0, 0, 255), dGrG=1):
XC5k.line(vb7U, X3qZ, ZYCo, qfpW, thickness=dGrG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XaQl(YKHO, LNo8, o4D3, si3g, ajwV, skBL, TVTK, qfpW):\n JmFt = nuov.Draw(LNo8, 'RGBA')\n JmFt.line([o4D3, si3g, ajwV, skBL], fill=qfpW, width=TVTK)\n del JmFt\n return LNo8",
"def H0yp(VXjJ, yKcO, Os4s, qfpW=(0, 0, 255), dGrG=3):\n XC5k.line(VXjJ, yKcO, Os4s, qfpW, dGrG)",
"def H0yp(VXjJ, EB... | [
"0.81148785",
"0.8084203",
"0.77066904",
"0.7629203",
"0.7558556",
"0.7557498",
"0.7303508",
"0.71972847",
"0.7088559",
"0.7084591",
"0.7080822",
"0.6986955",
"0.6985987",
"0.69286364",
"0.69033414",
"0.68686634",
"0.68118477",
"0.6805751",
"0.6804198",
"0.6755652",
"0.674397... | 0.706975 | 11 |
Selects the default database to read from. | def Xvy7(YKHO, C3ST, **MDDt):
return 'default' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DzBR(YKHO):\n hGI9 = hSS5(YKHO.__class__, '__default_database_name')\n MaYR = getattr(YKHO.delegate, hGI9)\n if MaYR is None:\n raise KpxQ('No default database defined')\n return YKHO[MaYR]",
"def p9bx():\n return Fv2L().database",
"def Xvy7(YKHO, C3ST, **MDDt):\n if hasattr(C3ST, ... | [
"0.7641834",
"0.72926277",
"0.70955354",
"0.69750404",
"0.689882",
"0.68569404",
"0.68512577",
"0.6848048",
"0.6848048",
"0.68361837",
"0.682213",
"0.67958754",
"0.67927223",
"0.67827547",
"0.67798424",
"0.6760515",
"0.6749613",
"0.6737524",
"0.6690064",
"0.66689086",
"0.6666... | 0.62248117 | 80 |
Selects the default database to write to. | def v4v1(YKHO, C3ST, **MDDt):
return 'default' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v4v1(YKHO, C3ST, **MDDt):\n if hasattr(C3ST, 'db_name'):\n return C3ST.db_name\n return 'default'",
"def v4v1(YKHO, C3ST, **MDDt):\n return YKHO.db_name",
"def DzBR(YKHO):\n hGI9 = hSS5(YKHO.__class__, '__default_database_name')\n MaYR = getattr(YKHO.delegate, hGI9)\n if MaYR is No... | [
"0.7240018",
"0.7208571",
"0.7115788",
"0.70552236",
"0.69855934",
"0.6930045",
"0.6913946",
"0.6886706",
"0.68777436",
"0.68030727",
"0.6732081",
"0.66004777",
"0.65598935",
"0.6556607",
"0.65395784",
"0.6536706",
"0.65269434",
"0.64586145",
"0.64245456",
"0.64245456",
"0.64... | 0.65468967 | 14 |
Return path to the test directory | def Togj():
WFPA = Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(tq_1.currentframe())))
return Hy7s.path.join(WFPA, 'tests') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l_jd():\n return Hy7s.path.abspath(Hy7s.path.dirname(xAKo))",
"def wBA9():\n pmON, mWFP = Hy7s.path.split(xAKo)\n return Hy7s.path.join(pmON, '..', 'test-data')",
"def lp6m() -> str:\n DJlJ = Hy7s.path.abspath(xAKo)\n return Hy7s.path.dirname(DJlJ)",
"def QOe9():\n return Hy7s.path.dirn... | [
"0.8819322",
"0.86364067",
"0.8501037",
"0.8232057",
"0.80929565",
"0.794459",
"0.7903542",
"0.78988165",
"0.7842125",
"0.77695835",
"0.7729441",
"0.76458263",
"0.7572866",
"0.75215024",
"0.75057584",
"0.7486256",
"0.7429015",
"0.74271524",
"0.734008",
"0.7297556",
"0.7274416... | 0.84717315 | 3 |
Computes the covariance between any two tomographic power spectra. | def KnOm(YKHO, Emd4=None, TFYE=[], Xkhf=[], MVuc=None):
PFC2 = {}
PFC2['final'] = None
PFC2['G1324'], PFC2['G1423'] = YKHO.cov_utils.gaussian_cov_window(Emd4, YKHO.SN, Xkhf, TFYE, YKHO.do_xi)
if YKHO.use_window:
PFC2['G'] = PFC2['G1324'] * MVuc['cov'][Xkhf][TFYE]['M1324']
PFC2['G'] += PF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fP7C(YKHO, K9Pc, Um61):\n return oyIN.cov(K9Pc.counts, Um61.counts)[0][1]",
"def _IBo(YKHO, o4D3, ajwV, Fbjb):\n epBp = YKHO.dist(o4D3, ajwV, Fbjb)\n return YKHO.a ** 2 * kLQb(-0.5 * epBp)",
"def _IBo(WKvO, LVAh):\n exwG = len(WKvO)\n return BJ1H(jDCn(WKvO), jDCn(LVAh)) / (exwG - 1)",
"def... | [
"0.69835603",
"0.68673015",
"0.6833794",
"0.6754418",
"0.67513084",
"0.66696286",
"0.66470736",
"0.6613608",
"0.6582763",
"0.6521231",
"0.63750935",
"0.63698626",
"0.6263693",
"0.624292",
"0.62353176",
"0.61951077",
"0.61516654",
"0.61491805",
"0.6117908",
"0.6114703",
"0.605... | 0.0 | -1 |
Create a logger, if no handlers already exist attach to stdout | def Gz3P(mWFP, dsE5=False):
bo34 = G9jH.getLogger(mWFP)
if dsE5:
bo34.setLevel(G9jH.DEBUG)
else:
bo34.setLevel(G9jH.INFO)
if not len(bo34.handlers):
DCgT = G9jH.StreamHandler(HwRy.stdout)
uaPq = G9jH.Formatter('[ %(asctime)s ] [%(name)s] [%(levelname)s] %(message)s')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWrj():\n tk5Y = G9jH.getLogger()\n tk5Y.setLevel(_OGp)\n uaPq = G9jH.Formatter('%(asctime)s - %(message)s')\n Npgh = G9jH.StreamHandler(HwRy.stdout)\n Npgh.setLevel(_OGp)\n Npgh.setFormatter(uaPq)\n tk5Y.addHandler(Npgh)",
"def lLrZ(RaXn=G9jH.INFO):\n bo34 = G9jH.getLogger(__name__)\... | [
"0.70456314",
"0.7036956",
"0.6946839",
"0.68466294",
"0.6770619",
"0.6769743",
"0.675371",
"0.67341554",
"0.6699235",
"0.6679251",
"0.66725564",
"0.6670188",
"0.6638229",
"0.662195",
"0.66205055",
"0.6617076",
"0.6603178",
"0.6601915",
"0.6601364",
"0.65997493",
"0.65987885"... | 0.0 | -1 |
Determine if this task is past its due date. Notice that we compare to `utcnow` since dates are stored in UTC. | def fVRi(YKHO):
return YKHO.due_date and YKHO.due_date < qcWV.utcnow() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WtTV(YKHO):\n return YKHO.due_date < rIAI.now()",
"def s1rb(YKHO):\n if YKHO.due is None:\n return False\n if rIAI.now() > YKHO.due:\n return True",
"def WtTV(YKHO):\n return YKHO.close_date is not None and qcWV.datetime.now(wyKz()) > YKHO.close_date",
"def fVRi(YKHO):\n retu... | [
"0.82955945",
"0.8173227",
"0.8090583",
"0.76816714",
"0.7349426",
"0.71316403",
"0.7013289",
"0.69788814",
"0.6905287",
"0.68328774",
"0.6497983",
"0.6448556",
"0.64226174",
"0.6393358",
"0.6335383",
"0.6275599",
"0.61151165",
"0.6099794",
"0.60855603",
"0.6041135",
"0.59142... | 0.86733425 | 0 |
Read four bytes of binary data and return as a 32 bit int | def gxRF(cCiX):
return int.from_bytes(cCiX.read(4), 'little') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KmFC(pdca):\n JRYC = oyIN.dtype(oyIN.uint32).newbyteorder('>')\n return oyIN.frombuffer(pdca.read(4), dtype=JRYC)[0]",
"def KmFC(pdca):\n JRYC = oyIN.dtype(oyIN.uint32).newbyteorder('>')\n return oyIN.frombuffer(pdca.read(4), dtype=JRYC)[0]",
"def PkHs(nPrm):\n QWw7 = '=%s' % FRul('int')\n ... | [
"0.7753421",
"0.7753421",
"0.7585085",
"0.7465604",
"0.741474",
"0.735282",
"0.72837627",
"0.724818",
"0.71922505",
"0.7114247",
"0.7072084",
"0.705126",
"0.69336444",
"0.69229895",
"0.68644994",
"0.68215275",
"0.68191624",
"0.6803573",
"0.67872685",
"0.6757109",
"0.66871524"... | 0.74436736 | 4 |
get random motivational quotation from sqlite database | def JVu4(GENM, FpXU):
Ykhp = iHv3.connect(GENM)
N1p7 = Ykhp.cursor()
N1p7.execute('SELECT quotation, author FROM %s ORDER BY RANDOM() LIMIT 1' % FpXU)
rdlD = N1p7.fetchone()
N1p7.close()
mixw = {'text': rdlD[0], 'author': rdlD[1]}
return mixw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zlaX():\n with open('./data/quotes.txt', 'r') as PenU:\n AEf6 = PenU.read().rstrip('\\n').split('\\n\\n')\n NCC9 = Acvy(AEf6)\n return NCC9",
"def BV4r(YKHO):\n return tuKI.choice(YKHO.inspirational_quotes)",
"def gTcu():\n PenU = ['Growth is never by mere chance; it is the re... | [
"0.6833337",
"0.66944295",
"0.64457434",
"0.6430225",
"0.6417233",
"0.6393828",
"0.636747",
"0.6185865",
"0.6067244",
"0.60219467",
"0.5991006",
"0.5987696",
"0.5964066",
"0.5857848",
"0.58065057",
"0.57925695",
"0.5771633",
"0.5762404",
"0.57619345",
"0.5720552",
"0.5647435"... | 0.79220015 | 0 |
Gated recurrent unit (GRU) with nunits cells. | def pOv4(YKHO, g4y1, QTBn):
mnUH = qkSJ.matmul(_WqI.concat([g4y1, QTBn], 1), YKHO._gate_kernel)
mnUH = rXs0.bias_add(mnUH, YKHO._gate_bias)
BWXx = qkSJ.sigmoid(mnUH)
Mkmy, P6bq = _WqI.split(value=BWXx, num_or_size_splits=2, axis=1)
Gbca = Mkmy * QTBn
SkC9 = qkSJ.matmul(_WqI.concat([g4y1, Gbca], ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pNpi(cuu0, hr1G):\n VmPb = ZylS.nn.rnn_cell.GRUCell(cuu0)\n if hr1G:\n Aofo = ZylS.nn.rnn_cell.DropoutWrapper(VmPb, output_keep_prob=1 - hr1G)\n return Aofo",
"def LXM1(YKHO, cuu0):\n return S14z.LayerNormGRUCell(cuu0, w_initializer=YKHO.uniform_initializer, u_initializer=ZnqD, b_initializ... | [
"0.7217025",
"0.6654688",
"0.6297134",
"0.62698615",
"0.58967686",
"0.5840164",
"0.570657",
"0.56824994",
"0.5670167",
"0.56192416",
"0.56141967",
"0.560903",
"0.55835325",
"0.5581533",
"0.55483365",
"0.55423665",
"0.5536661",
"0.55100894",
"0.54998815",
"0.54421973",
"0.5382... | 0.0 | -1 |
Takes a FileStorage or string and returns the file name. Allows other helper functions to call this with either FileStorage or filename strings and will always return the file name. | def xbwC(nUeQ: Union[str, FileStorage]) -> str:
if isinstance(nUeQ, BS3y):
return nUeQ.filename
return nUeQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gQmc(Emd4, O_1m: Union[BinaryIO, Path]) -> h8nf[str]:\n if Emd4._is_unnamed_or_directory(O_1m):\n return None\n if isinstance(O_1m, GkAb):\n return O_1m.name\n else:\n Ux0P = GkAb(O_1m.name).name\n return Ux0P",
"def g_2H(YKHO):\n return str(YKHO.get_file())",
"def U... | [
"0.6972356",
"0.65693176",
"0.6494945",
"0.64581746",
"0.6434845",
"0.64114755",
"0.6394964",
"0.63226295",
"0.63175285",
"0.62881225",
"0.6250836",
"0.6244421",
"0.6211824",
"0.62044847",
"0.61956215",
"0.6167831",
"0.6163881",
"0.615894",
"0.61529964",
"0.61411536",
"0.6137... | 0.8336512 | 0 |
Return full name of image in a path get_basename(some/folder/image.jpg) > image.jpg | def sYT0(nUeQ: Union[str, FileStorage]) -> str:
Ux0P = xbwC(nUeQ)
return Hy7s.path.split(Ux0P)[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yFjF(p4m8):\n Ux0P = Hy7s.path.splitext(p4m8)\n return Hy7s.path.basename(Ux0P[0])",
"def uwfy(VXjJ):\n return Hy7s.path.dirname(VXjJ) + '_' + Hy7s.path.basename(VXjJ)",
"def sYT0(GX8y):\n return GX8y.split('/')[-1]",
"def aPr_(pmON):\n return lpha(pmON)[1]",
"def aPr_(pmON: str) -> str:... | [
"0.80524117",
"0.757646",
"0.74535257",
"0.7421472",
"0.7395322",
"0.73813665",
"0.73792607",
"0.73611146",
"0.72903275",
"0.7262436",
"0.71666396",
"0.7116766",
"0.707401",
"0.7037713",
"0.70340395",
"0.70300144",
"0.6948239",
"0.6931499",
"0.69060385",
"0.6896113",
"0.68785... | 0.7971051 | 1 |
Checks if point is in collision with object | def VNIr(YKHO, oeNL):
WKvO, LVAh = oeNL
return PZyS((YKHO.x - WKvO) ** 2 + (YKHO.y - LVAh) ** 2) < YKHO.r | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rysm(YKHO, AU8u):\n return YKHO.p[0] <= AU8u <= YKHO.p[2]",
"def fceS(YKHO, AU8u):\n WKvO, LVAh = YKHO.currentLevel.transformToScreenCoordinate(AU8u)\n ZJ0H = YKHO.collide_rect\n ZJ0H.height += 3\n return ZJ0H.collidepoint(WKvO, LVAh)",
"def xnao(YKHO, WKvO, LVAh):\n return YKHO._rect.col... | [
"0.7555956",
"0.7492395",
"0.7437317",
"0.7393058",
"0.7268073",
"0.71651256",
"0.71326554",
"0.70738",
"0.70709044",
"0.70513666",
"0.7024929",
"0.69892174",
"0.6984759",
"0.6984759",
"0.696955",
"0.69483286",
"0.693722",
"0.69221646",
"0.69192505",
"0.6912864",
"0.69124764"... | 0.82696104 | 0 |
Assumes 'list_' is sorted. Returns closest item index to 'value'. If two numbers are equally close, return the smallest index. | def UR92(BWXx, bCES):
if BWXx <= bCES[0]:
return 0
if BWXx >= bCES[-1]:
return len(bCES) - 1
oeNL = Ce1H.bisect_left(bCES, BWXx)
h3Aq = bCES[oeNL - 1]
DOuq = bCES[oeNL]
if DOuq - BWXx < BWXx - h3Aq:
return oeNL
else:
return oeNL - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jZnZ(wEf2, yv6U):\n d6pt = 0\n for ZfUD in yv6U:\n if ZfUD > wEf2:\n return d6pt\n d6pt += 1\n return d6pt - 1",
"def llo_(list, wEf2):\n return min(range(len(list)), key=lambda YRbF: abs(list[YRbF] - wEf2))",
"def xoYv(OxJJ, BWXx):\n return min(enumerate(OxJJ), key=... | [
"0.85056037",
"0.8431343",
"0.7838559",
"0.7453381",
"0.72658235",
"0.7246142",
"0.7205541",
"0.7192864",
"0.7171713",
"0.7167309",
"0.7141918",
"0.7136888",
"0.71289957",
"0.7095902",
"0.7095902",
"0.70308524",
"0.70114267",
"0.6984104",
"0.69587326",
"0.6913206",
"0.6891542... | 0.8970342 | 0 |
Evaluates the desired mapmask combinations on a predicted subject. | def b7La(YKHO, f70A: np.ndarray, NzpN: np.ndarray, oGem: dict, HjSO: str):
x0Y9 = oyIN.reshape(f70A, (-1, f70A.shape[-1]))
gV9G = oyIN.reshape(NzpN, (-1, NzpN.shape[-1]))
u2HC = {lETM: oyIN.reshape(ZHfW, (-1, ZHfW.shape[-1])) for lETM, ZHfW in oGem.items()}
for Mn4o, UMkN in YKHO.map_mask_combinations.i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(YKHO, f70A: np.ndarray, JXWX: dict, oGem: dict, HjSO: str):\n if dDnA.REGION_THIGH in HjSO:\n Crrw = YKHO.labels[dDnA.REGION_THIGH]\n elif dDnA.REGION_LEG in HjSO:\n Crrw = YKHO.labels[dDnA.REGION_LEG]\n elif 'Subject_' in HjSO:\n Crrw = YKHO.labels[dDnA.REGION_THIGH]\n el... | [
"0.72606725",
"0.61629915",
"0.6060688",
"0.6006843",
"0.5975923",
"0.5950671",
"0.5922005",
"0.58513385",
"0.5811893",
"0.5745711",
"0.5707898",
"0.56806594",
"0.567957",
"0.5653155",
"0.5611047",
"0.5604188",
"0.5601255",
"0.56009567",
"0.5583448",
"0.5571036",
"0.5542716",... | 0.7116468 | 1 |
Evaluates the desired mapmask combinations on a predicted subject. | def b7La(YKHO, f70A: np.ndarray, JXWX: dict, oGem: dict, HjSO: str):
if dDnA.REGION_THIGH in HjSO:
Crrw = YKHO.labels[dDnA.REGION_THIGH]
elif dDnA.REGION_LEG in HjSO:
Crrw = YKHO.labels[dDnA.REGION_LEG]
elif 'Subject_' in HjSO:
Crrw = YKHO.labels[dDnA.REGION_THIGH]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7La(YKHO, f70A: np.ndarray, NzpN: np.ndarray, oGem: dict, HjSO: str):\n x0Y9 = oyIN.reshape(f70A, (-1, f70A.shape[-1]))\n gV9G = oyIN.reshape(NzpN, (-1, NzpN.shape[-1]))\n u2HC = {lETM: oyIN.reshape(ZHfW, (-1, ZHfW.shape[-1])) for lETM, ZHfW in oGem.items()}\n for Mn4o, UMkN in YKHO.map_mask_combi... | [
"0.7116468",
"0.61629915",
"0.6060688",
"0.6006843",
"0.5975923",
"0.5950671",
"0.5922005",
"0.58513385",
"0.5811893",
"0.5745711",
"0.5707898",
"0.56806594",
"0.567957",
"0.5653155",
"0.5611047",
"0.5604188",
"0.5601255",
"0.56009567",
"0.5583448",
"0.5571036",
"0.5542716",
... | 0.72606725 | 0 |
Callaback function for when the user checks/unchecks a type item in the UI Updates the checkbox if necessary | def tbXf(YKHO, Ty_K):
if not Ty_K.has_checked_changed():
return
if YKHO.is_searching():
Ty_K.setCheckState(uaAZ.Checked)
return
if YKHO.is_exporting():
if Ty_K.is_checked:
Ty_K.setCheckState(uaAZ.Checked)
else:
Ty_K.setCheckState(uaAZ.Unchecked... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M7Ad(YKHO, tvqc):\n d6pt = tvqc.GetSelection()\n ZfUD = YKHO.items[d6pt]\n if YKHO.list.IsChecked(d6pt):\n YKHO.data.check(ZfUD)\n else:\n YKHO.data.uncheck(ZfUD)",
"def iUUN(YKHO, y4fz):\n raise NotImplementedError",
"def fvJP(YKHO, TEdI):\n GJB6 = YKHO.selection\n YKHO.... | [
"0.6908596",
"0.64106315",
"0.6377018",
"0.6338921",
"0.6330147",
"0.62341684",
"0.62125576",
"0.62037027",
"0.61856914",
"0.61624014",
"0.6148764",
"0.6102489",
"0.60765696",
"0.60276335",
"0.60276335",
"0.60276335",
"0.6023052",
"0.599243",
"0.5984409",
"0.59594554",
"0.592... | 0.76766413 | 0 |
Gets the current state of the checkbox | def DghZ(YKHO):
return YKHO.checkState() == uaAZ.Checked | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y9ME(YKHO, Xgyb):\n yvMi = YKHO.getControl(Xgyb)\n return yvMi.getState()",
"def dsHk(YKHO):\n return YKHO._checkbox",
"def tCzv(YKHO):\n return YKHO._checked",
"def Zmkp(YKHO):\n return bool(YKHO._chb_bool.isChecked())",
"def BWXx(YKHO):\n if YKHO.isCheckable():\n return YKHO.... | [
"0.7906425",
"0.7770742",
"0.76799875",
"0.74128896",
"0.6956726",
"0.69238573",
"0.6872148",
"0.6860064",
"0.6857549",
"0.6815851",
"0.68058956",
"0.68058956",
"0.67969",
"0.6755268",
"0.6717551",
"0.6717551",
"0.6717551",
"0.6710777",
"0.6710777",
"0.6710777",
"0.6709759",
... | 0.7784258 | 3 |
Gets the current checkbox state | def DghZ(YKHO):
return YKHO.checkState() == uaAZ.Checked | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y9ME(YKHO, Xgyb):\n yvMi = YKHO.getControl(Xgyb)\n return yvMi.getState()",
"def dsHk(YKHO):\n return YKHO._checkbox",
"def tCzv(YKHO):\n return YKHO._checked",
"def Zmkp(YKHO):\n return bool(YKHO._chb_bool.isChecked())",
"def o5v_(YKHO):\n return YKHO.currentState",
"def c0mt(YKHO)... | [
"0.80592144",
"0.77395254",
"0.7632776",
"0.714012",
"0.6857726",
"0.6844055",
"0.6811307",
"0.6804947",
"0.6749232",
"0.6749232",
"0.6730263",
"0.67047757",
"0.66626805",
"0.6643624",
"0.66350573",
"0.6605067",
"0.6605067",
"0.6605067",
"0.6577856",
"0.6577856",
"0.6577856",... | 0.7805551 | 2 |
Updates the is_checked property with the current state | def Ogs8(YKHO):
YKHO._is_checked = YKHO.checkState() == uaAZ.Checked | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Neys(YKHO):\n if YKHO._explicit:\n QTBn = uaAZ.Checked\n elif YKHO._implicit:\n QTBn = uaAZ.PartiallyChecked\n else:\n QTBn = uaAZ.Unchecked\n YKHO.setCheckState(QTBn)",
"def mmT2(YKHO, G3WP):\n YKHO._checked = G3WP",
"def G3WP(YKHO, G3WP):\n YKHO._checked = G3WP",
... | [
"0.8069439",
"0.76891726",
"0.76768994",
"0.6929486",
"0.67402196",
"0.6705569",
"0.6670801",
"0.6629853",
"0.6629853",
"0.6629853",
"0.66213095",
"0.65725267",
"0.65725267",
"0.65725267",
"0.6519899",
"0.64423424",
"0.64380443",
"0.6377638",
"0.6310595",
"0.6301731",
"0.6289... | 0.8861618 | 1 |
Gets the current checkbox state | def DghZ(YKHO):
return YKHO.checkState() == uaAZ.Checked | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y9ME(YKHO, Xgyb):\n yvMi = YKHO.getControl(Xgyb)\n return yvMi.getState()",
"def dsHk(YKHO):\n return YKHO._checkbox",
"def tCzv(YKHO):\n return YKHO._checked",
"def Zmkp(YKHO):\n return bool(YKHO._chb_bool.isChecked())",
"def o5v_(YKHO):\n return YKHO.currentState",
"def c0mt(YKHO)... | [
"0.80592144",
"0.77395254",
"0.7632776",
"0.714012",
"0.6857726",
"0.6844055",
"0.6811307",
"0.6804947",
"0.6749232",
"0.6749232",
"0.6730263",
"0.67047757",
"0.66626805",
"0.6643624",
"0.66350573",
"0.6605067",
"0.6605067",
"0.6605067",
"0.6577856",
"0.6577856",
"0.6577856",... | 0.7805551 | 1 |
Updates the is_checked property with the current state | def Ogs8(YKHO):
YKHO._is_checked = YKHO.checkState() == uaAZ.Checked | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Neys(YKHO):\n if YKHO._explicit:\n QTBn = uaAZ.Checked\n elif YKHO._implicit:\n QTBn = uaAZ.PartiallyChecked\n else:\n QTBn = uaAZ.Unchecked\n YKHO.setCheckState(QTBn)",
"def mmT2(YKHO, G3WP):\n YKHO._checked = G3WP",
"def G3WP(YKHO, G3WP):\n YKHO._checked = G3WP",
... | [
"0.8069439",
"0.76891726",
"0.76768994",
"0.6929486",
"0.67402196",
"0.6705569",
"0.6670801",
"0.6629853",
"0.6629853",
"0.6629853",
"0.66213095",
"0.65725267",
"0.65725267",
"0.65725267",
"0.6519899",
"0.64423424",
"0.64380443",
"0.6377638",
"0.6310595",
"0.6301731",
"0.6289... | 0.8861618 | 2 |
Sets the encryption password globally on the VPSA using the KMIP protocol. This encryption is used when enabling the encryption option for a volume. | def WlcD(cuiw, KcEq, Yd_9, P1lZ, zAat, pl52, bIwZ=5696, W2yh=None, YjVC=None, DpZH='1.2', CBIr=None, jTXt=None, k76B=None, pZDx=None, Hjgi=0, ZtPQ=None, utpI=None, _h7H=None, **B2fa):
oUC7 = q76M(KcEq, bIwZ, Yd_9, P1lZ, zAat, pl52, W2yh, YjVC, DpZH, CBIr, jTXt, k76B, pZDx, Hjgi, ZtPQ, utpI)
pmON = '/api/setting... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mJP9(YKHO):\n H5ew = jbpC.generate_key()\n YGH4 = jbpC(H5ew)\n z84w = bytes(YKHO.password, 'utf-8')\n HKI5 = YGH4.encrypt(z84w)\n with open(YKHO.pass_path, 'wb') as Igmt:\n Igmt.write(HKI5)\n with open(YKHO.key_path, 'wb') as YKd6:\n YKd6.write(H5ew)",
"def CiOe():\n Z7L0.C... | [
"0.697702",
"0.68216634",
"0.6718895",
"0.6713073",
"0.652941",
"0.6512176",
"0.6419611",
"0.63241786",
"0.6298737",
"0.62744856",
"0.6273186",
"0.624397",
"0.62248766",
"0.62031364",
"0.61877877",
"0.6134824",
"0.6127729",
"0.612252",
"0.61053133",
"0.60563487",
"0.6051972",... | 0.6613558 | 4 |
Sets the encryption password globally on the VPSA. This password is used | def FmQB(cuiw, zn0c, VSGO, cHB5, DXni, G6Hg=None, m8RN=None, _h7H=None, **B2fa):
oUC7 = {'region': zn0c, 'kmskeyid': VSGO, 'access_id': cHB5, 'secret': DXni}
if G6Hg:
oUC7['encryption_pwd'] = G6Hg
if m8RN:
oUC7['old_encryption_pwd'] = m8RN
pmON = '/api/settings/encryption.json'
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3s8(YKHO, jTXt):\n from kalon.auth import encrypt_password\n YKHO.document.password = encrypt_password(jTXt)",
"def CiOe():\n Z7L0.CONF['ENCRYPTED_DB_PASS'] = BfDw.encryptEngineDBPass(password=Z7L0.CONF['DB_PASS'], maskList=aZ03)",
"def G3s8(YKHO, jTXt):\n YKHO.PASS = jTXt",
"def G3s8(YKHO, ... | [
"0.7278221",
"0.72454524",
"0.7127046",
"0.7072377",
"0.70716023",
"0.6993648",
"0.6946236",
"0.6909053",
"0.68453807",
"0.68268585",
"0.6814286",
"0.67810374",
"0.67810374",
"0.67810374",
"0.67810374",
"0.67711484",
"0.6751656",
"0.6742394",
"0.67163503",
"0.6701117",
"0.669... | 0.0 | -1 |
Sets the encryption password globally on the VPSA. This password is used | def gKVa(cuiw, jTXt, BfIX=None, _h7H=None, **B2fa):
sN1b(jTXt, 'password')
oUC7 = {'encryption_pwd': jTXt}
if BfIX:
oUC7['old_encryption_pwd'] = BfIX
pmON = '/api/settings/encryption.json'
return cuiw.post_api(path=pmON, body=oUC7, return_type=_h7H, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3s8(YKHO, jTXt):\n from kalon.auth import encrypt_password\n YKHO.document.password = encrypt_password(jTXt)",
"def CiOe():\n Z7L0.CONF['ENCRYPTED_DB_PASS'] = BfDw.encryptEngineDBPass(password=Z7L0.CONF['DB_PASS'], maskList=aZ03)",
"def G3s8(YKHO, jTXt):\n YKHO.PASS = jTXt",
"def G3s8(YKHO, ... | [
"0.7278221",
"0.72454524",
"0.7127046",
"0.7072377",
"0.70716023",
"0.6993648",
"0.6946236",
"0.6909053",
"0.68453807",
"0.6814286",
"0.67810374",
"0.67810374",
"0.67810374",
"0.67810374",
"0.67711484",
"0.6751656",
"0.6742394",
"0.67163503",
"0.6701117",
"0.6694503",
"0.6691... | 0.68268585 | 9 |
Like `izip` but yields `None` for missing items. | def kMVC(jzdc, Fg_i):
aiter = iter(jzdc)
s4FN = iter(Fg_i)
try:
for CZxs in aiter:
yield (CZxs, next(s4FN))
except StopIteration:
for CZxs in aiter:
yield (CZxs, None)
else:
for AhJh in s4FN:
yield (None, AhJh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m9Jm(OxJJ: Iterable[Optional[_T]]) -> iu5r[sb5H]:\n return (WKvO for WKvO in OxJJ if WKvO is not None)",
"def LvKF(OxJJ):\n WPN8 = jKi7.next(OxJJ, None)\n assert WPN8 is not None, WPN8\n return Hs6x.chain([WPN8], OxJJ)",
"def Ee70(iter: Iterable, d6pt: int) -> h8nf[any]:\n if d6pt < len(iter... | [
"0.55708754",
"0.54751974",
"0.54717046",
"0.5437567",
"0.5393389",
"0.5365301",
"0.5181093",
"0.5169455",
"0.5106901",
"0.50707704",
"0.505495",
"0.5002499",
"0.49963647",
"0.4958859",
"0.4939255",
"0.4922513",
"0.49008194",
"0.48883992",
"0.48761016",
"0.4870314",
"0.484743... | 0.47507876 | 24 |
Check if the box is between those lines, upper < lower (0,0, is leftupper corner) | def TXhT(FlUN, aHHW, AW7U):
XP5J = FlUN['box_points']
CYLT = XP5J[3] - XP5J[1]
CYLT
Yvyb = min(AW7U, XP5J[3]) - max(aHHW, XP5J[1])
if CYLT - Yvyb > 1 / 4 * CYLT:
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IO0c(YKHO):\n return YKHO.lt.x >= 0 and YKHO.lt.y >= 0 and (YKHO.rb.x >= YKHO.lt.x) and (YKHO.rb.y >= YKHO.lt.y)",
"def eVmN(AU8u: tuple, FlUN: tuple) -> bool:\n return FlUN[0] < AU8u[0] < FlUN[2] and FlUN[1] < AU8u[1] < FlUN[3]",
"def aCdo(WKvO, LVAh):\n return YKHO.min_x <= WKvO <= YKHO.max_x an... | [
"0.7176622",
"0.71188885",
"0.70608234",
"0.6954129",
"0.69337076",
"0.6922412",
"0.68934184",
"0.6892242",
"0.68778855",
"0.68745995",
"0.6821398",
"0.6764585",
"0.6756607",
"0.6721663",
"0.6698344",
"0.66670895",
"0.6643482",
"0.66420877",
"0.66158086",
"0.6565832",
"0.6564... | 0.6629573 | 18 |
Whether this spectrum has a report for metadata. | def teJo(YKHO):
return YKHO.report is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_7L(YKHO):\n if YKHO.mimetype in PSrQ.mimes_metadata:\n return True\n return False",
"def cSL0(YKHO):\n for mWFP in YKHO._GetStreamNames():\n if mWFP.startswith('analysis_report_data.'):\n return True\n return False",
"def HlIs(YKHO):\n v3cF = False\n if len(YKHO... | [
"0.8033374",
"0.70121706",
"0.69412804",
"0.6735023",
"0.65451646",
"0.65358233",
"0.6530026",
"0.64078444",
"0.635866",
"0.635866",
"0.63127375",
"0.62697756",
"0.6192341",
"0.61648583",
"0.6104409",
"0.6103236",
"0.5975198",
"0.5961022",
"0.5959195",
"0.5959088",
"0.5953198... | 0.7341982 | 1 |
First derivative of spherical harmonics with respect to theta. | def uiXt(r8hN, vC9B, q7In, rVnq):
HKX4(r8hN, vC9B)
return r8hN * aqZo(r8hN, vC9B, q7In, rVnq) / oyIN.tan(q7In) + oyIN.sqrt((vC9B - r8hN) * (vC9B + r8hN + 1)) * oyIN.exp(-1j * rVnq) * aqZo(r8hN + 1, vC9B, q7In, rVnq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xxIg(vC9B, r8hN, q7In, rVnq):\n if XTiz.isscalar(q7In):\n q7In = XTiz.array([[q7In]])\n rVnq = XTiz.array([[rVnq]])\n rqSZ = XTiz.zeros(q7In.shape, dtype=complex)\n _iM0 = XTiz.zeros(q7In.shape, dtype=complex)\n WKvO = XTiz.cos(q7In)\n M572 = XTiz.where(q7In != 0.0)\n if len(M57... | [
"0.6723069",
"0.66028106",
"0.65008193",
"0.65008193",
"0.6483161",
"0.63856214",
"0.63841516",
"0.633962",
"0.633962",
"0.6324032",
"0.6308926",
"0.61864007",
"0.61864007",
"0.61392105",
"0.61076754",
"0.59627134",
"0.59126836",
"0.5850438",
"0.5844406",
"0.58318514",
"0.582... | 0.6333515 | 9 |
Runs through generating starting parameters and writes to a new .csv | def xB4N(YKHO):
qzeG = YKHO.source_df.groupby('FinalID').apply(YKHO.start_params)
qzeG.reset_index(level=0, inplace=True)
YKHO.source_df = rLdf.merge(YKHO.source_df, qzeG, on='FinalID')
YKHO.source_df.to_csv('../Data/Biotraits_with_start_params.csv') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZQfE():\n if Hy7s.path.exists(qIxc.train):\n print('--Training data input found: ', qIxc.train)\n MOPg = Hy7s.system('echo idorigh,idresph,origbytes,respbytes,origpkts,resppkts,duration > log.csv')\n yQrP = Hy7s.system('cat ' + str(qIxc.train) + \"| bro-cut id.orig_h id.resp_h orig_byte... | [
"0.67874193",
"0.6599302",
"0.64288837",
"0.6316135",
"0.6268118",
"0.62620926",
"0.6216667",
"0.6196554",
"0.61947405",
"0.61873657",
"0.6186433",
"0.6182692",
"0.6157247",
"0.61296403",
"0.61256015",
"0.60949767",
"0.6067805",
"0.60490745",
"0.60175455",
"0.5987955",
"0.594... | 0.75607616 | 0 |
Initialize a model, tokenizer and config. | def FIMM(YKHO, qIxc: argparse.Namespace):
super().__init__()
format = '%(asctime)s - %(name)s - %(message)s'
if isinstance(qIxc, j1Jz.Namespace):
YKHO.save_hyperparameters(qIxc)
YKHO.args = qIxc
G9jH.basicConfig(format=format, filename=Hy7s.path.join(YKHO.args.output_dir, 'eval_resul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, C3ST, b0j5):\n YKHO.model = C3ST\n YKHO.tokenizer = b0j5\n YKHO.max_context_size = DtYh\n YKHO.predict_len = paSp\n YKHO.beam_size = baHf\n YKHO.beam_steps = wWT_",
"def BSpf(SQWW, Xu3r, b0j5):\n GPtr = Xhj8.from_pretrained(SQWW.model_name_or_path, num_labels=Xu3r.num_labels, ... | [
"0.7721862",
"0.75269216",
"0.71541077",
"0.7110465",
"0.7072716",
"0.7058341",
"0.70387423",
"0.69877243",
"0.6955412",
"0.6924358",
"0.68692195",
"0.6806762",
"0.6740265",
"0.67386603",
"0.67232543",
"0.6722358",
"0.6664681",
"0.66439635",
"0.6599982",
"0.65382737",
"0.6530... | 0.0 | -1 |
Use sparse categorical cross entropy as loss function. | def N77f(Crrw, KeL5):
return gTdG(Crrw, KeL5, from_logits=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KsZl(YKHO, BFeB, Crrw):\n return ZylS.keras.losses.sparse_categorical_crossentropy(Crrw, BFeB)",
"def nrA9(aJu6, nvEb, jDK_=-1, _hZ2=1e-07):\n aJu6 = ZShU.one_hot(aJu6, nvEb.shape[jDK_])\n return CqbS(aJu6, nvEb, jDK_, _hZ2)",
"def nrA9(Y8eF, aMgO):\n N77f = ZylS.nn.sparse_softmax_cross_entropy... | [
"0.7455099",
"0.7392348",
"0.720489",
"0.71162844",
"0.7081335",
"0.7067923",
"0.70173305",
"0.6987153",
"0.69319147",
"0.6791545",
"0.67459244",
"0.6739871",
"0.67333215",
"0.6671784",
"0.66447204",
"0.6614296",
"0.6614296",
"0.66070217",
"0.6596359",
"0.6546515",
"0.6546515... | 0.77340156 | 0 |
Find the largest element <= x and its index, or None if it doesn't exist. | def Qico(goHS: List[int], BWXx: int):
if goHS[0] <= BWXx:
d6pt: int = eEIR(goHS, BWXx) - 1
return (d6pt, goHS[d6pt])
return (None, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HFJz(k0lF: List[int], WKvO: int) -> int:\n bKPk = -1\n yKcO = 0\n Os4s = len(k0lF) - 1\n while yKcO <= Os4s:\n x1fj = yKcO + (Os4s - yKcO) // 2\n if k0lF[x1fj] == WKvO:\n bKPk = x1fj\n yKcO = x1fj + 1\n elif WKvO < k0lF[x1fj]:\n Os4s = x1fj - 1\... | [
"0.74406403",
"0.73229516",
"0.7112889",
"0.7047993",
"0.701128",
"0.6789947",
"0.6770878",
"0.6762415",
"0.6762415",
"0.6742658",
"0.6732595",
"0.6538072",
"0.652945",
"0.6493635",
"0.6456616",
"0.6393692",
"0.63888896",
"0.63864756",
"0.6323231",
"0.6271007",
"0.6258358",
... | 0.0 | -1 |
Mock load function through get_coin_market_chart_by_id. Mock returns a dict saved as .json | def EAWI(YKHO):
YKHO.assertEqual(YKHO.coin.coin_symbol, 'bitcoin')
YKHO.assertIsInstance(YKHO.coin, mX0t) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tkhl(YKHO, sEzN):\n with open('tests/data/btc_usd_test_data.json', encoding='utf8') as eHNT:\n h68g = qQXR.load(eHNT)\n sEzN.return_value = h68g\n Kp1L, cmJd = YIXr.load_ta_data(YKHO.coin, ['--vs', 'usd', '--days', '30'])\n YKHO.assertTrue(Kp1L.shape == (31, 4))\n YKHO.assertTrue(cmJd == ... | [
"0.63153726",
"0.55486876",
"0.54873693",
"0.546261",
"0.54414046",
"0.54371285",
"0.5415836",
"0.5403564",
"0.53540754",
"0.53132725",
"0.52940863",
"0.52865505",
"0.52794284",
"0.5256536",
"0.52534026",
"0.5238468",
"0.51939774",
"0.51650435",
"0.51603633",
"0.5145276",
"0.... | 0.5486687 | 3 |
Mock load function through get_coin_market_chart_by_id. Mock returns a dict saved as .json | def Tkhl(YKHO, sEzN):
with open('tests/data/btc_usd_test_data.json', encoding='utf8') as eHNT:
h68g = qQXR.load(eHNT)
sEzN.return_value = h68g
Kp1L, cmJd = YIXr.load_ta_data(YKHO.coin, ['--vs', 'usd', '--days', '30'])
YKHO.assertTrue(Kp1L.shape == (31, 4))
YKHO.assertTrue(cmJd == 'usd') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aenh(YKHO, QmTQ):\n from grand_exchanger.resources.graph import Graph\n Aofo = JKCy.get_historical_prices(1)\n assert Aofo == Graph(daily={qcWV(2020, 7, 27, 0, 0): 100, qcWV(2020, 7, 26, 0, 0): 120, qcWV(2020, 7, 25, 0, 0): 110}, average={qcWV(2020, 7, 27, 0, 0): 100, qcWV(2020, 7, 26, 0, 0): 110, qcW... | [
"0.5547547",
"0.54876",
"0.54873735",
"0.54638904",
"0.5438209",
"0.5437497",
"0.54143524",
"0.53998196",
"0.5354111",
"0.531285",
"0.52945495",
"0.528529",
"0.52804875",
"0.52571297",
"0.5253167",
"0.52391243",
"0.51900905",
"0.5164156",
"0.51586217",
"0.5143233",
"0.5137573... | 0.6314383 | 0 |
Returns True if work in (value, work) tuple subInfo1 is LESS than than work in (value, work) tuple in subInfo2 | def qjPV(cq_d, _hdL):
bEU9 = cq_d[E3ZL]
KJh8 = _hdL[E3ZL]
return bEU9 < KJh8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iOjC(cq_d, _hdL):\n wNuL = cq_d[LegL]\n Mlb1 = _hdL[LegL]\n return wNuL > Mlb1",
"def iOjC(cq_d, _hdL):\n wNuL = cq_d[LegL]\n Mlb1 = _hdL[LegL]\n return wNuL > Mlb1",
"def IxNB(cq_d, _hdL):\n wNuL = cq_d[LegL]\n Mlb1 = _hdL[LegL]\n bEU9 = cq_d[E3ZL]\n KJh8 = _hdL[E3ZL]\n re... | [
"0.6943174",
"0.6943174",
"0.65169805",
"0.65169805",
"0.59217775",
"0.59182584",
"0.58530134",
"0.5807177",
"0.57864374",
"0.5756254",
"0.57268536",
"0.5663306",
"0.5660879",
"0.5657832",
"0.5651383",
"0.5642464",
"0.56196254",
"0.5609372",
"0.5586101",
"0.556165",
"0.556078... | 0.78410697 | 0 |
Returns True if value/work in (value, work) tuple subInfo1 is GREATER than value/work in (value, work) tuple in subInfo2 | def IxNB(cq_d, _hdL):
wNuL = cq_d[LegL]
Mlb1 = _hdL[LegL]
bEU9 = cq_d[E3ZL]
KJh8 = _hdL[E3ZL]
return float(wNuL) / bEU9 > float(Mlb1) / KJh8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjPV(cq_d, _hdL):\n bEU9 = cq_d[E3ZL]\n KJh8 = _hdL[E3ZL]\n return bEU9 < KJh8",
"def qjPV(cq_d, _hdL):\n bEU9 = cq_d[E3ZL]\n KJh8 = _hdL[E3ZL]\n return bEU9 < KJh8",
"def iOjC(cq_d, _hdL):\n wNuL = cq_d[LegL]\n Mlb1 = _hdL[LegL]\n return wNuL > Mlb1",
"def iOjC(cq_d, _hdL):\n ... | [
"0.7637799",
"0.7637799",
"0.75713205",
"0.75713205",
"0.6257448",
"0.6045726",
"0.6001168",
"0.5963079",
"0.59313416",
"0.5890132",
"0.58559775",
"0.5830476",
"0.58277094",
"0.58276546",
"0.5824466",
"0.582157",
"0.58163685",
"0.5810858",
"0.5785559",
"0.57619303",
"0.576020... | 0.65051675 | 4 |
Test the client when there is no Vault configuration performed, but there is a empty vault_secrets section in the configuration file | def KKP7(sEzN, yXex, LWKk):
sEzN.return_value = LWKk(vault_secrets={})
yXex.load('in.json')
sEzN.assert_called_with('in.json') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ylsg(sEzN, LWKk):\n sEzN.return_value = LWKk()\n QpL3 = LWKk()\n del QpL3['vault_secrets']\n x0hE = T2bn()\n with trZe.warns(UserWarning):\n assert x0hE.load('in.json') == QpL3\n sEzN.assert_called_with('in.json')",
"def pVMq(ZsLG, sEzN, yXex, LWKk, KG1O):\n ZsLG.return_value = KG... | [
"0.66967833",
"0.6286257",
"0.6281223",
"0.6222612",
"0.61467016",
"0.6137791",
"0.61343914",
"0.6109751",
"0.60867536",
"0.6019046",
"0.6011417",
"0.6002008",
"0.5995329",
"0.59579414",
"0.5950455",
"0.5905957",
"0.58807576",
"0.58787274",
"0.58074594",
"0.5807061",
"0.57933... | 0.7333393 | 0 |
Creates a list of convolutional blocks similar to VGG network. The last layer is used to downsample by the given strategy. Only by 2 is supported. | def CczB(KUnM, PhLZ, YDYE, Ot1W=3, OuMq='stride', idFg=False):
fhcK = []
if isinstance(KUnM, int):
KUnM = [KUnM]
if not isinstance(KUnM, list):
raise ValueError('Filters has to be a list')
jG1a = PhLZ
for exwG in range(len(KUnM))[:-1]:
m11s = KUnM[exwG]
yIp6 = MQRQ(in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kzx1(YKHO, JgS4, myXy, LzBn, dqIL):\n _0fC = int(myXy) + 1\n j1EP = YKHO.filters[JgS4]\n he5B = YKHO.filters[JgS4 + 1]\n Vprk = 1 if JgS4 == 0 else 6\n XkN1 = [bsFn(j1EP, he5B, LzBn, _0fC, Vprk)]\n XkN1 += [bsFn(he5B, he5B, LzBn, 1, Vprk) for bGrB in range(dqIL - 1)]\n return XkN1",
"def... | [
"0.6579815",
"0.6422183",
"0.6204242",
"0.6010239",
"0.5991196",
"0.59536743",
"0.5934313",
"0.59201366",
"0.5913944",
"0.588918",
"0.5881274",
"0.5867184",
"0.5855983",
"0.5849031",
"0.5841944",
"0.58329105",
"0.58295125",
"0.5828082",
"0.5828082",
"0.58219576",
"0.5819283",... | 0.63877416 | 2 |
Creates a list of convolutional blocks similar to VGG network. The first layer in the block upsamples. | def IDiU(KUnM, PhLZ, YDYE, Ot1W=3, idFg=False):
fhcK = []
if isinstance(KUnM, int):
KUnM = [KUnM]
if not isinstance(KUnM, list):
raise ValueError('Filters has to be a list')
jG1a = PhLZ
fhcK.append(G8Lp(in_features=jG1a, out_features=KUnM[0], activation=YDYE, kernel_size=Ot1W, batch_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kzx1(YKHO, JgS4, myXy, LzBn, dqIL):\n _0fC = int(myXy) + 1\n j1EP = YKHO.filters[JgS4]\n he5B = YKHO.filters[JgS4 + 1]\n Vprk = 1 if JgS4 == 0 else 6\n XkN1 = [bsFn(j1EP, he5B, LzBn, _0fC, Vprk)]\n XkN1 += [bsFn(he5B, he5B, LzBn, 1, Vprk) for bGrB in range(dqIL - 1)]\n return XkN1",
"def... | [
"0.7125747",
"0.6374126",
"0.6312226",
"0.6282175",
"0.6198989",
"0.6119378",
"0.60657424",
"0.60434395",
"0.6013098",
"0.6008731",
"0.6000163",
"0.5988429",
"0.5987975",
"0.59825575",
"0.5969249",
"0.5952087",
"0.5948968",
"0.5941893",
"0.5931205",
"0.59017116",
"0.5895259",... | 0.6589851 | 1 |
Return the path to the app configuration file. | def V_r3() -> str:
if 'AISCALATOR_HOME' in Hy7s.environ:
kZiy = Hy7s.environ['AISCALATOR_HOME']
nUeQ = Hy7s.path.join(kZiy, 'config', 'aiscalator.conf')
if Hy7s.path.exists(nUeQ):
return nUeQ
return Hy7s.path.join(Hy7s.path.expanduser('~'), '.aiscalator', 'config', 'aiscalato... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def S673():\n tk5Y = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))[:-5]\n lqQH = Hy7s.path.join(tk5Y, 'config.ini')\n return lqQH",
"def pmON(YKHO):\n return Hy7s.path.join(YKHO.config.get('path', Hy7s.getcwd()))",
"def jizk():\n return './' ... | [
"0.8260517",
"0.80767614",
"0.80577785",
"0.799528",
"0.79654837",
"0.7899265",
"0.78866684",
"0.77370465",
"0.7732678",
"0.7729263",
"0.77015555",
"0.767465",
"0.76332635",
"0.76020646",
"0.7462885",
"0.7433802",
"0.7422051",
"0.7414486",
"0.73960364",
"0.73727596",
"0.73452... | 0.8098231 | 1 |
Return the path to the app configuration folder. | def Maj8(YKHO) -> str:
if YKHO.app_config_has('app_config_home_directory'):
return YKHO.app_config()['app_config_home_directory']
return Hy7s.path.join(Hy7s.path.expanduser('~'), '.aiscalator') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def PBUt(YKHO) -> GkAb:\n return YKHO._config_dir",
"def pmON(YKHO):\n return Hy7s.path.join(YKHO.config.get('path', Hy7s.getcwd()))",
"def dk7I(YKHO):\n return YKHO.get_raw('config_directory')",
"def JZZ_():\n return UMs9",
"def jizk():\... | [
"0.8435535",
"0.8150194",
"0.8106352",
"0.808336",
"0.80401015",
"0.7924039",
"0.78733736",
"0.7863576",
"0.7803082",
"0.77969885",
"0.7689492",
"0.76589066",
"0.763021",
"0.761566",
"0.75550413",
"0.75032574",
"0.7497391",
"0.74973243",
"0.74802446",
"0.7416295",
"0.73787946... | 0.7772802 | 10 |
Depending on how the timezone is configured, returns the timestamp for this instant. | def h0RY(YKHO) -> str:
DibD = qcWV.utcnow().replace(tzinfo=rIAI('UTC'))
if YKHO._app_conf['aiscalator']:
wr44 = rIAI(YKHO.app_config().timezone)
else:
wr44 = rIAI('Europe/Paris')
return DibD.astimezone(wr44).strftime('%Y%m%d%H%M%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n3mr():\n ujSP = qcWV.timezone(qcWV.timedelta(hours=9))\n return qcWV.datetime.now(tz=ujSP).strftime('%Y%m%d%H%M%S')[2:]",
"def E3oo(YKHO) -> JRYC.datetime:\n i8WE = YKHO.json_data['timestamp']\n i8WE = JRYC.datetime.strptime(i8WE, '%Y-%m-%d %H:%M:%S')\n i8WE = FXGE.timezone('US/Eastern').loca... | [
"0.7671235",
"0.7609368",
"0.72287756",
"0.70299375",
"0.6993708",
"0.68767005",
"0.6874762",
"0.6874762",
"0.6860605",
"0.6776589",
"0.6738684",
"0.67311805",
"0.67091924",
"0.66995466",
"0.66862124",
"0.6635904",
"0.6621197",
"0.65977114",
"0.6561746",
"0.6560399",
"0.65458... | 0.6976468 | 5 |
Generates the name of the output notebook | def pIBy(YKHO, K_hV) -> str:
return '/home/jovyan/work/notebook_run/' + Hy7s.path.basename(K_hV).replace('.ipynb', '') + '_' + YKHO._timestamp_now() + YKHO.user_id() + '.ipynb' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NqYl(YKHO, wyO9):\n return '%s_%s.html' % (YKHO.basename, wyO9)",
"def xYGm(YKHO) -> str:\n return HEOD.get(YKHO, 'outputName')",
"def eHMM(YKHO):\n return 'output.%s' % YKHO.name",
"def q5GV(YKHO, Ilxn):\n return YKHO._outprefix + str(Ilxn) + '.' + YKHO._suffix",
"def mWFP(YKHO):\n retu... | [
"0.6912127",
"0.69111377",
"0.6830666",
"0.67487735",
"0.6703478",
"0.65781707",
"0.6429554",
"0.6416294",
"0.63986546",
"0.63986546",
"0.6380309",
"0.6371911",
"0.6300438",
"0.6278509",
"0.62301755",
"0.6226171",
"0.620066",
"0.61854964",
"0.61803436",
"0.6104374",
"0.610423... | 0.72246855 | 0 |