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
Determine whether this is a night class.
def geTh(YKHO, nPrm): return YKHO.input['start_time'].hour - 12 >= z39Z.evening_threshold
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jdDx(YKHO):\n return YKHO in (ZB18.ARMED_STAY_NIGHT, ZB18.ARMED_STAY_NIGHT_BYPASS_PROA7, ZB18.ARMED_STAY_NIGHT_INSTANT_PROA7, ZB18.ARMED_STAY_NIGHT_INSTANT_BYPASS_PROA7)", "def y3O6(YKHO):\n vY_t = YKHO.config['main']['nighttime'].get('enabled')\n G39W = YKHO.config['main']['nighttime']['start_dt']\...
[ "0.6527473", "0.6414756", "0.6175922", "0.602546", "0.5998195", "0.5900918", "0.58496946", "0.57989836", "0.57856333", "0.5643815", "0.5620943", "0.56155616", "0.56085783", "0.55528224", "0.5540289", "0.55359757", "0.5533042", "0.5521824", "0.54942524", "0.5462528", "0.543737...
0.0
-1
Return a Spec which will validate every value, but which will conform values not meeting the Spec to a default value.
def mivd(zlTK: Union[Tag, SpecPredicate], *aTLP: SpecPredicate, WmM4: Any=None, cJc6: Optional[Conformer]=None) -> WI8m: TZ9E, aTLP = bkkq(zlTK, *aTLP) if len(aTLP) != 1: raise ValueError("Must provide exactly one Spec predicate for 'default' Specs") return vG8O(TZ9E or 'default', aTLP[0], ER8P(conf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvXi(YKHO, BWXx):\n return YKHO.__validate(BWXx, YKHO.validate_default_element)", "def PNTs(YKHO):\n for wEf2 in (1, {}, 'test', None):\n QWcs = z0e4(default=wEf2)\n YKHO.assertEqual(wEf2, QWcs.interpret(HXPI.PROPERTY_SENTINEL, {}))", "def lKZS(Pcn2):\n Eqz7([Pcn2])", "def WvXi(YKH...
[ "0.612875", "0.59103674", "0.59051394", "0.59044427", "0.5830519", "0.5766347", "0.5623701", "0.5590664", "0.55527115", "0.550996", "0.54377204", "0.5407819", "0.53949434", "0.5346402", "0.53418934", "0.53382105", "0.5294812", "0.52543616", "0.5215354", "0.5208035", "0.518366...
0.5461201
10
Return a spec that can validate strings containing email addresses. Email string specs always verify that input values are strings and that they can
def JK1J(TZ9E: Tag='email', cJc6: Optional[Conformer]=None, **B2fa) -> WI8m: @JvST(f"Value '{{value}}' is not type 'str'", complement=True) def J1TN(WKvO: Any) -> bool: return isinstance(WKvO, str) OW2V = [] for pTEf in iEKj: zpTZ = B2fa.pop(f'{pTEf}_in', WEMM) c1CM = B2fa.pop(f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NRGE(pP_S):\n if not pP_S:\n raise QoMW('Input cannot be blank')\n if not isinstance(pP_S, str):\n raise QoMW('Invalid email address')\n if '@' not in pP_S or '.' not in pP_S:\n raise QoMW('Invalid email address. Example of a valid address: johndoe@example.com.')\n else:\n ...
[ "0.70175207", "0.68795985", "0.6784048", "0.67066634", "0.6557823", "0.6530631", "0.6491231", "0.64875734", "0.6387207", "0.63726294", "0.6368719", "0.63425255", "0.63215315", "0.6276348", "0.6220629", "0.6212647", "0.6200464", "0.6178973", "0.61641055", "0.61536276", "0.6151...
0.7692693
0
Get the comments of the Post object
def qX9M(YKHO): YKHO.comments = pNZh.get_connections(m8z6['id'], 'comments')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qX9M(YKHO):\n return YKHO._client.get_comments(YKHO)", "def qX9M(DLL8):\n return np7h.objects.filter(post__id=DLL8)", "def Tj1O(YKHO, QePW, _sei=None):\n m8z6 = YKHO.get_object()\n Tj1O = jY1u.objects.filter(post=m8z6).order_by('created_at')\n ZMzz = W8M2(Tj1O, many=True)\n return oGir(ZM...
[ "0.7950904", "0.78599524", "0.7510495", "0.75018305", "0.7459841", "0.7444467", "0.73467", "0.7286224", "0.7286224", "0.72833335", "0.7244442", "0.71981066", "0.7115018", "0.71108985", "0.7093227", "0.7093227", "0.7093227", "0.7066476", "0.7031515", "0.70136917", "0.6995091",...
0.8358504
0
Generate a random string of fixed length
def BWvy(a__r=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(a__r)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def e7Tf(u54L=6):\n exwG = int(u54L / 2 + 1)\n WKvO = MRxC.hexlify(Hy7s.urandom(exwG))\n KCHu = WKvO[:u54L]\n return KCHu.decode('utf-8')", "def e7Tf(u54L):\n return ''.join((tuKI...
[ "0.86810505", "0.8573398", "0.8549153", "0.85291016", "0.852194", "0.84337574", "0.8433061", "0.84165514", "0.8411733", "0.8390179", "0.8346973", "0.8344882", "0.8341727", "0.83356076", "0.8323762", "0.82998705", "0.8290879", "0.82825434", "0.82822", "0.8281794", "0.82652897"...
0.78558993
71
(x, y) Positions of Horizontal lines, return a list
def ZluA(YKHO, bseI, zNig): if bseI in YacT.keys(): yF2Z = YacT[bseI] else: yF2Z = YacT['*'] e0bE = [(YRbF * (zNig + 1), 1) for YRbF in range(3) if yF2Z[YRbF] == 1] return e0bE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TC3m(YKHO):\n Ui7M = []\n biAr = []\n for YRbF in YKHO.lines:\n for o4D3, si3g, ajwV, skBL in YRbF:\n if o4D3 == ajwV:\n pass\n else:\n r8hN = (skBL - si3g) / (ajwV - o4D3)\n Z9rn = si3g - r8hN * o4D3\n if r8hN < ...
[ "0.68665314", "0.6787137", "0.6616824", "0.6606193", "0.6603586", "0.6523512", "0.6519659", "0.6514005", "0.64926636", "0.63878745", "0.63795507", "0.63550705", "0.6351874", "0.63415223", "0.6334288", "0.6307821", "0.628389", "0.62729794", "0.626088", "0.62410575", "0.6195096...
0.6853692
1
(x, y) Positions of vertical lines, return a list
def P8RI(YKHO, bseI, zNig): Hx9i = rl0B[bseI] HoZp = [(1, 0), (1, zNig + 1), (zNig + 2, 0), (zNig + 2, zNig + 1)] AQlL = [HoZp[YRbF] for YRbF in range(4) if Hx9i[YRbF] == 1] return AQlL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J7sY(YKHO, WKvO, LVAh):\n return [rdlD[WKvO] for rdlD in YKHO._board]", "def hGbR(YKHO, WKvO):\n urqV, tlxW, GrDu, H2v2 = YKHO.plot.getPlotBoundsInPixels()\n iuXf = YKHO.plot.pixelToData(WKvO, tlxW, check=False)\n YNMX = YKHO.plot.pixelToData(WKvO, tlxW + H2v2, check=False)\n return (iuXf, YNM...
[ "0.7081453", "0.6651377", "0.66304505", "0.6569236", "0.65361035", "0.6528759", "0.6526476", "0.6515634", "0.6435364", "0.6362914", "0.63264936", "0.63061404", "0.6236618", "0.62273675", "0.6205779", "0.6159849", "0.61541903", "0.6139878", "0.6111455", "0.61095685", "0.606590...
0.68428665
1
Turn the children of node into a dict, keyed by tag name. This is only a shallow conversation child nodes are not recursively processed.
def GTPV(Q6kx): return dict(((tTpl.tag, tTpl.text) for tTpl in Q6kx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q7Qt(Q6kx: etree.Element) -> a1PO.Mapping[str, QGpr.Element]:\n return {aUGN.tag: aUGN for aUGN in Q6kx}", "def RbaF(YKHO):\n if YKHO._child_val is not None:\n return {YKHO._child_key: YKHO._child_val}\n if YKHO._children is not None:\n return dict(YKHO._children)\n return {}", "d...
[ "0.7260039", "0.6857858", "0.6763899", "0.67602456", "0.6744296", "0.6611385", "0.6578196", "0.65404546", "0.65226346", "0.64374834", "0.63099986", "0.62476134", "0.6239519", "0.61952513", "0.60669154", "0.6023519", "0.6011944", "0.5996984", "0.59876925", "0.59859884", "0.595...
0.7581949
0
Transform an Element tree to a list of entities recursively. Possible child entities are added to each entity `_children` list.
def P3YQ(J_Es): MMe4 = [] for U6D_ in J_Es: Emd4 = vtad.get(U6D_.tag, None) if not Emd4: continue o8Kj = GTPV(U6D_) T4M1 = OOfY(o8Kj) if hasattr(Emd4, 'fill_extra_attributes'): T4M1 = Emd4.fill_extra_attributes(T4M1) LEXu = Emd4(**T4M1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ys9o(YKHO):\n for aUGN in YKHO.children:\n yield aUGN\n for ymzq in aUGN.all_children():\n yield ymzq", "def SmB_(YKHO):\n for V2_6 in YKHO.body:\n if isinstance(V2_6, PXc2):\n yield V2_6", "def MMe4(YKHO):\n for eHNT in YKHO._children(KFEt):\n RKD...
[ "0.58883345", "0.5800416", "0.5793394", "0.569851", "0.567552", "0.56672955", "0.56266534", "0.56160915", "0.56075317", "0.55881494", "0.5578008", "0.5553922", "0.55355644", "0.5533695", "0.55321294", "0.55286294", "0.5526044", "0.54763865", "0.54687625", "0.5464507", "0.5459...
0.75227904
0
Save the form, creating a user if validation passes. The user will be created with the provided username, email address, password, and full name. If there are failures in creating this user, or there's an existing user with the given name, an error will be raised. Creation always occurs in its own transaction, ensuring...
def xkzz(YKHO): if not YKHO.errors: NtEF = YKHO.cleaned_data['username'] try: with Kh6j.atomic(): return mv1M.objects.create_user(username=NtEF, password=YKHO.cleaned_data['password1'], email=YKHO.cleaned_data['email'], first_name=YKHO.cleaned_data['first_name'], last_nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se...
[ "0.7636745", "0.7633561", "0.7625627", "0.76068926", "0.75905216", "0.7583154", "0.75717664", "0.75357467", "0.7505619", "0.74959433", "0.74842966", "0.7406905", "0.7400508", "0.73897624", "0.73879075", "0.7384229", "0.7354026", "0.7343632", "0.7340874", "0.7323432", "0.73223...
0.8243964
0
Absolute path for the package.
def SbY5(): return rEYt().replace('\\', '/').replace('src', '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oZPa(YKHO) -> str:\n return YKHO._app_package_path", "def rEYt():\n hxGQ = yj5T()\n return hxGQ.replace('.', '/')", "def cYu8(YKHO):\n return '.'", "def pmON(YKHO):\n pmON = Hy7s.path.join(YKHO.base_dir, YKHO.store().replace(' ', '_'), YKHO.package_name())\n return Hy7s.path.abspath(pmO...
[ "0.78314", "0.77375686", "0.7661747", "0.7619996", "0.7466306", "0.74315745", "0.7268875", "0.7261624", "0.72011375", "0.71791935", "0.71791935", "0.71301985", "0.70722663", "0.7069", "0.7052365", "0.70192754", "0.6948155", "0.6925366", "0.6904686", "0.6865187", "0.6864142", ...
0.7032795
15
Construct the URL for a particular API call. This method is used internally to come up with the URL to use when making RPCs to the Cloud Datastore API.
def qYwM(bNKA, NKcE, NKRf): return eEgP.format(api_base=NKRf, api_version=vp8q, project=bNKA, method=NKcE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z03H(YKHO, OFMJ, **B2fa):\n B2fa['key'] = YKHO.api_key\n if 'language' not in B2fa:\n B2fa['language'] = YKHO.language\n if 'format' not in B2fa:\n B2fa['format'] = YKHO.__format\n kcRE = QIYp(B2fa)\n return '{0}{1}?{2}'.format(pzVU.BASE_URL, OFMJ, kcRE)", "def zwb1(YKHO, GjSa='G...
[ "0.77305657", "0.7546644", "0.7546644", "0.7305107", "0.7298044", "0.71652263", "0.7124695", "0.7096156", "0.7063505", "0.703609", "0.6946037", "0.6911422", "0.68210614", "0.6805163", "0.6799172", "0.6729972", "0.66943413", "0.6666511", "0.6663158", "0.6650004", "0.66153646",...
0.70072347
10
Number of bytes before evicting or None if this cache never evicts.
def bnNn(YKHO): return YKHO._limit_bytes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oc1B(YKHO):\n return 0", "def jiw9(YKHO):\n return len(YKHO.cache)", "def oc1B(YKHO):\n return len(YKHO._cache)", "def zNig(YKHO):\n return len(YKHO.cache)", "def oc1B(YKHO):\n return YKHO.cachesize", "def zNig(YKHO):\n return len(YKHO.cache)", "def yJC7(YKHO):\n if hasattr(YKH...
[ "0.71117264", "0.66159964", "0.65699637", "0.6548371", "0.6473349", "0.64241904", "0.6375474", "0.63718534", "0.6301681", "0.6155175", "0.6001963", "0.6001963", "0.6001963", "0.6001963", "0.5983991", "0.5983638", "0.598139", "0.5917217", "0.5912438", "0.589802", "0.5832829", ...
0.0
-1
Current sum of `nbytes` of all objects in the cache.
def UcP6(YKHO): return YKHO._current_bytes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oc1B(YKHO):\n return 0", "def H4X_(YKHO):\n return sum([Rv0k for Rv0k in YKHO.iterate()])", "def oc1B(YKHO):\n return YKHO.cachesize", "def zNig(YKHO):\n return len(YKHO.cache)", "def jiw9(YKHO):\n return len(YKHO.cache)", "def cTDt(YKHO):\n wjRY = 0\n for bTKY in Hy7s.scandir(YK...
[ "0.68132645", "0.6643716", "0.657197", "0.6530644", "0.6492846", "0.64674234", "0.64640534", "0.6407826", "0.6391903", "0.6388461", "0.6367094", "0.6212229", "0.6089934", "0.6088264", "0.6074018", "0.6056775", "0.6048905", "0.60218287", "0.60188", "0.5998338", "0.5989065", ...
0.0
-1
Try to get an object from the cache. Raises `KeyError` if it is not found. (Threadsafe and lockless.)
def OP2O(YKHO, qJWj): return YKHO._data[qJWj]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tLWm(ZfUD: str) -> object:\n ZfUD = str(ZfUD)\n wyyA = x3uu(ZfUD)\n if wyyA is not None:\n try:\n KwDD = t2lc.load(open(wyyA, 'rb'))\n except EOFError as ex:\n DANw.show_error('Error when loading file from cache: ' + str(aTqo))\n return None\n exce...
[ "0.75848955", "0.7477291", "0.71280116", "0.7013496", "0.6966401", "0.6947844", "0.6928862", "0.68085426", "0.67581034", "0.6747027", "0.6736363", "0.6723115", "0.67164624", "0.6715248", "0.6715248", "0.6712343", "0.67122704", "0.666485", "0.66196424", "0.6606576", "0.659246"...
0.0
-1
Return a list of actions available for the service Returns a list of available actions for the service.
def Q6sW(YKHO): if YKHO.description == Bx6I.NotAvailableError: raise Bx6I.NotAvailableError("Can't get actions because a description for this service is not available.") return list(YKHO.actions.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CA6v(YKHO):\n return YKHO.actions", "def xASv(YKHO):\n return YKHO._action_list", "def Q6sW(YKHO):\n return []", "def eqLF(YKHO):\n return YKHO.actions", "def Q6sW(YKHO):\n return YKHO.agent.get_actions()", "def xASv(YKHO):\n xASv = []\n for mWFP, ZfUD in YKHO._definition.get('ac...
[ "0.7910947", "0.76743203", "0.76711476", "0.7629608", "0.7533723", "0.7300489", "0.72807014", "0.72304475", "0.72264194", "0.71850127", "0.71850127", "0.71342677", "0.71342677", "0.71342677", "0.7094187", "0.70902497", "0.7058974", "0.7043642", "0.70093775", "0.69916785", "0....
0.8303406
0
Get the service actions Gets the actions available for the service.
def cn9h(YKHO): xlpn = {} KzBU = YKHO.description tk5Y = KOLN.parseString(KzBU) xASv = tk5Y.getElementsByTagName('action') for XeOP in xASv: PQh7 = XeOP.getElementsByTagName('name')[0].firstChild.nodeValue aOZK = [] try: fhJh = XeOP.getElementsByTagName('argumentL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q6sW(YKHO):\n if YKHO.description == Bx6I.NotAvailableError:\n raise Bx6I.NotAvailableError(\"Can't get actions because a description for this service is not available.\")\n return list(YKHO.actions.values())", "def xASv(YKHO):\n return YKHO._action_list", "def Q6sW(YKHO):\n return YKHO....
[ "0.79665446", "0.7591718", "0.75200814", "0.73988086", "0.73988086", "0.73789567", "0.7368557", "0.73604137", "0.73237854", "0.73179847", "0.73179847", "0.73179847", "0.7298801", "0.72076637", "0.7166271", "0.7042201", "0.7040598", "0.69572574", "0.69073594", "0.6891974", "0....
0.68208176
23
Set the current value.
def mokr(YKHO, BWXx): super().setValue(int(BWXx * YKHO._precision))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j6Nn(YKHO):\n raise NotImplementedError", "def _6g1(YKHO, BWXx):\n YKHO._current = YKHO._setpoint - BWXx", "def BWXx(YKHO, BWXx):\n YKHO.__value = BWXx", "def deS3(YKHO, wEf2):\n YKHO.val = wEf2", "def j6Nn(YKHO, WKvO):\n YKHO._value = WKvO", "def j6Nn(YKHO, WKvO):\n YKHO._value = W...
[ "0.81568444", "0.8114963", "0.80853546", "0.8072348", "0.8061439", "0.8061439", "0.7939145", "0.7939145", "0.7939145", "0.7929117", "0.7897316", "0.7878255", "0.7878255", "0.7878255", "0.7878255", "0.7878255", "0.7878255", "0.7859156", "0.77963006", "0.7779137", "0.7759601", ...
0.0
-1
Takes an integer, n. Returns another note n half steps above or below (if n is negative) the current note. Doesn't modify in place.
def SMV9(YKHO, exwG): return L_TV(k38O[k38O.index(YKHO.name) + exwG], YKHO.string, YKHO.guitar, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ebru(exwG, paSp):\n return epAf.floor(exwG * paSp) / paSp", "def DvkA(a1PO, exwG):\n D5g7(a1PO)\n EdbX(a1PO, exwG)\n QZcN(a1PO)", "def _fKz(YKHO, exwG):\n qOGo = int(exwG * YKHO.samplerate)\n ZJsU = qOGo + YKHO.samplerate\n if ZJsU > YKHO.duration:\n ZJsU = YKHO.duration\n f4...
[ "0.6083122", "0.60713494", "0.5902596", "0.58930653", "0.58917224", "0.58860815", "0.5865177", "0.58369845", "0.58003354", "0.5797726", "0.5748247", "0.57364064", "0.57016605", "0.56733173", "0.56664217", "0.5649698", "0.5609922", "0.5598912", "0.55972207", "0.5596575", "0.55...
0.74231535
0
Return repr for the module. The method is deprecated. The import machinery does the job itself.
def NlD_(yR_P): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NlD_(*qIxc, **YSA3):\n pass", "def wHJl(YKHO) -> str:\n return f'<Module[{YKHO.path}]>'", "def wHJl(YKHO):\n Rci7 = hkS8(YKHO, '__spec__.origin', '__file__', '__package__')\n mWFP = hkS8(YKHO, '__name__', 'name')\n QNO6 = oeVg(YKHO, PkNZ) and 'class-module' or 'module'\n yvT9 = f'<{QNO6} ...
[ "0.7779252", "0.7502372", "0.73999244", "0.68969315", "0.67722857", "0.65842247", "0.6581517", "0.6531543", "0.652574", "0.6469559", "0.63845503", "0.634502", "0.63084537", "0.6306228", "0.62950504", "0.62477756", "0.6235535", "0.61757797", "0.6148386", "0.6124769", "0.602555...
0.81104344
1
Create an instance of an eduid actions app. Note that we use EduIDBaseApp as the class for the Flask app, since the actions app is used unauthenticated.
def vN5n(mWFP: str, GPtr: dict) -> ocQp: P4t4 = ocQp(mWFP, GPtr) P4t4.logger.info(f'Init {mWFP} app...') return P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P4t4():\n P4t4 = LUif()\n return P4t4", "def P4t4():\n return LUif()", "def LUif(YKHO):\n YKHO.app = L2w0(__name__, instance_relative_config=True)\n YKHO.app.config.from_mapping(SECRET_KEY='!ZNeverSayNever116Z!', MONGODB_SETTINGS={'host': 'mongodb://localhost/opc_integrity'})\n aTj0(YKHO....
[ "0.69662046", "0.68466157", "0.66533786", "0.6487776", "0.64575016", "0.64253587", "0.6420107", "0.6412767", "0.6400847", "0.6399896", "0.63797295", "0.6342284", "0.6338992", "0.63266504", "0.6240923", "0.6237907", "0.6226871", "0.62232953", "0.6200927", "0.6189253", "0.61833...
0.68776673
1
Turn off LEDs and outputs when exiting
def U4F2(YKHO): YKHO._stop_all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W4JM():\n bamM.on()\n ITS7.sleep(1)\n bamM.off()\n xi8C.cleanup()", "def Z_rv(YKHO):\n print('Turning the lights off')\n YKHO.led.all_off()\n YKHO.client.publish(uf2Z, nGxz)", "def Vk_H(YKHO):\n YKHO.wp.digitalWrite(YKHO.LEDON_PIN, YKHO.wp.LOW)\n YKHO.wp.delayMicroseconds(20)", ...
[ "0.77255505", "0.77159023", "0.75750864", "0.75483537", "0.7536057", "0.7473403", "0.73853135", "0.73784566", "0.72791034", "0.72229457", "0.72085327", "0.71990645", "0.7043129", "0.7034531", "0.70190907", "0.70035017", "0.69853485", "0.695546", "0.69553006", "0.6938466", "0....
0.0
-1
Renders the home page.
def kZiy(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/index.html', context_instance=K1Ja(QePW, {'title': 'Home Page', 'year': qcWV.now().year}))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.85574406", "0.853399", "0.8351404", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.827363", "...
0.7541308
93
Renders the about page.
def vsuQ(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/about.html', context_instance=K1Ja(QePW, {'title': 'About', 'message': 'Your application description page.', 'year': qcWV.now().year}))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85647076", "0.8502948", "0.8448504", "0.840492", "0.83937883", "0.8293176", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82704526", "0.82675153", "...
0.77379674
59
Returns the backend secret key, if one is not set, raises an exception.
def mexE(): try: return gCuF.get('backend')['secret_key'] except AttributeError: raise DbMf()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpZ1():\n return nact().get_secret_key()", "def QDug(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'secret_key')", "def G2Fq(YKHO):\n F6y5 = YKHO.secretkey\n if F6y5 is not None:\n return F6y5\n F6y5 = G2Fq()\n if F6y5 is not None:\n return F6y5\n raise E18l('Th...
[ "0.740991", "0.72881347", "0.7180862", "0.7080635", "0.69605947", "0.68877786", "0.6857803", "0.6857803", "0.67391616", "0.6735519", "0.6697383", "0.6656861", "0.6639082", "0.6599269", "0.65581244", "0.6543948", "0.6477433", "0.64675254", "0.6464149", "0.6453989", "0.64080083...
0.82533854
0
Get the variable objects of the entire model. Coupled variables only appear one Returns
def jbKh(YKHO): YKHO._enforce_coupling() rDXN = [] for UXO9 in YKHO.scenarios: if UXO9.group_master: rDXN.extend(UXO9.active_variables()) else: rDXN.extend(UXO9.uncoupled_variables()) for TBsA in YKHO.bodies: if TBsA.group_master: rDXN.extend(T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vars(YKHO):\n return [RELP(YRbF, YKHO.dims[YRbF]) for YRbF in range(YKHO.nvar)]", "def kc1W(C3ST: Model) -> ZLWb[str]:\n assert l5Y5(C3ST)\n return C3ST.keys()", "def kc1W(C3ST: Model) -> ZLWb[str]:\n assert l5Y5(C3ST)\n return C3ST.keys()", "def kc1W(YKHO):\n return {P6bq for P6bq in Y...
[ "0.69809604", "0.67586887", "0.6725519", "0.6493153", "0.64928144", "0.6486224", "0.6468553", "0.64267725", "0.6426089", "0.64059377", "0.6399455", "0.63930416", "0.6377041", "0.6375854", "0.6367982", "0.6366723", "0.636509", "0.6352685", "0.6345068", "0.632137", "0.6320647",...
0.62799186
27
[driver call] Sum the coupled variable derivatives in each group.
def wPus(YKHO): for TBsA in YKHO.bodies: if TBsA.group_master: for h5BT in YKHO.bodies: if TBsA.group == h5BT.group and (not h5BT.group_master): TBsA.add_coupled_derivatives(h5BT) for h5BT in YKHO.bodies: if TBsA.group == h5BT.group...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g_BA(YKHO, ogs3, G1Hx):\n if YKHO.energy_group.is_set:\n eHNT = YKHO.energy_func\n YKHO.jacobian[G1Hx, 0, 0] = YKHO.outl[0].h.val_SI - YKHO.inl[0].h.val_SI\n if not ogs3[0, 1]:\n YKHO.jacobian[G1Hx, 0, 1] = YKHO.numeric_deriv(eHNT, 'p', 0)\n if not ogs3[0, 2]:\n ...
[ "0.6496992", "0.6496992", "0.6372585", "0.61464995", "0.61373943", "0.6133822", "0.60601354", "0.6014248", "0.5947428", "0.58376366", "0.5711516", "0.5655745", "0.56268305", "0.56252724", "0.56044024", "0.55773115", "0.5555578", "0.5519436", "0.5508947", "0.55020934", "0.5497...
0.614615
4
The function that counts amount of stairs that can be build from n cubes. >>> amount_of_stairs(7) 5 >>> amount_of_stairs(9) 8
def kt6M(exwG): SppC = [[0] * exwG for YRbF in range(exwG)] for YRbF in range(0, exwG): for r845 in range(1, YRbF): SppC[YRbF][r845] = sum(SppC[YRbF - r845 - 1][:r845]) SppC[YRbF][YRbF] = 1 return sum(SppC[exwG - 1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ArKc(exwG):\n if exwG < 2:\n return 1\n if exwG == 2:\n return 2\n return ArKc(exwG - 1) + ArKc(exwG - 2)", "def XZGX(YKHO):\n FGW3 = 0\n for YRbF in range(len(YKHO._stools)):\n FGW3 += len(YKHO._stools[YRbF])\n return FGW3", "def _ZZ5(exwG):\n if exwG == 1:\n ...
[ "0.6498105", "0.6472958", "0.632501", "0.62172204", "0.6009327", "0.5802506", "0.5796389", "0.5773984", "0.5763846", "0.5738816", "0.5697463", "0.5604147", "0.55285203", "0.5522436", "0.5449694", "0.54457366", "0.5438354", "0.54047304", "0.53974926", "0.5385177", "0.53755003"...
0.72338855
0
Checks if a file is an allowed extension.
def DVFM(Ux0P: Union[Path, str], CBZq: tuple[str, ...]) -> bool: return Ux0P.lower().endswith(CBZq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YgKf(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in UWr8", "def XT0o(Ux0P, kqN1):\n return '.' in Ux0P and Enu0(Ux0P) in kqN1", "def jxyL(Ux0P, KrOO):\n YBcr = Ux0P.rsplit('.', 1)[1].lower() in KrOO\n return YBcr and '.' in Ux0P", "def jxyL(Ux0P):\n KrOO = Ux0P.rsplit('.', 1)[1]...
[ "0.895309", "0.8786745", "0.8764468", "0.87614024", "0.8612598", "0.8612598", "0.8612598", "0.8612598", "0.8612598", "0.8612598", "0.85909545", "0.85909545", "0.85555506", "0.8541878", "0.8525629", "0.8525629", "0.85190576", "0.85190576", "0.85155004", "0.8498841", "0.8496414...
0.8492449
30
An instance of the PacketOutTriggerActions class.
def RZWX(YKHO): from ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.packetouttriggeractions_gfja2v0t3v0vhjpz2dlckfjdglvbnm import RZWX return RZWX(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CxMQ(YKHO):\n return YKHO._server.update_trigger_outs(YKHO._serial)", "def xASv(YKHO):\n return pgXf(YKHO)", "def xASv(YKHO):\n return xASv.Actions(YKHO)", "def xASv(YKHO) -> bdIy[drOD]:\n return YKHO._actions", "def xASv(YKHO):\n return oyIN.array([r8hN['actions'] for r8hN in YKHO.model...
[ "0.5967217", "0.59590346", "0.5897474", "0.57588875", "0.562812", "0.562463", "0.562463", "0.562463", "0.5525335", "0.54589486", "0.536653", "0.53536224", "0.53213054", "0.5303016", "0.5270425", "0.5269684", "0.5268832", "0.52646893", "0.52313286", "0.5230719", "0.5230719", ...
0.8502182
0
An instance of the TableFeaturesLearnedInformation class.
def gkJs(YKHO): from ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.tablefeatureslearnedinformation_dxjlc0xlyxjuzwrjbmzvcm1hdglvbg import gkJs return gkJs(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FWsU(YKHO):\n from ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.tablestatlearnedinformation_vtdgf0tgvhcm5lzeluzm9ybwf0aw9u import FWsU\n return FWsU(YKHO)", "def EypW(YKHO):\n from ixnetwork_restpy.testplatform.sessions.ixnetwork.vport.protocols.portfeatureslearnedinformation_r1c...
[ "0.75207824", "0.6805895", "0.6543652", "0.65086424", "0.62825716", "0.62164634", "0.61660147", "0.6141782", "0.6028704", "0.6028704", "0.602079", "0.5967823", "0.59301996", "0.587462", "0.58664143", "0.58467", "0.580116", "0.57805187", "0.57760876", "0.57445854", "0.5703335"...
0.85443795
0
Signifies the Transport source address.
def hS9v(YKHO): return YKHO._get_attribute('flowAggregatedStatTransportSource')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cjWZ(YKHO, x7dK):\n YKHO.source.address = x7dK", "def cjWZ(YKHO, x7dK):\n YKHO.source.address = x7dK", "def DCyp(YKHO) -> str:\n return W9Fy.encode_check('account', bytes(YKHO._verify_key)).decode()", "def yWeJ(YKHO, Kh6j):\n try:\n UTX6 = Kh6j.from_address\n x03U = YKHO.address...
[ "0.56791204", "0.56791204", "0.5506528", "0.54140216", "0.5379268", "0.5301819", "0.52535075", "0.523186", "0.52251893", "0.5118141", "0.5118141", "0.5078447", "0.50657755", "0.50494176", "0.50494176", "0.50494176", "0.50494176", "0.50494176", "0.5025921", "0.50249124", "0.49...
0.0
-1
Specifies the IP DSCP value for advertising.
def HtFw(YKHO): return YKHO._get_attribute('flowStatIpDscp')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wk_d(YKHO, Wk_d):\n YKHO._dscp = Wk_d", "def _ueU(YKHO) -> int:\n return qe4Y.get(YKHO, 'ip_dscp')", "def U5dq(YKHO, rUkr, BWXx):\n Ty9i = BWXx\n if rUkr not in YKHO.dGrph:\n print(rUkr, ' does not exist in graph. Value not set.')\n return\n if rUkr in YKHO.dGrph:\n if Y...
[ "0.6484483", "0.55637646", "0.54944223", "0.5494273", "0.5494273", "0.5494273", "0.5490381", "0.5490381", "0.5490381", "0.542548", "0.5362474", "0.5318872", "0.5172366", "0.51169336", "0.5097106", "0.5058167", "0.50461566", "0.50451946", "0.5036664", "0.50323707", "0.5025071"...
0.4716991
61
Specifies the Transport source address.
def vNY9(YKHO): return YKHO._get_attribute('flowStatTransportSource')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bBsv(YKHO, aYjo):\n YKHO._validator.validate_one('source', iyhn['source'], aYjo)\n YKHO._ifAttributes['source'] = aYjo", "def cjWZ(YKHO, x7dK):\n YKHO.source.address = x7dK", "def cjWZ(YKHO, x7dK):\n YKHO.source.address = x7dK", "def xUuB(YKHO, JZXy):\n YKHO.data['source'] = JZXy", "def ...
[ "0.7036338", "0.6684712", "0.6684712", "0.6259917", "0.6154926", "0.6128129", "0.6092474", "0.59848195", "0.5900155", "0.5845694", "0.58325934", "0.5823885", "0.5784185", "0.5784185", "0.5784185", "0.5784185", "0.5784185", "0.5784185", "0.5784185", "0.5760593", "0.57578874", ...
0.0
-1
Specifies the input mode for the Port number.
def C6JL(YKHO): return YKHO._get_attribute('portNumberInputMode')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qn9s(YKHO, Tuqy: InputChannelModeStr | core.QProcess.InputChannelMode):\n YKHO.setInputChannelMode(B3Xm.get_enum_value(Tuqy))", "def Bizu(YKHO):\n return YKHO._get_attribute('queueStatPortNumberInputMode')", "def AZse(YKHO):\n v_pl.setup(YKHO.bcm_id, v_pl.IN, pull_up_down=YKHO.pull)\n YKHO.mode...
[ "0.6767038", "0.65875036", "0.6459351", "0.64409643", "0.6419133", "0.6304073", "0.6254771", "0.6254771", "0.6237", "0.6171674", "0.6125615", "0.61145383", "0.6076672", "0.60720176", "0.6016952", "0.6016952", "0.6016952", "0.5944292", "0.59397984", "0.593963", "0.59181464", ...
0.76803464
0
The bitmap of OFPTC_ values.
def mR4q(YKHO): return YKHO._get_attribute('tableFeatureConfig')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iMGt(YKHO):\n return YKHO.pixels.get_cmap()", "def ejHP(fNrG):\n import numpy as oyIN\n yic8 = []\n for YRbF in range(1 + len(fNrG) // 8):\n UOVU = ''.join(('10'[bool(Fg_i)] for Fg_i in fNrG[YRbF * 8:YRbF * 8 + 8]))\n if len(UOVU) < 8:\n UOVU = UOVU + '0' * (8 - len(UOVU)...
[ "0.5810645", "0.5700761", "0.5665459", "0.5641819", "0.55706537", "0.5497071", "0.54657763", "0.5414189", "0.5404686", "0.53943187", "0.5382167", "0.5365137", "0.5351365", "0.53372", "0.5324567", "0.5279016", "0.51924556", "0.51690865", "0.51597816", "0.5159392", "0.5137598",...
0.0
-1
Indicates the ID of the vendor for which vendor message is triggered.
def GkC5(YKHO): return YKHO._get_attribute('triggeredVendorMessageId')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DYe3(YKHO):\n return YKHO._vendorid", "def vlVh(YKHO):\n return YKHO._vendor_id", "def vlVh(YKHO):\n return YKHO._device.vendor_id", "def EFvs(YKHO):\n return YKHO._get_attribute('vendorId')", "def Emfd(YKHO):\n return YKHO._get_attribute('triggeredVendorMessage')", "def vODt(YKHO):\n ...
[ "0.8108222", "0.80373335", "0.7979808", "0.7954791", "0.74161243", "0.72979033", "0.7136423", "0.6996187", "0.69281113", "0.69009787", "0.68895435", "0.6778201", "0.66585284", "0.6569222", "0.6536528", "0.62903434", "0.62766194", "0.6190926", "0.6179042", "0.6074065", "0.6059...
0.78079027
4
Specifies the unique Vendor identifier.
def EFvs(YKHO): return YKHO._get_attribute('vendorId')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vlVh(YKHO):\n return YKHO._device.vendor_id", "def V3AY(YKHO) -> str:\n return YKHO.properties[XLXo]", "def DYe3(YKHO, DYe3):\n YKHO._vendorid = DYe3", "def DYe3(YKHO):\n return YKHO._vendorid", "def NFqa(YKHO, chXy):\n global vendor_name\n YKHO.vendor_unique_id = YKHO.random_string_g...
[ "0.7277175", "0.726339", "0.7190837", "0.70811135", "0.705163", "0.70468676", "0.7020424", "0.69051844", "0.66860443", "0.6472521", "0.64280957", "0.6265304", "0.6225899", "0.6184756", "0.60359037", "0.6003881", "0.59282756", "0.5881754", "0.57423985", "0.5707649", "0.5702248...
0.7163851
3
Make an iterator with only the distinct elements of the previous.
def UYlD(OxJJ): def z2Uo(GwnW): Frr0 = set() for YRbF in GwnW: if YRbF not in Frr0: Frr0.add(YRbF) yield YRbF return z2Uo(OxJJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R3eT(oHE7):\n jTp2 = set()\n\n def MGwR(WKvO):\n if WKvO in jTp2:\n return False\n else:\n jTp2.add(WKvO)\n return True\n return g9NN(oHE7, MGwR)", "def UYlD(YKHO):\n _p7a = set()\n\n def KyFa(oHE7):\n while True:\n ZfUD = next(o...
[ "0.712984", "0.69498545", "0.63750994", "0.63386154", "0.609624", "0.6035334", "0.60226166", "0.5995098", "0.5937099", "0.5929672", "0.58956736", "0.5890808", "0.5849846", "0.5841922", "0.5789085", "0.5738298", "0.57317764", "0.5730549", "0.57058895", "0.5696055", "0.56783247...
0.6323311
4
Make and iterator of the original iterator without the first n elements
def ReNU(OxJJ, exwG): ewCu = 0 for U6D_ in OxJJ: if ewCu < exwG: ewCu += 1 else: yield U6D_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ReNU(OxJJ, exwG, uOgj=uOgj):\n return uOgj(OxJJ, exwG, None)", "def EdbX(YKHO, exwG):\n return YKHO.__class__(Hs6x.islice(YKHO, exwG, None))", "def X73w(oHE7, exwG):\n for d6pt in range(1, exwG):\n next(oHE7, None)\n return next(oHE7, None)", "def _iMd(OxJJ, exwG):\n return list(Hs6...
[ "0.7343581", "0.70723677", "0.70262074", "0.6894939", "0.6836157", "0.68224984", "0.68224984", "0.6781769", "0.6781769", "0.675287", "0.6728892", "0.67214763", "0.6655382", "0.66458553", "0.66308755", "0.66095483", "0.6544969", "0.6499964", "0.64923674", "0.64555466", "0.6405...
0.7611087
0
Produce the first element in the iterable that satisfies the predicate
def neBz(OxJJ, lgNN, exwG=1): ewCu = 0 for U6D_ in OxJJ: if lgNN(U6D_) and ewCu < exwG: yield U6D_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cntZ(OxJJ: Iterable[T1], lgNN: Callable[[T1], bool]) -> uLKX[W8O1, None]:\n for WKvO in OxJJ:\n if lgNN(WKvO):\n return WKvO\n return None", "def cntZ(vC9B: iter, lgNN):\n for _pUq in vC9B:\n if lgNN(_pUq):\n return _pUq\n raise RuntimeError('Found nothing to m...
[ "0.875641", "0.8685349", "0.8514689", "0.82310855", "0.8127862", "0.7429055", "0.72127527", "0.72125894", "0.7203109", "0.7168477", "0.6947826", "0.6886322", "0.67830545", "0.67830545", "0.6729166", "0.66754663", "0.6649191", "0.6636001", "0.6579417", "0.6546993", "0.6522551"...
0.64534044
25
Make an iterator of elements partitioned by the n
def qDyV(OxJJ, exwG): KzGB = [None for bGrB in range(exwG)] B4Dq = 0 for ZfUD in OxJJ: KzGB[B4Dq] = ZfUD B4Dq += 1 if B4Dq >= exwG: egMm = KzGB[:] KzGB = [None for bGrB in range(exwG)] B4Dq = 0 yield egMm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E0cw(OxJJ, exwG):\n for YRbF in range(0, len(OxJJ), exwG):\n yield OxJJ[YRbF:YRbF + exwG]", "def Z0az(Q6uT, exwG):\n while Q6uT:\n yield Q6uT[:exwG]\n Q6uT = Q6uT[exwG:]", "def XOh9(exwG):\n for jzdc in range(2, exwG // 2 + 1):\n yield (jzdc, exwG - jzdc)", "def Z0az(...
[ "0.7678563", "0.76778716", "0.7611001", "0.7536878", "0.7513408", "0.7480646", "0.74746865", "0.7473927", "0.7455825", "0.7433185", "0.74208385", "0.7334393", "0.7330477", "0.72577804", "0.7255069", "0.7251888", "0.7245996", "0.7244626", "0.7226198", "0.7209792", "0.7200454",...
0.0
-1
Tests whether an iterable is know to have a finite size
def FrNL(OxJJ): return hasattr(OxJJ, '__len__')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(onTE: Union[Sized, Iterable[Any]]) -> bool:\n x52w = getattr(onTE, '__len__', None)\n if x52w is not None and callable(x52w):\n return int(x52w()) == 0\n else:\n WhY1 = iter(YWvJ(iu5r, onTE))\n try:\n next(WhY1)\n except StopIteration:\n return Tr...
[ "0.7063603", "0.7026751", "0.6805391", "0.6724496", "0.6649148", "0.66034913", "0.64612824", "0.64559686", "0.64088696", "0.63896203", "0.6338412", "0.6316985", "0.63134444", "0.62955576", "0.62948525", "0.62808776", "0.62752277", "0.6262199", "0.62331426", "0.6190826", "0.61...
0.8755772
0
Make an iterator that contains the first n elements from the original
def _iMd(OxJJ, exwG): def j6jh(GwnW): for YRbF, tTpl in enumerate(GwnW): if YRbF < exwG: yield tTpl return j6jh(OxJJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iMd(OxJJ, exwG):\n return list(Hs6x.islice(OxJJ, exwG))", "def _iMd(exwG, OxJJ):\n return list(Hs6x.islice(OxJJ, exwG))", "def _iMd(exwG, OxJJ):\n return list(Hs6x.islice(OxJJ, exwG))", "def _iMd(exwG, OxJJ):\n return list(uOgj(OxJJ, exwG))", "def _iMd(exwG, OxJJ):\n return list(uOgj(Ox...
[ "0.7705128", "0.76642597", "0.76642597", "0.76344866", "0.76344866", "0.7370344", "0.73366565", "0.7243548", "0.72425574", "0.72387034", "0.7236423", "0.7179746", "0.7123456", "0.7116049", "0.70677453", "0.7064955", "0.703641", "0.6956968", "0.6947608", "0.6941125", "0.689593...
0.735849
6
Make an iterator that returns the merged values for each key using an associative reduce function.The values contained in this iterable must be 2tuples in the form (k, v).
def dTeQ(OxJJ, qC24, H5ew=_oqe(0), BWXx=_oqe(1)): def aadO(GwnW, qAPF, v2pS, Q4D5): qUWU = dict() for U6D_ in GwnW: G1Hx, Ty9i = (v2pS(U6D_), Q4D5(U6D_)) if G1Hx in qUWU: qUWU[G1Hx] = qAPF(qUWU[G1Hx], Ty9i) else: qUWU[G1Hx] = Ty9i ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BgzH(FVnt, H5ew, hkxX):\n yield (H5ew, FVnt(hkxX))", "def qC24(YKHO, H5ew, hkxX):\n yield (H5ew, _RyS(hkxX))", "def TyMh(YKHO):\n for H5ew in YKHO:\n wEf2 = mZXz(YKHO, H5ew)\n yield (wEf2[0], b', '.join(wEf2[1:]))", "def BVGD(YKHO):\n return iter(((TI8K.key, TI8K.value) for TI8K...
[ "0.67802644", "0.6679581", "0.62577575", "0.6204293", "0.61985016", "0.6137127", "0.6135621", "0.61050326", "0.6038061", "0.6030691", "0.59990436", "0.5938379", "0.59082264", "0.59082264", "0.5900001", "0.58542186", "0.58452874", "0.58110094", "0.57847077", "0.576603", "0.574...
0.64439225
2
Make an iterator that returns elements from the first iterable until it is exhausted, then proceeds to the next iterable, until all of the iterables are exhausted. Used for treating consecutive sequences as a single sequence.
def b65I(OxJJ, *ix7N): return iter(WhY1.chain(OxJJ, *ix7N))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n2fR(oHE7: Iterable[Any]) -> iu5r[ImMB]:\n while True:\n yield from oHE7", "def zW5A(Q6uT):\n while True:\n for ZfUD in Q6uT:\n yield ZfUD", "def v4Ql(Q6uT):\n for YRbF in Q6uT:\n yield YRbF", "def WeXW(OxJJ):\n try:\n cntZ = next(OxJJ)\n except StopI...
[ "0.7216539", "0.6916156", "0.68749154", "0.6867774", "0.6813539", "0.6706356", "0.6577647", "0.6492222", "0.6448965", "0.6371426", "0.6310235", "0.62763745", "0.62645686", "0.62645686", "0.62645686", "0.6256274", "0.6251094", "0.625052", "0.62380314", "0.61965287", "0.6189783...
0.59028757
54
Creates and saves a User with the given username, email and password.
def xWi2(YKHO, NtEF, D3lj, jTXt, WJxI, qMrd, **wdCM): wzkt = rIAI.now() if not NtEF: raise ValueError('The given username must be set') if not D3lj: raise ValueError('The given email must must be set') D3lj = YKHO.normalize_email(D3lj) CBIr = YKHO.model(username=NtEF, email=D3lj, is_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, NtEF, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n if not NtEF:\n raise ValueError('The given username must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, username=str.strip(NtEF), **wdCM)\n CBIr.se...
[ "0.8602561", "0.8470825", "0.8463268", "0.84178436", "0.8414166", "0.8392658", "0.8346436", "0.83459455", "0.83149815", "0.83070403", "0.82893085", "0.82771355", "0.8271227", "0.82580346", "0.82134545", "0.81979746", "0.8176045", "0.81720084", "0.81641585", "0.8163804", "0.81...
0.78602916
66
Checks if the files and directories needed for the project exist.
def AZOW(ckRy=s7e7): if isinstance(ckRy, dict): ckRy = list(ckRy.values()) for pmON in ckRy: if Hy7s.path.exists(pmON): continue if Hy7s.path.isdir(pmON): Hy7s.mkdir(pmON) continue return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OEXM(YKHO):\n pmON = YKHO.base_dir + '/' + YKHO.app_name + '/' + 'build'\n from django_swagger_utils.core.utils.check_path_exists import check_path_exists\n SfyY = check_path_exists(pmON)\n if SfyY:\n raise Exception('Build Directory Already Exist, please run update_specs_build')", "def de...
[ "0.72309875", "0.71987915", "0.7094458", "0.69025993", "0.6883536", "0.6856779", "0.6856779", "0.6856779", "0.6856779", "0.6856779", "0.6856779", "0.6856779", "0.6836048", "0.67974985", "0.67629766", "0.67591685", "0.6753242", "0.6740381", "0.673777", "0.67337126", "0.6713437...
0.0
-1
Return this network in Cytoscape.js format.
def oD7C(YKHO): return G4JS.get(YKHO.__url).json()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return str(YKHO.nodes)", "def u6cd(YKHO):\n return wUDI.to_networkx(G4JS.get(YKHO.__url).json())", "def zAg0(YKHO):\n return 'Network: {0}'.format(YKHO.topology)", "def oD7C(YKHO) -> str:\n return qQXR.dumps(jHsn.node_link_data(YKHO.graph), indent=2)", "def eVVj(YKHO) -> qe4Y....
[ "0.7028872", "0.68952924", "0.6844989", "0.68420476", "0.6764548", "0.66565263", "0.66548514", "0.6609477", "0.6527535", "0.6478864", "0.6472735", "0.6466728", "0.6455989", "0.6455989", "0.64259905", "0.64259905", "0.64259905", "0.6394526", "0.63000244", "0.6268964", "0.62522...
0.0
-1
Get edge table column information as DataFrame
def Dlhs(YKHO): return YKHO.__get_columns('edge')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NRiO(w2B8):\n return pcoD.get_table_into_pandas('target_info', w2B8)", "def H0WS(YKHO):\n ZLJ_ = []\n tyNF = YKHO.__parent_table\n for fvDH in YKHO.__column_list:\n ZLJ_.append(tyNF.table_column(fvDH).title())\n return ZLJ_", "def bOBl(YKHO):\n return YKHO.get_target().dataframe()"...
[ "0.6327146", "0.62038314", "0.59673405", "0.5939877", "0.59303206", "0.59048885", "0.58863497", "0.5860798", "0.5856057", "0.57721335", "0.5762139", "0.57534015", "0.573", "0.5645121", "0.56198794", "0.55803704", "0.55692357", "0.5559671", "0.55586886", "0.5544524", "0.553624...
0.7181354
0
Parse a text stream to TSV If the source is a string, it is converted to a lineiterable stream. If it is a file handle or other object, we assume that we can iterate over the lines in it. The result is a generator, and what it contains depends on whether the second argument is set and what it is set to. If the second a...
def R2Dr(JZXy, h3Xc=list, iihC=True): if isinstance(JZXy, jKi7.string_types): JZXy = jKi7.StringIO(JZXy) usx6 = aoyJ(JZXy, iihC) if LauH(h3Xc): ZLJ_ = h3Xc._fields h3Xc = h3Xc._make else: ZLJ_ = next(usx6, None) if ZLJ_ is not None: YRbF, ZLJ_ = ZLJ_ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B34Y(usx6, LJE9='\\n'):\n lCYO = None\n for rdlD in usx6:\n MOPg = []\n V_D6 = []\n for WBPg, BWXx in rdlD.items():\n if lCYO is None:\n MOPg.append(WBPg)\n if not isinstance(BWXx, exCv):\n BWXx = str(BWXx)\n V_D6.append(...
[ "0.5944113", "0.57947356", "0.55084944", "0.5427973", "0.54033643", "0.53251314", "0.5262656", "0.52109015", "0.5161971", "0.5116362", "0.5105722", "0.5048277", "0.5020609", "0.50056183", "0.50056183", "0.5003528", "0.4985776", "0.49713722", "0.49690014", "0.49604994", "0.495...
0.5119908
9
Generates Random UPPERCASE names for the satellite taken from
def Gje8(zNig=8, gLiZ=vIwR.ascii_uppercase + vIwR.digits): return ''.join((tuKI.choice(gLiZ) for bGrB in range(zNig)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gje8():\n qMKQ = ['Albrecht', 'Lysa', 'Yvette', 'Jésus', 'Amanitus']\n Ii5V = ['Andersson', 'Natt och Dag', 'av Pommern', 'Krusmynta']\n tuKI.seed()\n cntZ = qMKQ[tuKI.randint(0, len(qMKQ) - 1)]\n XVAW = Ii5V[tuKI.randint(0, len(Ii5V) - 1)]\n mWFP = cntZ + ' ' + XVAW\n return mWFP", "def...
[ "0.7327721", "0.707392", "0.6974958", "0.68869686", "0.67731446", "0.6770719", "0.6593898", "0.6561983", "0.65487593", "0.6532856", "0.6501004", "0.6475828", "0.6474855", "0.6464203", "0.64436793", "0.64298314", "0.64131874", "0.63714904", "0.6359181", "0.63221407", "0.631780...
0.6477153
11
Set the name of the satellite
def WZrJ(mWFP=False): if not mWFP: mWFP = Gje8() return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZLCi(YKHO):\n if 'MYD' in YKHO.in_file:\n YKHO.satellite = 'AQUA'\n elif 'MOD' in YKHO.in_file:\n YKHO.satellite = 'TERRA'\n else:\n raise ValueError('Cant get the satellite name from file name.')", "def WZrJ(YKHO, mWFP):\n YKHO.settings['name'] = mWFP", "async def set_name...
[ "0.73487014", "0.698678", "0.68256956", "0.67233664", "0.67033076", "0.66748214", "0.66487384", "0.65940905", "0.6588379", "0.6588379", "0.6588379", "0.6588379", "0.6564524", "0.65587306", "0.65587306", "0.65587306", "0.65587306", "0.65587306", "0.65565455", "0.6539961", "0.6...
0.0
-1
Called after self._add_event_detect. Apply event callback for channels registered in the class instance. Each callback is unique to the GPIO channel.
def z16K(YKHO): for JnCU in YKHO.registered_gpio: YKHO.gpio_add_event_callback(JnCU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LPFe(YKHO):\n for JnCU in YKHO.registered_gpio:\n YKHO.gpio_add_event_detect(JnCU, bouncetime=300)", "def r3zR(YKHO):\n YKHO.either_edge_cb = YKHO.pi.callback(YKHO.gpio, _NSU.EITHER_EDGE, YKHO.either_edge_callback)", "def rE_f(YKHO, db6b):\n xi8C.remove_event_detect(YKHO.channel)\n if db...
[ "0.67375094", "0.64251214", "0.62030655", "0.61408705", "0.59544384", "0.5858522", "0.58123916", "0.57710665", "0.5765734", "0.5745426", "0.57290393", "0.56938887", "0.5681292", "0.56422", "0.5623273", "0.56046975", "0.5547447", "0.5528487", "0.54450613", "0.54438585", "0.542...
0.77328724
0
Verify that map view returns status 200 (ok) after get request to map url.
def Qywj(YKHO): YKHO.assertEqual(YKHO.response.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vof7(YKHO):\n geh0 = YKHO.client.get(YKHO.get_url())\n YKHO.assertEqual(geh0.status_code, 200)", "def Vof7(YKHO):\n geh0 = YKHO.client.get(YKHO.get_url())\n YKHO.assertEqual(geh0.status_code, 200)", "def Vof7(YKHO):\n geh0 = YKHO.client.get(YKHO.get_url())\n YKHO.assertEqual(geh0.status_c...
[ "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "0.7622898", "...
0.84819865
0
Verify that get_first_and_last_datetime_of_update_data method returns first and last objects datetime.
def oWLU(YKHO, fSYH): tikX = qcWV(2017, 6, 1, 14, 56, 18) M5eb = qcWV(2017, 7, 2, 23, 12, 8) fSYH.return_value = {'data_created_datetime__min': tikX, 'data_created_datetime__max': M5eb} Aofo = O4LL() YKHO.assertEqual((tikX, M5eb), Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mZQ2(YKHO):\n _c1T = KcDH()\n FFIK = _c1T.updated_at\n gKC3 = qcWV.now()", "def dysE(YKHO):\n from sosbeacon.utils import get_latest_datetime\n yLHq = RKYb = qcWV(2012, 9, 20, 2, 59)\n Aofo = get_latest_datetime(yLHq, RKYb)\n YKHO.assertIs(RKYb, Aofo)\n YKHO.assertIs(yLHq, Aofo)", "...
[ "0.6844397", "0.65602547", "0.65533274", "0.64703345", "0.6449467", "0.6254372", "0.6254372", "0.6254372", "0.62263596", "0.6198185", "0.6051665", "0.60414016", "0.6024587", "0.60034823", "0.59716654", "0.59531987", "0.5919156", "0.5915776", "0.59010535", "0.58577", "0.583256...
0.6655227
1
Verify that get_first_and_last_datetime_of_update_data method returns `datetime.now` if no objects.
def oU2j(YKHO, ZDGC, fSYH): CcfH = b6VD = qcWV(2017, 7, 2, 23, 12, 8) ZDGC.now.return_value = CcfH fSYH.return_value = {'data_created_datetime__min': None, 'data_created_datetime__max': None} Aofo = O4LL() YKHO.assertEqual((CcfH, b6VD), Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mZQ2(YKHO):\n _c1T = KcDH()\n FFIK = _c1T.updated_at\n gKC3 = qcWV.now()", "def oWLU(YKHO, fSYH):\n tikX = qcWV(2017, 6, 1, 14, 56, 18)\n M5eb = qcWV(2017, 7, 2, 23, 12, 8)\n fSYH.return_value = {'data_created_datetime__min': tikX, 'data_created_datetime__max': M5eb}\n Aofo = O4LL()\n ...
[ "0.681882", "0.66625893", "0.65170926", "0.6390524", "0.6378512", "0.6307116", "0.6307116", "0.6307116", "0.6199195", "0.6189714", "0.6157081", "0.61567795", "0.61407083", "0.6103742", "0.6068989", "0.6030908", "0.5982087", "0.59638274", "0.5962616", "0.5932534", "0.5903678",...
0.6892485
0
Verify that graphs view returns status 200 (ok) after get request to graphs url.
def gGoN(YKHO): YKHO.assertEqual(YKHO.response.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vof7(YKHO):\n geh0 = YKHO.client.get(YKHO.get_url())\n YKHO.assertEqual(geh0.status_code, 200)", "def Vof7(YKHO):\n geh0 = YKHO.client.get(YKHO.get_url())\n YKHO.assertEqual(geh0.status_code, 200)", "def Vof7(YKHO):\n geh0 = YKHO.client.get(YKHO.get_url())\n YKHO.assertEqual(geh0.status_c...
[ "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866", "0.75006866"...
0.8339215
0
Verify that graphs view uses correct htmltemplate after get request to graphs url.
def FZ7x(YKHO): YKHO.assertTemplateUsed(YKHO.response, 'charts/graphs.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Se4t(YKHO):\n MC83 = YKHO.client.login(username='test_user1', password='test_user1_test')\n geh0 = YKHO.client.get(gxEw('search:all_charts'))\n YKHO.assertEqual(geh0.context['user'].username, 'test_user1')\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'search/savedcha...
[ "0.66038966", "0.6581853", "0.6515921", "0.64633584", "0.64621556", "0.63226765", "0.6307232", "0.62546587", "0.6245686", "0.62181187", "0.6206271", "0.61565185", "0.6127607", "0.6086524", "0.6086524", "0.6042333", "0.6007158", "0.5948066", "0.5947409", "0.59262556", "0.58723...
0.811668
0
Given a board_state, return which positions are empty
def Bbdp(HSQX): aqea = ['1', '2', '3', '4', '5', '6', '7', '8', '9'] for YRbF in range(0, 9): if HSQX[YRbF] != ' ': aqea.remove(str(YRbF + 1)) return aqea
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a0dL(YKHO, QTBn):\n for YRbF in range(3):\n for r845 in range(3):\n if QTBn[YRbF][r845] == 0:\n return (YRbF, r845)", "def gfID(QTBn):\n JnVq = []\n for begg, rdlD in enumerate(QTBn.board):\n for TMa9, VmPb in enumerate(rdlD):\n if VmPb == 0:\n ...
[ "0.7847441", "0.7761535", "0.7732985", "0.7570854", "0.7416806", "0.7392229", "0.72894406", "0.7058619", "0.70533353", "0.7004213", "0.6910325", "0.6903279", "0.6900608", "0.6872458", "0.6862784", "0.68594456", "0.68568677", "0.68026525", "0.67946136", "0.6787461", "0.6746235...
0.6479922
45
Sets the request_id of this TokenizeRequestSchema.
def gTi_(YKHO, gTi_): YKHO._request_id = gTi_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KtqQ(YKHO, BzF9):\n YKHO.request_id = BzF9", "def Fm1l(YKHO, Fm1l):\n YKHO._x_request_id = Fm1l", "def hFeL(YKHO, hFeL):\n if YKHO.local_vars_configuration.client_side_validation and hFeL is None:\n raise ValueError('Invalid value for `token_requestor_id`, must not be `None`')\n YKHO._to...
[ "0.73498404", "0.6620742", "0.6048909", "0.56540567", "0.55922943", "0.5573893", "0.54666466", "0.53656846", "0.5259798", "0.5194064", "0.51352465", "0.5127068", "0.50855887", "0.5034557", "0.5018912", "0.50164056", "0.50096655", "0.49917254", "0.49917254", "0.49917254", "0.4...
0.76198393
1
Sets the token_type of this TokenizeRequestSchema.
def sOU6(YKHO, sOU6): if YKHO.local_vars_configuration.client_side_validation and sOU6 is None: raise ValueError('Invalid value for `token_type`, must not be `None`') YKHO._token_type = sOU6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sOU6(YKHO, sOU6: str):\n if sOU6 is None:\n raise ValueError('Invalid value for `token_type`, must not be `None`')\n YKHO._token_type = sOU6", "def sOU6(YKHO, sOU6: str):\n if sOU6 is None:\n raise ValueError('Invalid value for `token_type`, must not be `None`')\n YKHO._token_type =...
[ "0.80330044", "0.80330044", "0.7013236", "0.64766717", "0.63912064", "0.63912064", "0.6076267", "0.6076267", "0.56238824", "0.56220764", "0.56220764", "0.55687374", "0.55546194", "0.55546194", "0.5423428", "0.5369772", "0.5310111", "0.5285315", "0.5270757", "0.5264764", "0.52...
0.77934474
2
Sets the token_requestor_id of this TokenizeRequestSchema.
def hFeL(YKHO, hFeL): if YKHO.local_vars_configuration.client_side_validation and hFeL is None: raise ValueError('Invalid value for `token_requestor_id`, must not be `None`') YKHO._token_requestor_id = hFeL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gTi_(YKHO, gTi_):\n YKHO._request_id = gTi_", "def gTi_(YKHO, gTi_):\n YKHO._request_id = gTi_", "def gTi_(YKHO, gTi_):\n YKHO._request_id = gTi_", "def gCC0(YKHO, gCC0):\n YKHO._thread_originator_id = gCC0", "def mhv2(YKHO, mhv2):\n YKHO._token_id_from = mhv2", "def KtqQ(YKHO, BzF9):\...
[ "0.5755886", "0.5755886", "0.5755886", "0.5726782", "0.5670085", "0.5610082", "0.55606", "0.5514039", "0.5169761", "0.50821924", "0.505953", "0.50458366", "0.5025752", "0.49358973", "0.48991376", "0.4864697", "0.4864149", "0.48001945", "0.4797444", "0.47611874", "0.4728667", ...
0.8351506
0
Sets the funding_account_info of this TokenizeRequestSchema.
def E6TK(YKHO, E6TK): if YKHO.local_vars_configuration.client_side_validation and E6TK is None: raise ValueError('Invalid value for `funding_account_info`, must not be `None`') YKHO._funding_account_info = E6TK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FTpm(YKHO, FTpm):\n YKHO._funding_account_account_number = FTpm", "def OnKS(YKHO, OnKS):\n YKHO._funding_account_account_name = OnKS", "def VhPY(YKHO, VhPY):\n YKHO._account_look_up_info = VhPY", "def KAXf(YKHO, KAXf):\n YKHO._billing_info = KAXf", "def XIlI(YKHO, XIlI):\n YKHO._token_in...
[ "0.65112096", "0.6323324", "0.5809116", "0.5666299", "0.54330826", "0.5425872", "0.5405871", "0.53462505", "0.53286564", "0.5328155", "0.5300253", "0.5275839", "0.5261788", "0.5261788", "0.5261788", "0.5261788", "0.5182563", "0.5182563", "0.51349175", "0.50428694", "0.5026704...
0.785599
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, ws_S): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, ws_S): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.84560555", "0.83913696", "0.8143685", "0.81403786", "0.8131871", "0.8093231", "0.80915105", "0.80915105", "0.80915105", "0.8084564", "0.8084564", "0.8075547", "0.8075547", "0.8065006", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.80417657", "0.8...
0.0
-1
Return OrderedSet with names of data variables that are compatible with data variable variable_name. If variable variable_name is a spatial data variable, compatible variables are those data variables that are not spatial or that are spatial and share the same spatial dimensions. If variable variable_name is not a spat...
def XlrT(YKHO, M_u8): Aofo = PEil.ordered_set.OrderedSet() BhLl = YKHO.data_variable_names() assert M_u8 in BhLl, M_u8 if not YKHO.is_spatial_variable(M_u8): Aofo = BhLl else: _X9u = YKHO.space_dimension_names(M_u8) for jqxm in BhLl: if not YKHO.is_spatial_variabl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kc1W(YKHO):\n J77J = [mWFP for bGrB, (mWFP, a1PO) in YKHO._variable_info.iteritems() if a1PO == 'variable']\n tgED = [Ty9i for Ty9i in nMvt.get_all_variables() if Ty9i.name in J77J]\n cRc2 = [YKHO.get_variable(mWFP) for mWFP, (U34r, a1PO) in YKHO._variable_info.iteritems() if a1PO == 'tensor']\n cR...
[ "0.5893307", "0.58347607", "0.5765724", "0.57477033", "0.572593", "0.5720542", "0.5705743", "0.5680977", "0.55414075", "0.5536672", "0.55209094", "0.55151117", "0.5497452", "0.5466993", "0.53826064", "0.5338747", "0.5327425", "0.52686435", "0.52678", "0.5201096", "0.5174992",...
0.87011254
0
Creates a card with the given rank and face down.
def FIMM(YKHO, fdMZ, iCfd): YKHO.rank = fdMZ YKHO.suit = iCfd YKHO.face = 'down' YKHO.fileName = 'D:/CSC-131/DECK/' + str(fdMZ) + str(iCfd) + '.gif'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gcn7(fdMZ, iCfd):\n pass", "def FIMM(YKHO, fdMZ):\n YKHO.rank = fdMZ\n YKHO.face = 'down'", "def FIMM(YKHO, fdMZ='', iCfd=''):\n YKHO.suit = iCfd\n YKHO.rank = fdMZ\n YKHO.face_up = False", "def fDuL():\n nf_0 = []\n y_PJ = [2, 3, 4, 5, 6, 7, 8, 9, 10, 'Jack', 'Queen', 'King', 'Ac...
[ "0.7095335", "0.63684714", "0.6309469", "0.62574476", "0.60994494", "0.6016408", "0.6013961", "0.5972459", "0.5773373", "0.5771672", "0.5769164", "0.5754624", "0.5690354", "0.56862485", "0.5660643", "0.55733377", "0.55711347", "0.555589", "0.5550198", "0.5522343", "0.5517482"...
0.5205305
43
Returns the string representation of a deck.
def zAg0(YKHO): Aofo = '' for Z9rn in YKHO._cards: Aofo = Aofo + str(Z9rn) + '\n' return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SAR3(YKHO):\n nf_0 = QHsX(YKHO.get_cards())\n return nf_0.as_string()", "def zAg0(YKHO):\n vIwR = 'Deck contains '\n for YRbF in range(len(YKHO.deck)):\n vIwR += str(YKHO.deck[YRbF].get_suit()) + str(YKHO.deck[YRbF].get_rank()) + ' '\n return vIwR", "def zAg0(YKHO):\n hlel = 'Deck ...
[ "0.8333217", "0.8268616", "0.8213674", "0.7972169", "0.7950319", "0.7931906", "0.79195374", "0.7855504", "0.7601301", "0.75710964", "0.74562913", "0.73240936", "0.73237187", "0.732187", "0.72841036", "0.72491306", "0.7195142", "0.7109588", "0.7040223", "0.6987197", "0.6957928...
0.7212482
16
Returns an array of xoffsets. Each value in the array is the x position of a pixel instance defined in the PixelGrid.
def HWTg(Cs6h: PixelGrid) -> uLKX[oyIN.ndarray, float]: if Cs6h.gap_every_columns > 0: tEve = Cs6h.columns * Cs6h.col_width + (Cs6h.columns - 1) // Cs6h.gap_every_columns * Cs6h.column_gap_width else: tEve = Cs6h.columns * Cs6h.col_width yKcO = -tEve / 2 + Cs6h.col_width / 2 gQVb = oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pDX4(YKHO):\n W8qs = [oyIN.random.randint(low=0, high=YKHO.total_windows - YKHO.buffer_needed) for bGrB in range(YKHO.total_points)]\n return oyIN.array(W8qs)", "def K2Fi(*qIxc, **B2fa):\n return nAU3.NativePixelData_Accessor_OffsetX(*qIxc, **B2fa)", "def b9Sl(YKHO):\n ZPkg = YKHO.corner_grid.x...
[ "0.6918548", "0.654743", "0.6515938", "0.6497255", "0.6425341", "0.64216954", "0.6294858", "0.62887293", "0.62520087", "0.62445563", "0.62286615", "0.6189061", "0.6153028", "0.6131424", "0.6128472", "0.61228925", "0.6082386", "0.6079995", "0.6055966", "0.6048606", "0.6048606"...
0.78270084
0
Create the application, registers blueprints and extensions, and returns it.
def LUif(GPtr='dev'): Sbbm = {'dev': Yv3P, 'test': LV7V}[GPtr] P4t4 = L2w0(__name__) P4t4.config.from_object(Sbbm) if P4t4.config.get('PROFILE'): from werkzeug.contrib.profiler import ProfilerMiddleware P4t4.wsgi_app = ProfilerMiddleware(P4t4.wsgi_app, restrictions=[30]) X0ru(P4t4) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P4t4():\n return LUif()", "def P4t4():\n P4t4 = LUif()\n return P4t4", "def LUif():\n P4t4 = L2w0(__name__, instance_relative_config=False)\n P4t4.config.from_object('config.Config')\n OHct = sSY8(P4t4)\n with P4t4.app_context():\n from . import routes\n return P4t4", "...
[ "0.8189471", "0.8152559", "0.7991859", "0.7977983", "0.7760573", "0.7690337", "0.76827323", "0.7681575", "0.7656166", "0.76512545", "0.7632496", "0.75735", "0.7560233", "0.7514638", "0.7503362", "0.7497067", "0.74948543", "0.74687636", "0.7463896", "0.7453019", "0.74473095", ...
0.7132426
48
Get Empty function config.
def lTl8(): U5bT = {} U5bT[peBr.function] = [] U5bT[peBr.inputs] = [] U5bT[peBr.expect] = [] return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr(YKHO):\n return None", "def GPtr(YKHO, m2Zb):\n YKHO.cfgs.append(Af4P(m2Zb))\n return YKHO.cfgs[-1]", "def oFcE(YKHO):\n return YKHO.configAll(False)", "def DmYA(YKHO):\n return ()", "def mOpa():\n return KupS.clone()", "def TOt9(YKHO):\n uB5P = {H5ew: YKHO.function_config[H...
[ "0.5951805", "0.59515333", "0.59462583", "0.59119135", "0.58918387", "0.5867156", "0.5847659", "0.57957315", "0.5753244", "0.5742711", "0.5727392", "0.5712172", "0.570951", "0.56892467", "0.5688181", "0.5688181", "0.56732297", "0.5673223", "0.56701404", "0.56701404", "0.56525...
0.0
-1
Get the GeoDataFrame CRS.
def ucxv(YKHO): return YKHO.dataframe.crs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tvv2(YKHO) -> quUU.GeoDataFrame:\n return YKHO.just_geometry_gdf.join(YKHO.df)", "def ucxv(YKHO):\n return YKHO._crs", "def GqBw(BLg0):\n if not isinstance(BLg0, SsVK.geodataframe.GeoDataFrame):\n BLg0 = SsVK.read_file(BLg0)\n return BLg0.crs['init'][5:]", "def UiT6(YKHO) -> MtDC.CRS:\...
[ "0.6566438", "0.6419426", "0.6336395", "0.63172936", "0.6312406", "0.6305759", "0.61883086", "0.61677456", "0.5923359", "0.5826093", "0.5802992", "0.5792684", "0.57650685", "0.5762439", "0.5734245", "0.5690498", "0.568912", "0.5651842", "0.5639576", "0.561977", "0.55920565", ...
0.7056332
0
Get the maximum quadrant length.
def Bq4j(YKHO): return YKHO.qy_len if YKHO.min_qside == 'x' else YKHO.qx_len
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n return float(oyIN.max([YKHO.width(), YKHO.height()]))", "def T2bq(YKHO):\n return 4 * oyIN.pi * oyIN.sin(YKHO.two_theta_max() * Y_1E / 2) / YKHO.wavelength", "def dTSz(YKHO):\n GyLV = 0\n for rdlD in YKHO._value:\n for ZfUD in rdlD:\n if type(ZfUD) == type(float(...
[ "0.6771864", "0.6669108", "0.6642492", "0.662019", "0.65605235", "0.6408936", "0.64052385", "0.6396603", "0.63908577", "0.63589996", "0.63525677", "0.63278747", "0.6325065", "0.62992054", "0.6297609", "0.6275307", "0.62622637", "0.6251574", "0.62482846", "0.6241698", "0.62239...
0.7324198
0
Splits a tree into quadrants. 1 | 3 | 0 | 2
def lpha(YKHO, knl1=0): VvzA = [] b4xd = [] YKHO.contains_null = False for H7g6, gmTb in enumerate(YKHO.tree): LFlW, es2x, _tIi, tlxW = gmTb.bounds KQji = LFlW + (_tIi - LFlW) / 2.0 Wjb0 = tlxW - (tlxW - es2x) / 2.0 jHVP = YKHO.tree_ids[H7g6] for hbFX, cviu in zip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(tk5Y, LK6z, WLtg, r4yN, zHED):\n LFlW, _tIi = tk5Y['branches']\n del tk5Y['branches']\n if not len(LFlW):\n tk5Y['left'] = tk5Y['right'] = EU6e(_tIi)\n return\n elif not len(_tIi):\n tk5Y['left'] = tk5Y['right'] = EU6e(LFlW)\n return\n if zHED >= WLtg:\n t...
[ "0.6583471", "0.64418817", "0.6355388", "0.6193927", "0.6182106", "0.61574066", "0.6064047", "0.6007731", "0.5979361", "0.59219855", "0.5844368", "0.58430094", "0.57728237", "0.5758766", "0.5697045", "0.5685386", "0.5668723", "0.5633028", "0.5617432", "0.5613467", "0.5601344"...
0.59322256
9
Set the timezone for the guild
async def _timezone(YKHO, OaeV: commands.Context, yl4j: str=None): YKHO.check_if_exist(OaeV.guild) YKHO.daily_guilds[str(OaeV.guild.id)]['tz'] = yl4j YKHO.daily_info.update('guilds', YKHO.daily_guilds) await OaeV.reply('New daily timezone is {0}'.format(yl4j))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hjWI(YKHO, Q6kx, rIAI):\n aqR5 = {'timezone': str(rIAI)}\n nPrm = YKHO.connect('put', 'nodes/%s/time' % Q6kx, aqR5)\n return nPrm", "def D1G8(w2B8, rIAI):\n with L2Qu(w2B8) as Z9rn:\n Z9rn.execute('SET timezone = %s', (rIAI,))", "def rIAI():\n pass", "def zMpd(YKHO, I1mm):\n try:...
[ "0.65474457", "0.65401435", "0.6457082", "0.62095654", "0.6106381", "0.60420215", "0.60392404", "0.59839654", "0.59594226", "0.59594226", "0.59327596", "0.59327596", "0.59327596", "0.59327596", "0.59327596", "0.5905557", "0.5778015", "0.5736061", "0.5726324", "0.5638293", "0....
0.7884588
0
Call 'func' on each item in 'iterable'.
def BL2I(JfyU, OxJJ): for WKvO in OxJJ: JfyU(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def map(OxJJ, m2Zb):\n for WKvO in OxJJ:\n yield m2Zb(WKvO)", "def BlB8(OxJJ, m2Zb):\n\n def qUvT(GwnW):\n for ZfUD in GwnW:\n m2Zb(ZfUD)\n yield ZfUD\n return qUvT(OxJJ)", "def map(m2Zb, OxJJ):\n return [m2Zb(WKvO) for WKvO in OxJJ]", "def mAB6(YKHO, JfyU):\n ...
[ "0.7166672", "0.71502095", "0.6984798", "0.6834976", "0.65874875", "0.65806806", "0.65209717", "0.6227549", "0.6213204", "0.61754006", "0.6128727", "0.6104333", "0.60436624", "0.6041439", "0.6031788", "0.6030694", "0.5927013", "0.5923421", "0.5912032", "0.59004873", "0.589778...
0.7998205
0
Simply returns the number of entries (left) in the given iterable.
def UHFx(OxJJ): return sum((1 for bGrB in OxJJ))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r9Hf(OxJJ):\n return len(OxJJ) if OxJJ is not None else 0", "def UHFx(OxJJ: Iterable) -> int:\n return sum((1 for WKvO in OxJJ))", "def UHFx(OxJJ):\n return sum((1 for bGrB in OxJJ))", "def zNig(OxJJ):\n try:\n return OxJJ.__len__()\n except AttributeError:\n return None", ...
[ "0.7319926", "0.71874005", "0.7136388", "0.7017185", "0.6975545", "0.64892286", "0.6130235", "0.6115067", "0.6085461", "0.59828246", "0.5972138", "0.59679675", "0.5951258", "0.5911455", "0.58182657", "0.5777934", "0.5767184", "0.5761598", "0.5753736", "0.5741467", "0.57409734...
0.74642205
0
Return the last item of an iterable or 'default' if there's none.
def XVAW(OxJJ, *WmM4): assert len(WmM4) <= 1 OxJJ = iter(OxJJ) try: WKvO = next(OxJJ) except StopIteration: if WmM4: return WmM4[0] raise for WKvO in OxJJ: pass return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XVAW(oHE7):\n ZfUD = None\n for ZfUD in oHE7:\n pass\n return ZfUD", "def XVAW(OxJJ):\n WhY1 = iter(OxJJ)\n ZfUD = next(WhY1)\n for ZfUD in WhY1:\n pass\n return ZfUD", "def XVAW(OxJJ):\n Csk6 = MUE7(OxJJ, maxlen=1)\n try:\n return Csk6.pop()\n except Inde...
[ "0.75964594", "0.7564683", "0.75622606", "0.7543977", "0.7075122", "0.67438215", "0.66316557", "0.6368011", "0.6286694", "0.6271557", "0.6193984", "0.6191005", "0.61890703", "0.61284655", "0.6064187", "0.60277647", "0.59869605", "0.5980858", "0.595729", "0.5913434", "0.591174...
0.8993513
0
Return a Pandas dataframe with the data for this table
def bOBl(YKHO): return YKHO.get_target().dataframe()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gRzA(YKHO):\n return hxoQ(YKHO.table)", "def o4pG(YKHO) -> rLdf.DataFrame:\n return rLdf.DataFrame(YKHO.fetchall(), columns=YKHO.headers())", "def bOBl(YKHO):\n if not YKHO.all_records:\n print('No rows cached.')\n return\n YDX_ = [rdlD.as_dict() for rdlD in YKHO.all_records]\n ...
[ "0.8454383", "0.8314705", "0.8160777", "0.79148126", "0.78738374", "0.7871999", "0.7859952", "0.784017", "0.7792931", "0.7779588", "0.7775638", "0.77650785", "0.7675365", "0.7675365", "0.7675365", "0.7675365", "0.7675365", "0.7666086", "0.7647487", "0.76207113", "0.7606968", ...
0.73193055
31
Returns the geographic extent of the project as geojson.
def H7Ox(YKHO, bNKA): if bNKA.geographic_extent is not None: return qQXR.loads(bNKA.geographic_extent.json) else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cxRJ(YKHO):\n return YKHO.series_extent", "def xx9t(YKHO):\n mfa9 = L5ex.float_ref()\n ecXC = L5ex.float_ref()\n Wydc = L5ex.float_ref()\n siRe = L5ex.float_ref()\n GeJu = L5ex.float_ref()\n qJBp = L5ex.float_ref()\n YKHO.gxvox.get_area(mfa9, ecXC, Wydc, siRe, GeJu, qJBp)\n if YKHO...
[ "0.6902008", "0.6667629", "0.6542314", "0.651294", "0.6448455", "0.6448455", "0.6448455", "0.64271414", "0.6373081", "0.63291425", "0.6254535", "0.6215859", "0.6171476", "0.6167112", "0.6167112", "0.61101866", "0.60702485", "0.6042508", "0.5979499", "0.5972277", "0.59689075",...
0.8332281
0
Method for SerializerMethodField `num_observations`. Returns the overall number of observations contributed to the project.
def Qpsk(YKHO, bNKA): return bNKA.observations.exclude(status='draft').exclude(status='pending').count()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YJ1v(YKHO):\n return YKHO._s_obs", "def VxtJ(YKHO):\n if not YKHO.can_update():\n YKHO._handle_error(910, [YKHO.type])\n return YKHO.tc_requests.observation_count(YKHO.api_type, YKHO.api_branch, YKHO.unique_id, owner=YKHO.owner)", "def L8bW(YKHO):\n return len(YKHO.datelist)", "def a2D...
[ "0.6473792", "0.62188417", "0.59300524", "0.5904186", "0.5695756", "0.5684433", "0.56251985", "0.5623508", "0.55709887", "0.55505437", "0.5517805", "0.54952973", "0.54730725", "0.5469481", "0.54521984", "0.5423298", "0.538021", "0.53452367", "0.53356785", "0.53244096", "0.531...
0.6916351
0
Get an existing IoMAMPolicyByName resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'IoMAMPolicyByName': VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id)) r6DL = dict() r6DL['access_recheck_offline_timeout'] = None r6DL['access_recheck_online_timeout'] = None r6DL['app_shar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, ajCK: Optional[pulumi.Input[str]]=None, xtX7: Optional[pulumi.Input[str]]=None, DXuJ: Optional[pulumi.Input[str]]=None) -> 'IAMPolicy':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = LOP7....
[ "0.6428517", "0.5867557", "0.57824975", "0.5579071", "0.5445415", "0.5402389", "0.5319058", "0.5314378", "0.5306884", "0.5192482", "0.50869536", "0.5049483", "0.5044871", "0.5044871", "0.49563617", "0.49190697", "0.48722032", "0.4810996", "0.4808218", "0.48007855", "0.4778619...
0.75251055
0
Creates ComSpec object based on generic keyvalue settings from a dictionary.
def cnyc(YKHO, VTcd, l3le, UPu2): YKHO._validate_com_spec_keys_against_port_interface(UPu2, l3le) if isinstance(l3le, ntS6.portinterface.SenderReceiverInterface): IDkJ = None Q2Zf = None RSIe = None vmYR = None IrIn = 0 aSZ5 = None f_mP = False if isinstan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(dict):\n return dnyn(**dict)", "def CSrd(Emd4, NArs):\n xAU6 = Emd4({})\n ySAX = xAU6.__dict__\n for H5ew, wEf2 in ySAX.items():\n xAU6.__dict__[H5ew] = NArs.get(H5ew, wEf2)\n return xAU6", "def jG8h(Emd4, g2aH):\n return Emd4(g2aH.get('tag_type'), g2aH.get('value'))", "def ...
[ "0.6055727", "0.5826158", "0.5595303", "0.5569334", "0.5539644", "0.55225486", "0.55225486", "0.5458269", "0.5419622", "0.5414873", "0.53930664", "0.5370344", "0.5366786", "0.53523934", "0.53351355", "0.53228956", "0.528916", "0.52839875", "0.52444184", "0.52425486", "0.52384...
0.5295914
16
Return the name of the Task.
def mWFP(YKHO) -> str: return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VsgD(YKHO) -> str:\n return YKHO._task_name", "def VsgD(YKHO):\n pass", "def vIK_(YKHO):\n return YKHO._taskName", "def D5gV(YKHO) -> str:\n return YKHO._task", "def TkUS(Emd4, D5gV):\n if not D5gV:\n return None\n return '//' + Emd4.TaskRelativeName(D5gV)", "def BK83(YKHO):\...
[ "0.92163503", "0.91201246", "0.8945559", "0.8117824", "0.8086446", "0.7937094", "0.77616125", "0.76558375", "0.7628284", "0.758033", "0.7551472", "0.7477411", "0.73992556", "0.7316304", "0.7296364", "0.7281387", "0.7281387", "0.7255314", "0.7195708", "0.71620613", "0.70829296...
0.0
-1
Return the list of ActionTemplates that compose the Task.
def BxVJ(YKHO) -> x1iM[Zr_a]: return YKHO._action_templates
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3fW(YKHO):\n from .task_template import TaskTemplate\n return [TaskTemplate.load(byJc) for byJc in YKHO.task_template_ids]", "def aWoe(YKHO):\n return YKHO._get('task_templates')", "def Q6sW(YKHO):\n return []", "def eqLF(YKHO):\n return YKHO.actions", "def D69y():\n return CQQz", ...
[ "0.6737043", "0.63033897", "0.62612194", "0.61882806", "0.6166203", "0.6124521", "0.60509527", "0.60289854", "0.59311414", "0.5930836", "0.5891498", "0.5889099", "0.58194256", "0.57941437", "0.5780824", "0.5780824", "0.5778392", "0.57731456", "0.57659805", "0.5749439", "0.572...
0.79610664
0
See docs of torch.nn.Conv3d
def Gzng(qw7D: np.ndarray) -> oyIN.ndarray: ROpF = (xwpV['batch'], xwpV['channels'], xwpV['depth'], xwpV['height'], xwpV['width']) qw7D = oyIN.transpose(qw7D, ROpF) return qw7D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv3d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False, dilation=ivFb)", "def RKsx(UUZO, sYyA, Ot1W, _0fC=(1, 1, 1), dvgN=(0, 0, 0), oug5=False, cg6J=False):\n return U78l.Conv3d(UUZO, sYyA, kernel_size=Ot1W, stride=_...
[ "0.74626017", "0.73825383", "0.732641", "0.72430784", "0.7218245", "0.72089267", "0.71919787", "0.7191581", "0.7191581", "0.7178833", "0.71573454", "0.71203244", "0.71165806", "0.7112739", "0.7112739", "0.7112739", "0.7112739", "0.7112739", "0.7112739", "0.7112739", "0.709862...
0.0
-1
See docs of tf.nn.conv3d
def ewwP(qw7D: np.ndarray) -> oyIN.ndarray: ROpF = (U9RI['batch'], U9RI['depth'], U9RI['height'], U9RI['width'], U9RI['channels']) qw7D = oyIN.transpose(qw7D, ROpF) return qw7D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(BWXx, _mSQ, dvgN='SYMMETRIC'):\n return ZylS.nn.conv3d(BWXx, _mSQ, strides=[1, 1, 1, 1, 1], padding='SAME')", "def RKsx(UUZO, sYyA, Ot1W, _0fC=(1, 1, 1), dvgN=(0, 0, 0), oug5=False, cg6J=False):\n return U78l.Conv3d(UUZO, sYyA, kernel_size=Ot1W, stride=_0fC, padding=dvgN, bias=oug5, groups=UUZO if...
[ "0.76698303", "0.755532", "0.7442117", "0.7331939", "0.7301148", "0.7301148", "0.72941005", "0.7293377", "0.7293377", "0.7293377", "0.7293377", "0.7293377", "0.7293377", "0.7293377", "0.7282493", "0.72780955", "0.72749895", "0.72712696", "0.72595316", "0.7247597", "0.7237898"...
0.0
-1
Get the argmax in a list of results. Unlike regular numpy.argmax(), in case we have more then one maximum value it returns a random one
def D16H(K5ya, SxfH='max'): if SxfH != 'max' and SxfH != 'min': raise ValueError("max_or_min param must be either 'max' or 'min'") uc7Q = K5ya.max() if SxfH == 'max' else K5ya.min() return oyIN.random.choice(oyIN.flatnonzero(oyIN.isclose(K5ya, uc7Q)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q1NN(hkxX):\n hkxX = oyIN.array(hkxX)\n RsfQ = oyIN.max(hkxX)\n wEf2 = oyIN.where(hkxX == RsfQ)[0]\n return oyIN.random.choice(wEf2)", "def XDwe(WKvO: np.ndarray) -> int:\n _0VL = r9of(WKvO)\n return oyIN.random.choice(_0VL)", "def qzYx(ezWE):\n return oyIN.random.choice(oyIN.flatnonze...
[ "0.8335981", "0.78323936", "0.7790045", "0.75007236", "0.7341612", "0.71394706", "0.7128849", "0.7097402", "0.7097402", "0.7097402", "0.70241296", "0.6949926", "0.6916381", "0.6916381", "0.69122714", "0.6858852", "0.6855909", "0.6834124", "0.6832451", "0.6831044", "0.67736924...
0.6555367
31
get DataFrame from csv file path.
def AXOg(YKHO, GPtr: Dict): return rLdf.read_csv(GPtr['path'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLtf(pmON):\n jQ3Z = rLdf.read_csv(pmON)\n return jQ3Z", "def HND1(pmON):\n return rLdf.read_csv(pmON)", "def Hyyu(pmON):\n if not Hy7s.path.exists(pmON):\n return None\n if not pmON.endswith('.csv'):\n return None\n with open(pmON, 'r') as nUeQ:\n nPrm = rLdf.read_cs...
[ "0.831804", "0.8251531", "0.8209664", "0.8186841", "0.81797963", "0.81024796", "0.8050509", "0.80370086", "0.78838986", "0.78338367", "0.78338367", "0.77670795", "0.7678553", "0.76650953", "0.76582754", "0.76582754", "0.76582754", "0.76490504", "0.7602862", "0.7547502", "0.74...
0.7224887
34
Set the value of the APIKey input for this Choreo. ((required, string) The API Key provided by Freebase.)
def HzlC(YKHO, BWXx): super(Q8Gi, YKHO)._set_input('APIKey', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA", "def yElH(YKHO, rJDA):\n YKHO._api_key = rJDA", "def yElH(YKHO, rJDA):\n YKHO._analyzer.SetAPIKey(rJDA)", "def rJDA(YKHO, rJDA):\n if rJDA is None:\n raise ValueError('Invalid value for `api_key`, must not be `None`')\n YKHO._api_key = rJDA...
[ "0.8012527", "0.8012527", "0.78095466", "0.7491508", "0.7445488", "0.7354048", "0.71039265", "0.69850457", "0.68536586", "0.68143976", "0.68125784", "0.6755509", "0.6747393", "0.66371185", "0.6522695", "0.6442849", "0.6420981", "0.632513", "0.6323666", "0.6307235", "0.6235425...
0.6429928
16
Retrieve the value for the "Response" output from this Choreo execution. ((string) The response from the Freebase Image API returns the thumbnail in base 64encoded format.)
def _O3m(YKHO): return YKHO._output.get('Response', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drcd(YKHO):\n try:\n QEGb = YKHO._segments['APP1']\n except KeyError:\n CO0l = None\n else:\n CO0l = QEGb.thumbnail_hex_string\n if not CO0l:\n raise RuntimeError('image does not contain thumbnail')\n return MRxC.unhexlify(CO0l)", "def r5Gv(YKHO):\n return YKHO._...
[ "0.6062687", "0.60492873", "0.5906654", "0.563572", "0.56325966", "0.56128675", "0.5591999", "0.55828226", "0.5496876", "0.54930705", "0.54826397", "0.5467993", "0.5461682", "0.54597026", "0.5407381", "0.5395234", "0.53920555", "0.5359705", "0.53267264", "0.53168243", "0.5313...
0.62218374
5
Preprocess text and fits a LDA model.
def WgYu(YKHO, z_aV): print('Processing text and fitting LDA...') z_aV = MXOF(z_aV) guzX = [list(set(YKHO.tokenizer.stem(l5Ny))) for l5Ny in z_aV] YKHO.lda_dictionary = tTte(guzX) r7pi = [YKHO.lda_dictionary.doc2bow(l5Ny) for l5Ny in guzX] YKHO.lda = SiAA(r7pi, num_topics=YKHO.n_topics) prin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZvG6(l5Ny, TdB_=0, hWCX=0, Spxg=0, o9Vy=0):\n ppBc = rLdf.DataFrame(columns=['text', 'response'])\n Pqdv = [Hw69(zFiD) for zFiD in l5Ny]\n CQu_ = [zFiD for zFiD in Pqdv if zFiD.rstrip()]\n mMLD = [lLeP(zFiD) for zFiD in CQu_]\n icXO = [zFiD.lower() for zFiD in mMLD]\n if o9Vy == 1:\n i...
[ "0.660912", "0.6531881", "0.6451974", "0.643631", "0.64359623", "0.63797843", "0.6361688", "0.63324934", "0.633029", "0.6323765", "0.63109434", "0.6249419", "0.6168914", "0.61598635", "0.6154446", "0.61540663", "0.6147701", "0.61305416", "0.60570306", "0.6056732", "0.60520154...
0.75705445
0
Should return 201 for category added
def lPnp(YKHO): Ghho = qQXR.dumps({'name': 'Asian'}) geh0 = YKHO.client.post('/category', data=Ghho, headers={'Authorization': YKHO.token}) YKHO.assertEqual(geh0.status_code, 201) YKHO.assertIn('asian', geh0.data.decode())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def osVu(YKHO):\n YKHO.add_success(YKHO.test_data['pants'])", "def XnPT(YKHO):\n Ylbp = YKHO.client().post('/categories/', data=YKHO.category)\n YKHO.assertEqual(Ylbp.status_code, 201)\n YKHO.assertIn('Stews', str(Ylbp.data))", "def XnPT(YKHO):\n pass", "def vCu7(nPrm):\n ZMzz = NmSa(data=n...
[ "0.74706477", "0.745538", "0.7299563", "0.7270053", "0.7212493", "0.7097182", "0.7087772", "0.70748115", "0.6928631", "0.6922248", "0.6901459", "0.68503654", "0.68328047", "0.6827661", "0.6805902", "0.675383", "0.6749674", "0.6747731", "0.6732778", "0.6710432", "0.6706673", ...
0.7421862
2
Should return 201 for category added
def XlPZ(YKHO): Ghho = qQXR.dumps({'name': 'Asian'}) YKHO.client.post('/category', data=Ghho, headers={'Authorization': YKHO.token}) geh0 = YKHO.client.post('/category', data=Ghho, headers={'Authorization': YKHO.token}) YKHO.assertEqual(geh0.status_code, 409) YKHO.assertIn('Name Asian exists', geh0....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def osVu(YKHO):\n YKHO.add_success(YKHO.test_data['pants'])", "def XnPT(YKHO):\n Ylbp = YKHO.client().post('/categories/', data=YKHO.category)\n YKHO.assertEqual(Ylbp.status_code, 201)\n YKHO.assertIn('Stews', str(Ylbp.data))", "def lPnp(YKHO):\n Ghho = qQXR.dumps({'name': 'Asian'})\n geh0 = ...
[ "0.74706477", "0.745538", "0.7421862", "0.7299563", "0.7270053", "0.7212493", "0.7097182", "0.70748115", "0.6928631", "0.6922248", "0.6901459", "0.68503654", "0.68328047", "0.6827661", "0.6805902", "0.675383", "0.6749674", "0.6747731", "0.6732778", "0.6710432", "0.6706673", ...
0.7087772
7
Should return 400 for empty name
def G5iM(YKHO): Ghho = qQXR.dumps({'name': ''}) geh0 = YKHO.client.post('/category', data=Ghho, headers={'Authorization': YKHO.token}) YKHO.assertEqual(geh0.status_code, 400) YKHO.assertIn('Missing name', geh0.data.decode())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FfyJ(YKHO):\n nPrm = {'bidule': 'toto'}\n geh0 = G4JS.post(url=YKHO.url, json=nPrm)\n MOPg = geh0.headers\n YKHO.assertEqual(geh0.status_code, 400, lwj6)\n YKHO.assertEqual(MOPg['Content-Type'], 'text/html; charset=utf-8', khAs)\n YKHO.assertEqual(geh0.content, b'Missing name')", "def ff8A(...
[ "0.77169096", "0.73643553", "0.73529947", "0.71199685", "0.6973055", "0.69669956", "0.69198424", "0.69103205", "0.6897051", "0.687267", "0.6848081", "0.6819262", "0.67757225", "0.6765988", "0.6760132", "0.6706189", "0.6694191", "0.66769755", "0.6655904", "0.6640981", "0.66170...
0.66143423
21
Should return 401 for no categories found
def OzYK(YKHO): YKHO.test_add_category_success() eOtH = '' geh0 = YKHO.client.get('/categories/1', headers={'Authorization': eOtH}) YKHO.assertEqual(geh0.status_code, 401) YKHO.assertIn('Token not found', geh0.data.decode())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yqqm(YKHO):\n YKHO.test_add_category_success()\n eOtH = ''\n geh0 = YKHO.client.get('/categories', headers={'Authorization': eOtH})\n YKHO.assertEqual(geh0.status_code, 401)\n YKHO.assertIn('Token not found', geh0.data.decode())", "def YeCa(YKHO):\n geh0 = YKHO.client.get('/categories', hea...
[ "0.7906582", "0.76371086", "0.7406835", "0.72049767", "0.7046015", "0.70299006", "0.7026891", "0.70023763", "0.69535375", "0.69476676", "0.6917809", "0.68591356", "0.6852263", "0.68424934", "0.68272406", "0.68222725", "0.6762305", "0.6758753", "0.6756027", "0.6756027", "0.675...
0.7770553
1
Return attributes contained in this model as a dictionary
def jtBC(YKHO, DNHh=None, a4gM=None): dict = {} for hkS8, BWXx in YKHO.__dict__.items(): IuFz = hkS8[1:] if DNHh is not None and IuFz in DNHh: continue if a4gM is not None and IuFz in a4gM: dict[IuFz] = BWXx elif a4gM is None: dict[IuFz] = BWXx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h6gc(YKHO):\n return dict(YKHO.attributes)", "def h6gc(YKHO):\n return dict(YKHO.attributes)", "def h6gc(YKHO):\n return dict(YKHO.attributes)", "def azoT(YKHO):\n return dict(YKHO.__attributes)", "def _fYl(YKHO):\n Aofo = {}\n for hkS8 in YKHO.__attr:\n Aofo[hkS8] = getattr(YK...
[ "0.8748013", "0.8748013", "0.8748013", "0.84205115", "0.832725", "0.832692", "0.8319541", "0.8278484", "0.8256336", "0.81552625", "0.8123491", "0.8114465", "0.8114465", "0.8022473", "0.79944044", "0.79668665", "0.7926675", "0.7895532", "0.786637", "0.77931875", "0.77894783", ...
0.0
-1
Test searchsorted as numpy function.
def yBoi(YKHO): vexM = YKHO.q.flatten() YKHO.assertNDArrayEqual(oyIN.searchsorted(vexM, [1.5, 2.5] * YKHO.ureg.m), [1, 2])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w8or(jzdc, Ty9i, HEZd='left', eLty=None):\n return iexu(XTiz.where, jzdc, Ty9i, HEZd, eLty)", "def w8or(YKHO, **B2fa):\n return nASC.register(CwDs.Series.searchsorted)(YKHO, **B2fa)", "def u2pG(YKHO):\n YKHO.assertEqual(X6Ty([6, 4, 9, 10], 9), 2)", "def ko3S(JfyU, J4de, BhCF):\n assert JfyU(J...
[ "0.6279717", "0.62778676", "0.61127937", "0.6048838", "0.6030165", "0.59891117", "0.59398174", "0.59398174", "0.59398174", "0.59398174", "0.59210557", "0.5914617", "0.58851093", "0.5840959", "0.5840959", "0.5840959", "0.58362526", "0.5805804", "0.5805328", "0.5799236", "0.579...
0.85145366
0
Retrieves a budget by it's name.
def bjxF(YKHO, SfRp): return next((Jtpl for Jtpl in YKHO.budgets if Jtpl.name.lower() == SfRp.lower()), None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ma_i(YKHO, Ghho: BudgetCategory) -> s1i6:\n return YKHO.budgets.get(Ghho, None)", "def SfRp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'budget_name')", "def SfRp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'budget_name')", "def SfRp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y....
[ "0.706626", "0.64191616", "0.6303104", "0.62962496", "0.620454", "0.61935306", "0.6137747", "0.60905915", "0.6054097", "0.59843105", "0.5922025", "0.58307767", "0.58259296", "0.58087724", "0.57956046", "0.572861", "0.57033616", "0.56857437", "0.56660295", "0.5643141", "0.5619...
0.780844
0