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 |
|---|---|---|---|---|---|---|
Convert the rotation matrix into quaternion. | def IMIi(YKHO, XyWv):
A3Vt = oyIN.eye(4)
A3Vt[:3, :3] = XyWv
return ZylS.transformations.quaternion_from_matrix(A3Vt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r43z(SppC):\n vexM = XTiz.zeros(4)\n vexM[0] = 0.5 * XTiz.sqrt(1 + XTiz.trace(SppC))\n if XTiz.allclose(0.0, vexM[0], 1e-15, 1e-08) == False:\n vexM[1] = 1 / (4 * vexM[0]) * (SppC[2, 1] - SppC[1, 2])\n vexM[2] = 1 / (4 * vexM[0]) * (SppC[0, 2] - SppC[2, 0])\n vexM[3] = 1 / (4 * ve... | [
"0.8269608",
"0.7723317",
"0.76900816",
"0.75423837",
"0.74522275",
"0.74199975",
"0.7391453",
"0.73692364",
"0.73537034",
"0.7332186",
"0.73173314",
"0.73061377",
"0.73037106",
"0.7290776",
"0.72689146",
"0.7264118",
"0.7246293",
"0.7207066",
"0.7183888",
"0.7176676",
"0.716... | 0.743222 | 5 |
Converts vehicle acceleration into required net force. Will take the required acceleration and consider mass, buoyancy, drag, and precession to compute the required net force. | def ZJcs(YKHO, tXPj, cxey, HWw1):
OYcc = a_FP(tXPj.twist.twist.linear)
ZtIO = a_FP(tXPj.twist.twist.angular)
C3ap = a_FP(tXPj.pose.pose.orientation)
BfEW = cxey * YKHO.mass
p5Tj = HWw1 * YKHO.inertia
MjlM = eENU(C3ap, YKHO.buoyancy)
SNrm = oyIN.cross(YKHO.cob - YKHO.com, MjlM)
SSv1 = -oy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IpeF(Tmeh, rudm, wJOg, NcSO):\n sgTf = (Tmeh - rudm - NcSO) / wJOg\n return sgTf",
"def YfQr(YKHO):\n for YRbF in range(len(YKHO.scalars[0])):\n boxz = oyIN.empty([len(YKHO.vectors[2]), 2])\n boxz[YRbF] = oyIN.array([0, 0])\n for r845, r8hN in enumerate(YKHO.scalars[0]):\n ... | [
"0.66794086",
"0.6350467",
"0.6279314",
"0.6241956",
"0.6119426",
"0.60078",
"0.5975864",
"0.5975864",
"0.5839473",
"0.58253807",
"0.5804697",
"0.5783554",
"0.5775182",
"0.5735248",
"0.5730741",
"0.5718432",
"0.57063013",
"0.5695969",
"0.56951725",
"0.5670936",
"0.5668597",
... | 0.7144043 | 0 |
Return the funding information for a single trading pair. | async def get_funding_info(YKHO, PK4F: str) -> Uy0g:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DXzD(YKHO, q2Xo):\n if not q2Xo or q2Xo is None:\n raise xldv('[!] Invalid asset pair.')\n try:\n Aofo = YKHO.api.get_ticker_information(pair=q2Xo)\n except d7sB as error:\n raise P1dF\n else:\n return Aofo",
"async def fetch_trading_fee(YKHO, o61b: str, NArs={}):\n ... | [
"0.6832985",
"0.64343256",
"0.62424403",
"0.6188096",
"0.5898751",
"0.58916324",
"0.58164674",
"0.57741725",
"0.57613486",
"0.57508683",
"0.57508683",
"0.57508683",
"0.57130826",
"0.5709936",
"0.56785464",
"0.5657892",
"0.56440794",
"0.5641282",
"0.5587139",
"0.5576279",
"0.5... | 0.8740101 | 0 |
Parses an image and label from the given `serialized_example` | def x8I_(lGjS):
bySB = ZylS.parse_single_example(lGjS, features={'rain_image_raw': ZylS.FixedLenFeature([], ZylS.string), 'clean_image_raw': ZylS.FixedLenFeature([], ZylS.string), 'mask_image_raw': ZylS.FixedLenFeature([], ZylS.string)})
lNai = ZylS.stack([U3yL.TRAIN.IMG_HEIGHT, U3yL.TRAIN.IMG_WIDTH, 3])
Wy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m6aZ(lGjS):\n bySB = {'img': ZylS.io.FixedLenFeature([], ZylS.string), 'height': ZylS.io.FixedLenFeature([], ZylS.int64), 'width': ZylS.io.FixedLenFeature([], ZylS.int64), 'depth': ZylS.io.FixedLenFeature([], ZylS.int64), 'label': ZylS.io.FixedLenFeature([], ZylS.string)}\n TlBS = ZylS.io.parse_single_ex... | [
"0.79763144",
"0.78930634",
"0.78743607",
"0.78145087",
"0.77012473",
"0.7699346",
"0.7637695",
"0.7622853",
"0.76100236",
"0.7594636",
"0.7390261",
"0.73084205",
"0.72556853",
"0.71928954",
"0.7183586",
"0.70430654",
"0.70017874",
"0.70017874",
"0.69117326",
"0.6907367",
"0.... | 0.6534739 | 34 |
Normalize the image data by substracting the imagenet mean value | def NkkI(WywU, aErR, CSwn):
if WywU.get_shape().as_list()[-1] != 3 or aErR.get_shape().as_list()[-1] != 3:
raise ValueError('Input must be of size [height, width, C>0]')
ISrP = ZylS.cast(WywU, dtype=ZylS.float32)
UpcR = ZylS.cast(aErR, dtype=ZylS.float32)
ISrP = ZylS.subtract(ZylS.divide(ISrP, Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, VXjJ):\n return (VXjJ - YKHO.mean) / YKHO.std",
"def kwsU(YKHO):\n YKHO.img = YKHO.img.astype(oyIN.float32) / 255.0\n YKHO.img -= YKHO.img.mean()",
"def kwsU(YKHO):\n YKHO.img = oyIN.clip(YKHO.img - YKHO.img.mean(), -1, 1)",
"def BtVk(YKHO, VXjJ):\n return (VXjJ - oyIN.mean(VXjJ... | [
"0.8155039",
"0.81492084",
"0.81334394",
"0.8049",
"0.80464923",
"0.80203396",
"0.7934697",
"0.7907927",
"0.78434116",
"0.7707536",
"0.77061707",
"0.7695622",
"0.7681282",
"0.7672963",
"0.75941736",
"0.75839984",
"0.7547886",
"0.75239074",
"0.75074136",
"0.748235",
"0.7478410... | 0.0 | -1 |
Return the unit of measurement. | def b82i(YKHO):
return YKHO._unit | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO) -> str | None:\n return YKHO._description[znBy]",
"def JZJQ(YKHO) -> str:\n return YKHO.__unit_of_measure",
"def b82i(YKHO):\n return YKHO._unit_of_measurement",
"def b82i(YKHO):\n return YKHO._unit_of_measurement",
"def b82i(YKHO) -> s... | [
"0.90788347",
"0.9013875",
"0.90051067",
"0.89462197",
"0.89462197",
"0.89366317",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",
"0.89184356",... | 0.9042988 | 1 |
Instantiates and adds layers to the Keras neural network model | def FIMM(YKHO, Sqw_):
print('Constructing Model...')
YKHO.model = ileL()
YKHO.model.add(l6ZH(16, kernel_initializer=CXVQ, input_dim=Sqw_, activation=M5Mx))
YKHO.model.add(l6ZH(32, kernel_initializer=CXVQ, activation=M5Mx))
YKHO.model.add(l6ZH(64, kernel_initializer=CXVQ, activation=M5Mx))
YKHO.m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhG9(XFqx, CLda, cuu0, b1O8, YDYE, WuUW, kxeT):\n for YRbF in range(CLda):\n XFqx.add(ZT1Q(cuu0, b1O8, YDYE, WuUW(), False if YRbF == 0 else kxeT))",
"def tySA(fhcK, jeX6=None, C3ST=False, jjPY=False, **B2fa):\n if jeX6 is None:\n jeX6 = {}\n jeX6['default'] = jeX6.get('default', 'relu... | [
"0.7327331",
"0.7136906",
"0.7116374",
"0.70591503",
"0.7053168",
"0.7036331",
"0.70229316",
"0.7015448",
"0.7005408",
"0.6994565",
"0.69594276",
"0.69536036",
"0.6945471",
"0.6945128",
"0.6900405",
"0.6892795",
"0.68748057",
"0.68728036",
"0.6870842",
"0.68661094",
"0.683637... | 0.65092623 | 97 |
number of model parameters | def M5A1(YKHO):
if getattr(YKHO.mapping, 'nP') != '*':
return YKHO.mapping.nP
elif getattr(YKHO.regmesh, 'nC') != '*':
return YKHO.regmesh.nC
else:
return '*' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc72(YKHO):\n return 1",
"def ca6I(YKHO):\n return eQ5t(YKHO.model)",
"def gi2P(YKHO):\n return 3",
"def gi2P(YKHO):\n return 0",
"def VgCS(C3ST):\n return sum((XP5J.numel() for XP5J in C3ST.parameters()))",
"def UqPz(C3ST):\n return oyIN.sum([XP5J.numel() for XP5J in C3ST.parameter... | [
"0.8956051",
"0.8625362",
"0.83412695",
"0.82779",
"0.8271003",
"0.81379116",
"0.80961215",
"0.807545",
"0.7958748",
"0.7955672",
"0.7902627",
"0.78654295",
"0.78654295",
"0.77887",
"0.7777103",
"0.7771814",
"0.77256435",
"0.77256435",
"0.77238244",
"0.77238244",
"0.7718435",... | 0.0 | -1 |
number of model parameters | def M5A1(YKHO):
if getattr(YKHO.mapping, 'nP') != '*':
return YKHO.mapping.nP
elif getattr(YKHO.regmesh, 'nC') != '*':
return YKHO.regmesh.nC
else:
return '*' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc72(YKHO):\n return 1",
"def ca6I(YKHO):\n return eQ5t(YKHO.model)",
"def gi2P(YKHO):\n return 3",
"def gi2P(YKHO):\n return 0",
"def VgCS(C3ST):\n return sum((XP5J.numel() for XP5J in C3ST.parameters()))",
"def UqPz(C3ST):\n return oyIN.sum([XP5J.numel() for XP5J in C3ST.parameter... | [
"0.8956051",
"0.8625362",
"0.83412695",
"0.82779",
"0.8271003",
"0.81379116",
"0.80961215",
"0.807545",
"0.7958748",
"0.7955672",
"0.7902627",
"0.78654295",
"0.78654295",
"0.77887",
"0.7777103",
"0.7771814",
"0.77256435",
"0.77256435",
"0.77238244",
"0.77238244",
"0.7718435",... | 0.0 | -1 |
Need to leave this method here to overload the get_phoSimMagNorm in the base PhoSim InstanceCatalog classes | def S3t7(YKHO):
YKHO.column_by_name('is_sprinkled')
return YKHO.column_by_name('magNorm') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S3t7(YKHO):\n try:\n YigN = exCv\n except:\n YigN = str\n Gl62 = YKHO.column_by_name('magNorm')\n SbMi = None\n if YKHO.obs_metadata is not None:\n if YKHO.obs_metadata.bandpass is not None:\n if isinstance(YKHO.obs_metadata.bandpass, YigN):\n SbMi ... | [
"0.7534106",
"0.60590744",
"0.59093946",
"0.5887005",
"0.5887005",
"0.5887005",
"0.58864695",
"0.58864695",
"0.58683395",
"0.58493584",
"0.5835713",
"0.58226967",
"0.57835007",
"0.5775165",
"0.5744062",
"0.5703621",
"0.5703621",
"0.5703621",
"0.5640949",
"0.5622259",
"0.56222... | 0.7630681 | 0 |
Performs database connection using database settings from settings.py. Returns sqlalchemy engine instance | def WyYT():
return y2U9(rOmR(**aL7g)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WyYT():\n return y2U9(rOmR(**GPtr.DATABASE))",
"def WyYT():\n return y2U9(moDH)",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n return y2U9(KIPK().get('CONNECTION_STRING'))",
"def WyYT():\n ... | [
"0.8295809",
"0.8232581",
"0.8231285",
"0.8231285",
"0.8231285",
"0.8226739",
"0.8192084",
"0.81761605",
"0.80813867",
"0.80813867",
"0.80813867",
"0.80813867",
"0.80813867",
"0.80813867",
"0.80813867",
"0.80813867",
"0.80813867",
"0.80813867",
"0.80813867",
"0.80813867",
"0.... | 0.8215341 | 6 |
Creates our game logic objects and creates us an empty board | def GxAz(YKHO):
g4y1 = YKHO._game_initial_inputs
YKHO._game_obj = DXan.GameLogic(DXan.new_othello_board(g4y1), g4y1[2], g4y1[4])
YKHO._game_board = DXan.initial_four_chips(YKHO._game_obj._board, g4y1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def efGj(YKHO):\n for rdlD in range(yXc0):\n YKHO.board.append([])\n for fvDH in range(jRFz):\n if fvDH % 2 == (rdlD + 1) % 2:\n if rdlD < 3:\n YKHO.board[rdlD].append(q8RS(rdlD, fvDH, qY_W))\n elif rdlD > 4:\n YKHO.boa... | [
"0.75794923",
"0.75525403",
"0.7509065",
"0.74111676",
"0.73529434",
"0.73335606",
"0.7332031",
"0.7298017",
"0.7241329",
"0.7227604",
"0.72248435",
"0.7195326",
"0.7168512",
"0.71586347",
"0.7141901",
"0.71386516",
"0.71370167",
"0.7131984",
"0.7089751",
"0.70731616",
"0.707... | 0.6903513 | 42 |
Does User.signup successfully create a new user given valid credentials? | def tuZt(YKHO):
CBIr = mv1M.signup('bob', 'a@a', 'password', 'www.picture.com')
YKHO.assertEqual(CBIr.username, 'bob')
YKHO.assertNotEqual(CBIr.password, 'password') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x93G(YKHO):\n YKHO.assertEqual(len(mv1M.query.all()), 2)\n uDCI = mv1M.signup('test2', 'test2@email.com', 'password2', None)\n NCls.session.commit()\n YKHO.assertEqual(len(mv1M.query.all()), 3)\n YKHO.assertNotEqual(uDCI.password, 'password2')",
"def R1fA(YKHO):\n CBIr = mv1M.register(usern... | [
"0.8118055",
"0.79972655",
"0.77926105",
"0.7785233",
"0.77747256",
"0.7757184",
"0.77197474",
"0.76737726",
"0.7669404",
"0.7638347",
"0.7619044",
"0.76163787",
"0.76085633",
"0.76049495",
"0.75873333",
"0.75801265",
"0.7565293",
"0.7560523",
"0.75401485",
"0.7539696",
"0.75... | 0.0 | -1 |
Does User.authenticate successfully return a user when given a valid username and password? | def XOXp(YKHO):
mv1M.signup('bob', 'a@a', 'password', 'www.picture.com')
YKHO.assertTrue(mv1M.authenticate('bob', 'password'))
YKHO.assertFalse(mv1M.authenticate('hacker', 'hacker')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy(NtEF, jTXt):\n CBIr = mv1M.find_by_username(NtEF)\n if CBIr and xLFy(CBIr.password, jTXt):\n return CBIr",
"def xUXl(NtEF, jTXt, NCls):\n xpsS = mv1M.getUser(NtEF, NCls)\n if xpsS:\n if xpsS.checkPassword(jTXt):\n return xpsS\n return None",
"def NLCy(NtEF, jTXt... | [
"0.82551104",
"0.8208822",
"0.82054645",
"0.82054645",
"0.80704635",
"0.80704635",
"0.8061832",
"0.80387",
"0.8009055",
"0.8006368",
"0.79766226",
"0.7942165",
"0.79218245",
"0.79215914",
"0.7910351",
"0.7910351",
"0.7910351",
"0.7910351",
"0.7910351",
"0.7910351",
"0.7910351... | 0.72936773 | 74 |
Returns the an image of grays for a given image | def B8fU(VXjJ, KW4A):
if KW4A in ['none', 'nc', 'npy']:
lWrn = VXjJ.shape
if len(lWrn) == 3:
UhZK, EVRf, Csk6 = lWrn
if Csk6 == 3:
ITiw = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)
else:
ITiw = VXjJ[:, :, 0]
elif len(lWrn) == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KcW0(Xn71):\n return Xn71",
"def zI1D(LNo8):\n return oyIN.dot(LNo8[..., :3], [0.299, 0.587, 0.114])",
"def qWz7(LNo8):\n xV4z = oyIN.copy(LNo8)\n F3_L = 0.299 * LNo8[2] + 0.587 * LNo8[1] + 0.114 * LNo8[0]\n xV4z[0] = F3_L\n xV4z[1] = F3_L\n xV4z[2] = F3_L\n return xV4z",
"def Ha7... | [
"0.7841356",
"0.7826674",
"0.76988614",
"0.7682103",
"0.7648584",
"0.7647805",
"0.760298",
"0.760298",
"0.7544081",
"0.75337625",
"0.7490199",
"0.74791956",
"0.74791956",
"0.74791956",
"0.74791956",
"0.74791956",
"0.747814",
"0.7454478",
"0.7451818",
"0.7409672",
"0.7405719",... | 0.6857217 | 97 |
Convert grain lbs to mg | def bdXI(YKHO, BWXx):
return int(lO1m(BWXx * ZjSO(453592.37))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jou0(Us67):\n return Us67 * 0.45359237",
"def bMol(dDKE):\n pass",
"def Rbbs(Ae2G):\n Nuw4 = Ae2G / 2.2\n return Nuw4",
"def CVLX(BWXx):\n return BWXx * uwaB.SI2MGAL",
"def _UjW(j3zg):\n pass",
"def n9hM(YKHO):\n return float(YKHO.calc_total_bases()) / YKHO.total_at_bats",
"def... | [
"0.6961522",
"0.65858006",
"0.65469384",
"0.6407473",
"0.63011956",
"0.62365735",
"0.61996186",
"0.61756206",
"0.61143535",
"0.61101913",
"0.59784406",
"0.59783083",
"0.59355825",
"0.5897122",
"0.58937365",
"0.58738947",
"0.57797664",
"0.57662755",
"0.574162",
"0.57209986",
"... | 0.0 | -1 |
Discover and return discovered ``DescriptorElement`` classes. Keys in the returned map are the names of the discovered classes, and the paired values are the actual class type objects. | def Jj8q(M2t1=False):
B3B_ = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))
IH1p = 'DESCRIPTOR_ELEMENT_PATH'
CBy0 = 'DESCRIPTOR_ELEMENT_CLASS'
return t0qN.get_plugins(__name__, B3B_, IH1p, CBy0, AuWF, M2t1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def apye():\n Aofo = []\n for U6D_ in dir(qP_6):\n if U6D_[0].isupper():\n Aofo += [(U6D_, getattr(qP_6, U6D_, None))]\n return Aofo",
"def ylai(YKHO):\n KndY = YKHO._get_subclasses()\n Aofo = {}\n for Emd4 in KndY:\n Aofo[Emd4.__name__] = Emd4\n return Aofo",
"def... | [
"0.6603264",
"0.6477251",
"0.6316809",
"0.61488205",
"0.6129817",
"0.61182",
"0.60802996",
"0.60510886",
"0.6047024",
"0.6014132",
"0.5992236",
"0.59155405",
"0.5910053",
"0.5860676",
"0.58593124",
"0.5854463",
"0.58331996",
"0.58100796",
"0.5807373",
"0.5803073",
"0.5794499"... | 0.0 | -1 |
Find the first nonnull element of an eventually nested list | def sEF8(YKHO, aPd6: List[Any]) -> ImMB:
WhY1 = YKHO._flatiter(aPd6, set())
try:
return next(WhY1)
except StopIteration:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j_qu(*DumB: Any) -> ImMB:\n for ZfUD in DumB:\n if ZfUD is not None:\n return ZfUD\n return None",
"def iN7E(YKHO, hP3w):\n if isinstance(hP3w, g760.Container) and (not isinstance(hP3w, exCv)):\n if hP3w:\n return iter(hP3w).next()\n return None\n return... | [
"0.7078387",
"0.70745015",
"0.67684555",
"0.6712724",
"0.6663445",
"0.66488785",
"0.66373044",
"0.6633426",
"0.662487",
"0.6614588",
"0.65642387",
"0.65553385",
"0.6534207",
"0.6495466",
"0.6492644",
"0.6483335",
"0.6462729",
"0.6409634",
"0.6398175",
"0.6393059",
"0.63814944... | 0.7009688 | 2 |
Return a regexp to recognise when a value needs quotes | def K8uT(TDw3: bytes) -> UIgY[bytes]:
return ZbWC.compile(b'(?xi)\n ^$ # the empty string\n | ["{}%s\\\\\\s] # or a char to escape\n | ^null$ # or the word NULL\n ' % TDw3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nINd(Emd4, BWXx):\n return ZbWC.search(Emd4.REGEX_CHARACTER_TO_ESCAPE, BWXx, ZbWC.U)",
"def cvfw(PCpl, BWXx):\n return BWXx.replace(\"'\", \"\\\\\\\\'\")",
"def xvvY():\n r8hN = MjOo.UNQUOTED_STRING.search(\"'foo'\")\n assert r8hN\n assert r8hN.groups()[0] == 'foo'\n r8hN = MjOo.UNQUOTED_... | [
"0.71369",
"0.69070107",
"0.6791059",
"0.64402306",
"0.63901347",
"0.6310398",
"0.6278113",
"0.62023085",
"0.61667013",
"0.61380184",
"0.6129843",
"0.6098042",
"0.6086696",
"0.60326093",
"0.59966534",
"0.5966596",
"0.59330595",
"0.59047973",
"0.5898807",
"0.5887049",
"0.58640... | 0.68015176 | 2 |
Get a random element from the set. | def UIrZ(YKHO):
return tuKI.choice(YKHO.vals) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8Zf(YKHO):\n try:\n return YKHO.object().random_element()\n except AttributeError:\n return Acvy(YKHO.list())",
"def UIrZ(YKHO) -> int:\n IZL_ = YKHO.randomizedSet.pop()\n YKHO.randomizedSet.add(IZL_)\n return IZL_",
"def UIrZ(YKHO):\n or8S = tuKI.randint(0, YKHO.length - 1... | [
"0.78055954",
"0.77602583",
"0.76503676",
"0.69756",
"0.6970386",
"0.69696873",
"0.69170576",
"0.6903906",
"0.68794334",
"0.6843657",
"0.68179744",
"0.68171364",
"0.6815859",
"0.6779796",
"0.6774275",
"0.6763151",
"0.6747374",
"0.67292315",
"0.6693236",
"0.6683133",
"0.666994... | 0.65367097 | 32 |
Get a random element from the collection. | def UIrZ(YKHO):
return tuKI.choice(YKHO.vals) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8Zf(YKHO):\n try:\n return YKHO.object().random_element()\n except AttributeError:\n return Acvy(YKHO.list())",
"def LAaV(xUwc, q24Q=None):\n try:\n d6pt = tuKI.randint(0, len(xUwc) - 1)\n if q24Q is None:\n return xUwc[d6pt]\n else:\n return... | [
"0.82208097",
"0.77621496",
"0.75064623",
"0.7470788",
"0.7446439",
"0.73732936",
"0.7304979",
"0.7270751",
"0.71791035",
"0.7150966",
"0.71476245",
"0.70904005",
"0.70774186",
"0.7043801",
"0.7011797",
"0.6973212",
"0.6943404",
"0.6924073",
"0.6906942",
"0.69010395",
"0.6899... | 0.6405378 | 65 |
Recursive function builds a hierarchal dictionary from | def lgPP(EXD7, BWXx, QTBn):
try:
tlxW = EXD7.pop(0)
except IndexError:
return QTBn
if not tlxW in QTBn.keys():
QTBn[tlxW] = {}
if EXD7:
QTBn[tlxW] = lgPP(EXD7, BWXx, QTBn[tlxW])
else:
QTBn[tlxW] = BWXx
return QTBn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KpM7(dEP2, bTKY=None):\n hlel = {}\n for tk5Y in dEP2.get(bTKY, []):\n hlel[tk5Y] = {}\n for bTKY in dEP2.get(tk5Y, []):\n hlel[tk5Y][bTKY] = KpM7(dEP2, bTKY)\n return hlel",
"def yEUh(tk5Y, RbaF, tJEc, MXMl):\n Aofo = {}\n afYC = RbaF(tk5Y)\n if not afYC:\n ... | [
"0.7069574",
"0.68333167",
"0.6718533",
"0.65202856",
"0.651794",
"0.6486877",
"0.6435953",
"0.64351225",
"0.63934237",
"0.6391318",
"0.63896364",
"0.63397187",
"0.6319917",
"0.6289166",
"0.6281503",
"0.6258682",
"0.6224965",
"0.6182191",
"0.6174018",
"0.61706036",
"0.6167579... | 0.0 | -1 |
TESS magnitude estimate based on magnitude and Eq. on bottom of p4 of arxiv.org/pdf/1706.00495.pdf | def qNvX(YKHO):
assert (YKHO.Jmag is not None) & (YKHO.Ksmag is not None) & (YKHO.Vmag is not None)
if YKHO.Jmag - YKHO.Ksmag > 1.0:
return YKHO.Jmag + 1.75
elif YKHO.Jmag - YKHO.Ksmag < -0.1:
return YKHO.Jmag + 0.5
else:
EcVT = YKHO.Vmag - YKHO.Ksmag
return YKHO.Jmag + 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2 + YKHO.w ** 2)",
"def YXbZ(YKHO):\n return (YKHO.u ** 2 + YKHO.v ** 2) ** 0.5",
"def O1Mc():\n KBgZ = lPg4()\n KBgZ.nints = 5\n nPrm, Czz_, Ux0P, IN6g = D8Fm(KBgZ.nints)\n WBPg = tujn.getheader(Ux0P)\n BHsk = (1, 2,... | [
"0.66538495",
"0.650072",
"0.6412077",
"0.6325274",
"0.632204",
"0.629717",
"0.62940174",
"0.6230757",
"0.6127768",
"0.61133415",
"0.61067706",
"0.6093943",
"0.6083869",
"0.60791475",
"0.6066798",
"0.60456705",
"0.6031389",
"0.6028682",
"0.6025029",
"0.6014877",
"0.60142493",... | 0.5787747 | 39 |
TESS magnitude estimate based on magnitude and Eq. on p5 of arxiv.org/pdf/1706.00495.pdf | def atUW(YKHO):
assert (YKHO.Jmag is not None) & (YKHO.Ksmag is not None) & (YKHO.Bphmag is not None)
EcVT = YKHO.Bphmag - YKHO.Ksmag
return YKHO.Jmag + 0.00178 * EcVT ** 3 - 0.0178 * EcVT ** 2 + 0.31926 * EcVT + 0.0381 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2 + YKHO.w ** 2)",
"def O1Mc():\n KBgZ = lPg4()\n KBgZ.nints = 5\n nPrm, Czz_, Ux0P, IN6g = D8Fm(KBgZ.nints)\n WBPg = tujn.getheader(Ux0P)\n BHsk = (1, 2, 1, 1)\n rD_S = (1, 1, 1, 1)\n FOSW = KBgZ.magnitude(BHsk, rD_... | [
"0.6590358",
"0.65587807",
"0.65148443",
"0.64297086",
"0.6316303",
"0.6271384",
"0.62448716",
"0.62211156",
"0.617076",
"0.6169073",
"0.6141844",
"0.6110943",
"0.60998946",
"0.60874385",
"0.6079554",
"0.60577905",
"0.6051778",
"0.6041045",
"0.6037622",
"0.6015685",
"0.598873... | 0.0 | -1 |
TESS magnitude estimate based on magnitude and Eq. on p5 of arxiv.org/pdf/1706.00495.pdf | def cjDf(YKHO):
assert (YKHO.Jmag is not None) & (YKHO.Ksmag is not None) & (YKHO.Bmag is not None)
EcVT = YKHO.Bmag - YKHO.Ksmag
return YKHO.Jmag + 0.00226 * EcVT ** 3 - 0.02313 * EcVT ** 2 + 0.29688 * EcVT + 0.0407 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2 + YKHO.w ** 2)",
"def O1Mc():\n KBgZ = lPg4()\n KBgZ.nints = 5\n nPrm, Czz_, Ux0P, IN6g = D8Fm(KBgZ.nints)\n WBPg = tujn.getheader(Ux0P)\n BHsk = (1, 2, 1, 1)\n rD_S = (1, 1, 1, 1)\n FOSW = KBgZ.magnitude(BHsk, rD_... | [
"0.6592694",
"0.6560246",
"0.65190756",
"0.6433827",
"0.6318414",
"0.6273735",
"0.6248257",
"0.6224935",
"0.6174753",
"0.6171045",
"0.6144524",
"0.61127645",
"0.6101863",
"0.60908496",
"0.6082094",
"0.6061309",
"0.6053251",
"0.60446364",
"0.60395753",
"0.6020808",
"0.5992299"... | 0.0 | -1 |
TESS magnitude estimate based on magnitude and Eq. on p5 of arxiv.org/pdf/1706.00495.pdf | def iNQc(YKHO):
assert (YKHO.Jmag is not None) & (YKHO.Ksmag is not None)
EcVT = YKHO.Jmag - YKHO.Ksmag
if EcVT > 0.7 and EcVT <= 1.0:
return YKHO.Jmag - 269.372 * EcVT ** 3 + 668.453 * EcVT ** 2 - 545.64 * EcVT + 147.811
elif (EcVT <= 0.7) & (EcVT >= -0.1):
return YKHO.Jmag + 1.22163 * ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2 + YKHO.w ** 2)",
"def O1Mc():\n KBgZ = lPg4()\n KBgZ.nints = 5\n nPrm, Czz_, Ux0P, IN6g = D8Fm(KBgZ.nints)\n WBPg = tujn.getheader(Ux0P)\n BHsk = (1, 2, 1, 1)\n rD_S = (1, 1, 1, 1)\n FOSW = KBgZ.magnitude(BHsk, rD_... | [
"0.65908617",
"0.65590286",
"0.651582",
"0.6430561",
"0.6316359",
"0.6271883",
"0.6245231",
"0.6221845",
"0.6170922",
"0.6169312",
"0.6142464",
"0.6111263",
"0.6099858",
"0.60879236",
"0.60807645",
"0.6058284",
"0.6051534",
"0.6041772",
"0.60375994",
"0.6016119",
"0.5988643",... | 0.0 | -1 |
TESS magnitude estimate based on magnitude and Eq. on p5 of arxiv.org/pdf/1706.00495.pdf | def DVCL(YKHO):
assert (YKHO.Jmag is not None) & (YKHO.Gmag is not None)
EcVT = YKHO.Gmag - YKHO.Jmag
return YKHO.Gmag + 0.00106 * EcVT ** 3 + 0.01278 * EcVT ** 2 - 0.46022 * EcVT + 0.0211 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2 + YKHO.w ** 2)",
"def O1Mc():\n KBgZ = lPg4()\n KBgZ.nints = 5\n nPrm, Czz_, Ux0P, IN6g = D8Fm(KBgZ.nints)\n WBPg = tujn.getheader(Ux0P)\n BHsk = (1, 2, 1, 1)\n rD_S = (1, 1, 1, 1)\n FOSW = KBgZ.magnitude(BHsk, rD_... | [
"0.65905136",
"0.65574527",
"0.6516152",
"0.6430655",
"0.631691",
"0.62714386",
"0.6245285",
"0.6222326",
"0.61715376",
"0.61698574",
"0.61437535",
"0.6111418",
"0.6100104",
"0.60886395",
"0.60796505",
"0.6058519",
"0.60520124",
"0.60416585",
"0.6037992",
"0.6016566",
"0.5989... | 0.0 | -1 |
TESS magnitude estimate based on magnitude and Eq. on p5 of arxiv.org/pdf/1706.00495.pdf | def ZYWf(YKHO):
assert (YKHO.Jmag is not None) & (YKHO.Hmag is not None) & (YKHO.Vmag is not None)
EcVT = YKHO.Jmag - YKHO.Hmag
return YKHO.Vmag - 0.28408 * EcVT ** 3 + 0.75955 * EcVT ** 2 - 1.96827 * EcVT - 0.114 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2 + YKHO.w ** 2)",
"def O1Mc():\n KBgZ = lPg4()\n KBgZ.nints = 5\n nPrm, Czz_, Ux0P, IN6g = D8Fm(KBgZ.nints)\n WBPg = tujn.getheader(Ux0P)\n BHsk = (1, 2, 1, 1)\n rD_S = (1, 1, 1, 1)\n FOSW = KBgZ.magnitude(BHsk, rD_... | [
"0.6590358",
"0.65587807",
"0.65148443",
"0.64297086",
"0.6316303",
"0.6271384",
"0.62448716",
"0.62211156",
"0.617076",
"0.6169073",
"0.6141844",
"0.6110943",
"0.60998946",
"0.60874385",
"0.6079554",
"0.60577905",
"0.6051778",
"0.6041045",
"0.6037622",
"0.6015685",
"0.598873... | 0.58027774 | 39 |
TESS magnitude estimate based on magnitude and Eq. on p5 of arxiv.org/pdf/1706.00495.pdf | def cJiB(YKHO):
assert (YKHO.Jmag is not None) & (YKHO.Hmag is not None)
EcVT = YKHO.Jmag - YKHO.Hmag
return YKHO.Jmag - 0.99995 * EcVT ** 3 - 1.4922 * EcVT ** 2 + 1.93384 * EcVT + 0.1561 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2 + YKHO.w ** 2)",
"def O1Mc():\n KBgZ = lPg4()\n KBgZ.nints = 5\n nPrm, Czz_, Ux0P, IN6g = D8Fm(KBgZ.nints)\n WBPg = tujn.getheader(Ux0P)\n BHsk = (1, 2, 1, 1)\n rD_S = (1, 1, 1, 1)\n FOSW = KBgZ.magnitude(BHsk, rD_... | [
"0.6592694",
"0.6560246",
"0.65190756",
"0.6433827",
"0.6318414",
"0.6273735",
"0.6248257",
"0.6224935",
"0.6174753",
"0.6171045",
"0.6144524",
"0.61127645",
"0.6101863",
"0.60908496",
"0.6082094",
"0.6061309",
"0.6053251",
"0.60446364",
"0.60395753",
"0.6020808",
"0.5992299"... | 0.0 | -1 |
return encoder outputs with shape (N, T1, d_model) | def yyCV(g4y1, CLda, oGOb, hC9O, ftct, hfjP, lo24, Y9ns, GPDw=False):
with ZylS.variable_scope('encoder', reuse=ZylS.AUTO_REUSE):
mktQ = g4y1
for YRbF in range(CLda):
with ZylS.variable_scope('num_layer_'.format(YRbF), reuse=ZylS.AUTO_REUSE):
mktQ = g9SZ(queries=mktQ, key... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gl6n(g4y1, svPB=10, LqUg=256):\n Ot1W = 3\n KUnM = 64\n WKvO, N3C1 = g4y1\n LVAh = yHwh(filters=KUnM, kernel_size=Ot1W, padding='same', activation='relu')(WKvO)\n LVAh = BzBX()(LVAh)\n LVAh = yHwh(filters=KUnM, kernel_size=Ot1W, padding='same', activation='relu')(LVAh)\n LVAh = BzBX()(LVAh... | [
"0.67865187",
"0.67533463",
"0.66786546",
"0.6640481",
"0.66386175",
"0.66386175",
"0.66386175",
"0.6592727",
"0.65391594",
"0.651235",
"0.651235",
"0.6509234",
"0.6498982",
"0.6474493",
"0.64598256",
"0.6452743",
"0.6439305",
"0.64207447",
"0.6396797",
"0.63927114",
"0.63917... | 0.6780049 | 1 |
Return the state attributes. | def R1i3(YKHO):
if YKHO._times is not None:
return {G2bE: YKHO._times[0], n77v: YKHO._times[1], fUX1: YKHO._from, VOkS: YKHO._to, Enh8: '{}'.format(':'.join(str(YKHO._times[2]).split(':')[:2])), PlJk: eLt7} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._state_attrs",
"def upgy(YKHO):\n nPrm = {}\n return nPrm",
"def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat... | [
"0.9143806",
"0.8802095",
"0.8796065",
"0.85617536",
"0.84979665",
"0.84979665",
"0.84034306",
"0.838496",
"0.8384177",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.836618",
"0.8365354",
"0.8365354",
"0.8365354",
"0.83578205",
"0.8335189",
"0.8335189",
"0.8335189",
"0... | 0.0 | -1 |
test if api can post a question to database | def be2A(YKHO):
Ylbp = YKHO.tester.post('/api/v1/question', data=YKHO.new_question)
YKHO.assertEqual(Ylbp.status_code, 201)
YKHO.assertIn('question posted successfully', str(Ylbp.data))
AX4T = YKHO.tester.post('/api/v1/question', data=YKHO.new_question1)
YKHO.assertEqual(AX4T.status_code, 400)
D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBLl(YKHO):\n geh0 = YKHO.client.post('/api/v1/register', data=qQXR.dumps(dict(first_name='joyce', last_name='korir', username='joykorry', email='joy@gmail.com', password='joy')), content_type='application/json')\n geh0 = YKHO.client.post('/api/v1/login', data=qQXR.dumps(dict(username_or_email='joykorry'... | [
"0.77964765",
"0.77082825",
"0.75820005",
"0.74936724",
"0.72648716",
"0.712346",
"0.7116071",
"0.71014965",
"0.7021678",
"0.70160246",
"0.6969026",
"0.6931698",
"0.6902563",
"0.6893278",
"0.68885183",
"0.68798614",
"0.68134004",
"0.678862",
"0.6745056",
"0.6736561",
"0.67328... | 0.7377317 | 4 |
Return the orthogonal DCTII/DCTIII matrix of size NxK. For computing or inverting MFCCs, N is the number of logpowerspectrum bins while K is the number of cepstra. | def ulrD(ywwl, nMvt, SVYz, YIAH=True):
YZ0U = XTiz.zeros((ywwl, nMvt), 'double')
for exwG in range(0, ywwl):
for G1Hx in range(0, nMvt):
YZ0U[exwG, G1Hx] = XTiz.cos(SVYz * (exwG + 0.5) * G1Hx)
if YIAH:
YZ0U[:, 0] = YZ0U[:, 0] * 1.0 / XTiz.sqrt(2)
return YZ0U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OkRo(ywwl):\n Nq1b = oyIN.ones((ywwl, ywwl)) / ywwl ** 0.5\n q7In = (oyIN.arange(0, ywwl, 1) + 0.5) * (oyIN.pi / ywwl)\n Oa1e = (2 / ywwl) ** 0.5\n for YRbF in range(1, ywwl):\n Nq1b[YRbF, :] = Oa1e * oyIN.cos(YRbF * q7In)\n return Nq1b",
"def JKAK(ywwl):\n Kt_s = []\n Kt_s.append... | [
"0.6961097",
"0.69110125",
"0.66488034",
"0.6628776",
"0.6627623",
"0.6223379",
"0.61997235",
"0.61857176",
"0.6175493",
"0.61745775",
"0.61541575",
"0.61439306",
"0.6115697",
"0.6027617",
"0.5981684",
"0.590925",
"0.58435297",
"0.58273846",
"0.5741069",
"0.57312775",
"0.5706... | 0.65776885 | 5 |
Determines the number of MarkedQuestion pools in this quiz. Is called when MarkedQuestions are added/edited/deleted from the quiz. | def kQek(YKHO):
zSv7 = list(YKHO.markedquestion_set.all().values_list('category', flat=True))
zSv7 = list(set(zSv7))
YKHO.cat_list = zSv7
YKHO.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZphR(YKHO):\n return YKHO.question_set.count()",
"def CvAi(YKHO):\n return len(YKHO.questions)",
"def DHdC(YKHO) -> int:\n return YKHO._max_qubit_id + 1",
"def aTDx(YKHO):\n ssMU = 0\n for mS46 in YKHO.members:\n ssMU += len(mS46.questions_asked)\n return ssMU\n 'This would wo... | [
"0.70740455",
"0.6820281",
"0.6804919",
"0.6774321",
"0.67408514",
"0.6737058",
"0.6695921",
"0.66312283",
"0.6537157",
"0.6508517",
"0.6492451",
"0.64661235",
"0.64424545",
"0.64283574",
"0.6414339",
"0.64061123",
"0.6396178",
"0.63615507",
"0.6360543",
"0.6348605",
"0.63445... | 0.0 | -1 |
Updates the quiz to which this belongs, and updates that quiz's attributes as well. Called when adding/editing/deleting a MarkedQuestion. | def QdZT(YKHO, lvF5):
YKHO.quiz = lvF5
YKHO.save()
lvF5.update_out_of() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ITwz(YKHO, **B2fa):\n geh0 = YKHO._requester.request('PUT', 'courses/{}/quizzes/{}/questions/{}'.format(YKHO.course_id, YKHO.quiz_id, YKHO.id), _kwargs=zaL9(**B2fa))\n zs78 = geh0.json()\n zs78.update({'course_id': YKHO.course_id})\n super(hrD0, YKHO).set_attributes(zs78)\n return YKHO",
"def ... | [
"0.76926094",
"0.6437461",
"0.6348233",
"0.60879517",
"0.60051024",
"0.5952329",
"0.5938465",
"0.588744",
"0.5887397",
"0.58789396",
"0.58727336",
"0.57928604",
"0.57751",
"0.57719797",
"0.57410496",
"0.5668779",
"0.56581753",
"0.5619103",
"0.557274",
"0.55476606",
"0.5503790... | 0.7856275 | 0 |
Returns a random choice | def R0oI(YKHO):
return tuKI.choice(YKHO.choices.split(':')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Acvy(*qIxc):\n return tuKI.choice(qIxc)",
"def azh2(*qIxc):\n return tuKI.choice(qIxc)",
"def Acvy(YKHO):\n return tuKI.choice(YKHO)",
"def Q0Ir(**B2fa):\n return tuKI.choice(['HIT', 'STAND'])",
"def y0Fi(YKHO):\n return Acvy(YKHO._contents)",
"def z_cu(YKHO):\n mrPm = YKHO.constrai... | [
"0.8357003",
"0.83214563",
"0.83040124",
"0.82308215",
"0.8165769",
"0.8113121",
"0.80416214",
"0.8019848",
"0.7993154",
"0.7957142",
"0.7947733",
"0.7938372",
"0.79337764",
"0.79337764",
"0.79337764",
"0.784281",
"0.7777465",
"0.77164364",
"0.7716273",
"0.77005625",
"0.76819... | 0.8252044 | 3 |
Get user with specific email. | def ry5P(YKHO):
YKHO.curr.execute(' SELECT candidate, COUNT(*) from voters GROUP BY candidate')
SkC9 = YKHO.curr.fetchone()
YKHO.conn.commit()
YKHO.curr.close()
return qQXR.dumps(SkC9, default=str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()",
"def CYTf(Emd4, D3lj):\n for hbFX in NCls.users:\n CBIr = NCls.users.get(hbFX)\n if CBIr.email == D3lj:\n return CBIr\n return None",
"def CYTf(D3lj):\n xDcj = 'SELECT * FROM use... | [
"0.8986659",
"0.8755124",
"0.87139165",
"0.8687542",
"0.86694324",
"0.8616918",
"0.86119753",
"0.86119753",
"0.8610794",
"0.8601092",
"0.855524",
"0.85535693",
"0.854921",
"0.85428745",
"0.85400105",
"0.8527533",
"0.85202074",
"0.8516519",
"0.85127723",
"0.84935135",
"0.84584... | 0.0 | -1 |
Get a JSONready representation of this Substitution. | def NMoC(YKHO):
Ljbb = {}
if YKHO.key is not None and YKHO.value is not None:
Ljbb[YKHO.key] = YKHO.value
return Ljbb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)",
"def qQXR(YKHO):\n ... | [
"0.72281927",
"0.72281927",
"0.72281927",
"0.72281927",
"0.72281927",
"0.72281927",
"0.71459234",
"0.71297985",
"0.71297985",
"0.71297985",
"0.71137345",
"0.70618474",
"0.7030696",
"0.6994764",
"0.69905496",
"0.69905496",
"0.6986494",
"0.6973889",
"0.69608605",
"0.6946865",
"... | 0.0 | -1 |
Get all directories below a given path. | def _qMM(pmON):
Aofo = []
for tk5Y, iIh5, u5_R in Hy7s.walk(pmON):
iIh5.sort()
for TLI7 in iIh5:
Aofo.append(Hy7s.path.join(tk5Y, TLI7))
Aofo.sort()
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOyN(pmON):\n return [ZfUD.resolve() for ZfUD in pmON.iterdir() if ZfUD.is_dir()]",
"def Pduu(pmON):\n return [nUeQ for nUeQ in Hy7s.listdir(pmON) if Hy7s.path.isdir(Hy7s.path.join(pmON, nUeQ))]",
"def MDiA(pmON):\n vcgQ = []\n for tk5Y, AQSv, RRlC in Hy7s.walk(pmON):\n vcgQ.extend(AQSv)... | [
"0.79097074",
"0.7743467",
"0.7683369",
"0.7481558",
"0.7472875",
"0.7410635",
"0.73680806",
"0.72555834",
"0.72157943",
"0.7137825",
"0.70732427",
"0.70729536",
"0.7069769",
"0.70631516",
"0.70382977",
"0.7029328",
"0.70270926",
"0.70253456",
"0.7016716",
"0.6977608",
"0.696... | 0.7043378 | 14 |
Checks if two trees have identical shape and contents. It does so by checking if the inorder and preorder contents of both the trees is identical. | def xa14(YKHO, Elif: object) -> bool:
if not isinstance(Elif, lzIp):
return NotImplemented
for Exe0, FYCJ in igF0(YKHO, Elif):
if Exe0.value != FYCJ.value:
return False
for Exe0, FYCJ in igF0(YKHO.traverse_preorder(), Elif.traverse_preorder()):
if Exe0.value != FYCJ.value... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hHbZ(YKHO, zO88):\n return YKHO.set_subtree(YKHO.root) == zO88.set_subtree(zO88.root)",
"def hHbZ(r7jQ, CHTE):\n if r7jQ is None and CHTE is None:\n return True\n if r7jQ != None and CHTE != None:\n orx0 = r7jQ.data == CHTE.data\n wPHn = hHbZ(r7jQ.left, CHTE.left)\n b3Tg ... | [
"0.76313657",
"0.7414584",
"0.7226666",
"0.7076998",
"0.70299816",
"0.68902946",
"0.6854071",
"0.6822648",
"0.6809219",
"0.6809219",
"0.6724807",
"0.6695893",
"0.6679936",
"0.6679003",
"0.6632877",
"0.66061825",
"0.65415955",
"0.6530098",
"0.65213525",
"0.6499796",
"0.648639"... | 0.6584799 | 16 |
Create an instance with the provided dimensions. >>> from systa.types import Rect >>> Rect.from_coords(0, 0, 10, 10) Rect(origin=Point(x=0, y=0), end=Point(x=10, y=10)) | def h_YX(o4D3: int, si3g: int, ajwV: int, skBL: int) -> 'Rect':
return rbZs(PvyL(o4D3, si3g), PvyL(ajwV, skBL)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h_YX(Emd4, WKvO: int, LVAh: int, yzQ0: int, MKlR: int) -> 'Rect':\n return Emd4(position=PvyL(WKvO, LVAh), size=DEza(yzQ0, MKlR))",
"def FHs4(Emd4, jNOo: List[int]) -> 'Rect':\n return Emd4(position=PvyL(jNOo[0], jNOo[1]), size=DEza(jNOo[2], jNOo[3]))",
"def l56d(Emd4, ShLW: Point, XOP0: Point) -> 'R... | [
"0.8118267",
"0.72542876",
"0.7004988",
"0.6989105",
"0.6836723",
"0.67073095",
"0.67004085",
"0.6638382",
"0.659348",
"0.6542281",
"0.64701605",
"0.6352002",
"0.6334583",
"0.6276187",
"0.6264689",
"0.6199311",
"0.6162933",
"0.61608654",
"0.61556554",
"0.61527514",
"0.6152274... | 0.7909479 | 1 |
Is the provided rectangle below this ``Rect``? The edges cannot overlap. | def mft3(YKHO, mawX: 'Rect') -> bool:
return YKHO.top_edge > mawX.bottom_edge | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cSWq(YKHO, mawX: 'Rect') -> bool:\n return YKHO.bottom_edge < mawX.top_edge",
"def w6Us(YKHO):\n iwag = x7Ls(min_x=7, max_x=10, min_y=1, max_y=4)\n YKHO.assertFalse(YKHO.rect.overlaps_rectangle(iwag))\n YKHO.assertFalse(iwag.overlaps_rectangle(YKHO.rect))",
"def iG8B(YKHO):\n iwag = x7Ls(min... | [
"0.8254891",
"0.76318467",
"0.7425153",
"0.74085766",
"0.7250674",
"0.72330225",
"0.71931076",
"0.7184497",
"0.71299",
"0.71058124",
"0.71015114",
"0.70798284",
"0.7039745",
"0.7017891",
"0.70113003",
"0.6951247",
"0.6935828",
"0.6920468",
"0.6904579",
"0.6866028",
"0.6862367... | 0.8620343 | 0 |
Initializes the databasehandler. Builds the connectionstring and tries to connect to the database. Creates with the given metadata tables which do not already exist. Won't make a new table if the name already exists, so changes to the tablestructure have to be made by hand in the database or the table has to be deleted... | def FIMM(YKHO, yIVm: MetaData, xkJ7: str, x0hE: str, BaHi: str, jTXt: str, KcEq: str, bIwZ: str, wnys: str, JKpE: int=1, pmON: Optional[str]=None, dsE5: bool=False):
if not pmON:
pmON = Hy7s.getcwd()
Jydf = {'debug': 'sqlite://', 'sqlite': f'{xkJ7}:///{pmON}/{wnys}.db', 'postgresql': f'{xkJ7}+{x0hE}://{... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n eHpk = WyYT()\n fn50(eHpk)\n YKHO.Session = FJ3D(bind=eHpk)",
"def Qaz9(YKHO):\n try:\n i_Aq.metadata.bind = eHpk\n i_Aq.metadata.create_all(tables=[X1CD.__table__, W8pt.__table__, RWCF.__table__, HeLx.__table__, wk0V.__table__, HWVl.__table__])\n except ValueError:... | [
"0.70817566",
"0.704125",
"0.69862956",
"0.690627",
"0.6902509",
"0.6891993",
"0.6871026",
"0.680302",
"0.67954093",
"0.67954093",
"0.67954093",
"0.67954093",
"0.67954093",
"0.67954093",
"0.6750685",
"0.6701856",
"0.6694937",
"0.66804785",
"0.6672139",
"0.66684294",
"0.665796... | 0.0 | -1 |
Returns all ExchangeCurrencyPairs for the given exchange if they fit any currency pairs in the given list of dictionaries. | def uqTT(YKHO, cJHQ: str, UNCa: List[Dict[str, str]]) -> x1iM[O8Ks]:
MH1B: x1iM[O8Ks] = list()
if cJHQ:
XDJ1: int = YKHO.get_exchange_id(cJHQ)
with YKHO.session_scope() as cuiw:
if UNCa is not None:
for ex5I in UNCa:
huVC = ex5I['first']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tPH8(YKHO, cJHQ: str, UNCa: List[Dict[str, str]], ZlsE: Union[List[str], str], Hfuz: Union[List[str], str]) -> x1iM[O8Ks]:\n if isinstance(ZlsE, str):\n ZlsE = ljJn(ZlsE)\n if isinstance(Hfuz, str):\n Hfuz = ljJn(Hfuz)\n MH1B: x1iM[O8Ks] = list()\n if UNCa:\n if 'all' in UNCa:\... | [
"0.72089094",
"0.63505733",
"0.6307506",
"0.6300137",
"0.6247357",
"0.62465286",
"0.59878725",
"0.59453297",
"0.59102046",
"0.58449215",
"0.5747201",
"0.57303303",
"0.5712616",
"0.5699516",
"0.569925",
"0.569797",
"0.56389445",
"0.5558345",
"0.5552526",
"0.5435736",
"0.538988... | 0.7185158 | 1 |
Returns all currencypairs for the given exchange that have any of the given currencies as the first currency. | def UEns(YKHO, cJHQ: str, oz8Q: List[str]) -> x1iM[O8Ks]:
if isinstance(oz8Q, str):
oz8Q = [oz8Q]
RKD4: x1iM[O8Ks] = list()
if cJHQ is not None and cJHQ:
XDJ1: int = YKHO.get_exchange_id(cJHQ)
with YKHO.session_scope() as cuiw:
if oz8Q is not None:
for FdP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tPH8(YKHO, cJHQ: str, UNCa: List[Dict[str, str]], ZlsE: Union[List[str], str], Hfuz: Union[List[str], str]) -> x1iM[O8Ks]:\n if isinstance(ZlsE, str):\n ZlsE = ljJn(ZlsE)\n if isinstance(Hfuz, str):\n Hfuz = ljJn(Hfuz)\n MH1B: x1iM[O8Ks] = list()\n if UNCa:\n if 'all' in UNCa:\... | [
"0.7051618",
"0.69488305",
"0.6786199",
"0.61884916",
"0.60224557",
"0.57781017",
"0.5735181",
"0.5727624",
"0.56340927",
"0.55414486",
"0.5465539",
"0.5350811",
"0.5300078",
"0.52447784",
"0.5175318",
"0.51629597",
"0.5148848",
"0.51340836",
"0.51118225",
"0.5109794",
"0.502... | 0.7522742 | 0 |
Sets the configuration_name of this JIRAConf. | def zpob(YKHO, zpob):
if zpob is not None and len(zpob) > 2000:
raise ValueError('Invalid value for `configuration_name`, length must be less than or equal to `2000`')
if zpob is not None and len(zpob) < 1:
raise ValueError('Invalid value for `configuration_name`, length must be greater than or ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nlfe(YKHO, pV5O, bo34, Zu8l):\n raise NotImplementedError('set_logger_config must be implemented by subclass')",
"def TcOB(YKHO, TcOB):\n YKHO._volume_configuration_name = TcOB",
"def lEZe(YKHO, GPtr):\n YKHO.name_ = GPtr.get('name')\n return True",
"def Zu8l(YKHO):\n return None",
"def ... | [
"0.6775628",
"0.65370995",
"0.6387022",
"0.6336534",
"0.626865",
"0.62242615",
"0.6203192",
"0.6136119",
"0.6106983",
"0.6101805",
"0.60264134",
"0.59899396",
"0.5988852",
"0.5937798",
"0.5937798",
"0.5937798",
"0.5932295",
"0.5929975",
"0.59289336",
"0.5909115",
"0.5899768",... | 0.70600694 | 0 |
Sets the high_mapping_severity of this JIRAConf. | def wskT(YKHO, wskT):
if wskT is None:
raise ValueError('Invalid value for `high_mapping_severity`, must not be `None`')
if wskT is not None and len(wskT) > 200:
raise ValueError('Invalid value for `high_mapping_severity`, length must be less than or equal to `200`')
if wskT is not None and ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R6Gt(YKHO, R6Gt):\n if R6Gt is None:\n raise ValueError('Invalid value for `low_mapping_severity`, must not be `None`')\n if R6Gt is not None and len(R6Gt) > 200:\n raise ValueError('Invalid value for `low_mapping_severity`, length must be less than or equal to `200`')\n if R6Gt is not N... | [
"0.6124717",
"0.6051987",
"0.5922596",
"0.5890557",
"0.5890557",
"0.5811667",
"0.5710816",
"0.5710578",
"0.56622666",
"0.5531915",
"0.55270594",
"0.5455044",
"0.53964126",
"0.5370033",
"0.52475184",
"0.51392597",
"0.50914526",
"0.5080406",
"0.5042963",
"0.5042333",
"0.5025971... | 0.7609391 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8393104",
"0.8355197",
"0.8295551",
"0.8133039",
"0.811476",
"0.8100177",
"0.80994433",
"0.80982935",
"0.80982935",
"0.8093244",
"0.8093244",
"0.8093244",
"0.8093244",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.80671525",
"0.80597436",
"0.8057952",
"0... | 0.0 | -1 |
retrieves a registered operand by it's name | def Wnb9(YKHO, mWFP):
BWXx = YKHO.operands[mWFP]
if isinstance(BWXx, exCv) and ('model.' in BWXx or 'identifier.' in BWXx):
y0cW, hGI9 = YKHO.operands[mWFP].split('.', 1)
if y0cW == 'model':
return getattr(YKHO.record, hGI9, None)
elif y0cW == 'identifier':
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OfrP(mWFP):\n VWe_ = mWFP.index('/')\n rlUT = mWFP[:VWe_]\n YfwU = mWFP[VWe_ + 1:]\n kT1P = GVwU[rlUT]\n return kT1P[YfwU]",
"def NMoC(yhyn):\n return GdvF(yhyn)",
"def TBDi(yhyn, pan_):\n if pan_ is None:\n pan_ = AvhY\n if not isinstance(pan_, str):\n raise TypeError... | [
"0.74104315",
"0.7311787",
"0.7189876",
"0.7017871",
"0.67716235",
"0.66961193",
"0.66961193",
"0.66078246",
"0.65898556",
"0.65181285",
"0.6449884",
"0.64474225",
"0.6434463",
"0.6407894",
"0.6407894",
"0.63749355",
"0.6225428",
"0.6211984",
"0.6149125",
"0.61483574",
"0.614... | 0.7786876 | 0 |
Reformat original data into a date keyed dictionary of daily weather attributes. | def mR4Z(YKHO, LUcQ):
nPrm = {}
try:
for AIu6 in LUcQ:
_c1T = qcWV.strptime(AIu6['date'], '%Y-%m-%dT%H:%M:%S')
nPrm[_c1T] = AIu6['dailyAttributes']
except KeyError:
raise KeyError('original data dictionary is not properly formatted')
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WEsh(nPrm):\n return [{uAGj: bTKY.time.isoformat(), vnQs: bTKY.temperature_high, P1Jd: bTKY.temperature_low, TGep: MCr_(bTKY.precip_intensity, 24), HUSd: bTKY.wind_speed, tHK0: bTKY.wind_bearing, Zrmb: QmTQ.get(bTKY.icon)} for bTKY in nPrm]",
"def Eu_Z(yYDK: dict) -> dict:\n nPrm = {}\n for CjKC in ... | [
"0.6961442",
"0.65362895",
"0.65322393",
"0.64861566",
"0.64227813",
"0.6404376",
"0.6390434",
"0.6383467",
"0.63708407",
"0.6337141",
"0.6309748",
"0.6279449",
"0.62782806",
"0.6167256",
"0.61026037",
"0.6101554",
"0.6051932",
"0.60455227",
"0.60378724",
"0.6034266",
"0.6008... | 0.80269575 | 0 |
Clears the screen and print the game logo and amount of allowed tries | def CLnD():
Emd4 = lambda: Hy7s.system('cls')
Emd4()
print(NHHw, '\nAmount of allowed tries:', L6le) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U100():\n Y7Bk(Qjle)",
"def GQwF():\n nPgQ()\n uIcm()",
"def yPVe() -> None:\n print('\\x1bc', end='')",
"def yPVe(YKHO):\n YKHO.game_window.fill((0, 0, 0))",
"def yPVe():\n print('\\n' * 5 + '******************************************')\n return",
"def yPVe(YKHO):\n YKHO._scr... | [
"0.7397147",
"0.7386386",
"0.7357704",
"0.7275962",
"0.7158066",
"0.71392566",
"0.70376146",
"0.7034929",
"0.7032549",
"0.69961476",
"0.6991962",
"0.69228804",
"0.69124293",
"0.69098157",
"0.6883241",
"0.68781525",
"0.68753564",
"0.6854391",
"0.6775512",
"0.67413175",
"0.6738... | 0.8050298 | 0 |
Return array of items, sorted in ascending order using quick sort method. | def lguw(DumB):
ODP9 = []
gqRb = []
ZKH3 = []
if len(DumB) <= 1:
return DumB
else:
csQL = DumB[0]
for YRbF in DumB:
if YRbF < csQL:
gqRb.append(YRbF)
elif YRbF > csQL:
ODP9.append(YRbF)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lguw(DumB):\n if len(DumB) > 1:\n jPVB = len(DumB) // 2\n VSbE = []\n nm36 = []\n for YRbF, wEf2 in enumerate(DumB):\n if YRbF != jPVB:\n if wEf2 < DumB[jPVB]:\n VSbE.append(wEf2)\n else:\n nm36.append... | [
"0.7776141",
"0.76534593",
"0.75191027",
"0.7430865",
"0.739398",
"0.7364369",
"0.73426056",
"0.71777004",
"0.7172874",
"0.7077009",
"0.70319813",
"0.69973516",
"0.69474024",
"0.69411254",
"0.69251215",
"0.69091743",
"0.6886616",
"0.688387",
"0.68827236",
"0.68804044",
"0.686... | 0.7642197 | 2 |
Find the node with minimium key in a BSTree subtree. root the subtree's root node. tree the tree instance. | def l1kP(tk5Y, J_Es):
if J_Es._node_empty(tk5Y):
raise ValueError('Root node should not be None.')
if J_Es._node_empty(tk5Y.left):
return tk5Y
Q6kx = tk5Y
while True:
if not J_Es._node_empty(Q6kx[0]):
Q6kx = Q6kx[0]
continue
else:
break... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def neBz(YKHO, H5ew, tk5Y):\n if YKHO.length is 0:\n return 0\n elif YKHO.tree[tk5Y].key == H5ew:\n YKHO.splay(tk5Y)\n return tk5Y\n elif YKHO.tree[tk5Y].key > H5ew:\n Zt9P = YKHO.tree[tk5Y].left_child\n if Zt9P is not None and YKHO.tree[Zt9P].key is not None:\n ... | [
"0.6858408",
"0.67134583",
"0.6688129",
"0.6574996",
"0.6481107",
"0.6411383",
"0.63566756",
"0.6328455",
"0.63168985",
"0.63088876",
"0.62801504",
"0.6273879",
"0.6251316",
"0.6226926",
"0.6223994",
"0.6215293",
"0.6205178",
"0.619473",
"0.61832786",
"0.6176121",
"0.61552703... | 0.6585171 | 3 |
Find the node with maximium key in a BSTree subtree. root the subtree's root node. tree the tree instance. | def UBzH(tk5Y, J_Es):
if J_Es._node_empty(tk5Y):
raise ValueError('root node should not be None.')
if J_Es._node_empty(tk5Y.right):
return tk5Y
Q6kx = tk5Y
while True:
if not J_Es._node_empty(Q6kx[1]):
Q6kx = Q6kx[1]
continue
else:
brea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ipPO(YKHO):\n \"\"\"Takes no arguments.\n Returns the largest key from a node.\"\"\"\n jvSB = YKHO\n while jvSB.right:\n jvSB = jvSB.right\n return jvSB.key",
"def ipPO(J_Es):\n if J_Es is None:\n return (None, None)\n if J_Es.right is None:\n return (J_Es.key, J... | [
"0.73431027",
"0.7054691",
"0.6985454",
"0.68848675",
"0.6850796",
"0.6801734",
"0.6771597",
"0.6708161",
"0.66799235",
"0.66789794",
"0.6650793",
"0.6641573",
"0.6622364",
"0.6571746",
"0.6553954",
"0.6542868",
"0.650821",
"0.65068907",
"0.65000707",
"0.6484103",
"0.64652723... | 0.7184828 | 1 |
Searches for a node with the specified key. Raise KeyError if the node doesn't exist. | def TgwQ(YKHO, H5ew):
if YKHO._node_empty(YKHO._root):
raise ValueError('Tree is empty.')
_AKB = None
XSoh = 0
Q6kx = YKHO.root
while True:
if H5ew == Q6kx.key:
return Q6kx
else:
XSoh = 0 if H5ew <= Q6kx.key else 1
_AKB = Q6kx
Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8sE(YKHO, H5ew, Q6kx=None):\n Q6kx = YKHO._root() if Q6kx is None else Q6kx\n if not isinstance(Q6kx, YKHO._Node):\n return Q6kx\n if H5ew == Q6kx._key or YKHO._is_leaf(Q6kx):\n return Q6kx\n if H5ew > Q6kx._key and YKHO._right(Q6kx):\n return YKHO._search_node(H5ew, YKHO._rig... | [
"0.7865524",
"0.7738571",
"0.7705589",
"0.7562851",
"0.7529154",
"0.7426118",
"0.7398232",
"0.738261",
"0.7360436",
"0.7297397",
"0.72835267",
"0.7253745",
"0.7240553",
"0.72238594",
"0.72227156",
"0.7221945",
"0.7217647",
"0.7211839",
"0.71966994",
"0.7150384",
"0.71406907",... | 0.80416024 | 0 |
| | (y) (x) < this is a tree node. / \ left rotate / \ (x) c < a (y) / \ / \ a b b c < this is a subtree. The paramater "node" is the x node in the right tree. | def ODm0(YKHO, Q6kx):
if YKHO._node_empty(Q6kx.right):
raise ValueError("node's right child shouldn't be None.")
esTa = Q6kx.right
_AKB = Q6kx.parent
esTa.parent = Q6kx.parent
esTa.height = Q6kx.height
if not YKHO._is_root(Q6kx):
if Q6kx is _AKB.left:
_AKB.left = esTa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o435(YKHO, Q6kx):\n if Q6kx is None:\n return\n if Q6kx.left is YKHO.black_leaf:\n return\n XP5J = YKHO.parent(Q6kx)\n WKvO = Q6kx\n LVAh = Q6kx.left\n if XP5J is not None:\n if WKvO == XP5J.left:\n XP5J.left = LVAh\n else:\n XP5J.right = LVAh... | [
"0.80389535",
"0.78544176",
"0.78387266",
"0.7815686",
"0.7782874",
"0.7773491",
"0.77730095",
"0.7749059",
"0.77251655",
"0.77077115",
"0.76653594",
"0.7658744",
"0.76482886",
"0.75967836",
"0.75643873",
"0.75592285",
"0.75138074",
"0.7508615",
"0.74506027",
"0.7437466",
"0.... | 0.72932917 | 26 |
Random string generator for slugs and passwords | def e7Tf(u54L):
bZe3 = ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in range(u54L)))
return bZe3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NlX3():\n from random import sample\n o61b = vIwR.punctuation\n LSh8 = vIwR.ascii_lowercase\n CN9P = vIwR.ascii_uppercase\n XCb3 = vIwR.digits\n yokr = sample(LSh8, 1) + sample(CN9P, 1) + sample(XCb3, 1) + sample(o61b, 1) + sample(LSh8 + CN9P + XCb3 + o61b, 16)\n return ''.join(sample(yokr... | [
"0.78445965",
"0.7639974",
"0.7593704",
"0.7591523",
"0.75701576",
"0.7500481",
"0.74527526",
"0.7421908",
"0.7404011",
"0.7386087",
"0.7379546",
"0.7358634",
"0.7351621",
"0.734852",
"0.73186636",
"0.72997934",
"0.729213",
"0.7289623",
"0.7276259",
"0.72739226",
"0.7247072",... | 0.0 | -1 |
Set initial value for the `needs_approval` field based on the input Channel and UserProfile objects. | def FIMM(YKHO, YwkQ, SGll, *qIxc, **B2fa):
YKHO.channel = YwkQ
YKHO.user_profile = SGll
super(Qf7H, YKHO).__init__(*qIxc, **B2fa)
try:
YKHO.channel_option = KaGo.objects.get(channel=YwkQ, user_profile=SGll)
except KaGo.DoesNotExist:
YKHO.channel_option = KaGo(channel=YwkQ, user_profi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, chz6: Optional[pulumi.Input[bool]]=None):\n if chz6 is not None:\n qe4Y.set(Ro_8, 'approval_required', chz6)",
"def chz6(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'approval_required')",
"def DClC(YKHO) -> h8nf['outputs.PrivateLinkServicePropertiesResponseAutoApprov... | [
"0.63533485",
"0.5981711",
"0.55994433",
"0.5553067",
"0.55025655",
"0.54909974",
"0.54807556",
"0.5429312",
"0.5429312",
"0.54162997",
"0.5341162",
"0.53060013",
"0.52778655",
"0.5209373",
"0.5188251",
"0.518245",
"0.51781774",
"0.5167048",
"0.5158068",
"0.5157076",
"0.51254... | 0.63730025 | 0 |
Returns the directory containing the pretf.workflow.py file, or the current directory if there is none. | def tlxW(YKHO) -> GkAb:
eIHu = PfxZ()
if eIHu:
return eIHu.parent
else:
return YKHO.cwd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWOZ(YKHO):\n if not YKHO._workflowdir:\n kbGe = [Hy7s.path.abspath(Hy7s.getcwd()), Hy7s.path.dirname(Hy7s.path.abspath(Hy7s.path.dirname(xAKo)))]\n for pGQh in kbGe:\n while True:\n if Hy7s.path.exists(Hy7s.path.join(pGQh, 'info.plist')):\n YKHO._w... | [
"0.78630143",
"0.77634",
"0.7687572",
"0.7624585",
"0.75878775",
"0.7487222",
"0.7485134",
"0.7483224",
"0.7448183",
"0.7442357",
"0.7437937",
"0.7427972",
"0.73856467",
"0.73856467",
"0.7374038",
"0.73600215",
"0.73410153",
"0.73391044",
"0.73075765",
"0.73016286",
"0.729367... | 0.0 | -1 |
Create losses for discriminator and generator. Inputs disc_real Logits output by discriminator applied to unwarper output disc_fake Logits output by discriminator applied to generator output wd_mult Weight decay amount. Outputs gen_loss Generator loss disc_loss Discriminator loss | def Qpq2(kqvg, DDka, siT_):
BdJu = [WKvO for WKvO in ZylS.get_collection(ZylS.GraphKeys.GLOBAL_VARIABLES, scope='generator') if 'kernel' in WKvO.name]
XXRk = [WKvO for WKvO in ZylS.get_collection(ZylS.GraphKeys.GLOBAL_VARIABLES, scope='discriminator') if 'kernel' in WKvO.name]
with ZylS.variable_scope('weig... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QDOO(Yw_3):\n yJgu = c2Yh(ARTs, training=False)\n SZIZ = nfgB(Yw_3, training=False)\n JQTb = nfgB(yJgu, training=False)\n v2T8 = qxwG(JQTb)\n ysqc = AOC4(SZIZ, JQTb)\n print(f'Loss G {v2T8:.6f} Loss D {ysqc:.6f}.')",
"def AOC4(L4D4, dOi_):\n qxD9 = ZLdM(ZylS.ones_like(L4D4), L4D4)\n m... | [
"0.72393095",
"0.7011802",
"0.70037615",
"0.68689066",
"0.6867189",
"0.68535554",
"0.67996967",
"0.6763593",
"0.6725608",
"0.6719676",
"0.6705103",
"0.6658056",
"0.6652414",
"0.661189",
"0.6588199",
"0.6568444",
"0.6555965",
"0.6545788",
"0.6539414",
"0.6537913",
"0.6531457",... | 0.8039396 | 0 |
Convert typename to type object | def FRul(QNO6):
SnBA = {'bool': bool, 'int': int, 'float': float, 'str': exCv, 'basestring': exCv, 'list': list}
return SnBA.get(QNO6, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L1QN(YEnM, QNO6: str):\n try:\n if 'int' == QNO6:\n return int(YEnM)\n elif 'float' == QNO6:\n return float(YEnM)\n elif 'str' == QNO6:\n return str(YEnM)\n elif 'bool' == QNO6:\n return bool(YEnM)\n except ValueError as e:\n ... | [
"0.7462392",
"0.66672564",
"0.6602058",
"0.6523698",
"0.65088403",
"0.64965916",
"0.6480833",
"0.6372936",
"0.62783515",
"0.625488",
"0.62379503",
"0.6236978",
"0.6223592",
"0.6211047",
"0.6195565",
"0.61714566",
"0.61375386",
"0.61008596",
"0.6081414",
"0.60670805",
"0.60303... | 0.65586704 | 3 |
Scan the model.txt from the back to extract the 'pandas_categorical' field. This is a list of lists that stores the ordering of categories from the pd.DataFrame used for training. Storing this list is necessary as LightGBM encodes categories as integer indices and we need to guarantee that the mapping ( > ) is the same... | def m4_F(qaEx):
RWTq = 'pandas_categorical:'
Wn4R = Hy7s.path.getsize(qaEx)
xMdD = min(1024, Wn4R - 1)
ALbs = xMdD
Nqlg = []
with open(qaEx, 'rb') as eHNT:
while len(Nqlg) < 2 and ALbs < Wn4R:
if ALbs > Wn4R:
ALbs = Wn4R
eHNT.seek(-ALbs, Hy7s.SEEK_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r3tR(jQ3Z):\n fRn_ = jQ3Z.columns[jQ3Z.dtypes == 'object']\n return list(fRn_)",
"def XAEo(jQ3Z):\n pjtn = []\n for Z9rn in list(jQ3Z.columns):\n if jQ3Z[Z9rn].dtypes in ['object', 'str']:\n pjtn.append(Z9rn)\n return pjtn",
"def LusU(YKHO):\n B3kE = nu0g()\n ZLJ_ = l... | [
"0.67436194",
"0.67303526",
"0.6550234",
"0.65415925",
"0.6467866",
"0.6405364",
"0.6400908",
"0.63362914",
"0.62969697",
"0.62838787",
"0.6277152",
"0.6264787",
"0.6213437",
"0.621101",
"0.62007016",
"0.6162403",
"0.6157873",
"0.61481327",
"0.61144716",
"0.6098205",
"0.60741... | 0.7175752 | 0 |
Extract number of features, number of classes and number of trees of this model | def _c1m(qaEx):
Ylbp = {}
with open(qaEx, 'r') as eHNT:
for bGrB in range(3):
zFiD = eHNT.readline()
while zFiD and (not zFiD.startswith(('max_feature_idx', 'num_class', 'tree_sizes'))):
zFiD = eHNT.readline()
if zFiD.startswith('max_feature_idx'):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y55G(YKHO):\n if YKHO.is_classifier and len(YKHO.labels) > 2:\n return int(len(YKHO.model_dump_list) / len(YKHO.labels))\n return len(YKHO.model_dump_list)",
"def HhVR(YKHO) -> int:\n return YKHO.num_node_features",
"def psPJ(YKHO) -> int:\n return 0",
"def YnH_(YKHO):\n ROaS = 0\n ... | [
"0.72781134",
"0.7035594",
"0.70177376",
"0.69682026",
"0.6912042",
"0.6809376",
"0.67521584",
"0.674458",
"0.6730941",
"0.6725666",
"0.6700272",
"0.6692398",
"0.66211605",
"0.66115344",
"0.6580276",
"0.657506",
"0.65522045",
"0.6549467",
"0.6545309",
"0.65167725",
"0.6509396... | 0.59791094 | 91 |
Breaks down a urllike string into a list of tokens or words Takes in a string and breaks it up into its url components () If not a component can not be found it will be empty string Currently, ignoring query and parameter portions of the string Returns a list of words of the tokenized input string | def abFh(bD7m):
if bD7m == '':
return []
ys3h = KVWQ(bD7m)
zrIJ = ys3h.netloc
pmON = ys3h.path
NArs = ys3h.params
jY99 = zrIJ + pmON
rUIU = ['.', '|', ';', '?', '+', '=', '\\']
for SAEY in rUIU:
jY99 = jY99.replace(SAEY, '/')
Taf8 = jY99.split('/')
for eOtH in Taf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r11D(YKHO, l5Ny):\n l5Ny = ZbWC.sub('[^\\\\w]', ' ', l5Ny)\n hP19 = l5Ny.split(' ')\n hP19 = list(filter(None, hP19))\n return hP19",
"def wr3U(l5Ny):\n l5Ny = l5Ny.replace('\\n', ' ')\n l5Ny = l5Ny.replace('…', '')\n s2mk = l5Ny.split(' ')\n return [eOtH for eOtH in s2mk if not ziTW(... | [
"0.7419361",
"0.72768146",
"0.7076762",
"0.70174",
"0.6974771",
"0.69064814",
"0.67403805",
"0.6714757",
"0.66430867",
"0.6635458",
"0.6619013",
"0.6544722",
"0.6532275",
"0.6510454",
"0.64959127",
"0.6488137",
"0.64864147",
"0.647975",
"0.6459872",
"0.6418708",
"0.6411416",
... | 0.8239874 | 0 |
Verify that POST method is not allowed on imeiclassification api. | def uADL(H6Ho):
im04 = H6Ho.post(wHWU)
assert im04.status_code == 405
nPrm = qQXR.loads(im04.data.decode('utf-8'))
assert nPrm.get('message') == 'method not allowed' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S4m0(YKHO):\n Ylbp = YKHO.client.post(XiK1, {})\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)",
"def S4m0(YKHO):\n Ylbp = YKHO.client.post(XiK1, {})\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)",
"def U69V(YKHO):\n Ylbp = YKHO.api_client.pos... | [
"0.7776816",
"0.7776816",
"0.7696177",
"0.76857007",
"0.7683223",
"0.7603031",
"0.7603031",
"0.7603031",
"0.75767183",
"0.75752246",
"0.7486209",
"0.7367242",
"0.731132",
"0.7286485",
"0.72692925",
"0.7240636",
"0.7145957",
"0.7145957",
"0.7145957",
"0.70844203",
"0.70844203"... | 0.7640628 | 5 |
Verify that DELETE method is not allowed on imeiclassification api. | def vQCz(H6Ho):
im04 = H6Ho.delete(wHWU)
assert im04.status_code == 405
nPrm = qQXR.loads(im04.data.decode('utf-8'))
assert nPrm.get('message') == 'method not allowed' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bk9r(YKHO):\n geh0 = d4y1.delete(gxEw('post-upload'))\n rhwM = 'Method \"DELETE\" not allowed.'\n geh0.data['detail'][0] == rhwM\n assert geh0.status_code == jGRS.HTTP_405_METHOD_NOT_ALLOWED",
"def KxKw(YKHO):\n geh0 = YKHO.client().delete('/questions')\n YKHO.assertEqual(geh0.status_code, ... | [
"0.7787394",
"0.7540415",
"0.75389487",
"0.7416137",
"0.73933876",
"0.7376611",
"0.72875464",
"0.7253269",
"0.72293735",
"0.72075236",
"0.71389186",
"0.7085205",
"0.7051518",
"0.70455503",
"0.70125",
"0.70116633",
"0.7006599",
"0.69471073",
"0.69471073",
"0.69266033",
"0.6903... | 0.7789726 | 0 |
This function retrieves a list of the subreddits that have below the minimum count of subscribers that's needed for statistics. | def S8OS():
maOb = []
AJr9 = dwOY()
for finE in AJr9:
jvSB = AKPC(finE)
if jvSB < fvfo.min_s_stats:
maOb.append(finE)
return maOb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iHHN():\n fjwK = nx5k.query.filter(nx5k.id != 1)[:25]\n return fjwK",
"def zdW_(_5RM):\n zrIJ = 'https://www.reddit.com'\n pmON = '/r/{}/about.json'.format(_5RM)\n bD7m = '{}{}'.format(zrIJ, pmON)\n WBPg = {'user-agent': 'one-dope-boy', 'over18': 'yes'}\n geh0 = G4JS.get(bD7m, headers=WB... | [
"0.63908637",
"0.5974923",
"0.59654206",
"0.59555346",
"0.5915073",
"0.58966655",
"0.58878094",
"0.58824795",
"0.58675885",
"0.5859169",
"0.58434904",
"0.58359253",
"0.5820207",
"0.58165455",
"0.5812509",
"0.5801237",
"0.5786987",
"0.57859546",
"0.57726216",
"0.5765617",
"0.5... | 0.57632655 | 20 |
GetDeviceInformation() > DeviceInformation deviceInformation | def g2Vu(YKHO):
return UZpV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWuV(YKHO):\n return YKHO._device.device_info",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._device.device_info()",
"def GWuV(YKHO):\n return YKHO._api.device_info",
"def GWuV(YKHO):\n return YKHO._device_info",
"def GWuV(YKHO):\n return YKH... | [
"0.8274131",
"0.82266223",
"0.82266223",
"0.81807333",
"0.80689484",
"0.80689484",
"0.80689484",
"0.80689484",
"0.80689484",
"0.8054228",
"0.8032234",
"0.79886734",
"0.7966598",
"0.7875324",
"0.7845043",
"0.78447163",
"0.7825489",
"0.7789757",
"0.7783509",
"0.76966894",
"0.76... | 0.86753494 | 0 |
Tests sending a GET request to the server. Should result in a BAD MESSAGE | def CqLI(YKHO):
tO9_ = OnyA(path=sNXG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vMYd(R7S5):\n G9jH.debug(rOmR + R7S5)\n geh0 = G4JS.get(rOmR + R7S5)\n if geh0.status_code == 200 and 'Error Message' not in geh0.json().keys():\n return geh0\n raise Exception('bad stuff')",
"def e4S6(YKHO):\n YKHO.sock.sendall('GET\\n\\n'.encode())\n Ylbp = YKHO.sock.recv(1024).dec... | [
"0.7947372",
"0.78246486",
"0.7755729",
"0.7645856",
"0.7531095",
"0.75045764",
"0.74545497",
"0.7439704",
"0.73348284",
"0.7309714",
"0.7304279",
"0.7304279",
"0.7304279",
"0.7287006",
"0.72795796",
"0.72795796",
"0.72795796",
"0.72795796",
"0.72795796",
"0.72649616",
"0.726... | 0.0 | -1 |
Tests that a single PollRequest succeeds. | def fURo(YKHO):
_oWe = L0Ar.PollParameters()
zTi3 = L0Ar.PollRequest(message_id=CXFW(), collection_name='default', poll_parameters=_oWe)
tO9_ = OnyA('/services/test_poll_1/', zTi3.to_xml(), E_hp(ZyHj, False), Jdz4)
if len(tO9_.content_blocks) != 5:
raise ValueError('Got %s CBs' % len(tO9_.conten... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uBb1(YKHO):\n pass",
"def ZR7g(YKHO):\n F6zM = None\n id = None\n Mkmy = YKHO.client.get_single_poll_choice(id, F6zM)",
"def fEyQ(YKHO):\n pass",
"def hor1(YKHO):\n pass",
"def za1Z(YKHO):\n pass",
"def Kls4(YKHO):\n _oWe = L0Ar.PollParameters()\n zTi3 = L0Ar.PollRequest(me... | [
"0.6415185",
"0.6335159",
"0.63312674",
"0.62552047",
"0.6194161",
"0.61534035",
"0.6049076",
"0.59673166",
"0.5943702",
"0.5898881",
"0.5888066",
"0.5880094",
"0.5863511",
"0.58599997",
"0.58196694",
"0.5796901",
"0.5771877",
"0.5759712",
"0.5757597",
"0.57143205",
"0.570903... | 0.5545481 | 63 |
Constructs zeropadded keras model with the given parameters and cell. | def gfiU(jXxl, Zwn2, CLda, c8uv, mWFP='rnn', m1TV=False):
vCul = jXxl + 4
g4y1 = ZylS.keras.layers.Input(shape=(None,))
ZxnZ = dFSj(input_dim=vCul, output_dim=Zwn2, mask_zero=True)
rWrZ = ZxnZ(g4y1)
mhVt = rWrZ
for bGrB in range(CLda):
gEmA = c8uv()
if not isinstance(gEmA, ZylS.k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fPO8(pA0V, Qi3c, UwBq=EesP):\n C3ST = ileL()\n A90d = UwBq\n for YRbF in range(1, A90d['nb_layers'] + 1):\n C3ST.add(yHwh(filters=A90d['nb_filters_' + str(YRbF)], kernel_size=(A90d['filter_size_' + str(YRbF)], A90d['filter_size_' + str(YRbF)]), strides=A90d['stride_' + str(YRbF)], input_shape=(... | [
"0.6376421",
"0.63011616",
"0.62343615",
"0.61684406",
"0.6151637",
"0.6130654",
"0.61136353",
"0.61091524",
"0.60890913",
"0.60783243",
"0.6041017",
"0.60229975",
"0.60075754",
"0.59935224",
"0.5978764",
"0.5974597",
"0.5969184",
"0.59671474",
"0.59597945",
"0.5948085",
"0.5... | 0.0 | -1 |
This function returns the second element of the list is accepts | def Q8Iq(LihS):
return LihS[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ALKA(aPd6):\n if len(aPd6) < 2:\n return None\n else:\n return aPd6[1]",
"def WX7Z(eKbg):\n try:\n fHZS = eKbg[1]\n return eKbg\n except IndexError:\n return eKbg[0]",
"def bPcY(yv6U):\n if len(yv6U) > 1:\n return yv6U\n elif len(yv6U) == 1:\n ... | [
"0.7523357",
"0.72102016",
"0.6850906",
"0.6701842",
"0.6514545",
"0.6478518",
"0.64310163",
"0.6404514",
"0.6398201",
"0.6333399",
"0.6327626",
"0.62816983",
"0.6276156",
"0.6275135",
"0.6263186",
"0.62387156",
"0.62386125",
"0.61528707",
"0.6146533",
"0.61400086",
"0.612751... | 0.68255377 | 3 |
Constructor of the ACTUATORS class. | def FIMM(YKHO):
YKHO.group = None
YKHO.output = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, xASv):\n YKHO.actions = xASv",
"def FIMM(YKHO, dCYV: list=None) -> None:\n YKHO.activities = dCYV",
"def FIMM(YKHO, phY3):\n raise NotImplementedError('Agent Constructor not implemented!')",
"def FIMM(YKHO):\n YKHO.actions = []",
"def FIMM(YKHO):\n YKHO._activities_list = []",... | [
"0.6698483",
"0.6676318",
"0.65336996",
"0.63521963",
"0.6351065",
"0.6317571",
"0.6249164",
"0.622758",
"0.61978674",
"0.61934894",
"0.61651057",
"0.61651057",
"0.6128155",
"0.6115465",
"0.61154616",
"0.6092453",
"0.6051817",
"0.604908",
"0.60453427",
"0.6012322",
"0.600816"... | 0.0 | -1 |
Returns bounding boxes and classification probabilities. | def DszH(YKHO, LNo8, v7iA=None, LT6S=False):
if v7iA is not None:
v7iA = ZylS.cast(v7iA, ZylS.float32)
LNo8.set_shape((None, None, 3))
jUXY = YKHO.base_network(ZylS.expand_dims(LNo8, 0), is_training=LT6S)
XPb3 = jUXY
with ZylS.variable_scope('C5'):
VRfe = YKHO.iter_unify_layer(XPb3, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEmv(TVTK, H2v2, JOUx, oUSw, vCt9, PKpG=0.5, H42b=-1):\n oUSw = oUSw[0]\n JOUx = JOUx[0]\n wbxB = []\n p4OG = []\n for RLfm in range(1, JOUx.shape[1]):\n BFeB = JOUx[:, RLfm]\n ZHfW = BFeB > vCt9\n BFeB = BFeB[ZHfW]\n if BFeB.shape[0] == 0:\n continue\n ... | [
"0.7167788",
"0.7128374",
"0.71271676",
"0.6908644",
"0.6739164",
"0.66307604",
"0.66037214",
"0.65947145",
"0.65492016",
"0.65448487",
"0.6515069",
"0.64592236",
"0.6457785",
"0.6447259",
"0.64442044",
"0.6435757",
"0.6435757",
"0.64301085",
"0.641365",
"0.6256943",
"0.62432... | 0.0 | -1 |
Create and save a User with the given email and password. | def lYUQ(YKHO, D3lj, jTXt, **wdCM):
if not D3lj:
raise ValueError(bGrB('The Email must be set'))
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n D3lj = YKHO.normalize_email(D3lj)\n ... | [
"0.8765867",
"0.85452795",
"0.85368717",
"0.8527806",
"0.85269475",
"0.85257876",
"0.85186416",
"0.8508724",
"0.8504736",
"0.8504567",
"0.8504567",
"0.8504567",
"0.8494046",
"0.8494046",
"0.84938884",
"0.8492852",
"0.849132",
"0.8490454",
"0.8488974",
"0.8488869",
"0.84884715... | 0.84573334 | 58 |
Create and save a SuperUser with the given email and password. | def Zp54(YKHO, D3lj, jTXt, **wdCM):
wdCM.setdefault('is_staff', True)
wdCM.setdefault('is_superuser', True)
wdCM.setdefault('is_active', True)
if wdCM.get('is_staff') is not True:
raise ValueError(bGrB('Superuser must have is_staff=True.'))
if wdCM.get('is_superuser') is not True:
ra... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)",
"def Zp54(YKHO, D3lj: str, jTXt: str, **wdCM: Dict[str, bool]):\n wdCM.setdefault('is_staff', True)\n wdCM.setdefault('is_superuser', True)\n wdCM.setdefault('is_active', True)\n if wdCM.get('is_staff') is not... | [
"0.81715554",
"0.80949867",
"0.8072965",
"0.80660135",
"0.80614394",
"0.80550295",
"0.80352277",
"0.79790324",
"0.79607594",
"0.7955878",
"0.7946088",
"0.7939117",
"0.7935015",
"0.7934914",
"0.7934306",
"0.79321265",
"0.79208684",
"0.7916847",
"0.7916847",
"0.7909871",
"0.790... | 0.7942262 | 11 |
Associate L{CompilerOptions} with this object file. | def jHBd(YKHO, jqJh):
assert isinstance(jqJh, rwo3)
YKHO.compileopts = jqJh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qNIs(xAU6):\n pass",
"def jHBd(YKHO, VKhi):\n if not isinstance(VKhi, rwo3):\n raise 'set_compileopts requires a CompilerOptions parameter'\n YKHO.compileopts = VKhi",
"def b2X6(*qIxc):\n return IOEi.set_compiler(*qIxc)",
"def lWLw(YKHO):\n if YKHO.settings.compiler == 'Visual Studi... | [
"0.7346222",
"0.6672294",
"0.6047977",
"0.60130113",
"0.59535444",
"0.5725665",
"0.57084924",
"0.5693505",
"0.56546915",
"0.5649083",
"0.56022096",
"0.5494542",
"0.54834086",
"0.54626435",
"0.54496217",
"0.54314727",
"0.5416331",
"0.5412436",
"0.54058087",
"0.54046446",
"0.54... | 0.6634791 | 2 |
return the path this object was stored at. | def OyQC(YKHO):
return YKHO.object_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmON(YKHO):\n return '/' + YKHO.stored_object.path.replace(YKHO._get_connected_path(), '', 1).lstrip('/')",
"def pmON(YKHO):\n return YKHO.__path",
"def pmON(YKHO):\n return YKHO.__path",
"def pmON(YKHO):\n return YKHO.__path",
"def ybPC(YKHO, YEnM):\n return getattr(YEnM, YKHO.pathAttr)... | [
"0.8387754",
"0.81765366",
"0.81026447",
"0.81026447",
"0.806487",
"0.80575883",
"0.8045272",
"0.80006045",
"0.80006045",
"0.7998292",
"0.7998292",
"0.7998292",
"0.7998292",
"0.7998292",
"0.7998292",
"0.7998292",
"0.7998292",
"0.7998292",
"0.7998292",
"0.7998292",
"0.7998292"... | 0.77729803 | 62 |
return a list of the mnemonic parts of all instructions of this object. | def xs9X(YKHO):
if not YKHO.disassembly:
raise Exception('Instance does not contain disassembly.')
return YKHO.prep_disassembly(YKHO.disassembly, YKHO.DIFF_MNEMONIC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JaEv(YKHO):\n return YKHO.mnemonic.split(' ')",
"def e8uw(YKHO):\n return YKHO.__instructions",
"def e8uw(YKHO):\n e8uw = YKHO.soup.find(attrs={'class': 'recipe-directions__list'})\n if not e8uw:\n raise LfzO('No instructions found')\n Ar5K = [WKvO.text for WKvO in e8uw.findAll('span'... | [
"0.76061964",
"0.6954442",
"0.6398096",
"0.6292602",
"0.61157745",
"0.6103149",
"0.6081038",
"0.6055407",
"0.5903765",
"0.5881065",
"0.5868453",
"0.5809848",
"0.5795232",
"0.57876056",
"0.576674",
"0.5750233",
"0.57205737",
"0.57161283",
"0.57005525",
"0.5677432",
"0.5669646"... | 0.7716908 | 0 |
Return the SQL SELECT columns required for the L{from_sql_row} function. | def U7TZ(uffq=True):
U5bT = 'SELECT\n functions.id, functions.name, functions.signature,\n functions.source_file, functions.objectID, functions.function_text_lines'
if uffq:
U5bT += ', function_text.disassembly'
U5bT += ' FROM functions'
if uffq:
U5bT += '\n LEFT O... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O79P(YKHO, aUOo=True, ELxn=False):\n raise NotImplementedError()",
"def ZWpO(YKHO):\n return NCls.select([YKHO.sql_column_clause()]).select_from(YKHO.table.sql_table_clause())",
"def zKaV():\n cZK3 = ['objectId', 'jd']\n return cZK3",
"def ooVy(YKHO):\n return b1_g.get_columns_from_db(YKHO... | [
"0.7033148",
"0.68171954",
"0.6749005",
"0.66460794",
"0.6644923",
"0.6617804",
"0.6604506",
"0.6601662",
"0.6572937",
"0.6572147",
"0.65660673",
"0.64890957",
"0.6482008",
"0.6416847",
"0.63515747",
"0.6347138",
"0.63213915",
"0.62943965",
"0.6283938",
"0.6264362",
"0.625938... | 0.59529465 | 46 |
Get the SQL columns for this feature. If fq_select is True, the columns will be fully qualified (sqltable.column). If fq_rename is True, each column will include a "AS sqltable_column". | def O79P(YKHO, aUOo=True, ELxn=False):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jL9q(YKHO, ZLJ_, ue20, aUOo, ELxn):\n if aUOo or ELxn:\n if aUOo:\n ZLJ_ = [ue20 + '.' + Z9rn for Z9rn in ZLJ_]\n if ELxn:\n ZLJ_ = [Z9rn + ' AS ' + Z9rn.replace('.', '_') for Z9rn in ZLJ_]\n return ZLJ_",
"def UdmU(YKHO, ZLJ_=None):\n if ZLJ_ == ['*'] or ZLJ_ is ... | [
"0.73800296",
"0.67377347",
"0.65509456",
"0.65213114",
"0.6397088",
"0.63832754",
"0.6348081",
"0.62869936",
"0.62503177",
"0.62387216",
"0.6191995",
"0.61602306",
"0.6108744",
"0.60464823",
"0.6038689",
"0.6026042",
"0.6012518",
"0.59833825",
"0.59826857",
"0.5979662",
"0.5... | 0.87798196 | 0 |
Gets the default wait interval for LifeCycleObjects. | def zsCK(YKHO):
RKD7.debug('Default wait interfal for LifeCycleObjects %s', d3jO)
return YKHO.get('default_wait_interval', d3jO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def doNG(YKHO):\n RKD7.debug('Default wait timeout for LifeCycleObjects %s', OW2x)\n return YKHO.get('default_wait_timeout', OW2x)",
"def SkxF(YKHO):\n return YKHO._default_time_to_wait",
"def eJpu(YKHO):\n return YKHO._interval",
"def sVCz():\n return fJZN",
"def sVCz():\n return fJZN",
... | [
"0.8438655",
"0.7186426",
"0.67703235",
"0.63836557",
"0.6362284",
"0.63272274",
"0.6214207",
"0.6179145",
"0.61229867",
"0.6118374",
"0.610755",
"0.60687125",
"0.6029448",
"0.6021791",
"0.5986246",
"0.59517217",
"0.5942776",
"0.5926327",
"0.5921978",
"0.5913093",
"0.5895023"... | 0.9216603 | 0 |
Get index of the middle point of a sorted array (ascending or descending). The values in array may not be evenly distributed so it picks the middle point not by index but by their values. | def PQdP(ezWE):
u4jF = (ezWE[0] + ezWE[-1]) / 2
return oyIN.abs(ezWE - u4jF).argmin() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rWwD(ezWE: List[int]):\n exwG = len(ezWE)\n r_rZ, Y9PB = (0, exwG - 1)\n while r_rZ <= Y9PB:\n h5wt = (r_rZ + Y9PB) // 2\n if ezWE[h5wt] > h5wt:\n Y9PB = h5wt - 1\n elif ezWE[h5wt] < h5wt:\n r_rZ = h5wt + 1\n else:\n return h5wt\n return ... | [
"0.7163378",
"0.7004288",
"0.68892205",
"0.67762536",
"0.672977",
"0.65890914",
"0.6566615",
"0.65079325",
"0.6353663",
"0.62982756",
"0.6297869",
"0.62601686",
"0.6230401",
"0.62194574",
"0.6219382",
"0.61900884",
"0.6181767",
"0.61665857",
"0.61665857",
"0.61441505",
"0.609... | 0.8357183 | 0 |
Gets the amount of this ExtraCosts. | def Z5kt(YKHO) -> float:
return YKHO._amount | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye9d(YKHO):\n return YKHO._total_cost",
"def Yecq(YKHO):\n wjRY = 0.0\n for BWXx in YKHO.apiCosts.values():\n wjRY += BWXx\n return wjRY",
"def ozc7(YKHO):\n return YKHO.cost",
"def kXRY(YKHO):\n return YKHO.cost",
"def sSN_(YKHO):\n return YKHO.calculateCost()",
"def _2TG... | [
"0.77454644",
"0.76685673",
"0.7599817",
"0.7509813",
"0.7497772",
"0.74658126",
"0.73940307",
"0.733871",
"0.73379487",
"0.7331167",
"0.7315435",
"0.7286445",
"0.7268118",
"0.72081494",
"0.7190455",
"0.71508116",
"0.7136351",
"0.7136351",
"0.7122144",
"0.70991725",
"0.709414... | 0.70495623 | 29 |
Sets the amount of this ExtraCosts. | def Z5kt(YKHO, Z5kt: float):
if Z5kt is None:
raise ValueError('Invalid value for `amount`, must not be `None`')
YKHO._amount = Z5kt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MZYb(YKHO, MZYb):\n YKHO._additional_costs = MZYb",
"def jGTW(YKHO, Z5kt):\n YKHO.__amount = Z5kt",
"def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt",
"def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt",
"def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt",
"def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5... | [
"0.6821993",
"0.6815752",
"0.6781094",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.67609555",
"0.6752321",
"0.6743029",
"... | 0.0 | -1 |
Gets the amount_ex_vat of this ExtraCosts. | def MCnj(YKHO) -> float:
return YKHO._amount_ex_vat | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MCnj(YKHO, MCnj: float):\n YKHO._amount_ex_vat = MCnj",
"def MCnj(YKHO, MCnj: float):\n YKHO._amount_ex_vat = MCnj",
"def T_c_(YKHO):\n return YKHO._total_vat",
"def Fo30(YKHO):\n return YKHO._customer_taxvat",
"def UJSc(YKHO):\n return YKHO._get_total('line_price_excl_tax_incl_discounts... | [
"0.75587237",
"0.75587237",
"0.6713779",
"0.6263012",
"0.61575717",
"0.6098372",
"0.6025521",
"0.60114676",
"0.59813124",
"0.59409755",
"0.5900204",
"0.58833253",
"0.58611643",
"0.57898897",
"0.57873994",
"0.5708421",
"0.56957924",
"0.568928",
"0.56493443",
"0.5622167",
"0.55... | 0.8782016 | 0 |
Sets the amount_ex_vat of this ExtraCosts. | def MCnj(YKHO, MCnj: float):
YKHO._amount_ex_vat = MCnj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MCnj(YKHO) -> float:\n return YKHO._amount_ex_vat",
"def MCnj(YKHO) -> float:\n return YKHO._amount_ex_vat",
"def RqS7(YKHO, RqS7):\n YKHO._overheads_vat = RqS7",
"def Fo30(YKHO, Fo30):\n YKHO._customer_taxvat = Fo30",
"def T_c_(YKHO, T_c_):\n YKHO._total_vat = T_c_",
"def U5CK(YKHO, U... | [
"0.71579295",
"0.71579295",
"0.5764477",
"0.5571093",
"0.5543316",
"0.5483604",
"0.53315973",
"0.5147698",
"0.5147698",
"0.51109785",
"0.50708085",
"0.5014957",
"0.49999872",
"0.49880412",
"0.49740705",
"0.49606055",
"0.4927199",
"0.4909488",
"0.48867542",
"0.4818963",
"0.479... | 0.902557 | 0 |
Gets the currency_code of this ExtraCosts. | def uvmn(YKHO) -> str:
return YKHO._currency_code | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvmn(YKHO):\n return YKHO._currency_code",
"def uvmn(YKHO) -> str:\n return qe4Y.get(YKHO, 'currency_code')",
"def uvmn(YKHO):\n return YKHO.currency.iso_code",
"def XqqY(YKHO):\n return YKHO._order_currency_code",
"def uvmn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'currency_co... | [
"0.84475315",
"0.8255114",
"0.81340283",
"0.7955297",
"0.78813916",
"0.76126456",
"0.74729145",
"0.7463661",
"0.7452206",
"0.7427873",
"0.7427873",
"0.7427873",
"0.7427873",
"0.7414731",
"0.7414731",
"0.7414731",
"0.7414731",
"0.7414731",
"0.7414731",
"0.7414731",
"0.7387193"... | 0.8273111 | 1 |
Sets the currency_code of this ExtraCosts. | def uvmn(YKHO, uvmn: str):
YKHO._currency_code = uvmn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn)... | [
"0.8458963",
"0.8458963",
"0.8458963",
"0.8458963",
"0.8458963",
"0.8458963",
"0.8458963",
"0.8458963",
"0.7535461",
"0.7338283",
"0.73255473",
"0.73255473",
"0.7251099",
"0.7057491",
"0.69098365",
"0.6835077",
"0.6784736",
"0.6784736",
"0.6784736",
"0.6784736",
"0.6784736",
... | 0.8430086 | 8 |
Sets the category of this ExtraCosts. | def Ghho(YKHO, Ghho: JournalCategory):
if Ghho is None:
raise ValueError('Invalid value for `category`, must not be `None`')
YKHO._category = Ghho | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GeX9(YKHO, ACia):\n YKHO.category = ACia",
"def SMC3(YKHO, Ghho):\n YKHO.category = Ghho",
"def Ials(YKHO, Ghho: str):\n YKHO.category = Ghho",
"def Ghho(YKHO, Ghho):\n YKHO._category = Ghho",
"def Ghho(YKHO, Ghho):\n YKHO._category = Ghho",
"def Ghho(YKHO, Ghho):\n YKHO._category =... | [
"0.7177407",
"0.71609634",
"0.69446164",
"0.6910301",
"0.6910301",
"0.6910301",
"0.6910301",
"0.6910301",
"0.6910301",
"0.6910301",
"0.6910301",
"0.6910301",
"0.6910301",
"0.6871493",
"0.68669707",
"0.6570484",
"0.6476131",
"0.6387349",
"0.6284954",
"0.6272593",
"0.62042606",... | 0.54047066 | 52 |
Gets the description of this ExtraCosts. | def JBZA(YKHO) -> str:
return YKHO._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aI8p(YKHO):\n QoB4 = '{}\\n'.format(UVCr(YKHO.name))\n QoB4 += '{} {}: {}\\n'.format(len(YKHO.countries), 'country' if len(YKHO.countries) == 1 else 'countries', ', '.join([vxW9.name for vxW9 in YKHO.countries]))\n QoB4 += 'Tiers: {}\\n'.format(', '.join(['{}: {}'.format(EcuX.name, UHFx) for EcuX, UHF... | [
"0.7228085",
"0.711446",
"0.70958734",
"0.70958734",
"0.70958734",
"0.70958734",
"0.70958734",
"0.70663047",
"0.7040682",
"0.7022128",
"0.698649",
"0.6953274",
"0.6942786",
"0.69270384",
"0.69180375",
"0.69004035",
"0.68937004",
"0.68848497",
"0.6884704",
"0.6884704",
"0.6884... | 0.0 | -1 |
Gets the number of this ExtraCosts. | def FGW3(YKHO) -> float:
return YKHO._number | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RpB0(YKHO):\n return YKHO.total",
"def sSN_(YKHO):\n return YKHO.calculateCost()",
"def vTdo(YKHO):\n return YKHO._.n_total",
"def ozc7(YKHO):\n return YKHO.cost",
"def wifS(YKHO, KAOR):\n return KAOR.num_seats",
"def ye9d(YKHO):\n return YKHO._total_cost",
"def DUZc(YKHO):\n r... | [
"0.7023199",
"0.69244623",
"0.6846547",
"0.6784113",
"0.6779598",
"0.67749625",
"0.67465985",
"0.67446536",
"0.6742811",
"0.66582984",
"0.66486377",
"0.661009",
"0.661009",
"0.6593297",
"0.6572217",
"0.6572217",
"0.6558691",
"0.6556942",
"0.653123",
"0.6527086",
"0.6510939",
... | 0.0 | -1 |
Gets the number_type of this ExtraCosts. | def KvA9(YKHO) -> str:
return YKHO._number_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKXU(YKHO):\n if YKHO.__number.find('+') == -1:\n return 129\n else:\n return 145",
"def GltZ(YKHO):\n return YKHO._ntype",
"def FRul(YKHO):\n return rpid.calc_type_strings.get(YKHO.calc_type, 'Unknown type')",
"def type(YKHO) -> int:\n return YKHO._type",
"def type(YKHO) -... | [
"0.7094",
"0.65539",
"0.65418303",
"0.64787227",
"0.64787227",
"0.64787227",
"0.6439479",
"0.6439479",
"0.63769174",
"0.63042694",
"0.6207333",
"0.6192136",
"0.6181164",
"0.614234",
"0.6120888",
"0.6047765",
"0.60321033",
"0.6022197",
"0.5979336",
"0.5953253",
"0.5948076",
... | 0.7839846 | 0 |
Gets the account of this ExtraCosts. | def ZrNc(YKHO) -> fExc:
return YKHO._account | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rCkj(YKHO):\n return YKHO.account",
"def AmjW(YKHO):\n return YKHO.account",
"def AmjW(YKHO):\n return YKHO._account",
"def AmjW(YKHO):\n return YKHO._account",
"def AmjW(YKHO):\n return YKHO._account",
"def ZrNc(YKHO):\n return YKHO._account",
"def ZrNc(YKHO):\n return YKHO._a... | [
"0.7152783",
"0.70728254",
"0.70391953",
"0.70391953",
"0.70391953",
"0.687056",
"0.6869782",
"0.68679625",
"0.68380636",
"0.68094283",
"0.67641056",
"0.6733774",
"0.66178435",
"0.6555876",
"0.65289104",
"0.65024453",
"0.6502276",
"0.6500701",
"0.6495836",
"0.64044845",
"0.63... | 0.70296144 | 5 |
Returns a new logger | def KYbX(mWFP: str) -> G9jH.getLoggerClass():
bo34 = G9jH.getLogger(mWFP)
DCgT = G9jH.StreamHandler(zJsh)
uaPq = G9jH.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
DCgT.setFormatter(uaPq)
bo34.addHandler(DCgT)
try:
if TcRL[mWFP] == 'DEBUG':
bo34.setLevel(G... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MWLp(YKHO) -> G9jH.Logger:\n return G9jH.getLogger()",
"def bo34():\n return bo34",
"def eLpg():\n return Few0()",
"def bo34():\n return I45O",
"def MWLp(YKHO):\n bo34 = G9jH.getLogger(YKHO.name)\n if YKHO.config['DEBUG']:\n bo34.setLevel(G9jH.DEBUG)\n uaPq = G9jH.Format... | [
"0.81975746",
"0.8187027",
"0.80469954",
"0.7825911",
"0.78162163",
"0.7781616",
"0.7780425",
"0.7718275",
"0.77034396",
"0.7690346",
"0.7690283",
"0.7666249",
"0.762789",
"0.762789",
"0.75703067",
"0.75700533",
"0.75435513",
"0.7531635",
"0.75213873",
"0.75209606",
"0.748930... | 0.7554712 | 16 |
Function to calculate bresenhams with a positive slope where x = y | def M6ba(YKHO):
yKcO = YKHO.last_position
Os4s = YKHO.new_position
if YKHO.last_position[0] > YKHO.new_position[0]:
yKcO = YKHO.new_position
Os4s = YKHO.last_position
o4D3 = yKcO[0]
si3g = yKcO[1]
ajwV = Os4s[0]
skBL = Os4s[1]
FBNX = []
Xjzj = 2 * (skBL - si3g)
gE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMex(Fg_i):\n return 2 * (Fg_i - 4)",
"def VMex(WKvO, LVAh):\n WKvO = oyIN.array(WKvO)\n LVAh = oyIN.array(LVAh)\n VMex = oyIN.linalg.lstsq(WKvO.reshape(-1, 1), LVAh)[0][0]\n return round(VMex, 6)",
"def VMex(WKvO, LVAh):\n WKvO = oyIN.array(WKvO)\n LVAh = oyIN.array(LVAh)\n VMex = ... | [
"0.7325132",
"0.72130376",
"0.713437",
"0.6999388",
"0.6987334",
"0.6979713",
"0.6968679",
"0.694465",
"0.69391835",
"0.6920605",
"0.6868645",
"0.68239146",
"0.67672604",
"0.67543477",
"0.6742486",
"0.67201453",
"0.66834146",
"0.6643969",
"0.66435254",
"0.66420996",
"0.664071... | 0.0 | -1 |
Container for WaveRNN training variables. | def FIMM(YKHO, d6pt: int, tspZ: int, zMOd: int, lHmx: int, XxFT: DataLoader, Z0Wl: list, JZBF: list) -> None:
YKHO.index = d6pt
YKHO.lr = tspZ
YKHO.max_step = zMOd
YKHO.bs = lHmx
YKHO.train_set = XxFT
YKHO.val_set = Z0Wl
YKHO.val_set_samples = JZBF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l5zM(YKHO):\n with ZylS.variable_scope('LSTM', reuse=None) as rrBf:\n QCNx = ZylS.get_variable('W_s', shape=(YKHO.config.num_hidden_units, YKHO.config.num_classes))\n GD35 = ZylS.get_variable('b_s', shape=(YKHO.config.num_classes,))",
"def B_WG(YKHO):\n with ZylS.name_scope('variables'):\... | [
"0.663405",
"0.65937",
"0.6584043",
"0.65677166",
"0.6551653",
"0.64713603",
"0.6449378",
"0.6426857",
"0.6421733",
"0.64190394",
"0.63962185",
"0.6360257",
"0.63557494",
"0.63515335",
"0.63515335",
"0.6351325",
"0.6336393",
"0.6303361",
"0.62947756",
"0.6268177",
"0.62105554... | 0.0 | -1 |
Recursively Removes blank str values from the dictionary" Removes keys from dictionary and sub objs such as dictionaries and list of dictionaries, if the value is an empty string. | def CT4Y(VGXp):
for H5ew, wEf2 in VGXp.items():
if isinstance(wEf2, dict):
CT4Y(wEf2)
if isinstance(wEf2, list):
for WKvO in wEf2:
if isinstance(WKvO, dict):
CT4Y(WKvO)
if wEf2 in ['', u'']:
VGXp.pop(H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GKOT(YKHO, BZdj):\n G9jH.debug(f'params: {BZdj}')\n y7M3 = {}\n for H5ew, BWXx in BZdj.items():\n G9jH.debug(f'key: {H5ew}, value: {BWXx}')\n if BWXx is None or BWXx is '':\n G9jH.debug('Toss the value!')\n elif isinstance(BWXx, dict):\n FW0e = YKHO.__remove_... | [
"0.7808914",
"0.76713973",
"0.75476086",
"0.7316168",
"0.7266646",
"0.72653925",
"0.71996903",
"0.7176659",
"0.7165757",
"0.7160421",
"0.712692",
"0.71175396",
"0.7069007",
"0.6981896",
"0.6956157",
"0.6943508",
"0.69223416",
"0.688684",
"0.687673",
"0.6838284",
"0.67754984",... | 0.7435693 | 3 |
The URL of the referenced entity. ``None`` if no URL template is defined. | def bD7m(YKHO):
rPXJ = YKHO.reference_type.url_template
if not rPXJ:
return None
return rPXJ.replace('{value}', YKHO.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bD7m(YKHO):\n Q7me = YKHO.part\n Gb9w = YKHO._hyperlink.relationship\n bD7m = Q7me.target_ref(Gb9w) if Gb9w else ''\n return bD7m",
"def bD7m(YKHO):\n return YKHO.properties.get('Url', None)",
"def bD7m(YKHO):\n QZnA = YKHO.links(ZQF7.SELF, single=True)\n return QZnA[0]['href'] if QZnA... | [
"0.7204024",
"0.71866524",
"0.71618086",
"0.71482754",
"0.71465284",
"0.71465284",
"0.71465284",
"0.71465284",
"0.71170574",
"0.7089982",
"0.7067384",
"0.7044089",
"0.70293903",
"0.7021905",
"0.7017856",
"0.7009223",
"0.7009223",
"0.70078915",
"0.70039696",
"0.6985464",
"0.69... | 0.76397514 | 0 |