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 |
|---|---|---|---|---|---|---|
Get bounding box coordinates mapped to target/mask coordinates. | def ukoZ(YKHO, YEnM, xlR5):
BQGg, h3cg, bYzl, Z3uP = oyIN.split(YEnM.bounding_box, len(YEnM.bounding_box))
Lnpr = oyIN.array([BQGg + (bYzl - BQGg) / 2, h3cg + (Z3uP - h3cg) / 2])
tq1S = Lnpr / YKHO.stride
t6bM = oyIN.array([(bYzl - BQGg) * oyIN.sqrt(xlR5), (Z3uP - h3cg) * oyIN.sqrt(xlR5)]) / YKHO.stride... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1GJ(YKHO):\n JQRm = YKHO.ij_to_latlon(-1, -1)\n jjWr = YKHO.ij_to_latlon(-1, YKHO.domain_size[1] + 1)\n DtyP = YKHO.ij_to_latlon(YKHO.domain_size[0] + 1, YKHO.domain_size[1] + 1)\n Cuj6 = YKHO.ij_to_latlon(YKHO.domain_size[0] + 1, -1)\n return (JQRm, jjWr, DtyP, Cuj6)",
"def HV3G(YKHO):\n ... | [
"0.72255194",
"0.7148642",
"0.7067591",
"0.6957974",
"0.68591",
"0.68346167",
"0.6829538",
"0.6804426",
"0.6800595",
"0.67711234",
"0.6754198",
"0.6741878",
"0.6736427",
"0.67342806",
"0.67342806",
"0.6726432",
"0.67016345",
"0.6692683",
"0.6662506",
"0.65757245",
"0.6558426"... | 0.7551965 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, G8OZ):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Generator that iterates over an iterable in size chunks >>> list(chunks('ABCDEFG', size=3)) [('A', 'B', 'C'), ('D', 'E', 'F'), ('G',)] >>> list(chunks([1, 2, 3, 4, 5, 6], size=2)) [(1, 2), (3, 4), (5, 6)] | def eHxA(OxJJ, zNig=20):
JCyR = object()
for yOAJ in AHLC.grouper(zNig, OxJJ, fillvalue=JCyR):
if yOAJ[-1] is JCyR:
eEUO = xBlr.partial(seET.is_not, JCyR)
yield tuple(Hs6x.takewhile(eEUO, yOAJ))
break
yield yOAJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(oHE7, zNig):\n for d6pt in range(0, len(oHE7), zNig):\n yield oHE7[d6pt:d6pt + zNig]",
"def WaSS(OxJJ, zNig):\n WhY1 = iter(OxJJ)\n while True:\n yOAJ = tuple(Hs6x.islice(WhY1, zNig))\n if len(yOAJ) == 0:\n break\n yield yOAJ",
"def eHxA(OxJJ, zNig):\n ... | [
"0.84125316",
"0.8280994",
"0.8176167",
"0.7985401",
"0.7982482",
"0.7932622",
"0.78810847",
"0.78195244",
"0.78195244",
"0.78195244",
"0.7808499",
"0.7795705",
"0.77784157",
"0.7770861",
"0.7755475",
"0.77362293",
"0.7682972",
"0.7598768",
"0.7581873",
"0.7565406",
"0.755539... | 0.0 | -1 |
Initialize a MusicCD item. | def FIMM(YKHO, mWFP, Z5r0, h5p_, ywSZ, dJ1p=None):
super().__init__(mWFP, Z5r0, dJ1p)
YKHO.artist = h5p_
YKHO.num_discs = ywSZ
YKHO.resource_type = 'Music CD' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, **B2fa):\n YKHO.item = kLxY(**B2fa)\n YKHO._working_dir = None",
"def FIMM(YKHO):\n YKHO.item_list = {}\n mxuC = dl5x('In praise of Idleness', 'B-1', 3, 'bertrand russell')\n fMnD = dl5x('Breaking the Code', 'B-2', 1, 'Pat Matter')\n jUAy = gbOd('Breaking Bad', 'D-1', 2, '2019-01... | [
"0.6313415",
"0.62220263",
"0.5928097",
"0.58955693",
"0.5831417",
"0.5831417",
"0.5783373",
"0.5757864",
"0.5751746",
"0.5706846",
"0.5677021",
"0.5675513",
"0.56697357",
"0.56654",
"0.5658594",
"0.56570214",
"0.56510967",
"0.5628711",
"0.5588841",
"0.55882436",
"0.55713534"... | 0.6329616 | 0 |
Get Config setting from predefined variables or environment parameters. | def fIz2():
global HEADER, PROCESS_PROGRAM_NAME, METADATA_HANDLE_EVENT_NAME
global APPINSIGHTS_INSTRUMENTATIONKEY
global DATABRICKS_OUTPUT_STORAGE_ACCOUNT_URL, DATABRICKS_OUTPUT_STORAGE_SAS_TOKEN
global ADX_INGEST_QUEUE_URL_LIST, ADX_INGEST_QUEUE_SAS_TOKEN
global CONCURRENT_ENQUEUE_TASKS
global ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(YqMg, GPtr=X8Rg):\n try:\n return GPtr[YqMg]\n except KeyError:\n raise rqaQ('Set the {} setting'.format(YqMg))",
"def tgzD(GPtr):\n global _config\n return viqz",
"def tgzD():\n return X8Rg",
"def X3mR(mWFP):\n return ogJ0().get(mWFP)",
"def tgzD():\n return DVw... | [
"0.7611529",
"0.7403772",
"0.73666954",
"0.73517406",
"0.7271565",
"0.7270964",
"0.724717",
"0.71440154",
"0.71114945",
"0.7067627",
"0.70576876",
"0.70354825",
"0.70275337",
"0.6970136",
"0.69563943",
"0.6925892",
"0.6882713",
"0.6837568",
"0.68029976",
"0.6720337",
"0.67193... | 0.0 | -1 |
Initialize first name, last name, age, and gender attributes. | def FIMM(YKHO, c9ua, zp3f, ZJe_, EE3v):
YKHO.first_name = c9ua
YKHO.last_name = zp3f
YKHO.age = ZJe_
YKHO.gender = EE3v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, knSv, FOIu, ZJe_, EE3v, QuQy):\n YKHO.f_name = knSv\n YKHO.l_name = FOIu\n YKHO.age = ZJe_\n YKHO.gender = EE3v\n YKHO.m_number = QuQy",
"def FIMM(YKHO, c9ua, zp3f, ZJe_):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f\n YKHO.age = ZJe_",
"def FIMM(YKHO, c9ua, zp3f, ZJe... | [
"0.7688818",
"0.75608855",
"0.7557712",
"0.7557712",
"0.7557712",
"0.7557712",
"0.7557712",
"0.7557712",
"0.7557712",
"0.7557712",
"0.72796017",
"0.71924347",
"0.6994145",
"0.6983084",
"0.69552344",
"0.6938817",
"0.6919511",
"0.6853096",
"0.684336",
"0.6801357",
"0.67757064",... | 0.8197995 | 0 |
Returns the name of this object. | def Q0HP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0tD(YKHO):\n return YKHO.__name",
"def H6TY(YKHO):\n return YKHO.obj_name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YKHO.__name",
... | [
"0.89701015",
"0.895701",
"0.89562804",
"0.89562804",
"0.89562804",
"0.89102674",
"0.8910035",
"0.8910035",
"0.8910035",
"0.8910035",
"0.8873486",
"0.8873486",
"0.8873486",
"0.8873486",
"0.8873486",
"0.8873486",
"0.8873486",
"0.8873486",
"0.8873486",
"0.8873486",
"0.886717",
... | 0.0 | -1 |
Returns the initial location of this object. | def wmsa(YKHO):
return YKHO._location | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bCmR(YKHO):\n return YKHO.default_alt_loc",
"def AzWT(YKHO):\n return YKHO._studio.get_initial_point()",
"def Wkq0(YKHO):\n return YKHO.zero",
"def xv4v(YKHO) -> str:\n return YKHO._start_loc",
"def Wkq0(YKHO):\n return YKHO.coord_cls(x=0, y=0, system=YKHO)",
"def JVtT(YKHO):\n retu... | [
"0.7558399",
"0.73375237",
"0.73054683",
"0.7235104",
"0.71608335",
"0.7137725",
"0.7113328",
"0.7026934",
"0.6992983",
"0.6913296",
"0.68974197",
"0.6893482",
"0.6890375",
"0.6888621",
"0.68663657",
"0.68411374",
"0.68411374",
"0.68146896",
"0.6788716",
"0.6781255",
"0.67809... | 0.8698698 | 0 |
Returns the DBus signature type for the argument. If the argument is an instance of one of the type wrapper classes, the exact type signature corresponding to the wrapper class will be used. If the object has a variable named 'dbusSignature', the value of that variable will be used. Otherwise, a generic type will be us... | def Xuta(_neV):
wEsz = getattr(_neV, 'dbusSignature', None)
if wEsz is not None:
return wEsz
elif isinstance(_neV, bool):
return 'b'
elif isinstance(_neV, int):
return 'i'
elif isinstance(_neV, int):
return 'x'
elif isinstance(_neV, float):
return 'd'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRul(YKHO, object):\n return YKHO.type",
"def FRul(YKHO, object):\n return YKHO.type",
"def E1mE(YKHO) -> hb4N.Type:\n raise NotImplementedError",
"def yj2y(BWXx):\n vZh8 = JKOC(BWXx, serializing=True)\n if vZh8 is None:\n raise TypeError('Unsupported type %s passed to serialize_to_... | [
"0.5474694",
"0.5474694",
"0.5409444",
"0.5328905",
"0.52887535",
"0.521691",
"0.51724213",
"0.5155565",
"0.51536465",
"0.51384646",
"0.50888366",
"0.50765437",
"0.5045696",
"0.49954993",
"0.49776474",
"0.49498105",
"0.49469578",
"0.49323153",
"0.49192646",
"0.4914251",
"0.49... | 0.629868 | 0 |
Yield successive nsized chunks from l. | def I7IE(vC9B, exwG):
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def dlVb(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n ... | [
"0.80379355",
"0.79237956",
"0.78840584",
"0.7876208",
"0.78144675",
"0.77643776",
"0.77544284",
"0.7743112",
"0.7730491",
"0.772761",
"0.7723601",
"0.7701434",
"0.768797",
"0.768797",
"0.7662925",
"0.765581",
"0.765473",
"0.765473",
"0.76447",
"0.76447",
"0.76447",
"0.7635... | 0.7922027 | 2 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(Mkmy):
Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
Mkmy.headers['Pragma'] = 'no-cache'
Mkmy.headers['Expires'] = '0'
Mkmy.headers['Cache-Control'] = 'public, max-age=0'
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.8221727",
"0.8220911",
"0.8220911",
"0.8220911",
"0.8220911",
"0.81940746",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
"0.8161616",
... | 0.7126684 | 66 |
Returns the input stream object for the currently active input stream. | def vdQc(YKHO):
return YKHO._streams[YKHO._selectedStream] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZfr(YKHO):\n YKHO.lock.acquire()\n wOb_ = YKHO.stream\n YKHO.lock.release()\n return wOb_",
"def Zz_l(YKHO, pWGZ):\n YKHO._in = YKHO._wrap_stream(pWGZ, 'in')\n return YKHO._in",
"def wOb_(YKHO) -> wohN.Stream:\n return YWvJ(wohN.Stream, YKHO._interfaces[wohN.Stream])",
"def wOb_(YKH... | [
"0.6819047",
"0.67934316",
"0.6680337",
"0.6518098",
"0.6492424",
"0.6492424",
"0.6459986",
"0.64151335",
"0.63618785",
"0.6321766",
"0.6298022",
"0.62467617",
"0.60943204",
"0.60503983",
"0.6026703",
"0.5984099",
"0.59127194",
"0.5908785",
"0.5908785",
"0.5908785",
"0.590878... | 0.5414463 | 50 |
Calculate the great circle distance between two points on the earth (specified in decimal degrees) | def GeVo(igSk, GgQG, TGuP, tk0B):
GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])
H91H = tk0B - GgQG
n_9K = TGuP - igSk
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2
Z9rn = 2 * P099(PZyS(jzdc))
Mkmy = 3956
return Z9rn * Mkmy * 1.60934 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def T97B(GgQG, ... | [
"0.8146062",
"0.78638023",
"0.7632202",
"0.7604661",
"0.7595527",
"0.75950956",
"0.7592873",
"0.757031",
"0.7564319",
"0.75560796",
"0.75300086",
"0.7516366",
"0.7493803",
"0.746558",
"0.7450864",
"0.7432722",
"0.7391925",
"0.7355981",
"0.7347892",
"0.7330029",
"0.73271745",
... | 0.0 | -1 |
initialize a bullet at the ship position | def FIMM(YKHO, tJm0, Vjhr, C7MP):
super().__init__()
YKHO.screen = Vjhr
YKHO.rect = a9eO.Rect(0, 0, tJm0.bullet_width, tJm0.bullet_height)
YKHO.rect.centerx = C7MP.rect.centerx
YKHO.rect.top = C7MP.rect.top
YKHO.y = float(YKHO.rect.y)
YKHO.color = tJm0.bullet_color
YKHO.speed_factor = tJ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Vjhr, C7MP):\n super().__init__()\n YKHO.__screen = Vjhr\n YKHO.__ship = C7MP\n YKHO.__speed = 10.0\n YKHO.__width = 3\n YKHO.__height = 15\n YKHO.__color = (60, 60, 60)\n YKHO.rect = a9eO.Rect(0, 0, YKHO.__width, YKHO.__height)\n YKHO.rect.midtop = YKHO.__ship.getRect().m... | [
"0.77932",
"0.77842873",
"0.7643124",
"0.7577425",
"0.738928",
"0.7282866",
"0.7248737",
"0.72338456",
"0.713622",
"0.7041886",
"0.70413834",
"0.69640034",
"0.69577575",
"0.6927438",
"0.69020337",
"0.6869925",
"0.6840654",
"0.68373877",
"0.6827241",
"0.67168593",
"0.67021334"... | 0.7887299 | 0 |
Takes in RGB channels in range 0255 and outputs L or AB channels in range 1 to 1 | def PRFS(VXjJ, vC9B=False, bBVO=False):
VXjJ = VXjJ / 255
aoJM = qfpW.rgb2lab(VXjJ)[:, :, 0]
aoJM = aoJM / 50 - 1
aoJM = aoJM[..., oyIN.newaxis]
FWrF = qfpW.rgb2lab(VXjJ)[:, :, 1:]
FWrF = (FWrF + 128) / 255 * 2 - 1
if vC9B:
return aoJM
else:
return FWrF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x4Vc(UuLV, Sdmb):\n ogYM = oyIN.empty([*UuLV.shape[0:2], 3])\n ogYM[:, :, 0] = oyIN.squeeze((UuLV + 1) * 50)\n ogYM[:, :, 1:] = Sdmb * 127\n return qfpW.lab2rgb(ogYM)",
"def wRtv(gHPS, nZ7B, qqh8):\n if gHPS == 0 and nZ7B == 0 and (qqh8 == 0):\n return (0, 0, 0, 1)\n SydD = 1 - max(g... | [
"0.67191994",
"0.67153925",
"0.66415703",
"0.65657836",
"0.6533678",
"0.6436578",
"0.6332531",
"0.63095754",
"0.6278812",
"0.62779766",
"0.6174344",
"0.6166381",
"0.6164907",
"0.6087721",
"0.6085063",
"0.60826355",
"0.60440445",
"0.6035109",
"0.6034019",
"0.6017981",
"0.59934... | 0.716853 | 0 |
Takes in LAB channels in range 1 to 1 and out puts RGB chanels in range 0255 | def x4Vc(VXjJ):
xiPz = oyIN.zeros((256, 256, 3))
for YRbF in range(len(VXjJ)):
for r845 in range(len(VXjJ[YRbF])):
vEPh = VXjJ[YRbF, r845]
xiPz[YRbF, r845] = [(vEPh[0] + 1) * 50, (vEPh[1] + 1) / 2 * 255 - 128, (vEPh[2] + 1) / 2 * 255 - 128]
xiPz = qfpW.lab2rgb(xiPz) * 255
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OimS(xMux, bctv):\n nPrm = (bctv[2] * bctv[1] * SFXw(xMux[0], bctv[0]) + bctv[2] * SFXw(xMux[1], bctv[1]) + SFXw(xMux[2], bctv[2])).astype(XTiz.uint8)\n return nPrm",
"def PRFS(VXjJ, vC9B=False, bBVO=False):\n VXjJ = VXjJ / 255\n aoJM = qfpW.rgb2lab(VXjJ)[:, :, 0]\n aoJM = aoJM / 50 - 1\n a... | [
"0.68408406",
"0.67221797",
"0.6714735",
"0.6651634",
"0.6607305",
"0.6541594",
"0.6485886",
"0.64274514",
"0.63758796",
"0.6362413",
"0.6348317",
"0.63105035",
"0.62985694",
"0.6281686",
"0.6277677",
"0.6239145",
"0.6237213",
"0.6224802",
"0.6211154",
"0.62056774",
"0.618310... | 0.6652208 | 3 |
Compute the effective number density of a CatalogSource. | def FUpJ(ACia):
V3oS = ACia['Weight'] * ACia['FKPWeight']
_LTI = (V3oS * ACia['NZ']).sum() / V3oS.sum()
return ACia.compute(_LTI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InLe(YKHO):\n return YKHO.__density",
"def InLe(YKHO):\n return YKHO.__density",
"def InLe(YKHO):\n return YKHO.__density",
"def InLe(YKHO):\n return YKHO._density",
"def InLe(YKHO):\n return YKHO.get_density()",
"def p6EJ(YKHO):\n wA3x = oyIN.array([0.0] + [r8hN.value for r8hN in Y... | [
"0.63332367",
"0.63332367",
"0.63332367",
"0.63028103",
"0.6245276",
"0.62077314",
"0.6154465",
"0.6130706",
"0.60398775",
"0.6037856",
"0.6001697",
"0.59691787",
"0.5904073",
"0.59027845",
"0.58638614",
"0.5822731",
"0.5779815",
"0.5759084",
"0.5722551",
"0.5687284",
"0.5682... | 0.0 | -1 |
Returns the number of open connections that can return to this pool. | def RDfO(YKHO):
return len(YKHO._connections_openned) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dVDm(YKHO):\n return len(YKHO._available_connections) + len(YKHO._in_use_connections)",
"def iT_a(YKHO):\n return YKHO.proxy.getconnectioncount()",
"def zNig(YKHO):\n return sum((dBuj.size() for dBuj in YKHO.host_to_pool.values()))",
"def EcAO(YKHO):\n if YKHO.options.pool_size == 0:\n ... | [
"0.8044701",
"0.7799287",
"0.7330027",
"0.73162156",
"0.719832",
"0.71733403",
"0.71316063",
"0.70556307",
"0.70315176",
"0.7030046",
"0.6980931",
"0.6876273",
"0.6845227",
"0.680742",
"0.670429",
"0.66962683",
"0.66733575",
"0.66601783",
"0.66520566",
"0.66254",
"0.6611033",... | 0.85150576 | 0 |
Generates a list of separated connection settings for each host. Gets a list of connection settings for each host or router found in the given settings. | def k3O0(gCuF):
ZmE7 = gCuF.copy()
AM_a = ZmE7.get('routers', [])
roo4 = []
if 'routers' in ZmE7:
ZmE7.pop('routers')
if 'host' in ZmE7 and 'port' in ZmE7:
AM_a.append({'priority': 100, 'weight': 0, 'host': ZmE7['host'], 'port': ZmE7['port']})
AM_a.sort(key=lambda WKvO: (WKvO['pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XCJm(YKHO, gCuF):\n R3G6 = []\n X1Pi = []\n roo4 = YKHO._get_connections_settings(gCuF)\n for DpRu, bGrB in roo4:\n X1Pi.append(DpRu)\n for dBuj in YKHO.__pools.get(gCuF.get('client_id', 'No id'), []):\n if dBuj.name in X1Pi:\n R3G6.append(dBuj)\n return R3G6",
"def... | [
"0.6441771",
"0.59143704",
"0.549022",
"0.5409772",
"0.5368586",
"0.53313816",
"0.5314408",
"0.5314408",
"0.5308428",
"0.5303599",
"0.52979267",
"0.5296564",
"0.5277395",
"0.5248984",
"0.52361083",
"0.516034",
"0.5144902",
"0.512325",
"0.50972766",
"0.5079645",
"0.5056473",
... | 0.7740059 | 0 |
Returns `True` if the session is open. | def WGC8(YKHO):
return YKHO._connection.stream.is_open() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WGC8(YKHO):\n return YKHO._session is not None",
"def WGC8(YKHO):\n return YKHO._session is not None",
"def WGC8(YKHO) -> bool:\n return YKHO._connection is not None",
"def WGC8(YKHO):\n return YKHO.connection.isOpen()",
"def WGC8(YKHO):\n return YKHO.conn.open",
"def UERb(YKHO):\n ... | [
"0.9024887",
"0.8961831",
"0.81315815",
"0.81257755",
"0.80546355",
"0.79255587",
"0.7924642",
"0.7774636",
"0.7760799",
"0.7753529",
"0.77159536",
"0.7703194",
"0.7651213",
"0.76434505",
"0.76299965",
"0.76201487",
"0.75707895",
"0.74527735",
"0.73980796",
"0.7376171",
"0.73... | 0.8011751 | 5 |
Returns the list of schemas in the current session. | def O5ZV(YKHO):
Aofo = YKHO.sql('SHOW DATABASES').execute()
return [rdlD[0] for rdlD in Aofo.fetch_all()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JIS1(YKHO):\n return YKHO.get_schemas()",
"def JIS1(YKHO):\n if not YKHO._schemas:\n YKHO._schemas = ZCCt(YKHO.attributes.workspace.namespace, YKHO.attributes.workspace.name)\n return YKHO._schemas",
"def JIS1(YKHO):\n return C3ST.Schemas(YKHO)",
"def O5ZV(YKHO):\n xDcj = Unkf.get_s... | [
"0.7940168",
"0.7674091",
"0.76055425",
"0.76007926",
"0.74846065",
"0.7372321",
"0.6949388",
"0.6884964",
"0.68326396",
"0.68226933",
"0.6800426",
"0.6788221",
"0.6720207",
"0.6689522",
"0.6683078",
"0.6618202",
"0.66057914",
"0.65894604",
"0.6363446",
"0.63566357",
"0.62927... | 0.76975685 | 1 |
Closes the sessions opened by this client. | def DDI8(YKHO):
k5LK().close_pool(YKHO.settings)
for cuiw in YKHO.sessions:
cuiw.close_connections() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def close_session(YKHO):\n await YKHO._client_session.close()",
"def DDI8(YKHO):\n YKHO._client.close_session()",
"async def close(YKHO):\n try:\n YKHO.logger.debug('Closing session')\n if YKHO.key in YKHO._ALL_SESSIONS:\n del YKHO._ALL_SESSIONS[YKHO.key]\n finally:\n... | [
"0.8111592",
"0.8103941",
"0.7726971",
"0.7700497",
"0.7689983",
"0.7650477",
"0.76026857",
"0.76026857",
"0.76026857",
"0.76026857",
"0.76026857",
"0.76026857",
"0.7557631",
"0.7541065",
"0.7507988",
"0.7507988",
"0.7507988",
"0.7449348",
"0.74443275",
"0.74263626",
"0.74213... | 0.6882067 | 41 |
Validates the settings to be passed to a Session object the port values are converted to int if specified or set to 33060 otherwise. The priority values for each router is converted to int if specified. | def Jfry(gCuF):
Z22o = set(gCuF.keys()).difference(cln7)
if Z22o:
m1cc = "', '".join(Z22o)
raise _r_u(f"Invalid option(s): '{m1cc}'")
if 'routers' in gCuF:
for oimG in gCuF['routers']:
DUL6(oimG, 33060)
elif 'host' in gCuF:
DUL6(gCuF)
if 'ssl-mode' in gCuF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vdw4(YKHO):\n if GPtr.BindHTTPPorts:\n if GPtr.HTTPPort == 0:\n raise KwM_('HTTPPort required if BindHTTPPorts is not empty')\n elif GPtr.HTTPPort != 0:\n GPtr.BindHTTPPorts = [GPtr.HTTPPort]\n if GPtr.BindSSLPorts:\n if GPtr.SSLPort == 0:\n raise KwM_('SSLPo... | [
"0.60197586",
"0.5657626",
"0.5495007",
"0.53471047",
"0.5289687",
"0.5281556",
"0.5281556",
"0.5234276",
"0.52294874",
"0.51977766",
"0.5155232",
"0.5141573",
"0.5139727",
"0.51385075",
"0.50844365",
"0.5050152",
"0.5013974",
"0.50133044",
"0.50025",
"0.49238983",
"0.4921965... | 0.5876934 | 1 |
Return whether `other` is equal to `self`. | def aPi6(YKHO, Elif: Schema) -> bool:
if not isinstance(Elif, Ve9k):
raise TypeError(f'invalid equality comparison between Schema and {type(Elif)}')
return YKHO.__cached_equals__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n if Elif != None:\n return YKHO == Elif\n else:\n return False",
"def xa14(YKHO, Elif):\n if Elif != None:\n return YKHO == Elif\n else:\n return ... | [
"0.86491597",
"0.86491597",
"0.854738",
"0.854738",
"0.8474165",
"0.84631306",
"0.8452681",
"0.8449483",
"0.84473795",
"0.84290755",
"0.84290755",
"0.84053004",
"0.83532363",
"0.8346449",
"0.83375067",
"0.83325887",
"0.8330618",
"0.8330618",
"0.8329669",
"0.8322861",
"0.83128... | 0.0 | -1 |
Return the name of a schema column at position `i`. | def p4Cb(YKHO, YRbF: int) -> str:
return YKHO.names[YRbF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yg6c(YKHO, YRbF):\n return YKHO.__column_list[YRbF]",
"def p4Cb(YKHO, YRbF: int) -> str:\n CN9P = len(YKHO.names) - 1\n if not 0 <= YRbF <= CN9P:\n raise ValueError(f'Column index must be between 0 and {CN9P:d}, inclusive')\n return YKHO.names[YRbF]",
"def z0q4(YKHO) -> qe4Y.Input[str]:\... | [
"0.7554233",
"0.75307804",
"0.6253363",
"0.6253363",
"0.6171738",
"0.61690795",
"0.60926527",
"0.60854715",
"0.60502803",
"0.5991299",
"0.5967933",
"0.596589",
"0.5952607",
"0.59414124",
"0.5929768",
"0.5908907",
"0.58810186",
"0.5862473",
"0.5850232",
"0.5824398",
"0.5803906... | 0.6199214 | 4 |
Get absolute path to resource, works for dev and for PyInstaller | def Kci8(t_yv):
pv1X = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), '..'))
XSj5 = getattr(HwRy, '_MEIPASS', pv1X)
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join... | [
"0.83695436",
"0.8280479",
"0.82485795",
"0.8139178",
"0.8114118",
"0.80985415",
"0.80940944",
"0.80797124",
"0.80677074",
"0.80673695",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.80569947",
"0.80545217",
"0.80448323",
"0.804... | 0.67379564 | 92 |
Does filename have the right extension? | def XT0o(Ux0P):
return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in UWr8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufXY(Ux0P):\n for tTpl in CBZq:\n if Ux0P.endswith(tTpl):\n return True\n return False",
"def YgKf(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in UWr8",
"def swJp(Ux0P):\n return Hy7s.path.splitext(Ux0P)[-1].split('.')[-1].lower() in bNpf",
"def DpAt(Ux0P):\n i... | [
"0.8175792",
"0.8096151",
"0.8093916",
"0.8046253",
"0.8033267",
"0.8031603",
"0.8024645",
"0.79953194",
"0.7994354",
"0.7982996",
"0.7975772",
"0.79300594",
"0.79300594",
"0.79102004",
"0.79071707",
"0.79071707",
"0.789413",
"0.789413",
"0.78927565",
"0.78927565",
"0.7892756... | 0.7877349 | 33 |
reads a float form a string, even if it has the german format 0,123... | def KMaT(KCHu):
return float(KCHu.replace(',', '.')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PpvX(str):\n return float(str.strip().replace(',', '.'))",
"def pd4L(nPrm):\n return float(hr3c(nPrm))",
"def BQ6F(vIwR):\n try:\n return float(vIwR.strip())\n except:\n return 0",
"def wUR_(Ty9i):\n if Ty9i.strip() == '':\n return 0.0\n try:\n return float(T... | [
"0.80227596",
"0.77828217",
"0.7699975",
"0.7610833",
"0.75872433",
"0.7562495",
"0.7347126",
"0.7338427",
"0.7285755",
"0.7278729",
"0.72324264",
"0.7218965",
"0.7198287",
"0.7153326",
"0.7091352",
"0.7007192",
"0.6976528",
"0.69736487",
"0.69532895",
"0.6889665",
"0.688155"... | 0.7946037 | 1 |
Returns a pathlib.Path for this request string. The implementation for RequestString.path always raises a RuntimeError because it is never absolute. This property only works on absolute requests. | def pmON(YKHO):
if Hy7s.path.isabs(YKHO._value):
return oAb3.Path(YKHO._value)
raise RuntimeError('RequestString.path not supported.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OyQC(YKHO, NkkI=False):\n lpha = YKHO.path_s.split('?', 1)\n pmON = lpha[0]\n if not NkkI:\n return pmON\n if not pmON.startswith(('http://', 'https://')):\n return pmON\n return Q6dV.legacy.urlparse(pmON).path",
"def OyQC(YKHO, pmON):\n return WQbV(gzes(YKHO.origin, *pmON))",... | [
"0.7237451",
"0.678672",
"0.67106724",
"0.6682079",
"0.66322964",
"0.6565029",
"0.65359443",
"0.65359443",
"0.65359443",
"0.6533527",
"0.65183985",
"0.64979887",
"0.64979595",
"0.64671755",
"0.6465075",
"0.6459914",
"0.6457533",
"0.64359605",
"0.64359605",
"0.64359605",
"0.64... | 0.88102084 | 0 |
Filename for current memory file (the one most recently changed). | def FeWy():
RRlC = AxU8.get_memory_files()
if RRlC:
RRlC.sort()
return RRlC[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KiZ8(YKHO):\n if YKHO.char_limit is not None:\n return '{}/{}.{}.n{}.maf'.format(YKHO.out_dir, YKHO.chrom, YKHO.taxon, YKHO.file_num)\n else:\n return '{}/{}.{}.maf'.format(YKHO.out_dir, YKHO.chrom, YKHO.taxon)",
"def Jso9(YKHO):\n return Hy7s.path.basename(YKHO.filePath)",
"def g_2H... | [
"0.73334825",
"0.7168673",
"0.7136722",
"0.7060595",
"0.7046298",
"0.70014346",
"0.6970598",
"0.6907836",
"0.6907836",
"0.6907836",
"0.6907836",
"0.6907836",
"0.68909687",
"0.6883916",
"0.6880127",
"0.6873842",
"0.6865343",
"0.6865343",
"0.68574065",
"0.685289",
"0.6844556",
... | 0.7224698 | 1 |
Area of a polygon poly | def f0tD(_g9D):
if len(_g9D) < 3:
return 0
wjRY = [0, 0, 0]
mLGw = len(_g9D)
for YRbF in range(mLGw):
Q_TO = _g9D[YRbF]
Z_AF = _g9D[(YRbF + 1) % mLGw]
QRFO = oyIN.cross(Q_TO, Z_AF)
wjRY[0] += QRFO[0]
wjRY[1] += QRFO[1]
wjRY[2] += QRFO[2]
Aofo =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2cR(j5tF):\n return Fw8z.gmPolygonArea(j5tF)",
"def f0tD(YKHO):\n if len(YKHO.exterior) < 3:\n raise Exception(\"Cannot compute the polygon's area because it contains less than three points.\")\n _g9D = YKHO.to_shapely_polygon()\n return _g9D.area",
"def gdLg(j5tF):\n z1Rg = Rgf5(j5t... | [
"0.8176059",
"0.8084898",
"0.79985636",
"0.79627657",
"0.7924583",
"0.77745014",
"0.7765651",
"0.76911414",
"0.7609196",
"0.7605955",
"0.75849307",
"0.75703204",
"0.7535243",
"0.7532483",
"0.74723613",
"0.7454908",
"0.72762483",
"0.72718465",
"0.71883357",
"0.71582144",
"0.71... | 0.7998656 | 2 |
Transformation matrix from rotation matrix and translation vector. | def f30r(Mkmy, a1PO):
Mkmy = Mkmy.reshape(3, 3)
a1PO = a1PO.reshape(3, 1)
return oyIN.vstack((oyIN.hstack([Mkmy, a1PO]), [0, 0, 0, 1])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cFTJ(YKHO):\n a1PO = oyIN.array([[0.0], [0.0], [0.0]])\n h4Tb = oyIN.hstack([YKHO.rotation_matrix, a1PO])\n return oyIN.vstack([h4Tb, oyIN.array([0.0, 0.0, 0.0, 1.0])])",
"def GBH6(A3Vt):\n A3Vt = aLMY(A3Vt)\n Kt_s = A3Vt.col_insert(3, aLMY([0.0, 0.0, 0.0]))\n Kt_s = Kt_s.row_insert(3, aLMY... | [
"0.79309523",
"0.75719136",
"0.73282856",
"0.7112825",
"0.7076982",
"0.70006925",
"0.6996054",
"0.6989444",
"0.69222313",
"0.6920505",
"0.6899384",
"0.6864149",
"0.6864149",
"0.6862257",
"0.68577725",
"0.68504566",
"0.683982",
"0.68377185",
"0.683515",
"0.6823503",
"0.6820043... | 0.64948016 | 48 |
Rotation about the yaxis. | def A9Me(a1PO):
Z9rn = oyIN.cos(a1PO)
KCHu = oyIN.sin(a1PO)
return oyIN.array([[Z9rn, 0, KCHu], [0, 1, 0], [-KCHu, 0, Z9rn]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CSjm(YKHO):\n return epAf.degrees(YKHO._rot_y_rad)",
"def VFbY(YKHO):\n return YKHO._rot_y_rad",
"def PQG0(YKHO, *qIxc, **B2fa) -> ImMB:\n pass",
"def a60O(YKHO, YylR):\n YylR *= oyIN.pi / 180\n return YKHO.transform(oyIN.matrix([[oyIN.cos(YylR), 0, oyIN.sin(YylR)], [0, 1, 0], [-oyIN.sin(Y... | [
"0.75396633",
"0.7354722",
"0.7102622",
"0.7064357",
"0.7036538",
"0.6986756",
"0.6895528",
"0.6895528",
"0.68484044",
"0.68028474",
"0.6717387",
"0.66640604",
"0.66279566",
"0.6614649",
"0.658053",
"0.6575346",
"0.6554816",
"0.6505504",
"0.63935125",
"0.6393029",
"0.63855916... | 0.0 | -1 |
represent transitions as table | def k7Xq(UlCL, wspz, gZgb):
UlCL = hj4o(UlCL)
qVbB(UlCL, wspz, gZgb)
tyNF = []
for jvSB in wspz:
for Ueki in gZgb:
next, Lsrz, BZN_ = UlCL(jvSB, Ueki)
tyNF.append([jvSB, Ueki, next, Lsrz, BZN_])
jQ3Z = rLdf.DataFrame(tyNF, columns=['current', 'read', 'next', 'write', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlCL(YKHO) -> x1iM[cuzp]:\n return []",
"def xNMX(YKHO):\n UlCL = []\n for rdlD in YKHO.states:\n qDYx = []\n for iVRZ in YKHO.states:\n qDYx.append([rdlD, iVRZ])\n UlCL.append(qDYx)\n return sorted(UlCL)",
"def fZbB(YKHO):\n wspz = YKHO.get_canonical_collecti... | [
"0.67255855",
"0.6671027",
"0.66532004",
"0.63881505",
"0.6283373",
"0.6169781",
"0.61309755",
"0.61049795",
"0.60562634",
"0.5987227",
"0.5958376",
"0.58731186",
"0.58591586",
"0.5843021",
"0.5835255",
"0.57839334",
"0.57770514",
"0.5772655",
"0.5761435",
"0.57287306",
"0.57... | 0.71506095 | 0 |
Function to get the peak value in an aperture | def zkJA(YKHO, nPrm, ZHfW=None, NKcE='exact', RU0H=5, PXGI=None):
uaMN = YKHO.get_data_cutouts(nPrm, mask=None, method='exact', subpixels=5, unit=None)
ZUZ0 = []
for m9Pw in uaMN:
ZUZ0.append(oyIN.max(m9Pw))
ZUZ0 = YKHO._prepare_photometry_output(ZUZ0, unit=PXGI)
return ZUZ0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfRT(YKHO):\n pass",
"def hfRT(YKHO) -> AzJI[aIGO, QFe1]:\n assert YKHO._data\n return YKHO._data[0][2]",
"def hfRT(YKHO):\n return YKHO.peak",
"def hfRT(YKHO):\n return YKHO._data[0]",
"def CLuu(YKHO):\n P6sS = max(YKHO.data.max(), -YKHO.data.min())\n return float(P6sS) / YKHO.get... | [
"0.75032294",
"0.74555135",
"0.7303224",
"0.73032236",
"0.7296107",
"0.7195845",
"0.70544934",
"0.7023032",
"0.6945288",
"0.6901123",
"0.687773",
"0.6844767",
"0.6735962",
"0.66569304",
"0.6651869",
"0.66357124",
"0.6615047",
"0.6570366",
"0.65643936",
"0.6484093",
"0.6391976... | 0.7094022 | 6 |
Add the passed in Pile of Cards to the Hand | def EYgh(YKHO, n68H):
for Z9rn in range(n68H.get_size()):
dxhl = n68H.remove_first()
YKHO._hand.add_last(dxhl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qV31(YKHO, dxhl):\n YKHO.hand.append(dxhl)",
"def SEtL(YKHO, dxhl):\n YKHO.hand.append(dxhl)",
"def lACn(YKHO, dxhl):\n if isinstance(dxhl, list):\n for U6D_ in range(len(dxhl)):\n mJ0s = MsG1([dxhl[U6D_]])\n YKHO.cards += mJ0s.cards\n else:\n mJ0s = MsG1([dx... | [
"0.7303749",
"0.7261806",
"0.7231359",
"0.71908945",
"0.708371",
"0.70317644",
"0.69786596",
"0.69185394",
"0.6915161",
"0.68766797",
"0.68649715",
"0.67979866",
"0.66192365",
"0.6605498",
"0.6580519",
"0.65088373",
"0.6503876",
"0.6503876",
"0.6503876",
"0.6503876",
"0.64854... | 0.74441516 | 0 |
Displays the game over screen | def mUfv(YKHO):
o9av = a9eO.font.SysFont(fPg0.GAME_OVER_FONT_TYPE, fPg0.GAME_OVER_FONT_SIZE)
J20S = o9av.render('Game Over', True, fPg0.GAME_OVER_FONT_COLOR)
mawX = J20S.get_rect()
mawX.midtop = (fPg0.SCREEN_WIDTH // 2.5, fPg0.SCREEN_HEIGHT // 20)
YKHO.screen.blit(J20S, mawX)
a9eO.display.update... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VtS_(YKHO):\n ufJO.blit(YKHO.image_of_game_over, (250, 170))",
"def u6FO():\n LIBH = a9eO.font.Font('freesansbold.ttf', 120)\n zgpM = LIBH.render('Game', True, eJVO)\n _uNd = LIBH.render('Over', True, eJVO)\n y3vn = zgpM.get_rect()\n yc69 = _uNd.get_rect()\n y3vn.midtop = (j1Tv / 2, 10)\... | [
"0.828568",
"0.81241494",
"0.8054334",
"0.80165696",
"0.8001225",
"0.7982136",
"0.79339725",
"0.76767915",
"0.76292074",
"0.75744355",
"0.75530946",
"0.7505249",
"0.74886507",
"0.74126536",
"0.74051535",
"0.73711807",
"0.7322313",
"0.72022474",
"0.7196458",
"0.7169502",
"0.71... | 0.83626986 | 0 |
Create a new point at the given coordinates. | def FIMM(YKHO, gdGq, VBPk):
YKHO.x = gdGq
YKHO.y = VBPk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wTOg(YKHO, jNOo, **xAU6):\n if 'fill' not in xAU6:\n xAU6['fill'] = YKHO.variables.foreground_color\n o4D3, si3g = (jNOo[0] - YKHO.variables.point_size, jNOo[1] - YKHO.variables.point_size)\n ajwV, skBL = (jNOo[0] + YKHO.variables.point_size, jNOo[1] + YKHO.variables.point_size)\n fi6e = YKH... | [
"0.7404491",
"0.7181391",
"0.71479046",
"0.71479046",
"0.7141722",
"0.6773949",
"0.67493427",
"0.650266",
"0.6469327",
"0.64393455",
"0.6358204",
"0.63443464",
"0.6252241",
"0.62502253",
"0.6229518",
"0.62291485",
"0.6227966",
"0.6197312",
"0.61617047",
"0.61275893",
"0.60861... | 0.0 | -1 |
L2 normalize weights of the given tensor along specified dimension(s). | def FWlN(yzQ0, Htse=(0,), oug5=1e-05):
with ZylS.name_scope('normalization'):
return yzQ0 / ZylS.sqrt(ZylS.reduce_sum(ZylS.square(yzQ0), Htse, keep_dims=True) + oug5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vdmx(WKvO, jDK_=-1):\n return bdPE.backend.l2_normalize(WKvO, axis=jDK_)",
"def ptrh(KgjX):\n return U78l.BatchNorm2d(num_features=KgjX, eps=_Fei.BN.EPS, momentum=_Fei.BN.MOM)",
"def NkkI(yzQ0: torch.Tensor):\n if yzQ0.dim() > 1:\n return aOUW(yzQ0)\n return x69E(yzQ0)",
"def _RbW(g4y1... | [
"0.6906336",
"0.6751098",
"0.6747886",
"0.67012024",
"0.66678435",
"0.6618368",
"0.659822",
"0.65933174",
"0.6558486",
"0.6515114",
"0.6459915",
"0.64257294",
"0.64257294",
"0.6387475",
"0.6333754",
"0.6331633",
"0.63164073",
"0.63137084",
"0.6294328",
"0.625288",
"0.62514037... | 0.7061722 | 0 |
Creates and returns a variable initialized with random_normal_initializer, suitable for use as a weight. In the current variable scope, creates (if necessary) and returns a named variable with `tf.random_normal_initializer`. | def E9N2(ROpF, mWFP='weight', JBMS=0.0, z2bo=None, MuED=None, rLcX=None, yDqo=ZylS.float32):
if z2bo is None:
raise ValueError('stddev not specified!')
if MuED is None:
MuED = ZylS.random_normal_initializer(mean=JBMS, stddev=z2bo)
_mSQ = ZylS.get_variable(mWFP, shape=ROpF, initializer=MuED, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GGV2():\n ZylS.reset_default_graph()\n ZylS.random.set_random_seed(0)\n SOVn = LFiW['normal']\n zA8t = SOVn({'mean': 0.5, 'std': 0.1})\n aJhS = zA8t.get_entity_initializer(init_type='tf')\n CIn9 = ZylS.get_variable(shape=(1000, 100), initializer=aJhS, name='var1')\n with ZylS.Session() as ... | [
"0.71384406",
"0.6798357",
"0.6797846",
"0.67852306",
"0.6762905",
"0.66798437",
"0.66715586",
"0.6670965",
"0.66580564",
"0.66332424",
"0.6632297",
"0.6625665",
"0.6625665",
"0.6625665",
"0.66211706",
"0.6609821",
"0.65978444",
"0.6589735",
"0.6589735",
"0.6588253",
"0.65617... | 0.62627494 | 58 |
Creates and returns a variable initialized with random_normal_initializer, suitable for use as a bias. In the current variable scope, creates (if necessary) and returns a named variable with `tf.random_normal_initializer`. | def Y7ph(ROpF, mWFP='bias', BWXx=0.0, MuED=None, rLcX=None, yDqo=ZylS.float32):
if MuED is None:
MuED = ZylS.constant_initializer(value=BWXx)
HabP = ZylS.get_variable(mWFP, shape=ROpF, initializer=MuED, dtype=yDqo)
if rLcX is not None:
rLcX(HabP)
return HabP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GGV2():\n ZylS.reset_default_graph()\n ZylS.random.set_random_seed(0)\n SOVn = LFiW['normal']\n zA8t = SOVn({'mean': 0.5, 'std': 0.1})\n aJhS = zA8t.get_entity_initializer(init_type='tf')\n CIn9 = ZylS.get_variable(shape=(1000, 100), initializer=aJhS, name='var1')\n with ZylS.Session() as ... | [
"0.6998297",
"0.69813174",
"0.6714513",
"0.670017",
"0.66862786",
"0.6548433",
"0.65048385",
"0.65048385",
"0.64924836",
"0.6492119",
"0.6483953",
"0.6455169",
"0.6425284",
"0.6387288",
"0.6375163",
"0.63635606",
"0.63576484",
"0.6350683",
"0.63267416",
"0.63231707",
"0.63061... | 0.0 | -1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, ciDu):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.80886984",
"0.80886984",
"0.8055307",
"0.7983415",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
_uniform_order_statistic_cdf(i, n, x) > Pr[U_(i) < x] Let U_1, ..., U_n ~ Uniform[0,1] be n independent random variables and let U_(1) < ... < U_(n) denote the same variables in sorted order. Then U_{(i)} ~ Beta(i, ni+1) This function returns the Cumulative Distribution function of U_(i), i.e. the return value is Pr[U_... | def _o0A(YRbF, exwG, WKvO):
return BZWM(YRbF, exwG - YRbF + 1, WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kz4l(WKvO):\n if WKvO < 0:\n return 0\n elif WKvO < 1:\n return WKvO\n else:\n return 1",
"def kz4l(WKvO: float) -> float:\n if WKvO < 0:\n return 0\n elif WKvO < 1:\n return WKvO\n else:\n return 1",
"def x1Q9(MzO8):\n return XTiz.cumsum(MzO8)... | [
"0.6810556",
"0.66873217",
"0.6532582",
"0.61932427",
"0.6031655",
"0.5951562",
"0.58816993",
"0.5845623",
"0.5833746",
"0.5804201",
"0.5792395",
"0.57640696",
"0.571037",
"0.5705995",
"0.5701245",
"0.5682896",
"0.56571573",
"0.56272",
"0.5618689",
"0.5618689",
"0.55853397",
... | 0.82678026 | 0 |
Return epidemic curves for region. | def SlGb(YKHO, jb_B=None, **B2fa) -> rLdf.DataFrame:
jb_B = rK9S(jb_B)
return jb_B.epidemic_curve(YKHO.region, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kGZp(YKHO):\n return YKHO._curve_reg",
"def Kyfx(YKHO):\n return [YKHO.f1(YKHO.rho), YKHO.f0(YKHO.rho)]",
"def RNJ5(YKHO, D70y):\n AY2l, Vvpx, VIDK = ql_G().CurveOnSurface(D70y.topods_shape(), YKHO.topods_shape())\n return (AY2l, Kx1f(Vvpx, VIDK))",
"def skKF(nPrm):\n im04 = []\n try:\n... | [
"0.63937724",
"0.612072",
"0.5898211",
"0.5730005",
"0.549379",
"0.5446748",
"0.54353255",
"0.53812855",
"0.52399015",
"0.52078134",
"0.5206522",
"0.52010757",
"0.5192675",
"0.51835597",
"0.51711965",
"0.51685727",
"0.516798",
"0.51506317",
"0.51501995",
"0.5141728",
"0.51417... | 0.66410077 | 0 |
Compute K(t) from the epidemic curves. This is function is just a | def iFxE(YKHO, jb_B=None, **B2fa) -> rLdf.DataFrame:
return YKHO._estimate_K(WgYu.estimate_Kt, jb_B, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tT41(YKHO, Kt_s):\n YZxf = dKN_ * Kt_s\n return (YKHO.parameters.A1 / oyIN.exp(YKHO.parameters.E1 / YZxf), YKHO.parameters.A2 / oyIN.exp(YKHO.parameters.E2 / YZxf))",
"def PLdX(ut5U):\n return PZyS(ut5U / 2.0723)",
"def nMvt(XP5J, ut5U):\n uLpB, zEV0 = XP5J\n CHiy = 8.0 / mM0K ** 2 * uLpB * ... | [
"0.72949606",
"0.68840677",
"0.66543484",
"0.66317314",
"0.6623678",
"0.65630686",
"0.6497177",
"0.6467203",
"0.64360315",
"0.6280468",
"0.6248467",
"0.6202558",
"0.61973745",
"0.6180712",
"0.61469555",
"0.61094",
"0.60734826",
"0.6054075",
"0.6050879",
"0.6050879",
"0.604047... | 0.0 | -1 |
Compute K from the epidemic curves. This is function is just a | def mDYx(YKHO, jb_B=None, **B2fa) -> lsjb:
return YKHO._estimate_K(WgYu.estimate_K, jb_B, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PLdX(ut5U):\n return PZyS(ut5U / 2.0723)",
"def VEAL(G1Hx):\n lz9e = 9.7846113e-07\n EI9L = 12.263868\n ut5U = (-1.0 + oyIN.sqrt(1.0 + 4.0 * lz9e * EI9L ** 2 * G1Hx ** 2)) / (2.0 * lz9e)\n return ut5U",
"def nMvt(XP5J, ut5U):\n uLpB, zEV0 = XP5J\n CHiy = 8.0 / mM0K ** 2 * uLpB * zEV0 *... | [
"0.73452586",
"0.7132003",
"0.69813544",
"0.693446",
"0.6920138",
"0.69113845",
"0.66754484",
"0.6447015",
"0.6447015",
"0.6443218",
"0.6425994",
"0.6422214",
"0.6419491",
"0.63766694",
"0.63710374",
"0.6330453",
"0.63301593",
"0.6309316",
"0.6291866",
"0.6286026",
"0.6263551... | 0.0 | -1 |
Returns the latest Update entity for a team. | def fsbt(Emd4, dZPi):
return Emd4.query(Emd4.team == dZPi.lower()).order(-Emd4.date).get() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zjbk(YKHO):\n try:\n b2mu = YKHO.request.GET.get('team')\n if b2mu is not None:\n b2mu = int(b2mu)\n return YKHO.get_available_teams().get(pk=b2mu)\n return YKHO.get_available_teams().latest()\n except (r2Kd.DoesNotExist, ValueError):\n return None",
"d... | [
"0.64540523",
"0.6395068",
"0.6357223",
"0.6178414",
"0.6149434",
"0.584595",
"0.58045524",
"0.56917953",
"0.55864483",
"0.5518969",
"0.55044276",
"0.55032736",
"0.5442801",
"0.53913397",
"0.5334119",
"0.525284",
"0.5211612",
"0.52074313",
"0.51889384",
"0.5177728",
"0.516420... | 0.6974967 | 0 |
Extrapolation of zero rates beyond fsp. | def f_I9(ipXM, NxN3, TJgh, Cwt5=0.1, KPQe=20):
zDG9 = ipXM[KPQe - 1]
J0pE = ipXM[0:KPQe]
jBPN = 120 - KPQe
for MKlR in range(1, jBPN + 1):
epBp = oyIN.exp((KPQe * zDG9 + MKlR * lUkZ(MKlR, NxN3, TJgh, Cwt5)) / (KPQe + MKlR)) - 1
J0pE.append(epBp[0])
return J0pE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jYF4(GAyr, Kikq, NxN3, KPQe=20, Cwt5=None, b4lR=0.0, fQlK=oyIN.array([3.3, 1.45, 6, 0.3, 0.4])):\n fwvq = oyIN.where(Kikq == 1)[0] + 1\n L8FR = GAyr[oyIN.where(Kikq == 1)]\n kic4 = WQ6_(GAyr, fwvq)\n if Cwt5 is None:\n FZv_ = kic4[KPQe - 1]\n T_w1 = vldj([-0.5, 0.5], [0.2, 0.1], kind=... | [
"0.69276035",
"0.5971338",
"0.59490603",
"0.58849704",
"0.5847047",
"0.5700037",
"0.567109",
"0.56408817",
"0.5596573",
"0.55785406",
"0.5571876",
"0.54841083",
"0.54795015",
"0.54718083",
"0.5468277",
"0.54417115",
"0.5404876",
"0.5370664",
"0.53702486",
"0.53702486",
"0.533... | 0.7663408 | 0 |
test to make sure the unweighted counts result is the same as npairs_3d | def ULTG():
Xkrd = 100
UMcl = oyIN.random.random((Xkrd, 3))
RUnY = oyIN.random.random((Xkrd, 3)) * 2.0 - 1.0
pQ4c = oyIN.array([1.0, 1.0, 1.0])
eXmm = oyIN.linspace(0.0, 0.3, 5)
oiIa = oyIN.ones((Xkrd, 4))
oiIa[:, 1] = RUnY[:, 0]
oiIa[:, 2] = RUnY[:, 1]
oiIa[:, 3] = RUnY[:, 2]
Ed... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZeT():\n Xkrd = 100\n _hZ2 = 0.001\n UdKV = _uMc(Xkrd, 0.1, 0.1, 0.1, epsilon=_hZ2)\n P38E = _uMc(Xkrd, 0.9, 0.9, 0.9, epsilon=_hZ2)\n o9lK = nIdC(len(UdKV))\n Mkmy = oyIN.sqrt((0.9 - 0.1) ** 2 + (0.9 - 0.1) ** 2 + (0.9 - 0.1) ** 2)\n KCHu = oyIN.zeros((Xkrd, 3))\n KCHu[:, 0] = 0.9 - U... | [
"0.6804071",
"0.6675446",
"0.6558152",
"0.6553596",
"0.6355471",
"0.59420466",
"0.5904359",
"0.5867944",
"0.5852378",
"0.5840163",
"0.57754296",
"0.5756164",
"0.5666417",
"0.5629368",
"0.56008625",
"0.5580319",
"0.55392295",
"0.55317265",
"0.55268514",
"0.55140775",
"0.550797... | 0.8235178 | 0 |
Initialize a DecisionSupervisor instance. | def FIMM(YKHO):
YKHO.state = {0: wspz.FindWall(), 1: wspz.FollowWall(), 2: wspz.TurnToWall(), 3: wspz.AvoidWall(), 4: wspz.AvoidObstacles(), 5: wspz.GoToSample(), 6: wspz.Stop(), 7: wspz.InitiatePickup(), 8: wspz.WaitForPickupInitiate(), 9: wspz.WaitForPickupFinish(), 10: wspz.GetUnstuck(), 11: wspz.ReturnHome(), 1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, BHCt, zkbl='java', whNM='predict', **B2fa):\n super(HmMl, YKHO).__init__(BHCt, target_language=zkbl, target_method=whNM, **B2fa)\n YKHO.estimator = BHCt",
"def FIMM(YKHO, BHCt, zkbl='java', whNM='predict', **B2fa):\n super(_VRL, YKHO).__init__(BHCt, target_language=zkbl, target_method=whN... | [
"0.59564227",
"0.5945482",
"0.58487767",
"0.57880265",
"0.5686964",
"0.56799275",
"0.55700696",
"0.5561293",
"0.55600226",
"0.55399656",
"0.5519745",
"0.5513815",
"0.55039734",
"0.55000854",
"0.5485623",
"0.5476553",
"0.547578",
"0.54478437",
"0.54260653",
"0.5421856",
"0.540... | 0.0 | -1 |
Check if either events have occurred. | def JIys(YKHO, aKLT, S1R7, zuPL):
ngNL = YKHO.event.get(S1R7)
Ae21 = YKHO.event.get(zuPL)
return ngNL(aKLT) or Ae21(aKLT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I6Tj(YKHO):\n pass",
"def fnGw(YKHO, aKLT, S1R7, zuPL):\n ngNL = YKHO.event.get(S1R7)\n Ae21 = YKHO.event.get(zuPL)\n return ngNL(aKLT) and Ae21(aKLT)",
"def Z80H(YKHO):\n if len(YKHO.event_queue) > 0:\n tvqc = YKHO.event_queue.pop(0)\n YKHO.event_queue_proc(tvqc)\n retu... | [
"0.706401",
"0.66520953",
"0.65679574",
"0.64521164",
"0.63444453",
"0.63211894",
"0.6298124",
"0.62498295",
"0.6214975",
"0.62132365",
"0.6204186",
"0.60979587",
"0.60976624",
"0.60758334",
"0.6062037",
"0.6035241",
"0.60278326",
"0.602027",
"0.6019511",
"0.6019247",
"0.6019... | 0.6606034 | 2 |
Check if both events have occurred. | def fnGw(YKHO, aKLT, S1R7, zuPL):
ngNL = YKHO.event.get(S1R7)
Ae21 = YKHO.event.get(zuPL)
return ngNL(aKLT) and Ae21(aKLT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I6Tj(YKHO):\n pass",
"def TPjt(YKHO, Elif: Event) -> bool:\n return YKHO.timestamp <= Elif.timestamp",
"def JIys(YKHO, aKLT, S1R7, zuPL):\n ngNL = YKHO.event.get(S1R7)\n Ae21 = YKHO.event.get(zuPL)\n return ngNL(aKLT) or Ae21(aKLT)",
"def jmxi(YKHO, Elif: Event) -> bool:\n return not YK... | [
"0.6898676",
"0.6448902",
"0.64360255",
"0.6405506",
"0.64001495",
"0.63844377",
"0.6315303",
"0.6301358",
"0.6233651",
"0.6232503",
"0.6225918",
"0.62225395",
"0.62174076",
"0.6212137",
"0.6169394",
"0.6145492",
"0.60770476",
"0.6058647",
"0.6055802",
"0.6047041",
"0.6041531... | 0.7315005 | 0 |
Returns the canonical representation of this graph edge. | def wHJl(YKHO):
return repr((YKHO.head_vertex, YKHO.tail_vertex)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return 'Edge(%s, %s)' % (repr(YKHO[0]), repr(YKHO[1]))",
"def mHYZ(YKHO):\n return _VfD.ASTNode_canonicalize(YKHO)",
"def U6Uq(YKHO):\n return (YKHO.L.zero(), YKHO.K.one())",
"def wHJl(YKHO):\n KCHu = f'GraphViaEdges(name={repr(YKHO.name)}, '\n KCHu += f'edges={repr(YKHO.edge... | [
"0.6712845",
"0.64270645",
"0.6277145",
"0.62455523",
"0.61855644",
"0.6159736",
"0.61473686",
"0.61255693",
"0.6048268",
"0.6000083",
"0.5991154",
"0.59588206",
"0.5912053",
"0.59012926",
"0.5886229",
"0.58211297",
"0.5789143",
"0.5769494",
"0.5747226",
"0.5731961",
"0.57145... | 0.54360175 | 36 |
Returns a string representation of this graph edge. | def zAg0(YKHO):
V2FA = str(YKHO.__class__.__name__) + ': ('
_NCl = str(YKHO.head_vertex) + ', ' + str(YKHO.tail_vertex) + ')'
ZCQy = V2FA + _NCl
return ZCQy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n KCHu = f\"GraphViaEdges '{YKHO.name}',\\nedges :\\n\"\n for D70y, j3Ar in YKHO.edges.items():\n KCHu += f' {D70y[0]} {j3Ar.value} {D70y[1]}\\n'\n return KCHu",
"def wHJl(YKHO) -> str:\n if YKHO._has_direction:\n return f\"<Edge: from {YKHO._start} to {YKHO._end} wit... | [
"0.829538",
"0.8027543",
"0.80226904",
"0.7803095",
"0.77875525",
"0.7444098",
"0.740537",
"0.740537",
"0.7379465",
"0.7336204",
"0.733274",
"0.73219347",
"0.72903866",
"0.7256598",
"0.7256598",
"0.71568406",
"0.71414953",
"0.700553",
"0.69704586",
"0.6965743",
"0.6958509",
... | 0.6592445 | 42 |
Compares two graph edges for inequality. The comparison is done by comparing the vertices constituting the respective edge. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zcf_(YKHO, Elif):\n if YKHO.head_vertex < Elif.head_vertex:\n return False\n elif YKHO.tail_vertex < Elif.tail_vertex:\n return False\n elif YKHO.weight < Elif.weight:\n return False\n return True",
"def Zcf_(YKHO, Elif):\n if YKHO.head_vertex < Elif.head_vertex:\n ... | [
"0.67699313",
"0.67699313",
"0.6718917",
"0.6626745",
"0.65958774",
"0.65786624",
"0.6506578",
"0.64915997",
"0.6450196",
"0.642483",
"0.63609326",
"0.6352806",
"0.63514936",
"0.63239413",
"0.62910086",
"0.6231645",
"0.6231645",
"0.6223897",
"0.6218536",
"0.6200331",
"0.61680... | 0.0 | -1 |
Returns if this edge is directed. | def mwdm(YKHO):
return YKHO.directed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mwdm(YKHO):\n return YKHO.graph_properties.directed",
"def mwdm(YKHO) -> bool:\n return YKHO._directed",
"def mwdm(YKHO):\n return YKHO._directed",
"def mwdm(YKHO):\n return YKHO._directed",
"def mwdm(YKHO):\n return YKHO.G.is_directed()",
"def mwdm(YKHO) -> bool:\n return True",
... | [
"0.84067917",
"0.83739835",
"0.83364844",
"0.83069426",
"0.82440245",
"0.8019368",
"0.78854835",
"0.7802546",
"0.74070334",
"0.7043718",
"0.6455642",
"0.6275015",
"0.6208662",
"0.6207945",
"0.61559343",
"0.60839826",
"0.60836643",
"0.60414565",
"0.60307395",
"0.602906",
"0.60... | 0.83261657 | 4 |
Constructs a directed weighted graph edge connecting the two specified vertices found in the specified graph. | def FIMM(YKHO, pNZh, aUWu, uFPI, upAO):
super(UQHR, YKHO).__init__(pNZh, aUWu, uFPI)
YKHO.weighted = True
YKHO.weight = upAO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GZim():\n from weighted_graph import Weighted\n pIsY = Weighted()\n pIsY.add_node('A')\n pIsY.add_node('B')\n pIsY.add_node('C')\n pIsY.add_node('D')\n pIsY.add_node('E')\n pIsY.add_node('F')\n pIsY.add_edge('A', 'B')\n pIsY.add_edge('A', 'C')\n pIsY.add_edge('B', 'D')\n pIs... | [
"0.67409766",
"0.6545794",
"0.64893067",
"0.6466647",
"0.64448774",
"0.63899666",
"0.6371012",
"0.63194865",
"0.6267181",
"0.61984056",
"0.6165937",
"0.6140469",
"0.613026",
"0.6119577",
"0.60430056",
"0.60415614",
"0.6038654",
"0.60329944",
"0.602843",
"0.6024041",
"0.602313... | 0.6211411 | 9 |
Returns the canonical representation of this directed weighted graph edge. | def wHJl(YKHO):
return repr((YKHO.head_vertex, YKHO.tail_vertex, YKHO.weight)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return 'Edge(%s, %s)' % (repr(YKHO[0]), repr(YKHO[1]))",
"def hQl6(YKHO):\n return YKHO.copy()",
"def X1mq(YKHO):\n return YKHO._edge_attribute",
"def U6Uq(YKHO):\n return (YKHO.L.zero(), YKHO.K.one())",
"def wHJl(YKHO):\n qQlD = any((True for G1Hx in YKHO._weights.keys()))... | [
"0.6424335",
"0.61460406",
"0.6138745",
"0.61359054",
"0.61086214",
"0.6104206",
"0.6060279",
"0.60108656",
"0.59402764",
"0.5861147",
"0.5855592",
"0.5824435",
"0.5788696",
"0.57834995",
"0.5775695",
"0.5741126",
"0.57334286",
"0.5730161",
"0.572557",
"0.56915885",
"0.567717... | 0.5819703 | 13 |
Returns a string representation of this directed weighted graph edge. | def zAg0(YKHO):
V2FA = str(YKHO.__class__.__name__) + ': ('
RTjS = str(YKHO.head_vertex) + ', '
vuuP = str(YKHO.tail_vertex) + ', '
sRK6 = str(YKHO.weight) + ')'
_NCl = RTjS + vuuP + sRK6
ZCQy = V2FA + _NCl
return ZCQy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n KCHu = f\"GraphViaEdges '{YKHO.name}',\\nedges :\\n\"\n for D70y, j3Ar in YKHO.edges.items():\n KCHu += f' {D70y[0]} {j3Ar.value} {D70y[1]}\\n'\n return KCHu",
"def zAg0(YKHO):\n return 'Edge Weight: ' + str(YKHO.weight) + '\\n' + 'Edge Attributes: ' + str(YKHO.attributes)... | [
"0.7739981",
"0.7695178",
"0.7586101",
"0.75069964",
"0.7232776",
"0.72205067",
"0.71528155",
"0.7108102",
"0.70996356",
"0.7042502",
"0.69743747",
"0.6971483",
"0.68795323",
"0.68476313",
"0.6840448",
"0.6840448",
"0.67873716",
"0.67873716",
"0.6765409",
"0.6765409",
"0.6751... | 0.65143275 | 29 |
Compares two directed weighted graph edges for equality. The comparison is done by comparing the vertices constituting the respective edges and the weight of the respective edges. | def xa14(YKHO, Elif):
if isinstance(Elif, UQHR):
if YKHO.head_vertex != Elif.head_vertex:
return False
elif YKHO.tail_vertex != Elif.tail_vertex:
return False
elif YKHO.weight != Elif.weight:
return False
return True
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.vertices == Elif.vertices and YKHO.weight == Elif.weight",
"def xa14(YKHO, Elif):\n if isinstance(Elif, type(YKHO)):\n SLaQ = YKHO._edges == Elif._edges\n fNmx = YKHO._weights == Elif._weights\n return SLaQ and fNmx\n else:\n return False",... | [
"0.6958796",
"0.66861707",
"0.6495343",
"0.6471634",
"0.6320421",
"0.62764096",
"0.62764096",
"0.6267954",
"0.6096804",
"0.6045613",
"0.59932524",
"0.5959931",
"0.59565455",
"0.5941056",
"0.592869",
"0.5906578",
"0.5875933",
"0.58749247",
"0.58143383",
"0.57974845",
"0.577917... | 0.6716901 | 1 |
Compares two directed weighted graph edges for inequality. The comparison is done by comparing the vertices constituting the respective edges and the weight of the respective edges. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zcf_(YKHO, Elif):\n if YKHO.head_vertex < Elif.head_vertex:\n return False\n elif YKHO.tail_vertex < Elif.tail_vertex:\n return False\n elif YKHO.weight < Elif.weight:\n return False\n return True",
"def Zcf_(YKHO, Elif):\n if YKHO.head_vertex < Elif.head_vertex:\n ... | [
"0.6690867",
"0.6690867",
"0.65242505",
"0.6516784",
"0.6380098",
"0.6228067",
"0.61667687",
"0.61667687",
"0.61625665",
"0.6162488",
"0.6139756",
"0.60557073",
"0.60064006",
"0.600105",
"0.5986747",
"0.597607",
"0.592648",
"0.59132373",
"0.5912225",
"0.59072435",
"0.59072435... | 0.0 | -1 |
Returns if this edge is weighted. | def Qiud(YKHO):
return YKHO.weighted | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiud(YKHO):\n return YKHO._weighted",
"def Qiud(YKHO):\n return YKHO.properties.weighted",
"def Qiud(yvY1):\n return yvY1.is_weighted()",
"def Vo49(YKHO) -> bool:\n return YKHO._weighted_estimation",
"def Xjlq(YKHO):\n return YKHO.id in (1, 2)",
"def Vo49(YKHO) -> bool:\n pass",
"... | [
"0.85247034",
"0.84561473",
"0.7810495",
"0.7601611",
"0.73710126",
"0.7284329",
"0.7097942",
"0.7078276",
"0.65169454",
"0.64693487",
"0.6455727",
"0.6354632",
"0.63507086",
"0.63039726",
"0.62808347",
"0.6277241",
"0.6258785",
"0.62173945",
"0.6197365",
"0.6197365",
"0.6197... | 0.85533684 | 2 |
Returns the weight of the directed weighted graph edge. | def rOos(YKHO):
return YKHO.weight | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upAO(YKHO, D70y):\n return YKHO._weights[frozenset(D70y)]",
"def sR9N(D70y):\n return Ayfi(D70y.orig, D70y.dest)",
"def oXl7(YKHO, CBRg, j9ly):\n if not YKHO.is_weighted():\n print('WARNING: Graph is NOT weighted!')\n return None\n if YKHO.adjacent(CBRg, j9ly):\n return YKH... | [
"0.8129193",
"0.8003027",
"0.80014724",
"0.76997113",
"0.7638267",
"0.75383854",
"0.7373104",
"0.7211308",
"0.715701",
"0.6963197",
"0.696162",
"0.69156826",
"0.66656625",
"0.66656625",
"0.66656625",
"0.6635396",
"0.65802395",
"0.6562561",
"0.6515059",
"0.6470114",
"0.6467352... | 0.6724653 | 12 |
Returns if this edge is weighted. | def Qiud(YKHO):
return YKHO.weighted | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiud(YKHO):\n return YKHO._weighted",
"def Qiud(YKHO):\n return YKHO.properties.weighted",
"def Qiud(yvY1):\n return yvY1.is_weighted()",
"def Vo49(YKHO) -> bool:\n return YKHO._weighted_estimation",
"def Xjlq(YKHO):\n return YKHO.id in (1, 2)",
"def Vo49(YKHO) -> bool:\n pass",
"... | [
"0.85247034",
"0.84561473",
"0.7810495",
"0.7601611",
"0.73710126",
"0.7284329",
"0.7097942",
"0.7078276",
"0.65169454",
"0.64693487",
"0.6455727",
"0.6354632",
"0.63507086",
"0.63039726",
"0.62808347",
"0.6277241",
"0.6258785",
"0.62173945",
"0.6197365",
"0.6197365",
"0.6197... | 0.85533684 | 0 |
Returns if this edge is directed. | def mwdm(YKHO):
return YKHO.directed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mwdm(YKHO):\n return YKHO.graph_properties.directed",
"def mwdm(YKHO) -> bool:\n return YKHO._directed",
"def mwdm(YKHO):\n return YKHO._directed",
"def mwdm(YKHO):\n return YKHO._directed",
"def mwdm(YKHO):\n return YKHO.G.is_directed()",
"def mwdm(YKHO) -> bool:\n return True",
... | [
"0.84067917",
"0.83739835",
"0.83364844",
"0.83069426",
"0.82440245",
"0.8019368",
"0.78854835",
"0.7802546",
"0.74070334",
"0.7043718",
"0.6455642",
"0.6275015",
"0.6208662",
"0.6207945",
"0.61559343",
"0.60839826",
"0.60836643",
"0.60414565",
"0.60307395",
"0.602906",
"0.60... | 0.83261657 | 3 |
Constructs an undirected weighted graph edge connecting the two specified vertices found in the specified graph. | def FIMM(YKHO, pNZh, aUWu, uFPI, upAO):
super(W6bH, YKHO).__init__(pNZh, aUWu, uFPI)
YKHO.weight = upAO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GZim():\n from weighted_graph import Weighted\n pIsY = Weighted()\n pIsY.add_node('A')\n pIsY.add_node('B')\n pIsY.add_node('C')\n pIsY.add_node('D')\n pIsY.add_node('E')\n pIsY.add_node('F')\n pIsY.add_edge('A', 'B')\n pIsY.add_edge('A', 'C')\n pIsY.add_edge('B', 'D')\n pIs... | [
"0.6535345",
"0.6419934",
"0.6400952",
"0.6257576",
"0.62537855",
"0.6233085",
"0.6230038",
"0.6156722",
"0.6150063",
"0.6117105",
"0.6092831",
"0.60178375",
"0.598439",
"0.5979376",
"0.59757173",
"0.5965193",
"0.59521127",
"0.5938053",
"0.5937702",
"0.58988655",
"0.58736444"... | 0.6103343 | 10 |
Returns the canonical representation of this graph edge. | def wHJl(YKHO):
return repr((YKHO.head_vertex, YKHO.tail_vertex, YKHO.weight)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return 'Edge(%s, %s)' % (repr(YKHO[0]), repr(YKHO[1]))",
"def mHYZ(YKHO):\n return _VfD.ASTNode_canonicalize(YKHO)",
"def U6Uq(YKHO):\n return (YKHO.L.zero(), YKHO.K.one())",
"def wHJl(YKHO):\n KCHu = f'GraphViaEdges(name={repr(YKHO.name)}, '\n KCHu += f'edges={repr(YKHO.edge... | [
"0.6712845",
"0.64270645",
"0.6277145",
"0.62455523",
"0.61855644",
"0.6159736",
"0.61473686",
"0.61255693",
"0.6048268",
"0.6000083",
"0.5991154",
"0.59588206",
"0.5912053",
"0.59012926",
"0.5886229",
"0.58211297",
"0.5789143",
"0.5769494",
"0.5747226",
"0.5731961",
"0.57145... | 0.5542506 | 32 |
Returns a string representation of this graph edge. | def zAg0(YKHO):
V2FA = str(YKHO.__class__.__name__) + ': ('
RTjS = str(YKHO.head_vertex) + ', '
vuuP = str(YKHO.tail_vertex) + ', '
sRK6 = str(YKHO.weight) + ')'
_NCl = RTjS + vuuP + sRK6
ZCQy = V2FA + _NCl
return ZCQy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n KCHu = f\"GraphViaEdges '{YKHO.name}',\\nedges :\\n\"\n for D70y, j3Ar in YKHO.edges.items():\n KCHu += f' {D70y[0]} {j3Ar.value} {D70y[1]}\\n'\n return KCHu",
"def wHJl(YKHO) -> str:\n if YKHO._has_direction:\n return f\"<Edge: from {YKHO._start} to {YKHO._end} wit... | [
"0.829538",
"0.8027543",
"0.80226904",
"0.7803095",
"0.77875525",
"0.7444098",
"0.740537",
"0.740537",
"0.7379465",
"0.7336204",
"0.733274",
"0.73219347",
"0.72903866",
"0.7256598",
"0.7256598",
"0.71568406",
"0.71414953",
"0.700553",
"0.69704586",
"0.6965743",
"0.6958509",
... | 0.6620852 | 38 |
Compares two undirected weighted graph edges for equality. The comparison is done by comparing the vertices constituting the respective edges and the weight of the respective edges. | def xa14(YKHO, Elif):
if isinstance(Elif, W6bH):
if YKHO.head_vertex != Elif.head_vertex:
return False
elif YKHO.tail_vertex != Elif.tail_vertex:
return False
elif YKHO.weight != Elif.weight:
return False
return True
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.vertices == Elif.vertices and YKHO.weight == Elif.weight",
"def xa14(YKHO, Elif):\n if isinstance(Elif, UQHR):\n if YKHO.head_vertex != Elif.head_vertex:\n return False\n elif YKHO.tail_vertex != Elif.tail_vertex:\n return False\n ... | [
"0.70128596",
"0.6869596",
"0.67607963",
"0.6654154",
"0.6561618",
"0.6561618",
"0.6346451",
"0.6277991",
"0.6276002",
"0.6192862",
"0.60529923",
"0.60419333",
"0.60337394",
"0.6005246",
"0.59807146",
"0.59807146",
"0.5971091",
"0.5962844",
"0.5947676",
"0.5939486",
"0.592814... | 0.678387 | 2 |
Compares two undirected weighted graph edges for inequality. The comparison is done by comparing the vertices constituting the respective edges and the weight of the respective edges. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zcf_(YKHO, Elif):\n if YKHO.head_vertex < Elif.head_vertex:\n return False\n elif YKHO.tail_vertex < Elif.tail_vertex:\n return False\n elif YKHO.weight < Elif.weight:\n return False\n return True",
"def Zcf_(YKHO, Elif):\n if YKHO.head_vertex < Elif.head_vertex:\n ... | [
"0.68472934",
"0.68472934",
"0.65563667",
"0.65508115",
"0.64969313",
"0.6274817",
"0.6274817",
"0.6223155",
"0.61916786",
"0.61542195",
"0.614179",
"0.6086487",
"0.6039508",
"0.60231197",
"0.6021971",
"0.6021971",
"0.6004016",
"0.5975145",
"0.5955949",
"0.59454757",
"0.59438... | 0.0 | -1 |
Returns the weight of the undirected weighted graph edge. | def rOos(YKHO):
return YKHO.weight | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upAO(YKHO, D70y):\n return YKHO._weights[frozenset(D70y)]",
"def sR9N(D70y):\n return Ayfi(D70y.orig, D70y.dest)",
"def oXl7(YKHO, CBRg, j9ly):\n if not YKHO.is_weighted():\n print('WARNING: Graph is NOT weighted!')\n return None\n if YKHO.adjacent(CBRg, j9ly):\n return YKH... | [
"0.81204045",
"0.77929056",
"0.77081287",
"0.7384713",
"0.73840564",
"0.72583896",
"0.72555566",
"0.7238862",
"0.6997294",
"0.6879325",
"0.68051094",
"0.6717882",
"0.6713216",
"0.66891116",
"0.66891116",
"0.66891116",
"0.6632665",
"0.660954",
"0.6608168",
"0.6507241",
"0.6507... | 0.67143077 | 13 |
Returns if this edge is weighted. | def Qiud(YKHO):
return YKHO.weighted | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qiud(YKHO):\n return YKHO._weighted",
"def Qiud(YKHO):\n return YKHO.properties.weighted",
"def Qiud(yvY1):\n return yvY1.is_weighted()",
"def Vo49(YKHO) -> bool:\n return YKHO._weighted_estimation",
"def Xjlq(YKHO):\n return YKHO.id in (1, 2)",
"def Vo49(YKHO) -> bool:\n pass",
"... | [
"0.85247034",
"0.84561473",
"0.7810495",
"0.7601611",
"0.73710126",
"0.7284329",
"0.7097942",
"0.7078276",
"0.65169454",
"0.64693487",
"0.6455727",
"0.6354632",
"0.63507086",
"0.63039726",
"0.62808347",
"0.6277241",
"0.6258785",
"0.62173945",
"0.6197365",
"0.6197365",
"0.6197... | 0.85533684 | 1 |
Set the name of an address. Sets the name of an address in IDA. | def WZrJ(UTX6, mWFP, QvBp=False):
nyyK = GTZY.set_name(UTX6, mWFP, GTZY.SN_NOWARN | GTZY.SN_NOCHECK)
if nyyK:
return
if QvBp:
nyyK = GTZY.do_name_anyway(UTX6, mWFP)
if nyyK:
return
raise Bx6I.SarkSetNameFailed('Failed renaming 0x{:08X} to {!r}.'.format(UTX6, mWFP)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dZIK(YKHO, UTX6, mWFP):\n with YKHO.connect() as Z9rn:\n DpUl = Z9rn.cursor()\n DpUl.execute(\"UPDATE AddressBook SET name = '{}' WHERE address = '{}'\".format(mWFP, UTX6))\n return True",
"def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)",
"def oSgC(YKHO, mWFP):\n YKHO._name = m... | [
"0.75548315",
"0.71784353",
"0.71413356",
"0.7125585",
"0.71055186",
"0.71055186",
"0.70820135",
"0.70820135",
"0.70316553",
"0.70316553",
"0.70316553",
"0.70316553",
"0.7006621",
"0.6948661",
"0.6948661",
"0.6948661",
"0.6948661",
"0.6948661",
"0.693277",
"0.69252336",
"0.69... | 0.7559003 | 0 |
initialize light cnn network with given weights file. if weights file is None, the weights are initialized by default initializer. | def FIMM(YKHO, KndY=None, S6oJ='29v2', I_Oq=None, mDAm=None, PvMw=(128, 128)):
YKHO.in_size_hw = PvMw
YKHO.num_classes = KndY
YKHO.extractor_weights = I_Oq
YKHO.classifier_weights = mDAm
YKHO._extractor = None
YKHO._classifier = None
if YKHO.extractor_weights is not None:
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(YKHO, SUd8=None):\n if SUd8:\n pass\n else:\n WKvO = YKHO.weights_shape[1]\n LVAh = YKHO.weights_shape[0]\n YKHO.weights = oyIN.random.randn(LVAh, WKvO) / oyIN.sqrt(WKvO)\n YKHO.biases = oyIN.random.randn(LVAh, 1)",
"def SUd8(YKHO, BZEu):\n YKHO.model.load_wei... | [
"0.7651809",
"0.7207766",
"0.714582",
"0.71045166",
"0.7063997",
"0.70586157",
"0.7006124",
"0.6996825",
"0.6922726",
"0.6919001",
"0.6825991",
"0.67974085",
"0.6793859",
"0.6781146",
"0.6740116",
"0.6736335",
"0.6708144",
"0.6689562",
"0.66745234",
"0.66745234",
"0.66745234"... | 0.0 | -1 |
return list of splited dataframes | def u2JL(jQ3Z: pd.DataFrame) -> list:
return [Zv6i(jQ3Z, YRbF, YRbF + 100) for YRbF in range(0, len(jQ3Z), 100)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6ua(jQ3Z: pd.DataFrame):\n nPrm = UQtd('data', ['filename', 'object'])\n qBVh = jQ3Z.groupby('filename')\n return [nPrm(Ux0P, qBVh.get_group(WKvO)) for Ux0P, WKvO in zip(qBVh.groups.keys(), qBVh.groups)]",
"def Ulm3(bOBl):\n bOBl = bOBl.dropna()\n d6pt = 100\n XxFT = bOBl.iloc[:d6pt]\n ... | [
"0.6931345",
"0.6758762",
"0.6697154",
"0.6572435",
"0.6540929",
"0.640965",
"0.6394982",
"0.63716984",
"0.6367447",
"0.63674307",
"0.63355523",
"0.6308027",
"0.62738186",
"0.625152",
"0.61773694",
"0.61694336",
"0.61681116",
"0.6078391",
"0.6028715",
"0.6028631",
"0.6020443"... | 0.66597307 | 3 |
Check if this is the 'max context' doc span for the token. Because of the sliding window approach taken to scoring documents, a single token can appear in multiple documents. | def tgrD(W9wB, R5op, dQgj):
JSwO = MGHa(W9wB, dQgj)
return R5op == JSwO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgrD(W9wB, R5op, dQgj):\n Qai7 = None\n JSwO = None\n for EfdS, LMpM in enumerate(W9wB):\n Os4s = LMpM.start + LMpM.length - 1\n if dQgj < LMpM.start:\n continue\n if dQgj > Os4s:\n continue\n N461 = dQgj - LMpM.start\n p3me = Os4s - dQgj\n ... | [
"0.81666505",
"0.81666505",
"0.80861664",
"0.76825464",
"0.7549702",
"0.7522705",
"0.6171613",
"0.59147215",
"0.56549305",
"0.5647985",
"0.5500991",
"0.5489646",
"0.54532236",
"0.5427922",
"0.5393629",
"0.53854585",
"0.5348451",
"0.5320114",
"0.52660835",
"0.52506053",
"0.525... | 0.7938717 | 3 |
Filters out doc_spans, which might not be relevant to answering question, which can be helpful when document is extremely long leading to many doc_spans with no answers | def _nVq(W9wB, AafE, n0qL, Tuqy):
if Tuqy == 'all':
return W9wB
elif Tuqy == 'only_positive':
if AafE in [-1, None] or n0qL in [-1, None]:
return []
else:
return [LMpM for LMpM in W9wB if AafE >= LMpM.start and n0qL <= LMpM.start + LMpM.length - 1]
elif Tuqy =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r0UT(A97Q):\n\n def SGVO(_dZy):\n zX_f = mBkc([oeNL[0] for oeNL in _dZy['pos_tags']])\n cu9Y = zX_f['NOUN'] + zX_f['PROPN'] + zX_f['PRON']\n shxm = zX_f['VERB'] + zX_f['AUX']\n Fd4y = cu9Y >= 1 and shxm >= 1\n deVW = Fd4y and cu9Y > 1\n return deVW\n krVj = [_dZy... | [
"0.62472975",
"0.5847748",
"0.583575",
"0.57769537",
"0.57591414",
"0.57234687",
"0.56612074",
"0.5646727",
"0.56322473",
"0.55924857",
"0.55790424",
"0.5574625",
"0.55640864",
"0.5542045",
"0.55394304",
"0.55327314",
"0.5477125",
"0.54676485",
"0.5460647",
"0.54581726",
"0.5... | 0.71136427 | 0 |
Close the underlying client to the HBase instance. This method can be safely called more than once. Note that the client is destroyed after it is closed which will cause errors to occur | def DDI8(YKHO) -> None:
if YKHO.client is None:
return
if bo34 is not None:
bo34.debug(f'Closing Thrift transport to {YKHO.host}:{YKHO.port}')
YKHO.client.close()
YKHO.client = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EKNI(YKHO):\n x0hE.close()",
"def zI_d(YKHO):\n YKHO.ssh_client.close()",
"def DDI8(YKHO):\n YKHO.shutdown()\n YKHO._client.close()",
"async def close(YKHO) -> None:\n if YKHO._client:\n await YKHO._client.__aexit__()",
"def DDI8(YKHO):\n if YKHO.client:\n YKHO.client.co... | [
"0.71063393",
"0.6860559",
"0.6856127",
"0.6839546",
"0.6762218",
"0.6728074",
"0.6604954",
"0.6489788",
"0.6444724",
"0.64077437",
"0.6398559",
"0.63399166",
"0.6217777",
"0.6193713",
"0.6177189",
"0.6150679",
"0.614646",
"0.6129677",
"0.61130965",
"0.60951537",
"0.6062458",... | 0.715433 | 0 |
Compares received's attributes with expected's kwargs. | def kwt_(CGbw, **aEqx):
for G1Hx, Ty9i in aEqx.iteritems():
NaW5(Ty9i, getattr(CGbw, G1Hx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LTQ8(YKHO):\n for Y3lg, e59y in [('reactor', '_reactor'), ('client', '_client')]:\n YKHO.assertIdentical(getattr(YKHO, Y3lg), getattr(YKHO.wrapper, e59y))",
"def KfQh():\n NArs = dict(name='test', type_=str, is_required=True)\n assert URbA(**NArs) == URbA(**NArs)\n assert URbA(**NArs) is n... | [
"0.6576146",
"0.6564596",
"0.6462569",
"0.6408045",
"0.6395285",
"0.6344218",
"0.6291002",
"0.6240182",
"0.62239105",
"0.61092496",
"0.607779",
"0.6026101",
"0.6014606",
"0.60038954",
"0.5952767",
"0.5885488",
"0.5867236",
"0.58600116",
"0.5829513",
"0.58288026",
"0.5824071",... | 0.7866361 | 0 |
Return the absolute path to the migration script folder. | def te8u():
return gzes(TLI7(TLI7(TLI7(OH_j.__file__))), 'migrations') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r9_q(YKHO) -> str:\n with Hwza.path(f'PyFunceble.data.{EOaO.cli.storage.ALEMBIC_DIRECTORY_NAME}', '__init__.py') as qaEx:\n Aofo = Hy7s.path.split(qaEx)[0]\n if EOaO.storage.CONFIGURATION.cli_testing.db_type == 'postgresql':\n return Hy7s.path.join(Aofo, 'postgresql')\n return Hy7s.path.... | [
"0.771517",
"0.7598042",
"0.73491156",
"0.72787374",
"0.7230808",
"0.6944726",
"0.68556404",
"0.6811978",
"0.6753096",
"0.669813",
"0.6693428",
"0.667507",
"0.66400284",
"0.66386336",
"0.66133446",
"0.6611378",
"0.6556615",
"0.65509653",
"0.6544871",
"0.6544871",
"0.6486247",... | 0.8255686 | 0 |
Assert that the numeric prefixes of the DB migrations are unique. | def VKFS(YKHO):
r58R = ZbWC.compile('^\\d+')
PnSn = set()
pmON = YKHO._migrations_path()
for Ux0P in U9eF(pmON):
kUBT = r58R.match(Ux0P)
if kUBT:
FGW3 = kUBT.group()
if FGW3 in PnSn:
YKHO.fail('There is more than one migration #%s in %s.' % (FGW3, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IEms(YKHO):\n YKHO.chck_triple('prefix')",
"def uj6L():\n assert MmyZ('ts_some_name') == 'some_name'\n assert MmyZ('some_name') == 'some_name'\n assert MmyZ('ts_some_ts_name') == 'some_ts_name'\n assert MmyZ('some_ts_name') == 'some_ts_name'",
"def I62H(YKHO):\n YKHO.phonebook.add('Bob', ... | [
"0.6097303",
"0.6040116",
"0.5913195",
"0.58292675",
"0.58030826",
"0.57863855",
"0.56782293",
"0.5632286",
"0.5627914",
"0.55827665",
"0.55247986",
"0.55160433",
"0.55130035",
"0.5502277",
"0.5491454",
"0.5479071",
"0.5462152",
"0.54441065",
"0.5438034",
"0.5420087",
"0.5418... | 0.7371309 | 0 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(nL7L, YKHO).__init__(*qIxc, **c_sp)
if YKHO.ctrl is None:
YKHO.ctrl = BbHH.msg.ElectromotorsState()
else:
YKHO.ctrl = BbHH.msg.ElectromotorsState() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.7794351",
"0.7719884",
"0.7719884",
"0.7686347",
"0.76253426",
"0.7562994",
"0.74395365",
"0.7416649",
"0.73515975",
"0.730761",
"0.7279932",
"0.72373426",
"0.72264934",
"0.7223775",
"0.7223775",
"0.72189564",
"0.72111243",
"0.72111243",
"0.72111243",
"0.72111243",
"0.7211... | 0.0 | -1 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(JngK, YKHO).__init__(*qIxc, **c_sp)
if YKHO.result is None:
YKHO.result = 0
else:
YKHO.result = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.77941823",
"0.7721771",
"0.7721771",
"0.76875746",
"0.7627467",
"0.75655127",
"0.7441343",
"0.7418733",
"0.7351187",
"0.73081994",
"0.72794753",
"0.72372985",
"0.7227603",
"0.7225375",
"0.7225375",
"0.72188306",
"0.7213351",
"0.7213351",
"0.7213351",
"0.7213351",
"0.721335... | 0.0 | -1 |
Makes snake grow one block longer Called by map.update() when snake's head is in collision with food | def WiYd(YKHO):
YKHO.starve = 500
YKHO.body.append(YKHO.old_tail) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n sdCG = (YKHO.snake[0][0] + YKHO.xv * YKHO.ac, YKHO.snake[0][1] + YKHO.yv * YKHO.ac)\n YKHO.snake.insert(0, sdCG)\n if sdCG == YKHO.apple:\n YKHO.score += 10\n YKHO.apple = None\n while not YKHO.apple:\n M_DK = tuKI.choice(UtkU)\n YKHO.apple = M_... | [
"0.7277614",
"0.66949636",
"0.66329545",
"0.6514946",
"0.65060645",
"0.65026385",
"0.6497427",
"0.6453022",
"0.63167936",
"0.6293433",
"0.6293245",
"0.6209517",
"0.6101574",
"0.6066382",
"0.6060743",
"0.60461587",
"0.604199",
"0.60198057",
"0.6012406",
"0.59504473",
"0.592508... | 0.6535498 | 3 |
Makes the snake direction to the right of the current direction Current direction = [x,y], turn_right gives [y,x] | def wzI_(YKHO):
ycBG = YKHO.direction[0]
YKHO.direction[0] = -YKHO.direction[1]
YKHO.direction[1] = ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wzI_(YKHO):\n YKHO.facing_direction += YKHO.config\n if YKHO.facing_direction > 7:\n YKHO.facing_direction -= 8\n YKHO.x, YKHO.y = YKHO.compute_positions()",
"def Y058(YKHO):\n YKHO.degrees -= lWrY",
"def wzI_(YKHO):\n pass",
"def wzI_(YKHO):\n YKHO.direction_mod_offset += 1\n ... | [
"0.7601584",
"0.75017947",
"0.74439204",
"0.7421596",
"0.7255912",
"0.7253135",
"0.7243722",
"0.7217155",
"0.71768004",
"0.715687",
"0.7089985",
"0.7026401",
"0.69998384",
"0.69393873",
"0.69342035",
"0.6932262",
"0.6792831",
"0.6776827",
"0.6776374",
"0.6773701",
"0.67681515... | 0.8202334 | 0 |
Makes the snake direction to the right of the current direction Current direction = [x,y], turn_right gives [y,x] | def nmwV(YKHO):
ycBG = YKHO.direction[0]
YKHO.direction[0] = YKHO.direction[1]
YKHO.direction[1] = -ycBG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wzI_(YKHO):\n ycBG = YKHO.direction[0]\n YKHO.direction[0] = -YKHO.direction[1]\n YKHO.direction[1] = ycBG",
"def wzI_(YKHO):\n YKHO.facing_direction += YKHO.config\n if YKHO.facing_direction > 7:\n YKHO.facing_direction -= 8\n YKHO.x, YKHO.y = YKHO.compute_positions()",
"def Y058(... | [
"0.82036936",
"0.7602102",
"0.7502819",
"0.74446523",
"0.7422422",
"0.72565275",
"0.7254244",
"0.72445714",
"0.7218234",
"0.7176285",
"0.71571696",
"0.70907134",
"0.7026792",
"0.70008147",
"0.6939965",
"0.69347",
"0.6932813",
"0.6794251",
"0.67778355",
"0.6777165",
"0.6773733... | 0.65929574 | 28 |
r"""Computes the VAE loss function. KL(N(\mu, \sigma), N(0, 1)) = \log \frac{1}{\sigma} + \frac{\sigma^2 + \mu^2}{2} \frac{1}{2} | def GT2U(YKHO, MbHC, g4y1, yGTL, IR53, **B2fa):
TN3a = vuvg.mse_loss(MbHC, g4y1)
WdPx = ht2j.mean(-0.5 * ht2j.sum(1 + IR53 - yGTL ** 2 - IR53.exp(), dim=1), dim=0)
N77f = TN3a - WdPx
return (N77f, TN3a, WdPx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fDxD(cGWo, WKvO, MByI):\n yGTL = MByI[:, 0:int(MByI.size()[1] / 2)]\n XO02 = MByI[:, int(MByI.size()[1] / 2):]\n WdPx = -0.5 * ht2j.sum(1 + XO02 - yGTL.pow(2) - XO02.exp())\n ny2L = vuvg.mse_loss(cGWo.squeeze(), WKvO.squeeze(), reduction='sum')\n return {'loss': WdPx + ny2L, 'mse': ny2L}",
"de... | [
"0.71050805",
"0.6940623",
"0.6602319",
"0.6597178",
"0.6597178",
"0.6597178",
"0.6597178",
"0.6519826",
"0.6477681",
"0.64758873",
"0.64575756",
"0.64531076",
"0.64357793",
"0.63821673",
"0.63579816",
"0.631307",
"0.6311189",
"0.6289294",
"0.62851536",
"0.6265628",
"0.625308... | 0.6408748 | 13 |
assign target_network.weights variables to their respective agent.weights values. | def FuEk(YKHO):
G9jH.debug('Transfer Weight!')
YKHO.network.save_weights(YKHO._save_path)
YKHO.target_network.load_weights(YKHO._save_path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gByt(YKHO):\n YKHO.target.set_weights(YKHO.policy.get_weights())",
"def Wi03(YKHO):\n XcU5, B3jd = (YKHO.model.get_weights(), YKHO.target_model.get_weights())\n for YRbF in range(len(XcU5)):\n B3jd[YRbF] = YKHO.tau * XcU5[YRbF] + (1 - YKHO.tau) * B3jd[YRbF]\n YKHO.target_model.set_weights(... | [
"0.74298966",
"0.7240756",
"0.7069389",
"0.70639586",
"0.6890794",
"0.6858491",
"0.68172055",
"0.67953044",
"0.66856223",
"0.6684053",
"0.6666912",
"0.66301864",
"0.66301864",
"0.66301864",
"0.6627997",
"0.6626138",
"0.66244763",
"0.6613709",
"0.6606935",
"0.65739423",
"0.657... | 0.7086991 | 2 |
The selenium remote control instance of currently active browser. | def ynfG(YKHO):
return YKHO._selenium | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DzFt():\n return ynfG._current_browser()",
"def IeNN(YKHO) -> wohN.RemoteControl:\n return YWvJ(wohN.RemoteControl, YKHO._interfaces[wohN.RemoteControl])",
"def iSDi():\n if GEiO.__instance is None:\n GEiO()\n return GEiO.__instance",
"def EHV_(YKHO):\n XeJV.set_timeout(WrxA)\n z... | [
"0.71983075",
"0.6925138",
"0.64066046",
"0.6203262",
"0.6168742",
"0.5982635",
"0.5981238",
"0.5977537",
"0.58916575",
"0.5799441",
"0.57358706",
"0.572651",
"0.57153845",
"0.5688557",
"0.5687891",
"0.56801546",
"0.56783015",
"0.5634735",
"0.5615675",
"0.5575124",
"0.5522626... | 0.62758404 | 3 |
Logarithm of the hyperbolic cosine of the prediction error. `log(cosh(x))` is approximately equal to `(x 2) / 2` for small `x` and to `abs(x) log(2)` for large `x`. This means that 'logcosh' works mostly like the mean squared error, but will not be so strongly affected by the occasional wildly incorrect prediction. | def vKWN(Y8eF, aMgO):
def PWFV(WKvO):
return WKvO + U78l.softplus(-2.0 * WKvO) - qkSJ.log(2.0)
return nMvt.mean(PWFV(aMgO - Y8eF), axis=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Klia(Y8eF, aMgO):\n aMgO = ui9o.convert_to_tensor_v2_with_dispatch(aMgO)\n Y8eF = qkSJ.cast(Y8eF, aMgO.dtype)\n\n def PWFV(WKvO):\n return WKvO + qkSJ.softplus(-2.0 * WKvO) - qkSJ.cast(qkSJ.log(2.0), WKvO.dtype)\n return DDLl.mean(PWFV(aMgO - Y8eF), axis=-1)",
"def AkgZ(WKvO):\n return ... | [
"0.76132387",
"0.72645205",
"0.70176494",
"0.6731372",
"0.6226951",
"0.62121165",
"0.6074388",
"0.6073056",
"0.59627014",
"0.5937668",
"0.5929191",
"0.5901009",
"0.58072233",
"0.5728377",
"0.5656887",
"0.5649234",
"0.5644657",
"0.5626796",
"0.56044716",
"0.55885035",
"0.55826... | 0.74146074 | 1 |
When called with an instance of L{bytes}, L{bytes_to_str} decodes its input using I{ascii} and returns the resulting str string as an instance of L{str}. | def u7GN(YKHO):
YKHO.assertRaises(UnicodeDecodeError, lambda: D6ho('☃'.encode('utf-8')))
AgdR = D6ho(b'hello world')
YKHO.assertIsInstance(AgdR, str)
YKHO.assertEqual(AgdR, 'hello world') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yf2C(BSLH: bytes) -> str:\n return ' '.join(['{:02x}'.format(WKvO) for WKvO in BSLH])",
"def D6ho(KCHu, tZ2K='utf-8'):\n if isinstance(KCHu, bytes):\n return KCHu.decode(tZ2K)\n return KCHu",
"def D6ho(YKHO, nPrm):\n if isinstance(nPrm, str):\n return nPrm\n return nPrm.decode(... | [
"0.7246639",
"0.7208778",
"0.7151885",
"0.71390045",
"0.7111041",
"0.7110607",
"0.7110607",
"0.70306545",
"0.70047045",
"0.6990467",
"0.6975962",
"0.6801189",
"0.6800496",
"0.6777518",
"0.6772956",
"0.6617866",
"0.65932745",
"0.65838194",
"0.652744",
"0.6471219",
"0.6455923",... | 0.7150879 | 3 |
Check if the sample has been generated in a random way. | def g62I(YKHO, Cwt5=0.05, tAX0='mean'):
QmN4, XP5J = FpeW(YKHO.x, cutoff=tAX0)
return YKHO._result(XP5J, Cwt5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wnO8(YKHO, ADdS):\n return ADdS > 0",
"def qGvb(YKHO):\n VzBA = 1.0 / YKHO._trans_sample_rate\n RKD7.debug('should_sample (sampling prob: %f)', VzBA)\n return tuKI() <= VzBA",
"def jo99(YKHO, XP5J: float=0.1):\n return RyuO.func.random() < XP5J",
"def oQWJ(YKHO) -> bool:\n return oyIN.r... | [
"0.790469",
"0.7621618",
"0.72218984",
"0.72212857",
"0.71029085",
"0.71029085",
"0.71029085",
"0.71029085",
"0.70999885",
"0.7068966",
"0.7065843",
"0.7065843",
"0.683941",
"0.6784703",
"0.6736935",
"0.672948",
"0.6573652",
"0.6567017",
"0.647614",
"0.646925",
"0.646925",
... | 0.64064646 | 29 |
Check that all field is a string with one or more characters. | def YMTI(QePW, Jyyj):
wEf2 = QePW.json.get(Jyyj, '')
if type(wEf2) is not str or len(wEf2) < 1:
raise Exception('Invalid {}'.format(Jyyj))
elif Jyyj == 'password':
return ynMQ(wEf2)
else:
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YIqk(YKHO):\n YKHO.assertTrue(xRT2(''))",
"def YIqk(YKHO):\n YKHO.assertTrue(zFzL(''))",
"def jXWM(NPoT):\n if len(NPoT) > 50:\n return False\n else:\n return bool(ZbWC.match('[a-zA-Z\\\\s]+$', NPoT))",
"def AHTa(NPoT):\n if not NPoT:\n raise QnHh('Input string should ... | [
"0.6745913",
"0.6696813",
"0.6637041",
"0.66326654",
"0.6543104",
"0.6416302",
"0.63635653",
"0.63391274",
"0.632886",
"0.6321404",
"0.62952805",
"0.6273974",
"0.6257625",
"0.623946",
"0.6231969",
"0.6192615",
"0.61773145",
"0.61684555",
"0.6159218",
"0.6149323",
"0.61417013"... | 0.0 | -1 |
Checks that password is longer than 8 characters and that it contains upper and lowercase letters and at least one number. | def ynMQ(jTXt):
FAfp = ZbWC.search('[A-Z]', jTXt)
TxU1 = ZbWC.search('[a-z]', jTXt)
if len(jTXt) < 8:
raise Exception('Password must be at lest 8 letters')
elif ZbWC.search('[0-9]', jTXt) is None:
raise Exception('Password must contain atleast one number')
elif FAfp is None or TxU1 i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tg18(jTXt):\n return isinstance(jTXt, str) and len(jTXt) >= 8 and ZbWC.search('[A-Z]', jTXt) and ZbWC.search('[0-9]', jTXt)",
"def tg18(YKHO, DFgi):\n if len(DFgi.data) < 8:\n raise sUXu('Your password must be 8 or more characters')\n qOSl = False\n AQnw = False\n for YRbF in DFgi.data:... | [
"0.8766334",
"0.81289023",
"0.81200564",
"0.80847394",
"0.8010414",
"0.7993104",
"0.78297937",
"0.7824315",
"0.78155774",
"0.7803249",
"0.7767423",
"0.77415377",
"0.7721763",
"0.76823556",
"0.7681701",
"0.7652257",
"0.76191694",
"0.7600995",
"0.75715125",
"0.7533356",
"0.7520... | 0.84100276 | 1 |
Convenience method for joining parts of a URL Any leading and trailing '/' characters are removed, and the parts joined together with '/' as a separator. If last element of 'parts' is an empty string, the returned URL will have a trailing slash. | def sa_K(*SQ3m):
SQ3m = SQ3m or ['']
vO1Y = [Q7me.strip('/') for Q7me in SQ3m if Q7me]
if not SQ3m[-1]:
vO1Y.append('')
return '/'.join(vO1Y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UUxs(YKHO, *SQ3m):\n return '/'.join(map(lambda vBtp: vBtp.rstrip('/'), SQ3m))",
"def TDhU(*SQ3m):\n\n def rZ13(SQ3m):\n THkp = None\n for Q7me in SQ3m:\n if not Q7me:\n continue\n if not THkp:\n THkp = Q7me\n elif (THkp[-1] =... | [
"0.84102356",
"0.82989657",
"0.81839633",
"0.8064334",
"0.79943556",
"0.7882533",
"0.786418",
"0.7630931",
"0.7371415",
"0.6973159",
"0.6902921",
"0.68932605",
"0.68614244",
"0.68232083",
"0.68219864",
"0.67865187",
"0.6781647",
"0.677915",
"0.6769976",
"0.66617376",
"0.66453... | 0.8668859 | 0 |
string that repersents the boundary condition imposed to the energy space wavefunctions | def RhGk(YKHO) -> str:
return YKHO._case | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VvTc(YKHO) -> str:\n ...",
"def zAg0(YKHO):\n YKHO.__normalize()\n ohLu = '# min = %lf\\n' % float(YKHO._min)\n ohLu += '# max = %lf\\n' % float(YKHO._max)\n ohLu += '# dx = %lf\\n' % float(YKHO._dx)\n ohLu += '# av = %lf (sErr = %lf)\\n' % (YKHO.av, YKHO.sErr)\n ohLu += '# sDev = ... | [
"0.6199592",
"0.5976905",
"0.5922983",
"0.5851359",
"0.5840542",
"0.57978845",
"0.565",
"0.5632981",
"0.56277174",
"0.56101704",
"0.55923355",
"0.5581757",
"0.5577677",
"0.54971206",
"0.54722154",
"0.5458786",
"0.5429907",
"0.54255545",
"0.5425042",
"0.54207623",
"0.5415468",... | 0.0 | -1 |
Pad a singlenested list or a sequence of nd array (torch.tensor or np.ndarray) into a (n+1)d array, only allow the first dim has variable lengths. | def pTHb(jWe2, yDqo=ht2j.long, begE=ht2j.device('cpu'), WCxg=None):
if isinstance(jWe2[0], list):
if 'torch' in str(yDqo):
jWe2 = [ht2j.tensor(KCHu, dtype=yDqo, device=begE) for KCHu in jWe2]
else:
jWe2 = [oyIN.asarray(KCHu, dtype=yDqo) for KCHu in jWe2]
_xz6 = jWe2[0].sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RnIX(fUYa: torch.Tensor, KHPh: int):\n GCiI = len(fUYa)\n wzH_ = max((WKvO.size(0) for WKvO in fUYa))\n hVLt = fUYa[0].new(GCiI, wzH_, *fUYa[0].size()[1:]).fill_(KHPh)\n for YRbF in range(GCiI):\n hVLt[YRbF, :fUYa[YRbF].size(0)] = fUYa[YRbF]\n return hVLt",
"def R9cP(yqD4, kjOt='edge', ... | [
"0.7142818",
"0.6955065",
"0.69292176",
"0.69206595",
"0.67178845",
"0.6659169",
"0.66363806",
"0.66253",
"0.66230506",
"0.6605494",
"0.65888196",
"0.6520145",
"0.65112054",
"0.6511188",
"0.65110904",
"0.6510516",
"0.64411896",
"0.63961047",
"0.6319004",
"0.6310096",
"0.63074... | 0.638518 | 18 |
Pad a doublenested list or a sequence of nd torch tensor into a (n+1)d tensor, only allow the first two dims has variable lengths | def CLKE(jWe2, yDqo=ht2j.long):
K_dq = len(jWe2)
uH1N = [len(Q6uT) for Q6uT in jWe2]
RtLy = max(uH1N)
FaR4 = [[len(YVCd) for YVCd in Q6uT] for Q6uT in jWe2]
zoDb = max([max(tTpl) for tTpl in FaR4])
if isinstance(jWe2[0], ht2j.Tensor):
_xz6 = jWe2[0].shape[2:]
elif isinstance(jWe2[0][... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dt8l(UHhk, C7vt, eusk=None, yDqo=ht2j.float, begE=begE):\n if eusk is None:\n eusk = max([len(yv6U) for yv6U in UHhk])\n S06t = []\n for yv6U in UHhk:\n if len(yv6U) < eusk:\n S06t.append(yv6U + [C7vt] * (eusk - len(yv6U)))\n else:\n S06t.append(yv6U[:eusk])\... | [
"0.7546675",
"0.7244427",
"0.709511",
"0.70657486",
"0.696946",
"0.6854676",
"0.6830674",
"0.67936957",
"0.6771958",
"0.67284626",
"0.6721991",
"0.6693022",
"0.667271",
"0.6560058",
"0.65521586",
"0.64398044",
"0.6357635",
"0.6346128",
"0.6315901",
"0.62978333",
"0.6295265",
... | 0.57962435 | 82 |