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
Returns the WA status of this Nation
def lwoF(YKHO) -> str: return YKHO.shards('wa')['unstatus']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EloR(YKHO):\n return YKHO._get_attribute('status')", "def QTBn(YKHO):\n return YKHO._attributes['status']", "def EloR(YKHO):\n return YKHO._get_attribute('status')", "def jGRS(YKHO):\n return pIqh[YKHO._get_property_(YKHO.STATUS).upper()]", "def VLTN(YKHO):\n jGRS = YKHO._status.get_mess...
[ "0.6768534", "0.66159433", "0.6612813", "0.6595363", "0.6521242", "0.65095884", "0.64661515", "0.64661515", "0.64661515", "0.64247304", "0.64232576", "0.6416275", "0.64156187", "0.63904196", "0.63889587", "0.63815165", "0.6381135", "0.637972", "0.63796276", "0.6375453", "0.63...
0.6774994
0
Retrieve the endorsements of this Nation.
def ZDrL(YKHO) -> a1PO.Sequence[str]: return YKHO.shards('endorsements')['endorsements'].split(',')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO) -> list:\n return YKHO.__expedition", "def mUrV(YKHO):\n YKHO.elements('organizations')", "def veZq(YKHO, *, NArs: Optional[dict]=None) -> 'resource_types.Organizations':\n return USaL.Organizations(YKHO.__requester).fetch(parameters=NArs)", "def mUrV(YKHO):\n return mUrV.Organizat...
[ "0.57103807", "0.5530545", "0.5396151", "0.53852755", "0.53021395", "0.51522493", "0.51458657", "0.5119742", "0.5107933", "0.5084954", "0.5053162", "0.50268716", "0.5008801", "0.4984235", "0.49156225", "0.4907943", "0.4894724", "0.48776197", "0.48706213", "0.48514825", "0.484...
0.7383385
0
Returns a RegionStandard object for this Region
def Iyvg(YKHO) -> opqu: return opqu.from_xml(JuSj(YKHO.requester.parameter_request(region=YKHO.name).text))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iyvg(YKHO) -> FDDl:\n return FDDl.from_xml(JuSj(YKHO.requester.parameter_request(nation=YKHO.name).text))", "def s5AZ(YKHO):\n jNOo = YKHO.convert_coords()\n RKD7.debug(jNOo)\n gAx4 = ['color', 'dash', 'dashlist', 'width', 'font', 'symsize', 'symbol', 'symsize', 'fontsize', 'fontstyle', 'usetex',...
[ "0.6719687", "0.62010175", "0.6193773", "0.60774535", "0.60255605", "0.6025188", "0.6010844", "0.5978403", "0.58916295", "0.5840244", "0.5840244", "0.5759149", "0.5727569", "0.5705467", "0.5638794", "0.56112015", "0.5607099", "0.55876106", "0.5585788", "0.55783194", "0.553535...
0.83791155
0
Return the pint Unit for the DataArray units.
def nfRl(BWXx: str) -> P6bq.Unit: def tSyl(KCHu): """Convert a CF-unit string to a pint expression.""" return ZbWC.subn('\\^?(-?\\d)', '**\\g<1>', KCHu)[0] BWXx = BWXx.replace('%', 'pct') try: return P6bq.parse_expression(BWXx).units except (R29p.UndefinedUnitError, R29p.Dimensi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eQAN(YKHO) -> int:\n return YKHO._unit * -1", "def B73r(YKHO):\n return YKHO.unit", "def b82i(YKHO):\n return YKHO.values.primary.units", "def b82i(YKHO):\n return YKHO._metadata[1]", "def N5uE(YKHO):\n return YKHO._data_array.values * rYO3(YKHO._units)", "def PXGI(YKHO):\n return Y...
[ "0.68680775", "0.68362236", "0.68282676", "0.6728184", "0.6618719", "0.66152424", "0.66152424", "0.6597463", "0.65777653", "0.65626305", "0.6561381", "0.65598136", "0.6549427", "0.64446604", "0.64446604", "0.64283067", "0.6406962", "0.6406943", "0.6363658", "0.6352449", "0.63...
0.0
-1
Returns value of this day playing time in seconds.
def gNd0(YKHO): if YKHO.isSessionStartedThisDay(): return YKHO.__stats.dailyPlayHours[0] + (ZKgB._g_instance.serverUTCTime - YKHO.__sessionStartedAt) else: return YKHO.__stats.dailyPlayHours[0] + ZKgB._g_instance.serverRegionalTime % 86400
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C6wh(YKHO):\n return int(YKHO)", "def W3xo(YKHO):\n return YKHO.t / YKHO.parameters['time_conversion']", "def C6wh(YKHO):\n return YKHO._seconds", "def C6wh(YKHO):\n return YKHO._seconds", "def C6wh(YKHO):\n Os4s = YKHO.end or rIAI.now()\n Aofo = Os4s - YKHO.start\n return Aofo.sec...
[ "0.7637468", "0.7599187", "0.7450755", "0.7450755", "0.7437828", "0.7405899", "0.7378319", "0.7326289", "0.7312681", "0.72954136", "0.7256252", "0.72547185", "0.7182789", "0.7169003", "0.71615976", "0.7148273", "0.7094757", "0.7086902", "0.69782484", "0.6930842", "0.6856224",...
0.0
-1
Returns value of this week playing time in seconds.
def faWB(YKHO): rN37 = edaL.player().serverSettings['regional_settings'] tK0t = EJln.currentWeekPlayDaysCount(ZKgB._g_instance.serverUTCTime, rN37['starting_time_of_a_new_day'], rN37['starting_day_of_a_new_week']) return YKHO._getDailyPlayHours() + sum(YKHO.__stats.dailyPlayHours[1:tK0t])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W3xo(YKHO):\n return YKHO.t / YKHO.parameters['time_conversion']", "def m7L9(YKHO) -> float:\n return YKHO.player.time", "def C6wh(YKHO):\n return int(YKHO)", "def m7L9(YKHO):\n return YKHO.get_timed() / 10.0", "def C6wh(YKHO):\n Os4s = YKHO.end or rIAI.now()\n Aofo = Os4s - YKHO.star...
[ "0.7146427", "0.7135009", "0.7089977", "0.70859027", "0.68732214", "0.68485093", "0.68389714", "0.68237275", "0.68191594", "0.6696634", "0.66958416", "0.6675241", "0.6675241", "0.667416", "0.6672201", "0.6667377", "0.6652159", "0.66350937", "0.6632533", "0.6626778", "0.660061...
0.60451084
97
Get the current system configuration.
def OmC7(YKHO): YKHO.get_hugepages() YKHO.get_devices_per_node() YKHO.get_cpu() YKHO.get_grub()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPtr(YKHO):\n return YKHO[OtOl]", "def tgzD():\n return DVw1", "def tgzD():\n return X8Rg", "def tgzD(YKHO):\n return YKHO.config", "def zoFt(YKHO):\n return YKHO.config", "def tgzD():\n return viqz", "def wLv7(YKHO):\n return YKHO.__config", "def wLv7(YKHO):\n return YKHO...
[ "0.75642705", "0.74617445", "0.74575794", "0.74097395", "0.73682487", "0.73081577", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521", "0.7296521...
0.0
-1
Prepare dataset for training Args
def cto2(mWFP, HfII, Ep8u=32): SZFh = Ymkf.Compose([Ymkf.RandomResizedCrop(size=HfII, interpolation=3), Ymkf.ColorJitter(brightness=1.5, saturation=1.5, hue=0.2), Ymkf.RandomVerticalFlip(), Ymkf.ToTensor()]) pmON = GPtr.datasets[mWFP] if mWFP == 'coco': nhK8 = Qon4(root=pmON['train_imgs'], annFile=p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s759(qIxc):\n __n6 = nPrm.Dataset(qIxc)\n ecF5 = __n6.get_class_info()\n y6i2 = len(list(ecF5.values()))\n GVWp, af07 = __n6.split_dataset()\n UiEM = TR5M.Augmentation(qIxc)\n cZp7, bGrB = UiEM.map_fn_train(GVWp)\n PnGp, bGrB = UiEM.map_fn_test(af07)\n return (cZp7, PnGp, GVWp, af07, y6...
[ "0.7830734", "0.7599146", "0.7502297", "0.74156016", "0.736024", "0.7244582", "0.7243371", "0.71790385", "0.71667564", "0.7094238", "0.7058129", "0.70443743", "0.70266944", "0.6967939", "0.69281125", "0.691767", "0.6906663", "0.67141515", "0.6709303", "0.67014843", "0.6661476...
0.6699363
20
Fetch a database object via SQLAlchemy.
def XIcr(Emd4: ClassVar, TBsA: Any): if TBsA is None: ZfUD = None elif isinstance(TBsA, Emd4): ZfUD = TBsA elif isinstance(TBsA, cuzp): if 'id' not in TBsA: raise AttributeError(f'id not found in {TBsA}') id = TBsA['id'] ZfUD = omlT.query(Emd4).filter(Emd4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n try:\n NCls = LmBZ()\n UzPC = NCls.connect()\n UzPC.get(YKHO)\n except Exception as e:\n raise tTpl\n finally:\n NCls.dispose()", "async def get_object(w2B8: Database, xDcj):\n return await w2B8.fetch_one(query=xDcj)", "def KnZy(YKHO):\n pass"...
[ "0.66394883", "0.6494628", "0.6488872", "0.6354728", "0.63217825", "0.6317714", "0.6315808", "0.6301033", "0.62401026", "0.61215943", "0.6114903", "0.6085064", "0.6078507", "0.6056773", "0.6051809", "0.6050493", "0.60407203", "0.6038177", "0.5998006", "0.5951702", "0.5950476"...
0.58528817
29
Converts pendulum.DateTime into UTC object.
def krxq(YEnM: Union[None, pendulum.DateTime, str]) -> uLKX[t_XE.DateTime, None]: if isinstance(YEnM, t_XE.DateTime): return YEnM.in_tz(tz='UTC') elif isinstance(YEnM, str): JRYC = t_XE.parse(YEnM) return JRYC.in_tz(tz='UTC') elif YEnM is None: return None raise ValueErro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S0gT(JRYC):\n if JRYC.tzinfo is None:\n return JRYC.replace(tzinfo=FXGE.utc)\n else:\n return JRYC.astimezone(FXGE.utc)", "def S0gT(JRYC):\n Z2iF = ITS7.gmtime(ITS7.mktime(JRYC.timetuple()))\n return qcWV.datetime(*Z2iF[0:6])", "def s6Dy(JRYC: datetime) -> qcWV:\n if JRYC.tzinf...
[ "0.7058922", "0.6929302", "0.6916029", "0.69072026", "0.69072026", "0.69072026", "0.6862562", "0.6781867", "0.6724737", "0.6719598", "0.66437215", "0.66362655", "0.6619136", "0.6617206", "0.66142446", "0.6612627", "0.6608694", "0.66086143", "0.6606972", "0.6591908", "0.655125...
0.6904978
6
Computes the area of all the boxes.
def f0tD(YKHO) -> ht2j.Tensor: FlUN = YKHO.tensor f0tD = (FlUN[:, 2] - FlUN[:, 0]) * (FlUN[:, 3] - FlUN[:, 1]) return f0tD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ab__(oUSw):\n return (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])", "def ab__(oUSw):\n return (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])", "def f0tD(oUSw):\n KDmU, wBZN, rwK9, re6M = oyIN.split(oUSw, 4, axis=-1)\n return oyIN.squeeze((rwK9 - KDmU) * (re6M - wBZN), [1])", "...
[ "0.8266955", "0.8266955", "0.8206058", "0.810532", "0.8051263", "0.8033477", "0.7974076", "0.7853367", "0.7848972", "0.7678939", "0.7502243", "0.7421511", "0.7391133", "0.7330886", "0.7318793", "0.7096697", "0.7093503", "0.700362", "0.6956545", "0.69442", "0.6927992", "0.69...
0.6755678
52
Yield a box as a Tensor of shape (4,) at a time.
def Vs4Q(YKHO) -> bDy6[ht2j.Tensor]: yield from YKHO.tensor
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GkaY(YKHO):\n nV4U = []\n for ABDL in range(YKHO.min_level, YKHO.max_level + 1):\n ilUM = []\n for NXpY in range(YKHO.num_scales):\n for pAIe in YKHO.aspect_ratios:\n _0fC = 2 ** ABDL\n mqIS = 2 ** (NXpY / float(YKHO.num_scales))\n rjV...
[ "0.61383086", "0.5893003", "0.57934636", "0.57829696", "0.5607248", "0.55552095", "0.55450976", "0.5522797", "0.5506475", "0.54854673", "0.5443636", "0.54247755", "0.53750414", "0.53389025", "0.5314383", "0.52964604", "0.52817273", "0.5270994", "0.5262272", "0.5258326", "0.52...
0.53918827
12
Constructor. Initializes the NmTensorNameRegistry. Reserves the default 'loss' name.
def FIMM(YKHO): YKHO._nmtensor_naming_dict = {'loss': 'loss'} YKHO._nmtensor_uniname_dict = reoY()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZP63(YKHO):\n with ZylS.device('/cpu:0'):\n with ZylS.name_scope('loss'):\n YKHO.loss = ZylS.reduce_mean(ZylS.nn.softmax_cross_entropy_with_logits(labels=YKHO.labels_placeholder, logits=YKHO.logits, name='loss'))", "def R2D7(YKHO) -> None:\n xZkh = ZylS.one_hot(YKHO.labels, depth=QyXt...
[ "0.65355325", "0.65201133", "0.63662857", "0.6132207", "0.60445815", "0.57616985", "0.5706666", "0.5700148", "0.56841266", "0.5633543", "0.55858916", "0.55806524", "0.5580387", "0.55500937", "0.5546574", "0.5532835", "0.55298525", "0.5498791", "0.54704106", "0.54497975", "0.5...
0.7445258
0
Converts a container to a spaceseparated string.
def jP8T(vC9B): KCHu = '' for WKvO in vC9B: if len(KCHu) > 0: KCHu += ' ' KCHu += repr(WKvO) return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s6oG(NK1b, cU3O=' '):\n hlel = ''\n n294 = ''\n hlel += str(NK1b[0])\n n294 += cU3O\n for uDDx in range(1, len(NK1b)):\n hlel += n294\n hlel += str(NK1b[uDDx])\n return hlel", "def Xwve(aPd6):\n hlel = ''\n for KCHu in aPd6:\n hlel = hlel + KCHu\n return hlel",...
[ "0.5897939", "0.53247124", "0.53247124", "0.53247124", "0.53247124", "0.52949774", "0.52304965", "0.52141744", "0.5213261", "0.5177147", "0.5169006", "0.51510155", "0.5015278", "0.50122243", "0.49982578", "0.49942186", "0.49918306", "0.49903002", "0.49701023", "0.49693352", "...
0.6290015
0
r""" Return a string containing the Hrepresentation in cddlib's ine format.
def AsTg(qY49, fKLi, SQKm): fKLi = FVFe(fKLi) SQKm = FVFe(SQKm) mLGw, cBBh = JQY1(fKLi, SQKm) cBBh -= 1 KCHu = 'H-representation\n' if SQKm != None: assert len(SQKm) > 0 exwG = len(SQKm) KCHu += 'linearity ' + repr(exwG) + ' ' KCHu += jP8T(range(1, exwG + 1)) + '\...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AsTg(YKHO):\n return AsTg(YKHO._cdd_type, [YRbF for YRbF in YKHO.inequalities()], [tTpl for tTpl in YKHO.equation_generator()])", "def repr(YKHO, MKlR):\n return 1.0 - MKlR ** YKHO.ad", "def wHJl(YKHO):\n HHea = ' ' * 2\n if not hasattr(YKHO, 'hdu_list'):\n YKHO.update_hdu_list()\n sW...
[ "0.7025016", "0.6509633", "0.61850214", "0.60343915", "0.5896414", "0.5884374", "0.58490986", "0.5801519", "0.579693", "0.57903636", "0.57889706", "0.57822424", "0.5778333", "0.5774312", "0.5771136", "0.57658184", "0.5763383", "0.57500917", "0.5691204", "0.56693494", "0.56622...
0.7171033
0
Returns the length of the representation data.
def szAg(YKHO): return len(YKHO._representation_vector)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO) -> int:\n if YKHO.serialize_data:\n return len(YKHO.data_address)\n else:\n return len(YKHO.data_infos)", "def nWMf(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return len(YKHO.data)", "def u54L(YKHO):\n return...
[ "0.84285057", "0.84224397", "0.8306152", "0.8306152", "0.8306152", "0.8246603", "0.8228574", "0.81836927", "0.8140855", "0.80608314", "0.80348", "0.80348", "0.80348", "0.8022426", "0.8022426", "0.8007244", "0.79690796", "0.7964973", "0.7964973", "0.7964973", "0.7964973", "0...
0.0
-1
r""" Returns the coefficient vector `A` in `A\vec{x}+b`.
def k0lF(YKHO): return YKHO._representation_vector[1:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PmJa(YKHO):\n return oyIN.dot(YKHO.mmi, oyIN.dot(YKHO.mmatrix.T, YKHO.bvec))", "def GTTg(nJ9F, nxyw, o4D3, si3g):\n return -(si3g - nxyw) / (o4D3 - nJ9F)", "def JMlB(Cwt5, Ty9i, jzdc, Fg_i):\n return [Cwt5 * Ty9i[0], Cwt5 * Ty9i[0] * jzdc + Fg_i]", "def lE3i(nJ9F, nxyw, o4D3, si3g):\n return ...
[ "0.6487127", "0.6200018", "0.61887264", "0.6021786", "0.59536505", "0.59363806", "0.592247", "0.58880204", "0.5878437", "0.58377796", "0.58277684", "0.5805122", "0.57912624", "0.5781417", "0.5773192", "0.5772627", "0.5768203", "0.57543355", "0.57524586", "0.5750602", "0.57333...
0.0
-1
r""" Returns the constant `b` in `A\vec{x}+b`.
def Fg_i(YKHO): return YKHO._representation_vector[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzY3(B2C8):\n return B2C8 + 'x'", "def EWVv(WKvO, Fg_i):\n xS9P = 0\n for YRbF in enumerate(Fg_i):\n xS9P += YRbF[1] * WKvO ** YRbF[0]\n return xS9P", "def re0C(YKHO):\n return (YKHO.b_plus_bstar / YKHO.n_pos + YKHO.b_minus_bstar / YKHO.n_neg) / 2", "def mmAt(YKHO, WKvO):\n retur...
[ "0.60010844", "0.5991505", "0.59718937", "0.59611386", "0.58366007", "0.57271534", "0.5716266", "0.5657437", "0.56378216", "0.5630788", "0.56223536", "0.56185055", "0.55930847", "0.55581474", "0.55565435", "0.55104935", "0.5507975", "0.5502621", "0.5496439", "0.548395", "0.54...
0.0
-1
Returns a generator for the incident Hrepresentation objects, that is, the vertices/rays/lines satisfying the (in)equality.
def xDh8(YKHO): tclk = YKHO.polyhedron().incidence_matrix() for cAlv in YKHO.polyhedron().Vrep_generator(): if tclk[cAlv.index(), YKHO.index()] == 1: yield cAlv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ps5G(YKHO):\n for C7Ls in YKHO.Hrepresentation():\n if C7Ls.is_inequality():\n yield C7Ls", "def xDh8(YKHO):\n tclk = YKHO.polyhedron().incidence_matrix()\n for C7Ls in YKHO.polyhedron().Hrep_generator():\n if tclk[YKHO.index(), C7Ls.index()] == 1:\n yield C7Ls", ...
[ "0.77754116", "0.70151", "0.70151", "0.6561432", "0.6382605", "0.57893103", "0.5776602", "0.5748545", "0.5738079", "0.5737969", "0.5692339", "0.5682993", "0.5618389", "0.55782557", "0.54999983", "0.5489162", "0.54794776", "0.5414852", "0.5407021", "0.5407021", "0.5380062", ...
0.66648674
4
Returns True since this is, by construction, an inequality.
def rUyq(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return YKHO <= Elif and YKHO >= Elif", "def xa14(YKHO, Elif):\n return abs(YKHO - Elif) < 1e-09", "def xa14(YKHO, Elif: 'LTL'):\n if YKHO.formula == Elif.formula:\n return True\n Hi53 = YKHO >= Elif\n kgJr = YKHO <= Elif\n return Hi53 and kgJr", "def xa14(YKHO...
[ "0.73918694", "0.7246016", "0.71810424", "0.7138526", "0.7128823", "0.70941985", "0.69961643", "0.6971562", "0.6922299", "0.6922299", "0.6914022", "0.6906384", "0.6903671", "0.6885709", "0.68856484", "0.6867292", "0.68635046", "0.6863378", "0.6847223", "0.6829796", "0.6824519...
0.0
-1
Tests whether the halfspace (including its boundary) defined by the inequality contains the given vertex/ray/line.
def sjXf(YKHO, Ijh2): try: if Ijh2.is_vector(): return YKHO.polyhedron()._is_nonneg(YKHO.eval(Ijh2)) except AttributeError: pass if Ijh2.is_line(): return YKHO.polyhedron()._is_zero(YKHO.eval(Ijh2)) else: return YKHO.polyhedron()._is_nonneg(YKHO.eval(Ijh2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, zFiD):\n return abs(1 - oyIN.dot(vg0C.unitvec(YKHO.vec), vg0C.unitvec(zFiD.vec))) < 10 * UI67", "def HhQ7(YKHO, WKvO, LVAh):\n return min(WKvO, LVAh) > 0 and WKvO <= YKHO.width and (LVAh <= YKHO.height)", "def mi1R(YKHO, Ty9i):\n exwG = YKHO.normalVect()\n return exwG.dotProduct(iArr...
[ "0.65375763", "0.6494872", "0.64917046", "0.63348883", "0.6322285", "0.62746125", "0.6242936", "0.6224651", "0.6217025", "0.617891", "0.6134053", "0.6134053", "0.6120129", "0.61068463", "0.61016506", "0.6087731", "0.60523325", "0.60460985", "0.60338795", "0.6031744", "0.60272...
0.57066286
63
Tests whether the interior of the halfspace (excluding its boundary) defined by the inequality contains the given vertex/ray/line.
def y080(YKHO, Ijh2): try: if Ijh2.is_vector(): return YKHO.polyhedron()._is_positive(YKHO.eval(Ijh2)) except AttributeError: pass if Ijh2.is_line(): return YKHO.polyhedron()._is_zero(YKHO.eval(Ijh2)) elif Ijh2.is_vertex(): return YKHO.polyhedron()._is_positiv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mi1R(YKHO, Ty9i):\n exwG = YKHO.normalVect()\n return exwG.dotProduct(iArr(YKHO.vertices[0]) - iArr(Ty9i)) > 0", "def Hao5(YKHO, AU8u):\n try:\n XP5J = iArr(AU8u)\n except TypeError:\n if len(AU8u) > 0:\n return False\n else:\n XP5J = iArr(YKHO.field(), ...
[ "0.6838345", "0.6757653", "0.6745546", "0.64965737", "0.6360816", "0.6345297", "0.6345297", "0.63183767", "0.6300664", "0.62431955", "0.6223511", "0.6203222", "0.60858405", "0.6073887", "0.6030192", "0.6028625", "0.6025482", "0.5995523", "0.5995523", "0.59883946", "0.5979223"...
0.6858966
0
Initializes an equation object.
def FIMM(YKHO, qmA5, nPrm): super(S2uZ, YKHO).__init__(qmA5, nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ec2J):\n YKHO.equation = Ec2J['equation']\n YKHO.variables = Ec2J['variables']\n YKHO.dict = Ec2J\n YKHO.x = list(YKHO.variables)[-1]['variable']", "def FIMM(YKHO, x9Zl, kXqx, qdw1=None):\n zskP.__init__(YKHO)\n YKHO.linearExpression = x9Zl\n YKHO.indexingExpression = kXqx\n ...
[ "0.7227892", "0.70712614", "0.6835836", "0.6835836", "0.67892283", "0.6724007", "0.66772604", "0.6618359", "0.6544848", "0.64240783", "0.6405583", "0.6405259", "0.62852526", "0.6235831", "0.62149554", "0.6207066", "0.6203512", "0.6203512", "0.6198402", "0.61921614", "0.619216...
0.6678264
6
A string representation of this object.
def aRbh(YKHO): KCHu = 'An equation ' NNGZ = not YKHO.A().is_zero() if NNGZ: KCHu += repr(YKHO.A()) + ' x ' if YKHO.b() >= 0: if NNGZ: KCHu += '+' else: KCHu += '-' if NNGZ: KCHu += ' ' KCHu += repr(abs(YKHO.b())) + ' == 0' return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n return str(YKHO)", "def Napc(YKHO):\n return str(YKHO)", "def CZBi(YKHO):\n return YKHO.__repr__()", "def yLCI(YKHO):\n return YKHO.__str__()", "def zAg0(YKHO):\n return str(YKHO.serialize())", "def wHJl(YKHO) -> str:\n return str(YKHO.as_dict())", "def Sa1R(YKHO) ->...
[ "0.8801228", "0.8777879", "0.87296486", "0.86189115", "0.8576259", "0.8560595", "0.85511076", "0.85087925", "0.85087925", "0.85087925", "0.85087925", "0.85087925", "0.85087925", "0.85087925", "0.85087925", "0.85087925", "0.85087925", "0.85087925", "0.85087925", "0.85087925", ...
0.0
-1
Tests whether the interior of the halfspace (excluding its boundary) defined by the inequality contains the given vertex/ray/line.
def y080(YKHO, Ijh2): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y080(YKHO, Ijh2):\n try:\n if Ijh2.is_vector():\n return YKHO.polyhedron()._is_positive(YKHO.eval(Ijh2))\n except AttributeError:\n pass\n if Ijh2.is_line():\n return YKHO.polyhedron()._is_zero(YKHO.eval(Ijh2))\n elif Ijh2.is_vertex():\n return YKHO.polyhedron...
[ "0.6858369", "0.68386346", "0.6758325", "0.6745028", "0.64974236", "0.6362578", "0.63459367", "0.63459367", "0.63198173", "0.62997174", "0.6244368", "0.6224621", "0.62050766", "0.60856944", "0.60730696", "0.60290784", "0.6028484", "0.6026358", "0.5986969", "0.59803355", "0.59...
0.59952885
19
Returns True if the object is a line of the Vrepresentation. This method is overridden by the corresponding method in the derived class Line.
def SpWX(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SpWX(YKHO):\n return True", "def SpWX(YKHO):\n return True", "def Bsr6(YKHO):\n return YKHO.width == 0 and YKHO.height > 1 or (YKHO.height == 0 and YKHO.width > 1)", "def Bsr6(YKHO):\n return YKHO.width == 0 and YKHO.height > 1 or (YKHO.height == 0 and YKHO.width > 1)", "def SpWX(YKHO):\n ...
[ "0.73890924", "0.73890924", "0.7340938", "0.7340938", "0.71303767", "0.6722245", "0.6675775", "0.6626746", "0.6536196", "0.6347503", "0.63393676", "0.63393676", "0.6264747", "0.6248791", "0.6223906", "0.6164967", "0.61352175", "0.6092453", "0.6020981", "0.60133064", "0.601330...
0.7012089
5
Initializes a ray object.
def FIMM(YKHO, qmA5, nPrm): super(m1mO, YKHO).__init__(qmA5, nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, uxwT, Dgo4, xErL=None, bHg_=None):\n if bHg_ is not None:\n uxwT = NkkI(uxwT)\n uxwT += oyIN.linalg.inv(IMwJ(uxwT)).dot(qw7D([oyIN.random.normal(0, bHg_), oyIN.random.normal(0, bHg_), 0]))\n YKHO._ray = m1mO(uxwT, Dgo4)\n YKHO._history = [(0, YKHO._ray)]\n YKHO._element = Y...
[ "0.69556904", "0.61580163", "0.6071904", "0.6071605", "0.60236895", "0.59356415", "0.5925378", "0.5866671", "0.58082825", "0.5807278", "0.5807278", "0.5685588", "0.567752", "0.5667549", "0.56660926", "0.56634617", "0.56585777", "0.56549776", "0.56221914", "0.5598809", "0.5577...
0.72872376
0
Tests if this object is a ray. Always True by construction.
def Fw3E(YKHO): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fw3E(YKHO):\n return False", "def Fw3E(YKHO):\n return False", "def E2W6(YKHO, spHt):\n WiOR = YKHO._sympy_plane.intersection(spHt.sympy_line)[0]\n if 'x' in YKHO._name:\n if YKHO._within_y_bounds(WiOR.y) and YKHO._within_z_bounds(WiOR.z):\n return (True, oyIN.array(map(float,...
[ "0.76152766", "0.7405027", "0.62074465", "0.62074393", "0.6090226", "0.5951388", "0.5738135", "0.56904054", "0.5686524", "0.55778086", "0.55746454", "0.55088705", "0.54987615", "0.54564613", "0.5426838", "0.5402613", "0.54001117", "0.5375659", "0.53559256", "0.53277266", "0.5...
0.7633362
1
Initializes the line object.
def FIMM(YKHO, qmA5, nPrm): super(NTRO, YKHO).__init__(qmA5, nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E14P():\n zFiD.set_data([], [])\n return (zFiD,)", "def FIMM(YKHO, zFiD):\n YKHO.start = aCpm(zFiD, 1)\n YKHO.end = aCpm(zFiD, 0)", "def FIMM(YKHO, iXlf, **B2fa):\n super(NTRO, YKHO).__init__(iXlf, **B2fa)\n YKHO._geotype = 'Line'\n return", "def DbxN(YKHO) -> None:\n YKHO.started...
[ "0.84372175", "0.78776747", "0.7551069", "0.74867105", "0.7359488", "0.7303538", "0.72724557", "0.7115625", "0.7032113", "0.6941985", "0.6934653", "0.6867855", "0.684687", "0.68130714", "0.66768235", "0.66596705", "0.6598061", "0.6553738", "0.6522616", "0.65075004", "0.649873...
0.6715231
14
Test whether ``self`` is not equal to ``other``.
def Vdqg(YKHO, Elif): return not YKHO.__eq__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return n...
[ "0.8864751", "0.88107824", "0.88107824", "0.88107824", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", "0.8681393", ...
0.0
-1
Return the number of inequalities. The representation will always be minimal, so the number of inequalities is the number of facets of the polyhedron in the ambient space.
def LB2v(YKHO): try: return YKHO._n_inequalities except AttributeError: YKHO._n_inequalities = 0 for YRbF in YKHO.inequalities(): YKHO._n_inequalities += 1 return YKHO._n_inequalities
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LXxV(YKHO):\n return YKHO.n_inequalities()", "def fKLi(YKHO):\n return YKHO.inequalities()", "def poMF(YKHO):\n return YKHO.n * (1 + int(YKHO.variant.is_bipartite()))", "def HqhB(YKHO):\n return len(YKHO.equality_constraint_names())", "def m1br(YKHO):\n return len(list(YKHO.lower_contain...
[ "0.7486746", "0.6720966", "0.6699361", "0.6529423", "0.6479883", "0.63912666", "0.6385917", "0.6381133", "0.6371878", "0.63241106", "0.6292568", "0.62846744", "0.6282165", "0.62748075", "0.6268369", "0.62666416", "0.62624705", "0.62380004", "0.6203038", "0.61616063", "0.61432...
0.7330504
1
Return the number of rays. The representation will always be minimal.
def E5Ee(YKHO): try: return YKHO._n_rays except AttributeError: YKHO._n_rays = 0 for Mkmy in YKHO.rays(): YKHO._n_rays += 1 return YKHO._n_rays
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lLkj(YKHO):\n return sum((len(QTBn) for QTBn in YKHO))", "def nDhZ(YKHO):\n lLkj = 0\n for Q6kx in YKHO._nodes.values():\n lLkj += Q6kx._deg\n return lLkj / 2 + 1", "def nDhZ(YKHO):\n lLkj = 0\n for Q6kx in YKHO._nodes.values():\n lLkj += Q6kx._deg\n return lLkj / 2 + 1",...
[ "0.6625876", "0.6484643", "0.6484643", "0.6460548", "0.6433843", "0.6398098", "0.6398098", "0.6381013", "0.637975", "0.63704294", "0.6351989", "0.63184094", "0.6276302", "0.6266939", "0.624038", "0.6232684", "0.6212521", "0.6209672", "0.620922", "0.62024295", "0.61683655", ...
0.85541546
0
Return the list of face indices (i.e. indices of Hrepresentation objects) and the indices of faces adjacent to them.
def o36p(YKHO): try: return YKHO._facial_adjacencies except AttributeError: YKHO._facial_adjacencies = [[MKlR.index(), [exwG.index() for exwG in MKlR.neighbors()]] for MKlR in YKHO.Hrepresentation()] return YKHO._facial_adjacencies
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0VL(YKHO):\n YRbF, r845, h4jD = YKHO.indicesAndEdge()\n return (YRbF, r845)", "def y_PJ(YKHO):\n return map(duMp, YKHO._top_exp.faces())", "def vpku(YKHO, C5WR):\n ...", "def y_PJ(YKHO):\n return YKHO._faces", "def dkg7(YKHO):\n y_PJ = []\n for r845 in range(0, YKHO.height - 1):\n...
[ "0.72302914", "0.69233555", "0.6751035", "0.67152923", "0.663686", "0.6608183", "0.6528487", "0.6478386", "0.6475458", "0.64392626", "0.63634056", "0.63462484", "0.63267857", "0.6321245", "0.6290716", "0.6284525", "0.628107", "0.62765837", "0.6267598", "0.62525994", "0.622700...
0.6491585
7
Return a generator for the defining inequalities of the polyhedron.
def Ps5G(YKHO): for C7Ls in YKHO.Hrepresentation(): if C7Ls.is_inequality(): yield C7Ls
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xDh8(YKHO):\n tclk = YKHO.polyhedron().incidence_matrix()\n for cAlv in YKHO.polyhedron().Vrep_generator():\n if tclk[cAlv.index(), YKHO.index()] == 1:\n yield cAlv", "def xDh8(YKHO):\n tclk = YKHO.polyhedron().incidence_matrix()\n for cAlv in YKHO.polyhedron().Vrep_generator():...
[ "0.62948394", "0.62948394", "0.622661", "0.622661", "0.5998201", "0.59693587", "0.5901525", "0.5601014", "0.5601014", "0.55649424", "0.5515636", "0.55103517", "0.5506875", "0.54729754", "0.5467234", "0.54668957", "0.5452751", "0.5452751", "0.5444854", "0.5400072", "0.5359835"...
0.67394197
0
Return a list of vertices of the polyhedron.
def iXlf(YKHO): try: return YKHO._vertices except: YKHO._vertices = [list(WKvO) for WKvO in YKHO.vertex_generator()] return YKHO._vertices
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBww(YKHO):\n return YKHO.vertList.keys()", "def EBww(YKHO):\n return list(YKHO.vertices.keys())", "def iXlf(YKHO):\n return YKHO.pointlist", "def EBww(YKHO):\n return YKHO._vertices", "def iXlf(YKHO):\n return YKHO._vertices", "def iXlf(YKHO):\n return list(YKHO._graph)", "def EB...
[ "0.789857", "0.7870564", "0.7856595", "0.7818817", "0.78175515", "0.7788121", "0.7773115", "0.7773115", "0.7768897", "0.7762729", "0.76782686", "0.76376724", "0.75767577", "0.750919", "0.7503351", "0.7472806", "0.74473894", "0.74199235", "0.7369322", "0.7342119", "0.73304594"...
0.80211544
0
Return a generator for the lines of the polyhedron.
def ZG4U(YKHO): for cAlv in YKHO.Vrepresentation(): if cAlv.is_line(): yield cAlv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nqlg(YKHO):\n for q2Xo in kgDL(YKHO.points):\n yield NTRO(q2Xo, shape=YKHO)", "def jsQ2(YKHO):\n WKvO = YKHO.square[0]\n LVAh = YKHO.square[1]\n Nqlg = [[]]\n Nqlg.append(((WKvO, LVAh + jzdc) for jzdc in range(1, 8)))\n Nqlg.append(((WKvO + jzdc, LVAh) for jzdc in range(1, 8)))\n ...
[ "0.7541046", "0.6764416", "0.654454", "0.6367951", "0.6355268", "0.6337704", "0.62785095", "0.62785095", "0.62135166", "0.6205329", "0.60971594", "0.60714114", "0.6063338", "0.60324633", "0.5966404", "0.5942463", "0.594133", "0.5906734", "0.5876801", "0.57959944", "0.5774716"...
0.75992817
0
Return the maximal distance from the center to a vertex. All rays and lines are ignored.
def r1VO(YKHO): return PZyS(YKHO.radius_square())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r1VO(YKHO):\n Z9rn = YKHO.centroid()\n foUm = -oyIN.inf\n for SLBp in YKHO.path.vertices:\n Csk6 = oyIN.linalg.norm(SLBp - Z9rn)\n if Csk6 > foUm:\n foUm = Csk6\n return Csk6", "def Tz17(YKHO, WKvO, e6ux):\n yk4i = WKvO - e6ux\n return oyIN.sqrt(oyIN.dot(yk4i.T, yk4...
[ "0.6565694", "0.59782445", "0.59508884", "0.58959746", "0.5762129", "0.5746932", "0.5695137", "0.56922877", "0.56486505", "0.56279284", "0.5616114", "0.5580673", "0.5553547", "0.5523425", "0.55028015", "0.54849696", "0.54523873", "0.54247415", "0.5420174", "0.5386447", "0.538...
0.0
-1
Test whether the relative interior of the polyhedron contains the given ``point``.
def Hao5(YKHO, AU8u): try: XP5J = iArr(AU8u) except TypeError: if len(AU8u) > 0: return False else: XP5J = iArr(YKHO.field(), []) if len(XP5J) != YKHO.ambient_dim(): return False for cIT_ in YKHO.equation_generator(): if not cIT_.contains(X...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y080(YKHO, AU8u):\n try:\n XP5J = iArr(AU8u)\n except TypeError:\n if len(AU8u) > 0:\n return False\n else:\n XP5J = iArr(YKHO.field(), [])\n if len(XP5J) != YKHO.ambient_dim():\n return False\n for C7Ls in YKHO.Hrep_generator():\n if not C7L...
[ "0.7941701", "0.7777154", "0.7743703", "0.76257414", "0.76257414", "0.75868297", "0.7578391", "0.7552529", "0.73895067", "0.7387419", "0.7372237", "0.73581576", "0.7329602", "0.7296402", "0.7247164", "0.7246418", "0.7235826", "0.7191009", "0.7188732", "0.71793354", "0.7171237...
0.8135436
0
r""" Return whether the polyhedron is a simplex.
def p4j2(YKHO): return YKHO.is_compact() and YKHO.dim() + 1 == YKHO.n_vertices()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p4j2(YKHO):\n return YKHO.affine_dimension() + 1 == YKHO.n_vertices()", "def Ygge(YKHO):\n try:\n return YKHO._is_lattice_polytope\n except AttributeError:\n pass\n YKHO._is_lattice_polytope = YKHO.is_compact() and all((Ty9i.is_integral() for Ty9i in YKHO.vertex_generator()))\n r...
[ "0.7512828", "0.6371464", "0.62173796", "0.61906195", "0.6048706", "0.57923305", "0.57752305", "0.5758563", "0.5756444", "0.5756444", "0.57197165", "0.5690659", "0.5658435", "0.5635977", "0.5621621", "0.56073844", "0.5595105", "0.5580728", "0.55669546", "0.5566237", "0.551891...
0.7685648
0
r""" Return the coordinates of a rectangular box containing the nonempty polytope.
def C1GJ(YKHO, eAkl=False): O9on = [] BREB = [] if YKHO.n_vertices == 0: raise ValueError('Empty polytope is not allowed') for YRbF in range(0, YKHO.ambient_dim()): jNOo = [Ty9i[YRbF] for Ty9i in YKHO.Vrep_generator()] Scow = max(jNOo) eDXU = min(jNOo) if eAkl: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C1GJ(YKHO):\n O9on = []\n BREB = []\n if YKHO.is_empty():\n raise ValueError('empty polytope is not allowed')\n for YRbF in range(0, YKHO.space_dimension()):\n WKvO = iQnE(YRbF)\n jNOo = [Ty9i.coefficient(WKvO) for Ty9i in YKHO.generators()]\n Scow = max(jNOo)\n e...
[ "0.6519615", "0.6339789", "0.63274264", "0.6324819", "0.61964387", "0.61964387", "0.6195479", "0.6182804", "0.61821204", "0.6174799", "0.61715555", "0.61457324", "0.6141494", "0.61039114", "0.60471284", "0.6032216", "0.6030809", "0.60011816", "0.59963787", "0.59812605", "0.59...
0.5913238
24
Return the identity projection of the polyhedron.
def _E99(YKHO): return YKHO.__call__(ufH_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EVIl(YKHO):\n return YKHO.projection", "def hPuM(YKHO):\n YKHO.projection = J7n_(YKHO)\n return YKHO.projection", "def hPuM(YKHO) -> J7n_:\n return YKHO._projection", "def eIYC(YKHO, SGVp):\n return YKHO.ambient_space().quotient(SGVp.affine_space())", "def lOe5(YKHO):\n F6jf = YKHO.fi...
[ "0.6655671", "0.6596642", "0.6541243", "0.64065766", "0.6389707", "0.63852453", "0.63848984", "0.6357089", "0.6357089", "0.6270306", "0.62562454", "0.620448", "0.6156567", "0.61552703", "0.61385185", "0.6123231", "0.6103431", "0.60773915", "0.60773915", "0.60430855", "0.60322...
0.6947691
0
Convert a coordinate vector to its internal index.
def qSmB(YKHO, Ty9i): try: return YKHO.coords.index(Ty9i) except ValueError: YKHO.coords.append(Ty9i) return len(YKHO.coords) - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gY79(Ty9i):\n zC9_ = QpfX._context._registered_leaf_nodes\n return lNLu(index=[zC9_[iYKj] for iYKj in Ty9i._index], value=Ty9i._value)", "def jp_7(WKvO, LVAh):\n d6pt = LVAh * ZLJ_ + WKvO\n return d6pt", "def Zd7O(Emd4, oeNL):\n return Emd4.rev_pos_mapping[int(oeNL[0])][int(oeNL[1])]", "de...
[ "0.6739531", "0.6729268", "0.66497844", "0.65106064", "0.65045714", "0.6485774", "0.64387155", "0.6377138", "0.63669103", "0.63418996", "0.63297755", "0.62878597", "0.6266065", "0.62533367", "0.6192388", "0.61876", "0.61613524", "0.6110641", "0.603421", "0.6022502", "0.600941...
0.6305428
11
Convert list of coordinate vectors to the corresponding list of internal indices.
def UmMj(YKHO, VJDQ): return [YKHO.coord_index_of(Ty9i) for Ty9i in VJDQ]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mXzP(YKHO, r86s):\n return [YKHO.transformed_coords[YRbF] for YRbF in r86s]", "def ucBg(jNOo, Ep8u):\n MKlR, yzQ0 = jNOo.shape[:2]\n GKWV = list(oyIN.repeat(oyIN.arange(Ep8u), MKlR * yzQ0))\n cU0c = [0]\n n6Zk = list(oyIN.tile(jNOo[:, :, 0].reshape(-1), 2))\n Tn_H = list(oyIN.tile(jNOo[:, :...
[ "0.66926", "0.6676841", "0.6667212", "0.6661667", "0.6509132", "0.6410597", "0.6362403", "0.63112533", "0.62284756", "0.62228996", "0.6214185", "0.61771804", "0.6167081", "0.61659724", "0.6161895", "0.61021197", "0.6095236", "0.6091059", "0.6062591", "0.60592127", "0.6010393"...
0.78977
0
Given a list of indices, return the projected coordinates.
def mXzP(YKHO, r86s): return [YKHO.transformed_coords[YRbF] for YRbF in r86s]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8JN(jNOo, H3a3, bn1U):\n return [n7Dw(BHsk, H3a3, bn1U) for BHsk in jNOo]", "def W0Eb(YKHO, _0VL):\n if not type(_0VL) == tuple:\n _0VL = tuple((_0VL,))\n W0Eb = {}\n for ZMlM in YKHO.coordinates_mapping.keys():\n GZ6f = YKHO.variable.group.variables[YKHO.coordinates_mapping[ZMlM][...
[ "0.71692306", "0.66773254", "0.6428989", "0.6285073", "0.62513804", "0.62001896", "0.61571616", "0.6126175", "0.61006975", "0.6032206", "0.59892875", "0.5955127", "0.59410596", "0.5879376", "0.5854081", "0.5854035", "0.582731", "0.5756893", "0.5741496", "0.57406324", "0.56967...
0.6810736
1
Take a ndimdimensional point and projects it onto the plane perpendicular to (1,1,...,1).
def fWfN(OU6s): c5up = len(OU6s) KW3N = [list(vexM) for vexM in _Waq.orthonormal_1(c5up)] AHMW = [] for Ty9i in KW3N: AHMW.append(sum([OU6s[QyVM] * Ty9i[QyVM] for QyVM in range(c5up)])) return AHMW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CsOI(YKHO, AU8u: array_like) -> PvyL:\n d6KZ = lNLu.from_points(AU8u, YKHO.point)\n PjvS = YKHO.normal.project_vector(d6KZ)\n return PvyL(AU8u) + PjvS", "def BS9d(AU8u, kEC0):\n P8oC, mhAC = kEC0\n mhAC = u1KP(mhAC)\n iArr = f4Oi(AU8u, P8oC)\n Ifga = HvgP(mhAC, s2vS(iArr, mhAC))\n ret...
[ "0.7998824", "0.76608586", "0.72045946", "0.717902", "0.6815165", "0.6727674", "0.6716035", "0.6681728", "0.66800654", "0.6643492", "0.6639512", "0.6632769", "0.6629137", "0.65985525", "0.6563293", "0.6534991", "0.6534991", "0.6503588", "0.6491678", "0.64784217", "0.6439208",...
0.0
-1
Converts spatialpandas geometry to an array.
def CQyv(NgpY, d6pt=None, lFz1=False, Qy87=None): from spatialpandas.geometry import Point, Polygon, Line, Ring, MultiPolygon, MultiPoint if isinstance(NgpY, Point): if d6pt is None: return oyIN.array([[NgpY.x, NgpY.y]]) Sk_F = [oyIN.array([NgpY.y if d6pt else NgpY.x])] elif isin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pUga(YKHO):\n import geopandas\n import shapely\n return geopandas.GeoSeries(YKHO.apply(lambda WKvO: shapely.wkb.loads(WKvO) if WKvO is not None else None), crs=YKHO.crs)", "def VFju(Fw8z):\n NgpY = ZO_c.Array()\n for RDhP in Fw8z:\n qw7D = ZO_c.Array()\n for AU8u in RDhP:\n ...
[ "0.68730795", "0.6433584", "0.6381958", "0.63811517", "0.63704556", "0.6337378", "0.62993824", "0.62957156", "0.6279921", "0.6219561", "0.6218168", "0.620726", "0.6196393", "0.6178507", "0.6147468", "0.60896987", "0.60584193", "0.6034679", "0.60345596", "0.6026241", "0.599429...
0.65537846
1
Returns an array of values from a GeoDataFrame.
def jVZe(nPrm, e_2d, Tdem, b3sz, SeRW, W1qW, fxfs=fxfs): iVRZ = nPrm[e_2d.name] if b3sz: return iVRZ MLc4 = True Sk_F, hT1Q = ([], []) for YRbF, NgpY in enumerate(nPrm[SeRW]): u54L = 1 if W1qW else fxfs(NgpY) wEf2 = iVRZ.iloc[YRbF] hAEw = LpJY(wEf2) if hAEw: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BNNj(Kiac, j5tF=False):\n dzye = []\n for zFiD in Kiac.geometry:\n Nqlg = []\n if j5tF:\n for hkxX in zFiD.exterior.coords:\n Nqlg.append(hkxX)\n else:\n for hkxX in zFiD.coords:\n Nqlg.append(hkxX)\n dzye.append(Nqlg)\n r...
[ "0.6998352", "0.668405", "0.6347639", "0.62543565", "0.6247667", "0.6247667", "0.6247667", "0.62407875", "0.62160283", "0.6212792", "0.6202825", "0.6150114", "0.61136127", "0.61017597", "0.6067834", "0.60404366", "0.60134566", "0.60110444", "0.5997468", "0.5996173", "0.599611...
0.6313751
3
Converts shapely based data formats to spatialpandas.GeoDataFrame.
def HZAu(nPrm): from spatialpandas import GeoDataFrame, GeoSeries from shapely.geometry.base import BaseGeometry if not nPrm: pass elif all((isinstance(Csk6, BaseGeometry) for Csk6 in nPrm)): nPrm = GeoSeries(nPrm).to_frame() elif all((isinstance(Csk6, dict) and 'geometry' in Csk6 an...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pUga(YKHO):\n import geopandas\n import shapely\n return geopandas.GeoSeries(YKHO.apply(lambda WKvO: shapely.wkb.loads(WKvO) if WKvO is not None else None), crs=YKHO.crs)", "def SI5L(jQ3Z):\n jQ3Z['geometry'] = [PvyL(M_DK) for M_DK in zip(jQ3Z.latitude, jQ3Z.longitude)]\n ucxv = {'init': 'epsg...
[ "0.75003105", "0.73791826", "0.6911731", "0.6782298", "0.6771331", "0.67135185", "0.663679", "0.65817755", "0.65411407", "0.6499362", "0.64071214", "0.6318661", "0.62666494", "0.6256172", "0.6195745", "0.6191393", "0.6184474", "0.616019", "0.6123125", "0.61162794", "0.6111790...
0.77739555
0
Convert input to array First it tries with a normal `np.asarray(v)` if this does not work it tries with `np.asarray(v, dtype=object)`. The ValueError raised is because of an inhomogeneous shape of the input, which raises an error in numpy v1.24 and above. Reason why it is not located in holoviews.core.util is that ther...
def EBvd(Ty9i): try: return oyIN.asarray(Ty9i) except ValueError: return oyIN.asarray(Ty9i, dtype=object)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HJI4(YKHO, Ty9i, a1PO):\n return Ty9i.asnumpy()", "def WTDd(YKHO, Ty9i):\n raise NotImplementedError('to_numpy')", "def LzLs(nPrm):\n L_oh()\n if nPrm is None:\n raise ValueError('Cannot convert None data.')\n return None\n if not isinstance(nPrm, (gyIm, qHOR, hxoQ, oM6q, tTFA)...
[ "0.7442653", "0.73813874", "0.72445047", "0.7042579", "0.70074385", "0.6965784", "0.6942325", "0.6891042", "0.68243146", "0.6784853", "0.6783416", "0.67638856", "0.6741284", "0.6741284", "0.6717086", "0.6705295", "0.6695474", "0.664909", "0.66038394", "0.65845656", "0.657084"...
0.8708122
0
Given the name of a character which is either in the party or npc dictionaries, returns an Embed object with all of their relevant qualities.
def J79Q(mWFP): bseI = k4qO.find_character(mWFP) if not bseI: return ZOrr.Embed(title='Invalid character') Q1PJ = ZOrr.Embed(title=bseI['Name'], description=bseI['Backstory'], color=int(bseI['Color'], 16)) Q1PJ.add_field(name='**Strongness**', value=bseI['Strongness']) Q1PJ.add_field(name='*...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eiMs(Bejo, hDmM):\n Xt49 = len(Bejo)\n LK4N = './embeddings/%s_char.pkl' % hDmM\n if Hy7s.path.exists(LK4N):\n print('Load character embeddings from %s...' % LK4N)\n KTQ3 = t2lc.load(open(LK4N, 'rb'))\n else:\n Jpe2 = './embeddings/char-embeddings.txt'\n print('Load char...
[ "0.5712804", "0.51464844", "0.49255276", "0.47472054", "0.47143805", "0.46865404", "0.4675916", "0.46386784", "0.46310282", "0.46298936", "0.46293443", "0.46260893", "0.46087405", "0.45484588", "0.45470178", "0.4546674", "0.45326695", "0.4510449", "0.4506295", "0.4503416", "0...
0.57554096
0
Draw a Cesaro fractal of a given size and tear angle. Leave the turtle facing the same direction.
def fz4E(a1PO, T4Wy, lbHk, zNig): _ysM = 90 - lbHk / 2 zNig = zNig - zNig * epAf.sin(epAf.radians(lbHk / 2)) if T4Wy == 0: a1PO.forward(zNig) else: for YRbF in [_ysM, -2 * _ysM, _ysM, 0]: fz4E(a1PO, T4Wy - 1, lbHk, zNig / 2) a1PO.right(YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XXpd():\n A30e.pensize(3)\n A30e.color('black', 'darkgrey')\n A30e.begin_fill()\n A30e.forward(80)\n A30e.left(90)\n A30e.forward(200)\n A30e.circle(40, 180)\n A30e.forward(200)\n A30e.left(90)\n A30e.end_fill()\n A30e.hideturtle()", "def hA40(jzdc, a1PO):\n global scale\n...
[ "0.62871194", "0.61871743", "0.6167432", "0.6117666", "0.6047338", "0.6028735", "0.6025765", "0.60138226", "0.59977967", "0.593579", "0.590026", "0.58954066", "0.58671343", "0.58655727", "0.58538604", "0.5840933", "0.58213925", "0.5814491", "0.57960355", "0.57945365", "0.5777...
0.0
-1
Depth images become an XYZ point cloud in the camera frame with shape (depth.shape[0], depth.shape[1], 3). Transform a depth image into a point cloud in the camera frame with one point for each pixel in the image, using the camera transform for a camera centred at cx, cy with field of view fx, fy.
def QQaD(rb7a, W6ch, yDqo=ZylS.float32): with nMvt.name_scope('depth_image_to_point_cloud'): W6ch = ZylS.to_float(W6ch) stDt = W6ch[1, 1] AOlJ = W6ch[0, 0] fXzF = W6ch[2, 1] JPqE = W6ch[2, 0] rb7a = ZylS.to_float(ZylS.squeeze(rb7a)) mL9q, OOcW = nMvt.int_shape...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HIlp(gLVc, km87):\n [H2v2, TVTK] = gLVc.shape\n jHsn = oyIN.linspace(0, TVTK - 1, TVTK)\n pvd3 = oyIN.linspace(0, H2v2 - 1, H2v2)\n P6bq, Ty9i = oyIN.meshgrid(jHsn, pvd3)\n WKvO = (P6bq.flatten() - km87.ppx) / km87.fx\n LVAh = (Ty9i.flatten() - km87.ppy) / km87.fy\n epBp = gLVc.flatten() /...
[ "0.80365896", "0.8004296", "0.738188", "0.7208702", "0.71125513", "0.7000501", "0.6885599", "0.6861043", "0.6517396", "0.6516649", "0.6424528", "0.6278618", "0.61977667", "0.6159116", "0.6119891", "0.6098537", "0.6063711", "0.60531276", "0.6035595", "0.5999604", "0.5988224", ...
0.79800797
2
Creating a L{MessageSet} with a single message number adds only that message to the L{MessageSet}; its serialized form includes only that message number, its length is one, and it yields only that message number.
def jU1D(YKHO): r8hN = lu3_(1) YKHO.assertEqual(str(r8hN), '1') YKHO.assertEqual(len(r8hN), 1) YKHO.assertEqual(list(r8hN), [1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t9Uy(YKHO):\n KREW = YKHO.message_id\n YKHO.message_id = 65535 & 1 + YKHO.message_id\n return KREW", "def N45J(YKHO):\n r8hN = lu3_(1, 10)\n YKHO.assertEqual(str(r8hN), '1:10')\n YKHO.assertEqual(len(r8hN), 10)\n YKHO.assertEqual(list(r8hN), [1, 2, 3, 4, 5, 6, 7, 8, 9, 10])", "def eLpg...
[ "0.56720734", "0.56377935", "0.5461547", "0.53992957", "0.5237231", "0.5197883", "0.50825983", "0.5071917", "0.5035462", "0.50135237", "0.49754503", "0.4958392", "0.49482548", "0.49419698", "0.490668", "0.49025166", "0.48869318", "0.48784652", "0.48726654", "0.48685193", "0.4...
0.7036358
0
Helper to implement tests for value filtering of KEYWORD and UNKEYWORD queries.
def sYPJ(YKHO, peBr): YKHO.assertEqual('(%s twistedrocks)' % (peBr.upper(),), gase.Query(**{peBr: 'twisted (){%*"\\] rocks'})) YKHO.assertEqual('(%s twistedrocks)' % (peBr.upper(),), gase.Query(**{peBr: 'twisted %s rocks' % (''.join((chr(Npgh) for Npgh in range(33))),)}))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qU13(YKHO):\n YKHO._keywordFilteringTest('keyword')", "def Vt7t(YKHO):\n YKHO._keywordFilteringTest('unkeyword')", "def hkfD(YKHO):\n qzC2 = ['Kinder', 'Ken', 'Alan', 'Tracy']\n XbYF = {'name-includes': 'Ken', 'location-includes': 'Spadina', 'following': 'Kinder', 'follower': 'Alan'}\n n5sN ...
[ "0.75285655", "0.7350205", "0.6159008", "0.6148101", "0.60689", "0.6059504", "0.60467505", "0.59884334", "0.59767616", "0.59670675", "0.5954767", "0.59508795", "0.59089446", "0.58702534", "0.5862863", "0.58510625", "0.5838319", "0.57612795", "0.5748232", "0.5710095", "0.56724...
0.6474329
2
Return the mailbox's status.
def rnb6(YKHO, ZWCE): Mkmy = {} if 'MESSAGES' in ZWCE: Mkmy['MESSAGES'] = YKHO.getMessageCount() if 'RECENT' in ZWCE: Mkmy['RECENT'] = YKHO.getRecentCount() if 'UIDNEXT' in ZWCE: Mkmy['UIDNEXT'] = YKHO.getMessageCount() + 1 if 'UIDVALIDITY' in ZWCE: Mkmy['UIDVALIDITY'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VLTN(YKHO):\n return YKHO.msg", "def CHRo(YKHO):\n return YKHO.status", "def jGRS(YKHO):\n return d2m_.get(YKHO._mower_status, {}).get('message', YKHO._mower_status)", "def VLTN(YKHO):\n return YKHO._status", "def jGRS(YKHO):\n return YKHO.get(YKHO._names['status'])", "def Jxmr(YKHO):\...
[ "0.728767", "0.7285613", "0.7262036", "0.72528285", "0.723259", "0.7218322", "0.7172397", "0.71493846", "0.71493846", "0.71493846", "0.71406925", "0.71102965", "0.7108937", "0.7104501", "0.70922923", "0.70782906", "0.7071757", "0.7056939", "0.70561194", "0.6980682", "0.697511...
0.0
-1
When a parsing method raises L{IllegalOperation}, the server sends a C{NO} response.
def HyZT(YKHO): YKHO.assertParseExceptionResponse(gase.IllegalOperation('operation'), b'001', b'NO Illegal operation: operation\r\n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jIf0(YKHO, geh0):\n raise YyKj", "def GJv1():\n return b'HTTP/1.1 405 Method Not Allowed\\r\\n'", "def WddJ(YKHO):\n raise NotImplementedError", "def JKQ4(YKHO):\n TBsA = YKHO.server.create_error(405, 'Method Not Allowed', f\"No method '{YKHO.path}' exist.\", bad=True)\n YKHO._write_respon...
[ "0.72630423", "0.64861745", "0.6464582", "0.6404929", "0.6391884", "0.6261658", "0.61989176", "0.61885387", "0.6184638", "0.6167012", "0.61258745", "0.6062136", "0.5996887", "0.5992554", "0.59749633", "0.5958827", "0.59501773", "0.5941055", "0.59200263", "0.58867145", "0.5864...
0.7336822
0
When a command raises L{IllegalClientResponse}, the server sends a C{BAD} response.
def cckm(YKHO): YKHO.assertCommandExceptionResponse(gase.IllegalClientResponse('client response'), b'001', b'BAD Illegal syntax: client response\r\n')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A24i(YKHO):\n YKHO.assertParseExceptionResponse(gase.IllegalClientResponse('client response'), b'001', b'BAD Illegal syntax: client response\\r\\n')", "def oX_r(geh0):\n print(\"Sorry; '\" + geh0 + \"' isn't a valid command. Please try again.\")", "def t04w(YKHO, tO9_):\n return YKHO.create_respo...
[ "0.6913848", "0.6872914", "0.6423069", "0.6302898", "0.62719715", "0.61883616", "0.6054091", "0.60121053", "0.5999493", "0.59987104", "0.5987169", "0.5975817", "0.5962536", "0.59459686", "0.59370124", "0.5891266", "0.5883658", "0.58393794", "0.5821561", "0.58163136", "0.57932...
0.80572623
0
An empty string argument raises L{imap4.IllegalClientResponse}.
def MFis(YKHO): for lsmZ in [b'', b'\r\n', b' ']: YKHO.assertRaises(gase.IllegalClientResponse, YKHO.server.arg_astring, lsmZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4Pw(YKHO):\n YKHO.assertRaises(gase.IllegalClientResponse, YKHO.server.arg_literal, b'')", "def uhZ6(YKHO):\n YKHO.assertRaises(gase.IllegalClientResponse, YKHO.server.arg_plist, b'')", "def DrTI(YKHO):\n YKHO.assertRaises(gase.IllegalClientResponse, YKHO.server.arg_atom, b'')", "def L07d(YKHO)...
[ "0.7294522", "0.7223682", "0.7156612", "0.6865867", "0.67882955", "0.64476", "0.61640984", "0.6116054", "0.6096937", "0.59633434", "0.59031945", "0.59030807", "0.5887851", "0.5804092", "0.5798151", "0.57957876", "0.5754019", "0.57476306", "0.5692243", "0.5649277", "0.5643454"...
0.7583302
0
A sequence set returns the unparsed portion of a line.
def OUun(YKHO): aWuw = b'1:* blah blah blah' bGrB, wOmD = YKHO.server.arg_seqset(aWuw) YKHO.assertEqual(wOmD, b'blah blah blah')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NtwB(YKHO, zFiD: str) -> fHNa[str]:\n Aofo = set()\n LwJC = zFiD.strip()\n if LwJC.startswith('||') and (LwJC.endswith('^') or LwJC.endswith('$')):\n LwJC = LwJC.replace('||', '', 1)\n if LwJC.endswith('^'):\n LwJC = ''.join(LwJC.rsplit('^', 1))\n elif LwJC.endswith('$'...
[ "0.62174445", "0.58798426", "0.5684283", "0.56811166", "0.56540006", "0.555964", "0.555964", "0.5497837", "0.53755593", "0.5353814", "0.5332057", "0.5323881", "0.5323187", "0.5294632", "0.5275179", "0.5266455", "0.5225931", "0.51774335", "0.51774335", "0.5165716", "0.51546705...
0.5170754
19
An invalid sequence raises L{imap4.IllegalClientResponse}.
def TbTQ(YKHO): YKHO.assertRaises(gase.IllegalClientResponse, YKHO.server.arg_seqset, b'x:y')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A24i(YKHO):\n YKHO.assertParseExceptionResponse(gase.IllegalClientResponse('client response'), b'001', b'BAD Illegal syntax: client response\\r\\n')", "def cckm(YKHO):\n YKHO.assertCommandExceptionResponse(gase.IllegalClientResponse('client response'), b'001', b'BAD Illegal syntax: client response\\r\\...
[ "0.72755814", "0.7074162", "0.6331612", "0.59992903", "0.59352297", "0.582897", "0.5788807", "0.56702125", "0.56675076", "0.56590545", "0.55258405", "0.5509177", "0.5498849", "0.5487901", "0.5486241", "0.5480952", "0.5477624", "0.54509914", "0.54506475", "0.54418075", "0.5436...
0.77317363
0
Test a nonsilent flag modifying method. Call the method, assert that the correct bytes are sent, deliver a I{FETCH} response, and assert that the result of the Deferred returned by the method is correct.
def uEY2(YKHO, NKcE, ZfUD): Csk6 = getattr(YKHO.client, NKcE)('3', ('\\Read', '\\Seen'), False) YKHO.assertEqual(YKHO.transport.value(), b'0001 STORE 3 ' + ZfUD + b' (\\Read \\Seen)\r\n') YKHO.client.lineReceived(b'* 3 FETCH (FLAGS (\\Read \\Seen))') YKHO.client.lineReceived(b'0001 OK STORE completed') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nuf5(YKHO, NKcE, ZfUD):\n Csk6 = getattr(YKHO.client, NKcE)('3', ('\\\\Read', '\\\\Seen'), True)\n YKHO.assertEqual(YKHO.transport.value(), b'0001 STORE 3 ' + ZfUD + b' (\\\\Read \\\\Seen)\\r\\n')\n YKHO.client.lineReceived(b'* 2 FETCH (FLAGS (\\\\Read \\\\Seen))')\n YKHO.client.lineReceived(b'0001...
[ "0.68510324", "0.68154866", "0.6189213", "0.6177646", "0.5907092", "0.5652755", "0.5630777", "0.5605661", "0.55965257", "0.5580434", "0.55801517", "0.5538843", "0.55364186", "0.5524108", "0.55001396", "0.54949623", "0.54876286", "0.54830325", "0.54823774", "0.5466522", "0.545...
0.6728999
2
Test unsolicited data received in response to a silent flag modifying method. Call the method, assert that the correct bytes are sent, deliver the unsolicited I{FETCH} response, and assert that the result of the Deferred returned by the method is correct.
def Nuf5(YKHO, NKcE, ZfUD): Csk6 = getattr(YKHO.client, NKcE)('3', ('\\Read', '\\Seen'), True) YKHO.assertEqual(YKHO.transport.value(), b'0001 STORE 3 ' + ZfUD + b' (\\Read \\Seen)\r\n') YKHO.client.lineReceived(b'* 2 FETCH (FLAGS (\\Read \\Seen))') YKHO.client.lineReceived(b'0001 OK STORE completed') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GsHr(YKHO):\n YKHO.server.dataReceived(b'01 FETCH 1 BODY[]\\r\\n02 FETCH 2 BODY[]\\r\\n03 FETCH 3 BODY[]\\r\\n')\n YKHO.flushPending()\n YKHO.assertEqual(YKHO.transport.value(), b''.join([b'* 1 FETCH (BODY[] )\\r\\n', NaWP('01 OK FETCH completed\\r\\n{5}\\r\\n\\r\\n\\r\\n%s' % (XRlH(YKHO.messages[0].g...
[ "0.66357887", "0.6413284", "0.6291067", "0.6241506", "0.61308545", "0.597563", "0.588439", "0.5824625", "0.5771638", "0.57648665", "0.57221514", "0.5679604", "0.56288105", "0.5574255", "0.55713975", "0.55703443", "0.55406463", "0.5533418", "0.5529073", "0.5520671", "0.5512197...
0.69682324
0
When passed a C{True} value for the C{silent} parameter, L{IMAP4Client.setFlags} sends the I{STORE} command with a I{FLAGS.SILENT} data item and returns a L{Deferred} which fires with an empty dictionary.
def OxDx(YKHO): YKHO._flagsSilentlyTest('setFlags', b'FLAGS.SILENT')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hpGJ(YKHO):\n YKHO._flagsSilentlyWithUnsolicitedDataTest('setFlags', b'FLAGS.SILENT')", "def Nuf5(YKHO, NKcE, ZfUD):\n Csk6 = getattr(YKHO.client, NKcE)('3', ('\\\\Read', '\\\\Seen'), True)\n YKHO.assertEqual(YKHO.transport.value(), b'0001 STORE 3 ' + ZfUD + b' (\\\\Read \\\\Seen)\\r\\n')\n YKHO....
[ "0.5836351", "0.5622603", "0.55750644", "0.54516363", "0.49765486", "0.48705867", "0.46823853", "0.46823853", "0.46823853", "0.46044394", "0.46039072", "0.45540935", "0.45218372", "0.43812522", "0.43774816", "0.43743378", "0.43717322", "0.43283165", "0.42968148", "0.4286997", ...
0.5348023
4
The month name in the date is locale independent.
def qQbZ(YKHO): Hqok = NCqB.setlocale(NCqB.LC_ALL, None) NCqB.setlocale(NCqB.LC_ALL, 'es_AR.UTF8') YKHO.addCleanup(NCqB.setlocale, NCqB.LC_ALL, Hqok) return YKHO.testFetchInternalDate(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XMq6(YKHO):\n return YKHO.strftime('%B')", "def eXO9(YKHO, x0eS):\n if x0eS is not None:\n x0eS = YKHO.tr('MONTH.' + x0eS.upper())\n return x0eS", "def yZ3l(TMqc):\n NCqB.setlocale(NCqB.LC_TIME, 'et-EE')\n return GRk0.month_name[TMqc]", "def x0eS(YKHO) -> str:\n return YKHO._mont...
[ "0.8291438", "0.7842252", "0.77430135", "0.7597079", "0.757327", "0.7498782", "0.7476153", "0.7394407", "0.7394256", "0.73726565", "0.7363828", "0.7350096", "0.7349094", "0.7281555", "0.7189616", "0.7122951", "0.70630306", "0.69857377", "0.6968951", "0.69673884", "0.6955738",...
0.0
-1
If the search filter contains an I{OR} term with a subexpression which includes a message sequence set wildcard, all messages in that set are considered for inclusion in the results.
def RVDe(YKHO): return YKHO._messageSetSearchTest('OR 2:* 2:*', [2, 3, 4, 5])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FT_Y(YKHO):\n return YKHO._messageSetSearchTest('OR 1 2', [1, 2])", "def FT_Y(YKHO):\n YKHO.assertTrue(YKHO.server.search_OR(['SENTSINCE'] + YKHO.earlierQuery + ['SENTSINCE'] + YKHO.laterQuery, YKHO.seq, YKHO.msg, (None, None)))\n YKHO.assertTrue(YKHO.server.search_OR(['SENTSINCE'] + YKHO.laterQuery...
[ "0.71143854", "0.6626131", "0.5975881", "0.5850278", "0.56381416", "0.5554031", "0.5535743", "0.54854023", "0.5459893", "0.535226", "0.53341526", "0.5328797", "0.53281426", "0.53128666", "0.52884406", "0.5285237", "0.52583915", "0.5248111", "0.5229999", "0.5219287", "0.520706...
0.7340346
0
Starting a TLS negotiation with an L{IMAP4Server} that already has C{LOGIN} and C{PLAIN} L{IChallengeResponse} factories uses those factories.
def _qh1(YKHO): YKHO.server.challengers = {b'LOGIN': gase.LOGINCredentials, b'PLAIN': gase.PLAINCredentials} @ntd0.inlineCallbacks def lS_T(): AViC = (yield YKHO.client.getCapabilities()) YKHO.assertIn(b'AUTH', AViC) YKHO.assertIn(b'LOGIN', AViC[b'AUTH']) YKHO.assertIn(b'PLA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eyoc(YKHO):\n\n class DoubleSTARTTLSClient(tEni):\n\n def nQEi(YKHO):\n if not YKHO.startedTLS:\n return tEni.startTLS(YKHO)\n return YKHO.sendCommand(gase.Command(b'STARTTLS'))\n YKHO.client = Y90B(YKHO.connected, contextFactory=YKHO.clientCTX)\n cSnA = YKH...
[ "0.58984756", "0.5891473", "0.5854032", "0.55000657", "0.5392094", "0.53622156", "0.53243107", "0.530984", "0.5304236", "0.53025275", "0.53008693", "0.528994", "0.5282359", "0.5272042", "0.5230849", "0.52100164", "0.51488215", "0.5138053", "0.51288927", "0.511647", "0.5107865...
0.67146707
0
Advance pending iterators enqueued with L{iterateInReactor} in a roundrobin fashion, resuming the transport's producer until it has completed. This ensures bodies are flushed.
def e4fA(YKHO, dyEC=lambda: True): while YKHO.iterators and dyEC(): for tTpl in YKHO.iterators[0][0]: while YKHO.transport.producer: YKHO.transport.producer.resumeProducing() else: YKHO.iterators.pop(0)[1].callback(None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eA31(YKHO, oHE7):\n Csk6 = ntd0.Deferred()\n YKHO.iterators.append((oHE7, Csk6))\n return Csk6", "def WWR_(YKHO):\n while 1:\n yield YKHO.send_next()", "def OHer(iter):\n\n def GL9R(lGbz, iter, vexM):\n for ZfUD in iter:\n vexM.put(ZfUD)\n vexM.put(RPUJ)\n\n ...
[ "0.61461866", "0.59875524", "0.58081794", "0.5781301", "0.5705543", "0.5704287", "0.56183034", "0.5594664", "0.55360645", "0.5478307", "0.54361165", "0.53913754", "0.5342742", "0.5334857", "0.52716005", "0.5260544", "0.5231243", "0.5218572", "0.52170014", "0.52110755", "0.520...
0.5242425
16
Returns a list of all commit hashes
def _n8u(YKHO, y0cW=''): oUZx = ['log', '--all', '--pretty=%H'] osAS = YKHO._get_commits_iterator(oUZx) if y0cW: osAS = iter([Z9rn for Z9rn in osAS if Z9rn.startswith(y0cW)]) for jSYO in osAS: yield jSYO.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g2eb(QePW, ekCf):\n if QePW.method == 'GET':\n siWD = K_ZK.objects.filter(id=ekCf).first()\n if siWD is None:\n return Ylbp.get_response(404, 'project not found', {})\n YEnM = {}\n YEnM['hashes'] = list(E2xm.objects.filter(project=siWD).values_list('commit_hash', flat=...
[ "0.7133225", "0.70879716", "0.6820463", "0.67418325", "0.6727755", "0.67204934", "0.67114705", "0.66631097", "0.6556236", "0.65120965", "0.64513254", "0.64393383", "0.63973534", "0.6396532", "0.6345889", "0.633688", "0.6319737", "0.62965155", "0.6281221", "0.6275562", "0.6211...
0.626051
20
Generates multiscale anchor boxes.
def GkaY(YKHO): nV4U = [] for ABDL in range(YKHO.min_level, YKHO.max_level + 1): ilUM = [] for NXpY in range(YKHO.num_scales): for pAIe in YKHO.aspect_ratios: _0fC = 2 ** ABDL mqIS = 2 ** (NXpY / float(YKHO.num_scales)) rjVM = YKHO.anch...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BIp9(N0ky, YYHl, maxY, m_03):\n l5eN, Kmi0 = N0ky\n QKaW, FzeP = YYHl\n ne9i = int(l5eN / QKaW)\n zWAB = int(Kmi0 / FzeP)\n udai = oyIN.arange(0, l5eN, ne9i)\n k8R8 = oyIN.arange(0, Kmi0, zWAB)\n eKGI = oyIN.dstack(oyIN.meshgrid(udai, k8R8)).reshape((-1, 2))\n GWer = oyIN.repeat([m_03],...
[ "0.7095319", "0.7087414", "0.676033", "0.67057395", "0.6698711", "0.66437685", "0.66208327", "0.65511936", "0.6535815", "0.64397883", "0.64372414", "0.6420171", "0.6420171", "0.62874", "0.6277956", "0.6263748", "0.6261684", "0.6235041", "0.6204222", "0.6189743", "0.61732316",...
0.5779657
37
Returns the IMPLEMENTATION value. It is read from server capabilities. (see the CAPABILITY command)
def EdZF(YKHO): return YKHO.__capabilities['IMPLEMENTATION']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vFzy(YKHO):\n Wxnj, nPrm, AViC = YKHO.__send_command('CAPABILITY', withcontent=True)\n if Wxnj == 'OK':\n return AViC\n return None", "def pbFQ(YKHO):\n return qQXR.dumps({'network_api': 'pyez'})", "def m5IE(YKHO):\n return YKHO.cur_config['capabilities']", "def AViC(YKHO):\n\n c...
[ "0.5952397", "0.58605105", "0.57498187", "0.5604473", "0.5591387", "0.54908043", "0.54831296", "0.5468967", "0.54333067", "0.54309314", "0.54087543", "0.5374628", "0.5322978", "0.53000057", "0.5288701", "0.5275961", "0.5253762", "0.5247809", "0.5246327", "0.5242289", "0.52216...
0.71016806
0
Paginate a queryset if required, either returning a page object, or `None` if pagination is not configured for this view.
def J7Hw(YKHO, SR0I, QePW, tTee=None): YKHO.count = SR0I.count() YKHO.request = QePW try: YKHO.page, YKHO.next_page, YKHO.has_next = SR0I.fetch_page(YKHO.get_page_size(QePW), start_cursor=IshC(urlsafe=YKHO.get_page_token())) except Zhfz: raise oEgM('Requested page not found') except ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J7Hw(YKHO, SR0I, QePW, tTee=None):\n bNfU = YKHO.get_page_size(QePW)\n if not bNfU:\n return None\n oDn_ = YKHO.django_paginator_class(SR0I, bNfU)\n klRQ = YKHO.page_query_param\n if klRQ in YKHO.last_page_strings:\n klRQ = oDn_.num_pages\n try:\n YKHO.page = oDn_.page(kl...
[ "0.820122", "0.820122", "0.8023443", "0.8008029", "0.8008029", "0.7759306", "0.7671702", "0.7433488", "0.7380579", "0.72249717", "0.7142897", "0.7009262", "0.694408", "0.6866919", "0.6469438", "0.6411859", "0.64067435", "0.6318743", "0.630996", "0.6271192", "0.62379855", "0...
0.72448623
9
gets a path and returns a list of asm file names
def zxMN(pmON): NmfV = [] pmON = Hy7s.path.abspath(pmON) if Hy7s.path.isfile(pmON): NmfV.append(pmON) else: for nUeQ in Hy7s.listdir(pmON): if nUeQ.endswith('.asm'): NmfV.append(Hy7s.path.join(pmON, nUeQ)) return NmfV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMC0(qaEx):\n with open(qaEx, 'r') as nUeQ:\n pBT5 = []\n for zFiD in nUeQ:\n pBT5.append(zFiD)\n return pBT5", "def Yytc(pmON):\n SXwH = []\n for nUeQ in Hy7s.listdir(pmON):\n if nUeQ.endswith('.cc') or nUeQ.endswith('.c'):\n SXwH.append('%s/%s' % (pmON...
[ "0.665282", "0.6612353", "0.65799123", "0.6478479", "0.6426161", "0.6267255", "0.61873263", "0.5964881", "0.59580094", "0.58620566", "0.58576775", "0.5852787", "0.5848867", "0.5833024", "0.5830914", "0.58267605", "0.5823265", "0.5762646", "0.5761283", "0.57513857", "0.574913"...
0.773575
0
Any trip ids which don't have values in the most recent set of observations can be set as completed
def _IVt(cuiw, Xa0d): print('checking {} observations for completed trips'.format(len(Xa0d))) pfAd = fZoS.uncompleted(cuiw) e33t = [WpOk for WpOk in pfAd if WpOk.trip_id not in Xa0d] for WpOk in e33t: WpOk.trip_end = BagM.most_recent_for_trip_id(WpOk.trip_id).timestamp return len(e33t)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QnD4(YKHO):\n return list(filter(lambda a1PO: a1PO.is_complete(), YKHO.trios))", "def pwXv(_Zdl):\n gUPs = len(_Zdl)\n _Zdl.sort(key=lambda WKvO: WKvO.arrive_ts)\n YRbF = 1\n while YRbF < len(_Zdl):\n if _Zdl[YRbF].depart_ts <= _Zdl[YRbF - 1].depart_ts:\n _Zdl.pop(YRbF)\n ...
[ "0.57679456", "0.540125", "0.5286381", "0.517169", "0.512179", "0.5110789", "0.5089066", "0.5079391", "0.50762874", "0.50253123", "0.5021317", "0.4918831", "0.48710182", "0.48700812", "0.48677632", "0.48564744", "0.485578", "0.48247066", "0.4798466", "0.4798466", "0.4798466",...
0.6865053
0
In case of prediction on data of different size than 128x128, the dimension_preprocess function is used to add padding and chunk up the data into pieces of 128x128, and this function is used to reconstruct these pieces into the original data.
def u6Jc(YKHO, SjOt, xsqC, NXpY=1, dvgN=True): assert len(xsqC.shape) == 2, 'data dimension expected to be (xline ,samp_point)' assert len(SjOt.shape) == 3, 'Chunked data dimension expected to be (batch_size, xline, samp_point)' if dvgN: if xsqC.shape[0] < YKHO.rows: neUm = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQn8(YKHO, nPrm, dvgN=True):\n assert len(nPrm.shape) == 2, 'Data dimension expected to be ( xline, samp_point)'\n if dvgN:\n if nPrm.shape[0] < YKHO.rows:\n dvgN = oyIN.ones((YKHO.rows - nPrm.shape[0], nPrm.shape[1]))\n nPrm = oyIN.concatenate((nPrm, dvgN), axis=0)\n ...
[ "0.7336187", "0.6822585", "0.65762454", "0.65519", "0.65079427", "0.6433954", "0.64154696", "0.6409113", "0.63467276", "0.63348204", "0.6322181", "0.631285", "0.6298524", "0.6297443", "0.6292261", "0.6273208", "0.61751527", "0.6168299", "0.6167471", "0.61357677", "0.612307", ...
0.71344763
1
Get the list of all vray nodes present in the nuke scene.
def JPMT(): return [Q6kx.name() for Q6kx in nUiC.allNodes() if 'VRay' in Q6kx.Class()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CDNe(YKHO):\n return YKHO.__allNodes", "def AyQV(YKHO):\n return list(YKHO.graph.nodes)", "def AyQV(YKHO):\n Ziit = []\n if not YKHO.node:\n return Ziit\n Ziit.extend(YKHO.node.left.get_nodes())\n Ziit.append(YKHO.node.vp)\n Ziit.extend(YKHO.node.right.get_nodes())\n return Z...
[ "0.7351326", "0.733498", "0.7288497", "0.725798", "0.7233458", "0.72053945", "0.7108952", "0.70935047", "0.7090152", "0.7090152", "0.7007069", "0.6990571", "0.6990571", "0.6990571", "0.6971909", "0.6971061", "0.6970739", "0.69631314", "0.69513446", "0.695131", "0.6899979", ...
0.8079756
0
View that returns the index / homepage
def d6pt(QePW): return _1tc(QePW, 'index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return TvZl('index.html', title='Home')", "def d6pt():\n fyvm = 'Home'\n return TvZl('index.html', page_title=fyvm)", "def d6pt():\n return TvZl('index.html', title='Home')", "def d6pt():\n return TvZl('public/index.html', title='Home')", "def d6pt():\n return TvZl('index.ht...
[ "0.8476668", "0.8429844", "0.83935696", "0.83721644", "0.83502775", "0.83439755", "0.82793474", "0.8272923", "0.82688373", "0.82363534", "0.8224063", "0.8220724", "0.821347", "0.82023513", "0.8196333", "0.81876445", "0.8161829", "0.81591237", "0.8142561", "0.8140612", "0.8140...
0.0
-1
View that allows user to add new info on his profile
def Iqwb(QePW, _sei=None): CBIr = mv1M.objects.get(email=QePW.user.email) if QePW.user.is_authenticated: if QePW.method == 'POST': d4dl = fFef(QePW.POST, QePW.FILES) if d4dl.is_valid(): a_oO = d4dl.save(commit=False) a_oO.user = QePW.user ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _y8X(QePW):\n if QePW.method == 'POST':\n L03z = H6V6.AddProfileForm(QePW.POST, user=QePW.user)\n z39Z = L03z.save_if_valid()\n if z39Z is not None:\n yEHD.success(QePW, u\"Profile '{0}' added.\".format(z39Z.name))\n return vKnz('manage_profiles')\n else:\n ...
[ "0.75200194", "0.7437585", "0.743102", "0.71940976", "0.7167456", "0.71147466", "0.7094974", "0.7034149", "0.69578844", "0.69430494", "0.6912082", "0.68969315", "0.6880774", "0.6879863", "0.6859115", "0.68540365", "0.6800786", "0.67941433", "0.67863154", "0.6766662", "0.67637...
0.63136387
62
The profile of the author of the blogpost
def Vd0t(QePW, _sei): taDc = Iofl(mv1M, pk=_sei) Uj8w = WYC8.objects.filter(user=taDc).filter(published_date__lte=rIAI.now()).order_by('-published_date').all() return _1tc(QePW, 'profile.html', {'profile': taDc, 'profileposts': Uj8w})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def taDc(YKHO):\n return YKHO.user", "def DmH2(YKHO):\n return YKHO.author", "def DmH2(YKHO):\n return YKHO.author", "def Ykw5(YKHO):\n return YKHO.user.profile", "def taDc(YKHO):\n return YKHO._data.get('author', None)", "def W84Y(YKHO):\n uJjO = YKHO.get_secure_cookie('blogdemo_user')...
[ "0.71831137", "0.70018333", "0.70018333", "0.69332457", "0.69188046", "0.6865966", "0.6860913", "0.6688341", "0.6683102", "0.6657816", "0.6657816", "0.6657816", "0.65880764", "0.65880764", "0.657832", "0.6556059", "0.6554873", "0.6538002", "0.6503973", "0.649318", "0.6488794"...
0.6940689
3
View that will filter the profiles based on first name
def Zxra(QePW): hbUd = QePW.GET.get('q1') DW23 = BFpK.objects.filter(T8ck(first_name__icontains=hbUd)) return _1tc(QePW, 'allusers.html', {'users': DW23})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def huZ8(QePW):\n xDcj = QePW.GET.get('q')\n dixj = SYRW.objects.filter(user__username__icontains=xDcj)\n rPXJ = 'profiles/search_profiles.html'\n QpfX = {'results': dixj, 'query': xDcj}\n return _1tc(QePW, rPXJ, QpfX)", "def Mdbc(YKHO):\n k_g4.make(mv1M, first_name='Jack')\n k_g4.make(mv1M,...
[ "0.67871404", "0.67400897", "0.65253174", "0.64910454", "0.6485033", "0.6438013", "0.6420003", "0.6392858", "0.6320621", "0.6279321", "0.6231792", "0.6219094", "0.61990273", "0.61438537", "0.6117414", "0.6101197", "0.6061585", "0.60541844", "0.60344017", "0.6021942", "0.59990...
0.7442812
0
View that will filter the profiles based on last name
def edet(QePW): BzON = QePW.GET.get('q2') DW23 = BFpK.objects.filter(T8ck(last_name__icontains=BzON)) return _1tc(QePW, 'allusers.html', {'users': DW23})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zxra(QePW):\n hbUd = QePW.GET.get('q1')\n DW23 = BFpK.objects.filter(T8ck(first_name__icontains=hbUd))\n return _1tc(QePW, 'allusers.html', {'users': DW23})", "def huZ8(QePW):\n xDcj = QePW.GET.get('q')\n dixj = SYRW.objects.filter(user__username__icontains=xDcj)\n rPXJ = 'profiles/search_p...
[ "0.6521041", "0.6415845", "0.64030194", "0.6387658", "0.6318225", "0.62886", "0.6263037", "0.62034374", "0.6179929", "0.6150587", "0.6128244", "0.60987604", "0.6094634", "0.6089311", "0.60593003", "0.6046766", "0.6010605", "0.6003118", "0.6002434", "0.59823865", "0.59403956",...
0.7340683
0
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(jYnZ, YKHO).__init__(*qIxc, **c_sp) if YKHO.u0 is None: YKHO.u0 = 0.0 if YKHO.h0 is None: YKHO.h0 = 0.0 if YKHO.vl is None: YKHO.vl = 0.0 if YKHO.i0 is None: YKHO.i0 = 0.0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.7794478", "0.77204376", "0.77204376", "0.76865023", "0.7625996", "0.7563802", "0.74399596", "0.74173665", "0.73513013", "0.73086345", "0.72797984", "0.7237519", "0.7227004", "0.7224259", "0.7224259", "0.7218872", "0.72119284", "0.72119284", "0.72119284", "0.72119284", "0.7...
0.0
-1
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(G6Bg, YKHO).__init__(*qIxc, **c_sp) if YKHO.i is None: YKHO.i = 0.0 else: YKHO.i = 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.77940345", "0.77196896", "0.77196896", "0.7685901", "0.76253456", "0.75629234", "0.7438996", "0.74165684", "0.73517054", "0.73081905", "0.7280219", "0.7237793", "0.7226802", "0.7223405", "0.7223405", "0.7218974", "0.72109884", "0.72109884", "0.72109884", "0.72109884", "0.7...
0.6465564
98
Set the value of the CallbackID input for this Choreo. ((required, string) The ID that can used to retrieve request data that the callback URL has captured.)
def g3dz(YKHO, BWXx): super(Gp8X, YKHO)._set_input('CallbackID', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def db6b(YKHO, db6b):\n if db6b is None:\n raise ValueError('Invalid value for `callback`, must not be `None`')\n YKHO._callback = db6b", "def CCEN(YKHO, RJDY):\n YKHO.callback_url = RJDY", "def db6b(YKHO, BWXx) -> None:\n YKHO._callback = BWXx", "def qOuo(YKHO, db6b=None):\n YKHO.callb...
[ "0.5835316", "0.5807138", "0.55448663", "0.55295515", "0.541269", "0.5344302", "0.52390045", "0.5124608", "0.5119514", "0.5113356", "0.50779665", "0.507378", "0.507378", "0.5058252", "0.5058252", "0.5057219", "0.49601257", "0.4928322", "0.49150586", "0.49076363", "0.48760238"...
0.7549056
0
Set the value of the FilterValue input for this Choreo. ((optional, string) Allows you to filter callback data by a query parameter keyvalue pair. FilterName is required when using this input.)
def Jqzt(YKHO, BWXx): super(Gp8X, YKHO)._set_input('FilterValue', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UZhw(YKHO, BWXx):\n super(Gp8X, YKHO)._set_input('FilterName', BWXx)", "def KUnM(YKHO, BWXx):\n if not isinstance(BWXx, dict):\n raise TypeError('input must be a dictionary')\n YKHO._filters = BWXx", "def FHLw(YKHO, mWFP, BWXx):\n if mWFP in YKHO._filters:\n return YKHO._filters[m...
[ "0.68018854", "0.6394899", "0.6008499", "0.5973909", "0.58091944", "0.5748029", "0.547746", "0.5406157", "0.53657585", "0.52979106", "0.52075994", "0.51972777", "0.5194606", "0.5178163", "0.5155833", "0.51517075", "0.5078385", "0.5062068", "0.5025186", "0.50097245", "0.493763...
0.7905017
0
Get launch config data based on current name. Handle base64 decode automatically. Returned user data is always decoded. Return None if config doesn't exist.
def NMoC(YKHO): z5la = YKHO._client.describe_launch_configurations(LaunchConfigurationNames=[YKHO._name]) if len(z5la['LaunchConfigurations']) == 0: return None else: GPtr = z5la['LaunchConfigurations'][0] GPtr['UserData'] = WR89.b64decode(GPtr['UserData']) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n GPtr = YKHO.user_file.parseString(YKHO.content)\n return GPtr", "def uBeC(YKHO):\n if YKHO._key not in YKHO._user_keys():\n raise usbH(YKHO._key, YKHO._user_keys())\n return next((nPrm for nPrm in YKHO.CONFIG_DATA if nPrm.key == YKHO._key))", "def Fgow() -> dict:\n BWXx ...
[ "0.6100935", "0.5985278", "0.5898775", "0.58858794", "0.58721983", "0.57478404", "0.5664038", "0.56504303", "0.56383246", "0.5636168", "0.55852795", "0.55733395", "0.5573219", "0.5550289", "0.5548633", "0.55384517", "0.5532542", "0.5532542", "0.55278385", "0.5510076", "0.5507...
0.6894191
0
Make a copy of current launch config and return new one. Optionally delete old one. This is composite API that is built with above basic APIs. No need to retry as all underlying APIs already have retry.
def jth9(YKHO, Dokz, AJ7R, SSfd=False, ay5O=False): GPtr = YKHO.get() GPtr.update(AJ7R) GPtr['LaunchConfigurationName'] = Dokz GPtr.pop('LaunchConfigurationARN') GPtr.pop('CreatedTime') GPtr.pop('KernelId') GPtr.pop('RamdiskId') if not SSfd and GPtr.get('SpotPrice', None) != None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ptiL():\n return wSxb(KlpC())", "def PTpj(YKHO):\n return YKHO.connection.delete_launch_configuration(YKHO.name)", "def GPtr(YKHO, **B2fa):\n KT86 = P4t4.config.copy()\n P4t4.config.update(B2fa)\n try:\n yield\n finally:\n P4t4.config = KT86", "def SiRx(qIxc):\n if Hy7s...
[ "0.5890484", "0.5746978", "0.57004786", "0.56777227", "0.5619529", "0.5597216", "0.55249244", "0.55112195", "0.54345816", "0.5426472", "0.5418448", "0.53655326", "0.5355111", "0.5348264", "0.5319761", "0.53048426", "0.529094", "0.5278624", "0.5267941", "0.5265533", "0.5221846...
0.71211535
0
Apply Sobel filter and threshold absolute values
def Sk6z(VXjJ, ENzu='x', oVn9=0, cdWX=255): ITiw = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY) if ENzu == 'x': H9dw = XC5k.Sobel(ITiw, XC5k.CV_64F, 1, 0) else: H9dw = XC5k.Sobel(ITiw, XC5k.CV_64F, 0, 1) SB9r = oyIN.absolute(H9dw) WINY = oyIN.uint8(255 * SB9r / oyIN.max(SB9r)) dbuB =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JfRw(YKHO, LNo8, M6vu, UFR4, i1vS, acJe, DCtH, r9iZ, Y73o):\n qJtC = XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2HLS).astype(oyIN.float)\n yzxJ = qJtC[:, :, 1]\n mS2J = XC5k.Sobel(yzxJ, XC5k.CV_64F, 1, 0, ksize=M6vu)\n O6OF = oyIN.absolute(mS2J)\n iWhD = oyIN.uint8(255 * O6OF / oyIN.max(O6OF))\n FV0D ...
[ "0.66069436", "0.6569269", "0.6554255", "0.6549679", "0.6531978", "0.6531455", "0.64829326", "0.6441156", "0.6393237", "0.63741183", "0.6358776", "0.6347044", "0.6327619", "0.6327428", "0.63074523", "0.6290886", "0.6228088", "0.6219642", "0.6201386", "0.6122688", "0.61210287"...
0.67781943
0
Takes as input a DataFrame with sentences in column 'text_col'. Appends at least one new column to the DataFrame containing lists of single word tokens.
def wr3U(YKHO, jQ3Z: DataFrame, CDpb='text') -> hxoQ: z_aV = jQ3Z[CDpb] if YKHO.to_lower: z_aV = z_aV.apply(lambda l5Ny: l5Ny.lower()) if YKHO.use_remove_punctuation: z_aV = z_aV.apply(lambda l5Ny: YKHO.remove_punctuation(l5Ny)) jQ3Z['tokenized'] = z_aV.apply(lambda l5Ny: Dhdw.tokenize.w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TdB_(bOBl):\n K9NE = SrFi()\n b0j5 = K9NE.Defaults.create_tokenizer(K9NE)\n mkhU = L7hP('english')\n bOBl.loc[:, 'tokens'] = bOBl.loc[:, 'content'].apply(lambda VmPb: [eOtH.lemma_ for eOtH in b0j5(VmPb) if eOtH.is_stop is False and eOtH.is_space is False and (eOtH.is_punct is False)])\n bOBl.loc...
[ "0.6942791", "0.66210395", "0.6583244", "0.65702057", "0.6567869", "0.6556804", "0.65534335", "0.6474945", "0.6437405", "0.64066166", "0.63961506", "0.63075334", "0.6300862", "0.62839985", "0.6225679", "0.6165526", "0.6100412", "0.60733753", "0.60692984", "0.60473436", "0.604...
0.78136414
0
Gets the next alphabetical string that will be seached
def vB5d(E8Ky, VUg_=True): if not VUg_: E8Ky.append(0) return E8Ky E8Ky[-1] = E8Ky[-1] + 1 while E8Ky[-1] > 25: if len(E8Ky) > 1: del E8Ky[-1] E8Ky[-1] = E8Ky[-1] + 1 else: return None return E8Ky
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rrO6(sZqf):\n m_vm = ''\n YPaw = 1\n if sZqf in JSRc:\n m_vm = m_vm + JSRc[JSRc.index(sZqf) + YPaw % len(JSRc)]\n if sZqf in tcl1:\n m_vm = m_vm + tcl1[tcl1.index(sZqf) + YPaw % len(tcl1)]\n else:\n m_vm += l5Ny\n return m_vm", "def x6am(YKHO):\n if YKHO._index >= le...
[ "0.69399875", "0.6792382", "0.6750752", "0.6509938", "0.6430395", "0.635784", "0.62934947", "0.6290743", "0.62730163", "0.62017727", "0.61728597", "0.6155928", "0.61519635", "0.61435574", "0.6138284", "0.6106652", "0.6009435", "0.60089934", "0.6008075", "0.5978922", "0.594655...
0.6689027
3
Set data directory This is useful so data directory paths don't need to be changed everytime you pull from or push to github. To make this useful, make sure you perform step 2, as defined for your operating system.
def aioR(): from pathlib import Path import os VlBm = os.environ.get('CONDA_PREFIX') PCFB = os.environ.get('CHRONO_DATA_DIR') if VlBm and (not PCFB): PCFB = os.path.join(VlBm, 'share', 'chrono', 'data', '') if not PCFB: PCFB = os.path.join(Path(os.path.dirname(os.path.realpath(xA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xd_Z(pmON):\n if not Hy7s.path.exists(pmON):\n return False\n set('data_dir', pmON)\n return True", "def xd_Z(pmON):\n JGPV.DATA_DIRECTORY = pmON\n return JGPV.DATA_DIRECTORY", "def Jify(lCFC, wNUn=True):\n if Hy7s.path.isdir(lCFC):\n viqz.datadir = lCFC\n if wNUn:\n ...
[ "0.77309895", "0.76964873", "0.76140803", "0.75543046", "0.7384418", "0.7351647", "0.73477787", "0.7342367", "0.73065317", "0.72858703", "0.72024024", "0.7127364", "0.7028469", "0.7001204", "0.692361", "0.6873261", "0.68504566", "0.68076813", "0.679544", "0.679544", "0.678317...
0.61567545
61
Returns simple averaged lightness of a QColor Newer Qt Versions implement this as part of QColor Reimplemented for backwardscompatibility
def CFIr(YKHO, qfpW): Cd_s = qfpW.toHsv() return Cd_s.valueF()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TfMy(YKHO):\n CxYD = min(YKHO.red, YKHO.green, YKHO.blue)\n Iusg = max(YKHO.red, YKHO.green, YKHO.blue)\n qqgr = (Iusg + CxYD) / 2\n agxD = qqgr / 255\n return agxD", "def TfMy(qfpW):\n DE22 = max(qfpW.red, qfpW.green, qfpW.blue)\n eQzM = min(qfpW.red, qfpW.green, qfpW.blue)\n return ...
[ "0.740297", "0.6967703", "0.6077544", "0.60499024", "0.6023646", "0.5956245", "0.5927049", "0.588251", "0.57679546", "0.5754848", "0.56590307", "0.56243664", "0.5601044", "0.55973107", "0.5594193", "0.55738705", "0.55521625", "0.5531151", "0.5518151", "0.55086625", "0.5470304...
0.6423211
2
Moves the head by setting pan/tilt angles.
def Llzv(YKHO, zvTx, paov): if zvTx <= YKHO.MIN_PAN: zvTx = YKHO.MIN_PAN if zvTx >= YKHO.MAX_PAN: zvTx = YKHO.MAX_PAN if paov <= YKHO.MIN_TILT: paov = YKHO.MIN_TILT if paov >= YKHO.MAX_TILT: paov = YKHO.MAX_TILT AU8u = sNsT.msg.JointTrajectoryPoint() AU8u.position...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fc20(YKHO):\n YKHO.right()\n ITS7.sleep(1)\n YKHO.stop()\n YKHO.servo(1000)\n ITS7.sleep(0.25)\n YKHO.servo(2000)", "def Fc20(YKHO):\n YKHO.right()\n ITS7.sleep(1)\n YKHO.stop()\n YKHO.servo(1000)\n ITS7.sleep(0.25)\n YKHO.servo(2000)", "def AuPh(YKHO):\n YKHO.forward...
[ "0.6873781", "0.6873781", "0.66479665", "0.6523683", "0.6478677", "0.63475657", "0.6333728", "0.62873816", "0.61450356", "0.60849804", "0.6084441", "0.6083106", "0.6033438", "0.60284775", "0.6008307", "0.6004985", "0.599577", "0.5981736", "0.59813046", "0.597696", "0.59614414...
0.6274351
8
Convert class labels from scalars to onehot vectors.
def kPpE(lexL, jTqs): assert lexL.ndim == 1 or lexL.ndim == 2 assert lexL.dtype == oyIN.int32 if lexL.ndim == 1: KIEE = 0 ToR1 = lexL.shape else: KIEE, ToR1 = lexL.shape lexL = lexL.reshape(-1) svPB = lexL.shape[0] whV7 = oyIN.arange(svPB) * jTqs xZkh = oyIN.zeros...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_categorical(Crrw, KndY)", "def KLLm(Crrw, KndY=None):\n PnsN = nMvt.utils.to_categorical(Crrw, KndY)\n return PnsN", "def LQDo(Crrw: torch.Tensor, jTqs: int) -> ht2j.Tensor:\n if len(Crrw.size()) == 1:\n return vuvg.one_hot(Crrw, jTqs).float(...
[ "0.8250402", "0.807683", "0.80523187", "0.7977843", "0.7908335", "0.7900327", "0.7892233", "0.7869711", "0.7849721", "0.7849721", "0.7826951", "0.7826122", "0.77677035", "0.7765413", "0.77540547", "0.77540547", "0.77540547", "0.77489346", "0.7742955", "0.7737176", "0.77226317...
0.7453988
50
Destructor for closing the file.
def fFx9(YKHO): try: YKHO._document.close() except: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fFx9(YKHO):\n YKHO.file.close()", "def fFx9(YKHO):\n YKHO.f.close()", "def fFx9(YKHO):\n if YKHO.file is None:\n return\n try:\n YKHO.file.close()\n del YKHO.file\n YKHO.file = None\n except:\n fhOf(__name__).warning('Error on file close', exc_info=True)", ...
[ "0.8550637", "0.8234664", "0.8227588", "0.820426", "0.8169503", "0.8163051", "0.8162041", "0.81108993", "0.80421376", "0.8037555", "0.8037555", "0.8012206", "0.79659367", "0.79543996", "0.79543996", "0.79279643", "0.79279643", "0.790234", "0.78995144", "0.78450024", "0.783765...
0.0
-1
crop patch based on offset
def be7K(nPrm, vgXP, Hixk, u5Om=None): ROpF = oyIN.array(nPrm.shape[1:]) Hixk = oyIN.array(Hixk) vgXP = oyIN.array(vgXP[::-1]) yKcO = ROpF // 2 - Hixk // 2 + vgXP Os4s = yKcO + Hixk assert oyIN.all(yKcO >= 0) PKko = [slice(KCHu, tTpl) for KCHu, tTpl in zip(yKcO, Os4s)] PKko = tuple([slic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvwT(VXjJ, oeNL, zNig):\n xvJ_, QYSp = VXjJ.size\n o4D3, si3g = oeNL\n q53Q = idx7 = zNig\n if xvJ_ > q53Q or QYSp > idx7:\n return VXjJ.crop((o4D3, si3g, o4D3 + q53Q, si3g + idx7))\n return VXjJ", "def zaKV(ZHfW, iNZn=0.5):\n zt1J, vhEE, WioY, U8q3 = (0, 0, 0, 0)\n for Mkmy in ra...
[ "0.6808927", "0.66510886", "0.64758086", "0.6462376", "0.64524406", "0.644268", "0.6430705", "0.64189816", "0.6403126", "0.6398769", "0.63308966", "0.6295238", "0.62709475", "0.62572837", "0.6250783", "0.6242364", "0.6230135", "0.6202504", "0.61964375", "0.6191344", "0.618909...
0.6887072
0
Updates relu activation functions so that 1 stores output in forward pass 2 imputes zero for gradient values that are less than zero
def drfk(YKHO): def XVC9(yR_P, g6LF, EYyA): """ If there is a negative gradient, change it to zero """ nWP1 = YKHO.forward_relu_outputs[-1] nWP1[nWP1 > 0] = 1 e1d4 = nWP1 * ht2j.clamp(g6LF[0], min=0.0) del YKHO.forward_relu_outputs[-1] return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drfk(YKHO):\n\n def XVC9(yR_P, g6LF, EYyA):\n \"\"\"\n If there is a negative gradient, change it to zero\n \"\"\"\n nWP1 = YKHO.forward_relu_outputs[-1]\n nWP1[nWP1 > 0] = 1\n e1d4 = nWP1 * ht2j.clamp(g6LF[0], min=0.0)\n del YKHO.forward_relu_outputs[-1]\n ...
[ "0.71021515", "0.7060326", "0.705311", "0.70163274", "0.6981374", "0.69719243", "0.6938241", "0.6885461", "0.6854037", "0.6761753", "0.67363274", "0.660197", "0.6565968", "0.65620834", "0.6528729", "0.647825", "0.64745504", "0.64682955", "0.6464981", "0.64511496", "0.64208275...
0.6893404
7
Gets the path to the model and solver of an epoch if specified or to the best model and last solver if epoch is None
def Z3E3(gXgy, qtWj): print('Getting model and solver paths') BOs1 = [] VALr = [] for bGrB, bGrB, _PsJ in Hy7s.walk(gXgy): BOs1 = [IznC for IznC in _PsJ if 'model' in IznC] VALr = [IznC for IznC in _PsJ if 'solver' in IznC] if not BOs1 or not VALr: raise Exception('Model or s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OXCi(NUFl):\n hp8U = Hy7s.path.dirname(NUFl)\n if Hy7s.path.basename(hp8U) == 'variables':\n return Hy7s.path.join(Hy7s.path.dirname(hp8U), ZylS.saved_model.constants.SAVED_MODEL_FILENAME_PB)\n else:\n YLEN = Hy7s.path.join(hp8U, 'export', 'best_exporter')\n ChzL = ZylS.gfile.Glob...
[ "0.6295518", "0.613557", "0.61076945", "0.61018384", "0.6100248", "0.60954654", "0.6032847", "0.60254425", "0.60185444", "0.60015637", "0.59962326", "0.5953621", "0.5937085", "0.5926782", "0.59211683", "0.591372", "0.590693", "0.5891418", "0.58492553", "0.5837758", "0.5823724...
0.71200794
0
Create plot for the confusion matrix for binary gender prediction and compute scores for accuracy, precision, recall, f1 and auc
def fHXl(EE3v, OsWj, qfpW='black'): x5MY.rcParams['text.color'] = qfpW x5MY.rcParams['axes.labelcolor'] = qfpW x5MY.rcParams['xtick.color'] = qfpW x5MY.rcParams['ytick.color'] = qfpW Bcwd = Wbxz.confusion_matrix(EE3v, OsWj) Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] aFTQ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(H96n, aMgO, KndY, NkkI=True, leAC='Average accuracy \\n', iMGt=QrM1.cm.Blues, PJWX=0, rhd_=0):\n from sklearn.metrics import confusion_matrix\n import itertools\n Bcwd = confusion_matrix(H96n, aMgO)\n vjyh = oyIN.sum(oyIN.diag(Bcwd)) / oyIN.sum(Bcwd) * 100.0\n if NkkI:\n Bcwd = Bcwd....
[ "0.7401703", "0.735505", "0.7285023", "0.72712344", "0.72431856", "0.72395736", "0.72271305", "0.7206144", "0.72049004", "0.71924424", "0.71798235", "0.7176012", "0.7166566", "0.7158534", "0.71576416", "0.7141715", "0.71383744", "0.7126315", "0.7124061", "0.71219057", "0.7121...
0.7456385
0
Create plot of artificial signal which maximizes the activation of a filter at a layer in a model using gradient ascent
def PMfa(C3ST, gEmA, ulrI, zi3C, tspZ=0.1, XtRi=100, dw8I=5, droh=2.0, qfpW='black'): x5MY.rcParams['text.color'] = qfpW x5MY.rcParams['axes.labelcolor'] = qfpW x5MY.rcParams['xtick.color'] = qfpW x5MY.rcParams['ytick.color'] = qfpW KcyK = ht2j.randn((1, 1, int(zi3C * (1 / droh) ** dw8I))) YoQM ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjms():\n fUYa = oyIN.arange(-6, 6, 0.1)\n QrM1.plot(fUYa, m1Hg(fUYa))\n WKvO = 2.5\n QrM1.scatter(WKvO, m1Hg(WKvO))\n QrM1.plot(fUYa, Iv7a(fUYa, WKvO))\n QrM1.show()", "def UjTT(Mpvk, h4TO, ppBc, wSAP, N8L0, JEq5):\n dwFt, hh7H = QrM1.subplots()\n hh7H.scatter(Mpvk['Weight'], Mpvk['H...
[ "0.6339056", "0.5884531", "0.5867904", "0.58381253", "0.5698124", "0.5683967", "0.56480646", "0.56281555", "0.5625266", "0.5610442", "0.5598226", "0.5584104", "0.55819684", "0.55789673", "0.55687416", "0.5568734", "0.55559456", "0.5548075", "0.5542615", "0.55394775", "0.55381...
0.6964018
0
Deserialize datetime object into string form for JSON processing.
def tOfJ(BWXx): if BWXx is None: return None return [BWXx.strftime('%Y-%m-%d'), BWXx.strftime('%H:%M:%S')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JW5R(YKHO, YEnM):\n if isinstance(YEnM, qcWV.datetime):\n return YEnM.isoformat()\n raise TypeError('Type not serializable')", "def LAQU(YEnM):\n if isinstance(YEnM, qcWV):\n Pt6R = YEnM.isoformat()\n return Pt6R\n raise TypeError('{} is not JSON serializable.'.format(YEnM))"...
[ "0.6995824", "0.6982557", "0.69000393", "0.6865064", "0.68128496", "0.6749708", "0.6649493", "0.66324556", "0.65954465", "0.65469813", "0.6542357", "0.6538773", "0.6487021", "0.6480456", "0.64397836", "0.63939315", "0.6364729", "0.6356435", "0.633706", "0.63110447", "0.629170...
0.5695315
76