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
Creates a 2d convlayer with Spectral Norm applied to the weights.
def F_fT(CK9p, EDoJ, ri6P=3, hHqT=3, ozc1=2, ioxB=2, Y9ns=True, mWFP='snconv2d'): with ZylS.variable_scope(mWFP, custom_getter=SNfG(training=Y9ns, equality_constrained=False)): return ZylS.layers.conv2d(CK9p, filters=EDoJ, kernel_size=(ri6P, hHqT), strides=(ozc1, ioxB), padding='same', activation=None, use_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GJlD(*qIxc, **B2fa):\n return SNDs(U78l.Conv2d(*qIxc, **B2fa))", "def ELoF(gxeW, ob0C):\n return sDkN(gxeW.normalized_shape, ob0C.normalized_shape, gxeW.weight, ob0C.weight, gxeW.bias, ob0C.bias, eps_1=gxeW.eps, eps_2=ob0C.eps, elementwise_affine_1=gxeW.elementwise_affine, elementwise_affine_2=ob0C.ele...
[ "0.6766796", "0.6318123", "0.6229136", "0.61992186", "0.61467487", "0.61104065", "0.6064617", "0.599069", "0.5943439", "0.5933635", "0.59171647", "0.59171647", "0.58886445", "0.5864886", "0.58385235", "0.5808983", "0.57847536", "0.5773556", "0.5765658", "0.5757367", "0.575335...
0.55780363
38
Creates a linear layer with Spectral Normalization applied.
def Zk8p(WKvO, a6Jb, tzT4=0.0, Y9ns=True, mWFP='snlinear'): with ZylS.variable_scope(mWFP, custom_getter=SNfG(training=Y9ns, equality_constrained=False)): return ZylS.layers.dense(WKvO, a6Jb, activation=None, use_bias=True, kernel_initializer=ZylS.keras.initializers.VarianceScaling(scale=1.0, mode='fan_avg'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E0dj(*qIxc, **B2fa):\n return SNDs(U78l.Linear(*qIxc, **B2fa))", "def mhc1(g4y1, I07O, dIoi, kHqH, O7G8=None, FWlN=True, CJGY=None, XJsN=True, mWFP=None):\n with ZylS.variable_scope(mWFP, 'normalized_linear_layer', [g4y1], reuse=CJGY):\n assert g4y1.get_shape().ndims == 2, 'Inputs Tensor shape m...
[ "0.7253427", "0.6207253", "0.59440666", "0.59299266", "0.59118426", "0.57790774", "0.5698557", "0.5683368", "0.5633953", "0.55963355", "0.5579435", "0.557672", "0.55710036", "0.55628276", "0.5549484", "0.5543351", "0.5528736", "0.5523626", "0.55077887", "0.54922193", "0.54920...
0.61973536
2
Adds Conditional Batch norm to the TF Graph.
def nrOS(YKHO, g4y1, Crrw): g4y1 = ZylS.convert_to_tensor(value=g4y1) gqcO = g4y1.get_shape() D_OF = gqcO[-1:] jDK_ = [0, 1, 2] ROpF = ZylS.TensorShape([YKHO.num_categories]).concatenate(D_OF) with ZylS.variable_scope(YKHO.name): YKHO.gamma = ZylS.get_variable('gamma', ROpF, initializer=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def idFg(WKvO, Y9ns, mWFP):\n with ZylS.variable_scope(mWFP):\n WKvO = ZylS.cond(Y9ns, lambda: ZylS.contrib.layers.batch_norm(WKvO, is_training=True, scope=mWFP + '_batch_norm'), lambda: ZylS.contrib.layers.batch_norm(WKvO, is_training=False, scope=mWFP + '_batch_norm', reuse=True))\n return WKvO", ...
[ "0.651612", "0.634967", "0.6093033", "0.60527295", "0.6025607", "0.59895104", "0.59162915", "0.59009624", "0.57722205", "0.57587117", "0.574903", "0.5744107", "0.5698618", "0.559333", "0.5580914", "0.55704486", "0.5570305", "0.55601525", "0.5506552", "0.54987055", "0.54765207...
0.0
-1
Computes the box loss (FastRCNN branch) of MaskRCNN. This function implements the box regression loss of the FastRCNN. As the `box_outputs` produces `num_classes` boxes for each RoI, the reference model expands `box_targets` to match the shape of `box_outputs` and selects only
def nrOS(YKHO, kBUy, Xm2A, Ygkz): with ZylS.name_scope('fast_rcnn_loss'): Xm2A = ZylS.cast(Xm2A, dtype=ZylS.int32) Ep8u, Wd9V, jmsy = kBUy.get_shape().as_list() jTqs = jmsy // 4 kBUy = ZylS.reshape(kBUy, [Ep8u, Wd9V, jTqs, 4]) jWas = ZylS.reshape(Xm2A + ZylS.tile(ZylS.expand_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o0Jm(YKHO, kBUy, Ygkz, Xm2A, WuUW=1.0):\n with ZylS.name_scope('fast_rcnn_box_loss'):\n ZHfW = ZylS.tile(ZylS.expand_dims(ZylS.greater(Xm2A, 0), axis=2), [1, 1, 4])\n ZHfW = ZylS.cast(ZHfW, dtype=ZylS.float32)\n Ygkz = ZylS.expand_dims(Ygkz, axis=-1)\n kBUy = ZylS.expand_dims(kBU...
[ "0.77247", "0.6800456", "0.65552115", "0.6547652", "0.6503136", "0.6494873", "0.6494873", "0.64850503", "0.64330405", "0.6390961", "0.62827057", "0.6255115", "0.621268", "0.6205515", "0.61603117", "0.6152924", "0.6133612", "0.6115728", "0.61107314", "0.60996604", "0.609374", ...
0.7875608
0
Computes the mask loss of MaskRCNN. This function implements the mask loss of MaskRCNN. As the `mask_outputs` produces `num_classes` masks for each RoI, the reference model expands `mask_targets` to match the shape of `mask_outputs` and selects only the
def nrOS(YKHO, LOvh, suc3, H_vO): with ZylS.name_scope('mask_rcnn_loss'): Ep8u, Ttcr, quhL, f2iY = LOvh.get_shape().as_list() _mSQ = ZylS.tile(ZylS.reshape(ZylS.greater(H_vO, 0), [Ep8u, Ttcr, 1, 1]), [1, 1, quhL, f2iY]) _mSQ = ZylS.cast(_mSQ, dtype=ZylS.float32) suc3 = ZylS.expand_di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bd5X(kVLz, Gn0l, loQe, pER0, IHtW, suc3):\n zKAO = vuvg.nll_loss(kVLz, pER0)\n bGrB, oNZq = ht2j.max(kVLz, 1)\n L5IN, I7WD = (0, 0)\n for YRbF in range(kVLz.size(0)):\n cch_ = int(oNZq[YRbF])\n L5IN += vuvg.smooth_l1_loss(Gn0l[YRbF, cch_, :], IHtW[YRbF, :])\n for YRbF in range(suc3...
[ "0.76678836", "0.74467456", "0.6840684", "0.6747658", "0.6580615", "0.65435463", "0.6468192", "0.6466967", "0.6440098", "0.64205974", "0.64121765", "0.6396213", "0.6394036", "0.6345463", "0.63196385", "0.6284413", "0.62776643", "0.6264739", "0.6260094", "0.62046355", "0.61575...
0.81678396
0
Convert probablity of exceedence of damage states, to probability of being in each discrete damage state
def vBMm(Wmjn): yqc0 = oyIN.sort(Wmjn)[::-1] jbXL = -1.0 * oyIN.diff(yqc0) TRdr = oyIN.append(jbXL, yqc0[-1]) TRdr = oyIN.insert(TRdr, 0, 1 - yqc0[0]) return TRdr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wwRm(YKHO, wspz, xASv):\n BFeB = oyIN.ones(len(wspz)) / 2\n return BFeB", "def wwRm(YKHO, wspz, xASv):\n BFeB = []\n for d6pt, (QTBn, XeOP) in enumerate(zip(wspz, xASv)):\n eUNT = YKHO.sample_action(QTBn)\n if XeOP == eUNT:\n BFeB.append(1)\n else:\n BFe...
[ "0.72657996", "0.69723207", "0.6650643", "0.66365546", "0.6604822", "0.66037893", "0.65621597", "0.6541678", "0.64806664", "0.6445234", "0.64182675", "0.63711476", "0.6363385", "0.631948", "0.630406", "0.62913287", "0.6276154", "0.62485045", "0.6238045", "0.62306184", "0.6208...
0.0
-1
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) 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.mul_(100....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R...
[ "0.76427615", "0.74189496", "0.7418079", "0.72710466", "0.72456723", "0.72446615", "0.7237539", "0.72213703", "0.7210107", "0.7058935", "0.6852219", "0.6786084", "0.67836976", "0.6768417", "0.67273885", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0....
0.0
-1
The TOPICLEN support parameter is parsed into an integer value indicating the maximum length of a topic a client may set.
def Jol8(YKHO): YKHO._testIntOrDefaultFeature('TOPICLEN')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zWLQ(YKHO):\n WmM4 = Hms_.ServerSupportedFeatures()._features['CHANNELLEN']\n YKHO._testIntOrDefaultFeature('CHANNELLEN', WmM4)", "def szAg(YKHO):\n return YKHO.HEADER_LEN + 4 + sum((len(a1PO) + 2 for a1PO in YKHO.topics))", "def Tnar(YKHO):\n raise NotImplementedError", "def Tnar(YKHO):\n ...
[ "0.64322615", "0.59648174", "0.5911425", "0.5911425", "0.5911425", "0.5911425", "0.5834683", "0.57438403", "0.5687495", "0.567807", "0.5637416", "0.56222594", "0.5598848", "0.55422384", "0.5538949", "0.5538949", "0.5538949", "0.5538949", "0.5538949", "0.5538949", "0.5538949",...
0.795213
0
Return a list of which branch version ids differ from what was stored in the database at the beginning of this bulk operation.
def o2cd(YKHO): if YKHO.index is None: return [] if YKHO.initial_index is None: return list(YKHO.index.get('versions', {}).keys()) return [jehQ for jehQ, _eu6 in YKHO.index.get('versions', {}).items() if YKHO.initial_index.get('versions', {}).get(jehQ) != _eu6]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def epiW(YKHO):\n xx2Q = YKHO.upstream_model.tags_from_semver_point('0.8.7')\n nshg = YKHO.deb_model.base.branches_from_semver_point('0.8.7')\n return list(set(xx2Q) - set(nshg))", "def epiW(YKHO):\n xx2Q = YKHO.upstream_model.tags_from_semver_point('1.19.0')\n nshg = YKHO.deb_model.base.branches_...
[ "0.6360029", "0.62996095", "0.6110513", "0.5765152", "0.5761192", "0.57539415", "0.560806", "0.55911493", "0.5566624", "0.5482653", "0.5482622", "0.5476313", "0.54746825", "0.54743236", "0.5473782", "0.546778", "0.54629153", "0.54446214", "0.54415315", "0.5440457", "0.5432181...
0.6529352
0
Find the course_indexes which have the specified branch and search_targets. An optional org_target can be specified to apply an ORG filter to return only the courses that are part of that ORG.
def ICxJ(YKHO, jehQ=None, cXMm=None, Kdtf=None, S0j5=None): bS0K = YKHO.db_connection.find_matching_course_indexes(jehQ, cXMm, Kdtf, course_keys=S0j5) bS0K = YKHO._add_indexes_from_active_records(bS0K, jehQ, cXMm, Kdtf, course_keys=S0j5) return bS0K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XRfY(YKHO, vXX7, sjci):\n VECZ = YKHO.find_matching_course_indexes(search_targets={vXX7: sjci})\n return [HM3i(bTKY['org'], bTKY['course'], bTKY['run']) for bTKY in VECZ]", "def qXyK(YKHO, DBDw, jehQ=None, cXMm=None, Kdtf=None, S0j5=None):\n\n def Q9iY(HhOI):\n \"\"\"\n If the inde...
[ "0.650313", "0.6464242", "0.64032197", "0.63864523", "0.5401636", "0.5068013", "0.5004355", "0.49104536", "0.48904943", "0.48877397", "0.48714936", "0.47013405", "0.46730778", "0.46645495", "0.46551314", "0.46427497", "0.4619389", "0.4604255", "0.4580605", "0.457683", "0.4548...
0.8263778
0
Closes any open connections to the underlying databases
def CvfT(YKHO): YKHO.db_connection.close_connections()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wxr4():\n for NCls in smaa.values():\n NCls.close()", "def DDI8(YKHO):\n YKHO.clean()\n for w2B8 in YKHO.conn__.values():\n try:\n w2B8.commit()\n w2B8.close()\n except iHv3.ProgrammingError:\n pass", "def YzkT(YKHO):\n if YKHO._conn is not ...
[ "0.84474874", "0.8211622", "0.80338216", "0.7990529", "0.7889166", "0.7816392", "0.7770842", "0.772729", "0.76978415", "0.76758957", "0.7657428", "0.7656085", "0.7655884", "0.765019", "0.7612401", "0.7602851", "0.7594656", "0.7580378", "0.7569555", "0.75374573", "0.751959", ...
0.84062976
1
A destructive operation to drop the underlying database and close all connections. Intended to be used by test code for cleanup. If database is True, then this should drop the entire database. Otherwise, if collections is True, then this should drop all of the collections used by this modulestore. Otherwise, the module...
def jvhL(YKHO, p9bx=True, g760=True, siZ_=True): super()._drop_database(p9bx, g760, siZ_) YKHO.db_connection._drop_database(p9bx, g760, siZ_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ReNU(YKHO):\n\n def OfVt(mWFP):\n \"\"\"TestDB.drop helper function\"\"\"\n try:\n UzPC.creation._destroy_test_db(mWFP, verbosity=0)\n except:\n return None\n return True\n if not gCuF.DATABASE_ENGINE in ['sqlite3', 'postgresql_psycopg2']:\n return...
[ "0.6912522", "0.6742455", "0.6732116", "0.67305785", "0.6697684", "0.6697684", "0.6678533", "0.6678533", "0.6678533", "0.6678533", "0.6678533", "0.6678533", "0.6678533", "0.6678533", "0.6678533", "0.6645338", "0.65998626", "0.65583265", "0.6519494", "0.6515916", "0.6514582", ...
0.7402762
0
Find the descriptor cache for this course if it exists
def CdCN(YKHO, cUTA): if YKHO.request_cache is None: return None return YKHO.request_cache.data.setdefault('course_cache', {}).get(cUTA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CdCN(YKHO, cUTA):\n if not hasattr(YKHO.thread_cache, 'course_cache'):\n YKHO.thread_cache.course_cache = {}\n Oz1B = YKHO.thread_cache.course_cache\n return Oz1B.get(cUTA)", "def sfcH(YKHO, S7Jr, jXCX, Rci7):\n hKLa = uEIp.cache_for_descriptor_descendents(S7Jr, YKHO.staff_user, jXCX)\n ...
[ "0.6361399", "0.5887188", "0.57271576", "0.5629998", "0.5613309", "0.5510258", "0.5427488", "0.53530014", "0.52426124", "0.52417207", "0.52172154", "0.52119625", "0.5150895", "0.5145449", "0.5131879", "0.50994647", "0.50951713", "0.50937015", "0.50888675", "0.5063768", "0.505...
0.6378092
0
Return an array of all of the orphans in the course.
def oXok(YKHO, VXBI, **B2fa): if not isinstance(VXBI, HM3i) or VXBI.deprecated: raise AW0V(VXBI) Iamm = [mWFP for mWFP, IaaG in kqd0.load_tagged_classes('detached')] GQfX = YKHO._lookup_course(VXBI) DumB = set(GQfX.structure['blocks'].keys()) DumB.remove(GQfX.structure['root']) rmyT = GQ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MQvC():\n U5bT = []\n for EqBn in Y_b3.objects.all():\n if PRV_.objects.filter(descendant=EqBn).count() == 0:\n U5bT.append(EqBn)\n return U5bT", "def oXok(YKHO, VXBI):\n Iamm = [mWFP for mWFP, IaaG in kqd0.load_tagged_classes('detached')]\n xDcj = YKHO._course_key_to_son(VXB...
[ "0.60377336", "0.57976925", "0.56879157", "0.5673465", "0.5672352", "0.5649246", "0.5620423", "0.55818796", "0.5580104", "0.55704206", "0.55599695", "0.5552538", "0.5497069", "0.54842556", "0.5484014", "0.5461218", "0.54577625", "0.54296136", "0.5426422", "0.53883654", "0.538...
0.0
-1
Create a new entry in the active courses index which points to an existing or new structure. Returns the course root of the resulting entry (the location has the course id)
def R62J(YKHO, QAIN, GQfX, iXC1, uJjO, gsc9=None, V_D6=None, z8J0=None, cXMm=None, oOv_='course', Bds9=None, **B2fa): assert gsc9 is not None uG8F = HM3i(org=QAIN, course=GQfX, run=iXC1, branch=gsc9) return YKHO._create_courselike(uG8F, uJjO, gsc9, V_D6, z8J0, cXMm, oOv_, Bds9, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NtP3(YKHO, uG8F, uJjO, gsc9, V_D6=None, z8J0=None, cXMm=None, oOv_='course', Bds9=None, **B2fa):\n d6pt = YKHO.get_course_index(uG8F, ignore_case=True)\n if d6pt is not None:\n raise Beye(uG8F, d6pt)\n C3pF = YKHO.partition_fields_by_scope(oOv_, V_D6)\n yfqt = C3pF[YWRJ.settings]\n if YWR...
[ "0.6929181", "0.64013904", "0.62071186", "0.61486405", "0.6143385", "0.589748", "0.57878083", "0.56724465", "0.56681705", "0.5665047", "0.55656147", "0.5552855", "0.55295444", "0.5510233", "0.5489564", "0.5488629", "0.54446286", "0.54082686", "0.5372727", "0.5366258", "0.5358...
0.5926982
5
This method instantiates the correct subclass of XModuleDescriptor based on the contents of json_data. It does not persist it and can create one which has no usage id. parent_xblock is used to compute inherited metadata as well as to append the new xblock.
def eM1A(YKHO, Qvn0, VXBI, bgCG, yetk=None, V_D6=None, GT9Q=None, VKWB=None, **B2fa): assert Qvn0 is not None Wfoe = Qvn0.load_block_type(bgCG) zgjV = {'block_type': bgCG, 'fields': {}} if GT9Q is not None: zgjV['definition'] = GT9Q if VKWB is None: ICvp = {} else: ICvp =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eM1A(YKHO, Qvn0, Ghho, V_D6=None, yetk=None, GT9Q=None, VKWB=None):\n Wfoe = Qvn0.load_block_type(Ghho)\n zgjV = {'category': Ghho, 'fields': V_D6 or {}}\n if GT9Q is not None:\n zgjV['definition'] = GT9Q\n if VKWB is not None:\n zgjV['_inherited_settings'] = VKWB.xblock_kvs.inherited...
[ "0.6520745", "0.5930786", "0.584284", "0.5812016", "0.56971437", "0.56635016", "0.5623204", "0.55514807", "0.5544859", "0.55113035", "0.54684615", "0.5437197", "0.5409401", "0.5332828", "0.5315792", "0.5200123", "0.51950604", "0.5190217", "0.5139555", "0.5139229", "0.51245785...
0.649731
1
Return True if the settings are not == to the original fields
def mTIQ(YKHO, gCuF, kV2B): mzlV = list(kV2B.keys()) if 'children' in mzlV: mzlV.remove('children') if len(gCuF) != len(mzlV): return True else: k4hq = list(gCuF.keys()) for H5ew in mzlV: if H5ew not in k4hq or kV2B[H5ew] != gCuF[H5ew]: return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mTIQ(YKHO, gCuF, kV2B):\n mzlV = kV2B.keys()\n if 'children' in mzlV:\n mzlV.remove('children')\n if len(gCuF) != len(mzlV):\n return True\n else:\n k4hq = gCuF.keys()\n for H5ew in mzlV:\n if H5ew not in k4hq or kV2B[H5ew] != gCuF[H5ew]:\n retu...
[ "0.79467356", "0.7118527", "0.6934282", "0.68726224", "0.686396", "0.68064344", "0.66815805", "0.664834", "0.6247836", "0.61969346", "0.616874", "0.61615676", "0.6160348", "0.6114915", "0.6095754", "0.60906893", "0.6058233", "0.60563254", "0.6052456", "0.6044839", "0.6026975"...
0.7936154
1
Delete the block or tree rooted at block (if delete_children) and any references w/in the course to the block from a new version of the course structure. returns CourseLocator for new version raises ItemNotFoundError if the location does not exist. raises ValueError if usage_locator points to the structure root
def lpn5(YKHO, psuc, uJjO, DHvX=False): if not isinstance(psuc, __CE) or psuc.deprecated: raise AW0V(psuc) with YKHO.bulk_operations(psuc.course_key): zewB = YKHO._lookup_course(psuc.course_key).structure xL1Q = TgHQ.from_usage_key(psuc) if zewB['root'] == xL1Q: raise...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpn5(YKHO, psuc, uJjO, fRdR=False, fK5h=False, DHvX=False):\n assert isinstance(psuc, __CE)\n zewB = YKHO._lookup_course(psuc.course_key)['structure']\n if zewB['root'] == psuc.block_id:\n raise ValueError('Cannot delete the root of a course')\n tl5L = YKHO._get_index_if_valid(psuc, DHvX)\n ...
[ "0.6936629", "0.6421142", "0.6122814", "0.60422903", "0.59603184", "0.58920443", "0.57414865", "0.5554101", "0.5546292", "0.5514769", "0.5357851", "0.53114384", "0.5307605", "0.52640206", "0.5257437", "0.52031523", "0.52030134", "0.5183137", "0.5170265", "0.5165044", "0.51413...
0.672744
1
Add value to the list ensuring the list is long enough to accommodate it at the given index
def O1R3(YKHO, d6pt, BWXx): v3uw = d6pt - len(YKHO) + 1 if v3uw > 0: YKHO.extend([None] * v3uw) list.__setitem__(YKHO, d6pt, BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, d6pt, BWXx):\n YKHO.__validate_index(d6pt)\n YKHO.__list = YKHO.__list[:d6pt] + [BWXx] + YKHO.__list[d6pt:]\n return YKHO.__list", "def taMJ(YKHO, d6pt, wEf2):\n if 0 <= d6pt < len(YKHO.nums):\n YKHO.nums.insert(d6pt, wEf2)\n elif d6pt == len(YKHO.nums):\n YKHO.nums.ap...
[ "0.72899246", "0.6907019", "0.68651366", "0.683967", "0.6769182", "0.6760779", "0.67505634", "0.66848123", "0.6678297", "0.6632727", "0.66158146", "0.6608906", "0.6608906", "0.6595964", "0.6586267", "0.6581172", "0.65632784", "0.6560353", "0.6559379", "0.65488815", "0.6541182...
0.7282095
1
Function creates a normalization layer for the specified numeric feature.
def QYad(mWFP: str, oxOY: tf.data.Dataset, qHDB=False): WuUW = ZylS.keras.layers.experimental.preprocessing.Normalization(axis=None) if qHDB: fD3u = oxOY.map(lambda WKvO, LVAh, yzQ0: WKvO[mWFP]) else: fD3u = oxOY.map(lambda WKvO, LVAh: WKvO[mWFP]) WuUW.adapt(fD3u) return WuUW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cyDQ(YKHO, RDhP):\n for aVmR in range(YKHO.data_shape[0]):\n RDhP[aVmR] = (RDhP[aVmR] - YKHO.feature_mean[aVmR]) / YKHO.feature_std[aVmR]\n return RDhP", "def vUJ3(FRUf, XJsN=True, mWFP=None):\n return ZylS.contrib.layers.layer_norm(inputs=FRUf, begin_norm_axis=-1, begin_params_axis=-1, train...
[ "0.65399927", "0.6354144", "0.62865245", "0.6273336", "0.6249632", "0.62408394", "0.6182979", "0.6071978", "0.60206324", "0.5994672", "0.59808034", "0.5935642", "0.5917826", "0.5881845", "0.5791358", "0.5759912", "0.57513094", "0.5750446", "0.57262427", "0.5725838", "0.572111...
0.6230879
6
Function plots a chart with training and validation metrics.
def qSo0(QzFq): Emt7 = QzFq.history['loss'] G17X = QzFq.history['val_loss'] PPHi = range(1, len(Emt7) + 1) QrM1.plot(PPHi, Emt7, 'bo', label='Training') QrM1.plot(PPHi, G17X, 'ro', label='Validation') QrM1.title('Training and validation MAE') QrM1.ylabel('Loss (MAE)') QrM1.xlabel('Epochs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO, EvQg: List[float], ClYY: List[float]) -> None:\n YKHO.ax.plot(EvQg)\n YKHO.ax.plot(ClYY)\n YKHO.ax.set_xlabel('epochs')\n if YKHO.loss:\n YKHO.ax.set_ylabel('loss')\n else:\n YKHO.ax.set_ylabel('accuracy')\n YKHO.ax.legend(['train', 'validation'])", "def pNZh(Vwhz, ...
[ "0.7655461", "0.7633836", "0.748409", "0.74176306", "0.73979706", "0.7373917", "0.734832", "0.73385936", "0.73222196", "0.7272251", "0.7250507", "0.72484773", "0.72439075", "0.7206476", "0.71855736", "0.7179055", "0.7156112", "0.71413726", "0.7086196", "0.70732564", "0.705749...
0.0
-1
Test if the email of the user is normalized
def saHt(YKHO): D3lj = 'test@GOOGLE.COM' CBIr = egNl().objects.create_user(D3lj, '212ds') YKHO.assertEqual(CBIr.email, D3lj.lower())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bt7w(YKHO, D3lj):\n return FYrf.Email.normalize_address(D3lj)", "def YBiq(YKHO):\n tTpl = YKHO.cleaned_data['email'].lower()\n if mv1M.objects.filter(email=tTpl).count() > 0:\n raise H6V6.ValidationError('An existing account is using that email address.')\n return tTpl", "def Bt7w(YKHO, ...
[ "0.766158", "0.7491468", "0.7399585", "0.721531", "0.71985656", "0.7187279", "0.7184423", "0.7184423", "0.71306634", "0.7119871", "0.71183753", "0.7106335", "0.7096149", "0.70874584", "0.70781785", "0.7070264", "0.7070264", "0.70585614", "0.70045596", "0.6975868", "0.6955099"...
0.6918848
23
Set new password for the user
def rjh8(YKHO, uJjO, fawY, jTXt): if not jTXt: raise Exception("New password can't be blank.") try: CBIr = YKHO.get(id=uJjO) if not CBIr.reset_code or CBIr.reset_code != fawY or CBIr.reset_code_expire < rIAI.now(): raise Exception('Password reset code is invalid or expired.')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zZft(YKHO, zN5h):\n pass", "def G3s8(YKHO, uGpu):\n super(b485, YKHO).set_password(uGpu)\n YKHO.new_password = uGpu", "def faAE(YKHO):\n YKHO.test_user.set_password(YKHO.create_user_data()['password1'])\n YKHO.test_user.save()", "def wP2P(YKHO, uGpu):\n YKHO.password = uGpu", "def cDC...
[ "0.8562052", "0.8419897", "0.8404144", "0.83254594", "0.81957877", "0.8066909", "0.801569", "0.7983155", "0.7922001", "0.79215026", "0.7906483", "0.7901986", "0.7880637", "0.78703576", "0.7866787", "0.7854254", "0.7851453", "0.7845233", "0.78207177", "0.7820269", "0.7813562",...
0.0
-1
Apply the "gt" operation between "self" and "other"
def jmxi(YKHO, Elif: Union[TensorWrappedPhiTensorPointer, MPCTensor, int, float, np.ndarray]) -> uLKX[lZ2D, reUQ]: return lZ2D._apply_op(YKHO, Elif, '__gt__')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, Elif):\n YKHO.conds.append((YKHO.name, '>', Elif))\n return YKHO", "def jmxi(YKHO, Elif):\n return YKHO.greaterThan(Elif)", "def jmxi(YKHO, Elif):\n return Elif < YKHO", "def jmxi(YKHO, Elif: Any) -> kJ7p:\n return YKHO.operate(_ger, Elif)", "def jmxi(YKHO, Elif):\n return ...
[ "0.84689647", "0.82520205", "0.8193422", "0.80674213", "0.80558026", "0.800849", "0.799071", "0.7946985", "0.7901362", "0.7899278", "0.78909767", "0.78689414", "0.78683186", "0.78683186", "0.7842956", "0.7830139", "0.7771713", "0.77460486", "0.77460486", "0.76710606", "0.7659...
0.68987256
86
Apply the "ge" operation between "self" and "other"
def Zcf_(YKHO, Elif: Union[TensorWrappedPhiTensorPointer, MPCTensor, int, float, np.ndarray]) -> uLKX[lZ2D, reUQ]: return lZ2D._apply_op(YKHO, Elif, '__ge__')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zcf_(YKHO, Elif):\n return YKHO.abs2phy.__ge__(Elif)", "def Zcf_(YKHO, Elif):\n return YKHO.abs2phy.__ge__(Elif)", "def Zcf_(YKHO, Elif):\n return YKHO.x ** 2 + YKHO.y ** 2 >= Elif.x ** 2 + Elif.y ** 2", "def Zcf_(YKHO, Elif):\n return ONIw(MzK7, Elif, YKHO)", "def Zcf_(YKHO, Elif):\n re...
[ "0.80558014", "0.80558014", "0.79868466", "0.7961324", "0.78051895", "0.7802615", "0.770713", "0.7702887", "0.7686695", "0.7681339", "0.762388", "0.76188976", "0.7579965", "0.753623", "0.7516408", "0.75079787", "0.75042", "0.75042", "0.7500837", "0.7492989", "0.7487158", "0...
0.6865808
67
Apply the "le" operation between "self" and "other"
def TPjt(YKHO, Elif: Union[TensorWrappedPhiTensorPointer, MPCTensor, int, float, np.ndarray]) -> uLKX[lZ2D, reUQ]: return lZ2D._apply_op(YKHO, Elif, '__le__')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TPjt(YKHO, Elif):\n return YKHO.abs2phy.__le__(Elif)", "def TPjt(YKHO, Elif):\n return YKHO.abs2phy.__le__(Elif)", "def TPjt(YKHO, Elif):\n return 1 - Qvn0.lt(Elif, YKHO)", "def TPjt(YKHO, Elif):\n return YKHO.lessThanOrEqual(Elif)", "def TPjt(YKHO, Elif):\n return YKHO.runtime.greater_t...
[ "0.801525", "0.801525", "0.79707754", "0.78096956", "0.78011394", "0.7774941", "0.77533686", "0.7749417", "0.756372", "0.7473518", "0.7460254", "0.7457723", "0.7446196", "0.74313086", "0.74198675", "0.74089354", "0.74066883", "0.7404599", "0.7357632", "0.7347238", "0.7334328"...
0.6755636
51
Apply the "eq" operation between "self" and "other"
def xa14(YKHO, Elif: Union[TensorWrappedPhiTensorPointer, MPCTensor, int, float, np.ndarray]) -> uLKX[lZ2D, reUQ]: return lZ2D._apply_op(YKHO, Elif, '__eq__')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n YKHO.conds.append((YKHO.name, '==', Elif))\n return YKHO", "def xa14(YKHO, Elif):\n if Elif is not None:\n return YKHO.value() == Elif.value()\n else:\n return False", "def xa14(YKHO, Elif):\n raise NotImplementedError", "def xa14(YKHO, Elif):\n raise N...
[ "0.7878088", "0.7656015", "0.763252", "0.763252", "0.763252", "0.75939363", "0.7525744", "0.75252616", "0.75252616", "0.7511141", "0.75062954", "0.7505896", "0.7505896", "0.7491136", "0.74889493", "0.7487042", "0.7480274", "0.7480274", "0.7476846", "0.74635756", "0.7449278", ...
0.0
-1
Apply the "ne" operation between "self" and "other"
def Vdqg(YKHO, Elif: Union[TensorWrappedPhiTensorPointer, MPCTensor, int, float, np.ndarray]) -> uLKX[lZ2D, reUQ]: return lZ2D._apply_op(YKHO, Elif, '__ne__')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n pass", "def Vdqg(YKHO, Elif):\n return YKHO.isNot(Elif)", "def Vdqg(YKHO, Elif):\n YKHO.conds.append((YKHO.name, '!=', Elif))\n return YKHO", "def d_5N(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return kUu4(YKHO, Elif)", "def Vdqg(YKHO: _TT...
[ "0.8123668", "0.8080227", "0.8044026", "0.8043643", "0.8026838", "0.79472417", "0.7928555", "0.7795502", "0.77623266", "0.77547103", "0.77408236", "0.7719936", "0.7719936", "0.7719936", "0.7719936", "0.7719936", "0.7719936", "0.7719936", "0.7719936", "0.7719936", "0.7719936",...
0.0
-1
Apply the "softmax" operation on "self"
def N93T(YKHO) -> uLKX[lZ2D, reUQ]: x_OL = 'syft.core.tensor.tensor.Tensor.softmax' def N93T(wEf2: np.ndarray) -> oyIN.ndarray: KeL5 = wEf2 - wEf2.max() M6pt = oyIN.exp(KeL5) dKc3 = 1 / M6pt.sum() return M6pt * dKc3 a7Tu = YKHO.min_vals.copy() a7Tu.data = oyIN.array(N93T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q8xW():\n WKvO = oyIN.array([[[2.0, 3.0, 4.0, 5.0], [3.0, 4.0, 5.0, 6.0], [7.0, 8.0, 8.0, 9.0]], [[1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [6.0, 7.0, 8.0, 9.0]]])\n Ylbp = oyIN.array([[[0.0320586, 0.08714432, 0.23688282, 0.64391426], [0.0320586, 0.08714432, 0.23688282, 0.64391426], [0.07232949, 0.1966...
[ "0.7282096", "0.7256486", "0.7254963", "0.71321", "0.7109516", "0.708068", "0.701603", "0.7006106", "0.6971035", "0.69379747", "0.6931134", "0.6913795", "0.6909939", "0.68986917", "0.68976617", "0.6888045", "0.6869124", "0.6864466", "0.6863424", "0.68517166", "0.68322587", ...
0.0
-1
Repeat elements of an array.
def wPFE(YKHO, DVQL: Union[int, Tuple[int, ...]], jDK_: Optional[int]=None) -> Yrx9: Aofo = YKHO.child.repeat(DVQL, jDK_) if isinstance(YKHO.min_vals, PGTl): XLKX = PGTl(data=YKHO.min_vals.data.min(), shape=Aofo.shape) J4g0 = PGTl(data=YKHO.max_vals.data.max(), shape=Aofo.shape) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wPFE(jzdc, DVQL, jDK_=None):\n return gC0V.asarray(jzdc).repeat(DVQL, axis=jDK_)", "def sWfS(WKvO: Any, WXkz: IntOrIter=1, u54L: int=None, mAB6: int=1) -> sUKM:\n if OjXW(WKvO):\n WKvO = [WKvO]\n if GfZ5(WXkz):\n if len(WXkz) != len(WKvO):\n raise ValueError(f'Invalid times ...
[ "0.77669495", "0.6952881", "0.68815815", "0.67514676", "0.6715123", "0.6682219", "0.66743696", "0.661403", "0.65719515", "0.65643", "0.6558338", "0.65580964", "0.6512198", "0.64070255", "0.6353142", "0.62469375", "0.62239957", "0.6217", "0.6207992", "0.618354", "0.6103445", ...
0.563294
41
Calculate line unit price including discounts and vouchers.
def nnke(smcD: 'CheckoutLineInfo', YwkQ: 'Channel', bnZy: Optional[Iterable[DiscountInfo]]=None) -> _ys5: ntdd = cn8A(line_info=smcD, channel=YwkQ, discounts=bnZy) cTRz = smcD.line.quantity VIXL = ntdd.currency return wDOT(ntdd / cTRz, VIXL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FqID(YKHO, KBgZ, PObu, zFiD, QpfX=None):\n return zFiD.price_unit", "def w9KO(smcD: 'CheckoutLineInfo', YwkQ: 'Channel', bnZy: Optional[Iterable[DiscountInfo]]=None) -> _ys5:\n pPTc = smcD.variant\n Uf7N = pPTc.get_price(smcD.product, smcD.collections, YwkQ, smcD.channel_listing, bnZy or [], smcD.li...
[ "0.73969275", "0.73394305", "0.6993151", "0.6927366", "0.68886274", "0.6861681", "0.66165376", "0.6611978", "0.65724295", "0.65357333", "0.65189856", "0.65183806", "0.6483923", "0.6477163", "0.6466802", "0.6436142", "0.63719827", "0.6348608", "0.6308976", "0.615861", "0.61504...
0.67623496
6
Calculate line total price including discounts and vouchers.
def cn8A(smcD: 'CheckoutLineInfo', YwkQ: 'Channel', bnZy: Optional[Iterable[DiscountInfo]]=None) -> _ys5: lMRV = w9KO(line_info=smcD, channel=YwkQ, discounts=bnZy) if smcD.voucher and smcD.voucher.apply_once_per_order: DxNL = max(lMRV - smcD.voucher.get_discount_amount_for(lMRV, channel=YwkQ), UW8t(lMRV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mlTw(*, p_z1: 'PluginsManager', qPXc: 'CheckoutInfo', Nqlg: Iterable['CheckoutLineInfo'], hHFI: 'CheckoutLineInfo', bnZy: Iterable[DiscountInfo]=[]) -> 'TaxedMoney':\n UTX6 = qPXc.shipping_address or qPXc.billing_address\n CDtS = p_z1.calculate_checkout_line_total(qPXc, Nqlg, hHFI, UTX6, bnZy or [])\n ...
[ "0.72130984", "0.7098418", "0.7073085", "0.7012024", "0.70043033", "0.69671786", "0.6885046", "0.6837071", "0.6777761", "0.67638266", "0.6749034", "0.66829085", "0.6595098", "0.6551119", "0.65477043", "0.647221", "0.6423837", "0.64222634", "0.64187115", "0.64128643", "0.64064...
0.7007376
4
Calculate line total price excluding discounts and vouchers.
def SHgc(smcD: 'CheckoutLineInfo', YwkQ: 'Channel') -> _ys5: lMRV = dDYU(line_info=smcD, channel=YwkQ) woGg = lMRV * smcD.line.quantity return wDOT(woGg, woGg.currency)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GRd6(YKHO):\n Aofo = YKHO.lines.aggregate(total=zphJ('line_price_before_discounts_excl_tax'))\n return Aofo['total']", "def KRhe(YKHO):\n Aofo = YKHO.lines.aggregate(total=zphJ('line_price_before_discounts_incl_tax'))\n return Aofo['total']", "def CpL8(YKHO, KBgZ, PObu, A07C, QWcs, XJYn, kN2l):...
[ "0.7326034", "0.7186262", "0.69015306", "0.6853348", "0.6740668", "0.67262346", "0.6627008", "0.6625306", "0.6611523", "0.6579247", "0.6563589", "0.64025104", "0.6290077", "0.62217015", "0.6181813", "0.6139562", "0.61353797", "0.61082375", "0.5972937", "0.59541214", "0.594935...
0.65664643
10
Calculate line unit price without including discounts and vouchers.
def dDYU(smcD: 'CheckoutLineInfo', YwkQ: 'Channel'): pPTc = smcD.variant Uf7N = pPTc.get_price(smcD.product, smcD.collections, YwkQ, smcD.channel_listing, [], smcD.line.price_override) return wDOT(Uf7N, Uf7N.currency)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FqID(YKHO, KBgZ, PObu, zFiD, QpfX=None):\n return zFiD.price_unit", "def w9KO(smcD: 'CheckoutLineInfo', YwkQ: 'Channel', bnZy: Optional[Iterable[DiscountInfo]]=None) -> _ys5:\n pPTc = smcD.variant\n Uf7N = pPTc.get_price(smcD.product, smcD.collections, YwkQ, smcD.channel_listing, bnZy or [], smcD.li...
[ "0.72960985", "0.71888113", "0.6834595", "0.6819352", "0.6745493", "0.6660202", "0.664901", "0.6597645", "0.64112365", "0.637923", "0.6352976", "0.6339665", "0.62621653", "0.6227796", "0.6216953", "0.6193217", "0.61719316", "0.6141893", "0.6136706", "0.6127397", "0.61103594",...
0.72485054
1
Return checkout shipping price.
def hbiI(qPXc: 'CheckoutInfo', ioW8: 'ShippingMethodInfo', Nqlg: Iterable['CheckoutLineInfo']=None) -> _ys5: from .fetch import CheckoutLineInfo P3iv = ioW8.delivery_method if Nqlg is not None and all((isinstance(zFiD, CheckoutLineInfo) for zFiD in Nqlg)): from .utils import is_shipping_required ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SdNt(*, p_z1: 'PluginsManager', qPXc: 'CheckoutInfo', Nqlg: Iterable['CheckoutLineInfo'], UTX6: Optional['Address'], bnZy: Optional[Iterable[DiscountInfo]]=None) -> 'TaxedMoney':\n CcA_ = p_z1.calculate_checkout_shipping(qPXc, Nqlg, UTX6, bnZy or [])\n return wDOT(CcA_, qPXc.checkout.currency)", "def a...
[ "0.810749", "0.729325", "0.71539706", "0.68384516", "0.6799031", "0.6799031", "0.67477036", "0.6732251", "0.6636605", "0.6620703", "0.65922046", "0.64757997", "0.6433518", "0.6391271", "0.6374596", "0.6374596", "0.6374596", "0.6372151", "0.6344977", "0.6340818", "0.62997717",...
0.6468815
12
Take a string input and try to normalize it to a 13digit, split ISBN. This method takes a string which is meant to represent a split or unsplit 13digit ISBN. It applies a range of tests to verify its validity and then returns a normalized, split variant.
def _Lll(YKHO, Z5r0): U5bT = {'valid': False, 'input_value': str(Z5r0)} czWQ = Z5r0.strip() Hfg8 = czWQ.replace('-', '') PJR9 = False if YKHO.ISBN_SPLIT_RE.match(czWQ): if len(czWQ) < 17: U5bT['error_type'] = 1 return U5bT elif len(czWQ) > 17: U5bT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AlC4(wEf2):\n if OFAs(wEf2):\n wEf2 = KlSa.to_isbn13(wEf2)\n return KlSa.mask(KlSa.canonical(wEf2))", "def qutR(KCHu):\n KCHu = ZbWC.sub('[^0-9xX]', '', KCHu).upper().strip()\n vC9B = len(KCHu)\n if vC9B == 10:\n if T2ID(KCHu):\n return KCHu\n elif vC9B == 13:\n ...
[ "0.6674792", "0.64660627", "0.62945503", "0.6246992", "0.62351245", "0.6074272", "0.6062049", "0.59419674", "0.589477", "0.5799298", "0.5714389", "0.56275535", "0.5602507", "0.55823916", "0.55606186", "0.5551071", "0.55099666", "0.55029225", "0.5407276", "0.5311291", "0.53079...
0.73894507
0
Take a string representing a 13digit ISBN (without hyphens) and test if its check digit is correct.
def s24g(YKHO, Z5r0): if not YKHO.ISBN_RE.match(Z5r0): raise ValueError(str(Z5r0) + ' is no valid 13-digit ISBN!') gV46 = 0 for d6pt, Ko6S in enumerate(Z5r0): if d6pt % 2 == 0: gV46 += int(Ko6S) else: gV46 += 3 * int(Ko6S) return gV46 % 10 == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qutR(KCHu):\n KCHu = ZbWC.sub('[^0-9xX]', '', KCHu).upper().strip()\n vC9B = len(KCHu)\n if vC9B == 10:\n if T2ID(KCHu):\n return KCHu\n elif vC9B == 13:\n if CP49(KCHu):\n return KCHu\n return False", "def _9xF(Wxnj):\n if not (isinstance(Wxnj, str) and ...
[ "0.8214894", "0.8021371", "0.8005802", "0.79226404", "0.7880769", "0.78354245", "0.77611536", "0.7659838", "0.74279064", "0.72540087", "0.7227549", "0.7223759", "0.7174878", "0.71154135", "0.7003766", "0.6941466", "0.6922699", "0.69004124", "0.6846859", "0.681032", "0.6447314...
0.79992795
3
Return a representative string of this object
def wHJl(YKHO) -> str: rPXJ = 'BrownModel(fx={fx}, fy={fy}, px={px}, py={py}, alpha={skew},\n field_of_view={fov}, k1={k1}, k2={k2}, k3={k3}, p1={p1}, p2={p2},\n misalignment={mis!r}, a1={a1}, a2={a2}, a3={a3}, n_rows={nr}, n_cols={nc},\n estimation_parameters={ep!r}, use_a_priori={ap}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO) -> str:\n return '{:s}({!r})'.format(YKHO.__class__.__name__, YKHO.getvalue())", "def wHJl(YKHO) -> str:\n return '{:s}({!r})'.format(YKHO.__class__.__name__, YKHO.getvalue())", "def wHJl(YKHO) -> str:\n return '{:s}({!r})'.format(YKHO.__class__.__name__, YKHO.getvalue())", "def wHJl(...
[ "0.8388756", "0.8388756", "0.8388756", "0.8328609", "0.8328609", "0.8328609", "0.8328609", "0.8313814", "0.8313814", "0.8313814", "0.8313814", "0.8313814", "0.8313814", "0.8313814", "0.8313814", "0.8313814", "0.8313814", "0.8313814", "0.8313814", "0.8313814", "0.82937354", ...
0.0
-1
The focal length in units of pixels along the y axis (focal length divided by y axis pixel pitch)
def stDt(YKHO) -> float: return YKHO.intrinsic_matrix[1, 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDOk(YKHO):\n return YKHO.f * YKHO.diameter", "def ntWY(YKHO):\n PFCt = YKHO.fiber_diameter / 2 / oyIN.tan(oyIN.deg2rad(YKHO.fov / 2))\n return PFCt", "def AHsk():\n Bs4m = TlDD.PyNode('shot_cam').getShape()\n return str(Bs4m.focalLength.get())", "def rBic(YKHO):\n return YKHO.yFus", ...
[ "0.788754", "0.73121446", "0.6450626", "0.62973905", "0.615877", "0.6155386", "0.60900915", "0.60008806", "0.59614646", "0.5949694", "0.5923351", "0.5869475", "0.5864568", "0.58227557", "0.5818874", "0.57800424", "0.57486063", "0.57402515", "0.5732848", "0.5725423", "0.570654...
0.5653421
25
An alpha term for nonrectangular pixels. This corresponds to the [0, 1] component of the intrinsic matrix
def sSwt(YKHO) -> float: return YKHO.intrinsic_matrix[0, 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cwt5(YKHO) -> float:\n return YKHO.intrinsic_matrix[0, 1]", "def ieuo(YKHO):\n return Ywzx.itkRGBAPixelUC_GetAlpha(YKHO)", "def ieuo(YKHO):\n return Ywzx.itkRGBAPixelUS_GetAlpha(YKHO)", "def ifpr(qfpW, vuvg, tjUW):\n return oyIN.dot(qfpW - tjUW, vuvg - tjUW) / oyIN.dot(vuvg - tjUW, vuvg - tjU...
[ "0.73271114", "0.65395194", "0.65311337", "0.6404922", "0.63371676", "0.62575656", "0.62575656", "0.62575656", "0.6222696", "0.62112284", "0.62021446", "0.619871", "0.61942816", "0.61434275", "0.6118861", "0.6077974", "0.60577303", "0.60525185", "0.6028178", "0.6015746", "0.5...
0.0
-1
The radial distortion coefficient corresponding to the r4 term
def Xyq7(YKHO) -> float: return YKHO.distortion_coefficients[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GwAC(YKHO) -> float:\n return YKHO.distortion_coefficients[1]", "def DAj1(YKHO) -> float:\n return YKHO.distortion_coefficients[2]", "def mUwd(YKHO) -> float:\n return YKHO.distortion_coefficients[0]", "def SihC(YKHO, CYjz: np.ndarray) -> oyIN.ndarray:\n HGCR: oyIN.ndarray = 1\n if YKHO.k[...
[ "0.87969923", "0.75054", "0.7216595", "0.69312906", "0.64339226", "0.63490605", "0.63448644", "0.6328019", "0.62846756", "0.62701464", "0.62337613", "0.6182114", "0.61567074", "0.615641", "0.6147529", "0.607349", "0.60599643", "0.6035504", "0.6030468", "0.60072345", "0.600044...
0.0
-1
The tip/tilt/decentering distortion coefficient corresponding to the y term.
def EBgd(YKHO) -> float: return YKHO.distortion_coefficients[3]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLwM(YKHO) -> float:\n return YKHO.distortion_coefficients[3]", "def Z9rn(YKHO, LVAh, a1PO):\n return 1 / 2 * (oyIN.sum((LVAh - a1PO) ** 2) ** 0.5) ** 2", "def Qxz_(LVAh, pKvt):\n return iLNH(pKvt) * (1 - epAf.exp(-kzX6(pKvt) * LVAh / JsNB(pKvt)))", "def Xyq7(YKHO) -> float:\n return YKHO.dis...
[ "0.79322433", "0.68064606", "0.65626264", "0.6455155", "0.63988346", "0.63988346", "0.6396854", "0.6392586", "0.63401", "0.63281226", "0.6232789", "0.62324154", "0.6212128", "0.6207462", "0.6207073", "0.620298", "0.61938345", "0.61749625", "0.6153538", "0.6153538", "0.6153538...
0.59655464
57
The tip/tilt/decentering distortion coefficient corresponding to the x term.
def HpuQ(YKHO) -> float: return YKHO.distortion_coefficients[4]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u7oE(YKHO) -> float:\n return YKHO.distortion_coefficients[4]", "def LEev(YKHO) -> float:\n return YKHO.distortion_coefficients[0]", "def EBgd(YKHO) -> float:\n return YKHO.distortion_coefficients[3]", "def rLwM(YKHO) -> float:\n return YKHO.distortion_coefficients[3]", "def ihCK(YKHO):\n ...
[ "0.75612336", "0.66120297", "0.64530754", "0.6359008", "0.63357747", "0.6313782", "0.60880786", "0.6058135", "0.6047822", "0.6004018", "0.5985889", "0.5978641", "0.595037", "0.58847964", "0.5883826", "0.58681625", "0.5775393", "0.5770165", "0.5758531", "0.57430613", "0.573941...
0.5610056
34
The radial distortion coefficient corresponding to the r4 term
def GwAC(YKHO) -> float: return YKHO.distortion_coefficients[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DAj1(YKHO) -> float:\n return YKHO.distortion_coefficients[2]", "def mUwd(YKHO) -> float:\n return YKHO.distortion_coefficients[0]", "def SihC(YKHO, CYjz: np.ndarray) -> oyIN.ndarray:\n HGCR: oyIN.ndarray = 1\n if YKHO.k[0]:\n HGCR += YKHO.k[0] * CYjz\n if YKHO.k[1]:\n HGCR += ...
[ "0.75054", "0.7216595", "0.69312906", "0.64339226", "0.63490605", "0.63448644", "0.6328019", "0.62846756", "0.62701464", "0.62337613", "0.6182114", "0.61567074", "0.615641", "0.6147529", "0.607349", "0.60599643", "0.6035504", "0.6030468", "0.60072345", "0.6000448", "0.5994733...
0.87969923
0
The tip/tilt/decentering distortion coefficient corresponding to the y term.
def rLwM(YKHO) -> float: return YKHO.distortion_coefficients[3]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9rn(YKHO, LVAh, a1PO):\n return 1 / 2 * (oyIN.sum((LVAh - a1PO) ** 2) ** 0.5) ** 2", "def Qxz_(LVAh, pKvt):\n return iLNH(pKvt) * (1 - epAf.exp(-kzX6(pKvt) * LVAh / JsNB(pKvt)))", "def Xyq7(YKHO) -> float:\n return YKHO.distortion_coefficients[1]", "def LVAh(YKHO):\n return YKHO._turtle.ycor...
[ "0.68070656", "0.6562243", "0.64538574", "0.63990027", "0.63990027", "0.63957673", "0.63933456", "0.63416785", "0.63280827", "0.62337", "0.6232076", "0.62119496", "0.6207458", "0.6207133", "0.6202341", "0.6191225", "0.61757123", "0.61538625", "0.61538625", "0.61538625", "0.61...
0.7930956
0
The tip/tilt/decentering distortion coefficient corresponding to the x term.
def u7oE(YKHO) -> float: return YKHO.distortion_coefficients[4]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LEev(YKHO) -> float:\n return YKHO.distortion_coefficients[0]", "def EBgd(YKHO) -> float:\n return YKHO.distortion_coefficients[3]", "def rLwM(YKHO) -> float:\n return YKHO.distortion_coefficients[3]", "def ihCK(YKHO):\n jzdc, Z9rn, Csk6, Fg_i = YKHO.to_ccw()\n EBgd, hbUd = (jzdc + Fg_i, Z...
[ "0.66121715", "0.64527875", "0.63560426", "0.63368684", "0.63139975", "0.60863584", "0.60588", "0.6047389", "0.600498", "0.5985766", "0.59771216", "0.5950371", "0.5885334", "0.58826536", "0.5868901", "0.5776274", "0.57702", "0.57566893", "0.57438385", "0.5739601", "0.5738259"...
0.7560582
0
This method transforms 3D points or directions expressed in the camera frame into the corresponding 2D image locations. The points input should be either 1 or 2 dimensional, with the first axis being length 3 (each point (direction) in the camera frame is specified as a column). The optional ``image`` key word argument...
def wryc(YKHO, lNp3: ARRAY_LIKE, LNo8: int=0, ovGo: Real=0) -> oyIN.ndarray: bGrB, IaaG, Xqb_ = YKHO.get_projections(lNp3, LNo8, temperature=ovGo) return Xqb_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bOBY(YKHO, lNp3: ARRAY_LIKE, LNo8: int=0, ovGo: Real=0) -> AzJI[oyIN.ndarray, oyIN.ndarray, oyIN.ndarray]:\n lNp3 = oyIN.asarray(lNp3)\n if YKHO.estimate_multiple_misalignments:\n if oyIN.any(YKHO.misalignment[LNo8]):\n lNp3 = QI5E(YKHO.misalignment[LNo8]).squeeze() @ lNp3\n elif oyI...
[ "0.6900852", "0.63088614", "0.6070347", "0.5940883", "0.590531", "0.58069074", "0.572071", "0.56972075", "0.5679944", "0.5675518", "0.56532395", "0.5615244", "0.5608112", "0.5572359", "0.5554709", "0.55475515", "0.5527778", "0.5494807", "0.5478514", "0.5442041", "0.5411114", ...
0.77804095
0
Get the code of cell for Test
def XGGv(VmPb: Cell) -> str: JZXy = Ap19.sub('', VmPb['source']).replace('\r', '') return f'# Test Cell\n{JZXy.strip()}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ibDr(VmPb):\n return VmPb['cell_type'] == 'code'", "def GDKs(VmPb):\n if VmPb['cell_type'] != 'code':\n return False\n JZXy = wVsX(VmPb)\n return JZXy and ZbWC.match(T9rk, JZXy[0], flags=ZbWC.IGNORECASE)", "def M3BC(hFFO):\n assert hFFO.get_cell(3, 1) == '507906000030242007'", "def ...
[ "0.6154993", "0.6043332", "0.59702533", "0.5966432", "0.5956251", "0.5953669", "0.5942119", "0.5921109", "0.5833941", "0.5833941", "0.5833941", "0.5833941", "0.5828637", "0.580202", "0.5711887", "0.5711887", "0.5711887", "0.5711887", "0.5700427", "0.56967574", "0.56558496", ...
0.6820381
0
Adds rate specified point source at the center of cell_index. Returns the index of the new rate well. The units of rate are kg/s.
def UGzs(YKHO, _IVy, wHeb, lbhU): YKHO.rate_wells.append(wHeb) YKHO.rate_wells_rate.append(_IVy) YKHO.rate_wells_name.append(lbhU) return len(YKHO.rate_wells) - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eb_c(mBtZ, GR1I):\n return KZ5A(mBtZ, GR1I)", "def LOK5(YKHO, _IVy, wHeb, lbhU):\n raise NameError('add_rate_well not yet implemented')", "def a3Q1(mBtZ, oZ5f):\n return ypU_(mBtZ, oZ5f)", "def C1Be(jvSB, pan_):\n return (pan_[0] - jvSB[0]) ** 2 + (pan_[1] - jvSB[1]) ** 2", "def L5UU(mBtZ, ...
[ "0.55762017", "0.5430882", "0.5401547", "0.5345356", "0.5278539", "0.52448744", "0.52338934", "0.5147642", "0.51168233", "0.5012667", "0.49884123", "0.49308655", "0.48908228", "0.48515493", "0.48479602", "0.48309967", "0.48301044", "0.47500736", "0.4700235", "0.46753547", "0....
0.60488534
0
The author of the app. This may be an organization name.
def taDc(YKHO) -> str: return YKHO._author
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def taDc(YKHO) -> str:\n return qe4Y.get(YKHO, 'author')", "def taDc(YKHO):\n return YKHO._data.get('author', None)", "def taDc(YKHO):\n return YKHO._changeset.get('author', None)", "def taDc(YKHO):\n return YKHO._author", "def taDc(YKHO):\n return YKHO._author", "def taDc(YKHO):\n retu...
[ "0.8002666", "0.7755853", "0.76482785", "0.756365", "0.756365", "0.756365", "0.7494945", "0.74589664", "0.74589664", "0.74161977", "0.74085903", "0.7377308", "0.71530354", "0.7061731", "0.7048248", "0.6949798", "0.69345075", "0.6931464", "0.6931464", "0.6860079", "0.68161815"...
0.78561145
2
The version number of the app.
def DpZH(YKHO) -> str: return YKHO._version
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CJtF(YKHO) -> str:\n return qe4Y.get(YKHO, 'app_version')", "def kaPv(YKHO):\n nPrm = YKHO._get('app_version')\n return nPrm['version']", "def DpZH(YKHO):\n return YKHO.proto.details.appDetails.versionString", "def DpZH(YKHO):\n return YKHO.manifest['version']", "def DpZH(YKHO):\n ret...
[ "0.88341653", "0.87490255", "0.85175085", "0.84491843", "0.83330125", "0.82620686", "0.820602", "0.8171728", "0.8171728", "0.8171728", "0.8171728", "0.81123245", "0.8084238", "0.8071373", "0.8045607", "0.8010347", "0.79804206", "0.79558265", "0.79534954", "0.79534954", "0.795...
0.80760205
16
The main window for the app.
def HC_s(YKHO) -> Cvzl: return YKHO._main_window
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LTbw():\n pass", "def b8V_(YKHO):\n YKHO.window.show_all()\n MZYv.main()", "def ErKj():\n HC_s = hYxE.MQtUtil.mainWindow()\n return U_Pi.wrapInstance(Swre(HC_s), p5tC.QtWidgets.QWidget)", "def ErKj():\n HC_s = hYxE.MQtUtil.mainWindow()\n return h_2_(Swre(HC_s), x5x0.QWidget)", "def...
[ "0.77721673", "0.75412744", "0.7458601", "0.74379116", "0.74325544", "0.74325544", "0.74325544", "0.73820394", "0.7364752", "0.73627883", "0.73271334", "0.7315375", "0.72902465", "0.72601336", "0.7252809", "0.7233855", "0.72044706", "0.71879685", "0.7122447", "0.70843464", "0...
0.80526423
0
Hide cursor from view.
def LUxT(YKHO) -> None: YKHO._impl.hide_cursor()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUxT():\n lhy8 = wbOP()\n lhy8.setCursorHidden(True)\n P8oC.win.requestProperties(lhy8)", "def LUxT():\n U5bT = XaEZ.SDL_ShowCursor(TkG6)\n if U5bT < 0:\n KhWe('hiding the mouse cursor')", "def Afoa(YKHO):\n YKHO.set_visible(False)", "def JrDO():\n return XaEZ.SDL_ShowCursor(f...
[ "0.8027462", "0.7757837", "0.74412817", "0.7413757", "0.73863417", "0.7113815", "0.7042827", "0.6971995", "0.69178647", "0.6881005", "0.68390054", "0.68257904", "0.6770166", "0.6770166", "0.676966", "0.6756844", "0.6739214", "0.6718766", "0.6718766", "0.66753215", "0.66221386...
0.8764623
0
Open the application's homepage in the default browser. If the application metadata doesn't define a homepage, this is a noop.
def mOf2(YKHO) -> None: if YKHO.home_page is not None: HywK.open(YKHO.home_page)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUar(YKHO):\n if YKHO.home_url is not None:\n YKHO.set_url(YKHO.home_url)", "def oUar(QePW):\n bD7m = QePW.route_url('home', _app_url=NxLh(QePW))\n return MEVA(location=bD7m)", "def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)", "def BZ0h():\n if not bIYZ:\n ...
[ "0.6916172", "0.6697548", "0.6400468", "0.6400468", "0.63540894", "0.6353771", "0.63046205", "0.6300461", "0.6274875", "0.6274157", "0.6261622", "0.6245474", "0.6196917", "0.6160398", "0.61221474", "0.6117675", "0.6117631", "0.6117631", "0.6115424", "0.61142755", "0.6113185",...
0.7404126
0
Create a documentbased Application. A documentbased application is the same as a normal application, with the exception that there is no main window. Instead, each document managed by the app will have it's own window.
def FIMM(YKHO, hT72: str | None=None, B7c0: str | None=None, kvcN: str | None=None, id: str | None=None, _G4g: str | None=None, taDc: str | None=None, DpZH: str | None=None, vja_: str | None=None, JBZA: str | None=None, zZDi: AppStartupMethod | None=None, g7bn: list[str] | None=None, ULn0: OnExitHandler | None=None, i_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EYn4(YKHO):\n P4t4 = YKHO.app\n KnxT = YKHO.window\n KnxT.show()\n P4t4.exec()", "def LUif(YKHO):\n raise NotImplementedError", "def HVtn(ePNl, **YJIb):\n return Nd3k(UpIo.developer_portal, gCuF.ProductionConfig)", "def eLpg():\n return Z33s()", "def P4t4():\n P4t4 = LUif()\n ...
[ "0.7056966", "0.671927", "0.66820997", "0.66635036", "0.65116876", "0.65085894", "0.6425547", "0.6339706", "0.6303332", "0.62694585", "0.6227871", "0.618809", "0.6076847", "0.60748124", "0.60281664", "0.5930749", "0.5914392", "0.5907134", "0.5832579", "0.5819253", "0.58163154...
0.5705825
28
Updates the learning rate given the learning rate decay. The routine has been implemented according to the original Lua SGD optimizer
def e_63(K0do): for uOe2 in K0do.param_groups: if 'step' not in uOe2: uOe2['step'] = 0 uOe2['step'] += 1 uOe2['lr'] = qIxc.lr / (1 + uOe2['step'] * qIxc.lr_decay)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return", "def fggk(YKHO) -> None:\n YKHO.epsilon = YKHO.initial_epsilon / (1.0 + YKHO.rate_decay * YKHO.n_it)\n return", "def e_63(qtWj, Xsfr, BkRq, f9Ey, K0do):\n paSp = oyIN.sum(qtWj > oyIN.as...
[ "0.7999012", "0.7999012", "0.7923972", "0.7874986", "0.78091747", "0.7807278", "0.77625346", "0.7747964", "0.7720907", "0.7703745", "0.7682217", "0.76511174", "0.7618364", "0.7616941", "0.75490105", "0.7534407", "0.75342274", "0.75326735", "0.7531651", "0.7526517", "0.7522038...
0.75397056
15
Return the precision of the climate device.
def OK6l(YKHO) -> float: cnnd = [p4BK, IrbE, NfO3] qmJj = YKHO._static_info if qmJj.visual_current_temperature_step != 0: YPaw = qmJj.visual_current_temperature_step else: YPaw = qmJj.visual_target_temperature_step for eRdl in cnnd: if YPaw >= eRdl: return eRdl ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VvxU(YKHO):\n ...", "def Q8au(YKHO):\n return YKHO.get_precision()", "def rhd_(YKHO):\n return YKHO.__precision", "def rhd_(YKHO):\n return YKHO.__precision", "def rhd_(YKHO) -> float:\n return YKHO._matrix.precision", "def eRdl(YKHO):\n return YKHO._prec", "def eRdl(YKHO):\n r...
[ "0.788355", "0.7763876", "0.7676219", "0.7676219", "0.7317313", "0.7284578", "0.7284578", "0.7274982", "0.7266258", "0.72445273", "0.7237609", "0.70578796", "0.70523655", "0.70465827", "0.7036292", "0.6812104", "0.680383", "0.6763572", "0.67613536", "0.6752192", "0.6701664", ...
0.7453799
4
Return current fan setting.
def TKB7(YKHO) -> str | None: QTBn = YKHO._state return QTBn.custom_fan_mode or pEJM.from_esphome(QTBn.fan_mode)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vmwr(YKHO):\n return YKHO._current_fan_mode", "def TKB7(YKHO) -> str | None:\n return YKHO._current_fan_mode", "def I38n(YKHO):\n return SQUn", "def U4MO(YKHO):\n return YKHO.__fan_mode", "def TKB7(YKHO):\n return YKHO._fan_mode", "def TKB7(YKHO):\n return YKHO._fan_mode", "def vm...
[ "0.7449567", "0.73221064", "0.7309107", "0.720236", "0.71879905", "0.71879905", "0.7134496", "0.705924", "0.69959635", "0.69700766", "0.6842017", "0.68051666", "0.67910105", "0.6722937", "0.67029494", "0.6628719", "0.66091967", "0.6595738", "0.6491829", "0.6454682", "0.632314...
0.657611
18
Return current swing mode.
def PCXA(YKHO) -> str | None: return _sx_.from_esphome(YKHO._state.swing_mode)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PCXA(YKHO) -> str | None:\n return YKHO._current_swing_mode", "def PCXA(YKHO):\n return YKHO._swing_mode", "def tjmo(YKHO):\n return YKHO._current_swing_mode", "def tjmo(YKHO):\n return None", "def bAKB(YKHO):\n return YKHO._swing_modes", "def bAKB(YKHO):\n return YKHO._swing_list",...
[ "0.9201016", "0.89646655", "0.8495496", "0.8187901", "0.77310926", "0.7537186", "0.7359679", "0.6980932", "0.6975297", "0.6939033", "0.68946016", "0.6871971", "0.6865493", "0.68460476", "0.6748605", "0.6698572", "0.6667825", "0.6667502", "0.66546077", "0.66410697", "0.6637367...
0.8540556
2
Shift a date with given amount of months. Month overflows are clipped. E.g. Jan 31 + 1 month > Feb 28
def EvoB(Csk6: Union[dt.date, dt.datetime, pd.Timestamp], X_bn: int=1) -> uLKX[JRYC.date, JRYC.datetime, rLdf.Timestamp]: lO87 = Csk6.year x0eS = Csk6.month + X_bn if not 1 <= x0eS <= 12: lO87 = lO87 + (x0eS - 1) // 12 x0eS = (x0eS - 1) % 12 + 1 try: return Csk6.replace(year=lO87...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ceMH(XjRs, LAxg):\n AjzU = qcWV.strptime(XjRs, '%m/%d/%Y')\n _sQW = qcWV.strptime(LAxg, '%m/%d/%Y')\n return (_sQW.year - AjzU.year) * 12 + _sQW.month - AjzU.month - 1", "def hCRm(_c1T):\n if _c1T.month == 12:\n _c1T = qcWV(_c1T.year + 1, 1, 1)\n else:\n _c1T = qcWV(_c1T.year, _c...
[ "0.6601737", "0.64476234", "0.6301691", "0.62808883", "0.62110174", "0.61765957", "0.6158793", "0.59865683", "0.5949973", "0.5928423", "0.592073", "0.59153014", "0.5813594", "0.57914007", "0.5741284", "0.57052565", "0.5682961", "0.56287175", "0.56236124", "0.55915785", "0.556...
0.7158706
0
Called when the user specifies an intent for this skill
def E97p(McO3, cuiw): print('on_intent requestId=' + McO3['requestId'] + ', sessionId=' + cuiw['sessionId']) E2VF = McO3['intent'] q8Qy = McO3['intent']['name'] if q8Qy == 'FindObjectIntent': return vxgw(E2VF, cuiw) elif q8Qy == 'GetTemperature': return AC3t(E2VF, cuiw) elif q8Qy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r...
[ "0.7143966", "0.6956116", "0.6949057", "0.6905333", "0.68928874", "0.67641324", "0.6754843", "0.6722764", "0.67161995", "0.6699252", "0.6691263", "0.6670276", "0.6645522", "0.6642719", "0.6638686", "0.6607724", "0.6594981", "0.6575682", "0.6570076", "0.65620786", "0.65609014"...
0.6720773
8
The display name for the application.
def qQNS(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'display_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQNS(YKHO):\n ANfV = YKHO._call('display_name')\n return ANfV.display_name", "def qQNS(YKHO):\n return YKHO.settings['displayName']", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str...
[ "0.84603864", "0.83620465", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8167425", "0.8115532", "0.8115532", "0.8115532", "0.8115532", "0.8115532", "0.8115532", ...
0.780021
54
Specifies whether this application supports device authentication without a user. Defaults to `false`.
def NFEy(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'device_only_auth_enabled')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NFEy(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'device_only_auth_enabled')", "def gSBa(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'enable_authentication')", "def KaUZ(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'selective_authentication')", "def KaUZ(YKHO) -> h8nf[...
[ "0.790193", "0.65557116", "0.642526", "0.642526", "0.6348986", "0.62986463", "0.6187738", "0.5896016", "0.5875295", "0.5875295", "0.58743936", "0.58387774", "0.58387774", "0.573451", "0.5722695", "0.57115597", "0.57115597", "0.56902784", "0.5663405", "0.5652437", "0.56505346"...
0.80837446
1
Specifies whether the application is a public client. Appropriate for apps using token grant flows that don't use a redirect URI. Defaults to `false`.
def xpBS(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'fallback_public_client_enabled')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q3XR(YKHO) -> h8nf[qe4Y.Input['ApplicationPublicClientArgs']]:\n return qe4Y.get(YKHO, 'public_client')", "def q3XR(YKHO) -> h8nf[qe4Y.Input['ApplicationPublicClientArgs']]:\n return qe4Y.get(YKHO, 'public_client')", "def xpBS(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'fallback_pub...
[ "0.68363947", "0.68363947", "0.67830515", "0.6505681", "0.6280208", "0.62704164", "0.6243586", "0.6243586", "0.6243586", "0.6243586", "0.59927905", "0.59639245", "0.5949322", "0.5946739", "0.5946739", "0.5934967", "0.5930053", "0.5915916", "0.5915916", "0.58525616", "0.584005...
0.7112489
1
A logo image to upload for the application, as a raw base64encoded string. The image should be in gif, jpeg or png format. Note that once an image has been uploaded, it is not possible to remove it without replacing it with another image.
def WdkD(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'logo_image')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZvTh():\n return WR89.b64decode(b'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEX/TQBcNTh/AAAAAXRSTlPM0jRW/QAAAApJREFUeJxjYgAAAAYAAzY3fKgAAAAASUVORK5CYII=')", "def WdkD(YKHO):\n return YKHO.company_logo or 'upload/default_avatar.gif'", "def nmOv(YKHO):\n from app import textify\n try:\n...
[ "0.79813576", "0.72153246", "0.6970924", "0.68604004", "0.6736078", "0.6554209", "0.65284497", "0.64555794", "0.6432389", "0.6374371", "0.63244677", "0.62635386", "0.62635386", "0.62635386", "0.62635386", "0.62634635", "0.6253474", "0.62421376", "0.62421376", "0.6217152", "0....
0.680888
4
Specifies whether, as part of OAuth 2.0 token requests, Azure AD allows POST requests, as opposed to GET requests. Defaults to `false`, which specifies that only GET requests are allowed.
def kpUY(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'oauth2_post_response_required')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n return False", "def UDhW():\n return 'POST'", "def hX8X(LIlF):\n return LIlF.method in ['HEAD', 'OPTIONS']", "def juaD(QePW):\n return QePW.method == 'POST'", "def bidg(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'request_access_enabled')", "def bidg(YKHO) ->...
[ "0.6081792", "0.56264895", "0.55850613", "0.55316305", "0.54844886", "0.54844886", "0.54627204", "0.5461739", "0.53738385", "0.5334968", "0.53207165", "0.5245951", "0.52398354", "0.52316236", "0.52289134", "0.5224223", "0.5223141", "0.52227193", "0.5204453", "0.519844", "0.51...
0.5508216
4
A `web` block as documented below, which configures web related settings for this application. > Application Name Uniqueness Application names are not unique within Azure Active Directory. Use the `prevent_duplicate_names` argument to check for existing applications if you want to avoid name collisions.
def jA2G(YKHO) -> h8nf[qe4Y.Input['ApplicationWebArgs']]: return qe4Y.get(YKHO, 'web')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, VpPs):\n YKHO._name = VpPs", "def kvcN(YKHO, BWXx):\n YKHO._app_name = BWXx", "def W0tD():\n return GPtr.APP_NAME", "def kvcN(YKHO):\n return 'oauth-dropins demo'", "def kvcN(YKHO):\n return YKHO._app_name", "def klMj(YKHO) -> QMSQ:\n ...", "def SREd(YKHO) -> None:\n ...
[ "0.5805637", "0.5801917", "0.55731195", "0.5467121", "0.54364896", "0.5289888", "0.52641195", "0.524554", "0.5200135", "0.51720077", "0.5083288", "0.5078545", "0.5066698", "0.505212", "0.50446206", "0.49686518", "0.49548832", "0.49362174", "0.49362174", "0.49362174", "0.49362...
0.4899932
22
Specifies whether this application supports device authentication without a user. Defaults to `false`.
def NFEy(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'device_only_auth_enabled')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NFEy(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'device_only_auth_enabled')", "def gSBa(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'enable_authentication')", "def KaUZ(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'selective_authentication')", "def KaUZ(YKHO) -> h8nf[...
[ "0.790193", "0.65557116", "0.642526", "0.642526", "0.6348986", "0.62986463", "0.6187738", "0.5896016", "0.5875295", "0.5875295", "0.58743936", "0.58387774", "0.58387774", "0.573451", "0.5722695", "0.57115597", "0.57115597", "0.56902784", "0.5663405", "0.5652437", "0.56505346"...
0.80837446
0
Whether Microsoft has disabled the registered application. If the application is disabled, this will be a string indicating the status/reason, e.g. `DisabledDueToViolationOfServicesAgreement`
def YCD2(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'disabled_by_microsoft')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YCD2(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'disabled_by_microsoft')", "def JmkF(YKHO):\n return YKHO._app_uninstall_disabled", "def uYGj(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'disabled_reason')", "def gV45(Emd4):\n return Emd4.reason_to_be_disabled() is None", "def gv1u(Y...
[ "0.7363265", "0.73035616", "0.7032541", "0.6687124", "0.662721", "0.6623295", "0.66189885", "0.66189885", "0.661522", "0.65843874", "0.65690154", "0.6562384", "0.6562384", "0.6546885", "0.6510372", "0.644383", "0.64227915", "0.6411034", "0.6389757", "0.6389757", "0.626062", ...
0.7121292
2
The display name for the application.
def qQNS(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'display_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQNS(YKHO):\n ANfV = YKHO._call('display_name')\n return ANfV.display_name", "def qQNS(YKHO):\n return YKHO.settings['displayName']", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str...
[ "0.84603864", "0.83620465", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8324322", "0.8167425", "0.8115532", "0.8115532", "0.8115532", "0.8115532", "0.8115532", "0.8115532", ...
0.76488906
78
Specifies whether the application is a public client. Appropriate for apps using token grant flows that don't use a redirect URI. Defaults to `false`.
def xpBS(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'fallback_public_client_enabled')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q3XR(YKHO) -> h8nf[qe4Y.Input['ApplicationPublicClientArgs']]:\n return qe4Y.get(YKHO, 'public_client')", "def q3XR(YKHO) -> h8nf[qe4Y.Input['ApplicationPublicClientArgs']]:\n return qe4Y.get(YKHO, 'public_client')", "def xpBS(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'fallback_pub...
[ "0.68388957", "0.68388957", "0.6783818", "0.65026027", "0.62822604", "0.6267877", "0.62402743", "0.62402743", "0.62402743", "0.62402743", "0.5989875", "0.5960949", "0.59503686", "0.59503686", "0.5946532", "0.59326094", "0.59275407", "0.5912154", "0.5912154", "0.58492756", "0....
0.7112928
0
A logo image to upload for the application, as a raw base64encoded string. The image should be in gif, jpeg or png format. Note that once an image has been uploaded, it is not possible to remove it without replacing it with another image.
def WdkD(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'logo_image')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZvTh():\n return WR89.b64decode(b'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEX/TQBcNTh/AAAAAXRSTlPM0jRW/QAAAApJREFUeJxjYgAAAAYAAzY3fKgAAAAASUVORK5CYII=')", "def WdkD(YKHO):\n return YKHO.company_logo or 'upload/default_avatar.gif'", "def nmOv(YKHO):\n from app import textify\n try:\n...
[ "0.7981143", "0.72148025", "0.6970497", "0.6860129", "0.6738055", "0.6555166", "0.65273416", "0.64554775", "0.6434083", "0.6376537", "0.63251865", "0.6262822", "0.6262296", "0.6262296", "0.6262296", "0.6262296", "0.62548274", "0.6241293", "0.6241293", "0.6217936", "0.6206818"...
0.6808212
5
Specifies whether, as part of OAuth 2.0 token requests, Azure AD allows POST requests, as opposed to GET requests. Defaults to `false`, which specifies that only GET requests are allowed.
def kpUY(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'oauth2_post_response_required')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n return False", "def UDhW():\n return 'POST'", "def hX8X(LIlF):\n return LIlF.method in ['HEAD', 'OPTIONS']", "def juaD(QePW):\n return QePW.method == 'POST'", "def bidg(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'request_access_enabled')", "def bidg(YKHO) ->...
[ "0.6081792", "0.56264895", "0.55850613", "0.55316305", "0.54844886", "0.54844886", "0.54627204", "0.5461739", "0.53738385", "0.5334968", "0.53207165", "0.5245951", "0.52398354", "0.52316236", "0.52289134", "0.5224223", "0.5223141", "0.52227193", "0.5204453", "0.519844", "0.51...
0.5508216
5
The verified publisher domain for the application.
def XDxm(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'publisher_domain')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XDxm(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'publisher_domain')", "def vK05(YKHO):\n return YKHO.domain", "def zrIJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain')", "def zrIJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain')", "def vK05(YKHO):\n return YKHO._domain", "def JB...
[ "0.84052634", "0.7401995", "0.7373781", "0.7373781", "0.73674095", "0.73489976", "0.7251138", "0.7226201", "0.7226201", "0.7226201", "0.72015774", "0.7140628", "0.708017", "0.70244414", "0.69789034", "0.696854", "0.696854", "0.6964269", "0.69488525", "0.6899571", "0.68887925"...
0.8156008
1
A `web` block as documented below, which configures web related settings for this application. > Application Name Uniqueness Application names are not unique within Azure Active Directory. Use the `prevent_duplicate_names` argument to check for existing applications if you want to avoid name collisions.
def jA2G(YKHO) -> h8nf[qe4Y.Input['ApplicationWebArgs']]: return qe4Y.get(YKHO, 'web')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, VpPs):\n YKHO._name = VpPs", "def kvcN(YKHO, BWXx):\n YKHO._app_name = BWXx", "def W0tD():\n return GPtr.APP_NAME", "def kvcN(YKHO):\n return 'oauth-dropins demo'", "def kvcN(YKHO):\n return YKHO._app_name", "def klMj(YKHO) -> QMSQ:\n ...", "def SREd(YKHO) -> None:\n ...
[ "0.58048755", "0.5801222", "0.55712956", "0.546556", "0.54352385", "0.52893937", "0.52647454", "0.52446866", "0.51969075", "0.5169939", "0.5083204", "0.5076642", "0.5065599", "0.505101", "0.5043331", "0.49673623", "0.49522004", "0.4935466", "0.4935466", "0.4935466", "0.493546...
0.48961195
24
Example Usage Create an application ```python import pulumi import base64 import pulumi_azuread as azuread current = azuread.get_client_config() example = azuread.Application("example", display_name="example",
def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, nNXP: Optional[pulumi.Input[pulumi.InputType['ApplicationApiArgs']]]=None, uqmd: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ApplicationAppRoleArgs']]]]]=None, JBZA: Optional[pulumi.Input[str]]=None, NFEy: Optional[pulumi.Input[boo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPKU(mWFP=None, JBZA=None):\n pass", "def YOHC(YKHO, NKcE='POST', mWFP='Sample App', h85P='sampleapp', JBZA='Description', Eot7=u'Long Description\\n================'):\n if NKcE == 'POST':\n YKHO.create_categories()\n return YKHO.app.post('/app/new', data={'name': mWFP, 'short_name': h85...
[ "0.7277725", "0.6746367", "0.6267596", "0.6206369", "0.6189026", "0.5997745", "0.5994921", "0.5961476", "0.59414744", "0.59152824", "0.5913994", "0.5911413", "0.58866787", "0.5866374", "0.5862522", "0.5839431", "0.58270764", "0.5812851", "0.576877", "0.5765183", "0.57516646",...
0.57344604
22
Example Usage Create an application ```python import pulumi import base64 import pulumi_azuread as azuread current = azuread.get_client_config() example = azuread.Application("example", display_name="example",
def FIMM(Ro_8, kFeU: str, qIxc: ApplicationArgs, VKhi: Optional[pulumi.ResourceOptions]=None): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPKU(mWFP=None, JBZA=None):\n pass", "def YOHC(YKHO, NKcE='POST', mWFP='Sample App', h85P='sampleapp', JBZA='Description', Eot7=u'Long Description\\n================'):\n if NKcE == 'POST':\n YKHO.create_categories()\n return YKHO.app.post('/app/new', data={'name': mWFP, 'short_name': h85...
[ "0.72774976", "0.67462224", "0.6267769", "0.62060386", "0.61896545", "0.5998551", "0.59950185", "0.59609807", "0.5940616", "0.5914583", "0.5913546", "0.5910626", "0.5886105", "0.5865403", "0.5862351", "0.58400995", "0.58270156", "0.58126515", "0.5769408", "0.576495", "0.57512...
0.0
-1
Get an existing Application 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, nNXP: Optional[pulumi.Input[pulumi.InputType['ApplicationApiArgs']]]=None, TGLM: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]=None, uqmd: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['ApplicationAppRoleArg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, VpPs: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, vFpg: Optional[pulumi.Input[str]]=None, dJ1p: Optional[pulumi.Input[Mapping[str, Any]]]=None) -> 'Application':\n VKhi = qe4Y.ResourceOptions.me...
[ "0.65805185", "0.63087666", "0.6210852", "0.5939297", "0.59073037", "0.58668077", "0.58439964", "0.5816552", "0.58106405", "0.570881", "0.5664215", "0.5597263", "0.55850774", "0.5509455", "0.54910964", "0.5461933", "0.54597425", "0.5442064", "0.5407725", "0.53887534", "0.5387...
0.57609755
9
Specifies whether this application supports device authentication without a user. Defaults to `false`.
def NFEy(YKHO) -> qe4Y.Output[h8nf[bool]]: return qe4Y.get(YKHO, 'device_only_auth_enabled')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NFEy(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'device_only_auth_enabled')", "def NFEy(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'device_only_auth_enabled')", "def gSBa(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'enable_authentication')", "def KaUZ(YKHO) -> h8nf[q...
[ "0.80837446", "0.80837446", "0.65557116", "0.642526", "0.642526", "0.6348986", "0.62986463", "0.6187738", "0.5896016", "0.5875295", "0.5875295", "0.58743936", "0.58387774", "0.58387774", "0.573451", "0.5722695", "0.57115597", "0.57115597", "0.56902784", "0.5663405", "0.565243...
0.790193
2
Whether Microsoft has disabled the registered application. If the application is disabled, this will be a string indicating the status/reason, e.g. `DisabledDueToViolationOfServicesAgreement`
def YCD2(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'disabled_by_microsoft')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmkF(YKHO):\n return YKHO._app_uninstall_disabled", "def YCD2(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'disabled_by_microsoft')", "def uYGj(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'disabled_reason')", "def gV45(Emd4):\n return Emd4.reason_to_be_disabled() is None", "def g...
[ "0.7303224", "0.7119325", "0.70295006", "0.6687221", "0.6625431", "0.66220737", "0.6616596", "0.6616596", "0.66130376", "0.6582711", "0.65668964", "0.65604216", "0.65604216", "0.6545759", "0.65086097", "0.6443054", "0.6420923", "0.64096045", "0.6387761", "0.6387761", "0.62579...
0.73613364
0
The display name for the application.
def qQNS(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'display_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQNS(YKHO):\n ANfV = YKHO._call('display_name')\n return ANfV.display_name", "def qQNS(YKHO):\n return YKHO.settings['displayName']", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str...
[ "0.84602207", "0.8361768", "0.8324278", "0.8324278", "0.8324278", "0.8324278", "0.8324278", "0.8324278", "0.8324278", "0.8324278", "0.8324278", "0.8324278", "0.8324278", "0.8324278", "0.8167047", "0.8048344", "0.80325794", "0.8016174", "0.80098313", "0.80098313", "0.80098313"...
0.8115454
20
Specifies whether the application is a public client. Appropriate for apps using token grant flows that don't use a redirect URI. Defaults to `false`.
def xpBS(YKHO) -> qe4Y.Output[h8nf[bool]]: return qe4Y.get(YKHO, 'fallback_public_client_enabled')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpBS(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'fallback_public_client_enabled')", "def xpBS(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'fallback_public_client_enabled')", "def q3XR(YKHO) -> h8nf[qe4Y.Input['ApplicationPublicClientArgs']]:\n return qe4Y.get(YKHO, 'publ...
[ "0.7112109", "0.7112109", "0.6838804", "0.6838804", "0.65038556", "0.6281939", "0.6268782", "0.6241211", "0.6241211", "0.6241211", "0.6241211", "0.59904855", "0.59623533", "0.59481263", "0.59481263", "0.59463936", "0.5933269", "0.5928529", "0.59140164", "0.59140164", "0.58508...
0.6783009
4
A logo image to upload for the application, as a raw base64encoded string. The image should be in gif, jpeg or png format. Note that once an image has been uploaded, it is not possible to remove it without replacing it with another image.
def WdkD(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'logo_image')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZvTh():\n return WR89.b64decode(b'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEX/TQBcNTh/AAAAAXRSTlPM0jRW/QAAAApJREFUeJxjYgAAAAYAAzY3fKgAAAAASUVORK5CYII=')", "def WdkD(YKHO):\n return YKHO.company_logo or 'upload/default_avatar.gif'", "def nmOv(YKHO):\n from app import textify\n try:\n...
[ "0.798273", "0.7216339", "0.69724065", "0.6809278", "0.6809278", "0.6736232", "0.65536255", "0.65290445", "0.6455403", "0.64331913", "0.63754624", "0.63251925", "0.6263393", "0.6263393", "0.6263393", "0.6263393", "0.6263253", "0.6253825", "0.6242892", "0.6242892", "0.62169296...
0.68617225
3
Specifies whether, as part of OAuth 2.0 token requests, Azure AD allows POST requests, as opposed to GET requests. Defaults to `false`, which specifies that only GET requests are allowed.
def kpUY(YKHO) -> qe4Y.Output[h8nf[bool]]: return qe4Y.get(YKHO, 'oauth2_post_response_required')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n return False", "def UDhW():\n return 'POST'", "def hX8X(LIlF):\n return LIlF.method in ['HEAD', 'OPTIONS']", "def juaD(QePW):\n return QePW.method == 'POST'", "def kpUY(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'oauth2_post_response_required')", "def kpUY(Y...
[ "0.6080787", "0.5627004", "0.55849916", "0.5532276", "0.55067277", "0.55067277", "0.5483562", "0.5483562", "0.5463236", "0.54609257", "0.53727764", "0.5333098", "0.5320476", "0.5246424", "0.52393967", "0.52306175", "0.5228846", "0.52236116", "0.5222283", "0.52215093", "0.5205...
0.5083388
32
The verified publisher domain for the application.
def XDxm(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'publisher_domain')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XDxm(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'publisher_domain')", "def vK05(YKHO):\n return YKHO.domain", "def zrIJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain')", "def zrIJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain')", "def vK05(YKHO):\n return YKHO._domain", "d...
[ "0.815532", "0.7402136", "0.73735166", "0.73735166", "0.73675746", "0.73489153", "0.7250924", "0.72262985", "0.72262985", "0.72262985", "0.72015005", "0.714002", "0.708024", "0.70243925", "0.69786894", "0.6968363", "0.6968363", "0.6963417", "0.694852", "0.6899507", "0.6889009...
0.8404752
0
A `web` block as documented below, which configures web related settings for this application. > Application Name Uniqueness Application names are not unique within Azure Active Directory. Use the `prevent_duplicate_names` argument to check for existing applications if you want to avoid name collisions.
def jA2G(YKHO) -> qe4Y.Output[h8nf['outputs.ApplicationWeb']]: return qe4Y.get(YKHO, 'web')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, VpPs):\n YKHO._name = VpPs", "def kvcN(YKHO, BWXx):\n YKHO._app_name = BWXx", "def W0tD():\n return GPtr.APP_NAME", "def kvcN(YKHO):\n return 'oauth-dropins demo'", "def kvcN(YKHO):\n return YKHO._app_name", "def klMj(YKHO) -> QMSQ:\n ...", "def SREd(YKHO) -> None:\n ...
[ "0.58048755", "0.5801222", "0.55712956", "0.546556", "0.54352385", "0.52893937", "0.52647454", "0.52446866", "0.51969075", "0.5169939", "0.5083204", "0.5076642", "0.5065599", "0.505101", "0.5043331", "0.49673623", "0.49522004", "0.4935466", "0.4935466", "0.4935466", "0.493546...
0.44146633
93
Hard reset the ghost position back to its original location
def iqFv(YKHO): YKHO.rect.left, YKHO.rect.top = YKHO.start_pos
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iqFv(YKHO):\n YKHO.set_position(jth9.deepcopy(YKHO.ab_pos))", "def SiRx(YKHO):\n YKHO._x = 0\n YKHO._y = 0", "def iqFv(YKHO):\n YKHO.goto(g9Wj)", "def iqFv(YKHO, WKvO, LVAh):\n YKHO.grid[WKvO][LVAh] = YKHO.terminal", "def iqFv(YKHO):\n YKHO.rect.x = 400\n YKHO.rect.y = 400\n YKH...
[ "0.80594546", "0.7724436", "0.7513997", "0.75054705", "0.74481714", "0.74218756", "0.7378934", "0.72264427", "0.71630377", "0.71295905", "0.71199", "0.7115677", "0.7108925", "0.70704895", "0.70704895", "0.70704895", "0.7045318", "0.70140547", "0.69937086", "0.6988673", "0.697...
0.7766869
1
Get the current column location on the maze map
def GkR5(YKHO): return (YKHO.rect.left - YKHO.screen.get_width() // 5) // YKHO.maze.block_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P90r(YKHO):\n oeNL = YKHO._env.observations()['DEBUG.POS.TRANS']\n WKvO, LVAh = YKHO._to_maze_coord(oeNL[0], oeNL[1])\n return oyIN.array([WKvO, LVAh])", "def ut6Q(YKHO) -> AzJI[int, int]:\n return (YKHO.__row_position, YKHO.__col_position)", "def WvVc(YKHO):\n return [YKHO.row - 1, YKHO.col...
[ "0.6874667", "0.6668471", "0.66362596", "0.65826774", "0.6453075", "0.64276814", "0.6418957", "0.6411399", "0.6406793", "0.63920206", "0.6369816", "0.63647914", "0.6303829", "0.6271424", "0.626639", "0.62477577", "0.6243863", "0.62283534", "0.62250924", "0.62234855", "0.62234...
0.7103007
0
Compose a transformation matrix out of the given scales, offsets and axis rotations.
def capf(m_03, gQVb, HJh3, hLRM=None): Rq8c = oyIN.eye(4) chDb = oyIN.eye(4) HJh3 = oyIN.array(HJh3) if HJh3.shape == (3,): HJh3 = qZR3(*HJh3) if hLRM is not None: Rq8c[0, 3] = -hLRM[0] Rq8c[1, 3] = -hLRM[1] Rq8c[2, 3] = -hLRM[2] chDb[0, 3] = hLRM[0] c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def capf(m_03, gQVb, HJh3, hLRM=None, kwpN=None, AOEm=False):\n Rq8c = oyIN.eye(4)\n chDb = oyIN.eye(4)\n HJh3 = oyIN.array(HJh3)\n if HJh3.shape == (3,):\n HJh3 = qZR3(*HJh3)\n if hLRM is not None:\n Rq8c[0, 3] = -hLRM[0]\n Rq8c[1, 3] = -hLRM[1]\n Rq8c[2, 3] = -hLRM[2]\n...
[ "0.7537555", "0.65690684", "0.64986134", "0.6487529", "0.6481269", "0.64779437", "0.64676887", "0.6443265", "0.6421232", "0.6374487", "0.6032259", "0.5979625", "0.5943301", "0.5902371", "0.58697015", "0.5814364", "0.5743307", "0.5739233", "0.5736209", "0.57157046", "0.5684465...
0.8076804
0
Constructs a ``(3, 3)`` rotation matrix from the given angles, which must be specified in radians.
def qZR3(BmQ_, Pz7a, fcZ4): lOQ5 = oyIN.eye(3) WvJS = oyIN.eye(3) ElFR = oyIN.eye(3) lOQ5[1, 1] = oyIN.cos(BmQ_) lOQ5[1, 2] = -oyIN.sin(BmQ_) lOQ5[2, 1] = oyIN.sin(BmQ_) lOQ5[2, 2] = oyIN.cos(BmQ_) WvJS[0, 0] = oyIN.cos(Pz7a) WvJS[0, 2] = oyIN.sin(Pz7a) WvJS[2, 0] = -oyIN.sin(Pz7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wMJY(bLm4) -> oyIN.array:\n at2S = oyIN.array([[1.0, 0.0, 0.0], [0.0, epAf.cos(bLm4[0]), epAf.sin(bLm4[0])], [0.0, -epAf.sin(bLm4[0]), epAf.cos(bLm4[0])]], dtype='float')\n CKPS = oyIN.array([[epAf.cos(bLm4[1]), 0.0, -epAf.sin(bLm4[1])], [0.0, 1.0, 0.0], [epAf.sin(bLm4[1]), 0.0, epAf.cos(bLm4[1])]], dtyp...
[ "0.81032157", "0.7730615", "0.7703992", "0.76832724", "0.74151605", "0.7353072", "0.7353072", "0.7352797", "0.7352797", "0.7352797", "0.7106909", "0.70327955", "0.7030317", "0.6907833", "0.6900828", "0.6872135", "0.68530506", "0.674285", "0.671553", "0.661541", "0.6557267", ...
0.59142697
93
Takes in a first name and a last name as two parameters, and returns a concatenated string of the full name.
def eHMM(c9ua, zp3f): return c9ua + ' ' + zp3f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f", "def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()", "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()", "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()", "def e1yb(c9ua...
[ "0.9380116", "0.87884164", "0.86451995", "0.86451995", "0.86451995", "0.8613916", "0.86031663", "0.8593502", "0.8572887", "0.85226303", "0.8500354", "0.8500354", "0.8500354", "0.8488867", "0.84846205", "0.84799737", "0.84624654", "0.845756", "0.8455832", "0.8450128", "0.84501...
0.9336813
1
Test that update failures are logged.
async def test_update_failure(ViKD, ajET, GPtr, KTnm): KTnm.set_level(G9jH.ERROR) A5GO, g2g3 = ViKD A5GO.async_update = zrRO(side_effect=fnv6.error.ClientError) await HIcn(ajET, GPtr, g2g3) assert f"Updating '{A5GO.full_name}' failed: " in KTnm.text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsIF(P4t4):\n assert False", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def o5Cq(YKHO):\n assert len(Ky4Y.objects.recent('heartbeat')) == 0\n nPrm = {'experiment_version': '1', 'response_version': 1, 'person_id': 'joemamma', 'survey_id': 'foosurvey'...
[ "0.6998096", "0.69833946", "0.69833946", "0.69833946", "0.6970104", "0.689585", "0.6781766", "0.6774411", "0.67665017", "0.676294", "0.671667", "0.6684071", "0.6609819", "0.6589228", "0.6580149", "0.6580149", "0.6573245", "0.6546282", "0.6526446", "0.65201277", "0.6511645", ...
0.7021775
0
Call the global process tokenizer on the input text.
def wr3U(l5Ny: str) -> cuzp: s2mk = UX8D.tokenize(l5Ny) hlel = {'words': s2mk.words(), 'offsets': s2mk.offsets(), 'pos': s2mk.pos(), 'lemma': s2mk.lemmas(), 'ner': s2mk.entities(), 'sentences': s2mk.sentences()} return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TdB_(l5Ny):\n global tokenizer_tree\n Eerz = mn00.tokenize(l5Ny)\n return Eerz", "def NInT(YKHO, l5Ny: str) -> x1iM[str]:\n return YKHO.bert_model.tokenize(l5Ny.strip())", "def EwIn(l5Ny):\n return N3rN(l5Ny)", "def wr3U(YKHO, l5Ny):\n return YKHO._tokenize(l5Ny)", "def NfQC(l5Ny):\n ...
[ "0.69637275", "0.6924892", "0.68528223", "0.68372166", "0.68065596", "0.6799736", "0.6765403", "0.67490304", "0.6710439", "0.66586006", "0.66367644", "0.66302836", "0.6599883", "0.65889925", "0.6582765", "0.6565064", "0.65626687", "0.655907", "0.6538387", "0.65037644", "0.648...
0.0
-1
Return a discrete colormap from the continuous colormap cmap.
def Qp1W(iMGt, ywwl): if type(iMGt) == str: iMGt = QrM1.get_cmap(iMGt) _1oH = oyIN.concatenate((oyIN.linspace(0, 1.0, ywwl), (0.0, 0.0, 0.0, 0.0))) o1SW = iMGt(_1oH) _0VL = oyIN.linspace(0, 1.0, ywwl + 1) pXRx = {} for BOse, H5ew in enumerate(('red', 'green', 'blue')): pXRx[H5ew]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name + str(ywwl)\n return P8oC.from_list(em8M, F4JO, ywwl)", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name ...
[ "0.728505", "0.72603613", "0.72455084", "0.72360593", "0.72360593", "0.72360593", "0.72089005", "0.7171376", "0.7171376", "0.7171376", "0.7171376", "0.71471137", "0.7134598", "0.7107368", "0.6235518", "0.6215949", "0.6136177", "0.61234826", "0.6092151", "0.6057911", "0.602438...
0.6255922
14
Home page of the app It loads the template page and passes on any current tasks and projects that exist. Also passes along the currently active tab. If the active tab was removed, selects the first project in the Projects database and sets that one as the active one.
def d6pt(): WZHJ = None llaM = sUp6.query.all() xCjU = XQBR.query.all() if len(llaM) == 1: llaM[0].active = True WZHJ = llaM[0].project_id NCls.session.commit() if llaM: for bNKA in llaM: if bNKA.active: WZHJ = bNKA.project_id if no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZFZ(Xg1X):\n llaM = sUp6.query.all()\n for bNKA in llaM:\n if bNKA.project_name == Xg1X:\n bNKA.active = True\n else:\n bNKA.active = False\n NCls.session.commit()\n return vKnz('/')", "def kZiy():\n return TvZl('Main_Page.html')", "def kZiy(QePW):\n a...
[ "0.6601887", "0.6487843", "0.632421", "0.62322557", "0.6208382", "0.61697704", "0.61617917", "0.61453724", "0.61415714", "0.61326885", "0.61320406", "0.6113126", "0.60896224", "0.606239", "0.606239", "0.606239", "0.606239", "0.606239", "0.606239", "0.606239", "0.606239", "0...
0.66121143
0
Test Templates creation in projects
def mO7p(YKHO): try: YKHO.debug('Deploying VM for with public template: %s' % YKHO.template.id) GFpu = RXZI.create(YKHO.apiclient, YKHO.services['server'], templateid=YKHO.template.id, serviceofferingid=YKHO.service_offering.id, projectid=YKHO.project.id) YKHO.cleanup.append(GFpu) YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sLBy(YKHO):\n pass", "def r86z(YKHO):\n pass", "def an91(YKHO):\n x7xt = YKHO.project_template.take_template()\n YKHO.assertTrue(x7xt)", "def CrRZ(YKHO):\n pass", "def CXp8(YKHO):\n pass", "def Vcgz(YKHO):\n YKHO.template = 'plone_addon'\n YKHO.project = 'collective.foo'\n ...
[ "0.7811733", "0.7460819", "0.7352725", "0.7265911", "0.72642744", "0.7079148", "0.707098", "0.70588493", "0.70588493", "0.70588493", "0.6968562", "0.69062257", "0.69041383", "0.6833981", "0.68136793", "0.68062633", "0.6800149", "0.67936975", "0.6766053", "0.66730267", "0.6653...
0.654992
24
Test use of private template in a project
def MP_q(YKHO): try: YKHO.debug('Deploying VM for with public template: %s' % YKHO.template.id) GFpu = RXZI.create(YKHO.apiclient, YKHO.services['server'], templateid=YKHO.template.id, serviceofferingid=YKHO.service_offering.id, projectid=YKHO.project.id) YKHO.cleanup.append(GFpu) YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mO7p(YKHO):\n try:\n YKHO.debug('Deploying VM for with public template: %s' % YKHO.template.id)\n GFpu = RXZI.create(YKHO.apiclient, YKHO.services['server'], templateid=YKHO.template.id, serviceofferingid=YKHO.service_offering.id, projectid=YKHO.project.id)\n YKHO.cleanup.append(GFpu)\n...
[ "0.74264836", "0.71694666", "0.71670556", "0.70519453", "0.7035184", "0.69642603", "0.69372934", "0.6887848", "0.6876676", "0.6861864", "0.68592834", "0.6785371", "0.672083", "0.6697108", "0.666767", "0.66515505", "0.6591332", "0.65756756", "0.65432435", "0.65164953", "0.6507...
0.7319271
1
This returns a compact description of the region, suitable for human consumption.
def JBZA(YKHO): return '%s, %s' % (YKHO.name, YKHO.country)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zn0c(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'region')", "def zn0c(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'region')", "def...
[ "0.7551226", "0.7551226", "0.7551226", "0.7551226", "0.7551226", "0.7551226", "0.7445978", "0.7445978", "0.7445978", "0.7445978", "0.7445978", "0.7445978", "0.7426828", "0.73874456", "0.73402077", "0.7336879", "0.7281869", "0.7281869", "0.7281869", "0.7235257", "0.7205276", ...
0.645011
42
This returns the effective boldness score of the label, based on the blend. Each varietal within the blend has a boldness score, these are weighted based on the portion of the wine made up by that varietal.
def lvEW(YKHO): return sum([wegO.varietal.boldness * wegO.portion / 100.0 for wegO in YKHO.blends])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MxnR(YKHO, yvY1):\n exwG = []\n QRJr = []\n for Q6kx in yvY1.nodes:\n exwG.append(Q6kx)\n Rz9c = []\n y7H1 = yvY1.nodes[Q6kx]['belief_strength']\n PSPb = yvY1.nodes[Q6kx]['uncertainty']\n JxU2 = yvY1.nodes[Q6kx]['probability']\n for uv6v in yvY1.predecessors(Q...
[ "0.5945224", "0.58419406", "0.56666714", "0.5630025", "0.5621001", "0.5585648", "0.556737", "0.556591", "0.55561244", "0.5509792", "0.5505881", "0.5458614", "0.5447041", "0.54452795", "0.5444499", "0.54209197", "0.54193723", "0.54058754", "0.5385326", "0.53715783", "0.5371578...
0.8216474
0
This returns the total value (price) of all unconsumed bottles of this label, added together.
def E7yY(YKHO): BWXx = 0 for BCYG in YKHO.bottles: if BCYG.consumption == None: BWXx += BCYG.inflatedCost return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def doVf(YKHO):\n BWXx = 0\n for BCYG in YKHO.bottles:\n BWXx += BCYG.inflatedCost\n return BWXx", "def h4aS(YKHO):\n wjRY = 0.0\n for AliE in YKHO.drinks:\n wjRY = wjRY + AliE.get_price()\n for UJLR in YKHO.food:\n wjRY = wjRY + UJLR.get_price()\n return wjRY", "def n...
[ "0.71366096", "0.7054682", "0.7002307", "0.692349", "0.6689894", "0.66624624", "0.663871", "0.66339916", "0.66246104", "0.6535497", "0.65155625", "0.6415112", "0.635748", "0.63303185", "0.63290447", "0.63061535", "0.6293522", "0.62630177", "0.6251291", "0.62362224", "0.620674...
0.71843904
0