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 |
|---|---|---|---|---|---|---|
Converts a number to raindrops.. If it is a factor of 3, 5 or 7. Returns the number if it is not a factor. | def a8Pe(FGW3: int) -> str:
htCF = [(3, 'Pling'), (5, 'Plang'), (7, 'Plong')]
Aofo = [x2yN for di96, x2yN in htCF if FGW3 % di96 == 0]
return ''.join(Aofo) or f'{FGW3}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aFGF(FGW3):\n return round(FGW3 * 2) / 2",
"def f2B6(FGW3):\n return epAf.floor(FGW3)",
"def ieq_(exwG):\n Mkmy = 1\n for XP5J in nn_N(exwG + 1):\n if XP5J > exwG:\n break\n if exwG % XP5J == 0:\n Mkmy *= XP5J\n exwG = exwG // XP5J\n return Mkmy... | [
"0.6595456",
"0.6485929",
"0.57271487",
"0.55308765",
"0.55007154",
"0.54595137",
"0.5454034",
"0.5449595",
"0.54256505",
"0.54254377",
"0.5363342",
"0.5357585",
"0.5308972",
"0.53020155",
"0.5272639",
"0.5270034",
"0.5247558",
"0.5231972",
"0.5230555",
"0.5228767",
"0.522667... | 0.0 | -1 |
Helper function to convert the GPS coordinates stored in the EXIF to degress in float format | def i7T_(YKHO, BWXx):
Csk6 = float(BWXx.values[0].num) / float(BWXx.values[0].den)
r8hN = float(BWXx.values[1].num) / float(BWXx.values[1].den)
KCHu = float(BWXx.values[2].num) / float(BWXx.values[2].den)
return Csk6 + r8hN / 60.0 + KCHu / 3600.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BaYm(EGpH):\n LTIa = oyIN.empty([EGpH.get_points_no(), 2])\n yzQA = oyIN.empty([EGpH.get_points_no(), 1])\n exwG = 0\n for hTWD in EGpH.segments:\n for AU8u in hTWD.points:\n LTIa[exwG, 0] = AU8u.longitude\n LTIa[exwG, 1] = AU8u.latitude\n yzQA[exwG] = AU8u.e... | [
"0.6406915",
"0.6319931",
"0.6221876",
"0.6214761",
"0.61687136",
"0.6155302",
"0.61133623",
"0.5993817",
"0.5936768",
"0.59306395",
"0.5844533",
"0.5819735",
"0.5801073",
"0.5728349",
"0.572484",
"0.5718356",
"0.5695207",
"0.568167",
"0.56566536",
"0.56566536",
"0.5641971",
... | 0.6074233 | 7 |
Return the experiment version. | def DpZH(YKHO):
L6MF = []
for bo34 in YKHO._loggers:
L6MF.append(bo34.version)
return L6MF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AYZ2():\n with open('mlt-templates/experiments/EXPERIMENTS_VERSION.txt', 'r') as Ga6V:\n lFqq = Ga6V.read()\n return lFqq.strip()",
"def kaPv(YKHO):\n return YKHO.version",
"def DpZH(YKHO) -> str:\n return qe4Y.get(YKHO, 'version')",
"def DpZH(YKHO) -> str:\n return qe4Y.get(YKHO, '... | [
"0.8197149",
"0.78365195",
"0.78034556",
"0.78034556",
"0.78034556",
"0.78034556",
"0.7770439",
"0.77446127",
"0.77446127",
"0.77446127",
"0.77446127",
"0.77446127",
"0.7737636",
"0.76615673",
"0.76615673",
"0.76615673",
"0.764565",
"0.7634588",
"0.7634588",
"0.7627138",
"0.7... | 0.0 | -1 |
Return the experiment version. | def DpZH(YKHO):
L6MF = []
for H5ew, bo34 in YKHO._loggers.items():
L6MF[H5ew] = bo34.version
return L6MF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AYZ2():\n with open('mlt-templates/experiments/EXPERIMENTS_VERSION.txt', 'r') as Ga6V:\n lFqq = Ga6V.read()\n return lFqq.strip()",
"def kaPv(YKHO):\n return YKHO.version",
"def DpZH(YKHO) -> str:\n return qe4Y.get(YKHO, 'version')",
"def DpZH(YKHO) -> str:\n return qe4Y.get(YKHO, '... | [
"0.8197149",
"0.78365195",
"0.78034556",
"0.78034556",
"0.78034556",
"0.78034556",
"0.7770439",
"0.77446127",
"0.77446127",
"0.77446127",
"0.77446127",
"0.77446127",
"0.7737636",
"0.76615673",
"0.76615673",
"0.76615673",
"0.764565",
"0.7634588",
"0.7634588",
"0.7627138",
"0.7... | 0.0 | -1 |
Runs convertFCS to create an FCSdata object containing flow data from FCS file Converts data values and keys (channel names) to a PANDAS dataframe | def EBRW(JK7R, fohw=0):
O3nX = KZCD(JK7R, fohw)
jQ3Z = rLdf.DataFrame(O3nX.data, columns=O3nX.channel_names).astype(int)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZAQi(YKHO, JK7R):\n l5Ny = YKHO.text_keywords\n oqnT = l5Ny['$TOT']\n M0zs = l5Ny['$PAR']\n dUcf = [int(l5Ny[f'$P{YRbF}B'] / 8) for YRbF in YKHO.channel_nums]\n K6xR = {'I': 'u', 'D': 'f', 'F': 'f'}[l5Ny['$DATATYPE']]\n XuC1 = [f'{K6xR}{EXIC}' for EXIC in dUcf]\n if len(set(XuC1)) > 1:\n ... | [
"0.62538564",
"0.5832299",
"0.5698743",
"0.5584407",
"0.55328083",
"0.54838204",
"0.5482408",
"0.5451396",
"0.5427865",
"0.5406247",
"0.5401104",
"0.5395025",
"0.5375973",
"0.53718936",
"0.5354261",
"0.532564",
"0.5314141",
"0.5308277",
"0.53005165",
"0.52576363",
"0.52545565... | 0.7205643 | 0 |
Returns True if entity has component. | def wSrp(YKHO, UksD):
return UksD.name in YKHO.components | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xc3U(YKHO, LEXu):\n return LEXu.has_component(YKHO.component_type)",
"def gC_x(YKHO):\n U5bT = False\n for tTpl in YKHO:\n if tTpl.is_visible() == True:\n U5bT = True\n break\n return U5bT",
"def Wh6c(YKHO) -> bool:\n return YKHO.entity_exists(YKHO._enabled_toggl... | [
"0.8861548",
"0.71051353",
"0.705232",
"0.6910215",
"0.6815837",
"0.67669857",
"0.6760536",
"0.66882503",
"0.66452456",
"0.65509987",
"0.65090513",
"0.6413804",
"0.6358695",
"0.633121",
"0.6313268",
"0.6309975",
"0.6285276",
"0.62819284",
"0.62755585",
"0.62164724",
"0.615680... | 0.7512222 | 1 |
Returns the distance to another object. | def s7yO(YKHO, Elif):
Jw7X = Elif.x - YKHO.x
eUWA = Elif.y - YKHO.y
return epAf.sqrt(Jw7X ** 2 + eUWA ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVDj(YKHO, F5TF, BPWI):\n return oyIN.linalg.norm(oyIN.array(F5TF) - oyIN.array(BPWI))",
"def s7yO(YKHO, YEnM):\n WKvO, LVAh = YKHO.position\n LM_e, RnOm = YEnM.position\n return HEbx(WKvO - LM_e, LVAh - RnOm)",
"def pImw(YKHO, Elif):\n return epAf.sqrt((YKHO.x - Elif.x) ** 2 + (YKHO.y - Eli... | [
"0.8309515",
"0.8065621",
"0.8017887",
"0.80168116",
"0.7982547",
"0.79745",
"0.7942343",
"0.7939424",
"0.79339415",
"0.7933468",
"0.79149383",
"0.78916895",
"0.7888354",
"0.7866638",
"0.7864547",
"0.7836776",
"0.7836448",
"0.7828537",
"0.7780376",
"0.7744214",
"0.7742656",
... | 0.80660194 | 1 |
Returns a list of coin records that are used in this SpendBundle | async def get_locked_coins_in_spend_bundle(YKHO, wHSX: SpendBundle) -> cuzp[cPz1, nc3J]:
Aofo = {}
GTWu = wHSX.removals()
for ee8p in GTWu:
r_LV = await YKHO.wallet_state_manager.wallet_store.get_coin_record_by_coin_id(ee8p.name())
if r_LV is None:
continue
Aofo[r_LV.name... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pW2b(YKHO):\n if YKHO.coins:\n return YKHO.coins.keys()\n else:\n return []",
"def FDAT(YKHO):\n return []",
"def BVRg() -> x1iM[cxtk]:\n SCkQ = list(nqEK.coin_dict.values())\n SCkQ.extend(aTGs.get_all_coins())\n SCkQ = Ypim(SCkQ)\n return SCkQ",
"def Ian_(YKHO):\n r... | [
"0.62239385",
"0.5984173",
"0.59575623",
"0.58777404",
"0.58546066",
"0.58470273",
"0.57957447",
"0.57684815",
"0.5691523",
"0.5679063",
"0.5564973",
"0.5554979",
"0.553434",
"0.5518511",
"0.5517748",
"0.5516127",
"0.551431",
"0.5509376",
"0.55086476",
"0.5494193",
"0.5490643... | 0.6051995 | 1 |
Offer is dictionary of wallet ids and amount | async def _create_offer_for_ids(YKHO, Ltg2: Dict[int, int]) -> AzJI[bool, h8nf[Y8O7], h8nf[str]]:
ZBOi = None
try:
for id in Ltg2.keys():
Z5kt = Ltg2[id]
ouJ5 = U4RK(int(id))
hGMD = YKHO.wallet_state_manager.wallets[ouJ5]
if isinstance(hGMD, G9ex):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_locked_coins(YKHO, ouJ5: int=None) -> cuzp[cPz1, nc3J]:\n VRuz = []\n _eda = await YKHO.get_offers_with_status(UVTY.PENDING_ACCEPT)\n EHhI = await YKHO.get_offers_with_status(UVTY.PENDING_CONFIRM)\n MDrl = await YKHO.get_offers_with_status(UVTY.PENDING_CANCEL)\n VRuz.extend(_eda)\n ... | [
"0.6101357",
"0.5911638",
"0.56609356",
"0.5653375",
"0.5647531",
"0.56332016",
"0.5602458",
"0.55545485",
"0.55399454",
"0.5489649",
"0.54758894",
"0.5467307",
"0.54462403",
"0.5425534",
"0.5418933",
"0.5407706",
"0.5401529",
"0.5352505",
"0.53324074",
"0.52398604",
"0.51972... | 0.70207 | 0 |
Receives a sentence string along with a word embedding model and returns the vector representation of the sentence | def fQ14(UfhV, C3ST, quXY):
s2mk = WuUW(UfhV).split()
he6J = oyIN.zeros(300)
for GIN8 in s2mk:
if (GIN8 in C3ST) & (GIN8 in quXY):
he6J += C3ST[GIN8] * quXY[GIN8]
if oyIN.linalg.norm(he6J) > 0:
return he6J / oyIN.linalg.norm(he6J)
else:
return he6J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dY6o(KCHu, UOeE, hwHU, b0j5):\n V22M = str(KCHu).lower()\n V22M = b0j5(V22M)\n V22M = [yzQ0 for yzQ0 in V22M if not yzQ0 in hwHU and yzQ0.isalpha()]\n KTQ3 = []\n for yzQ0 in V22M:\n if yzQ0 in UOeE:\n KTQ3.append(UOeE[yzQ0])\n if len(KTQ3) == 0:\n return oyIN.zeros(3... | [
"0.7996944",
"0.7980737",
"0.7706222",
"0.7669914",
"0.7492081",
"0.73864347",
"0.73641425",
"0.7199389",
"0.7179083",
"0.71744967",
"0.71681434",
"0.7105892",
"0.70191973",
"0.69683003",
"0.6927414",
"0.68552476",
"0.68122995",
"0.67687",
"0.6709537",
"0.66740495",
"0.665433... | 0.7817139 | 2 |
Initialize a new camera position descriptor. | def FIMM(YKHO, dQgj, uOQq, TUMs):
YKHO._position = dQgj
YKHO._focal_point = uOQq
YKHO._viewup = TUMs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E14P(YKHO, dQgj):\n YKHO._position = dQgj",
"def aJkA(YKHO, Ayfi, xTkQ, H2HG, WKvO=0, LVAh=0, epBp=0):\n bV8N = [WKvO, LVAh, epBp]\n YKHO._env.unwrapped._p.resetDebugVisualizerCamera(Ayfi, xTkQ, H2HG, bV8N)",
"def ml5B(YKHO) -> None:\n YKHO.world.camera.update(cam_base_pos=(0, -3, 0), cam_dist=... | [
"0.67903894",
"0.64479625",
"0.6393975",
"0.63804454",
"0.63804215",
"0.6345668",
"0.6291514",
"0.62674296",
"0.61936706",
"0.6153577",
"0.60632646",
"0.6061454",
"0.6051353",
"0.6049952",
"0.59930915",
"0.5965778",
"0.5910078",
"0.5865168",
"0.5865168",
"0.5865168",
"0.58540... | 0.673606 | 1 |
Convert to a list of the position, focal point, and viewup. Returns list List of the position, focal point, and view up of the camera. Examples >>> import pyvista >>> pl = pyvista.Plotter() >>> pl.camera_position.to_list() [(0.0, 0.0, 1.0), (0.0, 0.0, 0.0), (0.0, 1.0, 0.0)] | def mFWN(YKHO):
return [YKHO._position, YKHO._focal_point, YKHO._viewup] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mFWN(YKHO):\n return [YKHO.x, YKHO.y, YKHO.z]",
"def dQgj(YKHO):\n return YKHO._pos.to_list()",
"def Iuzb(YKHO):\n return list(YKHO.position)",
"def xsU0(YKHO):\n AI_Z = []\n for YRbF in range(YKHO.__length):\n if YKHO.__orientation == LgK1.VERTICAL:\n ycBG = (YKHO.__loca... | [
"0.6476367",
"0.62984",
"0.62919134",
"0.6126211",
"0.60634047",
"0.59971035",
"0.5995792",
"0.5966459",
"0.5910988",
"0.5769173",
"0.5746046",
"0.5713925",
"0.57111275",
"0.57096773",
"0.5679928",
"0.5653658",
"0.56482947",
"0.5628945",
"0.56250006",
"0.56054765",
"0.5603261... | 0.78701466 | 0 |
Location of the camera in world coordinates. | def dQgj(YKHO):
return YKHO._position | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyev(YKHO) -> dNTi:\n return YKHO._location",
"def igcO(YKHO):\n return ITC7(TAm4(YKHO.camera, YKHO.camera.position, invert=True), TAm4(YKHO.camera, YKHO.camera.focal_point, invert=True), YKHO.camera.up)",
"def Rci7(YKHO) -> dNTi:\n return YKHO._location",
"def hzy_(YKHO):\n return YKHO.playe... | [
"0.7374123",
"0.7141978",
"0.7055122",
"0.68606865",
"0.67762446",
"0.6740445",
"0.67253697",
"0.6608069",
"0.6598835",
"0.656908",
"0.6556641",
"0.6512802",
"0.6511051",
"0.65003717",
"0.6498714",
"0.64662963",
"0.6450918",
"0.6433619",
"0.6380905",
"0.6378359",
"0.6371096",... | 0.0 | -1 |
Location of the camera's focus in world coordinates. | def uOQq(YKHO):
return YKHO._focal_point | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def igcO(YKHO):\n return ITC7(TAm4(YKHO.camera, YKHO.camera.position, invert=True), TAm4(YKHO.camera, YKHO.camera.focal_point, invert=True), YKHO.camera.up)",
"def uyev(YKHO) -> dNTi:\n return YKHO._location",
"def dQgj(YKHO):\n return YKHO._window.position",
"def JFrE(YKHO):\n return PvyL(YKHO._... | [
"0.6644721",
"0.65299755",
"0.649212",
"0.63354135",
"0.63354135",
"0.63354135",
"0.62518",
"0.62518",
"0.6249192",
"0.6219972",
"0.61748606",
"0.6167681",
"0.6102118",
"0.60940456",
"0.6089569",
"0.6086582",
"0.6086582",
"0.6050958",
"0.60409784",
"0.60131216",
"0.5974156",
... | 0.5708425 | 42 |
Viewup vector of the camera. | def TUMs(YKHO):
return YKHO._viewup | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hIvb(YKHO, iArr, TUMs=None, _1tc=True):\n L9vh = YKHO.center\n if TUMs is None:\n TUMs = YKHO._theme.camera['viewup']\n BFKx = ITC7(iArr + oyIN.array(L9vh), L9vh, TUMs)\n YKHO.camera_position = BFKx\n YKHO.reset_camera(render=_1tc)",
"def AmqO(YKHO, iArr, SiRx=True, _1tc=True):\n if ... | [
"0.78134674",
"0.7271212",
"0.6743524",
"0.6743524",
"0.64612675",
"0.6284524",
"0.60810137",
"0.60640615",
"0.5962724",
"0.5947102",
"0.59320784",
"0.58362174",
"0.576407",
"0.57160175",
"0.57059145",
"0.56943345",
"0.5683601",
"0.568341",
"0.5679278",
"0.5675734",
"0.566542... | 0.6415359 | 5 |
Get or set whether this camera has been configured. | def n19Q(YKHO) -> bool:
if YKHO.camera is None:
return False
return YKHO.camera.is_set | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Debg(YKHO):\n yDvq = YKHO.coordinator.data[YKHO._camera_id]\n if YKHO._switch_type == 'record_motion':\n etR_ = True if yDvq['recording_mode'] == TkSW else False\n elif YKHO._switch_type == 'record_always':\n etR_ = True if yDvq['recording_mode'] == Derg else False\n else:\n et... | [
"0.66845506",
"0.6617645",
"0.65581816",
"0.63469446",
"0.6334555",
"0.6293225",
"0.62919086",
"0.6261713",
"0.6168983",
"0.6155826",
"0.61438465",
"0.609567",
"0.6053022",
"0.60207355",
"0.5939763",
"0.5888694",
"0.58779764",
"0.5874042",
"0.58306825",
"0.5811862",
"0.574902... | 0.7928176 | 0 |
Return next color from this renderer's color cycler. | def XcHN(YKHO):
if YKHO._color_cycle is None:
return YKHO._theme.color
return next(YKHO._color_cycle)['color'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ni5_(YKHO):\n YKHO.usedcc = [zFiD.get_c() for zFiD in YKHO.axes.lines]\n for Z9rn in YKHO.cc:\n if Z9rn not in YKHO.usedcc:\n return Z9rn\n YRbF = len(YKHO.axes.lines)\n c6rc = len(YKHO.cc)\n YRbF = YRbF % c6rc\n return YKHO.cc[YRbF]",
"def XcHN(YKHO, S6Fl=False):\n or8... | [
"0.8234981",
"0.7788944",
"0.75411344",
"0.7377343",
"0.7372973",
"0.65539384",
"0.6496401",
"0.6496338",
"0.6471264",
"0.6416286",
"0.6416286",
"0.6404888",
"0.63695973",
"0.63695973",
"0.63695973",
"0.63695973",
"0.6367257",
"0.63184136",
"0.6311353",
"0.62983453",
"0.62919... | 0.8391353 | 0 |
Reset the camera clipping range based on the bounds of the visible actors. This ensures that no props are cut off | def rQzg(YKHO):
YKHO.ResetCameraClippingRange() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xIu2(YKHO, X7zS):\n hgjH = 0.5 * (X7zS[0] + X7zS[1])\n r1VO = XTiz.linalg.norm(0.5 * (X7zS[1] - X7zS[0]))\n if r1VO == 0.0:\n r1VO = 1.0\n if isinstance(YKHO.intrinsic, SZFh.Perspective):\n XSV6 = XTiz.radians(YKHO.intrinsic.fovy)\n TVTK, H2v2 = YKHO.intrinsic.size\n if ... | [
"0.69563466",
"0.63943154",
"0.6289811",
"0.6274044",
"0.62611425",
"0.6072329",
"0.6013888",
"0.5960976",
"0.5889132",
"0.5841507",
"0.5830585",
"0.57290673",
"0.5729017",
"0.5724514",
"0.5716218",
"0.5694633",
"0.5691615",
"0.56456757",
"0.5598638",
"0.5567777",
"0.55051404... | 0.7952063 | 0 |
Return the active camera for the rendering scene. | def yDvq(YKHO):
return YKHO._camera | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDvq(YKHO):\n return YKHO.__camera",
"def RWmP(YKHO):\n exwG = lY0q.c_long()\n YKHO.lib.GetCurrentCamera(lY0q.pointer(exwG))\n return exwG.value",
"def zWCL(YKHO):\n mawX = (YKHO._dim[0], YKHO._dim[2], YKHO._dim[1] - YKHO._dim[0], YKHO._dim[3] - YKHO._dim[2])\n fh2j = (False, type(YKHO)._... | [
"0.77300924",
"0.7217394",
"0.71555066",
"0.6977217",
"0.67631495",
"0.6611181",
"0.65489227",
"0.6541998",
"0.6541998",
"0.6482501",
"0.639992",
"0.63398176",
"0.61835515",
"0.6168995",
"0.6165372",
"0.6064254",
"0.6062406",
"0.60450935",
"0.60058284",
"0.5945104",
"0.590427... | 0.7788729 | 1 |
Return the length of the diagonal of the bounding box of the scene. Returns float Length of the diagional of the bounding box. | def u54L(YKHO):
return qaWJ.Box(YKHO.bounds).length | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z1Jl(YKHO):\n Fg_i = YKHO.GetBounds()\n return oyIN.sqrt((Fg_i[1] - Fg_i[0]) ** 2 + (Fg_i[3] - Fg_i[2]) ** 2)",
"def IjIm(YKHO):\n return epAf.sqrt(YKHO.width ** 2 + YKHO.height ** 2)",
"def yQQq(YKHO):\n if YKHO.onlydiag():\n return YKHO.lendiag()\n else:\n return len(YKHO)",
... | [
"0.7783756",
"0.7370988",
"0.65690464",
"0.6530001",
"0.65181583",
"0.6455151",
"0.61577594",
"0.6155944",
"0.61422324",
"0.61062217",
"0.61004806",
"0.6067818",
"0.6061304",
"0.6045054",
"0.59732956",
"0.59732026",
"0.5965042",
"0.5937104",
"0.5895358",
"0.58913976",
"0.5834... | 0.6806367 | 2 |
Return if the renderer has a border. | def MpF7(YKHO):
return YKHO._border_actor is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U2m3(YKHO):\n return YKHO.HasFlag(YKHO.optionPaneBorder)",
"def MpF7(YKHO, WKvO, LVAh, MX3a):\n return YKHO.__board[LVAh][WKvO] & YKHO.BORDERS[MX3a]",
"def MX3a(YKHO):\n return YKHO._border",
"def MX3a(YKHO):\n return YKHO._border",
"def MX3a(YKHO):\n return YKHO._border",
"def B6gf(YK... | [
"0.78990096",
"0.73252356",
"0.7023692",
"0.69474614",
"0.69474614",
"0.68066156",
"0.65659505",
"0.65605944",
"0.6503742",
"0.6409397",
"0.64052165",
"0.63717437",
"0.62892467",
"0.6183824",
"0.61292744",
"0.61292744",
"0.6086626",
"0.59882987",
"0.5983166",
"0.5968996",
"0.... | 0.85111946 | 0 |
Return the border color. | def xxp5(YKHO):
if YKHO.has_border:
return HRmL(YKHO._border_actor.GetProperty().GetColor())
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xxp5(YKHO) -> int:\n return YKHO._border_color",
"def usBB(YKHO):\n return YKHO._borderColor",
"def xxp5(YKHO):\n return YKHO._border_rgba",
"def Erbg(YKHO):\n return YKHO['bordercolor']",
"def B6gf(YKHO):\n return YKHO._border",
"def MX3a(YKHO):\n return YKHO._border",
"def MX3a(... | [
"0.91616243",
"0.90390056",
"0.8996708",
"0.8511283",
"0.77999514",
"0.76540136",
"0.76540136",
"0.7641755",
"0.7583416",
"0.7178384",
"0.71017474",
"0.68595165",
"0.68026644",
"0.67944974",
"0.6631913",
"0.6555812",
"0.64894867",
"0.6456548",
"0.6343738",
"0.63379586",
"0.63... | 0.8797848 | 3 |
Return whether this renderer has charts. | def CIbv(YKHO):
return YKHO.__charts is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XNt9(YKHO):\n if hasattr(YKHO, 'axes_widget'):\n return bool(YKHO.axes_widget.GetEnabled())\n return False",
"def teJo(YKHO):\n return YKHO.report is not None",
"def eMGb(D1aL, kvcN, WZkK, _63S):\n try:\n JGjr = rhMf(D1aL, kvcN)\n Lme4 = D1aL.helm_override_get(JGjr.id, WZkK... | [
"0.65800506",
"0.64014155",
"0.621095",
"0.6104169",
"0.6026237",
"0.60140544",
"0.6001484",
"0.5996199",
"0.5923102",
"0.5907532",
"0.58804476",
"0.5871745",
"0.58710253",
"0.58572125",
"0.5842687",
"0.5824167",
"0.58132637",
"0.5808506",
"0.5797006",
"0.5775964",
"0.5768393... | 0.89454913 | 0 |
Remove a chart from this renderer. | def uctO(YKHO, GUDT):
if YKHO.has_charts:
YKHO._charts.remove_chart(GUDT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YIwV(YKHO):\n YKHO.chart().removeAllSeries()\n YKHO.series = {}\n YKHO.yaxis = {}\n YKHO.pen = {}\n YKHO.ymin = {}\n YKHO.ymax = {}",
"def uVTo(YKHO, UhaL=0):\n YKHO.axplot.lines.pop(UhaL).remove\n YKHO.fig.canvas.draw()\n return",
"def jZOu(YKHO):\n QrM1 = ummb.getPlot()\n ... | [
"0.70534337",
"0.6401293",
"0.6233668",
"0.608586",
"0.6079203",
"0.60678726",
"0.60285455",
"0.59787",
"0.59191287",
"0.5820142",
"0.57463604",
"0.5730512",
"0.57163864",
"0.5688322",
"0.5665282",
"0.56645054",
"0.5632822",
"0.56304836",
"0.56114876",
"0.5607921",
"0.5606347... | 0.8217053 | 0 |
Hide the axes orientation widget. Examples >>> import pyvista as pv >>> pl = pv.Plotter() >>> pl.hide_axes() | def fJNt(YKHO):
if hasattr(YKHO, 'axes_widget') and YKHO.axes_widget.GetEnabled():
YKHO.axes_widget.EnabledOff()
YKHO.Modified() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fJNt(kj9G, MPlV=('x', 'y')):\n if isinstance(MPlV, str):\n MPlV = tuple(MPlV)\n for UXqs in MPlV:\n jDK_ = getattr(kj9G, UXqs + 'axis')\n jDK_ = jDK_[0]\n jDK_.major_label_text_alpha = 0.0\n jDK_.major_label_text_font_size = '0pt'\n jDK_.axis_line_alpha = 0.0\n ... | [
"0.7598415",
"0.6403457",
"0.62881356",
"0.6244384",
"0.6228581",
"0.6123471",
"0.61130154",
"0.60614675",
"0.6040783",
"0.5998478",
"0.59787893",
"0.5846813",
"0.5805988",
"0.58012855",
"0.5790344",
"0.57818097",
"0.576112",
"0.5734393",
"0.573244",
"0.5707164",
"0.57033414"... | 0.8070392 | 0 |
Show the axes orientation widget. Examples >>> import pyvista >>> pl = pyvista.Plotter() >>> pl.show_axes() | def ncqp(YKHO):
if hasattr(YKHO, 'axes_widget'):
YKHO.axes_widget.EnabledOn()
YKHO.axes_widget.SetCurrentRenderer(YKHO)
else:
YKHO.add_axes()
YKHO.Modified() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZG2b(C_JY: Union[object, List], ms7x: str='xy'):\n C_JY = oB_L(C_JY)\n for aNZO in C_JY:\n if aNZO is None:\n continue\n if 'x' in ms7x:\n aNZO.spines['bottom'].set_visible(True)\n aNZO.tick_params(bottom=True, labelbottom=True)\n if 'y' in ms7x:\n ... | [
"0.66247433",
"0.6482623",
"0.64165163",
"0.63583106",
"0.6348607",
"0.6142449",
"0.6122898",
"0.5950817",
"0.5900472",
"0.58445096",
"0.5836059",
"0.5829572",
"0.5823087",
"0.5823087",
"0.5816784",
"0.5739508",
"0.56960964",
"0.56948054",
"0.5693767",
"0.56863064",
"0.568630... | 0.718688 | 0 |
Return ``True`` when axes are enabled. Examples >>> import pyvista >>> pl = pyvista.Plotter() >>> pl.hide_axes() >>> pl.renderer.axes_enabled False | def XNt9(YKHO):
if hasattr(YKHO, 'axes_widget'):
return bool(YKHO.axes_widget.GetEnabled())
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fJNt(YKHO):\n if hasattr(YKHO, 'axes_widget') and YKHO.axes_widget.GetEnabled():\n YKHO.axes_widget.EnabledOff()\n YKHO.Modified()",
"def ncqp(YKHO):\n if hasattr(YKHO, 'axes_widget'):\n YKHO.axes_widget.EnabledOn()\n YKHO.axes_widget.SetCurrentRenderer(YKHO)\n else:\n ... | [
"0.76007104",
"0.70384896",
"0.6794622",
"0.6445691",
"0.6445691",
"0.6368987",
"0.63298655",
"0.60395694",
"0.59397376",
"0.58218336",
"0.5802313",
"0.57584256",
"0.5714825",
"0.55680645",
"0.55680645",
"0.55275",
"0.5520673",
"0.5520673",
"0.550967",
"0.54688853",
"0.546821... | 0.841753 | 0 |
Set camera position to a point. | def Fpr9(YKHO, AU8u, SiRx=False, _1tc=True):
if isinstance(AU8u, oyIN.ndarray):
if AU8u.ndim != 1:
AU8u = AU8u.ravel()
YKHO.camera.position = TAm4(YKHO.camera, AU8u, invert=False)
if SiRx:
YKHO.reset_camera(render=_1tc)
YKHO.camera_set = True
YKHO.Modified() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lr7F(YKHO, AU8u):\n YKHO.position = AU8u.position",
"def MVtz(YKHO, AU8u):\n if isinstance(AU8u, oyIN.ndarray):\n if AU8u.ndim != 1:\n AU8u = AU8u.ravel()\n YKHO.camera.focal_point = TAm4(YKHO.camera, AU8u, invert=False)\n YKHO.camera_set = True\n YKHO.Modified()",
"def lr7... | [
"0.7645881",
"0.7488684",
"0.7475947",
"0.74032354",
"0.7359109",
"0.7132762",
"0.70494425",
"0.7040286",
"0.6799234",
"0.67778254",
"0.6647049",
"0.6606636",
"0.6558724",
"0.64978683",
"0.6431256",
"0.6407188",
"0.6406936",
"0.6401082",
"0.6369806",
"0.6368297",
"0.6348451",... | 0.83831567 | 0 |
Return parallel projection state of active render window. Examples >>> import pyvista >>> pl = pyvista.Plotter() >>> pl.parallel_projection = False >>> pl.parallel_projection False | def fS24(YKHO):
return YKHO.camera.parallel_projection | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fS24(YKHO, QTBn):\n YKHO.camera.parallel_projection = QTBn\n YKHO.Modified()",
"def YXQ_(YKHO):\n YylR = oyIN.radians(YKHO.camera.view_angle)\n YKHO.camera.parallel_scale = YKHO.camera.distance * oyIN.sin(0.5 * YylR)\n YKHO.camera.enable_parallel_projection()\n YKHO.Modified()",
"def QJGI... | [
"0.7330841",
"0.6968439",
"0.6624476",
"0.60746086",
"0.5848254",
"0.5833127",
"0.5824897",
"0.5702614",
"0.56675005",
"0.56675005",
"0.56157506",
"0.5584779",
"0.55381554",
"0.54970443",
"0.549184",
"0.5477387",
"0.5476439",
"0.5415312",
"0.53330064",
"0.52858025",
"0.528163... | 0.74887276 | 0 |
Point the camera in the direction of the given vector. | def hIvb(YKHO, iArr, TUMs=None, _1tc=True):
L9vh = YKHO.center
if TUMs is None:
TUMs = YKHO._theme.camera['viewup']
BFKx = ITC7(iArr + oyIN.array(L9vh), L9vh, TUMs)
YKHO.camera_position = BFKx
YKHO.reset_camera(render=_1tc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vCxW(YKHO, iArr: array_like) -> lNLu:\n oCvF = YKHO.point + iArr\n AQW1 = YKHO.project_point(oCvF)\n return lNLu.from_points(YKHO.point, AQW1)",
"def vCxW(P6bq, Ty9i):\n sggy = oyIN.array([P6bq.get_x(), P6bq.get_y()])\n b1hD = oyIN.array([Ty9i.get_x(), Ty9i.get_y()])\n IDBL = oyIN.dot(sggy,... | [
"0.71940917",
"0.63560545",
"0.63367784",
"0.6330268",
"0.6313555",
"0.6259582",
"0.6245223",
"0.6243039",
"0.62397844",
"0.6223476",
"0.620688",
"0.6206377",
"0.6173179",
"0.6159651",
"0.6122384",
"0.6090436",
"0.6072005",
"0.6066956",
"0.6023519",
"0.6020296",
"0.601881",
... | 0.71872896 | 1 |
View the YZ plane. | def PpOt(YKHO, tbib=False, _1tc=True):
YKHO.view_vector(*Ovgy('yz', negative=tbib), render=_1tc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OK0c(YKHO, tbib=False, _1tc=True):\n YKHO.view_vector(*Ovgy('zy', negative=tbib), render=_1tc)",
"def S464(YKHO):\n V9Fl = YKHO.MV\n V9Fl[:3, 0] = (0, 1, 0)\n V9Fl[1, 1] = 0\n V9Fl[1, 2] = 0\n jzdc = V9Fl[0, 1]\n Fg_i = oyIN.sqrt(1 - jzdc ** 2)\n if V9Fl[2, 1] < 0:\n Fg_i = -Fg... | [
"0.6547223",
"0.6058228",
"0.6058228",
"0.5986503",
"0.5887358",
"0.5791194",
"0.57788897",
"0.562064",
"0.5609948",
"0.5572713",
"0.5554533",
"0.5554533",
"0.55535686",
"0.5550166",
"0.55456746",
"0.5544094",
"0.5542231",
"0.55362636",
"0.55157757",
"0.55035675",
"0.5497981"... | 0.737181 | 0 |
Add blurring. This can be added several times to increase the degree of blurring. Examples Add two blurring passes to the plotter and show it. >>> import pyvista as pv >>> pl = pv.Plotter() >>> _ = pl.add_mesh(pv.Sphere(), show_edges=True) >>> pl.add_blurring() >>> pl.add_blurring() >>> pl.show() | def xjd3(YKHO):
YKHO._render_passes.add_blur_pass() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jUwU(YKHO, ROpF, yZhC, T4Xv, Z5kt):\n ROpF.unif[42] = yZhC\n ROpF.unif[43] = T4Xv\n ROpF.unif[44] = Z5kt\n ROpF.unif[45] = 1.0 / YKHO.ix\n ROpF.unif[46] = 1.0 / YKHO.iy\n ROpF.draw(YKHO.shader, [YKHO], 0.0, 0.0)",
"def Z6vI(J20S, GTZT):\n GTZT = max(1, GTZT)\n NXpY = 1.0 / float(GTZT)... | [
"0.63303065",
"0.57988286",
"0.57859975",
"0.5540293",
"0.5527051",
"0.550341",
"0.5461891",
"0.5442216",
"0.536958",
"0.5348567",
"0.5331645",
"0.5325369",
"0.5276398",
"0.5275773",
"0.52567476",
"0.521002",
"0.5167451",
"0.51604134",
"0.51434654",
"0.51434654",
"0.50643075"... | 0.71542597 | 0 |
Disable surface space ambient occlusion (SSAO). | def jqna(YKHO):
YKHO._render_passes.disable_ssao_pass() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMjD(YKHO):\n YKHO.write(':SOUR:AM:STAT OFF')",
"def dotv():\n KUch.light('OFF')",
"def PLED(YKHO, object):\n object.setShaderInput('texDisable', 1, 1, 1, 1)",
"def uGux():\n KUch.shlsur()",
"def glTw():\n for f0tD in kZw_.context.screen.areas:\n if f0tD.type == 'VIEW_3D':\n ... | [
"0.61489666",
"0.60204923",
"0.5950103",
"0.5777201",
"0.57301265",
"0.5539065",
"0.5511989",
"0.5511989",
"0.54441816",
"0.5379625",
"0.52964354",
"0.52944326",
"0.5266819",
"0.5259515",
"0.5251592",
"0.5227988",
"0.52260506",
"0.52209044",
"0.5212857",
"0.5205171",
"0.51978... | 0.66822845 | 0 |
Get the pick position/area as ``x0, y0, x1, y1``. Returns tuple Pick position as ``x0, y0, x1, y1``. | def HsOc(YKHO):
nJ9F = int(YKHO.GetPickX1())
o4D3 = int(YKHO.GetPickX2())
nxyw = int(YKHO.GetPickY1())
si3g = int(YKHO.GetPickY2())
return (nJ9F, nxyw, o4D3, si3g) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0Eb(YKHO) -> AzJI[int, int]:\n return (YKHO.x, YKHO.y)",
"def W0Eb(YKHO) -> AzJI[float, float, float, float, float]:\n return (YKHO.x, YKHO.y, YKHO.x + YKHO.width, YKHO.y + YKHO.height)",
"def TwAD(YKHO):\n return (YKHO.x, YKHO.y)",
"def ZMlM(YKHO):\n if YKHO.boldness_coord is None and YKHO.... | [
"0.7284192",
"0.7170218",
"0.7149962",
"0.7121954",
"0.7115006",
"0.70753956",
"0.6951286",
"0.6862104",
"0.6849299",
"0.6796798",
"0.671746",
"0.6699772",
"0.6687364",
"0.6633278",
"0.66132516",
"0.6610069",
"0.65979475",
"0.6583282",
"0.65821236",
"0.6569422",
"0.656549",
... | 0.82525593 | 0 |
Return or set the current layer of this renderer. | def gEmA(YKHO):
return YKHO.GetLayer() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gEmA(YKHO):\n return YKHO._layer",
"def gEmA(YKHO):\n return YKHO._layer",
"def t0ho(F6jf):\n FS0h = F6jf.luxcore.active_layer_index\n if FS0h == -1:\n return None\n return F6jf.render.layers[FS0h]",
"def vY24(YmHP):\n return YmHP.layerTreeView().currentLayer()",
"def ub_b(YKHO... | [
"0.76540786",
"0.76350665",
"0.7186025",
"0.70600086",
"0.7008223",
"0.6732119",
"0.66044",
"0.65086544",
"0.62625355",
"0.623732",
"0.61371714",
"0.6122914",
"0.60888094",
"0.607863",
"0.6065662",
"0.60500073",
"0.5976525",
"0.59344697",
"0.5889004",
"0.585121",
"0.5800875",... | 0.7781568 | 0 |
Height of the renderer. | def H2v2(YKHO):
bGrB, h3cg, bGrB, Z3uP = YKHO.viewport
return YKHO.parent.window_size[1] * (Z3uP - h3cg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bAiv(YKHO):\n return YKHO.height",
"def bAiv(YKHO):\n return YKHO.height",
"def VAHQ(YKHO):\n return YKHO.height",
"def H2v2(YKHO):\n return YKHO._h",
"def xglF(YKHO):\n return YKHO._height",
"def xglF(YKHO):\n return YKHO._height",
"def xglF(YKHO):\n return YKHO._height",
"d... | [
"0.7929188",
"0.7929188",
"0.7837875",
"0.7837522",
"0.7828301",
"0.7828301",
"0.7828301",
"0.7815573",
"0.77933425",
"0.7765057",
"0.7765036",
"0.7754871",
"0.77456665",
"0.772672",
"0.7709255",
"0.7709255",
"0.7709255",
"0.7709255",
"0.76867217",
"0.76863873",
"0.76863873",... | 0.7832416 | 4 |
! Return a HeavyFootprint containing the flux apportioned to this peak. [in] strayFlux include stray flux also? | def qb5s(YKHO, n2zU=True):
if YKHO.templateFootprint is None or YKHO.fluxPortion is None:
return None
T35Y = IMR4.makeHeavyFootprint(YKHO.templateFootprint, YKHO.fluxPortion)
if n2zU:
if YKHO.strayFlux is not None:
T35Y = IMR4.mergeHeavyFootprints(T35Y, YKHO.strayFlux)
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M0gK(YKHO, Ebru):\n if YKHO.wavelength[0] > Ebru.wavelength[0] or YKHO.wavelength[-1] < Ebru.wavelength[-1]:\n E4N8('Spectrum does not cover the whole bandpass, extrapolating...')\n ncXl = oyIN.median(oyIN.diff(YKHO.wavelength.value))\n wuY8 = oyIN.arange(Ebru.wavelength.value[0], Ebru.... | [
"0.6568866",
"0.6026025",
"0.60091984",
"0.57948583",
"0.5710291",
"0.569109",
"0.5652298",
"0.55734104",
"0.5543463",
"0.5537051",
"0.55363387",
"0.55297583",
"0.55109626",
"0.5480033",
"0.54797477",
"0.54627854",
"0.5445631",
"0.5388139",
"0.53712696",
"0.53667307",
"0.5363... | 0.7391438 | 0 |
Home page of app with form | def kZiy():
return '<h1>Not Much Going On Here</h1>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('home.html', form=None)",
"def kZiy():\n L03z = X3Aq()\n return TvZl('home.html', form=L03z)",
"def kZiy():\n L03z = Pv1I()\n if L03z.validate_on_submit():\n return vKnz(nKyW('character'))\n return TvZl('index.html', form=L03z)",
"def t7ng():\n return TvZ... | [
"0.8036328",
"0.78751135",
"0.7652378",
"0.75973994",
"0.7335234",
"0.72964084",
"0.72769946",
"0.7130869",
"0.7130062",
"0.7061084",
"0.7052415",
"0.6994364",
"0.6938332",
"0.68757415",
"0.6873102",
"0.68598795",
"0.6853291",
"0.68531024",
"0.67979205",
"0.6771299",
"0.67646... | 0.0 | -1 |
Simulate a corrupt JSON response from K8s. | def rwMR(YKHO, NKcE, e28H):
bD7m = 'http://examples.com/'
x0hE = KsAw.requests.Session()
ykaQ = '{this is not valid] json;'
e28H.request(NKcE, bD7m, text=ykaQ, status_code=200)
U5bT = KsAw.request(x0hE, NKcE, bD7m, None, None)
assert U5bT == ({}, True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_unmarshall_k8s_error_response(YKHO):\n kcWH = {'type': 'ERROR', 'object': {'kind': 'Status', 'apiVersion': 'v1', 'metadata': {}, 'status': 'Failure', 'message': 'too old resource version: 1 (8146471)', 'reason': 'Gone', 'code': 410}}\n m6Me = qQXR.dumps(kcWH).encode('utf8')\n U5bT = KsAw.wa... | [
"0.7075015",
"0.59463435",
"0.5772302",
"0.544379",
"0.54182076",
"0.53815514",
"0.5340672",
"0.53308845",
"0.52847105",
"0.5282746",
"0.52798104",
"0.527385",
"0.524647",
"0.524647",
"0.52415794",
"0.5232432",
"0.5221458",
"0.52145404",
"0.51883495",
"0.5171841",
"0.51658905... | 0.6221612 | 1 |
Simulate an unsuccessful K8s response for GET request. | def gI4t(YKHO, NKcE, e28H, rHiQ):
bD7m = 'http://examples.com/'
x0hE = KsAw.requests.Session()
qv1X = SnBA.SimpleNamespace(method=NKcE, url=bD7m)
BQDi = KsAw.requests.exceptions.ConnectionError(request=qv1X)
e28H.request(NKcE, bD7m, exc=BQDi)
U5bT = KsAw.request(x0hE, NKcE, bD7m, None, None)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def us5f(YKHO):\n pass",
"def zCQT(YKHO):\n _hkX = YKHO.app.get('/asfdasdf')\n YKHO.assertEqual(_hkX.status_code, 404)\n assert 'NOT FOUND' in _hkX.status",
"async def test_unmarshall_k8s_error_response(YKHO):\n kcWH = {'type': 'ERROR', 'object': {'kind': 'Status', 'apiVersion': 'v1', 'metadata'... | [
"0.66334254",
"0.6453428",
"0.63435835",
"0.6325352",
"0.62887865",
"0.624398",
"0.6184689",
"0.61401105",
"0.6128633",
"0.612064",
"0.6110895",
"0.6106053",
"0.6097958",
"0.6094087",
"0.6094087",
"0.6050304",
"0.60185015",
"0.60136455",
"0.59992063",
"0.5991137",
"0.59851044... | 0.0 | -1 |
Simulate successful DELETE, GET, PATCH, POST requests. This test is for the various wrappers around the `request` function, which is why we mock it so as to return an HTTP code that constitutes a successful transaction for the respective request. | def Q13y(YKHO, loxG):
x0hE = 'client'
pmON = 'path'
pB3N = 'payload'
geh0 = 'response'
for Wxnj in (200, 202):
loxG.reset_mock()
loxG.return_value = (geh0, 202)
assert KsAw.delete(x0hE, pmON, pB3N) == (geh0, False)
loxG.assert_called_once_with(x0hE, 'DELETE', pmON, pB... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwPl():\n return Yxsy('ok')",
"def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n with h2IT.RequestsMock() as _THl:\n _THl.add(h2IT.GET, f'{YKHO.host}/{riNT}', status=200, json={'value': 'good!'})\n Mkmy = x0hE.request('get', riNT)\n assert Mkmy... | [
"0.7209447",
"0.67923886",
"0.67276996",
"0.6605493",
"0.6568527",
"0.6530386",
"0.652629",
"0.65112245",
"0.64949375",
"0.64517397",
"0.64386207",
"0.6435384",
"0.63577616",
"0.63520163",
"0.6336054",
"0.63077456",
"0.63029766",
"0.6271505",
"0.62623614",
"0.623353",
"0.6233... | 0.6408196 | 12 |
Verify with a Namespace resource. This one is a special case because it is not namespaced but Square's MetaManifest may specify a `namespace` for them, which refers to their actual name. This is a necessary implementation detail to properly support the selectors. | def _6Yv(YKHO, DHyi, QFhm):
GPtr = YKHO.k8sconfig(DHyi, QFhm)
DJYW = DkOz
for zZcM in ['', 'v1']:
Ylbp, XObx = KsAw.resource(GPtr, DJYW(zZcM, 'Namespace', None, 'name'))
assert not XObx
assert Ylbp == rbjz(apiVersion='v1', kind='Namespace', name='namespaces', namespaced=False, url=f'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z0QH(YKHO):\n fsgT = a5Lm(\"/foo[@xmlns='testns']/bar\")\n YKHO.assertEqual(fsgT.matches(YKHO.e), 1)",
"def t8v5(YKHO):\n pass",
"def rVj3(YKHO, nPrm):\n MCGz = nPrm['filename'].namespace\n try:\n return FYrf.Namespace.objects.get(name=MCGz)\n except FYrf.Namespace.DoesNotExist:\n ... | [
"0.6741465",
"0.6544986",
"0.6478834",
"0.6335777",
"0.6283167",
"0.6167026",
"0.6142375",
"0.6082803",
"0.60709655",
"0.60656166",
"0.5975379",
"0.5975379",
"0.5975379",
"0.5975379",
"0.5975379",
"0.5975379",
"0.5975379",
"0.5975379",
"0.5975379",
"0.5975379",
"0.5975379",
... | 0.71492606 | 0 |
Test case for otoroshi_controllers_adminapi_tcp_service_api_controller_bulk_patch_action | def s1d7(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pIZ5(YKHO):\n pass",
"def C4lX(YKHO):\n pass",
"def kU3i(YKHO):\n pass",
"def J2G_(YKHO):\n pass",
"def lXbK(YKHO):\n pass",
"def Ni9D(YKHO):\n XeOP = IuKf.create(id=22)\n nPrm = {'name': 'Ação para Melhorar', 'institution': 'Vamos Ajudar'}\n YKHO.assertNotEqual(XeOP.name, nPr... | [
"0.89587057",
"0.79859084",
"0.77814156",
"0.7351222",
"0.6798079",
"0.6592704",
"0.6206686",
"0.6186444",
"0.6156153",
"0.6141608",
"0.61236334",
"0.6114982",
"0.61129117",
"0.60986435",
"0.605086",
"0.6048132",
"0.6021875",
"0.59981215",
"0.5995738",
"0.5982147",
"0.5972742... | 0.9590716 | 0 |
Test case for otoroshi_controllers_adminapi_tcp_service_api_controller_patch_entity_action | def J2G_(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lXbK(YKHO):\n pass",
"def s1d7(YKHO):\n pass",
"def Ni9D(YKHO):\n XeOP = IuKf.create(id=22)\n nPrm = {'name': 'Ação para Melhorar', 'institution': 'Vamos Ajudar'}\n YKHO.assertNotEqual(XeOP.name, nPrm['name'])\n YKHO.assertNotEqual(XeOP.institution, nPrm['institution'])\n geh0 = YKHO.c... | [
"0.8554642",
"0.75501543",
"0.7063065",
"0.67835885",
"0.67672884",
"0.6672659",
"0.6641402",
"0.6640722",
"0.6588741",
"0.6573359",
"0.655098",
"0.65479195",
"0.65155846",
"0.65155846",
"0.65155846",
"0.6502837",
"0.6482056",
"0.64605016",
"0.6458824",
"0.6447331",
"0.644112... | 0.94470406 | 0 |
Test case for otoroshi_controllers_adminapi_tcp_service_api_controller_update_entity_action | def lXbK(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2G_(YKHO):\n pass",
"def pIZ5(YKHO):\n pass",
"def Tbie(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def b6pt(YKHO):\n pass",
"def mmy9(YKHO):\n pass",
"def HtU_(YKHO):\n print('the test function name: {}'.format(HwRy... | [
"0.8598254",
"0.74579716",
"0.7391294",
"0.7240276",
"0.7240276",
"0.7240276",
"0.7185599",
"0.7130445",
"0.7082372",
"0.6926615",
"0.6922648",
"0.6897682",
"0.6882747",
"0.6863802",
"0.6840213",
"0.6753261",
"0.6701399",
"0.66398615",
"0.66384304",
"0.6619335",
"0.6610379",
... | 0.95261025 | 0 |
Roll the dice until the same side appears multiple times in a row. 'Number of runs' can determine the number of consecutive repetitions. | def b8V_():
print("Let's flip a coin!")
oo7H = int(input('Number of runs: '))
wPFE = 0
rKSe = Mkmy.randint(1, 2)
TK2h = str(rKSe)
while True:
rKSe = Mkmy.randint(1, 2)
TK2h += str(rKSe)
if len(TK2h) == 2:
if TK2h[0] == TK2h[1]:
wPFE += 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKSe(YKHO):\n mHzO = []\n if YKHO.dice_array is not None:\n for fF1T in YKHO.dice_array:\n mHzO.append(oyIN.random.randint(1, fF1T + 1))\n else:\n for bGrB in range(0, YKHO.number):\n mHzO.append(oyIN.random.randint(1, YKHO.sides + 1))\n m_pC = not mHzO or [mHzO[... | [
"0.65195346",
"0.6328663",
"0.6250035",
"0.6164906",
"0.6100922",
"0.6084927",
"0.6076667",
"0.6068354",
"0.60316",
"0.6027927",
"0.5997847",
"0.5989442",
"0.598811",
"0.59758145",
"0.5973122",
"0.59565693",
"0.59347486",
"0.59183997",
"0.59183997",
"0.59183997",
"0.59183997"... | 0.54625833 | 45 |
Verifica que no este repetido el email | def jCQe(QePW):
D3lj = QePW.matchdict['email']
WIr9 = HyVV.check_email(QePW, D3lj)
return WIr9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wiRp(YKHO):\n YKHO.signup('Bo', 'Theo', 'Bo_theo5@example.com', 'Bo1995', 'Bo1995')\n im04 = YKHO.signup('Bo', 'Theo', 'Bo_theo5@example.com', 'Bo1995', 'Bo1995')\n YKHO.assertIn(b'Sorry email already exist', im04.data)",
"def kewE(YKHO):\n Ylbp = YKHO.app.post('/signup_process', params={'email':... | [
"0.67455435",
"0.6672261",
"0.6653048",
"0.6636306",
"0.66355145",
"0.66070724",
"0.66065395",
"0.6565752",
"0.6537923",
"0.65200835",
"0.6517968",
"0.6506951",
"0.649924",
"0.64724565",
"0.64579415",
"0.6435193",
"0.64318085",
"0.6413526",
"0.63983244",
"0.6370386",
"0.63566... | 0.6033285 | 64 |
Transform the bbox format from x1y1x2y2 to xywh. | def cKna(vjeS):
Vokc = vjeS.copy()
Vokc[:, 2] = Vokc[:, 2] - Vokc[:, 0] + 1
Vokc[:, 3] = Vokc[:, 3] - Vokc[:, 1] + 1
return Vokc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPN3(cviu, TVTK, H2v2):\n JRC0, LChT, IA3S, dCLF = cviu\n JRC0 *= TVTK\n IA3S *= TVTK\n LChT = (1 - LChT) * H2v2\n dCLF = (1 - dCLF) * H2v2\n return (JRC0, LChT, IA3S, dCLF)",
"def x5dQ(oUSw):\n cviu = oyIN.zeros(oUSw.shape)\n cviu[:, 0] = oUSw[:, 0]\n cviu[:, 1] = oUSw[:, 1]\n ... | [
"0.7292092",
"0.7161883",
"0.69186175",
"0.6808849",
"0.6656869",
"0.66403186",
"0.66323435",
"0.6618338",
"0.6593587",
"0.6586213",
"0.6535281",
"0.6492691",
"0.6446967",
"0.6424917",
"0.64235795",
"0.64152396",
"0.6402823",
"0.6401354",
"0.6401021",
"0.63842607",
"0.6377467... | 0.7297566 | 0 |
This encodes bbox(x,y,w,h) into (center, scale) | def SBL_(FlUN):
zi3C = (256, 256)
WKvO, LVAh, yzQ0, MKlR = FlUN[:4]
pAIe = zi3C[0] / zi3C[1]
hgjH = oyIN.array([WKvO + yzQ0 * 0.5, LVAh + MKlR * 0.5], dtype=oyIN.float32)
if yzQ0 > pAIe * MKlR:
MKlR = yzQ0 * 1.0 / pAIe
elif yzQ0 < pAIe * MKlR:
yzQ0 = MKlR * pAIe
NXpY = oyIN.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPN3(cviu, TVTK, H2v2):\n JRC0, LChT, IA3S, dCLF = cviu\n JRC0 *= TVTK\n IA3S *= TVTK\n LChT = (1 - LChT) * H2v2\n dCLF = (1 - dCLF) * H2v2\n return (JRC0, LChT, IA3S, dCLF)",
"def Lnpr(cviu):\n LVAh, WKvO, MKlR, yzQ0 = cviu\n return (int(LVAh + MKlR / 2), int(WKvO + yzQ0 / 2))",
"d... | [
"0.75232863",
"0.7178448",
"0.6820508",
"0.680587",
"0.680587",
"0.6712534",
"0.6692981",
"0.6637324",
"0.6603371",
"0.6579222",
"0.65749794",
"0.65723354",
"0.6563476",
"0.65543187",
"0.6522507",
"0.6513551",
"0.65109605",
"0.6496731",
"0.6485101",
"0.6481753",
"0.64767355",... | 0.6177024 | 53 |
Checks whether two character chromosome elements are equal. This is provided for fullness of the system the core implementation is within the Optimisation.Chromosome.__eq__ method overwrite. | def IzcV(YKHO, jzdc, Fg_i):
return jzdc == Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n for Oa1e in range(len(YKHO.genes)):\n if YKHO.genes[Oa1e].value != Elif.genes[Oa1e].value:\n return False\n return True",
"def InF8(o4D3, ajwV):\n return iEmF(o4D3, ajwV, '==', True)",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, UYOu):\n return ... | [
"0.7376069",
"0.69511425",
"0.6924126",
"0.6920197",
"0.6726079",
"0.6539885",
"0.65397084",
"0.65056235",
"0.643451",
"0.64267546",
"0.6422568",
"0.6413613",
"0.6403758",
"0.6367756",
"0.6359378",
"0.6341404",
"0.6326723",
"0.63120025",
"0.63069785",
"0.62948734",
"0.6293651... | 0.623808 | 28 |
Compute the distance between two unaligned speech waveforms | def xsAS(pan_, DwRD):
ye9d = 0
d4yg = 0
for D8Lu, yIp6 in zip(pan_, DwRD):
D8Lu, yIp6 = (D8Lu.astype('float64'), yIp6.astype('float64'))
sSN_, bGrB = U47D.dtw(D8Lu, yIp6, ZYEE.logSpecDbDist)
VIPT = len(D8Lu)
ye9d += sSN_
d4yg += VIPT
return ye9d / d4yg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yuq1(b55L, Mu7j, mn_j):\n tO2L = b55L.calc_loglikelihood(mn_j)\n jW55 = Mu7j.calc_loglikelihood(mn_j)\n Npy1 = len(mn_j) * len(mn_j[0])\n return (jW55 - tO2L) / Npy1",
"def I2Dl(j93S, Nqp_):\n pImw = 0\n for YRbF in range(0, len(j93S)):\n pImw += oyIN.abs(j93S[YRbF] - Nqp_[YRbF])\n ... | [
"0.66275364",
"0.6621299",
"0.6472255",
"0.6430095",
"0.6425751",
"0.64048135",
"0.6392346",
"0.63088095",
"0.6304871",
"0.63025373",
"0.6296252",
"0.62877095",
"0.6285541",
"0.6255369",
"0.6242844",
"0.62423277",
"0.62411255",
"0.6225788",
"0.62246895",
"0.62234914",
"0.6222... | 0.0 | -1 |
Returns all image paths with the given extensions in the directory. | def JKX5(SPqu, CBZq=['dcm']):
if SPqu is None:
SPqu = Hy7s.getcwd()
fOXV = []
for YPJ1, AQSv, RRlC in Hy7s.walk(SPqu):
for mWFP in RRlC:
for tTpl in CBZq:
if mWFP.endswith('.' + tTpl):
fOXV.append(YPJ1 + '/' + mWFP)
fOXV.sort()
return f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DSQj(ESvo, CBZq=('.png', '.jpg', '.tif')):\n dIld = []\n for Ux0P in Hy7s.listdir(ESvo):\n aPr_, Fst3 = Hy7s.path.splitext(Ux0P)\n if Fst3.lower() in CBZq:\n dIld.append(Hy7s.path.join(ESvo, Ux0P))\n return dIld",
"def zjv5(jscH, YBcr='jpg|jpeg|bmp|png'):\n gVaL = ZbWC.co... | [
"0.8455729",
"0.79074585",
"0.777719",
"0.76999205",
"0.764755",
"0.7619192",
"0.7556975",
"0.74782246",
"0.7451435",
"0.7433362",
"0.74103874",
"0.7395848",
"0.7359271",
"0.7328922",
"0.7274254",
"0.7243583",
"0.7243583",
"0.72068715",
"0.7173131",
"0.71607155",
"0.71459913"... | 0.7424227 | 10 |
Get only nummer from the string | def G7AI(l5Ny):
LJkm = ''
for bseI in l5Ny:
if bseI.isnumeric():
LJkm += bseI
return LJkm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XFjE(YKHO, vIwR):\n KCHu = ZbWC.findall('\\\\d+', vIwR)\n return int(''.join(KCHu))",
"def mkJm(GIN8):\n return int(ZbWC.match(nWni, GIN8).group(1))",
"def mkJm(WKvO):\n return ZbWC.findall('\\\\d+', WKvO)[0]",
"def uUFo(GIN8):\n vZrs = True\n FGW3 = ''\n GIN8 = GIN8.rstrip('.').lstr... | [
"0.72549516",
"0.7053949",
"0.69787556",
"0.68994635",
"0.6691953",
"0.6683544",
"0.6632851",
"0.6539088",
"0.64736855",
"0.6467642",
"0.64394635",
"0.6403154",
"0.639297",
"0.6373588",
"0.6364703",
"0.6335249",
"0.62866586",
"0.62499136",
"0.6241501",
"0.62414855",
"0.618654... | 0.75300103 | 0 |
Function to create tensorflow diagonal matrix with input diagonal entries. | def A2lD(AzT8):
return ZylS.diag(ZylS.reshape(AzT8, [-1])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WyUJ(SppC):\n bfKS = ZylS.reduce_sum(SppC, 1)\n IjIm = ZylS.diag(bfKS, name='diagonal')\n return IjIm",
"def IjIm(YKHO, WZcn: Kernel, g4y1: Float[Array, 'N D']) -> q2Fi:\n A2lD = pkba(lambda WKvO: WZcn(WKvO, WKvO))(g4y1)\n return q2Fi(diag=A2lD)",
"def MGTm(VfI6, RA_F=1):\n jzdc = 0.5 / R... | [
"0.7452761",
"0.7068915",
"0.6893716",
"0.684906",
"0.68299454",
"0.68269825",
"0.67879814",
"0.67195463",
"0.6702948",
"0.67005247",
"0.6593233",
"0.6524967",
"0.63910055",
"0.63697654",
"0.63635975",
"0.6308815",
"0.6303916",
"0.6286338",
"0.6277062",
"0.6267886",
"0.625350... | 0.756098 | 0 |
Return the next node Returns _QueueNode or None Return the next node. `None` will be returned if there is no next node. | def next(YKHO):
return YKHO.my_next | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def next(YKHO, Q6kx):\n if Q6kx is None:\n YKHO.my_next = None\n elif type(Q6kx) == type(M0fd(0)):\n YKHO.my_next = Q6kx\n else:\n raise ValueError('Invalid type')",
"def xn5b(YKHO):\n try:\n U5bT = YKHO._queue.get(block=True, timeout=0.5)\n YKHO._queue.task_done()\... | [
"0.7482299",
"0.7025978",
"0.70203733",
"0.69917697",
"0.69917697",
"0.69917697",
"0.6956978",
"0.6883775",
"0.6857518",
"0.68393016",
"0.67897546",
"0.6717794",
"0.6699381",
"0.66742355",
"0.6664037",
"0.66408074",
"0.6603975",
"0.6516147",
"0.6513893",
"0.64649516",
"0.6406... | 0.0 | -1 |
Removes the item from the front of the queue. And return the value of the removed item. Returns int or None The value of the removed item. If the queue is empty, `None` will be returned. | def he0F(YKHO) -> int:
if YKHO._tail:
ycBG = YKHO._tail
YKHO._tail = ycBG._previous
YKHO._tail.next = None
YKHO._size -= 1
return ycBG.data
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO) -> int:\n DpUl = None\n if not YKHO.empty():\n DpUl = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n return DpUl",
"def he0F(YKHO):\n if not YKHO.front:\n raise AttributeError(\"Can't dequeue from an empty queue\")\n eSnm = YKHO.front\n YKHO.front = YKHO.front... | [
"0.7803077",
"0.75311047",
"0.7485364",
"0.7350754",
"0.7331083",
"0.72728825",
"0.7271808",
"0.7221793",
"0.72201943",
"0.7218898",
"0.71885103",
"0.7176328",
"0.71460044",
"0.71365976",
"0.71365976",
"0.7121378",
"0.7092396",
"0.70655817",
"0.7051443",
"0.7028444",
"0.70175... | 0.72844565 | 5 |
Evaluate an XPath expression on the stanza XML node. The expression will be evaluated in context where the common namespace | def MzyY(Q6kx, VN2L, Dl0U=None):
bp_0 = tcKU.xpathNewContext()
bp_0.setContextNode(Q6kx)
bp_0.xpathRegisterNs('ns', hWSJ)
if Dl0U:
for y0cW, j8eK in Dl0U.items():
bp_0.xpathRegisterNs(QMSQ(y0cW), j8eK)
U5bT = bp_0.xpathEval(QMSQ(VN2L))
bp_0.xpathFreeContext()
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def laNn(YKHO, VN2L=''):\n from xml.dom.ext import GetAllNs\n from xml import laNn\n Mf7r = YKHO.get_dom(YKHO(method='xml'))\n QpfX = laNn.Context.Context(Mf7r, processorNss=GetAllNs(Mf7r.documentElement))\n return laNn.Evaluate(VN2L, context=QpfX)",
"def yUTM(YKHO, Q6kx, laNn, **B2fa):\n M3Ez ... | [
"0.67246246",
"0.6415816",
"0.6191323",
"0.6064416",
"0.58050174",
"0.5767982",
"0.56192315",
"0.560801",
"0.560801",
"0.5591657",
"0.5541949",
"0.5515451",
"0.5297762",
"0.5267096",
"0.5260832",
"0.5250742",
"0.5249531",
"0.5221063",
"0.5194316",
"0.5177213",
"0.51482666",
... | 0.65267986 | 1 |
Instantiates the CIFAR ResNet architecture described in section 4.2 of the paper. Arguments | def gveI(exwG=9, KUnM=[16, 32, 64], ao6X=True, _mSQ=None, FRUf=None, GhuM=None, wDQ7='avg', R5ZC=yjPc.l2(0.0002), YDYE='relu', WNBw='softmax', MMxy=False, tF9S=True, KndY=100, mWFP=None):
if GhuM is None:
if nMvt.image_data_format() == 'channels_first':
GhuM = (3, 32, 32) if ao6X and wDQ7 is Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, **B2fa):\n super(ScQB, YKHO).__init__()\n YKHO.model_conv = FYrf.resnet50(pretrained=True)\n for xqoZ in YKHO.model_conv.parameters():\n xqoZ.requires_grad = False\n _e7G = YKHO.model_conv.fc.in_features\n jTqs = 10\n YKHO.model_conv.fc = U78l.Linear(_e7G, jTqs)\n YKHO.sc... | [
"0.6779336",
"0.65928525",
"0.65919155",
"0.6205415",
"0.6192039",
"0.6173868",
"0.61688954",
"0.6076978",
"0.60657364",
"0.6007815",
"0.59915596",
"0.5985954",
"0.5975323",
"0.5942597",
"0.5898195",
"0.5881672",
"0.5881672",
"0.5881672",
"0.5870501",
"0.5853579",
"0.58440006... | 0.0 | -1 |
Round a datetime object to any time lapse in seconds | def ZhNM(JRYC=None, HlDX=60):
if JRYC == None:
JRYC = qcWV.now()
C6wh = (JRYC.replace(tzinfo=None) - JRYC.min).seconds
Y3rN = (C6wh + HlDX / 2) // HlDX * HlDX
return JRYC + fCoM(0, Y3rN - C6wh, -JRYC.microsecond) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZhNM(ITS7):\n XXcz = ITS7.minute % 5\n W3xo = ITS7.second\n oLQB = ITS7.microsecond\n ITS7 = ITS7 - fCoM(minutes=XXcz, seconds=W3xo, microseconds=oLQB)\n return ITS7",
"def I3hM(JRYC=None, HlDX=60):\n if hasattr(JRYC, 'tzinfo'):\n JRYC.replace(tzinfo=None)\n yk4i = JRYC - JRYC.rep... | [
"0.7319746",
"0.71509767",
"0.7098589",
"0.70558184",
"0.69927",
"0.69684905",
"0.6829757",
"0.6818082",
"0.68054426",
"0.66659987",
"0.6533629",
"0.63276696",
"0.6323017",
"0.63170487",
"0.6301285",
"0.6299775",
"0.6283563",
"0.622859",
"0.6186915",
"0.6161188",
"0.6160083",... | 0.71368575 | 2 |
Compute bounding boxes from masks. | def p5Lc(ZHfW):
oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)
for YRbF in range(ZHfW.shape[-1]):
r8hN = ZHfW[:, :, YRbF]
GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]
mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]
if GO_b.shape[0]:
o4D3, ajwV = GO_b[[0, -1]]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p5Lc(ZHfW):\n oUSw = oyIN.zeros([ZHfW.shape[-1], 4], dtype=oyIN.int32)\n for YRbF in range(ZHfW.shape[-1]):\n r8hN = ZHfW[:, :, YRbF]\n GO_b = oyIN.where(oyIN.any(r8hN, axis=0))[0]\n mFka = oyIN.where(oyIN.any(r8hN, axis=1))[0]\n if GO_b.shape[0]:\n o4D3, ajwV = GO_... | [
"0.7822369",
"0.78139836",
"0.7725928",
"0.7461299",
"0.73264146",
"0.73167074",
"0.7166775",
"0.70373887",
"0.70283306",
"0.6982371",
"0.6840199",
"0.6770545",
"0.6766585",
"0.66791236",
"0.6641104",
"0.66124547",
"0.6609052",
"0.6588485",
"0.6554284",
"0.64965963",
"0.64940... | 0.78476 | 0 |
Creates database tables. Use migrations instead. | def miiy():
CNDk('models', silent=True)
for STHt, VcfD in P4t4.blueprints.items():
CNDk('%s.models' % VcfD.import_name, silent=True)
NCls.create_all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fn50():\n NCls.create_all()",
"def fn50():\n NCls.create_all()",
"def fn50():\n NCls.create_all()",
"def yPvr():\n with yPQU.app_context():\n pths.create_all()",
"def fn50() -> None:\n print('Creating database tables using SQLAlchemy ORM')\n i_Aq.metadata.create_all(eHpk)\n ... | [
"0.8667129",
"0.8667129",
"0.8500174",
"0.8233372",
"0.81565076",
"0.8037983",
"0.78211665",
"0.7708469",
"0.7664109",
"0.7630137",
"0.75919974",
"0.75763303",
"0.75576335",
"0.7531149",
"0.75054634",
"0.75054634",
"0.75054634",
"0.75054634",
"0.75054634",
"0.75054634",
"0.75... | 0.68218213 | 96 |
Creates app folder structure. Optionally, scaffolds the app with models, forms, views and templates. \b Eg. \b Create blueprint with scaffold. | def m_O4(mWFP, afxa=False, V_D6=''):
print(H4yH.check_output('mkdir -p blueprints/%(name)s/templates/%(name)s' % locals(), shell=True), end=' ')
for R5in in ('css', 'js', 'img'):
print(H4yH.check_output('mkdir -p blueprints/%(name)s/static/%(static_dir)s' % locals(), shell=True), end=' ')
print(H4yH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYMg(B5PH, kvcN):\n from flask_create_app.core.commands.cmd_newapp import create_new_app\n t7Ny = Hy7s.getcwd()\n create_new_app(kvcN, t7Ny, B5PH)",
"def Nd3k(kvcN, Ljhl):\n Hy7s.chdir('%s/applications/%s' % (Hy7s.environ['WEB2PY_PATH'], kvcN))\n HwRy.path.append('%s/applications/%s' % (Hy7s.e... | [
"0.6841619",
"0.67879504",
"0.6647413",
"0.64234865",
"0.639497",
"0.63812584",
"0.6364389",
"0.63250196",
"0.61987513",
"0.6194237",
"0.6183108",
"0.6163945",
"0.6118564",
"0.60593677",
"0.6032852",
"0.60165757",
"0.6006623",
"0.59915215",
"0.59889686",
"0.59878004",
"0.5983... | 0.6541894 | 3 |
Onehot encoding of nominal values | def fKLU(WKvO, xL7R=None):
if not xL7R:
xL7R = oyIN.amax(WKvO) + 1
KLLm = oyIN.zeros((WKvO.shape[0], xL7R))
KLLm[oyIN.arange(WKvO.shape[0]), WKvO] = 1
return KLLm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vzTG(nPrm):\n w9O8 = rLdf.get_dummies(nPrm)\n return w9O8",
"def zGX0(jQ3Z, BsPh):\n return rLdf.get_dummies(jQ3Z, columns=BsPh)",
"def zGX0(jQ3Z, fvDH):\n return rLdf.get_dummies(jQ3Z, columns=[fvDH], drop_first=True)",
"def odIT(WKvO, svPB=7):\n mktQ = RHxJ(n_values=svPB)\n return mkt... | [
"0.8417778",
"0.82630193",
"0.82184345",
"0.81815094",
"0.81639904",
"0.81592536",
"0.81583315",
"0.8143522",
"0.8124081",
"0.8082504",
"0.8045998",
"0.80186814",
"0.79987645",
"0.7984237",
"0.7973227",
"0.7966908",
"0.7959543",
"0.7958623",
"0.79191023",
"0.79183227",
"0.788... | 0.76345474 | 63 |
Returns the mean squared error between y_true and y_pred | def SDab(Y8eF, aMgO):
hkHB = oyIN.mean(oyIN.power(Y8eF - aMgO, 2))
return hkHB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SDab(Y8eF, aMgO):\n hkHB = oyIN.mean((Y8eF - aMgO) ** 2)\n return hkHB",
"def SDab(Y8eF, aMgO):\n hkHB = oyIN.mean(oyIN.power(Y8eF, aMgO, 2))\n return hkHB",
"def P1dF(YKHO, Y8eF, aMgO):\n return SDab(Y8eF, aMgO)",
"def iAxY(Y8eF, aMgO):\n return DDLl.sqrt(DDLl.mean(DDLl.square(aMgO - Y... | [
"0.89604354",
"0.8950837",
"0.8636927",
"0.8554371",
"0.85378283",
"0.85158247",
"0.85120547",
"0.8506143",
"0.8479394",
"0.8465045",
"0.84644735",
"0.835464",
"0.8324895",
"0.8304797",
"0.81430644",
"0.8137651",
"0.8132751",
"0.8130582",
"0.8104543",
"0.79954034",
"0.7970443... | 0.89354074 | 2 |
Linearizes a network for a set of inputs. For each input in (n_inputs x in_dims), the linearization of the network around that input point is computed and returned as a FullyConnectedLayer. | def DZve(g4y1, eVVj):
if not eVVj.layers:
return [ZKxi(oyIN.eye(g4y1.shape[1]), oyIN.zeros(shape=g4y1.shape[1])) for YRbF in range(len(g4y1))]
HabP = eVVj.compute(g4y1)
u8R3 = oyIN.array([eVVj.compute_gradients(g4y1, zNlz) for zNlz in range(HabP.shape[1])]).transpose((1, 2, 0))
HabP -= oyIN.eins... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k2Tc(g4y1, wspz, a6Jb, oug5, tzT4=0.0):\n gRCI = pf_1.flatten(wspz)\n BRz6 = [g4y1]\n BRz6.extend(wspz)\n hlel = W5mC(BRz6, a6Jb, True)\n return hlel",
"def Caw3(YKHO, DYuh, tYiq, hUTg=1):\n A5u8 = []\n for exwG in range(hUTg):\n A5u8.append(U78l.Linear(DYuh, tYiq))\n A5u8.... | [
"0.71852475",
"0.7052541",
"0.67577904",
"0.64969784",
"0.6379175",
"0.63174474",
"0.62346095",
"0.6225414",
"0.620823",
"0.61990017",
"0.6181556",
"0.6168546",
"0.61642456",
"0.6151027",
"0.6085933",
"0.60823536",
"0.6081339",
"0.6074677",
"0.6064095",
"0.6043337",
"0.602631... | 0.7805938 | 0 |
Reduce truncated residual(=r_at) to residual(=pred_r). | def DjS5(RUR1, xqoZ, CJGY=False):
with ZylS.variable_scope('TrResidual') as rrBf:
if CJGY:
rrBf.reuse_variables()
rFF5 = 1 / xqoZ * ZylS.log(RUR1 / (1 - RUR1 + 1e-08))
return rFF5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hIJ0(Mkmy):\n global conv_residuals\n QFSu.append(Mkmy)\n return",
"def hTKu(YKHO, WKvO, Ot1W, juHT, gmUL, _0fC, fjtu=False):\n del fjtu\n with ZylS.name_scope('residual_v1') as wOkA:\n oN8J = WKvO\n WKvO = YKHO._conv(WKvO, Ot1W, gmUL, _0fC)\n WKvO = YKHO._batch_norm(WKvO)... | [
"0.6064858",
"0.5904775",
"0.58542275",
"0.58452564",
"0.58433616",
"0.58408254",
"0.5792652",
"0.57523024",
"0.5631459",
"0.56284606",
"0.5614107",
"0.5600225",
"0.5576867",
"0.5548064",
"0.5540776",
"0.55265146",
"0.5487336",
"0.5469007",
"0.54467",
"0.5422139",
"0.5421005"... | 0.5647098 | 8 |
Do not return anything, modify rooms inplace instead. | def awDp(YKHO, DFSo: List[List[int]]) -> None:
if DFSo == []:
return
rdlD = len(DFSo)
iVRZ = len(DFSo[0])
azXi = [[False for YRbF in range(iVRZ)] for r845 in range(rdlD)]
def deVW(begg, f1pu):
if begg < rdlD and begg >= 0 and (f1pu < iVRZ) and (f1pu >= 0):
return True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DFSo(YKHO, DFSo):\n YKHO._rooms = DFSo",
"def eEEi(YKHO):\n DFSo = YKHO.model.get_all_rooms()\n for abiq in DFSo:\n YKHO._add_room(abiq)",
"def DFSo(*qIxc):\n s_GD.system_message('\\n'.join(DFSo()))",
"def pUc1(YKHO):\n pass",
"def a12t(YKHO, gv2B: str, BdN0: str):\n for abiq i... | [
"0.67922723",
"0.6150443",
"0.5985418",
"0.59520423",
"0.5938853",
"0.5910455",
"0.5802791",
"0.5788961",
"0.57677865",
"0.56960684",
"0.56584203",
"0.56518275",
"0.5649922",
"0.56375164",
"0.5580176",
"0.5570199",
"0.5540112",
"0.5534412",
"0.5534412",
"0.5529608",
"0.549605... | 0.49137658 | 89 |
Do not return anything, modify rooms inplace instead. | def awDp(YKHO, DFSo: List[List[int]]) -> None:
if DFSo == []:
return
rdlD = len(DFSo)
iVRZ = len(DFSo[0])
azXi = [[False for YRbF in range(iVRZ)] for r845 in range(rdlD)]
def deVW(begg, f1pu):
if begg < rdlD and begg >= 0 and (f1pu < iVRZ) and (f1pu >= 0):
return True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DFSo(YKHO, DFSo):\n YKHO._rooms = DFSo",
"def eEEi(YKHO):\n DFSo = YKHO.model.get_all_rooms()\n for abiq in DFSo:\n YKHO._add_room(abiq)",
"def DFSo(*qIxc):\n s_GD.system_message('\\n'.join(DFSo()))",
"def pUc1(YKHO):\n pass",
"def a12t(YKHO, gv2B: str, BdN0: str):\n for abiq i... | [
"0.67922723",
"0.6150443",
"0.5985418",
"0.59520423",
"0.5938853",
"0.5910455",
"0.5802791",
"0.5788961",
"0.57677865",
"0.56960684",
"0.56584203",
"0.56518275",
"0.5649922",
"0.56375164",
"0.5580176",
"0.5570199",
"0.5540112",
"0.5534412",
"0.5534412",
"0.5529608",
"0.549605... | 0.0 | -1 |
Export the data as csv as a string. | def rl5L(WBPg, nPrm):
with kJm3() as jbXL:
WJI9 = m6_J.DictWriter(jbXL, fieldnames=WBPg)
WJI9.writeheader()
WJI9.writerows(nPrm)
nPrm = jbXL.getvalue()
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AaVo(YKHO):\n jQ3Z = None\n for Csk6 in YKHO.data:\n if jQ3Z is None:\n jQ3Z = Csk6.as_dataframe()\n else:\n jQ3Z = jQ3Z.append(Csk6.as_dataframe())\n if jQ3Z is None:\n return ''\n else:\n return jQ3Z.to_csv(index=False)",
"def NPhb(loqZ, nPrm):\... | [
"0.7818861",
"0.75051194",
"0.7365046",
"0.7247712",
"0.7151429",
"0.7137313",
"0.71001154",
"0.709342",
"0.7073753",
"0.70726496",
"0.7064882",
"0.7014092",
"0.7014092",
"0.70108575",
"0.69683474",
"0.6914852",
"0.69141084",
"0.6911863",
"0.68883586",
"0.6887966",
"0.6878339... | 0.7359944 | 3 |
Finds all blocks of a given layout. | def jCt9(wv49: 'BKAlignedLayout'):
rmyT = oRi_(list)
for gEmA in wv49.layeredGraph.layers:
for Q6kx in gEmA:
tk5Y = wv49.root[Q6kx]
vUHg = rmyT[tk5Y]
vUHg.append(Q6kx)
return rmyT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VoPi(YKHO):\n dsE5.info(1, 'Finding blockages.')\n for gEmA in [YKHO.vert_layer_number, YKHO.horiz_layer_number]:\n YKHO.retrieve_blockages(gEmA)",
"def H8vH(YKHO, f0tD, dJ1p, UHFx=None, T4Wy=None, AU8u=None):\n if UHFx != None:\n raise NotImplementedError()\n if T4Wy != None:\n ... | [
"0.645141",
"0.6361234",
"0.61563736",
"0.58998257",
"0.58987355",
"0.58616567",
"0.5830054",
"0.58044136",
"0.5767913",
"0.5762106",
"0.5729591",
"0.56962764",
"0.5663309",
"0.56315386",
"0.56241405",
"0.5604145",
"0.560213",
"0.5577769",
"0.5509176",
"0.5506606",
"0.5504003... | 0.6544498 | 0 |
Return a view of the list of tokens from [i, j). | def slice(YKHO, YRbF=None, r845=None):
gYaT = jth9.copy(YKHO)
gYaT.data = YKHO.data[YRbF:r845]
return gYaT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sxVV(YKHO):\n list = []\n for YRbF in range(YKHO.startIdx, YKHO.endIdx + 1):\n eOtH = YKHO.sentence[YRbF]\n list.append(eOtH)\n return list",
"def j6oe(YKHO, Tj8q, pR3T):\n xC3t = []\n for DbJ4 in Tj8q:\n xC3t.append(pR3T.T.index[DbJ4])\n return xC3t",
"def s2mk(YKHO)... | [
"0.6420934",
"0.5870301",
"0.58690697",
"0.58190936",
"0.5788967",
"0.57726216",
"0.5756984",
"0.5721273",
"0.57205",
"0.5691513",
"0.56850785",
"0.568055",
"0.5671691",
"0.56669706",
"0.56259185",
"0.5594656",
"0.5594656",
"0.5594656",
"0.5587629",
"0.55673075",
"0.55442655"... | 0.69673723 | 1 |
Returns a list of the text of each token | def V22M(YKHO, XZVu=False):
if XZVu:
return [a1PO[YKHO.TEXT].lower() for a1PO in YKHO.data]
else:
return [a1PO[YKHO.TEXT] for a1PO in YKHO.data] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJYp(l5Ny):\n return l5Ny.split()",
"def sxVV(YKHO):\n list = []\n for YRbF in range(YKHO.startIdx, YKHO.endIdx + 1):\n eOtH = YKHO.sentence[YRbF]\n list.append(eOtH)\n return list",
"def thS1(YKHO) -> x1iM[str]:\n return YKHO.tokens",
"def s2mk(YKHO):\n s2mk = []\n for... | [
"0.7831765",
"0.7553254",
"0.75081605",
"0.74014765",
"0.73847663",
"0.73690164",
"0.735633",
"0.73305035",
"0.7258611",
"0.7233778",
"0.72116613",
"0.7197483",
"0.7197483",
"0.7197483",
"0.71930826",
"0.71677893",
"0.7146377",
"0.7119637",
"0.7116125",
"0.710533",
"0.7080622... | 0.0 | -1 |
Returns a list of [start, end) character offsets of each token. | def gQVb(YKHO):
return [a1PO[YKHO.SPAN] for a1PO in YKHO.data] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thS1(YKHO):\n return YKHO.get_starttokens() + YKHO.get_endtokens()",
"def so3P(s2Ni):\n gQVb = (-s2Ni, 0, s2Ni)\n for QOxj in gQVb:\n for SCLJ in gQVb:\n yield (QOxj, SCLJ)",
"def suns(l5Ny, s2mk):\n jvSB = 0\n mReh = []\n for eOtH in s2mk:\n jvSB = l5Ny.find(eOtH... | [
"0.7488291",
"0.6970794",
"0.66514665",
"0.66432625",
"0.6558616",
"0.6440407",
"0.63480353",
"0.6329038",
"0.63192546",
"0.62382144",
"0.623288",
"0.6215841",
"0.61828405",
"0.6164689",
"0.6144047",
"0.6141013",
"0.61344206",
"0.6122571",
"0.60886264",
"0.60227",
"0.6001985"... | 0.66103053 | 5 |
Returns a list of namedentityrecognition tags of each token. Returns None if this annotation was not included. | def MMe4(YKHO):
if 'ner' not in YKHO.annotators:
return None
return [a1PO[YKHO.NER] for a1PO in YKHO.data] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dJ1p(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['ExtensionAssociationTagArgs']]]]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> h8nf[ImMB]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'tags')",
"def dJ1p(YKHO):\n Npgh, pdhd, LTX_, tjUW =... | [
"0.6343892",
"0.63352984",
"0.62661695",
"0.62595373",
"0.6200785",
"0.61777395",
"0.61777395",
"0.6146293",
"0.6142111",
"0.6139963",
"0.61359984",
"0.6134838",
"0.61318386",
"0.61318386",
"0.61318386",
"0.61318386",
"0.61318386",
"0.61318386",
"0.61318386",
"0.61318386",
"0... | 0.62355465 | 5 |
Returns a list of all ngrams from length 1 to n. | def pCSA(YKHO, exwG=1, XZVu=False, S86P=None, cCSD=True):
def lye9(CG35):
if not S86P:
return False
return S86P(CG35)
V22M = YKHO.words(XZVu)
pCSA = [(KCHu, tTpl + 1) for KCHu in range(len(V22M)) for tTpl in range(KCHu, min(KCHu + exwG, len(V22M))) if not lye9(V22M[KCHu:tTpl + 1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pCSA(l5Ny, exwG):\n gOBC = zip(*[l5Ny[YRbF:] for YRbF in range(exwG)])\n return [''.join(CG35) for CG35 in gOBC]",
"def pCSA(l5Ny, exwG):\n return eNCK(*[RihX(l5Ny, YRbF) for YRbF in range(exwG + 1)])",
"def RisN(Q6uT, exwG):\n return",
"def pCSA(V22M, exwG=1):\n return [tuple(V22M[r845:r8... | [
"0.86101174",
"0.8502931",
"0.8441258",
"0.8434175",
"0.8414284",
"0.83849615",
"0.8335904",
"0.8312085",
"0.8242242",
"0.8135404",
"0.8132783",
"0.81266886",
"0.80864936",
"0.80320215",
"0.80265075",
"0.8024729",
"0.8016537",
"0.7979087",
"0.7966552",
"0.7959912",
"0.7935775... | 0.7615313 | 32 |
From a `Mask2D` get its origin for plotter, which is only extracted if an origin is not already in `self.visuals` and with `True` entries in the `Include2D` object are extracted for plotting. | def FxOj(YKHO, ZHfW: Mask2D) -> yEya:
return YKHO.get('origin', yEya(values=[ZHfW.origin])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def keW_(YKHO, ZHfW: Mask2D) -> D7P7:\n hLRM = YKHO.origin_via_mask_from(mask=ZHfW)\n ya_C = YKHO.get('mask', ZHfW)\n MX3a = YKHO.get('border', ZHfW.derive_grid.border_sub_1.binned)\n return YKHO.visuals + YKHO.visuals.__class__(origin=hLRM, mask=ya_C, border=MX3a)",
"def mQHb(YKHO):\n if not hasa... | [
"0.67957056",
"0.5915571",
"0.54504776",
"0.5341723",
"0.5312308",
"0.52889234",
"0.52393883",
"0.51417446",
"0.5126154",
"0.5116535",
"0.5108155",
"0.5087901",
"0.50755525",
"0.50606495",
"0.5051707",
"0.503693",
"0.5007401",
"0.5007401",
"0.5007401",
"0.49772084",
"0.494971... | 0.73298883 | 0 |
From a `Mask2D` get its attributes that can be plotted and return them in a `Visuals2D` object. Only attributes not already in `self.visuals` and with `True` entries in the `Include2D` object are extracted for plotting. | def keW_(YKHO, ZHfW: Mask2D) -> D7P7:
hLRM = YKHO.origin_via_mask_from(mask=ZHfW)
ya_C = YKHO.get('mask', ZHfW)
MX3a = YKHO.get('border', ZHfW.derive_grid.border_sub_1.binned)
return YKHO.visuals + YKHO.visuals.__class__(origin=hLRM, mask=ya_C, border=MX3a) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DCtP(YKHO, Cs6h: Grid2DLike) -> D7P7:\n if not isinstance(Cs6h, tSzF):\n return YKHO.visuals\n hLRM = YKHO.origin_via_mask_from(mask=Cs6h.mask)\n return YKHO.visuals + YKHO.visuals.__class__(origin=hLRM)",
"def rdTp(IEVf, qQTo='xform.align2d'):\n a1PO = IEVf.get_attr(qQTo)\n Csk6 = a1PO... | [
"0.5621481",
"0.52429175",
"0.51223534",
"0.5120332",
"0.5071792",
"0.5067556",
"0.4972231",
"0.49085614",
"0.48752496",
"0.47747084",
"0.47348034",
"0.46465057",
"0.46200225",
"0.46137384",
"0.46064192",
"0.46021077",
"0.45991465",
"0.4598747",
"0.45880556",
"0.45564288",
"0... | 0.69218785 | 0 |
Calculates a random value from the mean & standard deviation for a normal distribution. Seed is used to set the point on the lognormal curve 0100% and var is the % variation allowed around that point. | def V6b7(JBMS, M1Jx, yokr, SRYB):
aZhF = yokr * (1.0 + SRYB) - yokr * (1.0 - SRYB)
wEf2 = oyIN.random.random(size=oyIN.size(aZhF)) * aZhF + yokr
oyIN.clip(wEf2, 0.01, 0.99, out=wEf2)
wEf2 = Zi12.norm.ppf(wEf2, loc=JBMS, scale=M1Jx)
return wEf2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mhAC(JBMS, M1Jx):\n return tuKI.gauss(JBMS, M1Jx)",
"def zmG3():\n return K0SZ(tuKI.random())",
"def vsaG(WKvO, JBMS, SRYB):\n if SRYB != 0:\n return -(WKvO - JBMS) ** 2 / (2 * SRYB) - 0.5 * oyIN.log(2 * oyIN.pi * SRYB)\n else:\n return 0",
"def zmG3():\n return K0SZ(tuKI.ran... | [
"0.74418104",
"0.727839",
"0.7239607",
"0.72173154",
"0.6997832",
"0.68671256",
"0.68299586",
"0.6813323",
"0.664916",
"0.6622569",
"0.6545723",
"0.652389",
"0.65081125",
"0.64917815",
"0.6473979",
"0.6466487",
"0.64575326",
"0.6431877",
"0.6403476",
"0.6388818",
"0.6385024",... | 0.8174164 | 0 |
Assign a unique identifier to the unit instance. | def Artt(YKHO, Artt):
YKHO._guid = Artt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f6Qh(YKHO):\n raise NotImplementedError()",
"def CpvB(YKHO, CpvB):\n YKHO._unique_identifier = CpvB",
"def W2tI(YKHO, Ilxn):\n YKHO.identifier = Ilxn",
"def Ilxn(YKHO, Ilxn):\n YKHO._identifier = Ilxn",
"def Ilxn(YKHO, Ilxn):\n YKHO._identifier = Ilxn",
"def id(YKHO, _eu6):\n YKHO._... | [
"0.65741825",
"0.6564744",
"0.65594155",
"0.6308034",
"0.6308034",
"0.6251753",
"0.62211865",
"0.6218895",
"0.61827576",
"0.6176742",
"0.61508524",
"0.61508524",
"0.61508524",
"0.61508524",
"0.615083",
"0.61117065",
"0.6106036",
"0.6104656",
"0.6100143",
"0.6095097",
"0.60626... | 0.595287 | 28 |
Name property for the unit. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0HP(YKHO):\n return _VfD.UnitDefinition_getName(YKHO)",
"def mWFP(YKHO):\n return str(YKHO.name)",
"def W0tD(YKHO) -> str:\n return YKHO.name",
"def mWFP(YKHO):\n return YKHO.properties.get('name')",
"def mWFP(YKHO):\n return YKHO.properties.get('name')",
"def mWFP(YKHO):\n return ... | [
"0.7773994",
"0.7270462",
"0.722922",
"0.7223204",
"0.7223204",
"0.72152674",
"0.7197392",
"0.7197392",
"0.7197392",
"0.71891737",
"0.7136978",
"0.7136978",
"0.7136978",
"0.7136978",
"0.7136978",
"0.7130037",
"0.7130037",
"0.71161026",
"0.71154183",
"0.7103265",
"0.7103265",
... | 0.0 | -1 |
Set the name for the unit. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)",
"def oSgC(YKHO, *qIxc):\n return _VfD.UnitDefinition_setName(YKHO, *qIxc)",
"def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.... | [
"0.7942399",
"0.7940122",
"0.7939814",
"0.78587",
"0.78587",
"0.78587",
"0.78587",
"0.78587",
"0.78235364",
"0.7802141",
"0.7777701",
"0.7777701",
"0.7773648",
"0.7744992",
"0.7710195",
"0.7698737",
"0.76952964",
"0.7684363",
"0.7681706",
"0.7681706",
"0.7635434",
"0.763543... | 0.7432954 | 47 |
Set the plural name for the unit. | def nd0d(YKHO, nd0d):
YKHO._plural = nd0d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nd0d(PXGI, Z5kt):\n if Z5kt == 1:\n return PXGI\n else:\n return PXGI + 's'",
"def dSKX(YKHO, nd0d):\n return 'item'",
"def nd0d(YKHO):\n return YKHO._plural",
"def PSEZ(Emd4, VBJa: str, mLGw: int=2) -> str:\n return DuqQ.t_plural(Emd4.resolve_msg_id(VBJa), mLGw)",
"def oSg... | [
"0.67817175",
"0.64680135",
"0.6358984",
"0.6270587",
"0.6264949",
"0.6206428",
"0.6008478",
"0.59093565",
"0.5881909",
"0.5850094",
"0.5850094",
"0.5850094",
"0.5805438",
"0.57385546",
"0.5719308",
"0.5675906",
"0.56563",
"0.565594",
"0.56162536",
"0.55990475",
"0.5595597",
... | 0.7808533 | 0 |
Set the abbreviated name for the unit. | def uaNC(YKHO, uaNC):
YKHO._abbreviation = uaNC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSgC(YKHO, *qIxc):\n return _VfD.UnitDefinition_setName(YKHO, *qIxc)",
"def Cy_d(YKHO, GrP4):\n dNGk = GrP4 + YKHO.vendor_unique_id\n YKHO.set_value_into_input_field(YKHO.abbreviation_textbox_locator, dNGk)\n YKHO.wait_for_ajax_spinner_load()\n return dNGk",
"def P7m8(YKHO, P7m8):\n YKHO.... | [
"0.71546113",
"0.69179565",
"0.6754661",
"0.66233575",
"0.6546605",
"0.6546605",
"0.6546605",
"0.6537992",
"0.6516904",
"0.6487339",
"0.6429103",
"0.63089305",
"0.62886935",
"0.6248015",
"0.62468237",
"0.623667",
"0.6223128",
"0.6163963",
"0.61254203",
"0.61254203",
"0.612542... | 0.6732753 | 3 |
Set defaults for the LSST Scheduler's Driver. | def myYP(YKHO) -> None:
YKHO.night_boundary = -12.0
YKHO.new_moon_phase_threshold = 20.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Esv(YKHO):\n YKHO.set_motor_limits(YKHO.MOTOR_LEFT, YKHO.LEFT_DEFAULT)\n YKHO.set_motor_limits(YKHO.MOTOR_RIGHT, YKHO.RIGHT_DEFAULT)\n YKHO.set_servo(YKHO.SERVO_1, YKHO.MIDPOINT)",
"def _Esv(YKHO):\n YKHO.set_motor_limits(YKHO.MOTOR_LEFT, YKHO.LEFT_DEFAULT)\n YKHO.set_motor_limits(YKHO.MOTOR_... | [
"0.65300804",
"0.65300804",
"0.65300804",
"0.64028084",
"0.6391427",
"0.6253156",
"0.6252221",
"0.6245879",
"0.623059",
"0.6205422",
"0.61827433",
"0.61700505",
"0.60782987",
"0.6073008",
"0.6067981",
"0.60252726",
"0.60207146",
"0.5980837",
"0.5945693",
"0.5912952",
"0.59118... | 0.5734153 | 32 |
Get the current state of the scheduling algorithm as a file object. Returns | def YefK(YKHO) -> xDSY.BytesIO:
raise NotImplementedError('Get state as file object not implemented.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ah0Y(YKHO, Ux0P):\n qGq1 = open(umZ0 + '/sio.pckl')\n h5Tw = t2lc.load(qGq1)\n qGq1.close()\n return h5Tw.file_state.get(Ux0P)",
"def nUeQ(YKHO):\n if YKHO.state == YKHO.STATE_COMPLETED:\n return e8HW.open(YKHO.path)\n return None",
"def DghZ(YKHO):\n yvGc = dict(logfile=Hy7s.pa... | [
"0.6348901",
"0.6293761",
"0.61412954",
"0.61315054",
"0.6072039",
"0.606558",
"0.60648406",
"0.600452",
"0.59892523",
"0.59650356",
"0.596104",
"0.596104",
"0.596104",
"0.58628327",
"0.58396065",
"0.5815005",
"0.5806809",
"0.57971644",
"0.5784248",
"0.5770416",
"0.5757695",
... | 0.70320934 | 0 |
Add annotation to the graph between times t1 and t2 | def rz7z(YKHO, n2Q1, SpII, H5ew=None, honC=None, **o8Kj):
n2Q1 = Kt_s(n2Q1)
SpII = Kt_s(SpII)
if n2Q1.anchored and SpII.anchored:
assert n2Q1 <= SpII
super(Sjii, YKHO).add_edge(n2Q1, SpII, key=H5ew, attr_dict=honC, **o8Kj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eSME(YKHO):\n LZpg, hh7H = QrM1.subplots()\n hh7H.set_xlabel('Time (s)', fontsize=24, fontweight='bold')\n hh7H.set_ylabel('Distance (m)', fontsize=24, fontweight='bold')\n LYpX = YKHO.xAxisRange - 100\n QrM1.xlim([0, LYpX])\n QrM1.ylim([0, max(YKHO.distance_Green) + 400])\n QrM1.xticks(oy... | [
"0.6410203",
"0.6172774",
"0.5992546",
"0.5906229",
"0.5897106",
"0.57135123",
"0.5706056",
"0.56808233",
"0.56760347",
"0.562518",
"0.55780005",
"0.55492127",
"0.5536095",
"0.5533227",
"0.5522974",
"0.547539",
"0.5459312",
"0.5456926",
"0.545654",
"0.5406246",
"0.5377059",
... | 0.5169668 | 41 |
Ordering graph t1 > t2 in the ordering graph indicates that t1 happens before t2. A missing edge simply means that it is not clear yet. | def eXHT(YKHO):
Oa1e = jHsn.DiGraph()
for a1PO in YKHO.nodes_iter():
Oa1e.add_node(a1PO)
for n2Q1, SpII in YKHO.edges_iter():
Oa1e.add_edge(n2Q1, SpII)
e8hf = sorted(YKHO.anchored())
for n2Q1, SpII in Hs6x.combinations(e8hf, 2):
Oa1e.add_edge(n2Q1, SpII)
k8re = Oa1e.copy(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qk7K(YKHO, SpII) -> bool:\n return True if YKHO.get_edge(SpII) >= 0 else False",
"def jmxi(YKHO, Elif):\n return YKHO.head_vertex > Elif.head_vertex and YKHO.tail_vertex > Elif.tail_vertex",
"def jmxi(YKHO, Elif):\n if YKHO.head_vertex <= Elif.head_vertex:\n return False\n elif YKHO.tail... | [
"0.6983687",
"0.6545409",
"0.6490181",
"0.6490181",
"0.62972766",
"0.62957525",
"0.62957525",
"0.62712896",
"0.62509745",
"0.62067235",
"0.6178168",
"0.6178168",
"0.61543816",
"0.60998136",
"0.60998136",
"0.6078478",
"0.60550284",
"0.6001574",
"0.6000123",
"0.5976091",
"0.595... | 0.57706195 | 42 |
Returns a point in the segment considered as an offset from the start of the segment. The offset is considered assuming the direction defined as if the line segment was a vector going from point a to point b | def qQEm(YKHO, vgXP):
if vgXP > YKHO.length():
raise ValueError('Offset ({0})is greater than segment length ({1})'.format(vgXP, YKHO.length()))
Jw7X = YKHO.b.x - YKHO.a.x
eUWA = YKHO.b.y - YKHO.a.y
OW9O = epAf.hypot(Jw7X, eUWA)
return PvyL(YKHO.a.x + Jw7X / OW9O * vgXP, YKHO.a.y + eUWA / OW9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DVmn(YKHO, Ayfi, HEZd=Z9rn.INSIDE):\n verC = oyIN.array([YKHO.start.x, YKHO.start.y])\n aWtI = oyIN.array([YKHO.end.x, YKHO.end.y])\n Mkmy = verC - aWtI\n b50Q = oyIN.array([-Mkmy[Z9rn.Y], Mkmy[Z9rn.X]])\n b50Q = b50Q / oyIN.linalg.norm(b50Q) * Ayfi\n if HEZd == Z9rn.INSIDE:\n return Y... | [
"0.6827126",
"0.6763146",
"0.6671995",
"0.6598249",
"0.6504402",
"0.6475355",
"0.64282185",
"0.6409229",
"0.6343149",
"0.62978053",
"0.627086",
"0.6261065",
"0.62378895",
"0.6229276",
"0.6216285",
"0.62120485",
"0.6202114",
"0.6191976",
"0.61870503",
"0.6181785",
"0.6143937",... | 0.7088706 | 0 |
Test to verify instance if ImportCustomer | def V6Iv(YKHO):
YKHO.assertIsInstance(YKHO.import_customer, Jd0M) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BSwt(YKHO):\n YKHO.assertIsInstance(YKHO.customers[0], xp_p)",
"def oE53(YKHO):\n m3Nh = YKHO.customers[0]\n YKHO.assertEqual('Jimena', m3Nh.get_first_name())\n YKHO.assertEqual('Sanabria', m3Nh.get_last_name())\n YKHO.assertEqual('21-08-1980', m3Nh.get_date_of_birth())\n YKHO.assertEqual([... | [
"0.7942317",
"0.7804885",
"0.75188947",
"0.6964507",
"0.6836435",
"0.68194115",
"0.658146",
"0.6421789",
"0.6418644",
"0.6226976",
"0.6214251",
"0.61750406",
"0.6172272",
"0.61514455",
"0.61141646",
"0.6092201",
"0.6090226",
"0.6078903",
"0.60705185",
"0.60683066",
"0.6052186... | 0.8294378 | 0 |
Test to verify that a customer is created with code only and empty data | def EmSV(YKHO):
m3Nh = YKHO.import_customer.create_customer_object('cust002010', {})
YKHO.assertIsInstance(m3Nh, xp_p) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zOYz(YKHO):\n YKHO._create_model('customer', YKHO.customer_data, ['name', 'email', 'phone'])",
"def CyZj(YKHO):\n m3Nh = xp_p.objects.create(**TWjE)\n YKHO.assertTrue(isinstance(m3Nh, xp_p))\n YKHO.assertEqual(m3Nh.__str__(), TWjE['email'])",
"def TNjw(YKHO):\n TVyJ = gxEw('customer_list')\n... | [
"0.7644472",
"0.75496864",
"0.7515606",
"0.7355217",
"0.71650374",
"0.7134495",
"0.6981273",
"0.689978",
"0.686669",
"0.685966",
"0.6843557",
"0.67317975",
"0.66622066",
"0.6656827",
"0.66545933",
"0.66542614",
"0.6602282",
"0.65984833",
"0.65852183",
"0.6581964",
"0.65791243... | 0.737132 | 3 |
way of parsing an alphabet from a string ================= ======= alphabet property char ================= ======= ASCII_LOWER l ASCII_UPPER u ASCII_PUNCTUATION p ASCII_DIGITS d ================= ======= | def dE6V(KGxU: str):
if oyIN.sum([jzdc in KGxU for jzdc in ['gw', 'iam', 'rimes']]) > 1:
raise ValueError('multiple perfect fitting alphabets defeat purpose')
if 'gw' in KGxU:
return [_LyC.PERFECT_GW]
if 'iam' in KGxU:
return [_LyC.PERFECT_IAM]
if 'rimes' in KGxU:
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ue1g(KCHu):\n V22M = ZbWC.findall('[A-Za-z]+', KCHu)\n gLiZ = set(''.join(V22M))\n assert len(gLiZ) <= 10\n qMKQ = set((yzQ0[0] for yzQ0 in V22M))\n gLiZ = ''.join(qMKQ) + ''.join(gLiZ - qMKQ)\n exwG = len(qMKQ)\n for IuXB in p2Oz('0123456789', len(gLiZ)):\n if '0' not in IuXB[:exwG... | [
"0.63431126",
"0.63203204",
"0.6232049",
"0.61889064",
"0.61889064",
"0.61889064",
"0.6184948",
"0.61659956",
"0.61447066",
"0.61392987",
"0.6061643",
"0.60600716",
"0.6025021",
"0.60113186",
"0.59666806",
"0.5938459",
"0.5914417",
"0.5912746",
"0.5904687",
"0.58972263",
"0.5... | 0.6763334 | 0 |
way of parsing an alphabet to a string ================= ======= alphabet property char ================= ======= ASCII_LOWER l ASCII_UPPER u ASCII_PUNCTUATION p ASCII_DIGITS d ================= ======= | def B0fc(gZgb: List[Alphabet]):
if oyIN.sum([jzdc in gZgb for jzdc in [_LyC.PERFECT_GW, _LyC.PERFECT_IAM, _LyC.PERFECT_RIMES]]) > 1:
raise ValueError('multiple perfect fitting alphabets defeat purpose')
if _LyC.PERFECT_GW in gZgb:
return 'gw'
if _LyC.PERFECT_IAM in gZgb:
return 'iam'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dE6V(KGxU: str):\n if oyIN.sum([jzdc in KGxU for jzdc in ['gw', 'iam', 'rimes']]) > 1:\n raise ValueError('multiple perfect fitting alphabets defeat purpose')\n if 'gw' in KGxU:\n return [_LyC.PERFECT_GW]\n if 'iam' in KGxU:\n return [_LyC.PERFECT_IAM]\n if 'rimes' in KGxU:\n ... | [
"0.6895167",
"0.681369",
"0.678661",
"0.678661",
"0.678661",
"0.66782624",
"0.66186816",
"0.65606254",
"0.65606254",
"0.65587384",
"0.65565574",
"0.649866",
"0.64790523",
"0.6463456",
"0.64039975",
"0.62596565",
"0.6222003",
"0.6188658",
"0.6178018",
"0.6147855",
"0.6134472",... | 0.58502 | 40 |
Splits a given matrix into quarters. | def trMA(SppC):
VufW, Hcba = SppC.shape
zWin, TwDd = (VufW // 2, Hcba // 2)
return (SppC[:zWin, :TwDd], SppC[:zWin, TwDd:], SppC[zWin:, :TwDd], SppC[zWin:, TwDd:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k4Zr():\n ovLK = zTi3.concatenate_quaternions(zTi3.q_i, zTi3.q_j)\n Qhng(zTi3.q_k, ovLK)\n Rzk1 = zTi3.concatenate_quaternions(ovLK, zTi3.q_k)\n Qhng(-zTi3.q_id, Rzk1)",
"def MbiS(mcyV: int, uwR8: int, swci: int, bo34: lg.Logger=None) -> (_c1T, _c1T):\n if bo34:\n bo34.debug(f'start yea... | [
"0.5571932",
"0.5418115",
"0.53602463",
"0.5314134",
"0.5235886",
"0.5206524",
"0.5193117",
"0.5176697",
"0.5166605",
"0.5126955",
"0.51215327",
"0.50583017",
"0.50418717",
"0.50084364",
"0.4974146",
"0.49560624",
"0.49458736",
"0.49418595",
"0.4889774",
"0.4879297",
"0.48626... | 0.0 | -1 |
Returns the current user information. | def RuJL(YKHO):
return YKHO.client._get(YKHO._url()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l1bi():\n return c5ow",
"def VCCg(YKHO):\n return YKHO.auth.get_user_by_session()",
"def VCCg(YKHO):\n return YKHO.auth.get_user_by_session()",
"def VCCg(YKHO):\n geh0 = YKHO.query('user_info')\n return geh0",
"def FpOe(YKHO):\n return YKHO._userinfo",
"def QVde(YKHO):\n if Xq_C ... | [
"0.9055003",
"0.8654444",
"0.85291815",
"0.85110545",
"0.8469878",
"0.824273",
"0.8116876",
"0.8090181",
"0.8069488",
"0.8032989",
"0.7984763",
"0.7812883",
"0.7769921",
"0.7734967",
"0.77012867",
"0.7665808",
"0.7641438",
"0.762869",
"0.7607173",
"0.75737655",
"0.75459963",
... | 0.0 | -1 |
Return the index of the given letter in an alphabet list. | def tdR8(sZqf):
return ord(sZqf.lower()) - PeHq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def etjM(sZqf):\n gZgb = 'abcdefghijklmnopqrstuvwxyz'\n yPrR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'\n if sZqf.isupper() == True:\n for WKvO in yPrR:\n if sZqf == WKvO:\n dQgj = yPrR.index(WKvO)\n return dQgj\n else:\n for WKvO in gZgb:\n if sZqf... | [
"0.78031665",
"0.77974206",
"0.76734906",
"0.7583449",
"0.7554691",
"0.7432476",
"0.7423165",
"0.7180686",
"0.7029244",
"0.6769329",
"0.6769329",
"0.6769329",
"0.6688472",
"0.6613892",
"0.6590025",
"0.658861",
"0.65874064",
"0.6517312",
"0.64405686",
"0.63059664",
"0.63059664... | 0.81031424 | 0 |
Calls requests.patch with proper authentication | def s3D9(YKHO, bD7m):
Ylbp = G4JS.patch(bD7m, headers=YKHO.auth_header)
Ylbp.raise_for_status()
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, QePW, *qIxc, **B2fa):\n oINO(QePW)\n return super().patch(QePW, qIxc, B2fa)",
"def Po4F(YKHO, QePW, *qIxc, **B2fa):\n oINO(QePW)\n return super().patch(QePW, qIxc, B2fa)",
"def fYra(YKHO):\n geh0 = YKHO.httpbin_4.test_requests_patch_method()\n YKHO.assertEqual(geh0.request.meth... | [
"0.7267678",
"0.7267678",
"0.7033772",
"0.6935502",
"0.685355",
"0.65013194",
"0.6473944",
"0.6459513",
"0.6402536",
"0.6351379",
"0.63492787",
"0.6224028",
"0.6212599",
"0.6173099",
"0.6172091",
"0.617039",
"0.6152998",
"0.61394364",
"0.6108802",
"0.6073967",
"0.6000535",
... | 0.7253243 | 2 |
Need to cast X or y to float32 | def dU9Z(LihS):
return LihS.astype(oyIN.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dmRd(YKHO, nPrm):\n nPrm = nPrm.astype(oyIN.float32)\n return nPrm",
"def an8C(YKHO):\n return YKHO.read(zNGS.FLOAT_LE_32.value)",
"def dU9Z(exwG):\n return oyIN.cast['float32'](exwG)",
"def S6TF(wEf2):\n return oyIN.float64(wEf2)",
"def Uiv8(WKvO):\n return oyIN.float32(WKvO).view(oy... | [
"0.72121584",
"0.68592405",
"0.6763474",
"0.6665686",
"0.6577044",
"0.65580606",
"0.6541234",
"0.64049256",
"0.6355414",
"0.6317263",
"0.6317263",
"0.63104033",
"0.62292147",
"0.61804193",
"0.61711663",
"0.6080844",
"0.58363974",
"0.58045274",
"0.5804468",
"0.5790965",
"0.578... | 0.66579336 | 4 |
Get a list of all variables used in this expression. | def lSnF(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSnF(YKHO):\n return []",
"def lSnF(YKHO):\n return YKHO.item.get_all_variables()",
"def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def qDIe(YKHO):\n return YKHO.project.get_variable_names() + Y... | [
"0.80978125",
"0.7943349",
"0.79398817",
"0.7904174",
"0.7858665",
"0.77603346",
"0.7740691",
"0.7729506",
"0.7729506",
"0.7729506",
"0.771654",
"0.7668793",
"0.76653355",
"0.766425",
"0.7626891",
"0.76187885",
"0.75356245",
"0.75185627",
"0.7511451",
"0.74843293",
"0.7452525... | 0.7537116 | 16 |
Get a list of all variables used in this expression. | def lSnF(YKHO):
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSnF(YKHO):\n return YKHO.item.get_all_variables()",
"def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def qDIe(YKHO):\n return YKHO.project.get_variable_names() + YKHO.design.get_variable_names()",
... | [
"0.7943349",
"0.79398817",
"0.7904174",
"0.7858665",
"0.77603346",
"0.7740691",
"0.7729506",
"0.7729506",
"0.7729506",
"0.771654",
"0.7668793",
"0.76653355",
"0.766425",
"0.7626891",
"0.76187885",
"0.7537116",
"0.75356245",
"0.75185627",
"0.7511451",
"0.74843293",
"0.74525255... | 0.80978125 | 0 |
Get a list of all variables used in this expression. | def lSnF(YKHO):
yvT9 = []
for YRbF in YKHO.items:
yvT9 += YRbF.get_all_variables()
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lSnF(YKHO):\n return []",
"def lSnF(YKHO):\n return YKHO.item.get_all_variables()",
"def kc1W(YKHO):\n return [OXAZ.variable for OXAZ in YKHO.terms]",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def qDIe(YKHO):\n return YKHO.project.get_variable_names() + Y... | [
"0.80978125",
"0.7943349",
"0.79398817",
"0.7904174",
"0.7858665",
"0.77603346",
"0.7740691",
"0.771654",
"0.7668793",
"0.76653355",
"0.766425",
"0.7626891",
"0.76187885",
"0.7537116",
"0.75356245",
"0.75185627",
"0.7511451",
"0.74843293",
"0.74525255",
"0.74407166",
"0.74282... | 0.7729506 | 7 |