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
Gets the approval_timestamp of this TransactionInfo.
def DU0p(YKHO) -> str: return YKHO._approval_timestamp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DU0p(YKHO, DU0p: str):\n YKHO._approval_timestamp = DU0p", "def JmMC(YKHO):\n return YKHO.get_file_timestamp('proposal')", "def JmMC(YKHO):\n return YKHO.get_file_timestamp('proposal')", "def JmMC(YKHO):\n return YKHO.get_file_timestamp('proposal')", "def JmMC(YKHO):\n return YKHO.get_fi...
[ "0.69162315", "0.63428426", "0.63428426", "0.63428426", "0.63428426", "0.6317878", "0.56945574", "0.5627916", "0.5604202", "0.5567255", "0.55632424", "0.54812", "0.54524547", "0.5401415", "0.53401935", "0.5336648", "0.5336034", "0.53305775", "0.53248465", "0.53248465", "0.529...
0.86087817
0
An anonymous user should have is_anonymous set to True.
def LC4Q(YKHO): geh0 = YKHO.view(YKHO.factory.get('/')) YKHO.assertTrue(geh0.data['is_anonymous'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wDqn(YKHO):\n return True", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def ...
[ "0.8183236", "0.8163277", "0.81418943", "0.81418943", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", "0.8117817", ...
0.77786195
60
An anonymous user should have is_anonymous set to False and username set.
def QmIw(YKHO): QePW = YKHO.factory.get('/') rliA(QePW, user=YKHO.user) geh0 = YKHO.view(QePW) YKHO.assertFalse(geh0.data['is_anonymous']) YKHO.assertEqual(geh0.data['username'], YKHO.user.username)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hCai(YKHO):\n if YKHO.user_object_id == YKHO.__class__._meta.get_field('user_object_id').default:\n return True\n else:\n return False", "def T6Xi(YKHO):\n return QeuG", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False",...
[ "0.77734995", "0.7721712", "0.76971775", "0.7657502", "0.7657502", "0.7629921", "0.7616033", "0.7607685", "0.7607685", "0.7607685", "0.7607685", "0.7607685", "0.7607685", "0.7607685", "0.7607685", "0.7607685", "0.7607685", "0.7607685", "0.7607685", "0.7607685", "0.7607685", ...
0.0
-1
Single evaluation on the entire provided test dataset.
def QOe9(YKHO): YSue = 0.0 YKHO.model.eval() smhU = 0 with ht2j.no_grad(): for YRbF, nPrm in enumerate(YKHO.testloader, 0): g4y1, Crrw = nPrm if YKHO.device is not None: g4y1, Crrw = map(lambda WKvO: WKvO.to(YKHO.device), (g4y1, Crrw)) o4Jx = Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7La(YKHO, t4zr, C1CV, xkzz):\n raise NotImplementedError", "def b7La(YKHO, t4zr: Dataset) -> float:\n pass", "def b7La(YKHO, C3ST, u0s6, oxOY):\n pass", "def QOe9(YKHO):\n YKHO._estimator.fit(input_fn=YKHO._train_input_fn, steps=1, monitors=YKHO._train_monitors)\n return YKHO._estimator.e...
[ "0.7559087", "0.7540786", "0.7400538", "0.73506445", "0.7208234", "0.71214515", "0.71089315", "0.70605516", "0.70292974", "0.69690686", "0.69611096", "0.69394636", "0.6832613", "0.68177867", "0.6791831", "0.6761159", "0.674695", "0.67226017", "0.6716798", "0.6711953", "0.6702...
0.0
-1
This function returns HTML when accessing the /hbnb route
def AVsy(): wspz = S8SU.all(wHLO).values() YP9k = S8SU.all(HvY3).values() nvWN = S8SU.all(pRgP).values() return TvZl('100-hbnb.html', states=wspz, places=nvWN, amenities=YP9k)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return 'Hello HBNB!'", "def d6pt():\n return 'Hello HBNB!'", "def nVrR(qv1X):\n return '<html><body><h2>OFC</h2></body></html>'", "def NMoC(YKHO, QePW, **B2fa):\n return _1tc(QePW, 'Ballybunnion.html')", "def d6pt():\n Amyp = '<hmtl><body>Welcome to this Blockstack resolver, se...
[ "0.7424268", "0.7420499", "0.6852903", "0.6848522", "0.67503357", "0.67252594", "0.67004347", "0.66866547", "0.66202927", "0.66185766", "0.6595482", "0.65455174", "0.6531207", "0.6522992", "0.6483715", "0.6452984", "0.64256006", "0.64171016", "0.6404367", "0.64025337", "0.639...
0.61888367
35
Show the detail of the question or error when vote is not allowed.
def tver(QePW, _sei): bAls = Iofl(Y4Gy, pk=_sei) hae6 = 'None' LIR4 = False if lFQG.objects.filter(user=QePW.user, question=bAls): hae6 = lFQG.objects.filter(user=QePW.user, question=bAls).first().choice.choice_text LIR4 = True return _1tc(QePW, 'polls/detail.html', {'question': bAls...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZB1Q(YKHO):\n g3ow = pMQf.create_question('Past question', -30)\n bD7m = gxEw('polls:vote', args=[g3ow.id])\n geh0 = YKHO.client.post(bD7m)\n YKHO.assertContains(geh0, 'You did not select a choice', status_code=200)", "def ufdb(QePW, JVBp):\n bAls = Iofl(Y4Gy, pk=JVBp)\n if not bAls.can_vot...
[ "0.6556289", "0.6499986", "0.63833886", "0.6311066", "0.61630607", "0.6147196", "0.6147196", "0.6147196", "0.5951053", "0.59311885", "0.58914554", "0.5870982", "0.586098", "0.5812706", "0.5774303", "0.57507885", "0.57284224", "0.56748575", "0.5674623", "0.56639516", "0.565294...
0.6131953
8
Unpause the audio stream.
def I46x(YKHO): YKHO.mp.set_pause(0) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I46x(YKHO):\n if YKHO._sound:\n if YKHO._pause:\n YKHO._sound_object.play()\n YKHO._pause = False\n return None", "def I46x(YKHO):\n a9eO.mixer.music.unpause()", "def ZnXk(YKHO):\n YKHO.log.debug('Clearing paused() Flag!')\n YKHO.paused.clear()\n YKHO.log.debu...
[ "0.78523195", "0.7635547", "0.73399246", "0.72089934", "0.71607244", "0.7084312", "0.70452845", "0.7022513", "0.69490296", "0.6911969", "0.6869062", "0.6861156", "0.68516505", "0.68413496", "0.6839641", "0.67945087", "0.6703153", "0.6646228", "0.66330487", "0.65974116", "0.65...
0.70961016
5
Calculate the mean reciprocal rank metric.
def umMZ(Y8eF, aMgO, *, S8vG='micro'): if S8vG == 'micro': XFxM = 0 for rblr, S7xM in zip(Y8eF, aMgO): try: XFxM += 1 / (S7xM.index(rblr) + 1) except ValueError: pass return XFxM / len(Y8eF) else: Crrw = set(Y8eF) XO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXEU(HRrY):\n return oyIN.mean(oyIN.reciprocal(oyIN.array(HRrY, dtype=oyIN.float32)))", "def iXEU(H0q3):\n H0q3 = (oyIN.asarray(Mkmy).nonzero()[0] for Mkmy in H0q3)\n return oyIN.mean([1.0 / (Mkmy[0] + 1) if Mkmy.size else 0.0 for Mkmy in H0q3])", "def WvVB(HRrY):\n return oyIN.mean(HRrY)", "...
[ "0.8390052", "0.8268893", "0.73786265", "0.7357589", "0.6968775", "0.67741525", "0.6649589", "0.663037", "0.6424162", "0.6340416", "0.63039577", "0.61362505", "0.6132427", "0.61289954", "0.61289954", "0.61288387", "0.6097478", "0.60750484", "0.6058957", "0.6058957", "0.605459...
0.6116406
16
Clear the display, takes no arguments.
def SaOj(YKHO): YKHO.uart.write(YKHO._SYS_CMD_CLEAR_SCREEN) YKHO.uart.write(YKHO._SYS_CMD_REFRESH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SaOj(YKHO):\n YKHO.clear_buffer()\n YKHO.display()", "def Z8l4(YKHO) -> None:\n YKHO.visa_handle.write('display.clear()')", "def Y7Bk(YKHO):\n YKHO._write_command([xZNc.CLEAR_DISPLAY])", "def Y7Bk(YKHO):\n YKHO.write(KpSw)\n YKHO.write(ehfX)", "def Y7Bk(YKHO):\n YKHO.__write(YKHO.L...
[ "0.88198155", "0.86327416", "0.8434189", "0.84030145", "0.83573526", "0.8230482", "0.80906415", "0.80626136", "0.8055072", "0.80505955", "0.801813", "0.8005648", "0.79655343", "0.7965156", "0.79346776", "0.7924192", "0.7922866", "0.78888637", "0.7882323", "0.7876539", "0.7864...
0.83768016
4
Determine the type of a grid position. If the value is single value, that should be the type. Otherwise, the value should be a block with 'offset' and 'type' values. The offset is in block increments, with 0 0 0 equal to the mounting surface.
def WzkP(p4_k: Entity, I1mm: Property): if I1mm.has_children(): oeNL = I1mm.vec('offset') * 128 SnBA = I1mm['type'].split() else: SnBA = I1mm.value.split() oeNL = Cd5b() oeNL.z -= 128 oeNL.localise(Cd5b.from_str(p4_k['origin']), Cd5b.from_str(p4_k['angles'])) XkN1 = O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VGpA(YKHO):\n a8Pe = {1: 1, 4: 4, 5: 3, 6: 5, 7: 2}\n return a8Pe[YKHO._grid]", "def yGgQ(YKHO, sB1G, FJYC, lt9u='TC_STAT'):\n if lt9u == 'MTD':\n QnmL = 'CENTROID_LAT'\n FDPT = 'CENTROID_LON'\n elif sB1G == 'FCST':\n QnmL = 'ALAT'\n FDPT = 'ALON'\n elif sB1G == 'OB...
[ "0.65996754", "0.59184414", "0.5886206", "0.58105457", "0.58016866", "0.56810856", "0.56646645", "0.5634147", "0.55598974", "0.55586547", "0.5517886", "0.5456831", "0.5407986", "0.53867215", "0.5335703", "0.5315936", "0.5312403", "0.5239198", "0.52259415", "0.5206013", "0.519...
0.5906119
2
Calculate the distance between this item and the opposing wall. The value is stored in the $var specified by the property value. Alternately it is set by `ResultVar`, and `offset` adds or subtracts to the value. `GooCollide` means that it will stop when goo is found, otherwise it is ignored. `GooAdjust` means additiona...
def LaRb(p4_k: Entity, Ylbp: Property): if Ylbp.has_children(): emgu = Ylbp['ResultVar'] njtz = Ylbp.float('offset') BfpO = Ylbp.bool('GooCollide') ZWZy = Ylbp.bool('GooAdjust') else: emgu = Ylbp.value njtz = 0 BfpO = ZWZy = False hLRM = Cd5b.from_str(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(YKHO):\n if YKHO.ctxgeolib == '4.9':\n YKHO.distance = 3 * YKHO.evoarp\n elif YKHO.ctxgeolib == '1.7':\n YKHO.distance = 4 * YKHO.evoarp\n elif YKHO.ctxgeolib == '1.5':\n YKHO.distance = 4 * YKHO.evoarp\n else:\n YKHO.distance = 5 * YKHO.evoarp\n return YKHO.dist...
[ "0.49522564", "0.48849624", "0.48544306", "0.48288247", "0.47706318", "0.46799675", "0.46756363", "0.46752724", "0.46541253", "0.46371892", "0.46297592", "0.456083", "0.45470515", "0.45459482", "0.4541909", "0.4541909", "0.4539055", "0.4538905", "0.45294163", "0.4527567", "0....
0.59862536
0
Full ARN of the repository.
def hMqs(YKHO) -> str: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')", "def hMqs(YKHO) ...
[ "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693", "0.71626693"...
0.713102
40
URL of the repository (in the form `aws_account_id.dkr.ecr.region.amazonaws.com/repositoryName`).
def Pssr(YKHO) -> str: return qe4Y.get(YKHO, 'repository_url')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pssr(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'repository_url')", "def TN9o(YKHO):\n pass", "def Pssr(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'repository_url')", "def Pssr(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'repository_url')", "def Pssr(YKHO) -> qe4Y.Outpu...
[ "0.82068396", "0.8107608", "0.7956983", "0.7956983", "0.7936307", "0.76863456", "0.76863456", "0.7667509", "0.7589061", "0.7585553", "0.75667447", "0.75614476", "0.7502602", "0.74017763", "0.7336487", "0.7314772", "0.72716904", "0.71982825", "0.71885175", "0.7148913", "0.7001...
0.8400444
0
The ECR Repository data source allows the ARN, Repository URI and Registry ID to be retrieved for an ECR repository. Example Usage ```python import pulumi import pulumi_aws as aws service = aws.ecr.get_repository(name="ecrrepository") ```
def _xs3(mWFP: Optional[str]=None, osrd: Optional[str]=None, dJ1p: Optional[Mapping[str, str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> rUiI: rYZf = dict() rYZf['name'] = mWFP rYZf['registryId'] = osrd rYZf['tags'] = dJ1p VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_defaults(), VK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i8JF(Emd4, F3jJ: aws_cdk.aws_ecr.IRepository, TZ9E: typing.Optional[str]=None) -> 'DockerImage':\n return HEOD.sinvoke(Emd4, 'fromEcrRepository', [F3jJ, TZ9E])", "def NOF4(qIxc):\n return qIxc.repository or C9U5.VALUES.artifacts.repository.GetOrFail()", "def _xs3(x0hE, F3jJ=''):\n try:\n re...
[ "0.6705222", "0.6450014", "0.64228565", "0.6376083", "0.62900925", "0.6251377", "0.62511295", "0.61767995", "0.616994", "0.6166235", "0.61279446", "0.6125982", "0.600886", "0.5983127", "0.59808767", "0.5973464", "0.5968342", "0.59668565", "0.5960723", "0.59461385", "0.5939868...
0.6835916
0
The ECR Repository data source allows the ARN, Repository URI and Registry ID to be retrieved for an ECR repository. Example Usage ```python import pulumi import pulumi_aws as aws service = aws.ecr.get_repository(name="ecrrepository") ```
def Rr5o(mWFP: Optional[pulumi.Input[str]]=None, osrd: Optional[pulumi.Input[Optional[str]]]=None, dJ1p: Optional[pulumi.Input[Optional[Mapping[str, str]]]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[n9Uc]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _xs3(mWFP: Optional[str]=None, osrd: Optional[str]=None, dJ1p: Optional[Mapping[str, str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> rUiI:\n rYZf = dict()\n rYZf['name'] = mWFP\n rYZf['registryId'] = osrd\n rYZf['tags'] = dJ1p\n VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_defa...
[ "0.6836406", "0.67049736", "0.64495337", "0.6422299", "0.63756114", "0.62893236", "0.62512934", "0.624966", "0.6176544", "0.6169765", "0.61668754", "0.61270434", "0.61242855", "0.6009377", "0.5981555", "0.5981451", "0.59735173", "0.59690773", "0.59664077", "0.5959903", "0.594...
0.5703367
43
Convert our string value to JSON after we load it from the DB Stricter version to fail faster.
def WOxh(YKHO, BWXx): if BWXx == '': return {} elif isinstance(BWXx, exCv): return qQXR.loads(BWXx) elif isinstance(BWXx, dict): return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jqZH(YKHO, BWXx):\n if BWXx == '':\n return None\n try:\n if isinstance(BWXx, exCv):\n return qQXR.loads(BWXx)\n except ValueError:\n pass\n return BWXx", "def FsIH(YKHO, BWXx):\n return qQXR.dumps(BWXx, ensure_ascii=False)", "def HFpR(YKHO):\n return qQXR....
[ "0.6981441", "0.6882545", "0.68678045", "0.6780113", "0.66668326", "0.6666189", "0.66287136", "0.66287136", "0.66260904", "0.6612449", "0.6609093", "0.6582912", "0.6546641", "0.6536082", "0.6522167", "0.648465", "0.6454463", "0.64535725", "0.64518833", "0.6449651", "0.6440685...
0.6398439
24
Convert our JSON object to a string before we save
def L_rM(YKHO, BWXx, UzPC=None): if BWXx == '': return None if isinstance(BWXx, dict): BWXx = qQXR.dumps(BWXx, cls=cm0j) return super(iAO4, YKHO).get_db_prep_save(BWXx, connection=UzPC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def brdk(KGvk):\n return qQXR.dumps(KGvk)", "def nMY2(YKHO):\n return qQXR.dumps(YKHO.to_dict())", "def kLcZ(YKHO, YEnM):\n return qQXR.dumps(YEnM)", "def kLcZ(YKHO, YEnM):\n return qQXR.dumps(YEnM)", "def gEyL(YEnM):\n return str(YEnM)", "def brdk(YKHO, A97Q: Any) -> str:\n return qQXR...
[ "0.76060736", "0.73253006", "0.72297215", "0.72297215", "0.7170291", "0.71378845", "0.70346886", "0.701869", "0.7002699", "0.69885737", "0.6987213", "0.6966367", "0.69626886", "0.69623005", "0.69124913", "0.6909571", "0.6909571", "0.6889496", "0.6862224", "0.68594563", "0.685...
0.0
-1
Returns the number of output dimensions. By default this is the number of states.
def tKig(YKHO): return 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P0Y0(YKHO) -> int:\n return int(YKHO._output_dimensions)", "def EDoJ(YKHO) -> int:\n return YKHO._output_dim", "def di4x(YKHO):\n if YKHO.calc_acc:\n return 2 * YKHO.n_task_dims\n else:\n return 3 * YKHO.n_task_dims", "def EDoJ(YKHO) -> int:\n pass", "def lkaz(YKHO):\n r...
[ "0.839089", "0.792368", "0.78565365", "0.7814516", "0.7750939", "0.7742762", "0.7706158", "0.7706158", "0.7677454", "0.76523834", "0.7618474", "0.7606245", "0.7552678", "0.7541289", "0.7541289", "0.7526246", "0.74939305", "0.74638677", "0.744635", "0.7433283", "0.7432234", ...
0.0
-1
Returns the number of parameters in the model. Parameters of the model are initial state values and structural parameter values.
def gi2P(YKHO): return 3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v6DW(YKHO):\n return YKHO.get_model_descriptor()['num_parms']", "def ca6I(YKHO):\n return eQ5t(YKHO.model)", "def VgCS(C3ST):\n return sum((XP5J.numel() for XP5J in C3ST.parameters()))", "def UqPz(C3ST):\n return oyIN.sum([XP5J.numel() for XP5J in C3ST.parameters()]).item()", "def UqPz():\n...
[ "0.8760571", "0.87251586", "0.8649998", "0.85817754", "0.8397849", "0.8363232", "0.8324058", "0.8324058", "0.8255534", "0.82497287", "0.82497287", "0.819731", "0.8189378", "0.8189378", "0.8167531", "0.81353533", "0.8123083", "0.8114743", "0.80864894", "0.80447614", "0.8018979...
0.78344655
31
Returns the output names of the model.
def o4Jx(YKHO): return ['Count']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OnZF(YKHO):\n return [bGrB.name for bGrB in YKHO.obj.graph.output]", "def OnZF(YKHO):\n return YKHO._output_names", "def OnZF(YKHO):\n if isinstance(YKHO.obj, GgSu):\n return [bGrB for bGrB in YKHO.obj.output]\n return [bGrB.name for bGrB in YKHO.obj.graph.output]", "def OnZF(YKHO):\n ...
[ "0.87176394", "0.8298696", "0.8048433", "0.8033786", "0.80242324", "0.7830905", "0.78286356", "0.78024894", "0.7694316", "0.76480824", "0.7617186", "0.75429714", "0.75356895", "0.75302166", "0.7399602", "0.73316413", "0.7318751", "0.72934586", "0.7281079", "0.7267833", "0.719...
0.0
-1
Distances of one point `pt` to a set of points `pts`.
def Ayfi(Xf84, y5bX): return oyIN.sqrt((y5bX[:, 0] - Xf84[0]) ** 2 + (y5bX[:, 1] - Xf84[1]) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(y5bX):\n X3qZ = y5bX[0]\n ZYCo = y5bX[1]\n khBW = X3qZ[0] - ZYCo[0]\n awM2 = X3qZ[1] - ZYCo[1]\n return oyIN.sqrt(khBW ** 2 + awM2 ** 2)", "def Ayfi(suSV, X3qZ):\n Nqp_ = 0\n for YRbF in range(len(suSV)):\n Nqp_ += (X3qZ[YRbF] - suSV[YRbF]) ** 2\n return oyIN.sqrt(Nqp_)", ...
[ "0.78690696", "0.71744245", "0.6787922", "0.67818373", "0.67586476", "0.6696261", "0.66301954", "0.66241163", "0.65703577", "0.6567642", "0.65443915", "0.64488137", "0.6439149", "0.64342016", "0.64281505", "0.63830006", "0.63781744", "0.6370406", "0.63639915", "0.6335363", "0...
0.8046518
0
Tries to find `executable` in the directories listed in `path`. A string listing directories separated by 'os.pathsep'; defaults to `os.environ['PATH']`. Returns the complete filename or None if not found.
def dUV3(mdek, pmON=None): if pmON is None: pmON = Hy7s.environ['PATH'] ckRy = pmON.split(Hy7s.pathsep) if not Hy7s.path.isfile(mdek): for XP5J in ckRy: eHNT = Hy7s.path.join(XP5J, mdek) if Hy7s.path.isfile(eHNT): return eHNT return None el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lr1t(mdek, pmON=None):\n if pmON is None:\n pmON = Hy7s.environ['PATH']\n ckRy = pmON.split(Hy7s.pathsep)\n lrZh = ['']\n if gqPv:\n P8oC, YBcr = Hy7s.path.splitext(mdek)\n if not YBcr:\n mdek = mdek + '.exe'\n hQ__ = Hy7s.environ['PATHEXT'].lower().split(Hy7s...
[ "0.82897407", "0.82486576", "0.804134", "0.7988552", "0.7980331", "0.78780526", "0.7725771", "0.7715394", "0.7649573", "0.75265276", "0.74514306", "0.7427378", "0.73144025", "0.7282611", "0.72330326", "0.71793723", "0.715585", "0.71304005", "0.7106744", "0.7104222", "0.708865...
0.8370213
0
>>> a = ["a", "b", "c"] >>> comma_terminate(a) ['a,', 'b,', 'c']
def Ho64(Nqlg): return Wown(Nqlg, ',')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZNqk(vC9B, VWe_=', '):\n Mkmy = []\n for YRbF in vC9B:\n Mkmy.append(YRbF)\n Mkmy.append(VWe_)\n return Mkmy[:-1]", "def LYFS(KCHu):\n if KCHu:\n return ''.join(KCHu.split(','))\n else:\n return KCHu", "def ZgAi(k_ih):\n k_ih = list(k_ih)\n while ',' in k_ih...
[ "0.7155814", "0.70098406", "0.6583759", "0.64980996", "0.64673847", "0.64663863", "0.6420974", "0.62732166", "0.6260224", "0.62047505", "0.61677974", "0.6088903", "0.60635924", "0.6058024", "0.60222054", "0.5972095", "0.59652174", "0.5962034", "0.590695", "0.59045565", "0.588...
0.7306193
0
Given a predicate (from ScheduleStatus => Boolean), return once all tasks return true for that predicate.
def dVvP(YKHO, lgNN): pRmv = YKHO.MIN_POLL_INTERVAL while not all((lgNN(QTBn) for QTBn in YKHO.states().values())): ITS7.sleep(pRmv.as_(Kmii.SECONDS)) pRmv = min(YKHO.MAX_POLL_INTERVAL, 2 * pRmv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v9Bz(OxJJ, lgNN):\n return all((lgNN(WKvO) for WKvO in OxJJ))", "def all(lgNN: Predicate[_T]) -> YrBT[[cBwQ[sb5H]], cBwQ[bool]]:\n from ._all import all_\n return all_(lgNN)", "def f_ZH(lgNN, Q6uT):\n return all((lgNN(WKvO) for WKvO in Q6uT))", "def iwrJ():\n MJry = o2Vr.objects.filter(ove...
[ "0.66518843", "0.66440487", "0.6402203", "0.63080364", "0.6262342", "0.6250397", "0.62253004", "0.6108634", "0.6076472", "0.6045509", "0.59051764", "0.58994055", "0.5768913", "0.57284474", "0.5711412", "0.56956047", "0.56887543", "0.568477", "0.56695855", "0.56654036", "0.564...
0.5659944
20
Read a utf8 encoded text file and return its contents.
def Nwr9(Ux0P): with T_Uj.open(Ux0P, 'r', 'utf8') as eHNT: return eHNT.read()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKHU(Ux0P):\n with T_Uj.open(Ux0P, encoding='utf-8') as gY90:\n hGN5 = gY90.read()\n return hGN5", "def Ueki(YKHO):\n tZ2K = 'utf-8'\n l5Ny = ''\n try:\n with T_Uj.open(YKHO.file_name, 'r', tZ2K) as nUeQ:\n l5Ny = nUeQ.read()\n except (IOError, UnicodeError):\n ...
[ "0.84526896", "0.78845257", "0.78720504", "0.78642577", "0.7728817", "0.76208234", "0.76058054", "0.75785077", "0.75707066", "0.75678474", "0.75659966", "0.75168204", "0.7514278", "0.7460366", "0.7448857", "0.7424829", "0.7402612", "0.7402612", "0.737151", "0.73475605", "0.72...
0.7697132
5
property of the pipeline state.
def QTBn(YKHO): return YKHO._state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO.__state", "def QTBn(YKHO):\n return YKHO._state", "def QTBn(YKHO):\n return YKHO._state", "def QTBn(YKHO):\n return YKHO.__state", "def QTBn(YKHO):\n return YKHO.__state", "def QTBn(YKHO):\n return YKHO._state", "def QTBn(YKHO):\n return YKHO._state", ...
[ "0.76296896", "0.7589385", "0.757639", "0.7565577", "0.7565577", "0.74842364", "0.74842364", "0.74842364", "0.74842364", "0.74842364", "0.7466083", "0.7466083", "0.7466083", "0.7466083", "0.7466083", "0.7466083", "0.7432847", "0.7414383", "0.7406973" ]
0.7395755
43
Analyze text for sentiment, returning its score.
def JybI(YKHO, l5Ny): s2mk = YKHO.tokenizer.tokenize(l5Ny) xaWb = set(s2mk) & set(YKHO.positives) pHjB = set(s2mk) & set(YKHO.negatives) return len(xaWb) - len(pHjB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JybI(YKHO, l5Ny):\n p1kx = 0\n b0j5 = Dhdw.tokenize.TweetTokenizer()\n s2mk = b0j5.tokenize(l5Ny)\n for zFiD in YKHO.positives:\n if zFiD == s2mk[0]:\n p1kx += 1\n else:\n p1kx += 0\n for zFiD in YKHO.negatives:\n if zFiD == s2mk[0]:\n p1kx -...
[ "0.87208176", "0.85311913", "0.82421094", "0.81936306", "0.8187723", "0.81874937", "0.8126702", "0.8122368", "0.80681616", "0.8063584", "0.8044609", "0.80404395", "0.802662", "0.80199224", "0.7970823", "0.79697996", "0.7925178", "0.79161304", "0.79069155", "0.787933", "0.7875...
0.0
-1
remove any invalid characters from folder/file name and cut to max 200 bytes
def c8ST(mWFP): EESs = ZbWC.sub('[/\\\\:*?"<>|]', '', mWFP.strip()) while len(EESs.encode('utf-8')) > 200: EESs = EESs[:-1] EESs = EESs.rstrip('.') EESs = EESs.rstrip(' ') return EESs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NVCy(mWFP):\n return mWFP.translate('___________________________________________+_-._0123456789______@ABCDEFGHIJKLMNOPQRSTUVWXYZ______abcdefghijklmnopqrstuvwxyz_____________________________________________________________________________________________________________________________________').replace('..'...
[ "0.7545235", "0.7043682", "0.6934371", "0.6934371", "0.68910885", "0.6775272", "0.6746378", "0.66888714", "0.6682167", "0.66622055", "0.6661459", "0.6654557", "0.66527367", "0.66420126", "0.66414493", "0.6612967", "0.6532558", "0.6511727", "0.6502102", "0.64931077", "0.648551...
0.68616843
5
Gets the orientation quaternion given a unit vector.
def JTBE(YKHO, j8U8): xTkQ = (oyIN.arctan2(j8U8[1], j8U8[0]) if YKHO._face_travel_direction else 0) + YKHO._yaw_angle C3ap = oyIN.array((0, 0, oyIN.sin(xTkQ / 2), oyIN.cos(xTkQ / 2))) return C3ap
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bBBY(YKHO, iArr):\n FxcA = (iArr ^ VxRP.MVector(0, 1, 0)).normalize()\n g5BG = (iArr ^ FxcA).normalize()\n if YKHO._axis == 0:\n dFHd = VxRP.MVector(-iArr.x, -iArr.y, -iArr.z)\n _zDr = VxRP.MVector(-g5BG.x, -g5BG.y, -g5BG.z)\n Tv7R = FxcA\n if YKHO._invert:\n dFH...
[ "0.74314046", "0.70548326", "0.6866594", "0.68572444", "0.68291795", "0.6700581", "0.6660269", "0.6643114", "0.6642402", "0.663554", "0.6565035", "0.6542832", "0.654229", "0.6499502", "0.6434128", "0.64160305", "0.64084953", "0.63612354", "0.63483614", "0.63469434", "0.632467...
0.7773711
0
Create and save a User with the given email and password.
def lYUQ(YKHO, D3lj, jTXt, **wdCM): if not D3lj: raise ValueError(bGrB('The Email must be set')) D3lj = YKHO.normalize_email(D3lj) CBIr = YKHO.model(email=D3lj, **wdCM) CBIr.set_password(jTXt) CBIr.save() return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n D3lj = YKHO.normalize_email(D3lj)\n ...
[ "0.8765867", "0.85452795", "0.85368717", "0.8527806", "0.85269475", "0.85257876", "0.85186416", "0.8508724", "0.8504736", "0.8504567", "0.8504567", "0.8504567", "0.8494046", "0.8494046", "0.84938884", "0.8492852", "0.849132", "0.8490454", "0.8488974", "0.8488869", "0.84884715...
0.84573334
59
Create and save a SuperUser with the given email and password.
def Zp54(YKHO, D3lj, jTXt, **wdCM): wdCM.setdefault('is_staff', True) wdCM.setdefault('is_superuser', True) wdCM.setdefault('is_active', True) wdCM.setdefault('is_trustee', True) wdCM.setdefault('is_admin', True) if wdCM.get('is_staff') is not True: raise ValueError(bGrB('Superuser must ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)", "def Zp54(YKHO, D3lj: str, jTXt: str, **wdCM: Dict[str, bool]):\n wdCM.setdefault('is_staff', True)\n wdCM.setdefault('is_superuser', True)\n wdCM.setdefault('is_active', True)\n if wdCM.get('is_staff') is not...
[ "0.81715554", "0.80949867", "0.8072965", "0.80660135", "0.80614394", "0.80550295", "0.80352277", "0.79790324", "0.79607594", "0.7955878", "0.7946088", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7942262", "0.7939117", "0.79349...
0.7935015
20
convert the dtypes of columns in a data frame in place
def aaiM(jQ3Z): for fvDH in jQ3Z.columns: jo32 = jQ3Z[fvDH].dtype print('colname: {}, coltype: {}'.format(fvDH, jo32)) if jo32 == 'int64' or jo32 == 'float64': I1mm = jQ3Z[fvDH].isnull().values.any() if I1mm: jo32 = 'float32' elif jo32 == '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aaiM(bOBl, ZLJ_, m1c7):\n iBhB = bOBl.copy()\n YoiK = iBhB.columns.tolist()\n for iVRZ, yDqo in zip(ZLJ_, m1c7):\n if iVRZ in YoiK:\n iBhB[iVRZ] = iBhB[iVRZ].astype(yDqo)\n return iBhB", "def wfWP(jQ3Z: DataFrame, m1c7: dict) -> hxoQ:\n for yDqo, WfCS in m1c7.items():\n ...
[ "0.84788233", "0.8274089", "0.787937", "0.7836651", "0.77611613", "0.76463526", "0.75101304", "0.74498665", "0.73872143", "0.73591727", "0.7332028", "0.7276091", "0.72095853", "0.719934", "0.7138244", "0.70867777", "0.7062424", "0.7014773", "0.69832575", "0.6964278", "0.69386...
0.8077359
2
applies inplace normalization for norm_features columns in dataset (dset dataframe)
def kLFL(tgCD, k6TH, WuUW): print('applying normalization') print(WuUW.__class__) jzdc, Fg_i = WuUW I1mm = (Fg_i == 0).sum() if I1mm: k6TH = Fg_i[Fg_i != 0].index.tolist() tgCD[k6TH] = (tgCD[k6TH] - jzdc[k6TH]) / Fg_i[k6TH] M70D = str(WuUW.__class__).split('.')[-1] if M70D.starts...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(jQ3Z, bySB):\n Y5YY = SNvk()\n jQ3Z[bySB] = Y5YY.fit_transform(jQ3Z[bySB])\n return jQ3Z", "def ydI2(jQ3Z: pd.DataFrame):\n cpvk = SNvk()\n return cpvk.fit_transform(jQ3Z)", "def ydI2(g4y1):\n for YRbF in range(g4y1.shape[1]):\n g4y1[:, YRbF] -= oyIN.mean(g4y1[:, YRbF])\n ...
[ "0.75194925", "0.7396562", "0.73647904", "0.7254536", "0.7254536", "0.723847", "0.72221875", "0.7220559", "0.7218203", "0.72126305", "0.71721894", "0.7153341", "0.70585907", "0.7035224", "0.6989073", "0.6963725", "0.6959598", "0.6959351", "0.6943935", "0.69424534", "0.6931659...
0.74569297
1
3x3 convolution with padding
def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1): return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False, dilation=ivFb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())", "def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)", "def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,...
[ "0.78404945", "0.7541354", "0.753996", "0.7491138", "0.7434801", "0.74207747", "0.73415834", "0.7320252", "0.7299599", "0.7287539", "0.72799367", "0.72799367", "0.7257735", "0.7226928", "0.72204214", "0.7214909", "0.7214909", "0.7210775", "0.7198222", "0.71639067", "0.7161914...
0.70922214
60
r"""ResNeXt50 32x4d model from
def pmgB(mL4f=False, Eb4t=True, **B2fa): B2fa['groups'] = 32 B2fa['width_per_group'] = 4 return CLgi('resnext50_32x4d', MF6R, [3, 4, 6, 3], mL4f, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uwZX(uqvc, **B2fa):\n C3ST = FYrf.resnext50_32x4d(pretrained=False)\n _e7G = C3ST.fc.in_features\n C3ST.fc = U78l.Linear(_e7G, 10)\n C3ST.load_state_dict(ht2j.load(uqvc, map_location='cpu'))\n C3ST.eval()\n return C3ST", "def pmgB(mL4f=False, tk5Y='~/.encoding/models', **B2fa):\n B2fa['g...
[ "0.7095231", "0.70375067", "0.69979155", "0.6693052", "0.66592234", "0.6589471", "0.65661144", "0.6539697", "0.6521217", "0.6424523", "0.6397219", "0.6346019", "0.6344222", "0.6310454", "0.6296665", "0.6296665", "0.62562376", "0.6251345", "0.62472177", "0.62337345", "0.622776...
0.63021964
14
r"""ResNeXt101 32x8d model from
def V7QE(mL4f=False, Eb4t=True, **B2fa): B2fa['groups'] = 32 B2fa['width_per_group'] = 8 return CLgi('resnext101_32x8d', MF6R, [3, 4, 23, 3], mL4f, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V7QE(mL4f=False, tk5Y='~/.encoding/models', **B2fa):\n B2fa['groups'] = 32\n B2fa['bottleneck_width'] = 8\n C3ST = S1Vm(MF6R, [3, 4, 23, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(ht2j.load(_7Lp('resnext101_32x8d', root=tk5Y)), strict=False)\n return C3ST", "def V7QE(mL4f=False, tk5Y...
[ "0.69844323", "0.6942076", "0.65970725", "0.655128", "0.6524174", "0.65187347", "0.64773697", "0.64754397", "0.6451517", "0.6443924", "0.6428872", "0.63850826", "0.63609004", "0.6360059", "0.633551", "0.6331414", "0.63008976", "0.6300644", "0.6294215", "0.62502575", "0.623420...
0.6312455
16
Constructs a ResNeXt101 32x8 model pretrained on weaklysupervised data and finetuned on ImageNet from Figure 5 in
def RTxw(Eb4t=True, **B2fa): B2fa['groups'] = 32 B2fa['width_per_group'] = 8 return pUAO('resnext101_32x8d', MF6R, [3, 4, 23, 3], True, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwNx(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34']))\n mLGw = C3ST.fc.in_features\n C3ST.fc = ht2j.nn.Linear(mLGw, _Fei.MODEL.NUM_CLASS)\n return C3ST", "def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R...
[ "0.71603435", "0.7123846", "0.708103", "0.6992388", "0.6988011", "0.69752675", "0.6961153", "0.69329864", "0.6928297", "0.6921063", "0.6918098", "0.69156015", "0.69156015", "0.69156015", "0.6905341", "0.6903573", "0.6899143", "0.68978107", "0.6886009", "0.6871644", "0.6868619...
0.0
-1
Constructs a ResNeXt101 32x16 model pretrained on weaklysupervised data and finetuned on ImageNet from Figure 5 in
def GVPb(Eb4t=True, **B2fa): B2fa['groups'] = 32 B2fa['width_per_group'] = 16 return pUAO('resnext101_32x16d', MF6R, [3, 4, 23, 3], True, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwNx(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34']))\n mLGw = C3ST.fc.in_features\n C3ST.fc = ht2j.nn.Linear(mLGw, _Fei.MODEL.NUM_CLASS)\n return C3ST", "def FIMM(YKHO):\n super(Zgf_, YKHO).__init__()\n...
[ "0.71499544", "0.7007832", "0.6968973", "0.69376606", "0.6918012", "0.6916343", "0.69119966", "0.68958384", "0.68915886", "0.6886176", "0.68813807", "0.6878508", "0.6865517", "0.6859961", "0.6855711", "0.6854543", "0.6849101", "0.68425125", "0.68425125", "0.68425125", "0.6842...
0.0
-1
Constructs a ResNeXt101 32x32 model pretrained on weaklysupervised data and finetuned on ImageNet from Figure 5 in
def V3IC(Eb4t=True, **B2fa): B2fa['groups'] = 32 B2fa['width_per_group'] = 32 return pUAO('resnext101_32x32d', MF6R, [3, 4, 23, 3], True, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwNx(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34']))\n mLGw = C3ST.fc.in_features\n C3ST.fc = ht2j.nn.Linear(mLGw, _Fei.MODEL.NUM_CLASS)\n return C3ST", "def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R...
[ "0.72796834", "0.7140672", "0.71239454", "0.7080177", "0.7075946", "0.7073032", "0.70600927", "0.70593756", "0.704539", "0.70355445", "0.70355445", "0.70355445", "0.7022979", "0.70187265", "0.7006749", "0.69934994", "0.6968754", "0.69565845", "0.69565845", "0.69565845", "0.69...
0.0
-1
Constructs a ResNeXt101 32x48 model pretrained on weaklysupervised data and finetuned on ImageNet from Figure 5 in
def E3Ly(Eb4t=True, **B2fa): B2fa['groups'] = 32 B2fa['width_per_group'] = 48 return pUAO('resnext101_32x48d', MF6R, [3, 4, 23, 3], True, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OwNx(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet34']))\n mLGw = C3ST.fc.in_features\n C3ST.fc = ht2j.nn.Linear(mLGw, _Fei.MODEL.NUM_CLASS)\n return C3ST", "def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R...
[ "0.7106309", "0.7017255", "0.6952206", "0.694256", "0.6897379", "0.6880789", "0.6879102", "0.68741065", "0.6860353", "0.6854994", "0.6852581", "0.6852369", "0.684435", "0.68382293", "0.6837056", "0.6833754", "0.6828118", "0.6805268", "0.6797018", "0.6788358", "0.6788358", "...
0.0
-1
r"""Wide ResNet1012 model from
def naJe(mL4f=False, Eb4t=True, **B2fa): B2fa['width_per_group'] = 64 * 2 return CLgi('wide_resnet101_2', MF6R, [3, 4, 23, 3], mL4f, Eb4t, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def naJe(**B2fa):\n return CLgi('wide_resnet101_2', **B2fa)", "def dADX():\n xA7f = ht2j.load(Z9rn.target_weight_path)['state_dict']\n b0GN = uUUq(depth=34, widen_factor=10, num_classes=10, dropout_rate=0.1)\n b0GN = ht2j.nn.DataParallel(b0GN)\n b0GN.apply(DVZr)\n b0GN.load_state_dict(xA7f, str...
[ "0.6884907", "0.6818235", "0.6623257", "0.6621224", "0.65992785", "0.65891105", "0.65858686", "0.65858686", "0.65858686", "0.6556851", "0.6554294", "0.6552132", "0.65126264", "0.64775133", "0.64700127", "0.64697415", "0.64632815", "0.6460204", "0.6449679", "0.6449679", "0.644...
0.64014584
37
The name of a public address file, given the secret address file.
def JZhq(_5gh: str) -> str: return _5gh + '.pub'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XD03(mtQe: str) -> str:\n frDh = JZhq(mtQe)\n if vtfo(frDh):\n return frDh\n if vtfo(mtQe):\n return mtQe\n raise iM2w(f'No public key file {frDh} or {mtQe}')", "def WK8r():\n if dD1L in globals():\n UTX6 = hqsM(str(dD1L).encode('utf-8')).hexdigest()\n else:\n oz...
[ "0.6971766", "0.65048486", "0.64244735", "0.6194199", "0.6182741", "0.61491233", "0.59827036", "0.59736407", "0.5957391", "0.58794415", "0.5871392", "0.5867356", "0.5831669", "0.58314836", "0.58265567", "0.5763803", "0.5734735", "0.5715363", "0.5712056", "0.5706327", "0.57048...
0.79281235
0
Returns settings stored as YAML in the configuration file as a dict.
def JW6e(YKHO): gCuF = dict() if YKHO._settings_path is None: return gCuF try: with open(YKHO._settings_path, 'r') as RJsz: gCuF = eJb6.safe_load(RJsz) except IOError: print('Unable to load {} file. Continuing with default settings.'.format(YKHO._settings_path)) f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PR1W():\n RJsz = open('settings.yml')\n gCuF = eJb6.safe_load(RJsz)\n RJsz.close()\n return gCuF", "def NMoC() -> dict:\n with open(Hy7s.getcwd() + hp1l.PATH, encoding='UTF-8') as nUeQ:\n return eJb6.load(nUeQ, Loader=eJb6.FullLoader)", "def pCXw():\n RJsz = 'etc/settings.yml'\n ...
[ "0.79096156", "0.789137", "0.7827688", "0.7568882", "0.7534632", "0.7353543", "0.7304711", "0.7302362", "0.72449684", "0.7173702", "0.715665", "0.7132834", "0.7121241", "0.711732", "0.71132326", "0.70904285", "0.7080907", "0.70150673", "0.6998024", "0.6992589", "0.69781476", ...
0.75992525
3
produces parallel horizontal bar charts that display the distribution of response rates achieved from two strategies. s1, s2 are lists that contain the data frames to be used for each output(strategy) as well as the name of the strategy and whether it is the special case of the passive option. If it is the passive opti...
def Ywea(j93S, Nqp_, Pyrc): QH00 = rLdf.Series() Sf6R = rLdf.Series() Vd5K = j93S[0].keys() for e1SY in Vd5K: lULz = mPQH(j93S[0][e1SY], j93S[1][e1SY], Pyrc, passive=j93S[3]) ChBB = mPQH(Nqp_[0][e1SY], Nqp_[1][e1SY], Pyrc, passive=Nqp_[3]) QH00 = QH00.add(lULz, fill_value=0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZPo(VZrB, yytB):\n v9CE = list(iAsM['YEAR'][iAsM['LocationDesc'] == VZrB])\n pu8V = list(iAsM['MeasureDesc'][iAsM['LocationDesc'] == VZrB])\n u74Z = list(iAsM['YEAR'][iAsM['LocationDesc'] == yytB])\n pblj = list(iAsM['MeasureDesc'][iAsM['LocationDesc'] == yytB])\n return {'data': [{'x': pu8V, '...
[ "0.5779904", "0.5712166", "0.56796545", "0.56235623", "0.5593906", "0.5582198", "0.5557991", "0.5508253", "0.550824", "0.54676384", "0.5440759", "0.5434161", "0.5424007", "0.540428", "0.53893405", "0.5368306", "0.53678143", "0.53630227", "0.5358267", "0.5338588", "0.53124046"...
0.6663888
0
Read the participant file and return as a list of strings
def rtGG(Ux0P): with open(Ux0P) as eHNT: return [mWFP.strip() for mWFP in eHNT]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rtGG(BRD1, lCFC, kXCd=None, eFyq=None):\n v_U2 = []\n raise Exception('You should override the default Participant.read_participants method!')\n return v_U2", "def eIyE(TbkS):\n with open(TbkS, 'rb') as eHNT:\n d7ST = t2lc.load(eHNT)\n mino = []\n for oFUB, nPrm in d7ST.items():\n ...
[ "0.7282021", "0.69697195", "0.6946847", "0.6833569", "0.6651301", "0.6618026", "0.65320486", "0.65258867", "0.65239143", "0.65185386", "0.6511181", "0.6496717", "0.64874935", "0.6485467", "0.64693606", "0.64506716", "0.64374655", "0.6422828", "0.6410547", "0.6403903", "0.6339...
0.8523584
0
Sets the model_holding_date of this AllocationCompositionModelHoldingsVO.
def XFU6(YKHO, XFU6): YKHO._model_holding_date = XFU6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPGz(YKHO, DPGz):\n YKHO._model_holding_id = DPGz", "def qYx3(YKHO, qYx3):\n YKHO._booking_hold_date_time = qYx3", "def rTME(YKHO, rTME):\n YKHO._bill_date = rTME", "def lewj(YKHO, lewj: datetime):\n YKHO._lockout_date = lewj", "def AHi4(YKHO, AHi4):\n YKHO._usage_bill_thru_date = AHi4",...
[ "0.6861512", "0.67813057", "0.54023224", "0.532551", "0.5015157", "0.501422", "0.49359074", "0.4931647", "0.4931647", "0.4931647", "0.4931647", "0.48719737", "0.48617172", "0.4848529", "0.4848529", "0.4848529", "0.48239353", "0.48126048", "0.48018685", "0.47924033", "0.479056...
0.8713185
0
Sets the security_asset_class of this AllocationCompositionModelHoldingsVO.
def H4WT(YKHO, H4WT): YKHO._security_asset_class = H4WT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XiXb(YKHO, XiXb):\n YKHO._security_security_class = XiXb", "def UdRV(YKHO, UdRV):\n YKHO._asset_class = UdRV", "def Y5uN():\n global lakctx\n HVIF = g3Wx.Portfolio()\n crgW = ImgQ(HVIF.asset_classes.ToDict(), lambda WKvO: HF5n.AssetClass.FromDict(WKvO).Validate(), 'AssetClass.yaml')\n HVI...
[ "0.64425117", "0.622099", "0.5379252", "0.53653145", "0.52269995", "0.4981156", "0.49363473", "0.48621097", "0.4852597", "0.47731486", "0.47198835", "0.47198835", "0.47018567", "0.46336496", "0.4622537", "0.46068653", "0.4594123", "0.45795465", "0.45760378", "0.45713833", "0....
0.80683094
0
Sets the security_name of this AllocationCompositionModelHoldingsVO.
def E_Ey(YKHO, E_Ey): YKHO._security_name = E_Ey
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q8S5(YKHO, q8S5: ConfigNodePropertyString):\n YKHO._security_preferences_name = q8S5", "def OG6M(YKHO, OG6M):\n YKHO._security_id = OG6M", "def Mi51(YKHO, Mi51):\n YKHO._security = Mi51", "def mJv3(YKHO, BWXx: str):\n YKHO._properties['signerName'] = BWXx", "def KByf(YKHO, KByf):\n YKHO....
[ "0.5987794", "0.58354354", "0.58309823", "0.58122545", "0.5711678", "0.56955993", "0.55562705", "0.55562705", "0.55252117", "0.5524923", "0.5459579", "0.53460866", "0.5328421", "0.53070325", "0.527798", "0.52371466", "0.52365476", "0.52279925", "0.52279925", "0.52279925", "0....
0.76897216
0
Sets the security_sector of this AllocationCompositionModelHoldingsVO.
def KByf(YKHO, KByf): YKHO._security_sector = KByf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gfr8(YKHO, gfr8):\n YKHO._sector = gfr8", "def qLbW(YKHO, qLbW):\n if qLbW is None:\n raise ValueError('Invalid value for `security_kernel`, must not be `None`')\n YKHO._security_kernel = qLbW", "def Mi51(YKHO, Mi51):\n YKHO._security = Mi51", "def LVCf(YKHO, LVCf):\n YKHO._security...
[ "0.64555407", "0.5553478", "0.55254173", "0.5403288", "0.51517916", "0.494481", "0.49354205", "0.4935114", "0.49238858", "0.48185354", "0.47891232", "0.4658039", "0.4658039", "0.45925277", "0.45689723", "0.45369354", "0.44935748", "0.44861913", "0.44498125", "0.4438668", "0.4...
0.823224
0
Sets the security_ticker of this AllocationCompositionModelHoldingsVO.
def qNum(YKHO, qNum): YKHO._security_ticker = qNum
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KByf(YKHO, KByf):\n YKHO._security_sector = KByf", "def Mi51(YKHO, Mi51):\n YKHO._security = Mi51", "def XcAG(YKHO, XcAG):\n YKHO._issuer_ticker = XcAG", "def SYlA(YKHO, SYlA):\n YKHO._ticker = SYlA", "def v8TD(YKHO, v8TD):\n YKHO._security_exchange = v8TD", "def OG6M(YKHO, OG6M):\n ...
[ "0.6474538", "0.60877436", "0.5842698", "0.5709301", "0.5683768", "0.55657995", "0.5562141", "0.5482054", "0.5396614", "0.53743666", "0.52255106", "0.51579916", "0.5060777", "0.5056989", "0.48941818", "0.48786864", "0.48702872", "0.4844312", "0.48383337", "0.48267898", "0.482...
0.80244374
0
Sets the security_update_date of this AllocationCompositionModelHoldingsVO.
def hfII(YKHO, hfII): YKHO._security_update_date = hfII
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XXYj(YKHO, XXYj):\n YKHO._update_date = XXYj", "def XXYj(YKHO, XXYj):\n YKHO._update_date = XXYj", "def XXYj(YKHO, XXYj):\n YKHO._update_date = XXYj", "def XXYj(YKHO, XXYj):\n YKHO._update_date = XXYj", "def XXYj(YKHO, XXYj):\n YKHO._update_date = XXYj", "def XXYj(YKHO, XXYj):\n YKH...
[ "0.6035879", "0.6035879", "0.6035879", "0.6035879", "0.6035879", "0.6035879", "0.5999335", "0.5708573", "0.5518656", "0.5518656", "0.5518656", "0.5518656", "0.5518656", "0.5473473", "0.53941554", "0.53941554", "0.53941554", "0.5352743", "0.5242086", "0.5242086", "0.5242086", ...
0.7850792
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, f2JX): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Strip quotation mark of given path
def TsLQ(zqRU): if zqRU[0] == '"': zqRU = zqRU[1:-1] return zqRU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w2Ny(pmON):\n return pmON.replace('\\\\', '')", "def AWVE(pmON):\n sIC1 = ['&', ';', '(', ')', '$', '`', \"'\", ' ']\n for Z9rn in sIC1:\n pmON = pmON.replace(Z9rn, '\\\\' + Z9rn)\n return pmON", "def B5sD(YKHO, pmON):\n if pmON.startswith('/'):\n pmON = pmON[1:]\n return pm...
[ "0.76524603", "0.75619096", "0.7324128", "0.72395784", "0.7024407", "0.6947471", "0.69010067", "0.6826051", "0.681949", "0.6812375", "0.67854327", "0.6783305", "0.67818546", "0.6775332", "0.67423093", "0.67320186", "0.67064655", "0.6670895", "0.66656584", "0.6649757", "0.6634...
0.74094325
2
The constructor for Webhook class.
def FIMM(YKHO, bD7m=None, LOJ7=None, eOtH=None): YKHO.embeds = [] if not bD7m and (not all([LOJ7, eOtH])): raise TypeError("Missing required arguments: 'url' or 'channel_id' & 'token'") if all([LOJ7, eOtH]): bD7m = None YKHO.channel_id = str(LOJ7) YKHO.token = str(eOtH) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: WebhookArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(YKHO):\n YKHO.messages = []\n YKHO.webhooks = []", "def FIMM(Ro_8, *, QaO6: pulumi.Input[str], nIjb: pulumi.Input[str]):\n qe4Y.set(Ro_8, 'server_url', QaO6)\n qe4Y.set(Ro_8, 'webhook_nam...
[ "0.74603415", "0.71891457", "0.7180636", "0.71308416", "0.704753", "0.70222175", "0.68448216", "0.6718252", "0.67141044", "0.66165787", "0.65484184", "0.65400094", "0.6534593", "0.6515939", "0.646588", "0.64626247", "0.6457339", "0.64294845", "0.6416414", "0.64125043", "0.639...
0.71234107
4
Testing ActiveDirectoryBackend.get_or_create_user without ad_user_data and with user in database
def IFcb(YKHO): DDLl = EIJD() CBIr = mv1M.objects.create(username='test') YKHO.assertEqual(DDLl.get_or_create_user('test', None), CBIr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rFTx(YKHO):\n DDLl = EIJD()\n YKHO.assertIsNone(DDLl.get_or_create_user('test', None))", "def OgpO(YKHO):\n CBIr = mv1M.objects.create(username='test-user')\n YKHO.assertEqual(YKHO.backend.get_or_create_user(username='test-user'), CBIr)", "def Nz2H(YKHO):\n DDLl = YKHO._get_standard_auth_bac...
[ "0.8572291", "0.8128826", "0.7623027", "0.74401236", "0.7348651", "0.7230715", "0.7139792", "0.70940334", "0.70834416", "0.7045257", "0.69875", "0.6980761", "0.6932098", "0.69180197", "0.6911198", "0.69070315", "0.6904529", "0.6899399", "0.6893054", "0.68615824", "0.6849896",...
0.8787931
0
Apply 2 dimensional Inverse Fast Fourier Transform.
def xhdX(nPrm: torch.Tensor, ngai: bool=False, OEry: str='backward', ZgBm: Sequence[int]=None) -> ht2j.Tensor: if nPrm.shape[-1] == 2: nPrm = ht2j.view_as_complex(nPrm) if ZgBm is None: ZgBm = [-2, -1] elif isinstance(ZgBm, XPhc): ZgBm = list(ZgBm) if ngai: nPrm = M5_u(nP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKRt(YKHO, SppC):\n \"\"\"\n npifft2 = np.fft.ifft2(matrix, s=None, axes=None, norm=None)\n #im = Image.fromarray(npifft2.real)\n #im.show()\n print(\"NUMPY IFFT2 START------------------------------------------------------------------------NUMPY IFFT2 START \")\n print(npi...
[ "0.7579214", "0.74007463", "0.73511267", "0.6850791", "0.6837886", "0.6703026", "0.66986287", "0.65912944", "0.6564226", "0.6512685", "0.64895326", "0.6427667", "0.6416302", "0.639435", "0.6331759", "0.6329723", "0.6328974", "0.63257927", "0.630519", "0.6234984", "0.62090707"...
0.58983076
39
Getter for state returns current state
def QTBn(YKHO): return YKHO.__state
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO) -> wHLO:\n return YKHO.state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO.__state", "def bGIA(YKHO):\n return YKHO....
[ "0.8626936", "0.8624279", "0.8624279", "0.8624279", "0.8624279", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "0.86084044", "...
0.0
-1
True if the credential is expired or invalid. If the token_expiry isn't set, we assume the token doesn't expire.
def otlE(YKHO): if not YKHO.token_expiry: return False wzkt = qcWV.datetime.utcnow() if wzkt >= YKHO.token_expiry: bo34.info('access_token is expired. Now: %s, token_expiry: %s', wzkt, YKHO.token_expiry) return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sOqB(YKHO):\n if not YKHO._oauth_token:\n raise Exception('OAuth token has not been fetched.')\n wzkt = qcWV.datetime.now().timestamp()\n if wzkt > YKHO._oauth_token['expires_at']:\n print('token is expired')\n return True\n else:\n return False", "def JmWR() -> bool:\...
[ "0.7943695", "0.7684187", "0.7604797", "0.7506512", "0.75030184", "0.749728", "0.7463904", "0.7407492", "0.73845816", "0.7358139", "0.73526573", "0.7335318", "0.7283125", "0.7274466", "0.72605264", "0.7249852", "0.71549124", "0.71430004", "0.71221143", "0.7056332", "0.7028512...
0.774554
1
Return a custom 404 error.
def RQdI(P1dF): return 'Sorry, nothing at this URL.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(P1dF):\n return '404'", "def mZnU():\n return oGir(RA4y, '<h1>404 Error : Some crap went down, so just <a href=\"/\">HEAD HOME</a>.</h1>', [])", "def eJkH(XObx):\n return dict(err=XObx)", "def o3cf(P1dF):\n return G3KB('Not Found', 404)", "def RQdI(P1dF):\n return 'Sorry, Nothing at...
[ "0.8263737", "0.79933435", "0.79192984", "0.78825426", "0.7845269", "0.78424567", "0.7816168", "0.78139937", "0.78001934", "0.77720594", "0.77618265", "0.7702134", "0.76248384", "0.7620647", "0.76148254", "0.75642604", "0.75578934", "0.75420976", "0.7541908", "0.7541908", "0....
0.7818006
6
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(vq30, YKHO).__init__(*qIxc, **c_sp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8165213", "0.77197707", "0.77197707", "0.7652202", "0.7573333", "0.7544022", "0.7484976", "0.7471328", "0.7458079", "0.7445732", "0.74455976", "0.7433956", "0.741542", "0.7408282", "0.739147", "0.737536", "0.73631966", "0.732547", "0.73231727", "0.73231727", "0.73231727", ...
0.0
-1
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(J_2t, YKHO).__init__(*qIxc, **c_sp) if YKHO.SRFcount is None: YKHO.SRFcount = 0 if YKHO.SRFAddress is None: YKHO.SRFAddress = [] if YKHO.SRFNotFound is None: YKHO.SRFNotFound = [] if YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8166801", "0.7720956", "0.7720956", "0.76532966", "0.7573827", "0.7544879", "0.7485957", "0.74708927", "0.7458655", "0.7446803", "0.7445387", "0.74340373", "0.74156934", "0.7408849", "0.7391926", "0.73756754", "0.7363556", "0.7326191", "0.7324762", "0.7324762", "0.7324762"...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83931077", "0.83551943", "0.8295509", "0.8132744", "0.8115034", "0.8100248", "0.8099668", "0.80982566", "0.80982566", "0.809302", "0.809302", "0.809302", "0.809302", "0.808576", "0.808576", "0.808576", "0.808576", "0.808576", "0.80673736", "0.80593926", "0.80581796", "0....
0.8044342
33
Create a paginator for an operation.
def oL8A(hTqE=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\n pass", "def oL8A(YKHO, hTqE: str=None) -> NIbP:\...
[ "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.76366186", "0.70472574", "0.67338336", "0.6382978",...
0.7726925
5
Returns a list of container instances in a specified cluster. You can filter the results of a ListContainerInstances operation with cluster query language statements inside the filter parameter. For more information, see Cluster Query Language in the Amazon Elastic Container Service Developer Guide .
def H430(hKn5=None, filter=None, SZ0L=None, NM2x=None, jGRS=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w9G2(hKn5=None, aw3q=None, a4gM=None):\n pass", "def Yb3x(YKHO, NHNn=None):\n Aofo = YKHO.GetApi().instances().list(project=YKHO._project, zone=YKHO._zone, filter=NHNn).execute()\n return Aofo.get('items', [])", "def list(YKHO, qoqK=None, _5yy=None, bg1l=False, Lp5E=False):\n aeup = '/detail' i...
[ "0.7158665", "0.68044156", "0.65896565", "0.6500744", "0.64759254", "0.6416897", "0.6393563", "0.62063795", "0.61853707", "0.6149887", "0.6145252", "0.6102848", "0.6048503", "0.60281676", "0.59832835", "0.5949913", "0.59292763", "0.5928185", "0.59223866", "0.5921143", "0.5898...
0.8584584
0
Return center x position.
def epQT(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyw0(YKHO):\n return YKHO._center_x", "def epQT(YKHO):\n return YKHO._center.get_x()", "def epQT(YKHO):\n return YKHO._center.get_x()", "def KQji(YKHO):\n return int(YKHO.pos + len(YKHO) / 2)", "def JPqE(YKHO):\n return int(YKHO.left_edge + (YKHO.right_edge - YKHO.left_edge) / 2.0)", "...
[ "0.9077555", "0.9074364", "0.9074364", "0.89630616", "0.84276736", "0.83585095", "0.8245231", "0.80657053", "0.8049053", "0.79822254", "0.79052234", "0.7892775", "0.78837854", "0.7876543", "0.7849758", "0.7849758", "0.7816826", "0.7805598", "0.77336276", "0.77168036", "0.7712...
0.90350604
3
Return center x position.
def kHrI(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyw0(YKHO):\n return YKHO._center_x", "def epQT(YKHO):\n return YKHO._center.get_x()", "def epQT(YKHO):\n return YKHO._center.get_x()", "def epQT(YKHO):\n pass", "def KQji(YKHO):\n return int(YKHO.pos + len(YKHO) / 2)", "def JPqE(YKHO):\n return int(YKHO.left_edge + (YKHO.right_edge...
[ "0.9077555", "0.9074364", "0.9074364", "0.90350604", "0.89630616", "0.84276736", "0.83585095", "0.8245231", "0.80657053", "0.8049053", "0.79822254", "0.79052234", "0.7892775", "0.78837854", "0.7876543", "0.7849758", "0.7849758", "0.7816826", "0.7805598", "0.77336276", "0.7716...
0.0
-1
Return up vector x position.
def WcM3(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WcM3(YKHO):\n return YKHO._up.get_x()", "def WcM3(YKHO):\n return YKHO._up.get_x()", "def vP2v(YKHO) -> SoA4:\n return YKHO.orientation.up", "def cAfJ(kdsO, ODeQ):\n return -lwaz.down_movement_vector(kdsO, ODeQ)", "def cizC(YKHO):\n return YKHO._vpos[0]", "def WKvO(YKHO):\n return Y...
[ "0.82636076", "0.82636076", "0.7508905", "0.72301227", "0.7148001", "0.70770663", "0.7064516", "0.70157576", "0.7010156", "0.70042604", "0.69764763", "0.6967983", "0.69460714", "0.69137037", "0.6871136", "0.68435943", "0.6786264", "0.67624134", "0.6691645", "0.6685387", "0.66...
0.8022598
2
Moves camera to xposition.
def oHUr(YKHO, XSoh=nTNX): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oHUr(YKHO, XSoh=nTNX):\n YKHO._pos.set_x(YKHO._pos.get_x() + YKHO._cameraVel.get_x() * XSoh)", "def arjG(YKHO):\n Aofo = APXK.move_camera_calc(YKHO.graph_widget)\n if Aofo:\n CzZN, waVg = Aofo\n YKHO.graph_widget.setXRange(CzZN, waVg)\n if YKHO.auto_size.isChecked():\n ...
[ "0.7912006", "0.736018", "0.71827215", "0.6872673", "0.68605477", "0.683672", "0.6809348", "0.6809348", "0.6744171", "0.67390984", "0.6628348", "0.6507738", "0.6507738", "0.6503597", "0.65030885", "0.64949036", "0.6490721", "0.64865136", "0.647315", "0.6434008", "0.6427893", ...
0.7917249
0
Moves camera to yposition.
def _WN2(YKHO, XSoh=nTNX): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _WN2(YKHO, XSoh=nTNX):\n YKHO._pos.set_y(YKHO._pos.get_y() + YKHO._cameraVel.get_y() * XSoh)", "def LVAh(YKHO, LVAh):\n YKHO.__position.y = LVAh\n YKHO.position_geaendert()", "def LVAh(YKHO, BWXx):\n YKHO.position.y = BWXx", "def jBWn(YKHO, LVAh):\n YKHO.goto(YKHO.pos()[0], LVAh)", "def ...
[ "0.78569484", "0.7239895", "0.6888029", "0.6815493", "0.6810861", "0.67930347", "0.67518723", "0.67493016", "0.67493016", "0.67248976", "0.6655532", "0.6640126", "0.6640126", "0.66336274", "0.65642035", "0.6529961", "0.6499771", "0.6480654", "0.64589643", "0.6458427", "0.6445...
0.787374
0
Moves center x coordinate.
def lUQZ(YKHO, pImw): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lUQZ(YKHO, pImw):\n YKHO._center.set_x(YKHO._center.get_x() + pImw)", "def lUQZ(YKHO, pImw):\n YKHO._center.set_x(YKHO._center.get_x() + pImw)", "def oHUr(YKHO, XSoh=nTNX):\n pass", "def GRRj(YKHO, Qj8D):\n if Qj8D != YKHO._center_x:\n YKHO._center_x = Qj8D\n YKHO._point_list_ca...
[ "0.8228879", "0.8228879", "0.72999465", "0.7298041", "0.7189889", "0.7144991", "0.71076316", "0.7102312", "0.7096642", "0.70720464", "0.7021785", "0.70106757", "0.70041436", "0.69483805", "0.6943786", "0.69388163", "0.6831485", "0.6824517", "0.6824517", "0.6817498", "0.680733...
0.8454645
0
Return center x position.
def epQT(YKHO): return YKHO._center.get_x()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyw0(YKHO):\n return YKHO._center_x", "def epQT(YKHO):\n pass", "def KQji(YKHO):\n return int(YKHO.pos + len(YKHO) / 2)", "def JPqE(YKHO):\n return int(YKHO.left_edge + (YKHO.right_edge - YKHO.left_edge) / 2.0)", "def S3Cm(YKHO):\n return 0.0", "def ZSbs(YKHO):\n return YKHO.widthIn...
[ "0.90771836", "0.90351164", "0.8961452", "0.8426579", "0.8357328", "0.8244318", "0.80640435", "0.8049451", "0.7982882", "0.79044634", "0.7894365", "0.78825814", "0.78780067", "0.78504384", "0.78504384", "0.7816601", "0.7806395", "0.7732426", "0.7718648", "0.77121997", "0.7707...
0.9074956
2
Return center x position.
def kHrI(YKHO): return YKHO._center.get_z()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyw0(YKHO):\n return YKHO._center_x", "def epQT(YKHO):\n return YKHO._center.get_x()", "def epQT(YKHO):\n return YKHO._center.get_x()", "def epQT(YKHO):\n pass", "def KQji(YKHO):\n return int(YKHO.pos + len(YKHO) / 2)", "def JPqE(YKHO):\n return int(YKHO.left_edge + (YKHO.right_edge...
[ "0.9077555", "0.9074364", "0.9074364", "0.90350604", "0.89630616", "0.84276736", "0.83585095", "0.8245231", "0.80657053", "0.8049053", "0.79822254", "0.79052234", "0.7892775", "0.78837854", "0.7876543", "0.7849758", "0.7849758", "0.7816826", "0.7805598", "0.77336276", "0.7716...
0.0
-1
Return up vector x position.
def WcM3(YKHO): return YKHO._up.get_x()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WcM3(YKHO):\n pass", "def vP2v(YKHO) -> SoA4:\n return YKHO.orientation.up", "def cAfJ(kdsO, ODeQ):\n return -lwaz.down_movement_vector(kdsO, ODeQ)", "def cizC(YKHO):\n return YKHO._vpos[0]", "def WKvO(YKHO):\n return YKHO.position.x", "def WKvO(YKHO):\n return YKHO.position.x", "...
[ "0.8022598", "0.7508905", "0.72301227", "0.7148001", "0.70770663", "0.7064516", "0.70157576", "0.7010156", "0.70042604", "0.69764763", "0.6967983", "0.69460714", "0.69137037", "0.6871136", "0.68435943", "0.6786264", "0.67624134", "0.6691645", "0.6685387", "0.6626674", "0.6608...
0.82636076
1
Moves camera to xposition.
def oHUr(YKHO, XSoh=nTNX): YKHO._pos.set_x(YKHO._pos.get_x() + YKHO._cameraVel.get_x() * XSoh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oHUr(YKHO, XSoh=nTNX):\n pass", "def arjG(YKHO):\n Aofo = APXK.move_camera_calc(YKHO.graph_widget)\n if Aofo:\n CzZN, waVg = Aofo\n YKHO.graph_widget.setXRange(CzZN, waVg)\n if YKHO.auto_size.isChecked():\n YKHO.zoom_fit()", "def _lCG(hBdd: int, Ayfi: Union[float, i...
[ "0.7917249", "0.736018", "0.71827215", "0.6872673", "0.68605477", "0.683672", "0.6809348", "0.6809348", "0.6744171", "0.67390984", "0.6628348", "0.6507738", "0.6507738", "0.6503597", "0.65030885", "0.64949036", "0.6490721", "0.64865136", "0.647315", "0.6434008", "0.6427893", ...
0.7912006
1
Moves camera to yposition.
def _WN2(YKHO, XSoh=nTNX): YKHO._pos.set_y(YKHO._pos.get_y() + YKHO._cameraVel.get_y() * XSoh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _WN2(YKHO, XSoh=nTNX):\n pass", "def LVAh(YKHO, LVAh):\n YKHO.__position.y = LVAh\n YKHO.position_geaendert()", "def LVAh(YKHO, BWXx):\n YKHO.position.y = BWXx", "def jBWn(YKHO, LVAh):\n YKHO.goto(YKHO.pos()[0], LVAh)", "def GmZ0(YKHO, LVAh):\n YKHO._validate(LVAh, (int, float))\n ...
[ "0.787374", "0.7239895", "0.6888029", "0.6815493", "0.6810861", "0.67930347", "0.67518723", "0.67493016", "0.67493016", "0.67248976", "0.6655532", "0.6640126", "0.6640126", "0.66336274", "0.65642035", "0.6529961", "0.6499771", "0.6480654", "0.64589643", "0.6458427", "0.644567...
0.78569484
1
Moves center x coordinate.
def lUQZ(YKHO, pImw): YKHO._center.set_x(YKHO._center.get_x() + pImw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lUQZ(YKHO, pImw):\n pass", "def oHUr(YKHO, XSoh=nTNX):\n pass", "def GRRj(YKHO, Qj8D):\n if Qj8D != YKHO._center_x:\n YKHO._center_x = Qj8D\n YKHO._point_list_cache = None", "def DiaQ(YKHO):\n YKHO.x.move(0)\n YKHO.y.move(0)", "def jDQv(YKHO, tvqc):\n YKHO.x = (YKHO.x - ...
[ "0.8454645", "0.72999465", "0.7298041", "0.7189889", "0.7144991", "0.71076316", "0.7102312", "0.7096642", "0.70720464", "0.7021785", "0.70106757", "0.70041436", "0.69483805", "0.6943786", "0.69388163", "0.6831485", "0.6824517", "0.6824517", "0.6817498", "0.68073314", "0.67923...
0.8228879
1
Return center x position.
def epQT(YKHO): return YKHO._center.get_x()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyw0(YKHO):\n return YKHO._center_x", "def epQT(YKHO):\n pass", "def KQji(YKHO):\n return int(YKHO.pos + len(YKHO) / 2)", "def JPqE(YKHO):\n return int(YKHO.left_edge + (YKHO.right_edge - YKHO.left_edge) / 2.0)", "def S3Cm(YKHO):\n return 0.0", "def ZSbs(YKHO):\n return YKHO.widthIn...
[ "0.9077555", "0.90350604", "0.89630616", "0.84276736", "0.83585095", "0.8245231", "0.80657053", "0.8049053", "0.79822254", "0.79052234", "0.7892775", "0.78837854", "0.7876543", "0.7849758", "0.7849758", "0.7816826", "0.7805598", "0.77336276", "0.77168036", "0.7712934", "0.770...
0.9074364
1
Return center x position.
def kHrI(YKHO): return YKHO._center.get_z()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyw0(YKHO):\n return YKHO._center_x", "def epQT(YKHO):\n return YKHO._center.get_x()", "def epQT(YKHO):\n return YKHO._center.get_x()", "def epQT(YKHO):\n pass", "def KQji(YKHO):\n return int(YKHO.pos + len(YKHO) / 2)", "def JPqE(YKHO):\n return int(YKHO.left_edge + (YKHO.right_edge...
[ "0.9077555", "0.9074364", "0.9074364", "0.90350604", "0.89630616", "0.84276736", "0.83585095", "0.8245231", "0.80657053", "0.8049053", "0.79822254", "0.79052234", "0.7892775", "0.78837854", "0.7876543", "0.7849758", "0.7849758", "0.7816826", "0.7805598", "0.77336276", "0.7716...
0.0
-1
Return up vector x position.
def WcM3(YKHO): return YKHO._up.get_x()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WcM3(YKHO):\n pass", "def vP2v(YKHO) -> SoA4:\n return YKHO.orientation.up", "def cAfJ(kdsO, ODeQ):\n return -lwaz.down_movement_vector(kdsO, ODeQ)", "def cizC(YKHO):\n return YKHO._vpos[0]", "def WKvO(YKHO):\n return YKHO.position.x", "def WKvO(YKHO):\n return YKHO.position.x", "...
[ "0.8022598", "0.7508905", "0.72301227", "0.7148001", "0.70770663", "0.7064516", "0.70157576", "0.7010156", "0.70042604", "0.69764763", "0.6967983", "0.69460714", "0.69137037", "0.6871136", "0.68435943", "0.6786264", "0.67624134", "0.6691645", "0.6685387", "0.6626674", "0.6608...
0.82636076
0
Moves center x coordinate.
def lUQZ(YKHO, pImw): YKHO._center.set_x(YKHO._center.get_x() + pImw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lUQZ(YKHO, pImw):\n pass", "def oHUr(YKHO, XSoh=nTNX):\n pass", "def GRRj(YKHO, Qj8D):\n if Qj8D != YKHO._center_x:\n YKHO._center_x = Qj8D\n YKHO._point_list_cache = None", "def DiaQ(YKHO):\n YKHO.x.move(0)\n YKHO.y.move(0)", "def jDQv(YKHO, tvqc):\n YKHO.x = (YKHO.x - ...
[ "0.8454645", "0.72999465", "0.7298041", "0.7189889", "0.7144991", "0.71076316", "0.7102312", "0.7096642", "0.70720464", "0.7021785", "0.70106757", "0.70041436", "0.69483805", "0.6943786", "0.69388163", "0.6831485", "0.6824517", "0.6824517", "0.6817498", "0.68073314", "0.67923...
0.8228879
2
Get camera phi angle.
def jbwj(YKHO): return YKHO._phi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVnq(YKHO):\n return epAf.atan2(YKHO.y(), YKHO.x())", "def rVnq(YKHO) -> CEWs:\n return YKHO._phi", "def jbwj(YKHO):\n return YKHO.get_position(2) / 8 * 0.015", "def jbwj(YKHO):\n return YKHO.diffractometer_phi(YKHO.phi_hardware_motor.value)", "def rVnq(YKHO):\n if not YKHO._fitted:\n ...
[ "0.7906645", "0.78416175", "0.72352606", "0.7205555", "0.7064606", "0.70296264", "0.70255053", "0.69806284", "0.6930525", "0.67823356", "0.6774687", "0.6773686", "0.6760836", "0.67147475", "0.6694215", "0.6671769", "0.66563123", "0.6622995", "0.66011655", "0.64685625", "0.646...
0.72226864
3
Push element x to the back of queue.
def _jXH(YKHO, WKvO): YKHO.s1.append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()", "def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)...
[ "0.8627964", "0.847768", "0.8414127", "0.827978", "0.8259876", "0.82024014", "0.81944746", "0.81445456", "0.81445456", "0.81041193", "0.81004506", "0.80947775", "0.805236", "0.805236", "0.8037114", "0.8033887", "0.79936236", "0.79584146", "0.7948628", "0.7944436", "0.7899758"...
0.7049299
76
Removes the element from in front of queue and returns that element.
def BEuN(YKHO): if len(YKHO.s1) == 0: return None while len(YKHO.s1) != 1: ycBG = YKHO.s1[-1] YKHO.s2.append(ycBG) YKHO.s1 = YKHO.s1[:-1] BEuN = YKHO.s1[0] YKHO.s1 = [] while len(YKHO.s2) != 0: ycBG = YKHO.s2[-1] YKHO.s1.append(ycBG) YKHO.s2 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()", "def BEuN(YKHO):\n if len(...
[ "0.8556419", "0.83313495", "0.8143468", "0.8037879", "0.79150516", "0.78858083", "0.78835356", "0.78049", "0.7798332", "0.7748062", "0.7717648", "0.77155405", "0.7694504", "0.7671712", "0.7666517", "0.7664397", "0.7644941", "0.7641279", "0.7640347", "0.7637911", "0.76223004",...
0.0
-1
Get the front element.
def T7C_(YKHO): if len(YKHO.s1) == 0: return None else: return YKHO.s1[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.frontelem.elem", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]", "def TA6u(YKHO):\n return YKHO.storage[0]", "def VnzS(YKHO):\n return YKHO.head", "def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]", "def qnv...
[ "0.87835056", "0.83788836", "0.82574433", "0.80897844", "0.8012526", "0.7981897", "0.786668", "0.783555", "0.7815892", "0.77942365", "0.7735508", "0.769147", "0.76801795", "0.76465446", "0.7630563", "0.75877416", "0.7572392", "0.75053453", "0.74844474", "0.74813557", "0.74660...
0.0
-1
returns bot driver for given name, or None if no bot is found.
def aDzh(YKHO, mWFP): JyK9 = YKHO._bots.get(mWFP) if JyK9 is not None: return JyK9['ctrl']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nGIo(YKHO, mWFP):\n for JyK9 in YKHO.bots:\n if JyK9.state.name == mWFP:\n return JyK9\n return None", "def OMWp(Emd4, mWFP):\n return aDzh(mWFP)", "def aDzh(mWFP: str=None) -> ImMB:\n ...", "def OMWp(mWFP, Fv2L):\n Csk6 = E_qD.DriverManager('gnocchi.storage', mWFP).drive...
[ "0.77985734", "0.71358204", "0.6949768", "0.6543002", "0.6300396", "0.6261663", "0.622984", "0.5983408", "0.5959945", "0.59560287", "0.5931785", "0.59240884", "0.59238446", "0.59067106", "0.5788838", "0.57824576", "0.5749625", "0.5745026", "0.57436913", "0.56922257", "0.56852...
0.74642754
1
Returns the whole string of a buffer. Alias for ``coorded_substr(view)``.
def gFHi(tTee): return wTGj(tTee)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gFHi(tTee):\n return wTGj(tTee)", "def wTGj(tTee, e05s=None, HZXD=None):\n return tTee.substr(JilM(tTee, e05s, HZXD))", "def wTGj(tTee, e05s=None, HZXD=None, wvau=None):\n return tTee.substr(JilM(tTee, e05s, HZXD))", "def xHN0(NRcB):\n X7zS = NRcB.get_selection_bounds()\n if len(X7zS) == 0...
[ "0.705361", "0.68382436", "0.67579204", "0.629549", "0.6029725", "0.59605426", "0.59165287", "0.5741955", "0.56181663", "0.55895245", "0.55036193", "0.5500403", "0.54538816", "0.5451989", "0.5430317", "0.5384405", "0.5364115", "0.53477526", "0.52997327", "0.5270536", "0.52159...
0.69211555
1
Read image from image_path
def cMYb(QMAG, Tuqy='RGB'): LNo8 = hnIv.open(QMAG) return oyIN.array(LNo8.convert(Tuqy))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q5aE(YKHO, pmON):\n YKHO.img = XC5k.imread(pmON)", "def otnQ(YKHO, pmON: str) -> hnIv.Image:\n LNo8 = hnIv.open(pmON)\n if LNo8.mode != 'RGB':\n LNo8 = LNo8.convert('RGB')\n return LNo8", "def DZ0a(pmON):\n d6hw = hiw8.imread(pmON)\n return d6hw", "def q5aE(QMAG, *qIxc, **B2fa):\...
[ "0.81724054", "0.7863647", "0.7849334", "0.7846455", "0.7793013", "0.77672315", "0.7757855", "0.7742343", "0.77241915", "0.77142125", "0.77050877", "0.7679826", "0.76647645", "0.76637655", "0.76539177", "0.76519114", "0.76300734", "0.7607905", "0.7607905", "0.75968766", "0.75...
0.0
-1
Rescale a one dimensional vector from (oldmin, oldmax) > (newmin, nawmax) Function opetares modyfing the original vector
def MHcj(nPrm: np.ndarray, Jq4w: float, zBsq: float, G8J6: float, sIcj: float) -> oyIN.ndarray: nPrm -= Jq4w if abs(zBsq - Jq4w) > vLde: nPrm /= zBsq - Jq4w nPrm *= sIcj - G8J6 nPrm += G8J6 return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hUUv(BWXx, Jq4w, zBsq, G8J6, sIcj):\n return (sIcj - G8J6) / (zBsq - Jq4w) * (BWXx - Jq4w) + G8J6", "def Lwtl(qw7D, G8J6=0, sIcj=1):\n Jq4w, zBsq = (oyIN.min(qw7D), oyIN.max(qw7D))\n qw7D = (qw7D - Jq4w) / (zBsq - Jq4w)\n return qw7D * (sIcj - G8J6) + G8J6", "def mx_s(WKvO, l2lq, LWLc):\n hg...
[ "0.8056399", "0.78966904", "0.7464374", "0.7336449", "0.72853893", "0.7268858", "0.7255617", "0.7213804", "0.71661127", "0.7161758", "0.7131379", "0.7112931", "0.7110104", "0.70946956", "0.7093591", "0.70867735", "0.70664614", "0.70622444", "0.7010539", "0.69321585", "0.69057...
0.82898253
0
returns the pretrained resnet152 network
def XHTY(): return hVyu(pretrained=True).eval().cuda()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVyu(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3])\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n return C3ST", "def hVyu(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3])\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n return C3ST"...
[ "0.82408845", "0.8220087", "0.8220087", "0.8041165", "0.78813773", "0.78775805", "0.78775805", "0.78775805", "0.78775805", "0.78775805", "0.78775805", "0.78775805", "0.78775805", "0.78775805", "0.78775805", "0.78749734", "0.78667426", "0.7862731", "0.78590125", "0.781665", "0...
0.82111025
3
Discover the board main at first time and storage data on a file Raise an exception if can not save the json
def uvt1(YKHO): YfpN = YKHO.get_devices() if len(YfpN) > 1: raise s0e0() elif len(YfpN) == 0: raise bqwG() elif len(YfpN) == 1: YKHO.save_board(YfpN[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p8RE():\n global current_path_save\n P1dF = False\n wM3v = iKuX()\n input(\"\\nChoisissez le nom et l'emplacement de la sauvegarde. ENTER pour ouvrir l'interface de choix.\")\n try:\n g4Cm = XqpT.asksaveasfilename(defaultextension='.json', filetypes=[('json files', '*.json')], title='Choi...
[ "0.6252857", "0.6103086", "0.6066792", "0.6040233", "0.5990448", "0.59899414", "0.59722763", "0.59399456", "0.59370565", "0.591722", "0.5906437", "0.58975893", "0.5891193", "0.5874616", "0.5872181", "0.5855258", "0.585367", "0.58519363", "0.58448464", "0.5844495", "0.5831826"...
0.0
-1
Create a transformation that operates on a list of tensors.
def FIMM(YKHO, m2Zb=nYIM.do_nothing, qIxc=None, B2fa=None): YKHO.name = m2Zb.__name__ YKHO.function = m2Zb YKHO.args = qIxc if qIxc is not None else [] YKHO.kwargs = B2fa if B2fa is not None else {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LzJg(hSHI):\n mG1A = []\n for uPnQ in hSHI:\n (V20n, GVIr), = uPnQ.items()\n mG1A.append(CGsi(V20n, GVIr))\n mG1A.append(_J6p())\n return aLRo.Compose(mG1A)", "def mAsD(kdmR):\n return ht2j.cat([a1PO.view(-1).detach() for a1PO in kdmR])", "def Ijel(Yw_3: List[Any]) -> llWB:\n ...
[ "0.72435796", "0.6846354", "0.6698415", "0.65938646", "0.65833455", "0.65707046", "0.6562728", "0.6520396", "0.651614", "0.6435192", "0.6305771", "0.6297099", "0.6202136", "0.6202136", "0.6187797", "0.6182987", "0.6147239", "0.61370754", "0.613043", "0.612144", "0.61158085", ...
0.0
-1
Returns B_field at location R as described by Reiner Gamma field data.
def Wtrz(A3Vt, SRYB): """ r_SW = R - var['SW_r'] r_SW_norm = np.linalg.norm(r_SW) B_SW_1 = (3*np.dot(var['SW_mag'],r_SW)*r_SW)/(r_SW_norm**5) B_SW_2 = var['SW_mag']/(r_SW_norm**3) B_SW = np.subtract(B_SW_1, B_SW_2)*10**-7 r_NE = R - var['NE_r'] r_NE_norm = np.linalg.norm(r_NE) B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e8BP(YKHO, oeNL):\n if (oeNL[2] > YKHO.POS_MAGNET_Z - YKHO.DIM_MAGNET_Z / 4.0 and oeNL[2] < YKHO.POS_MAGNET_Z + YKHO.DIM_MAGNET_Z / 4.0) and (oeNL[1] > YKHO.POS_MAGNET_Y - YKHO.DIM_MAGNET_Y / 2 and oeNL[1] < YKHO.POS_MAGNET_Y + YKHO.DIM_MAGNET_Y / 2) and (oeNL[0] > YKHO.POS_MAGNET_X - YKHO.DIM_MAGNET_X / 2 ...
[ "0.6591491", "0.62653774", "0.6070535", "0.59552115", "0.5928307", "0.5867256", "0.58562034", "0.5811688", "0.58089066", "0.5804012", "0.57748663", "0.57748663", "0.5726269", "0.5711394", "0.5709818", "0.5709818", "0.56322527", "0.56230634", "0.5604959", "0.5592906", "0.55083...
0.64925385
1
Get the target of the edge with this name. See get_edge() for more details.
def IyQV(YKHO, mWFP) -> i8DB: return YKHO.get_edge(mWFP).target
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BK83(YKHO, mWFP):\n return YKHO._targets[mWFP]", "def BK83(YKHO, mWFP):\n VTSS = YKHO.navigation[mWFP]\n return VTSS.otherEnd.entity_set", "def zldD(YKHO):\n return YKHO.target", "def zldD(YKHO):\n return YKHO.target", "def BK83(YKHO):\n return YKHO.target", "def pan_(YKHO):\n re...
[ "0.7653563", "0.7565688", "0.7295399", "0.7264219", "0.7257454", "0.72169274", "0.7212598", "0.7180887", "0.71673745", "0.7044841", "0.6995326", "0.699354", "0.69884086", "0.6978714", "0.6978714", "0.6978714", "0.6978714", "0.6978714", "0.6928109", "0.6926054", "0.68828505", ...
0.7602417
1
Get the Edge with the given name. Gives an exception if an Edge with that name does not exist. Name of edges may have trailing as names must be unique. If there is only one Edge of that name but with trailing that edge will be returned. If there are more than one Edge with that name and different numbers of the exact n...
def RQFX(YKHO, mWFP) -> ndC_: if mWFP in YKHO.edges.keys(): return YKHO.edges[mWFP] kbGe = [] for G1Hx in YKHO.edges.keys(): if YKHO.edges[G1Hx].name_equal(mWFP): kbGe.append(G1Hx) if len(kbGe) == 0: raise else: return YKHO.edges[kbGe[0]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A3vT(Q6kx: nd.Node, QTBn: SDFGState, mWFP: str) -> sWg7:\n n5J2 = list(QTBn.out_edges_by_connector(Q6kx, mWFP))\n if len(n5J2) != 1:\n raise ValueError(\"Expected to find exactly one edge with name '{}', found {}\".format(mWFP, len(n5J2)))\n return n5J2[0]", "def t0If(Q6kx: nd.Node, QTBn: SDF...
[ "0.67620957", "0.6709022", "0.6273079", "0.61287165", "0.6062834", "0.60535264", "0.59931445", "0.59671956", "0.5964707", "0.595875", "0.58576214", "0.5802747", "0.57823545", "0.5724476", "0.5618518", "0.5608817", "0.5586482", "0.5557832", "0.55481076", "0.5538834", "0.550153...
0.8484838
0
Check if the node has an Edge of given name.
def IWu0(YKHO, mWFP): if mWFP in YKHO.edges.keys(): return True kbGe = [] for G1Hx in YKHO.edges.keys(): if YKHO.edges[G1Hx].name_equal(mWFP): kbGe.append(G1Hx) if len(kbGe) != 1: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IWu0(YKHO, XEGX: str, w5L3: str, qfLK: Optional[str]=None) -> bool:\n pass", "def nW4J(YKHO, *qIxc):\n return PZpo.TUndirNet_IsEdge(YKHO, *qIxc)", "def oxL1(YKHO, i4Va, rUTj):\n assert i4Va in YKHO.name_node, 'Node does not exist: ' + i4Va\n assert rUTj in YKHO.name_node, 'Node does not exist: ...
[ "0.7168629", "0.7009308", "0.6975948", "0.69705015", "0.6963705", "0.6959237", "0.6956669", "0.6955024", "0.69529605", "0.6930478", "0.689768", "0.68955123", "0.68906415", "0.6888883", "0.68755734", "0.68646055", "0.68548906", "0.6824498", "0.68168765", "0.6809341", "0.680298...
0.8236265
0
Adds an Edge to this node.
def rz7z(YKHO, mWFP, pan_: TreeNode, dXYa='forward', GOZd=None, qx_G=False) -> ndC_: if YKHO.edges.get(mWFP) is not None: if not qx_G: return YKHO.add_edge(mWFP + '*', pan_, dXYa, GOZd) else: YKHO.edges.get(mWFP).inverse.remove() D70y = ndC_(mWFP, pan_, YKHO, dXYa, GOZd) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A609(YKHO, *qIxc):\n return PZpo.PNGraph_AddEdge(YKHO, *qIxc)", "def A609(YKHO, *qIxc):\n return PZpo.TNGraph_AddEdge(YKHO, *qIxc)", "def A609(YKHO, *qIxc):\n return ZYgz.PDirNet_AddEdge(YKHO, *qIxc)", "def A609(YKHO, *qIxc):\n return PZpo.TBPGraph_AddEdge(YKHO, *qIxc)", "def A609(YKHO, *qI...
[ "0.82956403", "0.8294928", "0.8270965", "0.82570755", "0.8256547", "0.82250917", "0.8223138", "0.820978", "0.82043767", "0.8185047", "0.8170546", "0.8164161", "0.8148346", "0.81313944", "0.813133", "0.8121434", "0.8118463", "0.8106714", "0.8096182", "0.8069742", "0.8068562", ...
0.0
-1
Get the target of the Edge with given name. Does not check if this Edge exists, if not it crashes.
def zAcD(YKHO, mWFP): return YKHO.edges[mWFP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BK83(YKHO, mWFP):\n return YKHO._targets[mWFP]", "def IyQV(YKHO, mWFP) -> i8DB:\n return YKHO.get_edge(mWFP).target", "def BK83(YKHO, mWFP):\n VTSS = YKHO.navigation[mWFP]\n return VTSS.otherEnd.entity_set", "def RQFX(YKHO, mWFP) -> ndC_:\n if mWFP in YKHO.edges.keys():\n return YKH...
[ "0.7502657", "0.73716575", "0.70888144", "0.6933873", "0.6727852", "0.6700377", "0.65326893", "0.65259707", "0.6497727", "0.6348415", "0.6337977", "0.62229735", "0.6154943", "0.61370134", "0.61370134", "0.6128542", "0.6072968", "0.6039948", "0.6009418", "0.59792787", "0.59378...
0.6111951
16
Remove all Edges pointing to this node.
def _qDf(YKHO): for tTpl in YKHO.inverse_edges(): tTpl.remove()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSdD(YKHO):\n YKHO.remove_in_edges()\n YKHO.remove_out_edges()", "def fp90(YKHO):\n for D70y in list(YKHO.getEdges().values()):\n YKHO.removeEdge(D70y)", "def Y7Bk(YKHO):\n YKHO.remove_edges_from(YKHO.edges())", "def K8IL(YKHO):\n raise NotImplementedError", "def K8IL(YKHO):\n ...
[ "0.7683615", "0.7552003", "0.74854296", "0.7461184", "0.73377967", "0.7239326", "0.71772987", "0.7155607", "0.6957843", "0.69523", "0.6934722", "0.69331384", "0.6831804", "0.68003184", "0.67827743", "0.6753791", "0.6752738", "0.67029274", "0.67018765", "0.67018765", "0.668060...
0.6600165
22