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 |
|---|---|---|---|---|---|---|
This tests the jclist view, ensuring that templates are loaded correctly. This view uses a user with superuser permissions so does not test the permission levels for this view. | def bSdH(YKHO):
VA7R = YKHO.client.get('/journal-club')
YKHO.assertEqual(VA7R.status_code, 200)
YKHO.assertTrue('journal_club_list' in VA7R.context)
YKHO.assertTemplateUsed(VA7R, 'base.html')
YKHO.assertTemplateUsed(VA7R, 'jc-list.html')
YKHO.assertTemplateUsed(VA7R, 'analytics_tracking.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ci56(YKHO):\n im04 = YKHO.app.get('/viewcategory')\n YKHO.assertEqual(im04.status_code, 302, 'viewlist page should not load unless signed in')",
"def Y_vp(YKHO):\n geh0 = razN.as_view()(YKHO.request)\n YKHO.assertEqual(geh0.status_code, 200)",
"def i6af(YKHO):\n VA7R = YKHO.client.get('/pape... | [
"0.68689126",
"0.6572278",
"0.6550239",
"0.64747584",
"0.64244735",
"0.64096004",
"0.64024365",
"0.63962084",
"0.63934314",
"0.6390168",
"0.63770026",
"0.6361745",
"0.6326139",
"0.6250595",
"0.62116224",
"0.6175842",
"0.605871",
"0.60534877",
"0.6006303",
"0.60029066",
"0.600... | 0.7534962 | 0 |
Convert of p value to a color code using a diverging color map, meaning two opposite poles are distinguished from the middle and from each other. higher=True if the observed mean (bar height) is higher than the test mean. | def qVdx(XP5J, xkbO=False):
iMGt = Bcwd.get_cmap('seismic')
return iMGt(kouK(XP5J, xkbO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RlXt(qfpW, tn62):\n for jzdc, Fg_i in tn62:\n if qfpW >= jzdc and qfpW < Fg_i:\n return Fg_i",
"def ZiT0(YKHO, Tuqy='mean', MynD=None, n4wC=None):\n from pylab import clf, xticks, yticks, ZiT0, colorbar, flipud, log10\n if Tuqy == 'mean':\n nPrm = YKHO.get_mean()\n elif T... | [
"0.6033845",
"0.5929055",
"0.58861625",
"0.5847088",
"0.58045423",
"0.5588033",
"0.5586589",
"0.55774224",
"0.5474697",
"0.54477924",
"0.5420866",
"0.5419459",
"0.5380197",
"0.53801894",
"0.53602606",
"0.5349077",
"0.5343383",
"0.5341518",
"0.5334428",
"0.5313867",
"0.5295791... | 0.7469932 | 0 |
return True if n is a prime number | def T1qg(exwG):
if exwG < 2:
return False
if exwG == 2 | exwG == 3:
return True
if exwG % 2 == 0 | exwG % 3 == 0:
return False
for YRbF in range(2, int(PZyS(exwG)) + 1):
if exwG % YRbF == 0:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n return T1qg(exwG)",
"def FBNJ(exwG):\n if exwG % 2 == 0:\n return False\n return all((exwG % YRbF for YRbF in range(3, int(exwG ** 0.5) + 1, 2)))",
"def FBNJ(exwG: int) -> bool:\n if exwG > 1:\n for YRbF in range(2, int(exw... | [
"0.8848491",
"0.8838163",
"0.8630065",
"0.86087567",
"0.860345",
"0.8588974",
"0.8586852",
"0.85864645",
"0.8582361",
"0.85803086",
"0.8576298",
"0.8530761",
"0.8525803",
"0.84985477",
"0.849435",
"0.849369",
"0.8492627",
"0.8485174",
"0.8478475",
"0.8467156",
"0.84513164",
... | 0.8309483 | 41 |
Strip the leading 'f' from the 'funderline' and 'foverstrike' dict D keys. Returns a new dict. Prepares a new dict with standard font attribute keys that can be used to create or modify a Tkinter font. | def CY7z(Csk6):
return {G1Hx[1:] if G1Hx in (CJax, L33A) else G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xS7u(Csk6):\n return {'f' + G1Hx if G1Hx in (NRAT, k6vH) else G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items()}",
"def REPT(Csk6):\n Yube = {u4zn: Ty9i if G1Hx == u4zn else G1Hx for G1Hx, Ty9i in Csk6.items() if G1Hx in gMSp}\n ZvxL = {G1Hx[1:] if G1Hx in (CJax, L33A) else G1Hx: Ty9i for G1Hx, Ty9i in Csk6... | [
"0.70298797",
"0.63934696",
"0.5784403",
"0.5700632",
"0.561567",
"0.55499864",
"0.54290736",
"0.53962106",
"0.53393847",
"0.5336261",
"0.53199905",
"0.53116393",
"0.5281415",
"0.5261497",
"0.52454764",
"0.5211536",
"0.51234704",
"0.5099443",
"0.5096136",
"0.5094325",
"0.5062... | 0.7088782 | 0 |
Return a dict of font attributes for font F. | def xbqa(eHNT):
return gEsI.Font(font=eHNT).actual() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xbqa(*jzdc, **YSA3):\n return xbqa(*jzdc, **YSA3)",
"def FAzY(YKHO) -> dict:\n YKHO._base_font = YKHO.font['name'].names[6].toStr()\n sdCG = YKHO.font['head']\n YKHO.units_per_em = sdCG.unitsPerEm\n NXpY = 1000 / YKHO.units_per_em\n wghQ = sdCG.xMax * NXpY\n FfQu = sdCG.xMin * NXpY\n ... | [
"0.74730724",
"0.69602007",
"0.6700861",
"0.6700861",
"0.6700861",
"0.65566766",
"0.6475081",
"0.6448031",
"0.6367565",
"0.63474965",
"0.6328355",
"0.6328355",
"0.6276222",
"0.6271578",
"0.6190036",
"0.61846054",
"0.6170288",
"0.6078483",
"0.60327715",
"0.60177344",
"0.587516... | 0.8171498 | 0 |
Get config option info from the internal widget used to keep state. | def SfMP(YKHO, MTKo, **B2fa):
IJKK = B2fa.get('cook', True)
q69n = B2fa.get(oWHo, False)
if q69n:
BWXx = YKHO.widget.config(MTKo)[-2]
return BWXx
try:
BWXx = YKHO.widget.cget(MTKo)
except on8l.TclError:
BWXx = None
if IJKK:
if MTKo in (h08d, Ge8B, COSb, pQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def veJe(YKHO):\n return YKHO._opt_method.config",
"def rYVC(YKHO, TEdI):\n y7GR = dict()\n y7GR['state'] = TEdI['state']\n y7GR['fg'] = TEdI['fg']\n y7GR['bg'] = TEdI['bg']\n return y7GR",
"def ypP4(YKHO, exwG):\n VKhi = YKHO.view.options_panel.original_widget.contents()\n return VKhi[... | [
"0.730024",
"0.70098037",
"0.6630041",
"0.66143924",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
"0.66057783",
... | 0.0 | -1 |
Bind to all widgets at an event SEQUENCE a call to function FUNC. An additional boolean parameter ADD specifies whether FUNC will be called additionally to the other bound function or whether it will replace the previous function. See bind for the return value. | def jSlh(YKHO, aWuw=None, JfyU=None, H2v5=None):
return super().bind_all(aWuw, JfyU, H2v5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XkiF(YKHO, aWuw=None, JfyU=None, H2v5=None):\n return YKHO._widget_bind(aWuw, JfyU, H2v5, internal=False)",
"def YH9F(YKHO, aWuw=None, JfyU=None, H2v5=None, **YSA3):\n YOoY = YSA3.get('debug', YKHO.default_debug)\n if YOoY:\n YKHO._print('_WIDGET_BIND({self}, {sequence}, {func}, {add}, **{kw}... | [
"0.7693165",
"0.7222266",
"0.645661",
"0.6357454",
"0.6174125",
"0.6122644",
"0.5983554",
"0.5814096",
"0.58034766",
"0.57443905",
"0.56805885",
"0.56678206",
"0.5640299",
"0.56379724",
"0.5591991",
"0.55774534",
"0.5511707",
"0.55109316",
"0.5502429",
"0.54826534",
"0.542643... | 0.6885231 | 2 |
See help on module method convert_font_dict_to_ttoptions_dict() for more info. | def xS7u(*jzdc, **YSA3):
return xS7u(*jzdc, **YSA3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CY7z(*jzdc, **YSA3):\n return CY7z(*jzdc, **YSA3)",
"def xS7u(Csk6):\n return {'f' + G1Hx if G1Hx in (NRAT, k6vH) else G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items()}",
"def CY7z(Csk6):\n return {G1Hx[1:] if G1Hx in (CJax, L33A) else G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items()}",
"def cMke(YKHO):\n ... | [
"0.85870737",
"0.8015302",
"0.7890632",
"0.66027755",
"0.64634246",
"0.637451",
"0.6002357",
"0.58082384",
"0.56775844",
"0.5582303",
"0.54864246",
"0.54647195",
"0.54149157",
"0.5291586",
"0.5229343",
"0.52052104",
"0.51397294",
"0.5136468",
"0.5106122",
"0.50967175",
"0.505... | 0.8966815 | 0 |
See help on module method convert_ttoptions_dict_to_font_dict() for more info. | def CY7z(*jzdc, **YSA3):
return CY7z(*jzdc, **YSA3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xS7u(*jzdc, **YSA3):\n return xS7u(*jzdc, **YSA3)",
"def CY7z(Csk6):\n return {G1Hx[1:] if G1Hx in (CJax, L33A) else G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items()}",
"def xS7u(Csk6):\n return {'f' + G1Hx if G1Hx in (NRAT, k6vH) else G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items()}",
"def xbqa(eHNT):\n ... | [
"0.8870512",
"0.80991346",
"0.7984105",
"0.68638766",
"0.68179125",
"0.6558356",
"0.60517687",
"0.60045576",
"0.5751478",
"0.56992775",
"0.5575399",
"0.55026853",
"0.5495594",
"0.5452329",
"0.5431746",
"0.5417478",
"0.5397275",
"0.5392449",
"0.53916657",
"0.535098",
"0.532333... | 0.8861002 | 1 |
See help on module method split_dict_into_options_fontattrs_and_case() for more info | def REPT(*jzdc, **YSA3):
return REPT(*jzdc, **YSA3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def REPT(Csk6):\n Yube = {u4zn: Ty9i if G1Hx == u4zn else G1Hx for G1Hx, Ty9i in Csk6.items() if G1Hx in gMSp}\n ZvxL = {G1Hx[1:] if G1Hx in (CJax, L33A) else G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items() if G1Hx in E88u}\n _r8I = {G1Hx: Ty9i for G1Hx, Ty9i in Csk6.items() if G1Hx not in E88u + gMSp}\n ret... | [
"0.8158567",
"0.6146297",
"0.6146184",
"0.612431",
"0.60964656",
"0.56719506",
"0.5402258",
"0.53158045",
"0.5224621",
"0.520008",
"0.5196009",
"0.5192469",
"0.5191934",
"0.51555294",
"0.5132841",
"0.5121578",
"0.50395375",
"0.5033344",
"0.4930688",
"0.48783988",
"0.4848216",... | 0.8819805 | 0 |
Test when a mat is present in both systems that the closest is chosen | def zwZk(YKHO):
r8hN = PziD.Materials('mats_test.json', OjCX())
YKHO.assertEqual('164 G. Canis Majoris', r8hN.closest([0, 0, 0], ['Iron'])[1]['system'])
YKHO.assertEqual('2MASS J10433563-5945136', r8hN.closest([8000, 0, 3000], ['Iron'])[1]['system']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AV7C(YKHO):\n r8hN = PziD.Materials('mats_test.json', OjCX())\n YKHO.assertEqual('164 G. Canis Majoris', r8hN.closest([0, 0, 0], ['Tungsten', 'Germanium'])[1]['system'])\n YKHO.assertEqual('2MASS J10433563-5945136', r8hN.closest([8000, 0, 3000], ['Tungsten', 'Germanium'])[1]['system'])",
"def xXdT(Y... | [
"0.70502865",
"0.68170565",
"0.6539207",
"0.6474658",
"0.60842615",
"0.59941274",
"0.58957547",
"0.5809887",
"0.57292074",
"0.5712595",
"0.5706446",
"0.5617678",
"0.5616232",
"0.5613859",
"0.55955845",
"0.5579897",
"0.55496943",
"0.55332154",
"0.55323607",
"0.5526193",
"0.549... | 0.69867074 | 1 |
Convert quantiles to parameter distribution samples | def tIfJ(YKHO, i2VU, Uu3_):
YKHO._samples = XTiz.zeros((i2VU, Uu3_))
for YRbF, IZxK in enumerate(YKHO.parameter_distributions.values()):
YKHO._samples[:, YRbF] = IZxK.ppf(YKHO._quantiles[:, YRbF]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KduP(EcVT, *, jDK_=..., Xqiw=..., uamv=..., dve0=..., U1hP=..., t3eI=..., jth9=...):\n ...",
"def PLwG(WKvO, tpio):\n WKvO = oyIN.asarray(WKvO, dtype=float)\n if WKvO.ndim == 0:\n WKvO = WKvO[oyIN.newaxis]\n elif WKvO.ndim == 1:\n if tpio == 1:\n WKvO = WKvO[:, oyIN.newax... | [
"0.68211794",
"0.6415406",
"0.64061975",
"0.6368863",
"0.6360626",
"0.6310223",
"0.63034046",
"0.63015264",
"0.63015264",
"0.63015264",
"0.6219652",
"0.61983705",
"0.61857074",
"0.61848336",
"0.6183454",
"0.6149637",
"0.614597",
"0.614434",
"0.614434",
"0.6136265",
"0.6131276... | 0.6143542 | 19 |
Returns the matching end bracket of a start bracket | def GYAh(gTqN):
if gTqN == '(':
return ')'
if gTqN == '[':
return ']'
if gTqN == '{':
return '}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WSmh(NPoT, yKcO):\n return CvHh(NPoT, yKcO, group=['{', '}'])",
"def PCTg(YKHO):\n Z9rn = YKHO.call\n while Z9rn.next is not None:\n Z9rn = Z9rn.next\n return Z9rn.name.end_pos",
"def khcH(YKHO, vIwR):\n if not YKHO.start_paren_matchers:\n return\n AAmw = vIwR\n YfTe = []... | [
"0.7235852",
"0.6754336",
"0.6661549",
"0.6645004",
"0.6581832",
"0.64741564",
"0.6465799",
"0.6454053",
"0.63443047",
"0.625815",
"0.6226062",
"0.61927885",
"0.6087954",
"0.6085719",
"0.6070282",
"0.6045832",
"0.5983436",
"0.59363747",
"0.59363747",
"0.59363747",
"0.59055185... | 0.63158673 | 9 |
Moves the right motor backward upon a button press. The motor moves at a speed in degrees per second | def Z86H(YKHO, QTBn, iBLD):
if QTBn:
YKHO.right_motor.run_forever(speed_sp=-iBLD)
_VoQ.Leds.set_color(_VoQ.Leds.RIGHT, _VoQ.Leds.RED)
else:
YKHO.right_motor.stop()
_VoQ.Leds.set_color(_VoQ.Leds.RIGHT, _VoQ.Leds.BLACK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z86H(YKHO):\n YKHO.right_motor.run_forever(speed_sp=-YKHO.MAX_SPEED)",
"def sXcv(YKHO, n5VE, ulut):\n YKHO.left_motor.run_forever(speed_sp=-int(n5VE))\n YKHO.right_motor.run_forever(speed_sp=-int(ulut))",
"def DgzZ(YKHO):\n YKHO.pitch_motor.step_forward()",
"def _tIi(YKHO, iBLD=1):\n YKHO.... | [
"0.81504446",
"0.81332487",
"0.79073024",
"0.7753975",
"0.7736763",
"0.7614222",
"0.76010567",
"0.7574628",
"0.7548701",
"0.7487201",
"0.7446322",
"0.73603594",
"0.7341898",
"0.7309033",
"0.7309033",
"0.72994953",
"0.7273443",
"0.7273166",
"0.72636706",
"0.72190654",
"0.71785... | 0.8011508 | 2 |
Moves the left motor forward upon a button press. The motor moves at a speed in degrees per second. | def KQSY(YKHO, QTBn, iBLD):
if QTBn:
YKHO.left_motor.run_forever(speed_sp=iBLD)
_VoQ.Leds.set_color(_VoQ.Leds.LEFT, _VoQ.Leds.GREEN)
else:
YKHO.left_motor.stop()
_VoQ.Leds.set_color(_VoQ.Leds.LEFT, _VoQ.Leds.BLACK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NKyd(YKHO, n5VE, ulut):\n YKHO.left_motor.run_forever(speed_sp=int(n5VE))\n YKHO.right_motor.run_forever(speed_sp=int(ulut))",
"def GLKt(YKHO, n5VE, ulut):\n YKHO.right_motor.run_forever(speed_sp=int(ulut))",
"def LFlW(YKHO, iBLD=1):\n YKHO.right_motor.forward(iBLD)\n YKHO.left_motor.backwar... | [
"0.8180152",
"0.8072951",
"0.79563665",
"0.79242516",
"0.76426995",
"0.7510501",
"0.743861",
"0.72708344",
"0.7261254",
"0.72529185",
"0.72219086",
"0.7221309",
"0.7179941",
"0.7176807",
"0.71635216",
"0.7163195",
"0.7162422",
"0.71594447",
"0.71523064",
"0.7139756",
"0.71342... | 0.77653205 | 4 |
Moves the left motor backward upon a button press. The motor moves at a speed in degrees per second. | def xnTb(YKHO, QTBn, iBLD):
if QTBn:
YKHO.left_motor.run_forever(speed_sp=-iBLD)
_VoQ.Leds.set_color(_VoQ.Leds.LEFT, _VoQ.Leds.RED)
else:
YKHO.left_motor.stop()
_VoQ.Leds.set_color(_VoQ.Leds.LEFT, _VoQ.Leds.BLACK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sXcv(YKHO, n5VE, ulut):\n YKHO.left_motor.run_forever(speed_sp=-int(n5VE))\n YKHO.right_motor.run_forever(speed_sp=-int(ulut))",
"def xnTb(YKHO):\n YKHO.left_motor.run_forever(speed_sp=-YKHO.MAX_SPEED)",
"def DgzZ(YKHO):\n YKHO.pitch_motor.step_forward()",
"def ZD5u(YKHO, WbTE):\n YKHO.set... | [
"0.79304874",
"0.7911803",
"0.7817998",
"0.7593929",
"0.75321615",
"0.7413286",
"0.73599225",
"0.7350439",
"0.73449975",
"0.7308199",
"0.7263581",
"0.713369",
"0.7118184",
"0.7115466",
"0.71105486",
"0.70657635",
"0.70229584",
"0.7020933",
"0.69893116",
"0.69810027",
"0.69655... | 0.7629859 | 3 |
Combine embedding across the episode temporal dimension. | def _xum(Mcqs, a6Jb, rrBf, CJGY=ZylS.AUTO_REUSE, KBwB=(64,), tKaT=(100,), HU0T='temporal_conv'):
if len(Mcqs.shape) == 5:
Mcqs = ZylS.reduce_mean(Mcqs, axis=[2, 3])
if len(Mcqs.shape) != 3:
raise ValueError('Temporal embedding has unexpected shape {}.'.format(Mcqs.shape))
wjQX = Mcqs
wit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I3nz(YKHO):\n with ZylS.variable_scope('word_embedding'):\n YKHO.word_embeddings = ZylS.get_variable('word_embeddings', shape=(YKHO.term_vocab.size(), YKHO.term_vocab.embed_dim), initializer=ZylS.constant_initializer(YKHO.term_vocab.embeddings), trainable=True)\n YKHO.p_word_emb = ZylS.nn.embe... | [
"0.64200747",
"0.6326184",
"0.6267721",
"0.6249737",
"0.61867166",
"0.6164913",
"0.6011324",
"0.6011175",
"0.5934129",
"0.59319943",
"0.58960605",
"0.5863642",
"0.5856913",
"0.5833061",
"0.58082265",
"0.5761189",
"0.57435846",
"0.57144356",
"0.5711894",
"0.57084066",
"0.57015... | 0.6678748 | 0 |
Numpy function for softmax | def N93T(WKvO):
ROpF = WKvO.shape
BFeB = oyIN.exp(WKvO - oyIN.max(WKvO, axis=len(ROpF) - 1, keepdims=True))
BFeB /= oyIN.sum(BFeB, axis=len(ROpF) - 1, keepdims=True)
return BFeB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKv... | [
"0.86270744",
"0.86158144",
"0.8584062",
"0.8584062",
"0.8571627",
"0.8568542",
"0.8537994",
"0.8537994",
"0.8537994",
"0.8537994",
"0.8537994",
"0.8537994",
"0.8537994",
"0.8537994",
"0.853401",
"0.8531851",
"0.8524876",
"0.85204613",
"0.8517792",
"0.85159737",
"0.84623146",... | 0.8353117 | 30 |
Method to retrieve the definition for this configuration. This will trigger a refresh of the definition from the PyFiguration object and clean any empty keys from it. | def MvVt(YKHO) -> dict:
YKHO._set_definition(YKHO.pyfiguration.definition)
return {H5ew: YKHO.definition.get(H5ew, None) if not isinstance(BWXx, y8cn) else BWXx.get_definition() for H5ew, BWXx in YKHO.definition.items()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MvVt(YKHO):\n return YKHO.definition",
"def hati(YKHO):\n return YKHO._definition",
"def q_DO(YKHO):\n return YKHO._definition",
"def yTDD(YKHO):\n if YKHO._definition:\n return Zh4e(YKHO._definition)\n return None",
"def q_DO(YKHO):\n return YKHO._definition",
"def q_DO(YKHO... | [
"0.7015458",
"0.6883142",
"0.6698901",
"0.6642334",
"0.6635337",
"0.6635337",
"0.65403134",
"0.64501756",
"0.622594",
"0.61618227",
"0.6159994",
"0.6070069",
"0.6052024",
"0.6051887",
"0.6040782",
"0.57456213",
"0.5742419",
"0.5742021",
"0.5717445",
"0.57154304",
"0.5694363",... | 0.81133777 | 0 |
Returns the appropriate InputKind constant from an ``inspect.Parameter`` object. | def PTKE(xqoZ: Parameter, b_jh: bool=False) -> D4G1:
if xqoZ.annotation in [qHOR, uLKX[qHOR, str]] and xqoZ.default is not None:
return D4G1.VARIABLE
if h8nf[xqoZ.annotation] in [h8nf[qHOR], h8nf[uLKX[qHOR, str]]]:
return D4G1.OPTIONAL_VARIABLE
if XWMg(xqoZ.annotation, (str, None)) and b_jh:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AHxQ(YKHO) -> h8nf['outputs.ParamKind']:\n return qe4Y.get(YKHO, 'param_kind')",
"def AHxQ(YKHO) -> h8nf['outputs.ParamKindPatch']:\n return qe4Y.get(YKHO, 'param_kind')",
"def _8wf():\n BWXx = 11\n dwhH = xqoZ.Integer(value=BWXx)\n assert dwhH.kind == 'Integer'",
"def CbyE(YKHO, mWFP):\n ... | [
"0.62266386",
"0.6068737",
"0.5857749",
"0.57730204",
"0.57138574",
"0.56005263",
"0.55768615",
"0.54822344",
"0.54724395",
"0.54724395",
"0.54724395",
"0.54565644",
"0.5385306",
"0.5363856",
"0.53320456",
"0.53102803",
"0.5280218",
"0.52761555",
"0.5202848",
"0.5170891",
"0.... | 0.68978894 | 0 |
This method generates the content of the overlay presenting OnlineHelp. In case both section and subsection are missing, we'll open main OnlineHelp page. | def SY_M(YKHO, XLMv=None, lbb2=None, **nPrm):
ivEg = YKHO.fill_overlay_attributes(None, 'TVB', 'Online-Help', 'help/online_help', 'help')
ivEg['helpURL'] = YKHO.config.get_help_url(XLMv, lbb2)
return YKHO.fill_default_attributes(ivEg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ze9s():\n YKHO.helpindex = m1n6(YKHO.master)\n YKHO.helpindex.title('About')\n YKHO.helpindex.geometry('500x300')\n YKHO.helpindex.label()",
"def wZMb(YKHO):\n LgJI()",
"def Xbde(YKHO, LDIG, fNU6):\n eLSO = a9EH.system()\n psVq = m1n6()\n psVq.grid()\n qo6I = 0\n _fzp = 0\n ... | [
"0.5949303",
"0.5661682",
"0.5626375",
"0.5579263",
"0.5571765",
"0.55493313",
"0.5491596",
"0.5457224",
"0.54476744",
"0.5438522",
"0.54367846",
"0.54181486",
"0.54152334",
"0.5382418",
"0.538217",
"0.5373193",
"0.5362131",
"0.5341298",
"0.5334435",
"0.5333858",
"0.53327006"... | 0.7249005 | 0 |
Overloading of the equality method | def xa14(YKHO, Elif):
if isinstance(Elif, YKHO.__class__):
return YKHO.mac == Elif.mac
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YK... | [
"0.85453904",
"0.85453904",
"0.85453904",
"0.85453904",
"0.85453904",
"0.85453904",
"0.85453904",
"0.85453904",
"0.85453904",
"0.85453904",
"0.85453904",
"0.85067266",
"0.85067266",
"0.85067266",
"0.85067266",
"0.85067266",
"0.85067266",
"0.85067266",
"0.85067266",
"0.85067266"... | 0.0 | -1 |
Compute the mean and variance of the `posterior` of NNGP and NTK. Note that this method is equivalent to `gradient_descent_mse_gp` at infinite | def I7Ml(XoPT, cC56, VJv0, sAoX, NMoC, QI4l=0.0, TzIs=False):
if NMoC is None:
NMoC = ('nngp', 'ntk')
oWMM, B1XE, C2i4 = H0yV(XoPT, cC56, sAoX, NMoC, TzIs)
Scm8 = rsU4 if IsyO(oWMM) else QX7k
return Scm8(oWMM, B1XE, C2i4, VJv0, NMoC, QI4l) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cwxg(Oa1e: to.Tensor, mnnA: to.Tensor) -> Br5Q.Tensor:\n if Ijnk.get_device().type == 'cpu':\n B9EC = Vftn(Oa1e, mnnA)\n else:\n B9EC = wQ0K(Oa1e, mnnA)\n assert B9EC.shape == (Oa1e.shape[0], *Oa1e.shape[2:])\n assert not Br5Q.isnan(B9EC).any() and (not Br5Q.isinf(B9EC).any())\n re... | [
"0.6821062",
"0.634901",
"0.6108903",
"0.5793908",
"0.57890546",
"0.5678156",
"0.56511575",
"0.55245835",
"0.5481837",
"0.5460603",
"0.54288447",
"0.5391452",
"0.5336825",
"0.5321799",
"0.53201544",
"0.5288015",
"0.5281915",
"0.5274995",
"0.52628106",
"0.5254729",
"0.52215147... | 0.0 | -1 |
Calculates negative auto correlation of samples xs. This uses the usual window estimators for auto correlation and sums these to get an estimate of autocorrelation time (i.e., Monte Carlo error). However, note this is not even a consistent estimator of autocorrelation time. (See Geyer (1992)) Because we use this as a r... | def XVU5(SsdK, nJ9F, fUYa, NxeW, yAoY=None):
exwG = len(fUYa)
if yAoY is None:
yAoY = exwG - 1
if yAoY < 1:
raise ValueError('max_lag needs to be greater than 0.')
_P6x = 0.0
Q6uT = fUYa - oyIN.mean(fUYa)
SRYB = oyIN.var(Q6uT)
if oyIN.isclose(SRYB, 0.0):
return -float... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EAt9(WKvO, vVbW):\n exwG = len(WKvO)\n WKvO = oyIN.array(WKvO)\n Aofo = []\n for YRbF in range(1, vVbW + 1):\n LVAh = abs(oyIN.correlate(WKvO[YRbF:] - WKvO[YRbF:].mean(), WKvO[:exwG - YRbF] - WKvO[:exwG - YRbF].mean())[0])\n Csk6 = WKvO[YRbF:].std() * WKvO[:exwG - YRbF].std() * (exwG ... | [
"0.6973235",
"0.69557774",
"0.69557774",
"0.6942276",
"0.6906297",
"0.67576116",
"0.67576116",
"0.6709613",
"0.6635032",
"0.6602292",
"0.65536845",
"0.6510047",
"0.64248836",
"0.6423801",
"0.64084697",
"0.6330132",
"0.6288052",
"0.62572426",
"0.6225367",
"0.6192353",
"0.61847... | 0.6718385 | 7 |
Reward the previous action with reward. | def vOGg(YKHO, Gi6Q, vOGg):
dstq = YKHO._historystorage.unrewarded_histories[Gi6Q].action
vRMj = YKHO._actions.index(dstq)
QpfX = YKHO._historystorage.unrewarded_histories[Gi6Q].context[vRMj]
QpfX = oyIN.matrix(QpfX)
V1Y9 = YKHO._modelstorage.get_model()['matrix_a']
WEkW = YKHO._modelstorage.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mAMu(YKHO, QpfX) -> kAxl:\n pass",
"def vOGg(YKHO, Gi6Q, vOGg):\n pass",
"def Xaq_(YKHO, XeOP):\n raise NotImplementedError",
"def xyVK(YKHO, QTBn, XeOP, rxHc, _5Eh):\n raise NotImplementedError",
"def Xaq_(YKHO, XeOP: Action) -> float:\n raise NotImplementedError",
"def _KvT(YKHO):\n ... | [
"0.73942286",
"0.730866",
"0.72596717",
"0.72183096",
"0.71373534",
"0.70769584",
"0.7075508",
"0.69718593",
"0.6958205",
"0.6942918",
"0.69239765",
"0.6892974",
"0.6892642",
"0.6838727",
"0.68366915",
"0.6809473",
"0.68087393",
"0.68080866",
"0.6806997",
"0.6735299",
"0.6689... | 0.6421402 | 50 |
Besteffort of sanitizing an untrusted string that will be used to create a file on the user's local filesystem. untrustedFilename filename string with possibly bad / hostile characters or sequences. sanitized filename | def LQO4(O0bm: unicode) -> QMSQ:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOHH(Ux0P):\n XQg9 = ZbWC.sub('[/\\\\\\\\:*?\"<>|]', '-', Ux0P)\n XQg9 = XQg9.replace('&', 'and')\n XQg9 = XQg9.replace('\"', '')\n XQg9 = XQg9.replace(\"'\", '')\n XQg9 = XQg9.replace('/', '')\n XQg9 = XQg9.replace('\\\\', '')\n if XQg9[0] == '.':\n XQg9 = u'dot' + XQg9[1:]\n re... | [
"0.76141167",
"0.7589279",
"0.7583239",
"0.7583239",
"0.7568847",
"0.7568013",
"0.74044746",
"0.7367551",
"0.72991896",
"0.72416437",
"0.72291976",
"0.71116453",
"0.7109258",
"0.70507437",
"0.7026937",
"0.698266",
"0.6959216",
"0.69557416",
"0.69411516",
"0.692763",
"0.683257... | 0.8151417 | 0 |
Creates a new Resource Manager. This is the supplier for all resource creation calls. | def FIMM(YKHO, zrIJ: str='minecraft', fGTW: Sequence[str]=('src', 'main', 'resources'), MnRD: int=2, X7g_: bool=False, ZQqq: str='en_us', vadG: Callable[[str, Exception], Any]=None):
YKHO.resource_dir = BfDw.str_path(fGTW)
YKHO.domain = zrIJ
YKHO.indent = MnRD
YKHO.ensure_ascii = X7g_
YKHO.default_l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, QpfX, nPrm, m657=False):\n alFr = 'create-resource_mgr'\n ouvA = YKHO.db_api.get_transactional_session(alFr)\n n9tp = {odOs.RESOURCE_MGR_STATE_KEY: odOs.EON_RESOURCE_MANAGER_STATE_REGISTERED}\n Gdzo = []\n try:\n u9tg(QpfX, YKHO.db_api, nPrm, odOs.EON_RESOURCE_MANAGER)\n ... | [
"0.6851695",
"0.6713712",
"0.6389448",
"0.610204",
"0.5957527",
"0.59392047",
"0.5828924",
"0.57964164",
"0.57455796",
"0.5712935",
"0.5695316",
"0.56430745",
"0.56219834",
"0.5576493",
"0.5545291",
"0.55416983",
"0.5518348",
"0.5513336",
"0.5472368",
"0.5451935",
"0.5429594"... | 0.0 | -1 |
Creates a loot table for a block | def wzIL(YKHO, SzCd: ResourceIdentifier, *ixxx: Json) -> cn_6:
Ylbp = YKHO.loot(SzCd, *ixxx, path='blocks', loot_type='minecraft:block')
return cn_6(YKHO, Ylbp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qndo(YKHO):\n HCmI = ' CREATE TABLE IF NOT EXISTS %s (\\n %s integer PRIMARY KEY AUTOINCREMENT,\\n %s text,\\n %s integer,\\n %s real,\\n %s text,\\n %s text);' % (we9J, w_J1, eoNQ, uGDD, cWr1, ... | [
"0.63324046",
"0.5871776",
"0.58042663",
"0.57642454",
"0.5742061",
"0.5738972",
"0.5712546",
"0.5661574",
"0.56419104",
"0.55933917",
"0.55933917",
"0.5591138",
"0.55905056",
"0.55779237",
"0.5572",
"0.55483365",
"0.55483365",
"0.55442643",
"0.554193",
"0.55252165",
"0.55087... | 0.5383651 | 38 |
This returns a simple distance function in interval [0,1] between 2 defects. | def G7rr(tYeH, AqX3):
Ayfi = 1
Bmup = abs(AqX3[0] - tYeH[0]) / 24
if Bmup <= 30:
GeCf = 0 if tYeH[1] == AqX3[1] else 1
Ayfi = 0.3 * (Bmup / 30.0) + 0.7 * GeCf
return Ayfi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8EB(QLgk, aQJ1):\n return oyIN.linalg.norm(QLgk - aQJ1)",
"def Ayfi(o4D3, si3g, ajwV, skBL):\n return ((ajwV - o4D3) ** 2 + (skBL - si3g) ** 2) ** 0.5",
"def Ayfi(o4D3, si3g, ajwV, skBL):\n pImw = ((o4D3 - ajwV) ** 2 + (si3g - skBL) ** 2) ** 0.5\n return pImw",
"def zG70(o4D3, si3g, ajwV, sk... | [
"0.72660995",
"0.7037052",
"0.6957593",
"0.69535524",
"0.691113",
"0.69090927",
"0.688562",
"0.6865793",
"0.68565273",
"0.68522716",
"0.68291134",
"0.68224895",
"0.6820436",
"0.67833143",
"0.6781289",
"0.67671955",
"0.67505133",
"0.6744825",
"0.67392284",
"0.673723",
"0.67296... | 0.76450396 | 0 |
Tests that a listener is added to the underlying client, after being wrapped in such a way that it would be executed in the reactor thread. | def _7aU(YKHO):
YKHO.wrapper.add_listener(YKHO._assert_in_reactor_thread)
tvqc = object()
bVeS, = YKHO.client.listeners
bVeS(tvqc)
YKHO.assertIdentical(YKHO.received_event, tvqc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3U9(YKHO):\n\n def DN9V():\n pass\n fD7C.subscribe('test_listener', DN9V)\n YKHO.assertIn(DN9V, fD7C._listeners['test_listener'])",
"def Z7Re(YKHO):\n DN9V = lambda QTBn: QTBn\n YKHO.wrapper.add_listener(DN9V)\n YKHO.assertEqual(len(YKHO.client.listeners), 1)\n YKHO.wrapper.remov... | [
"0.69329417",
"0.68686044",
"0.6679982",
"0.6588854",
"0.6491933",
"0.64301765",
"0.64275664",
"0.60705894",
"0.60204434",
"0.6015809",
"0.59902453",
"0.59442145",
"0.59395874",
"0.59093046",
"0.5886746",
"0.58820283",
"0.5850155",
"0.5834565",
"0.5828874",
"0.58169866",
"0.5... | 0.8787536 | 0 |
This method returns all cache blocks. Returns A list of dictionaries with all cache blocks information. | def lqZb(YKHO) -> list:
return YKHO.__mem | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VKvK(YKHO) -> dict:\n return YKHO.blocks",
"def jCt9(YKHO) -> x1iM[RnTg.program.model.mem.MemoryBlock]:\n ...",
"def xpYM(YKHO):\n HCmI = ' SELECT * FROM %s; ' % we9J\n YKHO.__dbcursor.execute(HCmI)\n return YKHO.__dbcursor.fetchall()",
"def GtIy(YKHO) -> x1iM[RnTg.program.model.mem.Memor... | [
"0.7125327",
"0.7070081",
"0.70094293",
"0.65782726",
"0.6538208",
"0.6474031",
"0.6422362",
"0.6313308",
"0.6279374",
"0.62622875",
"0.62430704",
"0.6112625",
"0.60894114",
"0.6081727",
"0.6073321",
"0.6060935",
"0.60378546",
"0.59768677",
"0.59563947",
"0.59398735",
"0.5886... | 0.0 | -1 |
Constructor for Featurizer class | def FIMM(YKHO, Jvh8, kPSD='/home/server/server2/data/SVR166219/', zddv='/home/server/server2/projects/Gromacs/'):
YKHO.proj_num = Jvh8
YKHO.base_data_dir = kPSD
YKHO.dataframe_path = Hy7s.path.join(oEge, 'PROJ' + str(YKHO.proj_num), 'p' + str(YKHO.proj_num) + '.h5')
if not Hy7s.path.exists(YKHO.datafram... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, **B2fa):\n super(SKRA, YKHO).__init__(**B2fa)",
"def FIMM(YKHO, T2Jx=0, c4nB=0.3, cRpU=1, Ma4g=15, bmJ5=1, PJWX=True):\n super(RO10, YKHO).__init__(n_jobs=bmJ5, verbose=PJWX)\n YKHO.atom_types = T2Jx\n YKHO.fuzz_increment = c4nB\n YKHO.min_path = cRpU\n YKHO.max_path = Ma4g\n ... | [
"0.6500379",
"0.64959556",
"0.6455273",
"0.64541894",
"0.6440447",
"0.6437264",
"0.6403186",
"0.6393175",
"0.63061374",
"0.62930197",
"0.625",
"0.62428296",
"0.62397194",
"0.61983615",
"0.61846805",
"0.6179621",
"0.6176057",
"0.617425",
"0.61732495",
"0.61695814",
"0.61669487... | 0.0 | -1 |
Create an empty DataFrame for this project. | def fIqG(YKHO):
jQ3Z = rLdf.DataFrame({'date': [], 'RUN': [], 'CLONE': [], 'GEN': rLdf.Series(0, index=[], dtype='int'), 'frame': rLdf.Series([], index=[], dtype='int'), 'time (ns)': []})
jQ3Z.set_index('date')
print(jQ3Z)
VUF1 = rLdf.HDFStore(YKHO.dataframe_path)
print(VUF1)
VUF1.put('df', jQ3Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LAVE(YKHO):\n return rLdf.DataFrame()",
"def pCNl(Emd4) -> rLdf.DataFrame:\n Cqok = list(zip(Emd4._required_columns, Emd4._required_dtypes))\n try:\n ezWE = oyIN.zeros(0, dtype=Cqok)\n return rLdf.DataFrame(ezWE)\n except TypeError as exc:\n raise TypeError('{exc}: {spec}') f... | [
"0.7723491",
"0.70627886",
"0.6873515",
"0.682038",
"0.6787119",
"0.67716914",
"0.67471194",
"0.6731752",
"0.67029136",
"0.6631718",
"0.6576077",
"0.6564954",
"0.655227",
"0.65334797",
"0.6475534",
"0.64730036",
"0.64184165",
"0.64145875",
"0.6413942",
"0.6403204",
"0.6402589... | 0.7061941 | 2 |
Initialize the TestModel class. | def FIMM(YKHO, y7GR):
assert not y7GR.isTrain
KcDH.__init__(YKHO, y7GR)
YKHO.loss_names = []
YKHO.visual_names = ['real_A', 'fake_B']
YKHO.model_names = ['G_B']
YKHO.netG = UziS.define_G(y7GR.input_nc, y7GR.output_nc, y7GR.ngf, y7GR.norm, y7GR.use_dropout, y7GR.init_type, y7GR.init_gain, YKHO.gp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gv23(YKHO):\n pass",
"def uIcm(YKHO, C3ST):\n pass",
"def fPO8(YKHO):\n pass",
"def Baw8(YKHO):\n rvDU = KcDH()",
"def s2hh():\n MRCC('model', QUzO())",
"def Baw8(Emd4) -> None:\n Emd4.DATA_MODEL = Emd4.load_data_model()",
"def KwrU():\n AvM3()",
"def FIMM(YKHO, C3ST):\n Y... | [
"0.7904024",
"0.7741662",
"0.7725355",
"0.7593264",
"0.7423927",
"0.73066896",
"0.7193625",
"0.71935016",
"0.71538514",
"0.7059315",
"0.70272547",
"0.7017552",
"0.6943066",
"0.6941206",
"0.6924282",
"0.69038963",
"0.69038963",
"0.69038963",
"0.69038963",
"0.6898596",
"0.68887... | 0.0 | -1 |
Opens the web browser and the openEO web editor with the currently connected backend. | def W2gI(YKHO):
try:
HywK.open('https://editor.openeo.org/?server={}'.format(YKHO.backend.url))
except:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SzF5(YKHO):\n YKHO._client_api._open_in_web(url=YKHO.platform_url)",
"def QM3s(YKHO):\n HywK.open(YKHO.url)",
"def lumm(YKHO):\n HywK.open(YKHO.url())",
"def SxXT(tvqc):\n tvqc.current_buffer.open_in_editor(tvqc.cli)",
"def SzF5(YKHO, C3ST=None, tsEk=None):\n if C3ST is not None:\n ... | [
"0.7481132",
"0.7377785",
"0.6997551",
"0.6635567",
"0.66273844",
"0.65531313",
"0.65294063",
"0.65204966",
"0.6444651",
"0.64436615",
"0.64406693",
"0.6440161",
"0.64144015",
"0.63915634",
"0.6381181",
"0.63800144",
"0.63578606",
"0.6345542",
"0.633933",
"0.6310409",
"0.6253... | 0.8344945 | 0 |
Opens the web browser and the openEO web editor with the currently connected backend. | def YpR4(YKHO):
YKHO.webWindow.close()
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2gI(YKHO):\n try:\n HywK.open('https://editor.openeo.org/?server={}'.format(YKHO.backend.url))\n except:\n pass",
"def SzF5(YKHO):\n YKHO._client_api._open_in_web(url=YKHO.platform_url)",
"def QM3s(YKHO):\n HywK.open(YKHO.url)",
"def lumm(YKHO):\n HywK.open(YKHO.url())",
"... | [
"0.8345564",
"0.748172",
"0.737889",
"0.6998054",
"0.66360885",
"0.6628433",
"0.6553087",
"0.6530007",
"0.65210116",
"0.64452475",
"0.6445135",
"0.6442146",
"0.64409137",
"0.6414483",
"0.6391573",
"0.63821244",
"0.6380862",
"0.63583416",
"0.63462824",
"0.6340097",
"0.6311658"... | 0.0 | -1 |
Replace last pronoun in sentence with [MASK] | def btF3(uPxI, XYUo):
heLZ = ['eles', 'ela', 'ele', 'os', 'dela', 'it', 'o', 'la', 'lo', 'a', 'la', 'las', 'deles', 'delas', 'dele', 'sua', 'seu', 'suas']
WNjP = []
DoLI = uPxI.replace("'", " '")
DoLI = DoLI.replace('"', ' "')
DoLI = DoLI.replace('.', ' .')
DoLI = DoLI.replace(',', ' ,')
DoL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w0T0(YKHO, XLMv):\n return ZbWC.sub(iDCC, RqeO, XLMv)",
"def TTw9(GIN8):\n return GIN8[0] + ''.join([gCuF.CENSOR_PROFANITY_REPLACEMENT_CHARACTER for pdhd in range(len(GIN8) - 2)]) + GIN8[-1]",
"def qx_G(YKHO, l5Ny, ZHfW):\n XP5J = YKHO.d\n YRbF = 0\n r845 = 0\n epBp = 0\n Aofo = []\n ... | [
"0.62197584",
"0.6168616",
"0.5933409",
"0.5781912",
"0.5771165",
"0.57635194",
"0.57377964",
"0.56737596",
"0.56600326",
"0.5568031",
"0.5551167",
"0.5548511",
"0.5495571",
"0.5491943",
"0.54779506",
"0.547635",
"0.5463883",
"0.5458453",
"0.5445313",
"0.54325855",
"0.5418504... | 0.69771785 | 0 |
Move an RA/Dec offset. | async def set_offsets_radec(YKHO, pVEY: float, wEH8: float, **B2fa: Any) -> None:
RKD7.info('Moving offset dra=%.5f, ddec=%.5f', pVEY, wEH8)
await YKHO.comm.send_event(c_LS(ra=pVEY, dec=wEH8))
YKHO._telescope.set_offsets(pVEY, wEH8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SYKo(d8Kn, JqQl, MMBi, rKno):\n H7ax = epAf.pi / 180.0\n bgg2 = epAf.pi / 648000.0\n qvxJ = JqQl * H7ax\n DMP8 = MMBi * bgg2\n Lyor = rKno * bgg2\n X1KQ = epAf.sin(DMP8 / 2.0)\n vi3M = X1KQ / epAf.cos(qvxJ)\n FH7o = 2.0 * epAf.asin(vi3M) / H7ax\n sFT8 = d8Kn + FH7o\n XGkr = JqQl +... | [
"0.66595817",
"0.6006074",
"0.5929881",
"0.5713689",
"0.5630921",
"0.5577712",
"0.5405503",
"0.53487694",
"0.53287065",
"0.53238285",
"0.53156906",
"0.5288385",
"0.5274514",
"0.5260297",
"0.5212244",
"0.5211268",
"0.5190426",
"0.5181402",
"0.51695246",
"0.51426184",
"0.514229... | 0.61812323 | 1 |
Compute 'Scaled Dot Product Attention' | def v2uf(xDcj, H5ew, BWXx, fLXe, ZHfW=None, hr1G=None):
ZeE7 = xDcj.size(-1)
jb28 = ht2j.einsum('bhmd,bhmnd->bhmn', xDcj, H5ew) / epAf.sqrt(ZeE7)
oboH = ht2j.einsum('bhnd,bhmnd->bhnm', xDcj, H5ew) / epAf.sqrt(ZeE7)
if ZHfW is not None:
ZHfW = ZHfW.unsqueeze(1).repeat(1, xDcj.shape[1], xDcj.shape... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUzg(vexM, G1Hx, Ty9i, ZHfW):\n LwVP = ZylS.matmul(vexM, G1Hx, transpose_b=True)\n WiZd = ZylS.cast(ZylS.shape(G1Hx)[-1], ZylS.float32)\n _q8E = LwVP / ZylS.sqrt(WiZd)\n if ZHfW is not None:\n _q8E += ZHfW * 1e-09\n HfyR = ZylS.nn.softmax(_q8E, axis=-1)\n hlel = ZylS.matmul(HfyR, Ty9i)... | [
"0.67412263",
"0.66336447",
"0.6571855",
"0.65150195",
"0.6505148",
"0.6504337",
"0.6503735",
"0.6503735",
"0.64900446",
"0.6464487",
"0.64103204",
"0.6387002",
"0.63768214",
"0.62903184",
"0.61006254",
"0.6056964",
"0.601408",
"0.5984356",
"0.595376",
"0.5942652",
"0.5925456... | 0.0 | -1 |
Gets a collection of `InputExample`s for the train set. | def rNg5(YKHO, eZ_W):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def rNg5(YKHO):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS[0]\n UXqs = LihS[1]\n _73Q.append(xeAK(guid=Artt, text=l5Ny,... | [
"0.7353409",
"0.7173496",
"0.65607446",
"0.6421442",
"0.640515",
"0.63427144",
"0.62901086",
"0.62796",
"0.6252537",
"0.6247562",
"0.6247562",
"0.6247562",
"0.6247562",
"0.6247562",
"0.6247562",
"0.6247562",
"0.6247562",
"0.6247562",
"0.6247562",
"0.6247562",
"0.6247562",
"... | 0.71288145 | 2 |
Gets a collection of `InputExample`s for the dev set. | def JdXm(YKHO, eZ_W):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGUt(YKHO, PU1l):\n return PU1l",
"def X2wT(YKHO, sEAN):\n return YKHO.fam.c_get_examples(YKHO, sEAN)",
"def JdXm(YKHO):\n raise NotImplementedError()",
"def G_y_(YKHO, nPrm, TG_K):\n _73Q = []\n for YRbF, LihS in enumerate(nPrm):\n Artt = '%s-%s' % (TG_K, YRbF)\n l5Ny = LihS... | [
"0.6587386",
"0.6555576",
"0.6551477",
"0.64263123",
"0.63808954",
"0.6256121",
"0.6192293",
"0.61156076",
"0.60942835",
"0.6054705",
"0.60512304",
"0.5993767",
"0.5993767",
"0.5993767",
"0.5993767",
"0.5993767",
"0.5993767",
"0.5993767",
"0.5993767",
"0.5993767",
"0.5993767"... | 0.68085253 | 0 |
Serializes this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict... | [
"0.8421195",
"0.84043926",
"0.8362277",
"0.83090377",
"0.82829785",
"0.82829785",
"0.82829785",
"0.82829785",
"0.82829785",
"0.82829785",
"0.8236021",
"0.82179517",
"0.82133806",
"0.82032114",
"0.8181652",
"0.8179579",
"0.81732064",
"0.81534773",
"0.8118078",
"0.8090142",
"0.... | 0.0 | -1 |
Serializes this instance to a JSON string. | def IZ3T(YKHO):
return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d... | [
"0.88999254",
"0.8837045",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.87147456",
"0.8637419",
"0.8619328",
"0.8598524",
"0.8572258",
"0.8568808",
"0.8568808",
"0.8446259",
"0.8446259",
"0.8446259",
... | 0.0 | -1 |
Serializes this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict... | [
"0.8421625",
"0.8404173",
"0.83615255",
"0.83081526",
"0.82821834",
"0.82821834",
"0.82821834",
"0.82821834",
"0.82821834",
"0.82821834",
"0.823544",
"0.8216961",
"0.8212815",
"0.82025886",
"0.8181318",
"0.8179069",
"0.81732166",
"0.81532955",
"0.8117324",
"0.8089861",
"0.807... | 0.0 | -1 |
Serializes this instance to a JSON string. | def IZ3T(YKHO):
return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d... | [
"0.8900063",
"0.8837246",
"0.8804028",
"0.8804028",
"0.8804028",
"0.8804028",
"0.8804028",
"0.8804028",
"0.8804028",
"0.8804028",
"0.8804028",
"0.8714247",
"0.8636599",
"0.8619112",
"0.8598233",
"0.857137",
"0.8567948",
"0.8567948",
"0.84456474",
"0.84456474",
"0.84456474",
... | 0.0 | -1 |
Serializes this instance to a Python dictionary. | def MNRr(YKHO):
hlel = jth9.deepcopy(YKHO.__dict__)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return qyWT(YKHO)",
"def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data",
"def MNRr(YKHO):\n return MNRr(YKHO.__dict__)",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict__",
"def MNRr(YKHO):\n return YKHO.__dict... | [
"0.8421195",
"0.84043926",
"0.8362277",
"0.83090377",
"0.82829785",
"0.82829785",
"0.82829785",
"0.82829785",
"0.82829785",
"0.82829785",
"0.8236021",
"0.82179517",
"0.82133806",
"0.82032114",
"0.8181652",
"0.8179579",
"0.81732064",
"0.81534773",
"0.8118078",
"0.8090142",
"0.... | 0.0 | -1 |
Serializes this instance to a JSON string. | def IZ3T(YKHO):
return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())",
"def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d... | [
"0.88999254",
"0.8837045",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.8805053",
"0.87147456",
"0.8637419",
"0.8619328",
"0.8598524",
"0.8572258",
"0.8568808",
"0.8568808",
"0.8446259",
"0.8446259",
"0.8446259",
... | 0.0 | -1 |
Converts to OpenCV camera and back exactly. | def tR1P() -> None:
WpIo = RUQe(imgsz=(4288, 2848), f=(3100, 3200), c=(5, -4), k=(0.1, -0.05, 0.02, 0.003, 0.004, 0.005), p=(0.03, 0.04))
xaED = _6pP.from_camera(WpIo)
ed_d = QXkI(xaED, WpIo).residuals()
oyIN.testing.assert_equal(ed_d, 0)
jTdD = xaED.to_camera()
oyIN.testing.assert_equal(WpIo.to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eeAL():\n wOb_ = aKaX()\n WpIo.capture(wOb_, 'jpeg')\n nPrm = oyIN.fromstring(wOb_.getvalue(), dtype=oyIN.uint8)\n VXjJ = XC5k.imdecode(nPrm, 1)\n VXjJ = VXjJ[:, :, ::-1]\n VXjJ = XC5k.resize(VXjJ, (qIxc.resize, qIxc.resize), interpolation=XC5k.INTER_AREA)\n print('done resizing')\n ret... | [
"0.6674611",
"0.6660657",
"0.6604536",
"0.6486034",
"0.6445145",
"0.6269034",
"0.62239224",
"0.6220102",
"0.6210833",
"0.6185141",
"0.6152201",
"0.6121139",
"0.6104605",
"0.6100494",
"0.6063312",
"0.60058856",
"0.60040694",
"0.6002377",
"0.5998047",
"0.59908324",
"0.59869665"... | 0.7640889 | 0 |
Converts to OpenCV camera and back with optimized parameters. | def CTIJ() -> None:
WpIo = RUQe(imgsz=(4288, 2848), f=(3100, 3200), c=(5, -4), k=(0.1, -0.05, 0.02, 0.003, 0.004, 0.005), p=(0.03, 0.04))
xaED = _6pP.from_camera(WpIo)
xaED.s1 = 1e-05
t9rS = xaED.to_camera(optimize=False)
Pm7y = QXkI(xaED, t9rS).residuals()
WpIo = xaED.to_camera()
ed_d = QXk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eeAL():\n wOb_ = aKaX()\n WpIo.capture(wOb_, 'jpeg')\n nPrm = oyIN.fromstring(wOb_.getvalue(), dtype=oyIN.uint8)\n VXjJ = XC5k.imdecode(nPrm, 1)\n VXjJ = VXjJ[:, :, ::-1]\n VXjJ = XC5k.resize(VXjJ, (qIxc.resize, qIxc.resize), interpolation=XC5k.INTER_AREA)\n print('done resizing')\n ret... | [
"0.65229195",
"0.6356687",
"0.6075868",
"0.6033102",
"0.599067",
"0.5941069",
"0.5913982",
"0.59093237",
"0.5855322",
"0.5850977",
"0.5825967",
"0.58159816",
"0.57715976",
"0.5729508",
"0.57209337",
"0.57144177",
"0.57114017",
"0.5706012",
"0.5705577",
"0.56977916",
"0.569321... | 0.70280343 | 0 |
Construct from a spyview colormap. | def FIMM(YKHO, Ux0P):
dir = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))
pmON = Hy7s.path.join(dir, Ux0P)
YKHO.path = pmON
YKHO.colors = oyIN.loadtxt(pmON)
YKHO.gamma = 1
YKHO.min, YKHO.max = (0, 1)
YKHO.length = YKHO.colors.shape[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imX6(_W71):\n MYQr = oyIN.zeros((256, 3), dtype=int)\n QyVM = oyIN.arange(256, dtype=int)\n for DkWr in reversed(range(8)):\n for YwkQ in range(3):\n MYQr[:, YwkQ] |= (QyVM >> YwkQ & 1) << DkWr\n QyVM >>= 3\n return MYQr[_W71]",
"def xPm8(Rqvf=(0.0, 1.0), mYH6=(0.8, 0.0),... | [
"0.6322929",
"0.6176424",
"0.61403215",
"0.6041539",
"0.5938284",
"0.5926456",
"0.59055984",
"0.5836181",
"0.55492616",
"0.554661",
"0.554661",
"0.554661",
"0.54754937",
"0.54754937",
"0.5468141",
"0.5463574",
"0.54622966",
"0.5453723",
"0.54483914",
"0.5438157",
"0.54032797"... | 0.0 | -1 |
Create a matplotlib colormap object that can be used in the cmap argument of some matplotlib plotting functions. | def NiXE(YKHO):
return x5MY.colors.ListedColormap(YKHO.get_colors().astype(float) / 255.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tRp2(exwG, mWFP='jet'):\n return QrM1.cm.get_cmap(mWFP, exwG)",
"def JNWv():\n MYQr = oyIN.array([[128, 64, 128], [244, 35, 232], [70, 70, 70], [102, 102, 156], [190, 153, 153], [153, 153, 153], [250, 170, 30], [220, 220, 0], [107, 142, 35], [152, 251, 152], [70, 130, 180], [220, 20, 60], [255, 0, 0], ... | [
"0.69520676",
"0.6926641",
"0.6904607",
"0.68217474",
"0.68167293",
"0.6804701",
"0.6722993",
"0.6717997",
"0.66702443",
"0.6637944",
"0.6592603",
"0.6592603",
"0.65426683",
"0.65426683",
"0.65426683",
"0.6498463",
"0.6483466",
"0.64792794",
"0.64792794",
"0.63807136",
"0.635... | 0.68799716 | 3 |
Lists all completed appointments | def XfLk(QePW):
snVv = w2Wc.objects.all().filter(completed=True)
return _1tc(QePW, 'completed_appointments.html', {'appointments': snVv}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def snVv(QePW):\n wzkt = rIAI.localtime(rIAI.now())\n nPrm = {}\n xU0C = {}\n usx6 = []\n PwWw = RcdI.objects.filter(seen_time__isnull=False).filter(checkin_date__iexact=wzkt.date())\n Fd4y = PwWw.filter(finish_time__isnull=False)\n for jzdc in Fd4y:\n Csk6 = {}\n Csk6['id'] = jz... | [
"0.70405823",
"0.69358844",
"0.6691656",
"0.66775256",
"0.6669717",
"0.6491661",
"0.63387835",
"0.6337608",
"0.62747514",
"0.6011038",
"0.5888386",
"0.58656263",
"0.58645207",
"0.57239056",
"0.57122755",
"0.5704981",
"0.5633838",
"0.5601579",
"0.5481789",
"0.54587936",
"0.544... | 0.7818238 | 0 |
Return unique row values. | def _NJ_(YKHO):
return list(set([BHsk[0] for BHsk in YKHO.landscape])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hNgI(usx6, z0q4):\n hkxX = []\n for rdlD in usx6:\n hkxX.append(rdlD[z0q4])\n hkxX = set(hkxX)\n return hkxX",
"def EADW(usx6, fvDH):\n return set([rdlD[fvDH] for rdlD in usx6])",
"def hNgI(usx6, z0q4):\n PYV9 = set()\n for rdlD in usx6:\n PYV9.add(rdlD[z0q4])\n return... | [
"0.7763872",
"0.76682717",
"0.7427329",
"0.7181941",
"0.7151387",
"0.70599794",
"0.70087016",
"0.68221056",
"0.68171996",
"0.67726475",
"0.67377454",
"0.6690328",
"0.6446183",
"0.6429998",
"0.6352167",
"0.6325808",
"0.63168585",
"0.6271823",
"0.6248301",
"0.6242782",
"0.62318... | 0.72621524 | 3 |
Return unique col values. | def cBBe(YKHO):
return list(set([BHsk[1] for BHsk in YKHO.landscape])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DV61(YKHO):\n AtJO = len(YKHO.df[YKHO.col_name].unique())\n return AtJO",
"def EADW(usx6, fvDH):\n return set([rdlD[fvDH] for rdlD in usx6])",
"def hNgI(usx6, z0q4):\n hkxX = []\n for rdlD in usx6:\n hkxX.append(rdlD[z0q4])\n hkxX = set(hkxX)\n return hkxX",
"def TfAr(YKHO, tc... | [
"0.8017241",
"0.79388994",
"0.7912871",
"0.78138286",
"0.76319945",
"0.75911283",
"0.74789625",
"0.73798853",
"0.7112682",
"0.702473",
"0.68938774",
"0.68558615",
"0.6763925",
"0.66712695",
"0.6665255",
"0.66252613",
"0.64667904",
"0.63827485",
"0.63588256",
"0.6214178",
"0.6... | 0.6886812 | 11 |
Getter method for LandscapeCell._f_max property of Island instance. | def sXPR(Emd4):
return Emd4.params['f_max'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qfB5(YKHO):\n return YKHO._max",
"def rwK9(YKHO) -> _ABP.FloatingValue:\n return IPme.GeoYMax(YKHO).to_expr()",
"def max(YKHO):\n return YKHO._max_coords",
"def max(YKHO):\n return YKHO.__max",
"def PtQX(YKHO):\n return YKHO.properties.get('maximum')",
"def ZWqN(YKHO):\n return YKHO... | [
"0.7260386",
"0.72263217",
"0.72230726",
"0.7198294",
"0.7159727",
"0.715061",
"0.7146769",
"0.7146769",
"0.7086542",
"0.70571244",
"0.69791996",
"0.6900343",
"0.68943435",
"0.6879998",
"0.6859924",
"0.6847697",
"0.6814958",
"0.6802613",
"0.67975664",
"0.6780665",
"0.676816",... | 0.75995696 | 0 |
Getter method for LandscapeCell._fodder property. | def paGu(YKHO):
return YKHO._fodder | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vnSN(YKHO):\n pass",
"def eHNT(YKHO):\n if YKHO._f is not None:\n return YKHO._f\n if YKHO.larmor is None:\n return None\n if YKHO._ppm is not None:\n YKHO._f = (YKHO._ppm - YKHO._ppmshift) * YKHO.larmor * 1e-06\n return YKHO._f\n return None",
"def srqD(YKHO):\n ... | [
"0.58732045",
"0.5561921",
"0.5469103",
"0.5446388",
"0.5394377",
"0.53059864",
"0.5265515",
"0.52549964",
"0.52517664",
"0.5222427",
"0.5211383",
"0.5142021",
"0.5138665",
"0.5078845",
"0.5078024",
"0.50659364",
"0.50598496",
"0.5051501",
"0.50436074",
"0.50307596",
"0.50288... | 0.7192365 | 0 |
Setter method for LandscapeCell._fodder property. | def paGu(YKHO, jVO9):
YKHO._fodder = jVO9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def paGu(YKHO):\n return YKHO._fodder",
"def AhaF(YKHO):\n pass",
"def _kD4(YKHO):\n if YKHO.parent:\n YKHO.f = YKHO.setG(YKHO.parent.g) + YKHO.setH()\n else:\n YKHO.f = YKHO.setG() + YKHO.setH()\n return YKHO.f",
"def VnJt(YKHO, eHNT):\n YKHO.f = eHNT\n YKHO.refresh()",
... | [
"0.6226923",
"0.6212696",
"0.5517692",
"0.5320309",
"0.51716024",
"0.51112646",
"0.5079241",
"0.49785167",
"0.49501643",
"0.49382922",
"0.48588383",
"0.48471537",
"0.4788442",
"0.47740567",
"0.4714347",
"0.46752936",
"0.4674817",
"0.46725443",
"0.46531987",
"0.4644119",
"0.46... | 0.6110984 | 2 |
Getter method for LandscapeCell._is_mainland property. | def iTS9(YKHO):
return YKHO._is_mainland | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def akg6(YKHO):\n return {hksT: VmPb for hksT, VmPb in YKHO.landscape.items() if VmPb.is_mainland}",
"def YaKs(YKHO):\n return YKHO[YKHO.landmark_columns]",
"def YaKs(YKHO):\n return YKHO[YKHO.landmark_columns]",
"def AyI1(YKHO):\n return YKHO.container['side_wall']",
"def tHXH(YKHO):\n retu... | [
"0.62447333",
"0.5531503",
"0.5531503",
"0.54353625",
"0.53049135",
"0.52609074",
"0.5237441",
"0.52285284",
"0.5215378",
"0.5179901",
"0.5174118",
"0.5139008",
"0.51312906",
"0.51131773",
"0.50843114",
"0.5059011",
"0.50320953",
"0.5007997",
"0.5007153",
"0.4964402",
"0.4951... | 0.835515 | 0 |
Sorts all `carnivores` by `fitness` from higher to lower. | def u6QW(YKHO):
mmu5 = {YJ3B: YJ3B.fitness for YJ3B in YKHO.carnivores}
KNet = dict(sorted(mmu5.items(), key=lambda WKvO: WKvO[1], reverse=True))
return list(KNet.keys()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def csTc(YKHO):\n YKHO.fauna_list['Herbivore'].sort(key=seET.attrgetter('animal_fitness'))\n YKHO.fauna_list['Carnivore'].sort(key=seET.attrgetter('animal_fitness'), reverse=True)",
"def BA9O(YKHO):\n YKHO.candidates.sort(key=YKHO.sortFitness)\n return",
"def IqbF(YKHO):\n YKHO.population.sort(k... | [
"0.77107835",
"0.72214985",
"0.71205306",
"0.7016911",
"0.6791151",
"0.65467834",
"0.64414424",
"0.6319603",
"0.6285522",
"0.6280308",
"0.62016904",
"0.6193156",
"0.6133859",
"0.59983385",
"0.5886053",
"0.5863023",
"0.5784374",
"0.57115126",
"0.5681038",
"0.5665921",
"0.55872... | 0.7415279 | 1 |
This method will check if the author is creating a book with the same title that he has already created. | def s6ip(IjUU, wQQs, LPBA):
d4Dd = []
xfCG = {}
for jI4j in LPBA:
taDc = jI4j.author.username
xfCG[taDc] = jI4j.book_name
d4Dd.append(xfCG)
xfCG = {}
for jI4j in d4Dd:
for taDc, yd6Z in jI4j.items():
if yd6Z == wQQs and taDc == IjUU:
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PL9w(taDc, leAC, H6zX):\n jI4j = dl5x.query.filter_by(author=taDc, book_title=leAC, edition=H6zX).first()\n if jI4j:\n return True\n return False",
"def mFaM(YKHO, leAC, Z5r0):\n jHVt = [jI4j.get_isbn() for jI4j in YKHO.books.keys()]\n if Z5r0 in jHVt:\n print('ISBN {isbn} alread... | [
"0.7084978",
"0.66516525",
"0.6646654",
"0.62203574",
"0.6197589",
"0.59708244",
"0.5946598",
"0.5945097",
"0.59332937",
"0.5931482",
"0.5924121",
"0.5917307",
"0.5889866",
"0.58608824",
"0.58516216",
"0.58496094",
"0.5842271",
"0.58405405",
"0.5839544",
"0.5838867",
"0.57879... | 0.64411306 | 3 |
Float string minimal Inkscape representation (8 sf + D dp). | def EbwH(WKvO, lWPh=8):
if round(WKvO, lWPh) == 0:
return '0'
jzdc = abs(WKvO)
jzdc = round(jzdc, min(lWPh, 8 - max(pBSp(PCK9(jzdc)) + 1, 0)))
if jzdc % 1000 == 0:
YRbF = str(int(jzdc))
EzjL = YRbF.rstrip('0')
Ylbp = '{}e{}'.format(EzjL, len(YRbF) - len(EzjL))
elif jz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LcLv(WKvO):\n mghH = u'°'\n if WKvO < 0:\n return f'{abs(WKvO)}{mghH}S'\n else:\n return f'{WKvO}{mghH}N'",
"def e7qA(WKvO):\n return format(WKvO, '.4g')",
"def d2Xj(vIwR):\n return 0.0",
"def OBkE(WKvO, oeNL):\n return '%.7f' % WKvO",
"def OBkE(WKvO, oeNL):\n return ... | [
"0.61619323",
"0.6044224",
"0.60145175",
"0.60101914",
"0.60101914",
"0.60101914",
"0.5984221",
"0.5903303",
"0.5885753",
"0.5877492",
"0.5810578",
"0.5794507",
"0.57626677",
"0.5711459",
"0.57003593",
"0.5691539",
"0.56853855",
"0.56853855",
"0.56850356",
"0.56705695",
"0.56... | 0.5236897 | 88 |
Style string as input, dictionary of its attributes as output. Multiple and misplaced semicolons are skipped over seamlessly. | def cQAW(aPuY):
return dict((q2Xo.split(':') for q2Xo in faWw.findall(aPuY))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KRqE(YKHO, vIwR):\n hHld = ZbWC.findall('([^=]+)=([^;]+)(;|$)', str(vIwR).lower())\n if not hHld:\n return False\n _Cnz = vfMz()\n for kUBT in hHld:\n if 'fg' == kUBT[0]:\n _Cnz.setForeground(kUBT[1])\n elif 'bg' == kUBT[0]:\n _Cnz.setBackground(kUBT[1])\n... | [
"0.704506",
"0.65025985",
"0.647081",
"0.6375655",
"0.5701932",
"0.56727433",
"0.56223893",
"0.5592753",
"0.5531473",
"0.5528155",
"0.552802",
"0.5513635",
"0.54624325",
"0.5455829",
"0.54307246",
"0.54259133",
"0.5425541",
"0.5402203",
"0.53839004",
"0.5370589",
"0.5349517",... | 0.70628744 | 0 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def FVid(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(KndY))
QrM1.xticks(wIWT, KndY, rotation=45)
QrM1.yticks(wIWT, KndY)
if NkkI:
Bcwd = Bcwd.astype... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.81940335",
"0.8095006",
"0.80290395",
"0.8019189",
"0.7993875",
"0.7991161",
"0.79809004",
"0.7975263",
"0.7961412",
"0.7956938",
"0.7937461",
"0.7934524",
"0.7934342",
"0.7931134",
"0.7926225",
"0.79244965",
"0.792367",
"0.79231006",
"0.7922885",
"0.792215",
"0.7917699",
... | 0.0 | -1 |
Checks that all currencies have exchange rate with non negative values. | def Nups(DpUl, w2B8, Ty9i=False):
nfqd = []
print('Checking that all currencies have a valid exchange rate...')
a1PO = 'currencies'
Z9rn = 'to_dollars'
xDcj = f'\n SELECT COUNT(*) FROM {a1PO}\n WHERE {Z9rn} <= 0\n OR {Z9rn} IS NULL\n '
try:
DpUl.execut... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4vG(YKHO):\n SeJg = Er1K.db.get_value('Company', YKHO.company, 'default_currency')\n if not SeJg:\n YG42(bGrB('Please specify currency in Company') + ': ' + YKHO.company, raise_exception=yrAe)\n sLum = Er1K.db.get_values('Price List', [YKHO.price_list], 'currency')\n for QuDu, VIXL in sLum.... | [
"0.69747007",
"0.62878335",
"0.62022275",
"0.61810416",
"0.6147035",
"0.6143961",
"0.59718674",
"0.59453756",
"0.5879294",
"0.5876464",
"0.5789517",
"0.5780246",
"0.57712007",
"0.5750224",
"0.5750019",
"0.56792",
"0.5651312",
"0.56410223",
"0.5634037",
"0.5615107",
"0.5610797... | 0.65103465 | 1 |
Check that all descriptions in `industries` are filled. | def Cfz3(DpUl, w2B8, Ty9i=False):
nfqd = []
print('Checking that all descriptions in `industries` are filled...')
a1PO = 'industries'
Z9rn = 'description'
xDcj = f'SELECT COUNT(*) FROM {a1PO} WHERE {Z9rn} IS NULL'
try:
DpUl.execute(xDcj)
w2B8.commit()
rdlD = DpUl.fetchone... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QXHB(YKHO, Aofo):\n iitt = {'company', 'title', 'url', 'locations'}\n for Mkmy in Aofo:\n if not iitt.issubset(set(Aofo.keys())):\n return False\n return True",
"def g9tm(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n nPrm = geh0.data\n YKHO.assertIn('id', nPrm)\n YKHO.ass... | [
"0.5525462",
"0.5483162",
"0.53835434",
"0.5309033",
"0.52606326",
"0.5252952",
"0.52517116",
"0.5250915",
"0.5241845",
"0.52271897",
"0.5223953",
"0.5220568",
"0.5216686",
"0.5211856",
"0.51563776",
"0.5142321",
"0.51061594",
"0.50775707",
"0.50756884",
"0.50648504",
"0.5052... | 0.6680115 | 0 |
Return a proper string representation of None, if None is given, otherwise the given string. | def AI8B(KCHu):
return KCHu or 'N/A' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dQKU(wEf2):\n return str(wEf2) if wEf2 is not None else None",
"def Ai6x(l5Ny):\n if l5Ny in (None, ''):\n return 'None'\n else:\n return str(l5Ny)",
"def hKOG(d7pR: Any) -> h8nf[str]:\n if isinstance(d7pR, str):\n if len(d7pR) > 0:\n return str(d7pR)\n return... | [
"0.7977171",
"0.7779768",
"0.7402333",
"0.7094692",
"0.70528096",
"0.6903888",
"0.685519",
"0.68194133",
"0.67747205",
"0.674232",
"0.6625076",
"0.6612874",
"0.6593355",
"0.648822",
"0.64873934",
"0.6461257",
"0.6445033",
"0.6443308",
"0.641366",
"0.640577",
"0.6349751",
"0... | 0.0 | -1 |
Run an input x through the model using the new convolutional weights | def F38d(YKHO, WKvO):
for or8S, (XcU5, Fg_i) in enumerate(zip(YKHO._conv_weights, YKHO._conv_biases)):
Aaji = YKHO.n_values[or8S]
EM_o = YKHO.k_values[or8S]
WKvO = YKHO.conv_layer_as_matrix_op(XcU5, Fg_i, WKvO, Aaji, EM_o)
WKvO = WKvO.flatten()
xJ3V = YKHO.n_values[or8S + 1]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO):\n WKvO = YKHO.conv1(WKvO)\n if YKHO.use_bn:\n WKvO = YKHO.batchnorm(WKvO)\n if YKHO.use_dropout:\n WKvO = YKHO.dropout(WKvO)\n WKvO = YKHO.activation(WKvO)\n WKvO = YKHO.conv2(WKvO)\n if YKHO.use_bn:\n WKvO = YKHO.batchnorm(WKvO)\n if YKHO.use_dropout... | [
"0.7162154",
"0.7108813",
"0.70773566",
"0.7060195",
"0.6966304",
"0.69613385",
"0.69249135",
"0.6915375",
"0.6887616",
"0.6875819",
"0.6838874",
"0.6838874",
"0.68166244",
"0.6804043",
"0.6804043",
"0.67920786",
"0.67825353",
"0.67816883",
"0.67723924",
"0.67609173",
"0.6747... | 0.76002765 | 0 |
Send message to slack API | def n3T8(YKHO, **B2fa):
return YKHO.send(B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sczE(YKHO, Ol8d):\n YKHO.slack_client.api_call('chat.postMessage', channel=YKHO.slack_channel, text=Ol8d, username=YKHO.username, icon_emoji=YKHO.slack_icon_emoji)\n print('Slack Notification sent')",
"def mE3u(Ol8d):\n L96S = 'https://hooks.slack.com/services/T0ATXM90R/B628UTNMV/1qs7z8rlQBwmb5p3PAF... | [
"0.79324365",
"0.7868449",
"0.77771735",
"0.7640284",
"0.75129026",
"0.7455066",
"0.7357417",
"0.72468823",
"0.72201645",
"0.72018766",
"0.71612376",
"0.71433437",
"0.7133963",
"0.70241785",
"0.70194995",
"0.6994208",
"0.69905776",
"0.6862392",
"0.68473846",
"0.6832329",
"0.6... | 0.0 | -1 |
Write dataframe to csv file | def RZtn(pmON: str, ynsn: pd.DataFrame) -> None:
ynsn.to_csv(pmON, index=False, header=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xMnm(gIsw, bOBl):\n print('\\nSaved result to {}\\n'.format(gIsw))\n bOBl.to_csv(gIsw, mode='a', header=False, index=False)",
"def eFxq(Kiac, qaEx):\n Kiac.to_csv(qaEx)\n return None",
"def RZtn(YKHO):\n YKHO.tableView.df.to_csv('Data export.csv', index=False)\n print('CSV file exported')... | [
"0.8174892",
"0.8029842",
"0.79994154",
"0.798863",
"0.7965025",
"0.79148513",
"0.7852765",
"0.7796952",
"0.7765033",
"0.7741142",
"0.7736012",
"0.7733297",
"0.7683811",
"0.7671546",
"0.76610994",
"0.7660079",
"0.7572742",
"0.7568689",
"0.74769837",
"0.74458474",
"0.73920983"... | 0.78190386 | 7 |
Get all of the file paths in the directory specified by suffix. | def Bw2A(AGPF: str, ZI14: str) -> list:
ckRy = []
for pmON, uRGD, iumf in Hy7s.walk(AGPF):
for Ux0P in iumf:
if Ux0P.endswith(ZI14):
ckRy.append(Hy7s.path.join('..', pmON, Ux0P))
return ckRy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OTsP(AGPF, ZI14='.tsv'):\n for Kwmb in GkAb(AGPF).glob('**'):\n if Kwmb.is_dir():\n yield [str(eHNT) for eHNT in Kwmb.glob('*') if eHNT.is_file() and eHNT.suffix == ZI14]",
"def A99F(ZI14, pmON):\n kXSl = []\n Ir9p(ZI14, pmON, kXSl)\n return kXSl",
"def A99F(ZI14, pmON):\n ... | [
"0.77649754",
"0.7681777",
"0.7636498",
"0.7592939",
"0.758829",
"0.75638276",
"0.7513167",
"0.75071305",
"0.7506748",
"0.7427239",
"0.7419402",
"0.73902535",
"0.73786026",
"0.7304414",
"0.71981364",
"0.71593034",
"0.7145902",
"0.7085814",
"0.7085814",
"0.70154583",
"0.701545... | 0.75887126 | 4 |
Set up the main window | def Phkg(YKHO, mBtZ):
super(xvgk, YKHO).finish_initializing(mBtZ)
YKHO.AboutDialog = F5Wj
YKHO.PreferencesDialog = soGE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zvL6(YKHO):\n YKHO.main_menu_window = hSph.MainMenuFrame(YKHO.uiCoordinator)\n YKHO.menu_window = YKHO.main_menu_window._mf\n YKHO.score_window = YKHO.main_menu_window._hf\n YKHO.instructions_window = YKHO.main_menu_window._if\n YKHO.menu_window.playButton.focus_set()",
"def b8V_(YKHO):\n Y... | [
"0.80549276",
"0.77803993",
"0.76101744",
"0.76079625",
"0.76058704",
"0.75583404",
"0.75058156",
"0.7500768",
"0.7449036",
"0.74340516",
"0.7430231",
"0.73911846",
"0.73764753",
"0.730698",
"0.7291845",
"0.7287895",
"0.72417337",
"0.72298133",
"0.72146386",
"0.7190348",
"0.7... | 0.0 | -1 |
Derive the next owner group sequence number from the number of existing groups. | def o2iD(sVjH) -> int:
UHFx: int = len(sVjH.owner_groups)
for lQ3t in sVjH.change_registrations:
if lQ3t.owner_groups:
UHFx += len(lQ3t.owner_groups)
return UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzg2(YKHO):\n if not hasattr(YKHO.space, '_group_ctr'):\n YKHO.space._group_ctr = 999\n YKHO.space._group_ctr += 1\n return YKHO.space._group_ctr",
"def p78c(YKHO):\n e7pw = YKHO._nextGroupId\n YKHO._nextGroupId += 1\n return str(e7pw)",
"def lnAX(YKHO):\n DpUl = YKHO._next_sequ... | [
"0.7268382",
"0.6964213",
"0.6463295",
"0.6186053",
"0.6181634",
"0.6181634",
"0.6117854",
"0.6030557",
"0.5942088",
"0.5916832",
"0.58382547",
"0.5800748",
"0.5789288",
"0.5776522",
"0.57567704",
"0.57567704",
"0.57415366",
"0.57354325",
"0.57249",
"0.5715812",
"0.5714009",
... | 0.54254884 | 40 |
Return if the registration type is a type of Transfer Due to Death. | def FEGa(QDsj: str) -> bool:
return QDsj and QDsj in (z0Zn.TRANS_ADMIN, z0Zn.TRANS_AFFIDAVIT, z0Zn.TRANS_WILL, z0Zn.TRAND) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVom(QDsj: str) -> bool:\n return QDsj and QDsj in (z0Zn.TRANS_ADMIN, z0Zn.TRANS_AFFIDAVIT, z0Zn.TRANS_WILL)",
"def _fdx(YKHO):\n if YKHO.killer:\n if YKHO.killer.stype == 'fire' and (not YKHO.killer in YKHO.pjs.fires):\n return True\n elif YKHO.killer.stype == 'enemy' and YKHO... | [
"0.7528021",
"0.6433941",
"0.63929725",
"0.6266077",
"0.5769359",
"0.5665921",
"0.56475866",
"0.56209517",
"0.55984294",
"0.55876935",
"0.549508",
"0.5452859",
"0.54245985",
"0.5410927",
"0.53696936",
"0.5331413",
"0.53019303",
"0.52880794",
"0.52818245",
"0.52271557",
"0.521... | 0.80803174 | 0 |
Return if the registration type is a type of Transfer Due to Death. | def VVom(QDsj: str) -> bool:
return QDsj and QDsj in (z0Zn.TRANS_ADMIN, z0Zn.TRANS_AFFIDAVIT, z0Zn.TRANS_WILL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FEGa(QDsj: str) -> bool:\n return QDsj and QDsj in (z0Zn.TRANS_ADMIN, z0Zn.TRANS_AFFIDAVIT, z0Zn.TRANS_WILL, z0Zn.TRAND)",
"def _fdx(YKHO):\n if YKHO.killer:\n if YKHO.killer.stype == 'fire' and (not YKHO.killer in YKHO.pjs.fires):\n return True\n elif YKHO.killer.stype == 'ene... | [
"0.80799603",
"0.6434263",
"0.6391993",
"0.6267138",
"0.5769441",
"0.56659275",
"0.5648029",
"0.5621463",
"0.5599219",
"0.55878174",
"0.5496133",
"0.5453963",
"0.5426138",
"0.54113925",
"0.53712",
"0.53318685",
"0.5302389",
"0.52904683",
"0.52796453",
"0.5227657",
"0.52216655... | 0.75272846 | 1 |
a utf8 intermediate byte starts with the bits 10xxxxxx | def SXTN(Fg_i):
return ord(Fg_i) & 192 != 128 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jShR(mLGw):\n if mLGw < 8:\n return 1\n else:\n return mLGw // 6 + 1\n return neaT",
"def lIJv():\n dcxj, Ac0x, Q6uT, nUeQ = GXo9()\n EMr5 = ''\n for HkJz in range(0, len(Ac0x), 8):\n YB8B = Ac0x[HkJz:HkJz + 8]\n Wxnj = int(YB8B, 2)\n EMr5 += chr(Wxnj)\n ... | [
"0.71861124",
"0.6619024",
"0.63067967",
"0.6262105",
"0.6221675",
"0.6198041",
"0.6138288",
"0.607559",
"0.602441",
"0.5991305",
"0.59599704",
"0.59136045",
"0.59116125",
"0.5905374",
"0.58948386",
"0.58777654",
"0.58720964",
"0.58706033",
"0.5865396",
"0.58437234",
"0.58192... | 0.67118126 | 1 |
Flattens JSON from a given file. | def PWgb(nPrm):
mrVf = []
_M_F = {'cop_edition': nPrm['cop_edition'], 'collection_start': nPrm['collection_start'], 'collection_end': nPrm['collection_end']}
for l3QS in nPrm['articles']:
I30R = {'newspaper': l3QS['newspaper'], 'political_orientation': tSBW(l3QS['newspaper']), 'headline': l3QS['head... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dxSy(uRP3):\n with open(uRP3) as zgjV:\n Csk6 = qQXR.load(zgjV)\n return Csk6",
"def lc9H(YKHO, nUeQ):\n with open(nUeQ, 'r', encoding='utf8') as eHNT:\n YKHO.extend(qQXR.load(eHNT))",
"def PSj2(nUeQ):\n with open(nUeQ, 'r') as hOYR:\n return qQXR.load(hOYR)",
"def W5... | [
"0.63672173",
"0.6293192",
"0.6266026",
"0.6148497",
"0.6120157",
"0.6117946",
"0.60921836",
"0.6092075",
"0.60511994",
"0.60437727",
"0.6011525",
"0.6011525",
"0.5995071",
"0.5968212",
"0.5940287",
"0.5922406",
"0.59110177",
"0.59110177",
"0.5893223",
"0.5887829",
"0.5879024... | 0.0 | -1 |
Validate the user's password, return false if validation fail. | def sNjs(YKHO, jTXt):
CBIr = YKHO.get()
if CBIr:
return B8ni.verify(jTXt, CBIr['password'])
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tg18(YKHO, jTXt):\n if YKHO.password:\n NTfD = YKHO.password[:29]\n return YKHO.password == B8ni.hashpw(jTXt, NTfD)\n else:\n return False",
"def tg18(YKHO, jTXt):\n return axsU().check_password_hash(YKHO.password, jTXt)",
"def EvfH(YKHO, jTXt):\n if YKHO.password is None:\... | [
"0.8052305",
"0.80473125",
"0.7996386",
"0.7989366",
"0.797277",
"0.7935312",
"0.7905915",
"0.7876357",
"0.785416",
"0.7822384",
"0.7815065",
"0.77942777",
"0.7784426",
"0.7784426",
"0.7760864",
"0.77542955",
"0.77422935",
"0.7705802",
"0.76797736",
"0.7646487",
"0.7630888",
... | 0.7849507 | 9 |
Return a list of Usergroup objects in which the User is a member. | def MvIi(YKHO):
Narx = YKHO.get()
u8YN = []
if Narx:
for wvau in pNZh.match(start_node=Narx, rel_type='in'):
u8YN.append(pTpi(id=wvau.end_node()['id']))
return u8YN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPdx(YKHO, CBIr):\n if not hasattr(CBIr, '_group_member_groups'):\n CBIr._group_member_groups = [YKHO[uOe2] for uOe2 in YKHO.root.keys() if YKHO[uOe2].is_member(CBIr, slow=True)]\n return CBIr._group_member_groups",
"def pbsP(CBIr: User) -> [cQ68]:\n moMn = []\n for uOe2 in cQ68.objects:\n... | [
"0.8238182",
"0.78426594",
"0.78377885",
"0.7591925",
"0.75571036",
"0.749305",
"0.7366647",
"0.731246",
"0.7309097",
"0.72647095",
"0.7212025",
"0.71888405",
"0.7164496",
"0.71636564",
"0.7042197",
"0.70325667",
"0.7019271",
"0.70115685",
"0.69961643",
"0.69479555",
"0.69389... | 0.8087502 | 1 |
This function returns the examples in the raw (text) form. | def zDiL(YKHO, VqRE):
bo34.info('generating examples from = %s', VqRE)
with open(VqRE, encoding='utf-8') as eHNT:
VO67 = qQXR.load(eHNT)
for hbFX in VO67:
VO67[hbFX]['id'] = hbFX
yield (hbFX, VO67[hbFX]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2wT():\n _73Q = Kf9k(dqLT).read()\n _73Q = ZbWC.sub('^#.*\\\\n?', '', _73Q.decode(), flags=ZbWC.MULTILINE)\n TDw3 = ZbWC.escape(bkIO)\n m2Ws = ZbWC.compile(TDw3 + '(.*?)' + TDw3, ZbWC.S)\n lpha = ZbWC.findall(m2Ws, _73Q)\n return [ZT_w(PU1l) for PU1l in lpha]",
"def _73Q(YKHO):\n return... | [
"0.6475851",
"0.64643687",
"0.6314795",
"0.6241491",
"0.61601883",
"0.5979994",
"0.59604007",
"0.59122866",
"0.5801395",
"0.57639563",
"0.5722876",
"0.57057697",
"0.5699199",
"0.56715703",
"0.56442004",
"0.56433356",
"0.56305236",
"0.56274277",
"0.56175506",
"0.5615394",
"0.5... | 0.0 | -1 |
Return a sorted QuerySet of outputs produced by this Transformation. | def hCO3(YKHO):
return YKHO.outputs.order_by('dataset_idx') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SAZ7(YKHO):\n YKHO.sort_and_reduce()\n return YKHO.data",
"def SR0I(YKHO, QePW):\n umWR = YKHO.model.all_objects.get_query_set()\n mJZc = YKHO.ordering or ()\n if mJZc:\n umWR = umWR.order_by(*mJZc)\n return umWR",
"def EGM2(YKHO):\n return YKHO.inputs.order_by('dataset_idx')",
... | [
"0.6856667",
"0.661067",
"0.64141405",
"0.62931794",
"0.62715125",
"0.6265818",
"0.62118936",
"0.61536956",
"0.6153121",
"0.604664",
"0.6042609",
"0.5998332",
"0.59798694",
"0.5909811",
"0.59077233",
"0.590417",
"0.58883536",
"0.5855151",
"0.58533245",
"0.58482444",
"0.584824... | 0.74931604 | 0 |
Create a TransformationXput for this Transformation. Decides whether the created TransformationXput should have a structure or not based on the parameters given. If compounddatatype os None but row limits are provided, then a ValueError is raised. PARAMETERS dataset_name name for new xput dataset_idx index for new outp... | def z1Dl(YKHO, j3aw, ETiu=None, nrC1=None, PX2a=None, jNOo=None, input=True, x0SS=True):
rnfv, FccS = (None, None) if not PX2a else PX2a
WKvO, LVAh = (0, 0) if not jNOo else jNOo
if nrC1 is None and (rnfv is not None or FccS is not None):
raise ValueError('Row restrictions cannot be specified withou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vWdF(YKHO, j3aw, ETiu=None, nrC1=None, rnfv=None, FccS=None, WKvO=0, LVAh=0, x0SS=True):\n return YKHO.create_xput(j3aw, ETiu, nrC1, (rnfv, FccS), (WKvO, LVAh), True, clean=x0SS)",
"def N15c(YKHO, j3aw, ETiu=None, nrC1=None, rnfv=None, FccS=None, WKvO=0, LVAh=0, x0SS=True):\n return YKHO.create_xput(j3... | [
"0.72575265",
"0.7146922",
"0.66140723",
"0.5251067",
"0.47382745",
"0.4657938",
"0.46224844",
"0.4591457",
"0.45721754",
"0.45600256",
"0.45527235",
"0.45186523",
"0.43970025",
"0.43879244",
"0.438423",
"0.43647593",
"0.43591645",
"0.43418604",
"0.4321488",
"0.42868546",
"0.... | 0.7988054 | 0 |
Accessor that returns min_row for this xput (and None if it is raw). | def vyp0(YKHO):
return None if YKHO.is_raw() else YKHO.structure.min_row | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohV5(YKHO):\n dgIT = YKHO.df[YKHO.col_name].min()\n return dgIT",
"def z8Ti(YKHO, khdS):\n return YKHO.wb[khdS].min_row",
"def min(YKHO):\n return YKHO.get_first()",
"def XcNI(YKHO):\n return YKHO.min",
"def XcNI(YKHO):\n return YKHO.min",
"def ohV5(YKHO, li6g):\n if YKHO.isIndex... | [
"0.73047584",
"0.7183337",
"0.6936744",
"0.6934594",
"0.6934594",
"0.69166476",
"0.6890434",
"0.68705785",
"0.68061024",
"0.678977",
"0.678977",
"0.67767787",
"0.67233044",
"0.6701944",
"0.6698056",
"0.6680635",
"0.66586375",
"0.66574216",
"0.6656859",
"0.66483414",
"0.664834... | 0.89773214 | 0 |
Accessor that returns max_row for this xput (and None if it is raw). | def cAiu(YKHO):
return None if YKHO.is_raw() else YKHO.structure.max_row | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LIGh(YKHO, khdS):\n return YKHO.wb[khdS].max_row",
"def aohu(YKHO):\n if YKHO.right is None:\n return YKHO.data\n return YKHO.right.getMaxValue()",
"def vyp0(YKHO):\n return None if YKHO.is_raw() else YKHO.structure.min_row",
"def qfB5(YKHO):\n bQ6z = YKHO.df[YKHO.col_name].max()\n ... | [
"0.6603825",
"0.6575399",
"0.65357685",
"0.65208274",
"0.65103996",
"0.6506023",
"0.64990634",
"0.6469231",
"0.64600104",
"0.6414351",
"0.63631517",
"0.63476604",
"0.63452995",
"0.62628424",
"0.625559",
"0.62500894",
"0.62500894",
"0.6236911",
"0.61934155",
"0.6173751",
"0.61... | 0.8889727 | 0 |
InstallRequirement should strip the fragment, but not the query. | def MsGz(YKHO):
bD7m = 'http://foo.com/?p=bar.git;a=snapshot;h=v0.1;sf=tgz'
vBtp = '#egg=bar'
qv1X = SAPF.from_line(bD7m + vBtp)
assert qv1X.link.url == bD7m + vBtp, qv1X.link | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kCTT(YKHO):\n bD7m = 'git+http://foo.com@ref#egg=foo'\n qv1X = SAPF.from_line(bD7m)\n assert qv1X.link.url == bD7m",
"def QLuG(qv1X):\n import pkg_resources\n qv1X = pkg_resources.Requirement.parse(str(qv1X))\n qv1X.marker = None\n return qv1X",
"def pD5j(qv1X: str) -> str:\n AdfU =... | [
"0.58563876",
"0.58517206",
"0.57542473",
"0.53614986",
"0.51657397",
"0.5049659",
"0.50453866",
"0.5038694",
"0.50075597",
"0.49775535",
"0.49354988",
"0.49292803",
"0.49132296",
"0.48771584",
"0.4872287",
"0.48662725",
"0.47926253",
"0.47857955",
"0.47644773",
"0.47614238",
... | 0.64154553 | 0 |
Confirm the url is preserved in a noneditable requirement | def kCTT(YKHO):
bD7m = 'git+http://foo.com@ref#egg=foo'
qv1X = SAPF.from_line(bD7m)
assert qv1X.link.url == bD7m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KSw8(YKHO):\n pass",
"def MgiZ(YKHO) -> bool:\n xzCw = QnFP()\n try:\n xzCw(YKHO.args.url)\n return False\n except sUXu:\n return True",
"def yxx0(YKHO):\n bD7m = 'git+http://foo.com@ref#egg=foo'\n qv1X = SAPF.from_editable(bD7m)\n assert qv1X.link.url == bD7m",
... | [
"0.6791629",
"0.6630487",
"0.6622125",
"0.6376516",
"0.6347378",
"0.63120294",
"0.6310208",
"0.62562466",
"0.61690724",
"0.6154701",
"0.6074883",
"0.6030364",
"0.6028999",
"0.6012266",
"0.6001498",
"0.59947854",
"0.5988226",
"0.59794486",
"0.5937128",
"0.59371084",
"0.5930754... | 0.0 | -1 |
a functiob that create an object from a JSON file | def EBvf(Ux0P):
with open(Ux0P, encoding='utf-8') as round:
return qQXR.load(round) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MCoo(NqAa):\n object = qQXR.loads(NqAa)\n print(object)\n return object",
"def pktP(Emd4, IznC):\n Csk6 = PSj2(IznC)\n return Emd4.from_dict(Csk6)",
"def GGri(Emd4, Ux0P):\n with open(Hy7s.path.expanduser(Ux0P), encoding='utf-8') as eHNT:\n return qQXR.load(eHNT, object_hook=Ajl8)"... | [
"0.7876436",
"0.75865996",
"0.7458397",
"0.7367503",
"0.7363153",
"0.73537076",
"0.72816974",
"0.72788084",
"0.7260943",
"0.7225283",
"0.7211591",
"0.71972865",
"0.71593183",
"0.7146577",
"0.71331924",
"0.7130283",
"0.71249133",
"0.7108719",
"0.71063197",
"0.70940083",
"0.709... | 0.6522976 | 81 |
Constructs a Dummy application window. Do not call directly, use create_application_window. | def FIMM(YKHO, P4t4, *bGrB):
super(owSI, YKHO).__init__(P4t4, None)
YKHO.group_windows = [nnn0(P4t4)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def isTm(P4t4):\n GPtr = P4t4.config()\n eFlV = str(GPtr.gui())\n if eFlV.upper() == 'NONE':\n if str(GPtr['enable-splash']).upper() != 'FALSE':\n v4X7(P4t4)\n return owSI(P4t4)\n elif eFlV.upper() == 'TK':\n import llia.gui.tk.tk_appwindow as UwXa\n Kgn2 = UwXa.T... | [
"0.7326208",
"0.716374",
"0.7110603",
"0.6991344",
"0.62828904",
"0.6254757",
"0.624171",
"0.62128186",
"0.62024164",
"0.61657685",
"0.61042386",
"0.61020046",
"0.6101551",
"0.5991275",
"0.5977518",
"0.59647137",
"0.5955362",
"0.5941144",
"0.5934068",
"0.5930566",
"0.592169",... | 0.67147046 | 4 |
REmove the BOM marker except at the beginning of the string | def w8L4(SLB4):
RIiI = SLB4.startswith(u'\ufeff')
SLB4 = SLB4.replace(u'\ufeff', '')
return SLB4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K_db(l5Ny):\n if T_Uj.BOM_UTF8.decode('utf-8') in l5Ny:\n return l5Ny.replace(T_Uj.BOM_UTF8.decode('utf-8'), '')\n if T_Uj.BOM.decode('utf-16') in l5Ny:\n return l5Ny.replace(T_Uj.BOM.decode('utf-16'), '')\n if T_Uj.BOM_BE.decode('utf-16-be') in l5Ny:\n return l5Ny.replace(T_Uj.BO... | [
"0.71555895",
"0.69615155",
"0.6829834",
"0.6778082",
"0.67234707",
"0.6324943",
"0.6160414",
"0.60492104",
"0.5918648",
"0.5853201",
"0.58167225",
"0.58117616",
"0.58061695",
"0.5790491",
"0.5770036",
"0.56134284",
"0.5604382",
"0.5546739",
"0.5528419",
"0.55246675",
"0.5503... | 0.7256657 | 0 |
Renders the home page. | def kZiy(QePW):
assert isinstance(QePW, eu5F)
qm1k = 'index.html'
QpfX = {'title': 'RU-Cesar', 'year': qcWV.now().year, 'is_longdale_user': rkbK(QePW, 'longdale_user'), 'pfx': uFua, 'site_url': dp9S.site.site_url}
NtEF = QePW.user.username
if NtEF != None and NtEF != '':
deVW = ZbWC.match('^... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the about page. | def vsuQ(QePW):
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'about.html', {'is_longdale_user': rkbK(QePW, 'longdale_user'), 'title': 'About', 'message': 'Radboud University CESAR utility.', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.7464537 | 85 |
String for representing the Model object (in Admin site etc.) | def zAg0(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return '%s%s' % (YKHO.name, ' - %s' % YKHO.model if YKHO.model else '')",
"def zAg0(YKHO):\n C3ST = YKHO._meta.verbose_name.title()\n return f'{C3ST:s}: {YKHO.name:s}'",
"def zAg0(YKHO):\n C3ST = YKHO._meta.... | [
"0.7801624",
"0.77112937",
"0.767426",
"0.767426",
"0.7524702",
"0.74020135",
"0.7398639",
"0.7378346",
"0.7328583",
"0.7270028",
"0.7244434",
"0.7233179",
"0.7205981",
"0.7174358",
"0.7165676",
"0.7108926",
"0.70379156",
"0.70379156",
"0.7012156",
"0.69865996",
"0.6968002",
... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return YKHO.title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.82368803",
"0.79901737",
"0.7849152",
"0.78468513",
"0.77520275",
"0.7625378",
"0.7625378",
"0.76225406",
"0.76225406",
"0.75483394",
"0.7522958",
"0.7470355",
"0.7469358",
"0.7447144",
"0.7447144",
"0.74314755",
"0.7427648",
"0.7389925",
"0.7351721",
"0.73424315",
"0.7322... | 0.0 | -1 |
Creates a string for the Genre. This is required to display genre in Admin. | def R9YW(YKHO):
return ', '.join([Pr14.name for Pr14 in YKHO.genre.all()[:3]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R9YW(YKHO):\n return ', '.join([Pr14.name for Pr14 in YKHO.genre.all()[:3]])",
"def L12Z(QePW):\n if QePW.method == 'POST':\n L03z = TSNo(QePW.POST)\n if L03z.is_valid():\n Pr14 = L03z.save(commit=False)\n Pr14.save()\n else:\n L03z = TSNo()\n MDIn = zOP... | [
"0.68910015",
"0.68397367",
"0.6693303",
"0.6687025",
"0.6640322",
"0.6590145",
"0.6582849",
"0.65675485",
"0.6550318",
"0.64924973",
"0.6377207",
"0.63439673",
"0.6292244",
"0.6282142",
"0.6138984",
"0.6097099",
"0.6084374",
"0.6041633",
"0.59845865",
"0.5961023",
"0.5876851... | 0.65876687 | 6 |
String for representing the Model object | def zAg0(YKHO):
return '{0} ({1})'.format(YKHO.id, YKHO.book.title) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.8219232",
"0.8020793",
"0.77580154",
"0.7699273",
"0.7683828",
"0.7678613",
"0.7568337",
"0.7568337",
"0.75642484",
"0.75642484",
"0.75589746",
"0.75219977",
"0.75219977",
"0.7509915",
"0.75078505",
"0.7363909",
"0.73598325",
"0.7340365",
"0.73359716",
"0.73188025",
"0.731... | 0.0 | -1 |
String for representing the Model object. | def zAg0(YKHO):
return '{0}, {1}'.format(YKHO.last_name, YKHO.first_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return super().__str__() + YKHO.model.__str__()",
"def zAg0(YKHO):\n return 'DataModel(name={},attributes={},description={})'.format(YKHO.name, {jzdc.name: str(jzdc) for jzdc in YKHO.attributes}, YKHO.description)",
"def zAg0(YKHO):\n Ylbp = ['>>> Model %(model_name)s <<<']\n Ylbp... | [
"0.8236334",
"0.7989569",
"0.7848069",
"0.7846481",
"0.77509546",
"0.7624108",
"0.7624108",
"0.7623108",
"0.7623108",
"0.75479686",
"0.75224715",
"0.7470156",
"0.74694866",
"0.7446042",
"0.7446042",
"0.7430364",
"0.7427066",
"0.73897326",
"0.7349858",
"0.7340906",
"0.7322887"... | 0.0 | -1 |
When a DescribeCoverage request is made without version, the server returns service exception. | def KL3o(YKHO):
enyw = {'ReQuEsT': 'DescribeCoverage', 'SeRvIcE': 'WCS', 'BOGUS': 'SSS'}
geh0 = YKHO.query_server(enyw)
Z9JV = rKuS(geh0.text, 'xml')
YKHO.assertTrue(Z9JV.find('ServiceExceptionReport'), msg='The server should return an exception if the version is not included in a DescribeCoverage reque... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tvAN(YKHO):\n enyw = {'ReQuEsT': 'DescribeCoverage', 'SeRvIcE': 'WCS', 'BOGUS': 'SSS', 'Version': '1.0.0', 'COVERAGE': 'asdfasfasdf'}\n geh0 = YKHO.query_server(enyw)\n Z9JV = rKuS(geh0.text, 'xml')\n YKHO.assertTrue(Z9JV.find('ServiceExceptionReport'), msg='The server should return an exception if... | [
"0.688448",
"0.68293554",
"0.65183294",
"0.6488871",
"0.5555915",
"0.5380862",
"0.5362322",
"0.5339509",
"0.53340733",
"0.5268422",
"0.5260983",
"0.5207646",
"0.51945555",
"0.51736444",
"0.5159731",
"0.5152983",
"0.51491094",
"0.5137445",
"0.5131629",
"0.5131629",
"0.5112142"... | 0.70847917 | 0 |
return a specific string in content with regular expression. | def gRrm(gxiP, l5Ny, hE03=1):
kUBT = ZbWC.search(gxiP, l5Ny)
if kUBT:
return kUBT.group(hE03)
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZDcV(YKHO, mzGW, hGN5):\n j5it = ZbWC.findall(mzGW, hGN5)\n assert j5it is not None, 'ERROR: Could not extract any content, check regex string'\n return j5it",
"def HlGW(YKHO, mXDZ):\n kUBT = mXDZ.match(YKHO.text, YKHO.cur)\n if kUBT is not None:\n return kUBT.group()",
"def iXC1(YKHO... | [
"0.64388967",
"0.63961595",
"0.639168",
"0.6096121",
"0.6011971",
"0.59810245",
"0.5931503",
"0.57514685",
"0.57335716",
"0.57265383",
"0.57153904",
"0.57100064",
"0.56549627",
"0.56028265",
"0.55915165",
"0.55691165",
"0.5521213",
"0.5516521",
"0.5509329",
"0.546697",
"0.545... | 0.56034416 | 13 |
String representation of TreeClassifier | def wHJl(YKHO, tX49=None):
if tX49 is None:
tX49 = []
y0cW = 'groups=%s' % repr(YKHO._groups)
return super(IzIx, YKHO).__repr__([y0cW] + tX49) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZYRc(YKHO, Q6kx):\n vIwR = ''\n for aUGN in sorted(Q6kx.children):\n vIwR += Q6kx.depth * '\\t'\n if Q6kx.depth > 0:\n vIwR += '|'\n vIwR += Q6kx.feature + '=' + aUGN\n if Q6kx.children[aUGN].is_leaf:\n vIwR += ':' + Q6kx.children[aUGN].pred + '\\n'\n ... | [
"0.7572435",
"0.7378224",
"0.72319126",
"0.7179676",
"0.71582866",
"0.7060629",
"0.7029264",
"0.7004967",
"0.69716686",
"0.69716686",
"0.6963815",
"0.69107527",
"0.68911713",
"0.68110436",
"0.68033886",
"0.6801687",
"0.6695289",
"0.667665",
"0.66708094",
"0.658718",
"0.655265... | 0.6517791 | 24 |
Predict the labels for a given `dataset` Predicts using binary classifier and spits out list (for each sample) where with either poslabels or neglabels as the "label" for the sample. If there was just a single label within pos or neg labels then it would return not a list but just that single label. | def LEI_(YKHO, __n6):
bmLR = V78F._predict(YKHO, __n6)
YKHO.ca.estimates = bmLR
N6Z1 = [{-1: YKHO.__predictneg, +1: YKHO.__predictpos}[WKvO] for WKvO in bmLR]
YKHO.ca.predictions = N6Z1
return N6Z1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FPD1(YKHO, N6Z1, ecF5, __n6):\n eAYh = len(__n6.tensors[0])\n if eAYh != N6Z1.shape[0]:\n raise ValueError('Predictions have {0} samples, but got {1} samples in dataset'.format(N6Z1.shape[0], eAYh))\n w9R9 = {Ty9i: G1Hx for G1Hx, Ty9i in ecF5.items()}\n Sc2v = __n6.tensors[1].data.numpy()\n ... | [
"0.70734084",
"0.7062133",
"0.70552224",
"0.69676894",
"0.6820836",
"0.6775732",
"0.67679846",
"0.66674614",
"0.66395634",
"0.66258883",
"0.66011167",
"0.6538175",
"0.6538175",
"0.6538175",
"0.6532872",
"0.6430003",
"0.6415061",
"0.637324",
"0.6372734",
"0.6366778",
"0.634528... | 0.6112184 | 47 |
Constructor creates a Student with the given | def FIMM(YKHO, mWFP, UTX6, bWtk, gbpR, Jm01):
YKHO.name = mWFP
YKHO.address = UTX6
YKHO.phone = bWtk
YKHO.badge = gbpR
YKHO.salary = Jm01 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, g3Gt):\n pass",
"def FIMM(YKHO, DCKO=0, Sp9k=None, xWjI=None, zANN=None, Hxmi=None, IJ4N=None, cbKy=None):\n super().__init__(Sp9k, xWjI, zANN, Hxmi)\n YKHO.student_id = DCKO\n YKHO.major = IJ4N\n YKHO.minor = cbKy",
"def FIMM(YKHO, c9ua, zp3f, UTX6):\n YKHO.first_name = c9ua\n... | [
"0.8175241",
"0.73821163",
"0.7330379",
"0.7246287",
"0.71303475",
"0.71166277",
"0.7045335",
"0.70142347",
"0.7010421",
"0.69444036",
"0.653866",
"0.6531949",
"0.6506792",
"0.64977247",
"0.64163667",
"0.6397651",
"0.636888",
"0.635841",
"0.6354553",
"0.63195556",
"0.62822056... | 0.5653275 | 84 |