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
Find first incorrect value in integers list.
def SW8Z(WbAn: Union[str, list], uK8v: int=25) -> int: hkxX = De9W(WbAn) if isinstance(WbAn, str) else WbAn for YRbF in range(uK8v, len(hkxX)): if not any((jzdc + Fg_i == hkxX[YRbF] for jzdc, Fg_i in E6VQ(hkxX[YRbF - uK8v:YRbF], 2))): return hkxX[YRbF] raise ValueError('Input data has no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VsXh(gXtX):\n gXtX = set(gXtX)\n YRbF = 1\n while YRbF in gXtX:\n YRbF += 1\n return YRbF", "def M_4V(Uqbu: List):\n for YRbF in range(len(Uqbu)):\n if Uqbu[YRbF] != YRbF + 1:\n return YRbF + 1", "def CIRx(yv6U, QI1n):\n for mLGw in range(1, QI1n + 1):\n if...
[ "0.74117213", "0.69529593", "0.69111824", "0.67830884", "0.67365056", "0.66924214", "0.6681767", "0.65963084", "0.6540909", "0.6510272", "0.6504537", "0.6494132", "0.64854145", "0.6468707", "0.6430582", "0.6392676", "0.6384597", "0.6337622", "0.6334163", "0.6314859", "0.62840...
0.6189827
33
Method to determine if a specific user has access to a given file. Default behavior is to assume the user has no access and then grant it. Uses self.locked_file to check if a locked file exists
def JL1u(YKHO): YKHO._has_access = False if Hy7s.path.isfile(YKHO.locked_file): uYCY = YKHO.read_contact_info_from_locked_file() if uYCY is not None and 'USERNAME' in uYCY and (uYCY['USERNAME'] == GDa9.USERNAME) or YKHO.is_admin: YKHO._has_access = True else: YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ki2L(YKHO):\n if not YKHO.is_locked():\n YKHO.open()\n return True\n elif YKHO.is_locked() and YKHO.get_contact_info()['USER'] == GDa9.USER:\n YKHO.open()\n return True\n return False", "def hi3n(YKHO, CBIr):\n if YKHO.owner:\n return YKHO.owner == CBIr.pk or YK...
[ "0.6990596", "0.6630094", "0.6547965", "0.65007395", "0.64532536", "0.64529324", "0.6439488", "0.6351788", "0.63167244", "0.6224296", "0.6223063", "0.6221474", "0.6221474", "0.6207071", "0.6206048", "0.6199581", "0.61534953", "0.61342055", "0.61081076", "0.6080312", "0.606627...
0.69362134
1
Converts a string to boolean value
def sy30(KCHu): KCHu = KCHu.lower() return KCHu == 'true' or KCHu == 'yes' or KCHu == 'y' or (KCHu == '1')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M0mR(KCHu):\n if KCHu == 'True':\n return True\n elif KCHu == 'False':\n return False", "def M0mR(vIwR):\n if vIwR == 'True':\n return True\n elif vIwR == 'False':\n return False", "def M0mR(YKHO, str):\n if str.lower() == 'true':\n return True\n elif st...
[ "0.89080465", "0.88693863", "0.8866076", "0.88434243", "0.8806035", "0.87589645", "0.8750763", "0.873481", "0.8726751", "0.86863685", "0.8641103", "0.86310804", "0.8598857", "0.85929173", "0.8584812", "0.85687363", "0.85649383", "0.85600454", "0.8559872", "0.8545056", "0.8538...
0.0
-1
Get the total squad points for this pilot with its upgrades
def YYJ9(YKHO): return YKHO._points + sum([XYqQ.points for XYqQ in YKHO.upgrades])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wQph(YKHO):\n YKHO.PointsTotal = 0\n YKHO.PointsTotal += YKHO.STp\n YKHO.PointsTotal += YKHO.DXp\n YKHO.PointsTotal += YKHO.IQp\n YKHO.PointsTotal += YKHO.HTp\n YKHO.PointsTotal += YKHO.HPp\n YKHO.PointsTotal += YKHO.WILLp\n YKHO.PointsTotal += YKHO.PERp\n YKHO.PointsTotal += YKHO.FP...
[ "0.6404367", "0.6300526", "0.62293804", "0.6185688", "0.6047116", "0.6040395", "0.5919553", "0.58987516", "0.5876489", "0.58343154", "0.5796037", "0.57846016", "0.57662535", "0.57588005", "0.57283306", "0.57215136", "0.5663213", "0.5630039", "0.56187874", "0.5600044", "0.5600...
0.74895376
0
Figure out if this ship's damage cards exceed its hull
def Bpvr(YKHO): return YKHO.damage_count() < YKHO.hull
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VtS_(YKHO):\n VFKs = sum([NYWm + max(1, len(oyg0.species)) for oyg0 in YKHO.players])\n dsE5('Cards needed: ' + str(VFKs) + 'Available: ' + str(len(YKHO.deck)), verbose=True)\n return not YKHO.players or VFKs > len(YKHO.deck)", "def XGHh(YKHO):\n UHFx = 0\n for RUgX in YKHO.board.opponents:\n ...
[ "0.6250567", "0.598487", "0.5937503", "0.5925818", "0.59063303", "0.5905674", "0.589906", "0.58857113", "0.5817163", "0.58067554", "0.57962203", "0.5791393", "0.5721404", "0.57175416", "0.57142687", "0.5705065", "0.57039756", "0.57036257", "0.56962645", "0.56872207", "0.56839...
0.6513136
0
Get the list of weapons that can be used by this pilot
def sjvN(YKHO): return [YKHO.primary_weapon]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uUuk(YKHO):\n return YKHO.weapons", "def wzl9():\n return (kLxY(cost=8, damage=4, armor=0), kLxY(cost=10, damage=5, armor=0), kLxY(cost=25, damage=6, armor=0), kLxY(cost=40, damage=7, armor=0), kLxY(cost=74, damage=8, armor=0))", "def WtLl(YKHO, xyI0=[]) -> x1iM[kLxY]:\n hlel = []\n for ZfUD in...
[ "0.81807464", "0.76834327", "0.73481894", "0.6963617", "0.69199723", "0.6635521", "0.64943016", "0.63951576", "0.62569994", "0.61888343", "0.61226135", "0.6093411", "0.608276", "0.6057414", "0.60135204", "0.59915435", "0.5983757", "0.59831077", "0.59814346", "0.5971259", "0.5...
0.74219215
2
Return temperature details for a given start date.
def a2dB(yKcO='2017-01-01'): _SDQ = cuiw.query(Ny6I.tobs).filter(Ny6I.date == yKcO).all() It57 = rLdf.DataFrame(_SDQ, columns=['Observations_Count']) E5G1 = It57['Observations_Count'] eCok = min(E5G1) TWl1 = max(E5G1) CEj2 = oyIN.mean(E5G1) a2dB = [] QCnx = {} QCnx['Min Temperature']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eUA1(yKcO):\n print(yKcO)\n dixj = z1yX(str(yKcO))\n return pz3A(dixj)", "def epnE(kepv):\n xYVR = cuiw.query(JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs), JfyU.max(Ny6I.tobs)).filter(Ny6I.date >= kepv).all()\n ovGo = []\n for m3B5, Z2Nq, RfSx in xYVR:\n Yx35 = {}\n Yx35['TMIN'] =...
[ "0.77404195", "0.70403564", "0.69959044", "0.69054127", "0.6817764", "0.6754401", "0.67446893", "0.6649777", "0.6624905", "0.66232425", "0.64149004", "0.6414156", "0.64091575", "0.6341333", "0.63398176", "0.629278", "0.6275525", "0.62267077", "0.6215537", "0.6188672", "0.6142...
0.72190136
1
Determine if the tree is a valid BST.
def Lx7o(YKHO): if YKHO.root == None: return True else: return YKHO.root.isBST(svkh, lVfY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCpr(J_Es):\n return False", "def PDoh(YKHO, tk5Y):\n return YKHO._is_valid(tk5Y)[0]", "def r88K(tk5Y):\n return deVW(tk5Y, 0, HwRy.maxsize)", "def ZIPD(tk5Y):\n if tk5Y is None:\n return True\n elif type(tk5Y) == list and len(tk5Y) == 3 and mQoi(tk5Y[0]):\n return ZIPD(tk5Y[...
[ "0.7888762", "0.7816756", "0.7699852", "0.76678747", "0.75235176", "0.75026053", "0.74467796", "0.7336924", "0.7317495", "0.7296381", "0.7265933", "0.7202055", "0.717895", "0.717347", "0.7126669", "0.71184134", "0.7088521", "0.7088521", "0.7082302", "0.70316267", "0.7031154",...
0.79992616
0
For a given sentence, return the average word length.
def k7zN(yAmx): for XP5J in "!?',;.": yAmx = yAmx.replace(XP5J, '') V22M = yAmx.split() return round(sum((len(GIN8) for GIN8 in V22M)) / len(V22M), 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EMgQ(l5Ny):\n HKwb = oOPm(WoCN(MTT8(l5Ny).strip()), '.!?')\n Ae1y = 0\n for yAmx in HKwb:\n Ae1y = Ae1y + len(Cry4(yAmx))\n Aofo = Ae1y / len(HKwb)\n return Aofo", "def EMgQ(l5Ny):\n MBGi = ''\n for ZfUD in l5Ny:\n MBGi += ' ' + ZfUD.strip()\n mTBh = oOPm(MBGi, '!?.')\n ...
[ "0.85415035", "0.83955705", "0.8376953", "0.8353164", "0.833083", "0.832023", "0.8310082", "0.8306275", "0.82595557", "0.82492805", "0.8200833", "0.81700796", "0.8071522", "0.8071142", "0.80041677", "0.77687544", "0.7713236", "0.7712585", "0.75785226", "0.7570466", "0.7527675...
0.7532258
20
For a given sentence, return the average word length.
def LjW2(yAmx): for XP5J in vIwR.punctuation: yAmx = yAmx.replace(XP5J, '') V22M = yAmx.split() return round(sum((len(GIN8) for GIN8 in V22M)) / len(V22M), 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EMgQ(l5Ny):\n HKwb = oOPm(WoCN(MTT8(l5Ny).strip()), '.!?')\n Ae1y = 0\n for yAmx in HKwb:\n Ae1y = Ae1y + len(Cry4(yAmx))\n Aofo = Ae1y / len(HKwb)\n return Aofo", "def EMgQ(l5Ny):\n MBGi = ''\n for ZfUD in l5Ny:\n MBGi += ' ' + ZfUD.strip()\n mTBh = oOPm(MBGi, '!?.')\n ...
[ "0.85415035", "0.83955705", "0.8376953", "0.8353164", "0.833083", "0.832023", "0.8310082", "0.8306275", "0.82595557", "0.82492805", "0.8200833", "0.81700796", "0.8071522", "0.8071142", "0.80041677", "0.77687544", "0.7713236", "0.7712585", "0.75785226", "0.7570466", "0.7532258...
0.74307764
23
For a given sentence, return the average word length.
def lek7(yAmx): lye9 = vIwR.punctuation + vIwR.whitespace V22M = [] GkBF = 0 t7hl = 0 VQPA = '' for Z9rn in yAmx: if Z9rn not in lye9: VQPA += Z9rn elif Z9rn in vIwR.whitespace: t7hl += 1 GkBF += len(VQPA) VQPA = '' return round...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EMgQ(l5Ny):\n HKwb = oOPm(WoCN(MTT8(l5Ny).strip()), '.!?')\n Ae1y = 0\n for yAmx in HKwb:\n Ae1y = Ae1y + len(Cry4(yAmx))\n Aofo = Ae1y / len(HKwb)\n return Aofo", "def EMgQ(l5Ny):\n MBGi = ''\n for ZfUD in l5Ny:\n MBGi += ' ' + ZfUD.strip()\n mTBh = oOPm(MBGi, '!?.')\n ...
[ "0.85415035", "0.83955705", "0.8376953", "0.8353164", "0.833083", "0.832023", "0.8310082", "0.8306275", "0.82595557", "0.82492805", "0.8200833", "0.81700796", "0.8071522", "0.8071142", "0.80041677", "0.77687544", "0.7713236", "0.7712585", "0.75785226", "0.7570466", "0.7532258...
0.6659
54
For a given sentence, return the average word length.
def aB5_(yAmx): GkBF = 0 t7hl = 1 if len(yAmx) else 0 for Z9rn in yAmx.translate(QkOo): if Z9rn in vIwR.whitespace: t7hl += 1 else: GkBF += 1 return round(GkBF / t7hl, 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EMgQ(l5Ny):\n HKwb = oOPm(WoCN(MTT8(l5Ny).strip()), '.!?')\n Ae1y = 0\n for yAmx in HKwb:\n Ae1y = Ae1y + len(Cry4(yAmx))\n Aofo = Ae1y / len(HKwb)\n return Aofo", "def EMgQ(l5Ny):\n MBGi = ''\n for ZfUD in l5Ny:\n MBGi += ' ' + ZfUD.strip()\n mTBh = oOPm(MBGi, '!?.')\n ...
[ "0.85415035", "0.83955705", "0.8376953", "0.8353164", "0.833083", "0.832023", "0.8310082", "0.8306275", "0.82595557", "0.82492805", "0.8200833", "0.81700796", "0.8071522", "0.8071142", "0.80041677", "0.77687544", "0.7713236", "0.7712585", "0.75785226", "0.7570466", "0.7532258...
0.6929917
42
For a given sentence, return the average word length.
def S6e1(yAmx): V22M = yAmx.translate(qCUw).split() return round(sum((len(GIN8) for GIN8 in V22M)) / len(V22M), 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EMgQ(l5Ny):\n HKwb = oOPm(WoCN(MTT8(l5Ny).strip()), '.!?')\n Ae1y = 0\n for yAmx in HKwb:\n Ae1y = Ae1y + len(Cry4(yAmx))\n Aofo = Ae1y / len(HKwb)\n return Aofo", "def EMgQ(l5Ny):\n MBGi = ''\n for ZfUD in l5Ny:\n MBGi += ' ' + ZfUD.strip()\n mTBh = oOPm(MBGi, '!?.')\n ...
[ "0.85415035", "0.83955705", "0.8376953", "0.8353164", "0.833083", "0.832023", "0.8310082", "0.8306275", "0.82595557", "0.82492805", "0.8200833", "0.81700796", "0.8071522", "0.8071142", "0.80041677", "0.77687544", "0.7713236", "0.7712585", "0.75785226", "0.7570466", "0.7532258...
0.7335665
26
Given a string, find the first nonrepeating character in it and return its index.
def YZVg(KCHu): Gjtu = {} for YRbF in KCHu: if YRbF not in Gjtu: Gjtu[YRbF] = 1 else: Gjtu[YRbF] += 1 for YRbF in range(len(KCHu)): if Gjtu[KCHu[YRbF]] == 1: return YRbF return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hdre(vIwR):\n for or8S in range(len(vIwR)):\n BtqJ = False\n for dsqg in range(len(vIwR)):\n if vIwR[or8S] == vIwR[dsqg] and or8S != dsqg:\n BtqJ = True\n break\n if not BtqJ:\n return or8S\n return -1", "def XAqT(KCHu: str) -> in...
[ "0.8775324", "0.83768505", "0.8350077", "0.8279873", "0.81146306", "0.80871516", "0.8000581", "0.79355544", "0.7657605", "0.7610531", "0.76066", "0.757334", "0.72766167", "0.71280056", "0.6988392", "0.6980156", "0.694733", "0.69336987", "0.6916576", "0.6857727", "0.67802006",...
0.61976546
58
Push item to end of queue.
def _jXH(YKHO, ZfUD): YKHO.items.append(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ty2c(YKHO, ZfUD):\n YKHO.queue.put(ZfUD)\n if YKHO._batch_full():\n YKHO.flush()", "def _jXH(YKHO, ZfUD):\n if ZfUD is None:\n raise ValueError('Cannot push None in the queue')\n YKHO.dead_queue.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO.__queue.appendleft(ZfUD)", "def jvNa...
[ "0.8301499", "0.80725783", "0.806576", "0.8044152", "0.80156124", "0.7962848", "0.79463917", "0.7889888", "0.7885692", "0.78719974", "0.7861163", "0.78564656", "0.78524417", "0.78524417", "0.78524417", "0.78524417", "0.78524417", "0.78310704", "0.78167415", "0.78167415", "0.7...
0.7613959
37
Add a user to the application.
def IMdO(YKHO, NtEF, jTXt, D3lj): I83C = str(rU7A(32)) vhgk = qzFd(jTXt, I83C) YKHO._account_manager.add_user(NtEF, D3lj, vhgk, I83C)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IMdO(YKHO) -> None:\n pass", "def IMdO(YKHO):\n pass", "def IMdO(YKHO, CBIr):\n YKHO.users.append(CBIr)", "def IMdO(YKHO, CBIr):\n YKHO.users.append(CBIr)", "def IMdO(YKHO, CBIr):\n YKHO.users.append(CBIr)", "def IMdO(YKHO, mWFP):\n pass", "def IMdO(YKHO):\n raise NotImplemente...
[ "0.8571595", "0.8247428", "0.814054", "0.814054", "0.814054", "0.8137214", "0.8069336", "0.80449826", "0.80449826", "0.80449826", "0.8033011", "0.78400224", "0.7739134", "0.7725201", "0.7714246", "0.7697433", "0.76901364", "0.76689154", "0.7652598", "0.76515555", "0.7625753",...
0.7112898
79
Returns the index the word has in the list.
def OP6a(YKHO, cAk2): for F6AI in range(0, YKHO.length_of_list()): if YKHO.tl[F6AI] == cAk2: return F6AI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(GIN8, vwCE):\n d6pt = 0\n for ZfUD in vwCE:\n if ZfUD[0] == GIN8:\n return d6pt\n else:\n d6pt += 1\n return -1", "def acax(YKHO) -> int:\n return qe4Y.get(YKHO, 'word_index')", "def uBav(GIN8: str) -> h8nf[int]:\n return V22M.index(GIN8) if GIN8 in V...
[ "0.8732069", "0.7731734", "0.7691147", "0.76356405", "0.7618922", "0.7600969", "0.73696715", "0.73571724", "0.7257617", "0.72426087", "0.72260207", "0.7223043", "0.7142234", "0.7086891", "0.7042823", "0.701443", "0.7005062", "0.6962101", "0.69385713", "0.6860101", "0.684459",...
0.7796745
1
Return the next `batch_size` examples, features and labels from this data set.
def yEmi(YKHO, Ep8u): assert Ep8u <= YKHO._num_samples if YKHO._index + Ep8u >= YKHO._num_samples: IuXB = oyIN.arange(YKHO._num_samples) oyIN.random.shuffle(IuXB) YKHO._images = YKHO._images[IuXB] YKHO._labels = YKHO._labels[IuXB] YKHO._features = YKHO._features[IuXB] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next(YKHO, Ep8u):\n if YKHO.batch_id == len(YKHO.data):\n YKHO.batch_id = 0\n J1hN = YKHO.data[YKHO.batch_id:min(YKHO.batch_id + Ep8u, len(YKHO.data))]\n VFGi = YKHO.features[YKHO.batch_id:min(YKHO.batch_id + Ep8u, len(YKHO.data))]\n NAln = YKHO.targets[YKHO.batch_id:min(YKHO.batch_id + Ep8u...
[ "0.8290975", "0.8225307", "0.81640625", "0.81451327", "0.8139181", "0.81367517", "0.81011647", "0.8095452", "0.8078294", "0.80310243", "0.8005849", "0.79655755", "0.79610145", "0.7949722", "0.79492426", "0.79323465", "0.79224634", "0.78714365", "0.7870567", "0.7864664", "0.78...
0.8060263
9
Initializes a new TunnelStatus object with values from keyword arguments.
def FIMM(YKHO, **B2fa): YKHO.swagger_types = {'ip_address': 'str', 'lifecycle_state': 'str', 'time_created': 'datetime', 'time_state_modified': 'datetime'} YKHO.attribute_map = {'ip_address': 'ipAddress', 'lifecycle_state': 'lifecycleState', 'time_created': 'timeCreated', 'time_state_modified': 'timeStateModifi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(owws, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.battery_level is None:\n YKHO.battery_level = 0.0\n if YKHO.battery_status is None:\n YKHO.battery_status = 0\n if YKHO.brake_on is None:\n YKHO.br...
[ "0.64048207", "0.6271667", "0.6243414", "0.61907303", "0.61849314", "0.6182839", "0.6148294", "0.611324", "0.60592145", "0.6045112", "0.6029863", "0.6028052", "0.59899944", "0.59899944", "0.59899944", "0.5946201", "0.5936652", "0.59360415", "0.5934846", "0.58790123", "0.58726...
0.0
-1
[Required] Gets the ip_address of this TunnelStatus. The IP address of Oracle's VPN headend.
def I33c(YKHO): return YKHO._ip_address
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I33c(YKHO):\n return YKHO.ot.ip_address", "def pexK(YKHO) -> str:\n try:\n if YKHO.has_connection():\n bGrB, eIWn = YKHO.vpn_client_container.exec_run('ip --json addr show dev tun0')\n eIWn = qQXR.loads(eIWn)\n except (bZdH, O2Ii.errors.APIError):\n raise Connecti...
[ "0.6828381", "0.6655175", "0.66251093", "0.65652776", "0.6465893", "0.6465893", "0.6465028", "0.6421989", "0.6418836", "0.6417967", "0.6351983", "0.6349123", "0.6349123", "0.6349123", "0.6349123", "0.6349123", "0.6349123", "0.6349123", "0.6349123", "0.6341911", "0.63247967", ...
0.6363419
12
Sets the ip_address of this TunnelStatus. The IP address of Oracle's VPN headend.
def I33c(YKHO, I33c): YKHO._ip_address = I33c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I33c(YKHO, I33c):\n YKHO._ip_address = I33c", "def REzQ(YKHO, UTX6):\n YKHO.write(':SYST:COMM:LAN:IPAD {0}'.format(UTX6))", "def I33c(YKHO, I33c):\n YKHO._ip_address = I33c", "def I33c(YKHO, I33c):\n YKHO._ip_address = I33c", "def I33c(YKHO, I33c):\n YKHO._ip_address = I33c", "def I33c...
[ "0.6882358", "0.6840638", "0.67851394", "0.67851394", "0.67851394", "0.67851394", "0.67851394", "0.67851394", "0.67851394", "0.67851394", "0.6782492", "0.6510458", "0.63808674", "0.6355638", "0.6295273", "0.6241477", "0.6241477", "0.61535347", "0.6092532", "0.60875607", "0.60...
0.6843015
1
Gets the lifecycle_state of this TunnelStatus. The tunnel's current state.
def pwxl(YKHO): return YKHO._lifecycle_state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D1Cb(YKHO) -> str:\n return qe4Y.get(YKHO, 'lifecycle_status')", "def pwxl(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'lifecycle_state')", "def pwxl(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'lifecycle_state')", "def sBHl(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('T...
[ "0.72472954", "0.7123357", "0.7123357", "0.7110164", "0.68234706", "0.6667351", "0.66474694", "0.6545646", "0.64177656", "0.6375892", "0.6234841", "0.6234841", "0.62086815", "0.6193568", "0.6193568", "0.6149463", "0.614206", "0.6135477", "0.6128097", "0.6128097", "0.6125794",...
0.79296905
0
Gets the time_created of this TunnelStatus. The date and time the IPSec connection was created, in the format defined by RFC3339.
def QT9s(YKHO): return YKHO._time_created
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IWVZ(YKHO):\n return YKHO._created", "def IWVZ(YKHO):\n return YKHO.__created_time", "def IWVZ(YKHO):\n return YKHO.__created_time", "def wqpv(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_time')", "def wqpv(YKHO) -> str:\n return qe4Y.get(YKHO, 'created_time')", "def wqpv(YKHO) -> st...
[ "0.7709034", "0.7704053", "0.7704053", "0.76566285", "0.76566285", "0.76566285", "0.76566285", "0.76566285", "0.76566285", "0.76566285", "0.76385903", "0.7514877", "0.75133204", "0.75133204", "0.75133204", "0.75133204", "0.75133204", "0.7495791", "0.7495791", "0.7452037", "0....
0.7634036
12
Constructs an export data folder path by concatenating the parent folder to the EXPORT_FOLDER_NAME folder name.
def r1dd(xtX7): return Hy7s.path.join(xtX7, iBOd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kFKf(YKHO):\n pmON = Hy7s.path.join('exports', YKHO.export_id)\n return pmON", "def ZSVW(YKHO) -> str:\n if not YKHO.m_DataFolder:\n return LOnh.GetExecutingFilePath()\n return Hy7s.path.join(LOnh.GetExecutingFilePath(), YKHO.m_DataFolder)", "def t396(lhy8):\n\n def FQ0H(G1Hx):\n ...
[ "0.6783703", "0.6371973", "0.63383764", "0.62860155", "0.62575334", "0.62362725", "0.6148079", "0.6147481", "0.61303747", "0.6118073", "0.6101277", "0.60939217", "0.6059544", "0.6047331", "0.60171145", "0.59874934", "0.5920459", "0.5889333", "0.58819157", "0.5877966", "0.5856...
0.70978
0
Returns an iterator over all elements in the given XML subtree.
def K2kF(LihS): E5BI = [LihS] while E5BI: LihS = E5BI.pop() yield LihS E5BI.extend(LihS.element_children())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vxgt():\n S0MI.info('Opening %s for iterative parsing', yND1)\n snp3 = lGU7.open(yND1, 'rb')\n A97Q = QGpr.iterparse(snp3, events=('start', 'end'))\n bGrB, tk5Y = next(A97Q)\n VW3w = None\n for tvqc, rcW9 in A97Q:\n if tvqc == 'start' and VW3w is None:\n VW3w = rcW9.tag\n ...
[ "0.69040096", "0.68216205", "0.68153566", "0.6742512", "0.667902", "0.6602368", "0.65390223", "0.65134484", "0.64782095", "0.6438903", "0.64386964", "0.6375977", "0.63506633", "0.63506633", "0.633806", "0.63157094", "0.63028646", "0.63009745", "0.62965894", "0.62942344", "0.6...
0.0
-1
Represent this node as a string.
def wHJl(YKHO: 'BTNode') -> str: return 'BTNode(' + str(YKHO.data) + ', ' + repr(YKHO.left) + ', ' + repr(YKHO.right) + ')'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N9kG(YKHO, Q6kx):\n return repr(Q6kx.s)", "def N9kG(YKHO, Q6kx):\n return 'Str'", "def wHJl(YKHO) -> str:\n return 'StringValueNode(value=%r, location=%r)' % (YKHO.value, YKHO.location)", "def vIwR(YKHO):\n l5Ny = 'node ' + SLdk.string(YKHO.identifier, default='unknown') + '\\n'\n for xC3W...
[ "0.834548", "0.815433", "0.7896787", "0.7800347", "0.77465695", "0.7745987", "0.7717961", "0.7715412", "0.770745", "0.76422375", "0.76422375", "0.76422375", "0.76422375", "0.76422375", "0.76422375", "0.76422375", "0.76422375", "0.76152736", "0.76032484", "0.75921935", "0.7588...
0.7480182
32
Return True iff BTNode is a leaf
def loae(YKHO: 'BTNode') -> bool: return not YKHO.left and (not YKHO.right)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def loae(YKHO) -> bool:\n return YKHO.weight > 0 and YKHO.subtrees == []", "def loae(YKHO) -> bool:\n return YKHO.weight > 0 and YKHO.subtrees == []", "def loae(YKHO) -> bool:\n return YKHO.weight > 0 and YKHO.subtrees == []", "def loae(YKHO) -> bool:\n return YKHO.weight > 0 and YKHO.subtrees ==...
[ "0.84733397", "0.84733397", "0.84733397", "0.84733397", "0.84657747", "0.8459433", "0.8419168", "0.8352217", "0.83107716", "0.8309819", "0.8300561", "0.82426167", "0.82111204", "0.8196954", "0.8181881", "0.8179626", "0.8176219", "0.8175665", "0.8175665", "0.8174432", "0.81707...
0.889178
0
Return height of this tree.
def H2v2(YKHO: 'BST') -> int: return x8h4(YKHO._root)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v2(YKHO):\n if YKHO.root is None:\n return -1\n return YKHO.root.height", "def H2v2(YKHO) -> int:\n return YKHO._height(YKHO.root, 0)", "def H2v2(YKHO):\n return YKHO.get_height(YKHO.root)", "def H2v2(YKHO) -> int:\n if YKHO.root is None:\n return -1\n return YKHO.height...
[ "0.87466127", "0.8460581", "0.8446982", "0.8405551", "0.8403993", "0.8400207", "0.83791053", "0.8341989", "0.8329102", "0.8318245", "0.8254419", "0.8247157", "0.8220581", "0.8167531", "0.81109476", "0.8110432", "0.8107723", "0.808487", "0.79125935", "0.7909113", "0.79081357",...
0.84952223
1
Return height of tree rooted at node.
def x8h4(Q6kx): return 1 + max(x8h4(Q6kx.left), x8h4(Q6kx.right)) if Q6kx else -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v2(Q6kx):\n if Q6kx:\n return Q6kx.height\n else:\n return -1", "def H2v2(Q6kx):\n if Q6kx is None:\n return -1\n return Q6kx.height", "def H2v2(YKHO, Q6kx):\n if Q6kx is None:\n return -1\n return Q6kx.height", "def H2v2(YKHO, Q6kx):\n if Q6kx is None:\...
[ "0.86492616", "0.85535306", "0.8464215", "0.8464215", "0.84212416", "0.8365672", "0.8287706", "0.8285948", "0.8105638", "0.810013", "0.8048505", "0.8027937", "0.79629445", "0.79566795", "0.79474336", "0.79457706", "0.7901614", "0.7883903", "0.78818434", "0.78805715", "0.78005...
0.7658835
32
Mean Normalisation This method uses the mean of the observations in the transformation process
def MRvs(WKvO): yGTL = WKvO.mean() JRC0 = WKvO.min() IA3S = WKvO.max() s7NW = IA3S - JRC0 YjUu = (WKvO - yGTL) / s7NW return YjUu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gAl9(YKHO):\n if not YKHO.mean_normalised:\n if YKHO.gts.ndim == 2:\n YKHO.gts = YKHO.gts - fHeP.mean(YKHO.gts, axis=0)\n elif YKHO.gts.ndim == 3:\n for YRbF in range(0, YKHO.gts.shape[1]):\n YKHO.gts[:, YRbF, :] = YKHO.gts[:, YRbF, :] - fHeP.mean(YKHO.gts[...
[ "0.7875559", "0.7571912", "0.74858713", "0.7482771", "0.73314077", "0.7323528", "0.7318279", "0.72779334", "0.72457385", "0.72452533", "0.7228347", "0.7211719", "0.71482176", "0.7129484", "0.7108707", "0.7066659", "0.7060758", "0.70573455", "0.70381135", "0.70337933", "0.7032...
0.6671755
72
Returns a humanreadable representation of self
def wHJl(YKHO): return '{' + ', '.join((f'{mWFP}: {BWXx}' for mWFP, BWXx in sorted(YKHO.variable_values.items()))) + '}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.human_format()", "def zAg0(YKHO):\n return YKHO.pretty()", "def zAg0(YKHO):\n return YKHO.get_short_representation()", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n return str(YKHO)", "def wHJl(YKHO):\n ...
[ "0.8433546", "0.8254859", "0.81844825", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", "0.80775344", ...
0.0
-1
Detach disks from VM before test
def E1Ml(QePW, S8SU): YKHO = QePW.node.cls XJWM = YKHO.DISKS_MOUNTS_EXECUTOR[YKHO.vm_name]['disks'] for UTqa in XJWM: SSkF = bR7f.get_disk_obj(UTqa, attribute='id').get_name() YKHO.disk_names.append(SSkF) P0YW.setup('detach disk %s', SSkF) assert bR7f.detachDisk(True, SSkF, Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E1Ml(QePW, S8SU):\n YKHO = QePW.node.cls\n for SSkF in YKHO.disk_names:\n P0YW.setup('detach disk %s', SSkF)\n assert bR7f.detachDisk(True, SSkF, YKHO.vm_name), 'Failed to detach disk %s to vm %s' % (YKHO.disk_name, YKHO.vm_name)\n YKHO.disks_to_remove = YKHO.disk_names", "def ndwF(YKH...
[ "0.82298636", "0.7592499", "0.7300443", "0.7160014", "0.71586293", "0.7050359", "0.69332767", "0.69328886", "0.6807746", "0.6791327", "0.6701175", "0.66555136", "0.664707", "0.6576447", "0.65348", "0.65250164", "0.6519586", "0.64812756", "0.6478193", "0.6458369", "0.6436006",...
0.83628505
0
Delete downloaded files from test runner machine
def ilz4(QePW, S8SU): YKHO = QePW.node.cls def TXeZ(): P0YW.teardown('Cleaning downloaded directory %s after test', GPtr.FILE_PATH) [Hy7s.remove(nUeQ) for nUeQ in SC2F(GPtr.FILE_PATH + '*')] QePW.addfinalizer(TXeZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n RDuA.rmtree(YKHO.uploads_path)\n Hy7s.mkdir(YKHO.uploads_path)\n try:\n Hy7s.remove(YKHO.client_path + '/' + YKHO.filename)\n Hy7s.remove(YKHO.client_path + '/' + YKHO.filename2)\n Hy7s.remove(YKHO.client_path + '/' + 'download.txt')\n Hy7s.remove(YKHO.uploads...
[ "0.74662495", "0.7352476", "0.7352476", "0.73348665", "0.7306303", "0.7241825", "0.7106493", "0.7097267", "0.709192", "0.709192", "0.7089216", "0.7066886", "0.7065188", "0.70648885", "0.7029344", "0.70265645", "0.7018809", "0.69887537", "0.6980726", "0.69101745", "0.6901602",...
0.81104994
0
Detach disks from VM before test
def E1Ml(QePW, S8SU): YKHO = QePW.node.cls for SSkF in YKHO.disk_names: P0YW.setup('detach disk %s', SSkF) assert bR7f.detachDisk(True, SSkF, YKHO.vm_name), 'Failed to detach disk %s to vm %s' % (YKHO.disk_name, YKHO.vm_name) YKHO.disks_to_remove = YKHO.disk_names
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E1Ml(QePW, S8SU):\n YKHO = QePW.node.cls\n XJWM = YKHO.DISKS_MOUNTS_EXECUTOR[YKHO.vm_name]['disks']\n for UTqa in XJWM:\n SSkF = bR7f.get_disk_obj(UTqa, attribute='id').get_name()\n YKHO.disk_names.append(SSkF)\n P0YW.setup('detach disk %s', SSkF)\n assert bR7f.detachDisk(T...
[ "0.83628505", "0.7592499", "0.7300443", "0.7160014", "0.71586293", "0.7050359", "0.69332767", "0.69328886", "0.6807746", "0.6791327", "0.6701175", "0.66555136", "0.664707", "0.6576447", "0.65348", "0.65250164", "0.6519586", "0.64812756", "0.6478193", "0.6458369", "0.6436006",...
0.82298636
1
Tests whether the latent representation is [1, 1] and has the expected shape, and if the fully connected hidden layers have the expected shapes.
def MOxM(Gzv5, Norb, E1ho): WKvO = ht2j.randn(1, Gzv5) C3ST = AW2J(hidden_dim=Norb, latent_dim=E1ho) epBp = C3ST(WKvO) assert epBp.shape[-1] == E1ho assert ht2j.all((epBp >= -1) & (epBp <= 1)) fhcK = list(C3ST.children()) s1k6, kYGz = (fhcK[0].weight, fhcK[0].bias) assert s1k6.shape == (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfdN(YKHO):\n eBlq = YKHO.dim_in\n for gEmA in YKHO.iter():\n assert gEmA.dim_in == eBlq\n gEmA.check()\n eBlq = gEmA.dim_out\n assert YKHO.dim_out == eBlq\n return True", "def GfdN(YKHO):\n if not YKHO.W_in.shape == (YKHO.Nr, YKHO.Nu + 1):\n return False\n elif ...
[ "0.6860527", "0.67105275", "0.66746783", "0.65450937", "0.6539673", "0.64944685", "0.6489629", "0.64657295", "0.644566", "0.6400659", "0.635517", "0.6350806", "0.63261", "0.63137543", "0.6267738", "0.6265395", "0.62482804", "0.6241161", "0.6237714", "0.61949426", "0.61809456"...
0.0
-1
Renames the columns with bad names in a dataframe. 'Bad names' as in nonacceptable for a database column name.
def NEVS(jQ3Z: pd.DataFrame, U0TP: [str]=["'", '-', ' ', '(', ')', '/']) -> rLdf.DataFrame: for Npgh in U0TP: jQ3Z.columns = jQ3Z.columns.str.replace(Npgh, '_') return jQ3Z.columns
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yhqV(Emd4, f4IJ):\n A3mO = {}\n if isinstance(f4IJ, rLdf.DataFrame):\n for YRbF, iVRZ in enumerate(f4IJ.columns):\n Y2eJ = Emd4.fix_forbidden_name(iVRZ)\n if Y2eJ:\n A3mO[iVRZ] = Y2eJ\n else:\n raise Exception('frame argument should be pandas DataFram...
[ "0.78713363", "0.75094706", "0.7359805", "0.73028606", "0.72855127", "0.72525483", "0.7241468", "0.72211254", "0.7193229", "0.71710247", "0.710811", "0.71012294", "0.7087597", "0.6962518", "0.69536436", "0.69362843", "0.69272405", "0.69237655", "0.68960243", "0.68264174", "0....
0.7710783
1
Converts a dataframe to a database.
def p5fw(lc23: pd.DataFrame, Fp7r: str, GTA_: str) -> None: jQ3Z = lc23.copy() jQ3Z.columns = NEVS(jQ3Z) p9bx = FfT0(Fp7r) p9bx.execute_command(NocL(GTA_)) for iVRZ in jQ3Z.columns: p9bx.execute_command(Zvtq(GTA_, iVRZ)) jQ3Z.to_sql(GTA_, p9bx.connection, if_exists='append', index=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v9cN(YKHO, bOBl):\n w2B8 = iHv3.connect(YKHO.db_name)\n DpUl = w2B8.cursor()\n DpUl.execute('DROP TABLE IF EXISTS records')\n bOBl.to_sql('records', w2B8, if_exists='replace', index=False)\n rLdf.read_sql('select * from records', w2B8)\n w2B8.commit()\n w2B8.close()", "def tpzS(UzPC, jQ3...
[ "0.8346741", "0.78759104", "0.7866784", "0.78375584", "0.7651121", "0.7640327", "0.7546675", "0.75228614", "0.749164", "0.74302053", "0.7404602", "0.736756", "0.7326569", "0.7291737", "0.7275598", "0.72671676", "0.7249839", "0.72087914", "0.7196269", "0.7195789", "0.7173856",...
0.788881
1
Sorts array with merge sort method Returns sorted array >>> merge_sort([4, 30, 12, 1, 0, 101, 14]) [4, 0, 1, 12, 14, 30, 101] >>> merge_sort([1, 3, 8, 0, 2, 31, 12]) [12, 0, 1, 2, 3, 8, 31] >>> merge_sort([239, 1034, 234, 45, 0, 323, 12]) [234, 12, 0, 45, 239, 323, 1034]
def Qdf1(Ddli): if len(Ddli) == 1: return Ddli vJG3 = len(Ddli) // 2 mB6j = len(Ddli) na84 = Qdf1(Ddli[0:vJG3]) tQtD = Qdf1(Ddli[vJG3:mB6j]) return vGZu(na84, tQtD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qdf1(qw7D):\n exwG = len(qw7D)\n Zp8e(qw7D, 0, exwG - 1)", "def Qdf1(ezWE):\n exwG = len(ezWE)\n if exwG == 1:\n return ezWE\n r8hN = exwG // 2\n DtB2 = Qdf1(ezWE[0:r8hN])\n bvcK = Qdf1(ezWE[r8hN:exwG])\n o1IL = vGZu(DtB2, bvcK)\n return o1IL", "def Qdf1(qw7D):\n if len...
[ "0.7946727", "0.7803662", "0.77331924", "0.7696004", "0.7658283", "0.7651455", "0.7650856", "0.7638252", "0.7531863", "0.75204355", "0.75188464", "0.75067586", "0.7503942", "0.74828494", "0.74590135", "0.7448971", "0.74405444", "0.7432185", "0.73939836", "0.7384637", "0.73816...
0.7515234
11
Get the normalization array to use a raw CLSim table with Retro reco. Note that the `norm` array returned is meant to _multiply_ the counts in the raw CLSim table to obtain a survival probability.
def bl7X(luvA, fjBO, lW7f, ruF5, av52, QxJL, sI6y, kwaa, HEL_, L8m5, cUFi): I4Ic = len(av52) - 1 A3K9 = (len(sI6y) - 1) * (len(kwaa) - 1) KHcn = oyIN.diff(ruF5) oG5r = oyIN.diff(av52) qkrq = oyIN.diff(QxJL) g_CB = oyIN.max(QxJL) - oyIN.min(QxJL) GWjC = oyIN.mean(oG5r) assert oyIN.allclos...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tmf_(nPrm):\n ZCnw = oyIN.array(nPrm, copy=True)\n ZCnw /= oyIN.max(oyIN.abs(ZCnw), axis=0)\n return ZCnw", "def P6EL(YKHO):\n w75t = oyIN.atleast_2d(YKHO.truth).T\n YqYo = YKHO._arr / w75t\n YqYo[oyIN.isnan(YqYo)] = 0\n return DNZx(YqYo)", "def kwsU(YKHO):\n return DNZx(YKHO._arr /...
[ "0.63426507", "0.63243014", "0.6308654", "0.6246595", "0.6174693", "0.6029505", "0.60061395", "0.5996395", "0.5978566", "0.5919745", "0.590941", "0.587844", "0.5853542", "0.58520895", "0.5844765", "0.5842065", "0.58410054", "0.5829547", "0.58040535", "0.5801251", "0.57972723"...
0.0
-1
Convert latitude in degrees to Web Mercator latitude.
def iyZD(QnmL: float) -> float: nMvt = 6378137 lfXV = oyIN.log(oyIN.tan((90 + QnmL) * oyIN.pi / 360.0)) * nMvt return lfXV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K6b3(QnmL):\n return (float(QnmL) + 90) % 180 - 90", "def BylY(_UuI):\n return (_UuI + 90) / 0.5", "def _UuI(YKHO, QnmL):\n Q0HZ = QnmL[1:3]\n rf63 = QnmL[3:5]\n wSPC = float(QnmL[5:]) * 60\n if QnmL[:1] == 'N':\n Zihr = ''\n else:\n Zihr = '-'\n return float(Zihr + st...
[ "0.71553594", "0.7018905", "0.69573665", "0.66778827", "0.66778827", "0.6648597", "0.6580355", "0.65558004", "0.6534239", "0.64949644", "0.6478646", "0.6394288", "0.63449526", "0.62456006", "0.6203453", "0.61734235", "0.61734235", "0.6150798", "0.6144046", "0.6139845", "0.611...
0.64380014
11
Convert longidute in degrees to Web Mercator longitude.
def KU_k(FDPT: float) -> float: nMvt = 6378137 gmZg = FDPT * (nMvt * oyIN.pi / 180.0) return gmZg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fopC(YKHO, FDPT):\n JHe7 = FDPT[1:4]\n I8k0 = FDPT[4:6]\n UHLg = float(FDPT[6:]) * 60\n if FDPT[:1] == 'E':\n Zihr = ''\n else:\n Zihr = '-'\n return float(Zihr + str(int(JHe7) + float(I8k0) / 60 + UHLg / 3600)[:9])", "def DFSz(ma5k):\n return (ma5k[0] + ma5k[1] / 60) * (1....
[ "0.78725123", "0.7485531", "0.7485531", "0.7422492", "0.7290389", "0.721096", "0.7206328", "0.7046142", "0.7001249", "0.6989098", "0.69813687", "0.69214076", "0.6909623", "0.6847178", "0.68387794", "0.6822898", "0.6801664", "0.67988396", "0.6788904", "0.6788904", "0.6788904",...
0.0
-1
Lists all the requests that are linked to the given request.
def eDc5(x0hE: Client, qIxc: dict) -> AzJI[str, dict, ImMB]: gTi_ = qIxc.get('request_id') Aofo = x0hE.http_request('GET', url_suffix=f'requests/{gTi_}/link_requests') IWxK = Aofo.get('link_requests', []) QpfX: dict = oRi_(list) hlel = [] for QePW in IWxK: H3CF = N15c(QePW) hlel....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oHNC(YKHO, QePW: Optional[Any]=...):\n ...", "def dKqp(YKHO):\n VT3I = 'SELECT * FROM requests'\n return YKHO.fetchAll(VT3I)", "def xCU0():\n return ouvA().query(VNUm).all()", "def x1iM(YKHO, QePW, jMd6=None):\n GPtr = YKHO.GetMethodConfig('List')\n return YKHO._RunMethod(GPtr, QePW, gl...
[ "0.6733296", "0.64525175", "0.6423831", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", "0.6363123", ...
0.65875155
1
Returns a list of files in the input directory with the passed extension dir is the location of the directory containing the input files ext is a list of arguments describing permissible file extensions
def nmpl(dir, *YBcr): SLBz = [eHNT for eHNT in Hy7s.listdir(dir) if Hy7s.path.splitext(eHNT)[-1] in YBcr] return [Hy7s.path.join(dir, eHNT) for eHNT in SLBz]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O11k(YBcr, dir='./data'):\n return [Hy7s.path.join(dir, nUeQ) for nUeQ in Hy7s.listdir(dir) if nUeQ.endswith(YBcr)]", "def _lzz(AGPF, YBcr):\n return k8re.glob(f'{AGPF}/*.{YBcr}')", "def XpBr(dir, Fst3):\n return [XP5J.__str__() for XP5J in sorted(list(GkAb(dir).glob('**/*' + Fst3)))]", "def WJj...
[ "0.79684484", "0.77562845", "0.77111614", "0.7704776", "0.76660466", "0.7626454", "0.76177746", "0.75081563", "0.7499038", "0.74552345", "0.7438243", "0.7433965", "0.74134475", "0.73227537", "0.73105955", "0.7287447", "0.7284611", "0.72766757", "0.7255724", "0.7250527", "0.72...
0.8665285
0
Create a binary array out of a string. >>> _string_to_binarray('test') [0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 0, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0]
def E2DP(nPrm): iuLL = ''.join((bin(ord(WKvO))[2:].zfill(8) for WKvO in nPrm)) return [0 if WKvO == '0' else 1 for WKvO in iuLL]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l_65(KCHu):\n KCHu = MRxC.hexlify(KCHu).translate(m5WZ)\n KCHu = MRxC.hexlify(KCHu).translate(h6kF)\n KCHu = MRxC.hexlify(KCHu).translate(NLQU)\n jzdc = qw7D.array('B', KCHu)\n return jzdc", "def Jq2a(KCHu):\n return R3u8(KCHu)", "def wTLQ(KCHu):\n if not ZbWC.fullmatch('(0|1)*', KCHu)...
[ "0.79866564", "0.79089934", "0.7902254", "0.779826", "0.7588865", "0.75680816", "0.7336789", "0.7277613", "0.70339346", "0.70299345", "0.6984964", "0.68294364", "0.67513144", "0.674941", "0.67218333", "0.671349", "0.66950583", "0.6605415", "0.65965295", "0.6596194", "0.659154...
0.78374547
3
translates an rgb tuple of int to a tkinter friendly color code
def YXqd(d7Eb): return '#%02x%02x%02x' % d7Eb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IXwv(Z9rn):\n return tuple([int(255 * wEf2) for wEf2 in Z9rn[:3]])", "def d7Eb(d7Eb):\n return '#%02x%02x%02x' % d7Eb", "def tz7b(d7Eb):\n return '#%02x%02x%02x' % d7Eb", "def tz7b(d7Eb):\n return '#%02x%02x%02x' % d7Eb", "def foJY(qfpW):\n if qfpW:\n qfpW = ''.join([WKvO * 2 for ...
[ "0.72489655", "0.71920615", "0.7186514", "0.71832377", "0.7167646", "0.70948756", "0.7091499", "0.7068726", "0.70404005", "0.7030481", "0.7017892", "0.6987735", "0.69874454", "0.69874454", "0.69874454", "0.697915", "0.69778824", "0.6948122", "0.69480467", "0.6930442", "0.6927...
0.67541367
45
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Given a file path relative to the srcdir, load the file as a JSON object.
def DPs9(eHNT): eHNT = nUeQ(Hy7s.path.join(smxy, eHNT)) r845 = qQXR.loads(''.join(eHNT.readlines())) eHNT.close() return r845
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dftL(YKHO, Ux0P):\n return _XvE.byteify(qQXR.load(open(Hy7s.path.join(YKHO.src_dir, Ux0P))))", "def u7gK(Emd4, pmON):\n with open(pmON) as eHNT:\n return qQXR.load(eHNT)", "def lc9H(qaEx):\n pmON = Hy7s.path.normpath(Hy7s.path.join(MJH2, qaEx))\n with open(pmON, 'r') as eHNT:\n re...
[ "0.7557003", "0.75252676", "0.7353065", "0.72685546", "0.72406244", "0.7221178", "0.7201048", "0.7200657", "0.7169228", "0.7125964", "0.70965874", "0.70752937", "0.7049556", "0.7026119", "0.6999875", "0.6996953", "0.6985942", "0.6961679", "0.6954422", "0.6926493", "0.6921616"...
0.7187606
8
Given a list of strings, will return the index of the phone number. 1 if not found.
def g2RZ(YKHO, whSy): d6pt = -1 for YRbF, zFiD in enumerate(whSy): zFiD = zFiD.lower().strip() if YKHO._countNumDigits(zFiD) >= 10 and (not any((Jlgv in zFiD for Jlgv in ['fax', 'fx']))): return YRbF return d6pt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(mZmz, s_ww):\n for mLGw, rdlD in enumerate(mZmz):\n if s_ww in rdlD:\n return mLGw", "def Vn7Z(GIN8, vwCE):\n d6pt = 0\n for ZfUD in vwCE:\n if ZfUD[0] == GIN8:\n return d6pt\n else:\n d6pt += 1\n return -1", "def huPo(KCHu, qgK3):\n ...
[ "0.730479", "0.6655065", "0.6634539", "0.6611385", "0.6611385", "0.6579661", "0.6567832", "0.65453255", "0.6449432", "0.64218396", "0.63991874", "0.63966423", "0.6342564", "0.62204915", "0.6208751", "0.61951405", "0.6194018", "0.6069387", "0.60674846", "0.60413295", "0.603809...
0.72891515
1
Given a list of strings, will return the index of the name. 1 if not found.
def dtQ2(YKHO, whSy): d6pt = -1 gNJe = [] for YRbF, zFiD in enumerate(whSy): zFiD = zFiD.strip() utgL = ZbWC.compile('[A-Z]{1}[a-z]+\\s[A-Z]{1}[a-z]+') if YKHO._countNumDigits(zFiD) == 0 and len(zFiD.split()) == 2 and (len(utgL.findall(zFiD)) == 1): gNJe.append({'index': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn7Z(WKvO, G2R8):\n for d6pt, mWFP in enumerate(G2R8):\n if WKvO == mWFP:\n return d6pt", "def Vn7Z(mZmz, s_ww):\n for mLGw, rdlD in enumerate(mZmz):\n if s_ww in rdlD:\n return mLGw", "def FzV1(CK9p, t5CB):\n if CK9p in t5CB:\n d6pt = t5CB.index(CK9p)\n ...
[ "0.78561515", "0.7738222", "0.76867783", "0.76488703", "0.7602741", "0.7399689", "0.72227687", "0.7218193", "0.7147373", "0.70739853", "0.70739853", "0.69579834", "0.6927197", "0.6918546", "0.6908235", "0.69073194", "0.6845225", "0.682606", "0.68195105", "0.6799745", "0.67547...
0.7262619
6
Try resetting model weights to avoid weight leakage.
def UMkV(r8hN): for gEmA in r8hN.children(): if hasattr(gEmA, 'reset_parameters'): print(f'Reset trainable parameters of layer = {gEmA}') gEmA.reset_parameters()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMkV(YKHO):\n pass", "def UMkV(C3ST):\n if hasattr(C3ST, 'reset_parameters'):\n C3ST.reset_parameters()", "def UMkV(YKHO):\n\n def fAZZ(r8hN):\n if hasattr(r8hN, 'reset_parameters'):\n r8hN.reset_parameters()\n YKHO.model.apply(fAZZ)\n return", "def GOFj(YKHO):\n ...
[ "0.8639767", "0.8587441", "0.8565609", "0.8172544", "0.8071588", "0.80409414", "0.79908645", "0.79549867", "0.7872892", "0.7657508", "0.75906235", "0.7533883", "0.7526453", "0.7446288", "0.74174017", "0.73921925", "0.7383688", "0.7377623", "0.7365477", "0.73449033", "0.734468...
0.70822346
35
Gets a batch of transformed samples from array of indices
def SIcS(YKHO, wVHx): hxT_ = YKHO.indices[wVHx] Mekx = YKHO.x_imgs[hxT_].copy() ON2u = YKHO.y_imgs[hxT_].copy() if YKHO.training == True: LjTD = YKHO.generator.get_random_transform(Mekx[0].shape) for YRbF, (WKvO, LVAh) in enumerate(zip(Mekx, ON2u)): Mekx[YRbF] = YKHO.generato...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SIcS(YKHO, wVHx):\n hxT_ = YKHO.indices[wVHx]\n Mekx = YKHO.x_imgs[hxT_].copy()\n ON2u = YKHO.y_imgs[hxT_].copy()\n if YKHO.training == True:\n LjTD = YKHO.generator.get_random_transform(Mekx[0][0].shape)\n for r845, (oWOB, kVai) in enumerate(zip(Mekx, ON2u)):\n for YRbF, (...
[ "0.77707165", "0.73479056", "0.6946233", "0.69140047", "0.6631468", "0.6406599", "0.6371124", "0.6344369", "0.63029295", "0.6301569", "0.625285", "0.62114036", "0.62114036", "0.62114036", "0.62114036", "0.6200574", "0.61939853", "0.6182034", "0.6102547", "0.61022604", "0.6083...
0.78014845
0
Gets a batch of transformed samples from array of indices
def SIcS(YKHO, wVHx): hxT_ = YKHO.indices[wVHx] Mekx = YKHO.x_imgs[hxT_].copy() ON2u = YKHO.y_imgs[hxT_].copy() if YKHO.training == True: LjTD = YKHO.generator.get_random_transform(Mekx[0][0].shape) for r845, (oWOB, kVai) in enumerate(zip(Mekx, ON2u)): for YRbF, (WKvO, LVAh) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SIcS(YKHO, wVHx):\n hxT_ = YKHO.indices[wVHx]\n Mekx = YKHO.x_imgs[hxT_].copy()\n ON2u = YKHO.y_imgs[hxT_].copy()\n if YKHO.training == True:\n LjTD = YKHO.generator.get_random_transform(Mekx[0].shape)\n for YRbF, (WKvO, LVAh) in enumerate(zip(Mekx, ON2u)):\n Mekx[YRbF] = Y...
[ "0.780149", "0.73485374", "0.6943707", "0.6915797", "0.6630992", "0.6407835", "0.63705873", "0.6344594", "0.6304735", "0.6302853", "0.6253899", "0.6211992", "0.6211992", "0.6211992", "0.6211992", "0.6199484", "0.6194607", "0.61820084", "0.6101329", "0.61012936", "0.60853887",...
0.777094
1
Produces a string representation of some parsed Plant values
def vwqL(YKHO): return ''.join(['Plant id:', YKHO.id.hex, ', v:', str(YKHO.version), ', name:', YKHO.name, ', locale:', YKHO.locale, ', description:', YKHO.description])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return 'Plant\\n-----\\nName: {0}\\nLocation: {1}, {2}\\nID:{3}'.format(YKHO._name, YKHO._position[0], YKHO._position[1], YKHO._id)", "def zAg0(YKHO):\n return ''.join(['PlantExtract v:', str(YKHO.ped.v), ' t:', str(YKHO.ped.t), ' seqId:', str(YKHO.ped.seqId), ' lastSeqId:', str(YKHO.ped....
[ "0.7404708", "0.74033123", "0.6847811", "0.67278457", "0.66480404", "0.6589952", "0.65477544", "0.65312856", "0.6459441", "0.6406971", "0.6380912", "0.6350428", "0.6348092", "0.6346228", "0.634506", "0.63385355", "0.63375926", "0.6333119", "0.6307554", "0.63040847", "0.629714...
0.72713983
2
Return the label of the y axis
def CIj9(kvyM: pd.Series): cHAw = V53v.MEASUREMENT if V53v.Y_LABEL in kvyM.index: cHAw = kvyM[V53v.Y_LABEL] return cHAw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IICq(YKHO):\n return YKHO._ylabel.text", "def jx5q(YKHO):\n UXqs = YKHO.yaxis.get_label()\n return UXqs.get_text()", "def IICq(YKHO):\n return YKHO._lblY", "def cHAw(YKHO):\n return YKHO._y_label", "def oH8d(UXqs=None):\n if UXqs is not None:\n global __Y_AXIS_LABEL\n hR...
[ "0.86749715", "0.86660147", "0.86003417", "0.8600201", "0.83021194", "0.8301629", "0.82949317", "0.80386895", "0.8030821", "0.7876887", "0.7826379", "0.7793979", "0.7778815", "0.7670683", "0.7635726", "0.7601885", "0.75883", "0.7492019", "0.7481803", "0.7478857", "0.7455959",...
0.75601554
17
Reduce the condition df to the relevant rows based on the unique condition ids in the line_data df
def tRGJ(prYD, IUBT): DyON, eaPN = oyIN.unique(prYD[V53v.SIMULATION_CONDITION_ID], return_index=True) DyON = DyON[oyIN.argsort(eaPN)] rbPB = IUBT.index.isin(DyON) IUBT = IUBT[rbPB] return IUBT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BnX_(LtY3, jQ3Z, **B2fa):\n jTXs = rLdf.DataFrame()\n QpW4 = False\n xoXo = False\n bSQ_ = False\n jE3w = jQ3Z['eligible'] < jQ3Z['submit']\n QpW4 = any(jE3w)\n if QpW4:\n WY6G = jQ3Z['start'] < jQ3Z['submit']\n fVnG = jE3w & WY6G\n mbKC = jE3w & ~WY6G\n xoXo = ...
[ "0.53771716", "0.5376426", "0.5350563", "0.5238493", "0.5231231", "0.51836586", "0.5122736", "0.5086314", "0.50820076", "0.50749254", "0.5066398", "0.50161463", "0.5001607", "0.49969783", "0.49964452", "0.49671128", "0.49449", "0.49102312", "0.48857886", "0.4877146", "0.48533...
0.81416684
0
Calculate the standard error of the mean of the replicates
def w_Xv(prYD: pd.DataFrame, w_Vc: str, Uk83: bool): ZDAZ = V53v.TIME if w_Vc != V53v.TIME: ZDAZ = V53v.SIMULATION_CONDITION_ID ifkm = iuLn(prYD, w_Vc, Uk83) _Z7U = [len(S9mY) for S9mY in prYD.groupby(ZDAZ)] h9Wc = ifkm / oyIN.sqrt(_Z7U) return h9Wc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iAxY(UAju):\n return JBMS([P1dF ** 2 for P1dF in UAju]) ** 0.5", "def pVKw(gGnb):\n return F_Am(gGnb) / epAf.sqrt(len(gGnb))", "def w7P0(YKHO, ewCu):\n pass", "def mMqL(YKHO):\n lco2 = YKHO._get_training_element_difference()\n WNJo = oyIN.abs(lco2)\n gU0L = range(WNJo.shape[0])\n JBM...
[ "0.6969977", "0.6942459", "0.6874793", "0.6641793", "0.66266793", "0.656309", "0.6536846", "0.6515033", "0.6509397", "0.64643866", "0.64643717", "0.6455268", "0.6439506", "0.64369357", "0.6416225", "0.63896924", "0.638675", "0.638381", "0.6379767", "0.6366581", "0.6363109", ...
0.0
-1
Calculate the R squared value between the measurement and simulation values.
def whQk(J9Sm, HpkA): if not J9Sm or not HpkA: return 0 VMex, BlB8, t1VD, qpV3, LAz3 = Zxt2.stats.linregress(J9Sm, HpkA) return t1VD ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L9xv(YKHO) -> oyIN.float64:\n return YKHO._result.rsquared", "def FbT9(YKHO):\n return oM6q(YKHO._get('rsquared'), index=YKHO._result_idx, name='rsq')", "def whQk(YKHO):\n return 1 - YKHO.rss() / YKHO.tss()", "def FbT9(YKHO):\n return YKHO.ss_reg() / YKHO.ss_tot()", "def t2U8(YKHO):\n re...
[ "0.7561539", "0.7382286", "0.72153264", "0.72066694", "0.7202652", "0.7110399", "0.71004915", "0.69927543", "0.69257855", "0.6906867", "0.68780273", "0.6856768", "0.6798289", "0.67964035", "0.67730844", "0.67220414", "0.6718845", "0.6718845", "0.6718845", "0.66556585", "0.665...
0.74530196
1
Sorenson Dice \frac{ 2 \times \left | T \right | \cap \left | P \right |}{ \left | T \right | + \left | P \right | } where T is ground truth mask and P is the prediction mask
def eI8L(pan_, o3Uj, jDK_=(1, 2), gyoy=0.01): o3Uj = nMvt.backend.round(o3Uj) iQin = ZylS.reduce_sum(pan_ * o3Uj, axis=jDK_) b65I = ZylS.reduce_sum(pan_ + o3Uj, axis=jDK_) M6pt = ZylS.constant(2.0) * iQin + gyoy UUZ1 = b65I + gyoy vqVR = M6pt / UUZ1 return ZylS.reduce_mean(vqVR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HpRi(input, pan_):\n KCHu = LPDF().forward(input, pan_, smooth=1e-07)\n return 1 - KCHu", "def ZP7h(o3Uj, yLaY, gyoy=1.0):\n AAxD = ZylS.layers.flatten(yLaY)\n lLdr = ZylS.layers.flatten(o3Uj)\n iQin = ZylS.reduce_sum(AAxD * lLdr)\n return (2.0 * iQin + gyoy) / (ZylS.reduce_sum(AAxD) + ZylS...
[ "0.68501115", "0.67461944", "0.66547394", "0.6643222", "0.6605871", "0.6605871", "0.6511236", "0.65074086", "0.6490517", "0.64729184", "0.6462838", "0.64606965", "0.64371663", "0.64270204", "0.6397914", "0.6397914", "0.6384638", "0.6332717", "0.6326151", "0.6236576", "0.61976...
0.5620428
86
Sorenson (Soft) Dice Don't round the predictions \frac{ 2 \times \left | T \right | \cap \left | P \right |}{ \left | T \right | + \left | P \right | } where T is ground truth mask and P is the prediction mask
def DSb1(pan_, o3Uj, jDK_=(1, 2), gyoy=0.01): iQin = ZylS.reduce_sum(pan_ * o3Uj, axis=jDK_) b65I = ZylS.reduce_sum(pan_ + o3Uj, axis=jDK_) M6pt = ZylS.constant(2.0) * iQin + gyoy UUZ1 = b65I + gyoy vqVR = M6pt / UUZ1 return ZylS.reduce_mean(vqVR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VDzP(nvEb, w75t):\n M6pt = oyIN.sum(oyIN.round(nvEb) * w75t) * 2.0\n UUZ1 = oyIN.sum(oyIN.round(nvEb)) + oyIN.sum(w75t)\n return M6pt / UUZ1", "def VDzP(Y8eF, aMgO, gyoy=1e-06) -> float:\n iQin = nMvt.sum(nMvt.abs(Y8eF * aMgO), axis=-1)\n fF1T = (2 * iQin + gyoy) / (nMvt.sum(aMgO, -1) + nMvt.s...
[ "0.6813088", "0.67043984", "0.66860336", "0.6675183", "0.65943384", "0.6580626", "0.6580626", "0.64397126", "0.64397126", "0.6418642", "0.6347285", "0.63162136", "0.63043517", "0.6273215", "0.6269345", "0.62581605", "0.62527245", "0.6249285", "0.6222309", "0.62120336", "0.619...
0.0
-1
CDF files which have been converted to netCDF using the NASA cdf_to_netcdf tool appear to convert EPOCH CDF type into a float64 variable which is milliseconds since 0 AD
def aQCw(Pv4W): i6Vl = qcWV.datetime(1, 1, 1, 0, 0) nTx_ = Pv4W / 1000.0 return i6Vl + qcWV.timedelta(seconds=nTx_) - enlf(years=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i31g(EQf4):\n return EQf4.astype('datetime64[ns]').astype('float') / 1000000000.0", "def qtWj():\n return qcWV(1970, 1, 1)", "def LGcf(HwMz):\n oxOY = zuVY.open_dataset(HwMz)\n if 'par' in oxOY.attrs['instrument_type'].lower():\n oxOY['PAR_905'] = oxOY.attrs['Im'] * 10 ** ((oxOY['counts'...
[ "0.64561975", "0.61640173", "0.60786194", "0.60621923", "0.5943187", "0.58928114", "0.58873916", "0.5852576", "0.58283865", "0.58276397", "0.5819257", "0.5818399", "0.57932967", "0.57932967", "0.5786313", "0.57761097", "0.57728595", "0.57715523", "0.5757928", "0.57570165", "0...
0.0
-1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): e3UB('Popular Times of Travel') SWox = ITS7.time() liaA = jQ3Z['month'].mode()[0] XYie = a6S9[liaA - 1] print('\nMost common month is: {}.\n'.format(XYie)) jQ3Z['day'] = jQ3Z['Start Time'].dt.weekday_name SOOw = jQ3Z['day'].mode()[0] print('\nMost common day is: {}.\n'.fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.79996175", "0.7920857", "0.7891767", "0.78612196", "0.785926", "0.7838814", "0.779974", "0.77848285", "0.7735119", "0.7723049", "0.771342", "0.7708436", "0.770453", "0.77017164", "0.7689714", "0.7685842", "0.7680146", "0.76788265", "0.76721054", "0.7661351", "0.7660023", ...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): e3UB('Popular Station and Trip') SWox = ITS7.time() print('\nMost commonly used START station is {}.\n'.format(jQ3Z['Start Station'].mode()[0])) print('\nMost commonly used END station is {}.\n'.format(jQ3Z['End Station'].mode()[0])) print('\nThe most frequent combination of START ST...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.76654726", "0.76264316", "0.75849444", "0.7576263", "0.75670516", "0.7557652", "0.75378203", "0.7529607", "0.750169", "0.7499543", "0.74961287", "0.748713", "0.74839073", "0.747546", "0.7473013", "0.74376714", "0.74364847", "0.74328995", "0.7428165", "0.74270153", "0.74163...
0.76100993
2
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): e3UB('Trip Duration') SWox = ITS7.time() F2dc = round(jQ3Z['Trip Duration'].sum(), 2) print('\nTotal travel time is: \n{} seconds, \n{} minutes, \n{} hours.'.format(F2dc, F2dc / 60, F2dc / 3600)) print('\nThe travel time MEAN is: {} seconds.'.format(round(jQ3Z['Trip Duration'].mean()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.79176366", "0.79...
0.7987783
4
Gets the location of this Node.
def Rci7(YKHO): return YKHO._location
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HkxL(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.__location", "def yuHr(YKHO):\n return J8uC.SBValue_GetLocation(YKHO)", "def hbd3(YKHO):\n return YKHO._location", "def Rci7(YKHO):\n return YKHO._loc", "def HkxL(YKHO):\n return YKHO._loc", "def hbd3(YKHO):\n ...
[ "0.81111825", "0.80603075", "0.80441034", "0.79770756", "0.79721636", "0.79364616", "0.7929208", "0.792041", "0.792041", "0.792041", "0.79193205", "0.78301436", "0.78301436", "0.78249395", "0.78249395", "0.77825457", "0.7732882", "0.772623", "0.77219254", "0.7718324", "0.7690...
0.7847508
17
Gets the event_trigger of this Node.
def QM2r(YKHO): return YKHO._event_trigger
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XCjG(YKHO):\n return YKHO.__trigger", "def XCjG(YKHO):\n return YKHO.__trigger", "def QM2r(YKHO) -> qe4Y.Output['outputs.FunctionEventTrigger']:\n return qe4Y.get(YKHO, 'event_trigger')", "def iqFZ(YKHO):\n YKHO._trigger, BWXx = YKHO.get_attr_from_set(YKHO._trigger, 'trigger')\n return BWX...
[ "0.78639823", "0.78639823", "0.76884985", "0.74875134", "0.7299969", "0.7299969", "0.7294478", "0.7139975", "0.669512", "0.669512", "0.6604849", "0.653232", "0.65222764", "0.65222764", "0.64993155", "0.64984846", "0.6457252", "0.6426639", "0.6392189", "0.62961745", "0.6210733...
0.8209156
0
Gets the cron_trigger of this Node.
def Zjao(YKHO): return YKHO._cron_trigger
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XCjG(YKHO):\n return YKHO.__trigger", "def XCjG(YKHO):\n return YKHO.__trigger", "def Zw9J(YKHO):\n return YKHO._schedule_cron_expression", "def GPA2(YKHO) -> str:\n return qe4Y.get(YKHO, 'cron')", "def iqFZ(YKHO):\n YKHO._trigger, BWXx = YKHO.get_attr_from_set(YKHO._trigger, 'trigger')\...
[ "0.7290052", "0.7290052", "0.67636293", "0.66383123", "0.66246533", "0.65465075", "0.64587396", "0.6355526", "0.618749", "0.61596614", "0.61596614", "0.6148202", "0.613126", "0.6025392", "0.6021091", "0.6015245", "0.59905344", "0.5925356", "0.5920533", "0.5790093", "0.5777972...
0.8703201
0
Sets the cron_trigger of this Node.
def Zjao(YKHO, Zjao): YKHO._cron_trigger = Zjao
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zjao(YKHO):\n return YKHO._cron_trigger", "def Zw9J(YKHO, Zw9J):\n YKHO._schedule_cron_expression = Zw9J", "def iqFZ(YKHO, iqFZ):\n YKHO._trigger = iqFZ", "def iqFZ(YKHO, iqFZ):\n YKHO._trigger = iqFZ", "def iqFZ(YKHO, iqFZ):\n YKHO._trigger = iqFZ", "def iqFZ(YKHO, iqFZ):\n YKHO._t...
[ "0.6846382", "0.66697574", "0.62662184", "0.62662184", "0.62662184", "0.62662184", "0.60102755", "0.59989744", "0.59519273", "0.5795014", "0.5592996", "0.5536282", "0.549238", "0.5434743", "0.5383119", "0.537981", "0.5349754", "0.5317114", "0.5309506", "0.5300493", "0.5284765...
0.85228807
0
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
processes all categories and forms the list
def q7L0(VqRE): wO5s = VqRE[VqRE.rfind('/') + 1:] GKFw = wO5s.replace('.bson', '') MxaP = OZ_f.format(GKFw) if Hy7s.path.isfile(MxaP): print('File already exists. Seems already it is processed.') return def D_mJ(gGq6, qRvT): while True: AIu6 = gGq6.get() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n VJUP = []\n ao3P = N3tc(VJUP)\n for Ghho in ao3P:\n _dHI(Ghho)", "def DZCH(YKHO):\n YKHO.category_list.delete(0, FRMp)\n for d6pt, Ghho in enumerate(YKHO.ctdao.get_categories()):\n YKHO.category_list.insert(d6pt, Ghho)", "def DMdi(YKHO, LeZt):\n Ylbp = []\n ...
[ "0.800989", "0.6946298", "0.6763619", "0.67223954", "0.6707357", "0.6665655", "0.6627587", "0.6601335", "0.65790325", "0.65636444", "0.6552893", "0.6523256", "0.64891964", "0.64737105", "0.64679384", "0.6462884", "0.6434715", "0.6430231", "0.6427302", "0.64087224", "0.6391063...
0.0
-1
Parse the given XML and use the document element to create a Python instance. xml_text An XML document. This should be data (Python 2 str or Python 3 bytes), or a text (Python 2 unicode or Python 3 str) in the L{pyxb._InputEncoding} encoding. default_namespace The L{pyxb.Namespace} instance to use as the default namesp...
def KA8b(k1P2, UyKZ=None, ePoz=None): if Aw3s.XMLStyle_saxer != Aw3s._XMLStyle: Mf7r = Aw3s.utils.domutils.StringToDOM(k1P2) return E91p(Mf7r.documentElement, default_namespace=UyKZ) if UyKZ is None: UyKZ = jFQi.fallbackNamespace() IjKD = Aw3s.binding.saxer.make_parser(fallback_names...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KA8b(k1P2, UyKZ=None, ePoz=None):\n if Aw3s.XMLStyle_saxer != Aw3s._XMLStyle:\n Mf7r = Aw3s.utils.domutils.StringToDOM(k1P2)\n return E91p(Mf7r.documentElement, default_namespace=UyKZ)\n if UyKZ is None:\n UyKZ = jFQi.fallbackNamespace()\n IjKD = Aw3s.binding.saxer.make_parser(fal...
[ "0.7405102", "0.7379044", "0.7379044", "0.7379044", "0.7379044", "0.7379044", "0.73711663", "0.73711663", "0.73711663", "0.73711663", "0.73711663", "0.73711663", "0.73711663", "0.73711663", "0.73711663", "0.73711663", "0.73711663", "0.7331634", "0.6957871", "0.637037", "0.620...
0.7318269
20
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry) -> bool: KAct = ajET.data[Sugg].pop(bTKY.data[mH33]) return await KAct.async_reset()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()...
[ "0.70418245", "0.69975436", "0.69197667", "0.69024074", "0.6896897", "0.6870464", "0.6840728", "0.67911863", "0.67835754", "0.6782968", "0.6776581", "0.67688036", "0.6737991", "0.6730449", "0.6713354", "0.67085946", "0.6664857", "0.66411716", "0.6637687", "0.66157013", "0.660...
0.6509288
24
creates a lemma and stem matcher. remove slash, on stem insert blanktags.
def OiFZ(Z_Jy): XP5J = Z_Jy.paradigm.strip() lBoh = Z_Jy.mark.strip() mn4Z = lBoh.replace(' ', '<b/>') or8S = XP5J.find('/') if or8S == -1: return (lBoh, mn4Z) else: try: fluj = len(mn4Z) - (len(XP5J) - or8S - 1) except: return None return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v_nw(pG0V, NArs):\n oeNL = NArs['pos']\n for KCHu in pG0V.split(' '):\n AdfU = ZbWC.split('_', KCHu)\n if len(AdfU) != 3:\n pass\n elif AdfU[1].upper() in oeNL:\n yield e6Ip(AdfU[2].lower())", "def RPA2(YKHO):\n l5Ny = 'I have no idea how we balance this bu...
[ "0.57294834", "0.5723489", "0.56039226", "0.56001735", "0.55180806", "0.5476884", "0.5331408", "0.5277357", "0.5259445", "0.52414095", "0.5212111", "0.5201878", "0.51911145", "0.5186291", "0.5124346", "0.50951976", "0.5093551", "0.5078221", "0.50766796", "0.49793082", "0.4977...
0.5650215
2
Get all applicable CA definitions (even ones without a value yet).
def r2C3(Emd4): from ggrc.models.custom_attribute_definition import CustomAttributeDefinition as Mb1j if Emd4.__name__ == 'Assessment': xDcj = Mb1j.query.filter(nZvB(Mb1j.definition_type == BfDw.underscore_from_camelcase(Emd4.__name__), Mb1j.definition_type == 'assessment_template')) else: x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BTaB(YKHO):\n rdEI = {Csk6.code: Csk6 for Csk6 in YKHO.get_districts()}\n return [V7N3(rdEI.get(TgPd), Wxnj, mWFP) for QTBn, TgPd, Wxnj, mWFP in sYUC('assembly-constituencies.tsv') if QTBn == YKHO.code]", "def BTaB(YKHO):\n return [V7N3(YKHO, Wxnj, mWFP) for QTBn, TgPd, Wxnj, mWFP in sYUC('assembly-...
[ "0.626466", "0.6166242", "0.5775258", "0.5682271", "0.55333", "0.54836327", "0.5426738", "0.5419496", "0.5405423", "0.5399622", "0.5352947", "0.53510666", "0.53426105", "0.5328517", "0.5325793", "0.5308386", "0.5302236", "0.530029", "0.5284793", "0.5262976", "0.52581227", "...
0.0
-1
Get the camera matrix for use in the shader program.
def SppC(YKHO): r8hN = _E99(4) r8hN = tRZ2(r8hN, YKHO.el, (1.0, 0.0, 0.0)) r8hN = tRZ2(r8hN, YKHO.az, (0.0, 1.0, 0.0)) r8hN = Z3EE(r8hN, -YKHO._pos) return r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wU6K(YKHO):\n uPnQ = Ie5s.identity()\n uPnQ[3, 0] = -YKHO.position.x\n uPnQ[3, 1] = -YKHO.position.y\n uPnQ[3, 2] = -YKHO.position.z\n bULF = YKHO.rotation.inverted().as_rotation_matrix()\n return uPnQ * bULF", "def fne7(YKHO):\n pass", "def UoEQ(YKHO):\n return gnPz.buf_to_npy(YKHO...
[ "0.7858166", "0.7627503", "0.71531177", "0.6681132", "0.66396075", "0.66063195", "0.6585994", "0.65006477", "0.6493682", "0.64886916", "0.6485478", "0.64812434", "0.6472008", "0.64604825", "0.6450917", "0.6435066", "0.6425407", "0.63979125", "0.63979125", "0.63690287", "0.636...
0.0
-1
Get the camera matrix for use in the shader program.
def SppC(YKHO): r8hN = _E99(4) r8hN = Z3EE(r8hN, -YKHO.distance) r8hN = tRZ2(r8hN, YKHO.el, (1.0, 0.0, 0.0)) r8hN = tRZ2(r8hN, YKHO.az, (0.0, 1.0, 0.0)) r8hN = Z3EE(r8hN, -YKHO._pos) return r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wU6K(YKHO):\n uPnQ = Ie5s.identity()\n uPnQ[3, 0] = -YKHO.position.x\n uPnQ[3, 1] = -YKHO.position.y\n uPnQ[3, 2] = -YKHO.position.z\n bULF = YKHO.rotation.inverted().as_rotation_matrix()\n return uPnQ * bULF", "def fne7(YKHO):\n pass", "def UoEQ(YKHO):\n return gnPz.buf_to_npy(YKHO...
[ "0.7858314", "0.76267517", "0.71526116", "0.6682118", "0.66404885", "0.6604402", "0.65852517", "0.65001786", "0.6494526", "0.6488322", "0.64863324", "0.64809334", "0.64712864", "0.646021", "0.6451104", "0.6435541", "0.6423595", "0.6398502", "0.6398502", "0.636897", "0.6362395...
0.0
-1
Recursively update dict ``d`` with dict ``u``
def LpmY(Csk6, P6bq): for G1Hx in P6bq: rDXN = Csk6.get(G1Hx, {}) if not isinstance(rDXN, g760.Mapping): Csk6[G1Hx] = P6bq[G1Hx] elif isinstance(P6bq[G1Hx], g760.Mapping): Csk6[G1Hx] = LpmY(rDXN, P6bq[G1Hx]) else: Csk6[G1Hx] = P6bq[G1Hx] return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jc8_(Csk6: collections.abc.Mapping, P6bq: collections.abc.Mapping):\n for G1Hx, Ty9i in P6bq.items():\n if isinstance(Ty9i, g760.abc.Mapping):\n Csk6[G1Hx] = Jc8_(Csk6.get(G1Hx, {}), Ty9i)\n else:\n Csk6[G1Hx] = Ty9i\n return Csk6", "def uMS1(Csk6, P6bq):\n for G1...
[ "0.87656885", "0.87533647", "0.8696077", "0.8647271", "0.85526866", "0.8547182", "0.83435374", "0.82483697", "0.81399417", "0.81221706", "0.80007094", "0.79911184", "0.7948715", "0.7907813", "0.7806188", "0.757769", "0.754915", "0.75277823", "0.74940956", "0.7354417", "0.7352...
0.7825824
14
Loads configuration environment variables. In case it is not previously set, returns a default value for each one. Returns a dictionary object.
def d2vC(): KsmS = {} KsmS['JOIN_PARTITION_SIZE_THRESHOLD'] = Hy7s.environ.get('JOIN_PARTITION_SIZE_THRESHOLD', 300000000) KsmS['MAX_DATA_LOAD_CONCAT_CACHE_BYTE_SIZE'] = Hy7s.environ.get('MAX_DATA_LOAD_CONCAT_CACHE_BYTE_SIZE', 400000000) KsmS['BLAZING_DEVICE_MEM_CONSUMPTION_THRESHOLD'] = Hy7s.environ.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _dU7() -> cuzp[str, h8nf[XDEs]]:\n\n def rC3j(LDNz: str) -> str:\n return LDNz[len(OOuZ.DEFAULT_ENV_VARIABLE_PREFIX):].lower()\n H4Hb = idUJ(*j02q())\n return {rC3j(M_u8): H4Hb[M_u8] for M_u8 in H4Hb}", "def ceHH():\n ObT1 = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))\n LyS3 = Hy7s.path....
[ "0.8145973", "0.7869975", "0.767932", "0.75191516", "0.74329156", "0.73574483", "0.733176", "0.73302484", "0.7326553", "0.7325365", "0.7321159", "0.7220628", "0.7175166", "0.71474975", "0.7144264", "0.71358305", "0.7131806", "0.7111075", "0.7109911", "0.70907646", "0.7047884"...
0.0
-1
Converts a numpy 2D matrix to LPU format as a string
def dMpf(WKvO, LVAh=None): AjzU, _sQW = WKvO.shape usx6 = [] if LVAh is not None: assert LVAh.shape == (AjzU,) for rdlD in range(AjzU): usx6.append([]) if LVAh is not None: usx6[-1].append(str(LVAh[rdlD])) for hkS8 in range(_sQW): Ty9i = WKvO[rdlD,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(vhpA):\n vb7U = ''\n for P2GO in range(2):\n for gDyN in range(UVGw - 1):\n vb7U += '{} '.format(vhpA[P2GO, gDyN])\n vb7U += str(vhpA[P2GO, -1]) + '\\n'\n return vb7U", "def zAg0(YKHO):\n return YKHO.matrix.toarray().__str__()", "def xyqS(YKHO):\n return str(YKH...
[ "0.65724593", "0.6516316", "0.6503056", "0.6502668", "0.6465406", "0.64649975", "0.63923115", "0.6332275", "0.6299785", "0.62775064", "0.6205169", "0.61746186", "0.61595005", "0.6073654", "0.5998535", "0.59858286", "0.5937408", "0.5927176", "0.59167314", "0.59148806", "0.5834...
0.61945915
11
Determines whether a dataset exists with the given name.
def BDiB(YKHO, j3aw): raise NotImplementedError('dataset_exists_with_name is not implemented.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfWv(YKHO, mWFP):\n return mWFP.lower() in YKHO.datasets", "def QBab(mWFP):\n LV9m = {'brainstorm': 'MNE_brainstorm-data', 'fake': 'foo', 'misc': 'MNE-misc-data', 'sample': 'MNE-sample-data', 'somato': 'MNE-somato-data', 'spm': 'MNE-spm-face', 'testing': 'MNE-testing-data'}[mWFP]\n llib = None\n ...
[ "0.8141609", "0.77785593", "0.7737666", "0.7727997", "0.7725879", "0.76904726", "0.7662011", "0.7625654", "0.75170416", "0.74521106", "0.7421797", "0.74031305", "0.73842055", "0.7332103", "0.71013904", "0.7036472", "0.7021461", "0.69937843", "0.6929421", "0.68980974", "0.6893...
0.90306133
0
Determines whether a table exists at the given table path.
def f9ck(YKHO, UL8P): raise NotImplementedError('table_exists_with_name is not implemented.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n2Bh(YKHO, UL8P: 'ObjectPath') -> bool:\n return YKHO._j_catalog.tableExists(UL8P._j_object_path)", "def n2Bh(YKHO, tyNF):\n YKHO.kursor.execute(f\"show tables like '{tyNF}'\")\n try:\n bGrB = YKHO.kursor.fetchone()[0]\n return True\n except TypeError:\n return False", "def...
[ "0.8491902", "0.8109843", "0.79608405", "0.7861785", "0.7852206", "0.78426737", "0.78347605", "0.7815884", "0.7767433", "0.7739846", "0.7719711", "0.76964265", "0.76818734", "0.76563674", "0.76502967", "0.76452214", "0.76198965", "0.76111007", "0.7599178", "0.75948143", "0.75...
0.86168
0
Checks if a table exists.
def n2Bh(YKHO, tyNF): raise NotImplementedError('table_exists is not implemented.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n2Bh(YKHO, mWFP):\n xDcj = \"\\n IF OBJECT_ID('{name:s}', 'U') IS NOT NULL\\n SELECT 'Table Exists'\\n \".format(name=mWFP)\n YKHO.cursor.execute(xDcj)\n try:\n YKHO.cursor.fetchone()\n except:\n return False\n else:\n return True", "def n2...
[ "0.8596789", "0.85409564", "0.848907", "0.84433705", "0.84124935", "0.840141", "0.8376717", "0.8373286", "0.8368093", "0.83558136", "0.8347085", "0.832247", "0.8304198", "0.8278207", "0.82697874", "0.82606125", "0.8253978", "0.8236475", "0.82050073", "0.81578255", "0.8156585"...
0.84378904
4
gensim_to_keras this function return an embedded layer
def lgMt(C3ST): return C3ST.wv.get_keras_embedding(True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lgMt(C3ST):\n return C3ST.wv.get_keras_embedding(train_embeddings=True)", "def KkVz(bGrB, GPtr):\n \"\"\"\n layer1: embedding layer\n \"\"\"\n zk33 = GPtr['padding_size']\n Gzv5 = GPtr['embeddings_dictionary_size']\n EDoJ = GPtr['embeddings_vector_size']\n x0hE = iVGz.client('s3')\n ...
[ "0.7861847", "0.72414416", "0.7048634", "0.7024854", "0.7002248", "0.6709291", "0.6626265", "0.66031265", "0.65890515", "0.6587344", "0.6454392", "0.6404041", "0.638911", "0.6381388", "0.6366215", "0.6351012", "0.6351012", "0.6351012", "0.63507676", "0.6334906", "0.6325197", ...
0.79053265
0
Transforma a dict into a hierarchical dict. Example >>> (_kwargs_options(dict(a_b_c=1, a_d_e=2, x=3)) == ... dict(a=dict(b=dict(c=1), d=dict(e=2)), x=3)) True
def zSqm(B2fa): vxoA = m0HN() for _Wat, wEf2 in B2fa.items(): DpUl = vxoA _Wat = _Wat.split('_') for YSA3 in _Wat[:-1]: DpUl = DpUl[YSA3] DpUl[_Wat[-1]] = wEf2 return vxoA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zFQG(Csk6: dict):\n z1Rg = jM8H()\n\n def Gs92(YEnM, JRYC: dict):\n for H5ew, wEf2 in JRYC.items():\n if not isinstance(H5ew, str):\n raise AttributeError('Not allowed key in dict with type:{}'.format(type(H5ew)))\n if isinstance(wEf2, dict):\n a...
[ "0.6065627", "0.6065627", "0.5746913", "0.5557333", "0.5448022", "0.54462373", "0.5305929", "0.52996176", "0.5294243", "0.52921265", "0.52735734", "0.52335334", "0.52145386", "0.5201962", "0.5200941", "0.5191778", "0.5183633", "0.5182948", "0.51780325", "0.5154919", "0.514771...
0.6419718
0
Return upstream url of the git repository.
def Pd_U(): BcHK = str(CD35(rLR1)) BcHK = BcHK.replace("b'", '') BcHK = BcHK.replace("\\n'", '') return BcHK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V1EL(YKHO, nnUR):\n z2E1 = nnUR.SSH()\n HCmI = 'gerrit query change:%s branch:%s project:%s --format JSON'\n HCmI = HCmI % (YKHO.change_id, YKHO.branch, YKHO.project)\n bD7m = None\n try:\n CgsD, yvT9 = z2E1.exec_once(HCmI)\n if CgsD:\n return None\n if not CgsD:\...
[ "0.79212177", "0.7316828", "0.72071093", "0.68557626", "0.68466264", "0.6800623", "0.6777362", "0.6774484", "0.6772764", "0.67465115", "0.66929936", "0.6692821", "0.6688034", "0.6688034", "0.66730654", "0.66524255", "0.66445637", "0.66164273", "0.65535873", "0.65535873", "0.6...
0.78676367
1
Returns the distance between two locations given latitude and longitude. The distance is calculated using Haversine Formula. See
def eVmN(YKHO, _UuI, fopC): bFE4 = AOIq(_UuI) Ukcq = AOIq(fopC) c7Wj = AOIq(FYrf.F('latitude')) uxvB = AOIq(FYrf.F('longitude')) VN2L = 6371 * nG_t(nfhs(bFE4) * nfhs(c7Wj) * nfhs(uxvB - Ukcq) + L3sN(bFE4) * L3sN(c7Wj)) return YKHO.get_queryset().annotate(distance=VN2L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vQK9(igSk, GgQG, TGuP, tk0B):\n if ClYY(igSk, GgQG) and ClYY(TGuP, tk0B):\n Ayfi = 2 * 6371 * epAf.asin(epAf.sqrt(epAf.sin((TGuP - igSk) / 2) ** 2 + epAf.cos(igSk) * epAf.cos(TGuP) * epAf.sin((tk0B - GgQG) / 2) ** 2))\n return Ayfi", "def vQK9(Bz2B, WDnu):\n igSk, GgQG = Bz2B\n TGuP, tk0B ...
[ "0.8133803", "0.81024384", "0.80885005", "0.8073654", "0.79892075", "0.79887354", "0.7958225", "0.7957463", "0.794722", "0.7946228", "0.7923931", "0.7909664", "0.7890565", "0.7881245", "0.78790504", "0.78768843", "0.7870039", "0.7870039", "0.78434736", "0.7842839", "0.7826227...
0.0
-1
Calculate the maximum distance to a leaf that the node has.
def AgKu(YKHO): for YRbF in YKHO.nodes: YRbF.calculate_height()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def piUa(YKHO):\n return max((YKHO.depth(XP5J) for XP5J in YKHO.positions() if YKHO.is_leaf(XP5J)))", "def piUa(YKHO):\n return max((YKHO.depth(XP5J) for XP5J in YKHO.positions() if YKHO.is_leaf(XP5J)))", "def H2v2(YKHO):\n if YKHO.is_leaf():\n return 1\n return 1 + max((aUGN.height() for aU...
[ "0.7009732", "0.6923248", "0.69160587", "0.68737155", "0.68318677", "0.67108154", "0.66913545", "0.6637295", "0.661937", "0.6618469", "0.6618469", "0.6616325", "0.661263", "0.65697277", "0.6529283", "0.652304", "0.65116495", "0.6499087", "0.64935446", "0.6482009", "0.64754885...
0.0
-1
Get a set of nodes that are in the same subgraph as the current node.
def VSxm(YKHO, Q6kx): Q6kx = YKHO.get_node(Q6kx, create=False) azXi = set() KgZi = set() KgZi.add(Q6kx) while KgZi: exwG = KgZi.pop() azXi.add(exwG) for uXtT in exwG.edges_out: z1Rg = uXtT.other(exwG) if z1Rg not in azXi: KgZi.add(z1Rg)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AyQV(YKHO):\n Ziit = set()\n for Q6kx in YKHO.graph:\n Ziit.add(Q6kx)\n return frozenset(Ziit)", "def Zurj(YKHO):\n Aofo = set([YKHO])\n for aUGN in YKHO.contained_instances:\n Aofo.update(aUGN.get_contained_subgraph())\n return Aofo", "def AyQV(YKHO):\n return set(YKHO.e...
[ "0.7221971", "0.6784396", "0.6752797", "0.6694681", "0.6670986", "0.66605", "0.66600007", "0.662964", "0.65476894", "0.65013134", "0.64154327", "0.6389479", "0.63521063", "0.63240904", "0.6294415", "0.62771875", "0.62728155", "0.62655705", "0.6258389", "0.6253447", "0.6242494...
0.7031466
1
Return True if n is even Else returns False >>> is_even(10) True >>> is_even(9) False >>> is_even(11) False >>> is_even(13) False >>> is_even(1025) False >>> is_even("test") Number must be Integer values
def ubP8(G1Hx): try: return int(G1Hx) & 1 == 0 except ValueError: print('Numbers must be Integer values')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ubP8(exwG: int) -> bool:\n return exwG % 2 == 0", "def ubP8(exwG):\n return", "def ubP8(exwG):\n if exwG % 2 == 0:\n return True\n else:\n return False", "def ubP8(exwG):\n return exwG % 2 == 0", "def ubP8(exwG):\n return exwG % 2 == 0", "def ubP8(FGW3: int):\n if F...
[ "0.88399684", "0.8832926", "0.8714818", "0.86715084", "0.8656723", "0.86048406", "0.8531073", "0.8486408", "0.8464655", "0.8464655", "0.8464655", "0.8464655", "0.846349", "0.8451309", "0.84355164", "0.8329999", "0.832964", "0.832964", "0.83266044", "0.8323727", "0.8284861", ...
0.78955334
33
Returns a random number within the given range (exclusive)
def EImj(srfb, kEQo): return tuKI.randint(srfb, kEQo - 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oRCQ(YKHO, yKcO, JCyR):\n return tuKI.randint(int(yKcO), int(JCyR))", "def xac_(min, max):\n return tuKI.random() * (max - min) + min", "def qukk(YKHO, kpLf, JCoA):\n return vPAK", "def AP9p(gqRb=0, ODP9=1):\n return oyIN.random.random() * (ODP9 - gqRb) + gqRb", "def RjKZ(min, max):\n re...
[ "0.80834", "0.7881273", "0.7773824", "0.77635264", "0.7753396", "0.77469826", "0.771749", "0.76725364", "0.760734", "0.75505394", "0.75505394", "0.7541681", "0.75365424", "0.75344473", "0.75270355", "0.7514909", "0.7483558", "0.7434134", "0.7428564", "0.74159086", "0.7400026"...
0.0
-1
Sets the related_document_ids of this InterruptionResource.
def mw5z(YKHO, mw5z): YKHO._related_document_ids = mw5z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ooqQ(YKHO, ooqQ):\n YKHO._resource_ids = ooqQ", "def G4QU(YKHO, G4QU):\n YKHO._incident_ids = G4QU", "def qRar(YKHO, qRar):\n YKHO._related_assets = qRar", "def TsOb(YKHO, TsOb):\n YKHO._disruption_ids = TsOb", "def H6lA(YKHO, H6lA):\n YKHO._applied_rule_ids = H6lA", "def _1Fr(YKHO, Qo...
[ "0.599713", "0.5576921", "0.5375174", "0.53445315", "0.52714944", "0.50900966", "0.50550514", "0.5052585", "0.5039736", "0.50206524", "0.49746934", "0.49525604", "0.49147213", "0.4910882", "0.4882891", "0.48763385", "0.4876062", "0.48456213", "0.48456213", "0.48418078", "0.48...
0.8218477
0
Sets the is_linked_to_other_interruption of this InterruptionResource.
def tw2h(YKHO, tw2h): YKHO._is_linked_to_other_interruption = tw2h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zh7G(YKHO, Zh7G):\n YKHO._other_options = Zh7G", "def Elif(YKHO, Elif):\n YKHO._other = Elif", "def Yljl(YKHO, BWXx):\n YKHO.logger.warn('Setting values on resourceLinkId will NOT update the remote Canvas instance.')\n YKHO._resourceLinkId = BWXx", "def xa14(YKHO, Elif: Any) -> bool:\n if ...
[ "0.53820854", "0.5354234", "0.5093878", "0.5076668", "0.49453375", "0.49317175", "0.4909432", "0.48562893", "0.47336078", "0.47320724", "0.4731399", "0.47289708", "0.47211653", "0.46637625", "0.46272326", "0.46091974", "0.4598719", "0.45618412", "0.45442247", "0.45434237", "0...
0.8771996
0
Sets the last_modified_by of this InterruptionResource.
def TM74(YKHO, TM74): YKHO._last_modified_by = TM74
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dFAY(YKHO, YgMu):\n try:\n from zcrmsdk.src.com.zoho.crm.api.users import User\n except Exception:\n from ..users import User\n if YgMu is not None and (not isinstance(YgMu, User)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: modified_by EXPECTED TYPE: User', None, None)\n YKHO.__...
[ "0.7408071", "0.724405", "0.724405", "0.724405", "0.724405", "0.724405", "0.724405", "0.724405", "0.6892727", "0.620796", "0.6193134", "0.6193134", "0.6193134", "0.6193134", "0.619224", "0.619224", "0.619224", "0.619224", "0.6094191", "0.60325223", "0.60325223", "0.60325223...
0.7889073
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83939064", "0.83558416", "0.8296191", "0.8133439", "0.81156427", "0.810097", "0.81001526", "0.8099001", "0.8099001", "0.80936444", "0.80936444", "0.80936444", "0.80936444", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80677134", "0.80598736", "0...
0.0
-1
Add a starting samples to the running standard deviation and mean This data does not need to be accurate. It is only a base starting point for our light show. With out preloading some values the show will start with all lights on and then slowly change to what we want to see.
def ijht(YKHO, JBMS, M1Jx, AV8x=2): if len(JBMS) == YKHO.length and len(M1Jx) == YKHO.length and (AV8x > 1) and (YKHO.sample_count == 0): YKHO.new_mean = XTiz.array(JBMS, dtype='float32') YKHO.new_std = XTiz.array(M1Jx, dtype='float32') YKHO.old_mean = XTiz.array(JBMS, dtype='float32') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EjLL(YKHO):\n o2b8 = YKHO.sample_size_calculator()\n print('=========================================')\n print('Alpha:\\t\\t\\t\\t{:.2f}'.format(YKHO.alpha))\n print('Power:\\t\\t\\t\\t{:.2f}'.format(YKHO.power))\n print('Baseline value:\\t\\t\\t{:.7f}'.format(YKHO.baseline_value))\n print('...
[ "0.60656905", "0.5992642", "0.5980753", "0.5953053", "0.5911893", "0.5859268", "0.5821963", "0.5815284", "0.57661694", "0.5753779", "0.5752718", "0.57104546", "0.5694045", "0.5667733", "0.56659627", "0.56647664", "0.5663098", "0.56589085", "0.5646547", "0.564421", "0.56358737...
0.5252276
99
Get the current standard deviation
def M1Jx(YKHO): return XTiz.sqrt(YKHO.variance())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSc0(YKHO):\n return YKHO.variance ** 0.5", "def tB1J(YKHO):\n try:\n return epAf.sqrt(YKHO.variance)\n except:\n return 0", "def ee6l(YKHO):\n raise NotImplementedError", "def ee6l(YKHO):\n return oyIN.sqrt(YKHO.variance())", "def upUS(YKHO):\n JBMS = YKHO.Mean()\n M...
[ "0.8675527", "0.85833937", "0.85601366", "0.8526972", "0.84946585", "0.8415979", "0.8402375", "0.83937865", "0.83759856", "0.83449733", "0.8333554", "0.83090794", "0.8283154", "0.8251704", "0.8233175", "0.8208458", "0.8194259", "0.8161029", "0.8146737", "0.81301576", "0.81053...
0.8002002
25
Add a starting samples to the running standard deviation and mean This data does not need to be accurate. It is only a base starting point for our light show. With out preloading some values the show will start with all lights on and then slowly change to what we want to see.
def ijht(YKHO, JBMS, M1Jx, AV8x=2): if YKHO.old: YKHO.old.preload(JBMS, M1Jx, AV8x) if len(JBMS) == YKHO.length and len(M1Jx) == YKHO.length and (AV8x > 1) and (YKHO.sample_count == 0): YKHO.new_mean = XTiz.array(JBMS * (1 - YKHO.B ** AV8x), dtype='float32') YKHO.new_var = XTiz.array(M1J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EjLL(YKHO):\n o2b8 = YKHO.sample_size_calculator()\n print('=========================================')\n print('Alpha:\\t\\t\\t\\t{:.2f}'.format(YKHO.alpha))\n print('Power:\\t\\t\\t\\t{:.2f}'.format(YKHO.power))\n print('Baseline value:\\t\\t\\t{:.7f}'.format(YKHO.baseline_value))\n print('...
[ "0.60656905", "0.5992642", "0.5980753", "0.5953053", "0.5911893", "0.5859268", "0.5821963", "0.5815284", "0.57661694", "0.5753779", "0.5752718", "0.57104546", "0.5694045", "0.5667733", "0.56659627", "0.56647664", "0.5663098", "0.56589085", "0.5646547", "0.564421", "0.56358737...
0.5303652
85
Parse a requirements pip file returning the list of required packages. It exclude commented lines.
def VnMZ(Ux0P): with open(Ux0P) as nUeQ: DTpp = nUeQ.read().splitlines() DTpp = [zFiD.strip() for zFiD in DTpp if not zFiD.strip()[0] == '#'] return DTpp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def emMa(Ux0P='requirements.txt'):\n with open(Ux0P, 'r+t') as aze3:\n for zFiD in aze3:\n zFiD = zFiD.strip()\n if not zFiD or zFiD[0:2].strip() in ('#', '##', '-r'):\n continue\n yield zFiD", "def fA3L(IznC):\n cEzT = Ueki(IznC).split('\\n')\n cEz...
[ "0.81152457", "0.8034507", "0.8009594", "0.8008038", "0.7998424", "0.79494435", "0.79243475", "0.79089075", "0.78619295", "0.78347266", "0.7828168", "0.7821588", "0.77621484", "0.77553385", "0.7719541", "0.7711578", "0.7688259", "0.7687481", "0.76707834", "0.7670755", "0.7662...
0.74595267
51