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 method cleans the article and stores its text as an array of tokens. | def jPDZ(YKHO):
s2mk = YKHO.text.split(' ')
tyNF = str.maketrans('', '', pC3l)
s2mk = [yzQ0.translate(tyNF) for yzQ0 in s2mk]
s2mk = [GIN8 for GIN8 in s2mk if GIN8.isalpha()]
hwHU = set(di0c.words('english'))
s2mk = [yzQ0 for yzQ0 in s2mk if not yzQ0 in hwHU]
qe2V = GFnk()
s2mk = [qe2V.l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jPDZ(l5Ny):\n s2mk = dFss(l5Ny)\n s2mk = [GIN8.lower() for GIN8 in s2mk]\n tyNF = str.maketrans('', '', vIwR.punctuation)\n EESs = [yzQ0.translate(tyNF) for yzQ0 in s2mk]\n V22M = [GIN8 for GIN8 in EESs if GIN8.isalpha()]\n hwHU = list(set(di0c.words('english'))) + sGBL\n IChv = [yzQ0 for ... | [
"0.7043471",
"0.67270625",
"0.6516325",
"0.6378018",
"0.6344264",
"0.622695",
"0.614711",
"0.6139909",
"0.6131427",
"0.6115884",
"0.6110651",
"0.60859597",
"0.60601443",
"0.5983729",
"0.594026",
"0.5925575",
"0.58895236",
"0.58883774",
"0.58861184",
"0.5879671",
"0.58617383",... | 0.80028117 | 0 |
This method cleans the article and stores its text as an array of tokens. | def go5S(YKHO):
s2mk = YKHO.title.split(' ')
tyNF = str.maketrans('', '', pC3l)
s2mk = [yzQ0.translate(tyNF) for yzQ0 in s2mk]
s2mk = [GIN8 for GIN8 in s2mk if GIN8.isalpha()]
hwHU = set(di0c.words('english'))
s2mk = [yzQ0 for yzQ0 in s2mk if not yzQ0 in hwHU]
qe2V = GFnk()
s2mk = [qe2V.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jPDZ(YKHO):\n s2mk = YKHO.text.split(' ')\n tyNF = str.maketrans('', '', pC3l)\n s2mk = [yzQ0.translate(tyNF) for yzQ0 in s2mk]\n s2mk = [GIN8 for GIN8 in s2mk if GIN8.isalpha()]\n hwHU = set(di0c.words('english'))\n s2mk = [yzQ0 for yzQ0 in s2mk if not yzQ0 in hwHU]\n qe2V = GFnk()\n s... | [
"0.80028117",
"0.7043471",
"0.67270625",
"0.6516325",
"0.6378018",
"0.6344264",
"0.622695",
"0.614711",
"0.6139909",
"0.6131427",
"0.6115884",
"0.6110651",
"0.60859597",
"0.60601443",
"0.5983729",
"0.594026",
"0.5925575",
"0.58895236",
"0.58883774",
"0.58861184",
"0.5879671",... | 0.0 | -1 |
Checks if the object type is Curve (Bezier or Poly) | def xh3N(YKHO, YEnM):
if YEnM.type == 'CURVE':
z1Rg = []
for YRbF in YEnM.data.splines:
z1Rg.append(YRbF.type == 'POLY' or YRbF.type == 'BEZIER')
return False not in z1Rg
elif YEnM.type in ('FONT', 'MESH'):
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xO11(TuoA):\n TuoA = TuoA.strip().upper()\n for DzCN in JNG9:\n if TuoA.startswith(DzCN):\n return True\n continue\n return False",
"def f1RF(YKHO):\n return _VfD.GeneralGlyph_isSetCurve(YKHO)",
"def f1RF(YKHO):\n return _VfD.ReferenceGlyph_isSetCurve(YKHO)",
"def ... | [
"0.71811",
"0.6912535",
"0.6880067",
"0.6817006",
"0.6736922",
"0.65712845",
"0.5855768",
"0.58122057",
"0.57633835",
"0.5762677",
"0.56897485",
"0.5660685",
"0.5658567",
"0.55876714",
"0.5569677",
"0.5546161",
"0.5546161",
"0.5493285",
"0.5474039",
"0.5450919",
"0.54200774",... | 0.6597929 | 5 |
Return the colors as a dict, pass False to return the colors as empty strings. | def fRt4(fpBc=True):
Jw9H = {'BLACK': '\x1b[0;30m', 'DARK_GRAY': '\x1b[1;30m', 'RED': '\x1b[0;31m', 'LIGHT_RED': '\x1b[1;31m', 'GREEN': '\x1b[0;32m', 'LIGHT_GREEN': '\x1b[1;32m', 'BLUE': '\x1b[0;34m', 'LIGHT_BLUE': '\x1b[1;34m', 'MAGENTA': '\x1b[0;35m', 'LIGHT_MAGENTA': '\x1b[1;35m', 'CYAN': '\x1b[0;36m', 'LIGHT_CY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WUH5():\n Ajy4.statusMessage('Reading existing colors...')\n Ftic = Ajy4.getColorNames()\n Ajy4.progressTotal(len(Ftic))\n YRbF = 0\n u2Wg = {}\n for mWFP in Ftic:\n u2Wg[mWFP] = None\n YRbF = YRbF + 1\n Ajy4.progressSet(YRbF)\n return u2Wg",
"def Jw9H(YKHO) -> dict:... | [
"0.7529682",
"0.75150573",
"0.72052366",
"0.72052366",
"0.706275",
"0.70247364",
"0.6812726",
"0.67655677",
"0.67530453",
"0.67110866",
"0.65626585",
"0.65444833",
"0.65171444",
"0.6508933",
"0.64823407",
"0.64574736",
"0.6440049",
"0.64372265",
"0.6426611",
"0.6386645",
"0.6... | 0.66816056 | 10 |
(str)> float returns the floating point value of the string. | def Ae21(str):
qQiX = []
if type(str) == type(''):
for YRbF in range(1, len(str) - 1):
qQiX.append(str[YRbF])
return ''.join(qQiX)
else:
return str | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BQ6F(vIwR):\n try:\n return float(vIwR.strip())\n except:\n return 0",
"def fqum(KCHu):\n try:\n eHNT = float(KCHu)\n return eHNT\n except ValueError:\n return None",
"def hGcZ(KCHu):\n try:\n float(KCHu)\n return 'FLOAT'\n except:\n ... | [
"0.8546683",
"0.8239328",
"0.819822",
"0.8147667",
"0.80112",
"0.80088556",
"0.79984194",
"0.79949915",
"0.79915977",
"0.7946013",
"0.7945833",
"0.79354113",
"0.79073596",
"0.7880307",
"0.7858204",
"0.7817916",
"0.7723053",
"0.7696582",
"0.76049405",
"0.7601665",
"0.7586115",... | 0.0 | -1 |
Return the Python representation of ``s`` (a ``str`` or ``unicode`` instance containing a JSON document) | def x8I_(YKHO, KCHu, VzLM=d1zo.match):
YEnM, Os4s = YKHO.raw_decode(KCHu, idx=VzLM(KCHu, 0).end())
Os4s = VzLM(KCHu, Os4s).end()
if Os4s != len(KCHu):
raise ValueError(jMN5('Extra data', KCHu, Os4s, len(KCHu)))
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vmDR(KCHu):\n return qQXR.dumps(KCHu.as_dict())",
"def Jjk4(KCHu):\n return jnRN(KCHu.as_dict(), safe=False)",
"def nMY2(Rf_J: Union[Dict[str, Any], Input, str]) -> str:\n if type(Rf_J) is dict:\n Rf_J = qQXR.dumps(Rf_J)\n elif type(Rf_J) is X6a0:\n Rf_J = qQXR.dumps(Rf_J.__dict__... | [
"0.7388296",
"0.65003926",
"0.64174974",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
"0.6318498",
... | 0.0 | -1 |
Return an ASCIIonly JSON representation of a Python string | def iGZj(KCHu):
if isinstance(KCHu, str) and HAIz.search(KCHu) is not None:
KCHu = KCHu.decode('utf-8')
def qx_G(kUBT):
KCHu = kUBT.group(0)
try:
return I0A5[KCHu]
except KeyError:
exwG = ord(KCHu)
if exwG < 65536:
return '\\u%... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IxRr(YKHO, vIwR):\n B2fa = {'cls': sFr4, 'indent': 1, 'sort_keys': True, 'separators': (',', ': ')}\n return Ur3m(qQXR.dumps(vIwR, **B2fa), 'utf-8')",
"def Dbb4(YKHO, vIwR):\n return qQXR.dumps(vIwR)",
"def Xxid(object):\n return qQXR.dumps(object, ensure_ascii=False)",
"def vmDR(KCHu):\n ... | [
"0.8173381",
"0.7761752",
"0.73871756",
"0.7306732",
"0.7114988",
"0.6949071",
"0.6896345",
"0.68929964",
"0.6786643",
"0.67857534",
"0.6751209",
"0.66860336",
"0.66523707",
"0.66367877",
"0.6627448",
"0.66205585",
"0.6590046",
"0.6590046",
"0.6590046",
"0.6590046",
"0.659004... | 0.0 | -1 |
Constructor for JSONEncoder, with sensible defaults. If skipkeys is false, then it is a TypeError to attempt encoding of keys that are not str, int, long, float or None. If skipkeys is True, such items are simply skipped. If ensure_ascii is true (the default), all nonASCII characters in the output are escaped with uXXX... | def FIMM(YKHO, W1FA=False, X7g_=True, zIQ5=True, gZeu=True, u2qj=False, MnRD=None, Kwd0=None, tZ2K='utf-8', WmM4=None):
YKHO.skipkeys = W1FA
YKHO.ensure_ascii = X7g_
YKHO.check_circular = zIQ5
YKHO.allow_nan = gZeu
YKHO.sort_keys = u2qj
YKHO.indent = MnRD
if Kwd0 is not None:
YKHO.it... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PjZe(YEnM, W1FA=False, X7g_=True, zIQ5=True, gZeu=True, Emd4=None, MnRD=None, Kwd0=None, tZ2K='utf-8', WmM4=None, u2qj=False, **YSA3):\n if not W1FA and X7g_ and zIQ5 and gZeu and (Emd4 is None) and (MnRD is None) and (Kwd0 is None) and (tZ2K == 'utf-8') and (WmM4 is None) and (not u2qj) and (not YSA3):\n ... | [
"0.7924769",
"0.77903694",
"0.6524399",
"0.6503693",
"0.62670636",
"0.61370224",
"0.6004708",
"0.594949",
"0.5944932",
"0.5944588",
"0.5775617",
"0.57584876",
"0.5744523",
"0.5742253",
"0.57364005",
"0.5690301",
"0.5642338",
"0.5639437",
"0.56211835",
"0.5618809",
"0.5606785"... | 0.64990914 | 4 |
Deserialize ``fp`` (a ``.read()``supporting filelike object containing a JSON document) to a Python object. If the contents of ``fp`` is encoded with an ASCII based encoding other than utf8 (e.g. latin1), then an appropriate ``encoding`` name must be specified. Encodings that are not ASCII based (such as UCS2) are not ... | def tyeH(ytgA, tZ2K=None, Emd4=None, lv0E=None, KMaT=None, OZOv=None, kBDt=None, IKkc=None, **YSA3):
return _1kr(ytgA.read(), encoding=tZ2K, cls=Emd4, object_hook=lv0E, parse_float=KMaT, parse_int=OZOv, parse_constant=kBDt, object_pairs_hook=IKkc, **YSA3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tyeH(ytgA, tZ2K=None, Emd4=None, lv0E=None, **YSA3):\n return _1kr(ytgA.read(), encoding=tZ2K, cls=Emd4, object_hook=lv0E, **YSA3)",
"def _1kr(KCHu, tZ2K=None, Emd4=None, lv0E=None, **YSA3):\n if Emd4 is None and tZ2K is None and (lv0E is None) and (not YSA3):\n return jANs.decode(KCHu)\n if ... | [
"0.7293943",
"0.65587294",
"0.65374607",
"0.6383867",
"0.6201921",
"0.5933564",
"0.5818438",
"0.5784626",
"0.57603693",
"0.5735734",
"0.56446373",
"0.5640207",
"0.5640207",
"0.55731785",
"0.55139834",
"0.54571855",
"0.5453068",
"0.5411509",
"0.5382753",
"0.53796095",
"0.53011... | 0.72969973 | 0 |
Deserialize ``s`` (a ``str`` or ``unicode`` instance containing a JSON document) to a Python object. If ``s`` is a ``str`` instance and is encoded with an ASCII based encoding other than utf8 (e.g. latin1) then an appropriate ``encoding`` name must be specified. Encodings that are not ASCII based (such as UCS2) are not... | def _1kr(KCHu, tZ2K=None, Emd4=None, lv0E=None, KMaT=None, OZOv=None, kBDt=None, IKkc=None, **YSA3):
if Emd4 is None and tZ2K is None and (lv0E is None) and (OZOv is None) and (KMaT is None) and (kBDt is None) and (IKkc is None) and (not YSA3):
return jANs.decode(KCHu)
if Emd4 is None:
Emd4 = mn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1kr(KCHu, tZ2K=None, Emd4=None, lv0E=None, **YSA3):\n if Emd4 is None and tZ2K is None and (lv0E is None) and (not YSA3):\n return jANs.decode(KCHu)\n if Emd4 is None:\n Emd4 = mnJA\n if lv0E is not None:\n YSA3['object_hook'] = lv0E\n return Emd4(encoding=tZ2K, **YSA3).decode... | [
"0.7732326",
"0.61127037",
"0.6108639",
"0.6009877",
"0.5966442",
"0.5819212",
"0.5740602",
"0.5717355",
"0.5683387",
"0.5583477",
"0.55475616",
"0.54385495",
"0.537776",
"0.5369719",
"0.53582513",
"0.5342634",
"0.53109586",
"0.5293138",
"0.52851325",
"0.5256766",
"0.52532005... | 0.81791747 | 0 |
Return the index of the column name. | def iYZ_(Ux0P, z0q4):
with open(Ux0P) as eHNT:
for WBPg in eHNT:
ZLJ_ = WBPg.rstrip().split('\t')
return ZLJ_.index(z0q4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f1pu(YKHO, z0q4: str) -> int:\n return YKHO._column_indices[z0q4]",
"def bAvW(YKHO, tcLV):\n return YKHO._columns[tcLV]",
"def X4KM(YKHO, mWFP):\n assert mWFP in YKHO.name_to_index\n return YKHO.name_to_index[mWFP]",
"def f1pu(YKHO, vt_q):\n return YKHO.column_labels.index(vt_q)",
"def B... | [
"0.8352076",
"0.8296324",
"0.78778845",
"0.7873328",
"0.76707447",
"0.7655371",
"0.76520175",
"0.7476225",
"0.7388049",
"0.72301",
"0.7154702",
"0.71135074",
"0.7095704",
"0.7084302",
"0.70835805",
"0.7029427",
"0.7018983",
"0.7018983",
"0.7003758",
"0.69128233",
"0.69123125"... | 0.7282101 | 9 |
Ensure the product is product bundle or not, check field is_pack and product_pack_ids not null | def TWW2(YKHO):
rPXJ = YKHO.product_apple_bundle
ynHz = rPXJ.product_pack_ids
YKHO.assertTrue(rPXJ.is_pack, 'Product template is a bundle pack')
YKHO.assertTrue(len(ynHz) != 0, 'Product: a product bundle should have product pack')
YKHO.assertEqual(len(ynHz), 3, 'Product: a product bundle should have... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZGJB(YKHO):\n rPXJ = YKHO.product_apple_bundle\n tB9G = rPXJ.attribute_line_ids\n YKHO.assertTrue(rPXJ.is_pack, \"Product bundle is doesn't have variants\")\n YKHO.assertEqual(len(tB9G), 0, 'Product: a product bundle should not have product variant')",
"def N4jz(YKHO, d16V):\n Ldyl = YKHO.get_... | [
"0.71575254",
"0.62919265",
"0.62767357",
"0.6086994",
"0.60214347",
"0.5789446",
"0.5702167",
"0.56271875",
"0.5619558",
"0.55911547",
"0.5573343",
"0.55681586",
"0.5524635",
"0.5517069",
"0.5486753",
"0.5453613",
"0.5451007",
"0.54371196",
"0.5426224",
"0.5425665",
"0.54062... | 0.7887591 | 0 |
Return the name of the device if any. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')",
"def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')",
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO._device.name",
"def ueYb(Y... | [
"0.89726496",
"0.89726496",
"0.8584672",
"0.8584672",
"0.8584672",
"0.850212",
"0.84946066",
"0.84203684",
"0.8395054",
"0.8395054",
"0.8378909",
"0.8316349",
"0.8307453",
"0.8161342",
"0.81572443",
"0.8089769",
"0.80879545",
"0.8074055",
"0.8007309",
"0.7998442",
"0.79543054... | 0.0 | -1 |
Return the device state attributes. | def R1i3(YKHO):
o8Kj = {}
o8Kj[PlJk] = YyUn
o8Kj[_5Iv] = Ec7s
o8Kj[TB1d] = YKHO._camera_type
return o8Kj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attrs",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._... | [
"0.93168503",
"0.92452604",
"0.92202556",
"0.92145616",
"0.92145616",
"0.9210586",
"0.9210586",
"0.9190543",
"0.9190543",
"0.9190543",
"0.9190543",
"0.9190543",
"0.9190543",
"0.9190543",
"0.9190543",
"0.9190543",
"0.9190543",
"0.9190543",
"0.9190543",
"0.9190543",
"0.91438437... | 0.8087328 | 65 |
split an iterable into chunks to save memory | def eHxA(OxJJ: Iterable, zNig: int) -> iu5r:
WhY1 = iter(OxJJ)
ZfUD = list(Hs6x.islice(WhY1, zNig))
while ZfUD:
yield ZfUD
ZfUD = list(Hs6x.islice(WhY1, zNig)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKW0(YKHO, OxJJ, zNig):\n return BfDw.split_on_chunks(OxJJ, zNig)",
"def WaSS(OxJJ, zNig):\n WhY1 = iter(OxJJ)\n while True:\n yOAJ = tuple(Hs6x.islice(WhY1, zNig))\n if len(yOAJ) == 0:\n break\n yield yOAJ",
"def eHxA(OxJJ, zNig):\n WhY1 = iter(OxJJ)\n yOAJ =... | [
"0.8511554",
"0.8224855",
"0.8179555",
"0.8087969",
"0.8084508",
"0.80512273",
"0.80118257",
"0.80011153",
"0.80011153",
"0.80011153",
"0.7993999",
"0.7954756",
"0.7866506",
"0.7843542",
"0.7784331",
"0.7740036",
"0.773274",
"0.7720725",
"0.7703208",
"0.7687204",
"0.7666663",... | 0.81905323 | 2 |
Check if var string is num. Should use it only with strings. | def z4SA(SRYB):
try:
int(SRYB)
return True
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QirG(Dhyu):\n return Myyj(Dhyu) or QpCZ(Dhyu)",
"def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except ValueError:\n return False",
"def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except ValueError:\n return False",
"def ye72(str):\n try... | [
"0.7958641",
"0.7956612",
"0.79361004",
"0.79090446",
"0.7736743",
"0.77220017",
"0.771952",
"0.77045625",
"0.7702437",
"0.7699047",
"0.7696539",
"0.7688711",
"0.765359",
"0.7636614",
"0.7621389",
"0.76209664",
"0.76209664",
"0.76209664",
"0.7620311",
"0.7599242",
"0.7584519"... | 0.83546185 | 0 |
Sets the id of this CarrierProposedAssignment. | def id(YKHO, id):
if YKHO.local_vars_configuration.client_side_validation and id is None:
raise ValueError('Invalid value for `id`, must not be `None`')
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, hbFX=None):\n if hbFX is None:\n YKHO.id = id(YKHO)\n else:\n YKHO.id = hbFX",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def id... | [
"0.70227313",
"0.6614614",
"0.6438083",
"0.6430146",
"0.6403813",
"0.63766086",
"0.63766086",
"0.63766086",
"0.634863",
"0.634863",
"0.634863",
"0.634863",
"0.634863",
"0.63077736",
"0.6281507",
"0.6281507",
"0.6281507",
"0.6281507",
"0.6281507",
"0.6281507",
"0.6281507",
"... | 0.0 | -1 |
Sets the shipping_docs of this CarrierProposedAssignment. | def ulvl(YKHO, ulvl):
if YKHO.local_vars_configuration.client_side_validation and ulvl is not None and (len(ulvl) > 40):
raise ValueError('Invalid value for `shipping_docs`, length must be less than or equal to `40`')
YKHO._shipping_docs = ulvl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WUJJ(YKHO, WUJJ):\n YKHO._shipping = WUJJ",
"def U2FH(YKHO, U2FH):\n YKHO._free_shipping = U2FH",
"def r1yl(YKHO, r1yl):\n YKHO._shipper_reference = r1yl",
"def gn8d(YKHO, gn8d):\n YKHO._default_shipping = gn8d",
"def vllj(YKHO, vllj):\n YKHO._shipping_address = vllj",
"def yUv9(YKHO, ... | [
"0.6744463",
"0.6087139",
"0.570811",
"0.54640007",
"0.5361297",
"0.5191443",
"0.51317793",
"0.5130795",
"0.5047276",
"0.5019647",
"0.4938617",
"0.48367798",
"0.47788686",
"0.47168353",
"0.46891648",
"0.466864",
"0.46050453",
"0.45823067",
"0.45809397",
"0.44549394",
"0.44093... | 0.78439474 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, Ntec):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088463",
"0.8088463",
"0.80553037",
"0.7983272",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
"0.7966844",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, Ntec):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.84568954",
"0.83923674",
"0.81447554",
"0.81407183",
"0.81326675",
"0.80941343",
"0.8092415",
"0.8092415",
"0.8092415",
"0.8085536",
"0.8085536",
"0.8076502",
"0.8076502",
"0.8066026",
"0.80427635",
"0.80427635",
"0.80427635",
"0.80427635",
"0.80427635",
"0.80427635",
"0.8... | 0.0 | -1 |
Construct a RepeatedDomain with the specified input (kernel) domain and number of repeats. | def FIMM(YKHO, MXrC, zrIJ):
YKHO.num_repeats = MXrC
YKHO._domain = zrIJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wPFE(YKHO, exwG, Rehi, zrIJ=None):\n if Rehi is None:\n Rehi = YKHO.get_new_axis_name()\n return TzWe([YKHO.copy() for YRbF in Ni9Y(exwG)], Rehi, zrIJ)",
"def wPFE(WKvO, DVQL, jDK_=None):\n return XqZS(axis=jDK_)(WKvO, DVQL)",
"def BpgY(WKvO, ZgWB):\n return hk3F(ZgWB)(WKvO)",
"def wPF... | [
"0.57387286",
"0.54704624",
"0.5405786",
"0.5364515",
"0.53023005",
"0.52789116",
"0.5085169",
"0.50566363",
"0.49996588",
"0.49146834",
"0.48994163",
"0.4891534",
"0.48751357",
"0.48550293",
"0.4852493",
"0.48360586",
"0.48120174",
"0.47808582",
"0.47407442",
"0.4721467",
"0... | 0.6504928 | 0 |
Return the number of spatial dimensions of the kernel domain. | def tpio(YKHO):
return YKHO._domain.dim | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F5LK(YKHO):\n return len(YKHO._get_observation_np())",
"def lkaz(YKHO):\n DbyF = YKHO.data.shape\n return DbyF[1]",
"def T8bZ(YKHO):\n JzsL = YKHO.all_variables()\n if not JzsL:\n return 0\n return oyIN.prod([Ty9i.size for Ty9i in JzsL])",
"def uGGj(YKHO):\n return YKHO._dimen... | [
"0.73848426",
"0.7381147",
"0.7352471",
"0.72833985",
"0.7278738",
"0.7278738",
"0.72706336",
"0.72483623",
"0.72472656",
"0.72399867",
"0.72273445",
"0.7227136",
"0.7226565",
"0.71597886",
"0.7158675",
"0.71023047",
"0.707447",
"0.70661587",
"0.7065379",
"0.7061803",
"0.7054... | 0.0 | -1 |
r"""Check if a point is inside the domain/on its boundary or outside. | def Y4Mt(YKHO, LTIa):
return all([YKHO._domain.check_point_inside(AU8u) for AU8u in LTIa]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SyhA(YKHO, WKvO, LVAh):\n return abs(WKvO - YKHO._x_position) <= YKHO._x_length / 2 and abs(LVAh - YKHO._y_position) <= YKHO._y_length / 2",
"def lyjE(YKHO, AU8u):\n return YKHO.upperleft[0] <= AU8u[0] <= YKHO.upperright[0] and YKHO.upperleft[1] <= AU8u[1] <= YKHO.bottomleft[1]",
"def lyjE(YKHO, AU8u... | [
"0.7733035",
"0.76522005",
"0.76522005",
"0.75808537",
"0.7537005",
"0.74708223",
"0.74178964",
"0.738179",
"0.738179",
"0.73303086",
"0.7317933",
"0.72900873",
"0.72799176",
"0.7249871",
"0.72477007",
"0.7246835",
"0.72228026",
"0.72186345",
"0.71271574",
"0.7101021",
"0.707... | 0.7103086 | 19 |
Return a list of ClosedIntervals representing a bounding box for this domain. | def JcC1(YKHO):
return YKHO._domain.get_bounding_box() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmnP(YKHO):\n RKD7.debug(str(tq_1.stack()[1][3]) + '--> OC.get_bounds()')\n BQGg = EtPv\n h3cg = EtPv\n bYzl = -EtPv\n Z3uP = -EtPv\n for YEnM in YKHO.get_list():\n try:\n F9oC, A3LH, p_MF, mlRm = YEnM.bounds()\n BQGg = min([BQGg, F9oC])\n h3cg = min([h... | [
"0.71748376",
"0.67746264",
"0.6704462",
"0.6520981",
"0.64957726",
"0.6494311",
"0.64898074",
"0.6469474",
"0.64590883",
"0.6459039",
"0.64575493",
"0.6436007",
"0.636689",
"0.63554573",
"0.6353764",
"0.6281879",
"0.6275346",
"0.6233851",
"0.6216193",
"0.61879647",
"0.616234... | 0.56381714 | 88 |
assigne liste des mots clefs(liste de texte) | def n0AK(YKHO, FQNo: [str]):
YKHO.mot_clef = FQNo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SjTr(YHzr: List[str]) -> x1iM[str]:\n fAFi = vIwR.punctuation + '«»°' + vIwR.digits + vIwR.whitespace\n YRbF = 0\n while YRbF < len(YHzr):\n if YHzr[YRbF] in fAFi:\n del YHzr[YRbF]\n continue\n YRbF += 1\n return YHzr",
"def F67d(z_aV):\n hUVZ = []\n for ... | [
"0.6159967",
"0.60047764",
"0.59133774",
"0.58610797",
"0.5831696",
"0.5818759",
"0.57822216",
"0.5767478",
"0.5758132",
"0.57293713",
"0.57079726",
"0.570482",
"0.56933457",
"0.56893224",
"0.56707644",
"0.56526357",
"0.5630538",
"0.56285894",
"0.56007946",
"0.5590737",
"0.55... | 0.0 | -1 |
Plot histogram showing distribution of error. | def f52L(P1dF, mWFP, rYO3):
JBMS = P1dF.mean()
M1Jx = P1dF.std()
PtQX = P1dF.max()
vELP = P1dF.min()
eQSh = 'Mean = %.5f\nStd = %.5f\nMax = %.5f\nMin = %.5f' % (JBMS, M1Jx, PtQX, vELP)
leAC = 'Distribution of %s Errors in Final Policy' % mWFP
QrM1.figure()
QrM1.hist(P1dF)
QrM1.title(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mBbd(YKHO):\n N77f = YKHO.min_list[:, 0] // 100\n QrM1.hist(N77f, density=True)\n QrM1.xlabel(YKHO.list_name + '_loss//100')\n QrM1.ylabel('Frequency')\n QrM1.title('Distribution of ' + YKHO.list_name + '_loss (' + str(YKHO.rep) + ' iterations)')\n QrM1.savefig('img/stats/' + YKHO.list_name +... | [
"0.7070574",
"0.6814539",
"0.6747597",
"0.6467419",
"0.64446235",
"0.6435879",
"0.64288515",
"0.6424587",
"0.63492936",
"0.63145113",
"0.62904435",
"0.6268153",
"0.62652314",
"0.6195938",
"0.61867166",
"0.61658627",
"0.61658627",
"0.61658627",
"0.614358",
"0.6128955",
"0.6115... | 0.7280739 | 0 |
Returns ``True`` iff this represents a sequence node. | def FDfP(YKHO) -> bool:
return isinstance(YKHO.yaml_node, eJb6.SequenceNode) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FDfP(ZfUD):\n return not hasattr(ZfUD, 'strip') and (hasattr(ZfUD, '__getitem__') or hasattr(ZfUD, '__iter__'))",
"def xa14(YKHO, aWuw):\n try:\n return YKHO.seq == aWuw.seq\n except AttributeError:\n return YKHO.seq == aWuw",
"def cxO3(YEnM):\n return isinstance(YEnM, bdIy)",
"... | [
"0.6775892",
"0.6482359",
"0.6443539",
"0.6421949",
"0.63702387",
"0.62746257",
"0.62161356",
"0.6149324",
"0.6131712",
"0.6076955",
"0.6064164",
"0.60340804",
"0.6000043",
"0.5990869",
"0.597421",
"0.59481806",
"0.5928189",
"0.59117824",
"0.5877819",
"0.584987",
"0.5818856",... | 0.8480926 | 0 |
Whether the given attribute exists and has a compatible type. Returns true iff the attribute exists and is an instance of the given type. Matching between types passed as typ and | def anZj(YKHO, xC3W: str, cM24: Optional[Type]) -> bool:
if not YKHO.has_attribute(xC3W):
return False
fRep = YKHO.get_attribute(xC3W).yaml_node
if cM24 in UpbC:
TZ9E = UpbC[cM24]
return YWvJ(str, fRep.tag) == TZ9E
elif cM24 == list:
return isinstance(fRep, eJb6.SequenceN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la8W(YKHO, hkS8: Optional[str]=None) -> bool:\n try:\n YKHO.validate_type(hkS8)\n except TypeError:\n return False\n return True",
"def hHld(YKHO, hkS8):\n if hkS8 is None:\n return False\n if hkS8.tablename and hkS8.tablename != YKHO.tablename:\n return False\n ... | [
"0.7414183",
"0.6487584",
"0.6484442",
"0.6371943",
"0.62810826",
"0.6266043",
"0.6219949",
"0.6164317",
"0.60901755",
"0.60262185",
"0.60111713",
"0.59359443",
"0.5924008",
"0.59112006",
"0.59112006",
"0.5900771",
"0.586003",
"0.5858145",
"0.582538",
"0.5809024",
"0.57873213... | 0.7961611 | 0 |
Converts a sequence attribute to a map. This function takes an attribute of this Node that is a sequence of mappings and turns it into a mapping of mappings. It assumes that each of the mappings in the original sequence has an attribute containing a unique value, which it will use as a key for the new outer mapping. An... | def HTce(YKHO, xC3W: str, gx4G: str, rDvf: Optional[str]=None, U3Fm: Optional[bool]=True) -> None:
if not YKHO.has_attribute(xC3W):
return
fRep = YKHO.get_attribute(xC3W)
if not fRep.is_sequence():
return
_YjI = fRep.yaml_node.start_mark
SFc5 = fRep.yaml_node.end_mark
lzid = set(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSQZ(YKHO, xC3W: str, gx4G: str, rDvf: Optional[str]=None) -> None:\n if not YKHO.has_attribute(xC3W):\n return\n fRep = YKHO.get_attribute(xC3W)\n if not fRep.is_mapping():\n return\n Qj8D = list()\n for sxdw, sarX in fRep.yaml_node.value:\n if not isinstance(sarX, eJb6.Map... | [
"0.720468",
"0.7083137",
"0.6812432",
"0.63154966",
"0.59632903",
"0.5922722",
"0.5853591",
"0.5813682",
"0.58105356",
"0.57916176",
"0.5718592",
"0.5674626",
"0.567138",
"0.56451875",
"0.56383806",
"0.56383806",
"0.5611101",
"0.55853736",
"0.55699277",
"0.5558416",
"0.555115... | 0.78979546 | 0 |
Finds an attribute's index in the yaml_node.value list. | def OHf6(YKHO, xC3W: str) -> h8nf[int]:
b5ld = None
for YRbF, (sxdw, bGrB) in enumerate(YKHO.yaml_node.value):
if sxdw.value == xC3W:
b5ld = YRbF
break
return b5ld | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vn7Z(xC3W, azoT):\n for YRbF in range(14):\n if xC3W == azoT[YRbF]:\n return YRbF",
"def R1R_(nPrm, CECP, xC3W):\n Mljr = nPrm['stimuli'][CECP]['dimnames']\n for a7Gj, Zkyx in enumerate(Mljr):\n if Zkyx == xC3W:\n return a7Gj\n raise KeyError('Attribute {} for ... | [
"0.7036254",
"0.69291824",
"0.6626064",
"0.6451901",
"0.640627",
"0.63049465",
"0.6201203",
"0.6087007",
"0.60067385",
"0.58729714",
"0.5822153",
"0.57865816",
"0.57865816",
"0.57728976",
"0.57261354",
"0.57202137",
"0.57089096",
"0.57067335",
"0.5682343",
"0.5678663",
"0.567... | 0.76638424 | 0 |
Require an attribute on the node to not have a given value. This requires the attribute to exist, and to not have the given value. | def BgI7(YKHO, xC3W: str, BWXx: Union[int, str, float, bool, None]) -> None:
YKHO.require_mapping()
EmMj = False
for sxdw, sarX in YKHO.yaml_node.value:
if sxdw.tag == 'tag:yaml.org,2002:str' and sxdw.value == xC3W:
EmMj = True
Q6kx = o7DN(sarX)
if not Q6kx.is_sca... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qYwK(YKHO, xC3W: str, BWXx: Union[int, str, float, bool, None]) -> None:\n YKHO.require_mapping()\n EmMj = False\n for sxdw, sarX in YKHO.yaml_node.value:\n if sxdw.tag == 'tag:yaml.org,2002:str' and sxdw.value == xC3W:\n EmMj = True\n Q6kx = o7DN(sarX)\n if not... | [
"0.65751064",
"0.65005225",
"0.63015485",
"0.6177203",
"0.61516255",
"0.6133649",
"0.6101392",
"0.5974399",
"0.5958457",
"0.5927537",
"0.5901931",
"0.58238953",
"0.581339",
"0.58058035",
"0.57940775",
"0.5782123",
"0.5751083",
"0.5701721",
"0.5692893",
"0.5649074",
"0.5617267... | 0.75786364 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
print(Bcwd)
QrM1.imshow(Bcwd, interp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.81942594",
"0.80949026",
"0.8028581",
"0.8018849",
"0.79934716",
"0.7990885",
"0.7980801",
"0.79750925",
"0.7960907",
"0.79557455",
"0.79372376",
"0.7934255",
"0.79340357",
"0.79309034",
"0.7925931",
"0.7924125",
"0.79232645",
"0.7922545",
"0.79224193",
"0.79218626",
"0.79... | 0.7828554 | 81 |
Verify if the requested collapse is legal fro a triangle mesh. | def K5q2(rR8k, P6bq, Ty9i, fDde=False):
if not fDde:
if rR8k.is_vertex_on_boundary(Ty9i) or rR8k.is_vertex_on_boundary(P6bq):
return False
for cHk7 in rR8k.halfedge[P6bq]:
if cHk7 in rR8k.halfedge[Ty9i]:
cCAS = rR8k.halfedge[P6bq][Ty9i]
if cCAS != rR8k.halfedg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(YKHO):\n if len(YKHO.exterior) < 3:\n return False\n return YKHO.to_shapely_polygon().is_valid",
"def Ua8H(YKHO, WKvO, *qIxc):\n if YKHO._special and WKvO.determinant() != 1:\n raise TypeError('matrix must have determinant one')\n vuvg = YKHO.invariant_bilinear_form()\n if W... | [
"0.5980599",
"0.58915365",
"0.58741415",
"0.58708334",
"0.5822911",
"0.5791064",
"0.5685197",
"0.5659432",
"0.5616843",
"0.55770415",
"0.55677634",
"0.55509025",
"0.55356765",
"0.5532787",
"0.5528641",
"0.5527729",
"0.54898053",
"0.5481598",
"0.54696536",
"0.5461385",
"0.5460... | 0.6624501 | 0 |
Checks the lifetimes of all obstacles currently in memory to see if any have died. If any obstacles have reached a lifetime of zero (meaning they have been absent from ``obstacle_lifetime`` frames) they are removed from the obstacle list | def bXmL(yjQt):
for fhZS in yjQt:
fhZS.lifetime -= 1
if fhZS.lifetime == 0:
yjQt.remove(fhZS)
print(fhZS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ivGM(YKHO):\n for YRbF, NTDk in enumerate(YKHO.missile_list):\n if NTDk.out_of_bounds(YKHO.world):\n del YKHO.missile_list[YRbF]\n YKHO.gameevents.add('bounds_remove', 'missile')\n for YRbF, cbwj in enumerate(YKHO.shell_list):\n if cbwj.out_of_bounds(YKHO.world):\n ... | [
"0.64343715",
"0.6409492",
"0.60506034",
"0.59842384",
"0.5793107",
"0.5777674",
"0.57635856",
"0.5731944",
"0.5731804",
"0.57115096",
"0.5699845",
"0.5683519",
"0.56752443",
"0.56432754",
"0.5641558",
"0.56411207",
"0.55879456",
"0.55014884",
"0.5500536",
"0.5484237",
"0.545... | 0.7803291 | 0 |
Calculate pressure from ycoordinate. | def n3SD(LVAh):
XP5J = oyIN.exp(-LVAh)
return XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJ2p(YKHO):\n YKHO._read_temperature()\n Yh3e = YKHO._read24(S7ov) / 16\n CIn9 = float(YKHO._t_fine) / 2.0 - 64000.0\n AhCl = CIn9 * CIn9 * YKHO._pressure_calib[5] / 32768.0\n AhCl = AhCl + CIn9 * YKHO._pressure_calib[4] * 2.0\n AhCl = AhCl / 4.0 + YKHO._pressure_calib[3] * 65536.0\n ExCh ... | [
"0.65667474",
"0.63158137",
"0.631088",
"0.627763",
"0.62507606",
"0.6092104",
"0.6059851",
"0.6043016",
"0.59535044",
"0.59435827",
"0.5929539",
"0.59232265",
"0.5905908",
"0.58699447",
"0.5782434",
"0.5768621",
"0.5742784",
"0.5727153",
"0.57255083",
"0.57211375",
"0.570741... | 0.6401572 | 1 |
Returns the base farmer reward at a certain block height. The base fee reward is 1/8 of total block reward Returns the coinbase reward at a certain block height. These halving events will not be hit at the exact times (3 years, etc), due to fluctuations in difficulty. They will likely come early, if the network space a... | def CFrn(H2v2: uint32) -> oevr:
if H2v2 == 0:
return oevr(int(1 / 8 * 21000000 * K78e))
elif H2v2 < 3 * J8VM:
return oevr(int(1 / 8 * 2 * K78e))
elif H2v2 < 6 * J8VM:
return oevr(int(1 / 8 * 1 * K78e))
elif H2v2 < 9 * J8VM:
return oevr(int(1 / 8 * 0.5 * K78e))
elif H2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CFrn(H2v2: uint32) -> oevr:\n if H2v2 == 0:\n return oevr(int(1 / 10 * 21000062 * e43x))\n elif H2v2 < 3 * J8VM:\n return oevr(int(1 / 10 * 20 * e43x))\n elif H2v2 < 6 * J8VM:\n return oevr(int(1 / 10 * 10 * e43x))\n elif H2v2 < 9 * J8VM:\n return oevr(int(1 / 10 * 5 * e... | [
"0.7641979",
"0.67641103",
"0.6175415",
"0.6112026",
"0.59947336",
"0.59317964",
"0.5906596",
"0.5788265",
"0.5610718",
"0.5589029",
"0.5584933",
"0.5560157",
"0.55037165",
"0.54936564",
"0.5431093",
"0.5423161",
"0.54177886",
"0.53681",
"0.53593916",
"0.53413624",
"0.5321954... | 0.76290315 | 1 |
Takes an item as a parameter and inserts it into the 0th index of the list that is representing the Deque. The runtime is linear, or O(n), because every time you insert into the front of a list, all the other items in the list need to shift one position to the right. | def dZVG(YKHO, ZfUD):
YKHO.items.insert(0, ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZK_O(YKHO, ZfUD):\n YKHO.sentinel.insertAfter(ZfUD)\n YKHO.N += 1",
"def wbHw(YKHO, ZfUD):\n YKHO._items.insert(0, ZfUD)",
"def jvNa(gGq6, ZfUD):\n Esd_ = o7DN(ZfUD, None)\n if _OiT(gGq6):\n gGq6.front = Esd_\n gGq6.back = Esd_\n else:\n gGq6.back.next = Esd_\n ... | [
"0.74772114",
"0.71903616",
"0.7164885",
"0.7092206",
"0.7046138",
"0.70150757",
"0.7004098",
"0.6971647",
"0.696565",
"0.69649714",
"0.692787",
"0.6920665",
"0.6903612",
"0.6897061",
"0.6876932",
"0.68563926",
"0.6834835",
"0.6816592",
"0.67839766",
"0.67836297",
"0.67836297... | 0.6990222 | 7 |
Returns the value found at the 0th index of the list, which represents the front of the Deque. The runtime is constant because all we're doing is indexing into a list. | def vYJ5(YKHO):
if YKHO.items:
return YKHO.items[0]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y9BR(YKHO):\n if YKHO.count == 0:\n return -1\n return YKHO.queue[YKHO.headIndex]",
"def TA6u(YKHO) -> int:\n if YKHO.size == 0:\n return -1\n if YKHO.frontIndex == YKHO.capacity - 1:\n return YKHO.deque[0]\n return YKHO.deque[YKHO.frontIndex + 1]",
"def y9BR(YKHO):\n ... | [
"0.7808785",
"0.77438754",
"0.77421767",
"0.7723376",
"0.7712832",
"0.7712832",
"0.7711708",
"0.75888807",
"0.7572023",
"0.75459397",
"0.75434506",
"0.75129974",
"0.74928254",
"0.7479616",
"0.74282086",
"0.741268",
"0.73637325",
"0.73514116",
"0.7345181",
"0.7327259",
"0.7311... | 0.71832377 | 24 |
Returns the value found at the 1st, or last, index. The runtime is constant because all we're doing is indexing into a list. | def N7mQ(YKHO):
if YKHO.items:
return YKHO.items[-1]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(qnba, kS1Y):\n if kS1Y >= len(qnba):\n return None\n return qnba[kS1Y]",
"def _fHD(d6pt, qw7D):\n if len(qw7D) == 0:\n return None\n elif d6pt >= 0 and d6pt < len(qw7D):\n return qw7D[d6pt]\n return qw7D[d6pt % len(qw7D)]",
"def OP2O(YKHO, d6pt):\n DpUl = YKHO.fi... | [
"0.75849",
"0.713405",
"0.70764416",
"0.7067748",
"0.6927484",
"0.6900818",
"0.68979496",
"0.68834436",
"0.6834518",
"0.6829196",
"0.68202806",
"0.6787368",
"0.677742",
"0.6730051",
"0.6714962",
"0.6664381",
"0.6615653",
"0.6600296",
"0.6568302",
"0.65640825",
"0.6551074",
... | 0.0 | -1 |
Initialize viewport with initial Face rotation and position. | def FIMM(YKHO, zNig):
YKHO.__size = zNig
YKHO.__height, YKHO.__width = YKHO.__size
YKHO.__output_image = VNqG(YKHO.__width * YKHO.__height * 4, dtype='f')
YKHO.__light = None
YKHO.__face = None
YKHO.__model_matrix = VNqG((4, 4), dtype='f')
YKHO.__light_matrix = VNqG((4, 4), dtype='f')
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O4oG(YKHO):\n YKHO.add_uniform('viewport', vartype='float', ndim=2, data=(1.0, 1.0))\n YKHO.add_uniform('window_size', vartype='float', ndim=2)\n if YKHO.constrain_ratio:\n YKHO.add_vertex_main('gl_Position.xy = gl_Position.xy / viewport;', position='last', name='viewport')",
"def NokZ(YKHO):... | [
"0.7020884",
"0.6175097",
"0.61723566",
"0.6149855",
"0.61317664",
"0.61283696",
"0.6105559",
"0.60647255",
"0.60593605",
"0.60478395",
"0.60478395",
"0.60478395",
"0.60415",
"0.602421",
"0.60181725",
"0.6000403",
"0.5950733",
"0.5863496",
"0.58586884",
"0.58458847",
"0.58416... | 0.52276856 | 91 |
Get rotation matrix from specific point of view and scale. | def YJsE(W0Eb, LyOL):
assert len(W0Eb) == 3
rNUd()
FCxj(-LyOL, LyOL, -LyOL, LyOL, -4 * LyOL, 4 * LyOL)
WKvO, LVAh, epBp = W0Eb
VkF7(WKvO, LVAh, epBp, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0)
return qw7D(zC3e(sQtE), dtype='f') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X3oE(YKHO, hLRM, YylR, NXpY):\n bULF = XC5k.getRotationMatrix2D(hLRM, YylR * 180 / oyIN.pi, NXpY)\n return bULF",
"def lRGx(SZFh):\n DWJ0 = SZFh.rotation\n Rci7 = SZFh.location\n AFLh = oyIN.cos(oyIN.radians(DWJ0.yaw))\n HLYT = oyIN.sin(oyIN.radians(DWJ0.yaw))\n BKgc = oyIN.cos(oyIN.radi... | [
"0.6760221",
"0.6702179",
"0.6702179",
"0.6646584",
"0.6589252",
"0.6522939",
"0.6482538",
"0.6213437",
"0.61767185",
"0.61677426",
"0.61467403",
"0.6135659",
"0.609653",
"0.60869116",
"0.60733074",
"0.6066591",
"0.60479957",
"0.60175145",
"0.6001089",
"0.5994596",
"0.5945654... | 0.5568591 | 58 |
Initialisation of ARD on the weights | def ELQ0(YKHO):
Cwt5 = [KCHu.zeros(YKHO.K) for r8hN in range(YKHO.M)]
for r8hN in range(YKHO.M):
jbXL = uV6J.rvs(p=0.5, size=YKHO.K)
jbXL[jbXL == 1] = 1.0
jbXL[jbXL == 0] = 100000.0
Cwt5[r8hN] = jbXL
return Cwt5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0Lv(YKHO):\n pass",
"def FIMM(YKHO, _mSQ):\n YKHO._weights = _mSQ",
"def vB93(YKHO):\n YKHO.w = oyIN.random.randn(YKHO.D) / oyIN.sqrt(YKHO.D)",
"def CtUP(YKHO):\n YKHO.w = -1 + 2 * oyIN.random.rand(YKHO.num_of_inputs)\n YKHO.w0 = -1 + 2 * oyIN.random.rand()",
"def vB93(YKHO):\n YKHO.... | [
"0.72505295",
"0.711942",
"0.71062124",
"0.70970845",
"0.7046074",
"0.70379",
"0.7028717",
"0.7021893",
"0.7014068",
"0.6998069",
"0.697517",
"0.696841",
"0.696841",
"0.696841",
"0.6962236",
"0.6951577",
"0.6915964",
"0.6867122",
"0.68590575",
"0.6816859",
"0.6798318",
"0.6... | 0.0 | -1 |
Respond to a request for a specific API version. | def nUHY(YKHO, QePW):
na1r.debug('request: %s ' % QePW)
nPrm = ya8a['1.0']
na1r.debug('data: %s ' % nPrm)
na1r.debug('conf: sections:%s' % Fv2L.sections())
Ty9i = moxu(nPrm['id'], nPrm['status'], QePW.application_url, nPrm['updated'])
return mJn7.Result(up7Z(Ty9i)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, DpZH):\n dDa7 = False\n aWgI = YKHO._create_api_spec(DpZH)\n for NDOW in wk5E.appbuilder.baseviews:\n if isinstance(NDOW, DkcB) and NDOW.version == DpZH:\n NDOW.add_api_spec(aWgI)\n dDa7 = True\n if dDa7:\n return YKHO.response(200, **aWgI.to_dict())\n... | [
"0.771236",
"0.6951032",
"0.69210196",
"0.68890315",
"0.67442405",
"0.6709198",
"0.67004126",
"0.66128737",
"0.65911984",
"0.65547436",
"0.64480793",
"0.6417986",
"0.6415046",
"0.6402901",
"0.62554765",
"0.6216004",
"0.620213",
"0.6191911",
"0.61596644",
"0.61003375",
"0.6089... | 0.5746528 | 69 |
This starts a movie playing. | def lEFA(Ux0P, zNig=None, CMPP=0):
if j96d.game.less_updates:
return
global default_size
if zNig is not None:
YA0A = zNig
Ux0P = [Ux0P]
if CMPP == -1:
lGbz = True
else:
lGbz = False
Ux0P = Ux0P * (CMPP + 1)
j96d.audio.music.play(Ux0P, channel='movie', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uuQ6(YKHO, nUeQ):\n btfg = Hy7s.path.dirname(nUeQ)\n gIsw = Hy7s.path.basename(nUeQ)\n YKHO.Media = YKHO.vlc_instance.media_new(str(Hy7s.path.join(btfg, gIsw)))\n YKHO.vlc_media_player_instance.set_media(YKHO.Media)\n YKHO.vlc_media_player_instance.set_xwindow(YKHO.get_handle())\n YKHO.play()... | [
"0.6928271",
"0.68753964",
"0.6810379",
"0.67979765",
"0.6776151",
"0.67657876",
"0.6754822",
"0.672618",
"0.65975463",
"0.659223",
"0.65790725",
"0.6543319",
"0.65346766",
"0.65223193",
"0.6488615",
"0.64360607",
"0.6327664",
"0.6299091",
"0.6284722",
"0.62824196",
"0.626308... | 0.7057459 | 0 |
Called to update the video playback. Returns true if a video refresh is needed, false otherwise. | def _eFN():
if not kluH():
return 0
I7j_ = j96d.audio.audio.pss
if I7j_.needs_alloc():
if j96d.display.video.fullscreen and j96d.display.draw.fullscreen_surface:
C5Es = j96d.display.draw.fullscreen_surface
else:
wpBh()
C5Es = j96d.display.scale.rea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sJyH(YKHO):\n UEij = YKHO.communications.get_video()\n if YKHO.__video_status['last_video_streaming'] != UEij:\n YKHO.__video_status['last_video_streaming'] = UEij\n YKHO.__live_video_stream(UEij)",
"def eIGz(YKHO):\n if YKHO.isLoaded() == False:\n return\n YKHO.isPlaying = T... | [
"0.6688936",
"0.658644",
"0.6539732",
"0.6521593",
"0.6362628",
"0.63457036",
"0.6297211",
"0.62862444",
"0.6277879",
"0.6249531",
"0.62054175",
"0.61760485",
"0.6166755",
"0.6026714",
"0.5937955",
"0.59339017",
"0.59078604",
"0.5877138",
"0.5855286",
"0.58499956",
"0.5829884... | 0.0 | -1 |
Convert class labels from scalars to onehot vectors. | def kPpE(lexL, jTqs, vZKM=1):
if vZKM == 1:
svPB = lexL.shape[0]
whV7 = oyIN.arange(svPB) * jTqs
xZkh = oyIN.zeros((svPB, jTqs), dtype=oyIN.int32)
xZkh.flat[whV7 + lexL.ravel()] = 1
return xZkh
elif vZKM == 2:
svPB = lexL.shape[0]
CIl3 = lexL.shape[1]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_categorical(Crrw, KndY)",
"def KLLm(Crrw, KndY=None):\n PnsN = nMvt.utils.to_categorical(Crrw, KndY)\n return PnsN",
"def LQDo(Crrw: torch.Tensor, jTqs: int) -> ht2j.Tensor:\n if len(Crrw.size()) == 1:\n return vuvg.one_hot(Crrw, jTqs).float(... | [
"0.82503515",
"0.8076697",
"0.8051534",
"0.797685",
"0.7907419",
"0.7899711",
"0.7892668",
"0.7870854",
"0.7849299",
"0.7849299",
"0.7826309",
"0.78255224",
"0.77681756",
"0.77642655",
"0.77528447",
"0.77528447",
"0.77528447",
"0.7748242",
"0.77435005",
"0.7736248",
"0.772139... | 0.69234896 | 100 |
Converts the passed ``torch.Tensor`` into an MPI compatible memory view. | def nz8D(Emd4, YEnM) -> Gm6g.memory:
return Gm6g.memory.fromaddress(YEnM.data_ptr(), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def endw(WKvO):\n if WKvO is None:\n return WKvO\n return WKvO.cpu().detach().numpy()",
"def Vvzm(vhpA):\n if zlAn.is_dense(vhpA):\n r8hN = vhpA.detach().cpu().numpy()\n if r8hN.ndim == 0:\n r8hN = r8hN.item()\n elif zlAn.is_sparse(vhpA):\n r8hN = zlAn.sparse_te... | [
"0.6040068",
"0.5859078",
"0.57170117",
"0.56398106",
"0.55598223",
"0.55364287",
"0.55121785",
"0.55109876",
"0.5441032",
"0.5419318",
"0.54167664",
"0.5393284",
"0.53805405",
"0.5341093",
"0.52922857",
"0.52922857",
"0.52727497",
"0.5244679",
"0.52280575",
"0.5225818",
"0.5... | 0.6596614 | 0 |
Start time. Returns datetime.datetime Start time. | def hUoD(YKHO):
try:
return YKHO['datetime_1']
except TypeError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWox(YKHO):\n return YKHO.time[0].to_pydatetime()",
"def SWox(YKHO):\n return YKHO._start_time",
"def SWox(YKHO):\n return YKHO._start_time",
"def SWox(YKHO):\n return YKHO._start_time",
"def SWox(YKHO):\n return YKHO._start_time",
"def SWox(YKHO):\n return YKHO._start_time",
"def... | [
"0.82458675",
"0.81831324",
"0.81831324",
"0.81831324",
"0.81831324",
"0.81831324",
"0.81831324",
"0.81831324",
"0.81831324",
"0.8116447",
"0.8112509",
"0.80959326",
"0.8085424",
"0.8059318",
"0.80205154",
"0.8014188",
"0.8002273",
"0.7994192",
"0.7990335",
"0.7987373",
"0.79... | 0.0 | -1 |
End time. Returns datetime.datetime End time. | def AFNh(YKHO):
try:
return YKHO['datetime_2']
except TypeError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n return YKHO._end_time",
"def C7pn(YKHO):\n return... | [
"0.8302829",
"0.8302829",
"0.8302829",
"0.8302829",
"0.8302829",
"0.8302829",
"0.8234296",
"0.81941664",
"0.8157635",
"0.81356686",
"0.8125194",
"0.8101188",
"0.8071822",
"0.80627143",
"0.8023915",
"0.80111617",
"0.7864001",
"0.7823088",
"0.7756086",
"0.7695986",
"0.7566802",... | 0.0 | -1 |
Unified time. Returns datetime.datetime Unified time. | def ITS7(YKHO):
try:
if YKHO.single_date:
return YKHO.stime
else:
return YKHO.stime + (YKHO.etime - YKHO.stime) / 2
except TypeError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qcWV(YKHO):\n ITS7 = YKHO.time()\n if ITS7 is None or ITS7 < 0 or ITS7 >= 24:\n ITS7 = 0\n try:\n Csk6 = qcWV(YKHO.year(), YKHO.month(), YKHO.day()) + fCoM(hours=ITS7)\n return Csk6\n except:\n return",
"def qcWV(YKHO):\n ITS7 = YKHO.time()\n if ITS7 is None or I... | [
"0.7089799",
"0.70536745",
"0.66383517",
"0.6633456",
"0.6552339",
"0.6519578",
"0.64865863",
"0.6485815",
"0.6485173",
"0.6440672",
"0.64395326",
"0.6403102",
"0.639547",
"0.63868666",
"0.63580936",
"0.6344479",
"0.63436735",
"0.633635",
"0.6294259",
"0.62863344",
"0.6257093... | 0.59365654 | 49 |
Encodes a datetime.datetime/datetime.date object into a string. The format is selected by the input type. | def mtM3(YKHO, eGVy):
if isinstance(eGVy, oyIN.datetime64):
eGVy = rLdf.Timestamp(eGVy).to_pydatetime()
if isinstance(eGVy, JRYC.datetime):
return eGVy.strftime('%Y%m%dT%H%M%S')
elif isinstance(eGVy, JRYC.date):
return eGVy.strftime('%Y%m%d')
else:
return eGVy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Net5(YEnM: 'date') -> str:\n return YEnM.isoformat()",
"def JPpj(YEnM):\n if isinstance(YEnM, qcWV.date):\n return YEnM.isoformat()\n elif isinstance(YEnM, SOnQ.Decimal):\n return float(YEnM)",
"def JW5R(YKHO, YEnM):\n if isinstance(YEnM, qcWV.datetime):\n return YEnM.isofo... | [
"0.71302384",
"0.7109175",
"0.70197827",
"0.68770516",
"0.6831181",
"0.67757094",
"0.6583432",
"0.6481591",
"0.6468879",
"0.64643687",
"0.64485806",
"0.63885844",
"0.63885844",
"0.63756126",
"0.6359516",
"0.63388795",
"0.6336358",
"0.63352734",
"0.63190234",
"0.63190234",
"0.... | 0.7274154 | 0 |
Create a batch data loader from the given data set. Using PyTorch Datasets and DataLoaders is especially useful when working with large datasets, which cannot be stored in the computer memory (RAM) all at once. | def nfMm(wDWA: Union[IterableDataset, Dataset], Ep8u: bool, hXNa=False) -> pVAc:
return pVAc(wDWA, batch_size=Ep8u, collate_fn=lambda WKvO: WKvO, shuffle=hXNa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QUwG(__n6, Ep8u, hXNa, B2fa):\n DWkG = pVAc(GQfL(__n6), batch_size=Ep8u, shuffle=hXNa, **B2fa)\n return DWkG",
"def foDo(Ep8u, XxFT, QIRx):\n Pa1c = ht2j.utils.data.DataLoader(XxFT, batch_size=Ep8u, sampler=QIRx, num_workers=4)\n return Pa1c",
"def UgZ6(nPrm):\n Pha6 = ht2j.LongTensor([_dZy[... | [
"0.77821296",
"0.7729841",
"0.7583086",
"0.7543602",
"0.7505361",
"0.73916286",
"0.7378085",
"0.73509383",
"0.7318953",
"0.7256234",
"0.72534716",
"0.7249414",
"0.7178658",
"0.71183634",
"0.70683247",
"0.70636624",
"0.70601434",
"0.7057616",
"0.70348173",
"0.7028938",
"0.7028... | 0.83228797 | 0 |
always returns the first element of deque | def MJYP(Csk6):
while True:
try:
yield Csk6.popleft()
except IndexError:
break | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n return YKHO.deque[0]",
"def vYJ5(YKHO):\n if YKHO.is_empty() or YKHO.data_[YKHO.front_] == None:\n raise IndexError\n return YKHO.data_[YKHO.front_]",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._data[YKHO._front]",
"def c... | [
"0.84488004",
"0.79360116",
"0.7746329",
"0.76808614",
"0.7645211",
"0.7639249",
"0.762313",
"0.749628",
"0.7492738",
"0.7457152",
"0.741343",
"0.74087065",
"0.7353525",
"0.73528373",
"0.73248875",
"0.7298108",
"0.7284449",
"0.725862",
"0.72445774",
"0.72322553",
"0.7222274",... | 0.0 | -1 |
Sets the portal_id of this DomainCdnConfig. | def uuxA(YKHO, uuxA):
if YKHO.local_vars_configuration.client_side_validation and uuxA is None:
raise ValueError('Invalid value for `portal_id`, must not be `None`')
YKHO._portal_id = uuxA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u3Dm(YKHO, u3Dm):\n if YKHO.local_vars_configuration.client_side_validation and u3Dm is None:\n raise ValueError('Invalid value for `cdn_id`, must not be `None`')\n YKHO._cdn_id = u3Dm",
"def TvXf(YKHO, TvXf):\n YKHO._domain_id = TvXf",
"def V_9M(YKHO, TbZN):\n YKHO.ssc_id = TbZN",
"de... | [
"0.55934244",
"0.51600987",
"0.5107088",
"0.49715006",
"0.4926963",
"0.4926963",
"0.48706025",
"0.4793998",
"0.4793998",
"0.4751209",
"0.4733723",
"0.47114223",
"0.47056538",
"0.4692235",
"0.4685643",
"0.46855214",
"0.46855214",
"0.4683949",
"0.4674446",
"0.46645427",
"0.4638... | 0.714327 | 0 |
Sets the updated of this DomainCdnConfig. | def sPBL(YKHO, sPBL):
if YKHO.local_vars_configuration.client_side_validation and sPBL is None:
raise ValueError('Invalid value for `updated`, must not be `None`')
YKHO._updated = sPBL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, etR_=None, pOtN=None, aM_I=None):\n AJ7R = ZOmv(YKHO.connection, YKHO.config.origin, YKHO.config.enabled, YKHO.config.caller_reference, YKHO.config.cnames, YKHO.config.comment, YKHO.config.trusted_signers, YKHO.config.default_root_object)\n if etR_ != None:\n AJ7R.enabled = etR_\n if... | [
"0.61457133",
"0.6012143",
"0.5533672",
"0.5487523",
"0.5451057",
"0.53852856",
"0.53796333",
"0.5379178",
"0.53790927",
"0.5350403",
"0.53225625",
"0.526653",
"0.52570295",
"0.5256097",
"0.5256097",
"0.5248329",
"0.52436644",
"0.5241478",
"0.5224215",
"0.522279",
"0.5217135"... | 0.0 | -1 |
Sets the cert_id of this DomainCdnConfig. | def faxG(YKHO, faxG):
if YKHO.local_vars_configuration.client_side_validation and faxG is None:
raise ValueError('Invalid value for `cert_id`, must not be `None`')
YKHO._cert_id = faxG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LSCv(YKHO, BWXx):\n YKHO._cert = BWXx",
"def uRFr(YKHO, uRFr):\n YKHO._certificate_issuer_id = uRFr",
"def TvXf(YKHO, TvXf):\n YKHO._domain_id = TvXf",
"def u3Dm(YKHO, u3Dm):\n if YKHO.local_vars_configuration.client_side_validation and u3Dm is None:\n raise ValueError('Invalid value f... | [
"0.648625",
"0.6392923",
"0.6203288",
"0.60979635",
"0.58235055",
"0.5755207",
"0.5619148",
"0.55615526",
"0.5454727",
"0.54514563",
"0.54440945",
"0.53902763",
"0.53735274",
"0.53687096",
"0.5311898",
"0.5269552",
"0.52254456",
"0.52254456",
"0.52238023",
"0.51928",
"0.51670... | 0.7080936 | 0 |
Sets the cert_expiration_date of this DomainCdnConfig. | def b4V5(YKHO, b4V5):
if YKHO.local_vars_configuration.client_side_validation and b4V5 is None:
raise ValueError('Invalid value for `cert_expiration_date`, must not be `None`')
YKHO._cert_expiration_date = b4V5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ad72(YKHO, ad72):\n YKHO._expiration_date = ad72",
"def exxM(YKHO, exxM):\n YKHO._default_expiration_date = exxM",
"def PiTA(YKHO, PiTA):\n YKHO._expire_date = PiTA",
"def GVQP(HEMl, Ilxn, vHj7, r5YK):\n ABOD = Hy7s.path.join(HEMl, AOjL)\n SG6Y.util.ensure_dir_exists(ABOD)\n Yxj_ = sx1R... | [
"0.702627",
"0.631459",
"0.623729",
"0.6228444",
"0.5916856",
"0.5886791",
"0.58783084",
"0.58200675",
"0.573661",
"0.56915843",
"0.56055045",
"0.550793",
"0.5497357",
"0.5497357",
"0.5497357",
"0.53920704",
"0.5325578",
"0.53121614",
"0.52689147",
"0.5239478",
"0.5223498",
... | 0.7684126 | 0 |
Sets the cdn_id of this DomainCdnConfig. | def u3Dm(YKHO, u3Dm):
if YKHO.local_vars_configuration.client_side_validation and u3Dm is None:
raise ValueError('Invalid value for `cdn_id`, must not be `None`')
YKHO._cdn_id = u3Dm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ygHK(YKHO, ygHK):\n if YKHO.local_vars_configuration.client_side_validation and ygHK is None:\n raise ValueError('Invalid value for `cdn_group_id`, must not be `None`')\n YKHO._cdn_group_id = ygHK",
"def TvXf(YKHO, TvXf):\n YKHO._domain_id = TvXf",
"def lwfF(YKHO, lwfF):\n YKHO._vcn_id =... | [
"0.6751273",
"0.64474905",
"0.63107586",
"0.57109094",
"0.57109094",
"0.5673157",
"0.5568244",
"0.55629635",
"0.55209315",
"0.55209315",
"0.5468026",
"0.5344063",
"0.5288086",
"0.5288086",
"0.5288086",
"0.52240205",
"0.5215256",
"0.5193647",
"0.5177345",
"0.5156801",
"0.51568... | 0.78794616 | 0 |
Sets the ssl_status of this DomainCdnConfig. | def grs1(YKHO, grs1):
if YKHO.local_vars_configuration.client_side_validation and grs1 is None:
raise ValueError('Invalid value for `ssl_status`, must not be `None`')
BbPm = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11']
if YKHO.local_vars_configuration.client_side_validation and grs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L4L7(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('EnableSSL')\n return YKHO._EnableSSL",
"def fMl0(YKHO):\n return YKHO.__ssl_enabled",
"def QG1F(YKHO) -> MH_9:\n return YKHO._org_apache_felix_https_enable",
"def Qhd6(YKHO):\n for NArs in YKHO.config.get_ssl_params():\n YKHO... | [
"0.5986671",
"0.57002133",
"0.5694897",
"0.5691406",
"0.5669873",
"0.5641464",
"0.56147826",
"0.55851567",
"0.55304885",
"0.5435148",
"0.54266405",
"0.5370975",
"0.5335345",
"0.5290155",
"0.52690315",
"0.51991135",
"0.5174704",
"0.51646584",
"0.5159507",
"0.51494426",
"0.5132... | 0.7408194 | 0 |
Sets the http_body of this DomainCdnConfig. | def qZcD(YKHO, qZcD):
if YKHO.local_vars_configuration.client_side_validation and qZcD is None:
raise ValueError('Invalid value for `http_body`, must not be `None`')
YKHO._http_body = qZcD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jjfi(YKHO, TBsA):\n YKHO._body = TBsA",
"def TBsA(YKHO, TBsA):\n YKHO._body = TBsA",
"def TBsA(YKHO, TBsA):\n YKHO._body = TBsA",
"def TBsA(YKHO, TBsA):\n YKHO._body = TBsA",
"def TBsA(YKHO, TBsA):\n YKHO._body = TBsA",
"def xJTF(YKHO, TBsA):\n YKHO._html_body = TBsA",
"def TBsA(Y... | [
"0.60335475",
"0.56352365",
"0.56352365",
"0.56352365",
"0.56352365",
"0.5598677",
"0.55717003",
"0.55717003",
"0.5538598",
"0.54585415",
"0.5390114",
"0.5363716",
"0.5360905",
"0.52701056",
"0.51489925",
"0.4921352",
"0.48959738",
"0.4815857",
"0.4753281",
"0.4703872",
"0.46... | 0.67727053 | 0 |
Sets the cname of this DomainCdnConfig. | def FLlb(YKHO, FLlb):
if YKHO.local_vars_configuration.client_side_validation and FLlb is None:
raise ValueError('Invalid value for `cname`, must not be `None`')
YKHO._cname = FLlb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oRGm(YKHO, FLlb):\n YKHO.__cname = FLlb",
"def bDSJ(WAha, s7xM, Zdo3):\n crUK = gP7g.route53.record.ResourceRecordSets(WAha, zSR9)\n C6Ao = crUK.add_change('UPSERT', s7xM, 'CNAME', ttl=60)\n C6Ao.add_value(Zdo3)\n crUK.commit()",
"def RGU1(YKHO, RGU1):\n if YKHO.local_vars_configuration.c... | [
"0.7353354",
"0.6787573",
"0.58306545",
"0.53468287",
"0.5271034",
"0.5239655",
"0.51808816",
"0.51600695",
"0.51451194",
"0.5144209",
"0.5098337",
"0.5098337",
"0.5089497",
"0.50215065",
"0.50136745",
"0.4982769",
"0.4982769",
"0.49471718",
"0.49317634",
"0.49140587",
"0.491... | 0.71347517 | 1 |
Sets the cname_target of this DomainCdnConfig. | def RGU1(YKHO, RGU1):
if YKHO.local_vars_configuration.client_side_validation and RGU1 is None:
raise ValueError('Invalid value for `cname_target`, must not be `None`')
YKHO._cname_target = RGU1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oRGm(YKHO, FLlb):\n YKHO.__cname = FLlb",
"def bDSJ(WAha, s7xM, Zdo3):\n crUK = gP7g.route53.record.ResourceRecordSets(WAha, zSR9)\n C6Ao = crUK.add_change('UPSERT', s7xM, 'CNAME', ttl=60)\n C6Ao.add_value(Zdo3)\n crUK.commit()",
"def pan_(YKHO, pan_: Union[str, 'STACObject_Type']) -> None:\... | [
"0.6161715",
"0.56571543",
"0.5562238",
"0.5540022",
"0.5436753",
"0.53446907",
"0.5285181",
"0.5193794",
"0.51671326",
"0.51671326",
"0.5136968",
"0.51182085",
"0.50536823",
"0.5025541",
"0.5025541",
"0.49958748",
"0.4989106",
"0.49535507",
"0.49437654",
"0.49051666",
"0.486... | 0.7836978 | 0 |
Sets the minimum_tls_version of this DomainCdnConfig. | def hqeM(YKHO, hqeM):
if YKHO.local_vars_configuration.client_side_validation and hqeM is None:
raise ValueError('Invalid value for `minimum_tls_version`, must not be `None`')
BbPm = ['1.0', '1.1', '1.2', '1.3', 'none', 'null']
if YKHO.local_vars_configuration.client_side_validation and hqeM not in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s69z(YKHO, BWXx):\n YKHO._set_attr('min-tls-version', BWXx)",
"def s69z(YKHO):\n return YKHO._data.get('min-tls-version', None)",
"def Y5Rp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'tls_min_version')",
"def Y5Rp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'tls_min_v... | [
"0.77457994",
"0.6668995",
"0.63330346",
"0.63330346",
"0.61167383",
"0.59885263",
"0.5895673",
"0.5703485",
"0.5678821",
"0.5657199",
"0.5350185",
"0.5332084",
"0.5294296",
"0.5229303",
"0.5229303",
"0.5223897",
"0.51976055",
"0.5140413",
"0.50779045",
"0.50440055",
"0.50440... | 0.77915806 | 0 |
Sets the alternate_origin_hostname of this DomainCdnConfig. | def HkOb(YKHO, HkOb):
if YKHO.local_vars_configuration.client_side_validation and HkOb is None:
raise ValueError('Invalid value for `alternate_origin_hostname`, must not be `None`')
YKHO._alternate_origin_hostname = HkOb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aNy3(YKHO, ayrW):\n raise NotImplementedError()",
"def Dl3V(YKHO):\n try:\n hLRM = YKHO.repo.remotes.origin\n if hLRM.url != YKHO.origin_url:\n RKD7.debug('[%s] Changing origin url. Old: %s New: %s', YKHO.name, hLRM.url, YKHO.origin_url)\n hLRM.config_writer.set('url... | [
"0.56432724",
"0.54825515",
"0.54443306",
"0.5413333",
"0.532358",
"0.5307988",
"0.5294168",
"0.52682024",
"0.525112",
"0.525112",
"0.5229715",
"0.5222777",
"0.5208188",
"0.5167246",
"0.51632434",
"0.5094791",
"0.5084198",
"0.50662804",
"0.50589204",
"0.50213253",
"0.500995",... | 0.8355488 | 0 |
Sets the id of this DomainCdnConfig. | def id(YKHO, id):
if YKHO.local_vars_configuration.client_side_validation and id is None:
raise ValueError('Invalid value for `id`, must not be `None`')
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u3Dm(YKHO, u3Dm):\n if YKHO.local_vars_configuration.client_side_validation and u3Dm is None:\n raise ValueError('Invalid value for `cdn_id`, must not be `None`')\n YKHO._cdn_id = u3Dm",
"def TvXf(YKHO, TvXf):\n YKHO._domain_id = TvXf",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M... | [
"0.6935357",
"0.6685087",
"0.63644964",
"0.6236037",
"0.62207425",
"0.605074",
"0.5987751",
"0.5978477",
"0.5967704",
"0.59580815",
"0.594113",
"0.5936219",
"0.59316784",
"0.59316784",
"0.59316784",
"0.59293944",
"0.5901403",
"0.58987373",
"0.58987373",
"0.58987373",
"0.58987... | 0.0 | -1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, FGbc):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, FGbc):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.8456063",
"0.83918154",
"0.8144437",
"0.8140196",
"0.8132038",
"0.8093834",
"0.80918837",
"0.80918837",
"0.80918837",
"0.80852824",
"0.80852824",
"0.807626",
"0.807626",
"0.80657643",
"0.8042481",
"0.8042481",
"0.8042481",
"0.8042481",
"0.8042481",
"0.8042481",
"0.8042481"... | 0.0 | -1 |
Convert the attrs in dict format to an HTML format. | def YRd0(o8Kj):
_R2e = ''
for jzdc in o8Kj.items():
if jzdc[1]:
_R2e = _R2e + '%s="%s" ' % jzdc
return _R2e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VCWC(YKHO):\n return BY_x(' '.join([YKHO.attribute_template % (G1Hx, IguF(Ty9i if not callable(Ty9i) else Ty9i())) for G1Hx, Ty9i in jKi7.iteritems(YKHO) if not Ty9i in oIVz]))",
"def VCWC(YKHO):\n return BY_x(' '.join(['%s=\"%s\"' % (G1Hx, IguF(Ty9i if not callable(Ty9i) else Ty9i())) for G1Hx, Ty9i i... | [
"0.70117486",
"0.695933",
"0.6773837",
"0.65951836",
"0.65663487",
"0.64095175",
"0.6309713",
"0.6248152",
"0.62135077",
"0.6161173",
"0.6120539",
"0.6120539",
"0.6055554",
"0.6021254",
"0.5976593",
"0.59342164",
"0.58393645",
"0.5828953",
"0.58143544",
"0.5798742",
"0.577115... | 0.7669962 | 0 |
Adds the input ``Time`` to the member data. | def H2v5(YKHO, ITS7):
YKHO.elapsed_time = YKHO.elapsed_time + ITS7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IJIQ(YKHO) -> None:\n YKHO.data['time'] = [qcWV(int(d7_d), int(cpvk), int(I1iR)) + fCoM(hours=TKQ0) for d7_d, cpvk, I1iR, TKQ0 in zip(YKHO.data['year'], YKHO.data['month'], YKHO.data['day'], YKHO.data['hour'])]\n for H5ew in ['year', 'doy', 'month', 'day', 'hour']:\n del YKHO.data[H5ew]",
"def I... | [
"0.7233926",
"0.68125725",
"0.68125725",
"0.68125725",
"0.68125725",
"0.68125725",
"0.6792184",
"0.67791176",
"0.67418265",
"0.66158056",
"0.6458627",
"0.64531475",
"0.6406397",
"0.6406397",
"0.6384579",
"0.6381727",
"0.6359148",
"0.63020056",
"0.6232178",
"0.6099516",
"0.609... | 0.7325025 | 0 |
Calcula la distancia entre 2 puntos | def JeWs(Z9rn, XP5J):
return PZyS((Z9rn[0] - XP5J[0]) ** 2 + (Z9rn[1] - XP5J[1]) ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dy5h(EBgd, HpuQ):\n o4D3, si3g = EBgd\n ajwV, skBL = HpuQ\n return ((o4D3 - ajwV) * (o4D3 - ajwV) + (si3g - skBL) * (si3g - skBL)) ** 0.5",
"def pImw(XHsu, jDcc):\n return ((jDcc[0] - XHsu[0]) ** 2 + (jDcc[1] - XHsu[1]) ** 2 + (jDcc[2] - XHsu[2]) ** 2) ** 0.5",
"def pImw(y4fz, EBgd):\n retur... | [
"0.7362617",
"0.728506",
"0.7268491",
"0.72286063",
"0.7210529",
"0.72010565",
"0.71855736",
"0.71011376",
"0.7066864",
"0.6998343",
"0.6996693",
"0.69886875",
"0.6974783",
"0.6940832",
"0.6930779",
"0.6888006",
"0.687785",
"0.6871968",
"0.6859085",
"0.68269545",
"0.67970455"... | 0.6984056 | 12 |
Add an edge to the terminal graph. | def D70y(YKHO, kO3T: VizEdge) -> None:
if kO3T.end in YKHO._graph:
YKHO._graph[kO3T.end].append(kO3T.start)
else:
YKHO._graph[kO3T.end] = [kO3T.start] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F1KG(YKHO, D70y):\n Ugir.addEdge(YKHO, D70y)\n o5Dc = ndC_(D70y.getDestination(), D70y.getSource())\n Ugir.addEdge(YKHO, o5Dc)",
"def rz7z(YKHO, ldJB):\n YKHO.edge.append(ldJB)\n YKHO.update_node2edge()",
"def F1KG(YKHO, D70y: Edge):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n ... | [
"0.8188227",
"0.7988535",
"0.798623",
"0.7941954",
"0.7829566",
"0.7819214",
"0.7818084",
"0.78145087",
"0.7801904",
"0.7656984",
"0.76379526",
"0.7498607",
"0.74936247",
"0.748312",
"0.7463189",
"0.7420311",
"0.74041027",
"0.7362618",
"0.73130333",
"0.7306188",
"0.73019713",... | 0.6688736 | 74 |
Does the home() view exist in readingTime views.py module? | def _h7l(YKHO):
v7Lr = 'index' in YKHO.views_module_listing
VBj0 = callable(YKHO.views_module.index)
YKHO.assertTrue(v7Lr, f'{RGAa}index() view does not exist{Ppra}')
YKHO.assertTrue(VBj0, f'{RGAa}index() function does not exist or will not execute{Ppra}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(YKHO, *qIxc, **B2fa):\n pass",
"def kZiy(QePW):\n return _1tc(QePW, 'home.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def kZiy(QePW):\n if QePW.user.is_authenticated():\n return Yd7Q('logged-in')\n else:\n nspo = 1\n return SGJU('content/h... | [
"0.67487735",
"0.67265314",
"0.6704355",
"0.6703212",
"0.6628878",
"0.6602242",
"0.65504307",
"0.6549451",
"0.654646",
"0.65421665",
"0.65421665",
"0.65421665",
"0.65421665",
"0.65421665",
"0.65421665",
"0.65421665",
"0.65421665",
"0.65421665",
"0.65421665",
"0.65421665",
"0.... | 0.0 | -1 |
Return the index.html file | def d6pt(QePW):
Ldyl = msfn.objects.all()
Bdjf = Bnsp.objects.filter(status='h')
QpfX = {'index_page': 'active', 'products': Ldyl, 'highlights': Bdjf, 'title': 'Home'}
return _1tc(QePW, 'index.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO):\n return open(Hy7s.path.join(YKHO.staticdir, 'index.html'))",
"def d6pt(YKHO):\n xuug = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'index.html')\n return UbvO(xuug)",
"def d6pt():\n return TvZl('index.html', name=BnIw)",
"def b8V_():\n return TvZl('index.html')"... | [
"0.8606564",
"0.8470716",
"0.80533785",
"0.8032279",
"0.8032279",
"0.79846454",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
"0.7935351",
... | 0.0 | -1 |
get projects from PRIDE API in JSON format | def PKRp(YKHO, bNfU, B2Dn, nXcQ, fnzP):
lWQw = YKHO.api_base_url + 'projects?' + 'pageSize=' + str(bNfU) + '&page=' + str(B2Dn) + '&sortDirection=' + nXcQ + '&sortConditions=' + fnzP
MOPg = {'Accept': 'application/JSON'}
geh0 = apzJ.get_api_call(lWQw, MOPg)
return geh0.json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKRp(YKHO):\n return YKHO.http_call('get', url=f'{YKHO.base_url}/projects').json()",
"def PKRp(YKHO, YHje=False):\n QoTp = f'{YKHO.url}/projects'\n if YHje:\n QoTp += '?simple=true'\n U5bT = G4JS.get(QoTp, headers=YKHO.req_header)\n return U5bT.json()",
"def llaM():\n geh0 = pz3A(_... | [
"0.8043558",
"0.79441667",
"0.7811482",
"0.7772093",
"0.7648546",
"0.7594347",
"0.7584866",
"0.7351949",
"0.71447414",
"0.7141094",
"0.71276116",
"0.71189463",
"0.71062654",
"0.7029739",
"0.7020208",
"0.70063436",
"0.7001726",
"0.6986282",
"0.6980471",
"0.6962776",
"0.6950579... | 0.7064863 | 13 |
Parse start date and time from item and page date string | def hFBJ(YKHO, ZfUD, mbyn):
mbyn = ZbWC.search('[\\d/]{8,10}', mbyn).group()
jmHs = ZfUD.css('th::text, td::text').extract_first().replace('.', '')
jmHs = jmHs.replace('noon', 'pm').replace('\u200b', '').strip()
if jmHs:
return qcWV.strptime('{} {}'.format(mbyn, jmHs), '%m/%d/%Y %I:%M %p')
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hFBJ(YKHO, ZfUD, SWox):\n mbyn = ZfUD.css('*::text').extract_first()\n if not mbyn:\n return\n ehn8 = ZbWC.search('\\\\w{3,9} \\\\d{1,2}, \\\\d{4}', mbyn)\n if ehn8:\n v27i = qcWV.strptime(ehn8.group(), '%B %d, %Y')\n return qcWV.combine(v27i.date(), SWox.time())",
"def hFBJ(... | [
"0.78154385",
"0.77333003",
"0.7730685",
"0.77083975",
"0.76962423",
"0.7560113",
"0.74035656",
"0.7384176",
"0.6911045",
"0.6673306",
"0.65389997",
"0.64185536",
"0.6290325",
"0.6180849",
"0.604949",
"0.60147244",
"0.5883331",
"0.58133066",
"0.5775677",
"0.57316464",
"0.5725... | 0.7962969 | 0 |
Attempts to resolve the path to the notebook being run. If ``nb_path`` is ``None``, ``self._notebook`` is checked, then the working directory is searched for ``.ipynb`` files. If none are found, or more than one is found, a ``ValueError`` is raised. | def AdQ1(YKHO, eB1j):
if eB1j is None and YKHO._notebook is not None:
eB1j = YKHO._notebook
elif eB1j is None and SC2F('*.ipynb'):
BkeR = SC2F('*.ipynb')
assert len(BkeR) == 1, 'nb_path not specified and > 1 notebook in working directory'
eB1j = BkeR[0]
elif eB1j is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iFGS(jeLr, pmON=None):\n mWFP = jeLr.rsplit('.', 1)[-1]\n if not pmON:\n pmON = ['']\n for Csk6 in pmON:\n eB1j = Hy7s.path.join(Csk6, mWFP + '.ipynb')\n if Hy7s.path.isfile(eB1j):\n return eB1j\n eB1j = eB1j.replace('_', ' ')\n if Hy7s.path.isfile(eB1j):\... | [
"0.6580517",
"0.6118046",
"0.58428234",
"0.576427",
"0.57623804",
"0.5714794",
"0.55501455",
"0.5385478",
"0.53419024",
"0.5300512",
"0.50883085",
"0.50240266",
"0.496012",
"0.48980036",
"0.48768246",
"0.48107374",
"0.47637558",
"0.47499642",
"0.47413197",
"0.46858308",
"0.46... | 0.87936026 | 0 |
Converts a unicode string to a list of Gen 4 ords. | def BbPK(YKHO, YEnM, OaeV):
if not isinstance(YEnM, QMSQ):
YEnM = YEnM.decode('utf8')
dL35 = []
for PaqU in YEnM:
Uluz = N56H(PaqU)
if Uluz == 65535:
break
dL35.append(Uluz)
while len(dL35) < YKHO.bytes - 1:
dL35.append(65535)
dL35 = dL35[:YKHO.byt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H3sD():\n return ['b2935', 'b0723', 'b0451']",
"def WkN7(vIwR):\n hkxX = []\n for Tqds in [KCHu for KCHu in vIwR.split(RnhW) if KCHu != MolQ and len(KCHu) > 0]:\n hkxX.append(u''.join([xV4h(Z9rn) for Z9rn in Tqds.split(ILlf)]))\n return hkxX",
"def hfK9(mWFP: unicode) -> x1iM[QMSQ]:\n ... | [
"0.62269527",
"0.61642605",
"0.5799742",
"0.5648823",
"0.5575587",
"0.55142087",
"0.5414773",
"0.52928764",
"0.5257816",
"0.5257731",
"0.524945",
"0.5230362",
"0.5229091",
"0.51891154",
"0.51623523",
"0.51380014",
"0.5131101",
"0.5103279",
"0.5087546",
"0.5076178",
"0.5064731... | 0.0 | -1 |
Returns data from the sharing tab matrix (without table headers) as a list of lists. Checkbox cells are converted to simple True or False values. | def S0g8(SYsl=Q0EW):
KTql = []
tyNF = SYsl.css('table#user-group-sharing').first
for rdlD in tyNF.body_rows:
PypT = []
for g75m in rdlD.css('td'):
if g75m.classes == ['listingCheckbox']:
mReh = g75m.css('span')
if mReh and mReh.first.classes == ['f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bgRQ(YKHO):\n Aofo = []\n for G0yO in YKHO.checkboxes:\n if G0yO.isChecked():\n Aofo.append(G0yO.text())\n return Aofo",
"def yuHH(YKHO):\n pass",
"def iz73(YKHO) -> laHg.List[laHg.List[bool]]:\n ...",
"def rbq3(YKHO) -> list:\n dixj = []\n for YRbF in YKHO.checkbox... | [
"0.5816053",
"0.5718316",
"0.5542492",
"0.5476723",
"0.54671836",
"0.5434284",
"0.53326106",
"0.53111166",
"0.520821",
"0.5190636",
"0.5146882",
"0.5128814",
"0.5124371",
"0.5090551",
"0.5088574",
"0.50795037",
"0.50554514",
"0.5036728",
"0.501896",
"0.50076437",
"0.4971182",... | 0.7464631 | 0 |
Return a dictionary of precipitation data | def cBYs():
cuiw = DMju(eHpk)
dixj = cuiw.query(Ny6I.date, Ny6I.prcp).all()
cuiw.close()
SweV = []
for _c1T, OScg in dixj:
tVty = {}
tVty['date'] = _c1T
tVty['prcp'] = OScg
SweV.append(tVty)
return pz3A(SweV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aj9W():\n cuiw = DMju(eHpk)\n dixj = cuiw.query(Ny6I.date, Ny6I.prcp).all()\n OrBu = []\n for _c1T, OScg in dixj:\n tVty = {}\n tVty['date'] = _c1T\n tVty['Precipitation'] = OScg\n OrBu.append(tVty)\n return pz3A(OrBu)",
"def cBYs():\n cuiw = DMju(eHpk)\n K9mL... | [
"0.77907515",
"0.765826",
"0.7600521",
"0.7586806",
"0.7567548",
"0.75225663",
"0.7522503",
"0.7519379",
"0.7469789",
"0.7416705",
"0.74074495",
"0.74047124",
"0.7334887",
"0.7278978",
"0.7237182",
"0.7231496",
"0.7219214",
"0.7158702",
"0.71543884",
"0.7144464",
"0.71443415"... | 0.7461461 | 9 |
For resnet, the lr starts from 0.1, and is divided by 10 at 80 and 120 epochs | def e_63(K0do, qtWj, DMw4):
if DMw4 == 1:
if qtWj < 80:
tspZ = qIxc.lr
elif qtWj < 120:
tspZ = qIxc.lr * 0.1
else:
tspZ = qIxc.lr * 0.01
elif DMw4 == 2:
if qtWj < 60:
tspZ = qIxc.lr
elif qtWj < 120:
tspZ = qIxc.l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZT_s(qtWj):\n tspZ = 0.001\n if qtWj > 180:\n tspZ *= 0.0005\n elif qtWj > 160:\n tspZ *= 0.001\n elif qtWj > 120:\n tspZ *= 0.01\n elif qtWj > 80:\n tspZ *= 0.1\n print('Learning rate: ', tspZ)\n return tspZ",
"def ZT_s(qtWj):\n tspZ = 0.001\n if qtWj >... | [
"0.75904906",
"0.75839096",
"0.75839096",
"0.75839096",
"0.75839096",
"0.75574",
"0.7455129",
"0.74261856",
"0.74075645",
"0.7266066",
"0.71985835",
"0.71878034",
"0.7080241",
"0.70345134",
"0.6999357",
"0.6973989",
"0.69720703",
"0.69368285",
"0.6934154",
"0.691139",
"0.6863... | 0.0 | -1 |
Given the name of a player, get their player id. | def yztK(YKHO, oyg0):
bD7m = YKHO.base_url + '/player/player/findplayer.html'
NArs = {'q': oyg0, 'start': 0, 'count': 'Infinity'}
bD7m += '?' + uRlK.parse.urlencode(NArs)
_hkX = YKHO.fetch(bD7m)
gbyk = qQXR.loads(_hkX)
if len(gbyk['items']) == 0:
return -1
return gbyk['items'][0]['id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EE5A(mWFP):\n w2B8, Z9rn = b8V_.connect()\n _VPC = 'SELECT playerID FROM player WHERE playerName=%s'\n nPrm = (mWFP,)\n Z9rn.execute(_VPC, nPrm)\n rRmI = Z9rn.fetchone()\n w2B8.commit()\n w2B8.close()\n return rRmI[0]",
"def yztK(YKHO):\n mv1M = _aLO()\n AWnp = YKHO.serialize_pl... | [
"0.80792814",
"0.73504037",
"0.73234665",
"0.7244146",
"0.7242505",
"0.724178",
"0.71127903",
"0.70395905",
"0.70017236",
"0.6993391",
"0.6948186",
"0.6889687",
"0.6885614",
"0.6831397",
"0.6820351",
"0.6788249",
"0.6772983",
"0.6754158",
"0.6715333",
"0.6713837",
"0.6680971"... | 0.7381623 | 1 |
Test index page routing | def goyi():
geh0 = P4t4.test_client().get('/')
assert geh0.status_code == 200
assert geh0.data == b'Welcome to the Pizza Parlour' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QJXU(YKHO):\n geh0 = YKHO.client.get(nKyW('main.index'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def QJXU(YKHO):\n geh0 = YKHO.client.get('/')\n NaW5(geh0.status_code, 200)",
"def QJXU(YKHO):\n geh0 = YKHO.client.get(gxEw('index'))\n YKHO.assertEquals(geh0.status_code, 200)",
"def ... | [
"0.81209177",
"0.800697",
"0.79658145",
"0.78916675",
"0.78889596",
"0.7773339",
"0.7745272",
"0.7703268",
"0.7597389",
"0.75915843",
"0.7550458",
"0.75051934",
"0.7474155",
"0.74727756",
"0.74524444",
"0.74524444",
"0.74519575",
"0.742032",
"0.74157953",
"0.73282784",
"0.732... | 0.0 | -1 |
Testing email for new user is normalised | def H6gL(YKHO):
D3lj = 'test@RANDOMEMAIL.org'
CBIr = egNl().objects.create_user(D3lj, password='password')
YKHO.assertEqual(CBIr.email, D3lj.lower()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U4Gr(YKHO):\n D3lj = 'test@TadfhaafGRGS.pl'\n CBIr = egNl().objects.create_user(D3lj, 'test123123123123')\n YKHO.assertEqual(D3lj.lower(), CBIr.email)",
"def saHt(YKHO):\n D3lj = 'test@GOOGLE.COM'\n CBIr = egNl().objects.create_user(D3lj, '212ds')\n YKHO.assertEqual(CBIr.email, D3lj.lower()... | [
"0.79856116",
"0.79837924",
"0.79782945",
"0.79782945",
"0.79782945",
"0.79641944",
"0.79592794",
"0.79516447",
"0.7945084",
"0.79426855",
"0.7928316",
"0.7907911",
"0.7896453",
"0.7864062",
"0.7832128",
"0.77200925",
"0.76658666",
"0.7632567",
"0.7615156",
"0.7545456",
"0.75... | 0.8326955 | 0 |
test the tag string representation | def Yhvr(YKHO):
TZ9E = FYrf.Tag.objects.create(user=nIoS(), name='TestTag')
YKHO.assertEqual(str(TZ9E), TZ9E.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yhvr(YKHO):\n TZ9E = FYrf.Tag.objects.create(user=nIoS(), name='Internal')\n YKHO.assertEqual(str(TZ9E), TZ9E.name)",
"def Yhvr(YKHO):\n TZ9E = FYrf.Tag.objects.create(user=nIoS(), name='Docker')\n YKHO.assertEqual(str(TZ9E), TZ9E.name)",
"def Yhvr(YKHO):\n TZ9E = FYrf.Tag.objects.create(use... | [
"0.72309095",
"0.7106471",
"0.6974805",
"0.6974805",
"0.69673026",
"0.69394904",
"0.6932888",
"0.68880403",
"0.66872",
"0.64928925",
"0.6373894",
"0.63520837",
"0.626638",
"0.62179214",
"0.61101854",
"0.6109479",
"0.6108113",
"0.6086843",
"0.6058148",
"0.59807706",
"0.5975097... | 0.6963216 | 5 |
Create an annotation stub for supplied resource using indicated body | def S1Me(YKHO, bGbW, dV6V, YIFe):
ICn2 = YKHO.createAnnotationRDF(bGbW, dV6V, YIFe)
jGRS, lo9Y, MOPg, nPrm = YKHO.doRequest(bGbW, method='POST', ctype='application/vnd.wf4ever.annotation', body=ICn2)
if jGRS != 201:
raise YKHO.error('Error creating annotation', '%03d %s (%s)' % (jGRS, lo9Y, str(dV6V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XdVa(YKHO, bGbW, dV6V, YIFe):\n ICn2 = C62V % {'xmlbase': str(bGbW), 'resuri': str(dV6V), 'bodyuri': str(YIFe)}\n return ICn2",
"def m_yQ(YKHO, m6Me) -> qeSH:\n raise NotImplemented",
"def nwex(YKHO, bGbW, dV6V, YIFe):\n jGRS, lo9Y, frP5 = YKHO.createROAnnotation(bGbW, dV6V, YIFe)\n return (... | [
"0.59096384",
"0.5704778",
"0.5512156",
"0.54000103",
"0.5386209",
"0.53420734",
"0.5241351",
"0.5238442",
"0.52195",
"0.5121084",
"0.5085806",
"0.50165915",
"0.5011306",
"0.49885812",
"0.49490753",
"0.49367875",
"0.49353758",
"0.49123883",
"0.4907055",
"0.4906865",
"0.489702... | 0.5789368 | 1 |
Get the unique_id for a Frigate entity. | def FShH(kfcu: str, l87X: str, mWFP: str) -> str:
return f'{kfcu}:{l87X}:{mWFP}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO) -> str:\n return FShH(YKHO._config_entry.entry_id, 'sensor_status', 'frigate')",
"def ShR8(YKHO) -> str:\n return FShH(YKHO._config_entry.entry_id, 'sensor_object_count', f'{YKHO._cam_name}_{YKHO._obj_name}')",
"def ShR8(YKHO) -> str:\n return FShH(YKHO._config_entry.entry_id, 'sensor_f... | [
"0.73676723",
"0.7269622",
"0.71320254",
"0.6869185",
"0.68507355",
"0.6782743",
"0.67562115",
"0.6730469",
"0.6730469",
"0.67145634",
"0.6707839",
"0.6707839",
"0.6707839",
"0.6706498",
"0.6706498",
"0.6706498",
"0.6706498",
"0.6706498",
"0.66890013",
"0.6678395",
"0.6678395... | 0.71048295 | 3 |
Get the Frigate device model string. | def _8gI(YKHO) -> str:
return str(YKHO.hass.data[Sugg][YKHO._config_entry.entry_id][WBcY]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C3ST(YKHO) -> str:\n return YKHO.camera_info['device_model']",
"def YrZb(YKHO) -> str:\n return YKHO._get_string(wLjv.Prop_ModelNumber_String)",
"def YrZb() -> str:\n U5bT = None\n try:\n with open('/proc/device-tree/model') as nUeQ:\n for zFiD in nUeQ:\n U5bT =... | [
"0.76943696",
"0.76081073",
"0.76018447",
"0.7232272",
"0.71063805",
"0.7038289",
"0.70258796",
"0.69933015",
"0.6933828",
"0.6922336",
"0.68626106",
"0.67362505",
"0.6681581",
"0.6637021",
"0.6625765",
"0.6585435",
"0.6533983",
"0.6533983",
"0.6526806",
"0.63669944",
"0.6332... | 0.73890936 | 3 |
group list of list by a specific index. | def qUWU(nPrm, d6pt):
O_7m = sorted(nPrm, key=lambda WKvO: WKvO[d6pt])
ldvG = wk71(O_7m, lambda WKvO: WKvO[d6pt])
return ldvG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uOe2(yv6U, exwG):\n return zip(*[yv6U[YRbF::exwG] for YRbF in range(exwG)])",
"def cOjl(gDg3, G7MY):\n wF7n = {}\n for d6pt, x0hE in enumerate(gDg3):\n BWXx = x0hE.data[G7MY]\n if not BWXx in wF7n:\n wF7n[BWXx] = []\n wF7n[BWXx].append((d6pt, x0hE))\n KkHn = [[x0hE... | [
"0.68073034",
"0.62525886",
"0.6218242",
"0.6206346",
"0.60408396",
"0.5865919",
"0.57993555",
"0.5794339",
"0.5731817",
"0.57275206",
"0.5670307",
"0.56697",
"0.5665398",
"0.5637447",
"0.5633781",
"0.5629734",
"0.5569514",
"0.5522488",
"0.5518673",
"0.5513203",
"0.54876506",... | 0.7700986 | 0 |
Add scalebars to axes Adds a set of scale bars to ax, matching the size to the ticks of the plot and optionally hiding the x and y axes | def F7Qa(aNZO, pMPs=True, hNFq=True, D9_Z=True, xfb7=True, **B2fa):
def eHNT(jDK_):
vC9B = jDK_.get_majorticklocs()
return len(vC9B) > 1 and vC9B[1] - vC9B[0]
if pMPs:
B2fa['sizex'] = eHNT(aNZO.xaxis)
B2fa['labelx'] = str(B2fa['sizex'])
if hNFq:
B2fa['sizey'] = eHNT(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F7Qa(aNZO, mLGw, PXGI, LZpg, nIrO=[0, 0, 1, 1], dCji=None, cHAw=None):\n if isinstance(mLGw, tuple):\n pNz6, XQaS = (mLGw[0], mLGw[1])\n else:\n pNz6, XQaS = (mLGw, mLGw)\n if isinstance(mLGw, tuple):\n k2Vt, E_2f = (PXGI[0], PXGI[1])\n else:\n k2Vt, E_2f = (PXGI, PXGI)\... | [
"0.72202325",
"0.67583823",
"0.67583823",
"0.67583823",
"0.63575494",
"0.6252333",
"0.61110824",
"0.60805094",
"0.6036374",
"0.6016568",
"0.59870887",
"0.593551",
"0.5933453",
"0.5901336",
"0.5885512",
"0.5867424",
"0.5865369",
"0.5845011",
"0.58125204",
"0.57948875",
"0.5777... | 0.73673975 | 0 |
Bin reward to {+1, 0, 1} by its sign. | def vOGg(YKHO, vOGg):
return float(oyIN.sign(vOGg)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)",
"def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)",
"def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)",
"def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)",
"def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)",
"def vOGg(YKHO, vOGg):\n return oyIN.s... | [
"0.7170663",
"0.70812565",
"0.70812565",
"0.70812565",
"0.70812565",
"0.70812565",
"0.6516397",
"0.61955494",
"0.60499823",
"0.60499823",
"0.6048698",
"0.60147136",
"0.5961627",
"0.5949438",
"0.59057444",
"0.5822291",
"0.5816496",
"0.57978296",
"0.57128024",
"0.5707449",
"0.5... | 0.6652758 | 6 |
Close the connection to the database. | def DDI8(YKHO):
YKHO.connection.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yZlT(Emd4):\n NCls.close()",
"def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None",
"def DDI8(YKHO):\n RdPg.debug('DB -> close')\n YKHO.conn.close()",
"def EM8p(YKHO):\n qLrr.debug('Closing database connection')\n YKHO.db.close()",
"def ... | [
"0.8693136",
"0.8501889",
"0.8321094",
"0.83082736",
"0.8272193",
"0.8170999",
"0.8104556",
"0.80233586",
"0.8014553",
"0.79848075",
"0.7933265",
"0.7930158",
"0.7927017",
"0.79215",
"0.79093546",
"0.7897055",
"0.78905183",
"0.78902656",
"0.78752756",
"0.7787804",
"0.7787804"... | 0.0 | -1 |
Project vector `u` onto vector `v` Convert the Points into np.array and then use | def vCxW(P6bq, Ty9i):
sggy = oyIN.array([P6bq.get_x(), P6bq.get_y()])
b1hD = oyIN.array([Ty9i.get_x(), Ty9i.get_y()])
IDBL = oyIN.dot(sggy, b1hD) / oyIN.dot(b1hD, b1hD) * b1hD
return PvyL(IDBL[0], IDBL[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oPuB(P6bq, Ty9i):\n NFIp = oyIN.zeros((2, 2))\n NFIp[0][0] = P6bq[0]\n NFIp[1][0] = P6bq[1]\n NFIp[0][1] = Ty9i[0]\n NFIp[1][1] = Ty9i[1]\n return NFIp",
"def yRDn(P6bq, Ty9i):\n return oyIN.einsum('i...,i...->...', P6bq, Ty9i) / oyIN.einsum('i...,i...->...', P6bq, P6bq) * P6bq",
"def ... | [
"0.7269047",
"0.7046182",
"0.7015806",
"0.6938667",
"0.69117814",
"0.6761432",
"0.67162526",
"0.6706705",
"0.6696067",
"0.6604717",
"0.6579529",
"0.64625746",
"0.64539975",
"0.6404402",
"0.6379771",
"0.6362266",
"0.6357186",
"0.6327987",
"0.6313808",
"0.6284396",
"0.62422574"... | 0.8113677 | 0 |
Returns the List of Points that defines the Gates Returns List of Points The List of Points that defines the Gates of the Wall | def aK3A(YKHO):
return YKHO.gates | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbir(YKHO):\n LTIa = []\n if YKHO.isRed:\n for WKvO in range(YKHO.midWidth, YKHO.width):\n for LVAh in range(0, YKHO.height):\n if (WKvO, LVAh) not in YKHO.walls:\n fP8F = YKHO.adjacentValidPoints(WKvO, LVAh)\n if len(fP8F) == 1:\n ... | [
"0.68935215",
"0.6858011",
"0.66832757",
"0.6658015",
"0.6571304",
"0.64857227",
"0.647982",
"0.64680153",
"0.6459585",
"0.6457116",
"0.6428824",
"0.63826954",
"0.63322294",
"0.62874544",
"0.62874544",
"0.62874544",
"0.62874544",
"0.62874544",
"0.6282821",
"0.6282821",
"0.619... | 0.5861392 | 44 |
Test if unauthenticated will be redirected to login page | def zcQF(x0hE):
nLTs = gxEw('add-product')
geh0 = x0hE.get(nLTs)
assert geh0.status_code == 302
assert geh0.url == '/accounts/login/?next=/products/add-product/' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PiL1(YKHO):\n geh0 = YKHO.client.get(YKHO.account_overview_url)\n YKHO.assertEqual(geh0.status_code, 302)\n YKHO.assertRedirects(geh0, YKHO.login_url)",
"def bljB(YKHO):\n YKHO.logout()\n RMly = gxEw('wiki:get', kwargs={'path': YKHO.toy.wiki_slug + '/'})\n _hkX = YKHO.client.get(RMly, follo... | [
"0.7787556",
"0.7648166",
"0.76366794",
"0.7626825",
"0.76077497",
"0.75069386",
"0.7471995",
"0.7471995",
"0.7448445",
"0.7327461",
"0.72055364",
"0.7184386",
"0.71768904",
"0.71692437",
"0.713444",
"0.7126062",
"0.7123754",
"0.71160024",
"0.71160024",
"0.71160024",
"0.71010... | 0.0 | -1 |
Veryfies that list view returns all created products | def C7VH(KeVq, wfZ7, x0hE):
qf7R = gxEw('product-list')
geh0 = x0hE.get(qf7R)
assert geh0.status_code == 200
assert msfn.objects.count() == 9
Ldyl = msfn.objects.all()
hGN5 = geh0.content.decode(geh0.charset)
for Lx3t in Ldyl:
assert Lx3t.name in hGN5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lrVf(QePW):\n SR0I = msfn.objects.all()\n QpfX = {'object_list': SR0I}\n return _1tc(QePW, 'products/product_list.html', QpfX)",
"def wv_W(QePW):\n Ldyl = msfn.objects.all()\n return _1tc(QePW, 'products.html', {'products': Ldyl})",
"def wv_W(QePW):\n Ldyl = msfn.objects.all()\n return... | [
"0.76710874",
"0.74285233",
"0.7416532",
"0.73523736",
"0.73315704",
"0.7265167",
"0.72566205",
"0.70875335",
"0.70781904",
"0.7023204",
"0.6984352",
"0.6974742",
"0.6964903",
"0.69328207",
"0.6835238",
"0.6812944",
"0.6775822",
"0.6733721",
"0.6732091",
"0.6694664",
"0.66862... | 0.0 | -1 |
Verifies that all routes for products returning "OK" status if exists and 404 if not | def n8Dz(x0hE, KeVq, wfZ7, Yp0J):
Ldyl = msfn.objects.all()
for Lx3t in Ldyl:
ocFo = gxEw('product-detail', kwargs={'pk': Lx3t.pk})
geh0 = x0hE.get(ocFo)
assert geh0.status_code == 200
hGN5 = geh0.content.decode(geh0.charset)
assert Lx3t.name in hGN5
iEDS = gxEw('prod... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jd7O(YKHO):\n _hkX = YKHO.app.get('/products/0')\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_404_NOT_FOUND)",
"def zCQT(YKHO):\n _hkX = YKHO.app.get('/asfdasdf')\n YKHO.assertEqual(_hkX.status_code, 404)\n assert 'NOT FOUND' in _hkX.status",
"def VYq_(YKHO):\n YKHO.assertEquals(YKHO.re... | [
"0.6948749",
"0.6321058",
"0.63120013",
"0.62850505",
"0.6257371",
"0.6216281",
"0.6212385",
"0.6179696",
"0.6155453",
"0.61530423",
"0.6112075",
"0.6110079",
"0.60805446",
"0.60777617",
"0.6060571",
"0.6052491",
"0.60472834",
"0.60396665",
"0.60372424",
"0.6021137",
"0.60027... | 0.5943388 | 25 |
Assign a registered instance to a layer. | def x2qc(YNKq=None, jo8M=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ng0A(YKHO, KAOR):\n YKHO.instance = KAOR",
"def QRw5(H5ew, yR_P):\n gr_i(H5ew, yR_P, Vglw)",
"def _X0O(YKHO, gEmA):\n rZh3 = id(gEmA)\n YKHO.tmp_list.append(gEmA)\n rZh3 = id(YKHO.tmp_list[-1])\n if rZh3 in YKHO.graph:\n ihqj = jth9.deepcopy(gEmA)\n YKHO.tmp_list.append(ihqj... | [
"0.6242037",
"0.6161679",
"0.6132995",
"0.5936071",
"0.59317166",
"0.5850365",
"0.5835677",
"0.5813594",
"0.56972367",
"0.567106",
"0.5670981",
"0.5670981",
"0.5670981",
"0.5670981",
"0.5670981",
"0.5670981",
"0.5670981",
"0.5658966",
"0.5587182",
"0.5584452",
"0.55191666",
... | 0.6805995 | 0 |
Requests a description of one or more layers in a specified stack. | def wqPk(duPr=None, jo8M=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l8Rv(MhH7, IWgC):\n try:\n tEsb = MhH7.describe_stacks(StackName=IWgC)['Stacks']\n return tEsb[0]\n except nheh as e:\n if 'does not exist' not in tTpl.response['Error']['Message']:\n raise tTpl\n return None",
"def i8XJ(duPr=None):\n pass",
"def z7LY(bD7m):\... | [
"0.577908",
"0.55523837",
"0.55034184",
"0.54681355",
"0.5400006",
"0.539834",
"0.52887154",
"0.5279896",
"0.5156389",
"0.5143111",
"0.51420945",
"0.5101896",
"0.50756633",
"0.5072962",
"0.50555223",
"0.4989658",
"0.49862868",
"0.49649313",
"0.496198",
"0.49598914",
"0.491865... | 0.70992595 | 0 |
Describes the operating systems that are supported by AWS OpsWorks Stacks. | def znYK():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l8Hh(YKHO):\n return YKHO.os",
"def mLA8(YKHO, lo9Y=None):\n xDcj = []\n oYF2(xDcj, lo9Y)\n return YKHO._SendRequest(mdOq, '/%s/os' % xuBk, xDcj, None)",
"def YOaz(YKHO):\n return YKHO._operatingsystem",
"def a9EH():\n return ['linux']",
"def Hy7s(YKHO) -> str:\n Hy7s = None\n d... | [
"0.6498918",
"0.64331657",
"0.64208287",
"0.62678206",
"0.6204934",
"0.6198747",
"0.60045093",
"0.5897908",
"0.5888538",
"0.5849524",
"0.58367825",
"0.5819666",
"0.57756984",
"0.5747962",
"0.5743054",
"0.57257926",
"0.5721145",
"0.5696014",
"0.5670472",
"0.5670472",
"0.565753... | 0.7535174 | 0 |
Initialize _init_optimizing object. Returns | def Zd__(YKHO):
try:
dyeT = YKHO._conf.get(HuY7.BASE_CONFIG, HuY7.MODEL_CONFIG)
Fv2L = enR0.ConfigParser()
Fv2L.read(dyeT)
YKHO._optimizing = vppl.Optimizing(Fv2L, log_path=YKHO.xeasy_log_path)
if YKHO._optimizing.init() == bw30.RunStatus.SUCC:
return True
exc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO, *qIxc, **B2fa):\n super().initialize(*qIxc, **B2fa)\n YKHO.updates_per_optimize = 1",
"def uIcm(YKHO, *qIxc):\n return Z9eP.OptimizerAlgASync_initialize(YKHO, *qIxc)",
"def LqkW(YKHO):\n if YKHO.FLAGS.optimizer == 'Adam':\n YKHO.solver = ZylS.train.AdamOptimizer(learning_rate=... | [
"0.720435",
"0.68492883",
"0.6793287",
"0.671453",
"0.66703504",
"0.65767103",
"0.655801",
"0.6554908",
"0.6524802",
"0.64999706",
"0.64458036",
"0.6428565",
"0.6422132",
"0.64200056",
"0.6411262",
"0.6410988",
"0.639894",
"0.639894",
"0.639894",
"0.639894",
"0.63704264",
"... | 0.7080019 | 1 |