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
The unique entity identifier of the workload in New Relic.
def Artt(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'guid')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')", "def pT91(YKHO):\n return YKHO._workload_uuid", "def g2g3(YKHO) -> str:\n return f'{jtkh}.{Sugg}_{YKHO.entity_base}'", "def g2g3(YKHO) -> str:\n return f'{jtkh}.{Sugg}_{YKHO.entity_base}'", "def g2g3(YKHO):\n g2g3 = '{}.{}_...
[ "0.80294794", "0.79551846", "0.75140756", "0.75140756", "0.74248266", "0.74040353", "0.7400118", "0.73813635", "0.71893686", "0.7175536", "0.7137838", "0.713392", "0.7113379", "0.7113379", "0.7113379", "0.70945364", "0.7014561", "0.6983718", "0.6980328", "0.6972826", "0.69463...
0.0
-1
The URL of the workload.
def gF7L(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'permalink')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bD7m(YKHO):\n return f'http://{YKHO.address}:{YKHO.port}/{YKHO.path.name}'", "def bD7m(YKHO) -> str:\n return qe4Y.get(YKHO, 'url')", "def bD7m(YKHO) -> str:\n return qe4Y.get(YKHO, 'url')", "def bD7m(YKHO) -> str:\n return qe4Y.get(YKHO, 'url')", "def bD7m(YKHO) -> str:\n return qe4Y.ge...
[ "0.7618649", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.74065983", "0.7402583", "0.7402583", "0.7402583", "0.7402583", "0.7402583", "0.7402583", "0.7402583", "0.7402583",...
0.0
-1
The unique entity identifier of the workload.
def Z4gB(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'workload_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pT91(YKHO):\n return YKHO._workload_uuid", "def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')", "def g2g3(YKHO):\n g2g3 = '{}.{}_{}_{}'.format(Sugg, BbWi, YKHO._deviceid, T8ip[YKHO._sensor]['eid'])\n return g2g3", "def g2g3(YKHO) -> str:\n return f'{jtkh}.{Sugg}_{YKHO.enti...
[ "0.8271657", "0.81190515", "0.7860294", "0.7723899", "0.7723899", "0.7715259", "0.7698596", "0.7597845", "0.75441515", "0.7437046", "0.7437046", "0.7437046", "0.74154985", "0.72549075", "0.72301334", "0.72083515", "0.7207665", "0.72074246", "0.70929164", "0.70929164", "0.7092...
0.7244204
14
The unique entity identifier of the workload in New Relic.
def Artt(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'guid')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')", "def pT91(YKHO):\n return YKHO._workload_uuid", "def g2g3(YKHO) -> str:\n return f'{jtkh}.{Sugg}_{YKHO.entity_base}'", "def g2g3(YKHO) -> str:\n return f'{jtkh}.{Sugg}_{YKHO.entity_base}'", "def g2g3(YKHO):\n g2g3 = '{}.{}_...
[ "0.8027158", "0.7957192", "0.7512782", "0.7512782", "0.7423269", "0.74034137", "0.740207", "0.7379332", "0.71878994", "0.71772534", "0.71358", "0.71311814", "0.7110701", "0.7110701", "0.7110701", "0.7091313", "0.7013219", "0.69836456", "0.69827205", "0.6970939", "0.6948255", ...
0.0
-1
The URL of the workload.
def gF7L(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'permalink')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bD7m(YKHO):\n return f'http://{YKHO.address}:{YKHO.port}/{YKHO.path.name}'", "def bD7m(YKHO) -> str:\n return qe4Y.get(YKHO, 'url')", "def bD7m(YKHO) -> str:\n return qe4Y.get(YKHO, 'url')", "def bD7m(YKHO) -> str:\n return qe4Y.get(YKHO, 'url')", "def bD7m(YKHO) -> str:\n return qe4Y.ge...
[ "0.7618649", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.743667", "0.74065983", "0.7402583", "0.7402583", "0.7402583", "0.7402583", "0.7402583", "0.7402583", "0.7402583", "0.7402583",...
0.0
-1
The unique entity identifier of the workload.
def Z4gB(YKHO) -> qe4Y.Output[int]: return qe4Y.get(YKHO, 'workload_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pT91(YKHO):\n return YKHO._workload_uuid", "def znLP(YKHO) -> str:\n return qe4Y.get(YKHO, 'entity_unique_id')", "def g2g3(YKHO):\n g2g3 = '{}.{}_{}_{}'.format(Sugg, BbWi, YKHO._deviceid, T8ip[YKHO._sensor]['eid'])\n return g2g3", "def g2g3(YKHO) -> str:\n return f'{jtkh}.{Sugg}_{YKHO.enti...
[ "0.8271657", "0.81190515", "0.7860294", "0.7723899", "0.7723899", "0.7715259", "0.7597845", "0.75441515", "0.7437046", "0.7437046", "0.7437046", "0.74154985", "0.72549075", "0.7244204", "0.72301334", "0.72083515", "0.7207665", "0.72074246", "0.70929164", "0.70929164", "0.7092...
0.7698596
6
Generates a random base32 string of ``length'' characters. If /dev/random is available on the system, it will be used as a strong source of randomness. The base32 alphabet used is defined in ``alphabet'' above.
def nVy9(u54L): return ''.join(map(SmaS, DVHX.random_bytes(u54L)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]", "def d_St(u54L=32):\n import string\n import random\n rmc3 = string.ascii_letters + '0123456789'\n return ''.join((random.choice(rmc3) for YRbF in range(u54L)))", "def d_St(u54L=32):\n import string\n import random\n rmc3 = s...
[ "0.77555", "0.77021676", "0.77021676", "0.769985", "0.76250917", "0.75581235", "0.75385433", "0.7520809", "0.74997866", "0.74772984", "0.74741507", "0.745587", "0.74538004", "0.7448831", "0.74456936", "0.7439789", "0.74255884", "0.74125695", "0.74006164", "0.7391765", "0.7387...
0.7453748
13
Generates a secure random ID with the specified number of bytes of randomness. The ID generated will likely be longer than ``bytes'', because the numeric value is converted to base36. I.e. 12 bytes becomes 19 characters.
def pWrc(bytes): BWXx = 0 DkWr = 0 O36P = 0 while O36P < bytes: SUQk = DVHX.random() BWXx += SUQk << DkWr DkWr += 8 O36P += 1 return LIlJ(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wo6s(j9v1: int) -> bytes:\n TSw_(j9v1, int, 'num_bytes', 'SecureRandom')\n return Hy7s.urandom(j9v1)", "def nVy9(u54L):\n return ''.join(map(SmaS, DVHX.random_bytes(u54L)))", "def Kn3U(zNig=24):\n KoG3 = vIwR.ascii_lowercase + vIwR.digits\n return ''.join((tuKI.choice(KoG3) for YRbF in range...
[ "0.7727781", "0.7662465", "0.7391772", "0.7351925", "0.7349223", "0.73131424", "0.7189247", "0.71730596", "0.7145637", "0.7105456", "0.7102395", "0.709463", "0.70717484", "0.70632", "0.7051397", "0.702572", "0.70051205", "0.7001858", "0.69952947", "0.6992961", "0.6990269", ...
0.87120146
0
Load the pretrained ResNet152 and replace top fc layer.
def FIMM(YKHO, Agjb): super(KmzZ, YKHO).__init__() WWYJ = FYrf.resnet152(pretrained=True) KZ52 = list(WWYJ.children())[:-1] YKHO.resnet = U78l.Sequential(*KZ52) YKHO.linear = U78l.Linear(WWYJ.fc.in_features, Agjb) YKHO.bn = U78l.BatchNorm1d(Agjb, momentum=0.01) YKHO.init_weights()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(gXLj(FYrf.resnet152(pretrained=True)))\n return C3ST", "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], c2s7, **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.loa...
[ "0.7163722", "0.69575393", "0.68806756", "0.68597037", "0.68044746", "0.68044746", "0.6795824", "0.67820936", "0.67625403", "0.67577624", "0.6747817", "0.6747817", "0.6747817", "0.6747817", "0.6747817", "0.6747817", "0.6747817", "0.6747817", "0.6747817", "0.6747817", "0.67412...
0.0
-1
Generates Sequence of the Provided Length
def C6M2(YKHO, exwG): bo34 = Exmc.getLogger() bo34.log(f'Generating Data of length {exwG}', 1, YKHO.generate.__name__) WKvO = oyIN.zeros(exwG) for a1PO in range(exwG): RBFf = 1 for lk9W in YKHO.polynomialCoeffs: WKvO[a1PO] += lk9W * RBFf RBFf *= a1PO return WK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q6uT(YKHO, aAh7):\n pass", "def IK2L(YKHO, u54L, Wr3E):\n YKHO.sequence = [tuKI.randint(1, Wr3E) for exwG in range(u54L)]\n return YKHO.sequence", "def dCtK(u54L, rpxG):\n ewCu = 1\n aWuw = ''\n BHGE = []\n Lx3t = 1\n while len(aWuw) < u54L:\n aWuw = aWuw + str(ewCu)\n ...
[ "0.7738569", "0.7465758", "0.734824", "0.72536", "0.71985006", "0.71933836", "0.7171202", "0.7144781", "0.70568955", "0.70206016", "0.69897825", "0.6903411", "0.67872", "0.67685014", "0.6755559", "0.67421085", "0.67368305", "0.6736188", "0.67231834", "0.6707045", "0.6685649",...
0.0
-1
Lower bound on the success fraction in a sample of size N given k successful draws in n tests. Searches the largest success fraction s, so that probSuccessFracK(k, n, N, s) > confidence
def UguY(G1Hx, exwG, ywwl, la9G=0.95, vjyh=0.01): KCHu = 1 - vjyh uq_6 = bXdu(G1Hx, exwG, ywwl) while KCHu > 0: if cpi4(G1Hx, exwG, ywwl, s=KCHu) / uq_6 > la9G: return KCHu KCHu -= vjyh return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QOUa(G1Hx):\n XEBU = v_BE.cdf(G1Hx, ywwl, XP5J)\n vgvd = v_BE.pmf(G1Hx, ywwl, XP5J)\n GuPo = XEBU - vgvd\n return 1 - GuPo", "def E_5K(ywwl, k4pG=0.95, la9G=0.95, vjyh=0.01):\n for exwG in Ni9Y(1, ywwl):\n if UguY(exwG, exwG, ywwl, confidence=la9G, accuracy=vjyh) >= k4pG:\n r...
[ "0.7190847", "0.6857974", "0.6734558", "0.66535795", "0.65480024", "0.65042824", "0.6486605", "0.64752156", "0.6329647", "0.6291444", "0.6286749", "0.6269947", "0.6259104", "0.62481123", "0.62290156", "0.6138811", "0.61313784", "0.61313784", "0.61313784", "0.61313784", "0.611...
0.8078813
0
Wrapper for HAPI_GetAssetDefinitionParmInfos Fill an array of HAPI_ParmInfo structs with parameter information \ for the specified asset in the specified asset library.
def v8tH(cuiw, UL9z, R6j4): BGXt, bGrB, bGrB, bGrB, bGrB = fxro(cuiw, UL9z, R6j4) xGAt = (KK_9.ParmInfo * BGXt.value)() Aofo = bm8W.HAPI_GetAssetDefinitionParmInfos(dWW6(cuiw), UL9z, TO1V(R6j4.encode('utf-8')), dWW6(xGAt), 0, BGXt.value) assert Aofo == KK_9.Result.SUCCESS, 'GetAssetDefinitionParmInfos F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pR_h(cuiw, UL9z, R6j4, z1lQ=False):\n IhAk, aVmR, FBfN, Sa_m, EqBn = fxro(cuiw, UL9z, R6j4)\n xGAt = (KK_9.ParmInfo * IhAk.value)()\n Aofo = bm8W.HAPI_GetAssetDefinitionParmInfos(dWW6(cuiw), UL9z, TO1V(R6j4.encode('utf-8')), dWW6(xGAt), 0, IhAk.value)\n assert Aofo == KK_9.Result.SUCCESS, 'get_asse...
[ "0.63750196", "0.625895", "0.5133226", "0.4941379", "0.4882579", "0.48740083", "0.47957847", "0.47245717", "0.47153604", "0.4693172", "0.46251726", "0.4624178", "0.4621079", "0.4571491", "0.45697618", "0.4547646", "0.4514472", "0.45130184", "0.45103633", "0.44911787", "0.4485...
0.81304955
0
Wrapper for HAPI_GetCurveCounts Retrieve the number of vertices for each curve in the part.
def M3do(cuiw, Lnes, q2Ap, fsY0): aJHp = (eC2l * fsY0)() Aofo = bm8W.HAPI_GetCurveCounts(dWW6(cuiw), Lnes, q2Ap, dWW6(aJHp), 0, fsY0) assert Aofo == KK_9.Result.SUCCESS, 'GetCurveCounts Failed with {0}'.format(KK_9.Result(Aofo).name) Qg5i = oyIN.frombuffer(aJHp, oyIN.int32) return Qg5i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LaYA(cuiw, Lnes, q2Ap, fsY0):\n uDiT = R9bZ(aTac)\n Aofo = bm8W.HAPI_SetCurveCounts(dWW6(cuiw), Lnes, q2Ap, fsY0.flatten().ctypes.data_as(uDiT), 0, fsY0.shape[0])\n assert Aofo == KK_9.Result.SUCCESS, 'SetCurveCounts Failed with {0}'.format(KK_9.Result(Aofo).name)", "def bY8B(AdZ9):\n return len(...
[ "0.73143727", "0.67073244", "0.63008994", "0.60370284", "0.5932759", "0.5856775", "0.5835404", "0.5827418", "0.5786714", "0.5765527", "0.5712125", "0.56835735", "0.5682103", "0.56766975", "0.56224644", "0.559218", "0.5577675", "0.5535299", "0.55260366", "0.55236393", "0.55107...
0.79479367
0
Wrapper for HAPI_GetAttributeInt64Data Get attribute int64 data.
def cOC3(cuiw, Lnes, q2Ap, mWFP, GTYU): aJHp = (rfxR * (GTYU.count * GTYU.tupleSize))() Aofo = bm8W.HAPI_GetAttributeInt64Data(dWW6(cuiw), Lnes, q2Ap, TO1V(mWFP.encode('utf-8')), dWW6(GTYU), -1, dWW6(aJHp), 0, GTYU.count) assert Aofo == KK_9.Result.SUCCESS, 'GetAttributeInt64Data Failed with {0}'.format(KK_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHuN(YKHO, *qIxc):\n return PZpo.TStr_GetInt64(YKHO, *qIxc)", "def FHuN(YKHO, *qIxc):\n return ZYgz.TStr_GetInt64(YKHO, *qIxc)", "def TlNi(cuiw, Lnes, q2Ap, mWFP, GTYU):\n aJHp = (eC2l * (GTYU.count * GTYU.tupleSize))()\n Aofo = bm8W.HAPI_GetAttributeIntData(dWW6(cuiw), Lnes, q2Ap, TO1V(mWFP.en...
[ "0.6873743", "0.6526765", "0.64141583", "0.6388031", "0.63058066", "0.62730056", "0.6156532", "0.61472607", "0.61425817", "0.6133802", "0.61199075", "0.61177254", "0.61168295", "0.604592", "0.60347587", "0.6034257", "0.6032744", "0.5991419", "0.5975178", "0.597275", "0.596287...
0.78895074
0
Function to clear the test data directory.
def Aaaf(l_jd=None): TMYG = False if l_jd: for eHNT in Hy7s.listdir(l_jd): Hy7s.remove(Hy7s.path.join(l_jd, eHNT)) TMYG = True else: KWKZ.warning('Tried to delete files in test_dir, but something happened.') return TMYG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qwg_(pmON=None):\n if pmON is None:\n pmON = xe5l()\n if Hy7s.path.isdir(pmON):\n RDuA.rmtree(pmON, ignore_errors=True)", "def q8MS(WLhE):\n FHki = Hy7s.path.join(WLhE, 'Temp')\n YYib(FHki)", "def tBIc(YKHO) -> None:\n eH4Y = './test_data'\n if Hy7s.path.exists(eH4Y):\n ...
[ "0.8236028", "0.8096455", "0.79664713", "0.79072666", "0.78617066", "0.7798696", "0.77678055", "0.77413905", "0.77171046", "0.7678371", "0.7529515", "0.7496132", "0.7386728", "0.7354458", "0.72985035", "0.72950387", "0.72920305", "0.7284898", "0.72632563", "0.7252021", "0.720...
0.6933424
68
Test that the default subject attributes can be retrieved from the data model.
def ySLP(YKHO): YKHO.database.datamodels.find_one.return_value = dict(_id=123, subjects=dict(subject_type=dict(name='name', description='description'))) YKHO.assertEqual(dict(name=None, description='description', type='subject_type', metrics={}), ULiI(YKHO.database, 'subject_type'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lU7L(YKHO):\n YKHO.assertEqual({'type': 'software', 'name': None, 'description': 'A custom software application or component.', 'metrics': {}}, ULiI(YKHO.database, 'software'))", "def lU7L(YKHO):\n print('test_default_attribute')\n YKHO.assertTrue(hasattr(YKHO.dummy, 'id'))\n YKHO.assertTrue(hasa...
[ "0.8062806", "0.7123654", "0.6751574", "0.6740077", "0.66163987", "0.63976645", "0.6336181", "0.61715925", "0.6134433", "0.6091662", "0.6027516", "0.60221887", "0.6019107", "0.60146415", "0.6003019", "0.59756255", "0.5953039", "0.5938543", "0.59346", "0.5921576", "0.5906218",...
0.84389794
0
Given a service name, return a list of region names where this service can have resources
def ZbsA(zVa7): if zVa7 == 's3': return ['us-east-1'] return iVGz.Session().get_available_regions(zVa7) or [None]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ur3D(bSEa):\n cuiw = iVGz.session.Session()\n return cuiw.get_available_regions(bSEa)", "def CkL1():\n return n_5j.keys()", "def CkL1():\n dwJt = list(['ap-south-1', 'ap-northeast-2', 'ap-southeast-1', 'ap-southeast-2', 'ap-northeast-1', 'ca-central-1', 'eu-central-1', 'eu-west-1', 'eu-west-2',...
[ "0.7640199", "0.6876925", "0.6802821", "0.66789806", "0.6572338", "0.6388301", "0.63574255", "0.6348412", "0.6324946", "0.63161254", "0.62323886", "0.62050134", "0.62050134", "0.6174369", "0.61038834", "0.6079621", "0.6028224", "0.60260636", "0.60220206", "0.5989479", "0.5989...
0.74583685
1
Parse CLI arguments to either list services, operations, queries or existing pickles
def b8V_(): import argparse wvEv = argparse.ArgumentParser(description='List AWS resources on one account across regions and services. Saves result into pickle files, which can then be passed to this tool againto list the contents.') wvEv.add_argument('--list-services', action='store_true', help='List the s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fX90(YKHO):\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--list', action='store_true', default=True, help='List all LPARs (default: True)')\n wvEv.add_argument('--refresh-cache', action='store_true', default=False, help='Force refresh of cache by making API requests to HMC (default: False - use...
[ "0.7028661", "0.7017604", "0.6936906", "0.6892267", "0.6880865", "0.6876454", "0.68391573", "0.68363315", "0.6835535", "0.6798423", "0.67765313", "0.67693007", "0.67443246", "0.6740122", "0.6706186", "0.6691526", "0.66643804", "0.66576606", "0.6650702", "0.6648246", "0.664524...
0.0
-1
this will return head and size of linked list when called
def wHJl(YKHO): return '<head> => {}, <_size> => {}'.format(YKHO.head.val, YKHO._size)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n sdCG = YKHO.head\n ZbOB = sdCG\n while ZbOB.next != None:\n ZbOB = ZbOB.next", "def hcf8(sdCG):\n mglm = 0\n while sdCG is not None:\n sdCG = sdCG.next\n mglm += 1\n return mglm", "def FIMM(YKHO, sdCG: ListNode):\n YKHO.head = sdCG", "def zNig(YKHO)...
[ "0.7257408", "0.72431606", "0.71857935", "0.71842146", "0.7124617", "0.7033365", "0.69863725", "0.6978828", "0.69391453", "0.6933357", "0.69282347", "0.69214803", "0.68631935", "0.6851872", "0.6849003", "0.6849003", "0.6849003", "0.68446094", "0.6828436", "0.6815035", "0.6813...
0.0
-1
returns linked list length when called
def szAg(YKHO): return YKHO._size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1\n while aCLL.pointer_next is not None:\n u54L += 1\n aCLL = aCLL.pointer_next\n return u54L", "def u54L(YKHO):\n exwG = 0\n AsCw = YKHO.head\n while AsCw != None:\n ...
[ "0.8674651", "0.85507303", "0.8538448", "0.84829354", "0.8441924", "0.8429785", "0.841864", "0.84048456", "0.83841145", "0.83750886", "0.8345557", "0.833371", "0.8310198", "0.8309191", "0.83024114", "0.82947415", "0.82922274", "0.82918113", "0.82854", "0.82509327", "0.8225224...
0.0
-1
This will add a node the front of the list
def JPHp(YKHO, wEf2): try: Q6kx = o7DN(wEf2) except TypeError: raise TypeError('Cannot insert a value of none') Q6kx._next = YKHO.head YKHO.head = Q6kx YKHO._size += 1 return YKHO.head
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dZVG(YKHO, ZfUD):\n YKHO.single_linked_list.append(ZfUD)\n if YKHO.size() > 1:\n YKHO.last_node.next = YKHO.single_linked_list[-1]\n else:\n YKHO.first_node = YKHO.single_linked_list[0]\n YKHO.last_node = YKHO.single_linked_list[-1]", "def dZVG(YKHO, Cc00):\n ycBG = eTj7(Cc00)\n ...
[ "0.8099618", "0.8059198", "0.80022067", "0.7905885", "0.78279686", "0.7775105", "0.7733048", "0.7733048", "0.7643634", "0.7610581", "0.75924665", "0.7563654", "0.7553426", "0.7530579", "0.7530579", "0.7492088", "0.7488065", "0.74850154", "0.7478099", "0.7470542", "0.7465375",...
0.0
-1
this will add a new node to the end of the list
def SStx(YKHO, BWXx): Q6kx = o7DN(BWXx) jvSB = YKHO.head while jvSB._next: jvSB = jvSB._next jvSB._next = Q6kx YKHO._size += 1 return Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e68I(YKHO, Cc00):\n Q6kx = YKHO.first\n while Q6kx.getNext():\n Q6kx = Q6kx.getNext()\n Esd_ = o7DN(Cc00)\n Q6kx.setNext(Esd_)", "def Z6N8(YKHO, Cc00):\n ycBG = YKHO.head\n Esd_ = o7DN(Cc00)\n while ycBG.next != None:\n ycBG = ycBG.next\n ycBG.next = Esd_", "def F1bx(Y...
[ "0.8205153", "0.7802761", "0.7706058", "0.7665562", "0.76650745", "0.76314336", "0.762036", "0.7584845", "0.7584845", "0.7557654", "0.7554506", "0.75074476", "0.7490381", "0.7486985", "0.74866366", "0.74764925", "0.7472165", "0.7465333", "0.74646306", "0.7438458", "0.7423759"...
0.7366719
29
remove the node at the head of the linked_list, decrement the ._size and return the value
def kSdD(YKHO): wEf2 = YKHO.head YKHO.head = YKHO.head._next YKHO._size -= 1 return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSdD(YKHO):\n ZfUD = YKHO.head\n YKHO.head = YKHO.head.next\n YKHO.length = YKHO.length - 1\n return ZfUD", "def Ml0O(YKHO):\n if YKHO.size == 0:\n return None\n ZESx = YKHO.head.value\n if YKHO.size == 1:\n YKHO.head = YKHO.tail = None\n else:\n YKHO.head = YKHO....
[ "0.79002774", "0.7802893", "0.7738821", "0.7702799", "0.76344925", "0.75273913", "0.75209993", "0.748283", "0.7472497", "0.74196845", "0.7390267", "0.73831373", "0.7370584", "0.7368266", "0.7362091", "0.7292999", "0.7259253", "0.7259102", "0.72292864", "0.72212654", "0.721152...
0.8372454
0
If an algorithm has been used to load labels for the current event, then checkLabels returns True, otherwise, it returns false.
def AYuo(YKHO): if YKHO.parent.eventNumber in YKHO.algorithmEvaluated: if YKHO.algorithmEvaluated[YKHO.parent.eventNumber] == True: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qXSs():\n if not 'labels' in YKHO.database[YKHO.index]:\n return True\n UHFx = 0\n for pj7j, oUSw in YKHO.database[YKHO.index]['labels'].items():\n UHFx += len(oUSw)\n return UHFx == 0", "def SSya(YKHO):\n RXEB = hasattr(YKHO._dataset, 'label')\n if RXEB:\n if callable(...
[ "0.72217983", "0.7110154", "0.705715", "0.687713", "0.6810219", "0.6734757", "0.66752356", "0.66641253", "0.6650737", "0.6538551", "0.6538551", "0.6538551", "0.6482764", "0.64823157", "0.64577115", "0.6405475", "0.6404715", "0.6378097", "0.63693357", "0.63014", "0.6267715", ...
0.8646967
0
Splits the words in a string and returns an array where each index corresponds to words in the original string.
def VUYt(YKHO, vIwR, TDw3): xdeM = [] SCpD = 0 qbjq = 0 for YRbF, ascii in enumerate(vIwR): if ascii == TDw3: qbjq = YRbF xdeM.append(vIwR[SCpD:qbjq]) SCpD = YRbF + 1 elif YRbF == len(vIwR) - 1: qbjq = YRbF + 1 xdeM.append(vIwR[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dFss(vIwR):\n return PHXD(vIwR).split(' ')", "def ObYa(V22M):\n return V22M.split(' ')", "def wWP1(vIwR):\n return [YRbF for YRbF in ZbWC.split('\\\\W+', vIwR.lower()) if YRbF]", "def NMzd(l5Ny):\n return uKLg.findall(l5Ny)", "def W78r(vIwR):\n rw6h = []\n GIN8 = ''\n for bseI in v...
[ "0.7657719", "0.7511962", "0.7354167", "0.7350438", "0.73026514", "0.72660905", "0.72660905", "0.7260429", "0.7206563", "0.7196632", "0.71841246", "0.7154108", "0.71068895", "0.70893496", "0.7056802", "0.705635", "0.7038981", "0.7038715", "0.70304745", "0.702107", "0.70200324...
0.78247243
0
Tests basic container API for MultibodyPlantElementsMap. All `copy_` functionality is tested (implicitly) in `test_subgraph_add_to_copying`.
def fDyK(YKHO): rOW8, N46P, bGrB = YKHO.make_arbitrary_multibody_stuff(num_bodies=1) RxEz, ifEL, bGrB = YKHO.make_arbitrary_multibody_stuff(num_bodies=1) YKHO.assertIsNot(rOW8, RxEz) YKHO.assertIsNot(N46P, ifEL) gnPz.assert_plant_equals(rOW8, N46P, RxEz, ifEL) YKHO.create_manual_map(rOW8, N46P, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kAdp(YKHO):\n rOW8, N46P, bGrB = YKHO.make_arbitrary_multibody_stuff(num_bodies=1)\n tHA0 = Hy_C()\n RxEz, ifEL = yK3n(tHA0, rOW8.time_step())\n aDdg = GTba.MultibodyPlantSubgraph(GTba.get_elements_from_plant(rOW8, N46P))\n wnzy = aDdg.add_to(RxEz, ifEL)\n RxEz.Finalize()\n gnPz.assert_pla...
[ "0.67588615", "0.62884724", "0.59431213", "0.58058363", "0.57776636", "0.5748974", "0.5598517", "0.55825245", "0.5580361", "0.55609167", "0.55167085", "0.55155027", "0.5500936", "0.54832745", "0.54598653", "0.5427402", "0.5426714", "0.5415477", "0.5415477", "0.5415477", "0.54...
0.74341875
0
Second order Butterworth band pass filter doesnt seem to be working ATM
def S6r5(EcVT, FBfN, wgnC, mVUw=RlRK): Nq1b = 1 / oyIN.tan(oyIN.pi * FBfN * wgnC / mVUw) lWPh = 2 * oyIN.cos(2 * oyIN.pi * FBfN / mVUw) L1dM = 1 / (1 + Nq1b) XOOk = 0.0 pHXX = -L1dM kYGz = -L1dM * (Nq1b * lWPh) ftz7 = L1dM * (Nq1b - 1) Ngpo = 1.0 pKiF = 0.0 return RZdq(EcVT, L1dM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mezh(dgV7, uCif, V2zj):\n cVlt = dgV7 / 44100.0\n ifXm = uCif / 44100.0\n Fg_i = V2zj / 44100.0\n ywwl = int(oyIN.ceil(4 / Fg_i))\n if not ywwl % 2:\n ywwl += 1\n exwG = oyIN.arange(ywwl)\n P9Xt = oyIN.sinc(2 * ifXm * (exwG - (ywwl - 1) / 2.0))\n P9Xt *= oyIN.blackman(ywwl)\n ...
[ "0.78368974", "0.7479596", "0.73163426", "0.72144043", "0.72071445", "0.71897167", "0.7112053", "0.70645654", "0.7012928", "0.70079255", "0.698093", "0.6979965", "0.69797784", "0.6960188", "0.6942261", "0.69359016", "0.6925338", "0.69169414", "0.6903285", "0.688844", "0.68787...
0.73713803
2
Write a function to determine if any 3 integers in an array sum to 0. >>> is_sum_three_to_zero2([1,1,3,5,2,2]) True >>> is_sum_three_to_zero2([1,1,1,1,1]) False
def ZIE3(yv6U): if len(yv6U) < 3: return False if sum(yv6U) == 0: return True yv6U = sorted(yv6U) bLm1 = yv6U[1:] a0IM = yv6U[2:] ioyN = [None, None, None] for YRbF in yv6U: ioyN[0] = YRbF for r845 in bLm1: ioyN[1] = r845 for G1Hx in a0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3bw(yv6U):\n vsK8 = []\n tbib = []\n for YRbF in yv6U:\n if YRbF > 0:\n vsK8.append(YRbF)\n if YRbF < 0:\n tbib.append(YRbF)\n if abs(sum(tbib)) in vsK8:\n return True\n else:\n return False", "def oujO(mSrU):\n for vcn7 in wCK1(mSrU):\n ...
[ "0.73666364", "0.7168195", "0.6812414", "0.6613772", "0.65843683", "0.6536366", "0.6479355", "0.64058954", "0.63078284", "0.62804925", "0.6268175", "0.6245094", "0.6221602", "0.6139662", "0.6116584", "0.60605514", "0.6032938", "0.5978267", "0.59162664", "0.58600104", "0.58590...
0.7475456
0
Write a function to determine if any 3 integers in an array sum to 0.
def i3bw(yv6U): vsK8 = [] tbib = [] for YRbF in yv6U: if YRbF > 0: vsK8.append(YRbF) if YRbF < 0: tbib.append(YRbF) if abs(sum(tbib)) in vsK8: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oujO(mSrU):\n for vcn7 in wCK1(mSrU):\n if sum(vcn7) == 0:\n return True\n return False", "def ZIE3(yv6U):\n if len(yv6U) < 3:\n return False\n if sum(yv6U) == 0:\n return True\n yv6U = sorted(yv6U)\n bLm1 = yv6U[1:]\n a0IM = yv6U[2:]\n ioyN = [None, No...
[ "0.72304547", "0.7131218", "0.6892118", "0.6875463", "0.6762968", "0.6711319", "0.6569818", "0.65614486", "0.65161496", "0.6466899", "0.6452775", "0.63714635", "0.6358417", "0.6354597", "0.629767", "0.62239134", "0.6190152", "0.6186763", "0.61326945", "0.6100153", "0.60765445...
0.70391256
2
Find root directory of the ray project.
def vi3q(AGPF): THkp, AGPF = (None, Hy7s.path.abspath(AGPF)) while THkp != AGPF: if Hy7s.path.isdir(Hy7s.path.join(AGPF, '.rayproject')): return AGPF THkp, AGPF = (AGPF, Hy7s.path.abspath(Hy7s.path.join(AGPF, Hy7s.pardir))) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def phdL(Emd4):\n if Emd4.__rootdir__ != None:\n return Emd4.__rootdir__\n pmON = Hy7s.getcwd()\n W06G = ZbWC.finditer('/|\\\\\\\\', pmON)\n V2cd = [pmON]\n for kUBT in W06G:\n XP5J = pmON[:kUBT.start()]\n V2cd.insert(0, XP5J)\n for pmON in V2cd:\n lQDD = Hy7s.path.joi...
[ "0.7527104", "0.7499884", "0.7473105", "0.7464603", "0.7458962", "0.74549806", "0.74388254", "0.742687", "0.7425835", "0.74210626", "0.738613", "0.7371003", "0.7355162", "0.7347374", "0.7343273", "0.73392975", "0.7291007", "0.7274238", "0.7273417", "0.72713244", "0.72552794",...
0.75515145
0
Function for reading images using scikitimage Reads image as grayscale and converts to unsigned byte format if bool is True for gray
def q5aE(Ux0P, ITiw): if ITiw: VXjJ = xDSY.imread(Ux0P, as_gray=True) UFp3 = ECal(VXjJ) return UFp3 else: VXjJ = xDSY.imread(Ux0P) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q5aE(j0fd):\n VXjJ = hiw8.imread(j0fd)\n return frG3.img_as_ubyte(frG3.color.rgb2gray(VXjJ))", "def cE34(pmON, E4ec=True):\n if E4ec:\n return Zxt2.misc.imread(pmON, flatten=True, mode='YCbCr').astype(oyIN.float)\n else:\n return Zxt2.misc.imread(pmON, mode='YCbCr').astype(oyIN.floa...
[ "0.72018665", "0.6779347", "0.6754324", "0.6698134", "0.66850984", "0.6641653", "0.6637038", "0.66331947", "0.66191167", "0.6597538", "0.65899736", "0.6573474", "0.6573474", "0.6527417", "0.6508969", "0.6507614", "0.64997566", "0.64784783", "0.6464068", "0.6459157", "0.644519...
0.66210645
8
cast unicode or bytes to bytes
def nR9l(KCHu, tZ2K='utf8', UAju='strict'): qmLP.warn('zmq.utils.strtypes is deprecated in pyzmq 23.', DeprecationWarning, stacklevel=2) if isinstance(KCHu, bytes): return KCHu elif isinstance(KCHu, str): return KCHu.encode(tZ2K, UAju) else: raise TypeError('Expected unicode or b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _v77(BWXx):\n if not isinstance(BWXx, (str, bytes, bytearray)):\n BWXx = str(BWXx)\n if isinstance(BWXx, str):\n BWXx = bytes(BWXx, encoding=bbMd)\n elif isinstance(BWXx, bytearray):\n BWXx = bytes(BWXx)\n return BWXx", "def OlFT(wEf2):\n if wEf2 is None:\n return N...
[ "0.8046503", "0.79021615", "0.7728069", "0.7690682", "0.7641234", "0.7571706", "0.75685173", "0.7558174", "0.7437652", "0.7412418", "0.73797673", "0.7365714", "0.7354463", "0.7304536", "0.7261733", "0.7227925", "0.71883655", "0.7172021", "0.7170343", "0.7152666", "0.7150962",...
0.7240756
15
Test that a constructor with app instance will initialize the connection.
def VDVO(P4t4): OeZe = qoFy(P4t4) assert OeZe.client is not None assert hasattr(OeZe.client, 'connection_pool')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KsQr(P4t4):\n OofJ = W0xu()\n assert OofJ._client is None\n OofJ.init_app(P4t4)\n assert OofJ._client is not None", "def as4H(YKHO):\n Aofo = YKHO.app.init()\n assert Aofo is True", "def VDVO(P4t4):\n SCGx = kHGT(P4t4)\n assert SCGx._sn_lua_script is not None\n assert hasattr(SCG...
[ "0.7650169", "0.75554675", "0.74596447", "0.7435262", "0.73891264", "0.7325655", "0.71791714", "0.71791714", "0.71791714", "0.71791714", "0.7177362", "0.717638", "0.71707463", "0.7153921", "0.71273804", "0.71091443", "0.7102273", "0.7078252", "0.7078252", "0.7051023", "0.7029...
0.72146225
6
Test a user config flow with an error.
async def test_user_config_flow_error(ajET: HomeAssistant, Xm65, KTnm: pytest.LogCaptureFixture, AJ5d, P1dF) -> None: Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': kzTJ.SOURCE_USER}) await ajET.async_block_till_done() Xm65.get_authorization.side_effect = AJ5d('test reason') A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_flow_user_cannot_connect(ajET: HomeAssistant, cS65) -> None:\n cS65.async_initialize.side_effect = Bx6I.SkybellException(ajET)\n Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': L8nN}, data=oZ4q)\n assert Aofo['type'] == _gzR.FORM\n assert Aofo['step_id'] == 'use...
[ "0.7537299", "0.75242454", "0.75028545", "0.7493494", "0.74724895", "0.74522036", "0.7430656", "0.7382154", "0.7310752", "0.72408295", "0.7229886", "0.72150004", "0.7199066", "0.71873236", "0.7159034", "0.70899177", "0.70783675", "0.70707595", "0.70456356", "0.7019631", "0.69...
0.7938868
0
Test a user config flow with an account already configured.
async def test_user_config_flow_already_configured(ajET: HomeAssistant, Xm65) -> None: m1vN(ajET) Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': kzTJ.SOURCE_USER}) Aofo = await ajET.config_entries.flow.async_configure(Aofo['flow_id'], HXx1) await ajET.async_block_till_done() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_flow_user_already_configured(ajET: HomeAssistant) -> None:\n bTKY = Jaru(domain=Sugg, data=oZ4q)\n bTKY.add_to_hass(ajET)\n Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': L8nN}, data=oZ4q)\n assert Aofo['type'] == _gzR.ABORT\n assert Aofo['reason'] == 'alrea...
[ "0.75953066", "0.74588805", "0.7347296", "0.73456365", "0.73252714", "0.73154986", "0.7306916", "0.7265536", "0.7232843", "0.71694815", "0.70746166", "0.7010149", "0.7001837", "0.69607216", "0.69499594", "0.69126177", "0.6895647", "0.6883669", "0.68269014", "0.6803708", "0.67...
0.76433533
0
Test a successful reauthorization config flow.
async def test_reauth_config_flow_success(ajET: HomeAssistant, Xm65, KTnm: pytest.LogCaptureFixture, QTBn) -> None: PhL6 = m1vN(ajET, state=QTBn) Xm65.get_authorization.return_value = N5sL Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': kzTJ.SOURCE_REAUTH, 'entry_id': PhL6.entry_id...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_step_reauth(ajET: HomeAssistant) -> None:\n bTKY = Jaru(domain=Sugg, unique_id=e3eL, data=oZ4q)\n bTKY.add_to_hass(ajET)\n Aofo = await ajET.config_entries.flow.async_init(Sugg, context={e4zj: kzTJ.SOURCE_REAUTH, 'entry_id': bTKY.entry_id, 'unique_id': bTKY.unique_id}, data=bTKY.data)\n ...
[ "0.77471834", "0.7601097", "0.75322187", "0.7427312", "0.73288566", "0.70786756", "0.7051585", "0.69731843", "0.6857434", "0.6836268", "0.682595", "0.6775513", "0.67397296", "0.67003286", "0.66625744", "0.6609955", "0.6603123", "0.658769", "0.64240825", "0.6402948", "0.637948...
0.7972153
0
Load configuration from a YAML file.
def OXMy(nUeQ: str) -> tOni: assert nUeQ.endswith('yaml') or nUeQ.endswith('yml'), 'File is not a YAML file.' if not Hy7s.path.isfile(nUeQ): raise FileNotFoundError(f'{nUeQ} was not found') with open(nUeQ, mode='r') as eHNT: _Fei = tOni(eJb6.load(eHNT, Loader=smLN)) return _Fei
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LgIG(pmON):\n return eJb6.load(open('config.yaml', 'r'), Loader=eJb6.SafeLoader)", "def bsaa(Emd4, lqQH):\n with open(lqQH) as Nu1S:\n b32v = eJb6.load(Nu1S, Loader=eJb6.FullLoader)\n return Emd4(**b32v)", "def LgIG(Ux0P):\n return eJb6.load(open(Ux0P, 'r').read())", "def Dodi(pmON):\n...
[ "0.7969554", "0.79693323", "0.7955185", "0.79234016", "0.79110134", "0.79044116", "0.78829396", "0.7874856", "0.78707063", "0.78566325", "0.78500044", "0.78453004", "0.78448695", "0.7842806", "0.7833226", "0.7833226", "0.7823354", "0.78207827", "0.78032976", "0.7799318", "0.7...
0.0
-1
Constructor method initializes each position variable and the board size
def FIMM(YKHO, BrEt): YKHO.board_size = BrEt YKHO.marks = oyIN.empty((BrEt, BrEt), dtype='str') YKHO.marks[:, :] = ' '
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Lkng, M06Y):\n YKHO.size_x = Lkng\n YKHO.size_y = M06Y\n YKHO.positions = []\n for LVAh in range(M06Y):\n rdlD = []\n YKHO.positions.append(rdlD)\n for WKvO in range(Lkng):\n rdlD.append(JnVq.Cell())\n YKHO.board_tracker = BMwm()", "def FIMM(YKHO, tPL...
[ "0.8487749", "0.8179388", "0.814116", "0.8094402", "0.799162", "0.7973481", "0.7954879", "0.79180485", "0.78991973", "0.7899009", "0.78820574", "0.7879159", "0.78308976", "0.7830547", "0.77859724", "0.77567554", "0.7745002", "0.7658776", "0.7657943", "0.76525444", "0.761871",...
0.76865435
17
Finds the action that gives lowest minimax value for computer Returns the resulting value
def dgIT(YKHO, Cwt5, UqYS): YwLg(jLUp.DEBUGGING_ON) if YKHO.is_terminal() or jLUp.depth > jLUp.MAX_DEPTH: return YKHO.get_utility() l_yx = epAf.inf for XeOP in YKHO.get_actions(): jLUp.depth = jLUp.depth + 1 YKHO.marks[XeOP[0]][XeOP[1]] = jLUp.PLAYER l_yx = min(l_yx, YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SR1K(iBIi):\n if oyg0(iBIi) == EcVT:\n if f9TP(iBIi):\n return None\n BWXx = -100\n r8IL = None\n for XeOP in xASv(iBIi):\n vHjs = Aofo(iBIi, XeOP)\n Qj8D = dgIT(vHjs)\n if Qj8D > BWXx:\n BWXx = Qj8D\n r8IL...
[ "0.8081295", "0.8075955", "0.8066584", "0.8062345", "0.8016088", "0.7993123", "0.7977331", "0.79598004", "0.79529756", "0.7905862", "0.7875966", "0.7860971", "0.78594065", "0.78173995", "0.7796995", "0.7784329", "0.77830094", "0.778171", "0.77735853", "0.7740024", "0.77347964...
0.0
-1
The circuit of the variational classifier.
def DPNn(_mSQ, bLm4=None): xImy(bLm4) for XcU5 in _mSQ: gEmA(XcU5) return B2Ja.expval(B2Ja.PauliZ(1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPNn(YKHO):\n return YKHO.__circuit", "def DPNn(YKHO) -> _giR:\n return YKHO._symbolic_circuit", "def xlbU(YKHO):\n return YKHO.params[1]", "def CK9Q(YKHO):\n return f'{YKHO.get_prototype_v()}' + f'{YKHO.get_declarations_v_hier()}\\n' + f'{YKHO.get_init_v_hier()}\\n' + f'{YKHO.get_function_ou...
[ "0.75214005", "0.698533", "0.6855925", "0.6775916", "0.6703768", "0.6666877", "0.6580472", "0.64469594", "0.63943297", "0.6303425", "0.6181466", "0.6106838", "0.60274625", "0.6009258", "0.599624", "0.5973897", "0.59695697", "0.5961546", "0.59011966", "0.58967423", "0.58539134...
0.0
-1
Assert clean exit from bad column name config.
def bSjw(YKHO): with trZe.raises(SystemExit) as tTpl: YKHO.create_csv_consumer(YKHO.bad_col_config()) assert tTpl.type == SystemExit assert tTpl.value.code == 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nYKz(YKHO):\n pmON = Hy7s.path.join(q1QZ, 'three_random_columns.csv')\n YKHO.assertRaisesRegexp(ValueError, ZbWC.escape('The header of file \"{}\" does not match the CompoundDatatype \"{}\"'.format(pmON, YKHO.triplet_cdt)), lambda: x3i3.create_dataset(file_path=pmON, user=YKHO.myUser, cdt=YKHO.triplet_cd...
[ "0.7006498", "0.6867237", "0.68640757", "0.6714936", "0.65813464", "0.654023", "0.6535169", "0.6527011", "0.6507963", "0.6505696", "0.6495685", "0.64610004", "0.645547", "0.6434022", "0.6396119", "0.63896865", "0.63821256", "0.6371821", "0.635216", "0.6350193", "0.6345638", ...
0.73061085
0
Assert that we get 10 rows from the Windows CSV file.
def MSLE(YKHO): nAXS = YKHO.create_csv_consumer(YKHO.good_config_wincr()) tAXv = nAXS.get_rows() assert len(tAXv) == 6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rur4(YKHO):\n YKHO.assertEqual(iJEn('fixtures/csv_input.csv'), 2)", "def E6FP(YKHO):\n nAXS = YKHO.create_csv_consumer(YKHO.good_config_lincr())\n tAXv = nAXS.get_rows()\n assert len(tAXv) == 6", "def j8ca():\n usx6 = c_Kg(Ux0P)\n SjMt(len(usx6), 11)\n SjMt(usx6[0], FWnj)\n SjMt(usx...
[ "0.7091411", "0.7056516", "0.6809222", "0.6720426", "0.66985536", "0.66750616", "0.63859046", "0.63665533", "0.62077075", "0.6175807", "0.6137416", "0.61255366", "0.6097374", "0.6090989", "0.60561913", "0.6020765", "0.60110664", "0.5989216", "0.5973138", "0.5971906", "0.59605...
0.7522773
0
Return true if the binary_sensor is on.
def Debg(YKHO): return YKHO.coordinator.api.update_available
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO) -> bool:\n return YKHO.wemo.has_sensor != 0 and YKHO.wemo.sensor_state == 0", "def Debg(YKHO):\n try:\n return YKHO._izzibridge.data[YKHO._sensor_type] == YKHO._active_state\n except KeyError:\n return False", "def NPsq(YKHO, PG3W):\n XtFw = b8Sj.TcpBinarySensor(YKHO.ha...
[ "0.7919749", "0.77325594", "0.75553095", "0.7399241", "0.7327895", "0.7310684", "0.7246992", "0.7185012", "0.71577615", "0.71484065", "0.7139475", "0.71000147", "0.7096147", "0.70885026", "0.70885026", "0.7059291", "0.7056712", "0.7056712", "0.7056712", "0.7056712", "0.705671...
0.0
-1
(list of int) > int Gets the value of the small joker, which is the second highest value in the deck. >>> get_small_joker_value([1, 3, 2, 5, 4]) 4 >>> get_small_joker_value([6, 4, 10, 8, 9, 2, 5, 1, 7, 13, 11, 12, 14, 18, 15, 17, 16, 3]) 17
def CcVf(nf_0): return max(nf_0) - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yw7D(nf_0):\n return max(nf_0)", "def qDyq(YKHO, BWXx, list):\n shUF = [a1PO for a1PO in list if a1PO < BWXx]\n return max(shUF) if shUF else None", "def Zruo(RZ8t, kf6a):\n YVae = rxU1(RZ8t)\n if kf6a in (0, 8):\n return max(YVae)\n IwS1 = 0\n p9qS = 0\n for YRbF in YVae:\n ...
[ "0.72956735", "0.6016655", "0.5977363", "0.5973878", "0.59437793", "0.5893223", "0.5879678", "0.5869875", "0.58651006", "0.58532375", "0.57908607", "0.5789872", "0.5783858", "0.5766442", "0.5763725", "0.5748436", "0.5732784", "0.5677871", "0.567623", "0.5648346", "0.5630036",...
0.753529
0
(list of int) > int Gets the value of the big joker, which is the highest value in the deck. >>> get_big_joker_value([1, 3, 2, 5, 4]) 5 >>> get_big_joker_value([1, 3, 2, 5, 4, 8, 6, 7]) 8
def yw7D(nf_0): return max(nf_0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CcVf(nf_0):\n return max(nf_0) - 1", "def hWiv(mSrU):\n if not len(mSrU):\n bQ6z = None\n else:\n bQ6z = max(mSrU)\n return bQ6z", "def qfB5(YKHO, DumB):\n Q0a1 = None\n SkJr = -999999999\n for G1Hx, Ty9i in DumB.items():\n if Ty9i > SkJr:\n SkJr = Ty9i\...
[ "0.732874", "0.67736256", "0.6762981", "0.6690678", "0.6662625", "0.6643994", "0.66435707", "0.6594985", "0.65752345", "0.6565464", "0.6486424", "0.6469711", "0.64664066", "0.64339334", "0.64029396", "0.6384174", "0.6365121", "0.63543504", "0.63463956", "0.6338956", "0.630830...
0.83058196
0
Calculates the gaussian kernel gram matrix for two vectors
def jKuA(o4D3, ajwV, KCHu=50): return oyIN.exp(-oyIN.divide(oyIN.sum(oyIN.square(oyIN.subtract(o4D3[:, oyIN.newaxis], ajwV)), 2), 2 * KCHu ** 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BhzF(mSn1, IP77, uH38=jKuA, WTkW=0.1):\n Bg4l = oyIN.zeros((mSn1.shape[0], IP77.shape[0]))\n for YRbF, o4D3 in enumerate(mSn1):\n for r845, ajwV in enumerate(IP77):\n Bg4l[YRbF, r845] = uH38(o4D3, ajwV, WTkW)\n return Bg4l", "def Kn4N(hQHm, jlSq, WTkW):\n return epAf.exp(-oyIN.l...
[ "0.7753027", "0.75108796", "0.7236156", "0.71408975", "0.7131911", "0.67685425", "0.67420435", "0.67225283", "0.6699454", "0.6683006", "0.66669834", "0.6648988", "0.66485405", "0.6609755", "0.6604676", "0.66001767", "0.6596291", "0.65550643", "0.65529317", "0.6551808", "0.654...
0.7354237
2
Update a question and redirect to the questions page.
def rNRU(JVBp): try: HryA = {'id': JVBp, 'question': QePW.form['question'], 'answer': QePW.form['answer']} bD7m = '{}/{}'.format(pRjx, HryA['id']) G4JS.put(bD7m, json=HryA) except: G9jH.error(wVCK.format_exc()) return vKnz('questions')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZZXb(QePW, _sei):\n bAls = Iofl(Y4Gy, pk=_sei)\n CBIr = QePW.user\n if not QePW._is_admin and CBIr not in bAls.qset.top_qset.users.all():\n return vKnz(gxEw('askup:organizations'))\n if not QePW._is_admin and (not QePW._is_teacher) and (CBIr.id != bAls.user_id):\n return vKnz(gxEw('as...
[ "0.7453457", "0.7173333", "0.69301444", "0.67022973", "0.66180396", "0.65937954", "0.6583736", "0.6571839", "0.65579647", "0.6496325", "0.6431772", "0.6425833", "0.63866234", "0.62835675", "0.6233308", "0.6230063", "0.6225773", "0.62231666", "0.6207702", "0.6185376", "0.61508...
0.81121254
0
Return representation of class object.
def wHJl(YKHO) -> str: return f'<Mood {YKHO._parent} {YKHO.name}>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(Emd4):\n return Emd4._format_cls_repr()", "def wHJl(YKHO):\n mPQc = type(YKHO).__name__\n C9U5 = YKHO.__dict__\n return f'<{mPQc} {C9U5}>'", "def wHJl(YKHO):\n return Napc(YKHO)", "def wHJl(YKHO):\n dW3G = e5kH.read(type(YKHO))\n llyG = e5kH.read(YKHO)\n V9cr = [kn2E(type(YKH...
[ "0.7988772", "0.77977234", "0.74407256", "0.7397828", "0.7320139", "0.7320139", "0.73099744", "0.7297057", "0.72580934", "0.72568697", "0.7254374", "0.7236431", "0.7236431", "0.7236431", "0.7236431", "0.7236431", "0.7236431", "0.7168183", "0.7168183", "0.7162318", "0.7162318"...
0.0
-1
Returns property that calls given getter on the first access and reuses result afterwards. Class instances should be hashable and weak referencable. >>> import math >>> from memoir import cached
def AZ9c(gJdh: Map[Domain, Range]) -> property: return property(byDn(EpNt())(gJdh))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VzPU(gJdh):\n\n @zaGL(gJdh)\n def mrMx(YKHO):\n H5ew = '_cached_property_' + gJdh.__name__\n if not hasattr(YKHO, H5ew):\n setattr(YKHO, H5ew, gJdh(YKHO))\n return getattr(YKHO, H5ew)\n return property(mrMx)", "def VzPU(gJdh):\n\n @zaGL(gJdh)\n def mrMx(YKHO):\n...
[ "0.80096763", "0.80096763", "0.7700297", "0.7668752", "0.7656982", "0.760761", "0.7596171", "0.7548937", "0.7475495", "0.74243087", "0.74243087", "0.7335043", "0.7299583", "0.7252708", "0.72377926", "0.7222048", "0.7185199", "0.7120149", "0.7120149", "0.7107851", "0.70944023"...
0.59373766
90
Testing dice score with not binary tensor to assert thresholding works.
def dxsv(): NLcz = 0.6 * oyIN.identity(3, dtype=oyIN.float32) mTeF = oyIN.zeros((3, 3, 3, 3), dtype=oyIN.float32) mTeF[:, :, 0:3, 0:3] = NLcz mTeF = ZylS.convert_to_tensor(mTeF, dtype=ZylS.float32) g1FB = oyIN.zeros((3, 3, 3, 3), dtype=oyIN.float32) g1FB[:, 0:2, :, :] = NLcz g1FB = ZylS.conv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yQll():\n NLcz = oyIN.identity(3, dtype=oyIN.float32)\n mTeF = oyIN.zeros((3, 3, 3, 3), dtype=oyIN.float32)\n mTeF[:, :, 0:3, 0:3] = NLcz\n mTeF = ZylS.convert_to_tensor(mTeF, dtype=ZylS.float32)\n g1FB = oyIN.zeros((3, 3, 3, 3), dtype=oyIN.float32)\n g1FB[:, 0:2, :, :] = NLcz\n g1FB = Zyl...
[ "0.7541094", "0.73433053", "0.68292236", "0.67686546", "0.6693982", "0.6664599", "0.6624262", "0.66087896", "0.6579186", "0.6516014", "0.6480471", "0.6475318", "0.6466891", "0.6421394", "0.6387358", "0.63683736", "0.6334573", "0.6321971", "0.62884015", "0.6274629", "0.6257813...
0.7405605
1
Testing compute centroid function and comparing to expected values.
def ntcr(): YvV5 = oyIN.zeros((3, 2, 2, 2)) YvV5[0, :, :, :] = oyIN.ones((2, 2, 2)) YvV5 = ZylS.constant(YvV5, dtype=ZylS.float32) dsja = oyIN.ones((2, 2, 2, 3)) dsja[:, :, :, 1] *= 2 dsja[:, :, :, 2] *= 3 dsja = ZylS.constant(dsja, dtype=ZylS.float32) aEqx = oyIN.ones((3, 3)) aEqx[0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def STnF():\n WKvO = oyIN.array([[1, 0, 0], [1, 2, 3], [4, 5, 6], [7, 8, 9]])\n Z9rn = oyIN.array([[1, 0, 0], [0, 1, 1]])\n pImw = HTQe(WKvO, Z9rn)\n pImw = oyIN.round(pImw)\n aEqx = oyIN.array([0, 1, 1, 1])\n oyIN.testing.assert_equal(aEqx, pImw)\n return", "def UK3U(YKHO):\n for bGrB in...
[ "0.7770086", "0.7419627", "0.72491366", "0.7113134", "0.7066838", "0.7044283", "0.70097715", "0.6998129", "0.68854505", "0.6857232", "0.68108696", "0.67960024", "0.67527103", "0.6721903", "0.67194164", "0.6643522", "0.6635847", "0.66145915", "0.65973717", "0.6594284", "0.6556...
0.7149142
3
Testing compute centroid distance between equal tensors returns 0s.
def IelI(): mgD5 = oyIN.ones((2, 2)) YvV5 = oyIN.zeros((3, 2, 2, 2)) YvV5[0, :, :, :] = mgD5 YvV5 = ZylS.convert_to_tensor(YvV5, dtype=ZylS.float32) dsja = oyIN.zeros((2, 2, 2, 3)) dsja[:, :, :, 0] = mgD5 dsja = ZylS.convert_to_tensor(dsja, dtype=ZylS.float32) NMoC = UXqs.compute_centroi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UK3U(YKHO):\n for bGrB in range(100):\n yHxN = hPll.init_centroids(2, YKHO.edges)\n YKHO.assertFalse(oyIN.array_equal(yHxN[0], yHxN[1]))", "def STnF():\n WKvO = oyIN.array([[1, 0, 0], [1, 2, 3], [4, 5, 6], [7, 8, 9]])\n Z9rn = oyIN.array([[1, 0, 0], [0, 1, 1]])\n pImw = HTQe(WKvO, Z...
[ "0.7101858", "0.7034806", "0.69529045", "0.6914931", "0.6658901", "0.656811", "0.65440893", "0.6476227", "0.6393358", "0.6349104", "0.6347429", "0.6331935", "0.63096094", "0.6299977", "0.6259539", "0.6245509", "0.6244551", "0.6210439", "0.6202459", "0.61782575", "0.61649", ...
0.7488394
0
Testing single sclare loss returns precomputed, known dice loss for given inputs.
def k2tP(): NLcz = oyIN.identity(3, dtype=oyIN.float32) mTeF = oyIN.zeros((3, 3, 3, 3), dtype=oyIN.float32) mTeF[:, :, 0:3, 0:3] = NLcz mTeF = ZylS.convert_to_tensor(mTeF, dtype=ZylS.float32) g1FB = oyIN.zeros((3, 3, 3, 3), dtype=oyIN.float32) g1FB[:, 0:2, :, :] = NLcz g1FB = ZylS.convert_to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MU3M(input, pan_):\n assert input.size() == pan_.size(), 'Input sizes must be equal.'\n assert input.dim() == 4, 'Input must be a 4D Tensor.'\n BFeB = input\n mLGw = BFeB * pan_\n mLGw = ht2j.sum(mLGw, dim=2)\n mLGw = ht2j.sum(mLGw, dim=2)\n Bvty = BFeB * BFeB\n Bvty = ht2j.sum(Bvty, di...
[ "0.7705607", "0.7515411", "0.74742806", "0.74671555", "0.74671555", "0.7153204", "0.70841485", "0.7053653", "0.7004278", "0.6989034", "0.69872504", "0.69872504", "0.69857323", "0.69725215", "0.69555193", "0.69449097", "0.6940763", "0.693332", "0.69067866", "0.6830453", "0.681...
0.6562349
38
Test value error raised if non supported string passed to the single scale loss function.
def kw8E(): mTeF = ZylS.convert_to_tensor(oyIN.zeros((3, 3, 3, 3)), dtype=ZylS.float32) g1FB = ZylS.convert_to_tensor(oyIN.zeros((3, 3, 3, 3)), dtype=ZylS.float32) with trZe.raises(ValueError): UXqs.single_scale_loss(mTeF, g1FB, 'random')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BchQ(YKHO):\n J4Uw = {'scales': YKHO.SCALES, 'metrics': {'metric': {'name': 'Metric', 'description': YKHO.DESCRIPTION, 'scales': ['invalid'], 'sources': ['source']}}}\n YKHO.check_validation_error(\"Metric 'Metric' has invalid scales {'invalid'}\", **J4Uw)", "def N9TB():\n EcVT, LVAh = Y95X()\n N...
[ "0.6991592", "0.65288275", "0.6171503", "0.61637497", "0.61029446", "0.6038106", "0.6038106", "0.60111564", "0.59799725", "0.5971646", "0.5939485", "0.59381616", "0.5921496", "0.5901381", "0.58790076", "0.5871173", "0.5852126", "0.5849656", "0.57822514", "0.5778079", "0.57639...
0.68154144
1
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): print('output size in accuracy,', hlel.size()) Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) print('pred=', nvEb) Ylbp = [] for G1Hx in hz5a: R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003144", "0.7974792", "0.7973687", "0.7941219", "0.78642184", "0.78039354", "0.7707838", "0.76216906", "0.7593254", "0.7561343", "0.7520396", "0.74301255", "0.7412324", "0.7375929", "0.73746765", "0.7321523", "0.7254618", "0.72368574", "0.7228014", "0.72044694", "0.713748...
0.0
-1
Recursively iterates over a dictionary to extract values for a list of keys.
def hbWE(KGvk: dict, D2Vu: list) -> dict: hkxX: dict = {H5ew: [] for H5ew in D2Vu} def TSF4(raTv): if not raTv or not isinstance(raTv, (dict, list)): return if raTv and isinstance(raTv, list): if isinstance(raTv[0], dict): for ZfUD in raTv: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qt2w(H5ew, Csk6):\n if H5ew in Csk6:\n yield Csk6[H5ew]\n for G1Hx in Csk6:\n if isinstance(Csk6[G1Hx], dict):\n for r845 in qt2w(H5ew, Csk6[G1Hx]):\n yield r845", "def qt2w(H5ew, Csk6):\n if H5ew in Csk6:\n yield Csk6[H5ew]\n for G1Hx in Csk6:\n ...
[ "0.7807035", "0.77686167", "0.71174455", "0.709809", "0.6937882", "0.6853276", "0.6788118", "0.6733303", "0.67268425", "0.6664768", "0.6654433", "0.66438234", "0.66389984", "0.6637998", "0.6607334", "0.6598259", "0.6582067", "0.65717864", "0.6556134", "0.65051633", "0.6505163...
0.6263868
35
Returns the last N bar values from the latest_symbol list, or Nk if less available.
def hYmL(YKHO, o61b, ffv6, ywwl=1): raise NotImplementedError('Should implement get_latest_bars_values()')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symbol_data[o61b]\n except KeyError:\n print('That symbol is not available in the historical data set.')\n raise\n else:\n return FSk3[-ywwl:]", "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symb...
[ "0.87041754", "0.87041754", "0.87041754", "0.8666435", "0.8344604", "0.8008073", "0.7962351", "0.7962351", "0.7962351", "0.7883524", "0.7883524", "0.7883524", "0.7841591", "0.7795812", "0.7148745", "0.6988569", "0.6988569", "0.6988569", "0.67680305", "0.66990656", "0.66990656...
0.75544953
14
Returns the last N bars from the latest_symbol list, or Nk if less available.
def f7tr(YKHO, o61b, ywwl=1): try: FSk3 = YKHO.latest_symbol_data[o61b] except KeyError: print('That symbol is not available in the historical data set.') raise else: return FSk3[-ywwl:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symbol_data[o61b]\n except KeyError:\n print('That symbol is not available in the historical data set.')\n raise\n else:\n return FSk3[-ywwl:]", "def f7tr(YKHO, o61b, ywwl=1):\n raise NotImplementedError('Should imp...
[ "0.8862909", "0.8586448", "0.8137814", "0.7953567", "0.7953567", "0.7953567", "0.79199725", "0.76825154", "0.7488819", "0.7488819", "0.7488819", "0.7045124", "0.6684133", "0.6684133", "0.6684133", "0.66638523", "0.66099495", "0.66099495", "0.66099495", "0.6349746", "0.6164928...
0.88978726
0
Returns the last N bar values from the latest_symbol list, or Nk if less available.
def hYmL(YKHO, o61b, fX1C, ywwl=1): try: FSk3 = YKHO.get_latest_bars(o61b, ywwl) except KeyError: print('That symbol is not available in the historical data set.') raise else: return oyIN.array([getattr(S6Fl[1], fX1C) for S6Fl in FSk3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symbol_data[o61b]\n except KeyError:\n print('That symbol is not available in the historical data set.')\n raise\n else:\n return FSk3[-ywwl:]", "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symb...
[ "0.8703126", "0.8703126", "0.8703126", "0.86653924", "0.83437705", "0.8007168", "0.7882489", "0.7882489", "0.7882489", "0.784059", "0.7795105", "0.7554605", "0.71489024", "0.69886756", "0.69886756", "0.69886756", "0.67684853", "0.6697602", "0.6697602", "0.6697602", "0.6505785...
0.7962205
8
Returns the last N bars from the latest_symbol list, or Nk if less available.
def f7tr(YKHO, o61b, ywwl=1): try: FSk3 = YKHO.latest_symbol_data[o61b] except KeyError: print('That symbol is not available in the historical data set.') raise else: return FSk3[-ywwl:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symbol_data[o61b]\n except KeyError:\n print('That symbol is not available in the historical data set.')\n raise\n else:\n return FSk3[-ywwl:]", "def f7tr(YKHO, o61b, ywwl=1):\n raise NotImplementedError('Should imp...
[ "0.8862909", "0.8586448", "0.8137814", "0.7953567", "0.7953567", "0.7953567", "0.79199725", "0.76825154", "0.7488819", "0.7488819", "0.7488819", "0.7045124", "0.6684133", "0.6684133", "0.6684133", "0.66638523", "0.66099495", "0.66099495", "0.66099495", "0.6349746", "0.6164928...
0.88978726
1
Returns the last N bar values from the latest_symbol list, or Nk if less available.
def hYmL(YKHO, o61b, fX1C, ywwl=1): try: FSk3 = YKHO.get_latest_bars(o61b, ywwl) except KeyError: print('That symbol is not available in the historical data set.') raise else: return oyIN.array([getattr(S6Fl[1], fX1C) for S6Fl in FSk3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symbol_data[o61b]\n except KeyError:\n print('That symbol is not available in the historical data set.')\n raise\n else:\n return FSk3[-ywwl:]", "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symb...
[ "0.87041754", "0.87041754", "0.87041754", "0.8666435", "0.8344604", "0.8008073", "0.7883524", "0.7883524", "0.7883524", "0.7841591", "0.7795812", "0.75544953", "0.7148745", "0.6988569", "0.6988569", "0.6988569", "0.67680305", "0.66990656", "0.66990656", "0.66990656", "0.65052...
0.7962351
7
Converts date to string format "%Y%M%D"
def yf2C(YKHO, _c1T): return _c1T.strftime('%Y%m%d')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Net5(_c1T):\n return _c1T.strftime('%Y-%m-%d')", "def Net5(Csk6: datetime.date) -> str:\n return f'{Csk6.year}-{Csk6.month:02}-{Csk6.day:02}'", "def _952(_c1T: datetime) -> str:\n return _c1T.strftime('%Y%m%d')", "def pbww(_c1T):\n return _c1T.strftime('%Y-%m-%d')", "def Az1k(_c1T):\n if...
[ "0.83709365", "0.8347754", "0.8230018", "0.7990766", "0.7912754", "0.7884455", "0.7736552", "0.7702737", "0.7702379", "0.7672407", "0.766831", "0.7652265", "0.76161534", "0.75454843", "0.7514336", "0.7488692", "0.74785626", "0.7470806", "0.74612105", "0.74467355", "0.74423057...
0.8550873
0
Returns the last N bars from the latest_symbol list, or Nk if less available.
def f7tr(YKHO, o61b, ywwl=1): try: FSk3 = YKHO.latest_symbol_data[o61b] except KeyError: print('That symbol is not available in the historical data set.') raise else: return FSk3[-ywwl:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symbol_data[o61b]\n except KeyError:\n print('That symbol is not available in the historical data set.')\n raise\n else:\n return FSk3[-ywwl:]", "def f7tr(YKHO, o61b, ywwl=1):\n raise NotImplementedError('Should imp...
[ "0.8862224", "0.858628", "0.8139856", "0.7952208", "0.7952208", "0.7952208", "0.7918719", "0.76810324", "0.74876386", "0.74876386", "0.74876386", "0.7044297", "0.66825825", "0.66825825", "0.66825825", "0.6662188", "0.6608298", "0.6608298", "0.6608298", "0.63473773", "0.616316...
0.8897162
2
Returns the last N bar values from the latest_symbol list, or Nk if less available.
def hYmL(YKHO, o61b, fX1C, ywwl=1): try: FSk3 = YKHO.get_latest_bars(o61b, ywwl) except KeyError: print('That symbol is not available in the historical data set.') raise else: return oyIN.array([getattr(S6Fl[1], fX1C) for S6Fl in FSk3])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symbol_data[o61b]\n except KeyError:\n print('That symbol is not available in the historical data set.')\n raise\n else:\n return FSk3[-ywwl:]", "def f7tr(YKHO, o61b, ywwl=1):\n try:\n FSk3 = YKHO.latest_symb...
[ "0.8703126", "0.8703126", "0.8703126", "0.86653924", "0.83437705", "0.8007168", "0.7882489", "0.7882489", "0.7882489", "0.784059", "0.7795105", "0.7554605", "0.71489024", "0.69886756", "0.69886756", "0.69886756", "0.67684853", "0.6697602", "0.6697602", "0.6697602", "0.6505785...
0.7962205
6
r"""Calculates the adjugate matrix of A. The resulting matrix is defined by
def X101(k0lF): k0lF = oyIN.asarray(k0lF) ldZa(k0lF) exwG = k0lF.shape[-1] if exwG <= 1: return k0lF if exwG == 2: Aofo = k0lF[..., [[1, 0], [1, 0]], [[1, 1], [0, 0]]] Aofo[..., [0, 1], [1, 0]] *= -1 return Aofo if exwG >= 5 or k0lF.size >= exwG * exwG * 64: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X101(k0lF: npt.ArrayLike) -> oyIN.ndarray:\n k0lF = oyIN.asarray(k0lF)\n ldZa(k0lF)\n exwG = k0lF.shape[-1]\n if exwG == 2:\n Aofo = k0lF[..., [[1, 0], [1, 0]], [[1, 1], [0, 0]]]\n Aofo[..., [0, 1], [1, 0]] *= -1\n return Aofo\n if exwG >= 5 or k0lF.size >= exwG * exwG * 64:...
[ "0.72992635", "0.7119485", "0.7065638", "0.7035321", "0.70235986", "0.69363785", "0.6888922", "0.687566", "0.68511605", "0.67095417", "0.6701792", "0.6650208", "0.65619016", "0.6529211", "0.6507612", "0.6483983", "0.6465547", "0.6455486", "0.6441029", "0.643817", "0.6415134",...
0.714659
1
Returns the maximum stir motor speed
def YXi9(YKHO): return 800
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vk76(YKHO):\n return YKHO.__drone_max_speed", "def HWhh(YKHO):\n return 2 * epAf.pi * gTaq * (18730 * (1 / 60) / n6nx)", "def jGJh(YKHO):\n return YKHO.__pirate_max_speed", "def W_k7(YKHO, v_h6):\n if YKHO._fixed_speed or v_h6 < 3.0:\n return 0.01\n else:\n return v_h6 / YKHO...
[ "0.8268759", "0.81097895", "0.7806301", "0.76454824", "0.7490467", "0.73488814", "0.7330466", "0.7260265", "0.7259377", "0.7213673", "0.7155632", "0.71315134", "0.71211016", "0.70780843", "0.703573", "0.6977858", "0.6970049", "0.6923467", "0.690665", "0.6850017", "0.68297637"...
0.80846965
2
Returns the current stir motor speed
def sLU3(YKHO, LmLT=True): if LmLT: return YKHO.protectedReturn1(YKHO.getCurrentSpeed) else: return YKHO.stirSpeed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Az_2(YKHO):\n YKHO.send('?5')\n return YKHO.ser.readline()", "def BqPG(YKHO):\n return YKHO._inverter.get_current_speed()", "def iBLD(YKHO):\n return YKHO.named.data.sensordata['torso_subtreelinvel'][0]", "def iBLD(YKHO):\n return YKHO.motor_speed * YKHO.circumference * YKHO.unit / YKHO.st...
[ "0.81352264", "0.8071699", "0.8059545", "0.8057952", "0.80452436", "0.80393565", "0.80393565", "0.8005405", "0.80025154", "0.7963293", "0.79569405", "0.7870285", "0.7843962", "0.7843962", "0.7761832", "0.7720192", "0.7704713", "0.7658577", "0.7638302", "0.75853354", "0.758455...
0.7709169
16
Gets access token for API testing
def VgoY(): bD7m = 'https://bigfirmadvisors.auth0.com/oauth/token' Mkmy = G4JS.post(bD7m, json={'grant_type': 'client_credentials', 'client_id': 'SjsSCo3x1r9YguHMeYZbKaHw4Q8hiPVg', 'client_secret': 'Y3TL8fhIqnjrAfDwdwbytjjKQhmqL-veV0mc0o1-4uDvdXt7DTioNUBmthjx8VVM', 'audience': 'bfa-restricted-api'}) F0em = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VgoY():\n pass", "def GEYJ(YKHO):\n pass", "def gNTt(YKHO):\n bD7m = gxEw('obtain_jwt')\n NT__ = YKHO.client.post(bD7m, {'email': YKHO.user.email, 'password': o3Wp}, format='json').data['access']\n YKHO.client.credentials(HTTP_AUTHORIZATION='Bearer ' + NT__)", "def GEYJ(YKHO):\n wy4N = ...
[ "0.8648136", "0.85007936", "0.8102442", "0.80045307", "0.79697824", "0.7965638", "0.7872042", "0.7861723", "0.78373826", "0.77783614", "0.77411026", "0.772606", "0.7717535", "0.7680199", "0.7672439", "0.7623208", "0.76137954", "0.75921285", "0.7584744", "0.7560101", "0.755528...
0.7383276
33
Returns the total mass in g/mol.
def Dfj8(YKHO): try: bMbF = YKHO[:, 'mass'].sum() except KeyError: hXS8 = YKHO.add_data('mass') bMbF = hXS8[:, 'mass'].sum() return bMbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def faJP(YKHO):\n return YKHO.mass", "def xfBV(YKHO):\n return YKHO.combined_gravity.particles.mass.sum()", "def faJP(YKHO):\n pass", "def Dfj8(YKHO):\n return YKHO.car_mass + YKHO.pax_count * 70", "def faJP(YKHO):\n yaaC = 0\n for a70H in YKHO.persons:\n yaaC = yaaC + a70H.getTota...
[ "0.85042864", "0.83429956", "0.82871145", "0.8270018", "0.7904196", "0.78707516", "0.7829118", "0.77711177", "0.7753299", "0.76447123", "0.76302826", "0.7603375", "0.75577444", "0.75577444", "0.74975413", "0.74855626", "0.74746424", "0.7363917", "0.73587644", "0.73277926", "0...
0.8118867
4
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.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, Jr8L): return True return YKHO.to_dict() != Elif.to_dict()
{ "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
Creates a copy of the original model and its layers
def kgna(Emd4, C3ST, AHm_): K2_r = jth9.deepcopy(C3ST) X8c9 = {} KiRR = list(K2_r.modules()) for d6pt, yR_P in enumerate(C3ST.modules()): if id(yR_P) in AHm_: VI2B = AHm_[id(yR_P)] mk8e = x92o.Layer(KiRR[d6pt], VI2B.name, VI2B.output_shape) mk8e.picked_for_com...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DQCz(YKHO):\n GlXl = YKHO._model.to_json()\n ZylS.keras.backend.clear_session()\n YKHO._model = ZylS.keras.models.model_from_json(GlXl)\n YKHO._load_weights_from_state_dict()", "def ddSu(VlDb):\n wJ4v = ZylS.keras.models.clone_model(VlDb)\n for zXzD, i3ak in zip(VlDb.trainable_variables, wJ...
[ "0.75637877", "0.7536728", "0.73071754", "0.72017354", "0.7099031", "0.7095696", "0.70441604", "0.7028004", "0.70235837", "0.6969524", "0.69538134", "0.6909265", "0.69062334", "0.6863865", "0.6847721", "0.6763451", "0.6709846", "0.6691443", "0.66435444", "0.6639533", "0.66231...
0.8283532
0
Load a JPEG file and return an Image object
def Ee8t(FYKK): LNo8 = hnIv.open(FYKK) return LNo8.convert(mode='RGBA')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sErx(pmON):\n LNo8 = hiw8.imread(pmON)\n return LNo8", "def DZ0a(Ux0P):\n return hnIv.open(Ux0P)", "def O1MR(YKHO):\n with ZylS.gfile.FastGFile(YKHO.filepath, 'rb') as eHNT:\n THdc = eHNT.read()\n try:\n LNo8 = YKHO._image_helper.decode_jpeg(THdc)\n except (ZylS....
[ "0.80394304", "0.7662223", "0.75967", "0.7588336", "0.75609404", "0.7551143", "0.7506792", "0.7458962", "0.7428418", "0.74189454", "0.74105257", "0.73386645", "0.7302998", "0.7269518", "0.72105753", "0.7209314", "0.7171431", "0.70861524", "0.7071918", "0.70692945", "0.7044242...
0.7747429
1
Log Errors caused by Updates.
def P1dF(JyK9, QdZT, P1dF): bo34.warning('Update "%s" caused error "%s"', QdZT, P1dF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)", "def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')", "def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err...
[ "0.7897143", "0.7886391", "0.7878073", "0.78757316", "0.7832897", "0.7791798", "0.7787711", "0.7786072", "0.7786072", "0.7786072", "0.7786072", "0.7786072", "0.7783898", "0.7766397", "0.7748688", "0.7748688", "0.7748688", "0.7748688", "0.7748688", "0.7748688", "0.7748688", ...
0.75371474
82
Push element x onto stack.
def _jXH(YKHO, WKvO): YKHO.q1.push(WKvO) YKHO._top = WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.in_stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n ycBG = S9Ut()\n while not YKHO.stack.empty():\n U6D_ = YKHO.stack.pop()\n ycBG.push(U6D_)\n YKHO.stack.push(WKvO)\n while not ycBG.empty():\n U6D_ = ycBG.pop()\n YKHO.stack.push(U6D_)\n ret...
[ "0.8884891", "0.88815904", "0.8851905", "0.8829994", "0.8825823", "0.87915844", "0.8784638", "0.8781226", "0.8723327", "0.87200546", "0.87101483", "0.8696664", "0.86889726", "0.8672952", "0.86561507", "0.86259526", "0.8610324", "0.86102635", "0.860013", "0.860013", "0.8581793...
0.78000855
48
Removes the element on top of the stack and returns that element.
def BEuN(YKHO): if YKHO.empty(): return None Vbem = YKHO._top while YKHO.q1.size() > 1: YKHO._top = YKHO.q1.pop() YKHO.q2.push(YKHO._top) YKHO.q1.pop() YKHO.q1, YKHO.q2 = (YKHO.q2, YKHO.q1) return Vbem
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN():\n global top\n if A4KR():\n return None\n U6D_ = E5BI[tlxW]\n E5BI[tlxW] = None\n BAMb[tlxW] = None\n tlxW -= 1\n return U6D_", "def BEuN(E5BI):\n LihS = E5BI.elements[-1]\n del E5BI.elements[-1]\n return LihS", "def BEuN(YKHO):\n ZfUD = YKHO.stack.pop()\n ...
[ "0.83285564", "0.82814056", "0.8210085", "0.81704277", "0.81349236", "0.8095011", "0.8064679", "0.8016918", "0.7953157", "0.7943855", "0.793094", "0.78770566", "0.7872679", "0.7850065", "0.7826401", "0.77995974", "0.77936834", "0.77862775", "0.7773103", "0.7773103", "0.777310...
0.0
-1
Returns whether the stack is empty.
def lsmZ(YKHO): return YKHO.q1.size() + YKHO.q2.size() <= 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def A4K...
[ "0.9126978", "0.9126978", "0.90876496", "0.90876496", "0.90876496", "0.9052944", "0.9015707", "0.9015707", "0.9006567", "0.8951908", "0.89479893", "0.89479893", "0.893664", "0.89354557", "0.89204985", "0.8882804", "0.8874094", "0.8868284", "0.88425523", "0.8795274", "0.879193...
0.0
-1
os.path.join() + os.path.abspath() to return only linux path string, that means replace '\\' with '/'
def HNwx(*ckRy) -> str: return Hy7s.path.abspath(Hy7s.path.join(*ckRy)).replace('\\', '/')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTvx(pmON):\n return '/'.join(pmON.split('\\\\'))", "def zR6r(U0tv):\n return str(U0tv.replace('\\\\', '/'))", "def xgnN(pmON):\n ddn9 = Qumu.join(*pmON.split(Hy7s.path.sep))\n if pmON.startswith('/'):\n ddn9 = '/' + ddn9\n elif pmON.startswith('\\\\\\\\'):\n ddn9 = '//' + ddn9...
[ "0.7825296", "0.7704297", "0.75792056", "0.7544563", "0.7455639", "0.73212314", "0.7093834", "0.70587677", "0.7056772", "0.6988889", "0.69785887", "0.69585663", "0.69383776", "0.6929069", "0.6901351", "0.68932605", "0.6864982", "0.6861615", "0.682378", "0.68168056", "0.681321...
0.7485091
4
os.path.join() to return only linux path string, that means replace '\\' with '/'
def zOLB(*ckRy) -> str: return Hy7s.path.join(*ckRy).replace('\\', '/')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTvx(pmON):\n return '/'.join(pmON.split('\\\\'))", "def xgnN(pmON):\n ddn9 = Qumu.join(*pmON.split(Hy7s.path.sep))\n if pmON.startswith('/'):\n ddn9 = '/' + ddn9\n elif pmON.startswith('\\\\\\\\'):\n ddn9 = '//' + ddn9\n return ddn9", "def Ja5X(jzdc, Fg_i):\n return Hy7s.pa...
[ "0.782781", "0.78256834", "0.775596", "0.7646024", "0.742205", "0.7411142", "0.73773116", "0.72683376", "0.72653764", "0.72315663", "0.70489764", "0.7039392", "0.7003254", "0.6997401", "0.69010776", "0.68947977", "0.6875104", "0.68452024", "0.6839253", "0.68108916", "0.678955...
0.735696
7
return the first index of item in array or None if item is not found
def TrX4(qw7D, ZfUD): return KLuI(qw7D, ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VkCx(qw7D: np.ndarray, ZfUD: typing.Any) -> laHg.Optional[laHg.Tuple[int, ...]]:\n for or8S, wEf2 in oyIN.ndenumerate(qw7D):\n if wEf2 == ZfUD:\n return or8S\n return None", "def Ajkz(qw7D, TgwQ):\n for YRbF in range(len(qw7D)):\n if qw7D[YRbF] == TgwQ:\n return Y...
[ "0.8049524", "0.7879003", "0.7520308", "0.74792534", "0.72896516", "0.7265537", "0.7200986", "0.7121236", "0.71074677", "0.7062521", "0.7061531", "0.7036716", "0.7007832", "0.6956897", "0.69341177", "0.6898606", "0.68875253", "0.6861785", "0.6855468", "0.6834385", "0.6821456"...
0.0
-1
return the index of item in sorted array or None if item is not found
def jUbz(qw7D, ZfUD): return aHV3(qw7D, ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ajkz(qw7D, TgwQ):\n for YRbF in range(len(qw7D)):\n if qw7D[YRbF] == TgwQ:\n return YRbF\n return None", "def neBz(YKHO, ZfUD):\n for YRbF in range(YKHO.length):\n if YKHO.A[YRbF] == ZfUD:\n return YRbF\n return -1", "def TrX4(ezWE, H5ew):\n for YRbF in ra...
[ "0.7619956", "0.7421778", "0.73096", "0.72813547", "0.7226776", "0.7105268", "0.70956475", "0.70879745", "0.7083054", "0.70596206", "0.7037102", "0.7012005", "0.7011952", "0.7011172", "0.700838", "0.69936824", "0.69776636", "0.69340295", "0.6926639", "0.6918757", "0.688236", ...
0.0
-1
Removes the HTML tag from an HTML string.
def JZhs(KCHu: str) -> str: return ZbWC.sub('<[^>]+>', '', KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)", "def BP2x(WEtT):\n oVDR = ZbWC.compile('<.*?>')\n AiG_ = ZbWC.sub(oVDR, '', WEtT)\n return AiG_", "def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)", "def t5Yq(WEtT):\n na1r.de...
[ "0.80340135", "0.80202734", "0.7919624", "0.7912016", "0.79103625", "0.7907506", "0.78346616", "0.78346616", "0.77921844", "0.77921844", "0.77921844", "0.77921844", "0.77921844", "0.77921844", "0.7772054", "0.7754825", "0.7754825", "0.7754825", "0.7720124", "0.7718541", "0.76...
0.79087615
5
Removes the HTML sequences.
def f6tw(KCHu: str) -> str: return ZbWC.sub('[&].*;', '', KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rKep(_R2e):\n kUBT = g9Pn.search(_R2e)\n if kUBT:\n _R2e = _R2e[kUBT.end():]\n kUBT = gPmh.search(_R2e)\n if kUBT:\n _R2e = _R2e[:kUBT.start()]\n _R2e = RhJD.sub('', _R2e)\n return _R2e", "def jMK1(YKHO, _R2e):\n return _R2e", "def rKep(Emd4, _R2e):\n mz1x = ''\n wh...
[ "0.73827493", "0.73424447", "0.72616994", "0.7191802", "0.7037538", "0.6881922", "0.67822206", "0.66818905", "0.662891", "0.65520155", "0.6489489", "0.64873743", "0.64667803", "0.6460652", "0.64359045", "0.642008", "0.6420072", "0.6420053", "0.63994664", "0.63929504", "0.6371...
0.0
-1
Method to get image data as np.array specifying image id and type
def XbaV(r8m5, i6XV): IznC = yFjF(r8m5, i6XV) VXjJ = XC5k.imread(IznC) assert VXjJ is not None, 'Failed to read image : %s, %s' % (r8m5, i6XV) VXjJ = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2RGB) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aeHF(YKHO, r8m5=None, LxxZ=None):\n _31e = YKHO.get_image_pil(image_id=r8m5, ann_id=LxxZ)\n return oyIN.asarray(_31e)", "def XbaV(r8m5, i6XV, iDZL=False):\n IznC = yFjF(r8m5, i6XV)\n VXjJ = MDcw.Open(IznC, s0do.GA_ReadOnly)\n assert VXjJ, 'Image is not found: id={}, type={}'.format(r8m5, i6XV)...
[ "0.7633794", "0.73151004", "0.7241877", "0.72381973", "0.7228564", "0.7094239", "0.7019651", "0.7012469", "0.6996897", "0.69884986", "0.6983422", "0.694817", "0.6933339", "0.6839815", "0.67657495", "0.6736711", "0.6719287", "0.6716737", "0.668543", "0.6679399", "0.6671111", ...
0.7189705
5
Return the categories' display name, including their direct parent by default. If ``context['partner_category_display']`` is ``'short'``, the short version of the category name (without the direct parent) is used. The default is the long version.
def jgEY(YKHO): if YKHO._context.get('base_category_display') == 'short': return super(SvZp, YKHO).name_get() Ylbp = [] for ACia in YKHO: ZWCE = [] jvSB = ACia while jvSB: ZWCE.append(jvSB.name) jvSB = jvSB.parent_id Ylbp.append((ACia.id, ' / '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DzeR(YKHO):\n return YKHO.category.name", "def DzeR(YKHO):\n return ', '.join((Ghho.name for Ghho in YKHO.category.all()[:3]))", "def DzeR(YKHO):\n return ', '.join((Ghho.name for Ghho in YKHO.category.all()[:3]))", "def DzeR(YKHO):\n return ', '.join((Ghho.name for Ghho in YKHO.category.all(...
[ "0.69432807", "0.6428005", "0.6428005", "0.63219553", "0.627614", "0.6183775", "0.6118993", "0.6039896", "0.60198313", "0.59252375", "0.5920965", "0.5907816", "0.58760697", "0.584119", "0.5839049", "0.580419", "0.5794651", "0.577194", "0.5767227", "0.5746286", "0.57429904", ...
0.6612198
1
Sets the search_text of this GetProductsRequest.
def VpMt(YKHO, VpMt): YKHO._search_text = VpMt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V39m(YKHO, l5Ny):\n YKHO.search_term = l5Ny\n YKHO.update_list()", "def Sy_8(YKHO, zsLA: str=None) -> w6BN:\n YKHO._text_query: str = zsLA\n return YKHO", "def Sy_8(YKHO, VpMt, umWR):\n umWR = umWR.filter(T8ck(T8ck(product_SKU__icontains=VpMt) | T8ck(product_asin__icontains=VpMt) | T8ck(prod...
[ "0.74875194", "0.6698861", "0.64884156", "0.6328128", "0.63064426", "0.6302947", "0.6186624", "0.60774976", "0.6073372", "0.59879214", "0.59766513", "0.5957515", "0.59524924", "0.5900542", "0.5857268", "0.58232486", "0.5789894", "0.5770643", "0.57633525", "0.5758793", "0.5753...
0.7668284
0
Sets the category_ids of this GetProductsRequest.
def V9Rs(YKHO, V9Rs): YKHO._category_ids = V9Rs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt", "def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt", "def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt", "def eP5z(YKHO):\n ERl3 = 150\n Qngp = 1000\n tGp5 = 1000\n NVWf = 6\n print('### Start Categories Selection ###')\n LeZt = YKHO._...
[ "0.59690857", "0.59690857", "0.59690857", "0.5917566", "0.5840938", "0.58278155", "0.567765", "0.566821", "0.55520153", "0.5224629", "0.5208226", "0.5176696", "0.51317453", "0.51287043", "0.5098518", "0.5054078", "0.501586", "0.50020516", "0.49834514", "0.49703228", "0.497032...
0.7453651
1
Sets the sub_category_ids of this GetProductsRequest.
def sXMK(YKHO, sXMK): YKHO._sub_category_ids = sXMK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MctT(YKHO, MctT):\n YKHO._subcategory = MctT", "def dZQx(YKHO, VF0C):\n YKHO.subcategory = VF0C", "def V9Rs(YKHO, V9Rs):\n YKHO._category_ids = V9Rs", "def V9Rs(YKHO, V9Rs):\n YKHO._category_ids = V9Rs", "def Xj5_(YKHO, Xj5_):\n YKHO._subtasks_uids = Xj5_", "def V1Lh(YKHO, V1Lh):\n ...
[ "0.6241541", "0.6082837", "0.5790734", "0.5790734", "0.56762576", "0.5546636", "0.5457743", "0.5314007", "0.5061693", "0.50551337", "0.50551337", "0.5031246", "0.50201684", "0.4973811", "0.4946901", "0.49423972", "0.48881483", "0.48736325", "0.48485097", "0.48436716", "0.4842...
0.8204118
0
Sets the sell_online of this GetProductsRequest.
def Hbst(YKHO, Hbst): YKHO._sell_online = Hbst
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r7mD(YKHO, r7mD):\n YKHO._strong_sell = r7mD", "def upfR(YKHO, upfR):\n YKHO._sell_start = upfR", "def rZY6(YKHO):\n YKHO.offer = YKHO.sell('market', 0, 'cookies', YKHO.possession('cookies'), YKHO.price)", "def ZBqQ(YKHO, ZBqQ):\n YKHO._sell = ZBqQ", "def ZBqQ(YKHO):\n YKHO.sold = True\n...
[ "0.6215414", "0.60618186", "0.5907199", "0.5863372", "0.5519863", "0.53382814", "0.5332663", "0.5278879", "0.5257275", "0.5226212", "0.52197367", "0.5215858", "0.5215858", "0.5192869", "0.51721185", "0.5167589", "0.51631355", "0.5130943", "0.507849", "0.5060057", "0.50430536"...
0.82898045
0
Sets the location_id of this GetProductsRequest.
def qcmx(YKHO, qcmx): YKHO._location_id = qcmx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qcmx(YKHO, qcmx):\n if qcmx is None:\n raise ValueError('Invalid value for `location_id`, must not be `None`')\n YKHO._location_id = qcmx", "def Tcyx(YKHO, c1xt):\n if not c1xt:\n raise XVjE('Error: ConsentToken: Null location ID.')\n YKHO.__locationID = c1xt", "def snx0(YKHO, snx...
[ "0.63747513", "0.61926275", "0.5958817", "0.58272624", "0.5741816", "0.5715759", "0.5713139", "0.567638", "0.56727445", "0.56727445", "0.56727445", "0.56727445", "0.56727445", "0.56727445", "0.56727445", "0.56727445", "0.56727445", "0.56727445", "0.56727445", "0.5663462", "0....
0.7096102
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
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.83920443", "0.83544874", "0.8294375", "0.8131804", "0.8114275", "0.8099284", "0.8098424", "0.8097017", "0.8097017", "0.80916125", "0.80916125", "0.80916125", "0.80916125", "0.8084362", "0.8084362", "0.8084362", "0.8084362", "0.8084362", "0.80659354", "0.805918", "0.8056744...
0.0
-1
Starts the loop of the window
def yKcO(YKHO): YKHO.__root.mainloop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lGbz(YKHO):\n YKHO.window.mainloop()", "def Z2S3(YKHO):\n YKHO.loop()", "def b8V_(YKHO):\n bo34.info('Start window')\n while not YKHO.done:\n YKHO.dt = YKHO.clock.tick(kDnD) / 1000\n YKHO.events()\n YKHO.run()\n g74T.display.update()", "def d9lM(YKHO):\n while T...
[ "0.82827526", "0.80020773", "0.7896845", "0.76583153", "0.7626817", "0.75862926", "0.7569406", "0.7449941", "0.74470747", "0.7431824", "0.7388029", "0.72712886", "0.7258341", "0.7208229", "0.7206934", "0.7206934", "0.71847546", "0.71572614", "0.71533877", "0.71003073", "0.710...
0.7102335
19
Get the title of the item, or the custom title if set.
def Upwb(YKHO, ZfUD): leAC = ZfUD.Title() qxeD = YKHO.get_uuid(ZfUD) hFVC = muWF(YKHO) nPrm = hFVC.get() jEHC = nPrm['uuids'] if qxeD in jEHC: if jEHC[qxeD].get('custom_title', u''): leAC = jEHC[qxeD].get('custom_title') return leAC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DyWM(YKHO, ZfUD):\n return ZfUD.title", "def lWRK(YKHO, ZfUD):\n return None", "def lWRK(YKHO, ZfUD):\n return None", "def leAC(YKHO) -> str:\n return YKHO._item.get('title')", "def leAC(YKHO):\n return YKHO._item.get('title')", "def XIus(YKHO):\n return YKHO.item().title()", "def...
[ "0.85409886", "0.826002", "0.82248795", "0.8180005", "0.81248057", "0.8094469", "0.7998467", "0.79811263", "0.7877964", "0.7764016", "0.7737916", "0.77315676", "0.77315676", "0.77315676", "0.77315676", "0.77315676", "0.77096826", "0.7697169", "0.76838785", "0.7677958", "0.767...
0.85403144
1
Get the description of the item, or the custom description if set.
def t5do(YKHO, ZfUD): JBZA = ZfUD.Description() qxeD = YKHO.get_uuid(ZfUD) hFVC = muWF(YKHO) nPrm = hFVC.get() jEHC = nPrm['uuids'] if qxeD in jEHC: if jEHC[qxeD].get('custom_description', u''): JBZA = jEHC[qxeD].get('custom_description') return JBZA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t5do(YKHO, **B2fa):\n ZfUD = B2fa.get('item')\n return ZfUD.name if ZfUD else ''", "def QntV(YKHO, ZfUD):\n return None", "def KUG7(YKHO, f3fv):\n if f3fv in YKHO.itemDescriptions:\n return YKHO.itemDescriptions[f3fv]\n else:\n return None", "def QntV(YKHO, ZfUD):\n return...
[ "0.8252927", "0.81541556", "0.8094251", "0.809126", "0.8089415", "0.78913677", "0.78913677", "0.7825033", "0.76941663", "0.7529917", "0.7529917", "0.7529917", "0.7529917", "0.7529917", "0.7529917", "0.7529917", "0.7529917", "0.7529917", "0.7529917", "0.7529917", "0.7529917", ...
0.8298011
0
rank using SchreierSims representation The coset rank of `g` is the ordering number in which it appears in the lexicographic listing according to the coset decomposition, see coset_decomposition; the ordering is the same as in G.generate(method='coset'). If `g` does not belong to the group it returns None Examples ====...
def I71V(YKHO, Oa1e): P6bq = YKHO.coset_repr() if isinstance(Oa1e, HJa_): Oa1e = Oa1e.array_form IZ6w = Oa1e r8hN = len(P6bq) jzdc = [] R2Dr = YKHO._coset_repr_n exwG = YKHO.degree fdMZ = 0 P8oC = [1] for YRbF in R2Dr[r8hN:0:-1]: P8oC.append(P8oC[-1] * YRbF) P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w3g2(YKHO, fdMZ, fmAV=False):\n P6bq = YKHO.coset_repr()\n if fdMZ < 0 or fdMZ >= YKHO.order():\n return None\n R2Dr = YKHO._coset_repr_n\n P8oC = YKHO._base\n r8hN = len(P6bq)\n GPal = len(P8oC)\n assert GPal == len(R2Dr)\n Ty9i = [0] * r8hN\n for YRbF in range(GPal - 1, -1, ...
[ "0.60002536", "0.60002536", "0.5810744", "0.5800727", "0.577067", "0.57578313", "0.57435113", "0.56912696", "0.5670666", "0.56250393", "0.556108", "0.55556446", "0.5552935", "0.55507976", "0.5517647", "0.5509764", "0.5504913", "0.5417654", "0.5414499", "0.5413089", "0.5401273...
0.8281292
0
returns the euclidean distance between 2 points
def Dm2A(o4D3, si3g, ajwV, skBL): return PZyS(pow(o4D3 - ajwV, 2) + pow(si3g - skBL, 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gvwv(fJfP, hWOy):\n return oyIN.sqrt((fJfP[0] - hWOy[0]) ** 2 + (fJfP[1] - hWOy[1]) ** 2)", "def L2vP(YKHO, lCHq, ANJu):\n return oyIN.sqrt(oyIN.sum(oyIN.square(lCHq - ANJu)))", "def Dm2A(YKHO, lCHq, ANJu):\n Jw7X = abs(lCHq[0] - ANJu[0])\n eUWA = abs(lCHq[1] - ANJu[1])\n return Jw7X * Jw7X ...
[ "0.8819016", "0.880479", "0.8760257", "0.8674737", "0.8660934", "0.86539745", "0.8653264", "0.86221844", "0.85952336", "0.8594503", "0.8585225", "0.8582298", "0.8573962", "0.8567307", "0.8529692", "0.85227144", "0.8502512", "0.8500927", "0.84947187", "0.84605646", "0.8446957"...
0.87396085
3
Calculated the exponentially weighted moving average. Used is RSI.
def rmf4(zZcM: Union[List[float], float], pQ4c: int, S8vG: Optional[float]=None) -> float: Cwt5 = round(1 / pQ4c, 2) if type(zZcM) == list: return fnhM.sma(src=zZcM, period=pQ4c) if S8vG is None: raise AG_L(f'Average must be provided for calculating rma from a single src value') return C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIP3(YKHO, dy_H, Cwt5):\n _mSQ = oyIN.array([(1 - Cwt5) ** YRbF for YRbF in range(YKHO.window)])\n return (dy_H.ix[-YKHO.window:] * _mSQ).sum()", "def S8vG(YKHO):\n yvT9 = YKHO.sums / YKHO.weights\n return yvT9", "def yh8I(YKHO):\n if YKHO.n < 0:\n YKHO.n = 0\n uWRS = YKHO.queue[in...
[ "0.7152149", "0.6828071", "0.6789538", "0.67079145", "0.666863", "0.6597245", "0.6596906", "0.65552235", "0.6504335", "0.64895934", "0.6452258", "0.6439179", "0.64336795", "0.6430594", "0.6424434", "0.6422735", "0.63952774", "0.6394457", "0.63910687", "0.63673115", "0.635139"...
0.0
-1
Definition to simplify calc_phi_m_tot (C.6) in [C.3 ISO 13790]
def aI6A(YKHO): return 1.0 / (1.0 / YKHO.h_ve_adj + 1.0 / YKHO.h_tr_is)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4Nc(YKHO, mihG):\n ak4w = mihG\n YKHO.phi_m_tot = YKHO.phi_m + YKHO.h_tr_em * mihG + YKHO.h_tr_3 * (YKHO.phi_st + YKHO.h_tr_w * mihG + YKHO.h_tr_1 * (YKHO.phi_ia / YKHO.h_ve_adj + ak4w)) / YKHO.h_tr_2", "def wTkI(UYZk, Hrf7):\n yGTL = Hrf7[0]\n WKvO = Hrf7[1]\n rVnq = UYZk * r8hN.exp(-yGTL * ...
[ "0.72322106", "0.71654147", "0.6877054", "0.6788934", "0.6721891", "0.6514492", "0.6495487", "0.64547074", "0.64388067", "0.6347863", "0.63233787", "0.6301355", "0.6286749", "0.6273406", "0.62664974", "0.62636554", "0.6234726", "0.6227858", "0.6194282", "0.61879677", "0.61870...
0.0
-1
Definition to simplify calc_phi_m_tot (C.7) in [C.3 ISO 13790]
def zF3R(YKHO): return YKHO.h_tr_1 + YKHO.h_tr_w
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i4Nc(YKHO, mihG):\n ak4w = mihG\n YKHO.phi_m_tot = YKHO.phi_m + YKHO.h_tr_em * mihG + YKHO.h_tr_3 * (YKHO.phi_st + YKHO.h_tr_w * mihG + YKHO.h_tr_1 * (YKHO.phi_ia / YKHO.h_ve_adj + ak4w)) / YKHO.h_tr_2", "def wTkI(UYZk, Hrf7):\n yGTL = Hrf7[0]\n WKvO = Hrf7[1]\n rVnq = UYZk * r8hN.exp(-yGTL * ...
[ "0.72254795", "0.71635944", "0.6883193", "0.68260753", "0.6706069", "0.6501705", "0.65008104", "0.648807", "0.6479503", "0.6346392", "0.63210684", "0.63165903", "0.6258417", "0.625654", "0.6254448", "0.6252635", "0.62309057", "0.6213829", "0.6210225", "0.62087685", "0.6208262...
0.0
-1