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 |
|---|---|---|---|---|---|---|
Return a human readable representation of that rule. | def zAg0(YKHO):
return '(%s)' % ' | '.join(map(str, YKHO.__subrules)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '{ %s }' % str(YKHO.__rule)",
"def zAg0(YKHO):\n return '[ %s ]' % str(YKHO.__rule)",
"def zAg0(YKHO):\n return '{ %s }1' % str(YKHO.__rule)",
"def eD8c(YKHO) -> str:\n if YKHO._rule:\n return YKHO._rule\n return YKHO._make_rule(member_param=YKHO._member_param, ... | [
"0.8322443",
"0.82964164",
"0.8117276",
"0.77377653",
"0.7387597",
"0.7335432",
"0.73148626",
"0.7236931",
"0.71779567",
"0.7062998",
"0.7062998",
"0.7027069",
"0.6867322",
"0.6867322",
"0.6867322",
"0.6841116",
"0.68342084",
"0.6812577",
"0.6810033",
"0.66390747",
"0.6566647... | 0.7118718 | 9 |
Initialize the rule with a subrule. | def FIMM(YKHO, eD8c):
c4EF.__init__(YKHO)
YKHO.__rule = eD8c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, wY1o):\n YKHO.__rule = wY1o",
"def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__subrules = [zXVZ, Gg8h]",
"def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__autorule = None\n YKHO.__subrules = [zXVZ, Gg8h]",
"def FIMM(YKHO, eD8c):\n c4EF.__init__(YKHO)\n ... | [
"0.7870763",
"0.7811575",
"0.7656956",
"0.7160753",
"0.653307",
"0.633517",
"0.6283239",
"0.62805295",
"0.6202936",
"0.61941767",
"0.6168416",
"0.60362005",
"0.59076303",
"0.5903812",
"0.5889583",
"0.5883609",
"0.58822775",
"0.58275986",
"0.57896584",
"0.57666296",
"0.573136"... | 0.7061991 | 7 |
Return a string representation of this rule. | def zAg0(YKHO):
return '[ %s ]' % str(YKHO.__rule) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '{ %s }' % str(YKHO.__rule)",
"def zAg0(YKHO):\n return '{ %s }1' % str(YKHO.__rule)",
"def zAg0(YKHO):\n SlvR = ''\n for H5ew, c_NS in YKHO.production_rules.items():\n SlvR += '\\nRULE ' + H5ew + ' = [\\n\\t'\n xkpB = []\n for eD8c in c_NS:\n ... | [
"0.85909235",
"0.81206566",
"0.80404353",
"0.77661765",
"0.7577172",
"0.75398356",
"0.73718196",
"0.7260761",
"0.7252544",
"0.71422875",
"0.7057961",
"0.70452917",
"0.70162964",
"0.6860555",
"0.6827189",
"0.68119884",
"0.6804846",
"0.67445683",
"0.67385304",
"0.67276466",
"0.... | 0.84542835 | 1 |
Initialize the rule with the appropriate subrule. | def FIMM(YKHO, eD8c):
c4EF.__init__(YKHO)
YKHO.__rule = eD8c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__subrules = [zXVZ, Gg8h]",
"def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__autorule = None\n YKHO.__subrules = [zXVZ, Gg8h]",
"def FIMM(YKHO, eD8c):\n c4EF.__init__(YKHO)\n YKHO.__rule = h8nf(FPQ3(eD8c))",
"def set(YKH... | [
"0.78390574",
"0.77369565",
"0.7450065",
"0.74388546",
"0.65822154",
"0.6437838",
"0.64023703",
"0.63629377",
"0.6348731",
"0.63186395",
"0.6317418",
"0.6142772",
"0.61134976",
"0.6110916",
"0.6009934",
"0.5976162",
"0.5971592",
"0.59707004",
"0.5966584",
"0.59623295",
"0.593... | 0.7325903 | 4 |
Return a humanreadable representation of the rule. | def zAg0(YKHO):
return '{ %s }1' % str(YKHO.__rule) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '{ %s }' % str(YKHO.__rule)",
"def zAg0(YKHO):\n return '[ %s ]' % str(YKHO.__rule)",
"def eD8c(YKHO) -> str:\n if YKHO._rule:\n return YKHO._rule\n return YKHO._make_rule(member_param=YKHO._member_param, unique_member_param=YKHO._unique_member_param)",
"def zAg0(Y... | [
"0.8239602",
"0.8204346",
"0.7525029",
"0.73244405",
"0.7213955",
"0.71983397",
"0.7147793",
"0.70862406",
"0.6992377",
"0.6991684",
"0.69406426",
"0.678836",
"0.678836",
"0.6702712",
"0.6663996",
"0.66255194",
"0.65530753",
"0.65530753",
"0.65530753",
"0.6526857",
"0.6489685... | 0.7937641 | 2 |
Initialize this rule with a subrule. The subrule is transformed to a Optional(OneOrMore(rule)) construct. | def FIMM(YKHO, eD8c):
c4EF.__init__(YKHO)
YKHO.__rule = h8nf(FPQ3(eD8c)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, wY1o):\n YKHO.__rule = wY1o",
"def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__subrules = [zXVZ, Gg8h]",
"def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__autorule = None\n YKHO.__subrules = [zXVZ, Gg8h]",
"def FOdN(YKHO, Gg8h):\n YKHO.__subrules.append... | [
"0.7645435",
"0.7058177",
"0.69865906",
"0.6089792",
"0.607409",
"0.60388577",
"0.59379935",
"0.59379935",
"0.59379935",
"0.59379935",
"0.59379935",
"0.5818215",
"0.56057984",
"0.5555649",
"0.5497652",
"0.54584336",
"0.5446193",
"0.5444033",
"0.54076636",
"0.5373307",
"0.5352... | 0.7242198 | 1 |
Return a human readable representation of the rule. | def zAg0(YKHO):
return '{ %s }' % str(YKHO.__rule) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '[ %s ]' % str(YKHO.__rule)",
"def zAg0(YKHO):\n return '{ %s }1' % str(YKHO.__rule)",
"def eD8c(YKHO) -> str:\n if YKHO._rule:\n return YKHO._rule\n return YKHO._make_rule(member_param=YKHO._member_param, unique_member_param=YKHO._unique_member_param)",
"def zAg0(... | [
"0.83096594",
"0.80169153",
"0.7593279",
"0.7319496",
"0.7264386",
"0.7223886",
"0.72137034",
"0.72088915",
"0.70570076",
"0.6972947",
"0.6946455",
"0.6925757",
"0.6925757",
"0.6782774",
"0.67298824",
"0.66754603",
"0.66754603",
"0.66754603",
"0.66463554",
"0.65674514",
"0.65... | 0.83138204 | 0 |
Initialize the rule with a subrule. | def FIMM(YKHO, eD8c):
c4EF.__init__(YKHO)
YKHO.__rule = eD8c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, wY1o):\n YKHO.__rule = wY1o",
"def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__subrules = [zXVZ, Gg8h]",
"def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__autorule = None\n YKHO.__subrules = [zXVZ, Gg8h]",
"def FIMM(YKHO, eD8c):\n c4EF.__init__(YKHO)\n ... | [
"0.78689665",
"0.7810713",
"0.76565856",
"0.7162156",
"0.65335506",
"0.63353163",
"0.628398",
"0.62814015",
"0.6204327",
"0.61953646",
"0.61662525",
"0.60366786",
"0.59085375",
"0.5901915",
"0.58901626",
"0.5885288",
"0.588308",
"0.5827859",
"0.5788963",
"0.5767066",
"0.57278... | 0.7061513 | 6 |
Return a humanreadable representation of this rule. | def zAg0(YKHO):
return 'IgnoreWhite(%s)' % str(YKHO.__rule) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '{ %s }' % str(YKHO.__rule)",
"def zAg0(YKHO):\n return '[ %s ]' % str(YKHO.__rule)",
"def zAg0(YKHO):\n return '{ %s }1' % str(YKHO.__rule)",
"def zAg0(YKHO):\n SlvR = ''\n for H5ew, c_NS in YKHO.production_rules.items():\n SlvR += '\\nRULE ' + H5ew + ' = [\\n\... | [
"0.82423717",
"0.82108533",
"0.7932339",
"0.7440846",
"0.73357606",
"0.7311912",
"0.7280985",
"0.7167941",
"0.6995803",
"0.6820977",
"0.6805586",
"0.67758435",
"0.6759987",
"0.6733812",
"0.66440535",
"0.6638224",
"0.66086507",
"0.6599608",
"0.6599608",
"0.6576451",
"0.6566146... | 0.6180306 | 58 |
Match the input against this rule. The input reader is set to 'ignore whitespace' mode, the subrule is matched, the ignore state of the input reader is reset and the result of the subrule is returned. | def kUBT(YKHO, Nj_R):
PrmE = Nj_R.getIgnoreState()
Nj_R.setIgnoreState(True)
try:
Aofo = YKHO.__rule.match(Nj_R)
except:
Nj_R.setIgnoreState(PrmE)
raise
Nj_R.setIgnoreState(PrmE)
return YKHO.returnToken(YKHO.callAction(Aofo)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kUBT(YKHO, Nj_R):\n PrmE = Nj_R.getIgnoreState()\n Nj_R.setIgnoreState(False)\n Nj_R.skipWhite()\n try:\n Aofo = YKHO.__rule.match(Nj_R)\n except:\n Nj_R.setIgnoreState(PrmE)\n raise\n Nj_R.setIgnoreState(PrmE)\n return YKHO.returnToken(YKHO.callAction(Aofo))",
"def ... | [
"0.77873796",
"0.68763804",
"0.67593026",
"0.6706511",
"0.6550207",
"0.64838886",
"0.6457052",
"0.64352405",
"0.5735446",
"0.5357137",
"0.5324095",
"0.523473",
"0.52233666",
"0.51236165",
"0.51083946",
"0.46980855",
"0.46103334",
"0.45892873",
"0.4580705",
"0.45536798",
"0.44... | 0.64982086 | 5 |
Initialize this rule with a subrule. | def FIMM(YKHO, eD8c):
c4EF.__init__(YKHO)
YKHO.__rule = eD8c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set(YKHO, wY1o):\n YKHO.__rule = wY1o",
"def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__subrules = [zXVZ, Gg8h]",
"def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__autorule = None\n YKHO.__subrules = [zXVZ, Gg8h]",
"def FIMM(YKHO, eD8c):\n c4EF.__init__(YKHO)\n ... | [
"0.79039633",
"0.7704556",
"0.7528489",
"0.699352",
"0.6592053",
"0.63668275",
"0.62795544",
"0.6239927",
"0.6207873",
"0.6145243",
"0.6114184",
"0.5912805",
"0.58564174",
"0.583741",
"0.5819303",
"0.58177894",
"0.58096725",
"0.5768838",
"0.5738289",
"0.5711264",
"0.5708828",... | 0.6882542 | 8 |
Match this rule against the input. The rule sets the input reader into 'match whitespace' mode, matches the subrule, resets the ignore state and returns the results of the subrule. | def kUBT(YKHO, Nj_R):
PrmE = Nj_R.getIgnoreState()
Nj_R.setIgnoreState(False)
Nj_R.skipWhite()
try:
Aofo = YKHO.__rule.match(Nj_R)
except:
Nj_R.setIgnoreState(PrmE)
raise
Nj_R.setIgnoreState(PrmE)
return YKHO.returnToken(YKHO.callAction(Aofo)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kUBT(YKHO, Nj_R):\n Nj_R.checkPoint()\n for eD8c in YKHO.__subrules:\n try:\n rgnn = eD8c.match(Nj_R)\n Nj_R.deleteCheckpoint()\n return YKHO.returnToken(YKHO.callAction(rgnn))\n except wpWc as e:\n if tTpl.final:\n raise\n ... | [
"0.64872694",
"0.6347668",
"0.61450136",
"0.59545195",
"0.57682425",
"0.56623787",
"0.56563044",
"0.5379188",
"0.5329485",
"0.47243404",
"0.4703115",
"0.4687174",
"0.46170026",
"0.45409277",
"0.44982916",
"0.44837525",
"0.44732395",
"0.44385293",
"0.44295108",
"0.4390456",
"0... | 0.72763103 | 0 |
mark a rule as definitive (i.e. fail nonrecoverably if that rule does not match | def b4wn(eD8c, tO9_):
return eD8c | P1dF(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PJbc(YKHO, eD8c):\n YKHO.__autorule = eD8c\n return YKHO",
"def FIMM(YKHO, eD8c):\n c4EF.__init__(YKHO)\n YKHO.__rule = h8nf(FPQ3(eD8c))",
"def attS(YKHO):\n assert YKHO._trigger is not None, 'StepControl does not have an attached trigger'\n if YKHO._trigger.done():\n bo34.warning(... | [
"0.6098144",
"0.5746041",
"0.56196755",
"0.5569634",
"0.5473827",
"0.5473827",
"0.5473827",
"0.5473827",
"0.5473827",
"0.53956914",
"0.5384982",
"0.5349471",
"0.53090274",
"0.5247847",
"0.523161",
"0.52108085",
"0.51964575",
"0.5193712",
"0.5176003",
"0.51646626",
"0.5144124"... | 0.65730274 | 0 |
Fetch an image if it isn't already present. This works like ``docker pull`` and will pull the tag ``latest`` if no tag is specified in the image name. | def MRT2(x0hE, mWFP):
try:
LNo8 = x0hE.images.get(mWFP)
except O2Ii.errors.ImageNotFound:
mWFP, TZ9E = DXMW(mWFP)
TZ9E = 'latest' if TZ9E is None else TZ9E
RKD7.info("Pulling tag '{}' for image '{}'...".format(TZ9E, mWFP))
LNo8 = x0hE.images.pull(mWFP, tag=TZ9E)
RKD7.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j2aj(YKHO, TZ9E):\n C7_O = YKHO.build_image_name(TZ9E)\n try:\n LNo8 = YKHO.client.images.get(C7_O)\n except Exception as ex:\n print('Image does not exist: {}'.format(str(aTqo)))\n print('Pulling image {}'.format(C7_O))\n LNo8 = YKHO.client.images.pull(C7_O)\n return LN... | [
"0.77883637",
"0.72762054",
"0.7259427",
"0.7089663",
"0.69282615",
"0.69218105",
"0.6881295",
"0.6839927",
"0.68272954",
"0.6657196",
"0.6514073",
"0.6437116",
"0.641478",
"0.6252873",
"0.6102983",
"0.6100666",
"0.60909176",
"0.6073103",
"0.6069691",
"0.60605085",
"0.6058441... | 0.82496524 | 0 |
blur the image with Gaussian Smoothing technique | def AktH(VXjJ, M6vu=(5, 5), WTkW=10):
zr3f = oyIN.zeros_like(VXjJ)
XC5k.GaussianBlur(src=VXjJ, dst=zr3f, ksize=M6vu, sigmaX=0)
return zr3f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xsYF(YKHO, VXjJ):\n return XC5k.GaussianBlur(VXjJ, (YKHO.kernel_size, YKHO.kernel_size), 0)",
"def IgYM(YKHO, VXjJ, Ot1W=3):\n return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W), 0)",
"def BKdC(HPR0):\n VXjJ = oyIN.array(HPR0)\n kX19 = 1.5\n BqFm = XC5k.GaussianBlur(VXjJ, (11, 11), kX19)\n retur... | [
"0.82777363",
"0.8166307",
"0.8049771",
"0.8022641",
"0.7986579",
"0.79467",
"0.7919809",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0.7864901",
"0... | 0.77062833 | 24 |
Make a buffered stream to replace a standard stream. | def VhOu(YKHO):
class BufferedStandardStream(xDSY.TextIOWrapper):
def baOo(YKHO):
return YKHO.buffer.getvalue().decode(encoding=YKHO.encoding, errors=YKHO.errors)
return hEQe(xDSY.BytesIO(), newline='\n', write_through=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QggB(wOb_, Ep8u):\n return Aw2k.buffer_streamer(wOb_, Ep8u)",
"def kj4l(YKHO, wOb_, vK3y=None):\n vK3y = vK3y or fBNJ\n if isinstance(wOb_.write(b''), int):\n try:\n while True:\n wOb_.write((yield YKHO.read(vK3y)))\n except BrokenPipeError:\n pass\... | [
"0.6521658",
"0.65028507",
"0.6383464",
"0.63824195",
"0.6368981",
"0.63611394",
"0.6230266",
"0.6159378",
"0.60959303",
"0.595737",
"0.5943116",
"0.58953375",
"0.5860859",
"0.58579403",
"0.57731515",
"0.56645817",
"0.5641117",
"0.56121635",
"0.5608719",
"0.5594284",
"0.55903... | 0.76684594 | 0 |
Order the layers from least to most specific (bottom to top). Puts unit tests first. Groups layers with common base layers together. Sorts the rest alphabetically. Removes duplicates. | def oZmg(fhcK):
fhcK = sorted(fhcK, key=dZwP, reverse=True)
VeVC = []
for gEmA in fhcK:
rqyZ(gEmA, VeVC)
VeVC.reverse()
PwWw = {}
Aofo = []
for gEmA in VeVC:
if gEmA not in PwWw:
PwWw[gEmA] = 1
if gEmA in fhcK:
Aofo.append(gEmA)
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dZwP(gEmA):\n PwWw = set()\n H5ew = []\n nA5M = {}\n\n def FBWf(gEmA):\n PwWw.add(gEmA)\n for P8oC in gEmA.__bases__[::-1]:\n if P8oC is not object and P8oC not in PwWw:\n nA5M['_gather'](P8oC)\n H5ew.append(gEmA)\n nA5M['_gather'] = FBWf\n FBWf(... | [
"0.72557485",
"0.61393195",
"0.6110427",
"0.6099585",
"0.6058314",
"0.58652484",
"0.58304536",
"0.5776012",
"0.5615117",
"0.5409117",
"0.53811884",
"0.5356623",
"0.5350355",
"0.53319776",
"0.53131324",
"0.53084964",
"0.52880484",
"0.52390236",
"0.52353954",
"0.52314645",
"0.5... | 0.70932984 | 1 |
check whether diff of two dicts is below a threshold value | def bnyA(ydgu, pZWG, GBMJ=0.04, dsE5=False):
H0BN = True
for H5ew in ydgu:
wNuL = ydgu[H5ew]
Mlb1 = pZWG.get(H5ew, None)
if Mlb1:
yk4i = oyIN.abs(wNuL - Mlb1)
if dsE5:
print(H5ew, yk4i)
if yk4i > GBMJ:
H0BN = False
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJj3(m2Vb, g6HL):\n return m2Vb.items() >= g6HL.items()",
"def G9IY(m2Vb: Dict[Any, float], g6HL: Dict[Any, float], SOnQ: int=7) -> bool:\n if set(m2Vb.keys()) != set(g6HL.keys()):\n return False\n for H5ew in m2Vb.keys():\n if abs(m2Vb[H5ew] - g6HL[H5ew]) >= 1.5 * 10 ** (-SOnQ):\n ... | [
"0.72842747",
"0.72117233",
"0.70431817",
"0.69072974",
"0.6649591",
"0.64962804",
"0.6409543",
"0.6300027",
"0.6273857",
"0.6260392",
"0.62418437",
"0.6211319",
"0.61546403",
"0.6105012",
"0.6094948",
"0.608859",
"0.6074446",
"0.60705775",
"0.6053892",
"0.60341907",
"0.60238... | 0.7277438 | 1 |
Return the type of a schema definition. | def QqaH(YEnM: Dict[str, Any]) -> str:
sB1G: str = YEnM.get('type', None)
if sB1G is not None:
return sB1G
if 'items' in YEnM:
return 'array'
if 'properties' in YEnM:
return 'object'
return 'any' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eq8o(nbJI: Dict[str, Any]) -> str:\n return nbJI['schema']['type']",
"def Lkwt(YKHO) -> h8nf[type]:\n pass",
"def Lkwt(YKHO) -> h8nf[type]:\n return nIS6",
"def Lkwt(YKHO) -> h8nf[type]:\n return nb3Q",
"def Lkwt(YKHO) -> h8nf[type]:\n return None",
"def Lkwt(YKHO) -> h8nf[type]:\n ... | [
"0.78456223",
"0.74964964",
"0.7451609",
"0.7370395",
"0.73280346",
"0.72159594",
"0.721293",
"0.71189207",
"0.7115734",
"0.6983264",
"0.69754624",
"0.68222225",
"0.6746487",
"0.67367923",
"0.66829956",
"0.66754174",
"0.6661009",
"0.6586401",
"0.6571678",
"0.65432495",
"0.652... | 0.0 | -1 |
This function open a file and return a list with all the lines | def _rvh(Ux0P):
try:
with open(Ux0P, 'r') as nUeQ:
l5Ny = nUeQ.readlines()
for YRbF in range(len(l5Ny)):
l5Ny[YRbF] = l5Ny[YRbF].rstrip()
return l5Ny
except:
print('Error readfile()') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HbNy(IznC):\n return []",
"def trZt(pmON: str) -> x1iM[str]:\n if Hy7s.path.isfile(pmON):\n with open(pmON, 'r') as eHNT:\n Nqlg = eHNT.readlines()\n else:\n raise DQrD(f'Could not find file {pmON}')\n return Nqlg",
"def Nwr9(pmON: str) -> list:\n rhss = []\n with... | [
"0.8215437",
"0.8143381",
"0.79937214",
"0.7973599",
"0.79373413",
"0.792495",
"0.7894134",
"0.788836",
"0.78295815",
"0.78291285",
"0.78277344",
"0.78065425",
"0.78043866",
"0.7792632",
"0.7789453",
"0.7776489",
"0.7765143",
"0.77507305",
"0.7745484",
"0.77178514",
"0.770732... | 0.0 | -1 |
Seperates all the words and only keep the alpha's | def l4Z4(zFiD):
try:
gZgb = 'abcdefghijklmnopqrstuvwqyz '
rU5H = list(zFiD.lower())
for GIN8 in rU5H:
if GIN8 not in gZgb:
rU5H.remove(GIN8)
lvse = ''.join(rU5H)
rU5H = lvse.split(' ')
for GIN8 in rU5H:
if GIN8 == '':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wm2H(KCHu):\n V22M = ''\n for YRbF in KCHu:\n if YRbF.isalpha():\n V22M += YRbF\n else:\n V22M = V22M\n return V22M",
"def uFl1(GIN8):\n FNgC = [sZqf.lower() for sZqf in GIN8 if sZqf.isalpha()]\n return ''.join(FNgC)",
"def QrZ9(FUjE):\n gZgb = 'abcdefg... | [
"0.76532423",
"0.73436373",
"0.7261825",
"0.71635145",
"0.7021406",
"0.6942679",
"0.69128907",
"0.6875195",
"0.6828132",
"0.6812344",
"0.6788839",
"0.6744104",
"0.67233056",
"0.67043823",
"0.6683897",
"0.66524",
"0.665145",
"0.66373426",
"0.66227764",
"0.66203386",
"0.6612778... | 0.0 | -1 |
Renders the about page. | def vsuQ():
return TvZl('about.html', title='About', year=qcWV.now().year, message='Your application description page.') | {
"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.82680845",
"0.8243358",
"0.8239194",
"0.8224137",
"0.82079816",
"0.8204868",
"0.8173699",
"0.8172736",
"0.80967313",
"0.80501616",
"0.80501616",
"0.80501616",
"0.80501616",
"0.80501616",
"0.... | 0.82709616 | 13 |
Returns the depth of brackets surrounding a character at a given index | def MnRD(KCHu, YRbF):
return sum([1 if Z9rn == '(' else 0 for Z9rn in KCHu[:YRbF + 1]]) - sum([1 if Z9rn == ')' else 0 for Z9rn in KCHu[:YRbF]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZujK(l5Ny: str, TJ3E: int) -> int:\n if l5Ny[TJ3E] != '[':\n raise SyntaxError(\"Index {} in 'text' is not an open bracket '['. It is {}\".format(TJ3E, l5Ny[TJ3E]))\n T6C8 = []\n for d6pt in range(TJ3E, len(l5Ny)):\n if l5Ny[d6pt] == '[':\n T6C8.append(l5Ny[d6pt])\n eli... | [
"0.6441032",
"0.6278467",
"0.622806",
"0.6077319",
"0.598753",
"0.58589983",
"0.57255167",
"0.56981266",
"0.5690461",
"0.5681209",
"0.56341326",
"0.56204003",
"0.5599084",
"0.559601",
"0.55728364",
"0.5522096",
"0.55196637",
"0.5511052",
"0.54834247",
"0.5483365",
"0.54785883... | 0.56290966 | 11 |
Apply the "add" operation between "self" and "y". | def H2v5(YKHO, LVAh: Union[int, float, torch.Tensor, np.ndarray, 'ShareTensor']) -> 'ShareTensor':
S8Ll = YKHO.apply_function(LVAh, 'add')
return S8Ll | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, LVAh):\n return DPNn.add(YKHO, LVAh)",
"def H2v5(YKHO, LVAh: Union[int, float, np.ndarray, torch.tensor, MPCTensor]) -> reUQ:\n Ylbp = YKHO.__apply_op(LVAh, 'add')\n return Ylbp",
"def H2v5(YKHO, WKvO, LVAh):\n pass",
"def tLvw(YKHO, LVAh, H2v5):\n return (LVAh + H2v5) % YKHO.y_... | [
"0.7918664",
"0.77989084",
"0.76901156",
"0.7479248",
"0.7461794",
"0.7456274",
"0.7386558",
"0.71532017",
"0.71426934",
"0.71313065",
"0.7127516",
"0.7123588",
"0.7049094",
"0.7049094",
"0.69804054",
"0.69662297",
"0.6939465",
"0.6914432",
"0.6895164",
"0.6886773",
"0.686751... | 0.6957926 | 16 |
Apply the "ne" operation between "y" and "self". | def d_5N(YKHO, LVAh: Union[ShareTensor, np.ndarray]) -> 'ShareTensor':
S8Ll = dfde.apply_function(YKHO, LVAh, 'ne')
return S8Ll | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d_5N(YKHO, LVAh):\n by6d = YKHO - LVAh\n by6d = type(by6d).stack([by6d, -by6d])\n return by6d._ltz().sum(0)",
"def d_5N(YKHO, LVAh):\n if JZ1r.get().get_world_size() == 2:\n return 1 - YKHO.eq(LVAh)\n by6d = YKHO - LVAh\n by6d.share = MVD0([by6d.share, -by6d.share])\n return by6d.... | [
"0.76962197",
"0.75823",
"0.7163024",
"0.70322347",
"0.6981256",
"0.6828718",
"0.6739267",
"0.66849077",
"0.6684868",
"0.6641086",
"0.6613917",
"0.6591961",
"0.6572852",
"0.65726185",
"0.6561855",
"0.6558564",
"0.65503263",
"0.651594",
"0.6512535",
"0.6500138",
"0.6493888",
... | 0.72291166 | 2 |
Equal operator. Check if "self" is equal with another object given a set of attributes to compare. | def cIT_(YKHO, Elif: Any) -> bool:
if not hasattr(Elif, 'child'):
return YKHO.child == Elif
return YKHO.child == Elif.child | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return all((getattr(YKHO, hkS8, None) == getattr(Elif, hkS8, None) for hkS8 in YKHO.attrs))",
"def xa14(YKHO, Elif):\n for hkS8 in YKHO._attrs_to_save:\n try:\n if getattr(YKHO, hkS8) != getattr(Elif, hkS8):\n return False\n except AttributeEr... | [
"0.80915666",
"0.7883474",
"0.7869786",
"0.78263706",
"0.77317244",
"0.77148974",
"0.76727086",
"0.76222324",
"0.76140815",
"0.75810045",
"0.7578767",
"0.754383",
"0.7525018",
"0.7431048",
"0.74228346",
"0.7411746",
"0.74100983",
"0.74100983",
"0.74100983",
"0.74100983",
"0.7... | 0.0 | -1 |
Export dataframe to csv | def rl5L(YKHO, jQ3Z, Ux0P):
jQ3Z.to_csv(str(oAb3.PurePosixPath(YKHO.config.csv_path, Ux0P)), sep=';') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rl5L(YKHO, LWY6):\n YKHO.df.to_csv(LWY6)",
"def Edt8(jQ3Z, Jmpp):\n jQ3Z.to_csv(Jmpp, index=False)",
"def ihWX(jQ3Z):\n if Hy7s.path.exists('files/converted.csv'):\n Hy7s.remove('files/converted.csv')\n jQ3Z.to_csv('files/converted.csv')",
"def RZtn(YKHO):\n YKHO.tableView.df.to_csv... | [
"0.8214005",
"0.80662256",
"0.80164874",
"0.79617006",
"0.7870546",
"0.7838557",
"0.7804871",
"0.7638591",
"0.7635488",
"0.7539306",
"0.7532738",
"0.7509236",
"0.745987",
"0.7436494",
"0.7425089",
"0.74161136",
"0.7415337",
"0.7407006",
"0.74038106",
"0.7396205",
"0.7342415",... | 0.79972094 | 3 |
Get DayNumber of learning contents of today | def WgC8(YKHO, axoR, QC0s):
s2Mh = qcWV.strptime(axoR, '%Y-%m-%d %H:%M:%S')
ALw6 = int((QC0s - s2Mh).days) + 1
return ALw6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CjKC(YKHO):\n return 0",
"def CjKC(YKHO):\n return 0",
"def CjKC(YKHO) -> int:\n return qe4Y.get(YKHO, 'day')",
"def CjKC(YKHO) -> int:\n return YKHO._day",
"def JEuV() -> int:\n return qcWV.now().day",
"def F4g0(YKHO):\n return 1",
"def CjKC(YKHO):\n return YKHO._day",
"def ... | [
"0.7798329",
"0.7798329",
"0.7489059",
"0.71689075",
"0.7120513",
"0.6802395",
"0.66543585",
"0.66543585",
"0.66543585",
"0.66440374",
"0.6641695",
"0.66215473",
"0.6617596",
"0.6599652",
"0.65666425",
"0.6525604",
"0.65029633",
"0.6400517",
"0.6384666",
"0.6381159",
"0.63740... | 0.6959223 | 5 |
Return instance with empty route table | def FIMM(YKHO) -> None:
YKHO._route_table = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.routingTable = dict()",
"def kwsU(YKHO) -> 'Route':\n pass",
"def Ywqg(YKHO):\n i3ak = YKHO._chain()\n i3ak.query.set_empty()\n return i3ak",
"def oZaD(YKHO) -> h8nf['outputs.RouteTableResponse']:\n return qe4Y.get(YKHO, 'route_table')",
"def CY7_() -> wOed:\n yi... | [
"0.65733296",
"0.5729816",
"0.5729083",
"0.56232995",
"0.559553",
"0.5592199",
"0.5582291",
"0.5438003",
"0.5402465",
"0.53540665",
"0.5324479",
"0.532169",
"0.53139406",
"0.5310441",
"0.52688175",
"0.5248669",
"0.5230781",
"0.5230781",
"0.52281135",
"0.5202834",
"0.5201653",... | 0.6245626 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
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.7961088",
"0.7961088",
"0.79433626",
"0.79303336",
"0.7926563",
"0.7897525",
"0.78826123",
"0.78826123",
"0.78806067",
"0.7872423",
"0.7868354",
"0.78668815",
"0.7825702",
"0.7819993",
"0.78162885",
"0.78078854",
"0.78068... | 0.79670393 | 33 |
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.84560555",
"0.83913696",
"0.8143685",
"0.81403786",
"0.8131871",
"0.8093231",
"0.80915105",
"0.80915105",
"0.80915105",
"0.8084564",
"0.8084564",
"0.8075547",
"0.8075547",
"0.8065006"
] | 0.0 | -1 |
Convert iterator to tuple consuming iterator. Infinite operators do not terminate. | def tuple(YKHO) -> tuple:
return tuple(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DwDi(oHE7: Iterator[T], UHFx: int) -> tuple[list[Kt_s], bDy6[Kt_s]]:\n U5bT = []\n for bGrB in range(UHFx):\n try:\n U5bT.append(next(oHE7))\n except StopIteration:\n break\n return (U5bT, eNCK(U5bT, oHE7))",
"def AHAi(YKHO) -> tuple:\n vC9B = list()\n u54L ... | [
"0.67213917",
"0.6246168",
"0.6223528",
"0.61159706",
"0.6114643",
"0.5974625",
"0.5889041",
"0.587703",
"0.5868912",
"0.5861463",
"0.5847689",
"0.5846035",
"0.58127433",
"0.58053035",
"0.5778345",
"0.57466847",
"0.5736377",
"0.57002926",
"0.5660141",
"0.5630925",
"0.56304145... | 0.51493484 | 79 |
Convert iterator to tuple consuming iterator. Infinite operators do not terminate. | def set(YKHO) -> set:
return set(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DwDi(oHE7: Iterator[T], UHFx: int) -> tuple[list[Kt_s], bDy6[Kt_s]]:\n U5bT = []\n for bGrB in range(UHFx):\n try:\n U5bT.append(next(oHE7))\n except StopIteration:\n break\n return (U5bT, eNCK(U5bT, oHE7))",
"def AHAi(YKHO) -> tuple:\n vC9B = list()\n u54L ... | [
"0.67213917",
"0.6246168",
"0.6223528",
"0.61159706",
"0.6114643",
"0.5974625",
"0.5889041",
"0.587703",
"0.5868912",
"0.5861463",
"0.5847689",
"0.5846035",
"0.58127433",
"0.58053035",
"0.5778345",
"0.57466847",
"0.5736377",
"0.57002926",
"0.5660141",
"0.5630925",
"0.56304145... | 0.0 | -1 |
Convert iterator to tuple consuming iterator. Infinite operators do not terminate. | def frozenset(YKHO) -> frozenset:
return frozenset(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DwDi(oHE7: Iterator[T], UHFx: int) -> tuple[list[Kt_s], bDy6[Kt_s]]:\n U5bT = []\n for bGrB in range(UHFx):\n try:\n U5bT.append(next(oHE7))\n except StopIteration:\n break\n return (U5bT, eNCK(U5bT, oHE7))",
"def AHAi(YKHO) -> tuple:\n vC9B = list()\n u54L ... | [
"0.67213917",
"0.6246168",
"0.6223528",
"0.61159706",
"0.6114643",
"0.5974625",
"0.5889041",
"0.587703",
"0.5868912",
"0.5861463",
"0.5847689",
"0.5846035",
"0.58127433",
"0.58053035",
"0.5778345",
"0.57466847",
"0.5736377",
"0.57002926",
"0.5660141",
"0.5630925",
"0.56304145... | 0.0 | -1 |
Convert iterator to string consuming iterator and concatenating elements. Infinite operators do not terminate. | def str(YKHO) -> str:
return ''.join(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zdv1(OxJJ) -> str:\n return str([str(YRbF) for YRbF in OxJJ])",
"def gzes(YKHO, OxJJ) -> FgBH:\n pass",
"def Vs4Q(YKHO):\n jvSB = YKHO._head\n while jvSB is not None:\n yield str(jvSB.value)\n jvSB = jvSB.next",
"def McZQ(_vrJ, aIUR):\n return ('stringiter', eNCK(*tuple((z1Rg... | [
"0.6877523",
"0.6295069",
"0.62733",
"0.62333494",
"0.6108198",
"0.595061",
"0.5861102",
"0.579971",
"0.57859546",
"0.5760205",
"0.5671514",
"0.5637667",
"0.5631004",
"0.56074494",
"0.5573592",
"0.55373716",
"0.5528665",
"0.55286384",
"0.55237156",
"0.5516453",
"0.54973495",
... | 0.0 | -1 |
Return a copy of iterator. Consuming the copy do not consume the original iterator. Internally, this method uses itertools.tee to perform the copy. If you known that the iterator will be consumed, it is faster and more memory efficient to convert it to a list and produce multiple iterators. | def jth9(YKHO) -> 'Iter':
YKHO._iterator, Elif = Hs6x.tee(YKHO._iterator, 2)
return iNkJ(Elif, YKHO._size_hint) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lJzH(vGaq):\n next(jth9.copy(vGaq))",
"def LHwl(YKHO):\n return dwVd(YKHO.stream)",
"def jth9(YKHO):\n return _VfD.SwigPyIterator_copy(YKHO)",
"def i3ak(YKHO):\n return type(YKHO)(iterator=YKHO)",
"def jth9(YKHO):\n return hPFK.SwigPyIterator_copy(YKHO)",
"def jth9(YKHO):\n return Z... | [
"0.72656935",
"0.68923855",
"0.6761833",
"0.6761548",
"0.63712066",
"0.63046026",
"0.6209446",
"0.61299926",
"0.5897998",
"0.58560836",
"0.57955503",
"0.57805204",
"0.5762725",
"0.57585883",
"0.575578",
"0.57505137",
"0.5748371",
"0.57342494",
"0.568583",
"0.5684148",
"0.5663... | 0.7977475 | 0 |
Split iterator into n additional copies. The copy method is simply an alias to iter.tee(1)[0] | def y54_(YKHO, exwG=1) -> AzJI['Iter', ...]:
YKHO._iterator, *wOmD = Hs6x.tee(YKHO._iterator, exwG + 1)
exwG = YKHO._size_hint
return tuple((iNkJ(WhY1, exwG) for WhY1 in wOmD)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UN_7(oHE7, exwG=None):\n IrPK = Hs6x.tee(oHE7, exwG)\n yvT9 = list()\n yvT9.append((KCHu[0] for KCHu in IrPK[0]))\n yvT9.append((KCHu[1] for KCHu in IrPK[1]))\n yvT9.append((KCHu[2] for KCHu in IrPK[2]))\n IrPK = yvT9\n return IrPK",
"def rWu0(wOb_, exwG=None):\n IrPK = list(map(aC7w,... | [
"0.75784266",
"0.7021175",
"0.68646735",
"0.67921853",
"0.67796403",
"0.668581",
"0.668581",
"0.66818815",
"0.66728866",
"0.66728866",
"0.6652125",
"0.6647717",
"0.6629733",
"0.6627989",
"0.6616667",
"0.6611353",
"0.66104007",
"0.6602548",
"0.6597106",
"0.65915716",
"0.655782... | 0.6903771 | 2 |
Peek the first n elements without consuming the iterator. | def T7C_(YKHO, exwG: int) -> AzJI:
nPrm = tuple(Hs6x.islice(YKHO._iterator, exwG))
YKHO._iterator = Hs6x.chain(nPrm, YKHO._iterator)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _iMd(OxJJ, exwG):\n return list(Hs6x.islice(OxJJ, exwG))",
"def _iMd(YKHO, exwG):\n return x1iM(uehb(YKHO, exwG))",
"def _iMd(exwG, OxJJ):\n return list(Hs6x.islice(OxJJ, exwG))",
"def _iMd(exwG, OxJJ):\n return list(Hs6x.islice(OxJJ, exwG))",
"def oWEq(N5Pj, exwG):\n\n def NImq():\n ... | [
"0.7319678",
"0.7244791",
"0.7181097",
"0.7181097",
"0.71591604",
"0.71557003",
"0.7149305",
"0.7149305",
"0.709483",
"0.7090996",
"0.7090393",
"0.7042699",
"0.70163965",
"0.7016073",
"0.70048064",
"0.6987776",
"0.6971278",
"0.6952081",
"0.6891563",
"0.68764496",
"0.6714728",... | 0.75589246 | 0 |
returns x,y,z coordinates for a random point on the top face of this BoxWorld. Note that the x,y position could lie on the edge of the topface So could hardcode each side... or figure out some more general way | def yJFN(YKHO):
epBp = YKHO.upper_vertex[2] - YKHO.offset
AVzD, Gxru = YKHO._shrink_range_by_padding(YKHO._x_range())
oVwS, fdAb = YKHO._shrink_range_by_padding(YKHO._y_range())
WKvO = tuKI.uniform(AVzD, Gxru)
LVAh = tuKI.uniform(oVwS, fdAb)
return (WKvO, LVAh, epBp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G16P(YKHO):\n LVAh = YKHO.lower_vertex[1] + YKHO.offset\n AVzD, Gxru = YKHO._shrink_range_by_padding(YKHO._x_range())\n PGbv, s1Ia = YKHO._shrink_range_by_padding(YKHO._z_range())\n WKvO = tuKI.uniform(AVzD, Gxru)\n epBp = tuKI.uniform(PGbv, s1Ia)\n return (WKvO, LVAh, epBp)",
"def ysh0():\... | [
"0.7753852",
"0.70544726",
"0.694856",
"0.68321854",
"0.66540754",
"0.6548021",
"0.64968663",
"0.6435214",
"0.64236414",
"0.64184046",
"0.6413016",
"0.6374515",
"0.6368178",
"0.6367819",
"0.63565135",
"0.63506675",
"0.63060147",
"0.626413",
"0.62516063",
"0.62347925",
"0.6223... | 0.8272292 | 0 |
return true if particle is inside world, not including boundary return false otherwise | def hAdT(YKHO, il4J):
return YKHO.in_box_bounds(il4J.position) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def joWu(YKHO, il4J):\n J1b4, CYjz = (YKHO.radius, il4J.radius)\n o4D3, ajwV = (YKHO.position, il4J.position)\n CG54 = ajwV - o4D3\n CkYf = oyIN.linalg.norm(CG54)\n if CkYf - (J1b4 + CYjz) * 1.1 < 0:\n return True\n else:\n return False",
"def xxuI(YKHO):\n YZBp, Cem9 = YKHO.cr... | [
"0.67653185",
"0.66510534",
"0.65469086",
"0.65294206",
"0.6528931",
"0.6470833",
"0.636595",
"0.63649243",
"0.63321924",
"0.63179636",
"0.62686884",
"0.6250902",
"0.6248409",
"0.6241183",
"0.6239418",
"0.62240016",
"0.620523",
"0.61916804",
"0.61729515",
"0.6151877",
"0.6145... | 0.74749047 | 0 |
return true if test_vec (position) is inside the rectangular box defined by lower and upper vertex note if the tes_vec lies exaclty on the box boundary this returns False | def QLqK(YKHO, ZVwF):
UDcI = oyIN.greater(ZVwF, YKHO.lower_vertex).all()
hwAz = oyIN.greater(YKHO.upper_vertex, ZVwF).all()
return UDcI and hwAz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vX_r(jNOo, FlUN):\n if FlUN[0][0] < jNOo[0] < FlUN[1][0] and FlUN[1][1] < jNOo[1] < FlUN[0][1]:\n return True\n return False",
"def vX_r(jNOo, FlUN):\n if FlUN[0][0] < jNOo[0] < FlUN[1][0] and FlUN[1][1] < jNOo[1] < FlUN[0][1]:\n return True\n return False",
"def eVmN(AU8u: tuple,... | [
"0.71500015",
"0.7109482",
"0.6874244",
"0.6803979",
"0.6774042",
"0.66210306",
"0.6605447",
"0.65268016",
"0.6501898",
"0.64960843",
"0.64061993",
"0.63766164",
"0.6372194",
"0.6361059",
"0.63103426",
"0.62946266",
"0.6291716",
"0.6268863",
"0.6254483",
"0.6241384",
"0.61883... | 0.7877781 | 0 |
Loop through a persons legs, creating a geopandas GeoDataFrame defining travel for plotting. | def IVzA(a70H, tRtI=None, g2tX=None):
jQ3Z = rLdf.DataFrame()
for MRRk in a70H.legs:
if MRRk.start_location.loc is None or MRRk.end_location.loc is None:
raise AttributeError('To create a geopandas.DataFrame you need specific locations. Make sure Legs haveloc attribute defined with a shapely... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MJkQ(YKHO, bOBl):\n KWmh = []\n with k8wH.progressbar(bOBl.iterrows(), label='Pulling site plans and geographic title data', length=len(bOBl)) as Csk6:\n for d6pt, rdlD in Csk6:\n KWmh.append(YKHO.map_property(rdlD['linc']))\n hvrl = quUU.GeoSeries([PvyL(Bc7X) for Bc7X in KWmh], inde... | [
"0.59152794",
"0.5809195",
"0.5771426",
"0.5729179",
"0.57111984",
"0.56684035",
"0.56364685",
"0.55500686",
"0.55306983",
"0.5511304",
"0.5481631",
"0.5470723",
"0.54607356",
"0.54538083",
"0.5450142",
"0.5364091",
"0.53513706",
"0.53503865",
"0.53410184",
"0.5319222",
"0.52... | 0.68375707 | 0 |
Return dictionary version of this TraceElement. | def _fYl(YKHO) -> dict[str, ImMB]:
Aofo: dict[str, ImMB] = {'path': YKHO.path, 'timestamp': YKHO._timestamp}
if YKHO._child_key is not None:
zrIJ, bGrB, ht7m = YKHO._child_key.partition('.')
Aofo['child_id'] = {'domain': zrIJ, 'item_id': ht7m, 'run_id': str(YKHO._child_run_id)}
if YKHO._vari... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lKKu(YKHO):\n return hkS8.asdict(YKHO)",
"def _fYl(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return YKHO.__dict__",
"def dict(YKHO):\n return Y... | [
"0.7330137",
"0.7227759",
"0.72126085",
"0.72126085",
"0.72126085",
"0.72126085",
"0.72126085",
"0.72126085",
"0.72126085",
"0.7182175",
"0.7139755",
"0.7124223",
"0.71171707",
"0.71171707",
"0.71171707",
"0.71171707",
"0.71171707",
"0.71171707",
"0.71096116",
"0.7049303",
"0... | 0.0 | -1 |
Set id of the current trace. | def ndBf(nS60: tuple[str, str]) -> None:
A6Pf.set(nS60) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nS60(YKHO, nS60):\n YKHO._trace_id = nS60",
"def nS60(YKHO, nS60):\n YKHO._trace_id = nS60",
"def V_9M(YKHO, id):\n YKHO.id = id\n print('self id = ' + str(YKHO.id))",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.d... | [
"0.79803056",
"0.79803056",
"0.78365254",
"0.7786556",
"0.7663365",
"0.7644304",
"0.74390364",
"0.7406895",
"0.7386496",
"0.7386496",
"0.7386496",
"0.7386496",
"0.7386496",
"0.7386496",
"0.7386496",
"0.7386496",
"0.7386496",
"0.7386496",
"0.7386496",
"0.7386496",
"0.73657537"... | 0.77529997 | 4 |
Get id if the current trace. | def OuOm() -> tuple[str, str] | None:
return A6Pf.get() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nS60(YKHO) -> str:\n return YKHO._trace_id",
"def cybj(YKHO):\n id = YKHO.ids[-1]\n if id is None:\n raise KeyError()\n return id",
"def dB3i(YKHO):\n return YKHO.id",
"def UVlm(YKHO):\n return YKHO.__id",
"def byFZ():\n nS60 = ecBp()\n return nS60.parent_id",
"def yHil... | [
"0.8014743",
"0.74045295",
"0.73533785",
"0.70272356",
"0.70003533",
"0.69937176",
"0.6979188",
"0.69667906",
"0.69667906",
"0.6963296",
"0.6917849",
"0.6878042",
"0.6862111",
"0.6860533",
"0.6860533",
"0.6853552",
"0.6827013",
"0.680593",
"0.6800737",
"0.6795696",
"0.6795463... | 0.0 | -1 |
Returns a POSITIVE value correlated with self affinity (e.g. hairpin affinity) | def Qpxv(YKHO, aWuw):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWXx(YKHO):\n return YKHO.affinity",
"def srs8(YKHO):\n jzdc, Z9rn, Csk6, Fg_i = YKHO.to_ccw()\n EBgd, hbUd = (jzdc + Fg_i, Z9rn + Csk6)\n HpuQ, BzON = (jzdc + Z9rn, Fg_i + Csk6)\n exwG = EBgd + hbUd\n if exwG == 0:\n return oyIN.nan\n elif jzdc == exwG or Csk6 == exwG:\n r... | [
"0.6526385",
"0.6048305",
"0.6011742",
"0.5867784",
"0.58175176",
"0.5807887",
"0.56873167",
"0.5636081",
"0.56255007",
"0.5620146",
"0.5588096",
"0.5567723",
"0.55443287",
"0.551946",
"0.5496809",
"0.5492681",
"0.54883826",
"0.5459819",
"0.54476845",
"0.5446598",
"0.5439716"... | 0.62203825 | 1 |
return the first index of item in array or None if item is not found | def TrX4(qw7D, ZfUD):
return Ngua(qw7D, ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KWqh(qw7D, ZfUD):\n qJWj = oyIN.where(qw7D == ZfUD)\n if len(qJWj) == 0:\n raise ValueError('{0} not found in array'.format(ZfUD))\n return qJWj[0][0]",
"def Zgjh(ezWE, wEf2):\n if wEf2 is not None:\n return XTiz.searchsorted(ezWE, wEf2)\n else:\n return wEf2",
"def tGyG... | [
"0.7654498",
"0.76485795",
"0.73254657",
"0.7152995",
"0.70068246",
"0.6965024",
"0.6964481",
"0.6916574",
"0.6872765",
"0.6827316",
"0.67693734",
"0.6750015",
"0.66990155",
"0.668622",
"0.66723377",
"0.6657315",
"0.66358805",
"0.66342586",
"0.661365",
"0.6607807",
"0.6569612... | 0.60730076 | 59 |
return the index of item in sorted array or None if item is not found | def jUbz(qw7D, ZfUD):
return Vrw5(qw7D, ZfUD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zgjh(ezWE, wEf2):\n if wEf2 is not None:\n return XTiz.searchsorted(ezWE, wEf2)\n else:\n return wEf2",
"def tGyG(ezWE):\n for H5ew, BWXx in enumerate(ezWE):\n if BWXx == H5ew:\n return BWXx\n return -1",
"def jUbz(LihS: int, ezWE: Sequence) -> h8nf[int]:\n if... | [
"0.79116553",
"0.7231691",
"0.70945144",
"0.70503265",
"0.702492",
"0.7014106",
"0.6975659",
"0.693756",
"0.69133765",
"0.69059515",
"0.688041",
"0.6863463",
"0.6828841",
"0.6823668",
"0.676312",
"0.67249036",
"0.6687773",
"0.66777045",
"0.66451496",
"0.65669006",
"0.6558889"... | 0.59163046 | 91 |
Delete word from document/text which are exceptions > word and ngrams, e.g., good morning (for sentiment analysis). | def badr(YKHO, C13M):
for yzQ0 in YKHO.words_and_ngrams_exceptions:
C13M = ZbWC.sub(yzQ0, '', C13M)
return C13M | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w8GG(YKHO, d6pt, WJoa):\n for rQ_S in MFGB:\n WJoa = WJoa.replace(rQ_S, llWo)\n for yzQ0 in set(WJoa.split()):\n yzQ0 = yzQ0.strip()\n if YKHO.word_dict_contains(yzQ0) and yzQ0 not in j5tu + [llWo, buv7]:\n if str(d6pt) in YKHO.get_indexes_for_word(yzQ0):\n ... | [
"0.68724984",
"0.68354917",
"0.6804807",
"0.6611424",
"0.6542991",
"0.6523532",
"0.6520232",
"0.6468677",
"0.6457957",
"0.6452957",
"0.6408865",
"0.64012027",
"0.63989145",
"0.63737524",
"0.63294595",
"0.63109434",
"0.6289858",
"0.62712455",
"0.62269074",
"0.62057954",
"0.619... | 0.80366737 | 0 |
Delete word tokens from token list. | def g8pp(YKHO, bImP=None, Rhv4=None):
if Rhv4 is not None or (Rhv4 is not None and bImP is not None):
aPPK = []
for yAmx in Rhv4:
aPPK.append([GIN8 for GIN8 in yAmx if GIN8 not in YKHO.stop_words])
return aPPK
elif bImP is not None:
return [GIN8 for GIN8 in bImP if GI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wUOz(YKHO, V22M=None):\n if V22M is None:\n V22M = YKHO.stopwords\n YKHO.__corpora = [finE(' ({0}) '.format('|'.join(V22M)), ' ', vIwR) for vIwR in YKHO.__corpora]",
"def RX3T(list, XbjW):\n for GIN8 in XbjW:\n list.delete(GIN8)",
"def aUcs(s2mk):\n hwHU = set(di0c.words('english'... | [
"0.7096367",
"0.69165164",
"0.6830647",
"0.68254703",
"0.6766411",
"0.66559064",
"0.6621373",
"0.6612332",
"0.6584032",
"0.65676814",
"0.6552788",
"0.6535444",
"0.6535132",
"0.6524928",
"0.6499072",
"0.6463791",
"0.64597",
"0.6448889",
"0.64395803",
"0.6433568",
"0.6427211",
... | 0.0 | -1 |
Returns document with Parts of Speech tags in a given text | def QzCH(YKHO, eJSn):
return [(eOtH.text, eOtH.pos_) for eOtH in YKHO.parser(eJSn)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q4Og(l5Ny):\n ycBG = Dhdw.pos_tag(l5Ny)\n return [GIN8 for GIN8, TZ9E in ycBG if TZ9E == 'NN' or TZ9E == 'NNS' or TZ9E == 'NNP' or (TZ9E == 'NNPS')]",
"def P5zn(Emd4, l5Ny: str) -> x1iM[x1iM[AzJI[str, str, str]]]:\n Rhv4 = Emd4.split_sentences(l5Ny)\n return [[(eOtH.text, eOtH.tag_, eOtH.lemma_) ... | [
"0.73714256",
"0.68547326",
"0.6704113",
"0.60886097",
"0.6041821",
"0.60402524",
"0.60180575",
"0.59991455",
"0.5969165",
"0.59427476",
"0.5871523",
"0.5814639",
"0.5789967",
"0.5773782",
"0.5743357",
"0.57129043",
"0.57118714",
"0.567669",
"0.5629352",
"0.5622485",
"0.56064... | 0.6078136 | 4 |
Returns the native representation of a location. Parameter | def UpuU(YKHO, object):
MkWy = dxKq(object.measurements.all(), many=True, context=YKHO.context)
return {'type': 'Feature', 'geometry': qQXR.loads(object.geometry.geojson), 'id': object.id, 'name': object.name, 'created': str(object.created), 'properties': object.properties, 'measurements': MkWy.data} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeZ1(Rci7):\n jz6R, QnmL = (pWiw(Rci7, 'Longitude'), pWiw(Rci7, 'Latitude'))\n try:\n if QnmL is not None and jz6R is not None:\n return 'POINT(' + str(float(jz6R)) + ', ' + str(float(QnmL)) + ')'\n return None\n except ValueError:\n raise ValueError(f\"Invalid Latitude... | [
"0.67817235",
"0.6594787",
"0.6380633",
"0.6380633",
"0.6380633",
"0.6339287",
"0.62203634",
"0.62094927",
"0.62094927",
"0.62094927",
"0.62094927",
"0.62094927",
"0.62094927",
"0.62094927",
"0.62094927",
"0.62094927",
"0.62094927",
"0.62094927",
"0.62094927",
"0.62094927",
"... | 0.0 | -1 |
Returns the distance between two coordinate objects in km. | def s7yO(YKHO, Elif):
A3Vt = 6373.0
RYq9 = Y_1E(YKHO.lat)
Ua8n = Y_1E(YKHO.lon)
KmDV = Y_1E(Elif.lat)
v3DF = Y_1E(Elif.lon)
H91H = v3DF - Ua8n
n_9K = KmDV - RYq9
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(RYq9) * YhSR(KmDV) * YUNn(H91H / 2) ** 2
Z9rn = 2 * vwZf(PZyS(jzdc), PZyS(1 - jzdc))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Sbn(mAYH, pks6):\n return CgaZ(mAYH, pks6).meters",
"def Ayfi(jzdc, Fg_i):\n return CgaZ((float(jzdc.longitude), float(jzdc.latitude)), (float(Fg_i.longitude), float(Fg_i.latitude))).km",
"def Ayfi(YKHO, bQpE, V6Wq):\n return oyIN.sqrt(oyIN.sum((oyIN.array(bQpE) - oyIN.array(V6Wq)) ** 2))",
"de... | [
"0.8051288",
"0.79348004",
"0.7788026",
"0.77765715",
"0.7691137",
"0.76901793",
"0.7650926",
"0.7577333",
"0.7540705",
"0.75210804",
"0.7493669",
"0.74866456",
"0.7473405",
"0.745904",
"0.7451204",
"0.7446073",
"0.7441101",
"0.740201",
"0.73963153",
"0.73922384",
"0.73879385... | 0.7292985 | 33 |
Checks if n is a likely prime | def T1qg(exwG):
if exwG in r9jE.LOW_PRIMES:
return True
for ffYW in r9jE.LOW_PRIMES:
if exwG % ffYW == 0:
return False
if exwG == 2:
return True
if exwG % 2 == 0:
return False
KCHu = 0
Csk6 = exwG - 1
while Csk6 % 2 == 0:
Csk6 //= 2
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1qg(exwG):\n return kU5Q(exwG)",
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG=936):\n if exwG < 3:\n return False\n for YRbF in range(2, exwG):\n if exwG % YRbF == 0:\n return False\n return True",
"def FBNJ(exw... | [
"0.86100894",
"0.8549585",
"0.8497745",
"0.8327665",
"0.83145165",
"0.82603663",
"0.8257912",
"0.8223411",
"0.8163759",
"0.81603",
"0.81514114",
"0.81469554",
"0.8141185",
"0.81365263",
"0.81346416",
"0.8133244",
"0.8131642",
"0.8128567",
"0.81272894",
"0.81272227",
"0.811681... | 0.7810433 | 65 |
Retrieves a list of servers that are one network hop away from a specified server. | def nrKd(TPjw=None, hFJs=None, hsv8=None, NM2x=None, SZ0L=None):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBYc(YKHO) -> x1iM[NnkB]:\n pass",
"def W55S(YKHO, iKNL):\n YKHO.obstacle_list = []\n for d6pt, U6D_ in enumerate(iKNL):\n if U6D_ > 0:\n YKHO.obstacle_list.append(d6pt)\n return YKHO.obstacle_list",
"def xbgO(YKHO, Q6kx):\n A_IW = YKHO.get_neighbors()\n return list(set(... | [
"0.6096589",
"0.539442",
"0.53565305",
"0.5214673",
"0.51836854",
"0.51060176",
"0.5105207",
"0.5073576",
"0.50621295",
"0.5012144",
"0.49895746",
"0.4980681",
"0.49637452",
"0.49430192",
"0.49276602",
"0.48799416",
"0.487861",
"0.4858674",
"0.48568508",
"0.4854281",
"0.48425... | 0.5057142 | 9 |
OnlyFans message and post object A post is just a message on a profile with different options made available. | def FIMM(YKHO):
YKHO.text = None
YKHO.files = []
YKHO.keywords = []
YKHO.performers = []
YKHO.hasPerformers = False
YKHO.price = None
YKHO.users = []
YKHO.expiration = None
YKHO.poll = None
YKHO.schedule = None
YKHO.gotten = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aIlr(m8z6):\n return True",
"def NHf7(YKHO, CBIr):\n if not CBIr.is_active or CBIr.is_anonymous():\n return False\n vmMD = YKHO.check_membership(CBIr)\n if (YKHO.type != 'O' or YKHO.post_membership_required or YKHO.post_admin_required) and (vmMD is None or vmMD.is_banned() or vmMD.is_left(... | [
"0.6294471",
"0.6096382",
"0.57876694",
"0.5637613",
"0.54932237",
"0.5444871",
"0.54138577",
"0.5391253",
"0.5391253",
"0.5391253",
"0.53675765",
"0.534802",
"0.53474534",
"0.5330138",
"0.5319291",
"0.53144807",
"0.5302794",
"0.52920157",
"0.52882993",
"0.526606",
"0.5254162... | 0.0 | -1 |
Gets the expiration value if not none else sets it from args or prompts. Returns int The expiration as an int | def QpSU(YKHO):
if str(YKHO.expiration) == 'unset':
return None
if YKHO.expiration:
return YKHO.expiration
yxS0 = hp1l.get_expiration() or None
if yxS0:
YKHO.expiration = yxS0
return yxS0
if not hp1l.prompt('expiration'):
YKHO.expiration = 'unset'
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yapq(YKHO):\n CH7A = YKHO.ident.w3.eth.blockNumber\n FPP6 = YKHO._expiration_str_to_blocks(YKHO.args.expiration, CH7A)\n if FPP6 > CH7A + 1036800 and (not YKHO.args.force):\n Csk6 = (FPP6 - CH7A) // (4 * 60 * 24)\n raise Exception('You try to set expiration time too far in the future: ap... | [
"0.7221468",
"0.6600862",
"0.6535",
"0.6421469",
"0.6364731",
"0.6276764",
"0.6257086",
"0.6118342",
"0.59883857",
"0.59631664",
"0.587537",
"0.587537",
"0.5874246",
"0.5874246",
"0.5853365",
"0.5833243",
"0.5831946",
"0.58008593",
"0.57944626",
"0.5755136",
"0.57501376",
"... | 0.8165807 | 0 |
By default just the __dict__ object, but it can be any dict that is used by from_serial() to recreate the object. | def Pt6R(YKHO) -> dict:
return YKHO.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K9mL(YKHO):\n return YKHO.obj.__dict__",
"def W41s(Emd4, YEnM):\n return YEnM.__dict__",
"def dict(YKHO) -> cuzp:\n return super().dict()",
"def dict(YKHO) -> cuzp:\n return super().dict()",
"def lKKu():\n pass",
"def lnqM(object):\n return object.__dict__",
"def _fYl(YKHO) -> dic... | [
"0.7479205",
"0.7342976",
"0.71993434",
"0.71993434",
"0.7120848",
"0.71144575",
"0.7074079",
"0.70686454",
"0.70568293",
"0.70568293",
"0.70568293",
"0.70568293",
"0.70568293",
"0.70568293",
"0.70568293",
"0.7046885",
"0.70070577",
"0.6950686",
"0.6940097",
"0.6905968",
"0.6... | 0.6897759 | 20 |
Returns the list of projects owned by user. | def cxPg(YKHO):
nPrm = YKHO._run(url_path='projects/list')
llaM = nPrm['result'].get('projects', [])
return [YKHO._project_formatter(ZfUD) for ZfUD in llaM] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bDA_(YKHO, uJjO):\n Ylbp = YKHO.conn.cursor().execute('SELECT * FROM projects p JOIN users_projects up \\n ON p.id = up.project_id \\n WHERE owner=? OR up.user_id=?\\n GROUP BY p.id\\n ORDER BY last_update DESC', (uJjO, uJjO))\n return Ylbp.fetchall()",
"def ayXM(CBIr):\n ... | [
"0.8127993",
"0.80589867",
"0.7886394",
"0.7752247",
"0.7542613",
"0.7458167",
"0.73387235",
"0.7320738",
"0.7290209",
"0.7221527",
"0.7211879",
"0.69697744",
"0.6905874",
"0.68395156",
"0.6835008",
"0.6823343",
"0.6793209",
"0.6752021",
"0.6726572",
"0.67107296",
"0.6662894"... | 0.6453762 | 34 |
Tests case with inconsistent relatives list during uploading data to database. In this case application should return code 400 bad request | def Myfn():
with NxUR(P4t4) as x0hE:
geh0 = x0hE.post('/imports', json={'citizens': [{'citizen_id': 1, 'town': 'Москва', 'street': 'Льва Толстого', 'building': '16к7стр5', 'apartment': 7, 'name': 'Иванов Иван Иванович', 'birth_date': '26.12.1986', 'gender': 'male', 'relatives': [2]}, {'citizen_id': 2, 'town... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lUpl(x0hE, R6WO, n__Y, JBvl=400):\n NGN0 = 'invenio_app_ils_relations.docid_relations'\n Nhbj = 'invenio_app_ils_relations.serid_relations'\n for qVG7 in n__Y:\n gHH9 = qVG7['parent_pid']\n Ya4D = qVG7['parent_pid_type']\n PpXF = qVG7['child_pid']\n y8sl = qVG7['child_pid_t... | [
"0.6830475",
"0.63989544",
"0.62755007",
"0.6055775",
"0.604101",
"0.5997165",
"0.5979455",
"0.58839077",
"0.58476835",
"0.57885313",
"0.5781706",
"0.5781285",
"0.5777492",
"0.5714338",
"0.5710533",
"0.56785196",
"0.5676274",
"0.5673572",
"0.5650872",
"0.5636228",
"0.56328315... | 0.70209146 | 0 |
Tests case when citizen_id is duplicated Application should return 400 bad request | def Cq__():
V4hZ = _qLf(s4mh)
with NxUR(P4t4) as x0hE:
geh0 = x0hE.post('/imports', json={'citizens': [V4hZ, V4hZ]})
assert geh0.status_code == 400 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jzeS(YKHO):\n ziSX = list()\n for gHwG in YKHO.citizen_datas:\n TBsA = dict(zip(YKHO.citizen_fields, gHwG))\n a70H = YmYb.objects.create(**TBsA)\n bD7m = '{0}{1}/'.format(YKHO.url, a70H.id)\n _hkX = YKHO.client.get(bD7m)\n assert _hkX.status_code == qed_.OK, 'GET: {url}... | [
"0.6562904",
"0.61345273",
"0.6127231",
"0.6095707",
"0.6037455",
"0.60111654",
"0.59925836",
"0.5986262",
"0.597864",
"0.59755456",
"0.5970561",
"0.5951405",
"0.592065",
"0.59175",
"0.58882916",
"0.5881769",
"0.5866906",
"0.58504623",
"0.58494836",
"0.5817049",
"0.58101296",... | 0.76026064 | 0 |
Tests case with negative apartment data to import Application should return 400 bad request | def L5uz():
ZhDW = _qLf(PI__)
ZhDW['apartment'] = -7
with NxUR(P4t4) as x0hE:
Tv70 = x0hE.post('/imports', json={'citizens': [ZhDW]})
assert Tv70.status_code == 400 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e4S6(YKHO):\n YKHO._error_test(ODk9.HTTPBadRequest)",
"def BZZY(YKHO):\n YKHO.register()\n Ylbp = YKHO.app.get('/app/noapp/import', follow_redirects=True)\n assert Ylbp.status == '404 NOT FOUND', Ylbp.status\n Ylbp = YKHO.app.post('/app/noapp/import', follow_redirects=True)\n assert Ylbp.st... | [
"0.66912436",
"0.66043574",
"0.651658",
"0.64461005",
"0.6432346",
"0.6391101",
"0.63124573",
"0.62964845",
"0.62365",
"0.62264824",
"0.6182074",
"0.61784625",
"0.6178036",
"0.61773044",
"0.6140831",
"0.61082345",
"0.6084675",
"0.60600036",
"0.6039167",
"0.60385376",
"0.60360... | 0.7032422 | 0 |
Tests case with clear data during uploading citizens Application should return 201 created | def jF_e():
zgbe = _qLf(s4mh)
with NxUR(P4t4) as x0hE:
Tv70 = x0hE.post('/imports', json={'citizens': [zgbe]})
Zjhd = Tv70.json()
assert Tv70.status_code == 201
assert 'data' in Zjhd
assert 'import_id' in Zjhd['data']
assert isinstance(Zjhd['data']['import_id'], i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CW30(YKHO):\n for gHwG in YKHO.citizen_datas:\n TBsA = dict(zip(YKHO.citizen_fields, gHwG))\n _hkX = YKHO.client.post(YKHO.url, data=qQXR.dumps(TBsA), content_type='application/json')\n assert _hkX.status_code == qed_.CREATED, '{url}: Got {error}, Expected {code}'.format(url=YKHO.url, e... | [
"0.70885545",
"0.664109",
"0.65769213",
"0.65382135",
"0.6481995",
"0.64710593",
"0.63751465",
"0.63638794",
"0.6355579",
"0.63371086",
"0.633277",
"0.6318242",
"0.6260361",
"0.62297404",
"0.6228588",
"0.62266564",
"0.6226162",
"0.6212264",
"0.62031895",
"0.61737925",
"0.6154... | 0.61977947 | 19 |
Tests case when citizen has empty name. Application should return 400 bad request | def DWFR():
BbhB = _qLf(s4mh)
BbhB['name'] = ''
with NxUR(P4t4) as x0hE:
Tv70 = x0hE.post('/imports', json={'citizens': [BbhB]})
assert Tv70.status_code == 400 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dVOJ(YKHO):\n QePW = zVa7.get_request('GET', {u'taxon': u'Nosuchtaxonia'})\n WKvO = YKHO.start_request_tests(QePW)\n r8hN = WKvO.json().get(u'message')\n YKHO.assertTrue(WKvO.status_code >= 200)\n YKHO.assertTrue('No Taxon matched\" in \"%s\"' % r8hN)",
"def ff8A(YKHO):\n geh0 = YKHO.client... | [
"0.71808416",
"0.6820732",
"0.6768667",
"0.67415255",
"0.6740986",
"0.6716541",
"0.66805494",
"0.66759586",
"0.6660001",
"0.66271734",
"0.65985286",
"0.65190065",
"0.64537364",
"0.64157885",
"0.6404135",
"0.6398813",
"0.63957465",
"0.6360216",
"0.63522834",
"0.62960654",
"0.6... | 0.7168115 | 1 |
Takes a set of quantities and returns a ND compound model. | def CjFL(*lVKl, rR8k=True):
C3ST = gXOT(lVKl[0])
for D5g7 in lVKl[1:]:
C3ST = C3ST & gXOT(D5g7)
if rR8k:
return C3ST
J8oL = list(range(lVKl[0].ndim)) * len(lVKl)
return FYrf.Mapping(J8oL) | C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rcKE(T0i4):\n zk3X = []\n for ZGE9 in T0i4[agsw]:\n zk3X.append(IJyz(T0i4[agsw], model_name=ZGE9))\n l9Ur = T0i4[xyKY]\n return (iQnM.from_formula(zk3X, l9Ur), l9Ur)",
"def AaEW(mAAC):\n import onnx\n from onnxruntime.quantization import AaEW, quantize_dynamic, QuantType\n S6Fl = ... | [
"0.5617668",
"0.48673904",
"0.48190278",
"0.47939715",
"0.47839302",
"0.47308376",
"0.46767762",
"0.46760845",
"0.46410432",
"0.45981696",
"0.45957872",
"0.45893383",
"0.45665416",
"0.4519607",
"0.44923538",
"0.44730675",
"0.44724914",
"0.4464731",
"0.44638607",
"0.44638607",
... | 0.44171023 | 25 |
Generate the Frame for this LookupTable. | def f4IJ(YKHO):
return zTwE(len(YKHO.table), YKHO.unit, YKHO.names, YKHO.physical_types) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mdUq(YKHO):\n pDTp = YKHO._genFrameData()\n f4IJ = YKHO._genDigiMeshFrame(pDTp)\n return f4IJ",
"def oKXW(YKHO) -> rLdf.DataFrame:\n Kiac = YKHO.base_data_frame[[YKHO.name_col, YKHO.description_col]].reset_index()\n Kiac.columns = ['label_encoder', 'name', 'description']\n return Kiac.set_i... | [
"0.6434752",
"0.6180054",
"0.6155493",
"0.59975594",
"0.5943447",
"0.5767762",
"0.56899947",
"0.5617523",
"0.5417426",
"0.54099184",
"0.5361642",
"0.53606784",
"0.53533196",
"0.5338265",
"0.53322446",
"0.5325618",
"0.5269758",
"0.52665067",
"0.52659786",
"0.5231993",
"0.52211... | 0.7234186 | 0 |
Generate the Frame for this LookupTable. | def f4IJ(YKHO):
Sa_m = YKHO.table
AdfU = tuple((getattr(Sa_m.data, yCnv) for yCnv in Sa_m.data.components))
O6Qk = Sa_m.frame.replicate_without_data()
rYO3 = list((Z9rn.unit for Z9rn in AdfU))
return EzjL.CelestialFrame(reference_frame=O6Qk, unit=rYO3, axes_names=YKHO.names, axis_physical_types=YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f4IJ(YKHO):\n return zTwE(len(YKHO.table), YKHO.unit, YKHO.names, YKHO.physical_types)",
"def mdUq(YKHO):\n pDTp = YKHO._genFrameData()\n f4IJ = YKHO._genDigiMeshFrame(pDTp)\n return f4IJ",
"def oKXW(YKHO) -> rLdf.DataFrame:\n Kiac = YKHO.base_data_frame[[YKHO.name_col, YKHO.description_col]... | [
"0.7234186",
"0.6434752",
"0.6180054",
"0.59975594",
"0.5943447",
"0.5767762",
"0.56899947",
"0.5617523",
"0.5417426",
"0.54099184",
"0.5361642",
"0.53606784",
"0.53533196",
"0.5338265",
"0.53322446",
"0.5325618",
"0.5269758",
"0.52665067",
"0.52659786",
"0.5231993",
"0.52211... | 0.6155493 | 3 |
Generate the Frame for this LookupTable. | def f4IJ(YKHO):
return EzjL.TemporalFrame(YKHO.reference_time, unit=P6bq.s, axes_names=YKHO.names, name='TemporalFrame') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f4IJ(YKHO):\n return zTwE(len(YKHO.table), YKHO.unit, YKHO.names, YKHO.physical_types)",
"def mdUq(YKHO):\n pDTp = YKHO._genFrameData()\n f4IJ = YKHO._genDigiMeshFrame(pDTp)\n return f4IJ",
"def oKXW(YKHO) -> rLdf.DataFrame:\n Kiac = YKHO.base_data_frame[[YKHO.name_col, YKHO.description_col]... | [
"0.7234186",
"0.6434752",
"0.6180054",
"0.6155493",
"0.59975594",
"0.5943447",
"0.5767762",
"0.56899947",
"0.5617523",
"0.5417426",
"0.54099184",
"0.5361642",
"0.53606784",
"0.53533196",
"0.5338265",
"0.53322446",
"0.5325618",
"0.5269758",
"0.52659786",
"0.5231993",
"0.522111... | 0.52665067 | 18 |
Given a path to an image, this function returns the correspondent imagellabel and the probability. | def z3xK(YKHO, iXTm):
N6Z1 = list()
for QMAG in iXTm:
VXjJ = JhmE.get_image_by_path(QMAG, YKHO.target_size)
WKvO = LNo8.img_to_array(VXjJ)
WKvO = oyIN.expand_dims(WKvO, axis=0)
WKvO = YKHO.preprocess_input(WKvO)
with YKHO.graph.as_default():
bySB = YKHO.model_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZgTo(YKHO, pmON):\n QPEh = YKHO.annotations[pmON]\n uGhb = [ZfUD for ZfUD in QPEh if ZfUD['id'] in YKHO.tomato_label_ids]\n return 1 if len(uGhb) > 0 else 0",
"def DeTJ(p4m8):\n rTBW = p4m8.stem\n M9Mk = rTBW + '.txt'\n XEbe = p4m8.parent / M9Mk\n with open(XEbe) as eHNT:\n UXqs =... | [
"0.6711599",
"0.668798",
"0.6571617",
"0.6465738",
"0.6402621",
"0.63812155",
"0.63676625",
"0.6265226",
"0.62385076",
"0.62149966",
"0.62032956",
"0.6181277",
"0.6179898",
"0.6166821",
"0.6116504",
"0.6101865",
"0.60762835",
"0.5992696",
"0.5988719",
"0.5973193",
"0.5969917"... | 0.55545616 | 51 |
Returns index of layer by name | def ceKl(YKHO, lzjZ):
for YRbF, gEmA in enumerate(YKHO.tmx_data.layers):
if gEmA.name == lzjZ:
return YRbF
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _A78(CeQK, lzjZ):\n for d6pt, bD7m in zip(range(len(CeQK.layers)), CeQK.layers):\n if lzjZ in CeQK.layers[d6pt].properties.name:\n pGMM = d6pt\n print('index of feature layer', CeQK.layers[pGMM].properties.name, 'with url of', bD7m, 'is', pGMM)\n return pGMM",
"def FhCg(C3S... | [
"0.7996738",
"0.7802015",
"0.74902654",
"0.7171761",
"0.7109368",
"0.70090896",
"0.695713",
"0.69054514",
"0.68818766",
"0.67920667",
"0.66681933",
"0.6661268",
"0.6636005",
"0.6561659",
"0.6536994",
"0.64992607",
"0.6496359",
"0.6485548",
"0.6478516",
"0.64709496",
"0.646497... | 0.841849 | 0 |
Generate the current time string in the given format. | def ApjM(format='%Y-%m-%d %H:%M:%S.%f %z'):
return qcWV.utcnow().replace(tzinfo=FXGE.utc).strftime(format) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _PtW():\n return F803('%Y_%m_%d_%H_%M_%S_%Z', WPt4())",
"def m7L9() -> str:\n return ITS7.strftime(mxlI)",
"def Bc_l():\n return ITS7.strftime(ix3z)",
"def XKwJ() -> str:\n return qcWV.datetime.now().strftime(TcNi)",
"def jn0M(VPot='%Y%m%d-%H%M%S'):\n P55T = ITS7.strftime(VPot, ITS7.loca... | [
"0.7800666",
"0.7791926",
"0.77246135",
"0.768357",
"0.7666125",
"0.7492711",
"0.74671257",
"0.74315697",
"0.73868525",
"0.73808515",
"0.7360322",
"0.73458177",
"0.7324255",
"0.726497",
"0.7220429",
"0.71909183",
"0.7188707",
"0.7165597",
"0.71552765",
"0.71087134",
"0.709666... | 0.74780095 | 6 |
Delete empty pair of brackets or quotes | def vA7S(tvqc):
NRcB = tvqc.cli.current_buffer
h3Aq = NRcB.document.char_before_cursor
DOuq = NRcB.document.current_char
if any([h3Aq == Fg_i and DOuq == jzdc for Fg_i, jzdc in ['()', '[]', '{}', "''", '""']]):
NRcB.delete(1)
NRcB.delete_before_cursor(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XkfQ(l5Ny):\n return ZbWC.sub('\\\\[[^]]*\\\\]', '', l5Ny)",
"def Fnpe(l5Ny: str) -> str:\n Zoh6 = [('(', ')'), ('[', ']'), ('[', ']'), ('{', '}'), ('<', '>'), (InlJ.lshell, InlJ.rshell), (InlJ.langle, InlJ.rangle), ('`', '`'), (InlJ.lsq, InlJ.rsq), (InlJ.ldq, InlJ.rdq), (\"'\", \"'\"), ('\"', '\"'), (... | [
"0.73116446",
"0.69998604",
"0.69612",
"0.6879773",
"0.6701139",
"0.66006684",
"0.64825934",
"0.6476704",
"0.62560916",
"0.62547684",
"0.6043075",
"0.6022011",
"0.5990816",
"0.5984995",
"0.5984214",
"0.5983669",
"0.5897691",
"0.5893092",
"0.58461803",
"0.58235973",
"0.5821752... | 0.72485125 | 1 |
Constructor that will appropriately initialize a supervised learning object @ In, None @ Out, None | def FIMM(YKHO):
super().__init__()
import sklearn
import sklearn.linear_model
YKHO.model = sklearn.linear_model.LogisticRegression | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, b0Ix=0.1):\n YKHO.learning_rate = b0Ix\n YKHO._b = 0.0\n YKHO._w = None\n YKHO.misclassified_samples = []",
"def FIMM(YKHO, OHMw):\n YKHO.initialLearnRate = OHMw",
"def FIMM(YKHO):\n super().__init__()\n YKHO.learning = True",
"def FIMM(YKHO, aIVN, MKoA, OnWS):\n G9jH.d... | [
"0.7502457",
"0.73741865",
"0.7322712",
"0.7293263",
"0.7251718",
"0.71864325",
"0.7184399",
"0.7160075",
"0.7129084",
"0.7111028",
"0.7106927",
"0.70859164",
"0.70628464",
"0.70461",
"0.7045854",
"0.70244485",
"0.7023777",
"0.70198345",
"0.70055443",
"0.69822884",
"0.6962856... | 0.0 | -1 |
Sets the groups of this IpAddress. Array of network groups. One IP address can belong to zero or more network groups. The idea is that containers can only reach containers with which they share at least one network group. | def moMn(YKHO, moMn):
YKHO._groups = moMn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def moMn(YKHO, moMn):\n if moMn is None:\n raise ValueError('Invalid value for `groups`, must not be `None`')\n YKHO._groups = moMn",
"def moMn(YKHO, moMn):\n YKHO._groups = moMn",
"def moMn(YKHO, moMn):\n YKHO._groups = moMn",
"def moMn(YKHO, moMn):\n YKHO._groups = moMn",
"def moMn(... | [
"0.6820827",
"0.68131316",
"0.68131316",
"0.68131316",
"0.68131316",
"0.6680913",
"0.6052488",
"0.5972752",
"0.5858702",
"0.58459705",
"0.5714285",
"0.56974185",
"0.5652323",
"0.5639126",
"0.56090516",
"0.5597123",
"0.55514175",
"0.5535449",
"0.54975796",
"0.5493158",
"0.5466... | 0.69100964 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
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.80891633",
"0.80891633",
"0.8055254",
"0.7983334",
"0.79617655",
"0.79617655",
"0.79438007",
"0.7931164",
"0.7925355",
"0.7896319",
"0.7882993",
"0.7882993",
"0.7881245",
"0.7871271",
"0.7868767",
"0.78655475",
"0.7826755",
"0.78200424",
"0.7816593",
"0.7808374",
"0.780745... | 0.7967544 | 37 |
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 |
Return the shape of the input layer | def iX1L(YKHO):
return YKHO.network.inputs[YKHO.input_blob].shape | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EsUr(YKHO):\n return YKHO.input_shape",
"def i2AO(YKHO):\n return YKHO._engine.get_input_tensor_shape()",
"def GhuM(YKHO) -> ht2j.Size:\n pass",
"def GhuM(YKHO):\n return YKHO._ipt_shape",
"def iX1L(YKHO):\n return YKHO.__x.shape",
"def gRv2(YKHO):\n if nMvt.BACKEND == 'pytorch':\n ... | [
"0.8402058",
"0.8355697",
"0.8337721",
"0.8325848",
"0.8238402",
"0.7934952",
"0.77886987",
"0.77642214",
"0.77642214",
"0.77642214",
"0.7740415",
"0.76266253",
"0.7602957",
"0.7574955",
"0.7574392",
"0.7574392",
"0.7574392",
"0.752494",
"0.75243163",
"0.7518224",
"0.7465026"... | 0.8525483 | 0 |
Subsamples point and normal images together to make a pointcloud. | def d3jq(or8S, rb7a, KzNL, oU9W, eiLr=10000):
g8qG = oyIN.squeeze(rb7a[or8S, ...] == 0.0)
SGVO = oyIN.logical_not(g8qG)
c932 = KzNL.copy()[or8S, ...]
AdOx = oU9W.copy()[or8S, ...]
TLsV = oyIN.concatenate([c932, AdOx], axis=-1)
TLsV = TLsV[SGVO, :]
TLsV = oyIN.reshape(TLsV, [-1, 6])
oyIN.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XO1H(Rayg, r13y, LTIa, YoVX, i9xb, N4oG, WOVo, QLyp, MSWN, yOrK, XS2Y=True, ktt2='zeros', v8sN=True):\n LTIa = tfp5(LTIa, i9xb, Rayg, reverse=True)\n HlZQ = HaNi(LTIa, YoVX)\n eLxa = HlZQ[:, 0:2] * N4oG\n eLxa -= WOVo\n L0RK, v1UI = ht2j.split(eLxa, 1, dim=1)\n if QLyp:\n goR9, IzcS = ... | [
"0.61468166",
"0.5933107",
"0.5790048",
"0.57663506",
"0.57492685",
"0.56877905",
"0.5617135",
"0.55431855",
"0.5511504",
"0.5507595",
"0.5473116",
"0.5453639",
"0.54291683",
"0.5399812",
"0.5397617",
"0.5396986",
"0.53910935",
"0.5366428",
"0.53335804",
"0.5311184",
"0.53111... | 0.0 | -1 |
The camera space > world space transformations for 3DR2N2's images. | def b2Qp(YKHO):
if not hasattr(YKHO, '_r2n2_cam2world'):
NmYP = []
for YRbF in range(24):
PBIq = UIQX(YKHO.r2n2_cam2v1[YRbF, ...])
nBw1 = UIQX(YKHO.v12occnet)
WN2c = UIQX(YKHO.occnet2gaps)
UlW0 = oyIN.matmul(nBw1, PBIq)
l8l1 = oyIN.matmul(W... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wStH(YKHO):\n o9mH = YKHO.stp_to_camera_transform()\n MmOs = YKHO.object_to_stp_transform()\n RzAt = o9mH.dot(MmOs)\n return RzAt",
"def jPRh(YKHO, XP5J):\n Aofo = YKHO.camPos\n Aofo += XP5J[2] * YKHO.camZ\n Aofo += XP5J[0] * YKHO.camX\n Aofo += XP5J[1] * YKHO.camY\n return Aofo",
... | [
"0.71491575",
"0.68242604",
"0.6652678",
"0.66506696",
"0.66103756",
"0.6593101",
"0.65548307",
"0.6542289",
"0.6486432",
"0.6349775",
"0.6263718",
"0.62477255",
"0.6236834",
"0.6208736",
"0.619022",
"0.61879474",
"0.61247206",
"0.6115837",
"0.6064184",
"0.6055148",
"0.601838... | 0.64209074 | 9 |
Returns config dict for config named name, or None | def VOEG(mWFP):
eHMM = Hy7s.path.join(kEUG, mWFP)
for WKvO in (mWFP, eHMM):
if Hy7s.path.exists(WKvO):
return eJb6.load(open(WKvO))
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(YKHO, mWFP):\n return YKHO.configs[mWFP][0]",
"def aIUm(mWFP):\n return is4C[mWFP]",
"def ccBJ(YKHO, mWFP):\n for GPtr in YKHO._config:\n if mWFP in GPtr:\n return GPtr[mWFP]\n raise AttributeError('%s not found' % mWFP)",
"def ONFV(mWFP):\n o8Kj = AX1r(mWFP)\n if... | [
"0.8112903",
"0.76578987",
"0.7598784",
"0.7595054",
"0.7462654",
"0.74604625",
"0.74595714",
"0.74066675",
"0.7238232",
"0.71924603",
"0.71497434",
"0.7142942",
"0.71370447",
"0.7124198",
"0.7098333",
"0.7031816",
"0.702659",
"0.6936357",
"0.6887363",
"0.6885351",
"0.6850402... | 0.7431031 | 7 |
Gets the image filenames of all supported extensions in path recursively | def Gx3c(pmON):
zWON = ['png', 'PNG', 'jpg', 'JPG', 'jpeg', 'JPEG']
_PsJ = []
for nESp in zWON:
_PsJ.extend(sorted(SC2F.glob(gzes(pmON, '*.' + nESp), recursive=True)))
return _PsJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mbOJ(SXRB: pathlib.Path) -> laHg.List[oAb3.Path]:\n b6H_ = [SC2F.iglob(Hy7s.path.join(SXRB, '*.' + tTpl)) for tTpl in bGfM]\n CEUS = [eHNT for TYyO in b6H_ for eHNT in TYyO]\n return CEUS",
"def cHQw(YKHO, pmON) -> x1iM[str]:\n Byax = []\n for YBcr in YKHO.exts:\n Byax.extend(SC2F.glob(... | [
"0.7354717",
"0.72468555",
"0.72390723",
"0.7143023",
"0.71109056",
"0.70520085",
"0.7011753",
"0.69906175",
"0.69906175",
"0.6946403",
"0.69423187",
"0.6908008",
"0.6879424",
"0.6871302",
"0.6865926",
"0.68629724",
"0.6857112",
"0.6850749",
"0.6830371",
"0.6810504",
"0.68070... | 0.7107039 | 5 |
Test behavior of unknown notification type events. | async def test_unknown_notification(ajET: HomeAssistant, ymGK, Urat, x0hE) -> None:
Q6kx = ymGK
Y72w = zrRO()
Y72w.node = Q6kx
with trZe.raises(TypeError):
Q6kx.emit('notification', {'notification': Y72w})
WPKu = YLsF(ajET, 'zwave_js_notification')
tvqc = QRWf(type='notification', data={... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LR15(YKHO, tvqc):\n pass",
"def jOAH(YKHO, hEKL):\n if hEKL in YKHO.DISALLOWED_NOTIFICATION_EVENTS:\n return False\n else:\n return True",
"def btyG(YKHO, m_u7, gdJL):\n\n def cmgm(WKvO):\n m481 = WKvO['payload']['job']\n if m_u7.job['id'] == m481['id']:\n ... | [
"0.6863927",
"0.62766373",
"0.62369984",
"0.61935943",
"0.61261356",
"0.60875875",
"0.60205805",
"0.6019773",
"0.59766316",
"0.5962833",
"0.58951354",
"0.5840666",
"0.5833325",
"0.5833278",
"0.58042413",
"0.57814574",
"0.5780729",
"0.57481545",
"0.5730766",
"0.5730766",
"0.57... | 0.69076717 | 0 |
Add Vertex one by one in object. | def jSHL(JfhL, Q1Kq):
oJL3 = _Dmh(JfhL)
Ziit = dict()
for d6pt, AU8u in enumerate(oJL3):
Q1Kq.add_node(d6pt)
Ziit[AU8u] = d6pt
return (Q1Kq, Ziit) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, SLBp):\n if isinstance(SLBp, Yegm):\n u6eo = SLBp.name\n YKHO._vertices[u6eo] = SLBp",
"def ohmD(YKHO, H5ew):\n YKHO.vertCount += 1\n etjU = SLBp.Vertex(H5ew)\n YKHO.vertList[H5ew] = etjU\n return etjU",
"def ohmD(YKHO, SLBp):\n raise NotImplementedError",
"def ... | [
"0.81383157",
"0.79978436",
"0.7906561",
"0.78734195",
"0.78322124",
"0.779786",
"0.7768442",
"0.77675927",
"0.7759835",
"0.7745804",
"0.76964444",
"0.767006",
"0.75487536",
"0.75348103",
"0.75240993",
"0.74923956",
"0.74676955",
"0.7458286",
"0.7457176",
"0.7437933",
"0.7429... | 0.0 | -1 |
Assuming self is simplified, determines if it contradicts other. | def jKp1(YKHO, Elif, **B2fa):
if isinstance(Elif, Oc_p):
return oXX5(Elif.contradicts, YKHO, **B2fa)
else:
return YKHO == Oc_p(Elif).simplify(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yodv(YKHO, Elif):\n if YKHO.__class__ is Elif.__class__ and len(YKHO) == len(Elif):\n for jzdc, Fg_i in zip(YKHO, Elif):\n if not jzdc.almost_equals(Fg_i):\n return False\n return True\n else:\n return False",
"def hHld(YKHO, Elif):\n return all([YRbF =... | [
"0.7266841",
"0.72428024",
"0.69000554",
"0.68585575",
"0.6821754",
"0.67874783",
"0.67853856",
"0.6759279",
"0.6752405",
"0.6751537",
"0.67436504",
"0.6735092",
"0.6723788",
"0.66613793",
"0.66499966",
"0.66483843",
"0.6644348",
"0.66192764",
"0.66159",
"0.66139436",
"0.6600... | 0.7468499 | 0 |
Initializing a new MyNeuralNetwork object | def FIMM(YKHO, hUTg, vArt, YDYE='sigmoid', b0Ix=0.1, ojMW='normal', Ep8u=1000, Zbwy=100):
YKHO.layers_sizes = vArt[1:]
YKHO.activation = YDYE
YKHO.learning_rate = b0Ix
YKHO.weight_init = ojMW
YKHO.batch_size = Ep8u
YKHO.num_epochs = Zbwy
YKHO.weights = {}
YKHO.n_layers = len(YKHO.layers_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Zt8E, yB6h=None, MJAh=None, **B2fa):\n assert len(Zt8E) > 1, 'At least one input layer and one output layer is needed'\n uPrp = IT1r.getSizeOfWeightVector(Zt8E)\n if yB6h is None:\n YKHO.weights = oyIN.random.uniform(-1 / oyIN.sqrt(Zt8E[0]), 1 / oyIN.sqrt(Zt8E[0]), uPrp)\n else:\n... | [
"0.7545396",
"0.7426693",
"0.7167557",
"0.7107544",
"0.7096283",
"0.7089189",
"0.708272",
"0.7076714",
"0.7012968",
"0.69739914",
"0.694551",
"0.6927077",
"0.6921911",
"0.6921543",
"0.6916723",
"0.6906071",
"0.6896721",
"0.6888619",
"0.6888153",
"0.6866676",
"0.68417376",
"... | 0.0 | -1 |
Calculating the ReLU activation for a particular layer | def QZir(YKHO, EcVT):
return oyIN.maximum(0, EcVT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bxc4(gEmA):\n return ZylS.nn.relu(gEmA)",
"def tRmQ(YKHO):\n return YKHO.add_layer(tRmQ)",
"def gTYa(YKHO):\n YKHO.assertEqual([0, 0.5], list(fmAV.Relu().output(oyIN.array([-0.5, 0.5]))))\n YKHO.assertEqual([0, 1], list(fmAV.Relu().derivative(oyIN.array([-0.5, 0.5]))))",
"def CKFj(pKvt):\n ... | [
"0.7353521",
"0.7147479",
"0.71449244",
"0.71317196",
"0.71317196",
"0.70889777",
"0.69938266",
"0.69599354",
"0.6939261",
"0.69106865",
"0.69011444",
"0.687028",
"0.687028",
"0.68674093",
"0.67837435",
"0.6782436",
"0.67801505",
"0.6777842",
"0.67647547",
"0.6763368",
"0.675... | 0.602947 | 100 |
Calculating the Sigmoid activation for a particular layer | def m1Hg(YKHO, EcVT):
return 1.0 / (1.0 + oyIN.exp(-EcVT)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d1fz(WKvO):\n return 1.0 / (1 + oyIN.exp(-WKvO))",
"def YDYE(epBp):\n return 1 / (1 + oyIN.exp(-epBp))",
"def m1Hg(EcVT, XcU5, Fg_i):\n sdgB = oyIN.dot(EcVT, XcU5) + Fg_i\n return 1.0 / (1.0 + oyIN.exp(-sdgB))",
"def lifc(YKHO):\n YKHO.value = 1 / (1 + oyIN.e ** (-YKHO.value))",
"def AAD... | [
"0.79400456",
"0.79030704",
"0.76987255",
"0.7669779",
"0.76689607",
"0.7664263",
"0.7664263",
"0.76393104",
"0.7596771",
"0.7568096",
"0.75558746",
"0.75409496",
"0.75298035",
"0.7524496",
"0.7524496",
"0.7524496",
"0.7524496",
"0.7524496",
"0.7524496",
"0.752282",
"0.751700... | 0.0 | -1 |
Calculating the Linear activation for a particular layer | def z8o0(YKHO, EcVT):
return EcVT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b27A(YKHO, vHnr, sIts=None):\n if isinstance(sIts, tuple):\n sIts = sIts[0]\n NArs = sIts[1:]\n if sIts is None:\n sIts = YKHO.activation_func\n if sIts == 'LINEAR':\n return vHnr\n ZHlr = {'RELU': ZylS.nn.relu, 'RELU6': ZylS.nn.relu6, 'ELU': ZylS.nn.elu, 'SIGMOID': ZylS... | [
"0.77767956",
"0.7368473",
"0.73011523",
"0.7298871",
"0.7228388",
"0.71988434",
"0.7141863",
"0.70519197",
"0.70519197",
"0.70368415",
"0.7030007",
"0.702429",
"0.7012038",
"0.7012038",
"0.6989962",
"0.6980219",
"0.69734335",
"0.68947136",
"0.6893372",
"0.6888704",
"0.687637... | 0.0 | -1 |
Calculating the Tanh activation for a particular layer | def madw(YKHO, EcVT):
return (oyIN.exp(EcVT) - oyIN.exp(-EcVT)) / (oyIN.exp(EcVT) + oyIN.exp(-EcVT)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YDYE(MKlR):\n if MKlR > 0:\n return 1\n else:\n return 0",
"def YDYE(WKvO):\n return oyIN.maximum(0, WKvO)",
"def YDYE(epBp):\n return 1 / (1 + oyIN.exp(-epBp))",
"def r6E_(YKHO, epBp):\n if YKHO.__activation == 'sig':\n YDYE = 1 / (1 + oyIN.exp(-epBp))\n else:\n ... | [
"0.7439941",
"0.7293983",
"0.70956755",
"0.7068426",
"0.70597136",
"0.69614685",
"0.69550496",
"0.6817669",
"0.67893445",
"0.67893445",
"0.67700267",
"0.67403233",
"0.6679506",
"0.6668397",
"0.6634016",
"0.6632738",
"0.6619426",
"0.6587372",
"0.6555486",
"0.65309596",
"0.6504... | 0.0 | -1 |
Calculating the ReLU activation for a particular layer | def N93T(YKHO, Nk6w):
T7F9 = oyIN.exp(Nk6w - oyIN.max(Nk6w))
return T7F9 / T7F9.sum(axis=0, keepdims=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bxc4(gEmA):\n return ZylS.nn.relu(gEmA)",
"def tRmQ(YKHO):\n return YKHO.add_layer(tRmQ)",
"def gTYa(YKHO):\n YKHO.assertEqual([0, 0.5], list(fmAV.Relu().output(oyIN.array([-0.5, 0.5]))))\n YKHO.assertEqual([0, 1], list(fmAV.Relu().derivative(oyIN.array([-0.5, 0.5]))))",
"def CKFj(pKvt):\n ... | [
"0.7353521",
"0.7147479",
"0.71449244",
"0.71317196",
"0.71317196",
"0.70889777",
"0.69938266",
"0.69599354",
"0.6939261",
"0.69106865",
"0.69011444",
"0.687028",
"0.687028",
"0.68674093",
"0.67837435",
"0.6782436",
"0.67801505",
"0.6777842",
"0.67647547",
"0.6763368",
"0.675... | 0.0 | -1 |
Calculating the initial weights after Zero Activation for a particular layer | def JjWg(YKHO, ROpF):
return oyIN.zeros((ROpF[0], ROpF[1])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dGkD(gEmA):\n if isinstance(gEmA, (U78l.Conv2d, U78l.Linear)):\n ht2j.nn.init.xavier_uniform_(gEmA.weight)\n try:\n gEmA.bias.data.fill_(0.0)\n except AttributeError:\n pass",
"def vB93(YKHO):\n for r8hN in YKHO.modules():\n if isinstance(r8hN, U78l.Con... | [
"0.7199983",
"0.7189707",
"0.7073406",
"0.7073406",
"0.70630974",
"0.7059666",
"0.705427",
"0.7015832",
"0.7015612",
"0.69929886",
"0.6991316",
"0.6989899",
"0.69845915",
"0.69845915",
"0.69845915",
"0.6961928",
"0.6961928",
"0.6961928",
"0.6906712",
"0.6906557",
"0.69031775"... | 0.0 | -1 |
Calculating the initial weights after Random Activation for a particular layer | def W9X1(YKHO, ROpF):
return oyIN.random.randn(ROpF[0], ROpF[1]) * 0.01 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e4Qc(YKHO):\n Pq1o = YKHO.input_count + 1\n YKHO.weights = oyIN.random.rand(Pq1o, YKHO.node_count)\n YKHO.weights_and_activations = (YKHO.weights, YKHO.activations)",
"def vB93(mPG6, wYIl, LfAf, __AJ, xyz5):\n eiBr, krgz, LdMp = (None, None, None)\n if xyz5:\n if wYIl > 0:\n ... | [
"0.752402",
"0.710488",
"0.7067337",
"0.7017896",
"0.7010868",
"0.69397944",
"0.69347376",
"0.6875742",
"0.68726015",
"0.685449",
"0.685449",
"0.685449",
"0.6834855",
"0.6834855",
"0.6824546",
"0.6819534",
"0.6807273",
"0.6805697",
"0.6805697",
"0.6790158",
"0.67868",
"0.67... | 0.0 | -1 |
Calculating the initial weights after Normal(0,1) Activation for a particular layer | def h6h3(YKHO, ROpF):
return oyIN.random.normal(size=(ROpF[0], ROpF[1])) * 0.01 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(gEmA):\n lzjZ = gEmA.__class__.__name__\n if lzjZ.find('Conv') != -1:\n gEmA.weight.data.normal_(0.0, 0.02)\n elif lzjZ.find('BatchNorm') != -1:\n gEmA.weight.data.normal_(1.0, 0.02)\n gEmA.bias.data.fill_(0)",
"def vB93(gEmA):\n lzjZ = gEmA.__class__.__name__\n if lz... | [
"0.7217052",
"0.71774477",
"0.71129817",
"0.70694095",
"0.70694095",
"0.70694095",
"0.70123243",
"0.70123243",
"0.6923158",
"0.68948615",
"0.6873916",
"0.6836172",
"0.679649",
"0.6790076",
"0.67897534",
"0.6783015",
"0.67636096",
"0.6744967",
"0.67419356",
"0.6732998",
"0.673... | 0.0 | -1 |
Template filter that converts ISO format to meaningful month format | def jhFs(KCHu):
if KCHu:
Csk6 = Vc1K(KCHu)
return qcWV.datetime.strftime(Csk6, '%B %d|%A').strip('0')
else:
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I1Bz(PXGI):\n return 'M' if PXGI.lower() == 'month' else PXGI[0].lower()",
"def fgQz(lO87, x0eS, CjKC):\n lO87 = int(lO87)\n x0eS = int(x0eS)\n CjKC = int(CjKC)\n if x0eS > 12:\n ycBG = x0eS\n x0eS = CjKC\n CjKC = ycBG\n return _c1T(lO87, x0eS, CjKC).isoformat()",
"de... | [
"0.6048462",
"0.600731",
"0.59994864",
"0.5976099",
"0.5935384",
"0.59016734",
"0.58927846",
"0.5830167",
"0.5828197",
"0.5782717",
"0.5774366",
"0.56779075",
"0.5676818",
"0.56371236",
"0.55902004",
"0.5581634",
"0.5560593",
"0.55586493",
"0.5518952",
"0.5509603",
"0.5506264... | 0.5765347 | 11 |
Creates a dict mapping namespace strings to EntityTypeFolder objects. Sets the self.namespace_folder_map attribute of the class. | def pbO8(YKHO, fDpw):
for xtX7 in fDpw:
YKHO.namespace_folder_map[xtX7.local_namespace.namespace] = xtX7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ys_9(YKHO):\n YKHO.folder0 = bEw4.objects.get(id=1)\n YKHO.folder00 = bEw4.objects.get(id=2)\n YKHO.folder000 = bEw4.objects.get(id=3)\n YKHO.folder0000 = bEw4.objects.get(id=4)",
"def aY1m(YKHO):\n cN7T = YKHO._docset.get_namespaces()\n for cs6w in cN7T:\n IbEF = jFQi(cs6w)\n ... | [
"0.57040155",
"0.54969805",
"0.5485643",
"0.5372858",
"0.5361929",
"0.53140885",
"0.5188675",
"0.5166968",
"0.5126444",
"0.51210916",
"0.510987",
"0.50415236",
"0.49872518",
"0.49788287",
"0.49729413",
"0.49666166",
"0.49348497",
"0.49018043",
"0.48804158",
"0.48653322",
"0.4... | 0.76269114 | 0 |
Returns `OptWrapper` provided string validates against the entity. Accepts a field name as written in a configuration file referencing this type. The method applies all shorthanding rules to identify the field regardless of the namespace and syntax variation. | def ku_o(YKHO, PBhp: str, IhhE: bool=False) -> h8nf[yuoA]:
try:
return YKHO.GetField(PBhp, IhhE)
except TypeError:
pass
Jyyj = YKHO._GetField(YKHO.namespace.namespace + '/' + PBhp, IhhE)
if not Jyyj:
Jyyj = YKHO._GetField('/' + PBhp, IhhE)
return Jyyj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def heVU(YKHO, p7vV: str, IhhE: bool=False) -> h8nf[yuoA]:\n bGrB, bGrB = rwe3(p7vV)\n return YKHO._GetField(p7vV, IhhE)",
"def XWij(YKHO, XLMv, Jyyj):\n if not YKHO._configparser.has_option(XLMv, Jyyj):\n return None\n return YKHO._configparser.get(XLMv, Jyyj).strip()",
"def Jyyj(P8oC: Setu... | [
"0.5500152",
"0.51827466",
"0.513214",
"0.512757",
"0.50815696",
"0.5010431",
"0.49993762",
"0.49632555",
"0.49260765",
"0.491559",
"0.49042773",
"0.4874086",
"0.48701552",
"0.48540843",
"0.48115796",
"0.48017633",
"0.4788271",
"0.47868136",
"0.47674528",
"0.47656196",
"0.476... | 0.60614806 | 0 |
Given a time and date in string form, format the | def Zb98(YKHO, JvEs, ejIZ):
yqt1 = JvEs.split()
x0eS = qcWV.strptime(yqt1[-2], '%B').strftime('%m')
xwKk = yqt1[-1][:-2]
lO87 = qcWV.now().strftime('%Y')
ITS7 = qcWV.strptime(ejIZ, '%I:%M %p').strftime('%H:%M')
return x0eS + '/' + xwKk + '/' + lO87 + ' ' + ITS7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n2Ei(ITS7):\n return qcWV.strptime(ITS7, '%d/%m/%Y %H:%M:%S').strftime('%a, %d/%m/%Y %H:%M:%S')",
"def ct8j(YKHO, ITS7):\n TKQ0 = ITS7[0:2]\n cpvk = ITS7[2:4]\n KG9w = ITS7[4:]\n return '%s:%s:%s UTC' % (TKQ0, cpvk, KG9w)",
"def pbww(_c1T, mZOz='23:59:59Z'):\n x8us = '%Y-%m-%dT{time}'.for... | [
"0.7343375",
"0.7018157",
"0.7008155",
"0.6982577",
"0.6927828",
"0.6917183",
"0.68507874",
"0.67687386",
"0.67626935",
"0.67538905",
"0.67245615",
"0.6711309",
"0.6687785",
"0.66651946",
"0.6654727",
"0.6650881",
"0.663178",
"0.6630319",
"0.6581239",
"0.6545936",
"0.6535283"... | 0.8002302 | 0 |
Gets the plan_id of this SystemPricingPlan. | def wERM(YKHO) -> str:
return YKHO._plan_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ved8(YKHO):\n finE = YKHO.get_subscription()\n return finE.plan",
"def dHL0(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'commitment_plan_id')",
"def zYuB(YKHO) -> str:\n return qe4Y.get(YKHO, 'pricing_plan')",
"def s3pm(YKHO):\n fJ7k = odAu(YKHO._commcell_object)\n return fJ7k.get(YKHO.... | [
"0.6234852",
"0.61627215",
"0.60116327",
"0.5827784",
"0.5674323",
"0.5661412",
"0.56060135",
"0.56060135",
"0.55860883",
"0.5558735",
"0.55491835",
"0.55486786",
"0.5532562",
"0.5423251",
"0.54145765",
"0.53864974",
"0.5365958",
"0.53648233",
"0.5360409",
"0.5347775",
"0.534... | 0.78002596 | 0 |
Sets the plan_id of this SystemPricingPlan. | def wERM(YKHO, wERM: str):
if wERM is None:
raise ValueError('Invalid value for `plan_id`, must not be `None`')
YKHO._plan_id = wERM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUyJ(YKHO, qUyJ):\n YKHO._plan = qUyJ",
"def QdZT(Emd4, wERM, **B2fa):\n return Emd4().requests.put(f'plan/{wERM}', data=B2fa)",
"def wERM(YKHO) -> str:\n return YKHO._plan_id",
"def iKVz(YKHO, iKVz):\n YKHO._scheduled_plan = iKVz",
"def NpNj(YKHO, y1iB):\n return ND4q(c5ow.id, y1iB, QeP... | [
"0.6427912",
"0.63176936",
"0.621292",
"0.59321284",
"0.5826718",
"0.5820588",
"0.5607611",
"0.5491661",
"0.54452693",
"0.53306454",
"0.5306179",
"0.5248907",
"0.5195259",
"0.5195259",
"0.5157259",
"0.5156914",
"0.5060873",
"0.50445294",
"0.50445294",
"0.5042738",
"0.50048935... | 0.719962 | 0 |
Gets the url of this SystemPricingPlan. | def bD7m(YKHO) -> str:
return YKHO._url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bD7m(YKHO) -> str:\n return qe4Y.get(YKHO, 'url')",
"def bD7m(YKHO) -> str:\n return qe4Y.get(YKHO, 'url')",
"def hKhs(YKHO):\n return YKHO.url",
"def hKhs(YKHO):\n return YKHO.url",
"def hKhs(YKHO):\n return YKHO.resource.url",
"def bD7m(YKHO):\n bD7m = YKHO.url\n return bD7m",
... | [
"0.66230303",
"0.66230303",
"0.6608708",
"0.6608708",
"0.6550064",
"0.6523262",
"0.6501513",
"0.6501513",
"0.6501513",
"0.64877915",
"0.64877915",
"0.64793205",
"0.64689285",
"0.6414895",
"0.6414895",
"0.6414895",
"0.6414895",
"0.6414895",
"0.6414895",
"0.6414895",
"0.6414895... | 0.6522593 | 8 |