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 |
|---|---|---|---|---|---|---|
Generate random variables stationary covariance function using spectral techniques of Dietrich & Newsam (1993) | def kraY(rrLg, wCHQ):
if wCHQ.ndim == 2:
Jd40, CAzz = oyIN.meshgrid(oyIN.arange(-rrLg.ny * 0.5 * rrLg.dy, rrLg.ny * 0.5 * rrLg.dy, rrLg.dy), oyIN.arange(-rrLg.nx * 0.5 * rrLg.dx, rrLg.nx * 0.5 * rrLg.dx, rrLg.dx))
MKlR = ((CAzz / wCHQ.lx) ** 2 + (Jd40 / wCHQ.ly) ** 2) ** 0.5
elif wCHQ.ndim == 3:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngST():\n Z9rn = js4S(-1, 1)\n return [[js4S(0, 1), Z9rn], [Z9rn, js4S(0, 1)]]",
"def fO0p(YKHO, XAu9=13):\n for Csk6 in YKHO.d:\n Csk6.flag_array[:] = False\n Csk6.select(times=oyIN.unique(Csk6.time_array)[:10], frequencies=Csk6.freq_array[:16])\n for wowU in YKHO.d_std:\n w... | [
"0.672772",
"0.6295773",
"0.61297596",
"0.6065946",
"0.6065946",
"0.6065946",
"0.59721005",
"0.5966204",
"0.5899281",
"0.5872403",
"0.5843831",
"0.584188",
"0.58392113",
"0.5836003",
"0.5815455",
"0.5801603",
"0.57929623",
"0.5791151",
"0.5790837",
"0.5782721",
"0.5738705",
... | 0.6362804 | 1 |
cast(itkLightObject obj) > itkVectorExpandImageFilterIVF22IVF22 | def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':
return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2ME(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':\n return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':\n return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM)",
"def AGj2(YEnM: 'itk... | [
"0.83926094",
"0.8298233",
"0.827044",
"0.8268906",
"0.8264077",
"0.82236785",
"0.8218225",
"0.8164695",
"0.8150108",
"0.8041721",
"0.80004126",
"0.7105834",
"0.7096456",
"0.70735925",
"0.7061469",
"0.70598567",
"0.7045147",
"0.6960174",
"0.6953238",
"0.6952856",
"0.69513655"... | 0.8445157 | 0 |
New() > itkVectorExpandImageFilterIVF22IVF22 Create a new object of the class itkVectorExpandImageFilterIVF22IVF22 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = FmDH.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = xa9f.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = a8Dh.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7913906",
"0.7825144",
"0.7774732",
"0.77336276",
"0.75654006",
"0.6692003",
"0.66852164",
"0.6680091",
"0.6665125",
"0.6605097",
"0.65593344",
"0.6536447",
"0.6496702",
"0.6494294",
"0.64744526",
"0.6458581",
"0.6448725",
"0.64068097",
"0.6398479",
"0.6383451",
"0.6381740... | 0.8207771 | 0 |
itkVectorExpandImageFilterIVF22IVF22_cast(itkLightObject obj) > itkVectorExpandImageFilterIVF22IVF22 | def W2ME(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':
return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AGj2(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':\n return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':\n return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM)",
"def FoMX(YEnM: 'itk... | [
"0.8919381",
"0.8902668",
"0.8870486",
"0.8803641",
"0.87216496",
"0.8705942",
"0.86932236",
"0.8684815",
"0.86340934",
"0.86134416",
"0.85737926",
"0.69257385",
"0.6902999",
"0.6873075",
"0.6860663",
"0.6860394",
"0.6820477",
"0.6800361",
"0.6799008",
"0.67509377",
"0.673157... | 0.91243744 | 0 |
cast(itkLightObject obj) > itkVectorExpandImageFilterIVF23IVF23 | def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF23IVF23 *':
return _DTg.itkVectorExpandImageFilterIVF23IVF23_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':\n return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':\n return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM)",
"def AGj2(YEnM: 'itk... | [
"0.8367637",
"0.8328482",
"0.82955027",
"0.8294755",
"0.82883745",
"0.82858235",
"0.82767355",
"0.82320833",
"0.8200255",
"0.81040484",
"0.8056728",
"0.70618194",
"0.7054815",
"0.7044602",
"0.70427835",
"0.7032278",
"0.7022957",
"0.6936761",
"0.6905078",
"0.6900155",
"0.68895... | 0.83792025 | 0 |
New() > itkVectorExpandImageFilterIVF23IVF23 Create a new object of the class itkVectorExpandImageFilterIVF23IVF23 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = xa9f.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = a8Dh.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = FmDH.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.79877603",
"0.79593724",
"0.7900024",
"0.78530586",
"0.76366776",
"0.6699445",
"0.65902627",
"0.6584185",
"0.6542834",
"0.6528242",
"0.6488647",
"0.6477506",
"0.64730835",
"0.6451642",
"0.6430358",
"0.64132684",
"0.64045566",
"0.6385129",
"0.63809365",
"0.63807464",
"0.638... | 0.8225989 | 0 |
itkVectorExpandImageFilterIVF23IVF23_cast(itkLightObject obj) > itkVectorExpandImageFilterIVF23IVF23 | def FoMX(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF23IVF23 *':
return _DTg.itkVectorExpandImageFilterIVF23IVF23_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AGj2(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':\n return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM)",
"def W2ME(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':\n return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM)",
"def YWvJ(YEnM: 'itk... | [
"0.88909954",
"0.8887997",
"0.88034046",
"0.87624156",
"0.8754744",
"0.87206584",
"0.8713865",
"0.8655809",
"0.86537486",
"0.8581527",
"0.8570841",
"0.69111556",
"0.68571174",
"0.68516827",
"0.68503773",
"0.68038636",
"0.6781638",
"0.6746848",
"0.6721462",
"0.6680379",
"0.667... | 0.9017987 | 0 |
cast(itkLightObject obj) > itkVectorExpandImageFilterIVF32IVF32 | def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF32IVF32 *':
return _DTg.itkVectorExpandImageFilterIVF32IVF32_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xYU6(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF32IVF32 *':\n return _DTg.itkVectorExpandImageFilterIVF32IVF32_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':\n return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM)",
"def YWvJ(YEnM: 'itk... | [
"0.8542603",
"0.8197546",
"0.8152614",
"0.81165963",
"0.8100914",
"0.8075377",
"0.80663043",
"0.8047866",
"0.7939687",
"0.793264",
"0.7824045",
"0.6882712",
"0.68794525",
"0.6836208",
"0.68136436",
"0.68013775",
"0.67733055",
"0.6765582",
"0.6733538",
"0.6731916",
"0.6721725"... | 0.8536551 | 1 |
New() > itkVectorExpandImageFilterIVF32IVF32 Create a new object of the class itkVectorExpandImageFilterIVF32IVF32 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = XHKi.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = a8Dh.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = FmDH.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7790981",
"0.7635834",
"0.76252687",
"0.7581817",
"0.7536464",
"0.6553982",
"0.6549788",
"0.65378934",
"0.6516733",
"0.6490127",
"0.64769095",
"0.644009",
"0.6430601",
"0.642637",
"0.64174163",
"0.6405188",
"0.6396696",
"0.638686",
"0.63681155",
"0.6344883",
"0.6328053",
... | 0.81372416 | 0 |
itkVectorExpandImageFilterIVF32IVF32_cast(itkLightObject obj) > itkVectorExpandImageFilterIVF32IVF32 | def xYU6(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF32IVF32 *':
return _DTg.itkVectorExpandImageFilterIVF32IVF32_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF32IVF32 *':\n return _DTg.itkVectorExpandImageFilterIVF32IVF32_cast(YEnM)",
"def AGj2(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':\n return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM)",
"def W2ME(YEnM: 'itk... | [
"0.8885994",
"0.8514419",
"0.8466365",
"0.8433972",
"0.84204555",
"0.8414497",
"0.83895296",
"0.8381609",
"0.8365337",
"0.83102876",
"0.828113",
"0.6605372",
"0.65935415",
"0.6558618",
"0.65523034",
"0.6520429",
"0.6510308",
"0.6496248",
"0.64699",
"0.64616305",
"0.6453076",
... | 0.9125741 | 0 |
cast(itkLightObject obj) > itkVectorExpandImageFilterIVF33IVF33 | def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF33IVF33 *':
return _DTg.itkVectorExpandImageFilterIVF33IVF33_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF32IVF32 *':\n return _DTg.itkVectorExpandImageFilterIVF32IVF32_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':\n return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM)",
"def bY69(YEnM: 'itk... | [
"0.8378539",
"0.83769655",
"0.8360035",
"0.8354005",
"0.8330188",
"0.83221495",
"0.8315428",
"0.83101475",
"0.8307184",
"0.8250692",
"0.81651515",
"0.7041615",
"0.70121455",
"0.69962054",
"0.6981861",
"0.6976024",
"0.696934",
"0.6917863",
"0.68970424",
"0.6891882",
"0.686782"... | 0.8424311 | 0 |
New() > itkVectorExpandImageFilterIVF33IVF33 Create a new object of the class itkVectorExpandImageFilterIVF33IVF33 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = a8Dh.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = xa9f.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = FmDH.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7578717",
"0.7488091",
"0.74820507",
"0.73857886",
"0.7352937",
"0.6572345",
"0.6572335",
"0.65703875",
"0.65606385",
"0.6547305",
"0.64844",
"0.6450503",
"0.6440559",
"0.6427319",
"0.64043665",
"0.639521",
"0.6377667",
"0.63764465",
"0.63490903",
"0.6344421",
"0.6337048",... | 0.80141616 | 0 |
itkVectorExpandImageFilterIVF33IVF33_cast(itkLightObject obj) > itkVectorExpandImageFilterIVF33IVF33 | def bY69(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF33IVF33 *':
return _DTg.itkVectorExpandImageFilterIVF33IVF33_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF33IVF33 *':\n return _DTg.itkVectorExpandImageFilterIVF33IVF33_cast(YEnM)",
"def xYU6(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF32IVF32 *':\n return _DTg.itkVectorExpandImageFilterIVF32IVF32_cast(YEnM)",
"def FoMX(YEnM: 'itk... | [
"0.8915183",
"0.88915145",
"0.8880836",
"0.8853808",
"0.8850993",
"0.87855667",
"0.8701169",
"0.86950517",
"0.868961",
"0.8673146",
"0.8629543",
"0.6860302",
"0.68447447",
"0.6827326",
"0.681855",
"0.68182826",
"0.6815381",
"0.6813387",
"0.6800047",
"0.6794376",
"0.67919606",... | 0.91449696 | 0 |
cast(itkLightObject obj) > itkVectorExpandImageFilterIVF42IVF42 | def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':
return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AGj2(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':\n return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':\n return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM)",
"def YWvJ(YEnM: 'itk... | [
"0.84367687",
"0.84120345",
"0.83647484",
"0.83479774",
"0.8332825",
"0.8301246",
"0.82855546",
"0.820976",
"0.82079655",
"0.81850594",
"0.8031599",
"0.70579237",
"0.70417744",
"0.7033641",
"0.7028657",
"0.6991236",
"0.69784135",
"0.6920577",
"0.69075537",
"0.68936443",
"0.68... | 0.84540933 | 0 |
New() > itkVectorExpandImageFilterIVF42IVF42 Create a new object of the class itkVectorExpandImageFilterIVF42IVF42 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = GIIM.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = caLs.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = xa9f.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.8120374",
"0.8040503",
"0.80063623",
"0.7958326",
"0.77078223",
"0.6739954",
"0.66359776",
"0.6592951",
"0.6508046",
"0.64962864",
"0.6476553",
"0.64362144",
"0.6435694",
"0.6435688",
"0.6424102",
"0.6423027",
"0.6415844",
"0.6413576",
"0.63976437",
"0.6392345",
"0.6390895... | 0.82042253 | 0 |
itkVectorExpandImageFilterIVF42IVF42_cast(itkLightObject obj) > itkVectorExpandImageFilterIVF42IVF42 | def AGj2(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':
return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2ME(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':\n return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':\n return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM)",
"def OIfL(YEnM: 'itk... | [
"0.8921525",
"0.88993216",
"0.8890407",
"0.88709706",
"0.8854987",
"0.88086265",
"0.8802269",
"0.875495",
"0.8709495",
"0.86803514",
"0.8627641",
"0.6891371",
"0.6847465",
"0.68462723",
"0.68117833",
"0.6804652",
"0.68016857",
"0.6744712",
"0.6743745",
"0.6740151",
"0.6736763... | 0.91442156 | 0 |
cast(itkLightObject obj) > itkVectorExpandImageFilterIVF43IVF43 | def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF43IVF43 *':
return _DTg.itkVectorExpandImageFilterIVF43IVF43_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':\n return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM)",
"def YWvJ(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF22IVF22 *':\n return _DTg.itkVectorExpandImageFilterIVF22IVF22_cast(YEnM)",
"def AGj2(YEnM: 'itk... | [
"0.83973604",
"0.83811015",
"0.8374428",
"0.83428836",
"0.8341684",
"0.8290391",
"0.82777834",
"0.8274626",
"0.8234205",
"0.82291055",
"0.8076892",
"0.7067558",
"0.70327514",
"0.7022479",
"0.6989206",
"0.69563186",
"0.6955844",
"0.69457936",
"0.68938327",
"0.6885933",
"0.6884... | 0.8423962 | 0 |
New() > itkVectorExpandImageFilterIVF43IVF43 Create a new object of the class itkVectorExpandImageFilterIVF43IVF43 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named pa... | def oW_4(*qIxc, **PECO):
YEnM = caLs.__New_orig__()
import itkTemplate
itkTemplate.New(YEnM, *qIxc, **PECO)
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oW_4(*qIxc, **PECO):\n YEnM = xa9f.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\n YEnM = GIIM.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM",
"def oW_4(*qIxc, **PECO):\... | [
"0.7723938",
"0.7714054",
"0.7689223",
"0.7592957",
"0.72759426",
"0.6405043",
"0.6395701",
"0.63572246",
"0.6319903",
"0.63052416",
"0.6303876",
"0.625298",
"0.6223321",
"0.6203164",
"0.62000895",
"0.61924714",
"0.6171819",
"0.6160176",
"0.6148205",
"0.614818",
"0.612762",
... | 0.80912405 | 0 |
itkVectorExpandImageFilterIVF43IVF43_cast(itkLightObject obj) > itkVectorExpandImageFilterIVF43IVF43 | def OIfL(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF43IVF43 *':
return _DTg.itkVectorExpandImageFilterIVF43IVF43_cast(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AGj2(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF42IVF42 *':\n return _DTg.itkVectorExpandImageFilterIVF42IVF42_cast(YEnM)",
"def FoMX(YEnM: 'itkLightObject') -> 'itkVectorExpandImageFilterIVF23IVF23 *':\n return _DTg.itkVectorExpandImageFilterIVF23IVF23_cast(YEnM)",
"def YWvJ(YEnM: 'itk... | [
"0.9001677",
"0.88652575",
"0.8849221",
"0.8841853",
"0.8799134",
"0.87511665",
"0.8722462",
"0.87099034",
"0.87083143",
"0.8628319",
"0.86165863",
"0.6798223",
"0.6765647",
"0.67360586",
"0.6715522",
"0.6696963",
"0.6694683",
"0.66818583",
"0.66594",
"0.6659369",
"0.6647706"... | 0.9023615 | 0 |
Calculate pvalues for a permuted walk dataset. The pvalue is the cumulative probability of observing a walk score of equal or greater magnitude. arguments | def CYwm(iArr: pd.DataFrame, exwG: int) -> rLdf.DataFrame:
iArr['p'] = iArr.filter(regex='p_\\d+').apply(lambda WKvO: WKvO >= iArr.probability).select_dtypes(include=['bool']).sum(axis=1)
iArr['p'] = (iArr.p + 1) / (exwG + 1)
return iArr[['node_from', 'node_to', 'probability', 'p']] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QFFM(YKHO):\n YKHO.PermutationTest()\n YKHO.compute_obs_TS()\n YKHO.mu = oyIN.mean(YKHO.TS_tilde)\n YKHO.sigma = oyIN.std(YKHO.TS_tilde)\n YKHO.TS_prime = (YKHO.TS_tilde - YKHO.mu) / YKHO.sigma\n YKHO.TS_prime_obs = (YKHO.TS_obs - YKHO.mu) / YKHO.sigma\n YKHO.p_value = 2 * (1 - 0.01 * eQSh... | [
"0.6741401",
"0.6739902",
"0.6329827",
"0.60644656",
"0.59954697",
"0.5938298",
"0.59018594",
"0.5887984",
"0.5877435",
"0.5873915",
"0.58594567",
"0.58151317",
"0.5762956",
"0.5734468",
"0.57270837",
"0.57074153",
"0.56138307",
"0.56138307",
"0.55645233",
"0.5549605",
"0.554... | 0.6146725 | 3 |
Calculates the histogram of a given image. | def sGLY(VXjJ, YwkQ):
KsyC = oyIN.zeros((256, 1), dtype=oyIN.int32)
x4b2 = oyIN.zeros((256, 1), dtype=oyIN.int32)
VYix = oyIN.zeros((256, 1), dtype=oyIN.int32)
if YwkQ == [0]:
if VXjJ.ndim == 1:
raise Exception('Cannot calculate the hist of one-dimensional array.')
elif VXjJ.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oicS(YKHO, LNo8):\n QzFq = [0] * 256\n WKvO, LVAh = LNo8.shape[:2]\n for YRbF in range(WKvO):\n for r845 in range(LVAh):\n QzFq[LNo8[YRbF, r845]] += 1\n return QzFq",
"def thJw(VXjJ):\n Of4a = 8\n iBe4 = oyIN.tile(oyIN.array([0, 255]), (3, 1))\n Mkmy = oyIN.ravel(VXjJ[:... | [
"0.8454061",
"0.82917804",
"0.8227543",
"0.8146126",
"0.81406593",
"0.8092285",
"0.7866563",
"0.7743489",
"0.7423736",
"0.7119662",
"0.70962876",
"0.7085983",
"0.703597",
"0.70013666",
"0.6971639",
"0.6963821",
"0.69563365",
"0.6890361",
"0.68844575",
"0.685031",
"0.6794314",... | 0.67777276 | 21 |
Returns the value of the element at position index | def OP2O(YKHO, d6pt: int) -> Kt_s:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, d6pt):\n return YKHO._value_at(d6pt)",
"def OP2O(YKHO, d6pt):\n return YKHO._value_at(d6pt)",
"def JdFv(YKHO, d6pt):\n return YKHO['value'][d6pt]",
"def vIQF(YKHO, d6pt):\n Q6kx = YKHO._get_node_at(d6pt)\n if Q6kx is None:\n raise IndexError('List index out of range.')\n ... | [
"0.8325352",
"0.8325352",
"0.81860703",
"0.8162933",
"0.8162933",
"0.80013084",
"0.7963294",
"0.7937719",
"0.7843172",
"0.7801458",
"0.7800107",
"0.77847344",
"0.7677333",
"0.76375395",
"0.7623587",
"0.7612316",
"0.75660056",
"0.75660056",
"0.7532371",
"0.7492172",
"0.7488256... | 0.0 | -1 |
Inserts item into the list at the correct position | def JPHp(YKHO, ZfUD: T) -> None:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, d6pt, ZfUD):\n return list.insert(YKHO, d6pt, YKHO.ref(ZfUD))",
"def _jXH(YKHO, ZfUD):\n YKHO.list.prepend(ZfUD)",
"def JPHp(YKHO, d6pt: int, ZfUD: Any) -> cWhJ:\n super().insert(d6pt, ZfUD)\n return YKHO",
"def JPHp(YKHO, ZfUD: T, d6pt: int) -> None:\n pass",
"def JPHp(*, lis... | [
"0.79405856",
"0.7613358",
"0.754908",
"0.75425905",
"0.7532011",
"0.74775505",
"0.7393919",
"0.73665935",
"0.73036444",
"0.72954285",
"0.72944105",
"0.7269339",
"0.7253484",
"0.72502726",
"0.7239297",
"0.7228257",
"0.7175718",
"0.71571726",
"0.7154767",
"0.7146624",
"0.71220... | 0.6932816 | 34 |
Converts the list into a string, first to last | def zAg0(YKHO) -> str:
Aofo = '['
for YRbF in range(len(YKHO)):
if YRbF > 0:
Aofo += ', '
Aofo += str(YKHO[YRbF])
Aofo += ']'
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hrsK(aPd6):\n if len(aPd6) == 0:\n return ''\n return aPd6[0] + hrsK(aPd6[1:])",
"def hrsK(aPd6):\n if len(aPd6) == 0:\n return ''\n return aPd6[0] + hrsK(aPd6[1:])",
"def KP6z(qgK3):\n rIkN = ''\n for ZfUD in qgK3:\n rIkN += ' ' + str(ZfUD) + ','\n return rIkN[:-1... | [
"0.8001536",
"0.8001536",
"0.75531805",
"0.74788576",
"0.7471599",
"0.7292597",
"0.72357595",
"0.71526766",
"0.71234137",
"0.7055043",
"0.7053565",
"0.70516855",
"0.7040503",
"0.7003239",
"0.6955984",
"0.6952963",
"0.68701166",
"0.68549097",
"0.6849128",
"0.6753707",
"0.67382... | 0.0 | -1 |
Initialises self.length by calling its parent and self.head as None, since the list is initially empty | def FIMM(YKHO) -> None:
qm0x.__init__(YKHO)
YKHO.head = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.head = None\n YKHO.length = 0",
"def FIMM(YKHO):\n YKHO.head = None\n YKHO.length = 0",
"def FIMM(YKHO):\n YKHO.length = 0\n YKHO.head = None",
"def FIMM(YKHO):\n YKHO.head = None\n YKHO.size = 0",
"def FIMM(YKHO):\n YKHO.head = None\n YKHO.size = 0",
... | [
"0.82814825",
"0.82814825",
"0.8258897",
"0.7824902",
"0.7824902",
"0.7824902",
"0.7658213",
"0.76015234",
"0.75551814",
"0.75506204",
"0.7510291",
"0.75018483",
"0.75018483",
"0.75018483",
"0.7489176",
"0.7472115",
"0.7418264",
"0.7391681",
"0.73670274",
"0.734793",
"0.72661... | 0.65968597 | 80 |
Returns the value of the element at position index | def OP2O(YKHO, d6pt: int) -> Kt_s:
s7uf = YKHO.__get_node_at_index(d6pt)
return s7uf.item | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, d6pt):\n return YKHO._value_at(d6pt)",
"def OP2O(YKHO, d6pt):\n return YKHO._value_at(d6pt)",
"def JdFv(YKHO, d6pt):\n return YKHO['value'][d6pt]",
"def vIQF(YKHO, d6pt):\n Q6kx = YKHO._get_node_at(d6pt)\n if Q6kx is None:\n raise IndexError('List index out of range.')\n ... | [
"0.8325352",
"0.8325352",
"0.81860703",
"0.8162933",
"0.8162933",
"0.80013084",
"0.7963294",
"0.7937719",
"0.7843172",
"0.7801458",
"0.7800107",
"0.77847344",
"0.7677333",
"0.76375395",
"0.7623587",
"0.7612316",
"0.75660056",
"0.75660056",
"0.7532371",
"0.7492172",
"0.7488256... | 0.7054872 | 63 |
Returns the node in the list at position index | def ZIjP(YKHO, d6pt: int) -> o7DN[Kt_s]:
if 0 <= d6pt and d6pt < len(YKHO):
jvSB = YKHO.head
for YRbF in range(d6pt):
jvSB = jvSB.link
return jvSB
else:
raise ValueError('Index out of bounds') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a_J5(YKHO, d6pt):\n YKHO._validate_index(d6pt)\n return YKHO._traverse(lambda YRbF, list: YRbF < d6pt)['node']",
"def f6R9(YKHO, d6pt):\n ZbOB = YKHO.head\n for YRbF in range(d6pt):\n ZbOB = ZbOB.next\n return ZbOB",
"def M5AA(YKHO, d6pt):\n if YKHO.empty():\n return 'Linked... | [
"0.8678137",
"0.8378689",
"0.8369056",
"0.82598925",
"0.8214268",
"0.81281424",
"0.777039",
"0.768432",
"0.76695555",
"0.7572523",
"0.75428927",
"0.75428045",
"0.7497472",
"0.74774575",
"0.74681276",
"0.7461361",
"0.7446571",
"0.7422648",
"0.73729736",
"0.73640317",
"0.735137... | 0.82805175 | 3 |
Dynamically take this setting from this 'PromptSession' class. `attr_name` represents an attribute name of this class. Its value can either be a boolean or a `Filter`. This returns something that can be used as either a `Filter` or `Filter`. | def ciIb(YKHO, hGI9: str) -> FRJU:
@FRJU
def A4Wh() -> bool:
BWXx = YWvJ(eUS6, getattr(YKHO, hGI9))
return zUHT(BWXx)()
return A4Wh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nWc_(YKHO, mWFP):\n if mWFP in ['sampling_function', 'env', 'fit_dist', 'reset']:\n return object.__getattribute__(YKHO, mWFP)\n else:\n return getattr(YKHO.env, mWFP)",
"def G7Ug(YKHO, mWFP: str):\n return YKHO.call(mWFP)",
"def TqIl(YKHO, hGI9, XigM=None):\n if XigM is None:\n ... | [
"0.55775553",
"0.5507384",
"0.5504079",
"0.5353542",
"0.5301226",
"0.52445555",
"0.52445555",
"0.5201549",
"0.5197284",
"0.5192361",
"0.51679343",
"0.5130608",
"0.5100696",
"0.5086208",
"0.507831",
"0.5071244",
"0.5069357",
"0.50390226",
"0.50167257",
"0.4992679",
"0.4992679"... | 0.6094935 | 0 |
Create the `Application` object. | def xpJB(YKHO, mrm0: EditingMode, _1FY: bool) -> m36K[sb5H]:
oFqh = YKHO._dyncond
JSad = SEHJ()
aj_V = Zjog()
EsLk = YKHO._create_prompt_bindings()
SCWY: m36K[sb5H] = m36K(layout=YKHO.layout, style=gvhK(lambda: YKHO.style), style_transformation=AWPX([lMPY(lambda: YKHO.style_transformation), WZ6E(kSP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4t4():\n P4t4 = LUif()\n return P4t4",
"def WTdB(YKHO):\n return m36K()",
"def P4t4():\n return LUif()",
"def LUif():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object('nextbus.config.Config')\n P4t4.logger = bo34.app_logger\n bo34.load_config(P4t4)\n NCls.init_app(P4t4)\n ... | [
"0.79290044",
"0.7740176",
"0.7724193",
"0.7710619",
"0.76674026",
"0.7646432",
"0.75434595",
"0.7489573",
"0.73718864",
"0.73690045",
"0.7338987",
"0.7267931",
"0.7232365",
"0.72245014",
"0.7223123",
"0.7218054",
"0.7217714",
"0.7215869",
"0.71860194",
"0.71767944",
"0.71697... | 0.0 | -1 |
Calculate the Haversine distance. | def Ayfi(hLRM, yFgu):
igSk, GgQG = hLRM
TGuP, tk0B = yFgu
r1VO = 6371
n_9K = epAf.radians(TGuP - igSk)
H91H = epAf.radians(tk0B - GgQG)
jzdc = epAf.sin(n_9K / 2) * epAf.sin(n_9K / 2) + epAf.cos(epAf.radians(igSk)) * epAf.cos(epAf.radians(TGuP)) * epAf.sin(H91H / 2) * epAf.sin(H91H / 2)
Z9rn ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GeVo(GgQG, igSk, tk0B, TGuP):\n GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2\n Z9rn = 2 * Gqkf(PZyS(jzdc) / PZyS(1 - jzdc))\n Mkmy = 6371\n Csk6 = Z9rn * M... | [
"0.75145954",
"0.74784905",
"0.7441076",
"0.73765993",
"0.7361475",
"0.72931635",
"0.7262805",
"0.7244069",
"0.722919",
"0.7224837",
"0.7204102",
"0.7181636",
"0.7154773",
"0.71105516",
"0.71057034",
"0.7092415",
"0.7076044",
"0.7072163",
"0.7038709",
"0.7028212",
"0.70122015... | 0.0 | -1 |
Return the unique vertices from given vertices. | def O2eu(iXlf: ArrayLike, phJ9: int=oyIN.finfo(YWvJ(ImMB, i8l_)).precision - 1) -> mV7i:
iXlf = oet3(iXlf)
kcwm, bS0K = oyIN.unique(iXlf.round(decimals=phJ9), axis=0, return_index=True)
return kcwm[oyIN.argsort(bS0K)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXlf(zNig):\n return set(range(zNig))",
"def iXlf(YKHO):\n KCHu = set([WKvO for WKvO in YKHO.edges.keys()])\n a1PO = set([LVAh for Ty9i in YKHO.edges.values() for LVAh, Csk6 in Ty9i.items()])\n Ty9i = KCHu.union(a1PO)\n return list(Ty9i)",
"def lnbe(YKHO, iXlf: set):\n for Ty9i in jth9.co... | [
"0.73574716",
"0.71837825",
"0.676872",
"0.67016476",
"0.6685178",
"0.6626049",
"0.64009607",
"0.6392685",
"0.6284409",
"0.6202879",
"0.6173063",
"0.6146399",
"0.6103837",
"0.6040789",
"0.60084146",
"0.59984154",
"0.5984825",
"0.5984585",
"0.5968651",
"0.5909573",
"0.590302",... | 0.71867096 | 1 |
Convert datetime objects into timestamp. | def QPqx(YEnM):
if isinstance(YEnM, qcWV.datetime):
return ITS7.mktime(YEnM.timetuple())
if isinstance(YEnM, qcWV.timedelta):
return YEnM.total_seconds() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aEIX(YEnM: 'datetime') -> 'Timestamp':\n g75m = ri_H(YEnM)\n i8WE = umfa()\n i8WE.seconds = g75m.seconds + g75m.days * D0Ll\n i8WE.nanos = g75m.microseconds * YBLx\n return i8WE",
"def n99j(YKHO, JRYC):\n return ITS7.mktime(JRYC.timetuple())",
"def NB69(nPrm):\n for G1Hx, BWXx in nPrm.... | [
"0.75886273",
"0.7169292",
"0.7101051",
"0.6844625",
"0.672754",
"0.66921127",
"0.6681874",
"0.6657311",
"0.66404706",
"0.66253364",
"0.66199344",
"0.65921235",
"0.65772563",
"0.65608436",
"0.65244097",
"0.6513138",
"0.64997137",
"0.64858013",
"0.63744724",
"0.637078",
"0.636... | 0.580868 | 61 |
Returns a dict of parameters suitable for get_new_connection. | def GfDS(YKHO):
LHhg = YKHO.settings_dict.copy()
if LHhg['NAME'] == '':
from django.core.exceptions import ImproperlyConfigured
raise ImproperlyConfigured('settings.DATABASES is improperly configured. Please supply the NAME value.')
if not LHhg['NAME']:
LHhg['NAME'] = 'master'
kv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GfDS(YKHO, cuiw, **B2fa):\n return {}",
"def YMEb(YKHO) -> dict[str, ImMB]:\n w2B8 = YKHO.get_connection(YKHO.slack_conn_id)\n if not w2B8.password:\n raise LIKb(f'Connection ID {YKHO.slack_conn_id!r} does not contain password (Slack API Token).')\n ngFw: dict[str, ImMB] = {'token': w2B8.p... | [
"0.77255714",
"0.75389177",
"0.7532421",
"0.74720806",
"0.7248387",
"0.70902026",
"0.70675164",
"0.7006772",
"0.6791901",
"0.6656478",
"0.6649362",
"0.6639104",
"0.659048",
"0.6569225",
"0.6549231",
"0.65441257",
"0.65178263",
"0.64895004",
"0.648519",
"0.64809495",
"0.644793... | 0.7234448 | 5 |
Convert a three ndarray to SparseTensor which would be used in Java side. | def o7sj(Emd4, tHFr, jf5e, ROpF, WSzb='float'):
if tHFr is None:
return None
Hdfo(isinstance(tHFr, oyIN.ndarray), f'input should be a np.ndarray, not ${type(tHFr)}')
Hdfo(isinstance(jf5e, oyIN.ndarray), f'indices should be a np.ndarray, not ${type(jf5e)}')
Hdfo(jf5e.size == tHFr.size * ROpF.size... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M7TA(Crrw):\n return BtZX.SparseTensor.from_value(LtLm(Crrw))",
"def ErjP(Wc9F):\n VNIu = []\n _S_M = []\n QF7n = []\n for YRbF in range(len(Wc9F)):\n exwG = Wc9F[YRbF].F.shape[0]\n _S_M.append(Wc9F[YRbF].F)\n QF7n.append(Wc9F[YRbF].C)\n VNIu.append(YRbF * oyIN.ones... | [
"0.6781133",
"0.62889516",
"0.6245261",
"0.62376535",
"0.62293434",
"0.61515474",
"0.61474276",
"0.6139255",
"0.6110722",
"0.60642266",
"0.6060542",
"0.6025704",
"0.59922755",
"0.59220344",
"0.5917676",
"0.59050804",
"0.5903568",
"0.5868671",
"0.58631545",
"0.5850128",
"0.583... | 0.5864859 | 18 |
Set BigDL log level to INFO. | def Lq1l(WSzb='float'):
AGD5(WSzb, 'showBigDlInfoLogs') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vUIa():\n aG11(G9jH.INFO, '%(asctime)s %(levelname)s:%(name)s:%(message)s')",
"def xgtA(YKHO, tO9_):\n YKHO.log(tO9_, level=aJcw)",
"def pcXt(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['logLevel'] = BWXx",
"def RKD7(YKHO, tO9_):\n RKD7.msg(tO9_, level=RKD7.INFO)",
"def ujSR(Ry7x=['vaex... | [
"0.6882181",
"0.6606571",
"0.65878797",
"0.64794856",
"0.6433123",
"0.6430044",
"0.6380692",
"0.6338988",
"0.6318845",
"0.6315953",
"0.6255788",
"0.6236509",
"0.6218847",
"0.6180613",
"0.615779",
"0.61469585",
"0.61235714",
"0.61101454",
"0.6060425",
"0.60493124",
"0.6038953"... | 0.5599594 | 71 |
Computes the dot product between two vectors. | def uYbU(ENWa, ZoT5):
return [gs46(q2Xo) for q2Xo in zip(ENWa, ZoT5)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJ1H(ENWa, ZoT5):\n return sum((XOOk * pHXX for XOOk, pHXX in zip(ENWa, ZoT5)))",
"def BJ1H(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('Input vectors must be of same length, not %d and %d' % (len(jzdc), len(Fg_i)))\n return float(sum([jzdc[YRbF] * Fg_i[YRbF] for YRbF in range... | [
"0.8743899",
"0.87390256",
"0.8668944",
"0.8617667",
"0.8617369",
"0.8595715",
"0.85551625",
"0.8548558",
"0.85236335",
"0.8503238",
"0.8466258",
"0.83802617",
"0.83662665",
"0.8345095",
"0.8322645",
"0.83145404",
"0.830822",
"0.8257369",
"0.8168214",
"0.8158046",
"0.8136944"... | 0.8313931 | 16 |
Get a quoted path from a request path. The returned path can be used as a query parameter in login and reset URLs. | def ak_c(qv1X: web.Request) -> str:
if qv1X.path == '/login':
return uRlK.parse.quote('/', safe='')
return uRlK.parse.quote(qv1X.path, safe='') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def peQT(pmON):\n return '\"' + ZbWC.sub('([\\\\\\\\$\"[])', '\\\\\\\\\\\\1', pmON) + '\"'",
"def pmON(YKHO):\n if Hy7s.path.isabs(YKHO._value):\n return oAb3.Path(YKHO._value)\n raise RuntimeError('RequestString.path not supported.')",
"def OyQC(YKHO, pmON):\n return WQbV(gzes(YKHO.origin, ... | [
"0.66117185",
"0.6518639",
"0.6459984",
"0.6444478",
"0.6425003",
"0.63703877",
"0.6280366",
"0.6258959",
"0.6107533",
"0.6097093",
"0.6078227",
"0.6031704",
"0.6009114",
"0.5984838",
"0.59573656",
"0.5928795",
"0.59065956",
"0.588949",
"0.58834934",
"0.58822876",
"0.5874672"... | 0.75459146 | 0 |
Get a quoted path from a request query string. The returned path can be used as a query parameter in login and reset URLs. | def aZwm(qv1X: web.Request) -> str:
ShVs = qv1X.query.get('return_to', '/')
return uRlK.parse.quote(ShVs, safe='') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ak_c(qv1X: web.Request) -> str:\n if qv1X.path == '/login':\n return uRlK.parse.quote('/', safe='')\n return uRlK.parse.quote(qv1X.path, safe='')",
"def OPRw(YKHO):\n lpha = YKHO.path_s.split('?', 1)\n if len(lpha) == 1:\n return ''\n else:\n return lpha[1]",
"def yuwo(N... | [
"0.67656595",
"0.66694194",
"0.6187575",
"0.61266077",
"0.60721916",
"0.6044022",
"0.5936467",
"0.5865279",
"0.5857856",
"0.5808022",
"0.5736979",
"0.57093316",
"0.5700575",
"0.56682545",
"0.56547445",
"0.56516343",
"0.5648888",
"0.56476533",
"0.5645986",
"0.56235856",
"0.561... | 0.57526857 | 10 |
Parse and decode an API key from an HTTP authorization header value. Thje | def YsMV(em58: str) -> tuple:
lpha = em58.split(' ')
if len(lpha) != 2 or lpha[0] != 'Basic':
raise c8cY.errors.AuthError('Malformed authorization header')
AgdR = WR89.b64decode(lpha[1]).decode('utf-8')
uJjO, H5ew = AgdR.split(':')
return (uJjO, H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pS6j(qv1X):\n MkeE = qv1X.headers.get('AUTHORIZATION')\n if not MkeE:\n raise tmtM(\"'Authorization' header is missing.\")\n try:\n zkAN, eOtH = MkeE.split()\n assert zkAN == 'Bearer'\n except (AssertionError, ValueError):\n raise tmtM(\"'Authorization' header has an inv... | [
"0.67872375",
"0.67390203",
"0.6706294",
"0.6448602",
"0.6335395",
"0.6261553",
"0.6190575",
"0.6183604",
"0.61806434",
"0.6146972",
"0.6099199",
"0.6075243",
"0.6074185",
"0.60723877",
"0.60331666",
"0.6016162",
"0.59760946",
"0.5970541",
"0.5969888",
"0.5969888",
"0.5969182... | 0.6552927 | 3 |
A request handler for requests where the `index.html` should be returned. This handler deals with redirecting to the login and password reset pages where appropriate. | async def index_handler(qv1X: web.Request) -> jA2G.Response:
if qv1X.app['client_path'] is None:
try:
ySPr = await c8cY.utils.get_client_path()
except FileNotFoundError:
return await W7go()
qv1X.app['client_path'] = ySPr
qv1X.app.router.add_static('/static', y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_QL():\n return vKnz('index.html')",
"def o7Xd():\n return vKnz('/')",
"def kZiy():\n return Yxsy(open('app/templates/index.html').read())",
"def tk5Y():\n if QePW.headers['Accept'] == 'application/json':\n return ('Welcome\\n\\n', 200)\n else:\n return vKnz(nKyW('index'))",... | [
"0.6745893",
"0.67394066",
"0.6696376",
"0.6687734",
"0.66440356",
"0.6622204",
"0.6604141",
"0.6585776",
"0.6500741",
"0.6485597",
"0.646933",
"0.6447608",
"0.6439399",
"0.64084417",
"0.63921463",
"0.63542634",
"0.6336931",
"0.6322592",
"0.63144946",
"0.6281809",
"0.6277725"... | 0.74163663 | 0 |
returns a File instance for the input file or None if the input hasn't been generated yet. If the latter is the case, then it automatically starts the generation of input file. | def UXEK(YKHO):
if not YKHO.output_file_generated():
return None
if YKHO.output_static is False:
return YKHO._output_generated_file
else:
return YKHO._output_uploaded_file | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eZ_W(YKHO):\n if not YKHO.input_file_generated():\n return None\n if YKHO.input_static is False:\n return YKHO._input_generated_file\n else:\n return YKHO._input_uploaded_file",
"def rZtQ(YKHO):\n _GnW = ZMBA(YKHO.times, YKHO.inputs)\n YKHO.input_file = _GnW.default_creati... | [
"0.7460117",
"0.7118828",
"0.69139284",
"0.64967453",
"0.6441516",
"0.63185525",
"0.6115493",
"0.5905624",
"0.58408743",
"0.58305377",
"0.57929844",
"0.5750007",
"0.572476",
"0.5718196",
"0.5666526",
"0.5643162",
"0.5630864",
"0.56140953",
"0.5592145",
"0.55690205",
"0.556651... | 0.62553054 | 6 |
Given a vector returns a matrix with rows corresponding to onehot encoding | def KLLm(YKHO, WKvO, ywwl):
E3D9 = WKvO.shape[0]
KLLm = oyIN.zeros((ywwl, E3D9))
for YRbF in range(E3D9):
KLLm[WKvO[YRbF], YRbF] = 1
assert KLLm.shape == (ywwl, WKvO.shape[0])
return KLLm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj8B(Ty9i):\n exwG = len(Ty9i)\n r8hN = max(Ty9i) + 1\n yvT9 = oyIN.zeros((exwG, r8hN))\n yvT9[oyIN.arange(exwG), Ty9i] = 1\n return yvT9",
"def zGX0(iArr, hkxX=10):\n exwG = len(iArr)\n yvT9 = XTiz.zeros((exwG, hkxX))\n yvT9[range(exwG), iArr] = 1\n return yvT9",
"def sjGC(bZ5C,... | [
"0.83644116",
"0.8250922",
"0.8041751",
"0.80206984",
"0.7957406",
"0.78535616",
"0.782778",
"0.779976",
"0.76363915",
"0.7615411",
"0.7594082",
"0.7537369",
"0.753309",
"0.7487682",
"0.74870867",
"0.7482502",
"0.7462316",
"0.74530447",
"0.7442612",
"0.74367964",
"0.74042165"... | 0.7385332 | 23 |
Performs forward and backward propagation and updates weights | def YPaw(YKHO, WKvO, LVAh, b0Ix=0.001):
"""
Input is represented with M-dimensional vectors
We convert them to (N, M) matrices such that columns are one-hot
representations of the input
"""
WKvO = YKHO.one_hot(WKvO, YKHO.N)
LVAh = YKHO.one_hot(LVAh, YKHO.N)
'\n Re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MyUA(YKHO):\n YDYE, G93m = YKHO.feedforward()\n Ruav = oyIN.zeros(2)\n for YRbF, U6D_ in enumerate(YKHO.y):\n Ruav += (YDYE[YRbF] - U6D_) * G93m[YRbF] * YKHO.X[YRbF]\n YKHO.weights -= YKHO.alfa * Ruav",
"def OV4I(YKHO):\n VhBU = oyIN.dot(YKHO.layer1.T, 2 * (YKHO.y - YKHO.output) * NZml(... | [
"0.78562564",
"0.73390895",
"0.7321579",
"0.7282418",
"0.72295105",
"0.7229397",
"0.71834415",
"0.71750623",
"0.71382415",
"0.7128352",
"0.7065244",
"0.705789",
"0.7047591",
"0.7020441",
"0.7001433",
"0.6987382",
"0.6968537",
"0.6944231",
"0.69366634",
"0.69217235",
"0.692024... | 0.0 | -1 |
Changes the admin password. | def m8z6(YKHO):
NfHn = AtRZ()
cuiw = haeo(YKHO)
CBIr = amBH(cuiw)
gv2B = YKHO.request.get('old')
BdN0 = YKHO.request.get('new')
PxgA = YKHO.request.get('new2')
if gv2B != CBIr.password:
mmn4(cuiw, 'Invalid Password')
YKHO.redirect('/admin')
if BdN0 != PxgA:
mmn4(c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L3NO(YKHO, KAOR, Vbjy):\n pass",
"def L3NO(YKHO, KAOR, Vbjy):\n raise NotImplementedError()",
"def faAE(YKHO, Vbjy):\n YKHO.manager.change_user_password(YKHO, Vbjy)",
"def zZft(YKHO, zN5h):\n pass",
"def G3s8(YKHO, uGpu):\n super(b485, YKHO).set_password(uGpu)\n YKHO.new_password = uG... | [
"0.89401054",
"0.8628543",
"0.76031244",
"0.7567382",
"0.75085676",
"0.7388083",
"0.73617107",
"0.73413193",
"0.72835135",
"0.72178334",
"0.713289",
"0.711186",
"0.7078669",
"0.7064469",
"0.7035929",
"0.7006707",
"0.69938266",
"0.69937426",
"0.6991373",
"0.69582367",
"0.69160... | 0.6398779 | 86 |
Does nothing but redirect to the root admin page. | def NMoC(YKHO):
YKHO.redirect('/admin') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO):\n YKHO.redirect('/admin')",
"def YXpO(QePW):\n rPXJ = '../admin'\n return Yd7Q(rPXJ)",
"def dp9S():\n return vKnz(nKyW('user', name='Admin!'))",
"def lUlO(YKHO):\n if not Z9rn.user.name in Oa1e.admins:\n return YKHO.abort404()\n YKHO.login(Z9rn.user, admin=True)\n ... | [
"0.792132",
"0.7732155",
"0.7502501",
"0.7218575",
"0.7142838",
"0.6975247",
"0.6898303",
"0.6879668",
"0.68388873",
"0.6797142",
"0.67157716",
"0.67048424",
"0.6685925",
"0.6684974",
"0.66080475",
"0.6575411",
"0.65521383",
"0.65265316",
"0.6444826",
"0.6438821",
"0.6432843"... | 0.80592966 | 0 |
Creates a gNMI GetRequest. | def hK55(GoZD: grpc.ssl_channel_credentials, pan_: Text, bIwZ: Text, qb3q: Optional[Text]=None) -> yhgV.gNMIStub:
if qb3q:
YwkQ = IYqO.secure_channel(pan_ + ':' + bIwZ, GoZD, (('grpc.ssl_target_name_override', qb3q),))
else:
YwkQ = IYqO.secure_channel(pan_ + ':' + bIwZ, GoZD)
return yhgV.gNM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pXPL(YKHO):\n YKHO.get_bmc_website()\n YKHO.__createChangeRequest = lNnX(YKHO.browser)\n YKHO.__createChangeRequest.createNCR()",
"def qv1X():\n return VNUm()",
"def qJoj(YKHO):\n return VNUm()",
"def CEeV(bD7m, NArs):\n QePW = G4JS.get(bD7m, params=NArs)\n return QePW",
"def _lv4(... | [
"0.6341264",
"0.61584914",
"0.5815869",
"0.5652661",
"0.5589696",
"0.55891114",
"0.556782",
"0.55567867",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0... | 0.0 | -1 |
Creates a gNMI GetRequest. | def xP7V(CppO: gnmi_pb2_grpc.gNMIStub, ckRy: gnmi_pb2.Path, NtEF: Text, jTXt: Text) -> GOCl.GetResponse:
if NtEF and jTXt:
return CppO.Get(GOCl.GetRequest(path=[ckRy], encoding='JSON_IETF'), metadata=[('username', NtEF), ('password', jTXt)])
return CppO.Get(GOCl.GetRequest(path=[ckRy], encoding='JSON_IE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pXPL(YKHO):\n YKHO.get_bmc_website()\n YKHO.__createChangeRequest = lNnX(YKHO.browser)\n YKHO.__createChangeRequest.createNCR()",
"def qv1X():\n return VNUm()",
"def qJoj(YKHO):\n return VNUm()",
"def CEeV(bD7m, NArs):\n QePW = G4JS.get(bD7m, params=NArs)\n return QePW",
"def _lv4(... | [
"0.6341264",
"0.61584914",
"0.5815869",
"0.5652661",
"0.5589696",
"0.55891114",
"0.556782",
"0.55567867",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0.55140406",
"0... | 0.0 | -1 |
Get all placeholders from a template string. | def ywc0(rPXJ):
return [XP5J[1] for XP5J in vIwR.Formatter().parse(rPXJ) if XP5J[1] is not None and len(XP5J[1]) > 0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pGwi(YKHO, sI3h):\n NYDs = set()\n for eOtH in YKHO.tokens(sI3h):\n if eOtH.group('placeholder'):\n NYDs.add(eOtH.group('key'))\n elif eOtH.group('command'):\n wQcs = dict(txQg(eOtH.group('command')))\n e_lx = wQcs.get('if')\n if e_lx:\n ... | [
"0.71580124",
"0.67409444",
"0.6394941",
"0.6327401",
"0.5901614",
"0.58758324",
"0.560435",
"0.55591387",
"0.55499095",
"0.55314493",
"0.5469728",
"0.5336413",
"0.52854705",
"0.5263065",
"0.51894563",
"0.5146677",
"0.51218146",
"0.5087384",
"0.50623006",
"0.5057447",
"0.5049... | 0.7838539 | 0 |
Makes a filename from a template. Any placeholders that point to known file aliases will be prefilled. The rest is filled given the values provided by the user when requesting the filename. | def p3u3(rPXJ, RRlC, bXTb):
NYDs = ywc0(rPXJ)
YeEY = NlsK(NYDs, RRlC, bXTb)
YeEY.update(**bXTb)
_xVh = set(YeEY.keys())
bry4 = set(NYDs)
v3uw = bry4 - _xVh
if len(v3uw) > 0:
raise ValueError('Cannot construct filename, because the following parameters are missing: %s' % v3uw)
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GHts(bTKY):\n rPXJ = '{title}-{speaker}.pdf'\n return rPXJ.format(**bTKY._asdict())",
"def DWZd(rPXJ):\n GPtr = R4f_(F3fh)\n if rPXJ in TijW:\n xAU6 = GPtr.options(xgWL)\n for MTKo in xAU6:\n if MTKo == rPXJ:\n mSqg = GPtr.get(kcnT, fh2k)\n f... | [
"0.64709675",
"0.6383289",
"0.627214",
"0.6240936",
"0.6196781",
"0.61209327",
"0.6086653",
"0.59375006",
"0.5933323",
"0.5881599",
"0.584232",
"0.58317757",
"0.5817147",
"0.57615113",
"0.5745475",
"0.5736176",
"0.5730721",
"0.5712924",
"0.57093763",
"0.56978744",
"0.5690951"... | 0.70889616 | 0 |
Tries to delete a Security group | def S2mC(YKHO, hE03):
UaFs = YKHO.get_resource()
if not UaFs:
raise yaBs('Unable to delete security group {0}, because the group does not exist in the account'.format(hE03))
try:
YKHO.execute(YKHO.client.delete_security_group, dict(group_id=hE03), raise_on_falsy=True)
except (AJ5d.EC2Res... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dzmC(YKHO, ANtU):\n return YKHO.delete(YKHO.security_group_path % ANtU)",
"def PTpj(YKHO, qkbz):\n YKHO.client.delete_security_group(qkbz)",
"def y35t(YKHO):\n pass",
"def PTpj(YKHO, ZcVd):\n pmON = '%s/security-groups/%s' % (YKHO.ver, ZcVd)\n Ylbp = YKHO.client.call(pmON, 'DELETE', data='... | [
"0.8178968",
"0.81053555",
"0.7877533",
"0.78324956",
"0.7786808",
"0.7769312",
"0.77647793",
"0.76993644",
"0.75547844",
"0.75394404",
"0.7535836",
"0.7483521",
"0.737226",
"0.7364662",
"0.7364633",
"0.7307979",
"0.7301483",
"0.7301483",
"0.72795534",
"0.72782606",
"0.724300... | 0.75419956 | 9 |
Sets the ccf_ids of this PublishedApiPath. | def gKkG(YKHO, gKkG):
if gKkG is not None and len(gKkG) < 1:
raise ValueError('Invalid value for `ccf_ids`, number of items must be greater than or equal to `1`')
YKHO._ccf_ids = gKkG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A07C(YKHO, A07C):\n YKHO._ids = A07C",
"def FIMM(YKHO, gKkG=None):\n YKHO.openapi_types = {'ccf_ids': x1iM[str]}\n YKHO.attribute_map = {'ccf_ids': 'ccfIds'}\n YKHO._ccf_ids = gKkG",
"def otSg(YKHO, otSg):\n YKHO._invoice_ids = otSg",
"def uCnv(YKHO, uCnv):\n YKHO._part_ids = uCnv",
"... | [
"0.6275112",
"0.61728823",
"0.5786723",
"0.56357884",
"0.5586644",
"0.55585057",
"0.5339",
"0.5272224",
"0.5225076",
"0.5160451",
"0.51491076",
"0.5092318",
"0.5087153",
"0.5079945",
"0.5072161",
"0.5031657",
"0.50247496",
"0.5022607",
"0.50155085",
"0.5005933",
"0.49878728",... | 0.6009279 | 2 |
Obtiene los objetos del modelo 'name' | def imK9(YKHO, KBgZ, PObu, mWFP, qIxc=[], A07C=None):
YEnM = YKHO.pool.get(mWFP)
if not A07C:
A07C = YEnM.search(KBgZ, PObu, qIxc)
return YEnM.browse(KBgZ, PObu, A07C) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iq8N(YKHO, mWFP):\n pass",
"def zAg0(YKHO):\n return YKHO.name",
"def zAg0(YKHO):\n return YKHO.name",
"def pi1E(YKHO, mWFP):\n pass",
"def zAg0(YKHO):\n return YKHO.name",
"def zAg0(YKHO):\n return YKHO.name",
"def zAg0(YKHO):\n return YKHO.name",
"def zAg0(YKHO):\n retur... | [
"0.6555148",
"0.61462766",
"0.6058201",
"0.6049102",
"0.5957742",
"0.5940858",
"0.5940858",
"0.5940858",
"0.5920288",
"0.59101236",
"0.5902254",
"0.5902254",
"0.5866233",
"0.5858096",
"0.5857474",
"0.58553004",
"0.5830256",
"0.5830256",
"0.5830256",
"0.5830256",
"0.5830256",
... | 0.0 | -1 |
Returns the data between ``tmin`` and ``tmax``. | def iIp6(YKHO, m3B5, RfSx, FT1Q=10000):
e5kH, rYO3 = YKHO.getMetadata()
pOHv = int(e5kH.samplingRate * m3B5)
HN6s = int(e5kH.samplingRate * (RfSx - m3B5))
return YKHO.data.getDataSegment(pOHv, HN6s) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_AB(ooxv: xr.DataArray, ICj0: xr.DataArray) -> zuVY.DataArray:\n ICj0 = p2gS(ICj0, ooxv)\n E_AB = (ICj0 + ooxv) / 2\n E_AB.attrs['units'] = ooxv.attrs['units']\n return E_AB",
"def z4NU(WKvO):\n return max(WKvO) - min(WKvO)",
"def vKmf(__n6, XXcz, w3IF):\n for YEnM in __n6.object_names:\... | [
"0.680804",
"0.66929406",
"0.6501322",
"0.63619685",
"0.6284432",
"0.62795717",
"0.6277218",
"0.6178171",
"0.60927814",
"0.6066463",
"0.60651124",
"0.60347027",
"0.5957372",
"0.5908891",
"0.58926105",
"0.5786205",
"0.57822526",
"0.57638055",
"0.57257944",
"0.57212675",
"0.568... | 0.6668721 | 2 |
This method returns the intersection of the two boxes which have the largest IoU between them. | def X03I(GsEz):
exwG = len(GsEz)
if exwG != 0:
v7OI = oyIN.zeros((exwG, exwG))
for YRbF in range(exwG):
for r845 in range(YRbF + 1, exwG):
yVGd = aOkw(GsEz[YRbF], GsEz[r845])
v7OI[YRbF, r845] = yVGd
v7OI[r845, YRbF] = yVGd
hMQs ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _xWy(FlUN, oUSw):\n lPIV, NYg6, YHnu, JsBq = FlUN[:4]\n F0r3, HvyQ = (oUSw[:, 0], oUSw[:, 1])\n jssV, IS9n = (oUSw[:, 2], oUSw[:, 3])\n iCO1 = oyIN.maximum(F0r3, lPIV)\n JD_R = oyIN.maximum(HvyQ, NYg6)\n TCx0 = oyIN.minimum(jssV, YHnu)\n fVPt = oyIN.minimum(IS9n, JsBq)\n OgeB = oyIN.max... | [
"0.73956984",
"0.71836853",
"0.7170263",
"0.7155214",
"0.70082915",
"0.6993681",
"0.698939",
"0.6987429",
"0.6926445",
"0.6916235",
"0.69158846",
"0.6907434",
"0.68955445",
"0.6858592",
"0.68514067",
"0.68514067",
"0.68451464",
"0.6822879",
"0.6788973",
"0.6787203",
"0.678649... | 0.67638534 | 21 |
This method returns the union of the boxes which have an IoU larger than the threshold with the box of the Deep Learning | def vSte(GsEz, gwAu):
exwG = len(GsEz)
if exwG != 0:
v7OI = oyIN.zeros(exwG - 1)
for YRbF in range(exwG - 1):
yVGd = aOkw(GsEz[YRbF], GsEz[exwG - 1])
v7OI[YRbF] = yVGd
Gh4v = [YRbF > gwAu for YRbF in v7OI]
iC1I = GsEz[-1]
for YRbF, QyVM in enumerat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ivm0(GsEz, gwAu):\n exwG = len(GsEz)\n if exwG != 0:\n AuZk = set()\n for YRbF in range(exwG):\n for r845 in range(YRbF + 1, exwG):\n yVGd = aOkw(GsEz[YRbF], GsEz[r845])\n if yVGd > gwAu:\n AuZk.add(YRbF)\n AuZk.... | [
"0.7467005",
"0.7129809",
"0.699382",
"0.68625695",
"0.68437773",
"0.6774301",
"0.65509975",
"0.65509975",
"0.6528361",
"0.6509469",
"0.6504449",
"0.646909",
"0.64670026",
"0.6389136",
"0.6363632",
"0.6330493",
"0.6278857",
"0.6277431",
"0.626782",
"0.6250302",
"0.6220109",
... | 0.7454665 | 1 |
This method returns the union of the boxes which have an IoU larger than the threshold | def Ivm0(GsEz, gwAu):
exwG = len(GsEz)
if exwG != 0:
AuZk = set()
for YRbF in range(exwG):
for r845 in range(YRbF + 1, exwG):
yVGd = aOkw(GsEz[YRbF], GsEz[r845])
if yVGd > gwAu:
AuZk.add(YRbF)
AuZk.add(r845)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vSte(GsEz, gwAu):\n exwG = len(GsEz)\n if exwG != 0:\n v7OI = oyIN.zeros(exwG - 1)\n for YRbF in range(exwG - 1):\n yVGd = aOkw(GsEz[YRbF], GsEz[exwG - 1])\n v7OI[YRbF] = yVGd\n Gh4v = [YRbF > gwAu for YRbF in v7OI]\n iC1I = GsEz[-1]\n for YRbF, Qy... | [
"0.7115829",
"0.6876892",
"0.6781579",
"0.6706805",
"0.6560954",
"0.65161544",
"0.6474637",
"0.64735657",
"0.64083487",
"0.64083487",
"0.6384663",
"0.6376866",
"0.6332816",
"0.6325833",
"0.6288974",
"0.6288974",
"0.62464505",
"0.6211646",
"0.6177991",
"0.60829705",
"0.6051003... | 0.73573524 | 0 |
Returns True if the given email account is authorized for access. | def Jb0V(cHyp, _Kb1):
return _Kb1 or (cHyp and cHyp.endswith('@google.com')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def goJh(SCWY, D3lj):\n z69M = SCWY.authorized_email\n if z69M is not None and z69M.lower() == D3lj.lower():\n wZAH = True\n else:\n wZAH = False\n return wZAH",
"def P3Bs(YKHO, freC):\n wC2y = False\n for D3lj in YKHO.emails:\n if freC[D3lj]:\n YKHO.valid_email ... | [
"0.72002715",
"0.715686",
"0.65535593",
"0.6472498",
"0.6438494",
"0.64062756",
"0.63325423",
"0.6284809",
"0.6248885",
"0.6113496",
"0.60954946",
"0.6081167",
"0.60208917",
"0.60060054",
"0.599386",
"0.5983052",
"0.58825487",
"0.5844488",
"0.58370996",
"0.58026123",
"0.57771... | 0.5688053 | 30 |
Returns True if the given client id is whitelisted. | def quuD(zb3C):
return zb3C in uwaB.WHITELISTED_CLIENT_IDS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lzb_(YKHO, o_gm):\n ZfUD = YKHO.get_whitelist_instance(o_gm)\n if ZfUD is None:\n return False\n else:\n return True",
"def lzb_(YKHO, o_gm):\n return YKHO.is_tagged(o_gm, 'Whitelisted')",
"def lzb_(YKHO, QePW, Vt89: dict=None) -> bool:\n if Ior0(QePW, Vt89):\n return Tr... | [
"0.7564243",
"0.74454796",
"0.6685991",
"0.6605228",
"0.6302355",
"0.62129164",
"0.6174267",
"0.61502475",
"0.60796034",
"0.60279274",
"0.5978961",
"0.59389883",
"0.57985216",
"0.5767977",
"0.56780225",
"0.5610917",
"0.56006",
"0.5600555",
"0.5579706",
"0.5554736",
"0.5528284... | 0.86540294 | 0 |
Returns True if the given email account could trigger a new analysis. | def ERLN(cHyp, _Kb1):
if not fK43.IsStaging():
Vln5 = uwaB.WHITELISTED_APP_ACCOUNTS
else:
Vln5 = uwaB.WHITELISTED_STAGING_APP_ACCOUNTS
return Jb0V(cHyp, _Kb1) or cHyp in Vln5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YDQW(YKHO, D3lj):\n JYKg = {'email': D3lj}\n wwJD = YKHO.db.request('getOne', JYKg)\n if wwJD:\n return True\n else:\n return False",
"def K5O9(P4t4):\n iTce = P4t4[PnHG]\n if iTce and iTce.lower() == 'y':\n return True\n return False",
"def km4Z(YKHO, Wt9E):\n ... | [
"0.61531615",
"0.6061845",
"0.6026742",
"0.59239453",
"0.5847844",
"0.58315265",
"0.57107997",
"0.56831706",
"0.5653294",
"0.5650394",
"0.5615384",
"0.5586029",
"0.55744314",
"0.5564936",
"0.5560094",
"0.5557179",
"0.55555564",
"0.55457264",
"0.55348986",
"0.5502539",
"0.5493... | 0.6804463 | 0 |
Return an array containing the interspike intervals of the spike train. Accepts a `neo.SpikeTrain`, a `pq.Quantity` array, a `np.ndarray`, or a list of time spikes. If either a `neo.SpikeTrain` or `pq.Quantity` is provided, the return value will be `pq.Quantity`, otherwise `np.ndarray`. The units of `pq.Quantity` will ... | def HCFJ(LIdu, jDK_=-1):
if isinstance(LIdu, tHcT.SpikeTrain):
D7KI = oyIN.diff(LIdu.magnitude, axis=jDK_)
D7KI = sqRO.Quantity(D7KI, units=LIdu.units, copy=False)
else:
D7KI = oyIN.diff(LIdu, axis=jDK_)
if (D7KI < 0).any():
qmLP.warn('ISI evaluated to negative values. Please... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SEzK(LIdu, vnBN, Sum1):\n if not oyIN.isscalar(vnBN):\n if len(vnBN) != len(Sum1):\n print('Argments t_start and t_stop must have the same size')\n return ([], [])\n else:\n sfVg, X283 = ([], [])\n for YRbF in range(len(vnBN)):\n QrJI,... | [
"0.6493261",
"0.64629483",
"0.5766802",
"0.5764141",
"0.54695255",
"0.54156715",
"0.5371095",
"0.5355758",
"0.5353865",
"0.53306454",
"0.5320814",
"0.5271833",
"0.51329505",
"0.50532323",
"0.49743178",
"0.49617216",
"0.494792",
"0.4941848",
"0.49282643",
"0.48889938",
"0.4878... | 0.67497957 | 0 |
Probability density computed from the complexity histogram. Returns | def kzAT(YKHO):
HID6 = YKHO.complexity_histogram / YKHO.complexity_histogram.sum()
kzAT = tHcT.AnalogSignal(oyIN.expand_dims(HID6, axis=1), units=sqRO.dimensionless, t_start=0 * sqRO.dimensionless, sampling_period=1 * sqRO.dimensionless)
return kzAT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eo2K(YKHO, EcVT):\n raise NotImplementedError",
"def Mncx(Mkmy):\n return oyIN.exp(dnoB(Mkmy))",
"def OMDI(vhpA):\n return 1 - XYvO(vhpA)",
"def InLe(YKHO, WKvO):\n ywwl = len(YKHO.train_data)\n LTIa = list(YKHO.train_data)\n eFr6 = [oyIN.linalg.norm(WKvO - AU8u) ** 2 for AU8u in LTIa]\... | [
"0.7119956",
"0.70265144",
"0.66242903",
"0.66035396",
"0.6552839",
"0.6490823",
"0.64705616",
"0.6378173",
"0.63718146",
"0.63632625",
"0.6251723",
"0.62419283",
"0.62210286",
"0.6212976",
"0.62068456",
"0.62064296",
"0.61962306",
"0.61776567",
"0.6148402",
"0.6148402",
"0.6... | 0.6131031 | 21 |
Return the smallest integral power of 2 that is equal or larger than `x`. | def rCT3(WKvO):
Jdb9 = epAf.ceil(epAf.log2(WKvO))
exwG = 2 ** Jdb9
return exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UoNd(WKvO):\n return 1 << (WKvO - 1).bit_length()",
"def hzxu(WKvO: int) -> int:\n LVAh = 2\n while LVAh < WKvO:\n LVAh *= 2\n return LVAh",
"def tj1k(WKvO):\n if 2 ** int(epAf.log(WKvO, 2)) == WKvO:\n return 2 ** int(epAf.log(WKvO - 1, 2))\n else:\n return 2 ** int(e... | [
"0.8232767",
"0.7974666",
"0.7799261",
"0.7797432",
"0.77805525",
"0.74885195",
"0.7201394",
"0.71892244",
"0.7162341",
"0.70785785",
"0.6984928",
"0.6726522",
"0.6681027",
"0.6673099",
"0.66451067",
"0.65780634",
"0.65737385",
"0.6560425",
"0.65315294",
"0.65307194",
"0.6517... | 0.72477764 | 6 |
Reset the specific workspace. Remove all resources of given workspace. If workspace name is empty, the current workspace will be modified. | def W0g0(vSUp=''):
feCB(vSUp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0g0(vSUp=''):\n KupS.ResetWorkspace(vSUp)",
"def ey5R(vSUp=''):\n KupS.ClearWorkspace(vSUp)",
"def ey5R(vSUp=''):\n k6mJ(vSUp)",
"def Mxtu(x0hE, HUs2=None, iumf=None):\n zJNP = x0hE.windchill_get_workspace()\n nPrm = {'workspace': zJNP}\n if HUs2 is not None:\n nPrm['workspace']... | [
"0.7966801",
"0.7577185",
"0.7497874",
"0.73873043",
"0.6528225",
"0.62132114",
"0.62107277",
"0.59795314",
"0.5947789",
"0.59110594",
"0.58630645",
"0.5845041",
"0.577669",
"0.5751771",
"0.57010907",
"0.5670471",
"0.55394554",
"0.55279255",
"0.5428981",
"0.54277605",
"0.5358... | 0.79124635 | 1 |
Query the name represented in current workspace. | def W0kj(vhpA):
return TjL9(KuYZ(vhpA)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vSUp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'workspace_name')",
"def vSUp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'workspace_name')",
"def vSUp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'workspace_name')",
"def mWFP(YKHO):\n return YKHO.attributes.workspace.name",... | [
"0.70013565",
"0.70013565",
"0.70013565",
"0.67076975",
"0.61967176",
"0.6163396",
"0.60812116",
"0.5957047",
"0.5957047",
"0.5957047",
"0.5957047",
"0.5921463",
"0.58235246",
"0.5774391",
"0.5762921",
"0.5762921",
"0.5762921",
"0.5762921",
"0.5762921",
"0.5762921",
"0.576292... | 0.0 | -1 |
Return the raw Magento data for ``self.magento_id`` | def ou09(YKHO):
Aofo = YKHO.backend_adapter.read(YKHO.magento_id)
if Aofo and Aofo.get('attribute_id'):
YKHO.magento_id = Aofo.get('attribute_id')
return Aofo
else:
if not Aofo:
return Aofo
raise O2iA('Attribute id not found : %s' % Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SwtT(YKHO):\n return YKHO.__data",
"def m6Me(YKHO):\n return YKHO.data",
"def yLtf(YKHO):\n return {'bcode': YKHO.barcode, 'prodid': YKHO.product_id}",
"def WPdU(YKHO):\n return YKHO._raw_data",
"def WPdU(YKHO):\n return YKHO._raw_data",
"def WPdU(YKHO) -> str:\n return YKHO._raw_da... | [
"0.63187206",
"0.61803865",
"0.6134642",
"0.6042066",
"0.6042066",
"0.60308444",
"0.60308444",
"0.595182",
"0.5945739",
"0.58305377",
"0.5811236",
"0.5722459",
"0.5722459",
"0.5661492",
"0.5661492",
"0.5661492",
"0.5601185",
"0.5590722",
"0.5507192",
"0.549956",
"0.54979384",... | 0.68574977 | 0 |
id() int Returns a number that uniquely identifies this component. | def id(YKHO):
return id(YKHO._component) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PoKV(YKHO) -> str:\n return qe4Y.get(YKHO, 'component_id')",
"def PoKV(YKHO) -> str:\n return qe4Y.get(YKHO, 'component_id')",
"def PoKV(YKHO) -> cIM4:\n return YKHO.configuration.component_id",
"def id(YKHO):\n return YKHO._id",
"def id(YKHO):\n return YKHO.__id",
"def id(YKHO):\n ... | [
"0.81634444",
"0.81634444",
"0.7868774",
"0.782611",
"0.7802501",
"0.77660114",
"0.7758881",
"0.7757853",
"0.7751986",
"0.7751986",
"0.7751986",
"0.7751986",
"0.7751986",
"0.7751986",
"0.7751986",
"0.7751986",
"0.7751986",
"0.7751986",
"0.7751986",
"0.7751986",
"0.7751986",
... | 0.89312774 | 0 |
Returns the default collector settings | def yDgW(YKHO):
GPtr = super(WLDO, YKHO).get_default_config()
GPtr.update({'path': 'udp', 'allowed_names': 'InDatagrams, NoPorts, ' + 'InErrors, OutDatagrams, RcvbufErrors, SndbufErrors'})
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yDgW(YKHO):\n GPtr = super(leyK, YKHO).get_default_config()\n GPtr.update({'enabled': 'True', 'fs': ',', 'timeout': 300})\n return GPtr",
"def qimH():\n return {}",
"def yDgW(YKHO):\n GPtr = super(iwOa, YKHO).get_default_config()\n GPtr.update({'url': lMln, 'path': 'dropwizard'})\n ret... | [
"0.70514023",
"0.7008024",
"0.69490683",
"0.6713433",
"0.65743333",
"0.65309024",
"0.6521635",
"0.6515402",
"0.6466526",
"0.6447688",
"0.641337",
"0.6397818",
"0.6380512",
"0.63683224",
"0.6357208",
"0.63517016",
"0.6331759",
"0.63120294",
"0.62353724",
"0.6231899",
"0.620161... | 0.62074906 | 20 |
Returns the absolute path to a file given by the relative path | def pmON(Ux0P: str) -> str:
pmON = Hy7s.path.dirname(HwRy.argv[0])
if not pmON:
pmON = '.'
return pmON + '/' + Ux0P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgmy(qaEx, t_yv):\n import os\n eHKs = os.path.dirname(qaEx)\n Yb80 = os.path.join(eHKs, t_yv)\n return Yb80",
"def DsGm(AqKy):\n mAua = Hy7s.path.dirname(xAKo)\n return Hy7s.path.join(mAua, AqKy)",
"def t_yv(xAKo, pmON):\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo... | [
"0.85994697",
"0.78654426",
"0.7853082",
"0.7837121",
"0.7780681",
"0.77586025",
"0.77358365",
"0.7710484",
"0.7639049",
"0.760071",
"0.75819683",
"0.75277907",
"0.7514124",
"0.7490403",
"0.74542934",
"0.7454193",
"0.7432706",
"0.74195486",
"0.7414446",
"0.7407167",
"0.739119... | 0.6700842 | 95 |
adds motion blur at given angel to the image. | def O9mg(LNo8, Ot1W, YylR):
WZcn = HG12.motion_blur_kernel(Ot1W, YylR)
return Zxt2.ndimage.filters.convolve(LNo8, WZcn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ihGu(YKHO):\n IqDH = YKHO.horizontal.get()\n VXjJ = YKHO.master.images[-1]\n WUZM = jUwU.gaussian_blur(VXjJ, IqDH)\n YKHO.master.display_image.display_image(img=WUZM)\n YKHO.master.images.append(WUZM)",
"def UWj5(LNo8):\n return XC5k.GaussianBlur(LNo8, (7, 7), 0)",
"def jUwU(LNo8):\n r... | [
"0.60605735",
"0.60226476",
"0.5957153",
"0.5946662",
"0.5924968",
"0.5920352",
"0.5920352",
"0.58782876",
"0.5824981",
"0.57857263",
"0.5776827",
"0.57483697",
"0.573825",
"0.5737287",
"0.5730932",
"0.5693681",
"0.56637216",
"0.5510511",
"0.550405",
"0.5454563",
"0.5448282",... | 0.6321507 | 0 |
return an specific motion blur to image | def bxlt(LNo8):
return drJW(LNo8, [7]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UWj5(LNo8):\n return XC5k.GaussianBlur(LNo8, (7, 7), 0)",
"def BKdC(HPR0):\n VXjJ = oyIN.array(HPR0)\n kX19 = 1.5\n BqFm = XC5k.GaussianBlur(VXjJ, (11, 11), kX19)\n return BqFm",
"def bymt(VXjJ, WZcn):\n kECe = tzs0(WZcn)\n zr3f = XC5k.filter2D(VXjJ, -1, kECe)\n return zr3f",
"def... | [
"0.75197524",
"0.74753124",
"0.74634266",
"0.73787653",
"0.7351138",
"0.7347236",
"0.7347236",
"0.72560805",
"0.72475135",
"0.7027281",
"0.7001197",
"0.69660026",
"0.6961478",
"0.6913347",
"0.68922466",
"0.68882436",
"0.6856979",
"0.6832801",
"0.68317246",
"0.6806728",
"0.677... | 0.742846 | 3 |
Gets the list of most popular movies from Videeo. Gets all movies in descending order of their average rating. Excludes any movies with a rating lower than 'min_rating'. | def wxHM(hZyM=3):
PMTj = t0o2.objects.values('movie__m_id').annotate(rating=gjQi('rating')).order_by('-rating').filter(rating__gte=hZyM)
IwYI = [r8hN['movie__m_id'] for r8hN in PMTj]
sV3k = H4Ej.objects.filter(m_id__in=IwYI)
zjTs = dict([(YEnM.m_id, YEnM) for YEnM in sV3k])
Ycfe = [zjTs[ArpE] for Ar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LCHK(Pr14, ZliU=None, Xs0N=5):\n ZliU = ZliU if ZliU is not None else peQv()\n G6xw = ZliU['genres'].map(lambda MDIn: Pr14 in MDIn)\n a6Qw = ZliU['num_ratings'] > Xs0N\n deVW = ZliU[G6xw & a6Qw]\n return deVW.sort_values('rating', ascending=False)",
"def xRX8(YKHO, exwG):\n return l5Ro",
... | [
"0.70340586",
"0.6928632",
"0.6913326",
"0.6388382",
"0.63848567",
"0.63267213",
"0.62956077",
"0.62572306",
"0.6256958",
"0.6192984",
"0.61723053",
"0.6171027",
"0.614202",
"0.61292315",
"0.6128649",
"0.60818607",
"0.6050333",
"0.6035789",
"0.6014729",
"0.5886794",
"0.586519... | 0.80987626 | 0 |
Stop the audio stream. | def JCyR(YKHO):
YKHO.stream.stop_stream() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.stream.stop()\n YKHO.running = False",
"def JCyR(YKHO) -> None:\n YKHO._stream.stop()",
"def JCyR(YKHO) -> None:\n YKHO._stream.stop()",
"def JCyR(YKHO):\n YKHO.prestop()\n if not YKHO._graceful:\n YKHO._graceful = True\n YKHO.stream.stop_stream()\n YKHO.... | [
"0.7701117",
"0.76953137",
"0.7615434",
"0.7450446",
"0.7354546",
"0.73386073",
"0.7262591",
"0.72359985",
"0.72359985",
"0.7014574",
"0.6972987",
"0.69596606",
"0.6844021",
"0.68406713",
"0.67888784",
"0.67817616",
"0.67804784",
"0.677045",
"0.6749673",
"0.6715556",
"0.67075... | 0.76714396 | 2 |
Return the name of the sensor. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91896784",
"0.9168378",
"0.890185",
"0.8770976",
"0.8511273",
"0.8479953",
"0.844435",
"0.8299758",
"0.8186503",
"0.8105667",
"0.8079737",
"0.8066149",
"0.8049647",
"0.7700968",
"0.7612295",
"0.7611456",
"0.7600605",
"0.7600605",
"0.7600605",
"0.75392073",
"0.75166553",
... | 0.0 | -1 |
Return the unique of the sensor. | def ShR8(YKHO):
return YKHO._unique_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO.device_id + '_' + YKHO._sensor_type",
"def DV61(YKHO):\n return YKHO.serie.nunique()",
"def ShR8(YKHO):\n id = '{}{}{}'.format(Sugg, YKHO._account, YKHO.sensorName.lower().replace(' ', ''))\n return id",
"def ShR8(YKHO) -> str:\n return FShH(YKHO._config_entry.ent... | [
"0.7506052",
"0.73454386",
"0.71411604",
"0.7065196",
"0.7048771",
"0.6793633",
"0.6561676",
"0.65580696",
"0.65379405",
"0.6512118",
"0.6511427",
"0.6476796",
"0.6450381",
"0.6437327",
"0.64008117",
"0.638688",
"0.63762265",
"0.63412493",
"0.63340086",
"0.63236713",
"0.62874... | 0.61973107 | 43 |
Return the device class of the sensor. | def rM2U(YKHO):
return lc9R[YKHO._type][1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO.sensor_type['class']",
"def rM2U(YKHO):\n return lc9R[YKHO.sensor][3].get('device_class')",
"def rM2U(YKHO):\n return YKHO._sensor_type",
"def rM2U(YKHO):\n return YKHO._sensor_cfg[3]",
"def rM2U(YKHO):\n return YKHO._sensor_cfg[3]",
"def rM2U(YKHO) -> str | N... | [
"0.936224",
"0.9243053",
"0.923953",
"0.9161606",
"0.9161606",
"0.91570854",
"0.8956232",
"0.8953195",
"0.8950455",
"0.89203155",
"0.8719521",
"0.87172604",
"0.8707727",
"0.86602074",
"0.8652333",
"0.8396148",
"0.8383337",
"0.8381255",
"0.8381255",
"0.8381255",
"0.83367515",
... | 0.9040543 | 7 |
Return the state attributes of the device. | def R1i3(YKHO):
return {PlJk: v7XK, QVu8: YKHO.metoffice_now.date if YKHO.metoffice_now else None, sERv: YKHO._type, CLTz: YKHO.metoffice_site_id if YKHO.metoffice_site_id else None, iIAj: YKHO.metoffice_site_name if YKHO.metoffice_site_name else None} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO)... | [
"0.92738223",
"0.92053986",
"0.91516256",
"0.91516256",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148889",
"0.9148746",
"0.9148746",
"0.9137698",
"0.9110632",... | 0.82271665 | 50 |
Calculates effect size for nonproportional data. | def oGuw(z5su, QOe9):
fQkc = nUSe(z5su)
dJS6 = nUSe(QOe9)
return je4M(fQkc.mean, dJS6.mean, fQkc.nobs, dJS6.nobs, fQkc.std, dJS6.std) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mdbu(YKHO):\n fHXl = YKHO.mu + YKHO.absolute_effects\n Lgta = (fHXl * YKHO.test_splits).sum()\n S5kq = (YKHO.test_splits * oyIN.square(fHXl - Lgta)).sum()\n eHNT = oyIN.sqrt(S5kq) / YKHO.sigma\n return eHNT",
"def eMgk(YKHO, JxU2=None):\n if JxU2 is None:\n JxU2 = YKHO.prob1\n ret... | [
"0.7119022",
"0.6342775",
"0.63074774",
"0.62616235",
"0.61959773",
"0.6046894",
"0.60398793",
"0.58502096",
"0.5848326",
"0.58346575",
"0.57936573",
"0.5783445",
"0.5722568",
"0.5711514",
"0.56794244",
"0.5677118",
"0.5665433",
"0.5663338",
"0.564474",
"0.56443065",
"0.56163... | 0.617715 | 5 |
Computes one convergent fraction | def s1Cj(jzdc):
ywwl = 1
lWPh = jzdc[len(jzdc) - 1]
for YRbF in range(len(jzdc) - 2, -1, -1):
ywwl += lWPh * jzdc[YRbF]
jbXL = ywwl
ywwl = lWPh
lWPh = jbXL
return (ywwl, lWPh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MhEZ(YKHO):\n if YKHO.debug:\n print(f'enter fraction.simplify')\n sHyq = SFsb(YKHO.value[0], YKHO.value[1])\n YKHO.value = (YKHO.value[0] // sHyq.product(), YKHO.value[1] // sHyq.product())\n return",
"def Pusg(YKHO):\n import math\n Oa1e = math.gcd(YKHO.num, YKHO.den)\n return k... | [
"0.6632698",
"0.6612296",
"0.6512855",
"0.6405199",
"0.6393247",
"0.6328791",
"0.6323339",
"0.6229324",
"0.6212909",
"0.620456",
"0.62002426",
"0.6165748",
"0.61201674",
"0.6110797",
"0.60554385",
"0.60514224",
"0.6017895",
"0.6011515",
"0.6007244",
"0.597871",
"0.5952201",
... | 0.60397726 | 16 |
Create dataset reference from dataset. | def fWGg(YKHO, __n6=None):
if not __n6:
raise KUJC.exceptions.MissingDatasetError
YKHO.type = KUJC.utils.full_class_name(__n6)
YKHO.id = __n6.id
YKHO.history = jth9.deepcopy(__n6.history) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pg3E(YKHO, j3aw):\n GZBz('Geting dataset :' + j3aw)\n __n6 = lfvB.get(dataset_file_name=j3aw)\n return __n6",
"def bbTW(YKHO, __n6=None):\n if not __n6:\n raise KUJC.exceptions.MissingDatasetError\n NzbX = KUJC.dataset.DatasetReference()\n NzbX.from_dataset(dataset=__n6)\n YKHO.re... | [
"0.7274347",
"0.67541945",
"0.66489094",
"0.6634503",
"0.65469825",
"0.65316373",
"0.6378611",
"0.6367565",
"0.63656896",
"0.6327208",
"0.6287988",
"0.6274847",
"0.62744",
"0.6268349",
"0.6261156",
"0.6244324",
"0.6222291",
"0.6204049",
"0.6188746",
"0.6171622",
"0.6147788",
... | 0.68830264 | 1 |
Nonpublic method creating the actual (empty) dataset object. | def ZRjb(JZXy=''):
return azbc() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.__dataset = None",
"def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6",
"def FIMM(YKHO, __n6):\n YKHO._dataset = __n6",
"def CroE(YKHO):\n YKHO.dataset = yzDX(YKHO.dataset_config, YKHO.transform)\n return YKHO.dataset",
"def PK3w(YKHO, jQ3Z, **B2fa):\n return jQ3... | [
"0.75642174",
"0.7556849",
"0.7466317",
"0.7246786",
"0.7225319",
"0.72003406",
"0.70721096",
"0.7037645",
"0.697931",
"0.6922149",
"0.6905983",
"0.68870157",
"0.6862843",
"0.68362135",
"0.6798097",
"0.6785224",
"0.67833054",
"0.6766246",
"0.6760445",
"0.6702157",
"0.669537",... | 0.733732 | 3 |
Get or set the index corresponding to the axis values. The index is a list of data labels for each element in the axis | def d6pt(YKHO):
return YKHO._index | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO, BWXx):\n if not KrVU(BWXx):\n return YKHO._ax.index(BWXx)\n else:\n raise TypeError('index({value}) cannot be a string for a numerical axis'.format(value=BWXx))",
"def nW8f(YKHO, H5ew):\n for YRbF, mWFP in enumerate(YKHO.axis_labels):\n if mWFP == H5ew:\n r... | [
"0.670616",
"0.6673953",
"0.6495107",
"0.63223773",
"0.63015646",
"0.6292271",
"0.61369073",
"0.6121951",
"0.6089462",
"0.6066161",
"0.60489064",
"0.60489064",
"0.60437024",
"0.6036631",
"0.6009797",
"0.5990606",
"0.59399116",
"0.59118307",
"0.588701",
"0.585114",
"0.5803004"... | 0.0 | -1 |
Return whether the axes values are equidistant. True if the axis values are equidistant, False otherwise. None in case of no axis values. The property is set automatically if axis values are set and therefore readonly. While simple plotting of data values against nonuniform axes with nonequidistant values is usually st... | def hI90(YKHO):
return YKHO._equidistant | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wN5c(YKHO) -> bool:\n if len(YKHO.time) < 3:\n return True\n return len(YKHO.time.to_series().diff().dropna().unique()) == 1",
"def d99I(YKHO):\n if not (oyIN.abs(YKHO.axis_u.dot(YKHO.axis_v) < 1e-06) and oyIN.abs(YKHO.axis_v.dot(YKHO.axis_w) < 1e-06) and oyIN.abs(YKHO.axis_w.dot(YKHO.axis_u)... | [
"0.66698897",
"0.61169755",
"0.588325",
"0.5786408",
"0.5736001",
"0.5614308",
"0.5459992",
"0.53591156",
"0.5328026",
"0.53064346",
"0.529953",
"0.52876586",
"0.5242716",
"0.5231172",
"0.5211766",
"0.52102655",
"0.5177504",
"0.5170575",
"0.5126591",
"0.5118351",
"0.5114907",... | 0.6644519 | 1 |
Find the decimal value of any character in the alphabet. | def jcGo(YKHO, hcXw):
return YKHO.__alphabet.find(hcXw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GI21(YKHO, hido):\n for hcXw, mLGw in YKHO.alphabet.items():\n if hcXw == hido:\n return mLGw",
"def Zmkp(GIN8):\n KoG3 = 'abcdefghijklmnopqrstuvwxyz'\n sum = 0\n for sZqf in GIN8:\n biyQ = KoG3.find(sZqf)\n if biyQ == -1:\n biyQ = 0\n sum += biyQ... | [
"0.6955777",
"0.68831295",
"0.66964316",
"0.652347",
"0.6448869",
"0.6403654",
"0.6401977",
"0.6364307",
"0.6364307",
"0.63437116",
"0.62967074",
"0.6291315",
"0.6281344",
"0.6249494",
"0.6237745",
"0.62115896",
"0.62030464",
"0.61929226",
"0.61827475",
"0.6163866",
"0.616273... | 0.8357886 | 0 |
Renders the table using the template from the table options. | def _1tc(YKHO):
IO4Y = rPXJ.loader.get_template(YKHO.template)
fkz_ = {'breadcrumb': YKHO}
return IO4Y.render(fkz_, YKHO.request) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VCWC(YKHO):\n rPXJ = DAt9(YKHO.template)\n QePW = _1uh()\n return rPXJ.render(K1Ja(QePW, {'table': YKHO}))",
"def VCWC(YKHO):\n return eoaG(YKHO._meta.template, {'table': YKHO})",
"def Ad3r(YKHO):\n yield (\"\\n<table border=%r summary='a table'>\\n\" % YKHO.border)\n WBPg = YKHO.header\n... | [
"0.74242055",
"0.6807843",
"0.6338291",
"0.6253442",
"0.6233681",
"0.6226873",
"0.6200433",
"0.6182743",
"0.6181057",
"0.6161903",
"0.6133231",
"0.60895705",
"0.60802",
"0.60788226",
"0.60330886",
"0.6029842",
"0.6007357",
"0.59582686",
"0.59577566",
"0.5919672",
"0.59115946"... | 0.0 | -1 |
We should be able to create an account with a username and a password. | def vo9u(YKHO):
bD7m = '/register/'
nPrm = {'username': 'testUser1234', 'password': 'pass12345'}
geh0 = YKHO.client.post(bD7m, nPrm, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)
YKHO.assertEqual(mv1M.objects.count(), 2)
YKHO.assertEqual(SYRW.objects.count(), 1)
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLMW(YKHO, NtEF, D3lj, jTXt):\n _hkX = YKHO.client.post('/create_account', {'username': NtEF, 'email': D3lj, 'password': jTXt, 'location': 'home', 'language': 'Franglish', 'name': 'Fred Weasley', 'terms_of_service': 'true', 'honor_code': 'true'})\n return _hkX",
"def eLpg(YKHO, NtEF, jTXt):\n pass",... | [
"0.82805216",
"0.80722266",
"0.79142463",
"0.77801514",
"0.76982284",
"0.7565461",
"0.73977983",
"0.736303",
"0.7340366",
"0.7326268",
"0.732512",
"0.7303432",
"0.7249793",
"0.72208565",
"0.7209573",
"0.71971095",
"0.7193995",
"0.71871245",
"0.7186993",
"0.7147596",
"0.713769... | 0.0 | -1 |
Login should fail with 400 for a nonexistent user. | def ImCN(YKHO):
nPrm = {'username': 'nonexistentuser', 'password': 'nopasswordlol'}
geh0 = YKHO.login(nPrm)
lYY4 = 'Unable to log in with provided credentials.'
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
try:
if lYY4 not in geh0.data['non_field_errors']:
YKHO.f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TYjW(YKHO):\n geh0 = YKHO.client.post(xnUW.USER_LOGIN_URL, data={'login': 'bad_login', 'password': 'StrongPassword123'}, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def p2nD(YKHO):\n ygSt = {'email': 'eat@me.com', 'password': 'lolzIKid'}\n Ylbp = YKHO.client.... | [
"0.81295794",
"0.80571836",
"0.7867218",
"0.78567404",
"0.77576935",
"0.7749023",
"0.7701434",
"0.7656769",
"0.7617358",
"0.7607421",
"0.7607303",
"0.7559471",
"0.75544244",
"0.7552302",
"0.7552069",
"0.7493191",
"0.74792325",
"0.74773717",
"0.7452797",
"0.74496764",
"0.74424... | 0.744154 | 21 |
Return a custom 404 error. | def m7kB(tTpl):
return ('Sorry, Nothing at this URL.', 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf():\n return c1Bu(404)",
"def RQdI(P1dF):\n return '404 Error'",
"def RQdI(P1dF):\n return 'Bummer, there is nothing at this URL.'",
"def kfnF(P1dF):\n return ('No page here, dood. 404!', 404)",
"def o3cf(YKHO, P1dF):\n return (pz3A({'error': 'NOT FOUND'}), 404)",
"def m7kB(XObx):\... | [
"0.81159586",
"0.80410045",
"0.7738874",
"0.77369535",
"0.77182025",
"0.7689595",
"0.7670471",
"0.76112473",
"0.7602477",
"0.7570698",
"0.75528365",
"0.7545827",
"0.751882",
"0.74745256",
"0.7458403",
"0.7455682",
"0.74548143",
"0.74505144",
"0.7442062",
"0.7428278",
"0.74065... | 0.7254463 | 40 |
Returns the Iterator object | def Vs4Q(YKHO):
return iter(YKHO.model) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n return YKHO._next()",
"def Vs4Q(YKHO):\n return YKHO._next()",
"def Vs4Q(YKHO):\n return YKHO._next()",
"def aQZ9(object):\n oHE7 = None\n try:\n oHE7 = iter(object)\n except TypeError:\n pass\n return oHE7",
"def UDAb(YKHO):\n return next(YKHO.iterat... | [
"0.7819556",
"0.7819556",
"0.7819556",
"0.7808058",
"0.7799018",
"0.7789657",
"0.7777762",
"0.773226",
"0.7575465",
"0.7549315",
"0.753738",
"0.75318533",
"0.75247055",
"0.75146395",
"0.75007915",
"0.74823695",
"0.74823695",
"0.74823695",
"0.74823695",
"0.74823695",
"0.748236... | 0.0 | -1 |
takes input size and generates a random torch tensor to test the model | def Fynj(YKHO, GhuM):
YDR7 = GhuM[0]
zi3C = GhuM[1:]
return ht2j.rand(1, YDR7, *zi3C) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kM13():\n M4N3 = tuKI.choice(YfpN)\n ROpF = tuKI.choice((1, (2, 3), (4, 5, 6), (7, 8, 9, 10)))\n a1PO = ht2j.rand(ROpF).to(M4N3)\n nonlocal expected\n aEqx += a1PO.numel()\n return a1PO",
"def LseO(zNig):\n return ht2j.randn(zNig)",
"def ADdS(*zNig, UOVU=64, begE=None):\n vhpA = xDc... | [
"0.7177327",
"0.7068587",
"0.681733",
"0.6694878",
"0.6537697",
"0.6432953",
"0.6419269",
"0.63683456",
"0.63182",
"0.6280436",
"0.6278364",
"0.62698174",
"0.6253921",
"0.6236155",
"0.6138442",
"0.6135494",
"0.61175203",
"0.6109991",
"0.6106022",
"0.60953075",
"0.60860944",
... | 0.5803678 | 51 |
The string id associated with this analysis | def sc6O(YKHO):
return str(YKHO.analysis) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO):\n return str(YKHO.get_data('id'))",
"def id(YKHO) -> str:\n pass",
"def id(YKHO) -> str:\n return YKHO._id",
"def f1wq(YKHO):\n return YKHO.server.idstring(YKHO)",
"def unpH(YKHO):\n return ''",
"def id(YKHO) -> str:\n return YKHO._id",
"def id(YKHO) -> str:\n return ... | [
"0.7914687",
"0.78192365",
"0.7763028",
"0.7744371",
"0.77217525",
"0.7719384",
"0.76688325",
"0.76688325",
"0.76688325",
"0.76688325",
"0.76688325",
"0.76688325",
"0.76688325",
"0.76688325",
"0.76688325",
"0.76688325",
"0.76688325",
"0.76688325",
"0.76688325",
"0.7660906",
"... | 0.0 | -1 |
Check whether it is a sequence of some type. | def _vXL(Q6uT, cpuL, n4z0=None):
if n4z0 is None:
DSWN = ftIh.Sequence
else:
assert isinstance(n4z0, type)
DSWN = n4z0
if not isinstance(Q6uT, DSWN):
return False
for ZfUD in Q6uT:
if not isinstance(ZfUD, cpuL):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Znlm(Q6uT):\n return isinstance(Q6uT, g760.abc.Sequence) and (not isinstance(Q6uT, str))",
"def cxO3(YEnM):\n return isinstance(YEnM, bdIy)",
"def FDfP(YKHO) -> bool:\n return isinstance(YKHO.yaml_node, eJb6.SequenceNode)",
"def ysVX(YKHO):\n raise Bx6I.NotImplementedError()",
"def FDfP(BWX... | [
"0.79112864",
"0.78849316",
"0.76932395",
"0.7483998",
"0.7476312",
"0.7452354",
"0.74039936",
"0.73786527",
"0.73713434",
"0.73557633",
"0.72904116",
"0.7143708",
"0.7142964",
"0.6890467",
"0.6862335",
"0.68508655",
"0.66771424",
"0.66130203",
"0.6598843",
"0.65937495",
"0.6... | 0.8278426 | 0 |
Slice a list into several sub lists by a list of given length. | def q8Fb(mZmz, tm40):
if isinstance(tm40, int):
assert len(mZmz) % tm40 == 0
tm40 = [tm40] * int(len(mZmz) / tm40)
if not isinstance(tm40, list):
raise TypeError('"indices" must be an integer or a list of integers')
elif sum(tm40) != len(mZmz):
raise ValueError(f'sum of lens ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q8Fb(input, zNig):\n zi3C = len(input)\n hUWX = zi3C // zNig\n QhHk = zi3C % zNig\n Aofo = []\n oHE7 = iter(input)\n for YRbF in range(zNig):\n Aofo.append([])\n for r845 in range(hUWX):\n Aofo[YRbF].append(next(oHE7))\n if QhHk:\n Aofo[YRbF].append(... | [
"0.75841886",
"0.7578515",
"0.7286935",
"0.7256224",
"0.7206369",
"0.7065988",
"0.69726545",
"0.6897537",
"0.6890562",
"0.6884979",
"0.6857191",
"0.6840832",
"0.6838281",
"0.68362945",
"0.6706136",
"0.6704703",
"0.66583204",
"0.66537356",
"0.6650528",
"0.66388154",
"0.6633278... | 0.68237764 | 14 |
Concatenate a list of list into a single list. | def nMYr(mZmz):
return list(Hs6x.chain(*mZmz)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ENFq(nwEZ):\n return Pusg(lambda jzdc, Fg_i: jzdc + Fg_i, nwEZ, [])",
"def XyTs(*ZaRZ):\n Aofo = []\n for x1iM in ZaRZ:\n Aofo.extend(x1iM)\n return Aofo",
"def FMRY(Kt9y, I_KI):\n RJ3U = []\n if len(Kt9y) == 0:\n RJ3U.append(Kt9y)\n elif isinstance(Kt9y[0], list):\n ... | [
"0.83569485",
"0.7658576",
"0.76351273",
"0.752857",
"0.7474277",
"0.73940736",
"0.73832667",
"0.7324224",
"0.7311471",
"0.72927034",
"0.72693926",
"0.7179423",
"0.7147368",
"0.7017182",
"0.7000582",
"0.6957898",
"0.6942505",
"0.69308966",
"0.69212574",
"0.69006956",
"0.68883... | 0.8158095 | 1 |
Obtain thresholds and image masks directly from image. Abstracts away the need to handle histogram generation. | def hPLJ(VXjJ, aPd6=256, E3D9=32):
QzFq = XC5k.calcHist([VXjJ], channels=[0], mask=None, histSize=[aPd6], ranges=[0, aPd6])
Nhxk = qEmL.modified_TSMO(QzFq, M=E3D9, L=aPd6)
oGem = qEmL.multithreshold(VXjJ, Nhxk)
return (Nhxk, oGem) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, LNo8: np.ndarray) -> oyIN.ndarray:\n blGO = flsP(LNo8)\n oJYm = ILbh(blGO[:, :, 0])\n g_q9 = ILbh(blGO[:, :, 1])\n kcOA = blGO[:, :, 1] > oJYm\n tBad = blGO[:, :, 1] > g_q9\n _7BL = oyIN.logical_or(kcOA, tBad)\n return _7BL",
"def trX1(YKHO):\n for uOe2 in YKHO.roi_groups:\... | [
"0.6563018",
"0.6370107",
"0.63619435",
"0.6313332",
"0.6211727",
"0.61615443",
"0.6060991",
"0.6009466",
"0.59960824",
"0.59922373",
"0.5976325",
"0.5975568",
"0.5906319",
"0.58952147",
"0.58911747",
"0.5884242",
"0.5878501",
"0.5872466",
"0.58495414",
"0.58211845",
"0.58153... | 0.5666779 | 40 |
View function for home page of site | def d6pt(QePW):
if QePW.method == 'POST':
L03z = KYG4(QePW.POST)
if L03z.is_valid():
qlxx = LC16(L03z.cleaned_data['url'])
EBws = SNJM(url=qlxx.recipe_url, title=qlxx.title, ingredients=qlxx.ingredients, instructions=qlxx.instructions, servings=qlxx.servings, prep_time=qlxx.p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'home.html')",
"def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')",
"def kZiy(QePW):\n assert isinstance(QePW, eu5F)\n re... | [
"0.85561705",
"0.8463156",
"0.8426648",
"0.8388098",
"0.8337306",
"0.83208233",
"0.8319217",
"0.8253385",
"0.8186879",
"0.8180329",
"0.8155009",
"0.81181335",
"0.8090556",
"0.80876964",
"0.80813605",
"0.80692863",
"0.80689037",
"0.80665994",
"0.80665994",
"0.80665994",
"0.806... | 0.0 | -1 |
Get a single example from the dataset | def OP2O(YKHO, d6pt):
mvm2 = YKHO.samples[d6pt]
return PlQ0(mvm2, YKHO.imgTransform, YKHO.use_s1, YKHO.use_s2, YKHO.use_RGB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PU1l(YKHO):\n Aofo = getattr(YKHO, '_example', None)\n if Aofo is None:\n Aofo = next(iter(YKHO.train))\n YKHO._example = Aofo\n return Aofo",
"def crYB(__n6):\n return __n6.first()",
"def TNnH(YKHO, JKJ0):\n return JKJ0",
"def ZjU7(YKHO, or8S=-1):\n if or8S < 0:\n ... | [
"0.7115562",
"0.66712093",
"0.64783984",
"0.6403151",
"0.6335547",
"0.6269411",
"0.61371744",
"0.60608315",
"0.6044252",
"0.59989613",
"0.59826136",
"0.59711236",
"0.5924923",
"0.5903227",
"0.58972275",
"0.5886283",
"0.57957745",
"0.5786258",
"0.5776925",
"0.57686067",
"0.575... | 0.55057466 | 43 |
Equality does not include the message ID, which should be unique between different instances. | def xa14(YKHO, Elif):
Aofo = NotImplemented
if isinstance(Elif, LuKW):
Aofo = False
if YKHO is Elif:
Aofo = True
elif YKHO._message_length == Elif._message_length and YKHO._payload_length == Elif._payload_length and (YKHO._headers == Elif._headers) and (YKHO._payload == Elif.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Ol8d):\n return YKHO.source == Ol8d.source and YKHO.destination == Ol8d.destination and (YKHO.size_bytes == Ol8d.size_bytes) and (YKHO.message_type == Ol8d.message_type) and (YKHO.data == Ol8d.data)",
"def xa14(YKHO, Elif):\n return YKHO.__id == Elif.get_id()",
"def xa14(YKHO, Elif):\n ... | [
"0.70127857",
"0.6743486",
"0.66894925",
"0.66731906",
"0.6627223",
"0.6595702",
"0.65352756",
"0.65295297",
"0.65107906",
"0.64951575",
"0.64414275",
"0.6438396",
"0.64345294",
"0.6383868",
"0.63804936",
"0.63795507",
"0.63537985",
"0.6348592",
"0.6348143",
"0.6338608",
"0.6... | 0.6758602 | 1 |
Tests if other is not equal to this instance. | def Vdqg(YKHO, Elif):
cIT_ = YKHO.__eq__(Elif)
if cIT_ is not NotImplemented:
return not cIT_
else:
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return n... | [
"0.90741354",
"0.8946026",
"0.8946026",
"0.8946026",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.890229",
"0.... | 0.0 | -1 |
Returns the last header added to the message. May be None if no headers available. The header is removed from the stack of headers. | def Fd_7(YKHO):
WBPg = None
if YKHO._headers:
WBPg = YKHO._headers.pop()
YKHO._set_message_length()
return WBPg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mri3(YKHO):\n WBPg = None\n if YKHO._headers:\n WBPg = YKHO._headers[-1:]\n return WBPg",
"def Gktc(YKHO, Oft8: str, WmM4=None):\n return YKHO._headers.get(Oft8, WmM4)",
"def AEtC(YKHO):\n return YKHO._headers",
"def _cyv(YKHO):\n return YKHO._header",
"def gZzj(YKHO):\n ret... | [
"0.7802154",
"0.73739195",
"0.67139435",
"0.62423646",
"0.623711",
"0.6096702",
"0.59779835",
"0.5943574",
"0.5941998",
"0.5941998",
"0.5941998",
"0.5928577",
"0.57978076",
"0.5756973",
"0.5720089",
"0.57079345",
"0.57037115",
"0.5655182",
"0.5655182",
"0.5655182",
"0.5647583... | 0.7823903 | 0 |
Checks if a substate has already been visited in a branch development. | def N1Hv(YKHO, QTBn, azXi):
pd5Z = (QTBn.getPacmanPosition(), QTBn.getGhostPositions(), QTBn.getFood())
if pd5Z in azXi:
return True
else:
azXi.append(pd5Z)
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XEOG(G6E_):\n azXi = False\n for aevO in CgBB:\n azXi = jrqz(aevO, G6E_)\n if azXi == True:\n return azXi\n return azXi",
"def EEyf(YKHO, jehQ):\n if YKHO.branch == jehQ:\n return True\n return False",
"def YaHk(mUsz):\n for exwG in mUsz.outgoing.missing:\n... | [
"0.6242016",
"0.618626",
"0.6019165",
"0.5765065",
"0.5723522",
"0.5625592",
"0.5608321",
"0.5593507",
"0.55687916",
"0.5556473",
"0.5554559",
"0.5488278",
"0.5481852",
"0.54778093",
"0.5393281",
"0.5385669",
"0.5378496",
"0.53639996",
"0.53441024",
"0.53441024",
"0.53331286"... | 0.5851164 | 3 |