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 |
|---|---|---|---|---|---|---|
CrossoverOperator the bodies `body_attr` of two trees `t1` and `t2`. Return True if successful. | def dlXk(YKHO, n2Q1, SpII, Tl7_):
assert isinstance(n2Q1, jZ4I.AST)
assert isinstance(SpII, jZ4I.AST)
assert isinstance(Tl7_, str)
if not getattr(n2Q1, Tl7_, None) or not getattr(SpII, Tl7_, None):
return False
if YKHO.crossover_branches(n2Q1, SpII):
return (n2Q1, SpII)
if YKHO.l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jWUT(YKHO, n2Q1, SpII):\n assert isinstance(n2Q1, jZ4I.AST)\n assert isinstance(SpII, jZ4I.AST)\n for Tl7_ in ['body', 'orelse', 'finalbody']:\n if YKHO.crossover_attr(n2Q1, SpII, Tl7_):\n return (n2Q1, SpII)\n raise R8Tt('No crossover found')",
"def SZuE(YKHO, WBMy, WMEP):\n ... | [
"0.7265587",
"0.5615946",
"0.5350632",
"0.5110765",
"0.5109744",
"0.50748146",
"0.5071171",
"0.50490874",
"0.5033519",
"0.4986048",
"0.48812097",
"0.4880675",
"0.48803774",
"0.4867313",
"0.47733247",
"0.4769179",
"0.4768347",
"0.47660184",
"0.4753546",
"0.47362763",
"0.471049... | 0.8024304 | 0 |
Constructor. Arguments are as with `StatementMutator` constructor. | def FIMM(YKHO, *qIxc, **B2fa):
super().__init__(*qIxc, **B2fa)
YKHO.conditions = us0k(YKHO.source)
if YKHO.log:
print('Found conditions', [Iol3.to_source(Q3Ge).strip() for Q3Ge in YKHO.conditions]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(Emd4, BWXx: object, *ENbI: Any, **lcZy: Any) -> 'Statement':\n ZlgM = super().__new__(Emd4, BWXx)\n return ZlgM",
"def FIMM(YKHO):\n YKHO.Statement = []",
"def ZzSb(Emd4, WNtM):\n return Emd4('\\n'.join(TI0e.dedent(WNtM).splitlines()[1:]))",
"def FIMM(YKHO, Pe9W=None, wXzk=None, Ux0P=Non... | [
"0.7211767",
"0.6505045",
"0.63745576",
"0.6348355",
"0.61185133",
"0.60718924",
"0.6047413",
"0.59996504",
"0.59317374",
"0.5832915",
"0.58224547",
"0.5815079",
"0.5802179",
"0.5789632",
"0.5758655",
"0.5741191",
"0.5728888",
"0.56879854",
"0.5678093",
"0.56609845",
"0.56288... | 0.0 | -1 |
Return the number of Hydrogen bond donors in the molecule. A Hydrogen bond donor is a H bonded to an O, or N. | def Oet1(YKHO):
if not YKHO.hasBonds:
YKHO.buildBondsByDistance()
L80q = 0
for jzdc in YKHO.allAtoms:
if jzdc.element == 'H':
L80q += jzdc.bonds[0].neighborAtom(jzdc).element in ('O', 'N')
return L80q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ThX6(rdlD):\n r8hN = OJ0g.MolFromSmiles(rdlD.SMILES)\n geg6 = BvBb.NumHDonors(r8hN)\n return geg6",
"def ThX6(rdlD):\n r8hN = OJ0g.MolFromSmiles(rdlD.SMILES)\n geg6 = BvBb.NumHDonors(r8hN)\n return geg6",
"def eZFG(N9D1, DNs0):\n V_NB = OJ0g.AddHs(N9D1)\n NAQc = 0\n for mLGw, T2C... | [
"0.6865252",
"0.6865252",
"0.65677077",
"0.65267366",
"0.5985927",
"0.5985927",
"0.59564084",
"0.58504856",
"0.5735814",
"0.5704089",
"0.556828",
"0.5552182",
"0.55492824",
"0.54705805",
"0.5438462",
"0.54074496",
"0.54009545",
"0.53853995",
"0.53842807",
"0.538396",
"0.53806... | 0.8398151 | 0 |
Return the number of Hydrogen bond acceptors in the molecule. A Hydrogen bond acceptor is an O or and N. | def xxMU(YKHO):
cC3t = 0
for jzdc in YKHO.allAtoms:
cC3t += jzdc.element in ('O', 'N')
return cC3t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oet1(YKHO):\n if not YKHO.hasBonds:\n YKHO.buildBondsByDistance()\n L80q = 0\n for jzdc in YKHO.allAtoms:\n if jzdc.element == 'H':\n L80q += jzdc.bonds[0].neighborAtom(jzdc).element in ('O', 'N')\n return L80q",
"def IDeR(rdlD):\n r8hN = OJ0g.MolFromSmiles(rdlD.SMILES... | [
"0.7092994",
"0.64413893",
"0.6191796",
"0.6186009",
"0.6186009",
"0.56347716",
"0.5630681",
"0.5540772",
"0.5491301",
"0.5439708",
"0.5434414",
"0.54102796",
"0.5378954",
"0.5368424",
"0.52783245",
"0.5276656",
"0.5270156",
"0.52669096",
"0.5241736",
"0.52093697",
"0.5199175... | 0.84010375 | 0 |
Return the octanol partition coefficient of the molecule. | def QPcJ(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def acOW() -> float:\n return 1 / 0.46",
"def oJJd(YKHO):\n Z9rn, Csk6 = rmez(YKHO.__linkage, YKHO.__distance_matrix)\n return round(Z9rn, 3)",
"def egRa(Qrt_, exwG=None):\n i9Rn = 0\n mghH = 1\n for XP5J in Qrt_:\n i9Rn += XP5J\n mghH *= TFEx(XP5J)\n if exwG is None:\n ... | [
"0.62270755",
"0.5998368",
"0.5968289",
"0.5898935",
"0.5701933",
"0.56940776",
"0.5688284",
"0.5688123",
"0.56872565",
"0.56292695",
"0.56115204",
"0.5580812",
"0.5574052",
"0.5539158",
"0.55318284",
"0.5511949",
"0.54952514",
"0.5473133",
"0.54450315",
"0.5443963",
"0.54321... | 0.0 | -1 |
Makes a new unique subject_name for an original subject (originally created in this repository, not cloned from an external repository). | def HvHm(KcEq, s7lQ):
id = MfiP.create_id()
return '%s/%s.%d' % (KcEq, W0tD(s7lQ), id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WiER(YKHO, WiER):\n YKHO._subject_name = WiER",
"def Ab9Q(YKHO, okTO):\n raise NotImplementedError",
"def U4ZT(YKHO, U4ZT: 'str'):\n YKHO._attrs['subject'] = U4ZT",
"def U4ZT(YKHO, U4ZT: 'str'):\n YKHO._attrs['subject'] = U4ZT",
"def SaMl(YKHO):\n EK5z = St99(YKHO.subject, YKHO.DATA_MODE... | [
"0.72923565",
"0.6557637",
"0.64840806",
"0.64840806",
"0.6456563",
"0.6382463",
"0.63191813",
"0.62643915",
"0.6213363",
"0.61556274",
"0.61109585",
"0.60629874",
"0.59957635",
"0.5978133",
"0.5968337",
"0.5959318",
"0.59280187",
"0.5899243",
"0.58673733",
"0.5864138",
"0.58... | 0.6275544 | 7 |
Gets the MinimalSubject entity for the given Subject. | def JlGn(U4ZT):
return cwGY.all().ancestor(U4ZT).get() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mUtM(YKHO):\n return YKHO._subject",
"def VXDd(HjSO: SubjectID) -> h8nf[zUvH]:\n U4ZT = hFei.query.get(HjSO)\n if U4ZT is None:\n return None\n return p9vQ(U4ZT)",
"def LZJ7(YKHO):\n return mLQl.from_POW(YKHO.get_POW().getSubject())",
"def LZJ7(YKHO):\n return mLQl.from_POW(YKHO.... | [
"0.64311826",
"0.6425734",
"0.61142874",
"0.61142874",
"0.6060248",
"0.59992605",
"0.59871256",
"0.59259456",
"0.59200877",
"0.5916239",
"0.5906356",
"0.5894232",
"0.5833647",
"0.5821658",
"0.5821658",
"0.5811914",
"0.57908106",
"0.57899183",
"0.5756734",
"0.5715578",
"0.5705... | 0.7738488 | 0 |
Gets a Subscription entity by its subject_name and email. | def NMoC(WiER, cHyp):
return oZou.get_by_key_name(WiER + ':' + cHyp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JlGn(WiER):\n return qwmx(oZou.all(), WiER + ':')",
"def Uwkg(YKHO, MZVS):\n return YKHO.get(email_subscription_name=MZVS)",
"def GgQQ(Emd4, Wswm):\n return oZou.query.get_or_404(Wswm)",
"def nGvR(a4ZY):\n return oZou(yqe2.getStub('subscription').Get(PuPw.SubscriptionGetRequest(id=a4ZY), time... | [
"0.7094307",
"0.6975274",
"0.63484716",
"0.60371023",
"0.6007752",
"0.5996732",
"0.5946372",
"0.5899261",
"0.57004863",
"0.5653863",
"0.5626889",
"0.5621962",
"0.5595033",
"0.5568514",
"0.55526584",
"0.54953104",
"0.54867613",
"0.5479473",
"0.54357135",
"0.53924906",
"0.53681... | 0.7801574 | 0 |
Returns True if the course is ongoing and False if not. | def HkiE(YKHO) -> bool:
yo7_ = qcWV.today()
return False if YKHO.time is None else yo7_.weekday() == YKHO.weekday() and YKHO.time.start <= yo7_.hour * 60 + yo7_.minute <= YKHO.time.end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dCxj(YKHO):\n return YKHO._recent_goal_continued",
"def ksfB(YKHO, v7nJ, wzkt):\n if v7nJ.cid in YKHO._timestamps:\n return wzkt <= YKHO._timestamps[v7nJ.cid].last_active + oW3o\n return False",
"def ksfB(YKHO):\n wzkt = YKHO.sim.now\n return wzkt < YKHO.stop and YKHO._number < YKHO.m... | [
"0.67648387",
"0.6712462",
"0.6710088",
"0.66984653",
"0.6691759",
"0.6680325",
"0.664772",
"0.6620251",
"0.6579959",
"0.65431714",
"0.6514873",
"0.6495611",
"0.6491855",
"0.64872324",
"0.64844537",
"0.64689606",
"0.64653885",
"0.6403669",
"0.64034885",
"0.6400822",
"0.635579... | 0.64236337 | 17 |
Initialize a Course object from the path to its .yaml dictionary. | def aBOe(Emd4, pmON: str):
tk5Y = pmON
for bGrB in range(3):
tk5Y = Hy7s.path.dirname(tk5Y)
LSz7 = pmON[len(tk5Y) + 1:]
mWFP = LSz7[:LSz7.index(Hy7s.sep)]
uaNC = mWFP[mWFP.rfind(' '):][1:]
qESs = f"The course abbreviation '{uaNC}' in '{mWFP}' is not valid."
if not uaNC.startswith('('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M_9t(Emd4, pmON: str):\n while pmON != Hy7s.path.dirname(pmON):\n for eHNT in Hy7s.listdir(pmON):\n if eHNT.endswith('.yaml'):\n return CQpO.from_file(Hy7s.path.join(pmON, eHNT))\n else:\n pmON = Hy7s.path.dirname(pmON)\n return None",
"def FIMM(YKHO, ... | [
"0.7246551",
"0.70464456",
"0.643223",
"0.64051455",
"0.64045334",
"0.63376856",
"0.6265202",
"0.6198536",
"0.6167882",
"0.6122628",
"0.6077643",
"0.6076279",
"0.6048059",
"0.60188985",
"0.60183597",
"0.6010949",
"0.6009848",
"0.599325",
"0.599325",
"0.59819484",
"0.5962732",... | 0.72107744 | 1 |
List the courses in a timeline. | def eHNY(YKHO, **B2fa):
def owxX(exwG, ounV=10):
"""Round to multiple."""
return int(ounV * round(float(exwG) / ounV))
oUno = 7 * 60 + 20
nH09 = 21 * 60
VOlW = 100
gUhQ = ((nH09 - oUno) // VOlW + 1) * VOlW
gzOW = gUhQ // VOlW
PXIy = gUhQ // 10
Sm0u = {YRbF: [[' '] * PXIy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T24L(QePW, rPXJ='core/list_course.html'):\n geh0 = {'morning': CQpO.objects.at_morning(), 'afternoon': CQpO.objects.at_afternoon()}\n return EEdX(QePW, rPXJ, geh0)",
"def PMxp(QePW):\n if yf6H().has_user(QePW.user):\n sDlr = cW_5(QePW)\n else:\n try:\n sDlr = ohl7(QePW)\n... | [
"0.7028933",
"0.66413516",
"0.65793216",
"0.64610505",
"0.6394742",
"0.63356215",
"0.6284867",
"0.6252264",
"0.61700624",
"0.61358184",
"0.6118361",
"0.60674953",
"0.6016344",
"0.60092545",
"0.59679633",
"0.58901113",
"0.58563423",
"0.582817",
"0.58200777",
"0.58168924",
"0.5... | 0.58296084 | 17 |
Test the sigmoid cross entropy pointiwse loss object | def ExI1(YKHO):
tEbt = iXxX.SigmoidCrossEntropy()
aMgO = tEbt.final_activation_op({'logits': YKHO.logits, 'metadata': {'mask': YKHO.mask}})
assert oyIN.isclose(aMgO[0][0].numpy(), 0.54905695, atol=1e-05)
assert oyIN.isclose(aMgO[2][4].numpy(), 0.0, atol=1e-05)
N77f = tEbt({'mask': YKHO.mask}, YKHO.y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8d8(YKHO):\n MxcS = 1\n Aofo = YDYE.soft_sigmoid(MxcS)\n YKHO.assertEqual(Aofo, 0.6963549298238342)",
"def IGQs(LVAh, UXqs):\n N8L0 = -oyIN.log(LVAh + AdZA) * UXqs - oyIN.log(1.0 - LVAh + AdZA) * (1.0 - UXqs)\n return N8L0",
"def m1Hg(WKvO):\n hcL3 = 1.0 / (1.0 + oyIN.exp(-WKvO))\n re... | [
"0.7410867",
"0.71433216",
"0.71346706",
"0.7078074",
"0.69633836",
"0.69633836",
"0.69502914",
"0.6937943",
"0.6937943",
"0.68985385",
"0.68732935",
"0.6871054",
"0.6871054",
"0.6871054",
"0.6871054",
"0.6871054",
"0.6871054",
"0.6861679",
"0.68597966",
"0.6855672",
"0.68529... | 0.8148278 | 0 |
Test the one hot cross entropy for aux target with ties | def Llph(YKHO):
tEbt = cKX7.AuxiliaryOneHotCrossEntropy()
aMgO = tEbt.final_activation_op({'logits': YKHO.logits, 'metadata': {'mask': YKHO.mask}})
assert oyIN.isclose(aMgO[0][0].numpy(), 0.19868991, atol=1e-05)
assert oyIN.isclose(aMgO[2][4].numpy(), 0.0, atol=1e-05)
N77f = tEbt({'mask': YKHO.mask}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AmJg(YKHO):\n tEbt = cKX7.AuxiliaryOneHotCrossEntropy()\n aMgO = tEbt.final_activation_op({'logits': YKHO.logits, 'metadata': {'mask': YKHO.mask}})\n assert oyIN.isclose(aMgO[0][0].numpy(), 0.19868991, atol=1e-05)\n assert oyIN.isclose(aMgO[2][4].numpy(), 0.0, atol=1e-05)\n N77f = tEbt({'mask': ... | [
"0.82314354",
"0.7107997",
"0.6577458",
"0.65271825",
"0.65167147",
"0.6492352",
"0.64810234",
"0.6461922",
"0.64272654",
"0.63998437",
"0.63623744",
"0.6359017",
"0.6355198",
"0.63364434",
"0.6283812",
"0.62769973",
"0.62759167",
"0.62632394",
"0.6259588",
"0.61826545",
"0.6... | 0.8322475 | 0 |
Given a student name, generate a unique slug for that student | def hGb2(mWFP: str) -> str:
s5ru = eIIt(mWFP)
if not G8qb.objects.filter(slug=s5ru).exists():
return s5ru
ewCu = 1
while True:
bmGy = f'{s5ru}-{ewCu}'
if not G8qb.objects.filter(slug=bmGy).exists():
return bmGy
ewCu += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _DUQ(YKHO):\n return eIIt(YKHO.name)",
"def _DUQ(mWFP):\n s5ru = YX8g(mWFP).lower().replace('_', '-')\n soU0 = s5ru\n exwG = 1\n while not G0Sy(soU0):\n exwG += 1\n soU0 = s5ru + '-' + str(exwG)\n return soU0",
"def _DUQ(YKHO):\n s5ru = eIIt(YKHO.title)\n Tr7p = s5ru\n... | [
"0.74999523",
"0.7204617",
"0.6984936",
"0.6863214",
"0.6719303",
"0.6681752",
"0.66477704",
"0.6633485",
"0.6614247",
"0.6578231",
"0.65479773",
"0.6544474",
"0.6507287",
"0.6506236",
"0.64668",
"0.64605737",
"0.64070547",
"0.6382842",
"0.6372856",
"0.6368093",
"0.6341335",
... | 0.8879662 | 0 |
Return yamlserializable dict representation of this object. | def q24I(YKHO):
ht5v = YKHO.__dict__
ht5v['cluster_id'] = str(YKHO.cluster_id)
ht5v['server_id'] = str(YKHO.server_id)
return ht5v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GMGf(YKHO):\n FD5x._check_yaml_import()\n import yaml\n return yaml.safe_dump(dict(YKHO))",
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def e0s9(YKHO):\n return {'key': YKHO.getKey(), 'spec': YKHO.getSpec(), 'name': YKHO.getName(), 'description': YKHO.getDescription(), 'createdAt': YKHO.getCreat... | [
"0.8036639",
"0.796841",
"0.7872443",
"0.7869207",
"0.7674701",
"0.76224375",
"0.76077986",
"0.7550838",
"0.7478528",
"0.7442435",
"0.7426577",
"0.741481",
"0.741481",
"0.741481",
"0.741481",
"0.741481",
"0.741481",
"0.7387087",
"0.7342017",
"0.73383754",
"0.7327165",
"0.72... | 0.76984185 | 4 |
Returns an instance of the MainWindow's status bar, displayed at the bottom of the main window() | def F92e():
HC_s = Cvzl()
return HC_s.statusBar() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2yl(YKHO):\n YKHO.statusbar = YKHO.CreateStatusBar()",
"def niAW(YKHO):\n return YKHO._main_win",
"def o4II(YKHO) -> None:\n YKHO._statusBar = fHsg()\n YKHO.setStatusBar(YKHO._statusBar)",
"def wgu4(YKHO):\n bx_5 = YKHO.app.get_editor()\n zNig = YKHO.size()\n DpUl = bx_5.cursor()\n ... | [
"0.6971956",
"0.66381335",
"0.66239566",
"0.65907454",
"0.6582707",
"0.63849336",
"0.6368836",
"0.6361373",
"0.6361373",
"0.6361373",
"0.6318891",
"0.6310896",
"0.62998414",
"0.62734336",
"0.6268561",
"0.6268561",
"0.62496114",
"0.6185957",
"0.60250777",
"0.6015626",
"0.59971... | 0.837974 | 0 |
Get full path to localised version of given file. | def xTXV(YKHO, rQow, Ux0P):
return Hy7s.path.join(YKHO.get_localised_dir(rQow), Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d0Oq(mWFP):\n return Hy7s.path.abspath(Whwd(__name__, mWFP))",
"def c6k1(hvL1):\n return nPrm.ResourcePath(hvL1)",
"def Mu0k(YKHO, Ux0P):\n return Hy7s.path.join(YKHO.root, YKHO.version, Ux0P)",
"def kBtS(YKHO, nUeQ: str) -> str:\n return Hy7s.path.abspath(f'tests/resources/{nUeQ}')",
"def ... | [
"0.75364035",
"0.7110393",
"0.6741334",
"0.67233837",
"0.6720599",
"0.6691851",
"0.6619739",
"0.6611061",
"0.6606329",
"0.6581355",
"0.65697646",
"0.65529674",
"0.65393794",
"0.6515368",
"0.65047157",
"0.6487688",
"0.64628404",
"0.6458152",
"0.63440233",
"0.6317376",
"0.62996... | 0.7775177 | 0 |
Return full path to the localised content directory of the loader. | def MUJz(YKHO, rQow):
return Hy7s.path.join(YKHO.base_path, c7FC(rQow), YKHO.content_path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmON(YKHO):\n pmON = Hy7s.path.join(YKHO.base_dir, YKHO.store().replace(' ', '_'), YKHO.package_name())\n return Hy7s.path.abspath(pmON)",
"def lbk2(YKHO):\n return YKHO.home",
"def dir(YKHO) -> str:\n return f'{Hy7s.path.dirname(YKHO.path)}/'.lstrip('/')",
"def ulDt():\n tk5Y = xAKo\n ... | [
"0.71643317",
"0.6896528",
"0.6821353",
"0.6819986",
"0.68157864",
"0.67826957",
"0.6762796",
"0.66732806",
"0.6602083",
"0.65813637",
"0.65788406",
"0.6556326",
"0.65431577",
"0.65328294",
"0.6507623",
"0.6503",
"0.64911914",
"0.6484893",
"0.6467069",
"0.6456652",
"0.6453728... | 0.77603686 | 0 |
Load and read given YAML file. | def jnN0(YKHO, AlZF):
try:
SGPW = open(AlZF, encoding='UTF-8').read()
except FileNotFoundError:
raise IqVS(AlZF)
try:
jEKy = eJb6.safe_load(SGPW)
except eJb6.YAMLError:
raise Jcfx(AlZF)
if jEKy is None:
raise EEir(AlZF)
if isinstance(jEKy, dict) is False:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9B0(nUeQ: Text):\n with open(nUeQ) as ytgA:\n return eJb6.load(ytgA, eJb6.FullLoader)",
"def M2Ye(SGPW):\n with open(SGPW, 'r') as ak10:\n w97_ = eJb6.safe_load(ak10)\n return w97_",
"def f9B0(VqRE):\n with open(VqRE, 'r') as wOb_:\n try:\n return eJb6.safe_load... | [
"0.80314195",
"0.79943186",
"0.7986928",
"0.7972603",
"0.79548",
"0.79546857",
"0.7924562",
"0.7907691",
"0.78959477",
"0.7815696",
"0.779105",
"0.7752526",
"0.76876724",
"0.7595392",
"0.7581102",
"0.7555926",
"0.75353",
"0.7516288",
"0.7502198",
"0.74752605",
"0.74660486",
... | 0.7804813 | 10 |
Given a plugin path, return the path to its venv's sitepackages directory. | def Mr__(suyw):
pmON = gzes(suyw, 'env', 'lib', 'python{}.{}'.format(*HwRy.version_info), 'site-packages')
assert Hy7s.path.exists(pmON), 'plugin site-packages path "{}" does not exist'.format(pmON)
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cJe7(suyw):\n WzUF = Mr__(suyw)\n return [suyw, WzUF] + [gzes(WzUF, KCHu) for KCHu in Hy7s.listdir(WzUF) if not KCHu.endswith('.pth')]",
"def MKe6() -> str:\n if Hy7s.name == 'nt':\n return Hy7s.path.join(jMCG(), 'Lib', 'site-packages')\n rj1q = f'python{HwRy.version_info.major}.{HwRy.vers... | [
"0.7662514",
"0.74459743",
"0.70638865",
"0.69029135",
"0.6885322",
"0.6847522",
"0.68388146",
"0.66553307",
"0.660575",
"0.6506995",
"0.6377109",
"0.63741213",
"0.6269047",
"0.61132985",
"0.6051365",
"0.60466486",
"0.60414577",
"0.602893",
"0.6020737",
"0.59876883",
"0.59431... | 0.86020905 | 0 |
Return True iff obj is nested to a consistent depth throughout. >>> consistent_depth(6) True >>> consistent_depth([1, 2, 3, 4]) True >>> consistent_depth([1, 2, [3], 4]) False >>> consistent_depth([[1], [2, 3], [4]]) True >>> consistent_depth([1, [2, 3], 4]) False >>> consistent_depth([[[1]], [[2], [3], [4], []]]) True... | def A1pg(YEnM: Union[int, list]) -> bool:
if isinstance(YEnM, int):
return True
elif YEnM == []:
return True
else:
NMRn = rb7a(YEnM[0])
for XuXy in YEnM:
hKyn = NMRn == rb7a(XuXy) and A1pg(XuXy)
if not hKyn:
return False
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L54J(YKHO):\n return YKHO._is_depth",
"def RWDy(YKHO, rb7a):\n if rb7a >= YKHO.ply:\n return True\n return False",
"def kh3i(YKHO):\n return YKHO.depth > YKHO.depth_limit",
"def e6Ej(nPrm):\n if isinstance(nPrm, dict):\n for G1Hx in nPrm:\n if isinstance(nPrm[G1Hx]... | [
"0.6085986",
"0.58578485",
"0.5754885",
"0.57215226",
"0.570764",
"0.5539398",
"0.54987484",
"0.548311",
"0.54732037",
"0.53635645",
"0.5349064",
"0.5299297",
"0.52740467",
"0.5224822",
"0.5151036",
"0.51185244",
"0.5060194",
"0.50521356",
"0.505052",
"0.5023243",
"0.49798256... | 0.8277158 | 0 |
Converts miles to tenths of a mile `round(mi 100)` | def KtDk(VAJu):
return round(aBlt(VAJu, 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zpqm(JYmd):\n return JYmd * 1.60934",
"def zpqm(JYmd: float) -> float:\n TE6a = float(JYmd)\n ssQ2 = float(float(TE6a) * 1.60934)\n return round(ssQ2, 2)",
"def QAKp(l1UJ):\n JYmd = l1UJ / 1609.344\n return JYmd",
"def brid(q5XV):\n return q5XV * 0.621371",
"def JrmV(YKHO) -> None:... | [
"0.75017035",
"0.74707824",
"0.7334726",
"0.72808695",
"0.7234439",
"0.7233604",
"0.7206585",
"0.7153392",
"0.70546776",
"0.68228143",
"0.64714426",
"0.6454524",
"0.64334714",
"0.6358854",
"0.6346669",
"0.6315866",
"0.6264553",
"0.6127926",
"0.60482556",
"0.6038334",
"0.60118... | 0.55490005 | 49 |
A little bit like numpy.meshgrid, except returns only boundary values and limited to 2d case only. | def UB59(WKvO, LVAh=None):
if LVAh is None:
LVAh = WKvO
return oyIN.vstack([oyIN.vstack([WKvO, oyIN.full_like(WKvO, LVAh[0])]).T, oyIN.vstack([oyIN.full_like(LVAh, WKvO[-1]), LVAh]).T[1:], oyIN.vstack([WKvO, oyIN.full_like(WKvO, LVAh[-1])]).T[::-1][1:], oyIN.vstack([oyIN.full_like(LVAh, WKvO[0]), LVAh])... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BCF7(wBZN, re6M, KDmU, rwK9, MKlR=0.02):\n CAzz, Jd40 = oyIN.meshgrid(oyIN.arange(wBZN, re6M, MKlR), oyIN.arange(KDmU, rwK9, MKlR))\n return (CAzz, Jd40)",
"def BCF7(wBZN, re6M, KDmU, rwK9, MKlR=0.02):\n CAzz, Jd40 = oyIN.meshgrid(oyIN.arange(wBZN, re6M, MKlR), oyIN.arange(KDmU, rwK9, MKlR))\n re... | [
"0.7514348",
"0.7514348",
"0.73367953",
"0.73367953",
"0.730571",
"0.7281956",
"0.72791684",
"0.7249696",
"0.7249696",
"0.7249696",
"0.7249696",
"0.7196818",
"0.7148425",
"0.70763934",
"0.69537723",
"0.6917682",
"0.6878586",
"0.6875794",
"0.67855096",
"0.6763318",
"0.6717307"... | 0.0 | -1 |
Get boundary points from a 2d roi. roi needs to be in the normalised form, i.e. no openended start/stop, see roi_normalise | def NLxH(Zmw9, VGeW=2):
Jd40, CAzz = Zmw9
CAzz = oyIN.linspace(CAzz.start, CAzz.stop, VGeW, dtype='float32')
Jd40 = oyIN.linspace(Jd40.start, Jd40.stop, VGeW, dtype='float32')
return UB59(CAzz, Jd40).T[:-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Afg7(YKHO):\n return (YKHO._points[0][1], YKHO._points[0][3])",
"def Zmw9(nPrm):\n return nPrm[nPrm.shape[0] // 2 - qIxc.roi:nPrm.shape[0] // 2 + qIxc.roi, nPrm.shape[1] // 2 - qIxc.roi:nPrm.shape[1] // 2 + qIxc.roi]",
"def FKxD(Zmw9: np.ndarray) -> cuzp[int, _gNd]:\n try:\n IOHw, nHJz = FK... | [
"0.68793625",
"0.6778617",
"0.6636487",
"0.6281521",
"0.62696445",
"0.6265659",
"0.62302566",
"0.620769",
"0.6187315",
"0.61726624",
"0.6163149",
"0.6153046",
"0.61523026",
"0.614335",
"0.6079284",
"0.6076044",
"0.60754627",
"0.6067563",
"0.60234904",
"0.6008623",
"0.59964365... | 0.73052937 | 0 |
True if Affine transform has scale and translation components only. | def O09I(k0lF, yJiH=1e-10):
bGrB, lnPd, bGrB, V1sm, bGrB, bGrB, *bGrB = k0lF
return abs(lnPd) < yJiH and abs(V1sm) < yJiH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BFBU(YKHO):\n if YKHO.is_irreducible():\n return YKHO._info['affine']\n else:\n return False",
"def FpdK(YKHO) -> bool:\n ...",
"def ZjXu(jQ3Z, OO3z, VanI):\n try:\n ucxv = getattr(jQ3Z, 'crs')\n except AttributeError:\n return False\n if not ucxv:\n ret... | [
"0.6696801",
"0.64322513",
"0.6425481",
"0.6425481",
"0.6134028",
"0.6098768",
"0.5888766",
"0.58767486",
"0.58112",
"0.5762329",
"0.5738124",
"0.5684409",
"0.5667866",
"0.5667866",
"0.565228",
"0.56511194",
"0.5555442",
"0.55246395",
"0.5506826",
"0.53830343",
"0.5368443",
... | 0.51264995 | 39 |
Given a linear transform compute scale change. 1. Y = AX + t 2. Extract scale components of A Returns (sx, sy), where sx > 0, sy > 0 | def VBhm(k0lF):
bGrB, bGrB, o4sw = yZQR(k0lF)
return (abs(o4sw.a), abs(o4sw.e)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X6rE(o0ZM, BhJz, I7o1):\n wlXa = [[o0ZM, 0, 0], [0, BhJz, 0], [0, 0, 1]]\n z4GO = dzCf(wlXa, I7o1)\n return (z4GO[0][0], z4GO[1][0], z4GO[2][0])",
"def NXpY(pKvt, bBVO):\n return pKvt * bBVO[0] + bBVO[1]",
"def PoFk(input, kstO, HHOu, ssDt=None):\n T6xo, jqZF = kstO\n Sr08, z40C = HHOu\n ... | [
"0.6422202",
"0.6269182",
"0.6238993",
"0.6208766",
"0.61688095",
"0.6148727",
"0.61007935",
"0.6038922",
"0.5997132",
"0.59703517",
"0.5962059",
"0.593938",
"0.5927383",
"0.5927383",
"0.5919295",
"0.5886479",
"0.58732206",
"0.58421904",
"0.5803875",
"0.57984304",
"0.5795001"... | 0.7673108 | 0 |
this takes in the train and test data combined as a single df, convert columns to appropriate types, and return traintestsplitted data | def P6Pp(jQ3Z, VIcc=None, enqh=0.2, yokr=12345, wk71='user_id'):
C4gk = jQ3Z[wk71]
qoKH = int(1 / enqh)
u14m = zz85(n_splits=qoKH)
tuKI.seed(yokr)
cvpa = u14m.split(jQ3Z, groups=C4gk)
d8cP, ILf9 = next(cvpa)
GVWp, af07 = (jQ3Z.iloc[d8cP], jQ3Z.iloc[ILf9])
return (GVWp, af07) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHtP(jQ3Z, NI2E=0.3):\n zBu_ = int(jQ3Z.shape[0] * (1 - NI2E))\n NI2E = jQ3Z.shape[0] - zBu_\n EvQg = jQ3Z[:zBu_]\n QOe9 = jQ3Z[zBu_:]\n return (EvQg, QOe9)",
"def bHtP(jQ3Z):\n jcFe = int(len(jQ3Z) * 0.67)\n NI2E = int(len(jQ3Z) - jcFe)\n EvQg, QOe9 = (jQ3Z[0:jcFe], jQ3Z[jcFe:len(jQ3... | [
"0.7672181",
"0.7528739",
"0.75123996",
"0.7473289",
"0.74090946",
"0.738638",
"0.7354851",
"0.72998834",
"0.7298715",
"0.72932434",
"0.72687036",
"0.72667116",
"0.71793866",
"0.71753854",
"0.7155468",
"0.71161556",
"0.7079358",
"0.70598274",
"0.7048194",
"0.7045473",
"0.7044... | 0.0 | -1 |
Write the JSON metadata from get_users() to a JSON file | def uP8n(zgjV, m59W):
GkAb(f'{RsFk}/{fNjO}/country-{m59W}').mkdir(parents=True, exist_ok=True)
with open(f'{RsFk}/countries/{m59W}.json', 'w') as wM3v:
wM3v.write(qQXR.dumps(zgjV, ensure_ascii=False))
G9jH.info(f'file {m59W} written') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def scqf(YKHO):\n with open(YKHO._users_numbers_json_path, 'wb') as eHNT:\n qQXR.dump(dict(YKHO._users_numbers), eHNT)",
"def WOaD(YKHO, geh0):\n mWFP = str(YKHO.get_json_cursor) + '.json'\n a7Fb = Hy7s.path.join(YKHO.get_json_folder_path, mWFP)\n YKHO.write_json(mWFP, a7Fb, geh0)",
"def SHu... | [
"0.7390192",
"0.7240876",
"0.7094779",
"0.7008885",
"0.68104386",
"0.6700675",
"0.66897213",
"0.65207154",
"0.64599466",
"0.64206445",
"0.63902336",
"0.63899887",
"0.634534",
"0.6338593",
"0.6306479",
"0.62960446",
"0.62865794",
"0.62821805",
"0.6243755",
"0.62426186",
"0.620... | 0.0 | -1 |
Test GET request is not implemented. | def gGOn(YKHO):
if not YKHO.url:
return
geh0 = YKHO.client.get(YKHO.url, {}, format='json')
YKHO.assertIn(geh0.status_code, [jGRS.HTTP_405_METHOD_NOT_ALLOWED, jGRS.HTTP_401_UNAUTHORIZED]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def udLJ(YKHO):\n geh0 = YKHO.client.get(gxEw('user-list'))\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)",
"def NWYd(YKHO):\n QePW = zVa7.get_request('GET', {})\n WKvO = YKHO.start_request_tests(QePW)\n YKHO.assertEqual(WKvO.status_code, 405)\n qQXR.dump(WKvO.to_dict()... | [
"0.7998636",
"0.76531637",
"0.75185466",
"0.7455189",
"0.7452455",
"0.7386907",
"0.7362132",
"0.73344904",
"0.7311589",
"0.7224339",
"0.7224339",
"0.7211537",
"0.7182936",
"0.7162648",
"0.71366715",
"0.71238154",
"0.7092529",
"0.7092529",
"0.7052852",
"0.70369816",
"0.7036981... | 0.78219324 | 1 |
Test PUT request is not implemented. | def xlwL(YKHO):
if not YKHO.url:
return
geh0 = YKHO.client.put(YKHO.url, {}, format='json')
YKHO.assertIn(geh0.status_code, [jGRS.HTTP_405_METHOD_NOT_ALLOWED, jGRS.HTTP_401_UNAUTHORIZED]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uylk(YKHO):\n geh0 = YKHO.httpbin_4.test_requests_put_method()\n YKHO.assertEqual(geh0.request.method, 'PUT')\n YKHO.assertEqual(geh0.status_code, 200)",
"def CqkI(YKHO):\n geh0 = YKHO.client.put(YKHO.get_url(), {})\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)",
"de... | [
"0.84029436",
"0.8001406",
"0.7973689",
"0.78313136",
"0.78185123",
"0.77912235",
"0.7723371",
"0.7614706",
"0.73973763",
"0.7384767",
"0.73763573",
"0.7292434",
"0.71780896",
"0.7174757",
"0.713898",
"0.713506",
"0.70937854",
"0.70896125",
"0.7060795",
"0.70485884",
"0.70428... | 0.83548087 | 1 |
Embedding layer to represent categorical inputs in continuous space. For efficiency, the embeddings of different inputs are summed in this layer instead of stacked. This is equivalent to stacking the embeddings and applying a linear layer, but is more efficient with slightly more parameter cost. Masked inputs are repre... | def FIMM(YKHO, vO0m, IzLc, Norb, qV0r, YuW7=False):
super().__init__()
YKHO.num_vars = vO0m
YKHO.hidden_dim = Norb
YKHO.input_mask = qV0r
YKHO.sparse_embeds = YuW7
YKHO.num_categs = IzLc
YKHO.num_embeds = YKHO.num_vars * YKHO.num_vars * YKHO.num_categs
if YKHO.num_embeds > 10000000.0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eFKZ(QeoX, lhva, mWFP=None):\n FRUf = X6a0(shape=(1,))\n WKvO = DilS(QeoX, lhva, name=mWFP)(FRUf)\n WKvO = hekC(target_shape=(lhva,))(WKvO)\n return (FRUf, WKvO)",
"def KLLm(pJbt):\n for eHNT in range(PSrQ.num_feature):\n mI7d = PSrQ.schema[eHNT]\n if mI7d == 1:\n pass... | [
"0.6488728",
"0.630097",
"0.6194533",
"0.5907529",
"0.5812553",
"0.57938915",
"0.5788545",
"0.5719766",
"0.5688486",
"0.56875604",
"0.5626743",
"0.5625562",
"0.5605492",
"0.5599106",
"0.55863094",
"0.55859727",
"0.5547062",
"0.5533655",
"0.5508522",
"0.55085105",
"0.5508367",... | 0.59501344 | 3 |
Computes the signed tetrahedral volume Tetrahedron is formed by (p1, p2, p3, and origin) | def Zx6q(EBgd, HpuQ, Lq8X):
EgqC = Lq8X[..., 0] * HpuQ[..., 1] * EBgd[..., 2]
Q6R7 = HpuQ[..., 0] * Lq8X[..., 1] * EBgd[..., 2]
OMf7 = Lq8X[..., 0] * EBgd[..., 1] * HpuQ[..., 2]
UL1G = EBgd[..., 0] * Lq8X[..., 1] * HpuQ[..., 2]
Mx1l = HpuQ[..., 0] * EBgd[..., 1] * Lq8X[..., 2]
Xe3P = EBgd[..., 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vqVG(UqpO, k0lF, tjUW, Nq1b, lWPh):\n szmu = UqpO[k0lF, :] - UqpO[lWPh, :]\n a3H3 = UqpO[tjUW, :] - UqpO[lWPh, :]\n hyGP = UqpO[Nq1b, :] - UqpO[lWPh, :]\n cAlv = (a3H3[:, 0] * hyGP[:, 1] - a3H3[:, 1] * hyGP[:, 0]) * szmu[:, 2] - (a3H3[:, 0] * hyGP[:, 2] - a3H3[:, 2] * hyGP[:, 0]) * szmu[:, 1] + (a3... | [
"0.6826093",
"0.62050015",
"0.6134262",
"0.5935595",
"0.579452",
"0.5788353",
"0.563794",
"0.55815554",
"0.55592805",
"0.5473699",
"0.5409951",
"0.53215724",
"0.5313585",
"0.53102285",
"0.5306965",
"0.5285401",
"0.528305",
"0.5272163",
"0.5262419",
"0.5251276",
"0.524785",
... | 0.7945285 | 0 |
Given a person's name, returns the person's initials (uppercase) | def NPVu(jeLr):
ZWCE = jeLr.split()
RqgG = ''
for mWFP in ZWCE:
RqgG = RqgG + mWFP[0]
return RqgG.upper() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NPVu(mWFP, Lrae=True):\n if Lrae:\n return mWFP[0:1].upper()\n return mWFP[0:1]",
"def xWjI(eHMM):\n if eHMM is not None and len(eHMM) > 0:\n return ''.join([KCHu[0] for KCHu in eHMM.split(' ')]).upper()\n else:\n return ''",
"def NPVu(skdP):\n nTev = ''\n for mWFP in... | [
"0.8512483",
"0.83186287",
"0.77114457",
"0.7597779",
"0.75733525",
"0.75212145",
"0.7251313",
"0.7233688",
"0.7215348",
"0.70606756",
"0.701801",
"0.6998534",
"0.6986747",
"0.69570524",
"0.6946686",
"0.6927703",
"0.6927571",
"0.6919062",
"0.68892944",
"0.6880017",
"0.6832559... | 0.776669 | 2 |
Check whether db admin user was provided during interactive setup. If it was use the provided value, if not, use default (basedefs.DB_ADMIN) | def gZcH():
if 'DB_ADMIN' in Z7L0.CONF.keys():
return Z7L0.CONF['DB_ADMIN']
return bJjo.DB_ADMIN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jixg():\n if 'DB_ADMIN' in Z7L0.CONF.keys():\n return Z7L0.CONF['DB_ADMIN']\n return bJjo.DB_USER",
"def cFuy():\n return Hy7s.environ.get('USER_IS_ADMIN', '0') == '1'",
"def y26g(YKHO) -> qe4Y.Input['LabVirtualMachineAdminUserArgs']:\n return qe4Y.get(YKHO, 'admin_user')",
"def epvj(Y... | [
"0.69233817",
"0.6756985",
"0.65849304",
"0.6293442",
"0.6293442",
"0.6293442",
"0.6284404",
"0.61560553",
"0.6060023",
"0.60282916",
"0.60078037",
"0.5972259",
"0.59705955",
"0.5954933",
"0.59497756",
"0.59173226",
"0.5910723",
"0.58955634",
"0.589458",
"0.58933824",
"0.5878... | 0.7369951 | 0 |
Gets the current joint angular velocities of the robot. Gets the value from the internally updated dictionary that subscribes to the ROS topic /joint_states. | def pcuv(YKHO, fP61=None):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T5ul(YKHO):\n return oyIN.asarray(YKHO._robot_state.velocity)",
"def W43o(YKHO):\n u8oJ = PQkn.GET_ANGULAR_VELOCITY_TRIGGER_READ\n if YKHO.__trigger == u8oJ:\n YKHO.read_and_update_angle()\n shsp = YKHO.__angle - YKHO.__offset\n if YKHO.__factorSet:\n return shsp / YKHO.__degPerS... | [
"0.7364877",
"0.67233205",
"0.6614267",
"0.6568352",
"0.6533731",
"0.63860744",
"0.6330669",
"0.6309947",
"0.62694734",
"0.6258062",
"0.62368065",
"0.61865056",
"0.61848485",
"0.61453736",
"0.6107216",
"0.6052122",
"0.605022",
"0.6045236",
"0.6040997",
"0.60171926",
"0.601376... | 0.52961147 | 78 |
Return the end effector's velocity. | def bKJU(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uk5V(YKHO):\n return YKHO.vel",
"def p8Jz(YKHO):\n return YKHO._velocity",
"def p8Jz(YKHO):\n return YKHO._velocity",
"def Uk5V(YKHO):\n return YKHO.v",
"def p8Jz(YKHO):\n return YKHO.base_platform.velocity",
"def uzBW(YKHO):\n return YKHO.exit_mach() * (YKHO.specific_heat_ratio * Y... | [
"0.7597998",
"0.7497102",
"0.7497102",
"0.7329573",
"0.72916055",
"0.72712773",
"0.72207004",
"0.7168993",
"0.7125278",
"0.70510393",
"0.6998284",
"0.69010675",
"0.68339264",
"0.6776172",
"0.6735714",
"0.67295444",
"0.6721916",
"0.6720561",
"0.6714969",
"0.6652692",
"0.663663... | 0.65433145 | 24 |
Split Dataframe into train and test | def ddtB(YKHO, EcVT, LVAh):
Lcqa, Z5wO, VJv0, H96n = bHtP(EcVT, LVAh, test_size=0.33, random_state=42)
return (Lcqa, Z5wO, VJv0, H96n) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHtP(jQ3Z):\n jcFe = int(len(jQ3Z) * 0.67)\n NI2E = int(len(jQ3Z) - jcFe)\n EvQg, QOe9 = (jQ3Z[0:jcFe], jQ3Z[jcFe:len(jQ3Z)])\n return (EvQg, QOe9)",
"def bHtP(jQ3Z, NI2E=0.3):\n zBu_ = int(jQ3Z.shape[0] * (1 - NI2E))\n NI2E = jQ3Z.shape[0] - zBu_\n EvQg = jQ3Z[:zBu_]\n QOe9 = jQ3Z[zB... | [
"0.87502146",
"0.8675172",
"0.83429956",
"0.82589376",
"0.8258646",
"0.82561374",
"0.8238919",
"0.82127345",
"0.8169267",
"0.81212866",
"0.8095547",
"0.8059751",
"0.8032628",
"0.8021801",
"0.79904646",
"0.7858557",
"0.78102297",
"0.76439023",
"0.76210123",
"0.7557369",
"0.755... | 0.7006921 | 79 |
Return True if User is Customer, else False | def CVrT(YKHO):
return YKHO.user_type == 'C' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CVrT(YKHO):\n return YKHO.rol == L07B.CUSTOMER",
"def CVrT(YKHO) -> bool:\n return YKHO.customer_id is not None",
"def TOhj(YKHO, CBIr):\n if CBIr.get('role') in ('admin', 'manager', 'engineer'):\n return True\n return CBIr['name'] == YKHO.doc.get('customer')",
"def LjLm(YKHO):\n re... | [
"0.7973554",
"0.78856397",
"0.7608238",
"0.75453866",
"0.74631107",
"0.6777626",
"0.677082",
"0.6737793",
"0.6564589",
"0.65133387",
"0.64878815",
"0.6482182",
"0.6447222",
"0.6370282",
"0.63490707",
"0.63324475",
"0.6329237",
"0.63275003",
"0.6326429",
"0.6304935",
"0.629894... | 0.8658438 | 0 |
Return True if User is Doctor, else False | def mPVd(YKHO):
return YKHO.user_type == 'D' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jjss(YKHO):\n try:\n if YKHO.get_customer()[0][0] == YKHO.dni:\n return True\n else:\n return False\n except:\n return False",
"def gIIS(YKHO, CBIr):\n return CBIr.is_authenticated() and len(YKHO.expert_set.filter(user=CBIr)) > 0",
"def BYM_(YKHO, CBIr):\... | [
"0.73021674",
"0.69229335",
"0.6753499",
"0.6654294",
"0.6609603",
"0.6586969",
"0.6560494",
"0.65598214",
"0.6529178",
"0.6528746",
"0.6468475",
"0.646827",
"0.6463693",
"0.64135003",
"0.6396539",
"0.63946867",
"0.6391401",
"0.63876325",
"0.6360593",
"0.63473797",
"0.6344433... | 0.88278085 | 0 |
Return True if User is Moderator, eld False | def sTQF(YKHO):
return YKHO.user_type == 'M' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZNeh(YKHO):\n return False",
"def FAbd(YKHO, CBIr):\n return CBIr == YKHO.owner",
"def _Kb1(YKHO):\n if not YKHO.current_user:\n return False\n else:\n return YKHO.current_user in ['1']",
"def pk5K(YKHO, CBIr, IuXB='site.change_localsite'):\n return CBIr.has_perm(IuXB) or YKH... | [
"0.7635358",
"0.75669956",
"0.755788",
"0.7533217",
"0.7342819",
"0.72821033",
"0.724939",
"0.721178",
"0.72006327",
"0.7152955",
"0.7142165",
"0.7130123",
"0.7128749",
"0.70584786",
"0.70387614",
"0.7028319",
"0.7021877",
"0.7012709",
"0.70039034",
"0.6995095",
"0.6995095",
... | 0.8161933 | 0 |
True if this appointment has customer. False if appointment has not customer yet. | def LjLm(YKHO):
return YKHO.customer is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CVrT(YKHO) -> bool:\n return YKHO.customer_id is not None",
"def CVrT(YKHO):\n return YKHO.user_type == 'C'",
"def wR4I(YKHO):\n if YKHO.__orderinfo is None:\n return False\n else:\n YKHO.__customer.getCustomer(YKHO.__orderinfo['customerID'])",
"def CVrT(YKHO):\n return YKHO.... | [
"0.82619655",
"0.73708725",
"0.7252048",
"0.724486",
"0.6949405",
"0.62316513",
"0.61025953",
"0.60775566",
"0.6022929",
"0.6022929",
"0.59537625",
"0.583108",
"0.5823138",
"0.5746951",
"0.5651224",
"0.56305397",
"0.5616468",
"0.55702525",
"0.5567788",
"0.5566021",
"0.5565067... | 0.8617538 | 0 |
True if this appointment is outdated. False if appointment is still fresh. | def RPp2(YKHO):
yo7_ = qcWV.datetime.today()
CjKC = qcWV.datetime.combine(YKHO.date, YKHO.start_time)
return CjKC <= yo7_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wxxj(YKHO):\n return YKHO.timestamp > 0",
"def j3y5(YKHO):\n if YKHO.last_updated is None:\n return True\n wzkt = GhSD.utcnow()\n t7hR = YKHO.last_updated.replace(tzinfo=FXGE.UTC) + qcWV.timedelta(minutes=2)\n return wzkt > t7hR",
"def C83E(YKHO) -> bool:\n if YKHO._uptodate is Non... | [
"0.76432335",
"0.70905906",
"0.70694476",
"0.7046173",
"0.7020753",
"0.69855475",
"0.694543",
"0.6768369",
"0.6729174",
"0.6705097",
"0.66850454",
"0.66742736",
"0.6589215",
"0.6582298",
"0.64762264",
"0.64586246",
"0.6404015",
"0.6395051",
"0.6386899",
"0.6362679",
"0.633018... | 0.71214795 | 1 |
True if this appointment is in working day. False if appointment is in weekend. | def o9Y2(YKHO):
return 0 <= YKHO.date.weekday() <= 4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UWPX(_c1T):\n return _c1T.weekday() == 6 or LBC4(_c1T)",
"def aU3P(XKrP, nDMS):\n if not XKrP or nDMS:\n return True\n else:\n return False",
"def aU3P(XKrP, nDMS):\n if not XKrP or nDMS:\n return True\n return False",
"def l0rA(YKHO):\n if YKHO.time_stamp.weekday()... | [
"0.698782",
"0.6900163",
"0.6846277",
"0.6798671",
"0.6693848",
"0.6676657",
"0.66599643",
"0.6500259",
"0.6475139",
"0.6475139",
"0.64525187",
"0.63143677",
"0.6303531",
"0.6260768",
"0.6210601",
"0.6192151",
"0.61773175",
"0.61767155",
"0.61736727",
"0.6172469",
"0.61571",
... | 0.85724473 | 0 |
Setup the GoodWe SEMS API sensor platform. | def AbqV(ajET, GPtr, deL4, tR5e=None):
deL4([Nep1('SEMS Portal', GPtr)], True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AbqV(ajET: HomeAssistant, GPtr: ConfigType, uVcJ: AddEntitiesCallback, tR5e: DiscoveryInfoType | None=None) -> None:\n KcEq = GPtr[sHGu]\n obbo = GPtr[wGFh]\n zwQ8 = cFmc.Charger(KcEq)\n MMe4 = [Dtem(zwQ8, JBZA) for JBZA in lc9R if JBZA.key in obbo]\n uVcJ(MMe4, True)",
"def AbqV(ajET: HomeAss... | [
"0.6955693",
"0.65546525",
"0.6437979",
"0.6429075",
"0.6421927",
"0.6365622",
"0.6355993",
"0.62571675",
"0.6252712",
"0.6249104",
"0.62105143",
"0.62017065",
"0.620131",
"0.61969954",
"0.618325",
"0.61798215",
"0.6176523",
"0.6144862",
"0.6140039",
"0.6132656",
"0.6127323",... | 0.65087605 | 2 |
Return the name of the sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91896784",
"0.9168378",
"0.890185",
"0.8770976",
"0.8511273",
"0.8479953",
"0.844435",
"0.8299758",
"0.8186503",
"0.8105667",
"0.8079737",
"0.8066149",
"0.8049647",
"0.7700968",
"0.7612295",
"0.7611456",
"0.7600605",
"0.7600605",
"0.7600605",
"0.75392073",
"0.75166553",
... | 0.0 | -1 |
Return the state attributes of the monitored installation. | def R1i3(YKHO):
return YKHO._attributes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def upgy(YKHO):\n return YKHO._wan",
"def R1i3(YKHO) -> cuzp[str, any]:\n return YKHO._device.state_attributes",
"def R1... | [
"0.81912136",
"0.8035251",
"0.793577",
"0.793577",
"0.7878056",
"0.78757703",
"0.7822081",
"0.78151685",
"0.78043455",
"0.7786795",
"0.7786795",
"0.77698886",
"0.77698886",
"0.77695847",
"0.77695847",
"0.7743862",
"0.7723329",
"0.766513",
"0.76194143",
"0.7583132",
"0.7570648... | 0.7935381 | 8 |
x should be a tuple of tensors | def YuyM(YKHO, WKvO):
return ZylS.concat(axis=YKHO.axis, values=WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLcZ(YKHO, WKvO: torch.Tensor) -> AzJI[ht2j.Tensor, ht2j.Tensor]:\n raise NotImplementedError",
"def KVH6(YKHO, WKvO: Tensor) -> tuple[llWB, llWB]:\n MKlR = YKHO.backbone(WKvO)\n epBp = YKHO.projection_head(MKlR)\n return (YWvJ(llWB, epBp), YWvJ(llWB, MKlR))",
"def pOv4(YKHO, WKvO, **qIxc):\n ... | [
"0.70373166",
"0.68699247",
"0.6604791",
"0.6534254",
"0.64329886",
"0.6185035",
"0.6121677",
"0.6098204",
"0.6056931",
"0.6054726",
"0.6017868",
"0.6015697",
"0.601405",
"0.6012428",
"0.59970766",
"0.59785795",
"0.59769285",
"0.594745",
"0.59316224",
"0.5891381",
"0.58696425... | 0.0 | -1 |
Get the RGB color with the alpha channel. | def k7W0(YKHO):
return '#%02X%02X%02X%02X' % (YKHO.r, YKHO.g, YKHO.b, YKHO.a) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cwt5(Emd4, Cs0X, H2jU):\n if H2jU > 1:\n H2jU = 1\n elif H2jU < 0:\n H2jU = 0\n return Cs0X + str(hex(int(254 * H2jU)))[2:]",
"def V6q7(*qIxc, **B2fa):\n return nAU3.Colour_Alpha(*qIxc, **B2fa)",
"def ieuo(YKHO):\n return Ywzx.itkRGBAPixelUS_GetAlpha(YKHO)",
"def ieuo(YKHO):\... | [
"0.7622991",
"0.75203717",
"0.7484356",
"0.74360174",
"0.7294883",
"0.71680146",
"0.71680146",
"0.7124989",
"0.70624256",
"0.69358444",
"0.68940717",
"0.68303734",
"0.6798835",
"0.6720147",
"0.6715948",
"0.670339",
"0.65579945",
"0.65106136",
"0.65091634",
"0.6505151",
"0.648... | 0.6980019 | 9 |
Translate the color channel with the alpha channel and background channel color. | def vz2j(EzjL, fmAV, BBLH, bBVO):
return khhC(abs(EzjL * (fmAV * fcLL) + BBLH * (bBVO * fcLL) * (1 - fmAV * fcLL))) & 255 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GaAh(YKHO, pmez='#000000FF'):\n\n def vz2j(EzjL, fmAV, BBLH, bBVO):\n \"\"\"Translate the color channel with the alpha channel and background channel color.\"\"\"\n return khhC(abs(EzjL * (fmAV * fcLL) + BBLH * (bBVO * fcLL) * (1 - fmAV * fcLL))) & 255\n if YKHO.a < 255:\n Mkmy, Oa1e... | [
"0.77316743",
"0.6916266",
"0.67346495",
"0.66286063",
"0.65640885",
"0.6502464",
"0.64957905",
"0.6360734",
"0.6316906",
"0.62322116",
"0.6218829",
"0.6211368",
"0.6192389",
"0.61855185",
"0.6022667",
"0.59819186",
"0.5941799",
"0.59331197",
"0.5930536",
"0.5920913",
"0.5920... | 0.62030166 | 12 |
Convert to HLS color format. | def if1Z(YKHO):
return OtQZ(YKHO.r * fcLL, YKHO.g * fcLL, YKHO.b * fcLL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qJtC(YKHO):\n return h478.rgb_to_hls(YKHO.red, YKHO.green, YKHO.blue)",
"def Ssy4(a1PO):\n Mkmy, Oa1e, Fg_i = a1PO\n Mkmy /= 255.0\n Oa1e /= 255.0\n Fg_i /= 255.0\n return OtQZ(Mkmy, Oa1e, Fg_i)",
"def Ssy4(a1PO):\n Mkmy, Oa1e, Fg_i = a1PO\n Mkmy /= 255.0\n Oa1e /= 255.0\n Fg_... | [
"0.7551897",
"0.7286495",
"0.7286495",
"0.7231956",
"0.7181494",
"0.70109075",
"0.66585124",
"0.6522602",
"0.6514304",
"0.64954776",
"0.6480351",
"0.6445235",
"0.6429338",
"0.63079816",
"0.6296083",
"0.6247249",
"0.6204065",
"0.61921054",
"0.61106014",
"0.610506",
"0.6104434"... | 0.7673061 | 0 |
Predict the forecast based on RPD Model =========================================== Calculates the production forecast. Parameter | def YEmv(YKHO, akib: float) -> oyIN.ndarray:
YKHO._q_plateau = akib * YKHO._q_plateau_ratio
YKHO._q_min = akib * YKHO._q_min_ratio
Re0U = YKHO._calc_rampup()
hXhn = YKHO._calc_decline()
V_iK = YKHO._calc_plateau(akib, Re0U.sum(), hXhn.sum())
mVUw = oyIN.concatenate([Re0U, V_iK, hXhn])
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEmv(YKHO, **B2fa):\n G9jH.debug('Call predict() with parameters. Forecast 1 step only, kwargs:{kwargs}'.format(kwargs=B2fa))\n Z5wO = YKHO.df[-YKHO.step:][YKHO.feature_names]\n Z5wO = YKHO.scaler.transform(Z5wO)\n gjpc = YKHO.model.predict(Z5wO)\n MSTc = YKHO.y_train_season_obj[-1]\n r8sr = ... | [
"0.68449515",
"0.66206133",
"0.64681464",
"0.64220834",
"0.63958466",
"0.6373518",
"0.63045436",
"0.61968005",
"0.61382765",
"0.61270255",
"0.61015016",
"0.6090898",
"0.60862714",
"0.60730755",
"0.6063938",
"0.605867",
"0.6037743",
"0.6030531",
"0.6018691",
"0.5992532",
"0.59... | 0.0 | -1 |
Boolean if volume is currently muted. | def qHHI(YKHO):
return YKHO._muted | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHHI(YKHO):\n return YKHO._isMuted",
"def qHHI(YKHO):\n return YKHO._state.get('mute', None)",
"def qHHI(YKHO) -> bool:\n return int(YKHO._state.get('playback_mute', 0)) == 1",
"def qHHI(YKHO):\n return YKHO._mute",
"def UGFg(YKHO) -> bool:\n return YKHO._muted",
"def qHHI(YKHO) -> str... | [
"0.8895486",
"0.885142",
"0.8814543",
"0.8788216",
"0.82374",
"0.8191111",
"0.7936918",
"0.7865406",
"0.77063185",
"0.76781267",
"0.6825295",
"0.67568815",
"0.65654856",
"0.65410423",
"0.64554507",
"0.6447409",
"0.64051235",
"0.63987285",
"0.63623446",
"0.636172",
"0.63581014... | 0.88772947 | 2 |
Turn the media player on. | def jY15(YKHO):
YKHO._remote.power(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AUDn(YKHO):\n YKHO._state = mocT",
"def AUDn(YKHO):\n YKHO._state = mocT",
"def jY15(YKHO) -> None:\n uAlQ = YKHO._get_chromecast()\n if not uAlQ.is_idle:\n return\n if uAlQ.app_id is not None:\n uAlQ.quit_app()\n if uAlQ.cast_type == WljZ.const.CAST_TYPE_CHROMECAST:\n ... | [
"0.73505145",
"0.73505145",
"0.70776236",
"0.6949285",
"0.6930635",
"0.69170445",
"0.6682077",
"0.66477865",
"0.6647714",
"0.6576517",
"0.6549154",
"0.6525269",
"0.6470713",
"0.64542156",
"0.6453492",
"0.64412314",
"0.6368969",
"0.6312649",
"0.63083595",
"0.63010305",
"0.6293... | 0.62167567 | 27 |
Get the minimum/maximum element in the adjusted row array from a distance matrix. We adjust the row array in order to never get the "previous_indexes" list of indexes. | def VLw0(yfx6: np.ndarray, rdlD: int, Op7a: List, type: str) -> int:
yfx6 = yfx6.copy()
ezWE = yfx6[rdlD].astype(float)
Ut4V = range(ezWE.shape[0])
tWf9 = []
for YRbF in Ut4V:
if YRbF in Op7a:
tWf9.append(True)
else:
tWf9.append(False)
eCyF = tWf9
if t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v8eB(oWao):\n YRbF, r845 = oyIN.unravel_index(oyIN.argmin(oWao), dims=oWao.shape)\n return (YRbF, r845)",
"def WHwV(YKHO, usx6: List[Row], iVRZ: ComparableColumn) -> x1iM[d3C6]:\n if not usx6:\n return []\n xCI1 = [(rdlD.values[iVRZ.name], rdlD) for rdlD in usx6 if rdlD.values[iVRZ.name] i... | [
"0.65977263",
"0.6011877",
"0.59146416",
"0.581797",
"0.5775044",
"0.57425076",
"0.5738198",
"0.56762314",
"0.5655995",
"0.5608797",
"0.556891",
"0.5514939",
"0.54958385",
"0.54396",
"0.542927",
"0.5413428",
"0.53787214",
"0.537482",
"0.5367942",
"0.53448814",
"0.5341371",
... | 0.7843267 | 0 |
Given a log path/name, extract a timestamp from it and return the timestamp as a string. If no timestamp is found, return None. | def iGAN(zeeE: str) -> str:
kUBT = TGEH.search(zeeE)
if kUBT is not None:
return f'{kUBT.group(1)}:{kUBT.group(2)}:{kUBT.group(3)}'
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KOTW(cQXT):\n mXDZ = '\\\\[(.+)\\\\]\\\\s'\n kUBT = ZbWC.search(mXDZ, cQXT)\n if not kUBT:\n tO9_ = 'The date was not found in the following log entry: {}'.format(cQXT)\n raise r2Wi(tO9_)\n U1_3 = kUBT.group().replace('[', '').replace(']', '').strip()\n E3oo = wvEv.parse(U1_3, fuzz... | [
"0.68200874",
"0.66748714",
"0.65580183",
"0.6237984",
"0.6210342",
"0.5999979",
"0.5971926",
"0.59701943",
"0.5921127",
"0.5867168",
"0.5828555",
"0.5825881",
"0.5820319",
"0.5797472",
"0.5777524",
"0.5777524",
"0.5773897",
"0.5733049",
"0.5730815",
"0.57264197",
"0.5711539"... | 0.78245825 | 0 |
Return all unique blocks as a list of Biopython records. | def JI12(YKHO, YB6w=None):
if YKHO.records is None:
raise ValueError('')
J2us = []
for tu8r, JbSN in YKHO.compute_unique_blocks().items():
for YRbF, (yKcO, Os4s) in enumerate(JbSN):
AIu6 = YKHO.records[tu8r][yKcO:Os4s]
AIu6.id = '%s_%03d' % (tu8r, YRbF)
J2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FSHU(YKHO):\n if YKHO.records is None:\n raise ValueError('')\n J2us = []\n for g8Sb, nPrm in YKHO.common_blocks.items():\n VIcB, (yKcO, Os4s, vUKW) = nPrm['locations'][0]\n AIu6 = YKHO.records[VIcB][yKcO:Os4s]\n if vUKW == -1:\n AIu6 = AIu6.reverse_complement()\... | [
"0.69865376",
"0.6487969",
"0.6340737",
"0.61917067",
"0.5944176",
"0.58563346",
"0.57712203",
"0.5751668",
"0.5696821",
"0.5581567",
"0.5579159",
"0.5570179",
"0.55510956",
"0.5541462",
"0.5530229",
"0.55175596",
"0.55049676",
"0.54624504",
"0.54539615",
"0.5441693",
"0.5439... | 0.7105431 | 0 |
Sets the total_other of this TargetTemptationGroupOuterResult. | def RK9b(YKHO, RK9b):
YKHO._total_other = RK9b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KpBD(YKHO, KpBD):\n YKHO._total_amount = KpBD",
"def Ebpr(YKHO, Elif):\n r8hN = oyIN.logical_or(YKHO.mask, Elif.mask)\n s1k6 = YKHO.cube_weight * YKHO.weights[r8hN]\n xMw6 = Elif.cube_weight * Elif.weights[r8hN]\n q53Q = s1k6 + xMw6\n YKHO._data[r8hN] = (s1k6 * YKHO.data[r8hN] + xMw6 * Elif... | [
"0.50896585",
"0.50671095",
"0.49752986",
"0.4951503",
"0.4887264",
"0.4887264",
"0.4887264",
"0.4887264",
"0.4887264",
"0.4887264",
"0.4887264",
"0.4887264",
"0.48622504",
"0.4851362",
"0.4810839",
"0.4800233",
"0.479744",
"0.47323015",
"0.47226766",
"0.4672156",
"0.4643997"... | 0.7787645 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, SPxi):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, SPxi):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.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.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Return the sum of time. | def sum(YKHO):
return sum(YKHO.times) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sum(YKHO):\n return pTmx(YKHO, stat='sum')",
"def QwIJ(YKHO):\n with YKHO.lock:\n if YKHO.tend == 0:\n wjRY = -1\n else:\n wjRY = YKHO.tend - YKHO.tstart\n return wjRY",
"def RGHr(YKHO):\n d1TC = YKHO.clean_obs_times()\n return VEDo.sum(d1TC[:, 1] - d1TC[:... | [
"0.771545",
"0.7003199",
"0.69464904",
"0.69291514",
"0.68037593",
"0.6803497",
"0.66858596",
"0.6638962",
"0.66272086",
"0.6532529",
"0.64491063",
"0.6448546",
"0.64167005",
"0.6415029",
"0.63799405",
"0.63728005",
"0.6360416",
"0.63578796",
"0.63459677",
"0.6345115",
"0.632... | 0.7676582 | 2 |
Download and extract a zip/tar file. | def x5Qp(mWFP, xtX7=None):
IznC = BsfS(mWFP)
oEge = Hy7s.path.dirname(IznC)
h_xa, YBcr = Hy7s.path.splitext(IznC)
if YBcr == '.zip':
ytgA = AvK2.ZipFile(IznC, 'r')
elif YBcr in ('.tar', '.gz'):
ytgA = VAiu.open(IznC, 'r')
else:
assert False, 'Only zip/tar files can be ext... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bo6m(bD7m, RQz2='.'):\n St3z = Kf9k(bD7m)\n AvK2 = KGdO(aKaX(St3z.read()))\n AvK2.extractall(path=RQz2)",
"def BsfS():\n geh0 = G4JS.get(rOmR, stream=True)\n nUeQ = open(bkJI, 'wb')\n nUeQ.write(geh0.content)\n with AvK2.ZipFile(bkJI, 'r') as PDgC:\n PDgC.extractall()\n nUeQ.cl... | [
"0.77640665",
"0.75466156",
"0.7488906",
"0.74230695",
"0.74208057",
"0.74110913",
"0.7349301",
"0.7332468",
"0.73241496",
"0.73225963",
"0.7294297",
"0.72637457",
"0.7244374",
"0.7242405",
"0.72403973",
"0.7215931",
"0.71965367",
"0.7105519",
"0.7064334",
"0.7055785",
"0.704... | 0.71807736 | 17 |
Return max potention from each node in tree. | def SP4I(Q6kx):
nonlocal maxsum
if not Q6kx:
return 0
gevG = max(SP4I(Q6kx.left), 0)
print('left_max:', gevG)
EjcV = max(SP4I(Q6kx.right), 0)
print('right_max:', EjcV)
Iy_q = Q6kx.val + gevG + EjcV
print('potential', Iy_q)
LOO6 = max(LOO6, Iy_q)
return Q6kx.val + max(gevG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQ6z(J_Es):\n YppF = float('-inf')\n if m1ww(J_Es):\n return J_Es\n else:\n for Q6kx in J_Es:\n YppF = max(YppF, dgIT(Q6kx))\n return YppF",
"def ipPO(YKHO):\n return max(YKHO.nodes, key=int)",
"def nG7h(YKHO):\n Q6kx = YKHO\n while not Q6kx.is_leaf():\n ... | [
"0.75158167",
"0.7124436",
"0.71235484",
"0.69800425",
"0.69623786",
"0.6905337",
"0.69015247",
"0.6823619",
"0.6757977",
"0.6752295",
"0.6730264",
"0.6707653",
"0.6667124",
"0.66581374",
"0.6654065",
"0.6623254",
"0.66178393",
"0.66044545",
"0.65988404",
"0.658934",
"0.65516... | 0.69382143 | 5 |
Perform tokenization and lemmatization on the input text. | def wr3U(l5Ny):
l5Ny = ZbWC.sub('[^a-zA-Z0-9]+', ' ', l5Ny.lower())
s2mk = dFss(l5Ny)
LkXt = GFnk()
zKDd = []
for w2fL in s2mk:
NM_J = LkXt.lemmatize(w2fL).lower().strip()
zKDd.append(NM_J)
return zKDd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(YKHO, l5Ny):\n l5Ny = ZbWC.sub('[^a-zA-Z0-9]', ' ', l5Ny.lower())\n s2mk = dFss(l5Ny)\n s2mk = [a1PO for a1PO in s2mk if a1PO not in di0c.words('english')]\n LkXt = GFnk()\n s2mk = [LkXt.lemmatize(a1PO) for a1PO in s2mk]\n s2mk = [LkXt.lemmatize(a1PO, pos='v') for a1PO in s2mk]\n s2mk... | [
"0.780185",
"0.7797477",
"0.7762922",
"0.77228963",
"0.76260823",
"0.76051724",
"0.7591944",
"0.7539776",
"0.75269693",
"0.7521117",
"0.75198567",
"0.7510425",
"0.75048715",
"0.7457191",
"0.7415107",
"0.74055403",
"0.7393646",
"0.73630685",
"0.73528564",
"0.7302958",
"0.72870... | 0.73123163 | 19 |
Sets the default_virtual_machine of this VirtualMachinesResponse. default virtual machines | def v0fe(YKHO, v0fe):
YKHO._default_virtual_machine = v0fe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v0fe(YKHO):\n return YKHO._default_virtual_machine",
"def FIMM(YKHO, Mt5B=None, v0fe=None):\n YKHO._virtual_machines = None\n YKHO._default_virtual_machine = None\n if Mt5B is not None:\n YKHO.virtual_machines = Mt5B\n if v0fe is not None:\n YKHO.default_virtual_machine = v0fe",
... | [
"0.7030837",
"0.69299",
"0.57935417",
"0.5656606",
"0.5575497",
"0.556814",
"0.553324",
"0.5483776",
"0.53223234",
"0.526985",
"0.5254059",
"0.52210575",
"0.5165304",
"0.516268",
"0.5159859",
"0.505536",
"0.50553",
"0.50553",
"0.50553",
"0.50522256",
"0.50208366",
"0.497058... | 0.8241787 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, zYaI):
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 |
Get arguments from CLI | def rwTO():
wvEv = j1Jz.ArgumentParser(description='Run standard tree inference using raxml-light/examl')
wvEv.add_argument('--phylip', required=True, type=Nz4g, action=QX2E, help='The phylip file you want to run raxml against.')
wvEv.add_argument('--output', required=True, action=Hi4N, help='The output dir... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mbGV(YKHO):\n pass",
"def rwTO():\n wvEv = xuJu()\n qIxc = wvEv.parse_args()\n return qIxc",
"def Ugfm():\n wvEv = j1Jz.ArgumentParser(description='list all installed packages')\n wvEv.add_argument('-v', '--verbose', help='increase output verbosity', action='store_true')\n wvEv.add_arg... | [
"0.83995515",
"0.7696954",
"0.7674078",
"0.7656369",
"0.75491726",
"0.7546294",
"0.7523218",
"0.7521475",
"0.7514517",
"0.75119865",
"0.74877495",
"0.74807847",
"0.74693704",
"0.7466727",
"0.74665916",
"0.74520636",
"0.74513096",
"0.7427955",
"0.7422721",
"0.74211824",
"0.740... | 0.0 | -1 |
Return the sum of 1+2+3+.....+n | def jOVz(exwG):
Z3hL = 0
pNFp = 1
while pNFp <= exwG:
Z3hL += pNFp
pNFp += 1
return Z3hL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUZ5(exwG):\n iioc = 0\n for YRbF in range(1, exwG + 1):\n iioc = iioc + YRbF\n return iioc",
"def jOVz(exwG):\n zm4W = exwG * (exwG + 1) / 2\n return zm4W",
"def WFmP(exwG):\n wjRY = 0\n for YRbF in range(1, exwG + 1):\n wjRY += YRbF\n return wjRY",
"def WjrA(exwG):... | [
"0.83504635",
"0.826342",
"0.82271045",
"0.81576425",
"0.8117652",
"0.8117652",
"0.80563927",
"0.77709466",
"0.7685846",
"0.76408327",
"0.7540197",
"0.7530276",
"0.74932694",
"0.7489236",
"0.74715275",
"0.7470144",
"0.744207",
"0.7440847",
"0.74365836",
"0.74346936",
"0.73998... | 0.77662516 | 8 |
Gets pip version within a Docker image. | async def _get_pip_version(UxZO, xUAm) -> gF4c.version.Version:
V22M = ['docker', 'run', '--rm', UxZO, xUAm, '--version']
NRWD = await V7ok.create_subprocess_exec(*V22M, stdout=Yn3K.PIPE, stderr=Yn3K.PIPE)
yvT9, XObx = await NRWD.communicate()
yvT9 = yvT9.decode('utf-8')
if NRWD.returncode != 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jCMu(otTm, qHZg):\n kUBT = None\n QLfp = None\n try:\n HCmI = ['sudo', 'docker', 'run', '--env', \"LD_LIBRARY_PATH=''\", '--rm', '-ti', '--entrypoint={}'.format(qHZg), otTm, 'freeze']\n print(' '.join(HCmI))\n Mkmy = H4yH.Popen(HCmI, stdout=H4yH.PIPE, stderr=H4yH.PIPE, universal_n... | [
"0.71303135",
"0.69798565",
"0.6419079",
"0.6277511",
"0.6148725",
"0.6137875",
"0.6120295",
"0.59310794",
"0.59273475",
"0.58319116",
"0.5770821",
"0.57561857",
"0.5715104",
"0.57001305",
"0.56596607",
"0.56104374",
"0.5602304",
"0.5551372",
"0.5549536",
"0.5540237",
"0.5477... | 0.7086153 | 1 |
returns 1 if the point is inside any obstacles 0 otherwise | def RfDZ(AU8u, fhZS):
for W061 in fhZS:
if AU8u[0] > W061[0][0] and AU8u[0] < W061[0][2] and (AU8u[1] > W061[1][0]) and (AU8u[1] < W061[1][2]):
return 1
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iorx(YKHO, WKvO: float, LVAh: float) -> bool:\n for fhZS in YKHO.obstacles:\n if fhZS.contains_point((WKvO, LVAh)):\n return True\n return False",
"def Gq2i(zFiD, rM81):\n GY6m = 100\n for YRbF in range(GY6m):\n if RfDZ((zFiD[0] + YRbF * (zFiD[2] - zFiD[0]) / GY6m, zFiD[1... | [
"0.7569299",
"0.75461394",
"0.75419754",
"0.7019176",
"0.70144844",
"0.69907904",
"0.68982977",
"0.6818476",
"0.6774961",
"0.67379445",
"0.667127",
"0.66310084",
"0.6615502",
"0.66107047",
"0.6606105",
"0.6582978",
"0.6573739",
"0.65736836",
"0.6563211",
"0.6532585",
"0.65290... | 0.83202106 | 0 |
Dot production of two vectors | def pxL1(lSjb, v8Fa):
return sum((jzdc * Fg_i for jzdc, Fg_i in zip(lSjb, v8Fa))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yYJc(WKvO, LVAh):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(WKvO, LVAh)))",
"def BJ1H(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('Input vectors must be of same length, not %d and %d' % (len(jzdc), len(Fg_i)))\n return float(sum([jzdc[YRbF] * Fg_i[YRbF] for YRbF in range... | [
"0.8607856",
"0.85906243",
"0.85007215",
"0.8487578",
"0.84684265",
"0.84267795",
"0.8319278",
"0.830194",
"0.82609415",
"0.82507664",
"0.8246661",
"0.82054085",
"0.8204379",
"0.8194332",
"0.8168117",
"0.81613994",
"0.8127314",
"0.8120469",
"0.8117165",
"0.80941325",
"0.80907... | 0.8316592 | 7 |
Fixture that deletes the files used by the test methods. | def tBIc(YKHO):
try:
Hy7s.remove(YKHO.filename)
except:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n try:\n Hy7s.remove(YKHO.fixtureFile)\n except OSError:\n pass",
"def mTtn():\n for Ux0P in bTjy:\n cDRl(Ux0P)",
"def tBIc(YKHO):\n try:\n Hy7s.remove(YKHO.fixture_file)\n except OSError:\n pass",
"def PkTX(Emd4):\n OGV1 = ['test.mtx.zip',... | [
"0.7972733",
"0.79667974",
"0.79614806",
"0.780152",
"0.7784251",
"0.7656321",
"0.7642764",
"0.7576854",
"0.75580907",
"0.74878705",
"0.74443907",
"0.7436153",
"0.7409162",
"0.74073124",
"0.7361602",
"0.73285383",
"0.7311414",
"0.7307437",
"0.72456264",
"0.7238537",
"0.723697... | 0.7357896 | 17 |
Check the proper exception is thrown for a missing file. | def HlhX(YKHO):
with YKHO.assertRaises(IOError):
l4pn('foobar') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uPPK(YKHO):\n try:\n b8V_.Main(['input/abc.txt']).run()\n except:\n YKHO.assertTrue(True)",
"def _Iix(YKHO):\n with YKHO.assertRaises(IOError):\n t71D(YKHO.bogus_path).read()",
"def N0Fi(YKHO) -> None:\n pmON = '/some/non/existing/path'\n with YKHO.assertRaises(BZVJ):\n ... | [
"0.7753259",
"0.74750787",
"0.745232",
"0.7357429",
"0.73413163",
"0.7314341",
"0.7307572",
"0.723684",
"0.7222839",
"0.72198105",
"0.7197289",
"0.7188773",
"0.7185748",
"0.7185748",
"0.71592814",
"0.711991",
"0.71002656",
"0.70796204",
"0.7060859",
"0.705683",
"0.7024992",
... | 0.7146439 | 15 |
Returns the total duration of the instance. Returns | def EdTY(YKHO):
return float(YKHO.time.iloc[-1] - YKHO.time.iloc[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EdTY(YKHO):\n return YKHO.duration",
"def qZ1g(YKHO):\n return (YKHO.stop - YKHO.start).sum()",
"def EdTY(YKHO):\n return YKHO._duration",
"def xHI_(YKHO):\n return YKHO.totalDuration",
"def EdTY(YKHO):\n WbTE = 0\n for bTKY in YKHO.entries:\n WbTE += bTKY.get_duration()\n r... | [
"0.8194643",
"0.81772685",
"0.8084005",
"0.80616283",
"0.8055348",
"0.8046825",
"0.80230105",
"0.80109435",
"0.7984195",
"0.7984195",
"0.7984195",
"0.7984195",
"0.7984195",
"0.7984195",
"0.7984195",
"0.7984195",
"0.7952412",
"0.79474545",
"0.7943787",
"0.7943787",
"0.7891349"... | 0.7574005 | 41 |
Subtract second time object from the first and return a time object representing the difference. | def symR(t0fp, nEj9):
n2Q1 = fCoM(hours=t0fp.hour, minutes=t0fp.minute, seconds=t0fp.second)
SpII = fCoM(hours=nEj9.hour, minutes=nEj9.minute, seconds=nEj9.second)
WotO = n2Q1 - SpII
return (qcWV.min + WotO).time() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjfR(YKHO, Elif):\n return xcMI(0, 0, YKHO.to_seconds() - Elif.to_seconds())",
"def AYMe(YKHO, jzdc, Fg_i):\n g75m = jzdc - Fg_i\n return g75m.days * 24 * 60 + g75m.seconds // 60",
"def H9ki(YKHO, ITS7: __class__):\n return YKHO - ITS7",
"def wncN(cntZ, CsFy):\n return cntZ - CsFy",
"def... | [
"0.80212176",
"0.7653748",
"0.7227378",
"0.7046492",
"0.70104015",
"0.6924141",
"0.6838733",
"0.67690086",
"0.6766118",
"0.6696036",
"0.6522608",
"0.6431476",
"0.6417544",
"0.6417544",
"0.6404271",
"0.63776505",
"0.63557833",
"0.6302589",
"0.62871593",
"0.628008",
"0.625215",... | 0.78187025 | 1 |
Add two time objects and return a time object representing the sum. | def l48t(t0fp, nEj9):
n2Q1 = fCoM(hours=t0fp.hour, minutes=t0fp.minute, seconds=t0fp.second)
SpII = fCoM(hours=nEj9.hour, minutes=nEj9.minute, seconds=nEj9.second)
WotO = n2Q1 + SpII
return (qcWV.min + WotO).time() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif):\n return xcMI(0, 0, YKHO.to_seconds() + Elif.to_seconds())",
"def FOdN(YKHO, Elif):\n if not isinstance(Elif, Y6bT):\n return NotImplemented\n RA_F = fCoM(YKHO.toordinal(), hours=YKHO._hour, minutes=YKHO._minute, seconds=YKHO._second, microseconds=YKHO._microsecond)\n RA_... | [
"0.81462187",
"0.7230257",
"0.7161394",
"0.71573335",
"0.70812637",
"0.69428635",
"0.67935085",
"0.67700005",
"0.6760144",
"0.635306",
"0.6320445",
"0.6309278",
"0.63046527",
"0.629343",
"0.6219863",
"0.6113378",
"0.6110599",
"0.60884416",
"0.60593337",
"0.6053859",
"0.602107... | 0.8454811 | 0 |
Calculates compartment/Section resistance given resistivity, diameter and length of compartment. | def hQSf(yCnv):
aPd6 = yCnv.L * 0.0001
RjsR = yCnv.diam * 0.0001 / 2
k0lF = oyIN.pi * RjsR ** 2
aoN6 = yCnv.Ra * aPd6 / k0lF
aoN6 = aoN6 * 1e-06
return aoN6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aLQ1(hlZM, krbJ, WKvO, LVAh, Jdcv):\n XP5J = PvyL(WKvO, LVAh)\n O8Y4, kZIt = LqSj(XP5J, hlZM)\n if kZIt > 60:\n return 'e1'\n if kZIt < 3.5:\n kZIt = 3.5\n Y3YH = 0.62\n ywwl = int(O8Y4['properties']['intensity'])\n gCxj = float(O8Y4['properties']['f_cong'])\n IKYO = float... | [
"0.54942274",
"0.5456142",
"0.5440829",
"0.54138553",
"0.5344243",
"0.5332298",
"0.5332298",
"0.53067297",
"0.5288052",
"0.52183837",
"0.52037054",
"0.5193114",
"0.5170793",
"0.5162606",
"0.5154348",
"0.509866",
"0.5092861",
"0.5060679",
"0.50524783",
"0.5045382",
"0.5027004"... | 0.0 | -1 |
Build an actor (policy) network that maps states > actions. | def n8cN(YKHO):
wspz = X6a0(shape=YKHO.state_size)
Zxma = l6ZH(units=YKHO.fc1_units, activation='relu', kernel_initializer='glorot_uniform')(wspz)
Zxma = l6ZH(units=YKHO.fc2_units, activation='relu', kernel_initializer='glorot_uniform')(Zxma)
_b2U = l6ZH(units=YKHO.action_size, activation='linear', kern... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j1Fc(wspz, HQGy, NArs, h7Vl):\n NtOa = h7Vl + '/'\n with ZylS.variable_scope(h7Vl):\n OCat = ZylS.layers.dense(wspz, units=NArs.actor_hidden_units[0], activation=None, kernel_initializer=NArs.initializer)\n if NArs.use_batch_norm:\n OCat = ZylS.layers.layer_norm(OCat, center=True... | [
"0.69356495",
"0.636351",
"0.6270465",
"0.62087923",
"0.62009275",
"0.6187312",
"0.61473614",
"0.6146225",
"0.6128509",
"0.60179603",
"0.6002386",
"0.5976266",
"0.5959938",
"0.5952642",
"0.594925",
"0.59280884",
"0.5916518",
"0.5898108",
"0.58937097",
"0.5891148",
"0.5880467"... | 0.0 | -1 |
Renders the home page. | def kZiy():
return TvZl('index.html', title='主页', year=qcWV.now().year) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the about page. | def vsuQ():
return TvZl('about.html', title='关于', year=qcWV.now().year, message='我想说的一些话') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.7699647 | 62 |
checks if a number, n is even | def ubP8(exwG):
return exwG % 2 == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ubP8(exwG):\n return exwG % 2 == 0",
"def ubP8(exwG: int) -> bool:\n if exwG % 2 == 0:\n return True\n else:\n return False",
"def vf3I(exwG):\n return exwG % 2 == 0",
"def go2I(exwG):\n if exwG % 2 != 0:\n return True\n else:\n return False",
"def ubP8(exw... | [
"0.91898906",
"0.9022679",
"0.89082086",
"0.8734943",
"0.8656514",
"0.8605928",
"0.8575808",
"0.85568637",
"0.85088253",
"0.8499546",
"0.84658456",
"0.8421923",
"0.8404465",
"0.8305044",
"0.82267773",
"0.81370294",
"0.7992796",
"0.7987734",
"0.7985421",
"0.7951134",
"0.787072... | 0.90823007 | 1 |
Given a comment name, find its index in the comment list | def WJgO(YKHO, mWFP):
or8S = YKHO.comments.index(mWFP)
if YKHO._has_coords_comment:
return or8S - 1
else:
return or8S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mFs4(jabJ, JYWT):\n for i34x in jabJ:\n if i34x['title'] == JYWT:\n return jabJ.index(i34x)\n return None",
"def fLuX(lKUU, nJTZ):\n d6pt = 0\n while lKUU > nJTZ[d6pt]:\n d6pt += 1\n return d6pt",
"def EvYn(Jdbc, mWFP, d6pt):\n U5bT = 0\n for lQ3t in Jdbc.cregs... | [
"0.6243577",
"0.6174611",
"0.61493796",
"0.61467564",
"0.61416817",
"0.60780257",
"0.60733837",
"0.60027975",
"0.5990763",
"0.58426625",
"0.58292496",
"0.5791355",
"0.5781288",
"0.5756617",
"0.57145935",
"0.5699457",
"0.5649102",
"0.564907",
"0.5629097",
"0.5624067",
"0.55746... | 0.8382336 | 0 |
Generate a useful version string for a QGreenland build. It's not always enough to use bumpversion to manage versions. If we want to release a dev build or a prerelease for human validation, it needs a fullyunique name so we know exactly what the user tested. For release builds (tagged with 'vX.Y.Z' release version), j... | def tZtz():
eJy1 = BtDU
dJ1p = Yn3K.run(['/usr/bin/git', 'tag', '--points-at', 'HEAD'], cwd=Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), stdout=Yn3K.PIPE, check=True).stdout.decode('utf-8').strip('\n').split('\n')
NkzF = Yn3K.run(['/usr/bin/git', 'rev-parse', '--short', 'HEAD'], cwd=Hy7s.path.dirname(Hy7s.p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vLH3():\n IJ4N, cbKy, KrIv, Po4F, TZ9E, Jdap, EeKk = wx3I\n DpZH = '%s.%s' % (IJ4N, cbKy)\n if KrIv or Po4F:\n DpZH += '.%s' % KrIv\n if Po4F:\n DpZH += '.%s' % Po4F\n if TZ9E != 'final':\n if TZ9E == 'rc':\n DpZH += ' RC'\n else:\n DpZH ... | [
"0.73010534",
"0.7195019",
"0.694041",
"0.66563505",
"0.66375214",
"0.6636568",
"0.6574271",
"0.6548582",
"0.6534632",
"0.6534632",
"0.6522979",
"0.6504899",
"0.6498889",
"0.6392524",
"0.6377458",
"0.630314",
"0.6288387",
"0.6274695",
"0.6230308",
"0.6225115",
"0.6223517",
... | 0.6885193 | 3 |
Test if a file is executable. | def HaFG(Sd0C):
return pmON.exists(Sd0C) and uEDt(Sd0C, ibYS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xY56(IznC):\n return Hy7s.path.isfile(IznC) and Hy7s.stat(IznC)[0] & rDas",
"def xY56(qaEx):\n return Hy7s.path.isfile(qaEx) and Hy7s.access(qaEx, Hy7s.X_OK)",
"def xdPu(Sd0C):\n return Hy7s.path.isfile(Sd0C) and Hy7s.access(Sd0C, Hy7s.X_OK)",
"def xdPu(Sd0C):\n return Hy7s.path.isfile(Sd0C) ... | [
"0.8741574",
"0.87068826",
"0.85403335",
"0.85316104",
"0.8517677",
"0.85165524",
"0.85165524",
"0.84676933",
"0.83391577",
"0.79545724",
"0.77236336",
"0.7666597",
"0.75183725",
"0.7321316",
"0.7203699",
"0.7170488",
"0.7133504",
"0.7106513",
"0.7094573",
"0.6935962",
"0.691... | 0.0 | -1 |
Load a JSON file. | def KrsJ(RsFk):
with open(RsFk, 'r') as wM3v:
kGys = tyeH(wM3v)
return kGys | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc9H(gIsw):\n return qQXR.load(open(gIsw))",
"def LNvC(Ux0P):\n with open(Ux0P) as eHNT:\n return qQXR.loads(eHNT.read())",
"def lc9H(Ux0P):\n with open(Ux0P) as nUeQ:\n YEnM = qQXR.load(nUeQ)\n return YEnM",
"def Ddor(nUeQ):\n with open(nUeQ, 'r') as eHNT:\n return qQ... | [
"0.83567303",
"0.8338712",
"0.82908905",
"0.8273313",
"0.82556623",
"0.8250072",
"0.8250072",
"0.82385445",
"0.822512",
"0.8189461",
"0.81843656",
"0.8172512",
"0.8164592",
"0.8160596",
"0.81485546",
"0.8145262",
"0.8137295",
"0.81274617",
"0.81240416",
"0.8113374",
"0.810766... | 0.7527479 | 79 |
Generate a random string of letters, digits and special characters | def xv9U(u54L, mSrU, UvAU, pC3l):
w5bg = ''
if mSrU:
w5bg = w5bg + vIwR.digits
if UvAU:
w5bg = w5bg + vIwR.ascii_letters
if pC3l:
w5bg = w5bg + vIwR.punctuation
if w5bg == '':
w5bg = vIwR.ascii_letters + vIwR.digits + vIwR.punctuation
return ''.join((tuKI.choice(w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drFW():\n return GLL2(char_choice=vIwR.ascii_letters + vIwR.digits)",
"def Q_QB():\n yvT9 = ''\n for bGrB in range(24):\n yvT9 += Acvy(C1SZ)\n return yvT9",
"def BWvy():\n return ''.join((tuKI.choice(vIwR.ascii_letters) for YRbF in range(6)))",
"def ORaO():\n return GLL2(char_cho... | [
"0.846762",
"0.81559694",
"0.7920509",
"0.7876258",
"0.77858824",
"0.77266",
"0.7724137",
"0.7707932",
"0.76983076",
"0.7659456",
"0.76339835",
"0.7620218",
"0.7609873",
"0.75422925",
"0.75417304",
"0.75369745",
"0.7524378",
"0.7523902",
"0.75107896",
"0.7495423",
"0.74860233... | 0.0 | -1 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
while True:
j5sA = input('Which city do you want to explore Chicago, New York or Washington? \n> ').lower()
if j5sA in vr7e:
break
else:
print('You entered invalied City.')
while True:
x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.66714007",
"0.65354675",
"0.64593667",
"0.6374057",
"0.6348314",
"0.63097656",
"0.62868035",
"0.6259136",
"0.62316",
"0.62130964",
"0.62050414",
"0.6181105",
"0.6171822",
"0.61686903",
"0.6158568",
"0.61582303",
"0.61532456",
"0.61444426",
"0.6131269",
"0.610484",
"0.61025... | 0.57624257 | 75 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name
jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour
if x0eS != 'all':
x0eS = a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.7511665 | 89 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
hFPs = jQ3Z['month'].value_counts().idxmax()
print('The most common month is :', hFPs)
fI26 = jQ3Z['day_of_week'].value_counts().idxmax()
print('The most common day of week is :', fI26)
cYAf = jQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80247396",
"0.80233026",
"0.7915788",
"0.78266186",
"0.7822246",
"0.78143597",
"0.77659196",
"0.7740343",
"0.773628",
"0.77344066",
"0.76867086",
"0.7668633",
"0.7651731",
"0.7644636",
"0.76399267",
"0.76367253",
"0.7625196",
"0.7623158",
"0.7612803",
"0.76002145",
"0.7583... | 0.74917895 | 33 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
Ri0C = jQ3Z['Start Station'].value_counts().idxmax()
print('The most commonly used start station :', Ri0C)
k7bv = jQ3Z['End Station'].value_counts().idxmax()
print('The most commonly used end statio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
sanW = jQ3Z['Trip Duration'].sum()
print('the summation of travel time :', sanW)
XVYG = jQ3Z['Trip Duration'].mean()
print('Average travel time :', XVYG)
Atc8 = jQ3Z['Trip Duration'].max()
print('The Max travel ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.76117826 | 86 |
Replace all runs of whitespace with one space. | def yAYF(l5Ny):
return fMIo.sub(' ', l5Ny.strip()) | {
"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 mQFJ(YKHO) -> None:\n YKHO.text = ZbWC.sub('\\\\s[^\\n\\\\s]\\\\s', ' ', YKHO.text... | [
"0.7847106",
"0.7783066",
"0.7513169",
"0.7279035",
"0.72544503",
"0.7153413",
"0.71390104",
"0.7121684",
"0.71083605",
"0.71083605",
"0.70504385",
"0.6981496",
"0.6914841",
"0.68986374",
"0.6852682",
"0.6820266",
"0.6793349",
"0.6788388",
"0.67704785",
"0.6727777",
"0.671134... | 0.74346846 | 3 |
Branch if Not Equal | def Vk9T(YKHO, d7pR):
YKHO.pc += d7pR if not YKHO.p & PtXs.FLAG_ZERO else 0
YKHO.pc = _6J1(YKHO.pc).value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ORkA(YKHO):\n gr_i = (YKHO.opcode & 3840) >> 8\n BWXx = YKHO.opcode & 255\n if YKHO.registers[gr_i] != BWXx:\n YKHO.pc += 2\n bo34.info(\"Didn't skip {} because V{} and {} are not equal\".format(hex(YKHO.pc - 2), gr_i, BWXx))",
"def mdZD(YKHO):\n gr_i = (YKHO.opcode & 3840) >> 8\n ... | [
"0.7856991",
"0.74648285",
"0.73252594",
"0.7262589",
"0.72318447",
"0.71663684",
"0.7074456",
"0.6924286",
"0.6896564",
"0.68738955",
"0.6860414",
"0.6851288",
"0.68099976",
"0.67671484",
"0.67531556",
"0.67516285",
"0.6737736",
"0.6702436",
"0.67017436",
"0.6699731",
"0.669... | 0.0 | -1 |
This method returns a HTML string representing this error case instance. | def GlvW(YKHO):
gmUX = ''
ppQm = 'Written' if YKHO.mode == uwaB.TN_MODE else 'Spoken'
FZuj = 1 if YKHO.mode == uwaB.TN_MODE else 2
CvJB = ''.join([' '] * FZuj)
n_L_ = f'<b>[Input ({ppQm})]{CvJB}</b>: {YKHO._input}</br>\n'
gmUX += n_L_ + ' '
_U8o = YKHO.get_spans_html(YKHO.target_spans, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YCqp(vIwR):\n return lbLb(vIwR, 'error')",
"def zAg0(YKHO):\n return 'ERROR: ' + YKHO.error_message",
"def _R2e(YKHO, PNq_):\n TBsA = YKHO.make_body(PNq_, YKHO.template, aoEZ, T7mX)\n Ni7R = X7eR\n RzNd = None\n try:\n RzNd = open(Hy7s.path.join(YKHO.dir, str(YKHO.code) + '.html'),... | [
"0.69740915",
"0.695199",
"0.68573153",
"0.66614646",
"0.66189235",
"0.6601159",
"0.65861976",
"0.6529188",
"0.6529188",
"0.6529188",
"0.6529188",
"0.6525147",
"0.652326",
"0.65131927",
"0.64945424",
"0.64727384",
"0.6456088",
"0.6451642",
"0.63787514",
"0.63775533",
"0.63750... | 0.0 | -1 |
Load config yaml file. | def LgIG():
global config
with open('config.yml', 'r') as nUeQ:
GPtr = eJb6.load(nUeQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LgIG(pmON):\n return eJb6.load(open('config.yaml', 'r'), Loader=eJb6.SafeLoader)",
"def LgIG():\n t7Ny = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n lqQH = Hy7s.path.join(t7Ny, 'config.yml')\n Fv2L = eJb6.safe_load(open(lqQH))\n return Fv2L",
"def LgIG(Ux0P):\n QmMM['config'] = jnN0(Ux0P... | [
"0.8231187",
"0.8182419",
"0.8127744",
"0.809641",
"0.80643296",
"0.80458236",
"0.80431753",
"0.8029589",
"0.8012232",
"0.80042094",
"0.7874509",
"0.7825412",
"0.7797831",
"0.77838737",
"0.7754888",
"0.7736324",
"0.7715363",
"0.767165",
"0.7667236",
"0.7583861",
"0.7582442",
... | 0.8134458 | 2 |
Creates a tensorflow graph from saved GraphDef file. | def zgmU():
with ZylS.gfile.FastGFile(Hy7s.path.join(GPtr['inference']['model_dir'], 'output_graph.pb'), 'rb') as eHNT:
r8JX = ZylS.GraphDef()
r8JX.ParseFromString(eHNT.read())
bGrB = ZylS.import_graph_def(r8JX, name='') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zgmU():\n with ZylS.gfile.FastGFile(Hy7s.path.join(vPBo.model_dir, SRSV), 'rb') as eHNT:\n r8JX = ZylS.GraphDef()\n r8JX.ParseFromString(eHNT.read())\n bGrB = ZylS.import_graph_def(r8JX, name='')",
"def zgmU():\n with ZylS.gfile.FastGFile(HwRy.argv[1], 'rb') as eHNT:\n r8JX ... | [
"0.8520226",
"0.8467014",
"0.83951885",
"0.8363946",
"0.82735664",
"0.8054931",
"0.79590166",
"0.7821822",
"0.764584",
"0.76303625",
"0.75955445",
"0.7593122",
"0.7593122",
"0.7587784",
"0.7581071",
"0.7548656",
"0.744795",
"0.73854226",
"0.73334265",
"0.7306117",
"0.7275474"... | 0.8254384 | 5 |
Constructor for the CreateRemoteVaultSearchJobParameters class | def FIMM(YKHO, yOkf=None, JvOq=None, ZghL=None, sweq=None, GW4e=None, cmVZ=None, r1GT=None, vRHZ=None, cohK=None):
YKHO.job_uids = yOkf
YKHO.cluster_id = JvOq
YKHO.cluster_match_string = ZghL
YKHO.encryption_keys = sweq
YKHO.end_time_usecs = GW4e
YKHO.job_match_string = cmVZ
YKHO.search_job_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, SGPK: Dict[str, List[Dict[str, Any]]], J9Mn: SearchMethodEnum=tYnO.RANDOM_SEARCH_UNIFORM, t6ks: Optional[str]=None, z6kT: Optional[str]=None, yokr: Optional[int]=None) -> None:\n YKHO.search_agent_dict = {N4nj: Qk8T.create_search_method(parameters=t9eR, selected_search_method=J9Mn, experiment_nam... | [
"0.6202517",
"0.59419274",
"0.57045424",
"0.56249213",
"0.56042457",
"0.5588463",
"0.55337",
"0.5533403",
"0.55328417",
"0.55167305",
"0.5512177",
"0.5469176",
"0.54523945",
"0.5450014",
"0.5423169",
"0.5366871",
"0.5348521",
"0.5347465",
"0.53459054",
"0.5342717",
"0.5340208... | 0.6318922 | 0 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
yOkf = cmPJ.get('JobUids')
JvOq = cmPJ.get('clusterId')
ZghL = cmPJ.get('clusterMatchString')
sweq = None
if cmPJ.get('encryptionKeys') != None:
sweq = list()
for g8x2 in cmPJ.get('encryptionKeys'):
sweq.appen... | {
"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 mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.8318918",
"0.81669754",
"0.81669754",
"0.81197715",
"0.8089109",
"0.79791135",
"0.795009",
"0.7923482",
"0.7898976",
"0.7892036",
"0.7888688",
"0.788278",
"0.78827596",
"0.7876383",
"0.7858801",
"0.7836289",
"0.78016543",
"0.78016543",
"0.78016543",
"0.78016543",
"0.780165... | 0.0 | -1 |
Gets an artifact object by parsing metadata or creating one from uri. | def I9zd(YKHO) -> dIeA.Artifact:
if YKHO.metadata_file and YKHO.output_name:
return vdvU.get_artifact_from_output(YKHO.metadata_file, YKHO.output_name)
else:
Aofo = dIeA.Artifact(instance_schema=dIeA.DEFAULT_ARTIFACT_SCHEMA)
Aofo.uri = YKHO.uri
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I9zd(YKHO) -> dIeA.Artifact:\n if YKHO.metadata_file and YKHO.output_name:\n return vdvU.get_artifact_from_output(YKHO.metadata_file, YKHO.output_name)\n else:\n Aofo = dIeA.Artifact(instance_schema=dIeA.DEFAULT_ARTIFACT_SCHEMA)\n Aofo.uri = YKHO.uri\n return Aofo",
"def NMo... | [
"0.7244576",
"0.63287866",
"0.6281482",
"0.60381526",
"0.59055823",
"0.58875287",
"0.5870152",
"0.5822744",
"0.5775459",
"0.57070494",
"0.55334526",
"0.5480483",
"0.54525334",
"0.54401195",
"0.5386478",
"0.538284",
"0.5382396",
"0.5366674",
"0.5360486",
"0.5255901",
"0.525375... | 0.73309535 | 0 |
This function takes an image as its first argument, a message as its second argument, and returns an encoded image as its result. The input image is a rectangular twodimensional list of pixels, in zerobased rowmajor order. Each pixel is a 3element tuple of integers in the range [0,255]. Input message is a string of ASC... | def kLcZ(LNo8, Ol8d):
OHec = UOVU.message_to_bits(Ol8d)
FHlE = []
YRbF = 0
for rdlD in LNo8:
gAQa = []
for Mkmy, Oa1e, Fg_i in rdlD:
nKOO = UOVU.set_bit(Mkmy, UOVU.codebit(YRbF, OHec), 0)
O6l1 = UOVU.set_bit(Oa1e, UOVU.codebit(YRbF + 1, OHec), 0)
RLx0 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLcZ(YKHO, Ol8d: str) -> None:\n LNo8 = YKHO._original_image.copy()\n TVTK, H2v2 = LNo8.size\n lEHr = LNo8.load()\n cnk1 = YKHO._str_to_binary_string(Ol8d + YKHO._end_message)\n nSAl = YKHO._split(cnk1, 3)\n for UL1z in range(TVTK):\n for GNzn in range(H2v2):\n DBxD = nSAl.p... | [
"0.8035475",
"0.75983036",
"0.73957735",
"0.70629686",
"0.6740143",
"0.6663131",
"0.66422814",
"0.6604274",
"0.6529792",
"0.6521943",
"0.6508798",
"0.620289",
"0.6130727",
"0.60682267",
"0.59764594",
"0.591512",
"0.58244956",
"0.5808739",
"0.57512033",
"0.5699584",
"0.5699379... | 0.79802555 | 1 |