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 |
|---|---|---|---|---|---|---|
This function optimizes w and b by running a gradient descent algorithm | def WIl5(yzQ0, Fg_i, EcVT, fuBA, Xejw, b0Ix, nqYr=False):
KmmF = []
for YRbF in range(Xejw):
vtNT, sSN_ = sNVR(yzQ0, Fg_i, EcVT, fuBA)
ncXl = vtNT['dw']
NCls = vtNT['db']
yzQ0 = yzQ0 - b0Ix * vtNT['dw']
Fg_i = Fg_i - b0Ix * vtNT['db']
if YRbF % 100 == 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i6uH(XcU5, Fg_i, EcVT, fuBA, tspZ, OnWS):\n KmmF = []\n _iCn = XcU5\n dGTp = Fg_i\n for YRbF in range(OnWS):\n NfqM, sSN_ = sNVR(XcU5, Fg_i, EcVT, fuBA)\n HFON = NfqM['dW']\n NCls = NfqM['db']\n _iCn -= tspZ * HFON\n dGTp -= tspZ * NCls\n if YRbF % 100 == 0... | [
"0.8162371",
"0.79763085",
"0.791228",
"0.7658344",
"0.7629789",
"0.74994516",
"0.74801224",
"0.7437381",
"0.74326104",
"0.73265433",
"0.7325304",
"0.72645813",
"0.7257292",
"0.7234633",
"0.7212119",
"0.72113466",
"0.719571",
"0.7163515",
"0.7161593",
"0.715023",
"0.714879",
... | 0.76314276 | 4 |
Retrieve the label for the data source attribute. Label could be specified in `.short_description` or the attribute name would be used. | def UXqs(YKHO):
return F4bN(YKHO.data_source, YKHO.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bzNK(YKHO):\n UXqs = YKHO.getAttribute('label')\n if not UXqs:\n UXqs = YKHO.getDescription()\n if not UXqs:\n UXqs = YKHO.getName()\n return UXqs",
"def UXqs(YKHO):\n return YKHO.data['label']",
"def BTJA(YKHO):\n return YKHO.getAttribute('label_attribute')",
"def UXqs(YK... | [
"0.71363294",
"0.7074213",
"0.69970214",
"0.6890714",
"0.6867451",
"0.68551356",
"0.6819387",
"0.6766575",
"0.6766575",
"0.6766575",
"0.6766575",
"0.6766575",
"0.6766575",
"0.6766575",
"0.67582583",
"0.67582583",
"0.67582583",
"0.67582583",
"0.67582583",
"0.67582583",
"0.6758... | 0.8280198 | 0 |
Update view context. Include `datatable_config`, 'headers' and initial `data` to first page render. | def tCbc(YKHO, **B2fa):
QpfX = super(ZcHw, YKHO).get_context_data(**B2fa)
QpfX.update({'datatable_config': YKHO.get_datatable_config(), 'headers': YKHO.get_headers_data(), 'data': YKHO.get_table_data(0, YKHO.paginate_by)})
return QpfX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r7tU(YKHO):\n YKHO.render()",
"def r7tU(YKHO):\n YKHO.data_changed = True\n YKHO.render()",
"def tCbc(YKHO, **B2fa):\n QpfX = super().get_context_data(**B2fa)\n YKHO.form_page = QpfX['form_page']\n OBMC = QpfX[YKHO.context_object_name]\n i9s9 = YKHO.form_page.get_data_fields()\n SpL... | [
"0.6422465",
"0.5981535",
"0.5953677",
"0.59348315",
"0.58994675",
"0.58940697",
"0.58240944",
"0.58240944",
"0.5780206",
"0.57199347",
"0.56518567",
"0.56042683",
"0.5580905",
"0.553898",
"0.5536926",
"0.5526487",
"0.54844797",
"0.54513717",
"0.54513717",
"0.5410534",
"0.540... | 0.7268734 | 0 |
Object view permission check. If view had a `viewset`, the `viewset.has_view_permission` used. | def h8ch(YKHO, QePW, YEnM=None):
if YKHO.viewset is not None:
return YKHO.viewset.has_view_permission(QePW, YEnM)
VKhi = YKHO.model._meta
tonj = lCXT('view', VKhi)
IeGx = '{}.{}'.format(VKhi.app_label, tonj)
if QePW.user.has_perm(IeGx):
return True
elif QePW.user.has_perm(IeGx, o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h8ch(YKHO, QePW, YEnM=None):\n return YKHO.has_global_view_permission(QePW) or YKHO.has_object_view_permission(QePW, YEnM)",
"def h8ch(YKHO, QePW, YEnM=None):\n VKhi = YKHO.opts\n return QePW.user.has_perm(VKhi.app_label + '.' + 'view_%s' % VKhi.object_name.lower())",
"def h8ch(YKHO, QePW, YEnM=No... | [
"0.8848062",
"0.8834826",
"0.86622924",
"0.84788185",
"0.8427162",
"0.84217906",
"0.83454984",
"0.8309037",
"0.82095975",
"0.8199122",
"0.81401056",
"0.81401056",
"0.81401056",
"0.81401056",
"0.8092896",
"0.8037101",
"0.80133456",
"0.8009666",
"0.80088985",
"0.7980257",
"0.79... | 0.86885965 | 2 |
Object change permission check. If view had a `viewset`, the `viewset.has_change_permission` used. | def PFbn(YKHO, QePW, YEnM=None):
if YKHO.viewset is not None:
return YKHO.viewset.has_change_permission(QePW, YEnM)
VKhi = YKHO.model._meta
tonj = lCXT('change', VKhi)
ds3P = '{}.{}'.format(VKhi.app_label, tonj)
if QePW.user.has_perm(ds3P):
return True
return QePW.user.has_perm(d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFbn(YKHO, QePW, YEnM=None):\n VKhi = YKHO.opts\n return QePW.user.has_perm(VKhi.app_label + '.' + 'change_%s' % VKhi.object_name.lower())",
"def PFbn(YKHO, QePW, YEnM=None):\n return True",
"def PFbn(YKHO, QePW, YEnM=None):\n return False",
"def PFbn(YKHO, QePW, YEnM=None):\n return False... | [
"0.8529136",
"0.85054904",
"0.8417096",
"0.8417096",
"0.8417096",
"0.8382178",
"0.83708894",
"0.8332953",
"0.81840396",
"0.79553723",
"0.7858581",
"0.77413523",
"0.76908046",
"0.76661175",
"0.75687337",
"0.75634545",
"0.7532096",
"0.7514504",
"0.75052106",
"0.7480532",
"0.745... | 0.84462184 | 2 |
Object add permission check. If view had a `viewset`, the `viewset.has_add_permission` used. | def Cb6P(YKHO, QePW):
if YKHO.viewset is not None:
return YKHO.viewset.has_add_permission(QePW)
VKhi = YKHO.model._meta
tonj = lCXT('add', VKhi)
return QePW.user.has_perm('{}.{}'.format(VKhi.app_label, tonj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cb6P(YKHO, QePW, YEnM=None):\n return False",
"def Cb6P(YKHO, QePW, YEnM=None):\n return False",
"def Cb6P(YKHO, QePW, YEnM=None):\n return False",
"def Cb6P(YKHO, QePW, YEnM=None):\n return False",
"def Cb6P(YKHO, QePW, YEnM=None):\n return False",
"def Cb6P(YKHO, QePW, YEnM=None):\n ... | [
"0.8740616",
"0.8740616",
"0.8740616",
"0.8740616",
"0.8740616",
"0.8740616",
"0.8740616",
"0.8740616",
"0.8740616",
"0.8740616",
"0.8209106",
"0.8209106",
"0.8209106",
"0.8209106",
"0.8209106",
"0.8209106",
"0.8209106",
"0.8209106",
"0.8209106",
"0.8209106",
"0.8209106",
"... | 0.8245482 | 10 |
Retrieve the view queryset. | def k66M(YKHO):
if YKHO.queryset is not None:
SR0I = YKHO.queryset
if isinstance(SR0I, ZYvt):
SR0I = SR0I.all()
elif YKHO.viewset is not None and hasattr(YKHO.viewset, 'get_queryset'):
SR0I = YKHO.viewset.get_queryset(YKHO.request)
elif YKHO.model is not None:
SR0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HI6K(YKHO, tTee):\n assert hasattr(tTee, 'get_queryset') or getattr(tTee, 'queryset', None) is not None, 'Cannot apply {} on a view that does not set `.queryset` or have a `.get_queryset()` method.'.format(YKHO.__class__.__name__)\n SR0I = getattr(tTee, 'queryset', None)\n if SR0I is None:\n SR... | [
"0.799397",
"0.79405814",
"0.79012215",
"0.78539467",
"0.78539467",
"0.7715257",
"0.7706156",
"0.76032007",
"0.7559193",
"0.7538961",
"0.74971646",
"0.7475233",
"0.7314179",
"0.73028886",
"0.7296516",
"0.7296516",
"0.7275667",
"0.7267524",
"0.7267524",
"0.7267524",
"0.7267524... | 0.72263193 | 29 |
Convert a Cartesian coordinate into a spherical one. | def P5Ey(tjFQ: Cartesian) -> fA8r:
WKvO, LVAh, epBp = tjFQ
return fA8r(rot_x=t135(LVAh, epBp), rot_y=t135(WKvO, epBp), dist=aJJu.norm(tjFQ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P5Ey(WKvO, LVAh, epBp):\n Mkmy = PZyS(WKvO * WKvO + LVAh * LVAh + epBp * epBp)\n if Mkmy == 0:\n return (0, 0, 0)\n q7In = D4LM(epBp / Mkmy)\n rVnq = t135(LVAh, WKvO)\n return (Mkmy, q7In, rVnq)",
"def P5Ey(jNOo):\n WKvO, LVAh, epBp = jNOo\n Mkmy = oyIN.sqrt(WKvO ** 2 + LVAh ** 2 ... | [
"0.7962296",
"0.76192135",
"0.7581407",
"0.7525297",
"0.7395854",
"0.7395854",
"0.73321706",
"0.728767",
"0.7258225",
"0.7258042",
"0.7241543",
"0.7233286",
"0.7230656",
"0.7214951",
"0.7210636",
"0.72097665",
"0.7177242",
"0.7084008",
"0.70504117",
"0.70414037",
"0.7033924",... | 0.8155802 | 0 |
Convert cartesian coordinate space to the legacy "polar" space. This is kept for compatibility only. | def T_mp(tjFQ: Cartesian) -> pqNo:
qnN3, _1mg, bMXJ = tuple(tjFQ)
mA9Q = oyIN.linalg.norm(tjFQ)
nUBK = oyIN.arctan2(bMXJ, qnN3)
zmoN = oyIN.arctan2(bMXJ, _1mg)
return pqNo(nUBK, zmoN, mA9Q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ua7K(WKvO, LVAh):\n return (oyIN.sqrt(oyIN.array(WKvO) ** 2 + oyIN.array(LVAh) ** 2), oyIN.arctan2(LVAh, WKvO))",
"def ua7K(WKvO, LVAh):\n Mkmy, rVnq, bGrB = f7KR(WKvO, LVAh, 0)\n return (Mkmy, rVnq)",
"def vcUJ(WKvO, LVAh):\n return (PZyS(WKvO ** 2 + LVAh ** 2), vwZf(LVAh, float(WKvO)))",
"d... | [
"0.74412936",
"0.7222723",
"0.70448124",
"0.7026232",
"0.69437784",
"0.6917107",
"0.6802649",
"0.67997503",
"0.6763243",
"0.67024297",
"0.6690379",
"0.6689858",
"0.66711396",
"0.66681796",
"0.666207",
"0.66568524",
"0.6645753",
"0.6641315",
"0.66311216",
"0.66230804",
"0.6623... | 0.7714052 | 0 |
Return True if OBJ has an attribute named METHOD and that attribute is callable. Otherwise, return False. | def GRgQ(YEnM, NKcE):
return callable(getattr(YEnM, NKcE, None)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DXXK(YEnM: object, NKcE: str) -> bool:\n return callable(getattr(YEnM, NKcE, None))",
"def DXXK(YEnM, mWFP):\n return callable(getattr(YEnM, mWFP, None))",
"def ciwD(YEnM, mWFP):\n gGuS = getattr(YEnM, mWFP, None)\n if gGuS is None:\n return False\n elif callable(gGuS):\n retur... | [
"0.7877389",
"0.7577204",
"0.75691295",
"0.7367801",
"0.73349434",
"0.7317048",
"0.73129785",
"0.72472215",
"0.71621466",
"0.7024782",
"0.7001617",
"0.6947709",
"0.6931606",
"0.6892453",
"0.6884242",
"0.68032885",
"0.678062",
"0.66910464",
"0.66797715",
"0.6656338",
"0.661284... | 0.7706321 | 1 |
Creates a label colormap used in ADE20K segmentation benchmark. | def rxSf():
return oyIN.asarray([[0, 0, 0], [120, 120, 120], [180, 120, 120], [6, 230, 230], [80, 50, 50], [4, 200, 3], [120, 120, 80], [140, 140, 140], [204, 5, 255], [230, 230, 230], [4, 250, 7], [224, 5, 255], [235, 255, 7], [150, 5, 61], [120, 120, 70], [8, 255, 51], [255, 6, 82], [143, 255, 140], [204, 255, 4]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JNWv():\n MYQr = oyIN.zeros((256, 3), dtype=oyIN.uint8)\n MYQr[0] = [0, 0, 0]\n MYQr[1] = [153, 204, 255]\n MYQr[2] = [70, 70, 70]\n MYQr[3] = [102, 102, 156]\n MYQr[4] = [190, 153, 153]\n MYQr[5] = [153, 153, 153]\n MYQr[6] = [250, 170, 30]\n MYQr[7] = [220, 220, 0]\n MYQr[8] = [... | [
"0.8191501",
"0.7210954",
"0.7160679",
"0.7160679",
"0.7160679",
"0.7160679",
"0.7145851",
"0.70791775",
"0.6819293",
"0.6807712",
"0.6793143",
"0.6793143",
"0.6763397",
"0.67607975",
"0.67607975",
"0.6724898",
"0.67211336",
"0.67211336",
"0.67211336",
"0.6632052",
"0.6556982... | 0.807243 | 1 |
3x3 convolution with padding | def Myly(UUZO, sYyA, CTmp=qIxc.compress_rate, _0fC=1, dvgN=1, qIxc=qIxc):
qIxc.compress_rate = CTmp
return zCiL(kernel_sizes=[3], in_channels=UUZO, out_channels=[sYyA], strides=[_0fC], padding=[dvgN], args=qIxc, is_bias=False).get_conv() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.0 | -1 |
Test that once a filtered dataset is soft deleted it does not appear in the list of forms for a project | def M0p5(YKHO):
YKHO._create_dataview()
tTee = pFXJ.as_view({'get': 'retrieve'})
QePW = YKHO.factory.get('/', **YKHO.extra)
geh0 = tTee(QePW, pk=YKHO.project.pk)
YKHO.assertIsNotNone(geh0.data['data_views'])
QePW = YKHO.factory.delete('/', **YKHO.extra)
geh0 = YKHO.view(QePW, pk=YKHO.data_vi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M0p5(YKHO):\n YKHO._create_dataview()\n tTee = pFXJ.as_view({'get': 'retrieve'})\n QePW = YKHO.factory.get('/', **YKHO.extra)\n geh0 = tTee(QePW, pk=YKHO.project.pk)\n YKHO.assertIsNotNone(geh0.data['data_views'])\n QePW = YKHO.factory.delete('/', **YKHO.extra)\n geh0 = YKHO.view(QePW, pk=... | [
"0.66914994",
"0.64132345",
"0.6325138",
"0.62384486",
"0.6207586",
"0.60699356",
"0.60032415",
"0.59075046",
"0.5874396",
"0.58743113",
"0.58728397",
"0.58662045",
"0.5856895",
"0.5840273",
"0.58318657",
"0.58132154",
"0.58084095",
"0.5789147",
"0.5784056",
"0.5748335",
"0.5... | 0.66780734 | 1 |
Converts a hex string to a byte array. bytes.fromhex for NotInventedHere victims. | def TvxI(KCHu):
assert len(KCHu) % 2 == 0
return bytearray((int(''.join(yOAJ), 16) for yOAJ in gnPz.grouper(2, KCHu))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ntSl(X9sb: str) -> bytes:\n return bytes.fromhex(X9sb)",
"def RKql(KCHu):\n return bytes.fromhex(KCHu)",
"def TEbQ(sauu):\n bytes = []\n sauu = ''.join(sauu.split(' '))\n for YRbF in range(0, len(sauu), 2):\n bytes.append(chr(int(sauu[YRbF:YRbF + 2], 16)))\n return ''.join(bytes)",... | [
"0.8135798",
"0.78399307",
"0.77903533",
"0.77698773",
"0.774032",
"0.75885785",
"0.7533845",
"0.75107",
"0.7496221",
"0.7483195",
"0.7427296",
"0.7301935",
"0.72206223",
"0.7215868",
"0.7151751",
"0.70804757",
"0.70257854",
"0.69965553",
"0.6896403",
"0.6886116",
"0.6865159"... | 0.5877299 | 74 |
A wrapper for `tf.Variable` which enables parameter sharing in models. Creates and returns theano shared variables similarly to `tf.Variable`, except if you try to create a param with the same name as a previouslycreated one, `param(...)` will just return the old one instead of making a new one. This constructor also a... | def xqoZ(mWFP, *qIxc, **B2fa):
if mWFP not in Vlb9:
B2fa['name'] = mWFP
xqoZ = ZylS.Variable(*qIxc, **B2fa)
xqoZ.param = True
Vlb9[mWFP] = xqoZ
Aofo = Vlb9[mWFP]
YRbF = 0
while Aofo in HHxO:
YRbF += 1
Aofo = HHxO[Aofo]
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xqoZ(mWFP, *qIxc, **B2fa):\n if mWFP not in Vlb9:\n B2fa['name'] = mWFP\n xqoZ = e89i.shared(*qIxc, **B2fa)\n xqoZ.param = True\n Vlb9[mWFP] = xqoZ\n return Vlb9[mWFP]",
"def cmJY(Es0b, mWFP=None, **B2fa):\n Es0b = vhpA.as_tensor_variable(Es0b)\n if mWFP is None:\n ... | [
"0.7228368",
"0.66216755",
"0.64953065",
"0.5757709",
"0.55688477",
"0.54063773",
"0.5403763",
"0.5380748",
"0.5341497",
"0.5341497",
"0.5305132",
"0.5273908",
"0.5265733",
"0.5256221",
"0.52071685",
"0.51818705",
"0.5144111",
"0.5142993",
"0.5141774",
"0.5038502",
"0.5033273... | 0.64064413 | 3 |
This helper function accepts a list of the word pairings and their counts, and constructs a dict of dicts where the first key is the first word in the pair and the second key is the second word. | def maQQ(tZK9):
Kt9y = []
I_KI = []
ZySs = []
for d6pt in range(len(tZK9)):
V22M = tZK9[d6pt][0].split(' ')
Kt9y.append(V22M[0])
I_KI.append(V22M[1])
ZySs.append(tZK9[d6pt][1])
RI88 = {WKvO: {LVAh, epBp} for WKvO, LVAh, epBp in zip(Kt9y, I_KI, ZySs)}
return RI88 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BCj6(V22M):\n Csk6 = {}\n for YRbF, GIN8 in enumerate(V22M):\n try:\n cntZ, CsFy, pGCm = (V22M[YRbF], V22M[YRbF + 1], V22M[YRbF + 2])\n except IndexError:\n break\n H5ew = (cntZ, CsFy)\n if H5ew not in Csk6:\n Csk6[H5ew] = []\n Csk6[H5ew... | [
"0.73022914",
"0.7262578",
"0.7250363",
"0.72009057",
"0.7169393",
"0.71414155",
"0.70568293",
"0.70011055",
"0.6957193",
"0.691402",
"0.6879601",
"0.6866672",
"0.6825914",
"0.68041086",
"0.6792987",
"0.6766229",
"0.67385525",
"0.6729127",
"0.6723444",
"0.6694417",
"0.6687102... | 0.7957709 | 0 |
Get the config plugin. | def tgzD():
return PSrQ() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPtr(YKHO):\n return YKHO._pluginconfig",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO, mWFP, WmM4=None):\n try:\n return YKHO.config.get(YKHO.plugin_name, mWFP)\n exc... | [
"0.8131221",
"0.76634854",
"0.76634854",
"0.76634854",
"0.7572963",
"0.7565186",
"0.7537572",
"0.7502873",
"0.74747705",
"0.74747705",
"0.74747705",
"0.74747705",
"0.7460622",
"0.7460622",
"0.74540615",
"0.74540615",
"0.74540615",
"0.74540615",
"0.74540615",
"0.74540615",
"0.... | 0.0 | -1 |
Get the actual config. | async def _get_config(YKHO):
Nu1S = oAb3.Path.cwd() / '.pocketwalk.toml'
AVuk = Nu1S.read_text()
muwo = kRlw.loads(AVuk)
pzd_ = j1Jz.ArgumentParser(add_help=False)
pzd_.add_argument('--run', help='How long to run and loop pocketwalk. [default: %(default)s]', choices=['forever', 'till-pass', 'once'],... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def tgzD(YKHO):\n return YKHO.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YK... | [
"0.9053788",
"0.9053788",
"0.9053788",
"0.9053788",
"0.8925669",
"0.8912832",
"0.8912832",
"0.8912832",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
"0.886013",
... | 0.0 | -1 |
Create a User object. | def FIMM(YKHO, NtEF, D3lj, jTXt, TBEy, Tf5Y, QTBn='live', sPBL=None, _XW4=None, nPrm={}):
YKHO.username = NtEF
YKHO.email = D3lj
YKHO.password = jTXt
YKHO.countries = TBEy
YKHO.roles = Tf5Y
YKHO.state = QTBn
if not _XW4:
_XW4 = qcWV.now().isoformat()
if not sPBL:
sPBL = q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, **B2fa):\n mv1M.UserSchema(B2fa)\n CBIr = mv1M.User(**B2fa)\n YKHO._dbsession.add(CBIr)\n return CBIr",
"def lYUQ(YKHO, mWFP='Foo', D3lj='foo@test.com'):\n P6bq = mv1M(name=mWFP, email=D3lj)\n P6bq.put()\n return P6bq",
"def lYUQ(Emd4):\n CBIr = NEJe.blend('auth.User')\n ... | [
"0.822979",
"0.8199369",
"0.81347036",
"0.81157464",
"0.8114668",
"0.8046455",
"0.8045411",
"0.8035453",
"0.8023479",
"0.7981426",
"0.79741114",
"0.7951112",
"0.79457253",
"0.79457253",
"0.7935769",
"0.7914608",
"0.7914589",
"0.79073995",
"0.7881466",
"0.7862966",
"0.78612095... | 0.0 | -1 |
Returns the current object state as a json string. | def oD7C(YKHO):
return pz3A(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7C(YKHO):\n return YKHO.__getstate__()",
"def k8jS(YKHO):\n return YKHO.to_json_dict()",
"def k8jS(YKHO):\n return YKHO.to_dict()",
"def k8jS(YKHO):\n return {'onnx': YKHO.obj.SerializeToString(), 'runtime': YKHO.runtime, 'skip_run': YKHO.skip_run}",
"def By99(YEnM, vLkB=None):\n retur... | [
"0.8556953",
"0.81607676",
"0.74152625",
"0.73952097",
"0.73948807",
"0.73579746",
"0.73579746",
"0.73579746",
"0.73579746",
"0.73579746",
"0.73579746",
"0.7314782",
"0.72693896",
"0.7243721",
"0.7214599",
"0.7213807",
"0.7213807",
"0.72123265",
"0.72027993",
"0.7190712",
"0.... | 0.0 | -1 |
Checks whether the specified credentials are valid credentials for a user. If they are, returns the User object, if not throws an exception. | def NLCy(NtEF, jTXt):
CBIr = mv1M.from_db(NtEF)
if NByB.verify(jTXt, CBIr.password):
return CBIr
else:
raise pDSO('password', jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BTi6(NtEF, jTXt):\n if not NtEF or not jTXt:\n return None\n CBIr = mv1M.query.filter_by(username=NtEF).first()\n if not CBIr or not CBIr.verify_password(jTXt):\n return None\n return CBIr",
"def FB4A(YKHO, cHyp: str, HHox: str) -> tnwy('User'):\n if cHyp is None or not isinstanc... | [
"0.75495344",
"0.746585",
"0.7414161",
"0.74024254",
"0.72914183",
"0.72452086",
"0.7162716",
"0.7146106",
"0.714401",
"0.714401",
"0.7098407",
"0.7098407",
"0.7093386",
"0.7089314",
"0.7084324",
"0.70740116",
"0.7061329",
"0.7058619",
"0.70329356",
"0.7021243",
"0.698135",
... | 0.6946076 | 23 |
Checks whether the specified new username is valid or not, and raises an InvalidCredentialException if it is not valid. | def Z3WL(NtEF):
if mv1M.check_username(NtEF):
raise pDSO('username', NtEF, "A 'new' username must not match a username in the database.") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUbN(Emd4, pqa9):\n if not pqa9 or pqa9 in ['', ' ']:\n return False\n if mv1M.objects.filter(username=pqa9).exists():\n return False\n if not ZbWC.match('^[a-zA-Z][a-zA-Z0-9]*[._-]?[a-zA-Z0-9]+$', pqa9):\n return False\n return True",
"def UBVo(YKHO, NtEF: str) -> None:\n ... | [
"0.647195",
"0.6421562",
"0.63791496",
"0.6358046",
"0.63518274",
"0.6331072",
"0.6321915",
"0.6314076",
"0.6295152",
"0.628694",
"0.62756175",
"0.6268073",
"0.62343067",
"0.6204341",
"0.619984",
"0.6193617",
"0.61834824",
"0.61773336",
"0.6176885",
"0.6149721",
"0.6095291",
... | 0.8147514 | 0 |
Transpose the matrix of this transformation. Returns None The transformation is transposed inplace. | def l7uB(YKHO):
YKHO.matrix = v65A(YKHO.matrix) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7uB(YKHO):\n YKHO = l7uB(YKHO)",
"def Dqs5(YKHO) -> 'vnl_matrixUS &':\n return hBPC.vnl_matrixUS_inplace_transpose(YKHO)",
"def l7uB(YKHO):\n ycBG = aLMY(YKHO.num_col, YKHO.num_row)\n for YRbF in range(YKHO.num_row):\n for r845 in range(YKHO.num_col):\n ycBG.data[r845][YRbF] ... | [
"0.7737079",
"0.7643535",
"0.7621289",
"0.7610592",
"0.7602058",
"0.75983226",
"0.75964165",
"0.75446653",
"0.75095165",
"0.75081813",
"0.7474272",
"0.746536",
"0.7465077",
"0.74397326",
"0.7411926",
"0.7380051",
"0.7373644",
"0.7350024",
"0.7347357",
"0.7332759",
"0.733092",... | 0.82698745 | 0 |
Creates and saves a User with the given email, date of birth and password. | def lYUQ(YKHO, NtEF, D3lj, jTXt=None):
if not D3lj:
raise ValueError('Users must have an email address')
CBIr = YKHO.model(username=NtEF, email=YKHO.normalize_email(D3lj))
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def xWi2(YKHO, D3lj, c9ua, zp3f, jTXt, **wdCM):\n D3lj = YKHO.normalize_em... | [
"0.839786",
"0.8241818",
"0.82206446",
"0.8133072",
"0.81110513",
"0.81065845",
"0.8087805",
"0.8083801",
"0.80767494",
"0.80756193",
"0.80704635",
"0.8064876",
"0.80614877",
"0.8059387",
"0.805926",
"0.80582577",
"0.8057111",
"0.8054821",
"0.8048667",
"0.8048392",
"0.8044811... | 0.0 | -1 |
Creates and saves a superuser with the given email, date of birth and password. | def Zp54(YKHO, D3lj, jTXt):
CBIr = YKHO.create_user(D3lj, password=jTXt)
CBIr.is_admin = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr",
"def Zp54(YKHO, D3lj, jTXt, **w... | [
"0.8167583",
"0.81645083",
"0.8159643",
"0.8157542",
"0.81510335",
"0.81325835",
"0.81289077",
"0.8117665",
"0.80795807",
"0.8078096",
"0.80756277",
"0.8075116",
"0.8075116",
"0.80407906",
"0.80321497",
"0.8018517",
"0.8002941",
"0.79994",
"0.79902524",
"0.7989266",
"0.798703... | 0.0 | -1 |
Return Message as a String. | def zAg0(YKHO):
return 'From ' + str(YKHO.__from_agent) + ' to ' + str(YKHO.__to_agent) + ' (' + str(YKHO.__message_performative) + ') ' + str(YKHO.__content) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return f'[Message: {YKHO._type.name} ({YKHO.get_content()})]'",
"def Ol8d(YKHO) -> str:\n return str(YKHO._json_dict['message'])",
"def Ol8d(YKHO) -> str:\n return str(YKHO._json_dict['message'])",
"def Ol8d(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('mess... | [
"0.8279902",
"0.78610057",
"0.78610057",
"0.7778342",
"0.7778342",
"0.7778342",
"0.7778342",
"0.7778342",
"0.7778342",
"0.77509326",
"0.7735289",
"0.7719089",
"0.7719089",
"0.7706481",
"0.7573085",
"0.7511642",
"0.7511642",
"0.7511642",
"0.7511642",
"0.7511642",
"0.7511642",
... | 0.0 | -1 |
Make a dictionary from a list of keys | def zT8f(cntZ, wOmD, nPrm):
XVAW = cntZ
Aofo = {cntZ: nPrm}
jvSB = Aofo
for Q7me in wOmD:
jvSB[XVAW] = {}
jvSB = jvSB[XVAW]
jvSB[Q7me] = nPrm
XVAW = Q7me
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zT8f(KHQH):\n m4Nl = {}\n for H5ew, wEf2 in KHQH:\n m4Nl[H5ew] = wEf2\n return m4Nl",
"def zT8f(mpdT):\n Csk6 = {}\n for YRbF in mpdT:\n G1Hx, Ty9i = YRbF.split('=')\n Csk6[G1Hx.lower()] = Ty9i\n return Csk6",
"def rXLW(EXD7, xzK9):\n PiPd = dict()\n PiPd.fromke... | [
"0.7660029",
"0.7066161",
"0.7057069",
"0.70528877",
"0.70483726",
"0.7003319",
"0.6962528",
"0.6893108",
"0.6832796",
"0.68000776",
"0.6789001",
"0.675165",
"0.66852444",
"0.666747",
"0.6630964",
"0.661027",
"0.65972096",
"0.6513864",
"0.6473606",
"0.64730984",
"0.64695567",... | 0.0 | -1 |
Generate fake discord guilds for testing. | def DIDw():
lSCo = Ows6("Gears' Hideout")
xMux = [DIz8('general', guild=lSCo), DIz8('dev', guild=lSCo), DIz8('gaming', guild=lSCo), DIz8('voice1', guild=lSCo, type=ZOrr.ChannelType.voice)]
for y3RU in xMux:
lSCo.add(y3RU)
return [lSCo] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d2qj():\n YZ6u = 202306230000\n PCfU = 1800\n kfXr = RMo0(CPx_.animated, 12)\n wtYJ = True\n TkEs = PVW9.no_role\n JBZA = 'Koishi'\n Tj9f = RMo0(CPx_.animated, 14)\n bySB = [hmxh.animated_icon]\n r19n = xXYE.college\n _G4g = RMo0(CPx_.animated, 16)\n nWBd = RMo0(CPx_.animated, ... | [
"0.69583267",
"0.6734744",
"0.65002674",
"0.6494824",
"0.64709514",
"0.6395762",
"0.6330116",
"0.62370956",
"0.6234428",
"0.6230236",
"0.6212982",
"0.6183702",
"0.6091029",
"0.60789126",
"0.6050905",
"0.60300744",
"0.6027143",
"0.59763116",
"0.594717",
"0.5941787",
"0.5935947... | 0.82376003 | 0 |
Return a mocked bot. | def ykTu():
mS46 = zDJJ.Mock()
mS46.mention = '@GearsandCogs'
lyVP = zDJJ.AIOMock(uptime=5, prefix='!')
lyVP.send.async_return_value = None
lyVP.get_member_by_substr.return_value = mS46
lyVP.delete_message.async_return_value = None
lyVP.emoji.fix = lambda WKvO, LVAh: WKvO
lyVP.guilds = D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQ3g():\n if not t2SN:\n i9UK()\n return t2SN",
"def eLpg():\n return uO4L()",
"def qNKK(YKHO):\n return YKHO.mock",
"def xy6y(YKHO):\n JyK9 = XN37.MockBot()\n YKHO.assertIsInstance(JyK9, ZOrr.ext.commands.Bot)",
"def PDWV(YKHO):\n return FM6F(get=FM6F())",
"def XlwV(YKHO)... | [
"0.72640616",
"0.7260173",
"0.6571258",
"0.65304255",
"0.63831",
"0.62654287",
"0.6245675",
"0.6065353",
"0.60461015",
"0.6039623",
"0.6030179",
"0.6010563",
"0.59014297",
"0.58597684",
"0.58276457",
"0.5819502",
"0.5770982",
"0.5767893",
"0.5678995",
"0.5659212",
"0.56286645... | 0.6795078 | 2 |
Fixture to insert some test DUsers. | def KVGl(cuiw):
HCmy = (c9hV(id='1', display_name='User1'), c9hV(id='2', display_name='User2'), c9hV(id='3', display_name='User3'))
try:
cuiw.add_all(HCmy)
cuiw.commit()
except i48E.exc.IntegrityError:
pass
yield HCmy
for Dn78 in cuiw.query(c9hV):
cuiw.delete(Dn78)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kCpQ():\n xDcj = 'INSERT INTO user (username) VALUES (\"testuser\")'\n bSSG(xDcj)",
"def FCbF(YKHO):\n YKHO.users = [YKHO.UserFactory.create() for YRbF in range(20)]",
"def FCbF(YKHO):\n YKHO.users = [YKHO.UserFactory.build() for YRbF in range(20)]",
"def FCbF(YKHO):\n NCls.create_all()\n ... | [
"0.7848703",
"0.75729203",
"0.74890196",
"0.74583286",
"0.74196273",
"0.7419556",
"0.7331483",
"0.7316756",
"0.7286148",
"0.7275138",
"0.722603",
"0.7222666",
"0.7219664",
"0.7208965",
"0.71743464",
"0.7162595",
"0.7154403",
"0.7131223",
"0.70903337",
"0.7061651",
"0.7058575"... | 0.0 | -1 |
Creates a function chain (i.e. h(g(f(x))) given (f, g, h)) of the given functions, in which the each element is applied, in turn, to the input, chaining the output from the previous function to the input of the next function. | def eNCK(*ZZSa):
def D44y(eHNT, Oa1e):
return lambda WKvO: Oa1e(eHNT(WKvO))
return xBlr.reduce(D44y, ZZSa, lambda WKvO: WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def II9J(*ZZSa):\n\n def Syzp(WKvO):\n Aofo = WKvO\n for m2Zb in ZZSa:\n Aofo = m2Zb(Aofo)\n return Aofo\n return Syzp",
"def capf(ZZSa):\n return Pusg(lambda eHNT, Oa1e: lambda *WKvO: eHNT(*Oa1e(*WKvO)), reversed(ZZSa), lambda *WKvO: WKvO)",
"def capf(*ZZSa):\n retu... | [
"0.79444593",
"0.73286533",
"0.71214426",
"0.71214426",
"0.71085817",
"0.70809144",
"0.6960615",
"0.69431555",
"0.69239354",
"0.6905297",
"0.6870305",
"0.6870011",
"0.66915417",
"0.66705567",
"0.66393197",
"0.659541",
"0.659048",
"0.65852624",
"0.655985",
"0.65546715",
"0.653... | 0.7980227 | 0 |
Returns the Twitch client ID (like an API key) | def IWrn():
global client_id
return zb3C[:-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RTzd(YKHO):\n return YKHO.consumer_key.split(',')[0]",
"def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')",
"def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')",
"def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')",
"def zb3C(YKHO) -> str:\n return qe4Y.get(YK... | [
"0.7583506",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7548451",
"0.7461866",
"0.73108184",
"0.7292992",
... | 0.8450694 | 0 |
poly / spline normalization | def bZnx(qJa9, shSu, J1Nm='spline', mghH=4, Yh4i=(-1, 4), vexM=0.5, UlXy=100.0, JEq5=2, RBFf=1.0, XP5J=1e-06):
if J1Nm == 'poly':
SVCi, CEQH = t9Cw(qJa9, shSu, deg=mghH, lu=Yh4i, q=vexM, binwidth=UlXy, niter=JEq5, pw=RBFf)
elif J1Nm == 'spline':
SVCi, CEQH = L_dH(qJa9, shSu, p=XP5J, lu=Yh4i, q=v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzMX(YKHO) -> RdU6:\n return YKHO._univariate_spline.spline",
"def iwd0(_g9D, NXpY):\n Z9rn = oyIN.mean(_g9D, axis=1)\n PI_E = oyIN.zeros(_g9D.shape)\n for YRbF, XP5J in enumerate(_g9D.T):\n Ty9i = XP5J - Z9rn\n PI_E[:, YRbF] = Z9rn + Ty9i * NXpY\n return PI_E",
"def o4Qz(YKHO)... | [
"0.62920517",
"0.62235564",
"0.6068999",
"0.60533893",
"0.6031461",
"0.59322995",
"0.5892778",
"0.58861744",
"0.58643705",
"0.5839123",
"0.58083725",
"0.58036155",
"0.5778888",
"0.5742458",
"0.57352877",
"0.5724127",
"0.56977427",
"0.56977427",
"0.5676316",
"0.56351334",
"0.5... | 0.0 | -1 |
Return a string representation of this stack. | def wHJl(YKHO):
return 'Stack({} items, top={})'.format(YKHO.length(), YKHO.peek()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n KCHu = 'Stack( '\n for YRbF in range(YKHO.size - 1, -1, -1):\n KCHu += str(YKHO.stack[YRbF])\n if YRbF != 0:\n KCHu += ' --> '\n KCHu += ' )'\n return KCHu",
"def zAg0(YKHO):\n Aofo = 'Stack['\n exwG = YKHO.top\n while exwG != None:\n Aofo +=... | [
"0.8675249",
"0.8653103",
"0.86458427",
"0.8584982",
"0.85827816",
"0.84716034",
"0.83647346",
"0.83515143",
"0.8310357",
"0.8266287",
"0.8081935",
"0.8073307",
"0.8032189",
"0.8022725",
"0.79002714",
"0.78941023",
"0.77793705",
"0.7759112",
"0.7730866",
"0.76346934",
"0.7505... | 0.76292133 | 21 |
Return True if this stack is empty, or False otherwise. | def FBfn(YKHO):
if YKHO.list.length() == 0:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO) -> bool:\n return not bool(YKHO.stack)",
"def lsmZ(YKHO):\n if YKHO.myStack.empty():\n return True\n else:\n return False",
... | [
"0.92759925",
"0.92759925",
"0.92759925",
"0.926117",
"0.9212162",
"0.9210728",
"0.92097574",
"0.92097574",
"0.9164245",
"0.91502166",
"0.9149032",
"0.91325104",
"0.91292644",
"0.91292644",
"0.91254425",
"0.91254425",
"0.9109645",
"0.9108131",
"0.91008955",
"0.91003937",
"0.9... | 0.0 | -1 |
Return the number of items in this stack. | def u54L(YKHO):
return YKHO.list.length() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n if lJj5.is_empty(YKHO):\n return 0\n else:\n return YKHO.num_items",
"def Jm1s(YKHO):\n return len(YKHO.items)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def Jm1s(YKHO):\n return YKHO.items.count()",
"def zNi... | [
"0.8771656",
"0.83923733",
"0.83291155",
"0.8329108",
"0.8274742",
"0.81065816",
"0.8096321",
"0.80799735",
"0.80799735",
"0.80799735",
"0.80422527",
"0.8036844",
"0.8036844",
"0.80354315",
"0.8021988",
"0.79938585",
"0.79819566",
"0.79785824",
"0.7939239",
"0.7923378",
"0.78... | 0.0 | -1 |
Return a string representation of this stack. | def wHJl(YKHO):
return 'Stack({} items, top={})'.format(YKHO.length(), YKHO.peek()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n KCHu = 'Stack( '\n for YRbF in range(YKHO.size - 1, -1, -1):\n KCHu += str(YKHO.stack[YRbF])\n if YRbF != 0:\n KCHu += ' --> '\n KCHu += ' )'\n return KCHu",
"def zAg0(YKHO):\n Aofo = 'Stack['\n exwG = YKHO.top\n while exwG != None:\n Aofo +=... | [
"0.8675249",
"0.8653103",
"0.86458427",
"0.8584982",
"0.85827816",
"0.84716034",
"0.83647346",
"0.83515143",
"0.8310357",
"0.8266287",
"0.8081935",
"0.8073307",
"0.8032189",
"0.8022725",
"0.79002714",
"0.78941023",
"0.77793705",
"0.7759112",
"0.7730866",
"0.76346934",
"0.7505... | 0.76292133 | 20 |
Return True if this stack is empty, or False otherwise. | def FBfn(YKHO):
if not YKHO.list:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO) -> bool:\n return not bool(YKHO.stack)",
"def lsmZ(YKHO):\n if YKHO.myStack.empty():\n return True\n else:\n return False",
... | [
"0.92749816",
"0.92749816",
"0.92749816",
"0.92598957",
"0.92115533",
"0.9209812",
"0.9208664",
"0.9208664",
"0.91628766",
"0.9148644",
"0.9147854",
"0.9131224",
"0.91279453",
"0.91279453",
"0.9124496",
"0.9124496",
"0.910873",
"0.91069543",
"0.90997636",
"0.90990114",
"0.908... | 0.0 | -1 |
Return the number of items in this stack. | def u54L(YKHO):
return len(YKHO.list) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n if lJj5.is_empty(YKHO):\n return 0\n else:\n return YKHO.num_items",
"def Jm1s(YKHO):\n return len(YKHO.items)",
"def OGwl(YKHO):\n return YKHO.num_items",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def Jm1s(YKHO):\n return YKHO.items.count()",
"def zNi... | [
"0.8771656",
"0.83923733",
"0.83291155",
"0.8329108",
"0.8274742",
"0.81065816",
"0.8096321",
"0.80799735",
"0.80799735",
"0.80799735",
"0.80422527",
"0.8036844",
"0.8036844",
"0.80354315",
"0.8021988",
"0.79938585",
"0.79819566",
"0.79785824",
"0.7939239",
"0.7923378",
"0.78... | 0.75219977 | 79 |
030805 add an edge to the table, if edge already exists, increase its frequency | def x78M(YKHO, jyYI, Edtb, D70y):
if D70y[0] > D70y[1]:
D70y.reverse()
D70y = '{%s,%s}' % (D70y[0], D70y[1])
jyYI.execute("select frequency from %s where edge='%s'" % (Edtb, D70y))
usx6 = jyYI.fetchall()
if len(usx6) == 1:
Gjtu = usx6[0][0]
jyYI.execute("update %s set frequen... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n JYV8, mheE = D70y.nodes\n if JYV8 not in YKHO.edges:\n YKHO.edges[JYV8] = set()\n if mheE not in YKHO.rev_edges:\n YKHO.rev_edges[mheE] = set()\n YKHO.edges[JYV8].add(mheE)\n YKHO.rev_edges[mheE].add(JYV8)",
"def rz7z(YKHO, D70y, H5ew=None):\n if H5ew is No... | [
"0.6970801",
"0.6938636",
"0.6891762",
"0.6807322",
"0.6786755",
"0.6748945",
"0.6746692",
"0.6687636",
"0.6658311",
"0.6629935",
"0.66284674",
"0.66264486",
"0.661431",
"0.6554195",
"0.65247667",
"0.6499174",
"0.64982814",
"0.64976025",
"0.6491597",
"0.64873224",
"0.64687824... | 0.8170687 | 0 |
Return Length / Size of the list | def zNig(YKHO):
UHFx = 0
jvSB = YKHO.head
while jvSB is not None:
UHFx += 1
jvSB = jvSB.getNext()
return UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(vC9B):\n return len(vC9B)",
"def u54L(YKHO):\n return YKHO.list.size",
"def u54L(YKHO):\n return YKHO.list.size",
"def u54L(YKHO):\n return YKHO.list.size",
"def F4js(YKHO):\n pass",
"def zNig(YKHO):\n vIOz = len(YKHO._list)\n return vIOz",
"def u54L(YKHO):\n return YKH... | [
"0.86807066",
"0.8587787",
"0.8587787",
"0.8587787",
"0.85802096",
"0.84991896",
"0.846173",
"0.8452237",
"0.8437477",
"0.8394915",
"0.83849466",
"0.83752257",
"0.83160335",
"0.82848436",
"0.82583284",
"0.8164092",
"0.8132442",
"0.8130099",
"0.81035274",
"0.8100338",
"0.80965... | 0.0 | -1 |
Simplify comparison of nested dicts/lists | def Napc(BWXx) -> str:
if isinstance(BWXx, GySg):
return XM8u(BWXx)
if isinstance(BWXx, x1iM):
return sorted([Napc(Ty9i) for Ty9i in BWXx])
return str(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HXw4(WbPA, S69B):\n if sorted(WbPA.keys()) != sorted(S69B.keys()):\n return False\n for H5ew in WbPA:\n if isinstance(WbPA[H5ew], dict):\n Ylbp = HXw4(WbPA[H5ew], S69B[H5ew])\n if not Ylbp:\n return False\n else:\n continue\n ... | [
"0.72898287",
"0.7152685",
"0.71181214",
"0.70502734",
"0.70069224",
"0.69734687",
"0.6899498",
"0.68883723",
"0.6815809",
"0.6805003",
"0.67542005",
"0.6737242",
"0.6717293",
"0.67039037",
"0.6676843",
"0.6676026",
"0.66459",
"0.66314244",
"0.6627387",
"0.6617098",
"0.653960... | 0.0 | -1 |
Check if the fleet is at an edge, then update the positions of all aliens in the fleet | def wkYB(YKHO):
YKHO._check_fleet_edges()
YKHO.aliens.update()
if a9eO.sprite.spritecollideany(YKHO.ship, YKHO.aliens):
YKHO._ship_hit()
YKHO._check_alien_bottom() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DjwX(tJm0, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break",
"def DjwX(dlM1, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(dlM1, SaI9)\n break",
"def DjwX(YqMg, SaI9):\n for oeTy... | [
"0.7522425",
"0.74792427",
"0.74720603",
"0.74620116",
"0.7446975",
"0.7446975",
"0.7446975",
"0.7446975",
"0.74156827",
"0.7404424",
"0.739459",
"0.7381169",
"0.7281796",
"0.7271594",
"0.7271594",
"0.7271594",
"0.7271594",
"0.7271594",
"0.7271594",
"0.7271594",
"0.7271594",
... | 0.62404805 | 50 |
Respond appropriately if any aliens have reached an edge | def nMi8(YKHO):
for oeTy in YKHO.aliens.sprites():
if oeTy.check_edges():
YKHO._change_fleet_direction()
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DjwX(tJm0, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break",
"def YSO3(SaI9, tJm0):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break",
"def DjwX(dlM1, SaI9):\n for oeTy... | [
"0.73847187",
"0.7363465",
"0.7334099",
"0.72823393",
"0.71978086",
"0.71974117",
"0.7185446",
"0.7185446",
"0.7185446",
"0.7185446",
"0.7185446",
"0.7185446",
"0.7185446",
"0.7185446",
"0.7185446",
"0.7131505",
"0.71211267",
"0.71161485",
"0.71161485",
"0.7058753",
"0.704607... | 0.6998419 | 25 |
Update the images on the screen and flip to a new screen | def khpC(YKHO):
YKHO.clock.tick(60)
YKHO.background.display_background()
YKHO.ship.display_ship()
for YBnT in YKHO.bullets.sprites():
YBnT.draw_bullet()
YKHO.sb.show_score()
YKHO.aliens.draw(YKHO.screen)
if not YKHO.stats.game_active:
YKHO.title_screen.draw_title_screen()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZ12(YKHO):\n G9jH.info('Refreshing Screen')\n Mtfr = YKHO.screen.copy()\n if s7Ie:\n Mtfr = Mtfr.transpose(uGYG.Image.ROTATE_180)\n Mtfr.thumbnail((YKHO.inky.WIDTH, YKHO.inky.HEIGHT), hnIv.ANTIALIAS)\n YKHO.inky.set_image(Mtfr)\n YKHO.inky.show()",
"def udoe(YKHO) -> None:\n a9eO... | [
"0.77507323",
"0.74909586",
"0.72467005",
"0.72354263",
"0.718066",
"0.71777165",
"0.71638125",
"0.7131907",
"0.7119474",
"0.70721745",
"0.7059284",
"0.70477647",
"0.7038878",
"0.70320475",
"0.70277166",
"0.7014258",
"0.70142406",
"0.70021784",
"0.7001802",
"0.6974536",
"0.69... | 0.6685648 | 40 |
True if the partition is active, False otherwise. | def WZHJ(YKHO):
return bool(YKHO.__partition.is_active()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ksfB(YKHO):\n return YKHO.status == EloR.ACTIVE",
"def ksfB(YKHO) -> bool:\n return YKHO.status == EOaO.storage.STATUS.up",
"def ksfB(YKHO):\n for YRbF in YKHO.state:\n if YRbF == 'STATE_ACTIVE':\n return True\n return False",
"def WZHJ(YKHO) -> bool:\n BWXx = pths.get_ha... | [
"0.7573363",
"0.7539974",
"0.74148744",
"0.7381211",
"0.7344351",
"0.7314876",
"0.7264882",
"0.72568804",
"0.7247882",
"0.72037446",
"0.7190029",
"0.7190029",
"0.7182806",
"0.7181778",
"0.717466",
"0.717466",
"0.717466",
"0.717466",
"0.717466",
"0.717466",
"0.717466",
"0.71... | 0.8937245 | 0 |
True if the partition is active, False otherwise. | def z9Je(YKHO):
return bool(YKHO.__partition.is_busy()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZHJ(YKHO):\n return bool(YKHO.__partition.is_active())",
"def ksfB(YKHO):\n return YKHO.status == EloR.ACTIVE",
"def ksfB(YKHO) -> bool:\n return YKHO.status == EOaO.storage.STATUS.up",
"def ksfB(YKHO):\n for YRbF in YKHO.state:\n if YRbF == 'STATE_ACTIVE':\n return True\n ... | [
"0.8937245",
"0.7573363",
"0.7539974",
"0.74148744",
"0.7381211",
"0.7344351",
"0.7314876",
"0.7264882",
"0.72568804",
"0.7247882",
"0.72037446",
"0.7190029",
"0.7190029",
"0.7182806",
"0.7181778",
"0.717466",
"0.717466",
"0.717466",
"0.717466",
"0.717466",
"0.717466",
"0.7... | 0.7127225 | 59 |
The Disk this partition belongs to. | def UTqa(YKHO):
return YKHO._disk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UTqa(YKHO) -> int:\n return qe4Y.get(YKHO, 'disk')",
"def AnfN(YKHO) -> int:\n return qe4Y.get(YKHO, 'disk_id')",
"def AnfN(YKHO) -> int:\n return qe4Y.get(YKHO, 'disk_id')",
"def AnfN(YKHO) -> int:\n return qe4Y.get(YKHO, 'disk_id')",
"def AnfN(YKHO) -> int:\n return qe4Y.get(YKHO, 'dis... | [
"0.8043571",
"0.74559075",
"0.74559075",
"0.74559075",
"0.74559075",
"0.74559075",
"0.74559075",
"0.74559075",
"0.74559075",
"0.73680353",
"0.72829497",
"0.7192056",
"0.7138545",
"0.7138545",
"0.7138545",
"0.7138545",
"0.7138545",
"0.7138545",
"0.7138545",
"0.7138545",
"0.695... | 0.85074085 | 0 |
The name of this partition. | def mWFP(YKHO):
try:
return YKHO.__partition.get_name()
except MIcu.PartitionException as msg:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wGWt(YKHO):\n raise NotImplementedError('Name method not implemented for partition type: {0}'.format(YKHO.__class__.__name__))",
"def SSkF(YKHO) -> str:\n return qe4Y.get(YKHO, 'disk_name')",
"def mWFP(YKHO):\n if YKHO._name is None:\n YKHO._name = Hy7s.path.basename(Hy7s.path.normpath(YKHO... | [
"0.82266796",
"0.775099",
"0.74397194",
"0.7430393",
"0.7317362",
"0.7304922",
"0.7280365",
"0.7280365",
"0.7280365",
"0.7260561",
"0.7251718",
"0.722599",
"0.722599",
"0.722599",
"0.722599",
"0.722599",
"0.722599",
"0.722599",
"0.722599",
"0.722599",
"0.722599",
"0.722599"... | 0.85605204 | 0 |
Return the Partition following this one on the Disk. | def SZSZ(YKHO):
Qrt_ = YKHO.disk.getPedDisk().next_partition(YKHO.__partition)
if Qrt_ is None:
return None
else:
return MIcu.Partition(disk=YKHO.disk, PedPartition=Qrt_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qrt_(YKHO):\n return YKHO.__partition",
"def LhLp(YKHO):\n pass",
"def Qrt_(YKHO):\n return YKHO.partition_task.partition",
"def E6Gs(YKHO):\n return YKHO.__partition",
"def Qrt_(YKHO):\n return gftJ(YKHO._par)",
"def Qrt_(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'partition')",
... | [
"0.72567385",
"0.7140297",
"0.68636787",
"0.680041",
"0.6775869",
"0.6644519",
"0.6644519",
"0.6544347",
"0.63076824",
"0.6244401",
"0.6195919",
"0.61760443",
"0.6161487",
"0.6159078",
"0.6159078",
"0.6150683",
"0.6062006",
"0.6043368",
"0.6042224",
"0.60334224",
"0.60317016"... | 0.75280845 | 0 |
Return the length of the partition in sectors. Optionally, a SI or IEC prefix followed by a 'B' may be given in order to convert the length into bytes. The allowed values include B, kB, MB, GB, TB, KiB, MiB, GiB, and TiB. | def pCBL(YKHO, PXGI='sectors'):
return YKHO.geometry.getLength(PXGI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vxcw(YKHO) -> str:\n return qe4Y.get(YKHO, 'disk_size')",
"def IaTk(YKHO):\n return YKHO._get_component('disk_length')",
"def Vxcw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'disk_size')",
"def Vxcw(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'disk_size')",
"def Vxc... | [
"0.67984843",
"0.6619591",
"0.6444362",
"0.6444362",
"0.6444362",
"0.6444362",
"0.63761777",
"0.63761777",
"0.63761777",
"0.63761777",
"0.6345612",
"0.6331021",
"0.6323161",
"0.632289",
"0.62632835",
"0.62632835",
"0.62632835",
"0.62533385",
"0.6239858",
"0.6238581",
"0.62191... | 0.0 | -1 |
Return the _ped.Partition object contained in this Partition. For internal module use only. | def E6Gs(YKHO):
return YKHO.__partition | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qrt_(YKHO):\n return YKHO.__partition",
"def Qrt_(YKHO):\n return gftJ(YKHO._par)",
"def LhLp(YKHO):\n pass",
"def AKEa(YKHO):\n return gftJ(YKHO)",
"def SZSZ(YKHO):\n Qrt_ = YKHO.disk.getPedDisk().next_partition(YKHO.__partition)\n if Qrt_ is None:\n return None\n else:\n ... | [
"0.7939725",
"0.7844073",
"0.77013916",
"0.7609782",
"0.759392",
"0.757315",
"0.72298974",
"0.7107477",
"0.70352894",
"0.6941931",
"0.6903421",
"0.6879648",
"0.68472177",
"0.6810832",
"0.6770031",
"0.6765291",
"0.6754802",
"0.6754802",
"0.67537785",
"0.6713275",
"0.67130834",... | 0.8610215 | 0 |
Suppose there are two linked lists of lengths l1 and l2, both of which intersect at some point and become a single linked list. The head of both linked lists are known. The intersecting node of the lists is not known. The number of nodes in each list before intersecting and the lengths of the lists are also unknown. Fi... | def fXsK(Kt9y, I_KI):
if Kt9y is None or I_KI is None:
raise obVc("List(s) is/are empty, can't find intersecting node")
jtyf = Kt9y.get_length()
V70B = I_KI.get_length()
CiWr = Kt9y.head
RFsN = I_KI.head
Csk6 = jtyf - V70B
if jtyf < V70B:
Csk6 = V70B - jtyf
CiWr = I_K... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uaJ6(jtyf, V70B):\n gmBt, cQCJ = (0, 0)\n KymX, n9_K = (jtyf, V70B)\n while KymX:\n KymX = KymX.next\n gmBt += 1\n while n9_K:\n n9_K = n9_K.next\n cQCJ += 1\n H_0H = jtyf if gmBt > cQCJ else V70B\n SZdD = V70B if cQCJ > gmBt else jtyf\n eMot = gmBt if gmBt < cQ... | [
"0.85618263",
"0.81901366",
"0.81676537",
"0.8120088",
"0.78599155",
"0.77162284",
"0.7676469",
"0.7629929",
"0.76019394",
"0.72887206",
"0.6893884",
"0.6830882",
"0.6681896",
"0.66659176",
"0.6628946",
"0.66222453",
"0.6605414",
"0.65833884",
"0.65475845",
"0.65257955",
"0.6... | 0.844407 | 1 |
Create an empty argparse.ArgumentParser. | def ioG2():
return j1Jz.ArgumentParser(formatter_class=j1Jz.ArgumentDefaultsHelpFormatter) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yl6v():\n return j1Jz.ArgumentParser(argument_default=j1Jz.SUPPRESS)",
"def yl6v(Emd4) -> j1Jz.ArgumentParser:\n ...",
"def yl6v() -> j1Jz.ArgumentParser:\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('-i', '--input', default='input/', help='Path to directory with input data.')\n wvEv.a... | [
"0.7893149",
"0.74147564",
"0.7337067",
"0.7308105",
"0.7291926",
"0.72465783",
"0.7172002",
"0.7134962",
"0.701594",
"0.70043194",
"0.6985213",
"0.6983164",
"0.6968492",
"0.69585776",
"0.6929639",
"0.691722",
"0.691722",
"0.691722",
"0.691722",
"0.691722",
"0.6895047",
"0.... | 0.696249 | 13 |
Create an argparse.ArgumentParser for run_program.py. | def qgej():
wvEv = ioG2()
wvEv.add_argument('-d', '--dir', type=str, default=None, help='fetch directory')
wvEv.add_argument('-o', '--out', type=str, default=None, help='outdir')
return wvEv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yl6v() -> j1Jz.ArgumentParser:\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('-i', '--input', default='input/', help='Path to directory with input data.')\n wvEv.add_argument('-o', '--output', default='output/', help='Directory where to store results.')\n wvEv.add_argument('-r', '--random', de... | [
"0.7771609",
"0.7723722",
"0.76911926",
"0.7669393",
"0.7637711",
"0.7592936",
"0.7554908",
"0.7526875",
"0.7523369",
"0.74956805",
"0.74395657",
"0.74311304",
"0.7417943",
"0.74022347",
"0.74000025",
"0.73958826",
"0.7393137",
"0.73923963",
"0.7386127",
"0.7385299",
"0.73229... | 0.0 | -1 |
Instantiate a Spreads request. | def FIMM(YKHO, NArs):
super(ajuh, YKHO).__init__()
YKHO.params = NArs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vHNy(YKHO, OAGo=None, **B2fa):\n if OAGo is None:\n OAGo = {}\n return YKHO.construct(OAGo, **B2fa)",
"def d9vn(YKHO, MgI3, *qIxc, **B2fa):\n return wcXs(MgI3, *qIxc, **B2fa)",
"def pXPL(YKHO):\n raise NotImplementedError('Implement createRequest() for BatchingProbe: ' + AC0I(YKHO))",
... | [
"0.61680394",
"0.5968039",
"0.59325063",
"0.5855831",
"0.58267105",
"0.5796651",
"0.57774484",
"0.56882936",
"0.56753767",
"0.5672424",
"0.5666363",
"0.5621003",
"0.5571139",
"0.5534498",
"0.55198735",
"0.5498505",
"0.5473644",
"0.5403655",
"0.5373002",
"0.5365158",
"0.535626... | 0.5256 | 29 |
Instantiate an OrderbookData request. | def FIMM(YKHO, NArs):
super(ALDT, YKHO).__init__()
YKHO.params = NArs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, o61b, XSoh, cTRz, y7DO, hI0L):\n YKHO.type = 'ORDER'\n YKHO._c = Worw(o61b, 'STK', 'SMART', 'USD')\n YKHO._o = iHf_(XSoh, cTRz, y7DO, hI0L)",
"def FIMM(YKHO, n6xu={}, BeD_={}):\n YKHO._order_list = []\n YKHO._order_manager = ZX9F()\n YKHO.set_book(n6xu, BeD_)",
"def FIMM(YKHO, ... | [
"0.6670862",
"0.6089433",
"0.60079724",
"0.5889544",
"0.58696103",
"0.5789994",
"0.5707326",
"0.5707062",
"0.5706147",
"0.56835467",
"0.56631744",
"0.5662852",
"0.56576985",
"0.5656589",
"0.56288534",
"0.55642235",
"0.5563219",
"0.5559154",
"0.55429673",
"0.5541199",
"0.55313... | 0.6439215 | 1 |
Instantiate an Autochartist request. | def FIMM(YKHO, NArs=None):
super(oTeX, YKHO).__init__()
YKHO.params = NArs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d9vn(YKHO, MgI3, *qIxc, **B2fa):\n return wcXs(MgI3, *qIxc, **B2fa)",
"def vHNy(YKHO, OAGo=None, **B2fa):\n if OAGo is None:\n OAGo = {}\n return YKHO.construct(OAGo, **B2fa)",
"def cXCF(Emd4, qv1X: str, *qIxc, **B2fa):\n return Emd4(qv1X.id, qv1X.alpha, qv1X.data, qv1X.mass, qv1X.max_nu... | [
"0.6797684",
"0.6511561",
"0.6280739",
"0.625503",
"0.6208353",
"0.6184118",
"0.61550874",
"0.60781217",
"0.6056756",
"0.60532",
"0.6034417",
"0.60031015",
"0.5997948",
"0.598821",
"0.5978891",
"0.5931854",
"0.5914787",
"0.5909349",
"0.58824176",
"0.5878457",
"0.5874139",
"... | 0.5946867 | 15 |
Handle the 'colorSelected' signal from the widget. | def OFHM(YKHO, GGcq):
Csk6 = YKHO.declaration
if Csk6 is not None:
Csk6.selected_color = sZCF(GGcq) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xtrx(YKHO, tvqc: ColorSelectionEvent):\n pass",
"def aKRy(YKHO):\n beBk = CsJA.QColorDialog(YKHO)\n if YKHO._color:\n beBk.setCurrentColor(CsJA.QColor(YKHO._color))\n if beBk.exec_():\n YKHO.setColor(beBk.currentColor().name())",
"def siVI(YKHO):\n qfpW = CsJA.QColorDialog.getC... | [
"0.809249",
"0.74216604",
"0.7367226",
"0.72031444",
"0.6997308",
"0.6955854",
"0.695545",
"0.69437957",
"0.6818472",
"0.6801971",
"0.6764127",
"0.6725396",
"0.6719357",
"0.664639",
"0.6624185",
"0.66142595",
"0.657866",
"0.6569681",
"0.65021443",
"0.64485973",
"0.64429325",
... | 0.7945491 | 1 |
Return a 'copy' of d with normalized values. | def NkkI(Csk6):
mhAC = {}
for G1Hx, Ty9i in Csk6.iteritems():
try:
mhAC[G1Hx] = x0SS(Ty9i)
except TypeError:
mhAC[G1Hx] = Ty9i
return mhAC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(Csk6):\n Csk6 -= oyIN.min(Csk6, axis=0)\n Csk6 /= oyIN.ptp(Csk6, axis=0)\n return Csk6",
"def NkkI(Csk6):\n r8hN = 0.0\n for yzQ0 in Csk6.values():\n r8hN += yzQ0 * yzQ0\n r8hN = epAf.sqrt(r8hN)\n if abs(r8hN) >= 1e-05:\n for YRbF in Csk6:\n Csk6[YRbF] /= r8... | [
"0.76094747",
"0.7548388",
"0.7469486",
"0.74664587",
"0.71909744",
"0.7059185",
"0.6968479",
"0.69374096",
"0.68963706",
"0.6886624",
"0.68641156",
"0.6853985",
"0.6834165",
"0.6815896",
"0.67872286",
"0.67842",
"0.6776353",
"0.67702603",
"0.6769675",
"0.6732289",
"0.6696371... | 0.6294616 | 73 |
Test creation of object through __init__ | def kTY1(YKHO):
QOe9 = j18d(100, 101)
YKHO.assertEqual(QOe9.x, 100)
YKHO.assertEqual(QOe9.y, 101) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gFRt(YKHO):\n pass",
"def gFRt(YKHO):\n pass",
"def ypRH(YKHO):\n KAOR = KcDH()",
"def Al3S(YKHO, zoLL):\n zoLL",
"def g8ku(YKHO):\n KAOR = E9pF()\n assert isinstance(KAOR, E9pF)\n assert KAOR.theta is None\n assert KAOR.tau is None",
"def g8ku(YKHO):\n pass",
"def FIMM(Y... | [
"0.7811423",
"0.7811423",
"0.7792418",
"0.7774213",
"0.775884",
"0.76491666",
"0.75971913",
"0.7562253",
"0.7555416",
"0.754494",
"0.74491423",
"0.7442679",
"0.74320084",
"0.7415214",
"0.7356161",
"0.73269564",
"0.7295689",
"0.729148",
"0.7277881",
"0.72551835",
"0.72513777",... | 0.0 | -1 |
Ensure from_tuple() works as expected | def Mwl5(YKHO):
Wb4s = j18d(1, 2)
Cgd7 = (1, 2)
YKHO.assertEqual(j18d.from_tuple(Cgd7), Wb4s) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hslb(aDxC, EEBT):\n CQwJ, T6S7 = EEBT\n aDxC.register_structure_hook(CQwJ, aDxC.structure_attrs_fromtuple)\n YEnM = CQwJ(*T6S7)\n z728 = YElZ(YEnM)\n sAYn = aDxC.structure(z728, CQwJ)\n assert YEnM == sAYn",
"async def infer_make_tuple(YKHO, eHpk, *qIxc):\n return OeAZ(qIxc)",
"def XMp... | [
"0.69785756",
"0.6890034",
"0.67779857",
"0.6771019",
"0.6654878",
"0.66442084",
"0.6622194",
"0.6613496",
"0.6603172",
"0.6601964",
"0.6594749",
"0.6551057",
"0.6550452",
"0.65383357",
"0.6529651",
"0.65118164",
"0.650074",
"0.64878404",
"0.6470895",
"0.6468189",
"0.6441171"... | 0.6917197 | 1 |
Return data that has so far been published. | async def data(YKHO) -> rLdf.DataFrame:
try:
return await YKHO.vfs.read_csv(YKHO._filename, index_col=False)
except FileNotFoundError:
RKD7.warning('No previous CSV file found, creating new one...')
return rLdf.DataFrame() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xBxz(YKHO):\n return YKHO.filter(publish=True)",
"def xBxz(YKHO):\n return YKHO.filter(published=True)",
"def xBxz(YKHO):\n return YKHO._published",
"def xBxz(YKHO):\n return YKHO.__published",
"def xBxz(YKHO):\n return YKHO.get_query_set().filter(status=klWb)",
"def xBxz(YKHO):\n r... | [
"0.7237021",
"0.7107117",
"0.7083964",
"0.7075163",
"0.70578593",
"0.69663405",
"0.69590044",
"0.68568426",
"0.6783776",
"0.6783776",
"0.6751071",
"0.6716953",
"0.6467049",
"0.64555883",
"0.6405715",
"0.63464487",
"0.6339139",
"0.632975",
"0.6303439",
"0.62565184",
"0.6254362... | 0.0 | -1 |
Returns True/False whether the int value of the string is truthy/falsy. | def KKD3(YKHO, vIwR: str) -> str:
return 'True' if int(vIwR) else 'False' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYWp(RdfN):\n return bool(int(RdfN))",
"def oOc6(YKHO, vIwR):\n return not vIwR in ['False', 'false', 0, '0']",
"def E8Lj(KCHu):\n if KCHu:\n return True\n else:\n return False",
"def UcEP(KCHu):\n return KCHu == 'True' or KCHu == 'true' or KCHu == '1' or (KCHu == 1)",
"def... | [
"0.77660257",
"0.7649958",
"0.7503808",
"0.7463157",
"0.7441976",
"0.73482585",
"0.7304639",
"0.7299577",
"0.7268361",
"0.72581357",
"0.7245544",
"0.72334194",
"0.7208186",
"0.72038376",
"0.7167197",
"0.7137261",
"0.71053857",
"0.7092091",
"0.7086708",
"0.7078412",
"0.7053488... | 0.0 | -1 |
Treat == as != | def xa14(YKHO, BWXx):
return YKHO.__data != BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kiEf(jzdc, Fg_i):\n return not jzdc != Fg_i",
"def NAFN(ALYW, Bylp):\n return ALYW != Bylp",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, RKYb):\n return not YKHO == RKYb",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return ~YKHO... | [
"0.77364117",
"0.76730835",
"0.7580058",
"0.758002",
"0.74895746",
"0.7441537",
"0.74405533",
"0.73069435",
"0.73041403",
"0.7298594",
"0.7281275",
"0.72450906",
"0.72429097",
"0.72289324",
"0.72289324",
"0.72289324",
"0.7216578",
"0.7209914",
"0.719928",
"0.7196327",
"0.7191... | 0.0 | -1 |
treat != as == | def Vdqg(YKHO, BWXx):
return YKHO.__data == BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kiEf(jzdc, Fg_i):\n return not jzdc != Fg_i",
"def NAFN(ALYW, Bylp):\n return ALYW != Bylp",
"def hVgE(YKHO, WKvO, LVAh):\n return WKvO != LVAh",
"def Vdqg(YKHO, RKYb):\n return not YKHO == RKYb",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not... | [
"0.79022986",
"0.7753891",
"0.77094245",
"0.7569367",
"0.74902344",
"0.7487347",
"0.74576926",
"0.7363184",
"0.73244095",
"0.73149127",
"0.73093176",
"0.73093176",
"0.72948116",
"0.7271597",
"0.72512805",
"0.7232176",
"0.7227822",
"0.7224364",
"0.72209656",
"0.72166955",
"0.7... | 0.0 | -1 |
Initialize the ship and set its starting position | def FIMM(YKHO, Vjhr, QzhK, qyH4):
YKHO.screen = Vjhr
YKHO.image = a9eO.image.load('images/planet2.png')
YKHO.image = a9eO.transform.scale(YKHO.image, (154, 149))
YKHO.rect = YKHO.image.get_rect()
YKHO.screen_rect = Vjhr.get_rect()
YKHO.rect.x = 5
YKHO.rect.y = 5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PcLS(YKHO):\n YKHO.real_positionx = float(YKHO.screen_rect.centerx)\n YKHO.real_positiony = float(YKHO.screen_rect.bottom - YKHO.image.get_height() * 0.5)\n YKHO.set_display_position(YKHO.real_positionx, YKHO.real_positiony)",
"def FIMM(YKHO, tJm0, Vjhr):\n super(riCe, YKHO).__init__()\n YKHO.... | [
"0.7179686",
"0.7179495",
"0.71464306",
"0.71424013",
"0.7137835",
"0.7086233",
"0.70325404",
"0.70300156",
"0.700551",
"0.6999165",
"0.6998848",
"0.69798976",
"0.69645953",
"0.69516844",
"0.6910557",
"0.6906372",
"0.6890547",
"0.6875317",
"0.6860608",
"0.6850699",
"0.6846318... | 0.69085014 | 15 |
Transpose image for PyTorch coordinates. | def ngNj(pdhd):
yvT9 = pdhd.transpose((2, 0, 1))
return ht2j.from_numpy(yvT9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tjHm(LNo8):\n K_G3 = oyIN.transpose(LNo8, axes=(1, 0, 2))\n return K_G3",
"def l7uB(VXjJ):\n QvQx = isinstance(VXjJ, oyIN.ndarray)\n if not Qfi2(VXjJ):\n if QvQx:\n VXjJ = hnIv.fromarray(VXjJ)\n else:\n raise TypeError('img should be PIL Image or numpy array. ... | [
"0.71303815",
"0.6745802",
"0.6719235",
"0.6593368",
"0.65052724",
"0.64933044",
"0.6492372",
"0.6481593",
"0.64755565",
"0.64592695",
"0.6343319",
"0.6311961",
"0.6296892",
"0.6287441",
"0.6273294",
"0.6227473",
"0.61924446",
"0.6191759",
"0.6177821",
"0.6161399",
"0.6151829... | 0.0 | -1 |
Plot the data passing in a matrix and using a colormap. | def BBpp(nPrm):
LZpg = QD4e()
LZpg.plot(data=nPrm, region=[10, 70, -5, 10], projection='X10c', style='c0.5c', cmap='rainbow', frame='a')
return LZpg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj9G(SppC):\n LZpg, aNZO = QrM1.subplots()\n aNZO.matshow(SppC, cmap=QrM1.cm.OrRd)\n QrM1.show()",
"def xks0(nPrm, gz_g=None, k5Zv=None, iMGt='purple', Fyji=False, aNZO=None):\n if isinstance(iMGt, str):\n iMGt = tRp2(iMGt)\n uuEx.heatmap(nPrm, square=Fyji, ax=Ip37(aNZO), cmap=iMGt, **X... | [
"0.76140124",
"0.74631387",
"0.70167625",
"0.6900946",
"0.68826497",
"0.686296",
"0.68281233",
"0.6773545",
"0.6726112",
"0.667815",
"0.6677568",
"0.6618772",
"0.6612032",
"0.6590107",
"0.6539068",
"0.6487478",
"0.6475287",
"0.6465695",
"0.645005",
"0.643209",
"0.64192384",
... | 0.74403465 | 2 |
Inverse the mapping of a dictionnary. Go from unique ID > label to label > [id1, id2, ...] | def dQKb(J8oL):
iEX3 = {}
for G1Hx, Ty9i in J8oL.iteritems():
iEX3.setdefault(Ty9i, []).append(G1Hx)
return iEX3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iy9h(J8oL):\n iFo5 = {}\n for G1Hx, Ty9i in J8oL.iteritems():\n for RJv6 in Ty9i:\n iFo5[RJv6] = G1Hx\n return iFo5",
"def LvaE(J8oL, Tuqy):\n if Tuqy == 'unique_key_to_label':\n return dQKb(J8oL)\n elif Tuqy == 'label_to_unique_key':\n return Iy9h(J8oL)",
"de... | [
"0.72940725",
"0.71529543",
"0.6531248",
"0.6465498",
"0.64214265",
"0.6414325",
"0.63803583",
"0.63681346",
"0.629422",
"0.6266172",
"0.6240206",
"0.62330884",
"0.6222798",
"0.6222779",
"0.61905336",
"0.6144133",
"0.6121372",
"0.5997788",
"0.59927356",
"0.5979627",
"0.594036... | 0.72443306 | 1 |
Return the best value found in the given collection as ordered in the ordered_values parameter. An error if none values of ordered_values are in collec. | def CJU_(dBsw, SPmT):
P6Dd = None
for Ty9i in SPmT:
if Ty9i in dBsw:
P6Dd = Ty9i
break
if P6Dd is None:
print('Given collection is: {}'.format(dBsw))
print('Given ordered values are: {}'.format(SPmT))
raise ValueError('The given collection does not con... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2r8(MMe4):\n if len(MMe4) == 0:\n return None\n else:\n T2GX = sorted(MMe4, key=TU9R('confidence'), reverse=True)\n wEf2 = T2GX[0].get('value', None)\n return wEf2",
"def uc7Q(YKHO):\n return YKHO._best_value",
"def e_C2(YKHO):\n hkxX = [M2l_.value for M2l_ in YKHO.... | [
"0.6064414",
"0.5749204",
"0.5735112",
"0.5653835",
"0.5645218",
"0.55513555",
"0.55513555",
"0.55513555",
"0.55486065",
"0.5524175",
"0.54472417",
"0.5440654",
"0.5398687",
"0.5398687",
"0.5374969",
"0.5286936",
"0.52859414",
"0.5266815",
"0.5263552",
"0.5248757",
"0.524828"... | 0.84960836 | 0 |
System of sets representation of the first two levels (columns) of the underlying data table Each item in level 0 (first column) defines a set containing all the level 1 (second column) items with which it appears in the same row of the underlying data table Returns dict of `AttrList` | def UqER(YKHO):
if YKHO._dimsize < 2:
return {G1Hx: qNDv(entity=YKHO, key=(0, G1Hx)) for G1Hx in YKHO.uidset}
return YKHO.elements_by_level(0, 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lNWu(YKHO):\n return {WKvO + 's': [LO7q for LO7q in YKHO.db if YKHO.get(LO7q).type == WKvO] for WKvO in ('set', 'subset', 'mapping')}",
"def bZ7t(YKHO):\n return {}",
"def L5LK(YKHO):\n azoT = ['data_node', 'id', 'instance_id', 'master_id', 'number_of_aggregations', 'number_of_files', 'title', 'ty... | [
"0.66731817",
"0.64204013",
"0.6160295",
"0.6157669",
"0.609228",
"0.5963022",
"0.5957067",
"0.58918506",
"0.58440644",
"0.58149946",
"0.5751252",
"0.5750675",
"0.57249224",
"0.57072437",
"0.5667806",
"0.56641316",
"0.563485",
"0.5625113",
"0.5625062",
"0.561907",
"0.561804",... | 0.6504755 | 1 |
System of sets representation of the first two levels (columns) of the underlying data table Each item in level 1 (second column) defines a set containing all the level 0 (first column) items with which it appears in the same row of the underlying data table Returns dict of `AttrList` | def AO0n(YKHO):
return YKHO.elements_by_level(1, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lNWu(YKHO):\n return {WKvO + 's': [LO7q for LO7q in YKHO.db if YKHO.get(LO7q).type == WKvO] for WKvO in ('set', 'subset', 'mapping')}",
"def UqER(YKHO):\n if YKHO._dimsize < 2:\n return {G1Hx: qNDv(entity=YKHO, key=(0, G1Hx)) for G1Hx in YKHO.uidset}\n return YKHO.elements_by_level(0, 1)",
... | [
"0.6658178",
"0.6490727",
"0.637783",
"0.6120696",
"0.6107083",
"0.60723823",
"0.59472346",
"0.5908128",
"0.58692145",
"0.5824032",
"0.5787703",
"0.5767909",
"0.5722954",
"0.57122767",
"0.56898636",
"0.56371784",
"0.5609922",
"0.56046706",
"0.56001544",
"0.55988",
"0.5595602"... | 0.0 | -1 |
Whether the underlying data table is empty or not Returns bool See Also | def lsmZ(YKHO):
return YKHO._dimsize == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.result_table) == 1",
"def lsmZ(YKHO) -> bool:\n return not bool(YKHO.table)",
"def FBfn(YKHO):\n return len(YKHO._df_dict) == 0",
"def FBfn(YKHO) -> bool:\n return YKHO._da.is_empty()",
"def FBfn(YKHO):\n return YKHO._data.is_empty()",
"def FBfn(YKHO) -> b... | [
"0.8619227",
"0.8341847",
"0.8295559",
"0.81027144",
"0.80856174",
"0.8080701",
"0.8027277",
"0.79698926",
"0.79017437",
"0.78975016",
"0.78975016",
"0.7894869",
"0.78836095",
"0.7861698",
"0.78439647",
"0.7831232",
"0.7827356",
"0.78201604",
"0.78201604",
"0.78201604",
"0.78... | 0.0 | -1 |
Get indices of one or more value(s) in a column | def _0VL(YKHO, iVRZ, hkxX):
if isinstance(hkxX, eA6S):
hkxX = [hkxX]
if 'index' not in YKHO._state_dict:
YKHO._state_dict['index'] = oRi_(dict)
for Ty9i in hkxX:
if Ty9i not in YKHO._state_dict['index'][iVRZ]:
YKHO._state_dict['index'][iVRZ][Ty9i] = YKHO._dataframe[iVRZ].... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K1VD(tyNF, iVRZ, nPrm):\n d6pt = -1\n for U6D_ in tyNF:\n d6pt += 1\n if U6D_[iVRZ] == nPrm:\n return d6pt",
"def T9lI(YKHO, hkxX):\n if not isinstance(hkxX, set):\n if not isinstance(hkxX, list):\n hkxX = set([hkxX])\n else:\n hkxX = set(... | [
"0.6802064",
"0.6652667",
"0.6643574",
"0.66056633",
"0.65800875",
"0.65599763",
"0.65358144",
"0.6535217",
"0.6530985",
"0.6519051",
"0.6490807",
"0.6376245",
"0.63752186",
"0.6372506",
"0.6353987",
"0.63293505",
"0.63175374",
"0.630189",
"0.62752384",
"0.62652445",
"0.62619... | 0.67621917 | 1 |
Gets the temperature as a tuple with type and unit. | def rcrL(YKHO):
YKHO.get_reading()
return (YKHO.temperature, 'temp', 'c') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ttgG(YKHO):\n sAQQ = YKHO.qdi_instrument.GetTemperature(0, 0)\n try:\n return (str(sAQQ[1]), YKHO.TstatusDict[sAQQ[2]])\n except:\n return (str(sAQQ[1]), 'recognize problem')",
"def ovGo(YKHO):\n return (YKHO.temperature_min, YKHO.temperature_max)",
"def rcrL(YKHO):\n gz5X = xt... | [
"0.75056726",
"0.7460176",
"0.7397201",
"0.7159488",
"0.7026257",
"0.69570905",
"0.6948891",
"0.6936572",
"0.69129163",
"0.6911294",
"0.69056815",
"0.6892235",
"0.68767947",
"0.6872778",
"0.68695194",
"0.68536305",
"0.6840189",
"0.6839318",
"0.6837499",
"0.68359244",
"0.68335... | 0.8127139 | 0 |
return True if a piece of `color` can go to `square`, False otherwise. | def mW7K(dQgj, Fyji, qfpW):
for Fyji in range(0, 80):
mrj1 = dQgj[Fyji]
if PICn(mrj1) != qfpW:
continue
RFQf = YS47(dQgj, Fyji, mrj1)
if Fyji in RFQf:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uOqR(YKHO, qfpW):\n leof = YKHO.get_general_square(qfpW)\n Nkld = 'red' if qfpW == 'blue' else 'blue'\n for Fyji, mrj1 in YKHO._board.items():\n if mrj1 is not None and mrj1.get_color() == Nkld:\n cbw0 = leof in mrj1.valid_squares(Fyji, YKHO)\n if cbw0:\n re... | [
"0.751138",
"0.7259491",
"0.72359186",
"0.71847093",
"0.7142528",
"0.711342",
"0.70059204",
"0.6982024",
"0.6932411",
"0.6869961",
"0.68372935",
"0.6819497",
"0.68132055",
"0.67924696",
"0.67865133",
"0.672963",
"0.67225266",
"0.6692563",
"0.66831124",
"0.66283494",
"0.662056... | 0.8192177 | 0 |
Loads a gio model from a file. Supports loading from gzipped files. | def BXhK(Ux0P):
mu4q = lGU7.open if '.gz' in Ux0P else open
with mu4q(Ux0P, 'r') as eHNT:
kGys = eHNT.read()
return Wryy(kGys) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(axZ9):\n with axZ9('yourmodel.pkl', 'rb') as eHNT:\n C3ST = t2lc.load(eHNT)\n return wOed(C3ST)",
"def uyMl(Ux0P):\n with lGU7.open(Ux0P, 'rb') as eHNT:\n C3ST = t2lc.load(eHNT)\n return C3ST",
"def tyeH(axZ9):\n with axZ9('regressor.pickle', 'rb') as eHNT:\n lOgS =... | [
"0.74646866",
"0.73545325",
"0.7212985",
"0.7166849",
"0.71584386",
"0.7149771",
"0.7103336",
"0.70412594",
"0.6957404",
"0.6912834",
"0.6912834",
"0.6912834",
"0.6908915",
"0.690222",
"0.6899109",
"0.68586653",
"0.6842054",
"0.68193054",
"0.67869395",
"0.6766646",
"0.6735211... | 0.8443716 | 0 |
Return the cumulative distribution function corresponding to the given distribution parameters and value. | def nI4U(XP5J: xr.DataArray, Ty9i: float | Sequence[float]) -> zuVY.DataArray:
Ty9i = oyIN.atleast_1d(Ty9i)
pImw = XP5J.attrs['scipy_dist']
Bc4p = KLpe(pImw)
def JfyU(WKvO):
return Bc4p.cdf(Ty9i, *WKvO)
nPrm = zuVY.apply_ufunc(JfyU, XP5J, input_core_dims=[['dparams']], output_core_dims=[['c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(YKHO, BWXx: torch.Tensor, NArs: Dict[str, torch.Tensor]):\n if YKHO.distribution is not None:\n return YKHO.distribution.cdf(BWXx)\n return ht2j.tensor(oyIN.nan).float().expand_as(BWXx)",
"def U9EB(YKHO, BWXx):\n q7nV = YLnl(kieq(eYuw.cumulative_distribution), YKHO)\n\n def eHNT(WKvO)... | [
"0.7473833",
"0.73303056",
"0.7047904",
"0.69392383",
"0.678611",
"0.66632473",
"0.65623",
"0.648156",
"0.6401258",
"0.6387178",
"0.6362543",
"0.6330775",
"0.6322787",
"0.6289255",
"0.62724763",
"0.62718314",
"0.62691045",
"0.6180703",
"0.6178556",
"0.61575764",
"0.61346203",... | 0.5981546 | 33 |
Return a value associated with the given key. Return False if not found | def SWYe(YKHO, Jzfy: str) -> ImMB:
try:
return YKHO._mDict[Jzfy]
except KeyError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew):\n if YKHO.search(H5ew) == 0:\n return False\n else:\n d6pt = YKHO.hash_function(H5ew)\n WE7e = YKHO.table[d6pt]\n for ZfUD in WE7e:\n if ZfUD.key == H5ew:\n return ZfUD.value",
"def NMoC(YKHO, H5ew):\n if YKHO.search(H5ew) == 0:... | [
"0.831522",
"0.78520745",
"0.7703053",
"0.7663824",
"0.751312",
"0.7489026",
"0.7486633",
"0.74624413",
"0.7405473",
"0.73129076",
"0.73102796",
"0.7257194",
"0.72467947",
"0.72244567",
"0.71995676",
"0.7185492",
"0.71727854",
"0.71564966",
"0.7131283",
"0.7090196",
"0.706699... | 0.0 | -1 |
Convert a list of trait lists into a list of floating point numbers suitable for using as colors in matplotlib. | def uYRa(yv6U):
KCHu = set([str(YRbF) for YRbF in yv6U])
Uqbu = len(KCHu)
Csk6 = {QJlQ: YRbF / Uqbu for YRbF, QJlQ in enumerate(KCHu)}
return [Csk6[str(YRbF)] for YRbF in yv6U] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def udxq():\n return",
"def s18d(ZSoC):\n return ['{:0.2f}'.format(WKvO) for WKvO in ZSoC]",
"def ZL8D(yv6U):\n if 'numpy.float' in str(type(yv6U[0])):\n return [float(YRbF) for YRbF in yv6U]\n if 'numpy.int' in str(type(yv6U[0])):\n return [int(YRbF) for YRbF in yv6U]\n return yv6... | [
"0.6522713",
"0.6508773",
"0.64024055",
"0.6081264",
"0.6080443",
"0.60415256",
"0.6034005",
"0.5989077",
"0.5967194",
"0.59224784",
"0.5877231",
"0.58446634",
"0.582057",
"0.58071846",
"0.5796884",
"0.5788112",
"0.576695",
"0.57319367",
"0.57245",
"0.57128215",
"0.570105",
... | 0.7163421 | 0 |
if on Windows, replace backslashes in path with forward slashes | def bkQF(pmON):
return pmON.replace('\\', '/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bkQF(YKHO, pmON):\n if HwRy.platform.lower().startswith('win'):\n SQ3m = ZbWC.split('\\\\\\\\|/', pmON)\n pmON = SQ3m[0]\n del SQ3m[0]\n for Q7me in SQ3m:\n pmON = pmON + '\\\\' + Q7me\n return pmON",
"def VCg9(pmON):\n if Hy7s.name == 'posix':\n return ... | [
"0.80650187",
"0.80340296",
"0.797724",
"0.77172285",
"0.7611728",
"0.759596",
"0.7559345",
"0.75067765",
"0.74752086",
"0.74187154",
"0.7403775",
"0.7356646",
"0.7347082",
"0.730033",
"0.72503287",
"0.7245509",
"0.72392493",
"0.7221406",
"0.7216195",
"0.7203922",
"0.72030205... | 0.82216406 | 0 |
get absolute path to project directory in same workspace as fips | def TdjZ(xRfi, Kl49):
if Kl49 == 'Src':
return kXcF(xRfi)
else:
return qLeJ(xRfi) + '/' + Kl49 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EL0N():\n return Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)))",
"def EL0N() -> str:\n return str(GkAb(xAKo).parent.parent)",
"def Sd0C():\n return Hy7s.path.dirname(Hy7s.path.abspath(xAKo))",
"def phdL():\n return GkAb(xAKo).parent.parent.__str__()",
"def phdL() -> GkAb:\n ... | [
"0.80150896",
"0.7731182",
"0.7630129",
"0.761334",
"0.7590946",
"0.7584047",
"0.7584047",
"0.7584047",
"0.7584047",
"0.7555065",
"0.7555065",
"0.75420094",
"0.75372064",
"0.75334203",
"0.7513722",
"0.7486988",
"0.7484496",
"0.7480915",
"0.7469187",
"0.7462776",
"0.7432681",
... | 0.7156676 | 38 |
test if the provided directory is a valid fips project (has a fips.yml file) | def JZLY(t7Ny):
if Hy7s.path.isdir(t7Ny):
if not Hy7s.path.isfile(t7Ny + '/fips.yml'):
return False
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nJ06(pmON):\n return Hy7s.path.isdir(pmON) and Hy7s.access(pmON, Hy7s.W_OK) and Hy7s.access(Hy7s.path.join(pmON, 'project.json'), Hy7s.F_OK | Hy7s.R_OK)",
"def QkLI(pmON):\n return Hy7s.path.exists(pmON + Hy7s.path.sep + '.swanproject')",
"def Nccf():\n if not Hy7s.path.isdir('src') or not Hy7s.pa... | [
"0.6967632",
"0.66336787",
"0.6451176",
"0.64025044",
"0.63757336",
"0.6356095",
"0.62918603",
"0.62839264",
"0.6211385",
"0.61736774",
"0.61471045",
"0.6140868",
"0.60861814",
"0.6070764",
"0.6036999",
"0.6024578",
"0.5936124",
"0.5933892",
"0.59185135",
"0.59183156",
"0.590... | 0.8266655 | 0 |
get the current host platform name (osx, linux or win) | def KwMM():
return WU2G[a9EH.system()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xuRN():\n if HwRy.platform == 'win32' or HwRy.platform == 'cygwin':\n return 'win'\n if HwRy.platform.startswith('linux'):\n return 'linux'\n else:\n assert HwRy.platform == 'darwin'\n return 'mac'",
"def h1o9():\n Wju4 = a9EH.uname()\n return '-'.join([Wju4[0], Wju... | [
"0.8987494",
"0.8806821",
"0.8734899",
"0.8723988",
"0.8716447",
"0.85859174",
"0.8553969",
"0.85243696",
"0.8433245",
"0.8432233",
"0.8419023",
"0.8393959",
"0.835581",
"0.83517605",
"0.8348392",
"0.8309102",
"0.8261442",
"0.82358944",
"0.8201437",
"0.81815696",
"0.8168072",... | 0.851771 | 8 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, Gy7I):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Pads data into a multiple of block_size. | def Lg1K(nPrm, Z1S6):
SXLe = (Z1S6 - len(nPrm)) % Z1S6
if SXLe == 0:
SXLe = Z1S6
dvgN = bytes([SXLe for YRbF in range(SXLe)])
return nPrm + dvgN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XSUz(nPrm, Z1S6):\n WAcC = Z1S6 - len(nPrm) % Z1S6\n return nPrm + 'ÿ' + (WAcC - 1) * '\\x00'",
"def AeBf(YKHO, zNig, ztRo):\n raise NotImplementedError()",
"def AeBf(nPrm):\n zNig = len(nPrm)\n if zNig < yZIe:\n SXLe = yZIe - zNig\n elif zNig % yZIe == 0:\n SXLe = 0\n el... | [
"0.7305225",
"0.7092694",
"0.70764285",
"0.68396604",
"0.6718307",
"0.6488954",
"0.64790267",
"0.64283437",
"0.6396788",
"0.6380261",
"0.63492215",
"0.62860376",
"0.6260227",
"0.62520224",
"0.61962396",
"0.6166572",
"0.6098075",
"0.60847884",
"0.6059111",
"0.6059111",
"0.6026... | 0.6689828 | 5 |
Generates random colors. Color.RED with 1/3 and Color.BLACK with 2/3 probability. | def rYs4(YKHO):
z2lz = tuKI.random()
if z2lz <= 1 / 3.0:
return HRmL.RED
else:
return HRmL.BLACK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tuKI():\n return HRmL([tuKI.randint(0, 256) for WKvO in range(3)])",
"def pph3():\n\n def eK5b():\n return round(10 * epAf.sqrt(tuKI.randint(100, 255)))\n return (eK5b(), eK5b(), eK5b())",
"def Q5jr():\n Mkmy = tuKI.randint(0, 255)\n Oa1e = tuKI.randint(0, 255)\n Fg_i = tuKI.randin... | [
"0.81842446",
"0.8067131",
"0.7981958",
"0.7915327",
"0.77679217",
"0.7741925",
"0.7739807",
"0.77225477",
"0.76936555",
"0.76905185",
"0.76828164",
"0.7679086",
"0.763265",
"0.7562289",
"0.7554513",
"0.75415254",
"0.7507139",
"0.750262",
"0.74927074",
"0.7476766",
"0.7465643... | 0.7603208 | 13 |
Returns a card from the deck. | def VVF1(YKHO, NHTG=None):
F1Hz = YKHO.deck.take_card(NHTG)
return F1Hz.value if F1Hz.color == HRmL.BLACK else F1Hz.value * -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVF1(YKHO):\n if YKHO.is_empty():\n raise UV2m('Cannot retrieve a card from an empty deck')\n return YKHO.decks.pop(0)",
"def F48w(YKHO, d6pt):\n return YKHO.deck[d6pt]",
"def dxhl(YKHO):\n return YKHO.deck[0]",
"def F48w(YKHO, Z9rn):\n return YKHO._get('/me/cards/' + Z9rn)",
"def... | [
"0.8135759",
"0.8020563",
"0.7953871",
"0.764409",
"0.76007545",
"0.75615376",
"0.75059646",
"0.7486673",
"0.74827",
"0.74331105",
"0.7368326",
"0.73170006",
"0.7206573",
"0.71940017",
"0.7175458",
"0.71717525",
"0.71541893",
"0.71541893",
"0.7050364",
"0.70405424",
"0.702740... | 0.6656469 | 65 |
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(ndC_, YKHO).__init__(*qIxc, **c_sp)
if YKHO.id is None:
YKHO.id = 0
if YKHO.constraint is None:
YKHO.constraint = Lrq0.msg.GraphConstraint()
else:
YKHO.id = 0
YKHO.constraint = Lrq0.msg.GraphCon... | {
"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.8165674",
"0.77195513",
"0.77195513",
"0.76520497",
"0.75728256",
"0.7543766",
"0.748476",
"0.7468921",
"0.74580646",
"0.74451506",
"0.7444147",
"0.7432844",
"0.74155796",
"0.7408309",
"0.7392036",
"0.73749536",
"0.73622394",
"0.7324911",
"0.7323778",
"0.7323778",
"0.73237... | 0.7082617 | 60 |
Picks among actions randomly. | def wRjc(YKHO, Ov5A):
xASv = Ov5A.getLegalActions(YKHO.index)
'\n You should change this in your own agent.\n '
return tuKI.choice(xASv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tuKI(YKHO, xASv):\n return tuKI.choice(xASv)",
"def LYYN(YKHO):\n return tuKI.choice(YKHO._action_list)",
"def su1c(YKHO):\n return tuKI.choice(YKHO.action_space)",
"def IIvl(bGrB, xASv):\n return oyIN.random.choice(xASv)",
"def V5uW(YKHO, HU0t):\n return oyIN.random.choice(HU0t)",
"de... | [
"0.86895263",
"0.81253546",
"0.8013322",
"0.8000019",
"0.79420555",
"0.7815254",
"0.7751514",
"0.77179015",
"0.7703808",
"0.76638395",
"0.76528525",
"0.76425135",
"0.7601561",
"0.7578885",
"0.75778246",
"0.7566575",
"0.75574195",
"0.75574195",
"0.75574195",
"0.75005925",
"0.7... | 0.7599688 | 13 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))
return uw5A / uw5A.sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye",
"def N93T(WKvO):\n j1LR = oyIN.exp(o... | [
"0.8011763",
"0.7762068",
"0.7762068",
"0.76872087",
"0.7672933",
"0.76626015",
"0.76593024",
"0.76593024",
"0.76593024",
"0.76593024",
"0.76593024",
"0.76593024",
"0.76593024",
"0.76418614",
"0.7628753",
"0.75523245",
"0.7533773",
"0.7458778",
"0.73250604",
"0.7317943",
"0.7... | 0.70939004 | 62 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.63939756 | 42 |
It the constructor of the class HeapNode which gets called when you make an instance of this class. | def FIMM(YKHO, hcXw, QTg7):
YKHO.char = hcXw
YKHO.freq = QTg7
YKHO.left = None
YKHO.right = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.heap = [None]",
"def FIMM(YKHO):\n YKHO.heap = [None]",
"def FIMM(YKHO):\n YKHO.heap_left = []\n YKHO.heap_right = []",
"def FIMM(YKHO):\n YKHO.heap = []",
"def FIMM(YKHO):\n YKHO._heap = []\n YKHO._length = 0",
"def FIMM(YKHO):\n YKHO.heap = ([], [])",
"d... | [
"0.8085254",
"0.8006102",
"0.79627526",
"0.7960076",
"0.7857372",
"0.7837344",
"0.78171396",
"0.77472836",
"0.7666097",
"0.7549779",
"0.7527593",
"0.7525056",
"0.7525056",
"0.7525056",
"0.7525056",
"0.7525056",
"0.7512182",
"0.7483446",
"0.74737775",
"0.7467582",
"0.7397972",... | 0.0 | -1 |
It traverse the tree from the root to assign a code to the characters. | def exsC(YKHO, tk5Y, Y1eu):
if tk5Y == None:
return
if tk5Y.char != None:
YKHO.codes[tk5Y.char] = Y1eu
YKHO.reverse_mapping[Y1eu] = tk5Y.char
return
YKHO.make_codes_helper(tk5Y.left, Y1eu + '0')
YKHO.make_codes_helper(tk5Y.right, Y1eu + '1') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QkwD(YKHO, Q6kx, Wxnj=''):\n jwB3 = not Q6kx.left and (not Q6kx.right)\n if jwB3:\n YKHO.code_dict[Q6kx.symbol] = Wxnj\n else:\n if Q6kx.left:\n YKHO.assign_codes(Q6kx.left, Wxnj + '0')\n if Q6kx.right:\n YKHO.assign_codes(Q6kx.right, Wxnj + '1')",
"def exs... | [
"0.7486129",
"0.68274355",
"0.68274355",
"0.64708114",
"0.64330345",
"0.62867594",
"0.6284237",
"0.62772685",
"0.6131529",
"0.6047707",
"0.60068125",
"0.59889454",
"0.5962159",
"0.5946719",
"0.59409076",
"0.59390324",
"0.585281",
"0.5796045",
"0.57515633",
"0.57442546",
"0.56... | 0.67209184 | 3 |
Returns a random string of length characters from the set of az, AZ, 09 for use as a salt. The default length of 12 with the az, AZ, 09 character set returns a 71bit salt. log_2((26+26+10)^12) =~ 71 bits | def GLL2(u54L=12, jkLJ='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'):
import random
try:
random = random.SystemRandom()
except NotImplementedError:
pass
return ''.join([random.choice(jkLJ) for YRbF in range(u54L)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EnVs(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join(tuKI.choices(gLiZ, k=16))",
"def Vost():\n gLiZ = []\n for YRbF in range(8):\n gLiZ.append(tuKI.choice(P4t4.config['ALPHABET']))\n return ''.join(gLiZ)",
"def hq52(u54L=5):\n return ''.join((tuKI.choice(KoG3) ... | [
"0.7671971",
"0.76042205",
"0.7578329",
"0.7562661",
"0.73837084",
"0.737392",
"0.7360927",
"0.7339338",
"0.7274865",
"0.72265506",
"0.7188074",
"0.71649045",
"0.71097463",
"0.7071963",
"0.7064807",
"0.7040914",
"0.7038486",
"0.7022185",
"0.7007912",
"0.699305",
"0.69816005",... | 0.0 | -1 |
Sets the user's password to raw_password, hashed with our looping algorithm. | def xNXX(YKHO, Ud05):
if not n30Z() or Ud05 is None:
m_qJ(YKHO, Ud05)
else:
NTfD = GLL2()
lNLE = hzBf(cJ_x(Ud05), cJ_x(NTfD), MHmj())
YKHO.password = 'SRHH$%d$%s$%s' % (MHmj(), NTfD, lNLE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3s8(YKHO, Ud05):\n YKHO.password = vT87(Ud05, length=12)",
"def G3s8(YKHO, Ud05):\n YKHO.password = Mi51.generate_password_hash(Ud05, length=12)",
"def G3s8(YKHO, Ud05):\n YKHO.password = Mi51.generate_password_hash(Ud05, length=12)",
"def G3s8(YKHO, Ud05):\n YKHO.password = Mi51.generate_pa... | [
"0.82699895",
"0.8190918",
"0.81583685",
"0.81583685",
"0.805247",
"0.7976636",
"0.7713762",
"0.7628517",
"0.76208323",
"0.76208323",
"0.7404936",
"0.73355204",
"0.73355204",
"0.72363913",
"0.72116154",
"0.7202338",
"0.7187995",
"0.7187995",
"0.7187995",
"0.7187995",
"0.71879... | 0.727495 | 13 |
Returns the user message type associated with a level. | def loOw(ABDL):
for IaaG, type in Gtja.__members__.items():
if type.value is ABDL:
return type
raise Exception(f'Unable to find UserMessageType for level {ABDL}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FxTh(Dfxc):\n return y86K()[Dfxc]",
"def Logs(YKHO) -> str:\n return qe4Y.get(YKHO, 'message_type')",
"def Q0F4(Emd4, ABDL):\n try:\n U5bT = eval('logging.' + ABDL)\n if not isinstance(U5bT, int):\n U5bT = None\n except Exception:\n U5bT = None\n finally:\n ... | [
"0.6338141",
"0.60060567",
"0.59867895",
"0.59810066",
"0.59228706",
"0.5888164",
"0.5838187",
"0.583629",
"0.5815907",
"0.5815907",
"0.5815907",
"0.5815907",
"0.5815907",
"0.5815907",
"0.5815907",
"0.5815907",
"0.5815907",
"0.5815907",
"0.5815907",
"0.5815907",
"0.5815907",
... | 0.8571269 | 0 |
Returns the entire HTML snippet for the message. | def OVrA(Emd4, yCkf, leAC=None, XMd0=False, **B2fa):
if leAC:
efc_ = I2jr(bGrB('{header_open}{title}{header_close}')).format(header_open=xu8S('<div class="message-header">'), title=leAC, header_close=xu8S('</div>'))
else:
efc_ = ''
if XMd0:
beOm = xu8S('<div class="message-actions"><... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z6gN(YKHO, Ol8d):\n hGN5 = f'<html><body><h1>{Ol8d}</h1></body></html>'\n return hGN5.encode('utf8')",
"def z6gN(YKHO, Ol8d):\n hGN5 = f'<html><body><h1>{Ol8d}</h1></body></html>'\n return hGN5.encode('utf8')",
"def z6gN(YKHO, Ol8d):\n hGN5 = '<html><body><h1>' + Ol8d + '</h1></body></html>'... | [
"0.779156",
"0.779156",
"0.7593163",
"0.7576176",
"0.74600244",
"0.74544954",
"0.68989694",
"0.68907106",
"0.6870021",
"0.6837772",
"0.6836302",
"0.67845005",
"0.67377186",
"0.67256045",
"0.67256045",
"0.6689847",
"0.6652368",
"0.66247356",
"0.65954244",
"0.6586153",
"0.65829... | 0.63336843 | 50 |