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 |
|---|---|---|---|---|---|---|
Particle Simulator class initializer. | def FIMM(YKHO, BZ33):
YKHO.particles = BZ33 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, il4J):\n YKHO.par = il4J",
"def LhKz(YKHO):\n YKHO.Particles = oyIN.random.uniform(0, 1, (YKHO.Npar, YKHO.K))\n return None",
"def FIMM(YKHO, e82P, yOur, FNdN, wADC, TMrS, jk7d):\n YKHO.p1 = HnbY(e82P, FNdN)\n YKHO.p2 = HnbY(yOur, wADC)\n YKHO.k = TMrS\n YKHO.L0 = jk7d",
"... | [
"0.75888294",
"0.71007025",
"0.70766026",
"0.70633173",
"0.6970787",
"0.69264394",
"0.68790823",
"0.681414",
"0.6796707",
"0.6731174",
"0.67066044",
"0.6701006",
"0.66263753",
"0.6609181",
"0.6585009",
"0.6580443",
"0.65549845",
"0.6544572",
"0.6502128",
"0.6500652",
"0.64466... | 0.7820965 | 0 |
Custom initializer closure for visualizer function. | def E14P():
zFiD.set_data([], [])
return (zFiD,) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AhaP(YKHO) -> None:\n pass",
"def Q579(YKHO):\n pass",
"def Q579(YKHO):\n pass",
"def FIMM(YKHO, gsMI, Op6n, input, Cwt5=0.01):\n mK8Y.__init__(YKHO, gsMI, Op6n, input)\n YKHO.alpha = Cwt5",
"def FIMM(YKHO, __n6: ds.Dataset, gCuF):\n YKHO.dataset = __n6\n YKHO.settings = gCuF\n ... | [
"0.702511",
"0.6954049",
"0.6954049",
"0.66605836",
"0.6644008",
"0.6615155",
"0.6610074",
"0.65134645",
"0.6408052",
"0.6371969",
"0.6239919",
"0.6182451",
"0.61585945",
"0.60655004",
"0.6060406",
"0.6023605",
"0.6008714",
"0.59871906",
"0.59633356",
"0.59622073",
"0.5938787... | 0.0 | -1 |
Compare two types If types are sorted they are sorted first by level and then by name. | def Aicm(YKHO, Elif):
if isinstance(Elif, yrbA):
return eHkp(YKHO.level, Elif.level) or eHkp(YKHO.name, Elif.name)
else:
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ECq2(YKHO, WKvO, LVAh):\n NYyF, Yqag = WKvO\n VYpf, AgRN = LVAh\n if (isinstance(Yqag, uPxI.Map) or isinstance(Yqag, uPxI.List)) and (isinstance(AgRN, uPxI.Map) or isinstance(AgRN, uPxI.List)):\n return (NYyF > VYpf) - (NYyF < VYpf)\n if isinstance(Yqag, uPxI.Map) or isinstance(Yqag, uPxI.Li... | [
"0.70591813",
"0.6644227",
"0.6600623",
"0.6123862",
"0.6116717",
"0.61091506",
"0.6001275",
"0.59808797",
"0.59322023",
"0.5888874",
"0.5815527",
"0.57383543",
"0.57324827",
"0.5702648",
"0.5655841",
"0.5655841",
"0.5607537",
"0.55173254",
"0.55121386",
"0.5468389",
"0.54185... | 0.76405925 | 0 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
Z31E = cmPJ.get('accountId')
Wic1 = cmPJ.get('conferenceId')
mWFP = cmPJ.get('name')
EY8B = cmPJ.get('recordingId')
WbTE = cmPJ.get('duration')
xMux = cmPJ.get('channels')
SWox = fPb2.RFC3339DateTime.from_value(cmPJ.get('startTim... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Em... | [
"0.83181584",
"0.8168118",
"0.8168118",
"0.8118749",
"0.8089047",
"0.79787344",
"0.7949278",
"0.79231393",
"0.7898951",
"0.78923255",
"0.788838",
"0.7882321",
"0.7882212",
"0.7876749",
"0.78585315",
"0.7836853",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",
"0.7801407",... | 0.0 | -1 |
Constructs user's full name. | def eHMM(YKHO) -> str:
mWFP = f'{YKHO.last_name} {YKHO.first_name}'
if YKHO.middle_name:
mWFP += ' ' + YKHO.middle_name
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHMM(YKHO):\n return '{} {}'.format(YKHO.user.first_name, YKHO.user.last_name)",
"def IQH1(YKHO):\n eHMM = f'{YKHO.f_name} {YKHO.l_name}'\n return eHMM",
"def xpqj(YKHO):\n eHMM = f'{YKHO.first_name} {YKHO.last_name}' if YKHO.first_name and YKHO.last_name else YKHO.username\n return eHMM.str... | [
"0.84534734",
"0.83821994",
"0.83503187",
"0.8320419",
"0.8045144",
"0.80098945",
"0.7976398",
"0.7968557",
"0.78517073",
"0.7833827",
"0.7833827",
"0.7833827",
"0.7796572",
"0.7757046",
"0.7757046",
"0.77559483",
"0.77527565",
"0.77037877",
"0.7700808",
"0.7700808",
"0.76985... | 0.7604106 | 61 |
Constructs user's short name (without patronymic). | def h85P(YKHO) -> str:
return f'{YKHO.last_name} {YKHO.first_name}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dsRp(YKHO):\n return f'{YKHO.first_name} {YKHO.last_name[:1]}' if YKHO.first_name else YKHO.username",
"def InTh(YKHO):\n return '{}. {}'.format(str(YKHO.user.first_name)[:1], YKHO.user.last_name)",
"def dsRp(YKHO):\n return YKHO.username",
"def dsRp(YKHO):\n return YKHO.username",
"def dsR... | [
"0.8210496",
"0.80097234",
"0.76470584",
"0.76470584",
"0.76470584",
"0.7540555",
"0.74721557",
"0.7376342",
"0.73590374",
"0.7336084",
"0.7305123",
"0.7291087",
"0.7291087",
"0.7291087",
"0.7291087",
"0.7291087",
"0.7291087",
"0.7291087",
"0.7291087",
"0.7291087",
"0.7291087... | 0.79778725 | 2 |
Get the amount due on the given billing cycle For regular recurring costs this is simply `fixed_amount`. For oneoff costs this is the portion of `fixed_amount` for the given billing_cycle. | def N35H(YKHO, a6yb):
if YKHO.is_one_off():
Zcl8 = YKHO._get_billing_cycle_number(a6yb)
if Zcl8 > YKHO.total_billing_cycles:
return ZjSO('0')
else:
RYsB = ZxHg(amount=YKHO.fixed_amount, ratios=[ZjSO('1')] * YKHO.total_billing_cycles)
return RYsB[Zcl8 - 1]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LRrr(YKHO):\n QCIt = 0\n RJtn = (JRYC.datetime.now() - YKHO._checkout_date).days\n MLvO = RJtn - YKHO.loantime\n if MLvO > 0:\n QCIt += MLvO * YKHO.finerate\n return QCIt",
"def oCBW(YKHO):\n woha = round(YKHO.order_payment.amount * ZjSO(0.015), 2)\n return woha",
"def Jtpl(YKHO... | [
"0.58929443",
"0.57817584",
"0.56708753",
"0.56132084",
"0.5561824",
"0.55495286",
"0.5514481",
"0.53966284",
"0.53872204",
"0.538525",
"0.53463763",
"0.53450346",
"0.53301275",
"0.5305127",
"0.5276047",
"0.5253233",
"0.5222744",
"0.5213835",
"0.5174006",
"0.5166616",
"0.5083... | 0.7624496 | 0 |
Get the total amount billed so far | def NOML(YKHO):
return Z30v.objects.filter(transaction__recurred_cost__recurring_cost=YKHO, amount__gt=0).sum_to_balance() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qBlJ(YKHO):\n return sum(YKHO.paid)",
"def S5ju() -> int:\n return Jj9K",
"def AicI(YKHO):\n g5sc = 0.0\n for vC9B in YKHO.data:\n g5sc += vC9B['debit']\n YKHO.t_credit += vC9B['credit']\n YKHO.t_balance += vC9B['balance']\n return g5sc",
"def OmMJ(YKHO):\n wjRY = 0... | [
"0.7370375",
"0.7272581",
"0.7162921",
"0.70798266",
"0.7075365",
"0.7055413",
"0.7042702",
"0.69820285",
"0.69287443",
"0.6896828",
"0.6893169",
"0.68846095",
"0.68569374",
"0.68366766",
"0.6827002",
"0.6819471",
"0.6818823",
"0.6801697",
"0.6789565",
"0.678531",
"0.6781878"... | 0.78803813 | 0 |
Has this recurring cost already enacted transactions for given billing cycle? | def wNxa(YKHO, a6yb):
return NgPv.objects.filter(recurring_cost=YKHO, billing_cycle=a6yb).exists() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O2O2(YKHO, a6yb, zURO=True):\n gX58 = a6yb.date_range.lower\n if not YKHO.is_enactable(gX58):\n raise YNQB('RecurringCost {} is unenactable.'.format(YKHO.uuid))\n if YKHO.has_enacted(a6yb):\n raise DkpF('RecurringCost cost {} already enacted for {}'.format(YKHO, a6yb))\n with DUJO.ato... | [
"0.62638986",
"0.6067549",
"0.5936081",
"0.590648",
"0.5876808",
"0.5854577",
"0.5853818",
"0.5850467",
"0.58426255",
"0.5818747",
"0.5761081",
"0.5725485",
"0.5713025",
"0.56949985",
"0.5693796",
"0.5662111",
"0.5642745",
"0.56197953",
"0.5599373",
"0.55939776",
"0.5590682",... | 0.85943073 | 0 |
Is the RecurringCost ready to be enacted as of the date `as_of` This determines if `as_of` precedes the start of `initial_billing_cycle`. If so, we should not be enacting this RecurringCost yet. | def Hp9g(YKHO, gX58):
if YKHO.is_one_off():
return YKHO.initial_billing_cycle.date_range.lower <= gX58
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wxJh(YKHO, gX58):\n if YKHO.is_one_off():\n yJ4O = YKHO.get_billing_cycles()[YKHO.total_billing_cycles - 1]\n return yJ4O.date_range.upper <= gX58\n else:\n return False",
"def VSrL(YKHO, gX58):\n return not YKHO.disabled and (not YKHO.archived) and (not YKHO._is_finished(gX58))... | [
"0.7337855",
"0.672307",
"0.6038199",
"0.58594894",
"0.58151066",
"0.57894814",
"0.5738601",
"0.57383454",
"0.5730905",
"0.5650643",
"0.56272036",
"0.5619895",
"0.5544008",
"0.55327904",
"0.545116",
"0.5443598",
"0.5400708",
"0.53757477",
"0.53706473",
"0.52968764",
"0.525970... | 0.8089435 | 0 |
Get a list of subscriptions. | def F1ax(UzPC, ekCf, V_D6=None, vgXP=0, qoqK=-1, tf1m=None):
return UzPC.get(url=f'{UzPC.base_url}/api/subscriptions', params={'offset': vgXP, 'limit': qoqK, 'fields': V_D6}, headers={'X-MSTR-ProjectID': ekCf}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def list(Emd4, **B2fa):\n geh0 = tV5k().list_subscriptions(**B2fa)\n return [Emd4(**finE) for finE in geh0['results']]",
"def VOru(YKHO):\n bD7m = '{}/v2/subscriptions'.format(YKHO.url)\n Mkmy = G4JS.get(bD7m, headers=YKHO.headers_v2)\n return Mkmy.json()",
"def VOru(YKHO):\n return YKHO.subs... | [
"0.8456876",
"0.8378425",
"0.83175546",
"0.81658775",
"0.8012425",
"0.78989965",
"0.789842",
"0.7794796",
"0.777386",
"0.77041095",
"0.76440823",
"0.7617931",
"0.7599874",
"0.7570641",
"0.7552839",
"0.7477382",
"0.7438582",
"0.73941374",
"0.7349831",
"0.73373795",
"0.7332646"... | 0.76252115 | 11 |
Asks user to specify a city, month, and day to analyze. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
j5sA = k6WC(ezvm, gysO)
CThD = k6WC(kZyv, KUnM)
if CThD == 'month':
x0eS = VIcm()
CjKC = 'all'
if CThD == 'day':
CjKC = Tln5()
x0eS = 'all'
if CThD == 'both':
x0eS, CjKC = d7mE()
if CThD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.6671077",
"0.65363395",
"0.64597565",
"0.6374352",
"0.6349016",
"0.6310872",
"0.6287443",
"0.62599736",
"0.62324905",
"0.62140554",
"0.6205851",
"0.6182028",
"0.6172251",
"0.61696005",
"0.61590976",
"0.6159067",
"0.6153877",
"0.6145122",
"0.6132135",
"0.61053854",
"0.61032... | 0.0 | -1 |
Loads data for the specified city and filter_chooseds by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name
jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour
if x0eS != 'all':
X_bn = [... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n print('\\nWe are loading the information for the selected filters.')\n SWox = ITS7.time()\n if isinstance(j5sA, list):\n jQ3Z = rLdf.concat(map(lambda j5sA: rLdf.read_csv(OerS[j5sA]), j5sA), sort=True)\n try:\n jQ3Z = jQ3Z.reindex(columns=['Unnamed: 0... | [
"0.7835897",
"0.7778312",
"0.7736864",
"0.76643765",
"0.7651178",
"0.7630762",
"0.75672865",
"0.75457704",
"0.7517885",
"0.75130033",
"0.7508841",
"0.75048673",
"0.75047255",
"0.7492502",
"0.74908274",
"0.7489766",
"0.74863905",
"0.74766",
"0.7451038",
"0.74423254",
"0.743029... | 0.74686253 | 18 |
calculate statistics(popular entry of that column and his occurrence) on the most frequent times of travel. | def GH4K(iVRZ):
Q27V = iVRZ.mode()[0]
iU1h = iVRZ.value_counts()[Q27V]
return (Q27V, iU1h) | {
"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 TeiA = jQ3Z['month'].mode()[0]\n print('\\nThe most popular month is: ', TeiA)\n _c3g = jQ3Z['day_of_week'].mode()[0]\n print('\\nThe most popular day is: ', _c3g)\n Tz2d = jQ3Z['hour'].mod... | [
"0.73891497",
"0.7268939",
"0.7255764",
"0.72360146",
"0.7229715",
"0.722763",
"0.72122437",
"0.72108567",
"0.7209101",
"0.7192253",
"0.71706414",
"0.7165746",
"0.7158084",
"0.7136184",
"0.71185875",
"0.7116348",
"0.71153706",
"0.7110789",
"0.70996636",
"0.70900434",
"0.70880... | 0.0 | -1 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z, CThD):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
sve5, Pt1C = GH4K(jQ3Z['month'])
print('The Most Popular month:{}, Counts:{},'.format(sve5, Pt1C), end=' ')
StUT, uQ7a = GH4K(jQ3Z['day_of_week'])
print('The Most Popular day:{}, Counts:{},'.fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.80234134",
"0.80223715",
"0.7914983",
"0.78252095",
"0.7820841",
"0.7812996",
"0.77644646",
"0.7739144",
"0.7734762",
"0.77328056",
"0.7685236",
"0.7667557",
"0.76502746",
"0.7643304",
"0.76385033",
"0.7635647",
"0.7623848",
"0.7622241",
"0.7611794",
"0.75985956",
"0.75820... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z, CThD):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
QQZ6, jXXp = GH4K(jQ3Z['Start Station'])
print('Start Station:{}, Counts:{},'.format(QQZ6, jXXp), end=' ')
mc2n, YENw = GH4K(jQ3Z['End Station'])
print('End Station:{}, Counts:{},'.format(mc2n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.68791133 | 89 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z, CThD):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
bJiw = jQ3Z['Trip Duration'].sum()
Z5bw = jQ3Z['Trip Duration'].size
print('Total Duration:{}, Count:{},'.format(bJiw, Z5bw), end=' ')
RB_u = jQ3Z['Trip Duration'].mean()
print('Avg Duration:{}, Filter:{}\n'.f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.8143788",
"0.8025597",
"0.8004826",
"0.7950089",
"0.7937902",
"0.79316837",
"0.7927231",
"0.7915687",
"0.7914976",
"0.79086065",
"0.79061425",
"0.79011726",
"0.7892046",
"0.7890013",
"0.7887204",
"0.7885618",
"0.7884607",
"0.78830457",
"0.7874646",
"0.78690827",
"0.7866999... | 0.0 | -1 |
breakdate takes a date as an argument in the format '1 Jan 2010' and returns a tuple of size 3 The tuple contains three integer values (day,month,year) | def mQiu(_c1T):
kUBT = ZbWC.search('(\\d+)\\s(\\w+)\\s(\\d+)', _c1T)
CjKC = 0
x0eS = ''
lO87 = 0
if not kUBT:
HwRy.stderr.write('\nError in reading date!!!\n')
HwRy.exit(1)
CjKC = int(kUBT.group(1))
x0eS = kUBT.group(2)
lO87 = int(kUBT.group(3))
x0eS = x0eS.lower()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ce4I(mbyn):\n CjKC = mbyn[:2]\n x0eS = mbyn[3:5]\n try:\n lO87 = mbyn[6:]\n except:\n lO87 = mbyn[4:]\n return (lO87, x0eS, CjKC)",
"def yqt1(BWXx):\n if not bQNc(BWXx):\n return ('', '', '')\n Beie = BWXx.split('-')\n try:\n lO87 = Beie[0]\n except Inde... | [
"0.6598065",
"0.6595321",
"0.64452714",
"0.638986",
"0.6296726",
"0.6093714",
"0.60713655",
"0.5917233",
"0.590479",
"0.58485025",
"0.5820212",
"0.5813509",
"0.5799982",
"0.57810134",
"0.57726705",
"0.57651657",
"0.5732589",
"0.5732589",
"0.5712787",
"0.57051766",
"0.5704207"... | 0.8310145 | 0 |
Return a list of slices given a window size. data twodimensional array to get slices from win_size tuple of (rows, columns) for the moving window | def GLxt(nPrm, FxOY):
usx6 = nPrm.shape[0] - FxOY[0] + 1
WfCS = nPrm.shape[1] - FxOY[1] + 1
SuPp = []
for YRbF in range(FxOY[0]):
for r845 in range(FxOY[1]):
SuPp.append(nPrm[YRbF:usx6 + YRbF, r845:WfCS + r845])
return SuPp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yfzR(WKvO, yMhW):\n tjUW, lWPh, C7Ls, XcU5, Nq1b = WKvO.shape\n WKvO = WKvO.view(tjUW, lWPh // yMhW[0], yMhW[0], C7Ls // yMhW[1], yMhW[1], XcU5 // yMhW[2], yMhW[2], Nq1b)\n w_5H = WKvO.permute(0, 1, 3, 5, 2, 4, 6, 7).contiguous().view(-1, Pusg(AdrB, yMhW), Nq1b)\n return w_5H",
"def BF25(nPrm, yM... | [
"0.7538039",
"0.7155911",
"0.6879272",
"0.68104887",
"0.6692612",
"0.6602731",
"0.6598914",
"0.64973307",
"0.6451885",
"0.64080024",
"0.6405831",
"0.64051193",
"0.63839924",
"0.6376568",
"0.634974",
"0.634974",
"0.63450885",
"0.6285897",
"0.626279",
"0.6242383",
"0.62375164",... | 0.86977434 | 0 |
Assigns an xcoordinate to Statcast's strike zone numbers. Zones 11, 12, 13, and 14 are ignored for plotting simplicity. | def YnFg(rdlD):
if rdlD.zone in [1, 4, 7]:
return 1
if rdlD.zone in [2, 5, 8]:
return 2
if rdlD.zone in [3, 6, 9]:
return 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xhV():\n for YRbF in range(0, UnlI.ground_species_count):\n Y9eM = GjHw.species_line_spacing * YRbF + 0.25\n Vc35 = Y9eM + GjHw.species_line_length\n UnlI.left_endpt.append(Y9eM)\n UnlI.right_endpt.append(Vc35)\n for YRbF in range(0, UnlI.excited_species_count):\n Y9eM... | [
"0.61098456",
"0.56125766",
"0.5489498",
"0.5334161",
"0.5327206",
"0.5234576",
"0.5234576",
"0.52221256",
"0.5189216",
"0.5147536",
"0.51472515",
"0.5142789",
"0.51419747",
"0.51378345",
"0.5114462",
"0.5104202",
"0.50998604",
"0.5098071",
"0.5095633",
"0.5068346",
"0.505800... | 0.7372651 | 0 |
Assigns a ycoordinate to Statcast's strike zone numbers. Zones 11, 12, 13, and 14 are ignored for plotting simplicity. | def _NdB(rdlD):
if rdlD.zone in [1, 2, 3]:
return 3
if rdlD.zone in [4, 5, 6]:
return 2
if rdlD.zone in [7, 8, 9]:
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vpba(Yrvv, yl4j, xAU6):\n if xAU6.xyz:\n return 2 ** yl4j - 1 - Yrvv\n else:\n return Yrvv",
"def z9NM(YKHO, BWXx):\n YKHO.position[1] = BWXx",
"def YnFg(rdlD):\n if rdlD.zone in [1, 4, 7]:\n return 1\n if rdlD.zone in [2, 5, 8]:\n return 2\n if rdlD.zone in [3... | [
"0.58096725",
"0.5772599",
"0.5701568",
"0.5568827",
"0.55686414",
"0.5506698",
"0.5461601",
"0.54573405",
"0.54444265",
"0.5427887",
"0.5427887",
"0.54022944",
"0.54022944",
"0.53814405",
"0.53696835",
"0.5353724",
"0.532635",
"0.5302157",
"0.5269206",
"0.5259502",
"0.524527... | 0.730646 | 0 |
Return 1d `np.array` with int values representing each channel [R,G,B] or [R,G,B,a] if value for transparency is present. Inverse of `get_hexcode`. | def MW0N(fVre):
assert len(fVre) in (7, 9)
assert fVre[0] == '#'
d7Eb = (fVre[1:3], fVre[3:5], fVre[5:7], fVre[7:])
d7Eb = [int(WKvO, 16) for WKvO in d7Eb if WKvO != '']
return oyIN.array(d7Eb, dtype=oyIN.uint8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S3yE(LNo8, PJWX=False):\n H2v2, TVTK = LNo8.size\n ezWE = oyIN.array(LNo8.getdata())\n ezWE = ezWE.reshape(3, H2v2, TVTK)\n Mkmy = ezWE[0]\n Oa1e = ezWE[1]\n Fg_i = ezWE[2]\n return (Mkmy, Oa1e, Fg_i)",
"def edjD(YKHO, C5WR):\n ...",
"def grcX(AgwO, IG2n):\n cCuI = AgwO.GetChanne... | [
"0.65155816",
"0.627164",
"0.6132771",
"0.60103065",
"0.6009339",
"0.6008121",
"0.59757084",
"0.59692705",
"0.5954736",
"0.5948692",
"0.5933557",
"0.59232914",
"0.5903705",
"0.5877484",
"0.58281714",
"0.5777235",
"0.57593626",
"0.57127875",
"0.57086354",
"0.56859374",
"0.5685... | 0.7070885 | 0 |
Return a list with `n` strings representing colors fading from `c1` to `c2`. | def h3Of(dg7v, iYf1, exwG):
assert exwG >= 2
VTC_ = MW0N(dg7v)
sMGd = MW0N(iYf1)
nZgm = (sMGd - VTC_) / (exwG - 1)
NXpY = [VTC_ + YRbF * nZgm for YRbF in range(exwG)]
NXpY = [AIDK(Z9rn) for Z9rn in NXpY]
assert NXpY[0] == dg7v
assert NXpY[-1] == iYf1
return NXpY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fRt4(exwG):\n qfpW = Bcwd.rainbow(oyIN.linspace(0, 1, exwG))\n return qfpW",
"def fRt4(exwG, iMGt='viridis', yKcO=0.0, JCyR=1.0, Cwt5=1.0, ZidU=False):\n Jw9H = [Bcwd.get_cmap(iMGt)(WKvO) for WKvO in oyIN.linspace(yKcO, JCyR, exwG)]\n Jw9H = [(Mkmy, Oa1e, Fg_i, Cwt5) for Mkmy, Oa1e, Fg_i, bGrB in... | [
"0.71665025",
"0.6935482",
"0.6800732",
"0.6751211",
"0.6691951",
"0.65840596",
"0.6572139",
"0.6556966",
"0.65493804",
"0.6527477",
"0.6502501",
"0.64952916",
"0.64733255",
"0.6463096",
"0.6453381",
"0.6437666",
"0.64353216",
"0.6388581",
"0.63629615",
"0.62906516",
"0.62581... | 0.7398861 | 0 |
move this item after next item | def DgzZ(YKHO):
LAF_ = YKHO.get_next_sibling()
if LAF_ != None:
YKHO.move_to(LAF_, 'right')
YKHO.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9Hr(YKHO, ZfUD):\n YKHO.sentinel.prev.insertAfter(ZfUD)\n YKHO.N += 1",
"def O3Vv(YKHO):\n KUNm = YKHO.parentNode\n d6pt = KUNm.idevices.index(YKHO)\n if d6pt < len(KUNm.idevices) - 1:\n ycBG = KUNm.idevices[d6pt + 1]\n KUNm.idevices[d6pt + 1] = YKHO\n KUNm.idevices[d6pt]... | [
"0.7450999",
"0.7043517",
"0.69421583",
"0.6860957",
"0.6615124",
"0.65495783",
"0.6376902",
"0.6291534",
"0.6253185",
"0.6218525",
"0.620817",
"0.61353517",
"0.6125515",
"0.6123651",
"0.61197364",
"0.6103677",
"0.6091351",
"0.6061233",
"0.60575217",
"0.60545427",
"0.6047014"... | 0.64396894 | 6 |
A test for comp_place_piece() | def ANRe():
iBIi = yELo(640, 640, 8)
fQo4 = dLWE(0, 0, XDQs, 0)
MGdp = dLWE(0, 0, eJVO, 0)
iBIi.start_game()
iBIi.game_pieces[3][3] = None
iBIi.game_pieces[3][4] = None
iBIi.game_pieces[4][3] = None
iBIi.game_pieces[4][4] = None
iBIi.comp_place_piece()
assert iBIi.previous_no_mov... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YSXv():\n iBIi = yELo(640, 640, 8)\n iBIi.start_game()\n iBIi.place_piece_helper(0, 0, 0, 0)\n assert len(iBIi.used_points) == 5 and iBIi.current_color == eJVO\n iBIi.place_piece_helper(1, 0, 1, 0)\n assert len(iBIi.used_points) == 6 and iBIi.current_color == XDQs",
"def pCLz():\n iBIi =... | [
"0.73258364",
"0.7318275",
"0.7045659",
"0.6381066",
"0.63451725",
"0.63388145",
"0.6309141",
"0.6254486",
"0.6159695",
"0.6143413",
"0.61164594",
"0.6076947",
"0.6012649",
"0.60118514",
"0.60051394",
"0.5989589",
"0.59660536",
"0.5957842",
"0.59540784",
"0.59512335",
"0.5949... | 0.79349536 | 0 |
Creates a new superuser | def Zp54(YKHO, D3lj, jTXt):
CBIr = YKHO.create_user(D3lj, jTXt)
CBIr.is_staff = True
CBIr.is_superuser = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvMu():\n D3lj = idDS('User E-Mail')\n JAPf = idDS('Confirm E-Mail')\n if not D3lj == JAPf:\n HwRy.exit('\\nCould not create user: E-Mail did not match')\n if not abGk.match(D3lj):\n HwRy.exit('\\nCould not create user: Invalid E-Mail addresss')\n jTXt = GgOB('User password')\n ... | [
"0.80412585",
"0.7921864",
"0.7915325",
"0.77949375",
"0.77885205",
"0.77613276",
"0.77593327",
"0.7739667",
"0.7705691",
"0.7691871",
"0.76866704",
"0.76856697",
"0.7680962",
"0.7672732",
"0.766203",
"0.76611584",
"0.7630425",
"0.7620972",
"0.7617647",
"0.7606459",
"0.760321... | 0.7623007 | 17 |
Evaluates a policy by running it n times. | def wbX_(sEAN, Qabx, KMvS=1.0, exwG=100):
cCrA = [QlUW(sEAN, Qabx, gamma=KMvS, render=False) for bGrB in range(exwG)]
return oyIN.mean(cCrA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X73w(YKHO, Dp9I, xgF6):\n RDUf = lambda mHXv: tuKI.randint(0, YKHO.nA - 1)\n mce6 = None\n WAus = 0\n FVhe = []\n while WAus < Dp9I:\n mce6 = YKHO.policy_evaluator.evaluate(policy_function=RDUf, existing_Q=mce6)\n RDUf = YKHO.epsilon_greedily_update_policy(current_Q=mce6, iteration... | [
"0.6549632",
"0.6319645",
"0.61743444",
"0.6098564",
"0.60468954",
"0.6003093",
"0.5998977",
"0.59627587",
"0.5948558",
"0.59019685",
"0.5883518",
"0.5839623",
"0.5802677",
"0.5782988",
"0.57726455",
"0.57705754",
"0.5767968",
"0.575119",
"0.5732588",
"0.5706621",
"0.57058346... | 0.66757435 | 1 |
Validates that the username is alphanumeric and is not already in use. | def lKfQ(YKHO):
nPrm = YKHO.cleaned_data['username']
if '@' in nPrm or '|' in nPrm or ' ' in nPrm or ('+' in nPrm):
raise H6V6.ValidationError(bGrB(u'Usernames should not have special characters.'))
try:
CBIr = mv1M.objects.get(username__exact=YKHO.cleaned_data['username'])
except mv1M.D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xDJH(NtEF):\n LaFN = ZbWC.sub('[^a-zA-Z-0-9]+', '', str(NtEF))\n if any((ZfUD.isalpha() for ZfUD in LaFN)):\n return False\n return True",
"def lKfQ(YKHO):\n if YKHO.edit_user is None:\n return super(f5F_, YKHO).clean_username()\n if not YKHO.cleaned_data['username'].isalnum():\n... | [
"0.8270316",
"0.8199544",
"0.81310993",
"0.80024475",
"0.795555",
"0.78986335",
"0.7823771",
"0.7818745",
"0.7801063",
"0.7748251",
"0.76987255",
"0.7676185",
"0.7672371",
"0.7657442",
"0.7611312",
"0.760858",
"0.76070887",
"0.7568461",
"0.7557298",
"0.7526015",
"0.7515451",
... | 0.7859516 | 6 |
Validates that the two password inputs match. | def _Rkm(YKHO):
if 'password1' in YKHO.cleaned_data and 'password2' in YKHO.cleaned_data:
if YKHO.cleaned_data['password1'] == YKHO.cleaned_data['password2']:
return YKHO.cleaned_data['password2']
raise H6V6.ValidationError(bGrB(u'You must type the same password each time')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EvfH(GUUE: str, tTya: str) -> bool:\n if GUUE == tTya:\n return True\n else:\n raise ValueError('Пароли не совпадают')",
"def BhJx(YKHO):\n GUUE = YKHO.cleaned_data.get('password1')\n tTya = YKHO.cleaned_data.get('password2')\n if GUUE and tTya and (GUUE != tTya):\n raise ... | [
"0.79399914",
"0.7775991",
"0.75286",
"0.751961",
"0.7506222",
"0.7504838",
"0.745747",
"0.745747",
"0.74129796",
"0.7394356",
"0.7387584",
"0.7368053",
"0.73406",
"0.73406",
"0.7324741",
"0.73213553",
"0.73095393",
"0.7277372",
"0.72607356",
"0.71904254",
"0.7186055",
"0.7... | 0.72343296 | 19 |
Validates that the supplied email address is unique for the site. | def YBiq(YKHO):
try:
CBIr = mv1M.objects.get(email__exact=YKHO.cleaned_data['email'])
except mv1M.DoesNotExist:
return YKHO.cleaned_data['email']
raise H6V6.ValidationError(bGrB(u'This email address is already in use. Please supply a different email address.')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gcVv(D3lj):\n if Y8oe.objects.filter(email=D3lj.lower(), is_primary_email=False):\n raise sUXu(bGrB('User with this email already exists.'), code='email_not_unique')\n if mv1M.objects.filter(email=D3lj.lower()):\n raise sUXu(bGrB('User with this email already exists.'), code='email_not_uniq... | [
"0.7811236",
"0.7681506",
"0.750802",
"0.74950993",
"0.744549",
"0.74189126",
"0.7365537",
"0.7317443",
"0.7265087",
"0.7264893",
"0.7253402",
"0.72412723",
"0.72003585",
"0.71835124",
"0.71748316",
"0.7165133",
"0.7128252",
"0.71042466",
"0.7101546",
"0.7101546",
"0.70892125... | 0.6881035 | 32 |
String representation of the class instance. | def zAg0(YKHO):
return 'Token({type}, {value})'.format(type=YKHO.type, value=repr(YKHO.value)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n sovm = vars(YKHO)\n yvT9 = YKHO.__class__.__name__\n for G1Hx, Ty9i in sovm.items():\n if Ty9i > 0:\n yvT9 += ' : ' + str(G1Hx) + ' = ' + str(Ty9i)\n return yvT9",
"def wHJl(YKHO):\n pulk = 'class :' + YKHO.__class__.__name__\n for hkS8 in YKHO.__dict__:\n ... | [
"0.81528825",
"0.810694",
"0.80485237",
"0.7923295",
"0.7921949",
"0.7921949",
"0.7921949",
"0.7921949",
"0.7921949",
"0.7921295",
"0.7910681",
"0.79043895",
"0.79043895",
"0.79043895",
"0.78848475",
"0.78608793",
"0.7854687",
"0.78356767",
"0.7828303",
"0.7778142",
"0.777691... | 0.0 | -1 |
Return the state attributes. | def TzCU(YKHO):
return {_n5K: YKHO._room_name} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def upgy(YKHO)... | [
"0.8953404",
"0.8953404",
"0.85239846",
"0.8366765",
"0.8366765",
"0.8363429",
"0.83362615",
"0.8334551",
"0.8310377",
"0.8292682",
"0.8289349",
"0.8289349",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.82871646",
"0.828... | 0.0 | -1 |
Update the current cover position from the data. | def OBEe(YKHO):
vzeF.debug('Raw data update: %s', YKHO._shade.raw_data)
CWPv = YKHO._shade.raw_data.get(lcsO, {})
if IClD in CWPv:
YKHO._current_cover_position = int(CWPv[IClD])
YKHO._is_opening = False
YKHO._is_closing = False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AdX8(YKHO) -> None:\n nPrm: lH3v = YKHO.coordinator.data\n YKHO._attr_current_cover_position = nPrm.position\n YKHO._attr_is_closed = nPrm.position == 0\n YKHO._attr_is_closing = nPrm.direction == uA8Y.SHUTTER_DOWN\n YKHO._attr_is_opening = nPrm.direction == uA8Y.SHUTTER_UP",
"def vbIB(YKHO, o... | [
"0.6577723",
"0.6549762",
"0.6549762",
"0.6417879",
"0.6384423",
"0.63720477",
"0.6230134",
"0.60781413",
"0.6068532",
"0.59936655",
"0.5953635",
"0.59317994",
"0.5929338",
"0.5913609",
"0.59069985",
"0.58734846",
"0.58532465",
"0.5821888",
"0.58196",
"0.58079296",
"0.5804696... | 0.79747903 | 0 |
Gets or sets a list of polarizations for the item. | def oz2U(YKHO) -> x1iM[M8A2]:
return i5PV(yAij(lambda hkxX: [M8A2(Ty9i) for Ty9i in hkxX], YKHO._get_property(dIlH, x1iM[str])), YKHO, dIlH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zKTJ(YKHO):\n return YKHO._polar[YKHO._plotid]",
"def zKTJ(dQgj):\n return list(zKTJ(complex(dQgj[0], dQgj[1])))",
"def wNFX(YKHO, gdyb=False):\n if YKHO.__coordsys in (TJqi, i_sJ):\n YKHO.__coordsys = BkVK if YKHO.__coordsys == TJqi else gf9X if gdyb else TXzv\n YKHO.update_coord(j1... | [
"0.7044728",
"0.6144635",
"0.57872546",
"0.57407016",
"0.56462336",
"0.55786127",
"0.544226",
"0.5440425",
"0.536691",
"0.5278291",
"0.51506054",
"0.50748307",
"0.5015942",
"0.50013155",
"0.49736014",
"0.4951902",
"0.49411768",
"0.49392888",
"0.49343815",
"0.49263212",
"0.492... | 0.74483776 | 0 |
Gets or sets a product type string for the item. | def quJO(YKHO) -> str:
return i5PV(YKHO._get_property(TFPl, str), YKHO, TFPl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lojf(YKHO) -> str:\n return YKHO.__item_type",
"def v1hD() -> str:\n return msfn.ListProducts.COMBO.label",
"def FRul(YKHO):\n SnBA = dict(zBOy)\n return SnBA.get(YKHO.type, 'N/A')",
"def quJO(YKHO):\n pass",
"def quJO(YKHO):\n return YKHO.__class__.__name__",
"def quJO(YKHO):\n ... | [
"0.7532554",
"0.7275904",
"0.7272676",
"0.7160566",
"0.69237196",
"0.68777585",
"0.6872657",
"0.68482417",
"0.6800864",
"0.6673255",
"0.66540104",
"0.6618789",
"0.6558501",
"0.6558501",
"0.6558501",
"0.6558501",
"0.6558501",
"0.6558501",
"0.6558501",
"0.6558501",
"0.6558501",... | 0.7949418 | 0 |
Gets or sets a pixel spacing range for the item. | def JB7t(YKHO) -> h8nf[float]:
return YKHO._get_property(FchT, float) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s7DX(YKHO):\n if not YKHO.spacing:\n jzdc, Fg_i, Z9rn = YKHO.getVoxelSize()\n YKHO.spacing = [1, Fg_i / jzdc, Z9rn / jzdc]\n return YKHO.spacing",
"def S59n(YKHO):\n return YKHO._spacing",
"def S59n(YKHO, C5WR, aElB=..., aElB=..., aElB=...):\n ...",
"def XmXQ(YKHO) -> Ke8n:\n ... | [
"0.6494858",
"0.6474152",
"0.6129958",
"0.6034496",
"0.5945042",
"0.58175343",
"0.57581127",
"0.57546556",
"0.57478184",
"0.57478184",
"0.57478184",
"0.5734896",
"0.56938565",
"0.56034327",
"0.5595521",
"0.5552176",
"0.5549323",
"0.55432105",
"0.55432105",
"0.55423546",
"0.55... | 0.75598234 | 0 |
Globus API check goauth expiry Checks if GOAuth expiry is has less than 10 days left. | def VqWx(YKHO, iWzb):
wzkt = int(ITS7.time())
TK8C = int(iWzb) - wzkt
rrhv = 60 * 60 * 24 * 10
if TK8C < rrhv:
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iOCv(YKHO, wzkt, CbMJ):\n if 'exp' in YKHO:\n kLQb = YKHO['exp']\n if not qx9S(kLQb):\n raise H16U('exp')\n if kLQb < wzkt - CbMJ:\n raise HO5_()",
"def f4aA(YKHO) -> bool:\n qph3 = YKHO.cfg.entitlements.get(YKHO.name, {})\n DohC = qph3.get('expires')\n ... | [
"0.6331188",
"0.62962884",
"0.61397076",
"0.61361545",
"0.6125111",
"0.6115926",
"0.6079119",
"0.60741943",
"0.60479945",
"0.6031532",
"0.6017389",
"0.6016921",
"0.60122216",
"0.60109806",
"0.59854984",
"0.5958425",
"0.59578955",
"0.5949111",
"0.5946824",
"0.5945705",
"0.5898... | 0.8403415 | 0 |
Verify that messages printed to 'stdout' are captured by pytestzigzag upon failure. | def i4TB():
HwRy.stdout.write('Print to stdout')
assert False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PdbZ():\n HwRy.stdout.write('Print to stdout')\n HwRy.stderr.write('Print to stderr')\n assert True",
"def KnGj(YKHO):\n with YKHO.OutputCapturer():\n print('foo')\n print('bar', file=HwRy.stderr)\n YKHO.AssertOutputContainsLine('foo')\n YKHO.AssertOutputContainsLine('bar', ch... | [
"0.6834287",
"0.682161",
"0.6757061",
"0.657359",
"0.6389287",
"0.6314278",
"0.63060474",
"0.62410367",
"0.6228253",
"0.62123746",
"0.62040836",
"0.6132212",
"0.61104774",
"0.6107233",
"0.6069894",
"0.60576624",
"0.6057225",
"0.6044284",
"0.60359544",
"0.60048556",
"0.5994355... | 0.6866211 | 0 |
Return content up to ``n`` length. | def Ueki(YKHO, exwG=None):
vC9B = []
if exwG is None or exwG < 0:
while True:
r8hN = YKHO._read1()
if not r8hN:
break
vC9B.append(r8hN)
else:
while exwG > 0:
r8hN = YKHO._read1(exwG)
if not r8hN:
brea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J3uN(YKHO, exwG=10):\n Uv1D = YKHO.len()\n pOHv = Uv1D - exwG\n if pOHv < 0:\n pOHv = 0\n return YKHO.contents(pOHv, Uv1D)",
"def eHxA(YKHO, exwG):\n return bGrB([YKHO._[YRbF:YRbF + exwG] for YRbF in range(0, YKHO.size()._, exwG)])",
"def Ueki(YKHO, exwG=1):\n return YKHO.string[YK... | [
"0.7835838",
"0.6790196",
"0.6785236",
"0.66772944",
"0.6671758",
"0.65724343",
"0.65487707",
"0.65344024",
"0.6502827",
"0.6502827",
"0.6493319",
"0.64182645",
"0.64169574",
"0.640168",
"0.640168",
"0.63606864",
"0.63578147",
"0.6336417",
"0.6324835",
"0.63181376",
"0.631173... | 0.6266805 | 25 |
Return content up to ``n`` length. | def Ueki(YKHO, exwG=None):
vC9B = []
if exwG is None or exwG < 0:
while True:
r8hN = YKHO._read1()
if not r8hN:
break
vC9B.append(r8hN)
else:
while exwG > 0:
r8hN = YKHO._read1(exwG)
if not r8hN:
brea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J3uN(YKHO, exwG=10):\n Uv1D = YKHO.len()\n pOHv = Uv1D - exwG\n if pOHv < 0:\n pOHv = 0\n return YKHO.contents(pOHv, Uv1D)",
"def eHxA(YKHO, exwG):\n return bGrB([YKHO._[YRbF:YRbF + exwG] for YRbF in range(0, YKHO.size()._, exwG)])",
"def Ueki(YKHO, exwG=1):\n return YKHO.string[YK... | [
"0.7835838",
"0.6790196",
"0.6785236",
"0.66772944",
"0.6671758",
"0.65724343",
"0.65487707",
"0.65344024",
"0.6502827",
"0.6502827",
"0.6493319",
"0.64182645",
"0.64169574",
"0.640168",
"0.640168",
"0.63606864",
"0.63578147",
"0.6336417",
"0.6324835",
"0.63181376",
"0.631173... | 0.6281023 | 22 |
Initialize a MajoranaOperator with a single term. | def FIMM(YKHO, OXAZ=None, zZRI=1.0):
YKHO.terms = {}
if OXAZ is not None:
OXAZ, tUub = sPTy(OXAZ)
YKHO.terms[OXAZ] = zZRI * (-1) ** tUub | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(NHn2):\n khtY = oNd1()\n khtY.terms = NHn2\n return khtY",
"def ymCM(Emd4, OXAZ, taNR):\n if isinstance(OXAZ, aw0m):\n OXAZ = OXAZ.handle\n elif not isinstance(OXAZ, (ojiJ, int)):\n raise W66h((str(aw0m), str(ojiJ)), str(type(OXAZ)))\n jzdc = syCn()\n if taNR.PL_get_at... | [
"0.7383972",
"0.61364233",
"0.5988654",
"0.5864725",
"0.5848132",
"0.5702616",
"0.5684114",
"0.5647186",
"0.5598309",
"0.5565401",
"0.5562132",
"0.5535482",
"0.55024076",
"0.54951656",
"0.5487507",
"0.54595995",
"0.54425293",
"0.5439411",
"0.5433199",
"0.53961784",
"0.5380824... | 0.7100039 | 1 |
r"""Change to a basis of new Majorana operators. The input to this method is a real orthogonal matrix $O$. It returns a new MajoranaOperator which is equivalent to the old one but rewritten in terms of a new basis of Majorana operators. Let the original Majorana operators be denoted by $\gamma_i$ and the new operators ... | def Nc6T(YKHO, cFTJ):
if not zMjz(cFTJ):
raise ValueError('Transformation matrix is not real orthogonal.')
ozw2 = oNd1()
for OXAZ, lk9W in YKHO.terms.items():
drwc = GLzW(OXAZ, cFTJ)
drwc *= lk9W
ozw2 += drwc
return ozw2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mB0P(YKHO, k2SL):\n YKHO.matrix = k2SL @ YKHO.matrix @ oyIN.conj(k2SL).T",
"def G1MC(MRrp, KkY2):\n return KkY2 @ MRrp @ KkY2.conj().T",
"def v4X_(khtY):\n if not khtY.isoperket:\n raise TypeError('only defined for operator-kets')\n if khtY.superrep != 'super':\n raise TypeError('... | [
"0.55767834",
"0.53462887",
"0.5331405",
"0.5295472",
"0.5285719",
"0.5192217",
"0.51443785",
"0.5132153",
"0.51173246",
"0.5083385",
"0.50375396",
"0.5014097",
"0.4997924",
"0.49957007",
"0.49936497",
"0.49906278",
"0.49768046",
"0.49672312",
"0.49646956",
"0.49557227",
"0.4... | 0.5118987 | 8 |
Create and return a `User` with an email, username and password. | def lYUQ(YKHO, NtEF, D3lj, jTXt=None):
if NtEF is None:
raise TypeError('Users must have a username.')
if D3lj is None:
raise TypeError('Users must have an email address.')
CBIr = YKHO.model(username=NtEF, email=YKHO.normalize_email(D3lj))
CBIr.set_password(jTXt)
CBIr.save()
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj=None, jTXt=None, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save(using=YKHO._db)\n return CBIr",
"def lYUQ(YKHO, ... | [
"0.871256",
"0.86927533",
"0.868441",
"0.86744446",
"0.8649317",
"0.8649317",
"0.8618906",
"0.8615675",
"0.8607496",
"0.8606581",
"0.8606581",
"0.8606581",
"0.8606581",
"0.8606581",
"0.8606581",
"0.8606581",
"0.8606581",
"0.85984576",
"0.859789",
"0.8597251",
"0.8594306",
"... | 0.84041405 | 59 |
Returns a string representation of this `User`. This string is used when a `User` is printed in the console. | def zAg0(YKHO):
return YKHO.email | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.user_id) + ': ' + str(YKHO.user_name) + ': ' + str(YKHO.user_email)",
"def wHJl(YKHO):\n return '<User user_id={} email={} first_name={} last_name={}>'.format(YKHO.user_id, YKHO.email, YKHO.first_name, YKHO.last_name)",
"def wHJl(YKHO):\n return '<User user_id={} emai... | [
"0.8413597",
"0.83416843",
"0.82696235",
"0.82438594",
"0.822045",
"0.8204515",
"0.81018466",
"0.8099857",
"0.8097398",
"0.809523",
"0.8093098",
"0.80919737",
"0.80919737",
"0.80919737",
"0.80919737",
"0.80919737",
"0.80899847",
"0.8084857",
"0.808155",
"0.8060798",
"0.800683... | 0.0 | -1 |
Return the angular frequency for this potential for the given mass. | def wW3z(YKHO, bMbF: float) -> float:
return oyIN.sqrt(YKHO.spring_constant / bMbF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gjtu(YKHO, bMbF: float) -> float:\n return YKHO.omega(bMbF) / P6bq.twopi",
"def bMbF(YKHO):\n return YKHO.volume * YKHO.density",
"def WB0G(PzV6, r8hN=pa_B.m_p):\n return epAf.sqrt(PzV6 * pa_B.elementary_charge ** 2 / (pa_B.epsilon_0 * r8hN))",
"def bMbF(YKHO):\n return YKHO._mass",
"def bM... | [
"0.8558507",
"0.6509668",
"0.64014196",
"0.6355256",
"0.6355256",
"0.6325714",
"0.6322453",
"0.62979895",
"0.62690926",
"0.62690926",
"0.619267",
"0.61567307",
"0.6145228",
"0.6136066",
"0.60856014",
"0.6084143",
"0.6047474",
"0.60108745",
"0.5983998",
"0.597555",
"0.5975147"... | 0.7268162 | 1 |
Return the fullwidth at halfmax of the potential. | def rXfu(YKHO) -> float:
return 2 * oyIN.sqrt(2 * oyIN.log(2)) * YKHO.width | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TVTK(YKHO):\n CAzz = YKHO.xx\n return max(CAzz) - min(CAzz)",
"def wTln() -> float:\n return 1.0",
"def rUiP(YKHO):\n return zYQo(YKHO.width + YKHO.horizontal_spacing * max(YKHO.config['ratios']))",
"def y8Le(YKHO):\n if UHgA > 2.0 * YKHO.mx:\n AuvG = YKHO.gsxx * YKHO.stheta / oyIN.... | [
"0.60424906",
"0.5918914",
"0.58390826",
"0.58276206",
"0.579982",
"0.57973003",
"0.57948667",
"0.5786066",
"0.57733774",
"0.57733774",
"0.57733774",
"0.57733774",
"0.57733774",
"0.57733774",
"0.5740682",
"0.5713979",
"0.57050145",
"0.56941414",
"0.56759274",
"0.5662834",
"0.... | 0.583586 | 3 |
Initialize the model by setting up the layers. | def FIMM(YKHO, zi3C, a6Jb, Norb, hUTg, Q1b5=True, j63z=0):
super(WZUZ, YKHO).__init__()
YKHO.output_size = a6Jb
YKHO.n_layers = hUTg
YKHO.hidden_dim = Norb
YKHO.bidirectional = Q1b5
YKHO.lstm = U78l.LSTM(zi3C, Norb, hUTg, dropout=j63z, batch_first=True, bidirectional=Q1b5)
if Q1b5:
Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2K6(YKHO):\n YKHO._init_predictor()\n if YKHO.use_edge_fusion:\n YKHO._init_edge_module()",
"def kHAz(YKHO):\n YKHO.create_variables()\n YKHO.create_placeholders()\n YKHO.build_model()\n YKHO.reset_lr(None, True)\n YKHO.build_loss()\n YKHO.initialised = True",
"def J2K6(YKHO... | [
"0.7877656",
"0.740135",
"0.73939556",
"0.73799825",
"0.72304994",
"0.72242755",
"0.7183698",
"0.7181406",
"0.7175707",
"0.71491647",
"0.70773673",
"0.70694804",
"0.7036073",
"0.70194495",
"0.7018242",
"0.69936645",
"0.6969751",
"0.6949472",
"0.69274527",
"0.6899944",
"0.6853... | 0.0 | -1 |
Test calculating bounding box's area. | def yMUB(YKHO):
jQ3Z = YKHO.spark.createDataFrame([(toYm(1, 2, 1.0, 1.0),), (toYm(10, 12, 1.0, 5.0),)], ['bbox'])
jQ3Z = jQ3Z.withColumn('area', f0tD(fvDH('bbox')))
YKHO.assertCountEqual((1.0, 5.0), jQ3Z.select('area').toPandas()['area']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def amN3(YKHO):\n YKHO.assertEqual(12, Rqyz(YKHO.values['base'], YKHO.values['height']))",
"def zT1d(FlUN):\n return (FlUN[2] - FlUN[0] + 1) * (FlUN[3] - FlUN[1] + 1)",
"def fVlU(YKHO):\n mawX = x7Ls(30, 50, 130, 60)\n assert mawX.area == 100 * 10\n mawX = x7Ls(10.5, 20.7, 11.2, 50.6)\n asser... | [
"0.8065532",
"0.8037415",
"0.7948927",
"0.7830735",
"0.77955776",
"0.7500105",
"0.7443576",
"0.742373",
"0.7408322",
"0.73405117",
"0.73196113",
"0.7311976",
"0.72496635",
"0.7185762",
"0.7161532",
"0.71592045",
"0.70235264",
"0.69637954",
"0.6939459",
"0.6932197",
"0.6909909... | 0.70603794 | 16 |
Extract patches rom an image | def Ct7C(VDaf, _0fC):
IJYZ = (128, 128, 3)
w_5H = aQ9c(VDaf, IJYZ, step=_0fC)
ohfT = []
for r8hN in range(w_5H.shape[0]):
for exwG in range(w_5H.shape[1]):
ohfT += [w_5H[r8hN][exwG][0]]
return ohfT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GK1q(VXjJ, ZTDL):\n\n def KcOq(VXjJ):\n zXzD = oyIN.array(VXjJ.shape[:2])\n BdN0 = ZTDL[0] * oyIN.ceil(zXzD / ZTDL[0]).astype(int)\n LTIa = BdN0 - zXzD\n VXjJ = oyIN.pad(VXjJ, [(0, LTIa[0]), (0, LTIa[1]), (0, 0)], mode='constant')\n ohfT = ai0T(VXjJ, tuple(ZTDL)).astype(oy... | [
"0.752042",
"0.7405589",
"0.7383237",
"0.7218089",
"0.71736616",
"0.7031394",
"0.6964944",
"0.69237727",
"0.6889955",
"0.68696856",
"0.6828709",
"0.6797487",
"0.6776113",
"0.67393386",
"0.67282397",
"0.6677259",
"0.6650687",
"0.6630599",
"0.6598658",
"0.6565674",
"0.6555005",... | 0.6376204 | 26 |
Given a string, capitalize the letters that occupy even indexes and odd indexes separately, and return as shown below. Index 0 will be considered even. For example, capitalize("abcdef") = ['AbCdEf', 'aBcDeF']. See test cases for more examples. The input will be a lowercase string with no spaces. Good luck! | def YXiu(KCHu):
KCHu = list(KCHu)
i2mJ = []
mQNG = []
PL8C = []
for YRbF in range(len(KCHu)):
if YRbF % 2 == 0:
i2mJ.append(KCHu[YRbF].capitalize())
mQNG.append(KCHu[YRbF])
else:
i2mJ.append(KCHu[YRbF])
mQNG.append(KCHu[YRbF].capitalize... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hvS4(KCHu):\n return KCHu[:1].upper() + KCHu[1:]",
"def YXiu(A0cm):\n GOjH = A0cm[0].upper()\n for YRbF in range(1, len(A0cm)):\n GOjH += A0cm[YRbF]\n return GOjH",
"def uhRd(KCHu):\n return KCHu[0].upper() + KCHu[1:]",
"def T9Vn(vkBg):\n st9m = str(vkBg).lower()\n MUQu = ''\n... | [
"0.72522223",
"0.7004824",
"0.67990184",
"0.6785063",
"0.6768302",
"0.6745219",
"0.66949296",
"0.6629766",
"0.65753126",
"0.6549061",
"0.64965546",
"0.64816284",
"0.6469912",
"0.6451273",
"0.64363456",
"0.64363456",
"0.64178455",
"0.6406056",
"0.64053345",
"0.6401183",
"0.637... | 0.8053942 | 0 |
Return index if given number is found in the list. | def TrX4(ezWE: IntList, xDcj: int) -> int:
np77: int = len(ezWE)
for or8S in range(np77):
if ezWE[or8S] == xDcj:
return or8S
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TrX4(YKHO, qtDU, H5ew):\n for YRbF in range(len(qtDU)):\n if qtDU[YRbF] == H5ew:\n return YRbF\n return -1",
"def d6pt(Uj1v, BWXx):\n for P2GO in range(len(Uj1v)):\n if Uj1v[P2GO] == BWXx:\n return P2GO\n return None",
"def neBz(YKHO, list, H5ew, BWXx):\n ... | [
"0.75644296",
"0.7527579",
"0.7342308",
"0.73023516",
"0.7262485",
"0.72490627",
"0.72077674",
"0.72039735",
"0.7189785",
"0.716159",
"0.71311665",
"0.71184236",
"0.70855105",
"0.7074518",
"0.7072363",
"0.7027025",
"0.7008956",
"0.6887056",
"0.6869319",
"0.6769843",
"0.676485... | 0.65247744 | 37 |
Return index if given number is found in the list. It reduces one comparison in every iterations. In the original one we "loop & compare the forcond & param", on this one we only need to "compare the param (& incr). | def NkKh(ezWE: IntList, xDcj: int) -> int:
np77: int = len(ezWE)
XVAW: int = ezWE[-1]
ezWE[-1] = xDcj
or8S: int = 0
while ezWE[or8S] != xDcj:
or8S += 1
ezWE[-1] = XVAW
if or8S < np77 - 1 or xDcj == ezWE[-1]:
return or8S
else:
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TrX4(YKHO, qtDU, H5ew):\n for YRbF in range(len(qtDU)):\n if qtDU[YRbF] == H5ew:\n return YRbF\n return -1",
"def TrX4(yv6U, BWXx):\n YRbF = 0\n while YRbF != len(yv6U) and yv6U[YRbF] != BWXx:\n YRbF = YRbF + 1\n if YRbF == len(yv6U):\n return -1\n else:\n ... | [
"0.7044698",
"0.6974586",
"0.6957792",
"0.6896653",
"0.68217874",
"0.67767775",
"0.66456515",
"0.66047734",
"0.6602837",
"0.65877736",
"0.65762985",
"0.6559269",
"0.65419406",
"0.6509697",
"0.6508344",
"0.64554805",
"0.645407",
"0.6453971",
"0.6402255",
"0.6388524",
"0.638281... | 0.5866487 | 64 |
Create a colormap for robot joints | def rNLa(YKHO, KeXl='viridis'):
if isinstance(KeXl, list) and len(KeXl) == YKHO.n:
return Jw9H.ListedColormap(KeXl)
else:
return Bcwd.get_cmap(KeXl, 6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JNWv():\n MYQr = oyIN.array([[128, 64, 128], [244, 35, 232], [70, 70, 70], [102, 102, 156], [190, 153, 153], [153, 153, 153], [250, 170, 30], [220, 220, 0], [107, 142, 35], [152, 251, 152], [70, 130, 180], [220, 20, 60], [255, 0, 0], [0, 0, 142], [0, 0, 70], [0, 60, 100], [0, 80, 100], [0, 0, 230], [119, 11... | [
"0.68236434",
"0.65476716",
"0.6484247",
"0.6156376",
"0.61551416",
"0.61100024",
"0.60688406",
"0.60494787",
"0.59901047",
"0.5970671",
"0.59689003",
"0.59651875",
"0.59312844",
"0.59022063",
"0.587058",
"0.5836178",
"0.58328897",
"0.58183086",
"0.58183086",
"0.5814701",
"0.... | 0.54297245 | 50 |
Get/set robot name (Robot superclass) ``robot.name`` is the robot name | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO.robot.name + ' ' + pUoF[YKHO.type][0]",
"def YVRu(YKHO, fQxG):\n YKHO.robot = fQxG",
"def KDc5(ZZ4V):\n hkS8 = 'robotType'\n pmON = '{}.{}'.format(VCit(ZZ4V), hkS8)\n return PrrZ(pmON)",
"def FIMM(YKHO, fQxG, mWFP):\n super().__init__()\n YKHO.robot = fQxG\n... | [
"0.6452747",
"0.6167242",
"0.6055254",
"0.6042503",
"0.5917789",
"0.58874357",
"0.5874447",
"0.5860842",
"0.58605766",
"0.58605766",
"0.58605766",
"0.58191293",
"0.58191293",
"0.58191293",
"0.5786786",
"0.57778573",
"0.57778573",
"0.5772978",
"0.5770095",
"0.5766569",
"0.5765... | 0.0 | -1 |
Get/set robot manufacturer's name (Robot superclass) ``robot.manufacturer`` is the robot manufacturer's name | def XmcM(YKHO):
return YKHO._manufacturer | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XmcM(YKHO):\n return YKHO._device.manufacturer",
"def XmcM(YKHO) -> str:\n return YKHO.profile_device.manufacturer",
"def igLz(YKHO):\n return YKHO.manufacturer",
"def MtyI(YKHO, uJ2L):\n uJ2L = uJ2L.lower()\n for lGGq, aadv in YKHO.DRIVE_NAME_MANUFAC_MAP.iteritems():\n if uJ2L.star... | [
"0.7519577",
"0.7362755",
"0.73484373",
"0.7201688",
"0.7069193",
"0.7007841",
"0.6888599",
"0.60468894",
"0.5962523",
"0.58395827",
"0.58304405",
"0.58224547",
"0.5815096",
"0.57975537",
"0.5751366",
"0.57211953",
"0.5533511",
"0.5505995",
"0.54804397",
"0.54248047",
"0.5420... | 0.73867214 | 1 |
Get/set robot joint acceleration (Robot superclass) ``robot.qdd`` is the robot joint acceleration | def fa8C(YKHO):
return YKHO._qdd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AIis(YKHO):\n P1dF = YKHO.target_pos - YKHO.robot_arm_pos\n return YKHO._pd_control(P1dF) + YKHO.torque",
"def mibM(YKHO, vexM: np.ndarray, eNZr: np.ndarray, YAq3: np.ndarray, FOSW: np.ndarray, JRYC: float=None) -> oyIN.ndarray:\n Agvu(vexM, 'Quaternion')\n Agvu(eNZr, 'Tri-axial gyroscope sample'... | [
"0.63749534",
"0.6044896",
"0.5947305",
"0.5932011",
"0.57884717",
"0.57407933",
"0.56916785",
"0.5687669",
"0.56656045",
"0.56028676",
"0.55788934",
"0.55512613",
"0.5521995",
"0.5521059",
"0.5514926",
"0.54816747",
"0.5477208",
"0.54666066",
"0.5388541",
"0.5362684",
"0.535... | 0.0 | -1 |
Creates an instance of `ActorRnnNetwork`. | def FIMM(YKHO, UdAW, N1CS, Gg4o=None, n2EX=(200, 100), TQ_J=(40,), Paeb=(200, 100), _Ycl=ZylS.keras.activations.relu, mWFP='ActorRnnNetwork'):
if len(ZylS.nest.flatten(UdAW)) > 1:
raise ValueError('Only a single observation is supported by this network')
TPSt = BfDw.mlp_layers(Gg4o, n2EX, activation_fn=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TCIu(YKHO):\n print('Creating network, changing data will have no effect beyond this point.')\n exwG = PMix.IMNN(parameters=YKHO.parameters)\n if YKHO.load_network:\n exwG.restore_network()\n else:\n exwG.setup(network=YKHO.network, load_data=YKHO.data)\n return exwG",
"def TCIu(... | [
"0.67001796",
"0.62896705",
"0.6281561",
"0.61653763",
"0.61375254",
"0.5852676",
"0.5843381",
"0.5778502",
"0.5772604",
"0.57688445",
"0.5726827",
"0.5725136",
"0.5676937",
"0.5645411",
"0.5645028",
"0.56429565",
"0.5632609",
"0.5626175",
"0.5543503",
"0.55420905",
"0.554208... | 0.5934057 | 5 |
Return the maximum indices from the input based on the mask values. | def X52k(YKHO, input):
uZKg = ht2j.min(ht2j.abs(input.contiguous().view(-1)))
swcV = input + uZKg + YKHO.epsilon
Of3B = swcV * YKHO.mask
hkxX, _0VL = ht2j.sort(Of3B, dim=1, descending=True)
return _0VL[:, :YKHO.num_active_nodes, :] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NfWQ(nPrm, ZHfW):\n I1mm = (ht2j.sum(ZHfW, dim=1, keepdim=True) == 1).float()\n A1Lh = ht2j.max(ZHfW, dim=1, keepdim=True)[1]\n vELP = ht2j.min(nPrm, dim=1, keepdim=True)[0]\n NfWQ, d_Of = ht2j.max((nPrm - vELP) * ZHfW, dim=1, keepdim=True)\n NfWQ += vELP\n d_Of = (1 - I1mm) * d_Of.float() + ... | [
"0.7233552",
"0.7122363",
"0.68888634",
"0.68044424",
"0.6763603",
"0.67334",
"0.6616053",
"0.65992135",
"0.6405563",
"0.6393752",
"0.6393752",
"0.6393752",
"0.6301888",
"0.6298719",
"0.62982213",
"0.6277624",
"0.6219846",
"0.6150456",
"0.6126163",
"0.61140656",
"0.61120814",... | 0.771752 | 0 |
Returns a deep copy of this accumulator. | def jth9(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _9K6(YKHO):\n return YKHO.__class__(YKHO.inputs, YKHO.outputs, YKHO.middle)",
"def _qLf(YKHO):\n return YKHO.copy()",
"def _qLf(YKHO):\n return jth9.deepcopy(YKHO)",
"def jth9(YKHO):\n return _qLf(YKHO)",
"def _qLf(YKHO):\n return KalG.deepcopy(YKHO)",
"def jth9(YKHO):\n return _qLf... | [
"0.68696034",
"0.68196577",
"0.66156954",
"0.6609806",
"0.6567306",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6552565",
"0.6520686",
... | 0.0 | -1 |
Returns a copy of this accumulator with the contents rightmultiplied by the specified object. Typically this operator will be used to chain backprop gradients, ie. do_dx = do_dy dy_dx, where the accumulator stores do_dy. | def E_tF(YKHO, k0lF):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CaoY(YKHO, YEnM):\n jbXL = YKHO + YEnM\n YKHO.data = jbXL.data\n return YKHO",
"def FOdN(YKHO, YEnM):\n return YKHO ^ YEnM",
"def E_tF(YKHO, YEnM):\n return YKHO & YEnM",
"def aksi(YKHO, YEnM):\n jbXL = YKHO * YEnM\n YKHO.data = jbXL.data\n YKHO.m, YKHO.n = jbXL.dim\n return YK... | [
"0.590042",
"0.58840644",
"0.5749573",
"0.5681582",
"0.56071913",
"0.5605998",
"0.5557515",
"0.5528245",
"0.55110997",
"0.5393863",
"0.53195864",
"0.53055394",
"0.53037316",
"0.530091",
"0.5299481",
"0.5293384",
"0.52927715",
"0.52476996",
"0.52457047",
"0.52109677",
"0.51889... | 0.0 | -1 |
Return a list of weak references to the keys. The references are not guaranteed to be 'live' at the time they are used, so the result of calling the references needs to be checked before being used. This can be used to avoid creating references that will cause the garbage collector to keep the keys around longer than n... | def bxf2(YKHO):
return list(YKHO.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bxf2(YKHO):\n return [bf9h(H5ew) for H5ew in YKHO.iterkeys()]",
"def bxf2(YKHO):\n return YKHO.data.keys()",
"def bxf2(YKHO):\n return YKHO.data.keys()",
"def oJG2(YKHO):\n for H5ew in YKHO.iterkeys():\n yield bf9h(H5ew)",
"def i9Kk(YKHO):\n print('=======')\n print('REFs')\n ... | [
"0.82074225",
"0.7239157",
"0.7239157",
"0.7028191",
"0.6850422",
"0.65938056",
"0.65938056",
"0.6564662",
"0.6491547",
"0.64053553",
"0.6279825",
"0.6259065",
"0.6250254",
"0.6239333",
"0.61376363",
"0.6136784",
"0.6128882",
"0.6128882",
"0.609659",
"0.60938567",
"0.6087779"... | 0.7305308 | 1 |
Set self.name to a randomly generated (w/ weights!) nickname | def FIMM(YKHO):
YKHO.name = XvqG([(YKHO.make_name(), 39), (YKHO.bob, 1), (YKHO.beef, 1)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dokz(YKHO, Dokz):\n YKHO.name = Dokz",
"def WZrJ(YKHO, L15R=''):\n YKHO.name = L15R",
"def SiRx(YKHO):\n import string\n from random import SystemRandom\n qrLi = YKHO.name\n while qrLi == YKHO.name:\n YKHO.name = ''\n exwG = 0\n while exwG < 2:\n fTff = Sys... | [
"0.72103363",
"0.7203026",
"0.71570575",
"0.7083047",
"0.7069082",
"0.69720286",
"0.69692993",
"0.69543684",
"0.6920626",
"0.6920626",
"0.68515587",
"0.6850224",
"0.6850224",
"0.68295616",
"0.6815698",
"0.6808106",
"0.6802845",
"0.6788818",
"0.67887366",
"0.67838293",
"0.6765... | 0.64276636 | 84 |
Return the instance's name | def W0tD(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZUM3(YKHO):\n if YKHO.instance is not None:\n return '%s_%s' % (YKHO.name, YKHO.instance)\n else:\n return YKHO.name",
"def mWFP(YKHO):\n return YKHO._client.project_name + '/instances/' + YKHO.instance_id",
"def W0tD(YKHO):\n return YKHO.__name",
"def W0tD(YKHO):\n return YK... | [
"0.8780096",
"0.83843404",
"0.8188377",
"0.813625",
"0.80755264",
"0.80714804",
"0.80714804",
"0.80714804",
"0.80620867",
"0.80620867",
"0.80620867",
"0.80620867",
"0.80581266",
"0.802426",
"0.80163795",
"0.79936075",
"0.7993189",
"0.7993189",
"0.7993189",
"0.7975848",
"0.797... | 0.0 | -1 |
Generate a first name | def g8tW(YKHO):
return '%s%s' % (XvqG([('', 39), ('We put our faith in ', 1)]), Acvy(YKHO.first_chunks).title()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CpzB(YKHO):\n RI88 = '{0}.{1}'.format(YKHO.first_name.split()[0].lower(), YKHO.last_name.split()[-1].lower())\n return CCqK(RI88)",
"def fz1W(YKHO) -> str:\n return YKHO.first_name",
"def CZ0_(YKHO):\n cntZ, XVAW = ('', '')\n\n def g8tW(YKHO):\n \"\"\" Generate a first name \"\"\"\n ... | [
"0.7938248",
"0.77602273",
"0.7621453",
"0.75850064",
"0.7529725",
"0.75006044",
"0.7488171",
"0.74808437",
"0.74504983",
"0.74376416",
"0.7406537",
"0.7385905",
"0.73541754",
"0.7321227",
"0.73053443",
"0.7299395",
"0.7291553",
"0.7285527",
"0.7259067",
"0.7250136",
"0.72501... | 0.0 | -1 |
Change the name of an existing attribute. | def oSgC(YKHO, XnJ9, o3RU) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _j8X(YKHO, _j8X):\n YKHO._attribute_name = _j8X",
"def _j8X(mWFP: str) -> str:\n return l5Ny.snake_case(BfDw.safe_snake(mWFP))",
"def SK8M(YKHO, mWFP, BWXx):\n pass",
"def za6Z(*qIxc, **B2fa) -> J8o1:\n pass",
"def Dokz(YKHO, Dokz):\n YKHO.name = Dokz",
"def zXji(YKHO, Dokz):\n YKHO... | [
"0.769654",
"0.7592607",
"0.74921066",
"0.7343999",
"0.7326134",
"0.7285174",
"0.7285174",
"0.7269998",
"0.72308606",
"0.72252005",
"0.7183459",
"0.7161339",
"0.6953541",
"0.69324696",
"0.69324696",
"0.684895",
"0.68437946",
"0.6837461",
"0.6832023",
"0.68090236",
"0.6806226"... | 0.80927634 | 0 |
Get the number of keys for the skewX attribute. The view parameter is optional. | def GMR0(YKHO, tTee) -> int:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bWHe(YKHO, tTee) -> list[float]:\n ...",
"def kTEu(YKHO, tTee) -> int:\n ...",
"def EXZ9(YKHO, tTee) -> int:\n ...",
"def sVCs(YKHO, tTee) -> int:\n ...",
"def Ib04(YKHO, hkS8, tTee) -> int:\n ...",
"def Mry5(YKHO, tTee) -> int:\n ...",
"def kvtC(YKHO, d6pt, tTee) -> float:\n .... | [
"0.7319535",
"0.7204794",
"0.7149547",
"0.71381664",
"0.7128321",
"0.69738686",
"0.67407584",
"0.67082655",
"0.61614305",
"0.5690349",
"0.56343406",
"0.5535973",
"0.5533726",
"0.5444282",
"0.54256725",
"0.5407733",
"0.53724974",
"0.5370755",
"0.5344329",
"0.5333305",
"0.53196... | 0.9129364 | 0 |
Get the number of keys for all attributes of this transform. The view parameter is optional. | def kTEu(YKHO, tTee) -> int:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ib04(YKHO, hkS8, tTee) -> int:\n ...",
"def EXZ9(YKHO, tTee) -> int:\n ...",
"def Hyft(YKHO, tTee) -> int:\n ...",
"def sVCs(YKHO, tTee) -> int:\n ...",
"def GMR0(YKHO, tTee) -> int:\n ...",
"def Ib04(YKHO) -> int:\n ...",
"def Mry5(YKHO, tTee) -> int:\n ...",
"def ck8o(YKHO)... | [
"0.8405167",
"0.75059074",
"0.74644214",
"0.7448493",
"0.7274628",
"0.7077828",
"0.6883859",
"0.6447866",
"0.6422313",
"0.631336",
"0.631336",
"0.63107264",
"0.60906625",
"0.60181314",
"0.5899048",
"0.5883699",
"0.58664364",
"0.5858172",
"0.58445215",
"0.58445215",
"0.580362"... | 0.8118101 | 1 |
Set the anim curve for the rotation attribute of this transform. The index parameter should be 0 for the x values, 1 for the y values. The view parameter is optional. | def kPgX(YKHO, d6pt, AHIX, tTee) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nA6x(YKHO, d6pt, AHIX, tTee) -> None:\n ...",
"def VhfW(YKHO, d6pt, AHIX, tTee) -> None:\n ...",
"def wE2c(YKHO, d6pt, AHIX, tTee) -> None:\n ...",
"def dadK(YKHO, d6pt, AHIX, tTee) -> None:\n ...",
"def IH70(YKHO, d6pt, tTee) -> tw68:\n ...",
"def ijD8(YKHO, d6pt, AHIX, tTee) -> None:... | [
"0.7323325",
"0.72483635",
"0.6869143",
"0.6817336",
"0.66532713",
"0.6598991",
"0.6543107",
"0.63113564",
"0.59990704",
"0.5867983",
"0.5773243",
"0.5703239",
"0.56291264",
"0.5480719",
"0.54592454",
"0.54382986",
"0.54352987",
"0.53866434",
"0.53450215",
"0.53049517",
"0.52... | 0.86197585 | 0 |
Check whether this curve has been modified away from its default values. | def kCXs(YKHO) -> bool:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w3PF(YKHO):\n if YKHO.any_parent_as_widget:\n return YKHO._is_modified or YKHO.defaults_not_set\n if YKHO._is_modified or YKHO.defaults_not_set:\n return True\n if YKHO.is_overidable:\n return YKHO.was_overriden != YKHO.is_overriden\n else:\n return YKHO.has_studio_overr... | [
"0.6547326",
"0.63797295",
"0.62450814",
"0.62450814",
"0.6101802",
"0.60560596",
"0.604923",
"0.60092044",
"0.5900057",
"0.58781374",
"0.5836954",
"0.57791185",
"0.5750626",
"0.571046",
"0.5690318",
"0.5684944",
"0.56829584",
"0.56686825",
"0.56680304",
"0.5666855",
"0.56543... | 0.0 | -1 |
Postmultiply this matrix by a scale transformation. The y and z parameters may be left out; if so the scale is uniform along all three axes. | def NXpY(YKHO, WKvO, LVAh, epBp) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXpY(YKHO, NXpY):\n b8Ja = gcpQ.scaleMatrix(NXpY, YKHO.width / 2, YKHO.height / 2, 0)\n YKHO.transform(b8Ja)",
"def bi20(*qIxc, **B2fa):\n return nAU3.GraphicsMatrix_Scale(*qIxc, **B2fa)",
"def ot4y(XP5J, jzdc=1, Fg_i=1, Z9rn=1):\n S8ly = oyIN.matrix([[jzdc, 0, 0, 0], [0, Fg_i, 0, 0], [0, 0, Z9... | [
"0.6576966",
"0.65492755",
"0.6306448",
"0.6301948",
"0.6251686",
"0.61309683",
"0.6070604",
"0.6001046",
"0.59448457",
"0.593658",
"0.5875388",
"0.58635914",
"0.5845655",
"0.5800007",
"0.57828707",
"0.5762446",
"0.57486653",
"0.5743575",
"0.5728276",
"0.5702517",
"0.56567025... | 0.6515715 | 2 |
Postmultiply this matrix with a skew transformation. The y and z parameters may be left out; if so, the skew is in the X direction only. | def uRwD(YKHO, WKvO, LVAh, epBp) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRwD(YKHO):\n Ty9i = YKHO.v\n yzQ0 = YKHO.w\n return oyIN.array([[0, Ty9i[2], -Ty9i[1], yzQ0[0]], [-Ty9i[2], 0, Ty9i[0], yzQ0[1]], [Ty9i[1], -Ty9i[0], 0, yzQ0[2]], [-yzQ0[0], -yzQ0[1], -yzQ0[2], 0]])",
"def uRwD(WKvO):\n return oyIN.array([[0, -WKvO[2], WKvO[1]], [WKvO[2], 0, -WKvO[0]], [-WKvO[1]... | [
"0.674893",
"0.61231506",
"0.6083809",
"0.60219413",
"0.5870477",
"0.5850717",
"0.56683666",
"0.56683666",
"0.56683666",
"0.56683666",
"0.5636025",
"0.56122017",
"0.55229884",
"0.5379817",
"0.5210464",
"0.5087206",
"0.5014046",
"0.49173725",
"0.48539457",
"0.47405082",
"0.472... | 0.66605175 | 1 |
Set this matrix to be a translation matrix, replacing any existing values. This is different from other methods in this class as it replaces, rather than multiplying by, the existing values in the matrix. | def y_o0(YKHO, WKvO, LVAh, epBp) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SppC(YKHO):\n return YKHO._translation",
"def tSyl(YKHO, SppC):\n for WKvO in list(YKHO.keys()):\n wc14 = YKHO[WKvO]\n if len(wc14.shape) == 2 and wc14.shape[1] == 3:\n YKHO[WKvO] = oyIN.dot(SppC, wc14.transpose()).transpose()",
"def hBUG(YKHO, WKvO=0, LVAh=0, epBp=0):\n y... | [
"0.6885663",
"0.66732776",
"0.6645825",
"0.6421659",
"0.6166122",
"0.6065455",
"0.606052",
"0.5972051",
"0.59345686",
"0.5833458",
"0.57894486",
"0.5770156",
"0.57565403",
"0.5745422",
"0.5739375",
"0.5732846",
"0.57183987",
"0.5716183",
"0.5713978",
"0.5685722",
"0.56761926"... | 0.52555287 | 80 |
Returns True if this transform matches the default settings, False if not. | def kCXs(YKHO) -> bool:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VULH(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'use_defaults')",
"def VULH(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'use_defaults')",
"def VULH(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'use_defaults')",
"def eoCS(YKHO):\n if YKHO.default is None... | [
"0.6298078",
"0.62840414",
"0.62840414",
"0.6268125",
"0.61701113",
"0.60805655",
"0.60344934",
"0.6000641",
"0.59880275",
"0.59543455",
"0.5952754",
"0.5945263",
"0.5880526",
"0.58679044",
"0.5862624",
"0.5861585",
"0.583916",
"0.58366555",
"0.5818389",
"0.57946056",
"0.5759... | 0.61273813 | 6 |
Return this transform to its default settings. | def SiRx(YKHO) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YQbS(YKHO, *qIxc, SZFh=None, **B2fa):\n NKcE = B2fa.pop('_method')\n if SZFh is None:\n SZFh = PtdA()\n return NKcE(YKHO, *qIxc, transform=SZFh, **B2fa)",
"def RqgG(YKHO):\n from setman import settings\n return getattr(settings, YKHO.name, YKHO.default)",
"def zaDs(YKHO, f3cP, NArs):\... | [
"0.6143181",
"0.6138567",
"0.60939837",
"0.6062362",
"0.6050486",
"0.60184455",
"0.590092",
"0.5881013",
"0.5852312",
"0.58440506",
"0.58381414",
"0.58221316",
"0.5815106",
"0.5782928",
"0.5765118",
"0.5758224",
"0.57505065",
"0.57505065",
"0.573958",
"0.57122284",
"0.5676541... | 0.0 | -1 |
Initialize the soundingEnvironment object. See class documentation. | def FIMM(YKHO, xJar, PO50, qYVM, YVPx, nDMs, Omrd, tIbz, y_32=0.0, xw1b=0.0, WLUQ=False, ZpZy=False):
YKHO.distanceFromSounding = tIbz
YKHO.timeFromSounding = Omrd
YKHO.maxAltitude = 50999
YKHO.soundingFile = nDMs
YKHO._interpolationPrecision = 200
super(jz2_, YKHO).__init__(inflationTemperature... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN():\n tqPq()\n if a9EH.system() == 'Windows':\n Bdx2.USE_SOUNDFILE_LEGACY_INTERFACE = False\n Bdx2.set_audio_backend('soundfile')\n else:\n Bdx2.set_audio_backend('sox_io')\n ht2j.manual_seed(0)\n tuKI.seed(0)\n oyIN.random.seed(0)",
"def uIcm():\n GikI = zAej()\... | [
"0.654832",
"0.6542081",
"0.65346956",
"0.64869595",
"0.59081393",
"0.5888667",
"0.5888667",
"0.5865568",
"0.580509",
"0.5800644",
"0.5756435",
"0.5748782",
"0.57444435",
"0.56872886",
"0.56696457",
"0.5643041",
"0.55588436",
"0.5462768",
"0.5427535",
"0.54250544",
"0.5410461... | 0.6761782 | 0 |
Constructor function responsible for applying perturbations to wind profiles and returning closure functions. | def aoXI(YKHO, tyiF, Zp70, shMU, ghIh=None):
uEob = PQeu(omgI.AltitudesM[:31], omgI.M_U_Kts[tyiF], s=5)
rK35 = PQeu(omgI.AltitudesM[:31], omgI.M_V_Kts[tyiF], s=5)
lb8a = PQeu(zomm.AltitudesM[:31], zomm.M_U_Kts[Zp70], s=5)
_gmE = PQeu(zomm.AltitudesM[:31], zomm.M_V_Kts[Zp70], s=5)
def jg0x(*qIxc):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, **d_LW):\n YKHO.observation_functions = d_LW",
"def FIMM(YKHO, *d_LW):\n YKHO.observation_functions = d_LW",
"def FIMM(YKHO, *qIxc, **B2fa):\n try:\n Fw8z = B2fa['geometry']\n except:\n pass\n tpio = Fw8z.dim\n if tpio == 1:\n xQq0 = lambda WKvO: [1.0]\n ... | [
"0.57617277",
"0.57545006",
"0.56610876",
"0.56411827",
"0.56189775",
"0.5596865",
"0.55687106",
"0.54733866",
"0.5429545",
"0.54240674",
"0.5421355",
"0.5342612",
"0.5336828",
"0.5332356",
"0.53233254",
"0.5318489",
"0.52870184",
"0.5277305",
"0.5269967",
"0.5261108",
"0.526... | 0.0 | -1 |
Initialize a 1D linear interpolation class. | def FIMM(YKHO, WKvO, LVAh, eJTR='linear', jDK_=-1, jth9=True, MUZl=True, xgWT=oyIN.nan):
zmjn.__init__(YKHO, WKvO, LVAh, axis=jDK_)
YKHO.copy = jth9
YKHO.bounds_error = MUZl
YKHO.fill_value = xgWT
if eJTR in ['zero', 'slinear', 'quadratic', 'cubic']:
T4Wy = {'nearest': 0, 'zero': 0, 'slinear... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0IK(YKHO):\n WKvO = [1.0, 2.0, 4.0]\n k0lF = XTiz.zeros(len(WKvO))\n for YRbF in range(len(WKvO)):\n k0lF[YRbF] = IcyY(WKvO[YRbF], 0)\n for YRbF, Y7fn in enumerate(WKvO):\n wEf2 = Ntkg(WKvO, k0lF, [Y7fn], mode='linear')[0]\n bf9h = IcyY(Y7fn, 0)\n assert XTiz.allclose(w... | [
"0.6662798",
"0.64082444",
"0.62980455",
"0.61222905",
"0.60928935",
"0.6003189",
"0.5990886",
"0.5990886",
"0.598326",
"0.5962284",
"0.5906751",
"0.589192",
"0.5887509",
"0.5864227",
"0.5863058",
"0.5859278",
"0.58498627",
"0.5846102",
"0.58292145",
"0.5828141",
"0.5788423",... | 0.7018905 | 0 |
Return the path of the creme data directory. | def Oh5_(nUtl=None):
if nUtl is None:
nUtl = Hy7s.environ.get('CREME_DATA', Hy7s.path.join('~', 'creme_data'))
nUtl = Hy7s.path.expanduser(nUtl)
if not Hy7s.path.exists(nUtl):
Hy7s.makedirs(nUtl)
return nUtl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s8df():\n return Hy7s.getcwd() + '/data/'",
"def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data')",
"def h_xa(YKHO) -> GkAb:\n return YKHO._data_dir",
"def TNBq():\n return '..' + Hy7s.sep + 'data' + Hy7s.sep",
"def h_xa():\n return viqz.datadir",
"de... | [
"0.82566875",
"0.8075111",
"0.8062139",
"0.80395365",
"0.7988162",
"0.7978554",
"0.79116637",
"0.7893909",
"0.7882033",
"0.7861019",
"0.78586584",
"0.78586584",
"0.7857231",
"0.7816852",
"0.77922225",
"0.7702507",
"0.7698726",
"0.76870507",
"0.76775813",
"0.7674349",
"0.76168... | 0.69737244 | 56 |
Compress the given data (assumed to be bytes) and return a bytearray containing the compressed data (including gzip header and footer). Also returns offsets for the end of each separate stream. | def z0lF(nPrm, ENFq):
eHNT = xDSY.BytesIO()
if ENFq:
ym_X = len(nPrm) // 10
else:
ym_X = len(nPrm)
gQVb = []
wFnn = 0
print('Generating compressed data {}, concat: {})'.format(len(nPrm), ENFq))
while wFnn < len(nPrm):
yKcO = len(eHNT.getvalue())
yOAJ = nPrm[wF... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KRVN(nPrm):\n KCHu = aKaX()\n Oa1e = lGU7.GzipFile(fileobj=KCHu, mode='wb')\n Oa1e.write(nPrm)\n Oa1e.close()\n return KCHu.getvalue()",
"def dSbR(YKHO, nPrm):\n Y2NK = kJm3.StringIO()\n ruk1 = lGU7.GzipFile(fileobj=Y2NK, mode='wb')\n ruk1.write(nPrm)\n ruk1.close()\n return Y2N... | [
"0.70542353",
"0.666646",
"0.6556566",
"0.64006585",
"0.6137972",
"0.6015027",
"0.59958714",
"0.59958714",
"0.59419537",
"0.5889193",
"0.588133",
"0.58588576",
"0.5744829",
"0.5673796",
"0.56064403",
"0.5575992",
"0.5520173",
"0.54564345",
"0.5424424",
"0.5421693",
"0.5377742... | 0.65692574 | 2 |
finds an empty space in the board | def AbU4(b60H):
for YRbF in range(len(b60H)):
for r845 in range(len(b60H[0])):
if b60H[YRbF][r845] == 0:
return (YRbF, r845)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dxcK(iBIi, g4we):\n return iBIi[g4we] == ' '",
"def a0dL(iBIi: list) -> tuple:\n NZyS = len(iBIi)\n for YRbF in range(NZyS):\n for r845 in range(NZyS):\n if iBIi[YRbF][r845] == 0:\n return (YRbF, r845)",
"def a0dL(YKHO, QTBn):\n for YRbF in range(3):\n fo... | [
"0.7841911",
"0.76906204",
"0.75697964",
"0.7427892",
"0.7348643",
"0.7342331",
"0.7284005",
"0.7277991",
"0.7223856",
"0.71628565",
"0.7157783",
"0.7124829",
"0.71075344",
"0.71034384",
"0.70795405",
"0.7076924",
"0.70670384",
"0.7040869",
"0.70359844",
"0.7022655",
"0.69981... | 0.60761356 | 99 |
Check object permission explicitly | def dKp0(Uvf2, QePW, tTee, YEnM):
if not Uvf2().has_object_permission(QePW, tTee, YEnM):
tTee.permission_denied(QePW, message=getattr(Uvf2, 'message', None)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.SAFE_METHODS:\n return True\n return YEnM.id == QePW.user.id",
"def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.SAFE_METHODS:\n return True\n return YEnM.id == QePW.user.id",
"def m4il(YKHO, QePW, tTee, YEnM):\n ... | [
"0.8233219",
"0.81073236",
"0.8062163",
"0.80545795",
"0.80545795",
"0.7992148",
"0.7978788",
"0.7948386",
"0.7944094",
"0.7928957",
"0.79191506",
"0.79100275",
"0.7898929",
"0.7892742",
"0.7887395",
"0.7880892",
"0.786043",
"0.7853925",
"0.7828313",
"0.78021914",
"0.7801279"... | 0.7935371 | 9 |
Logic to check IsAdmin | def qHTF(YKHO, QePW, tTee):
return QePW.user.group == 'admin' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Kb1(YKHO):\n return YKHO.admin",
"def _Kb1(YKHO):\n return False",
"def _Kb1(YKHO):\n return YKHO.admin",
"def _Kb1(YKHO):\n if YKHO.type == 1:\n return True\n else:\n return False",
"def _Kb1(YKHO):\n return YKHO._is_admin",
"def _Kb1(YKHO):\n return YKHO._is_admi... | [
"0.8365019",
"0.82752836",
"0.8188533",
"0.81780964",
"0.80866367",
"0.80866367",
"0.80189764",
"0.80126745",
"0.80063874",
"0.7969319",
"0.79527736",
"0.79527736",
"0.7943225",
"0.79196393",
"0.7906165",
"0.7893259",
"0.78324926",
"0.782546",
"0.7793185",
"0.7772955",
"0.775... | 0.70080054 | 78 |
Detect if a string is unicode and encode as utf8 if necessary | def fmbn(YKHO, KCHu):
if isinstance(KCHu, QMSQ):
return KCHu.encode('utf-8')
else:
return KCHu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gPBH(vIwR, tZ2K):\n if isinstance(vIwR, Gv0t.unicode_type):\n return vIwR.encode(tZ2K)\n else:\n return vIwR",
"def F5lT(vIwR):\n if isinstance(vIwR, QMSQ):\n try:\n return vIwR.encode('utf-8')\n except:\n return vIwR\n return str(vIwR)",
"def Z... | [
"0.8235775",
"0.7682714",
"0.761567",
"0.757977",
"0.7336079",
"0.7318566",
"0.72909296",
"0.72722745",
"0.7269364",
"0.7258999",
"0.72548974",
"0.72349155",
"0.7132942",
"0.7106343",
"0.70799017",
"0.70676583",
"0.7016419",
"0.6975712",
"0.69728166",
"0.6971774",
"0.69609606... | 0.7614967 | 3 |
Get dataset directory path | def kyd_(j3aw, h_xa=None, xtX7=None, S2kk=True):
if not h_xa:
h_xa = Hy7s.getenv('DAGBLDR_DATA', Hy7s.path.join(Hy7s.path.expanduser('~'), 'dagbldr_data'))
if xtX7 is None:
h_xa = Hy7s.path.join(h_xa, j3aw)
else:
h_xa = Hy7s.path.join(h_xa, xtX7)
if not Hy7s.path.exists(h_xa) and... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tETI(YKHO):\n return YKHO._dataset_dir",
"def mC1D(Emd4):\n iGvk = Hy7s.path.dirname(xAKo)\n VqRE = Hy7s.path.abspath(Hy7s.path.join(iGvk, '..', 'datasets', wJxA('DATA_FILENAME')))\n return VqRE",
"def mC1D(__n6, BuX_=GDa9.WORK_DIR):\n return zOLB(BuX_, GDa9.DATA_DIR, __n6)",
"def uRIH(YKH... | [
"0.86802703",
"0.84927994",
"0.833197",
"0.8127515",
"0.795427",
"0.79035944",
"0.7859111",
"0.7820627",
"0.7797325",
"0.7766699",
"0.77482384",
"0.77009135",
"0.7679224",
"0.764534",
"0.7640673",
"0.7640673",
"0.7578858",
"0.7549296",
"0.7542878",
"0.75077206",
"0.7500093",
... | 0.69216084 | 62 |
returns True if prob(`n` is prime) <= 2(`target`) | def c2Rc(exwG, pan_=128):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pZ6m(exwG):\n if q0b5[exwG]:\n return True\n else:\n return False",
"def Z_s9(exwG):\n for YRbF in range(2, exwG):\n if exwG % YRbF == 0:\n return False\n return True",
"def DvCG(XP5J):\n return XP5J % 4 == 3 and b1vw(XP5J, accuracy=100)",
"def T1qg(exwG):\n... | [
"0.65185803",
"0.6411449",
"0.6252246",
"0.6240773",
"0.61441463",
"0.612877",
"0.61243665",
"0.6093008",
"0.6086957",
"0.60837",
"0.6072287",
"0.60722363",
"0.6065737",
"0.6044747",
"0.6018856",
"0.6015212",
"0.5995672",
"0.5987627",
"0.5983543",
"0.59587085",
"0.5928701",
... | 0.0 | -1 |
Queries whether the coordinates in a given array lie within the rectangular sector. If no coordinate is inside, the nearest one to the rectangle center | def sjXf(YKHO, oeNL):
BQGg = min(YKHO.x_min, YKHO.x_max)
bYzl = max(YKHO.x_min, YKHO.x_max)
h3cg = min(YKHO.y_min, YKHO.y_max)
Z3uP = max(YKHO.y_min, YKHO.y_max)
csqQ = YKHO.abs_tol
if YKHO.include_border:
noZV = (oeNL[0, :] - BQGg > -csqQ) * (oeNL[0, :] - bYzl < csqQ) * (oeNL[1, :] - h3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OfD9(jzdc, Fg_i, Z9rn, WKvO, LVAh=None):\n dqxq = jzdc.x < WKvO.x < Fg_i.x and jzdc.y < WKvO.y < Z9rn.y\n return dqxq if LVAh is None else dqxq and jzdc.x < LVAh.x < Fg_i.x and (jzdc.y < LVAh.y < Z9rn.y)",
"def p4_Z(wF0t, raMf, Y6Km, qMXf, iH7q, RS0L):\n return Y6Km <= wF0t < Y6Km + iH7q and qMXf <=... | [
"0.6389873",
"0.6386841",
"0.6366608",
"0.6340976",
"0.6286869",
"0.6264496",
"0.6238886",
"0.62013626",
"0.6182754",
"0.61706823",
"0.61654305",
"0.61147875",
"0.609145",
"0.60809505",
"0.60798424",
"0.6070196",
"0.6062104",
"0.605309",
"0.6029966",
"0.6010486",
"0.6004462",... | 0.61862457 | 8 |
Return x with the kth bit unset. | def qEoL(WKvO, G1Hx):
return WKvO & ~(1 << G1Hx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZ_c(WKvO, G1Hx):\n if WKvO == -1:\n return -1\n return (WKvO << G1Hx) // oJjO(WKvO)",
"def RWEF(WKvO, G1Hx):\n return dh6q(WKvO) << G1Hx",
"def ihRY(WKvO, G1Hx):\n return WKvO ^ 1 << G1Hx",
"def SMHM(WKvO, G1Hx):\n return WKvO >> G1Hx & 1",
"def hngZ(WKvO, G1Hx):\n return WKvO... | [
"0.785679",
"0.672574",
"0.6647436",
"0.661932",
"0.6595134",
"0.6560402",
"0.6560175",
"0.6538527",
"0.6374372",
"0.6225628",
"0.60957354",
"0.5836835",
"0.5782423",
"0.56798875",
"0.56410295",
"0.5630133",
"0.5604995",
"0.5586543",
"0.5531352",
"0.5527269",
"0.5489902",
"... | 0.8371103 | 0 |
Return x with the lowest unset bit set to 1. | def qGh2(WKvO):
return WKvO | WKvO + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oJjO(WKvO):\n return ~WKvO & WKvO + 1",
"def Y83U(WKvO):\n return WKvO & -WKvO",
"def dhX8(WKvO):\n return WKvO & WKvO - 1",
"def fnCj(WKvO):\n return WKvO & ~(WKvO - 1)",
"def bxd7(WKvO):\n return WKvO & WKvO - 1",
"def xPUT(WKvO, mRnc):\n if WKvO == -1:\n return -1\n ret... | [
"0.86741453",
"0.8289608",
"0.828684",
"0.8127598",
"0.7477113",
"0.7472726",
"0.73668766",
"0.709176",
"0.6992917",
"0.6984007",
"0.6536291",
"0.64560443",
"0.6389169",
"0.6286382",
"0.6286382",
"0.6244122",
"0.61941826",
"0.6119925",
"0.60861117",
"0.6072724",
"0.6052655",
... | 0.8139838 | 3 |
Return x with the lowest set bit extended to the right. | def lMN9(WKvO):
return WKvO | WKvO - 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y83U(WKvO):\n return WKvO & -WKvO",
"def aHkc(WKvO):\n return WKvO & WKvO + 1",
"def oJjO(WKvO):\n return ~WKvO & WKvO + 1",
"def dhX8(WKvO):\n return WKvO & WKvO - 1",
"def fnCj(WKvO):\n return WKvO & ~(WKvO - 1)",
"def qGh2(WKvO):\n return WKvO | WKvO + 1",
"def bxd7(WKvO):\n ... | [
"0.8246262",
"0.80287576",
"0.7680289",
"0.758844",
"0.72759986",
"0.7122231",
"0.7062122",
"0.6962807",
"0.69216734",
"0.6797617",
"0.6734647",
"0.67007136",
"0.6609793",
"0.6515218",
"0.649581",
"0.6489792",
"0.64044863",
"0.6327192",
"0.6242736",
"0.6075741",
"0.60599774",... | 0.8558883 | 0 |
Return a number with only the lowest set bit of x set high. | def Y83U(WKvO):
return WKvO & -WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oJjO(WKvO):\n return ~WKvO & WKvO + 1",
"def dhX8(WKvO):\n return WKvO & WKvO - 1",
"def fnCj(WKvO):\n return WKvO & ~(WKvO - 1)",
"def qGh2(WKvO):\n return WKvO | WKvO + 1",
"def lMN9(WKvO):\n return WKvO | WKvO - 1",
"def aHkc(WKvO):\n return WKvO & WKvO + 1",
"def bxd7(WKvO):\n... | [
"0.83368045",
"0.8178622",
"0.7791736",
"0.7705958",
"0.76094395",
"0.7425341",
"0.7420755",
"0.7139553",
"0.7130183",
"0.7092812",
"0.689913",
"0.6897876",
"0.6850305",
"0.64095664",
"0.64000577",
"0.6246631",
"0.62212706",
"0.62212706",
"0.6080144",
"0.60384214",
"0.600134"... | 0.87011707 | 0 |
Return a number with only the lowest unset bit of x set high. | def oJjO(WKvO):
return ~WKvO & WKvO + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qGh2(WKvO):\n return WKvO | WKvO + 1",
"def dhX8(WKvO):\n return WKvO & WKvO - 1",
"def Y83U(WKvO):\n return WKvO & -WKvO",
"def fnCj(WKvO):\n return WKvO & ~(WKvO - 1)",
"def aHkc(WKvO):\n return WKvO & WKvO + 1",
"def xPUT(WKvO, mRnc):\n if WKvO == -1:\n return -1\n retu... | [
"0.84037507",
"0.83467925",
"0.81635994",
"0.77223295",
"0.7654197",
"0.7427513",
"0.7378457",
"0.72598803",
"0.72150075",
"0.64417297",
"0.64139",
"0.6370859",
"0.63298297",
"0.6295853",
"0.6222663",
"0.6191402",
"0.6161103",
"0.6161103",
"0.61456406",
"0.60763246",
"0.59350... | 0.87053716 | 0 |
Return True if the kth bit of x is set. | def bIdP(WKvO, G1Hx):
return SMHM(WKvO, G1Hx) == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SMHM(WKvO, G1Hx):\n return WKvO >> G1Hx & 1",
"def NZgF(WKvO, G1Hx):\n return WKvO | 1 << G1Hx",
"def hngZ(WKvO, G1Hx):\n return WKvO & 1 << G1Hx",
"def ihRY(WKvO, G1Hx):\n return WKvO ^ 1 << G1Hx",
"def sjXf(YKHO, WKvO):\n for YRbF in range(YKHO.k):\n if YKHO.bits[nV75.hash(WKvO,... | [
"0.7360053",
"0.7071993",
"0.7017226",
"0.67987436",
"0.6559385",
"0.64691454",
"0.63955414",
"0.62079245",
"0.6098993",
"0.60845166",
"0.60655105",
"0.59974104",
"0.5901778",
"0.58625376",
"0.5828601",
"0.57815087",
"0.57742256",
"0.57185435",
"0.5714837",
"0.5713286",
"0.57... | 0.8555022 | 0 |
Return True if x is odd. | def kYZq(WKvO):
return WKvO & 1 == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYZq(YKHO, WKvO):\n return WKvO % 2",
"def kYZq(WKvO):\n if WKvO % 2 == 1:\n return True\n else:\n return False",
"def kYZq(WKvO):\n return WKvO % 2 != 0",
"def ubP8(YKHO, WKvO):\n return WKvO % 2 == 0",
"def kYZq(FGW3):\n return FGW3 % 2 != 0",
"def kYZq(FGW3: int) ->... | [
"0.92417246",
"0.90397656",
"0.89947265",
"0.86413765",
"0.82064384",
"0.8120293",
"0.81164205",
"0.8112446",
"0.80544883",
"0.80518025",
"0.7995396",
"0.76766104",
"0.7660533",
"0.75783783",
"0.75357056",
"0.7442092",
"0.74060404",
"0.73995054",
"0.7397562",
"0.73860157",
"0... | 0.85491544 | 4 |
Return True if x is a power of two meaning x only has one bit set high. | def Wwwt(WKvO):
return WKvO != 0 and dhX8(WKvO) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dmvc(WKvO):\n return WKvO == fnCj(WKvO)",
"def KMom(mLGw):\n return mLGw & mLGw - 1 == 0 and mLGw > 0",
"def KMom(mLGw):\n return mLGw & mLGw - 1 == 0 and mLGw > 0",
"def gEah(YKHO, exwG: int) -> bool:\n if exwG <= 0:\n return False\n return bin(exwG).count('1') == 1",
"def Dmvc(m... | [
"0.84522396",
"0.76572716",
"0.76572716",
"0.7444844",
"0.74082875",
"0.73730993",
"0.72849196",
"0.7276963",
"0.7218001",
"0.6895004",
"0.670227",
"0.6657333",
"0.64511126",
"0.6438028",
"0.6429878",
"0.6368955",
"0.63538283",
"0.61974114",
"0.61510456",
"0.6137991",
"0.6086... | 0.89744943 | 0 |
Return the n least significant bits of x. | def nVyT(WKvO, exwG):
return WKvO & pSfY(exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y83U(WKvO):\n return WKvO & -WKvO",
"def oJjO(WKvO):\n return ~WKvO & WKvO + 1",
"def KowF(WKvO, exwG):\n return WKvO >> exwG & 1",
"def L89Z(bVvo: int) -> int:\n WKvO = bVvo\n for YRbF in range(WKvO.bit_length()):\n if WKvO & 1 << YRbF > 0:\n return WKvO.bit_length() - Y... | [
"0.75937796",
"0.7344321",
"0.7224334",
"0.7020355",
"0.7008437",
"0.6986647",
"0.69712573",
"0.6967072",
"0.69609517",
"0.6890778",
"0.68332714",
"0.6801609",
"0.67847633",
"0.67075855",
"0.66670066",
"0.6633309",
"0.6616294",
"0.6567858",
"0.6560542",
"0.65295297",
"0.65019... | 0.8861537 | 0 |
Return x with bits swapped according to bit_array. If bit_array has two bits set high, these two bits indicate the two bits that you want to swap. If bit_array only has one bit set high, the second bit defaults to the first bit index + 1. If bit_array has no bits set high, nothing is swapped. | def W2iF(WKvO, mRnc):
if Wwwt(mRnc):
mRnc |= mRnc << 1
if Wwwt(WKvO & mRnc):
WKvO ^= mRnc
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ReU8(WKvO, mRnc):\n ZHfW = mRnc - 1\n LSh8 = WKvO & ZHfW\n CN9P = WKvO & ~ZHfW\n return (LSh8, CN9P)",
"def xPUT(WKvO, mRnc):\n if WKvO == -1:\n return -1\n return WKvO * mRnc // oJjO(WKvO)",
"def eLDi(WKvO, mRnc):\n return dh6q(WKvO) * mRnc",
"def Te13(WKvO, YRbF, r845):\n ... | [
"0.7058473",
"0.6840852",
"0.67505944",
"0.6483858",
"0.6273972",
"0.6252496",
"0.60304403",
"0.58818495",
"0.58431095",
"0.5740533",
"0.5719198",
"0.55437213",
"0.552858",
"0.5495178",
"0.5482866",
"0.54474443",
"0.53210145",
"0.5308464",
"0.52962476",
"0.5262038",
"0.525798... | 0.8700425 | 0 |
Return x logically right shifted by k. k can be negative, which would mean a logical left shift. | def ZeYs(WKvO, G1Hx):
if G1Hx >= 0:
return WKvO << G1Hx
else:
return WKvO >> -G1Hx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZ_c(WKvO, G1Hx):\n if WKvO == -1:\n return -1\n return (WKvO << G1Hx) // oJjO(WKvO)",
"def RWEF(WKvO, G1Hx):\n return dh6q(WKvO) << G1Hx",
"def SMHM(WKvO, G1Hx):\n return WKvO >> G1Hx & 1",
"def hngZ(WKvO, G1Hx):\n return WKvO & 1 << G1Hx",
"def ihRY(WKvO, G1Hx):\n return WKvO... | [
"0.73530054",
"0.7301117",
"0.6804961",
"0.6659019",
"0.653539",
"0.64145637",
"0.6338609",
"0.63025296",
"0.624316",
"0.62376416",
"0.6236587",
"0.62338376",
"0.6064034",
"0.6064034",
"0.6008495",
"0.59854186",
"0.5864433",
"0.5854073",
"0.5837134",
"0.5777427",
"0.57766527"... | 0.8206654 | 0 |
Return x with the trailing 1's shifted out (to the right). You can also think of it as shifting the lowest unset bit to the 0th bit. If there are no 0's, return 1. | def jOsv(WKvO):
if WKvO == -1:
return -1
return WKvO // oJjO(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dh6q(WKvO):\n if WKvO == 0:\n return 0\n return WKvO // Y83U(WKvO)",
"def qGh2(WKvO):\n return WKvO | WKvO + 1",
"def oJjO(WKvO):\n return ~WKvO & WKvO + 1",
"def aHkc(WKvO):\n return WKvO & WKvO + 1",
"def bxd7(WKvO):\n return WKvO & WKvO - 1",
"def QV0Z(WKvO: int) -> int:\n... | [
"0.84050584",
"0.760099",
"0.75577164",
"0.7538504",
"0.73925316",
"0.733938",
"0.72805756",
"0.72624636",
"0.72570235",
"0.70080304",
"0.6960269",
"0.6888363",
"0.6810049",
"0.65769964",
"0.6575856",
"0.6529422",
"0.6500505",
"0.6482913",
"0.6428625",
"0.6344328",
"0.6210393... | 0.86418754 | 0 |
Return x with the lowest set bit shifted to the kth bit. If there are no 1's, return 0. This can use shift_trailing_zeros() on x first because the lost 0's will be shifted back in. | def RWEF(WKvO, G1Hx):
return dh6q(WKvO) << G1Hx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZ_c(WKvO, G1Hx):\n if WKvO == -1:\n return -1\n return (WKvO << G1Hx) // oJjO(WKvO)",
"def ZeYs(WKvO, G1Hx):\n if G1Hx >= 0:\n return WKvO << G1Hx\n else:\n return WKvO >> -G1Hx",
"def uWbJ(WKvO, G1Hx, zNig, vgXP=0):\n ANfV = WKvO >> vgXP\n ANfV >>= G1Hx * zNig\n ... | [
"0.848231",
"0.79114425",
"0.75010514",
"0.74990636",
"0.73637533",
"0.6855699",
"0.67306244",
"0.6711019",
"0.66867274",
"0.6631109",
"0.65762556",
"0.6496599",
"0.64825374",
"0.63554454",
"0.63347757",
"0.63296217",
"0.625746",
"0.62024456",
"0.61418575",
"0.61057866",
"0.6... | 0.89036864 | 0 |
Return x with the lowest unset bit shifted to the kth bit. If there are no 0's, return 1. This can't use shift_trailing_ones() on x first because the ones will be lost. | def ZZ_c(WKvO, G1Hx):
if WKvO == -1:
return -1
return (WKvO << G1Hx) // oJjO(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RWEF(WKvO, G1Hx):\n return dh6q(WKvO) << G1Hx",
"def ZeYs(WKvO, G1Hx):\n if G1Hx >= 0:\n return WKvO << G1Hx\n else:\n return WKvO >> -G1Hx",
"def hngZ(WKvO, G1Hx):\n return WKvO & 1 << G1Hx",
"def SMHM(WKvO, G1Hx):\n return WKvO >> G1Hx & 1",
"def oJjO(WKvO):\n return ~... | [
"0.85546774",
"0.74955034",
"0.72534764",
"0.7177372",
"0.7127356",
"0.7074932",
"0.6874598",
"0.6869122",
"0.67564464",
"0.6744918",
"0.66561425",
"0.6588411",
"0.65520877",
"0.6499034",
"0.64703053",
"0.63558346",
"0.6336695",
"0.63219285",
"0.6312908",
"0.6254256",
"0.6200... | 0.8622787 | 0 |