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 |
|---|---|---|---|---|---|---|
Sets the payment_dispute_summaries of this DisputeSummaryResponse. | def V3Ut(YKHO, V3Ut):
YKHO._payment_dispute_summaries = V3Ut | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bnZy(YKHO, bnZy):\n YKHO._discounts = bnZy",
"def bnZy(YKHO, bnZy):\n YKHO._discounts = bnZy",
"def xnV8(YKHO, xnV8):\n YKHO._diagnostic_data_summaries = xnV8",
"def yTUi(YKHO, yTUi):\n YKHO._total_payments = yTUi",
"def yTUi(YKHO, yTUi):\n YKHO._total_payments = yTUi",
"def jypW(YKHO,... | [
"0.5567051",
"0.5567051",
"0.5331477",
"0.5065896",
"0.5065896",
"0.50024825",
"0.48645106",
"0.47554946",
"0.46585956",
"0.4602221",
"0.45917588",
"0.4563418",
"0.4546708",
"0.45463154",
"0.45359242",
"0.45114803",
"0.45114803",
"0.45052633",
"0.44714743",
"0.44589075",
"0.4... | 0.84960765 | 0 |
Sets the total of this DisputeSummaryResponse. | def wjRY(YKHO, wjRY):
YKHO._total = wjRY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rzoi(YKHO, wjRY):\n YKHO.__total = wjRY",
"def KpBD(YKHO, KpBD):\n YKHO._total_amount = KpBD",
"def KpBD(YKHO, KpBD):\n YKHO._total_amount = KpBD",
"def KpBD(YKHO, KpBD):\n YKHO._total_amount = KpBD",
"def KpBD(YKHO, KpBD):\n YKHO._total_amount = KpBD",
"def wjRY(YKHO):\n if YKHO._t... | [
"0.7071648",
"0.6548439",
"0.6548439",
"0.6548439",
"0.6548439",
"0.6358091",
"0.63463116",
"0.63463116",
"0.6317367",
"0.6272691",
"0.6272691",
"0.6230224",
"0.61500406",
"0.6143468",
"0.61277723",
"0.61277723",
"0.61277723",
"0.61277723",
"0.61277723",
"0.61277723",
"0.6121... | 0.7231312 | 1 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86416775",
"0.8510436",
"0.7853881",
"0.7744098",
"0.77114",
"0.7697539",
"0.7659996",
"0.7637475",
"0.76213473",
"0.76074654",
"0.7606779",
"0.7606779",
"0.7606779",
"0.7598864",
"0.7585116",
"0.7582008",
"0.75707483",
"0.7567779",
"0.7538827",
"0.7538827",
"0.7527744",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8393104",
"0.8355197",
"0.8295551",
"0.8133039",
"0.811476",
"0.8100177",
"0.80994433",
"0.80982935",
"0.80982935",
"0.8093244",
"0.8093244",
"0.8093244",
"0.8093244",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.80671525",
"0.80597436",
"0.8057952",
"0... | 0.0 | -1 |
Return the longitude increment value necessary to span the given number of miles at the given latitude. | def Dk6k(_UuI: float, WCxY: float):
if epAf.isclose(WCxY, 0.0, rel_tol=1e-08):
return 0.0
AtbJ = zG70(_UuI, 0.0, _UuI, 1.0, miles=True)
return float(WCxY) / AtbJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w3N7(JEox: float=40.0):\n return zG70(lat1=JEox, lng1=0.0, lat2=JEox, lng2=1.0)",
"def CYuG():\n return bAuk",
"def VJf5(WCxY: float):\n return WCxY / bAuk",
"def E3jK(_UuI, fopC, J6oz, wNfR):\n _UuI = _UuI + epAf.degrees(J6oz / sfSL)\n fopC = fopC + epAf.degrees(wNfR / (sfSL * epAf.cos(ep... | [
"0.6758695",
"0.67432743",
"0.65242654",
"0.63520706",
"0.6261632",
"0.6158637",
"0.6103941",
"0.59763527",
"0.5967779",
"0.5927076",
"0.58672714",
"0.5841281",
"0.5810125",
"0.58042777",
"0.5795515",
"0.5747741",
"0.57234645",
"0.5704546",
"0.5704016",
"0.56893253",
"0.56824... | 0.7213822 | 0 |
Distance between two lat/lng coordinates in km using the Haversine formula. Uses decimal degrees. | def zG70(igSk, iT5T, TGuP, JSDM, JYmd=True):
m6kB = WcIB
igSk = epAf.radians(igSk)
TGuP = epAf.radians(TGuP)
janX = TGuP - igSk
MzG8 = epAf.radians(JSDM - iT5T)
jzdc = epAf.sin(janX / 2.0) ** 2 + epAf.cos(igSk) * epAf.cos(TGuP) * epAf.sin(MzG8 / 2.0) ** 2
wZC2 = 2 * m6kB * epAf.asin(epAf.sqr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vQK9(YKHO, PNCc, igSk, v7YJ, TGuP):\n PNCc, igSk, v7YJ, TGuP = map(Y_1E, [PNCc, igSk, v7YJ, TGuP])\n fOkK = v7YJ - PNCc\n n_9K = TGuP - igSk\n jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(fOkK / 2) ** 2\n Z9rn = 2 * P099(PZyS(jzdc))\n Mkmy = 6371\n return 1000 * Z9rn * Mkmy"... | [
"0.80563694",
"0.79694426",
"0.794104",
"0.7937227",
"0.79108626",
"0.78841215",
"0.78639203",
"0.7863177",
"0.78531307",
"0.7851603",
"0.78343636",
"0.7816879",
"0.78138596",
"0.77301556",
"0.770681",
"0.7672494",
"0.7662241",
"0.7660825",
"0.7647593",
"0.76422244",
"0.76354... | 0.0 | -1 |
training set and test set znormalization without taking use of scipy library | def Jw6Q(dixZ, Rgwo, ObwH):
vWUo = dixZ
L147 = Rgwo
return (vWUo, L147) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1oj(EcVT):\n mRjC = []\n for YRbF in range(EcVT.shape[1] - 2):\n JBMS = EcVT[:, YRbF + 2].mean()\n ifkm = EcVT[:, YRbF + 2].std()\n mRjC.append([JBMS, ifkm])\n EcVT[:, YRbF + 2] = eQSh.zscore(EcVT[:, YRbF + 2])\n return (EcVT, mRjC)",
"def NkkI(EvQg, QOe9):\n JBMS = E... | [
"0.6950044",
"0.67072636",
"0.66412354",
"0.65903383",
"0.6519494",
"0.6427624",
"0.64206773",
"0.64000356",
"0.63589114",
"0.6351957",
"0.6322216",
"0.63204974",
"0.6250701",
"0.62021285",
"0.6171758",
"0.6130352",
"0.61281544",
"0.6120207",
"0.6113099",
"0.610617",
"0.60933... | 0.7029852 | 0 |
Date/Time converted to seconds since epoch | def qtWj(a1PO):
if not hasattr(a1PO, 'tzinfo'):
return
return int(ITS7.mktime(cYWc(a1PO).timetuple())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMJE(_c1T):\n g75m = _c1T - QXXU\n return g75m.days * 86400 + g75m.seconds + float(g75m.microseconds) / 1000000",
"def _Vy8():\n return int(ITS7.time())",
"def qtWj():\n return qcWV(1970, 1, 1)",
"def IMJE(_c1T):\n _c1T = _c1T[:-6]\n _c1T = qcWV.strptime(_c1T, '%Y-%m-%d %H:%M:%S')\n ... | [
"0.77603436",
"0.77445734",
"0.77037686",
"0.76466787",
"0.763782",
"0.75782406",
"0.7549029",
"0.74871635",
"0.7400227",
"0.73789895",
"0.7373038",
"0.73161435",
"0.7307996",
"0.73066807",
"0.73066807",
"0.7291323",
"0.7291323",
"0.7262767",
"0.7262298",
"0.72582096",
"0.724... | 0.7242162 | 21 |
Sets the meal_plan_id of this MealPlanDetailItem. | def FYu8(YKHO, FYu8):
YKHO._meal_plan_id = FYu8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s_8_(YKHO, s_8_):\n YKHO._meal_plan_detail_id = s_8_",
"def wERM(YKHO, wERM):\n YKHO._plan_id = wERM",
"def wERM(YKHO, wERM):\n YKHO._plan_id = wERM",
"def jNsc(YKHO, jNsc):\n YKHO._meal_plan_date = jNsc",
"def _X0S(YKHO, _X0S):\n YKHO._dinner_meal_plan_dining_hall_id = _X0S",
"def i8z... | [
"0.80272746",
"0.72220623",
"0.72220623",
"0.6606542",
"0.6017604",
"0.59524214",
"0.5918135",
"0.584331",
"0.58386135",
"0.55334795",
"0.5390592",
"0.5375126",
"0.53563243",
"0.5319559",
"0.5319559",
"0.5319559",
"0.5287436",
"0.5263222",
"0.52406067",
"0.51961744",
"0.51685... | 0.8633049 | 0 |
Sets the meal_plan_date of this MealPlanDetailItem. | def jNsc(YKHO, jNsc):
YKHO._meal_plan_date = jNsc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYu8(YKHO, FYu8):\n YKHO._meal_plan_id = FYu8",
"def rTME(YKHO, rTME):\n YKHO._bill_date = rTME",
"def s_8_(YKHO, s_8_):\n YKHO._meal_plan_detail_id = s_8_",
"def wjGx(YKHO, _c1T):\n YKHO.date = _c1T\n return",
"def gq4h(YKHO, _c1T):\n YKHO.__date = _c1T",
"def gq4h(YKHO, _c1T):\n ... | [
"0.67559254",
"0.6331434",
"0.6300157",
"0.62786055",
"0.61626375",
"0.6079105",
"0.5907701",
"0.58887595",
"0.588807",
"0.5856491",
"0.5841687",
"0.5841687",
"0.5841687",
"0.5841687",
"0.5841687",
"0.58376753",
"0.57860893",
"0.57837373",
"0.57349694",
"0.57235575",
"0.57174... | 0.89106697 | 0 |
Sets the breakfast_meal_plan_dining_hall_id of this MealPlanDetailItem. | def i8zU(YKHO, i8zU):
YKHO._breakfast_meal_plan_dining_hall_id = i8zU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hdPh(YKHO, hdPh):\n YKHO._lunch_meal_plan_dining_hall_id = hdPh",
"def _X0S(YKHO, _X0S):\n YKHO._dinner_meal_plan_dining_hall_id = _X0S",
"def FYu8(YKHO, FYu8):\n YKHO._meal_plan_id = FYu8",
"def s_8_(YKHO, s_8_):\n YKHO._meal_plan_detail_id = s_8_",
"def uLQr(YKHO, uLQr):\n YKHO._dining... | [
"0.8645076",
"0.8408021",
"0.64220124",
"0.6195529",
"0.58807546",
"0.5451417",
"0.5451417",
"0.5451417",
"0.53932405",
"0.5366376",
"0.5300641",
"0.52613986",
"0.52613986",
"0.52477944",
"0.5196772",
"0.51539075",
"0.51520544",
"0.49983245",
"0.49890605",
"0.49855328",
"0.48... | 0.9058835 | 0 |
Sets the lunch_meal_plan_dining_hall_id of this MealPlanDetailItem. | def hdPh(YKHO, hdPh):
YKHO._lunch_meal_plan_dining_hall_id = hdPh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i8zU(YKHO, i8zU):\n YKHO._breakfast_meal_plan_dining_hall_id = i8zU",
"def _X0S(YKHO, _X0S):\n YKHO._dinner_meal_plan_dining_hall_id = _X0S",
"def FYu8(YKHO, FYu8):\n YKHO._meal_plan_id = FYu8",
"def s_8_(YKHO, s_8_):\n YKHO._meal_plan_detail_id = s_8_",
"def uLQr(YKHO, uLQr):\n YKHO._di... | [
"0.8238402",
"0.82175434",
"0.6351589",
"0.609901",
"0.56706685",
"0.54746836",
"0.51472723",
"0.5108204",
"0.5085727",
"0.50460976",
"0.5042041",
"0.50268286",
"0.50268286",
"0.49772933",
"0.48813602",
"0.48813602",
"0.48813602",
"0.4870302",
"0.48067427",
"0.47817165",
"0.4... | 0.898475 | 0 |
Sets the dinner_meal_plan_dining_hall_id of this MealPlanDetailItem. | def _X0S(YKHO, _X0S):
YKHO._dinner_meal_plan_dining_hall_id = _X0S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hdPh(YKHO, hdPh):\n YKHO._lunch_meal_plan_dining_hall_id = hdPh",
"def i8zU(YKHO, i8zU):\n YKHO._breakfast_meal_plan_dining_hall_id = i8zU",
"def s_8_(YKHO, s_8_):\n YKHO._meal_plan_detail_id = s_8_",
"def FYu8(YKHO, FYu8):\n YKHO._meal_plan_id = FYu8",
"def uLQr(YKHO, uLQr):\n YKHO._din... | [
"0.8614001",
"0.8416504",
"0.6574775",
"0.6518607",
"0.60725594",
"0.58263785",
"0.5428103",
"0.54139477",
"0.5295058",
"0.5295058",
"0.5295058",
"0.52441144",
"0.5126963",
"0.5126963",
"0.5052373",
"0.5036718",
"0.50008047",
"0.4955964",
"0.49509034",
"0.48433232",
"0.474685... | 0.90548587 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8393104",
"0.8355197",
"0.8295551",
"0.8133039",
"0.811476",
"0.8100177",
"0.80994433",
"0.80982935",
"0.80982935",
"0.8093244",
"0.8093244",
"0.8093244",
"0.8093244",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.80671525",
"0.80597436",
"0.8057952",
"0... | 0.0 | -1 |
Use minimax() to find the best move | def DQoW(QTBn, BH3N):
b7La = xBlr.partial(SR1K, game=BH3N, is_maximizing=False)
return max(BH3N.possible_new_states(QTBn), key=b7La, default=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SR1K(YKHO, BH3N, rb7a):\n if YKHO.time_left() < YKHO.TIMER_THRESHOLD:\n raise Z7bg()\n DQoW = (-1, -1)\n f7Dd = float('-inf')\n HMeC = BH3N.get_legal_moves()\n if len(HMeC) > 0:\n DQoW = HMeC[0]\n for BZN_ in HMeC:\n QVeo = BH3N.forecast_move(BZN_)\n DCJh = YKHO.mi... | [
"0.8166374",
"0.81232804",
"0.80709356",
"0.79956347",
"0.7968647",
"0.7869578",
"0.78669",
"0.784169",
"0.7826423",
"0.7818968",
"0.77705413",
"0.7769255",
"0.7767585",
"0.77519643",
"0.774134",
"0.77240556",
"0.77148193",
"0.7714043",
"0.7706062",
"0.76984745",
"0.76759416"... | 0.7377804 | 63 |
convert the str to 'True' or 'False' | def oOc6(Ty9i):
if isinstance(Ty9i, bool):
return Ty9i
if Ty9i.lower() in ('yes', 'true', 't', 'y', '1'):
return True
elif Ty9i.lower() in ('no', 'false', 'f', 'n', '0'):
return False
else:
raise j1Jz.ArgumentTypeError('Boolean value expected.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sisc(str):\n return True if str.lower() == 'true' else False",
"def E8Lj(KCHu):\n if KCHu:\n return True\n else:\n return False",
"def M0mR(KCHu):\n if KCHu == 'True':\n return True\n elif KCHu == 'False':\n return False",
"def E8Lj(KCHu):\n if KCHu.lower() =... | [
"0.86788774",
"0.86742383",
"0.8614292",
"0.85617167",
"0.8527355",
"0.8525817",
"0.8516631",
"0.8463515",
"0.8452775",
"0.84362316",
"0.83513993",
"0.8333571",
"0.8327715",
"0.8289247",
"0.82878816",
"0.82663155",
"0.82593954",
"0.82589716",
"0.82341784",
"0.8209701",
"0.820... | 0.7530387 | 92 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
try:
print('\nCalculating the most frequent times of travel...\n')
SWox = ITS7.time()
print('Most frequent month: ', jQ3Z['month'].mode()[0])
print('Most frequent day of week: ', jQ3Z['day_of_week'].mode()[0])
jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.8000844",
"0.7921982",
"0.7892428",
"0.78627133",
"0.7859783",
"0.7839671",
"0.7801052",
"0.7785909",
"0.7736335",
"0.7724394",
"0.7714449",
"0.77094305",
"0.77053905",
"0.7702663",
"0.76906323",
"0.76811683",
"0.7679932",
"0.76733255",
"0.7662347",
"0.76612145",
"0.765853... | 0.7686918 | 15 |
Displays statistics on the total, average and maximum trip duration. | def kDMA(jQ3Z):
try:
print('\nCalculating trip duration...\n')
SWox = ITS7.time()
print('Total travel time: {} seconds'.format(oyIN.sum(jQ3Z['Trip Duration'])))
print('Mean travel time: {} seconds'.format(oyIN.mean(jQ3Z['Trip Duration'])))
print('Maximum travel time: {} secon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.7822824",
"0.78052026",
"0.76341814",
"0.76225585",
"0.7576551",
"0.75374293",
"0.752987",
"0.7512584",
"0.7501269",
"0.7496465",
"0.74922097",
"0.748968",
"0.74844944",
"0.7469559",
"0.7465383",
"0.7464778",
"0.7460906",
"0.7458845",
"0.74507916",
"0.74499446",
"0.7444815... | 0.7449315 | 20 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
try:
print('\nCalculating the most popular stations and trip...\n')
SWox = ITS7.time()
print('Most frequent start station:\n ', jQ3Z['Start Station'].mode()[0])
print('Most frequent end station:\n ', jQ3Z['End Station'].mode()[0])
jQ3Z['combined_station'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.76662666",
"0.7627287",
"0.7610668",
"0.7586136",
"0.75771344",
"0.7567525",
"0.75584143",
"0.7538453",
"0.753018",
"0.75025535",
"0.7500154",
"0.74965894",
"0.7484319",
"0.74763036",
"0.74736774",
"0.74378866",
"0.7437058",
"0.74335927",
"0.74288744",
"0.7427187",
"0.7416... | 0.7487955 | 12 |
Returns the string representation of 'self'. Examples ======== >>> from sympy import TableForm >>> t = TableForm([[5, 7], [4, 2], [10, 3]]) >>> s = t.as_str() | def PyCM(YKHO, XP5J):
AeBl = [0] * YKHO._w
Nqlg = []
for zFiD in YKHO._lines:
b_bB = []
for YRbF in range(YKHO._w):
KCHu = str(zFiD[YRbF])
if YKHO._wipe_zeros and KCHu == '0':
KCHu = ' '
yzQ0 = len(KCHu)
if yzQ0 > AeBl[YRbF]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return MyE6(YKHO.table)",
"def zAg0(YKHO) -> str:\n lOon = ''\n for bTKY in YKHO.table:\n lOon += f'{bTKY}:{YKHO.table[bTKY]}\\n'\n lOon = lOon.rstrip()\n return lOon",
"def zAg0(YKHO) -> str:\n sHxj = ''\n eztp = 0\n for ZfUD in YKHO.table:\n sHxj += '['... | [
"0.74627167",
"0.7455921",
"0.74294245",
"0.7416388",
"0.7416388",
"0.7416388",
"0.7413528",
"0.7406131",
"0.735401",
"0.7256693",
"0.7237745",
"0.7223718",
"0.7193881",
"0.71919",
"0.71816665",
"0.71709293",
"0.71637076",
"0.7142053",
"0.7135184",
"0.71330416",
"0.71295714",... | 0.0 | -1 |
Returns the string representation of 'self'. | def Whuq(YKHO, Qj_h):
if YKHO._headings[1]:
b_bB = []
for YRbF in range(YKHO._w):
b_bB.append(str(YKHO._headings[1][YRbF]))
YKHO._headings[1] = b_bB
l1DD = []
if YKHO._headings[0]:
YKHO._headings[0] = [str(WKvO) for WKvO in YKHO._headings[0]]
l1DD = [YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def wHJl(YKHO) -> str:\n return str(YKHO)",
"def wHJl(YKHO) -> str:\n return str(YKHO)",
"def wHJl(YKHO) -> str:\n return str(YKHO)",
"def zAg0(YKHO) -> str:\n return repr(YKHO)",
"def yLCI(... | [
"0.8696273",
"0.8659748",
"0.85702324",
"0.85702324",
"0.85702324",
"0.8566708",
"0.8551089",
"0.85421944",
"0.8526087",
"0.85227484",
"0.8505216",
"0.850228",
"0.84981203",
"0.8486445",
"0.847334",
"0.8460453",
"0.8460453",
"0.8460453",
"0.8460453",
"0.8460453",
"0.8460453",... | 0.0 | -1 |
Returns a random data from data list | def aeup():
iQG7 = tuKI.choice(nPrm)
HpR0 = list(iQG7.values())
return HpR0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NNMA():\n qk7K = tuKI.choice(nPrm)\n return qk7K",
"def NNMA():\n RW31 = [0] * 1000\n RW31 = list(map(lambda exwG: exwG + tuKI.randint(1, 1000), RW31))\n return RW31",
"def yLtf(YKHO):\n return LYYN(5)",
"def yLtf(YKHO):\n return LYYN(5)",
"def nPrm():\n return [round(tuKI.unifo... | [
"0.77011365",
"0.7582646",
"0.7577985",
"0.7577985",
"0.7527925",
"0.74793524",
"0.7444668",
"0.74178344",
"0.72650975",
"0.72641015",
"0.71284384",
"0.70600927",
"0.70600927",
"0.70600927",
"0.7047613",
"0.68931454",
"0.6881651",
"0.68656814",
"0.6824184",
"0.6779826",
"0.67... | 0.6280871 | 49 |
Sets the stop_id of this V3StopDepartureRequest. | def zL37(YKHO, zL37):
if zL37 is not None and zL37 > 2147483647:
raise ValueError('Invalid value for `stop_id`, must be a value less than or equal to `2147483647`')
if zL37 is not None and zL37 < 0:
raise ValueError('Invalid value for `stop_id`, must be a value greater than or equal to `0`')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zL37(YKHO, zL37):\n YKHO._stop_id = zL37",
"def JCyR(YKHO, JCyR):\n if JCyR is None:\n raise ValueError('Invalid value for `stop`, must not be `None`')\n YKHO._stop = JCyR",
"def JCyR(YKHO, JCyR):\n if JCyR is None:\n raise ValueError('Invalid value for `stop`, must not be `None`'... | [
"0.75477535",
"0.61795074",
"0.61795074",
"0.5802937",
"0.57959384",
"0.5613565",
"0.5605446",
"0.535345",
"0.5301017",
"0.5233436",
"0.5203359",
"0.50975144",
"0.50975144",
"0.5094373",
"0.5086746",
"0.4996384",
"0.4984971",
"0.4982205",
"0.49540165",
"0.49342772",
"0.492997... | 0.7446445 | 1 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86416155",
"0.8510352",
"0.78545547",
"0.77443707",
"0.77117187",
"0.7697595",
"0.76603293",
"0.7638324",
"0.76217484",
"0.7607743",
"0.7607743",
"0.7607743",
"0.76074046",
"0.75997984",
"0.7585864",
"0.7583017",
"0.75715595",
"0.75687325",
"0.7539626",
"0.7539626",
"0.752... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83939064",
"0.83558416",
"0.8296191",
"0.8133439",
"0.81156427",
"0.810097",
"0.81001526",
"0.8099001",
"0.8099001",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80677134",
"0.80598736",
"0... | 0.0 | -1 |
Computes each measure on the train and validation data per epoch and plots the measures over epochs. Uses the keys in measures as the labels in the plot legend. | def kj9G(Emd4, g2W_, leAC=None, IICq=None, VoLU='Epoch', pmON=None):
LZpg = QrM1.figure()
aNZO = LZpg.add_subplot(111)
aNZO.yaxis.set_ticks_position('both')
for UXqs, Tcon in g2W_.items():
QrM1.plot(Tcon, label=UXqs)
QrM1.legend(loc=0)
QrM1.xlabel(VoLU)
QrM1.ylabel(IICq)
QrM1.tit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zy3x():\n w_5H = {'train': [['13-4-2013', '30-9-2013']], 'validation': ['13-4-2013', '31-7-2013'], 'test': ['6-1-2014', '11-1-2014']}\n EvQg = []\n for KnxT in w_5H['train']:\n a1PO = uy3w('../data/ukdale.h5')\n a1PO.clear_cache()\n a1PO.set_window(start=KnxT[0], end=KnxT[1])\n ... | [
"0.71194595",
"0.6855965",
"0.68386996",
"0.6800575",
"0.6798219",
"0.6770898",
"0.673788",
"0.67325824",
"0.6719344",
"0.67161196",
"0.67034256",
"0.66903895",
"0.6673914",
"0.66285074",
"0.6623577",
"0.6592545",
"0.6588893",
"0.65253067",
"0.6518184",
"0.6505225",
"0.649799... | 0.6849408 | 2 |
The function calculates the multiplication between the two matrices it gets. | def MWMj(WKvO, LVAh):
Aofo = kiFE(len(WKvO), len(LVAh[0]))
for Mkmy in range(len(WKvO)):
for Z9rn in range(len(LVAh[0])):
for exwG in range(len(WKvO[0])):
Aofo[Mkmy][Z9rn] = Aofo[Mkmy][Z9rn] + WKvO[Mkmy][exwG] * LVAh[exwG][Z9rn]
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBCE(at2S, CKPS):\n return at2S * CKPS",
"def ywqt(YrCa, vAne):\n return XTiz.matmul(YrCa, vAne)",
"def hxFl(jzdc, Fg_i):\n pass",
"def hxFl(o4D3, ajwV):\n return",
"def dqm3(k0lF, tjUW):\n k0lF = oyIN.array(k0lF)\n tjUW = oyIN.array(tjUW)\n return k0lF @ tjUW",
"def AdrB(YKHO, a... | [
"0.87070435",
"0.8613787",
"0.8239612",
"0.8235043",
"0.8198455",
"0.8022156",
"0.8007932",
"0.7999605",
"0.7943248",
"0.78249",
"0.78243953",
"0.7814926",
"0.77857774",
"0.77819985",
"0.7743167",
"0.77288675",
"0.77241415",
"0.7720156",
"0.77114236",
"0.7700421",
"0.76922154... | 0.7869834 | 9 |
Function for converting a magnitude to a flux. | def SCtB(YKHO, YXbZ: float, P1dF: Optional[float]=None, u7Po: Optional[float]=None) -> AzJI[oyIN.float64, oyIN.float64]:
if u7Po is None:
u7Po = YKHO.zero_point()
shSu = 10.0 ** (-0.4 * (YXbZ - YKHO.vega_mag)) * u7Po
if P1dF is None:
Wvjc = None
else:
Puaw = shSu * (10.0 ** (0.4 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wayq(YXbZ, B_ud):\n return 10.0 ** ((B_ud - YXbZ) / 2.5)",
"def jr9H(FOSW, n8o7):\n shSu = n8o7 * 10 ** (-0.4 * FOSW)\n return shSu",
"def bzaD(YKHO, shSu):\n return vlPw(shSu) + YKHO.zeropoint",
"def TRQ9(YKHO, FOSW, Ebru):\n return YKHO.zpbandflux(Ebru) * 10.0 ** (-0.4 * FOSW)",
"def j... | [
"0.82453483",
"0.7963158",
"0.77475363",
"0.7633262",
"0.7376303",
"0.72442937",
"0.71982116",
"0.7022872",
"0.69150424",
"0.6872812",
"0.6744116",
"0.6740123",
"0.66990083",
"0.6679572",
"0.6594954",
"0.6580039",
"0.6578621",
"0.6529452",
"0.6517619",
"0.6443536",
"0.6399702... | 0.6941937 | 8 |
Function for converting a flux into a magnitude. | def m5Tq(YKHO, shSu: float, P1dF: Optional[Union[float, np.ndarray]]=None, Ayfi: Optional[Union[Tuple[float, Optional[float]], Tuple[np.ndarray, Optional[np.ndarray]]]]=None) -> AzJI[uLKX[AzJI[float, h8nf[float]], AzJI[oyIN.ndarray, h8nf[oyIN.ndarray]]], uLKX[AzJI[float, h8nf[float]], AzJI[oyIN.ndarray, h8nf[oyIN.ndarr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bzaD(YKHO, shSu):\n return vlPw(shSu) + YKHO.zeropoint",
"def wayq(YXbZ, B_ud):\n return 10.0 ** ((B_ud - YXbZ) / 2.5)",
"def ROL0(YKHO, shSu, Ebru):\n return -2.5 * epAf.log10(shSu / YKHO.zpbandflux(Ebru))",
"def Knmv(shSu, n8o7):\n FOSW = -2.5 * oyIN.log10(shSu / n8o7)\n return FOSW",
... | [
"0.83703566",
"0.800744",
"0.75667477",
"0.7526854",
"0.7509603",
"0.7407683",
"0.7253616",
"0.7225814",
"0.707628",
"0.707093",
"0.69489837",
"0.6935411",
"0.69298154",
"0.690578",
"0.68401784",
"0.6825707",
"0.6775825",
"0.67365724",
"0.6732034",
"0.6652839",
"0.6651026",
... | 0.67924464 | 16 |
Create a new meeting. This operation is atomic and will create every participant and places accordingly. If this is a 'place' meeting, set the status as 'in progress'. Other types of meetings needs more information to start. For 'hidden' user, automatically refuse all meetings. | def eLpg(YKHO, vGfb):
v_U2 = vGfb.pop('participants')
C6id = vGfb.pop('place', None)
c5ow = YKHO.context['request'].user
if 'type' in vGfb and vGfb['type'] == uD5n.TYPE_PLACE:
vGfb['status'] = uD5n.STATUS_PROGRESS
IDh4 = super().create(vGfb)
if C6id is not None:
C6id = pRgP(**C6i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ftb7(YKHO, **B2fa):\n return uD5n.objects.create(**B2fa)",
"def _GPp(YKHO):\n IDh4 = pa4n.events_service().create_meeting(title='Dummy flight', starting_date=qcWV.now(), timeline=YKHO.timeline)\n YKHO.assertEquals(YKHO.user.timeline_set.first().meeting_set.first(), IDh4)",
"def g6tv():\n wzkt =... | [
"0.7392683",
"0.67841417",
"0.6734573",
"0.6226743",
"0.61853546",
"0.61173654",
"0.60634035",
"0.60318744",
"0.59833246",
"0.5948004",
"0.5937832",
"0.58977526",
"0.58561957",
"0.58434606",
"0.58240426",
"0.57588917",
"0.5727013",
"0.57164913",
"0.56837624",
"0.56567705",
"0... | 0.7533881 | 0 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
pcsc = cmPJ.get('totalCount')
f0lG = rgUz.from_dictionary(cmPJ.get('pageInfo')) if cmPJ.get('pageInfo') else None
yEHD = None
if cmPJ.get('messages') is not None:
yEHD = [hPZL.from_dictionary(WKvO) for WKvO in cmPJ.get('messages')]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83718294",
"0.8335509",
"0.8215696",
"0.8169352",
"0.8169352",
"0.8147303",
"0.8051633",
"0.80292666",
"0.80131257",
"0.7979109",
"0.7922217",
"0.79195607",
"0.7917743",
"0.79124486",
"0.7905526",
"0.7900484",
"0.78968203",
"0.78857076",
"0.78753096",
"0.7854024",
"0.78540... | 0.0 | -1 |
Clears the model and creates the main sections. | def Y7Bk(YKHO):
YKHO.model.clear()
YKHO.iters_with_id = {}
YKHO.names_with_id = {}
YKHO.dirty = False
YKHO.notify('empty')
YKHO.application_updates = YKHO.model.append(None, ('upgrade', None, None, -1, bGrB('Application updates'), None, bGrB('Downloaded'), False, 0, False, False))
YKHO.to_in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7Bk(YKHO):\n YKHO.__model = []\n YKHO.clear_view()",
"def Y7Bk(YKHO):\n YKHO.sections = dict()",
"def Y7Bk(YKHO):\n YKHO.model.clear()",
"def SiRx(YKHO):\n YKHO.beginResetModel()\n YKHO.resetInternalData()\n WBPg = str(YKHO.root_item.header)\n YKHO.root_item.clear()\n YKHO.roo... | [
"0.68270844",
"0.65551645",
"0.65200704",
"0.63357586",
"0.6274766",
"0.6244741",
"0.6138645",
"0.59663814",
"0.59620667",
"0.5951182",
"0.59219855",
"0.5912492",
"0.58831877",
"0.58726805",
"0.58490586",
"0.58198446",
"0.58121455",
"0.57994646",
"0.57994646",
"0.57994646",
"... | 0.6157151 | 6 |
Return an error page for ``400 Bad Request`` errors. | def Z8pp(Wehb: HTTPException) -> ZIIG:
leAC = bGrB('Bad Request')
Ol8d = bGrB('Your request was malformed and could therefore not be handled by the server.')
return (TvZl('error.html', title=leAC, message=Ol8d), 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FNWm(P1dF):\n dsE5 = wVCK.format_exc()\n return (TvZl('error.html', error=P1dF, title='Bad Request', message='Your request was invalid, please try again.', debug=dsE5), 400)",
"def Y1ZN(tTpl):\n return geh0('failed', 'Bad Request', 400)",
"def rL7H(QePW, geh0, AJ5d):\n G9jH.exception(AJ5d)\n ... | [
"0.8341282",
"0.801132",
"0.7708863",
"0.75556386",
"0.7537785",
"0.74796873",
"0.74609756",
"0.743081",
"0.738054",
"0.73431826",
"0.7324239",
"0.73167497",
"0.73130083",
"0.73021704",
"0.7283235",
"0.7278104",
"0.7262175",
"0.7198508",
"0.71607137",
"0.7157118",
"0.7136355"... | 0.7752437 | 2 |
Return an error page for ``500 Internal Server Error`` errors. | def C89g(Wehb: HTTPException) -> ZIIG:
leAC = bGrB('Internal Error')
Ol8d = bGrB('The server encountered an internal error while processing your request. Please try again later.\n The administrator has been notified.')
return (TvZl('error.html', title=leAC, message=Ol8d), 500) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dm5d(QePW):\n return Sa_0(QePW, 404, bGrB('Internal Error'), bGrB('An internal error occured while generating the page for %(res)s.') % {'res': QePW.path})",
"def C89g(tTpl):\n return (TvZl('500.html'), 500)",
"def DhRk(QePW):\n return JKEK(QePW, 500, '500.html')",
"def C89g(P1dF):\n return (... | [
"0.87175465",
"0.86545193",
"0.8608795",
"0.8592808",
"0.8592808",
"0.85552365",
"0.85250396",
"0.85085654",
"0.84584665",
"0.8452212",
"0.83947396",
"0.8351608",
"0.83052754",
"0.8265107",
"0.8247531",
"0.8188424",
"0.8165733",
"0.8128362",
"0.8124776",
"0.8119462",
"0.81116... | 0.8077239 | 21 |
Returns a normalized 2D gauss kernel array for convolutions | def hvqX(zNig, DJmC=None):
zNig = int(zNig)
if not DJmC:
DJmC = zNig
else:
DJmC = int(DJmC)
WKvO, LVAh = Au3N[-zNig:zNig + 1, -DJmC:DJmC + 1]
Oa1e = kLQb(-(WKvO ** 2 / float(zNig) + LVAh ** 2 / float(DJmC)))
return Oa1e / Oa1e.sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MLdf(VXjJ, WZcn):\n YDR7, bGrB, YSA3, RZju = WZcn.shape\n VXjJ = nxWE.pad(VXjJ, (YSA3 // 2, RZju // 2, YSA3 // 2, RZju // 2), mode='replicate')\n return nxWE.conv2d(VXjJ, WZcn, groups=YDR7)",
"def MLdf(VXjJ, WZcn):\n YDR7, bGrB, YSA3, RZju = WZcn.shape\n VXjJ = vuvg.pad(VXjJ, (YSA3 // 2, RZju ... | [
"0.75956005",
"0.7574268",
"0.74197286",
"0.72104317",
"0.6984035",
"0.6927974",
"0.68276846",
"0.67918605",
"0.661472",
"0.6601679",
"0.6596441",
"0.6507285",
"0.6452841",
"0.64154077",
"0.6410191",
"0.6343103",
"0.6334287",
"0.6321223",
"0.63192165",
"0.6304215",
"0.629576"... | 0.0 | -1 |
Build our Flask application with the given config source. If no config_name is given, we default to cloudlabs.config.Config, unless overridden by the environment variable APP_SETTINGS. | def LUif(Zu8l=None):
if Zu8l is None:
import os
Zu8l = os.getenv('APP_SETTINGS', 'cloudlabs.config.Config')
P4t4 = L2w0(__name__)
P4t4.config.from_object(Zu8l)
with open(P4t4.config['LOG_CONFIG_FILE'], 'r') as Nu1S:
GPtr = eJb6.safe_load(Nu1S.read())
Ux0P = GPtr['handlers... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lrjb(Zu8l):\n from config import configs\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(configs[Zu8l])\n configs[Zu8l].init_app(P4t4)\n return P4t4",
"def LUif(Zu8l=Hy7s.getenv('CONFIG_ENV', 'dev')) -> L2w0:\n print('config', Zu8l)\n P4t4 = L2w0(__name__, instance_relative_config=Fals... | [
"0.71199566",
"0.6988625",
"0.6914821",
"0.6914215",
"0.6882701",
"0.6877381",
"0.6877156",
"0.68278646",
"0.6816024",
"0.67852557",
"0.67526317",
"0.6746723",
"0.6706775",
"0.6696218",
"0.6655985",
"0.6647427",
"0.6635981",
"0.6622476",
"0.6616465",
"0.6615476",
"0.6613925",... | 0.75410277 | 0 |
return the string representation of self | def zAg0(YKHO):
return AU7f.format(YKHO.getUrl(), str(YKHO.isVulnerable()), YKHO.getWafName(), YKHO.getTampers()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def gTzM(YKHO):\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.... | [
"0.8643994",
"0.8643994",
"0.8638215",
"0.8630552",
"0.86119443",
"0.85873383",
"0.8575002",
"0.8569702",
"0.85080755",
"0.8449811",
"0.83795714",
"0.83730066",
"0.83730066",
"0.83730066",
"0.8358692",
"0.8358692",
"0.83569044",
"0.8347771",
"0.8347771",
"0.8347771",
"0.83477... | 0.0 | -1 |
Creates a symbol facade. | def FIMM(YKHO, BFkl, ozkv=None):
YKHO.network = gn3W.find_by_name(X1CD.NETWORKS, BFkl)
YKHO.account_descriptor_repository = ozkv
YKHO.transaction_factory = YKHO._create_symbol_transaction_factory() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6ku(mWFP):\n return nAhC(mWFP)",
"def j6ku(YKHO, ZwsV, GQCG):\n raise NotImplementedError()",
"def o61b() -> wZLS:\n return wZLS()",
"def FIMM(YKHO):\n YKHO.symbol_table = YKHO._init_symbol_table()",
"def Kw8W(o61b, Gjtu):\n return APtZ(o61b, Gjtu, '')",
"def FIMM(YKHO, bf9h: ghidra.p... | [
"0.70402",
"0.65300614",
"0.65149766",
"0.6251422",
"0.6212417",
"0.61976725",
"0.6122995",
"0.6102129",
"0.6076701",
"0.6012966",
"0.59116054",
"0.5895104",
"0.58779603",
"0.586471",
"0.5814294",
"0.5751461",
"0.5717161",
"0.566568",
"0.566568",
"0.56600004",
"0.56524163",
... | 0.50586176 | 66 |
Normalize path for ST. On Linux, does nothing. On windows, maps windows directory separators to linux ones, as ST wants linux directory separators. | def niaj(pmON):
if CREs.platform() == 'windows':
return pmON.replace('\\', '/')
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V5gm(pmON):\n pmON = Hy7s.path.normpath(pmON)\n pmON = Hy7s.path.normcase(pmON)\n pmON = pmON.replace('\\\\', '/')\n return pmON",
"def Gv09(YKHO, pmON):\n return D1un(ENtY(pmON))",
"def oIEX(pmON):\n if pmON and pmON[-1] != '/':\n return pmON + '/'\n return pmON",
"def s5sT(p... | [
"0.76793265",
"0.76444584",
"0.76167077",
"0.7531372",
"0.752947",
"0.75237644",
"0.75096613",
"0.74990773",
"0.748201",
"0.7437077",
"0.74287355",
"0.7418412",
"0.7402549",
"0.7397242",
"0.73618597",
"0.7344066",
"0.73387885",
"0.72930884",
"0.72899497",
"0.72662425",
"0.722... | 0.8203288 | 0 |
Get the .cache file path for a color scheme file. | def fY3r(Le8z):
NpY_ = '.cache'
if _GsX.is_st3():
cEzT = mkE9(NfKF)
BXLT = Hy7s.path.join(Hy7s.path.dirname(cEzT), 'Cache')
return Hy7s.path.join(BXLT, Le8z[len(cEzT) + 1:] + NpY_)
return Le8z + NpY_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fEVd(YKHO) -> GkAb:\n return YKHO._get_cache_dir() / YKHO._create_file_name()",
"def eR0P(YKHO):\n return YKHO.get_cache_directory() + '/' + YKHO.get_local_filename()",
"def eR0P(YKHO):\n return Hy7s.path.join(YKHO.cache_dir, 'devhints_cache.json')",
"def F28p(YKHO):\n return GkAb(YKHO.cache_... | [
"0.6984988",
"0.6952648",
"0.68648607",
"0.6766957",
"0.6761204",
"0.6744725",
"0.6730829",
"0.670675",
"0.6679047",
"0.6673698",
"0.6662162",
"0.6600772",
"0.6590262",
"0.65780103",
"0.65713453",
"0.6569224",
"0.6551101",
"0.6538415",
"0.65167177",
"0.6470208",
"0.6456693",
... | 0.81091875 | 0 |
Recombine a series of `chunks` into individual lambda expressions based on the given `specs`. | def TTMP(eHxA: List[str], Mzww: List[_ChunkSpec], EdbX: str='ambda') -> x1iM[AzJI[fHNa[str], fHNa[str], str]]:
dixj = []
for Cqok in Mzww:
_CS_ = set()
if Cqok.chunk_start == Cqok.chunk_mid:
ulN4 = eHxA[Cqok.chunk_start][Cqok.idx_start:Cqok.idx_mid]
else:
ulN4 = e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xg5K(LKLu: List[_ChunkSpec], eHxA: List[str], wlvj: int, xHU6: int, avzX: str, m_EK: bool=False, bz4n: bool=True) -> AzJI[h8nf[int], h8nf[int]]:\n rPkj, ckwk = (None, None)\n hqJI = 0\n bi4C = wlvj\n or8S = xHU6\n while rPkj is None:\n if bi4C >= len(eHxA):\n return (bi4C - 1, ... | [
"0.5948707",
"0.550511",
"0.5437364",
"0.5437364",
"0.543206",
"0.52324677",
"0.5042466",
"0.50015706",
"0.49138707",
"0.48883852",
"0.48878133",
"0.48874128",
"0.48758346",
"0.48673892",
"0.47948727",
"0.47934538",
"0.4784252",
"0.477241",
"0.4753788",
"0.4742317",
"0.472305... | 0.7041309 | 0 |
Extract the argument names from a string representation of a lambda function. | def V0et(n_L_: str) -> fHNa[str]:
dixj = set()
d7pR = ''
hqJI = 0
R7f8 = True
for hcXw in n_L_:
if hqJI == 0 and hcXw == ':':
d7pR = d7pR.strip()
if d7pR:
dixj.add(d7pR)
break
if hcXw in ('(', '{', '['):
hqJI += 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TY_v(m0IA):\n aadv = tq_1.signature(m0IA)\n SGPK = aadv.parameters\n TjuQ = list(SGPK)\n return TjuQ",
"def UoyG(kLQb):\n return kLQb[1]",
"def VsEz(FYKK):\n Wxnj = FYKK.__code__\n kMqG = bool(Wxnj.co_flags & PD5D.consts.CO_VARARGS)\n WmXT = bool(Wxnj.co_flags & PD5D.consts.CO_VARKE... | [
"0.6938297",
"0.68779993",
"0.6715313",
"0.63513064",
"0.62337416",
"0.61968005",
"0.6187662",
"0.6158611",
"0.59879106",
"0.5938927",
"0.59359956",
"0.5905606",
"0.5891382",
"0.58798295",
"0.5876824",
"0.58639055",
"0.57832736",
"0.57749957",
"0.57736784",
"0.57561386",
"0.5... | 0.0 | -1 |
Convert a lambda function into a string representation, disambiguating variables when possible. | def gPhD(m2Zb: types.FunctionType, xU0C: Dict[FEID, FeSummaryTable], TFio: Flag) -> h8nf[cuzp[str, ImMB]]:
try:
JZXy = tq_1.getsource(m2Zb)
except OSError:
return None
JZXy = JZXy.strip()
zQZR = []
hqJI = ''
_95g = 0
for or8S, hcXw in enumerate(JZXy):
if hcXw in ("'",... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ftj2(WKvO):\n try:\n return '%s::%s. %s' % (WKvO.func_code.co_filename, WKvO.func_code.co_firstlineno, WKvO)\n except Exception as e:\n return '<ERROR IN lambdaFunctionToString on %s>' % WKvO",
"def MOqR(YKHO, JfyU: str):\n return lambda WKvO: getattr(WKvO, JfyU)()",
"def IZPM(hGN5):... | [
"0.74306345",
"0.67488474",
"0.66712993",
"0.6232987",
"0.6124025",
"0.5866306",
"0.582945",
"0.5740396",
"0.5738488",
"0.5729483",
"0.56869024",
"0.5670899",
"0.5650348",
"0.56437844",
"0.5633893",
"0.5532124",
"0.5522066",
"0.5506636",
"0.55010605",
"0.5497819",
"0.54875016... | 0.5827511 | 7 |
Initialize Ssh worker instance. | def FIMM(YKHO, Ziit, DCgT, vYBr, **B2fa):
n_HI.__init__(YKHO, DCgT)
YKHO.clients = []
YKHO.nodes = epUu(Ziit)
YKHO.command = B2fa.get('command')
YKHO.source = B2fa.get('source')
YKHO.dest = B2fa.get('dest')
jIR8 = B2fa.get('autoclose', False)
wIbz = B2fa.get('stderr', False)
YKHO._cl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UtiO(i4ai):\n pass",
"def DMw_(YKHO):\n O7Is = YKHO.workflow.config['worker-initialization']\n if not O7Is['script-path']:\n return\n O7Is['script-path'] = Hy7s.path.abspath(O7Is['script-path'])\n O7Is['log-dir'] = Hy7s.path.abspath(O7Is['log-dir'])\n Hy7s.makedirs(O7Is['log-dir'], e... | [
"0.6839251",
"0.6728161",
"0.6351799",
"0.625583",
"0.6228543",
"0.61337525",
"0.6128959",
"0.6082986",
"0.60825753",
"0.6063039",
"0.6035083",
"0.6017878",
"0.6012596",
"0.6005964",
"0.5990715",
"0.5942551",
"0.58872056",
"0.58860016",
"0.5880246",
"0.5877559",
"0.5827277",
... | 0.5951291 | 15 |
Tell worker to close its writer file descriptor once flushed. Do not perform writes after this call. | def Y7i9(YKHO):
for Z9rn in YKHO.clients:
Z9rn._set_write_eof() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n if not YKHO._closed:\n with YKHO._lock:\n if not YKHO._closed:\n YKHO._closed = True\n YKHO._worker.stop()\n YKHO._writer.flush()\n YKHO._writer.close()",
"def DDI8(YKHO):\n if Kuah.active_writers.get(YKHO.datas... | [
"0.7684235",
"0.7241031",
"0.72112525",
"0.7208726",
"0.70007163",
"0.69856673",
"0.6953441",
"0.69258064",
"0.68263376",
"0.67916423",
"0.67869824",
"0.6775148",
"0.6775034",
"0.6753726",
"0.6743429",
"0.6740624",
"0.6658023",
"0.6619571",
"0.6619571",
"0.6619571",
"0.658622... | 0.0 | -1 |
Populates new relationship from old one. | def Zt8H(XLL2, aCqy):
N3tN = XLL2.get_model('users', 'Candidate')
TCfJ = XLL2.get_model('users', 'CandidateSkill')
for SkC9 in N3tN.objects.all():
for F5FK in SkC9.skills.all():
zAlC = TCfJ.objects.create(candidate=SkC9, skill=F5FK, experience=0, created_at=rIAI.now(), updated_at=rIAI.no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oknl(YKHO, fWYn):\n pass",
"def QZnA(YKHO):\n for rdlD in YKHO.data:\n for QWcs, hLEK in YKHO.relations.items():\n Mr5H = YKHO.base.tables[hLEK]\n if QWcs in rdlD['fields']:\n BWXx = rdlD['fields'][QWcs]\n if type(BWXx) == list:\n ... | [
"0.705886",
"0.65728766",
"0.65061826",
"0.6501969",
"0.6480126",
"0.6462859",
"0.63604397",
"0.6277002",
"0.62315536",
"0.6207922",
"0.61411744",
"0.60386586",
"0.60376",
"0.60297483",
"0.5991967",
"0.5908201",
"0.58931905",
"0.5881397",
"0.5879737",
"0.5879485",
"0.58707035... | 0.0 | -1 |
Test that nested relationships work. post (many) > tags (single) > User A user can read a post with a tag if the tag's creator is the user. | def POrF(cuiw, xXAz, BOo5):
xXAz.load_str('\n allow(user, "read", post: Post) if tag in post.tags and tag.created_by = user;\n ')
FvVY = cuiw.query(T97t).filter(EPgp(xXAz, BOo5['user'], 'read', cuiw, T97t))
assert BOo5['user_eng_post'] in FvVY
assert BOo5['user_user_post'] in FvVY
assert n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V0OQ(cuiw, xXAz, GaNp):\n xXAz.load_str('\\n allow(_, \"read\", post: Post) if tag in post.tags and user in tag.users and\\n user.username = \"user\";\\n ')\n FvVY = cuiw.query(T97t).filter(EPgp(xXAz, GaNp['user'], 'read', cuiw, T97t))\n assert GaNp['user_eng_post'] in FvVY\n assert Ga... | [
"0.8109116",
"0.80476505",
"0.7138918",
"0.6611225",
"0.65621114",
"0.59339184",
"0.59281415",
"0.588436",
"0.5847541",
"0.5835137",
"0.5671554",
"0.56501436",
"0.5594478",
"0.5585341",
"0.55549574",
"0.5533322",
"0.55292106",
"0.5511824",
"0.5502343",
"0.5489215",
"0.5472742... | 0.8401863 | 0 |
Test that nested relationships work. post (many) > tags (many) > User A user can read a post with a tag if the tag's creator is the user. | def zKHw(cuiw, xXAz, GaNp):
xXAz.load_str('\n allow(user, "read", post: Post) if tag in post.tags and user in tag.users;\n ')
FvVY = cuiw.query(T97t).filter(EPgp(xXAz, GaNp['user'], 'read', cuiw, T97t))
assert GaNp['user_eng_post'] in FvVY
assert GaNp['user_user_post'] in FvVY
assert not GaNp[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def POrF(cuiw, xXAz, BOo5):\n xXAz.load_str('\\n allow(user, \"read\", post: Post) if tag in post.tags and tag.created_by = user;\\n ')\n FvVY = cuiw.query(T97t).filter(EPgp(xXAz, BOo5['user'], 'read', cuiw, T97t))\n assert BOo5['user_eng_post'] in FvVY\n assert BOo5['user_user_post'] in FvVY... | [
"0.83879375",
"0.8300703",
"0.73237497",
"0.66019815",
"0.65480584",
"0.59389967",
"0.5930671",
"0.5927989",
"0.5926969",
"0.5748201",
"0.5669064",
"0.55993384",
"0.5550561",
"0.55151665",
"0.54903626",
"0.5477317",
"0.54768604",
"0.5470823",
"0.5449226",
"0.5446625",
"0.5434... | 0.82385135 | 2 |
Test that nested relationships work. post (many) > tags (many) > User A user can read a post with a tag if the tag's creator is the user. | def V0OQ(cuiw, xXAz, GaNp):
xXAz.load_str('\n allow(_, "read", post: Post) if tag in post.tags and user in tag.users and\n user.username = "user";\n ')
FvVY = cuiw.query(T97t).filter(EPgp(xXAz, GaNp['user'], 'read', cuiw, T97t))
assert GaNp['user_eng_post'] in FvVY
assert GaNp['user_user_po... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def POrF(cuiw, xXAz, BOo5):\n xXAz.load_str('\\n allow(user, \"read\", post: Post) if tag in post.tags and tag.created_by = user;\\n ')\n FvVY = cuiw.query(T97t).filter(EPgp(xXAz, BOo5['user'], 'read', cuiw, T97t))\n assert BOo5['user_eng_post'] in FvVY\n assert BOo5['user_user_post'] in FvVY... | [
"0.8387655",
"0.82381886",
"0.73245996",
"0.6601752",
"0.6548255",
"0.59387755",
"0.59305394",
"0.5928442",
"0.592664",
"0.57493603",
"0.5668324",
"0.55990714",
"0.5551172",
"0.5516502",
"0.5491495",
"0.5478262",
"0.54776967",
"0.5470862",
"0.5449937",
"0.5447882",
"0.5434341... | 0.8300721 | 1 |
test the attribute phase change | def X0r2(YKHO):
iIih = FOi6.create(FOi6.OBJECT_CREATE)
U5bT = iIih.get_attr_phase_change()
YKHO.assertEqual((8, 6), U5bT)
with YKHO.assertRaises(ValueError):
iIih.set_attr_phase_change(65536, 6)
iIih.set_attr_phase_change(0, 0)
YKHO.assertEqual((0, 0), iIih.get_attr_phase_change()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LWOk(YKHO):\n pass",
"def ns9A(YKHO):\n\n class FooObjectAttribute(aM69.ChangeTrackingObjectAttribute):\n XWXe = 'foo'\n xjAB = 1\n qOP2 = 0\n WKvO = YKHO.world.objects[3]\n LVAh = YKHO.world.objects[4]\n WKvO.add_attribute('foo')\n LVAh.add_attribute('foo')\n L70P =... | [
"0.6759645",
"0.64470446",
"0.6442977",
"0.6383381",
"0.6373127",
"0.63373494",
"0.6146534",
"0.61346555",
"0.6125097",
"0.61008006",
"0.6085602",
"0.6068413",
"0.6051722",
"0.6049471",
"0.60296243",
"0.60259783",
"0.6022331",
"0.5989456",
"0.59524393",
"0.5941129",
"0.593030... | 0.7381404 | 0 |
Sets the city of this User. | def j5sA(YKHO, j5sA):
YKHO._city = j5sA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eg4e(YKHO, BWXx):\n YKHO.city = BWXx\n G9jH.debug(\"User's city received\")",
"def MFwm(YKHO, j5sA: str):\n YKHO.__city = j5sA\n return YKHO",
"def Eg4e(YKHO, nPrm):\n YKHO.city = nPrm",
"def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA",
"def j5sA(YKHO, j5sA: str):\n YKHO._city = j5... | [
"0.84177846",
"0.81735563",
"0.81280166",
"0.8038685",
"0.8038685",
"0.7771879",
"0.7405958",
"0.74004674",
"0.71185803",
"0.69250965",
"0.6914888",
"0.6814096",
"0.681177",
"0.6801542",
"0.67643625",
"0.67103875",
"0.64469135",
"0.6326437",
"0.6326437",
"0.62869936",
"0.6286... | 0.79617006 | 5 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83931077",
"0.83551943",
"0.8295509",
"0.8132744",
"0.8115034",
"0.8100248",
"0.8099668",
"0.80982566",
"0.80982566",
"0.809302",
"0.809302",
"0.809302",
"0.809302",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.80673736",
"0.80593926",
"0.80581796",
"0.... | 0.8044342 | 99 |
String representation of the bot. | def wHJl(YKHO):
return '<Bot {}> Type: {}, Position: {}'.format(YKHO.name, YKHO.type, YKHO.node) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '<Bot at {0}>'.format(YKHO.config.root_dir)",
"def wHJl(YKHO):\n return 'Bot(config={0!r})'.format(YKHO.config)",
"def wHJl(YKHO):\n Aofo = ['<', YKHO.__class__.__name__]\n if YKHO._responded:\n Aofo.append(' (responded), ')\n Aofo.append(' channel=')\n Aofo.ap... | [
"0.7349298",
"0.71120393",
"0.7039482",
"0.69262844",
"0.68543947",
"0.68543947",
"0.6854102",
"0.67475724",
"0.6702573",
"0.66963524",
"0.66759855",
"0.6627202",
"0.66138035",
"0.66057473",
"0.6603454",
"0.65968037",
"0.65566146",
"0.65511376",
"0.654934",
"0.65105677",
"0.6... | 0.7212418 | 1 |
convert char to integers | def Q5cj(YKHO, hcXw: str) -> int:
hcXw = hcXw.lower()
return ord(hcXw) - ord('a') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dW0i(hcXw):\n pJ4u = {'O': 0, 'I': 1, 'L': 2, 'T': 3, 'S': 4, 'Z': 5, 'J': 6}\n return pJ4u[hcXw]",
"def _3Xs(yx1t):\n return [ord(WKvO) for WKvO in yx1t]",
"def C4kW(cSAc: str):\n return [ord(hcXw) for hcXw in cSAc]",
"def kShN(Z9rn):\n Wxnj = 0\n if Z9rn == 'A':\n Wxnj = 0\n ... | [
"0.7947798",
"0.781916",
"0.75603706",
"0.7557129",
"0.75460875",
"0.7383519",
"0.73713076",
"0.73083305",
"0.709933",
"0.70257556",
"0.69955677",
"0.69533336",
"0.69404036",
"0.6917687",
"0.69155526",
"0.69155526",
"0.69155526",
"0.69130903",
"0.69114137",
"0.6895341",
"0.68... | 0.0 | -1 |
insert word to a trie | def JPHp(YKHO, GIN8) -> None:
Yahg = YKHO.root
u54L = len(GIN8)
for hcXw in GIN8:
d6pt = YKHO._charToIndex(hcXw)
if not Yahg.children[d6pt]:
Yahg.children[d6pt] = ep_x(hcXw)
Yahg = Yahg.children[d6pt]
Yahg.isEndofWord = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, GIN8):\n TI1B = YKHO.root\n for Z9rn in GIN8:\n if TI1B.children[ord(Z9rn) - ord('a')] is None:\n TI1B.children[ord(Z9rn) - ord('a')] = ep_x()\n TI1B.children[ord(Z9rn) - ord('a')].char = Z9rn\n TI1B = TI1B.children[ord(Z9rn) - ord('a')]\n TI1B.isword = T... | [
"0.8928066",
"0.89275664",
"0.8913695",
"0.8871127",
"0.8865215",
"0.8850294",
"0.88148034",
"0.88043153",
"0.880232",
"0.87978375",
"0.87865365",
"0.8768985",
"0.8764903",
"0.8763112",
"0.87493724",
"0.8741417",
"0.8741387",
"0.87392807",
"0.8735682",
"0.87290925",
"0.872830... | 0.83622396 | 60 |
Returns a pandas Series with the latitude for each of the earthquakes in the uploaded data. | def yr2j(YKHO):
return YKHO.data['LATITUDE'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fAC5(YKHO):\n return YKHO.wdata[O4jg].values",
"def fAC5(YKHO):\n return oyIN.array([qpDA.lat for qpDA in YKHO.sites])",
"def TujQ(dy_H):\n return [dy_H[WKvO].get('latitude', oyIN.nan) for WKvO in oyIN.arange(len(dy_H))]",
"def N2ry(nPrm):\n CtUl = []\n for bTKY in nPrm:\n _UuI = bT... | [
"0.6933161",
"0.64000636",
"0.6399196",
"0.6142839",
"0.6141459",
"0.60185766",
"0.6002771",
"0.59831256",
"0.5879093",
"0.587569",
"0.5838876",
"0.58233464",
"0.5811207",
"0.5790086",
"0.5742649",
"0.57134426",
"0.5697274",
"0.563204",
"0.5611286",
"0.56054544",
"0.5594805",... | 0.6714179 | 1 |
Return a pandas Series with the longitude for each of the earthquakes in the uploaded data. | def kv8G(YKHO):
return YKHO.data['LONGITUDE'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nwpL(YKHO):\n return YKHO.wdata[BFTR].values",
"def Fskc(dy_H):\n return [dy_H[WKvO].get('longitude', oyIN.nan) for WKvO in oyIN.arange(len(dy_H))]",
"def nwpL(YKHO):\n return oyIN.array([qpDA.lon for qpDA in YKHO.sites])",
"def fqjJ(YKHO):\n nPrm = x3i3(YKHO.hist_list[0])\n QnmL = nPrm.va... | [
"0.6887461",
"0.6606013",
"0.64008856",
"0.6204957",
"0.61704534",
"0.61677116",
"0.61372703",
"0.6134701",
"0.6031027",
"0.60223204",
"0.599435",
"0.59623027",
"0.5949767",
"0.588781",
"0.5882678",
"0.5807312",
"0.5777529",
"0.57185495",
"0.57149595",
"0.5714238",
"0.5702187... | 0.6481712 | 2 |
Normalize the input vectors based on specified axis. | def NkkI(s9pG, jDK_=0):
H2mE(s9pG, 'vec_in')
s9pG = oyIN.array(s9pG)
return s9pG / VlDb(s9pG, axis=jDK_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(F_On, jDK_=-1):\n exwG = CkYf(F_On, axis=jDK_, keepdims=True)\n return oyIN.where(exwG <= 0, 0, F_On / exwG)",
"def ZmtP(F_On, jDK_=1, **B2fa):\n he6J = oyIN.array(F_On, copy=True)\n he6J = oyIN.atleast_2d(he6J)\n R76g = oyIN.linalg.norm(he6J, axis=jDK_, **B2fa)\n R76g[R76g == 0] = 1\n... | [
"0.78241205",
"0.7767868",
"0.74071103",
"0.7383938",
"0.73835",
"0.7342764",
"0.7314424",
"0.72572327",
"0.7236577",
"0.71509224",
"0.71300787",
"0.71179426",
"0.7073604",
"0.69882405",
"0.69739825",
"0.69690084",
"0.69313085",
"0.69313085",
"0.69313085",
"0.69313085",
"0.69... | 0.75307924 | 2 |
The name of the schedule. | def mWFP(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO) -> str:\n if YKHO.schedule and YKHO.schedule['name']:\n return YKHO.schedule['name']\n else:\n return 'Schedule #{}'.format(YKHO.schedule_id)",
"def mWFP(YKHO) -> str:\n if YKHO.schedule and YKHO.schedule[r2U0]:\n return YKHO.schedule[r2U0]\n else:\n return ... | [
"0.90142804",
"0.8813086",
"0.8679511",
"0.80602485",
"0.80602485",
"0.76230854",
"0.7290804",
"0.727461",
"0.727461",
"0.71361035",
"0.70788217",
"0.70788217",
"0.70788217",
"0.7054863",
"0.7023795",
"0.70166355",
"0.70102596",
"0.69902736",
"0.69268596",
"0.6794938",
"0.679... | 0.0 | -1 |
This is the value in percentage of used host pool capacity that will be considered to evaluate whether to turn on/off virtual machines during the rampdown and offpeak hours. For example, if capacity threshold is specified as 60% and your total host pool capacity is 100 sessions, autoscale will turn on additional sessio... | def ylBI(YKHO) -> qe4Y.Input[int]:
return qe4Y.get(YKHO, 'ramp_down_capacity_threshold_percent') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yzCr(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'ramp_up_capacity_threshold_percent')",
"def nRUe():\n return O0k5.cpu_percent(1) > 80",
"def b7hB(YKHO, b7hB):\n YKHO.__capacity = b7hB\n YKHO._cost = 15 + b7hB / 300",
"def ji6S(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.ge... | [
"0.64326024",
"0.6069613",
"0.6024877",
"0.6002335",
"0.5994379",
"0.5936695",
"0.5935578",
"0.592983",
"0.5916415",
"0.5916415",
"0.5915465",
"0.5915196",
"0.5908149",
"0.58815885",
"0.58736646",
"0.58727324",
"0.5840137",
"0.58286166",
"0.58003527",
"0.57991636",
"0.5749233... | 0.6075979 | 1 |
Must load and return model | def tyeH(YKHO, pmON):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl():\n return",
"def uyMl():\n return None",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl(YKHO):\n pass",
"def uyMl():\n pass",
"def uyMl():\n pass",
"def O5RJ(YKHO) -> wOed:\n return uyMl('models/' + YKHO._model_name, cus... | [
"0.8450363",
"0.82591635",
"0.82564795",
"0.82564795",
"0.82564795",
"0.82564795",
"0.81629443",
"0.81629443",
"0.8097062",
"0.7910669",
"0.78950167",
"0.76222646",
"0.7614739",
"0.7558736",
"0.7455818",
"0.74414575",
"0.7434566",
"0.7406794",
"0.73852426",
"0.73611826",
"0.7... | 0.0 | -1 |
The email address associated with this user. | def D3lj(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO):\n return YKHO._user_dat['email']",
"def Hxmi(YKHO):\n return YKHO._email_address",
"def Hxmi(YKHO):\n return YKHO._email_address",
"def Hxmi(YKHO):\n return YKHO._email_address",
"def RC0X(YKHO):\n CBIr = getattr(YKHO, YKHO.USER_FIELD)\n return CBIr.get_email()",
"def D3... | [
"0.8808005",
"0.8786741",
"0.8786741",
"0.8786741",
"0.8752703",
"0.874234",
"0.87101036",
"0.8689014",
"0.86718804",
"0.86718804",
"0.8644391",
"0.85986346",
"0.8536081",
"0.85296255",
"0.84114933",
"0.84114933",
"0.84114933",
"0.8344098",
"0.8313182",
"0.8252883",
"0.825288... | 0.0 | -1 |
The first name for this user. | def c9ua(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'first_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9ua(YKHO):\n return YKHO.user.first_name",
"def c9ua(YKHO):\n return YKHO.user.first_name",
"def c9ua(YKHO) -> str:\n return qe4Y.get(YKHO, 'first_name')",
"def TLPb(YKHO):\n return YKHO.user_display_name().split(' ')[0]",
"def c9ua(YKHO) -> str:\n return YKHO.name.title()",
"def c9ua... | [
"0.917771",
"0.917771",
"0.90107775",
"0.8981472",
"0.8918069",
"0.88922536",
"0.88542014",
"0.8844846",
"0.8844846",
"0.8844846",
"0.8844846",
"0.8844846",
"0.8844846",
"0.88422406",
"0.87981546",
"0.87782276",
"0.87731177",
"0.8752822",
"0.8752822",
"0.8752822",
"0.8752822"... | 0.8419824 | 33 |
The last name for this user. | def zp3f(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'last_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zp3f(YKHO):\n return YKHO.user.last_name",
"def zp3f(YKHO):\n return YKHO.user.last_name",
"def zp3f(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_name')",
"def zp3f(YKHO, KAOR):\n return KAOR.user.last_name",
"def XT3O(YKHO):\n return YKHO._end_user_last_name",
"def CCKR(YKHO) -> str:\n... | [
"0.93648875",
"0.93648875",
"0.9085014",
"0.9069663",
"0.9061209",
"0.90348357",
"0.90003586",
"0.898189",
"0.898189",
"0.898189",
"0.898189",
"0.898189",
"0.89618474",
"0.89568186",
"0.8956793",
"0.8946244",
"0.8946244",
"0.8946244",
"0.8946244",
"0.8946244",
"0.8946244",
... | 0.85925645 | 31 |
The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(Y... | [
"0.7614501",
"0.7614501",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"0.7238365",
"... | 0.7370298 | 14 |
The password associated with this user. | def jTXt(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'password') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTXt(YKHO):\n return YKHO.api.get_password_fields(YKHO)['Password']",
"def jTXt(YKHO):\n return YKHO._password",
"def jTXt(YKHO) -> str:\n return YKHO._password",
"def jTXt(YKHO):\n if hasattr(YKHO, '_password'):\n return YKHO._password\n raise AttributeError(\"'User' object does no... | [
"0.90394396",
"0.8961586",
"0.891357",
"0.8905201",
"0.8900099",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"... | 0.7954759 | 87 |
The state of this user. Possible values are `active`, `blocked` and `pending`. | def QTBn(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vp5J(YKHO):\n OqHx = YKHO.UserSlot.get_user_state_slot()\n return OqHx",
"def QTBn(YKHO):\n return YKHO.status",
"def jGRS(YKHO):\n return YKHO._status if 'status' in YKHO._user_dat else 0",
"def ja6o(YKHO):\n return YKHO.status.state",
"def jGRS(YKHO):\n return YKHO.state",
"def jG... | [
"0.7474144",
"0.71165913",
"0.70682174",
"0.69458795",
"0.6849613",
"0.6849613",
"0.67858154",
"0.67849195",
"0.67708904",
"0.666709",
"0.66669697",
"0.6619007",
"0.6614375",
"0.65854305",
"0.6575685",
"0.65734947",
"0.6551519",
"0.65471697",
"0.6489047",
"0.6489047",
"0.6489... | 0.0 | -1 |
The email address associated with this user. | def D3lj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO):\n return YKHO._user_dat['email']",
"def Hxmi(YKHO):\n return YKHO._email_address",
"def Hxmi(YKHO):\n return YKHO._email_address",
"def Hxmi(YKHO):\n return YKHO._email_address",
"def RC0X(YKHO):\n CBIr = getattr(YKHO, YKHO.USER_FIELD)\n return CBIr.get_email()",
"def D3... | [
"0.8808005",
"0.8786741",
"0.8786741",
"0.8786741",
"0.8752703",
"0.874234",
"0.87101036",
"0.8689014",
"0.86718804",
"0.86718804",
"0.8644391",
"0.85986346",
"0.8536081",
"0.85296255",
"0.84114933",
"0.84114933",
"0.84114933",
"0.8344098",
"0.8313182",
"0.8252883",
"0.825288... | 0.7537606 | 90 |
The first name for this user. | def c9ua(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'first_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9ua(YKHO):\n return YKHO.user.first_name",
"def c9ua(YKHO):\n return YKHO.user.first_name",
"def c9ua(YKHO) -> str:\n return qe4Y.get(YKHO, 'first_name')",
"def TLPb(YKHO):\n return YKHO.user_display_name().split(' ')[0]",
"def c9ua(YKHO) -> str:\n return YKHO.name.title()",
"def c9ua... | [
"0.917771",
"0.917771",
"0.90107775",
"0.8981472",
"0.8918069",
"0.88922536",
"0.88542014",
"0.8844846",
"0.8844846",
"0.8844846",
"0.8844846",
"0.8844846",
"0.8844846",
"0.88422406",
"0.87981546",
"0.87782276",
"0.87731177",
"0.8752822",
"0.8752822",
"0.8752822",
"0.8752822"... | 0.82551444 | 37 |
The last name for this user. | def zp3f(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'last_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zp3f(YKHO):\n return YKHO.user.last_name",
"def zp3f(YKHO):\n return YKHO.user.last_name",
"def zp3f(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_name')",
"def zp3f(YKHO, KAOR):\n return KAOR.user.last_name",
"def XT3O(YKHO):\n return YKHO._end_user_last_name",
"def CCKR(YKHO) -> str:\n... | [
"0.93643427",
"0.93643427",
"0.9085584",
"0.90691257",
"0.90603095",
"0.9035298",
"0.9000844",
"0.8982034",
"0.8982034",
"0.8982034",
"0.8982034",
"0.8982034",
"0.89623696",
"0.895727",
"0.89572555",
"0.89465994",
"0.89465994",
"0.89465994",
"0.89465994",
"0.89465994",
"0.894... | 0.8467295 | 35 |
The password associated with this user. | def jTXt(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'password') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTXt(YKHO):\n return YKHO.api.get_password_fields(YKHO)['Password']",
"def jTXt(YKHO):\n return YKHO._password",
"def jTXt(YKHO) -> str:\n return YKHO._password",
"def jTXt(YKHO):\n if hasattr(YKHO, '_password'):\n return YKHO._password\n raise AttributeError(\"'User' object does no... | [
"0.90394396",
"0.8961586",
"0.891357",
"0.8905201",
"0.8900099",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"... | 0.7954759 | 86 |
The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created. | def TRLE(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resour... | [
"0.7610486",
"0.7610486",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
"0.73667324",
... | 0.72343713 | 76 |
The state of this user. Possible values are `active`, `blocked` and `pending`. | def QTBn(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vp5J(YKHO):\n OqHx = YKHO.UserSlot.get_user_state_slot()\n return OqHx",
"def QTBn(YKHO):\n return YKHO.status",
"def jGRS(YKHO):\n return YKHO._status if 'status' in YKHO._user_dat else 0",
"def ja6o(YKHO):\n return YKHO.status.state",
"def jGRS(YKHO):\n return YKHO.state",
"def jG... | [
"0.7475028",
"0.71165144",
"0.70676094",
"0.69464695",
"0.68494046",
"0.68494046",
"0.6785537",
"0.6784891",
"0.6770901",
"0.6666834",
"0.6666826",
"0.66188884",
"0.6614917",
"0.6585107",
"0.65755934",
"0.657233",
"0.6552403",
"0.6547",
"0.64889455",
"0.64889455",
"0.64889455... | 0.0 | -1 |
Get an existing User resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, s2Jc: Optional[pulumi.Input[str]]=None, Jm5q: Optional[pulumi.Input[str]]=None, D3lj: Optional[pulumi.Input[str]]=None, c9ua: Optional[pulumi.Input[str]]=None, zp3f: Optional[pulumi.Input[str]]=None, fytP: Optional[pulumi.Input[str]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBvP(uJjO: str=None) -> WsL5.Response:\n if uJjO is not None:\n CBIr = mv1M.get_by_id(uJjO)\n else:\n CBIr = WsL5.g.user\n if isinstance(CBIr, mv1M):\n QTBn = ZvmY.get_or_create_by_user(CBIr)\n return BfDw.json_response({'state': QTBn.to_dict()})\n else:\n WsL5.ab... | [
"0.6072895",
"0.59602857",
"0.58759063",
"0.58553255",
"0.5853279",
"0.5849335",
"0.5847",
"0.5846421",
"0.5835613",
"0.5828832",
"0.57683617",
"0.57681066",
"0.5716379",
"0.5661065",
"0.5650974",
"0.56490475",
"0.56420976",
"0.5634412",
"0.5634412",
"0.56328535",
"0.56328535... | 0.6870445 | 0 |
The email address associated with this user. | def D3lj(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'email') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO):\n return YKHO._user_dat['email']",
"def Hxmi(YKHO):\n return YKHO._email_address",
"def Hxmi(YKHO):\n return YKHO._email_address",
"def Hxmi(YKHO):\n return YKHO._email_address",
"def RC0X(YKHO):\n CBIr = getattr(YKHO, YKHO.USER_FIELD)\n return CBIr.get_email()",
"def D3... | [
"0.88084435",
"0.8784996",
"0.8784996",
"0.8784996",
"0.87540543",
"0.8743451",
"0.8708444",
"0.86877173",
"0.86730605",
"0.86730605",
"0.8645194",
"0.86003983",
"0.85374624",
"0.85285753",
"0.8411093",
"0.8411093",
"0.8411093",
"0.8344281",
"0.83129656",
"0.8252864",
"0.8252... | 0.0 | -1 |
The first name for this user. | def c9ua(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'first_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9ua(YKHO):\n return YKHO.user.first_name",
"def c9ua(YKHO):\n return YKHO.user.first_name",
"def c9ua(YKHO) -> str:\n return qe4Y.get(YKHO, 'first_name')",
"def TLPb(YKHO):\n return YKHO.user_display_name().split(' ')[0]",
"def c9ua(YKHO) -> str:\n return YKHO.name.title()",
"def c9ua... | [
"0.9177951",
"0.9177951",
"0.90110356",
"0.89821476",
"0.8918448",
"0.88920945",
"0.8854149",
"0.8845249",
"0.8845249",
"0.8845249",
"0.8845249",
"0.8845249",
"0.8845249",
"0.8842569",
"0.87982965",
"0.8778595",
"0.87736756",
"0.87531924",
"0.87531924",
"0.87531924",
"0.87531... | 0.8444308 | 31 |
The last name for this user. | def zp3f(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'last_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zp3f(YKHO):\n return YKHO.user.last_name",
"def zp3f(YKHO):\n return YKHO.user.last_name",
"def zp3f(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_name')",
"def zp3f(YKHO, KAOR):\n return KAOR.user.last_name",
"def XT3O(YKHO):\n return YKHO._end_user_last_name",
"def CCKR(YKHO) -> str:\n... | [
"0.93643427",
"0.93643427",
"0.9085584",
"0.90691257",
"0.90603095",
"0.9035298",
"0.9000844",
"0.8982034",
"0.8982034",
"0.8982034",
"0.8982034",
"0.8982034",
"0.89623696",
"0.895727",
"0.89572555",
"0.89465994",
"0.89465994",
"0.89465994",
"0.89465994",
"0.89465994",
"0.894... | 0.8645064 | 26 |
The password associated with this user. | def jTXt(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'password') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTXt(YKHO):\n return YKHO.api.get_password_fields(YKHO)['Password']",
"def jTXt(YKHO):\n return YKHO._password",
"def jTXt(YKHO) -> str:\n return YKHO._password",
"def jTXt(YKHO):\n if hasattr(YKHO, '_password'):\n return YKHO._password\n raise AttributeError(\"'User' object does no... | [
"0.90394396",
"0.8961586",
"0.891357",
"0.8905201",
"0.8900099",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"0.8900095",
"... | 0.8290752 | 62 |
The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created. | def TRLE(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resour... | [
"0.7613369",
"0.7613369",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
"0.73694044",
... | 0.0 | -1 |
The state of this user. Possible values are `active`, `blocked` and `pending`. | def QTBn(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vp5J(YKHO):\n OqHx = YKHO.UserSlot.get_user_state_slot()\n return OqHx",
"def QTBn(YKHO):\n return YKHO.status",
"def jGRS(YKHO):\n return YKHO._status if 'status' in YKHO._user_dat else 0",
"def ja6o(YKHO):\n return YKHO.status.state",
"def jGRS(YKHO):\n return YKHO.state",
"def jG... | [
"0.7475028",
"0.71165144",
"0.70676094",
"0.69464695",
"0.68494046",
"0.68494046",
"0.6785537",
"0.6784891",
"0.6770901",
"0.6666834",
"0.6666826",
"0.66188884",
"0.6614917",
"0.6585107",
"0.65755934",
"0.657233",
"0.6552403",
"0.6547",
"0.64889455",
"0.64889455",
"0.64889455... | 0.0 | -1 |
Return a DaosPerfCommand object as a string. | def zAg0(YKHO):
NArs = []
for BWXx in YKHO.__dict__.values():
depL = str(BWXx)
if depL != '':
NArs.append(depL)
return ' '.join(['daos_perf'] + sorted(NArs)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.cmd)",
"def zAg0(YKHO):\n return str(YKHO.cmd)",
"def zAg0(YKHO):\n return '{}'.format(YKHO.command)",
"def SFhb(YKHO):\n HCmI = YKHO.cmd_kind\n if YKHO.options:\n HCmI = '{} {} {}'.format(HCmI, YKHO.options, YKHO.path)\n else:\n HCmI = '{} {}... | [
"0.70278805",
"0.70278805",
"0.67196745",
"0.664519",
"0.6628071",
"0.6482103",
"0.64378774",
"0.64356047",
"0.6407417",
"0.6394358",
"0.63798803",
"0.63687414",
"0.6322572",
"0.63102394",
"0.6266508",
"0.62522376",
"0.6249423",
"0.62430143",
"0.6237945",
"0.6207063",
"0.6174... | 0.686915 | 2 |
test that you can override columns which contain foreign keys to other reflected tables, where the foreign key column is also a primary key column | def _nuM(YKHO):
e5kH = PnAT(kO5c.db)
DW23 = TQJD('users', e5kH, OciN('id', zllO, primary_key=True), OciN('name', FgBH(30)))
KYrJ = TQJD('addresses', e5kH, OciN('id', zllO, primary_key=True), OciN('street', FgBH(30)))
e5kH.create_all()
try:
F38U = PnAT(kO5c.db)
pHXX = TQJD('addresses'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SplC(YKHO):\n e5kH = PnAT(kO5c.db)\n DW23 = TQJD('users', e5kH, OciN('id', zllO, primary_key=True), OciN('name', FgBH(30)), test_needs_fk=True)\n KYrJ = TQJD('addresses', e5kH, OciN('id', zllO, primary_key=True), OciN('user_id', zllO, w4Cq('users.id')), test_needs_fk=True)\n e5kH.create_all()\n ... | [
"0.75104773",
"0.7360675",
"0.7057779",
"0.70045614",
"0.69419795",
"0.6933091",
"0.692317",
"0.6691135",
"0.6674884",
"0.6645224",
"0.6600017",
"0.644708",
"0.6444912",
"0.64304787",
"0.6404861",
"0.63638395",
"0.63608813",
"0.63337153",
"0.63081545",
"0.6265254",
"0.6226285... | 0.75032693 | 1 |
test that you can override columns and create new foreign keys to other reflected tables which have no foreign keys. this is common with MySQL MyISAM tables. | def PhCu(YKHO):
e5kH = PnAT(kO5c.db)
DW23 = TQJD('users', e5kH, OciN('id', zllO, primary_key=True), OciN('name', FgBH(30)))
KYrJ = TQJD('addresses', e5kH, OciN('id', zllO, primary_key=True), OciN('street', FgBH(30)), OciN('user_id', zllO))
e5kH.create_all()
try:
F38U = PnAT(kO5c.db)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SplC(YKHO):\n e5kH = PnAT(kO5c.db)\n DW23 = TQJD('users', e5kH, OciN('id', zllO, primary_key=True), OciN('name', FgBH(30)), test_needs_fk=True)\n KYrJ = TQJD('addresses', e5kH, OciN('id', zllO, primary_key=True), OciN('user_id', zllO, w4Cq('users.id')), test_needs_fk=True)\n e5kH.create_all()\n ... | [
"0.7650124",
"0.72785926",
"0.6862107",
"0.68592083",
"0.6804505",
"0.67870855",
"0.67800915",
"0.67469263",
"0.6643215",
"0.6489362",
"0.6453449",
"0.64068",
"0.6399244",
"0.63703656",
"0.6306953",
"0.6301636",
"0.6299821",
"0.6290791",
"0.6267153",
"0.616922",
"0.6143398",
... | 0.7676396 | 0 |
test that you can override columns and specify new foreign keys to other reflected tables, on columns which do already have that foreign key, and that the FK is not duped. | def SplC(YKHO):
e5kH = PnAT(kO5c.db)
DW23 = TQJD('users', e5kH, OciN('id', zllO, primary_key=True), OciN('name', FgBH(30)), test_needs_fk=True)
KYrJ = TQJD('addresses', e5kH, OciN('id', zllO, primary_key=True), OciN('user_id', zllO, w4Cq('users.id')), test_needs_fk=True)
e5kH.create_all()
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PhCu(YKHO):\n e5kH = PnAT(kO5c.db)\n DW23 = TQJD('users', e5kH, OciN('id', zllO, primary_key=True), OciN('name', FgBH(30)))\n KYrJ = TQJD('addresses', e5kH, OciN('id', zllO, primary_key=True), OciN('street', FgBH(30)), OciN('user_id', zllO))\n e5kH.create_all()\n try:\n F38U = PnAT(kO5c.d... | [
"0.7259896",
"0.7155011",
"0.70636755",
"0.69981533",
"0.6804822",
"0.6801789",
"0.6717217",
"0.66829723",
"0.6613463",
"0.6551942",
"0.6503299",
"0.64777064",
"0.6469667",
"0.6389276",
"0.6343265",
"0.6321593",
"0.6265278",
"0.6241394",
"0.624064",
"0.62080884",
"0.6205477",... | 0.76616335 | 0 |
Checks that the relative_to_absolute_times function works correctly for some mido MetaMessages. | def zSfo(YKHO):
Q_ZE = YKHO.mtn.relative_to_absolute_times(YKHO.mido_messages)
Q_ZE = [r8hN.time for r8hN in Q_ZE]
YKHO.assertEqual(Q_ZE, YKHO.abs_times) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cuql(YKHO):\n UAju = False\n for YRbF, P6bq in enumerate(YKHO.utterances):\n NVaR = float(P6bq[f'start_string'].split(':')[0]) * 60 + float(P6bq[f'start_string'].split(':')[1])\n if abs(P6bq['start'] - NVaR) > 0.05:\n print(f'{YRbF} incorrect start: {P6bq['start']} - ({NVaR})')\n... | [
"0.6702452",
"0.6441163",
"0.6408305",
"0.62429345",
"0.60613704",
"0.6023466",
"0.5909389",
"0.586946",
"0.57856786",
"0.5776054",
"0.57753545",
"0.5738964",
"0.5735085",
"0.57015896",
"0.5686399",
"0.5685646",
"0.5667019",
"0.565285",
"0.5650188",
"0.5649905",
"0.56478614",... | 0.8539467 | 0 |
This API lists all the crypto currencies lastest information | def list():
AwKv = QePW.args.get('sort_by', 'percentage')
s1HA = QePW.args.get('sort_order', -1, type=int)
xDcj = [{'$sort': {'datetime': -1}}, {'$group': {'_id': '$symbol', 'docs': {'$push': '$$ROOT'}}}]
N1p7 = MIY9.perform_aggregation(xDcj, txuS, p1VU)
J2us = []
for YEnM in N1p7:
ETu_ ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mCEK(YKHO):\n return YKHO._query_api(fn_dict={JCgs: 'market/currencies'})",
"def mCEK(OaeV):\n nNXP = RpLn(OaeV.obj['KEY'], OaeV.obj['country'], OaeV.obj['currency'], OaeV.obj['locale'])\n geh0 = nNXP.con().get_currencies()\n nNXP.log_json_response(geh0)",
"def mCEK(YKHO):\n return YKHO.get_... | [
"0.6707621",
"0.6706507",
"0.66699606",
"0.66569215",
"0.66558725",
"0.65057224",
"0.650105",
"0.650105",
"0.6486033",
"0.640224",
"0.63904476",
"0.6363332",
"0.6324636",
"0.63159066",
"0.62931347",
"0.6271365",
"0.6255329",
"0.6249584",
"0.61906505",
"0.61888784",
"0.6167145... | 0.0 | -1 |
Delete item at the tail of the list | def Qeks(YKHO) -> None:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def inX4(YKHO):\n if YKHO.head is None:\n print('List is empty!')\n return False\n elif YKHO.head == YKHO.tail:\n ZfUD = YKHO.tail\n YKHO.head = YKHO.tail = None\n YKHO.length -= 1\n return ZfUD.value\n else:\n ZfUD = YKHO.tail\n YKHO.tail = YKHO.tai... | [
"0.7959509",
"0.79558283",
"0.78705066",
"0.7773643",
"0.75680536",
"0.7426586",
"0.73876125",
"0.73677737",
"0.72969425",
"0.72884506",
"0.7154221",
"0.7116857",
"0.71061784",
"0.7029964",
"0.69698477",
"0.69604355",
"0.69351643",
"0.6904236",
"0.6895808",
"0.6862861",
"0.68... | 0.0 | -1 |
Return list of text from BeautifulSoup object | def q9oV(tQrw):
nRh3 = tQrw.find_all('br')
if not nRh3:
return [tQrw.get_text(strip=True).replace('\n', '')]
ZPAo = []
ZPAo.append(str(nRh3[0].previous_sibling).replace('\n', ''))
for UBDg in nRh3:
ZPAo.append(str(UBDg.next_sibling).replace('\n', ''))
return ZPAo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RSEA(_R2e):\n Z9JV = rKuS(_R2e)\n hGN5 = []\n ygC8 = Z9JV.findAll('p')\n for TZ9E in ygC8:\n k_Ci = TZ9E.findAll('span')\n jbXL = ''\n for fwpv in k_Ci:\n jbXL += fwpv.string.replace(' ', '').replace('\\n', '')\n hGN5.append(jbXL)\n return hGN5",
"de... | [
"0.7767655",
"0.7646847",
"0.73430103",
"0.7303065",
"0.7246722",
"0.7178634",
"0.7108981",
"0.70911604",
"0.70799804",
"0.7059658",
"0.69851285",
"0.69733995",
"0.6928559",
"0.6918836",
"0.6915628",
"0.68802005",
"0.6858215",
"0.6854578",
"0.68367875",
"0.6834512",
"0.677643... | 0.67134136 | 31 |
Returns true if grayscale volume and label volume are the same dimensions | def EPk8(YKHO):
if not YKHO.grayscaleNode or not YKHO.labelNode:
return False
if not YKHO.grayscaleNode.GetImageData() or not YKHO.labelNode.GetImageData():
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Np7m(kauQ, _YGI):\n IMtw, emW1 = kauQ.shape\n wugx, q5me = _YGI.shape\n return IMtw == wugx and emW1 == q5me",
"def JcGa(*KtUy):\n d2Gy = True\n gpn3 = KtUy[0].shape[:3]\n for qjHC in KtUy[1:]:\n d2Gy &= gpn3 == qjHC.shape[:3]\n return d2Gy",
"def e6Ha(YKHO):\n if YKHO.source... | [
"0.6648831",
"0.653972",
"0.6360404",
"0.63534844",
"0.6338339",
"0.6230743",
"0.6195719",
"0.6188842",
"0.6160062",
"0.6093097",
"0.6091209",
"0.60445786",
"0.5972824",
"0.59651035",
"0.59594345",
"0.5951935",
"0.5910171",
"0.58918816",
"0.58811563",
"0.587334",
"0.58432776"... | 0.7470523 | 0 |
Evaluate whether a user with given attributes has access to a feature. Right now, multivariate configuration is not supported, so boolean would suffice. so, only a boolean should suffice. | def b7La(pXDA: typing.Dict, emmj: FeatureDefinition, MJx_: SegmentDefinition=None):
if emmj.global_status == sytD.GA:
return True
if emmj.global_status == sytD.STAFF and MJx_:
if JtjV(pXDA, MJx_):
return True
for hTWD in emmj.enabled_for_segments:
if JtjV(pXDA, hTWD):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def grfv(YKHO):\n return YKHO._user_has_access()",
"def grfv(YKHO):\n return YKHO._user_has_access()",
"def tTee(YKHO, CBIr, UXO9, *qIxc):\n if CBIr.is_anonymous or CBIr.is_client:\n return False\n if CBIr.is_administrator:\n return True\n if CBIr.is_manager:\n return True\n... | [
"0.65017927",
"0.65017927",
"0.64986986",
"0.6459388",
"0.6426365",
"0.6279154",
"0.6251377",
"0.6246857",
"0.6208634",
"0.6200908",
"0.6164009",
"0.6139992",
"0.61380076",
"0.60997796",
"0.60866994",
"0.60131705",
"0.60107696",
"0.5993235",
"0.5982972",
"0.5929577",
"0.59165... | 0.68532366 | 0 |
Return the shape of the user features matrix. Returns | def sAaL(YKHO):
return (len(YKHO._user_id_mapping), len(YKHO._user_feature_mapping)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HuBA(YKHO):\n return YKHO._train.features.shape[1:]",
"def eeCj(YKHO):\n return YKHO.X_train[0].shape",
"def bySB(YKHO) -> int:\n return YKHO[0][0].shape[1]",
"def ROaS(YKHO):\n return YKHO.shape[0]",
"def ROaS(YKHO):\n return YKHO.shape[0]",
"def a3CE(YKHO) -> tuple:\n raise NotImp... | [
"0.8124247",
"0.78259164",
"0.7104979",
"0.6912599",
"0.6912599",
"0.6893703",
"0.68615913",
"0.6821211",
"0.676645",
"0.6719637",
"0.6708403",
"0.6705843",
"0.6665257",
"0.66496503",
"0.6608568",
"0.6604504",
"0.6603226",
"0.65871024",
"0.65860647",
"0.6579362",
"0.6579362",... | 0.84682447 | 0 |
Video streaming generator function. | def eK5b(yDvq):
while True:
f4IJ = yDvq.get_frame()
yield (b'--frame\r\nContent-Type: image/jpeg\r\n\r\n' + f4IJ + b'\r\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LNm5(R72Z):\n e5kH = False\n while True:\n if not e5kH:\n yield b'<meta http-equiv=\"refresh\" content=\"300\">\\n'\n e5kH = True\n else:\n tO9_ = R72Z.poll()\n if tO9_ is not None:\n yield (b'--frame\\r\\n' + b'Content-Type: image/... | [
"0.72318304",
"0.72217125",
"0.7202193",
"0.7199314",
"0.71750987",
"0.70998365",
"0.70878965",
"0.7068008",
"0.7030866",
"0.69874614",
"0.69693893",
"0.69512975",
"0.69257456",
"0.6923195",
"0.6923195",
"0.690304",
"0.6903035",
"0.6878873",
"0.68674815",
"0.6864852",
"0.6840... | 0.0 | -1 |
compare fetch metric data to availabe so far highest data, if fetched data greater than available so far highest return newSoFarHigh obj else false | def Ya2O(_v5u: pd.DataFrame, ClB9: pd.DataFrame) -> acO5 or bool:
if round(_v5u['VALUE'][0], 2) > ClB9['SOFAR_HIGHEST'][0]:
LXAS = [('PSP_DB', ClB9['METRIC_NAME'][0], float(_v5u['VALUE'][0]), str(_v5u['DATE_KEY'][0]), float(ClB9['SOFAR_HIGHEST'][0]), str(ClB9['SOFAR_HIGHEST_TIMESTAMP'][0]))]
MWWn = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ey30(oZiv: pd.DataFrame, az92: pd.DataFrame) -> acO5 or bool:\n if round(oZiv['maxValue'][0], 2) > az92['SOFAR_HIGHEST'][0]:\n LXAS = [('SCADA_API', az92['METRIC_NAME'][0], float(oZiv['maxValue'][0]), str(oZiv['timestamp'][0]), float(az92['SOFAR_HIGHEST'][0]), str(az92['SOFAR_HIGHEST_TIMESTAMP'][0]))... | [
"0.70165074",
"0.61660296",
"0.6159437",
"0.59557235",
"0.59431607",
"0.5922303",
"0.5889271",
"0.5888139",
"0.5881701",
"0.5860652",
"0.5850945",
"0.5847839",
"0.5847839",
"0.5845307",
"0.5845307",
"0.5845307",
"0.58049065",
"0.58003247",
"0.5780573",
"0.57693475",
"0.575174... | 0.6599827 | 1 |
Function to split a review into parsed sentences. Returns a list of sentences, where each sentence is a list of words | def twey(Slbv, b0j5, aUcs=False):
wZeq = b0j5.tokenize(Slbv.decode('utf8').strip())
Rhv4 = []
for aWSQ in wZeq:
if len(aWSQ) > 0:
Rhv4.append(cfuW(aWSQ, aUcs))
return Rhv4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yHs_(Slbv, aUcs=False):\n Dhdw.download('punkt')\n b0j5 = Dhdw.data.load('tokenizers/punkt/english.pickle')\n wZeq = b0j5.tokenize(Slbv.strip())\n Rhv4 = []\n for aWSQ in wZeq:\n if len(aWSQ) > 0:\n Rhv4.append(NaK2(aWSQ, aUcs))\n return Rhv4",
"def yHs_(Slbv, b0j5, aUcs=F... | [
"0.8042066",
"0.80250466",
"0.7797365",
"0.7410256",
"0.7165478",
"0.7164607",
"0.71122646",
"0.70942396",
"0.70410365",
"0.7029488",
"0.69627684",
"0.69574344",
"0.69463223",
"0.6937839",
"0.68834955",
"0.68761456",
"0.68433845",
"0.68324393",
"0.6802584",
"0.6802584",
"0.67... | 0.7717132 | 3 |
Returns a storage backend instance, given a config. "config" is a mapping, containing the configuration. All keys that starts with "auth." are used in the function. "storage.backend" must be present and contain a fully qualified name of a backend class to be used, or the name of any backend synccore provides. "sql" or ... | def lvCQ(GPtr):
return AjS0.get_from_config(GPtr, 'storage') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AmSV(vi5m):\n if vi5m['backend'] == 'numpy':\n return RouV\n elif vi5m['backend'] == 'mongo':\n return deEZ\n elif vi5m['backend'] == 'null':\n return aPGu\n else:\n raise NameError('Unknown storage backend requested: ' + vi5m['backend'])",
"def JLXL(e9qv, nqEK=n6de):\... | [
"0.72858465",
"0.69419926",
"0.65839565",
"0.64959013",
"0.6471226",
"0.646027",
"0.634765",
"0.62845016",
"0.6245676",
"0.61978155",
"0.619424",
"0.6108783",
"0.59906775",
"0.5979949",
"0.59746015",
"0.59513706",
"0.5923217",
"0.5919802",
"0.590295",
"0.5897072",
"0.5849179"... | 0.7218999 | 1 |
Checks if a user has permission to be assigned to an issue in this repository. | def UnnX(Emd4, qsJ6: str, boHx: str, a9OA: str):
Emd4._call('repos/{owner}/{repo}/assignees/{assignee}'.format(owner=qsJ6, repo=boHx, assignee=a9OA)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d0C1(YKHO, CBIr):\n return M1EP(CBIr, 'assignments.can_see')",
"def XFLq(YKHO, CBIr):\n return YKHO.projectuser_set.filter(user=CBIr, permission_id__in=nunW.admin_permission()).count() > 0",
"def Desw(CBIr, YXSb):\n if CBIr.is_superuser or CBIr.groups.filter(name=ew5p).exists():\n return\n ... | [
"0.7681185",
"0.7217223",
"0.7068003",
"0.70155126",
"0.6970193",
"0.67946255",
"0.6754256",
"0.67359096",
"0.6680595",
"0.66753876",
"0.66736037",
"0.6671756",
"0.6620731",
"0.66093946",
"0.6592509",
"0.658927",
"0.658763",
"0.6569583",
"0.65069956",
"0.64969033",
"0.6488007... | 0.0 | -1 |
Checks if a user has permission to be assigned to an issue in this repository. | def kA45(YKHO, a9OA: str):
qsJ6, mWFP = YKHO.full_name.split('/')
return YKHO.check_assignee_by_name(qsJ6, mWFP, a9OA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d0C1(YKHO, CBIr):\n return M1EP(CBIr, 'assignments.can_see')",
"def XFLq(YKHO, CBIr):\n return YKHO.projectuser_set.filter(user=CBIr, permission_id__in=nunW.admin_permission()).count() > 0",
"def Desw(CBIr, YXSb):\n if CBIr.is_superuser or CBIr.groups.filter(name=ew5p).exists():\n return\n ... | [
"0.7681185",
"0.7217223",
"0.7068003",
"0.70155126",
"0.6970193",
"0.67946255",
"0.6754256",
"0.67359096",
"0.6680595",
"0.66753876",
"0.66736037",
"0.6671756",
"0.6620731",
"0.66093946",
"0.6592509",
"0.658927",
"0.658763",
"0.6569583",
"0.65069956",
"0.64969033",
"0.6488007... | 0.0 | -1 |
This method returns the contents of the repository's license file, if one is detected. | def Hm28(Emd4, qsJ6: str, boHx: str):
geh0, bGrB = Emd4._call('/repos/{owner}/{repo}/license'.format(owner=qsJ6, repo=boHx), method='GET')
return fVaT.from_response(geh0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO):\n with YKHO.open(YKHO._license) as eHNT:\n return eHNT.read()",
"def R4oP(YKHO):\n return YKHO._read_release_file('LICENSE.txt')",
"def rfHX(YKHO):\n if YKHO._licenseFile:\n return YKHO._licenseFile\n elif YKHO._license:\n eHNT = VX5F.resources.find('licenses... | [
"0.80583453",
"0.7967222",
"0.78165585",
"0.73797506",
"0.7118579",
"0.71172893",
"0.7109598",
"0.7087184",
"0.7042357",
"0.7010913",
"0.7010913",
"0.6938239",
"0.6926781",
"0.69217896",
"0.6841742",
"0.6830384",
"0.6794999",
"0.6788271",
"0.6788271",
"0.6744927",
"0.6739264"... | 0.6079887 | 69 |