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 |
|---|---|---|---|---|---|---|
Remove given node from the tree. If this results in a parent with no childrens, parent is removed as well. | def kSdD(YKHO):
_AKB = YKHO.parent
YKHO.parent = None
if _AKB == None:
return None
_AKB.childs = [Z9rn for Z9rn in _AKB.childs if Z9rn != YKHO]
if not _AKB.childs:
_AKB.remove() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O_1Z(YKHO, pmON):\n vhyM = YKHO.get_node(pmON)\n if vhyM is YKHO.root:\n raise ValueError('Can not remove tree root')\n _AKB = vhyM.parent\n kLVi = jth9.copy(vhyM.adoptive_parents)\n for Q6kx in kLVi:\n YKHO.remove_adopted_child(Q6kx.title, vhyM.title)\n _AKB._remove_child(vhyM.... | [
"0.7768001",
"0.77628076",
"0.7651466",
"0.76423293",
"0.76194715",
"0.7569431",
"0.75348437",
"0.7528973",
"0.7493256",
"0.7433912",
"0.73405355",
"0.7313665",
"0.7268692",
"0.7253109",
"0.7061845",
"0.70487005",
"0.704031",
"0.7029225",
"0.70157576",
"0.69879484",
"0.697831... | 0.8001854 | 0 |
Format seconds into human readable format. | def ct8j(ITS7):
eRPr, C6wh = divmod(int(ITS7), 60)
Wave, O66n = divmod(eRPr, 60)
if Wave > 0:
return '{:0>2d}:{:0>2d}:{:0>2d}'.format(Wave, O66n, C6wh)
elif O66n > 0:
return '{:0>2d}:{:0>2d}'.format(O66n, C6wh)
elif C6wh > 0:
return '{:.0f} sec'.format(C6wh)
elif ITS7 >= ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reXX(YKHO, C6wh):\n r8hN, KCHu = divmod(C6wh, 60)\n MKlR, r8hN = divmod(r8hN, 60)\n l5Ny = '%d hours %02d mins %02d seconds' % (MKlR, r8hN, KCHu)\n return l5Ny",
"def ct8j(C6wh):\n return str(fCoM(seconds=C6wh))",
"def ydYv(YKHO, C6wh):\n Wave = C6wh / 3600\n C6wh -= 3600 * Wave\n O... | [
"0.83706737",
"0.8210935",
"0.8078692",
"0.8055625",
"0.7987414",
"0.79831743",
"0.79600817",
"0.7943381",
"0.79137117",
"0.78504986",
"0.7846185",
"0.7836734",
"0.7819962",
"0.7814555",
"0.7768408",
"0.77598774",
"0.7748891",
"0.7747558",
"0.7741953",
"0.77395546",
"0.773393... | 0.0 | -1 |
Return whether this MerkleNode is a MerkleLeaf. | def loae(YKHO):
return YKHO._is_leaf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jwB3(YKHO) -> bool:\n pass",
"def jwB3(YKHO):\n return False",
"def sBJL(YKHO):\n return GYhQ.b2TreeNode_IsLeaf(YKHO)",
"def jwB3(YKHO):\n return YKHO.__dataStorer.isLeaf",
"def jwB3(YKHO):\n return len(YKHO.children) == 0",
"def jwB3(YKHO):\n return YKHO.left is None and YKHO.right... | [
"0.78203535",
"0.75682485",
"0.75382775",
"0.74850774",
"0.74653107",
"0.7301128",
"0.7301048",
"0.7231464",
"0.7231464",
"0.7231464",
"0.7231464",
"0.7209204",
"0.71411455",
"0.7104396",
"0.7103048",
"0.7060852",
"0.7048795",
"0.7044872",
"0.70437837",
"0.70094854",
"0.70058... | 0.7161668 | 12 |
Add a MerkleNode to a MerkleTree. | def g5gD(YKHO, Q6kx):
if Q6kx is None:
raise RuntimeError('attempt to add null node')
if not isinstance(Q6kx, kLV5) and (not isinstance(Q6kx, daL8)):
raise RuntimeError('node being added not MerkleTree or MerkleLeaf')
YKHO._nodes.append(Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _oky(YKHO, **B2fa):\n pass",
"def g5gD(YKHO, Q6kx):\n YKHO.root.add_node(Q6kx)",
"def H2v5(YKHO, Q6kx):\n YKHO._add(YKHO.root, Q6kx)",
"def g5gD(YKHO, yiBS, auXa):\n YKHO.add_node_on_level([auXa], yiBS)",
"def MEz2(YKHO, Q6kx=None, kFcs=False):\n YKHO._add(node=Q6kx, is_root=kFcs)",
"d... | [
"0.66496557",
"0.6503211",
"0.62444806",
"0.62144625",
"0.61914843",
"0.61382306",
"0.6107682",
"0.60441124",
"0.6038859",
"0.602557",
"0.602557",
"0.6022492",
"0.6018603",
"0.60149246",
"0.60007375",
"0.59897625",
"0.5988369",
"0.5988369",
"0.5974128",
"0.5955087",
"0.594698... | 0.71594703 | 0 |
Assert that the pipeline ignores FixImbalancer during predicting. | def EvZh(nPIK):
nPrm = yLtf('juice', verbose=False)
nPIK.fit(nPrm.iloc[:, :-1], nPrm.iloc[:, -1])
assert len(nPIK.transform(nPrm.iloc[:, :-1])) == len(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WciN():\n Ae2G = Ygy8(X8Rg, CFMy())\n assert Ae2G\n assert Ae2G.floatingip is None",
"def ch0F(YKHO):\n SRYB = ZylS.constant(oyIN.arange(5))\n dt0H = ZylS.constant(True)\n for cQRg in [-1, 2, 0]:\n with YKHO.assertRaises(ValueError):\n hr1G(SRYB, cQRg, dt0H)",
"def DIEx(... | [
"0.61194915",
"0.5975431",
"0.5970917",
"0.594929",
"0.589808",
"0.5890031",
"0.58383626",
"0.5822363",
"0.5815223",
"0.580599",
"0.5802923",
"0.5799308",
"0.5792902",
"0.57755625",
"0.57750905",
"0.577116",
"0.5733454",
"0.57060707",
"0.5695102",
"0.5693062",
"0.56890583",
... | 0.0 | -1 |
Calculate GAN loss for the discriminator | def Vwc0(YKHO, Zr3k, wWvP, n9UN):
EhEJ = Zr3k(wWvP)
aPrI = YKHO.criterionGAN(EhEJ, True)
K3La = Zr3k(n9UN.detach())
aySp = YKHO.criterionGAN(K3La, False)
bUYQ = (aPrI + aySp) * 0.5
bUYQ.backward()
return bUYQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MQYF(iMxe):\n if iMxe:\n N77f = xt2q(YNTO, uf3V)\n else:\n N77f = ZylS.add(xt2q(NcZM, PB_6), xt2q(1 - YNTO, AyLV), name=PhI6)\n return N77f",
"def AOC4(Oa1e, Csk6, Yw_3, i63c, **B2fa):\n WKvO = Oa1e(i63c, **B2fa)\n tTpl = ZylS.random.uniform([ZylS.shape(Yw_3)[0], 1, 1, 1])\n f... | [
"0.7656528",
"0.7500776",
"0.7443934",
"0.7375168",
"0.73524827",
"0.7344937",
"0.72886795",
"0.72307914",
"0.71859646",
"0.7184881",
"0.71775943",
"0.71699685",
"0.716676",
"0.7160415",
"0.7133836",
"0.7129042",
"0.7095958",
"0.7080802",
"0.7058385",
"0.7031051",
"0.7012525"... | 0.0 | -1 |
Get the relative path for a path | def NE63(pmON, u9Rr) -> GkAb:
XP5J = GkAb(pmON)
mSwx = GkAb(u9Rr).parent
return XP5J.relative_to(mSwx.parent) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3IS(YKHO, *pmON):\n return Hy7s.path.relpath(YKHO._getPath(*pmON), YKHO.workingDir.get())",
"def t_yv(YKHO, pmON):\n return Hy7s.path.join(YKHO.get_root_path(), pmON)",
"def NE63(tk5Y, pmON, P8oC=''):\n return Hy7s.path.relpath(BpbB(pmON, base=P8oC), tk5Y)",
"def NE63(YKHO):\n return GkAb(Hy... | [
"0.8320804",
"0.8155165",
"0.8073724",
"0.80633",
"0.8021118",
"0.7908847",
"0.7907424",
"0.78932005",
"0.78658795",
"0.7859181",
"0.78311926",
"0.7807821",
"0.7782455",
"0.776362",
"0.77562183",
"0.77525043",
"0.7734561",
"0.7732364",
"0.77257234",
"0.76626873",
"0.7661892",... | 0.80190593 | 5 |
Builds a finite ordered alphabet with an inverse for each letter. There must be no duplicate. Inverse letters are either given or computed by capitalization. The alphabet can also be specified by the number of letters and its type (default is 'abc'). ` | def FIMM(YKHO, gZgb, GOZd=None, type='abc'):
if isinstance(gZgb, (int, zllO)):
if type == 'abc':
if gZgb < 27:
YKHO._positive = ['%c' % (YRbF + 97) for YRbF in Ni9Y(gZgb)]
YKHO._negative = ['%c' % (YRbF + 65) for YRbF in Ni9Y(gZgb)]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aKuS():\n gZgb = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'}\n return gZgb",
"def nVdp():\n gZgb = [chr(WKvO) for WKvO in range(97, 123)] + [chr(WKvO) for WKvO in range(65, 91)] + [chr(WKvO) for WKvO in range(48, ... | [
"0.6718568",
"0.63754207",
"0.62732303",
"0.6257517",
"0.62232494",
"0.60609984",
"0.6032037",
"0.6009044",
"0.5982477",
"0.59609944",
"0.5950646",
"0.5946094",
"0.59151804",
"0.5908628",
"0.58034104",
"0.5796183",
"0.5786981",
"0.57742554",
"0.5727522",
"0.57246745",
"0.5717... | 0.69898206 | 0 |
The list of positive letters of this alphabet. | def DCce(YKHO):
return YKHO._positive | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xhvx(YKHO):\n return list(YKHO._alphabet)",
"def gZgb(YKHO):\n KSVb = set(['1', '0'])\n return KSVb",
"def gZgb(YKHO):\n KSVb = set(['1', '0'])\n return KSVb",
"def B_ai(YKHO):\n return YKHO._negative",
"def KoG3(YKHO):\n return YKHO._letters",
"def KCQ5():\n return ['a', 'b',... | [
"0.7314665",
"0.725227",
"0.725227",
"0.7191051",
"0.7189901",
"0.67610395",
"0.6667474",
"0.66614383",
"0.65640193",
"0.6557896",
"0.6543213",
"0.6448202",
"0.64449215",
"0.64229155",
"0.6379097",
"0.6376803",
"0.6370768",
"0.63470125",
"0.6324196",
"0.629117",
"0.6290438",
... | 0.7902446 | 0 |
A random letter, different from the letters in ``exclude``. | def fFlT(YKHO, DNHh=[]):
from sage.misc.prandom import randint
_ins = False
while not _ins:
r845 = randint(0, 2 * len(YKHO) - 1)
jzdc = YKHO[r845]
_ins = jzdc not in DNHh
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kBBn(YKHO, PWnE, xJTD):\n yDGm = ''\n YRbF = 0\n while YRbF < xJTD:\n bseI = tuKI.choice(vIwR.ascii_letters + vIwR.digits + vIwR.punctuation)\n if bseI.lower() not in PWnE and bseI.upper() not in PWnE:\n yDGm += bseI\n YRbF += 1\n return yDGm",
"def fFlT(YKHO):... | [
"0.7565157",
"0.6873854",
"0.6808579",
"0.6568195",
"0.65521175",
"0.65012485",
"0.643582",
"0.64190495",
"0.64015764",
"0.63138837",
"0.6312362",
"0.63037753",
"0.62813807",
"0.62197334",
"0.6169852",
"0.6161905",
"0.6155289",
"0.6154455",
"0.61424",
"0.6114386",
"0.60923564... | 0.85546106 | 0 |
Adds a new letter to the alphabet. The pair[positive_letter,negative_letter]. | def SioC(YKHO):
gfbf = YKHO._new_letter()
YKHO._positive.append(gfbf[0])
YKHO._negative.append(gfbf[1])
YKHO._inverse[gfbf[0]] = gfbf[1]
YKHO._inverse[gfbf[1]] = gfbf[0]
return gfbf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VFKS(qsWB, pu9u):\n jzdc = _LyC()\n FoNR = jzdc.get_letter_as_number(qsWB)\n dWj3 = jzdc.get_letter_as_number(pu9u)\n return jzdc.get_number_as_letter((FoNR + dWj3) % jzdc.get_modulus())",
"def sx4T(sZqf, hlel):\n hlel = list(hlel)\n hlel = NfUt(ord(sZqf), hlel)\n hlel.append(hcXw())\n ... | [
"0.6918583",
"0.687685",
"0.6780935",
"0.6608862",
"0.65541077",
"0.65175253",
"0.6494146",
"0.6396467",
"0.63866824",
"0.6380003",
"0.6362741",
"0.62603176",
"0.6231838",
"0.622612",
"0.6169734",
"0.6083465",
"0.6049081",
"0.6042249",
"0.6010252",
"0.59854615",
"0.5944103",
... | 0.807925 | 0 |
Adds ``n`` new letters to the alphabet. | def cKbi(YKHO, exwG=1):
mPxu = YKHO._new_letters(exwG)
YKHO._positive += [jzdc[0] for jzdc in mPxu]
YKHO._negative += [jzdc[1] for jzdc in mPxu]
YKHO._inverse.update(((jzdc[0], jzdc[1]) for jzdc in mPxu))
YKHO._inverse.update(((jzdc[1], jzdc[0]) for jzdc in mPxu))
return mPxu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZRxh(exwG):\n XsH_ = [tuKI.choice(vIwR.ascii_lowercase) for YRbF in range(exwG)]\n return ''.join(XsH_)",
"def Dooq(exwG, gZgb):\n return gZgb[exwG:] + gZgb[:exwG]",
"def Kp52(exwG):\n return ''.join((tuKI.choice(vIwR.ascii_lowercase) for bGrB in range(exwG)))",
"def VFKS(sZqf, exwG, GIN8, q6... | [
"0.69851226",
"0.6549431",
"0.6482328",
"0.64789444",
"0.6474557",
"0.6464541",
"0.63897496",
"0.63734466",
"0.62878954",
"0.62425244",
"0.61578983",
"0.61083317",
"0.60950816",
"0.6029365",
"0.60015464",
"0.59959185",
"0.5955989",
"0.5938098",
"0.5922966",
"0.58852196",
"0.5... | 0.8246179 | 0 |
Create a binary mask Function to create a binary mask where thresholds are met. 1. Apply the threshold, zeros otherwise. 2. Return the binary image. | def rS0F(VXjJ, knl1):
neaT = oyIN.zeros_like(VXjJ)
neaT[(VXjJ >= knl1[0]) & (VXjJ <= knl1[1])] = 1
return neaT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tQSB(BFeB: np.ndarray, gwAu: float=-1) -> oyIN.ndarray:\n ZHfW = XQXy.thresholding(BFeB, gwAu)\n ZHfW = XQXy.cleaning_binary(ZHfW, kernel_size=5)\n return ZHfW",
"def lvOK(nvEb, gwAu):\n Ntj0 = oyIN.zeros((nvEb.shape[0], nvEb.shape[1]), dtype=oyIN.int8)\n Ntj0[nvEb >= gwAu] = 1\n return Ntj... | [
"0.8149168",
"0.79678315",
"0.7724992",
"0.7575235",
"0.7554852",
"0.75528234",
"0.7481195",
"0.7430257",
"0.73117375",
"0.72780716",
"0.7169709",
"0.7114856",
"0.7047135",
"0.7044015",
"0.6998432",
"0.69544005",
"0.6890761",
"0.688699",
"0.6827137",
"0.6767084",
"0.67258304"... | 0.7650909 | 3 |
Color space threshold Function to threshold the Schannel of an image. 1. Convert from RGB to HLS. 2. Extract the SChannel. 4. Return the binary thresholded image. | def kS7z(YKHO, VXjJ, knl1=(0, 255)):
qJtC = XC5k.cvtColor(VXjJ, XC5k.COLOR_RGB2HLS)
ZZTP = qJtC[:, :, 2]
return rS0F(ZZTP, knl1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UtPY(YKHO, VXjJ, knl1=(0, 255)):\n qJtC = XC5k.cvtColor(VXjJ, YKHO.color_convert['2HLS'])\n ZZTP = qJtC[:, :, 2]\n LRCT = oyIN.zeros_like(ZZTP)\n LRCT[(ZZTP > knl1[0]) & (ZZTP <= knl1[1])] = 1\n return LRCT",
"def mKvZ(YKHO, VXjJ, knl1=(100, 255)):\n qJtC = XC5k.cvtColor(VXjJ, XC5k.COLOR_BG... | [
"0.8284995",
"0.8088936",
"0.7993608",
"0.7936668",
"0.79277915",
"0.78090847",
"0.7741473",
"0.7687215",
"0.76523864",
"0.7644695",
"0.7625037",
"0.7609147",
"0.76015097",
"0.7561736",
"0.75391793",
"0.74988663",
"0.7474388",
"0.74657255",
"0.74428165",
"0.7425019",
"0.73773... | 0.7894492 | 5 |
Decorator to build a property returning a SinkAsync subscriber. | def mfwe(NyFp=None, *, Tuqy: AsyncMode=UUV3.CONCURRENT, n70N=t1Yz, MZ6z: bool=False):
def tDe1(NyFp):
@property
def UZpV(YKHO):
return tQBi(NyFp, YKHO, mode=Tuqy, error_callback=n70N, unpack=MZ6z)
return UZpV
if NyFp:
return tDe1(NyFp)
return tDe1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vb6C(NyFp=None, *, Tuqy: AsyncMode=UUV3.CONCURRENT, MZ6z: bool=False):\n\n def UZpV(NyFp):\n return tQBi(NyFp, mode=Tuqy, unpack=MZ6z)\n if NyFp:\n return UZpV(NyFp)\n return UZpV",
"def EWrU(NyFp=None, *, Tuqy: AsyncMode=UUV3.CONCURRENT, n70N=t1Yz, MZ6z: bool=False):\n\n def UZpV(N... | [
"0.61341816",
"0.59847796",
"0.5864466",
"0.56525093",
"0.555901",
"0.5062817",
"0.50289565",
"0.5023941",
"0.50079393",
"0.49941882",
"0.49495897",
"0.49236405",
"0.4916677",
"0.49043864",
"0.4872168",
"0.4860715",
"0.48481223",
"0.48344526",
"0.47999796",
"0.4788812",
"0.47... | 0.6990235 | 0 |
Stops the application and closes the render connection Removes all the pages from the ADK stack. Free graphic memory. | def HySU():
from wuk import application
RKD7.warning('Entering into the cleanup process.')
def gm5M(bGrB):
application.destroy()
from adele_app.services import Services
Services().stop()
import gc
gc.collect()
from leon_mal.player import BasePlayer
BasePlayer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W4JM(YKHO):\n YKHO._renderer.cleanup()\n if _nhu.renderer.get_info().api == Jw4N.OPENGL:\n TK_X.SDL_GL_DeleteContext(YKHO._handles.renderer.context)\n TK_X.SDL_DestroyWindow(YKHO._handles.window)\n TK_X.SDL_Quit()",
"def DDI8(YKHO):\n YKHO._renderer.close()",
"def DDI8(YKHO):\n YKH... | [
"0.7163541",
"0.70024806",
"0.6880498",
"0.68289804",
"0.6627853",
"0.66152257",
"0.65989405",
"0.6573106",
"0.6572023",
"0.6557434",
"0.6497703",
"0.64867836",
"0.6479484",
"0.6474077",
"0.6473198",
"0.64730513",
"0.646641",
"0.64620346",
"0.6456541",
"0.64482355",
"0.641158... | 0.70848274 | 1 |
Create txn chain from txn unit. | def LAYY(nXg_: TransactionUnit, Wre8: Dict[str, TransactionUnit]) -> Fjez:
w3Gj = nXg_.txid
AWTy = nXg_.fee
V3oS = nXg_.weight
for _AKB in nXg_.parents:
if Wre8.get(_AKB) is not None:
AWTy += Wre8[_AKB].fee
V3oS += Wre8[_AKB].weight
else:
nXg_.parents.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def owNz(YKHO, *qIxc, **B2fa):\n mBtZ = YKHO.transactionbuilder_class(*qIxc, blockchain_instance=YKHO, **B2fa)\n YKHO._txbuffers.append(mBtZ)\n return mBtZ",
"def Cc7Y(YKHO, eNCK):\n for XkN1 in iter(eNCK):\n for UShr in XkN1.data:\n YKHO.new_tx(UShr, XkN1.index)",
"def jAQL(Q6kx,... | [
"0.5757757",
"0.5683647",
"0.56671685",
"0.5659681",
"0.5583904",
"0.55668706",
"0.5555397",
"0.5450045",
"0.5427712",
"0.5422775",
"0.541318",
"0.5400016",
"0.53946525",
"0.5389569",
"0.5364204",
"0.5341941",
"0.5334212",
"0.5291074",
"0.527896",
"0.5264222",
"0.52091604",
... | 0.671984 | 0 |
Measure the similarity between two strings using Jaro (not JaroWinkler) distance, which searches for common characters while taking transpositions and string lengths into account. | def W0Z9(Y0Fj: str, Pb4f: str) -> float:
PWHU = phGw(Y0Fj, Pb4f)
if PWHU:
return PWHU
return QYBQ(Y0Fj, Pb4f) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kp2I(zxIH, GR10):\n zxIH = set(zxIH.split())\n GR10 = set(GR10.split())\n XMlP = zxIH.intersection(GR10)\n return float(len(XMlP)) / (len(zxIH) + len(GR10) - len(XMlP))",
"def h_I6(xA4e, mhhC, SGPK={}):\n\n def aGCZ(xA4e, mhhC):\n \"\"\" Align characters of one string against those o... | [
"0.7619964",
"0.75675815",
"0.7556621",
"0.748543",
"0.74804723",
"0.74080443",
"0.73539525",
"0.7291931",
"0.72841614",
"0.72821546",
"0.7223321",
"0.7210034",
"0.7163687",
"0.7144918",
"0.7129904",
"0.7122874",
"0.71220154",
"0.7117963",
"0.71160173",
"0.7103062",
"0.710057... | 0.67971975 | 53 |
This function checks if the input VCF file is gzip or not. | def EgEQ(n2dd):
if n2dd.endswith('.gz'):
return (lGU7.open, 'rt')
else:
return (open, 'r') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P9BO(hGN5):\n if len(hGN5) > 3 and ord(hGN5[0:1]) == 31 and (ord(hGN5[1:2]) == 139) and (ord(hGN5[2:3]) == 8):\n return True\n return False",
"def i4c8(Ux0P):\n eHNT = open(Ux0P, 'rb')\n xTfc = eHNT.read(1)\n SluS = eHNT.read(1)\n eHNT.close()\n return xTfc == chr(31) and SluS == ... | [
"0.7833209",
"0.77092135",
"0.7661029",
"0.7576281",
"0.7568743",
"0.7451184",
"0.73235327",
"0.7274227",
"0.7258567",
"0.72250676",
"0.7212761",
"0.7210412",
"0.7107937",
"0.70616066",
"0.70310557",
"0.70269215",
"0.6951092",
"0.68282807",
"0.68122494",
"0.6753963",
"0.67241... | 0.63683134 | 31 |
Return package version as listed in `__version__` in `__init__.py`. | def kaPv(B5hb):
Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read()
return ZbWC.search('__version__ = [\'"]([^\'"]+)[\'"]', Eosz).group(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(B5hb):\n Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read()\n return ZbWC.search('__version__ = [\\'\"]([^\\'\"]+)[\\'\"]', Eosz).group(1)",
"def kaPv():\n from . import __version__\n return __version__",
"def NMoC():\n D9fZ = XtZ5()\n if len(D9fZ) == 0:\n raise ValueErro... | [
"0.83236074",
"0.8307273",
"0.8264562",
"0.8259272",
"0.82559836",
"0.8251822",
"0.8251822",
"0.82392997",
"0.8234691",
"0.82227683",
"0.82227683",
"0.8207317",
"0.8201571",
"0.81449705",
"0.81278867",
"0.8012865",
"0.79814714",
"0.791105",
"0.7895724",
"0.78344333",
"0.78223... | 0.8248559 | 7 |
vector batch to matrix batch | def CHVk(Ty9i):
r8hN = ZylS.tile(Ty9i, [1, Ty9i.shape[1]])
r8hN = ZylS.reshape(r8hN, [Ty9i.shape[0], Ty9i.shape[1], Ty9i.shape[1]])
return r8hN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vVuI(Yw_3, H2v2, TVTK):\n return oyIN.reshape(Yw_3, (-1, H2v2, TVTK))",
"def HeDM(he6J):\n exwG = int(PZyS(len(he6J)))\n return he6J.reshape((exwG, exwG)).T",
"def HeDM(he6J):\n exwG = int(oyIN.sqrt(len(he6J)))\n return he6J.reshape((exwG, exwG)).T",
"def RMP2(ZyKO, z3o7):\n return ht2j... | [
"0.71496546",
"0.7097481",
"0.6964336",
"0.6929702",
"0.68897444",
"0.6827614",
"0.6778308",
"0.6668006",
"0.660734",
"0.65182155",
"0.64741707",
"0.6459944",
"0.64527255",
"0.64221233",
"0.6413861",
"0.6362176",
"0.6353098",
"0.63111186",
"0.62843114",
"0.6272438",
"0.625194... | 0.6382595 | 15 |
Convert primary key attribute tuple into its SQL CREATE TABLE clause. Default values are not reflected. This is used for declaring foreign keys in referencing tables | def Pe9W(YKHO):
assert YKHO.in_key and (not YKHO.nullable)
return '`{name}` {type} NOT NULL COMMENT "{comment}"'.format(name=YKHO.name, type=YKHO.type, comment=YKHO.comment) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WY0I(tyNF, azoT):\n Pe9W = f'CREATE TABLE IF NOT EXISTS {tyNF} (\\n id INT AUTO_INCREMENT PRIMARY KEY,\\n {','.join([ZfUD[0] + ' ' + ZfUD[1] for ZfUD in azoT.items()])}\\n )'\n return Pe9W",
"def l6oR(YKHO):\n return 'CREATE TABLE {table_name} ({fields});'.format(tab... | [
"0.71906143",
"0.68657917",
"0.68018866",
"0.6706706",
"0.6546111",
"0.6515806",
"0.64740306",
"0.637579",
"0.6346037",
"0.63398546",
"0.6328172",
"0.6325181",
"0.6321033",
"0.6310558",
"0.63087773",
"0.6209985",
"0.6205062",
"0.62013716",
"0.619587",
"0.6183094",
"0.61415076... | 0.5659669 | 66 |
represent the heading as a numpy dtype | def AUgy(YKHO):
return oyIN.dtype(dict(names=YKHO.names, formats=[Ty9i.dtype for Ty9i in YKHO.attributes.values()])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OCDo(YKHO):\n return ['TEXT', 'REAL', 'REAL', 'REAL', 'REAL', 'REAL', 'REAL', 'REAL']",
"def fr2p():\n return XTiz.dtype(OOEs() + Zrvj())",
"def iR6h(YKHO):\n return YKHO.hardware_dtype",
"def W8mS(YKHO):\n for exwG, mWFP in enumerate(YKHO.header.dtype.names):\n print(mWFP + ' : ' + st... | [
"0.6794672",
"0.64915335",
"0.6468996",
"0.6430483",
"0.63265544",
"0.63033986",
"0.6273745",
"0.62605625",
"0.6260512",
"0.6260512",
"0.6260512",
"0.6260512",
"0.6260512",
"0.62449473",
"0.6182361",
"0.61508673",
"0.61384255",
"0.61352026",
"0.6071331",
"0.6071331",
"0.60713... | 0.64525956 | 3 |
Return if the cover is closed. | def SEEh(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SEEh(YKHO) -> bool:\n return YKHO.get_cover_state() == ovfH.CLOSED",
"def SEEh(YKHO):\n return YKHO.current_cover_position <= 0",
"def SEEh(YKHO):\n if YKHO.current_cover_position is None:\n return None\n if YKHO.current_cover_position > 0:\n return False\n return True",
"def... | [
"0.8674357",
"0.85929483",
"0.8581903",
"0.8514324",
"0.83912706",
"0.8091718",
"0.78868335",
"0.7867775",
"0.77911067",
"0.77088606",
"0.76900125",
"0.762978",
"0.76188684",
"0.75890225",
"0.7524626",
"0.7510817",
"0.75064564",
"0.7499444",
"0.7487342",
"0.7457982",
"0.74218... | 0.7153536 | 46 |
find the closest clusters | def q0S6(TaUL):
pImw, q2Xo = min(((Csk6, Z9rn) for Z9rn, Csk6 in TaUL.items()))
return (q2Xo, pImw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q0S6(YKHO):\n kZIt, q2Xo = min(((YKHO.cluster_distance(dg7v, iYf1), (dg7v, iYf1)) for dg7v, iYf1 in E6VQ(YKHO.clusters, 2) if YKHO.cluster_distance(dg7v, iYf1) > 0))\n return (kZIt, q2Xo)",
"def q0S6(YKHO):\n min = YKHO.cluster_distance(YKHO.clusters[0], YKHO.clusters[1])\n dg7v = YKHO.clusters[0... | [
"0.8078063",
"0.8023405",
"0.75140804",
"0.72912323",
"0.7129846",
"0.7110501",
"0.7101599",
"0.70875746",
"0.70686626",
"0.7052213",
"0.7044337",
"0.7003222",
"0.6991007",
"0.6941802",
"0.69213015",
"0.6847045",
"0.67949",
"0.67915016",
"0.6778808",
"0.67771596",
"0.67649424... | 0.6892204 | 15 |
List of parameters actually included in the model, in sorted order. TODO Make this an dict with slice or indices as the values. | def dEu8(YKHO):
T5Ri = YKHO.model_orders
NArs = [T4Wy for T4Wy in YKHO.params_complete if T5Ri[T4Wy] > 0]
if 'exog' in NArs and (not YKHO.mle_regression):
NArs.remove('exog')
return NArs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DTb0(YKHO):\n nF4o = YKHO.param_terms\n pbTU = YKHO.model_names\n return [mWFP for xqoZ in nF4o for mWFP in pbTU[xqoZ]]",
"def VxeF(YKHO):\n return [G1Hx for G1Hx in YKHO._parorder if YKHO.params[G1Hx]]",
"def NArs(YKHO):\n return []",
"def NArs(YKHO):\n return []",
"def NArs(YKHO):\n... | [
"0.75182986",
"0.7354704",
"0.7142846",
"0.7075709",
"0.7075709",
"0.7075709",
"0.7062147",
"0.70593923",
"0.70593923",
"0.70281667",
"0.702348",
"0.7012901",
"0.69681007",
"0.69681007",
"0.69681007",
"0.69652385",
"0.69024193",
"0.68829876",
"0.6882795",
"0.6797616",
"0.6770... | 0.6821637 | 19 |
(array) Moving average parameters actually estimated in the model. Does not include seasonal moving average parameters (see `seasonalmaparams`) or parameters whose values are constrained to be zero. | def x70o(YKHO):
return YKHO._params_ma | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wy91(YKHO):\n\n def j4mt(Ty9i):\n exwG = Ty9i.name\n return exwG.endswith('moving_mean:0') or exwG.endswith('moving_variance:0')\n if not YKHO._moving_average_variables:\n YKHO._moving_average_variables = filter(j4mt, YKHO.variables)\n return YKHO._moving_average_variables",
"de... | [
"0.6627803",
"0.64973587",
"0.64759326",
"0.63721895",
"0.63721895",
"0.63721895",
"0.60568005",
"0.60446477",
"0.60407305",
"0.60073566",
"0.596868",
"0.5967939",
"0.5944848",
"0.5887731",
"0.5887019",
"0.5841903",
"0.58188474",
"0.57982856",
"0.57838815",
"0.57134694",
"0.5... | 0.0 | -1 |
Update parameters using one step of gradient descent with momentum. | def ZmgZ(SGPK, vtNT, b0Ix, Ty9i, UqYS):
aPd6 = len(SGPK) // 2
for vC9B in range(1, aPd6 + 1):
Ty9i['dW' + str(vC9B)] = UqYS * Ty9i['dW' + str(vC9B)] + (1 - UqYS) * vtNT['dW' + str(vC9B)]
Ty9i['db' + str(vC9B)] = UqYS * Ty9i['db' + str(vC9B)] + (1 - UqYS) * vtNT['db' + str(vC9B)]
SGPK['W'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EWqU(YKHO, NArs, tqYv, b0Ix):\n YKHO.momentum_velocity_ = [0.0] * len(tqYv)\n oWRZ = Kt_s.sqrt(sum(map(lambda WKvO: Kt_s.sqr(WKvO).sum(), tqYv)))\n Vhxs = U8Lr()\n Y6D_ = Kt_s.or_(Kt_s.isnan(oWRZ), Kt_s.isinf(oWRZ))\n nm4r = Kt_s.maximum(5.0, oWRZ)\n for exwG, (xqoZ, Ro40) in enumerate(zip(NA... | [
"0.7659387",
"0.7634263",
"0.74244064",
"0.7412028",
"0.7311532",
"0.729209",
"0.7250426",
"0.7211509",
"0.7195341",
"0.7183976",
"0.71821",
"0.71449107",
"0.7114792",
"0.7100581",
"0.70995635",
"0.70780826",
"0.7060148",
"0.70040137",
"0.6980516",
"0.6967653",
"0.69522524",
... | 0.6918792 | 25 |
Update parameters using one step of gradient descent with RMSProp. | def MDwj(SGPK, vtNT, b0Ix, KCHu, UqYS, _hZ2=1e-07):
aPd6 = len(SGPK) // 2
for vC9B in range(1, aPd6 + 1):
KCHu['dW' + str(vC9B)] = UqYS * KCHu['dW' + str(vC9B)] + (1 - UqYS) * vtNT['dW' + str(vC9B)] ** 2
KCHu['db' + str(vC9B)] = UqYS * KCHu['db' + str(vC9B)] + (1 - UqYS) * vtNT['db' + str(vC9B)]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x2Fr(YKHO):\n c6SZ = 1\n if c6SZ > 1:\n YKHO._number_grad_accum = (YKHO._number_grad_accum + 1) % c6SZ\n if YKHO._number_grad_accum != 0:\n return\n if YKHO.opt['gradient_clip'] > 0:\n ht2j.nn.utils.clip_grad_norm_(YKHO.model_dis.parameters(), YKHO.opt['gradient_clip'])... | [
"0.7588846",
"0.716508",
"0.71214557",
"0.70252347",
"0.6972802",
"0.69688123",
"0.6968024",
"0.69374186",
"0.69330245",
"0.6927297",
"0.68774956",
"0.68150043",
"0.67970836",
"0.67840385",
"0.67840385",
"0.6771033",
"0.6765749",
"0.67425066",
"0.6731388",
"0.6723317",
"0.671... | 0.64989835 | 52 |
Update parameters using one step of gradient descent with momentum. | def lOAT(SGPK, vtNT, b0Ix, Ty9i, KCHu, a1PO, dgWh=0.9, znmT=0.999, _hZ2=1e-08):
aPd6 = len(SGPK) // 2
O8tL = {}
nh1e = {}
for vC9B in range(1, aPd6 + 1):
Ty9i['dW' + str(vC9B)] = dgWh * Ty9i['dW' + str(vC9B)] + (1 - dgWh) * vtNT['dW' + str(vC9B)]
Ty9i['db' + str(vC9B)] = dgWh * Ty9i['db'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EWqU(YKHO, NArs, tqYv, b0Ix):\n YKHO.momentum_velocity_ = [0.0] * len(tqYv)\n oWRZ = Kt_s.sqrt(sum(map(lambda WKvO: Kt_s.sqr(WKvO).sum(), tqYv)))\n Vhxs = U8Lr()\n Y6D_ = Kt_s.or_(Kt_s.isnan(oWRZ), Kt_s.isinf(oWRZ))\n nm4r = Kt_s.maximum(5.0, oWRZ)\n for exwG, (xqoZ, Ro40) in enumerate(zip(NA... | [
"0.7660879",
"0.7634131",
"0.74232256",
"0.74118656",
"0.7312307",
"0.7293686",
"0.72510666",
"0.72129625",
"0.71947414",
"0.7183699",
"0.7182181",
"0.71444154",
"0.71152717",
"0.7101011",
"0.7098619",
"0.70784354",
"0.7060853",
"0.70046884",
"0.6980509",
"0.6968479",
"0.6953... | 0.0 | -1 |
Function to write to stderr | def jCFN(_K7n):
HwRy.stderr.write('ERROR[UDF]: ' + str(_K7n) + '\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XObx(tO9_):\n HwRy.stderr.write(tO9_ + '\\n')",
"def XObx(Ol8d):\n (print >> HwRy.stderr, Ol8d)",
"def DCO_(tO9_):\n HwRy.stderr.write(tO9_ + '\\n')\n HwRy.stderr.flush()",
"def RKYY(Ol8d, zFiD):\n HwRy.stderr.write('%s:%s\\n' % (Ol8d, zFiD))",
"def sZGp(tO9_):\n HwRy.stderr.write(tO9... | [
"0.77799606",
"0.7748105",
"0.77381575",
"0.7678793",
"0.7574774",
"0.75300616",
"0.75257725",
"0.7482087",
"0.7409569",
"0.73690933",
"0.7337482",
"0.73359334",
"0.7313548",
"0.72770685",
"0.72380805",
"0.72069913",
"0.7200369",
"0.71999395",
"0.71939445",
"0.7178426",
"0.71... | 0.0 | -1 |
E2E Test for using submarine CLI to access submarine experiment To run this test, you should first set your submarine CLI config `port` to 8080 and `hostname` to localhost | def ieRR():
WL52 = p9tP(env={'COLUMNS': str(vxIM)})
Aofo = WL52.invoke(b8V_.entry_point, ['config', 'get', 'connection.port'])
assert Aofo.exit_code == 0
assert 'connection.port=8080' in Aofo.output
fa5i = jdIP.ExperimentClient(host='http://localhost:8080')
GikI = RVgV(image='apache/submarine:tf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmYf(cuiw: nox.Session) -> None:\n cuiw.install('.')\n cuiw.run(mYCR, '--version')\n cuiw.run(mYCR, '--help')",
"def ClYg(T9N6):\n iXC1.main(T9N6['args'])",
"def cuSW() -> None:\n Aofo = WL52.invoke(P4t4)\n Aofo = WL52.invoke(P4t4, ['model', 'show-model-dir'])",
"def CJku(YKHO):\n YK... | [
"0.6157645",
"0.61437166",
"0.6039829",
"0.60186297",
"0.59113",
"0.5841932",
"0.5840252",
"0.58275807",
"0.58275807",
"0.58177626",
"0.57710797",
"0.5733914",
"0.57022566",
"0.5684617",
"0.5638286",
"0.5633345",
"0.56304556",
"0.56229633",
"0.5599836",
"0.5598232",
"0.559627... | 0.6893017 | 0 |
Given an image_id (filename without extension) and the user path (directory) we load the image and return an Image object. | def _J4R(YKHO, r8m5, eKPZ):
QMAG = Hy7s.path.join(eKPZ, r8m5)
LNo8 = hnIv()
LNo8.image = oyIN.load(QMAG + GDa9.image_ext)
LNo8.landmark_points = oyIN.load(QMAG + GDa9.landmarks_ext)
LNo8.feature_points = oyIN.load(QMAG + GDa9.features_ext)
LNo8.assert_valid_state()
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DZ0a(YKHO, r8m5):\n pmON = YKHO.image_path / f'{r8m5}.png'\n with pmON.open('rb') as eHNT:\n return hiw8.imread(eHNT)",
"def jrLz(YKHO, r8m5):\n r8m5 = YKHO.files[r8m5]\n QMAG = Hy7s.path.join(YKHO.root, r8m5)\n LNo8 = hnIv.open(QMAG)\n return (r8m5, LNo8)",
"def DZ0a(XSj5, Ilxn, I... | [
"0.7765234",
"0.73186094",
"0.71229273",
"0.710944",
"0.7108818",
"0.70754653",
"0.70601404",
"0.6995564",
"0.6995137",
"0.69148964",
"0.69121236",
"0.6867974",
"0.68666625",
"0.6851738",
"0.68440616",
"0.68362427",
"0.6809461",
"0.67842376",
"0.678352",
"0.67750466",
"0.6756... | 0.75182444 | 1 |
Add a new experience to memory. | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins)
YKHO.memory.append(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))",
"d... | [
"0.8763217",
"0.8755159",
"0.8509186",
"0.79707366",
"0.7879077",
"0.7878838",
"0.7878838",
"0.7709677",
"0.7708713",
"0.7609456",
"0.74958277",
"0.7470479",
"0.74537706",
"0.737918",
"0.73555547",
"0.730577",
"0.7283659",
"0.7276514",
"0.72636735",
"0.7246649",
"0.72328925",... | 0.7199177 | 31 |
Randomly sample a batch of experiences from memory. | def mvm2(YKHO):
wfZK = tuKI.sample(YKHO.memory, k=YKHO.batch_size)
wspz = ht2j.from_numpy(oyIN.vstack([tTpl.state for tTpl in wfZK if tTpl is not None])).float().to(begE)
xASv = ht2j.from_numpy(oyIN.vstack([tTpl.action for tTpl in wfZK if tTpl is not None])).long().to(begE)
vwlo = ht2j.from_numpy(oyIN.v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)",
"def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)",
"def mvm2(YKHO):\n wfZK = tuKI.sample(YKHO.memory, k=YKHO.... | [
"0.7983961",
"0.79046863",
"0.7868443",
"0.7706011",
"0.7525482",
"0.75070703",
"0.7481443",
"0.74332356",
"0.7432144",
"0.7427844",
"0.74261487",
"0.74147487",
"0.7392868",
"0.7389204",
"0.7389204",
"0.7389204",
"0.7379021",
"0.7376972",
"0.73635644",
"0.7358841",
"0.7357344... | 0.7403821 | 12 |
Get all parameters by parameter IDs. | async def params(YKHO, vrYR):
async with YKHO.lock:
NArs = [YKHO._state['params'][brHW] for brHW in vrYR]
return NArs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EYM8(YKHO, lAss):\n return",
"def SGPK(YKHO, HHAL):\n return YKHO._list(rVNn.Parameter, datastore_version_id=HHAL)",
"async def param_ids(YKHO):\n async with YKHO.lock:\n return list(YKHO._state['params'].keys())",
"def s_LM(YKHO):\n return {str(xqoZ): BWXx for sbam in zuNK(YKHO.parame... | [
"0.7912242",
"0.68206507",
"0.67001456",
"0.6536277",
"0.64766175",
"0.6436273",
"0.636603",
"0.63530767",
"0.6287678",
"0.6274984",
"0.62369007",
"0.62248105",
"0.6209889",
"0.61962754",
"0.6189152",
"0.6186841",
"0.61778986",
"0.61734694",
"0.6161847",
"0.61603135",
"0.6158... | 0.75084186 | 1 |
create empty board for minigames | def Bzk5(rdlD, iVRZ):
iBIi = oyIN.zeros((rdlD, iVRZ))
return iBIi.astype(int) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AFif():\n return [['.' for bGrB in range(9)] for bGrB in range(9)]",
"def AFif():\n return [10 * [0] for bGrB in wPFE(0, 10)]",
"def Ktxm(YKHO):\n ycBG = []\n YKHO._board_positions = []\n for LVAh in range(10):\n for WKvO in range(9):\n if YKHO._filled_spaces[WKvO, LVAh] ==... | [
"0.79926693",
"0.74506897",
"0.74273384",
"0.7355801",
"0.7339316",
"0.7339316",
"0.7339316",
"0.73117876",
"0.727347",
"0.72649163",
"0.72496206",
"0.7228573",
"0.7196836",
"0.7161382",
"0.71358204",
"0.7080558",
"0.7068461",
"0.7040548",
"0.7026327",
"0.70168674",
"0.701392... | 0.0 | -1 |
create a 24 board | def FIMM(YKHO):
WfW7.__init__(YKHO, 2, 4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iEsn():\n return [[' ' for fvDH in range(3)] for rdlD in range(3)]",
"def GUba():\n return [[0, 0, 0], [0, 0, 0], [0, 0, 0]]",
"def efGj():\n iBIi = oyIN.zeros([12, 8], dtype=str)\n for usx6 in range(12):\n for ZLJ_ in range(8):\n iBIi[usx6][ZLJ_] = tuKI.choice(Jw9H)\n retu... | [
"0.77199864",
"0.75296026",
"0.75169235",
"0.7475807",
"0.7450356",
"0.73933405",
"0.73782086",
"0.73184925",
"0.72773916",
"0.726597",
"0.725927",
"0.72500384",
"0.7210193",
"0.7162443",
"0.7156838",
"0.7149921",
"0.71493495",
"0.7123638",
"0.70994186",
"0.70869946",
"0.7065... | 0.0 | -1 |
Returns a list of the items within a category | def ntXQ(ipek):
Ghho = cuiw.query(qZuN).filter_by(name=ipek).one()
LeZt = cuiw.query(qZuN).all()
DumB = cuiw.query(kLxY).filter_by(category_id=Ghho.id).all()
return D0H9('category.html', categories=LeZt, category=Ghho, items=DumB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Km6r(YKHO):\n return qZuN.objects.all()",
"def mKVR(Ghho):\n Ghho = Ghho.replace('-', ' ')\n DumB = kLxY.query.join(qZuN).filter(qZuN.name == Ghho).order_by(QoB4(kLxY.id)).all()\n return TvZl('category.html', category=Ghho, items=DumB, categories=x4iw())",
"def SKCc(YKHO):\n return list(BJsk... | [
"0.74277234",
"0.7392298",
"0.73629814",
"0.72023594",
"0.71789354",
"0.71211076",
"0.71160907",
"0.71131325",
"0.710039",
"0.70892894",
"0.7072487",
"0.7021787",
"0.70135367",
"0.70084405",
"0.6993378",
"0.6991606",
"0.6985406",
"0.69821626",
"0.6962866",
"0.6940169",
"0.691... | 0.0 | -1 |
Open and read the file named 'fname', returning a Unicode string. It will also try to gloss over any Unicodedecoding errors that may occur, | def QGTN(IznC, MEdp='replace-if-possible'):
wyqm = T_Uj.lookup_error(MEdp)
wyqm.reset()
eHNT = T_Uj.open(IznC, encoding='utf-8-sig', errors=MEdp)
KCHu = eHNT.read()
return (KCHu, OkcN(KCHu), wyqm.errors) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wUEI(IznC):\n with open(IznC) as eHNT:\n return eHNT.read()",
"def k67y(pmON, Tuqy='r'):\n return T_Uj.open(pmON, Tuqy, encoding='utf-8')",
"def ALTB(Ux0P: Path) -> str:\n lomR(Ux0P)\n with T_Uj.open(Ux0P, encoding='utf-8') as eHNT:\n try:\n return eHNT.read()\n ... | [
"0.77137333",
"0.75852346",
"0.75526613",
"0.74671847",
"0.73815155",
"0.7333669",
"0.7294048",
"0.7185487",
"0.7179781",
"0.7172854",
"0.7132559",
"0.71241623",
"0.7122383",
"0.7122383",
"0.710325",
"0.70881903",
"0.70872724",
"0.70858103",
"0.705594",
"0.69811624",
"0.69686... | 0.7902906 | 0 |
Apply a sepiatone filter to the given PIL Image | def Cqti(LNo8):
tn62 = hWkM((255, 240, 192))
return LpPM(LNo8, tn62) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter(YKHO, LNo8):\n return LNo8",
"def Euvd(LNo8, filter):\n assert filter.shape[0] % 2 == 1\n assert filter.shape[1] % 2 == 1\n TVTK = filter.shape[1]\n H2v2 = filter.shape[0]\n TVTK = TVTK // 2\n H2v2 = H2v2 // 2\n if len(LNo8.shape) == 3:\n eger = oyIN.pad(LNo8[:, :, 0], (... | [
"0.70758146",
"0.69863516",
"0.69033843",
"0.6865321",
"0.6839354",
"0.68349427",
"0.6832231",
"0.67939556",
"0.678643",
"0.6775983",
"0.67675716",
"0.670495",
"0.6664664",
"0.66625214",
"0.66431224",
"0.6633866",
"0.6610382",
"0.65604365",
"0.65351146",
"0.6515733",
"0.65134... | 0.0 | -1 |
Apply a sepiatone filter to the given PIL Image | def Z5Q9(LNo8):
tn62 = hWkM((200, 40, 40))
return LpPM(LNo8, tn62) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter(YKHO, LNo8):\n return LNo8",
"def Euvd(LNo8, filter):\n assert filter.shape[0] % 2 == 1\n assert filter.shape[1] % 2 == 1\n TVTK = filter.shape[1]\n H2v2 = filter.shape[0]\n TVTK = TVTK // 2\n H2v2 = H2v2 // 2\n if len(LNo8.shape) == 3:\n eger = oyIN.pad(LNo8[:, :, 0], (... | [
"0.70758384",
"0.6986359",
"0.6903432",
"0.686536",
"0.68393636",
"0.68349564",
"0.6832246",
"0.6793977",
"0.67864376",
"0.6776038",
"0.6767583",
"0.6704983",
"0.66646713",
"0.66625744",
"0.6643146",
"0.66339207",
"0.6610404",
"0.65604657",
"0.65351504",
"0.651577",
"0.651342... | 0.0 | -1 |
Apply a sepiatone filter to the given PIL Image | def pPPK(LNo8):
tn62 = hWkM((0, 0, 255))
return LpPM(LNo8, tn62) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter(YKHO, LNo8):\n return LNo8",
"def Euvd(LNo8, filter):\n assert filter.shape[0] % 2 == 1\n assert filter.shape[1] % 2 == 1\n TVTK = filter.shape[1]\n H2v2 = filter.shape[0]\n TVTK = TVTK // 2\n H2v2 = H2v2 // 2\n if len(LNo8.shape) == 3:\n eger = oyIN.pad(LNo8[:, :, 0], (... | [
"0.7072278",
"0.69827336",
"0.6901403",
"0.68614113",
"0.6834959",
"0.6830945",
"0.6827988",
"0.67919064",
"0.678164",
"0.6772793",
"0.6762738",
"0.67023027",
"0.66611",
"0.66595715",
"0.6641269",
"0.6630583",
"0.6605915",
"0.6557295",
"0.65327775",
"0.6512999",
"0.6510347",
... | 0.0 | -1 |
Apply a sepiatone filter to the given PIL Image | def oy3_(LNo8):
tn62 = hWkM((100, 100, 255))
return LpPM(LNo8, tn62) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter(YKHO, LNo8):\n return LNo8",
"def Euvd(LNo8, filter):\n assert filter.shape[0] % 2 == 1\n assert filter.shape[1] % 2 == 1\n TVTK = filter.shape[1]\n H2v2 = filter.shape[0]\n TVTK = TVTK // 2\n H2v2 = H2v2 // 2\n if len(LNo8.shape) == 3:\n eger = oyIN.pad(LNo8[:, :, 0], (... | [
"0.70758146",
"0.69863516",
"0.69033843",
"0.6865321",
"0.6839354",
"0.68349427",
"0.6832231",
"0.67939556",
"0.678643",
"0.6775983",
"0.67675716",
"0.670495",
"0.6664664",
"0.66625214",
"0.66431224",
"0.6633866",
"0.6610382",
"0.65604365",
"0.65351146",
"0.6515733",
"0.65134... | 0.0 | -1 |
Remove any comment lines from the list of lines A comment line is a line where the first nonwhitespace character is a '' | def bSLV(whSy):
BwKB = []
for zFiD in whSy:
if zFiD != '':
if zFiD.strip()[0] != '#':
BwKB.append(zFiD)
return BwKB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSLV(whSy):\n BwKB = []\n for zFiD in whSy:\n if zFiD != '':\n if len(zFiD.strip()) > 0 and zFiD.strip()[0] != '#':\n BwKB.append(zFiD)\n return BwKB",
"def lvfG(Nqlg):\n AHFD = []\n for zFiD in Nqlg:\n if TgwQ('^!', zFiD):\n continue\n ... | [
"0.856603",
"0.7945851",
"0.7875374",
"0.78604966",
"0.7789176",
"0.7767329",
"0.7702991",
"0.76163244",
"0.7550508",
"0.7548939",
"0.75423247",
"0.7536608",
"0.75307375",
"0.7517302",
"0.7517302",
"0.7507723",
"0.7495214",
"0.74483126",
"0.7423174",
"0.7401742",
"0.7357597",... | 0.8546702 | 1 |
Reads instructions from a binary file, puts them into data structures, and generates the output which is written to the hexdump file. | def hfK9(YKHO):
with open(YKHO.f, 'rb') as kGys:
V22M = kGys.read(YKHO.num_bytes)
ufCH = False
RtWz = 0
while V22M:
vCva = MRxC.hexlify(V22M)
if vCva != '0' * (YKHO.num_bytes * 2):
YKHO.output += YKHO.prettify(vCva, RtWz)
YKHO.o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(YKHO):\n ZnFc = 0\n gIsw = HwRy.argv[1]\n with open(gIsw) as eHNT:\n for zFiD in eHNT:\n p3nq = zFiD.split('#')\n LE47 = p3nq[0].strip()\n if LE47 == '':\n continue\n KlQr = int(LE47, 2)\n YKHO.ram_write(ZnFc, KlQr)\n ... | [
"0.6525837",
"0.64687663",
"0.63771015",
"0.632435",
"0.6301413",
"0.6299068",
"0.6187803",
"0.6184997",
"0.6160358",
"0.60462266",
"0.6043683",
"0.6027756",
"0.60239685",
"0.5992988",
"0.5980037",
"0.5969967",
"0.5945737",
"0.59424084",
"0.59391385",
"0.5927558",
"0.59180534... | 0.5689782 | 33 |
Function that defines an area of a circle | def LA4l(Mkmy):
jzdc = 9 ** 2 * epAf.pi
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yX2h(r1VO):\n return mM0K * r1VO * r1VO",
"def Bjvh(Mkmy):\n return mM0K * Mkmy * Mkmy",
"def yX2h(r1VO):\n return mM0K * r1VO ** 2",
"def yX2h(Mkmy):\n return mM0K * Mkmy ** 2",
"def CUf1(Mkmy=1):\n return epAf.pi * Mkmy ** 2",
"def LA4l(Mkmy):\n return epAf.pi * Mkmy * Mkmy",
"d... | [
"0.8431454",
"0.8383336",
"0.83799577",
"0.83617324",
"0.83271235",
"0.8248215",
"0.8210257",
"0.81630063",
"0.8149467",
"0.8144522",
"0.8118308",
"0.80645597",
"0.80541736",
"0.8030351",
"0.80100554",
"0.79499876",
"0.79239184",
"0.7777598",
"0.77666885",
"0.7763324",
"0.772... | 0.79040724 | 17 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(xVl5, YKHO).__init__(*qIxc, **c_sp)
if YKHO.header is None:
YKHO.header = kKAJ.msg.Header()
if YKHO.total is None:
YKHO.total = 0
if YKHO.x is None:
YKHO.x = []
if YKHO.y is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8164922",
"0.7718891",
"0.7718891",
"0.76509625",
"0.7572868",
"0.7543133",
"0.7484322",
"0.74697196",
"0.74578696",
"0.7445108",
"0.74447054",
"0.7433388",
"0.7414475",
"0.74077743",
"0.7391666",
"0.73749715",
"0.7362003",
"0.7324376",
"0.7321947",
"0.7321947",
"0.7321947... | 0.0 | -1 |
Read the corresponding JSON file from disk and deserialize it (if it exists). | async def load(YKHO) -> None:
async with YKHO.lock:
await V7ok.to_thread(YKHO._load) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ueki(YKHO):\n if not Hy7s.path.exists(YKHO.filename):\n return\n with open(YKHO.filename, 'r') as ytgA:\n YKHO._object = HjBM.load(ytgA)",
"def AXOg(YKHO):\n with open(f'{YKHO.directory}/{YKHO.filename}') as nUeQ:\n return qQXR.load(nUeQ)",
"def WlK7(YKHO):\n FYKK = YKHO.fn... | [
"0.78355676",
"0.782115",
"0.77989167",
"0.7776882",
"0.7747195",
"0.77349734",
"0.76766884",
"0.7669738",
"0.7669738",
"0.76667136",
"0.7637689",
"0.76083565",
"0.75318074",
"0.7508229",
"0.74930346",
"0.74830997",
"0.74817234",
"0.746683",
"0.7466075",
"0.746202",
"0.744879... | 0.0 | -1 |
Filters dataframe according to user's filters. Function returns the desired locations filtering neighbhourhood, price range, and minimum_nights data. | def OjcN(jQ3Z, nBPG=['All Neighbourhoods'], YHK7=None, A2nR=None):
_m0d = rLdf.DataFrame([], columns=jQ3Z.columns)
if 'All Neighbourhoods' not in nBPG:
for exwG in nBPG:
_m0d = _m0d.append(jQ3Z.loc[jQ3Z.neighbourhood == exwG])
else:
_m0d = jQ3Z
if YHK7 != None:
_m0d =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def owkZ(jQ3Z, _7x7, yA2c, GM0n, bLLh, dBfS):\n if not isinstance(_7x7, (int, float)):\n raise TypeError('The minimum price entered is not a number')\n elif not isinstance(yA2c, (int, float)):\n raise TypeError('The maximum number entered is not a number.')\n elif not isinstance(GM0n, int):\... | [
"0.6967518",
"0.63976705",
"0.6327083",
"0.62306553",
"0.6189119",
"0.6027312",
"0.5822047",
"0.57822835",
"0.5774349",
"0.5750564",
"0.57415676",
"0.5693748",
"0.5687133",
"0.5656776",
"0.56315947",
"0.5631546",
"0.56131357",
"0.5607653",
"0.559351",
"0.5581617",
"0.558079",... | 0.792833 | 0 |
r"""Lists Order resources that the user has access to, within the scope of the parent resource. | def x1iM(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('List')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n return A1Jz.get_orders(secret=QePW.headers.get('x-access-token'), **fqwW.list_orders_args.parse_args(QePW))",
"def QNpq(YKHO, **NArs):\n pmON = '/account/order/list'\n return YKHO.get(pmON, params=NArs)",
"def awPf(CBIr):\n pass",
"def BgK2(QePW):\n CBIr = Wqvn.objects.filter... | [
"0.6335156",
"0.6292919",
"0.61525345",
"0.6136866",
"0.6091028",
"0.6056828",
"0.6041263",
"0.6028069",
"0.60131323",
"0.59139055",
"0.5894446",
"0.58600277",
"0.58383286",
"0.582628",
"0.57548416",
"0.570253",
"0.56766397",
"0.56652206",
"0.56300056",
"0.56191033",
"0.56184... | 0.0 | -1 |
r"""Lists migratable Order resources that the user has access to, within the scope of the parent resource. | def oAMs(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('ListMigratable')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QNpq(YKHO, **NArs):\n pmON = '/account/order/list'\n return YKHO.get(pmON, params=NArs)",
"def awPf(CBIr):\n pass",
"def k66M(YKHO):\n return YKHO.model.objects.select_related('order', 'customer').all().order_by('-date_created')",
"def f0Uf(QePW):\n if QePW.user.is_superuser:\n f0Uf... | [
"0.60642403",
"0.603869",
"0.58407575",
"0.5818663",
"0.5815035",
"0.58132714",
"0.5798152",
"0.57646036",
"0.5739735",
"0.5710111",
"0.57005525",
"0.56958944",
"0.5681001",
"0.5659564",
"0.5653116",
"0.56373197",
"0.56174904",
"0.561454",
"0.55970204",
"0.5593029",
"0.557974... | 0.0 | -1 |
r"""Gets the requested Entitlement resource. | def xP7V(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('Get')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zDSJ(YKHO) -> YrBT[[zVa7.GetEntitlementRequest], ld92[lqni.Entitlement]]:\n if 'get_entitlement' not in YKHO._stubs:\n YKHO._stubs['get_entitlement'] = YKHO.grpc_channel.unary_unary('/google.cloud.channel.v1.CloudChannelService/GetEntitlement', request_serializer=zVa7.GetEntitlementRequest.serialize,... | [
"0.7474821",
"0.59245807",
"0.5847564",
"0.5792809",
"0.5746226",
"0.5705178",
"0.5675426",
"0.5622268",
"0.5615173",
"0.5584503",
"0.55655444",
"0.5526372",
"0.55111396",
"0.5502599",
"0.5498721",
"0.5491072",
"0.54855126",
"0.5464812",
"0.54598045",
"0.5458871",
"0.542297",... | 0.0 | -1 |
Updates the observation normalization statistics. | def Nxz_(YKHO, pR3T):
YKHO.observation_normalizer.update_normalization_statistics(pR3T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JK6b(YKHO, OPz8):\n n_Ql, ybU4 = OPz8\n WiXu = oyIN.array(n_Ql)\n Q5GK = oyIN.array(ybU4)\n YKHO.obs_norm.update(WiXu)\n YKHO.goal_norm.update(Q5GK)",
"def NkkI(YKHO):\n with YKHO.get_lock():\n KCHu = YKHO.disps[:YKHO.counter.value].mean()\n YKHO.disps[:YKHO.counter.value] /= ... | [
"0.7570379",
"0.7402023",
"0.7239071",
"0.71203923",
"0.70225626",
"0.69722414",
"0.69052416",
"0.6879774",
"0.68192345",
"0.6817947",
"0.6794819",
"0.67701966",
"0.6714104",
"0.666967",
"0.6611384",
"0.65821177",
"0.65697503",
"0.6556424",
"0.6521661",
"0.647667",
"0.6457423... | 0.87048507 | 0 |
Apply the recurrent part of the network. | def F1Jo(YKHO, S2xu, gT1M, _ins):
Ep8u = ZylS.shape(S2xu)[1]
lTDs = YKHO._rnn.get_initial_state(batch_size=Ep8u, dtype=ZylS.float32)
Re5c = []
for CK9p, Csk6 in zip(ZylS.unstack(S2xu), ZylS.unstack(_ins)):
gT1M = ZylS.nest.map_structure(lambda WKvO, LVAh, Csk6=Csk6: ZylS.where(ZylS.reshape(Csk6,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pyir(YKHO):\n eVVj = YKHO.network\n JGQq = YKHO.getOutputLayer()\n FSeG = YKHO.getFirstHiddenLayer()\n eVVj.addRecurrentConnection(ZRFO(JGQq, FSeG))",
"def _W9z(YKHO):\n for gEmA in reversed(YKHO.network.neuron_layers_list):\n for HgE9 in gEmA:\n for H1is in HgE9.input_synaps... | [
"0.63457894",
"0.62178624",
"0.61225855",
"0.61225855",
"0.60923535",
"0.6053558",
"0.6022074",
"0.5983787",
"0.59359264",
"0.5923123",
"0.5868618",
"0.58587444",
"0.5854576",
"0.58510685",
"0.58510685",
"0.58449835",
"0.58345",
"0.5829033",
"0.5823598",
"0.58065236",
"0.5803... | 0.5483941 | 74 |
Creates 'package.json' based on 'module.json'. | def CxSi(xtX7, GPtr, tyNF, TZ9E=None, KeZC=True):
S3Kb(GPtr, tyNF, 'dependencies', TZ9E, KeZC)
S3Kb(GPtr, tyNF, 'devDependencies', TZ9E, KeZC)
Ux0P = Hy7s.path.join(xtX7, 'package.json')
print('Writing %s' % Ux0P)
uP8n(Ux0P, GPtr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PIM5():\n jNha = Hy7s.path.abspath(Hy7s.getcwd())\n uvd8 = Hy7s.path.join(jNha, 'package.json')\n with open(uvd8, 'rb') as jvuf:\n Rw7S = jvuf.read()\n Bg8V = qQXR.loads(Rw7S)\n return Bg8V",
"def dzjY():\n WY3t('cp node.json package.json')\n WY3t('npm install')\n WY3t('rm ... | [
"0.6541799",
"0.62782466",
"0.6242697",
"0.6111699",
"0.5967094",
"0.5958525",
"0.59372056",
"0.5910754",
"0.58734053",
"0.5784216",
"0.57564193",
"0.5734573",
"0.5639373",
"0.5618636",
"0.5608927",
"0.55830234",
"0.55830234",
"0.55538005",
"0.5536703",
"0.5516332",
"0.548252... | 0.6393863 | 1 |
Returns a securely generated random string. The default length of 12 with the az, AZ, 09 character set returns a 71bit value. log_2((26+26+10)^12) =~ 71 bits | def GLL2(u54L=50):
pC3l = vIwR.punctuation.replace('"', '').replace("'", '')
pC3l = pC3l.replace('\\', '')
if tmSG:
return ''.join((tuKI.choice(vIwR.digits + vIwR.ascii_letters + pC3l) for YRbF in range(u54L)))
print("Cookiecutter Django couldn't find a secure pseudo-random number generator on y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(u54L=12):\n tO9_ = HBct.sha256()\n GIN8 = ''\n for bGrB in range(u54L):\n GIN8 += FXSn.choice(vIwR.ascii_letters)\n tO9_.update(GIN8.encode('ascii'))\n return tO9_.hexdigest()[:u54L]",
"def GLL2(u54L=31, jkLJ='abcdefghijkmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ23456789'):\n return... | [
"0.73956805",
"0.72672516",
"0.71862775",
"0.7134905",
"0.70695215",
"0.7064902",
"0.706238",
"0.70439816",
"0.7016716",
"0.6973313",
"0.6949877",
"0.6948574",
"0.6943521",
"0.6914308",
"0.69074744",
"0.6901704",
"0.68960476",
"0.68951005",
"0.68790144",
"0.68700767",
"0.6869... | 0.6488217 | 95 |
Method to get the current value of the widget. | def NMoC(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO):\n return YKHO.widget.get_value()",
"def Zmkp(YKHO):\n return YKHO.current_value",
"def z8Af(YKHO):\n raise Exception('getWidgetValue not implimented: ' + YKHO.__name)",
"def Zmkp(YKHO) -> str:\n return YKHO.get().text",
"def UnfG(YKHO):\n return rhMW.uiSpinboxValue(YKHO.contr... | [
"0.9009583",
"0.8378259",
"0.8089923",
"0.78440285",
"0.7814193",
"0.77945703",
"0.77369267",
"0.7661274",
"0.76567256",
"0.7655311",
"0.76397365",
"0.76220614",
"0.76033044",
"0.75895864",
"0.7562276",
"0.7560096",
"0.7550431",
"0.75435627",
"0.7538198",
"0.75289196",
"0.752... | 0.0 | -1 |
Method to get the current value of the widget, as a string. | def HRRg(YKHO):
return str(YKHO.get()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO) -> str:\n return YKHO.get().text",
"def Zmkp(YKHO):\n return YKHO.widget.get_value()",
"def UnfG(YKHO):\n return str(YKHO.value.get())",
"def BWXx(YKHO) -> str:\n return YKHO._value",
"def UnfG(YKHO):\n return str(YKHO.valueSelected)",
"def BWXx(YKHO):\n return str(YKHO.t... | [
"0.82602274",
"0.81590044",
"0.80770636",
"0.77193946",
"0.7690887",
"0.76722115",
"0.7663135",
"0.76499385",
"0.75994164",
"0.757687",
"0.75672835",
"0.75193846",
"0.7517931",
"0.7507237",
"0.7507237",
"0.7507237",
"0.7507237",
"0.7507237",
"0.7495316",
"0.74717385",
"0.7423... | 0.7681719 | 5 |
Shows the face recognition results visually. | def l1si(f4IJ, N6Z1):
Ps57 = hnIv.fromarray(f4IJ)
JmFt = nuov.Draw(Ps57)
for mWFP, (tlxW, _tIi, es2x, LFlW) in N6Z1:
tlxW *= 2
_tIi *= 2
es2x *= 2
LFlW *= 2
JmFt.rectangle(((LFlW, tlxW), (_tIi, es2x)), outline=(0, 0, 255))
mWFP = mWFP.encode('UTF-8')
u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FQJV(YKHO):\n XC5k.imshow(Tw8L, YKHO.detect_img)",
"def FQJV(YKHO, LNo8):\n oUSw = YKHO.face_detector.predict(image=LNo8)\n if len(oUSw) == 0:\n oUSw = YKHO.body_detector.predict(image=LNo8)\n JOUx = [Fv2L for Fv2L, bGrB in oUSw]\n oUSw = [FlUN for bGrB, FlUN in oUSw]\n TaUL = [YKHO.... | [
"0.75655764",
"0.73200953",
"0.7067801",
"0.7030234",
"0.69263",
"0.69162107",
"0.67833155",
"0.6743734",
"0.6739995",
"0.67025554",
"0.661709",
"0.66148704",
"0.6590495",
"0.65863144",
"0.6581976",
"0.6562359",
"0.6505578",
"0.6505578",
"0.6446161",
"0.6421325",
"0.64009875"... | 0.0 | -1 |
From sillogism implementation (Matthew Honnibal) Simple normalization of digit words in the corpus | def lgZ7(GIN8, Dj1O=None):
aSLC = GIN8.replace(',', '')
GIN8 = GIN8.replace(',', '.')
if GIN8.isdigit():
if int(GIN8) > 1000 and int(GIN8) < 2100:
return '#YEAR'
return '#DIGIT'
try:
float(GIN8)
return '#FLOATDIGIT'
except:
pass
try:
fl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lvMM():\n WhQ6 = xXCW(e1GD, nFV5, random_state=1)\n WhQ6.normalize(stopwords=False, custom_stopwords=['yes'])\n assert WhQ6['Corpus'][0] == ['sir', '12']",
"def DnKF(rrSk):\n assert isinstance(rrSk, list) and isinstance(rrSk[0], str), 'input must be list of strings'\n return m5ZH(rrSk)",
"de... | [
"0.6935511",
"0.69130355",
"0.677225",
"0.6645864",
"0.6625857",
"0.6578279",
"0.65411943",
"0.65411943",
"0.65247214",
"0.65247214",
"0.6501756",
"0.6487552",
"0.64844096",
"0.6462393",
"0.64376116",
"0.63797754",
"0.6284135",
"0.62828726",
"0.6260883",
"0.62452215",
"0.6245... | 0.58348286 | 69 |
From sillogism implementation (Matthew Honnibal) Simple normalization of digit words in the corpus | def NkkI(GIN8):
aSLC = GIN8.replace(',', '')
GIN8 = GIN8.replace(',', '.')
if GIN8.isdigit():
if int(GIN8) > 1000 and int(GIN8) < 2100:
return '#YEAR'
return '#DIGIT'
try:
float(GIN8)
return '#FLOATDIGIT'
except:
pass
try:
float(aSLC)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lvMM():\n WhQ6 = xXCW(e1GD, nFV5, random_state=1)\n WhQ6.normalize(stopwords=False, custom_stopwords=['yes'])\n assert WhQ6['Corpus'][0] == ['sir', '12']",
"def DnKF(rrSk):\n assert isinstance(rrSk, list) and isinstance(rrSk[0], str), 'input must be list of strings'\n return m5ZH(rrSk)",
"de... | [
"0.6934786",
"0.6912306",
"0.6771923",
"0.66452974",
"0.6625193",
"0.6577393",
"0.65402347",
"0.65402347",
"0.6523994",
"0.6523994",
"0.6501911",
"0.64868903",
"0.6483041",
"0.64628595",
"0.64368844",
"0.63783205",
"0.62831587",
"0.62830967",
"0.6260417",
"0.62458867",
"0.624... | 0.0 | -1 |
number of vertecies with odd degree is even | def xB8q(YKHO) -> bool:
return len(tuple((YRbF for YRbF in YKHO if YRbF % 2 != 0))) % 2 == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lI9t(exwG, G1Hx):\n UHFx = 0\n for YRbF in range(1, exwG + 1):\n EOtV = 0\n for r845 in range(1, YRbF + 1):\n if YRbF % r845 == 0:\n EOtV += 1\n if EOtV == G1Hx:\n UHFx += 1\n return UHFx",
"def iiPn(iArr):\n return len(iArr[iArr > 0.5])",... | [
"0.674321",
"0.66255003",
"0.6539575",
"0.65243775",
"0.64253104",
"0.63970953",
"0.6365037",
"0.6342492",
"0.6320388",
"0.62766033",
"0.62639713",
"0.6250724",
"0.62335676",
"0.6230206",
"0.621306",
"0.62052685",
"0.62028235",
"0.6176733",
"0.61297005",
"0.6118871",
"0.61164... | 0.0 | -1 |
remove comments from given line | def bSLV(zFiD):
YRbF = zFiD.find('#')
if YRbF >= 0:
zFiD = zFiD[:YRbF]
return zFiD.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bSLV(zFiD):\n RgZ5 = njyT.compile('#')\n kUBT = RgZ5.match(zFiD)\n if kUBT:\n return zFiD[:kUBT.start()]\n else:\n return zFiD",
"def fBGU(zFiD):\n d6pt = zFiD.find('//')\n if d6pt >= 0:\n zFiD = zFiD[0:d6pt]\n return zFiD",
"def bSLV(Emd4, zFiD):\n if '#' in zF... | [
"0.85957164",
"0.8564976",
"0.8559321",
"0.8485363",
"0.84468526",
"0.8321677",
"0.8275886",
"0.8249677",
"0.82039875",
"0.81953734",
"0.8099715",
"0.8098418",
"0.8066169",
"0.80599195",
"0.7883764",
"0.78693396",
"0.7570612",
"0.7548698",
"0.7542012",
"0.74596757",
"0.743276... | 0.86046803 | 0 |
strip both single or double quotes | def EMQV(BWXx):
BWXx = BWXx.strip()
if '"' in BWXx:
return BWXx.strip('"')
elif "'" in BWXx:
return BWXx.strip("'")
else:
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t0t2(KCHu):\n return KCHu.strip(\"'`\")",
"def EMQV(KCHu):\n G7db = \"'\"\n W4uF = '\"'\n if KCHu.startswith(G7db) and KCHu.endswith(G7db):\n KCHu = KCHu.strip(G7db)\n elif KCHu.startswith(W4uF) and KCHu.endswith(W4uF):\n KCHu = KCHu.strip(W4uF)\n return KCHu",
"def EMQV(YKH... | [
"0.8180306",
"0.79510933",
"0.7942769",
"0.79192173",
"0.7732908",
"0.76615345",
"0.758802",
"0.757067",
"0.7531593",
"0.7528231",
"0.75127685",
"0.748396",
"0.74827695",
"0.7427025",
"0.7382916",
"0.73481804",
"0.73481804",
"0.73184526",
"0.73163235",
"0.72872734",
"0.728727... | 0.7782665 | 4 |
try to determine if give string match boolean type boolean if the value matches the original value if not match | def Nqvr(BWXx):
BWXx = EMQV(BWXx)
if BWXx in ['TRUE', 'True', 'true', '1']:
return True
elif BWXx in ['FALSE', 'False', 'false', '0']:
return False
else:
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sisc(str):\n return True if str.lower() == 'true' else False",
"def bool(vIwR):\n if vIwR == 'True':\n return True\n if vIwR == 'False':\n return False\n raise ValueError('invalid boolean input value')",
"def E5HK(n_L_: str) -> bool:\n return n_L_.lower() in ('yes', 'true', '1'... | [
"0.7413254",
"0.7372939",
"0.73677284",
"0.73547095",
"0.72796077",
"0.7258829",
"0.7246734",
"0.71794474",
"0.7178973",
"0.71688926",
"0.7167583",
"0.7166493",
"0.7158851",
"0.71545666",
"0.7154524",
"0.714812",
"0.71396023",
"0.71376246",
"0.712534",
"0.71190816",
"0.711263... | 0.0 | -1 |
Check that string s looks like base64 encoded data | def VM1P(X80K, KCHu):
vqg1 = ZbWC.compile('^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$')
X80K.assertTrue(vqg1.match(KCHu)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZG_R(KCHu):\n try:\n return WR89.b64encode(WR89.b64decode(KCHu)) == KCHu\n except Exception:\n return False",
"def ZG_R(YKHO, KCHu):\n try:\n return WR89.b64encode(WR89.b64decode(KCHu)).decode('utf-8') == KCHu\n except Exception:\n return False",
"def OH1n(w2Td, GSaK... | [
"0.8636618",
"0.8515172",
"0.7943773",
"0.7657958",
"0.75372577",
"0.7333739",
"0.7273222",
"0.6949355",
"0.6830358",
"0.679924",
"0.6753462",
"0.6681375",
"0.66778135",
"0.66671926",
"0.6666787",
"0.6654485",
"0.66340685",
"0.662242",
"0.65820336",
"0.65788877",
"0.6564944",... | 0.8100198 | 2 |
Cleans text and returns a list of the cleaned text | def JBtP(l5Ny):
l5Ny = l5Ny.lower()
BcWm = len(l5Ny)
L_U8 = ''
for exwG in range(BcWm):
Npgh = l5Ny[exwG]
if Npgh.isalpha() or Npgh.isdigit():
L_U8 += Npgh
else:
L_U8 += ' '
dfqv = L_U8.split()
return dfqv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xosv(l5Ny: str) -> x1iM[str]:\n FJDa = l5Ny.split()\n chzl = list(set([ZbWC.sub(bnuZ, '', GIN8) for GIN8 in FJDa]))\n return [GIN8 for GIN8 in chzl if GIN8]",
"def nfYJ(YKHO, V22M):\n return [YKHO.clean_text(GIN8) for GIN8 in V22M]",
"def QrZ9(l5Ny):\n return [zFiD.strip().lower() for zFiD i... | [
"0.7604221",
"0.7584363",
"0.75540125",
"0.7551208",
"0.7437528",
"0.73945826",
"0.73320705",
"0.73006546",
"0.7257496",
"0.72570616",
"0.72144264",
"0.720425",
"0.717768",
"0.71228856",
"0.70733887",
"0.7024845",
"0.7015686",
"0.7010825",
"0.7000335",
"0.69882023",
"0.697220... | 0.0 | -1 |
Reset the Replicant. Call this when you reset the scene. | def SiRx(YKHO, dQgj: POSITION=None, DWJ0: ROTATION=None) -> None:
print('This action has been deprecated and will be removed in a future release. For more information, read this: https://github.com/threedworld-mit/tdw/blob/master/Documentation/lessons/replicants/reset.md')
YKHO.initialized = False
YKHO.acti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n return YKHO.send_goal('reset')",
"def SiRx(YKHO):\n YKHO._call('Reset')",
"def SiRx(YKHO):\n YKHO.initialize()",
"def SiRx(YKHO):\n YKHO.init()",
"def SiRx(YKHO):\n YKHO._state = 0\n YKHO._game_board = [0, 0, 0, 0, 0]\n YKHO._hammer = 0\n YKHO._day = 0\n YKHO._t... | [
"0.65219057",
"0.6458874",
"0.6443137",
"0.64411587",
"0.6429606",
"0.63858",
"0.6375432",
"0.6364267",
"0.63364947",
"0.63269055",
"0.63249385",
"0.6312519",
"0.6294508",
"0.6283518",
"0.6280527",
"0.6275877",
"0.6268415",
"0.6268415",
"0.6257643",
"0.62512946",
"0.6247337",... | 0.0 | -1 |
Get a `bool` from a string. | def DeMF(vIwR):
return vIwR.lower() == 'true' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M0mR(vIwR):\n if vIwR == 'True':\n return True\n elif vIwR == 'False':\n return False",
"def M0mR(KCHu):\n if KCHu == 'True':\n return True\n elif KCHu == 'False':\n return False",
"def M0mR(KCHu):\n if KCHu == 'true':\n return True\n elif KCHu == 'false... | [
"0.8592729",
"0.8547561",
"0.8467513",
"0.84069616",
"0.84064597",
"0.83903563",
"0.8365137",
"0.833655",
"0.8315795",
"0.8289177",
"0.82815593",
"0.8270973",
"0.8255505",
"0.82403886",
"0.82295334",
"0.8229217",
"0.82287073",
"0.8197749",
"0.81443447",
"0.8138403",
"0.812914... | 0.83598197 | 7 |
Get an `Element` from an XML element. | def bXxH(QToG):
UqER = {'container': GI79, 'box': wy_q, 'texture': w3W2, 'text': paVB, 'sprite-text': JyaK, 'switch': oNp4, 'progress': yoxO}
y5U5 = ['option']
if QToG.tag in y5U5:
return None
return UqER[QToG.tag](QToG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKL8(AZU6, U6D_):\n F6AI = KOLN.parseString(AZU6).getElementsByTagName(U6D_)\n if len(F6AI) == 1:\n return F6AI[0].firstChild.nodeValue\n else:\n return ''",
"def yut8(U6D_, bk0x, hLhr, WmM4=''):\n try:\n l5Ny = U6D_.find(bk0x + hLhr).text\n if isinstance(l5Ny, jKi7.te... | [
"0.6924185",
"0.67659557",
"0.64986837",
"0.6360354",
"0.6315812",
"0.6190656",
"0.6174729",
"0.61040574",
"0.6078223",
"0.60234815",
"0.59890354",
"0.5958604",
"0.59442455",
"0.5932359",
"0.5914766",
"0.5911494",
"0.58822227",
"0.58606577",
"0.5850186",
"0.5850186",
"0.58501... | 0.64983135 | 3 |
Return the parent state of this search state. If there is no parent, meaning that this is the first state of the chain, then None is returned. | def nYUa(YKHO):
return YKHO._parent_state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO):\n G1Hx = YKHO.parent_key()\n return G1Hx() if G1Hx else None",
"def _AKB(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'parent')",
"def _AKB(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'parent')",
"def _AKB(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get... | [
"0.74273264",
"0.73578465",
"0.73578465",
"0.73578465",
"0.7338473",
"0.72955936",
"0.7252181",
"0.722788",
"0.72077596",
"0.71658534",
"0.7150042",
"0.7103193",
"0.70949364",
"0.70704937",
"0.7055575",
"0.7009173",
"0.7003666",
"0.6993146",
"0.6981015",
"0.6971426",
"0.69673... | 0.7867466 | 0 |
Return dictionary representation of the recipe. | def nPrm(YKHO) -> dict:
if YKHO._data is None:
YKHO._data = eJb6.safe_load(open(YKHO.path, 'r'))
return YKHO._data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return dict(id=YKHO.id, name=YKHO.name, description=YKHO.description, image=TDhU(QePW.url_root, YKHO.image_src), recipes=[YSCM.to_dict() for YSCM in YKHO.recipes])",
"def qlxx(YKHO):\n return {'datacite': YKHO.datacite, 'dlhub': YKHO.dlhub, 'servable': YKHO.servable}",
"def Napc(YKHO):\... | [
"0.81145877",
"0.794499",
"0.73846745",
"0.71585363",
"0.7039545",
"0.69937634",
"0.69821954",
"0.6961129",
"0.6954939",
"0.68743616",
"0.6810423",
"0.68016154",
"0.67247206",
"0.67215544",
"0.67069906",
"0.6703546",
"0.66978323",
"0.6693956",
"0.66909176",
"0.668986",
"0.667... | 0.0 | -1 |
A Django test client instance with a new user authenticated. | def KMXr(CBIr, x0hE):
x0hE.force_login(CBIr)
return x0hE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EaTT(NCls, XhDX):\n from django.test.client import Client\n x0hE = Client()\n x0hE.login(username=XhDX.username, password='dummy_userpassword')\n return x0hE",
"def FCbF(YKHO):\n CBIr = Wqvn(id=100, email='testuser@mail.com', is_active=True)\n CBIr.set_password('Testpassword123')\n CBIr.... | [
"0.7777877",
"0.7416978",
"0.72737145",
"0.7271665",
"0.7237346",
"0.72019094",
"0.7194818",
"0.7193422",
"0.7179482",
"0.717631",
"0.7169209",
"0.71522105",
"0.7041692",
"0.70242417",
"0.7015861",
"0.69953966",
"0.6985181",
"0.69678843",
"0.6950518",
"0.69440746",
"0.6942389... | 0.6525139 | 86 |
update a jira issue in our database, given its key we do this out of band since the jira API can sometimes take a few tries | def Xvfs(g3hv, upW3):
rfQU = None
Ki_d = 0
while rfQU is None and Ki_d < 5:
Ki_d += 1
rfQU = Y_5k.get_issue(g3hv)
if rfQU is None:
bo34.info('removing %s - issue not found', g3hv)
TY0b.remove_jira_issue(n72w, g3hv)
else:
TY0b.save_jira_issue(n72w, rfQU)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imEv(YKHO, qsJ6, boHx, eD4w, leAC, TBsA):\n bD7m = '%s/repos/%s/%s/issues/%s' % (YKHO._api_url, qsJ6, boHx, eD4w)\n aqR5 = {'title': leAC, 'body': TBsA}\n nPrm = YKHO.patch(bD7m, data=aqR5)\n if not YKHO._bad_response and nPrm:\n bo34.info('Updated issue \"%s\": %s' % (leAC, nPrm.json().get(... | [
"0.6690613",
"0.65314347",
"0.6309846",
"0.60979426",
"0.6076893",
"0.6008933",
"0.59835243",
"0.5856862",
"0.58332646",
"0.5810703",
"0.5741388",
"0.5696743",
"0.56767386",
"0.5660696",
"0.5643083",
"0.5640837",
"0.5614567",
"0.55935997",
"0.55880535",
"0.55703986",
"0.55653... | 0.7471013 | 0 |
>>> rmat = [[4,1],[1,2],[3,2],[1,1],[4,1],[2,1],[2,2],[3,1],[1,1],[2,2]] >>> RandomWalk(2,rmat) (8, [[0, 0], [1, 1], [1, 1], [0, 1], [0, 0], [1, 0], [1, 1], [1, 1], [0, 1]]) | def PC30(aPd6, zNiy):
def eKjc(vb7U):
u54L = len(vb7U[0])
for YRbF in range(len(vb7U)):
for r845 in range(u54L):
if vb7U[YRbF][r845] != 1:
return False
return True
def UDvH(WKvO, LVAh, zNiy, xy0Q, aPd6):
ZbOB = zNiy[xy0Q][0]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JYfK(KMlF, OnWS, Ignz, yGpZ):\n if type(KMlF).__module__ != 'numpy':\n return None\n Wt1D = oyIN.arange(KMlF.shape[0])\n for YRbF in range(OnWS):\n LXTO = oyIN.random.choice(Wt1D)\n for r845 in range(Ignz):\n BFeB = KMlF[LXTO]\n LXTO = oyIN.random.choice(Wt1D... | [
"0.680749",
"0.6091281",
"0.60358834",
"0.60060173",
"0.5892683",
"0.5860682",
"0.5828336",
"0.5804691",
"0.5772554",
"0.575187",
"0.5724247",
"0.57135624",
"0.5698239",
"0.5667571",
"0.5663206",
"0.5657089",
"0.56543154",
"0.56397456",
"0.5633246",
"0.5618627",
"0.5556987",
... | 0.7110916 | 0 |
Wrapper for inserting int64 features into Example proto. | def xJYY(BWXx):
if not isinstance(BWXx, list):
BWXx = [BWXx]
return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wgnv(PU1l, BZ2A, kAne):\n PU1l.features.feature[BZ2A].int64_list.value.append(kAne)",
"def Oety(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))",
"def Oety(BWXx):\n BWXx = int(BWXx)\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=[BWXx]))",
... | [
"0.7374892",
"0.73494405",
"0.73194486",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301892",
"0.7301704",
"0.7300591",
"0.72966045",
"0.72966045",
"0.72966045"... | 0.7075945 | 88 |
Try to register a user with an invalid Base64 husername (with the right length). | def v1W2(YKHO):
bD7m = gxEw('userlist')
Qszv = list(YKHO.husername1b64)
Qszv[2] = '-'
ZdTz = ''.join(Qszv)
nPrm = {'husername': ZdTz, 'hpassword': YKHO.hpassword1b64}
geh0 = YKHO.client.post(bD7m, nPrm, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.ass... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def elga(YKHO):\n bD7m = gxEw('userlist')\n nPrm = {'husername': 'QQ==', 'hpassword': YKHO.hpassword1b64}\n geh0 = YKHO.client.post(bD7m, nPrm, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertEqual(UZRb.objects.count(), 0)\n YKHO.assertEqual(geh0.conten... | [
"0.7382816",
"0.7287934",
"0.7050456",
"0.6947453",
"0.68677706",
"0.684805",
"0.6826957",
"0.6821861",
"0.6804206",
"0.68022364",
"0.6793294",
"0.67915845",
"0.67626506",
"0.6731484",
"0.66982675",
"0.66962254",
"0.6693252",
"0.6690355",
"0.6676136",
"0.66659814",
"0.6657334... | 0.7462912 | 0 |
Try to register a user with an invalid Base64 hpassword (with the right length). | def uoG3(YKHO):
bD7m = gxEw('userlist')
sT2n = list(YKHO.hpassword1b64)
sT2n[2] = '-'
ubiC = ''.join(sT2n)
nPrm = {'husername': YKHO.husername1b64, 'hpassword': ubiC}
geh0 = YKHO.client.post(bD7m, nPrm, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.ass... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sJT2(YKHO):\n bD7m = gxEw('userlist')\n nPrm = {'husername': YKHO.husername1b64, 'hpassword': 'QQ=='}\n geh0 = YKHO.client.post(bD7m, nPrm, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertEqual(UZRb.objects.count(), 0)\n YKHO.assertEqual(geh0.conten... | [
"0.74759775",
"0.73890305",
"0.73850375",
"0.7365271",
"0.73303664",
"0.7296785",
"0.72506815",
"0.72443724",
"0.7239784",
"0.7197146",
"0.7190147",
"0.71271306",
"0.70504284",
"0.70487964",
"0.70139176",
"0.70081735",
"0.7001367",
"0.69921756",
"0.69890535",
"0.69853973",
"0... | 0.759884 | 0 |
Try to save a new password list for a user. | def CGvt(YKHO):
geh0 = jbgc(YKHO.username1, YKHO.password1, YKHO.client)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)
YKHO.assertEqual(UZRb.objects.count(), 1)
YKHO.assertEqual(UZRb.objects.get().husername, YKHO.husername1b64)
bD7m = gxEw('passworddetail', args=(YKHO.husername1b64,))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ts03(YKHO):\n for YRbF, AIu6 in enumerate(YKHO._data):\n lycd(YKHO._hashed, AIu6, YRbF != 0, filename=YKHO.file_)",
"def nCXD(YKHO):\n XDID.passwords.append(YKHO)",
"def VSD5(YKHO):\n kjgd.password_list.append(YKHO)",
"def Lsrz(YKHO, IUzb):\n YKHO.cursor.execute('INSERT INTO users VALU... | [
"0.7222372",
"0.70926714",
"0.67585963",
"0.67291975",
"0.65916145",
"0.65725976",
"0.6529468",
"0.652142",
"0.64089894",
"0.63738346",
"0.623449",
"0.61952746",
"0.61904085",
"0.6173956",
"0.6171611",
"0.6168626",
"0.6164582",
"0.615407",
"0.61014795",
"0.6092362",
"0.607557... | 0.0 | -1 |
Checks for greaterequal relationship to lower_bound. Can be used with NodeFilters __not__ to get lessthan comparison check. | def VRv_(_j8X: str, IDsK: str, T4Wy: typ.List[str]) -> cM24.Callable[[pNZh.TemporalNode], bool]:
CwQt = dict(((wEf2, or8S) for or8S, wEf2 in enumerate(T4Wy)))
def wBBM(exwG: graph.TemporalNode) -> bool:
wEf2 = exwG.get_global_attribute(_j8X)
return CwQt[IDsK] <= CwQt[wEf2]
return wBBM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uryd(YKHO, Elif, Jyyj, BWXx):\n if Elif not in YKHO.document or YKHO.document[Elif] is None:\n return False\n if BWXx >= YKHO.document[Elif]:\n tO9_ = '{} must be lower than {}'.format(Jyyj, Elif)\n YKHO._error(Jyyj, tO9_)",
"def nXjU(YKHO, Elif, Jyyj, BWXx):\n if Elif not in YK... | [
"0.6668323",
"0.66287214",
"0.64455646",
"0.64455646",
"0.6410991",
"0.6410991",
"0.64054865",
"0.64054865",
"0.6382",
"0.6372651",
"0.63656104",
"0.636183",
"0.6356486",
"0.6356486",
"0.6345533",
"0.6344458",
"0.63432145",
"0.63264924",
"0.63250434",
"0.63233864",
"0.6287209... | 0.0 | -1 |
Function that creates a structured tuple representing a row in a RDD | def jldF(zFiD):
wJfy = zFiD.split(',')
return (wJfy[2], wJfy[3], int(wJfy[4]), float(wJfy[5]), float(wJfy[6]), float(wJfy[7]), float(wJfy[8]), float(wJfy[9]), float(wJfy[11]), float(wJfy[14]), float(wJfy[16]), Fcpc(float(wJfy[7]), float(wJfy[6])), Fcpc(float(wJfy[9]), float(wJfy[8])), wJfy[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EV8W(rdlD):\n if rdlD.size == 1:\n return rdlD[0]\n return tuple(rdlD)",
"def py81(Emd4, uPxI, rdlD):\n f7_n = []\n for KCHu in uPxI:\n f7_n.append(rdlD[KCHu])\n return tuple(f7_n)",
"def I8bT(WKvO):\n return tuple(WKvO[2])",
"def Cdjl(WKvO):\n if isinstance(WKvO, tuple... | [
"0.7631961",
"0.7290771",
"0.647322",
"0.6256594",
"0.6244995",
"0.62185705",
"0.61968714",
"0.6175018",
"0.6161641",
"0.6130462",
"0.60889447",
"0.6071839",
"0.6046098",
"0.60413545",
"0.60104674",
"0.6001391",
"0.5979474",
"0.5956183",
"0.593489",
"0.5932149",
"0.5917964",
... | 0.6067072 | 12 |
Array form of 'element.get(attr)'. | def OP2O(YKHO, ZfUD: str) -> str:
return YKHO._attributes[ZfUD] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jkIg(YKHO, hkS8) -> x1iM[ImMB]:\n return [getattr(LihS, hkS8) for LihS in YKHO]",
"def JQP_(YKHO, U0ak):\n return oyIN.array([getattr(YKHO, hkS8) for hkS8 in U0ak])",
"def kjjS(YKHO, hkS8):\n return oyIN.array([WKvO.__getattribute__(hkS8) for WKvO in YKHO.balls])",
"def xC3W(YKHO):\n return [... | [
"0.73821265",
"0.7278628",
"0.7037075",
"0.65142554",
"0.6422547",
"0.64045197",
"0.636986",
"0.6345125",
"0.6342283",
"0.6318376",
"0.63083136",
"0.6302173",
"0.62871534",
"0.62785375",
"0.62441885",
"0.62312615",
"0.6209746",
"0.6201429",
"0.61890894",
"0.6165799",
"0.61570... | 0.0 | -1 |
Returns an OptionParser object with all the default options. | def KzCv():
DMLg = PDen()
DMLg.add_option('-r', '--rbs_seq', dest='rbs_seq', help='The RBS sequence including spacers, start codon, and(optionally) his_tag. May be ambiguous.')
DMLg.add_option('-a', '--gene_a', dest='gene_a', help='Sequence of a first gene.')
DMLg.add_option('-b', '--gene_b', dest='gene... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b4rG():\n xAU6 = KPGg.parse_args([])\n xAU6.extra_args = []\n return xAU6",
"def b4rG(YKHO):\n return lE6K({}, YKHO.declared_options.values())",
"def yl6v():\n wvEv = FCn1.OptionParser(__doc__.strip(), version=BtDU)\n KdLI(wvEv)\n Vzsd(wvEv)\n Ao2l(wvEv)\n LvxV(wvEv)\n lwAi(wv... | [
"0.7364947",
"0.7187706",
"0.7147619",
"0.69783896",
"0.6924779",
"0.689246",
"0.68876624",
"0.6724378",
"0.6681338",
"0.66482836",
"0.6598408",
"0.65914583",
"0.6568378",
"0.65350515",
"0.65097815",
"0.64513934",
"0.64108694",
"0.6354761",
"0.63503635",
"0.6347602",
"0.63428... | 0.5924958 | 94 |
Convert a string to a byte array | def LoFF(Ol8d):
if not isinstance(Ol8d, bytes):
Ol8d = Ol8d.encode()
return (Ol8d, len(Ol8d).to_bytes(4, 'big')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i_l1(KCHu):\n return KCHu",
"def ZqkC(vIwR: str):\n return vIwR.encode()",
"def i_l1(KCHu):\n return AcPw(Jq2a(KCHu))",
"def i_l1(KCHu):\n return KCHu.encode('utf8')",
"def P2hG(vIwR):\n return vIwR.encode('utf-8')",
"def ZqkC(vIwR: str) -> bytes:\n return bytes(vIwR, encoding='utf-... | [
"0.81099856",
"0.80885404",
"0.8023708",
"0.7973168",
"0.79574907",
"0.781199",
"0.7735744",
"0.75577307",
"0.7543301",
"0.75232697",
"0.75232697",
"0.75232697",
"0.75232697",
"0.75232697",
"0.75232697",
"0.75232697",
"0.750288",
"0.7478846",
"0.7469216",
"0.746581",
"0.73874... | 0.0 | -1 |
odd_even tells if a number is odd (return True) or even (return False) | def adPw(WKvO):
if int(WKvO) % 2 == 0:
bool = False
else:
bool = True
return bool | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYZq(FGW3):\n return FGW3 % 2 != 0",
"def sTzf(mSrU):\n if mSrU % 2 == 0:\n return True\n else:\n return False",
"def kYZq(FGW3):\n return not ubP8(FGW3)",
"def kYZq(exwG):\n if ubP8(exwG) == True:\n return False\n else:\n return True",
"def vDsO(mLGw):\n ... | [
"0.8787235",
"0.87733114",
"0.87388897",
"0.8671965",
"0.86654633",
"0.8611897",
"0.86087966",
"0.8555211",
"0.853972",
"0.8485222",
"0.8477851",
"0.8473431",
"0.84717923",
"0.8464514",
"0.84546125",
"0.84482086",
"0.8404758",
"0.83763254",
"0.8352133",
"0.8341174",
"0.833677... | 0.8486284 | 9 |
Converts (x, y) coordinates of a metric map to (row, col) coordinates of a grid map. | def Wsyf(YKHO, M_DK: Tuple[float, float]) -> AzJI[int, int]:
WKvO = epAf.floor(M_DK[0])
LVAh = epAf.ceil(M_DK[1])
rdlD = int(YKHO._YR - LVAh)
fvDH = int(WKvO + YKHO._XC)
return (rdlD, fvDH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2G_(_yGr, WKvO, LVAh):\n pass",
"def H2G_(_yGr, WKvO, LVAh):\n GKCe = PvyL()\n iREb = _yGr.info.origin.position.x + _yGr.info.resolution / 2\n cxow = _yGr.info.origin.position.y + _yGr.info.resolution / 2\n GKCe.x = float(WKvO * _yGr.info.resolution + iREb)\n GKCe.y = float(LVAh * _yGr.inf... | [
"0.7207764",
"0.7205608",
"0.71724635",
"0.7061466",
"0.7041161",
"0.70159036",
"0.6979204",
"0.69269603",
"0.6891013",
"0.6844404",
"0.6726968",
"0.66999894",
"0.6696685",
"0.66849595",
"0.6632876",
"0.6622094",
"0.6618175",
"0.65599924",
"0.65599924",
"0.65599924",
"0.64437... | 0.0 | -1 |
Sets up a controller's UI. | def WihT(Z9rn):
QgVA = lambda niNT, fTTG, yzQ0: niNT + (fTTG - yzQ0) / 2
ShaK = Z9rn.bg.w * 0.5
jwJm = 0.1
erXh = (Z9rn.bg.anchor[0] + ShaK / 2.0, Z9rn.bg.anchor[1] - 0.1)
flAf = lambda Z9rn, XP5J, xFfn: vQ4U.toggle_pause(Z9rn.sim)
Z9rn.add_button(erXh, ShaK, jwJm, color=(180, 10, 5), parent=Z9r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEK8():\n GD_A = q_Mz()\n GD_A.show()\n return GD_A",
"def MG5I(YKHO):\n YKHO.master.title('Vending Machine')\n eYu1 = sfEg(YKHO._machine)\n hqaY = rj_L(YKHO._machine)\n hqaY.pack(side=pY1r)\n eYu1.pack(side=Ny9c)",
"def S4x2(YKHO):\n DWkG = yW_O()\n nUeQ = O1xS(Grpq)\n nUe... | [
"0.74130577",
"0.7132053",
"0.7129396",
"0.7076795",
"0.69178706",
"0.689778",
"0.68849355",
"0.6845696",
"0.6829045",
"0.6817435",
"0.6772907",
"0.67627525",
"0.6694064",
"0.66698927",
"0.6665369",
"0.6639916",
"0.6639907",
"0.66377896",
"0.6625655",
"0.6619476",
"0.6609555"... | 0.0 | -1 |
When inheriting from numpy, the object creation and initialization is handled by __new__ instead of __init__. | def fwuD(Emd4, y2RV, iBIi, YwkQ, d6pt=slice(None), w7rP=slice(None), mllr=None, Yh3e=None, Zu8l=None, ptGA=False, wJg0=None, I9Kx=True, CK6s=False, **B2fa):
rxEN = []
if 'timeit' in B2fa:
onpT = B2fa['timeit']
if onpT:
rxEN.append(ITS7.time())
else:
onpT = False
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, oyIN=oyIN):\n YKHO.numpy = oyIN",
"def FIMM(YKHO, *qIxc, **B2fa):\n super().__init__(*qIxc, **B2fa)\n YKHO.numpy = oyIN",
"def fwuD(Emd4, Ddli, mWFP=None):\n YEnM = oyIN.asarray(Ddli).view(Emd4)\n if mWFP is None:\n YEnM.name = Ddli.item(0).name\n else:\n YEnM.nam... | [
"0.7643748",
"0.7446418",
"0.7314907",
"0.7244366",
"0.7150765",
"0.70972115",
"0.7018564",
"0.69958496",
"0.69318295",
"0.69087166",
"0.69058454",
"0.6865407",
"0.6841617",
"0.68050385",
"0.679724",
"0.6793742",
"0.6711798",
"0.6662473",
"0.66298956",
"0.6625489",
"0.6622515... | 0.0 | -1 |
Calculate the loss accroding to the model output ```scores```, and the target ```labels```. | def N77f(YKHO, cCrA, Crrw, WEi6=False, **B2fa):
if len(Crrw) == 1:
Crrw = Crrw[0]
elif len(Crrw) == 3:
Re7d, mZF3, EhIg = Crrw
return YKHO.mixup_loss(cCrA, Re7d, mZF3, EhIg)
else:
raise NotImplemented
if YKHO.ls_eps != 0.0:
Crrw = vuvg.one_hot(Crrw, YKHO.num_class... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N77f(YKHO, jEdC, Crrw, **B2fa):\n N8L0 = dict()\n if Crrw.shape == ht2j.Size([]):\n Crrw = Crrw.unsqueeze(0)\n elif Crrw.dim() == 1 and Crrw.size()[0] == YKHO.num_classes and (jEdC.size()[0] == 1):\n Crrw = Crrw.unsqueeze(0)\n if not YKHO.multi_class and jEdC.size() != Crrw.size():\n ... | [
"0.7421894",
"0.74212253",
"0.73904777",
"0.72758293",
"0.72637326",
"0.7239482",
"0.72022307",
"0.719717",
"0.71559846",
"0.7146563",
"0.71410215",
"0.7119612",
"0.71185696",
"0.7113408",
"0.71065557",
"0.7075452",
"0.705801",
"0.70562845",
"0.70053416",
"0.6992657",
"0.6983... | 0.7464417 | 0 |
Stacks elements along two axes to make a tensor of matrices. | def yvLo(UqER):
usx6 = [ZylS.stack(_RxS, axis=-1) for _RxS in UqER]
return ZylS.stack(usx6, axis=-2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5BI(oCuQ):\n ROpF = (-1, *oCuQ[0].shape)\n return ht2j.cat(oCuQ).view(*ROpF)",
"def a42A(SjLr):\n if StCl(vuvg.typeof(SjLr)):\n return SjLr\n if not k3g3(SjLr) and (not Ll9Z(SjLr)):\n RwK6('Tensor or, list or tuple of tensors are required, but got ', SjLr)\n if not SjLr:\n ... | [
"0.6804889",
"0.67400074",
"0.6734556",
"0.67330325",
"0.65972817",
"0.6480441",
"0.64169383",
"0.6354737",
"0.6318291",
"0.61648977",
"0.6114992",
"0.6104958",
"0.6098506",
"0.60889953",
"0.6088299",
"0.6070445",
"0.60539323",
"0.60261434",
"0.59878707",
"0.5971205",
"0.5968... | 0.7103537 | 1 |
Convert (x,y,z) coordinates relative to camera to texture coordinates. | def tCFl(jNOo, SCWy):
DxXZ('coords', jNOo, -1, 3)
r9Qs = ZylS.math.divide_no_nan(jNOo[Ellipsis, :2], jNOo[Ellipsis, 2:])
DDOk, bzmC = ZylS.split(SCWy, [2, 2], axis=-1)
r9Qs = r9Qs * DDOk + bzmC
return r9Qs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bgUn(jNOo, SCWy):\n DxXZ('coords', jNOo, -1, 2)\n DDOk, bzmC = ZylS.split(SCWy, [2, 2], axis=-1)\n r9Qs = (jNOo - bzmC) / DDOk\n return u3Ip(r9Qs)",
"def UPzw(YKHO, WKvO, LVAh, epBp):\n return (WKvO * YKHO.scale, LVAh * YKHO.scale, epBp * YKHO.scale)",
"def QSX5(P6bq, Ty9i):\n epBp = UwEl... | [
"0.7318138",
"0.67654014",
"0.657434",
"0.6534376",
"0.6515134",
"0.65140206",
"0.6511314",
"0.64191395",
"0.64167583",
"0.6367247",
"0.63234234",
"0.6310987",
"0.6297032",
"0.62731135",
"0.62393975",
"0.62335443",
"0.62240106",
"0.61676484",
"0.6164423",
"0.61473083",
"0.609... | 0.75618804 | 0 |
Produce a grid of (x,y) texturecoordinate pairs of pixel centers. | def Ajcf(H2v2, TVTK):
n_02 = ZylS.cast(H2v2, dtype=ZylS.float32)
zLHU = ZylS.cast(TVTK, dtype=ZylS.float32)
bEXe = ZylS.linspace(0.5 / n_02, 1.0 - 0.5 / n_02, H2v2)
fUYa = ZylS.linspace(0.5 / zLHU, 1.0 - 0.5 / zLHU, TVTK)
fUYa, bEXe = ZylS.meshgrid(fUYa, bEXe)
Cs6h = ZylS.stack([fUYa, bEXe], axi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kt1c(jHsn: int=20, pvd3: int=20) -> ht2j.Tensor:\n yqRF, MZBS = ht2j.meshgrid([ht2j.arange(pvd3), ht2j.arange(jHsn)])\n return ht2j.stack((MZBS, yqRF), 2).view(1, 1, pvd3, jHsn, 2).float()",
"def tjFQ(lojK, p132):\n return oyIN.transpose([oyIN.tile(lojK, len(p132)), oyIN.repeat(p132, len(lojK))])",
... | [
"0.6776492",
"0.6752128",
"0.6720489",
"0.67140853",
"0.6656578",
"0.665632",
"0.6582433",
"0.6574533",
"0.6557904",
"0.65438557",
"0.6536796",
"0.65119493",
"0.6476005",
"0.6467879",
"0.6445592",
"0.6439656",
"0.6428246",
"0.6389716",
"0.6353886",
"0.6336482",
"0.6331835",
... | 0.67678857 | 1 |
A tensor of rays from the camera to the plane at z=1, one per pixel. | def lnK_(SCWy, H2v2, TVTK):
jNOo = Ajcf(H2v2, TVTK)
SCWy = SCWy[Ellipsis, ZylS.newaxis, ZylS.newaxis, :]
Cawp = bgUn(jNOo, SCWy)
return Cawp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def spHt(CXua: type_alias.TensorLike, mWFP: str='orthographic_ray') -> ZylS.Tensor:\n with ZylS.name_scope(mWFP):\n CXua = ZylS.convert_to_tensor(value=CXua)\n ROpF.check_static(tensor=CXua, tensor_name='point_2d', has_dim_equals=(-1, 2))\n pSfY = ZylS.ones_like(CXua[..., :1])\n retu... | [
"0.6628593",
"0.6360669",
"0.6360407",
"0.6206967",
"0.6205227",
"0.6062965",
"0.60557556",
"0.5993703",
"0.5949596",
"0.5942764",
"0.5894947",
"0.5885065",
"0.5858317",
"0.58253103",
"0.57630193",
"0.57491314",
"0.5711754",
"0.56964034",
"0.56631356",
"0.56502527",
"0.564505... | 0.7132324 | 0 |
Tests conversion of boolean string to boolean type | def q4YZ(YKHO):
assert BJsk.convert_bool_str('True') is True
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rord(vIwR):\n if vIwR.strip().lower() in ['1', 'true', 't', 'y']:\n return True\n if vIwR.strip().lower() in ['0', 'false', 'f', 'n'] or not vIwR:\n return False\n else:\n raise TypeError(f'string {vIwR} is not an identified boolean.')",
"def M0mR(KCHu):\n if KCHu == 'True':\... | [
"0.86762536",
"0.867309",
"0.8649625",
"0.8638335",
"0.8634173",
"0.8596616",
"0.8578909",
"0.8544459",
"0.85313314",
"0.8508504",
"0.8471986",
"0.8447757",
"0.84242785",
"0.8402003",
"0.8397241",
"0.8385162",
"0.8369799",
"0.83684325",
"0.8360175",
"0.8346692",
"0.8342572",
... | 0.84697604 | 11 |
Get folders to watch for changes when using ``ievv buildstatic watch``. Defaults to an empty list, which means that no watching thread is started for the plugin. The folder paths must be absolute, so in most cases you should use ``self.app.get_source_path()`` (see | def T2cM(YKHO):
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def frLt(YKHO):\n return tuple(YKHO.folders.values())",
"def l33r(YKHO):\n if YKHO.project.root is None:\n return []\n Aofo = list(YKHO._custom_source_folders)\n Aofo.extend(YKHO._find_source_folders(YKHO.project.root))\n return Aofo",
"def l33r(YKHO):\n if YKHO.project.root is None:\n... | [
"0.7303983",
"0.70707345",
"0.70707345",
"0.7048429",
"0.66155183",
"0.64259523",
"0.64214116",
"0.6398686",
"0.63782007",
"0.6348228",
"0.62292194",
"0.61876327",
"0.61328745",
"0.61298746",
"0.61252296",
"0.60853547",
"0.60716414",
"0.60589015",
"0.60530454",
"0.603794",
"0... | 0.7823852 | 0 |
Compute the IoU between a reference box with multiple proposal boxes. | def RjuK(aC0l, eDGE):
GPIy = ht2j.max(aC0l[:, :2], eDGE[:, :2])
Rzz_ = ht2j.min(aC0l[:, :2] + aC0l[:, 2:], eDGE[:, :2] + eDGE[:, 2:])
Rv0k = (Rzz_ - GPIy).clamp(0)
iQin = Rv0k.prod(dim=1)
b65I = aC0l[:, 2:].prod(dim=1) + eDGE[:, 2:].prod(dim=1) - iQin
return iQin / b65I | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xWy(YKHO, knvf, IkxF):\n ywwl = knvf.size(0)\n E3D9 = IkxF.size(0)\n D5g7 = ht2j.max(knvf[:, :2].unsqueeze(1).expand(ywwl, E3D9, 2), IkxF[:, :2].unsqueeze(0).expand(ywwl, E3D9, 2))\n FohR = ht2j.min(knvf[:, 2:].unsqueeze(1).expand(ywwl, E3D9, 2), IkxF[:, 2:].unsqueeze(0).expand(ywwl, E3D9, 2))\n ... | [
"0.76687354",
"0.7605702",
"0.7558061",
"0.75516397",
"0.754752",
"0.75444627",
"0.75285816",
"0.7525426",
"0.75211364",
"0.75193715",
"0.7517849",
"0.75147843",
"0.7514334",
"0.7514334",
"0.7514334",
"0.7514334",
"0.7514334",
"0.7514334",
"0.74733865",
"0.7470867",
"0.746892... | 0.6943285 | 71 |
Initializes `MastermindGame` class object | def FIMM(YKHO, *qIxc, GERS=None, **B2fa):
super().__init__(*qIxc, **B2fa)
YKHO._mode = 'game'
class GameStrings:
BYLU = 'Welcome to Mastermind Game!'
q7nM = 'I am'
i9hz = 'I have'
wSte = 'my'
nYmk = 'You are'
S2MF = 'you'
diI0 = 'you'
hQdx = '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n super(mE1W, YKHO).__init__()\n YKHO.difficulty = 'Easy'\n YKHO.difficultyTypes = {'Easy': [0] * 4, 'Medium': [0] * 5, 'Hard': [0] * 6}\n YKHO.code = [0] * 4\n YKHO.input_code = [0] * 4\n YKHO.loop_position = []\n YKHO.loop_number = []\n YKHO.right_number = 0\n YKHO.righ... | [
"0.75224143",
"0.7032397",
"0.68746877",
"0.67999446",
"0.67556345",
"0.66774786",
"0.6616352",
"0.65904415",
"0.65736943",
"0.65285623",
"0.6511779",
"0.6506967",
"0.64925057",
"0.64801383",
"0.64711696",
"0.6461537",
"0.6435797",
"0.6420386",
"0.64084023",
"0.6398645",
"0.6... | 0.6690083 | 5 |
creates app with registry and rabbitMQ services mocked | def P4t4(vQdK: EnvVarsDict, cYEW: AsyncMock, nN_H: dict[str, AsyncMock]) -> WvgU:
return LUif() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif(zmu8=None, nPbG=None, SR2J=None, TLBs=None, Haas=None, YjXO=None, uaWE=None):\n P4t4 = L2w0(__name__, instance_relative_config=True)\n 'Flask CLI Plugin to create user using CLI'\n Xsxx = ujn4('user')\n\n @Xsxx.command('create')\n @k8wH.argument('sub')\n @k8wH.argument('email')\n @k8w... | [
"0.6892686",
"0.68756706",
"0.68430316",
"0.6828842",
"0.68184304",
"0.6815949",
"0.67851126",
"0.6744222",
"0.6707451",
"0.6688",
"0.6688",
"0.6673071",
"0.65582055",
"0.65308374",
"0.6513645",
"0.65105146",
"0.64926314",
"0.6492521",
"0.64898103",
"0.6487974",
"0.6483945",
... | 0.79888123 | 0 |
Amount of samples in signal. | def gGnb(YKHO):
return YKHO.shape[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDK5(YKHO) -> int:\n return len(YKHO._xa.sample)",
"def _PBJ(YKHO):\n return YKHO.numSamples",
"def exwG(YKHO):\n return len(YKHO._samples)",
"def pUuX(YKHO) -> int:\n return YKHO._nsamples",
"def cDK5(YKHO):\n return YKHO._n_samples",
"def pUuX(YKHO):\n return len(YKHO._y)",
"def... | [
"0.8069005",
"0.7955631",
"0.7947086",
"0.78604203",
"0.78489906",
"0.7835263",
"0.7817516",
"0.78074056",
"0.7768661",
"0.7764934",
"0.76872003",
"0.76856494",
"0.76774466",
"0.7661014",
"0.7645205",
"0.76365495",
"0.7613247",
"0.7604672",
"0.7601678",
"0.75521916",
"0.75285... | 0.6700848 | 85 |