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
Sets the road of this AddressSchema.
def O8Y4(YKHO, O8Y4): YKHO._road = O8Y4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uqHw(YKHO, O8Y4):\n YKHO.front_road = O8Y4\n O8Y4.back_road = YKHO", "def dZsp(YKHO, wEf2):\n YKHO.street = wEf2", "def Ce3W(YKHO):\n if YKHO.has_non_empty_attribute('address'):\n UTX6 = BfDw.remove_markup(YKHO.address)\n if BfDw.contains_digit(UTX6):\n zKV6 = BfDw.remo...
[ "0.6644327", "0.6121186", "0.5964194", "0.5781232", "0.57337993", "0.5724242", "0.567835", "0.5676376", "0.5660921", "0.55661756", "0.55661756", "0.55661756", "0.5565815", "0.554509", "0.551244", "0.551244", "0.551244", "0.54592997", "0.54592997", "0.54592997", "0.54555136", ...
0.7811139
0
Sets the suburb of this AddressSchema.
def d3go(YKHO, d3go): YKHO._suburb = d3go
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kscA(YKHO, kscA):\n YKHO._subregion = kscA", "def ZhiF(YKHO, ZhiF):\n YKHO._area_urban = ZhiF", "def N133(YKHO, N133):\n YKHO._population_urban = N133", "def UhTt(YKHO, UhTt):\n YKHO._subdomain = UhTt", "def b6xQ(YKHO, b6xQ):\n YKHO._country_sub_division = b6xQ", "def rhep(YKHO, rhep):...
[ "0.5766363", "0.56821316", "0.56437063", "0.5429123", "0.52901846", "0.51331335", "0.509152", "0.5091484", "0.49801677", "0.49474224", "0.49315497", "0.48977277", "0.4895092", "0.4895092", "0.4895092", "0.48891827", "0.48815483", "0.48815483", "0.48297244", "0.4792931", "0.47...
0.8050645
0
Sets the city of this AddressSchema.
def j5sA(YKHO, j5sA): YKHO._city = j5sA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MFwm(YKHO, j5sA: str):\n YKHO.__city = j5sA\n return YKHO", "def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA", "def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA", "def j5sA(YKHO, j5sA):\n if j5sA is None:\n raise ValueError('Invalid value for `city`, must not be `None`')\n YKHO._cit...
[ "0.8046252", "0.7919448", "0.7919448", "0.7690241", "0.76815206", "0.75256294", "0.7283182", "0.7117798", "0.70927453", "0.6982079", "0.69737494", "0.68047315", "0.6565526", "0.65084463", "0.647535", "0.6345132", "0.63380986", "0.6313773", "0.603145", "0.5963781", "0.5963781"...
0.7860891
3
Sets the postal_code of this AddressSchema.
def kAHQ(YKHO, kAHQ): YKHO._postal_code = kAHQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F070(YKHO, nPrm):\n YKHO.postal = nPrm", "def xb2b(YKHO, xb2b):\n YKHO._postal_address = xb2b", "def yvWY(YKHO, yvWY):\n YKHO._billing_postal_code = yvWY", "def yvWY(YKHO, yvWY):\n YKHO._billing_postal_code = yvWY", "def kAHQ(YKHO, kAHQ):\n if kAHQ is None:\n raise ValueError('Inv...
[ "0.7489056", "0.7365063", "0.7250433", "0.7250433", "0.72018695", "0.7059413", "0.66995144", "0.6574306", "0.6253563", "0.6253563", "0.6253563", "0.6253563", "0.62203276", "0.6104078", "0.6022707", "0.6022707", "0.6022707", "0.6022707", "0.6022665", "0.6022665", "0.6013955", ...
0.8171199
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): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Given a list of batches, each consisting of a Tlen list of np.ndarrays, stack along the first (batch) axis, returning a Tlen list of np.ndarrays.
def zIDO(EcVT): return [VAZI._stack_batches(d9C6) for d9C6 in zip(*EcVT)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H8BV(YKHO, Wc9F: List[Tuple[np.ndarray]]) -> AzJI[oyIN.ndarray]:\n IqQl, kjNI = zip(*Wc9F)\n input = oyIN.vstack(IqQl)\n hlel = oyIN.vstack(kjNI)\n return (input, hlel)", "def A2I2(list, tpio=0):\n return [ht2j.stack(KCHu, tpio) for KCHu in list]", "def inEx(Ep8u, *UHhk):\n return zip(*(E...
[ "0.7145254", "0.699923", "0.6820292", "0.68192965", "0.67766476", "0.6689163", "0.6531425", "0.64870626", "0.64426625", "0.6395664", "0.6385484", "0.6363561", "0.63624674", "0.6361599", "0.6330786", "0.63096905", "0.6303135", "0.6303135", "0.62926745", "0.6269012", "0.6265643...
0.7230714
0
Normalize dynamic range to [0, 255] and cast type to np.uint8
def qJ2e(VXjJ): VXjJ = oyIN.array(VXjJ, dtype=oyIN.float32) VXjJ -= VXjJ.min() VXjJ = VXjJ * 255.0 / VXjJ.max() VXjJ = VXjJ.astype(oyIN.uint8) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TvmN(YKHO, qw7D):\n qw7D = (qw7D - qw7D.min()) / (qw7D.max() - qw7D.min())\n qw7D = (qw7D * 255).astype(oyIN.uint8)\n return qw7D", "def giQF(VXjJ: np.ndarray):\n jvuA, xYNz = (oyIN.max(VXjJ), oyIN.min(VXjJ))\n jzdc = 255 / (jvuA - xYNz)\n Fg_i = 255 - jzdc * jvuA\n xiPz = jzdc * VXjJ + ...
[ "0.8157655", "0.8077052", "0.7663225", "0.74867254", "0.7442456", "0.74182296", "0.7415", "0.73678493", "0.72542894", "0.72002375", "0.71750563", "0.71664727", "0.7153475", "0.71150863", "0.70974725", "0.7015569", "0.699802", "0.69906545", "0.6969002", "0.6899512", "0.6897457...
0.80718195
2
Return the number of vertices n, the threshold K and the adkacency matrix of the directed graph M.
def WNLV(pmON): nUeQ = open(pmON, 'r') Nqlg = nUeQ.readlines() exwG = int(float(Nqlg[0].strip())) nMvt = float(Nqlg[1].strip()) E3D9 = [] for YRbF in range(exwG): E3D9.append([]) E3D9[YRbF] = list(map(int, map(float, Nqlg[YRbF + 2].strip().split(' ')))) return (exwG, nMvt, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zVjE(RqSd, G1Hx):\n return oyIN.sum(BkjL(RqSd, G1Hx), axis=0)", "def fOCg(YKHO):\n return sum([YKHO.degree(WKvO) for WKvO in YKHO.nodes()])", "def qxyC(YKHO, G1Hx, r5hI=False):\n if r5hI:\n E3D9 = YKHO.add_noise()\n else:\n E3D9 = YKHO.matrix\n ROpF = E3D9.shape\n IACX = oyI...
[ "0.6512994", "0.6189129", "0.6134214", "0.60575646", "0.59568304", "0.59422", "0.5913095", "0.5879522", "0.5873768", "0.5863659", "0.5854815", "0.58265805", "0.58259946", "0.579862", "0.5787885", "0.57860637", "0.57821745", "0.57277375", "0.5692885", "0.5675333", "0.565346", ...
0.0
-1
Set up a Requests session with the appropriate licence key.
def FIMM(YKHO, T7cy: int): YKHO.api = G4JS.Session() YKHO.api.headers.update({'accept': 'application/json'}) if not T7cy: raise ValueError('Invalid licence key!') YKHO.api.params.update({'licenceKey': T7cy})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I0pn():\n x0hE = G4JS.session()\n return x0hE", "def P7xb(Emd4):\n Jxvb = G4JS.Session()\n Jxvb.headers = {'Content-Type': 'application/json', 'Authorization': 'Bearer ' + Emd4.cc_token}\n Emd4.request_session = Jxvb", "def P7xb(YKHO) -> None:\n YKHO.session = G4JS.Session()\n YKHO.ses...
[ "0.69212484", "0.6681952", "0.6666964", "0.6574326", "0.6458751", "0.6442158", "0.64064354", "0.6395298", "0.6311611", "0.62357086", "0.62303853", "0.6224786", "0.6213434", "0.61919576", "0.60515994", "0.6008603", "0.6003073", "0.59611917", "0.59513324", "0.5935719", "0.59049...
0.6955007
0
Return the rating for the image without handlabeling
def i6lg(YKHO, qMDl): juYm = YKHO.photoUrl + qMDl kGys = YKHO.render_page(juYm) Z9JV = rKuS(kGys, 'html.parser') mwlV = ['1', '2', '3', '4', '5'] for Mkmy in mwlV: RrWF = 'ui_bubble_rating member bubble_' + Mkmy if Z9JV.find('div', class_=RrWF): return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f_9B(YKHO, Yw_3):\n return len([YRbF for YRbF in Yw_3 if 'rate_star_1' in YRbF['src']])", "def RrWF(YKHO):\n for BDwY in YKHO.soup.find_all('li', class_='rating'):\n vIwR = BDwY.stripped_strings.next().lower()\n if 'overall:' not in vIwR:\n continue\n VXjJ = BDwY.find('i...
[ "0.728171", "0.6957703", "0.68583363", "0.6855516", "0.6809957", "0.67014426", "0.65407914", "0.6533638", "0.6520326", "0.642785", "0.6415279", "0.6404085", "0.6392787", "0.63902944", "0.6328866", "0.626456", "0.625958", "0.62554336", "0.62425244", "0.6206705", "0.6191361", ...
0.6781703
5
Get a path to jakproject/
def Xy37(): return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.realpath(xAKo)), '..', '..')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EL0N():\n return Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)))", "def EL0N() -> str:\n return str(GkAb(xAKo).parent.parent)", "def EL0N(YKHO):\n try:\n O0al = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..'))\n return O0al\n except Exception:\n ...
[ "0.7414462", "0.71615785", "0.70899993", "0.705575", "0.7015756", "0.6992789", "0.69792783", "0.69751614", "0.6961543", "0.69019645", "0.68508446", "0.680413", "0.6803043", "0.6803043", "0.6799541", "0.67958176", "0.67958176", "0.67853445", "0.67853445", "0.67853445", "0.6785...
0.7536114
0
Return the unbinned negative log likelihood for a PDF.
def RVTo(C3ST: ztyping.PDFInputType, nPrm: ztyping.DataInputType, M0R_: ZfitSpace, xs5H=None): if m32S(C3ST): ZDqE = [RVTo(model=XP5J, data=Csk6, fit_range=Mkmy, log_offset=xs5H) for XP5J, Csk6, Mkmy in zip(C3ST, nPrm, M0R_)] Rvna = efDA.sum(ZDqE, axis=0) RGnL = Rvna else: if M0R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ej81(LVAh, JBMS, NXpY, ROpF, kbKl):\n return -oyIN.sum(KG9w.cauchy.logpdf(LVAh, loc=JBMS, scale=NXpY))", "def QBZZ(wznF, flDm):\n uevV = 0\n for exwG, mvm2 in enumerate(wznF):\n Vjik = 0\n for G1Hx, qC6E in enumerate(mvm2):\n Vjik += flDm[G1Hx] + wznF[exwG][G1Hx]\n ue...
[ "0.7425207", "0.7400239", "0.7162421", "0.7161909", "0.70983547", "0.70968693", "0.707685", "0.6996834", "0.6982541", "0.69820833", "0.69536006", "0.6934358", "0.69280857", "0.69066685", "0.6877259", "0.6867204", "0.6832579", "0.67804587", "0.6775009", "0.67744094", "0.676529...
0.0
-1
Returns the file path for checkpoint.
def twhy(YKHO, qtWj, nfqd): try: qaEx = YKHO.filepath.format(epoch=qtWj + 1, **nfqd) except KeyError as e: raise KeyError('Failed to format this callback filepath: "{}". Reason: {}'.format(YKHO.filepath, tTpl)) YKHO._write_filepath = fMVW.write_filepath(qaEx, YKHO.model.distribute_strategy) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z3cv(YKHO) -> str:\n return YKHO._checkpoint_path", "def np8S(YKHO, rdtc, WMPk):\n return rdtc + '/checkpoints/' + WMPk", "def MymS(YKHO) -> str:\n return Hy7s.path.join(YKHO._checkpoin_dir, YKHO._checkpoints[-1].name)", "def OZtV(YKHO) -> GkAb:\n from InnerEye.ML.utils.checkpoint_handling im...
[ "0.8801277", "0.8254887", "0.82128954", "0.8036113", "0.787616", "0.7663794", "0.75746036", "0.7502492", "0.74768406", "0.7457692", "0.7440118", "0.7432947", "0.7428155", "0.7336401", "0.7298965", "0.7264651", "0.72441", "0.72162735", "0.7169544", "0.7000818", "0.69952285", ...
0.6464718
67
Returns whether the checkpoint `filepath` refers to exists.
def dMHx(YKHO, VqRE): if VqRE.endswith('.h5'): return axZ9.file_exists_v2(VqRE) URfN = axZ9.file_exists_v2(VqRE) sul2 = axZ9.file_exists_v2(VqRE + '.index') return URfN or sul2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vtfo(VqRE):\n return oAb3.Path(VqRE).exists()", "def vtfo(YKHO, VqRE):\n ytgA = GkAb(YKHO.prefix + YKHO.separator + VqRE.lstrip('/'))\n return ytgA.exists()", "def CNBL(VqRE):\n if not Hy7s.path.isfile(VqRE):\n return False\n return True", "def poxP(VqRE: str) -> bool:\n if GkAb(...
[ "0.79004216", "0.77858996", "0.76550776", "0.7622768", "0.75971985", "0.7506233", "0.73791534", "0.73418665", "0.7329975", "0.72906506", "0.7255432", "0.7248412", "0.72381306", "0.7223288", "0.7180025", "0.71587", "0.71344703", "0.7125596", "0.7125286", "0.7101504", "0.708376...
0.83783287
0
Replace the original_lazy_out with the obj and replace self with final_value.
def RJIb(YKHO, YEnM: HlsNetNodeOut): assert YKHO.replaced_by is None, (YKHO, YKHO.replaced_by) YKHO.original_lazy_out.replace_driver(YEnM) for G1Hx in YKHO.keys_of_self_in_cache: YKHO.op_cache._to_hls_cache[G1Hx] = YKHO.final_value for Z9rn in YKHO.dependent_inputs: Z9rn.replace_driver(Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jt67(b6ry):\n return b6ry", "def nrOS(YKHO, BWXx):\n Aofo = i3ak(BWXx)\n for FYKK in reversed(YKHO.__chain):\n Aofo = FYKK(Aofo)\n Aofo['__raw'] = PjZe(BWXx)\n return Aofo", "def nrOS(YKHO, YEnM: T, LpaZ: bool=False) -> Kt_s:\n YEnM = YEnM if LpaZ else jth9.deepcopy(YEnM)\n xZZ5...
[ "0.55640465", "0.54742956", "0.54683644", "0.5432565", "0.5399142", "0.533069", "0.5233148", "0.51035655", "0.50810057", "0.50633115", "0.5060154", "0.5033112", "0.50030756", "0.49893075", "0.49723274", "0.4890975", "0.48607942", "0.4856833", "0.48410964", "0.48380712", "0.48...
0.6934158
0
the purchase_a_sword request handler
def dj7t(): if not QePW.is_json: return ('Content not in JSON!\n', 400) nPrm = QePW.get_json() if nPrm is None or 'username' not in nPrm or nPrm['username'] == '': return ('Missing User info!\n', 400) UFTq = {'event_type': 'purchase', 'user': nPrm['username'], 'weapon_type': 'sword'} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vx80():\n pB3N = QePW.get_json(silent=True)\n try:\n uJjO, rxBR = ql4B(QePW)\n WeWr = pB3N.get('tx_hash', None)\n if None in (uJjO, WeWr):\n raise dSn5('invalid param')\n except Exception as e:\n print('exception: %s' % tTpl)\n raise dSn5('bad-request')\n ...
[ "0.6722959", "0.6635242", "0.66004694", "0.6561832", "0.6329417", "0.6194661", "0.61278224", "0.6120138", "0.60697293", "0.6062643", "0.6017795", "0.6010384", "0.6007837", "0.60056347", "0.59678", "0.5954989", "0.59151775", "0.58873916", "0.587496", "0.58623457", "0.58620214"...
0.76721126
0
Remove properties that were encoded via a CSV file
def FjFk(YKHO, pmON): nPrm, JMPy = XLpq(pmON, []) vexM = YKHO.query_speakers() bYCt = [WKvO for WKvO in JMPy.keys()] vexM.set_properties(**{WKvO: None for WKvO in bYCt}) YKHO.hierarchy.remove_speaker_properties(YKHO, bYCt) YKHO.encode_hierarchy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oMar(rdlD):\n for Jyyj in rdlD:\n rdlD[Jyyj] = str(rdlD[Jyyj]).strip()\n return rdlD", "def ZcrK(YKHO, pmON):\n nPrm, JMPy = XLpq(pmON, [])\n vexM = YKHO.query_discourses()\n bYCt = [WKvO for WKvO in JMPy.keys()]\n vexM.set_properties(**{WKvO: None for WKvO in bYCt})\n YKHO.hierar...
[ "0.6099869", "0.59676546", "0.5910242", "0.5858829", "0.57297575", "0.5636778", "0.5627584", "0.55458605", "0.5536675", "0.5525505", "0.5503321", "0.5474905", "0.544759", "0.543705", "0.5432283", "0.54146683", "0.5411867", "0.53886074", "0.538289", "0.53817767", "0.53413385",...
0.57993644
4
Remove properties that were encoded via a CSV file
def ZcrK(YKHO, pmON): nPrm, JMPy = XLpq(pmON, []) vexM = YKHO.query_discourses() bYCt = [WKvO for WKvO in JMPy.keys()] vexM.set_properties(**{WKvO: None for WKvO in bYCt}) YKHO.hierarchy.remove_discourse_properties(YKHO, bYCt) YKHO.encode_hierarchy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oMar(rdlD):\n for Jyyj in rdlD:\n rdlD[Jyyj] = str(rdlD[Jyyj]).strip()\n return rdlD", "def aIgq(YKHO):\n aEqx = [{'col2': 'test2', 'col1': 'test1', 'label': 'str'}, {'col2': '2.5', 'col1': '1.24', 'label': 'float'}, {'col2': '2', 'col1': '1', 'label': 'list'}]\n _Ikf = iR1w('test_basic.cs...
[ "0.6099869", "0.5910242", "0.5858829", "0.57993644", "0.57297575", "0.5636778", "0.5627584", "0.55458605", "0.5536675", "0.5525505", "0.5503321", "0.5474905", "0.544759", "0.543705", "0.5432283", "0.54146683", "0.5411867", "0.53886074", "0.538289", "0.53817767", "0.53413385",...
0.59676546
1
Add a word root to the database.
def Yamk(YKHO, tk5Y): if YKHO.roots_ids.has_key(tk5Y.id): raise Bx6I.DuplicateModelError(str(tk5Y)) YKHO.roots_ids[tk5Y.id] = tk5Y YKHO.root_hashes[hash(tk5Y.value)] = tk5Y YKHO.roots.add(tk5Y) YKHO.xmlroot.roots.append(tk5Y.elem)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yamk(NCls, J4j2, v0i1):\n xjky = False\n for rdlD in NCls.execute(f\"SELECT * FROM roots where path = '{J4j2}' and mode = '{v0i1}'\"):\n xjky = True\n if not xjky:\n eMCV = f\"INSERT INTO roots VALUES ('{v0i1}', '{J4j2}')\"\n print(f'SQL: {eMCV}')\n NCls.execute(eMCV)\n ...
[ "0.72434103", "0.7075122", "0.70428675", "0.7005306", "0.6961981", "0.6928498", "0.68712574", "0.6869253", "0.68604577", "0.6850676", "0.6845316", "0.68433595", "0.6834603", "0.6797436", "0.67963344", "0.67517304", "0.67460054", "0.67446494", "0.6744123", "0.673464", "0.67298...
0.0
-1
Creates a root tag (self.xmlroot) and adds the main sections.
def XMS8(YKHO): YKHO.xmlroot = xbif.Element('language_database', lang=YKHO.lang) YKHO.xmlroot.parts_of_speech = xbif.Element('parts_of_speech') YKHO.xmlroot.roots = xbif.Element('roots') YKHO.xmlroot.sources = xbif.Element('sources') YKHO.xmlroot.surface_forms = xbif.Element('surface_forms') YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T6wz(YKHO):\n assert YKHO.main_tree is None\n assert YKHO.main_root is None\n YKHO.main_root = yd5f.Element(PCpl['content_types'] + 'Types')\n YKHO.main_tree = yd5f.ElementTree(element=YKHO.main_root)", "def XXlf(YKHO):\n WpW2 = 'http://www.dmg.org/PMML-4_3'\n fKc8 = 'http://www.w3.org/2001...
[ "0.65280384", "0.63035613", "0.6183535", "0.61213654", "0.611791", "0.6103451", "0.6076524", "0.6062445", "0.6045286", "0.60188854", "0.5965581", "0.592162", "0.5856076", "0.5846736", "0.5757668", "0.5743922", "0.5743922", "0.5731186", "0.56859857", "0.5558269", "0.5547754", ...
0.6715033
0
Initialise the tree with a root.
def FIMM(YKHO, tk5Y): super(Ge1t, YKHO).__init__(tk5Y) YKHO.snapshot_visitor = k3Em.SnapshotVisitor() YKHO.logging_visitor = k3Em.LoggingVisitor() YKHO.visitors.append(YKHO.snapshot_visitor) YKHO.visitors.append(YKHO.logging_visitor) YKHO._bag_closed = False wzkt = qcWV.datetime.now() _y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DgQj(YKHO, tk5Y):\n raise NotImplementedError", "def FIMM(YKHO):\n YKHO.root = None\n YKHO.nil = None\n '\\n\\t\\tself.root.left = self.nil\\n\\t\\tself.root.right = self.nil\\n\\t\\tself.root.parent = self.nil\\n\\t\\t'", "def FIMM(YKHO, ImXt=None):\n YKHO.root = o7DN(ImXt)", "def FIMM(YK...
[ "0.81019855", "0.7858152", "0.78162456", "0.7768767", "0.76436025", "0.76371443", "0.7637114", "0.7637114", "0.7573947", "0.75626874", "0.7547364", "0.75329", "0.7528941", "0.7495936", "0.7490742", "0.73963606", "0.73834556", "0.7348607", "0.734613", "0.73318154", "0.7307331"...
0.0
-1
3x3 convolution with padding
def Myly(UUZO, sYyA, _0fC=1): return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False)
{ "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.7210775", "0.7198222", "0.71639067", "0.7161914", "0.71585065", "0.715651...
0.7214909
15
Compute the total amounts of the SO.
def _7uu(YKHO): for T4Wy in YKHO: gvrI = JKxi = L0d6 = Gu9n = b3JR = 0.0 for zFiD in T4Wy.order_line: gvrI += zFiD.price_subtotal JKxi += zFiD.rrp_amount b3JR += zFiD.line_no if zFiD.price_subtotal != 0.0: L0d6 += zFiD.price_unit * zFiD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tng5(YKHO):\n Z5kt = 0\n for ZfUD in YKHO.items:\n Z5kt += ZfUD.price\n return Z5kt", "def tng5(YKHO) -> int:\n yv6U = []\n for YRbF in YKHO.items:\n yv6U.append(float(YRbF.price))\n if str(sum(yv6U))[-1] == '0':\n return int(sum(yv6U))\n return sum(yv6U)", "def ne...
[ "0.7349945", "0.7137942", "0.70663595", "0.7042017", "0.70355195", "0.6993979", "0.69530636", "0.6938399", "0.6925065", "0.6918982", "0.6911225", "0.6894452", "0.68897045", "0.6878198", "0.6874446", "0.6870556", "0.6863196", "0.6856522", "0.68444675", "0.6840106", "0.68339276...
0.0
-1
Return the 'best model' (according to the input metric) of a ML task.
def nd85(x0hE=None, sLuy=None, OlcA=None, vHvk=None, AcYW=None): nu6G = x0hE.get_project(sLuy) d4r9 = nu6G.get_analysis(OlcA) gUaI = d4r9.get_ml_task(vHvk) tMFE = gUaI.get_trained_models_ids() KtGw = [gUaI.get_trained_model_snippet(r8hN) for r8hN in tMFE] V3iw = max(KtGw, key=lambda WKvO: WKvO[A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nd85(YKHO):\n return YKHO.auto_est.get_best_model()", "def nd85(YKHO):\n return YKHO.best_model.model", "def Xc6V(ftWC, ByBU, AcYW='root_mean_squared_error'):\n ITpg = zImd(ftWC, run_id=ByBU)\n Jg1B, Gjj5 = ITpg.get_output(metric=AcYW)\n print(Gjj5.steps)\n return Gjj5", "def RLKj(YKHO,...
[ "0.76450396", "0.7510336", "0.7499783", "0.7400997", "0.7363605", "0.72593904", "0.7198067", "0.7159614", "0.7090959", "0.70285976", "0.7020114", "0.6957136", "0.6920076", "0.6909045", "0.6825394", "0.6683889", "0.6678712", "0.6651777", "0.6646713", "0.6595225", "0.64930123",...
0.7777053
0
Create a new Saved Model in the Flow with the 'best model' of a ML task.
def Vl2G(x0hE=None, sLuy=None, OlcA=None, vHvk=None, AcYW=None, oIvv=None, PglL=None): gUaI, TZ0b = nd85(x0hE, sLuy, OlcA, vHvk, AcYW) gUaI.deploy_to_flow(TZ0b, oIvv, PglL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GAQ3():\n rvDU = uyMl(DrQG)\n CLNC = rvDU.output\n CLNC = l6ZH(2, activation='softmax')(CLNC)\n C3ST = wOed(inputs=rvDU.input, outputs=CLNC)\n return C3ST", "def fkCJ(YKHO) -> ZylS.keras.Model:\n pass", "def LQs7(cuiw):\n fSWc = Hy7s.path.join(xTDd, 'log')\n Hy7s.system('mkdir -p {}...
[ "0.73109424", "0.7071323", "0.6967807", "0.6965353", "0.6862307", "0.68368506", "0.68336403", "0.68301356", "0.6826384", "0.6816988", "0.67983073", "0.6792705", "0.67888117", "0.67868", "0.6750507", "0.6713826", "0.6690866", "0.66881764", "0.66759247", "0.66754967", "0.667256...
0.6369029
61
r""" configuration for logging hooks
def GPtr(): m6_J = True Ahgi = True UAju = ['mae', 'rmse']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VdIj():\n G9jH.config.dictConfig(GPtr)", "def tqPq():\n G9jH.config.fileConfig('config/logging.conf')", "def IHTp(YKHO):\n return None", "def lWLw():\n z5la.dictConfig(cRKi)", "def tqPq(**B2fa):\n pass", "def tqPq(Emd4, paXq: dict) -> None:\n G9jH.basicConfig(**dict(((H5ew.replace('...
[ "0.78347534", "0.7738766", "0.76242036", "0.7556239", "0.7433172", "0.7399472", "0.73208797", "0.7292615", "0.72461516", "0.72440463", "0.7229853", "0.7225257", "0.72226936", "0.7169448", "0.7125747", "0.71125364", "0.7106043", "0.70879626", "0.70840913", "0.7079908", "0.7049...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, aF2y, qtWj, HasU, Dw3f=3): if Dw3f > 0 and qtWj < Dw3f: tspZ = aF2y * ((qtWj + 1) / (Dw3f + 1)) else: Cwt5 = 0 WPxz = 0.5 * (1 + oyIN.cos(oyIN.pi * (qtWj - Dw3f) / (HasU - Dw3f))) x4uD = (1 - Cwt5) * WPxz + Cwt5 tspZ = aF2y * x4uD print('=> Epoch[%d] Se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7992425", "0.7941215", "0.7890062", "0.78280497", "0.7822624", "0.78171587", "0.7811062", "0.78024346", "0.7791298", "0.77885026", "0.7781631", "0.77651197", "0.77644813", "0.77617407", "0.77496886", "0.7738784", "0.7730754", "0.77246344", "0.7712194", "0.7708378", "0.7705...
0.0
-1
This method tests the resp_vnf_depl method.
def eh3d(YKHO): zm3n = eJb6.load(open('/plugins/son-mano-service-lifecycle-management/test/test_records/expected_vnfr_iperf.yml', 'r')) Ol8d = {'status': 'DEPLOYED', 'error': None, 'ip_mapping': [], 'vnfr': zm3n} pB3N = eJb6.dump(Ol8d) LHsb = {} liCf = str(qxeD.uuid4()) FUVZ = str(qxeD.uuid4()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sCsx():\n with sisH.Mocker() as r8hN:\n eqVi = open('pydelivengo/tests/assets/get_depots_ok.json', 'rb', encoding='utf8').read()\n r8hN.get('https://mydelivengo.laposte.fr/api/v2.4/depots', text=eqVi)\n nNXP = JT1K(api_authorization='Loremipsumdolorsitametconsectetu')\n Aofo = nN...
[ "0.616083", "0.6073749", "0.6037705", "0.602734", "0.60099703", "0.5936935", "0.5921966", "0.5910515", "0.58875906", "0.587413", "0.58360857", "0.58343816", "0.5822786", "0.58124167", "0.58014816", "0.57778203", "0.5762351", "0.57567793", "0.5745037", "0.5735674", "0.57156765...
0.76032424
0
PyTorch Dataloader worker init function for setting different seed to each worker process
def LvjC(U3lI): oyIN.random.seed(oyIN.random.get_state()[1][0] + U3lI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LvjC(U3lI):\n OTv7 = ht2j.IntTensor(1).random_().item()\n oyIN.random.seed(OTv7 + U3lI)", "def LvjC(U3lI):\n OTv7 = ht2j.IntTensor(1).random_().item()\n oyIN.random.seed(OTv7 + U3lI)", "def LvjC(U3lI):\n OTv7 = ht2j.IntTensor(1).random_().item()\n oyIN.random.seed(OTv7 + U3lI)", "def Lv...
[ "0.81005013", "0.80456054", "0.80056363", "0.80056363", "0.79879504", "0.78927314", "0.7803309", "0.7604418", "0.7550871", "0.73433316", "0.7319731", "0.7318496", "0.7309598", "0.7213745", "0.7187335", "0.6975912", "0.6896263", "0.68859065", "0.6867356", "0.6844003", "0.68298...
0.7396861
9
Return created Object from a JSON file
def EBvf(Ux0P): with open(Ux0P) as eHNT: YEnM = qQXR.load(eHNT) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cQeh(YKHO, nUeQ):\n pass", "def lYpi(Emd4, Ux0P):\n with open(Ux0P) as eHNT:\n nPrm = qQXR.load(eHNT)\n return Emd4.fromDict(nPrm)", "def Ddor(Emd4, gIsw):\n with open(gIsw, 'r') as nUeQ:\n return Emd4(qQXR.load(nUeQ))", "def refC(Emd4, pmON):\n with open(pmON) as wOb_:\n ...
[ "0.7917376", "0.7772092", "0.7739904", "0.7728601", "0.7716797", "0.7696918", "0.761272", "0.76117855", "0.75997186", "0.75996906", "0.7568338", "0.75560635", "0.7544702", "0.7542693", "0.75403297", "0.75403297", "0.7535851", "0.7518055", "0.7506061", "0.75008357", "0.7493728...
0.7324795
54
Return Pandas dataframe for given csv
def fIqG(YKHO, jY99, A8fR, WBPg=0): q92M = TDhU(YKHO._root_url, jY99) try: B_sB = QePW.urlopen(q92M) eiIs = rLdf.read_csv(B_sB, encoding='utf-8', usecols=A8fR, header=WBPg, keep_default_na=False) return eiIs except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LvsP(m6_J):\n JDhM(m6_J)\n qaEx = m6_J + '.csv'\n return rLdf.read_csv(qaEx)", "def BhMQ(m6_J):\n j93S = m6_J.split(',\\n')\n Nqp_ = list()\n for YRbF in j93S:\n Nqp_.append(YRbF.split(','))\n jQ3Z = rLdf.DataFrame(Nqp_[1:len(Nqp_)], columns=Nqp_[0])\n return jQ3Z", "def SYt4...
[ "0.83098626", "0.78940356", "0.76138085", "0.75553197", "0.7544346", "0.75270253", "0.752117", "0.74116725", "0.74109244", "0.73912203", "0.7380416", "0.7359428", "0.73590475", "0.73488724", "0.7340667", "0.7314706", "0.73130536", "0.7272352", "0.7268753", "0.72601247", "0.72...
0.0
-1
Form dict on sepcific column based on input data
def pS9M(YKHO, sxif, a4rF): fEXb = sxif[a4rF] UrXw = [] for NqMK in fEXb: if NqMK: UrXw.append({'symbol': NqMK}) return UrXw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjdq(WaDF, nPrm, Z2Vu):\n return [dict(zip(WaDF, Z2Vu(WKvO))) for WKvO in nPrm]", "def x1Ok():\n MpPE = ['capacity_mw', 'net_generation_mwh', 'capacity_mw_nems', 'net_generation_mwh_nems', 'variable_om', 'fixed_om']\n wqzz = ['generator_id', 'unit_id_eia', 'fuel_type_code_pudl', 'energy_source_code_...
[ "0.65461046", "0.6530048", "0.64281845", "0.6325423", "0.6201672", "0.6168132", "0.6026473", "0.5962859", "0.59373987", "0.5934514", "0.5919205", "0.59155405", "0.590731", "0.58825356", "0.5877477", "0.58686495", "0.586838", "0.58571863", "0.58493674", "0.5828688", "0.5820436...
0.0
-1
Zero out the gradients with the inner optimizer
def frhb(YKHO): YKHO._optimizer.zero_grad()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frhb(YKHO):\n YKHO.optimizer.zero_grad()", "def frhb(YKHO):\n YKHO.optimizer.zero_grad()", "def frhb(YKHO):\n YKHO.optimizer.zero_grad()", "def frhb(YKHO):\n for vC9B in YKHO.layers:\n vC9B.zero_grad()", "def v91z(YKHO, *qIxc, **B2fa):\n return", "def v91z(YKHO, *qIxc, **B2fa):\...
[ "0.7845614", "0.7845614", "0.7845614", "0.7825682", "0.7762566", "0.7762566", "0.7674755", "0.76380074", "0.7601278", "0.75260067", "0.7466277", "0.7466277", "0.745523", "0.7429167", "0.74190116", "0.74163073", "0.7403497", "0.73975104", "0.7379806", "0.7374849", "0.735236", ...
0.7669532
7
Render a `CardSet` to a humanreadable string.
def zAg0(YKHO): Jkv0 = str(tuple((str(dxhl) for dxhl in YKHO.cards))) Jkv0 = Jkv0.replace("'", '') return Jkv0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n w6rL = ''\n if YKHO._length == 0:\n w6rL = 'set([])'\n else:\n w6rL = 'set(['\n for YRbF in range(YKHO._length):\n if YRbF != YKHO._length - 1:\n w6rL = w6rL + repr(YKHO._array[YRbF]) + ','\n else:\n w6rL = w6rL + r...
[ "0.61501086", "0.60989535", "0.60670197", "0.60410935", "0.5987156", "0.5957532", "0.59551233", "0.59367055", "0.5914737", "0.59092486", "0.58824426", "0.583632", "0.58320314", "0.5805466", "0.58023214", "0.57955635", "0.57836246", "0.57634455", "0.5755313", "0.57533365", "0....
0.5487325
55
Add a `PlayingCard` to the `CardSet`.
def H2v5(YKHO, dxhl: PlayingCard) -> None: YKHO._assert(isinstance(dxhl, CQO0), 'card not a PlayingCard.') YKHO.cards.append(dxhl) YKHO.log.debug('add(%r)' % dxhl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eIGz(YKHO, dxhl):\n YKHO.played.add(dxhl)", "def lACn(YKHO, dxhl, oyg0):\n YKHO.cards.append(dxhl)\n YKHO.players.append(oyg0)", "def lACn(YKHO, oyg0: Player, dxhl: Card) -> None:\n assert oyg0 not in YKHO.trick\n if not YKHO.trick:\n YKHO.starting_suit = dxhl.suit\n YKHO.trick[oyg...
[ "0.76320565", "0.7031803", "0.7013513", "0.6882098", "0.6880806", "0.6879588", "0.6879588", "0.6873232", "0.6870255", "0.68639165", "0.686068", "0.686068", "0.686068", "0.686068", "0.686068", "0.686068", "0.686068", "0.686068", "0.686068", "0.686068", "0.6858187", "0.681990...
0.7790688
0
return the dataset categories
def LQuW(YKHO, eE7i=False): if eE7i: return {or8S: ACia['name'] for or8S, ACia in YKHO.__id_categories.items()} else: return list(YKHO.__id_categories.values())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeZt(YKHO):\n if hasattr(YKHO.dataset, 'categories'):\n return YKHO.dataset.categories\n return set()", "def LeZt(YKHO):\n return QcoP(YKHO.type.get('categories').values())", "def LQuW(YKHO):\n pass", "def LeZt(YKHO):\n return oyIN.unique(YKHO.data[~YKHO.mask])", "def LeZt(YKHO):\...
[ "0.7788365", "0.766434", "0.7543403", "0.7534449", "0.7449037", "0.74484336", "0.73880607", "0.7332671", "0.7322519", "0.7302303", "0.72527766", "0.7240535", "0.72381115", "0.71757126", "0.7173872", "0.715244", "0.71163964", "0.70994586", "0.7070106", "0.7042672", "0.7032099"...
0.0
-1
Load self.hi_score from json file, if it exists.
def Pqtl(YKHO): try: with open(F1p5, 'r') as nUeQ: nPrm = qQXR.load(nUeQ) YKHO.hi_score = nPrm['hi-score'] print(nPrm['hi-score']) except FileNotFoundError: print('No previous hi-score found.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(YKHO):\n try:\n with open('highscores.txt', 'r') as nVrR:\n l5Ny = nVrR.read()\n if l5Ny:\n YKHO.highscores = qQXR.loads(l5Ny)\n return\n except FileNotFoundError:\n pass\n YKHO.highscores = {}", "def wNso(YKHO):\n YKHO.highsc...
[ "0.79717714", "0.73238677", "0.7144142", "0.7111527", "0.70014495", "0.6713031", "0.6602522", "0.64256555", "0.6299006", "0.62951314", "0.6284441", "0.61401737", "0.6056931", "0.60422903", "0.6016813", "0.59255475", "0.5891895", "0.5862056", "0.58304185", "0.58046705", "0.578...
0.885489
0
Write self.hi_score to json file.
def D7hy(YKHO): YKHO.update_hiscore() nPrm = {'hi-score': YKHO.hi_score} with open(F1p5, 'w') as nUeQ: qQXR.dump(nPrm, nUeQ) print('New hi-score saved.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO):\n with open('highscores.txt', 'w') as nVrR:\n qQXR.dump(YKHO.highscores, nVrR)", "def seWH(YKHO):\n with open('.highscore', 'w') as rVmU:\n rVmU.write(str(int(YKHO.high_score)))\n rVmU.close()", "def seWH(YKHO):\n with open('highscore.txt', 'w') as PzCc:\n P...
[ "0.7745087", "0.76847434", "0.7583124", "0.72671354", "0.7235557", "0.7115436", "0.7111746", "0.70566195", "0.6975591", "0.68347555", "0.6822126", "0.67944413", "0.6785869", "0.67270154", "0.6723169", "0.6720488", "0.6720013", "0.67124367", "0.66671044", "0.6628054", "0.66057...
0.8967511
0
Get a dict of the current dispatch event timings. Performance tracking must be enabled with
def l291() -> cuzp: return G6fm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ojon(YKHO):\n _zDF = {}\n _zDF['num_read'] = YKHO.num_read\n _zDF['num_write'] = YKHO.num_write\n return {'reg_track_table': _zDF}", "def l291(YKHO):\n return YKHO.times", "def yhW7(YKHO):\n pNCp = YKHO.get_window_performance()\n emDK = YKHO._network_event_handler.get_first_request_tim...
[ "0.6627965", "0.66247016", "0.65761983", "0.6511585", "0.64596975", "0.6424891", "0.63991064", "0.63866144", "0.6228982", "0.60983163", "0.605035", "0.6021919", "0.60098714", "0.59975517", "0.5992473", "0.596954", "0.59619397", "0.5936", "0.59315115", "0.59122777", "0.5904077...
0.71169287
0
Return current value of the widget. This may be interpreted by backends.
def BWXx(YKHO) -> tuple[GkAb, ...] | GkAb | None: l5Ny = YKHO.line_edit.value if YKHO._nullable and (not l5Ny): return None if YKHO.mode is RCkG.EXISTING_FILES: return tuple((GkAb(XP5J) for XP5J in l5Ny.split(', ') if XP5J.strip())) return GkAb(l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n return YKHO.widget.get_value()", "def Zmkp(YKHO):\n return YKHO.current_value", "def Zmkp(YKHO) -> str:\n return YKHO.get().text", "def z8Af(YKHO):\n raise Exception('getWidgetValue not implimented: ' + YKHO.__name)", "def UnfG(YKHO):\n return str(YKHO.value.get())", "def...
[ "0.87474734", "0.81377953", "0.80414593", "0.7908286", "0.7773866", "0.7750102", "0.76906574", "0.7653193", "0.76353925", "0.75946504", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941...
0.0
-1
Return current value of the widget. This may be interpreted by backends.
def BWXx(YKHO) -> range: return range(YKHO.start.value, YKHO.stop.value, YKHO.step.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n return YKHO.widget.get_value()", "def Zmkp(YKHO):\n return YKHO.current_value", "def Zmkp(YKHO) -> str:\n return YKHO.get().text", "def z8Af(YKHO):\n raise Exception('getWidgetValue not implimented: ' + YKHO.__name)", "def UnfG(YKHO):\n return str(YKHO.value.get())", "def...
[ "0.87474734", "0.81377953", "0.80414593", "0.7908286", "0.7773866", "0.7750102", "0.76906574", "0.7653193", "0.76353925", "0.75946504", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941", "0.7587941...
0.0
-1
Return current value of the widget. This may be interpreted by backends.
def BWXx(YKHO) -> slice: return slice(YKHO.start.value, YKHO.stop.value, YKHO.step.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n return YKHO.widget.get_value()", "def Zmkp(YKHO):\n return YKHO.current_value", "def Zmkp(YKHO) -> str:\n return YKHO.get().text", "def z8Af(YKHO):\n raise Exception('getWidgetValue not implimented: ' + YKHO.__name)", "def UnfG(YKHO):\n return str(YKHO.value.get())", "def...
[ "0.87474996", "0.81377983", "0.80414796", "0.7908335", "0.77738816", "0.77501", "0.7690685", "0.7653207", "0.76354074", "0.75946647", "0.7587951", "0.7587951", "0.7587951", "0.7587951", "0.7587951", "0.7587951", "0.7587951", "0.7587951", "0.7587951", "0.7587951", "0.7587951",...
0.0
-1
Return current value as a tuple.
def BWXx(YKHO) -> tuple: return tuple((yzQ0.value for yzQ0 in YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzqw(YKHO):\n return (YKHO.attribute, YKHO.value)", "def RZMD(YKHO) -> AzJI:\n return tuple(super().GetValue())", "def pTc2(YKHO):\n return (YKHO._key, YKHO._value)", "def hkxX(YKHO) -> tuple:\n return (YKHO.value,)", "def ngG_(YKHO):\n if YKHO._as_tuple:\n YKHO._as_tuple = False\...
[ "0.78795654", "0.77464443", "0.7394997", "0.7325483", "0.7061164", "0.705874", "0.70546144", "0.7041223", "0.7024973", "0.69962543", "0.6919713", "0.6855894", "0.68001586", "0.6778095", "0.6752989", "0.67094404", "0.67019415", "0.66866976", "0.66830647", "0.6657937", "0.66496...
0.780665
1
Get the list of entries in this log buffer.
def VECZ(YKHO): return YKHO._entries
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VECZ(YKHO):\n return list()", "def fRr3(YKHO):\n return list((WKvO for WKvO in YKHO))", "def VECZ(YKHO):\n return YKHO.__entries", "def VECZ(YKHO):\n return YKHO._entries", "def Oe1I(YKHO):\n return YKHO.__entries", "def tFnp(YKHO):\n RKD7.debug('list_entries')\n Lx3t = []\n f...
[ "0.74792516", "0.74368536", "0.7146723", "0.71308005", "0.711877", "0.708386", "0.7081289", "0.7061893", "0.70544153", "0.70434195", "0.70434195", "0.70410717", "0.69560117", "0.69237584", "0.68851125", "0.6870288", "0.6870288", "0.68609166", "0.6838784", "0.6814005", "0.6756...
0.7135613
6
Returns the Delaunay triangulation object.
def K4_K(M_DK): return Bh_0(M_DK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jseQ(Zxma):\n pass", "def x1G4(Mkmy):\n ywwl = Mkmy.shape[1]\n kmXD = oyIN.sqrt(oyIN.sum(Mkmy ** 2, 0))\n WKvO = Mkmy[0, :] / kmXD\n LVAh = Mkmy[1, :] / kmXD\n epBp = Mkmy[2, :] / kmXD\n pImw = oyIN.zeros(ywwl)\n FJf_ = oyIN.zeros(2 * ywwl)\n bCES, uSe9, J8gx, Jlsh, Qh4y, next, pIm...
[ "0.63031447", "0.62988234", "0.61725396", "0.6154945", "0.6099908", "0.5973833", "0.5933215", "0.5869253", "0.5686324", "0.5679531", "0.5538523", "0.5537558", "0.5531976", "0.5529135", "0.5514422", "0.550217", "0.54499274", "0.536225", "0.5319697", "0.53093374", "0.5275479", ...
0.69335
0
Returns the area from the Hull object. For a 2D shape this is the perimeter.
def fPYd(M_DK): b7Ss = L8G0(M_DK) return b7Ss.area
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n KyDZ = epAf.sqrt((YKHO.point_2.x - YKHO.point_1.x) ** 2 + (YKHO.point_2.y - YKHO.point_1.y) ** 2)\n ztQ_ = epAf.sqrt((YKHO.point_3.x - YKHO.point_2.x) ** 2 + (YKHO.point_3.y - YKHO.point_2.y) ** 2)\n EbC8 = epAf.sqrt((YKHO.point_1.x - YKHO.point_3.x) ** 2 + (YKHO.point_1.y - YKHO.point_3...
[ "0.80722964", "0.8012487", "0.8008828", "0.7947061", "0.77926093", "0.775064", "0.7718401", "0.7706435", "0.76901555", "0.7680838", "0.76744944", "0.76717335", "0.7669945", "0.766416", "0.7646568", "0.7638977", "0.76037633", "0.76008004", "0.75984865", "0.7585059", "0.7577775...
0.73402524
67
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return khtY.abspath(khtY.join(khtY.dirname(xAKo), 'resources') + khtY.sep)", "def JFat(Qth0):\n if getattr(HwRy, 'frozen', None):\n ObT1 = HwRy._MEIPASS\n else:\n ObT1 = Hy7s.path.join(Hy7s.getcwd())\n return Hy7s.path.join(ObT1, Qth0)", "def JFat(t_yv):\n try:\n ...
[ "0.86645055", "0.8190357", "0.8175001", "0.8163073", "0.80863976", "0.80863976", "0.80863976", "0.80863976", "0.8086095", "0.80784917", "0.8077746", "0.8073863", "0.8065137", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0.80625504", "0....
0.80456185
24
return the current square area
def f0tD(YKHO): return YKHO._Square__size ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return YKHO.h * YKHO.w", "def f0tD(YKHO):\n return YKHO.width() * YKHO.height()", "def f0tD(YKHO):\n return YKHO._Square__size ** 2", "def f0tD(YKHO):\n return YKHO.__width * YKHO.__height", "def f0tD(YKHO):\n return YKHO.__width * YKHO.__height", "def f0tD(YKHO):\n re...
[ "0.8374551", "0.8249481", "0.82185054", "0.81919897", "0.8163788", "0.8163788", "0.8117431", "0.81111586", "0.80904937", "0.80904937", "0.80904937", "0.8087256", "0.8087256", "0.8087256", "0.8087256", "0.806248", "0.806248", "0.8060911", "0.8057811", "0.80447876", "0.8027891"...
0.80441535
20
Test a policy using random actions over a fixed number of episodes
def FACR(Qabx, j7hk: int=10, _1tc: bool=True, Xejw: int=200, LwUF: bool=False, CX3n: str='random'): vHj7 = qcWV.datetime.now().strftime('%Y-%m-%d-%H-%M-%S') dk_N = vHj7 + '_' + CX3n + '_log.csv' sg14 = Bgki(render=_1tc, log_data=LwUF, log_file=dk_N) for xgXB in range(j7hk): dfHy = 0 f9TP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FACR(YKHO, Qabx, zWk0=False, oUeE=False, R1aX=False, hkhA=False, tuKI=False):\n print('Testing policy: ' + Qabx.name)\n HIdA = []\n srNo = []\n hnpp = []\n tSvh = []\n xPJl = []\n tfkK = []\n Wk6t = []\n IgvD = []\n zFBd = []\n Dduj = []\n for cfQG in range(YKHO.num_episodes...
[ "0.72878593", "0.7180977", "0.70906794", "0.70519876", "0.69918734", "0.6892215", "0.6871929", "0.6869724", "0.6801107", "0.6794824", "0.67508984", "0.6737418", "0.6737418", "0.6723373", "0.6716618", "0.6715176", "0.67083526", "0.6705831", "0.66714513", "0.662675", "0.6625076...
0.74165726
0
This function will pull 94 different player metrics for each player and from each game within the date range
def Sp6m(kepv, KhBf): """Since the official stats API ('statsapi.web.nhl.com/api/v1/') does not contain advanced player stats, a different url is used""" kAdO = ['playerId', 'gameId', 'playerName', 'playerPositionCode', 'gameDate', 'teamAbbrev', 'opponentTeamAbbrev', 'goals', 'assists', 'points', 'shots', 'pena...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GgYg(MYdB):\n MYdB.columns = map(str.lower, MYdB.columns)\n ZJ5a = MYdB.copy()\n ZJ5a = ZJ5a.iloc[:, [17, 0, 1, 2, 3, 4, 5, 6, 7, 8]]\n ZJ5a.reset_index(drop=True)\n ZJ5a[['gp', 'g', 'a', 'tp', 'pim', '+/-']] = ZJ5a[['gp', 'g', 'a', 'tp', 'pim', '+/-']].apply(rLdf.to_numeric, errors='coerce')\n ...
[ "0.6834758", "0.67110753", "0.6634467", "0.6542389", "0.6501861", "0.64552826", "0.64475185", "0.6442965", "0.6422925", "0.63982064", "0.6352536", "0.6332805", "0.6306616", "0.6304119", "0.62719387", "0.62717056", "0.625895", "0.6244038", "0.62340105", "0.6224666", "0.6214545...
0.721102
0
returns chunks of length size for given sequence. can be used in a loop A = 'ABCDEFG'
def ChZT(Q6uT, zNig): return (Q6uT[oeNL:oeNL + zNig] for oeNL in range(0, len(Q6uT), zNig))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(Q6uT, zNig):\n return (Q6uT[oeNL:oeNL + zNig] for oeNL in range(0, len(Q6uT), zNig))", "def eHxA(Q6uT, zNig):\n return (Q6uT[oeNL:oeNL + zNig] for oeNL in range(0, len(Q6uT), zNig))", "def dlVb(aWuw, ztRo):\n tsWk = len(aWuw)\n eHxA = []\n for G1Hx in range(0, tsWk // ztRo):\n eH...
[ "0.80748624", "0.80748624", "0.7987709", "0.7645229", "0.7599464", "0.75511515", "0.74934995", "0.746874", "0.73594403", "0.7260235", "0.7247331", "0.72347265", "0.72048575", "0.71944237", "0.7140898", "0.7093622", "0.7074967", "0.7074089", "0.7070901", "0.7041993", "0.704199...
0.7597449
5
Return list of command line arguments. Override me.
def U5Ri(YKHO): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rwTO(YKHO) -> x1iM[str]:\n return YKHO.m_argv", "def jgwn(YKHO):\n raise NotImplementedError('You must implement the get_command_line_args function')", "def jgwn(YKHO):\n return YKHO.argv", "def qIxc(YKHO):\n VKhi = [(f'--{G1Hx}', Ty9i) for G1Hx, Ty9i in YKHO.options.items()]\n return list...
[ "0.83107597", "0.80988264", "0.8075547", "0.78640693", "0.7732628", "0.7693467", "0.768846", "0.7575808", "0.75351596", "0.7483679", "0.74224424", "0.7387681", "0.73784643", "0.7332834", "0.7316331", "0.7310782", "0.7310175", "0.7281598", "0.7278463", "0.7272691", "0.72658396...
0.75788224
7
Extends a given object for API Consumption.
def WOxh(YEnM, mUif, IIaV=None, g27T=None, VXrc=None, kH9w=None, snzU=None, XUeG=None, X5V_=None, SmrQ=None, aVkO=None, **B2fa): Csk6 = dict() if IIaV: for ez4r in IIaV: Abn6 = '_' + ez4r Csk6[Abn6] = mUif.get(ez4r) if g27T: for ez4r in g27T: Abn6 = '_' + ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FJj_(YKHO, OCky):\n pass", "def FIMM(YKHO, I039=50, eQYU=200, YKiD='EUR_USD', dbbf='S5', akib=1000):\n YKHO.params = {'granularity': dbbf, 'count': eQYU}\n YKHO.accountID = Hy7s.environ['ACCOUNT_ID']\n YKHO.client = Xxo_.API(access_token=Hy7s.environ['TOKEN'], environment=Hy7s.getenv('OandaEnv'))...
[ "0.5875186", "0.5796251", "0.57813185", "0.57381564", "0.56227934", "0.55231774", "0.54918015", "0.54918015", "0.5468104", "0.5425794", "0.5416384", "0.5391353", "0.53720015", "0.53720015", "0.5320596", "0.53015125", "0.52860886", "0.52765334", "0.5267606", "0.5262779", "0.52...
0.0
-1
Initialization of a ParmeterError.
def FIMM(YKHO, _N6A: str, cpuL: str, KNtt: str, dfOq=None): YKHO.text = f'Parameter "{_N6A}" has an unexpected type "{KNtt}". Possible type(s): {cpuL}' super().__init__(YKHO.text) if dfOq and isinstance(dfOq, C3ST.TinkModelResultList): YKHO._result_list = dfOq else: YKHO._result_list = C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, P1dF=''):\n VAT6.__init__(YKHO, P1dF)", "def FIMM(YKHO, **B2fa):\n YKHO.operational_error = B2fa.pop('operational_error')\n super(rK80, YKHO).__init__(**B2fa)", "def FIMM(YKHO, P1dF):\n Exception.__init__(YKHO)\n YKHO.error = P1dF", "def FIMM(YKHO, LwG6):\n eIKR.__init__(YKHO...
[ "0.7234037", "0.7033184", "0.673334", "0.669395", "0.6631323", "0.6630678", "0.662134", "0.662134", "0.662134", "0.6581785", "0.65772164", "0.652483", "0.64533985", "0.64464444", "0.64464444", "0.64311665", "0.6422734", "0.6402671", "0.6402671", "0.6402671", "0.6338945", "0...
0.0
-1
Render website's home page.
def kZiy(): return TvZl('home.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def C_QL():\n ...
[ "0.8819581", "0.87503684", "0.8623934", "0.8596466", "0.8596466", "0.8571988", "0.8557671", "0.8557671", "0.85497755", "0.85256004", "0.8489358", "0.8483156", "0.8475702", "0.8474153", "0.84737927", "0.84619766", "0.8438196", "0.8428517", "0.8418825", "0.8418701", "0.83995277...
0.8338782
48
Render the website's about page.
def vsuQ(): return TvZl('about.html', name='Mary Jane')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n bo34.info('User visited the about page.')\n return TvZl('about.html')", "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n bo34.debug('In about()')\n return TvZl('about.html')", "def vsuQ():\n return TvZl('about.html', title='about')", "def vsuQ():\n ...
[ "0.8763036", "0.8677626", "0.8666991", "0.8650025", "0.8638193", "0.86223155", "0.8601017", "0.8498177", "0.8474175", "0.8472615", "0.8452931", "0.84330356", "0.8430345", "0.84241337", "0.84241337", "0.84241337", "0.84241337", "0.84241337", "0.84241337", "0.84241337", "0.8424...
0.0
-1
Initialize starting coordinate for a ship.
def uIcm(jR1J): rdlD = ajWY(0, Cs6h.shape[0] - jR1J) fvDH = ajWY(0, Cs6h.shape[1] - jR1J) return (rdlD, fvDH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HF38(YKHO):\n YKHO.snake = [[1, 3], [1, 2], [1, 1]]\n YKHO.apple_cord = [1, 10]", "def HCGu(YKHO, WKvO, LVAh):\n YKHO.startx = WKvO\n YKHO.starty = LVAh\n YKHO.set_pos(WKvO, LVAh)", "def CbXR(YKHO):\n pass", "def wwd4(YKHO):\n YKHO.starting_position.x = YKHO.position.x\n YKHO.star...
[ "0.70554125", "0.6944412", "0.6741695", "0.6689675", "0.6682009", "0.66689974", "0.6547938", "0.65356696", "0.64545625", "0.64454466", "0.6442321", "0.64380866", "0.6412967", "0.6412967", "0.6412967", "0.6406513", "0.6375052", "0.63650805", "0.63511986", "0.6340238", "0.63389...
0.64389354
11
Generate dictionary with grid coordinates as key and orientation icon as value for a ship based on size.
def Tto8(jR1J): yKcO = uIcm(jR1J) C3ap = ajWY(0, 1) jNOo = {} for YRbF in range(jR1J): rdlD = yKcO[0] fvDH = yKcO[1] _G4g = '' if C3ap == 0: fvDH += YRbF _G4g = '>' else: rdlD += YRbF _G4g = '^' jNOo[rdlD, fv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zqfx(Cs6h, Ewdv):\n map = Cs6h.copy()\n XIuT = {}\n\n def uIcm(jR1J):\n \"\"\"Initialize starting coordinate for a ship.\"\"\"\n rdlD = ajWY(0, Cs6h.shape[0] - jR1J)\n fvDH = ajWY(0, Cs6h.shape[1] - jR1J)\n return (rdlD, fvDH)\n\n def Tto8(jR1J):\n \"\"\"Generate ...
[ "0.62497604", "0.615812", "0.6090079", "0.6083392", "0.6011916", "0.5970796", "0.59565663", "0.58361596", "0.57991177", "0.57761246", "0.5772898", "0.5767818", "0.57574093", "0.575517", "0.57436633", "0.57302237", "0.570363", "0.57035166", "0.5699861", "0.5670393", "0.5665830...
0.8002457
0
Draw the game UI.
def hkwL(): print('\n') Mu_t(f'[bold green]{u46J}[/]') Mu_t(f'Damage Points Remaining: [orange1]{J2aS}[/]', '\n') Mu_t(CGRF, '\n\n') Mu_t('[bold red]Opponent[/]') Mu_t(f'Damage Points Remaining: [orange1]{vRsW}[/]', '\n') Mu_t(xFsd, '\n') Mu_t(O6e0, '\n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO) -> None:\n YKHO.screen.fill(z13o)\n YKHO.all_sprites.draw(YKHO.screen)\n YKHO.screen.fill(z13o, ((0, YKHO.screen_rect.h), (TVTK, eJAA)))\n YKHO.gui_elements.draw(YKHO.screen)\n g74T.display.update()", "def hkwL(YKHO) -> None:\n YKHO._gui_manager.draw_ui(YKHO._screen)", "def _1t...
[ "0.8246725", "0.8147992", "0.81110054", "0.79814744", "0.7929388", "0.792391", "0.7914276", "0.783562", "0.7816653", "0.7808226", "0.780406", "0.7803602", "0.78002757", "0.77900815", "0.77420294", "0.77415705", "0.7740171", "0.7737072", "0.77331066", "0.77108705", "0.77094996...
0.7332002
63
Return signature backend instance. Default implementation calls signature instance's ``signature_backend``. Override this method if you want a custom backend initialization.
def olyq(YKHO): return YKHO.signature.signature_backend
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IEyL(YKHO):\n try:\n return YKHO._signature_backend\n except AttributeError:\n YKHO._signature_backend = YKHO.get_signature_backend()\n return YKHO._signature_backend", "def DDLl():\n return p5cf", "def ELfM(YKHO, aadv):\n aadv = super(uD2C, YKHO).create_signature(aadv)\n ...
[ "0.8646782", "0.6833011", "0.6711273", "0.66917485", "0.64900553", "0.6446292", "0.6423617", "0.63522005", "0.6219606", "0.6102725", "0.6102725", "0.60878086", "0.60703367", "0.6037853", "0.59898514", "0.5973185", "0.5963959", "0.5896458", "0.5860059", "0.5853834", "0.5849739...
0.8206437
2
If provided an invalid repository url, should raise warning and return original repository url
def XJvL(): Pssr = 'https://github.com:organ[ization/repository-name' with TMAJ.patch('ddtrace.internal.ci_visibility.recorder.log') as zabd: _ALd = XME6(Pssr) assert _ALd == Pssr zabd.warning.assert_called_once_with('Repository name cannot be parsed from repository_url: %s', Pssr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CGy0(YKHO):\n N5OF = 'https://reddit.com'\n Aofo = a9PP.get_commit_url(N5OF)\n assert Aofo == N5OF", "def Fd4y(F3jJ):\n if ':' in F3jJ:\n return F3jJ\n else:\n assert '/' in F3jJ\n return 'https://github.com/' + F3jJ.strip()", "def _lAP(QpfX, xqoZ, BWXx):\n if BWXx is...
[ "0.7224732", "0.71927327", "0.7172175", "0.7088546", "0.70082855", "0.68603224", "0.68093556", "0.6767892", "0.6767892", "0.6657969", "0.66422504", "0.66422504", "0.6638415", "0.65849656", "0.6582016", "0.65479016", "0.6514325", "0.6496578", "0.6445863", "0.6444004", "0.64092...
0.6155652
50
Create input & output vocabulary from training data.
def efap(baVX): wUne = iNRS() dGoU = iNRS() xs1H = 0 VYgB = 0 try: if Hy7s.path.isfile(baVX): with open(baVX, 'r') as Qs61: for OXAZ in DI_J: wUne[OXAZ] = xs1H dGoU[OXAZ] = VYgB xs1H += 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rtlt(YKHO, nPrm, WbAn, f2Tp):\n print('\\nMaking Vocabulary...')\n zfF2 = Dhdw.FreqDist()\n for U6D_ in nPrm:\n YKHO.doc_length = max(YKHO.doc_length, len(U6D_['report.pyd']), len(U6D_['summary.pyd']))\n for GIN8 in U6D_['report.pyd']:\n zfF2[GIN8] += 1\n for GIN8 in U6...
[ "0.7668469", "0.72242945", "0.7174973", "0.71456456", "0.7024458", "0.70171", "0.7013339", "0.69928646", "0.6955902", "0.6932607", "0.68924195", "0.68762", "0.6842274", "0.6824013", "0.6803006", "0.6797919", "0.6769757", "0.6749827", "0.67358005", "0.6682257", "0.66673607", ...
0.73593336
1
Create a protocol object for the connection.
def iquo(YKHO): return YKHO.factory.protocol()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nKFu(YKHO, rRzo):\n XP5J = YKHO.protocol(YKHO.cb)\n XP5J.factory = YKHO\n return XP5J", "def nKFu(YKHO, jzdc):\n mLim = O8gb.ClientProtocol(sockshost=YKHO.sockshost, socksport=YKHO.socksport, host=YKHO.host, port=YKHO.port, method=YKHO.method, login=YKHO.login, password=YKHO.password, otherProtoc...
[ "0.7665478", "0.76049805", "0.7380075", "0.7175563", "0.71357363", "0.70665616", "0.703839", "0.703839", "0.7032533", "0.70159197", "0.6983644", "0.69818527", "0.6959417", "0.6936051", "0.68911177", "0.6848772", "0.6751472", "0.67308027", "0.6710261", "0.66674", "0.66115314",...
0.69711643
12
Produce a list of stations which are within the warning. Note it is often the case that a warning region may have no stations in it. This is because the Environmental Agency defines the warning regions based on flood planes or topology regions.
def D9ui(YKHO, Oj45): uJyM = [] for gnAD in Oj45: if gnAD.coord is not None: if YKHO.coord_in_region(gnAD.coord): uJyM.append(gnAD) return uJyM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvJ1(qmLP, hksT):\n C1u6 = []\n for pEH_ in qmLP:\n if pEH_.coord_in_region(hksT):\n C1u6.append(pEH_)\n return C1u6", "def ncr1(YKHO, Oj45):\n YKHO.towns = []\n for gnAD in YKHO.stations_in_warning(Oj45):\n YKHO.towns.append(gnAD.town)\n return YKHO.towns", "def ...
[ "0.6466755", "0.63085306", "0.6116156", "0.6057407", "0.60288155", "0.5912906", "0.58649826", "0.5770997", "0.5732235", "0.5705007", "0.568633", "0.5664363", "0.55395657", "0.5526191", "0.5509645", "0.5473677", "0.5416331", "0.54017925", "0.5360872", "0.5356209", "0.5335054",...
0.80473316
0
Calculates the instrument weights to use for a given goal settings.
def lZ50(gCuF, fJ6C, w0Qf, keok=None): if keok is None: keok = KEDk(fJ6C) if bo34.isEnabledFor(G9jH.DEBUG): bo34.debug('Calculating portfolio for settings: {}'.format(gCuF)) voXd = GIOh(gCuF, keok, fJ6C, w0Qf) _mSQ, sSN_, fUYa, EhIg, gkIT, PWCr, zCj8, rfQF = voXd _mSQ, sSN_ = tjwd(_m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v0l9(YKHO):\n if GPtr.weight_option is None:\n YKHO.seismic_weight = YKHO.classic_weight = 1.0\n return\n if GPtr.weight_option == 'Absolute':\n YKHO.seismic_weight = GPtr.seismic_weight\n YKHO.classic_weight = GPtr.classic_weight\n return\n if GPtr.weight_option == ...
[ "0.7285991", "0.68024415", "0.6680865", "0.6506426", "0.6463374", "0.6407565", "0.63556534", "0.63344073", "0.6302522", "0.6264383", "0.62259185", "0.6218808", "0.62043214", "0.6188522", "0.61814815", "0.61707395", "0.6167367", "0.6162403", "0.6158729", "0.61473966", "0.61463...
0.0
-1
Returns true if the weight at index ix produces an order qty with remainder within 1% of the orderable qty.
def XS2Y(YRbF): wXAI = _mSQ[YRbF] * Jtpl % AVpI[YRbF] return wXAI < AVpI[YRbF] * cOiS or wXAI > AVpI[YRbF] * (1 - cOiS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xjlq(yzQ0):\n if isinstance(yzQ0, oyIN.ndarray):\n yzQ0 = yzQ0.tolist()\n zmZB = all((Ty9i >= 0 and isinstance(Ty9i, (mSrU.Integral, kteF)) for Ty9i in yzQ0))\n return zmZB and sum(yzQ0) == 1", "def HO5s(YKHO, RoXu):\n for ZfUD, cTRz in YKHO.orderMap.items():\n if ZfUD not in RoXu:\...
[ "0.5880043", "0.5785513", "0.5684178", "0.564993", "0.5577339", "0.555327", "0.5550951", "0.55405277", "0.55212015", "0.55199474", "0.55043787", "0.54947907", "0.54914814", "0.54830486", "0.5479292", "0.54693836", "0.54617804", "0.5439154", "0.5427815", "0.5420599", "0.539192...
0.6189264
0
Path to the examples directory
def jUAv(): return oAb3.Path(xAKo).parent.parent / 'example_files'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b4s7():\n cfQG = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), '..'))\n HwRy.path.insert(0, cfQG)", "def cjSZ():\n return 'examples/'", "def eCGt(YKHO):\n Hy7s.chdir('examples')", "def q_xe(YKHO):\n RbUd = Hy7s.path.join(GWmc, 'examples')\n YKHO._check_file_extensions(RbUd, ...
[ "0.8598612", "0.8413915", "0.8015918", "0.78109175", "0.73400635", "0.7122193", "0.7093507", "0.70889616", "0.7025527", "0.6978739", "0.6920922", "0.6893391", "0.6893391", "0.6893391", "0.6893391", "0.68650067", "0.6839553", "0.67316735", "0.66723543", "0.6665217", "0.6646721...
0.88879174
0
Insert node with value into tree
def JPHp(YKHO, BWXx): YKHO._traverse_tree(side=YKHO._add_to_the_side, match=YKHO._insert_match, value=BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, BWXx):\n if YKHO.root:\n YKHO.root.insert(BWXx)\n else:\n YKHO.root = o7DN(BWXx)", "def JPHp(YKHO, BWXx):\n YKHO.head = o7DN(BWXx, YKHO.head)", "def JPHp(YKHO, H5ew, BWXx=None):\n YKHO.root = YKHO.Node(H5ew, BWXx) if YKHO.root is None else YKHO.root.insert(H5ew, BWXx)",...
[ "0.82761705", "0.78940797", "0.78892505", "0.78604144", "0.78563595", "0.7818175", "0.77679634", "0.77574885", "0.77358854", "0.7716363", "0.7713444", "0.7708981", "0.7707411", "0.7687071", "0.7660109", "0.7623974", "0.7575704", "0.75752234", "0.7557425", "0.7521066", "0.7515...
0.77417517
8
Return the current magnetometer reading as a tuple of X, Y, Z values in microTeslas.
def quxV(YKHO): WKvO, LVAh, epBp = YKHO._read_vector(YKHO.BNO055_MAG_DATA_X_LSB_ADDR) return (WKvO / 16.0, LVAh / 16.0, epBp / 16.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def quxV(YKHO):\n WKvO, LVAh, epBp = YKHO._read_vector(JSk8)\n return (WKvO / 16.0, LVAh / 16.0, epBp / 16.0)", "def hWXE(YKHO):\n YKHO._read_bytes(QoDP, 128 | h8oI, 6, YKHO._BUFFER)\n IQZ9, le7l, Nn5J = BlNT.unpack_from('<hhh', YKHO._BUFFER[0:6])\n return (IQZ9, le7l, Nn5J)", "def hWXE(YKHO):\n...
[ "0.7833547", "0.7588697", "0.7536269", "0.74231285", "0.7376443", "0.71565205", "0.70435166", "0.6915843", "0.6857106", "0.68192506", "0.6782476", "0.6752733", "0.6616225", "0.6545452", "0.6492471", "0.64613754", "0.6451032", "0.6450165", "0.63993317", "0.63956016", "0.639535...
0.7846898
0
Simpify a name to a last name only. Titles such as Ph. D. will be removed first.
def U3Ci(mWFP): if mWFP is not None: Dokz = mWFP.replace('Ph.D.', '').replace('Ph. D.', '').replace('M.A.', '').replace('LL.D.', '').replace('A.M.', '').replace('Esq.', '').replace(',', '').strip() return Dokz.split(' ')[-1] else: return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KYSF(YKHO, mWFP, c9ua):\n return '{} {}'.format(c9ua, YKHO.clean_name(mWFP))", "def QCuK(mWFP):\n nfza = mWFP.split(' ')\n if len(nfza) >= 2:\n hlel = nfza[-1][0] + '.'\n return ' '.join(nfza[:-1]) + ' ' + hlel\n else:\n return Wkmh(mWFP)", "def hGaj(XVAW):\n yvT9 = XVAW...
[ "0.8408226", "0.7938694", "0.76636624", "0.75835645", "0.75029415", "0.74270606", "0.73544925", "0.7312528", "0.72785604", "0.7262166", "0.72293115", "0.722852", "0.7226723", "0.72103566", "0.72097075", "0.72064394", "0.7203847", "0.71950436", "0.71950436", "0.71915746", "0.7...
0.74909824
5
Create a test client out of given WSGI server.
def _hoh(oi29): return IpwL(oi29)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0hE(P4t4):\n udfG = NxUR(P4t4)\n return udfG", "def x0hE(P4t4):\n return NxUR(P4t4)", "def udfG():\n return LUif().test_client()", "def x0hE(P4t4):\n return kO5c.TestClient(P4t4)", "def x0hE(P4t4):\n return kO5c.TestClient(P4t4)", "def n9x0():\n P4t4 = LUif()\n udfG = P4t4.te...
[ "0.76355755", "0.7549606", "0.74796826", "0.7476836", "0.7476836", "0.73734796", "0.7353777", "0.73486495", "0.731421", "0.7300342", "0.7290063", "0.7273728", "0.72562826", "0.72562826", "0.72562826", "0.72562826", "0.72562826", "0.72562826", "0.72562826", "0.72562826", "0.72...
0.75517577
1
Check the age of a bee given a timestamp and ID.
def N_N1(YKHO, Trn_, E3oo): YKHO._check_date(E3oo) EHVl = YKHO.get_hatchdate(Trn_) return E3oo - EHVl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YM2t(mWFP: str, D1sU, gUmT, Jj31):\n ZJe_ = Jj31 - gUmT\n assert ZJe_ <= D1sU, f'{mWFP} is too old! (Age: {ZJe_} > Tolerance: {D1sU})'", "def ZJe_(i_8Y):\n IQ5G = Es1w(i_8Y)\n KSG9 = LgWF.get() - IQ5G\n return pBSp(KSG9.days / 365.25)", "def ZJe_(YKHO):\n if YKHO.date_of_birth:\n y...
[ "0.65384275", "0.6476671", "0.64063466", "0.63664514", "0.6350248", "0.6344917", "0.63049585", "0.6303512", "0.62786406", "0.62697184", "0.6266708", "0.6252341", "0.6250902", "0.62292564", "0.62292564", "0.6211986", "0.6198514", "0.61771923", "0.61759096", "0.61681736", "0.61...
0.79639125
0
Display products by category_name
def qjCB(YKHO): q2I9 = IrVI(YKHO.database) xlXm = q2I9.most_used_categories() gftZ = sorted(xlXm, key=lambda WKvO: WKvO[0]) LeZt = {} print('\n', ' Catégories '.center(50, '*'), '\n') for kFvi, k5IK in enumerate(gftZ): d6pt = kFvi + 1 LeZt[str(d6pt)] = k5IK print(f'{str(d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdV0(QePW, Ghho):\n ficO = msfn.objects.filter(category__slug=Ghho)\n if not ficO:\n raise uhgT\n return _1tc(QePW, 'products_by_category.html', {'products_list': ficO, 'category': Ghho})", "def BUTj(ipek):\n LeZt = _hSU.query(qZuN).order_by(MqDc(qZuN.name))\n Ghho = _hSU.query(qZuN).fi...
[ "0.7905781", "0.7595737", "0.73579234", "0.72481734", "0.7160322", "0.7108412", "0.70739406", "0.7056418", "0.70249784", "0.6974276", "0.69570524", "0.6955957", "0.6947339", "0.68822944", "0.68585", "0.6841847", "0.68082154", "0.6754673", "0.6712245", "0.6710127", "0.67099965...
0.7443571
2
boxName can be either a name "cat" or a tuple ("cat", "hue") Here we really have to duplicate seaborn code, because there is not direct access to the box_data in the BoxPlotter class.
def ndnQ(M6ru, zdjd): ACia = M6ru.plot_hues is None and zdjd or zdjd[0] d6pt = M6ru.group_names.index(ACia) M1Tt = M6ru.plot_data[d6pt] if M6ru.plot_hues is None: LzmR = SF18(M1Tt) else: PWPc = zdjd[1] mJlq = M6ru.plot_hues[d6pt] == PWPc LzmR = SF18(M1Tt[mJlq]) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ndnQ(e41y, zdjd):\n if e41y.plot_hues is None:\n ACia = zdjd\n else:\n ACia = zdjd[0]\n Hafq = zdjd[1]\n YRbF = e41y.group_names.index(ACia)\n M1Tt = e41y.plot_data[YRbF]\n if e41y.plot_hues is None:\n LzmR = SF18(M1Tt)\n else:\n PWPc = Hafq\n mJlq = ...
[ "0.7350474", "0.6570967", "0.6274053", "0.6272692", "0.620959", "0.6170284", "0.61481154", "0.61245245", "0.61187625", "0.61031437", "0.60370433", "0.60093087", "0.60068536", "0.59949404", "0.59915596", "0.5977292", "0.59657663", "0.5954727", "0.5945718", "0.5943863", "0.5939...
0.7223626
1
Convert MySQLspecific datatypes to "normal" Python types. If there are any C{array} instances in the row, convert them to strings.
def Awe2(rdlD): for BWXx in rdlD: if isinstance(BWXx, qw7D): yield BWXx.tostring() else: yield BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fgfy(rdlD, MXrG):\n if MXrG and len(MXrG) > len(rdlD):\n rdlD = list(rdlD) + [None] * (len(MXrG) - len(rdlD))\n if MXrG:\n oAiD = (nhwL(wEf2, p179) for wEf2, p179 in zip(rdlD, MXrG))\n else:\n oAiD = (nhwL(wEf2) for wEf2 in rdlD)\n return '(' + ','.join(oAiD) + ')'", "def IU8...
[ "0.71294564", "0.682963", "0.6805082", "0.67033935", "0.6655148", "0.6649917", "0.6596365", "0.65847677", "0.65732324", "0.6559034", "0.65131724", "0.63959706", "0.6367985", "0.6335163", "0.6307008", "0.62855697", "0.6283903", "0.6279778", "0.62760454", "0.62687916", "0.61927...
0.5949911
37
Attach a text label above each bar in rects, displaying its height. xpos indicates which side to place the text w.r.t. the center of the bar. It can be one of the following {'center', 'right', 'left'}.
def siQ4(j8aQ, QzhK='center'): fUKV = {'center': 'center', 'right': 'left', 'left': 'right'} vgXP = {'center': 0, 'right': 1, 'left': -1} for mawX in j8aQ: H2v2 = mawX.get_height() aNZO.annotate('{}'.format(H2v2), xy=(mawX.get_x() + mawX.get_width() / 2, H2v2), xytext=(vgXP[QzhK] * 3, 3), te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def siQ4(j8aQ, QzhK='center'):\n fUKV = {'center': 'center', 'right': 'left', 'left': 'right'}\n vgXP = {'center': 0, 'right': 1, 'left': -1}\n for mawX in j8aQ:\n H2v2 = mawX.get_height()", "def siQ4(j8aQ, QzhK='center'):\n fUKV = {'center': 'center', 'right': 'left', 'left': 'right'}\n vg...
[ "0.7801858", "0.7801858", "0.7789727", "0.7675437", "0.7666545", "0.76570404", "0.7625504", "0.76203144", "0.76165307", "0.7601624", "0.7600658", "0.7599801", "0.7587432", "0.7587432", "0.7586343", "0.7560005", "0.75552636", "0.75470203", "0.75470203", "0.75470203", "0.748794...
0.7184375
91
Return the user with the corresponding email
def TKWP(D3lj: str, NCls: Session=None) -> h8nf[mv1M]: if NCls is None: with SV76() as NCls: return NCls.query(mv1M).filter(mv1M.email == D3lj).first() else: return NCls.query(mv1M).filter(mv1M.email == D3lj).first()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(Emd4, D3lj: str):\n for CBIr in Emd4.users:\n if CBIr.email == D3lj:\n return CBIr", "def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()", "def CYTf(Emd4, D3lj):\n for hbFX in NCls.users:\n CBIr = NCls.users.get(hbFX)\n ...
[ "0.8785849", "0.8694889", "0.8608087", "0.8578632", "0.84426045", "0.83806694", "0.82607645", "0.8238246", "0.8221889", "0.8210654", "0.8207552", "0.8207552", "0.8189662", "0.81896085", "0.8182191", "0.8170786", "0.8158845", "0.8139908", "0.8139908", "0.8139908", "0.81347567"...
0.0
-1
Generate and return the currently available prediction model. Model may be `None` if there is no currently available model.
def C3ST(YKHO) -> h8nf[FIPG]: _mSQ = YKHO.get_weights_path() qvIa = YKHO._paths['anchors_file'] KndY = YKHO._paths['classes_file'] C3ST = None if all((Hy7s.path.exists(pmON) for pmON in (qvIa, KndY))): C3ST = FIPG(_mSQ, qvIa, KndY, YKHO.settings) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrZb(Emd4):\n if Emd4.model == None:\n oybv = Hy7s.path.join(uqvc, 'prediction-model.h5')\n if Hy7s.path.exists(oybv):\n Emd4.model = uyMl(oybv)\n Emd4.graph = ZylS.compat.v1.get_default_graph()\n else:\n print('Model not found.')\n return Emd4.model"...
[ "0.78977424", "0.72330254", "0.6993497", "0.6966334", "0.69382274", "0.68390286", "0.67286164", "0.6702096", "0.6679088", "0.6673957", "0.665223", "0.6633696", "0.6633299", "0.6627479", "0.66264373", "0.6618601", "0.6616421", "0.6606651", "0.6585307", "0.6583071", "0.65638363...
0.6287979
46
Get the path to most uptodate weights associated with this trainer.
def n5PV(YKHO) -> str: deXY = Hy7s.listdir(YKHO._paths['checkpoint_folder']) if 'checkpoint' in deXY: deXY.remove('checkpoint') islL = [] for vauY in deXY: try: islL.append((vauY, int(vauY.split('_')[5]))) except ValueError: continue if islL: r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n5PV(YKHO):\n return Hy7s.path.join(YKHO.job_dir, 'frozen_model.pb')", "def aTx9(V1C0):\n V1C0 = Hy7s.path.abspath(V1C0)\n GGiM = SC2F.glob(Hy7s.path.join(V1C0, '*', '*.pth'), recursive=True)\n ZjUl = []\n for BZEu in GGiM:\n r8hN = ZbWC.search('.*[0-9]+-best.pth', BZEu)\n if r8h...
[ "0.68549114", "0.6750769", "0.6665765", "0.6568748", "0.6523898", "0.6440437", "0.635871", "0.622342", "0.615257", "0.613033", "0.61030954", "0.61030954", "0.60708195", "0.60708195", "0.606838", "0.6063748", "0.60543525", "0.604756", "0.60028505", "0.60028505", "0.60019374", ...
0.7428275
0
String for representing the Model object.
def zAg0(YKHO): return YKHO.name
{ "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 oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--...
[ "0.81885296", "0.8092215", "0.79587615", "0.7848622", "0.7839469", "0.76655394", "0.75757945", "0.75660306", "0.7560155", "0.7548143", "0.7483473", "0.7464744", "0.74516714", "0.74516714", "0.74475425", "0.74459755", "0.74459755", "0.74459755", "0.74117213", "0.74064744", "0....
0.0
-1
Returns the url to access a detail record for this patient.
def hlzF(YKHO): return gxEw('patient_detail', args=[str(YKHO.identity_card_number)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bD7m(YKHO):\n bD7m = dDl6 + UtR2['detailed_notes'].format(version=vp8q, investor_id=YKHO._investor_id)\n return bD7m", "def iLuo(YKHO):\n raise NotImplementedError('Please define a detail_url fixture')", "def IxeK(YKHO):\n return gxEw(YKHO._meta.db_table + '-detail', args=[YKHO.pk])", "def TH...
[ "0.73000354", "0.7275384", "0.70334107", "0.6868209", "0.675119", "0.6642986", "0.6540212", "0.6497499", "0.646559", "0.64446336", "0.6366745", "0.6358225", "0.6342576", "0.62686336", "0.62557185", "0.6213006", "0.6181913", "0.61637163", "0.6162336", "0.6159948", "0.61485106"...
0.7369959
0
Handles errors during parsing. Aborts the current HTTP request and responds with a 422 error.
def Dj64(YKHO, P1dF: ma.ValidationError, qv1X: flask.Request, uPxI: ma.Schema, *, mTk9: int | None, RPxt: typing.Mapping[str, str] | None) -> laHg.NoReturn: JBvl: int = mTk9 or YKHO.DEFAULT_VALIDATION_STATUS eTsH(JBvl, exc=P1dF, messages=P1dF.messages, schema=uPxI, headers=RPxt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def un4b(XObx):\n eTsH(422, errors=XObx.messages)", "def un4b(XObx):\n eTsH(422, errors=XObx.messages)", "def un4b(XObx, qv1X, uPxI, *, mTk9, RPxt):\n eTsH(mTk9, errors=XObx.messages)", "def un4b(XObx, qv1X, uPxI, *, mTk9, RPxt):\n eTsH(mTk9, errors=XObx.messages)", "def Y1ZN(tTpl):\n return...
[ "0.799546", "0.799546", "0.72664225", "0.7246843", "0.6942318", "0.67530185", "0.6606251", "0.65918946", "0.6576525", "0.65717053", "0.6564749", "0.65132785", "0.6391127", "0.6381484", "0.6381484", "0.6381484", "0.6378029", "0.63537455", "0.63355786", "0.63104755", "0.6296262...
0.58471835
77
Load a persisted model from a server.
async def load_from_server(YWSi: 'Agent', wVoD: EndpointConfig) -> 'Agent': await VXiT(wVoD, YWSi) wojS = wVoD.kwargs.get('wait_time_between_pulls', 100) if wojS: await E0Kl(wVoD, int(wojS), YWSi) return YWSi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def load_model():\n SK1h.instance().fetch_model()\n LX4I()", "def O5RJ(YKHO):\n pmON = YKHO._get_model_path()\n with open(pmON, 'rb') as eHNT:\n C3ST = t2lc.load(eHNT)\n YKHO._set_model(model=C3ST)", "def uyMl(YKHO, Ux0P=None):\n eG0V = PSrQ().params['model_dir']\n ZGE9 = PSrQ...
[ "0.685921", "0.6814461", "0.6727475", "0.67269886", "0.67022705", "0.66980875", "0.66980875", "0.66980875", "0.66980875", "0.66902584", "0.6679774", "0.66414887", "0.6615298", "0.6550318", "0.6541147", "0.6540362", "0.6540362", "0.6531175", "0.65296936", "0.64901036", "0.6478...
0.6379292
26
Load the persisted model into memory and set the model on the agent.
def i2s_(YWSi: 'Agent', FNZv: Text, s7Zb: Text): bo34.debug('Found new model with fingerprint {}. Loading...'.format(s7Zb)) V850, WZOd = Z2Dj(FNZv) if WZOd: from rasa.core.interpreter import RasaNLUInterpreter mh5P = RasaNLUInterpreter(model_directory=WZOd) else: mh5P = YWSi.inte...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(YKHO):\n YKHO._model_handler.load()\n YKHO.model = YKHO._model_handler.model", "def tyeH(YKHO):\n YKHO.model = wOed.load_from_file(Hy7s.path.join(YKHO.scenario.data_dir, YKHO.model_file))", "def JCnN(YKHO, uqvc):\n YKHO.local_actor_network.load_state_dict(ht2j.load(uqvc))", "def O5RJ(YKH...
[ "0.75157386", "0.73734057", "0.73324126", "0.72737026", "0.7247169", "0.7196448", "0.70871186", "0.7062047", "0.7062047", "0.7062047", "0.7062047", "0.70276284", "0.69953156", "0.69878536", "0.6954906", "0.69340193", "0.6898378", "0.6866912", "0.6847787", "0.6847167", "0.6838...
0.70264846
12
Load a persisted model from the passed path.
def tyeH(Emd4, uqvc: Text, mh5P: Optional[NaturalLanguageInterpreter]=None, c2Yh: Union[EndpointConfig, NaturalLanguageGenerator]=None, yOMC: Optional[TrackerStore]=None, k1hP: Optional[EndpointConfig]=None, wVoD: Optional[EndpointConfig]=None, V6_Z: Optional[Text]=None) -> 'Agent': try: if not uqvc: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)", "def uyMl(YKHO, pmON):\n pmON = oAb3.Path(pmON)\n with pmON.open('rb') as eHNT:\n return t2lc.load(eHNT)", "def uyMl(pmON):\n with open(pmON, 'rb') as eHNT:\n return t2lc.load(eHNT)", "def O5RJ(Emd4, uqvc):\n pass", "def O5RJ(YK...
[ "0.851878", "0.82576954", "0.81131464", "0.80904466", "0.80558985", "0.80263793", "0.79941726", "0.79756147", "0.794427", "0.7930896", "0.791991", "0.7908472", "0.7883284", "0.77819955", "0.7761047", "0.77498233", "0.7743574", "0.773763", "0.7737569", "0.77336395", "0.7728156...
0.0
-1
Persists this agent into a directory for later loading and usage.
def FAgT(YKHO, uqvc: Text, tOYe: bool=False) -> None: if not YKHO.is_ready(): raise ex_R("Can't persist without a policy ensemble.") if not uqvc.endswith('core'): uqvc = Hy7s.path.join(uqvc, 'core') YKHO._clear_model_directory(uqvc) YKHO.policy_ensemble.persist(uqvc, tOYe) YKHO.domai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def trFf(YKHO, AGPF: str, Ux0P: str=None, SoO3: bool=False):\n YKHO._agent.save(directory=AGPF, filename=Ux0P, append_timestep=SoO3)", "def trFf(YKHO, pmON):\n if Hy7s.path.isfile(pmON):\n Hy7s.remove(pmON)\n eHNT = open(pmON, 'wb')\n t2lc.dump(YKHO, eHNT)\n eHNT.close()", "def xkzz(YKHO,...
[ "0.71631485", "0.7146662", "0.6537508", "0.6531802", "0.653094", "0.64600056", "0.640454", "0.63917303", "0.6356483", "0.63069344", "0.6304527", "0.6290993", "0.62685776", "0.625904", "0.62051076", "0.62051076", "0.6179937", "0.6175277", "0.61727124", "0.6170094", "0.6151884"...
0.0
-1
Exits if regex string has unescaped backslash.
def rh5I(): _p0K = c4EF('1', 'N\\OW', 'a.txt', 'a.txt', '0') with trZe.raises(SystemExit): _p0K._coerce_source_matchpattern_as_compiled_regex()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LXfj():\n _p0K = c4EF('1', 'N\\\\OW', 'a.txt', 'a.txt', '0')\n with trZe.raises(SystemExit):\n _p0K._coerce_source_matchpattern_as_compiled_regex()", "def q1T3(YKHO, njyT):\n if len(njyT) > 1:\n if njyT[:1] == '\\\\':\n YKHO.escape = True\n return True\n return...
[ "0.7604191", "0.7375863", "0.6819883", "0.6679219", "0.6483742", "0.6462795", "0.6462795", "0.63556606", "0.63143045", "0.6269905", "0.6222405", "0.61739856", "0.6140917", "0.61266327", "0.59711987", "0.58774084", "0.5827596", "0.57757145", "0.5759841", "0.5739748", "0.572151...
0.76928174
0
Produces an error message detailing the issue with the update text received. If the attribute has specific choices the user must select from, they will be included for reference.
def format(YKHO): mWFP = BfDw.get_message('attribute_name', YKHO.attribute.key().name(), 'en') tf1m = iKhU[YKHO.attribute.type] % {'attribute': mWFP} if not YKHO.attribute.values: return tf1m tf1m += '\n' xAU6 = '-- ' + bGrB('Accepted values are: ') YKHO.attribute_choices = [wyyA.MAIL_UP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(QdZT, QpfX):\n QdZT.message.reply_text('Please correct your link. Keep calm and wait our server work on it')\n bo34.warning('Update \"%s\" caused error \"%s\"', QdZT, QpfX.error)", "def cFjh():\n return FfPL('I didn\\'t understand the text. When you go to work or go home, Please select the appr...
[ "0.64941746", "0.62723875", "0.61698663", "0.61476016", "0.6115335", "0.60984474", "0.60256314", "0.5999408", "0.5999408", "0.5999408", "0.5999408", "0.5999408", "0.5992614", "0.5992614", "0.5992614", "0.5969053", "0.5969053", "0.5951974", "0.59467685", "0.59455836", "0.59366...
0.7195545
0
Return True if a Docker container is failed state. Return a coroutine.
def QgT2(YKHO) -> ld92[bool]: return YKHO.instance.is_failed()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JTUc(YKHO, *M56f, **jwjR):\n if not YKHO.docker_exec_is_running:\n YKHO.docker_exec_is_running = True\n return {'Running': False, 'ExitCode': 1}\n return {'Running': YKHO.docker_exec_is_running, 'ExitCode': 0}", "def Ef7N(G1wx, vYBr=60):\n wzkt = ITS7.time()\n while True:\n t...
[ "0.6649083", "0.6519767", "0.64125377", "0.63029", "0.61595535", "0.6152918", "0.6124764", "0.6070477", "0.6046467", "0.60169166", "0.5986881", "0.5986881", "0.5986881", "0.5986881", "0.5986881", "0.5986881", "0.59767765", "0.59618723", "0.59591955", "0.5957344", "0.5931966",...
0.6804208
0
Return True if a task is in progress.
def jh3o(YKHO) -> bool: return YKHO.instance.in_progress or YKHO.lock.locked()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jh3o(YKHO):\n return YKHO.status == YKHO.STATUS_IN_PROGRESS", "def WTIh(YKHO) -> bool:\n return YKHO._task is not None and (not YKHO._task.done())", "def jh3o(YKHO) -> bool:\n return YKHO.instance.in_progress", "def MGJC(YKHO):\n return YKHO.task is not None and YKHO.task.done()", "def ONrB...
[ "0.786417", "0.78004307", "0.7723121", "0.768489", "0.7657471", "0.7627158", "0.761819", "0.7588294", "0.75772893", "0.74918485", "0.7446237", "0.7354806", "0.7354076", "0.7307503", "0.73036194", "0.72710127", "0.72689956", "0.72259676", "0.7181568", "0.7135558", "0.70971346"...
0.7717069
3
add a node to the graph
def xI_H(pNZh, bTKY, roZo, ItOE): dJ1p = bTKY.tags if x7sI(dJ1p): ItOE.add(str(dJ1p['id'][0])) return Lnes = str(dJ1p['id'][0]) pNZh.add_node(Lnes) tMna(roZo, dJ1p, Lnes) uuHB(pNZh, Lnes, dJ1p) if 'is_a' in dJ1p: for kNzm in dJ1p['is_a']: kNzm = str(kNzm) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5gD(YKHO, Q6kx):\n YKHO.graph[Q6kx]", "def Tq4U(YKHO):\n YKHO._graph.add_node(YKHO)", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.add(Q6kx)", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6k...
[ "0.9113246", "0.83983886", "0.8390118", "0.83579123", "0.82806575", "0.82806575", "0.82666874", "0.8198585", "0.8196292", "0.8196292", "0.8159617", "0.81108505", "0.8104088", "0.8098007", "0.8085649", "0.80821085", "0.8042787", "0.80223143", "0.80113375", "0.7992667", "0.7992...
0.0
-1
Store the bounds (as l,b,r,t in an array), xdensity, and ydensity. If ydensity is not specified, it is assumed that the specified xdensity is nominal and that the true xdensity should be calculated. The top and bottom bounds are adjusted so that the ydensity is equal to the xdensity. If both xdensity and ydensity are s...
def FIMM(YKHO, X7zS, qWs_, BxVB=None): if not BxVB: X7zS, qWs_ = YKHO.__equalize_densities(X7zS, qWs_) YKHO.bounds = X7zS YKHO.__set_xdensity(qWs_) YKHO.__set_ydensity(BxVB or qWs_) YKHO.lbrt = oyIN.array(X7zS.lbrt()) J1b4, CYjz, dg7v, iYf1 = gQ31._boundsspec2slicespec(YKHO.lbrt, YKHO) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JqPU(YKHO, Pe9P, bwAp):\n LFlW, es2x, _tIi, tlxW = Pe9P.lbrt()\n TVTK, H2v2 = (_tIi - LFlW, tlxW - es2x)\n fXzF = es2x + H2v2 / 2.0\n lhKO = int(bwAp * TVTK) / float(TVTK)\n abJR = round(H2v2 * lhKO, 0)\n dCiC = abJR / lhKO / 2.0\n return (R6EX(points=((LFlW, fXzF - dCiC), (_tIi, fXzF + dC...
[ "0.59946924", "0.59408677", "0.5801845", "0.5644687", "0.56299", "0.5481752", "0.5385656", "0.5357773", "0.5344614", "0.5318684", "0.52948606", "0.52948606", "0.52906555", "0.52864593", "0.5260749", "0.52202046", "0.5214401", "0.5211775", "0.5208581", "0.5208569", "0.5206027"...
0.68108225
0
Convert a point (x,y) in sheet coordinates to the integer row and column index of the matrix cell in which that point falls, given a bounds and density. Returns (row,column). Note that if coordinates along the right or bottom boundary are passed into this function, the returned matrix coordinate of the boundary will be...
def mKyL(YKHO, WKvO, LVAh): Mkmy, Z9rn = YKHO.sheet2matrix(WKvO, LVAh) Mkmy = oyIN.floor(Mkmy) Z9rn = oyIN.floor(Z9rn) if hasattr(Mkmy, 'astype'): return (Mkmy.astype(int), Z9rn.astype(int)) else: return (int(Mkmy), int(Z9rn))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnPE(YKHO, WKvO, LVAh):\n if WKvO < YKHO.xmin or LVAh < YKHO.ymin or WKvO > YKHO.xmax or (LVAh > YKHO.ymax):\n raise ValueError('Outside extent')\n fvDH = int((WKvO - YKHO.xmin) / YKHO.cellsize)\n rdlD = YKHO.nrows - int(lO1m((LVAh - YKHO.ymin) / YKHO.cellsize))\n if rdlD == YKHO.nrows:\n ...
[ "0.6727332", "0.65597945", "0.6556228", "0.6509573", "0.6347854", "0.6201617", "0.6160775", "0.61521614", "0.61333567", "0.61258674", "0.6097002", "0.6094641", "0.6091578", "0.6091578", "0.6091578", "0.60833806", "0.6059867", "0.6023791", "0.6020571", "0.59889054", "0.5965127...
0.6069537
16
Return x,y where x is a vector of sheet coordinates representing the xcenter of each matrix cell, and y represents the corresponding ycenter of the cell.
def MAwo(YKHO): usx6, WfCS = YKHO.shape return YKHO.matrixidx2sheet(oyIN.arange(usx6), oyIN.arange(WfCS))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZfx(rdlD, fvDH, RoH9, qn8i, dNbc, PX5t, HN6s, co3n):\n WKvO = RoH9 + 0.5 * dNbc + fvDH * dNbc\n LVAh = qn8i - 0.5 * PX5t - (HN6s - rdlD - 1) * PX5t\n return (WKvO, LVAh)", "def Mcvp(YKHO, r8hN, exwG):\n r8hN -= 1\n exwG -= 1\n WKvO = YKHO.cell_center_x[exwG, r8hN]\n LVAh = YKHO.cell_cen...
[ "0.7812797", "0.7556166", "0.7302022", "0.72839516", "0.7184032", "0.71631134", "0.7001658", "0.6998916", "0.69748515", "0.6969273", "0.69398284", "0.69398284", "0.6923923", "0.69119734", "0.68811226", "0.68704724", "0.6848402", "0.6838186", "0.68189764", "0.6814677", "0.6809...
0.65512794
56
Return the submatrix of the given matrix specified by this slice. Equivalent to computing the intersection between the SheetCoordinateSystem's bounds and the bounds, and returning the corresponding submatrix of the given matrix. The submatrix is just a view into the sheet_matrix; it is not an independent copy.
def kOKZ(YKHO, SppC): return SppC[YKHO[0]:YKHO[1], YKHO[2]:YKHO[3]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F_cn(YKHO, r8hN, r0DR=True):\n jzdc = YKHO\n Fg_i = r8hN\n if jzdc.rows != Fg_i.rows or jzdc.cols != Fg_i.cols:\n raise ValueError('Matrixes not compatible')\n return jzdc.mapi(lambda geyT, Mkmy, Z9rn: geyT - Fg_i.data[Mkmy][Z9rn], r0DR)", "def VxBq(YKHO, tjUW):\n Csk6 = YKHO.d\n yKc...
[ "0.63707596", "0.61509544", "0.6004188", "0.5937686", "0.5909392", "0.5851451", "0.5807709", "0.5713953", "0.5679809", "0.5657891", "0.55551386", "0.5545732", "0.552299", "0.5507526", "0.5467711", "0.54524153", "0.5394608", "0.5353896", "0.5350373", "0.5331366", "0.5325997", ...
0.74735814
0
Offset the bounds_template to this cf's location and store the result in the 'bounds' attribute. Also stores the input_sheet_slice for access by C.
def VcUO(YKHO, WKvO, LVAh, mtnU): RsfA, YAcZ = mtnU.sheet2matrixidx(WKvO, LVAh) MyrF, Zb8I = YKHO.compute_bounds(mtnU).centroid() NLVG, mMV4 = mtnU.sheet2matrixidx(MyrF, Zb8I) RpYD = RsfA - NLVG Bovf = YAcZ - mMV4 YKHO.translate(RpYD, Bovf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmnP(YKHO, hksT=None):\n if hksT is None:\n return YKHO.bounds\n elif hksT >= 0 and hksT < 2 * YKHO.ndim:\n return YKHO.bounds[hksT]\n else:\n raise TypeError('loc must be None or an integer location')", "def J6HU(YKHO):\n VtxC = YKHO.pillar_bounds.index_select(dim=1, index=h...
[ "0.5561032", "0.5530855", "0.5522738", "0.55113953", "0.5509873", "0.548451", "0.54615575", "0.5451595", "0.5436131", "0.54252124", "0.54252124", "0.54120123", "0.53989816", "0.53964543", "0.53865814", "0.5370055", "0.53694695", "0.5350852", "0.5348285", "0.5348285", "0.53482...
0.0
-1
Convert an iterable boundsspec (supplying l,b,r,t of a BoundingRegion) into a Slice specification. Includes all units whose centers are within the specified sheetcoordinate bounds specified by boundsspec. Exact inverse of _slicespec2boundsspec().
def Ln70(q0lt, C5PG): vC9B, Fg_i, Mkmy, a1PO = q0lt I2_u, RHGA = C5PG.sheet2matrix(vC9B, a1PO) K6Uk, TqW3 = C5PG.sheet2matrix(Mkmy, Fg_i) vrVf = int(oyIN.ceil(RHGA - 0.5)) hGU7 = int(oyIN.ceil(I2_u - 0.5)) L4yN = int(oyIN.floor(TqW3 + 0.5)) Yt2B = int(oyIN.floor(K6Uk + 0.5)) return (hGU7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dkgQ(hFA4, C5PG):\n J1b4, CYjz, dg7v, iYf1 = hFA4\n LFlW, es2x = C5PG.matrix2sheet(CYjz, dg7v)\n _tIi, tlxW = C5PG.matrix2sheet(J1b4, iYf1)\n return ((LFlW, es2x), (_tIi, tlxW))", "def cmXe(X7zS, C5PG, iDHO):\n MTWm, Nb0L = X7zS.centroid()\n gWK1, g2gq = C5PG.shape\n N7RG, FTy5 = (gWK1 /...
[ "0.7527338", "0.64971495", "0.57072705", "0.5621642", "0.5570655", "0.5538405", "0.55277735", "0.5471295", "0.5453848", "0.5363763", "0.53615063", "0.53336245", "0.5325872", "0.5304041", "0.5298824", "0.52953357", "0.5268225", "0.52424747", "0.5197277", "0.5188336", "0.518208...
0.7498886
1
should not be able to retrieve a private community not member of post and return 400
def Dano(YKHO): CBIr = vbsz() MOPg = pNmI(CBIr) p3ae = vbsz() v7nJ = zmVP(creator=p3ae, type=icdm.COMMUNITY_TYPE_PRIVATE) m8z6 = p3ae.create_community_post(text=sLSo(), community_name=v7nJ.name) bD7m = YKHO._get_url(m8z6) geh0 = YKHO.client.get(bD7m, **MOPg) YKHO.assertEqual(geh0.status_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PnhB(YKHO):\n CBIr = vbsz()\n MOPg = pNmI(CBIr)\n p3ae = vbsz()\n v7nJ = zmVP(creator=p3ae)\n m8z6 = p3ae.create_community_post(text=sLSo(), community_name=v7nJ.name)\n bD7m = YKHO._get_url(m8z6)\n geh0 = YKHO.client.get(bD7m, **MOPg)\n YKHO.assertEqual(jGRS.HTTP_200_OK, geh0.status_cod...
[ "0.7420087", "0.72040844", "0.7048639", "0.69121414", "0.66686386", "0.65553635", "0.651608", "0.6479193", "0.6448224", "0.64227474", "0.63722587", "0.62322056", "0.6150891", "0.6144041", "0.61232024", "0.61199176", "0.6117432", "0.6102294", "0.60626495", "0.60427505", "0.600...
0.7859104
0
should not be able to retrieve a post from a blocked user and return 400
def brc3(YKHO): CBIr = vbsz() klKz = vbsz() MOPg = pNmI(CBIr) m8z6 = klKz.create_public_post(text=sLSo()) CBIr.block_user_with_id(user_id=klKz.pk) bD7m = YKHO._get_url(m8z6) geh0 = YKHO.client.get(bD7m, **MOPg) YKHO.assertEqual(jGRS.HTTP_400_BAD_REQUEST, geh0.status_code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kTvn(YKHO):\n CBIr = vbsz()\n klKz = vbsz()\n MOPg = pNmI(CBIr)\n m8z6 = klKz.create_public_post(text=sLSo())\n klKz.block_user_with_id(user_id=CBIr.pk)\n bD7m = YKHO._get_url(m8z6)\n geh0 = YKHO.client.get(bD7m, **MOPg)\n YKHO.assertEqual(jGRS.HTTP_400_BAD_REQUEST, geh0.status_code)", ...
[ "0.7625683", "0.7021494", "0.6774817", "0.6774817", "0.6774817", "0.6774817", "0.6774817", "0.6774817", "0.6774817", "0.6774817", "0.67250013", "0.66417456", "0.66330963", "0.6599517", "0.65957135", "0.65468943", "0.65460086", "0.6524321", "0.6509944", "0.65087897", "0.650433...
0.7863384
0