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
Recursively drop Nones in dict d and return a new dict
def ZzUB(Csk6: dict) -> dict: I1iR = {} for G1Hx, Ty9i in Csk6.items(): if isinstance(Ty9i, dict): I1iR[G1Hx] = ZzUB(Ty9i) elif isinstance(Ty9i, (list, set, tuple)): I1iR[G1Hx] = type(Ty9i)((ZzUB(MHxz) if isinstance(MHxz, dict) else MHxz for MHxz in Ty9i)) elif Ty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wyva(Csk6):\n if type(Csk6) is dict:\n return dict(((G1Hx, wyva(Ty9i)) for G1Hx, Ty9i in Csk6.iteritems() if Ty9i and wyva(Ty9i)))\n elif type(Csk6) is list:\n return [wyva(Ty9i) for Ty9i in Csk6 if Ty9i and wyva(Ty9i)]\n else:\n return Csk6", "def V0Bq(Csk6):\n return {G1Hx:...
[ "0.7590653", "0.73848426", "0.7358717", "0.69886327", "0.6808982", "0.6756147", "0.6719627", "0.67180187", "0.66387606", "0.6597709", "0.65833217", "0.6566361", "0.6545118", "0.6526146", "0.6484739", "0.6468728", "0.64686984", "0.6468488", "0.64041233", "0.63862646", "0.63829...
0.7861208
0
Returns the overall length of the polyline.
def u54L(YKHO) -> float: if YKHO._distances: return YKHO._distances[-1] return 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n return G_T2.lattice.lengthlat(YKHO._accelerator.lattice)", "def u54L(YKHO):\n XI9t, TOBq = YKHO._check_geometry_engine()\n if XI9t and isinstance(YKHO, ltXn):\n return getattr(YKHO.polygon.as_arcpy, 'length', None)\n elif XI9t:\n return getattr(YKHO.as_arcpy, 'length',...
[ "0.75382465", "0.75039107", "0.74868226", "0.729864", "0.72134435", "0.72001666", "0.7194118", "0.7160968", "0.7149417", "0.7140741", "0.71384925", "0.71277755", "0.7012765", "0.7010187", "0.7009695", "0.7002466", "0.699484", "0.6993943", "0.6989758", "0.6975389", "0.6962482"...
0.6838819
34
Returns ``True`` if the polyline is closed (first vertex == last vertex).
def SEEh(YKHO) -> bool: if len(YKHO._vertices) > 2: return YKHO._vertices[0].isclose(YKHO._vertices[-1], rel_tol=YKHO._rel_tol) return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SEEh(YKHO) -> bool:\n return len(YKHO.points) > 0 and YKHO.points[0] == YKHO.points[-1]", "def SEEh(YKHO):\n return YKHO.points[0] == YKHO.points[-1]", "def SEEh(YKHO):\n if YKHO.geom_type == 'LinearRing':\n return True\n return bool(LBWB.is_closed(YKHO))", "def EBEL(YKHO):\n assert...
[ "0.7574495", "0.75079316", "0.7444643", "0.69255143", "0.66803014", "0.66547555", "0.6623578", "0.6592805", "0.64578915", "0.6435772", "0.6408205", "0.6391047", "0.63843834", "0.63460684", "0.6330905", "0.6303505", "0.6303505", "0.6259869", "0.61956894", "0.6139498", "0.61208...
0.7710876
0
Configure file(info) and email(error) logging.
def EsWC(P4t4): if P4t4.debug or P4t4.testing: return import logging from logging.handlers import RotatingFileHandler, SMTPHandler P4t4.logger.setLevel(logging.INFO) IdZu = Hy7s.path.join(P4t4.root_path, P4t4.config['DEBUG_LOG']) L8wK = logging.handlers.RotatingFileHandler(IdZu, maxBytes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EsWC(P4t4):\n if P4t4.debug or P4t4.testing:\n return\n import logging\n from logging.handlers import SMTPHandler\n if P4t4.config['BARICADR_RUN_MODE'] == 'test':\n P4t4.logger.setLevel(logging.DEBUG)\n else:\n P4t4.logger.setLevel(logging.INFO)\n Dm56 = Hy7s.path.join(P4...
[ "0.7066234", "0.68794364", "0.68317646", "0.6823683", "0.6746097", "0.67320293", "0.67178535", "0.6654343", "0.6527734", "0.6526972", "0.649443", "0.6492688", "0.64593023", "0.6447716", "0.64162874", "0.63693345", "0.63548505", "0.6345381", "0.63344795", "0.6320333", "0.62985...
0.68832237
1
Test mixed usage of decorator formats.
def cH87(): assert MDH4.v1() == 1 assert MDH4.v2() == 2 assert MDH4.v3() == 3 assert MDH4.v4() == 4 assert xqrt.v1().hello() == 5 assert xqrt.v2().hello() == 6 assert xqrt.v3().hello() == 7 assert xqrt.v4().hello() == 8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SfEB():\n NaW5(WOXm().parse('((hi))'), '<b>hi</b>')", "def uglh(YKHO):\n uUwz = jR1r.decorator(YKHO.chatty)\n qBwJ = uUwz(YKHO.f)\n U34r = jR1r.decorator_helpers.getinfo(YKHO.f)\n JOGE = jR1r.decorator_helpers.getinfo(qBwJ)\n assert U34r == JOGE\n assert U34r.__doc__ == JOGE.__doc__", ...
[ "0.67007774", "0.64186776", "0.6407132", "0.6240565", "0.62084275", "0.6137799", "0.6087688", "0.6079358", "0.60711014", "0.6070219", "0.59830195", "0.5980929", "0.597411", "0.59685767", "0.5864281", "0.58533", "0.58167726", "0.5811353", "0.5806624", "0.5786896", "0.57529235"...
0.0
-1
Generator for footprint consts of given struct in given model. No order on the returned consts guaranteed.
def CZtG(YKHO, BlNT, LX_V): try: OBjR = YKHO.fp_consts[BlNT] except KeyError: return iter([]) else: GOfX = (PtXs.ref for PtXs in OBjR) return YKHO._defined_consts(GOfX, LX_V)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykDD(V_1d, NHn2=[]):\n DFkc = ClVu(V_1d)\n for a1PO in NHn2:\n ClVu(a1PO, DFkc)\n for a1PO in N0is(V_1d):\n if DFkc[a1PO] > 1 and isinstance(a1PO, RIrr) and (not isinstance(a1PO, wZLS)):\n yield a1PO", "def UbOT(YKHO, C3ST):\n XP5J = C3ST.v1.Pod()\n YKHO.expectThat(XP5...
[ "0.5168419", "0.4977493", "0.4926595", "0.49246925", "0.48741165", "0.48233032", "0.47358507", "0.47050166", "0.46749115", "0.46085265", "0.45765832", "0.45513183", "0.45474485", "0.45404288", "0.4518606", "0.45017627", "0.45016882", "0.44400865", "0.44350392", "0.44345722", ...
0.5766548
0
Create a SQLAlchemy session
def gte4(YKHO) -> DMju: cuiw = YKHO.session_factory() try: yield cuiw except Exception as e: cuiw.rollback() raise tTpl finally: cuiw.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gte4():\n eQSh.up('alchemy', 'sessions')\n cuiw = DMju()\n return cuiw", "def gte4(Emd4, eHpk):\n DMju = FJ3D(bind=eHpk)\n cuiw = DMju()\n return cuiw", "def gte4():\n return NCls.session", "def gte4(YKHO) -> GhOX:\n pass", "def f57V():\n V112.metadata.create_all(EmnT)\n r...
[ "0.9030933", "0.8391125", "0.8354556", "0.83449346", "0.8157732", "0.8112623", "0.81104857", "0.80676514", "0.80581236", "0.80400866", "0.79518443", "0.7943638", "0.7941654", "0.78941596", "0.789227", "0.7877742", "0.78514636", "0.78365767", "0.7836187", "0.7828655", "0.78078...
0.755676
38
The Amazon Resource Name (ARN) of the specified profiling group.
def hMqs(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hauI(YKHO) -> str:\n return qe4Y.get(YKHO, 'cloud_watch_log_group_arn')", "def hauI(YKHO) -> str:\n return qe4Y.get(YKHO, 'cloud_watch_log_group_arn')", "def FuT7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'auto_scaling_group_arn')", "def kr6A(YKHO) -> qe4Y.Output[str]:\n return qe4Y....
[ "0.6626382", "0.6626382", "0.6534513", "0.6474986", "0.64331347", "0.64331347", "0.63623405", "0.6260468", "0.6245742", "0.6245742", "0.6245742", "0.6245742", "0.6245742", "0.6245742", "0.6245742", "0.6245742", "0.6245742", "0.6245742", "0.6245742", "0.6245742", "0.6245742", ...
0.0
-1
The tags associated with a profiling group.
def dJ1p(YKHO) -> h8nf[bdIy['outputs.ProfilingGroupTag']]: return qe4Y.get(YKHO, 'tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vn6A(YKHO):\n return YKHO.tag_set.all()", "def Qwli(YKHO):\n return YKHO._feature_group_base_engine.get_tags(YKHO)", "def qvDz(YKHO):\n return YKHO.uqsetting.getTagsStats()", "def dJ1p(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.ProtectionGroupTag']]]:\n return qe4Y.get(YKHO, 'tags')", "def Qwl...
[ "0.73094785", "0.70469576", "0.702661", "0.7012071", "0.69654626", "0.69571894", "0.6884694", "0.68826747", "0.68645376", "0.6863596", "0.6775657", "0.6756043", "0.675168", "0.675168", "0.675168", "0.675168", "0.675168", "0.675168", "0.675168", "0.675168", "0.675168", "0.67...
0.8137015
0
This resource schema represents the Profiling Group resource in the Amazon CodeGuru Profiler service.
def LFAP(jXAA: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> EgVK: rYZf = dict() rYZf['profilingGroupName'] = jXAA VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_defaults(), VKhi) p5j3 = qe4Y.runtime.invoke('aws-native:codeguruprofiler:getProfilingGroup', rYZf, opts=VKhi, typ=n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gecv(YKHO):\n try:\n YKHO.codeguru_client_builder.codeguru_client.create_profiling_group(profilingGroupName=YKHO.profiling_group_name, computePlatform='AWSLambda')\n bo34.info('Created Lambda Profiling Group with name ' + str(YKHO.profiling_group_name))\n except nheh as error:\n if P...
[ "0.6371563", "0.601346", "0.5879093", "0.5769885", "0.56978637", "0.56978637", "0.5690187", "0.5690187", "0.5681753", "0.5625285", "0.55755806", "0.55755806", "0.55755806", "0.5543592", "0.5542065", "0.5503253", "0.5499616", "0.5409693", "0.539092", "0.5380844", "0.5372781", ...
0.559177
10
This resource schema represents the Profiling Group resource in the Amazon CodeGuru Profiler service.
def qoS1(jXAA: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[nWJu]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gecv(YKHO):\n try:\n YKHO.codeguru_client_builder.codeguru_client.create_profiling_group(profilingGroupName=YKHO.profiling_group_name, computePlatform='AWSLambda')\n bo34.info('Created Lambda Profiling Group with name ' + str(YKHO.profiling_group_name))\n except nheh as error:\n if P...
[ "0.6371563", "0.601346", "0.5879093", "0.5769885", "0.56978637", "0.56978637", "0.5690187", "0.5690187", "0.5681753", "0.5625285", "0.559177", "0.55755806", "0.55755806", "0.55755806", "0.5543592", "0.5542065", "0.5503253", "0.5499616", "0.5409693", "0.539092", "0.5380844", ...
0.5252644
38
Boss randomly selects from a range of attack choices
def ZSQN(YKHO, Prh0, Xi6r, R_3T, kBYa): bLm4 = [40, 30, 20, 10, -10, -20, -30, -40] wkRK = g74T.sprite.Group() if kBYa == 'spread_shot': wkRK.empty() CT2d = (2, 9) while len(wkRK) < len(bLm4): wkRK.add(hkJ6(YKHO.rect.centerx, 0, 'images/beams1.png', CT2d)) for YRb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X_Zr() -> list:\n return ['Massacre', 'Demolish', 'Torture', 'Execute', 'Harvest']", "def w9g8():\n rKSe = Z3mN.GetRandom(1, 100)\n if S171() < 1.2:\n if rKSe < 20:\n return tQsy.Imp()\n elif rKSe < 50:\n return ZNP7.Spider()\n elif rKSe < 80:\n ...
[ "0.732325", "0.68057245", "0.67654526", "0.6727928", "0.66811365", "0.6633268", "0.6601949", "0.6601949", "0.6601949", "0.659154", "0.64652175", "0.6451866", "0.6399549", "0.6391532", "0.63712054", "0.6270575", "0.62620115", "0.6256854", "0.6256854", "0.6256854", "0.6255714",...
0.0
-1
Return all the couple of words in a text, if these words aren't stop words >>> listCouple(['Quelle', 'est', 'la', 'grande', 'question', 'sur', 'la', 'vie', 'le', 'bel', 'univers', 'et', 'le', 'reste']) [('grande', 'question'), ('bel', 'univers')]
def AIFu(HKwb, rQow='french'): KCHu = Z2qj(rQow) return [(HKwb[YRbF], HKwb[YRbF + 1]) for YRbF in range(len(HKwb) - 1) if HKwb[YRbF] not in KCHu and HKwb[YRbF + 1] not in KCHu]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lkJ0(UyMT, hwHU, JhZ_):\n IChv = []\n for WKvO in UyMT:\n if WKvO[1] in JhZ_ and WKvO[0] not in hwHU and (len(WKvO[0]) > 1) and (WKvO[0][0] not in {'/', \"'\", '\"', '\\\\', '@', '.', '{', '}', '(', ')', '`', '[', ']', '_', ',', '-', '+', '^', ':', ';', '*', '|', '~', '&', '#', '!', '$'}):\n ...
[ "0.6499899", "0.6439935", "0.6300421", "0.6228143", "0.6215751", "0.6213642", "0.6166086", "0.61645585", "0.6150937", "0.6148547", "0.6133684", "0.61310583", "0.6128307", "0.61135495", "0.61135495", "0.60516214", "0.60385", "0.6034247", "0.6011127", "0.59420496", "0.5927477",...
0.67482126
0
The initial value of the node optimization parameter.
def kLRn(YKHO, zLC2): wEf2 = zLC2.node_attribute(key=YKHO.key(), name=YKHO._attr_name) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJf5(YKHO) -> h8nf[llWB]:\n return YKHO._initial_value", "def lJf5(YKHO):\n pass", "def R6hU(YKHO):\n return YKHO.objective_function(YKHO.initial_cells, YKHO.d)", "def lJf5(YKHO):\n return YKHO._initial_value", "def lJf5(YKHO):\n return YKHO._initial_value", "def pNc8(YKHO, k78t):\n ...
[ "0.72078764", "0.70308346", "0.69277537", "0.68308336", "0.6796027", "0.6663182", "0.63600993", "0.6289102", "0.6252416", "0.624327", "0.6225115", "0.618887", "0.61568433", "0.6102023", "0.6086958", "0.60607916", "0.60351115", "0.6026487", "0.6007309", "0.60018146", "0.598608...
0.5764384
47
Displays all images in list_of_images. See show_img() function.
def YHJC(U1qy): YRbF = 0 for VXjJ in U1qy: u6fe(VXjJ, 'face nb {}'.format(YRbF)) YRbF += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uZFa():\n print('image list:')\n for YRbF in range(len(NIvB)):\n print(str(YRbF) + ':', '(' + NIvB[YRbF] + ', ' + KU6U[YRbF] + ')')", "def cPsg(Yw_3):\n Yw_3 = TTda.utils.make_grid(Yw_3)\n i5J1(Yw_3[0])", "def cEbM(YKHO, lE0q):\n for LNo8 in YKHO.database['images']:\n if LNo8['...
[ "0.8213313", "0.77342886", "0.7607374", "0.7506484", "0.746434", "0.7461509", "0.7452307", "0.7389735", "0.7269246", "0.72556406", "0.7252762", "0.72093654", "0.7202406", "0.71799815", "0.7140474", "0.7136155", "0.71356034", "0.71297103", "0.7124782", "0.70735306", "0.7070493...
0.69307363
32
Combines tweet and image text into one column
def abZD(jQ3Z): brj7 = [] for RXWL in range(len(jQ3Z)): VMDN = jQ3Z.loc[RXWL, 'tweet_text'] GCiW = jQ3Z.loc[RXWL, 'img_text'] if type(GCiW) == str: brj7.append(VMDN + GCiW) else: brj7.append(VMDN) return brj7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def em26(jQ3Z, rdlD):\n return jQ3Z['shortText'].iloc[rdlD.name] + ' ' + t4y4(jQ3Z['richText'].iloc[rdlD.name])", "def halE(lE0q):\n nkFv = SC2F.glob(csmG + '*.csv')\n fsA5 = SC2F.glob(EVg9 + '*.csv')\n XhmR = ZAQi(nkFv)\n ZKf7 = ZAQi(fsA5)\n XhmR['text_info'] = 1\n ZKf7['text_info'] = 0\n ...
[ "0.6642397", "0.6375805", "0.62891114", "0.6276007", "0.6182934", "0.61574066", "0.60108674", "0.59447396", "0.5868241", "0.58281916", "0.5767335", "0.57315886", "0.5693111", "0.5650966", "0.5642887", "0.5616347", "0.5611326", "0.5591048", "0.55752677", "0.55703086", "0.55694...
0.82530725
0
Returns the type of targets ($TARGETS, $CHANGED_TARGETS) used by this action.
def RH8N(YKHO, sEAN, ZaUd): return YKHO.targets
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RH8N():\n return WELE._TARGETS", "def wCwx():\n return pp82", "def wYEv(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'target_type')", "def x6A0(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'targets')", "def x6A0(YKHO) -> h8nf[H1ja[WELE]]:\n return YKHO._trust...
[ "0.6937736", "0.6790163", "0.66489965", "0.65697247", "0.65374655", "0.6498849", "0.64764404", "0.6453622", "0.6361921", "0.63293827", "0.6285304", "0.6279349", "0.62764436", "0.62368774", "0.62253547", "0.6219886", "0.6215256", "0.62120223", "0.6150856", "0.61311877", "0.610...
0.5455117
69
Return the signature contents of this action's command line. This strips $($) and everything in between the string, since those parts don't affect signatures.
def f764(YKHO, pan_, JZXy, sEAN, ZaUd=None): from SCons.Subst import SUBST_SIG HCmI = YKHO.cmd_list if JdGW(HCmI): HCmI = ' '.join(map(str, HCmI)) else: HCmI = str(HCmI) if ZaUd: return sEAN.subst_target_source(HCmI, SUBST_SIG, executor=ZaUd) else: return sEAN.sub...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aadv(YKHO):\n return wvEv.CliSignature.from_signature(ZHfW(gnPz.funcsigs.signature(YKHO.func), YKHO.pass_name), extra=Hs6x.chain(YKHO._process_alt(YKHO.alt), YKHO.extra))", "def oG7f(wEsz: Signature) -> str:\n s2mk = []\n for xqoZ in wEsz.parameters.values():\n if xqoZ.kind == XDS4.VAR_POSITI...
[ "0.67663807", "0.6306021", "0.62022895", "0.60304284", "0.5886512", "0.5886512", "0.5818869", "0.57608455", "0.57080156", "0.56823593", "0.56250745", "0.5618602", "0.5603236", "0.55816114", "0.5575008", "0.554745", "0.55433273", "0.5480168", "0.54668784", "0.54634917", "0.544...
0.0
-1
Return the signature contents of this action's command line. This strips $($) and everything in between the string, since those parts don't affect signatures.
def f764(YKHO, pan_, JZXy, sEAN, ZaUd=None): return YKHO._generate(pan_, JZXy, sEAN, 1, ZaUd).get_presig(pan_, JZXy, sEAN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aadv(YKHO):\n return wvEv.CliSignature.from_signature(ZHfW(gnPz.funcsigs.signature(YKHO.func), YKHO.pass_name), extra=Hs6x.chain(YKHO._process_alt(YKHO.alt), YKHO.extra))", "def oG7f(wEsz: Signature) -> str:\n s2mk = []\n for xqoZ in wEsz.parameters.values():\n if xqoZ.kind == XDS4.VAR_POSITI...
[ "0.6767731", "0.63061553", "0.6202574", "0.6030343", "0.58878064", "0.58878064", "0.5819191", "0.57603055", "0.5708995", "0.56843907", "0.562386", "0.5619482", "0.5605894", "0.55828494", "0.557501", "0.5548555", "0.5540086", "0.5480419", "0.54670197", "0.54655397", "0.5447023...
0.0
-1
Return the signature contents of this callable action.
def f764(YKHO, pan_, JZXy, sEAN): try: return YKHO.gc(pan_, JZXy, sEAN) except AttributeError: return YKHO.funccontents
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aadv(YKHO):\n return YKHO.__sig", "def OzMf(YKHO):\n return YKHO._function_signature", "def aadv(YKHO):\n return YKHO._signature", "def aadv(YKHO):\n return YKHO._signature", "def aadv(YKHO):\n return wvEv.CliSignature.from_signature(ZHfW(gnPz.funcsigs.signature(YKHO.func), YKHO.pass_nam...
[ "0.7141144", "0.7124616", "0.70831496", "0.70831496", "0.70009404", "0.699487", "0.69779885", "0.69666994", "0.6915825", "0.683463", "0.6821509", "0.6818036", "0.6818036", "0.6793909", "0.6693901", "0.6686588", "0.66107136", "0.6549235", "0.65364647", "0.64808995", "0.6480899...
0.0
-1
Age como um heroi
def OQdS(YKHO, NL_e): YKHO.acoes[NL_e]()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P3fz(YKHO):\n lrNJ = YKHO.age * 7\n print(YKHO.name + ' is ' + str(lrNJ) + ' years old in dog years.')", "def N_N1(YKHO):\n return YKHO.age", "def DJSN(YKHO):\n YKHO.age = 977.813910745 / YKHO.H0 * zQMB.quad(YKHO._Einva, 0, 1)[0]\n return", "def lUqL(YKHO):\n return YKHO.age", "def DJ...
[ "0.7422665", "0.7412841", "0.7378868", "0.7280286", "0.7249082", "0.7245056", "0.72307324", "0.7207021", "0.718556", "0.7171083", "0.7136214", "0.70943713", "0.7076426", "0.70566595", "0.70138246", "0.70106286", "0.69899756", "0.695859", "0.6935675", "0.6883973", "0.68292254"...
0.0
-1
Returns a learning rate multiplier. Till `warmup_epochs`, learning rate linearly increases to `initial_lr`, and then gets multiplied by `lr_gamma` every time a milestone is crossed.
def RYVi(v_XK: int) -> float: aOou = float(v_XK) / OnWS if aOou <= GPtr['solver']['warmup_epochs']: Cwt5 = aOou / float(GPtr['solver']['warmup_epochs']) return GPtr['solver']['warmup_factor'] * (1.0 - Cwt5) + Cwt5 else: or8S = Ce1H(GPtr['solver']['lr_milestones'], aOou) retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rWBt(qtWj: float, RqJC: Sequence[float]=None, _wSm: float=5, KMvS: float=0.1):\n if RqJC is None:\n RqJC = []\n AIZ9 = Ce1H.bisect(RqJC, qtWj)\n return KMvS ** AIZ9 * min(1.0, (qtWj + 1) / (_wSm + 1))", "def e_63(K0do, qtWj, FAYF, KMvS, LIcp, dfHy):\n if qtWj < 1:\n dfHy += dfHy * q...
[ "0.72383034", "0.7135454", "0.71192765", "0.707869", "0.7064164", "0.69462484", "0.69424456", "0.69128555", "0.69059616", "0.68988436", "0.6896838", "0.6880243", "0.68543524", "0.6844778", "0.6838346", "0.68257415", "0.6823231", "0.6814207", "0.6805909", "0.6767976", "0.67571...
0.68741
12
Generic tool to create a logger with preset formatting. Log messages will be written to the log file specified by `log_fName`. This method sets up how you want log messages to be formatted for the log file, as well as how log messages should be formatted and displayed in std.out of the console. You can specifiy a handl...
def N9LG(Mlxd): nZdb, MtID = Hy7s.path.split(Mlxd) if not Hy7s.path.isdir(nZdb): Hy7s.makedirs(nZdb) CvcS = G9jH.FileHandler(Mlxd, mode='w') CvcS.setLevel(G9jH.DEBUG) qDHt = G9jH.Formatter('%(asctime)s.%(msecs)03d - %(levelname)s - %(threadName)s - %(module)s: %(message)s', '%Y-%m-%d %H:%M:%...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WWrj(E70h, R5Jy=None, dsE5=False, O3lX='%(asctime)s %(levelname)s %(message)s', DCgT=None):\n vC9B = G9jH.getLogger(E70h)\n if dsE5 == True:\n vC9B.setLevel(G9jH.DEBUG)\n else:\n vC9B.setLevel(G9jH.INFO)\n uaPq = G9jH.Formatter(O3lX)\n if DCgT:\n DCgT.setFormatter(uaPq)\n ...
[ "0.76668024", "0.7641291", "0.7594129", "0.7594129", "0.7594129", "0.7594129", "0.75333506", "0.75201595", "0.7496658", "0.7496658", "0.74830693", "0.74830693", "0.74830693", "0.74830693", "0.7473394", "0.7470203", "0.740851", "0.74011344", "0.7399558", "0.73953336", "0.73900...
0.77357596
0
Test if format_message receives a valid slack attachment for an alarm.
def u20M(aEqx): IOKn = {'AlarmName': 'test_alarm', 'AlarmDescription': 'test_description', 'AWSAccountId': 'test_account', 'NewStateValue': 'ALARM', 'Region': 'US West (Oregon)', 'OldStateValue': 'INSUFFICIENT_DATA', 'Trigger': {'MetricName': 'Invocations', 'Namespace': 'test_service', 'StatisticType': 'Statistic',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xPtC(pB3N):\n return 'filename' in pB3N and pB3N['filename']", "def zjBP(Ol8d: Dict[Text, Any]) -> bool:\n return 'message' in Ol8d and 'attachments' in Ol8d['message'] and (Ol8d['message']['attachments'][0]['type'] == 'file')", "def zuV3(Ol8d: Dict[Text, Any]) -> bool:\n return 'message' in Ol8d ...
[ "0.63834804", "0.6051735", "0.5899706", "0.58568215", "0.5791477", "0.5657737", "0.56280893", "0.5593986", "0.5574381", "0.5540301", "0.5536047", "0.55336964", "0.55104715", "0.55097723", "0.54962313", "0.54891855", "0.5452309", "0.5442863", "0.53717345", "0.5371211", "0.5359...
0.7184382
0
Applies a Gaussian Noise kernel
def xsYF(VXjJ, Ot1W): return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W), 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(zNig=21, HVUZ=3):\n WKvO = oyIN.linspace(-HVUZ, HVUZ, zNig + 1)\n wpiG = oyIN.diff(aevO.norm.cdf(WKvO))\n KBhd = oyIN.outer(wpiG, w...
[ "0.760437", "0.7392273", "0.722894", "0.72202075", "0.700726", "0.6983336", "0.69493324", "0.69362295", "0.6930378", "0.69262356", "0.69125265", "0.6896405", "0.6852422", "0.6851908", "0.68292606", "0.6815795", "0.6814179", "0.6808105", "0.6799308", "0.6787438", "0.67733485",...
0.0
-1
Appends to a CSV file.
def wt2F(Ux0P, nPrm): assert type(Ux0P) == str assert type(nPrm) == oyIN.ndarray nPrm = nPrm.T if Ux0P.rfind('.csv') == -1: Ux0P += '.csv' eHNT = open(Ux0P, 'ab') oyIN.savetxt(eHNT, nPrm, delimiter=',') eHNT.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, nPrm):\n if Hy7s.path.exists(YKHO.file_path):\n return YKHO.write(nPrm, method='a')\n else:\n return YKHO.write(nPrm, method='w')", "def AD1K(bTKY, qaEx, W41k=None, wN2A=None, jaFg=None, RKD7=None):\n W41k = W41k or Gom_\n wN2A = wN2A or QVgI\n jaFg = jaFg or Lh5k\n ...
[ "0.7591002", "0.75364786", "0.74796474", "0.72400826", "0.7080856", "0.7068345", "0.70490015", "0.69537073", "0.6928965", "0.6894659", "0.68837786", "0.6876917", "0.6864938", "0.68644226", "0.67859745", "0.67208797", "0.667217", "0.66711026", "0.6658216", "0.66548014", "0.663...
0.68388575
14
Gets the raw data.
def FcaC(vf4n, uxuk, g8Ae=False): assert type(vf4n) == str assert type(uxuk) == list for xqoZ in uxuk: assert xqoZ in MfBu.keys() if not g8Ae: assert xqoZ in ZHU_.keys() nPrm = oyIN.genfromtxt(vf4n, dtype=float, delimiter=',', names=True, encoding='utf-8-sig', deletechars='')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SwtT(YKHO):\n ...", "def Ctz2(YKHO):\n return YKHO.raw_data", "def WPdU(YKHO):\n return YKHO.__raw_data", "def WPdU(YKHO):\n return YKHO._raw_data", "def WPdU(YKHO):\n return YKHO._data", "def SwtT(YKHO):\n raise NotImplementedError", "def SwtT(YKHO):\n raise NotImplementedErro...
[ "0.88625896", "0.8760973", "0.8666415", "0.8648681", "0.863991", "0.862061", "0.862061", "0.86059105", "0.8448061", "0.8325833", "0.8268841", "0.81998837", "0.80669993", "0.79772085", "0.79447865", "0.78672075", "0.7825849", "0.78041697", "0.7802203", "0.7802203", "0.77736676...
0.0
-1
Build initial empty chess board Board is represented as list (len equal to self.size) of lists of length of self.size, initially all elements of them are set to None
def BVOZ(YKHO): YKHO.board = [] for YRbF in range(0, YKHO.size): YKHO.board.append([]) for r845 in range(0, YKHO.size): YKHO.board[YRbF].append(None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yqe1(YKHO):\n YKHO.board = [[None] * YKHO.board_size for bGrB in range(YKHO.board_size)]", "def FIMM(YKHO, iBIi=None, zNig=8):\n YKHO.size = zNig\n if iBIi:\n YKHO.board = iBIi.board.copy()\n else:\n YKHO.board = []\n for bGrB in range(zNig):\n YKHO.board.append([0...
[ "0.8022171", "0.7774188", "0.7723688", "0.7597947", "0.75930595", "0.7580147", "0.7580147", "0.7580147", "0.75723225", "0.7530812", "0.74846643", "0.747129", "0.74680245", "0.74548006", "0.7437134", "0.74292266", "0.7406322", "0.73999435", "0.7360459", "0.7336175", "0.7254128...
0.8677558
0
Unfolds a stack of layers into a symmetric autoencoder with tied weights.
def OwOW(gEmA, Kz5H='same', Fg_i=DbxN.Constant(0.0)): if isinstance(Kz5H, (tuple, list)): A8ZM = 0 if isinstance(Fg_i, (tuple, list)): Yt2B = 0 MnDN = YYon(gEmA) fhcK = DMcd(MnDN) Zijn = [MnDN] YJQu = dict(b=None) vGNl = dict(nonlinearity=ibId.identity) for YRbF, gEmA in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fEdd(SFqX):\n Zxma = X1CD(SFqX.layers)\n Zxma.weights = SFqX.weights[:len(SFqX.layers) - 1]\n Zxma.biases = SFqX.biases[:len(SFqX.layers) - 1]\n return Zxma", "def C0yj(WKvO, TVTK=3, rb7a=3, YDYE=ZylS.nn.elu, PO4e=3, CJGY=False, eWly=False, zkhR=False):\n Fmaf = WKvO.shape[1]\n with ZylS.va...
[ "0.67070997", "0.59455234", "0.5821598", "0.56787", "0.55165106", "0.5501926", "0.54940736", "0.5472833", "0.5455762", "0.5432371", "0.5388151", "0.538726", "0.53624463", "0.5360048", "0.53550494", "0.5349575", "0.5346847", "0.5330196", "0.52933645", "0.52725047", "0.5261453"...
0.5059595
57
Create a new Identity.
def o8nK(YKHO, _E99, mWFP, D3lj, UTX6, j5sA, QTBn, zip, vxW9): return YKHO.api_newsletter_lists_email_delete(identity=_E99, name=mWFP, email=D3lj, address=UTX6, city=j5sA, state=QTBn, zip=zip, country=vxW9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U8Vr(Emd4):\n YKHO = Emd4()\n return YKHO", "def U8Vr(Emd4):\n YKHO = Emd4()\n return YKHO", "def yyre(YKHO):\n pass", "def abPc(Rtqy=None, ypOi=None, kQr1=None, K81b=None, gxOC=None, EmtN=None):\n pass", "def ftPp(YKHO):\n _E99 = nNXP.add_identity(YKHO.ctx, 'scm', name='John Smith...
[ "0.7228219", "0.7228219", "0.72249544", "0.68434566", "0.6419705", "0.6372299", "0.62828404", "0.62443817", "0.6193535", "0.61516047", "0.61461663", "0.61444277", "0.61161435", "0.609406", "0.60478795", "0.60080713", "0.59773654", "0.5952777", "0.5930507", "0.5839776", "0.583...
0.0
-1
generate a random 4 digit string you may change this to whatever length you want when calling the function
def ZCYd(exwG=4): bqSJ = 10 ** (exwG - 1) W4ky = 10 ** exwG - 1 return str(ajWY(bqSJ, W4ky))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eTqN():\n return str(qxeD.uuid4())[:10]", "def gkKB():\n return str(ajWY(1000, 9999)).zfill(4)", "def BWvy():\n KoG3 = vIwR.ascii_lowercase\n return ''.join((tuKI.choice(KoG3) for YRbF in range(4)))", "def LtAO(u54L=4):\n if not u54L or u54L < 1:\n u54L = 1\n return ''.join(map(l...
[ "0.8075862", "0.80400395", "0.79346824", "0.78134114", "0.7792111", "0.7788753", "0.77717704", "0.7758015", "0.7743413", "0.7714401", "0.7693693", "0.7679601", "0.76779956", "0.7677556", "0.76632965", "0.765704", "0.765545", "0.76497006", "0.76440036", "0.76354426", "0.763375...
0.7360303
95
Check that valid listing returns status code of 200
def bLzb(YKHO): jzdc = Ont4.objects.get(item='1964 Mustang') Z9rn = i9zE() geh0 = Z9rn.get(f'/listing/{jzdc.id}') YKHO.assertEqual(geh0.status_code, 200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cr07(YKHO):\n YKHO.assertEqual(YKHO.response.status_code, 200)", "def sTMx(YKHO):\n bD7m = gxEw('exp:listings-index')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, 200)\n GtGV = JezV(geh0)\n YKHO.assertTrue(GtGV['ok'])\n YKHO.assertTrue(GtGV['result'])", "def j1x8...
[ "0.76162976", "0.72583276", "0.71476066", "0.71297795", "0.7091529", "0.6966854", "0.6966854", "0.68985194", "0.68708384", "0.6851921", "0.6842164", "0.6804113", "0.6798965", "0.6790549", "0.67779154", "0.6765388", "0.6721115", "0.67082", "0.67082", "0.6698108", "0.66896784",...
0.67552555
16
Initialize the ship and set its starting position
def FIMM(YKHO, Vjhr, m2os, bmPF): super(uMsl, YKHO).__init__() YKHO.screen = Vjhr YKHO.death_images = P6RE.spritesheet('img/PacManDeath.png') YKHO.images = YKHO.death_images.images_at([(0, 0, 24, 24), (0, 24, 24, 24), (0, 48, 24, 24), (0, 72, 24, 24), (0, 96, 24, 24), (0, 120, 24, 24), (0, 144, 24, 24),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PcLS(YKHO):\n YKHO.real_positionx = float(YKHO.screen_rect.centerx)\n YKHO.real_positiony = float(YKHO.screen_rect.bottom - YKHO.image.get_height() * 0.5)\n YKHO.set_display_position(YKHO.real_positionx, YKHO.real_positiony)", "def FIMM(YKHO, tJm0, Vjhr):\n super(riCe, YKHO).__init__()\n YKHO....
[ "0.7179686", "0.7179495", "0.71464306", "0.71424013", "0.7137835", "0.7086233", "0.70325404", "0.70300156", "0.700551", "0.6999165", "0.6998848", "0.69798976", "0.69645953", "0.69516844", "0.6910557", "0.69085014", "0.6906372", "0.6890547", "0.6875317", "0.6860608", "0.685069...
0.0
-1
Takes a list of reference strings and converts them to bibtex entries
def HAdV(RmfS): Czgs = [] for bf9h in RmfS: if bf9h in cBl3: fY2O = cBl3[bf9h] elif bf9h.startswith('@'): fY2O = bf9h elif bf9h.startswith('url:'): bD7m = bf9h.split('url:')[1] fY2O = '@misc{{url:{0},\n url = {{{1}}}\n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gVEW(Z9JV, vGHm):\n wSgx = dict()\n __VH = 1\n Pf69 = Z9JV.select('cite')\n for CFLU in Pf69:\n if CFLU.string is not None:\n bf9h = CFLU.string.strip()\n if bf9h in vGHm.keys():\n if not bf9h in wSgx.keys():\n wSgx[bf9h] = [__VH, vGHm[...
[ "0.6867539", "0.6751697", "0.63128525", "0.6182914", "0.61201555", "0.6111032", "0.60899836", "0.60746866", "0.60407233", "0.6039613", "0.60074705", "0.60027605", "0.6002518", "0.5949541", "0.59487545", "0.59380984", "0.5928939", "0.5862086", "0.5781126", "0.5780366", "0.5773...
0.7599856
0
Loads an image file (.jpg, .png, etc) into a numpy array Defaults to returning the image data as a 3channel array of 8bit data. That is controlled by the mode parameter.
def yPWT(nUeQ, De5k, Tuqy='RGB'): VXjJ = uGYG.Image.open(nUeQ) ZWCE, YEnM = VxKT(De5k) VXjJ, ykVi = r3zK(VXjJ, ZWCE, YEnM) VXjJ = VXjJ.convert(Tuqy) return (oyIN.array(VXjJ), ykVi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yPWT(nUeQ, Tuqy='RGB'):\n Xn71 = uGYG.Image.open(nUeQ)\n if Tuqy:\n Xn71 = Xn71.convert(Tuqy)\n return oyIN.array(Xn71)", "def zdoe(pmON, yDqo=oyIN.float32, Tuqy='unchanged'):\n try:\n if Tuqy == 'rgb':\n VOC_ = oyIN.array(XC5k.imread(pmON, 1), yDqo)\n elif Tuqy ==...
[ "0.8310692", "0.830271", "0.74926054", "0.7431994", "0.7382107", "0.7333049", "0.7326926", "0.7241095", "0.72281694", "0.7213215", "0.7202248", "0.7199246", "0.7149151", "0.7143349", "0.7138411", "0.71308476", "0.71308476", "0.71308476", "0.71308476", "0.7119885", "0.7117419"...
0.6680838
63
Set the IAM api key
def ii8a(YKHO, UPat): YKHO.iam_apikey = UPat
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dma5(YKHO, rJDA: str):\n YKHO.api_key = rJDA", "def Dma5(YKHO, H5ew: str) -> None:\n YKHO._api_key = H5ew", "def nJFf(YKHO, rJDA):\n if not rJDA:\n if 'MAPQUEST_API_KEY' in Hy7s.environ:\n rJDA = Hy7s.environ['MAPQUEST_API_KEY']\n else:\n rJDA = ''\n YKHO.api...
[ "0.7311977", "0.7226184", "0.722034", "0.7189768", "0.7067165", "0.703194", "0.70048404", "0.69605297", "0.69580626", "0.692927", "0.69231874", "0.68685484", "0.6842937", "0.67929715", "0.67929715", "0.67929715", "0.671792", "0.6670423", "0.6549525", "0.64079255", "0.63799876...
0.85147274
0
Used as a failsafe to prevent the condition of a refresh token expiring, which could happen after around 30 days. This function will return true if it has been at least 7 days and 1 hour since the last token was set
def I2zl(YKHO): if YKHO.token_info.get('expiration') is None: return True nTMm = 7 * 24 * 3600 vHj7 = int(ITS7.time()) c4o2 = YKHO.token_info.get('expiration') + nTMm return c4o2 < vHj7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MZxJ(YKHO):\n return YKHO._expiry_from_epoch is None or YKHO._expiry_from_epoch <= qcWV.datetime.now()", "def py3J(YKHO, eOtH):\n return eOtH['expires_refresh'] < qcWV.datetime.now()", "def A4Sy(NT__, wzkt=None):\n if NT__.expires_at is not None:\n wzkt = wzkt or qcWV.datetime.utcnow()\n ...
[ "0.79712963", "0.7957878", "0.7938222", "0.76329565", "0.7617886", "0.7601479", "0.760126", "0.7528562", "0.75156504", "0.7463609", "0.7420351", "0.7331841", "0.7327786", "0.72456545", "0.7154533", "0.71499056", "0.714894", "0.7121363", "0.7110711", "0.70762986", "0.70588094"...
0.8572234
0
Test the hypothesis that the correlation matrix is equal to the identity matrix.identity
def dagT(WKvO): exwG, XP5J = WKvO.shape nM4r = bSmD(WKvO) PB8o = oyIN.linalg.det(nM4r) dh16 = -oyIN.log(PB8o) * (exwG - 1 - (2 * XP5J + 5) / 6) jaZh = XP5J * (XP5J - 1) / 2 qpV3 = eQSh.chi2.pdf(dh16, jaZh) return (dh16, qpV3, jaZh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MVMG(YKHO, SFUt: list):\n for Jdbc in SFUt:\n sogq = Jdbc.num_qubits\n Jdbc.remove_final_measurements()\n YKHO.assertTrue(ebKv(FBPv(Jdbc).to_matrix(), oyIN.identity(2 ** sogq)), \"Clifford sequence doesn't result in the identity matrix.\")", "def SNIV(YKHO):\n bTdl = [[0.1], [0.2, ...
[ "0.6980913", "0.6944595", "0.6915676", "0.6758927", "0.6699497", "0.6458745", "0.64488363", "0.6419896", "0.64114827", "0.6381166", "0.63660085", "0.63431734", "0.63386595", "0.6280998", "0.6277715", "0.6260844", "0.6260656", "0.62507313", "0.62395954", "0.623794", "0.6220005...
0.0
-1
default constructor, list all attributes and type
def FIMM(YKHO): YKHO.room = ' ' YKHO.name = ' ' YKHO.email = ' ' YKHO.phone = ' ' YKHO.movein = None YKHO.moveout = None YKHO.power_my_fee = 0.0 YKHO.water_my_fee = 0.0 YKHO.service_cycle = None YKHO.service_power_days = 0 YKHO.service_water_days = 0 YKHO.sendemail = Fals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, azoT):\n BsTv = {'name': '', 'service': '', 'source': '', 'type': '', 'created': '', 'thumbnailURL': '', 'mediaURL': '', 'credit': ''}\n for G1Hx, Ty9i in azoT.items():\n if G1Hx in BsTv.keys():\n BsTv[G1Hx] = Ty9i\n YKHO.properties = BsTv", "def FIMM(YKHO, o8Kj):\n Y...
[ "0.7080186", "0.70345104", "0.6977804", "0.6966098", "0.6942434", "0.693912", "0.6913572", "0.68961185", "0.686468", "0.68324614", "0.6754119", "0.67449045", "0.6695435", "0.6693409", "0.6687123", "0.668308", "0.668308", "0.668308", "0.6668623", "0.6642344", "0.6633793", "0...
0.0
-1
Perform an action and step the environment dynamics. The action is executed by the egovehicle, and all other vehicles on the road performs their default behaviour for several simulation timesteps until the next decision making step.
def YPaw(YKHO, XeOP): if YKHO.road is None or YKHO.vehicle is None: raise NotImplementedError('The road and vehicle must be initialized in the environment implementation') YKHO._simulate(XeOP) W061 = YKHO.observation.observe() vOGg = YKHO._reward(XeOP) f9TP = YKHO._is_terminal() U34r = {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPaw(YKHO, XeOP):\n YKHO._make_ego_vehicles()\n if YKHO.road is None or YKHO.ego_vehicles is None:\n raise NotImplementedError('The road and vehicle must be initialized in the environment implementation')\n YKHO.steps += 1\n for YWSi in YKHO.ego_vehicles:\n if YWSi.lane_index == ('nxr...
[ "0.78229296", "0.710151", "0.6989495", "0.6964702", "0.6912547", "0.6910972", "0.69040614", "0.6880878", "0.68722945", "0.6843159", "0.68418425", "0.68238014", "0.68214685", "0.6804016", "0.67828274", "0.66971225", "0.6687327", "0.66592354", "0.6656081", "0.66553944", "0.6654...
0.74221593
1
Close the environment. Will close the environment viewer if it exists.
def DDI8(YKHO): YKHO.done = True if YKHO.viewer is not None: YKHO.viewer.close() YKHO.viewer = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n YKHO._env.close()", "def DDI8(YKHO):\n YKHO.env.close()", "def DDI8(YKHO):\n YKHO.env.close()", "def DDI8(YKHO):\n YKHO._env.close()", "def DDI8(YKHO):\n YKHO._env.close()", "def DDI8(YKHO):\n YKHO.env.close()", "def LPZs(YKHO):\n pass", "def DDI8(YKHO):\n fo...
[ "0.7814105", "0.76926243", "0.76926243", "0.76456267", "0.76456267", "0.76021284", "0.7496624", "0.72441924", "0.70529056", "0.6886882", "0.68361735", "0.68361735", "0.66856086", "0.6680332", "0.66329885", "0.6563476", "0.6484515", "0.64582616", "0.6443162", "0.63651365", "0....
0.59303635
36
Read CSV file from S3 into a DataFrame
def Ueki(YKHO) -> hxoQ: dSCB = YKHO.client.get_object(Bucket=YKHO.bucket, Key=YKHO.key_read) TBsA = dSCB['Body'] jZNe = TBsA.read().decode('utf-8') jQ3Z = rLdf.read_csv(kJm3(jZNe)) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kjLb(YKHO, H5ew: str, **B2fa) -> rLdf.DataFrame:\n U34r = YKHO.s3client.get_object(Bucket=YKHO.BUCKET, Key=H5ew)\n U34r = YKHO.read_object(U34r)\n return rLdf.read_csv(U34r, **B2fa)", "def dc8Q(KK2A: str, sPM8: str) -> rLdf.DataFrame:\n G9jH.info('Reading File Data from s3://' + KK2A + '/' + sPM8...
[ "0.7897656", "0.77005434", "0.7644396", "0.76201105", "0.7497061", "0.74637455", "0.7289267", "0.71916634", "0.70610905", "0.70607233", "0.69770944", "0.6958251", "0.6953011", "0.69065565", "0.6886652", "0.68512833", "0.6627499", "0.6626378", "0.6573734", "0.6509514", "0.6480...
0.73633677
6
The end date. Returns date The end date.
def Os4s(YKHO) -> _c1T: return YKHO._end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mjdP(YKHO):\n return YKHO.end_date", "def mjdP(YKHO):\n return YKHO.end_date", "def mjdP(YKHO):\n return YKHO.end_date", "def mjdP(YKHO):\n return YKHO.end_date", "def KhBf(YKHO):\n return YKHO._end_date", "def KhBf(YKHO):\n return YKHO._end_date", "def KhBf(YKHO):\n return YKH...
[ "0.8853485", "0.8853485", "0.8853485", "0.8853485", "0.87654084", "0.87654084", "0.87654084", "0.87654084", "0.87654084", "0.87654084", "0.87306553", "0.86655754", "0.8647998", "0.86086315", "0.8594495", "0.8550019", "0.8442331", "0.8382224", "0.8365297", "0.8365297", "0.8353...
0.84039927
17
The status for a caseinsensitive status value.
def jDN2(BWXx: str) -> EloR: for jGRS in EloR: if BWXx.lower() == str(jGRS.value).lower(): return jGRS raise ValueError(f'Unknown status: {BWXx}')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cBOG(YKHO, jGRS):\n for G3M1 in YKHO.STATUS:\n if jGRS == G3M1[0]:\n return G3M1[1]\n return None", "def OYkd(YKHO):\n zIQp = {YKHO.PENDING: 'PENDING', YKHO.ACTIVE: 'ACTIVE', YKHO.SUCCESS: 'SUCCESS', YKHO.FAIL: 'FAIL', YKHO.CANCEL: 'CANCEL'}\n if YKHO.status in zIQp:\n re...
[ "0.716176", "0.71203", "0.7085314", "0.7008194", "0.694906", "0.694906", "0.6943985", "0.6943985", "0.6943985", "0.6943985", "0.6943985", "0.6943985", "0.69394153", "0.69387627", "0.69264114", "0.68713075", "0.68557596", "0.68524", "0.68473893", "0.6842662", "0.6783032", "0...
0.6797019
20
expanded root path, ARDUINO_HOME env var or arduino_default_path()
def pB0c(): WKvO = tPlD if not WKvO: WKvO = Hy7s.environ.get('ARDUINO_HOME') if not WKvO: WKvO = oG2E() assert WKvO, str(WKvO) WKvO = pmON(WKvO).expand().abspath() assert WKvO.exists(), 'arduino path not found:' + str(WKvO) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oG2E():\n if HwRy.platform == 'darwin':\n KCHu = pmON('/Applications/Arduino.app/Contents/Resources/Java')\n elif HwRy.platform == 'win32':\n KCHu = None\n else:\n KCHu = pmON('/usr/share/arduino/')\n return KCHu", "def mSqg():\n try:\n mSqg = HwRy._MEIPASS\n exc...
[ "0.7184263", "0.67464286", "0.64225733", "0.64158213", "0.6346801", "0.6224116", "0.621539", "0.62060726", "0.61951303", "0.6170138", "0.6166381", "0.614408", "0.6140841", "0.61342585", "0.61132437", "0.6093478", "0.6087637", "0.60813427", "0.60628265", "0.6047064", "0.603895...
0.82251436
0
Make a single string with input strings separated by commas. Set `lastComma=False` if there should be no ending comma.
def qPuO(_CS_, a7Oa=True): vIwR = '' for KCHu in _CS_: vIwR += str(f'{KCHu}, ') if not a7Oa: U5bT = vIwR[0:-2] else: U5bT = vIwR return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WotO(jzdc: typing.List[str]) -> str:\n return ','.join(jzdc)", "def Bp0K(KouY, VWe_=', ', aRn2='and'):\n if KouY:\n if len(KouY) > 1:\n vOyM = '{0} {1} {2}'.format(VWe_.join(KouY[:-1]), aRn2, KouY[-1])\n else:\n vOyM = KouY[0]\n else:\n vOyM = ''\n retur...
[ "0.65781033", "0.65776485", "0.65010905", "0.6483517", "0.64418405", "0.6427942", "0.63788074", "0.636133", "0.62839216", "0.6264706", "0.6246265", "0.6216784", "0.62130594", "0.62086606", "0.61930186", "0.61717933", "0.616776", "0.61650926", "0.6154606", "0.6098307", "0.6083...
0.79265344
0
Uses get() to return an object or None if the object does not exist. klass may be a Model, Manager, or QuerySet object. All other passed arguments and keyword arguments are used in the get() query.
def qTE0(rV9y, *qIxc, **B2fa): SR0I = gWcE(rV9y) try: return SR0I.get(*qIxc, **B2fa) except SR0I.model.DoesNotExist: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rTS8(rV9y, *qIxc, **B2fa):\n SR0I = gWcE(rV9y)\n try:\n return SR0I.get(*qIxc, **B2fa)\n except SR0I.model.DoesNotExist:\n return None", "def rTS8(rV9y, *qIxc, **B2fa):\n SR0I = gWcE(rV9y)\n try:\n return SR0I.get(*qIxc, **B2fa)\n except SR0I.model.DoesNotExist:\n ...
[ "0.7701793", "0.761184", "0.7580326", "0.7580326", "0.7580326", "0.7100815", "0.6829818", "0.65644604", "0.6542342", "0.65043914", "0.64805", "0.64713055", "0.64082295", "0.6377185", "0.63355356", "0.63144755", "0.62997663", "0.6240597", "0.61927617", "0.61896497", "0.6130478...
0.7476796
5
Constructor for the ChessGame class
def FIMM(YKHO) -> None: YKHO.square_size = 25 YKHO.board = [] YKHO.highlight_rects = [] YKHO.history = [] YKHO.selected_piece = FuhX(-1) YKHO.running = True YKHO.current_color = YKHO.color_map['Black']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.display = a9eO.display.set_mode((720, 720))\n YKHO.board = p6bz()\n YKHO.refresh = 60\n YKHO.clock = a9eO.time.Clock()\n YKHO.pieces = {}\n for WKvO in range(8):\n for LVAh in range(3):\n if (WKvO + LVAh) % 2 == 1:\n W0Eb = (WKvO, LVAh)\n ...
[ "0.7621986", "0.75663763", "0.7401335", "0.7372997", "0.7335844", "0.7318299", "0.7313147", "0.72865283", "0.7283852", "0.72781134", "0.7277786", "0.7272448", "0.72497964", "0.71722215", "0.71555287", "0.71541625", "0.71444356", "0.7114749", "0.7104221", "0.7102926", "0.70887...
0.71659297
14
Constructor for the RecurrentAttention.
def FIMM(YKHO, zi3C=1024, _8mq=1024, wjbX=1024, CLda=1, tNZn=False, hr1G=0.2, i7WW=0.1): super(go8l, YKHO).__init__() YKHO.rnn = U78l.LSTM(zi3C, wjbX, CLda, bias=True, batch_first=tNZn) qfUR(YKHO.rnn, i7WW) YKHO.attn = exBL(wjbX, _8mq, _8mq, normalize=True, batch_first=tNZn) YKHO.dropout = U78l.Drop...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.n_input = None\n YKHO.n_output = None\n YKHO.loss_wght = None\n YKHO.recurr = None\n if Ke5A:\n print('\\nstart RecAE.__init__()')\n super(Qtj9, YKHO).__init__()\n YKHO.ae_loss_func = YKHO.loss_func\n YKHO.rec_loss_func = L8kW(YKHO.loss)\n YKHO.loss_func = [...
[ "0.6377841", "0.6234495", "0.6219081", "0.6169021", "0.6078239", "0.60344225", "0.60344225", "0.60344225", "0.60259205", "0.60151017", "0.598401", "0.5915004", "0.5913448", "0.5901926", "0.5901926", "0.5875224", "0.58630395", "0.5862058", "0.5848117", "0.5842503", "0.5835906"...
0.7093673
0
Converts flattened hidden state (from sequence generator) into a tuple of hidden states.
def MP8d(YKHO, Zode): if Zode is not None: Zode = Zode.chunk(YKHO.num_layers) Zode = tuple((YRbF.chunk(2) for YRbF in Zode)) else: Zode = [None] * YKHO.num_layers YKHO.next_hidden = [] return Zode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ywuu(YKHO, QTBn):\n pcfB = QTBn.reshape(1, QTBn.shape[0] * QTBn.shape[1] * QTBn.shape[2]).ravel()\n return tuple(pcfB.tolist())", "def IOWm(Zode: Union[torch.Tensor, Tuple[torch.Tensor, ...]]) -> uLKX[ht2j.Tensor, AzJI[ht2j.Tensor, ...]]:\n if isinstance(Zode, ht2j.Tensor):\n return Zode.deta...
[ "0.65134746", "0.65010035", "0.625263", "0.61565983", "0.61162484", "0.6025225", "0.5970641", "0.5970641", "0.5948825", "0.59389216", "0.5856217", "0.5840908", "0.58226395", "0.5819827", "0.5765063", "0.57636", "0.5723144", "0.5709829", "0.5682598", "0.5674479", "0.567055", ...
0.6296006
2
Flattens the hidden state from all LSTM layers into one tensor (for the sequence generator).
def hk9B(YKHO): if YKHO.inference: Zode = ht2j.cat(tuple(Hs6x.chain(*YKHO.next_hidden))) else: Zode = None return Zode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isT4(g4y1, wjbX, CLda, Ep8u, hr1G=0, EvQg=True):\n assert CLda > 0, 'Num layers must be > 0'\n JnVq, EcOR = Mt1v(wjbX, EvQg, CLda, Ep8u, hr1G)\n o4Jx = []\n RpDr = []\n e1Jw = g4y1\n for or8S, (YRbF, Z9rn) in enumerate(zip(EcOR, JnVq)):\n yvT9, o_r0 = ZylS.nn.static_rnn(Z9rn, e1Jw, ini...
[ "0.6518644", "0.6500439", "0.6483087", "0.6473295", "0.6424436", "0.63849443", "0.636755", "0.6321112", "0.6314239", "0.6285677", "0.62805986", "0.6275058", "0.62167567", "0.6202733", "0.6181093", "0.61639917", "0.614637", "0.6136316", "0.61243516", "0.6091179", "0.60868806",...
0.0
-1
Wrapper for softmax. Should be moved to loss_utils.py.
def qUxC(KeL5, Crrw, dMYj=None, vymf=None): if vymf is not None: Crrw = ZylS.reshape(Crrw, vymf) if dMYj is not None: Dwvl = ZylS.get_variable(name='ratio', initializer=dMYj[::-1])[None, :] J34r = ZylS.matmul(ZylS.one_hot(Crrw, 2), ZylS.transpose(ZylS.cast(Dwvl, ZylS.float32))) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(input, tpio=-1):\n return U78l.Softmax(axis=tpio)(input)", "def N93T(WKvO):\n return Kt_s.nnet.softmax(WKvO.T)", "def N93T(YKHO):\n return ZylS.nn.softmax(YKHO.output)", "def N93T(YKHO, WKvO):\n WKvO = WKvO - oyIN.max(WKvO)\n pnqb = (oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO))).T\n r...
[ "0.7810648", "0.7752116", "0.77413994", "0.7709025", "0.760131", "0.7597531", "0.7596475", "0.7586148", "0.754205", "0.75354904", "0.7495937", "0.7488579", "0.7462428", "0.7452524", "0.7446824", "0.7445044", "0.7443528", "0.7443075", "0.7438569", "0.7426925", "0.74241954", ...
0.0
-1
TF L1 loss wrapper.
def Io4v(amiz, LVAh): return ZylS.reduce_sum(ZylS.abs(amiz - LVAh), axis=-1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Io4v(W061, n5sN):\n with ZylS.name_scope('l1_loss'):\n return ZylS.reduce_sum(ZylS.abs(W061 - n5sN), 1)", "def Io4v(vhpA, upAO=1.0, rrBf=None):\n with ZylS.name_scope(rrBf, 'L1Loss', [vhpA]):\n upAO = ZylS.convert_to_tensor(upAO, dtype=vhpA.dtype.base_dtype, name='loss_weight')\n N...
[ "0.7724234", "0.7668444", "0.75122935", "0.7303153", "0.71922475", "0.7154407", "0.71411884", "0.7134092", "0.71100533", "0.7104555", "0.6999056", "0.6965779", "0.69604063", "0.6938216", "0.6897017", "0.68595093", "0.6846909", "0.68464196", "0.68017113", "0.679477", "0.678657...
0.6918019
14
TF L1/L2 loss wrapper that enables perjoint weights.
def eNTP(C3ST, B5FD, GPtr, pMDR='output', VYpf='label'): if GPtr.selected_joints is None: RumD = GPtr.joint_order else: RumD = GPtr.selected_joints if GPtr.loss_type == 'l1': N77f = Io4v elif GPtr.loss_type == 'l2': N77f = LJvU else: raise RuntimeError('Cannot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bdQB(YKHO):\n return NotImplementedError", "def Io4v(vhpA, upAO=1.0, rrBf=None):\n with ZylS.name_scope(rrBf, 'L1Loss', [vhpA]):\n upAO = ZylS.convert_to_tensor(upAO, dtype=vhpA.dtype.base_dtype, name='loss_weight')\n N77f = ZylS.multiply(upAO, ZylS.reduce_sum(ZylS.abs(vhpA)), name='value...
[ "0.69064164", "0.6860189", "0.6747408", "0.66672534", "0.66591364", "0.66575336", "0.6622698", "0.6568868", "0.6432508", "0.6363342", "0.6361957", "0.6331903", "0.6326117", "0.6241289", "0.6203272", "0.61131173", "0.60853064", "0.6072803", "0.6053985", "0.604368", "0.60431194...
0.645442
8
Split the data set into two (x and y)
def b0Na(Hfp6, W6j1=20, nkck=4): E7aG = vjFR(Hfp6) x6A0 = oyIN.zeros(len(E7aG)) yTZm = oyIN.zeros(len(E7aG)) for YRbF, ifkm in enumerate(E7aG): H6c8 = rLdf.read_csv(Hy7s.path.join(ifkm, 'timeseries.csv')) x6A0[YRbF] = H6c8.LOS_HOURS.iloc[0] HjSO = [int(KCHu) for KCHu in ifkm.spli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l66y(YKHO, WKvO, LVAh):\n u54L = len(LVAh)\n jBiU = [YRbF for YRbF in range(u54L) if LVAh[YRbF] == 1]\n EI9G = [YRbF for YRbF in range(u54L) if LVAh[YRbF] == 0]\n return (WKvO[jBiU, :], WKvO[EI9G, :])", "def lpha(nPrm):\n KYOe = [fvDH for fvDH in nPrm.columns if fvDH not in YOSi]\n return (...
[ "0.76710904", "0.73639625", "0.73498774", "0.7162279", "0.71248627", "0.69232345", "0.6920317", "0.69029254", "0.6878478", "0.68748105", "0.6862225", "0.6846658", "0.68194705", "0.68187296", "0.6726877", "0.67230195", "0.67230195", "0.67230195", "0.67230195", "0.67138326", "0...
0.0
-1
Gets the 3D world positions from pixel coordinates using a depth frame.
def ElY7(fUYa, bEXe, eD1S, TVTK, H2v2, fZkQ, pWSF): assert len(fUYa) == len(bEXe) Dfjx = 1.0 wncu = snBd(eD1S, TVTK, H2v2, fZkQ, max_depth=Dfjx) JGqo = fsRl(pWSF) wncu = JGqo.transform_points(wncu) wncu = wncu.tolist() GOzt = [wncu[bEXe[YRbF] * TVTK + fUYa[YRbF]] for YRbF in range(len(fUYa))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MBQE(WKvO, LVAh, eD1S, TVTK, H2v2, fZkQ, pWSF):\n Dfjx = 1.0\n wncu = snBd(eD1S, TVTK, H2v2, fZkQ, max_depth=Dfjx)\n JGqo = fsRl(pWSF)\n wncu = JGqo.transform_points(wncu)\n WKvO, LVAh, epBp = wncu.tolist()[LVAh * TVTK + WKvO]\n return _JMH(WKvO, LVAh, epBp)", "def pY9a(rb7a):\n C7Ls, Xc...
[ "0.72078836", "0.7070989", "0.687903", "0.669537", "0.6505865", "0.648064", "0.6457075", "0.6403746", "0.6322049", "0.6315989", "0.6249888", "0.6221248", "0.61887723", "0.6171529", "0.61579436", "0.6153073", "0.6096948", "0.608043", "0.6079751", "0.60610276", "0.5939429", "...
0.74159414
0
Transforms 3D locations to 2D camera view.
def hlAn(JbSN, duWN, Wngm): Kf7X = oyIN.ones((4, len(JbSN))) for YRbF in range(len(JbSN)): Kf7X[0][YRbF] = JbSN[YRbF].x Kf7X[1][YRbF] = JbSN[YRbF].y Kf7X[2][YRbF] = JbSN[YRbF].z NkZB = oyIN.dot(oyIN.linalg.inv(duWN), Kf7X) pez2 = oyIN.concatenate([NkZB[1, :], -NkZB[2, :], NkZB[0,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YhPc(YKHO):\n BxRI = oyIN.tan(YKHO.fov_deg / 2.0 / 180.0 * oyIN.pi)\n OsfI = YKHO.near_plane * BxRI\n if YKHO.vport_wd_px < YKHO.vport_ht_px:\n u6RH = 2.0 * OsfI\n AYdK = u6RH * YKHO.vport_ht_px / float(YKHO.vport_wd_px)\n else:\n AYdK = 2.0 * OsfI\n u6RH = AYdK * YKHO.v...
[ "0.6787717", "0.6727238", "0.66868764", "0.66594726", "0.65671855", "0.6552661", "0.6501654", "0.64934033", "0.64455336", "0.64134645", "0.64016616", "0.63259745", "0.63227266", "0.630945", "0.62975705", "0.629736", "0.6270035", "0.62565184", "0.62419975", "0.62350243", "0.62...
0.69224054
0
Return True if label is not the most likely class. If there is a prediction for each class, prediction[label] should be at least self.confidence from being the most likely class.
def Q8L5(YKHO, o3Uj, UXqs): if not isinstance(o3Uj, (float, int, oyIN.int64)): o3Uj = oyIN.copy(o3Uj) o3Uj[UXqs] += YKHO.confidence o3Uj = oyIN.argmax(o3Uj) return o3Uj != UXqs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, iKwE):\n b3Pz = ''\n DwKr = float('-inf')\n for mPQc in YKHO.classes:\n Wrfa = YKHO.class_count[mPQc]\n Sq9Q = sum(YKHO.class_count.values())\n fWNb = epAf.log(Wrfa / Sq9Q)\n JxU2 = fWNb\n for YEnM in iKwE:\n if YEnM in YKHO.probabilities[mPQc]:...
[ "0.6497875", "0.64345026", "0.64335215", "0.63723034", "0.63718766", "0.6337849", "0.6271005", "0.6253806", "0.622721", "0.6202727", "0.61394626", "0.60935473", "0.60911524", "0.60497284", "0.59424394", "0.5942242", "0.59310776", "0.59289587", "0.59235775", "0.591924", "0.591...
0.7279835
0
Returns a name string from a sample of random integers.
def W0tD(Emd4, mvm2, w7px=False): mWFP = '' if w7px: kgDL = Emd4.pairs1 else: kgDL = Emd4.pairs for KCHu in mvm2: YRbF = KCHu & 62 mWFP += kgDL[YRbF:YRbF + 2] return mWFP.replace('.', '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP():\n return ''.join([chr(int(Ih2K.random() * 26) + 65) for YRbF in range(0, 4)])", "def W0tD() -> str:\n return f'{mT_l[tuKI.randint(0, len(mT_l) - 1)]} {LDOt[tuKI.randint(0, len(LDOt) - 1)]}'", "def eGP3():\n o8C4 = str(ajWY(0, 9)) + str(ajWY(0, 9)) + str(ajWY(0, 9)) + str(ajWY(0, 9)) + '-' ...
[ "0.7650367", "0.7590832", "0.7533345", "0.74950004", "0.7344428", "0.7224578", "0.7211592", "0.71701676", "0.70949566", "0.70620245", "0.7048827", "0.7006869", "0.6998334", "0.6965452", "0.6948865", "0.6910438", "0.6898099", "0.6865241", "0.68422747", "0.6840307", "0.6808845"...
0.0
-1
Returns the key of the label map given the index
def _QSz(YKHO, mLGw): for YRbF, H5ew in enumerate(YKHO.labelMap): if YRbF == mLGw: return H5ew return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xvgy(YKHO, d6pt):\n assert YKHO.labels is not None, 'Labels not processed'\n return YKHO.labels[d6pt]", "def DeTJ(YKHO, d6pt):\n return YKHO._index_to_label[d6pt]", "def DeTJ(d6pt):\n K8IP = aZep()\n Sg1P = '{}'.format(d6pt)\n UXqs = K8IP.get(Sg1P)\n return UXqs", "def Dn9U(YKHO, d6p...
[ "0.7356038", "0.7351775", "0.7321547", "0.72678655", "0.72067475", "0.7177873", "0.7033044", "0.69095165", "0.6884701", "0.68004996", "0.6791952", "0.67791003", "0.67577845", "0.6745581", "0.6699909", "0.6691183", "0.6648909", "0.6648909", "0.65837497", "0.6573183", "0.652778...
0.7158483
6
Creates a Connection using the cypher library.
def FIMM(YKHO): GPtr = kwpV.ConfigParser() GPtr.read(gzes(TLI7(xAKo), 'config.ini')) jTXt = GPtr.get('configuration', 'neo4J_pass') YKHO.connection = K232.Connection('http://neo4j:{}@localhost:7474'.format(jTXt))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HagN():\n return eHpk.connect()", "def HagN(YKHO):\n import pyhs2\n w2B8 = pyhs2.connect(host=YKHO.host, port=YKHO.port, authMechanism=YKHO.auth_mechanism, user=YKHO.user, password=YKHO.password, database=YKHO.database)\n return w2B8", "def K232(YKHO):\n if YKHO.__cypher is None:\n fr...
[ "0.7224782", "0.6922879", "0.66809946", "0.65648806", "0.6534544", "0.652799", "0.6446563", "0.6428645", "0.63990146", "0.63990146", "0.63954926", "0.6374922", "0.6357201", "0.63337916", "0.6325924", "0.6318172", "0.6305464", "0.6280387", "0.6269374", "0.62673634", "0.6218757...
0.649771
6
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,), nzX1=None): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() if nzX1 is not None: hMgX = nvEb.cpu().numpy() jkr7 = hMgX.reshape(hMgX.size) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(...
[ "0.8316015", "0.8284264", "0.82822937", "0.82802635", "0.8235644", "0.823328", "0.822419", "0.8223432", "0.8211372", "0.8190115", "0.8186355", "0.81801045", "0.81796765", "0.8178845", "0.8177712", "0.81777084", "0.81777084", "0.81772006", "0.81760937", "0.81745565", "0.817190...
0.0
-1
Find the length of the longest string in a list
def TEMz(dAA3): KLk8 = 0 for l5Ny in dAA3: KLk8 = max(KLk8, len(l5Ny)) return KLk8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def voCX(DumB: list):\n return len(max([WKvO for WKvO in DumB], key=len)) + 4", "def Xq8I(ybN4):\n iLjp = [len(hfsm) for hfsm in ybN4]\n oeNL = iLjp.index(max(iLjp))\n return ybN4[oeNL]", "def atiI(_CS_):\n nSFH = 0\n for vIwR in _CS_:\n if len(vIwR) > nSFH:\n nSFH = len(vIw...
[ "0.84773415", "0.8250616", "0.82350355", "0.81326073", "0.80636317", "0.79298043", "0.7861905", "0.78091186", "0.7726589", "0.77108777", "0.76622516", "0.7626489", "0.7607648", "0.751697", "0.750763", "0.7507003", "0.75049144", "0.74809176", "0.7449142", "0.7377576", "0.73546...
0.77551705
8
Distribution parameter for the mean.
def hksT(YKHO): return YKHO._loc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(YKHO):\n if not hasattr(YKHO, '_mean'):\n YKHO._mean = YKHO.p * (YKHO.dist.mean(*YKHO.params) + YKHO.gamma)\n return YKHO._mean", "def JBMS(YKHO):\n return YKHO.mu", "def JBMS(IZxK):\n return oyIN.mean(IZxK)", "def JBMS(YKHO):\n return epAf.exp(YKHO.mu + YKHO.sigma ** 2 / 2)", ...
[ "0.79494554", "0.7219732", "0.7207859", "0.72073543", "0.7171736", "0.7116606", "0.7062884", "0.69649863", "0.6917644", "0.6884716", "0.68558884", "0.6854595", "0.6854135", "0.6757335", "0.67468035", "0.6718508", "0.66862774", "0.66582763", "0.6626942", "0.66174406", "0.66113...
0.0
-1
Standardize input `x` to a unit normal.
def MzFU(YKHO, WKvO): with ZylS.name_scope('standardize'): return (WKvO - YKHO.loc) / YKHO.scale
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WKvO):\n return WKvO / CkYf(WKvO)", "def NkkI(WKvO):\n return WKvO", "def NkkI(WKvO):\n return (WKvO - 1.5) / 1.5", "def rSLU(YKHO, WKvO):\n return (WKvO - YKHO.input_mean) / YKHO.input_std", "def NkkI(YKHO, WKvO):\n pass", "def OEry(YKHO, WKvO):\n if len(WKvO) > 1:\n WK...
[ "0.80562985", "0.77956593", "0.7693027", "0.76637655", "0.7632304", "0.75967103", "0.7500225", "0.7488194", "0.74832803", "0.7454277", "0.7442933", "0.74416536", "0.74416536", "0.74060947", "0.7401608", "0.7376544", "0.73419464", "0.7335543", "0.73211074", "0.72831196", "0.72...
0.0
-1
Reconstruct input `x` from a its normalized version.
def kYAl(YKHO, epBp): with ZylS.name_scope('reconstruct'): return epBp * YKHO.scale + YKHO.loc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(WKvO):\n return WKvO", "def NkkI(YKHO, WKvO):\n pass", "def OEry(YKHO, WKvO):\n if len(WKvO) > 1:\n WKvO = (WKvO - min(WKvO)) / (max(WKvO) - min(WKvO))\n return WKvO", "def WuUW(WKvO):\n import numpy as oyIN\n wBZN = float(oyIN.min(WKvO))\n re6M = float(oyIN.max(WKvO))\n ...
[ "0.80697507", "0.80015105", "0.7424647", "0.72587794", "0.7140404", "0.7102969", "0.7060154", "0.69621724", "0.6911453", "0.6866436", "0.68379486", "0.68285376", "0.67387044", "0.6726536", "0.6703931", "0.67011243", "0.66874856", "0.66425425", "0.6609774", "0.6609774", "0.658...
0.0
-1
Overloading the addition operator for mesh types
def FOdN(YKHO, Elif): if isinstance(Elif, type(YKHO)): RuJL = yyGO(Elif) RuJL.values.vector()[:] = YKHO.values.vector()[:] + Elif.values.vector()[:] return RuJL else: raise AT0X('Type error: cannot add %s to %s' % (type(Elif), type(YKHO)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOdN(YKHO, Elif):\n if isinstance(Elif, type(YKHO)):\n RuJL = g06L(YKHO)\n RuJL.impl = YKHO.impl + Elif.impl\n RuJL.expl = YKHO.expl + Elif.expl\n return RuJL\n else:\n raise AT0X('Type error: cannot add %s to %s' % (type(Elif), type(YKHO)))", "def FOdN(YKHO, Elif):\n...
[ "0.7816668", "0.77618253", "0.75118595", "0.75090176", "0.7418867", "0.74104565", "0.7337797", "0.7280366", "0.7230672", "0.7076835", "0.7073497", "0.7052188", "0.7047783", "0.7033027", "0.7018733", "0.7009228", "0.70051396", "0.70030534", "0.69993174", "0.69850886", "0.69600...
0.7670785
2
r"""Fills the input Tensor with values drawn from a truncated normal distribution. The values are effectively drawn from the
def tpY1(vhpA, JBMS=0.0, M1Jx=1.0, jzdc=-2.0, Fg_i=2.0): return CQyn(vhpA, JBMS, M1Jx, jzdc, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CQyn(vhpA, JBMS, M1Jx, jzdc, Fg_i):\n\n def _Ttn(WKvO):\n \"\"\"Computes standard normal cumulative distribution function\"\"\"\n return (1.0 + epAf.erf(WKvO / epAf.sqrt(2.0))) / 2.0\n if JBMS < jzdc - 2 * M1Jx or JBMS > Fg_i + 2 * M1Jx:\n G9jH.warn('mean is more than 2 std from [a, ...
[ "0.6655378", "0.65548533", "0.64922893", "0.64027154", "0.633016", "0.622939", "0.6150683", "0.6136724", "0.6116989", "0.61081874", "0.6091212", "0.6067438", "0.60652685", "0.6050894", "0.6011406", "0.5971732", "0.5953609", "0.59074515", "0.5883622", "0.5869223", "0.5860676",...
0.66153914
1
Set the getter function to fget. For use as a decorator.
def gJdh(YKHO, Gp4_): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gJdh(YKHO, Gp4_):\n if getattr(YKHO, '__doc__', None) is None:\n YKHO.__doc__ = getattr(Gp4_, e9Ts, None)\n if YKHO.name is None:\n YKHO.name = getattr(Gp4_, pjMy, None)\n YKHO._getter = Gp4_\n return YKHO", "def gJdh(YKHO, Gp4_):\n return YKHO._copy(fget=Gp4_)", "def OAjT(YKHO...
[ "0.8569674", "0.8014229", "0.79495305", "0.79495305", "0.7888944", "0.7869297", "0.7652019", "0.7543279", "0.7543279", "0.73518854", "0.7271528", "0.7271528", "0.7271528", "0.7231453", "0.71615654", "0.7158901", "0.70586914", "0.6978629", "0.6978629", "0.6930725", "0.6732644"...
0.79854786
2
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses.
def kblH(YKHO, *qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_(YKHO):\n print('Subclass and over-ride this method.')", "def FIMM(YKHO):\n super().__init__(None)", "def FIMM(YKHO):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2...
[ "0.79794985", "0.71211594", "0.71164125", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", "0.7089904", ...
0.0
-1
This function plots images contained in DataFrame df and with a label label, from the image from to the image to. The parameter ncols sets the number of columns of the output showed.
def L7qM(jQ3Z, UXqs, ifCF, RdIS, co3n=3): Rb9k = jQ3Z[jQ3Z['label'] == UXqs].reset_index(drop=True) Rb9k = Rb9k[ifCF:RdIS + 1] HN6s = int((RdIS - ifCF) / co3n) + 1 JI1i, aNZO = QrM1.subplots(nrows=HN6s, ncols=co3n, figsize=(10, 3 * HN6s), constrained_layout=True) for YRbF in Rb9k.index: Xn71...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jUD3(jQ3Z, ARTs=None, usx6=5, ZLJ_=5, wytA=(8, 8)):\n if not issubclass(type(ARTs), K8LQ) and ARTs is not None:\n raise ValueError('noise is not of valid type Noise')\n LZpg = QrM1.figure(figsize=wytA)\n mvm2 = usx6 * ZLJ_\n for YRbF, (or8S, rdlD) in enumerate(jQ3Z.sample(mvm2).iterrows()):\...
[ "0.6809415", "0.66809225", "0.66726106", "0.64871", "0.6467218", "0.64588624", "0.6419099", "0.6411167", "0.63892037", "0.6370508", "0.63650155", "0.6310501", "0.62799823", "0.6257447", "0.6210554", "0.6195225", "0.61839545", "0.6114393", "0.6111886", "0.60921973", "0.6070441...
0.7983749
0
Given email and password, When you want to create a user. Then you need to define and email and password.
def cCBn(vCWU, gFsc): CBIr = vCWU.objects.create_user(email=gFsc.email, password=gFsc.password) assert CBIr.email == gFsc.email assert CBIr.created_at.date() == CBIr.updated_at.date()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYUQ(D3lj, jTXt):\n XN37.create_user(D3lj, jTXt)", "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def xWi2(YKHO, D...
[ "0.85974985", "0.8268354", "0.8117763", "0.81113786", "0.8087378", "0.8084685", "0.80784494", "0.80779314", "0.8076613", "0.80765676", "0.80662364", "0.8061879", "0.8061545", "0.80566514", "0.80529696", "0.8049756", "0.804605", "0.8029706", "0.8024461", "0.8022964", "0.801945...
0.0
-1
Given a email and password. When you try to create a superuser without is_superuser attribute. Then rise a ValueError Exception.
def YN0p(vCWU, gFsc): with trZe.raises(ValueError): vCWU.objects.create_superuser(email=gFsc.email, password=gFsc.password, is_superuser=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def leH8(YKHO):\n with YKHO.assertRaises(TypeError):\n rAFk().create_superuser(username='anyatibrian', email='anyatibrian@gmail.com', password=None)", "def Yo9E(YKHO):\n with YKHO.assertRaises(TypeError) as tTpl:\n mv1M.objects.create_superuser(username='superuser', email='superuser@mail.com'...
[ "0.7740144", "0.7679696", "0.7658666", "0.75899947", "0.7573209", "0.7569354", "0.7473104", "0.7436533", "0.7403454", "0.73985064", "0.73701316", "0.7355879", "0.73522246", "0.73454", "0.7320313", "0.73165077", "0.7315839", "0.7304014", "0.7302237", "0.7302237", "0.7302237", ...
0.7246333
30
Given a email and password. When you try to create a superuser without is_staff attribute. Then rise a ValueError Exception.
def XSWb(vCWU, gFsc): with trZe.raises(ValueError): vCWU.objects.create_superuser(email=gFsc.email, password=gFsc.password, is_staff=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def leH8(YKHO):\n with YKHO.assertRaises(TypeError):\n rAFk().create_superuser(username='anyatibrian', email='anyatibrian@gmail.com', password=None)", "def Zp54(YKHO, D3lj: str, jTXt: str, **wdCM: Dict[str, bool]):\n wdCM.setdefault('is_staff', True)\n wdCM.setdefault('is_superuser', True)\n w...
[ "0.7735218", "0.7617213", "0.7561649", "0.7556092", "0.75479746", "0.75448394", "0.75448394", "0.75448394", "0.75448394", "0.75448394", "0.75448394", "0.75448394", "0.75448394", "0.7518891", "0.75144374", "0.750269", "0.750269", "0.7463904", "0.7456343", "0.74246955", "0.7410...
0.7187666
64
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Integrates the model from initial state `x0` for `n_steps`.
def zQMB(YKHO, nJ9F: Array, d3gB: int, Z37c: int=None, JsMm: bool=True) -> HWEd: T8d8 = JSq_(nJ9F, YKHO.offsets) if Z37c is None: Z37c = YKHO.num_inner_steps InKD = YKHO.step_fn(Z37c) bGrB, Ty9i = t0Ye.funcutils.trajectory(InKD, d3gB, start_with_input=JsMm)(T8d8) WKvO, bGrB = jYIt(Ty9i) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zQMB(YKHO, nJ9F, d3gB):\n a1PO = oLG2.asarray([exwG * YKHO.dt for exwG in range(d3gB)])\n dlZb = ZEHf(YKHO.equation_of_motion, nJ9F, a1PO)\n return dlZb", "def gQ4C(YKHO, y2qY: Array, d3gB: int, Z37c: int=None, JsMm: bool=True) -> HWEd:\n B2N5 = YLnl(YKHO.integrate, n_steps=d3gB, num_inner_steps=...
[ "0.73992854", "0.6909265", "0.68941456", "0.65054697", "0.612357", "0.610962", "0.6094502", "0.6054126", "0.600004", "0.59827065", "0.59142095", "0.58818054", "0.57298535", "0.57075465", "0.57075465", "0.56773275", "0.5661549", "0.562673", "0.5620694", "0.5614942", "0.5608848...
0.7188934
1
Integrates the model from initial states `X0` for `n_steps`, where the first axis of `X0` is a batching dimension.
def gQ4C(YKHO, y2qY: Array, d3gB: int, Z37c: int=None, JsMm: bool=True) -> HWEd: B2N5 = YLnl(YKHO.integrate, n_steps=d3gB, num_inner_steps=Z37c, start_with_input=JsMm) return pkba(B2N5)(y2qY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zQMB(YKHO, nJ9F: Array, d3gB: int, Z37c: int=None, JsMm: bool=True) -> HWEd:\n T8d8 = JSq_(nJ9F, YKHO.offsets)\n if Z37c is None:\n Z37c = YKHO.num_inner_steps\n InKD = YKHO.step_fn(Z37c)\n bGrB, Ty9i = t0Ye.funcutils.trajectory(InKD, d3gB, start_with_input=JsMm)(T8d8)\n WKvO, bGrB = jYIt...
[ "0.6964438", "0.67236644", "0.65166277", "0.62378097", "0.605144", "0.597885", "0.5882467", "0.57767195", "0.5711214", "0.5693583", "0.56446666", "0.56357086", "0.5623813", "0.56224453", "0.5585013", "0.55309796", "0.5528943", "0.5527477", "0.5520176", "0.5512456", "0.5478763...
0.76323617
0
r""" Returns the ANSI escape code corresponding to input formatting options.
def E2Wp(xAU6): PFAa = '\x1b[0' for y7GR in xAU6: if y7GR not in aiuj: raise NameError("Colorize option '" + y7GR + "' not supported.") PFAa += ';%d' % aiuj[y7GR] PFAa += 'm' return PFAa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def soXV(YKHO, *qIxc):\n return '\\x1b[%sm' % ';'.join([str(WKvO) for WKvO in qIxc]) if YKHO.color else ''", "def nBCp(YKHO, l5Ny, Wxnj):\n wEf2 = YKHO._codes.get(Wxnj, None)\n if wEf2:\n return '\\x1b[%sm%s\\x1b[%sm' % (wEf2, l5Ny, YKHO._codes.get('rs', '0'))\n return l5Ny", "def Bdpt(jzdc)...
[ "0.685876", "0.664593", "0.6428077", "0.639903", "0.63938665", "0.63816434", "0.6361797", "0.6234542", "0.6233469", "0.6219444", "0.6169707", "0.61551136", "0.6149899", "0.6149899", "0.6116544", "0.611334", "0.6071402", "0.6043754", "0.6041057", "0.60315907", "0.6007292", "...
0.86966133
0
Return a string representation of the list.
def XQ0m(YKHO, qBwg, sSF8): Aofo = '' YRbF = 0 VmPb = qBwg.next while VmPb != None: Aofo += f'{VmPb} ' YRbF += 1 if YRbF > sSF8: break VmPb = VmPb.next return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__list)", "def zAg0(YKHO):\n if len(YKHO.myList) == 0:\n return '<>'\n U5bT = '<'\n for ZfUD in YKHO.myList:\n U5bT += str(ZfUD) + ', '\n U5bT = U5bT[:-2] + '>'\n return U5bT", "def zAg0(YKHO):\n return ', '.join([str(ZfUD) for ZfUD in YKHO.t...
[ "0.82037973", "0.8147156", "0.7841832", "0.7742648", "0.7677366", "0.75890595", "0.757137", "0.75657254", "0.7528888", "0.7528273", "0.7520562", "0.749548", "0.74884534", "0.7468255", "0.74651504", "0.74579287", "0.7450553", "0.74450815", "0.7423858", "0.741776", "0.74176437"...
0.0
-1
Returns a string representing a unique identifier for this ConditionSet instance.
def unpH(YKHO): return '%s.%s' % (YKHO.__module__, YKHO.__class__.__name__)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO):\n return '{} {}'.format(YKHO._name, YKHO._condition_name)", "def ShR8(YKHO) -> str | None:\n return YKHO._attr_unique_id", "def ShR8(YKHO) -> str:\n return YKHO._unique_id", "def ShR8(YKHO) -> str:\n return YKHO._unique_id", "def ShR8(YKHO) -> str:\n return YKHO._unique_id", ...
[ "0.8670863", "0.7575105", "0.7453587", "0.7453587", "0.7453587", "0.7453587", "0.7453587", "0.7453587", "0.7453587", "0.7453587", "0.7453587", "0.74324775", "0.74324775", "0.7392433", "0.7342921", "0.7342921", "0.73340094", "0.73075134", "0.7253586", "0.7253586", "0.72268134"...
0.0
-1
Given an instance, returns a boolean of whether this ConditionSet can return a valid condition check.
def sbxY(YKHO, KAOR): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGVO(YKHO):\n WBYd = L4OS.BRepCheck.BRepCheck_Analyzer(YKHO._wrapped_instance)\n raTX = WBYd.IsValid()\n if raTX:\n return True\n else:\n return False", "def SGVO(YKHO):\n return bool(YKHO.impl['is_valid'](YKHO))", "def deVW(YKHO):\n try:\n YKHO._is_valid\n ret...
[ "0.69484794", "0.694811", "0.67651385", "0.6683538", "0.6633639", "0.6631181", "0.65927535", "0.65853465", "0.64781815", "0.6471466", "0.6410687", "0.6409507", "0.6409507", "0.63882494", "0.6369422", "0.63245", "0.6319889", "0.6310321", "0.6301516", "0.6301516", "0.6296323", ...
0.0
-1
Given an instance, and the conditions active for this switch, returns a boolean representing if the feature is active.
def ksfB(YKHO, KAOR, iPqd): en4D = None for mWFP, Jyyj in YKHO.fields.iteritems(): NndJ = iPqd.get(YKHO.get_namespace(), {}).get(mWFP) if NndJ: BWXx = YKHO.get_field_value(KAOR, mWFP) for jGRS, XEri in NndJ: DNHh = jGRS == HCc3 if Jyyj.is_a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IN9u(YKHO):\n return YKHO.isAvailable() and YKHO.is_enabled", "def dS2Z(YKHO, iPqd, bUWH):\n en4D = None\n for KAOR in Hs6x.chain(bUWH, [None]):\n if not YKHO.can_execute(KAOR):\n continue\n Aofo = YKHO.is_active(KAOR, iPqd)\n if Aofo is False:\n return Fal...
[ "0.6985067", "0.68743026", "0.68384856", "0.6827963", "0.6789579", "0.672591", "0.672591", "0.6695959", "0.6683636", "0.6674866", "0.6673122", "0.66558367", "0.6651032", "0.661821", "0.6614675", "0.6610725", "0.6609561", "0.6601677", "0.658091", "0.6565669", "0.65620196", "...
0.6563084
20
Returns a string representing a human readable version of this ConditionSet instance.
def nWJQ(YKHO): return YKHO.__class__.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO) -> str:\n hkxX = str(set(YKHO)) if YKHO else ''\n return f'{YKHO.__class__.__name__}({hkxX})'", "def wHJl(YKHO) -> str:\n return ''.join((type(YKHO).__name__, '(', repr(set(YKHO)), ')'))", "def wHJl(YKHO):\n UqER = [repr(U6D_) for U6D_ in YKHO.constant_value]\n UqER = ', '.join(Uq...
[ "0.7165317", "0.71600986", "0.7122424", "0.70551795", "0.69919986", "0.6979864", "0.6974698", "0.6971026", "0.6880653", "0.6879802", "0.6770363", "0.6713071", "0.66964114", "0.6686278", "0.6669669", "0.65991235", "0.6565734", "0.65638214", "0.65619826", "0.65573955", "0.65293...
0.0
-1
Returns a SwitchProxy, rather than a Switch. It allows us to easily extend the Switches method and automatically include our manager instance.
def OP2O(YKHO, H5ew): return hwrE(YKHO, super(K_dw, YKHO).__getitem__(H5ew))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, H5ew):\n return hwrE(YKHO, super(K_dw, YKHO).__getitem__(H5ew))", "def uJvy(GFht='00:00:00:00:00:00:00:01'):\n return ksPk(GFht)", "def G13_(mgc_):\n return mgc_()", "def mgc_():\n\n class Switch(object):\n\n @nb0A.transition('off', 'on')\n def zF0X(YKHO, *qIxc, **B2f...
[ "0.74118215", "0.6396555", "0.6303716", "0.6242656", "0.5917526", "0.5906184", "0.5899239", "0.5899239", "0.5899239", "0.5840829", "0.5802165", "0.55807936", "0.5531868", "0.54389286", "0.5374129", "0.5360843", "0.5360717", "0.5351237", "0.5324776", "0.532275", "0.5302332", ...
0.7355399
1
Returns a generator yielding all currently registered ConditionSet instances.
def whmQ(YKHO): return YKHO._registry.itervalues()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def whmQ(YKHO):\n return YKHO._registry.itervalues()", "def kqhq(YKHO):\n for mjKS in sorted(YKHO.get_condition_sets(), key=lambda WKvO: WKvO.get_group_label()):\n uOe2 = QMSQ(mjKS.get_group_label())\n for Jyyj in mjKS.fields.itervalues():\n yield (mjKS.get_id(), uOe2, Jyyj)", "d...
[ "0.72211605", "0.6577198", "0.6475847", "0.64429915", "0.6311053", "0.62697077", "0.61164874", "0.61132765", "0.60100627", "0.5949304", "0.5945292", "0.5903627", "0.5877868", "0.58595836", "0.5848754", "0.5827247", "0.5821659", "0.58183426", "0.57725656", "0.57378167", "0.571...
0.7207696
1
Returns a generator which yields groups of lists of conditions.
def kqhq(YKHO): for mjKS in sorted(YKHO.get_condition_sets(), key=lambda WKvO: WKvO.get_group_label()): uOe2 = QMSQ(mjKS.get_group_label()) for Jyyj in mjKS.fields.itervalues(): yield (mjKS.get_id(), uOe2, Jyyj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wyAh(YKHO):\n yield from YKHO.iter_main_conditions()\n yield from YKHO.iter_case_conditions()", "def kqhq(YKHO):\n gtI8 = YKHO.get_condition_sets()\n for mjKS in sorted(gtI8, key=lambda WKvO: WKvO.get_group_label()):\n uOe2 = QMSQ(mjKS.get_group_label())\n for Jyyj in mjKS.fields.it...
[ "0.6959242", "0.67574596", "0.67191374", "0.6681501", "0.6285072", "0.60231733", "0.5959386", "0.5870379", "0.5867508", "0.58394915", "0.5807671", "0.58074296", "0.5798902", "0.5750251", "0.5745686", "0.56481993", "0.5614406", "0.55879915", "0.5580901", "0.5578636", "0.557461...
0.69444793
1
Returns a generator which yields groups of lists of conditions.
def FYgV(YKHO, p_z1): for mjKS in sorted(p_z1.get_condition_sets(), key=lambda WKvO: WKvO.get_group_label()): PCpl = mjKS.get_namespace() rOEG = mjKS.get_id() if PCpl in YKHO.value: uOe2 = mjKS.get_group_label() for mWFP, Jyyj in mjKS.fields.iteritems(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wyAh(YKHO):\n yield from YKHO.iter_main_conditions()\n yield from YKHO.iter_case_conditions()", "def kqhq(YKHO):\n for mjKS in sorted(YKHO.get_condition_sets(), key=lambda WKvO: WKvO.get_group_label()):\n uOe2 = QMSQ(mjKS.get_group_label())\n for Jyyj in mjKS.fields.itervalues():\n ...
[ "0.6959242", "0.69444793", "0.67574596", "0.67191374", "0.6285072", "0.60231733", "0.5959386", "0.5870379", "0.5867508", "0.58394915", "0.5807671", "0.58074296", "0.5798902", "0.5750251", "0.5745686", "0.56481993", "0.5614406", "0.55879915", "0.5580901", "0.5578636", "0.55746...
0.6681501
4
Construct a ddimensional density in the Sobolev class W(s,L) under the trigonometric basis \phi_k(x) = e^{2i \pi k^Tx}
def tvy0(YKHO): GUUu = [1] FSYx = [oyIN.matrix([0 for YRbF in range(YKHO.d)])] wjRY = 0 eHNT = tux7.lattice(YKHO.d, limit=None) eHNT.next() while wjRY <= YKHO.L: ZbOB = oyIN.matrix(eHNT.next()) EipQ = oyIN.random.uniform(-0.1, 0.1) GUUu.append(EipQ) FSYx.append(Zb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jE7i(YKHO, G1Hx):\n return oyIN.diag(YKHO.weights[G1Hx, :])", "def klCy(VIX9):\n LVAh = XTiz.ones((VIX9.st['M'],), dtype=XTiz.complex64)\n oDSd = VIX9.thr.to_device(LVAh)\n gXSq = VIX9._y2k_device(oDSd)\n yzQ0 = XTiz.abs(gXSq.get())\n VIX9.st['w'] = yzQ0\n RSva = VIX9.st['w']\n return...
[ "0.6490942", "0.6454312", "0.63444334", "0.63282293", "0.6169749", "0.61400676", "0.6041981", "0.5965416", "0.5901024", "0.589482", "0.5851588", "0.58396953", "0.5794081", "0.57868814", "0.5775104", "0.577397", "0.5750896", "0.5727413", "0.5724526", "0.5723644", "0.5717024", ...
0.60178715
7
Plot the density. If supplied ax, plot on that axis. Otherwise plot and show in a new figure.
def tnOx(YKHO, aNZO=None): WKvO = oyIN.matrix(oyIN.arange(0, 1, 0.01)).T LVAh = YKHO.eval(WKvO) if aNZO == None: LZpg = QrM1.figure() aNZO = LZpg.add_subplot(111) aNZO.plot(WKvO, LVAh) QrM1.show() else: aNZO.plot(WKvO, LVAh) return (WKvO, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lyfg(jQ3Z, aNZO=None, **B2fa):\n try:\n jQ3Z = jQ3Z.stack()\n except AttributeError:\n pass\n LZpg, aNZO = f7b4(aNZO)\n InLe = AEoZ(jQ3Z)\n fUYa = oyIN.linspace(jQ3Z.min(), jQ3Z.max(), 200)\n OfK8 = next(aNZO._get_lines.color_cycle)\n aTzb = InLe(fUYa)\n aNZO.hist(jQ3Z, al...
[ "0.731624", "0.72699565", "0.7083769", "0.6979856", "0.6836622", "0.6830803", "0.66614604", "0.65493083", "0.6492122", "0.64189005", "0.63351613", "0.62654865", "0.622258", "0.6216709", "0.61090505", "0.6080758", "0.6073869", "0.6048905", "0.6023376", "0.5987257", "0.5969268"...
0.64845335
9
Call with your authenticated user to confirm that the method is only valid for tutors. Expects authenticated user to not be a tutor
def zjzh(QOe9, JgKj, **B2fa): if 'args' in B2fa: qIxc = B2fa.pop('args') geh0 = QOe9.client.get(gxEw(JgKj, args=(qIxc,))) QOe9.assertRedirects(geh0, gxEw('home')) else: geh0 = QOe9.client.get(gxEw(JgKj)) QOe9.assertRedirects(geh0, gxEw('home')) QOe9.assertEqual(geh0.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def btqk(YKHO):\n CBIr = YKHO.users['Lancel']\n Zuox = Y66S(CBIr)\n YKHO.assertListEqual([], Zuox)", "def DLYc(YKHO):\n pass", "def OSZo(YKHO):\n CBIr = YKHO.users['Kevan']\n Zuox = Y66S(CBIr)\n YKHO.assertListEqual([], Zuox)", "def Iw6c(YKHO):\n bAls = YKHO.get_object()\n return Y...
[ "0.6996648", "0.685423", "0.6828295", "0.6418497", "0.6418497", "0.62677294", "0.6237911", "0.6230642", "0.61977506", "0.61764157", "0.61738133", "0.61577034", "0.61188143", "0.61186254", "0.6095558", "0.60919493", "0.6083705", "0.6078247", "0.6078247", "0.6074712", "0.607471...
0.0
-1
Takes in a local xml path and returns a full path. if is absolute, do nothing if is not absolute, load xml that is shipped by the package
def RPFJ(pjeI, IhMI=None): if Hy7s.path.isfile(pjeI): Zg0d = pjeI else: if IhMI is None: IhMI = FFvQ else: pass Zg0d = Hy7s.path.abspath(Hy7s.path.join(IhMI, pjeI)) return Zg0d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vp4i() -> GkAb:\n return GkAb('rads.xml')", "def nZ30(qoKr):\n qoKr += '.xml'\n KJKf = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))\n qaEx = Hy7s.path.join(KJKf, 'xml', qoKr)\n print(qaEx)\n with open(qaEx) as eHNT:\n return eHNT.read()", "def RPFJ(pjeI):\n return pjeI if pjeI.sta...
[ "0.723345", "0.6954819", "0.69491494", "0.67066175", "0.6331079", "0.6234463", "0.6175789", "0.614079", "0.60900563", "0.6066498", "0.60648507", "0.60542727", "0.60368896", "0.5997886", "0.59939134", "0.5985185", "0.596733", "0.59591377", "0.58830845", "0.5874879", "0.5870777...
0.7314689
0
Analyze text for sentiment, returning its score.
def JybI(YKHO, l5Ny): p1kx = 0 b0j5 = Dhdw.tokenize.TweetTokenizer() s2mk = b0j5.tokenize(l5Ny) for eOtH in s2mk: if eOtH.lower() in YKHO.positive_words: p1kx += 1 elif eOtH.lower() in YKHO.negative_words: p1kx -= 1 return p1kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JybI(YKHO, l5Ny):\n p1kx = 0\n b0j5 = Dhdw.tokenize.TweetTokenizer()\n s2mk = b0j5.tokenize(l5Ny)\n for zFiD in YKHO.positives:\n if zFiD == s2mk[0]:\n p1kx += 1\n else:\n p1kx += 0\n for zFiD in YKHO.negatives:\n if zFiD == s2mk[0]:\n p1kx -...
[ "0.87189025", "0.85296", "0.8240255", "0.8186682", "0.8185761", "0.8125247", "0.81207", "0.8066508", "0.80616236", "0.8042645", "0.8039475", "0.80249125", "0.8018157", "0.7969115", "0.7968045", "0.7924626", "0.79141766", "0.79045343", "0.78776324", "0.78740263", "0.7824331", ...
0.8191601
3
Returns a list of all annotations for the given |test|. May be empty.
def W32E(YKHO, QOe9): if not YKHO._IsTestMethod(QOe9) or not QOe9 in YKHO._test_methods: return {} return YKHO._test_methods[QOe9]['annotations']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sXg3():\n if ilGe._annotations_test is None:\n ilGe._annotations_test = ilGe._annotations(ilGe._label_data(), 'test')\n return ilGe._annotations_test", "def nkyg(YKHO, KEDL: dict) -> x1iM[str]:\n pass", "def XgyP(YKHO):\n return qm0x(YKHO.all_annotations)", "def XgyP(YKHO):\n YKHO._...
[ "0.6979231", "0.6827105", "0.6355927", "0.63074", "0.6234501", "0.6183928", "0.6085079", "0.60156906", "0.6005532", "0.5978462", "0.5967777", "0.59611243", "0.59550303", "0.59386057", "0.59386057", "0.5920344", "0.5920344", "0.59009457", "0.58604985", "0.57980525", "0.5751123...
0.77694213
0
Creates and saves a superuser with the given username, email and password.
def Zp54(YKHO, NtEF, D3lj, jTXt): CBIr = YKHO.create_user(username=NtEF, email=D3lj, password=jTXt) CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr", "def Zp54(YKHO, D3lj, jTXt=None...
[ "0.83903164", "0.8249157", "0.8230921", "0.8218434", "0.82027936", "0.8175957", "0.8169039", "0.8162181", "0.8128542", "0.81081104", "0.8090591", "0.80795807", "0.8067868", "0.8065074", "0.8057746", "0.80512464", "0.8048261", "0.80412513", "0.8025432", "0.80242485", "0.801562...
0.819859
5
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: if (yT1k := (await ajET.config_entries.async_unload_platforms(bTKY, aprE))): ajET.data[Sugg].pop(bTKY.entry_id) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()...
[ "0.70418245", "0.69975436", "0.69197667", "0.69024074", "0.6896897", "0.6870464", "0.6840728", "0.67911863", "0.67835754", "0.6782968", "0.6776581", "0.67688036", "0.6737991", "0.6730449", "0.6713354", "0.67085946", "0.6664857", "0.66411716", "0.6637687", "0.66157013", "0.660...
0.6469508
39
Test instantiation of a new `City` object.
def VlNG(YKHO, j5sA): assert j5sA is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6nU(YKHO):\n YEnM = cKBo()\n YKHO.assertIsInstance(YEnM, cKBo)", "def FtMy(YKHO):\n YKHO.assertIsInstance(YKHO.city_1, cKBo)", "def nLZM(YKHO):\n YKHO.assertIsInstance(YKHO.newtest, cKBo)", "def EuDW(YKHO):\n YKHO.assertTrue(type(YKHO.new) is cKBo)", "def PWBj(YKHO):\n YKHO.assertTru...
[ "0.8404207", "0.8181901", "0.81312025", "0.811168", "0.75584596", "0.7517158", "0.72567475", "0.71826553", "0.7079725", "0.69851613", "0.694182", "0.68958384", "0.6870777", "0.68676186", "0.6847205", "0.684473", "0.68401706", "0.6808545", "0.6780639", "0.6774592", "0.6761072"...
0.7751611
4
`City` has a nonliteral text representation.
def KL6F(YKHO, j5sA): Aofo = repr(j5sA) assert Aofo == f'<City({j5sA.name})>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return '<City city_id=%s name=%s>' % (YKHO.city_id, YKHO.name)", "def wHJl(YKHO):\n return '<City name={}>'.format(YKHO.name)", "def zAg0(YKHO):\n return YKHO.city", "def j5sA(YKHO):\n if 'city' in YKHO._data:\n return g9ge(YKHO._data['city']['names']['en'])", "def E6PC...
[ "0.6777731", "0.67159843", "0.6610049", "0.6508536", "0.63562423", "0.6344692", "0.62031645", "0.60426116", "0.6037764", "0.6022082", "0.60220647", "0.5988002", "0.5966678", "0.59617233", "0.5899329", "0.5895429", "0.5841757", "0.58392507", "0.5814945", "0.57633585", "0.57356...
0.77388936
0
Insert an instance into the (empty) database.
def OOp4(YKHO, ouvA, j5sA): assert ouvA.query(NCls.City).count() == 0 ouvA.add(j5sA) ouvA.commit() assert ouvA.query(NCls.City).count() == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO):\n cuiw.add(YKHO)\n cuiw.commit()", "def Ywmq(YKHO):\n YKHO.objects.insert_by_model(YKHO)", "def JPHp(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def JPHp(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def JPHp(YKHO):\n NCls.session.add(YKHO...
[ "0.78811604", "0.77764463", "0.77741903", "0.77741903", "0.77741903", "0.76958066", "0.76958066", "0.7554856", "0.75252026", "0.75252026", "0.75252026", "0.7467526", "0.744988", "0.6992415", "0.69891804", "0.6970333", "0.6915116", "0.6883381", "0.6879096", "0.68240505", "0.67...
0.6194924
81
Calculates the degree of circular polarization of the radiation described by the Stokes parameter.
def _s3R(YKHO): try: return YKHO.s3 / YKHO.s0 except: return 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZALC(YKHO, r1VO):\n return 2 * epAf.pi * r1VO", "def Stx3(Mkmy):\n return 2 * mM0K * Mkmy", "def Stx3(r1VO):\n return 2 * XTiz.pi * r1VO", "def f7dT(Mkmy):\n return epAf.pi * Mkmy * Mkmy", "def UKLo(YKHO):\n return YKHO._R", "def GiOJ(YKHO):\n YKHO.circumference = 2 * YKHO.radius * ...
[ "0.7166238", "0.7154723", "0.7123661", "0.7068361", "0.6706325", "0.6704893", "0.6679598", "0.66739386", "0.6631587", "0.6608749", "0.6604095", "0.65889895", "0.65829414", "0.6577982", "0.65777904", "0.6525238", "0.652444", "0.6504031", "0.64876366", "0.64843696", "0.64575326...
0.79636985
0