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 |
|---|---|---|---|---|---|---|
Test the Name Request's data fields. Excludes associations 'names' and 'applicant' we have other tests for those. | def hfOn(x0hE, DvJO, P4t4):
u8oc = h1MU()
u8oc['expirationDate'] = qcWV.date.today() - qcWV.timedelta(days=2)
BWRE = EYtt(u8oc, wHLO.APPROVED)
assert BWRE is not None
T_2m = gekU(x0hE, BWRE.get('id'))
i5jP = qQXR.loads(T_2m.data)
assert i5jP is not None
print('PATCH Response: \n' + qQXR.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMTg(YKHO):\n L03z = H6V6.FormSubmissionSerializer(dict(first_name='Foo', last_name='Bar'))\n YKHO.assertTrue(L03z.is_valid())\n YKHO.assertTrue(L03z.warnings)\n L03z = H6V6.FormSubmissionSerializer(dict(first_name=' ', last_name='Bar'))\n YKHO.assertTrue(not L03z.is_valid())\n YKHO.assertTru... | [
"0.6856315",
"0.67844576",
"0.6469362",
"0.6423284",
"0.6295794",
"0.6268803",
"0.62580746",
"0.62485105",
"0.62292486",
"0.62253004",
"0.62046",
"0.6141002",
"0.6136052",
"0.6124499",
"0.6118254",
"0.61162966",
"0.6068963",
"0.60687816",
"0.60495335",
"0.6037729",
"0.6003585... | 0.0 | -1 |
Test the Name Request's data fields. Excludes associations 'names' and 'applicant' we have other tests for those. | def UGJ_(x0hE, DvJO, P4t4):
u8oc = h1MU()
BWRE = EYtt(u8oc, wHLO.CONDITIONAL)
assert BWRE is not None
T_2m = gekU(x0hE, BWRE.get('id'))
i5jP = qQXR.loads(T_2m.data)
assert i5jP is not None
print('PATCH Response: \n' + qQXR.dumps(i5jP, sort_keys=True, indent=4, separators=(',', ': ')) + '\n')... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMTg(YKHO):\n L03z = H6V6.FormSubmissionSerializer(dict(first_name='Foo', last_name='Bar'))\n YKHO.assertTrue(L03z.is_valid())\n YKHO.assertTrue(L03z.warnings)\n L03z = H6V6.FormSubmissionSerializer(dict(first_name=' ', last_name='Bar'))\n YKHO.assertTrue(not L03z.is_valid())\n YKHO.assertTru... | [
"0.6855317",
"0.67845404",
"0.6468736",
"0.6421595",
"0.6294784",
"0.6268557",
"0.6257751",
"0.6248697",
"0.6228813",
"0.622562",
"0.620358",
"0.61401826",
"0.6135873",
"0.6124101",
"0.61188203",
"0.61148363",
"0.60687435",
"0.60684067",
"0.60493547",
"0.60359263",
"0.6003391... | 0.0 | -1 |
Test the Name Request's data fields. Excludes associations 'names' and 'applicant' we have other tests for those. | def ANf3(x0hE, DvJO, P4t4):
u8oc = h1MU()
u8oc['expirationDate'] = qcWV.date.today() - qcWV.timedelta(days=2)
BWRE = EYtt(u8oc, wHLO.CONDITIONAL)
assert BWRE is not None
T_2m = gekU(x0hE, BWRE.get('id'))
i5jP = qQXR.loads(T_2m.data)
assert i5jP is not None
print('PATCH Response: \n' + qQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMTg(YKHO):\n L03z = H6V6.FormSubmissionSerializer(dict(first_name='Foo', last_name='Bar'))\n YKHO.assertTrue(L03z.is_valid())\n YKHO.assertTrue(L03z.warnings)\n L03z = H6V6.FormSubmissionSerializer(dict(first_name=' ', last_name='Bar'))\n YKHO.assertTrue(not L03z.is_valid())\n YKHO.assertTru... | [
"0.6856315",
"0.67844576",
"0.6469362",
"0.6423284",
"0.6295794",
"0.6268803",
"0.62580746",
"0.62485105",
"0.62292486",
"0.62253004",
"0.62046",
"0.6141002",
"0.6136052",
"0.6124499",
"0.6118254",
"0.61162966",
"0.6068963",
"0.60687816",
"0.60495335",
"0.6037729",
"0.6003585... | 0.0 | -1 |
Test the Name Request's data fields. Excludes associations 'names' and 'applicant' we have other tests for those. | def pNa4(x0hE, DvJO, P4t4):
u8oc = h1MU()
NzlW = [{'name': 'BLUE HERON TOURS LTD.', 'choice': 1, 'designation': 'LTD.', 'name_type_cd': 'CO', 'consent_words': '', 'conflict1': 'BLUE HERON TOURS LTD.', 'conflict1_num': '0515211', 'corpNum': '12345'}]
u8oc['names'] = NzlW
BWRE = EYtt(u8oc, wHLO.CONDITIONA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMTg(YKHO):\n L03z = H6V6.FormSubmissionSerializer(dict(first_name='Foo', last_name='Bar'))\n YKHO.assertTrue(L03z.is_valid())\n YKHO.assertTrue(L03z.warnings)\n L03z = H6V6.FormSubmissionSerializer(dict(first_name=' ', last_name='Bar'))\n YKHO.assertTrue(not L03z.is_valid())\n YKHO.assertTru... | [
"0.6856396",
"0.67851794",
"0.64705753",
"0.64222014",
"0.62961215",
"0.6269514",
"0.62590176",
"0.6248691",
"0.6229688",
"0.6225411",
"0.62041616",
"0.6141593",
"0.61359847",
"0.612476",
"0.6120099",
"0.61159986",
"0.60691273",
"0.60691",
"0.6050361",
"0.6037722",
"0.6004951... | 0.0 | -1 |
Test the Name Request's data fields. Excludes associations 'names' and 'applicant' we have other tests for those. | def _XEE(x0hE, DvJO, P4t4):
u8oc = h1MU()
NzlW = [{'name': 'BLUE HERON TOURS LTD.', 'choice': 1, 'designation': 'LTD.', 'name_type_cd': 'CO', 'consent_words': '', 'conflict1': 'BLUE HERON TOURS LTD.', 'conflict1_num': '0515211', 'corpNum': '12345'}]
u8oc['names'] = NzlW
BWRE = EYtt(u8oc, wHLO.APPROVED)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMTg(YKHO):\n L03z = H6V6.FormSubmissionSerializer(dict(first_name='Foo', last_name='Bar'))\n YKHO.assertTrue(L03z.is_valid())\n YKHO.assertTrue(L03z.warnings)\n L03z = H6V6.FormSubmissionSerializer(dict(first_name=' ', last_name='Bar'))\n YKHO.assertTrue(not L03z.is_valid())\n YKHO.assertTru... | [
"0.6856315",
"0.67844576",
"0.6469362",
"0.6423284",
"0.6295794",
"0.6268803",
"0.62580746",
"0.62485105",
"0.62292486",
"0.62253004",
"0.62046",
"0.6141002",
"0.6136052",
"0.6124499",
"0.6118254",
"0.61162966",
"0.6068963",
"0.60687816",
"0.60495335",
"0.6037729",
"0.6003585... | 0.0 | -1 |
Test the Name Request's data fields. Excludes associations 'names' and 'applicant' we have other tests for those. | def LUUx(x0hE, DvJO, P4t4):
u8oc = h1MU()
BWRE = EYtt(u8oc, wHLO.REJECTED)
assert BWRE is not None
T_2m = gekU(x0hE, BWRE.get('id'))
i5jP = qQXR.loads(T_2m.data)
assert i5jP is not None
print('PATCH Response: \n' + qQXR.dumps(i5jP, sort_keys=True, indent=4, separators=(',', ': ')) + '\n')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMTg(YKHO):\n L03z = H6V6.FormSubmissionSerializer(dict(first_name='Foo', last_name='Bar'))\n YKHO.assertTrue(L03z.is_valid())\n YKHO.assertTrue(L03z.warnings)\n L03z = H6V6.FormSubmissionSerializer(dict(first_name=' ', last_name='Bar'))\n YKHO.assertTrue(not L03z.is_valid())\n YKHO.assertTru... | [
"0.6855317",
"0.67845404",
"0.6468736",
"0.6421595",
"0.6294784",
"0.6268557",
"0.6257751",
"0.6248697",
"0.6228813",
"0.622562",
"0.620358",
"0.61401826",
"0.6135873",
"0.6124101",
"0.61188203",
"0.61148363",
"0.60687435",
"0.60684067",
"0.60493547",
"0.60359263",
"0.6003391... | 0.0 | -1 |
Test the Name Request's data fields. Excludes associations 'names' and 'applicant' we have other tests for those. | def fVGZ(x0hE, DvJO, P4t4):
u8oc = h1MU()
BWRE = EYtt(u8oc, wHLO.HISTORICAL)
assert BWRE is not None
T_2m = gekU(x0hE, BWRE.get('id'))
i5jP = qQXR.loads(T_2m.data)
assert i5jP is not None
print('PATCH Response: \n' + qQXR.dumps(i5jP, sort_keys=True, indent=4, separators=(',', ': ')) + '\n')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMTg(YKHO):\n L03z = H6V6.FormSubmissionSerializer(dict(first_name='Foo', last_name='Bar'))\n YKHO.assertTrue(L03z.is_valid())\n YKHO.assertTrue(L03z.warnings)\n L03z = H6V6.FormSubmissionSerializer(dict(first_name=' ', last_name='Bar'))\n YKHO.assertTrue(not L03z.is_valid())\n YKHO.assertTru... | [
"0.6856315",
"0.67844576",
"0.6469362",
"0.6423284",
"0.6295794",
"0.6268803",
"0.62580746",
"0.62485105",
"0.62292486",
"0.62253004",
"0.62046",
"0.6141002",
"0.6136052",
"0.6124499",
"0.6118254",
"0.61162966",
"0.6068963",
"0.60687816",
"0.60495335",
"0.6037729",
"0.6003585... | 0.0 | -1 |
Test the Name Request's data fields. Excludes associations 'names' and 'applicant' we have other tests for those. | def MTNX(x0hE, DvJO, P4t4):
u8oc = h1MU()
BWRE = EYtt(u8oc, wHLO.HOLD)
assert BWRE is not None
T_2m = gekU(x0hE, BWRE.get('id'))
i5jP = qQXR.loads(T_2m.data)
assert i5jP is not None
print('PATCH Response: \n' + qQXR.dumps(i5jP, sort_keys=True, indent=4, separators=(',', ': ')) + '\n')
pr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMTg(YKHO):\n L03z = H6V6.FormSubmissionSerializer(dict(first_name='Foo', last_name='Bar'))\n YKHO.assertTrue(L03z.is_valid())\n YKHO.assertTrue(L03z.warnings)\n L03z = H6V6.FormSubmissionSerializer(dict(first_name=' ', last_name='Bar'))\n YKHO.assertTrue(not L03z.is_valid())\n YKHO.assertTru... | [
"0.6856396",
"0.67851794",
"0.64705753",
"0.64222014",
"0.62961215",
"0.6269514",
"0.62590176",
"0.6248691",
"0.6229688",
"0.6225411",
"0.62041616",
"0.6141593",
"0.61359847",
"0.612476",
"0.6120099",
"0.61159986",
"0.60691273",
"0.60691",
"0.6050361",
"0.6037722",
"0.6004951... | 0.0 | -1 |
Test the Name Request's data fields. Excludes associations 'names' and 'applicant' we have other tests for those. | def UR0t(x0hE, DvJO, P4t4):
u8oc = h1MU()
BWRE = EYtt(u8oc, wHLO.INPROGRESS)
assert BWRE is not None
T_2m = gekU(x0hE, BWRE.get('id'))
i5jP = qQXR.loads(T_2m.data)
assert i5jP is not None
print('PATCH Response: \n' + qQXR.dumps(i5jP, sort_keys=True, indent=4, separators=(',', ': ')) + '\n')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMTg(YKHO):\n L03z = H6V6.FormSubmissionSerializer(dict(first_name='Foo', last_name='Bar'))\n YKHO.assertTrue(L03z.is_valid())\n YKHO.assertTrue(L03z.warnings)\n L03z = H6V6.FormSubmissionSerializer(dict(first_name=' ', last_name='Bar'))\n YKHO.assertTrue(not L03z.is_valid())\n YKHO.assertTru... | [
"0.6856315",
"0.67844576",
"0.6469362",
"0.6423284",
"0.6295794",
"0.6268803",
"0.62580746",
"0.62485105",
"0.62292486",
"0.62253004",
"0.62046",
"0.6141002",
"0.6136052",
"0.6124499",
"0.6118254",
"0.61162966",
"0.6068963",
"0.60687816",
"0.60495335",
"0.6037729",
"0.6003585... | 0.0 | -1 |
Test the Name Request's data fields. Excludes associations 'names' and 'applicant' we have other tests for those. | def rPq8(x0hE, DvJO, P4t4):
u8oc = h1MU()
BWRE = EYtt(u8oc, wHLO.CANCELLED)
assert BWRE is not None
T_2m = gekU(x0hE, BWRE.get('id'))
i5jP = qQXR.loads(T_2m.data)
assert i5jP is not None
print('PATCH Response: \n' + qQXR.dumps(i5jP, sort_keys=True, indent=4, separators=(',', ': ')) + '\n')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pMTg(YKHO):\n L03z = H6V6.FormSubmissionSerializer(dict(first_name='Foo', last_name='Bar'))\n YKHO.assertTrue(L03z.is_valid())\n YKHO.assertTrue(L03z.warnings)\n L03z = H6V6.FormSubmissionSerializer(dict(first_name=' ', last_name='Bar'))\n YKHO.assertTrue(not L03z.is_valid())\n YKHO.assertTru... | [
"0.6855317",
"0.67845404",
"0.6468736",
"0.6421595",
"0.6294784",
"0.6268557",
"0.6257751",
"0.6248697",
"0.6228813",
"0.622562",
"0.620358",
"0.61401826",
"0.6135873",
"0.6124101",
"0.61188203",
"0.61148363",
"0.60687435",
"0.60684067",
"0.60493547",
"0.60359263",
"0.6003391... | 0.0 | -1 |
Initialize a new fraction with the given numerator and denominator (default 1). | def FIMM(YKHO, M6pt, UUZ1=1):
if type(M6pt) is float or type(UUZ1) is float:
_7_e = 0
h0cy = 0
if type(M6pt) is float:
NOYC = str(M6pt)
_7_e = NOYC[::-1].find('.')
if type(UUZ1) is float:
_Kbb = str(UUZ1)
h0cy = _Kbb[::-1].find('.')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, M6pt, UUZ1=1):\n if isinstance(M6pt, int) and isinstance(UUZ1, int):\n YKHO.numerator, YKHO.denominator = Z01l(M6pt, UUZ1)\n elif isinstance(M6pt, float) or isinstance(UUZ1, float):\n oXaw = kteF(*oKP7(M6pt)) / kteF(*oKP7(UUZ1))\n YKHO.numerator, YKHO.denominator = (oXaw.n... | [
"0.81973064",
"0.8012377",
"0.7520016",
"0.74647737",
"0.74325144",
"0.74325144",
"0.74019",
"0.7333637",
"0.7312237",
"0.729378",
"0.7118518",
"0.71048033",
"0.70491385",
"0.6951585",
"0.69145435",
"0.6864692",
"0.6786412",
"0.6704132",
"0.6685387",
"0.65421164",
"0.6447026"... | 0.79220915 | 2 |
Returns the IoU of two bounding boxes | def z9IC(YKHO, knvf, IkxF):
JqUn, pvBw, hyHQ, TYrM = (knvf[:, 0], knvf[:, 1], knvf[:, 2], knvf[:, 3])
gSFI, KDnR, IrGj, iM_U = (IkxF[:, 0], IkxF[:, 1], IkxF[:, 2], IkxF[:, 3])
jlR9 = ht2j.max(JqUn, gSFI)
sJ5B = ht2j.max(pvBw, KDnR)
XePN = ht2j.min(hyHQ, IrGj)
FKpz = ht2j.min(TYrM, iM_U)
wpbH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plrc(MErA, ZnGJ):\n KK0L, _hgE, IgEf, AjNA = (MErA[0], MErA[1], ZnGJ[0], ZnGJ[1])\n OZPM, W6Dw, o9iJ, hTeg = (KK0L + MErA[2], _hgE + MErA[3], IgEf + ZnGJ[2], AjNA + ZnGJ[3])\n sA0R, Kphd = (max(KK0L, IgEf), min(OZPM, o9iJ))\n YijY, sIW6 = (max(_hgE, AjNA), min(W6Dw, hTeg))\n if Kphd < sA0R or sI... | [
"0.83965695",
"0.833223",
"0.8331644",
"0.8312673",
"0.8276368",
"0.8213512",
"0.81779075",
"0.806134",
"0.8048678",
"0.8047763",
"0.80424416",
"0.8013019",
"0.8007231",
"0.79926914",
"0.79926914",
"0.79774594",
"0.7962505",
"0.79583234",
"0.79462785",
"0.79285467",
"0.792019... | 0.75782776 | 42 |
Prepare image for inputting to the neural network. Transforms numpy object to PyTorch's input format | def j9DC(YKHO, VXjJ, pRq0):
VXjJ = YKHO.letterbox_image(VXjJ, (pRq0, pRq0))
VXjJ = VXjJ[:, :, ::-1].transpose((2, 0, 1)).copy()
VXjJ = ht2j.from_numpy(VXjJ).float().div(255.0).unsqueeze(0)
return VXjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WB6U(LNo8):\n if LNo8.ndim == 2:\n LNo8 = oyIN.dstack([LNo8, LNo8, LNo8])\n KxxS = LNo8.copy()\n return KxxS",
"def Un5w(YKHO, VXjJ):\n VXjJ = XC5k.resize(VXjJ, YKHO.dim, XC5k.INTER_AREA)\n if YKHO.channels == 1:\n VXjJ = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)\n VXjJ = o... | [
"0.7238859",
"0.71984065",
"0.70848143",
"0.7048878",
"0.69754463",
"0.69709975",
"0.6961264",
"0.6922357",
"0.6919329",
"0.68871367",
"0.68559057",
"0.6825464",
"0.6818824",
"0.6812267",
"0.6792672",
"0.6726558",
"0.6685329",
"0.6682276",
"0.6642686",
"0.66404206",
"0.663489... | 0.6865218 | 10 |
Gets the date the user joined as a timestamp. Used by the web app to maintain a sorted list of users after creating new ones. | def X9l9(YKHO, CBIr):
return ITS7.mktime(CBIr.date_joined.timetuple()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FeQa(YKHO):\n return YKHO.user.date_joined",
"def sWUC(YKHO):\n try:\n return YKHO.user.lastread_set.order_by('-timestamp')[0].timestamp\n except IndexError:\n return YKHO.user.date_joined",
"def OaUO(YKHO):\n return f'{YKHO.fullname} joined on {YKHO.date_joined:%d/%m/%Y}'",
"de... | [
"0.8045036",
"0.7157365",
"0.6859209",
"0.67317",
"0.6576172",
"0.6440307",
"0.64067227",
"0.63895935",
"0.63528836",
"0.6350696",
"0.6315577",
"0.61892444",
"0.61787736",
"0.61551875",
"0.61170036",
"0.60806715",
"0.6048895",
"0.59243447",
"0.59101456",
"0.5842869",
"0.58281... | 0.8547753 | 0 |
Computes the lease preemptability score See class documentation for details on what policy is implemented here. See documentation of PreemptabilityPolicy.get_lease_preemptability_score for more details on this function. | def xtG7(YKHO, sATv, JigE, ITS7):
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xtG7(YKHO, sATv, JigE, ITS7):\n if sATv.get_type() == RHx6.ADVANCE_RESERVATION and JigE.get_type() == RHx6.BEST_EFFORT:\n return YKHO._get_aging_factor(JigE, ITS7)\n else:\n return -1",
"def yFnZ(u54L, f0tD, qEye, Ayfi, X1RT, iLML, hI0L, VRhI, InLe, VnKc):\n akib = u54L * f0tD\n p1k... | [
"0.7361814",
"0.58475584",
"0.5707015",
"0.5470564",
"0.54486126",
"0.5417449",
"0.5404182",
"0.5404182",
"0.5394168",
"0.53791624",
"0.53695256",
"0.53432924",
"0.53401273",
"0.5337037",
"0.5327197",
"0.5296336",
"0.52840716",
"0.5269686",
"0.52471584",
"0.52300155",
"0.5228... | 0.7766685 | 0 |
Computes the lease preemptability score See class documentation for details on what policy is implemented here. See documentation of PreemptabilityPolicy.get_lease_preemptability_score for more details on this function. | def xtG7(YKHO, sATv, JigE, ITS7):
if sATv.get_type() == RHx6.ADVANCE_RESERVATION and JigE.get_type() == RHx6.BEST_EFFORT:
return YKHO._get_aging_factor(JigE, ITS7)
else:
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xtG7(YKHO, sATv, JigE, ITS7):\n return -1",
"def yFnZ(u54L, f0tD, qEye, Ayfi, X1RT, iLML, hI0L, VRhI, InLe, VnKc):\n akib = u54L * f0tD\n p1kx = akib * X1RT\n JyzT = p1kx.copy()\n JyzT[:] = 0\n if not qEye:\n p1kx = p1kx * VRhI\n if qEye:\n DySs = A_8F(akib, InLe, Ayfi, iLM... | [
"0.7766134",
"0.58455634",
"0.57073957",
"0.546993",
"0.5447764",
"0.5415413",
"0.540281",
"0.540281",
"0.53932375",
"0.5376256",
"0.5367462",
"0.5340261",
"0.53380144",
"0.533504",
"0.53265357",
"0.5294178",
"0.5281496",
"0.5269073",
"0.52458537",
"0.52287036",
"0.52275187",... | 0.73609585 | 1 |
Make an invalid request 404 | def SVUK():
x0hE = xiv5()
geh0 = x0hE.get('http://google.com/404')
assert not geh0.ok
assert geh0.status_code == 404 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SFO9(QePW):\n raise uhgT",
"def o3cf():\n UAju = {'_resource': ['not found']}\n return P1dF(404, UAju)",
"def DCL3(P1dF):\n return Yxsy(pz3A({'message': 'Not found, Invalid Parameters or URL'}), 401)",
"def o3cf(YKHO):\n raise lW34()",
"def RQdI(XObx):\n return Yxsy(pz3A(error='oops, ... | [
"0.80597377",
"0.77081585",
"0.76086944",
"0.75996566",
"0.75976646",
"0.75833696",
"0.7577458",
"0.7574787",
"0.7532714",
"0.7478484",
"0.74752414",
"0.7426684",
"0.7424045",
"0.7408399",
"0.7391855",
"0.7384605",
"0.73487127",
"0.734486",
"0.7342763",
"0.73330945",
"0.73291... | 0.811657 | 0 |
convert RGB img to list of int corresponding to the segmentation values | def a8Pe(VXjJ):
r8hN, exwG = VXjJ.shape[:2]
GTkx = jP5X(VXjJ.reshape((r8hN * exwG, 3)))
_0VL = oyIN.searchsorted(l_a5, GTkx)
return _0VL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WQ8H(YKHO):\n return [int(WKvO * 255) for WKvO in YKHO.getValues()]",
"def tBjG(YKHO, Xn71):\n lEHr = list(Xn71.getdata())\n return [lEHr[YRbF * Xn71.size[0]:(YRbF + 1) * Xn71.size[0]] for YRbF in range(Xn71.size[1])][0]",
"def mCo1(YKHO, VXjJ):\n vC9B = list(VXjJ.getdata())\n yzQ0, MKlR = V... | [
"0.7287765",
"0.6987591",
"0.67791826",
"0.66731185",
"0.66725385",
"0.65019333",
"0.6341683",
"0.6340268",
"0.6315178",
"0.6298885",
"0.6265417",
"0.62629914",
"0.6261533",
"0.623477",
"0.6193982",
"0.6171199",
"0.6161061",
"0.61590487",
"0.6158991",
"0.6158991",
"0.6158991"... | 0.70549536 | 1 |
returns cluster the image is the closest | def Anah(VXjJ, PdEg):
QzFq = A3Ac(VXjJ)
eFr6 = []
for ACia in sorted(PdEg.keys()):
b6xw = PdEg[ACia]
eFr6.append(_2xU(QzFq, b6xw))
return oyIN.argmin(eFr6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q0S6(YKHO):\n kZIt, q2Xo = min(((YKHO.cluster_distance(dg7v, iYf1), (dg7v, iYf1)) for dg7v, iYf1 in E6VQ(YKHO.clusters, 2) if YKHO.cluster_distance(dg7v, iYf1) > 0))\n return (kZIt, q2Xo)",
"def kYcg():\n from scipy.spatial import distance as pImw\n from imutils import perspective\n from imuti... | [
"0.74275327",
"0.7139132",
"0.7094282",
"0.6976801",
"0.6929708",
"0.6839099",
"0.682408",
"0.67823696",
"0.6754169",
"0.6625043",
"0.65802085",
"0.6563735",
"0.6553958",
"0.6541096",
"0.6524193",
"0.64190024",
"0.641583",
"0.6396444",
"0.6392091",
"0.63885975",
"0.63500273",... | 0.7712551 | 0 |
Return a |_BaseSeriesXmlRewriter| subclass appropriate to chart_type. | def w3ao(pGGC, qwhx):
UL8e = D52l
iHBM = {UL8e.BUBBLE: l2mu, UL8e.BUBBLE_THREE_D_EFFECT: l2mu, UL8e.XY_SCATTER: kRG3, UL8e.XY_SCATTER_LINES: kRG3, UL8e.XY_SCATTER_LINES_NO_MARKERS: kRG3, UL8e.XY_SCATTER_SMOOTH: kRG3, UL8e.XY_SCATTER_SMOOTH_NO_MARKERS: kRG3}.get(pGGC, SENh)
return iHBM(qwhx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O7O7(tA4O):\n LYeD = tA4O.getparent().tag\n try:\n vV01 = {Z7qo('c:areaChart'): VUcg, Z7qo('c:barChart'): Kh4c, Z7qo('c:bubbleChart'): OImZ, Z7qo('c:doughnutChart'): Aqxt, Z7qo('c:lineChart'): JVZc, Z7qo('c:pieChart'): Aqxt, Z7qo('c:radarChart'): QLAE, Z7qo('c:scatterChart'): Lqgp}[LYeD]\n exce... | [
"0.5853297",
"0.5639055",
"0.56171304",
"0.530307",
"0.49337506",
"0.49337506",
"0.49337506",
"0.49337506",
"0.4897474",
"0.48917288",
"0.48325467",
"0.48216566",
"0.47639635",
"0.47639635",
"0.47639635",
"0.47639635",
"0.47179544",
"0.4689337",
"0.4689337",
"0.4689337",
"0.4... | 0.8148135 | 0 |
The XMLescaped name for this series. | def mWFP(YKHO):
return IguF(YKHO._series.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return A5Qt(YKHO._data['name'])",
"def Ehky(YKHO) -> str:\n return YKHO._x_name",
"def mWFP(YKHO) -> str:\n vKSD = YKHO.osirix_service.DicomSeriesName(YKHO.osirixrpc_uid)\n YKHO._name = YKHO.response_processor.process_name(vKSD)\n return YKHO._name",
"def mWFP(YKHO):\n if ... | [
"0.7040956",
"0.6941346",
"0.68787265",
"0.6687985",
"0.6622452",
"0.66218764",
"0.6580743",
"0.65249294",
"0.6519639",
"0.6505111",
"0.65016574",
"0.65014625",
"0.65000933",
"0.6460335",
"0.64522886",
"0.64481556",
"0.6442813",
"0.64322805",
"0.6424719",
"0.64235514",
"0.641... | 0.83465135 | 0 |
Rewrite the series data under chartSpace using the chart data contents. All serieslevel formatting is left undisturbed. If the chart data contains fewer series than chartSpace, the extra series in chartSpace are deleted. If chart_data contains more series than the chartSpace element, new series are added to the last pl... | def l76l(YKHO, fkwL):
J16M, QYya = (fkwL.plotArea, fkwL.date_1904)
qwhx = YKHO._chart_data
YKHO._adjust_ser_count(J16M, len(qwhx))
for tA4O, OP_A in zip(J16M.sers, qwhx):
YKHO._rewrite_ser_data(tA4O, OP_A, QYya) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VA53(YKHO, nPrm: np.array=oyIN.array([])):\n if nPrm.size == 0:\n nPrm = YKHO.source_backup[YKHO.data_y_axis]\n AI8z = YKHO.source.data[YKHO.data_x_axis].size\n nPrm = nPrm[:AI8z]\n Mi6e = {YKHO.data_y_axis: [(slice(nPrm.size), nPrm)]}\n YKHO.source.patch(Mi6e)",
"def VA53(YKHO, nPrm: n... | [
"0.6169008",
"0.6169008",
"0.5787859",
"0.5573339",
"0.54297394",
"0.53631985",
"0.51334846",
"0.5119271",
"0.5109454",
"0.5103063",
"0.50726205",
"0.5055967",
"0.5031638",
"0.5009431",
"0.49751148",
"0.49720156",
"0.49694505",
"0.4966047",
"0.49397865",
"0.4909454",
"0.48924... | 0.7694158 | 0 |
Test the swap strategy to route a complete problem on a T device. The coupling map in this test corresponds to | def _49d(YKHO):
u7iQ = (((1, 3),), ((0, 1), (3, 4)), ((1, 3),))
iMGt = yv07([[0, 1], [1, 2], [1, 3], [3, 4]])
iMGt.make_symmetric()
J9kY = tdfW(iMGt, u7iQ)
khtY = QWPH.from_list([('IIIZZ', 1), ('IIZIZ', 2), ('IZIIZ', 3), ('ZIIIZ', 4), ('IIZZI', 5), ('IZIZI', 6), ('ZIIZI', 7), ('IZZII', 8), ('ZIZII',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def otn3(YKHO):\n AuvG = yv07([[0, 1], [0, 2], [2, 3]])\n jOpO = vR29(3, 'q')\n DPNn = Rv0t(jOpO)\n DPNn.cx(jOpO[1], jOpO[2])\n aUfT = dh9Z(DPNn)\n aEqx = Rv0t(jOpO)\n aEqx.swap(jOpO[1], jOpO[0])\n aEqx.cx(jOpO[0], jOpO[2])\n k5pY = M5hv(AuvG)\n DOuq = k5pY.run(aUfT)\n YKHO.assertE... | [
"0.7052856",
"0.7052807",
"0.7015206",
"0.6949214",
"0.6880868",
"0.6778835",
"0.6750554",
"0.6570813",
"0.65016997",
"0.642353",
"0.61696213",
"0.61053634",
"0.610396",
"0.6084388",
"0.60732275",
"0.60177636",
"0.60015225",
"0.59941983",
"0.5952758",
"0.5919002",
"0.59110546... | 0.72467583 | 0 |
Test that a circuit with only single qubit gates is left unchanged. | def SQ7B(YKHO):
khtY = QWPH.from_list([('IIIX', 1), ('IIXI', 2), ('IZII', 3), ('XIII', 4)])
Jdbc = Rv0t(4)
Jdbc.append(qAeR(khtY, 1), range(4))
YKHO.assertEqual(Jdbc, YKHO.pm_.run(Jdbc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pfl4(YKHO):\n LZom = Rv0t(1)\n LZom.x(0)\n TkwI = XOH4(LZom)\n aLbr = vu7u(1)\n aLbr.add_gate('X', targets=[0])\n assert YKHO._compare_circuit(TkwI, aLbr)",
"def Xc5h(YKHO):\n P8oC = Rv0t(1, 1)\n P8oC.x(0).c_if(0, True)\n QOe9 = Rv0t(1, 1).compose(P8oC)\n YKHO.assertIsNot(P8oC.c... | [
"0.7311001",
"0.7098801",
"0.6962367",
"0.6954789",
"0.68096447",
"0.6756224",
"0.67279404",
"0.6615437",
"0.6613166",
"0.6583192",
"0.65595174",
"0.65426636",
"0.6528433",
"0.65022326",
"0.64852744",
"0.64760554",
"0.6464133",
"0.6425599",
"0.6422559",
"0.64183336",
"0.64159... | 0.7339032 | 0 |
r""" Manifold of rectangular orthogonal matrices parametrized as a projection from | def FIMM(YKHO, zNig, JXoF='expm'):
super().__init__(dimensions=2, size=zNig, total_space=g936(size=pUhd.size_so(zNig), triv=JXoF, lower=True))
YKHO.triv = JXoF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lOe5(RmBG, Dngr):\n Dngr = Dngr * -1\n x2Ss = oyIN.dot(oyIN.linalg.inv(RmBG), Dngr)\n V4V9 = x2Ss[:, 0]\n XalQ = x2Ss[:, 1]\n ztYM = x2Ss[:, 2]\n vC9B = epAf.sqrt(oyIN.linalg.norm(V4V9, 2) * oyIN.linalg.norm(XalQ, 2))\n c92d = V4V9 / vC9B\n KF_e = XalQ / vC9B\n y_o0 = ztYM / vC9B\n ... | [
"0.67675465",
"0.6663133",
"0.6503965",
"0.6472955",
"0.6403337",
"0.638837",
"0.6350689",
"0.6324756",
"0.62847",
"0.6271091",
"0.62632775",
"0.62569594",
"0.62489873",
"0.62441885",
"0.6216197",
"0.6195204",
"0.61210805",
"0.61147296",
"0.6097634",
"0.60927117",
"0.6079798"... | 0.0 | -1 |
r""" Manifold of rectangular orthogonal matrices parametrized using its tangent space. To parametrize this tangent space we use the orthogonal projection from the ambient | def FIMM(YKHO, zNig, JXoF='expm'):
super().__init__(dimensions=2, size=zNig)
if ht2j.__version__ >= '1.7.0':
Emd4 = YKHO.__class__.__name__
raise RuntimeError('{} not available in PyTorch 1.7.0, as it introduced a breaking change in the gradients of the QR decomposition. Use {} instead.'.format(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vpEl(LFlW, _tIi, es2x, tlxW, zX3H, DjSP):\n TVTK = _tIi - LFlW\n H2v2 = tlxW - es2x\n rb7a = DjSP - zX3H\n o0ZM = 2.0 / TVTK\n BhJz = 2.0 / H2v2\n Rv0k = 2.0 / -rb7a\n UShr = -(_tIi + LFlW) / TVTK\n Yrvv = -(tlxW + es2x) / H2v2\n yl4j = -(DjSP + zX3H) / rb7a\n return PdX4((o0ZM, 0... | [
"0.59927565",
"0.5847539",
"0.5796941",
"0.57870376",
"0.57785064",
"0.57469237",
"0.5678359",
"0.56125975",
"0.5567737",
"0.55345136",
"0.5516208",
"0.5508",
"0.55063707",
"0.54374564",
"0.54348445",
"0.5429044",
"0.54273176",
"0.54125965",
"0.5400447",
"0.53796303",
"0.5369... | 0.0 | -1 |
Sets the deployment_id of this LoadBalancerSpecification. | def biGm(YKHO, biGm):
YKHO._deployment_id = biGm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biGm(YKHO, biGm: int):\n if biGm is None:\n raise ValueError('Invalid value for `deployment_id`, must not be `None`')\n YKHO._deployment_id = biGm",
"def JTuY(Emd4, rdpC, VhAE, biGm):\n DXni = OMqC.get_secret_key(VhAE)\n YAq3 = VURP(rdpC, DXni)\n YAq3.set_deployment_id(biGm)",
"def FI... | [
"0.6999026",
"0.6574027",
"0.65011674",
"0.618418",
"0.6039219",
"0.59494084",
"0.58553123",
"0.58553123",
"0.55512065",
"0.55444163",
"0.55444163",
"0.53189886",
"0.53189886",
"0.52137965",
"0.52137965",
"0.5018918",
"0.4991624",
"0.4977923",
"0.49555403",
"0.49555403",
"0.4... | 0.7639033 | 0 |
Sets the name of this LoadBalancerSpecification. | def mWFP(YKHO, mWFP):
if mWFP is None:
raise ValueError('Invalid value for `name`, must not be `None`')
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO, mWFP):\n if YKHO._configuration.client_side_validation and mWFP is None:\n raise ValueError('Invalid value for `name`, must not be `None`')\n YKHO._name = mWFP",
"def mWFP(YKHO, mWFP):\n if YKHO._configuration.client_side_validation and mWFP is None:\n raise ValueError('Inva... | [
"0.6779549",
"0.6779549",
"0.6675069",
"0.6663579",
"0.66599274",
"0.66599274",
"0.6632308",
"0.6623945",
"0.6623945",
"0.6623945",
"0.6623945",
"0.6623945",
"0.6623945",
"0.6623945",
"0.6623945",
"0.656637",
"0.6565581",
"0.6564204",
"0.6559495",
"0.6518869",
"0.6518869",
... | 0.62370646 | 67 |
Sets the project_id of this LoadBalancerSpecification. | def ekCf(YKHO, ekCf):
if ekCf is None:
raise ValueError('Invalid value for `project_id`, must not be `None`')
YKHO._project_id = ekCf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ekCf(YKHO, ekCf):\n YKHO._project_id = ekCf",
"def ekCf(YKHO, ekCf):\n YKHO._project_id = ekCf",
"def KAKp(YKHO, ekCf):\n YKHO._create_resource('project_id', ekCf)",
"def e5y4(YKHO, ekCf: str):\n bo34.info('Set project id to {}'.format(ekCf))\n YKHO.project_id = ekCf",
"def gUoT(YKHO, gU... | [
"0.71954125",
"0.71954125",
"0.70539343",
"0.68288434",
"0.6635627",
"0.63097006",
"0.61724246",
"0.5975032",
"0.5848627",
"0.5848627",
"0.57874113",
"0.57180136",
"0.5712046",
"0.5688179",
"0.5688179",
"0.5688179",
"0.5537938",
"0.5535748",
"0.55104584",
"0.5499721",
"0.5488... | 0.6605431 | 5 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Generate Iterator over usable hosts in a network. This is like __iter__ except it doesn't return the network or broadcast addresses. | def Yr7o(YKHO):
DpUl = int(YKHO.network) + 1
Rrt4 = int(YKHO.broadcast) - 1
while DpUl <= Rrt4:
DpUl += 1
yield pE_C(DpUl - 1, version=YKHO._version) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n return YKHO.hosts.__iter__()",
"def oHE7():\n YaI2 = 'mnist.cnn_2convb_2dense'\n if 'NNPATTERNS_TEST_FILTER' in Hy7s.environ:\n YaI2 = Hy7s.environ['NNPATTERNS_TEST_FILTER']\n\n def ALnb(LCet, yR_P):\n U5bT = [('%s.%s' % (LCet, mWFP), getattr(yR_P, mWFP)()) for mWFP in... | [
"0.7389165",
"0.66198534",
"0.64701086",
"0.64362156",
"0.6362086",
"0.6297959",
"0.6182405",
"0.6156675",
"0.61253226",
"0.61140114",
"0.6105985",
"0.6045234",
"0.59747523",
"0.5961094",
"0.59473675",
"0.5946296",
"0.5933348",
"0.59191823",
"0.58875436",
"0.58633125",
"0.585... | 0.8106668 | 0 |
Return prefix length from the decimal netmask. | def NlzA(YKHO, pBgW, ZHfW=32):
while ZHfW:
if pBgW & 1 == 1:
break
pBgW >>= 1
ZHfW -= 1
return ZHfW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def es34(ZHfW):\n WPNJ = ''\n for tb3x in ZHfW.split('.'):\n WPNJ += bin(int(tb3x))[2:].zfill(8)\n return len(WPNJ.rstrip('0'))",
"def cMFn(YKHO):\n return YKHO.network_object.prefixlen",
"def cMFn(YKHO):\n return YKHO.network_object.prefixlen",
"def Wov8(Emd4, D8Ke, zI7W):\n return ... | [
"0.7799062",
"0.777237",
"0.777237",
"0.7397749",
"0.7333151",
"0.7333151",
"0.7333151",
"0.73073834",
"0.73073834",
"0.72595507",
"0.725827",
"0.71967185",
"0.7175504",
"0.7127486",
"0.7127486",
"0.7112548",
"0.71104836",
"0.6992273",
"0.69428873",
"0.69428873",
"0.69428873"... | 0.0 | -1 |
The subnets which join to make the current subnet. In the case that self contains only one IP (self._prefixlen == 32 for IPv4 or self._prefixlen == 128 for IPv6), return a list with just ourself. | def cf3_(YKHO, fKL3=1, KrmV=None):
if YKHO._prefixlen == YKHO._max_prefixlen:
yield YKHO
return
if KrmV is not None:
if KrmV < YKHO._prefixlen:
raise ValueError('new prefix must be longer')
if fKL3 != 1:
raise ValueError('cannot set prefixlen_diff and new_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npkd(YKHO):\n return YKHO._subnets",
"def lhDG(YKHO):\n if YKHO._subnets is not None:\n return YKHO._subnets\n Npkd = []\n for iJBO in YKHO.all_compartments():\n QdAy = iJBO.all_subnets()\n if QdAy is not None:\n Npkd += QdAy\n YKHO._subnets = Npkd\n return N... | [
"0.744982",
"0.702952",
"0.70106196",
"0.6808103",
"0.67429113",
"0.67429113",
"0.66820407",
"0.66820407",
"0.66820407",
"0.66577184",
"0.6623551",
"0.66116375",
"0.66116375",
"0.65560216",
"0.65422195",
"0.6467092",
"0.6430084",
"0.6430084",
"0.6430084",
"0.6371558",
"0.6353... | 0.5657996 | 74 |
Return a list of subnets, rather than an iterator. | def VWZy(YKHO, fKL3=1, KrmV=None):
return list(YKHO.iter_subnets(fKL3, KrmV)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VvNk(YKHO):\n _hkX = []\n afYC = YKHO.get_children()\n for aUGN in afYC:\n if isinstance(aUGN, wDYe):\n _hkX.append(aUGN)\n return _hkX",
"def Npkd(YKHO):\n return YKHO._subnets",
"def FVdW(YKHO, **B2fa):\n try:\n Npkd = YKHO._nt_drv.list_subnets(**B2fa)['subnets'... | [
"0.80742824",
"0.80025816",
"0.7921307",
"0.78439057",
"0.76684076",
"0.76609385",
"0.76609385",
"0.76609385",
"0.76520646",
"0.7622417",
"0.7495661",
"0.7488037",
"0.7488037",
"0.7414445",
"0.74065024",
"0.7312169",
"0.727187",
"0.71827084",
"0.7178685",
"0.7126724",
"0.7126... | 0.69143116 | 30 |
The supernet containing the current network. | def OS4k(YKHO, fKL3=1, KrmV=None):
if YKHO._prefixlen == 0:
return YKHO
if KrmV is not None:
if KrmV > YKHO._prefixlen:
raise ValueError('new prefix must be shorter')
if fKL3 != 1:
raise ValueError('cannot set prefixlen_diff and new_prefix')
fKL3 = YKHO._p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tFRG(D8Ke):\n try:\n Zxma = SwOd.ip_network(D8Ke)\n OS4k = Zxma.supernet()\n return (D8Ke, str(OS4k))\n except Exception as e:\n return (D8Ke, 'N/A')",
"def Zxma(YKHO):\n return YKHO._net",
"def qGac(YKHO):\n return YKHO.__network",
"def eVVj(YKHO):\n try:\n ... | [
"0.70317906",
"0.693702",
"0.683255",
"0.6681654",
"0.6666106",
"0.6666106",
"0.66127574",
"0.65839404",
"0.65245426",
"0.6500355",
"0.63690865",
"0.63214374",
"0.62956095",
"0.6289513",
"0.6289513",
"0.6289513",
"0.6289513",
"0.6289513",
"0.6289513",
"0.6246688",
"0.6192858"... | 0.0 | -1 |
Ensure that migrations do not need to be made | def eeWI(pVAQ):
rOAL('makemigrations')
yvT9, XObx = pVAQ.readouterr()
assert yvT9 == 'No changes detected\n'
assert XObx == '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zgY_(YKHO):\n UAju = HtAL()\n YKHO.assertEqual(UAju, [])",
"def DxfP(YKHO):\n aEqx = [tZoW.Warning('You have unapplied migrations; your app may not work properly until they are applied.', hint=\"Run 'python manage.py migrate' to apply them.\")]\n UAju = HtAL()\n YKHO.assertEqual(UAju, aEqx)",
... | [
"0.7583125",
"0.7581154",
"0.72909236",
"0.7178022",
"0.7088137",
"0.699761",
"0.6913835",
"0.6888059",
"0.68632734",
"0.68377626",
"0.6791216",
"0.6791216",
"0.6785266",
"0.6753223",
"0.6713894",
"0.6712698",
"0.669202",
"0.6679978",
"0.6677748",
"0.66666275",
"0.6661943",
... | 0.62979376 | 42 |
Downsample x by decimation. | def myXy(WKvO, _0fC: int):
return WKvO[:, :, ::_0fC] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def myXy(qIxc, nPrm):\n ooJc = Gaon.decimate(nPrm, qIxc.downsample_factor, axis=0)\n return ooJc",
"def Bare(WKvO: np.ndarray, G1Hx: int=1) -> oyIN.ndarray:\n if not iUPF(G1Hx):\n raise Exception('Downsampling factor must be an integer.')\n if G1Hx > 1:\n return WKvO[::G1Hx]\n return... | [
"0.7292641",
"0.7205264",
"0.70522606",
"0.7019745",
"0.6908866",
"0.68082935",
"0.6610145",
"0.6588272",
"0.65507716",
"0.6544055",
"0.64267844",
"0.641022",
"0.6407755",
"0.6381643",
"0.634827",
"0.62902063",
"0.62780464",
"0.62208706",
"0.62205136",
"0.62121654",
"0.619673... | 0.67605805 | 6 |
Return the nearest valid length to use with the model so that there is no time steps left over in a convolutions, e.g. for all layers, size of the input kernel_size % stride = 0. If the mixture has a valid length, the estimated sources will have exactly the same length when context = 1. If context > 1, the two signals ... | def zmdd(YKHO, u54L):
for bGrB in range(YKHO.depth):
if YKHO.upsample:
u54L = epAf.ceil(u54L / YKHO.stride) + YKHO.kernel_size - 1
else:
u54L = epAf.ceil((u54L - YKHO.kernel_size) / YKHO.stride) + 1
u54L = max(1, u54L)
u54L += YKHO.context - 1
for bGrB in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K5jc(zk33, QJWG, dvgN, _0fC):\n if zk33 is None:\n return None\n zk33 *= _0fC\n if dvgN == 'valid':\n zk33 += max(QJWG - _0fC, 0)\n elif dvgN == 'full':\n zk33 -= _0fC + QJWG - 2\n return zk33",
"def uGya(UUD3, QJWG, dvgN, _0fC):\n if UUD3 is None:\n return None\... | [
"0.6069644",
"0.589268",
"0.57295704",
"0.57187134",
"0.567519",
"0.5660999",
"0.5649468",
"0.5614918",
"0.5584547",
"0.5562335",
"0.5530117",
"0.5526285",
"0.5466492",
"0.5460034",
"0.54230934",
"0.5399033",
"0.5393302",
"0.53759706",
"0.53650475",
"0.5356329",
"0.5304662",
... | 0.6834985 | 0 |
Return a full copy of this point. | def i3ak(YKHO):
return PvyL(YKHO.x, YKHO.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return PvyL(YKHO.x, YKHO.y)",
"def jth9(YKHO):\n return PvyL(YKHO.x, YKHO.y)",
"def jth9(YKHO):\n return PvyL(YKHO.x, YKHO.y, YKHO.curve)",
"def jth9(YKHO):\n return PvyL(YKHO.x, YKHO.y, YKHO.curve)",
"def jth9(YKHO):\n return PvyL(**YKHO)",
"def i3ak(YKHO):\n return P... | [
"0.85679895",
"0.8554773",
"0.83091885",
"0.83091885",
"0.825702",
"0.81454784",
"0.78185064",
"0.77579087",
"0.75866157",
"0.75457925",
"0.7386449",
"0.7352075",
"0.7218066",
"0.71539384",
"0.70980155",
"0.708083",
"0.7032384",
"0.69805926",
"0.6880062",
"0.68794024",
"0.687... | 0.81515104 | 5 |
Convert coordinate values to integers. | def ZwuY(YKHO):
YKHO.x = int(YKHO.x)
YKHO.y = int(YKHO.y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UnH3(YKHO):\n YKHO.x = int(YKHO.x)\n YKHO.y = int(YKHO.y)",
"def ZwuY(YKHO):\n YKHO.x = int(YKHO.x)\n YKHO.y = int(YKHO.y)",
"def xSyY(W0Eb):\n W0Eb = map(round, W0Eb)\n W0Eb = map(int, W0Eb)\n return tuple(W0Eb)",
"def xEP1(YKHO, WKvO, LVAh):\n if WKvO > YKHO.size - 1 or LVAh > Y... | [
"0.7804812",
"0.75427866",
"0.7406259",
"0.6935346",
"0.6779961",
"0.6638523",
"0.638662",
"0.6357891",
"0.6328062",
"0.62995315",
"0.6281991",
"0.6263388",
"0.6259419",
"0.62398666",
"0.62006354",
"0.6195398",
"0.61671",
"0.6119263",
"0.6118208",
"0.61123383",
"0.6087818",
... | 0.7495851 | 2 |
Rotate counterclockwise around a point, by theta degrees. Positive y goes up, as in traditional mathematics. The new position is returned as a new Point. | def OODR(YKHO, XP5J, q7In):
Aofo = YKHO.clone()
Aofo.slide(-XP5J.x, -XP5J.y)
Aofo.rotate(q7In)
Aofo.slide(XP5J.x, XP5J.y)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tEIf(YKHO, AU8u, q7In):\n WKvO, LVAh = AU8u\n eYrV = WKvO * epAf.cos(q7In) - LVAh * epAf.sin(q7In)\n ldQK = WKvO * epAf.sin(q7In) + LVAh * epAf.cos(q7In)\n return (eYrV, ldQK)",
"def N0Pp(YKHO, q7In, AU8u=None, jDK_=None):\n raise NotImplementedError",
"def N0Pp(YKHO, q7In):\n WKvO, LVAh ... | [
"0.79469997",
"0.7359806",
"0.72949284",
"0.7103755",
"0.7014066",
"0.6954481",
"0.6937837",
"0.6919683",
"0.6903651",
"0.6835041",
"0.6820497",
"0.68129826",
"0.67968327",
"0.67394036",
"0.6713168",
"0.670741",
"0.6704591",
"0.6677011",
"0.66740876",
"0.6666574",
"0.66632175... | 0.689988 | 9 |
Initialize a rectangle from two points. | def FIMM(YKHO, EBgd=PvyL(), HpuQ=PvyL()):
YKHO.set_points(EBgd, HpuQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h_YX(o4D3: int, si3g: int, ajwV: int, skBL: int) -> 'Rect':\n return rbZs(PvyL(o4D3, si3g), PvyL(ajwV, skBL))",
"def FIMM(YKHO, X3qZ, ZYCo):\n YKHO.x = min(X3qZ[0], ZYCo[0])\n YKHO.y = min(X3qZ[1], ZYCo[1])\n YKHO.width = max(X3qZ[0], ZYCo[0]) - YKHO.x\n YKHO.height = max(X3qZ[1], ZYCo[1]) - Y... | [
"0.76459295",
"0.7533835",
"0.74055827",
"0.73551583",
"0.7323072",
"0.7323072",
"0.7256392",
"0.723574",
"0.7081212",
"0.7050383",
"0.70453525",
"0.698457",
"0.6969628",
"0.6968708",
"0.6961213",
"0.6839396",
"0.6827829",
"0.6818871",
"0.6796975",
"0.6766019",
"0.676471",
... | 0.6785874 | 19 |
Yields all integer points in the rectangle. | def Vs4Q(YKHO):
for LVAh in range(int(YKHO.min.y), int(YKHO.max.y) + 1):
for WKvO in range(int(YKHO.min.x), int(YKHO.max.x) + 1):
yield PvyL(WKvO, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LgjP(YKHO) -> jd6F[PvyL, None, None]:\n for LVAh in range(YKHO.y, YKHO.y + YKHO.h):\n for WKvO in range(YKHO.x, YKHO.x + YKHO.w):\n yield PvyL(WKvO, LVAh)",
"def yVZ2():\n for LVAh in range(9):\n for WKvO in range(9):\n yield (WKvO, LVAh)",
"def BZdW(YKHO, yOAJ):\n... | [
"0.71306145",
"0.70155835",
"0.69516987",
"0.6927509",
"0.6849567",
"0.66466963",
"0.6605121",
"0.6577006",
"0.6520469",
"0.6461372",
"0.64406824",
"0.64169663",
"0.634491",
"0.6340695",
"0.63387126",
"0.6322409",
"0.6322409",
"0.6284333",
"0.6245715",
"0.62393284",
"0.619783... | 0.7409656 | 0 |
Returns the lowest common multiple of nonnegative integers n and m | def BsJX(exwG: int, r8hN: int) -> int:
assert type(exwG) is int or type(r8hN) is int, 'Both arguments must be ints'
assert exwG >= 0, f'n:{exwG} must be >= than 0'
assert r8hN >= 0, f'm:{r8hN} must be >= than 0'
h3KG = [exwG * (YRbF + 1) for YRbF in range(r8hN)]
qBei = [r8hN * (r845 + 1) for r845 in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsJX(exwG, r8hN):\n if exwG > r8hN:\n return exwG // ML2l(exwG, r8hN) * r8hN\n else:\n return r8hN // ML2l(exwG, r8hN) * exwG",
"def tRHj(ywwl, r8hN):\n for jzdc in [2, 3]:\n WKvO = YJls(jzdc, r8hN, ywwl) - 1\n Oa1e = ML2l(WKvO, ywwl)\n if Oa1e != 1 and Oa1e != yww... | [
"0.766542",
"0.7576554",
"0.7534641",
"0.7456098",
"0.7212436",
"0.7151836",
"0.7151471",
"0.7128156",
"0.7112565",
"0.709625",
"0.70861274",
"0.70445704",
"0.70440096",
"0.7026399",
"0.69728225",
"0.69562477",
"0.6950261",
"0.69502443",
"0.69462925",
"0.69358754",
"0.6925224... | 0.7967876 | 0 |
Returns True if n is coprime with m, else False | def Y_La(r8hN: int, exwG: int) -> bool:
assert type(exwG) is int or type(Mkmy) is int, 'Both arguments must be ints'
return ML2l(exwG, r8hN) == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IWmg(r8hN, exwG):\n while r8hN % exwG:\n r8hN, exwG = (exwG, r8hN % exwG)\n return exwG == 1",
"def OCGr(exwG, r8hN):\n return tjkb(exwG, r8hN) == 1",
"def ByFs(Z9rn, exwG):\n Aofo = 0\n for WKvO in range(exwG):\n Aofo = Aofo ** 2 + Z9rn\n if abs(Aofo) > 2:\n ... | [
"0.84507906",
"0.8223389",
"0.7105015",
"0.7076928",
"0.68950695",
"0.68905395",
"0.68897235",
"0.6873674",
"0.6852993",
"0.68509513",
"0.6834762",
"0.6817329",
"0.6811884",
"0.679406",
"0.67858815",
"0.6771016",
"0.6750132",
"0.67430115",
"0.6732953",
"0.667839",
"0.6660638"... | 0.8915382 | 0 |
Returns prime factorization as a list with repeats such that prod(pfactor(n)) == n ... theoretically. Breaks down for large numbers for unknown reasons. | def iQb_(exwG: int) -> list:
assert type(exwG) is int, 'Argument must be an integer'
for YRbF in range(2, bBOM(PZyS(exwG)) + 1):
if exwG % YRbF == 0:
return [YRbF] + iQb_(int(exwG // YRbF))
return [] if exwG == 1 else [exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aWCg(exwG: int):\n Ylbp = []\n WdZV(exwG, Ylbp)\n return Ylbp",
"def F93g(exwG):\n vC9B = list(uBVK(exwG))\n assert hObQ(vC9B) == exwG\n return vC9B",
"def DwOa(exwG):\n T7Rt = []\n Csk6 = 2\n while Csk6 * Csk6 <= exwG:\n while exwG % Csk6 == 0:\n T7Rt.append(Cs... | [
"0.8016591",
"0.79543173",
"0.7950625",
"0.7939107",
"0.7832707",
"0.78326166",
"0.77650845",
"0.7756503",
"0.77131826",
"0.7696778",
"0.7686311",
"0.7663057",
"0.7653285",
"0.7651778",
"0.76464504",
"0.7642451",
"0.7624506",
"0.76178795",
"0.7602593",
"0.75822604",
"0.757481... | 0.77890396 | 6 |
Returns a list of prime factors of n such that each element in the list is unique. IN PROGRESS | def SQbM(exwG: int) -> list:
assert type(exwG) is int, 'Argument must be an integer'
U5bT = list(set(iQb_(exwG)))
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yqo3(exwG):\n return sorted(set(PMYn(exwG)))",
"def aWCg(exwG: int):\n Ylbp = []\n WdZV(exwG, Ylbp)\n return Ylbp",
"def KX6O(exwG):\n Llmz = []\n return sorted(Llmz)",
"def u57p(exwG):\n LwFL = list(range(0, exwG + 1))\n for YRbF in range(2, int(epAf.sqrt(exwG)) + 1):\n if... | [
"0.87800765",
"0.87170976",
"0.870004",
"0.86012435",
"0.857447",
"0.8573645",
"0.85390455",
"0.847236",
"0.847236",
"0.84666836",
"0.8464178",
"0.8449249",
"0.84088606",
"0.8396279",
"0.8392087",
"0.83805954",
"0.8379968",
"0.8377137",
"0.83348",
"0.8330392",
"0.83223194",
... | 0.7834273 | 87 |
Returns all factors of an integer n as a sorted list | def Llmz(exwG: int) -> list:
assert type(exwG) is int, 'Argument must be an integer'
h3KG = [exwG // YRbF for YRbF in range(1, bBOM(PZyS(exwG)) + 1) if exwG % YRbF == 0]
qBei = [YRbF for YRbF in range(1, bBOM(PZyS(exwG)) + 1) if exwG % YRbF == 0]
return sorted(qBei + h3KG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Llmz(exwG):\n if exwG > 0:\n Llmz = BMro(exwG)\n hFiK = [1]\n for XP5J, Mkmy in Llmz:\n hFiK = [Csk6 * XP5J ** tTpl for Csk6 in hFiK for tTpl in range(Mkmy + 1)]\n return sorted(hFiK)\n else:\n return [0]",
"def BMro(exwG):\n Csk6 = 2\n Llmz = []\n ... | [
"0.8971429",
"0.8932238",
"0.8930242",
"0.868445",
"0.8654321",
"0.85760444",
"0.8506076",
"0.8477751",
"0.84413624",
"0.842333",
"0.84075",
"0.8371469",
"0.83644795",
"0.8340169",
"0.8340169",
"0.8339274",
"0.83285356",
"0.8283418",
"0.8265906",
"0.8251251",
"0.8240289",
"... | 0.89268243 | 3 |
Returns the multiplicative inverse of a number n within the given modulus. | def YIpZ(exwG: int, VlDb: int) -> int:
hQHm, jlSq = (he6J(VlDb, 1, 0), he6J(exwG, 0, 1))
while jlSq.x != 0:
hQHm, jlSq = (jlSq, hQHm - hQHm.x // jlSq.x * jlSq)
if hQHm.x == 1:
return hQHm.z % VlDb
else:
raise ValueError(f'No inverse found for {exwG} mod {VlDb}. :(') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c7zZ(jzdc, exwG):\n Oa1e, WKvO, bGrB = N5DO(jzdc, exwG)\n if Oa1e == 1:\n return WKvO % exwG",
"def GCaQ(mLGw, jDtP):\n bGrB, WKvO, bGrB = HT_1(mLGw, jDtP)\n return WKvO % jDtP",
"def GCaQ(tTpl: int, exwG: int) -> int:\n Oa1e, WKvO, LVAh = N5DO(tTpl, exwG)\n if Oa1e != 1:\n ... | [
"0.8303626",
"0.82168585",
"0.8211301",
"0.8149423",
"0.8136434",
"0.81043255",
"0.807766",
"0.8057515",
"0.8044691",
"0.8018113",
"0.8018113",
"0.79840106",
"0.7975658",
"0.787752",
"0.78687453",
"0.78491056",
"0.77860653",
"0.7767572",
"0.7743688",
"0.77415293",
"0.77415293... | 0.81460047 | 4 |
Returns cos(x) for a real number x in radians | def YhSR(WKvO: float, rhd_: int=20) -> float:
WKvO %= 2 * mM0K
return sum(((-1) ** YRbF * WKvO ** (2 * YRbF) / bKCn(2 * YRbF) for YRbF in range(0, rhd_))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YhSR(YKHO, WKvO):\n return YKHO.math.real(1)",
"def avIK(WKvO):\n return epAf.cos(WKvO)",
"def YhSR(WKvO: float) -> float:\n return epAf.cos(WKvO)",
"def w_V3(WKvO):\n return YhSR(WKvO)",
"def dzI3(WKvO):\n im04 = LQVL.get(WKvO % 360.0)\n if im04 is None:\n im04 = epAf.cos(epAf... | [
"0.8780735",
"0.8778525",
"0.86455595",
"0.85766035",
"0.8478461",
"0.8452141",
"0.8359772",
"0.82889974",
"0.8250515",
"0.8206899",
"0.7979878",
"0.79519427",
"0.79441863",
"0.7910273",
"0.78984827",
"0.7879024",
"0.7869009",
"0.7797219",
"0.7689404",
"0.7666732",
"0.7625425... | 0.77012926 | 18 |
Returns csc(x) for a real number x in radians | def siwH(WKvO: float) -> float:
return FfMS() if YUNn(WKvO) == 0 else 1 / YUNn(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def siwH(WKvO):\n return 1 / epAf.sin(WKvO)",
"def siwH(WKvO):\n return 1 / YUNn(WKvO)",
"def siwH(WKvO):\n if WKvO.val == 0 or WKvO.val % oyIN.pi == 0:\n raise ValueError('Cosecant undefined at 0 and multiples of pi')\n eYrV = RELP(1 / oyIN.sin(WKvO.val), derivative=-1 / oyIN.tan(WKvO.val) ... | [
"0.81898695",
"0.8160598",
"0.7370637",
"0.70913184",
"0.69530433",
"0.68039507",
"0.6798161",
"0.6760123",
"0.67470574",
"0.6736995",
"0.6727935",
"0.6720943",
"0.6708225",
"0.662688",
"0.66108745",
"0.6597878",
"0.65365773",
"0.65255207",
"0.6520315",
"0.64980173",
"0.64910... | 0.76969355 | 2 |
Returns cot(x) for a real number x in radians | def F6cS(WKvO: float) -> float:
return FfMS() if YUNn(WKvO) == 0 else YhSR(WKvO) / YUNn(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F6cS(WKvO):\n return 1 / epAf.tan(WKvO)",
"def F6cS(WKvO):\n return 1 / Uyfy(WKvO)",
"def F6cS(YylR):\n return 1.0 / oyIN.tan(YylR)",
"def Y_1E(WKvO):\n return WKvO * xTkX.static(mM0K / 180.0)",
"def F6cS(WKvO):\n if WKvO.val == 0 or WKvO.val % oyIN.pi == 0:\n raise ValueError('Co... | [
"0.8258965",
"0.805644",
"0.7295331",
"0.7274469",
"0.69955",
"0.69071114",
"0.6836188",
"0.6823764",
"0.6809791",
"0.6778054",
"0.6776605",
"0.67542255",
"0.6732685",
"0.6665536",
"0.6587328",
"0.65506613",
"0.65045893",
"0.64933485",
"0.6418711",
"0.6405462",
"0.6375545",
... | 0.7915689 | 2 |
Returns coth(x) for a real number x | def ct7G(WKvO: float) -> float:
return FfMS() if GUom(WKvO) == 0 else o_fx(WKvO) / GUom(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ct7G(WKvO):\n return 1 / madw(WKvO)",
"def ct7G(WKvO):\n return 1 / epAf.tanh(WKvO)",
"def NQVc(WKvO):\n return XUBx(1 / WKvO)",
"def NQVc(WKvO):\n return XUBx(1 / WKvO)",
"def kuAc(WKvO):\n return o_fx(WKvO)",
"def YhSR(YKHO, WKvO):\n return YKHO.math.real(1)",
"def F6cS(WKvO):\n... | [
"0.7979513",
"0.7957998",
"0.7132541",
"0.70916677",
"0.6969657",
"0.6925279",
"0.6882352",
"0.6859697",
"0.68324673",
"0.68238854",
"0.68071353",
"0.680447",
"0.6799053",
"0.6791988",
"0.6733463",
"0.6620743",
"0.65803176",
"0.65734214",
"0.65374225",
"0.65291834",
"0.651797... | 0.7758386 | 2 |
Returns True if self<polynom else False | def JWbp(YKHO, Elif: 'polynom') -> bool:
return YKHO.degree < Elif.degree | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif: 'polynom') -> bool:\n return YKHO.degree >= Elif.degree",
"def TPjt(YKHO, Elif: 'polynom') -> bool:\n return YKHO.degree <= Elif.degree",
"def Zcf_(YKHO, Elif: 'polynom') -> bool:\n return YKHO.degree > Elif.degree",
"def JWbp(YKHO, Elif) -> bool:\n if YKHO >= Elif:\n ... | [
"0.7463791",
"0.74152327",
"0.737071",
"0.7367249",
"0.70977384",
"0.7096647",
"0.7063421",
"0.7054989",
"0.7038506",
"0.70050514",
"0.7003251",
"0.6993195",
"0.69919324",
"0.69800377",
"0.69710267",
"0.6968169",
"0.695189",
"0.6949157",
"0.6947768",
"0.6947768",
"0.6947768",... | 0.80287236 | 0 |
Returns True if self<=polynom else False | def TPjt(YKHO, Elif: 'polynom') -> bool:
return YKHO.degree <= Elif.degree | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif: 'polynom') -> bool:\n return YKHO.degree >= Elif.degree",
"def Zcf_(YKHO, Elif: 'polynom') -> bool:\n return YKHO.degree > Elif.degree",
"def jmxi(YKHO, _g9D):\n if YKHO.n_edges > _g9D.n_edges:\n return True\n else:\n return False",
"def QMS2(YKHO):\n if YKHO... | [
"0.7705719",
"0.7561957",
"0.7060182",
"0.6949218",
"0.6903244",
"0.6764464",
"0.6760381",
"0.67116636",
"0.6678283",
"0.6635672",
"0.65862495",
"0.6582748",
"0.65560436",
"0.65474963",
"0.65283227",
"0.6487198",
"0.64571977",
"0.64571977",
"0.645333",
"0.6434244",
"0.6426512... | 0.74507594 | 2 |
Returns True if self!=polynom else False | def Vdqg(YKHO, Elif: 'polynom') -> bool:
return YKHO.degree != Elif.degree | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, _tIi):\n if not isinstance(_tIi, hYgM):\n return True\n if YKHO.parent() != _tIi.parent():\n return True\n exwG = len(YKHO._polys)\n for YRbF in range(0, exwG):\n for r845 in range(YRbF + 1, exwG):\n if YKHO._polys[YRbF] * _tIi._polys[r845] != YKHO._polys[... | [
"0.7437871",
"0.7078241",
"0.69364506",
"0.6932171",
"0.6897995",
"0.68582577",
"0.68478984",
"0.6838574",
"0.6832329",
"0.6826959",
"0.6816183",
"0.68063813",
"0.68063813",
"0.67996895",
"0.6799373",
"0.6799373",
"0.67673236",
"0.6764434",
"0.6733018",
"0.6728081",
"0.671909... | 0.7811612 | 0 |
Returns a matrix with the given vectors as the columns of the matrix | def t7d7(Emd4, *M8d_) -> 'matrix':
WJ3K = M8d_[0]
for he6J in M8d_[1:]:
WJ3K |= he6J
return WJ3K | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mpDx(*qIxc):\n return SppC([[tTpl] for tTpl in qIxc])",
"def J6MJ(*qIxc):\n exwG = len(qIxc)\n if exwG == 0:\n return oyIN.zeros(0)\n else:\n if not isinstance(qIxc[0], oyIN.ndarray):\n raise ValueError('vectors_to_matrix needs numpy arrays as inputs.')\n H2v2 = qI... | [
"0.78024286",
"0.7395873",
"0.7215858",
"0.686893",
"0.6840978",
"0.67706305",
"0.6748396",
"0.67333835",
"0.67297816",
"0.6620845",
"0.661638",
"0.65508085",
"0.6499948",
"0.64475834",
"0.64360195",
"0.64291203",
"0.64140826",
"0.6378319",
"0.63530433",
"0.6349344",
"0.62810... | 0.6980654 | 3 |
Returns the identity matrix of size n | def pdhd(Emd4, exwG: int) -> 'matrix':
qw7D = ()
for YRbF, r845 in [(YRbF, r845) for YRbF in range(exwG) for r845 in range(exwG)]:
qw7D += (0,) if YRbF != r845 else (1,)
return Emd4(exwG, exwG, *qw7D) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vVt1(exwG):\n SppC = OqWE(exwG, exwG)\n for YRbF in range(exwG):\n SppC[YRbF][YRbF] = 1\n return SppC",
"def UOV2(exwG: int) -> aLMY:\n return OqWE(exwG, exwG, lambda YRbF, r845: 1 if YRbF == r845 else 0)",
"def UOV2(exwG):\n pdhd = fmpe(exwG, exwG)\n for YRbF in range(exwG):\n ... | [
"0.88044566",
"0.8792818",
"0.87869686",
"0.87548965",
"0.84398806",
"0.8299941",
"0.8284417",
"0.8025165",
"0.7916945",
"0.7916945",
"0.7916945",
"0.7916945",
"0.7916945",
"0.78910244",
"0.7784836",
"0.77292067",
"0.7521704",
"0.7521704",
"0.7498168",
"0.7359281",
"0.7319566... | 0.7959573 | 8 |
Returns an elementary matrix E with E[row][column] set to value. | def gqnB(Emd4, exwG: int, rdlD: int, iVRZ: int, BWXx: float):
ut5U = SppC.I(exwG)
ut5U[rdlD][iVRZ] = BWXx
return ut5U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DNaa(YKHO):\n return oyIN.matrix([[1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0]])",
"def ut5U(r8hN, YRbF, r845):\n ycBG = oyIN.zeros((r8hN, r8hN))\n ycBG[YRbF, r845] = 1.0\n return ycBG",
"def he6J(tTpl):\n ywwl = tTpl.getShape().dim(0)\n o4sw = aLMY.sparse(ywwl * (ywwl + 1) / 2, yww... | [
"0.69515866",
"0.61477375",
"0.6050498",
"0.60372674",
"0.60102266",
"0.60049856",
"0.5993246",
"0.59832233",
"0.59824085",
"0.5945932",
"0.5921938",
"0.591554",
"0.59154665",
"0.58915424",
"0.58915424",
"0.5864812",
"0.585823",
"0.5852253",
"0.5852253",
"0.5840368",
"0.58080... | 0.7336092 | 0 |
The transpose of the matrix. Same as matrix.trans() | def Kt_s(YKHO) -> 'matrix':
return YKHO.trans() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7uB(vb7U):\n return vb7U.T",
"def XyYT(YKHO):\n return YKHO.matrix.transpose()",
"def l7uB(YKHO):\n YKHO.matrix = v65A(YKHO.matrix)",
"def l7uB(YKHO):\n return type(YKHO)(YKHO.mat.transpose())",
"def l7uB(YKHO):\n RI88 = aLMY(YKHO._col_no, YKHO._row_no)\n RI88._matrix = oyIN.transpos... | [
"0.8599562",
"0.8490016",
"0.8487749",
"0.8399794",
"0.8260275",
"0.82124233",
"0.8210169",
"0.8177535",
"0.81645375",
"0.8159738",
"0.8143376",
"0.8101409",
"0.8087183",
"0.808592",
"0.8029602",
"0.8008824",
"0.7987193",
"0.79787654",
"0.797687",
"0.79738903",
"0.7952569",
... | 0.7904785 | 21 |
Returns self != other | def Vdqg(YKHO, Elif: 'matrix') -> bool:
return YKHO.matrix != Elif.matrix | {
"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.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655",
"0.91318655"... | 0.0 | -1 |
Returns a copy of the matrix | def jth9(YKHO) -> 'matrix':
return SppC(YKHO.rows, YKHO.columns, *YKHO.array) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return aLMY(YKHO.matrix)",
"def y7KI(YKHO, SppC):\n return jth9.deepcopy(SppC)",
"def y7KI(YKHO, SppC):\n return jth9.deepcopy(SppC)",
"def upQD(YKHO) -> aLMY:\n Aofo = aLMY(YKHO.rows, YKHO.cols)\n Aofo.matrix = [YRbF[:] for YRbF in YKHO.matrix]\n return Aofo",
"def jth9... | [
"0.8739973",
"0.8649769",
"0.8649769",
"0.8615892",
"0.8576272",
"0.8559503",
"0.8516043",
"0.8307329",
"0.82354456",
"0.8173955",
"0.807036",
"0.80221295",
"0.796252",
"0.7813438",
"0.7787028",
"0.77647144",
"0.7719365",
"0.77022505",
"0.7610468",
"0.7538938",
"0.7538938",
... | 0.8561538 | 5 |
Returns the magnitude of the vec | def FOSW(YKHO) -> float:
return PZyS(sum((YRbF ** 2 for YRbF in YKHO.array))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(he6J):\n jzdc, Fg_i = he6J\n return epAf.sqrt(jzdc * jzdc + Fg_i * Fg_i)",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
"def YXbZ(iArr):\n return epAf.sqrt(sum([iArr[YRbF] ** 2 for YRbF in range(len(iArr))]))",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt... | [
"0.8499759",
"0.82236004",
"0.8166363",
"0.8095649",
"0.79781735",
"0.79588616",
"0.7946756",
"0.79416734",
"0.78637123",
"0.7819796",
"0.78122205",
"0.7706096",
"0.7691936",
"0.75863355",
"0.75776315",
"0.7554074",
"0.74350876",
"0.74245715",
"0.73361254",
"0.7299718",
"0.72... | 0.6835835 | 52 |
Returns the cross product of self and other only works in 3 dimensions | def WHx2(YKHO, Elif: 'vec') -> 'vec':
WKvO, LVAh, epBp, *bGrB = YKHO.array
jzdc, Fg_i, Z9rn, *bGrB = Elif.array
return he6J(LVAh * Z9rn - Fg_i * epBp, WKvO * Z9rn - jzdc * epBp, WKvO * Fg_i - jzdc * LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHx2(YKHO, Elif, tpio=-1):\n pass",
"def XHzM(YKHO, Elif):\n return YKHO.x * Elif.y - YKHO.y * Elif.x",
"def wnaF(YKHO, z1Rg):\n return YKHO.x * z1Rg.y - YKHO.y * z1Rg.x",
"def WHx2(YKHO, Elif):\n return YKHO.scalar(Elif) == 0",
"def gjuw(YKHO, Elif):\n return gjuw(YKHO, Elif)",
"def X... | [
"0.78991187",
"0.7561631",
"0.75037336",
"0.7436428",
"0.7421778",
"0.72700924",
"0.7076711",
"0.70644075",
"0.70268595",
"0.69222236",
"0.692175",
"0.6869364",
"0.680236",
"0.67994183",
"0.6798867",
"0.6766562",
"0.6737378",
"0.6719914",
"0.66925424",
"0.6674438",
"0.6670366... | 0.7245686 | 6 |
compute an n period moving average. type is 'simple' | 'exponential' | def sHgf(WKvO, exwG, NKcE='simple'):
WKvO = oyIN.asarray(WKvO)
if NKcE == 'simple':
_mSQ = oyIN.ones(exwG)
else:
_mSQ = oyIN.exp(oyIN.linspace(-1.0, 0.0, exwG))
_mSQ /= _mSQ.sum()
jzdc = oyIN.convolve(WKvO, _mSQ, mode='full')[:len(WKvO)]
jzdc[:exwG] = jzdc[exwG]
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZCKv(WKvO, exwG=10, type='simple'):\n WKvO = oyIN.asarray(WKvO)\n if type == 'simple':\n yzQ0 = oyIN.ones(exwG)\n yzQ0 /= yzQ0.sum()\n qqgr = oyIN.convolve(WKvO, yzQ0, mode='full')[:len(WKvO)]\n qqgr[:exwG] = qqgr[exwG]\n else:\n qqgr = oyIN.zeros_like(WKvO)\n ... | [
"0.8019272",
"0.77800137",
"0.7714825",
"0.7700169",
"0.7700169",
"0.7661071",
"0.7567638",
"0.75582856",
"0.7526199",
"0.7513749",
"0.74980986",
"0.74946696",
"0.74644697",
"0.74334395",
"0.7429339",
"0.7413313",
"0.73938847",
"0.7373942",
"0.73256207",
"0.7304397",
"0.73011... | 0.6421531 | 53 |
A test fixture which yields an empty log database. | def nJym(QePW) -> OAu8.Database:
yield from sH7z.YieldDatabase(OAu8.Database, QePW.param) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KaFN():\n pb1N.delete_many({})\n yield pb1N\n pb1N.delete_many({})",
"def FCbF(YKHO):\n NCls.create_all()\n NCls.session.commit()\n G9jH.disable(G9jH.CRITICAL)",
"def FCbF(YKHO):\n YKHO.db = HBs8()",
"def FCbF(YKHO):\n fM8y.clear_database()",
"def FCbF(YKHO):\n YKHO.database ... | [
"0.72448635",
"0.69360584",
"0.6916013",
"0.6816258",
"0.68111074",
"0.66648364",
"0.6530205",
"0.65196514",
"0.6498678",
"0.6498678",
"0.64831597",
"0.6479798",
"0.64446914",
"0.64399654",
"0.6414576",
"0.6414576",
"0.64096063",
"0.6404673",
"0.6404673",
"0.6402827",
"0.6391... | 0.6280457 | 29 |
A test fixture which enumerates node feature dimensionalities. | def AxYs(QePW) -> int:
return QePW.param | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KCZW():\n Cs6h = fdT2((4, 5))\n assert Cs6h.number_of_node_columns == 5",
"def ROaS(YKHO) -> int:\n return YKHO.specifications['X']['dimension']",
"def x1x5(YKHO):\n AKZu = ['D', 'I', 'G', 'S', 'L']\n for im04 in AKZu:\n YKHO.assertTrue(im04 in YKHO.Gs.nodes)\n YKHO.assertIsIns... | [
"0.60154665",
"0.60122174",
"0.596103",
"0.5941365",
"0.5837076",
"0.58297765",
"0.5806581",
"0.5770742",
"0.5680545",
"0.5680545",
"0.5680545",
"0.5651838",
"0.56474626",
"0.56374115",
"0.5610367",
"0.56036156",
"0.5577724",
"0.55761045",
"0.5564158",
"0.5564158",
"0.556133"... | 0.5461666 | 33 |
returns a list containing the first count powers of the base, begins with 0th power | def yqd3(P8oC, UHFx):
z5la = [P8oC ** exwG for exwG in range(0, UHFx)]
return z5la | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yqd3(P8oC, UHFx):\n return [P8oC ** WKvO for WKvO in range(UHFx)]",
"def V9Jy(WKvO):\n return (pow(WKvO, d6pt) for d6pt in UHFx())",
"def yqd3(exwG, UHFx):\n z5la = [exwG ** WKvO for WKvO in range(UHFx)]\n print(z5la)",
"def WsdF(naF9):\n A2Fp = len(str(len(str(9 ** naF9)) * 9 ** naF9)) * ... | [
"0.82700455",
"0.7432736",
"0.72939205",
"0.6794988",
"0.6757457",
"0.6705363",
"0.661859",
"0.65722775",
"0.65704024",
"0.65618914",
"0.656125",
"0.65302944",
"0.64631957",
"0.64627343",
"0.6461637",
"0.6459189",
"0.6433822",
"0.64228433",
"0.6391386",
"0.63907063",
"0.63548... | 0.84113526 | 0 |
Converts the given coordinates in longitue/latitude/height (LLA) into ECEF. If only longitude and latitude are provided, a height of zero is assumed | def twAF(CLNC):
jzdc = 6378137
Fg_i = 6356752.31424518
tTpl = epAf.sqrt((jzdc * jzdc - Fg_i * Fg_i) / (jzdc * jzdc))
QnmL = CLNC[0]
FDPT = CLNC[1]
if len(CLNC) == 3:
MKlR = CLNC[2]
else:
MKlR = 0
C0FQ = epAf.sin(epAf.radians(QnmL))
Juts = epAf.cos(epAf.radians(QnmL))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y6wR(YKHO, FDPT, QnmL):\n if gyro(QnmL) and QnmL.shape == FDPT.shape:\n QnmL = oyIN.array(QnmL, dtype=oyIN.float64)\n FDPT = oyIN.array(FDPT, dtype=oyIN.float64)\n ywwl = YKHO.EllN(QnmL)\n FDPT = oyIN.deg2rad(FDPT)\n QnmL = oyIN.deg2rad(QnmL)\n WKvO = ywwl * oyIN.cos(QnmL) * oyIN.c... | [
"0.776996",
"0.75090456",
"0.7175283",
"0.70710707",
"0.69996953",
"0.6957823",
"0.68992925",
"0.6848491",
"0.68388844",
"0.67957395",
"0.67623836",
"0.67073625",
"0.6689573",
"0.66886634",
"0.6687672",
"0.66484785",
"0.66391665",
"0.65673274",
"0.6561788",
"0.6467392",
"0.64... | 0.76584977 | 1 |
Convert coordinates given in ECEF back into LLA. | def ZajX(Nkuo):
jzdc = 6378137
Fg_i = 6356752.31424518
eHNT = 1.0 / 298.257223563
tTpl = epAf.sqrt((jzdc * jzdc - Fg_i * Fg_i) / (jzdc * jzdc))
EcVT = Nkuo[0]
fuBA = Nkuo[1]
Nk6w = Nkuo[2]
XP5J = epAf.sqrt(EcVT * EcVT + fuBA * fuBA)
FDPT = epAf.atan2(fuBA, EcVT)
_6oi = epAf.atan2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o7ZF(PrNh, fntl=KOKf, NkkI=False, TEPG=True):\n from numpy import sqrt, cos, sin, pi, arctan2 as vwZf\n jzdc = fntl['a']\n zlsc = fntl['invf']\n eHNT = 1.0 / zlsc\n Fg_i = jzdc * (1.0 - eHNT)\n tTpl = sqrt((jzdc ** 2.0 - Fg_i ** 2.0) / jzdc ** 2.0)\n cfQG = sqrt((jzdc ** 2.0 - Fg_i ** 2.0)... | [
"0.7713549",
"0.74346244",
"0.6907598",
"0.68921334",
"0.6747362",
"0.6746213",
"0.6695061",
"0.6596722",
"0.6587138",
"0.65579915",
"0.6497937",
"0.6495567",
"0.6456117",
"0.6449307",
"0.641313",
"0.6395938",
"0.63322365",
"0.6313681",
"0.6300652",
"0.6272615",
"0.62632877",... | 0.76542526 | 1 |
Returns the distance between two locations provided in LLA in meters. | def Sok3(jzdc, Fg_i):
A3Vt = 6378137
n_9K = epAf.radians(jzdc[0] - Fg_i[0])
H91H = epAf.radians(jzdc[1] - Fg_i[1])
igSk = epAf.radians(jzdc[0])
TGuP = epAf.radians(Fg_i[0])
vexM = pow(epAf.sin(n_9K / 2.0), 2.0) + pow(epAf.sin(H91H / 2.0), 2.0) * epAf.cos(igSk) * epAf.cos(TGuP)
Ty9i = 2.0 * e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AcQ8(igSk, PNCc, TGuP, v7YJ):\n return (igSk - TGuP) ** 2 + (PNCc - v7YJ) ** 2",
"def vjqF(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n ILyi = qqsd.alt - O3Ka.alt\n lbB4 = epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5\n pImw = epAf.sqrt(ILyi * ILyi + lbB4 * lbB... | [
"0.74439335",
"0.73289484",
"0.73231655",
"0.7306636",
"0.7305603",
"0.73042095",
"0.73042095",
"0.73042095",
"0.73042095",
"0.73042095",
"0.73042095",
"0.73042095",
"0.72807574",
"0.72795355",
"0.7277659",
"0.72337323",
"0.7229537",
"0.7213048",
"0.71318614",
"0.71200997",
"... | 0.7370764 | 1 |
Determines the normalization of a homogeneous vector in ECEF using primitive secant root finding. This is very sensible to a good choice of initial x0 and x1 and needs some improvements. | def LtxR(yzQ0):
nJ9F = 1
o4D3 = 0.5
def AOlJ(WKvO):
""" This function normalizes the vector with
weighted with the provided x, converts the
resulting vector in LLA and returns the altitude
(which we eventually want to get to zero) """
PKKQ = yzQ0 / (WKvO * yzQ0[3])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ih18(WKvO):\n return (1 - epAf.erf(WKvO / epAf.sqrt(2))) / 2",
"def OlOd(gz5X: 'float *', exwG: 'unsigned int') -> 'void':\n return QZnQ.vnl_c_vectorF_normalize(gz5X, exwG)",
"def hgY6(o4D3, ajwV):\n exwG = o4D3.shape[1]\n if ajwV.shape[1] != exwG:\n raise ValueError(\"Number of points d... | [
"0.6414545",
"0.64078045",
"0.6386094",
"0.63835686",
"0.63494825",
"0.6346023",
"0.6323752",
"0.63186425",
"0.62854487",
"0.6203707",
"0.62030315",
"0.6197433",
"0.6196615",
"0.61880857",
"0.6184802",
"0.6178885",
"0.61742306",
"0.6172419",
"0.61531216",
"0.6152914",
"0.6128... | 0.0 | -1 |
Describe the player's current location. | def xrA5(BH3N):
Rci7 = BH3N.player.location
lweR.display_location_name(Rci7.name)
lweR.display_game_text(Rci7.description)
if Rci7.items:
Uxcm = [ZfUD.full_name for ZfUD in Rci7.items]
pQgk = 'You see {}.'.format(zp3R(Uxcm))
lweR.display_game_text(pQgk)
if Rci7.people:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ETWe(YKHO):\n return YKHO.current_room.position",
"def oEZL(YKHO):\n print('You are in ', YKHO.__location)",
"def p4tO(YKHO):\n return YKHO._ir.query_metadata_table.get_location_info(YKHO._current_location)",
"def ekLW(YKHO):\n return YKHO._get_current_location()",
"def ekLW(YKHO):\n ret... | [
"0.7495766",
"0.7440551",
"0.7243133",
"0.72298974",
"0.71984607",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
"0.71907675",
... | 0.0 | -1 |
Parse, check validity and format user supplied filters. | def FzRU(YKHO, KUnM):
XGgU = []
hYfP = None
for eHNT in KUnM:
aHla = {Jyyj.name: getattr(eHNT, Jyyj.name) for Jyyj in eHNT.all_fields()}
try:
aHla['field'] = IbRz[aHla['field']]
aHla['operator'] = qQd5[aHla['operator']]
except KeyError:
raise wnQ_.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mnuh(b_xr):\n _uqo = [-1, -1, -1, -1]\n if b_xr:\n d6pt = b_xr.find(':')\n if d6pt > 0:\n H5ew = b_xr[0:d6pt].strip()\n wEf2 = b_xr[d6pt + 1:].strip()\n else:\n raise ValueError(\"Filter format is wrong. You gave: %s. However, expected is '%s'!\" % (b... | [
"0.71744627",
"0.69319934",
"0.6852465",
"0.6812786",
"0.6791779",
"0.6666551",
"0.6529332",
"0.6525456",
"0.6525456",
"0.6525456",
"0.6494356",
"0.64226025",
"0.63973844",
"0.63863087",
"0.6356062",
"0.6319925",
"0.62061906",
"0.6201337",
"0.6201219",
"0.61739403",
"0.614923... | 0.6533616 | 6 |
Get list of conferences that user has registered for. | def mwrz(YKHO, QePW):
Ppds = YKHO._getProfileFromUser()
RKJl = [rtVo.Key(urlsafe=r26L) for r26L in Ppds.conferenceKeysToAttend]
lYRi = rtVo.get_multi(RKJl)
aD_z = [rtVo.Key(SYRW, Fv2L.organizerUserId) for Fv2L in lYRi]
QhXp = rtVo.get_multi(aD_z)
ZWCE = {}
for z39Z in QhXp:
ZWCE[z39Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PwtT(YKHO, QePW):\n CBIr = wnQ_.get_current_user()\n if not CBIr:\n raise wnQ_.UnauthorizedException('Authorization required')\n w7sF = rtVo.Key(SYRW, FU0f(CBIr))\n lYRi = KeS0.query(ancestor=w7sF)\n Ppds = w7sF.get()\n y02X = getattr(Ppds, 'displayName')\n return OV2g(items=[YKHO._... | [
"0.6982644",
"0.6940485",
"0.69244146",
"0.69078153",
"0.68997294",
"0.68866146",
"0.68809193",
"0.68556124",
"0.6781979",
"0.6735449",
"0.6700312",
"0.6660671",
"0.66117704",
"0.6594788",
"0.65650606",
"0.63525003",
"0.6299716",
"0.62006724",
"0.6198272",
"0.61919177",
"0.61... | 0.6609977 | 13 |
Return sessions of conference. | def dbUy(YKHO, QePW):
Aing = DMju.query(ancestor=rtVo.Key(urlsafe=QePW.websafeConferenceKey))
return BKro(sessions=[YKHO._copySessionToForm(cuiw) for cuiw in Aing]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dbUy(YKHO, QePW):\n AdH0 = rtVo.Key(urlsafe=QePW.websafeConferenceKey)\n Aing = DMju.query(ancestor=AdH0).order(DMju.name)\n return BKro(items=[YKHO._copySessionToForm(cuiw) for cuiw in Aing])",
"def dbUy(YKHO, QePW):\n e56I = QePW.conferenceKey\n kkcT = rtVo.Key(urlsafe=e56I)\n DlRX = DMju... | [
"0.7799498",
"0.7711198",
"0.7564584",
"0.7476732",
"0.74582225",
"0.745073",
"0.7314446",
"0.7297837",
"0.72127986",
"0.71573234",
"0.7156348",
"0.7126991",
"0.71133226",
"0.70907634",
"0.7061852",
"0.7050705",
"0.70254165",
"0.7012471",
"0.69641864",
"0.69483894",
"0.694084... | 0.7672394 | 2 |
Return conference sessions with specified speaker. | def h6aP(YKHO, QePW):
Aing = DMju.query().filter(DMju.speaker == QePW.websafeSpeakerKey)
return BKro(sessions=[YKHO._copySessionToForm(cuiw) for cuiw in Aing]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h6aP(YKHO, QePW):\n vexM = nm2X.query(nm2X.speaker == QePW.speaker)\n return xOno(items=[YKHO._copyConferenceSessionToForm(gtI8) for gtI8 in vexM])",
"def h6aP(YKHO, QePW):\n dvBM = xyOc.query(xyOc.email == QePW.email).get()\n if dvBM:\n Aing = DMju.query(DMju.speakerId == dvBM.key.id())\n... | [
"0.78902966",
"0.7778913",
"0.7598041",
"0.6919283",
"0.6894677",
"0.6494002",
"0.64912075",
"0.64599675",
"0.6260303",
"0.6231889",
"0.6204759",
"0.61885226",
"0.5929725",
"0.5927347",
"0.5904404",
"0.58896774",
"0.5830913",
"0.57928157",
"0.57249856",
"0.56952435",
"0.56310... | 0.7497165 | 3 |
Add session to user's wishlist. | def gUDo(YKHO, QePW):
RI88 = False
cuiw = rtVo.Key(urlsafe=QePW.websafeSessionKey).get()
if not cuiw:
raise wnQ_.NotFoundException('No session found with key: %s' % QePW.websafeSessionKey)
z39Z = YKHO._getProfileFromUser()
if z39Z:
if QePW.websafeSessionKey not in z39Z.sessionKeysWis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gUDo(YKHO, QePW):\n CBIr = wnQ_.get_current_user()\n if not CBIr:\n raise wnQ_.UnauthorizedException('Authorization required')\n cuiw = rtVo.Key(urlsafe=QePW.sessionKey).get()\n if not cuiw:\n raise wnQ_.NotFoundException('No session found with key: %s' % QePW.sessionKey)\n z39Z = ... | [
"0.82060206",
"0.8115246",
"0.8027395",
"0.750477",
"0.6860964",
"0.6772665",
"0.6609936",
"0.65935093",
"0.65828747",
"0.65828407",
"0.6304753",
"0.6145731",
"0.6099128",
"0.6096025",
"0.6040831",
"0.5989301",
"0.5983613",
"0.5946679",
"0.5946323",
"0.593002",
"0.592555",
... | 0.811246 | 2 |
Return conference sessions referenced in the user's wishlist. | def V27L(YKHO, QePW):
z39Z = YKHO._getProfileFromUser()
dcCf = [rtVo.Key(urlsafe=s4bI) for s4bI in z39Z.sessionKeysWishlist]
Aing = rtVo.get_multi(dcCf)
return BKro(sessions=[YKHO._copySessionToForm(cuiw) for cuiw in Aing]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V27L(YKHO, QePW):\n CBIr = wnQ_.get_current_user()\n if not CBIr:\n raise wnQ_.UnauthorizedException('Authorization required')\n uJjO = FU0f(CBIr)\n dcCf = [lNm8.sessionKey for lNm8 in QwNI.query(QwNI.userId == uJjO)]\n g5an = [rtVo.Key(urlsafe=G1Hx).get() for G1Hx in dcCf]\n return xO... | [
"0.7894069",
"0.7835922",
"0.7582182",
"0.7232556",
"0.7110147",
"0.6747809",
"0.6589368",
"0.65686375",
"0.649942",
"0.6301809",
"0.62434644",
"0.618943",
"0.61845887",
"0.6121065",
"0.6101164",
"0.60238266",
"0.6019336",
"0.6018741",
"0.5994799",
"0.5994662",
"0.59759605",
... | 0.7422105 | 3 |
Removes session from the user's wishlist. | def P8zL(YKHO, QePW):
z39Z = YKHO._getProfileFromUser()
if QePW.websafeSessionKey in z39Z.sessionKeysWishlist:
z39Z.sessionKeysWishlist.remove(QePW.websafeSessionKey)
z39Z.put()
cuiw = rtVo.Key(urlsafe=QePW.websafeSessionKey).get()
if not cuiw:
raise wnQ_.NotFoundException('No se... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bGqw(YKHO, QePW):\n return YKHO._sessionWishlist(QePW, add=False)",
"def P8zL(YKHO, QePW):\n a3k1 = False\n CBIr = wnQ_.get_current_user()\n if not CBIr:\n raise wnQ_.UnauthorizedException('Authorization required')\n z39Z = YKHO._getProfileFromUser()\n cb_Q = rtVo.Key(urlsafe=QePW.se... | [
"0.7886078",
"0.74202186",
"0.7277925",
"0.6921653",
"0.6815315",
"0.67151856",
"0.666777",
"0.6606701",
"0.65576",
"0.6481043",
"0.6350295",
"0.6308091",
"0.6291427",
"0.62908864",
"0.6278279",
"0.6257748",
"0.6253206",
"0.6236901",
"0.6202255",
"0.62012184",
"0.6196314",
... | 0.76592296 | 1 |
Create a CNN model and save it to self.model | def LQs7(YKHO):
C3ST = ileL()
C3ST.add(yHwh(32, (3, 3), activation='relu', input_shape=(28, 28, 1)))
C3ST.add(yHwh(32, (3, 3), activation='relu'))
C3ST.add(BzBX(pool_size=(2, 2)))
C3ST.add(lARV(0.4))
C3ST.add(yHwh(25, (3, 3), activation='relu'))
C3ST.add(yHwh(25, (3, 3), activation='relu'))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GAQ3(YKHO):\n YKHO.model = ileL()\n YKHO.model.add(bdPE.layers.Conv2D(filters=32, kernel_size=5, strides=(1, 1), padding='same', input_shape=(32, 32, 3), data_format='channels_last', dilation_rate=(1, 1), activation=ZylS.nn.relu))\n YKHO.model.add(bdPE.layers.MaxPooling2D(pool_size=(3, 3), strides=(2,... | [
"0.73911697",
"0.7373156",
"0.73700875",
"0.7350559",
"0.7315648",
"0.72564274",
"0.7240372",
"0.7220617",
"0.7198126",
"0.719212",
"0.7190306",
"0.7163806",
"0.71486664",
"0.71486664",
"0.712944",
"0.7114962",
"0.71102256",
"0.71001047",
"0.7089368",
"0.70856637",
"0.7076384... | 0.73846596 | 1 |
Check if skyscraper board is not finished, i.e., '?' present on the game board. Return True if finished, False otherwise. >>> check_not_finished_board(['21', '4?????', '4?????',\ '?????5', '?????', '?????', '21']) False >>> check_not_finished_board(['21', '412453', '423145',\ '543215', '35214', '41532', '21']) True >>>... | def EHAv(iBIi: list):
for YRbF in range(len(iBIi)):
if '?' in iBIi[YRbF]:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EHAv(iBIi: list) -> bool:\n return not '?' in ''.join(iBIi)",
"def EHAv(iBIi: list) -> bool:\n Dqam = iBIi[1:-1]\n for rdlD in Dqam:\n if '?' in rdlD:\n return False\n return True",
"def EHAv(iBIi: list):\n for rdlD in iBIi:\n if '?' in rdlD:\n return Fals... | [
"0.8754122",
"0.8653494",
"0.85736376",
"0.76861715",
"0.6927545",
"0.68410844",
"0.6819553",
"0.6672601",
"0.6671615",
"0.66679746",
"0.66610783",
"0.6562578",
"0.65328366",
"0.650454",
"0.64857584",
"0.6461794",
"0.6440691",
"0.64173764",
"0.64132947",
"0.64047325",
"0.6400... | 0.860177 | 2 |
Return the JSON string representation of list_dictionaries | def IZ3T(F986):
if F986 is None or len(F986) == 0:
return '[]'
else:
return qQXR.dumps(F986) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IZ3T(F986):\n if F986 is None:\n F986 = []\n return qQXR.dumps(F986)",
"def IZ3T(F986):\n import json\n if not F986:\n return '[]'\n return json.dumps(F986)",
"def IZ3T(F986):\n if not F986:\n return '[]'\n return qQXR.dumps(F986)",
"def IZ3T(F986):\n if F986 ... | [
"0.8504763",
"0.850164",
"0.8474179",
"0.84702396",
"0.84702396",
"0.84178954",
"0.83375466",
"0.83375466",
"0.83307844",
"0.83285654",
"0.83234507",
"0.83188844",
"0.82972103",
"0.82897174",
"0.82869583",
"0.828048",
"0.8261945",
"0.8261945",
"0.8261945",
"0.8261945",
"0.825... | 0.8172819 | 41 |
Returns an instance with all attributes already set | def eLpg(Emd4, **cmPJ):
if Emd4.__name__ == 'Rectangle':
Vo9x = Emd4(1, 2)
elif Emd4.__name__ == 'Square':
Vo9x = Emd4(3)
Vo9x.update(**cmPJ)
return Vo9x | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO.__class__(YKHO.attributes)",
"def FIMM(YKHO, KAOR, azoT=None):\n YKHO.instance = KAOR\n YKHO.attributes = {}\n if azoT is not None:\n YKHO.attributes.update(azoT)",
"def FIMM(YKHO, **o8Kj):\n YKHO.attributes = {} if YKHO.attributes is None else YKHO.attribute... | [
"0.67917347",
"0.65990525",
"0.65663105",
"0.6563644",
"0.6515761",
"0.64073366",
"0.6380365",
"0.6354864",
"0.6330197",
"0.6280283",
"0.6280283",
"0.62753105",
"0.62676495",
"0.6245766",
"0.6242424",
"0.6207888",
"0.61979175",
"0.6172069",
"0.6127561",
"0.610629",
"0.6103384... | 0.0 | -1 |
Returns a list of instances | def J2u4(Emd4):
y5NJ = []
Ux0P = Emd4.__name__ + '.json'
if Hy7s.path.exists(Ux0P) is False:
return y5NJ
with open(Ux0P, mode='r', encoding='utf-8') as Czgb:
p9NO = Emd4.from_json_string(Czgb.read())
for YRbF in p9NO:
y5NJ.append(Emd4.create(**YRbF))
return y5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbzt(YKHO) -> x1iM[ec6H]:\n pass",
"def y5NJ(YKHO):\n return []",
"def y5NJ(YKHO):\n raise NotImplementedError()",
"def lbzt(YKHO):\n return YKHO.instances",
"def bUWH(YKHO) -> x1iM[Kt_s]:\n return YKHO._instances",
"def list(YKHO, **YSA3):\n return YKHO.get_instances(YSA3)",
"def... | [
"0.90422606",
"0.87674624",
"0.87344486",
"0.8413226",
"0.8401591",
"0.8346991",
"0.8340717",
"0.8201198",
"0.8156116",
"0.8144369",
"0.80579096",
"0.80564964",
"0.79390585",
"0.79177594",
"0.7874745",
"0.7867798",
"0.7861611",
"0.78435546",
"0.7832467",
"0.7823814",
"0.78215... | 0.0 | -1 |
Gets the url of this CallbackObject. | def bD7m(YKHO):
return YKHO._url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RJDY(YKHO):\n return YKHO._callback_url",
"def RJDY(YKHO):\n return YKHO._callback_url",
"def bD7m(YKHO):\n return YKHO._cb.url",
"def hKhs(YKHO):\n return YKHO.__url",
"def negx(YKHO):\n return YKHO._url",
"def hKhs(YKHO):\n return YKHO._get_url_()",
"def hKhs(YKHO):\n return ... | [
"0.8276576",
"0.8276576",
"0.82345706",
"0.7992966",
"0.7977147",
"0.7944692",
"0.7942169",
"0.79152024",
"0.79152024",
"0.78614503",
"0.7860262",
"0.78554696",
"0.7808448",
"0.775379",
"0.77191824",
"0.7670869",
"0.7638475",
"0.7638475",
"0.7638475",
"0.7638475",
"0.7638475"... | 0.7617604 | 23 |
Gets the verb of this CallbackObject. | def b7IC(YKHO):
return YKHO._verb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7IC(YKHO) -> str:\n return YKHO.value['verb']",
"def WM0d(YKHO, NZQz, b7IC):\n return getattr(NZQz, YKHO.methodNames[b7IC])",
"def zwkJ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'http_verb')",
"def U7xR(YKHO):\n EdbX(YKHO.SentenceToken, 'stop')\n if T7C_(YKHO.SentenceToken) ... | [
"0.8007055",
"0.7068475",
"0.68686414",
"0.6571912",
"0.6555265",
"0.6239019",
"0.6239019",
"0.6239019",
"0.58519715",
"0.5822465",
"0.5814343",
"0.5747334",
"0.5747334",
"0.5747334",
"0.5743656",
"0.5712561",
"0.5712561",
"0.5712561",
"0.5712561",
"0.5712561",
"0.5712561",
... | 0.8299012 | 0 |
Gets the password of this CallbackObject. Optional password needed to logon to the webhook URL | def jTXt(YKHO):
return YKHO._password | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QVq7(YKHO):\n return YKHO.password",
"def AuKh(YKHO):\n return YKHO.decoded_password",
"def QVq7(YKHO):\n return YKHO._password",
"def QVq7(YKHO):\n return YKHO._password",
"def QVq7(YKHO):\n return YKHO._password",
"def AFDB(YKHO):\n return YKHO.get('password')",
"def jTXt(YKHO):... | [
"0.78030425",
"0.778265",
"0.7765494",
"0.7765494",
"0.7765494",
"0.77474564",
"0.77060866",
"0.77060866",
"0.76875484",
"0.7663002",
"0.76197666",
"0.7569505",
"0.7543507",
"0.7525938",
"0.7522061",
"0.7500833",
"0.74518347",
"0.74223906",
"0.7402703",
"0.7382626",
"0.734546... | 0.7200443 | 27 |
Sets the password of this CallbackObject. Optional password needed to logon to the webhook URL | def jTXt(YKHO, jTXt):
YKHO._password = jTXt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt",
"def PnS7(YKHO, jTXt):\n YKHO.password = jTXt",
"def PnS7(YKHO, jTXt):\n YKHO.password = jTXt",
"def G3s8(YKHO, jTXt):\n D2Lq(jTXt)",
"def G3s8(YKHO, jTXt):\n D2Lq(jTXt)",
"def m_qJ(YKHO, jTXt):\n YKHO._password = vT87(jTXt)",
"def G3s8(... | [
"0.76782787",
"0.7459995",
"0.74463546",
"0.7445653",
"0.7424633",
"0.73999566",
"0.7395959",
"0.73927796",
"0.737745",
"0.7349614",
"0.7349614",
"0.73476213",
"0.7328045",
"0.7328045",
"0.7323819",
"0.73048383",
"0.73048383",
"0.73039514",
"0.73039514",
"0.7287326",
"0.72827... | 0.74155396 | 6 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.8640854",
"0.85093737",
"0.785447",
"0.7744496",
"0.77114135",
"0.7696879",
"0.76601094",
"0.7639409",
"0.7623007",
"0.7608497",
"0.7608497",
"0.7608497",
"0.76073915",
"0.7600974",
"0.75863326",
"0.75839657",
"0.7572215",
"0.7569474",
"0.75403374",
"0.75403374",
"0.752854... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Returns ``True`` if the request user does not have edit permissions. | def eozC(QePW, ZrNc=None):
Aofo = True
if QePW is not None:
if ZrNc is None:
ZrNc = tCWI(QePW).account
Aofo = not bool(i934(QePW, [ZrNc]))
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HnoJ(YKHO):\n return YKHO.protected_properties.requestingUserCanEdit",
"def FAbd(YKHO, CBIr):\n return YKHO.editor_set.filter(id=CBIr.id).exists() or CBIr.is_superuser",
"def hO62(YKHO, CBIr):\n if getattr(CBIr, 'is_admin', False):\n return True\n elif YKHO.is_managed:\n return Fa... | [
"0.82530093",
"0.7975585",
"0.79729825",
"0.79141504",
"0.79141504",
"0.79141504",
"0.79141504",
"0.77626836",
"0.77484626",
"0.76905614",
"0.7658687",
"0.76189",
"0.760428",
"0.760217",
"0.7566468",
"0.75390667",
"0.75384825",
"0.73496944",
"0.73133457",
"0.72732097",
"0.725... | 0.70949394 | 35 |
Test retrieving a list of funds | def MTN5(YKHO):
for nPrm in Zwka:
Aofo = MQNk.get_list(filters=nPrm.items(), pattern=nPrm['pattern'])
YKHO.assertIsInstance(Aofo, type([]))
for FhjU, hkxX in DMWo(Aofo, nPrm['expected']):
YKHO.assertIsInstance(FhjU, MQNk)
YKHO.assertEqual(FhjU.code, hkxX[0])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YtmD(YKHO):\n with YKHO.client:\n iQ7K(YKHO, YKHO.username, YKHO.password)\n YKHO._insert_data()\n geh0 = njfv(YKHO, YKHO.username, YKHO.password)\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertEqual(nPrm.get('status'), 'success')\n YKHO.assert200(geh0)\n ... | [
"0.7135053",
"0.69779456",
"0.6863434",
"0.66698444",
"0.6634733",
"0.65550894",
"0.65537965",
"0.6547804",
"0.654254",
"0.65295243",
"0.6507018",
"0.64407057",
"0.642804",
"0.6400696",
"0.6391154",
"0.6384585",
"0.6373658",
"0.63414925",
"0.633778",
"0.6329595",
"0.6327033",... | 0.72537464 | 0 |
Converts the datetimes of the points of interest into datetime64 | def fz5B(list):
GYyL = []
for ZfUD in list:
jvSB = JRYC.datetime(int(ZfUD[:4]), int(ZfUD[5:7]), int(ZfUD[8:10]), int(ZfUD[11:13]), int(ZfUD[14:16]), int(ZfUD[17:19]))
GYyL.append(jvSB)
return GYyL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qdUQ(pY5O):\n return rLdf.Timestamp(pY5O).to_pydatetime()",
"def gLw2(JRYC):\n return oyIN.array(JRYC).astype('datetime64[ns]')",
"def BQ7J(GYyL):\n sTSl = oyIN.zeros(len(GYyL))\n for YRbF in range(len(GYyL)):\n sTSl[YRbF] = GYyL[YRbF].timestamp()\n return sTSl",
"def eqtj(IInG: np.... | [
"0.68682057",
"0.6509703",
"0.6442551",
"0.63602966",
"0.6241639",
"0.62288254",
"0.6226439",
"0.6218233",
"0.6201118",
"0.61896837",
"0.60629904",
"0.605619",
"0.6038335",
"0.6017068",
"0.6017068",
"0.59970003",
"0.59716684",
"0.58970743",
"0.5887146",
"0.5860127",
"0.584299... | 0.53187734 | 81 |
Test case for get_polls List and search polls | def PSwk(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ar6h(YKHO):\n geh0 = YKHO.client.get(gxEw('polls:list'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertEqual(len(geh0.json()), 1)",
"def OZUN(YKHO):\n pass",
"def nmA0(YKHO):\n pass",
"def Akd1(YKHO):\n pass",
"def Hde1(YKHO):\n F6zM = None\n Mkmy = YKHO.client.list_pol... | [
"0.7216783",
"0.6788858",
"0.6694407",
"0.651608",
"0.64342725",
"0.6393366",
"0.63420904",
"0.6222217",
"0.60433817",
"0.60157454",
"0.59646714",
"0.5958147",
"0.5949726",
"0.5933737",
"0.5899595",
"0.5898119",
"0.58796835",
"0.5868551",
"0.58640975",
"0.58297646",
"0.581977... | 0.8276633 | 0 |
Check if a valid direction has been provided. | def MabE(XSoh):
return 0 <= XSoh <= 5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jtw6(XSoh):\n if XSoh not in RCrZ:\n return XSoh + ' is not a valid direction.'\n return None",
"def uQO9(YKHO, F43P):\n taR9 = {'south': 1, 'east': 2, 'west': 3, 'north': 4}\n if F43P.lower() not in taR9.keys():\n G9jH.fatal('The requested direction of {} could NOT be validated!'.f... | [
"0.8044661",
"0.78319776",
"0.7580341",
"0.7206393",
"0.70888585",
"0.7042619",
"0.6886024",
"0.68601227",
"0.6842366",
"0.6796852",
"0.67690027",
"0.6760469",
"0.67546207",
"0.6666812",
"0.6626094",
"0.6378459",
"0.6342441",
"0.63299286",
"0.6312013",
"0.62272173",
"0.622566... | 0.80657953 | 0 |
Test that calling the command with both "dry" and "apply" raises an exception. | def z9Yg(YKHO):
with YKHO.assertRaises(i15K):
rOAL('backfill_orgs_and_org_courses', '--dry', '--apply') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ybD6():\n jGRS, hlel, Aofo = XSXX.main(KJt0('-d'))\n assert len(Aofo.tests_failed) == 0, \"Dry run didn't succeed all tests.\"",
"def lBo4():\n qIxc = dCXb(['-n'])\n assert qIxc.dryrun == True",
"def GmZG(YKHO):\n YKHO.assertRaises(i15K, YKHO.call_command, 'Foo', '1.0', 'file.json')",
"def... | [
"0.67837405",
"0.6677022",
"0.65867317",
"0.6520421",
"0.6486138",
"0.63778204",
"0.6325622",
"0.6317434",
"0.6314402",
"0.63021314",
"0.6300221",
"0.6273758",
"0.6214903",
"0.6197298",
"0.6168012",
"0.6156557",
"0.6091446",
"0.60909593",
"0.6085228",
"0.6080445",
"0.60728",
... | 0.7142037 | 0 |
Get the config directory for data files. These are nontransient, nonconfiguration files. Returns CHCONSOLE_DATA_DIR if defined, else a platformappropriate path. | def SQt5():
sEAN = Hy7s.environ
if sEAN.get('CHCONSOLE_DATA_DIR'):
return sEAN['CHCONSOLE_DATA_DIR']
kZiy = GwqS()
if HwRy.platform == 'darwin':
return Hy7s.path.join(kZiy, 'Library', 'Chconsole')
elif Hy7s.name == 'nt':
I79D = Hy7s.environ.get('APPDATA', None)
if I79... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XZbG(YKHO) -> str:\n return YKHO._data_dir if YKHO._data_dir is not None else Hy7s.getcwd()",
"def SSpI():\n lCFC = _B17('datadir')\n lCFC = Hy7s.path.expanduser(lCFC)\n return lCFC",
"def xe5l() -> str:\n if yt7q is '':\n raise EnvironmentError(\"Data directory has not been specified... | [
"0.7876586",
"0.7827254",
"0.7748643",
"0.76393586",
"0.7608242",
"0.75867915",
"0.753659",
"0.75292563",
"0.7485132",
"0.7463843",
"0.7462749",
"0.743663",
"0.73891366",
"0.729425",
"0.72751665",
"0.7274128",
"0.7233412",
"0.7210562",
"0.7194431",
"0.7193809",
"0.71878326",
... | 0.8304442 | 0 |
Get sentiment for the input text. The values returned are continuous numbers between 0 & 1. | def iP86(Mau6):
El7S = Wswm.polarity_scores(Mau6)
YxO6 = {'neutral': El7S['neu'], 'negative': El7S['neg'], 'positive': El7S['pos']}
return YxO6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qTlV(l5Ny):\n Aofo = K9NE(l5Ny)\n _dZy = ''\n if Aofo[0]['label'] == '1 star':\n _dZy = 'very negative'\n elif Aofo[0]['label'] == '2 star':\n _dZy = 'negative'\n elif Aofo[0]['label'] == '3 stars':\n _dZy = 'neutral'\n elif Aofo[0]['label'] == '4 stars':\n _dZy = ... | [
"0.82194614",
"0.8072015",
"0.79576",
"0.7908292",
"0.78944135",
"0.78829765",
"0.78829765",
"0.78829765",
"0.78586197",
"0.77979076",
"0.77807915",
"0.7764737",
"0.77549016",
"0.7754809",
"0.77193683",
"0.76780516",
"0.7637373",
"0.76139593",
"0.7594656",
"0.756097",
"0.7498... | 0.0 | -1 |