query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Gets the currenttime of this Conditions. | def _38n(YKHO):
return YKHO._currenttime | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vHj7(YKHO) -> qcWV.datetime:\n return Z7L0.get_clock(YKHO._conx)",
"def vHj7(YKHO) -> qcWV:\n return YKHO._timer.now(YKHO._utc)",
"def vHj7(YKHO):\n return YKHO._current_time",
"def vHj7(YKHO):\n return YKHO._current_time",
"def m7L9(YKHO):\n return YKHO._current_time",
"def m7L9(YKHO)... | [
"0.8193314",
"0.81529236",
"0.8145935",
"0.8145935",
"0.79746574",
"0.79746574",
"0.79746574",
"0.79746574",
"0.79746574",
"0.79534984",
"0.79525405",
"0.7773785",
"0.7732508",
"0.76716185",
"0.76716185",
"0.76557237",
"0.760614",
"0.7600371",
"0.7561157",
"0.737618",
"0.7360... | 0.81703967 | 1 |
Gets the pump1 of this Conditions. | def mByQ(YKHO):
return YKHO._pump1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u87i(YKHO):\n return YKHO._pump2",
"def mByQ(YKHO, mByQ):\n YKHO._pump1 = mByQ",
"def Wqlh(YKHO):\n return YKHO.__P",
"def hbUd(YKHO):\n return YKHO._q1",
"def BfdA(YKHO):\n return YKHO.__pressure_b1",
"def nsxm(YKHO):\n return YKHO.__pressure_a1",
"def eiBr(YKHO):\n return YKH... | [
"0.7341822",
"0.67211926",
"0.66907114",
"0.6353605",
"0.6297284",
"0.6247464",
"0.61492103",
"0.613871",
"0.6118217",
"0.6118217",
"0.6097799",
"0.599628",
"0.5971059",
"0.5923683",
"0.59168893",
"0.5905224",
"0.5845457",
"0.5843168",
"0.5843168",
"0.57526207",
"0.574619",
... | 0.8746724 | 0 |
Sets the pump1 of this Conditions. | def mByQ(YKHO, mByQ):
YKHO._pump1 = mByQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mByQ(YKHO):\n return YKHO._pump1",
"def u87i(YKHO, u87i):\n YKHO._pump2 = u87i",
"def u87i(YKHO):\n return YKHO._pump2",
"def BfdA(YKHO, BWXx):\n YKHO.__pressure_b1 = BWXx",
"def nsxm(YKHO, BWXx):\n YKHO.__pressure_a1 = BWXx",
"def Q_Qw(YKHO, BWXx):\n if BWXx:\n WbTE = YKHO.s... | [
"0.7423949",
"0.681872",
"0.6018952",
"0.58992225",
"0.5863862",
"0.57888633",
"0.5787277",
"0.57767314",
"0.57599145",
"0.57229936",
"0.5593294",
"0.5545456",
"0.5495799",
"0.5467334",
"0.535747",
"0.53301823",
"0.5298581",
"0.52655554",
"0.5245333",
"0.52247953",
"0.5207432... | 0.87808096 | 0 |
Gets the pump2 of this Conditions. | def u87i(YKHO):
return YKHO._pump2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mByQ(YKHO):\n return YKHO._pump1",
"def BzON(YKHO):\n return YKHO._q2",
"def u87i(YKHO, u87i):\n YKHO._pump2 = u87i",
"def xfng(YKHO):\n return YKHO.__pressure_b2",
"def HpuQ(YKHO) -> 'Point':\n return YKHO._p2",
"def krgz(YKHO):\n return YKHO.__W2",
"def krgz(YKHO):\n return Y... | [
"0.74040145",
"0.66653895",
"0.66020256",
"0.6545491",
"0.63313675",
"0.62996",
"0.62917775",
"0.62917775",
"0.62837505",
"0.6281031",
"0.6214586",
"0.6199035",
"0.6177407",
"0.6158468",
"0.6125916",
"0.6106293",
"0.61029184",
"0.6061402",
"0.6061402",
"0.5927257",
"0.5847017... | 0.8653571 | 0 |
Sets the pump2 of this Conditions. | def u87i(YKHO, u87i):
YKHO._pump2 = u87i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u87i(YKHO):\n return YKHO._pump2",
"def mByQ(YKHO, mByQ):\n YKHO._pump1 = mByQ",
"def xfng(YKHO, BWXx):\n YKHO.__pressure_b2 = BWXx",
"def iHlJ(YKHO, SpII):\n YKHO.t2 = SpII",
"def jvR6(YKHO, ABDL):\n YKHO.action('setValue2', ABDL)\n if 'value2' in YKHO.fibaro_device.properties:\n ... | [
"0.7367836",
"0.6963812",
"0.6152814",
"0.61261654",
"0.60352546",
"0.60086817",
"0.5955066",
"0.5946668",
"0.5898431",
"0.5814603",
"0.580564",
"0.58053464",
"0.5741373",
"0.5726696",
"0.5674971",
"0.5673501",
"0.56639075",
"0.566209",
"0.56538534",
"0.56502235",
"0.5616754"... | 0.86672395 | 0 |
Gets the vent of this Conditions. | def acyv(YKHO):
return YKHO._vent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ty9i(YKHO):\n return YKHO.veto",
"def Ty9i(YKHO):\n return YKHO.veto",
"def cAlv(YKHO):\n return YKHO._V",
"def cAlv(YKHO):\n return YKHO._V",
"def dMWy(YKHO):\n return YKHO.entr_vs_t",
"def GVJv(YKHO):\n return YKHO._Vi",
"def EJ7R(YKHO):\n Nq1b = YKHO.Aph * YKHO.Isc + YKHO.Is... | [
"0.6825003",
"0.6825003",
"0.6514552",
"0.6514552",
"0.6237511",
"0.62153643",
"0.615346",
"0.61180484",
"0.611124",
"0.6084158",
"0.6065223",
"0.6065223",
"0.6065223",
"0.60546505",
"0.60546505",
"0.59913635",
"0.5989426",
"0.5970516",
"0.5970516",
"0.59267443",
"0.59202313"... | 0.7391028 | 0 |
Gets the airheat of this Conditions. | def PljT(YKHO):
return YKHO._airheat | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uw6h(YKHO):\n return YKHO._waterheat",
"def Qdeb(YKHO):\n return YKHO._airmass",
"def SyKN(YKHO) -> x1iM[Pk0E]:\n return YKHO._return_air_temp",
"def m1I4(YKHO):\n return YKHO._specific_heat",
"def Z9Gk(YKHO):\n return YKHO._water",
"def Lhxs(YKHO):\n return YKHO._water_area",
"de... | [
"0.6909401",
"0.6589531",
"0.6397064",
"0.63337845",
"0.6136082",
"0.60708106",
"0.6024213",
"0.60148627",
"0.5969913",
"0.59509915",
"0.59265673",
"0.59180886",
"0.58952504",
"0.58703107",
"0.5829429",
"0.57936716",
"0.57887816",
"0.5788496",
"0.5777191",
"0.5767201",
"0.574... | 0.85299635 | 0 |
Gets the lastfeeding of this Conditions. | def PROD(YKHO):
return YKHO._lastfeeding | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UYB1(YKHO):\n return YKHO.last",
"def UYB1(YKHO):\n return YKHO.__sentinel.prev",
"def FrVQ(YKHO):\n return YKHO.__last.value",
"def XVAW(YKHO):\n return YKHO._last",
"def UYB1(YKHO):\n QxIo = YKHO.get_summary()\n return QxIo.get('last', None)",
"def UYB1(YKHO):\n try:\n r... | [
"0.731177",
"0.7251075",
"0.71719396",
"0.71635824",
"0.7126067",
"0.6999493",
"0.6908482",
"0.68862194",
"0.6827327",
"0.6811498",
"0.6802324",
"0.67868394",
"0.6784646",
"0.67716044",
"0.67641085",
"0.6760681",
"0.6756724",
"0.67321676",
"0.6730055",
"0.6719152",
"0.6689226... | 0.8581541 | 0 |
Gets the waterph of this Conditions. | def g5so(YKHO):
return YKHO._waterph | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z9Gk(YKHO):\n return YKHO._water",
"def V3cK(YKHO):\n return YKHO.sensors.water_bar.value",
"def kqYm(YKHO):\n return YKHO._watertemp",
"def Uw6h(YKHO):\n return YKHO._waterheat",
"def Zuuv(YKHO):\n if YKHO.wiserHubData == None:\n YKHO.refreshData()\n return YKHO.wiserHubData.g... | [
"0.79388165",
"0.76337564",
"0.7604408",
"0.7399848",
"0.72021645",
"0.7063391",
"0.7043547",
"0.7007107",
"0.7007107",
"0.6918901",
"0.68498254",
"0.6823062",
"0.6808636",
"0.67940766",
"0.67524874",
"0.6692357",
"0.661212",
"0.657472",
"0.6485722",
"0.64770985",
"0.645257",... | 0.90864897 | 0 |
Gets the watertemp of this Conditions. | def kqYm(YKHO):
return YKHO._watertemp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z9Gk(YKHO):\n return YKHO._water",
"def CZoo(YKHO):\n return YKHO.__wetbulb_temp",
"def Uw6h(YKHO):\n return YKHO._waterheat",
"def g5so(YKHO):\n return YKHO._waterph",
"def V3cK(YKHO):\n return YKHO.sensors.water_bar.value",
"def ICVX(YKHO):\n if YKHO._update_on_read:\n YKHO... | [
"0.826905",
"0.80139476",
"0.78792036",
"0.7878208",
"0.7874117",
"0.74839324",
"0.7451734",
"0.7356526",
"0.7347403",
"0.7206958",
"0.71770555",
"0.7142799",
"0.71362424",
"0.7135682",
"0.71323705",
"0.71322674",
"0.7101259",
"0.7078983",
"0.7075355",
"0.7072947",
"0.7065551... | 0.91269344 | 0 |
Gets the ambienttemp of this Conditions. | def LRBF(YKHO):
return YKHO._ambienttemp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rx_P(YKHO):\n return YKHO._read_temp(mSiD)",
"def sSFW(YKHO):\n return YKHO._ambient",
"def sSFW(YKHO):\n return YKHO._ambient",
"def RaBp(YKHO):\n return YKHO.get('material.ambient')",
"def LRBF(YKHO, LRBF):\n YKHO._ambienttemp = LRBF",
"def sSFW(YKHO):\n return YKHO._K",
"def CM... | [
"0.74200606",
"0.73975325",
"0.73975325",
"0.7045085",
"0.6655478",
"0.6620628",
"0.6584334",
"0.6500057",
"0.63843256",
"0.634992",
"0.6343552",
"0.63131106",
"0.6304066",
"0.62387854",
"0.61489373",
"0.61035985",
"0.6099552",
"0.6099552",
"0.60452205",
"0.60224944",
"0.5999... | 0.86496913 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8393979",
"0.83558035",
"0.8296232",
"0.8133502",
"0.81157666",
"0.81012607",
"0.81002367",
"0.809912",
"0.809912",
"0.8094049",
"0.8094049",
"0.8094049",
"0.8094049",
"0.8086498",
"0.8086498",
"0.8086498",
"0.8086498",
"0.8086498",
"0.8068001",
"0.80598176",
"0.80587703",... | 0.0 | -1 |
Return the default rating score of a new element. The default initial score cannot be change over the project to ensure the fairness of the rating. | def mtVW(YKHO):
return YKHO.__base_score | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b51K(YKHO):\n AYkr = CQEZ().get_expected_score('player1', 'player2')\n YKHO.assertEqual(AYkr, 0.5)",
"def lcsm(YKHO):\n if YKHO.num_ratings == 0:\n return 0\n else:\n return YKHO.avg_rating",
"def TuXR(YKHO):\n YKHO.assertEqual(CQEZ().get_rating('player'), ZFZg)",
"def p1kx(Y... | [
"0.668389",
"0.6357327",
"0.6167642",
"0.60926664",
"0.60821426",
"0.6067151",
"0.6058251",
"0.60519624",
"0.604525",
"0.6008614",
"0.59723675",
"0.59723675",
"0.5967479",
"0.5949377",
"0.5947317",
"0.59460926",
"0.59373707",
"0.59334075",
"0.5927446",
"0.5874049",
"0.5861031... | 0.6002426 | 10 |
Return the rating score of an element from current rating records. | def p1kx(YKHO, U6D_):
try:
return YKHO.element_space[U6D_]
except KeyError as key_er:
cdmA.args = (f'There is no {U6D_} in the record. ',)
raise | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KxLu(YKHO, Xmz3):\n dWFn = Xmz3['class'][4].split('-')[1]\n RrWF = int(dWFn) / 10\n return RrWF",
"def p1kx(YKHO):\n RrWF = YKHO.info.find(class_='score').text\n RrWF = float(RrWF.strip())\n return RrWF",
"def p1kx(YKHO):\n RrWF = YKHO.soup.find(class_='score').text\n RrWF = float(R... | [
"0.7149388",
"0.69647634",
"0.6931477",
"0.681727",
"0.67760587",
"0.66125894",
"0.65439314",
"0.65224946",
"0.6522277",
"0.65160525",
"0.65101427",
"0.65003604",
"0.6490244",
"0.64602304",
"0.64476496",
"0.64426804",
"0.64366937",
"0.6422882",
"0.6410469",
"0.6392625",
"0.63... | 0.7133553 | 1 |
Inserts a tutor into the database. Returns a dictionary representation of the tutor. | def e8_s(YKHO, NtEF, jTXt, mWFP, ZJe_, F415, sSN_):
DpUl = YKHO.conn.cursor()
YKHO.insert_major(F415)
gD8I = YKHO.get_major_by_name(F415)
S22Q = gD8I['major_id']
NTfD = B8ni.gensalt()
xDcj = 'INSERT INTO tutor(username, password, salt, name, age, area_expertise_id, cost) VALUES(?, ?, ?, ?, ?, ?,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _RPo(YKHO, DCKO, Gzlt):\n DpUl = YKHO.conn.cursor()\n xDcj = 'INSERT OR IGNORE INTO student_tutor(student_id, tutor_id) VALUES(?,?)'\n DpUl.execute(xDcj, (DCKO, Gzlt))\n YKHO.conn.commit()\n return 0",
"def Ywmq(YKHO) -> None:\n w2B8 = iHv3.connect(T97t.DEFAULT_PATH)\n with w2B8:\n ... | [
"0.6412935",
"0.59618187",
"0.59064835",
"0.5863207",
"0.58156586",
"0.5759597",
"0.5669524",
"0.5660322",
"0.5624525",
"0.5614533",
"0.5611302",
"0.5591173",
"0.5591173",
"0.5591173",
"0.5582811",
"0.5532157",
"0.55300224",
"0.55041057",
"0.55041057",
"0.55041057",
"0.548926... | 0.6869769 | 0 |
Recreate the agent as it was at the beginning of the original game. | def FIMM(YKHO, mWFP, qQNS, lYZc, yWi6):
super().__init__(mWFP, None, qQNS, False, None, lYZc, yWi6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GQwF(YKHO):\n YKHO.ship.reset()\n _40k.initiate_game()\n YKHO.death = False\n YKHO.spawn_speed = uwaB.INITIAL_SPAWN_FREQUENCY\n YKHO.next_spawn = fs6s.frame_count + YKHO.spawn_speed",
"def SiRx(YKHO):\n YKHO.step_count = 0\n YKHO.agent = mA7V()\n YKHO.agent.radius = YKHO.agent_groesse... | [
"0.6879357",
"0.6700089",
"0.66387856",
"0.6635639",
"0.65797776",
"0.6575651",
"0.65467215",
"0.65122604",
"0.65012157",
"0.6467907",
"0.6440629",
"0.6406793",
"0.63186216",
"0.6304325",
"0.6300444",
"0.62994283",
"0.628942",
"0.62858236",
"0.6284461",
"0.6276678",
"0.627513... | 0.0 | -1 |
Propagates requirement files for use without Poetry. | def a7yG():
for qVE2, Ux0P, SVUc, Jk5f in NOc3:
m9_Z(extras=qVE2, filename=Ux0P, include_pymedphys=SVUc, editable=Jk5f) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBL9(YKHO):\n aQWm = oAb3.Path(xAKo).parents[1].joinpath('requirements.txt')\n fA3L = qHZg.req.parse_requirements(str(aQWm), session=qHZg.download.PipSession())\n fA3L = [str(Mkmy.req) for Mkmy in fA3L]\n RkCj.require(fA3L)",
"def MBL9(YKHO):\n fA3L = IAob.text_file.TextFile(filename=g58G).rea... | [
"0.6718216",
"0.65313405",
"0.65129036",
"0.64984065",
"0.64460564",
"0.6407945",
"0.64072895",
"0.6370167",
"0.63571125",
"0.6332163",
"0.63075364",
"0.6290497",
"0.62344396",
"0.6198903",
"0.6178586",
"0.6157651",
"0.61509526",
"0.61057967",
"0.61015445",
"0.60752845",
"0.6... | 0.7140818 | 0 |
Tests user can create list from view. | def FRm2(YKHO):
Z9rn = i9zE()
Z9rn.login(username='kawaztan', password='password')
geh0 = Z9rn.post(gxEw('lists_list_create'), {'label': u'STG素材一覧', 'pub_state': 'public', 'order': 'download'})
Ej5C(x1iM.objects.get(label=u'STG素材一覧')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _H08(YKHO):\n geh0 = YKHO.client.get('/lists/1/items/1/')\n YKHO.assertEqual(geh0.data, {'name': 'first list item', 'done': False, 'creator': 'tom', 'id': 1})",
"def VAHx(YKHO):\n UHFx = x1iM.objects.count()\n Z9rn = i9zE()\n geh0 = Z9rn.post(gxEw('lists_list_create'), {'label': u'かわずたん素材集', '... | [
"0.7543323",
"0.7386821",
"0.73535544",
"0.734493",
"0.7336741",
"0.7268568",
"0.72457045",
"0.72108275",
"0.7190975",
"0.7190809",
"0.7147164",
"0.7125266",
"0.70715475",
"0.7049561",
"0.7021722",
"0.701186",
"0.6991865",
"0.6985786",
"0.6974738",
"0.6974738",
"0.6957547",
... | 0.661925 | 69 |
Tests anonymous user can't create list from view. | def VAHx(YKHO):
UHFx = x1iM.objects.count()
Z9rn = i9zE()
geh0 = Z9rn.post(gxEw('lists_list_create'), {'label': u'かわずたん素材集', 'pub_state': 'public', 'order': 'download'})
NaW5(UHFx, x1iM.objects.count()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pORt(YKHO):\n YKHO.c.logout()\n geh0 = YKHO.c.get(gxEw('lists_list_list'))\n Ej5C(not hasattr(geh0.context, 'object_list'))",
"def IrKO(YKHO):\n YKHO.client.force_authenticate(user=YKHO.regular_user)\n geh0 = YKHO.client.get(U4Px())\n YKHO.assertEqual(jGRS.HTTP_403_FORBIDDEN, geh0.status_co... | [
"0.76811063",
"0.76270723",
"0.762143",
"0.75981843",
"0.7543402",
"0.7538541",
"0.7508201",
"0.74956846",
"0.74526",
"0.7446614",
"0.74144554",
"0.7359587",
"0.7343546",
"0.7318903",
"0.73082477",
"0.7234162",
"0.72289693",
"0.7147614",
"0.71261823",
"0.71063596",
"0.7098878... | 0.0 | -1 |
Tests user can update list from view. | def Uj4G(YKHO):
geh0 = YKHO.c.post(gxEw('lists_list_update', args=[YKHO.ls.pk]), {'label': 'spam', 'pub_state': YKHO.ls.pub_state, 'order': YKHO.ls.order})
YKHO.ls = x1iM.objects.get(pk=YKHO.ls.pk)
NaW5(YKHO.ls.label, 'spam') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pkHC(YKHO):\n vC9B = x1iM.objects.get(name='First List')\n bD7m = gxEw('lists:edit', args=[vC9B.id])\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'First List')\n YKHO.assertContains(geh0, 'Item 0')\n YKHO.assertContains(geh0, 'Item 9'... | [
"0.7479899",
"0.7424581",
"0.7109018",
"0.7083548",
"0.7028587",
"0.7012134",
"0.7006595",
"0.7005984",
"0.7000722",
"0.699881",
"0.6982449",
"0.69798875",
"0.69672114",
"0.6956266",
"0.69560146",
"0.69553876",
"0.6944048",
"0.69174916",
"0.68936265",
"0.6871334",
"0.68702424... | 0.744412 | 1 |
Tests list owner only can manage lists. | def zDIJ(YKHO):
YKHO.c.logout()
geh0 = YKHO.c.post(gxEw('lists_list_update', args=[YKHO.ls.pk]), {'label': 'spamspam', 'pub_state': YKHO.ls.pub_state, 'order': YKHO.ls.order})
YKHO.ls = x1iM.objects.get(pk=YKHO.ls.pk)
NaW5(YKHO.ls.label, 'ham') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def naTz(YKHO):\n Fg_i = cv6l.objects.create(name='test booklist', owner=YKHO.user1)\n YKHO.assertTrue(YKHO.user1.has_perm('books.change_booklist', Fg_i))\n YKHO.assertFalse(YKHO.user2.has_perm('books.change_booklist', Fg_i))\n YKHO.assertTrue(YKHO.user1.has_perm('books.delete_booklist', Fg_i))\n YK... | [
"0.7689081",
"0.7247165",
"0.7196318",
"0.70383465",
"0.7017408",
"0.6973744",
"0.6935508",
"0.68397754",
"0.6799872",
"0.67790794",
"0.67738473",
"0.67595595",
"0.6674898",
"0.6636853",
"0.66001993",
"0.6538974",
"0.6535743",
"0.65311486",
"0.6529852",
"0.65032583",
"0.64970... | 0.75494266 | 1 |
Tests authenticated user can get own lists list. | def zKKk(YKHO):
YKHO.c.login(username='kawaztan2', password='password')
uyUz = x1iM.objects.create(label='hamham', pub_state='public', order='download', author=YKHO.user2)
UHFx = x1iM.objects.filter(author=YKHO.user2).count()
geh0 = YKHO.c.get(gxEw('lists_list_list'))
IHXE = geh0.context['object_lis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pORt(YKHO):\n YKHO.c.logout()\n geh0 = YKHO.c.get(gxEw('lists_list_list'))\n Ej5C(not hasattr(geh0.context, 'object_list'))",
"def IrKO(YKHO):\n YKHO.client.force_authenticate(user=YKHO.regular_user)\n geh0 = YKHO.client.get(U4Px())\n YKHO.assertEqual(jGRS.HTTP_403_FORBIDDEN, geh0.status_co... | [
"0.76665956",
"0.7654997",
"0.7586405",
"0.7560694",
"0.7449389",
"0.74382794",
"0.74311405",
"0.7363391",
"0.7360115",
"0.7356167",
"0.7264435",
"0.7262878",
"0.7247995",
"0.72402835",
"0.7218846",
"0.7191909",
"0.71911037",
"0.71854854",
"0.71663135",
"0.71626526",
"0.71474... | 0.0 | -1 |
Shift coordinates in data by one half step, so that pcolormesh draws boxes in the right place. | def YInZ(nPrm):
RAud = (nPrm[:-1] + nPrm[1:]) / 2
return oyIN.concatenate(([2 * nPrm[0] - RAud[0]], RAud, [2 * nPrm[-1] - RAud[-1]])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FKRJ(YKHO):\n for XP5J in YKHO.particles:\n XP5J.x -= YKHO.dim.xlo\n XP5J.y -= YKHO.dim.ylo\n XP5J.z -= YKHO.dim.zlo\n YKHO.dim.xhi -= YKHO.dim.xlo\n YKHO.dim.yhi -= YKHO.dim.ylo\n YKHO.dim.zhi -= YKHO.dim.zlo\n YKHO.dim.xlo -= YKHO.dim.xlo\n YKHO.dim.ylo -= YKHO.dim.ylo\... | [
"0.6183258",
"0.6088297",
"0.56996846",
"0.5673862",
"0.5656353",
"0.55951935",
"0.5585977",
"0.5542142",
"0.5522702",
"0.5462601",
"0.54476494",
"0.54433537",
"0.5435637",
"0.54320735",
"0.54256296",
"0.5386172",
"0.5360333",
"0.5346034",
"0.53459793",
"0.5337497",
"0.531111... | 0.0 | -1 |
The unique key for this Product, which an immutable tuple of the unique product_id | def lZ8k(YKHO):
return tuple(YKHO._product_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._meural_device['productKey']",
"def ShR8(YKHO) -> str:\n return YKHO._key",
"def adI8(YKHO):\n return YKHO._get_field('product unique id')",
"def Mc9N(YKHO) -> str:\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO.get_product_id()",
"def P1lZ(YKHO) -... | [
"0.77306974",
"0.77218676",
"0.7490461",
"0.7326637",
"0.7259388",
"0.7253458",
"0.72424",
"0.72268987",
"0.7211606",
"0.7211606",
"0.7211606",
"0.7207249",
"0.7195982",
"0.7168231",
"0.7162365",
"0.71411484",
"0.71411484",
"0.71338886",
"0.7094189",
"0.7091937",
"0.70818746"... | 0.8681174 | 0 |
toString for the Name for the Product. | def zAg0(YKHO):
return f'{YKHO._name}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO) -> str:\n try:\n return YKHO._name\n except AttributeError:\n pass\n Lx3t = str(YKHO.info.get('product_string', 'unknown product name'))\n YKHO._name: str = f'{YKHO.vendor} {Lx3t.title()}'\n return YKHO._name",
"def W0tD(YKHO, KAOR):\n return UT4w(KAOR)",
"def zAg... | [
"0.8256283",
"0.8152604",
"0.8149842",
"0.80056643",
"0.7958105",
"0.7929806",
"0.78435564",
"0.78435564",
"0.78191113",
"0.77831364",
"0.7775882",
"0.77564293",
"0.77037054",
"0.7676546",
"0.75740033",
"0.75662446",
"0.756253",
"0.7548737",
"0.7528008",
"0.7480828",
"0.74807... | 0.0 | -1 |
Return the multiplicative inverse of a mod n | def Nkes(jzdc, exwG):
if jzdc == 0 or ML2l(jzdc, exwG) != 1:
print('Inverse does not exist')
return -1
if jzdc == 1:
return 1
G1Hx = 1
while True:
BRTL = (1 + exwG * G1Hx) / jzdc
if BRTL.is_integer():
return int(BRTL)
else:
G1Hx = G... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c7zZ(jzdc, exwG):\n Oa1e, WKvO, bGrB = N5DO(jzdc, exwG)\n if Oa1e == 1:\n return WKvO % exwG",
"def K4d0(jzdc, exwG):\n Csk6, WKvO, LVAh = McrG(jzdc, exwG)\n if Csk6 != 1:\n return\n else:\n return WKvO % exwG",
"def GCaQ(Fg_i, exwG):\n Oa1e, WKvO, bGrB = HT_1(Fg_i, e... | [
"0.8767072",
"0.84725523",
"0.8406973",
"0.8298043",
"0.8269042",
"0.8193363",
"0.8185662",
"0.8160568",
"0.8160568",
"0.81351525",
"0.8121715",
"0.8081933",
"0.8074824",
"0.80536497",
"0.80451536",
"0.8037947",
"0.80200875",
"0.80055714",
"0.7957177",
"0.7957177",
"0.7949237... | 0.7830758 | 24 |
Inserts a word into the trie. | def JPHp(YKHO, GIN8):
DpUl = YKHO.root
for Z9rn in GIN8:
if not Z9rn in DpUl.leaves:
DpUl.leaves[Z9rn] = ep_x()
DpUl = DpUl.leaves[Z9rn]
DpUl.is_string = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True",
"def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y... | [
"0.89349246",
"0.8875727",
"0.88754433",
"0.88664436",
"0.8845666",
"0.88351166",
"0.8829387",
"0.88241696",
"0.88215303",
"0.88025844",
"0.87970716",
"0.87917984",
"0.87870646",
"0.8785743",
"0.87801075",
"0.8779744",
"0.87764865",
"0.87708014",
"0.8767584",
"0.8757558",
"0.... | 0.8786165 | 13 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8):
Q6kx = YKHO.childSearch(GIN8)
if Q6kx:
return Q6kx.is_string
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word",
"def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')... | [
"0.82730556",
"0.8268669",
"0.8264989",
"0.821454",
"0.8189983",
"0.81762034",
"0.81695247",
"0.81329536",
"0.7981468",
"0.7973667",
"0.7966321",
"0.79540753",
"0.7881218",
"0.7876813",
"0.78663623",
"0.7835046",
"0.7819606",
"0.7812851",
"0.7811768",
"0.7795306",
"0.77902055... | 0.0 | -1 |
Returns if there is any word in the trie that starts with the given prefix. | def BYxH(YKHO, y0cW):
return YKHO.childSearch(y0cW) is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals... | [
"0.86423564",
"0.84561706",
"0.8440192",
"0.84153765",
"0.8415339",
"0.8406678",
"0.8381424",
"0.83699024",
"0.833559",
"0.8327339",
"0.83272135",
"0.8239922",
"0.82292134",
"0.81726897",
"0.8159657",
"0.81522954",
"0.81471807",
"0.8115398",
"0.8010771",
"0.79837435",
"0.7983... | 0.7648933 | 76 |
Calculate iou of boxes | def v4Yr(HtXD, ROGq):
FJ23 = max(HtXD[0], ROGq[0])
cpky = max(HtXD[1], ROGq[1])
lCRk = min(HtXD[2], ROGq[2])
w871 = min(HtXD[3], ROGq[3])
c5_M = max(0, lCRk - FJ23 + 1) * max(0, w871 - cpky + 1)
aipi = (HtXD[2] - HtXD[0] + 1) * (HtXD[3] - HtXD[1] + 1)
g94v = (ROGq[2] - ROGq[0] + 1) * (ROGq[3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOkw(FlUN, oUSw):\n ab__ = (FlUN[2] - FlUN[0]) * (FlUN[3] - FlUN[1])\n f0tD = (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])\n frsW = oyIN.maximum(FlUN[0], oUSw[:, 0])\n TdlV = oyIN.maximum(FlUN[1], oUSw[:, 1])\n yjMy = oyIN.minimum(FlUN[2], oUSw[:, 2])\n YvNL = oyIN.minimum(FlUN[3], o... | [
"0.7959741",
"0.79341257",
"0.7819044",
"0.78056407",
"0.78026533",
"0.7792266",
"0.77899134",
"0.7781466",
"0.7781466",
"0.7781466",
"0.7781466",
"0.7781466",
"0.7781466",
"0.77720785",
"0.7735947",
"0.77055424",
"0.7637713",
"0.7634824",
"0.76299673",
"0.7626632",
"0.761355... | 0.0 | -1 |
Returns whether or not the item is empty. | def waS5(jzdc: Any) -> bool:
return bool(jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO, ZfUD):\n return YKHO.items == []",
"def FBfn(YKHO) -> bool:\n return YKHO._item.is_empty()",
"def FBfn(YKHO) -> bool:\n return YKHO._items.is_empty()",
"def FBfn(YKHO):\n return YKHO.num_items == 0",
"def FBfn(YKHO):\n return YKHO.num_items == 0",
"def FBfn(YKHO) -> bool:\n ... | [
"0.9093005",
"0.9092312",
"0.89588183",
"0.8933367",
"0.89165044",
"0.8861305",
"0.8851397",
"0.8851397",
"0.8851397",
"0.8851397",
"0.8850901",
"0.88381594",
"0.88381594",
"0.88381594",
"0.88234013",
"0.88012284",
"0.8792089",
"0.8792089",
"0.8788335",
"0.87542796",
"0.87408... | 0.0 | -1 |
Sets the room_location_id of this RoomBaseItem. | def snx0(YKHO, snx0):
YKHO._room_location_id = snx0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qcmx(YKHO, qcmx):\n YKHO._location_id = qcmx",
"def qcmx(YKHO, qcmx):\n YKHO._location_id = qcmx",
"def qcmx(YKHO, qcmx):\n YKHO._location_id = qcmx",
"def qcmx(YKHO, qcmx):\n YKHO._location_id = qcmx",
"def jsDt(YKHO, jsDt):\n YKHO._logical_location_id = jsDt",
"def qcmx(YKHO, qcmx):\... | [
"0.7460829",
"0.7460829",
"0.7460829",
"0.7460829",
"0.66897976",
"0.6607357",
"0.64287806",
"0.64104104",
"0.6334046",
"0.63053435",
"0.61661863",
"0.6128473",
"0.61225104",
"0.6080972",
"0.6048053",
"0.59705454",
"0.5964418",
"0.59548694",
"0.5858119",
"0.5821278",
"0.58212... | 0.85210955 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Prevents parameter and stats from updating in Batchnorm layers that are frozen | def OXzC(VlDb: Module) -> awyi:
for r8hN in VlDb.modules():
if isinstance(r8hN, _bh1) and r8hN.affine and all((not XP5J.requires_grad for XP5J in r8hN.parameters())):
r8hN.track_running_stats = False
r8hN.eval()
return VlDb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FiJ9(YKHO):\n for XP5J in YKHO.parameters():\n XP5J.requires_grad = False\n LTQ5.convert_frozen_batchnorm(YKHO)",
"def eJOg(YKHO) -> None:\n for r8hN in YKHO.modules():\n if isinstance(r8hN, RlEF):\n r8hN.eval()\n r8hN.weight.requires_grad = False\n r8h... | [
"0.7707242",
"0.7155495",
"0.71110725",
"0.71110725",
"0.7079857",
"0.700511",
"0.7004363",
"0.69560564",
"0.69260633",
"0.6902293",
"0.68995553",
"0.6861121",
"0.6853024",
"0.6828079",
"0.6797839",
"0.671601",
"0.6699413",
"0.6699413",
"0.6692971",
"0.66692287",
"0.66311496"... | 0.6730716 | 15 |
Hash passwords on user creation. | def bCYQ(ol4k):
for C13M in ol4k:
Go9N = vT87(C13M['password'])
C13M['password'] = Go9N | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7(YKHO, L03z):\n L03z.password.data = vT87(L03z.password.data)\n return super(f2pW, YKHO).create_model(L03z)",
"def xkzz(YKHO, *qIxc, **B2fa):\n YKHO.password = D2Lq(YKHO.password)\n super(mv1M, YKHO).save(*qIxc, **B2fa)",
"def xkzz(YKHO, *qIxc, **B2fa):\n if (YKHO.pk is None or YKHO.pass... | [
"0.75258",
"0.7439902",
"0.7142565",
"0.7110691",
"0.7078015",
"0.70085806",
"0.70085806",
"0.7004263",
"0.6966932",
"0.6959055",
"0.69485223",
"0.6942014",
"0.69021314",
"0.6898263",
"0.68575996",
"0.68462974",
"0.6807139",
"0.6799266",
"0.679536",
"0.67865056",
"0.67431974"... | 0.6558136 | 39 |
Return decoded JWT payload, throw error if invalid. | def V5V3(eOtH):
return DvJO.decode(eOtH, L_5q, issuer=Bvtv, algorithms=[Y04C]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ps0I(pdWF, M8Pi):\n try:\n pB3N = DvJO.decode(pdWF, key=M8Pi, algorithms=['HS512'])\n return pB3N\n except DvJO.ExpiredSignatureError:\n return 'Signature expired. Please log in again.'\n except DvJO.InvalidTokenError:\n return 'Invalid token. Please log in again.'",
"def... | [
"0.76978225",
"0.7632034",
"0.75131553",
"0.751248",
"0.75100607",
"0.7441524",
"0.7369371",
"0.7348337",
"0.7339679",
"0.73324895",
"0.7237213",
"0.7228888",
"0.72286725",
"0.71757865",
"0.7170382",
"0.7143691",
"0.7081316",
"0.7073186",
"0.70139694",
"0.7011099",
"0.6977934... | 0.0 | -1 |
RaggedTensor dispatcher for tf.image.resize (tfv2). | def aGuy(Yw_3: ragged_tensor.RaggedTensor, zNig, NKcE=hozG.ResizeMethod.BILINEAR, MrDn=False, BOkw=False, mWFP=None):
with IPme.name_scope(mWFP, 'RaggedResizeImages', [Yw_3, zNig]):
return OWxv(hozG.resize_images_v2, Yw_3, zNig, method=NKcE, preserve_aspect_ratio=MrDn, antialias=BOkw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y2JP(YKHO, vhpA):\n pass",
"def ECjv(BGFh, E2jX, sR2A, v8sN, JUuH, BHxz=False):\n with ZylS.Graph().as_default():\n nrO2 = _WqI.placeholder(shape=E2jX.shape, dtype='float32', name='in')\n zNig = IPme.convert_to_tensor(sR2A, dtype=sR2A.dtype)\n if BHxz:\n jPQ6 = ZylS.quan... | [
"0.6775094",
"0.6641092",
"0.6585294",
"0.6376918",
"0.6287293",
"0.6228029",
"0.61914915",
"0.60950494",
"0.6054311",
"0.5948546",
"0.59160167",
"0.5881968",
"0.58577156",
"0.5819014",
"0.58153486",
"0.5797634",
"0.5797454",
"0.5789715",
"0.5777954",
"0.57582474",
"0.5742314... | 0.59428555 | 10 |
Blends images of different resolutions according to `progress`. When training `progress` is at a stable stage for resolution r, returns image `x` downscaled to resolution r and then upscaled to `final_resolutions`, call it x'(r). Otherwise when training `progress` is at a transition stage from resolution r to 2r, retur... | def McVT(WKvO, Eb4t, TK__, YIPF):
W5xg = []
for yetk in range(1, YIPF + 1):
Cwt5 = J66u(yetk, Eb4t)
NXpY = TK__.scale_factor(yetk)
dKjb = TK__.upscale(TK__.downscale(WKvO, NXpY), NXpY)
W5xg.append(Cwt5 * dKjb)
return ZylS.add_n(W5xg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dRO0(YKHO, WKvO, LVAh, LT6S):\n bwkE.validate_image_inputs(WKvO, validate_power2=False)\n Jw9H = WKvO.shape[-1].value\n if Jw9H not in [1, 3]:\n raise ValueError('Number of color channels unknown: %s' % Jw9H)\n Npgh = 64\n XkN1 = YKHO._resnet_block(name='B0', in_channels=Jw9H, out_channel... | [
"0.56576806",
"0.53403527",
"0.50561416",
"0.49588004",
"0.49279732",
"0.48903576",
"0.48443103",
"0.48410076",
"0.47504318",
"0.47412017",
"0.4706302",
"0.46811083",
"0.46662647",
"0.4660941",
"0.46604735",
"0.46559283",
"0.46362746",
"0.46341717",
"0.463094",
"0.46199456",
... | 0.6844948 | 0 |
Test invalid password users cannot login. | def Gscb(YKHO):
YKHO.sign_up()
Ylbp = YKHO.client().post('/v1/authentication', content_type='application/json', data=qQXR.dumps(YKHO.invalid_password_user))
Aofo = qQXR.loads(Ylbp.data.decode())
YKHO.assertEqual(Ylbp.status_code, 401)
YKHO.assertEqual(Aofo['message'], 'Invalid email or password.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m0p0(YKHO):\n dsbO = mv1M.login('testuser', 'pass1234toomany')\n YKHO.assertFalse(dsbO)",
"def Q8_E(YKHO):\n YKHO.user_signup()\n YKHO.user.password = 'my_fake_password'\n O_hj, JBvl = YKHO.user_login()\n YKHO.assertEqual(JBvl, 400)\n YKHO.assertEqual(O_hj['status'], 'error')",
"def BR... | [
"0.8458814",
"0.8297005",
"0.8288448",
"0.8220421",
"0.8216339",
"0.8214353",
"0.8189082",
"0.81497264",
"0.81412715",
"0.81101584",
"0.810852",
"0.80958337",
"0.809568",
"0.80766624",
"0.8049496",
"0.80244046",
"0.80095613",
"0.8007971",
"0.7990458",
"0.79818654",
"0.7916306... | 0.7489618 | 80 |
Get n_neighbors approximate nearest neighbors from the full Annoy index stored on disk | def OZ4U(YKHO, GWE6, hKUR=20):
if YKHO.index_built:
Exception('Index has not yet been generated')
p6S0 = wXjO.AnnoyIndex(YKHO.n_dimensions, 'angular')
p6S0.load(YKHO.annoy_idx_file)
uk8L = YKHO.photo_indices.index(GWE6.id)
M0Qu, AFNL = p6S0.get_nns_by_item(uk8L, n=hKUR, include_distances=Tru... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sOI3(__n6, hKUR):\n I9iN.set_distance_type(distance_type='euclidean')\n Af4S = I9iN.FLANN()\n NArs = Af4S.build_index(__n6, algorithm='kdtree', trees=4)\n CLQW, eFr6 = Af4S.nn_index(__n6, hKUR, checks=NArs['checks'])\n return (CLQW, eFr6)",
"def kYHA(g8x2, tAX0):\n SgpZ = len(g8x2) / g8x2.v... | [
"0.69439834",
"0.68992037",
"0.6775334",
"0.66902924",
"0.65722483",
"0.6515371",
"0.64885545",
"0.6482467",
"0.6410312",
"0.63633204",
"0.63470966",
"0.6334332",
"0.6321659",
"0.63149905",
"0.6282362",
"0.62499803",
"0.622056",
"0.6196417",
"0.61863",
"0.6181794",
"0.6171904... | 0.6562658 | 5 |
Average UDP rate in MB/s over the entire run. This is the average UDP rate observed at the terminal the iperf result is pulled from. According to iperf3 documentation this is calculated based on bytes sent and thus is not a good representation of the quality of the link. If the result is not from a success run, this pr... | def x87B(YKHO):
if not YKHO._has_data() or 'sum' not in YKHO.result['end']:
return None
huhu = YKHO.result['end']['sum']['bits_per_second']
return YKHO._get_reporting_speed(huhu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drQI(YKHO):\n dixj = 0.0\n for YRbF in range(10):\n yvT9 = YKHO.vhost.send_expect('show port stats all', 'testpmd>', 60)\n ITS7.sleep(5)\n Nqlg = ZbWC.search('Rx-pps:\\\\s*(\\\\d*)', yvT9)\n Aofo = Nqlg.group(1)\n dixj += float(Aofo)\n NvO7 = dixj / (1000000 * 10)\n ... | [
"0.7497102",
"0.74757105",
"0.7365505",
"0.7017094",
"0.6673553",
"0.66264516",
"0.64945465",
"0.64762914",
"0.64491504",
"0.6403205",
"0.63867426",
"0.63672614",
"0.6361359",
"0.6335857",
"0.63102293",
"0.62872434",
"0.62326854",
"0.61750054",
"0.6169346",
"0.6155005",
"0.61... | 0.72610646 | 3 |
Average receiving rate in MB/s over the entire run. This data may not exist if iperf was interrupted. If the result is not from a success run, this property is None. | def F11P(YKHO):
if not YKHO._has_data() or 'sum_received' not in YKHO.result['end']:
return None
huhu = YKHO.result['end']['sum_received']['bits_per_second']
return YKHO._get_reporting_speed(huhu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x87B(YKHO):\n if not YKHO._has_data() or 'sum' not in YKHO.result['end']:\n return None\n huhu = YKHO.result['end']['sum']['bits_per_second']\n return YKHO._get_reporting_speed(huhu)",
"def KtOe(YKHO):\n if not YKHO._has_data() or 'sum_sent' not in YKHO.result['end']:\n return None\... | [
"0.7396489",
"0.7373407",
"0.719189",
"0.70241386",
"0.6950137",
"0.6612585",
"0.6585569",
"0.65829337",
"0.65573215",
"0.64606494",
"0.64057386",
"0.6390708",
"0.6390708",
"0.63719714",
"0.63633716",
"0.63594854",
"0.6341878",
"0.6327517",
"0.6323877",
"0.6322602",
"0.631051... | 0.7712875 | 0 |
Average sending rate in MB/s over the entire run. This data may not exist if iperf was interrupted. If the result is not from a success run, this property is None. | def KtOe(YKHO):
if not YKHO._has_data() or 'sum_sent' not in YKHO.result['end']:
return None
huhu = YKHO.result['end']['sum_sent']['bits_per_second']
return YKHO._get_reporting_speed(huhu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F11P(YKHO):\n if not YKHO._has_data() or 'sum_received' not in YKHO.result['end']:\n return None\n huhu = YKHO.result['end']['sum_received']['bits_per_second']\n return YKHO._get_reporting_speed(huhu)",
"def Vei8(YKHO):\n if YKHO.count == 0:\n return None\n return YKHO.block_io_s... | [
"0.73273706",
"0.7066844",
"0.7040222",
"0.69554347",
"0.6934652",
"0.66466945",
"0.6571793",
"0.64495105",
"0.6417993",
"0.63580155",
"0.63580155",
"0.63270926",
"0.6312456",
"0.6309308",
"0.63023704",
"0.6295903",
"0.6284871",
"0.6279962",
"0.6270852",
"0.6257728",
"0.62513... | 0.7846896 | 0 |
Computes average peak signaltonoise ratio of `predictions`. Here PSNR is defined with respect to the maximum value of 1. All image tensors must be within the range [0, 1]. | def yIql(Crrw, N6Z1):
N6Z1.shape.assert_is_compatible_with(Crrw.shape)
with ZylS.control_dependencies([ZylS.assert_greater_equal(Crrw, 0.0), ZylS.assert_less_equal(Crrw, 1.0)]):
f4Pr = ZylS.image.psnr(Crrw, N6Z1, max_val=1.0)
f4Pr = ZylS.boolean_mask(f4Pr, ZylS.logical_not(ZylS.is_inf(f4Pr)))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XJDS(aJu6, nvEb):\n return 10.0 * ZylS.log(1.0 / SDab(aJu6, nvEb)) / ZylS.log(10.0)",
"def XJDS(aJu6, nvEb):\n return 10.0 * ZylS.log(1.0 / SDab(aJu6, nvEb)) / ZylS.log(10.0)",
"def YIrj(N6Z1, uSzd=40):\n exwG = int(len(N6Z1) / uSzd)\n SiB1 = oyIN.zeros(exwG)\n for YRbF in range(exwG):\n ... | [
"0.6709503",
"0.6683155",
"0.65561086",
"0.6467406",
"0.6455253",
"0.6455253",
"0.644646",
"0.64336157",
"0.64164937",
"0.63844526",
"0.6370381",
"0.6333873",
"0.6328567",
"0.6322901",
"0.6312246",
"0.62750363",
"0.6270831",
"0.6270831",
"0.6265278",
"0.62504584",
"0.62385136... | 0.7002763 | 0 |
Constructor allocates 2D array as a game board | def FIMM(YKHO, vv1D, u2mp):
YKHO._grid = PrEz(vv1D, u2mp)
YKHO.configure(list()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.board = oyIN.zeros((P5Bq, P5Bq))",
"def FIMM(YKHO):\n iBIi = [7][7]\n for YRbF in range(0, 7):\n for r845 in range(0, 7):\n iBIi[YRbF][r845] = 0",
"def yqe1(YKHO):\n YKHO.board = [[None] * YKHO.board_size for bGrB in range(YKHO.board_size)]",
"def FIMM(YKH... | [
"0.78946716",
"0.778165",
"0.7749591",
"0.77308404",
"0.7686075",
"0.7637733",
"0.76284254",
"0.762561",
"0.76150256",
"0.76119775",
"0.74905103",
"0.74743825",
"0.73920834",
"0.736258",
"0.73558825",
"0.734987",
"0.7334383",
"0.7320114",
"0.729412",
"0.7281474",
"0.72248906"... | 0.7409014 | 12 |
Int > [String > tf.Session > [Int] > [Int] > tf.Tensor? > String? > Layer] Given the parameters passed to the network, when given the number of layers the network will have, create a list of functions that produce each layer given the layer size. | def ALPT(YKHO, hUTg):
def lHSY(YDYE):
def _6F6(mWFP, cuiw, GhuM, oLRV, hDmL=None, QJFF=None):
return Fzjt(name=mWFP, session=cuiw, input_shape=GhuM, output_shape=oLRV, activation=YDYE, input_node=hDmL, save_location=QJFF, batch_normalisation=YKHO.batch_normalisation)
return _6F6
d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N06O(YKHO, gqIb):\n fhcK = []\n for mLGw, zNig in enumerate(gqIb[1:], 1):\n fhcK.append({'weight': ZylS.Variable(ZylS.zeros([gqIb[mLGw - 1], zNig])), 'bias': ZylS.Variable(ZylS.random_normal([zNig])), 'activation': getattr(ZylS.nn, YKHO.activations[mLGw - 1])})\n return fhcK",
"def mTcX(YKHO,... | [
"0.6991612",
"0.68180877",
"0.6790329",
"0.659421",
"0.65580803",
"0.65376204",
"0.6516303",
"0.6511883",
"0.6451868",
"0.6353534",
"0.6348679",
"0.6311687",
"0.6250191",
"0.62446064",
"0.6210753",
"0.62007374",
"0.6198442",
"0.6194236",
"0.6170437",
"0.61654",
"0.6157911",
... | 0.57041484 | 74 |
Return the number of violations reported by OJAudit. | def Kd8W(YKHO, pOic: str, *jl9v) -> int:
Kd8W = 0
for UA5S in jl9v:
try:
kGys = YKHO._url_read(UA5S)
except nzyI.UrlOpener.url_open_exceptions:
return -1
try:
J_Es = QToG.etree.cElementTree.fromstring(kGys)
except QToG.etree.cElementTree.ParseE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cehs(YKHO):\n return sum((len(QxIo.lines) for QxIo in YKHO._diff_violations.values()))",
"def I8rZ(YKHO):\n Kgix = (XP5J.vehicle_make for XP5J in YKHO)\n return mBkc(Kgix)",
"def pxBh(YKHO) -> int:\n return qe4Y.get(YKHO, 'audit_status')",
"def SUed(YKHO):\n if YKHO.alerts:\n return... | [
"0.755433",
"0.68738467",
"0.62700564",
"0.6108348",
"0.6031212",
"0.59595895",
"0.59491944",
"0.583995",
"0.5822175",
"0.5812824",
"0.5775772",
"0.5769703",
"0.57509696",
"0.57369006",
"0.57208985",
"0.57118195",
"0.57091665",
"0.56908244",
"0.56873816",
"0.5687126",
"0.5682... | 0.6265584 | 3 |
The set of arguments for constructing a InstanceFleet resource. | def FIMM(Ro_8, *, JvOq: pulumi.Input[str], NLdo: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceFleetInstanceTypeConfigArgs']]]]=None, RFsw: Optional[pulumi.Input['InstanceFleetLaunchSpecificationsArgs']]=None, mWFP: Optional[pulumi.Input[str]]=None, ji6S: Optional[pulumi.Input[int]]=None, K2mF: Optional[pulumi.I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: InstanceFleetArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, JvOq: Optional[pulumi.Input[str]]=None, NLdo: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceFleetInstanceType... | [
"0.77283263",
"0.6914801",
"0.6596706",
"0.59526664",
"0.5921815",
"0.5851409",
"0.57477796",
"0.5535508",
"0.54658294",
"0.5416357",
"0.53709316",
"0.53464174",
"0.53464174",
"0.53464174",
"0.53420955",
"0.5337199",
"0.53274924",
"0.5322904",
"0.53080016",
"0.5303358",
"0.52... | 0.6179628 | 3 |
Input properties used for looking up and filtering InstanceFleet resources. | def FIMM(Ro_8, *, JvOq: Optional[pulumi.Input[str]]=None, NLdo: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceFleetInstanceTypeConfigArgs']]]]=None, RFsw: Optional[pulumi.Input['InstanceFleetLaunchSpecificationsArgs']]=None, mWFP: Optional[pulumi.Input[str]]=None, QO9g: Optional[pulumi.Input[int]]=None, WmT3: Op... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: InstanceFleetArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, JvOq: Optional[pulumi.Input[str]]=None, NLdo: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceFleetInstanceType... | [
"0.6198332",
"0.58917654",
"0.5534024",
"0.538688",
"0.5273753",
"0.5202629",
"0.51694846",
"0.50653267",
"0.4995151",
"0.49399897",
"0.49042493",
"0.47662386",
"0.47538188",
"0.4745517",
"0.4721012",
"0.4672835",
"0.46393126",
"0.4616399",
"0.4616106",
"0.459685",
"0.4576699... | 0.5666786 | 2 |
Get an existing InstanceFleet 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, JvOq: Optional[pulumi.Input[str]]=None, NLdo: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['InstanceFleetInstanceTypeConfigArgs']]]]]=None, RFsw: Optional[pulumi.Input[pulumi.InputType['InstanceFleetLaunchSpecificati... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V5ub(YKHO, Gf9c):\n return YKHO._fleets[Gf9c]",
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, KH6D: Optional[pulumi.Input[str]]=None, Fw4B: Optional[pulumi.Input[str]]=None, Ftfj: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['StackInstanceParamete... | [
"0.64023936",
"0.6054965",
"0.596808",
"0.5922014",
"0.59146845",
"0.59080034",
"0.57809246",
"0.57748765",
"0.5723535",
"0.57178825",
"0.5655935",
"0.56139255",
"0.5590727",
"0.557759",
"0.5502793",
"0.5490113",
"0.5404661",
"0.5393399",
"0.5350149",
"0.5330331",
"0.53213316... | 0.73923725 | 0 |
Return mean absolute deviation. | def XNqj(jzdc, Fg_i):
return oyIN.mean(oyIN.abs(jzdc - Fg_i)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mMqL(YKHO):\n lco2 = YKHO._get_training_element_difference()\n WNJo = oyIN.abs(lco2)\n gU0L = range(WNJo.shape[0])\n JBMS = []\n ifkm = []\n for d6pt in gU0L:\n JBMS.append(oyIN.mean(WNJo[d6pt], axis=0))\n for d6pt in gU0L:\n ifkm.append(oyIN.std(WNJo[d6pt], axis=0))\n ret... | [
"0.7665869",
"0.76637673",
"0.7643141",
"0.7635458",
"0.7582789",
"0.75701666",
"0.75217915",
"0.7500314",
"0.7493383",
"0.7318548",
"0.726975",
"0.72154385",
"0.7198929",
"0.7197174",
"0.7193782",
"0.7184452",
"0.7184051",
"0.7166687",
"0.714387",
"0.7100126",
"0.7034645",
... | 0.0 | -1 |
Checks that all the key value pairs in expected are in a dictionary in actual, which is a template context | def J33E(aEqx, n5sN, CJse=cIT_):
for H5ew, BWXx in aEqx.items():
if H5ew not in n5sN:
raise AssertionError('Actual does not contain key {0}'.format(H5ew))
l3Bh = n5sN.get(H5ew)
if not CJse(l3Bh, BWXx):
raise AssertionError("Values for key '{0}' don't match, expected v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ndNa(YKHO, n5sN, **aEqx):\n n5sN = {H5ew: n5sN[H5ew] for H5ew in aEqx if H5ew in n5sN}\n YKHO.assertEqual(aEqx, n5sN)",
"def BYCZ(GfdN, aEqx):\n for H5ew, wEf2 in aEqx.items():\n if isinstance(wEf2, dict):\n BYCZ(GfdN[H5ew], wEf2)\n else:\n assert GfdN[H5ew] == wE... | [
"0.7347999",
"0.69691956",
"0.6935566",
"0.6825787",
"0.6660993",
"0.66355217",
"0.6630741",
"0.6565458",
"0.6542748",
"0.6492656",
"0.6478711",
"0.64173317",
"0.6392227",
"0.63853127",
"0.63815075",
"0.63313895",
"0.6325302",
"0.6319527",
"0.62449837",
"0.623126",
"0.6206931... | 0.6793608 | 4 |
Return True if we don't have any data. | def uYVM(YKHO):
return YKHO._data.is_null | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUSK(YKHO):\n return len(YKHO.data) > 0",
"def LUSK(YKHO):\n return len(YKHO.data) > 0",
"def LUSK(YKHO):\n return YKHO.get_size() > 0",
"def LUSK(YKHO):\n return False",
"def FBfn(YKHO):\n if YKHO.data:\n return False\n return True",
"def FBfn(YKHO):\n return len(YKHO._da... | [
"0.877718",
"0.877718",
"0.8759003",
"0.85808194",
"0.84621185",
"0.8304912",
"0.8304912",
"0.82979566",
"0.82549095",
"0.8249071",
"0.8201279",
"0.82009566",
"0.82009566",
"0.82009566",
"0.82009566",
"0.82009566",
"0.82009566",
"0.82009566",
"0.82009566",
"0.82009566",
"0.82... | 0.0 | -1 |
Return True if we haven't marked the author's branch. | def Mkre(YKHO):
return YKHO._data.status is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GALQ(YKHO):\n return YKHO.branch is not None",
"def wtMY():\n Tueq = tgM5(['diff', '--name-only', 'HEAD'])\n if not Tueq:\n return True\n return False",
"def HS2Y(YKHO):\n return 'author' in YKHO.metadata",
"def KW4R(YKHO):\n return True if YKHO.has_branch(YKHO.pristine_tar_branc... | [
"0.7179438",
"0.6914072",
"0.6450828",
"0.6262028",
"0.62600076",
"0.62497115",
"0.62332094",
"0.61983824",
"0.6185211",
"0.60954434",
"0.6095189",
"0.60255",
"0.5995669",
"0.59903187",
"0.598423",
"0.5955171",
"0.5933556",
"0.59151924",
"0.5892631",
"0.5868658",
"0.5840473",... | 0.0 | -1 |
Return True if the author's branch is marked 'bad prereview'. | def NiJR(YKHO):
return YKHO._data.status == Alz8.WB_STATUS_BAD_PREREVIEW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MVB8(LsSW: praw.objects.Submission) -> bool:\n return False",
"def ujzw(YKHO):\n assert YKHO.review_id_or_none() is not None\n YKHO._data.status = Alz8.WB_STATUS_BAD_INREVIEW\n YKHO._data.has_new_commits = False",
"def Ogel(YKHO):\n assert YKHO.review_id_or_none() is None\n assert YKHO.is... | [
"0.6311776",
"0.6142035",
"0.604914",
"0.59530985",
"0.5935854",
"0.5911499",
"0.59001",
"0.58991945",
"0.58875483",
"0.5868835",
"0.58025575",
"0.5726564",
"0.56778157",
"0.5655144",
"0.56514156",
"0.5632529",
"0.5630512",
"0.56245685",
"0.55994177",
"0.5574037",
"0.556304",... | 0.6804235 | 0 |
Return True if the author's branch is marked 'bad land'. | def unm6(YKHO):
return YKHO._data.status == Alz8.WB_STATUS_BAD_LAND | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mROp(YKHO, Eorv):\n raise UwsJ.exceptions.InappropriateError(\"Can't tell if this is a branch Larry... \")",
"def kQV3(YKHO):\n assert YKHO.review_id_or_none() is not None\n YKHO._data.status = Alz8.WB_STATUS_BAD_LAND\n YKHO._data.has_new_commits = False",
"def GALQ(YKHO):\n return YKHO.bran... | [
"0.67629725",
"0.6740343",
"0.64650303",
"0.6378696",
"0.6297093",
"0.62763554",
"0.604057",
"0.59871465",
"0.59741217",
"0.593516",
"0.5927685",
"0.58702713",
"0.586571",
"0.5840458",
"0.57939035",
"0.57874525",
"0.5765545",
"0.57420695",
"0.57022333",
"0.56835556",
"0.56780... | 0.66683203 | 2 |
Return True if the author's branch is marked 'bad abandoned'. | def auzH(YKHO):
return YKHO._data.status == Alz8.WB_STATUS_BAD_ABANDONED | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ugas(YKHO):\n assert YKHO.review_id_or_none() is not None\n YKHO._data.status = Alz8.WB_STATUS_BAD_ABANDONED\n YKHO._data.has_new_commits = False",
"def yCe7(YKHO):\n return YKHO._data.is_abandoned",
"def wtMY():\n Tueq = tgM5(['diff', '--name-only', 'HEAD'])\n if not Tueq:\n retur... | [
"0.7046768",
"0.68365014",
"0.6779135",
"0.66499484",
"0.63110334",
"0.62323624",
"0.6130266",
"0.60333216",
"0.5910796",
"0.5905121",
"0.5878348",
"0.584986",
"0.5802667",
"0.5799148",
"0.57539093",
"0.56619203",
"0.56576025",
"0.56380063",
"0.5621531",
"0.56171936",
"0.5613... | 0.7367122 | 0 |
Return True if the author's branch is marked any bad status. | def raav(YKHO):
if YKHO._data.status:
return YKHO._data.status.startswith(Alz8.WB_STATUS_PREFIX_BAD)
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wtMY():\n Tueq = tgM5(['diff', '--name-only', 'HEAD'])\n if not Tueq:\n return True\n return False",
"def GALQ(YKHO):\n return YKHO.branch is not None",
"def auzH(YKHO):\n return YKHO._data.status == Alz8.WB_STATUS_BAD_ABANDONED",
"def K5BR(YKHO) -> bool:\n zJsh = YKHO.call_git([... | [
"0.68763125",
"0.66862184",
"0.6511189",
"0.6502642",
"0.6497033",
"0.64418966",
"0.6427687",
"0.6298404",
"0.6268298",
"0.6264083",
"0.6218733",
"0.6111492",
"0.602795",
"0.5996912",
"0.5976332",
"0.59660023",
"0.5933006",
"0.5911419",
"0.5878807",
"0.58782613",
"0.5870412",... | 0.6472097 | 5 |
Return the string hash of the review branch or None. | def JPMJ(YKHO):
return 'reviewbranchhash' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oh8Q() -> str:\n return Yn3K.Popen(['git', 'rev-parse', '--verify', 'HEAD'], stdout=Yn3K.PIPE).communicate()[0].decode('utf-8').replace('\\n', '')",
"def ILov():\n try:\n Oh8Q = Yn3K.check_output(['git', 'describe', '--always']).strip().decode('utf-8')\n return Oh8Q\n except:\n ... | [
"0.68465805",
"0.67582875",
"0.6741094",
"0.6741094",
"0.6720968",
"0.671798",
"0.67170537",
"0.6688794",
"0.6666857",
"0.66560185",
"0.6618564",
"0.6586671",
"0.6559248",
"0.6536893",
"0.6499865",
"0.64526546",
"0.642274",
"0.6421741",
"0.6381548",
"0.6324741",
"0.630107",
... | 0.79295236 | 0 |
Return the url to browse this branch, may be None. | def xNYC(YKHO):
return YKHO._data.branch_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def adzZ(YKHO):\n return f'{YKHO.git_remote_url}/tree/{YKHO.git_commit_id}'",
"def A6ZH(YKHO, jehQ) -> rOmR:\n return rOmR(jehQ['commit']['url'])",
"def TdKs(YKHO, wwn5=True):\n return YKHO.get_url_name('browse', wwn5)",
"def bD7m(YKHO):\n return YKHO._cb.url",
"def bD7m(YKHO):\n return YKHO... | [
"0.7840213",
"0.71369576",
"0.6729151",
"0.6724407",
"0.6676168",
"0.66473526",
"0.6532568",
"0.65115726",
"0.6492295",
"0.64366204",
"0.64365435",
"0.63862354",
"0.636812",
"0.63590044",
"0.6344301",
"0.6341406",
"0.63390857",
"0.6298878",
"0.62918514",
"0.6279545",
"0.62775... | 0.8799739 | 0 |
Compute the bounds of this object. | def c7Uh(YKHO):
X7zS = oyIN.array([oyIN.min(YKHO.positions, axis=0), oyIN.max(YKHO.positions, axis=0)])
if YKHO.poses is not None:
X7zS += oyIN.array([oyIN.min(YKHO.poses[:, :3, 3], axis=0), oyIN.max(YKHO.poses[:, :3, 3], axis=0)])
return X7zS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X7zS(YKHO):\n raise NotImplementedError",
"def X7zS(YKHO):\n raise NotImplementedError",
"def X7zS(YKHO):\n return YKHO.__bounds",
"def X7zS(YKHO):\n return ROpF(YKHO).bounds",
"def X7zS(YKHO):\n return YKHO._bounds",
"def X7zS(YKHO):\n return YKHO._bounds",
"def QsBr(YKHO):\n ... | [
"0.8648674",
"0.86151",
"0.83496547",
"0.83297896",
"0.82053",
"0.82053",
"0.81363785",
"0.81363785",
"0.81363785",
"0.81363785",
"0.81363785",
"0.81363785",
"0.81363785",
"0.8102757",
"0.8098401",
"0.80895466",
"0.8054789",
"0.8043857",
"0.8034793",
"0.8025617",
"0.79731345"... | 0.8165628 | 6 |
Set the external control mode for the master controller mode The external control mode to be used by the server | def l897(YKHO, qv1X, Tuqy):
try:
YKHO.set_control_mode(Tuqy)
except Exception as error:
return ('fail', str(P1dF))
else:
return ('ok',) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QZ0a(YKHO):\n raise NotImplementedError('Not Implemented')",
"def RuC6(YKHO, jDK_, Tuqy):\n if Tuqy in range(6):\n jDK_.controller.config.control_mode = Tuqy\n else:\n print('Error: Invalid control mode')",
"def n2_x(yeE8: MasterController) -> None:\n FEbt._master = yeE8",
"def ... | [
"0.6982493",
"0.66840696",
"0.6663972",
"0.64562064",
"0.6369415",
"0.62944436",
"0.6293998",
"0.62322354",
"0.6165322",
"0.6156097",
"0.61089575",
"0.6084054",
"0.6068798",
"0.60678875",
"0.6027483",
"0.6018233",
"0.59234333",
"0.59111077",
"0.5893516",
"0.58761436",
"0.5873... | 0.5979822 | 16 |
Set the external control mode for the master controller mode The external control mode to be used by the server | def RuC6(YKHO, Tuqy):
Tuqy = Tuqy.upper()
if Tuqy not in YKHO.CONTROL_MODES:
raise ztAA("Unknown mode '{}', valid modes are '{}' ".format(Tuqy, ', '.join(YKHO.CONTROL_MODES)))
else:
YKHO._control_mode = Tuqy
if YKHO._control_mode == YKHO.SCPI:
YKHO._scpi_interface.start()
els... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QZ0a(YKHO):\n raise NotImplementedError('Not Implemented')",
"def RuC6(YKHO, jDK_, Tuqy):\n if Tuqy in range(6):\n jDK_.controller.config.control_mode = Tuqy\n else:\n print('Error: Invalid control mode')",
"def n2_x(yeE8: MasterController) -> None:\n FEbt._master = yeE8",
"def ... | [
"0.6983471",
"0.6682849",
"0.6663385",
"0.64544713",
"0.62942725",
"0.6293911",
"0.62319607",
"0.6164434",
"0.61558896",
"0.6108373",
"0.60839885",
"0.6067176",
"0.6066804",
"0.60271347",
"0.6018928",
"0.59788454",
"0.5922647",
"0.5910621",
"0.58942",
"0.58772624",
"0.5872659... | 0.63680524 | 4 |
Logout user and redirect to homepage. | def erK4():
cuiw.pop('user_username', None)
return vKnz('/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def erK4():\n oLi7()\n return vKnz(nKyW(fOLk))",
"def erK4():\n oLi7()\n return vKnz(nKyW('home'))",
"def erK4():\n oLi7()\n return vKnz(nKyW('home'))",
"def erK4():\n if Oa1e.user:\n bo34.info(' User [%s - %s] logged out. Bye!' % (Oa1e.user.first_and_last_name, Oa1e.user.email))\... | [
"0.86934215",
"0.8612248",
"0.8612248",
"0.8568894",
"0.85282874",
"0.8509824",
"0.8498066",
"0.8482446",
"0.8477567",
"0.8460694",
"0.8460694",
"0.84504277",
"0.84311163",
"0.8428807",
"0.8407055",
"0.8407055",
"0.8407055",
"0.8407055",
"0.8407055",
"0.8407055",
"0.8407055",... | 0.82020664 | 49 |
Returns True if user is authorized else False. | def t1g4(YKHO, CBIr):
em58 = LbUG.all().filter('user =', CBIr).filter('room =', YKHO).get()
if em58:
em58.last_checked_in = qcWV.now()
em58.put()
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t1g4(YKHO):\n return YKHO.session.user is not None",
"def P3Bs(YKHO, CBIr: Type[BotUser]) -> bool:\n pass",
"def P3Bs(YKHO, CBIr: str) -> bool:\n return CBIr in YKHO.__users",
"def P3Bs(YKHO) -> bool:\n return YKHO.authorized is True",
"def oAWu(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKH... | [
"0.85743827",
"0.82510966",
"0.816827",
"0.806949",
"0.8032048",
"0.7962782",
"0.7902794",
"0.789511",
"0.773397",
"0.77301997",
"0.77301997",
"0.76654416",
"0.76465005",
"0.76095337",
"0.75997704",
"0.75712687",
"0.7543606",
"0.7529059",
"0.7527804",
"0.7527733",
"0.7515715"... | 0.746859 | 47 |
Clean all infrastructure in a configuration based environment. | def HySU(wOGa, d_6b=None, sRZk=None):
Fv2L = y8cn(wOGa)
WEjb = False
if not Fv2L.exists():
WEjb = True
C6M2(wOGa, inputs_override=d_6b, manager_blueprint_override=sRZk)
if not WEjb and (d_6b or sRZk):
Fv2L.logger.warn('Inputs override or manager blueprints override was passed, bu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HySU(GPtr):\n pass",
"def X8gu():\n x0SS()\n _7kQ()\n X3TI()\n C1aB()\n AMA2()\n xWug()\n LMdI()",
"def RLgF(YKHO):\n if YKHO._config_dir is not None and LR7z(YKHO._config_dir):\n if YKHO._destroy_on_exit and YKHO._terraform.state_list():\n YKHO._terraform.destr... | [
"0.7470328",
"0.732356",
"0.7273756",
"0.7165476",
"0.7013049",
"0.695797",
"0.6952125",
"0.6944373",
"0.6944373",
"0.68853205",
"0.6875379",
"0.6871111",
"0.6850918",
"0.68354654",
"0.6828118",
"0.6826047",
"0.67935246",
"0.6792967",
"0.6787623",
"0.6786631",
"0.6784536",
... | 0.6269824 | 70 |
A function for stamping thirty dots to the screen using a turtle. | def aqiQ(fcNR, rWDx):
zNig = 4
for YRbF in range(30):
fcNR.stamp()
zNig = zNig + rWDx
fcNR.forward(zNig)
fcNR.right(34) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vhqh(gNrq, zC0i, cizC, Ydjp):\n for IbH3 in range(zC0i):\n if IbH3 % 10 == 0:\n Qk57(gNrq, cizC, Ydjp)\n Ydjp += 50\n gNrq.dot(20, MP1f())\n gNrq.forward(50)",
"def vhqh(gNrq, zC0i, cizC, Ydjp):\n for IbH3 in range(zC0i):\n if IbH3 % 10 == 0:\n ... | [
"0.7791866",
"0.7791866",
"0.6650832",
"0.65804756",
"0.6528037",
"0.6386329",
"0.63675433",
"0.6354339",
"0.63524187",
"0.6300721",
"0.6241292",
"0.6233896",
"0.62146306",
"0.62086624",
"0.6186198",
"0.6164498",
"0.6156657",
"0.6153582",
"0.614443",
"0.61398697",
"0.6128879"... | 0.671748 | 2 |
Remove the bad words from word_lists and returns the new list of list of words. The bad words are given by the argument 'bad_words'. | def PQoX(CjW2, CRP0=set()):
qh5G = []
assert len(qh5G) == len(CjW2)
return qh5G | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cE4S(vwCE, Np81):\n return [yzQ0 for yzQ0 in vwCE if yzQ0 not in Np81]",
"def g8pp(cfuW: list) -> list:\n hwHU = ['a', 'an', 'and', 'are', 'as', 'at', 'be', 'by', 'for', 'from', 'has', 'he', 'i', 'in', 'is', 'it', 'its', 'of', 'on', 'that', 'the', 'to', 'were', 'will', 'with']\n viQ0 = []\n for G... | [
"0.78138876",
"0.7495141",
"0.7382484",
"0.7382484",
"0.7382484",
"0.734394",
"0.73358804",
"0.73358804",
"0.73358804",
"0.73358804",
"0.73358804",
"0.73358804",
"0.73358804",
"0.7330402",
"0.7330179",
"0.7327091",
"0.73156214",
"0.7280729",
"0.7257303",
"0.72203547",
"0.7197... | 0.8456805 | 0 |
Split data into train and test data | def Qb89(bySB, Crrw):
zNig = Crrw.size
lpha = int(zNig * 3 / 4)
opBR = oyIN.random.permutation(zNig)
_x49 = bySB[opBR]
ogYM = Crrw[opBR]
print(_x49.shape)
vDyK = _x49[:lpha]
w7kq = _x49[lpha:]
OXRT = ogYM[:lpha]
pD9_ = ogYM[lpha:]
print('split data statistics: ')
print('t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(nPrm, zBu_):\n ppBc = nPrm.iloc[0:pBSp(zBu_ * len(nPrm))]\n Zwka = nPrm.iloc[pBSp(zBu_ * len(nPrm)):]\n return (ppBc, Zwka)",
"def Qb89(nPrm, jcFe):\n IMeE = int(jcFe * len(nPrm))\n b2G5 = len(nPrm) - IMeE\n EvQg = nPrm.head(IMeE)\n QOe9 = nPrm.tail(b2G5)\n return (EvQg, QOe9)",
... | [
"0.8610054",
"0.8367884",
"0.8348161",
"0.8319917",
"0.8308686",
"0.82408035",
"0.8230304",
"0.82029843",
"0.82009286",
"0.81955904",
"0.8192957",
"0.8172986",
"0.81710154",
"0.8160669",
"0.8159443",
"0.8156516",
"0.8101788",
"0.8076897",
"0.8056999",
"0.8042492",
"0.80418575... | 0.0 | -1 |
Resets the position of the razors in a random x and y to the right of the screen after they have slid off the screen. | def iqFv(YKHO):
YKHO.center_y = tuKI.randrange(vkJL)
YKHO.center_x = tuKI.randrange(zMH2 + 20, zMH2 + 100) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JYx4(YKHO):\n YKHO.rect.y = tuKI.randrange(-300, -20)\n YKHO.rect.x = tuKI.randrange(0, k_Ti)",
"def JYx4(YKHO):\n YKHO.rect.y = tuKI.randrange(-300, -20)\n YKHO.rect.x = tuKI.randrange(0, k_Ti)",
"def JYx4(YKHO):\n YKHO.rect.y = tuKI.randrange(-300, -20)\n YKHO.rect.x = tuKI.randrange(k_... | [
"0.7881639",
"0.7881639",
"0.78663224",
"0.78056264",
"0.78056264",
"0.7662142",
"0.7644446",
"0.71488214",
"0.711195",
"0.7088777",
"0.7084729",
"0.7045769",
"0.7034516",
"0.7012582",
"0.7011652",
"0.69882894",
"0.6974903",
"0.69087446",
"0.6876896",
"0.67920196",
"0.6785238... | 0.7767773 | 5 |
Calculates the average of a data list. | def qqgr(YKHO, nPrm):
return sum(nPrm) / float(len(nPrm)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S8vG(UrXw):\n if UrXw is None:\n return None\n S8vG = 0.0\n Od29 = len(UrXw)\n for ZfUD in UrXw:\n S8vG += ZfUD\n return float(S8vG / Od29)",
"def JBMS(UrXw):\n return sum(UrXw) / len(UrXw)",
"def S8vG(nPrm):\n return sum(nPrm) / len(nPrm)",
"def NgYo(YKHO, aO51):\n ... | [
"0.87086415",
"0.8426243",
"0.82508034",
"0.8242395",
"0.8169972",
"0.80899465",
"0.7986098",
"0.7942698",
"0.7865329",
"0.7851774",
"0.7834823",
"0.78236794",
"0.7806883",
"0.7783356",
"0.77812284",
"0.7761949",
"0.7737032",
"0.77206284",
"0.7713503",
"0.7694104",
"0.7679434... | 0.8082437 | 6 |
Calculates the variance of the data, which is used to calculate the standard deviation. | def I8JS(YKHO, nPrm):
I8JS = []
S8vG = YKHO.avg(nPrm)
for WKvO in nPrm:
I8JS.append((WKvO - S8vG) ** 2)
return I8JS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8JS(BkYD):\n return qw7D.variance(BkYD)",
"def I8JS(nPrm):\n UU3d = len(nPrm)\n if UU3d == 0:\n return 0\n p1kx = [float(ZfUD.value) for ZfUD in nPrm]\n JBMS = sum(p1kx) / len(p1kx)\n I8JS = sum([(KCHu - JBMS) ** 2 for KCHu in p1kx]) / len(p1kx)\n return I8JS",
"def I8JS(YKHO):... | [
"0.8519689",
"0.84021884",
"0.8139465",
"0.8020812",
"0.7975384",
"0.79647595",
"0.78615737",
"0.7859682",
"0.78507006",
"0.7773956",
"0.7773956",
"0.7773956",
"0.7766666",
"0.7755666",
"0.7742955",
"0.7737517",
"0.7723909",
"0.7675743",
"0.7667363",
"0.76653445",
"0.7657074"... | 0.81641394 | 2 |
Naive GAN loss. Comes from discriminators. | def FIMM(YKHO, TcRj: float=1, lmSF: float=1):
super().__init__(obV0.Internal + 1)
YKHO.lambda_a = TcRj
YKHO.lambda_b = lmSF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MQYF(iMxe):\n if iMxe:\n N77f = xt2q(YNTO, uf3V)\n else:\n N77f = ZylS.add(xt2q(NcZM, PB_6), xt2q(1 - YNTO, AyLV), name=PhI6)\n return N77f",
"def FIMM(YKHO, EcBf, WYz0=1.0, Af2d=0.0):\n super(LN76, YKHO).__init__()\n YKHO.gan_mode = EcBf\n if EcBf == 'lsgan':\n YKHO.lo... | [
"0.7544586",
"0.6974567",
"0.69072634",
"0.6903842",
"0.68833077",
"0.6837515",
"0.67929775",
"0.6771163",
"0.6717031",
"0.671078",
"0.66956407",
"0.66569257",
"0.66343415",
"0.6622263",
"0.66171116",
"0.6599671",
"0.65810955",
"0.6579592",
"0.65749836",
"0.6570933",
"0.65709... | 0.0 | -1 |
DiscriminatorOptimizerCallback. Aggregates losses of discriminators, calls backward method and applying optimizer. | def FIMM(YKHO, sjXb: List[str]=None, _mSQ: List[float]=None):
super().__init__(obV0.Internal + 5)
if sjXb is None:
sjXb = ['discriminator_a_loss', 'discriminator_b_loss']
if _mSQ is None:
_mSQ = [1 for bGrB in range(2)]
assert len(sjXb) == len(_mSQ)
YKHO.keys = sjXb
YKHO.weights ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IkX6(YKHO, Akog, ARTs, svmG, GT2U):\n mAQA = YKHO.generator(ARTs).detach()\n N77f = GT2U.dis_loss(svmG, mAQA)\n Akog.zero_grad()\n N77f.backward()\n Akog.step()\n return N77f.item()",
"def N2xz(YKHO):\n YKHO.encoder_cost = 0\n YKHO.generator_cost = qxwG(YKHO.mode, YKHO.disc_fake)\n ... | [
"0.673483",
"0.66591513",
"0.6496772",
"0.63491815",
"0.6292354",
"0.6276495",
"0.6268209",
"0.6228522",
"0.6227495",
"0.62165153",
"0.6175507",
"0.6111201",
"0.6106145",
"0.61055225",
"0.60884637",
"0.60873467",
"0.6078377",
"0.60723454",
"0.6071821",
"0.6056894",
"0.6042762... | 0.0 | -1 |
Return orderbook for selected market and pair Request POST /api/v1/orderbook | def CE9K(YKHO, GT8I, o61b):
return YKHO._post(YKHO.url_for(nh8m), params={'market': GT8I, 'pair': o61b}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CE9K(YKHO, **NArs):\n o61b = NArs.pop('symbol')\n w2IS = 'book/' + o61b\n return YKHO.request(w2IS, auth=False, params=NArs)",
"def vps3(YKHO, q2Xo, **B2fa):\n return YKHO._query('get', 'v1/orderbook/' + q2Xo)",
"def vps3(YKHO, GT8I):\n pass",
"def ckqY(ex5I):\n bD7m = 'https://api.bibo... | [
"0.7570485",
"0.73838013",
"0.70377094",
"0.6853658",
"0.6849413",
"0.68195224",
"0.68183136",
"0.6559682",
"0.65123254",
"0.65120727",
"0.6507049",
"0.64816",
"0.6457512",
"0.6439634",
"0.6419687",
"0.6305118",
"0.6300008",
"0.6255561",
"0.62241805",
"0.6216586",
"0.6132924"... | 0.75495684 | 1 |
Return open orders for selected user and market Request POST /api/v1/orders/open | def Uqyr(YKHO, GT8I):
return YKHO._post(YKHO.url_for(X4Ww), params={'market': GT8I}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TpUr(YKHO):\n nNXP = 'api/order/open'\n DZvC = dict(auth_token=YKHO.auth_token)\n return YKHO._curl(api=nNXP, postdict=DZvC)",
"def XRaH(YKHO, o61b='', **B2fa):\n NArs = {'symbol': o61b}\n NArs.update(B2fa)\n nPrm = YKHO.signedRequest('GET', '/api/v3/openOrders', NArs)\n return nPrm",
... | [
"0.7949453",
"0.79131854",
"0.7877248",
"0.7829984",
"0.7829984",
"0.78204197",
"0.7763089",
"0.77070236",
"0.7634137",
"0.7581349",
"0.74447584",
"0.7380996",
"0.7353756",
"0.7329431",
"0.7098553",
"0.709522",
"0.7028017",
"0.70212823",
"0.6980024",
"0.6930319",
"0.6759853",... | 0.7898651 | 2 |
Return open orders for selected user and market Request POST /api/v1/demo/orders/open | def zsIL(YKHO, GT8I):
return YKHO._post(YKHO.url_for(X4Ww, 'demo'), params={'market': GT8I}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TpUr(YKHO):\n nNXP = 'api/order/open'\n DZvC = dict(auth_token=YKHO.auth_token)\n return YKHO._curl(api=nNXP, postdict=DZvC)",
"def XRaH(YKHO, o61b='', **B2fa):\n NArs = {'symbol': o61b}\n NArs.update(B2fa)\n nPrm = YKHO.signedRequest('GET', '/api/v3/openOrders', NArs)\n return nPrm",
... | [
"0.7900221",
"0.78365654",
"0.7798421",
"0.7785379",
"0.77409804",
"0.77131766",
"0.77131766",
"0.7606907",
"0.75729716",
"0.7473907",
"0.73214245",
"0.7283403",
"0.72496885",
"0.71577424",
"0.7089391",
"0.7013845",
"0.6996673",
"0.69722897",
"0.6907976",
"0.67940956",
"0.673... | 0.80627304 | 0 |
Computes a loss that encourages each weight in the list of weights to have unit l2 norm. | def kZJY(gkQC):
FndA = []
for yzQ0 in gkQC:
Z05K = list(range(1, len(yzQ0.shape)))
r5D9 = ht2j.sum(ht2j.pow(1 - ht2j.sqrt(ht2j.sum(ZylS.pow(yzQ0, 2.0), axis=Z05K)), 2.0))
FndA.append(r5D9)
LcIQ = 0.5 * ht2j.sum(FndA)
return LcIQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OniO(YKHO, _mSQ):\n KvTy = ZylS.zeros([], name='l2_loss')\n for YRbF in range(YKHO.hidden_layer_sizes.size):\n KvTy += ZylS.reduce_sum(ZylS.square(_mSQ[YRbF]))\n return YKHO.l2_reg * KvTy",
"def Noe5():\n\n def eHNT(Xdzc, x6A0, _mSQ):\n N8OZ.assert_same_shape(Xdzc, x6A0)\n N8... | [
"0.7542918",
"0.7409334",
"0.7386346",
"0.7207746",
"0.71693796",
"0.71180356",
"0.6997842",
"0.69291097",
"0.6884462",
"0.6870627",
"0.68380547",
"0.6828966",
"0.66915536",
"0.664155",
"0.66123396",
"0.66122836",
"0.66009706",
"0.65806687",
"0.6562409",
"0.65324086",
"0.6495... | 0.7142345 | 5 |
returns the current disk usage and size of the backup directory in a dictionary backupParentDir parent dir of all backups | def zOa5(WTym):
e2h5 = WhiX(WTym)._asdict()
baot = Yn3K.run(['du', '-s', WTym], stdout=Yn3K.PIPE).stdout
vexM = ZbWC.compile('(\\d+)(?:.*$)')
e2h5['backups'] = int(vexM.search(str(baot)).group(1))
return e2h5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HU_U(YKHO):\n with SIhA.LocalOracleClient(YKHO.db_name, service=True) as x0hE:\n vexM = KQro.Query()\n vexM.columns = ['sum(bytes)']\n vexM.tables = ['dba_data_files']\n x0hE.execute(str(vexM))\n Aofo = x0hE.fetchall()\n return Aofo[0][0] / 3",
"def HU_U(YKHO):\n ... | [
"0.6408572",
"0.63913786",
"0.62535554",
"0.622406",
"0.6189214",
"0.6142631",
"0.6123867",
"0.6098377",
"0.60445136",
"0.60100484",
"0.59953606",
"0.5976081",
"0.59663546",
"0.59589434",
"0.5941237",
"0.58175606",
"0.58175606",
"0.58175606",
"0.58175606",
"0.577992",
"0.5776... | 0.83722436 | 0 |
one hot encoding using the given characters and encoding length | def vzTG(IKIW, yAmx, DuqQ):
if DuqQ not in NArs.keys():
print('unknown language', DuqQ)
return
XP5J = NArs[DuqQ]
gLiZ, u54L, wzH_, HNas = (XP5J['chars'], XP5J['chars_num'], XP5J['max_sentence_length'], XP5J['char_stop'])
for d6pt in range(len(yAmx)):
hcXw = yAmx[d6pt]
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGX0(Q6uT):\n Q6uT = Q6uT.replace('A', '0')\n Q6uT = Q6uT.replace('C', '1')\n Q6uT = Q6uT.replace('G', '2')\n Q6uT = Q6uT.replace('T', '3')\n V0Th = oyIN.zeros((4, len(Q6uT)), dtype='float16')\n for YRbF in range(len(Q6uT)):\n if Q6uT[YRbF].isdigit():\n V0Th[int(Q6uT[YRbF]),... | [
"0.77287346",
"0.7677921",
"0.75529325",
"0.7420069",
"0.7415408",
"0.73419714",
"0.7336015",
"0.7332942",
"0.7312226",
"0.7300422",
"0.72636265",
"0.7258081",
"0.7158327",
"0.71528697",
"0.7143471",
"0.71420515",
"0.7115267",
"0.7098105",
"0.7083288",
"0.7067181",
"0.70651",... | 0.73461753 | 5 |
Update messages that do not belong to a new_setmessage or a delete message have to be sent properly and deleted in case of success. Only the latest update must be sent. | def f5P7(YKHO, GPFJ):
cFHh = GPFJ()
geh0 = G4JS.Response()
geh0.status_code = 200
cFHh.update_set.return_value = geh0
BWgG = PvBj(YKHO.cache_path, Hy7s.path.join(YKHO.cache_path, 'update_cache_test.json'), cFHh)
BWgG.empty_cache()
YKHO.assertEqual(BWgG.get_cache_size(), 0)
cFHh.update_se... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V0Ud(YKHO):\n return",
"def V0Ud(YKHO):\n return",
"def V0Ud(YKHO):\n return",
"def V0Ud(YKHO, SGPK):\n return",
"def V0Ud(YKHO, SGPK):\n return",
"def V0Ud(YKHO, SGPK):\n return",
"def V0Ud(YKHO, SGPK):\n return",
"def V0Ud(YKHO, SGPK):\n return",
"def V0Ud(YKHO, SGPK):... | [
"0.7058002",
"0.6885095",
"0.6885095",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"0.6838134",
"... | 0.0 | -1 |
Determins if RPM is a source RPM | def NLTl(MKlR):
hE6G = o7hL(MKlR[uZQJ.RPMTAG_SOURCERPM])
if hE6G == None:
return 0
return 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZX6J(eHNT):\n if not fTvs(eHNT):\n return False\n try:\n MKlR = open(eHNT, 'rb').read(8)\n except:\n return False\n if MKlR[7] == '\\x01':\n return True\n else:\n return False",
"def RShE(YKHO):\n return bool(YKHO.products and (not YKHO.reactants))",
"de... | [
"0.7032907",
"0.65409946",
"0.6419109",
"0.6315152",
"0.6222251",
"0.61100715",
"0.6056131",
"0.60098857",
"0.599488",
"0.5976043",
"0.5942218",
"0.58953816",
"0.58784777",
"0.58421516",
"0.583869",
"0.583789",
"0.5811848",
"0.57918215",
"0.5773409",
"0.5762809",
"0.5755594",... | 0.7638118 | 0 |
Verify if two social network lists are equal. | def xa14(YKHO, Elif):
return YKHO._socialNetwork == YKHO._socialNetwork | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLeQ(EhKz, J0q5):\n if set(EhKz) == set(J0q5):\n return True\n else:\n return False",
"def MrE1(YKHO, vASe, OQAR):\n assert len(vASe) == len(OQAR)\n for ZfUD in vASe:\n assert ZfUD in OQAR",
"def mokZ(YKHO, vASe, OQAR):\n assert len(vASe) == len(OQAR)\n for ZfUD in vA... | [
"0.7516137",
"0.73208225",
"0.7230805",
"0.70325875",
"0.702494",
"0.70051974",
"0.69057876",
"0.68258107",
"0.6799454",
"0.6787263",
"0.6777151",
"0.67734206",
"0.6764938",
"0.67388034",
"0.6725825",
"0.67189455",
"0.6683012",
"0.6664695",
"0.6564662",
"0.6528358",
"0.645095... | 0.6885361 | 7 |
Returns a list of all field names on the instance. | def QckB(YKHO):
V_D6 = []
for eHNT in YKHO._meta.fields:
IznC = eHNT.name
uwd0 = 'get_' + IznC + '_display'
if hasattr(YKHO, uwd0):
BWXx = getattr(YKHO, uwd0)()
else:
try:
BWXx = getattr(YKHO, IznC)
except AttributeError:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eM8m(YKHO):\n CqJY = YKHO._meta.get_fields()\n return [eHNT.name for eHNT in CqJY]",
"def Wq02(Emd4):\n if not hasattr(Emd4, '__fields__'):\n raise n6lj('fields not set')\n ZWCE = []\n for Jyyj in Emd4.__fields__.values():\n ZWCE.append(Jyyj.name)\n return ZWCE",
"def zJN_(Y... | [
"0.871692",
"0.85844684",
"0.85613316",
"0.8445619",
"0.8300018",
"0.8112586",
"0.8000085",
"0.79559034",
"0.7948774",
"0.7870507",
"0.7848226",
"0.7838427",
"0.78058535",
"0.7766202",
"0.77541083",
"0.76803964",
"0.76673526",
"0.7665598",
"0.76655805",
"0.7568293",
"0.755647... | 0.0 | -1 |
Initialize a new fraction with the given numerator and denominator (default 1). | def FIMM(YKHO, M6pt, UUZ1=1):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, M6pt, UUZ1=1):\n if isinstance(M6pt, int) and isinstance(UUZ1, int):\n YKHO.numerator, YKHO.denominator = Z01l(M6pt, UUZ1)\n elif isinstance(M6pt, float) or isinstance(UUZ1, float):\n oXaw = kteF(*oKP7(M6pt)) / kteF(*oKP7(UUZ1))\n YKHO.numerator, YKHO.denominator = (oXaw.n... | [
"0.819708",
"0.80131924",
"0.7921667",
"0.75190526",
"0.7464297",
"0.743157",
"0.743157",
"0.74011165",
"0.7311632",
"0.7293055",
"0.7117911",
"0.71040124",
"0.7048988",
"0.69520426",
"0.69154626",
"0.68643314",
"0.6786834",
"0.67058766",
"0.66857475",
"0.654301",
"0.64492667... | 0.73333603 | 8 |
Flux of the fundamental spectrophotometric standard. | def l6Xo(YKHO, Ebru):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OdnW(YKHO):\n return YKHO.input.getVoltage / 5.0",
"def shSu(YKHO):\n return YKHO.norm * YKHO.flux_ref",
"def KNiA(YKHO):\n lQkm = YKHO._stft()\n KTY9 = lQkm[1:, :] - lQkm[0:-1, :]\n KTY9 = KTY9 ** 2\n shSu = oyIN.sum(KTY9, axis=-1)\n return shSu",
"def qil4(YKHO):\n eLgw = YKHO.c... | [
"0.7670729",
"0.7657886",
"0.7549037",
"0.7455463",
"0.7373584",
"0.7270701",
"0.71658605",
"0.7135916",
"0.7099308",
"0.70600426",
"0.69667816",
"0.6859114",
"0.67952716",
"0.67509204",
"0.6743881",
"0.67420596",
"0.67121834",
"0.66992",
"0.66563714",
"0.6627067",
"0.6624934... | 0.63192093 | 43 |
Flux of an object with magnitude zero in the given bandpass. | def UoVF(YKHO, Ebru):
Ebru = bXa5(Ebru)
try:
return YKHO._zpbandflux[Ebru]
except KeyError:
Wldi = YKHO._refspectrum_bandflux(Ebru)
YKHO._zpbandflux[Ebru] = Wldi
return Wldi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l6Xo(YKHO, Ebru):\n pass",
"def E9b7(YKHO, Kt_s):\n vexM = iLtp.FullBroadcast(iLtp.Scalar(0), ['negative electrode', 'separator', 'positive electrode'], 'current collector')\n return vexM",
"def alfl(YKHO) -> P6bq.T * P6bq.m:\n ...",
"def TRQ9(YKHO, FOSW, Ebru):\n return YKHO.zpbandflux(Eb... | [
"0.6783659",
"0.67286",
"0.66178346",
"0.6613411",
"0.6499378",
"0.64651436",
"0.6426188",
"0.6368911",
"0.63667804",
"0.63463765",
"0.6259784",
"0.62533617",
"0.6219338",
"0.620147",
"0.6119716",
"0.60898244",
"0.6047996",
"0.5981308",
"0.59623545",
"0.5958572",
"0.58772755"... | 0.6342133 | 10 |
Convert flux (photons / s / cm^2) to magnitude. | def ROL0(YKHO, shSu, Ebru):
return -2.5 * epAf.log10(shSu / YKHO.zpbandflux(Ebru)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bzaD(YKHO, shSu):\n return vlPw(shSu) + YKHO.zeropoint",
"def wayq(YXbZ, B_ud):\n return 10.0 ** ((B_ud - YXbZ) / 2.5)",
"def Knmv(shSu, n8o7):\n FOSW = -2.5 * oyIN.log10(shSu / n8o7)\n return FOSW",
"def VP1w(YKHO, *qIxc, **B2fa):\n return vlPw(YKHO.computeFlux(*qIxc, **B2fa) / YKHO.zptfl... | [
"0.8265752",
"0.77419466",
"0.74599975",
"0.73625046",
"0.7290165",
"0.72722435",
"0.7270384",
"0.7131218",
"0.7109753",
"0.71057075",
"0.6978511",
"0.6955659",
"0.6941221",
"0.69202703",
"0.6907596",
"0.68950003",
"0.6886167",
"0.68653315",
"0.68480426",
"0.6780827",
"0.6754... | 0.76205426 | 2 |
Counts the number of nodes. | def EKkU(J_Es):
mLGw = 1
for aUGN in J_Es.children:
mLGw += 1 + len(aUGN.children)
EKkU(aUGN)
return mLGw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bjrl(YKHO):\n return len(YKHO._nodes)",
"def UHFx(YKHO):\n return YKHO.node_count",
"def CYQC(YKHO):\n ewCu = 0\n for bGrB in YKHO:\n ewCu += 1\n return ewCu",
"def kRap(YKHO):\n return YKHO._node_count",
"def OtzW(YKHO) -> int:\n pass",
"def lU1W(YKHO):\n return len(YK... | [
"0.854111",
"0.8531058",
"0.85290635",
"0.84686154",
"0.8447022",
"0.8415625",
"0.83952785",
"0.83610857",
"0.8349415",
"0.8330144",
"0.8312708",
"0.8295093",
"0.82579285",
"0.8239616",
"0.821001",
"0.81996775",
"0.8184945",
"0.8184945",
"0.8184039",
"0.81715834",
"0.8165462"... | 0.73360986 | 81 |
Compute Canny edge image. | def lZ1Y(LNo8: Array, ZHfW: Optional[Array], r1VO=30, WTkW=0.5):
from skimage.filters.rank import equalize
from skimage.morphology import disk
from skimage.feature import canny
Mb4c = ~ZHfW
Aofo = equalize(LNo8, selem=disk(r1VO), mask=Mb4c)
Aofo = canny(Aofo, sigma=WTkW, mask=Mb4c)
return oy... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9p8(YKHO):\n qLBR = XC5k.Canny(YKHO.image, 50, 240)\n return qLBR",
"def D70y(VXjJ):\n LNo8 = XC5k.Canny(VXjJ, 100, 200)\n return LNo8",
"def xD4o(UFp3):\n mC4V = XC5k.Canny(UFp3, 100, 200)\n return mC4V",
"def _Sla():\n pD6d = '.\\\\images\\\\airplane.png'\n D70y, iOx3, lIj3 = p... | [
"0.85065037",
"0.82132107",
"0.8004051",
"0.7797936",
"0.775324",
"0.77487534",
"0.7706861",
"0.7669765",
"0.7664527",
"0.76200527",
"0.7613109",
"0.757787",
"0.7563193",
"0.7563193",
"0.7563193",
"0.7563193",
"0.7563193",
"0.7563193",
"0.7563193",
"0.7563193",
"0.7563193",
... | 0.6357613 | 92 |
Standardize and center an array or dataframe. | def hfS_(WKvO: Union[Array, DataFrame], jDK_: Union[Literal[0], Literal[1]]=0) -> uLKX[HWEd, hxoQ]:
return (WKvO - WKvO.mean(axis=jDK_)) / WKvO.std(axis=jDK_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n3zb(nPrm):\n U5bT = nPrm.astype('float')\n U5bT -= oyIN.amin(U5bT)\n U5bT /= oyIN.amax(U5bT)\n U5bT -= oyIN.mean(U5bT)\n return U5bT",
"def fQpS(YKHO):\n YKHO.__data = Z0Nc.scale(YKHO.__data)",
"def hgjH(EcVT):\n j7NI = EcVT.mean(axis=0)\n Plng = rLdf.DataFrame(EcVT - j7NI)\n re... | [
"0.6966913",
"0.67759347",
"0.6749899",
"0.674237",
"0.66258967",
"0.65891635",
"0.6484375",
"0.6457905",
"0.64148104",
"0.6407205",
"0.6403686",
"0.6377658",
"0.6367538",
"0.6337775",
"0.63269323",
"0.6320782",
"0.6265586",
"0.6260465",
"0.6258877",
"0.62586224",
"0.62450093... | 0.0 | -1 |
Returns an iterator equivalent to map(fn, iter). | def map(YKHO, FYKK, *ix7N, vYBr=None, ym_X=1, klGB=10000):
if not callable(FYKK):
raise TypeError('fn argument must be a callable')
if vYBr is None:
C7pn = None
else:
C7pn = vYBr + ITS7.time()
if klGB is None:
klGB = -1
elif klGB <= 0:
raise ValueError('buffer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def map(YKHO, JfyU: callable, iter: Iterable):\n raise NotImplementedError",
"def JQ7D(JfyU: Callable[..., T], WhY1: Iterable[tuple]) -> bDy6[Kt_s]:\n return (JfyU(*qIxc) for qIxc in WhY1)",
"def JaxB(YKHO, JfyU, OxJJ, ym_X=1):\n Ylbp = YKHO.map(JfyU, OxJJ, chunksize=ym_X)\n return Rl3y(Ylbp)",
"... | [
"0.8083562",
"0.78586006",
"0.76023865",
"0.757239",
"0.7211557",
"0.7186872",
"0.7115906",
"0.69880766",
"0.69758785",
"0.6919665",
"0.68989724",
"0.6873196",
"0.68635374",
"0.6862566",
"0.67880756",
"0.6779074",
"0.67287177",
"0.66983944",
"0.6692469",
"0.6683747",
"0.66761... | 0.0 | -1 |
Calculate md5 value of a file. | def _Dw7(WQbV):
ym_X = 1024 ** 2
r8hN = HBct.md5()
with open(WQbV, 'rb') as eHNT:
while True:
nPrm = eHNT.read(ym_X)
if not nPrm:
break
r8hN.update(nPrm)
return r8hN.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uPUs(nUeQ):\n return HBct.md5(open(nUeQ, 'rb').read()).hexdigest()",
"def vkAf(Ux0P):\n return vFhS(Ux0P, 'md5')",
"def pQm7(gIsw):\n with open(gIsw, 'rb') as eHNT:\n OZKa = eHNT.read()\n dQiW = HBct.md5(OZKa).hexdigest()\n return dQiW",
"def tG_r(YKHO, pmON):\n xORj = HBct.m... | [
"0.86201346",
"0.86187184",
"0.8585034",
"0.8536473",
"0.85330266",
"0.84853244",
"0.8466582",
"0.84579104",
"0.8447545",
"0.8427388",
"0.83776116",
"0.8346121",
"0.83456826",
"0.8338415",
"0.83347535",
"0.83191276",
"0.8318058",
"0.83161104",
"0.8310081",
"0.83003867",
"0.82... | 0.7789726 | 91 |
loads the most recent trained TFLITE model | def bsk1(xtX7=None):
qflE = None
if xtX7 is None:
C4cg = SC2F.glob(rsbj + '/' + EsPm + '_*/')
if len(C4cg) > 0:
piTy = max(C4cg, key=Hy7s.path.getmtime)
qflE = Hy7s.path.join(piTy, SH_O)
if not Hy7s.path.isfile(qflE):
raise FileNotFoundError(f'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO):\n jkyf = ZylS.train.Saver()\n jkyf.restore(YKHO.sess, YKHO.checkpoint_path)\n print('Model restored.')",
"def uyMl():\n return None",
"def O5RJ():\n return k6eJ.load('models/sentiment/_model.pkl')",
"def uyMl():\n pass",
"def uyMl():\n pass",
"def O5RJ(YKHO):\n cb_... | [
"0.71349895",
"0.7094611",
"0.7041938",
"0.701768",
"0.701768",
"0.69077975",
"0.6903568",
"0.69023013",
"0.6891612",
"0.6824035",
"0.6801293",
"0.6801293",
"0.6801293",
"0.67931676",
"0.67847574",
"0.6740909",
"0.6740909",
"0.6740909",
"0.6740909",
"0.6727813",
"0.6706574",
... | 0.0 | -1 |
Returns the Euclidean length | def u54L(YKHO):
return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pKBJ(he6J: np.array) -> oyIN.float:\n return oyIN.sqrt(oyIN.sum(he6J ** 2, axis=1))",
"def u54L(YKHO):\n return PZyS(YKHO.x * YKHO.x + YKHO.y * YKHO.y)",
"def u54L(YKHO):\n return epAf.sqrt(YKHO.x * YKHO.x + YKHO.y * YKHO.y + YKHO.z * YKHO.z + YKHO.e * YKHO.e)",
"def u54L(YKHO):\n return epAf... | [
"0.78303283",
"0.7463788",
"0.7461094",
"0.7394499",
"0.733583",
"0.73304594",
"0.73258084",
"0.7309108",
"0.72691333",
"0.7242545",
"0.7195714",
"0.71496797",
"0.71486264",
"0.7142633",
"0.70962423",
"0.7068466",
"0.7010828",
"0.7010828",
"0.6944382",
"0.694313",
"0.6938594"... | 0.7359711 | 4 |
Takes in a text string and performs process_word operation in each word (separated with a space) in the string and returns a "cleaned", lowercase string. | def rs4a(YKHO, l5Ny):
TKMu = []
ng0v = l5Ny.split()
for GIN8 in ng0v:
Mol0 = YKHO.process_word(GIN8)
if Mol0 != '':
TKMu.append(Mol0)
return ' '.join(TKMu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GMXA(l5Ny):\n if l5Ny is None:\n return ''\n l5Ny = l5Ny.lower()\n l5Ny = l5Ny.translate(str.maketrans('', '', vIwR.punctuation))\n return ' '.join((GIN8 for GIN8 in l5Ny.split() if GIN8 not in hwHU))",
"def MXOF(l5Ny):\n l5Ny = ZbWC.sub('[^a-zA-Z]', ' ', l5Ny)\n b0j5 = LM0n().build_... | [
"0.76343215",
"0.7434202",
"0.7421169",
"0.7421169",
"0.7319341",
"0.72686464",
"0.7265475",
"0.7156726",
"0.7070947",
"0.7036999",
"0.69914216",
"0.69847465",
"0.69837046",
"0.6957576",
"0.6952727",
"0.69165546",
"0.6911742",
"0.6909199",
"0.6908961",
"0.6887413",
"0.6882884... | 0.7929867 | 0 |
Normalize a vector of weights to probabilities. | def N93T(EcVT: np.ndarray, jDK_: int) -> oyIN.ndarray:
tTpl = oyIN.exp(EcVT)
return tTpl / tTpl.sum(axis=jDK_)[oyIN.newaxis].T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LxcF(YKHO, _mSQ, u54L):\n return map(lambda WKvO: WKvO / u54L, _mSQ)",
"def FWlN(YKHO):\n exwG = sum(YKHO.weights_curr)\n for YRbF in range(YKHO.nparticles):\n YKHO.weights_curr[YRbF] /= float(exwG)",
"def FWlN(YKHO):\n exwG = sum(YKHO.weights_curr)\n for YRbF in range(YKHO.nparticles... | [
"0.735416",
"0.7185646",
"0.7185646",
"0.70341355",
"0.6961727",
"0.68406636",
"0.68085676",
"0.68042815",
"0.6768987",
"0.6743766",
"0.67080873",
"0.67080873",
"0.66841024",
"0.66440594",
"0.66313064",
"0.6611189",
"0.66085875",
"0.6584653",
"0.6511163",
"0.6504371",
"0.6463... | 0.0 | -1 |
Area Under the Receiver Operating Characteristic Curve. | def maWN(Y8eF: np.ndarray, aMgO: np.ndarray) -> float:
Ylbp = [f_Jf(Y8eF[:, Z9rn], aMgO[:, Z9rn]) for Z9rn in KndY]
return oyIN.mean(Ylbp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aw0V(YKHO):\n pass",
"def f0tD(YKHO):\n return YKHO.sl ** 2",
"def f0tD(YKHO):\n raise NotImplementedError",
"def f0tD(YKHO):\n raise NotImplementedError",
"def f0tD(YKHO):\n raise NotImplementedError",
"def f0tD(YKHO):\n return epAf.pi * YKHO.radio ** 2",
"def f0tD(YKHO):\n re... | [
"0.7200565",
"0.70936656",
"0.6970412",
"0.6970412",
"0.6970412",
"0.69376665",
"0.6910687",
"0.6907982",
"0.68939394",
"0.6889392",
"0.6889392",
"0.6889392",
"0.6889392",
"0.6889392",
"0.6889392",
"0.6889392",
"0.6889392",
"0.6889392",
"0.6869842",
"0.68690974",
"0.68690974"... | 0.0 | -1 |