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
The sum of self and other.
def FOdN(YKHO, Elif): try: g9xt = YKHO._num * Elif._den + YKHO._den * Elif._num yxwZ = YKHO._den * Elif._den return Hruk(g9xt, yxwZ) except AttributeError: return YKHO + Hruk.parse_number(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOdN(YKHO, Elif):\n try:\n wjRY = {YKHO.var: 1, Elif.var: 1}\n return FGnc(YKHO.val + Elif.val, None, der=wjRY)\n except AttributeError:\n return FGnc(YKHO.val + Elif, None, {YKHO.var: 1})", "def K7GD(YKHO, Elif):\n return YKHO + Elif", "def K7GD(YKHO, Elif):\n return YKHO ...
[ "0.7947677", "0.77887416", "0.77887416", "0.77651924", "0.7717441", "0.77122545", "0.77122545", "0.77122545", "0.77122545", "0.77122545", "0.77122545", "0.77122545", "0.76347935", "0.7619139", "0.7527559", "0.7508768", "0.73910403", "0.73910403", "0.7378393", "0.7366302", "0....
0.69016945
71
Is self equal to other?
def xa14(YKHO, Elif): try: w2rC = YKHO._num == Elif._num RGuD = YKHO._den == Elif._den return w2rC and RGuD except AttributeError: return YKHO == Hruk.parse_number(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif):\n return YKHO is Elif", "def aPi6(YKHO, Elif):\n ...", "def xa14(YKHO, Elif):\n return YKHO is Elif", "def xa14(YKHO, Elif):\n return InF8(YKHO, Elif)", "def kJ0s(YKHO, Elif):\n return super().__eq__(Elif)", "def xa1...
[ "0.8820725", "0.8820725", "0.87159795", "0.86937904", "0.8654434", "0.85539377", "0.8540647", "0.8540647", "0.8531783", "0.8507663", "0.8507663", "0.85040134", "0.8457744", "0.8453699", "0.8443939", "0.843342", "0.843342", "0.8430281", "0.84220684", "0.83970225", "0.8385382",...
0.0
-1
Is self less than other?
def JWbp(YKHO, Elif): try: yLHq = YKHO._num * Elif._den RKYb = Elif._num * YKHO._den return yLHq < RKYb except AttributeError: return YKHO < Hruk.parse_number(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TPjt(YKHO, Elif):\n return 1 - Qvn0.lt(Elif, YKHO)", "def Zcf_(YKHO, Elif):\n return 1 - Qvn0.lt(YKHO, Elif)", "def TPjt(YKHO, Elif):\n return not Elif < YKHO", "def TPjt(YKHO, Elif):\n return jgu0(YKHO, Elif)", "def TPjt(YKHO, Elif):\n return YKHO.runtime.greater_than_equal(Elif, YKHO)"...
[ "0.84359944", "0.82814175", "0.82653344", "0.8160216", "0.8149444", "0.81135225", "0.8065218", "0.8039228", "0.8039228", "0.8021802", "0.8005029", "0.7993756", "0.799117", "0.7965735", "0.79651886", "0.79651886", "0.79553676", "0.7934043", "0.7931866", "0.79014754", "0.787153...
0.7336868
95
Is self less than or equal to other?
def TPjt(YKHO, Elif): try: yLHq = YKHO._num * Elif._den RKYb = Elif._num * YKHO._den return yLHq <= RKYb except AttributeError: return YKHO <= Hruk.parse_number(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TPjt(YKHO, Elif):\n return jgu0(YKHO, Elif)", "def Zcf_(YKHO, Elif):\n return Elif <= YKHO", "def TPjt(YKHO, Elif):\n return YKHO.runtime.greater_than_equal(Elif, YKHO)", "def TPjt(YKHO, Elif):\n return 1 - Qvn0.lt(Elif, YKHO)", "def TPjt(YKHO, Elif):\n return YKHO < Elif or YKHO == Elif...
[ "0.84847564", "0.8462154", "0.84531677", "0.8440182", "0.84063125", "0.83879566", "0.8383959", "0.8335061", "0.8335061", "0.8299887", "0.8276419", "0.8276419", "0.82606417", "0.824309", "0.8220053", "0.8212114", "0.8211626", "0.8191206", "0.81797653", "0.81729305", "0.8166361...
0.79237896
43
Is self equal to 0?
def Witr(YKHO): return YKHO._num == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Witr(YKHO) -> bool:\n return YKHO.field.zero == YKHO", "def ebnO(YKHO):\n for tTpl in YKHO:\n if tTpl != 0:\n return True\n return False", "def xa14(YKHO, Elif):\n return YKHO - Elif == 0.0", "def PNxx(YKHO):\n return YKHO.count == 0", "def Witr(YKHO, jzdc):\n return...
[ "0.78026944", "0.7630986", "0.7561389", "0.74907005", "0.7483753", "0.7351913", "0.70747674", "0.7068141", "0.7048426", "0.7048426", "0.70373225", "0.6995084", "0.6882755", "0.6877487", "0.68556017", "0.68531024", "0.6839516", "0.6760004", "0.6756906", "0.672773", "0.67222327...
0.73992306
5
converts a class name to a collection name.
def dufC(NCls, Emd4): AAHb = Emd4 + 's' if not AAHb in NCls.collection_names(): try: NCls.create_collection(AAHb) except: raise return eval('db.' + AAHb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dm3d(mWFP: str) -> str:\n qQeT = O0jm.findall(mWFP)\n return '_'.join((YRbF.lower() for YRbF in qQeT if YRbF))", "def dVja(YKHO, Rr59):\n xUwc = None\n if Rr59 == 'talent5__staff_collection':\n xUwc = YKHO.talent5__staff_collection\n elif Rr59 == 'talent5__encode_collection':\n x...
[ "0.63989913", "0.6150703", "0.60976315", "0.6067518", "0.59168804", "0.5873975", "0.5857611", "0.5826658", "0.5825699", "0.57716376", "0.5733161", "0.57302594", "0.57173073", "0.5702063", "0.5659152", "0.5625095", "0.5604019", "0.55640864", "0.55379534", "0.55086833", "0.5496...
0.65355176
0
Return text between the first occurence of string start and string end in haystack.
def Ac34(yKcO, Os4s, Fq42): EmMj = ZbWC.search(yKcO + '(.*)' + Os4s, Fq42, ZbWC.IGNORECASE | ZbWC.DOTALL) if EmMj: return EmMj.group(1).strip() else: raise Exception("There is no substring starting with '{}', ending with '{}' in content '{}' ".format(yKcO, Os4s, Fq42))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z_C_(YKHO, KCHu, cntZ, XVAW):\n try:\n yKcO = KCHu.index(cntZ) + len(cntZ)\n Os4s = KCHu.index(XVAW, yKcO)\n return KCHu[yKcO:Os4s]\n except ValueError:\n return ''", "def HKLr(l5Ny, yK8j, cHN8, yKcO=0):\n KCHu = l5Ny.find(yK8j, yKcO)\n if KCHu < 0:\n return Non...
[ "0.69310933", "0.6827349", "0.6742492", "0.67385876", "0.673743", "0.6727924", "0.6695689", "0.6679793", "0.65434897", "0.6487082", "0.6473873", "0.6447456", "0.620745", "0.6158415", "0.60701555", "0.601583", "0.58966005", "0.5811713", "0.5788526", "0.57882255", "0.5746307", ...
0.842572
0
load monthly pdo dataset
def LsyZ(): jQ3Z = rLdf.read_csv('./archive/pdo_monthly.csv') mcbO = rLdf.DataFrame(index=rLdf.to_datetime(jQ3Z['yyyymm'], format='%Y%m'), columns=['pdo']) mcbO['pdo'] = jQ3Z.pdo.values return mcbO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RiKd(YKHO, lO87, x0eS):\n nPrm = RmyR(YKHO.url, YKHO.table_name, lO87, x0eS)\n nPrm = nPrm.loc[:, YKHO.table_columns]\n with YKHO.con:\n nPrm.to_sql(YKHO.table_name, con=YKHO.con, if_exists='replace', index=False)\n YKHO.con.commit()", "def K0w1():\n return rLdf.read_csv(Hy7s.path.j...
[ "0.64837146", "0.63213676", "0.6265034", "0.6207991", "0.6202124", "0.6197799", "0.618341", "0.61627", "0.61543244", "0.6145329", "0.61441267", "0.6137599", "0.612636", "0.6119787", "0.61104655", "0.610339", "0.6101154", "0.60984874", "0.60821027", "0.60752285", "0.6069135", ...
0.7482942
0
Write a single summary value to tensorboard
def W0AJ(BWXx, TZ9E, PxNv, Aak1): QxIo = ZylS.Summary() QxIo.value.add(tag=TZ9E, simple_value=BWXx) PxNv.add_summary(QxIo, Aak1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ns_k(YKHO, BWXx, TZ9E, Ks2p, Aak1):\n QxIo = ZylS.Summary()\n QxIo.value.add(tag=TZ9E, simple_value=BWXx)\n Ks2p.add_summary(QxIo, Aak1)", "def BxUN(YKHO, TZ9E, BWXx, YPaw):\n with YKHO.writer.as_default():\n ZylS.summary.scalar(name=TZ9E, data=BWXx, step=YPaw)\n YKHO.writer.flush()", ...
[ "0.7692856", "0.7424265", "0.7346214", "0.7346214", "0.7346214", "0.7255747", "0.70672417", "0.7037515", "0.70122087", "0.7000477", "0.6957464", "0.6911966", "0.6908891", "0.6880707", "0.686772", "0.6857955", "0.68418956", "0.68370825", "0.6821709", "0.6794511", "0.67150164",...
0.76693326
1
Returns the Engineering Units of the readback PV, as reported by EPICS.
def OXKy(YKHO): return YKHO.motor_egu.get()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ut5U(YKHO):\n return YKHO.generic_getter(M6MN, 'E', 'convert_energy')", "def _cil(YKHO, nUeQ):\n eHNT = _ate(nUeQ)\n pRdK = eHNT.readlines()\n eHNT.close()\n hx4G = 0\n aOI_ = []\n while hx4G >= 0:\n hx4G = f6Qh('TOTAL ENERGY', pRdK)\n if hx4G >= 0:\n aOI_.append...
[ "0.6649683", "0.66006416", "0.6219275", "0.6219275", "0.61868346", "0.6127352", "0.6121531", "0.60821927", "0.607153", "0.601557", "0.5971765", "0.5970985", "0.5935506", "0.58844244", "0.58423054", "0.5794599", "0.5789594", "0.5769547", "0.57451886", "0.57427156", "0.5727138"...
0.0
-1
Convert yposition to coating index
def gmBi(YKHO, LVAh: float) -> int: if YKHO.y_ranges == []: return 1 YrHj = YKHO._find_matching_range_indices(YKHO.y_ranges, LVAh) fzPL = oyIN.where(YrHj)[0] if len(fzPL) > 1: raise K5K0('only one y-range should be valid') elif len(fzPL) == 0: raise K5K0('Coating state is unk...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gmBi(YKHO, LVAh: int) -> int:\n if LVAh < 1:\n raise K5K0('coating state not valid or unknown')\n return LVAh - 1", "def zR73(WKvO, LVAh):\n jzdc = round(WKvO / 4000, 0) * 4000\n Fg_i = (q_4u(LVAh / 4000, 0) + 0.5) * 4000\n YRbF = int((jzdc - 24000) / 4000) + 1\n r845 = int((Fg_i - 2...
[ "0.71685374", "0.7140193", "0.69487894", "0.6777433", "0.66792977", "0.66553956", "0.6589918", "0.65641373", "0.6533462", "0.6509694", "0.63731486", "0.63672674", "0.63576", "0.63090163", "0.63031566", "0.63031566", "0.62564147", "0.624553", "0.6217407", "0.6209876", "0.62029...
0.69487137
3
Asks user to specify a city, month, and day to analyze.
def RxGd(): NGTE = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ -_(){}[]&' while True: mWFP = input('\nPlease enter your name, using only characters, spaces and hypens: ') if all((hcXw in NGTE for hcXw in mWFP)): print("\nHello {}! Let's explore some US bikeshare data!".form...
{ "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.6671396", "0.65349597", "0.6458871", "0.637442", "0.6348152", "0.63093895", "0.6286328", "0.6258814", "0.6232131", "0.6213363", "0.62047696", "0.618054", "0.6172124", "0.61680824", "0.6158066", "0.6157817", "0.6152588", "0.6143721", "0.61312693", "0.61040294", "0.61019015"...
0.0
-1
Loads data for the specified city and filters by month and day if applicable.
def UlWi(TtP7, WDfW, yYPF): jQ3Z = rLdf.read_csv(OerS[TtP7]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time']) jQ3Z['Start Month'] = jQ3Z['Start Time'].dt.month jQ3Z['Start Day'] = jQ3Z['Start Time'].dt.weekday_name jQ3Z['Start Hour']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.8131563", "0.81086665", "0.8045787", "0.80421764", "0.80088735", "0.8007066", "0.79992354", "0.7998196", "0.7988249", "0.7978888", "0.79734164", "0.79605865", "0.7955767", "0.7946851", "0.79458547", "0.79078835", "0.7907882", "0.7904109", "0.7900328", "0.78928494", "0.7888...
0.0
-1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...') SWox = ITS7.time() s532 = jQ3Z['Start Month'].value_counts()[jQ3Z['Start Month'].value_counts() == jQ3Z['Start Month'].value_counts().max()] print('\nThe most common month(s) in integer form (for example, 1=January), with counts...
{ "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.80247396", "0.80233026", "0.7915788", "0.78266186", "0.7822246", "0.78143597", "0.77659196", "0.7740343", "0.773628", "0.77344066", "0.76867086", "0.7668633", "0.7651731", "0.7644636", "0.76399267", "0.76367253", "0.7625196", "0.7623158", "0.7612803", "0.76002145", "0.7583...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() V_8k = jQ3Z['Start Station'].value_counts()[jQ3Z['Start Station'].value_counts() == jQ3Z['Start Station'].value_counts().max()] print('\nThe most commonly used start station(s), with counts:\n', V_8k) S...
{ "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.71912503
46
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...') SWox = ITS7.time() gl3U = jQ3Z['Trip Duration'].sum() print('\nThe total travel time:', gl3U) vhkz = jQ3Z['Trip Duration'].mean() print('\nThe mean travel time:', vhkz) print('\nThis took %s seconds.' % (ITS7.time() - SWox)) print('...
{ "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.8143107", "0.80261016", "0.8005204", "0.79381585", "0.79319245", "0.7927495", "0.79160804", "0.7915442", "0.7908906", "0.790647", "0.7901531", "0.7892363", "0.7890434", "0.78873086", "0.7885862", "0.7885026", "0.7883604", "0.7874962", "0.7869428", "0.7867245", "0.7864788",...
0.79503816
3
Generate dictionary that represents the manifest The single key at the top is a generated string of the form PRODUCTVERSIONBLD_NUM and the value is a dictionary containing the collected data from the manifest
def eE0c(YKHO): XgyP = dict() for ZSNT in YKHO.projects.get('build', []): for ICn2 in ZSNT.get('annotation', []): XgyP[ICn2['name']] = ICn2['value'] Lx3t = XgyP.get('PRODUCT', 'unknown') DpZH = XgyP.get('VERSION', 'unknown') OhM0 = XgyP.get('BLD_NUM', '9999') ra_X = '{}-{}-{}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZ59(mWFP: str, DpZH: str, JBZA: str) -> cuzp[str, uLKX[str, x1iM[str]]]:\n return {'name': mWFP, 'version_number': DpZH, 'website_url': mXfM, 'description': JBZA, 'dependencies': []}", "def Lb40(YKHO):\n import json\n import struct\n mLGw = YKHO.selection\n try:\n Kz8N = json.loads(YKH...
[ "0.6723729", "0.660061", "0.63167304", "0.6301826", "0.6301826", "0.6151704", "0.61013114", "0.6035424", "0.58860636", "0.5841266", "0.5780536", "0.5772059", "0.5730861", "0.57131946", "0.56993896", "0.5680654", "0.56622285", "0.5651734", "0.56483537", "0.56352484", "0.562787...
0.74733555
0
Ensure the url doesn't start with either git or hg.
def gmoQ(bD7m): if not bD7m.startswith(('git+', 'hg+')): return bD7m return bD7m[4:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jr1t(bD7m):\n return N7E5(bD7m) != {}", "def dgQS(NsNG: Tuple[str, ValidatedMismatchType]) -> bool:\n bGrB, (jeGQ, bGrB) = NsNG\n return jeGQ.startswith('git')", "def uYAr(bD7m):\n return bD7m.replace('.git', '')", "def jp3j(YKHO):\n VXBI = FS5M('org', 'course', 'run')\n with YKHO.asser...
[ "0.66992337", "0.66715586", "0.6491474", "0.6354417", "0.62808365", "0.6273125", "0.61421114", "0.6134395", "0.6080041", "0.60779494", "0.60522074", "0.5990106", "0.5959558", "0.5928997", "0.5924408", "0.59096044", "0.58794314", "0.58471155", "0.5845393", "0.58164054", "0.581...
0.7623044
0
Tests whether a line contains only whitespace.
def SA09(zFiD): return not bool(zFiD.strip())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X63N(zFiD: str) -> bool:\n return zFiD != ' ' and zFiD != ''", "def uRZU(YKHO):\n BWXx = YKHO.current.value\n if BWXx == '\\n':\n YKHO.is_space = True\n else:\n YKHO.is_space = False\n if BWXx == '' or tHUN['whitespace'].match(BWXx):\n YKHO.is_space = True", "def...
[ "0.76573575", "0.76201767", "0.7491552", "0.7323895", "0.7289925", "0.7212329", "0.720179", "0.71086794", "0.7089248", "0.70851374", "0.70671356", "0.70643705", "0.6998826", "0.69024354", "0.6850201", "0.68233633", "0.6722262", "0.67207265", "0.66700274", "0.66336924", "0.660...
0.72711307
5
Expands all but leading tabs to spaces.
def Fgs5(zFiD, bPOG): assert bPOG > 0 TBsA = list() YRbF = 0 while YRbF < len(zFiD) and zFiD[YRbF] == '\t': YRbF += 1 MnRD = '\t' * YRbF while YRbF < len(zFiD): if zFiD[YRbF] == '\t': EdbX = bPOG - len(TBsA) % bPOG TBsA.extend((' ' for YRbF in range(EdbX))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WVWl(l5Ny, agdd=1):\n return l5Ny.expandtabs(agdd)", "def nJ_J(l5Ny, oi6k=4):\n return l5Ny.replace('\\t', ' ' * oi6k)", "def ZTzC(YKHO, l5Ny):\n if l5Ny:\n Nqlg = l5Ny.splitlines()\n Nqlg = [vC9B for vC9B in Nqlg if vC9B]\n LVAh = Nqlg[0]\n sAiE = YKHO.indent_width(LVA...
[ "0.6872284", "0.677523", "0.672045", "0.6563201", "0.6434349", "0.64189017", "0.6381054", "0.6373866", "0.6363714", "0.6330364", "0.62977666", "0.62646765", "0.6256042", "0.6204302", "0.61786246", "0.6156192", "0.61003727", "0.6031927", "0.60062546", "0.5997786", "0.59057087"...
0.6080902
17
Given a file name, `return`s the file name for the corresponding backup file.
def jGiy(Ux0P): NYdq = '~' if Hy7s.name == 'posix' else '.backup' if Ux0P.endswith(NYdq): raise ValueError('Looks like a backup file: ' + Ux0P) return Ux0P + NYdq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v_Ac(VqRE):\n return Hy7s.path.basename(VqRE)", "def g_2H(nUeQ):\n return Hy7s.path.splitext(Hy7s.path.basename(nUeQ))[0]", "def yFjF(VqRE):\n return Hy7s.path.basename(VqRE)", "def aPr_(qaEx):\n return Hy7s.path.basename(qaEx)", "def ROuq(AesY):\n assert Hy7s.path.exists(AesY)\n EMqi...
[ "0.68049634", "0.66896194", "0.6521807", "0.65215206", "0.65059775", "0.65026", "0.64820296", "0.6388873", "0.6388873", "0.63628435", "0.6348544", "0.62847257", "0.6257556", "0.6215179", "0.62088436", "0.6183706", "0.6106535", "0.608851", "0.6087688", "0.6070777", "0.6070642"...
0.72565037
0
`return`s a list of of versioncontrolled files as reported by `git lsfiles` filtered to contain only regular files. [str] list of file names OSError if running Git fails
def SC55(): NRWD = Yn3K.Popen(['git', 'ls-files'], stdin=Yn3K.DEVNULL, stdout=Yn3K.PIPE, stderr=None) zJsh, wIbz = NRWD.communicate() if NRWD.returncode != 0: raise OSError('Cannot list version-controlled files') iumf = zJsh.decode().split() return list(filter(_yJX, iumf))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TF8Z():\n NmfV = []\n QOe9 = Hy7s.popen('git show --name-only')\n zsTe = Hy7s.popen('git rev-parse --show-toplevel')\n zsTe = zsTe.readlines()\n zsTe = zsTe[0]\n zsTe = zsTe.replace('\\n', '')\n if 'Not a git repository' in zsTe:\n NmfV.append('Not a git repository')\n return...
[ "0.77477914", "0.7573615", "0.72460854", "0.7168919", "0.71008813", "0.6920087", "0.68402743", "0.6774799", "0.67328686", "0.6728607", "0.65776646", "0.65639526", "0.6547751", "0.6474594", "0.6345377", "0.6303023", "0.62841076", "0.62651634", "0.6259392", "0.62436914", "0.621...
0.8440022
0
Obtains the first element in a pair.
def cntZ(q2Xo): return q2Xo[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CsFy(q2Xo):\n return q2Xo[1]", "def NM52(U34r):\n return U34r[0]", "def XcNI(YKHO):\n if YKHO.is_empty():\n return None\n else:\n XP5J = YKHO.first()\n return (XP5J.key(), XP5J.value())", "def cntZ(fUYa):\n if not fUYa:\n return None\n return fUYa[0]", "def...
[ "0.7328187", "0.6754345", "0.66419613", "0.662139", "0.662139", "0.657316", "0.6535706", "0.6476364", "0.6389532", "0.6367985", "0.636334", "0.636334", "0.6287136", "0.6252859", "0.6247001", "0.62439734", "0.61664194", "0.61523044", "0.6151724", "0.6071555", "0.60541093", "...
0.88343024
0
Test that redirection is disabled.
def eol6(YKHO): YKHO.assertRaises(NotImplementedError, YKHO.handler.redirect, '/')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dsz_(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 404)", "def Te6Q(YKHO):\n geh0 = YKHO.client.get(gxEw('question_list'), follow=True)\n NRhD = gxEw('home') + '?next=' + gxEw('question_list')\n YKHO.assertRedirects(geh0, NRhD, status_code=302, target_status_co...
[ "0.6628034", "0.6605337", "0.6558704", "0.65535605", "0.65284395", "0.6514763", "0.6406585", "0.63627374", "0.62773305", "0.61921173", "0.61354196", "0.6119285", "0.610915", "0.6104482", "0.6074708", "0.60527", "0.6042703", "0.60406125", "0.60280174", "0.60243154", "0.5994112...
0.6275593
9
Test what happens when GET is not supported.
def Iqiz(YKHO): YKHO.mox.ReplayAll() YKHO.handler.handle('GET', '/my_service', 'method1') YKHO.VerifyResponse('405', 'Method Not Allowed', '/my_service.method1 is a ProtoRPC method.\n\nService %s.Service\n\nMore about ProtoRPC: http://code.google.com/p/google-protorpc' % (__name__,), 'text/plain; charset=ut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def udLJ(YKHO):\n geh0 = YKHO.client.get(gxEw('user-list'))\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_405_METHOD_NOT_ALLOWED)", "def NWYd(YKHO):\n QePW = zVa7.get_request('GET', {})\n WKvO = YKHO.start_request_tests(QePW)\n YKHO.assertEqual(WKvO.status_code, 405)\n qQXR.dump(WKvO.to_dict()...
[ "0.76834744", "0.75739855", "0.75163734", "0.75105375", "0.7362107", "0.7236172", "0.7098942", "0.7081236", "0.69224787", "0.682358", "0.6817697", "0.6783566", "0.6773036", "0.6756274", "0.6720492", "0.67003727", "0.6664823", "0.66637963", "0.66461253", "0.65994203", "0.65483...
0.6867098
9
Set up test framework.
def FCbF(YKHO): YKHO.Reinitialize()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.framework = awwH.get_framework()\n YKHO.framework.start()\n YKHO.ipopo = nXEL(YKHO.framework)\n YKHO.module = CGNn(YKHO.framework)", "def FCbF(YKHO):\n G9jH.debug('setting up')", "def FCbF(YKHO):\n G9jH.debug('setting up')", "def FCbF(YKHO):\n from . import main\n ...
[ "0.74742806", "0.7299929", "0.7299929", "0.7208573", "0.7160565", "0.70908165", "0.7007824", "0.6996411", "0.69516504", "0.6913872", "0.6913872", "0.69055367", "0.6894395", "0.6874683", "0.68633044", "0.6856716", "0.685645", "0.6824801", "0.6824801", "0.67973596", "0.67973596...
0.0
-1
Updates current tag categories with the given ones
def lu1N(YKHO): for xFfn in YKHO._tags_btn_grp.buttons(): YKHO._tags_btn_grp.removeButton(xFfn) XAnW.clear_layout(YKHO._tags_menu_layout) if not YKHO._outliners: return nwJw = 0 WBmJ = YKHO._outliners.keys() for Ghho in WBmJ: iOy2 = h5Ey(Ghho.title()) iOy2.categor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lu1N(YKHO):\n LeZt = {}\n gMbG = YKHO.data['dataset']\n MjVz = YKHO._get_list_categories_used(gMbG)\n for Ghho in MjVz:\n LeZt.update({Ghho: YKHO._get_datasets_tasks_by_category(gMbG, Ghho)})\n YKHO.data['category'] = LeZt", "def mBI6(YKHO, LeZt):\n ED_H = dict(YKHO.getCategoryVocabu...
[ "0.68098783", "0.66271836", "0.6192116", "0.6174169", "0.6169032", "0.60949963", "0.6077559", "0.6058552", "0.60501236", "0.60501236", "0.60501236", "0.60501236", "0.6043331", "0.6011572", "0.5997483", "0.5994293", "0.59855324", "0.59319335", "0.58538526", "0.584725", "0.5844...
0.64653957
2
Calculate the signed area of nonselfintersecting polygon Input
def vXkR(j5tF, i1fZ=False): V6IE = XTiz.array(j5tF) tO9_ = 'Polygon is assumed to consist of coordinate pairs. I got second dimension %i instead of 2' % V6IE.shape[1] assert V6IE.shape[1] == 2, tO9_ tO9_ = 'Polygon is assumed to be closed. However first and last coordinates are different: (%f, %f) and (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZrLT(WKvO, LVAh):\n return 0.5 * oyIN.abs(oyIN.dot(WKvO, oyIN.roll(LVAh, 1)) - oyIN.dot(LVAh, oyIN.roll(WKvO, 1)))", "def ZrLT(cyvo):\n m07n = cyvo.vertices\n if len(m07n) < 3:\n return 0.0\n A3mO = m07n[:, 1] - m07n[:, 1].mean()\n ijL8 = m07n[:, 0] - m07n[:, 0].mean()\n i0Uw = A3mO[...
[ "0.7630188", "0.7455913", "0.74407256", "0.7281379", "0.71095943", "0.70286936", "0.697586", "0.6917494", "0.68598086", "0.6822156", "0.6787302", "0.6774864", "0.67683786", "0.67537516", "0.6734002", "0.67136335", "0.67073476", "0.66870266", "0.6684328", "0.6679429", "0.66521...
0.69708323
7
Delegate attribute lookup to ``ssh.SFTPClient`` instance.
def JgjC(YKHO, mWFP): return getattr(YKHO._client, mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mHq2(YKHO):\n if not YKHO.sftp_open:\n YKHO.sftp = Ub64.SFTPClient.from_transport(YKHO.transport)\n YKHO.sftp_open = True", "def BAQn(LxQx):\n npUW = LxQx.open_sftp()\n return npUW", "def open(YKHO):\n YKHO._paramiko_sftp_client = YKHO._ssh_client.paramiko_ssh_client.open_sftp()",...
[ "0.5755109", "0.54960364", "0.5491042", "0.54413414", "0.5349827", "0.5334577", "0.52766776", "0.5215798", "0.5173208", "0.5156688", "0.5116287", "0.5080936", "0.5080936", "0.5035736", "0.49844262", "0.49668854", "0.49582428", "0.49567944", "0.49426222", "0.49356583", "0.4904...
0.0
-1
Sets the start_duration_ignore of this CaptionsTest.
def Phyv(YKHO, Phyv): YKHO._start_duration_ignore = Phyv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vljf(YKHO, vljf):\n YKHO._end_duration_ignore = vljf", "def i2AL(YKHO, WbTE):\n YKHO.__test_result[nQ3j.__DURATION] = round(WbTE * 1000)", "def nYNq(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=ukQ...
[ "0.65578175", "0.56109625", "0.546896", "0.5431605", "0.5342073", "0.5319361", "0.5301435", "0.5301435", "0.5279195", "0.5279195", "0.5279195", "0.5279195", "0.5279195", "0.5244279", "0.5234189", "0.5218737", "0.5191608", "0.5129652", "0.512705", "0.512705", "0.5123905", "0...
0.8553009
0
Sets the start_duration_secs_or_frames of this CaptionsTest.
def KmXh(YKHO, KmXh): YKHO._start_duration_secs_or_frames = KmXh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i2AL(YKHO, uD2Z):\n raise STYL('Duration not implemented')", "def SWox(YKHO, BWXx):\n YKHO._start_time = BWXx", "def I_9r(YKHO, *qIxc, **B2fa):\n return tGN_.usrp_source_sptr_set_start_time(YKHO, *qIxc, **B2fa)", "def yKcO(YKHO, WbTE=None):\n if WbTE is None:\n WbTE = YKHO.duration\n ...
[ "0.5868528", "0.586654", "0.5779276", "0.57150674", "0.5705644", "0.5705644", "0.5705644", "0.5705644", "0.5705644", "0.5703265", "0.5703265", "0.56981725", "0.55796593", "0.55634195", "0.55390906", "0.54999304", "0.5448036", "0.5431289", "0.5403135", "0.5371566", "0.53468233...
0.817087
0
Sets the end_duration_ignore of this CaptionsTest.
def vljf(YKHO, vljf): YKHO._end_duration_ignore = vljf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Phyv(YKHO, Phyv):\n YKHO._start_duration_ignore = Phyv", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO....
[ "0.6249625", "0.5918366", "0.5918366", "0.58920896", "0.58920896", "0.58920896", "0.5803121", "0.57694024", "0.56892085", "0.5684028", "0.5559899", "0.543804", "0.543804", "0.543804", "0.543804", "0.543804", "0.543804", "0.543804", "0.543804", "0.54326415", "0.5422654", "0....
0.8548458
0
Sets the end_duration_secs_or_frames of this CaptionsTest.
def dTJN(YKHO, dTJN): YKHO._end_duration_secs_or_frames = dTJN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def Gddx(YKHO, Gddx):\n YKHO._end_times = ...
[ "0.64020574", "0.64020574", "0.63954973", "0.63954973", "0.63954973", "0.6351666", "0.6166874", "0.61087143", "0.6067918", "0.6038466", "0.5933365", "0.59117746", "0.588067", "0.58688766", "0.58666414", "0.5765339", "0.5726431", "0.5662579", "0.5561297", "0.5555497", "0.54900...
0.8228116
0
Sets the reject_on_error of this CaptionsTest.
def qMXc(YKHO, qMXc): YKHO._reject_on_error = qMXc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uj8P(YKHO, lo9Y):\n YKHO.auto_rejection_reason = lo9Y\n YKHO.reject(responder=None)", "def TBYq(YKHO):\n YKHO.state = Vs1g\n YKHO._reject()", "def uTKW(YKHO, uTKW):\n YKHO._failed_on = uTKW", "def iLWW(YKHO, BWXx: bool=True) -> None:\n YKHO.WRAPERROR = bWeC.coerce_bool(BWXx)", "def s7...
[ "0.54983175", "0.54745865", "0.54153144", "0.49972114", "0.49823782", "0.49765995", "0.49764222", "0.49616134", "0.49352646", "0.48874646", "0.48757416", "0.47759342", "0.47689283", "0.47532094", "0.47447458", "0.4723922", "0.47123286", "0.46755344", "0.466631", "0.46636686", ...
0.7513312
0
Sets the checked of this CaptionsTest.
def G3WP(YKHO, G3WP): YKHO._checked = G3WP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mmT2(YKHO, G3WP):\n YKHO._checked = G3WP", "def FYsk(YKHO, iNi_):\n YKHO._checked_ts = iNi_", "def _LHc(YKHO):\n iPqd = [{'input_type': 'radio', 'value': YKHO.VALUE_DICT}]\n YKHO.context['status'] = 'correct'\n for i8ny in iPqd:\n YKHO.context.update(i8ny)\n QToG = YKHO.render_...
[ "0.60362107", "0.577065", "0.5279737", "0.5239455", "0.5224162", "0.5224162", "0.5188421", "0.5185871", "0.5143547", "0.5111244", "0.51050675", "0.50650084", "0.50594735", "0.5041137", "0.50288975", "0.5018342", "0.49773684", "0.49773684", "0.49773684", "0.4974509", "0.497307...
0.608554
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, xpWf): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, xpWf): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8456063", "0.83918154", "0.8144437", "0.8140196", "0.8132038", "0.8093834", "0.80918837", "0.80918837", "0.80918837", "0.80852824", "0.80852824", "0.807626", "0.807626", "0.80657643", "0.8042481", "0.8042481", "0.8042481", "0.8042481", "0.8042481", "0.8042481", "0.8042481"...
0.0
-1
Resets parameters, delete sprite and recreate it (this way it looses its membership to a pyglet drawing batch)
def SiRx(YKHO): YKHO.posXY = (0, 0) YKHO.magXY = (1.0, 1.0) YKHO.rot = 0.0 YKHO.trans = 255 YKHO.isDone = False YKHO.isFirst = True YKHO.kill() YKHO.Group = _y2g.graphics.OrderedGroup(YKHO.order) YKHO.isReady = YKHO.check()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fFx9(YKHO):\n try:\n YKHO.canvas.delete(YKHO.sprite)\n except AttributeError:\n pass\n except on8l.TclError:\n pass", "def Inow(YKHO):\n YKHO.canvasIGetDrawnOn.delete(YKHO.spriteOnCanvas)\n YKHO.spriteImage = MqIY.PhotoImage(YKHO.spriteImageFile.rotate(YKHO.faceHeading, ex...
[ "0.6966502", "0.68648", "0.6533737", "0.64585555", "0.6304994", "0.61768955", "0.60796183", "0.60510635", "0.5961859", "0.59608626", "0.5891592", "0.5888761", "0.58671874", "0.58305573", "0.58243835", "0.58141524", "0.5775327", "0.5775327", "0.5766265", "0.5763974", "0.576170...
0.6168595
6
1hot encodes a tensor
def fKLU(LVAh, jTqs): return oyIN.eye(jTqs, dtype='uint8')[LVAh]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel", "def zGX0(YKHO, ezWE, OR2u):\n KLLm = oyIN.zeros((oyIN.multiply(*ezWE.shape), OR2u), dtype=oyIN.float32)\n KLLm[oyIN.arange(KLLm.shape[0]), ezWE.flatten()] = 1.0\...
[ "0.8257079", "0.80617523", "0.80132484", "0.79174834", "0.7914355", "0.78827375", "0.7841532", "0.7808706", "0.7765705", "0.7738052", "0.7738052", "0.7733543", "0.77270126", "0.7712841", "0.76859695", "0.767933", "0.7584649", "0.7560244", "0.7555559", "0.7535066", "0.7531917"...
0.0
-1
Splits the sentences in a dataframe's column into a list of the separate words. The created lists will be placed in a column named 'Split Tweets' in the original dataframe.
def sR9l(jQ3Z): jQ3Z['Split Tweets'] = jQ3Z['Tweets'].str.lower().str.split() return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sR9l(jQ3Z):\n Aofo = []\n jtyf = jQ3Z['Tweets']\n for Mau6 in jtyf:\n Aofo.append(Mau6.lower().split(' '))\n jQ3Z['Split Tweets'] = Aofo\n return jQ3Z", "def sR9l(jQ3Z):\n jQ3Z['Split Tweets'] = [YRbF.lower().split() for YRbF in jQ3Z['Tweets']]\n return jQ3Z", "def sR9l(jQ3Z):\n...
[ "0.8663457", "0.8569856", "0.80885434", "0.8020399", "0.69318634", "0.67669886", "0.67122436", "0.66924435", "0.6667182", "0.6366687", "0.6333802", "0.633019", "0.628678", "0.6243796", "0.6238756", "0.61439085", "0.6110238", "0.6110238", "0.60993236", "0.6085219", "0.60796577...
0.80847365
3
Removes english stop words from a tweet. Tokenise the sentences according to the definition in word_splitter. Note that word_spliiter cannot be called within this function.
def QXd6(jQ3Z): ljiF = {'stopwords': ['where', 'done', 'if', 'before', 'll', 'very', 'keep', 'something', 'nothing', 'thereupon', 'may', 'why', '’s', 'therefore', 'you', 'with', 'towards', 'make', 'really', 'few', 'former', 'during', 'mine', 'do', 'would', 'of', 'off', 'six', 'yourself', 'becoming', 'through', 's...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g8pp(Mau6):\n HM5X = ''\n for GIN8 in Mau6.split():\n if not GIN8.lower() in vDyF:\n HM5X += GIN8.lower() + ' '\n return HM5X", "def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(...
[ "0.761885", "0.7476694", "0.7092159", "0.7021463", "0.70013833", "0.698955", "0.692694", "0.68454033", "0.68315244", "0.680076", "0.6763996", "0.67565334", "0.6709841", "0.67096555", "0.6686163", "0.6670575", "0.6656237", "0.66530454", "0.66401136", "0.66245544", "0.6614128",...
0.0
-1
Check for sort, annotating the query with subclauses that will be used later. Uses follow_path to sort clauses based on values in subclauses
def xbLn(YKHO, xDcj, fCvO): if ':sort' in xDcj: MQFH = ':sort' elif '@sort' in xDcj and xDcj.is_root: MQFH = '@sort' else: return xDcj.sort = xDcj[MQFH] eyPL = [] for LihS in UqER(xDcj[MQFH], str): if ObW8(LihS): XlUw = LihS else: T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JnWS(YKHO, eJTR, T4Wy, ye72):\n pass", "def hHsm(YKHO):\n ...", "def RN67(SZFh: dict, VN2L: ibis.Expr) -> q_Rr.Expr:\n V_D6 = tOUF(SZFh['sort']['field'])\n BgK2 = tOUF(SZFh['sort'].get('order', ['ascending'] * len(V_D6)))\n assert len(V_D6) == len(BgK2)\n c_NS = [(Jyyj, True if T4Wy == 'a...
[ "0.6210832", "0.5689453", "0.5638119", "0.5607919", "0.559826", "0.5555163", "0.5548156", "0.5492111", "0.54865867", "0.546398", "0.54488355", "0.5342777", "0.53211045", "0.53066367", "0.5270424", "0.52266085", "0.52204233", "0.5203979", "0.5202314", "0.5169582", "0.51666677"...
0.6462445
0
Computes the MEANABSOLUTE SCALED ERROR forecast error for univariate time series prediction.
def EVkr(e7tW, P1Cu, bIMr, o4yM): e7tW = oyIN.array(e7tW) bIMr = oyIN.array(bIMr) o4yM = oyIN.array(o4yM) exwG = e7tW.shape[0] Csk6 = oyIN.abs(e7tW - P1Cu).sum() / (exwG - 1) UAju = oyIN.abs(bIMr - o4yM) return UAju.mean() / Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ounl():\n Om3V = rLdf.DataFrame({'temp': [1], 'dt': [1575082800], 'today': ['2019-11-30'], 't5': [4.0], 't4': [3], 't3': [2.0], 't2': [1], 't1': [1.0]})\n qpEb = BL2a.read_historical_data('tests/csv_files/historical_data_year_avg.csv')\n jDQz = 2\n Aofo = V2ZC.mean_absolute_scaled_error_year_avg(Om...
[ "0.6956875", "0.6604717", "0.6520744", "0.6403447", "0.6369077", "0.63598293", "0.63124067", "0.63008124", "0.62665206", "0.62397903", "0.62148947", "0.6185061", "0.6172185", "0.6115877", "0.6109159", "0.6095968", "0.6093631", "0.6091216", "0.6089042", "0.6086486", "0.6083112...
0.67660755
1
Returns True if the number is prime.
def T1qg(WKvO: int) -> bool: return not any((WKvO % YRbF == 0 for YRbF in range(2, int(epAf.sqrt(WKvO) + 1))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GiUy(f813):\n I1mm = 0\n for hkxX in range(2, f813 // 2):\n if f813 % hkxX == 0:\n I1mm += 1\n if I1mm == 1:\n return True\n else:\n return False", "def T1qg(FGW3):\n if FGW3 < 2:\n return False\n elif FGW3 == 2:\n return True\n elif FGW3 % 2...
[ "0.80605435", "0.80545527", "0.80251443", "0.798799", "0.79747385", "0.7942501", "0.7883246", "0.7849825", "0.78435755", "0.78414464", "0.78173435", "0.7811025", "0.7802149", "0.77832514", "0.7737036", "0.7722323", "0.77109325", "0.7705231", "0.7704839", "0.76976335", "0.7694...
0.7349138
41
Returns the time, already formatted.
def m7L9(YKHO): wzkt = qcWV.datetime.now() ROt1 = 12 if wzkt.hour % 12 == 0 else wzkt.hour % 12 pjEG = 'AM' if wzkt.hour < 12 else 'PM' return '%d:%02d %s' % (ROt1, wzkt.minute, pjEG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7L9(YKHO):\n return ITS7.strftime('%d/%m/%y %M:%H:%S', YKHO.time)", "def m7L9(YKHO):\n WKvO = ITS7.localtime()\n return ''.join([str(WKvO[0]).rjust(4, '0'), '/', str(WKvO[1]).rjust(2, '0'), '/', str(WKvO[2]).rjust(2, '0'), ' ', str(WKvO[3]).rjust(2, '0'), ':', str(WKvO[4]).rjust(2, '0'), ':', str(W...
[ "0.8527367", "0.84706634", "0.8404142", "0.8379445", "0.8164919", "0.8126848", "0.81225216", "0.80987257", "0.8073512", "0.7994178", "0.7958272", "0.78573436", "0.78231186", "0.7774968", "0.7761552", "0.77487373", "0.77082676", "0.76877135", "0.7651776", "0.7619586", "0.75990...
0.8217852
4
Generator to return sets of n (int) from a l (list)
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rV5K(JZXy: Iterable[int]) -> bDy6[int]:\n for YRbF in JZXy:\n if ffYW(YRbF):\n yield YRbF", "def nJ0e(vC9B, exwG):\n for YRbF in range(0, vC9B, exwG):\n yield range(YRbF, min(vC9B, YRbF + exwG))", "def eHxA(vC9B: List, exwG: int):\n for YRbF in range(0, len(vC9B), exwG):\n...
[ "0.6640865", "0.6577445", "0.6396657", "0.6396657", "0.6393679", "0.63433254", "0.6325061", "0.6321666", "0.6320643", "0.6320431", "0.6320013", "0.63179266", "0.6312608", "0.6262392", "0.62604976", "0.6256165", "0.6256165", "0.6256165", "0.625343", "0.6244422", "0.6236262", ...
0.61530584
55
Sets the transition matrix as uniform (equal probability of transitioning to all other possible states from each state) corresponding to the topology. Returns
def rBHh(YKHO) -> oyIN.ndarray: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rBHh(YKHO) -> oyIN.ndarray:\n UlCL = oyIN.zeros((YKHO.n_states, YKHO.n_states))\n for YRbF, rdlD in enumerate(UlCL):\n zNig = min(2, YKHO.n_states - YRbF)\n rdlD[YRbF:YRbF + zNig] = oyIN.ones(zNig) / zNig\n return UlCL", "def DQHX(YKHO):\n ywwl = YKHO.N\n nMvt = YKHO.K\n Kt_s ...
[ "0.6814929", "0.67519593", "0.66898465", "0.6594941", "0.65222967", "0.6440226", "0.63762784", "0.6154301", "0.60273063", "0.6022528", "0.5993625", "0.599268", "0.59454703", "0.5939085", "0.59337443", "0.58963346", "0.58941346", "0.58941346", "0.5888045", "0.5814788", "0.5754...
0.6275748
7
Sets the transition matrix as uniform (equal probability of transitioning to all other possible states from each state) corresponding to the topology. Returns
def rBHh(YKHO) -> oyIN.ndarray: return oyIN.ones((YKHO.n_states, YKHO.n_states)) / YKHO.n_states
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rBHh(YKHO) -> oyIN.ndarray:\n UlCL = oyIN.zeros((YKHO.n_states, YKHO.n_states))\n for YRbF, rdlD in enumerate(UlCL):\n zNig = min(2, YKHO.n_states - YRbF)\n rdlD[YRbF:YRbF + zNig] = oyIN.ones(zNig) / zNig\n return UlCL", "def DQHX(YKHO):\n ywwl = YKHO.N\n nMvt = YKHO.K\n Kt_s ...
[ "0.6814929", "0.67519593", "0.66898465", "0.65222967", "0.6440226", "0.63762784", "0.6275748", "0.6154301", "0.60273063", "0.6022528", "0.5993625", "0.599268", "0.59454703", "0.5939085", "0.59337443", "0.58963346", "0.58941346", "0.58941346", "0.5888045", "0.5814788", "0.5754...
0.6594941
3
Sets the transition matrix as uniform (equal probability of transitioning to all other possible states from each state) corresponding to the topology. Returns
def rBHh(YKHO) -> oyIN.ndarray: U4_H = oyIN.triu(oyIN.ones((YKHO.n_states, YKHO.n_states))) iOG7 = oyIN.triu(oyIN.tile(oyIN.arange(YKHO.n_states, 0, -1), (YKHO.n_states, 1)).T) CeWj = oyIN.tril(oyIN.ones(YKHO.n_states), k=-1) return U4_H / (iOG7 + CeWj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rBHh(YKHO) -> oyIN.ndarray:\n UlCL = oyIN.zeros((YKHO.n_states, YKHO.n_states))\n for YRbF, rdlD in enumerate(UlCL):\n zNig = min(2, YKHO.n_states - YRbF)\n rdlD[YRbF:YRbF + zNig] = oyIN.ones(zNig) / zNig\n return UlCL", "def DQHX(YKHO):\n ywwl = YKHO.N\n nMvt = YKHO.K\n Kt_s ...
[ "0.68172735", "0.67527854", "0.66920376", "0.65967274", "0.6525021", "0.6443113", "0.6379474", "0.62782747", "0.60297364", "0.6024963", "0.59967434", "0.59946406", "0.5947577", "0.5936303", "0.5934753", "0.58988446", "0.589179", "0.589179", "0.5886788", "0.5816876", "0.575517...
0.61568844
8
Sets the transition matrix as uniform (equal probability of transitioning to all other possible states from each state) corresponding to the topology. Returns
def rBHh(YKHO) -> oyIN.ndarray: UlCL = oyIN.zeros((YKHO.n_states, YKHO.n_states)) for YRbF, rdlD in enumerate(UlCL): zNig = min(2, YKHO.n_states - YRbF) rdlD[YRbF:YRbF + zNig] = oyIN.ones(zNig) / zNig return UlCL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DQHX(YKHO):\n ywwl = YKHO.N\n nMvt = YKHO.K\n Kt_s = YKHO.T\n for YRbF in range(1, YKHO.K + 1):\n OCOs = 0\n for a1PO in range(1, YKHO.T):\n for exwG in range(1, ywwl + 1):\n OCOs = OCOs + YKHO.posterior_state_trellis[exwG][a1PO, YRbF]\n for r845 in ra...
[ "0.675143", "0.6690357", "0.6594241", "0.652253", "0.6440287", "0.6376322", "0.6274676", "0.6153132", "0.60272145", "0.6024486", "0.5995465", "0.59929824", "0.5944961", "0.5937773", "0.59342676", "0.5896263", "0.5893224", "0.5893224", "0.5887831", "0.5813238", "0.57538915", ...
0.68142086
0
Reads a raw file input path into a DataFrame
def cO1h(YKHO, xXFf: List[str], **GNG5) -> x1iM[hxoQ]: return [Nwr9(qaEx, **GNG5) for qaEx in xXFf]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(XvcI: str=aisP) -> rLdf.DataFrame:\n jQ3Z = rLdf.read_csv(XvcI)[f0h7]\n return jQ3Z", "def rxwA(pmON: str) -> rLdf.DataFrame:\n nPrm = []\n with open(pmON) as nUeQ:\n for zFiD in nUeQ:\n nPrm.append(zFiD)\n LMLK = rLdf.DataFrame(nPrm, columns={'tweet'})\n return LMLK"...
[ "0.73540443", "0.722951", "0.71990114", "0.71884215", "0.71884215", "0.71884215", "0.71592927", "0.70751184", "0.7008336", "0.6971603", "0.6966952", "0.6961054", "0.6961054", "0.6940161", "0.68897825", "0.6859166", "0.6853488", "0.68470114", "0.6832555", "0.68273056", "0.6774...
0.0
-1
Simple decorator helper for requiring login on functions decorated with
def oAJb(JfyU): @zaGL(JfyU) def h3Xc(*qIxc, **CUWp): try: CBIr = TKWP() if CBIr: setattr(Oa1e, 'user', CBIr) return JfyU(*qIxc, **CUWp) else: bD7m = nKyW('auth.login', redir=QePW.url) return vKnz(bD7m) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKii(JfyU):\n\n def h3Xc(*qIxc, **B2fa):\n \"\"\"\n Wrapper function is a must in decorators. This function does all\n the work, so we have to write TODO code implementation here.\n\n *args -> unnamed arguments passed in de function, avoid us to know\n ...
[ "0.82302374", "0.7955559", "0.78825676", "0.788241", "0.7844724", "0.77869976", "0.77673113", "0.77578616", "0.7757763", "0.7746891", "0.771738", "0.76758254", "0.7669145", "0.76579237", "0.7645082", "0.76287156", "0.76283824", "0.76212335", "0.7610484", "0.7595804", "0.75939...
0.76808417
11
Returns arguments from the stdin.
def bttY(qIxc): return {'cleaning_policy': qIxc.cleaning_policy, 'clear': qIxc.clear, 'content': qIxc.content, 'dry_run': qIxc.dry_run, 'force': qIxc.force, 'in_lines': qIxc.in_lines, 'max_size': qIxc.max_size, 'regex': qIxc.regex, 'restore': qIxc.restore, 'rmdir': qIxc.rmdir, 'short': qIxc.short, 'silent': qIxc.si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LYBH():\n return ''.join(HwRy.stdin.readlines()).strip()", "def b86o():\n Ueki = HwRy.stdin.readlines()\n l5Ny = ''\n for zFiD in Ueki:\n l5Ny += zFiD\n return l5Ny", "def GdfC():\n NArs = HwRy.stdin.read()\n if not NArs:\n raise ValueError('No plugin input was found in a...
[ "0.7442439", "0.71162534", "0.70781636", "0.7008253", "0.6875601", "0.679079", "0.6757122", "0.66945004", "0.66305494", "0.65988916", "0.6596492", "0.65900654", "0.6573253", "0.64494175", "0.64306533", "0.6417004", "0.64145255", "0.6393381", "0.6391936", "0.63573855", "0.6352...
0.58786565
59
Update the running average weights of the particles.
def zbSr(YKHO, a1PO): YKHO.w_bar = YKHO.w_bar * (float(a1PO) / (a1PO + 1)) + YKHO.w / float(a1PO + 1) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value", "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value\n YKHO.weights_clipping()", "def MyUA(YKHO, jzdc, W061, a1PO):\n vkI0 = oyIN.zeros(YKHO.Npar)\n for G1Hx in range(YKHO.Npar):\n yAHm =...
[ "0.7378303", "0.7212888", "0.7102562", "0.70683163", "0.69423646", "0.69102156", "0.6909552", "0.6877627", "0.6795021", "0.67261326", "0.6688208", "0.66347", "0.6612162", "0.6552761", "0.6512551", "0.63605577", "0.6345535", "0.63165003", "0.6309303", "0.6291839", "0.62713623"...
0.77914083
0
Generate a sample theta_hat (one particle) based on the current weights on the particles.
def GEYa(YKHO, a1PO): xZk3 = oyIN.zeros(YKHO.K) G1Hx = oyIN.random.choice(YKHO.Npar, 1, p=YKHO.w)[0] xZk3 = YKHO.Particles[G1Hx] return xZk3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rS9w(YKHO) -> oyIN.array:\n CkYf = oyIN.random.normal\n HioI = CkYf(size=YKHO.dim_observed)\n Mkmy = oyIN.sqrt((HioI ** 2).sum(axis=0))\n QdZT = HioI / Mkmy * YKHO.radius\n return YKHO.theta + QdZT", "def MS2n(YKHO):\n viAC = oyIN.zeros(YKHO.n_params)\n for YRbF in Ni9Y(YKHO.n_params):\n...
[ "0.61893725", "0.60326993", "0.5946987", "0.5873588", "0.58447564", "0.5752473", "0.5703958", "0.56824434", "0.5654689", "0.5605382", "0.55944854", "0.5586146", "0.5578327", "0.5558836", "0.55476326", "0.551705", "0.54987335", "0.5495258", "0.54634017", "0.5455792", "0.544683...
0.68666434
0
The name of the consumer group.
def avyT(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'consumer_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def avyT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'consumer_group_name')", "def avyT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'consumer_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def ixg4(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y....
[ "0.8902197", "0.8627032", "0.78753394", "0.78296584", "0.77065736", "0.7698265", "0.76211333", "0.76179254", "0.75253934", "0.75135463", "0.7403845", "0.73626524", "0.7344025", "0.7255333", "0.7216139", "0.7214246", "0.7214246", "0.7206561", "0.71856993", "0.71856993", "0.715...
0.8733795
1
The ID of the subscription instance.
def lkfZ(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'dts_instance_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dYAF(YKHO):\n return YKHO.instance_metadata.subscription_id", "def JuHa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'subscription_id')", "def dYAF(YKHO):\n JuHa = YKHO.get_intermediate('subscription_id', None)\n if not JuHa:\n JuHa = YKHO.cmd.cli_ctx.data.get('subscription_id')\n ...
[ "0.86872107", "0.78247845", "0.77929944", "0.7329448", "0.73261005", "0.73261005", "0.7310053", "0.7310053", "0.7310053", "0.7310053", "0.7310053", "0.7310053", "0.7280135", "0.7280135", "0.7280135", "0.7280135", "0.7280135", "0.7280135", "0.7280135", "0.7280135", "0.7280135"...
0.0
-1
The ID of the consumer group.
def UR51(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'consumer_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UR51(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'consumer_group_id')", "def hE03(YKHO):\n return YKHO._id", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def id(YKHO):\n return YKHO._group", "def hE0...
[ "0.8802013", "0.813426", "0.81136703", "0.81136703", "0.8073376", "0.7904013", "0.7904013", "0.7904013", "0.78792846", "0.77977866", "0.77323586", "0.7692727", "0.7576124", "0.75547415", "0.7511746", "0.73848623", "0.7351406", "0.7351406", "0.7351406", "0.7342739", "0.7332882...
0.84412825
1
The name of the consumer group.
def avyT(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'consumer_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def avyT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'consumer_group_name')", "def avyT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'consumer_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def ixg4(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YK...
[ "0.8902197", "0.8733795", "0.78753394", "0.78296584", "0.77065736", "0.7698265", "0.76211333", "0.76179254", "0.75253934", "0.75135463", "0.7403845", "0.73626524", "0.7344025", "0.7255333", "0.7216139", "0.7214246", "0.7214246", "0.7206561", "0.71856993", "0.71856993", "0.715...
0.8627032
2
The ID of the subscription instance.
def lkfZ(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'dts_instance_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dYAF(YKHO):\n return YKHO.instance_metadata.subscription_id", "def JuHa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'subscription_id')", "def dYAF(YKHO):\n JuHa = YKHO.get_intermediate('subscription_id', None)\n if not JuHa:\n JuHa = YKHO.cmd.cli_ctx.data.get('subscription_id')\n ...
[ "0.86872107", "0.78247845", "0.77929944", "0.7329448", "0.73261005", "0.73261005", "0.7310053", "0.7310053", "0.7310053", "0.7310053", "0.7310053", "0.7310053", "0.7280135", "0.7280135", "0.7280135", "0.7280135", "0.7280135", "0.7280135", "0.7280135", "0.7280135", "0.7280135"...
0.0
-1
The ID of the consumer group.
def UR51(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'consumer_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UR51(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'consumer_group_id')", "def hE03(YKHO):\n return YKHO._id", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def id(YKHO):\n return YKHO._group", "de...
[ "0.8442159", "0.8132146", "0.81108755", "0.81108755", "0.8071401", "0.790166", "0.790166", "0.790166", "0.7877266", "0.779515", "0.77299047", "0.769078", "0.75734735", "0.75518197", "0.7509535", "0.73834157", "0.7348498", "0.7348498", "0.7348498", "0.7343283", "0.7331403", ...
0.88030064
0
The name of the consumer group.
def avyT(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'consumer_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def avyT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'consumer_group_name')", "def avyT(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'consumer_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def ixg4(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.g...
[ "0.87336934", "0.8627033", "0.78791565", "0.7828638", "0.7708494", "0.7701295", "0.7619592", "0.76186764", "0.7524736", "0.75166595", "0.74067867", "0.73667234", "0.73453593", "0.7256452", "0.721773", "0.721773", "0.7214793", "0.72094595", "0.71876466", "0.71876466", "0.71536...
0.89029264
0
The ID of the subscription instance.
def lkfZ(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'dts_instance_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dYAF(YKHO):\n return YKHO.instance_metadata.subscription_id", "def JuHa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'subscription_id')", "def dYAF(YKHO):\n JuHa = YKHO.get_intermediate('subscription_id', None)\n if not JuHa:\n JuHa = YKHO.cmd.cli_ctx.data.get('subscription_id')\n ...
[ "0.86881745", "0.7824428", "0.7792517", "0.73317075", "0.73266953", "0.73266953", "0.7310511", "0.7310511", "0.7310511", "0.7310511", "0.7310511", "0.7310511", "0.72803116", "0.72803116", "0.72803116", "0.72803116", "0.72803116", "0.72803116", "0.72803116", "0.72803116", "0.7...
0.0
-1
Called when the user specifies an intent for this skill
def E97p(tvqc, McO3, cuiw): bo34.info('on_intent requestId=' + McO3['requestId'] + ', sessionId=' + cuiw['sessionId']) E2VF = McO3['intent'] q8Qy = McO3['intent']['name'] if E2VF == 'NextBins': return _ZfF(tvqc, cuiw) return QnfU()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r...
[ "0.7143966", "0.6956116", "0.6949057", "0.6905333", "0.68928874", "0.67641324", "0.6754843", "0.6722764", "0.6720773", "0.67161995", "0.6699252", "0.6691263", "0.6670276", "0.6645522", "0.6642719", "0.6638686", "0.6607724", "0.6594981", "0.6575682", "0.6570076", "0.65620786",...
0.64873606
31
ignores path if it matches the given extensions
def PrmE(JfyU): return lambda pmON: None if pmON.lower().endswith(('.git', '__pycache__', '.md', '.txt', 'license', '.png', '.jpg', '.jpeg')) else JfyU(pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dbzI(pmON):\n for Fst3 in H7iW:\n pmON = pmON.replace('.%s' % Fst3, '')\n return pmON", "def TMLC(YKHO, RRlC):\n if YKHO.__config.suffix().strip():\n RRlC = [nUeQ for nUeQ in RRlC if YKHO.__config.suffix() not in nUeQ]\n return RRlC", "def QTwE(CBZq):\n if isinstance(CBZq, str)...
[ "0.73291343", "0.6934216", "0.6896452", "0.67459136", "0.6497922", "0.63181496", "0.6316766", "0.6298705", "0.6222641", "0.61954206", "0.61935073", "0.61727834", "0.6164662", "0.61312133", "0.61289346", "0.6122215", "0.61142856", "0.60492486", "0.60435635", "0.60209715", "0.6...
0.6693098
4
Calculate the correlation time shift around the maximum amplitude of the synthetic trace with subsample accuracy.
def T9lf(Csk6, KCHu): Ubur = iZg4(Csk6.data, KCHu.data) * Csk6.stats.delta RcgA = KCHu.stats.starttime + KCHu.data.argmax() * KCHu.stats.delta with qmLP.catch_warnings(): qmLP.simplefilter('ignore') return NIgD(RcgA, KCHu, RcgA, Csk6, 20.0 * Ubur, 20.0 * Ubur, 10.0 * Ubur)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O5F6(nPrm):\n NkkI = [YRbF for YRbF in range(1, len(nPrm[0]) + 1)]\n NkkI += NkkI[-2::-1]\n or8S = len(nPrm[0]) // 4\n\n def ufJO(wEsz):\n Ylbp = cxpp(wEsz, oyIN.conj(wEsz)[::-1]) / NkkI\n Ylbp[len(Ylbp) // 2] = 0\n return Ylbp[or8S:or8S * 7]\n GyCZ = oyIN.apply_along_axis(u...
[ "0.5871185", "0.572114", "0.56688786", "0.56161046", "0.5520823", "0.5503045", "0.54739916", "0.5471855", "0.5414569", "0.5395246", "0.5347586", "0.53426534", "0.5335265", "0.5255278", "0.5220675", "0.52020884", "0.5176093", "0.5170102", "0.51671886", "0.51649946", "0.5160274...
0.63665766
0
Return a string representation of the model.
def zAg0(YKHO): return f'{YKHO.sz}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()", "def wHJl(YKHO):\n VlDb = f'{YKHO.__class__.__name__} Model'\n try:\n VlDb += f': {YKHO.filename}'\n except AttributeError:\n pass\n KCHu = [VlDb]\n for mWFP, Ty9i in YKHO.metadata.items():\n KCHu += [f'{mW...
[ "0.8550562", "0.78680784", "0.7859392", "0.7820475", "0.78200865", "0.78200865", "0.78024864", "0.7667491", "0.7658678", "0.7652298", "0.7619285", "0.75894105", "0.7587887", "0.7541158", "0.75327915", "0.75327915", "0.75173604", "0.7495425", "0.7490489", "0.7479993", "0.74670...
0.0
-1
Closes the database connection
def DDI8(YKHO): YKHO.db.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZlT(Emd4):\n NCls.close()", "def YzkT(YKHO):\n if YKHO._conn is not None:\n YKHO._conn.close()\n YKHO._conn = None", "def DDI8(YKHO):\n RdPg.debug('DB -> close')\n YKHO.conn.close()", "def DDI8(YKHO):\n if YKHO._dbopen:\n YKHO._dbcon.close()", "def ngVb(AJ5d):\n ...
[ "0.85662735", "0.8412375", "0.8293456", "0.8184272", "0.81580645", "0.80922866", "0.8057031", "0.80505526", "0.79888546", "0.7972568", "0.79306155", "0.79142356", "0.7873472", "0.7871479", "0.7852316", "0.782567", "0.78119534", "0.77649176", "0.77649176", "0.77649176", "0.775...
0.80190814
8
Custom merge dictionary operation. It currently creates a union based on each dictionary's keys and attempts to resolve conflicts and also to recursively add nested dictionary structures
def WP5k(WbPA, S69B): for G1Hx in set(WbPA.keys()).union(S69B.keys()): if G1Hx in WbPA and G1Hx in S69B: if isinstance(WbPA[G1Hx], dict) and isinstance(S69B[G1Hx], dict): yield (G1Hx, dict(WP5k(WbPA[G1Hx], S69B[G1Hx]))) else: yield (G1Hx, S69B[G1Hx]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmpO(pan_, zZcM):\n for G1Hx in zZcM.keys():\n if G1Hx in pan_ and isinstance(pan_[G1Hx], dict) and isinstance(zZcM[G1Hx], g760.Mapping):\n GmpO(pan_[G1Hx], zZcM[G1Hx])\n else:\n pan_[G1Hx] = zZcM[G1Hx]", "def cyBQ(pan_, rpxx):\n for H5ew in rpxx:\n if H5ew in...
[ "0.73943293", "0.7280657", "0.72773165", "0.7218472", "0.7100853", "0.70854926", "0.70549005", "0.70437336", "0.70436805", "0.70162714", "0.70132643", "0.6995891", "0.6991854", "0.6919301", "0.6893565", "0.6893565", "0.68897825", "0.6870836", "0.68663263", "0.68658096", "0.68...
0.6886583
17
Create a bytes header for variablesized data messages.
def Bvgv(YKHO, nPrm): return tMMy(YKHO.HEADER_PACK_STR, YKHO.HEADER_VERSION, len(nPrm))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVUR(Emd4):\n kNus = BlNT.Struct(Emd4.HEADER_STRUCT_FORMAT_STR)\n ow3y = kNus.pack(0, 0, 0, 0)\n return ow3y", "def fcEP(YKHO):\n if YKHO._header.value_type in b'ZH':\n BWXx = YKHO._buffer[:-1]\n elif YKHO._header.value_type in b'AB':\n BWXx = YKHO._buffer\n else:\n BWX...
[ "0.6339416", "0.6337875", "0.62970793", "0.62623936", "0.62206614", "0.6213616", "0.62135166", "0.61737573", "0.61717933", "0.6156612", "0.6098577", "0.6087904", "0.60004175", "0.59871215", "0.5936312", "0.5935992", "0.5918751", "0.5905091", "0.59025824", "0.58998", "0.588166...
0.75547075
0
get call against REST API to test the API interface of the Product DB
def LQJl(Ms2Z, NtEF, jTXt): geh0 = G4JS.get(Ms2Z, auth=OF86(NtEF, jTXt), verify=False, timeout=4) return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BUWi(YKHO):\n YKHO._require_login(YKHO.user1)\n geh0 = YKHO.client.get('/api/1.0/products/1/')\n YKHO.assertEqual(geh0.data['name'], 'Producto 1')\n YKHO.assertEqual(geh0.data['description'], 'Descripcion producto 1')\n YKHO.assertEqual(geh0.data['selling'], True)\n YKHO.assertEqual(geh0.data...
[ "0.77961195", "0.75496095", "0.7418874", "0.7302816", "0.7301533", "0.72815037", "0.7273733", "0.716868", "0.7145603", "0.71435255", "0.7119358", "0.7115917", "0.7022494", "0.69779444", "0.6963168", "0.69476956", "0.6906799", "0.6906333", "0.68217963", "0.68035275", "0.678021...
0.0
-1
put call against REST API to test the API interface of the Product DB
def N5JM(Ms2Z, Mjw9, NtEF, jTXt, f9NP=False): MOPg = {'Content-Type': 'application/json'} geh0 = G4JS.put(Ms2Z, auth=OF86(NtEF, jTXt), data=qQXR.dumps(Mjw9), headers=MOPg, verify=False, timeout=4) if f9NP: if geh0.status_code == 201: print('PUT OK %s (code %d)' % (Ms2Z, geh0.status_co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bTU8(YKHO):\n TBsA = EnEa()\n geh0 = YKHO.client.open('/omogollo2/ServerAPI/1.0.0/stock/{productId}'.format(product_id=56), method='PUT', data=qQXR.dumps(TBsA), content_type='application/json')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))", "def Q4vE(YKHO):\n _hkX = Y...
[ "0.740459", "0.72521687", "0.72445995", "0.7199734", "0.7104765", "0.7055011", "0.7037111", "0.7017264", "0.694568", "0.69367844", "0.6892213", "0.68832624", "0.6863073", "0.6860482", "0.68601936", "0.6849901", "0.6835989", "0.68355614", "0.6800232", "0.68000734", "0.67640406...
0.0
-1
compute v given u and normal.
def I1qH(exwG: np.array, AgUk: float, lBiA: int) -> oyIN.array: if lBiA == 2: exwG = oyIN.array([exwG[1], exwG[2], exwG[0]]) elif lBiA == 3: exwG = oyIN.array([exwG[2], exwG[0], exwG[1]]) P9SZ = exwG[0] * oyIN.sin(AgUk) + exwG[1] * oyIN.cos(AgUk) lHmx = exwG[2] yvT9 = oyIN.arctan(-P9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhAC(YKHO, P6bq, Ty9i):\n Aofo = oyIN.cross(YKHO.du(P6bq, Ty9i), YKHO.dv(P6bq, Ty9i))\n Aofo = Aofo / oyIN.sqrt(ya0a(Aofo, Aofo))[:, None]\n return Aofo", "def qvqi(YKHO, P6bq, Ty9i, EmUK=True):\n P6bq = P6bq * mM0K\n Ty9i = Ty9i * KiGg\n WKvO = YhSR(P6bq) * YUNn(Ty9i)\n LVAh = YUNn(P6bq...
[ "0.8130392", "0.72737074", "0.7220298", "0.7180438", "0.7143661", "0.6871111", "0.67939126", "0.67894036", "0.6780113", "0.66659045", "0.659625", "0.65484643", "0.6546924", "0.6537882", "0.6514161", "0.65118784", "0.64926505", "0.64874864", "0.648633", "0.6481188", "0.6470156...
0.0
-1
Convert stings of this format to seconds. 10h10m10s 3s 7m9s 1h5s
def Tm89(YKHO, KCHu): WbTE = 0 for YRbF in KCHu.split('-'): if 'h' in YRbF: WbTE = WbTE + int(YRbF.split('h')[0]) * 3600 if 'm' in YRbF: WbTE = WbTE + int(YRbF.split('m')[0]) * 60 if 's' in YRbF: WbTE = WbTE + int(YRbF.split('s')[0]) return WbTE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TmWH(KCHu):\n return '%dh %dm' % (KCHu // 3600, KCHu // 60 % 60)", "def xTt2(KCHu):\n a1PO = KCHu.split(':')\n UET8 = len(a1PO)\n if UET8 == 1:\n lcOE = int(a1PO[0])\n elif UET8 == 2:\n lcOE = int(a1PO[1]) + int(a1PO[0]) * 60\n elif UET8 == 3:\n lcOE = int(a1PO[2]) + in...
[ "0.77671516", "0.76056427", "0.73907477", "0.7386879", "0.73104036", "0.73046017", "0.7302198", "0.7222621", "0.72225225", "0.719519", "0.718679", "0.7155359", "0.709133", "0.7058874", "0.7016889", "0.70099247", "0.6972157", "0.69719833", "0.696749", "0.6966481", "0.69571525"...
0.76528496
1
Find the leader node index of node self.__data[node_index]
def neBz(YKHO, dtUY: int) -> int: if dtUY < 0 or dtUY >= len(YKHO.__data): print('index ' + str(dtUY) + ' out of range!') return -1 Q6kx = YKHO.__data[dtUY] z4FK = [dtUY] while dtUY != Q6kx.pre_index: dtUY = Q6kx.pre_index Q6kx = YKHO.__data[dtUY] z4FK.append(dtUY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kz6d(YKHO, d6pt):\n LXTO = 0\n _9jN = YKHO.head\n CXwD = None\n while _9jN is not None:\n if d6pt >= len(_9jN.data_list) + LXTO:\n LXTO += len(_9jN.data_list)\n CXwD = _9jN\n _9jN = _9jN.next_node\n else:\n d6pt -= LXTO\n break\n ...
[ "0.7475407", "0.6919777", "0.6831071", "0.6555754", "0.6527155", "0.6520897", "0.6445846", "0.644534", "0.6444477", "0.6389432", "0.63786894", "0.6371318", "0.6313913", "0.62457347", "0.6243091", "0.6215733", "0.6203458", "0.6187711", "0.6180615", "0.6152066", "0.6137931", ...
0.7146176
1
Calculate total in the month of August 2020 Includes id = 400, id = 300, id = 800, id = 700, id = 600 id = 600 occurs once on the 31 $100 id = 700 occurs once on the 24 $10 id = 800 occurs once on the 7th $10 id = 300 occurs once on the 8th $200 id = 400 occurs 5th, 12th, 19th, 26th $100 each $400
def Dy2F(YKHO): CBIr = Wqvn.objects.get(username='Test User') kepv = rIAI.now().replace(day=1, month=8, year=2020) KhBf = kepv + fCoM(days=30) Ggta = 720 crOM = asL5(CBIr, kepv, KhBf) YKHO.assertEquals(Ggta, crOM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ltel(YKHO, Z31E):\n try:\n ZrNc = EQW4.objects.get(id=Z31E)\n except EQW4.DoesNotExist:\n return\n x0hE = bxbw()\n x0hE.client_customer_id = ZrNc.dependent_account_id\n HvSS = x0hE.GetReportDownloader(version=gCuF.API_VERSION)\n W7HF = {'fields': ['Cost', 'CampaignId', 'Campaign...
[ "0.6001532", "0.5746446", "0.5722419", "0.5597739", "0.5578195", "0.5577887", "0.5549294", "0.5542426", "0.5516877", "0.5481326", "0.54734063", "0.5434475", "0.5409195", "0.5364376", "0.53540915", "0.5352385", "0.53478783", "0.5315271", "0.5307595", "0.52858526", "0.52654827"...
0.0
-1
Can successfully pull any expenses that have not passed.
def A1Sm(YKHO): print() print('Get all expenses will still occur') CBIr = Wqvn.objects.get(username='Test User') crOM = b0_6(user=CBIr) for _pUq in crOM: print(_pUq) Ggta = [c_wu.objects.get(id=100), c_wu.objects.get(id=150), c_wu.objects.get(id=200), c_wu.objects.get(id=600), c_wu.objec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y8xM(YKHO):\n YKHO.register_user()\n Aofo = YKHO.login_user()\n NT__ = qQXR.loads(Aofo.data.decode())['access_token']\n Ylbp = YKHO.client().post('/expenses/', headers=dict(Authorization='Bearer ' + NT__), data=YKHO.expense)\n YKHO.assertEqual(Ylbp.status_code, 201)\n Ylbp = YKHO.client().get...
[ "0.64480597", "0.62825984", "0.6247314", "0.593421", "0.59258944", "0.58932877", "0.58649087", "0.58598506", "0.5834699", "0.5778493", "0.5703303", "0.5702945", "0.5669201", "0.56584644", "0.5597216", "0.55895317", "0.5560785", "0.55503803", "0.5543616", "0.55330455", "0.5512...
0.6458962
0
Can successfully get all occurrences of a specific expense Monthly Expense Timeframe that begins around the same time as the bill. Extends over a month in the future.
def fpOv(YKHO): print() print('Get occurrences of a monthly expense between:') mJwe = c_wu.objects.get(id=100) kepv = mJwe.start_date KhBf = kepv + fCoM(days=40) print(kepv.strftime('%B %d, %y') + ' and ' + KhBf.strftime('%B %d, %y')) print('======================================') Aofo ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H4cd(wgfO) -> int:\n for YRbF in range(len(wgfO)):\n for r845 in range(len(wgfO)):\n if YRbF != r845 and wgfO[YRbF] + wgfO[-r845] == 2020:\n return wgfO[YRbF] * wgfO[-r845]\n return 0", "def wgfO(YKHO, n3OF, QvbN):\n return YKHO._buildTransDict(n3OF, QvbN, ES2O)", ...
[ "0.56694216", "0.55568725", "0.55485594", "0.55063486", "0.54155016", "0.53927964", "0.5340821", "0.52612025", "0.5202876", "0.51689136", "0.51650524", "0.5099387", "0.5077801", "0.50766855", "0.50402874", "0.5038167", "0.5017124", "0.5013414", "0.49942014", "0.49645817", "0....
0.67341375
0
Get a user by user ID.
def CJ7e(uJjO): CBIr = mv1M.query.get(uJjO) if CBIr is None: eTsH(404, 'user not found') return qQXR.dumps(CBIr.as_dict(include_teams_and_permissions=True))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(YKHO, id):\n return YKHO.users.get(id)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(...
[ "0.8674249", "0.8632913", "0.8545997", "0.85293394", "0.85293394", "0.85293394", "0.85293394", "0.85232663", "0.8485776", "0.84202445", "0.84171796", "0.840899", "0.83383137", "0.8325944", "0.8296361", "0.82929343", "0.82790244", "0.8275646", "0.8274844", "0.826316", "0.82565...
0.0
-1
Add a user to a team given the team and user IDs.
def KLpx(n5lq, b2mu, uJjO): dZPi = r2Kd.query.get(b2mu) if dZPi is None: eTsH(404, 'team not found') if not (n5lq.has_permission('team.update.elevated') or (n5lq.has_permission('team.update') and dZPi.has_member(n5lq))): eTsH(403, 'insufficient permissions to add user to team') if dZPi.t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IMdO(YKHO, dZPi, NArs={}, **xAU6):\n pmON = '/teams/%s/addUser' % dZPi\n return YKHO.client.post(pmON, NArs, **xAU6)", "def BfpQ(YKHO, b2mu, uJjO):\n YKHO.assert_team_exists(b2mu)\n YKHO.assert_user_exists(uJjO)\n Pe9W = 'SELECT * FROM team_member WHERE team_id = ? AND user_id = ?'\n if not...
[ "0.81194603", "0.7651945", "0.75387543", "0.7358632", "0.7295701", "0.72269285", "0.71994686", "0.70909214", "0.67135316", "0.6707469", "0.6703407", "0.6601539", "0.6463021", "0.6351766", "0.6337574", "0.6247779", "0.62144023", "0.6203603", "0.6171507", "0.614218", "0.6104547...
0.8025046
1
Returns the current macOS version.
def dyb_(YKHO) -> str: Aofo = Yn3K.run(['sw_vers', '-productVersion'], stdout=Yn3K.PIPE) return Aofo.stdout.decode('utf-8').strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cjGb():\n FhfT = a9EH.mac_ver()[0].split('.')\n return int(FhfT[1])", "def zb61() -> str:\n assert a9EH.system() == 'Darwin'\n fUpG, bGrB, bGrB = a9EH.mac_ver()\n return fUpG", "def DpZH():\n HCmI = '{} -v'.format(XDmX())\n yvT9 = PHIk['cmd.run'](HCmI).splitlines()\n U5bT = yvT9[0]....
[ "0.77943283", "0.7723094", "0.7010031", "0.69886833", "0.6863025", "0.6800618", "0.67179775", "0.6675995", "0.6675995", "0.65920824", "0.6545015", "0.64951086", "0.64300513", "0.6399567", "0.6356966", "0.6336788", "0.63009113", "0.6299348", "0.62949485", "0.62798566", "0.6236...
0.8690196
0
Renders and serves the front page.
def KIjS(): vars = dict(QePW.args) vars.setdefault('output', vars.get('format')) H5ew = vars.get('auth_entity') if H5ew: vars['entity'] = rtVo.Key(urlsafe=H5ew).get() if vars['entity']: vars.setdefault('site', vars['entity'].site_name().lower()) vars.update({JS5A + '_html...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n YKHO.render_front()", "def d6pt():\n fyvm = 'Home'\n return TvZl('index.html', page_title=fyvm)", "def W8mS():\n return TvZl('index.html')", "def NMoC(YKHO):\n YKHO.render('index.html')", "def hXw_():\n return TvZl('index.html')", "def bVaH():\n return TvZl('index.h...
[ "0.75057507", "0.7194527", "0.71898055", "0.71845084", "0.717461", "0.7143156", "0.71155155", "0.71072316", "0.7056729", "0.7050666", "0.7012616", "0.7012311", "0.70118886", "0.7010965", "0.6999073", "0.6996603", "0.69884884", "0.6988338", "0.6987198", "0.6952573", "0.6952067...
0.6798897
46
Loads a YAML file from the filesystem and converts it to a usable python dictionary.
def f9B0(Ux0P): try: eHNT = nUeQ(Ux0P, 'r') nPrm = eJb6.load(eHNT) return nPrm except (IOError, OSError) as e: XObx = tTpl[0] lo9Y = tTpl[1] P1dF = 'load_yaml: Failed to open {filename}: {reason} {err}'.format(filename=Ux0P, reason=lo9Y, err=XObx) raise IO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9B0(pmON: str) -> cuzp[str, ImMB]:\n with open(pmON, 'r', encoding='utf8') as ytgA:\n nPrm = eJb6.safe_load(ytgA)\n return nPrm", "def f9B0(qaEx: str) -> dict:\n assert qaEx.endswith('.yaml')\n with open(qaEx) as nUeQ:\n return eJb6.load(nUeQ, Loader=eJb6.FullLoader)", "def f...
[ "0.80195975", "0.7985536", "0.79786867", "0.7913354", "0.784341", "0.77410823", "0.77194446", "0.76973706", "0.7693111", "0.767597", "0.7603289", "0.7567403", "0.75192726", "0.7478656", "0.7476931", "0.74647087", "0.74342895", "0.7413626", "0.7401656", "0.7359838", "0.7353790...
0.7095772
32
Check if a noteon event can be added at the given time step. Noteon events cannot be added at the same time as or before previous noteon events.
def X8AR(YKHO, zsZf): return YKHO.last_on is None or zsZf - YKHO.offset > YKHO.last_on
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d0wz(ITS7: int) -> bool:\n TzOC = BaRo(True)[0]\n try:\n SuPB = int(TzOC.split('\\n')[0].strip(\"'\"))\n except ValueError:\n SuPB = int(TzOC.split('\\n')[-1].strip(\"'\"))\n if ITS7 - SuPB < 60:\n return 'gol' in TzOC or 'cartão' in TzOC\n return False", "def Azbd(YKHO) -...
[ "0.5923721", "0.59110117", "0.58846515", "0.5701263", "0.56867164", "0.55190283", "0.5492413", "0.5492293", "0.54422307", "0.53720915", "0.53403354", "0.5325623", "0.5324799", "0.5308427", "0.52861017", "0.5259387", "0.5251862", "0.5244155", "0.5239793", "0.52221316", "0.5175...
0.75238377
0
add operations beyond the builtins ('get' and 'iterate' at the time of writing). auto_func is a function that when passed a type, returns a handler associated with op_name if it's supported, or False if it's not. See glom.core.register_op() for the global version used by extensions.
def Xy47(YKHO, yhyn, KuNn=None, LsaM=False): if not isinstance(yhyn, exCv): raise TypeError('expected op_name to be a text name, not: %r' % (yhyn,)) if KuNn is None: KuNn = lambda a1PO: False elif not callable(KuNn): raise TypeError('expected auto_func to be callable, not: %r' % (KuN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iu20(*qIxc):\n\n def _gRY(JfyU):\n for AstN in qIxc:\n N6py[AstN] = JfyU\n return JfyU\n return _gRY", "def BCFP(YKHO, JfyU: Callable, hdOL: OpsetVersion) -> None:\n YKHO._functions.add_custom(hdOL, JfyU)", "def eaeN():\n for vqI3 in ['max', 'min', 'sum', 'mean']:\n ...
[ "0.5821337", "0.55265594", "0.55179375", "0.5368579", "0.5364024", "0.53303105", "0.520704", "0.51865315", "0.50805765", "0.5064449", "0.5061494", "0.5058632", "0.5028367", "0.50117123", "0.50079656", "0.49968305", "0.49816278", "0.49713773", "0.49650612", "0.49206403", "0.48...
0.7182974
0
This view makes possible to display a certification item alone
def JqG0(QePW, s5ru, id): q9zX = Iofl(s9HI, slug=s5ru) ITwz = OsfM(QePW, q9zX) UDp7 = Iofl(PWVa, id=id, company=q9zX) return SGJU('certification_form.html', {'details': UDp7, 'info': UDp7}, context_instance=K1Ja(QePW))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N01p(YKHO, QePW, SR0I):\n if len(SR0I) > 1:\n YKHO.message_user(QePW, 'You can only choose one certificate.', level=yEHD.ERROR)\n return None\n geh0 = igJ6(content_type='text/plain')\n LSCv = SR0I.first()\n geh0.write(z50T.dump_certificate(z50T.FILETYPE_TEXT, LSCv.get_certificate()))\...
[ "0.6416505", "0.6218467", "0.6026983", "0.5816437", "0.5791219", "0.5651807", "0.5645675", "0.5577816", "0.55148894", "0.5484461", "0.5464285", "0.5462897", "0.5451961", "0.54379", "0.5424868", "0.5411511", "0.53839236", "0.53442544", "0.5336062", "0.5335828", "0.5328042", ...
0.67513907
0
Gets the length of the dataframe.
def _dvV(jQ3Z): try: return len(jQ3Z) except TypeError: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return YKHO.df.shape[0]", "def zNig(YKHO):\n return YKHO._dataframe.shape[0]", "def szAg(YKHO):\n if YKHO.df is None:\n return 0\n elif len(YKHO.df.keys()) == 0:\n return 0\n else:\n return len(YKHO.df[YKHO.df.keys()[0]])", "def szAg(YKHO):\n return YK...
[ "0.83134365", "0.8273283", "0.79416496", "0.7770864", "0.7770864", "0.7749767", "0.7662901", "0.7548532", "0.75082254", "0.74515885", "0.7347973", "0.7317942", "0.73137057", "0.7269847", "0.7236886", "0.72165364", "0.71860313", "0.7180414", "0.7161166", "0.71546835", "0.71546...
0.8072832
2
tests whether node in markUp is modified by a tagObject with category equal to queryCategory. Return modifier if True
def PcxU(YKHO, Q6kx, MpFb): nvEb = YKHO.getModifiers(Q6kx) for XP5J in nvEb: if XP5J.isA(MpFb): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PcxU(YKHO, Q6kx, MpFb):\n SoZd = YKHO.getModifiers(Q6kx)\n for kNzm in SoZd:\n if kNzm.isA(MpFb):\n return True\n return False", "def w3PF(YKHO):\n return YKHO._tag == 'modified'", "def nl5H(YKHO):\n bo34.debug('Func: isSceneModified')\n return nUiC.modified()", "def C...
[ "0.79240495", "0.58216435", "0.56845385", "0.53827107", "0.5230961", "0.49991104", "0.49694988", "0.49679482", "0.49340415", "0.49319622", "0.49057326", "0.48324817", "0.48293573", "0.4825029", "0.48142013", "0.4778491", "0.47702438", "0.47326547", "0.4730038", "0.47082862", ...
0.8243432
0
Calculate the great circle distance between two points on the earth (specified in decimal degrees)
def GeVo(GgQG, igSk, tk0B, TGuP): GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP]) H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2 Z9rn = 2 * P099(PZyS(jzdc)) Mkmy = 3956 return Z9rn * Mkmy * 5280
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6", "def T97B(GgQG, ...
[ "0.81450045", "0.7863265", "0.76322985", "0.76064754", "0.75978696", "0.75965863", "0.75944835", "0.75720793", "0.75630087", "0.7555095", "0.7528691", "0.7517629", "0.7492963", "0.7467739", "0.7452678", "0.7434477", "0.73914117", "0.7357736", "0.73484355", "0.73318124", "0.73...
0.0
-1
Init weights for models.
def vB93(YKHO): if YKHO.init_cfg: super().init_weights() else: for r8hN in [YKHO.conv_first, YKHO.conv_body, YKHO.conv_up1, YKHO.conv_up2, YKHO.conv_hr, YKHO.conv_last]: _Wt9(r8hN, 0.1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(C3ST):\n ...", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def vJuA(YKHO):\n raise NotImplementedError", "def sTi3(YKHO):\n dIoi.WeightsInitializer.initialize_layer_or...
[ "0.8984091", "0.8641805", "0.86267096", "0.86172", "0.85792875", "0.85725594", "0.84296715", "0.8325935", "0.8232147", "0.8045925", "0.8013931", "0.8010816", "0.79973304", "0.7983617", "0.7977511", "0.7962253", "0.7962253", "0.7962253", "0.7959221", "0.79509515", "0.7947236",...
0.7676151
48
Init weights for ResidualDenseBlock. Use smaller std for better stability and performance. We empirically
def vB93(YKHO): for YRbF in range(5): _Wt9(getattr(YKHO, f'conv{YRbF + 1}'), 0.1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8Xp(YKHO):\n nIVP = 1.0 / epAf.sqrt(YKHO.weight.data.size(1))\n YKHO.weight.data.uniform_(-nIVP, nIVP)\n if YKHO.bias is not None:\n YKHO.bias.data.uniform_(-nIVP, nIVP)", "def vB93(YKHO):\n YKHO.w = oyIN.random.randn(YKHO.D) / oyIN.sqrt(YKHO.D)", "def vB93(YKHO, wOp_=0.003):\n YKHO....
[ "0.7541087", "0.7460973", "0.7368466", "0.7343648", "0.72806096", "0.72363317", "0.72102386", "0.72102386", "0.7210094", "0.71928626", "0.7191477", "0.71772796", "0.708895", "0.7069712", "0.70665145", "0.70592827", "0.7052508", "0.70416576", "0.70416576", "0.70416576", "0.703...
0.6371457
84
Return whether the reader is set to ignore whitespaces. True if the reader currently ignores whitespaces, False otherwise.
def qqGI(YKHO): return YKHO.__ignore_white
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uRZU(YKHO):\n BWXx = YKHO.current.value\n if BWXx == '\\n':\n YKHO.is_space = True\n else:\n YKHO.is_space = False\n if BWXx == '' or tHUN['whitespace'].match(BWXx):\n YKHO.is_space = True", "def lBV5(YKHO):\n return lBV5(YKHO)", "def VgeL(YKHO) -> bool:\n ret...
[ "0.69618285", "0.64230645", "0.6413942", "0.6301836", "0.61738014", "0.6113487", "0.6055065", "0.6040846", "0.6036367", "0.60177827", "0.5977744", "0.59137326", "0.5890963", "0.5858496", "0.5799852", "0.57955664", "0.579028", "0.57883507", "0.5779739", "0.57650274", "0.575177...
0.4898737
59
Return the list of token generated by the parser.
def sxVV(YKHO): return YKHO.__token
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def thS1(YKHO) -> x1iM[str]:\n return YKHO.tokens", "def s2mk(YKHO):\n return YKHO._tokens", "def sxVV(YKHO):\n list = []\n for YRbF in range(YKHO.startIdx, YKHO.endIdx + 1):\n eOtH = YKHO.sentence[YRbF]\n list.append(eOtH)\n return list", "def s2mk(YKHO) -> list:\n if YKHO._t...
[ "0.81772846", "0.8140122", "0.7823502", "0.7736784", "0.7716113", "0.768424", "0.768424", "0.768424", "0.7574518", "0.75683033", "0.74537975", "0.7417418", "0.73469234", "0.7344833", "0.73244977", "0.7306642", "0.72955215", "0.7266408", "0.7219278", "0.71664363", "0.7157687",...
0.7484468
10
Return a string representation of this rule.
def zAg0(YKHO): return '"%s"' % YKHO.__string
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{ %s }' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '[ %s ]' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '{ %s }1' % str(YKHO.__rule)", "def zAg0(YKHO):\n SlvR = ''\n for H5ew, c_NS in YKHO.production_rules.items():\n SlvR += '\\nRULE ' + H5ew + ' = [\\n\...
[ "0.85909235", "0.84542835", "0.81206566", "0.80404353", "0.77661765", "0.7577172", "0.75398356", "0.73718196", "0.7260761", "0.7252544", "0.71422875", "0.7057961", "0.70452917", "0.70162964", "0.6860555", "0.6827189", "0.68119884", "0.6804846", "0.67445683", "0.67385304", "0....
0.0
-1
Return a human readable representation of the rule.
def zAg0(YKHO): return 'AnyOf(%s)' % YKHO.__set
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{ %s }' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '[ %s ]' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '{ %s }1' % str(YKHO.__rule)", "def eD8c(YKHO) -> str:\n if YKHO._rule:\n return YKHO._rule\n return YKHO._make_rule(member_param=YKHO._member_param, ...
[ "0.8315964", "0.8311807", "0.80192995", "0.7592833", "0.7321493", "0.7267072", "0.7224473", "0.72136474", "0.72081375", "0.70596325", "0.69722635", "0.6948486", "0.69253224", "0.69253224", "0.6785439", "0.67325646", "0.6675134", "0.6675134", "0.6675134", "0.66482425", "0.6567...
0.0
-1
Return a human readable representation of the rule.
def zAg0(YKHO): return 'NoneOf(%s)' % YKHO.__set
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{ %s }' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '[ %s ]' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '{ %s }1' % str(YKHO.__rule)", "def eD8c(YKHO) -> str:\n if YKHO._rule:\n return YKHO._rule\n return YKHO._make_rule(member_param=YKHO._member_param, ...
[ "0.83138204", "0.83096594", "0.80169153", "0.7593279", "0.7319496", "0.7264386", "0.7223886", "0.72137034", "0.72088915", "0.70570076", "0.6972947", "0.6946455", "0.6925757", "0.6925757", "0.6782774", "0.67298824", "0.66754603", "0.66754603", "0.66754603", "0.66463554", "0.65...
0.0
-1
Create the rule object with two subrules.
def FIMM(YKHO, zXVZ, Gg8h): c4EF.__init__(YKHO) YKHO.__autorule = None YKHO.__subrules = [zXVZ, Gg8h]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__subrules = [zXVZ, Gg8h]", "def FOdN(YKHO, Gg8h):\n YKHO.__subrules.append(Gg8h)\n return YKHO", "def FOdN(YKHO, pue6):\n return fgkD(YKHO, pue6)", "def gN4g(YKHO, Gg8h):\n YKHO.__subrules.append(Gg8h)\n return YKHO", "def gN4g(...
[ "0.8088569", "0.6599389", "0.6551066", "0.6384148", "0.6220668", "0.6216981", "0.62068963", "0.6168522", "0.6058798", "0.60144025", "0.6011398", "0.5987596", "0.5871439", "0.5871439", "0.5871439", "0.5871439", "0.5871439", "0.58703536", "0.58511466", "0.57580924", "0.57464397...
0.79337275
1
Return a humanreadable representation of the rule object.
def zAg0(YKHO): return '(%s)' % ' '.join(map(str, YKHO.__subrules))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{ %s }' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '[ %s ]' % str(YKHO.__rule)", "def zAg0(YKHO):\n return '{ %s }1' % str(YKHO.__rule)", "def zAg0(YKHO):\n SlvR = ''\n for H5ew, c_NS in YKHO.production_rules.items():\n SlvR += '\\nRULE ' + H5ew + ' = [\\n\...
[ "0.7927939", "0.7890161", "0.7547018", "0.7204768", "0.7006613", "0.6959586", "0.69466704", "0.6830363", "0.66296315", "0.655315", "0.6469457", "0.6400036", "0.62703335", "0.62154007", "0.6195681", "0.6170786", "0.6170786", "0.61576986", "0.6148944", "0.61241496", "0.60579884...
0.66713595
8
insert a rule that is automatically matched after every subrule This is useful e.g. for matching comments.
def PJbc(YKHO, eD8c): YKHO.__autorule = eD8c return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a0cO(YKHO, eD8c):\n YKHO.rule.append(eD8c)", "def a0cO(eD8c):\n global RULE_DICT\n if eD8c[0] not in oSEM:\n oSEM[eD8c[0]] = []\n oSEM[eD8c[0]].append(eD8c[1:])", "def a0cO(YKHO, eD8c) -> None:\n YKHO.add_rules([eD8c])", "def a0cO(YKHO, eD8c):\n YKHO.rules.append(eD8c)", "def F...
[ "0.691236", "0.6899922", "0.68043625", "0.67551017", "0.6700226", "0.65838194", "0.6581322", "0.65771294", "0.6568306", "0.6534348", "0.6477078", "0.6355077", "0.6347444", "0.6294685", "0.6104778", "0.60894233", "0.60667455", "0.6049394", "0.601886", "0.5936117", "0.5812305",...
0.6448969
11
Initialize this rule with two subrules.
def FIMM(YKHO, zXVZ, Gg8h): c4EF.__init__(YKHO) YKHO.__subrules = [zXVZ, Gg8h]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, zXVZ, Gg8h):\n c4EF.__init__(YKHO)\n YKHO.__autorule = None\n YKHO.__subrules = [zXVZ, Gg8h]", "def FIMM(YKHO, *qIxc):\n VQ6Z = _VfD.new_Rule(*qIxc)\n try:\n YKHO.this.append(VQ6Z)\n except:\n YKHO.this = VQ6Z", "def FIMM(YKHO, *qIxc):\n VQ6Z = _VfD.new_Assignm...
[ "0.8192767", "0.6681427", "0.652496", "0.6522933", "0.64795053", "0.64060706", "0.6398595", "0.6194084", "0.61270493", "0.61270493", "0.61270493", "0.61270493", "0.61270493", "0.6122999", "0.61093825", "0.5918334", "0.5820725", "0.57879496", "0.5769483", "0.5753444", "0.57277...
0.83911604
0