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 |
|---|---|---|---|---|---|---|
Get or sets the name property for this PointCloudSchema. | def mWFP(YKHO):
return YKHO.properties.get('name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO.properties.get('name', None)",
"def mWFP(YKHO):\n return YKHO.properties.get('Name', None)",
"def mWFP(YKHO):\n return YKHO._get_field('name')",
"def mWFP(YKHO):\n return YKHO._document['name']",
"def mWFP(YKHO) -> h8nf[str]:\n return YKHO._name",
"def mWFP(YK... | [
"0.67921364",
"0.66994697",
"0.6661094",
"0.6629889",
"0.6424094",
"0.6424094",
"0.63910764",
"0.63753885",
"0.63753885",
"0.63753885",
"0.63753885",
"0.63753885",
"0.63753885",
"0.63753885",
"0.63753885",
"0.63753885",
"0.63753885",
"0.63753885",
"0.63753885",
"0.63753885",
... | 0.6694871 | 3 |
Get or sets the name property | def mWFP(YKHO):
return YKHO.properties.get('name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO, mWFP):\n return YKHO.name",
"def mWFP(YKHO):\n return YKHO.properties.get('name', None)",
"def wGWt(YKHO):\n return YKHO.name",
"def mWFP(YKHO):\n return YKHO.properties.get('Name', None)",
"def mWFP(YKHO, mWFP):\n return YKHO.name",
"def W0tD(YKHO):\n return YKHO.name",
... | [
"0.8025751",
"0.79458183",
"0.78638",
"0.7843116",
"0.7828349",
"0.7821822",
"0.782098",
"0.782098",
"0.782098",
"0.7809624",
"0.78084207",
"0.7795705",
"0.7791578",
"0.77386785",
"0.77386785",
"0.77382195",
"0.77382195",
"0.7735762",
"0.7734025",
"0.7723322",
"0.77192616",
... | 0.7870651 | 2 |
Get or sets the average property | def S8vG(YKHO):
return YKHO.properties.get('average') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VjSA(YKHO):\n return YKHO.data['avg']",
"def O5mg(YKHO):\n YKHO.avg = epAf.floor((YKHO.maths + YKHO.phy + YKHO.che) / 3)\n YKHO.assign_grade()\n return YKHO.avg",
"def VjSA(YKHO):\n nPrm = YKHO.pair.data\n if nPrm['avg'] == None:\n return None\n return 1.0 / YKHO.pair.data['avg'... | [
"0.7684296",
"0.75175554",
"0.7480714",
"0.740854",
"0.730621",
"0.72784716",
"0.72350603",
"0.7200712",
"0.7200712",
"0.7149497",
"0.71300644",
"0.7111354",
"0.7107913",
"0.7058831",
"0.7027082",
"0.6939395",
"0.6907709",
"0.6894971",
"0.68276644",
"0.68015456",
"0.6799922",... | 0.8501269 | 0 |
Get or sets the maximum property | def PtQX(YKHO):
return YKHO.properties.get('maximum') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQji(YKHO, object):\n return YKHO.maximum",
"def max(YKHO):\n return YKHO.__max",
"def ZWqN(YKHO):\n return YKHO._maximum",
"def qfB5(YKHO):\n return YKHO._max",
"def max(YKHO):\n return YKHO._max",
"def max(YKHO):\n return YKHO._max",
"def max(YKHO):\n return max(YKHO)",
"de... | [
"0.79211074",
"0.78762174",
"0.78615713",
"0.7811744",
"0.77863824",
"0.77863824",
"0.77312344",
"0.7646087",
"0.7555129",
"0.75025356",
"0.74539834",
"0.74374324",
"0.74181014",
"0.7392373",
"0.7392373",
"0.7298539",
"0.7298539",
"0.7298539",
"0.7298539",
"0.7298539",
"0.729... | 0.84164935 | 0 |
Get or sets the minimum property | def vELP(YKHO):
return YKHO.properties.get('minimum') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VmUT(YKHO):\n return YKHO._minimum",
"def min(YKHO):\n return YKHO.__min",
"def min(YKHO):\n return YKHO._min",
"def min(YKHO):\n return YKHO._min",
"def min(YKHO):\n return min(YKHO)",
"def PgG6(YKHO):\n if hasattr(YKHO, '_minimum_value'):\n return YKHO._minimum_value\n r... | [
"0.8051351",
"0.7951874",
"0.7843424",
"0.7843424",
"0.7758481",
"0.76722556",
"0.7521663",
"0.7521663",
"0.7429883",
"0.74213386",
"0.74213386",
"0.74213386",
"0.74213386",
"0.74213386",
"0.74213386",
"0.7393852",
"0.7393852",
"0.7387544",
"0.7358283",
"0.7358283",
"0.735614... | 0.852471 | 0 |
Get or sets the stddev property | def z2bo(YKHO):
return YKHO.properties.get('stddev') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wSUt(YKHO):\n return uwaB.DEFAULT_IMAGE_STD_DEV",
"def yP6U(YKHO):\n raise NotImplementedError('This is an abstract method and needs to be implemented in derived classes.')",
"def kmsL(YKHO):\n return YKHO._stddev_upper_bound",
"def yP6U(YKHO, fSMA=False):\n if YKHO.stdev is not None and (not... | [
"0.74076504",
"0.714127",
"0.7071152",
"0.70569897",
"0.69129586",
"0.6900065",
"0.6899796",
"0.6790561",
"0.6691992",
"0.662337",
"0.6462254",
"0.64339566",
"0.6383909",
"0.6379636",
"0.63508195",
"0.63437825",
"0.6311983",
"0.6292293",
"0.62887335",
"0.62790155",
"0.6241445... | 0.84157026 | 0 |
Returns the dictionary representing the JSON of this PointcloudStatistic. | def MNRr(YKHO):
return YKHO.properties | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c3ht(YKHO):\n return {'power': YKHO.get_power(), 'timestamp': YKHO.get_timestamp(), 'shortage': YKHO.get_shortage()}",
"def jkB_(YKHO):\n return qQXR.dumps({'name': YKHO.name, 'points': YKHO.points, 'field_researchers': YKHO.field_researchers, 'control_team': YKHO.control_team, 'virus_understanding': Y... | [
"0.6874672",
"0.6820688",
"0.673438",
"0.6562006",
"0.65076244",
"0.6421272",
"0.642028",
"0.63681054",
"0.63667303",
"0.6342048",
"0.63207847",
"0.63199097",
"0.6306773",
"0.6270542",
"0.62540376",
"0.62533283",
"0.62312603",
"0.62243485",
"0.6206496",
"0.616382",
"0.6162334... | 0.0 | -1 |
Change the position of paddle according to current velocity | def pAu_(oeNL, y917):
si3g = oeNL[0][1] + y917
skBL = oeNL[2][1] + y917
return [[oeNL[0][0], si3g], [oeNL[1][0], si3g], [oeNL[2][0], skBL], [oeNL[3][0], skBL]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def byjt(YKHO):\n YKHO._click()\n YKHO._game.updatePaddle(YKHO._touch)\n YKHO._last = YKHO._touch",
"def dG1x(YKHO):\n YKHO.y = YKHO.screen_Height // 2\n YKHO.vy = 0",
"def gfSj(YKHO, xSzb):\n assert isinstance(xSzb, NXqa)\n dQgj = 0\n if xSzb.is_key_down('right'):\n dQgj = 5\n ... | [
"0.7675825",
"0.7497701",
"0.7359835",
"0.7257724",
"0.7168305",
"0.71561474",
"0.71209407",
"0.71123207",
"0.7048418",
"0.7036702",
"0.7014332",
"0.7000311",
"0.6904934",
"0.68614465",
"0.6826863",
"0.67468464",
"0.67285174",
"0.6717723",
"0.6710248",
"0.66992813",
"0.669131... | 0.69779617 | 12 |
Bouncing ball from walls (paddles) depending it is vertical or horizontal ones | def hImw(httR):
if httR:
l4nO[1] = -l4nO[1]
else:
l4nO[0] = -l4nO[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riZZ(YKHO):\n if YKHO.x > TVTK - YKHO.size:\n YKHO.x = 2 * (TVTK - YKHO.size) - YKHO.x\n YKHO.angle = YKHO.angle * -1\n YKHO.speed *= zwOg\n elif YKHO.x < YKHO.size:\n YKHO.x = 2 * YKHO.size - YKHO.x\n YKHO.angle = YKHO.angle * -1\n YKHO.speed *= zwOg\n if YKH... | [
"0.7709193",
"0.766397",
"0.7379853",
"0.7351488",
"0.7326048",
"0.73140967",
"0.7311114",
"0.71403015",
"0.7061158",
"0.7043305",
"0.7026576",
"0.70097476",
"0.699283",
"0.6982168",
"0.6964145",
"0.69557464",
"0.6922511",
"0.6897229",
"0.68724406",
"0.68503296",
"0.6797895",... | 0.8331434 | 0 |
This creates an ellipse vertex buffer object (VBO). It can later be drawn with ``render_ellipse_filled``. This method of drawing an ellipse is much faster than calling ``draw_ellipse_filled`` each frame. | def HHJ8(TVTK, H2v2, qfpW):
mXeJ = 64
nPrm = []
for hTWD in range(mXeJ + 1):
q7In = 2.0 * 3.1415926 * hTWD / mXeJ
WKvO = TVTK * epAf.cos(q7In)
LVAh = H2v2 * epAf.sin(q7In)
nPrm.extend([WKvO, LVAh])
wFpt = ShTw.GLuint()
ShTw.glGenBuffers(1, gk2W.pointer(wFpt))
Rowx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A40V(YKHO, qfpW, dQgj, zNig=None, e7ZM=0, DNwW='topleft'):\n if zNig is None:\n mawX = P3Um.Rect(dQgj)\n else:\n mawX = P3Um.Rect(dQgj, zNig)\n vgXP = YKHO._calculate_offset(DNwW, mawX.size)\n a9eO.draw.ellipse(YKHO._surf, qfpW, (mawX.pos + vgXP, mawX.size), e7ZM)\n YKHO._version +... | [
"0.6592065",
"0.6583624",
"0.65602934",
"0.64700556",
"0.6327017",
"0.63180465",
"0.62618357",
"0.6234542",
"0.6102799",
"0.6060553",
"0.6034306",
"0.60213304",
"0.5934714",
"0.58779436",
"0.5859895",
"0.5859165",
"0.5803246",
"0.5758461",
"0.5747219",
"0.57460034",
"0.574087... | 0.7467849 | 0 |
Draw a filled in ellipse. | def ETaF(JPqE, fXzF, TVTK, H2v2, qfpW, K5SS=0):
mXeJ = 128
ShTw.glEnable(ShTw.GL_BLEND)
ShTw.glBlendFunc(ShTw.GL_SRC_ALPHA, ShTw.GL_ONE_MINUS_SRC_ALPHA)
ShTw.glEnable(ShTw.GL_LINE_SMOOTH)
ShTw.glHint(ShTw.GL_LINE_SMOOTH_HINT, ShTw.GL_NICEST)
ShTw.glHint(ShTw.GL_POLYGON_SMOOTH_HINT, ShTw.GL_NICES... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXEh(YKHO, d7pR, LGJQ='', yhy4=''):\n pass",
"def ZFuV(ROpF, JPqE, fXzF, qfpW, YylR=0):\n if len(qfpW) == 4:\n ShTw.glColor4ub(ROpF.color[0], ROpF.color[1], ROpF.color[2], ROpF.color[3])\n ShTw.glEnable(ShTw.GL_BLEND)\n ShTw.glBlendFunc(ShTw.GL_SRC_ALPHA, ShTw.GL_ONE_MINUS_SRC_ALPH... | [
"0.7955833",
"0.76247454",
"0.75407267",
"0.7536706",
"0.746527",
"0.7430281",
"0.7393279",
"0.737352",
"0.7330664",
"0.7297446",
"0.7236473",
"0.72267675",
"0.7218938",
"0.7172415",
"0.7135174",
"0.7118195",
"0.6997006",
"0.6991571",
"0.6968664",
"0.6954983",
"0.6951969",
... | 0.7692134 | 1 |
Draw the outline of an ellipse. | def qwOo(JPqE, fXzF, TVTK, H2v2, qfpW, e7ZM=1, K5SS=0):
mXeJ = 128
ShTw.glEnable(ShTw.GL_BLEND)
ShTw.glBlendFunc(ShTw.GL_SRC_ALPHA, ShTw.GL_ONE_MINUS_SRC_ALPHA)
ShTw.glEnable(ShTw.GL_LINE_SMOOTH)
ShTw.glHint(ShTw.GL_LINE_SMOOTH_HINT, ShTw.GL_NICEST)
ShTw.glHint(ShTw.GL_POLYGON_SMOOTH_HINT, ShTw.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXEh(YKHO, d7pR, LGJQ='', yhy4=''):\n pass",
"def NCDP(YKHO, WKvO, LVAh, yzQ0, MKlR, nmDE=None, TvGz=None):\n if yzQ0 < 1 or MKlR < 1:\n return\n nmDE = YKHO.__prepare_style(nmDE, YKHO.style.char)\n TvGz = YKHO.__prepare_style(TvGz, 'o')\n jzdc = yzQ0\n Fg_i = MKlR - 1\n oPA2 = 8 ... | [
"0.80013",
"0.77460617",
"0.72897387",
"0.7255305",
"0.7240411",
"0.7238065",
"0.7186382",
"0.7120248",
"0.70655346",
"0.70553553",
"0.7029917",
"0.70208615",
"0.7008646",
"0.69414115",
"0.69264764",
"0.6914987",
"0.68623006",
"0.67524683",
"0.6739467",
"0.67185855",
"0.67118... | 0.7946042 | 1 |
Draw a line strip. A line strip is a set of continuously connected line segments. | def FZMS(VX1z, qfpW, e7ZM=1):
ShTw.glEnable(ShTw.GL_BLEND)
ShTw.glBlendFunc(ShTw.GL_SRC_ALPHA, ShTw.GL_ONE_MINUS_SRC_ALPHA)
ShTw.glEnable(ShTw.GL_LINE_SMOOTH)
ShTw.glHint(ShTw.GL_LINE_SMOOTH_HINT, ShTw.GL_NICEST)
ShTw.glHint(ShTw.GL_POLYGON_SMOOTH_HINT, ShTw.GL_NICEST)
ShTw.glLineWidth(e7ZM)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UaY5(o4D3: float, si3g: float, ajwV: float, skBL: float, qfpW: C3F) -> None:\n _y2g.graphics.draw(2, _y2g.gl.GL_LINE_STRIP, (bqJo._VERTEX_MODE, [o4D3, si3g, ajwV, skBL]), (bqJo._COLOR_MODE, qfpW * 2))",
"def lXKT(YKHO, AahB, HEZd: str, mOna: tuple, cm2u=False):\n vgXP = 1\n oeNL = ((mOna[0] - 1) * Y... | [
"0.6880856",
"0.67509675",
"0.63536894",
"0.63324046",
"0.63174075",
"0.6304633",
"0.630407",
"0.62953043",
"0.6278865",
"0.6257372",
"0.6181309",
"0.6146893",
"0.6109245",
"0.6080167",
"0.6078135",
"0.6066115",
"0.60506165",
"0.60379934",
"0.60350406",
"0.6012197",
"0.600782... | 0.65983725 | 2 |
Draw a set of lines. Draw a line between each pair of points specified. | def T0L3(VX1z, qfpW, e7ZM=1):
ShTw.glEnable(ShTw.GL_BLEND)
ShTw.glBlendFunc(ShTw.GL_SRC_ALPHA, ShTw.GL_ONE_MINUS_SRC_ALPHA)
ShTw.glEnable(ShTw.GL_LINE_SMOOTH)
ShTw.glHint(ShTw.GL_LINE_SMOOTH_HINT, ShTw.GL_NICEST)
ShTw.glHint(ShTw.GL_POLYGON_SMOOTH_HINT, ShTw.GL_NICEST)
ShTw.glLoadIdentity()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zFiD(g_NO, LTIa, p3zD, TbMz):\n LTIa = (LTIa[0], LTIa)\n g_NO.create_line(LTIa, width=int(p3zD), fill=TbMz)",
"def zFiD(YKHO, LTIa, Uqbu='--', JmFt='black', skyf=None, xAU6=None, vxoA=None):\n JmFt = nLTA(JmFt)\n YKHO.use_colour(JmFt)\n if vxoA is None:\n vxoA = {}\n xsoI = {'draw': ... | [
"0.72511846",
"0.7052661",
"0.7031082",
"0.7013259",
"0.69279855",
"0.6882803",
"0.68647486",
"0.68350697",
"0.679705",
"0.67915046",
"0.6791072",
"0.6771816",
"0.6758988",
"0.6757219",
"0.67222095",
"0.6676704",
"0.6673109",
"0.66649455",
"0.66630626",
"0.664594",
"0.6579989... | 0.6655173 | 19 |
true if all components of self are greaterthan components of other | def TvI6(YKHO, Elif):
return YKHO.x > Elif.x and YKHO.y > Elif.y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif):\n Aofo = False\n if isinstance(Elif, PhJ3):\n Aofo = not YKHO.__le__(Elif)\n return Aofo",
"def jmxi(YKHO, Elif):\n return YKHO.element() > Elif.element()",
"def jmxi(YKHO, Elif):\n vsyK = sorted(YKHO.vector, reverse=True)\n DHHb = sorted(Elif, reverse=True)\n ... | [
"0.760271",
"0.758917",
"0.7563558",
"0.7541532",
"0.7541532",
"0.7515882",
"0.7511142",
"0.74519426",
"0.74519426",
"0.74344575",
"0.7424188",
"0.74241364",
"0.73824865",
"0.73824865",
"0.7377844",
"0.734702",
"0.7342415",
"0.7341371",
"0.73275316",
"0.7303819",
"0.72997916"... | 0.8076023 | 0 |
Sets the account_type of this User. | def dhPZ(YKHO, dhPZ):
BbPm = ['USER_ACCOUNT', 'SERVICE_ACCOUNT', 'INACTIVE_SERVICE_ACCOUNT']
if dhPZ not in BbPm:
raise ValueError('Invalid value for `account_type` ({0}), must be one of {1}'.format(dhPZ, BbPm))
YKHO._account_type = dhPZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ",
"def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ",
"def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ",
"def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ",
"def cna6(YKHO, NtEF, dhPZ):\n return YKHO._send_command_to_entity_server(bypm.SE... | [
"0.87062484",
"0.87062484",
"0.87062484",
"0.87062484",
"0.6641696",
"0.6611578",
"0.64361453",
"0.6427448",
"0.6310349",
"0.6262316",
"0.6262316",
"0.62338513",
"0.6230086",
"0.61869437",
"0.6051283",
"0.6015449",
"0.6009822",
"0.60007167",
"0.60007167",
"0.60007167",
"0.600... | 0.7928652 | 4 |
Sets the description of this User. | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO._description = JBZA",
"def prlj(YKHO, JBZA):\n YKHO.description = str(JBZA)",
"def AqxA(YKHO, QoB4: str)... | [
"0.79699385",
"0.7915846",
"0.7886942",
"0.7872471",
"0.78138965",
"0.77083653",
"0.7555156",
"0.7555156",
"0.7555156",
"0.7555156",
"0.7538835",
"0.7538835",
"0.7538835",
"0.7538835",
"0.7486253",
"0.7447229",
"0.7400064",
"0.73332494",
"0.7304437",
"0.7265347",
"0.72160715"... | 0.75348717 | 51 |
Sets the identifier of this User. | def Ilxn(YKHO, Ilxn):
YKHO._identifier = Ilxn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2tI(YKHO, Ilxn):\n YKHO.identifier = Ilxn",
"def JdS4(YKHO, PObu):\n YKHO.uid = PObu\n YKHO.set_unique_metadata('DC', 'identifier', YKHO.uid, {'id': YKHO.IDENTIFIER_ID})",
"def cohK(YKHO, Ilxn):\n YKHO._config['identifier'] = Ilxn",
"def cohK(YKHO, Ilxn):\n YKHO._config['identifier'] = Il... | [
"0.75760937",
"0.7285924",
"0.7203813",
"0.7203813",
"0.70914125",
"0.70914125",
"0.70821375",
"0.7039978",
"0.68477786",
"0.67846274",
"0.6726643",
"0.65923434",
"0.65923434",
"0.65923434",
"0.65923434",
"0.65923434",
"0.65923434",
"0.65923434",
"0.65923434",
"0.65923434",
"... | 0.70833343 | 9 |
Sets the ingestion_policy_id of this User. | def fe1s(YKHO, fe1s):
YKHO._ingestion_policy_id = fe1s | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ulWc(YKHO, ulWc):\n YKHO._policy_id = ulWc",
"def ulWc(YKHO, ulWc):\n YKHO._policy_id = ulWc",
"def CI_C(YKHO, CI_C):\n YKHO._policyid = CI_C",
"def hbFZ(YKHO, hbFZ):\n YKHO._isolation_policy_num_in = hbFZ",
"def GJiO(YKHO, GJiO):\n YKHO._security_policy_num_in = GJiO",
"def CI_C(YKHO)... | [
"0.6515323",
"0.6515323",
"0.6394129",
"0.558252",
"0.53033984",
"0.52396387",
"0.5192091",
"0.5186497",
"0.49860618",
"0.49860618",
"0.49860618",
"0.49860618",
"0.49860618",
"0.49063313",
"0.4902822",
"0.4901014",
"0.4901014",
"0.4858814",
"0.4858814",
"0.4858814",
"0.485881... | 0.86753577 | 0 |
Sets the invalid_password_attempts of this User. | def ufSX(YKHO, ufSX):
YKHO._invalid_password_attempts = ufSX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeB8(QePW):\n NtEF = QePW.user.username\n _n0l = f'{wmX1}{NtEF}'\n WLLB = wyyA.get(_n0l)\n if WLLB:\n wyyA.incr(_n0l)\n WLLB = wyyA.get(_n0l)\n if WLLB >= RLIP:\n wyyA.set(f'{H9h9}{NtEF}', qcWV.datetime.now().strftime('%Y-%m-%dT%H:%M:%S'), YckF)\n if R8gO(... | [
"0.60028946",
"0.59822524",
"0.59311193",
"0.5912592",
"0.58220094",
"0.57968193",
"0.57968193",
"0.57968193",
"0.57968193",
"0.57968193",
"0.57968193",
"0.5642325",
"0.5642325",
"0.55837667",
"0.54573965",
"0.533634",
"0.53050673",
"0.5298448",
"0.5297815",
"0.52834195",
"0.... | 0.88109624 | 0 |
Sets the last_successful_login of this User. | def k3mD(YKHO, k3mD):
YKHO._last_successful_login = k3mD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gqhm(vC92, CBIr, **B2fa):\n try:\n JdHf = c1tf.objects.get(username=CBIr.username)\n except c1tf.DoesNotExist:\n JdHf = c1tf(username=CBIr.username)\n JdHf.last_login = rIAI.now()\n JdHf.save()",
"def FH7Z(YKHO, FH7Z):\n YKHO._last_updated_user = FH7Z",
"def Gqhm(YKHO, uJjO):\n... | [
"0.62383854",
"0.6097289",
"0.5913674",
"0.56693685",
"0.5667146",
"0.55218714",
"0.5453868",
"0.5453868",
"0.5453868",
"0.5453868",
"0.5396251",
"0.5393752",
"0.53828484",
"0.5334476",
"0.5300474",
"0.52913195",
"0.5239801",
"0.5202896",
"0.5134672",
"0.5134307",
"0.5133024"... | 0.86679167 | 0 |
Sets the last_used of this User. | def Ymu7(YKHO, Ymu7):
YKHO._last_used = Ymu7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k7xH(YKHO):\n YKHO.last_used_on = qcWV.now()\n YKHO.save()",
"def FH7Z(YKHO, FH7Z):\n YKHO._last_updated_user = FH7Z",
"def Hlvj(YKHO, Hlvj):\n YKHO._used_current = Hlvj",
"def m12r(YKHO, eBnz):\n YKHO.used_mem = eBnz\n return",
"def mn17(YKHO, mn17):\n YKHO._last_updated = mn17",
... | [
"0.80200636",
"0.681808",
"0.622034",
"0.61213255",
"0.5930207",
"0.5930207",
"0.5930207",
"0.5930207",
"0.585247",
"0.57980454",
"0.57980454",
"0.57906604",
"0.57579005",
"0.5753154",
"0.5700529",
"0.5613673",
"0.5568887",
"0.5545505",
"0.5545505",
"0.553601",
"0.55082154",
... | 0.8048686 | 0 |
Sets the sso_id of this User. | def XmEo(YKHO, XmEo):
YKHO._sso_id = XmEo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, TbZN):\n YKHO.ssc_id = TbZN",
"def cm0c(YKHO, cm0c):\n YKHO._security_user_id = cm0c",
"def cm0c(YKHO, cm0c):\n YKHO._security_user_id = cm0c",
"def r2U1(YKHO, r2U1):\n YKHO._id_user = r2U1",
"def PCoh(YKHO, PCoh):\n YKHO.logger.debug(\"In 'srs_id' setter.\")\n if len(PCoh)... | [
"0.6938822",
"0.6722376",
"0.6722376",
"0.6650585",
"0.6571622",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.64370245",
"0.61311513",
"... | 0.8322336 | 0 |
Sets the super_admin of this User. | def QKEE(YKHO, QKEE):
YKHO._super_admin = QKEE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Kb1(YKHO, _Kb1):\n YKHO._is_admin = _Kb1",
"def _Kb1(YKHO, _Kb1: bool):\n if _Kb1 is None:\n raise ValueError('Invalid value for `is_admin`, must not be `None`')\n YKHO._is_admin = _Kb1",
"def qMrd(YKHO):\n return YKHO.is_admin",
"def Hj8g(YKHO):\n with YKHO.settings(MAINTENANCE_MO... | [
"0.62841874",
"0.59982663",
"0.57652795",
"0.574121",
"0.56373507",
"0.55411154",
"0.5473407",
"0.54709655",
"0.5418948",
"0.54167575",
"0.5392598",
"0.5367949",
"0.53367376",
"0.52825993",
"0.5276903",
"0.524409",
"0.5232801",
"0.5229835",
"0.5229079",
"0.522115",
"0.5218602... | 0.84275925 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, mv1M):
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.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Check for negative correlation between snr and boxcar width | def dMAf(Zi12, P6Dd=True):
sEAN = rpJc(Zi12)
sEAN.sort(order='sigma')
if P6Dd:
sEAN = sEAN[::-1]
finE = sEAN[oyIN.unique(sEAN.downfact, True)[1]]
return oyIN.corrcoef(finE.downfact, finE.sigma)[0, 1]
else:
return oyIN.corrcoef(sEAN.downfact, sEAN.sigma)[0, 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def niKX():\n jmzt = oyIN.zeros((2, 50))\n jmzt[0, 25] = 2\n jmzt[1, 23] = 3\n yczh = zzpm.res_corr(jmzt, 2, 8)\n assert oyIN.abs(oyIN.sum(yczh[0, :]) / oyIN.sum(jmzt[0, :]) - 1) < 1e-06\n assert oyIN.abs(oyIN.sum(yczh[1, :]) / oyIN.sum(jmzt[1, :]) - 1) < 1e-06\n for YRbF in (0, 1):\n a... | [
"0.6347539",
"0.5928468",
"0.5708619",
"0.5706645",
"0.5673066",
"0.54473203",
"0.5416163",
"0.54109305",
"0.54031074",
"0.53322965",
"0.5307723",
"0.52894187",
"0.5284714",
"0.52790034",
"0.5271658",
"0.52684325",
"0.5264695",
"0.5264695",
"0.52594686",
"0.5252755",
"0.51993... | 0.55352294 | 5 |
Derive a new feature by calculating each uid_key's number of unique values in the column we concern. | def FnRi(jQ3Z, FM8C, XWsU, BWXx, _x49):
H2v5 = rLdf.DataFrame(FM8C.groupby(XWsU)[BWXx].nunique()).reset_index()
H2v5 = H2v5.rename(columns={BWXx: _x49})
jQ3Z = rLdf.merge(jQ3Z, H2v5, on=XWsU, how='left')
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BVge(jQ3Z, WfCS, L9B9, JlJm, NArs=None):\n Tc4o = WfCS[-1]\n yDqo = {WKvO: jQ3Z[WKvO].dtype for WKvO in WfCS[:-1] if WKvO in jQ3Z.columns.values}\n Aofo = jQ3Z[WfCS].groupby(by=WfCS[:-1])[[Tc4o]].nunique().rename(index=str, columns={Tc4o: JlJm}).reset_index()\n yDqo[JlJm] = BfDw.set_type(Aofo[JlJm]... | [
"0.66549265",
"0.65931535",
"0.60874295",
"0.5826456",
"0.57991785",
"0.57584035",
"0.57546794",
"0.57458144",
"0.5695361",
"0.5608669",
"0.5586536",
"0.5578991",
"0.5561425",
"0.5548597",
"0.5500904",
"0.5493599",
"0.54616946",
"0.5449396",
"0.5429298",
"0.5403169",
"0.53879... | 0.65722513 | 2 |
Returns a copy of this object. | def i3ak(YKHO):
BdN0 = jth9(YKHO)
try:
del BdN0.input_changed
except AttributeError:
pass
return BdN0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def FzJk(YKHO):\n return YKHO.copy()",
"def jth9(YKHO):\n return jth9(YKHO)",
"def jth9(YKHO):\n return jt... | [
"0.90618587",
"0.90618587",
"0.90618587",
"0.90618587",
"0.90363246",
"0.9003144",
"0.9003144",
"0.899227",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
"0.89381063",
... | 0.0 | -1 |
Return the main body of the message. The body object contains the main text of the message. This may be the message object itself for a simple message or the first part of the multipart message. | def dyAh(YKHO):
if not YKHO.is_multipart():
return YKHO
return YKHO.get_payload(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dyAh(Ol8d):\n if Ol8d.is_multipart():\n ohXG = [Q7me for Q7me in czPr(Ol8d, 'text', 'html')]\n TBsA = []\n for Q7me in ohXG:\n p4k2 = J8mI(Q7me, J8mI(Ol8d))\n TBsA.append(QMSQ(Q7me.get_payload(decode=True), p4k2, 'replace'))\n return u'\\n'.join(TBsA).strip(... | [
"0.7925092",
"0.76354456",
"0.7389757",
"0.73256904",
"0.7178256",
"0.69532526",
"0.69361126",
"0.69045234",
"0.6858108",
"0.6858108",
"0.684457",
"0.68286127",
"0.6743032",
"0.67326695",
"0.6726798",
"0.6704837",
"0.6699571",
"0.66831553",
"0.66766495",
"0.66747385",
"0.6617... | 0.76660156 | 1 |
Creates a new mail message instance with character set conversion from portal to email encoding. | def K1ka(YKHO, *qIxc, **YSA3):
if not YSA3.has_key('charset'):
YSA3['charset'] = YKHO.getOutputCharset()
YSA3['to_mail'] = 1
return ZSNb.createMessage(YKHO, *qIxc, **YSA3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K1ka(YKHO, *qIxc, **YSA3):\n if not YSA3.has_key('charset'):\n YSA3['charset'] = YKHO.getInputCharset()\n return ZSNb.createMessage(YKHO, *qIxc, **YSA3)",
"def K1ka(YKHO, *qIxc, **YSA3):\n return CWic(*qIxc, **YSA3)",
"def wALM(vC92, Br5Q, U4ZT, k8SK):\n k8SK = ''.join(filter(lambda WKvO... | [
"0.70733476",
"0.6609754",
"0.6518896",
"0.6191155",
"0.61215144",
"0.6077816",
"0.6077816",
"0.60411197",
"0.60158163",
"0.59733117",
"0.59410167",
"0.591022",
"0.58883834",
"0.5880787",
"0.58439267",
"0.58423674",
"0.5827256",
"0.58145374",
"0.5812579",
"0.5722532",
"0.5687... | 0.7022055 | 1 |
Formats name and email address pair into string, properly encoding and converting characters if necessary. | def i7JJ(q2Xo, p4k2=None):
mWFP, UTX6 = q2Xo
mWFP = mWFP and mWFP.strip()
UTX6 = UTX6 and UTX6.strip()
if not mWFP:
return UTX6
if hQy4(mWFP):
WBPg = iMeJ('"%s"' % mWFP, p4k2)
WBPg.append(' <%s>' % UTX6, '8bit')
return WBPg
PenU = ''
if awlm.search(mWFP):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FEhW(mWFP: str, D3lj: str, C6SK: str):\n if D3lj:\n return D3lj.strip()\n else:\n CBIr = mWFP.title() + C6SK.title()\n return ZbWC.sub('\\\\W+', '', XKrx(CBIr)) + 'Archive@ao3.org'",
"def eKCc(YKHO, mWFP, D3lj):\n saPH = iMeJ(mWFP).encode()\n return QMSQ('{0} <{1}>').format(s... | [
"0.649302",
"0.64685345",
"0.6436405",
"0.632436",
"0.63218296",
"0.6295794",
"0.6265821",
"0.6252156",
"0.6250787",
"0.62500536",
"0.62288564",
"0.6211553",
"0.6210303",
"0.6158841",
"0.61580867",
"0.61551654",
"0.61551654",
"0.61551654",
"0.6139743",
"0.6139743",
"0.6139743... | 0.60288423 | 26 |
Returns a layer accepting inputs with `in_channels` number of channels and producing outputs of `out_channels` number of channels. The `strides` indicates upsampling factor, ie. transpose convolutional stride. If `is_last` is True this is the final layer and is not expected to include activation and normalization layer... | def JaIS(YKHO, DYuh: int, tYiq: int, FEri: int, V5s8: bool) -> QF3_ | U78l.Sequential:
gEmA: QF3_ | U78l.Sequential
gEmA = QF3_(in_channels=DYuh, strides=FEri, is_transposed=True, conv_only=V5s8 or YKHO.num_res_units > 0, spatial_dims=YKHO.dimensions, out_channels=tYiq, kernel_size=YKHO.kernel_size, act=YKHO.ac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ITJE(YKHO, DYuh, tYiq, Ot1W, _0fC=1, dvgN=1, EJc2=0, oBmh=True, oug5=False, rFXh=1):\n Esg1 = []\n yvT9 = DYuh\n for exwG in range(rFXh):\n if exwG == rFXh - 1:\n yvT9 = tYiq\n Esg1.append(U78l.Conv3d(DYuh, yvT9, Ot1W, stride=_0fC, padding=dvgN, bias=oug5))\n if oBmh:\n... | [
"0.64961624",
"0.6486889",
"0.6161412",
"0.6099693",
"0.6056032",
"0.5973628",
"0.5967452",
"0.59473336",
"0.59332967",
"0.5922968",
"0.59079784",
"0.5907842",
"0.587985",
"0.58781666",
"0.58737856",
"0.5852219",
"0.58321995",
"0.58296496",
"0.5822817",
"0.58217055",
"0.58023... | 0.7741987 | 0 |
Return the area of the triangle. p = 1/2(a+b+c) S = sqrt(p(pa)(pb)(pc)) | def f0tD(YKHO):
SBhG = YKHO.perimeter() / 2
f0tD = SBhG
for vC9B in YKHO._lengths:
f0tD *= SBhG - vC9B
return float('{:.2f}'.format(f0tD ** 0.5)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E8vm(jzdc, Fg_i, Z9rn):\n bBVO = oyIN.sqrt(((jzdc - Fg_i) ** 2).sum())\n _P6x = oyIN.sqrt(((jzdc - Z9rn) ** 2).sum())\n P9SZ = oyIN.sqrt(((Fg_i - Z9rn) ** 2).sum())\n KCHu = (bBVO + _P6x + P9SZ) / 2\n f0tD = oyIN.sqrt(KCHu * (KCHu - bBVO) * (KCHu - P9SZ) * (KCHu - _P6x))\n return f0tD",
"de... | [
"0.81039286",
"0.80193704",
"0.7848163",
"0.7843925",
"0.7781955",
"0.7758094",
"0.7729729",
"0.762703",
"0.7604994",
"0.75897235",
"0.7544993",
"0.75260663",
"0.75237507",
"0.75114924",
"0.7504563",
"0.7492572",
"0.74918664",
"0.743501",
"0.7426473",
"0.72041607",
"0.7201701... | 0.6352956 | 59 |
Create a Square. length the length of side of the square. | def FIMM(YKHO, u54L):
super().__init__([u54L] * 4, [90] * 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fyji(hgjH, LyOL, *qIxc, **B2fa):\n hgjH = oyIN.asarray(hgjH)\n LyOL = float(LyOL)\n ksua = hgjH - 0.5 * LyOL\n return Po4F.Rectangle(ksua, LyOL, LyOL, *qIxc, **B2fa)",
"def Fyji(WttJ=30, ypfK=-90):\n DtQq = [[WttJ, WttJ, ypfK, 0, 0, 0, 'mov'], [-WttJ, WttJ, ypfK, 0, 0, 0, 'lin'], [-WttJ, -WttJ... | [
"0.73198646",
"0.71987057",
"0.699792",
"0.69413346",
"0.685241",
"0.6675366",
"0.6620838",
"0.65422",
"0.65281945",
"0.64755034",
"0.6356539",
"0.6324386",
"0.62244916",
"0.6215322",
"0.6206195",
"0.6151142",
"0.6139236",
"0.6122061",
"0.6094413",
"0.60280967",
"0.60167927",... | 0.0 | -1 |
Return the area of polygon. S = p a / 2 p = perimeter a = length / (2tan(180/sides)) | def f0tD(YKHO):
f0tD = 0.25 * YKHO._sides * YKHO._length ** 2 / epAf.tan(epAf.radians(180 / YKHO._sides))
return float('{:.2f}'.format(f0tD)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h2D1(BA7i: int, u54L: float) -> float:\n if not isinstance(BA7i, int) or BA7i < 3:\n raise ValueError('area_reg_polygon() only accepts integers greater than or equal to three as number of sides')\n elif u54L < 0:\n raise ValueError('area_reg_polygon() only accepts non-negative values as len... | [
"0.8023738",
"0.7992927",
"0.78511256",
"0.78302795",
"0.7814434",
"0.7734573",
"0.7586559",
"0.75264525",
"0.7449325",
"0.7428537",
"0.7271374",
"0.7245943",
"0.71875834",
"0.7176318",
"0.7136696",
"0.71306264",
"0.7113179",
"0.7074509",
"0.7054766",
"0.7048828",
"0.70385116... | 0.7592992 | 6 |
Return the area of irregular polygon. [(x1, y1), (x2, y2), (x3, y3), (x4, y4)] a = x1y2 + x2y3 + x3y4 + x4y1 b = y1x2 + y2x3 + y3x4 + y4x1 S = 1/2|ab| | def f0tD(YKHO):
f0tD = 0
XVAW = YKHO._coordinates[-1]
for Z9rn in YKHO._coordinates:
f0tD += XVAW[0] * Z9rn[1] - XVAW[1] * Z9rn[0]
XVAW = Z9rn
return float('{:.2f}'.format(abs(f0tD) * 0.5)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZrLT(WKvO, LVAh):\n return 0.5 * oyIN.abs(oyIN.dot(WKvO, oyIN.roll(LVAh, 1)) - oyIN.dot(LVAh, oyIN.roll(WKvO, 1)))",
"def ZrLT(cyvo):\n m07n = cyvo.vertices\n if len(m07n) < 3:\n return 0.0\n A3mO = m07n[:, 1] - m07n[:, 1].mean()\n ijL8 = m07n[:, 0] - m07n[:, 0].mean()\n i0Uw = A3mO[... | [
"0.7657677",
"0.7575073",
"0.7521163",
"0.7511863",
"0.74539244",
"0.7410052",
"0.7393758",
"0.7365713",
"0.7242179",
"0.7235108",
"0.7217956",
"0.7151036",
"0.70429426",
"0.7032234",
"0.7001936",
"0.6983961",
"0.6973192",
"0.69346815",
"0.69228184",
"0.6922677",
"0.6919159",... | 0.6595707 | 32 |
r"""Sets up actor critic and agent for PPO. | def DfvD(YKHO, tOrW: Config, uj5C=None) -> None:
bo34.add_filehandler(YKHO.config.LOG_FILE)
if uj5C is None:
uj5C = YKHO.envs.observation_spaces[0]
YKHO.actor_critic = T78o(observation_space=uj5C, action_space=YKHO.envs.action_spaces[0], hidden_size=tOrW.hidden_size, goal_sensor_uuid=YKHO.config.TAS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DfvD(YKHO, tOrW: Config) -> None:\n bo34.add_filehandler(YKHO.config.LOG_FILE)\n YKHO.actor_critic = SwBj(observation_space=YKHO.envs.observation_spaces[0], action_space=YKHO.envs.action_spaces[0], hidden_size=tOrW.hidden_size)\n YKHO.actor_critic.to(YKHO.device)\n YKHO.agent = JQ4E(actor_critic=YK... | [
"0.8002376",
"0.7934495",
"0.62190187",
"0.61917746",
"0.61137176",
"0.6070026",
"0.60484576",
"0.5936954",
"0.5790541",
"0.57671416",
"0.5742905",
"0.57137734",
"0.5711547",
"0.57044065",
"0.5698852",
"0.56630653",
"0.5593745",
"0.55782545",
"0.5576158",
"0.5555962",
"0.5555... | 0.7379803 | 2 |
r"""Load checkpoint of specified path as a dict. | def Nh79(YKHO, V1C0: str, *qIxc, **B2fa) -> cuzp:
return ht2j.load(V1C0, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nh79(V1C0):\n vAG5 = NoxJ(GCKv(V1C0), keep_empty_nodes=True)\n return vAG5",
"def Nh79(pmON: str, ds3w: bool=True) -> dict:\n assert Hy7s.path.isfile(pmON), 'Checkpoint %s not found' % pmON\n vauY = ht2j.load(pmON, map_location='cuda' if ds3w else 'cpu')\n return vauY",
"def Nh79(YKHO, V1C0:... | [
"0.793037",
"0.7480966",
"0.74463123",
"0.72766906",
"0.72656673",
"0.72596836",
"0.7255012",
"0.72533715",
"0.71079624",
"0.7094464",
"0.6936953",
"0.69292545",
"0.69085896",
"0.68961304",
"0.6853913",
"0.6835567",
"0.682966",
"0.6803416",
"0.68013287",
"0.67988545",
"0.6798... | 0.80184495 | 1 |
[summary] Get now date | def slWZ(YKHO, Sm0u=0, X_bn=0, ulWt=0):
hApP, kSlW, y1G3, u6z2 = (qcWV.now() - enlf(days=Sm0u, months=X_bn, years=ulWt)).strftime('%Y %m %d %w').split(' ')
return (hApP, kSlW, y1G3, u6z2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zhU5():\n import datetime\n return datetime.datetime.now()",
"def slWZ():\n return qcWV.datetime.now()",
"def fqzu():\n return qcWV.datetime.now()",
"def EUP2():\n return qcWV.now()",
"def EUP2():\n return qcWV.now()",
"def wzkt():\n return qcWV.datetime.now()",
"def wzkt():\n ... | [
"0.8348285",
"0.82772225",
"0.8255086",
"0.8070372",
"0.8070372",
"0.80288523",
"0.8001644",
"0.797596",
"0.793808",
"0.7851731",
"0.7839628",
"0.77708334",
"0.77312267",
"0.7724434",
"0.7696471",
"0.76959133",
"0.76343066",
"0.76279294",
"0.7622276",
"0.76146644",
"0.7588904... | 0.0 | -1 |
Saves model and training parameters at '{checkpoint_dir}/last_checkpoint.pytorch'. If is_best==True saves '{checkpoint_dir}/best_checkpoint.pytorch' as well. | def IRyE(QTBn, xWf0, bPTx, bo34=None):
def xgtA(Ol8d):
if bo34 is not None:
bo34.info(Ol8d)
if not Hy7s.path.exists(bPTx):
xgtA('Checkpoint directory does not exists. Creatding {}'.format(bPTx))
Hy7s.mkdir(bPTx)
zoqO = Hy7s.path.join(bPTx, 'last_checkpoint.pytorch')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t4X7(YKHO, qtWj, xWf0=False):\n JACg = type(YKHO.model).__name__\n QTBn = {'arch': JACg, 'epoch': qtWj, 'state_dict': YKHO.model.state_dict(), 'optimizer': YKHO.optimizer.state_dict(), 'config': YKHO.config}\n Ux0P = str(YKHO.checkpoint_dir / 'checkpoint-epoch{}.pth'.format(qtWj))\n ht2j.save(QTBn,... | [
"0.85600317",
"0.84483707",
"0.844336",
"0.84387565",
"0.82364273",
"0.82218236",
"0.82113105",
"0.81998",
"0.8179897",
"0.8165473",
"0.8163356",
"0.81393695",
"0.80733144",
"0.80630046",
"0.80324554",
"0.80055815",
"0.79763263",
"0.79742396",
"0.7972152",
"0.7961076",
"0.786... | 0.8211948 | 6 |
Get vCenter profile ID for the given profile name. | def RIgS(YKHO, lZwM):
if lZwM in YKHO._profile_id_cache:
na1r.debug('Returning cached ID for profile: %s.', lZwM)
return YKHO._profile_id_cache[lZwM]
O4Fb = yvFt.get_profile_id_by_name(YKHO._session, lZwM)
if O4Fb is None:
na1r.error('Storage profile: %s cannot be found in vCenter.',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RIgS(YKHO, z39Z):\n return z39Z['id']",
"def RIgS(YKHO):\n dixj = YKHO.service.userProfiles().list().execute()\n assert 'items' in dixj\n assert len(dixj['items'])\n YKHO.profileId = dixj['items'][0]['profileId']\n return YKHO.profileId",
"def BEy4(YKHO, n8Ek, ZgoD, lZwM):\n property, ... | [
"0.74070936",
"0.7150303",
"0.6525266",
"0.6521924",
"0.64373",
"0.64079624",
"0.6190595",
"0.6131173",
"0.6119806",
"0.6084863",
"0.6063371",
"0.6046787",
"0.6038563",
"0.6031902",
"0.6006041",
"0.6001048",
"0.5946704",
"0.5930294",
"0.59243727",
"0.58269536",
"0.57891476",
... | 0.79604137 | 0 |
Split the list into N chunks with nearly equal size | def lpha(jzdc, exwG):
G1Hx, r8hN = divmod(len(jzdc), exwG)
U5bT = [jzdc[YRbF * G1Hx + min(YRbF, r8hN):(YRbF + 1) * G1Hx + min(YRbF + 1, r8hN)] for YRbF in range(exwG)]
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dlVb(yv6U, exwG):\n zNig = int(len(yv6U) / exwG)\n kjNI = []\n for YRbF in range(0, exwG):\n rpVW = yv6U[YRbF * zNig:YRbF * zNig + zNig]\n kjNI.append(rpVW)\n if len(yv6U) % exwG != 0:\n for YRbF in range((exwG - 1) * zNig + 1, len(yv6U)):\n kjNI[-1].append(yv6U[YRbF... | [
"0.8481013",
"0.841289",
"0.8344726",
"0.8324688",
"0.8320427",
"0.8300975",
"0.8290239",
"0.8290239",
"0.82838523",
"0.82808083",
"0.8261033",
"0.82479733",
"0.8246596",
"0.8239782",
"0.8235523",
"0.82307076",
"0.8216914",
"0.8216914",
"0.8216914",
"0.8216914",
"0.8216914",
... | 0.0 | -1 |
Convert the list of genre names to a list of integer codes | def uOoY(jFC5):
Lojz = ('Action', 'Adventure', 'Animation', 'Children', 'Comedy', 'Crime', 'Documentary', 'Drama', 'Fantasy', 'Film-Noir', 'Horror', 'Musical', 'Mystery', 'Romance', 'Sci-Fi', 'Thriller', 'War', 'Western')
XYiT = tuple((WKvO.lower() for WKvO in Lojz))
PQ35 = jFC5.lower()
UvpI = []
fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B2Gm(khoC: List[str]) -> x1iM[int]:\n return [IhJ6[dxhl] for dxhl in khoC]",
"def Se1F(jFC5):\n UvpI = uOoY(jFC5)\n oKsZ = tuKI.choice(UvpI)\n return oKsZ",
"def kLcZ(YKHO, l5Ny: str) -> x1iM[int]:\n return [YKHO._label2id.get(hcXw, YKHO.oov) for hcXw in l5Ny]",
"def b1y8(YKHO, C4i7):\n ... | [
"0.6403545",
"0.6397784",
"0.6230419",
"0.58852553",
"0.5724964",
"0.5712142",
"0.5674078",
"0.5648342",
"0.56424886",
"0.5638062",
"0.5619171",
"0.560808",
"0.55794066",
"0.5572242",
"0.5552211",
"0.55461556",
"0.5514612",
"0.55142",
"0.5499517",
"0.54790187",
"0.5474421",
... | 0.76089114 | 0 |
It will send an email to the user who has submitted his message on contact us page, stating SetNow has recieved your email. | def EpBT(**nPrm):
ZTJf = Hy7s.path.join(UMs9, 'templates', 'main', 'contact-us-receipt', 'content.txt')
with open(ZTJf, 'r') as eHNT:
ACPd = eHNT.read()
BsEP = TvZl('main/contact-us-receipt/content.html')
tO9_ = LuKW(f'[SetNow Support] Re: {nPrm['subject']}', sender='setnow@tuta.io', recipients=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d7e_(XWXe, Jwx4, x4rd):\n FGIh = P4t4.config['MAIL_USERNAME']\n tO9_ = LuKW('Contact Form', sender=('iSOLveIT Contact', f'{FGIh}'), recipients=[f'{FGIh}'])\n tO9_.body = f\"{x4rd}\\n\\n\\nSender's Name: {XWXe}\\nSender's Email: {Jwx4}\\nDate Sent: {JRYC.now(tz=K3PI).strftime('%B %d, %Y, %H:%M ') + 'G... | [
"0.7494842",
"0.73954725",
"0.7259586",
"0.7162931",
"0.7162931",
"0.7162931",
"0.7162931",
"0.7162931",
"0.7162931",
"0.7162931",
"0.7162931",
"0.71595526",
"0.7133251",
"0.70918906",
"0.7065375",
"0.7051366",
"0.6987852",
"0.69807917",
"0.6939038",
"0.69237715",
"0.6900738"... | 0.0 | -1 |
Gets the start_date of this PeriodRate. | def kepv(YKHO):
return YKHO._start_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kepv(YKHO):\n return YKHO.__start_date",
"def Nqfv(YKHO):\n return YKHO.__startDate",
"def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')",
"def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')",
"def kepv(YKHO) -> str:\n return YKHO._start_date",
"def kepv(YKHO) -> h... | [
"0.7750614",
"0.7724319",
"0.74975735",
"0.74975735",
"0.740444",
"0.727911",
"0.727911",
"0.70483065",
"0.7027903",
"0.70245194",
"0.69981235",
"0.6949999",
"0.6880805",
"0.6797683",
"0.67829543",
"0.67502046",
"0.66033673",
"0.65178883",
"0.64935154",
"0.6489378",
"0.647966... | 0.7835232 | 3 |
Sets the start_date of this PeriodRate. | def kepv(YKHO, kepv):
if kepv is None:
raise ValueError('Invalid value for `start_date`, must not be `None`')
YKHO._start_date = kepv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._st... | [
"0.82142425",
"0.81671256",
"0.81671256",
"0.81671256",
"0.81671256",
"0.81671256",
"0.81671256",
"0.81671256",
"0.81671256",
"0.81671256",
"0.8090432",
"0.7935861",
"0.790237",
"0.7676254",
"0.76486",
"0.74049854",
"0.71705866",
"0.717013",
"0.69129425",
"0.6812465",
"0.6646... | 0.80454725 | 11 |
Gets the end_date of this PeriodRate. | def KhBf(YKHO):
return YKHO._end_date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KhBf(YKHO):\n return YKHO.__end_date",
"def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')",
"def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')",
"def KhBf(YKHO) -> str:\n return YKHO._end_date",
"def KhBf(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'end_date')",
"def ... | [
"0.8052878",
"0.78916854",
"0.78916854",
"0.7788002",
"0.7606846",
"0.7606846",
"0.7388593",
"0.73551285",
"0.7119431",
"0.70086557",
"0.697917",
"0.68780804",
"0.6863274",
"0.67638165",
"0.67638165",
"0.6609049",
"0.65766025",
"0.65640557",
"0.65194356",
"0.6514433",
"0.6480... | 0.8119356 | 2 |
Sets the end_date of this PeriodRate. | def KhBf(YKHO, KhBf):
if KhBf is None:
raise ValueError('Invalid value for `end_date`, must not be `None`')
YKHO._end_date = KhBf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = K... | [
"0.84405595",
"0.84405595",
"0.84405595",
"0.84405595",
"0.84405595",
"0.84405595",
"0.84405595",
"0.84405595",
"0.8401752",
"0.8070054",
"0.7890985",
"0.7801233",
"0.7764807",
"0.7746387",
"0.75685936",
"0.75660414",
"0.7503813",
"0.74885947",
"0.74398005",
"0.7429233",
"0.6... | 0.81435657 | 9 |
Sets the price of this PeriodRate. Total amount in the given currency per day of this rate, formatted appropriately. For example: 194.99. | def hI0L(YKHO, hI0L):
if hI0L is None:
raise ValueError('Invalid value for `price`, must not be `None`')
YKHO._price = hI0L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hI0L(YKHO, BWXx):\n YKHO._price = ZjSO(BWXx)",
"def hI0L(YKHO, hI0L: float):\n YKHO._price = hI0L",
"def hI0L(YKHO, hI0L):\n YKHO._price = hI0L",
"def hI0L(YKHO, hI0L):\n YKHO._price = hI0L",
"def hI0L(YKHO, hI0L):\n YKHO._price = hI0L",
"def hI0L(YKHO, hI0L):\n YKHO._price = hI0L",... | [
"0.7363745",
"0.6961715",
"0.68986905",
"0.68986905",
"0.68986905",
"0.68986905",
"0.68397754",
"0.6779544",
"0.6678253",
"0.6490332",
"0.6490332",
"0.63774556",
"0.62787807",
"0.62019104",
"0.6201535",
"0.60346013",
"0.5986553",
"0.593982",
"0.593982",
"0.593982",
"0.593982"... | 0.6396522 | 11 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, j79W):
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.80886984",
"0.80886984",
"0.8055307",
"0.7983415",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
... | 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.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
restore existing model from checkpoint data | def iukt(cb_Q, jkyf, ypox, f44F, qYTu):
Aak1 = -1
if vPBo.continue_run:
aqBD = ZylS.train.get_checkpoint_state(vPBo.checkpoint_dir)
if aqBD and aqBD.model_checkpoint_path:
jkyf.restore(cb_Q, aqBD.model_checkpoint_path)
Aak1 = int(aqBD.model_checkpoint_path.split('/')[-1].... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wBIE(YKHO, vauY):\n raise NotImplementedError",
"def hLQf(YKHO, vauY):\n V1C0 = Hy7s.path.join(vauY, 'model_weights')\n YKHO.model.load_weights(V1C0)",
"def wBIE(YKHO):\n if YKHO._restored_model:\n return\n with YKHO.eval_graph.graph.as_default():\n x8fl = YKHO._find_last_check... | [
"0.82485825",
"0.796376",
"0.7843921",
"0.78421044",
"0.76558834",
"0.7596436",
"0.75354093",
"0.75299984",
"0.75299454",
"0.7502393",
"0.74868834",
"0.7438636",
"0.7432705",
"0.7357649",
"0.7291689",
"0.7288314",
"0.72573495",
"0.7244296",
"0.72177184",
"0.71603024",
"0.7112... | 0.0 | -1 |
Given infection rate, batch size, prob of type II error and prob of type I error, this function gives the infection rate on the negative batch. | def H5UX(XP5J, Ep8u, o6L9, t5T_):
vexM = 1 - XP5J
Mkmy = o6L9 * (1 - vexM ** Ep8u) / ((1 - t5T_) * vexM ** Ep8u + o6L9 * (1 - vexM ** Ep8u))
return XP5J * Mkmy / (1 - vexM ** Ep8u) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGk1(XP5J, Ep8u, o6L9, t5T_):\n vexM = 1 - XP5J\n Mkmy = (1 - o6L9) * (1 - vexM ** Ep8u) / (t5T_ * vexM ** Ep8u + (1 - o6L9) * (1 - vexM ** Ep8u))\n return XP5J * Mkmy / (1 - vexM ** Ep8u)",
"def Iu1M(vheG, HsAL, NFi7):\n o4sw, pdhd, A3Vt = vheG\n pSGo = HsAL * A3Vt * o4sw\n MBGW = NFi7 * p... | [
"0.7762854",
"0.5617929",
"0.5598052",
"0.55627394",
"0.5482425",
"0.54776",
"0.53921086",
"0.52652943",
"0.5248407",
"0.5214322",
"0.5190559",
"0.51802075",
"0.5151612",
"0.5146402",
"0.51212883",
"0.5111674",
"0.5104418",
"0.51034486",
"0.50835353",
"0.50782907",
"0.5078290... | 0.8331775 | 0 |
Given infection rate, batch size, prob of type II error and prob of type I error, this function gives the infection rate on the positive batch. | def vGk1(XP5J, Ep8u, o6L9, t5T_):
vexM = 1 - XP5J
Mkmy = (1 - o6L9) * (1 - vexM ** Ep8u) / (t5T_ * vexM ** Ep8u + (1 - o6L9) * (1 - vexM ** Ep8u))
return XP5J * Mkmy / (1 - vexM ** Ep8u) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H5UX(XP5J, Ep8u, o6L9, t5T_):\n vexM = 1 - XP5J\n Mkmy = o6L9 * (1 - vexM ** Ep8u) / ((1 - t5T_) * vexM ** Ep8u + o6L9 * (1 - vexM ** Ep8u))\n return XP5J * Mkmy / (1 - vexM ** Ep8u)",
"def JG9t(xXQY, o6L9, t5T_, vOXR, Y1jh=2):\n N344 = WWCb(xXQY, o6L9, t5T_, Y1jh)\n pBSp, lO1m = (oyIN.floor(N... | [
"0.7918529",
"0.5915895",
"0.571201",
"0.56996566",
"0.55144626",
"0.5478736",
"0.52507764",
"0.52285254",
"0.52118695",
"0.5194194",
"0.514897",
"0.5107811",
"0.5105545",
"0.5098236",
"0.5084981",
"0.5084981",
"0.50753295",
"0.5049511",
"0.50467753",
"0.5041696",
"0.5035813"... | 0.7973856 | 0 |
HEP.HEPObject.ArXivEprints Returns an array of objects containing the value corresponding to the key hepjsonrecord['metadata']['arxiv_eprints'] | def Bkbo(YKHO, WmM4=[{}]):
jbXL = YKHO.data.get('metadata', {}).get('arxiv_eprints', WmM4)
return [mHCs.ArXivObject(YRbF) for YRbF in jbXL] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TGEV(YKHO):\n return Zmkp(YKHO.record, 'arxiv_eprints.value[0]')",
"def gd2G(YKHO, WmM4=None):\n return YKHO.data.get('arxiv_eprint', WmM4)",
"def czJf(r0fU, Ghho='yes'):\n nBOk = r0fU.fields('037__')\n UVpo = r0fU.fields('088__')\n k4NM = nBOk\n k4NM.extend(UVpo)\n ipwY = [mLGw.get('a... | [
"0.64630973",
"0.55259913",
"0.53447235",
"0.5315425",
"0.5123522",
"0.51023227",
"0.49635324",
"0.4954022",
"0.47878286",
"0.46937022",
"0.46399114",
"0.4552185",
"0.44967413",
"0.44939753",
"0.44826233",
"0.44804487",
"0.44750586",
"0.44402143",
"0.44062522",
"0.4396251",
"... | 0.765578 | 0 |
HEP.HEPObject.DesyBookkeeping Returns an array of objects containing the value corresponding to the key hepjsonrecord['metadata']['_desy_bookkeeping'] | def DQpP(YKHO, WmM4=[{}]):
jbXL = YKHO.data.get('metadata', {}).get('_desy_bookkeeping', WmM4)
return [mHCs.DesyBookkeepingObject(YRbF) for YRbF in jbXL] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UXcY(YKHO):\n return [YRbF for YRbF in YKHO.decisions.keys()]",
"def upgn(YKHO, QIv9=False):\n XJob = 0\n while True:\n bTKY = YKHO.get_deputy(XJob, QIv9)\n if bTKY != {}:\n yield bTKY\n XJob += 1",
"def WzPj(YKHO, WmM4=[{}]):\n jbXL = YKHO.data.get('metadata', {... | [
"0.51091325",
"0.4956099",
"0.4778483",
"0.46842393",
"0.46654856",
"0.44652015",
"0.44588634",
"0.4407001",
"0.44030765",
"0.4364127",
"0.43436027",
"0.43386763",
"0.43116006",
"0.4306483",
"0.4297046",
"0.42789653",
"0.42562807",
"0.42562807",
"0.42307097",
"0.4204485",
"0.... | 0.7226731 | 0 |
HEP.HEPObject.FacetInspireDocType Returns a string containing the value corresponding to the key hepjsonrecord['metadata']['facet_inspire_doc_type'] | def tlLC(YKHO, WmM4=None):
return YKHO.data.get('metadata', {}).get('facet_inspire_doc_type', [WmM4]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jSJG(YKHO):\n Jnxm = Zmkp(YKHO.record, 'document_type[0]')\n return YKHO.INSPIRE_DOCTYPE_TO_ORCID_TYPE[Jnxm]",
"def lJse(YKHO, WmM4=[None]):\n return YKHO.data.get('metadata', {}).get('document_type', WmM4)",
"def XV9O(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'document_type')",
... | [
"0.54096705",
"0.519106",
"0.5108564",
"0.5061391",
"0.5061391",
"0.5061391",
"0.5061391",
"0.5061391",
"0.4974735",
"0.49550152",
"0.49070773",
"0.49005374",
"0.48473096",
"0.4787388",
"0.47641906",
"0.475992",
"0.47450444",
"0.4729067",
"0.4705427",
"0.46774548",
"0.4658718... | 0.76018506 | 0 |
HEP.HEPObject.InspireCategories Returns an array of objects containing the value corresponding to the key hepjsonrecord['metadata']['inspire_categories'] | def K0_U(YKHO, WmM4=[{}]):
jbXL = YKHO.data.get('metadata', {}).get('inspire_categories', WmM4)
return [mHCs.InspireFieldObject(YRbF) for YRbF in jbXL] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeZt(YKHO):\n return YKHO._data['categories']",
"def p7MF(YKHO):\n Aofo = []\n for Ghho in YKHO.categories:\n Aofo.extend(Ghho.get_hcr_records())\n return Aofo",
"def LQuW():\n LeZt = P4t4.preprocessed.uniq_categs\n Aofo = {'success': True, 'data': {'categories': LeZt}}\n return... | [
"0.5627523",
"0.5378921",
"0.5270243",
"0.5258407",
"0.5219558",
"0.51832426",
"0.5155654",
"0.51469207",
"0.5146772",
"0.51454675",
"0.51310414",
"0.5124729",
"0.512434",
"0.51103467",
"0.5104577",
"0.50789124",
"0.50622624",
"0.5054296",
"0.50426966",
"0.5035662",
"0.503071... | 0.75960416 | 0 |
HEP.HEPObject.Licenses Returns an array of objects containing the value corresponding to the key hepjsonrecord['metadata']['license'] | def lWZB(YKHO, WmM4=[{}]):
jbXL = YKHO.data.get('metadata', {}).get('license', WmM4)
return [mHCs.LicenseObject(YRbF) for YRbF in jbXL] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FKUO() -> x1iM[GySg[str, str]]:\n hlel = Yn3K.check_output(['pip-licenses', '--format', 'json'])\n return qQXR.loads(hlel)",
"def qwgq(ZDOt):\n CuxP = {}\n cdZN = X63S()\n VECZ = cdZN.get_ledger_entries()\n for bTKY in VECZ:\n try:\n x6B_ = qQXR.loads(str(bTKY.contents))\n... | [
"0.67913854",
"0.6778253",
"0.6767952",
"0.6536401",
"0.63911843",
"0.6324092",
"0.61998636",
"0.61737275",
"0.6102567",
"0.58961165",
"0.5862749",
"0.58567077",
"0.5854224",
"0.5852226",
"0.5825481",
"0.5795677",
"0.57283086",
"0.56559587",
"0.56453127",
"0.56394285",
"0.563... | 0.7133877 | 0 |
HEP.HEPObject.PreprintDate Returns a string containing the value corresponding to the key hepjsonrecord['metadata']['preprint_date'] | def yLcZ(YKHO, WmM4=None):
return YKHO.data.get('metadata', {}).get('preprint_date', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JtE3(YKHO):\n if 'hireDate' in YKHO._prop_dict:\n return qcWV.strptime(YKHO._prop_dict['hireDate'].replace('Z', ''), '%Y-%m-%dT%H:%M:%S.%f')\n else:\n return None",
"def iM9r(YKHO, nPrm):\n return YKHO.input['start_date'].date().strftime('%Y%m%d')",
"def cBYs():\n aj9W = cuiw.quer... | [
"0.60313094",
"0.5774638",
"0.57018834",
"0.5668274",
"0.56650627",
"0.565743",
"0.5612504",
"0.5605423",
"0.5568452",
"0.5517101",
"0.54812115",
"0.5477579",
"0.54647607",
"0.5439186",
"0.5435751",
"0.5395102",
"0.536371",
"0.5335809",
"0.5311932",
"0.53085726",
"0.52765816"... | 0.7621937 | 0 |
HEP.HEPObject.Refereed Returns a boolean with the value corresponding to the key hepjsonrecord['metadata']['refereed'] | def kXjf(YKHO, WmM4=None):
return YKHO.data.get('metadata', {}).get('refereed', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m338(YKHO, Fxhz):\n return bool(set(Fxhz).intersection(YKHO.ref_markers))",
"def n2Rb(YKHO):\n return YKHO._get_attribute('isFlowStatLearnedInformationRefreshed')",
"def CK20(BWXx):\n return isinstance(BWXx, Ky4Y)",
"def wJFY(YKHO):\n return YKHO._get_attribute('isDescriptionStatLearnedInform... | [
"0.57359123",
"0.572561",
"0.56717217",
"0.5567055",
"0.5511739",
"0.55067545",
"0.5462391",
"0.5460812",
"0.5454692",
"0.53906107",
"0.5350606",
"0.5254735",
"0.5248232",
"0.52228117",
"0.5137856",
"0.5130294",
"0.5087933",
"0.50805193",
"0.50615096",
"0.50333315",
"0.503216... | 0.6720755 | 0 |
HEP.HEPObject.References Returns an array of objects containing the value corresponding to the key hepjsonrecord['metadata']['references'] | def DopH(YKHO, WmM4=[{}]):
jbXL = YKHO.data.get('metadata', {}).get('references', WmM4)
return [mHCs.ReferenceObject(YRbF) for YRbF in jbXL] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z3LN(YKHO):\n return YKHO.header('References', '').split()",
"def z3LN(xORj):\n P6bq = WmKn.objects.filter(md5=xORj).first()\n if not P6bq:\n eTsH(404)\n KPF2 = False\n UHFx = GCJK.count('page', filter={'md5': xORj})\n if UHFx > 0:\n KPF2 = True\n XgyP = FLGC.objects.filter... | [
"0.67505085",
"0.64830774",
"0.62343276",
"0.6119095",
"0.60968447",
"0.6018825",
"0.59245414",
"0.59164673",
"0.5902145",
"0.58874375",
"0.58685356",
"0.5783092",
"0.5751134",
"0.57002884",
"0.56623894",
"0.56338125",
"0.5628534",
"0.5622246",
"0.55706495",
"0.5563987",
"0.5... | 0.73244035 | 0 |
HEP.HEPObject.Titles Returns an array of objects containing the value corresponding to the key hepjsonrecord['metadata']['titles'] | def DBl7(YKHO, WmM4=[{}]):
jbXL = YKHO.data.get('metadata', {}).get('titles', WmM4)
return [mHCs.TitleObject(YRbF) for YRbF in jbXL] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def isKK(duY0):\n return [wphz['album'] for wphz in duY0]",
"def Upwb(YKHO):\n return [YRbF['title'] for YRbF in YKHO]",
"def myZn(Ux0P):\n with open(Ux0P) as eHNT:\n N5Pj = m6_J.DictReader(eHNT, fieldnames=['title', 'year'])\n k1TJ = list(N5Pj)\n return k1TJ",
"def iHjR(YKHO):\... | [
"0.69731784",
"0.6660475",
"0.6517752",
"0.6240427",
"0.59929657",
"0.5931605",
"0.5891732",
"0.58396065",
"0.58335537",
"0.57803214",
"0.56691855",
"0.5664142",
"0.5627286",
"0.56235963",
"0.5541569",
"0.55407566",
"0.55390805",
"0.54843134",
"0.54457885",
"0.5413636",
"0.53... | 0.7402069 | 0 |
HEP.AcquisitionSourceObject.DateTime Returns a string containing the value corresponding to the key 'datetime' | def cJ1g(YKHO, WmM4=None):
return YKHO.data.get('datetime', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qcWV(YKHO):\n return YKHO._datetime",
"def Z4Xa(YKHO, tTpl, mWFP):\n wEf2 = tTpl.get(mWFP)\n tCto = qcWV.strptime(wEf2, '%Y-%m-%dT%H:%M:%S')\n return tCto.strftime('%Y%m%d%H%M%S')",
"def slWZ(YKHO, qcWV):\n return qcWV.date()",
"def UnfG(YKHO):\n return aGMJ(YKHO.field.dateTime())",
"... | [
"0.6618855",
"0.6593948",
"0.6345898",
"0.63304937",
"0.62663305",
"0.6230253",
"0.6201689",
"0.6195972",
"0.6165442",
"0.6101197",
"0.6056088",
"0.6051409",
"0.60270774",
"0.59836715",
"0.5903303",
"0.5893681",
"0.58897984",
"0.58897984",
"0.58897984",
"0.58897984",
"0.58784... | 0.64963645 | 2 |
HEP.AcquisitionSourceObject.Email Returns a string containing the value corresponding to the key 'email' | def GPrQ(YKHO, WmM4=None):
return YKHO.data.get('email', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3lj(YKHO):\n return YKHO._dict.get('email')",
"def RC0X(YKHO):\n return YKHO.reference[XMvj][NNfF]",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def D3lj(YKHO) -> str:\n return qe4Y.get(YKHO, 'email')",
"def w7... | [
"0.7775586",
"0.74331504",
"0.73852754",
"0.73852754",
"0.73852754",
"0.727929",
"0.72407115",
"0.723567",
"0.723049",
"0.7180283",
"0.7173625",
"0.7173625",
"0.7173625",
"0.7173625",
"0.71301746",
"0.71301746",
"0.71301746",
"0.71301746",
"0.71193135",
"0.7118403",
"0.710112... | 0.71445435 | 14 |
HEP.AcquisitionSourceObject.InternalUID Returns an integer containing the value corresponding to the key 'internal_uid' | def Z6vy(YKHO, WmM4=None):
return YKHO.data.get('internal_uid', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FXiA(YKHO) -> str:\n return qe4Y.get(YKHO, 'internal_id')",
"def PObu(YKHO):\n return YKHO.primary_header['WOD unique cast number']",
"def PObu(YKHO):\n return YKHO._serial_number",
"def PObu(YKHO):\n return gMdk(YKHO.tag('uid'))",
"def fRFe(YKHO):\n return YKHO._uid",
"def fRFe(YKHO):... | [
"0.69356",
"0.659793",
"0.65299076",
"0.6460804",
"0.62395644",
"0.62395644",
"0.6188592",
"0.61584574",
"0.61584574",
"0.61481893",
"0.6146356",
"0.61257243",
"0.61108047",
"0.6099596",
"0.6099596",
"0.6099596",
"0.6044039",
"0.60074586",
"0.6001655",
"0.5973609",
"0.5946206... | 0.7566943 | 0 |
HEP.AuthorObject.FullName Returns a string containing the value corresponding to the key 'full_name' | def rqJL(YKHO, WmM4=None):
return YKHO.data.get('full_name', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RkjB(YKHO, YEnM):\n return YEnM.author.get_full_name()",
"def taDc(YKHO):\n return YKHO._data.get('author', None)",
"def jeLr(YKHO):\n return YKHO._fullname",
"def taDc(YKHO) -> str:\n return qe4Y.get(YKHO, 'author')",
"def eHMM(YKHO, YEnM: User) -> str:\n return YEnM.get_full_name()",
... | [
"0.78495353",
"0.67774147",
"0.67648214",
"0.6725801",
"0.6700805",
"0.6659894",
"0.6645326",
"0.66049576",
"0.65991074",
"0.6595552",
"0.6590049",
"0.6561302",
"0.6558688",
"0.65500927",
"0.65040356",
"0.6494583",
"0.64762235",
"0.64701617",
"0.64645475",
"0.64550847",
"0.64... | 0.6632088 | 8 |
HEP.AuthorObject.UUID Returns a string containing the value corresponding to the key 'uuid' | def S7kj(YKHO, WmM4=None):
return YKHO.data.get('uuid', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxeD(YKHO) -> str:\n return YKHO.obj.uuid",
"async def uuid(YKHO) -> str:\n if not hasattr(YKHO, '_uuid'):\n Aofo = await YKHO.app.sparql.query('\\n SELECT DISTINCT ?o\\n WHERE {\\n <{{uri}}> <http://mu.semte.ch/vocabularies/core/uuid> ?o .\\n ... | [
"0.7221311",
"0.69545937",
"0.6940428",
"0.68965477",
"0.68965477",
"0.68672734",
"0.68672734",
"0.6843015",
"0.68292296",
"0.68292296",
"0.68292296",
"0.68281937",
"0.6698646",
"0.6696938",
"0.6648542",
"0.6537761",
"0.65277475",
"0.65044075",
"0.64666456",
"0.64367855",
"0.... | 0.6674247 | 14 |
HEP.AuthorReducedObject.FullName Returns a string containing the value corresponding to the key 'full_name' | def rqJL(YKHO, WmM4=None):
return YKHO.data.get('full_name', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RkjB(YKHO, YEnM):\n return YEnM.author.get_full_name()",
"def jeLr(YKHO):\n return YKHO._fullname",
"def eHMM(YKHO):\n return YKHO._full_name",
"def xpqj(YKHO):\n return YKHO.name",
"def flGP(YKHO):\n if YKHO.middle_name:\n return u'%s %s %s' % (YKHO.first_name, YKHO.middle_name, ... | [
"0.72891766",
"0.68866104",
"0.68294305",
"0.67879933",
"0.6730877",
"0.6686969",
"0.6658905",
"0.665852",
"0.66491145",
"0.662785",
"0.6610362",
"0.6604774",
"0.6560567",
"0.6560567",
"0.6560567",
"0.6560567",
"0.6560567",
"0.65028745",
"0.64968324",
"0.6494608",
"0.6487535"... | 0.665415 | 8 |
HEP.DesyBookkeepingObject.Expert Returns a string containing the value corresponding to the key 'expert' | def Wl6u(YKHO, WmM4=None):
return YKHO.data.get('expert', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cFbW(YKHO, CBIr):\n if CBIr.is_anonymous():\n return oCKM\n t4pH = oCKM\n if YKHO.is_expert(CBIr):\n t4pH = YKHO.expert_set.filter(user=CBIr)[0].score\n if YKHO.parent:\n t4pH += YKHO.parent.get_expertise(CBIr) * Gg1H\n return t4pH",
"def D10g(YKHO) -> int:\n return YKH... | [
"0.5762847",
"0.5522898",
"0.5512231",
"0.5320352",
"0.5282986",
"0.5271331",
"0.5264249",
"0.5217158",
"0.52130574",
"0.5177951",
"0.51694494",
"0.5064532",
"0.5051328",
"0.50347435",
"0.5001117",
"0.49892867",
"0.4966019",
"0.49454343",
"0.492891",
"0.4921074",
"0.4896501",... | 0.7702544 | 0 |
HEP.DesyBookkeepingObject.Status Returns a string containing the value corresponding to the key 'status' | def EloR(YKHO, WmM4=None):
return YKHO.data.get('status', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n return pIqh[YKHO._get_property_(YKHO.STATUS).upper()]",
"def jGRS(YKHO):\n return O6qs[YKHO.fields['status']]",
"def jGRS(YKHO):\n return YKHO.get(YKHO._names['status'])",
"def jGRS(YKHO):\n return YKHO._data['status']",
"def jGRS(YKHO) -> str:\n return qe4Y.get(YKHO, 'stat... | [
"0.81825423",
"0.81317794",
"0.8031374",
"0.7942066",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
"0.78121203",
... | 0.0 | -1 |
HEP.InstitutionObject.Name Returns a string containing the value corresponding to the key 'name' | def av29(YKHO, WmM4=None):
return YKHO.data.get('name', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._data['name']",
"def mWFP(YKHO):\n return YKHO.data['name']",
"def mWFP(YKHO):\n return YKHO['name']",
"def mWFP(YKHO) -> str:\n return YKHO._raw_result['name']",
"def mWFP(YKHO) -> str:\n return YKHO.data['name']",
"def mWFP(YKHO):\n return YKHO._data.get(... | [
"0.7269371",
"0.7207271",
"0.71607244",
"0.71107453",
"0.70954955",
"0.69867927",
"0.69867927",
"0.69809985",
"0.6918064",
"0.6918064",
"0.6887361",
"0.686778",
"0.68400216",
"0.68400216",
"0.68400216",
"0.68400216",
"0.68400216",
"0.68400216",
"0.68400216",
"0.68400216",
"0.... | 0.0 | -1 |
HEP.PublicationInfoObject.ConfAcronym Returns a string containing the value corresponding to the key 'conf_acronym' | def PMtG(YKHO, WmM4=None):
return YKHO.data.get('conf_acronym', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ptdX(YKHO, Fv2L):\n return Fv2L['conf_json'][0]['title']",
"def jwTg(Co34, _kTi):\n return clDa(Co34, _kTi, 'abbreviations')",
"def uaNC(YKHO):\n return YKHO._abbreviation",
"def uaNC(YKHO):\n return YKHO._abbreviation",
"def hhbf(kGBd):\n Fv2L = ''\n for jzdc in kGBd:\n if jzd... | [
"0.6278628",
"0.6041024",
"0.57378703",
"0.56934905",
"0.55002725",
"0.54936796",
"0.53631675",
"0.5289115",
"0.5236102",
"0.52015615",
"0.5143907",
"0.5133274",
"0.5080298",
"0.50757605",
"0.5066578",
"0.50488317",
"0.5038925",
"0.5010426",
"0.5007651",
"0.49840906",
"0.4974... | 0.8273445 | 0 |
HEP.PublicationInfoObject.PageEnd Returns a string containing the value corresponding to the key 'page_end' | def zPuC(YKHO, WmM4=None):
return YKHO.data.get('page_end', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R32r(*qIxc, **B2fa):\n return nAU3.DC_EndPage(*qIxc, **B2fa)",
"def zSyx(YKHO):\n YKHO._npos = YKHO._npages - 1\n YKHO.display()",
"def R32r(*qIxc, **B2fa):\n return nAU3.GraphicsContext_EndPage(*qIxc, **B2fa)",
"def zSyx(YKHO):\n YKHO._pos = YKHO._npages - 1\n YKHO._display()",
"def ... | [
"0.67006034",
"0.6316095",
"0.618355",
"0.6100649",
"0.60963905",
"0.60948616",
"0.6071321",
"0.6033795",
"0.6023109",
"0.5964854",
"0.5944876",
"0.59259486",
"0.58685243",
"0.5689284",
"0.5689284",
"0.56847113",
"0.5671886",
"0.56716466",
"0.56069094",
"0.55284005",
"0.55103... | 0.7654513 | 0 |
HEP.PublicationInfoObject.ParentReportNumber Returns a string containing the value corresponding to the key 'parent_report_number' | def xu7o(YKHO, WmM4=None):
return YKHO.data.get('parent_report_number', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def liAY(YKHO) -> str:\n return YKHO.get_main_information()['ParentSeries']",
"def H7rZ(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'parent_id')",
"def H7rZ(YKHO) -> str:\n return YKHO._db_data.parent_id",
"def P8up(YKHO):\n return YKHO.to_header()['traceparent']",
"def pNKj(YKHO, WmM4={... | [
"0.63374156",
"0.63271445",
"0.62883013",
"0.6263952",
"0.6166895",
"0.61415005",
"0.60410494",
"0.60410494",
"0.58790886",
"0.58753693",
"0.58378696",
"0.5831786",
"0.5831786",
"0.5816412",
"0.5815797",
"0.5783323",
"0.57631063",
"0.5756111",
"0.5716508",
"0.5716508",
"0.569... | 0.8407407 | 0 |
HEP.PublicationInfoReducedObject.PageEnd Returns a string containing the value corresponding to the key 'page_end' | def zPuC(YKHO, WmM4=None):
return YKHO.data.get('page_end', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R32r(*qIxc, **B2fa):\n return nAU3.DC_EndPage(*qIxc, **B2fa)",
"def zSyx(YKHO):\n YKHO._npos = YKHO._npages - 1\n YKHO.display()",
"def q0ht(YKHO):\n return YKHO._end",
"def Os4s(YKHO):\n if 'end' in YKHO._prop_dict:\n if isinstance(YKHO._prop_dict['end'], tKe4):\n return... | [
"0.6591041",
"0.6220588",
"0.61138195",
"0.60784376",
"0.60633093",
"0.6049796",
"0.60415643",
"0.5976694",
"0.5968001",
"0.5963182",
"0.59498703",
"0.5947582",
"0.5910956",
"0.5789145",
"0.5705437",
"0.5635539",
"0.56240124",
"0.56240124",
"0.56161666",
"0.5550527",
"0.55480... | 0.75416845 | 1 |
HEP.RecordFile.Bucket Returns a string containing the value corresponding to the key 'bucket' | def FIO_(YKHO, WmM4=None):
return YKHO.data.get('bucket', WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WE7e(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'bucket')",
"def WE7e(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'bucket')",
"def l7rj(YKHO) -> str:\n return YKHO._values.get('bucket_name')",
"def WE7e(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'bucket')",
"def WE7e(Y... | [
"0.79568624",
"0.79568624",
"0.75529927",
"0.7535211",
"0.7535211",
"0.7535211",
"0.7535211",
"0.7535211",
"0.74644256",
"0.74644256",
"0.7430683",
"0.7430683",
"0.732821",
"0.7325701",
"0.7279994",
"0.7222",
"0.72127545",
"0.7181015",
"0.71588564",
"0.71588564",
"0.7135984",... | 0.7197918 | 17 |
HEP.ReferenceHEPObject.DocumentType Returns a string containing the value corresponding to the key 'document_type' | def lJse(YKHO, WmM4='article'):
return YKHO.data.get('document_type', [{}]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lJse(YKHO, WmM4=[None]):\n return YKHO.data.get('metadata', {}).get('document_type', WmM4)",
"def XV9O(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'document_type')",
"def t1IH(YKHO):\n uRP3, Fg5l = Hy7s.path.splitext(YKHO.sourceFileName)\n SAMb = None\n for YJCC in list(nGo7.KNOW... | [
"0.76880777",
"0.7638122",
"0.73682964",
"0.66018033",
"0.6591659",
"0.64802676",
"0.6420454",
"0.63653225",
"0.63532454",
"0.63532454",
"0.63532454",
"0.63532454",
"0.63532454",
"0.6344297",
"0.6272494",
"0.6272494",
"0.6272494",
"0.6272494",
"0.6272494",
"0.6272494",
"0.627... | 0.7354911 | 3 |
HEP.ReferenceObject.Reference Returns an object containing the value corresponding to the key 'reference' | def FLGC(YKHO, WmM4={}):
return mHCs.ReferenceHEPObject(YKHO.data.get('reference', WmM4)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LyJ3(YKHO):\n return YKHO._reference",
"def YqeV(YKHO):\n return YKHO.__readFromRegister(YKHO.__REG_RW_REFERENCE, 255)",
"def kst4(YKHO):\n return {1: 2, 'key1': 'value1', 'key2': (1, 2, 3)}",
"def CXnN(YKHO, bf9h):\n while bf9h in YKHO.reference_map:\n bf9h = YKHO.reference_map[bf9h]\... | [
"0.7273775",
"0.70435184",
"0.6954945",
"0.69208664",
"0.689753",
"0.680626",
"0.680626",
"0.6803598",
"0.6390596",
"0.6275421",
"0.62331754",
"0.6206865",
"0.6201469",
"0.6154476",
"0.61456776",
"0.614438",
"0.60001075",
"0.5976887",
"0.59592986",
"0.5945731",
"0.5938286",
... | 0.7524643 | 0 |
Extract features from a sentence represented as a list of words. Includes a flag add_to_indexer to | def carQ(YKHO, h4Q0: List[str], VmYh: bool=False) -> x1iM[int]:
raise Exception("Don't call me, call my subclasses") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def carQ(YKHO, h4Q0: List[str], VmYh: bool) -> x1iM[int]:\n raise Exception(\"Don't call me, call my subclasses\")",
"def P7DM(YKHO, yAmx):\n ro8m = YKHO.configFeatures\n ojI6 = []\n for iM5j in range(len(yAmx)):\n HhCM = len(ro8m)\n rzwQ = HhCM // 2\n C6zc = range(-rzwQ, rzwQ + ... | [
"0.73981774",
"0.70589924",
"0.6698269",
"0.6627903",
"0.6610931",
"0.65845233",
"0.6555251",
"0.65412",
"0.65121424",
"0.64885664",
"0.64870423",
"0.6476021",
"0.647495",
"0.6448333",
"0.6411864",
"0.6353861",
"0.63180214",
"0.6317946",
"0.62816715",
"0.62767404",
"0.6273300... | 0.7379542 | 1 |
Get the PHP version number. | def RrFl(YKHO) -> dict:
j8eK = f'{YKHO.uri}/'
geh0 = YKHO.request(uri=j8eK)
XcGs = geh0.json()
return {'php_version': XcGs['configuration']['php']['version']} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pNGv() -> int:\n return 0",
"def kaPv():\n return 1",
"def DpZH():\n return '%d.%d' % (HwRy.version_info[0], HwRy.version_info[1])",
"def kaPv():\n return BtDU",
"def M4rz(pTn1, YBcr=None):\n if YBcr:\n return pTn1.space.w_False\n return pTn1.config.get_ini_w('php_version')",
... | [
"0.7549596",
"0.7539556",
"0.7427166",
"0.7424961",
"0.7415291",
"0.7345674",
"0.7345674",
"0.7345674",
"0.73090196",
"0.72999346",
"0.7292751",
"0.7290842",
"0.7290842",
"0.7227754",
"0.7218423",
"0.7205149",
"0.7170386",
"0.7160577",
"0.7153675",
"0.7128294",
"0.70863354",
... | 0.7571268 | 0 |
cumulative bivariate standard normal distribution | def QRDc(AjzU, _sQW, oZuG):
import statsmodels.sandbox.distributions.extras as qVE2
dkQ6 = 0.0
EjYV = 1.0
CN9P = [AjzU, _sQW]
Ty9i = EjYV
yGTL = dkQ6
S0Fi = ([Ty9i, oZuG], [oZuG, Ty9i])
return qVE2.mvnormcdf(CN9P, yGTL, S0Fi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XA7A(epBp):\n from math import exp\n kYGz = +0.31938153\n ftz7 = -0.356563782\n _2fo = +1.781477937\n BZh4 = -1.821255978\n CH56 = +1.330274429\n XP5J = +0.2316419\n Z9rn = +0.39894228\n if epBp >= 0.0:\n a1PO = 1.0 / (1.0 + XP5J * epBp)\n return 1.0 - Z9rn * exp(-epBp ... | [
"0.7586025",
"0.7051234",
"0.69057137",
"0.6856838",
"0.6717602",
"0.6679886",
"0.65551955",
"0.65118706",
"0.64714265",
"0.6382627",
"0.6380812",
"0.63332224",
"0.6331732",
"0.6306447",
"0.627971",
"0.62638915",
"0.62557536",
"0.62557536",
"0.62557536",
"0.62557536",
"0.6255... | 0.5934698 | 45 |
Returns an abbreviated name of 'length' characters | def GlEW(YKHO, u54L=3):
if len(YKHO.short) == u54L:
return YKHO.short
KCHu = str(YKHO)
if len(KCHu) < u54L:
YKHO.short = KCHu + ' ' * (u54L - len(KCHu))
return YKHO.short
Mkmy = []
c02C = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
for Npgh in KCHu:
if Npgh in c02C:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y14y(u54L):\n mWFP = ''.join(tuKI.choices(vIwR.ascii_lowercase, k=u54L))\n EAFi = mWFP.capitalize()\n return EAFi",
"def o1wa(BcCR):\n\n def YvCu(l5Ny):\n if len(l5Ny) <= BcCR:\n return l5Ny\n else:\n return l5Ny[:BcCR - 3] + '...'\n return YvCu",
"def eWA... | [
"0.75804824",
"0.74979955",
"0.7122115",
"0.7101127",
"0.7090305",
"0.707713",
"0.70266324",
"0.69452465",
"0.6944599",
"0.68276674",
"0.68134385",
"0.6804719",
"0.67037725",
"0.66839355",
"0.6628737",
"0.6542777",
"0.65067285",
"0.64929587",
"0.6487084",
"0.6484433",
"0.6481... | 0.78075564 | 0 |
Test invalid input type of char. Invalid | def ifAL(YKHO):
Aofo = tWmf('A', 'A', 'A', 'A')
YKHO.assertEqual(Aofo, 'invalid') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zabs(hcXw):\n if hcXw is None:\n return False\n if hcXw == '\\x00':\n return False\n return True",
"def LGL6(fZOT):\n if len(fZOT) == 0:\n return True\n return False",
"def cGC2(YKHO, hcXw: str) -> bool:\n if hcXw.isdigit():\n raise ValueError(\"Characters can'... | [
"0.77894497",
"0.74047905",
"0.73173815",
"0.7316064",
"0.7114759",
"0.7083789",
"0.6901848",
"0.6734456",
"0.6697887",
"0.66435784",
"0.6636018",
"0.66344243",
"0.6617422",
"0.661457",
"0.66034985",
"0.6581647",
"0.6570918",
"0.65695614",
"0.6565621",
"0.6546016",
"0.6506755... | 0.5946828 | 83 |
Check for rectangle return. In sides. | def X3xd(YKHO):
Aofo = tWmf(1, 2, 1, 2)
YKHO.assertEqual(Aofo, 'rectangle') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pQQJ(YKHO, WKvO, LVAh):\n if YKHO.pos.x - YKHO.width < WKvO < YKHO.pos.x + YKHO.width and YKHO.pos.y - YKHO.height < LVAh < YKHO.pos.y + YKHO.height:\n return True",
"def aCdo(WKvO, LVAh):\n return YKHO.min_x <= WKvO <= YKHO.max_x and YKHO.min_y <= LVAh <= YKHO.max_y",
"def aCdo(mawX, AU8u):\n... | [
"0.7438624",
"0.72407365",
"0.70488906",
"0.6972503",
"0.68300915",
"0.6793567",
"0.67255056",
"0.67100924",
"0.6670065",
"0.6662908",
"0.66099846",
"0.66016006",
"0.6578844",
"0.6569403",
"0.6563947",
"0.65634966",
"0.6560435",
"0.6542578",
"0.6526674",
"0.65054345",
"0.6501... | 0.6238892 | 37 |
The /about/ page should load without errors. | def EK_A(YKHO):
geh0 = YKHO.client.get(gxEw('about'))
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nLSe(YKHO):\n bD7m = '/about'\n Ylbp = YKHO.app.get(bD7m, follow_redirects=True)\n YXxD = 'There should be an about page'\n assert 'About' in Ylbp.data, YXxD",
"def vw2I(YKHO):\n geh0 = YKHO.client.get(nKyW('about'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def bFB0(YKHO):\n geh0 =... | [
"0.8089778",
"0.80485237",
"0.7921579",
"0.7809068",
"0.7783226",
"0.77823067",
"0.7755425",
"0.77472955",
"0.7701709",
"0.76700467",
"0.75427705",
"0.7441477",
"0.73972833",
"0.7373095",
"0.73429656",
"0.73356056",
"0.733354",
"0.73108083",
"0.7306286",
"0.73058784",
"0.7284... | 0.7722519 | 8 |
Takes a function as an input with a specific interval xrange then creates a list with the output ypoints. Inefficient, but useful if f is a simple math function not involving NumPy. | def jcwm(eHNT, Ni9Y):
yvT9 = []
for WKvO in Ni9Y:
yvT9.append(eHNT(WKvO))
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def buaL(eHNT, Ni9Y, D7KI):\n qcUr = 0\n nhBs = (max(Ni9Y) - min(Ni9Y)) / D7KI\n _GFU = oyIN.linspace(min(Ni9Y), max(Ni9Y), D7KI)\n for WKvO in _GFU:\n qcUr += eHNT(WKvO)\n return nhBs * qcUr",
"def COkK(eHNT, LVAh, Jw7X, range):\n WKvO = min(range)\n hWgF = [LVAh]\n cpKX = [WKvO]\... | [
"0.6254834",
"0.6225927",
"0.61627483",
"0.6153063",
"0.60484535",
"0.59041905",
"0.58831155",
"0.5853075",
"0.57472736",
"0.5692097",
"0.5643448",
"0.5626075",
"0.56205726",
"0.557112",
"0.5553055",
"0.5502757",
"0.54955226",
"0.5494875",
"0.549164",
"0.5477244",
"0.5451032"... | 0.6330015 | 0 |
A utility function to extract a number of elements from a list, leaving only a certain subset. Generates a new list with just the subset. Creates the subset by specifying a subinterval. | def mDTy(IqQl, J7Rf):
yvT9 = []
sJDd = J7Rf
for YRbF in IqQl:
if sJDd == J7Rf:
yvT9.append(YRbF)
sJDd = 0
else:
sJDd += 1
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ovra(ybN4, exwG, a1PO):\n if a1PO < 1 or a1PO > exwG:\n raise Exception(f't={a1PO} is not accept, must be 1-N (include)')\n if exwG > len(ybN4):\n if a1PO <= len(ybN4):\n return [ybN4[a1PO - 1]]\n else:\n return None\n r8hN = int(len(ybN4) / exwG)\n V_8U =... | [
"0.6790797",
"0.6710092",
"0.6515985",
"0.64593947",
"0.6434004",
"0.63437176",
"0.6251503",
"0.61566764",
"0.6126565",
"0.60856795",
"0.60283417",
"0.5995044",
"0.5991604",
"0.5977968",
"0.5921676",
"0.58842266",
"0.58739257",
"0.5863565",
"0.5848513",
"0.5848513",
"0.584435... | 0.67208046 | 1 |
Contextualize the embeddings for each sentence in the batch. The method takes on input a list of tensors with shape N x , where N is the dynamic sentence length (i.e. can be different for each sentence) and is any number of trailing dimensions, including zero, the same for each sentence. Returns a packed sequence. | def mPII(YKHO, Wc9F: Sequence[Tensor]) -> unC1.PackedSequence:
ueWT = unC1.pack_sequence(Wc9F, enforce_sorted=False)
w4HS, bGrB = YKHO.net(ueWT)
return w4HS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iqrb():\n YRbF = 0\n while len(uAvY) - YRbF >= Ep8u:\n yield oyIN.stack([oyIN.pad(oyIN.stack([KTQ3[id] for id in yAmx[:aILy]]), [[0, aILy - min(len(yAmx), aILy)], [0, 0]], 'constant', constant_values=0) for yAmx in uAvY[YRbF:YRbF + Ep8u]])\n YRbF += Ep8u",
"def P1Xt(YKHO, fUYa):\n UWrr... | [
"0.7096154",
"0.68323",
"0.67534053",
"0.66842335",
"0.6608237",
"0.6573804",
"0.656693",
"0.6534448",
"0.65245944",
"0.65072984",
"0.65072984",
"0.6496808",
"0.6484693",
"0.64245284",
"0.6368144",
"0.63452065",
"0.6320503",
"0.62688565",
"0.6266823",
"0.6264502",
"0.62633324... | 0.61215734 | 29 |
Given a limit n and a base i, finds the largest exponenet x such that i ^ x <= n, and outputs i ^ x. | def DxTY(YRbF, exwG):
WKvO = 1
while YRbF ** WKvO <= exwG:
WKvO += 1
WKvO -= 1
print(YRbF, WKvO, YRbF ** WKvO)
return YRbF ** WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U38K(WKvO, exwG):\n ODP9 = 1\n while ODP9 ** exwG <= WKvO:\n ODP9 *= 2\n gqRb = ODP9 // 2\n while gqRb < ODP9:\n x1fj = (gqRb + ODP9) // 2\n if gqRb < x1fj and x1fj ** exwG < WKvO:\n gqRb = x1fj\n elif ODP9 > x1fj and x1fj ** exwG > WKvO:\n ODP9 = x... | [
"0.7478714",
"0.70266604",
"0.69531524",
"0.6952391",
"0.690052",
"0.6833335",
"0.68218166",
"0.6819668",
"0.67383224",
"0.67011136",
"0.6691567",
"0.6675349",
"0.66352636",
"0.66227996",
"0.6592241",
"0.65889907",
"0.65585876",
"0.65553004",
"0.6512691",
"0.650253",
"0.64945... | 0.84001577 | 0 |
Helper internal method Returns true if we can change an ace from 11 to 1 | def PpmZ():
return KCHu + QHsX.ace.value[0] > 21 and UiMf is True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(YKHO, BZN_):\n return BZN_ > 10 and BZN_ < 89",
"async def check_if_ace(YKHO, S5Ok, uJjO):\n rPlP = ['1', '14', '27', '40']\n eqRd = await YKHO.get_aces_used(uJjO)\n if S5Ok in rPlP and S5Ok not in eqRd:\n eqRd.append(S5Ok)\n await YKHO.set_aces_used(eqRd, uJjO)\n return... | [
"0.6094384",
"0.60785514",
"0.5930625",
"0.58261675",
"0.5800911",
"0.5800619",
"0.5791715",
"0.5791715",
"0.57459867",
"0.5739205",
"0.5736245",
"0.5553645",
"0.5552876",
"0.54749244",
"0.5473795",
"0.5460854",
"0.5451095",
"0.54336375",
"0.5414767",
"0.5380428",
"0.5378753"... | 0.83195096 | 0 |
This function retrieves all headlines from the search retrieved by driver. Driver must be preassigned and opened using return_search. Driver is quit after each iteration. Returns list of headlines. | def _nL6(E_qD, qpDA, nhB8):
wPdp = yxm7(E_qD, qpDA, nhB8)
m0BT = []
exwG = 0
for QZnA in wPdp:
E_qD = HPO4()
try:
while True:
try:
E_qD.get(QZnA)
break
except:
continue
except:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TAeM(qpDA, nhB8):\n m0BT = []\n rOmR = f'https://www.google.co.uk/search?hl=en&as_q=&as_epq=&as_oq=travellers&as_eq=quarantine+travel+train+flight+tourist+archive+airport+covid+coronavirus+hotel+holiday+honeymoon&as_nlo=&as_nhi=&lr=&cr=&as_qdr=all&as_sitesearch={qpDA}&as_occt=title&safe=active&as_filetyp... | [
"0.6978888",
"0.6910584",
"0.68847805",
"0.67749083",
"0.67393386",
"0.6650136",
"0.64237565",
"0.6305853",
"0.623097",
"0.60405976",
"0.60342515",
"0.6029556",
"0.5988117",
"0.5936789",
"0.588422",
"0.58221924",
"0.57586926",
"0.5722062",
"0.55517155",
"0.54750264",
"0.54740... | 0.7840066 | 0 |
Remove any headlines containing exclusionary words. | def ye_V(m0BT, yUkU):
for fdRN in m0BT:
for GIN8 in yUkU:
if fdRN.lower().find(GIN8) != -1:
m0BT.remove(fdRN)
break
return m0BT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cE4S(m0BT, _9pn):\n for YRbF in range(len(m0BT)):\n for GIN8 in _9pn:\n fdRN = m0BT[YRbF].lower()\n oeNL = fdRN.find(GIN8)\n if oeNL != -1:\n mB6j = oeNL + len(GIN8)\n try:\n if fdRN[mB6j + 1] == 's':\n ... | [
"0.6898035",
"0.6308071",
"0.6282704",
"0.6278832",
"0.6195218",
"0.61710405",
"0.61693",
"0.6155328",
"0.6143628",
"0.61322665",
"0.61201805",
"0.6117586",
"0.6110899",
"0.60415274",
"0.6002611",
"0.59911555",
"0.59448016",
"0.5941849",
"0.59299976",
"0.5922946",
"0.59214836... | 0.8346897 | 0 |
Extract negative headlines that include negative words. Inputs are get_headlines() data and words (list of strings). Returns list of headlines with negative words. | def XvTH(m0BT, V22M):
gMrS = []
for fdRN in m0BT:
for GIN8 in V22M:
if fdRN.lower().find(GIN8) != -1:
gMrS.append(fdRN)
break
return gMrS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pHjB(nPrm):\n\n def PFtR(nPrm):\n\n def D0n1(m8z6):\n Wswm = Gpii()\n Bdb1 = 0\n m8z6 = ZbWC.findall('\\\\b\\\\w[\\\\w-]*\\\\b', m8z6.lower())\n for GIN8 in m8z6:\n if Wswm.polarity_scores(GIN8)['compound'] <= -0.5:\n Bdb1 ... | [
"0.6349977",
"0.6246985",
"0.60577476",
"0.6012407",
"0.58237606",
"0.5745377",
"0.56684536",
"0.56411093",
"0.55823076",
"0.5574541",
"0.55741763",
"0.55665135",
"0.5555391",
"0.55446666",
"0.55446666",
"0.55446666",
"0.55446666",
"0.55249596",
"0.55183995",
"0.54977405",
"0... | 0.84599596 | 0 |
Remove any word in removal_words that is found in each headline in headlines. This is so words like "Travellers" don't appear in the word map. Returns motified headlines. | def cE4S(m0BT, _9pn):
for YRbF in range(len(m0BT)):
for GIN8 in _9pn:
fdRN = m0BT[YRbF].lower()
oeNL = fdRN.find(GIN8)
if oeNL != -1:
mB6j = oeNL + len(GIN8)
try:
if fdRN[mB6j + 1] == 's':
QBYT = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ye_V(m0BT, yUkU):\n for fdRN in m0BT:\n for GIN8 in yUkU:\n if fdRN.lower().find(GIN8) != -1:\n m0BT.remove(fdRN)\n break\n return m0BT",
"def KtZW(YKHO, V22M):\n rw6h = [yzQ0.strip() for yzQ0 in V22M.split(' ')]\n kgme = []\n for GIN8 in rw6h:\n... | [
"0.68523985",
"0.62996805",
"0.60364926",
"0.60330814",
"0.5940642",
"0.5798099",
"0.5783394",
"0.5638929",
"0.56381005",
"0.5637393",
"0.56209046",
"0.56119895",
"0.5610772",
"0.56091326",
"0.5600459",
"0.557791",
"0.5572793",
"0.55641764",
"0.5547571",
"0.5525597",
"0.55246... | 0.7614397 | 0 |
Pushes the given `probabilities` and actions through all our distributions' `log_prob` APImethods and returns a DataOpDict with the keys corresponding to our `action_space`. | def YavO(YKHO, H5ew, SGPK, xASv):
if YKHO.bounded_action_space[H5ew] is True:
xASv = (xASv - YKHO.action_space.low) / (YKHO.action_space.high - YKHO.action_space.low)
return YKHO.distributions[H5ew].log_prob(SGPK, xASv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HGWP(HU0t, Qabx, xASv):\n\n def dqCW(BFeB, Crrw):\n Crrw = ZylS.maximum(Crrw, 0)\n _0VL = ZylS.stack([ZylS.range(ZylS.shape(Crrw)[0]), Crrw], axis=1)\n return IyQT(ZylS.gather_nd(BFeB, _0VL))\n mW3N, ypc_ = xASv\n gBE6, vTLV = Qabx\n gBE6 = UNOL(HU0t, gBE6)\n _5OX = dqCW(gBE... | [
"0.6406205",
"0.6391938",
"0.6010136",
"0.60094225",
"0.59739757",
"0.5837162",
"0.5815365",
"0.5763777",
"0.57014436",
"0.56229717",
"0.5579087",
"0.55518055",
"0.5526341",
"0.5520606",
"0.5519371",
"0.54951334",
"0.5416847",
"0.5384665",
"0.5314357",
"0.5287201",
"0.5237028... | 0.6144919 | 2 |
Initialise each parameter in each buckingham potential. | def FIMM(YKHO, Crrw, GcB3, jzdc, oZuG, Z9rn):
if not isinstance(Crrw, list) or not all((isinstance(UXqs, str) for UXqs in Crrw)) or len(Crrw) != 2:
raise TypeError('labels should be a list of atoms in the potential. Each of the TWO items should be a string.')
if not isinstance(GcB3, list) or not all((is... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mn6P(YKHO):\n XFBW = 5.0\n jnZV = 45.0\n Ihi3 = 50.0\n CRvg = 45.0\n benC = 0.0\n k25T = 1.0\n OZk9 = 1.0\n YKHO.S = [YKHO.carb_bg_ratio, YKHO.time_to_breakdown, YKHO.insulin_bg_ratio, YKHO.time_to_peak, YKHO.basal_rate, YKHO.digestion_speed, YKHO.activation_speed]",
"def f2sd(YKHO):\... | [
"0.7096628",
"0.6981636",
"0.69252807",
"0.6839191",
"0.6815761",
"0.68155384",
"0.68124574",
"0.67702335",
"0.67602503",
"0.67524904",
"0.6712717",
"0.66752195",
"0.6651205",
"0.66464245",
"0.6615348",
"0.6594098",
"0.6584151",
"0.6570735",
"0.6475891",
"0.6469922",
"0.64680... | 0.0 | -1 |
Returns a dictionary containing the parameters in the nondimensionalised GPE, and a few other useful parameters, such as Pth. Mostly used for calling GPESolver. | def dxFl(YKHO):
RH6t = ['R', 'gamma_C', 'gamma_R', 'g_C', 'g_R', 'k', 'Pth']
F5s2 = RH6t + ['gamma_nl']
fpxj = F5s2 if YKHO.singleComp else RH6t
f5PB = ['charL', 'charT']
yvT9 = {H5ew: YKHO.__dict__[H5ew + '_scaled'] for H5ew in fpxj}
for H5ew in f5PB:
yvT9[H5ew] = YKHO.__dict__[H5ew]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W6RH(YKHO) -> cuzp:\n NArs: cuzp = {}\n NArs['g_leak'] = YKHO.leak.get_g()\n NArs['g_kvhh'] = YKHO.kvhh.get_g()\n NArs['g_cav'] = YKHO.cav.get_g()\n NArs['g_kca'] = YKHO.kca.get_g()\n NArs['g_nap'] = YKHO.nap.get_g()\n NArs['t_ca'] = YKHO.tau_ca\n return NArs",
"def SGPK(YKHO):\n r... | [
"0.6891663",
"0.6820562",
"0.67836195",
"0.66519386",
"0.6642077",
"0.66392636",
"0.65458584",
"0.64959824",
"0.64930344",
"0.64397085",
"0.6432674",
"0.63287413",
"0.63178825",
"0.63002235",
"0.6293422",
"0.6290222",
"0.6281099",
"0.62171054",
"0.6194312",
"0.6159477",
"0.61... | 0.704199 | 0 |
Returns a dictionary with the GPE parameters in useful units. Doesn't include g_R because it's always 2 g_C | def qbIj(YKHO):
yvT9 = {}
yvT9['g_C'] = YKHO.ureg.Quantity(YKHO.g_C, YKHO.gBase).to(YKHO.gOutput)
yvT9['gamma_C'] = YKHO.ureg.Quantity(YKHO.gamma_C, YKHO.gammaBase).to(YKHO.gammaOutput)
yvT9['m'] = YKHO.ureg.Quantity(YKHO.m, YKHO.mBase).to(YKHO.mOutput)
yvT9['charL'] = YKHO.ureg.Quantity(YKHO.charL,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dxFl(YKHO):\n RH6t = ['R', 'gamma_C', 'gamma_R', 'g_C', 'g_R', 'k', 'Pth']\n F5s2 = RH6t + ['gamma_nl']\n fpxj = F5s2 if YKHO.singleComp else RH6t\n f5PB = ['charL', 'charT']\n yvT9 = {H5ew: YKHO.__dict__[H5ew + '_scaled'] for H5ew in fpxj}\n for H5ew in f5PB:\n yvT9[H5ew] = YKHO.__dic... | [
"0.7850718",
"0.68217444",
"0.6816121",
"0.6493574",
"0.6449787",
"0.6404485",
"0.63119984",
"0.6262541",
"0.6209501",
"0.61578035",
"0.61576235",
"0.6048388",
"0.60229266",
"0.6021528",
"0.60084945",
"0.6008468",
"0.59624547",
"0.5955775",
"0.59389216",
"0.5899721",
"0.58855... | 0.66882426 | 3 |