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 |
|---|---|---|---|---|---|---|
Find the best lambda value. | def LXKc(Q_RX, e3Zm, Qnlx, _nuU):
KYhM = None
XObx = 1
for Ty9i in range(-19, 20):
if Ty9i >= 0:
wEf2 = float('1e+' + str(Ty9i))
else:
wEf2 = float('1e' + str(Ty9i))
yzQ0 = nc24(Q_RX, e3Zm, wEf2)
P1dF = W4jA(yzQ0, Qnlx, _nuU)
if XObx > P1dF:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NqLk(C3ST):\n QVEM = [1000.0, 0.001, 100.0, 0.001, 100.0, 100.0, 0.001, 100.0]\n w4rS = QVEM[C3ST]\n return w4rS",
"def NhzW(YKHO):\n YKHO.startValue = YKHO.__findStartValue()\n if YKHO.startIdx != 0 and YKHO.startIdx != YKHO.nStartValues - 1:\n KCHu = Zxt2.optimize.brent(YKHO.__minBaye... | [
"0.74376184",
"0.71890557",
"0.655791",
"0.6550202",
"0.63085747",
"0.6219973",
"0.6184345",
"0.61574817",
"0.6153785",
"0.61114615",
"0.6099454",
"0.60798913",
"0.6037426",
"0.6037426",
"0.6017245",
"0.5970384",
"0.58916986",
"0.58453995",
"0.5843659",
"0.5816554",
"0.578878... | 0.6234567 | 5 |
Returns a list of the headlines with the corresponding keyword | def IpHh(YKHO, YSA3):
QRGW = YKHO.keyword_headlines()
m0BT = set()
for Sr9I in QRGW[YSA3]:
hGN5 = Sr9I.headlineid.content
m0BT.add(hGN5)
return list(m0BT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _nL6(YKHO, YSA3=None):\n if YSA3:\n return YKHO.get_headlines_with_keyword(YSA3)\n else:\n return YKHO.get_all_headlines()",
"def OK8u(YKHO):\n Csk6 = {}\n for vexM in YKHO.keyword_queryset:\n Csk6[vexM.content] = YKHO.headlinekeyword_queryset.filter(keywordid=vexM.id)\n r... | [
"0.8323906",
"0.77197367",
"0.746953",
"0.7303126",
"0.68182117",
"0.6805935",
"0.66141784",
"0.64018786",
"0.6364445",
"0.63333815",
"0.59744793",
"0.59658384",
"0.59578186",
"0.5909768",
"0.5894226",
"0.58745706",
"0.5857797",
"0.5850383",
"0.58470386",
"0.58389264",
"0.581... | 0.8318916 | 1 |
Welcome route Show api info | def NMoC(YKHO, **B2fa):
return {'app_fullname': kXbn.app_name, 'app_name': kXbn.package_name, 'app_version': kXbn.app_version} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uthR():\n return f'Available Routes:<br/>/api/v1.0/etf_info<br/>/api/v1.0/mutualfunds_info'",
"def uthR():\n print(\"Server received request for 'Home' page...\")\n return f'Available Routes:<br/>/api/v1.0/names<br/>/api/v1.0/passengers'",
"def uthR():\n return f'Available Routes:<br/>/api/prec... | [
"0.78570443",
"0.7700679",
"0.76447624",
"0.76302814",
"0.76104695",
"0.75441355",
"0.7513181",
"0.75017893",
"0.748835",
"0.748835",
"0.747807",
"0.7470789",
"0.7469684",
"0.7465586",
"0.7445721",
"0.74422014",
"0.7441175",
"0.7425304",
"0.74079293",
"0.7407577",
"0.74064386... | 0.0 | -1 |
Find unoccupied positions on the board. | def RIE3(iBIi, VVFx):
return [r845 for r845 in Ni9Y(len(iBIi.positions)) if not VVFx.has_key(r845)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ibCo(YKHO):\n FBNX = []\n for YRbF in range(YKHO.grid_size):\n for r845 in range(YKHO.grid_size):\n if YKHO.grid[YRbF][r845] == 0:\n FBNX.append((YRbF, r845))\n if FBNX == []:\n raise eUuH('Game Over. No free position left.')\n return FBNX",
"def WKPz(YKHO,... | [
"0.74757147",
"0.73623365",
"0.7305674",
"0.72659814",
"0.7136726",
"0.6983209",
"0.6902076",
"0.69016534",
"0.68626094",
"0.6858928",
"0.67981094",
"0.67022055",
"0.66423976",
"0.65927297",
"0.6580229",
"0.6564762",
"0.65628403",
"0.6559673",
"0.654521",
"0.65293694",
"0.652... | 0.77521825 | 0 |
Returns a QuerySet containing only available instances (i.e. not selected previously) | def yWbd(YKHO, dqd8=None, Di7M=None):
umWR = YKHO.all()
JSQF = YKHO.all()
for YEnM in umWR:
if dqd8:
if not YEnM.available and dqd8.filter(id=YEnM.id).count() == 0:
JSQF = JSQF.exclude(id=YEnM.id)
elif Di7M:
if not YEnM.available and YEnM.id != Di7M.id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO):\n return kMmW(YKHO.model, using=YKHO._db)",
"def k66M(YKHO):\n WlEx = Y4Gy.objects.filter(pub_date__lte=rIAI.now()).order_by('-pub_date')\n j28w = []\n for bAls in WlEx:\n if not bAls.choice_set.all().exists():\n j28w.append(bAls.id)\n return Y4Gy.objects.exclude(... | [
"0.6884471",
"0.68695015",
"0.67739236",
"0.67603797",
"0.671835",
"0.65459937",
"0.6483099",
"0.64685464",
"0.64685464",
"0.6414166",
"0.6411734",
"0.6331146",
"0.6330862",
"0.6273209",
"0.6255611",
"0.6248718",
"0.62450546",
"0.6231552",
"0.6221019",
"0.6218501",
"0.6209835... | 0.6682215 | 5 |
Determines whether the model instance has already been selected in a related field (ManyToManyField, OneToOneField). | def yWbd(YKHO):
V_D6 = YKHO._meta.get_fields()
for Jyyj in V_D6:
if isinstance(Jyyj, FYrf.ManyToManyRel):
hkS8 = Jyyj.get_accessor_name()
if getattr(YKHO, hkS8).count() > 0:
return False
elif isinstance(Jyyj, FYrf.OneToOneRel):
hkS8 = Jyyj.get_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IdCq(Emd4, C3ST):\n return bool(Emd4.get_related_field(C3ST) or Emd4.get_reverse_related_field(C3ST))",
"def b4fY(YKHO):\n return len(YKHO.user_storage.all()) > 0",
"def qeqw(YKHO, Jyyj):\n return Jyyj in YKHO.extra_fields",
"def sjXf(YKHO, YEnM):\n YKHO._not_support_combined_queries('contain... | [
"0.6742698",
"0.6351571",
"0.6249839",
"0.6177484",
"0.594861",
"0.58511186",
"0.58348316",
"0.5823608",
"0.5715787",
"0.56835854",
"0.5671056",
"0.5618836",
"0.5598657",
"0.5598657",
"0.55803764",
"0.55689776",
"0.5560058",
"0.55562407",
"0.551438",
"0.55038196",
"0.54985",
... | 0.66686696 | 1 |
Convert datetime objects to GPS timestamp and nanoseconds | def YkBn(_c1T):
E3oo = xyXF.utc_to_gps(GRk0.timegm(_c1T.utctimetuple()))
kU5D = _c1T.microsecond * 1000
return (E3oo, kU5D) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WtpU(YKHO):\n StIK = YKHO.ts_types['gpstime']\n try:\n Ethl = YKHO.leapseconds\n TY75 = kJUT.parse(YKHO.timestamp)\n if hasattr(TY75.tzinfo, '_offset'):\n ekQh = TY75.tzinfo._offset.total_seconds()\n TY75 = kJUT.parse(YKHO.timestamp, ignoretz=True)\n else... | [
"0.64110595",
"0.6309177",
"0.6237445",
"0.61667824",
"0.61475044",
"0.61468357",
"0.6086212",
"0.606989",
"0.6046954",
"0.60396606",
"0.6038311",
"0.60068566",
"0.59911877",
"0.5953865",
"0.59505874",
"0.5947502",
"0.5941145",
"0.5941145",
"0.5921453",
"0.591261",
"0.5876311... | 0.7270666 | 0 |
Frees any resources used by the environment. Implement this method for an environment backed by an external process. This method be used directly ```python env = Env(...) Use env. env.close() ``` or via a context manager ```python | def DDI8(YKHO) -> None:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LPZs(YKHO):\n YKHO.env.close()",
"def DDI8(YKHO):\n YKHO.env.close()",
"def W4JM(YKHO):\n super(LiD6, YKHO).close()",
"def DDI8(YKHO):\n if YKHO.__env:\n YKHO.__env.close()\n YKHO.__env = None\n super(dCtp, YKHO).close()",
"def kcUV(YKHO):\n YKHO.destroy_env()\n YKHO.... | [
"0.7741044",
"0.7280734",
"0.71917665",
"0.71788585",
"0.67623675",
"0.6581033",
"0.6527342",
"0.64914477",
"0.6491418",
"0.64707375",
"0.6448349",
"0.6402401",
"0.6377555",
"0.6377555",
"0.63491684",
"0.6225186",
"0.6214336",
"0.6168082",
"0.61409414",
"0.6053957",
"0.605207... | 0.0 | -1 |
Check whether an access token is blacklisted or not. | def UGu7(SUyY):
from .models import BlacklistToken
f9DO = SUyY['jti']
if BlacklistToken.check_blacklist(f9DO):
raise ArtZ('Token is blacklisted. Please log in again.')
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZddJ(eOtH):\n if pEPT.query.filter_by(token=eOtH).first():\n return True\n return False",
"def jEK3(SUyY):\n return SUyY['jti'] in lrhv",
"def jEK3(SUyY):\n f9DO = SUyY['jti']\n return C3ST.revoked_token.RevokedToken.is_blacklisted(f9DO)",
"def sLk1(eOtH):\n eOtH = FYrf.TokenBlac... | [
"0.7900954",
"0.74636424",
"0.74054307",
"0.73200846",
"0.7160083",
"0.71336967",
"0.6999018",
"0.697642",
"0.67577994",
"0.6653733",
"0.6649965",
"0.66363907",
"0.66145855",
"0.64979804",
"0.6386341",
"0.636993",
"0.63569194",
"0.6339204",
"0.63004833",
"0.62949896",
"0.6245... | 0.69158584 | 8 |
Checks only authenticated users can see the page | def _DYp(YKHO):
pmON = gxEw('import-csv')
QePW = b9AL().get(pmON)
QePW.user = NEJe.blend(mv1M)
geh0 = pAy1(QePW)
assert geh0.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO, QePW, **B2fa):\n return True",
"def qHTF(YKHO, QePW, tTee):\n if QePW.user.is_authenticated():\n return True\n return False",
"def dB_d(QePW):\n return not gCuF.REQUIRE_LOGIN or QePW.user.is_authenticated()",
"def rts1(YKHO):\n return True",
"def Y8Sy(QePW):\n return... | [
"0.75106347",
"0.74165606",
"0.7196165",
"0.7195553",
"0.71893704",
"0.7175715",
"0.71588826",
"0.71588826",
"0.71588826",
"0.71588826",
"0.71588826",
"0.71588826",
"0.71588826",
"0.71113145",
"0.70598507",
"0.7030012",
"0.70088905",
"0.699589",
"0.69223857",
"0.69180375",
"0... | 0.0 | -1 |
Checks only authenticated users can see the page | def sqDM(YKHO):
pmON = gxEw('setting-csv')
QePW = b9AL().get(pmON)
QePW.user = NEJe.blend(mv1M)
geh0 = rd1l(QePW)
assert geh0.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO, QePW, **B2fa):\n return True",
"def qHTF(YKHO, QePW, tTee):\n if QePW.user.is_authenticated():\n return True\n return False",
"def dB_d(QePW):\n return not gCuF.REQUIRE_LOGIN or QePW.user.is_authenticated()",
"def rts1(YKHO):\n return True",
"def Y8Sy(QePW):\n return... | [
"0.75106347",
"0.74165606",
"0.7196165",
"0.7195553",
"0.71893704",
"0.7175715",
"0.71588826",
"0.71588826",
"0.71588826",
"0.71588826",
"0.71588826",
"0.71588826",
"0.71588826",
"0.71113145",
"0.70598507",
"0.7030012",
"0.70088905",
"0.699589",
"0.69223857",
"0.69180375",
"0... | 0.0 | -1 |
Instantiate a new SchemaType | def FIMM(YKHO, t6xq: Dict):
YKHO.kind = t6xq.get('kind')
YKHO.name = t6xq.get('name')
YKHO.description = t6xq.get('description')
YKHO.fields: x1iM[b3oQ] = [b3oQ(eHNT) for eHNT in t6xq.get('fields') or [] if eHNT]
YKHO.input_fields = [aDwD(YRbF) for YRbF in t6xq.get('inputFields') or [] if YRbF]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aO5t(YKHO, uPxI: str):\n return",
"def FIMM(YKHO, wzB5=None):\n super(VeZL, YKHO).__init__()\n YKHO.set_data_type('xml')\n YKHO.typeName = None",
"def Lkwt(YKHO) -> h8nf[type]:\n return _mly",
"def FIMM(YKHO, uPxI=None):\n YKHO.schema = uPxI or {}",
"def fwuD(Emd4, **B2fa):\n uPxI ... | [
"0.7132769",
"0.679428",
"0.6635432",
"0.659345",
"0.6592825",
"0.6465888",
"0.6453353",
"0.63999885",
"0.6380593",
"0.63766026",
"0.636462",
"0.63383156",
"0.6335716",
"0.63211817",
"0.62860376",
"0.6270915",
"0.625923",
"0.6207403",
"0.62045443",
"0.62017065",
"0.6196828",
... | 0.63470966 | 11 |
Parse the query type from the root schema. This can either return a string or None. The latter when the endpoint does not support queries. | def yphT(AmXu: Dict) -> uLKX[str, None]:
return Ve9k.parse_operation_type(AmXu, 'queryType') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A2hb(AmXu: Dict, GOAn: str) -> uLKX[str, None]:\n kdD5 = AmXu.get(GOAn, {})\n if not kdD5:\n return None\n return kdD5.get('name')",
"def Lkwt(YKHO) -> h8nf[type]:\n return DUHZ",
"def Lkwt(YKHO) -> h8nf[type]:\n return None",
"def GBIj(YKHO, JD1F):\n try:\n return YKHO.QU... | [
"0.70593387",
"0.5939255",
"0.5924762",
"0.5911261",
"0.5840816",
"0.57200265",
"0.57065624",
"0.5640995",
"0.5613772",
"0.5587588",
"0.55517954",
"0.54139596",
"0.53744495",
"0.5370533",
"0.53518116",
"0.5295712",
"0.52832526",
"0.5279426",
"0.52663785",
"0.52663785",
"0.526... | 0.8196511 | 0 |
Parse the mutation type from the root schema. This can either return a string or None. The latter when the endpoint does not support mutations. | def sj99(AmXu: Dict) -> uLKX[str, None]:
return Ve9k.parse_operation_type(AmXu, 'mutationType') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A2hb(AmXu: Dict, GOAn: str) -> uLKX[str, None]:\n kdD5 = AmXu.get(GOAn, {})\n if not kdD5:\n return None\n return kdD5.get('name')",
"def R1ZS(YKHO, yqeJ=''):\n if yqeJ:\n YKHO.mutation_type = yqeJ\n elif not YKHO.is_valid:\n YKHO.mutation_type = 'not valid'\n elif YKHO... | [
"0.6133898",
"0.5771993",
"0.55856854",
"0.55424494",
"0.55416554",
"0.5471137",
"0.52651036",
"0.52617633",
"0.5190931",
"0.5140541",
"0.50858825",
"0.5052965",
"0.5041517",
"0.5041517",
"0.50238866",
"0.50197643",
"0.49824637",
"0.4972244",
"0.4961925",
"0.49438107",
"0.494... | 0.80457693 | 0 |
Parse an operation type from the root schema. This can either return a string or None. The latter when the endpoint does not support the passed by operation. | def A2hb(AmXu: Dict, GOAn: str) -> uLKX[str, None]:
kdD5 = AmXu.get(GOAn, {})
if not kdD5:
return None
return kdD5.get('name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MV0m(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'operation_type')",
"def Yyrw(YKHO, hTqE):\n evLG = YKHO.operations_map\n if not hTqE and len(evLG) == 1:\n return next(iter(evLG.values()))\n return evLG.get(hTqE)",
"def yphT(AmXu: Dict) -> uLKX[str, None]:\n return Ve9k.... | [
"0.67735726",
"0.6728999",
"0.6351823",
"0.63367105",
"0.59829354",
"0.59829354",
"0.59829354",
"0.59829354",
"0.5836189",
"0.5831232",
"0.5829081",
"0.5590442",
"0.5587668",
"0.55367893",
"0.5521317",
"0.55096656",
"0.5479498",
"0.5452105",
"0.5383543",
"0.5341075",
"0.53038... | 0.79709095 | 0 |
Given a Unity Environment and a QNetwork, this method will generate a buffer of Experiences obtained by running the Environment with the Policy derived from the QNetwork. | def yckk(sEAN: BaseEnv, SwLC: VisualQNetwork, klGB: int, _hZ2: float):
NRcB: jz3H = []
sEAN.reset()
jRqA = list(sEAN.behavior_specs)[0]
Cqok = sEAN.behavior_specs[jRqA]
e1Dd: cuzp[int, _Bzj] = {}
A5Pa: cuzp[int, oyIN.ndarray] = {}
HoE7: cuzp[int, oyIN.ndarray] = {}
VQQe: cuzp[int, float]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def maE2(YKHO):\n for YRbF in range(YKHO.num_frames_per_proc):\n FnMR = YKHO.preprocess_obss(YKHO.obs0, device=YKHO.device)\n Wb4B = YKHO.preprocess_obss(YKHO.obs1, device=YKHO.device)\n with ht2j.no_grad():\n DGZm = YKHO.acmodel0(Wb4B, YKHO.memory0 * YKHO.mask0.unsqueeze(1))\n ... | [
"0.5506977",
"0.5496875",
"0.514291",
"0.5113934",
"0.49886903",
"0.4943921",
"0.49165386",
"0.49162146",
"0.48796564",
"0.48758185",
"0.48588508",
"0.48554084",
"0.4835768",
"0.48339865",
"0.4816758",
"0.48112303",
"0.47756678",
"0.47557953",
"0.47492647",
"0.4732167",
"0.47... | 0.63224953 | 0 |
Gets a plane from 3 points | def sta2(EBgd, HpuQ, Lq8X):
XOOk = HpuQ[0] - EBgd[0]
kYGz = HpuQ[1] - EBgd[1]
dg7v = HpuQ[2] - EBgd[2]
pHXX = Lq8X[0] - EBgd[0]
ftz7 = Lq8X[1] - EBgd[1]
iYf1 = Lq8X[2] - EBgd[2]
jzdc = kYGz * iYf1 - ftz7 * dg7v
Fg_i = pHXX * dg7v - XOOk * iYf1
Z9rn = XOOk * ftz7 - kYGz * pHXX
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SKlf(LTIa, EBgd, HpuQ, Lq8X, pid0):\n EBgd = oyIN.asarray(EBgd)\n HpuQ = oyIN.asarray(HpuQ)\n Lq8X = oyIN.asarray(Lq8X)\n hQHm = Lq8X - EBgd\n jlSq = HpuQ - EBgd\n U7YL = oyIN.cross(hQHm, jlSq)\n jzdc, Fg_i, Z9rn = U7YL\n Csk6 = oyIN.dot(U7YL, Lq8X)\n kEC0 = YU_E.vtkPlane()\n hLRM... | [
"0.75500053",
"0.75069356",
"0.7475429",
"0.7409829",
"0.7394293",
"0.72587293",
"0.70594555",
"0.6911756",
"0.68775445",
"0.6856724",
"0.68564415",
"0.68380785",
"0.68015355",
"0.68015355",
"0.67951053",
"0.67129314",
"0.6660467",
"0.66463685",
"0.6608463",
"0.6591655",
"0.6... | 0.7128078 | 6 |
Returns true if c is a printable character. We do this by checking for ord value above 32 (space), as well as CR (\r), LF (\n) and tab (\t) | def oFu_(Z9rn):
return ord(Z9rn) >= 32 or Z9rn in ['\r', '\n', '\t'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oFu_(KCHu):\n for Z9rn in KCHu:\n if Z9rn not in tFU7:\n return False\n return True",
"def oFu_(Fg_i):\n return Fg_i in tTpl(vIwR.printable)",
"def TRIp(Z9rn):\n if ord(Z9rn) < 32:\n return False\n if ord(Z9rn) == 127:\n return False\n return True",
"def ... | [
"0.77798957",
"0.7536381",
"0.7419245",
"0.7221991",
"0.718354",
"0.7084998",
"0.7084998",
"0.70768076",
"0.70703983",
"0.6941782",
"0.6763601",
"0.66158307",
"0.66158307",
"0.6564988",
"0.6561958",
"0.6391701",
"0.6390051",
"0.6385484",
"0.63393587",
"0.63295555",
"0.6323699... | 0.89795405 | 0 |
Create the root node of the BST. | def FIMM(YKHO, mWFP):
dsE5.printMsg('We Initiated a BST with no root node')
YKHO.name = mWFP
YKHO.root = None
YKHO.size = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7DL(YKHO):\n try:\n FQcb(Yg1o.TreeliteTreeBuilderSetRootNode(YKHO.tree.handle, gk2W.c_int(YKHO.node_key)))\n except AttributeError:\n raise ICwg('This node has never been inserted into a tree; ' + 'a node must be inserted before it can be a root')",
"def iuYD():\n tk5Y = i8DB(5)\n ... | [
"0.7032419",
"0.6934794",
"0.68248075",
"0.67966664",
"0.6757742",
"0.6755082",
"0.67382634",
"0.67275465",
"0.67275465",
"0.6668411",
"0.6649478",
"0.66437757",
"0.6606337",
"0.6603094",
"0.6603094",
"0.65813065",
"0.65738034",
"0.6492516",
"0.6490673",
"0.6471958",
"0.64572... | 0.6229294 | 29 |
Initialisation, where df is a pandas DataFrame and var is the name of the column to study and init_pars is a dictionary with initial values | def FIMM(YKHO, jQ3Z, Nk6w, T8ck, C7Ls, Kt_s, A3Vt, Csk6, Z9rn, SRYB='dep_var', rpc4=None, NKcE='iterate'):
YKHO.method = NKcE
YKHO.Z = Nk6w
YKHO.Q = T8ck
YKHO.H = C7Ls
YKHO.T = Kt_s
YKHO.R = A3Vt
YKHO.d = Csk6
YKHO.c = Z9rn
YKHO.df = jQ3Z
YKHO.var = SRYB
YKHO.y = oyIN.array(j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, jQ3Z, GLYr, SRYB='dep_var', XuY2='Volume of Nile'):\n YKHO.df = jQ3Z\n YKHO.var = SRYB\n YKHO.var_name = XuY2\n YKHO.y = oyIN.array(jQ3Z[SRYB].values.flatten())\n YKHO.times = jQ3Z.index\n YKHO.pardict = GLYr\n YKHO.options = {'eps': 1e-09, 'maxiter': 2000}",
"def DbxN(xqoZ):\... | [
"0.7032874",
"0.5726817",
"0.55134976",
"0.5488105",
"0.5354998",
"0.5293255",
"0.5284768",
"0.5283604",
"0.52450967",
"0.52211875",
"0.5218443",
"0.52158165",
"0.5208098",
"0.5172965",
"0.51615965",
"0.5151945",
"0.513557",
"0.51037365",
"0.5097976",
"0.5087936",
"0.50831324... | 0.5161708 | 14 |
Updates a torch model so that input minibatches are parallelized across the batch dimension to utilise multiple gpus. If model parallel is set to True and execution is in test mode, then model is partitioned to perform full volume inference. This assumes the model has been created, that the optimizer has not yet been c... | def hf7b(Emd4, C3ST: DeviceAwareModule, GPtr: ModelConfigBase, sS_T: ModelExecutionMode) -> RZug:
if GPtr.use_gpu:
C3ST = C3ST.cuda()
G9jH.info('Adjusting the model to use mixed precision training.')
if GPtr.use_model_parallel:
YfpN = GPtr.get_cuda_devices()
assert Yf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IkCu(YKHO, vuQs: int, aDYX: int) -> None:\n s7lh = ffjU()\n if s7lh.model_parallel_size is not None:\n kmz0.destroy_model_parallel()\n if ht2j.distributed.is_initialized():\n kmz0.initialize_model_parallel(tensor_model_parallel_size=s7lh.tensor_model_parallel_size, pipeline_model... | [
"0.5936191",
"0.56602675",
"0.56224686",
"0.5621566",
"0.55595684",
"0.54760945",
"0.54551095",
"0.54427326",
"0.54231954",
"0.54035556",
"0.5396976",
"0.53836715",
"0.5365184",
"0.53514045",
"0.5305904",
"0.5280321",
"0.5267586",
"0.5260385",
"0.525179",
"0.5249681",
"0.5188... | 0.70964164 | 0 |
Loads a checkpoint of an optimizer. | def qqMn(YKHO) -> bool:
if YKHO._optimizer is None:
raise ValueError('Optimizer must be created before optimizer checkpoint can be loaded.')
if not YKHO.checkpoint_path:
G9jH.warning('No checkpoint path provided.')
return False
if not YKHO.checkpoint_path.is_file():
G9jH.warn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nh79(pmON, C3ST, K0do=None, zlJE=True):\n print('Load checkpoint from: {}'.format(pmON))\n xA7f, oyOk = AXOg(pmON)\n C3ST.load_dict(xA7f)\n if not zlJE and K0do is not None:\n if oyOk is not None:\n print('[loading] Load optimizer state from {}'.format(pmON))\n K0do.loa... | [
"0.83664644",
"0.80974585",
"0.80771816",
"0.80259275",
"0.7999482",
"0.79903316",
"0.7857532",
"0.7640271",
"0.75701135",
"0.748829",
"0.7443241",
"0.74228936",
"0.7389801",
"0.7375046",
"0.7372049",
"0.7315069",
"0.7312009",
"0.72855306",
"0.725681",
"0.7247519",
"0.7220198... | 0.7403394 | 12 |
Saves a checkpoint of the current model and optimizer_type parameters in the specified folder and uploads it to the output blob storage of the current run context. The checkpoint's name for epoch 123 would be 123_checkpoint.pth.tar. | def IRyE(YKHO, qtWj: int) -> GkAb:
G9jH.getLogger().disabled = True
h00i = YKHO.model.module.state_dict() if isinstance(YKHO.model, ht2j.nn.DataParallel) else YKHO.model.state_dict()
Pzll = YKHO.config.get_path_to_checkpoint(qtWj)
Pzll.parent.mkdir(exist_ok=True, parents=True)
z8eD = {bmdJ.EPOCH_KEY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t4X7(vauY, eG0V, aaCO):\n V1C0 = Hy7s.path.join(eG0V, aaCO)\n N8sm = vauY.save(V1C0)\n G9jH.info('Saving model as TF checkpoint: %s', N8sm)\n return",
"def IRyE(bPTx, qtWj, dfHy, FbnM):\n Hy7s.makedirs(bPTx, exist_ok=True)\n pmON = W69k(bPTx, str(qtWj) + '.' + str(dfHy) + '.ckpt')\n asse... | [
"0.73279613",
"0.7212068",
"0.7110705",
"0.70985615",
"0.7074814",
"0.7049468",
"0.7041478",
"0.7008442",
"0.7005684",
"0.6975668",
"0.6948612",
"0.6930357",
"0.69280964",
"0.68722343",
"0.6871008",
"0.686374",
"0.6840294",
"0.67784363",
"0.6768815",
"0.6761419",
"0.6749226",... | 0.7023109 | 7 |
Initialize the weights of a Pytorch module. | def vB93(r8hN: Union[torch.nn.Conv3d, torch.nn.BatchNorm3d]) -> None:
import torch
if isinstance(r8hN, torch.nn.Conv3d):
torch.nn.init.normal_(r8hN.weight, 0, 0.01)
elif isinstance(r8hN, torch.nn.BatchNorm3d):
torch.nn.init.constant_(r8hN.weight, 1)
torch.nn.init.constant_(r8hN.bias,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dGkD(yR_P: nn.Module, mWFP: str, xxxP: float=0.0, iU95=False):\n if isinstance(yR_P, U78l.Linear):\n if mWFP.startswith('head'):\n U78l.init.zeros_(yR_P.weight)\n U78l.init.constant_(yR_P.bias, xxxP)\n elif iU95:\n ULTb(yR_P.weight)\n if yR_P.bias is... | [
"0.77734",
"0.7753587",
"0.76126516",
"0.76039255",
"0.75937414",
"0.7557966",
"0.75483835",
"0.75483835",
"0.75483835",
"0.7541337",
"0.75397253",
"0.7527526",
"0.74981326",
"0.7479258",
"0.7456155",
"0.74487233",
"0.74385613",
"0.74289656",
"0.74223495",
"0.74188006",
"0.73... | 0.0 | -1 |
Build a dictionary through a list of words | def o18O(YKHO, V22M: List[str]) -> None:
for GIN8 in V22M:
YKHO.buckets[len(GIN8)].append(GIN8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BCj6(vwCE):\n Csk6 = dict()\n for YRbF in vwCE:\n H5ew = ''.join(sorted(list(YRbF)))\n if H5ew in Csk6:\n Csk6[H5ew].append(YRbF)\n else:\n Csk6[H5ew] = [YRbF]\n return Csk6",
"def K63D(V22M):\n dixj = MabX(set([YKHO.normalize(yzQ0) for yzQ0 in V22M] + V... | [
"0.7771935",
"0.7714796",
"0.76650697",
"0.75896126",
"0.7402118",
"0.7371921",
"0.7257023",
"0.724838",
"0.72190464",
"0.71511894",
"0.7121465",
"0.70906883",
"0.70329714",
"0.69910663",
"0.6939837",
"0.6926235",
"0.69013107",
"0.68620795",
"0.68157786",
"0.6809816",
"0.6763... | 0.75077 | 4 |
Returns if there is any word in the trie that equals to the given word after modifying exactly one character | def TgwQ(YKHO, GIN8: str) -> bool:
return any((sum((jzdc != Fg_i for jzdc, Fg_i in zip(GIN8, SkC9))) == 1 for SkC9 in YKHO.buckets[len(GIN8)])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gtm1(ZOCz, vIwR: str) -> bool:\n return any((yzQ0 == vIwR for yzQ0 in ZOCz))",
"def TgwQ(YKHO, GIN8):\n ZbOB = YKHO.trie\n for YRbF, Npgh in enumerate(GIN8):\n ZbOB = ZbOB.get(Npgh, {})\n if ZbOB:\n continue\n else:\n break\n if YRbF == len(GIN8) - 1 and... | [
"0.7898829",
"0.77123356",
"0.76817137",
"0.7651471",
"0.74973875",
"0.7494274",
"0.7490946",
"0.7471417",
"0.7440383",
"0.7440078",
"0.74153924",
"0.74125475",
"0.73968333",
"0.7382937",
"0.73649126",
"0.7333139",
"0.73310703",
"0.7293905",
"0.729297",
"0.72762936",
"0.72757... | 0.664082 | 86 |
Load data from either a .json file, an open file pointer or a json string. Directly returns any other data. | def ffSL(YKHO, eJTR, JZXy, **B2fa):
if JZXy is None:
raise Bx6I.invalid_json_map[eJTR](f'Cannot load {eJTR} - no data source specified.')
try:
nPrm = lc9H(JZXy, **B2fa)
except FileNotFoundError as e:
raise Bx6I.file_not_found_map[eJTR](tTpl)
except NCp0.decoder.JSONDecodeError as... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WICx(YKHO, qaYW):\n with jSru(qaYW, 'r', encoding=YKHO.file_encoding) as eZ_W:\n try:\n nPrm = qQXR.load(eZ_W)\n except (qQXR.JSONDecodeError, UnicodeDecodeError):\n eZ_W.seek(0)\n nPrm = Nhuv.read_json(data_generator=eZ_W, selected_columns=YKHO.selected_keys, ... | [
"0.74808633",
"0.7463258",
"0.7429995",
"0.7426092",
"0.73366517",
"0.72446245",
"0.7234326",
"0.7181051",
"0.7129091",
"0.71012217",
"0.7058075",
"0.70502263",
"0.7007759",
"0.6973326",
"0.69674516",
"0.6960993",
"0.69258857",
"0.69136333",
"0.6907644",
"0.6902104",
"0.68784... | 0.7064134 | 10 |
Validate that the installed version is consistent with an optional version specification in the twine file. | def MRXX(YKHO, JH_o):
NpBI = RkCj.get_distribution('twined').version
bo34.debug('Twine versions... %s installed, %s specified in twine', NpBI, JH_o)
if JH_o is not None and NpBI != JH_o:
raise Bx6I.TwineVersionConflict(f'Twined library version conflict. Twine file requires {JH_o} but you have {NpBI}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VKPC(YKHO):\n pass",
"def iHIh():\n if gCuF.CONFIGURATOR_MODULE == 'bootmachine.contrib.configurators.salt':\n e14N = gCuF.SALT_AUR_PKGVER\n JJ8X = gCuF.SALT_AUR_PKGREL\n geh0 = dTAH.urlopen('https://aur.archlinux.org/packages/sa/salt/PKGBUILD')\n for zFiD in geh0:\n ... | [
"0.6902856",
"0.6780541",
"0.67345285",
"0.6424998",
"0.6407822",
"0.64057225",
"0.6383413",
"0.6376578",
"0.6337082",
"0.6273863",
"0.6264896",
"0.62600714",
"0.6233149",
"0.62270665",
"0.6219592",
"0.61668104",
"0.61236084",
"0.6105264",
"0.60952014",
"0.60824794",
"0.60168... | 0.7964266 | 0 |
custom function to remove the stopwords | def aUcs(YKHO, l5Ny):
return ' '.join([GIN8 for GIN8 in str(l5Ny).split() if GIN8 not in YKHO.STOPWORDS]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)",
"def aUcs(l5Ny):\n di0c = ['i', 'me', 'my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', 'your', 'yours', 'yourself', 'yourselves', 'he', 'him'... | [
"0.8823565",
"0.8401623",
"0.8289207",
"0.8228253",
"0.82197374",
"0.8181915",
"0.8181915",
"0.8181915",
"0.8181915",
"0.8164255",
"0.81541234",
"0.81183577",
"0.8115647",
"0.81121063",
"0.8105464",
"0.8080783",
"0.8072988",
"0.806302",
"0.80382043",
"0.80332667",
"0.7997704"... | 0.8248563 | 3 |
Create a nonce with timestamp included | def GMXN():
mZOz = '%Y-%m-%dT%H:%M:%SZ'
Cd1f = ITS7.strftime(mZOz, ITS7.gmtime())
jUwZ = ''
for tdoI in range(0, 128):
if chr(tdoI).isalpha() or chr(tdoI).isalnum():
jUwZ += chr(tdoI)
Jv62 = ''
RA7g = tuKI.SystemRandom()
for YRbF in range(0, 6):
Jv62 += RA7g.choic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsbL():\n qGd9 = 'ifh2847fhsn\"lqOEYd@#Djh(&'\n hash = IMHX.new(qGd9)\n hash.update(str(qcWV.utcnow()))\n return hash.hexdigest()",
"def kBBd():\n return str(int(round(ITS7.time() * 1000)))",
"def Z6dR():\n return str(round(100000 * ITS7.time()) * 2)",
"def kBBd():\n return kxTZ().he... | [
"0.81308687",
"0.808096",
"0.78753763",
"0.7763684",
"0.7712205",
"0.7655275",
"0.7655275",
"0.7587932",
"0.7550162",
"0.7538623",
"0.7479432",
"0.74498117",
"0.74498117",
"0.7414203",
"0.7234778",
"0.713928",
"0.69921154",
"0.6871529",
"0.6782506",
"0.6731106",
"0.66884166",... | 0.8013038 | 2 |
Returns the default collector settings | def yDgW(YKHO):
GPtr = super(PvHS, YKHO).get_default_config()
GPtr.update({'path': 'yammer', 'url': 'http://127.0.0.1:8081/metrics', 'username': '', 'password': ''})
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDgW(YKHO):\n GPtr = super(leyK, YKHO).get_default_config()\n GPtr.update({'enabled': 'True', 'fs': ',', 'timeout': 300})\n return GPtr",
"def qimH():\n return {}",
"def yDgW(YKHO):\n GPtr = super(iwOa, YKHO).get_default_config()\n GPtr.update({'url': lMln, 'path': 'dropwizard'})\n ret... | [
"0.70514023",
"0.7008024",
"0.69490683",
"0.6713433",
"0.65743333",
"0.65309024",
"0.6521635",
"0.6515402",
"0.6466526",
"0.6447688",
"0.641337",
"0.6397818",
"0.6380512",
"0.63683224",
"0.6357208",
"0.6331759",
"0.63120294",
"0.62353724",
"0.6231899",
"0.62074906",
"0.620161... | 0.63517016 | 15 |
Checks that the email is not already in use | def YBiq(YKHO):
tTpl = YKHO.cleaned_data['email'].lower()
if mv1M.objects.filter(email=tTpl).count() > 0:
raise H6V6.ValidationError('An existing account is using that email address.')
return tTpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eSEi(YKHO, D3lj):\n QePW = YKHO.req_factory.post('unused_url', data={'new_email': D3lj, 'password': 'test'})\n QePW.user = YKHO.user\n YKHO.assertFailedRequest(YKHO.run_request(QePW), 'An account with this e-mail already exists.')",
"def YBiq(YKHO):\n Ys3F = mv1M.objects.filter(email__iexact=YKHO... | [
"0.7703849",
"0.69526696",
"0.6862401",
"0.6811217",
"0.6774223",
"0.67012995",
"0.6641258",
"0.6557139",
"0.65535825",
"0.6535207",
"0.6535207",
"0.6481211",
"0.64502555",
"0.63732386",
"0.63573235",
"0.63533545",
"0.633444",
"0.63318545",
"0.63180923",
"0.6309124",
"0.63064... | 0.6098911 | 40 |
Determines if a filename is a valid Python module. Assumes if is just the end of a path (i.e. does not contain ``os.path.sep``. | def ldqA(Ux0P):
if not Ux0P.endswith('.py'):
return False
if Ux0P == '__init__.py':
return True
for y0cW in JJPT:
if Ux0P.startswith(y0cW):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PCbE(pmON: str) -> bool:\n return Hy7s.path.isfile(pmON) and pmON.endswith('.py')",
"def PCbE(pmON):\n IznC, YBcr = Hy7s.path.splitext(pmON)\n if YBcr == '.py':\n return True\n elif Hy7s.path.exists(Hy7s.path.join(pmON, '__init__.py')):\n return True\n else:\n return False... | [
"0.78435075",
"0.7644184",
"0.7453708",
"0.74041945",
"0.72734565",
"0.7177794",
"0.7162914",
"0.6941581",
"0.688582",
"0.68661207",
"0.68447286",
"0.68002564",
"0.66656727",
"0.6652094",
"0.6552671",
"0.6495056",
"0.6463849",
"0.6461724",
"0.63578534",
"0.62999207",
"0.62551... | 0.73747915 | 4 |
Initialise parameters for MARL training | def FIMM(YKHO, vVLY, TcwO, Norb=128, pIUg=64, b0Ix=1e-05, RHJb=2):
super(RifS, YKHO).__init__(vVLY, TcwO, RHJb)
YKHO.hidden_dim = Norb
YKHO.state_rep_size = pIUg
YKHO.learning_rate = b0Ix
YKHO.predictor_dev = 'cpu'
YKHO.target_dev = 'cpu'
YKHO.predictor_model = zpFn(vVLY, TcwO, Norb, pIUg)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K55i(YKHO):\n for YRbF in range(1, YKHO.L):\n YKHO.W[YRbF - 1] = oyIN.random.randn(YKHO.layer_dims[YRbF], YKHO.layer_dims[YRbF - 1]) * 0.01\n YKHO.b[YRbF - 1] = oyIN.zeros((YKHO.layer_dims[YRbF], 1))",
"def EToq(YKHO) -> None:\n U78l.init.uniform_(YKHO.emb.weight, YKHO.init_lower, YKHO.in... | [
"0.7397329",
"0.7190591",
"0.7161128",
"0.7092822",
"0.7059068",
"0.6987178",
"0.6977974",
"0.69458026",
"0.6906171",
"0.68707854",
"0.6857603",
"0.6851031",
"0.6840059",
"0.6775705",
"0.6761099",
"0.6754401",
"0.67539597",
"0.6738152",
"0.6727141",
"0.6707005",
"0.6685758",
... | 0.0 | -1 |
Return True if command cmd has a compute/uncompute tag. | def Gx1s(HCmI):
for TZ9E in HCmI.tags:
if TZ9E in [Ffgf(), XP1q()]:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XIKY(SRUm):\n bySB = getattr(SRUm, 'features', [])\n RCfg = set(bySB) - set(('runcmd',))\n return not RCfg and getattr(SRUm, 'rule', None) is None",
"def sD09(YKHO):\n return True",
"def sfjD(YKHO, mWFP):\n return mWFP in YKHO.cmds",
"def opZp(YKHO, H5ew):\n YX0Z = False\n for YRbF i... | [
"0.581931",
"0.5786073",
"0.57732224",
"0.5759559",
"0.5728099",
"0.5650557",
"0.5638925",
"0.5607169",
"0.56052583",
"0.55509794",
"0.5506383",
"0.55021065",
"0.5499619",
"0.54725796",
"0.54692024",
"0.546461",
"0.5463064",
"0.5448807",
"0.5434303",
"0.5420862",
"0.5408913",... | 0.9016012 | 0 |
Sets "max age" for the starboard messages. If a message is older than the specified days, the message is ignored. Note that existing messages are not affected. Defaults to 7 (one week). | async def maxage(YKHO, OaeV, ZJe_: int):
if ZJe_ > 0:
YKHO.bot.db.execute('UPDATE starboards SET age = ? WHERE channel_id = ?', (ZJe_, OaeV.channel.id))
await OaeV.say('star.age', ZJe_)
await YKHO.set_topic(OaeV.channel.id)
else:
await OaeV.say('star.unsigned', ZJe_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uqEL(YKHO, uqEL):\n YKHO._max_age = uqEL",
"def uqEL(YKHO, uqEL):\n YKHO._max_age = uqEL",
"def uqEL(YKHO, uqEL):\n if uqEL is not None and uqEL < -1:\n raise ValueError('Invalid value for `max_age`, must be a value greater than or equal to `-1`')\n YKHO._max_age = uqEL",
"def Je0I(mWF... | [
"0.6970839",
"0.6911315",
"0.61830574",
"0.6088173",
"0.60299325",
"0.58305186",
"0.58305186",
"0.57887924",
"0.56967527",
"0.5692167",
"0.5583454",
"0.5548023",
"0.5548023",
"0.55217004",
"0.54962564",
"0.54864573",
"0.5448077",
"0.5405468",
"0.5401819",
"0.53459024",
"0.530... | 0.6915784 | 1 |
Enables/disables DM when your message was stared. If the parameter is not given, this returns current status. Can be used anywhere including DM. | async def star_dm(YKHO, OaeV, TSMu: bool=None):
if TSMu is None:
Aofo = YKHO.bot.db.execute('SELECT starboard_dm FROM users WHERE user_id = ?', (OaeV.author.id,)).fetchone()
etR_ = Aofo['starboard_dm'] if Aofo else 0
zIQp = OaeV._(f'star.dm{['Disabled', 'Enabled'][etR_]}')
return awa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def moderation(YKHO, OaeV):\n Qj8D = await YKHO.toggle_dm_setting(OaeV.author.id, 'ban_kick_mute')\n if Qj8D:\n Ol8d = ':white_check_mark: You will now receive DMs when you get muted, kicked or banned by me.'\n else:\n Ol8d = ':white_check_mark: You will no longer receive DMs when you ... | [
"0.64651364",
"0.59721977",
"0.5788894",
"0.5637827",
"0.559156",
"0.55866206",
"0.5582838",
"0.5560499",
"0.5545492",
"0.5535075",
"0.55287397",
"0.5520025",
"0.5509821",
"0.5500232",
"0.5459743",
"0.54503405",
"0.544722",
"0.54312956",
"0.5386221",
"0.5380486",
"0.53682333"... | 0.6530001 | 0 |
Return the minimum and maximum values in the input. | def SUNP(Q6uT, *, H5ew=lambda WKvO: WKvO):
QNvc, KpxR = y54_(Q6uT)
return r0C_(min(QNvc, key=H5ew), max(KpxR, key=H5ew)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOWs(fUYa):\n return (min(fUYa), max(fUYa))",
"def Y00y(gXtX):\n if len(gXtX) <= 0:\n return ()\n dgIT = gXtX[0]\n bQ6z = gXtX[0]\n for YRbF in range(len(gXtX)):\n ycBG = gXtX[YRbF]\n if ycBG <= dgIT:\n dgIT = ycBG\n if ycBG >= bQ6z:\n bQ6z = y... | [
"0.7975695",
"0.77930915",
"0.7780894",
"0.7709472",
"0.76314646",
"0.7625426",
"0.7577489",
"0.7568",
"0.75583875",
"0.74224806",
"0.7407902",
"0.7383869",
"0.7375017",
"0.73552513",
"0.7351573",
"0.72896475",
"0.72671056",
"0.7245023",
"0.721607",
"0.72126466",
"0.72114575"... | 0.0 | -1 |
StereoGroup atoms are in the reaction, but the reaction doesn't affect the chirality at the stereo centers > preserve stereo group | def O1vd(YKHO):
tj0V = '[C@:1]>>[C@:1]'
XF7H = ['F[C@H](Cl)Br |o1:1|', 'F[C@@H](Cl)Br |&1:1|', 'FC(Cl)Br']
for elux in XF7H:
Ldyl = UhGS(tj0V, elux)
YKHO.assertEqual(Ldyl, elux) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Il71(YKHO):\n Ldyl = UhGS('[C:1]>>[C@@:1]', 'F[C@H](Cl)Br |o1:1|')\n YKHO.assertEqual(Ldyl, 'F[C@@H](Cl)Br')\n Ldyl = UhGS('[C:1]>>[C@@:1]', 'F[C@@H](Cl)Br |&1:1|')\n YKHO.assertEqual(Ldyl, 'F[C@@H](Cl)Br')\n Ldyl = UhGS('[C:1]>>[C@@:1]', 'FC(Cl)Br')\n YKHO.assertEqual(Ldyl, 'F[C@@H](Cl)Br')\... | [
"0.75458586",
"0.7168434",
"0.7091707",
"0.6843433",
"0.6454386",
"0.60892975",
"0.5650636",
"0.55933136",
"0.55537635",
"0.5514306",
"0.54825073",
"0.5466172",
"0.54264325",
"0.5393186",
"0.5328103",
"0.5303823",
"0.5297103",
"0.52903897",
"0.5283487",
"0.5206587",
"0.504461... | 0.5968604 | 6 |
StereoGroup atoms are in the reaction, but the reaction doesn't specify the chirality at the stereo centers > preserve stereo group | def tre8(YKHO):
tj0V = '[C:1]>>[C:1]'
XF7H = ['F[C@H](Cl)Br |o1:1|', 'F[C@@H](Cl)Br |&1:1|', 'FC(Cl)Br']
for elux in XF7H:
Ldyl = UhGS(tj0V, elux)
YKHO.assertEqual(Ldyl, elux) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Il71(YKHO):\n Ldyl = UhGS('[C:1]>>[C@@:1]', 'F[C@H](Cl)Br |o1:1|')\n YKHO.assertEqual(Ldyl, 'F[C@@H](Cl)Br')\n Ldyl = UhGS('[C:1]>>[C@@:1]', 'F[C@@H](Cl)Br |&1:1|')\n YKHO.assertEqual(Ldyl, 'F[C@@H](Cl)Br')\n Ldyl = UhGS('[C:1]>>[C@@:1]', 'FC(Cl)Br')\n YKHO.assertEqual(Ldyl, 'F[C@@H](Cl)Br')\... | [
"0.7502093",
"0.7083151",
"0.696663",
"0.6748644",
"0.6419238",
"0.5837475",
"0.576132",
"0.5678274",
"0.5618676",
"0.55914426",
"0.5525545",
"0.5486366",
"0.54649514",
"0.54351145",
"0.54303616",
"0.5415109",
"0.5333785",
"0.5333203",
"0.5273259",
"0.5203159",
"0.51855856",
... | 0.6020158 | 5 |
Function to instanciate the instrument. | def LOYu(YKHO):
for YKiD in YKHO.rm.list_resources():
try:
aQei = YKHO.init_inst(YKiD)
aQei.timeout = 5000
if aQei.query('*IDN?')[:8] == 'KEITHLEY':
return aQei
except AttributeError as f:
bo34.warning(f'Unknown error - {eHNT}')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MFOj(YKHO, bTKY='entry', KB4z='id00'):\n if not isinstance(bTKY, g5R2.Group):\n bTKY = YKHO.new_entry(bTKY)\n return YKHO.new_class(bTKY, KB4z, 'NXinstrument')",
"def MFOj(YKHO, mlXr):\n return YKHO.instrument_list[mlXr](mlXr, YKHO.midi_output)",
"def wwrv(_Fei):\n try:\n YKiD = M... | [
"0.67939395",
"0.6719433",
"0.6655605",
"0.645817",
"0.6346724",
"0.6167076",
"0.6164952",
"0.5983404",
"0.59604347",
"0.5957381",
"0.58981216",
"0.58949465",
"0.5830187",
"0.58211017",
"0.5807674",
"0.580686",
"0.57869667",
"0.5773858",
"0.57293445",
"0.5729042",
"0.5718009"... | 0.0 | -1 |
Creates a new SnakemakeRule instance from a dict representation | def FIMM(YKHO, La_l, H7rZ, input, hlel, WY3t=False, rPXJ=None, **B2fa):
YKHO.rule_id = La_l
YKHO.parent_id = H7rZ
YKHO.input = input
YKHO.output = hlel
YKHO.local = WY3t
YKHO.template = rPXJ
YKHO.params = B2fa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, cmPJ: Dict[str, Any]):\n return Emd4(**cmPJ)",
"def jG8h(Emd4, nPrm: Dict[str, any]):\n return Emd4(**nPrm)",
"def jG8h(YKHO, Csk6):\n xAU6 = dict(Csk6)\n _TKD = xAU6['task_id']\n del xAU6['task_id']\n return DZ4b.create(_TKD, **xAU6)",
"def jG8h(Emd4, nPrm):\n return Emd4... | [
"0.61375326",
"0.60902405",
"0.60286725",
"0.60125345",
"0.597105",
"0.5911886",
"0.5895749",
"0.5895749",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
... | 0.0 | -1 |
Creates a new SnakemakeRule instance from a dict representation | def FIMM(YKHO, La_l, H7rZ, input, hlel, ztt8=True, WY3t=False, rPXJ=None, **B2fa):
super().__init__(La_l, H7rZ, input, hlel, WY3t, rPXJ, **B2fa)
YKHO.inline = ztt8
YKHO.groupped = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, cmPJ: Dict[str, Any]):\n return Emd4(**cmPJ)",
"def jG8h(Emd4, nPrm: Dict[str, any]):\n return Emd4(**nPrm)",
"def jG8h(YKHO, Csk6):\n xAU6 = dict(Csk6)\n _TKD = xAU6['task_id']\n del xAU6['task_id']\n return DZ4b.create(_TKD, **xAU6)",
"def jG8h(Emd4, nPrm):\n return Emd4... | [
"0.61388683",
"0.60924554",
"0.603016",
"0.60145026",
"0.59718156",
"0.5911789",
"0.5897906",
"0.5897906",
"0.5892087",
"0.5892087",
"0.5892087",
"0.5892087",
"0.5892087",
"0.5892087",
"0.5892087",
"0.5892087",
"0.5892087",
"0.5892087",
"0.5892087",
"0.5892087",
"0.5892087",
... | 0.0 | -1 |
Creates a new SnakemakeRule instance from a dict representation | def FIMM(YKHO, La_l, input, hlel, WY3t=False, rPXJ=None, **B2fa):
super().__init__(La_l, None, input, hlel, WY3t, rPXJ, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, cmPJ: Dict[str, Any]):\n return Emd4(**cmPJ)",
"def jG8h(Emd4, nPrm: Dict[str, any]):\n return Emd4(**nPrm)",
"def jG8h(YKHO, Csk6):\n xAU6 = dict(Csk6)\n _TKD = xAU6['task_id']\n del xAU6['task_id']\n return DZ4b.create(_TKD, **xAU6)",
"def jG8h(Emd4, nPrm):\n return Emd4... | [
"0.61375326",
"0.60902405",
"0.60286725",
"0.60125345",
"0.597105",
"0.5911886",
"0.5895749",
"0.5895749",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
"0.5891623",
... | 0.0 | -1 |
Creates a new SnakemakeRule instance from a dict representation | def FIMM(YKHO, input, hlel, xAU6, WY3t=False):
super().__init__('create_training_set', None, input, hlel, WY3t, 'multi_training_set.snakefile')
YKHO.options = xAU6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, cmPJ: Dict[str, Any]):\n return Emd4(**cmPJ)",
"def jG8h(Emd4, nPrm: Dict[str, any]):\n return Emd4(**nPrm)",
"def jG8h(YKHO, Csk6):\n xAU6 = dict(Csk6)\n _TKD = xAU6['task_id']\n del xAU6['task_id']\n return DZ4b.create(_TKD, **xAU6)",
"def jG8h(Emd4, nPrm):\n return Emd4... | [
"0.61378634",
"0.60913914",
"0.6031257",
"0.6013804",
"0.59718573",
"0.591209",
"0.5898094",
"0.5898094",
"0.5891009",
"0.5891009",
"0.5891009",
"0.5891009",
"0.5891009",
"0.5891009",
"0.5891009",
"0.5891009",
"0.5891009",
"0.5891009",
"0.5891009",
"0.5891009",
"0.5891009",
... | 0.0 | -1 |
Creates a new ReportRule instance from a dict representation | def FIMM(YKHO, La_l, input, hlel, tciW, leAC, mWFP, yIVm, M24H, w7QH, WY3t=False, **B2fa):
super().__init__(La_l, None, input, hlel, WY3t, **B2fa)
YKHO.rmd = tciW
YKHO.title = leAC
YKHO.name = mWFP
YKHO.metadata = yIVm
YKHO.styles = M24H
YKHO.theme = w7QH
YKHO.params['rmd'] = tciW
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n tH2j = cmPJ.get('consumerId')\n daV2 = cmPJ.get('consumerSsn')\n dmH9 = cmPJ.get('requesterName')\n gTi_ = cmPJ.get('requestId')\n gkIT = NCQ4.models.report_constraints.ReportConstraints.from_dictionary(cmPJ.... | [
"0.61548984",
"0.6064839",
"0.5945463",
"0.59221816",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0.591966",
"0... | 0.0 | -1 |
Creates a new SnakemakeRuleGroup instance from a dict representation | def FIMM(YKHO, La_l, H7rZ, DcJx, input, hlel, WY3t=False, **B2fa):
YKHO.rule_id = La_l
YKHO.parent_id = H7rZ
YKHO.input = input
YKHO.output = hlel
YKHO.local = WY3t
YKHO.params = B2fa
YKHO.groupped = True
YKHO.actions = U8Lr()
for XeOP in DcJx:
PQh7 = XeOP['action_name']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pktP(BWXx):\n for H5ew in ('id', 'name', 'version'):\n if H5ew not in BWXx:\n raise TypeError(\"Group dict {0} missing value key '{1}'\".format(BWXx, H5ew))\n if BWXx['version'] != cQ68.VERSION:\n raise TypeError('Group dict {0} has unexpected version'.format(BWXx))\n return c... | [
"0.6249006",
"0.60356647",
"0.59878504",
"0.58986735",
"0.5808315",
"0.57978857",
"0.56254345",
"0.55351543",
"0.54451144",
"0.5398016",
"0.53898287",
"0.5336041",
"0.5296309",
"0.5290205",
"0.52836525",
"0.5264334",
"0.52494353",
"0.52434814",
"0.52236265",
"0.5214074",
"0.5... | 0.50452054 | 83 |
Creates a new DataIntegrationRule instance from a dict representation | def FIMM(YKHO, La_l, g4y1, hlel, WY3t=False, rPXJ=None, **B2fa):
YKHO.rule_id = La_l
YKHO.inputs = g4y1
YKHO.output = hlel
YKHO.local = WY3t
YKHO.template = rPXJ
YKHO.params = B2fa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, nPrm):\n return Emd4(**nPrm)",
"def jG8h(Emd4, nPrm: Dict[str, any]):\n return Emd4(**nPrm)",
"def CCiu(Emd4, Csk6):\n la9G = Csk6.get('confidence', None)\n si3H = Csk6.get('constant', False)\n dJ1p = Csk6.get('tags', None)\n return Emd4(Csk6['name'], Csk6['value'], confidence=... | [
"0.6742197",
"0.65646493",
"0.6552889",
"0.648437",
"0.63919514",
"0.6375292",
"0.6365639",
"0.62918556",
"0.62024546",
"0.62024546",
"0.62024546",
"0.62024546",
"0.62024546",
"0.62024546",
"0.62024546",
"0.62024546",
"0.62024546",
"0.62024546",
"0.62024546",
"0.62024546",
"0... | 0.0 | -1 |
Compute the joint positions which approximately result in a given end effector position. | def ylLA(YKHO, XyXo, a7xU, cJsZ, yJiH=0.001, SYxB=20):
iter = 0
vexM = YKHO._project_onto_constraints(cJsZ)
y_Em = YKHO.forward_kinematics(vexM)[XyXo]
P1dF = oyIN.linalg.norm(a7xU - y_Em)
JRYC = 1.0
yZRh = oyIN.inf
while P1dF > yJiH and yZRh - P1dF > 1e-05 and (iter < SYxB):
Xt2W = Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xY7c(YKHO, GJtA):\n QjGt = GJtA.copy()\n wax7 = QjGt > YKHO.joint_lims[:, 0]\n HBuT = QjGt < YKHO.joint_lims[:, 1]\n QjGt = QjGt * (HBuT * wax7)\n QjGt += YKHO.joint_lims[:, 0] * oyIN.logical_not(wax7)\n QjGt += YKHO.joint_lims[:, 1] * oyIN.logical_not(HBuT)\n if YKHO.mirror:\n QjGt... | [
"0.6462823",
"0.63993484",
"0.5633511",
"0.5578069",
"0.5572044",
"0.55286443",
"0.549767",
"0.54915667",
"0.5486143",
"0.5462283",
"0.5461075",
"0.54595315",
"0.54163367",
"0.5408067",
"0.5399364",
"0.53867376",
"0.53730583",
"0.536113",
"0.533599",
"0.5330091",
"0.5328494",... | 0.0 | -1 |
Unhexlify raw text, return unhexlified text. | def pNrF(l5Ny):
jI1L = MRxC.unhexlify(l5Ny)
if jKi7.PY3:
jI1L = jI1L.decode('utf-8')
return jI1L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jry1(l5Ny):\n if jKi7.PY3:\n l5Ny = l5Ny.encode('utf-8')\n Of88 = MRxC.hexlify(l5Ny)\n if jKi7.PY3:\n Of88 = Of88.decode('utf-8')\n return Of88",
"def ILLV():\n assert '' == r5ZL.unhexlify(':020000040003F7\\n:10E000000000000000000000000000000000000010')",
"def i2Bx():\n Of88... | [
"0.76805043",
"0.724818",
"0.71128637",
"0.6909091",
"0.6862392",
"0.6219935",
"0.6197366",
"0.59515",
"0.5922873",
"0.5843483",
"0.57907474",
"0.5650561",
"0.56349534",
"0.56267136",
"0.55028135",
"0.550243",
"0.5497304",
"0.54252976",
"0.5407516",
"0.53313655",
"0.52876633"... | 0.8604057 | 0 |
thermodynmic estimator of the kinetic energy | def Dtdx(ckRy, EhIg, jmzt):
apNJ, CbqX, qC1Y, Zgwx = ckRy.shape
PYpn = qC1Y * CbqX / 2.0 / jmzt * oyIN.ones(Zgwx)
for uOgj in range(apNJ):
Zq3B = (ckRy[uOgj] - ckRy[(uOgj + 1) % apNJ]) ** 2.0
CYjz = Zq3B.sum(axis=0).sum(axis=0)
PYpn -= CYjz / (4.0 * EhIg * jmzt ** 2.0) / apNJ
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EwWA(yF4d, xOAw, oviM, dA68, L749, Q3jv, qVzR, hBtu, T2vl, eX3C, raws):\n D0KN = Bww6(yF4d, xOAw, oviM, dA68, L749, Q3jv, qVzR, hBtu, T2vl, eX3C, raws)\n return kLQb(-L749 * Q3jv) * D0KN",
"def bztM(YKHO):\n return YKHO.params['kinetic']",
"def VEAL(G1Hx):\n lz9e = 9.7846113e-07\n EI9L = 12.... | [
"0.685864",
"0.6753086",
"0.66774917",
"0.65416646",
"0.64236945",
"0.6406966",
"0.6316658",
"0.6298241",
"0.6277267",
"0.6244753",
"0.62259036",
"0.62029636",
"0.61880386",
"0.61798847",
"0.6175505",
"0.6172549",
"0.6145199",
"0.6102385",
"0.6071389",
"0.6060328",
"0.6001661... | 0.6054048 | 20 |
Get the coarseness of area. Coarseness is calculated by dividing surface area of a surface by number of triangles in that surface. inputs | def SGUm(hcow, j3pl, Rk1C, Xk7Q):
szm3 = []
for J20S in Rk1C:
a8Rd = Rf1N(hcow, J20S, Xk7Q)
szm3.append(len(a8Rd) / sum(a8Rd))
return szm3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())",
"def yd8O(YKHO):\n \"\"\"Косое произведение векторов\n A = (x2-x1; y2-y1; z2-z1)\n B = (x3-x1; y3-y1; z3-z1)\n S = 0.5*sqrt((Ay*Bz - Az*By)^2 + (Az*Bx - Ax*Bz)^2 + (Ax*By - Ay*Bx)^2 )\n \"\"\"\n PiiY = YKHO.x2 -... | [
"0.72606695",
"0.69087756",
"0.6878328",
"0.6759182",
"0.66357255",
"0.662495",
"0.6603431",
"0.6533843",
"0.65235794",
"0.6498596",
"0.64894485",
"0.643404",
"0.64310247",
"0.63980806",
"0.63846767",
"0.6348388",
"0.6340205",
"0.63149506",
"0.62920696",
"0.62676907",
"0.6259... | 0.6548548 | 7 |
returns a scikitlearn style model/pipeline | def YrZb(mWFP):
try:
from .model_defs import get_model_from_def
C3ST = get_model_from_def(mWFP)
bo34.info('Model {n} loaded from model_defs module'.format(n=mWFP))
except NameError:
try:
C3ST = Frzm(mWFP)
bo34.info('Model {n} loaded from yaml'.format(n=mWF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TkMt():\n QJkK = sxgn('Real Estate') | sxgn('Utilities') | sxgn('Consumer Staples') | sxgn('Technology') | sxgn('Financials') | sxgn('Energy') | sxgn('Materials') | sxgn('Health Care') | sxgn('Industrials') | sxgn('Consumer Discretionary') | sxgn('Communications')\n nSDE = U3jA.slice(dimension='MRT', per... | [
"0.62133336",
"0.619528",
"0.6192642",
"0.6129727",
"0.60924697",
"0.60888034",
"0.60504484",
"0.59715533",
"0.59501135",
"0.5866584",
"0.58635634",
"0.5856176",
"0.57757",
"0.5774506",
"0.5752574",
"0.5752574",
"0.5741443",
"0.5726265",
"0.5723943",
"0.5714648",
"0.57145613"... | 0.0 | -1 |
Return a sklearn model pipeline from a model_dict | def WUpB(BJY9):
HpCi = []
if 'transforms' in BJY9:
Ymkf = BJY9['transforms'].copy()
if 'scaler' in Ymkf:
Y5YY = Ymkf.pop('scaler')
HpCi.append(fLcZ(Y5YY))
if 'pca' in Ymkf:
Ymkf.pop('pca')
HpCi.append(wpth())
if 'poly' in Ymkf:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TkMt(C3ST):\n paSp = [('imp', zBcB(strategy='most_frequent')), ('norm', SNvk()), ('reg', C3ST)]\n nPIK = Y0rt(steps=paSp)\n return nPIK",
"def n8cN():\n C3ST = Y0rt([('vect', LM0n(tokenizer=wr3U)), ('tfidf', U1yC()), ('clf', yg6h(v9Rb(n_estimators=100, min_samples_split=2)))])\n return C3ST",
... | [
"0.6688918",
"0.64640874",
"0.64640874",
"0.6416069",
"0.6381701",
"0.636211",
"0.6302781",
"0.62598276",
"0.62242967",
"0.6168712",
"0.6149896",
"0.6133813",
"0.6130566",
"0.61174124",
"0.6096542",
"0.6070486",
"0.6065497",
"0.60585046",
"0.6046623",
"0.6042597",
"0.603112",... | 0.771603 | 0 |
Return a markov wrapper for a pipeline. | def InAG(bCYe, B2fa):
from .transforms import MarkovWrapper
return MarkovWrapper(bCYe, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pAlH() -> Y0rt:\n M_NZ = gqM8.LinearSVC(C=2, loss='hinge')\n zq5a = oNB5(ngram_range=(1, 2))\n nPIK = None\n nPIK = Y0rt([('vect', zq5a), ('tfidf', U1yC()), ('clf', M_NZ)])\n return nPIK",
"def pAlH() -> Y0rt:\n TOUc = None\n TOUc = Y0rt([('vect', LM0n()), ('tfidf', U1yC()), ('clf', ZmNt... | [
"0.6571192",
"0.6444065",
"0.6408322",
"0.60807306",
"0.6047931",
"0.5914984",
"0.59031147",
"0.58204484",
"0.5804149",
"0.5747107",
"0.5725643",
"0.5704614",
"0.5703797",
"0.56960964",
"0.56624687",
"0.56623226",
"0.5654284",
"0.562496",
"0.5591383",
"0.55484897",
"0.5527152... | 0.83327645 | 0 |
Gated recurrent unit (GRU) with nunits cells. | def pOv4(YKHO, g4y1, QTBn):
WKvO, BdN0 = g4y1
while len(QTBn.get_shape().as_list()) > len(BdN0.get_shape().as_list()):
BdN0 = ZylS.expand_dims(BdN0, len(BdN0.get_shape().as_list()))
MKlR = QTBn * (1.0 - BdN0)
Upvm = ZylS.concat([MKlR, WKvO], axis=1)
lgWp = ZylS.sigmoid(ZylS.matmul(Upvm, YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pNpi(cuu0, hr1G):\n VmPb = ZylS.nn.rnn_cell.GRUCell(cuu0)\n if hr1G:\n Aofo = ZylS.nn.rnn_cell.DropoutWrapper(VmPb, output_keep_prob=1 - hr1G)\n return Aofo",
"def LXM1(YKHO, cuu0):\n return S14z.LayerNormGRUCell(cuu0, w_initializer=YKHO.uniform_initializer, u_initializer=ZnqD, b_initializ... | [
"0.721755",
"0.66543376",
"0.6298048",
"0.62718433",
"0.5896392",
"0.5840149",
"0.57050383",
"0.5683324",
"0.56716853",
"0.5620621",
"0.56158394",
"0.56078464",
"0.55852866",
"0.5582799",
"0.5549927",
"0.55428386",
"0.5535521",
"0.551115",
"0.5498461",
"0.54404557",
"0.538380... | 0.0 | -1 |
Return true if set s contains value v as an element. >>> s = Link(1, Link(3, Link(2))) >>> contains(s, 2) True >>> contains(s, 4) False | def sjXf(KCHu, Ty9i):
sdCG = KCHu
while not lsmZ(sdCG):
if sdCG.first == Ty9i:
return True
sdCG = sdCG.rest
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, Ty9i):\n for YRbF in YKHO:\n if Ty9i in YRbF:\n return True\n False",
"def sjXf(KCHu, Ty9i):\n if lsmZ(KCHu):\n return False\n elif KCHu.first == Ty9i:\n return True\n else:\n return sjXf(KCHu.rest, Ty9i)",
"def xc3U(YKHO, Ty9i):\n return ... | [
"0.7584771",
"0.7085561",
"0.6912982",
"0.6782562",
"0.6782562",
"0.6781164",
"0.6648094",
"0.6498835",
"0.647441",
"0.64625543",
"0.6434304",
"0.64121056",
"0.6409181",
"0.64012474",
"0.63954437",
"0.6387302",
"0.63849604",
"0.6380661",
"0.634651",
"0.63379276",
"0.63075536"... | 0.7024014 | 2 |
Returns area of a circle | def f0tD(YKHO):
return epAf.pi * YKHO._r ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yX2h(FV9o):\n return mM0K * FV9o.radius * FV9o.radius",
"def LA4l(r1VO):\n return r1VO",
"def yX2h(r1VO):\n f0tD = r1VO ** 2 * epAf.pi\n return f0tD",
"def f0tD(YKHO):\n yX2h = YKHO.radius * YKHO.radius * epAf.pi\n return yX2h",
"def CUf1(r1VO):\n mM0K = 3.1459\n f0tD = mM0K * r... | [
"0.9091267",
"0.8981688",
"0.87279946",
"0.8713818",
"0.8643989",
"0.8638605",
"0.85790324",
"0.8510922",
"0.84058666",
"0.84058666",
"0.8388797",
"0.8306146",
"0.82901704",
"0.8135795",
"0.8114081",
"0.8105787",
"0.8105787",
"0.8066629",
"0.8049314",
"0.8016954",
"0.80149436... | 0.7715051 | 29 |
Get vertices dividing a 1d grid. | def tU4z(Cs6h, KuwD=False):
if len(Cs6h.shape) > 1:
raise ValueError('grid must be 1d array.')
yk4i = oyIN.diff(Cs6h)
e2gD = oyIN.zeros(Cs6h.size + 1)
e2gD[1:-1] = Cs6h[0:-1] + yk4i / 2
if KuwD:
e2gD[0] = Cs6h[0]
e2gD[-1] = Cs6h[-1]
else:
e2gD[0] = Cs6h[0] - yk4i[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXlf(YKHO):\n try:\n return YKHO._vertices\n except:\n YKHO._vertices = [list(WKvO) for WKvO in YKHO.vertex_generator()]\n return YKHO._vertices",
"def iXlf(YKHO):\n if YKHO._faces is None:\n if YKHO._vertices is None:\n return None\n YKHO.triangulate()\... | [
"0.6591957",
"0.65517676",
"0.6523746",
"0.6520511",
"0.64833",
"0.64833",
"0.64218307",
"0.6383808",
"0.6376488",
"0.63350326",
"0.6328131",
"0.63177186",
"0.6316762",
"0.6278034",
"0.6251261",
"0.6179584",
"0.61629945",
"0.6152223",
"0.61260945",
"0.6122966",
"0.6108887",
... | 0.76482964 | 0 |
Select plane from dataset. Intended for use with e.g. plt.pcolor. | def eCZC(tgCD, NkBi, i4e5, SuPp, **YSA3):
Z6mt = tgCD.dims[NkBi][0][_0VL[NkBi]]
bpbe = tgCD.dims[i4e5][0][_0VL[i4e5]]
iDVq = oyIN.argsort(Z6mt)
gML2 = oyIN.argsort(bpbe)
jCcy, k9Ij = Yvne(Z6mt[iDVq], bpbe[gML2], **YSA3)
nPrm = tgCD[SuPp]
if Y7fn < O5iP:
nPrm = nPrm.T
nPrm = nPrm[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OqCa(kEC0):\n pass",
"def kEC0(YKHO):\n return kEC0(YKHO.N, YKHO.o)",
"def eCZC(YKHO, hAEw, kEC0, fFbt):\n if kEC0 == 'yz' or kEC0 == 'zy':\n return hAEw[:, fFbt, :]\n elif kEC0 == 'xz' or kEC0 == 'zx':\n return hAEw[:, :, fFbt]\n elif kEC0 == 'xy' or kEC0 == 'yx':\n ret... | [
"0.63480055",
"0.62466025",
"0.6210041",
"0.6181447",
"0.60752785",
"0.59501004",
"0.5885949",
"0.5844385",
"0.5806675",
"0.57641417",
"0.5717144",
"0.5657449",
"0.5650415",
"0.5615462",
"0.5605463",
"0.55464685",
"0.55369604",
"0.5516311",
"0.5514092",
"0.5510669",
"0.551001... | 0.5889004 | 6 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(Mkmy):
Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
Mkmy.headers['Pragma'] = 'no-cache'
Mkmy.headers['Expires'] = '0'
Mkmy.headers['Cache-Control'] = 'public, max-age=0'
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.82239413",
"0.8223081",
"0.8223081",
"0.8223081",
"0.8223081",
"0.8196386",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
... | 0.71290123 | 63 |
Create a 3D rotation matrix for rotation about xaxis. (1 0 0 ) R(theta) = (0 cos(x) sin(x)) (0 sin(x) cos(x)) | def Ei28(q7In):
zNiy = oyIN.zeros((3, 3))
zNiy[0, 0], zNiy[0, 1], zNiy[0, 2] = (1.0, 0.0, 0.0)
zNiy[1, 0], zNiy[1, 1], zNiy[1, 2] = (0.0, oyIN.cos(q7In), oyIN.sin(q7In))
zNiy[2, 0], zNiy[2, 1], zNiy[2, 2] = (0.0, -oyIN.sin(q7In), oyIN.cos(q7In))
return zNiy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fm5w(mghH: float) -> oyIN.matrix:\n from numpy import cos, sin, pi\n E0tq = -mghH * pi / 180\n _itR = cos(E0tq)\n OHck = sin(E0tq)\n return oyIN.matrix([[1, 0, 0], [0, _itR, -OHck], [0, OHck, _itR]])",
"def ePr4(YylR: float) -> oyIN.array:\n Z9rn = oyIN.cos(YylR)\n KCHu = oyIN.sin(YylR)\... | [
"0.80429703",
"0.77990216",
"0.77074045",
"0.76701725",
"0.7432882",
"0.7401681",
"0.73251915",
"0.7267913",
"0.71938413",
"0.71556383",
"0.70411855",
"0.7036028",
"0.70312065",
"0.7028589",
"0.7012928",
"0.69417447",
"0.692393",
"0.68872285",
"0.6844814",
"0.6838681",
"0.680... | 0.78315115 | 1 |
Create a 3D rotation matrix for rotation about zaxis. ( cos(x) sin(x) 0) R(theta) = (sin(x) cos(x) 0) ( 0 0 1) | def JkLf(q7In):
zNiy = oyIN.zeros((3, 3))
zNiy[0, 0] = zNiy[1, 1] = oyIN.cos(q7In)
zNiy[0, 1] = oyIN.sin(q7In)
zNiy[1, 0] = -zNiy[0, 1]
zNiy[2, 2] = 1
return zNiy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MJtD(mghH: float) -> oyIN.matrix:\n from numpy import cos, sin, pi\n SRCs = -mghH * pi / 180\n sisM = cos(SRCs)\n zl40 = sin(SRCs)\n return oyIN.matrix([[sisM, -zl40, 0], [zl40, sisM, 0], [0, 0, 1]])",
"def sGOx(YylR: float) -> oyIN.array:\n Z9rn = oyIN.cos(YylR)\n KCHu = oyIN.sin(YylR)\... | [
"0.8186974",
"0.802003",
"0.7951418",
"0.76159006",
"0.75433534",
"0.74739504",
"0.7473712",
"0.7445926",
"0.7439543",
"0.74234265",
"0.736115",
"0.7298137",
"0.7291585",
"0.72050965",
"0.7194949",
"0.7179259",
"0.71736616",
"0.71396255",
"0.71220154",
"0.71090776",
"0.709833... | 0.84704345 | 0 |
Users can specify environment variables in their config file which will be set in the driver and worker environments. Make sure those variables are set during the workflow, but not after. | def irxK():
GPtr = {'workflow-name': 'workflow', 'cluster-type': bg3s, 'environment-variables': {'FOO': 'BAR', 'FOO2': 'BAR2'}}
IE2W = gbPf.mkdtemp(suffix='test-workflow-environment-template')
with open(f'{IE2W}/workflow.yaml', 'w') as eHNT:
eJb6.dump(GPtr, eHNT)
@G0br
def nhfz(j8KH):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XcGs():\n sEAN = {'ELB_GCP_PROJECT': 'expected-gcp-project', 'ELB_GCP_REGION': 'expected-gcp-region', 'ELB_GCP_ZONE': 'expected-gcp-zone', 'ELB_BATCH_LEN': '93', 'ELB_CLUSTER_NAME': 'expected-cluster-name', 'ELB_RESULTS': 'gs://expected-results', 'ELB_USE_PREEMPTIBLE': 'true', 'ELB_BID_PERCENTAGE': '91'}\n ... | [
"0.70271873",
"0.7026732",
"0.69392926",
"0.69331855",
"0.68138427",
"0.6760369",
"0.6758569",
"0.6714527",
"0.67041445",
"0.66552407",
"0.65845776",
"0.65845776",
"0.65845776",
"0.65845776",
"0.65845776",
"0.65845776",
"0.6584399",
"0.65421516",
"0.6530069",
"0.6528909",
"0.... | 0.7265635 | 0 |
Get the contact's first name. | def PvwR(P4t4):
mWFP = P4t4.get(QBiI)
if mWFP:
return ' {}'.format(mWFP.split(' ')[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fz1W(YKHO):\n return YKHO._first_name",
"def fz1W(YKHO) -> str:\n return YKHO.first_name",
"def c9ua(YKHO):\n return YKHO._first_name",
"def c9ua(YKHO):\n return YKHO._first_name",
"def c9ua(YKHO):\n return YKHO._first_name",
"def c9ua(YKHO) -> str:\n return YKHO._first_name",
"de... | [
"0.86260074",
"0.8617128",
"0.8315871",
"0.8315871",
"0.8315871",
"0.8312541",
"0.81962097",
"0.8183392",
"0.8183392",
"0.80284345",
"0.7993891",
"0.7896602",
"0.7896602",
"0.78449786",
"0.7739931",
"0.77090037",
"0.7706754",
"0.7706754",
"0.7706754",
"0.7706754",
"0.7706754"... | 0.8650525 | 0 |
Get the subject to send with the email. | def UHGU(kvcN):
return '{} <==> Tote'.format(kvcN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U4ZT(YKHO):\n return YKHO.mail.get('Subject')",
"def LZJ7(YKHO):\n return YKHO.msg['Subject']",
"def U4ZT(YKHO):\n return YKHO.properties.get('subject', None)",
"def mUtM(YKHO):\n return YKHO._subject",
"def U4ZT(YKHO):\n return YKHO.get('subject')",
"def U4ZT(YKHO) -> 'str':\n retu... | [
"0.85039127",
"0.84494317",
"0.79497236",
"0.7938282",
"0.7885958",
"0.7774435",
"0.7774435",
"0.7769633",
"0.77543914",
"0.77393216",
"0.7721028",
"0.76066816",
"0.74656695",
"0.74626553",
"0.7323837",
"0.7316676",
"0.7280974",
"0.7280175",
"0.72613007",
"0.72613007",
"0.712... | 0.6934014 | 21 |
Get the email template name for the first contact email. | def a7Co(P4t4):
return P4t4[wIEo] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sA4G(YKHO):\n rPXJ = None\n if YKHO.template:\n rPXJ = YKHO.template\n if not rPXJ:\n for XP5J in YKHO.get_ancestors(ascending=True):\n if XP5J.template:\n rPXJ = XP5J.template\n break\n if not rPXJ:\n rPXJ = gCuF.CMS_TEMPLATES[0][0]\n ... | [
"0.68836665",
"0.6812669",
"0.66186845",
"0.66120255",
"0.6575655",
"0.6516548",
"0.64882386",
"0.64112824",
"0.63238996",
"0.6301571",
"0.6288311",
"0.6213783",
"0.6116907",
"0.60900533",
"0.6080471",
"0.6079054",
"0.60654145",
"0.6055386",
"0.60473263",
"0.60457283",
"0.603... | 0.87440306 | 0 |
Gets the tote store url for this app. | def SAkt(P4t4):
return P4t4[S0BE] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HJVl(YKHO, Ch5G):\n pass",
"def HJVl(YKHO, Ch5G):\n YKHO.send_getNoteStoreUrl(Ch5G)\n return YKHO.recv_getNoteStoreUrl()",
"def V4A1(Emd4):\n bxMd = Emd4.user_data_dir()\n eOIA = Hy7s.path.join(bxMd, 'store.json')\n return eOIA",
"def eOIA(YKHO):\n return pmON.join(sEAN.store_home, Y... | [
"0.6696655",
"0.64120066",
"0.6146364",
"0.5828228",
"0.57313335",
"0.5705295",
"0.56562585",
"0.5626252",
"0.5613728",
"0.5612579",
"0.5582851",
"0.555923",
"0.555923",
"0.5541939",
"0.5541939",
"0.5510885",
"0.55108297",
"0.5492612",
"0.5492612",
"0.5468174",
"0.54611695",
... | 0.84141535 | 0 |
Sets the name of this ClairpbVulnerability. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):... | [
"0.7476369",
"0.7476369",
"0.74305564",
"0.74305564",
"0.74305564",
"0.74305564",
"0.74305564",
"0.7423173",
"0.73924625",
"0.73535186",
"0.73535186",
"0.73509634",
"0.7336383",
"0.7328558",
"0.7323258",
"0.73170054",
"0.71923685",
"0.71672845",
"0.71672845",
"0.71484566",
"0... | 0.0 | -1 |
Sets the namespace_name of this ClairpbVulnerability. | def jHrh(YKHO, jHrh):
YKHO._namespace_name = jHrh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o4dQ(YKHO, _63S: str) -> None:\n YKHO._namespace = _63S",
"def _63S(YKHO, _63S: str):\n YKHO._namespace = _63S",
"def _63S(YKHO, _63S):\n YKHO._namespace = _63S",
"def _63S(YKHO, _63S):\n YKHO._namespace = _63S",
"def v2Kn(YKHO, _63S):\n YKHO.target_namespace = _63S.strip(':')",
"def a... | [
"0.7218368",
"0.6848428",
"0.6652187",
"0.6652187",
"0.6394273",
"0.61235774",
"0.60623956",
"0.59424466",
"0.5783313",
"0.57451713",
"0.57072073",
"0.56936276",
"0.56725025",
"0.5653841",
"0.5579495",
"0.55766636",
"0.55388397",
"0.5538237",
"0.5520687",
"0.55004734",
"0.539... | 0.7917395 | 0 |
Sets the description of this ClairpbVulnerability. | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def JBZA(YKHO, JBZA):\n YKHO._description = JBZA",
"def JBZA(YKHO, JBZA):\n YKHO._description = JBZA",
"def JBZA(YKHO, JBZA):\n YK... | [
"0.72097325",
"0.7180765",
"0.7136288",
"0.7065354",
"0.7065354",
"0.7065354",
"0.7065354",
"0.7059732",
"0.70556676",
"0.7041413",
"0.6891786",
"0.6891786",
"0.6891786",
"0.6891786",
"0.68883944",
"0.68043464",
"0.670095",
"0.66983426",
"0.6676779",
"0.6659177",
"0.6595515",... | 0.69659215 | 38 |
Sets the fixed_by of this ClairpbVulnerability. | def XkIa(YKHO, XkIa):
YKHO._fixed_by = XkIa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZgIO(YKHO, ZgIO):\n YKHO._fixed_amount = ZgIO",
"def ZgIO(YKHO, ZgIO):\n YKHO._fixed_amount = ZgIO",
"def CnOe(YKHO, CnOe):\n YKHO._issued_by = CnOe",
"def Xh5u(YKHO, Xh5u):\n YKHO._mitigated_by = Xh5u",
"def TT8N(YKHO, TT8N):\n YKHO._found_by = TT8N",
"def Kiio(YKHO, Kiio):\n YKHO.... | [
"0.6088768",
"0.6088768",
"0.60354835",
"0.594974",
"0.56890184",
"0.5542011",
"0.5290293",
"0.5184325",
"0.5179588",
"0.51558876",
"0.51558876",
"0.51558876",
"0.51558876",
"0.51558876",
"0.51558876",
"0.5038125",
"0.4941069",
"0.49050403",
"0.479892",
"0.47826055",
"0.47764... | 0.8097117 | 0 |
Sets the affected_versions of this ClairpbVulnerability. | def Sdqa(YKHO, Sdqa):
YKHO._affected_versions = Sdqa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wUem(YKHO, wUem):\n YKHO._vulnerabilities = wUem",
"def wUem(YKHO, wUem):\n YKHO._vulnerabilities = wUem",
"def L6MF(YKHO, L6MF):\n YKHO._versions = L6MF",
"def pP6t(YKHO, R72Z, L6MF):\n for Qjbs, jUoO in L6MF.items():\n YKHO._set_version(R72Z, Qjbs, jUoO)\n if L6MF:\n YKHO._... | [
"0.609255",
"0.609255",
"0.59750617",
"0.5626721",
"0.54159355",
"0.51944435",
"0.51533484",
"0.5120908",
"0.50574327",
"0.50420326",
"0.50411284",
"0.50248915",
"0.48979875",
"0.4828377",
"0.48191965",
"0.4787847",
"0.46811602",
"0.4634885",
"0.46162087",
"0.4607605",
"0.460... | 0.8137943 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, zGgv):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.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):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Forward pass through network. Calculates the action logits and the value. | def KVH6(YKHO, WKvO) -> AzJI[llWB, llWB]:
WKvO = vuvg.relu(YKHO.fc1(WKvO.float()))
jzdc = vuvg.log_softmax(YKHO.actor_head(WKvO), dim=-1)
Z9rn = YKHO.critic_head(WKvO)
return (jzdc, Z9rn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n u_ln = YKHO.act_fc1(WKvO)\n u_ln = ht2j.tanh(u_ln)\n u_ln = YKHO.act_fc2(u_ln)\n u_ln = ht2j.tanh(u_ln)\n JBMS = YKHO.mu(u_ln)\n vVOF = YKHO.logstd.expand_as(JBMS)\n M1Jx = ht2j.exp(vVOF)\n XeOP = ht2j.normal(JBMS, M1Jx)\n Ty9i = YKHO.value_fc1(WKvO)\n Ty9i = h... | [
"0.7648056",
"0.7441679",
"0.7235342",
"0.7074458",
"0.7050156",
"0.69769365",
"0.6912717",
"0.6907993",
"0.69072765",
"0.6904189",
"0.6899755",
"0.6880525",
"0.6867396",
"0.6824801",
"0.6819598",
"0.67802507",
"0.67745304",
"0.6761813",
"0.6747654",
"0.6747654",
"0.67306876"... | 0.6286952 | 67 |
Returns the database of this snowflake source. | def p9bx(YKHO):
return YKHO.snowflake_options.database | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u_OD(YKHO):\n return YKHO.database",
"def p9bx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'database')",
"def p9bx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'database')",
"def p9bx(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'database')",
"def p9bx(YKHO) -> q... | [
"0.7446689",
"0.7409722",
"0.7409722",
"0.7361835",
"0.73268086",
"0.70755297",
"0.70755297",
"0.70755297",
"0.70755297",
"0.7035698",
"0.70008326",
"0.70008326",
"0.6984017",
"0.69791114",
"0.6932914",
"0.69217163",
"0.6915366",
"0.6904952",
"0.6886391",
"0.68326914",
"0.683... | 0.85056674 | 0 |
Returns a string that can directly be used to reference this table in SQL. | def zC9w(YKHO) -> str:
if YKHO.database and YKHO.table:
return f'"{YKHO.database}"."{YKHO.schema}"."{YKHO.table}"'
elif YKHO.table:
return f'"{YKHO.table}"'
else:
return f'({YKHO.query})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GTA_() -> str:\n pass",
"def wHJl(YKHO):\n HGq1 = YKHO.__class__.__name__\n zA5h = str(YKHO._connection)\n aPD1 = YKHO._table\n return '{0}({1}, table={2!r})'.format(HGq1, zA5h, aPD1)",
"def wHJl(YKHO):\n HGq1 = YKHO.__class__.__name__\n zA5h = str(YKHO._connection)\n aPD1 = YKHO._t... | [
"0.72242546",
"0.7145293",
"0.7145293",
"0.71200347",
"0.70594376",
"0.70300525",
"0.6961341",
"0.6907269",
"0.6881874",
"0.6875941",
"0.68361664",
"0.68174165",
"0.68159",
"0.6803258",
"0.67897487",
"0.67895746",
"0.67832047",
"0.6771481",
"0.6731299",
"0.67075336",
"0.66725... | 0.76032066 | 0 |
Returns the snowflake SQL query referenced by this source. | def xDcj(YKHO):
return YKHO._query | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xDcj(YKHO):\n return YKHO.snowflake_options.query",
"def KQro(YKHO):\n return YKHO._project.sql_query",
"def zvWx(YKHO):\n return YKHO.sql",
"def Pe9W(YKHO):\n return ';\\n'.join([WKvO.sql() for WKvO in YKHO._statements]) + ';'",
"def OPRw(YKHO):\n ZLJ_ = ','.join(['\"{}\"'.format(WKvO) ... | [
"0.7604513",
"0.7548185",
"0.644608",
"0.636173",
"0.62809396",
"0.6275104",
"0.6264084",
"0.62564576",
"0.6220409",
"0.60543776",
"0.59246194",
"0.5899583",
"0.58373946",
"0.57994354",
"0.57862854",
"0.5758391",
"0.57509285",
"0.5746539",
"0.5732655",
"0.56832737",
"0.567286... | 0.57847404 | 17 |
Returns the database name of this snowflake table. | def p9bx(YKHO):
return YKHO._database | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N5CR(YKHO) -> str:\n return qe4Y.get(YKHO, 'database_name')",
"def N5CR(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'database_name')",
"def s0ar(YKHO):\n return YKHO._base.getDatabaseName()",
"def s0ar(YKHO):\n raise NotImplementedError",
"def wnys(YKHO):\n return YKHO._db_name",
... | [
"0.8153906",
"0.79219604",
"0.7853548",
"0.77648026",
"0.7695105",
"0.76031363",
"0.7507584",
"0.74824643",
"0.74470735",
"0.7436588",
"0.7392899",
"0.73886544",
"0.7282045",
"0.7271273",
"0.7229642",
"0.72007596",
"0.7197087",
"0.7124021",
"0.7117816",
"0.7098378",
"0.700156... | 0.5763545 | 71 |
Returns the table name of this snowflake table. | def tyNF(YKHO):
return YKHO._table | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LKuW(YKHO):\n return YKHO._table",
"def GTA_(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'table_name')",
"def GTA_() -> str:\n pass",
"def GTA_(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'table_name')",
"def GTA_(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'table_name... | [
"0.872357",
"0.8587216",
"0.8301262",
"0.82909656",
"0.82909656",
"0.82909656",
"0.82124346",
"0.8067328",
"0.80299294",
"0.8022681",
"0.79793465",
"0.758069",
"0.74290794",
"0.7428557",
"0.7422888",
"0.7326025",
"0.723662",
"0.71609664",
"0.71264887",
"0.7048128",
"0.7046885... | 0.64299667 | 48 |
Sets the table ref of this snowflake table. | def tyNF(YKHO, tyNF):
YKHO._table = tyNF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GCT4(YKHO, GCT4):\n YKHO._table_ref = GCT4",
"def CZ2h(YKHO, GSJ8):\n if isinstance(GSJ8, str):\n YKHO._table = TQJD.Get(GSJ8)\n elif isinstance(GSJ8, TQJD):\n YKHO._table = GSJ8\n else:\n raise ValueError('table - must be table name or Table instance.')",
"def tyNF(YKHO, t... | [
"0.840069",
"0.7259923",
"0.68128806",
"0.6655275",
"0.6641437",
"0.62347263",
"0.61731863",
"0.6130862",
"0.60809314",
"0.6049684",
"0.60375315",
"0.5879953",
"0.58563435",
"0.5758894",
"0.5728879",
"0.5722117",
"0.5694347",
"0.5653783",
"0.5653783",
"0.5530361",
"0.5422365"... | 0.6948597 | 3 |
Converts an SnowflakeOptionsProto object to its protobuf representation. | def vbOa(YKHO) -> PneI.SnowflakeOptions:
Nanh = PneI.SnowflakeOptions(database=YKHO.database, schema=YKHO.schema, table=YKHO.table, query=YKHO.query)
return Nanh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zCNU(Emd4, Nanh: DataSourceProto.SnowflakeOptions):\n jHi6 = Emd4(database=Nanh.database, schema=Nanh.schema, table=Nanh.table, query=Nanh.query)\n return jHi6",
"def b8zc(YKHO) -> CArV:\n PGv4 = YKHO.base_options.to_pb2()\n PGv4.use_stream_mode = False if YKHO.running_mode == zkeu.IMAGE else Tru... | [
"0.7185293",
"0.6591346",
"0.63469636",
"0.6190279",
"0.609588",
"0.6037695",
"0.59587693",
"0.57750213",
"0.574301",
"0.5736975",
"0.5731854",
"0.5646835",
"0.5621101",
"0.55236673",
"0.5520179",
"0.54465526",
"0.53726715",
"0.53726715",
"0.53726715",
"0.53726715",
"0.537267... | 0.7964391 | 0 |
r"""Return the standard path to the shared area on the current platform. | def f0l8() -> str:
try:
return Hy7s.environ['OITG_SHARED_AREA']
except KeyError:
pass
if Hy7s.name == 'nt':
return 'Z:\\'
if Hy7s.name == 'unix' or Hy7s.name == 'posix':
return Hy7s.path.expanduser('~/steaneShared/')
raise Exception('Unknown OS') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gf6V():\n sWmO = Hy7s.path.dirname(xAKo)\n weUZ = Hy7s.path.join(sWmO, '../share')\n return Hy7s.path.abspath(weUZ)",
"def xixw(YKHO) -> GkAb:\n return YKHO.path_supervisor / mYy3",
"def OyQC(YKHO):\n return gTEQ('PrlShare_GetPath', YKHO.handle)",
"def R3s0(YKHO) -> PKXz:\n return PKXz(... | [
"0.75354296",
"0.6952207",
"0.67871875",
"0.67391086",
"0.67256176",
"0.6657467",
"0.6635167",
"0.661767",
"0.66105354",
"0.6436675",
"0.6340287",
"0.6331047",
"0.63205075",
"0.6297639",
"0.62504154",
"0.6217222",
"0.6186836",
"0.6157988",
"0.61453235",
"0.6119978",
"0.611485... | 0.85109854 | 0 |
Get authorization header for GoDaddy Developer API. | def FDuj() -> dict:
rJDA = vQw3.load_credentials()
sZ8K = H9Ex.load_credentials()
return {'Authorization': 'sso-key {}:{}'.format(rJDA, sZ8K)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hAao():\n return hq51(lLE5)",
"def hAao():\n return hq51(lLE5)",
"def VsOv(YKHO):\n return {'Authorization': 'Bearer {}'.format(YKHO.get_jwt())}",
"def VsOv(x0hE, CBIr):\n geh0 = x0hE.post(gxEw('token-obtain'), data={'username': CBIr.username, 'password': CBIr.raw_password}, content_type='app... | [
"0.77325",
"0.77325",
"0.7386359",
"0.73046136",
"0.71326786",
"0.70995873",
"0.7064967",
"0.69181406",
"0.67679745",
"0.6723393",
"0.67186785",
"0.66517",
"0.66500354",
"0.66368353",
"0.6635809",
"0.6585172",
"0.6572229",
"0.6569699",
"0.65522623",
"0.65466243",
"0.65304196"... | 0.6833908 | 8 |
Vectorized function to calculate the greatcircle distance between two points or between vectors of points. Please note that this method is copied from OSMnx method of the same name, | def r1qB(igSk: float, iT5T: float, TGuP: float, JSDM: float, m6kB: float=6371009.0) -> float:
upem = oyIN.deg2rad(90 - igSk)
WMf6 = oyIN.deg2rad(90 - TGuP)
snrU = oyIN.deg2rad(iT5T)
M5jx = oyIN.deg2rad(JSDM)
YhSR = oyIN.sin(upem) * oyIN.sin(WMf6) * oyIN.cos(snrU - M5jx) + oyIN.cos(upem) * oyIN.cos(W... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T97B(k0lF, tjUW):\n H9ac = XTiz.einsum('...i,...i', k0lF, tjUW)\n SMus = XTiz.cross(k0lF, tjUW)\n vTeR = len(SMus.shape) - 1\n return t135(aJJu.norm(SMus, axis=vTeR), H9ac)",
"def T97B(snrU, upem, M5jx, WMf6):\n x4Ha = oyIN.pi / 2.0 - snrU\n MXVQ = oyIN.pi / 2.0 - M5jx\n return oyIN.arcc... | [
"0.7289671",
"0.70696187",
"0.70524025",
"0.69750804",
"0.69441026",
"0.69271106",
"0.6895158",
"0.6836602",
"0.6820166",
"0.6789631",
"0.67889583",
"0.6785679",
"0.67835736",
"0.67750597",
"0.6772455",
"0.67694485",
"0.6763788",
"0.6762551",
"0.6762438",
"0.6759875",
"0.6751... | 0.67869925 | 11 |
Returns the projection matrix for perspective Multiply the position of the camera by the matrix that this function returns | def h085(vYze, Ir38, Qh4y, Dfjx):
Y_1E = epAf.radians(vYze)
trlf = 1 / epAf.tan(Y_1E / 2)
Awtv = trlf
_4UC = Awtv / Ir38
fBjg = (Dfjx + Qh4y) / (Dfjx - Qh4y)
lPwE = -2 * Qh4y * Dfjx / (Dfjx - Qh4y)
return oyIN.matrix([[_4UC, 0, 0, 0], [0, Awtv, 0, 0], [0, 0, fBjg, lPwE], [0, 0, 1, 0]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lOe5(YKHO):\n F6jf = YKHO.figure.scene\n Jb2r = tuple(F6jf.get_size())\n pAIe = float(Jb2r[0]) / float(Jb2r[1])\n XP5J = F6jf.camera.get_perspective_transform_matrix(pAIe, -1, 1).to_array().astype(oyIN.float32)\n return XP5J",
"def lOe5(YKHO) -> KCsE:\n if YKHO._projection_matrix is None:\n... | [
"0.82109255",
"0.76279783",
"0.7519905",
"0.7222865",
"0.72145",
"0.7192118",
"0.71746266",
"0.71618414",
"0.71552086",
"0.7016673",
"0.7000344",
"0.69891137",
"0.68717843",
"0.6742718",
"0.6740875",
"0.6684819",
"0.66156596",
"0.66130567",
"0.6575204",
"0.6541649",
"0.652216... | 0.6639653 | 16 |
Return list of choices for combo box, each a tuple of edit text and any annotation text | def UNjI(YKHO, xF6E=''):
return [(l5Ny, '') for l5Ny in YKHO.formatList] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O2eg(YKHO):\n raise NotImplementedError()",
"def O2eg(YKHO):\n raise NotImplementedError()",
"def mrPm(Emd4):\n return [(int(Wxnj), mWFP) for mWFP, Wxnj in Emd4.__members__.items()]",
"def UNjI(YKHO, xF6E=''):\n Fk3L, deVW = YKHO.sortedChoices(xF6E)\n FP8A = [l5Ny for l5Ny in YKHO.formatLi... | [
"0.64435107",
"0.64435107",
"0.6406375",
"0.6369448",
"0.6282898",
"0.61602914",
"0.61550856",
"0.6096663",
"0.6079173",
"0.6074226",
"0.599768",
"0.5979722",
"0.5946701",
"0.59085536",
"0.58665997",
"0.5852769",
"0.5851758",
"0.5840527",
"0.58387506",
"0.5816007",
"0.5803215... | 0.6981332 | 0 |
Split textStr using editSep, double sep's become char | def iFhu(YKHO, qyGD):
return [l5Ny.strip().replace('\x00', YKHO.editSep) for l5Ny in qyGD.replace(YKHO.editSep * 2, '\x00').split(YKHO.editSep)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(vIwR, VWe_='\\t'):\n return g9qP.split(vIwR, VWe_)",
"def BNW8(YKHO, iSNE, IDob, VWe_=' '):\n if iSNE == VWe_:\n return (RLbc(YKHO.text + iSNE, '', IDob), YKHO.last_word)\n if VWe_ == '':\n return (RLbc(YKHO.text + iSNE, iSNE, IDob), YKHO.last_word)\n return (RLbc(YKHO.text + i... | [
"0.61333054",
"0.5867214",
"0.5828028",
"0.58185434",
"0.5792178",
"0.5787775",
"0.573595",
"0.5613339",
"0.5568093",
"0.5554935",
"0.55341613",
"0.5515633",
"0.5514492",
"0.55078864",
"0.5440001",
"0.5372514",
"0.5367604",
"0.53267324",
"0.5326295",
"0.52897936",
"0.52483726... | 0.7283009 | 0 |
Return list of choices for combo box, each a tuple of edit text and any annotation text | def UNjI(YKHO, xF6E=''):
Fk3L, deVW = YKHO.sortedChoices(xF6E)
FP8A = [l5Ny for l5Ny in YKHO.formatList if l5Ny not in Fk3L]
dixj = []
for Acvy in FP8A:
g2e6 = Fk3L + [Acvy]
g2e6 = [l5Ny for l5Ny in YKHO.formatList if l5Ny in g2e6]
dixj.append((YKHO.editSep.join(g2e6), '(%s %s)' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UNjI(YKHO, xF6E=''):\n return [(l5Ny, '') for l5Ny in YKHO.formatList]",
"def O2eg(YKHO):\n raise NotImplementedError()",
"def O2eg(YKHO):\n raise NotImplementedError()",
"def mrPm(Emd4):\n return [(int(Wxnj), mWFP) for mWFP, Wxnj in Emd4.__members__.items()]",
"def mrPm(YKHO, QNO6, ufgm='d... | [
"0.6981332",
"0.64435107",
"0.64435107",
"0.6406375",
"0.6282898",
"0.61602914",
"0.61550856",
"0.6096663",
"0.6079173",
"0.6074226",
"0.599768",
"0.5979722",
"0.5946701",
"0.59085536",
"0.58665997",
"0.5852769",
"0.5851758",
"0.5840527",
"0.58387506",
"0.5816007",
"0.5803215... | 0.6369448 | 4 |
Return list of choices for combo box, each a tuple of edit text and any annotation text | def UNjI(YKHO, xF6E=''):
format = T3MM.options.strData('EditDateFormat', True)
yo7_ = KCWI().dateStr(format)
azY1 = (KCWI() - 1).dateStr(format)
UjKj = (KCWI() + 1).dateStr(format)
return [(yo7_, '(%s)' % bGrB('today')), (azY1, '(%s)' % bGrB('yesterday')), (UjKj, '(%s)' % bGrB('tomorrow'))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UNjI(YKHO, xF6E=''):\n return [(l5Ny, '') for l5Ny in YKHO.formatList]",
"def O2eg(YKHO):\n raise NotImplementedError()",
"def O2eg(YKHO):\n raise NotImplementedError()",
"def mrPm(Emd4):\n return [(int(Wxnj), mWFP) for mWFP, Wxnj in Emd4.__members__.items()]",
"def UNjI(YKHO, xF6E=''):\n ... | [
"0.6981832",
"0.64423245",
"0.64423245",
"0.6404376",
"0.63695693",
"0.62808853",
"0.615837",
"0.61527145",
"0.60969144",
"0.60806596",
"0.6074747",
"0.59950155",
"0.59769976",
"0.59458613",
"0.59082",
"0.5853147",
"0.5850785",
"0.58412063",
"0.58367765",
"0.58151263",
"0.580... | 0.5867416 | 15 |
Return list of choices for combo box, each a tuple of edit text and annotated text | def UNjI(YKHO, xF6E=''):
format = T3MM.options.strData('EditTimeFormat', True)
wzkt = DLaq().timeStr(format)
mrPm = [(wzkt, '(%s)' % bGrB('now'))]
for gqtN in (6, 9, 12, 15, 18, 21, 0):
ITS7 = DLaq((gqtN, 0)).timeStr(format)
mrPm.append((ITS7, ''))
return mrPm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UNjI(YKHO, xF6E=''):\n return [(l5Ny, '') for l5Ny in YKHO.formatList]",
"def UNjI(YKHO, xF6E=''):\n Fk3L, deVW = YKHO.sortedChoices(xF6E)\n FP8A = [l5Ny for l5Ny in YKHO.formatList if l5Ny not in Fk3L]\n dixj = []\n for Acvy in FP8A:\n g2e6 = Fk3L + [Acvy]\n g2e6 = [l5Ny for l5N... | [
"0.7317573",
"0.67196256",
"0.64775187",
"0.64775187",
"0.6326026",
"0.6246536",
"0.62373483",
"0.621034",
"0.6183985",
"0.6159754",
"0.60702986",
"0.60540736",
"0.6048126",
"0.6031349",
"0.59674495",
"0.59313804",
"0.59044296",
"0.589701",
"0.58720684",
"0.5854758",
"0.58472... | 0.6083853 | 10 |
Extract the session token from the secret_key field. | def biVK(QDug, CGqc):
if QDug and '@@@' in QDug and (not CGqc):
return (QDug.split('@@@')[0], QDug.split('@@@')[1])
else:
return (QDug, CGqc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gNTt(YKHO):\n eOtH = YKHO._session.token\n return eOtH",
"def Ty5o(YKHO):\n wtJw = None\n for zatQ in YKHO._session.cookies:\n if 'shibsession' in zatQ.name:\n wtJw = zatQ\n break\n if not wtJw:\n qmLP.warn('No session token found.', uFQE)\n return wtJw",... | [
"0.6786535",
"0.6588912",
"0.6564999",
"0.6549351",
"0.65473354",
"0.6426423",
"0.64007133",
"0.6390965",
"0.6321878",
"0.63127387",
"0.6308861",
"0.63074374",
"0.62886924",
"0.62571794",
"0.6218154",
"0.6218154",
"0.61798644",
"0.61466336",
"0.61005646",
"0.6099376",
"0.6099... | 0.7777419 | 0 |
Return the path of the ocamlmerlin binary." | def QkCp():
Qr55 = CREs.load_settings('Merlin.sublime-settings')
JoGz = Qr55.get('ocamlmerlin_path')
if JoGz:
return JoGz
if '/usr/local/bin' not in Hy7s.environ['PATH'].split(Hy7s.pathsep):
Hy7s.environ['PATH'] += Hy7s.pathsep + '/usr/local/bin'
fl_v = Yn3K.Popen('opam config var bi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LLgG():\n return Hy7s.path.abspath(Hy7s.path.join(Rip8(), 'bin/'))",
"def XBdQ():\n return WQbV('bin')",
"def XKZ_(HCmI, wkCI=False):\n return Hy7s.path.join(eB0B, HCmI)",
"def A7Gb():\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '../'))",
"def Yeg3(YKHO):\n return ... | [
"0.682036",
"0.6652295",
"0.65895194",
"0.6584268",
"0.6460019",
"0.64083457",
"0.63974833",
"0.6339136",
"0.6329058",
"0.63127565",
"0.6281566",
"0.6236012",
"0.6232723",
"0.62326777",
"0.6230347",
"0.61885166",
"0.6138241",
"0.61246544",
"0.6089618",
"0.6089618",
"0.6089160... | 0.7753057 | 0 |
Check if the current view is an OCaml source code. | def _fYp(tTee):
Wtm8 = 'source.ocaml'
KUeV = 'source.mlfi'
Rci7 = tTee.sel()[0].begin()
return tTee.match_selector(Rci7, Wtm8) or tTee.match_selector(Rci7, KUeV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nU4i(YKHO):\n YKHO.view.set_syntax_file('Packages/Python/Python.tmLanguage')\n n5sN = Eyel(YKHO.view)\n YKHO.assertFalse(n5sN)",
"def R32p(YKHO):\n n5sN = Eyel(YKHO.view)\n YKHO.assertTrue(n5sN)",
"def c7Kh(tTee):\n if tTee.match_selector(0, 'text.hyperhelp.help'):\n return not tTe... | [
"0.67141247",
"0.61287296",
"0.59936684",
"0.59469485",
"0.59078604",
"0.5851658",
"0.5787282",
"0.5709476",
"0.5676872",
"0.5662873",
"0.56603956",
"0.55736876",
"0.5511895",
"0.5484196",
"0.5424797",
"0.54031396",
"0.53450185",
"0.53424245",
"0.52996314",
"0.5279858",
"0.52... | 0.69519085 | 0 |
Replace sequence of whitespaces by a single space | def bPnd(l5Ny):
return l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uH_F(YKHO) -> None:\n YKHO.text = ZbWC.sub('\\\\s+', ' ', YKHO.text)",
"def ccMH(l5Ny):\n return hHll.sub(' ', l5Ny)",
"def gGbk(KCHu, sWfS=' '):\n KCHu = ZbWC.sub('\\\\s+', sWfS, KCHu)\n return KCHu",
"def yAYF(l5Ny):\n return fMIo.sub(' ', l5Ny.strip())",
"def mQFJ(YKHO) -> None:\n ... | [
"0.7690094",
"0.7357652",
"0.73225224",
"0.72260857",
"0.7153848",
"0.7132321",
"0.70644516",
"0.7048768",
"0.70468843",
"0.7003004",
"0.6987875",
"0.69768345",
"0.6918292",
"0.6918292",
"0.68797535",
"0.6837561",
"0.6772368",
"0.676568",
"0.676431",
"0.6750295",
"0.67097074"... | 0.62447345 | 44 |
.first_name will return the correct first name | def mWrs(YKHO):
pCdZ = ggyN(first_name='John', last_name='Starks', sport='NBA', recommendation='a')
YKHO.assertEqual(pCdZ.first_name, 'John') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fz1W(YKHO) -> str:\n return YKHO.first_name",
"def c9ua(YKHO, KAOR):\n return KAOR.user.first_name",
"def fz1W(YKHO):\n return YKHO._first_name",
"def fcCO(YKHO):\n return YKHO._firstname",
"def fcCO(YKHO):\n return YKHO._firstname",
"def c9ua(YKHO):\n return YKHO._first_name",
"d... | [
"0.861615",
"0.84696996",
"0.8462464",
"0.8350101",
"0.8350101",
"0.83253694",
"0.83253694",
"0.83253694",
"0.83061045",
"0.8267587",
"0.8145835",
"0.8013964",
"0.7967768",
"0.7967768",
"0.7913839",
"0.7835207",
"0.77401644",
"0.77401644",
"0.77401644",
"0.77401644",
"0.77401... | 0.0 | -1 |
.last_name will return the correct last name | def FvJu(YKHO):
pCdZ = ggyN(first_name='John', last_name='Starks', sport='NBA', recommendation='a')
YKHO.assertEqual(pCdZ.last_name, 'Starks') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCKR(YKHO) -> str:\n return YKHO.last_name",
"def zp3f(YKHO, KAOR):\n return KAOR.user.last_name",
"def CCKR(YKHO):\n return YKHO._last_name",
"def Tm8r(YKHO):\n return YKHO.lastname",
"def jBHA(YKHO):\n return YKHO._lastname",
"def zp3f(YKHO):\n return YKHO._last_name",
"def zp3f... | [
"0.86927557",
"0.86003095",
"0.85996276",
"0.8470737",
"0.8462683",
"0.84567153",
"0.84567153",
"0.84567153",
"0.84567153",
"0.84528154",
"0.8397316",
"0.8331911",
"0.8289265",
"0.8289265",
"0.8289265",
"0.8289265",
"0.8289265",
"0.8217353",
"0.82091343",
"0.82091343",
"0.811... | 0.0 | -1 |
Initialize the linked list. | def FIMM(YKHO):
YKHO.head = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, yv6U=[]):\n YKHO.__length = 0\n YKHO.__head = None\n for tTpl in yv6U:\n YKHO.add(tTpl)",
"def FIMM(YKHO):\n Q6kx = Msxl(0)\n YKHO.head = Q6kx\n YKHO.tail = Q6kx\n YKHO.len = 0",
"def FIMM(YKHO, DbxN):\n YKHO.stepforward = int(DbxN)\n YKHO.data = ia5I()",
"def... | [
"0.793523",
"0.7746552",
"0.7618733",
"0.76008236",
"0.7564557",
"0.7530009",
"0.74541533",
"0.74384236",
"0.7436091",
"0.74262166",
"0.74253154",
"0.74253154",
"0.73937964",
"0.7374561",
"0.7347711",
"0.7333443",
"0.7332118",
"0.7326369",
"0.7326369",
"0.7326369",
"0.731081"... | 0.7175879 | 63 |
Check whether a given seed is still unexplored. | def yXCR(YKHO, yokr):
yvT9 = YKHO.complement(yokr)
return YKHO.solver.solve([YRbF + 1 for YRbF in yokr] + [-(YRbF + 1) for YRbF in yvT9]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BkKc(yokr):\n for Npgh in yokr:\n if not Npgh in kfdM:\n return False\n return True",
"def BkKc(yokr):\n for Npgh in yokr:\n if not Npgh in kfdM:\n return False\n return True",
"def BkKc(yokr):\n if yokr == '0':\n return True\n for Npgh in yokr:\... | [
"0.6756834",
"0.6756834",
"0.6691525",
"0.6599388",
"0.61974424",
"0.6161359",
"0.5891919",
"0.5860734",
"0.58116674",
"0.5756278",
"0.572533",
"0.5714277",
"0.57110393",
"0.5691943",
"0.5688913",
"0.56780785",
"0.5637771",
"0.559989",
"0.556628",
"0.5554336",
"0.55459327",
... | 0.62459785 | 4 |