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
Load encoder trained weights useful if we are interested in using the network right away
def WSaB(YKHO, WJhC): YKHO.encoder.load_weights(WJhC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H_1o(YKHO):\n YKHO.npz_weights = oyIN.load(YKHO._weight_file)\n YKHO._load_byte_embedding()\n YKHO._load_cnn_weights()\n YKHO._load_highway()\n YKHO._load_projection()", "def SUd8(YKHO, SkYi):\n if not YKHO.encoder_decoder:\n raise TypeError('You need to build a model using the metho...
[ "0.71977484", "0.7108447", "0.7079507", "0.7074155", "0.7068651", "0.69985104", "0.68239534", "0.6814837", "0.6799466", "0.6793236", "0.6781963", "0.6750167", "0.67456377", "0.66809803", "0.6642684", "0.6608131", "0.6605895", "0.6573823", "0.65735775", "0.6532399", "0.6518993...
0.822055
0
Returns a onehotencoded tensor given a character. Uses string.printable as a dictionary.
def BEIo(bseI): _PWk = ZPW9.find(bseI) return _PWk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpzK(YKHO, GIN8):\n GIN8 = YKHO.text_to_int(GIN8)\n GIN8 = iQnE(ht2j.tensor(GIN8))\n GIN8 = ht2j.nn.functional.one_hot(GIN8, len(YKHO.index_map))\n return GIN8.transpose(0, 1)", "def f8a7(YKHO, input, rb7a):\n hlel = ZylS.one_hot(input, rb7a)\n return hlel", "def ycPt(YKHO, MkP_):\n vO...
[ "0.7244076", "0.7047601", "0.69945157", "0.694073", "0.69263846", "0.6899737", "0.6858095", "0.6839027", "0.67830604", "0.67167556", "0.66415966", "0.6640895", "0.66262805", "0.65833485", "0.6556137", "0.6555406", "0.65040916", "0.6446278", "0.64401245", "0.6432777", "0.64241...
0.0
-1
Get Astris Probe ID for expect auto run.
def fKaz(fsEL): BuV5 = fsEL if ZbWC.search('-', BuV5): BuV5 = BuV5.split('-')[1] Ylbp, o5Dc = RTEV([VZuY + '/auto_reset.rep', '-1'], False) for ZfUD in o5Dc: if ZbWC.search(BuV5, ZfUD): return ZbWC.search('[0-9]?', ZfUD).group() return '-1'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fKaz(fsEL, p2Yq):\n BuV5 = fsEL\n if ZbWC.search('-', BuV5):\n BuV5 = BuV5.split('-')[1]\n Ylbp, o5Dc = RTEV([VZuY + '/runAstrisID.exp'], True, p2Yq)\n for ZfUD in o5Dc:\n if ZbWC.search(BuV5, ZfUD):\n jAwg = ZbWC.search('[0-9]{1}', ZfUD).group()\n PMwo('getAstri...
[ "0.62572783", "0.60221374", "0.59610516", "0.5781551", "0.54951805", "0.54826176", "0.53770113", "0.5346869", "0.5300724", "0.5293963", "0.5200376", "0.5192322", "0.5189581", "0.5182847", "0.51727706", "0.51677996", "0.516563", "0.5154109", "0.5132441", "0.5076258", "0.505942...
0.63461185
0
Get the address book from the connection and set it as site. Usable in a `yield_fixture`. Resets the site to its previous value at exit.
def qpDA(UzPC): Rqhg = UzPC.rootFolder['ab'] with vgsW.component.hooks.site(Rqhg): yield Rqhg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qpDA(YKHO):\n if not YKHO.__site:\n YKHO.__site = HAC5(YKHO)\n return YKHO.__site", "def KYwS(YKHO):\n YKHO.site_id = MMe4.sites['next id']\n MMe4.sites['object list'].append(YKHO)\n MMe4.sites['next id'] += 1", "def nNNI(YKHO, nNNI):\n YKHO._binding_site = nNNI", "def cgaS(YKHO)...
[ "0.53857213", "0.5260137", "0.52374446", "0.5166174", "0.5025457", "0.5025457", "0.4981199", "0.49783882", "0.4973166", "0.49452066", "0.49368873", "0.4936476", "0.49046156", "0.48921686", "0.4889268", "0.4889268", "0.48857737", "0.48744017", "0.48673022", "0.47820503", "0.47...
0.70541525
0
Convert an etree into a list (lines without leading whitespace.)
def zNvn(YKHO, QGpr): return [WKvO.strip() for WKvO in JrOA.etree.tostring(QGpr).split(b'\n') if WKvO.strip()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWL4(YKHO):\n return [XkN1.text() for XkN1 in srMr(YKHO._doc.firstBlock())]", "def n6UX(WFse, NkTM):\n return [WKvO.text for WKvO in WFse.xpath(NkTM)]", "def Du39(YKHO):\n if not YKHO.root():\n return None\n YKHO._synchronize_attributes()\n return YKHO._preorder_traverse_to_list_helpe...
[ "0.65748215", "0.64058447", "0.62444264", "0.6187622", "0.61562085", "0.598008", "0.5975466", "0.59687763", "0.59673715", "0.5877245", "0.5877245", "0.58539253", "0.58449924", "0.5841456", "0.5814778", "0.5796926", "0.578838", "0.571083", "0.5656784", "0.56325203", "0.5616504...
0.885886
0
Assert accessing a URL is forbidden for the current user.
def riX1(YKHO, bD7m): with trZe.raises(vgsW.testbrowser.browser.HTTPError) as XObx: YKHO.open(bD7m) assert 'HTTP Error 403: Forbidden' == str(XObx.value), 'Raised "{}" instead of HTTP-403 Forbidden'.format(XObx.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCeC(YEnM):\n d8Qc.open_url(YEnM.url)\n assert uDqk.is_error_403()", "def gZZn(YKHO):\n YKHO.assertStatusCode(YKHO.url, 403)", "def gZZn(YKHO):\n YKHO.assertStatusCode(YKHO.url, 403)", "def gZZn(YKHO):\n YKHO.assertStatusCode(YKHO.url, 403)", "def gZZn(YKHO):\n YKHO.assertStatusCode(Y...
[ "0.8000752", "0.7694377", "0.7694377", "0.7694377", "0.7694377", "0.7608875", "0.7608875", "0.7608875", "0.7608875", "0.76026374", "0.7563031", "0.7559528", "0.7456628", "0.7259732", "0.72473574", "0.7137632", "0.71092284", "0.7105218", "0.703141", "0.702715", "0.70260704", ...
0.82247144
0
Return the path of the current URL.
def pmON(YKHO): return YKHO._selenium.current_url.replace('http://{}'.format(YKHO._address), '')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NE63(YKHO):\n return KVWQ(YKHO.browser.current_url).path", "def bD7m(YKHO):\n bD7m = Hy7s.environ.get('PATH_INFO') or Hy7s.environ.get('REQUEST_URI')\n return bD7m if bD7m else ''", "def bW0a():\n return GwPS", "def r_lF(YKHO):\n pmON = NoPH(YKHO.base_url())[2]\n if pmON.endswith('/'):\...
[ "0.8045751", "0.7860338", "0.7843175", "0.7681547", "0.7657414", "0.7556152", "0.7454252", "0.73733723", "0.72848135", "0.72544324", "0.7248617", "0.7246251", "0.7240855", "0.7232208", "0.7232208", "0.72299534", "0.72229844", "0.7148184", "0.71357614", "0.71186143", "0.705911...
0.78406364
3
Return the message string.
def zAg0(YKHO): return YKHO.msg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dL4c():\n return Ol8d", "def Ol8d(YKHO) -> str:\n return YKHO.fields.get('msg', YKHO.raw_string)", "def tO9_(YKHO):\n return YKHO.message", "def dL4c() -> str:\n pass", "def Ol8d(YKHO) -> str:\n return YKHO.__message", "def Ol8d(YKHO) -> str:\n return qe4Y.get(YKHO, 'message')", "...
[ "0.84238553", "0.8370318", "0.81186795", "0.809563", "0.80558914", "0.8037184", "0.8037184", "0.8037184", "0.8037184", "0.8037184", "0.798403", "0.79701376", "0.79701376", "0.79701376", "0.79701376", "0.79701376", "0.79701376", "0.7948221", "0.79359037", "0.79209256", "0.7910...
0.7117751
68
Opens a new database connection if there is none yet for the current application context.
def GGod(): if not hasattr(Oa1e, 'sqlite_db'): Oa1e.sqlite_db = _uJw() return Oa1e.sqlite_db
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db", "def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)", "def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)", "def W...
[ "0.7737639", "0.7582971", "0.73180443", "0.71693045", "0.70220166", "0.6966687", "0.6954785", "0.69486743", "0.6897534", "0.6842663", "0.68292314", "0.68191963", "0.680592", "0.67950195", "0.67697805", "0.6762173", "0.6751266", "0.6746273", "0.67316663", "0.670031", "0.668866...
0.640242
81
Y location of the center of the vox origin cell.
def bcFp(YKHO): return YKHO._origin[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVAh(YKHO) -> int:\n return YKHO.data.y_centre >> 4", "def zVjK(YKHO):\n return YKHO.origin_coordinates[1]", "def boAb(YKHO):\n return YKHO.rect.y", "def cxow(YKHO):\n return YKHO._y_origin", "def bmPF(YKHO):\n return YKHO.y0 + oyIN.arange(YKHO.ny) * YKHO.dy", "def boAb(YKHO):\n ret...
[ "0.7643201", "0.75332236", "0.7500555", "0.748291", "0.741654", "0.73992527", "0.73974466", "0.7372707", "0.73612255", "0.73535573", "0.7312977", "0.7310892", "0.7299653", "0.72099054", "0.7155415", "0.71518373", "0.71356577", "0.7087288", "0.7079076", "0.7058118", "0.7057718...
0.7770951
0
`geosoft.gxapi.GXPG` instance (3D) for this vox. The GXPG will always index z from minimum elevation (bottom of the vox).
def kDg1(YKHO): if YKHO._pg is None: YKHO._pg = YKHO.gxvox.create_pg() return YKHO._pg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wtBp(YKHO):\n if YKHO._gxvoxe is None:\n YKHO._gxvoxe = L5ex.GXVOXE.create(YKHO.gxvox)\n return YKHO._gxvoxe", "def HFNJ(YKHO, WKvO, LVAh, epBp):\n return YKHO.data[WKvO, LVAh, epBp]", "def JNNX(YKHO):\n WjEt = Au3N[YKHO.x_min:YKHO.x_max:YKHO.nxsteps * 1j, YKHO.y_min:YKHO.y_max:YKHO.nyst...
[ "0.6002154", "0.57037175", "0.5678189", "0.56597245", "0.56174684", "0.56116027", "0.55986893", "0.55934274", "0.55800647", "0.54536456", "0.5416887", "0.53505135", "0.53166646", "0.53103614", "0.5301282", "0.5299376", "0.5292475", "0.527485", "0.5247133", "0.52323467", "0.52...
0.6669877
0
True if z is elevation. Can be set.
def EN74(YKHO): return not YKHO._is_depth
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCAH(YKHO, epBp):\n if epBp <= YKHO.getZMin():\n return False\n if epBp >= YKHO.getZMax():\n return False\n else:\n return True", "def _xgi(YKHO):\n ...", "def _xgi(Fw8z, **B2fa):\n return _e0h.has_z(Fw8z, **B2fa)", "def rEtI(YKHO):\n return YKHO.dz is not None", ...
[ "0.6915572", "0.67464244", "0.63976145", "0.63737357", "0.62254256", "0.6122626", "0.60416377", "0.5987085", "0.59565634", "0.58624625", "0.5848523", "0.5845565", "0.5838115", "0.58047813", "0.57426697", "0.5699921", "0.568909", "0.568274", "0.5647695", "0.5646807", "0.563039...
0.76048076
0
Sets the text of this VoiceTestDefinition.
def l5Ny(YKHO, l5Ny): if l5Ny is None: raise ValueError('Invalid value for `text`, must not be `None`') if l5Ny is not None and len(l5Ny) > 1024: raise ValueError('Invalid value for `text`, length must be less than or equal to `1024`') if l5Ny is not None and len(l5Ny) < 0: raise Val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ju1d(YKHO, l5Ny):\n YKHO._text = l5Ny", "def ju1d(YKHO, l5Ny):\n YKHO._text = l5Ny\n return YKHO", "def eiHf(YKHO, l5Ny):\n YKHO.text = l5Ny", "def eiHf(YKHO, l5Ny):\n YKHO.set_text_f('%s', l5Ny)", "def eiHf(YKHO):\n pass", "def l5Ny(YKHO, l5Ny):\n if l5Ny is None:\n raise...
[ "0.8067421", "0.7943375", "0.79192626", "0.76345444", "0.75078213", "0.74641514", "0.7456194", "0.7456194", "0.7456194", "0.7456194", "0.7456194", "0.7456194", "0.74341553", "0.741207", "0.73176336", "0.7296186", "0.72168875", "0.7184222", "0.714263", "0.7096561", "0.7090245"...
0.63773996
36
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, rU1n): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8456082", "0.83912885", "0.81436425", "0.81406975", "0.8131807", "0.8093013", "0.80912536", "0.80912536", "0.80912536", "0.8084505", "0.8084505", "0.8075543", "0.8075543", "0.8065009" ]
0.0
-1
convert local time to UTC
def Q4GF(a1PO, FEXa): krBy = FEXa.localize(a1PO, is_dst=None) AfX1 = krBy.astimezone(FXGE.utc) return AfX1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KR93(shus):\n shus = shus.replace(tzinfo=yl4j.tzlocal())\n return shus.astimezone(yl4j.tzlocal())", "def KR93(shus: datetime) -> qcWV:\n if shus is None:\n return None\n B8aT = shus.astimezone(yl4j.UTC)\n return B8aT", "def QkJD(_c1T):\n return _c1T + (qcWV.utcnow() - qcWV.now())",...
[ "0.77810234", "0.758805", "0.7319871", "0.73162836", "0.73162836", "0.721521", "0.70631915", "0.70631915", "0.70631915", "0.70206225", "0.6936033", "0.6929881", "0.69084597", "0.68680924", "0.6771832", "0.66714317", "0.6648412", "0.66378766", "0.66121143", "0.657472", "0.6537...
0.7824375
0
convert UTC timestamp to local time
def SdO5(i8WE, FEXa): AfX1 = JRYC.datetime.fromtimestamp(i8WE, tz=FXGE.timezone('UTC')) krBy = AfX1.astimezone(FEXa) return krBy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fye_(E3oo):\n SbIN = qcWV.datetime.strptime(E3oo, '%Y-%m-%dT%H:%M:%SZ').replace(tzinfo=FXGE.utc)\n return SbIN.astimezone(Avpf)", "def AKyY(i8WE, xILc=wyKz):\n E3oo = qcWV.datetime.fromtimestamp(i8WE, tz=xILc)\n return E3oo.astimezone(forW)", "def QB1j(E3oo):\n oZmq = qcWV.utcfromtimestamp(E...
[ "0.78659517", "0.7846324", "0.76822674", "0.7601609", "0.7547206", "0.74419934", "0.743735", "0.73040867", "0.7291476", "0.72130024", "0.7120191", "0.7109391", "0.7106713", "0.70798624", "0.69732815", "0.69682235", "0.6947693", "0.69418275", "0.69271356", "0.68864924", "0.686...
0.8274902
0
Returns a list of selected variables in the current view
def sTJF(YKHO): kc1W = [] if YKHO.ui.variablesStackedWidget.currentWidget() == YKHO.ui.treePage: for d6pt in YKHO.ui.treeView.selectionModel().selectedRows(): SfxX = YKHO.treeFilterModel.mapToSource(d6pt) ZOi4 = SfxX.internalPointer() if ZOi4.variable is not None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lSnF(YKHO):\n return [YKHO.item]", "def lSnF(YKHO):\n return YKHO.item.get_all_variables()", "def kc1W(YKHO):\n return YKHO.get_field('variable')", "def kc1W(YKHO):\n if jSDU.in_save_context():\n return [YKHO._vars[0]]\n return YKHO._vars", "def kc1W(YKHO):\n return YKHO._.vars...
[ "0.6890182", "0.68224275", "0.68167204", "0.6789719", "0.6756814", "0.6725311", "0.6666111", "0.6618946", "0.6522759", "0.64665145", "0.6447478", "0.64048487", "0.6348317", "0.6316992", "0.62837243", "0.62506264", "0.6203347", "0.62001896", "0.6182224", "0.613966", "0.6138310...
0.7452965
0
Returns a list of parameter NULL values, with the preferred one being the first element. Child classes can override this to handle one or more attributes specially.
def yEBq(YKHO, DaW4): UK1W = YKHO.getHungarianPrefix(DaW4) if UK1W in ['id', 'uid', 'i', 'off', 'pct']: return [-1, '', '-1'] elif UK1W in ['l', 'c']: return [Swre(-1), '', '-1'] elif UK1W == 'f': return [''] elif UK1W in ['enm', 'ip', 's', 'ts', 'uuid']: return [''] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UYmj(YKHO) -> list:\n dixj = []\n if YKHO.no_params or YKHO.params_required:\n return []\n else:\n for k78t, Dujw in YKHO.parameters.items():\n if Dujw.default_value:\n dixj.append(Dujw.name)\n return dixj", "def KjUZ(YKHO) -> list:\n dixj = []\n if Y...
[ "0.69190115", "0.64131165", "0.63192934", "0.6291569", "0.6269836", "0.6231749", "0.6221704", "0.62021524", "0.62021524", "0.61993235", "0.60666734", "0.6025088", "0.60132694", "0.5948471", "0.594662", "0.59249294", "0.59194756", "0.5917253", "0.59119874", "0.5906074", "0.588...
0.73671734
0
Checks if the specified attribute value indicates NULL. Return True/False. Note! This isn't entirely kosher actually.
def Q4wG(YKHO, DaW4, SwUt): if SwUt is None: return True Pn22 = YKHO.getAttributeParamNullValues(DaW4) return SwUt in Pn22
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZVwG(YKHO, cgO3, gRqb):\n if gRqb[qgdE]:\n return True\n elif cgO3 is not None:\n return True\n else:\n v4lp = False\n return False", "def DqME(YKHO, wEf2):\n return wEf2 is None", "def uYVM(YKHO):\n return YKHO.value is None", "def uYVM(BWXx: Any) -> bool:\n ...
[ "0.78757244", "0.7438803", "0.74387854", "0.7316441", "0.72109246", "0.7005877", "0.6959067", "0.6959067", "0.6959067", "0.6959067", "0.6959067", "0.6843644", "0.68309885", "0.6794519", "0.67846787", "0.67376745", "0.6705671", "0.6686406", "0.6655515", "0.66371065", "0.659112...
0.85452604
0
Converts an attribute from parameter NULL to database NULL value. Returns the new attribute value.
def RJWK(YKHO, DaW4, SwUt): Wf30 = YKHO.getAttributeParamNullValues(DaW4) if SwUt in Wf30: SwUt = None if DaW4 not in YKHO.kasAltArrayNull else [] elif isinstance(SwUt, list) and SwUt and isinstance(SwUt[0], CjQb): SwUt = jth9.copy(SwUt) for YRbF, bGrB in enumerate(SwUt): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jriz(YKHO):\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YKHO, DaW4)\n jir4 = YKHO._convertAttributeFromParamNull(DaW4, SwUt)\n if SwUt != jir4:\n setattr(YKHO, DaW4, jir4)\n return YKHO", "def oyXB(YKHO, DaW4, SwUt):\n if SwUt is None:\n SwUt = YKH...
[ "0.742224", "0.73244095", "0.729691", "0.5908886", "0.5790638", "0.55650306", "0.55595267", "0.55458456", "0.55324733", "0.5517855", "0.5517855", "0.5517855", "0.5517855", "0.5517855", "0.5517855", "0.5517855", "0.5517855", "0.5517855", "0.5517855", "0.5517855", "0.5517855", ...
0.725843
3
Compares two instances, omitting the given attributes.
def M2WU(YKHO, wfxK, BWMZ): for DaW4 in YKHO.getDataAttributes(): if DaW4 not in BWMZ and getattr(YKHO, DaW4) != getattr(wfxK, DaW4): if not YKHO.areAttributeValuesEqual(DaW4, YKHO.getHungarianPrefix(DaW4), getattr(YKHO, DaW4), getattr(wfxK, DaW4)): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biWw(BzZr, RL4V, o8Kj):\n return [NYKp(f'{BzZr.__class__.__name__}.{hkS8}', (SKE2, EtKK)) for hkS8 in o8Kj if (SKE2 := getattr(BzZr, hkS8)) != (EtKK := getattr(RL4V, hkS8))]", "def Vdqg(YKHO, Elif: 'Attribute') -> bool:\n return not YKHO == Elif", "def qk7K(jzdc, Fg_i, o8Kj, eHNT):\n for hkS8 in o...
[ "0.7461806", "0.6606661", "0.652038", "0.6516327", "0.64668286", "0.6457904", "0.6445087", "0.63312477", "0.631773", "0.6292929", "0.62816066", "0.62139916", "0.6203377", "0.62015563", "0.6198498", "0.6195475", "0.6180157", "0.6173154", "0.6164043", "0.61484087", "0.6146747",...
0.6043878
31
Stringifies the object. Returns string representation.
def Sa1R(YKHO): jCXZ = '' for DaW4 in YKHO.getDataAttributes(): SwUt = getattr(YKHO, DaW4) jCXZ += ', %s=%s' % (DaW4, SwUt) kItf = type(YKHO) if jCXZ == '': return '<%s>' % kItf.__name__ return '<%s: %s>' % (kItf.__name__, jCXZ[2:])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.serialize())", "def Jkv0(Iup5):\n return str(Iup5)", "def HRRg(YKHO, YEnM):\n if YKHO.pretty:\n return CgYo.pformat(YEnM)\n else:\n return str(YEnM)", "def zAg0(YKHO):\n return str(YKHO.obj)", "def yLCI(YKHO):\n return YKHO.__str__()", "de...
[ "0.7506738", "0.74586356", "0.7258361", "0.7218806", "0.71957", "0.7166881", "0.7165539", "0.7139487", "0.7090761", "0.70517224", "0.70501816", "0.7025512", "0.7001984", "0.6948369", "0.6948369", "0.6948369", "0.69387436", "0.6908546", "0.6907089", "0.6905434", "0.6897113", ...
0.0
-1
Validates a string field.
def CWIP(LPdC, ri0o=0, bp39=4096, Pn22=tuple([None, '']), m5CN=True, dMAP=False): if LPdC in Pn22: return (LPdC, None if m5CN else 'Mandatory.') if ri0o is not None and len(LPdC) < ri0o: O8nx = 'Too short, min %s chars' % (ri0o,) elif bp39 is not None and len(LPdC) > bp39: O8nx = 'To...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def esI6(YKHO, BWXx):\n if isinstance(BWXx, bytes):\n try:\n jKi7.text_type(BWXx, 'ascii')\n except UnicodeDecodeError as err:\n try:\n mWFP = YKHO.name\n except AttributeError:\n k3xx = sUXu('Field encountered non-ASCII string %r: %s'...
[ "0.74253744", "0.74208415", "0.7374959", "0.72864664", "0.7246695", "0.71871084", "0.7154195", "0.6989683", "0.6966621", "0.68956023", "0.6889763", "0.68423563", "0.67504436", "0.67465925", "0.6733587", "0.6696586", "0.6682746", "0.6613083", "0.66082656", "0.659321", "0.65776...
0.5729418
90
Validates a string field.
def bnE5(Py_1, ntXh, LPdC, ri0o=0, bp39=4096): LPdC, O8nx = CjQb.validateStr(LPdC, ri0o, bp39, fAllowNull=True) if O8nx is not None: Py_1[ntXh] = O8nx return LPdC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def esI6(YKHO, BWXx):\n if isinstance(BWXx, bytes):\n try:\n jKi7.text_type(BWXx, 'ascii')\n except UnicodeDecodeError as err:\n try:\n mWFP = YKHO.name\n except AttributeError:\n k3xx = sUXu('Field encountered non-ASCII string %r: %s'...
[ "0.74253744", "0.74208415", "0.7374959", "0.72864664", "0.7246695", "0.71871084", "0.7154195", "0.6989683", "0.6966621", "0.68956023", "0.6889763", "0.68423563", "0.67504436", "0.67465925", "0.6733587", "0.6696586", "0.6682746", "0.66082656", "0.659321", "0.6577604", "0.64955...
0.6613083
17
Validates a string field, not null.
def QQBh(Py_1, ntXh, LPdC, ri0o=0, bp39=4096): LPdC, O8nx = CjQb.validateStr(LPdC, ri0o, bp39, fAllowNull=False) if O8nx is not None: Py_1[ntXh] = O8nx return LPdC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cRji(d7pR):\n if d7pR is None or d7pR is '' or type(d7pR) != str:\n raise ValueError('Incorrect value: input should be a string')", "def NL7u(qQNS, UnuI):\n if not isinstance(UnuI, str):\n raise ValueError(qQNS + ' must be a string type')\n if UnuI == '':\n raise ValueError(qQNS...
[ "0.767338", "0.7408153", "0.73341775", "0.72661185", "0.7265452", "0.7163427", "0.7155701", "0.7144745", "0.71218705", "0.7028805", "0.70231056", "0.6969482", "0.69310814", "0.6785847", "0.67741376", "0.6765377", "0.6758959", "0.6721232", "0.66710526", "0.6624626", "0.6575498...
0.62115806
37
Validates a list of text items, not null and len >= 1.
def q5PN(Py_1, ntXh, PlDk, pF6U=None): LPdC, O8nx = CjQb.validateListOfStr(PlDk, asValidValues=pF6U, fAllowNull=False) if O8nx is not None: Py_1[ntXh] = O8nx return LPdC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def foLW(DumB: List[Text]):\n for ZfUD in DumB:\n if Fm8B.check_empty_string(ZfUD):\n return True\n return False", "def pEqd(YKHO):\n DumB = YKHO.cleaned_data['items']\n if len(DumB) < 1:\n iaxi('no_items')\n return DumB", "def m6Jt(YKHO, DumB):\n DZTj = list(filter(N...
[ "0.7195141", "0.6712807", "0.6572784", "0.65014946", "0.6034439", "0.5997386", "0.59821457", "0.58832294", "0.58318144", "0.57791656", "0.57645917", "0.5716486", "0.569774", "0.56956303", "0.56180435", "0.56173664", "0.560659", "0.5600455", "0.5600349", "0.55966073", "0.55952...
0.52953994
42
Gets the database connection. This should only be used for instantiating other ModelLogicBase children.
def yg7i(YKHO): return YKHO._oDb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lxP0(Emd4):\n return Emd4.database.connection", "def WhEs(YKHO):\n YKHO.databaseConnector = h7IZ()", "def v0Hh(YKHO):\n return YKHO.db", "def GGod():\n return FfT0(gCuF.COUCH_DATABASE)", "def GGod(YKHO):\n NCls = getattr(Oa1e, '_database', None)\n if NCls is None:\n NCls = Oa1e...
[ "0.7785817", "0.7329198", "0.71892035", "0.71099144", "0.7093842", "0.7072977", "0.7050669", "0.70497996", "0.70107067", "0.70043844", "0.70043844", "0.6999895", "0.6966073", "0.6965309", "0.69474334", "0.69444954", "0.68784475", "0.6875405", "0.6867934", "0.6867934", "0.6856...
0.74550015
1
Given str (unicode, latin1, or not) return ascii.
def FjoW(EoWa): try: return QMSQ(EoWa).encode('ascii', 'ignore') except UnicodeDecodeError: return EoWa.decode('ascii', 'ignore')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZRf4(vIwR):\n if vIwR is None:\n return\n if isinstance(vIwR, str):\n vIwR = vIwR.decode('utf-8')\n return NkkI('NFKD', vIwR).encode('ASCII', 'ignore')", "def JgCn(vIwR):\n return QMSQ(vIwR).encode('utf-8')", "def GXoZ(KCHu):\n U5bT = ''\n for Npgh in KCHu:\n try:\n ...
[ "0.75257957", "0.7480308", "0.72379214", "0.7105091", "0.70763785", "0.7036202", "0.7002097", "0.6975409", "0.6933777", "0.6864804", "0.68498427", "0.6792946", "0.6772615", "0.6707549", "0.66334283", "0.6578035", "0.65771323", "0.6568837", "0.65534526", "0.65534526", "0.65145...
0.7165687
3
Converts an execution result from EvoROS into a format for Enki.
def YMJ9(YKHO, XKy4): P1dF = oyIN.abs(oyIN.array(XKy4['Actual Speed']) - oyIN.array(XKy4['Goal Speed'])) iG2S = {'error': P1dF} return iG2S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oj3i(YKHO, Nqlg):\n if not Nqlg:\n return {'status': 'Failed', 'msg': 'Final result is not available.'}\n Nqlg = Nqlg.split('\\n')\n exwG = len(Nqlg)\n if exwG == 1:\n return YKHO._result_to_dict(Nqlg[0])\n return {'count': exwG, 'nodes': [YKHO._result_to_dict(zFiD) for zFiD in Nql...
[ "0.61867934", "0.59432", "0.5779423", "0.5740296", "0.56522864", "0.5643881", "0.5544683", "0.55357957", "0.5526455", "0.5514593", "0.5441012", "0.543424", "0.5405496", "0.54001427", "0.5397595", "0.5360325", "0.5354287", "0.5348141", "0.5344966", "0.5336439", "0.5335771", ...
0.7040401
0
Computes a list of ramp parameters from a set of ramp angles.
def UQS9(lICJ, IcVd=20.0, QOxj=0.0, SCLJ=0.0, fA6v=0.0): exwG = len(lICJ) K_C9 = oyIN.zeros((exwG, 6)) K_C9[:, 4] = lICJ K_C9[0, :3] = (QOxj, SCLJ, fA6v) for YRbF in range(1, len(K_C9)): WKvO, LVAh, epBp, P6bq, Ty9i, yzQ0 = K_C9[YRbF - 1] dZjo = oyIN.array([[1.0, 0.0, 0.0, IcVd], [0....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VVrJ(NArs, JT9N, qIxc=dict(n=5, guess=[1, -0.068, 2.33, 0.933, -20.5])):\n return NArs[0] * (1.0 + oyIN.exp(-NArs[1] * JT9N + NArs[2]) + NArs[3] * (JT9N - 0.5) + NArs[4] * (JT9N - 0.5) ** 2)", "def LvV5(YKHO, ICX2, uvrz, Sum1, k3nF=0.0, XA7I=0.125, vnBN=0.0):\n if uvrz > vnBN:\n WXkz = oyIN.hsta...
[ "0.57274586", "0.5697873", "0.5659067", "0.55219954", "0.5388157", "0.5351052", "0.5317289", "0.5316341", "0.5314027", "0.52170384", "0.5198033", "0.5171314", "0.5161887", "0.51576054", "0.5145033", "0.5078017", "0.5044133", "0.50359976", "0.5023953", "0.4967695", "0.49594", ...
0.73454
0
init small cls prob parameters
def GRxn(YKHO, xqoZ): xqoZ['ub_a'] = YKHO.instance.Tensor(YKHO.dtype, (YKHO.one_max_size // YKHO.dsize,), scope=bWon.scope_ubuf, name='ub_a') xqoZ['ub_b'] = YKHO.instance.Tensor(YKHO.dtype, (YKHO.one_max_size // YKHO.dsize,), scope=bWon.scope_ubuf, name='ub_b') xqoZ['zero_tensor'] = YKHO.instance.Tensor(YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, KndY, Zgof):\n YKHO.classes = KndY\n YKHO.data_size = Zgof\n YKHO.conditional_prob = {vOsx: {} for vOsx in KndY}\n YKHO.class_prob = {}", "def FIMM(YKHO, FToD, FKzJ, tFzb, h7pp):\n YKHO.maxBirthProb = FToD\n YKHO.clearProb = FKzJ\n YKHO.resistances = tFzb\n YKHO.mutProb = h...
[ "0.7302363", "0.6900915", "0.68818927", "0.6841304", "0.6841304", "0.6841304", "0.6800334", "0.67570823", "0.67509097", "0.6715748", "0.6658863", "0.6651701", "0.66029763", "0.6585666", "0.6519696", "0.6515056", "0.6482098", "0.64801204", "0.6456403", "0.6446261", "0.64074904...
0.6224274
40
return True if n is a prime number
def T1qg(exwG): if exwG < 2: return False if exwG == 2 | exwG == 3: return True if exwG % 2 == 0 | exwG % 3 == 0: return False for YRbF in range(2, int(PZyS(exwG)) + 1): if exwG % YRbF == 0: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG):\n if exwG % 2 == 0:\n return False\n return all((exwG % YRbF for YRbF in range(3, int(exwG ** 0.5) + 1, 2)))", "def FBNJ(exwG: int) -> bool:\n if exwG > 1:\n for YRbF in range(2, int(exw...
[ "0.8848491", "0.8838163", "0.8630065", "0.86087567", "0.860345", "0.8588974", "0.8586852", "0.85864645", "0.8582361", "0.85803086", "0.8576298", "0.8530761", "0.8525803", "0.84985477", "0.849435", "0.849369", "0.8492627", "0.8485174", "0.8478475", "0.8467156", "0.84513164", ...
0.8309483
42
Get current activated X layout and variant
def Obt4(YKHO): YKHO._engine.start_listen(od4D.EngineListenModes.TRACK_KEYBOARD_STATE) QTBn = YKHO._engine.get_current_state() QHyW = QTBn.group FmZA = YKHO._engine.get_num_groups() if QHyW >= FmZA: QHyW = FmZA - 1 LAOT = YKHO._rec.layouts[QHyW] try: pPTc = YKHO._rec.variants...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTdZ(YKHO):\n return YKHO.floris.farm.layout_x", "def WTYN(YKHO):\n return YKHO._current_layout_name", "def mHRk(YKHO):\n if YKHO.viewFrame._expanded == -1:\n YKHO.currentView = None\n if YKHO.viewFrame._expanded == 0:\n YKHO.currentView = YKHO.topView\n if YKHO.viewFrame._expa...
[ "0.605387", "0.6011307", "0.5662959", "0.5584125", "0.55323714", "0.55323374", "0.5441459", "0.54347074", "0.53799796", "0.53772086", "0.5370531", "0.5356763", "0.5211902", "0.51930255", "0.5178601", "0.51521975", "0.51432216", "0.5141289", "0.51308936", "0.5130336", "0.50792...
0.64071596
0
Return file path for home directory (Windows or Linux)
def ItBp(): return Hy7s.path.expanduser('~')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GwqS(YKHO) -> str:\n U5bT = Hy7s.path.expanduser('~')\n if not Hy7s.path.exists(U5bT):\n raise RuntimeError('The home directory does not exist.')\n return U5bT", "def TjTF():\n from os.path import expanduser\n kZiy = expanduser('~')\n return kZiy", "def aREU(YKHO):\n return pmON...
[ "0.7899748", "0.788515", "0.77646345", "0.7750621", "0.76751894", "0.74801713", "0.74759996", "0.746117", "0.72324556", "0.7166405", "0.71596915", "0.7116814", "0.70766926", "0.70766926", "0.706985", "0.7066753", "0.7035286", "0.7033459", "0.7016307", "0.69969046", "0.6982097...
0.7970018
0
Return a list/array object from the input. If input is a single value (e.g. int, str, etc.) then output is a list of length 1. If input is already a list or array, then output is the same as input.
def qWSX(input): if isinstance(input, list) or isinstance(input, oyIN.array): hlel = input else: hlel = [input] return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NNgq(input):\n if len(input) == 0:\n raise ValueError('input cannot be empty.')\n elif len(input) == 1:\n hlel = input[0]\n if not isinstance(hlel, list):\n hlel = [hlel]\n else:\n hlel = list(input)\n return hlel", "def _Jar(YKHO, input):\n import numpy\...
[ "0.79715425", "0.79601175", "0.7177029", "0.70683575", "0.7038864", "0.7033162", "0.7027106", "0.693738", "0.6904807", "0.6889374", "0.6865846", "0.67974997", "0.6787147", "0.66201985", "0.6612872", "0.65375596", "0.6506465", "0.6494574", "0.64896965", "0.64349765", "0.642113...
0.81284493
0
Return home directory for this computer.
def ItBp(xAU6=['/home/jennifer/', '/home/jwalker/', 'C:/Users/jenfl/']): kZiy = None for MKlR in xAU6: if Hy7s.path.isdir(MKlR): kZiy = MKlR if kZiy is None: raise ValueError('Home directory not found in list of options.') return kZiy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GwqS(YKHO) -> str:\n U5bT = Hy7s.path.expanduser('~')\n if not Hy7s.path.exists(U5bT):\n raise RuntimeError('The home directory does not exist.')\n return U5bT", "def GwqS():\n kZiy = Hy7s.getenv('HOME')\n if kZiy is None:\n kZiy = Hy7s.path.expanduser('~')\n if kZiy == '~...
[ "0.855701", "0.82702553", "0.81739444", "0.813368", "0.8084931", "0.7991301", "0.7881473", "0.7797294", "0.7797294", "0.7732274", "0.7645844", "0.75857484", "0.75256646", "0.7429106", "0.73639876", "0.70974565", "0.70605797", "0.7031101", "0.7005657", "0.6978099", "0.6924563"...
0.69547516
20
Returns the string e.g. 'JAN' corresponding to month
def kTPV(x0eS, CN9P=True): X_bn = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec'] wCH0 = X_bn[x0eS - 1] if CN9P: wCH0 = wCH0.upper() return wCH0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XMq6(YKHO):\n return YKHO.strftime('%B')", "def yZ3l(RYlZ):\n return lvCE[RYlZ - 1].title()", "def LPP1(ZR0n):\n return GRk0.month_name[ZR0n]", "def yZ3l(x0eS):\n pdbK = qcWV.datetime.strptime(str(x0eS), '%m')\n LPP1 = str(pdbK.strftime('%b'))\n return LPP1", "def x0eS(YKHO) -> str:\n...
[ "0.80254114", "0.7758206", "0.7496757", "0.7430308", "0.7304122", "0.7240897", "0.7238173", "0.7206049", "0.71150947", "0.7110264", "0.70951515", "0.70748454", "0.69632405", "0.6923557", "0.68850803", "0.6844022", "0.6844004", "0.6801583", "0.67842543", "0.6770507", "0.669222...
0.77181786
2
Return list of months (112) for the selected season.
def b6tb(qqDt): kb2X = ['jan', 'feb', 'mar', 'apr', 'may', 'jun', 'jul', 'aug', 'sep', 'oct', 'nov', 'dec', 'djf', 'mam', 'jja', 'son', 'mayjun', 'julaug', 'marapr', 'jjas', 'ond', 'ann'] H3Lh = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, [1, 2, 12], [3, 4, 5], [6, 7, 8], [9, 10, 11], [5, 6], [7, 8], [3, 4], [6, 7,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SviJ(YKHO, KBgZ, PObu, QpfX):\n X_bn = [(str(exwG), str(exwG)) for exwG in range(1, 13)]\n return X_bn", "def oy2m(YKHO):\n return YKHO.__months", "def x0eS(YKHO):\n return YKHO._months", "def VIcm(YKHO, nPrm):\n x0eS = []\n B2mP = len(nPrm)\n for WKvO in range(B2mP):\n if nPr...
[ "0.7139848", "0.6721564", "0.6720109", "0.6623628", "0.6539094", "0.6514505", "0.6488083", "0.6457306", "0.63939476", "0.6348616", "0.63004607", "0.62996686", "0.627289", "0.6212778", "0.6148962", "0.61293715", "0.60808825", "0.6069642", "0.60561514", "0.60021144", "0.5996275...
0.8147387
0
Returns the shortest distance between two points on a circle
def p9Vf(KmZ0, LFkc, r1VO=1.0): return oyIN.arccos(oyIN.cos(KmZ0 - LFkc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zG70(cntZ: Point, CsFy: Point) -> auK0:\n return PZyS((CsFy.x - cntZ.x) ** 2 + (CsFy.y - cntZ.y) ** 2)", "def T97B(XHsu, jDcc, r1VO):\n igSk = Y_1E(XHsu[0])\n TGuP = Y_1E(jDcc[0])\n phAj = TGuP - igSk\n JY_u = Y_1E(jDcc[1]) - Y_1E(XHsu[1])\n jzdc = YUNn(phAj / 2.0) ** 2 + YhSR(igSk) * YhSR(...
[ "0.7725868", "0.7439184", "0.7357595", "0.7344613", "0.72522837", "0.7220122", "0.7193245", "0.7157339", "0.71407026", "0.71002424", "0.70845574", "0.70843244", "0.7055846", "0.70451635", "0.70373017", "0.70327085", "0.7028982", "0.70034313", "0.700322", "0.69876975", "0.6985...
0.0
-1
Endpoint for listing the available actions.
def list(YKHO, N0q9): ZMzz = omSe(instance=vUVi.values(), many=True) return geh0.Response(ZMzz.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xASv(YKHO) -> x1iM[str]:\n return list(YKHO.__endpoints.keys())", "def xASv(YKHO):\n return YKHO._action_list", "def Q6sW(YKHO):\n return []", "def IBKe(YKHO, o2VW: Dict[str, object]=None) -> x1iM[eax5]:\n if o2VW is None:\n o2VW = {}\n IatV = {}\n pmON = GSRe('/action/v1beta2/ac...
[ "0.7520243", "0.7514089", "0.74697655", "0.7428571", "0.74263626", "0.738024", "0.7374991", "0.73484164", "0.73089343", "0.72765934", "0.7109194", "0.7079867", "0.7039582", "0.7039582", "0.7022842", "0.7021607", "0.701933", "0.7011425", "0.69516975", "0.6932179", "0.6903505",...
0.0
-1
Add a X conv + 1fc head, with GroupNorm
def A9P5(C3ST, YBVH, yXjA, lmtw): Norb = _Fei.FAST_RCNN.CONV_HEAD_DIM jRcT = _Fei.FAST_RCNN.ROI_XFORM_RESOLUTION cEm9 = C3ST.RoIFeatureTransform(YBVH, 'roi_feat', blob_rois='rois', method=_Fei.FAST_RCNN.ROI_XFORM_METHOD, resolution=jRcT, sampling_ratio=_Fei.FAST_RCNN.ROI_XFORM_SAMPLING_RATIO, spatial_scale=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohPz(Oa1e, khtY, XkN1):\n WKvO = Oa1e.get_node(khtY.input('X')[0])\n FmZA = khtY.attr('groups')\n _hZ2 = khtY.attr('epsilon')\n KMvS = Oa1e.get_node(khtY.input('Scale')[0])\n UqYS = Oa1e.get_node(khtY.input('Bias')[0])\n yvT9 = Bchp.nn.group_norm(WKvO, gamma=KMvS, beta=UqYS, num_groups=FmZA, ...
[ "0.59164983", "0.5727869", "0.566289", "0.5602198", "0.54132724", "0.5386572", "0.53635406", "0.5336108", "0.53305835", "0.5299321", "0.52981585", "0.5246872", "0.5242593", "0.52328086", "0.52215046", "0.5217488", "0.521675", "0.5194634", "0.51860344", "0.51815903", "0.512805...
0.5650509
3
Compute the onedimensional local linear form (f,phi)
def dnYY(WZcn, QOe9, q7wu): Fg_i = oyIN.dot(QOe9.T, WZcn * q7wu) return Fg_i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YyxC(OjRM, QSOD, HawC, YPPW, EiI_, _D6Y, I05K, WD3m, SUMG, MPki, D8Yx, F_tS, lZkw, SA6R):\n zphJ = abs(OjRM) + abs(QSOD) + abs(HawC) + abs(YPPW) + abs(EiI_) + abs(_D6Y) + abs(I05K)\n OjRM = abs(OjRM) / zphJ\n QSOD = abs(QSOD) / zphJ\n HawC = abs(HawC) / zphJ\n YPPW = abs(YPPW) / zphJ\n EiI_ =...
[ "0.62282854", "0.6205783", "0.61138064", "0.60453856", "0.57911116", "0.57124776", "0.57002366", "0.5693049", "0.56332254", "0.562311", "0.5599616", "0.5580253", "0.55734074", "0.5570558", "0.55538654", "0.5532057", "0.55198", "0.550955", "0.54811203", "0.54804295", "0.547950...
0.0
-1
Return a custom 404 error.
def m7kB(tTpl): return ('Sorry, nothing at this URL.', 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf():\n return c1Bu(404)", "def RQdI(P1dF):\n return '404 Error'", "def RQdI(P1dF):\n return 'Bummer, there is nothing at this URL.'", "def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)", "def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)", "def m7kB(XObx):\...
[ "0.81159586", "0.80410045", "0.7738874", "0.77369535", "0.77182025", "0.7689595", "0.7670471", "0.76112473", "0.7602477", "0.7570698", "0.75528365", "0.7545827", "0.751882", "0.74745256", "0.7458403", "0.7455682", "0.74548143", "0.74505144", "0.7442062", "0.7428278", "0.74065...
0.72672606
30
returns true of the uri of the entity is not a bnode
def MPxP(YKHO): return isinstance(YKHO.uri, E5Ed.URIRef)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ec4D(YKHO, j8eK=''):\n if YKHO.get_nodes(j8eK):\n return True\n return False", "def y20b():\n return False", "def Vdqg(YKHO, Elif: 'FirstHref') -> bool:\n return not YKHO == Elif", "def Z8aP(YKHO, QZnA):\n return YKHO.feed_handler.hasEntityLink(QZnA)", "def PZ8e(YKHO):\n return...
[ "0.59824306", "0.5884854", "0.5854641", "0.58155274", "0.57446367", "0.5716514", "0.5707275", "0.5697329", "0.56939554", "0.56939554", "0.5675469", "0.5669543", "0.56520087", "0.5637798", "0.56250226", "0.55768865", "0.55719775", "0.5568983", "0.5504727", "0.5487473", "0.5485...
0.5368802
35
This test simulates a spawn failure with no retry data. If driver spawn raises an exception and there is no retry data available, the instance fault message should not contain any details about rescheduling. The fault message field is limited in size and a long message about rescheduling displaces the original error me...
def JK5_(YKHO): KAOR = YKHO._create_fake_instance_obj() with TMAJ.patch.object(YKHO.compute.driver, 'spawn') as WvBr: WvBr.side_effect = QOe9.TestingException('Preserve this') YKHO.compute.build_and_run_instance(YKHO.context, KAOR, {}, {}, {}, [], block_device_mapping=[]) YKHO.assertEqual('P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fsf4(YKHO):\n\n def n9UN(*qIxc, **B2fa):\n raise QOe9.TestingException()\n YKHO.stub_out('nova.virt.fake.FakeDriver.spawn', n9UN)\n KAOR = YKHO._create_fake_instance_obj()\n YKHO.compute.build_and_run_instance(YKHO.context, instance=KAOR, request_spec={}, filter_properties={}, accel_uuids=[]...
[ "0.69014883", "0.6290831", "0.6179854", "0.6179283", "0.61531883", "0.61460716", "0.612878", "0.6011953", "0.59722716", "0.59667265", "0.5964098", "0.59471655", "0.5941641", "0.5910479", "0.5884765", "0.5883148", "0.5868876", "0.58456767", "0.58346635", "0.57932943", "0.57890...
0.75284296
0
Test behavior when ``filter_properties`` is None. This should disable rescheduling and the original exception should be raised.
def pV9y(YKHO): xVEK = None try: raise QOe9.TestingException('Original') except Exception: _n4O = HwRy.exc_info() YKHO.assertRaises(QOe9.TestingException, YKHO.compute._reschedule_resize_or_reraise, YKHO.context, YKHO.instance, _n4O, YKHO.flavor, YKHO.request_spec, xVEK, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w9B1(YKHO):\n with YKHO.assertRaises(ValueError):\n YKHO.test_table.filter()\n with YKHO.assertRaises(ValueError):\n YKHO.test_table.filter(mode='wrongmode', Property='Property')", "def gea4(YKHO):\n with YKHO.assertRaises(TypeError):\n YKHO.es.register_filter('test')", "def e...
[ "0.6384467", "0.620909", "0.61859995", "0.61689985", "0.6095652", "0.5783643", "0.57635003", "0.5734415", "0.57223344", "0.57017463", "0.56646395", "0.56625396", "0.5657957", "0.565173", "0.561798", "0.56025827", "0.55968857", "0.5586738", "0.5547431", "0.55296874", "0.552965...
0.72615784
0
Generate random position of pipe for upper and lower one's
def mQUG(): cooc = cNbM['pipe'][0].get_height() vgXP = WFHn / 3 actw = tuKI.randrange(0, int(WFHn - cNbM['base'].get_height() - 1.2 * vgXP)) t4QR = glq8 * 10 HbUH = cooc - actw + vgXP bCYe = [{'x': t4QR, 'y': HbUH}, {'x': t4QR, 'y': actw}] return bCYe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yAEs():\n N89L = tuKI.randrange(int(VEzp * 0.5), int(VEzp * 0.8))\n mVjO = zMH2 - 10\n return [{'x': mVjO, 'y': N89L}]", "def JYA6():\n vIPU = bAgR = int(vkJL * 0.3)\n Sp71 = bAgR + tuKI.randint(0, Clpq['pipe_inverted'].get_height() - bAgR)\n bCOc = Clpq['pipe_inverted'].get_height() - Sp71...
[ "0.7413132", "0.7373159", "0.72579426", "0.7049988", "0.69439995", "0.67171836", "0.6709101", "0.6546268", "0.65138906", "0.6510075", "0.64200574", "0.6292457", "0.62199825", "0.62191665", "0.6166769", "0.61153907", "0.60637087", "0.603667", "0.60052437", "0.5946807", "0.5944...
0.73725826
2
Validates Oculus session ticket. Returns a unique ID for this player.
def sVlt(uJjO, NT__, bEAa): lGT4 = 'https://graph.oculus.com/user_nonce_validate?access_token={access_token}&nonce={nonce}&user_id={user_id}' bD7m = lGT4.format(user_id=uJjO, access_token=NT__, nonce=bEAa) try: U5bT = G4JS.post(bD7m, headers={'Accept': 'application/json'}) except G4JS.exceptions...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RFGH():\n NZQz = QePW.get_json()\n try:\n zRgi().load(NZQz)\n except fHeP.ValidationError as e:\n UC4_('Oculus token property %s is invalid' % tTpl.field_name)\n xBXV = NZQz['provider_details']\n NuO0 = qoc5('oculus')\n if not NuO0:\n eTsH(pu1N.SERVICE_UNAVAILABLE, descri...
[ "0.6811697", "0.54994696", "0.547516", "0.53120875", "0.529673", "0.52818805", "0.52368057", "0.5234665", "0.5192762", "0.5180851", "0.5159935", "0.50768316", "0.50611377", "0.50514615", "0.4996486", "0.49881732", "0.498304", "0.4970404", "0.49622655", "0.49377736", "0.492466...
0.56009
1
Just returns the "index" text on the base api url
def d6pt(YKHO): return dict(data='index')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def index():\n return 'Index'", "def Vn7Z(YKHO):\n YKHO.client.get('/')", "def d6pt():\n return 'Thanks for using the Bird Stats API.'", "def d6pt():\n return f'Welcome to the Climate App API!<br/>Available Routes:<br/>/api/v1.0/precipitation<br/>/api/v1.0/stations<br/>/api/v1.0/tobs<br/>/a...
[ "0.7340468", "0.7339138", "0.7306913", "0.72906536", "0.7290007", "0.7149814", "0.71319246", "0.70897335", "0.7062784", "0.7054696", "0.7043132", "0.70310926", "0.70305705", "0.7018785", "0.70159453", "0.6918297", "0.6915131", "0.6913194", "0.68822044", "0.68792313", "0.68792...
0.0
-1
raises click.UsageError if the current experiment has a dependecy using a git+ssh url, since they're not supported on Heroku without docker
def EfBF(eHNT): @zaGL(eHNT) def h3Xc(**B2fa): if '\ngit+ssh' in GkAb('requirements.txt').read_text(): raise k8wH.UsageError(f'This experment has a git+ssh dependency.\nDallinger does not support this for Heroku deployment using non-docker dynos.\nTry using the docker deployment by configuri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ea2a(YKHO):\n geh0 = YKHO.client.get(YKHO.test_url)\n YKHO.assertEqual(200, geh0.status_code)\n YKHO.assertIn('giturl must be defined in your course settings before you can export to git.', geh0.content)\n geh0 = YKHO.client.get('{}?action=push'.format(YKHO.test_url))\n YKHO.assertEqual(200, geh...
[ "0.5872089", "0.5724708", "0.55480397", "0.54968745", "0.54607356", "0.541308", "0.539932", "0.534126", "0.53302205", "0.5326562", "0.5312911", "0.5226174", "0.52177185", "0.51851946", "0.51745653", "0.5156039", "0.5132064", "0.5124223", "0.5105844", "0.50707114", "0.50376904...
0.703439
0
If x1_i is +0 and x2_i is 0, the result is an approximation to +pi.
def Gn05(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray(+0.0, dtype=JRYC) ajwV = R5ST.asarray([-0.0], dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(R5ST.pi, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4i.dtype).eps assert ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def D8Ke(YKHO, XOBC, XSp1):\n return oyIN.dot(oyIN.conjugate(XOBC), XSp1) * YKHO.dx", "def vwZf(LVAh, WKvO):\n return 0.0", "def mM0K():\n hwDb().prec += 2\n FxAZ = SkPU = lIY7 = iSjc.Decimal(1)\n ...
[ "0.6267272", "0.60406315", "0.6025863", "0.5863307", "0.58493674", "0.5834824", "0.5822923", "0.5802591", "0.57997376", "0.57789564", "0.57533866", "0.57507426", "0.5720936", "0.57158244", "0.5707037", "0.56690854", "0.5661951", "0.56287724", "0.5623909", "0.55873954", "0.556...
0.57807004
9
If x1_i is +0 and x2_i is less than 0, the result is an approximation to +pi.
def FJex(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray(+0.0, dtype=JRYC) ajwV = R5ST.asarray([-0.5, -1, -2, -R5ST.inf], dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(R5ST.pi, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4i.dty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def jtyf(o4D3, ajwV):\n return oyIN.abs(o4D3 - ajwV)", "def D8Ke(YKHO, XOBC, XSp1):\n return oyIN.dot(oyIN.conjugate(XOBC), XSp1) * YKHO.dx", "def e7LO(w9A9, dPOI):\n if oyIN.sign(w9A9[0]) != oyIN.sign(...
[ "0.6307693", "0.596727", "0.5958959", "0.5937109", "0.592713", "0.59124225", "0.58818066", "0.58754313", "0.5831002", "0.5761324", "0.572725", "0.57018584", "0.57017636", "0.56919664", "0.5684063", "0.5663974", "0.5659805", "0.5634702", "0.56192374", "0.5616215", "0.5581256",...
0.55944765
20
If x1_i is 0 and x2_i is 0, the result is an approximation to pi.
def FJcW(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray([-0.0], dtype=JRYC) ajwV = R5ST.asarray([-0.0], dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(-R5ST.pi, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4i.dtype).eps asse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def mM0K():\n hwDb().prec += 2\n FxAZ = SkPU = lIY7 = iSjc.Decimal(1)\n imE1 = iSjc.Decimal(0.25)\n cD4Q = iSjc.Decimal(0.5).sqrt()\n while True:\n SkPU = (SkPU + cD4Q) / 2\n cD4Q = (FxA...
[ "0.6377798", "0.6333334", "0.6095232", "0.60379565", "0.6031754", "0.6010324", "0.5970948", "0.58610284", "0.58510697", "0.582096", "0.58136797", "0.58045906", "0.57947624", "0.57875955", "0.5756818", "0.57533133", "0.5745103", "0.5727128", "0.57029456", "0.56960905", "0.5681...
0.5308813
87
If x1_i is 0 and x2_i is less than 0, the result is an approximation to pi.
def a3Y6(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray([-0.0], dtype=JRYC) ajwV = R5ST.asarray([-R5ST.inf, -2, -1, -0.5], dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(-R5ST.pi, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4i....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def mM0K():\n hwDb().prec += 2\n FxAZ = SkPU = lIY7 = iSjc.Decimal(1)\n imE1 = iSjc.Decimal(0.25)\n cD4Q = iSjc.Decimal(0.5).sqrt()\n while True:\n SkPU = (SkPU + cD4Q) / 2\n cD4Q = (FxA...
[ "0.6366942", "0.63605756", "0.60826313", "0.60589015", "0.59939265", "0.5972934", "0.59452593", "0.5901275", "0.5899337", "0.58781934", "0.5866349", "0.5839281", "0.58179456", "0.57995176", "0.5773858", "0.5770369", "0.57121265", "0.5672166", "0.565147", "0.56277204", "0.5624...
0.0
-1
If x1_i is less than 0 and x2_i is 0, the result is an approximation to pi/2.
def vSMI(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray([-R5ST.inf, -2, -1, -0.5], dtype=JRYC) ajwV = R5ST.asarray(-0.0, dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(-R5ST.pi / 2, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def V70B(o4D3, ajwV):\n return oyIN.sqrt((o4D3 - ajwV) ** 2)", "def vwZf(LVAh, WKvO):\n return 0.0", "def J6Kp(YKHO, XOBC, XSp1):\n return oyIN.abs(YKHO.ip(XOBC, XSp1)) ** 2", "def Y7fn(oDhc, krO_, Ay...
[ "0.6567152", "0.62541723", "0.6240584", "0.61348456", "0.6088892", "0.60442483", "0.6035881", "0.59666276", "0.5963197", "0.59327036", "0.5900643", "0.5883083", "0.587695", "0.58225435", "0.58208567", "0.58052015", "0.5799738", "0.57911533", "0.5786032", "0.57812285", "0.5776...
0.0
-1
If x1_i is greater than 0, x1_i is a finite number, and x2_i is infinity, the result is an approximation to +pi.
def mkwg(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray([0.5, 1, 2, 5], dtype=JRYC) ajwV = R5ST.asarray(-R5ST.inf, dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(R5ST.pi, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4i.dtype).ep...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def K7j0(o4D3, ajwV):\n return oyIN.max(oyIN.abs(o4D3 - ajwV))", "def mM0K():\n hwDb().prec += 2\n FxAZ = SkPU = lIY7 = iSjc.Decimal(1)\n imE1 = iSjc.Decimal(0.25)\n cD4Q = iSjc.Decimal(0.5).sqrt()\...
[ "0.6256534", "0.61559767", "0.6017998", "0.58868545", "0.5804983", "0.5785986", "0.573189", "0.5730896", "0.5718055", "0.57105035", "0.5680693", "0.5650491", "0.5649155", "0.56457764", "0.56342196", "0.56011516", "0.5599038", "0.55962646", "0.5575096", "0.55556864", "0.554938...
0.59414405
3
If x1_i is less than 0, x1_i is a finite number, and x2_i is infinity, the result is an approximation to pi.
def xoyZ(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray([-0.5, -1, -2, -5], dtype=JRYC) ajwV = R5ST.asarray(-R5ST.inf, dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(-R5ST.pi, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4i.dtyp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mM0K():\n hwDb().prec += 2\n FxAZ = SkPU = lIY7 = iSjc.Decimal(1)\n imE1 = iSjc.Decimal(0.25)\n cD4Q = iSjc.Decimal(0.5).sqrt()\n while True:\n SkPU = (SkPU + cD4Q) / 2\n cD4Q = (FxAZ * cD4Q).sqrt()\n yk4i = SkPU - FxAZ\n FxAZ = SkPU\n imE1 -= lIY7 * yk4i * yk4...
[ "0.6436234", "0.6257629", "0.59987813", "0.5971408", "0.59569323", "0.59115046", "0.58437914", "0.5835988", "0.581221", "0.5777042", "0.5746533", "0.57395697", "0.57395035", "0.57285154", "0.56861067", "0.5660675", "0.56545585", "0.5632691", "0.56264806", "0.5581733", "0.5580...
0.5632402
18
If x1_i is +infinity and x2_i is a finite number, the result is an approximation to +pi/2.
def VG8U(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray(R5ST.inf, dtype=JRYC) ajwV = R5ST.asarray([-2, -0.0, 0.0, 2], dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(R5ST.pi / 2, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4i.dt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K7j0(o4D3, ajwV):\n return oyIN.max(oyIN.abs(o4D3 - ajwV))", "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def mkwg(JRYC):\n vexM = XkIf()\n d78m(JRYC, vexM)\n o4D3 = R5ST.asarray([0.5, 1, 2, 5], dtype=JRYC)\n ajwV = R5ST.asarray(-R5ST.inf...
[ "0.6402555", "0.63679695", "0.6131822", "0.6073823", "0.5933657", "0.59333557", "0.59000796", "0.58781886", "0.58662075", "0.5822566", "0.5812585", "0.57847697", "0.5725153", "0.5685548", "0.56758904", "0.5646981", "0.56345046", "0.5627198", "0.5619317", "0.5619271", "0.56181...
0.59165984
6
If x1_i is infinity and x2_i is a finite number, the result is an approximation to pi/2.
def HlKK(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray(-R5ST.inf, dtype=JRYC) ajwV = R5ST.asarray([-2, -0.0, 0.0, 2], dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(-R5ST.pi / 2, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4i....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def mkwg(JRYC):\n vexM = XkIf()\n d78m(JRYC, vexM)\n o4D3 = R5ST.asarray([0.5, 1, 2, 5], dtype=JRYC)\n ajwV = R5ST.asarray(-R5ST.inf, dtype=JRYC)\n n5sN = R5ST.atan2(o4D3, ajwV)\n aEqx = R5ST.asarr...
[ "0.62907547", "0.62660867", "0.6163705", "0.6130893", "0.60858595", "0.60476124", "0.59948826", "0.598838", "0.59295696", "0.5928273", "0.5898101", "0.58973503", "0.5895721", "0.5868295", "0.5826398", "0.5787167", "0.5767206", "0.57665265", "0.57661396", "0.57214695", "0.5664...
0.58919275
13
If x1_i is +infinity and x2_i is +infinity, the result is an approximation to +pi/4.
def FAIt(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray(R5ST.inf, dtype=JRYC) ajwV = R5ST.asarray([R5ST.inf], dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(R5ST.pi / 4, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4i.dtype).eps...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def K7j0(o4D3, ajwV):\n return oyIN.max(oyIN.abs(o4D3 - ajwV))", "def Y7fn(oDhc, krO_, Ayfi):\n return float(KXQA[oDhc]) + float(KXQA[krO_]) - 0.08 * float(abs(LfNG[oDhc] - LfNG[krO_])) - Ayfi", "def jtyf(...
[ "0.6547007", "0.6428182", "0.58895326", "0.58487666", "0.5847909", "0.5805441", "0.5793036", "0.5686634", "0.56774825", "0.5674597", "0.56681997", "0.5649038", "0.56483895", "0.5646257", "0.5632014", "0.56013274", "0.5600212", "0.5592367", "0.55766135", "0.5575396", "0.557045...
0.5497608
31
If x1_i is infinity and x2_i is +infinity, the result is an approximation to pi/4.
def oiId(JRYC): vexM = XkIf() d78m(JRYC, vexM) o4D3 = R5ST.asarray(-R5ST.inf, dtype=JRYC) ajwV = R5ST.asarray([R5ST.inf], dtype=JRYC) n5sN = R5ST.atan2(o4D3, ajwV) aEqx = R5ST.asarray(-R5ST.pi / 4, dtype=JRYC) yk4i = R5ST.abs(R5ST.subtract(n5sN, aEqx)) rU28 = 8 * R5ST.finfo(yk4i.dtype).e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(nJ9F: float, o4D3: float) -> float:\n return 8 - (nJ9F - 2) ** 2 - (o4D3 - 2) ** 2", "def K7j0(o4D3, ajwV):\n return oyIN.max(oyIN.abs(o4D3 - ajwV))", "def mM0K():\n hwDb().prec += 2\n FxAZ = SkPU = lIY7 = iSjc.Decimal(1)\n imE1 = iSjc.Decimal(0.25)\n cD4Q = iSjc.Decimal(0.5).sqrt()\...
[ "0.62768745", "0.62370145", "0.5994263", "0.58813924", "0.5853484", "0.57996005", "0.5741806", "0.5725664", "0.5724673", "0.57189685", "0.5710294", "0.57089883", "0.5704483", "0.568278", "0.5652218", "0.56403536", "0.5604532", "0.5599775", "0.5595153", "0.55847514", "0.557186...
0.5719304
9
Check if having the extension in the middle gives a valid url.
def e0dy(YKHO, AdfU, Fst3): iquo, tk5Y, AGPF, Ux0P = AdfU if len(Ux0P.split('.')) > 1: mWFP, kROy = Ux0P.split('.') kROy = '.' + kROy else: return False blNe = mWFP + Fst3 + kROy YKHO.request(iquo, tk5Y, AGPF, blNe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jr1t(bD7m=None, VyJ2=None):\n if not VyJ2:\n VyJ2 = KVWQ.urlparse(bD7m)\n return VyJ2.netloc.endswith('slideshare.net')", "def P5bi(KCHu):\n return tbXV.match(KCHu)", "def Vt0R(bD7m):\n if not bD7m or bD7m.count('/') != 1 or bD7m[0] != '@':\n return False\n return True", "def...
[ "0.7260568", "0.7256971", "0.72072756", "0.71938086", "0.718865", "0.71626246", "0.7007787", "0.6927225", "0.6901204", "0.6866132", "0.6864475", "0.68623626", "0.68619543", "0.6843714", "0.68430316", "0.6840791", "0.68405545", "0.6837551", "0.6815936", "0.6812255", "0.6792726...
0.6617167
34
Check if having the extension in the front gives a valid url.
def Uhn1(YKHO, AdfU, Fst3): iquo, tk5Y, AGPF, Ux0P = AdfU blNe = Fst3 + Ux0P YKHO.request(iquo, tk5Y, AGPF, blNe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lhj1(YKHO):\n r8hN = ZbWC.match('^http://www.tesco.com/direct/[0-9a-zA-Z-]+/[0-9-]+\\\\.prd$', YKHO.product_page_url)\n exwG = ZbWC.match('^http://www.tesco.com/.*$', YKHO.product_page_url)\n return not not r8hN or not not exwG", "def Vt0R(bD7m):\n if not bD7m or bD7m.count('/') != 1 or bD7m[0] !...
[ "0.70492357", "0.70414305", "0.68689746", "0.68677413", "0.68407744", "0.6835004", "0.6818683", "0.6809452", "0.6803073", "0.67173827", "0.6651397", "0.66501904", "0.66481525", "0.6611492", "0.6586792", "0.65758324", "0.655019", "0.6545764", "0.65304476", "0.6527323", "0.6524...
0.61452323
64
True if the archive does not contain any snapshots yet. Returns bool
def FBfn(YKHO) -> bool: return YKHO.snapshots.is_empty()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jlUc(YKHO, vRwC=False):\n zjyu = filter(lambda KCHu: KCHu.state != RJjw.DESTROYING, YKHO.snapshots)\n if vRwC:\n zjyu = filter(lambda KCHu: not KCHu.is_system_snap, zjyu)\n return len(list(zjyu)) > 0", "def xEJr(YKHO):\n YKHO.pool_search(refresh=True)\n if YKHO.status == 'archived':\n ...
[ "0.67442197", "0.65825623", "0.6560397", "0.6465076", "0.63251346", "0.6270676", "0.62357104", "0.6127455", "0.6098874", "0.6098874", "0.60922045", "0.6071595", "0.6053992", "0.6051384", "0.6050659", "0.60475665", "0.6037429", "0.602775", "0.6006261", "0.5993758", "0.59807444...
0.7827068
0
Get a single fact from this node.
def bKCn(YKHO, mWFP): uZlc = YKHO.facts(name=mWFP) return next((bKCn for bKCn in uZlc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qc4o(YKHO, bKCn):\n for PrQi in YKHO.facts:\n if bKCn == PrQi:\n return PrQi", "def Qc4o(YKHO, bKCn):\n for PrQi in YKHO.facts:\n if bKCn == PrQi:\n return PrQi", "def Qc4o(YKHO, bKCn):\n for PrQi in YKHO.facts:\n if bKCn == PrQi:\n return PrQi...
[ "0.70351624", "0.70351624", "0.70351624", "0.59265506", "0.5738547", "0.5694769", "0.5545534", "0.54983246", "0.547722", "0.54647297", "0.5426895", "0.53897", "0.53519064", "0.53446215", "0.5332148", "0.5316645", "0.5309529", "0.5301001", "0.5299595", "0.52242947", "0.5221461...
0.75231826
0
Join variables from source_df based on the largest intersection. In case of a tie it picks the first one.
def PssA(F67P, fwXD, kc1W): if not rLdf.api.types.is_list_like(kc1W): kc1W = [kc1W] for Ty9i in kc1W: if Ty9i in fwXD.columns: raise ValueError(f"Column '{Ty9i}' already present in target_df.") fwXD = fwXD.copy() ocYE, rtrq = F67P.sindex.query(fwXD.geometry, predicate='inters...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s3aq(jeHe, w20b, UAE4=..., khtY=..., n6sn=..., G5R0=...):\n ...", "def bGrB(WKvO: DataFrame, LVAh: DataFrame) -> hxoQ:\n NEUP(WKvO, LVAh)\n from .distinct import distinct\n return distinct(CwDs.merge(WKvO, LVAh, how='outer'), __calling_env=LwDf.REGULAR)", "def bGrB(WKvO: DataFrame, LVAh: DataFr...
[ "0.5709279", "0.5651439", "0.55513024", "0.53694797", "0.53600264", "0.53399664", "0.5288595", "0.5258657", "0.5235305", "0.52097523", "0.51912016", "0.51606303", "0.511207", "0.50648284", "0.5021239", "0.5013139", "0.5013028", "0.49965718", "0.49946815", "0.4988488", "0.4987...
0.6509416
0
Insert vocab to dict
def ftZZ(YKHO, TLbt, Tuqy=I0oN.ALL): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hpml(CtWL):\n Gb8g = {}\n for GIN8 in CtWL:\n if len(GIN8) in Gb8g:\n Gb8g[len(GIN8)].append(GIN8)\n else:\n Gb8g[len(GIN8)] = [GIN8]\n return Gb8g", "def UwUm(Ux0P, CtWL):\n A97Q = czMF(Ux0P)\n s2mk = TfQA(A97Q)\n CtWL.update(s2mk)", "def UwUm(Ux0P, Ct...
[ "0.67291254", "0.64789885", "0.64789885", "0.6311739", "0.62610775", "0.62112105", "0.61968094", "0.61667484", "0.61313975", "0.6084326", "0.6077198", "0.607301", "0.59525466", "0.5937014", "0.5920589", "0.59125036", "0.5908248", "0.58962715", "0.58859", "0.58821195", "0.5870...
0.7250865
0
r"""Get details of a single network.
def xP7V(YKHO, QePW, jMd6=None): GPtr = YKHO.GetMethodConfig('Get') return YKHO._RunMethod(GPtr, QePW, global_params=jMd6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JB1q(YKHO, eVVj, **Vlb9):\n return YKHO.get(YKHO.network_path % eVVj, params=Vlb9)", "def BYr7(OZUW):\n bo34.debug('Start.')\n Wxnj, Ylbp = OMEF.get(m2VZ + '/' + OZUW)\n if Wxnj != G4JS.codes.ok:\n bo34.error((Wxnj, Ylbp))\n return None\n return Ylbp['network']", "def XHTY(YKHO...
[ "0.815506", "0.7704009", "0.7371045", "0.7345053", "0.7232661", "0.7220386", "0.69502354", "0.6907718", "0.6883879", "0.67998445", "0.67691416", "0.67555165", "0.6704264", "0.6638899", "0.6621451", "0.6621451", "0.6621451", "0.65764344", "0.6552145", "0.65111405", "0.64780307...
0.0
-1
r"""Get ProvisioningConfig by name.
def xP7V(YKHO, QePW, jMd6=None): GPtr = YKHO.GetMethodConfig('Get') return YKHO._RunMethod(GPtr, QePW, global_params=jMd6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO, mWFP):\n return YKHO.configs[mWFP][0]", "def ccBJ(YKHO, mWFP):\n for GPtr in YKHO._config:\n if mWFP in GPtr:\n return GPtr[mWFP]\n raise AttributeError('%s not found' % mWFP)", "def ptTL(YKHO, mWFP: str) -> ImMB:\n Zu8l = YKHO.sanitize_configuration_option_name(mWF...
[ "0.7345858", "0.686669", "0.67890775", "0.648133", "0.6444499", "0.64383674", "0.64087373", "0.63643354", "0.63213897", "0.62877935", "0.62379706", "0.6136968", "0.6134061", "0.6123744", "0.6072195", "0.60451186", "0.6015365", "0.59920514", "0.59862214", "0.595897", "0.592218...
0.0
-1
Finds materials that cooccur with specified entities. The returned materials can be screened by specifying elements that must be included/excluded from the stoichiometry.
def U4sT(YKHO, MMe4, UqER, tAX0=None): NKcE = 'POST' jY99 = '/search/material_search' pB3N = {'entities': MMe4, 'elements': UqER, 'cutoff': tAX0} return YKHO._make_request(jY99, payload=pB3N, method=NKcE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCUo():\n LSZ7 = qrl6(974)\n return (LSZ7, 200)", "def j1FP(*qIxc):\n return _VfD.SBO_isMaterialEntity(*qIxc)", "def vokQ(*qIxc):\n return _VfD.SBO_isMaterialEntity(*qIxc)", "def IfH4():\n LSZ7 = qrl6()\n return (LSZ7, 200)", "def l6H4():\n LSZ7 = qrl6(429)\n return (LSZ7, 200)"...
[ "0.573126", "0.57132316", "0.5693752", "0.5596915", "0.54570955", "0.54510254", "0.539075", "0.5283809", "0.52684116", "0.52134013", "0.51560014", "0.51263773", "0.51011544", "0.5078595", "0.50741714", "0.5062508", "0.500604", "0.49858084", "0.49765977", "0.49579725", "0.4949...
0.7370446
0
Returns the embedding(s) for the supplied wordphrase. If the wordphrase is a string, returns a single embedding vector as a list. If the wordphrase is a list of string, returns a matrix with each row corresponding to a single (potentially cumulative) embedding. If the words (after preprocessing) do not have embeddings ...
def nhS3(YKHO, n4NF, aBzZ=True): if isinstance(n4NF, list): NKcE = 'POST' jY99 = '/embeddings' pB3N = {'wordphrases': n4NF, 'ignore_missing': aBzZ} else: NKcE = 'GET' jY99 = '/embeddings/{}'.format(n4NF) pB3N = {'ignore_missing': aBzZ} return YKHO._make_reques...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDO1(A0cm):\n iArr = oyIN.zeros([C3ST.vector_size], dtype='float32')\n A0cm = A0cm.lower()\n cC0s = b0j5.tokenize(A0cm)\n di96 = 0\n for GIN8 in cC0s:\n if GIN8 in C3ST.vocab:\n di96 += 1\n iArr = iArr + C3ST.get_vector(GIN8)\n if di96 != 0:\n iArr /= di96\...
[ "0.73960686", "0.70414907", "0.6483139", "0.62810344", "0.62624717", "0.6149495", "0.6084008", "0.60005426", "0.5944097", "0.59321856", "0.59114236", "0.58615047", "0.5838983", "0.583431", "0.5831618", "0.5808516", "0.58059406", "0.5798245", "0.5732393", "0.5725381", "0.57170...
0.6797651
2
Returns either module config or file config.
def tgzD(): GPtr = bWeC.get_config_file() TC52 = cuiw.get_session_config() for ZCi4 in GPtr: Qsc9 = TC52.get(ZCi4) if Qsc9 is False or Qsc9: GPtr[ZCi4] = Qsc9 return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aIUm(mWFP):\n return is4C[mWFP]", "def tgzD():\n return X8Rg", "def tgzD():\n return DVw1", "def tgzD():\n global CONF\n if SAs9 is None:\n SAs9 = kwpV.ConfigParser()\n SAs9.read(Hy7s.path.join(A8Kx, 'conf/ext_app.cfg'))\n return SAs9", "def tgzD():\n return viqz", ...
[ "0.77617985", "0.76757246", "0.7585763", "0.7419122", "0.7401795", "0.72572345", "0.71894085", "0.70543003", "0.69967026", "0.6987272", "0.6951504", "0.691294", "0.6885667", "0.68699", "0.6853856", "0.6853856", "0.6853856", "0.6853856", "0.6853856", "0.6853856", "0.6853856", ...
0.0
-1
Create an instance node from a raw data tree.
def Q3P2(YKHO, Sy2n: RawObject) -> mF9v: oQup = YKHO.schema.from_raw(Sy2n) return mF9v(oQup, YKHO.schema, oQup.timestamp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def igy8(YKHO, Upvm, nPrm):\n return o7DN(Upvm, nPrm)", "def n6md(YKHO, nPrm):\n return o7DN(id=nPrm['ps'], name=nPrm['ps'], state=TWXX.UNKNOWN, public_ip=[nPrm['ip']], private_ip=[], driver=YKHO.connection.driver, extra={'current_size': nPrm['memory_mb'], 'account_id': nPrm['account_id'], 'type': nPrm['ty...
[ "0.6649338", "0.66471016", "0.66142434", "0.64108074", "0.6342457", "0.63026017", "0.62881625", "0.6281121", "0.62695885", "0.6254876", "0.6219861", "0.621602", "0.6181345", "0.61517584", "0.61318654", "0.611718", "0.60613894", "0.6024656", "0.6015697", "0.6010512", "0.600753...
0.6256618
9
determines the number of days in the month
def koma(x0eS): E0aY = r5T0(lO87) if x0eS < 8 and x0eS != 2 and (x0eS % 2 == 1): return 31 elif x0eS >= 8 and x0eS % 2 == 0: return 31 elif x0eS == 2 and E0aY == True: return 29 elif x0eS == 2 and E0aY == False: return 28 else: return 30
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vhrV(YKHO):\n return GRk0.monthrange(YKHO.year, YKHO.month)[1]", "def kUN6(SBwZ=False):\n RJtn = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]\n if SBwZ:\n RJtn[1] += 1\n return RJtn", "def vhrV(x0eS):\n if x0eS == 'February':\n return 28\n elif x0eS == 'September' or x0e...
[ "0.8117014", "0.8059049", "0.7982327", "0.787143", "0.77689046", "0.7747756", "0.7598317", "0.757265", "0.75391054", "0.75314146", "0.7527411", "0.74603957", "0.73927236", "0.73768693", "0.7330679", "0.73134524", "0.73096293", "0.72906435", "0.7279032", "0.7232347", "0.720305...
0.6642775
42
same as os.path.split if full=True, returns list of strings
def _wv_(YKHO, vBWh=False): pmON = EeDH.path.split(YKHO.__str__()) if vBWh == True: return YKHO.__str__().split(Hy7s.path.sep) else: return [XuzF(pmON[0], custom=True), pmON[1]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c6pt(pmON, Aofo=None):\n if Aofo is None:\n Aofo = []\n sdCG, J3uN = Hy7s.path.split(pmON)\n if sdCG == '':\n return [J3uN] + Aofo\n if sdCG == pmON:\n return Aofo\n return c6pt(sdCG, [J3uN] + Aofo)", "def c6pt(pmON, Aofo=None):\n if Aofo is None:\n Aofo = []\n ...
[ "0.7536966", "0.7536966", "0.75319433", "0.75233877", "0.7445839", "0.7031331", "0.7009655", "0.70020056", "0.69828326", "0.6922166", "0.6915515", "0.6881448", "0.6839428", "0.68080384", "0.6780427", "0.6766675", "0.66983646", "0.66367644", "0.66265345", "0.6623053", "0.65492...
0.8281656
0
Optional. A humanreadable description of this TargetServer.
def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'description')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t5do(YKHO):\n return '%s/%s' % (YKHO['host_name'], YKHO['service_description'])", "def t5do(YKHO):\n return YKHO['host_name']", "def ke0X(YKHO):\n return None", "def JBZA(YKHO) -> str:\n pass", "def JBZA(YKHO):\n pass", "def JBZA(YKHO):\n pass", "def Eot7(YKHO) -> str:\n return...
[ "0.69860595", "0.6788127", "0.66692686", "0.6624607", "0.64894116", "0.64894116", "0.646238", "0.64381766", "0.64371914", "0.64371914", "0.64371914", "0.64371914", "0.64371914", "0.64371914", "0.64371914", "0.64371914", "0.6414445", "0.63857615", "0.63829696", "0.6381301", "0...
0.0
-1
Get an existing TargetServer resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'TargetServer': VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id)) r6DL = Ryhx.__new__(Ryhx) r6DL.__dict__['description'] = None r6DL.__dict__['environment_id'] = None r6DL.__dict__['host'] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, ul9_: Optional[pulumi.Input[str]]=None, qDzk: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, vdqp: Optional[pulumi.Input[str]]=None, VPRs: Optional[pulumi.Input...
[ "0.56621665", "0.5576519", "0.5345026", "0.5308341", "0.5271964", "0.52251685", "0.5206424", "0.5160413", "0.5154615", "0.51376736", "0.5128834", "0.5110236", "0.51063865", "0.51052237", "0.50697595", "0.505821", "0.5034661", "0.5021231", "0.5018435", "0.5003287", "0.49566856...
0.6828982
0
Optional. A humanreadable description of this TargetServer.
def JBZA(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'description')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t5do(YKHO):\n return '%s/%s' % (YKHO['host_name'], YKHO['service_description'])", "def t5do(YKHO):\n return YKHO['host_name']", "def ke0X(YKHO):\n return None", "def JBZA(YKHO) -> str:\n pass", "def JBZA(YKHO):\n pass", "def JBZA(YKHO):\n pass", "def Eot7(YKHO) -> str:\n return...
[ "0.69860595", "0.6788127", "0.66692686", "0.6624607", "0.64894116", "0.64894116", "0.646238", "0.64381766", "0.64371914", "0.64371914", "0.64371914", "0.64371914", "0.64371914", "0.64371914", "0.64371914", "0.64371914", "0.6414445", "0.63857615", "0.63829696", "0.6381301", "0...
0.0
-1
Removes samples from the scan whose angles are within the specified range
def ZTuT(amup, gqRb, ODP9): amup.samples[:] = [mvm2 for mvm2 in amup.samples if 0.001 * mvm2.angle < gqRb or 0.001 * mvm2.angle > ODP9]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MmMx(amup, gqRb, ODP9):\n amup.samples[:] = [mvm2 for mvm2 in amup.samples if mvm2.distance >= gqRb and mvm2.distance <= ODP9]", "def dbk1(f4IJ, min, max, qLSy):\n VYSQ = XC5k.cvtColor(f4IJ, qLSy)\n ZHfW = XC5k.inRange(VYSQ, min, max)\n rkz6 = XC5k.bitwise_and(f4IJ, f4IJ, mask=ZHfW)\n return r...
[ "0.6928175", "0.56809044", "0.56583273", "0.5586618", "0.55851233", "0.5578326", "0.557583", "0.5549034", "0.5502325", "0.5499968", "0.5484574", "0.5476749", "0.54178315", "0.5402092", "0.53786355", "0.536102", "0.53586066", "0.53470314", "0.5308349", "0.53003824", "0.5295707...
0.74890226
0
Parse various timestamp formats into SignalFx API epoch milliseconds
def cUyl(GTy1: str) -> int: i8WE = int(float(GTy1)) if 1000000000000.0 < i8WE < 10000000000000.0: return round(i8WE / 1000) * 1000 if 1000000000.0 < i8WE < 10000000000.0: return i8WE * 1000 print(f'ERROR: {GTy1} is neither in epoch milliseconds or seconds.') raise ValueError('{input_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KOTW(GTy1: str) -> int:\n gpan = (ucOU, DfA1, cUyl, feVn)\n for wvEv in gpan:\n try:\n return wvEv(GTy1)\n except ValueError:\n pass\n print(f'ERROR: unrecognized time format {GTy1}. Please use either SignalFx relative time format, a date or a UNIX epoch timestamp i...
[ "0.6815342", "0.6712268", "0.66906375", "0.65800685", "0.6573987", "0.6542337", "0.6531243", "0.65027535", "0.6498108", "0.6445176", "0.6416543", "0.63951284", "0.63584894", "0.6357023", "0.63367444", "0.63324636", "0.6324575", "0.6316184", "0.63154113", "0.6309105", "0.63080...
0.69153917
0
Parse various timestamp formats into SignalFx API epoch milliseconds
def feVn(GTy1: str) -> int: return int(d5IO.parser.parse(GTy1).timestamp() * 1000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cUyl(GTy1: str) -> int:\n i8WE = int(float(GTy1))\n if 1000000000000.0 < i8WE < 10000000000000.0:\n return round(i8WE / 1000) * 1000\n if 1000000000.0 < i8WE < 10000000000.0:\n return i8WE * 1000\n print(f'ERROR: {GTy1} is neither in epoch milliseconds or seconds.')\n raise ValueEr...
[ "0.69153917", "0.6815342", "0.6712268", "0.66906375", "0.65800685", "0.6573987", "0.6542337", "0.6531243", "0.65027535", "0.6498108", "0.6445176", "0.6416543", "0.63951284", "0.63584894", "0.6357023", "0.63367444", "0.63324636", "0.6324575", "0.6316184", "0.63154113", "0.6309...
0.0
-1
Return timestamp in epoch milliseconds (but rounded to the closest second, as requested by SignalFx) from input time.
def KOTW(GTy1: str) -> int: gpan = (ucOU, DfA1, cUyl, feVn) for wvEv in gpan: try: return wvEv(GTy1) except ValueError: pass print(f'ERROR: unrecognized time format {GTy1}. Please use either SignalFx relative time format, a date or a UNIX epoch timestamp in seconds or...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ItX3():\n return int(ITS7.time() * 1000)", "def cxNx(YKHO):\n if not YKHO.timestamp:\n return None\n if isinstance(YKHO.timestamp, (int, Swre)):\n return YKHO.timestamp\n if isinstance(YKHO.timestamp, fCoM):\n jbXL = qcWV.now() + YKHO.timestamp\n else:\n jbXL = YKHO...
[ "0.72728246", "0.70581204", "0.70415354", "0.70404994", "0.7000549", "0.6878203", "0.6852216", "0.6837512", "0.67750245", "0.6771532", "0.67688626", "0.6673831", "0.6653796", "0.66079926", "0.65607804", "0.65493566", "0.6544701", "0.6537429", "0.6487191", "0.64799756", "0.647...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(YKHO, WRKq, _CVp, arXg): if arXg > 0: if int(WRKq % arXg) == 0 and WRKq > 0: _CVp = _CVp / 10 ** int(WRKq / arXg) YKHO.fast_net.step_size = YKHO.fast_net.step_size / 10 for Lwm5 in YKHO.opt.param_groups: Lwm5['lr'] = _CVp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW", "def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L...
[ "0.7913536", "0.7906521", "0.7849834", "0.777524", "0.77338326", "0.77306354", "0.7722718", "0.77224237", "0.771982", "0.77092624", "0.7693604", "0.76742035", "0.7665748", "0.7665748", "0.7665748", "0.7655329", "0.76419765", "0.76399755", "0.7637868", "0.7626077", "0.76247585...
0.7285849
99
Get train dataset reader.
def EvQg(Ep8u, Gyhe=128): return CbyH.batch(gWvf(num_sample=Gyhe), Ep8u)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JdZy(YKHO):\n if YKHO.train_dataloader is not None:\n return YKHO.train_dataloader\n assert YKHO.schema is not None, 'schema is required to generate Train Dataloader'\n return yx8d.parse(YKHO.args.data_loader_engine).from_schema(YKHO.schema, YKHO.train_dataset_or_path, YKHO.args.per_device_trai...
[ "0.77700317", "0.774745", "0.7302727", "0.7240547", "0.7170945", "0.71632415", "0.7056123", "0.69895285", "0.6856822", "0.6791193", "0.67125654", "0.66330856", "0.65704936", "0.6558212", "0.65283644", "0.6512667", "0.6505271", "0.6468414", "0.6456797", "0.64534414", "0.643268...
0.0
-1
Get test dataset reader.
def QOe9(Ep8u=1, Gyhe=16): return CbyH.batch(gWvf(num_sample=Gyhe), Ep8u)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M_QP(YKHO) -> nPrm.DataLoader:\n return nPrm.DataLoader(dataset=YKHO.datasets['test'], batch_size=YKHO.batch_size, num_workers=YKHO.num_workers, shuffle=False, pin_memory=False)", "def M_QP(YKHO) -> pVAc:\n return YKHO._custom_data_loader()", "def M_QP(YKHO) -> ht2j.utils.data.DataLoader:\n return...
[ "0.68845206", "0.68450505", "0.6735679", "0.6711656", "0.6699268", "0.65802914", "0.6448174", "0.64179075", "0.6417357", "0.6312482", "0.62544525", "0.6237945", "0.62045234", "0.6201351", "0.6177521", "0.61449075", "0.6138964", "0.61154217", "0.60540706", "0.602839", "0.60072...
0.0
-1
Concatenates zero or more iterables into a single iterable.
def ENFq(*Xtuq): return Hs6x.chain.from_iterable(Xtuq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENFq(ix7N):\n return Hs6x.chain.from_iterable(ix7N)", "def b65I(OxJJ, *ix7N):\n return iter(WhY1.chain(OxJJ, *ix7N))", "def ENFq(Xtuq):\n return Hs6x.chain.from_iterable(Xtuq)", "def khaK(IrPK):\n for WhY1 in IrPK:\n yield from WhY1", "def ENFq(Emd4, *qIxc):\n if isinstance(qIxc[0...
[ "0.8237647", "0.7762626", "0.7314292", "0.7228797", "0.68410534", "0.6754106", "0.661785", "0.64577717", "0.64477557", "0.62693614", "0.62614954", "0.61770934", "0.6173104", "0.6151694", "0.60528463", "0.59739566", "0.5946892", "0.591301", "0.58938015", "0.5870306", "0.585451...
0.738074
2
Return the index of the element in `seq` that returns ``True`` for `iteratee`. If no match is found, ``1`` is returned.
def PKkY(NMD1, Q6uT): NMD1 = iX9V.iteratee(NMD1) return next((YRbF for YRbF, BWXx in enumerate(Q6uT) if NMD1(BWXx)), -1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nmsS(Q6uT, XEri):\n for YRbF, WKvO in enumerate(Q6uT):\n if XEri(WKvO):\n return YRbF\n return -1", "def neBz(eHNT, Q6uT):\n for mLGw, ZfUD in enumerate(Q6uT):\n if eHNT(ZfUD):\n return mLGw\n return -1", "def YZ6w(NMD1, Q6uT):\n NMD1 = iX9V.iteratee(NMD1)...
[ "0.6897988", "0.68529224", "0.64155096", "0.62858737", "0.62728447", "0.59207135", "0.5899974", "0.5858445", "0.5808833", "0.57182574", "0.5695591", "0.5688631", "0.56836134", "0.56835765", "0.5586463", "0.5571871", "0.5526262", "0.54960287", "0.54898024", "0.54633707", "0.54...
0.8353897
0
Return the index of the element in `seq` that returns ``True`` for `iteratee`. If no match is found, ``1`` is returned.
def YZ6w(NMD1, Q6uT): NMD1 = iX9V.iteratee(NMD1) return next((YRbF for YRbF, BWXx in reversed(tuple(enumerate(Q6uT))) if NMD1(BWXx)), -1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PKkY(NMD1, Q6uT):\n NMD1 = iX9V.iteratee(NMD1)\n return next((YRbF for YRbF, BWXx in enumerate(Q6uT) if NMD1(BWXx)), -1)", "def nmsS(Q6uT, XEri):\n for YRbF, WKvO in enumerate(Q6uT):\n if XEri(WKvO):\n return YRbF\n return -1", "def neBz(eHNT, Q6uT):\n for mLGw, ZfUD in enu...
[ "0.8351631", "0.6893782", "0.68500185", "0.62868077", "0.6269523", "0.5920056", "0.5899648", "0.5854641", "0.5808691", "0.57168275", "0.5694773", "0.5682713", "0.5681728", "0.56801414", "0.5586588", "0.55696803", "0.5529989", "0.54927", "0.548727", "0.5460768", "0.5459611", ...
0.6412658
3
Merge multiple iterables into a single iterable by inserting the next element from each iterable by sequential roundrobin.
def D0oL(*Xtuq): gGq6 = MUE7((iter(Q6uT) for Q6uT in Xtuq)) while gGq6: Q6uT = gGq6.popleft() try: yield next(Q6uT) except StopIteration: pass else: gGq6.append(Q6uT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fFv2(*ix7N):\n GBx4 = len(ix7N)\n DGn2 = n2fR((iter(WhY1).next for WhY1 in ix7N))\n while GBx4:\n try:\n for next in DGn2:\n yield next()\n except StopIteration:\n GBx4 -= 1\n DGn2 = n2fR(uOgj(DGn2, GBx4))", "def pDOr(*ix7N):\n qBwg = ...
[ "0.807873", "0.7960328", "0.7131847", "0.7107807", "0.6972965", "0.69667405", "0.6695864", "0.66517425", "0.6648675", "0.6536531", "0.653047", "0.64290506", "0.6406485", "0.6403531", "0.64025295", "0.6362741", "0.6362741", "0.6362741", "0.6362741", "0.63369346", "0.63369346",...
0.6969696
5
Map `iteratee` to each element of iterable and yield the results. If additional iterable arguments are passed, `iteratee` must take that many arguments and is applied to the items from all iterables in parallel.
def map(NMD1, *Xtuq): return M_t2(iX9V.iteratee(NMD1), *Xtuq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BL2I(JfyU, OxJJ):\n for WKvO in OxJJ:\n JfyU(WKvO)", "def nrOS(YKHO, OxJJ):\n if YKHO._ordered:\n JaxB = YKHO._distrubtor.imap\n else:\n JaxB = YKHO._distrubtor.imap_unordered\n for Aofo in JaxB(OxJJ):\n yield Aofo", "def map(OxJJ, m2Zb):\n for WKvO in OxJJ:\n ...
[ "0.6287315", "0.61571527", "0.6119844", "0.5986487", "0.579307", "0.5779388", "0.57537603", "0.55571175", "0.5495698", "0.54143965", "0.5413135", "0.5391306", "0.5364085", "0.5347157", "0.5329722", "0.5319261", "0.53168696", "0.5298442", "0.52736145", "0.5271662", "0.5267115"...
0.6504665
0
Map an `iteratee` to each element of each iterable in `seqs` and concatenate the results into a single iterable.
def VdIF(NMD1, *Xtuq): return ENFq(*map(NMD1, *Xtuq))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ENFq(Xtuq):\n return Hs6x.chain.from_iterable(Xtuq)", "def map(NMD1, *Xtuq):\n return M_t2(iX9V.iteratee(NMD1), *Xtuq)", "def n2lW(NMD1, *Xtuq):\n return PWgb(map(NMD1, *Xtuq))", "def ENFq(*Xtuq):\n return Hs6x.chain.from_iterable(Xtuq)", "def PWgb(*Xtuq):\n for ZfUD in Hs6x.chain.from_i...
[ "0.7218634", "0.7121129", "0.7031422", "0.6953051", "0.65094924", "0.6183503", "0.6170696", "0.61580867", "0.606676", "0.6064979", "0.5951596", "0.59219646", "0.57494605", "0.57471144", "0.563964", "0.55347234", "0.54885954", "0.54501843", "0.54352033", "0.54314435", "0.54237...
0.7142581
1
Map an `iteratee` to each element of each iterable in `seqs` and flatten the results.
def n2lW(NMD1, *Xtuq): return PWgb(map(NMD1, *Xtuq))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(*Xtuq):\n for ZfUD in Hs6x.chain.from_iterable(Xtuq):\n if Gjlm(ZfUD):\n yield from ZfUD\n else:\n yield ZfUD", "def Tg96(NMD1, *Xtuq):\n return JVw1(map(NMD1, *Xtuq))", "def map(NMD1, *Xtuq):\n return M_t2(iX9V.iteratee(NMD1), *Xtuq)", "def VdIF(NMD1, *X...
[ "0.73454547", "0.7130974", "0.6868883", "0.6416716", "0.622025", "0.59813577", "0.59355426", "0.5847847", "0.5828699", "0.5823845", "0.56376565", "0.56056476", "0.5592745", "0.55456495", "0.5537511", "0.5406828", "0.5384987", "0.53773874", "0.53609574", "0.53536326", "0.53394...
0.7819542
0
Map an `iteratee` to each element of each iterable in `seqs` and recurisvely flatten the results.
def Tg96(NMD1, *Xtuq): return JVw1(map(NMD1, *Xtuq))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n2lW(NMD1, *Xtuq):\n return PWgb(map(NMD1, *Xtuq))", "def PWgb(*Xtuq):\n for ZfUD in Hs6x.chain.from_iterable(Xtuq):\n if Gjlm(ZfUD):\n yield from ZfUD\n else:\n yield ZfUD", "def map(NMD1, *Xtuq):\n return M_t2(iX9V.iteratee(NMD1), *Xtuq)", "def bQmL(JfyU, *X...
[ "0.77104026", "0.7165713", "0.6836431", "0.6366307", "0.6279933", "0.5781198", "0.5738247", "0.5704751", "0.56244874", "0.5578052", "0.55542344", "0.55492115", "0.5507023", "0.54375625", "0.542309", "0.5381507", "0.5258559", "0.5203589", "0.51849985", "0.51794124", "0.5169449...
0.7394263
1
Return a ``tuple`` of 2 lists containing elements from `seq` split into two groups where the first group contains all elements the `iteratee` returned truthy for and the second group containing the falsey elements.
def Qrt_(NMD1, Q6uT): NMD1 = iX9V.iteratee(NMD1) NXAT = [] Z_fq = [] for ZfUD in Q6uT: if NMD1(ZfUD): NXAT.append(ZfUD) else: Z_fq.append(ZfUD) return (NXAT, Z_fq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bP0T(Q6uT, nvEb):\n RI88 = []\n for H5ew, uOe2 in Hs6x.groupby(sorted(Q6uT, key=nvEb, reverse=True), key=nvEb):\n RI88.append(list(uOe2))\n return RI88", "def lpha(JfyU, OxJJ):\n Zjja, t0P0 = ([], [])\n for tTpl in OxJJ:\n if JfyU(tTpl):\n t0P0.append(tTpl)\n el...
[ "0.68307215", "0.6188622", "0.5976946", "0.5955248", "0.57734525", "0.5757055", "0.5666889", "0.56374425", "0.5634822", "0.559969", "0.5577922", "0.55418676", "0.5532985", "0.5527043", "0.5519347", "0.54946417", "0.54889053", "0.53819406", "0.5369003", "0.5369003", "0.5369003...
0.6613658
1
It will be called when you click on the file name or the catalog selection button.
def jkOI(YKHO, pmON): YKHO.exit_manager() if pmON.endswith('.obj'): lPpN['IS_OBJ'] = True lPpN['EDITOR_SAVED'] = True lPpN['CAN_WRITE'] = True lPpN['FILE_PATH'] = pmON lPpN['LOADED_FILE'] = True fo2G(f'{pmON} loaded successfully') lPpN['IS_RAM_EMPTY'] = False ddsL(YKHO.ma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hk55(YKHO, Ux0P):\n YKHO.chosen_filename = Ux0P\n YKHO.accept()", "def ggpY(YKHO):\n pass", "def bfgN(YKHO, *qIxc):\n nUeQ = HYaX.MDI.file_selector()\n if nUeQ.path != '':\n YKHO.fileEntry.set_text(nUeQ.path)", "def bfgN(YKHO, *qIxc):\n nUeQ = HYaX.MDI.file_selector()\n if nUe...
[ "0.7417943", "0.7281278", "0.71098447", "0.71098447", "0.70490915", "0.69734997", "0.68711185", "0.68575567", "0.682788", "0.681039", "0.67672783", "0.6764563", "0.6756567", "0.6727736", "0.6672591", "0.66621506", "0.663606", "0.6628477", "0.6625624", "0.6599949", "0.658399",...
0.0
-1
IndexView.get_queryset() should return question lists whose pub_date is smaller than now
def hGLD(YKHO): P4t4 = ArNr() Mh_N = P4t4.get_queryset() for bAls in Mh_N: YKHO.assertEqual(bAls.pub_date <= rIAI.now(), True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n return Y4Gy.objects.filter(pub_date__lte=rIAI.now())", "def k66M(YKHO):\n return Y4Gy.objects.filter(pub_date__lte=rIAI.now())", "def k66M(YKHO):\n return Y4Gy.objects.filter(pub_date__lte=rIAI.now()).order_by('-pub_date')", "def k66M(YKHO):\n return Y4Gy.objects.filter(pub_date...
[ "0.8360111", "0.8360111", "0.82696366", "0.82691413", "0.824242", "0.8228787", "0.8179848", "0.8179825", "0.8179825", "0.8178434", "0.8178434", "0.8178434", "0.8178434", "0.8178434", "0.8178434", "0.8178434", "0.8178434", "0.8178434", "0.8178434", "0.8178434", "0.8178434", ...
0.77091694
49
Creates a question with the given `question_text` and published the given number of `days` offset to now (negative for questions publisehd in the past, positive for qeustions that yet to be publisehd) =30 30days ago from now =True question with a choice =False question with no choices
def II0Q(Jfe3, Sm0u, ZFO7=True): ITS7 = rIAI.now() + qcWV.timedelta(days=Sm0u) bAls = Y4Gy.objects.create(question_text=Jfe3, pub_date=ITS7) if ZFO7: bAls.choice_set.create(choice_text='Choice 1', votes=0) return bAls
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def II0Q(Jfe3, Sm0u):\n ITS7 = rIAI.now() + JRYC.timedelta(days=Sm0u)\n return Y4Gy.objects.create(question_text=Jfe3, pub_date=ITS7)", "def II0Q(Jfe3, Sm0u):\n ITS7 = rIAI.now() + rIAI.timedelta(days=Sm0u)\n return Y4Gy.objects.create(question_text=Jfe3, pub_date=ITS7)", "def II0Q(Jfe3, Sm0u):\n ...
[ "0.7715429", "0.7607345", "0.7586892", "0.7586892", "0.75394225", "0.6945187", "0.6920731", "0.60915214", "0.60882306", "0.59568065", "0.579994", "0.57891566", "0.57620883", "0.5751672", "0.57444733", "0.5719077", "0.57152987", "0.570855", "0.56953657", "0.56895417", "0.56895...
0.71903
5
Questions with a pub_date in the past should be displayed on the index page
def lrPw(YKHO): II0Q(question_text='Past question', days=-30) geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question>'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lrPw(YKHO):\n II0Q(question_text='Past question.', days=-30)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question.>'])", "def lrPw(YKHO):\n II0Q(question_text='Past Question Text', days=-30)\n geh0 = YKHO.clie...
[ "0.70348626", "0.69843", "0.696719", "0.68652076", "0.68496466", "0.68274385", "0.67930853", "0.67864686", "0.6784498", "0.6783662", "0.6766472", "0.6748948", "0.6739776", "0.67051053", "0.67034024", "0.6677366", "0.6676848", "0.667426", "0.66492295", "0.6647384", "0.66461027...
0.7087898
0
only past questions should be displayed
def JcGs(YKHO): II0Q(question_text='Past question', days=-30) II0Q(question_text='Future qeustion', days=30) geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question>'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JSeU(YKHO):\n vexM = II0Q(question_text='Past question', days=-30)\n Ylbp = YKHO.client.get(gxEw('polls:detail', args=(vexM.id,)))\n YKHO.assertEqual(Ylbp.status_code, 200)\n YKHO.assertContains(Ylbp, vexM.question_text)", "def DlRB(YKHO):\n II0Q(question_text='Past question 1', days=-20)\n ...
[ "0.7199297", "0.7119368", "0.70831984", "0.7037178", "0.70339316", "0.7000749", "0.6989474", "0.69005334", "0.6898839", "0.6896799", "0.6878322", "0.6831274", "0.6811948", "0.6803369", "0.67873764", "0.67794204", "0.6756986", "0.6753992", "0.67526215", "0.6677555", "0.6649393...
0.66486704
21