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 |
|---|---|---|---|---|---|---|
Gets the next set of ``Resources`` in this list which must be less than or equal to the return from ``available()``. | def u1rR(YKHO, exwG):
return YKHO._get_next_n(exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xIbK(YKHO):\n return YKHO.next()",
"def Zyeq(YKHO):\n while not YKHO.is_stopped():\n CsDk = YKHO.poolsonline.get_pools()\n F4Mo = YKHO.txonline.get_txsource()\n ygmB = YKHO.mempool.state\n if ygmB and CsDk and F4Mo:\n return (CsDk, F4Mo, ygmB)\n YKHO.stats ... | [
"0.65612185",
"0.6401355",
"0.6121206",
"0.60583377",
"0.6016034",
"0.59600174",
"0.59473145",
"0.58860904",
"0.5828736",
"0.5770873",
"0.57343775",
"0.5688375",
"0.566502",
"0.56185544",
"0.56173027",
"0.55503136",
"0.55426097",
"0.5541751",
"0.55347824",
"0.5529835",
"0.552... | 0.6636154 | 0 |
Gets the next set of ``ResourceNode`` elements in this list which must be less than or equal to the return from ``available()``. | def lYGE(YKHO, exwG):
return YKHO._get_next_n(exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x3lf(YKHO, exwG):\n return YKHO._get_next_n(Ykgu, number=exwG)",
"def JTky(YKHO):\n return YKHO.next()",
"def zpet(YKHO):\n return next(YKHO)",
"def u1rR(YKHO, exwG):\n return YKHO._get_next_n(exwG)",
"def khEi(YKHO, exwG=None):\n if exwG > YKHO.available():\n raise bfHs('not enou... | [
"0.6473394",
"0.6357391",
"0.63307804",
"0.6319509",
"0.63064384",
"0.6153868",
"0.60976076",
"0.6038041",
"0.5946407",
"0.5804482",
"0.5687243",
"0.5638405",
"0.5632529",
"0.56031364",
"0.5590442",
"0.5584528",
"0.556064",
"0.55472296",
"0.5536389",
"0.54977524",
"0.5435139"... | 0.66828656 | 0 |
Gets the ``BinFormRecord`` corresponding to the given bin record ``Type``. | def llBl(YKHO, jDFo):
raise UAju.Unimplemented() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nCtx(YKHO, jDFo):\n raise UAju.Unimplemented()",
"def tTZb(YKHO, fdXi):\n return YKHO._get_record(fdXi)",
"def tV70(YKHO, CG7U=None):\n if not YKHO.has_record_type():\n raise jian()\n else:\n raise e6xC()",
"def M95Z(YKHO, fdXi):\n return YKHO._get_record(fdXi)",
"def kaqf(... | [
"0.76395875",
"0.6350303",
"0.6322135",
"0.59491175",
"0.5929034",
"0.5660361",
"0.55663604",
"0.55266815",
"0.5522816",
"0.5234059",
"0.5126783",
"0.50803465",
"0.50496984",
"0.5048158",
"0.5013959",
"0.501297",
"0.49860224",
"0.49262288",
"0.49032575",
"0.49029773",
"0.4802... | 0.7901537 | 0 |
Gets the next set of ``BinNode`` elements in this list which must be less than or equal to the return from ``available()``. | def Zkfq(YKHO, exwG):
return YKHO._get_next_n(exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pohm(YKHO):\n return YKHO.next()",
"def rzEm(YKHO, exwG):\n return YKHO._get_next_n(exwG)",
"def gzjL(YKHO):\n return YKHO.next()",
"def Xkw2(YKHO, exwG=None):\n if exwG > YKHO.available():\n raise bfHs('not enough elements available in this list')\n else:\n h2v_ = []\n ... | [
"0.59445167",
"0.58556384",
"0.576406",
"0.5717004",
"0.56051326",
"0.5600046",
"0.5416213",
"0.5414245",
"0.5339423",
"0.53079945",
"0.5283764",
"0.52790844",
"0.5242928",
"0.5174627",
"0.5161861",
"0.5159243",
"0.51428765",
"0.51175845",
"0.5080029",
"0.5079916",
"0.5078348... | 0.6404579 | 0 |
Sends a 401 response that enables basic auth | def NLCy():
return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8093736",
"0.80926424",
"0.7958403",
"0.7852648",
"0.7843114",
"0.7824419",
"0.776624",
"0.7754693",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.774767",
"0.771945",
"0.7667712",
"0.7664151",
"0.76493174",
"0.76140213",
"0.76131... | 0.7810746 | 23 |
function [file_paths] = get_filepaths(audio_path, random_seed) % retrieves all the wav file names and relative path given the directory | def OTsP(VsKE, igb0=None, yJ5J=[], YBcr='.wav'):
import os
import os.path as khtY
xXFf = []
g4So = os.listdir(VsKE)
for wPbR in range(len(g4So)):
if khtY.isdir(khtY.join(VsKE, g4So[wPbR])):
Y0mO = OTsP(khtY.join(VsKE, g4So[wPbR]), forbid_list=yJ5J)
xXFf.extend(Y0mO)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M40A():\n Xt8l = Dc_J + '/assets'\n p9uA = []\n for nUeQ in Hy7s.scandir(Xt8l):\n p9uA.append(nUeQ.path)\n return p9uA",
"def OTsP(AGPF):\n xXFf = []\n for tk5Y, uRGD, RRlC in Hy7s.walk(AGPF):\n for Ux0P in RRlC:\n if Ux0P.endswith('.wav'):\n VqRE = H... | [
"0.79408836",
"0.73347616",
"0.6870975",
"0.68481165",
"0.68045294",
"0.6772409",
"0.6743666",
"0.6708103",
"0.6687669",
"0.6686756",
"0.6595322",
"0.6591728",
"0.6544094",
"0.6538474",
"0.65279245",
"0.6458737",
"0.6454211",
"0.6425526",
"0.6410728",
"0.64033353",
"0.6398313... | 0.834215 | 0 |
Return the path of the scikitlearn data dir. This folder is used by some large dataset loaders to avoid downloading the data several times. By default the data dir is set to a folder named 'scikit_learn_data' in the user home folder. Alternatively, it can be set by the 'SCIKIT_LEARN_DATA' environment variable or progra... | def Oh5_(nUtl=None):
if nUtl is None:
nUtl = PNq_.get('SCIKIT_LEARN_DATA', gzes('~', 'scikit_learn_data'))
nUtl = hIOi(nUtl)
if not vtfo(nUtl):
eviw(nUtl)
return nUtl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oh5_(nUtl=None):\n if nUtl is None:\n nUtl = PNq_.get('SCIKIT_LEARN_DATA', gzes('~', 'scikit_learn_data'))\n nUtl = hIOi(nUtl)\n if not vtfo(nUtl):\n eviw(nUtl)\n return nUtl",
"def Y2nc(YKHO):\n s0DA = Hy7s.path.join(YKHO.comicsite.short_name, YKHO.folder_prefix, YKHO.cleantitle... | [
"0.7657915",
"0.7147269",
"0.7098689",
"0.7096353",
"0.7079629",
"0.7064052",
"0.7050303",
"0.69244206",
"0.68462706",
"0.6803429",
"0.6788369",
"0.6781332",
"0.6775683",
"0.6769589",
"0.67064375",
"0.6695528",
"0.6679058",
"0.6678804",
"0.66667247",
"0.66593856",
"0.6659143"... | 0.7646861 | 1 |
>>> canonicalize(' stephens, michael jr.') 'Michael Stephens, Jr.' >>> canonicalize('MICHAEL, JR.') 'Michael, Jr.' >>> canonicalize('Father Michael X. y. stephens, III, u.s.c.g.') 'Father Michael X. Y. Stephens, III, U.S.C.G.' | def mHYZ(mWFP):
tX49, j4nt, EDc1, iRsl = lpha(mWFP)
Ueo9 = ''
if tX49:
Ueo9 = AJI4(tX49)
if j4nt:
Ueo9 += ' ' + AJI4(j4nt)
if EDc1:
Ueo9 += ' ' + AJI4(EDc1)
if iRsl:
Ueo9 += ', ' + AJI4(iRsl)
return Ueo9.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(KCHu):\n\n def rx6T(l5Ny):\n return ZbWC.sub('\\\\b(a|an|the)\\\\b', ' ', l5Ny)\n\n def hK40(l5Ny):\n return ' '.join(l5Ny.split())\n\n def rW_O(l5Ny):\n DNHh = set(vIwR.punctuation)\n return ''.join((Npgh for Npgh in l5Ny if Npgh not in DNHh))\n\n def LSh8(l5Ny):\n... | [
"0.64167243",
"0.64167243",
"0.6341682",
"0.62192416",
"0.6200922",
"0.6119411",
"0.61097944",
"0.6052157",
"0.6021179",
"0.60111994",
"0.60080284",
"0.5901389",
"0.5871184",
"0.58688354",
"0.5848217",
"0.5847781",
"0.58303934",
"0.58262044",
"0.5794059",
"0.57823575",
"0.578... | 0.7591253 | 0 |
Generates an RTC token with the specified privilege. | def wCZa(B7c0, zOuG, R5yJ, PObu, SIM3, qvO8, YmXT, d0ux, J5kQ):
return BVHl.build_token_with_user_account_and_privilege(B7c0, zOuG, R5yJ, PObu, SIM3, qvO8, YmXT, d0ux, J5kQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQMb():\n u54L = tuKI.randint(8, 32)\n KdNR = ''.join((tuKI.choice(vIwR.printable) for YRbF in range(u54L)))\n return f'{KdNR}'",
"def C6M2(YKHO):\n return YKHO.rpc.call(OMwV.AuthTokenGenerate)['token']",
"def stNw(NtEF, jTXt, kLQb=None):\n cJNZ = NtEF\n k5xg = jTXt\n '\\n Creates J... | [
"0.6177859",
"0.61124367",
"0.60145056",
"0.60012764",
"0.59970045",
"0.5931893",
"0.5929749",
"0.58733016",
"0.5835163",
"0.58077294",
"0.5805905",
"0.5768899",
"0.57535934",
"0.5749651",
"0.5745807",
"0.5737253",
"0.5701832",
"0.5674663",
"0.5657492",
"0.56534153",
"0.56466... | 0.5209797 | 65 |
Generates an RTC token with the specified privilege. | def j238(B7c0, zOuG, R5yJ, ZrNc, SIM3, qvO8, YmXT, d0ux, J5kQ):
eOtH = IHrB(B7c0, zOuG, expire=SIM3)
gioL = oR9D(R5yJ, ZrNc)
gioL.add_privilege(oR9D.kPrivilegeJoinChannel, qvO8)
gioL.add_privilege(oR9D.kPrivilegePublishAudioStream, YmXT)
gioL.add_privilege(oR9D.kPrivilegePublishVideoStream, d0ux)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQMb():\n u54L = tuKI.randint(8, 32)\n KdNR = ''.join((tuKI.choice(vIwR.printable) for YRbF in range(u54L)))\n return f'{KdNR}'",
"def C6M2(YKHO):\n return YKHO.rpc.call(OMwV.AuthTokenGenerate)['token']",
"def stNw(NtEF, jTXt, kLQb=None):\n cJNZ = NtEF\n k5xg = jTXt\n '\\n Creates J... | [
"0.6177859",
"0.61124367",
"0.60145056",
"0.60012764",
"0.59970045",
"0.5931893",
"0.5929749",
"0.58733016",
"0.5835163",
"0.58077294",
"0.5805905",
"0.5768899",
"0.57535934",
"0.5749651",
"0.5745807",
"0.5737253",
"0.5701832",
"0.5674663",
"0.5657492",
"0.56534153",
"0.56466... | 0.0 | -1 |
Returns a dictionary containing all relevant game data from a prespecified game URL. | def kmhk(IVAf):
try:
Xqgu = XHfk.PoolManager(cert_reqs='CERT_REQUIRED', ca_certs=_w_5.where())
FT8F = Xqgu.request('GET', IVAf)
Z9JV = rKuS(FT8F.data, 'lxml')
q_a7 = {'game_url': IVAf}
q_a7 = nac1(Z9JV, q_a7)
q_a7 = u6Is(Z9JV, q_a7)
q_a7 = fE1q(Z9JV, q_a7)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CZNq(bD7m):\n import urllib\n import urllib2\n import re\n geh0 = urllib2.urlopen(bD7m + 'matches')\n _R2e = geh0.read()\n zMYm = re.findall('<tr class=\"match-row custom\">(.*?)</tr', _R2e, flags=re.MULTILINE | re.DOTALL)\n eN17 = []\n for Lsdx in zMYm:\n zIo4 = re.search('.*?<t... | [
"0.69640094",
"0.67363846",
"0.6699869",
"0.66780084",
"0.64781296",
"0.6436138",
"0.6417165",
"0.63358027",
"0.62964916",
"0.6187616",
"0.6166611",
"0.616071",
"0.6006216",
"0.59907913",
"0.5968116",
"0.59670436",
"0.5942767",
"0.5936972",
"0.5904164",
"0.5886394",
"0.584255... | 0.77170837 | 0 |
The view for showing the list of Todos related to the specific/logged in user | def PELu(QePW):
QpfX = {}
SR0I = gx9E.objects.filter(user=QePW.user)
QpfX['lists'] = SR0I
return _1tc(QePW, 'todos/index.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWpy(c5ow: models.User=JHvC(W84Y), NCls: Session=JHvC(GGod)):\n u_Nx = ggGa.get_user_todos(NCls, c5ow.id)\n return u_Nx",
"def u_Nx(YKHO):\n return cV6I(YKHO)",
"def NMoC(YKHO):\n c5ow = lm8r.get_current_user()\n return gx9E.get_items_by_user_id(c5ow.id)",
"def Ag97(uJjO):\n D3T3 = NKRf... | [
"0.7033205",
"0.6709818",
"0.66809565",
"0.61853004",
"0.61743546",
"0.6079984",
"0.6020376",
"0.5945201",
"0.5935962",
"0.59119385",
"0.5876563",
"0.58759224",
"0.58131933",
"0.5804552",
"0.5762867",
"0.57591134",
"0.57350147",
"0.57276964",
"0.568772",
"0.56796557",
"0.5664... | 0.7513303 | 0 |
View for showing the send to todos | def IAw4(QePW):
QpfX = {}
Yq3b = gx9E.objects.filter(user_id=QePW.user.id, send_to=True)
print(Yq3b)
QpfX['sent_to_tasks'] = Yq3b
return _1tc(QePW, 'todos/send_to.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Reua(QePW):\n QpfX = {}\n Yq3b = gx9E.objects.filter(user_to_id=QePW.user.id, send_from=True)\n QpfX['sent_from_tasks'] = Yq3b\n return _1tc(QePW, 'todos/send_from.html', QpfX)",
"def nFPL(QePW, id):\n if QePW.method == 'POST':\n CcSV = QePW.POST['sent_user']\n SKnd = QePW.POST.g... | [
"0.75625527",
"0.6763483",
"0.6654114",
"0.633403",
"0.6321622",
"0.6223629",
"0.61309147",
"0.61185664",
"0.60374326",
"0.6028768",
"0.599504",
"0.5940193",
"0.59147215",
"0.5897176",
"0.5851755",
"0.5734201",
"0.5730541",
"0.57211554",
"0.57121557",
"0.57040745",
"0.5691619... | 0.7504154 | 1 |
Piecewise constant schedule for p (the fraction of pixels changed on every iteration). | def Xwp_(uHrD, WhY1, eQ2E):
WhY1 = int(WhY1 / eQ2E * 10000)
if 10 < WhY1 <= 50:
XP5J = uHrD / 2
elif 50 < WhY1 <= 200:
XP5J = uHrD / 4
elif 200 < WhY1 <= 500:
XP5J = uHrD / 8
elif 500 < WhY1 <= 1000:
XP5J = uHrD / 16
elif 1000 < WhY1 <= 2000:
XP5J = uHrD /... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PMrN(YKHO, XP5J: int) -> x1iM[int]:\n Ylbp = [1]\n wEf2 = 1\n for bGrB in range(len(YKHO._s)):\n wEf2 = wEf2 * YKHO.X % XP5J\n Ylbp.append(wEf2)\n return Ylbp",
"def wtrx(Urrm, VIPT):\n return oyIN.int_(oyIN.floor((VIPT - 1) / float(Urrm)))",
"def V6IE(nnVk):\n ywwl = len(KO... | [
"0.60429853",
"0.584909",
"0.57990575",
"0.578226",
"0.5716971",
"0.5691461",
"0.56048113",
"0.558854",
"0.5567916",
"0.55380213",
"0.55248946",
"0.54820734",
"0.5477404",
"0.54684955",
"0.5456245",
"0.5453439",
"0.5447008",
"0.54366094",
"0.5429695",
"0.541954",
"0.54049426"... | 0.0 | -1 |
Given the filename of a json file `s`, load the data into a dict | def tyeH(YKHO, KCHu):
YKHO._filename = KCHu
with open(KCHu, 'r') as eHNT:
YKHO._dict = qQXR.load(eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc9H(Ux0P: str) -> cuzp:\n with open(Ux0P, 'r') as wM3v:\n return qQXR.load(wM3v)",
"def YGFP(pmON):\n wM3v = open(pmON)\n nMY2 = wM3v.read()\n zgjV = _1kr(nMY2)\n return zgjV",
"def lc9H(YKHO, Ux0P):\n with open(Ux0P, 'r', encoding='utf-8') as eHNT:\n Mjw9 = qQXR.load(eHNT)... | [
"0.7505042",
"0.744106",
"0.7434794",
"0.7432844",
"0.74265015",
"0.74252915",
"0.7390357",
"0.7376905",
"0.7373402",
"0.7370175",
"0.7364235",
"0.73016655",
"0.72611356",
"0.72352946",
"0.7192545",
"0.7165301",
"0.71451265",
"0.71190923",
"0.7108707",
"0.71069753",
"0.708146... | 0.7619517 | 0 |
Given the filename of a json file `s`, create an empty json file with name `s` | def eLpg(YKHO, KCHu):
with open(KCHu, 'w') as eHNT:
qQXR.dump({}, eHNT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sIyq(Ux0P):\n MB0I = 'newFile.json'\n if Hy7s.path.exists(MB0I):\n return\n with open(Ux0P) as eHNT:\n kGys = eHNT.readlines()\n with open('newFile.json', 'a') as _RR0:\n for zFiD in kGys:\n Op6c = x8I_(zFiD)\n TLbt = qQXR.dumps(Op6c)\n _RR0.wri... | [
"0.68947613",
"0.6828971",
"0.6789058",
"0.67272043",
"0.65251654",
"0.651649",
"0.6507765",
"0.6500502",
"0.64632493",
"0.646157",
"0.6432273",
"0.6413753",
"0.63709384",
"0.6318527",
"0.6298471",
"0.6250429",
"0.6246972",
"0.6240005",
"0.62293905",
"0.6223387",
"0.6217121",... | 0.71494937 | 0 |
Convert 3x4 rotation matrix to 4d quaternion vector This algorithm is based on algorithm described in | def Np0o(bULF, SGf8=1e-06):
if not ht2j.is_tensor(bULF):
raise TypeError('Input type is not a torch.Tensor. Got {}'.format(type(bULF)))
if len(bULF.shape) > 3:
raise ValueError('Input size must be a three dimensional tensor. Got {}'.format(bULF.shape))
if not bULF.shape[-2:] == (3, 4):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9zH(slpS):\n RyRt, jylo, SInE, D_A6 = slpS\n AyER, rAHv, gZUC, ux4C = oyIN.square(slpS)\n CkYf = rAHv + gZUC + ux4C + AyER\n bULF = oyIN.zeros((3, 3))\n bULF[0, 0] = (+rAHv - gZUC - ux4C + AyER) / CkYf\n bULF[1, 1] = (-rAHv + gZUC - ux4C + AyER) / CkYf\n bULF[2, 2] = (-rAHv - gZUC + ux4C ... | [
"0.7430523",
"0.74075854",
"0.73727566",
"0.7352437",
"0.7319089",
"0.7306168",
"0.7300239",
"0.71791756",
"0.714137",
"0.7067987",
"0.6990699",
"0.6910989",
"0.6873358",
"0.6868551",
"0.6848725",
"0.6777988",
"0.6771096",
"0.67253315",
"0.6708334",
"0.6691572",
"0.66648585",... | 0.6967275 | 11 |
Convert quaternion vector to angle axis of rotation. | def UAzn(slpS: torch.Tensor) -> ht2j.Tensor:
if not ht2j.is_tensor(slpS):
raise TypeError('Input type is not a torch.Tensor. Got {}'.format(type(slpS)))
if not slpS.shape[-1] == 4:
raise ValueError('Input must be a tensor of shape Nx4 or 4. Got {}'.format(slpS.shape))
hbUd: ht2j.Tensor = slp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UAzn(slpS):\n fUKV = oyIN.arccos(slpS[0])\n q7In = 2 * fUKV\n if q7In < oyIN.finfo(float).eps:\n q7In = 0\n jDK_ = oyIN.array([1, 0, 0])\n else:\n jDK_ = slpS[[1, 2, 3]] / oyIN.sin(fUKV)\n return (q7In, jDK_)",
"def YylR(YKHO, iArr):\n return epAf.degrees(epAf.acos(YKHO... | [
"0.7726628",
"0.7564264",
"0.7457957",
"0.7397182",
"0.7276913",
"0.7274693",
"0.71804863",
"0.71623415",
"0.7130426",
"0.71137214",
"0.7084112",
"0.70243806",
"0.69862956",
"0.69792867",
"0.69763714",
"0.6958844",
"0.6934655",
"0.6893215",
"0.6760437",
"0.6749934",
"0.672324... | 0.7805009 | 0 |
Convert an angle axis to a quaternion. | def pWrA(ZZft: torch.Tensor) -> ht2j.Tensor:
if not ht2j.is_tensor(ZZft):
raise TypeError('Input type is not a torch.Tensor. Got {}'.format(type(ZZft)))
if not ZZft.shape[-1] == 3:
raise ValueError('Input must be a tensor of shape Nx3 or 3. Got {}'.format(ZZft.shape))
L1dM: ht2j.Tensor = ZZf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pWrA(jDK_, q7In):\n if isinstance(jDK_, jUrF):\n jDK_ = jDK_.lower()\n if jDK_ == 'x':\n jDK_ = oyIN.array([1.0, 0.0, 0.0])\n elif jDK_ == 'y':\n jDK_ = oyIN.array([0.0, 1.0, 0.0])\n elif jDK_ == 'z':\n jDK_ = oyIN.array([0.0, 0.0, 1.0])\n ... | [
"0.83636945",
"0.833984",
"0.81172186",
"0.7803691",
"0.77461237",
"0.77427244",
"0.76957905",
"0.7511654",
"0.74354535",
"0.74168724",
"0.73941493",
"0.71341485",
"0.69575065",
"0.6948961",
"0.6897747",
"0.6883086",
"0.6856147",
"0.684737",
"0.6843863",
"0.68381435",
"0.6721... | 0.83473754 | 1 |
Convert 3d vector of axisangle rotation to 4x4 rotation matrix | def hyUo(ZZft):
def aKSv(ZZft, M5jx, SGf8=1e-06):
EoNy = 1.0
q7In = ht2j.sqrt(M5jx)
BV7b = ZZft / (q7In + SGf8)
lnPd, V1sm, cIs9 = ht2j.chunk(BV7b, 3, dim=1)
Dmt6 = ht2j.cos(q7In)
fOhA = ht2j.sin(q7In)
CYO9 = Dmt6 + lnPd * lnPd * (EoNy - Dmt6)
WM11 = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _eYH(jDK_):\n return KakW(GhxC(jDK_))",
"def bULF(YylR, jDK_):\n CBO5 = D785(YylR)\n tw3e = OB3T(jDK_)\n ShHK = oyIN.linalg.inv(tw3e)\n return Pusg(oyIN.dot, [tw3e, CBO5, ShHK])",
"def HEXq(jDK_, YylR):\n YylR = YylR\n CkYf = oyIN.linalg.norm(oyIN.array(jDK_))\n if CkYf > 0:\n ... | [
"0.7820138",
"0.7698632",
"0.736527",
"0.7261709",
"0.7257929",
"0.7257929",
"0.72131455",
"0.7165621",
"0.7162307",
"0.7148236",
"0.7122914",
"0.70929146",
"0.703967",
"0.6977672",
"0.69135547",
"0.69001275",
"0.6888421",
"0.68580693",
"0.68488973",
"0.68031526",
"0.67919487... | 0.67611265 | 22 |
Convert axisangle representation to rotation matrix. | def QI5E(ISY0):
Gnjs = ht2j.norm(ISY0 + 1e-08, p=2, dim=1)
YylR = ht2j.unsqueeze(Gnjs, -1)
HBfW = ht2j.div(ISY0, YylR)
YylR = YylR * 0.5
HqlT = ht2j.cos(YylR)
Lnqc = ht2j.sin(YylR)
_Jov = ht2j.cat([HqlT, Lnqc * HBfW], dim=1)
return YOLk(_Jov) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _eYH(jDK_):\n return KakW(GhxC(jDK_))",
"def bULF(YylR, jDK_):\n CBO5 = D785(YylR)\n tw3e = OB3T(jDK_)\n ShHK = oyIN.linalg.inv(tw3e)\n return Pusg(oyIN.dot, [tw3e, CBO5, ShHK])",
"def k4PZ(YylR: torch.Tensor) -> ht2j.Tensor:\n dUBp = XBKw(YylR)\n _Lrm: ht2j.Tensor = ht2j.cos(dUBp)\n ... | [
"0.7975021",
"0.7776975",
"0.7642057",
"0.75718856",
"0.7484483",
"0.73852175",
"0.7374227",
"0.7331798",
"0.7323808",
"0.72060734",
"0.7166385",
"0.7143978",
"0.71211976",
"0.7071612",
"0.70691985",
"0.7067156",
"0.7056157",
"0.7056157",
"0.7034615",
"0.7027953",
"0.7001234"... | 0.0 | -1 |
Convert quaternion coefficients to rotation matrix. | def YOLk(_Jov):
dt8o = _Jov
dt8o = dt8o / dt8o.norm(p=2, dim=1, keepdim=True)
yzQ0, WKvO, LVAh, epBp = (dt8o[:, 0], dt8o[:, 1], dt8o[:, 2], dt8o[:, 3])
tjUW = _Jov.size(0)
xMw6, ajwV, skBL, mPai = (yzQ0.pow(2), WKvO.pow(2), LVAh.pow(2), epBp.pow(2))
lnPd, V1sm, cIs9 = (yzQ0 * WKvO, yzQ0 * LVAh, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9zH(slpS):\n RyRt, jylo, SInE, D_A6 = slpS\n AyER, rAHv, gZUC, ux4C = oyIN.square(slpS)\n CkYf = rAHv + gZUC + ux4C + AyER\n bULF = oyIN.zeros((3, 3))\n bULF[0, 0] = (+rAHv - gZUC - ux4C + AyER) / CkYf\n bULF[1, 1] = (-rAHv + gZUC - ux4C + AyER) / CkYf\n bULF[2, 2] = (-rAHv - gZUC + ux4C ... | [
"0.766764",
"0.74807197",
"0.7449608",
"0.74328333",
"0.7220313",
"0.72015715",
"0.7191453",
"0.707404",
"0.6943095",
"0.68846947",
"0.6883867",
"0.6883784",
"0.68494785",
"0.68053985",
"0.67934597",
"0.6773294",
"0.6758075",
"0.6731504",
"0.67070466",
"0.66784084",
"0.665743... | 0.6854609 | 12 |
Convert 6D rotation representation to 3x3 rotation matrix. Based on Zhou et al., "On the Continuity of Rotation Representations in Neural Networks", CVPR 2019 | def PAlI(WKvO):
WKvO = WKvO.view(-1, 3, 2)
XOOk = WKvO[:, :, 0]
pHXX = WKvO[:, :, 1]
kYGz = vuvg.normalize(XOOk)
ftz7 = vuvg.normalize(pHXX - ht2j.einsum('bi,bi->b', kYGz, pHXX).unsqueeze(-1) * kYGz)
_2fo = ht2j.cross(kYGz, ftz7)
return ht2j.stack((kYGz, ftz7, _2fo), dim=-1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PAlI(WKvO):\n WKvO = WKvO.view(-1, 3, 2)\n XOOk = WKvO[:, :, 0]\n pHXX = WKvO[:, :, 1]\n kYGz = vuvg.normalize(XOOk)\n ftz7 = vuvg.normalize(pHXX - ht2j.einsum('bi,bi->b', kYGz, pHXX).unsqueeze(-1) * kYGz)\n _2fo = ht2j.cross(kYGz, ftz7)\n return ht2j.stack((kYGz, ftz7, _2fo), dim=-1)",
... | [
"0.7787226",
"0.6994249",
"0.6880743",
"0.66545296",
"0.6611877",
"0.65365493",
"0.64730537",
"0.64339584",
"0.63570064",
"0.6319744",
"0.62810963",
"0.6258665",
"0.6245219",
"0.6242186",
"0.6231169",
"0.619827",
"0.61917555",
"0.618698",
"0.618135",
"0.61762416",
"0.61561465... | 0.775523 | 1 |
Convert 6D rotation representation to 3x3 rotation matrix. Based on Zhou et al., "On the Continuity of Rotation Representations in Neural Networks", CVPR 2019 | def w531(YWzc):
btch = YWzc[:, :, 0:2]
btch = btch.reshape(-1, 6)
return btch | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PAlI(WKvO):\n WKvO = WKvO.view(-1, 3, 2)\n XOOk = WKvO[:, :, 0]\n pHXX = WKvO[:, :, 1]\n kYGz = vuvg.normalize(XOOk)\n ftz7 = vuvg.normalize(pHXX - ht2j.einsum('bi,bi->b', kYGz, pHXX).unsqueeze(-1) * kYGz)\n _2fo = ht2j.cross(kYGz, ftz7)\n return ht2j.stack((kYGz, ftz7, _2fo), dim=-1)",
... | [
"0.7787226",
"0.775523",
"0.775523",
"0.6880743",
"0.66545296",
"0.6611877",
"0.65365493",
"0.64730537",
"0.64339584",
"0.63570064",
"0.6319744",
"0.62810963",
"0.6258665",
"0.6245219",
"0.6242186",
"0.6231169",
"0.619827",
"0.61917555",
"0.618698",
"0.618135",
"0.61762416",
... | 0.6994249 | 3 |
Find camera translation that brings 3D joints S closest to 2D the corresponding joints_2d. | def U8g2(o4sw, Svip, hxrL, DDOk=5000, Ylkb=224):
p2QI = o4sw.shape[0]
eHNT = oyIN.array([DDOk, DDOk])
hgjH = oyIN.array([Ylkb / 2.0, Ylkb / 2.0])
Nk6w = oyIN.reshape(oyIN.tile(o4sw[:, 2], (2, 1)).T, -1)
qp3h = oyIN.reshape(o4sw[:, 0:2], -1)
LTX_ = oyIN.tile(hgjH, p2QI)
vuvg = oyIN.tile(eHNT,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q3mZ(o4sw, Svip, DDOk=5000.0, Ylkb=224.0):\n begE = o4sw.device\n o4sw = o4sw[:, 25:, :].cpu().numpy()\n Svip = Svip[:, 25:, :].cpu().numpy()\n hxrL = Svip[:, :, -1]\n Svip = Svip[:, :, :-1]\n uPnQ = oyIN.zeros((o4sw.shape[0], 3), dtype=oyIN.float32)\n for YRbF in range(o4sw.shape[0]):\n ... | [
"0.70690787",
"0.58126646",
"0.5759404",
"0.5624896",
"0.5605672",
"0.552901",
"0.55187887",
"0.55167884",
"0.5466802",
"0.5453866",
"0.54513586",
"0.54390156",
"0.5427653",
"0.54241675",
"0.53923094",
"0.5372861",
"0.53454864",
"0.53385323",
"0.5319584",
"0.5280605",
"0.5268... | 0.6892444 | 1 |
Find camera translation that brings 3D joints S closest to 2D the corresponding joints_2d. | def q3mZ(o4sw, Svip, DDOk=5000.0, Ylkb=224.0):
begE = o4sw.device
o4sw = o4sw[:, 25:, :].cpu().numpy()
Svip = Svip[:, 25:, :].cpu().numpy()
hxrL = Svip[:, :, -1]
Svip = Svip[:, :, :-1]
uPnQ = oyIN.zeros((o4sw.shape[0], 3), dtype=oyIN.float32)
for YRbF in range(o4sw.shape[0]):
jVhJ = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U8g2(o4sw, Svip, hxrL, DDOk=5000, Ylkb=224):\n p2QI = o4sw.shape[0]\n eHNT = oyIN.array([DDOk, DDOk])\n hgjH = oyIN.array([Ylkb / 2.0, Ylkb / 2.0])\n Nk6w = oyIN.reshape(oyIN.tile(o4sw[:, 2], (2, 1)).T, -1)\n qp3h = oyIN.reshape(o4sw[:, 0:2], -1)\n LTX_ = oyIN.tile(hgjH, p2QI)\n vuvg = oyI... | [
"0.6892122",
"0.5813326",
"0.57596755",
"0.5625946",
"0.56063974",
"0.5529417",
"0.55199766",
"0.5517657",
"0.54667264",
"0.5455694",
"0.5451711",
"0.5439911",
"0.5427756",
"0.54246503",
"0.5393163",
"0.53732246",
"0.53432107",
"0.5339496",
"0.53195435",
"0.52800804",
"0.5269... | 0.70694745 | 0 |
Get the name of the output device | def mWFP(YKHO) -> str:
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO.devname",
"def mWFP(YKHO):\n return YKHO.device.name()",
"def HofT(YKHO):\n YKHO.iio_device_dir()\n YKHO.console.runcmd(f'cat name', expected='\\r\\n')\n ypN2 = YKHO.console.output()\n return ypN2",
"def yxaP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO,... | [
"0.78411305",
"0.78044116",
"0.7798721",
"0.778798",
"0.778798",
"0.7783333",
"0.77314204",
"0.77314204",
"0.77314204",
"0.77298474",
"0.7551565",
"0.7551565",
"0.7549563",
"0.7508249",
"0.750488",
"0.7475357",
"0.74127376",
"0.7391572",
"0.7327417",
"0.728114",
"0.7238483",
... | 0.0 | -1 |
List of the topology processor nodes. Processor nodes enable pipeline data to be analyzed, processed or transformed. | def MTwR(YKHO) -> h8nf[bdIy['outputs.EncoderProcessorResponse']]:
return qe4Y.get(YKHO, 'processors') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kdeR(YKHO) -> x1iM[o7DN]:\n return [Q6kx for nPIK in YKHO.pipelines for Q6kx in nPIK.nodes]",
"def Ziit(YKHO) -> list:\n if 'nodes' not in YKHO._node:\n raise ValueError(\"Pipeline is missing 'nodes' field.\")\n if YKHO._nodes is None:\n Ziit: list = list()\n for Q6kx in YKHO._n... | [
"0.69471765",
"0.6666744",
"0.66612315",
"0.6250078",
"0.61622036",
"0.6126117",
"0.612206",
"0.6074143",
"0.60722476",
"0.60524774",
"0.6003524",
"0.6003171",
"0.5979547",
"0.59744424",
"0.5964258",
"0.5947013",
"0.5928705",
"0.58936256",
"0.58875686",
"0.585896",
"0.584983"... | 0.60809374 | 7 |
List of the topology sink nodes. Sink nodes allow pipeline data to be stored or exported. | def O9mc(YKHO) -> bdIy['outputs.VideoSinkResponse']:
return qe4Y.get(YKHO, 'sinks') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O9mc(YKHO):\n KCHu = [Q6kx for Q6kx in YKHO.nodes() if Q6kx.isSink()]\n KCHu.sort(lambda WKvO, LVAh: eHkp(WKvO._id, LVAh._id))\n return KCHu",
"def O9mc(YKHO):\n return [WKvO for WKvO in YKHO if YKHO.out_degree(WKvO) == 0]",
"def AVb0(Q6kx: Node):\n qsUe = []\n for bIwZ in Q6kx.out_ports(... | [
"0.76095486",
"0.6521484",
"0.6407674",
"0.62522364",
"0.6220328",
"0.6134058",
"0.61178017",
"0.60935324",
"0.60656965",
"0.6035068",
"0.59784496",
"0.58438224",
"0.58438224",
"0.583786",
"0.5788759",
"0.57554954",
"0.5729266",
"0.570403",
"0.57000524",
"0.56986874",
"0.5698... | 0.60297143 | 10 |
Describes the properties of a SKU. | def PXIM(YKHO) -> 'outputs.SkuResponse':
return qe4Y.get(YKHO, 'sku') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> qe4Y.Output[h8nf['outputs.SkuDescriptionResponse']]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4Y.Output[h8nf['outputs.SkuDescriptionResponse']]:\n return qe4Y.get(YKHO, 'sku')",
"def mDSP(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku_name')",
"def mDSP(YKHO) -> str:\n ... | [
"0.7019912",
"0.7019912",
"0.6946467",
"0.6946467",
"0.6946467",
"0.68657416",
"0.67882097",
"0.6563517",
"0.65405715",
"0.6497165",
"0.6314768",
"0.63029766",
"0.6294722",
"0.6294722",
"0.6173166",
"0.6173166",
"0.60914415",
"0.60874104",
"0.60874104",
"0.6076422",
"0.606456... | 0.6738934 | 8 |
List of the topology source nodes. Source nodes enable external data to be ingested by the pipeline. | def c7pe(YKHO) -> bdIy[ImMB]:
return qe4Y.get(YKHO, 'sources') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO):\n return YKHO.source_net.nodes()",
"def c7pe(YKHO):\n KCHu = [Q6kx for Q6kx in YKHO.nodes() if Q6kx.isSource()]\n KCHu.sort(lambda WKvO, LVAh: eHkp(WKvO._id, LVAh._id))\n return KCHu",
"def aJby(YKHO, Q6kx):\n Q6kx = YKHO.coalesce_node(Q6kx)\n Ziit = [w2B8[0] for w2B8 in YKHO.... | [
"0.7569548",
"0.7363873",
"0.709364",
"0.67269886",
"0.6720993",
"0.6720993",
"0.66930693",
"0.6561356",
"0.6524585",
"0.65102804",
"0.65064704",
"0.65045726",
"0.6447643",
"0.6380139",
"0.6359751",
"0.6352205",
"0.6352205",
"0.6352205",
"0.63520706",
"0.63279724",
"0.6327972... | 0.64759976 | 12 |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" | def type(YKHO) -> str:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.7919224",
"0.7919224",
"0.7866745",
"0.7866745",
"0.7866745",
"0.7866745",
"0.7866745",
"0.77080005",
"0.75534594",
"0.72829205",
"0.7059116",
"0.69795716",
"0.6921357",
"0.6870514",
"0.67292506",
"0.6704277",
"0.66535586",
"0.66464674",
"0.65499043",
"0.65428495",
"0.6542... | 0.66392237 | 52 |
Returns the html layout of the index page | def t7ng(nPrm):
lpOi = [_R2e.H1('INDEX'), _R2e.Div([_R2e.A('Characters', href='/character'), ' | ', _R2e.A('Search', href='/search')]), zoLL.Loading(_R2e.Img(src=J4nh(nPrm['tokens']))), csTI(nPrm, 5)]
return lpOi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO):\n return TvZl('index.html')",
"def d6pt(YKHO):\n return TvZl('main/index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def Vn7Z():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n ... | [
"0.79176563",
"0.7821534",
"0.7768826",
"0.77575135",
"0.7753974",
"0.77426475",
"0.77426475",
"0.7717761",
"0.7712107",
"0.76737106",
"0.7666473",
"0.76535004",
"0.76535004",
"0.7632842",
"0.7611945",
"0.7611945",
"0.7611945",
"0.7608864",
"0.7601731",
"0.7589659",
"0.758853... | 0.0 | -1 |
The datetime when the certificate will expire. | def q_Mu(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'expires_on') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rECS(YKHO):\n LSCv = YKHO.getLatestValidCertification()\n if LSCv == None:\n return ''\n _c1T = LSCv.getValidTo()\n return _c1T",
"def b2y6(YKHO) -> qcWV:\n return YKHO.timeEnd",
"def b2y6(YKHO) -> qcWV:\n return YKHO.firstAccessDate + fCoM(seconds=YKHO.expirePeriodInSeconds)",
"... | [
"0.7996598",
"0.7624414",
"0.7602747",
"0.73954225",
"0.73954225",
"0.73954225",
"0.73884034",
"0.73314625",
"0.7275715",
"0.71795106",
"0.7112877",
"0.7112877",
"0.70704716",
"0.7051682",
"0.6955021",
"0.6901758",
"0.6847449",
"0.6798216",
"0.6784174",
"0.674227",
"0.674227"... | 0.6298694 | 39 |
Get an existing OriginCaCertificate resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, VQa0: Optional[pulumi.Input[str]]=None, M_js: Optional[pulumi.Input[str]]=None, q_Mu: Optional[pulumi.Input[str]]=None, mJBk: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, d5mG: Optional[pulumi.Input[int]]=None, MgI3: Op... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU, id, VKhi=None, hMqs=None, VQa0=None, qP2L=None, uNOU=None, Fmqg=None, etR_=None, DxZM=None, TrjO=None, Lr0r=None, H7C0=None, Pt6R=None, jGRS=None, dJ1p=None, type=None):\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = dict()\n r6DL['arn'] = hMqs\n r6DL['ce... | [
"0.6085143",
"0.55975753",
"0.5536226",
"0.5517182",
"0.5480525",
"0.542427",
"0.53656787",
"0.53411645",
"0.52540755",
"0.5210516",
"0.51844025",
"0.51349145",
"0.5035235",
"0.5029797",
"0.50162375",
"0.501561",
"0.49850914",
"0.49799126",
"0.49521336",
"0.49185273",
"0.4911... | 0.7188491 | 0 |
The datetime when the certificate will expire. | def q_Mu(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'expires_on') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rECS(YKHO):\n LSCv = YKHO.getLatestValidCertification()\n if LSCv == None:\n return ''\n _c1T = LSCv.getValidTo()\n return _c1T",
"def b2y6(YKHO) -> qcWV:\n return YKHO.timeEnd",
"def b2y6(YKHO) -> qcWV:\n return YKHO.firstAccessDate + fCoM(seconds=YKHO.expirePeriodInSeconds)",
"... | [
"0.7996598",
"0.7624414",
"0.7602747",
"0.73954225",
"0.73954225",
"0.73954225",
"0.73884034",
"0.73314625",
"0.7275715",
"0.71795106",
"0.7112877",
"0.7112877",
"0.70704716",
"0.7051682",
"0.6955021",
"0.6901758",
"0.6847449",
"0.6798216",
"0.6784174",
"0.674227",
"0.674227"... | 0.65918016 | 26 |
Attach a lot of summaries to a Tensor (for TensorBoard visualization). | def g4Yp(YKHO, SRYB):
with ZylS.name_scope('summaries'):
JBMS = ZylS.reduce_mean(SRYB)
ZylS.summary.scalar('mean', JBMS)
with ZylS.name_scope('stddev'):
z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS)))
ZylS.summary.scalar('stddev', z2bo)
ZylS.summary.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1pK(YKHO):\n for G1Hx, Ty9i in YKHO.metrics.items():\n ZylS.summary.scalar(G1Hx, Ty9i)\n YKHO.summary_op = ZylS.summary.merge_all()",
"def RlbR(YKHO):\n ZylS.summary.scalar('loss', YKHO.loss)\n XIcQ = ZylS.summary.merge_all()\n YKHO.summary_op = XIcQ\n ZylS.logging.info('summary op ... | [
"0.7071791",
"0.6970259",
"0.6970259",
"0.6800256",
"0.67872906",
"0.67407334",
"0.66669947",
"0.66576326",
"0.66193783",
"0.66085786",
"0.6595776",
"0.65836215",
"0.6581151",
"0.655297",
"0.6500364",
"0.6459978",
"0.64145213",
"0.6294558",
"0.62718755",
"0.62713677",
"0.6265... | 0.0 | -1 |
Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. Notice that the solution set must not contain duplicate triplets. | def wnVm(xYvp: [int]) -> [[int]]:
AvpI(xYvp, 0, repetitive_numbers=True)
if len(xYvp) <= 2 or not xYvp:
return []
xYvp.sort()
Aofo = []
for YRbF in range(len(xYvp)):
LFlW = YRbF
Hpmo = LFlW + 1
_tIi = len(xYvp) - 1
while LFlW < _tIi and Hpmo < _tIi:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kkPW(jzdc):\n Aofo = set()\n jzdc.sort()\n exwG = len(jzdc)\n for WKvO in jzdc:\n o8aI = 0 - WKvO\n YRbF = 0\n r845 = exwG - 1\n while YRbF < r845:\n if jzdc[YRbF] + jzdc[r845] == o8aI:\n Aofo.add(tuple(sorted([WKvO, jzdc[YRbF], jzdc[r845]])))\n... | [
"0.6673759",
"0.6650337",
"0.6568846",
"0.6489479",
"0.624624",
"0.62449473",
"0.61961734",
"0.61415535",
"0.6137072",
"0.6136448",
"0.6131364",
"0.61061233",
"0.60961044",
"0.6023095",
"0.59948015",
"0.5988559",
"0.59712726",
"0.5947936",
"0.5946335",
"0.59000313",
"0.589450... | 0.6004714 | 14 |
Subtract one number from another if they both are integers. | def finE(_1qI: int, zDMu: int, wp5n: int=4) -> int:
fTst(wp5n, bo34)
if nqbI(_1qI, zDMu, bo34):
return _1qI - zDMu
else:
raise TypeError(LVTA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wncN(_1qI, zDMu):\n return _1qI - zDMu",
"def wncN(_1qI, zDMu):\n return _1qI - zDMu",
"def wncN(WKvO: int, LVAh: int):\n return WKvO - LVAh",
"def ruoQ(YKHO, jzdc, Fg_i):\n if not k192(jzdc, Fg_i):\n YKHO.last_result = jzdc - Fg_i",
"def wncN(_1qI, zDMu):\n return _1qI - zDMu",
... | [
"0.7241545",
"0.7241545",
"0.72210795",
"0.7202364",
"0.72008544",
"0.7199399",
"0.70703775",
"0.7057534",
"0.7029978",
"0.69915074",
"0.6959544",
"0.69004047",
"0.6887763",
"0.6833272",
"0.6671105",
"0.6662992",
"0.66109186",
"0.66047525",
"0.66047525",
"0.65388346",
"0.6521... | 0.6959251 | 11 |
method to get products from OFF database | def SPof(YKHO):
hfcb = []
for WKvO in YKHO.list_categories:
"get products' data from openfoodfacts api with string as paramaters"
SGPK = {'action': 'process', 'json': 1, 'countries': 'France', 'page_size': 100, 'page': 1, 'tagtype_0': 'categories', 'tag_contains_0': 'contains', 'tag_0': WKvO}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CnKV(YKHO):\n pass",
"def CxaC(YKHO):\n hAVj = tqlg()\n DpUl = hAVj.cursor()\n DpUl.execute('SELECT * FROM products;')\n Ylbp = DpUl.fetchall()\n if Ylbp:\n kFyC = []\n for OMq6 in Ylbp:\n CNNA = {'product_id': OMq6[0], 'product_name': OMq6[1], 'price': OMq6[2], 'qu... | [
"0.79702514",
"0.75793946",
"0.7506218",
"0.738689",
"0.73322606",
"0.6991631",
"0.69784635",
"0.6917217",
"0.69064903",
"0.6905229",
"0.6879561",
"0.6859096",
"0.685783",
"0.68414444",
"0.67854404",
"0.67725986",
"0.6747747",
"0.6728125",
"0.67193264",
"0.6709279",
"0.670838... | 0.6863026 | 11 |
Given coordinates (xd, yd) in the distorted image and the center of distortion (xc, yc), returns the corresponding coordinates in the undistorted image, (xu, yu). k1 is the distortion factor. The width and height specify | def xsU0(Jgwa, NsEU, g0Hx, dlau, LEev, TVTK, H2v2):
whQk = ((Jgwa - g0Hx) ** 2 + (NsEU - dlau) ** 2) / (TVTK ** 2 + H2v2 ** 2)
UUZ1 = max(BVxk, 1 + LEev * whQk)
MI0Y = g0Hx + (Jgwa - g0Hx) / UUZ1
f4we = dlau + (NsEU - dlau) / UUZ1
return (round(MI0Y), round(f4we)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pEvd(nJ9F, nxyw, fsgT, cEY3, LEev, Xyq7, PDUN, EBgd, HpuQ):\n cgTt = fsgT - nJ9F\n v6FV = cEY3 - nxyw\n Mkmy = oyIN.hypot(cgTt, v6FV)\n g0Hx = fsgT + (EBgd * (Mkmy ** 2 + 2 * cgTt ** 2) + 2 * HpuQ * cgTt * v6FV) + cgTt * (Mkmy ** 2 * LEev + Mkmy ** 4 * Xyq7 + Mkmy ** 6 * PDUN)\n dlau = cEY3 + (2... | [
"0.6930074",
"0.6401595",
"0.591956",
"0.5654241",
"0.56215096",
"0.55544716",
"0.54758245",
"0.54734915",
"0.5468909",
"0.5458898",
"0.5456141",
"0.5423257",
"0.5370543",
"0.53686893",
"0.5347415",
"0.53090316",
"0.53013927",
"0.52865434",
"0.52652705",
"0.5245948",
"0.52405... | 0.695022 | 0 |
Update a data set. | def EE1P(RKD7, cuiw, wOGa):
DaIv = '{}imagesets/{}/image_url'.format(Xqgu.get_api_url(wOGa['url'], wOGa['project']), wOGa['id'])
TNsn = '{}datasets/{}/'.format(Xqgu.get_api_url(wOGa['url'], wOGa['project']), wOGa['id'])
RKD7.debug('POST: {}'.format(DaIv))
if 'file_config' in wOGa:
qaEx, Fst3, gj... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, nPrm):\n YKHO.data.update(nPrm)",
"def QdZT(YKHO, nPrm):\n return YKHO._data.update(nPrm)",
"def r7tU(YKHO, _Q4K):\n YKHO.AllData = _Q4K",
"def Y2te(YKHO):\n pass",
"def QdZT(YKHO, nPrm):\n pass",
"def QdZT(YKHO, nPrm):\n pass",
"def QdZT(YKHO, nPrm):\n pass",
"def... | [
"0.7296877",
"0.7279816",
"0.7156278",
"0.6872137",
"0.6854659",
"0.6854659",
"0.6854659",
"0.6854659",
"0.67697275",
"0.67552155",
"0.66865456",
"0.6626958",
"0.65765727",
"0.6537754",
"0.65033036",
"0.6496444",
"0.64812994",
"0.6427548",
"0.63807064",
"0.63690543",
"0.63598... | 0.0 | -1 |
Get the file's name | def g_2H(YKHO):
return str(YKHO.get_file()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0tD(YKHO):\n return YKHO.file_name",
"def W0tD(YKHO):\n return YKHO._file.name",
"def g_2H(YKHO):\n return YKHO.path.name[6:]",
"def g_2H(YKHO):\n return YKHO.file_name",
"def g_2H(YKHO):\n return YKHO.__file_name",
"def g_2H(YKHO):\n return YKHO._fileName",
"def MgDA(YKHO):\n ... | [
"0.8727314",
"0.867787",
"0.861844",
"0.8602267",
"0.85277975",
"0.8475511",
"0.8441925",
"0.8362905",
"0.8362905",
"0.8362905",
"0.8362905",
"0.8362905",
"0.8301751",
"0.82941294",
"0.8275632",
"0.82734853",
"0.82386833",
"0.8179329",
"0.8110978",
"0.804259",
"0.8023695",
... | 0.8929407 | 0 |
This function takes a string of tweets and returns a featureSet. (For Training data) | def l3m5(aWDa):
LyKa = zX0X(aWDa)
s4H9 = KxLt.fit_transform(aWDa).toarray()
E3D9 = oyIN.concatenate([s4H9, LyKa], axis=1)
return E3D9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s0cj(Mau6):\n bySB = {}\n return bySB",
"def p5mr(aWDa):\n LyKa = zX0X(aWDa)\n s4H9 = KxLt.transform(aWDa).toarray()\n E3D9 = oyIN.concatenate([s4H9, LyKa], axis=1)\n return E3D9",
"def eaZ3(Mau6):\n bySB = {'len(tweet)': len(Mau6), 'avg_word_length': hYhj(Mau6)}\n return bySB",
"... | [
"0.6937795",
"0.6836616",
"0.682941",
"0.66486007",
"0.6623701",
"0.6614609",
"0.63056546",
"0.6299887",
"0.6278465",
"0.62684935",
"0.6194713",
"0.61835593",
"0.6155796",
"0.6093069",
"0.6087889",
"0.6020802",
"0.60054624",
"0.60017174",
"0.598438",
"0.59728307",
"0.5951399"... | 0.7142444 | 0 |
Return the id of this sequence. | def id(YKHO):
if YKHO.sub_children:
hbFX = ','.join((jKi7.moves.urllib.parse.quote(aUGN.id) for aUGN in YKHO.template.children()))
else:
hbFX = jKi7.moves.urllib.parse.quote(YKHO.template.id)
return hbFX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO) -> int:\n return YKHO._oid",
"def unpH(YKHO) -> int:\n return YKHO.id",
"def unpH(YKHO) -> int:\n return YKHO.id",
"def unpH(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO.__id",
"def unpH(YKHO):\n return YKHO._id",
"... | [
"0.7830633",
"0.78098446",
"0.78098446",
"0.7805146",
"0.7787646",
"0.7787646",
"0.77583677",
"0.77583677",
"0.77583677",
"0.77583677",
"0.77583677",
"0.77583677",
"0.7721842",
"0.76916146",
"0.76916146",
"0.76916146",
"0.76916146",
"0.76916146",
"0.76916146",
"0.76916146",
"... | 0.0 | -1 |
Calculates the distance between two trajectories. This is called when distances are not memoized. | def zgPc(YKHO, WKvO, LVAh):
beV4 = YKHO.d2_bin(WKvO, LVAh)
niNT = oyIN.sum(beV4, axis=1)
ZXbz = oyIN.sum(beV4, axis=0)
diCz = oyIN.tensordot(niNT, ZXbz, axes=0)
U34r = oyIN.sum(beV4 * oyIN.ma.log(oyIN.ma.divide(beV4, diCz)))
oqGu = oyIN.sum(-1 * beV4 * oyIN.ma.log(beV4))
hlel = max(0.0, 1 - ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(YKHO, oUYE, Rtzx):\n kgDL = zip(oUYE, Rtzx)\n return epAf.sqrt(abs(sum(map(lambda exwG: YKHO.subsq(*exwG), kgDL))))",
"def Ayfi(YKHO, jzdc, Fg_i):\n raise NotImplementedError()",
"def A8hk(jzdc, Fg_i):\n return oyIN.sqrt(oyIN.sum((jzdc - Fg_i) ** 2))",
"def AUp_(XdvW: Asteroid, GhiN: Ast... | [
"0.724267",
"0.71898127",
"0.71822906",
"0.71084523",
"0.70549697",
"0.7038178",
"0.70113784",
"0.6981584",
"0.6953429",
"0.6893008",
"0.68775797",
"0.68374026",
"0.6825737",
"0.6794347",
"0.6786009",
"0.6784951",
"0.67769456",
"0.6773832",
"0.6773336",
"0.6772586",
"0.676369... | 0.0 | -1 |
Checks if a user is getting their own results, returns true for auth | def Ljye(uJjO):
iNGb = QePW.args.get('user_id', default=None, type=int)
return uJjO == iNGb and uJjO is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pn7U(YKHO):\n return YKHO.user_has_access(DW23.get_current_user())",
"def Iw6c(YKHO):\n ANfV = YKHO.get_object()\n return True if YKHO.request.user == ANfV.author or YKHO.request.user.is_superuser else False",
"def Iw6c(YKHO):\n if not YKHO.request.user.is_authenticated:\n return False\n... | [
"0.6830791",
"0.67305815",
"0.66758776",
"0.6648134",
"0.6584638",
"0.65331006",
"0.6505666",
"0.6476608",
"0.6466238",
"0.6463398",
"0.6455103",
"0.64041394",
"0.6400391",
"0.63866115",
"0.6373713",
"0.63413876",
"0.63285804",
"0.6291915",
"0.6252789",
"0.62442213",
"0.62392... | 0.61230737 | 29 |
Gets the name of this fragment | def W0tD(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO.__name if YKHO.__name else ''",
"def W0tD(YKHO) -> str:\n return YKHO.name",
"def W0tD(YKHO) -> str:\n return YKHO.name",
"def W0tD(YKHO) -> str:\n return YKHO.name",
"def W0tD(YKHO):\n return YKHO.tagnode",
"def W0tD(YKHO) -> str:\n return YKHO._name",
"... | [
"0.7070921",
"0.703705",
"0.703705",
"0.703705",
"0.70315593",
"0.70155895",
"0.70155895",
"0.7013504",
"0.6993914",
"0.69760376",
"0.6972442",
"0.69472903",
"0.69458294",
"0.69443727",
"0.69377047",
"0.69377047",
"0.69377047",
"0.69347143",
"0.69347143",
"0.69347143",
"0.693... | 0.688392 | 57 |
Gets the charge of this fragment | def JJVa(YKHO):
return YKHO.charge | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JJVa(YKHO):\n return YKHO._charge",
"def WJkG(YKHO):\n return YKHO._charge",
"def WJkG(YKHO):\n return sum(YKHO.charges)",
"def JJVa(YKHO):\n return -YKHO.get_len() - 1",
"def JJVa(YKHO):\n return -YKHO.get_len() - 1",
"def Fehu(YKHO):\n return _VfD.FbcSpeciesPlugin_getCharge(YKHO)"... | [
"0.7840667",
"0.77558124",
"0.7120083",
"0.71053344",
"0.71053344",
"0.7019659",
"0.6885813",
"0.6814834",
"0.6725436",
"0.6510247",
"0.6493683",
"0.64562273",
"0.623075",
"0.6105341",
"0.60868716",
"0.60541993",
"0.60538113",
"0.59798276",
"0.5941452",
"0.59291065",
"0.59277... | 0.7934505 | 0 |
Rotates this Fragment using the rotation defined by the given Quaternion | def N0Pp(YKHO, slpS, WCTB=0, bcFp=0, atds=0):
for WhQ6 in YKHO.get_atoms():
WhQ6.rotate(slpS, WCTB, bcFp, atds) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b4BA(YKHO, vexM):\n YKHO._normalise()\n return YKHO * vexM * YKHO.conjugate",
"def N0Pp(YKHO, slpS):\n o72P = suG_(slpS)\n R8mN = oyIN.dot(YKHO.atom_pos, o72P.T)\n YKHO.set_atom_pos(R8mN)",
"def N0Pp(YKHO, WKvO=0, LVAh=0, epBp=0):\n slpS = A3Vt.from_euler('xyz', [WKvO, LVAh, epBp], degree... | [
"0.7294405",
"0.71604484",
"0.65020615",
"0.6402911",
"0.6297939",
"0.6255514",
"0.6226626",
"0.61294395",
"0.60619843",
"0.6036311",
"0.6036311",
"0.60143197",
"0.5982547",
"0.5937332",
"0.5923354",
"0.59217966",
"0.5885588",
"0.5851342",
"0.584848",
"0.5835781",
"0.5830552"... | 0.6952967 | 2 |
Test string fractions are returns as is | def VEj_(YKHO):
Jyyj = LoEi()
Aofo = Jyyj.prepare_value('1/4')
YKHO.assertEqual('1/4', Aofo)
Aofo = Jyyj.prepare_value('1 1/4')
YKHO.assertEqual('1 1/4', Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_Y2(KCHu: Any) -> bool:\n return bool(ZbWC.match('^-?\\\\d+/\\\\d+$', KCHu))",
"def VEj_(YKHO):\n Jyyj = K1eC()\n Aofo = Jyyj.prepare_value('1/4')\n YKHO.assertEqual('1/4', Aofo)\n Aofo = Jyyj.prepare_value('1 1/4')\n YKHO.assertEqual('1 1/4', Aofo)",
"def ai_A(YKHO):\n B3Mx = kteF(7,... | [
"0.77809423",
"0.721428",
"0.7103514",
"0.7020288",
"0.69332373",
"0.6911425",
"0.6892154",
"0.6722378",
"0.66270185",
"0.656522",
"0.6451055",
"0.64348006",
"0.6390703",
"0.6386209",
"0.63856786",
"0.63432753",
"0.6320059",
"0.62999994",
"0.62571466",
"0.6233242",
"0.6221291... | 0.7274636 | 1 |
Test string fractions are returns as is | def VEj_(YKHO):
Jyyj = K1eC()
Aofo = Jyyj.prepare_value('1/4')
YKHO.assertEqual('1/4', Aofo)
Aofo = Jyyj.prepare_value('1 1/4')
YKHO.assertEqual('1 1/4', Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_Y2(KCHu: Any) -> bool:\n return bool(ZbWC.match('^-?\\\\d+/\\\\d+$', KCHu))",
"def VEj_(YKHO):\n Jyyj = LoEi()\n Aofo = Jyyj.prepare_value('1/4')\n YKHO.assertEqual('1/4', Aofo)\n Aofo = Jyyj.prepare_value('1 1/4')\n YKHO.assertEqual('1 1/4', Aofo)",
"def ai_A(YKHO):\n B3Mx = kteF(7,... | [
"0.77809423",
"0.7274636",
"0.7103514",
"0.7020288",
"0.69332373",
"0.6911425",
"0.6892154",
"0.6722378",
"0.66270185",
"0.656522",
"0.6451055",
"0.64348006",
"0.6390703",
"0.6386209",
"0.63856786",
"0.63432753",
"0.6320059",
"0.62999994",
"0.62571466",
"0.6233242",
"0.622129... | 0.721428 | 2 |
Compute boundary faces of a tetrahedral mesh. | def g9jp(a0GW, JW6S):
uD85 = oyIN.sort(a0GW[:, 0]) + 1
cMsa = oyIN.argsort(a0GW[:, 0]) + 1
i8nr = oyIN.sort(a0GW[:, 1]) + 1
QOYf = oyIN.argsort(a0GW[:, 1]) + 1
vo6s = oyIN.sort(a0GW[:, 2]) + 1
kYw0 = oyIN.argsort(a0GW[:, 2]) + 1
mLTO = oyIN.sort(a0GW[:, 3]) + 1
S2ii = oyIN.argsort(a0GW[:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u6wr(YKHO):\n XP5J = YKHO.InferPolynomialDegree()\n if isinstance(YKHO.edges, oyIN.ndarray):\n if YKHO.edges.shape[0] > 1:\n if YKHO.edges.shape[1] == 2 and XP5J > 1:\n pass\n else:\n return\n if not isinstance(YKHO.faces, oyIN.ndarray):\n ... | [
"0.72552776",
"0.67934704",
"0.64785093",
"0.64566654",
"0.6453625",
"0.6317649",
"0.6223292",
"0.6115779",
"0.61035174",
"0.6077661",
"0.59554404",
"0.5939486",
"0.5933464",
"0.5925715",
"0.5921041",
"0.59046197",
"0.5881553",
"0.58625",
"0.5847016",
"0.58428156",
"0.5767615... | 0.5704454 | 24 |
initializes a flask app instance | def LUif():
P4t4 = L2w0(__name__)
P4t4.config.from_pyfile('config.py')
_ZMm.init_app(P4t4)
_ZMm.login_view = 'routes.signin'
NCls.init_app(P4t4)
from .routes import routes
P4t4.register_blueprint(routes)
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif(YKHO):\n YKHO.app = L2w0(__name__, instance_relative_config=True)\n YKHO.app.config.from_mapping(SECRET_KEY='!ZNeverSayNever116Z!', MONGODB_SETTINGS={'host': 'mongodb://localhost/opc_integrity'})\n aTj0(YKHO.app)\n iAwL.init_app(YKHO.app)",
"def uIcm():\n P4t4 = L2w0(__name__)\n lqQH =... | [
"0.8479128",
"0.8038138",
"0.7975422",
"0.7953565",
"0.7911968",
"0.79001665",
"0.78681207",
"0.78453237",
"0.77731043",
"0.7744912",
"0.7680423",
"0.76791704",
"0.76570606",
"0.765639",
"0.7635226",
"0.7610924",
"0.760185",
"0.7582008",
"0.75521374",
"0.75180256",
"0.7493075... | 0.7164925 | 71 |
Computes the precision metric, a metric for multilabel classification of how many selected items are relevant. | def XMkL(Y8eF: numpy.array, aMgO: numpy.array, _hZ2: float=BVxk) -> float:
COti = XTiz.sum(Y8eF * aMgO)
ftZB = XTiz.sum(aMgO)
return COti / (ftZB + _hZ2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw)\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == 'ma... | [
"0.73345155",
"0.7298403",
"0.72627676",
"0.7090696",
"0.70505947",
"0.70389444",
"0.701122",
"0.69586176",
"0.6909918",
"0.6909918",
"0.6909918",
"0.6909918",
"0.6909918",
"0.6909918",
"0.68955487",
"0.6855073",
"0.6855073",
"0.6855073",
"0.6855073",
"0.6855073",
"0.6855073"... | 0.0 | -1 |
Computes the recall metric, a metric for multilabel classification of how many relevant items are selected. | def zuJO(Y8eF: numpy.array, aMgO: numpy.array, _hZ2: float=BVxk) -> float:
COti = XTiz.sum(Y8eF * aMgO)
z5jX = XTiz.sum(Y8eF)
return COti / (z5jX + _hZ2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOzf(YKHO):\n YKHO.overall_recall = Uw2c(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_recall = Uw2c(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)",
"def Uw2c(YKHO, Y8eF=None, aMgO=None, Crrw=None, S8vG='macro', SOnQ=None, **B2fa):... | [
"0.73898387",
"0.7297759",
"0.7269505",
"0.7111451",
"0.70694834",
"0.7048114",
"0.7047511",
"0.70038974",
"0.70038974",
"0.70038974",
"0.70038974",
"0.70038974",
"0.70038974",
"0.7002241",
"0.70014656",
"0.6993705",
"0.6984924",
"0.69737595",
"0.6938349",
"0.6938121",
"0.693... | 0.0 | -1 |
Builds the schedule of which the learning rate decreases. The schedule makes the learning rate decrease linearly. | def rXdc(tspZ: float, djTW: float, JkES: int) -> YrBT:
RA_F = (tspZ - djTW) / JkES
def b6Gq(qtWj: int) -> float:
assert 0 <= qtWj < JkES
return tspZ - RA_F * qtWj
return b6Gq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vHc8(__n6):\n C3ST, y0cW = tcIP(non_negative=True)\n print('Baseline RNN')\n G3Ta(__n6, C3ST)\n print('RNN with decay')\n C3ST.set_params(**{y0cW + 'lr_decay': 'DecreasingLearningRateScheduler'})\n G3Ta(__n6, C3ST)",
"def NOBX(GPtr, K0do, qtWj, oZYH=0.1):\n if not isinstance(K0do, ht2j.o... | [
"0.66336316",
"0.63690597",
"0.63297385",
"0.63220465",
"0.6258796",
"0.6253793",
"0.620713",
"0.6153203",
"0.60822165",
"0.60623544",
"0.6049729",
"0.604464",
"0.6044371",
"0.6038978",
"0.6038978",
"0.6038978",
"0.6038978",
"0.6037906",
"0.6018564",
"0.6016782",
"0.6014408",... | 0.6524537 | 1 |
Helper function to split a huge dataset into smaller ones to enable more frequent reports. | def JsEd(Ep8u: int, t6yA: int, cDK5: int, HasU: int) -> AzJI[int]:
NGZp = t6yA // Ep8u
JkES = XTiz.ceil(HasU * cDK5 / t6yA)
return (NGZp, JkES) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qb89(YKHO):\n print('split data')\n oyIN.random.shuffle(YKHO.dataList)\n vC9B = len(YKHO.dataList) / YKHO.fold\n YKHO.dataList = [YKHO.dataList[YRbF * vC9B:(YRbF + 1) * vC9B] for YRbF in range(YKHO.fold - 1)] + [YKHO.dataList[(YKHO.fold - 1) * vC9B:]]",
"def mWCW(nPrm):\n aAt0 = nPrm[0:9497]\n... | [
"0.68325806",
"0.6719043",
"0.66812164",
"0.65784836",
"0.65560913",
"0.65425575",
"0.6532564",
"0.6470499",
"0.64588654",
"0.6456596",
"0.64458627",
"0.64394736",
"0.64272094",
"0.6405427",
"0.6385925",
"0.63804173",
"0.63804173",
"0.63794905",
"0.63666266",
"0.636225",
"0.6... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.82368803",
"0.79901737",
"0.7849152",
"0.78468513",
"0.77520275",
"0.7625378",
"0.7625378",
"0.76225406",
"0.76225406",
"0.75483394",
"0.7522958",
"0.7470355",
"0.7469358",
"0.7447144",
"0.7447144",
"0.74314755",
"0.7427648",
"0.7389925",
"0.7351721",
"0.73424315",
"0.7322... | 0.0 | -1 |
Replace this Tetrahdedron by Tetrahedron instances NEW_TETRAHEDRA. | def Z14Y(YKHO, OVdc, EmUK):
YKHO.destroy(EmUK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rC0t(YKHO, fNNV):\n if isinstance(fNNV, brmS):\n WMuu = []\n WMuu.append(fNNV[:, :])\n fNNV = WMuu\n if not isinstance(fNNV, list):\n raise TypeError('Please send a list of rt to new_rt_set')\n for ehDb in YKHO.rt_actors:\n YKHO.parent_window.ren.RemoveActor(ehDb)\n ... | [
"0.5610013",
"0.54977065",
"0.5488572",
"0.54448485",
"0.5427759",
"0.52548707",
"0.5156459",
"0.5109099",
"0.5095576",
"0.506502",
"0.5022705",
"0.49961764",
"0.49854037",
"0.49143454",
"0.48233232",
"0.47823483",
"0.47621095",
"0.47574484",
"0.47290552",
"0.47250453",
"0.47... | 0.64222157 | 0 |
Returns whether the vector is inside of the board | def ufIw(YKHO, he6J):
if YKHO.in_field(he6J):
return True
for JfyU in YKHO.colors.values():
if JfyU(he6J, YKHO.n):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufIw(YKHO, oeNL: np.ndarray) -> bool:\n if 0 > oeNL[0] or oeNL[0] >= P5Bq:\n return False\n if 0 > oeNL[1] or oeNL[1] >= P5Bq:\n return False\n return True",
"def JYgA(YKHO, rdlD, fvDH):\n return 0 <= rdlD < YKHO.rows and 0 <= fvDH < YKHO.cols",
"def GKu2(YKHO, oeNL):\n YRbF, r... | [
"0.7212",
"0.7185246",
"0.70871615",
"0.70771027",
"0.70234334",
"0.6946289",
"0.68932205",
"0.6879633",
"0.6874559",
"0.6864705",
"0.68536687",
"0.68081266",
"0.67276454",
"0.6673209",
"0.66710615",
"0.6647632",
"0.66226614",
"0.661512",
"0.6614641",
"0.66095644",
"0.6598182... | 0.7772189 | 0 |
Returns a list of vectors that may or may not be inside of the board. | def r3Xs(YKHO):
exwG = YKHO.n * 2
F_On = []
for P6bq in range(-exwG, exwG + 1):
bypm = [P6bq] * (2 * exwG + 1)
if P6bq < 0:
F_On.extend(zip(bypm, range(-exwG - P6bq, exwG + 1), range(-exwG, exwG + P6bq + 1)))
else:
F_On.extend(zip(bypm, range(-exwG, exwG - P6b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nGf9(YKHO):\n return [Z9rn for Z9rn in range(YKHO.getWidth()) if len([Mkmy for Mkmy in range(YKHO.getHeight()) if YKHO.cell[Z9rn][Mkmy] == KAvf]) > 0]",
"def umRn(YKHO):\n l524 = []\n for RXWL in range(len(YKHO.board)):\n for DT55 in range(len(YKHO.board)):\n if YKHO.board[RXWL][DT... | [
"0.6610782",
"0.65623474",
"0.64860266",
"0.64014375",
"0.6315641",
"0.6310179",
"0.62271833",
"0.6195709",
"0.61830556",
"0.6166734",
"0.6125621",
"0.6112408",
"0.60734916",
"0.6043918",
"0.6020423",
"0.6017853",
"0.5987325",
"0.59772426",
"0.597702",
"0.5952441",
"0.5952441... | 0.0 | -1 |
Setup the sensor platform. | def AbqV(ajET, GPtr, deL4, tR5e=None):
U4Ya = GPtr.get(BiEj)
rJDA = GPtr.get(fFds, None)
VOlW = GPtr.get(w_8E)
if rJDA == None:
cizA.error('Pls enter api_key!')
return False
aTaL = GPtr.get(dFMR, None)
if aTaL == None:
cizA.error('Pls enter road_name!')
j5sA = GPtr.ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AbqV(ajET, GPtr, deL4, tR5e=None):\n pmwE = zgvu(GPtr[VMxG])\n pmwE.start()\n NYTb = tb4Y(ajET, VMxG, pmwE)\n deL4([NYTb])",
"def _kZf(YKHO, b32v):\n YKHO.__sensors = YKHO.setup_components(b32v, 'scale_client.sensors')",
"def AbqV(ajET: HomeAssistant, GPtr: ConfigType, uVcJ: AddEntitiesCallb... | [
"0.7249521",
"0.7210104",
"0.7194671",
"0.7163429",
"0.7035067",
"0.6979973",
"0.6975266",
"0.69677466",
"0.696644",
"0.6903852",
"0.690341",
"0.6835207",
"0.6825917",
"0.680988",
"0.679155",
"0.67871094",
"0.6784935",
"0.6776815",
"0.6770015",
"0.67620605",
"0.67544883",
"... | 0.6310375 | 72 |
Return the name of the sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91896784",
"0.9168378",
"0.890185",
"0.8770976",
"0.8511273",
"0.8479953",
"0.844435",
"0.8299758",
"0.8186503",
"0.8105667",
"0.8079737",
"0.8066149",
"0.8049647",
"0.7700968",
"0.7612295",
"0.7611456",
"0.7600605",
"0.7600605",
"0.7600605",
"0.75392073",
"0.75166553",
... | 0.0 | -1 |
Return the state attributes. | def R1i3(YKHO):
return YKHO.attributes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._wan",
"def R1i3(YKHO):\n ... | [
"0.8953404",
"0.8953404",
"0.8366765",
"0.8366765",
"0.8363429",
"0.83362615",
"0.8334551",
"0.8310377",
"0.8292682",
"0.8289349",
"0.8289349",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.828... | 0.85239846 | 2 |
acquire queryset. if model is presented, then return all model query instances by default. | def k66M(YKHO):
assert YKHO.model or YKHO.queryset, 'No queryset found'
if YKHO.queryset:
return YKHO.queryset
else:
return YKHO.model.objects.all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n if YKHO.queryset is None:\n return YKHO.model.objects.all()\n return YKHO.queryset",
"def k66M(YKHO):\n if YKHO.queryset is not None:\n SR0I = YKHO.queryset\n if hasattr(SR0I, '_clone'):\n SR0I = SR0I._clone()\n elif YKHO.model is not None:\n S... | [
"0.7644273",
"0.7618205",
"0.7535147",
"0.7387494",
"0.738083",
"0.732587",
"0.72906893",
"0.71977407",
"0.708393",
"0.70817304",
"0.70669514",
"0.69840425",
"0.6976474",
"0.69260937",
"0.6898897",
"0.6810811",
"0.6804265",
"0.68033534",
"0.67867935",
"0.6778076",
"0.6723888"... | 0.7802014 | 0 |
Round a datetime object to any time lapse in seconds | def VGg5(JRYC=None, z_0R=60):
if JRYC == None:
JRYC = qcWV.datetime.now()
C6wh = (JRYC.replace(tzinfo=None) - JRYC.min).seconds
Y3rN = (C6wh + z_0R / 2) // z_0R * z_0R
return JRYC + fCoM(0, Y3rN - C6wh, -JRYC.microsecond) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZhNM(ITS7):\n XXcz = ITS7.minute % 5\n W3xo = ITS7.second\n oLQB = ITS7.microsecond\n ITS7 = ITS7 - fCoM(minutes=XXcz, seconds=W3xo, microseconds=oLQB)\n return ITS7",
"def I3hM(JRYC=None, HlDX=60):\n if hasattr(JRYC, 'tzinfo'):\n JRYC.replace(tzinfo=None)\n yk4i = JRYC - JRYC.rep... | [
"0.7320045",
"0.715309",
"0.7138651",
"0.71008414",
"0.7058292",
"0.6994194",
"0.6970844",
"0.68314713",
"0.6807531",
"0.6665522",
"0.653433",
"0.6327775",
"0.6321998",
"0.63166976",
"0.6299284",
"0.62989396",
"0.6279414",
"0.6231006",
"0.6187853",
"0.61589897",
"0.61580956",... | 0.6820072 | 8 |
Fetch one column of a row in a column family | def pFYL(YKHO, PoS_, H5ew, iVRZ):
return YKHO._Get_One_Col(cf_name=PoS_, key=H5ew, column=iVRZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iBd8(YKHO, mWFP):\n return YKHO.column(mWFP)",
"def iBd8(YKHO, zYnp):\n Z9rn = zYnp\n if isinstance(Z9rn, g760.Hashable) and Z9rn in YKHO.column_labels:\n return YKHO[Z9rn]\n else:\n assert len(Z9rn) == YKHO.num_rows, 'column length mismatch'\n return Z9rn",
"def iBd8(Emd4,... | [
"0.65809715",
"0.6395824",
"0.6331326",
"0.6311651",
"0.6183956",
"0.6180765",
"0.6135274",
"0.611844",
"0.6111417",
"0.61094",
"0.6099584",
"0.6052209",
"0.59760803",
"0.59675276",
"0.59591275",
"0.595855",
"0.5944605",
"0.59303564",
"0.5896189",
"0.58921236",
"0.5860364",
... | 0.63702726 | 2 |
Returns current sendesh status of the cluster. | def VLTN(YKHO):
return YKHO._conn_state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SwtZ(YKHO):\n nPrm = YKHO.connect('get', 'cluster/status', None)\n return nPrm",
"def CZo6(YKHO, *qIxc, **B2fa):\n return nhfz(YKHO._show_cluster_status, *qIxc, **B2fa)",
"def VLTN(YKHO):\n try:\n Z9rn = YKHO._oc_command(['status'])\n z1Rg = fupw(Z9rn, return_output=True)\n ... | [
"0.8044244",
"0.7461671",
"0.71386325",
"0.6918834",
"0.6678814",
"0.65886074",
"0.650298",
"0.6475688",
"0.6466387",
"0.6464366",
"0.6391463",
"0.6388183",
"0.6369799",
"0.6355483",
"0.63423043",
"0.63423043",
"0.63423043",
"0.63423043",
"0.63423043",
"0.63423043",
"0.634230... | 0.0 | -1 |
Calculate the skyline of pruned data | def Sjqa(YKHO):
MCLF = []
for XP5J in YKHO.pruned:
sp3c = [YKHO.drange[0] for YRbF in range(YKHO.dim)]
YcN1 = XP5J.getLocationMax()
Pxh7 = list(YKHO.index.intersection(tuple(sp3c + YcN1), objects=True))
if len(Pxh7) == 1 and Pxh7[0].object == XP5J:
MCLF.append([XP5J, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VA9J(Mkmy):\n WKvO = Mkmy / 6371000.0\n if Mkmy >= 6356000.0:\n oZuG = 2.6\n HZU1 = 5.8\n ea6Z = HZU1\n rnej = 3.2\n yyp1 = rnej\n RHJb = 1.0\n elif (Mkmy >= 6346000.6) & (Mkmy < 6356000.0):\n oZuG = 2.9\n HZU1 = 6.8\n ea6Z = HZU1\n ... | [
"0.5892707",
"0.5673361",
"0.5619614",
"0.55595136",
"0.53803533",
"0.53759634",
"0.5366281",
"0.5366115",
"0.53538483",
"0.5347818",
"0.5318919",
"0.5297589",
"0.52948004",
"0.52816844",
"0.5278574",
"0.52699864",
"0.5261957",
"0.5221317",
"0.5217847",
"0.52147764",
"0.51918... | 0.7453469 | 0 |
Returns all of the vertexes in the graph as a collection. | def AyQV(YKHO):
try:
return list(YKHO._adjacency_list.keys())
except Exception as error:
print(f'An error occurred: {P1dF}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXlf(YKHO):\n return list(YKHO.__graph.values())",
"def iXlf(YKHO):\n return list(YKHO._graph)",
"def TA6f(YKHO):\n return list(YKHO.graph_dict.keys())",
"def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())",
"def iXlf(YKHO):\n return list(YKHO.graph_dict.keys())",
"def iXlf(YKHO):... | [
"0.8442992",
"0.8437905",
"0.80978954",
"0.8062885",
"0.80320734",
"0.8027241",
"0.8027241",
"0.8027241",
"0.79487896",
"0.7837035",
"0.7822196",
"0.7815928",
"0.7676804",
"0.7663068",
"0.7611067",
"0.7565963",
"0.7558315",
"0.7526916",
"0.75248486",
"0.74665725",
"0.74665725... | 0.0 | -1 |
Sets the value of a field. | def j6Nn(YKHO, BWXx):
if YKHO.value:
raise ValueError('Already has a Value:', YKHO)
YKHO.value = BWXx
if YKHO.value != 0:
YKHO.possible = None
YKHO.solved = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6Nn(YKHO, Jyyj, BWXx):\n Jyyj = YKHO.find_first(Jyyj)\n if Jyyj is not None:\n Jyyj.value = BWXx",
"def m6eq(YKHO, Jyyj, BWXx):\n YKHO._contents[Jyyj] = BWXx",
"def oMVk(YKHO, Jyyj, BWXx):\n YKHO.__setitem__(Jyyj, BWXx)",
"def j6Nn(YKHO, wEf2):\n YKHO.value = wEf2",
"def GInR(YKH... | [
"0.87944627",
"0.83795464",
"0.8153481",
"0.744799",
"0.74258125",
"0.7408449",
"0.7408449",
"0.7408449",
"0.737211",
"0.73430604",
"0.73430604",
"0.73",
"0.7291942",
"0.721044",
"0.71501756",
"0.7146078",
"0.71260786",
"0.7103469",
"0.70935476",
"0.7080875",
"0.7078103",
"... | 0.0 | -1 |
Returns string representation of self | def zAg0(YKHO):
return str(YKHO.value) + ' ' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def Sa1R(YKHO) -> str:\n raise NotImplementedError",
"def zAg0(YKHO):\n return YKHO.as_string()",
"def Napc(YKHO):\n return str(YKHO)",
"def CZBi(YKHO):\n return YKHO.__repr__()",
"def wHJl(YKHO):\n return str(YKHO)",
"def wHJl(YKHO):\n re... | [
"0.87734145",
"0.87379277",
"0.86403114",
"0.8580149",
"0.85407466",
"0.8532413",
"0.8532413",
"0.8532413",
"0.8532413",
"0.8532413",
"0.8532413",
"0.8532413",
"0.8532413",
"0.8532413",
"0.8532413",
"0.8532413",
"0.8532413",
"0.8532413",
"0.852823",
"0.85209185",
"0.8493514",... | 0.0 | -1 |
The identity block is the block that has no conv layer at shortcut. Arguments | def aP6R(FRUf, Ot1W, KUnM, EtM5, XkN1):
DZWo, MXwb, wMAF = KUnM
RmTP = 'res' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
WKvO = yHwh(filters=DZWo, kernel_size=(1, 1), name=RmTP + '2a')(FRUf)
WKvO = GVKG(name=lPXw + '2a')(WKvO)
WKvO = MroH('relu')(WKvO)
WKvO = yH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.71272004",
"0.7022438",
"0.6910338",
"0.68836653",
"0.68505627",
"0.6847176",
"0.6821999",
"0.680346",
"0.6799615",
"0.67849326",
"0.67714536",
"0.67158884",
"0.67146987",
"0.67137283",
"0.6664201",
"0.6624224",
"0.662218",
"0.662218",
"0.66078824",
"0.65984523",
"0.654859... | 0.68221945 | 6 |
A block that has a conv layer at shortcut. Arguments | def mQG_(FRUf, Ot1W, KUnM, EtM5, XkN1, FEri=(2, 2)):
DZWo, MXwb, wMAF = KUnM
RmTP = 'res' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
WKvO = yHwh(filters=DZWo, kernel_size=(1, 1), strides=FEri, name=RmTP + '2a')(FRUf)
WKvO = GVKG(name=lPXw + '2a')(WKvO)
WKvO = MroH(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQG_(YKHO, DVMO, UU6M, b27A):\n return YKHO.add_layer(mQG_, DVMO, UU6M, b27A)",
"def mjQN(YKHO, EcVT, KUnM, eHNT, KCHu, EtM5, XkN1):\n jZbr = 'res' + str(EtM5) + XkN1 + '_branch'\n tagR = 'bn' + str(EtM5) + XkN1 + '_branch'\n LedO = EcVT\n nK5p, Xf5Z, uN8x = KUnM\n EcVT = yHwh(filters=nK5p,... | [
"0.72210574",
"0.6797653",
"0.67508686",
"0.673468",
"0.6702727",
"0.66709983",
"0.66706705",
"0.6638113",
"0.6602907",
"0.6602907",
"0.65983295",
"0.65591985",
"0.6556552",
"0.6553555",
"0.6531844",
"0.65101147",
"0.650745",
"0.6479069",
"0.64118993",
"0.6391051",
"0.6383523... | 0.6421294 | 18 |
`features` might be a list of unweighted tokens (a weight of 1 will be assumed), a list of (token, weight) tuples or a token > weight dict. | def YcqH(YKHO, bySB):
Ty9i = [0] * YKHO.f
oGem = [1 << YRbF for YRbF in range(YKHO.f)]
if isinstance(bySB, dict):
bySB = bySB.items()
for eHNT in bySB:
if isinstance(eHNT, exCv):
MKlR = YKHO.hashfunc(eHNT.encode('utf-8'))
yzQ0 = 1
else:
assert ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qRnK(s2mk, LyKa):\n for eOtH in s2mk:\n a1PO = 'token=' + eOtH\n if a1PO not in LyKa.keys():\n LyKa.setdefault(a1PO, 1)\n else:\n LyKa[a1PO] += 1",
"def qRnK(s2mk, LyKa):\n UHFx = mBkc(s2mk)\n for YRbF in UHFx:\n LyKa['token=' + YRbF] = UHFx[YRbF]",
... | [
"0.6538036",
"0.6515062",
"0.6346604",
"0.63105845",
"0.6278965",
"0.62613875",
"0.622706",
"0.61605465",
"0.61384344",
"0.61384344",
"0.61300457",
"0.6122697",
"0.6109485",
"0.60985655",
"0.6096389",
"0.6088325",
"0.6088325",
"0.6059488",
"0.6058604",
"0.60456884",
"0.601068... | 0.6396962 | 2 |
Find the Jaccard Overlap (IoU) of every box combination between two sets of boxes that are in boundary coordinates. | def khWK(MWrr, MOlU):
iQin = mP91(MWrr, MOlU)
vXV1 = (MWrr[:, 2] - MWrr[:, 0]) * (MWrr[:, 3] - MWrr[:, 1])
MAOT = (MOlU[:, 2] - MOlU[:, 0]) * (MOlU[:, 3] - MOlU[:, 1])
b65I = vXV1.unsqueeze(1) + MAOT.unsqueeze(0) - iQin
return iQin / b65I | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xWy(FlUN, oUSw):\n lPIV, NYg6, YHnu, JsBq = FlUN[:4]\n F0r3, HvyQ = (oUSw[:, 0], oUSw[:, 1])\n jssV, IS9n = (oUSw[:, 2], oUSw[:, 3])\n iCO1 = oyIN.maximum(F0r3, lPIV)\n JD_R = oyIN.maximum(HvyQ, NYg6)\n TCx0 = oyIN.minimum(jssV, YHnu)\n fVPt = oyIN.minimum(IS9n, JsBq)\n OgeB = oyIN.max... | [
"0.7168513",
"0.7112828",
"0.70525634",
"0.7020757",
"0.6949288",
"0.6949288",
"0.6949288",
"0.6860193",
"0.6860193",
"0.677731",
"0.67404073",
"0.6721264",
"0.67108876",
"0.6706636",
"0.66358984",
"0.6622973",
"0.6622973",
"0.66052437",
"0.65899974",
"0.6587413",
"0.6581515"... | 0.6439117 | 34 |
Initializes this row with default values and a sentinel entry. | def FIMM(YKHO):
YKHO.row_number = -1
YKHO.next_row = None
YKHO.row_sentinel = BsUr.MatrixEntry() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, usx6, WfCS, Xvek=0):\n YKHO.num_rows = usx6\n YKHO.num_cols = WfCS\n YKHO.default = Xvek\n YKHO.sentinel = BsUr.MatrixRow()",
"def FIMM(YKHO, BWXx=None):\n YKHO.column_number = -1\n YKHO.value = BWXx\n YKHO.next_entry = None",
"def FIMM(YKHO, usx6, WfCS, Xvek=0):\n YKHO.n... | [
"0.67260337",
"0.63815343",
"0.63809544",
"0.6340838",
"0.6260441",
"0.60686153",
"0.606482",
"0.59570277",
"0.58858204",
"0.57779187",
"0.57666415",
"0.57305354",
"0.5706646",
"0.5699942",
"0.56828165",
"0.5641227",
"0.5615847",
"0.5596644",
"0.55751085",
"0.55194175",
"0.54... | 0.60228264 | 7 |
Initializes the entry with default values. | def FIMM(YKHO, BWXx=None):
YKHO.column_number = -1
YKHO.value = BWXx
YKHO.next_entry = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XftE(YKHO):\n pass",
"def FIMM(YKHO, G1Hx, Ty9i):\n super(RAUw, YKHO).__init__()\n YKHO.key = G1Hx\n YKHO.value = Ty9i",
"def FIMM(YKHO, qsJ6, VECZ=None):\n YKHO.owner = qsJ6\n YKHO.entries = Gq84(YKHO)\n if VECZ is None:\n return",
"def FIMM(YKHO, PhL6):\n YKHO.config_entr... | [
"0.64839077",
"0.6428061",
"0.6153857",
"0.6130358",
"0.6130358",
"0.61106277",
"0.6092544",
"0.60430735",
"0.6029392",
"0.6006516",
"0.5996097",
"0.5971703",
"0.5956414",
"0.59403425",
"0.59384495",
"0.5929642",
"0.5925223",
"0.58915585",
"0.5879156",
"0.58741474",
"0.587160... | 0.0 | -1 |
Initializes the matrix with a size, a default value, and a row sentinel. | def FIMM(YKHO, usx6, WfCS, Xvek=0):
YKHO.num_rows = usx6
YKHO.num_cols = WfCS
YKHO.default = Xvek
YKHO.sentinel = BsUr.MatrixRow() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, usx6, WfCS, Xvek=0):\n YKHO.num_rows = usx6\n YKHO.num_cols = WfCS\n YKHO.rows = [[Xvek] * WfCS for bGrB in Ni9Y(usx6)]",
"def FMTg(qXGJ, DJmC):\n return [[0] * DJmC for YRbF in range(qXGJ)]",
"def FIMM(YKHO, NwL4=None, HoHs=v8mt.MatrixResizeType.SET_ZERO):\n super(LSWT, YKHO).__i... | [
"0.7281571",
"0.69483995",
"0.6928275",
"0.6726728",
"0.6641103",
"0.655347",
"0.6530604",
"0.6498373",
"0.648758",
"0.64090204",
"0.6306809",
"0.6260346",
"0.6204775",
"0.6165205",
"0.6070078",
"0.60698414",
"0.60140264",
"0.5983178",
"0.59733385",
"0.5946259",
"0.5865526",
... | 0.7756205 | 0 |
Creates a classification model. | def LQs7(C3ST, Crrw, CSaX, IOkG, mx59=4):
RLZ8 = C3ST.get_pooled_output()
wjbX = RLZ8.shape[-1].value
with ZylS.variable_scope('cpc_loss'):
hlel = ZylS.reshape(RLZ8, (-1, IOkG + 1, wjbX))
lRr0 = hlel[:, 0, :]
x6A0 = hlel[:, 1:, :]
iJPe = ZylS.get_variable('cpc_weights', [mx59... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7(YKHO):\n YKHO.classifier = HmMl(max_depth=1)",
"def LQs7(YKHO, Nq1b: float=1):\n YKHO.classifier = v9Rb(max_depth=5)",
"def LQs7():\n C3ST = ileL()\n C3ST.add(l6ZH(units=128, activation='relu', input_shape=(784,)))\n C3ST.add(l6ZH(units=128, activation='relu'))\n C3ST.add(l6ZH(units=... | [
"0.7451048",
"0.716728",
"0.70753753",
"0.69427526",
"0.69337225",
"0.69306064",
"0.6929345",
"0.68631464",
"0.68004555",
"0.6769279",
"0.6737084",
"0.66838384",
"0.66709864",
"0.660953",
"0.65912193",
"0.6564333",
"0.6534873",
"0.6526978",
"0.6525293",
"0.6521778",
"0.651739... | 0.0 | -1 |
Function returns the index of the element if it exists in the array or the index at which it would have been present if it is not. The function expects the argument data to be in sorted order | def qDiG(nPrm, LihS):
gqRb = 0
ODP9 = len(nPrm) - 1
while gqRb <= ODP9:
Hpmo = (gqRb + ODP9) // 2
if LihS == nPrm[Hpmo]:
return Hpmo
if LihS > nPrm[Hpmo]:
gqRb = Hpmo + 1
else:
ODP9 = Hpmo - 1
return Hpmo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zgjh(ezWE, wEf2):\n if wEf2 is not None:\n return XTiz.searchsorted(ezWE, wEf2)\n else:\n return wEf2",
"def neBz(YKHO, nPrm):\n d6pt = 0\n jvSB = YKHO.head\n while jvSB:\n if jvSB.data == nPrm:\n return d6pt\n d6pt += 1\n jvSB = jvSB.next\n ret... | [
"0.7313242",
"0.7135801",
"0.7050882",
"0.7015456",
"0.6990773",
"0.6962582",
"0.69366205",
"0.6882193",
"0.68782043",
"0.6861308",
"0.68275255",
"0.6757039",
"0.67442787",
"0.67424434",
"0.6690114",
"0.6632292",
"0.6623185",
"0.6622726",
"0.6607247",
"0.66015273",
"0.6584637... | 0.6452699 | 25 |
creates a string representation of the incident class | def wHJl(YKHO):
return {'username': YKHO.createdBy, 'createdOn': YKHO.createdOn, 'status': YKHO.status} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'Edge Weight: ' + str(YKHO.weight) + '\\n' + 'Edge Attributes: ' + str(YKHO.attributes) + '\\n' + 'First Incident Node: \\n' + str(YKHO.first_incident_node.get_name()) + '\\n' + 'Second Incident Node: \\n' + str(YKHO.second_incident_node.get_name()) + '\\n'",
"def zAg0(YKHO):\n sov... | [
"0.6591128",
"0.64477116",
"0.6425984",
"0.6424492",
"0.64165956",
"0.64165956",
"0.6404343",
"0.638652",
"0.63775414",
"0.6372295",
"0.6355926",
"0.6327886",
"0.6322455",
"0.6317055",
"0.63161314",
"0.62926656",
"0.6280834",
"0.6280834",
"0.62319183",
"0.62098956",
"0.620989... | 0.0 | -1 |
isPubKeyHashAltScript returns whether or not the passed script is a standard paytoaltpubkeyhash script. | def YfM4(B6sC):
_sei, bGrB = xhYq(B6sC)
return _sei is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ONQa(B6sC):\n _sei, bGrB = az7m(B6sC)\n return _sei is not None",
"def TrpI(B6sC):\n return WfFi(B6sC) is not None",
"def bIQP(Mxrh):\n return HDpW(Mxrh) is not None",
"def xhYq(B6sC):\n if len(B6sC) == 26 and B6sC[0] == kuMQ.OP_DUP and (B6sC[1] == kuMQ.OP_HASH160) and (B6sC[2] == kuMQ.OP_... | [
"0.83807874",
"0.7120107",
"0.69990027",
"0.6770051",
"0.65594625",
"0.62602997",
"0.61753106",
"0.60747033",
"0.5963485",
"0.577271",
"0.5525091",
"0.5515122",
"0.5512154",
"0.5323065",
"0.53224075",
"0.53030145",
"0.5280672",
"0.5241605",
"0.5154319",
"0.5107975",
"0.499036... | 0.86994773 | 0 |
isScriptHashScript returns whether or not the passed script is a standard paytoscripthash script. | def bIQP(Mxrh):
return HDpW(Mxrh) is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JUFX(B6sC, IMqJ):\n return pswo(B6sC, IMqJ) is not None",
"def qybY(jJbZ, B6sC):\n if jJbZ != 0:\n return False\n IMqJ = kuMQ.OP_SSTX\n return ZyGZ(B6sC, IMqJ) is not None or pswo(B6sC, IMqJ) is not None",
"def YfM4(B6sC):\n _sei, bGrB = xhYq(B6sC)\n return _sei is not None",
"de... | [
"0.6985879",
"0.6771758",
"0.6672279",
"0.6639186",
"0.6558154",
"0.65305465",
"0.6217598",
"0.61344045",
"0.59568125",
"0.58778286",
"0.5871108",
"0.5774199",
"0.57442975",
"0.5731211",
"0.5684391",
"0.56413454",
"0.55964047",
"0.5583554",
"0.5577422",
"0.5501302",
"0.537739... | 0.8142619 | 0 |
isPubKeyScript returns whether or not the passed script is either a standard paytocompressedsecp256k1pubkey or paytouncompressedsecp256k1pubkey script. | def TrpI(B6sC):
return WfFi(B6sC) is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ONQa(B6sC):\n _sei, bGrB = az7m(B6sC)\n return _sei is not None",
"def YfM4(B6sC):\n _sei, bGrB = xhYq(B6sC)\n return _sei is not None",
"def fPYV(B6sC):\n if len(B6sC) == 35 and B6sC[34] == kuMQ.OP_CHECKSIG and (B6sC[0] == kuMQ.OP_DATA_33) and (B6sC[1] == 2 or B6sC[1] == 3):\n return... | [
"0.76807207",
"0.74758685",
"0.6837888",
"0.6813417",
"0.66855085",
"0.66854256",
"0.6649673",
"0.65490615",
"0.64809483",
"0.64256275",
"0.6318871",
"0.6282563",
"0.5937391",
"0.58674556",
"0.58500725",
"0.57804334",
"0.5736307",
"0.5711921",
"0.56116784",
"0.5450774",
"0.54... | 0.87469333 | 0 |
isStakeScriptHash returns whether or not the passed public key script is a standard paytoscripthash script tagged with the provided stake opcode. | def JUFX(B6sC, IMqJ):
return pswo(B6sC, IMqJ) is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qybY(jJbZ, B6sC):\n if jJbZ != 0:\n return False\n IMqJ = kuMQ.OP_SSTX\n return ZyGZ(B6sC, IMqJ) is not None or pswo(B6sC, IMqJ) is not None",
"def zK6e(jJbZ, B6sC):\n if jJbZ != 0:\n return False\n IMqJ = kuMQ.OP_SSGEN\n return ZyGZ(B6sC, IMqJ) is not None or pswo(B6sC, IMqJ)... | [
"0.74850756",
"0.72760284",
"0.7159659",
"0.685685",
"0.6720025",
"0.65972114",
"0.65785325",
"0.6557142",
"0.65356684",
"0.65006304",
"0.6342475",
"0.6015369",
"0.5896307",
"0.58825606",
"0.58197266",
"0.5727122",
"0.5658983",
"0.5587728",
"0.54950094",
"0.5426798",
"0.54075... | 0.82549566 | 0 |
isStakeRevocationScript returns whether or not the passed script is a supported stake revocation script. | def aKze(jJbZ, B6sC):
if jJbZ != 0:
return False
IMqJ = kuMQ.OP_SSRTX
return ZyGZ(B6sC, IMqJ) is not None or pswo(B6sC, IMqJ) is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zK6e(jJbZ, B6sC):\n if jJbZ != 0:\n return False\n IMqJ = kuMQ.OP_SSGEN\n return ZyGZ(B6sC, IMqJ) is not None or pswo(B6sC, IMqJ) is not None",
"def WFZP(jJbZ, B6sC):\n if jJbZ != 0:\n return False\n IMqJ = kuMQ.OP_SSTXCHANGE\n return ZyGZ(B6sC, IMqJ) is not None or pswo(B6sC,... | [
"0.6676638",
"0.65523857",
"0.6528182",
"0.5885715",
"0.57545006",
"0.57171816",
"0.570892",
"0.5288599",
"0.5230482",
"0.513883",
"0.5070677",
"0.50654864",
"0.5056044",
"0.49159798",
"0.48469758",
"0.48185316",
"0.48163933",
"0.47841194",
"0.47524068",
"0.47524068",
"0.4689... | 0.8317017 | 0 |
isNullOutpoint determines whether or not a previous transaction output point is set. | def AhH3(UShr):
EQw9 = UShr.txIn[0].previousOutPoint
if EQw9.index == UsS3.MaxUint32 and EQw9.hash == A5SK(0, length=nME7) and (EQw9.tree == UsS3.TxTreeRegular):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uYVM(YKHO) -> bool:\n return YKHO.allele1 == -1 and YKHO.allele2 == -1",
"def ebnO(YKHO):\n return not YKHO.as_point == (0, 0)",
"def fNrG(eku4):\n return isinstance(eku4, SppC) and eku4.y == 0",
"def uYVM(YKHO):\n return YKHO.begin >= YKHO.end",
"def uYVM(YKHO):\n return YKHO.begin >= Y... | [
"0.572587",
"0.5494097",
"0.5468214",
"0.5427008",
"0.5427008",
"0.54117066",
"0.54117066",
"0.54117066",
"0.54117066",
"0.54117066",
"0.5410235",
"0.5354522",
"0.5306289",
"0.52994424",
"0.52847725",
"0.50248367",
"0.5020674",
"0.5019295",
"0.501641",
"0.5016285",
"0.5008537... | 0.7417642 | 0 |
isNullFraudProof determines whether or not a previous transaction fraud proof is set. | def ZTb3(UShr):
jqyL = UShr.txIn[0]
if jqyL.blockHeight != UsS3.NullBlockHeight:
return False
elif jqyL.blockIndex != UsS3.NullBlockIndex:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdEz(YKHO):\n return YKHO._is_nullable",
"def fXcx(YKHO) -> bool:\n return YKHO.__nullable",
"def sdEz(YKHO) -> bool:\n pass",
"def Ny0b(YKHO):\n Iy9o = YKHO.cached_data.last_feedbackset\n return Iy9o.grading_published_datetime is None and Iy9o.grading_points is not None",
"def uYVM(YKHO... | [
"0.5800411",
"0.5765913",
"0.5574588",
"0.5363698",
"0.53069085",
"0.527119",
"0.52068",
"0.5203792",
"0.51953936",
"0.5179996",
"0.5179996",
"0.5179996",
"0.5179996",
"0.5179996",
"0.51507264",
"0.5068233",
"0.50369585",
"0.50369453",
"0.502015",
"0.5006343",
"0.49657416",
... | 0.73267996 | 0 |
SignatureScript creates an input signature script for tx to spend coins sent from a previous output to the owner of privKey. tx must include all transaction inputs and outputs, however txin scripts are allowed to be filled or empty. The returned script is calculated to be used as the idx'th txin sigscript for tx. subsc... | def YhSz(UShr, or8S, ALB3, qUjY, dS_t, EC_r):
wEsz = Ho7_(UShr, or8S, ALB3, qUjY, dS_t.key)
GOHe = dS_t.pub
if EC_r:
M2tk = GOHe.serializeCompressed()
else:
M2tk = GOHe.serializeUncompressed()
B6sC = wqq3(wEsz)
B6sC += wqq3(M2tk)
return B6sC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T6jn(sXfh, UShr, or8S, Mxrh, qUjY, OYDT, OdHh, ilih):\n D7eS, KzT0, KYrJ, StOp = Zihr(sXfh, UShr, or8S, Mxrh, qUjY, OYDT, ilih)\n DaE6 = KzT0 == G__B or KzT0 == UT_v or KzT0 == vmqc or (KzT0 == wAps)\n if DaE6:\n KzT0 = qkop(Mxrh)\n if KzT0 == _J2M:\n raise NotImplementedError('Script... | [
"0.6949658",
"0.68388593",
"0.6723117",
"0.66593707",
"0.6648539",
"0.6631726",
"0.6596259",
"0.6583522",
"0.6548207",
"0.6508995",
"0.6417073",
"0.60621965",
"0.6003982",
"0.5993239",
"0.586111",
"0.5825078",
"0.58022976",
"0.5738131",
"0.5488762",
"0.54229194",
"0.54102147"... | 0.83294255 | 0 |
rawTxInSignature returns the serialized ECDSA signature for the input idx of the given transaction, with hashType appended to it. | def Ho7_(UShr, or8S, Kr8S, qUjY, H5ew):
JLid = CD1H(Kr8S, qUjY, UShr, or8S, None)
wEsz = y2KI(H5ew, JLid).serialize()
return wEsz + A5SK(qUjY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MYEb(UShr, x03U, E0Xp, D9QR=jd3e):\n Pezy = n5rA(UShr)\n d6pt = None\n for D9W_ in Pezy['ins']:\n umnT = D9W_['outpoint']['hash']\n IHBc = qLa_(umnT)\n if E0Xp in IHBc['to']:\n d6pt = IHBc['to'].index(E0Xp)\n if d6pt is not None:\n XLAo = PeGy(UShr, d6pt, CAEJ... | [
"0.6972546",
"0.6505088",
"0.6497032",
"0.6440196",
"0.6333097",
"0.61801964",
"0.6174183",
"0.61535615",
"0.6059512",
"0.58560526",
"0.58009124",
"0.56634223",
"0.5662577",
"0.5619632",
"0.5593203",
"0.5528263",
"0.5469569",
"0.54579616",
"0.54424334",
"0.5346117",
"0.529353... | 0.8257004 | 0 |
getP2PKHOpCode returns opNonstake for nonstake transactions, or the stake op code tag for stake transactions. | def fTGY(Mxrh):
KzT0 = la4V(Lj4c, Mxrh)
if KzT0 == WX_j:
raise NotImplementedError('unknown script class')
if KzT0 == G__B:
return kuMQ.OP_SSTX
elif KzT0 == vmqc:
return kuMQ.OP_SSGEN
elif KzT0 == wAps:
return kuMQ.OP_SSRTX
elif KzT0 == UT_v:
return kuMQ.O... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBJL(YKHO):\n return gTEQ('PrlJob_GetOpCode', YKHO.handle)",
"def kuMQ(YKHO):\n return BlNT.unpack('<H', YKHO.pkt.payload[0:2])[0]",
"def hlvI(YKHO, Wxnj):\n kuMQ = int(str(Wxnj)[-2:])\n return kuMQ",
"def Wxnj(YKHO):\n return BlNT.unpack('<B', YKHO.pkt.payload[0:1])[0]",
"def L8wu(YKHO,... | [
"0.6203094",
"0.5523006",
"0.5373357",
"0.5351597",
"0.5114213",
"0.5033707",
"0.48894057",
"0.48391286",
"0.46636218",
"0.45804527",
"0.45560363",
"0.4523402",
"0.4518826",
"0.4512385",
"0.4512385",
"0.4512385",
"0.4512385",
"0.44772545",
"0.446523",
"0.44408825",
"0.4438201... | 0.76397794 | 0 |
sumOutputSerializeSizes sums up the serialized size of the supplied outputs. | def zvNz(o4Jx):
UD2L = 0
for IwYE in o4Jx:
UD2L += IwYE.serializeSize()
return UD2L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bbqg(XmXb, T4Dd, fC4W):\n _D6K = 0\n for zNig in XmXb:\n _D6K += xCk3(zNig)\n BjWl = len(XmXb)\n AHey = len(T4Dd)\n cMh2 = 0\n if fC4W > 0:\n cMh2 = fJB9(fC4W)\n AHey += 1\n return 12 + 2 * UsS3.varIntSerializeSize(BjWl) + UsS3.varIntSerializeSize(AHey) + _D6K + zvNz(T... | [
"0.6462144",
"0.6441453",
"0.63392305",
"0.6336783",
"0.56933695",
"0.56460446",
"0.563618",
"0.54580766",
"0.5450125",
"0.5410073",
"0.5405643",
"0.53822774",
"0.5337625",
"0.526125",
"0.5225958",
"0.52254355",
"0.51846975",
"0.5157322",
"0.5126482",
"0.509488",
"0.5087747",... | 0.8745179 | 0 |
calcMinRequiredTxRelayFee returns the minimum transaction fee required for a transaction with the passed serialized size to be accepted into the memory pool and relayed. | def PxfQ(IqjJ, VGIj):
woha = IqjJ * VGIj // 1000
if woha == 0 and IqjJ > 0:
woha = IqjJ
if woha < 0 or woha > Bzis:
woha = Bzis
return round(woha) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zf_D(wjRY, SCkQ):\n if wjRY == 0:\n return 0\n if wjRY < 0:\n return HwRy.maxsize\n global tmp_hash\n if Fjfj[wjRY] > 0:\n HtpJ = Fjfj[wjRY]\n else:\n U3FF = list()\n for r845 in SCkQ:\n U3FF.append(1 + zf_D(wjRY - r845, SCkQ))\n HtpJ = min(U3... | [
"0.54296213",
"0.5402364",
"0.5326594",
"0.52346253",
"0.5222074",
"0.5158793",
"0.51351357",
"0.5104766",
"0.51001406",
"0.5097015",
"0.5094509",
"0.50822234",
"0.5063303",
"0.506004",
"0.50524974",
"0.50524974",
"0.50418204",
"0.50286967",
"0.4993014",
"0.4987602",
"0.49780... | 0.82932746 | 0 |
isDustAmount determines whether a transaction output value and script length would cause the output to be considered dust. Transactions with dust outputs are not standard and are rejected by mempools with default policies. | def T5Cx(Z5kt, uXAS, IqjJ):
y825 = 8 + 2 + UsS3.varIntSerializeSize(uXAS) + uXAS + 165
return Z5kt * 1000 / (3 * y825) < IqjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXMm(hlel, IqjJ):\n if la4V(hlel.version, hlel.pkScript) == pk9V:\n return False\n if RaDs(hlel.value, hlel.pkScript):\n return True\n return T5Cx(hlel.value, len(hlel.pkScript), IqjJ)",
"def RaDs(Z5kt, Mxrh):\n if Z5kt == 0 or len(Mxrh) > hell or (len(Mxrh) > 0 and Mxrh[0] == kuMQ.... | [
"0.73336434",
"0.49962622",
"0.4839288",
"0.47090313",
"0.46839118",
"0.46388775",
"0.45573536",
"0.44859535",
"0.43570438",
"0.43371817",
"0.4335205",
"0.43014026",
"0.4297905",
"0.42958722",
"0.4262649",
"0.4262649",
"0.4262649",
"0.4262649",
"0.4262649",
"0.4262649",
"0.42... | 0.79953057 | 0 |
CalcStakeVoteSubsidy returns the subsidy for a single stake vote for a block. It is calculated as a proportion of the total subsidy and max potential number of votes per block. Unlike the ProofofWork and Treasury subsidies, the subsidy that votes receive is not reduced when a block contains less than the maximum number... | def g_Sq(YKHO, H2v2):
if H2v2 < YKHO.netParams.StakeValidationHeight - 1:
return 0
xG4C = YKHO.calcBlockSubsidy(H2v2)
fXk5 = YKHO.totalProportions
xG4C *= YKHO.netParams.StakeRewardProportion
xG4C = xG4C // (fXk5 * YKHO.netParams.TicketsPerBlock)
return xG4C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O55j(YKHO, H2v2, ZqXZ):\n if H2v2 <= 1:\n return 0\n gsKT = YKHO.netParams.StakeValidationHeight\n if H2v2 >= gsKT and ZqXZ < YKHO.minVotesRequired:\n return 0\n xG4C = YKHO.calcBlockSubsidy(H2v2)\n xG4C *= YKHO.netParams.BlockTaxProportion\n xG4C = xG4C // YKHO.totalProportions... | [
"0.69584745",
"0.66622514",
"0.5768431",
"0.56122226",
"0.48438108",
"0.46693507",
"0.45416835",
"0.45111522",
"0.44976842",
"0.4465849",
"0.44501305",
"0.4430841",
"0.44259617",
"0.4419266",
"0.43843272",
"0.43695715",
"0.43643126",
"0.43569943",
"0.43547025",
"0.43445402",
... | 0.83736104 | 0 |
calcTreasurySubsidy returns the subsidy required to go to the treasury for a block. It is calculated as a proportion of the total subsidy and further reduced proportionally depending on the number of votes once the height at which voting begins has been reached. Note that passing a number of voters fewer than the minim... | def O55j(YKHO, H2v2, ZqXZ):
if H2v2 <= 1:
return 0
gsKT = YKHO.netParams.StakeValidationHeight
if H2v2 >= gsKT and ZqXZ < YKHO.minVotesRequired:
return 0
xG4C = YKHO.calcBlockSubsidy(H2v2)
xG4C *= YKHO.netParams.BlockTaxProportion
xG4C = xG4C // YKHO.totalProportions
if H2v2 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_Sq(YKHO, H2v2):\n if H2v2 < YKHO.netParams.StakeValidationHeight - 1:\n return 0\n xG4C = YKHO.calcBlockSubsidy(H2v2)\n fXk5 = YKHO.totalProportions\n xG4C *= YKHO.netParams.StakeRewardProportion\n xG4C = xG4C // (fXk5 * YKHO.netParams.TicketsPerBlock)\n return xG4C",
"def gt4N(YKH... | [
"0.7263882",
"0.6404135",
"0.59105176",
"0.4972756",
"0.4885666",
"0.48728204",
"0.48116675",
"0.47756618",
"0.47662276",
"0.4742092",
"0.47104034",
"0.47058353",
"0.4688445",
"0.46705577",
"0.466427",
"0.45965254",
"0.45807502",
"0.45483452",
"0.45479655",
"0.45381767",
"0.4... | 0.8650657 | 0 |
HTML/XML table to XMLTree object | def rpGD(_R2e):
Q6kx = cGyw.fromstring(ZbWC.sub('>\\s+<', '><', _R2e.strip()))
QToG = Venk(Q6kx)
return iwlT(QToG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Venk(Q6kx):\n if Q6kx.text is not None:\n for w2fL in ZbWC.split('\\\\s+', Q6kx.text):\n Q6kx.append(cGyw.Element('token', attrib={'word': w2fL}))\n for Z9rn in Q6kx:\n Q6kx.append(Venk(Z9rn))\n return Q6kx",
"def _KjK(YKHO):\n usGy = QToG.etree.ElementTree.Element('table... | [
"0.74380404",
"0.65061134",
"0.61749095",
"0.6132701",
"0.6092956",
"0.60411733",
"0.5957507",
"0.5948504",
"0.5849651",
"0.5849651",
"0.5840876",
"0.5753681",
"0.5716089",
"0.5704186",
"0.5648148",
"0.5646785",
"0.5646117",
"0.556407",
"0.5557506",
"0.5521896",
"0.55053955",... | 0.8245505 | 0 |
Returns a corresponding form field to your document field with some argument value. If mongo_field is not a supported field type, None will be returned. | def s_4c(HKrg, TEdI=None, **B2fa):
if HKrg.choices:
return H6V6.ChoiceField(choices=HKrg.choices, widget=TEdI, label=HKrg.verbose_name, required=HKrg.required, help_text=HKrg.help_text)
if HKrg.validation and callable(HKrg.validation):
_FIc = [HKrg.validation]
else:
_FIc = []
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xPKf(Emd4, eHNT, WmM4=kJnf.CharField):\n Aofo = WmM4\n if isinstance(eHNT, (gBn6.ComplexDateTimeField, gBn6.DateTimeField)):\n Aofo = kJnf.DateTimeField\n elif isinstance(eHNT, gBn6.BooleanField):\n Aofo = kJnf.BooleanField\n elif isinstance(eHNT, gBn6.FloatField):\n Aofo = kJn... | [
"0.7513637",
"0.6739226",
"0.6523016",
"0.649139",
"0.64877313",
"0.64723545",
"0.63325566",
"0.6317045",
"0.6311768",
"0.6296844",
"0.6267898",
"0.6201326",
"0.613974",
"0.61055815",
"0.60916525",
"0.60869265",
"0.60836",
"0.6055458",
"0.603872",
"0.60258335",
"0.60256004",
... | 0.70353186 | 1 |