query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew: int) -> int:
if H5ew < YKHO.len:
return YKHO._map[H5ew]
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew not in YKHO.map:\n return -1\n return YKHO.map[H5ew]",
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap.keys():\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n lWrn = H5ew % 37\n ... | [
"0.800388",
"0.79098475",
"0.762993",
"0.75650334",
"0.7556994",
"0.7529803",
"0.7493149",
"0.73738897",
"0.7294419",
"0.72940016",
"0.72216845",
"0.72175443",
"0.7181078",
"0.71774393",
"0.71633786",
"0.6980779",
"0.69289523",
"0.67850846",
"0.6757027",
"0.6734023",
"0.66126... | 0.75259614 | 6 |
Provisioning status of the origin group. | def mX_9(YKHO) -> str:
return qe4Y.get(YKHO, 'provisioning_state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')",
"def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')",
"def mX_9(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'provisioning_state')",
"def mX_9(YKHO) -> qe4Y.Output[str]:\n retu... | [
"0.64781475",
"0.64781475",
"0.64781475",
"0.64781475",
"0.64781475",
"0.64781475",
"0.64781475",
"0.64781475",
"0.64781475",
"0.64781475",
"0.64781475",
"0.64781475",
"0.64781475",
"0.6211141",
"0.6211141",
"0.6211141",
"0.6211141",
"0.6211141",
"0.60596436",
"0.60596436",
"... | 0.64656705 | 36 |
Return string in format "_". If attachment has "access_key" fields it will be properly appended. | def LJT_(YKHO) -> str:
rPXJ = '{}{}_{}'
if YKHO.access_key:
rPXJ = '{}{}_{}_' + YKHO.access_key
return rPXJ.format(YKHO.type, YKHO.owner_id, YKHO.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yl0O(YKHO, G1Hx: str) -> str:\n if G1Hx[0] == '.':\n G1Hx = G1Hx[1:]\n G1Hx = G1Hx.replace('.', '_')\n G1Hx = G1Hx.upper()\n G1Hx = ZbWC.sub(YKHO.KEY_REGEX, '', G1Hx)\n return G1Hx",
"def H2yQ(YKHO, H5ew):\n H5ew = H5ew.strip().strip('@').lower()\n if YKHO.homogenise_fields:\n ... | [
"0.601121",
"0.5992594",
"0.5980442",
"0.58966154",
"0.58067435",
"0.57335025",
"0.57258004",
"0.5689883",
"0.5681948",
"0.56528604",
"0.56083816",
"0.55849546",
"0.55333155",
"0.5518894",
"0.5518894",
"0.54825556",
"0.5474323",
"0.5472895",
"0.5461718",
"0.54522395",
"0.5440... | 0.4954808 | 81 |
Transform X using onehot encoding. | def SZFh(YKHO, EcVT):
EcVT = SOCJ(EcVT, accept_sparse='csc', dtype=oyIN.object, copy=True)
cDK5, ROaS = EcVT.shape
Cuts = oyIN.zeros_like(EcVT, dtype=oyIN.int)
w_E5 = oyIN.ones_like(EcVT, dtype=oyIN.bool)
for YRbF in range(ROaS):
BmEm = oyIN.in1d(EcVT[:, YRbF], YKHO.categories_[YRbF])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGX0(WKvO):\n Ae2G = ZvG6.LabelBinarizer()\n Ae2G.fit([0, 1, 2, 3, 4, 5, 6, 7, 8, 9])\n return Ae2G.transform(WKvO)",
"def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel",
"def zGX0(WKvO):\n SxSJ = list(... | [
"0.8219971",
"0.81998163",
"0.8187003",
"0.80171347",
"0.80086917",
"0.7953275",
"0.7925757",
"0.7909148",
"0.7731275",
"0.764463",
"0.76382214",
"0.7606447",
"0.75770795",
"0.7576713",
"0.7539266",
"0.75064456",
"0.75040966",
"0.74916536",
"0.7488146",
"0.7440699",
"0.742351... | 0.0 | -1 |
returns one string for each "+", followed by a list of strings when a trailing "" is present | def lsCX(mXDZ, rlUa):
UrFg = iter(mXDZ.split('/'))
bhp4 = iter(rlUa.split('/'))
while True:
try:
xZus = next(UrFg)
except StopIteration:
try:
TIp5 = next(bhp4)
raise Exception('The topic to be matched is longer than the pattern without ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dgEy(Ls9A: str):\n Aofo = ''\n UbEW = ['(', '|', None]\n kWxX = ['*', '+', ')', '|']\n zdR_ = None\n for hcXw in Ls9A:\n if hcXw not in kWxX and zdR_ not in UbEW:\n Aofo += '.'\n Aofo += hcXw\n zdR_ = hcXw\n return Aofo",
"def GqSC(IeSo):\n if IeSo == []:\... | [
"0.6251761",
"0.61776274",
"0.6086631",
"0.60642487",
"0.5914317",
"0.5893167",
"0.584809",
"0.58134824",
"0.57906926",
"0.5787478",
"0.578389",
"0.5666463",
"0.5656535",
"0.56516045",
"0.5649417",
"0.5640997",
"0.5622021",
"0.557132",
"0.55478626",
"0.55410564",
"0.5533461",... | 0.0 | -1 |
dtypeaware variant of numpy.testing.assert_allclose This variant introspects the least precise floating point dtype in the input argument and automatically sets the relative tolerance parameter to 1e4 float32 and use 1e7 otherwise (typically float64 in scikitlearn). `atol` is always left to 0. by default. It should be ... | def eYzO(n5sN, yRKV, LL2J=None, rU28=0.0, Pexq=True, YXxD='', PJWX=True):
m1c7 = []
n5sN, yRKV = (oyIN.asanyarray(n5sN), oyIN.asanyarray(yRKV))
m1c7 = [n5sN.dtype, yRKV.dtype]
if LL2J is None:
tMK9 = [0.0001 if yDqo == oyIN.float32 else 1e-07 for yDqo in m1c7]
LL2J = max(tMK9)
RkN2(n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eNlD(n5sN, yRKV, LL2J=1e-07, rU28=0):\n if n5sN.dtype.kind == 'O':\n yDqo = oyIN.array(n5sN.flat[0]).dtype\n n5sN, yRKV = (n5sN.astype(yDqo), yRKV.astype(yDqo))\n eYzO(n5sN, yRKV, LL2J, rU28)",
"def eYzO(n5sN, yRKV, LL2J=1e-07, rU28=0, YXxD='', PJWX=True):\n from numpy.testing.utils im... | [
"0.77832764",
"0.7216723",
"0.6794316",
"0.67372864",
"0.6672169",
"0.6622535",
"0.643778",
"0.6433592",
"0.6411333",
"0.63372993",
"0.6278972",
"0.61899114",
"0.61448026",
"0.6136797",
"0.6043122",
"0.59772116",
"0.59683317",
"0.59271544",
"0.5925225",
"0.5923132",
"0.589800... | 0.7752753 | 1 |
Convert a given container to a specific arraylike with a dtype. | def YXnE(zGKt, A3qz, A7Qc=None, yDqo=None, M2zl=None):
if A3qz == 'list':
if yDqo is None:
return list(zGKt)
else:
return oyIN.asarray(zGKt, dtype=yDqo).tolist()
elif A3qz == 'tuple':
if yDqo is None:
return tuple(zGKt)
else:
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CVhi(YKHO, yDqo):\n Ylbp = []\n if YKHO is not R1ka:\n for jzdc in YKHO.Arrays:\n if jzdc is R1ka:\n Ylbp.append(R1ka)\n else:\n Ylbp.append(jzdc.astype(yDqo))\n return X9bI(Ylbp, dataset=YKHO.DataSet, association=YKHO.Association)",
"def Lz... | [
"0.6569977",
"0.61873806",
"0.6150881",
"0.61135584",
"0.6084547",
"0.60752517",
"0.6071889",
"0.6067872",
"0.6049874",
"0.60412914",
"0.59836036",
"0.596474",
"0.594815",
"0.59291434",
"0.59253794",
"0.5924668",
"0.5914558",
"0.59038544",
"0.5844783",
"0.5831471",
"0.5814225... | 0.6198965 | 1 |
Returns a function that is itself a higherorder function. | def n2fR(Dyub, EmyI, IxvY):
def DpyC(exwG):
def RcQu(WKvO):
if exwG >= 1:
WKvO = Dyub(WKvO)
if exwG >= 2:
WKvO = EmyI(WKvO)
if exwG >= 3:
WKvO = IxvY(WKvO)
if exwG > 3:
return DpyC(exwG - 3)(WKv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SOJD(JfyU: Callable) -> YrBT:\n return lambda eHNT: eAbp(JfyU, eHNT)",
"def xSXf(eHNT):\n return lambda WKvO: lambda LVAh: eHNT(WKvO, LVAh)",
"def TLv5():\n return lambda eHNT: lambda WKvO: eHNT(eHNT(WKvO))",
"def a0GJ():\n return lambda eHNT: lambda WKvO: eHNT(WKvO)",
"def BRRQ(eHNT: Calla... | [
"0.6576693",
"0.63378894",
"0.6233256",
"0.6153265",
"0.6129069",
"0.6070844",
"0.6052302",
"0.6001915",
"0.5964916",
"0.594681",
"0.58936214",
"0.58842826",
"0.57823807",
"0.57667005",
"0.56814593",
"0.56791604",
"0.5664517",
"0.5645075",
"0.55790377",
"0.5564775",
"0.548919... | 0.0 | -1 |
Returns True if n is a prime number and False otherwise. >>> is_prime(2) True >>> is_prime(16) False >>> is_prime(521) True | def T1qg(exwG):
WKvO = 2
def Sk01(WKvO):
if WKvO > round(pow(exwG, 0.5)):
return True
elif exwG % WKvO == 0:
return False
else:
return Sk01(WKvO + 1)
return Sk01(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNJ(exwG: int) -> bool:\n if exwG > 1:\n for YRbF in range(2, int(exwG / 2) + 1):\n if exwG % YRbF == 0:\n return False\n else:\n return True\n else:\n return False",
"def JVAb(Emd4, exwG):\n if exwG <= 1:\n return False\n if exwG ... | [
"0.83589226",
"0.834986",
"0.8314097",
"0.8293446",
"0.82890725",
"0.8277064",
"0.82589996",
"0.8252419",
"0.8244945",
"0.82420766",
"0.8232813",
"0.8216686",
"0.81842816",
"0.817332",
"0.8130635",
"0.8117115",
"0.81070226",
"0.8102639",
"0.80844885",
"0.8077988",
"0.8076873"... | 0.769177 | 59 |
Return the number of tenpairs within positive integer n. >>> ten_pairs(7823952) 3 >>> ten_pairs(55055) 6 >>> ten_pairs(9641469) 6 | def m4oV(exwG):
def ewCu(WKvO, exwG):
if exwG == 0:
return 0
elif WKvO == exwG % 10:
return 1 + ewCu(WKvO, exwG // 10)
else:
return ewCu(WKvO, exwG // 10)
def UYnw(G1Hx):
if G1Hx == 5:
return round(ewCu(G1Hx, exwG) * (ewCu(G1Hx, e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m4oV(exwG):\n\n def IZk_(mLGw, YRbF):\n if mLGw < 10:\n return 1 if mLGw == YRbF else 0\n elif mLGw % 10 == YRbF:\n return 1 + IZk_(mLGw // 10, YRbF)\n else:\n return IZk_(mLGw // 10, YRbF)\n\n def h1TN(mLGw):\n if mLGw <= 0:\n retur... | [
"0.79464",
"0.7579056",
"0.66567963",
"0.65444773",
"0.6310897",
"0.6175135",
"0.6159747",
"0.6158203",
"0.6155827",
"0.6029832",
"0.59624743",
"0.59334177",
"0.58463377",
"0.58436567",
"0.5838836",
"0.58342487",
"0.5808244",
"0.5791592",
"0.5760908",
"0.5753911",
"0.56947964... | 0.80242497 | 0 |
Get URL version of URI. is always activated since URL is readonly. URIs on cloud buckets can be converted to presigned URLs. Local path URI can also be converted to a URL. | def hKhs(YKHO):
return YKHO.get_file(uri_type=tRPw, no_copy=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKhs(YKHO, j8eK):\n return uRlK.parse.urljoin(YKHO.hostname, j8eK)",
"def zFcP(YKHO):\n return YKHO.url",
"def lfLI(pmON):\n iquo = 'https' if gCuF.USE_HTTPS else 'http'\n zrIJ = HAC5.objects.get_current().domain\n return '{}://{}{}'.format(iquo, zrIJ, pmON)",
"def D3T3(YKHO):\n return ... | [
"0.6869486",
"0.66566515",
"0.66456234",
"0.6548765",
"0.63195515",
"0.6311959",
"0.6263784",
"0.62445486",
"0.6209761",
"0.62056875",
"0.61738807",
"0.61730576",
"0.61724585",
"0.61674076",
"0.6112843",
"0.6101857",
"0.61015904",
"0.609824",
"0.609263",
"0.606307",
"0.604491... | 0.67116094 | 1 |
Set columns and rows as zeros in a 2D array. | def xYpU(OyYO):
ZLJ_ = []
usx6 = []
for rdlD, M3M4 in enumerate(OyYO):
GfdN = [iVRZ for iVRZ, kd2z in enumerate(M3M4) if kd2z == 0]
if GfdN:
ZLJ_.extend(GfdN)
usx6.append(rdlD)
for rdlD in OyYO:
for iVRZ in ZLJ_:
rdlD[iVRZ] = 0
for rdlD in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y1Us(YKHO, SppC) -> None:\n if not SppC:\n return\n MKlR, yzQ0 = (len(SppC), len(SppC[0]))\n nlpD = False\n for YRbF in range(MKlR):\n if SppC[YRbF][0] == 0:\n nlpD = True\n for r845 in range(1, yzQ0):\n if SppC[YRbF][r845] == 0:\n SppC[0][r... | [
"0.74898076",
"0.7449223",
"0.7444616",
"0.7428816",
"0.74253553",
"0.7416765",
"0.74102473",
"0.73864466",
"0.7383826",
"0.7371137",
"0.73677963",
"0.73417467",
"0.7303975",
"0.7266936",
"0.72544247",
"0.72466135",
"0.7214006",
"0.72122943",
"0.71970767",
"0.7174618",
"0.716... | 0.69712514 | 38 |
Set precision for Decimal number operations and return previous precision value. | def TAsL(eRdl=None):
QpfX = SOnQ.getcontext()
Syw6 = QpfX.prec
if eRdl is not None:
QpfX.prec = eRdl
return Syw6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYtw(YKHO, rhd_):\n YKHO.__precision = YKHO.parent().action().filter(rhd_)",
"def oYtw(YKHO, rhd_):\n YKHO.__precision = YKHO.parent().monoid().filter(rhd_)",
"def aBlt(YKHO, rhd_):\n if rhd_ <= 0:\n print('Precision must be positive')\n else:\n YKHO.precision = rhd_\n YKHO... | [
"0.7551775",
"0.73985076",
"0.7223718",
"0.72050005",
"0.7052748",
"0.7034678",
"0.70021915",
"0.70021915",
"0.697628",
"0.6956528",
"0.69377047",
"0.6903805",
"0.677108",
"0.677108",
"0.6732852",
"0.6615876",
"0.66121644",
"0.6564906",
"0.6557831",
"0.6510031",
"0.6469269",
... | 0.81375986 | 0 |
Return 1,0,1 if the object is smaller, equal, or greater than other (not always in mathematical sense). If the object is of different type from other then their classes are ordered according to sorted_classes list. | def qk7K(YKHO, Elif):
if YKHO is Elif:
return 0
Z9rn = eHkp(YKHO.__class__, Elif.__class__)
if Z9rn:
return Z9rn
aevO = YKHO._hashable_content()
M_pm = Elif._hashable_content()
Z9rn = eHkp(len(aevO), len(M_pm))
if Z9rn:
return Z9rn
jcWa = YKHO.__class__.Basic
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qk7K(YKHO, Elif):\n if YKHO is Elif:\n return 0\n MxXY = YKHO.__class__\n cWFu = Elif.__class__\n Z9rn = jyan(MxXY, cWFu)\n if Z9rn:\n return Z9rn\n aevO = YKHO._hashable_content()\n M_pm = Elif._hashable_content()\n Z9rn = (len(aevO) > len(M_pm)) - (len(aevO) < len(M_pm))... | [
"0.6408841",
"0.63635767",
"0.63318133",
"0.62984914",
"0.6243454",
"0.62407756",
"0.6223615",
"0.6158124",
"0.60770106",
"0.6067739",
"0.6065404",
"0.6055721",
"0.60147506",
"0.60086536",
"0.6005923",
"0.59957886",
"0.5988989",
"0.5971055",
"0.59683406",
"0.59669715",
"0.596... | 0.62705976 | 4 |
Add trains to a given platform object from a given platform tree. | def ue1T(b3QH, rEEr, RS9Z):
for GLL0 in rEEr.iter('{http://trackernet.lul.co.uk}T'):
AdLZ = GLL0.get('LCID')
p3yt = GLL0.get('SetNo')
y5aS = GLL0.get('TripNo')
jICa = int(GLL0.get('SecondsTo'))
Rci7 = GLL0.get('Location')
yFgu = GLL0.get('Destination')
zH6l = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TZ0I(YKHO, a9EH: KetraPlatformBase):\n YKHO.platforms.append(a9EH)",
"def LcDV(yHrS, uLEs, RS9Z):\n for rEEr in uLEs.iter('{http://trackernet.lul.co.uk}P'):\n mWFP = rEEr.get('N')\n FGW3 = rEEr.get('Num')\n WnmO = rEEr.get('TrackCode')\n b3QH = yHrS.addPlatform(FGW3, mWFP, W... | [
"0.68632346",
"0.5942993",
"0.5712395",
"0.56471145",
"0.5149665",
"0.5062592",
"0.50463736",
"0.49979433",
"0.49832192",
"0.48066327",
"0.48063007",
"0.47350553",
"0.4696873",
"0.46723402",
"0.4664614",
"0.46636504",
"0.46581462",
"0.46474063",
"0.4639339",
"0.46361893",
"0.... | 0.6055445 | 1 |
return a list of arrays so that each array has a maxlength of max_len and as many earlier sublists as possible have length max_len and the last one has the remaining content (tail) of L and np.concatenate(the return value) is L | def TsU8(ezWE, wzH_=44100):
return oyIN.split(ezWE, oyIN.arange(wzH_, len(ezWE), wzH_)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SgjK(Q6uT, THkp, fviS) -> list:\n jzdc = []\n while fviS != -1:\n jzdc.append(Q6uT[fviS])\n fviS = THkp[fviS]\n jzdc.reverse()\n return jzdc",
"def wMk8(qw7D, wzH_=2000):\n fcPI = []\n for WKvO in range(0, len(qw7D), wzH_):\n lpha = qw7D[WKvO:WKvO + wzH_]\n if le... | [
"0.6897349",
"0.65989584",
"0.6263467",
"0.6041981",
"0.5872584",
"0.5829015",
"0.57620275",
"0.5758574",
"0.57255185",
"0.57189834",
"0.5623612",
"0.5573832",
"0.55627006",
"0.5558145",
"0.5554015",
"0.5537631",
"0.5536698",
"0.5534564",
"0.5533743",
"0.5488414",
"0.5481954"... | 0.6923737 | 0 |
Excludes any questions that aren't published yet. | def k66M(YKHO):
return Y4Gy.objects.filter(pub_date__lte=rIAI.now()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n WlEx = Y4Gy.objects.filter(pub_date__lte=rIAI.now()).order_by('-pub_date')\n j28w = []\n for bAls in WlEx:\n if not bAls.choice_set.all().exists():\n j28w.append(bAls.id)\n return Y4Gy.objects.exclude(pk__in=j28w).filter(pub_date__lte=rIAI.now()).order_by('-pub_date'... | [
"0.66057587",
"0.6447535",
"0.6222388",
"0.6170101",
"0.6170101",
"0.6101224",
"0.6100283",
"0.6083196",
"0.6055842",
"0.60525465",
"0.5971601",
"0.5893893",
"0.5893893",
"0.5890032",
"0.5882812",
"0.58696455",
"0.58696455",
"0.58696455",
"0.58696455",
"0.58689994",
"0.585721... | 0.62109476 | 16 |
Should return status 201. | def mj6z(t2Ap: Any) -> None:
bD7m = f'{t2Ap}/start'
with open('tests/files/G11KvartStart.json') as wM3v:
nPrm = qQXR.load(wM3v)
MOPg = {'content-type': 'application/json; charset=utf-8'}
geh0 = G4JS.post(bD7m, headers=MOPg, json=nPrm)
assert geh0.status_code == 201 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pWed(YKHO, TBsA):\n return YKHO.create_response(201, 'Created', TBsA)",
"def m8z6(YKHO, QePW, *qIxc, **B2fa):\n geh0 = super().post(QePW, *qIxc, **B2fa)\n geh0.status_code = jGRS.HTTP_201_CREATED\n return geh0",
"def wmBr(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 201)",
"def... | [
"0.76533127",
"0.76511204",
"0.75510144",
"0.7464336",
"0.72224194",
"0.7132459",
"0.7100688",
"0.67412347",
"0.67198664",
"0.66333616",
"0.65841836",
"0.65819937",
"0.6568218",
"0.6549674",
"0.6549674",
"0.6538043",
"0.65112066",
"0.6479552",
"0.6461541",
"0.6418576",
"0.635... | 0.0 | -1 |
just ignore the transformer and return a random df of strings | def SZFh(EcVT, d1bu, LVAh=None):
return rLdf.DataFrame([tWYk() for WKvO in range(len(EcVT))]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7bk():\n A6_I = 1000000\n JQ8V = {0: 'Female', 1: 'Male'}\n FMYt = [j9F_.randstr(16) for rdlD in range(A6_I)]\n iEXf = [tuKI.randint(1, 100) for rdlD in range(A6_I)]\n RYkk = [JQ8V[rdlD % 2] for rdlD in range(A6_I)]\n tyNF = CwDs.DataFrame({'Name': FMYt, 'Age': iEXf, 'Gender': RYkk})\n ty... | [
"0.63359356",
"0.60732955",
"0.588697",
"0.58770263",
"0.5726989",
"0.5726989",
"0.57029647",
"0.5641231",
"0.56273395",
"0.5553163",
"0.54869944",
"0.5457556",
"0.54571825",
"0.54100806",
"0.5395605",
"0.5392028",
"0.5391058",
"0.53723717",
"0.530884",
"0.5305257",
"0.530470... | 0.7522376 | 0 |
Create a new album. Optional parameter of ids is an array of image ids to add to the album; you have to be logged in as the user for adding the image ids. This method is available without authenticating an account, and may be used | def ZRzm(x0hE, qIxc):
V_D6 = i9s9(qIxc, x0hE.allowed_album_fields)
wphz = x0hE.create_album(V_D6)
Qwwm({'album': wphz}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mcyu(YKHO, leAC=None, JBZA=None, Yw_3=None, SkWX=None):\n bD7m = 'https://api.imgur.com/3/album/'\n pB3N = {'ids': Yw_3, 'title': leAC, 'description': JBZA, 'cover': SkWX}\n _hkX = YKHO._send_request(bD7m, params=pB3N, method='POST')\n return ZGCE(_hkX, YKHO, has_fetched=False)",
"def gDrg(x0hE, ... | [
"0.71060133",
"0.6729655",
"0.65858775",
"0.6583446",
"0.6227867",
"0.6013501",
"0.5950661",
"0.5696025",
"0.5508621",
"0.5228729",
"0.5165092",
"0.5118961",
"0.5063792",
"0.49938264",
"0.49716452",
"0.4949737",
"0.49016353",
"0.4880397",
"0.48460948",
"0.48458472",
"0.480997... | 0.65685374 | 4 |
Get the comment with all of the replies for the comment | def yOx9(x0hE, qIxc):
_G_z = x0hE.get_comment_replies(qIxc.comment_id)
nPrm = K0c0(_G_z)
Qwwm({'comment_replies': nPrm}, qIxc.output_file) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxPs(YKHO):\n sjXb = {}\n Tj1O = YKHO.comments.order('-score').fetch(1000)\n for aM_I in Tj1O:\n sjXb[str(aM_I.key())] = aM_I\n aM_I.replies = []\n for aM_I in Tj1O:\n PUAf = jY1u.reply_to.get_value_for_datastore(aM_I)\n _AKB = sjXb.get(str(PUAf))\n if _AKB:\n ... | [
"0.80614966",
"0.79362017",
"0.7154024",
"0.70583296",
"0.68521935",
"0.68225664",
"0.6727376",
"0.6722152",
"0.67106235",
"0.65210116",
"0.6505564",
"0.6502786",
"0.64655274",
"0.63230026",
"0.63086355",
"0.62354404",
"0.61569613",
"0.61479384",
"0.6112512",
"0.6085547",
"0.... | 0.77197665 | 2 |
Create a reply for the given comment | def d7o9(x0hE, qIxc):
lcy9 = x0hE.post_comment_reply(qIxc.comment_id, qIxc.image_id, qIxc.comment)
Qwwm({'comment_reply': lcy9}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def create_reply(*, aM_I: models.Comment=JHvC(fEkw), YcsS: CreateComment, c5ow: models.User=JHvC(LHxs), NCls: Session=JHvC(GGod)):\n return UXsa.create_comment(NCls, author_id=c5ow.id, parent_resub_id=aM_I.parent_resub_id, parent_post_id=aM_I.parent_post_id, parent_comment_id=aM_I.id, content=YcsS.content... | [
"0.85108405",
"0.77590686",
"0.70710206",
"0.69517535",
"0.69128376",
"0.6906068",
"0.68195975",
"0.6809562",
"0.6682857",
"0.6673473",
"0.6651297",
"0.6565192",
"0.65049386",
"0.6492582",
"0.64875966",
"0.6450746",
"0.64480036",
"0.6404118",
"0.6372667",
"0.63615",
"0.633491... | 0.71514606 | 2 |
x = np.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]]) pad = [0, 0, 0, 0, 0, 0, 1, 1, 0, 0] mode = "constant" value = 0 | def Pb_7():
WKvO = oyIN.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]])
hVLt = [0, 0, 0, 0, 0, 0, 1, 1, 0, 0]
Tuqy = 'constant'
BWXx = 0
Ylbp = oyIN.array([[[[[0.0, 0.0, 0.0], [1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [0.0, 0.0, 0.0]]]]])
YEnM.run(res=Ylbp, x=WKvO, pad=hVLt, mode=Tuqy, value=BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iqCu():\n WKvO = oyIN.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]])\n hVLt = [0, 0, 1, 1, 0, 0]\n Tuqy = 'constant'\n BWXx = 0\n wH3T = 'NCDHW'\n Ylbp = oyIN.array([[[[[0.0, 0.0, 0.0], [1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [0.0, 0.0, 0.0]]]]])\n YEnM.run(res=Ylbp, x=WKvO, pad=hVLt, mode=Tuqy... | [
"0.6698328",
"0.66958964",
"0.6690412",
"0.65119356",
"0.6278268",
"0.6272346",
"0.61976653",
"0.61386716",
"0.60923636",
"0.6091921",
"0.6073236",
"0.60632783",
"0.6052736",
"0.6032814",
"0.60286623",
"0.59842104",
"0.59614986",
"0.59614986",
"0.59589773",
"0.5951221",
"0.59... | 0.70277035 | 0 |
x = np.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]]) pad = (0, 1, 1, 1, 2, 0) mode = "constant" value = 0 data_format = "NCDHW" | def UHq1():
WKvO = oyIN.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]])
hVLt = (0, 1, 1, 1, 2, 0)
Tuqy = 'constant'
BWXx = 0
wH3T = 'NCDHW'
Ylbp = oyIN.array([[[[[0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0]], [[0.0, 0.0, 0.0, 0.0], [0.0, 0.0, 0.0, 0.0], ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pb_7():\n WKvO = oyIN.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]])\n hVLt = [0, 0, 0, 0, 0, 0, 1, 1, 0, 0]\n Tuqy = 'constant'\n BWXx = 0\n Ylbp = oyIN.array([[[[[0.0, 0.0, 0.0], [1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [0.0, 0.0, 0.0]]]]])\n YEnM.run(res=Ylbp, x=WKvO, pad=hVLt, mode=Tuqy, value=... | [
"0.7623521",
"0.71405995",
"0.7011633",
"0.68526816",
"0.6786315",
"0.6657954",
"0.6650885",
"0.6516278",
"0.645092",
"0.62391603",
"0.61919445",
"0.61528045",
"0.6142095",
"0.6119765",
"0.61167043",
"0.6115934",
"0.61052406",
"0.6091794",
"0.60748076",
"0.60581493",
"0.60545... | 0.73220307 | 1 |
x = np.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]]) pad = [0, 0, 1, 1, 0, 0] mode = "constant" value = 0 data_format = "NCDHW" | def iqCu():
WKvO = oyIN.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]])
hVLt = [0, 0, 1, 1, 0, 0]
Tuqy = 'constant'
BWXx = 0
wH3T = 'NCDHW'
Ylbp = oyIN.array([[[[[0.0, 0.0, 0.0], [1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [0.0, 0.0, 0.0]]]]])
YEnM.run(res=Ylbp, x=WKvO, pad=hVLt, mode=Tuqy, value=BWXx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pb_7():\n WKvO = oyIN.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]])\n hVLt = [0, 0, 0, 0, 0, 0, 1, 1, 0, 0]\n Tuqy = 'constant'\n BWXx = 0\n Ylbp = oyIN.array([[[[[0.0, 0.0, 0.0], [1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [0.0, 0.0, 0.0]]]]])\n YEnM.run(res=Ylbp, x=WKvO, pad=hVLt, mode=Tuqy, value=... | [
"0.74623936",
"0.7157762",
"0.6833125",
"0.67360485",
"0.6633727",
"0.65201956",
"0.65062326",
"0.6383284",
"0.6315743",
"0.61346817",
"0.60859257",
"0.6050707",
"0.60170645",
"0.6015586",
"0.6012826",
"0.6012826",
"0.60085744",
"0.5994829",
"0.596389",
"0.59563076",
"0.59432... | 0.69549215 | 2 |
x = np.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]]) pad = (2, 1, 3, 0, 2, 0) mode = "replicate" data_format = "NDHWC" | def iZMo():
WKvO = oyIN.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]])
hVLt = (2, 1, 3, 0, 2, 0)
Tuqy = 'replicate'
wH3T = 'NDHWC'
Ylbp = oyIN.array([[[[[1.0, 2.0, 3.0], [1.0, 2.0, 3.0], [1.0, 2.0, 3.0], [4.0, 5.0, 6.0], [4.0, 5.0, 6.0]], [[1.0, 2.0, 3.0], [1.0, 2.0, 3.0], [1.0, 2.0, 3.0], [4.0, 5.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cdf1():\n GhuM = (1, 2, 3)\n hVLt = [1, 2]\n Tuqy = 'replicate'\n Ylbp = [[[1, 1, 2, 3, 3, 3], [4, 4, 5, 6, 6, 6]]]\n nPrm = oyIN.arange(oyIN.prod(GhuM)).reshape(GhuM) + 1\n YEnM.base(res=Ylbp, padding=hVLt, mode=Tuqy, data=nPrm, data_format='NCL')",
"def L3pj():\n GhuM = (1, 2, 3)\n ... | [
"0.7327433",
"0.72835165",
"0.72708315",
"0.7149601",
"0.7104649",
"0.70132464",
"0.7001106",
"0.6986501",
"0.69471544",
"0.68403816",
"0.67669135",
"0.67362154",
"0.6720227",
"0.66746354",
"0.6665593",
"0.6640587",
"0.66361946",
"0.658165",
"0.6556689",
"0.65506375",
"0.6543... | 0.77382594 | 0 |
x = np.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]]) pad = (2, 2, 1, 1, 0, 0) mode = "reflect" data_format = "NCDHW" | def APOn():
WKvO = oyIN.array([[[[[1.0, 2.0, 3.0], [4.0, 5.0, 6.0]]]]])
hVLt = (2, 2, 1, 1, 0, 0)
Tuqy = 'reflect'
wH3T = 'NCDHW'
Ylbp = oyIN.array([[[[[6.0, 5.0, 4.0, 5.0, 6.0, 5.0, 4.0], [3.0, 2.0, 1.0, 2.0, 3.0, 2.0, 1.0], [6.0, 5.0, 4.0, 5.0, 6.0, 5.0, 4.0], [3.0, 2.0, 1.0, 2.0, 3.0, 2.0, 1.0]]]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bESk():\n GhuM = (1, 2, 3)\n hVLt = [1, 2]\n Tuqy = 'reflect'\n Ylbp = [[[2, 1, 2, 3, 2, 1], [5, 4, 5, 6, 5, 4]]]\n nPrm = oyIN.arange(oyIN.prod(GhuM)).reshape(GhuM) + 1\n YEnM.run(res=Ylbp, padding=hVLt, mode=Tuqy, data=nPrm, data_format='NCL')",
"def Pb_7():\n WKvO = oyIN.array([[[[[1.... | [
"0.68910044",
"0.6837027",
"0.6824683",
"0.67878646",
"0.669256",
"0.6686706",
"0.66790485",
"0.6668692",
"0.6646214",
"0.6614676",
"0.6499914",
"0.6456223",
"0.64117163",
"0.639324",
"0.63833404",
"0.62231374",
"0.6190965",
"0.61640817",
"0.61539394",
"0.6135249",
"0.6085471... | 0.73705363 | 0 |
x = np.array([[1, 3], [3, 1]]) pad = [1, 1, 2, 3] mode = "constant" value = Tensor(2.0) data_format = "NCHW" | def QwJB():
CbyH.disable_static()
WKvO = oyIN.array([[[[1.0, 3.0], [-3.0, 1.0]]]])
hVLt = [1, 1, 1, 2]
Tuqy = 'constant'
BWXx = oyIN.array(2.0)
wH3T = 'NCHW'
Ylbp = oyIN.array([[[[2.0, 2.0, 2.0, 2.0], [2.0, 1.0, 3.0, 2.0], [2.0, -3.0, 1.0, 2.0], [2.0, 2.0, 2.0, 2.0], [2.0, 2.0, 2.0, 2.0]]]])... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e4Gj():\n WKvO = _T_T('float', -10, 10, [3, 2, 1, 2])\n hVLt = [1, 1, 2, 3]\n Tuqy = 'constant'\n BWXx = 2.0\n wH3T = 'NCHW'\n Ylbp = oyIN.array([[[[2.0, 2.0, 2.0, 2.0], [2.0, 2.0, 2.0, 2.0], [2.0, -8.88523461, 1.99072967, 2.0], [2.0, 2.0, 2.0, 2.0], [2.0, 2.0, 2.0, 2.0], [2.0, 2.0, 2.0, 2.0]... | [
"0.7084172",
"0.7037379",
"0.70100534",
"0.68440944",
"0.67859715",
"0.6725408",
"0.6699503",
"0.66414475",
"0.66107965",
"0.64776206",
"0.6404393",
"0.6342569",
"0.6274884",
"0.6268529",
"0.6268461",
"0.6266077",
"0.6243942",
"0.62393004",
"0.62374854",
"0.6211512",
"0.61827... | 0.6970348 | 3 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(KndY))
QrM1.xticks(wIWT, KndY, rotation=45)
QrM1.yticks(wIWT, KndY)
if NkkI:
Bcwd = Bcwd.astype... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.791787... | 0.78436774 | 55 |
The stone parity value is based on the players' immediate score after a specific move. | def jjJx(YKHO, iBIi):
TJoj = sum(sum(iBIi == YKHO.computer_num))
qhbw = sum(sum(iBIi == YKHO.opponent_num))
return 100 * (TJoj - qhbw) / (TJoj + qhbw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pe_Y(YKHO, iBIi):\n IayW = YKHO.game.find_valid_moves(YKHO.computer_color, iBIi, YKHO.board_size)\n usx6, ZLJ_ = oyIN.where(IayW == 1)\n jykE = -200\n Rci7 = (-2, -2)\n for YRbF in range(len(usx6)):\n hOOF = oyIN.copy(iBIi)\n hOOF = YKHO.game.flip_opponent_stones((usx6[YRbF], ZLJ_[... | [
"0.7013714",
"0.62829936",
"0.615159",
"0.605926",
"0.60563177",
"0.6048984",
"0.60476047",
"0.5961625",
"0.5891619",
"0.5807195",
"0.5801265",
"0.5799314",
"0.5780686",
"0.5770093",
"0.5709785",
"0.56669337",
"0.5665021",
"0.5647279",
"0.56365454",
"0.5602205",
"0.55976766",... | 0.7434731 | 0 |
Return the number of seconds between two dates. | def KOze(Ilc0, w0do):
WbTE = 0
if Ilc0 and w0do:
RA_F = abs(Ilc0 - w0do)
WbTE = RA_F.days * 86400 + RA_F.seconds
return WbTE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JK5c(Ilc0, w0do):\n return (Ilc0 - w0do).total_seconds()",
"def QjoF(cRTK, Qx7j):\n return cRTK - Qx7j",
"def uKkN(YKHO, Elif):\n if not isinstance(Elif, qcWV):\n SnBA = (type(Elif), qcWV)\n raise TypeError('Type mismatch: %s not instance of %s' % SnBA)\n yk4i = (YKHO.nanosecond -... | [
"0.81940275",
"0.722263",
"0.71853626",
"0.68199396",
"0.67970294",
"0.67518437",
"0.6731858",
"0.66094476",
"0.65771496",
"0.6576583",
"0.6575861",
"0.6504075",
"0.64582103",
"0.6445168",
"0.6377559",
"0.62831557",
"0.6277148",
"0.62718666",
"0.62706804",
"0.626912",
"0.6264... | 0.7088195 | 3 |
Returns a list of sentences given an input batch. | def C5Hm(YKHO, C3ST, WKvO, EoGI):
C3ST = getattr(C3ST, 'module', C3ST)
with ht2j.no_grad():
KeL5, EoGI = C3ST.encode(WKvO, EoGI)
hlel = []
for I7JW in range(KeL5.size(0)):
SQxc = KeL5[I7JW, :, :].unsqueeze(1)
gCKD = EoGI[I7JW]
yAmx = YKHO._greedy_decod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y2KJ(YKHO, Wc9F=None):\n for HKwb in YKHO.get_paragraphs(Wc9F):\n for yAmx in HKwb['sentences']:\n yield yAmx['tokens']",
"def Rhv4(YKHO) -> x1iM[str]:\n return [YKHO.text[yKcO:Os4s] for yKcO, Os4s in YKHO.tokenizations]",
"def Rhv4(YKHO) -> x1iM[str]:\n return [YKHO.text[yKcO:Os... | [
"0.7045197",
"0.6999629",
"0.6999629",
"0.6811488",
"0.67944044",
"0.67918575",
"0.6684785",
"0.6655991",
"0.6654197",
"0.6563033",
"0.6538207",
"0.65153295",
"0.6505902",
"0.64953995",
"0.646527",
"0.643292",
"0.64170915",
"0.63184696",
"0.631131",
"0.6308585",
"0.6293186",
... | 0.0 | -1 |
Returns a list of sentences given an input batch. | def Adx3(YKHO, WKvO, EoGI):
def iNyb(WKvO):
return epAf.ceil(WKvO / 8) * 8
assert YKHO.max_symbol_per_sample is not None, 'max_symbol_per_sample needs to be specified in order to use batch_eval'
with ht2j.no_grad():
tjUW = WKvO.size(1)
if tjUW < 128:
KCq7 = iNyb(tjUW)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y2KJ(YKHO, Wc9F=None):\n for HKwb in YKHO.get_paragraphs(Wc9F):\n for yAmx in HKwb['sentences']:\n yield yAmx['tokens']",
"def Rhv4(YKHO) -> x1iM[str]:\n return [YKHO.text[yKcO:Os4s] for yKcO, Os4s in YKHO.tokenizations]",
"def Rhv4(YKHO) -> x1iM[str]:\n return [YKHO.text[yKcO:Os... | [
"0.7045197",
"0.6999629",
"0.6999629",
"0.6811488",
"0.67944044",
"0.67918575",
"0.6684785",
"0.6655991",
"0.6654197",
"0.6563033",
"0.6538207",
"0.65153295",
"0.6505902",
"0.64953995",
"0.646527",
"0.643292",
"0.64170915",
"0.63184696",
"0.631131",
"0.6308585",
"0.6293186",
... | 0.0 | -1 |
Checks if activities in flowbyactivity that appear to be like sectors are actually sectors | def k5UB(KQQe):
dCYV = []
for eHNT in _VTl:
dCYV.extend(KQQe[eHNT])
Mn2v = list(ZHFC('sector_timeseries')[oEG_])
q2SD = set(dCYV) - set(Mn2v)
if len(q2SD) > 0:
sOC0.debug('%s activities not matching sectors in default %s list', str(len(q2SD)), oEG_)
return q2SD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t_6A(YKHO):\n return False",
"def VuNo(YKHO, KCHu):\n for iXC1 in YKHO.byteruns():\n if iXC1.has_sector(KCHu):\n return True\n return False",
"def tfHn(PM5Y, E1Jq, SPsS, GPtr, Ty9i, hkS8, **bGrB):\n wH3T = Ty9i.get('data_format')\n if (wH3T == 'FBA') & pywB(PM5Y):\n ... | [
"0.5700458",
"0.56310457",
"0.54803336",
"0.541371",
"0.5327765",
"0.5326533",
"0.52770287",
"0.5196451",
"0.5156743",
"0.513289",
"0.50811964",
"0.50524026",
"0.5043073",
"0.49783942",
"0.4968298",
"0.4948216",
"0.49338338",
"0.49254033",
"0.4853778",
"0.4837848",
"0.4820222... | 0.71237683 | 0 |
Get the names of the output layers, i.e. the layers with unconnected outputs | def twxp(YKHO):
YKHO.layersNames = YKHO.net.getLayerNames()
return [YKHO.layersNames[YRbF[0] - 1] for YRbF in YKHO.net.getUnconnectedOutLayers()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def twxp(Zxma):\n m6lL = Zxma.getLayerNames()\n return [m6lL[YRbF[0] - 1] for YRbF in Zxma.getUnconnectedOutLayers()]",
"def twxp(Zxma):\n m6lL = Zxma.getLayerNames()\n return [m6lL[YRbF[0] - 1] for YRbF in Zxma.getUnconnectedOutLayers()]",
"def vKhw(YKHO):\n from keras.engine.topology import In... | [
"0.85490966",
"0.8501413",
"0.74311286",
"0.7000126",
"0.698524",
"0.69192314",
"0.6824727",
"0.6792042",
"0.6716075",
"0.67010486",
"0.662227",
"0.65866697",
"0.6554005",
"0.653272",
"0.6521707",
"0.6503979",
"0.65005594",
"0.64170825",
"0.6379317",
"0.6374442",
"0.6361116",... | 0.87982345 | 0 |
Applies month,date,city filters and loads the appropriate csv file | def UlWi(j5sA, x0eS, CjKC, GLLd, LzUN, UdTY):
try:
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Ti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['Month'] = jQ3Z['Start Time'].dt.month_name()\n jQ3Z['Day of Week'] = jQ3Z['Start Time'].dt.day_name()\n if x0eS != 'All':\n jQ3Z = jQ3Z[jQ3Z['Month'] == x0eS]\n ... | [
"0.7252327",
"0.7149716",
"0.7149142",
"0.7037811",
"0.70136905",
"0.7007522",
"0.7002948",
"0.6998037",
"0.69888705",
"0.6979818",
"0.6978237",
"0.6956194",
"0.6950382",
"0.69262695",
"0.6925763",
"0.69057786",
"0.6903432",
"0.6892163",
"0.687471",
"0.6872459",
"0.686594",
... | 0.6869215 | 20 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z, j5sA):
print('\n' * 2 + '*' * 20)
print('Calculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
try:
aBIw = jQ3Z['Start Time'].dt.month.mode()[0]
k1bd = lvCE[aBIw - 1].title()
print('Most frequent month for ', j5sA.title(), 'is:', k1bd.title())
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.773628",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7625196",
"0.7623158",
"0.7612803",
"0.76002145",
"0.7583... | 0.7328224 | 53 |
Displays statistics on the most common stations and trip. | def Huc_(jQ3Z, j5sA):
print('\n' * 2 + '*' * 20)
print('Calculating The Most common Stations and Trip...\n')
SWox = ITS7.time()
try:
dz5E = jQ3Z['Start Station'].mode()[0]
TzrP = jQ3Z['Start Station'].value_counts()[0]
print('Most frequent departure point for ', j5sA.title(), 'is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7901626",
"0.7715784",
"0.7671896",
"0.7668778",
"0.7668326",
"0.76551634",
"0.76498485",
"0.76345825",
"0.7613175",
"0.7586053",
"0.7579622",
"0.7578734",
"0.7569658",
"0.75602",
"0.7545632",
"0.75365746",
"0.752678",
"0.7526316",
"0.7525989",
"0.7521815",
"0.75197047",
... | 0.7387228 | 49 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z, j5sA):
print('\n' * 2 + '*' * 20)
print('Calculating Trip Duration...\n')
SWox = ITS7.time()
try:
jQ3Z['Time Delta'] = jQ3Z['End Time'] - jQ3Z['Start Time']
vcX7 = jQ3Z['Time Delta'].sum()
print('The total travel time :', vcX7)
except n19L as e:
print('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.0 | -1 |
yaml creation must be implemented | def IuY5(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJb6(YKHO):\n raise NotImplementedError",
"def cur4(YKHO):\n if YKHO._language == a9Uf:\n lUe6 = 'python'\n ZTOX = '$(System.DefaultWorkingDirectory)'\n SMAd = YKHO._python_dependencies()\n elif YKHO._language == UisA:\n lUe6 = 'node'\n ZTOX = '$(System.DefaultWork... | [
"0.7599795",
"0.683523",
"0.6826942",
"0.6811914",
"0.6776606",
"0.6691083",
"0.65454257",
"0.6494215",
"0.64344805",
"0.6399853",
"0.63765305",
"0.6251445",
"0.62067336",
"0.62010264",
"0.6091217",
"0.606059",
"0.6051349",
"0.60390854",
"0.6016576",
"0.5976309",
"0.59681475"... | 0.853896 | 0 |
Given multiple categories with multiple spending's | def A3Lv(YKHO):
_c1T = qcWV.today()
Kh6j = {YKHO.user.spend_categories[0]: [{'Date': _c1T, 'Value': 10.0}, {'Date': _c1T, 'Value': 15.0}], YKHO.user.spend_categories[1]: [{'Date': _c1T, 'Value': 5}]}
wPi6 = f'{YKHO.user.spend_categories[0]}, {_c1T.date()}, 10.00\n{YKHO.user.spend_categories[0]}, {_c1T.date(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mzkx(LeZt):\n pNZh = 'Percentage spent by category\\n'\n F5Jg = 0\n Nto_ = {}\n for Ghho in LeZt:\n Nto_[Ghho.name] = 0\n for WKvO in Ghho.ledger:\n if WKvO['amount'] < 0:\n Nto_[Ghho.name] += WKvO['amount']\n Nto_[Ghho.name] = abs(Nto_[Ghho.name])\n ... | [
"0.5780244",
"0.5649281",
"0.5462674",
"0.54124606",
"0.53440905",
"0.52922875",
"0.5255903",
"0.52313936",
"0.51370287",
"0.5061858",
"0.50573885",
"0.5055613",
"0.5025716",
"0.5021886",
"0.50211114",
"0.50146586",
"0.5014407",
"0.49962452",
"0.4975167",
"0.49702838",
"0.495... | 0.5843974 | 0 |
Calculates safe gain functions for NDCG. In applications such as distillation, the labels could have extreme values that might result in numerical error when using the original gain function. This should only be applied to NDCG related losses, but not DCG ones. It should be applied on both the numerator and the denomin... | def w9mW(Crrw):
zGCa = ZylS.reduce_max(Crrw, axis=-1, keepdims=True)
BUUq = ZylS.pow(2.0, Crrw - zGCa) - ZylS.pow(2.0, -zGCa)
return BUUq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LKgO(Y8eF, OU5i, G1Hx=5, BUUq='exponential'):\n P6Dd = qqcf(Y8eF, Y8eF, G1Hx, BUUq)\n n5sN = qqcf(Y8eF, OU5i, G1Hx, BUUq)\n return n5sN / P6Dd",
"def pIkG(Crrw, AFuE=lambda Crrw: ZylS.pow(2.0, Crrw) - 1.0, TG56=lambda fdMZ: 1.0 / ZylS.math.log1p(fdMZ), WJ3Z=None):\n oSyI, = BfDw.sort_by_scores(Cr... | [
"0.6275459",
"0.61991256",
"0.6040917",
"0.59718245",
"0.5954194",
"0.5875212",
"0.5873505",
"0.58520514",
"0.5819191",
"0.579242",
"0.579099",
"0.57747126",
"0.56441504",
"0.56361747",
"0.5621107",
"0.5606787",
"0.55661964",
"0.5556794",
"0.5527544",
"0.5518475",
"0.55081385... | 0.62979054 | 0 |
Normalizes weights. This is needed for `tf.estimator` given that the reduction may be `SUM_OVER_NONZERO_WEIGHTS`. This method is also needed to compute normalized weights when calling `compute_unreduced_loss`, which is done in the tf.keras losses. | def FWlN(YKHO, Crrw, _mSQ):
if YKHO._ragged:
Crrw, bGrB, _mSQ, bGrB = BfDw.ragged_to_dense(Crrw, None, _mSQ)
return YKHO._normalize_weights_impl(Crrw, _mSQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FWlN(YKHO):\n V3oS = sum(YKHO.weights)\n YKHO.norm_weights = YKHO.weights / float(V3oS)",
"def FWlN(YKHO):\n YKHO.new_weight = []\n for YRbF in YKHO._weights:\n if any((YRbF < 0 for YRbF in YKHO._weights)):\n YKHO.new_weight = [0, 1]\n elif all((YRbF == 0 for YRbF in YKHO... | [
"0.80921537",
"0.79740083",
"0.77553517",
"0.7692007",
"0.72982264",
"0.72140104",
"0.7116527",
"0.707865",
"0.69299203",
"0.68483096",
"0.6842551",
"0.6842551",
"0.6761088",
"0.6756076",
"0.6720158",
"0.6625788",
"0.662374",
"0.6592362",
"0.6586581",
"0.65742975",
"0.6543985... | 0.7269922 | 5 |
Precomputes Tensors for softmax cross entropy inputs. | def Z0cT(YKHO, Crrw, KeL5, _mSQ, ZHfW=None):
if ZHfW is None:
ZHfW = BfDw.is_label_valid(Crrw)
HRrY = Z2q3(KeL5, ZHfW)
Crrw = ZylS.compat.v1.where(ZHfW, Crrw, ZylS.zeros_like(Crrw))
KeL5 = ZylS.compat.v1.where(ZHfW, KeL5, ZylS.math.log(ntp8) * ZylS.ones_like(KeL5))
if YKHO._lambda_weight is ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aqfh(g4y1, jDK_=1, gH2v='mean', **B2fa):\n qIxc = Wov5.parse(locals())\n qIxc['reduction'] = gH2v.upper()\n CqFm = uL8A.SoftmaxCrossEntropy\n if QpfX.executing_eagerly():\n return CqFm.instantiate(axis=jDK_, reduction=qIxc['reduction']).apply(g4y1)\n else:\n return CqFm.blend(**qIx... | [
"0.6294574",
"0.62445164",
"0.62135494",
"0.61892",
"0.6166029",
"0.611509",
"0.60037404",
"0.59988225",
"0.5974861",
"0.59615487",
"0.5920296",
"0.58770967",
"0.58770967",
"0.5871205",
"0.578603",
"0.57850116",
"0.57614225",
"0.57433224",
"0.57413954",
"0.57410914",
"0.57366... | 0.5476127 | 66 |
Decorator for views that checks that the user passes the given test, redirecting to the login page if necessary. The test should be a callable that takes the user object and returns True if the user passes. | def LJA_(m2Zb=None):
def ZmIX(LpBI):
def uMyV(QePW, *qIxc, **B2fa):
if QePW.session.get('login', None):
return LpBI(QePW, *qIxc, **B2fa)
else:
return vKnz('idx')
uMyV.__name__ = LpBI.__name__
uMyV.__dict__ = LpBI.__dict__
uMyV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QsG4(Iw6c, XKMW=None, _HK_=w9Un):\n if not XKMW:\n XKMW = J9XU\n\n def mrMx(LpBI):\n\n def hJoh(QePW, *qIxc, **B2fa):\n if Iw6c(QePW):\n return LpBI(QePW, *qIxc, **B2fa)\n pmON = A5Qt(QePW.get_full_path())\n SjLr = (XKMW, _HK_, pmON)\n ... | [
"0.86692935",
"0.8127949",
"0.73803514",
"0.7348166",
"0.72726977",
"0.72690284",
"0.721602",
"0.721602",
"0.72042924",
"0.7178119",
"0.71673524",
"0.7165245",
"0.7154046",
"0.7137484",
"0.7130413",
"0.7118211",
"0.7076953",
"0.70569366",
"0.7054225",
"0.7047779",
"0.70328164... | 0.0 | -1 |
\brief test if the filename is a 3D extension \input{just the filename} \output{True if the media is a good extention, False otherwise} | def MQBL(Ux0P):
import os
Fst3 = os.path.splitext(Ux0P)[1].upper()
tg2j = ['.3DMF', '.3DM', '.3DS', '.ABC', '.AC', '.AMF', '.AN8', '.AOI', '.B3D', '.BLEND', '.BLOCK', '.C4D', '.CAL3D', '.CCP4', '.CFL', '.COB', '.CORE3D', '.CTM', '.DAE', '.DFF', '.DPM', '.DTS', '.EGG', '.FACT', '.FBX', '.G', '.GLM', '.JAS', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ciSI(Ux0P):\n YBcr = str(Hy7s.path.splitext(Ux0P)[1]).lower()\n return YBcr == '.mp3'",
"def d7dB(vC9B):\n if '.mp3' in str(vC9B):\n return 1\n else:\n return 0",
"def hjJ7(Ux0P):\n import os\n Fst3 = os.path.splitext(Ux0P)[1]\n tg2j = ['.aif', '.aifc', '.aiff', '.au', '.... | [
"0.75100595",
"0.7268719",
"0.7089922",
"0.70141685",
"0.6979657",
"0.68592703",
"0.68336046",
"0.67777115",
"0.6773775",
"0.6765604",
"0.6743798",
"0.6647401",
"0.663245",
"0.65915865",
"0.65601534",
"0.6556652",
"0.6531535",
"0.6515739",
"0.644066",
"0.6359014",
"0.63546216... | 0.8217823 | 0 |
\brief test if the filename is an audio extension \input{just the filename} \output{True if the media is a good extention, False otherwise} | def hjJ7(Ux0P):
import os
Fst3 = os.path.splitext(Ux0P)[1]
tg2j = ['.aif', '.aifc', '.aiff', '.au', '.cda', '.m4a', '.m4b', '.m4p', '.mid', '.midi', '.mka', '.mkv', '.mod', '.mp1', '.mp2', '.mp3', '.mpa', '.nst', '.odm', '.ogg', '.ptm', '.ra', '.s3m', '.snd', '.wav', '.wma', '.wow', '.xm', '.AIF', '.AIFC', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HCde(vC9B):\n if '.mpeg' in str(vC9B):\n return 1\n else:\n return 0",
"def d7dB(vC9B):\n if '.mp3' in str(vC9B):\n return 1\n else:\n return 0",
"def k87c(mWFP):\n return mWFP.endswith(('.ogg', '.oga', '.m4a'))",
"def H2Ty(nUeQ):\n return nUeQ.lower().endswi... | [
"0.75304824",
"0.7510191",
"0.730822",
"0.7303251",
"0.7301561",
"0.70185375",
"0.6994868",
"0.6993379",
"0.69521993",
"0.6948078",
"0.6920086",
"0.69145083",
"0.6719989",
"0.67055815",
"0.66273206",
"0.66249937",
"0.6607858",
"0.6579843",
"0.6537617",
"0.652492",
"0.6520289"... | 0.86149424 | 0 |
\brief test if the filename is a text extension \input{just the filename} \output{True if the media is a good extention, False otherwise} | def oXte(Ux0P):
import os
Fst3 = os.path.splitext(Ux0P)[1]
tg2j = ['.pdf', '.doc', '.zip', '.gz', '.tar', '.7z', '.abw', '.docx', '.ppt', '.pptx', '.html', '.odt', '.tex', '.txt', '.wps', '.xml', '.ps', '.odp', '.pps', '.PDF', '.DOC', '.ZIP', '.GZ', '.TAR', '.7Z', '.ABW', '.DOCX', '.PPT', '.PPTX', '.HTML', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qtJA(vC9B):\n if '.txt' in str(vC9B):\n return 1\n else:\n return 0",
"def WgsZ(mWFP):\n return mWFP.endswith(('.txt', '.py', '.lg', '.doc', '.rtf'))",
"def hjJ7(Ux0P):\n import os\n Fst3 = os.path.splitext(Ux0P)[1]\n tg2j = ['.aif', '.aifc', '.aiff', '.au', '.cda', '.m4a', ... | [
"0.7731831",
"0.75325483",
"0.7379994",
"0.71847624",
"0.71580476",
"0.71067816",
"0.70733225",
"0.70301586",
"0.70293784",
"0.6890832",
"0.6848036",
"0.68206245",
"0.68110937",
"0.67830586",
"0.67621785",
"0.6738103",
"0.6730544",
"0.6724974",
"0.67126554",
"0.67099345",
"0.... | 0.65384066 | 35 |
Give a readable representation of an instance. | def Ku9n(YKHO):
return '%s' % YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return '<instance of {}>'.format(YKHO.__class__.__name__)",
"def UpuU(YKHO, KAOR):\n return KAOR",
"def wHJl(YKHO):\n return repr(YKHO.__dict__['_obj'])",
"def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)",
"def wHJl(YKHO) -> str:\n return str(YKHO.as_dict())",
"... | [
"0.7497366",
"0.73179793",
"0.72952557",
"0.7288701",
"0.7233661",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
"0.72258234",
... | 0.0 | -1 |
Give a unambiguous representation of an instance. | def wHJl(YKHO):
return '<%s#%s>' % (YKHO.__class__.__name__, YKHO.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sHxj(KAOR, *qIxc, **B2fa):\n Ltpw = []\n if qIxc:\n Ltpw.append(', '.join([f'{Ty9i!r}' for Ty9i in qIxc]))\n if B2fa:\n Ltpw.append(', '.join([f'{G1Hx}={Ty9i!r}' for G1Hx, Ty9i in B2fa.items()]))\n return f'{KAOR.__class__.__name__}({', '.join(Ltpw)})'",
"def wHJl(YKHO):\n return... | [
"0.66376984",
"0.6537621",
"0.6477478",
"0.6430123",
"0.641789",
"0.6415765",
"0.6366801",
"0.6353466",
"0.6337205",
"0.6300465",
"0.6299766",
"0.62791187",
"0.6257913",
"0.6257781",
"0.62315995",
"0.623087",
"0.62297136",
"0.62293833",
"0.62238556",
"0.6221245",
"0.6207133",... | 0.61025745 | 37 |
Validates publish/inherit relationships between OCM organizations and environments from the provided label containers. This function returns a dictionary of OCM organizations and their version data inheritance relationships. | def n2kI(VgZb: dict[OrgRef, LabelContainer]) -> dict[I8Gl, fskj]:
g7Lv = {Tes3: wbso(Crrw, itih) for Tes3, Crrw in VgZb.items()}
AYaY = {Tes3.org_id: Tes3 for Tes3 in VgZb}
return {Tes3: gqTQ(Tes3, RLKD, AYaY, g7Lv) for Tes3, RLKD in g7Lv.items() if RLKD.inherit_version_data} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HGaS(ksBr: OCMEnvironment, CAeL: dict[str, OCMOrganization], XYK5: dict[str, list[ClusterDetails]], ZeRl: dict[str, LabelContainer], ML5f: dict[str, 'VersionDataInheritance']) -> dict[str, w1Vw]:\n return {g9KT: M0YZ(ksBr, CAeL[g9KT], qC6E, ZeRl.get(g9KT) or ylGm(), ML5f.get(g9KT)) for g9KT, qC6E in XYK5.it... | [
"0.63974506",
"0.56098485",
"0.5120724",
"0.48090276",
"0.4790744",
"0.4749151",
"0.47080114",
"0.46753547",
"0.46570888",
"0.45688558",
"0.45651835",
"0.45581236",
"0.45428792",
"0.45008314",
"0.44916868",
"0.4421378",
"0.44168192",
"0.44111776",
"0.44094425",
"0.44034505",
... | 0.5948876 | 1 |
Initialize the transaction handler class. This is setting the "notary" TF namespace prefix. | def FIMM(YKHO, R6eW):
YKHO._namespace_prefix = R6eW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nqzW(YKHO, y0cW='space', **B2fa):\n assert y0cW not in (None, '')\n YKHO.prefix = y0cW",
"def vSmr(Emd4, dlBN):\n pass",
"def FIMM(YKHO, Ibaf: TNSInterface=None) -> None:\n YKHO.tns = Ibaf or t5EH()",
"def FIMM(YKHO, LX4a=''):\n YKHO._ns = LX4a\n YKHO._service_name = '%s/trigger_service... | [
"0.6126181",
"0.6015541",
"0.60107577",
"0.57663345",
"0.57387084",
"0.57083964",
"0.56642693",
"0.56526357",
"0.56511223",
"0.5614905",
"0.55185163",
"0.5504862",
"0.54785436",
"0.54532135",
"0.5447338",
"0.5390921",
"0.5376174",
"0.5353153",
"0.5344493",
"0.5326442",
"0.530... | 0.66629773 | 0 |
Performs forward pass of the input. Here an input tensor x is transformed through several layer transformations. | def KVH6(YKHO, WKvO):
WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.batch_norm1(YKHO.conv1(WKvO))), 3, stride=2, padding=1)
WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.batch_norm2(YKHO.conv2(WKvO))), 3, stride=2, padding=1)
WKvO = vuvg.max_pool2d(vuvg.relu(YKHO.batch_norm3_b(YKHO.conv3_b(vuvg.relu(YKHO.batch_norm3_a(YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, dqxq):\n for gEmA in YKHO.layers:\n BF4L = gEmA.forward(dqxq)\n dqxq = BF4L\n YKHO.temp = dqxq\n return BF4L",
"def KVH6(YKHO, input=None):\n if input is not None and YKHO.result is None:\n YKHO.result = YKHO.act(input)\n elif YKHO.result is None:\n TZfR ... | [
"0.8100517",
"0.7859832",
"0.7810853",
"0.7802328",
"0.77643955",
"0.7756715",
"0.77400374",
"0.7734368",
"0.7728727",
"0.7698818",
"0.7695517",
"0.767733",
"0.76744854",
"0.7636695",
"0.76255643",
"0.76098365",
"0.7592621",
"0.75790083",
"0.7549981",
"0.7541161",
"0.75391316... | 0.0 | -1 |
Gets the maximum_over_capacity of this V2appsUpgradeStrategy. A number between 0 and 1 which is multiplied with the instance count. This is the maximum number of additional instances launched at any point of time during the upgrade process. | def eQqJ(YKHO):
return YKHO._maximum_over_capacity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yjza(YKHO) -> int:\n return YKHO._max_capacity",
"def eQqJ(YKHO, eQqJ):\n YKHO._maximum_over_capacity = eQqJ",
"def o9_U(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'max_instance_count')",
"def o9_U(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'max_instance_count')",
... | [
"0.72054356",
"0.677187",
"0.6522295",
"0.6522295",
"0.65013754",
"0.63126993",
"0.62846804",
"0.62846804",
"0.62846804",
"0.6159562",
"0.60822916",
"0.60822916",
"0.60482824",
"0.59722114",
"0.59682614",
"0.59503824",
"0.59305084",
"0.5918024",
"0.5886042",
"0.5885742",
"0.5... | 0.74832827 | 0 |
Sets the maximum_over_capacity of this V2appsUpgradeStrategy. A number between 0 and 1 which is multiplied with the instance count. This is the maximum number of additional instances launched at any point of time during the upgrade process. | def eQqJ(YKHO, eQqJ):
YKHO._maximum_over_capacity = eQqJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eQqJ(YKHO):\n return YKHO._maximum_over_capacity",
"def X3Vy(YKHO, DYR1):\n if DYR1 == None:\n YKHO._logger.write('Error! new_max_vehicle cannot be a NoneType')\n elif type(DYR1) != int:\n YKHO._logger.write('Error! new_max_vehicle must be of type int')\n else:\n try:\n ... | [
"0.6355313",
"0.62644476",
"0.61756676",
"0.6133707",
"0.60169375",
"0.58443147",
"0.5800573",
"0.57372534",
"0.57372534",
"0.5707722",
"0.5559721",
"0.55577517",
"0.5506668",
"0.5506668",
"0.54706883",
"0.5466889",
"0.5464387",
"0.54585886",
"0.54446185",
"0.5426552",
"0.542... | 0.82790416 | 0 |
Gets the minimum_health_capacity of this V2appsUpgradeStrategy. A number between 0 and 1 that is multiplied with the instance count. This is the minimum number of healthy nodes that do not sacrifice overall application purpose. Marathon will make sure, during the upgrade process, that at any point of time this number o... | def HsxI(YKHO):
return YKHO._minimum_health_capacity | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HsxI(YKHO, HsxI):\n YKHO._minimum_health_capacity = HsxI",
"def l7yi(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'min_capacity')",
"def l7yi(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'min_capacity')",
"def l7yi(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, ... | [
"0.6638245",
"0.62344915",
"0.62344915",
"0.62344915",
"0.60762584",
"0.60762584",
"0.6029936",
"0.5936676",
"0.59195393",
"0.58408344",
"0.58012384",
"0.5790563",
"0.5772729",
"0.5763091",
"0.57185423",
"0.57185423",
"0.57185423",
"0.57185423",
"0.57185423",
"0.57185423",
"0... | 0.78458744 | 0 |
Sets the minimum_health_capacity of this V2appsUpgradeStrategy. A number between 0 and 1 that is multiplied with the instance count. This is the minimum number of healthy nodes that do not sacrifice overall application purpose. Marathon will make sure, during the upgrade process, that at any point of time this number o... | def HsxI(YKHO, HsxI):
YKHO._minimum_health_capacity = HsxI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HsxI(YKHO):\n return YKHO._minimum_health_capacity",
"def A1bV(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'scale_min_capacity')",
"def A1bV(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'scale_min_capacity')",
"def q33K(YKHO, q33K):\n if YKHO.local_vars_configuration.cl... | [
"0.6954073",
"0.6120552",
"0.6120552",
"0.6073684",
"0.5860526",
"0.58378685",
"0.5817863",
"0.58121866",
"0.56785095",
"0.56785095",
"0.56785095",
"0.5632717",
"0.5602262",
"0.55589217",
"0.54112",
"0.53726214",
"0.5348369",
"0.53340715",
"0.53340715",
"0.53340715",
"0.53340... | 0.80831677 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.7961088",
"0.7961088",
"0.79433626",
"0.79303336",
"0.7926563",
"0.7897525",
"0.78826123",
"0.78826123",
"0.78806067",
"0.7872423",
"0.7868354",
"0.78668815",
"0.7825702",
"0.7819993",
"0.78162885",
"0.78078854",
"0.78068... | 0.79670393 | 51 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
The same as _fetch_results_dir defined above, but will return run directory, as a child directory to the results directory with the run_id name. At most one of backend/results_dir might be passed. If none is, nominal results directory is used. | def oAAr(YKHO, ByBU, DDLl=None, lKro=None):
lKro = YKHO._fetch_results_dir(backend=DDLl, results_dir=lKro)
return Hy7s.path.join(lKro, ByBU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wm52(YKHO, DDLl=None, lKro=None):\n if DDLl is None and lKro is not None:\n return lKro\n elif DDLl is not None and lKro is None:\n return PSrQ().get_results_dir(DDLl)\n elif DDLl is None and lKro is None:\n return YKHO.nominal_results_dir\n else:\n raise xEkR('Invalid c... | [
"0.80836767",
"0.7007751",
"0.67803013",
"0.6696585",
"0.66036296",
"0.6493991",
"0.6411563",
"0.63786435",
"0.6353539",
"0.61759424",
"0.61106306",
"0.6028463",
"0.5882529",
"0.5869954",
"0.5833259",
"0.5808749",
"0.5660742",
"0.56550723",
"0.56528574",
"0.5643335",
"0.56230... | 0.8547342 | 0 |
A method to get production and consumption rates for all the volumetric reactions producing or consuming the species "sp". Positive values are volume production processes and negative values are volume consumption processes. The returned Series is sorted by descending values. | def BPhL(H4yH, PgRt, H2Mz, C3nu=False):
eXhf._assert_consistency(sp=H4yH, chemistry=PgRt, rates_frame=H2Mz)
uKuB = PgRt.get_rp(H4yH).id
Tsnt = PgRt.get_stoichiomatrix(disabled=False, special=True, method='net')
ExgB = Tsnt.loc[Tsnt[uKuB] != 0, uKuB]
MDXG = ExgB * H2Mz.loc[ExgB.index]
MDXG = MDXG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjOd(H4yH, PgRt, t9eR, iLtb, C3nu=False):\n eXhf._assert_consistency(sp=H4yH, chemistry=PgRt, wall_fluxes_frame=iLtb)\n if PgRt.get_rp(H4yH).is_special():\n qmLP.warn('Surface rates not defined for the species {}!'.format(H4yH))\n return rLdf.Series(dtype=oyIN.float64)\n uKuB = PgRt.get_... | [
"0.58945405",
"0.5540061",
"0.51905453",
"0.5135951",
"0.5074571",
"0.5038579",
"0.4976755",
"0.4922435",
"0.48829064",
"0.4836347",
"0.48075646",
"0.48002702",
"0.478819",
"0.47851408",
"0.47655484",
"0.47527915",
"0.47398123",
"0.4735167",
"0.47310278",
"0.47033834",
"0.470... | 0.6469927 | 0 |
Returns the value of the 'fileas' attribute of the first creator listed in the manifest file. If the attribute is not present, it returns the text value enclosed by the creator tag. | def taDc(YKHO):
for ZfUD in YKHO.metadata:
if ZfUD.tag.localname == 'creator':
if 'file-as' in ZfUD.tag:
return ZfUD.tag['file-as']
else:
return ZfUD.tag.text | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wyuj(YKHO) -> str:\n return qe4Y.get(YKHO, 'creator')",
"def Wyuj(YKHO) -> str:\n return qe4Y.get(YKHO, 'creator')",
"def FYKK(YKHO):\n if not YKHO.meta.get('FileName'):\n YKHO.meta['FileName'] = YKHO.tags['AccessionNumber']\n return YKHO.meta.get('FileName')",
"def wJFV(YKHO):\n re... | [
"0.5881758",
"0.5881758",
"0.586475",
"0.5729594",
"0.5668894",
"0.5507867",
"0.5507867",
"0.5507867",
"0.5507867",
"0.5503164",
"0.5292945",
"0.52865165",
"0.5236233",
"0.5236233",
"0.5236233",
"0.5236233",
"0.5236233",
"0.5236233",
"0.518018",
"0.5179198",
"0.5179198",
"0... | 0.7854815 | 0 |
Returns the bytes of the favicon of this site | def QYEW(bD7m, ZFzw=3):
XeZA = pHd9(bD7m, retry=ZFzw)
return K2qG(XeZA, retry=ZFzw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def agnI(YKHO):\n return YKHO._favicon",
"def XeZA(YKHO):\n return YKHO.get_url('favicon', 'images/favicon.png')",
"def agnI():\n return ''",
"def QYEW(YKHO):\n k0i3 = '%s://%s/favicon.ico' % (YKHO.urlparts.scheme, YKHO.domain)\n Mkmy = G4JS.get(k0i3)\n if Mkmy:\n return k0i3\n el... | [
"0.7765254",
"0.7606847",
"0.73426634",
"0.72743523",
"0.72126406",
"0.6926064",
"0.68181723",
"0.6716929",
"0.6563802",
"0.6533688",
"0.6515958",
"0.6448762",
"0.6347678",
"0.62884855",
"0.62279457",
"0.61547583",
"0.6099863",
"0.6078016",
"0.6057801",
"0.58463687",
"0.57795... | 0.5714963 | 22 |
Testing no of collection item ids available in given collection url | def Uinh(YKHO, ryQO):
Ayrx = HiyZ(KLx3.ITEM_IDS_DATA, 200)
Lw9i = HiyZ({}, 200)
ryQO.side_effect = [Ayrx, Lw9i]
geh0 = bqwu(YKHO.url, 2)
YKHO.assertListEqual(geh0, ['mss37820001']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iFve(YKHO, ryQO):\n Ayrx = HiyZ({}, 200)\n Lw9i = HiyZ({}, 200)\n ryQO.side_effect = [Ayrx, Lw9i]\n geh0 = bqwu(YKHO.url, 2)\n YKHO.assertListEqual(geh0, [])",
"def F6Fv(YKHO, ryQO):\n nkG0 = HiyZ({}, 200)\n ryQO.return_value = nkG0\n geh0 = yjWF(YKHO.item_id)\n YKHO.assertListEqua... | [
"0.6904069",
"0.66909957",
"0.63645947",
"0.6326903",
"0.61733764",
"0.60338116",
"0.6008624",
"0.5951256",
"0.5929107",
"0.59081036",
"0.59020084",
"0.5882644",
"0.5865856",
"0.5825486",
"0.5798208",
"0.57418245",
"0.57267624",
"0.5726573",
"0.5719601",
"0.57115996",
"0.5691... | 0.6597615 | 2 |
Testing no of collection item ids not availabel collection url | def iFve(YKHO, ryQO):
Ayrx = HiyZ({}, 200)
Lw9i = HiyZ({}, 200)
ryQO.side_effect = [Ayrx, Lw9i]
geh0 = bqwu(YKHO.url, 2)
YKHO.assertListEqual(geh0, []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6Fv(YKHO, ryQO):\n nkG0 = HiyZ({}, 200)\n ryQO.return_value = nkG0\n geh0 = yjWF(YKHO.item_id)\n YKHO.assertListEqual(geh0, [])",
"def mpLo(T0wC, mlLR, Y8Sy):\n x0hE, bGrB = T0wC\n if not Y8Sy:\n x0hE.logout()\n geh0 = x0hE.get('/collections/{}'.format(mlLR))\n assert geh0.sta... | [
"0.654401",
"0.64490443",
"0.62408584",
"0.61988384",
"0.61750036",
"0.609602",
"0.600228",
"0.5864778",
"0.5820793",
"0.58032787",
"0.5764215",
"0.57594204",
"0.5744564",
"0.57374007",
"0.5734433",
"0.57323617",
"0.5727451",
"0.5725577",
"0.5693351",
"0.5683588",
"0.56652397... | 0.6164394 | 5 |
Testing no of collection item asset urls available in given item id | def AgAH(YKHO, ryQO):
nkG0 = HiyZ(KLx3.COLLECTION_ITEM_URLS_DATA, 200)
ryQO.return_value = nkG0
geh0 = yjWF(YKHO.item_id)
YKHO.assertListEqual(geh0, ['http://tile.loc.gov/image-services/iiif/service:mss:mss37820:mss37820-052:08:0001/full/pct:100/0/default.jpg']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6Fv(YKHO, ryQO):\n nkG0 = HiyZ({}, 200)\n ryQO.return_value = nkG0\n geh0 = yjWF(YKHO.item_id)\n YKHO.assertListEqual(geh0, [])",
"def rKQd(YKHO, bD7m):\n FVO4 = bWeC.url_hash(bD7m)\n if FVO4 not in YKHO.__items:\n YKHO.__item_lock.acquire()\n YKHO.__items.add(FVO4)\n ... | [
"0.7535087",
"0.59788144",
"0.59486926",
"0.5937698",
"0.5871058",
"0.5836033",
"0.5802878",
"0.5792013",
"0.5767495",
"0.5763955",
"0.5763064",
"0.57339627",
"0.57336396",
"0.5732366",
"0.5725953",
"0.571687",
"0.57039344",
"0.5703036",
"0.56883204",
"0.5673993",
"0.56607413... | 0.7122616 | 1 |
Testing no of collection item asset urls not available in given item id | def F6Fv(YKHO, ryQO):
nkG0 = HiyZ({}, 200)
ryQO.return_value = nkG0
geh0 = yjWF(YKHO.item_id)
YKHO.assertListEqual(geh0, []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AgAH(YKHO, ryQO):\n nkG0 = HiyZ(KLx3.COLLECTION_ITEM_URLS_DATA, 200)\n ryQO.return_value = nkG0\n geh0 = yjWF(YKHO.item_id)\n YKHO.assertListEqual(geh0, ['http://tile.loc.gov/image-services/iiif/service:mss:mss37820:mss37820-052:08:0001/full/pct:100/0/default.jpg'])",
"def S8E5(QpfX, ZfUD):\n ... | [
"0.681002",
"0.6328567",
"0.61067283",
"0.6052613",
"0.5997696",
"0.59630543",
"0.595966",
"0.5901177",
"0.5899223",
"0.58304346",
"0.58248043",
"0.5822432",
"0.58203757",
"0.5813112",
"0.57811326",
"0.576888",
"0.57592297",
"0.57579416",
"0.57513845",
"0.5744528",
"0.5731538... | 0.73760736 | 0 |
Testing no of collection item asset urls available in given collection url | def s5ni(YKHO, ryQO, vBXM):
xUwc = {'collection_name': YKHO.name, 'collection_slug': eIIt(YKHO.name), 'collection_task_id': '123', 'subcollection_name': YKHO.project, 'subcollection_slug': eIIt(YKHO.project)}
ayff.objects.create(**xUwc)
MEqE = HiyZ({'pagination': {'total': 2}}, 200)
Ayrx = HiyZ(KLx3.ITE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6Fv(YKHO, ryQO):\n nkG0 = HiyZ({}, 200)\n ryQO.return_value = nkG0\n geh0 = yjWF(YKHO.item_id)\n YKHO.assertListEqual(geh0, [])",
"def AgAH(YKHO, ryQO):\n nkG0 = HiyZ(KLx3.COLLECTION_ITEM_URLS_DATA, 200)\n ryQO.return_value = nkG0\n geh0 = yjWF(YKHO.item_id)\n YKHO.assertListEqual(ge... | [
"0.7653996",
"0.7336379",
"0.64031714",
"0.6220773",
"0.6147619",
"0.6033041",
"0.587556",
"0.5831847",
"0.5816081",
"0.5810742",
"0.5807949",
"0.5783775",
"0.5754823",
"0.57312125",
"0.57204837",
"0.5692368",
"0.5655098",
"0.56114614",
"0.56058955",
"0.5597286",
"0.5589733",... | 0.0 | -1 |
Testing no of collection item asset urls available in given item id | def H9NS(YKHO, ryQO, vBXM):
xUwc = {'collection_name': YKHO.name, 'collection_slug': eIIt(YKHO.name), 'collection_task_id': '123', 'subcollection_name': YKHO.project, 'subcollection_slug': eIIt(YKHO.project)}
ayff.objects.create(**xUwc)
nkG0 = HiyZ(KLx3.COLLECTION_ITEM_URLS_DATA, 200)
ryQO.return_value ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6Fv(YKHO, ryQO):\n nkG0 = HiyZ({}, 200)\n ryQO.return_value = nkG0\n geh0 = yjWF(YKHO.item_id)\n YKHO.assertListEqual(geh0, [])",
"def AgAH(YKHO, ryQO):\n nkG0 = HiyZ(KLx3.COLLECTION_ITEM_URLS_DATA, 200)\n ryQO.return_value = nkG0\n geh0 = yjWF(YKHO.item_id)\n YKHO.assertListEqual(ge... | [
"0.7535087",
"0.7122616",
"0.59788144",
"0.59486926",
"0.5937698",
"0.5871058",
"0.5836033",
"0.5802878",
"0.5792013",
"0.5767495",
"0.5763955",
"0.5763064",
"0.57339627",
"0.57336396",
"0.5732366",
"0.5725953",
"0.571687",
"0.57039344",
"0.5703036",
"0.56883204",
"0.5673993"... | 0.517821 | 90 |
Testing no of collection item asset urls available in given item id wiht no db entry in CollectionTaskDetails | def elFQ(YKHO, ryQO, vBXM):
nkG0 = HiyZ(KLx3.COLLECTION_ITEM_URLS_DATA, 200)
ryQO.return_value = nkG0
vBXM.return_value = None
I2c0(YKHO.name, YKHO.project, YKHO.item_id)
rPiB = ayff.objects.get(collection_slug=YKHO.name, subcollection_slug=YKHO.project)
gZXk = Rw24.objects.get(collection_task=r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6Fv(YKHO, ryQO):\n nkG0 = HiyZ({}, 200)\n ryQO.return_value = nkG0\n geh0 = yjWF(YKHO.item_id)\n YKHO.assertListEqual(geh0, [])",
"def AgAH(YKHO, ryQO):\n nkG0 = HiyZ(KLx3.COLLECTION_ITEM_URLS_DATA, 200)\n ryQO.return_value = nkG0\n geh0 = yjWF(YKHO.item_id)\n YKHO.assertListEqual(ge... | [
"0.7041072",
"0.6606606",
"0.60610026",
"0.5857897",
"0.5840089",
"0.57437086",
"0.5669981",
"0.5644753",
"0.5573791",
"0.55395555",
"0.5521496",
"0.5520711",
"0.5503842",
"0.5501755",
"0.5497198",
"0.5492218",
"0.5483147",
"0.54656106",
"0.5455271",
"0.5426969",
"0.54160255"... | 0.6328421 | 2 |
Build a dictionary through a list of words | def o18O(YKHO, V22M):
for GIN8 in V22M:
YKHO.word_set.add(GIN8)
for SkC9 in YKHO.candidates(GIN8):
YKHO.neighbors[SkC9] += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BCj6(vwCE):\n Csk6 = dict()\n for YRbF in vwCE:\n H5ew = ''.join(sorted(list(YRbF)))\n if H5ew in Csk6:\n Csk6[H5ew].append(YRbF)\n else:\n Csk6[H5ew] = [YRbF]\n return Csk6",
"def K63D(V22M):\n dixj = MabX(set([YKHO.normalize(yzQ0) for yzQ0 in V22M] + V... | [
"0.77699906",
"0.7715609",
"0.7666073",
"0.7590654",
"0.75074077",
"0.7402528",
"0.7372786",
"0.7257193",
"0.72470814",
"0.7220795",
"0.71518236",
"0.71224153",
"0.7089357",
"0.7033362",
"0.6941951",
"0.692757",
"0.6901821",
"0.6863035",
"0.68164855",
"0.68103427",
"0.6762273... | 0.69923383 | 14 |
Returns if there is any word in the trie that equals to the given word after modifying exactly one character | def TgwQ(YKHO, GIN8):
for SkC9 in YKHO.candidates(GIN8):
if YKHO.neighbors[SkC9] > 1:
return True
elif YKHO.neighbors[SkC9] == 1 and GIN8 not in YKHO.word_set:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gtm1(ZOCz, vIwR: str) -> bool:\n return any((yzQ0 == vIwR for yzQ0 in ZOCz))",
"def TgwQ(YKHO, GIN8):\n ZbOB = YKHO.trie\n for YRbF, Npgh in enumerate(GIN8):\n ZbOB = ZbOB.get(Npgh, {})\n if ZbOB:\n continue\n else:\n break\n if YRbF == len(GIN8) - 1 and... | [
"0.78987586",
"0.7713067",
"0.76827085",
"0.7650699",
"0.74977815",
"0.74953616",
"0.7492678",
"0.74721324",
"0.7441035",
"0.7440776",
"0.7415909",
"0.7413349",
"0.73969525",
"0.7383449",
"0.7365638",
"0.7334273",
"0.73318183",
"0.72946453",
"0.72943574",
"0.72771394",
"0.727... | 0.6652687 | 84 |
Get absolute path to resource, works for dev and for PyInstaller !!!THANK YOU STACK_OVERFLOW!!! | def JFat(YKHO, t_yv):
XSj5 = getattr(HwRy, '_MEIPASS', Hy7s.path.dirname(Hy7s.path.abspath(xAKo)))
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JFat(t_yv):\n try:\n XSj5 = HwRy._MEIPASS\n except:\n XSj5 = Hy7s.path.abspath('.')\n return Hy7s.path.join(XSj5, t_yv)",
"def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__na... | [
"0.8318081",
"0.8296801",
"0.8246657",
"0.8175339",
"0.8148962",
"0.8146455",
"0.81354916",
"0.81279325",
"0.81171346",
"0.81169724",
"0.8116567",
"0.8116087",
"0.8116087",
"0.8116087",
"0.8116087",
"0.8116087",
"0.8116087",
"0.8116087",
"0.81148094",
"0.8109839",
"0.8109839"... | 0.76113206 | 52 |
Calculate the directivity for a pyramidal horn. | def dfsj(g8Qr, QRW8, pm8b, woKz, Gjtu):
__d3 = Z9rn / Gjtu
P6bq = 1.0 / PZyS(2.0) * (PZyS(__d3 * woKz) / g8Qr + g8Qr / PZyS(__d3 * woKz))
Ty9i = 1.0 / PZyS(2.0) * (PZyS(__d3 * woKz) / g8Qr - g8Qr / PZyS(__d3 * woKz))
QkTr, nuXG = GSnj(P6bq)
A7g8, imOZ = GSnj(Ty9i)
d7pR = QRW8 / PZyS(2.0 * __d3 *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dfsj(YKHO) -> int:\n return YKHO._directivity",
"def nDUn(tWPo, Cwt5, iFC1, UqYS, wW3z, Z9rn, eHNT, yiaH, DjKP, exwG):\n if tWPo == 'Circular Piston':\n j2in = Cwt5 * iFC1 / 2\n with oyIN.errstate(invalid='ignore', divide='ignore'):\n cKjI = 2 * (H4yH.jv(1, wW3z / Z9rn * j2in *... | [
"0.618278",
"0.5666809",
"0.56508255",
"0.56410545",
"0.5546424",
"0.55103517",
"0.54803956",
"0.54742706",
"0.54589415",
"0.5452148",
"0.5426667",
"0.54149616",
"0.538793",
"0.5386051",
"0.53833735",
"0.53763276",
"0.5364096",
"0.53433466",
"0.53235686",
"0.5320168",
"0.5318... | 0.0 | -1 |
Closes the BertClient connection to BertServer | def Os4s(YKHO):
YKHO._bc.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EKNI(YKHO):\n x0hE.close()",
"def DDI8(YKHO):\n YKHO._client.close()\n YKHO._transport.close()",
"def DDI8(YKHO):\n if YKHO.client:\n YKHO.client.connection.close()\n YKHO.client = None",
"def DDI8(YKHO) -> None:\n if YKHO.client is None:\n return\n if bo34 is not N... | [
"0.7510907",
"0.7075644",
"0.6985471",
"0.68227196",
"0.66258734",
"0.6622013",
"0.65964663",
"0.658709",
"0.6576201",
"0.6552941",
"0.6538077",
"0.652239",
"0.65165234",
"0.65164506",
"0.6514529",
"0.6514486",
"0.6503944",
"0.64714724",
"0.64712316",
"0.6464942",
"0.6444812"... | 0.0 | -1 |
Load the App's Home tab. | def XEDp(uJjO):
q30Q = []
E6Ha = []
CBIr = SGll(uJjO)
if CBIr['ok']:
D3lj = CBIr['user']['profile']['email']
q30Q = sorted(_fAU.simple_ticket_search(requestor=D3lj, status='__Active__'), reverse=True)
for cZez in q30Q:
YXSb = _fAU.fetch_ticket(cZez)
if YXSb.get('messa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZexA(YKHO):\n YKHO.parent.show()\n YKHO.hide()",
"def pApc():\n if Vjhr.lastScreen in Vjhr.protectedScreens:\n T26U.show()\n else:\n PtXo.show()",
"def oUar(YKHO):\n if YKHO.home_url is not None:\n YKHO.set_url(YKHO.home_url)",
"def NooO(YKHO):\n print(YKHO.home.nam... | [
"0.7048857",
"0.6937351",
"0.6875719",
"0.68368715",
"0.65984756",
"0.6447604",
"0.6445646",
"0.6391582",
"0.6389873",
"0.6270182",
"0.62523764",
"0.623332",
"0.61885756",
"0.61685574",
"0.6158028",
"0.6116955",
"0.6105745",
"0.60986906",
"0.6090661",
"0.6034473",
"0.6033202"... | 0.57187855 | 57 |
Same as x(), including the effect of offset and muloffset on output. | def kWon(YKHO, **B2fa):
XhVQ = ['minmax', '0max']
y5U5 = None
WKvO = YKHO.x(**B2fa)
vgXP = YKHO.attr('offset', None)
if vgXP is not None:
z1Rg = vgXP[0] if isinstance(vgXP, list) else 0
if isinstance(z1Rg, str):
if z1Rg in XhVQ:
y5U5 = z1Rg
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K2Fi(*qIxc, **B2fa):\n return nAU3.NativePixelData_Accessor_OffsetX(*qIxc, **B2fa)",
"def K2Fi(*qIxc, **B2fa):\n return nAU3.AlphaPixelData_Accessor_OffsetX(*qIxc, **B2fa)",
"def cizC(YKHO, *qIxc, **B2fa) -> ImMB:\n pass",
"def NaA8(YKHO, *qIxc):\n return _VfD.Point_setXOffset(YKHO, *qIxc)",
... | [
"0.7001128",
"0.6999453",
"0.69734776",
"0.6967133",
"0.67032915",
"0.66408384",
"0.6553602",
"0.65299004",
"0.650492",
"0.64821553",
"0.64821553",
"0.64821553",
"0.64821553",
"0.64821553",
"0.64821553",
"0.64821553",
"0.64821553",
"0.64821553",
"0.64821553",
"0.64821553",
"0... | 0.70429236 | 0 |
Returns the x data. | def WKvO(YKHO, d6pt=oyIN.nan, du_Q='', S2zG=None, WqT_=False, CfKp=False):
if du_Q != '':
if du_Q == 'nmeV':
if S2zG is not None:
S2zG = oyIN.array(S2zG)
if len(S2zG.shape) > 1:
S2zG = [S2zG[0, ::-1], S2zG[1, ::-1]]
with qmLP.catch_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPrm(YKHO):\n return Vl38(YKHO.__mdsnode__, strict=YKHO.__strict__)",
"def WKvO(YKHO):\n return YKHO._data[0]",
"def SLsv(YKHO):\n if not YKHO.__applied:\n YKHO.__apply_accumulators()\n return YKHO.__xdata",
"def X0em(YKHO):\n return YKHO._x",
"def WKvO(YKHO):\n return YKHO['x'... | [
"0.8107276",
"0.79952973",
"0.7989443",
"0.75255966",
"0.7445135",
"0.74287343",
"0.7335098",
"0.7325699",
"0.7270629",
"0.7158081",
"0.7145937",
"0.7145937",
"0.7145937",
"0.7145937",
"0.7145937",
"0.7145937",
"0.7145937",
"0.7145937",
"0.7145937",
"0.7145937",
"0.7145937",
... | 0.0 | -1 |
Returns the y data. | def LVAh(YKHO, d6pt=oyIN.nan, du_Q='', S2zG=None, WqT_=False, CfKp=False):
if du_Q != '':
if du_Q == 'log10abs':
k25r = YKHO.attr('Jsc') if YKHO.attr('Jsc') != '' and (not CfKp) else 0
return oyIN.log10(oyIN.abs(YKHO.y(d6pt, xyValue=S2zG) + k25r))
elif du_Q == 'abs':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zIJJ(YKHO):\n return YKHO.y(YKHO.xs)",
"def ELWn(YKHO):\n return YKHO._ydata",
"def LVAh(YKHO):\n return YKHO._data[1]",
"def CjQX(YKHO):\n if not YKHO.__applied:\n YKHO.__apply_accumulators()\n return YKHO.__ydata",
"def LVAh(YKHO):\n return YKHO.dataset.y",
"def yDCK():\n ... | [
"0.8950273",
"0.8909771",
"0.83912134",
"0.8298615",
"0.8284316",
"0.8128603",
"0.80454874",
"0.7956152",
"0.78963536",
"0.7821887",
"0.780163",
"0.779564",
"0.7728187",
"0.7717617",
"0.7717617",
"0.7717617",
"0.7717617",
"0.7717617",
"0.7717617",
"0.7717617",
"0.7717617",
... | 0.0 | -1 |
Legacy getter of attribute | def SEFk(YKHO, H5ew, WmM4=''):
return YKHO.attr(H5ew, default=WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JgjC(YKHO, hkS8):\n return YKHO.get(hkS8)",
"def GTRl(YKHO, mWFP):\n pass",
"def GTRl(YKHO, hkS8):\n super().get_attribute(hkS8)\n return getattr(YKHO, hkS8)",
"def NMoC(YKHO, AniK):\n return getattr(YKHO, AniK)",
"def G7Ug(YKHO, mWFP: str):\n return YKHO.call(mWFP)",
"def JgjC(YKHO... | [
"0.798612",
"0.79735875",
"0.7805334",
"0.76515526",
"0.7629522",
"0.7627099",
"0.7480565",
"0.74779737",
"0.74747866",
"0.74747866",
"0.7469613",
"0.7464983",
"0.7463307",
"0.7463307",
"0.74413687",
"0.74391073",
"0.7365741",
"0.73519593",
"0.73252493",
"0.7317242",
"0.73172... | 0.0 | -1 |
Given an index in the Curve data, returns a modified data which has some sense to the user. Is overloaded in some child Curve classes, see for example CurveCf If strDescription is True, then returns a string which describes what this method is doing. | def sacx(YKHO, or8S, du_Q='', YNa6=False):
if YNa6:
return '(x,y) data with offset and transform'
if isinstance(du_Q, str):
du_Q = ['', du_Q]
hkS8 = {}
return (YKHO.x_offsets(index=or8S, alter=du_Q[0]), YKHO.y_offsets(index=or8S, alter=du_Q[1]), hkS8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AdZ9(YKHO, d6pt):\n if d6pt >= len(YKHO) or len(YKHO) == 0:\n print('ERROR Class Graph method Curve: cannot find Curve (index', d6pt, ', max possible', len(YKHO), ')')\n return\n return YKHO.data[d6pt]",
"def OP2O(YKHO, d6pt):\n QyVM = YKHO.id[d6pt]\n e1GD = YKHO.X[d6pt]\n if YKH... | [
"0.62826306",
"0.57250136",
"0.5723747",
"0.56971",
"0.559068",
"0.55228966",
"0.5518181",
"0.5489106",
"0.54572964",
"0.54300255",
"0.5426397",
"0.5370641",
"0.5368358",
"0.5368358",
"0.536242",
"0.5357312",
"0.5341563",
"0.5339272",
"0.5339272",
"0.53289413",
"0.5308285",
... | 0.49819675 | 51 |
Check the given 'categories' exist | def c8zN(LeZt: list) -> bool:
jhXJ = qZuN.objects.all().filter(id__in=LeZt).distinct().count()
if jhXJ != len(set(LeZt)):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dqe5(YKHO):\n for ACia in eu_J:\n if not qZuN.objects.filter(name=ACia).exists():\n YKHO.add_category(ACia)",
"def FnCF(YKHO, Ghho: str) -> bool:\n return all((Ghho in YKHO.data[sZqf] for sZqf in YKHO.data))",
"def YeCa(YKHO):\n geh0 = YKHO.client.get('/categories', headers={'Aut... | [
"0.7865186",
"0.7413959",
"0.71073216",
"0.6967679",
"0.67952543",
"0.67169356",
"0.67024523",
"0.66450167",
"0.66322666",
"0.6590427",
"0.65761447",
"0.6563388",
"0.65604395",
"0.6512943",
"0.6481562",
"0.6468809",
"0.64576155",
"0.6453508",
"0.6439076",
"0.6406985",
"0.6371... | 0.77250004 | 1 |
Returns the current state from the environment. The current state is the last environment observation optionally processed by the obs_hook. | def DghZ(YKHO):
return YKHO.obs_hook(YKHO._current_obs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.currentObservation",
"def ja6o(YKHO):\n return YKHO._env.get_state()",
"def g012(YKHO):\n return YKHO._cur_state",
"def c0mt(YKHO):\n return YKHO.world.get_state()",
"def IcV3(YKHO):\n return YKHO.observation_function[YKHO.cur_state]",
"def ja6o(YKHO) -> XTiz.... | [
"0.7642118",
"0.7438743",
"0.7378617",
"0.7282528",
"0.7153013",
"0.71044976",
"0.7097995",
"0.69626004",
"0.6959068",
"0.6855924",
"0.67864376",
"0.6777616",
"0.67464614",
"0.6734189",
"0.6706248",
"0.6693671",
"0.66870767",
"0.66200036",
"0.6609841",
"0.6609841",
"0.6609841... | 0.81486917 | 0 |
Returns True if this object's admin form has at least one of the given field_type (e.g. FileField). | def _ehQ(YKHO, vF49):
if not hasattr(YKHO, '_field_types'):
YKHO._field_types = {}
if not YKHO._field_types.has_key(vF49):
try:
for eHNT in YKHO.fields:
if isinstance(eHNT, vF49):
raise StopIteration
for TzuU, zmz7 in YKHO.get_inline_re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x7NK(YKHO):\n for Jyyj in YKHO.fields.values():\n if Jyyj.widget.needs_multipart_form:\n return True\n return False",
"def qeqw(YKHO, Jyyj):\n return Jyyj in YKHO.extra_fields",
"def vqcu(YKHO, Jyyj: DSLSelectable) -> bool:\n assert isinstance(YKHO, HDb4)\n if isinstance(Jy... | [
"0.65298486",
"0.6524098",
"0.61010647",
"0.60757464",
"0.60438436",
"0.6036546",
"0.5968335",
"0.593395",
"0.59040415",
"0.5821903",
"0.58143944",
"0.5793632",
"0.57448184",
"0.5743549",
"0.57411057",
"0.56777686",
"0.5669897",
"0.5609508",
"0.5601394",
"0.5574921",
"0.55548... | 0.6878717 | 0 |
Nodes a and b share an edge add the edge to the data structure. | def b65I(YKHO, jzdc, Fg_i):
if jzdc in YKHO.node_id and Fg_i in YKHO.node_id and (YKHO.node_id[jzdc] != YKHO.node_id[Fg_i]):
YKHO.merge(jzdc, Fg_i)
elif jzdc in YKHO.node_id or Fg_i in YKHO.node_id:
YKHO.add(jzdc, Fg_i)
else:
YKHO.create_new_group(jzdc, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F1KG(VQ6Z, jzdc, Fg_i):\n if not jzdc in VQ6Z.m:\n VQ6Z.m[jzdc] = set()\n VQ6Z.m[jzdc].add(Fg_i)",
"def FhOZ(YKHO, jzdc: tuple, Fg_i: tuple):\n if jzdc not in YKHO.graph:\n YKHO.graph[jzdc] = set()\n if Fg_i not in YKHO.graph:\n YKHO.graph[Fg_i] = set()\n YKHO.graph[jzdc].... | [
"0.8146868",
"0.7963319",
"0.77699476",
"0.76428115",
"0.7472739",
"0.73616576",
"0.73306245",
"0.7313536",
"0.72943425",
"0.7257468",
"0.71834683",
"0.7162399",
"0.715093",
"0.7147865",
"0.7141861",
"0.7117082",
"0.7110188",
"0.7108705",
"0.7106769",
"0.7099276",
"0.70880306... | 0.0 | -1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def lwRZ(K0do, yKTC, YPaw, CjZL):
tspZ = yKTC * (1.0 - YPaw * 1.0 / CjZL)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ
return tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.7913536",
"0.7906521",
"0.7849834",
"0.777524",
"0.77338326",
"0.77306354",
"0.7722718",
"0.77224237",
"0.771982",
"0.77092624",
"0.7693604",
"0.76742035",
"0.7665748",
"0.7665748",
"0.7665748",
"0.7655329",
"0.76419765",
"0.76399755",
"0.7637868",
"0.7626077",
"0.76247585... | 0.0 | -1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def MXSU(K0do, yKTC, YPaw, Rf07, KMvS):
if len(Rf07) == 0:
tspZ = yKTC * KMvS ** (YPaw // Rf07)
else:
tspZ = yKTC * KMvS ** sum([YPaw > YRbF for YRbF in Rf07])
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ
return tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.79138637",
"0.7907123",
"0.78501725",
"0.77759194",
"0.77345806",
"0.77311844",
"0.7723001",
"0.77227825",
"0.772003",
"0.7709925",
"0.76942194",
"0.7674993",
"0.7666409",
"0.7666409",
"0.7666409",
"0.7654975",
"0.7642442",
"0.764",
"0.7638515",
"0.7626761",
"0.7625353",
... | 0.0 | -1 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)
Ylbp.append(R2Dg.mul_(100.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.76427615",
"0.74189496",
"0.7418079",
"0.72710466",
"0.72456723",
"0.72446615",
"0.7237539",
"0.72213703",
"0.7210107",
"0.7058935",
"0.6852219",
"0.6786084",
"0.67836976",
"0.6768417",
"0.67273885",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.... | 0.0 | -1 |
Retrieves a string representation of the package status. Relates to section F of the requirements. | def BTS_(YKHO, oldI):
return YKHO._delivery_service.package_status(int(oldI)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EUmI(YKHO):\n if YKHO.downloaded == 0:\n return '[Starting... ]'\n return '[%s, %s, %s]' % YKHO.get_status()",
"def hqCf(YKHO):\n return u'%s' % YKHO.get_status_display()",
"def tKVC(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'detailed_status')",
"def tKVC(YKHO) -> qe4Y.Output[... | [
"0.71626514",
"0.6997189",
"0.6878268",
"0.6878268",
"0.68320113",
"0.6830941",
"0.6830941",
"0.67950886",
"0.6783765",
"0.6783765",
"0.6783765",
"0.6783765",
"0.6783765",
"0.6783765",
"0.6783765",
"0.6783765",
"0.6783765",
"0.6783765",
"0.6783765",
"0.6783765",
"0.6783765",
... | 0.0 | -1 |
Returns the minimax action using self.depth and self.evaluationFunction | def bk5W(YKHO, Ov5A):
"""*** YOUR CODE HERE ***"""
niOS = Ov5A.getLegalActions(0)
kxeS = 0
epw2 = list(range(1, Ov5A.getNumAgents()))
UHFx = gnPz.Counter()
SFnX = Ov5A.getNumAgents() - 1
def nbRN(HJ5S, ELVE, Cwt5, UqYS, rb7a):
qfNb = HJ5S.getLegalActions(ELVE)
WLtg = YKHO.de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\... | [
"0.7482982",
"0.73845285",
"0.7181575",
"0.71107405",
"0.70889926",
"0.70698124",
"0.70696664",
"0.70484525",
"0.7005484",
"0.69664097",
"0.69640785",
"0.69612634",
"0.69459844",
"0.68992436",
"0.6896572",
"0.6886153",
"0.6827345",
"0.67672485",
"0.67579806",
"0.6752876",
"0.... | 0.6663393 | 25 |
Get player with the given name. | def NMoC(mWFP: str) -> dict:
oyg0 = xuqZ('\n query ($name: String!) {\n getPlayer(name: $name) {\n name\n\n clan {\n name\n }\n }\n }\n ', {'name': mWFP})['getPlayer']
return oyg0 if oyg0 else {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BNnX(YKHO, u46J):\n return YKHO._collection.find_one({'name': u46J})",
"def wCjj(YKHO, mWFP):\n for d6pt in range(0, len(YKHO.player_list)):\n if YKHO.player_list[d6pt].name == mWFP:\n return YKHO.player_list[d6pt]",
"def nAM4(GALv):\n return G1dS.find_one({'name': GALv})",
"de... | [
"0.84272826",
"0.82339275",
"0.8024249",
"0.7683846",
"0.76587564",
"0.7602995",
"0.7510318",
"0.74664646",
"0.7370733",
"0.7318315",
"0.7076412",
"0.7060022",
"0.7052386",
"0.6998766",
"0.696483",
"0.6954607",
"0.69478905",
"0.68639946",
"0.6822522",
"0.6788078",
"0.67383355... | 0.6551747 | 29 |
Apply a multivariate function to a list of arguments in a distributed fashion. Uses Apache Spark's map() and collect() functions provided by a resilient distributed dataset (RDD). | def ujem(m2Zb, eG4M):
if Gxc_.spark._connection is None:
rhwM = 'No connection ("context") was established to a Spark scheduler ("master") that distributes jobs to workers ("slaves"). Please use unified_map.cluster_setup.spark and/or Apache Spark\'s command line interface for\n 1. Starting a scheduler\n 2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j9ZK(JfyU, *qIxc, **B2fa):\n jdKX = YLnl(JfyU, **B2fa) if B2fa else JfyU\n pK_x = map(jdKX, *qIxc)\n return tuple(map(list, zip(*pK_x)))",
"def map(YKHO, JfyU, fddJ):\n for qIxc in fddJ:\n YKHO.add_task(JfyU, qIxc)",
"def map(YKHO, JfyU, fddJ):\n for qIxc in fddJ:\n YKHO.add_ta... | [
"0.7013394",
"0.67897797",
"0.67897797",
"0.67897797",
"0.67897797",
"0.67897797",
"0.67401904",
"0.663029",
"0.6341223",
"0.631325",
"0.6276779",
"0.62688166",
"0.6231729",
"0.6218795",
"0.6177423",
"0.6157222",
"0.6155667",
"0.6112402",
"0.61121416",
"0.6021264",
"0.5998994... | 0.66243523 | 8 |
Get the name of the current hash_table | def jfg5(w2B8):
vexM = 'SELECT cnt FROM num_hash_tables LIMIT 1'
Ylbp = w2B8.execute(vexM)
g46F = Ylbp.fetchone()[0]
return 'hashes' + str(g46F + 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GTA_(YKHO):\n return YKHO._new_table.name",
"def LKuW(YKHO):\n return YKHO._table",
"def GTA_(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'table_name')",
"def mWFP(YKHO) -> str:\n return f'lookup_table_{YKHO.table_number}'",
"def tyNF(YKHO):\n return YKHO._table_name",
"def Tr4l... | [
"0.743976",
"0.74046886",
"0.7403458",
"0.739508",
"0.71723133",
"0.69462574",
"0.6925788",
"0.68860376",
"0.68860376",
"0.68860376",
"0.6801599",
"0.6788476",
"0.6725935",
"0.67089486",
"0.6663271",
"0.661204",
"0.65686953",
"0.65484923",
"0.65484923",
"0.65484923",
"0.65484... | 0.70763487 | 5 |
Loads saved weights into the model | def tyeH(YKHO, pmON):
with pmON.open('rb') as eHNT:
_mSQ = ht2j.load(eHNT)
ezYl(YKHO.align, _mSQ)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ks9j(YKHO):\n raise NotImplementedError",
"def ks9j(YKHO, Ux0P):\n YKHO.model.load_weights(Ux0P)",
"def uyMl(YKHO):\n N8sm = YKHO.config.path_tmp / YKHO.model.model_name\n if N8sm.exists():\n YKHO.model.load_weights(str(N8sm / 'model.vec'))",
"def uyMl(YKHO):\n if Hy7s.path.exists(Y... | [
"0.8584854",
"0.8051734",
"0.7975459",
"0.7843039",
"0.78217083",
"0.7783254",
"0.7780757",
"0.77486104",
"0.77474076",
"0.76526576",
"0.76364684",
"0.7628087",
"0.7606195",
"0.7592399",
"0.7569124",
"0.75608027",
"0.7512203",
"0.74789596",
"0.7412149",
"0.74093217",
"0.73599... | 0.0 | -1 |
Initialize the last level of the submodule by copying the trained weights of the previous level. If the submodule has only one level, this does nothing. | def C0QD(YKHO):
if len(YKHO.aligners) > 1:
xA7f = YKHO.aligners[-2].state_dict()
YKHO.aligners[-1].load_state_dict(xA7f)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTi3(YKHO):\n ZylS.nest.map_structure(dIoi.WeightsInitializer.initialize_layer_or_model, YKHO._layer_nest)",
"def vB93(YKHO):\n with ht2j.no_grad():\n YKHO._init_weights()",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()",
"def vB93(YKHO):\n YKHO.apply(YKHO._... | [
"0.6555308",
"0.65542924",
"0.6516142",
"0.6435867",
"0.6367791",
"0.6320743",
"0.6299895",
"0.6299895",
"0.6244288",
"0.624122",
"0.61636996",
"0.61531466",
"0.613866",
"0.61125994",
"0.60946697",
"0.60602593",
"0.6050328",
"0.6047783",
"0.6025299",
"0.5995144",
"0.59872377"... | 0.0 | -1 |
The ratio of the pixel size of the submodule's highest level to the pixel size at its lowest level. By assumption, each level of the network has equal ability, so this is a measure of the power of the submodule to detect and correct large misalignments in its input scale. | def ldZo(YKHO):
return 2 ** (YKHO.levels[-1] - YKHO.levels[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n57v(YKHO):\n Rivs = YKHO.bwstats.mean\n if Rivs == 0.0:\n return 0\n else:\n return YKHO.bw / (1024.0 * Rivs)",
"def KY2z(YKHO):\n Rivs = yoqz.global_bw_mean\n if Rivs == 0.0:\n return 0\n else:\n return YKHO.bw / Rivs",
"def _19n(mX4p):\n IQC9 = oyIN.asarr... | [
"0.7090294",
"0.69187427",
"0.6845626",
"0.68056935",
"0.6804496",
"0.6689286",
"0.6546418",
"0.6481675",
"0.6480454",
"0.64782405",
"0.64707774",
"0.64487565",
"0.64093184",
"0.6394367",
"0.63651735",
"0.6363298",
"0.63385826",
"0.6244807",
"0.6220742",
"0.6217956",
"0.61915... | 0.8347412 | 0 |
Constructor for bilstm model | def FIMM(YKHO, GPtr, LT6S, Pha6, zk33, rrBf=None):
if not LT6S:
GPtr.hidden_dropout_prob = 0.0
with ZylS.variable_scope(rrBf, default_name='BiLSTM'):
with ZylS.variable_scope('word_embedding'):
ROpF = [GPtr.vocab_size, GPtr.hidden_size]
YKHO.word_embeddings, YKHO.word_emb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zi3C, wjbX, CLda=1, jTqs=2, begE=None):\n super(AR4T, YKHO).__init__()\n YKHO.device = begE\n YKHO.hidden_size = wjbX\n YKHO.num_layers = CLda\n YKHO.lstm = U78l.LSTM(zi3C, wjbX, CLda, batch_first=True, bidirectional=True)\n YKHO.fc = U78l.Linear(wjbX * 2, jTqs)",
"def FIMM(YKHO,... | [
"0.6946383",
"0.6768358",
"0.66468894",
"0.6636445",
"0.66240674",
"0.661152",
"0.6581458",
"0.65509546",
"0.65425116",
"0.6492243",
"0.64898944",
"0.64890593",
"0.6465945",
"0.64503247",
"0.64472294",
"0.6425319",
"0.6422641",
"0.6419229",
"0.6404975",
"0.6390169",
"0.638796... | 0.0 | -1 |
Extract velocity (delta) and acceleration (deltadelta) of MFCC | def JyMK(UrXw: List[AudioData]) -> x1iM[DnYj]:
Aofo = []
for esI9 in UrXw:
UAKC = esI9.features.mfccs
if UAKC is None:
qmLP.warn('MFCCS is None. Ignoring.', RuntimeWarning)
else:
C7F0 = XTiz.reshape(XTiz.zeros_like(UAKC[:, 0]), (-1, 1))
p8Jz = XTiz.dif... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ywdk(YKHO, Rh4e):\n u54L = Rh4e.shape[1]\n a1kB = oyIN.empty(Rh4e.shape)\n gPtb = oyIN.empty(Rh4e.shape)\n for (lk9W, Dncu), BWXx in oyIN.ndenumerate(a1kB):\n if Dncu == 0 or Dncu == u54L - 1:\n a1kB[lk9W, Dncu] = 0\n gPtb[lk9W, Dncu] = 0\n else:\n a1k... | [
"0.6925445",
"0.60472375",
"0.5825626",
"0.5779192",
"0.574993",
"0.5702058",
"0.56942064",
"0.56308836",
"0.560489",
"0.5593632",
"0.5593474",
"0.5593474",
"0.55859834",
"0.55846334",
"0.55585855",
"0.5551218",
"0.55039656",
"0.5503926",
"0.5503592",
"0.55031115",
"0.5497280... | 0.6318472 | 1 |
Returns `True` if the pmf is valid and `False` otherwise. | def LyVf(yOP5, IPme):
try:
iZiA(yOP5, IPme)
except i15b:
return False
try:
cawI(yOP5, IPme)
except gPfc:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _sNk(yOP5, IPme):\n iZiA(yOP5, IPme)\n cawI(yOP5, IPme)\n return True",
"def deVW(YKHO):\n try:\n if YKHO.getPret() > 0 and YKHO.getAn() > 0 and YKHO.validProgram(YKHO.getProgram()):\n return True\n except:\n return False\n return False",
"def SGVO(YKHO):\n ret... | [
"0.72629184",
"0.683525",
"0.67881906",
"0.66712445",
"0.6650179",
"0.6612086",
"0.655477",
"0.6534502",
"0.65112597",
"0.6476417",
"0.64688957",
"0.64662915",
"0.64555866",
"0.6453171",
"0.6413354",
"0.64053214",
"0.6337531",
"0.63033265",
"0.6303076",
"0.629972",
"0.6294986... | 0.75679886 | 0 |
Generate the transition matrix for constant acceleration motion. | def mo3a(JRYC):
return oyIN.array([[1.0, JRYC, JRYC * JRYC * 0.5], [0.0, 1.0, JRYC], [0.0, 0.0, 1.0]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mo3a(YKHO):\n S3ce = oyIN.zeros((YKHO.n_states, YKHO.n_states))\n for jL4c in range(2, 2 ** YKHO.depth):\n S3ce[jL4c - 1, jL4c // 2 - 1] = 1.0\n return S3ce",
"def sgTf(A3Vt, E3D9, yvY1):\n ywwl = A3Vt.shape[0]\n jzdc = oyIN.zeros((ywwl, 3))\n for exwG in range(ywwl):\n for U7... | [
"0.618494",
"0.6060256",
"0.6003247",
"0.5915867",
"0.5794847",
"0.57776386",
"0.5735356",
"0.5724475",
"0.5705626",
"0.5680914",
"0.5677929",
"0.5656491",
"0.55629784",
"0.55590034",
"0.55503047",
"0.5535516",
"0.55351293",
"0.54985386",
"0.54946375",
"0.5466706",
"0.5435146... | 0.61626995 | 1 |