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
Get an existing Metric resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, l7rj: Optional[pulumi.Input[str]]=None, vcBn: Optional[pulumi.Input[pulumi.InputType['MetricBucketOptionsArgs']]]=None, JBZA: Optional[pulumi.Input[str]]=None, lbi2: Optional[pulumi.Input[bool]]=None, filter: Optional[pulumi.Input[s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S1GE(Emd4, id: str) -> h8nf[ZrMq]:\n for AcYW in Emd4.metrics:\n if AcYW.id == id:\n return AcYW", "def sFcG(YKHO, mWFP):\n for EpVc in YKHO.metric:\n if EpVc.name == mWFP:\n return EpVc\n return None", "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[...
[ "0.5868595", "0.5828137", "0.57130927", "0.56013435", "0.5587654", "0.5569639", "0.5552681", "0.55054784", "0.5462072", "0.54580885", "0.5424868", "0.5411395", "0.54069334", "0.5379737", "0.5366494", "0.5362648", "0.534146", "0.5337915", "0.53248155", "0.53103966", "0.5304050...
0.71008056
0
The resource name of the Log Bucket that owns the Log Metric. Only Log Buckets in projects are supported. The bucket has to be in the same project as the metric.
def l7rj(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'bucket_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SsPQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'logs_bucket')", "def ibH4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'log_bucket')", "def ibH4(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'log_bucket')", "def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')", "def l7r...
[ "0.7636935", "0.7429254", "0.7246176", "0.7196906", "0.7196906", "0.7196906", "0.7074245", "0.6959561", "0.6959561", "0.6959561", "0.6959561", "0.6959561", "0.6959561", "0.6959561", "0.6925707", "0.6925707", "0.6925707", "0.6925707", "0.6925707", "0.6925707", "0.6925707", "...
0.6916591
33
A description of this metric, which is used in documentation. The maximum length of the description is 8000 characters.
def JBZA(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'description')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cq_b(YKHO) -> str:\n return None", "def yoaG(YKHO):\n return YKHO.description", "def yoaG(YKHO):\n return YKHO.description", "def Eot7(YKHO) -> str:\n return qe4Y.get(YKHO, 'long_description')", "def Eot7(YKHO) -> str:\n return qe4Y.get(YKHO, 'long_description')", "def JBZA(YKHO):\n ...
[ "0.7741585", "0.74971616", "0.74971616", "0.73660666", "0.73660666", "0.7362587", "0.73606503", "0.73289174", "0.7293556", "0.7293556", "0.7293556", "0.7293556", "0.7293556", "0.7293556", "0.7293556", "0.7293556", "0.7293556", "0.7293556", "0.7293556", "0.7293556", "0.7293556...
0.0
-1
The clientassigned metric identifier. Examples "error_count", "nginx/requests". Metric identifiers are limited to 100 characters and can include only the following characters AZ, az, 09, and the special characters _.,+!',()%/. The forwardslash character (/) denotes a hierarchy of name pieces, and it cannot be the first...
def mWFP(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cbLf(YKHO) -> str:\n return YKHO._metric_id", "def pO5v(YKHO) -> str:\n return YKHO.sensor.name.replace('.', '__').replace('-', '_')", "def pO5v(YKHO):\n return list(YKHO.metrics.keys())[0]", "def pO5v(YKHO) -> str:\n return qe4Y.get(YKHO, 'metric_name')", "def pO5v(YKHO) -> str:\n retur...
[ "0.6536781", "0.646145", "0.64511234", "0.6384366", "0.6384366", "0.6384366", "0.6384366", "0.6384366", "0.6384366", "0.6384366", "0.6384366", "0.6384366", "0.6384366", "0.6384366", "0.6377158", "0.62613034", "0.62613034", "0.62613034", "0.622927", "0.622927", "0.60820556", ...
0.0
-1
Create the user profile in the database.
def lYUQ(YKHO, nPrm): try: BjjM = YKHO.session.query(mv1M).filter_by(email=nPrm['email']).first() if BjjM is None: CBIr = mv1M(name=nPrm['name'], image=nPrm['picture'], email=nPrm['email']) YKHO.session.add(CBIr) YKHO.session.commit() YKHO.login_sessio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def euOS(YKHO):\n zR3h = BFpK.objects.create(user=YKHO, biography='')", "def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n SYRW.objects.create(user=KAOR)", "def KEwG():\n mWFP = zaOq['name']\n D3lj = zaOq['email']\n bD7m = zaOq['img']\n jCbj = mv1M(name=mWFP, email=D3lj, profile_img=bD7...
[ "0.81814736", "0.7929085", "0.787535", "0.78431", "0.7744342", "0.7738791", "0.76634765", "0.7656643", "0.7642101", "0.7640026", "0.7640026", "0.7640026", "0.7640026", "0.7630073", "0.7601392", "0.7601392", "0.7590452", "0.75855356", "0.7573406", "0.7543303", "0.7543303", "...
0.0
-1
Flatten the nested dictionary structure using the given separator. If parent_key is given, then that level is added at the start of the tree.
def PWgb(Csk6, PUAf='', VWe_='.'): DumB = [] for G1Hx, Ty9i in Csk6.items(): hU8D = PUAf + VWe_ + G1Hx if PUAf else G1Hx if isinstance(Ty9i, g760.MutableMapping): DumB.extend(PWgb(Ty9i, hU8D, sep=VWe_).items()) else: DumB.append((hU8D, Ty9i)) return dict(DumB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(Op6c, PUAf='', VWe_='__**__'):\n DumB = []\n for G1Hx, Ty9i in Op6c.items():\n if PUAf:\n hU8D = '%s%s%s' % (PUAf, VWe_, G1Hx)\n else:\n hU8D = G1Hx\n if isinstance(Ty9i, dict):\n DumB.extend(PWgb(Ty9i, hU8D, sep=VWe_).items())\n else:\n ...
[ "0.7578073", "0.7493399", "0.748744", "0.7397914", "0.7143694", "0.7094178", "0.70872056", "0.69885707", "0.66497666", "0.6606958", "0.6586543", "0.6445178", "0.6404402", "0.6352878", "0.62926626", "0.6275442", "0.6271724", "0.62517786", "0.60753083", "0.6070793", "0.60545194...
0.759058
0
Return True if both DistjoinSet structures are equivalent. This may mean that their canonical elements are different, but the sets they form are the same.
def xa14(YKHO, Elif: Any) -> bool: if not isinstance(Elif, _DDp): return False return {tuple(WKvO) for WKvO in YKHO.itersets()} == {tuple(WKvO) for WKvO in Elif.itersets()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cCG0(jtyf, V70B):\n return len(set(jtyf) & set(V70B)) == len(set(jtyf)) and len(set(jtyf) | set(V70B)) == len(set(jtyf))", "def CBiF(YKHO, *qIxc):\n return PZpo.TUnionFind_IsSameSet(YKHO, *qIxc)", "def U5e0(jzdc, Fg_i):\n return set(jzdc) == set(Fg_i) and len(jzdc) == len(Fg_i)", "def xa14(YKHO,...
[ "0.7158652", "0.70425355", "0.6875166", "0.6861254", "0.68390304", "0.68213296", "0.6784253", "0.6784253", "0.66612405", "0.66402423", "0.6633441", "0.6629037", "0.6621606", "0.66211396", "0.6614769", "0.6609964", "0.65857047", "0.65823174", "0.6543116", "0.65372294", "0.6532...
0.7461888
0
Yield sets of connected components. If with_canonical_elements is set to True, method will yield tuples of (, ) >>> ds = DisjointSet() >>> ds.union(1,2) >>> list(ds.itersets()) [{1, 2}] >>> list(ds.itersets(with_canonical_elements=True)) [(2, {1, 2})]
def woy1(YKHO, hp1I: bool=False) -> bDy6[uLKX[fHNa[Kt_s], AzJI[Kt_s, fHNa[Kt_s]]]]: AFfE: mBx8[Kt_s, fHNa[Kt_s]] = oRi_(set) for U6D_ in YKHO._data: AFfE[YKHO.find(U6D_)].add(U6D_) if hp1I: yield from AFfE.items() else: yield from AFfE.values()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VXSp(lNWu):\n if isinstance(lNWu, SnBA.GeneratorType):\n return set(eNCK(*list(lNWu)))\n else:\n return set(eNCK(*lNWu))", "def RQOw(yvY1):\n P6bq = d0fd()\n for Ty9i in yvY1:\n GDan = set(yvY1[Ty9i])\n GDan.add(Ty9i)\n P6bq.union(*GDan)\n return P6bq.sets()"...
[ "0.64218444", "0.626661", "0.6263602", "0.62358975", "0.6154082", "0.6091642", "0.6089763", "0.60530186", "0.60530186", "0.60530186", "0.60431516", "0.60393995", "0.6013365", "0.5989839", "0.59487325", "0.59460837", "0.59023476", "0.5881196", "0.583825", "0.5824414", "0.56919...
0.706973
0
Returns a generator that yields each of the points defined by the discrete space 'features'. The 'rightmost' feature is iterated most rapidly. There is no requirement that the items in a feature be mutually unique. If optional 'sortem' is True, the items in each feature will be sorted before the space is enumerated. >>...
def xtUa(bySB, nLWq=False): RN67 = sorted if nLWq else tuple bySB = tuple((fBiW(RN67(RDhP)) for RDhP in bySB)) qC1Y = len(bySB) G0BO = [iter(bySB[0]).next] ofMJ = [None] while True: try: ofMJ[-1] = G0BO[-1]() while len(G0BO) < qC1Y: wcSd = iter(byS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Hz0(bySB, dKs1=False):\n if not bySB:\n return\n RJyH = sorted(bySB, key=lambda eHNT: eHNT.location.min())\n cntZ = RJyH.pop(0)\n uOe2, MX3a = ([cntZ], cntZ.location.max())\n for RDhP in RJyH:\n if RDhP.location.min() <= MX3a or (dKs1 and bwFV(uOe2[-1], RDhP)):\n uOe2.a...
[ "0.5404447", "0.5228483", "0.49048126", "0.48675826", "0.4844459", "0.48044914", "0.4764604", "0.4764604", "0.4764604", "0.47512564", "0.47476906", "0.47254527", "0.47254527", "0.46743217", "0.4642041", "0.46354538", "0.46352303", "0.46339536", "0.46263018", "0.46068552", "0....
0.8060898
0
Checking the main chain for lack of atoms
def LaS7(WYMZ): C1D0 = YqqB(WYMZ, 'CA') w6zz = YqqB(WYMZ, 'C') zIio = YqqB(WYMZ, 'N') if C1D0 and w6zz and zIio: return (C1D0, w6zz, zIio) else: return (0, 0, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jgGG(YKHO):\n with qmLP.catch_warnings():\n qmLP.simplefilter('ignore', kMVR)\n qmLP.simplefilter('ignore', w2fd)\n Z580 = list(Rg82.parse('PDB/1LCD.pdb', 'pdb-atom'))\n YKHO.assertEqual(len(Z580), 1)\n YKHO.assertEqual(Z580[0].seq, 'MKPVTLYDVAEYAGVSYQTVSRVVNQASHVSAKTREKVEAAMAELNY...
[ "0.62105095", "0.6103678", "0.6100747", "0.6065055", "0.60175997", "0.59371674", "0.59245884", "0.5913761", "0.59031916", "0.5882318", "0.5839498", "0.5822649", "0.58070374", "0.57799697", "0.57718486", "0.57263356", "0.5719796", "0.57187754", "0.5708896", "0.568972", "0.5687...
0.0
-1
This route takes priority over all others. So any request with an OPTIONS method will be handled by this function.
def fLmj(): X79O()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xAU6(YKHO, *qIxc, **B2fa):\n B2fa['method'] = V1Lg\n return YKHO.request(*qIxc, **B2fa)", "def Oov2():\n if QePW.method == 'OPTIONS':\n pass\n return 'cors is enabled, OPTIONS handled by you!'", "def izKl(YKHO, w2IS, QePW, QpfX):\n if QePW.method != 'OPTIONS':\n return\n A5o...
[ "0.76065063", "0.74064964", "0.73882747", "0.72516096", "0.72336686", "0.72336686", "0.71690583", "0.6948514", "0.689482", "0.6819641", "0.677129", "0.67536193", "0.6733729", "0.67261857", "0.6679885", "0.6677603", "0.6663651", "0.66315514", "0.66315186", "0.6556962", "0.6548...
0.6829046
9
Return a list of columns' name.
def fKCV(pkvq): if zyDe(pkvq): return qQXR.loads(pkvq).keys() else: return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xq5Z(YKHO) -> x1iM[str]:\n return [YRbF.name for YRbF in YKHO.columns]", "def Txl5(YKHO):\n return YKHO.column_df().fieldName.tolist()", "def KaGe(YKHO) -> list:\n return list(YKHO.df.columns)", "def DmX2(YKHO):\n return YKHO._data.columns", "def NKcn(YKHO):\n NKcn = []\n for fvDH in ...
[ "0.8392744", "0.8282821", "0.82216", "0.8208293", "0.8191126", "0.816949", "0.8134865", "0.8124823", "0.8124388", "0.81155866", "0.81095", "0.80923706", "0.8068988", "0.8053082", "0.80373067", "0.8034901", "0.79556745", "0.79505795", "0.7943484", "0.78768986", "0.78686714", ...
0.0
-1
Return the output name.
def IN0G(YKHO, LBQ_): return YKHO._running_task.get_output_file_name(LBQ_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def of39(YKHO):\n return 'output_%05d' % YKHO.outputNo", "def xYGm(YKHO, G5NW: int) -> str:\n YKHO._valid()\n Nkuv = TO1V()\n GfdN(_e0h.tract_inference_model_output_name(YKHO.ptr, G5NW, dWW6(Nkuv)))\n Aofo = str(Nkuv.value, 'utf-8')\n _e0h.tract_free_cstring(Nkuv)\n return Aofo", "def W0tD...
[ "0.8563173", "0.79996485", "0.7995819", "0.7976889", "0.7853544", "0.7853544", "0.7853544", "0.7853544", "0.78447783", "0.7823171", "0.78070766", "0.78070766", "0.78070766", "0.78070766", "0.78070766", "0.78070766", "0.78070766", "0.78070766", "0.78070766", "0.78070766", "0.7...
0.0
-1
Return the number of elements in the list.
def u54L(YKHO): return YKHO.__len__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mLGw(list):\n return list.count()", "def hfF0(YKHO):\n u54L = 0\n for F6AI in YKHO.tl:\n u54L += 1\n return u54L", "def zNig(YKHO):\n vIOz = len(YKHO._list)\n return vIOz", "def zNig(YKHO):\n return len(YKHO.list)", "def zNig(vC9B):\n return len(vC9B)", "def szAg(YKHO) ...
[ "0.85292906", "0.8428451", "0.8115046", "0.8095491", "0.80629236", "0.7975536", "0.7933431", "0.7865864", "0.78413826", "0.78319705", "0.7810218", "0.779819", "0.777978", "0.777978", "0.777978", "0.7779109", "0.777705", "0.7741853", "0.7740406", "0.77348197", "0.77328056", ...
0.0
-1
Returns the object the view is displaying. By default this requires `self.queryset` and a `pk` or `slug` argument in the URLconf, but subclasses can override this to return any object.
def AMX5(YKHO, SR0I=None): if SR0I is None: SR0I = YKHO.get_queryset() _sei = YKHO.kwargs.get(YKHO.pk_url_kwarg) s5ru = YKHO.kwargs.get(YKHO.slug_url_kwarg) if not (_sei or s5ru): _sei = YKHO.request.GET.get(YKHO.pk_url_kwarg) s5ru = YKHO.request.GET.get(YKHO.slug_url_kwarg) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMX5(YKHO, SR0I=None):\n if SR0I is None:\n SR0I = YKHO.get_queryset()\n _sei = YKHO.kwargs.get(YKHO.pk_url_kwarg, None)\n s5ru = YKHO.kwargs.get(YKHO.slug_url_kwarg, None)\n if _sei is not None:\n SR0I = SR0I.filter(pk=_sei)\n if s5ru:\n SR0I = SR0I.filter(**YKHO.get_slug_f...
[ "0.8718114", "0.86129093", "0.85080475", "0.845965", "0.8433952", "0.82958835", "0.8283194", "0.82426256", "0.8221272", "0.8206684", "0.8182405", "0.815152", "0.8135529", "0.8112315", "0.80242544", "0.8016445", "0.7975815", "0.78954726", "0.78954726", "0.7871227", "0.7848145"...
0.8633326
1
Check if column(s) exist in provided table(s)
def I4TU(YKHO, ZLJ_, xU0C): ZLJ_ = bWeC.ensure_sequence(ZLJ_) xU0C = bWeC.ensure_sequence(xU0C) for vMHP in xU0C: tyNF = YKHO.columns[vMHP] for iVRZ in ZLJ_: if iVRZ not in tyNF: raise ValueError(f"column '{iVRZ}' not in tracer table '{vMHP}'")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uPHV(YKHO, z0q4, GTA_):\n xDcj = \"\\n IF COL_LENGTH('{table_name:s}','{column_name:s}') IS NOT NULL\\n SELECT 'Column Exists'\\n \".format(table_name=GTA_, column_name=z0q4)\n YKHO.cursor.execute(xDcj)\n try:\n YKHO.cursor.fetchone()\n except:\n ...
[ "0.77027494", "0.7374541", "0.7361039", "0.72822356", "0.7215948", "0.7144716", "0.70881474", "0.702434", "0.69934565", "0.6984533", "0.69656223", "0.69595367", "0.6954161", "0.69037837", "0.6868672", "0.682284", "0.6807497", "0.6775297", "0.6738503", "0.67355347", "0.6710704...
0.68733656
14
Draw points within corresponding camera's FoV on image provided. If no image provided, points are drawn on an empty(black) background.
def cqBo(YKHO, LNo8=None, p0xH=True): if LNo8 is not None: LNo8 = oyIN.uint8(oyIN.dstack((LNo8, LNo8, LNo8))) * 255 jbYn.imshow('Before projection', LNo8) jbYn.waitKey(0) XMS7 = jbYn.cvtColor(LNo8, jbYn.COLOR_BGR2HSV) else: XMS7 = oyIN.zeros(YKHO.img_detector.imgs.shape)....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AFBW(Ll8m, LTIa):\n for WKvO, LVAh, yzQ0, MKlR in LTIa:\n print('trace')\n jbYn.rectangle(Ll8m, (WKvO, LVAh), (WKvO + yzQ0, LVAh + MKlR), 255)\n return Ll8m", "def cqBo(YKHO, VXjJ, LTIa, nUHY=False, qfpW=(0, 50, 255)):\n for AU8u in LTIa:\n for WKvO, LVAh in AU8u:\n V...
[ "0.69834983", "0.6957028", "0.6906538", "0.6711678", "0.6692786", "0.6649904", "0.6639657", "0.6585665", "0.6381306", "0.6381172", "0.6316597", "0.6316597", "0.6296461", "0.6279548", "0.6275687", "0.62740237", "0.6252692", "0.62359905", "0.62350696", "0.62016475", "0.61941624...
0.7209451
0
Inspects a function's keyword arguments and filters an input dictionary to match. If `func` accepts variable keyword arguments, `filter_kwargs(func, kwargs)` returns `kwargs`. Otherwise, `filter_kwargs` will inspect `func`'s signature to determine what keyword arguments it accepts and remove any entries in kwargs that ...
def uIfa(JfyU, B2fa): fctm, wUfe = OwNE(JfyU) bJp8 = wUfe is not None if bJp8: return B2fa muwo = fctm.defaults if muwo is None: return {} DP7z = set(fctm.args[-len(muwo):]) SYbg = {} for YSA3 in B2fa: if YSA3 in DP7z: SYbg[YSA3] = B2fa[YSA3] retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIfa(aGrs, *qIxc, **B2fa):\n if DvSe(aGrs):\n return aGrs(*qIxc, **B2fa)\n m6n_ = jKi7.get_function_code(aGrs)\n r7vd = m6n_.co_varnames[:m6n_.co_argcount]\n SYbg = {}\n for LwG6, BWXx in list(B2fa.items()):\n if LwG6 in r7vd:\n SYbg[LwG6] = BWXx\n return aGrs(*qIxc, ...
[ "0.8307359", "0.8208298", "0.8136043", "0.73091507", "0.69521576", "0.6812438", "0.6723504", "0.6653047", "0.65363276", "0.6496875", "0.64784724", "0.64617676", "0.6345511", "0.63256603", "0.62886506", "0.62485075", "0.6209604", "0.6204877", "0.61876637", "0.61851895", "0.615...
0.8056761
3
Takes the output from the decapitated googlenet and transforms the output from a NxCxWxH to (NxWxH)xCx1x1 that is used as input for the lstm layers. N = batch size, C = channels, W = grid width, H = grid height.
def E8xF(Zxma): Zxma.f(QF3_('post_fc7_conv', bottoms=['inception_final_output'], param_lr_mults=[1.0, 2.0], param_decay_mults=[0.0, 0.0], num_output=1024, kernel_dim=(1, 1), weight_filler=I0EZ('gaussian', 0.005), bias_filler=I0EZ('constant', 0.0))) Zxma.f(AOn_('lstm_fc7_conv', scale=0.01, bottoms=['post_fc7_con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X0zr(lZ8q=4, ROpF=(1, YDdR, 512, 512)):\n C3ST = U78l.Sequential(fhcK.ModPadded(16, grAr.make_unet([40, 60, 80, 100], sub=n_8d.BDHW_LSTM(100))), *grAr.conv2d_block(48, 3, repeat=2), n_8d.BDHW_LSTM(32), n_8d.Conv2d(lZ8q, 3, padding=1))\n n_8d.shape_inference(C3ST, ROpF)\n return C3ST", "def P9ZZ(pt4o...
[ "0.65213275", "0.64287704", "0.6372403", "0.62979746", "0.62845385", "0.6259625", "0.62406343", "0.6214699", "0.61639094", "0.61571306", "0.61484265", "0.6145343", "0.6138231", "0.61209106", "0.61094457", "0.6098022", "0.60931283", "0.60867196", "0.6082192", "0.6065229", "0.6...
0.0
-1
Test loading a report with a nonexistent file.
def F2Ph(kCUX): tFj2 = '.noexist.obj' trZe.raises(U9ZW.LoadError, kCUX.load, tFj2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jex6(YKHO, ZqHk):\n Jmpp = ZqHk / 'file_1.csv'\n gzVs = pVAc(Jmpp)\n with trZe.warns(UserWarning, match='No directory or file found at .*') as AIu6:\n gzVs.load()\n for pEH_ in AIu6:\n print(pEH_.message)\n assert len(AIu6) == 1", "def sBN7(YKHO):\n m_u7 = p2k0(schema_name=YKH...
[ "0.76702577", "0.726567", "0.7254248", "0.7254099", "0.71638376", "0.71377987", "0.7094372", "0.7003395", "0.700256", "0.6981922", "0.6941192", "0.69401425", "0.6932651", "0.6913538", "0.69118506", "0.68974596", "0.6894078", "0.689", "0.68769836", "0.68621564", "0.6846908", ...
0.7859961
0
Test string representation of Report.
def Luqj(u3tA): wPi6 = 'testaccount\n transactions: 0\n transactions_in: 0\n transactions_out: 0\n sum: 0.00\n sum_in: 0.00\n sum_out: 0.00\n avg: 0.00' assert wPi6 == str(u3tA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KoHj(YKHO):\n u3tA = YKHO.report\n YKHO.assertIsNotNone(str(u3tA))\n YKHO.assertIsNotNone(repr(u3tA))", "def Dt2g(YKHO):\n Ii2e = m54y.objects.get(id=1)\n YKHO.assertEqual(Ii2e.__str__(), 'Dummy Type report: Dummy report')", "def r3xa(YKHO):\n YKHO.assertEqual(str(YKHO.__report), YKHO.__r...
[ "0.7621563", "0.74956155", "0.73134446", "0.7050807", "0.7003819", "0.6958826", "0.6949927", "0.68503124", "0.67354685", "0.6666086", "0.6416388", "0.6361908", "0.6360354", "0.6342182", "0.62708664", "0.62456316", "0.62326664", "0.6223661", "0.61971784", "0.6196805", "0.61622...
0.698594
5
Test updating the category of a Transaction.
def MT4f(Kh6j): Kh6j.update_category('atm') assert 'atm' == Kh6j.category
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MT4f(YKHO):\n pass", "def MT4f(YKHO):\n YKHO.add_test_category()\n NT__ = YKHO.authenticateAdmin()\n geh0 = YKHO.client.put('/api/v2/category/1', data=qQXR.dumps(vjht), headers={'Content-Type': 'application/json', 'Authorization': 'Bearer ' + NT__})\n YKHO.assertEqual(qQXR.loads(geh0.data)['st...
[ "0.8175334", "0.75881046", "0.7483066", "0.742643", "0.73515534", "0.7248706", "0.71674407", "0.7135658", "0.704819", "0.69897693", "0.692627", "0.68901575", "0.6874381", "0.6822484", "0.67862874", "0.67515594", "0.66792035", "0.65901095", "0.65480405", "0.6404153", "0.635596...
0.90948373
0
Return an empty header object.
def lsmZ(Emd4) -> NzWq: return Emd4(b'', [], [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q80R(Emd4):\n return {}", "def WBPg(YKHO):\n if YKHO.header_line is None:\n return iMeJ.union(*[eHNT.generate_header() for eHNT in YKHO])\n if YKHO.header_line == '':\n return iMeJ.union(*[eHNT.header for eHNT in YKHO])\n return iMeJ.parse(YKHO.header_line)", "def x5fe(YKHO):\n ...
[ "0.842178", "0.71779126", "0.70176065", "0.6877846", "0.6850103", "0.6810656", "0.68080896", "0.6780417", "0.677936", "0.66369694", "0.66122884", "0.6589865", "0.6523108", "0.65132314", "0.6491992", "0.646573", "0.64212567", "0.64122516", "0.6393358", "0.6391527", "0.6378768"...
0.8128285
1
Get the default expiration datetime
def KxgE() -> qcWV: return qcWV.utcnow() + SaoX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lpui():\n wzkt = EUP2()\n W8h9 = wzkt + d5IO.relativedelta.relativedelta(years=GPtr.Expiration_time_Years, months=GPtr.Expiration_time_Months, days=GPtr.Expiration_time_Days)\n return W8h9", "def exxM():\n return qcWV.date.today() + qcWV.timedelta(days=90)", "def C7HV(YKHO):\n YKHO.login_as_...
[ "0.8830782", "0.85529226", "0.77479315", "0.7363859", "0.73382443", "0.73297817", "0.7268487", "0.7268487", "0.724631", "0.7226623", "0.72031486", "0.71955717", "0.7185617", "0.7174802", "0.71673787", "0.71442604", "0.7124156", "0.7124156", "0.7124156", "0.7121083", "0.712005...
0.8113331
2
Checks if in a list of pd.DataFrame all DataFrame s have the same columns.
def QX4F(M0wk): WfCS = M0wk[0].columns.tolist() return all((WKvO.columns.tolist() == WfCS for WKvO in M0wk))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XRal(M0wk: list):\n if any([set(M0wk[0].columns) != set(jQ3Z.columns) for jQ3Z in M0wk]):\n raise ValueError('the columns of the DataFrames in the list are not the same')\n elif any((not M0wk[0].index.equals(jQ3Z.index) for jQ3Z in M0wk)):\n raise ValueError('the index of the DataFrames in ...
[ "0.77895963", "0.7184952", "0.7110725", "0.7093484", "0.68754995", "0.6720335", "0.66887075", "0.6606018", "0.6544188", "0.65216273", "0.6518719", "0.6518376", "0.64140934", "0.6376985", "0.63547397", "0.6306392", "0.62798554", "0.62660396", "0.6206916", "0.618848", "0.617666...
0.8520318
0
Recursive function that applies a list of functions to a DataFrame
def saxo(YKHO, D5KA, U5bT): pTf_ = jth9.deepcopy(D5KA) if not pTf_: return U5bT FYKK = list(pTf_.keys())[0] B2fa = pTf_.pop(FYKK) JfyU = W_Su(FYKK) if not pTf_: return JfyU(U5bT, **B2fa) return YKHO.apply_functions_to_data(pTf_, JfyU(U5bT, **B2fa))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gnxH(JfyU, jQ3Z, WKvO, _mSQ, *qIxc, **B2fa):\n return JfyU(jQ3Z[WKvO], jQ3Z[_mSQ], *qIxc, **B2fa)", "def gnxH(JfyU, jQ3Z, WKvO, _mSQ, *qIxc, **B2fa):\n return JfyU(jQ3Z[WKvO], jQ3Z[_mSQ], *qIxc, **B2fa)", "def suE3(jQ3Z: pd.DataFrame, JfyU) -> rLdf.DataFrame:\n jQ3Z = JfyU(jQ3Z)\n return jQ3Z",...
[ "0.65684", "0.65684", "0.6370711", "0.6350614", "0.62888664", "0.6264451", "0.6251226", "0.62455", "0.61674553", "0.61553454", "0.60835594", "0.60496134", "0.60187006", "0.6005138", "0.5995628", "0.5973476", "0.5966728", "0.59603953", "0.592371", "0.5898489", "0.5888547", "...
0.0
-1
Creates a DataFrame from grouped DataFrames. This is used in order to group the variables of the DataFrames, so we will get a DataFrame from each variable of the DataFrame. For example, if we have two sensors that measure the same things, for each variable they measure, a Dataframe will be generated, grouping both sens...
def y4rZ(qDyV): KUSm = rLdf.DataFrame() for IXKo, uOe2 in qDyV: uOe2.index = uOe2.index.droplevel(0) uOe2.columns = [IXKo] KUSm = rLdf.concat([KUSm, uOe2], axis=1) return KUSm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tSyl(YKHO, nPrm: DataFrame, ENzu: str, S6W2: list[str]) -> hxoQ:\n lsmZ = rLdf.DataFrame(columns=[*nPrm.columns, 'density'], dtype=float)\n if len(nPrm) < 2:\n return lsmZ\n try:\n TW6e = YKHO._get_support(nPrm, ENzu)\n except oyIN.linalg.LinAlgError:\n return lsmZ\n S6W2 = ...
[ "0.6431914", "0.6400213", "0.619316", "0.60913825", "0.6084381", "0.60496217", "0.6013872", "0.60046405", "0.6001593", "0.5909822", "0.5906518", "0.5883727", "0.58814347", "0.5873488", "0.58689743", "0.5867155", "0.58205354", "0.58088285", "0.57410675", "0.5733806", "0.571399...
0.62872845
2
Returns the sqrt of the squared distance between two points.
def Ayfi(EBgd: tuple, HpuQ: tuple) -> float: return round(epAf.sqrt((EBgd[0] - HpuQ[0]) ** 2 + (EBgd[1] - HpuQ[1]) ** 2), 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(lCHq: Tuple, ANJu: Tuple) -> float:\n return epAf.sqrt(mZ8i(lCHq, ANJu))", "def mZ8i(lCHq: Tuple, ANJu: Tuple) -> float:\n o4D3, si3g = lCHq\n ajwV, skBL = ANJu\n return (o4D3 - ajwV) ** 2 + (si3g - skBL) ** 2", "def k6pV(KwKv, YBrO):\n nhBs = KwKv[0] - YBrO[0]\n kGOI = KwKv[1] - YBr...
[ "0.76914304", "0.7578831", "0.7570316", "0.75090843", "0.75077224", "0.7444167", "0.7395453", "0.73786235", "0.7370546", "0.7361691", "0.73157203", "0.7308197", "0.7308197", "0.7308197", "0.73062354", "0.729315", "0.7284355", "0.72768193", "0.72692966", "0.7262074", "0.723991...
0.70445466
47
Creates two flattened lists of unadjusted T and adjusted pvalues. Flattens arrays so that scores corresponding to the same pair of compared classes are contiguous, e.g., [f0_p0, f1_p0, f2_p0, f0_p1, f1_p1, ...].
def ECI6(kiTU, qELT): c5yn = kiTU.shape[0] LG6G = kiTU.shape[1] vn9c = kiTU.flatten('C') jnKL = qELT.flatten('C') assert vn9c.shape == (LG6G * c5yn,) assert jnKL.shape == (LG6G * c5yn,) return (vn9c.tolist(), jnKL.tolist())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def map(niaX, UJuL):\n TIgf = []\n TFPw = niaX.shape[1]\n for rd7X in range(TFPw):\n z0hI = oyIN.argsort(-niaX[:, rd7X])\n HRJ_ = UJuL[:, rd7X][z0hI] == 1\n ytgA = oyIN.invert(HRJ_)\n tmLx = HRJ_.sum()\n if tmLx < 0.1:\n TIgf.append(float('nan'))\n ...
[ "0.60375905", "0.5959399", "0.57177883", "0.5633824", "0.56304747", "0.56240654", "0.5455189", "0.5348256", "0.52983904", "0.52938616", "0.5266601", "0.5259856", "0.52396655", "0.52396655", "0.52370286", "0.5221575", "0.5190992", "0.5185394", "0.5182391", "0.51526076", "0.515...
0.61185145
0
Creates flattened list of (repeated) feature names. The indexing corresponds with the flattened list of T values and the flattened list of pvalues obtained from _get_list_signif_scores().
def QYB9(WoPr, c5yn): LG6G = len(WoPr) return [WoPr[yMQe] for yMQe in range(LG6G)] * c5yn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o1a4(YKHO):\n PjvR = []\n YRbF = 0\n while YRbF < len(YKHO.features):\n Wjuk = []\n for Z9rn in YKHO.features[YRbF].get_ids():\n Wjuk.append(YKHO.features[YRbF].__getitem__(Z9rn).name)\n PjvR.append(Wjuk)\n YRbF += 1\n return PjvR", "def fIGK(YKHO):\n fv6...
[ "0.65737176", "0.64340156", "0.6260951", "0.62513155", "0.6239245", "0.6237684", "0.61994755", "0.6179873", "0.6073449", "0.6034583", "0.6019179", "0.59875304", "0.59676045", "0.5921722", "0.58781993", "0.586908", "0.5826546", "0.5784832", "0.5781562", "0.5770773", "0.5757031...
0.63802195
2
Constructs a VGG16 model
def a7Lb(vbWx): C3ST = HxRh() C3ST.load_state_dict(ht2j.load(vbWx)) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RgJ2():\n S1uA = HxRh(weights='imagenet', include_top=False, input_shape=koQU)\n for gEmA in S1uA.layers:\n gEmA.trainable = False\n Zxma = S1uA.output\n Zxma = D2Bo()(Zxma)\n Zxma = l6ZH(Fu4v, activation='softmax')(Zxma)\n return wOed(inputs=S1uA.input, outputs=Zxma)", "def a7Lb(**B...
[ "0.88553596", "0.8668288", "0.86491686", "0.83713084", "0.8272072", "0.8261369", "0.8231695", "0.82304347", "0.81971735", "0.8185238", "0.815954", "0.8122613", "0.8122613", "0.8122613", "0.8121413", "0.81188214", "0.8066974", "0.80530316", "0.8033417", "0.80179507", "0.798220...
0.7763668
35
Test check equal sum of rooms areas and unit area
def uc1c(YKHO): u54L, TVTK = (3000, 1) P6bq = vQDW(u54L, TVTK) P6bq.calculate_possible_rooms() for BlNT in P6bq.possible_rooms: uI1L = [] for abiq in BlNT: uI1L.append(Pusg(seET.mul, abiq)) if u54L * TVTK != sum(uI1L): print('Error in:', u54L, 'x', TVTK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQVK(YKHO):\n J1b4 = x7Ls(3, 2)\n YKHO.assertEqual(J1b4.area(), 6)\n CYjz = x7Ls(2, 10)\n YKHO.assertEqual(CYjz.area(), 20)\n bpa0 = x7Ls(8, 7, 0, 0, 12)\n YKHO.assertEqual(bpa0.area(), 56)", "def EYAx(YKHO):\n J1b4 = x7Ls(3, 2)\n CYjz = x7Ls(2, 10)\n bpa0 = x7Ls(8, 7, 0, 0, 12)\n ...
[ "0.7375026", "0.7295461", "0.71775216", "0.7018884", "0.6964509", "0.6952991", "0.69428074", "0.6909175", "0.69028527", "0.6725898", "0.6620416", "0.6618384", "0.6603441", "0.65731126", "0.65292007", "0.64974993", "0.6448365", "0.64285225", "0.64120156", "0.6406511", "0.63982...
0.82572836
0
total of a single value list should be this value
def PMW0() -> None: assert wjRY(1, 3) == 4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NiTE(YKHO, list):\n mq4h = 0\n for ZfUD in list:\n mq4h += ZfUD.sum\n return mq4h", "def sum(YKHO):\n return sum(YKHO.lst)", "def h4aS(nPrm):\n wjRY = 0\n for bGrB, Z5kt in nPrm:\n wjRY += Z5kt\n return wjRY", "def aL9y(BWXx: dict) -> int:\n V1Vz = 0\n for ZfUD in...
[ "0.7359505", "0.7264187", "0.70937073", "0.70177305", "0.7016208", "0.69656724", "0.6952494", "0.6944216", "0.6940467", "0.69396603", "0.6937591", "0.6918732", "0.6908158", "0.68462485", "0.6797967", "0.6797749", "0.67881364", "0.6754374", "0.67394996", "0.6709114", "0.670900...
0.0
-1
Return a dict with empty byte strings (which is the value SKVBC will report for any key that has never been written to) for all keys
def W9gz(YKHO): with RKD7.start_action(action_type='initial_state'): qWTa = b'' return dict([(G1Hx, qWTa) for G1Hx in YKHO.keys])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ucn2(nPrm):\n Ylbp = {}\n for H5ew, BWXx in nPrm.items():\n if BWXx is not None:\n Ylbp[H5ew] = BWXx\n return Ylbp", "def Ucn2(nPrm):\n Ylbp = {}\n for H5ew, BWXx in nPrm.items():\n if BWXx is not None:\n Ylbp[H5ew] = BWXx\n return Ylbp", "def vfGx(cmPJ...
[ "0.6276506", "0.6276506", "0.6195407", "0.6086603", "0.6067609", "0.6016766", "0.60159934", "0.5887244", "0.5883771", "0.5883133", "0.58615357", "0.58166796", "0.58146113", "0.5786226", "0.5781218", "0.5725092", "0.56899136", "0.5677265", "0.5667113", "0.56663233", "0.5657404...
0.6707789
0
Find the smallest number larger than `x` and has the same number of 1 bits as `x`
def wkpI(WKvO): assert WKvO > 0 ZuC6 = 0 while not V2zj(WKvO, ZuC6): ZuC6 += 1 uRVi = ZuC6 + 1 while V2zj(WKvO, uRVi): uRVi += 1 xie9 = uRVi - ZuC6 WKvO = NZgF(WKvO, uRVi) L8Ie = ~((1 << uRVi) - 1) A1D9 = (1 << xie9 - 1) - 1 WKvO &= L8Ie WKvO |= A1D9 retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H1rJ(WKvO: Number) -> int:\n return int(epAf.ceil(epAf.log(WKvO + 1, 2)))", "def SFBj(WKvO):\n ZWtq = 64\n for YRbF in range(ZWtq - 1):\n if WKvO >> YRbF & 1 != WKvO >> YRbF + 1 & 1:\n ZHfW = 1 << YRbF | 1 << YRbF + 1\n WKvO |= ZHfW\n return WKvO\n raise Va...
[ "0.8534488", "0.76183075", "0.7268255", "0.7023432", "0.6694771", "0.6653955", "0.6634319", "0.661828", "0.66175795", "0.6615296", "0.65636283", "0.6557475", "0.6554768", "0.6542567", "0.65341437", "0.65164894", "0.6511038", "0.6484728", "0.64724046", "0.64625025", "0.6459331...
0.0
-1
Return the scenario's root task configuration as a tuple. The tuple contains the name of the task, as well as the config for it. The root task is the toplevel task defined in the 'scenario' key, and typically is one of 'serial' or 'parallel', although this is not a requirement. The scenario runner takes care of recursi...
def vU3R(YKHO) -> AzJI[str, cuzp[ImMB, ImMB]]: tkAF, = YKHO.dict.items() return tkAF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PjRW(YKHO) -> cuzp:\n bGrB, hctf = YKHO.root_task\n return hctf", "def GPtr(YKHO) -> ekfL:\n if YKHO._config is None:\n YKHO._config = YKHO.load('task.yaml')\n return YKHO._config", "def P6_c(YKHO):\n from scenario_player.tasks.base import get_task_class_for_type\n L0_m, bGrB = YKH...
[ "0.728099", "0.57956564", "0.5721636", "0.5680409", "0.5641208", "0.5630449", "0.5616238", "0.55705", "0.5461469", "0.5390628", "0.53693086", "0.53344965", "0.5282556", "0.52672553", "0.5266234", "0.52582693", "0.52491695", "0.5201381", "0.5156286", "0.5153259", "0.51104623",...
0.6949827
1
Return the root task config for this scenario's root task.
def PjRW(YKHO) -> cuzp: bGrB, hctf = YKHO.root_task return hctf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vU3R(YKHO) -> AzJI[str, cuzp[ImMB, ImMB]]:\n tkAF, = YKHO.dict.items()\n return tkAF", "def LIOs(YKHO):\n return YKHO.configs[YKHO.cfgname].get('root', '')", "def X6ca(YKHO):\n return Ja5X(Ae4a, str(YKHO.external_id))", "def tk5Y():\n global _cfg_root\n return RLxj", "def tgzD():\n ...
[ "0.7225827", "0.71581596", "0.6653662", "0.66354984", "0.65619206", "0.65461445", "0.62752265", "0.6267744", "0.62463963", "0.61383015", "0.6009258", "0.6005031", "0.6001418", "0.59697384", "0.5962369", "0.5956608", "0.5954598", "0.5908932", "0.5880395", "0.5850367", "0.58112...
0.8815376
0
Returns a ist of image corner coordinates used in warping. These coordinates represent four corner points that will be projected to a target image.
def Gh83(LNo8): MKlR, yzQ0 = LNo8.shape[:2] HjHK = [(0, 0), (0, MKlR - 1), (yzQ0 - 1, 0), (yzQ0 - 1, MKlR - 1)] return HjHK raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HjHK(YKHO):\n return (YKHO.x, YKHO.y, YKHO.x + YKHO.w, YKHO.y + YKHO.h)", "def oM1k(YKHO):\n return (round(YKHO.c_x, 4), round(YKHO.c_y, 4))", "def zzQJ(M_DK: Tensor, BQsO: Tensor) -> llWB:\n p0Os = BQsO / 2\n ShLW = M_DK - p0Os\n XOP0 = M_DK + p0Os\n return ht2j.cat((ShLW, XOP0), -1)", ...
[ "0.6890532", "0.68746036", "0.68714315", "0.67786735", "0.67655444", "0.67588323", "0.6609367", "0.6557485", "0.6486779", "0.6486439", "0.64541715", "0.64287", "0.6346659", "0.6321142", "0.6316354", "0.630662", "0.6297255", "0.62609863", "0.625053", "0.6222482", "0.6211916", ...
0.6277271
17
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key
def NMoC(YKHO, H5ew: int) -> int: yrhJ = H5ew % len(YKHO.lst) uv6v = YKHO.lst[yrhJ] DkWr = uv6v.next while DkWr is not None and DkWr.key <= H5ew: if DkWr.key == H5ew: return DkWr.val else: DkWr = DkWr.next return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap:\n return YKHO.hashmap[H5ew]\n else:\n return -1", "def NMoC(YKHO, H5ew: int) -> int:\n return YKHO.hash_map.get(H5ew, -1)", "def NMoC(YKHO, H5ew: int) -> int:\n or8S = YKHO.hashf(H5ew)\n DpUl = YKHO.map[or8S]\n while D...
[ "0.7847755", "0.7573005", "0.75308996", "0.7467398", "0.74587834", "0.7427292", "0.7400867", "0.73942757", "0.7340989", "0.7307227", "0.72522706", "0.72412497", "0.72251767", "0.7183667", "0.7171232", "0.7168927", "0.7141129", "0.7086812", "0.7037615", "0.6958717", "0.6835037...
0.62833714
51
Get the best for the specified model.
def OmFP(YKHO, VlDb): return (None, 0, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nd85(YKHO):\n return YKHO.auto_est.get_best_model()", "def nd85(YKHO):\n return YKHO.best_model.model", "def RLKj(YKHO, C3ST):\n C3ST.load_state_dict(a1PO.load(YKHO.filename))\n C3ST.eval()\n return (C3ST, YKHO.best_loss, YKHO.best_accuracy, YKHO.best_epoch)", "def uqnm(YKHO):\n return ...
[ "0.8038369", "0.8027815", "0.79978627", "0.7955338", "0.7720493", "0.76955897", "0.76775706", "0.74549633", "0.73493284", "0.73050404", "0.7163968", "0.7143605", "0.71270955", "0.70754826", "0.70388186", "0.7001955", "0.69420016", "0.6930856", "0.68953604", "0.6880224", "0.68...
0.60181934
66
Get the hash for a value.
def OoXC(YKHO, BWXx): return HBct.sha1(str(BWXx)).hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OoXC(BWXx):\n return HBct.sha256(BWXx).hexdigest()", "def XUqs(YKHO, wEf2):\n return YKHO._permutation[wEf2 & YKHO._HASH_MASK]", "def sAxw(YKHO, BWXx):\n return hash(BWXx) % YKHO.size", "def OoXC(YKHO, BWXx):\n Aofo = YKHO.__safe_modulo(YKHO.a * BWXx + YKHO.b, YKHO.prime)\n return YKHO.__s...
[ "0.8259052", "0.78668225", "0.76811546", "0.76668656", "0.76516074", "0.7461931", "0.7369251", "0.7342174", "0.73328036", "0.7295016", "0.72927165", "0.7271887", "0.7257715", "0.7257715", "0.72418284", "0.72344846", "0.719995", "0.71440625", "0.7143929", "0.7142232", "0.71184...
0.8238549
1
Convert a string to a boolean.
def JiQe(BWXx: str) -> bool: return BWXx.lower() not in {'', '0', 'no', 'n', 'false', 'off'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M0mR(YKHO, str):\n if str.lower() == 'true':\n return True\n elif str.lower() == 'false':\n return False\n else:\n raise ValueError", "def M0mR(YKHO, str):\n try:\n if str.lower() == 'true':\n return True\n elif str.lower() == 'false':\n re...
[ "0.8883282", "0.8838025", "0.8708854", "0.8703328", "0.86957926", "0.86933583", "0.8648467", "0.8588484", "0.8532455", "0.84870857", "0.8476373", "0.84612614", "0.8460088", "0.8455442", "0.8444073", "0.84389055", "0.84360284", "0.84272605", "0.84053487", "0.8381866", "0.83811...
0.0
-1
Convert a string like 'D1' to a "reference_date timedelta(days=1)".
def HD4I(BWXx, urdX): QfC1 = BWXx.strip(' ').replace(' ', '').upper() if not ZbWC.match('^D[\\-+][0-9]+$|^D$', QfC1): raise ValueError('Wrong value "{}"'.format(BWXx)) if QfC1 == 'D': return urdX elif QfC1[:2] == 'D-': Sm0u = int(QfC1[2:]) return urdX - fCoM(days=Sm0u) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R2Sr(vIwR):\n RA_F = 0\n if 'd' in vIwR:\n RA_F = fCoM(days=int(vIwR.split('d')[0])).total_seconds()\n elif 'h' in vIwR:\n RA_F = fCoM(hours=int(vIwR.split('h')[0])).total_seconds()\n return RA_F", "def N_DW(GXef: str) -> int:\n yKcO = _c1T(2019, 12, 12)\n CjKC, x0eS, lO87 = (...
[ "0.70735633", "0.6763308", "0.6465868", "0.634625", "0.625465", "0.61381495", "0.60669684", "0.60579693", "0.60151327", "0.59647167", "0.59143865", "0.5835908", "0.5819316", "0.58191687", "0.5792115", "0.5654279", "0.5647472", "0.56458944", "0.56397426", "0.5639041", "0.56094...
0.7477727
0
_getRunConfig_ Get a RunConfig instance for the given run number.
def gINe(YKHO, sSYr): if not YKHO.runConfigCache: YKHO.runConfigCache = EgZb(promptSkimming=True) YKHO.runConfigCache.t0astDBConn = YKHO.t0astDBConn YKHO.runConfigCache.configCache = Hy7s.path.join(YKHO.config.PromptSkimScheduler.workloadCache, 'RunConfig') return YKHO.runConfigCache.get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hjI1(YKHO):\n return YKHO._t2r_model.get_run_config()", "def jxOU(j73X):\n GPtr = enR0.ConfigParser()\n GPtr.read(j73X)\n ZGE9 = GPtr['model']['name']\n ynwe = GPtr['train']\n GhuM = GPtr['input_shape']\n GhuM = (int(GhuM['width']), int(GhuM['height']), int(GhuM['channels']))\n GPtr =...
[ "0.6752684", "0.65841585", "0.63873786", "0.6338717", "0.6301007", "0.62487686", "0.622409", "0.6205247", "0.6176119", "0.60992044", "0.60992044", "0.60362834", "0.6019346", "0.59587693", "0.5894491", "0.5846211", "0.57943016", "0.57715285", "0.5721677", "0.57140154", "0.5707...
0.79705197
0
Load the pretrained ResNet101 and remove last layers.
def FIMM(YKHO, fadb): super(KmzZ, YKHO).__init__() WWYJ = FYrf.resnet101(pretrained=True) KZ52 = list(WWYJ.children())[:-3] YKHO.resnet = U78l.Sequential(*KZ52) YKHO.adaptive_pool = U78l.AdaptiveAvgPool2d((fadb, fadb))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K0Xe(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 23, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(gXLj(FYrf.resnet101(pretrained=True)))\n return C3ST", "def K0Xe(mL4f=False):\n SkYi = ''\n C3ST = tLAp(MF6R, [3, 4, 23, 3])\n if mL4f:\n Nh79(SkYi, net=C3ST)\n return C3S...
[ "0.70186764", "0.6756796", "0.6709329", "0.669548", "0.6689483", "0.6638639", "0.6633356", "0.6609587", "0.6609587", "0.6609587", "0.65840346", "0.65504396", "0.65210664", "0.64929235", "0.64894795", "0.6475681", "0.6466169", "0.6441865", "0.64352113", "0.64143705", "0.641281...
0.0
-1
Generate attention encoded input from encoder output and previous hidden output
def KVH6(YKHO, E9hj, bNBm): PvCc = YKHO.encoder_att(E9hj) _Uzs = YKHO.hidden_att(bNBm) AniK = YKHO.full_att(YKHO.relu(PvCc + _Uzs.unsqueeze(1))).squeeze(2) Cwt5 = YKHO.softmax(AniK) Ubzx = (E9hj * Cwt5.unsqueeze(2)).sum(dim=1) return (Ubzx, Cwt5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v2uf(QTBn, GQw5, h3vC, MnDN, **B2fa):\n if MnDN.attention_window_size > 0:\n n6TT = SmO6\n else:\n n6TT = yz0T\n return n6TT(QTBn, GQw5, h3vC, MnDN, **B2fa)", "def nrOS(YKHO, g4y1, p83V, QTBn):\n rWrZ = ZylS.nn.dropout(ZylS.nn.embedding_lookup(YKHO.embedding, g4y1), keep_prob=YKHO.k...
[ "0.6956838", "0.6940765", "0.6938324", "0.6837309", "0.6827824", "0.68026286", "0.67888534", "0.67316616", "0.6728723", "0.67251503", "0.6714173", "0.67049223", "0.6704082", "0.66684246", "0.665918", "0.6631797", "0.662168", "0.660554", "0.6592826", "0.6570536", "0.6570348", ...
0.68707484
3
Gets the base64_encoded_data of this FrameworkDataImageContentInterface. Media data (base64 encoded content)
def QDt5(YKHO) -> str: return YKHO._base64_encoded_data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VZ1X(YKHO):\n YKHO.get_image()\n with open('%s' % YKHO.value) as eHNT:\n nPrm = eHNT.read()\n eHNT.close()\n Hy7s.remove('%s' % YKHO.value)\n return nPrm.encode('base64')", "def iIby(YKHO):\n return YKHO._rawImage", "def fnxd(YKHO):\n return YKHO._image", "def rxQ7...
[ "0.67928094", "0.66563994", "0.66229343", "0.6411731", "0.63958144", "0.63812995", "0.63812995", "0.6321779", "0.63170815", "0.62856656", "0.6234231", "0.62321144", "0.6166662", "0.6152564", "0.61301947", "0.6102924", "0.60852826", "0.6046739", "0.60376495", "0.6034468", "0.5...
0.7298592
0
This function will return a string representation of the object.
def zAg0(YKHO): EiSI = '' EiSI += '%s:%s(id:%d)' % (YKHO.getClusterName(), YKHO.getClusterNodeName(), YKHO.getClusterNodeID()) o2qe = list(YKHO.__mapOfMountedFilesystemLabels.keys()) o2qe.sort() for Nk58 in o2qe: EiSI += '\n\t%s --> %s' % (Nk58, YKHO.__mapOfMountedFilesystemLabels.get(Nk58))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.object_repr", "def zAg0(YKHO) -> str:\n return lSJJ(YKHO)", "def zAg0(YKHO):\n return str(YKHO.obj)", "def zAg0(YKHO):\n return _RHq(YKHO)", "def zAg0(YKHO):\n return _RHq(YKHO)", "def zAg0(YKHO):\n return YKHO.tostring()", "def Sa1R(YKHO, YEnM):\n rai...
[ "0.8451997", "0.8405094", "0.833166", "0.8225225", "0.8225225", "0.81537205", "0.81211054", "0.8106524", "0.8069692", "0.8069692", "0.8069692", "0.8069692", "0.8069692", "0.8069692", "0.80630267", "0.80630267", "0.80630267", "0.80438614", "0.8043126", "0.8031463", "0.80019796...
0.0
-1
This function returns a list of all the mounted GFS2 filesystems.
def xRVY(): Wl9k = 'gfs2' dvGC = [] zJsh = m8Pi('mount', ['-l']) if not zJsh == None: ion1 = zJsh.split('\n') for zFiD in ion1: Do7B = zFiD.split() if len(Do7B) >= 5: if Do7B[4] == Wl9k: dvGC.append(zFiD) return dvGC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QIkE(PCpl):\n return PCpl.LMI_MountedFileSystem.instances()", "def FaTZ(YKHO):\n oUZx = 'cat /proc/fs/lustre/mgs/MGS/filesystems'\n RI88 = YKHO.sh_run(oUZx)\n if RI88.cr_exit_status != 0:\n G9jH.error('failed to run command [%s] on host [%s], ret = [%d], stdout = [%s], stderr = [%s]', oUZx...
[ "0.76472396", "0.75550175", "0.74005145", "0.73835534", "0.7281551", "0.71659046", "0.7087806", "0.70535433", "0.6812832", "0.67835945", "0.67730886", "0.6764789", "0.674774", "0.6721066", "0.670074", "0.66939986", "0.6642767", "0.66134393", "0.6604331", "0.6596938", "0.65896...
0.8489611
0
Add an enemy to the level
def Iw9G(hOrn, mWFP=None): assert type(mWFP) is str or mWFP == None h1am(hOrn) if mWFP == None: ysYi = Hy7s.listdir('./Enemys/') UfOt = ysYi[ajWY(0, len(ysYi) - 1)] if UfOt in hOrn['availableEnemys']: hOrn['enemyList'].append(lUw0.Enemy(UfOt)) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PF0p(YKHO, JjEH):\n YKHO.enemies.append(JjEH)", "def H2v5(YKHO, JjEH):\n YKHO.enemies.append(JjEH)", "def Y1gW(YKHO):\n bioi = YKHO.scenario.enemy_start_position\n WKvO = bioi[0] + tuKI.uniform(-10, 10)\n LVAh = bioi[1] + tuKI.uniform(-10, 10)\n YKHO.add(gig7.Enemy(WKvO, LVAh, YKHO.scenar...
[ "0.8473625", "0.8351133", "0.74674", "0.7300547", "0.7292373", "0.71402663", "0.71208507", "0.7087184", "0.69929916", "0.69159514", "0.6847886", "0.6836667", "0.67844045", "0.6739737", "0.6702021", "0.6613415", "0.66098416", "0.6511071", "0.64206886", "0.6399", "0.6362589", ...
0.7680782
2
Test the ``Constraint.transform`` method with all columns missing. If ``table_data`` is missing all of the ``constraint_columns`` a ``MissingConstraintColumnError`` is raised.
def Nlkj(YKHO): KAOR = _Ikr() KAOR._transform = lambda WKvO: WKvO KAOR.constraint_columns = ('a',) with trZe.raises(MHFg): KAOR.transform(rLdf.DataFrame())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q7vT(YKHO):\n KAOR = _Ikr()\n KAOR._transform = lambda WKvO: WKvO\n KAOR.constraint_columns = ('a',)\n with trZe.raises(MHFg):\n KAOR.transform(rLdf.DataFrame([[1, 2], [3, 4]], columns=['b', 'c']))", "def EQty(YKHO):\n nPrm = rLdf.DataFrame({'a': [0, 1, 2], 'b': [3, 4, 5]}, index=[0, 1,...
[ "0.7930396", "0.7175175", "0.636993", "0.6083855", "0.60394526", "0.6001466", "0.5953722", "0.5929692", "0.5867868", "0.5816623", "0.5809255", "0.5786298", "0.57736224", "0.57385355", "0.56813616", "0.5662417", "0.56463647", "0.5626924", "0.5607225", "0.55699193", "0.5544494"...
0.81981957
0
Test the ``Constraint.from_dict`` method passing a FQN. If the ``constraint`` string is a FQN, import the class before creating an instance of it.
def wtaU(YKHO): uwp7 = {'constraint': 'sdv.constraints.tabular.FixedCombinations', 'column_names': ['a', 'b']} KAOR = _Ikr.from_dict(uwp7) assert isinstance(KAOR, LZni) assert KAOR._columns == ['a', 'b']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzs1(YKHO):\n uwp7 = {'constraint': 'FixedCombinations', 'column_names': ['a', 'b']}\n KAOR = _Ikr.from_dict(uwp7)\n assert isinstance(KAOR, LZni)\n assert KAOR._columns == ['a', 'b']", "def jG8h(Emd4, qHj0) -> 'Rule':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(fK8P):\n _2sc ...
[ "0.6220571", "0.56914973", "0.561367", "0.5607541", "0.5542877", "0.5541563", "0.5470509", "0.5301723", "0.5278496", "0.52331203", "0.51847214", "0.5172378", "0.5162268", "0.5149811", "0.51349956", "0.5123205", "0.5122065", "0.5114313", "0.5104491", "0.5082262", "0.5071542", ...
0.6849659
0
Get a random element from the collection.
def UIrZ(YKHO): return YKHO.li[tuKI.randint(0, len(YKHO.li) - 1)][0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8Zf(YKHO):\n try:\n return YKHO.object().random_element()\n except AttributeError:\n return Acvy(YKHO.list())", "def LAaV(xUwc, q24Q=None):\n try:\n d6pt = tuKI.randint(0, len(xUwc) - 1)\n if q24Q is None:\n return xUwc[d6pt]\n else:\n return...
[ "0.8221962", "0.7761752", "0.750674", "0.74715596", "0.7446763", "0.7373989", "0.7305137", "0.71799874", "0.7151725", "0.7148621", "0.709205", "0.7078637", "0.7044884", "0.70126224", "0.6974537", "0.69440144", "0.6925515", "0.69068164", "0.69025487", "0.6900869", "0.68797004"...
0.7271455
7
Declares a structure to be a double linked list management structure. register_double_linked_list_record_type(struct_Entry, 'next', 'previous')
def l48k(YKHO, Bmg9, KVH6, ZD5u, iGZW=None): if not issubclass(Bmg9, gk2W.Structure) and (not issubclass(Bmg9, gk2W.Union)): raise TypeError('Feed me a ctypes record rype') CHcV = getattr(Bmg9, KVH6) nzso = getattr(Bmg9, ZD5u) Csk6 = dict(Gtrv.get_record_type_fields(Bmg9)) CHcV = Csk6[KVH6] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mnMW(YKHO, Bmg9, vXX7, zLD8, XPw1):\n if not issubclass(Bmg9, gk2W.Structure) and (not issubclass(Bmg9, gk2W.Union)):\n raise TypeError('Feed me a ctypes record type in record_type')\n if not issubclass(zLD8, gk2W.Structure) and (not issubclass(zLD8, gk2W.Union)):\n raise TypeError('Feed me...
[ "0.7041547", "0.67173845", "0.6564903", "0.5576092", "0.543142", "0.5348061", "0.513677", "0.508429", "0.49071813", "0.48718867", "0.46923593", "0.46910208", "0.46742833", "0.46640965", "0.46630356", "0.46484476", "0.4647627", "0.46257803", "0.4625138", "0.46170026", "0.46051...
0.757938
0
Returns the list info for a field in a record_type.
def MmVI(YKHO, Bmg9, K_Sa): for WKvO in YKHO._get_list_fields(Bmg9): if WKvO[0] == K_Sa: return WKvO raise ValueError('No such registered list field: %s for type: %s' % (K_Sa, Bmg9.__name__))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ATW7(YKHO, Bmg9):\n if isinstance(Bmg9, gk2W.Structure) or isinstance(Bmg9, gk2W.Union):\n raise TypeError('Feed me a type not an instance')\n if not issubclass(Bmg9, gk2W.Structure) and (not issubclass(Bmg9, gk2W.Union)):\n raise TypeError('Feed me a record type')\n RGkE = list(Bmg9.__m...
[ "0.7578563", "0.70866925", "0.7032286", "0.6798202", "0.6720473", "0.6658737", "0.6593185", "0.64991724", "0.6495022", "0.6459565", "0.64242524", "0.640319", "0.63809544", "0.6352719", "0.63466495", "0.6336009", "0.6336009", "0.6332995", "0.6270083", "0.6261203", "0.62450457"...
0.8449526
0
return the field in record_type that are part of a linked list.
def ATW7(YKHO, Bmg9): if isinstance(Bmg9, gk2W.Structure) or isinstance(Bmg9, gk2W.Union): raise TypeError('Feed me a type not an instance') if not issubclass(Bmg9, gk2W.Structure) and (not issubclass(Bmg9, gk2W.Union)): raise TypeError('Feed me a record type') RGkE = list(Bmg9.__mro__[:-3])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MmVI(YKHO, Bmg9, K_Sa):\n for WKvO in YKHO._get_list_fields(Bmg9):\n if WKvO[0] == K_Sa:\n return WKvO\n raise ValueError('No such registered list field: %s for type: %s' % (K_Sa, Bmg9.__name__))", "def f7rT(YKHO, Bmg9):\n return YKHO._single_link_list_types[Bmg9]", "def MF5R(YKH...
[ "0.70777696", "0.65542567", "0.6387403", "0.6295336", "0.62834346", "0.6202826", "0.6189359", "0.5958747", "0.5947983", "0.5939483", "0.5923134", "0.5853576", "0.5853576", "0.5853576", "0.57541144", "0.5738932", "0.56577826", "0.5637506", "0.55892915", "0.5585511", "0.5576049...
0.6606688
1
It returns all unique labels.
def s8RJ(K9NE: Language, b6H_: list[dict[str, Any]]) -> None: amNS = B6ou(K9NE, spaczz_patterns=b6H_) assert all([UXqs in amNS.labels for UXqs in ['GPE', 'STREET', 'DRUG', 'NAME', 'BAND']]) assert len(amNS.labels) == 5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OrFa(YKHO, tmDr: bool=True) -> x1iM[ImMB]:\n DumB: x1iM[ImMB] = []\n for ICn2 in YKHO.results.values():\n Crrw = ICn2.labels\n if tmDr:\n mad4 = [vC9B[0] for vC9B in Crrw]\n DumB.extend(mad4)\n else:\n DumB.extend(Crrw)\n return list(set(DumB))", ...
[ "0.8008269", "0.7715798", "0.7514722", "0.7514722", "0.7458094", "0.73567015", "0.72899055", "0.71870214", "0.7148294", "0.71410084", "0.7136933", "0.7121023", "0.7086785", "0.70823246", "0.70823246", "0.7066599", "0.70572233", "0.7046398", "0.7046398", "0.70264524", "0.69958...
0.0
-1
The status of the resource.
def jGRS(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO) -> 'outputs.ResourceStatusResponse':\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO):\n return ECwD(YKHO, 'status')", "def jGRS(YKHO):\n return YKHO._request_get('')", "def jGRS(YKHO):\n return YKHO._status", "def QtQ8(YKHO):\n return YKHO.status", "def jGRS(YKHO):\n ...
[ "0.895918", "0.8555041", "0.85238826", "0.85102475", "0.84845716", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", "0.84787506", ...
0.0
-1
Get an existing Acl resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, OMNm: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['AclAclEntryArgs']]]]]=None, A6PM: Optional[pulumi.Input[str]]=None, uQ_Y: Optional[pulumi.Input[str]]=None, TJ_E: Optional[pulumi.Input[bool]]=None, jGRS: Optional[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, cuh1: Optional[pulumi.Input[str]]=None, Cbc0: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, DBeR: Optional[pulumi.Input[bool]]=None, t8iH: Optional[pulumi.Inpu...
[ "0.6334014", "0.61587614", "0.6133721", "0.59580314", "0.5877824", "0.5875762", "0.58552283", "0.5738346", "0.5718269", "0.570386", "0.56967854", "0.56647795", "0.56504583", "0.56166506", "0.5596296", "0.55959547", "0.5591006", "0.55844134", "0.558356", "0.55819905", "0.55795...
0.5778243
7
The status of the resource.
def jGRS(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO) -> 'outputs.ResourceStatusResponse':\n return qe4Y.get(YKHO, 'status')", "def jGRS(YKHO):\n return ECwD(YKHO, 'status')", "def jGRS(YKHO):\n return YKHO._request_get('')", "def jGRS(YKHO):\n return YKHO._status", "def QtQ8(YKHO):\n return YKHO.status", "def jGRS(YKHO):\n ...
[ "0.89584583", "0.85530764", "0.8521832", "0.85083944", "0.8482543", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", "0.8476842", ...
0.0
-1
return get_config()['provider_zones'][env.provider_zone] if key does not exist than falls back to default zone
def O2qn(): GPtr = tgzD() if sEAN.provider_zone in GPtr['provider_zones']: lhKE = sEAN.provider_zone else: lhKE = GPtr['provider_zones']['default'] _Fei = GPtr['provider_zones'][lhKE] if 'driver' not in _Fei: raise RuntimeError("Provider zone %s is missing the 'driver' option...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwEC(YKHO, rlUT: str) -> dict:\n return YKHO.provider_defaults.get(rlUT.lower(), {})", "def H0V3():\n return cnCo('--get-default-zone')", "def QTOS(YKHO):\n return YKHO.__default_zone_access", "def ZKlS(YKHO, ZfUD):\n _AKB = ZfUD.return_parent()\n AoT4 = _AKB.conf['yamahayxc_zone']\n re...
[ "0.6402256", "0.6234125", "0.6121805", "0.6018672", "0.5985373", "0.58862334", "0.58862334", "0.58862334", "0.5877993", "0.5876356", "0.5833738", "0.5702583", "0.565311", "0.565311", "0.5609067", "0.55812365", "0.55324507", "0.5474939", "0.5473672", "0.5473672", "0.5473672", ...
0.7567465
0
Tests the calculator_add function
def vU7A(): assert euR3.calculator_add(4, 4) == 8 assert euR3.calculator_add(0, 0) == 0 assert euR3.calculator_add(0, 1) == 1 assert euR3.calculator_add(0, -5) == -5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xNJZ(YKHO):\n Aofo = YKHO.calc.add(2, 2)\n YKHO.assertEqual(4, Aofo)", "def n22U(YKHO):\n YKHO.assertEqual(YKHO.math_helper.calc('addition', 1, 1), 2)", "def xNJZ(YKHO):\n hzm0 = sFjc()\n Aofo = hzm0.add(2, 2)\n YKHO.assertEqual(4, Aofo)", "def mVFc(YKHO):\n YKHO.assertEqual(4, YKHO....
[ "0.8388014", "0.83772385", "0.82759213", "0.8157399", "0.81135154", "0.806384", "0.8000835", "0.79958034", "0.79887074", "0.79791325", "0.79699856", "0.79619366", "0.7958783", "0.7937939", "0.7937939", "0.791644", "0.78723943", "0.77837276", "0.774871", "0.7724755", "0.766003...
0.8731781
0
Provide the AWS subnet_id used for AWS operation from subnet_name.
def nMP0(YKHO, UkFk, xOeT=None): pyfM = None jxKS = YKHO._get_vpc_handle() DN22 = xOeT if xOeT else YKHO.vpc_id bo34.info('Fetching list of subnets of VPC:%s' % DN22) FrXK = {'vpc-id': DN22, 'state': 'available'} try: Npkd = jxKS.get_all_subnets(filters=FrXK) except Exception as e: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pyfM(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'subnet_id')", "def pyfM(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'subnet_id')", "def pyfM(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'subnet_id')", "def pyfM(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'subnet_id')"...
[ "0.82452875", "0.82452875", "0.82452875", "0.82452875", "0.82452875", "0.82452875", "0.82452875", "0.81207496", "0.8120368", "0.8120368", "0.8120368", "0.8120368", "0.8120368", "0.8120368", "0.8120368", "0.8120368", "0.8120368", "0.8120368", "0.8120368", "0.8120368", "0.81203...
0.72899413
47
translates an rgb tuple of int to a tkinter friendly color code
def VwNc(d7Eb): return '#%02x%02x%02x' % d7Eb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IXwv(Z9rn):\n return tuple([int(255 * wEf2) for wEf2 in Z9rn[:3]])", "def d7Eb(d7Eb):\n return '#%02x%02x%02x' % d7Eb", "def tz7b(d7Eb):\n return '#%02x%02x%02x' % d7Eb", "def tz7b(d7Eb):\n return '#%02x%02x%02x' % d7Eb", "def foJY(qfpW):\n if qfpW:\n qfpW = ''.join([WKvO * 2 for ...
[ "0.72489655", "0.71920615", "0.7186514", "0.71832377", "0.7167646", "0.70948756", "0.7091499", "0.7068726", "0.70404005", "0.7030481", "0.7017892", "0.6987735", "0.69874454", "0.69874454", "0.69874454", "0.697915", "0.6948122", "0.69480467", "0.6930442", "0.6927939", "0.68983...
0.69778824
16
Definite integral of passed function.
def caEF(itYf, YslS, SeSY, Uzsc): try: if YslS == 'x': WKvO = rmc3('x') dYLX = zQMB(itYf, (WKvO, SeSY, Uzsc)) if YslS == 'y': LVAh = rmc3('y') dYLX = zQMB(itYf, (LVAh, SeSY, Uzsc)) if YslS == 'z': epBp = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u6CI():\n return None", "def eAkl(exwG):\n return (-1) ** exwG * wc5T(exwG) + (-1) ** (exwG + 1) * TFEx(exwG) / oyIN.exp(1)", "def i47E(*qIxc):\n if len(qIxc) == 4:\n return NnFp(*qIxc, hold=True)\n else:\n return iBQT(*qIxc, hold=True)", "def zQMB(eHNT, gqRb, ODP9, ywwl):\n ...
[ "0.73990494", "0.6771365", "0.6559034", "0.64743346", "0.64107317", "0.63649607", "0.6330204", "0.6330204", "0.6319237", "0.63006455", "0.6272369", "0.62600374", "0.62452424", "0.62350994", "0.6231439", "0.62267756", "0.62168235", "0.62143725", "0.62000763", "0.6162048", "0.6...
0.0
-1
Regularized cost function for HIP model
def lJHd(NArs, WKvO, LVAh, F9tP): exwG = len(WKvO) yGTL, q7In, Nq1b, Z9rn, KMvS, RHJb = NArs for YRbF in Ni9Y(4): if F9tP[YRbF] == 0: F9tP[YRbF] = 1 KFFv, cufM, nWNZ, Vg51, yzQ0 = F9tP IMih = YEmv(NArs, WKvO) Ut74 = IMih - LVAh sSN_ = oyIN.sum(Ut74 ** 2) / 2 sSN_ += y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Il7w(YKHO, q7In, FhWq=0):\n EcVT = YKHO.X\n LVAh = YKHO.y\n C7Ls = 1 / (1 + oyIN.exp(-oyIN.matmul(EcVT, q7In)))\n assert C7Ls.shape == LVAh.shape\n r8hN = len(LVAh)\n sSN_ = sum(-LVAh * oyIN.log(C7Ls) - (1 - LVAh) * oyIN.log(1 - C7Ls))\n sSN_ = sSN_ / r8hN\n return sSN_", "def UM2M(YK...
[ "0.6781919", "0.67555", "0.6735056", "0.6711205", "0.670911", "0.670911", "0.670911", "0.6695743", "0.6690655", "0.6688324", "0.6659376", "0.66505504", "0.6649251", "0.66085845", "0.6597464", "0.65653867", "0.65424365", "0.65382504", "0.65280706", "0.6525917", "0.65166664", ...
0.66766447
10
Given latitude and longitude strings, return a (stop_name, wheelchair_accessible) tuple for the nearest MBTA stop to the given coordinates.
def yBXy(_UuI, fopC): NArs = {'api_key': iKm0, 'filter[latitude]': _UuI, 'filter[longitude]': fopC, 'filter[radius]': 20, 'sort': 'distance', 'page[limit]': 1} o636 = uRlK.parse.urlencode(NArs) bD7m = YUo1 + '?' + o636 nPrm = c3ht(bD7m) Ak90 = nPrm.get('data')[0] azoT = Ak90.get('attributes') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tTVt(TGQZ):\n QnmL, Swre = or6K(TGQZ)\n d_kg, oVqj = yBXy(str(QnmL), str(Swre))\n print('Closest stop is: {}'.format(d_kg))\n if oVqj:\n print('stop is wheelchair accessible')\n else:\n print('Stop is not wheelchair accessible')\n return (d_kg, oVqj)", "def L0qW(_UuI, fopC):\n...
[ "0.7559479", "0.7424542", "0.7275522", "0.72468007", "0.72013533", "0.7081479", "0.7026599", "0.69121724", "0.68310165", "0.6737652", "0.67144316", "0.65967214", "0.64776045", "0.6427126", "0.6427126", "0.64067954", "0.6402994", "0.62399286", "0.6152342", "0.6150149", "0.6146...
0.7639212
0
Main function(constructor) create the class attributes, and create the tkinter frame instance.
def FIMM(YKHO, _AKB): b8V_ = YKHO.main = m1n6(_AKB) YKHO.file_config = '../../config/config.xml' YKHO.value = '' YKHO.init_window()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.root = on8l.Tk()\n YKHO._constant_widgets()\n YKHO._options_menu()\n YKHO._mainframe()\n YKHO._buttons()", "def FIMM(YKHO, leAC, JBZA, BL3y, LDIG=None):\n YKHO.title = leAC\n YKHO.description = JBZA\n YKHO.ftypes = BL3y\n on8l.Frame.__init__(YKHO, LDIG)\n YKHO...
[ "0.75186116", "0.74222493", "0.74113154", "0.7328057", "0.7324772", "0.7230997", "0.7222369", "0.7190457", "0.7190401", "0.7155577", "0.71538883", "0.7142989", "0.71357286", "0.71234185", "0.71169424", "0.71068144", "0.70851713", "0.7075384", "0.70740277", "0.7065046", "0.706...
0.0
-1
Appends a message into the mailbox.
def RZuZ(YKHO, FUjE): D5gV = YKHO.AppendFactory(YKHO, FUjE) Aofo = D5gV.defer D5gV.startUp() return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, Ol8d):\n e27C = YKHO.formatter.format(Ol8d)\n YKHO.mailbox.add(e27C['message'])\n YKHO._update_state(e27C['timestamp'])", "def gUOX(YKHO, Ol8d):\n YKHO._messages.append(Ol8d)", "def rdDw(YKHO, Ol8d: unicode) -> None:\n ...", "def gUOX(YKHO, Ol8d):\n YKHO.messages.append(Ol8d)...
[ "0.7489671", "0.7438638", "0.743418", "0.7403002", "0.7373033", "0.7257186", "0.7242326", "0.7215202", "0.71873903", "0.7181821", "0.7144694", "0.7135159", "0.7106624", "0.70664626", "0.69374365", "0.6895089", "0.68772507", "0.68716514", "0.6868632", "0.6842694", "0.68378454"...
0.0
-1
Get a version from a package name.
def kaPv(hxGQ: str) -> str: return RkCj.get_distribution(hxGQ).version
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P56Q(hxGQ):\n\n def XCb3(Z9rn):\n if Z9rn in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']:\n return True\n return False\n M8nc = hxGQ.find('-')\n s550 = hxGQ.rfind('-')\n if M8nc == s550:\n return hxGQ[M8nc + 1:]\n while not XCb3(hxGQ[M8nc + 1]):\n hx...
[ "0.7535178", "0.75134856", "0.74605703", "0.7414271", "0.7305781", "0.72987074", "0.7273007", "0.7235109", "0.71762425", "0.71756816", "0.7161931", "0.71569866", "0.7147215", "0.7143455", "0.7142677", "0.7141771", "0.71320355", "0.7117036", "0.7091886", "0.70830464", "0.70750...
0.8025803
0
Returns the title of the current playing track
def ontt(YKHO): UTX6 = YKHO.__sendUserMessage(0, YKHO.IPC_GET_PLAYING_TITLE) return YKHO.__readStringFromMemory(UTX6, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjJn(YKHO):\n return YKHO.tracks[YKHO._cur_track][1] if YKHO.tracks else ''", "def Ml5K(YKHO):\n return YKHO.get_clean_title(YKHO.current_playing)", "def _0LT(YKHO):\n return YKHO._player_dev.current_title", "def _0LT(YKHO) -> str | None:\n ZfUD = YKHO._currently_playing.get('item') or {}\n ...
[ "0.8865576", "0.8285378", "0.80441386", "0.7946666", "0.78782445", "0.77475715", "0.74841607", "0.7475792", "0.7423417", "0.74023086", "0.7376605", "0.73748183", "0.73748183", "0.7347592", "0.7347592", "0.73412824", "0.7335327", "0.7333107", "0.7333107", "0.7333107", "0.73331...
0.84929675
1
Retrieves a list of the current playlist song titles.
def XvOe(YKHO): return [YKHO.getPlaylistTitle(dQgj) for dQgj in range(YKHO.getListLength())]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MYSC(YKHO):\n UHFx = YKHO.get_list_length()\n if UHFx is None:\n return None\n NvAR = []\n for or8S in range(UHFx):\n NvAR.append(YKHO.get_track_title(or8S))\n return NvAR", "def nE0P(YKHO, *qIxc):\n return YKHO.songs_list", "def Tw8L(YKHO) -> MNy1:\n return YKHO._tracks"...
[ "0.8190242", "0.74527365", "0.7398776", "0.73982245", "0.7262633", "0.7178433", "0.7040825", "0.6998369", "0.69807565", "0.6975634", "0.6882008", "0.67713785", "0.67449886", "0.6744421", "0.6704199", "0.67038924", "0.6688294", "0.66871804", "0.6680777", "0.66192704", "0.66170...
0.8176514
1
Getter method that returns the nodelist used in the QueueRenderer object.
def _sws(YKHO): if not YKHO.nodelist: Ziit = [] for pFW3 in YKHO.compute_renderers: Ziit.extend(pFW3.render_as_nodeset_element()) YKHO.nodelist = ','.join(Ziit) return YKHO.nodelist
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vTxU(YKHO):\n return YKHO.node_list", "def eEku(YKHO):\n return list(YKHO.nodes.keys())", "def Ziit(YKHO):\n return [YKHO.node]", "def iKae(Emd4: Type[U]) -> 'List[U]':\n return []", "def Ziit(YKHO) -> x1iM[str]:\n return YKHO.get_node_list()", "def Ziit(YKHO):\n return YKHO.nodes_l...
[ "0.80195594", "0.70803386", "0.7048378", "0.70358294", "0.6981341", "0.6969525", "0.6953203", "0.68941027", "0.6824998", "0.6800201", "0.6800201", "0.6800201", "0.6786878", "0.678076", "0.6779709", "0.6775678", "0.6749006", "0.66308784", "0.66192544", "0.6602294", "0.6602294"...
0.851271
0
yields nodes from graph are the specified source.
def TgwQ(YKHO, RSLe, PKko): SQ3m = PKko.split('.') wKqZ = neg0 if len(SQ3m) == 1: Jpkj, RxqK = (SQ3m[0], None) elif len(SQ3m) == 2: Jpkj, RxqK = SQ3m elif len(SQ3m) == 3: wKqZ, Jpkj, RxqK = SQ3m else: tO9_ = 'Invalid source selector value "{}". Sources must be of ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IZ7y(YKHO, JZXy: Optional[str]=None) -> bDy6[AzJI[str, str]]:\n YKHO.__check_network_initialized()\n if JZXy is None:\n JZXy = YKHO.root\n return jHsn.dfs_edges(YKHO.__network, source=JZXy)", "def ctM_(YKHO, JZXy: Union[str, NODE_TYPE]) -> bDy6[AzJI[fHNa[Xbc0], PeJD]]:\n Q6kx = YKHO.find_n...
[ "0.70431435", "0.6999576", "0.6968126", "0.68817973", "0.685406", "0.66472566", "0.659105", "0.65491986", "0.65353626", "0.65265965", "0.6447542", "0.6349859", "0.6310704", "0.6299918", "0.62141424", "0.6198907", "0.6180161", "0.61736727", "0.6173229", "0.61599714", "0.613667...
0.59340286
26
Returns all nodes reachable from `node` in `graph`
def B5QF(YKHO, Q6kx, qi10: Optional[int]=None) -> fHNa[str]: if not YKHO.graph.has_node(Q6kx): raise OAiJ(f'Node {Q6kx} not found in the graph!') Bxhj = jHsn.single_source_shortest_path_length(G=YKHO.graph, source=Q6kx, cutoff=qi10).keys() return Bxhj - {Q6kx}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kgRp(BroY, Q6kx):\n if not Q6kx.visited:\n print(Q6kx.value, end='')\n Q6kx.visited = True\n for exwG in Q6kx.getNeighbor():\n jbXL = BroY.getVertex(exwG)\n kgRp(BroY, jbXL)", "def zfcf(pNZh, Q6kx, azXi=[]):\n Ziit = []\n if Q6kx in azXi:\n return Zi...
[ "0.7204781", "0.7151576", "0.70973086", "0.70087767", "0.69792634", "0.67210275", "0.6671417", "0.65589267", "0.6508545", "0.6470527", "0.6433109", "0.64257497", "0.6425436", "0.6356271", "0.63505816", "0.63369226", "0.6330686", "0.63305944", "0.63245124", "0.63150656", "0.63...
0.0
-1
Returns all nodes having a path to `node` in `graph`
def JZlq(YKHO, Q6kx, qi10: Optional[int]=None) -> fHNa[str]: if not YKHO.graph.has_node(Q6kx): raise OAiJ(f'Node {Q6kx} not found in the graph!') with jHsn.utils.reversed(YKHO.graph): pEuY = jHsn.single_source_shortest_path_length(G=YKHO.graph, source=Q6kx, cutoff=qi10).keys() return pEuY - ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rb2s(pNZh, Q6kx):\n zARZ = pNZh.in_edges(Q6kx)\n return set([Bdhq[0] for Bdhq in zARZ])", "def bm5F(pNZh, yKcO, Os4s, pmON=[]):\n pmON = pmON + [yKcO]\n if yKcO == Os4s:\n return [pmON]\n if not pNZh.has_key(yKcO):\n return []\n ckRy = []\n for Q6kx in pNZh[yKcO]:\n ...
[ "0.7061288", "0.6807526", "0.67216146", "0.67174846", "0.66654193", "0.66575485", "0.6650839", "0.6576952", "0.6570707", "0.6570488", "0.6553668", "0.6522161", "0.6482488", "0.64484704", "0.641076", "0.6375872", "0.6369414", "0.6354782", "0.6335284", "0.62639266", "0.6226075"...
0.0
-1
This function will clear the previous handlers and set only one handler, which will only be StreamHandler for the logger. This function is designed to be able to called multiple times in a context. Note that if a logger has no handlers, it will be added a handler automatically when it is used.
def wmdW(mWFP, ABDL='INFO', FMLJ=None, Bjmr=None, sNVR=1, q2k8=False): bo34 = G9jH.getLogger(mWFP) bo34.setLevel(getattr(G9jH, ABDL)) bo34.propagate = sNVR if q2k8: bo34.handlers = [] return DCgT = None for MKlR in bo34.handlers: if isinstance(MKlR, G9jH.StreamHandler): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xjfd(YKHO):\n if YKHO._logger is None:\n raise RuntimeError('Impossible to set handlers if the Logger is not predefined')\n try:\n YKHO._logger.removeHandler(YKHO._handlers['stream_stdout'])\n del YKHO._handlers['stream_stdout']\n except KeyError:\n pass\n try:\n ...
[ "0.78228676", "0.7711271", "0.744706", "0.7181879", "0.7125249", "0.7123884", "0.70157623", "0.6961858", "0.6925452", "0.6911389", "0.68833387", "0.67769563", "0.66971993", "0.66863763", "0.66726756", "0.66518724", "0.6643424", "0.66381884", "0.6561245", "0.65141344", "0.6494...
0.0
-1
Computes the precision for the specified values of k
def ydcQ(hlel, pan_, hz5a=(1, 3)): Gq8e = max(hz5a) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0) Ylbp.append(R2Dg * 100.0 / len(pan_.view(-1))) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
Get a command line parser.
def EpPs(): wvEv = B4X0.ArgumentParser(description=__doc__) wvEv.add_argument('--base64', action='store_true', help='Decode file using base64.') wvEv.add_argument('-o', '--output', type=str, help='Alternative path to save to.') wvEv.add_argument('args', nargs='+', help='URIs or files to download.') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EpPs():\n return wQcs.set_parser(collected=fo8A.collect())", "def EpPs():\n wvEv = B4X0.ArgumentParser(description=__doc__)\n return wvEv", "def wvEv():\n return EpPs()", "def EpPs():\n p_z1 = _Fei.build_manager()\n JZXy = _Fei.build_command_line_source(prog='prospector', description=No...
[ "0.80788916", "0.79840004", "0.76778644", "0.7596108", "0.7582669", "0.7575743", "0.7568218", "0.7558888", "0.7545465", "0.75264424", "0.74633646", "0.7452418", "0.7449176", "0.74282485", "0.74177897", "0.739733", "0.73960656", "0.7392367", "0.73476595", "0.7347562", "0.73399...
0.71084565
43
Checks whether `url` is a valid URL.
def SGVO(bD7m): U5Jc = KVWQ(bD7m) return bool(U5Jc.netloc) and bool(U5Jc.scheme)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yaqE(bD7m):\n return True if f8eG.match(bD7m) else False", "def SGVO(bD7m):\n aBkf = _FIc.URLValidator()\n try:\n aBkf(bD7m)\n except _FIc.ValidationError:\n return False\n else:\n return True", "def Sxk4(bD7m):\n if not ZbWC.search('^(http|https|ftp)' + '\\\\://[a-z0...
[ "0.8939179", "0.8780518", "0.87553483", "0.86886775", "0.86520433", "0.86460173", "0.8619089", "0.85934895", "0.8589099", "0.8505128", "0.8439438", "0.8439245", "0.8436709", "0.8436638", "0.8415732", "0.8406938", "0.83978635", "0.83957845", "0.8382483", "0.83688885", "0.83594...
0.83548236
22
Generate all moves for given board position. Some moves can be invalid.
def bnc4(Ykgi: int, VVqd: int) -> x1iM[AzJI[int, int]]: oLdq = [(Ykgi - 1, VVqd - 1), (Ykgi + 1, VVqd - 1), (Ykgi - 1, VVqd + 1), (Ykgi + 1, VVqd + 1), (Ykgi - 2, VVqd - 2), (Ykgi + 2, VVqd - 2), (Ykgi - 2, VVqd + 2), (Ykgi + 2, VVqd + 2)] return oLdq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RkGy(iBIi):\n from connectfour import InvalidMoveException\n for YRbF in Ni9Y(iBIi.board_width):\n try:\n yield (YRbF, iBIi.do_move(YRbF))\n except InvalidMoveException:\n pass", "def G7Zd(iBIi):\n FUsn = []\n if ejjD(iBIi, 'x') or ejjD(iBIi, 'o'):\n ret...
[ "0.7777873", "0.77678597", "0.7699006", "0.7629058", "0.75672036", "0.7505877", "0.74956036", "0.74838626", "0.74788857", "0.74510545", "0.74158174", "0.7396397", "0.7300311", "0.72209793", "0.72203416", "0.72000825", "0.7198797", "0.7198112", "0.7180776", "0.7164998", "0.713...
0.78118205
0
Test to add a new empty version to existing bundle using json as input This should work since there is no problem to add a version without files
def oCfk(JiNM: Context, T1Ea: CliRunner, QEae: str, KTnm): KTnm.set_level(G9jH.DEBUG) VUF1: P39m = JiNM['store'] vL7S = qQXR.loads(QEae) wHSX = VUF1.get_bundle_by_name(bundle_name=vL7S['bundle_name']) assert isinstance(wHSX, hFYM) assert len(wHSX.versions) == 1 assert vL7S['files'] == [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7k0(JiNM: Context, T1Ea: CliRunner, tffw: str, KTnm):\n KTnm.set_level(G9jH.DEBUG)\n VUF1: P39m = JiNM['store']\n vL7S = qQXR.loads(tffw)\n wHSX = VUF1.get_bundle_by_name(bundle_name=vL7S['bundle_name'])\n assert isinstance(wHSX, hFYM)\n assert len(wHSX.versions) == 1\n assert vL7S['files...
[ "0.7715597", "0.7223824", "0.7096406", "0.70592654", "0.6955224", "0.6797465", "0.67409474", "0.6672877", "0.66320807", "0.64316875", "0.6343703", "0.63140744", "0.6294784", "0.6292274", "0.6263899", "0.62389976", "0.6162624", "0.6110551", "0.6081372", "0.594741", "0.59345436...
0.84409237
0
Test to add a new version with files to existing bundle using json as input
def e7k0(JiNM: Context, T1Ea: CliRunner, tffw: str, KTnm): KTnm.set_level(G9jH.DEBUG) VUF1: P39m = JiNM['store'] vL7S = qQXR.loads(tffw) wHSX = VUF1.get_bundle_by_name(bundle_name=vL7S['bundle_name']) assert isinstance(wHSX, hFYM) assert len(wHSX.versions) == 1 assert vL7S['files'] != [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oCfk(JiNM: Context, T1Ea: CliRunner, QEae: str, KTnm):\n KTnm.set_level(G9jH.DEBUG)\n VUF1: P39m = JiNM['store']\n vL7S = qQXR.loads(QEae)\n wHSX = VUF1.get_bundle_by_name(bundle_name=vL7S['bundle_name'])\n assert isinstance(wHSX, hFYM)\n assert len(wHSX.versions) == 1\n assert vL7S['files...
[ "0.78082293", "0.7206687", "0.674876", "0.6746592", "0.6725455", "0.6675297", "0.66215146", "0.65374494", "0.64862555", "0.64574325", "0.6399263", "0.63921344", "0.63614416", "0.6331978", "0.63051754", "0.627864", "0.6265483", "0.61744994", "0.61709774", "0.61606365", "0.6136...
0.8395596
0
Test to add a new version to existing bundle using both json and bundle_name as input The CLI should fail since it is ambiguous to specify the bundle in two ways
def A7cq(JiNM, T1Ea, tffw: str, KTnm): KTnm.set_level(G9jH.DEBUG) qqaY = 'hello' Aofo = T1Ea.invoke(G7gi, [qqaY, '--json', tffw], obj=JiNM) assert Aofo.exit_code == 1 assert 'Can not input both json and bundle_name' in KTnm.text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aH2D(QpfX: click.Context, qqaY: str, qQXR: str):\n na1r.info('Running add bundle')\n VUF1: P39m = QpfX.obj['store']\n rUrJ(arg=qqaY, json=qQXR, arg_name='bundle_name')\n nPrm: cuzp = {'name': qqaY, 'created_at': str(JRYC.datetime.now())}\n if qQXR:\n nPrm: cuzp = lc9H(qQXR)\n qqaY = nP...
[ "0.80639935", "0.80001956", "0.7901155", "0.7712335", "0.766205", "0.7656839", "0.7565772", "0.7451784", "0.6469466", "0.6423688", "0.63559306", "0.634178", "0.63321733", "0.6211369", "0.6148018", "0.61270505", "0.60495067", "0.60440665", "0.6000998", "0.59440005", "0.5939826...
0.80412984
1
Reset the model to its initial state.
def SiRx(YKHO) -> None: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.model.reset()", "def OWfQ(YKHO):\n if YKHO.model != None:\n YKHO.model = None", "def OWfQ(YKHO):\n raise NotImplementedError", "def OWfQ(YKHO):\n raise NotImplementedError", "def SiRx(YKHO):\n YKHO.model = None\n YKHO.iter_info = {}", "def SiRx(YKHO):\n ...
[ "0.8758925", "0.8455849", "0.8420936", "0.8420936", "0.81382865", "0.8046995", "0.7982973", "0.7888164", "0.78188807", "0.77935445", "0.773549", "0.77306473", "0.7728099", "0.76319873", "0.76279014", "0.76218927", "0.76205134", "0.76205134", "0.76205134", "0.76205134", "0.760...
0.0
-1
Initialize WordPress client API wrapper.
def FIMM(YKHO, _tx0, NtEF, jTXt): YKHO._init_wp_client(_tx0, NtEF, jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BO8M(YKHO):\n YKHO._api = yO1c(username=GPtr.WooCommerceAPICred.USERNAME, password=GPtr.WooCommerceAPICred.PASSWORD)", "def Sv8W(YKHO):\n YKHO.wp_lib = VFSH.WPTestLib()\n YKHO.wp_tc = RJZ1.WPTestClient(YKHO.wp_lib.host, YKHO.wp_lib.protocol)", "def ENf7(YKHO):\n if hasattr(YKHO, '_init_praw') a...
[ "0.7291598", "0.65513766", "0.65411216", "0.63931835", "0.6183179", "0.61051935", "0.6072891", "0.6054983", "0.6039142", "0.6019808", "0.60080665", "0.59960294", "0.5988967", "0.5934604", "0.59100896", "0.5907595", "0.5906201", "0.5906201", "0.5906201", "0.58839834", "0.58536...
0.71555036
1
Returns a list of arguments on which to call __torch_function__. Checks arguments in relevant_args for __torch_function__ implementations, storing references to the arguments and their types in overloaded_args and overloaded_types in order of calling precedence. Only distinct types are considered. If a type is a subcla...
def p1gn(JKyT): g6pf = [] Eh6d = [] for d7pR in JKyT: zewo = type(d7pR) if zewo not in g6pf and hasattr(zewo, '__torch_function__'): if g6pf: g6pf.append(zewo) d6pt = len(Eh6d) for YRbF, LUt2 in enumerate(Eh6d): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rwTO(HRJ_, b7La=None):\n if b7La is not None and (not b7La):\n raise ValueError('evaluate can only be True in Python 3.7')\n if isinstance(HRJ_, laHg._GenericAlias):\n Ylbp = HRJ_.__args__\n if Wkq0(HRJ_) is gLvK and Ylbp[0] is not Ellipsis:\n Ylbp = (list(Ylbp[:-1]), Ylbp...
[ "0.54419017", "0.5432734", "0.5354991", "0.5324915", "0.530347", "0.52781415", "0.5275838", "0.52242327", "0.52218115", "0.5195108", "0.515577", "0.51193374", "0.51101214", "0.5104286", "0.50898206", "0.5076508", "0.5043682", "0.50366056", "0.50254536", "0.5009045", "0.499162...
0.6426057
0
Test get categories endpoint
def wbir(YKHO): YKHO.load_fixture('tests/fixtures/categories.json', qZuN) Ylbp = YKHO.client().get('/categories') nPrm = qQXR.loads(Ylbp.get_data(as_text=True)) YKHO.assertTrue(nPrm['success']) YKHO.assertTrue(nPrm['categories'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _562(YKHO):\n geh0 = YKHO.client().get('/categories')\n nPrm = qQXR.loads(geh0.data)\n YKHO.assertEqual(geh0.status_code, 200)", "def _562(YKHO):\n pass", "def vM7W(YKHO):\n geh0 = YKHO.client.open('/v2/category', method='GET')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.deco...
[ "0.87615544", "0.86073184", "0.8591411", "0.8408818", "0.83523345", "0.834341", "0.82420254", "0.8228504", "0.8191026", "0.80522966", "0.8024287", "0.8009985", "0.7939278", "0.7919825", "0.78597534", "0.780988", "0.77967465", "0.779132", "0.772892", "0.7700161", "0.769673", ...
0.8287891
6
Test get categories endpoint 404 error
def UmbQ(YKHO): Ylbp = YKHO.client().get('/categories') nPrm = qQXR.loads(Ylbp.get_data(as_text=True)) YKHO.assertFalse(nPrm['success']) YKHO.assertEqual(nPrm['error'], 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aCKl(YKHO):\n geh0 = YKHO.client.get('/categories/69')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND)", "def LCTi(YKHO):\n geh0 = YKHO.tester.get('/birds/category')\n YKHO.assertEqual(geh0.status_code, 200)", "def _562(YKHO):\n geh0 = YKHO.client().get('/categories')\n nPrm...
[ "0.84504294", "0.8281286", "0.82805127", "0.8236852", "0.8069002", "0.8062759", "0.8039379", "0.7958547", "0.7952416", "0.7877037", "0.7768808", "0.77653897", "0.7706668", "0.7689913", "0.7635226", "0.76112", "0.7547953", "0.74940497", "0.74841845", "0.7397719", "0.7384764", ...
0.8647887
0
Test get questions endpoint
def bfbj(YKHO): YKHO.load_fixture('tests/fixtures/questions.json', Y4Gy) YKHO.load_fixture('tests/fixtures/categories.json', qZuN) WlEx = Y4Gy.query.all() Ylbp = YKHO.client().get('/questions') nPrm = qQXR.loads(Ylbp.get_data(as_text=True)) YKHO.assertTrue(nPrm['success']) YKHO.assertEqual(l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W31w(YKHO):\n Ylbp = YKHO.tester.get('/api/v1/question/rt6575766')\n YKHO.assertEqual(Ylbp.status_code, 404)", "def o7qd(YKHO):\n geh0 = YKHO.client().get('/questions')\n nPrm = qQXR.loads(geh0.data)\n YKHO.assertEqual(geh0.status_code, 200)", "def s3Tw(YKHO):\n Ylbp = YKHO.tester.get('/a...
[ "0.8689425", "0.84362066", "0.84043765", "0.83681035", "0.80693555", "0.7999986", "0.79384625", "0.7835259", "0.7814381", "0.7758761", "0.77514654", "0.7745854", "0.7733376", "0.77152437", "0.76373553", "0.7613184", "0.7598041", "0.75673085", "0.75299734", "0.74872565", "0.74...
0.74864554
20
Test get questions endpoint with page parameter
def TVLg(YKHO): YKHO.load_fixture('tests/fixtures/questions.json', Y4Gy) YKHO.load_fixture('tests/fixtures/categories.json', qZuN) WlEx = Y4Gy.query.all() Ylbp = YKHO.client().get('/questions?page=3') nPrm = qQXR.loads(Ylbp.get_data(as_text=True)) YKHO.assertTrue(nPrm['success']) YKHO.assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sHka(YKHO):\n Ylbp = YKHO.client().get('/api/v1.0/questions?page=1')\n nPrm = qQXR.loads(Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, 200)\n YKHO.assertEqual(nPrm['success'], True)\n YKHO.assertTrue(nPrm['total_questions'])\n YKHO.assertTrue(len(nPrm['questions']))", "def pMxF(YKHO):\n ...
[ "0.76656705", "0.73420006", "0.72534525", "0.70955515", "0.7053262", "0.702351", "0.69402945", "0.6906879", "0.6859471", "0.68209153", "0.68172324", "0.67887866", "0.6753465", "0.67265457", "0.6699688", "0.669884", "0.6683626", "0.6680113", "0.6674034", "0.6626461", "0.662414...
0.7690572
0
Test error response when attempting to create a new question without sending the question in the request
def WULY(YKHO): YKHO.load_fixture('tests/fixtures/questions.json', Y4Gy) _jzK = {'question': '', 'answer': 'Marie Curie', 'category': 1, 'difficulty': 1} Ylbp = YKHO.client().post('/questions', json=_jzK) nPrm = qQXR.loads(Ylbp.get_data(as_text=True)) YKHO.assertFalse(nPrm['success']) YKHO.asser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KRL9(YKHO):\n geh0 = YKHO.client().post('/questions')\n YKHO.assertEqual(geh0.status_code, 400)\n YKHO.assertEqual(geh0.json.get('success'), False)\n YKHO.assertEqual(geh0.json.get('message'), 'Bad Request')", "def SHjP(YKHO):\n YKHO.load_fixture('tests/fixtures/questions.json', Y4Gy)\n _jz...
[ "0.8090248", "0.7982952", "0.79451376", "0.78735554", "0.7814453", "0.74800014", "0.7399025", "0.73579174", "0.7355437", "0.73092705", "0.73035854", "0.72975147", "0.7286771", "0.7257173", "0.72317535", "0.7203422", "0.72014666", "0.71893907", "0.7151462", "0.7143837", "0.713...
0.798782
1
Test error response when attempting to create a new question without sending the answer in the request
def SHjP(YKHO): YKHO.load_fixture('tests/fixtures/questions.json', Y4Gy) _jzK = {'question': 'What is the most populous city in the world?', 'answer': '', 'category': 3, 'difficulty': 1} Ylbp = YKHO.client().post('/questions', json=_jzK) nPrm = qQXR.loads(Ylbp.get_data(as_text=True)) YKHO.assertFals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KRL9(YKHO):\n geh0 = YKHO.client().post('/questions')\n YKHO.assertEqual(geh0.status_code, 400)\n YKHO.assertEqual(geh0.json.get('success'), False)\n YKHO.assertEqual(geh0.json.get('message'), 'Bad Request')", "def hOLz(YKHO):\n _jzK = {'q': 'Heres a new question string', 'a': 'Heres the answe...
[ "0.79572105", "0.7868706", "0.78397226", "0.7818541", "0.7685382", "0.7438333", "0.7415887", "0.7378685", "0.7360133", "0.72760755", "0.7267149", "0.7260082", "0.721702", "0.7209675", "0.7202216", "0.71893007", "0.7149182", "0.7096545", "0.709234", "0.7057356", "0.7056823", ...
0.7978229
0
Test error 404 response when deleting a question
def U126(YKHO): YKHO.load_fixture('tests/fixtures/questions.json', Y4Gy) Ylbp = YKHO.client().delete('/questions/24') nPrm = qQXR.loads(Ylbp.get_data(as_text=True)) YKHO.assertEqual(Ylbp.status_code, 404) YKHO.assertFalse(nPrm['success'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LqZJ(YKHO):\n Ylbp = YKHO.client().delete('/questions/1')\n nPrm = qQXR.loads(Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, 404)\n YKHO.assertEqual(nPrm['success'], False)\n YKHO.assertEqual(nPrm['message'], 'Not Found: The request resource could not be found')", "def Elaa(YKHO):\n Ylbp =...
[ "0.8771917", "0.8537816", "0.8403181", "0.82579005", "0.8206945", "0.7672891", "0.76009643", "0.7567951", "0.7516589", "0.74885845", "0.74456", "0.74335897", "0.7430142", "0.7426872", "0.7368326", "0.73567444", "0.72788906", "0.72520053", "0.7245036", "0.723926", "0.7236887",...
0.8523192
2
Set the variable name to the value value. Neither variable names nor values will contain spaces.
def _S9o(YKHO, mWFP, BWXx): Csk6 = YKHO.d Csk6[mWFP] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A5B_(YKHO, mWFP, BWXx):\n YKHO.vars[mWFP] = BWXx", "def gZFj(YKHO, mWFP, BWXx):\n YKHO.variables[mWFP] = BWXx", "def gZFj(YKHO, mWFP, BWXx):\n YKHO.variables[mWFP] = BWXx", "def gZFj(YKHO, mWFP, BWXx):\n YKHO.variables[mWFP] = BWXx", "def gZFj(YKHO, mWFP, BWXx):\n YKHO.variables[mWFP] = ...
[ "0.7996341", "0.7950248", "0.7950248", "0.7950248", "0.7950248", "0.79203534", "0.77918506", "0.7787551", "0.7415322", "0.7259614", "0.7237715", "0.71805525", "0.7068828", "0.7002775", "0.6870008", "0.6846125", "0.68436027", "0.68097967", "0.67543435", "0.6751333", "0.6732349...
0.7076247
12
Function that returns the distance between two points on the Earth, taking
def Isli(igSk, GgQG, TGuP, tk0B, A3Vt=6371.0): igSk = oyIN.radians(igSk) GgQG = oyIN.radians(GgQG) TGuP = oyIN.radians(TGuP) tk0B = oyIN.radians(tk0B) I13M = mnBt(igSk - TGuP) + oyIN.cos(igSk) * oyIN.cos(TGuP) * mnBt(GgQG - tk0B) pImw = 2.0 * A3Vt * oyIN.arcsin(oyIN.sqrt(I13M)) return pImw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RQCg(GgQG, igSk, tk0B, TGuP):\n r1VO = 6371.0 * 1000.0\n n_9K = Y_1E(TGuP - igSk)\n H91H = Y_1E(tk0B - GgQG)\n jzdc = YUNn(n_9K / 2.0) ** 2 + YhSR(Y_1E(igSk)) * YhSR(Y_1E(TGuP)) * YUNn(H91H / 2.0) ** 2.0\n Csk6 = 2.0 * r1VO * epAf.asin(PZyS(jzdc))\n return Csk6", "def rkEX(igSk, GgQG, TGuP,...
[ "0.8013426", "0.7821027", "0.7733059", "0.7709241", "0.7704746", "0.7608111", "0.7590785", "0.7586214", "0.75574046", "0.75505793", "0.7549418", "0.7547262", "0.7546067", "0.75219655", "0.74916893", "0.74837446", "0.7481079", "0.7475286", "0.7462194", "0.74292064", "0.7396852...
0.0
-1
Function that returns an array of points on a circle that lies on the face
def KSPK(Mkmy, HR2T, Lcab, A3Vt=6371.0, y5bX=1000): HR2T = oyIN.radians(HR2T) Lcab = oyIN.radians(Lcab) Mkmy = float(Mkmy) HR2T = float(HR2T) Lcab = float(Lcab) A3Vt = float(A3Vt) LTIa = oyIN.zeros([2 * y5bX, 2]) YPaw = 2.0 * (Mkmy / A3Vt) / float(y5bX - 1) LTIa[:y5bX, 0] = oyIN.aran...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O5Fg(r1VO, LTIa):\n YylR = oyIN.linspace(0, 2 * oyIN.pi, LTIa)\n m2os = oyIN.cos(YylR) * r1VO\n bmPF = oyIN.sin(YylR) * r1VO\n return (m2os, bmPF)", "def uBjC(YKHO):\n o4D3 = qdZ8.pos3dTo2dWindow(YKHO.pts[0].getPosition())[0]\n si3g = qdZ8.pos3dTo2dWindow(YKHO.pts[0].getPosition())[1]\n ...
[ "0.71246743", "0.7071773", "0.7061883", "0.67493033", "0.66822964", "0.66779584", "0.666908", "0.6647656", "0.6647656", "0.66325", "0.6590522", "0.6554511", "0.65130484", "0.6512139", "0.65116996", "0.65040064", "0.6473893", "0.64256036", "0.6404221", "0.63918483", "0.6384941...
0.0
-1
Remove quotation marks from an input string
def SuvB(KCHu): return ''.join((YRbF for YRbF in KCHu if YRbF != '"'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tFGf(KCHu):\n return KCHu.replace('\"', ' ')", "def Gg3h(str):\n return str.replace(\"'\", '')", "def EMQV(KCHu):\n return KCHu.translate(None, '\"\\'')", "def vHpu(yAmx):\n yAmx = yAmx.strip()\n yAmx = ZbWC.sub('\"', '', yAmx)\n return yAmx", "def clqC(vIwR: str) -> str:\n return ...
[ "0.8104015", "0.7996761", "0.7964526", "0.79318285", "0.7814836", "0.7734824", "0.77286595", "0.77176857", "0.77097297", "0.7644292", "0.7630817", "0.7575774", "0.7565242", "0.7545816", "0.7544803", "0.7529205", "0.75035423", "0.7497144", "0.7466678", "0.74497235", "0.74298",...
0.76492536
9
Get the registered type from the protected mapping via the `speckle_type`
def DwMx(Emd4, mks9: str) -> h8nf[eBH2['Base']]: return Emd4._type_registry.get(mks9, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO, l87X):\n return YKHO._registery[l87X.lower()]", "def kGSl(YKHO, U34r, **qIxc):\n return YKHO.TYPE_MAP.get(YKHO.role.lower(), YKHO.role.lower())", "def NMoC(type):\n return KndY()['%s' % type]()", "def ccBJ(Emd4, type):\n return Emd4.cache[type]", "def NMoC(qxeD, cCim):\n retur...
[ "0.7006004", "0.6410274", "0.6298358", "0.62638307", "0.61613685", "0.6123164", "0.6115829", "0.6092893", "0.608141", "0.608141", "0.608141", "0.608141", "0.608141", "0.608141", "0.608141", "0.608141", "0.608141", "0.608141", "0.608141", "0.608141", "0.608141", "0.608141", ...
0.7237351
0
The function creates a batch of images and labels. We need to use a custom collate func because we cannot directly create a batch of label tensors, since the number of bounding boxes per image is different (cannot have tensor of shape BxNx5, because N is variable per image).
def QxcP(Wc9F): Wc9F = [nPrm for nPrm in Wc9F if nPrm is not None] xkjI, b69r = list(zip(*Wc9F)) xkjI = ht2j.stack([VXjJ for VXjJ in xkjI]) for YRbF, oUSw in enumerate(b69r): oUSw[:, 0] = YRbF b69r = ht2j.cat(b69r, 0) return (xkjI, b69r)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QxcP(YKHO, Wc9F):\n fOXV = list()\n Yw_3 = list()\n oUSw = list()\n Crrw = list()\n for Fg_i in Wc9F:\n if len(Fg_i[2]) == 0:\n continue\n fOXV.append(Fg_i[0])\n Yw_3.append(Fg_i[1])\n oUSw.append(Fg_i[2])\n Crrw.append(Fg_i[3])\n Yw_3 = ht2j.stac...
[ "0.7897714", "0.7897714", "0.75370115", "0.75370115", "0.75370115", "0.7052511", "0.70294344", "0.6958016", "0.69038856", "0.69038856", "0.69005936", "0.6885237", "0.68666786", "0.6823563", "0.68151784", "0.68098205", "0.68036944", "0.67896587", "0.6785256", "0.672729", "0.67...
0.78248096
2