query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Sets the enddate of this Project. end date of project
def eiFi(YKHO, eiFi: datetime): YKHO._enddate = eiFi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n YKHO._end_date = K...
[ "0.8298334", "0.8298334", "0.8298334", "0.8298334", "0.8298334", "0.8298334", "0.8298334", "0.8298334", "0.8298334", "0.8298334", "0.8298334", "0.8298334", "0.8298334", "0.813216", "0.813216", "0.813216", "0.8002686", "0.7826433", "0.7773248", "0.730425", "0.71909934", "0.7...
0.83634263
0
Gets the type of this Project. type of this project
def type(YKHO) -> str: return YKHO._type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wa6H(YKHO) -> str:\n raise NotImplementedError", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO):\n return YKHO.type", "def FRul(YKHO):\n return YKHO.TYPE", "def FRul(YKHO):\n return YKHO.__type", "def FRul(YKHO):\n return YKHO.__type...
[ "0.80638695", "0.77345425", "0.77345425", "0.77345425", "0.7706868", "0.76894146", "0.76894146", "0.767134", "0.767024", "0.767024", "0.767024", "0.7635384", "0.7635384", "0.76065624", "0.76037973", "0.76037973", "0.76037973", "0.76037973", "0.76037973", "0.76037973", "0.7603...
0.0
-1
Sets the kind of this Project. kind of project
def eJTR(YKHO, eJTR: str): BbPm = ['Beratung', 'SBF', 'RA / RRD', 'SBF / RA / RRD', 'Sonstiges'] if eJTR not in BbPm: raise ValueError('Invalid value for `kind` ({0}), must be one of {1}'.format(eJTR, BbPm)) YKHO._kind = eJTR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tcas(YKHO, eJTR):\n YKHO.kind = eJTR", "def eJTR(YKHO, eJTR):\n YKHO._kind = eJTR", "def eJTR(YKHO, eJTR):\n YKHO._kind = eJTR", "def eJTR(YKHO, eJTR: str):\n if eJTR is None:\n raise ValueError('Invalid value for `kind`, must not be `None`')\n YKHO._kind = eJTR", "def meGU(YKHO, ...
[ "0.7326814", "0.69803995", "0.69803995", "0.68033165", "0.6657255", "0.65902776", "0.65902776", "0.65902776", "0.65902776", "0.65902776", "0.6430585", "0.63053346", "0.60154", "0.59630126", "0.594762", "0.582295", "0.571085", "0.571085", "0.5677929", "0.5677929", "0.5677929",...
0.59814364
13
Return the on/off state of the sensor.
def Debg(YKHO) -> bool: try: QTBn = False if YKHO._item_id: if YKHO.coordinator.data[YKHO._system_id]['access_points'][YKHO._item_id]['status'] == 'AP_ONLINE': QTBn = True elif YKHO.coordinator.data[YKHO._system_id]['status'] == 'WAN_ONLINE': QTBn = Tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wR72(YKHO):\n return YKHO.synth.valves[YKHO._valve_id].on", "def Debg(YKHO):\n return YKHO.device['status']['state']", "def Debg(YKHO):\n return getattr(YKHO._node, xQIC[d3q8][JwK2])", "def QTBn(YKHO):\n return YKHO._sensor.value", "def jGRS(YKHO):\n if xi8C.input(YKHO.pin) == YKHO.enabl...
[ "0.77921355", "0.74922645", "0.7446603", "0.7376765", "0.7357876", "0.7355108", "0.7288286", "0.7277848", "0.7239578", "0.7215662", "0.7206494", "0.71576095", "0.71464205", "0.7143641", "0.71362484", "0.7133005", "0.70979965", "0.70979965", "0.70968837", "0.70870674", "0.7086...
0.0
-1
Return opponent of current player.
def xzj7(YKHO): if YKHO.player() == 'p1': return 'p2' else: return 'p1'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LFD6(YKHO):\n return YKHO.opponent", "def Yx99(YKHO, oyg0):\n if oyg0 == YKHO._active_player:\n return YKHO._inactive_player\n elif oyg0 == YKHO._inactive_player:\n return YKHO._active_player\n raise RuntimeError('`player` must be an object registered as a player in the current game...
[ "0.86407083", "0.8458182", "0.8411175", "0.81470424", "0.80844057", "0.8060065", "0.78279364", "0.77783996", "0.76289475", "0.7583725", "0.74742794", "0.73102635", "0.73102635", "0.7253243", "0.71717274", "0.7142106", "0.71292657", "0.71159834", "0.71134865", "0.7074159", "0....
0.8411575
2
Calling the Revisions View with a slug will only display the revisions of this page.
def ei9y(YKHO): YKHO.create_wikipage('WikiIndex', 'First Content', 'Second Content') YKHO.create_wikipage('CarrotCake', 'Carrot Content') geh0 = YKHO.client.get(gxEw('wakawaka_revision_list', kwargs={'slug': 'WikiIndex'})) YKHO.assertContains(geh0, 'Created via API: First Content') YKHO.assertContai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tTee(s5ru):\n bTKY = FYrf.Entry.get_or_none(FYrf.Entry.slug == s5ru)\n if bTKY is None:\n eTsH(404)\n return TvZl('detail.html', entry=bTKY)", "def c2MM(QpfX, B2Dn, m5r4, DuqQ=None):\n if not gCuF.PAGE_CONTENT_REVISION:\n return {'revisions': None}\n D2Fc = GJ_A.objects.filter(pa...
[ "0.61977607", "0.612167", "0.6037093", "0.60216534", "0.59393567", "0.5763124", "0.57480454", "0.57218254", "0.56750447", "0.5636091", "0.55677897", "0.5525007", "0.5472728", "0.5460208", "0.5450288", "0.5413771", "0.5309517", "0.5308003", "0.5305732", "0.52674395", "0.525660...
0.62833977
0
Returns the length of the dataset
def szAg(YKHO): return len(YKHO.labeled_data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO) -> int:\n return len(YKHO.dataset)", "def szAg(YKHO) -> int:\n return len(YKHO._dataset)", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size...
[ "0.86597586", "0.86585134", "0.8627687", "0.8614621", "0.8614621", "0.8614621", "0.8614621", "0.8614621", "0.85274976", "0.84903795", "0.83667874", "0.83610356", "0.8360614", "0.8360614", "0.8360614", "0.83279276", "0.8325663", "0.82614166", "0.8256159", "0.82527894", "0.8220...
0.0
-1
Returns the node that is the rightmost child of the left subtree of node , also returns the parent node for that child as a (child, parent) tuple
def TMJH(YKHO, Q6kx): THkp = None jvSB = Q6kx if not jvSB: return (None, None) THkp = jvSB jvSB = jvSB.left if not jvSB: return (None, None) while jvSB.right: THkp = jvSB jvSB = jvSB.right return (jvSB, THkp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjPS(YKHO, xGoe=None):\n if xGoe is not None:\n return xGoe.left\n else:\n return YKHO.root.left", "def YCjO(Q6kx):\n if Q6kx.left == None:\n return Q6kx\n return YCjO(Q6kx.left)", "def JVOT(Q6kx: Node) -> o7DN:\n if Q6kx.parent is None:\n return Q6kx\n if Q6kx...
[ "0.7550979", "0.7304141", "0.72673726", "0.7240697", "0.7187748", "0.7130365", "0.71163374", "0.70497847", "0.69786793", "0.69087005", "0.6870814", "0.68608135", "0.6859646", "0.68467474", "0.6845796", "0.6829392", "0.6829392", "0.6733202", "0.67005193", "0.6679806", "0.66461...
0.6163394
64
head The linked list's head. Note that the head is guaranteed to be not null, so it contains at least one node.
def FIMM(YKHO, sdCG): YKHO.list = sdCG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdCG(YKHO, Q6kx=None):\n if Q6kx:\n assert type(Q6kx) == o7DN\n YKHO._head = Q6kx", "def sdCG(YKHO) -> Msxl:\n raise NotImplementedError", "def qHHo(YKHO):\n return YKHO.head", "def _IVA(YKHO):\n if YKHO.head is None:\n return None\n if YKHO.head.nextNode is None:\n ...
[ "0.76406956", "0.7546051", "0.74691534", "0.7407774", "0.73938304", "0.7372517", "0.7362331", "0.7161717", "0.7136708", "0.6954389", "0.6954389", "0.6954389", "0.6954389", "0.6931136", "0.6920087", "0.690034", "0.6867586", "0.68511695", "0.6779124", "0.675718", "0.6750651", ...
0.62924016
62
Returns a random node's value.
def UIrZ(YKHO): Acvy = YKHO.list.val sdCG, YRbF = (YKHO.list.next, 1) while sdCG != None: YRbF += 1 G1Hx = tuKI.random() if G1Hx <= 1.0 / YRbF: Acvy = sdCG.val sdCG = sdCG.next return Acvy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RjKZ(YKHO):\n return YKHO[YKHO.random_key()]", "def UIrZ(YKHO):\n Q6kx = YKHO.head\n from random import randint\n for YRbF in Ni9Y(randint(0, YKHO.len - 1)):\n Q6kx = Q6kx.next\n return Q6kx.val", "def ALfI(YKHO):\n return tuKI.randint(1, 10)", "def RHmZ(YKHO):\n return YKHO.V...
[ "0.7683627", "0.765839", "0.74031866", "0.738855", "0.7353973", "0.7183241", "0.70771766", "0.7077015", "0.702326", "0.699212", "0.6940177", "0.6889105", "0.6845422", "0.6834654", "0.68165374", "0.67828757", "0.67084455", "0.6703253", "0.6688887", "0.664814", "0.66145146", ...
0.6087946
92
Generate a random string of specified length and nucleotides sampled from the specified alphabet
def ay8w(**B2fa): return ''.join([tuKI.choice(B2fa.get('alphabet', 'ACGT')) for YRbF in Ni9Y(B2fa.get('sequence_length', 101))])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BAn3(u54L: Union[int, str], gZgb: str='nt') -> str:\n if gZgb not in ['nt', 'aa']:\n raise ValueError('Invalid alphabet option.')\n aWuw = ''\n F6AI = j6oT if gZgb == 'nt' else nlsq\n for YRbF in range(int(u54L)):\n suYo = tuKI.choice(F6AI)\n aWuw += suYo\n return aWuw", "...
[ "0.7649018", "0.7559665", "0.74474525", "0.7435895", "0.7435895", "0.74356824", "0.7325527", "0.72787243", "0.7230671", "0.71981126", "0.7190563", "0.7132926", "0.71306455", "0.7117116", "0.7101782", "0.70842516", "0.70733553", "0.70709085", "0.70531255", "0.70486164", "0.704...
0.80580574
0
Performs the inverse quantum Fourier transform on a register reg. Apply repeated phase rotations with parameters being pi divided by decreasing powers of two, and then apply a Hadamard gate to the nth qubit of the register reg.
def gMda(nzPj, lQ3t, exwG, kRoC): for YRbF in range(0, exwG): nzPj.cu1(-1 * kRoC / float(2 ** (exwG - YRbF)), lQ3t[YRbF], lQ3t[exwG]) nzPj.h(lQ3t[exwG])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a5HC(DPNn, gr_i, aghA=False):\n if type(DPNn) != Rv0t:\n raise TypeError('Argument circuit must be of type qiskit.QuantumCircuit.')\n if gr_i not in DPNn.qregs:\n raise ValueError('Argument register must be a valid qiskit.QuantumRegister in circuit.qregs.')\n enAT = len(gr_i)\n for Ll...
[ "0.6685298", "0.6326138", "0.6207623", "0.6167759", "0.61536586", "0.6062116", "0.5970834", "0.5942036", "0.5909279", "0.5883122", "0.5850956", "0.578491", "0.57597744", "0.57189023", "0.5629602", "0.5621499", "0.5566115", "0.5558889", "0.5551784", "0.5510398", "0.5503702", ...
0.6815916
0
clear the screen of the console.
def yPVe(): if Hy7s.name in ('nt', 'dos'): Hy7s.system('cls') elif Hy7s.name in ('linux', 'osx', 'posix'): Hy7s.system('clear') else: print('\n') * 120
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MA3y():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')", "def Htfn():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')", "def Htfn():\n if a9EH.system() == 'Windows':\n Hy7s.system('cls')\n elif a9EH.system() == 'Linux':\n Hy7s.system('clear')", "def Htfn():\n i...
[ "0.9176618", "0.9005098", "0.8957984", "0.8942566", "0.8909582", "0.8872552", "0.88716346", "0.8830726", "0.8813097", "0.88099617", "0.88053674", "0.8754014", "0.87518185", "0.8745945", "0.8731885", "0.8726593", "0.87111896", "0.869533", "0.869533", "0.869533", "0.869533", ...
0.8570676
31
Performs vector cross multiplication on 3 dimensional vectors. It is important to note that this cross multiplication can only be performed on 3 dimensional vectors.
def WHx2(YKHO, Fg_i: 'Point3D') -> 'Point3D': return M1rV(YKHO.y * Fg_i.z - YKHO.z * Fg_i.y, YKHO.z * Fg_i.x - YKHO.x * Fg_i.z, YKHO.x * Fg_i.y - YKHO.y * Fg_i.x)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHx2(YKHO, Ty9i):\n if not isinstance(Ty9i, lNLu):\n raise TypeError('Cross product requires a vector')\n if YKHO.dimension > 3 or Ty9i.dimension > 3:\n raise IndexError('Cross product not valid for Vectors having more than 3 coordintates.')\n jzdc = list(YKHO.coordinates)\n Fg_i = li...
[ "0.781151", "0.7798586", "0.77152425", "0.76298535", "0.7566461", "0.75650585", "0.7453657", "0.74183005", "0.73430973", "0.73256135", "0.7310954", "0.7265166", "0.72508633", "0.7244732", "0.7209521", "0.7172869", "0.7156371", "0.712172", "0.7100329", "0.7078007", "0.7056349"...
0.0
-1
Return whether an object can be considered a vector or not.
def Auqn(jzdc: Union[_Vector, Any]) -> bool: return getattr(jzdc, '__vector__', False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Auqn(YKHO) -> bool:\n return YKHO in [KFXl.VECTOR, KFXl.VECTOR_TIMELESS]", "def Auqn(YKHO) -> bool:\n yIVm = YKHO.package.get_resource(YKHO.label + '.data')[1]\n return yIVm.get('category') == 'vector'", "def Auqn(input):\n return type(input) == hG8p", "def pv43(object):\n ythi = isJo(obje...
[ "0.7893989", "0.7830904", "0.7685793", "0.7629438", "0.74688816", "0.72670245", "0.7252995", "0.71935385", "0.7167545", "0.70501953", "0.6964291", "0.6881723", "0.6876118", "0.68312544", "0.67875123", "0.67809254", "0.67669034", "0.6698881", "0.6674029", "0.6661026", "0.66455...
0.82652074
0
Merges two sorted partitions of lst. This is performed inplace. It is assumed that the two partitions are contiguous in the list.
def vGZu(yv6U, XP5J, vexM, Mkmy): LFlW = [yv6U[YRbF] for YRbF in range(XP5J, vexM + 1)] _tIi = [yv6U[r845] for r845 in range(vexM + 1, Mkmy + 1)] YRbF = r845 = 0 for G1Hx in range(XP5J, Mkmy + 1): if YRbF <= vexM - XP5J and (r845 >= Mkmy - vexM or LFlW[YRbF] <= _tIi[r845]): yv6U[G1Hx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp8e(YKHO, yv6U):\n if len(yv6U) <= 1:\n return yv6U\n U4yA = len(yv6U) // 2\n VbDw = YKHO.__merge_sort(yv6U[:U4yA])\n hn2a = YKHO.__merge_sort(yv6U[U4yA:])\n xqVC = YKHO.__merge(VbDw, hn2a)\n return xqVC", "def vGZu(list, gw6c, db98, ZS4d, EiId):\n Wow_ = []\n ckPX = gw6c\n ...
[ "0.69695616", "0.69309056", "0.6834403", "0.681222", "0.6760242", "0.6715472", "0.6707276", "0.66837674", "0.6661886", "0.6658792", "0.6647882", "0.6591762", "0.6578497", "0.65775996", "0.6573605", "0.6538883", "0.6495331", "0.6469137", "0.64656603", "0.6460026", "0.6426306",...
0.62830377
39
Test User.password_reset_initiate Test User.password_reset_complete Test views.view_password_reset POST
def FeF9(YKHO): QePW = YKHO.factory.post('/reset-password', data={'email': YKHO.user_a.email}) OE11(QePW) _hkX = RCd1.view_password_reset(QePW) zTi3 = FYrf.UserPasswordReset.objects.get(user=YKHO.user_a) YKHO.assertIsNotNone(zTi3.token) YKHO.assertEqual(zTi3.is_valid(), True) eOtH, Nzyw = YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OvfQ(YKHO):\n pass", "def hBBL(YKHO):\n pass", "def rHdc(YKHO):\n pass", "def OAOs(YKHO):\n pass", "def rCri(YKHO):\n pass", "def xqh2(YKHO):\n CBIr = lYUQ()\n eOtH = SVG3.make_token(CBIr)\n dND5 = {'reset_data': {'token': eOtH, 'email': CBIr.email, 'new_password': 'newpasswor...
[ "0.8468543", "0.8292607", "0.8253488", "0.8237084", "0.78934175", "0.78796846", "0.7855293", "0.7808124", "0.7740652", "0.77281994", "0.76963603", "0.76930726", "0.76133454", "0.7595852", "0.75778973", "0.75778776", "0.75639635", "0.75360566", "0.7528097", "0.75236845", "0.75...
0.71042156
50
Filtered query, which just returns a count. Such a formulation is used to force the compiler to generate a subquery, which uses the M2M relation.
def list(YKHO, QePW, *qIxc, **B2fa): SR0I = YKHO.filter_queryset(YKHO.get_queryset()) return oGir({'count': SR0I.count()})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sUaa(YKHO):\n return YKHO.session.query(JfyU.count('*')).select_from(YKHO.model)", "def sUaa(YKHO):\n return YKHO.session.query(JfyU.count('*')).select_from(YKHO.model)", "def UHFx(YKHO) -> Z1by:\n return Z1by(db=YKHO._db, model=YKHO.model, q_objects=YKHO.q_objects, annotations=YKHO.annotations)",...
[ "0.78428876", "0.78428876", "0.75013304", "0.7416577", "0.7345943", "0.72677976", "0.7208653", "0.7181041", "0.7078642", "0.69965655", "0.6943594", "0.6938102", "0.6870765", "0.68660694", "0.682651", "0.67811567", "0.6729502", "0.6693643", "0.667596", "0.65794885", "0.6575975...
0.0
-1
Compute the average prcn, given the rcll and prcn curves.
def H6dO(jl_d, m9a6): YuCV = oyIN.concatenate(([0.0], jl_d, [1.0])) BsPE = oyIN.concatenate(([0.0], m9a6, [0.0])) for YRbF in range(BsPE.size - 1, 0, -1): BsPE[YRbF - 1] = oyIN.maximum(BsPE[YRbF - 1], BsPE[YRbF]) YRbF = oyIN.where(YuCV[1:] != YuCV[:-1])[0] VqfF = oyIN.sum((YuCV[YRbF + 1] - Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dUBY(hnFq, H0q3):\n hnFq = oyIN.asarray(hnFq)\n H0q3 = oyIN.asarray(H0q3)\n PeUY = []\n for Mkmy in oyIN.arange(0, 1.1, 0.1):\n XP5J = oyIN.array(hnFq)[oyIN.array(H0q3) >= Mkmy]\n if XP5J.size:\n PeUY.append(oyIN.nanmax(XP5J))\n else:\n PeUY.append(0)\n ...
[ "0.6017484", "0.5999286", "0.58837944", "0.58666545", "0.58305216", "0.58289194", "0.582141", "0.5801833", "0.5752373", "0.57517356", "0.57201195", "0.57188237", "0.57176757", "0.56957793", "0.566896", "0.5667029", "0.56433135", "0.5630876", "0.5622045", "0.56166357", "0.5616...
0.78535664
0
Returns the IoU of two bounding boxes
def z9IC(knvf, IkxF, pD8k=True): if not pD8k: JqUn, hyHQ = (knvf[:, 0] - knvf[:, 2] / 2, knvf[:, 0] + knvf[:, 2] / 2) pvBw, TYrM = (knvf[:, 1] - knvf[:, 3] / 2, knvf[:, 1] + knvf[:, 3] / 2) gSFI, IrGj = (IkxF[:, 0] - IkxF[:, 2] / 2, IkxF[:, 0] + IkxF[:, 2] / 2) KDnR, iM_U = (IkxF[:, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plrc(MErA, ZnGJ):\n KK0L, _hgE, IgEf, AjNA = (MErA[0], MErA[1], ZnGJ[0], ZnGJ[1])\n OZPM, W6Dw, o9iJ, hTeg = (KK0L + MErA[2], _hgE + MErA[3], IgEf + ZnGJ[2], AjNA + ZnGJ[3])\n sA0R, Kphd = (max(KK0L, IgEf), min(OZPM, o9iJ))\n YijY, sIW6 = (max(_hgE, AjNA), min(W6Dw, hTeg))\n if Kphd < sA0R or sI...
[ "0.83967453", "0.8331589", "0.83315754", "0.8312013", "0.82765573", "0.8213144", "0.81780887", "0.8061445", "0.8048283", "0.80478364", "0.80418473", "0.8012881", "0.8007109", "0.7992564", "0.7992564", "0.7977315", "0.7962279", "0.7957657", "0.7945836", "0.7928355", "0.7919707...
0.0
-1
Get the configuration info given a key
def NMoC(H5ew): return viqz[H5ew]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def egFI(YKHO, H5ew):\n return YKHO.config.get(H5ew)", "def tgzD(H5ew):\n return BcLW.get(H5ew, None)", "def NMoC(YKHO, H5ew):\n return YKHO.config.get(H5ew)", "def NMoC(YKHO, H5ew):\n return YKHO._config[H5ew]", "def ctU4(YKHO, H5ew):\n pass", "def tgzD(H5ew):\n return PSrQ._config.get...
[ "0.77951974", "0.7705379", "0.7690339", "0.75837564", "0.7580096", "0.75125253", "0.7484903", "0.7484903", "0.7484903", "0.7475174", "0.74723184", "0.74700445", "0.74287266", "0.7422049", "0.7410674", "0.7410674", "0.73718476", "0.736603", "0.73467237", "0.73169565", "0.73139...
0.7736926
1
This verifies that the Average Passengers Per Bus Per Road is incremented after a departs event.
def netU(YKHO): B2fa = YKHO.world.run(stop_at='departs') Pjr8 = B2fa['bus'] vZUl = sum(Pjr8.pax_dests.itervalues()) Wie6, waZD = YKHO.world.analysis['avg_pax'][Pjr8.bus_id] YKHO.world.update('departs', **B2fa) YKHO.assertTrue((Wie6 + 1, waZD + vZUl) == YKHO.world.analysis['avg_pax'][Pjr8.bus_id]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bxdy(YKHO):\n B2fa = YKHO.world.run(stop_at='departs')\n Pjr8 = B2fa['bus']\n zL37 = Pjr8.stop.stop_id\n hRJu = Pjr8.route.route_id\n f6Km = sum(Pjr8.stop.pax_dests.itervalues())\n DZ1j = YKHO.world.analysis['missed_pax']['stop'][zL37]\n nc62 = YKHO.world.analysis['missed_pax']['route'][hR...
[ "0.6228246", "0.5632422", "0.562654", "0.56226206", "0.56035626", "0.5590886", "0.55514055", "0.5475474", "0.5453489", "0.5433935", "0.54266393", "0.5397589", "0.53751874", "0.53313035", "0.52276284", "0.5225319", "0.52249116", "0.52098155", "0.5198263", "0.5198057", "0.51904...
0.6868555
0
This verifies that the Average Bus Queuing Time is incremented after a departs or arrivals event.
def aTKP(YKHO): hEKL = Acvy(['arrivals', 'departs']) B2fa = YKHO.world.run(stop_at=hEKL) JCyR = B2fa['bus'].stop TAxb = YKHO.world.time - JCyR.qtime sJDd = JCyR.queue_length * TAxb hDk5 = YKHO.world.analysis['avg_qtime'][JCyR.stop_id] YKHO.world.update(hEKL, **B2fa) YKHO.assertTrue(hDk5 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ngas(YKHO):\n hEKL = Acvy(['disembarks', 'board', 'new_passengers'])\n B2fa = YKHO.world.run(stop_at=hEKL)\n if YKHO.world.time >= YKHO.world.stop_time:\n return\n Q2n5 = YKHO.world.analysis['avg_qtime']\n YKHO.world.update(hEKL, **B2fa)\n YKHO.assertTrue(Q2n5 == YKHO.world.analysis['a...
[ "0.63278246", "0.60755104", "0.6060092", "0.60577947", "0.6043854", "0.6001864", "0.59858656", "0.59546506", "0.5805465", "0.5800891", "0.5787266", "0.57739526", "0.5765435", "0.5730024", "0.5713129", "0.5711461", "0.56996334", "0.56584215", "0.56440234", "0.56366247", "0.563...
0.7570161
0
Prints a personalized greeting to the user.
def DnSS(YKHO): print('\nHello ' + YKHO.user_name + '!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DnSS(YKHO):\n BYLU = 'Hello ' + YKHO.first_name + ', I hope you have a wonderful day!'\n print(BYLU)", "def DnSS(YKHO):\n BYLU = 'Hello ' + YKHO.first_name + ', I hope you have a wonderful day!'\n print(BYLU)", "def gEqM():\n BYLU = SluR('DAD JOKE 3000')\n Aw7t = Acvy(['red', 'cyan', 'gre...
[ "0.83454263", "0.83454263", "0.8251328", "0.81081504", "0.8081014", "0.8037846", "0.80283433", "0.8008131", "0.799998", "0.7996234", "0.7929922", "0.7928962", "0.7907691", "0.79043186", "0.79025596", "0.7895058", "0.78740805", "0.78740805", "0.78660554", "0.78632313", "0.7818...
0.791283
12
Set the value of the AuthenticationToken input for this Choreo. ((required, string) A valid authentication token. Permanent authentication tokens can be generated by the GenerateAuthToken Choreo.)
def nArw(YKHO, BWXx): super(DRB0, YKHO)._set_input('AuthenticationToken', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nd23(YKHO, Nd23):\n YKHO._authentication_value = Nd23", "def SQxU(YKHO, eOtH):\n YKHO.__token = eOtH", "def SQxU(YKHO, eOtH):\n YKHO.__token = eOtH", "def rxBR(YKHO, BWXx):\n YKHO._auth_token = BWXx", "def SQxU(YKHO, eOtH):\n YKHO.validateToken()\n YKHO.token = eOtH", "def SQxU(YKHO...
[ "0.6503351", "0.644019", "0.644019", "0.6354668", "0.63056", "0.6171537", "0.6089557", "0.6008098", "0.59619814", "0.59243417", "0.58911836", "0.588411", "0.588411", "0.5810091", "0.57948315", "0.5782018", "0.5782018", "0.57791096", "0.5729125", "0.57279354", "0.57279354", ...
0.6449257
1
Retrieve the value for the "Response" output from this Choreo execution. (The response from Zoho. Format corresponds to the ResponseFormat input. Defaults to xml.)
def _O3m(YKHO): return YKHO._output.get('Response', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def geh0(YKHO):\n return jC2S(YKHO.resource, YKHO.tag.find(ptaa('response')))", "def geh0(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'response')", "def geh0(YKHO) -> h8nf['outputs.BotResponseSpecification']:\n return qe4Y.get(YKHO, 'response')", "def geh0(YKHO) -> h8nf['outputs.BotRespo...
[ "0.707926", "0.70516723", "0.70467097", "0.70467097", "0.70240414", "0.70240414", "0.6871723", "0.6810657", "0.66706574", "0.6588095", "0.6576627", "0.6576627", "0.6440482", "0.64202756", "0.64054394", "0.6356655", "0.6344376", "0.6316172", "0.62609494", "0.62428355", "0.6212...
0.79754794
4
Create a result object containing nan and inf function values
def dhNk(): Aofo = Bk9s() KM3W = VhlB.OptimizerResult(fval=float('nan'), x=oyIN.array([float('nan'), float('nan')])) Aofo.optimize_result.append(optimizer_result=KM3W) KM3W = VhlB.OptimizerResult(fval=-float('inf'), x=oyIN.array([-float('inf'), -float('inf')])) Aofo.optimize_result.append(optimizer_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bE4W(LVAh, JNix=False, FfMS=False, lpf7=None):\n assert not (not JNix) & (not FfMS) & (lpf7 is None), 'at least one of nan, inf or undef has to be given.'\n yvT9 = oyIN.zeros(LVAh.shape, dtype=bool)\n if JNix:\n yvT9 = yvT9 | oyIN.isnan(LVAh)\n if FfMS:\n yvT9 = yvT9 | oyIN.isinf(LVAh...
[ "0.69003814", "0.6648116", "0.64557624", "0.6415839", "0.64120024", "0.63598526", "0.63196146", "0.6247092", "0.6244712", "0.62243295", "0.6205605", "0.61954", "0.61711645", "0.61353165", "0.6122946", "0.6121861", "0.60963404", "0.60931903", "0.6076573", "0.6076573", "0.60764...
0.82073367
0
Constructor for the PracticeBoard class.
def FIMM(YKHO, QTBn): YKHO.practice_state = _qLf(QTBn) YKHO.practice_size = len(QTBn) TLbF = [wEf2 for rdlD in QTBn for wEf2 in rdlD] lsmZ = TLbF.index(9) jNOo = (lsmZ % YKHO.practice_size + 1, lsmZ // YKHO.practice_size + 1) YKHO.practice_open_cell_coords = jNOo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._board = {WKvO: list(('__' for bGrB in range(10))) for WKvO in ('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i')}\n YKHO._blue_palace = ['d10', 'e10', 'f10', 'd9', 'e9', 'f9', 'd8', 'e8', 'f8']\n YKHO._red_palace = ['d1', 'e1', 'f1', 'd2', 'e2', 'f2', 'd3', 'e3', 'f3']\n YKHO._blue_d...
[ "0.72306275", "0.6992135", "0.6992135", "0.68938166", "0.6867971", "0.686019", "0.68556285", "0.68320096", "0.68307275", "0.679101", "0.6756628", "0.67233294", "0.6711421", "0.6701051", "0.6652341", "0.6651678", "0.6608198", "0.6598474", "0.65961623", "0.65798944", "0.6578423...
0.0
-1
Constructor for the Board class.
def FIMM(YKHO, zNig=3): YKHO.size = zNig YKHO.previous_states = [] YKHO.state = [] YKHO.open_cell_coords = (zNig, zNig) YKHO.legal_moves = [(zNig - 1, zNig), (zNig, zNig - 1)] mLGw = 1 for YRbF in range(zNig): rdlD = [] for r845 in range(zNig): rdlD.append(mLGw) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, iBIi):\n YKHO.__board = iBIi", "def FIMM(YKHO, BrEt):\n YKHO.board = yELo(BrEt)", "def FIMM(YKHO):\n YKHO._board = yELo()", "def FIMM(YKHO):\n YKHO.__board = [['X', 'X', 'X', 'X'], [' ', ' ', ' ', ' '], [' ', ' ', ' ', ' '], ['O', 'O', 'O', 'O']]\n YKHO.__current_state = 'UNFINI...
[ "0.8226087", "0.82255864", "0.8204531", "0.818597", "0.81548995", "0.8028793", "0.7953443", "0.7907403", "0.78511673", "0.7802631", "0.7801735", "0.77342254", "0.7729979", "0.7698471", "0.7624162", "0.76182574", "0.7582076", "0.7582076", "0.7580397", "0.7569979", "0.75254434"...
0.0
-1
return html that shows all cupcakes
def kZiy(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iRK6():\n G0C4 = FB0C.query.all()\n return TvZl('index.html', cupcakes=G0C4)", "def Euuq():\n G0C4 = [t5Qd.serialize() for t5Qd in FB0C.query.all()]\n return pz3A(cupcakes=G0C4)", "def BAub():\n Ih6K = [t5Qd.serialize() for t5Qd in FB0C.query.all()]\n return pz3A(cupcakes=Ih6K)", "def n...
[ "0.77235097", "0.7494045", "0.6895569", "0.68507385", "0.68445", "0.6812452", "0.67391986", "0.6702829", "0.6638401", "0.652978", "0.64910775", "0.6487326", "0.6437887", "0.6197489", "0.5898872", "0.5897166", "0.58512086", "0.583463", "0.5781203", "0.57089925", "0.5695147", ...
0.66222614
9
Function to convert string ids to integer
def PCep(YKHO, umWR): return [int(GLFn) for GLFn in umWR.split(',')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Db1J(YRbF):\n try:\n YRbF = int(YRbF)\n except ValueError:\n pass\n return YRbF", "def smvv(KCHu: str) -> int:\n return int(KCHu.strip().replace(' ', ''))", "def JhAN(s2mk):\n return int(s2mk[0])", "def ao2h(YKHO, Xvcc):\n return [int(GLFn) for GLFn in Xvcc.split(',')]", ...
[ "0.7847357", "0.7390147", "0.7209902", "0.70469576", "0.68959075", "0.688999", "0.6856615", "0.6737618", "0.6733323", "0.6689452", "0.6651959", "0.6650229", "0.66459155", "0.66281044", "0.66159034", "0.65888023", "0.6583576", "0.657869", "0.6567748", "0.6540714", "0.65136987"...
0.67679983
7
Retrieve the serializer class
def l5oD(YKHO): if YKHO.action == 'retrieve': return IyFz.RecipeDetailSerializer elif YKHO.action == ' upload_image': return IyFz.RecipeImageSerializer return YKHO.serializer_class
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5oD(YKHO):\n assert YKHO.serializer_class is not None, \"'%s' should either include a `serializer_class` attribute, or override the `get_serializer_class()` method.\" % YKHO.__class__.__name__\n return YKHO.serializer_class", "def l5oD(YKHO):\n assert YKHO.serializer_class is not None, \"'%s' shoul...
[ "0.8588771", "0.8588771", "0.8588672", "0.8560104", "0.85448784", "0.85419846", "0.84414166", "0.8194016", "0.817657", "0.80899656", "0.80770385", "0.78625816", "0.7836758", "0.77960116", "0.775385", "0.76495075", "0.75824696", "0.75722635", "0.7571652", "0.7545847", "0.74933...
0.743893
21
Return the jail state data that was previously queried.
def nPrm(YKHO) -> laHg.Dict[str, str]: if YKHO._data is not None: return YKHO._data return YKHO.query()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E052(YKHO):\n return YKHO.state[:2]", "def k8jS(YKHO):\n return YKHO._data", "def ja6o(YKHO):\n YKHO.jmx_dict = YKHO.get_jmx_dict(YKHO.jmx_url)\n YKHO.state = YKHO.__get_state(YKHO.jmx_dict)\n return YKHO.state", "def ja6o(YKHO):\n YKHO.jmx_dict = YKHO.get_jmx_dict(YKHO.jmx_url)\n YK...
[ "0.6570415", "0.65540576", "0.6531524", "0.6531524", "0.65122557", "0.6389842", "0.63157487", "0.62669945", "0.6241353", "0.6226791", "0.62006617", "0.62006617", "0.6184031", "0.6169675", "0.61687076", "0.61673105", "0.616421", "0.6159681", "0.60494184", "0.60461813", "0.6028...
0.0
-1
Return the state in humand and robot friendly format.
def wHJl(YKHO) -> str: if YKHO._data is None: return 'None' else: return str(_N4H.helpers.to_json(YKHO.data))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DghZ(YKHO):\n return 'Laser Locked : {0}\\nSoft Lock : {1}\\nIntensity : {2}/1000\\nPulse Mode : {3}\\nPulse Parameters : {4}\\nFrequency Mode : {5}\\nFirmware Version : {6}\\n'.format('On ' if YKHO.is_laser_locked() else 'Off', 'On ' if YKHO.is_soft_lock_on() else 'Off', YKHO.get_intensity(), YKHO.get_puls...
[ "0.6928196", "0.6880628", "0.6839543", "0.6810655", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", "0.67837745", ...
0.0
-1
Create CLI parser and return parsed arguments
def P3j4(): wvEv = j1Jz.ArgumentParser() wvEv.add_argument('--no-autoreg', action='store_true', help='Do NOT use an autoregressive action distribution but normal,independently distributed actions.') wvEv.add_argument('--run', type=str, default='PPO', help='The RLlib-registered algorithm to use.') wvEv.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yl6v():\n wvEv = WDqQ(prog=Hy7s.path.basename(HwRy.argv[0]), description='CLI for Amiga C Engine')\n wvEv.add_argument('-v', '--version', action='version', version=wx3I)\n wvEv.set_defaults()\n return wvEv", "def SQzL():\n wvEv = j1Jz.ArgumentParser(description='Solve word paths problem')\n ...
[ "0.80493486", "0.7974867", "0.7971823", "0.7951539", "0.7940315", "0.79081595", "0.7884219", "0.78222597", "0.7736219", "0.77280056", "0.7723499", "0.7705164", "0.7695794", "0.76913476", "0.76887083", "0.7684606", "0.7646231", "0.76389813", "0.76341593", "0.7613018", "0.75951...
0.0
-1
Generates the characters from `c1` to `c2`, inclusive.
def KbDL(dg7v, iYf1): for Z9rn in range(ord(dg7v), ord(iYf1) + 1): yield chr(Z9rn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KbDL(dg7v, iYf1):\n for Z9rn in Ni9Y(ord(dg7v), ord(iYf1) + 1):\n yield chr(Z9rn)", "def KbDL(dg7v, iYf1):\n for Z9rn in Ni9Y(ord(dg7v), ord(iYf1) + 1):\n yield chr(Z9rn)", "def KbDL(dg7v, iYf1):\n for Z9rn in Ni9Y(ord(dg7v), ord(iYf1) + 1):\n yield chr(Z9rn)", "def KbDL(dg7...
[ "0.8356215", "0.8356215", "0.8356215", "0.8356215", "0.83308953", "0.8322393", "0.82040894", "0.66986614", "0.6646158", "0.6191527", "0.59436464", "0.59268135", "0.5922509", "0.5885545", "0.57474023", "0.57066715", "0.5628958", "0.5602023", "0.5558518", "0.5517382", "0.547656...
0.8302944
7
tokenized sequence to string
def QHQa(cbXH, jADv, Adju): gSE7 = '' for YRbF in cbXH: if (YRbF != 0 and YRbF != jADv['sossonnm']) and YRbF != jADv['eossonnm']: gSE7 = gSE7 + Adju[YRbF] + ' ' return gSE7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PGVi(YKHO, aWuw, x0SS=False, gxEw=False, vhpA=False):\n try:\n if len(aWuw) == 0:\n return ''\n except:\n print(aWuw)\n if vhpA:\n aWuw = aWuw.cpu().numpy()\n if not x0SS:\n return ' '.join([YKHO.id2word[or8S] for or8S in aWuw])\n yAmx = []\n for CoSi in...
[ "0.65408623", "0.6438252", "0.6408873", "0.6401164", "0.63992625", "0.63328916", "0.6331743", "0.6241789", "0.6142461", "0.606808", "0.60544515", "0.605211", "0.6045549", "0.603586", "0.60151774", "0.59273267", "0.5853394", "0.5847433", "0.583166", "0.58022857", "0.57831687",...
0.0
-1
tokenized sequence to string
def HBpF(cbXH, ZDJM): gSE7 = '' for YRbF in cbXH: if YRbF != 0: gSE7 = gSE7 + ZDJM[YRbF] + ' ' return gSE7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PGVi(YKHO, aWuw, x0SS=False, gxEw=False, vhpA=False):\n try:\n if len(aWuw) == 0:\n return ''\n except:\n print(aWuw)\n if vhpA:\n aWuw = aWuw.cpu().numpy()\n if not x0SS:\n return ' '.join([YKHO.id2word[or8S] for or8S in aWuw])\n yAmx = []\n for CoSi in...
[ "0.65408623", "0.6438252", "0.6408873", "0.6401164", "0.63992625", "0.63328916", "0.6331743", "0.6241789", "0.6142461", "0.606808", "0.60544515", "0.605211", "0.6045549", "0.603586", "0.60151774", "0.59273267", "0.5853394", "0.5847433", "0.583166", "0.58022857", "0.57831687",...
0.5492319
56
Initializes a new evaluator.
def FIMM(YKHO, M_NZ): YKHO.clf = M_NZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, p1kx='rrs', W2ox=None, N0eD=None):\n YKHO.scoring = p1kx\n YKHO.evaluator = W2ox if W2ox is not None else F3Sx(N0eD)\n YKHO.oracle = N0eD", "def FIMM(YKHO, JC4O: modeval.ModelEvaluator) -> None:\n PCzT.dassert_isinstance(JC4O, pDOh.ModelEvaluator)\n YKHO.model_evaluator = JC4O", "...
[ "0.69398224", "0.6787414", "0.6760548", "0.6739737", "0.66694915", "0.65305436", "0.6480846", "0.6342611", "0.61608756", "0.61554885", "0.61509174", "0.6139493", "0.60802907", "0.6073804", "0.60644704", "0.6040459", "0.6023042", "0.60159284", "0.6004768", "0.6004768", "0.5980...
0.0
-1
Method for generating random points without defining classes.
def jSYO(YKHO, zNig: int): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WpTD(yKcO, Os4s, RFIa):\n oyIN.random.seed(1)\n return oyIN.random.randint(yKcO, Os4s, RFIa)", "def yzXB(exwG):\n return [PvyL(tuKI.uniform(0, 1), tuKI.uniform(0, 1)) for YRbF in range(exwG)]", "def kqMq(ywwl, XP5J=0.0):\n EcVT, LVAh = UL5X(ywwl)\n Jd40 = []\n for Ty9i in LVAh:\n i...
[ "0.7453792", "0.7448882", "0.74343026", "0.74193096", "0.7348515", "0.72597706", "0.7158596", "0.7050087", "0.703409", "0.70227975", "0.6985543", "0.6964189", "0.69485575", "0.6923844", "0.6865002", "0.68500406", "0.68473184", "0.6843171", "0.68326", "0.6822513", "0.6810186",...
0.0
-1
Add an annotation into the search index by id. A new annotation document will be created in the search index or, if the index already contains an annotation document with the same Id as the given annotation then it will be updated. If no annotation is found, nothing happens.
def amRb(YKHO, g2mL): ICn2 = YKHO._annotation_read_service.get_annotation_by_id(g2mL) if not ICn2 or ICn2.deleted: return YKHO.add_annotation(ICn2) if ICn2.is_reply: YKHO.add_annotation_by_id(ICn2.thread_root_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rbyt(YKHO, ICn2):\n if ICn2.deleted:\n return\n TBsA = y6bD(ICn2, YKHO._request).asdict()\n YKHO._index_annotation_body(ICn2.id, TBsA, refresh=False)", "def H2v5(YKHO, ICn2):\n YKHO._annotations.append(ICn2)", "def g2mL(YKHO, g2mL):\n YKHO._annotation_id = g2mL", "def rbyt(YKHO, ICn...
[ "0.76554954", "0.65810186", "0.60411084", "0.599414", "0.59927124", "0.59888035", "0.5934424", "0.5831767", "0.57902104", "0.5724562", "0.57198775", "0.56591344", "0.55960506", "0.55509216", "0.5532871", "0.54291594", "0.5383677", "0.5377916", "0.5362672", "0.534441", "0.5342...
0.7744873
0
Add an annotation into the search index. A new annotation document will be created in the search index or, if the index already contains an annotation document with the same Id as the given annotation then it will be updated.
def rbyt(YKHO, ICn2): if ICn2.deleted: return TBsA = y6bD(ICn2, YKHO._request).asdict() YKHO._index_annotation_body(ICn2.id, TBsA, refresh=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, ICn2):\n YKHO._annotations.append(ICn2)", "def amRb(YKHO, g2mL):\n ICn2 = YKHO._annotation_read_service.get_annotation_by_id(g2mL)\n if not ICn2 or ICn2.deleted:\n return\n YKHO.add_annotation(ICn2)\n if ICn2.is_reply:\n YKHO.add_annotation_by_id(ICn2.thread_root_id)",...
[ "0.74569094", "0.69275606", "0.68567836", "0.6730125", "0.6609613", "0.6337207", "0.63058406", "0.6250279", "0.60639876", "0.6007981", "0.5973201", "0.59703225", "0.5890732", "0.5879263", "0.5827636", "0.5812407", "0.5783751", "0.5727114", "0.5661453", "0.5657887", "0.5657365...
0.868619
0
Adds an item at the front of Deque. Return true if the operation is successful.
def ZK_O(YKHO, BWXx: int) -> bool: if YKHO.isFull(): return False elif YKHO.isEmpty(): return YKHO.insertWhenEmpty(BWXx) YKHO.cur_size += 1 Esd_ = Msxl(val=BWXx, next=YKHO.head) YKHO.head.prev = Esd_ YKHO.head = YKHO.head.prev return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZK_O(YKHO, BWXx):\n if YKHO.isFull():\n return False\n if YKHO.isEmpty():\n YKHO._queue.append(BWXx)\n else:\n YKHO._queue.insert(0, BWXx)\n YKHO._size = YKHO._size + 1\n return True", "def ZK_O(YKHO, BWXx: int) -> bool:\n if len(YKHO.items) == YKHO.size:\n retur...
[ "0.7570838", "0.7174669", "0.71718955", "0.7086344", "0.69328046", "0.6883527", "0.6835125", "0.6818041", "0.6771861", "0.6754106", "0.6724595", "0.6688478", "0.66819936", "0.66795385", "0.66795385", "0.66754466", "0.6650821", "0.66504294", "0.6614927", "0.6612182", "0.658105...
0.72718346
1
Adds an item at the rear of Deque. Return true if the operation is successful.
def gWl1(YKHO, BWXx: int) -> bool: if YKHO.isFull(): return False elif YKHO.isEmpty(): return YKHO.insertWhenEmpty(BWXx) YKHO.cur_size += 1 Esd_ = Msxl(val=BWXx, prev=YKHO.tail) YKHO.tail.next = Esd_ YKHO.tail = YKHO.tail.next return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, ZfUD):\n if ZfUD in YKHO.myList:\n return False\n else:\n YKHO.myList.append(ZfUD)\n return True", "def VUF1(YKHO, ZfUD) -> bool:\n if YKHO.get_num() < YKHO.capacity:\n YKHO._content.append(ZfUD)\n return True\n return False", "def H2v5(YKHO, ZfUD):...
[ "0.7162281", "0.7116066", "0.70250183", "0.6787065", "0.6747014", "0.66963655", "0.668347", "0.6671315", "0.66664255", "0.66603756", "0.66446537", "0.66282535", "0.66282535", "0.6591234", "0.65271324", "0.65119797", "0.650164", "0.64395046", "0.64361185", "0.64361185", "0.643...
0.5939486
94
Get the front item from the deque.
def uW34(YKHO) -> int: return -1 if YKHO.head is None else YKHO.head.val
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vYJ5(YKHO):\n if YKHO.is_empty():\n raise IndexError()\n return YKHO.items[0]", "def vYJ5(YKHO):\n if YKHO.items:\n return YKHO.items[0]\n else:\n return None", "def vYJ5(YKHO):\n if YKHO.items:\n return YKHO.items[0]\n return None", "def cntZ(YKHO):\n if ...
[ "0.87317884", "0.8465194", "0.839617", "0.82647115", "0.8210901", "0.8083409", "0.8074129", "0.8067822", "0.80011654", "0.79766244", "0.79582584", "0.79335564", "0.79233044", "0.7906495", "0.790061", "0.790061", "0.790061", "0.78765345", "0.78699166", "0.7832564", "0.7830898"...
0.0
-1
Get the last item from the deque.
def Ugyj(YKHO) -> int: return -1 if YKHO.tail is None else YKHO.tail.val
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._data[YKHO._back]", "def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._trailer._prev._element", "def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is ...
[ "0.8494802", "0.83595127", "0.81080574", "0.8060373", "0.7992492", "0.7923761", "0.7900596", "0.7892715", "0.7699556", "0.76986015", "0.7676231", "0.7673639", "0.7667766", "0.7639779", "0.7639779", "0.762073", "0.7584583", "0.75778204", "0.7548077", "0.7540993", "0.75268245",...
0.0
-1
Checks whether the circular deque is empty or not.
def A4KR(YKHO) -> bool: return YKHO.cur_size == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO._deque) == 0", "def FBfn(YKHO):\n return YKHO._front is None", "def lsmZ(YKHO) -> bool:\n return len(YKHO.deque1) == 0 and len(YKHO.deque2) == 0", "def lsmZ(YKHO) -> bool:\n return len(YKHO.que) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def ...
[ "0.8603316", "0.79968965", "0.79540247", "0.79261017", "0.7882316", "0.78739", "0.7830032", "0.78111273", "0.7804076", "0.77932274", "0.77691394", "0.7760352", "0.77469724", "0.7741883", "0.77281547", "0.77264625", "0.77212816", "0.7717571", "0.7713742", "0.7703897", "0.76865...
0.0
-1
Checks whether the circular deque is full or not.
def Yykn(YKHO) -> bool: return YKHO.cur_size >= YKHO.maxlen
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO._deque) == 0", "def Yykn(YKHO):\n return YKHO.tail - YKHO.head == len(YKHO.q)", "def Yykn(YKHO) -> bool:\n return YKHO.data_num == len(YKHO.data_in_queue)", "def Yykn(YKHO):\n return (YKHO.tail + 1) % YKHO.size == YKHO.head", "def Yykn(YKHO):\n return YKHO.q...
[ "0.7882587", "0.77682036", "0.77644116", "0.76999485", "0.76945376", "0.76945376", "0.7557504", "0.75165236", "0.75064105", "0.75001407", "0.7434299", "0.74336517", "0.73820835", "0.73174924", "0.7302662", "0.7261896", "0.7259545", "0.72509533", "0.7244295", "0.72420573", "0....
0.7093528
40
Adds an item at the front of Deque. Return true if the operation is successful.
def ZK_O(YKHO, BWXx: int) -> bool: if YKHO.cur_size == YKHO.maxlen: return False YKHO.cur_size += 1 return YKHO._add(YKHO.head, Msxl(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZK_O(YKHO, BWXx):\n if YKHO.isFull():\n return False\n if YKHO.isEmpty():\n YKHO._queue.append(BWXx)\n else:\n YKHO._queue.insert(0, BWXx)\n YKHO._size = YKHO._size + 1\n return True", "def ZK_O(YKHO, BWXx: int) -> bool:\n if YKHO.isFull():\n return False\n el...
[ "0.75701755", "0.72710985", "0.7173331", "0.71708536", "0.7085412", "0.69312835", "0.6882634", "0.6818905", "0.6772375", "0.67538637", "0.6724428", "0.66873264", "0.668232", "0.6679069", "0.6679069", "0.6675085", "0.6649661", "0.66494036", "0.66147107", "0.66108346", "0.65822...
0.6833795
7
Adds an item at the rear of Deque. Return true if the operation is successful.
def gWl1(YKHO, BWXx: int) -> bool: if YKHO.cur_size == YKHO.maxlen: return False YKHO.cur_size += 1 return YKHO._add(YKHO.tail.prev, Msxl(BWXx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, ZfUD):\n if ZfUD in YKHO.myList:\n return False\n else:\n YKHO.myList.append(ZfUD)\n return True", "def VUF1(YKHO, ZfUD) -> bool:\n if YKHO.get_num() < YKHO.capacity:\n YKHO._content.append(ZfUD)\n return True\n return False", "def H2v5(YKHO, ZfUD):...
[ "0.7160401", "0.71144426", "0.7023461", "0.6787783", "0.6744902", "0.66964334", "0.66817665", "0.66709226", "0.6664404", "0.6659272", "0.6643159", "0.6626729", "0.6626729", "0.6589221", "0.65263075", "0.6511469", "0.6500455", "0.64386666", "0.6433863", "0.6433863", "0.6432166...
0.0
-1
Get the front item from the deque.
def uW34(YKHO) -> int: return YKHO.head.next.val if YKHO.head.next.val is not None else -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vYJ5(YKHO):\n if YKHO.is_empty():\n raise IndexError()\n return YKHO.items[0]", "def vYJ5(YKHO):\n if YKHO.items:\n return YKHO.items[0]\n else:\n return None", "def vYJ5(YKHO):\n if YKHO.items:\n return YKHO.items[0]\n return None", "def cntZ(YKHO):\n if ...
[ "0.8732091", "0.84649545", "0.8396033", "0.8265594", "0.8211512", "0.8083782", "0.80746937", "0.80682856", "0.80016047", "0.7976065", "0.79588103", "0.79343456", "0.7924161", "0.7907135", "0.79014534", "0.79014534", "0.79014534", "0.7876822", "0.786949", "0.78334993", "0.7831...
0.0
-1
Get the last item from the deque.
def Ugyj(YKHO) -> int: return YKHO.tail.prev.val if YKHO.tail.prev.val is not None else -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._data[YKHO._back]", "def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is empty')\n return YKHO._trailer._prev._element", "def XVAW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Deque is ...
[ "0.8493796", "0.8359266", "0.8107173", "0.8061313", "0.799166", "0.792295", "0.7902339", "0.78942436", "0.7700365", "0.7699835", "0.7677005", "0.76743865", "0.76688874", "0.7640168", "0.7640168", "0.7620754", "0.758345", "0.75770813", "0.75484616", "0.7541264", "0.75280315", ...
0.0
-1
Checks whether the circular deque is empty or not.
def A4KR(YKHO) -> bool: return YKHO.cur_size == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO._deque) == 0", "def FBfn(YKHO):\n return YKHO._front is None", "def lsmZ(YKHO) -> bool:\n return len(YKHO.deque1) == 0 and len(YKHO.deque2) == 0", "def lsmZ(YKHO) -> bool:\n return len(YKHO.que) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def ...
[ "0.86032426", "0.79966164", "0.79542273", "0.7925744", "0.7881915", "0.7873531", "0.78298223", "0.7810742", "0.7803658", "0.77928865", "0.77693456", "0.7759985", "0.77465117", "0.77418745", "0.77280533", "0.7726188", "0.77209777", "0.77172345", "0.77133477", "0.77036124", "0....
0.0
-1
Checks whether the circular deque is full or not.
def Yykn(YKHO) -> bool: return YKHO.cur_size >= YKHO.maxlen
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO._deque) == 0", "def Yykn(YKHO):\n return YKHO.tail - YKHO.head == len(YKHO.q)", "def Yykn(YKHO) -> bool:\n return YKHO.data_num == len(YKHO.data_in_queue)", "def Yykn(YKHO):\n return (YKHO.tail + 1) % YKHO.size == YKHO.head", "def Yykn(YKHO):\n return YKHO.q...
[ "0.7882587", "0.77682036", "0.77644116", "0.76999485", "0.76945376", "0.76945376", "0.7557504", "0.75165236", "0.75064105", "0.75001407", "0.7434299", "0.74336517", "0.73820835", "0.73174924", "0.7302662", "0.7261896", "0.7259545", "0.72509533", "0.7244295", "0.72420573", "0....
0.7093528
39
Load Pretrained VGG Model into TensorFlow.
def LbAo(cb_Q, VyBP): lFgm = 'vgg16' kvAN = 'image_input:0' jlSf = 'keep_prob:0' XYEU = 'layer3_out:0' Fq6D = 'layer4_out:0' FI61 = 'layer7_out:0' KU12 = ZylS.saved_model.loader.load(cb_Q, [lFgm], VyBP) pNZh = ZylS.get_default_graph() njad = pNZh.get_tensor_by_name(kvAN) sMyr = p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LbAo(cb_Q, VyBP):\n lFgm = 'vgg16'\n kvAN = 'image_input:0'\n jlSf = 'keep_prob:0'\n XYEU = 'layer3_out:0'\n Fq6D = 'layer4_out:0'\n FI61 = 'layer7_out:0'\n ZylS.saved_model.loader.load(cb_Q, [lFgm], VyBP)\n pNZh = ZylS.get_default_graph()\n input = pNZh.get_tensor_by_name(kvAN)\n ...
[ "0.79139525", "0.78912765", "0.7886453", "0.7886453", "0.78115135", "0.77844846", "0.7755438", "0.7742855", "0.773247", "0.77111346", "0.77089316", "0.7696031", "0.76932967", "0.7681593", "0.76731616", "0.7656345", "0.7629141", "0.76261705", "0.7620557", "0.7619268", "0.75994...
0.7764394
6
Splits site name by _ (underscore), and takes only the first part that represents tier
def wSC6(KCHu): return str(KCHu.split('_')[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rHMI(KCHu):\n lfHk = KCHu.split('_')[0:3]\n lfHk = filter(None, lfHk)\n gzes = '_'.join(lfHk)\n return gzes", "def V8xT(RYsB):\n return [WKvO.split('.')[0] for WKvO in RYsB]", "def klql(mWFP):\n return '-'.join(mWFP.split('-')[:-2])", "def Bjav(BWXx):\n if BWXx:\n return BWXx....
[ "0.67206323", "0.6223305", "0.6219254", "0.6163665", "0.6082656", "0.60714686", "0.6064987", "0.6049373", "0.60174495", "0.5967685", "0.59613156", "0.5943292", "0.59406614", "0.5922101", "0.5911553", "0.5904744", "0.5903952", "0.58631545", "0.5849231", "0.58205205", "0.578498...
0.8379282
0
Computes masked crossentopy loss with logits.
def BrUh(YKHO, pV2P, A7Y_): pkA9 = ZylS.one_hot(YKHO.ground_truth_tags, pV2P) tt9_ = ZylS.nn.softmax_cross_entropy_with_logits_v2(labels=pkA9, logits=YKHO.logits) ZHfW = ZylS.cast(ZylS.not_equal(YKHO.input_batch, A7Y_), ZylS.float32) YKHO.loss = ZylS.reduce_mean(ZHfW * tt9_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgKV(Vjik: Tensor, Crrw: Tensor, teV0: Optional[Tensor]=None) -> llWB:\n if teV0 is not None:\n Vjik = Vjik[teV0]\n Crrw = Crrw[teV0]\n RquP = Vjik.argmax(-1) == Crrw\n if RquP.any():\n Vjik = Vjik[RquP]\n Crrw = Crrw[RquP]\n return vuvg.nll_loss(Vjik, Crrw)", "def kM3...
[ "0.7633189", "0.7475498", "0.73492455", "0.73492455", "0.7284288", "0.69580126", "0.6873131", "0.6838084", "0.6813507", "0.67659086", "0.6765227", "0.6678215", "0.66507864", "0.6642849", "0.6618213", "0.6603658", "0.66001517", "0.65977055", "0.6592742", "0.6580156", "0.656009...
0.0
-1
Return the name of this camera.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GW1s(YKHO):\n return YKHO.camera().path()", "def fSjh(YKHO):\n return YKHO.cname", "def GW1s(YKHO):\n return ''", "def C7_O(YKHO) -> str:\n e5kH = YKHO.read_camera_meta()\n if e5kH is not None and 'Camera_CamID' in e5kH:\n mWFP = f'{e5kH['Camera_CamID']}#{YKHO.timestamp}'\n else:...
[ "0.90303206", "0.88178957", "0.8749693", "0.81631184", "0.7735537", "0.76626694", "0.73491365", "0.73173785", "0.7295621", "0.71583474", "0.7093543", "0.70907366", "0.707802", "0.7065955", "0.7043104", "0.70412076", "0.7033602", "0.7033602", "0.70326304", "0.70318836", "0.702...
0.0
-1
The given user instance is ready to be saved
def llHi(Emd4, CBIr): CBIr.save()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQaj(YKHO, QePW, CBIr, L03z, jSYO=True):\n CBIr = super().save_user(QePW, CBIr, L03z, commit=False)\n CBIr.member = L03z.cleaned_data.get('member')\n CBIr.tos = L03z.cleaned_data.get('tos')\n CBIr.save()", "def qQaj(YKHO):\n VUF1.add_user(YKHO)", "def xkzz(YKHO):\n nPrm = YKHO.validated_d...
[ "0.7370213", "0.7190317", "0.71744806", "0.7150067", "0.7141514", "0.712154", "0.7113596", "0.7060291", "0.70560765", "0.70480186", "0.70480186", "0.70480186", "0.70480186", "0.70480186", "0.70261717", "0.7020265", "0.70062494", "0.70062494", "0.70062494", "0.7001554", "0.700...
0.69290924
26
Return user instance for given id
def TKWP(Emd4, _sei): rdlD = Emd4.db()(jvSB.plugin_social_auth.auth.table_user().username == _sei).select().first() if rdlD: return mv1M(rdlD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr", "def ggdo(Emd4, id):\n CBIr = Emd4.get_by_id(id)\n return CBIr", "def bt8D(id: int) -> mv1M:\n return DQE7(mv1M, mv1M.id, id)", "def TKWP(Emd4, id):\n C3ST = Nc2H.query.filter_by(id=id).first()\n return Emd4.create_user_from...
[ "0.9000848", "0.9000848", "0.89413303", "0.8605746", "0.8602657", "0.8521759", "0.8513812", "0.8476799", "0.8394195", "0.8382604", "0.838035", "0.83272296", "0.8277227", "0.82313204", "0.82082534", "0.81674904", "0.8166731", "0.81474704", "0.8145084", "0.8129144", "0.811318",...
0.0
-1
Examine the number of neighbors for each cell and determine if a future lifeform will occupy the same space.
def XiF4(YKHO): YKHO.NGM = [[0 for WKvO in range(YKHO.width)] for WKvO in range(YKHO.height)] for rdlD in range(YKHO.height): for fvDH in range(YKHO.width): A_IW = [(rdlD - 1, fvDH - 1), (rdlD - 1, fvDH), (rdlD - 1, fvDH + 1), (rdlD, fvDH + 1), (rdlD + 1, fvDH + 1), (rdlD + 1, fvDH), (rdlD +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bpvr(Cs6h, rdlD, fvDH):\n zVjE = Lp05(Cs6h, rdlD, fvDH)\n if Cs6h[rdlD, fvDH] and (zVjE == 2 or zVjE == 3):\n return True\n if not Cs6h[rdlD, fvDH] and zVjE == 3:\n return True\n return False", "def xF2G(Cs6h, WKvO, LVAh, TVTK, H2v2):\n l2JK = sum((1 for jHsn, pvd3 in qIRx(WKvO, ...
[ "0.7139733", "0.69710517", "0.69085515", "0.6886366", "0.68595165", "0.68380576", "0.6831078", "0.6812688", "0.67816633", "0.6766737", "0.6732293", "0.6710373", "0.66136533", "0.66135025", "0.6534169", "0.6519686", "0.65057176", "0.6504769", "0.64841247", "0.6478095", "0.6462...
0.0
-1
Add a vertex to the graph.
def ohmD(YKHO, oqUi): YKHO.vertices[oqUi] = set()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)", "def ohmD(YKHO, SLBp):\n Ty9i = Yegm(SLBp)\n YKHO._vertices[SLBp] = Ty9i", "def ohmD(YKHO, SLBp):\n Ty9i = Yegm(SLBp)\n YKHO._vertices[SLBp] = Ty9i", "def ohmD(YKHO, SLBp):\n Ty9i = Yegm(SLBp)\n YKHO._vertices[SLBp] = Ty9i", "def ohm...
[ "0.876498", "0.8674855", "0.8674855", "0.8674855", "0.8674855", "0.8674855", "0.8655163", "0.8531929", "0.842015", "0.84112304", "0.8328189", "0.8269451", "0.8237771", "0.82342374", "0.8208921", "0.8208921", "0.817981", "0.81537074", "0.80292004", "0.8029009", "0.7977791", ...
0.73068595
68
get req qos class
def vrRx(qv1X): G1Hx = 0 XD30 = qv1X.graph['delay'] wuxP = qv1X.graph['packetloss'] if XD30 <= 50 and wuxP == 0.001: G1Hx = 1 elif XD30 <= 100 and wuxP == 0.001: G1Hx = 1.2 elif XD30 <= 150 and wuxP == 0.01: G1Hx = 1.3 elif XD30 <= 200 and wuxP == 0.01: G1Hx =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H848(YKHO):\n return YKHO.__qos", "def H848(YKHO):\n return YKHO.__qos", "def H848(YKHO):\n return YKHO.__qos", "def qaYg(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'qos')", "def qaYg(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'qos')", "def xSk2(YKHO) -> h8nf[...
[ "0.7008002", "0.7008002", "0.7008002", "0.6691248", "0.6691248", "0.6445864", "0.6342444", "0.63334256", "0.5973207", "0.58645844", "0.583078", "0.579368", "0.5783974", "0.5730541", "0.56492186", "0.5646234", "0.5642268", "0.5621771", "0.55769396", "0.5552608", "0.5552608", ...
0.8219254
0
Get the path associated with the version of this module that exists in the current python environment. Will not reflect if we have an external git repo of this path
def omTj(YKHO) -> h8nf[str]: H4yH = getattr(YKHO.spec, 'origin', None) if H4yH == 'built-in': H4yH = None return H4yH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AS54() -> GkAb:\n return GkAb(xAKo).parent.parent / 'versions'", "def MJH2(YKHO):\n if YKHO.we_are_frozen():\n return Hy7s.path.dirname(QMSQ(HwRy.executable, HwRy.getfilesystemencoding()))\n return Hy7s.path.dirname(QMSQ(xAKo, HwRy.getfilesystemencoding()))", "def OyQC(YKHO):\n return YK...
[ "0.74957764", "0.73548687", "0.72781885", "0.7224274", "0.7152985", "0.71110684", "0.70453423", "0.70376164", "0.69631773", "0.6948578", "0.6943101", "0.6943101", "0.6895905", "0.68699986", "0.6835636", "0.6810739", "0.6779159", "0.6763656", "0.6757348", "0.6717074", "0.66983...
0.0
-1
Get the most correct path for this import. Could have a relative path or could be an external path
def pmON(YKHO) -> str: return YKHO.external_path or YKHO.resolved_path or YKHO.spec_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NjQx(mWFP):\n return Hy7s.path.dirname(Hy7s.path.abspath(tF99(mWFP).__file__))", "def rHmM(YKHO, uUa5: str) -> str:\n if Hy7s.path.isabs(uUa5):\n return uUa5\n pA9P = YKHO.current_filepath()\n if pA9P:\n BdWa = Hy7s.path.dirname(pA9P)\n else:\n BdWa = Hy7s.getcwd()\n re...
[ "0.75752836", "0.71111774", "0.70662034", "0.70520943", "0.699248", "0.695302", "0.6946913", "0.69463813", "0.694579", "0.6880046", "0.6870444", "0.68462664", "0.6821656", "0.6795969", "0.67846984", "0.6782328", "0.67797935", "0.6758764", "0.67477787", "0.67385197", "0.673847...
0.6482259
78
Show all figures that were saved during the run of the experiment.
def baaV(YKHO, fFtQ=False): from artemis.plotting.saving_plots import show_saved_figure for YRbF, hksT in enumerate(YKHO.get_figure_locs()): show_saved_figure(hksT, title='{} Fig {}'.format(YKHO.get_id(), YRbF + 1)) if fFtQ and len(YKHO.get_figure_locs()) > 0: from matplotlib import pyplot a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zDrU(YKHO):\n YKHO.clean()\n YKHO.saveData()\n YKHO.figureImg('fig_01_img.png')\n YKHO.figureAvg('fig_02_avg.png')\n if YKHO.frames < 3:\n return\n YKHO.figureDriftRAW('fig_03_drift1.png')\n YKHO.figureDriftDGOR('fig_04_drift2.png')\n YKHO.figureDriftGOR('fig_05_drift3.png')\n ...
[ "0.7362058", "0.7303981", "0.69658667", "0.6893664", "0.6843929", "0.6719368", "0.6673569", "0.66544074", "0.6592636", "0.65215427", "0.6521053", "0.6504766", "0.6476619", "0.6459919", "0.6452726", "0.64472336", "0.6442469", "0.643793", "0.6426155", "0.6408065", "0.6402748", ...
0.7864385
0
Get the id of this experiment record. Generally in format ''
def unpH(YKHO): tk5Y, Ilxn = Hy7s.path.split(YKHO._experiment_directory) return Ilxn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO.to_str().strip()[-10:]", "def unpH(YKHO) -> str:\n pass", "def unpH(YKHO) -> str:\n pass", "def id(YKHO):\n return '\"' + YKHO.identifier + '\"'", "def Z2dz(YKHO, hbFX: int) -> str:\n Qntc = len(str(YKHO.nb_runs))\n return f'{YKHO.name}-{hbFX:0{Qntc}d}'", "...
[ "0.76995796", "0.7682504", "0.7682504", "0.7528085", "0.7510045", "0.74521697", "0.7407212", "0.7407212", "0.7407212", "0.7407212", "0.73659164", "0.73659164", "0.7364926", "0.73635083", "0.7333497", "0.7333497", "0.7333497", "0.7333497", "0.73313963", "0.73313963", "0.733139...
0.7599756
3
Returns True if all flag columns contain both 0s and 1s. False if they contain only one or neither.
def Zcdf(nPrm, aQ2K): for smLN in aQ2K: if 0 not in nPrm[smLN].unique() or 1 not in nPrm[smLN].unique(): print('SANITY CHECK FAILURE: ' + smLN + ' does not contain both 0s and 1s') return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R_7i(YKHO):\n for YRbF in range(1, YKHO._row_no + 1):\n for r845 in range(1, YKHO._col_no + 1):\n BWXx = YKHO._matrix[YRbF - 1][r845 - 1]\n if BWXx != 1 and BWXx != 0:\n return False\n return True", "def all(YKHO):\n for YRbF in range(len(YKHO)):\n ...
[ "0.68276244", "0.6731742", "0.6699875", "0.6694078", "0.6680564", "0.66190934", "0.6458966", "0.6389866", "0.6363988", "0.6349767", "0.63127303", "0.63041633", "0.62614876", "0.6227698", "0.61833084", "0.61069685", "0.6093694", "0.60918856", "0.6074897", "0.6051833", "0.60023...
0.82245237
0
Apply an unnormalized Gaussian function with zero mean and scaled variance.
def IAWS(WKvO, oRRq): if type(oRRq) is not ht2j.Tensor: oRRq = ht2j.tensor(oRRq) NXpY = ht2j.sqrt(-2 * ht2j.log(oRRq)) return ht2j.exp(-0.5 * (WKvO * NXpY) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(WKvO, nJ9F, WTkW):\n return oyIN.exp(-((WKvO - nJ9F) / WTkW) ** 2 / 2.0)", "def IAWS(yGTL, WTkW, WKvO):\n return oyIN.exp(-(WKvO - yGTL) ** 2 / (2 * WTkW ** 2))", "def IAWS(WKvO, jzdc, nJ9F, WTkW):\n return jzdc * oyIN.exp(-(WKvO - nJ9F) ** 2 / (2 * WTkW ** 2))", "def qeoL(YKHO, yGTL, WTkW,...
[ "0.7502137", "0.72262967", "0.715218", "0.7100358", "0.70820844", "0.70501107", "0.70487064", "0.70259213", "0.7018675", "0.7005763", "0.700377", "0.6998378", "0.6988486", "0.69816303", "0.69801825", "0.69565934", "0.6956297", "0.6950707", "0.69469494", "0.6940167", "0.693550...
0.6470158
78
A test which makes sure that the player starts out with no cards.
def _tP9(YKHO): oyg0 = mVZ4(100) YKHO.assertEqual(oyg0.cards, [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jufg(YKHO):\n YKHO.plr.add_card(YKHO.card, kAEc.HAND)\n YKHO.plr.test_input = ['Do nothing']\n YKHO.plr.play_card(YKHO.card)\n YKHO.assertEqual(YKHO.plr.coins.get(), 0)\n YKHO.assertNotIn('Death Cart', YKHO.g.trashpile)", "def jufg(YKHO):\n YKHO.plr.add_card(YKHO.card, kAEc.HAND)\n YKHO....
[ "0.758096", "0.74514484", "0.7432877", "0.7288212", "0.72182876", "0.72035736", "0.71883106", "0.71748674", "0.7134115", "0.7057296", "0.7032173", "0.6916921", "0.6916134", "0.69018066", "0.6888995", "0.6869882", "0.6863421", "0.6844755", "0.68409425", "0.6814634", "0.6790728...
0.8090551
0
Convert input directory to an absolute direcory
def EmKw(YKHO, AGPF): sOo8 = Hy7s.path.abspath(YKHO.default_dir) if AGPF is None: uRGD = Hy7s.listdir(sOo8) if len(uRGD) == 0: return sOo8 VECZ = [Hy7s.path.join(sOo8, bTKY) for bTKY in uRGD] uRGD = sorted(filter(Hy7s.path.isdir, VECZ), key=lambda WKvO: Hy7s.path.getm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e6_M(YKHO, QTBn: 'ModuleState', d7pR: str) -> GkAb:\n return GkAb(QTBn.source_root) / QTBn.subdir / GkAb(d7pR).expanduser()", "def F44w(YKHO, NqYl):\n return YKHO.output_dir.join(NqYl)", "def NueV(pmON, P8oC=None):\n if juj8(pmON):\n return pmON\n if P8oC is None:\n P8oC = Hy7s.cu...
[ "0.72303903", "0.7053083", "0.7020504", "0.6883516", "0.6767391", "0.67583495", "0.66762775", "0.66762775", "0.6670878", "0.66193604", "0.66028744", "0.6577299", "0.6515473", "0.6469792", "0.6442557", "0.64414734", "0.64275455", "0.6418339", "0.64166963", "0.6408099", "0.6399...
0.6285243
31
Update images on the screen and flip to the new screen
def udoe(tJm0, Vjhr, eQSh, y1e_, Uuad, ZZMl, WFC2, ohsT): Vjhr.fill(tJm0.bg_color) for YBnT in WFC2.sprites(): YBnT.draw_bullet() Uuad.blitme() ZZMl.draw(Vjhr) y1e_.show_score() if not eQSh.game_active: ohsT.draw_button() a9eO.display.flip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aZ12(YKHO):\n G9jH.info('Refreshing Screen')\n Mtfr = YKHO.screen.copy()\n if s7Ie:\n Mtfr = Mtfr.transpose(uGYG.Image.ROTATE_180)\n Mtfr.thumbnail((YKHO.inky.WIDTH, YKHO.inky.HEIGHT), hnIv.ANTIALIAS)\n YKHO.inky.set_image(Mtfr)\n YKHO.inky.show()", "def udoe(YKHO) -> None:\n a9eO...
[ "0.7683534", "0.7382299", "0.72769", "0.7141672", "0.71336", "0.7097298", "0.70686424", "0.70586777", "0.7046665", "0.70336705", "0.70122695", "0.6995091", "0.6988842", "0.6984116", "0.6978312", "0.6959741", "0.6959083", "0.694468", "0.69213057", "0.6918329", "0.68869483", ...
0.0
-1
Check if any covids have reached the bottom of the screen.
def XPoJ(tJm0, Vjhr, eQSh, y1e_, Uuad, ZZMl, WFC2): VXOZ = Vjhr.get_rect() for my58 in ZZMl.sprites(): if my58.rect.bottom >= VXOZ.bottom: kJXu(tJm0, Vjhr, eQSh, y1e_, Uuad, ZZMl, WFC2) break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hagK(YKHO):\n lqTY = YKHO.window.height\n gPuD = YKHO.ball.y >= lqTY\n return gPuD", "def FXP0(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for yrRd in YKHO.zombies.sprites():\n if yrRd.rect.bottom >= VXOZ.bottom:\n YKHO._frog_hit()\n break", "def wMxK(YKHO):\n VX...
[ "0.7274583", "0.7218268", "0.68493915", "0.68469113", "0.67625916", "0.67387307", "0.6725732", "0.670255", "0.6698396", "0.6678316", "0.66514456", "0.6642237", "0.6632831", "0.6632655", "0.6626887", "0.66002566", "0.6590264", "0.65156496", "0.6459164", "0.6440631", "0.6338921...
0.71150124
2
Check if the fleet is at an edge, and then update the positions of all aliens in the fleet.
def ah7C(tJm0, Vjhr, eQSh, y1e_, Uuad, ZZMl, WFC2): YSO3(tJm0, ZZMl) ZZMl.update() if a9eO.sprite.spritecollideany(Uuad, ZZMl): kJXu(tJm0, Vjhr, eQSh, y1e_, Uuad, ZZMl, WFC2) XPoJ(tJm0, Vjhr, eQSh, y1e_, Uuad, ZZMl, WFC2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DjwX(tJm0, SaI9):\n for oeTy in SaI9.sprites():\n if oeTy.check_edge():\n kS1e(tJm0, SaI9)\n break", "def nMi8(YKHO):\n for oeTy in YKHO.aliens.sprites():\n if oeTy.check_edges():\n YKHO._change_fleet_direction()\n break", "def nMi8(YKHO):\n ...
[ "0.76178366", "0.7586335", "0.7586335", "0.7586335", "0.7586335", "0.75707567", "0.7568021", "0.75654405", "0.7519391", "0.7496134", "0.7445642", "0.74445754", "0.7341517", "0.73209065", "0.73209065", "0.73209065", "0.73209065", "0.73209065", "0.73209065", "0.73209065", "0.73...
0.0
-1
Drop the entire fleet and change the fleet's direction.
def kS1e(tJm0, ZZMl): for my58 in ZZMl.sprites(): my58.rect.y += tJm0.fleet_drop_speed tJm0.fleet_direction *= -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ez7i(YKHO):\n for oeTy in YKHO.__aliens.sprites():\n oeTy.rect.y += oeTy.getDropSpeed()\n YKHO.__settings.set_fleet_direction(YKHO.__settings.get_fleet_direction() * -1)", "def e4Wr(YKHO):\n for kEC0 in YKHO.planes.sprites():\n kEC0.rect.y += YKHO.settings.fleetDropSpeed\n YKHO.sett...
[ "0.7601646", "0.7389588", "0.7149325", "0.71376735", "0.7040783", "0.6942187", "0.6942187", "0.6942187", "0.6897573", "0.67461616", "0.66579515", "0.66579515", "0.66579515", "0.6624609", "0.66192275", "0.6598437", "0.65600324", "0.65483266", "0.65483266", "0.65483266", "0.654...
0.61420506
40
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, qtWj): tspZ = 0.001 * 0.1 ** (qtWj // 80) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.7550344
86
Find the set intersection between two IndexSets in linear time.
def p0tU(jzdc, Fg_i): wCft, qC1Y = jzdc.shape YV7q, GPal = (0, Fg_i.shape[0]) assert Fg_i.shape[1] == qC1Y RjZL = oyIN.empty(wCft, dtype=dLum.boolean) for h16r in range(wCft): while x6_Z(Fg_i[YV7q], jzdc[h16r]): YV7q += 1 if YV7q == GPal: RjZL[h16r:] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQin(YKHO, *Npih, **B2fa):\n khtY = YKHO.connection.sinterstore\n return YKHO._set_operation(khtY, *Npih, **B2fa)", "def iQin(MWrr, MOlU):\n return [YRbF for YRbF in MWrr if YRbF in MOlU]", "def iQin(YVv6, rA0f):\n return YVv6 & rA0f", "def iQin(YKHO, twyM):\n iQin = fHNa()\n wfQS = YKH...
[ "0.7487522", "0.7381018", "0.73682284", "0.7239252", "0.72292197", "0.7222022", "0.7204122", "0.70792997", "0.7066361", "0.70230174", "0.70183647", "0.69918346", "0.6985207", "0.69647783", "0.693016", "0.6902576", "0.685302", "0.685302", "0.6832227", "0.6808915", "0.6801571",...
0.0
-1
checks whether any cells have not been solved. Cells with candidates remaining (i.e., a nonempty string) or cells with no valid solution (i.e., an empty string) cause it to return False. Otherwise, the puzzle is complete and the function returns True.
def ZZQq(YKHO, eZzF=None): if eZzF is None: eZzF = YKHO.puzzle for YRbF in range(YKHO.size ** 2): if not isinstance(eZzF[YRbF], int): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eGi5(YKHO):\n YRbF = 0\n r845 = 0\n if YKHO.verify_puzzle_incomplete() == False:\n return False\n while YRbF < 9 and r845 < 9:\n if YRbF < 0:\n return False\n if YKHO.puzzle.grid[YRbF][r845][0] == '':\n YKHO.puzzle.grid[YRbF][r845][0] = 1\n elif YKH...
[ "0.77842855", "0.7756236", "0.76588666", "0.75165015", "0.738746", "0.729151", "0.72791123", "0.71976584", "0.71553606", "0.71252376", "0.7124852", "0.71213716", "0.7118325", "0.7118325", "0.7090974", "0.7059083", "0.701604", "0.6988694", "0.69548565", "0.6937423", "0.6905997...
0.6579295
51
Return the HTML content for this Markdown document.
def _R2e(YKHO) -> str: return YKHO._engine.convert(YKHO._content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SF81(YKHO):\n return mSjq.markdown(YKHO._content)", "def bJlj(YKHO):\n with open(YKHO.filepath, 'r') as Ga6V:\n Wrrl = Ga6V.read()\n return YKHO.render_markdown(Wrrl)", "def SF81(YKHO):\n return Dg1b(YKHO.content)", "def dyAh(YKHO):\n return mSjq.markdown(YKHO.__body)", "def uXvl(...
[ "0.8158696", "0.8006736", "0.778625", "0.7653866", "0.7643586", "0.76359206", "0.7598828", "0.732863", "0.73090833", "0.7303621", "0.72375107", "0.7187981", "0.71560764", "0.71560764", "0.7124105", "0.70819986", "0.7077728", "0.70729005", "0.70081663", "0.6986236", "0.6947692...
0.70597917
18
Return the document title.
def leAC(YKHO) -> str: return YKHO._content.strip().splitlines()[0].strip('# \n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Upwb(YKHO):\n return YKHO.get_page_title()", "def qHoH(YKHO):\n return YKHO.w.title", "def qHoH(YKHO):\n return YKHO.w.title", "def qHoH(YKHO):\n return YKHO.w.title", "def Upwb(YKHO) -> str:\n return YKHO._title", "def Upwb(YKHO):\n return YKHO._title", "def Upwb(YKHO):\n retu...
[ "0.8171755", "0.8102782", "0.8102782", "0.8102782", "0.8076504", "0.8015486", "0.8015486", "0.8015486", "0.8000456", "0.8000456", "0.79956436", "0.79956436", "0.79956436", "0.79956436", "0.79956436", "0.79956436", "0.79956436", "0.79956436", "0.79956436", "0.79956436", "0.799...
0.0
-1
Return a table of contents for the Markdown document.
def n3p_(YKHO) -> str: YKHO.html return YKHO._engine.toc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bJlj(YKHO):\n with open(YKHO.filepath, 'r') as Ga6V:\n Wrrl = Ga6V.read()\n return YKHO.render_markdown(Wrrl)", "def mSjq(YKHO) -> str:\n return mSjq(str(YKHO.content), extras=['fenced-code-blocks', 'tables'])", "def BmF6(YKHO):\n DwRD = []\n for SXc8 in PRqg(YKHO.raw_docs, desc='Conv...
[ "0.67284024", "0.6571723", "0.6438741", "0.6394629", "0.6379027", "0.6374178", "0.63584626", "0.6352588", "0.62346023", "0.62263674", "0.6212263", "0.62107295", "0.61755526", "0.6150917", "0.6145391", "0.6128678", "0.6111947", "0.61071205", "0.61026335", "0.6102486", "0.60947...
0.0
-1
Denormalizing bounding boxes. Maximum denormalize coordinate is height or width in order to avoid possible errors in data (norm coordinate>1.0)
def rZyS(c8oy, H2v2, TVTK): si3g = c8oy[..., 0] * H2v2 o4D3 = c8oy[..., 1] * TVTK skBL = c8oy[..., 2] * H2v2 ajwV = c8oy[..., 3] * TVTK return ZylS.round(ZylS.stack([si3g, o4D3, skBL, ajwV], axis=-1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mPFq(FlUN, N0ky):\n FlUN[:, 0] = FlUN[:, 0] * N0ky[1]\n FlUN[:, 1] = FlUN[:, 1] * N0ky[0]\n FlUN[:, 2] = FlUN[:, 2] * N0ky[1]\n FlUN[:, 3] = FlUN[:, 3] * N0ky[0]\n return FlUN", "def v5O9(oUSw, lNai):\n MKlR, yzQ0 = lNai\n NXpY = oyIN.array([MKlR - 1, yzQ0 - 1, MKlR - 1, yzQ0 - 1])\n ...
[ "0.7120979", "0.6661783", "0.6643803", "0.64848936", "0.64298064", "0.63336676", "0.6333051", "0.6322997", "0.62769705", "0.6245407", "0.623472", "0.623133", "0.6228626", "0.6186486", "0.6163272", "0.6129839", "0.6122565", "0.6122565", "0.6122565", "0.6109128", "0.6094002", ...
0.7319586
0
Get dtypes of the all the columns in the `GroupedColumns`.
def dSf7(YKHO, aDxC=None): m1c7 = [] for fvDH in YKHO.columns_col: if aDxC: m1c7.append(aDxC(fvDH.dtype)) else: m1c7.append(fvDH.dtype) return tuple(m1c7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1c7(YKHO):\n return rLdf.Series([Z9rn.dtype for Z9rn in YKHO.columns], index=YKHO.column_names)", "def _TSe(YKHO):\n if YKHO.df is None:\n return None\n m1c7 = {M_u8: {'type': str(yDqo)} if str(yDqo) != 'category' else {'type': str(yDqo), 'categories': list(yDqo.categories.values.tolist()), ...
[ "0.72038573", "0.70842195", "0.6877702", "0.67347884", "0.66187215", "0.6559468", "0.6463165", "0.64600253", "0.62905866", "0.62890697", "0.626132", "0.62578446", "0.62442183", "0.6112748", "0.6095614", "0.6069896", "0.6069282", "0.6068259", "0.60345465", "0.6023639", "0.5983...
0.6235213
13
Return a vector of all grid points of the mesh
def LTIa(YKHO): XP5J = oyIN.zeros([oyIN.prod(YKHO.npoints), YKHO.dim]) WKvO = oyIN.linspace(YKHO.origin[0], YKHO.origin[0] + YKHO.spacing[0] * YKHO.npoints[0], num=YKHO.npoints[0], endpoint=False) LVAh = oyIN.linspace(YKHO.origin[1], YKHO.origin[1] + YKHO.spacing[1] * YKHO.npoints[1], num=YKHO.npoints[1], e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LTIa(YKHO):\n CAzz, Jd40, Ud7_ = YKHO.meshgrid\n return oyIN.c_[CAzz.ravel(order='F'), Jd40.ravel(order='F'), Ud7_.ravel(order='F')]", "def IiYK(YKHO):\n Cs6h = oyIN.mgrid[0:YKHO.dQN[0], 0:YKHO.dQN[1], 0:YKHO.dQN[2]]\n Mkmy = (YKHO.Qmax - YKHO.Qmin) / YKHO.dQN\n EcVT = Cs6h[0] * Mkmy[0] + YKHO...
[ "0.7596117", "0.744127", "0.73984", "0.7357053", "0.733735", "0.72978944", "0.70918554", "0.70771396", "0.697547", "0.69338983", "0.6918006", "0.6914188", "0.6911529", "0.6877138", "0.6876621", "0.68672985", "0.68418866", "0.6826928", "0.68158823", "0.6795192", "0.6758896", ...
0.6636285
25
A function decorator that adds accessor and instance methods for specified data type.
def gr_i(Emd4, ZWCE: List[str]): def h3Xc(JfyU): uVO_.register_method(JfyU, ZWCE) Mb6N.register_method(JfyU, ZWCE) return JfyU return h3Xc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E1WD(Emd4, nrx0=_E99):\n\n def bGrB(JfyU):\n\n @xBlr.wraps(JfyU)\n def b6ry(*qIxc, **B2fa):\n return JfyU(*qIxc, **B2fa)\n setattr(Emd4, JfyU.__name__, nrx0(b6ry))\n return JfyU\n return bGrB", "def E1WD(Emd4, nrx0=_E99):\n\n def bGrB(JfyU):\n\n @xBlr.wr...
[ "0.6125754", "0.60894257", "0.60201883", "0.5981261", "0.5929958", "0.5849415", "0.58236057", "0.58088577", "0.56934834", "0.5607183", "0.5554165", "0.54966134", "0.5485852", "0.54856515", "0.5439144", "0.5431414", "0.53806466", "0.5377604", "0.5374652", "0.5371966", "0.53485...
0.0
-1
Computes a single score between two strings.
def tEao(YKHO, ptT_: str, bf9h: str) -> float: return YKHO.scorer.sentence_score(ptT_, [bf9h]).score
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T1VD(YKHO, j93S, Nqp_):\n pass", "def p1kx(wxdF: str, O48g: str, kUBT: int=0, YGrE: int=-1) -> int:\n p1kx = 0\n for YRbF in range(min(len(wxdF), len(O48g))):\n if wxdF[YRbF] == O48g[YRbF]:\n p1kx += kUBT\n else:\n p1kx += YGrE\n p1kx += abs(len(wxdF) - len(O48...
[ "0.7605401", "0.7414198", "0.7414066", "0.7388471", "0.73639244", "0.72326666", "0.7193407", "0.71182615", "0.709435", "0.70800656", "0.7076637", "0.70431143", "0.7018331", "0.7010135", "0.69658774", "0.6864946", "0.68416643", "0.6831078", "0.6830185", "0.682225", "0.6817455"...
0.62563646
78
Given an input dataframe, create a dictionary of dataframes for each position and assign each player to one or more of the position dataframes
def XBM3(jQ3Z): e5kH = {oeNL: rLdf.DataFrame(columns=jQ3Z.columns) for oeNL in ['RF', 'CF', 'LF', '1B', '2B', 'SS', '3B', 'C', 'U', 'Uonly']} for bGrB, rdlD in jQ3Z.iterrows(): for oeNL in rdlD['position'].split(','): e5kH[oeNL] = e5kH[oeNL].append(rdlD, ignore_index='True') if rdlD[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHYR(pqbQ, CBT1):\n yv_S = {}\n Whkp = {}\n for ipLl in pqbQ.playerIndex:\n for M_DK in ['x', 'y']:\n yv_S[f'Home_{ipLl}_{M_DK}'] = []\n for Zw7i in CBT1.playerIndex:\n for M_DK in ['x', 'y']:\n Whkp[f'Away_{Zw7i}_{M_DK}'] = []\n return (yv_S, Whkp)", "def m...
[ "0.6601855", "0.65613616", "0.6388635", "0.6368335", "0.62893575", "0.60288006", "0.5952177", "0.59448695", "0.59363043", "0.5920078", "0.5895906", "0.5862949", "0.5849918", "0.58443505", "0.57985884", "0.5797499", "0.579662", "0.57935894", "0.571667", "0.570926", "0.5707197"...
0.77016157
0
Calculates the moving average of an ndarray
def ZCKv(jzdc, exwG=3): C0zD = jzdc for YRbF in range(0, exwG): C0zD = oyIN.row_stack((oyIN.zeros(len(jzdc[0])), C0zD)) U5bT = oyIN.cumsum(C0zD, dtype=oyIN.float32, axis=0) U5bT[exwG:, :] = U5bT[exwG:, :] - U5bT[:-exwG, :] return U5bT[exwG - 1:, :] / exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(jzdc, exwG=2):\n U5bT = oyIN.cumsum(jzdc, dtype=float)\n U5bT[exwG:] = U5bT[exwG:] - U5bT[:-exwG]\n return U5bT[exwG - 1:] / exwG", "def PdzZ(nPrm, exwG=2):\n U5bT = oyIN.cumsum(nPrm, dtype=float)\n U5bT[exwG:] = U5bT[exwG:] - U5bT[:-exwG]\n return U5bT[exwG - 1:] / exwG", "def ZCKv(...
[ "0.80321664", "0.80308765", "0.802992", "0.8015344", "0.7969121", "0.7964962", "0.78794724", "0.7876707", "0.78421843", "0.78374726", "0.7825789", "0.7818537", "0.78099054", "0.77648616", "0.7751756", "0.77184033", "0.7711279", "0.7711279", "0.7711279", "0.7711279", "0.762475...
0.78466517
8
Convert string input to boolean
def oOc6(WKvO): if WKvO.decode('UTF-8') == 'NORMAL': return 0 elif WKvO.decode('UTF-8') == 'BROKEN': return 1 else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M0mR(fZOT):\n if isinstance(fZOT, bool):\n return fZOT\n elif fZOT.lower() in ['1', 'true']:\n return True\n else:\n return False", "def bool(vIwR):\n if vIwR == 'True':\n return True\n if vIwR == 'False':\n return False\n raise ValueError('invalid boolean...
[ "0.8693691", "0.8691801", "0.86360914", "0.8611889", "0.8598532", "0.8526439", "0.8518137", "0.851267", "0.8502961", "0.84826654", "0.8469713", "0.8463706", "0.8448874", "0.84279716", "0.84276766", "0.8404949", "0.840391", "0.8398519", "0.8383594", "0.83791417", "0.8350271", ...
0.0
-1
Create a paginator for an operation.
def oL8A(YKHO, hTqE: str=None) -> NIbP: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n pass", "def oL8A(hTqE=None):\n p...
[ "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "0.7726015", "...
0.763663
40
Evaluate negative human reward and its derivative.
def BXhv(qM_K): SWox = ITS7.time() for Ty9i, (jzdc, Fg_i) in zip(YKHO.plan_h, YKHO.control_indices_h): Ty9i.set_value(qM_K[jzdc:Fg_i]) YKHO.update_with_curr_plan_fn() dTmd = YKHO.func1() C7pn = ITS7.time() rcuJ.inner_loop_time_profile.update(SWox, C7pn) return dTmd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BiIn(YKHO):\n raise NotImplementedError", "def hHjb(YKHO):\n QTBn = YKHO._getDroneStateVector(0)\n return -1 * oyIN.linalg.norm(oyIN.array([0, 0, 1]) - QTBn[0:3]) ** 2", "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg: float) -> float:\n return oyIN.sign(vOGg)", "d...
[ "0.7379934", "0.7229524", "0.7127873", "0.71150947", "0.7060864", "0.7025239", "0.69998986", "0.69778144", "0.69578445", "0.68676686", "0.6840694", "0.6840694", "0.67792857", "0.6729451", "0.67241275", "0.6706352", "0.66919255", "0.6631358", "0.65989983", "0.6527672", "0.6522...
0.0
-1
Evaluate negative human reward and its derivative.
def BXhv(qM_K): SWox = ITS7.time() for Ty9i, (jzdc, Fg_i) in zip(YKHO.plan_h, YKHO.control_indices_h): Ty9i.set_value(qM_K[jzdc:Fg_i]) YKHO.update_with_curr_plan_fn() dTmd = YKHO.func1() C7pn = ITS7.time() rcuJ.inner_loop_time_profile.update(SWox, C7pn) return dTmd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BiIn(YKHO):\n raise NotImplementedError", "def hHjb(YKHO):\n QTBn = YKHO._getDroneStateVector(0)\n return -1 * oyIN.linalg.norm(oyIN.array([0, 0, 1]) - QTBn[0:3]) ** 2", "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg: float) -> float:\n return oyIN.sign(vOGg)", "d...
[ "0.7379934", "0.7229524", "0.7127873", "0.71150947", "0.7060864", "0.7025239", "0.69998986", "0.69778144", "0.69578445", "0.68676686", "0.6840694", "0.6840694", "0.67792857", "0.6729451", "0.67241275", "0.6706352", "0.66919255", "0.6631358", "0.65989983", "0.6527672", "0.6522...
0.0
-1
Evaluate negative human reward and its derivative.
def BXhv(qM_K): SWox = ITS7.time() for Ty9i, (jzdc, Fg_i) in zip(YKHO.plan_h, YKHO.control_indices_h): Ty9i.set_value(qM_K[jzdc:Fg_i]) YKHO.update_with_curr_plan_fn() dTmd = YKHO.func1() C7pn = ITS7.time() rcuJ.inner_loop_time_profile.update(SWox, C7pn) return dTmd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BiIn(YKHO):\n raise NotImplementedError", "def hHjb(YKHO):\n QTBn = YKHO._getDroneStateVector(0)\n return -1 * oyIN.linalg.norm(oyIN.array([0, 0, 1]) - QTBn[0:3]) ** 2", "def vOGg(YKHO, vOGg):\n return oyIN.sign(vOGg)", "def vOGg(YKHO, vOGg: float) -> float:\n return oyIN.sign(vOGg)", "d...
[ "0.7379934", "0.7229524", "0.7127873", "0.71150947", "0.7060864", "0.7025239", "0.69998986", "0.69778144", "0.69578445", "0.68676686", "0.6840694", "0.6840694", "0.67792857", "0.6729451", "0.67241275", "0.6706352", "0.66919255", "0.6631358", "0.65989983", "0.6527672", "0.6522...
0.0
-1
Returns the text content of this element.
def gFHi(YKHO) -> str: return j0SG.sync(YKHO._element_handle.executionContext.evaluate('element => element.textContent', YKHO._element_handle))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EPt3(YKHO):\n return YKHO._element.text", "def gFHi(YKHO):\n return YKHO.text", "def gFHi(YKHO):\n return YKHO.text", "def gFHi(YKHO):\n return YKHO._text", "def l5Ny(YKHO):\n return YKHO.__element.text or ''", "def gFHi(YKHO):\n return YKHO.__text", "def gFHi(YKHO) -> str:\n r...
[ "0.85899925", "0.85750884", "0.85750884", "0.85705346", "0.8563255", "0.85507166", "0.85397375", "0.8534935", "0.8534935", "0.8534935", "0.8507241", "0.85042495", "0.84907365", "0.84736603", "0.84721446", "0.8471561", "0.8471561", "0.8471561", "0.8471561", "0.8471561", "0.847...
0.84185547
38
a simple wrap function that can wrap any kind of input to bool type, used for argparsers
def oOc6(Ty9i: str): import argparse if isinstance(Ty9i, bool): return Ty9i if Ty9i.lower() in ('yes', 'true', 't', 'y', '1'): return True elif Ty9i.lower() in ('no', 'false', 'f', 'n', '0'): return False else: raise argparse.ArgumentTypeError('Boolean value expected....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fSrY(eHNT: Callable[..., bool]) -> YrBT[..., bool]:\n\n @zaGL(eHNT)\n def _XFm(*qIxc: bool):\n T4Mb = lambda WKvO: type(WKvO) is bool\n Vdqf = map(T4Mb, qIxc)\n uD99 = all(Vdqf)\n if not uD99:\n raise TypeError(f'Inputs must be of boolean type, received as input {qI...
[ "0.7171031", "0.7050829", "0.7001101", "0.6679561", "0.66254896", "0.66128176", "0.65778655", "0.65716183", "0.65132433", "0.64984083", "0.64887774", "0.64743114", "0.6473928", "0.647253", "0.647253", "0.6414194", "0.6411971", "0.64102316", "0.640732", "0.63999426", "0.639994...
0.61044073
71
Turn on each LED sequentially
def zF0X(qfpW): for NG7L in range(YkfJ): lEHr[NG7L] = qfpW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lzzG(YKHO) -> None:\n YKHO.__is_on = True\n for rdlD in YKHO.__leds:\n for NG7L in rdlD:\n NG7L.on()", "def sGh2(*mJmc):\n for WKvO in mJmc:\n XcOe[WKvO[0] % zRgK + WKvO[1] % zRgK * zRgK + WKvO[2] % zRgK * zRgK ** 2] = 1", "def EO7K(exwG=10):\n for YRbF in range(0, exwG...
[ "0.74291545", "0.72540516", "0.72322595", "0.7137931", "0.7134803", "0.70941406", "0.70810276", "0.70388365", "0.70052457", "0.69480604", "0.6873082", "0.679571", "0.67954546", "0.6789633", "0.6781886", "0.67579985", "0.6716403", "0.6702653", "0.6694518", "0.66661346", "0.661...
0.63038826
43
Collect the mean and the variance of the data set.
def ToKX(PWK5, K9oD, Z36v): PWK5.push({'fea_loader': Z36v}) mTst = PWK5.map_sync(Ishq, K9oD) eQSh = oyIN.asarray(mTst, dtype=object).sum(axis=0) UHFx = eQSh[0] JBMS = eQSh[1] / UHFx SRYB = eQSh[2] / UHFx - JBMS ** 2 return {'mean': JBMS, 'var': SRYB, 'count': UHFx}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cbUt(nPrm):\n JBMS = oyIN.mean(nPrm)\n M1Jx = oyIN.std(nPrm)\n return (JBMS, M1Jx)", "def Vb4d(__n6):\n nPrm = []\n for apum, J64M in __n6.getAll():\n Xn71 = hnIv.open(apum)\n SRYB, JBMS = eQSh.variance_mean(Xn71.getdata())\n ITS7 = qcWV.datetime.strptime(Xn71.info['Creati...
[ "0.71999836", "0.71148413", "0.70408916", "0.7010415", "0.7003413", "0.6999529", "0.6901432", "0.6866146", "0.68606305", "0.6843795", "0.6842428", "0.68345475", "0.6791257", "0.6790863", "0.67839897", "0.67280513", "0.6719614", "0.6719429", "0.66871864", "0.65246755", "0.6513...
0.0
-1
For columns with continuous data, fill missing values in a column by the column's original average.
def ilNo(YKHO, AAHb): WfCS = YKHO.get_column(AAHb, False) S8vG = sum(WfCS) / len(WfCS) d6pt = YKHO.column_names.index(AAHb) o8c1 = [] for rdlD in YKHO.data: PbK_ = False for fvDH in rdlD: if fvDH == 'NA': PbK_ = True if PbK_: rdlD[d6pt]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hyKc(jQ3Z, iVRZ):\n L4iJ = jQ3Z[iVRZ].dropna().mean()\n if len(jQ3Z[iVRZ][jQ3Z[iVRZ].isnull()]) > 0:\n jQ3Z.loc[jQ3Z[iVRZ].isnull(), iVRZ] = L4iJ", "def ilNo(YKHO, AAHb):\n fvDH = YKHO.get_column(AAHb)\n WBPg = [AAHb]\n jLb_ = sofe(WBPg, fvDH)\n jLb_.convert_to_numeric()\n uGu0 = ...
[ "0.77524704", "0.7513105", "0.73164517", "0.70575595", "0.70509124", "0.6991466", "0.69657475", "0.695392", "0.6934833", "0.68272984", "0.68189496", "0.67743134", "0.65840316", "0.65612894", "0.65570116", "0.6488283", "0.6483539", "0.64831984", "0.6478212", "0.64273024", "0.6...
0.77157927
1
Test to get a sample using a nonexisting sampleid
def X2FR(FBja, Y8s4: Store): cmRX = Y8s4.uri mWFP = 'dummy_name' Aofo = FBja(['--database', cmRX, 'get', 'sample', mWFP]) assert Aofo.exit_code == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OVu8(YKHO, B85K: int):\n if B85K and (not B85K < 0):\n return YKHO.__session.Sample.find(B85K)", "def pNS4(NCls: DatabaseSession, B85K: int) -> ImMB:\n na1r.debug(f'Looking up sample «{B85K}»')\n mvm2 = NCls.fetch_row('\\n select sample_id as id, identifier, encounter_id\\n fr...
[ "0.73703974", "0.7363406", "0.73272", "0.7005476", "0.68604696", "0.67950636", "0.676259", "0.6745494", "0.67264426", "0.6719695", "0.67023134", "0.66970533", "0.6585814", "0.6582604", "0.64939654", "0.63919383", "0.63908046", "0.6357115", "0.6341495", "0.62587863", "0.624709...
0.74203765
0
Normalise columns of matrix.
def kwsU(Ty9i): imdf = oyIN.sqrt(oyIN.sum(Ty9i ** 2, 0)) imdf[imdf == 0] = 1.0 return oyIN.asarray(Ty9i / imdf, dtype=Ty9i.dtype)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KoWW(YKHO, SppC):\n return NkkI(SppC, norm='l1', axis=0)", "def zdGZ(nPrm):\n if nPrm is None or len(nPrm) == 0:\n return nPrm\n for YRbF in range(len(nPrm[0])):\n nPrm[:, YRbF] = NkkI(nPrm[:, YRbF])\n return nPrm", "def _DY_(SppC):\n s1Ra = SppC.sum(axis=0)\n s1Ra = oyIN.ar...
[ "0.83793634", "0.76434195", "0.7528641", "0.74852675", "0.74102527", "0.7359461", "0.7348436", "0.72536665", "0.72384894", "0.72100073", "0.71857506", "0.71794945", "0.71060824", "0.70962006", "0.70601016", "0.7023601", "0.7018548", "0.7009983", "0.69896454", "0.6971295", "0....
0.0
-1