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
Compute the shortest distance from rectangle to box.
def x5ec(RyEL, J3u_, kvXL, NK98, zNig, _hZ2=1e-06): yHH9, Aofo = trys(RyEL, J3u_, kvXL, NK98, zNig, epsilon=_hZ2) if yHH9: return Aofo return DKP1(RyEL, J3u_, kvXL, NK98, zNig, _hZ2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ioSO(Fyji):\n Tm2h = CB2e.width\n for XSoh in INnG:\n Ayfi = 0\n AAbN = CB2e.get_target(Fyji, XSoh)\n while AAbN.owner == LsVB and Ayfi <= 20:\n AAbN = CB2e.get_target(AAbN, XSoh)\n Ayfi += 1\n Tm2h = min(Ayfi, Tm2h)\n return Tm2h", "def iQin(YKHO, F...
[ "0.64434683", "0.63926375", "0.63105494", "0.6300663", "0.62935776", "0.618947", "0.60171485", "0.5983004", "0.59779495", "0.59763134", "0.5859211", "0.5856607", "0.5853212", "0.58125705", "0.57623726", "0.5756798", "0.5737192", "0.5709494", "0.5659299", "0.5657643", "0.56532...
0.0
-1
Get the text inside some element without any tags.
def RbNx(YKHO, LihS): if isinstance(LihS, OhYN): l5Ny = [] for a0E5 in LihS: l5Ny.append(YKHO._text_of(a0E5)) return ' '.join(l5Ny) else: return LihS.string
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gFHi(U6D_):\n return U6D_.text", "def tCBU(YKHO, LihS):\n return getattr(LihS, 'text', None)", "def tCBU(U6D_):\n if U6D_ is not None and U6D_.text is not None:\n return U6D_.text.strip()", "def RbNx(YKHO, LihS):\n if isinstance(LihS, OhYN):\n l5Ny = []\n for a0E5 in LihS...
[ "0.8072275", "0.7962643", "0.78506213", "0.77783287", "0.76846147", "0.75529563", "0.74493897", "0.7328177", "0.7323502", "0.73227686", "0.7318338", "0.7287203", "0.71848637", "0.7141399", "0.7140481", "0.71299434", "0.7129619", "0.71147895", "0.71115845", "0.7093752", "0.702...
0.77399474
4
Four agents, starting from opposite corners
def WU_X(): r51l = mA7V(JYKc, start_pos=[0.0, 4.0, 0.0], goal=[4.0, 0.0, 0.0]) a319 = mA7V(JYKc, start_pos=[4.0, 0.0, 0.0], goal=[0.0, 4.0, 0.0]) fPiH = mA7V(JYKc, start_pos=[0.0, 0.0, 0.0], goal=[4.0, 4.0, 0.0]) CAh1 = mA7V(JYKc, start_pos=[4.0, 4.0, 0.0], goal=[0.0, 0.0, 0.0]) return [r51l, a319, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WYh6():\n r51l = mA7V(JYKc, start_pos=[0.0, 0.0, 0.0], goal=[4.0, 4.0, 0.0])\n a319 = mA7V(JYKc, start_pos=[4.0, 4.0, 0.0], goal=[0.0, 0.0, 0.0])\n return [r51l, a319]", "def WHLB():\n r51l = mA7V(JYKc, start_pos=[0.0, 4.0, 0.0], goal=[4.0, 0.0, 0.0])\n a319 = mA7V(JYKc, start_pos=[4.0, 0.0, 0...
[ "0.7700242", "0.76325536", "0.6201213", "0.6171189", "0.61671543", "0.6088555", "0.60252386", "0.601587", "0.60104793", "0.59471744", "0.5918827", "0.5902442", "0.5877489", "0.58557475", "0.57667005", "0.5764906", "0.5742513", "0.5726127", "0.57209873", "0.5646399", "0.563120...
0.7977547
0
Six agents, starting from opposite corners
def WHLB(): r51l = mA7V(JYKc, start_pos=[0.0, 4.0, 0.0], goal=[4.0, 0.0, 0.0]) a319 = mA7V(JYKc, start_pos=[4.0, 0.0, 0.0], goal=[0.0, 4.0, 0.0]) fPiH = mA7V(JYKc, start_pos=[0.0, 0.0, 0.0], goal=[4.0, 4.0, 0.0]) CAh1 = mA7V(JYKc, start_pos=[4.0, 4.0, 0.0], goal=[0.0, 0.0, 0.0]) wXlZ = mA7V(JYKc, st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WYh6():\n r51l = mA7V(JYKc, start_pos=[0.0, 0.0, 0.0], goal=[4.0, 4.0, 0.0])\n a319 = mA7V(JYKc, start_pos=[4.0, 4.0, 0.0], goal=[0.0, 0.0, 0.0])\n return [r51l, a319]", "def WU_X():\n r51l = mA7V(JYKc, start_pos=[0.0, 4.0, 0.0], goal=[4.0, 0.0, 0.0])\n a319 = mA7V(JYKc, start_pos=[4.0, 0.0, 0...
[ "0.7384526", "0.7347972", "0.61754274", "0.60034627", "0.59184724", "0.5878501", "0.5847426", "0.5792066", "0.57857275", "0.570983", "0.5699156", "0.5671966", "0.56707126", "0.56655675", "0.5664081", "0.5592668", "0.55799484", "0.55799484", "0.55647093", "0.5554752", "0.55176...
0.7990889
0
The cluster security group that was created by Amazon EKS for the cluster. Managed node groups use this security group for control plane to data plane communication.
def n_IK(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'cluster_security_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n_IK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cluster_security_group_id')", "def ANtU(YKHO):\n return YKHO._security_group", "def In7O(YKHO):\n return YKHO.__set_security_group() if 'security_group' in YKHO.kwargs else YKHO.__create_security_group()", "def ANtU(YKHO) -> laHg.Opti...
[ "0.75539243", "0.73960537", "0.7196953", "0.7063261", "0.7063261", "0.7063261", "0.7063261", "0.7063261", "0.6918475", "0.68416864", "0.68416864", "0.68225944", "0.66875505", "0.6681413", "0.6674994", "0.6671403", "0.6671403", "0.6671403", "0.6671403", "0.6627039", "0.6616484...
0.78270906
0
The unique ID given to your cluster.
def id(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_id')", "def JvOq(YKHO) -> str:\n return qe4Y...
[ "0.8361467", "0.8361467", "0.8361467", "0.8361467", "0.8361467", "0.8361467", "0.83240825", "0.82250226", "0.8034251", "0.8034251", "0.8034251", "0.8034251", "0.8034251", "0.8034251", "0.8034251", "0.7950877", "0.7914695", "0.7914695", "0.7914695", "0.78945386", "0.78945386",...
0.0
-1
An array of keyvalue pairs to apply to this resource.
def dJ1p(YKHO) -> h8nf[bdIy['outputs.ClusterTag']]: return qe4Y.get(YKHO, 'tags')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lZBZ(YKHO):\n return Pbc4.keys(YKHO)", "def azoT(YKHO):\n return {}", "def o8Kj(YKHO):\n return dict(YKHO.__dict__)", "def NURA(YKHO):\n return dict()", "def hkxX(YKHO):\n return {d7pR.name: getattr(YKHO, d7pR.name) for d7pR in YKHO._args}", "def A0zC(YKHO):\n return {'resource_buck...
[ "0.62145424", "0.61942464", "0.61509234", "0.6114355", "0.6112568", "0.6107995", "0.60954225", "0.60899276", "0.60470796", "0.6043885", "0.604244", "0.60321325", "0.60067034", "0.6000937", "0.59571326", "0.59518486", "0.59368384", "0.59318995", "0.59157795", "0.59047973", "0....
0.0
-1
The desired Kubernetes version for your cluster. If you don't specify a value here, the latest version available in Amazon EKS is used.
def DpZH(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'version')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def prQz(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'kubernetes_version')", "def azp_(YKHO) -> str:\n return YKHO._get_kubernetes_version(read_only=False)", "def prQz(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'kubernetes_version')", "def SiRe(YKHO) -> qe4Y.Output[str]:\n ret...
[ "0.79872257", "0.7960199", "0.7836435", "0.7656468", "0.74223125", "0.7366759", "0.7351923", "0.68612427", "0.67171735", "0.6450295", "0.63812464", "0.637146", "0.63126045", "0.62110806", "0.6181657", "0.61520296", "0.61274886", "0.61115724", "0.60828036", "0.604816", "0.6048...
0.61424375
23
An object representing an Amazon EKS cluster.
def iBC6(mWFP: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> tpSz: rYZf = dict() rYZf['name'] = mWFP VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_defaults(), VKhi) p5j3 = qe4Y.runtime.invoke('aws-native:eks:getCluster', rYZf, opts=VKhi, typ=uF6Q).value return tpSz(arn=qe4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n return YKHO._values.get('cluster')", "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n return YKHO._values.get('cluster')", "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n return YKHO._values.get('cluster')", "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n return YKHO...
[ "0.7187319", "0.7187319", "0.7187319", "0.7187319", "0.6938743", "0.69215983", "0.68507", "0.67391276", "0.6700381", "0.66663593", "0.6653321", "0.6651643", "0.66199785", "0.6594021", "0.6563941", "0.6550213", "0.6549511", "0.65304565", "0.652946", "0.6502983", "0.6450393", ...
0.6544186
17
An object representing an Amazon EKS cluster.
def KTfV(mWFP: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[uF6Q]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n return YKHO._values.get('cluster')", "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n return YKHO._values.get('cluster')", "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n return YKHO._values.get('cluster')", "def hKn5(YKHO) -> lTJ4.aws_ecs.ICluster:\n return YKHO...
[ "0.7187319", "0.7187319", "0.7187319", "0.7187319", "0.6938743", "0.69215983", "0.68507", "0.67391276", "0.6700381", "0.66663593", "0.6653321", "0.6651643", "0.66199785", "0.6594021", "0.6563941", "0.6550213", "0.6549511", "0.6544186", "0.65304565", "0.652946", "0.6502983", ...
0.0
-1
Get unit vector l that points to the light from hit point ph.
def N_wZ(YKHO, KZ_l): vC9B = oyIN.array([0, 1, 0], dtype=float) return vC9B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N_wZ(YKHO, KZ_l):\n vC9B = BfDw.normalize(YKHO.position - KZ_l)\n if oyIN.dot(-1 * vC9B, YKHO.nl) < YKHO.cos_theta:\n vC9B = oyIN.zeros(3)\n return vC9B", "def N_wZ(YKHO, KZ_l):\n vC9B = BfDw.normalize(-YKHO.position)\n return vC9B", "def N_wZ(YKHO, KZ_l):\n vC9B = BfDw.normalize(Y...
[ "0.8080276", "0.7493598", "0.7493376", "0.7349195", "0.6510144", "0.63255423", "0.6113869", "0.6098428", "0.6086408", "0.60318494", "0.5958012", "0.5932069", "0.591708", "0.5890859", "0.58820885", "0.58692944", "0.5865487", "0.5817723", "0.5804388", "0.57873166", "0.5780005",...
0.6816041
4
Get unit vector l that points to the light from hit point ph.
def N_wZ(YKHO, KZ_l): vC9B = BfDw.normalize(-YKHO.position) return vC9B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N_wZ(YKHO, KZ_l):\n vC9B = BfDw.normalize(YKHO.position - KZ_l)\n if oyIN.dot(-1 * vC9B, YKHO.nl) < YKHO.cos_theta:\n vC9B = oyIN.zeros(3)\n return vC9B", "def N_wZ(YKHO, KZ_l):\n vC9B = BfDw.normalize(YKHO.position - KZ_l)\n return vC9B", "def N_wZ(YKHO, KZ_l):\n TRVV, J1b4 = oyIN...
[ "0.8080276", "0.7493376", "0.7349195", "0.6816041", "0.6510144", "0.63255423", "0.6113869", "0.6098428", "0.6086408", "0.60318494", "0.5958012", "0.5932069", "0.591708", "0.5890859", "0.58820885", "0.58692944", "0.5865487", "0.5817723", "0.5804388", "0.57873166", "0.5780005",...
0.7493598
1
Get unit vector l that points to the light from hit point ph.
def N_wZ(YKHO, KZ_l): vC9B = BfDw.normalize(YKHO.position - KZ_l) return vC9B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N_wZ(YKHO, KZ_l):\n vC9B = BfDw.normalize(YKHO.position - KZ_l)\n if oyIN.dot(-1 * vC9B, YKHO.nl) < YKHO.cos_theta:\n vC9B = oyIN.zeros(3)\n return vC9B", "def N_wZ(YKHO, KZ_l):\n vC9B = BfDw.normalize(-YKHO.position)\n return vC9B", "def N_wZ(YKHO, KZ_l):\n TRVV, J1b4 = oyIN.rando...
[ "0.8080276", "0.7493598", "0.7349195", "0.6816041", "0.6510144", "0.63255423", "0.6113869", "0.6098428", "0.6086408", "0.60318494", "0.5958012", "0.5932069", "0.591708", "0.5890859", "0.58820885", "0.58692944", "0.5865487", "0.5817723", "0.5804388", "0.57873166", "0.5780005",...
0.7493376
2
Get unit vector l that points to the light from hit point ph.
def N_wZ(YKHO, KZ_l): vC9B = BfDw.normalize(YKHO.position - KZ_l) if oyIN.dot(-1 * vC9B, YKHO.nl) < YKHO.cos_theta: vC9B = oyIN.zeros(3) return vC9B
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N_wZ(YKHO, KZ_l):\n vC9B = BfDw.normalize(-YKHO.position)\n return vC9B", "def N_wZ(YKHO, KZ_l):\n vC9B = BfDw.normalize(YKHO.position - KZ_l)\n return vC9B", "def N_wZ(YKHO, KZ_l):\n TRVV, J1b4 = oyIN.random.random_sample(2)\n WKvO = TRVV * YKHO.s0\n LVAh = J1b4 * YKHO.s1\n XP5J = ...
[ "0.7493598", "0.7493376", "0.7349195", "0.6816041", "0.6510144", "0.63255423", "0.6113869", "0.6098428", "0.6086408", "0.60318494", "0.5958012", "0.5932069", "0.591708", "0.5890859", "0.58820885", "0.58692944", "0.5865487", "0.5817723", "0.5804388", "0.57873166", "0.5780005",...
0.8080276
0
Test user has no profile before saved.
def Us3T(YKHO): YKHO.assertFalse(h6OD.objects.count(), 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ITpZ(YKHO):\n ufxU = G2Lf(YKHO.user1)\n YKHO.assertFalse(ufxU)", "def ic93(YKHO):\n YKHO.assertTrue(YKHO.user_1.profile is not None)", "def Vdh0(YKHO):\n CBIr = a0WA.objects.create_user(**YKHO.user_info)\n vmuH().objects.get(user=CBIr).delete()\n rOAL('check_permissions', test=True)", "...
[ "0.7883907", "0.7864174", "0.7813444", "0.7746955", "0.7619777", "0.7579812", "0.7481352", "0.7479732", "0.74677074", "0.740177", "0.73871905", "0.7382994", "0.7340655", "0.7293696", "0.7238784", "0.7236539", "0.71393526", "0.7116881", "0.7070981", "0.7067765", "0.7042017", ...
0.8139341
0
Flip the individual words in a sentence
def K95S(LI6e): vwCE = LI6e.split(' ') for or8S in range(len(vwCE)): vwCE[or8S] = vwCE[or8S][::-1] return ' '.join(vwCE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K95S(LI6e):\n kXwa = LI6e.split(' ')\n Dxdi = ''\n for GIN8 in kXwa:\n Dxdi += BGah(GIN8) + ' '\n return Dxdi.strip()\n pass", "def uJ7D(l5Ny):\n V22M = l5Ny.split()\n V22M[0], V22M[-1] = (V22M[-1], V22M[0])\n Qvp8 = ' '.join([yzQ0[::-1] for yzQ0 in V22M])\n print(Qvp8)", ...
[ "0.7467211", "0.7453032", "0.7046106", "0.69519705", "0.6919519", "0.69084376", "0.68861514", "0.6883357", "0.6759468", "0.6712527", "0.66929007", "0.6691925", "0.66787654", "0.6651185", "0.65837455", "0.65754527", "0.6552169", "0.6550696", "0.6542147", "0.6494433", "0.645026...
0.7357182
2
A plot function for viewing images in their embedded locations. The function receives the embedding (X) and the original images (images) and plots the images along with the embeddings.
def a34Q(EcVT, Yw_3, leAC, R1_w=25): exwG, lEHr = oyIN.shape(Yw_3) Ylkb = int(lEHr ** 0.5) LZpg = QrM1.figure() aNZO = LZpg.add_subplot(111) aNZO.set_title(leAC) Yjog = (max(EcVT[:, 0]) - min(EcVT[:, 0])) * 0.08 nnyg = (max(EcVT[:, 1]) - min(EcVT[:, 1])) * 0.08 for YRbF in range(R1_w): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rzaM(**Yw_3):\n exwG = len(Yw_3)\n QrM1.figure(figsize=(16, 5))\n for YRbF, (mWFP, LNo8) in enumerate(Yw_3.items()):\n QrM1.subplot(1, exwG, YRbF + 1)\n QrM1.xticks([])\n QrM1.yticks([])\n QrM1.title(' '.join(mWFP.split('_')).title())\n QrM1.imshow(LNo8)\n QrM1.sh...
[ "0.67711514", "0.6758669", "0.6758669", "0.6758669", "0.6758669", "0.67527896", "0.6740295", "0.67303985", "0.67253876", "0.6618988", "0.66162866", "0.6563587", "0.6563123", "0.6563123", "0.65557164", "0.6549536", "0.6543106", "0.65368986", "0.65239054", "0.6522325", "0.65090...
0.6737478
7
Calculate the knearest neighbors indices for each datapoint.
def z1UU(nPrm, G1Hx): dUr3 = IyN9(nPrm) CLQW = oyIN.argpartition(dUr3, G1Hx, axis=1)[:, :G1Hx] return CLQW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETxX(YKHO, qw7D):\n AifU = YKHO._euclidean_distances(qw7D)\n IUIM = oyIN.argsort(AifU, axis=None, kind='quicksort')\n zuiD = IUIM[0:YKHO.k]\n return zuiD", "def Tdnq(YKHO, m1Py, QyFu, nMvt):\n PYVH = HFk3(n_neighbors=nMvt)\n PYVH.fit(m1Py)\n Ayfi, d6pt = PYVH.kneighbors(QyFu, return_dist...
[ "0.76737934", "0.7608644", "0.74594295", "0.74195254", "0.73690313", "0.7366138", "0.72560227", "0.72066045", "0.72066045", "0.7195283", "0.7195283", "0.7168453", "0.7162331", "0.7141009", "0.7129372", "0.7090431", "0.7088267", "0.7056502", "0.70536697", "0.7025445", "0.70065...
0.75126755
2
Test that the model returns the correct string
def ohCy(YKHO): Y9ei = Y9ei = caQO.objects.get(id=1) kuEi = f'{Y9ei.python_tip}' YKHO.assertEqual(kuEi, str(Y9ei)) print('\n---------------------------------------------------------------------')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ma9p(YKHO) -> None:\n YKHO.assertEqual(str(YKHO.book), 'Book (book title), book author')", "def Dt2g(YKHO):\n vIwR = '[BaseModel] ({}) {}'.format(YKHO.my_model.id, YKHO.my_model.__dict__)\n YKHO.assertEqual(vIwR, str(YKHO.my_model))", "def ohCy(YKHO):\n HPQU = KcDH()\n KCHu = '[BaseModel] ({...
[ "0.8072264", "0.7997663", "0.78145146", "0.7750506", "0.7675816", "0.7650042", "0.76409763", "0.7523887", "0.7517654", "0.7513984", "0.7504127", "0.7478909", "0.7426998", "0.73423404", "0.73290944", "0.73228395", "0.73019373", "0.73000973", "0.7287703", "0.7265406", "0.723131...
0.7030665
31
Test that the model returns the correct string
def ohCy(YKHO): QZnA = PRV_.objects.get(id=1) kuEi = f'{QZnA.media_link}' YKHO.assertEqual(kuEi, str(QZnA)) print('\n---------------------------------------------------------------------')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ma9p(YKHO) -> None:\n YKHO.assertEqual(str(YKHO.book), 'Book (book title), book author')", "def Dt2g(YKHO):\n vIwR = '[BaseModel] ({}) {}'.format(YKHO.my_model.id, YKHO.my_model.__dict__)\n YKHO.assertEqual(vIwR, str(YKHO.my_model))", "def ohCy(YKHO):\n HPQU = KcDH()\n KCHu = '[BaseModel] ({...
[ "0.8072264", "0.7997663", "0.78145146", "0.7750506", "0.7675816", "0.7650042", "0.76409763", "0.7523887", "0.7517654", "0.7513984", "0.7504127", "0.7478909", "0.7426998", "0.73423404", "0.73290944", "0.73228395", "0.73019373", "0.73000973", "0.7287703", "0.7265406", "0.723131...
0.7071636
26
Convert object into a json string. Returns str The instance of the object in json string format
def IZ3T(YKHO) -> str: YGFP = YKHO.to_json() return qQXR.dumps(YGFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IZ3T(UxL2):\n return qQXR.dumps(UxL2)", "def oD7C(YEnM):\n return um78.JsonFactory.JsonEncoder().encode(YEnM)", "def IZ3T(UxL2):\n return qQXR.dumps(UxL2)", "def IZ3T(UxL2):\n return qQXR.dumps(UxL2)", "def IZ3T(UxL2):\n return qQXR.dumps(UxL2)", "def IZ3T(UxL2):\n return qQXR.dumps...
[ "0.8497069", "0.83536875", "0.8336058", "0.82835484", "0.82835484", "0.82835484", "0.82835484", "0.82835484", "0.82835484", "0.82835484", "0.82835484", "0.8267751", "0.8267751", "0.8251486", "0.8234554", "0.8194083", "0.818395", "0.81788784", "0.81774557", "0.8092005", "0.809...
0.7630305
41
Checks to see if the number of people successfully added to course and number of people not added to course matches expected numbers
def YitP(YKHO, BKJb, xp6p): U6D_ = None OTTu = 'No people were added to the course.' if BKJb == 1: OTTu = '1 person was added to the course.' elif BKJb > 1: OTTu = '{} people were added to the course.'.format(BKJb) xv1n = '' if xp6p == 1: xv1n = '1 person could not be add...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rXxH(aFYk, ETcS):\n if len(aFYk) > ETcS:\n return True\n else:\n return False", "def OoyW(YKHO, g3Gt, VLXD):\n mLGw = 0\n for KCHu in VLXD:\n if KCHu.record_book_number == g3Gt.record_book_number:\n mLGw += 1\n return mLGw", "def fUlX(YKHO):\n mo1z = KP8L(Y...
[ "0.68571216", "0.6613147", "0.6563774", "0.6561143", "0.65134674", "0.6298979", "0.62963223", "0.62912333", "0.62826276", "0.6240238", "0.61526096", "0.6129916", "0.6110134", "0.60996544", "0.60886073", "0.60772026", "0.6076992", "0.6064523", "0.60619473", "0.6061761", "0.606...
0.6349789
5
Builds a sklearn Pipeline. The pipeline consists of a kind of vectorizer, followed by a kind of classifier.
def f6vf(YKHO): YKHO.vectorizer = oNB5(stop_words=None) YKHO.classifier = DZBc(stop_words=DZBc.get_stop_words()) YKHO.pipeline = Y0rt([('vectorizer', YKHO.vectorizer), ('clf', YKHO.classifier)]) G9jH.debug(YKHO.vectorizer) G9jH.debug(YKHO.classifier) G9jH.debug(YKHO.pipeline)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def go9B(AmnI):\n return Y0rt([('union', UVqZ(transformer_list=[('stats', Y0rt([('stats', GVQt()), ('vect', OA4i())])), ('bow', Y0rt([('tokens', QV6Y()), ('tfidf', oNB5(tokenizer=_E99, preprocessor=None, lowercase=False)), ('best', YmoY(n_components=1000))]))], transformer_weights={'stats': 0.15, 'bow': 0.85}))...
[ "0.78853434", "0.78406334", "0.7787562", "0.7768033", "0.7608633", "0.7533575", "0.7531385", "0.7476394", "0.74650586", "0.7444131", "0.7400857", "0.73261863", "0.7322741", "0.72218734", "0.72217447", "0.7208469", "0.71813685", "0.7178528", "0.7165694", "0.7161869", "0.715028...
0.76950294
4
Loads a model that was previously trained and saved.
def AXOg(YKHO): from sklearn.externals import joblib YKHO.pipeline = joblib.load(YKHO._model) G9jH.debug("Loading model pipeline from '%s'" % YKHO._model)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ad8h = t2lc.load(pan_)\n return ad8h", "def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ad8h = t2lc.load(pan_)\n return ad8h", "def uyMl():\n with open('trained_model.pickle', 'rb') as pan_:\n ...
[ "0.83231604", "0.83231604", "0.83231604", "0.8312554", "0.82896626", "0.8270503", "0.81575745", "0.8152425", "0.8148513", "0.8129987", "0.81134295", "0.80845505", "0.8069842", "0.8030335", "0.7951956", "0.7944381", "0.7944381", "0.79431105", "0.7921611", "0.7920895", "0.79024...
0.0
-1
Tests indep_var property exceptions
def xltG(YKHO): DumB = [None, 'a', XTiz.array([1.0, 2.0, 0.0, 3.0]), XTiz.array([])] for ZfUD in DumB: Fxlz.test.assert_exception(Fxlz.plot.BasicSource, {'indep_var': ZfUD, 'dep_var': XTiz.array([10, 20, 30])}, RuntimeError, 'Argument `indep_var` is not valid') tO9_ = 'Argument `indep_var` is empty ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T5dG(YKHO):\n tO9_ = 'Argument `dep_var` is not valid'\n DumB = [None, 'a', []]\n for ZfUD in DumB:\n Fxlz.test.assert_exception(Fxlz.plot.BasicSource, {'indep_var': XTiz.array([1, 2, 3]), 'dep_var': ZfUD}, RuntimeError, tO9_)\n YEnM = Fxlz.plot.BasicSource(indep_var=XTiz.array([1, 2, 3]), d...
[ "0.779276", "0.6765984", "0.6742183", "0.6732591", "0.67179275", "0.6705482", "0.6463518", "0.64215463", "0.6319369", "0.6319369", "0.6319369", "0.62702197", "0.62053597", "0.6180575", "0.61324525", "0.6037982", "0.5990947", "0.5985482", "0.5973122", "0.59604293", "0.5956627"...
0.7303684
1
Tests dep_var property exceptions
def T5dG(YKHO): tO9_ = 'Argument `dep_var` is not valid' DumB = [None, 'a', []] for ZfUD in DumB: Fxlz.test.assert_exception(Fxlz.plot.BasicSource, {'indep_var': XTiz.array([1, 2, 3]), 'dep_var': ZfUD}, RuntimeError, tO9_) YEnM = Fxlz.plot.BasicSource(indep_var=XTiz.array([1, 2, 3]), dep_var=XTi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzy_(YKHO):\n qtTe = XTiz.array([10, 20, 30])\n K7_R = XTiz.array([1, 2, 3])\n xDLY = XTiz.array([4.0, 5.0, 6.0])\n assert (Fxlz.plot.BasicSource(indep_var=qtTe, dep_var=K7_R).dep_var == K7_R).all()\n assert (Fxlz.plot.BasicSource(indep_var=qtTe, dep_var=xDLY).dep_var == xDLY).all()\n YEnM = ...
[ "0.7184562", "0.7021812", "0.66275144", "0.63994247", "0.63421637", "0.63421637", "0.63421637", "0.63307106", "0.6323523", "0.63194555", "0.63061416", "0.6273373", "0.62534475", "0.6248801", "0.6183293", "0.6130921", "0.60928994", "0.6091585", "0.60135394", "0.60044837", "0.5...
0.7965569
0
Override builtin _handle_view in order to redirect users when a view is not accessible.
def v0Yt(YKHO, mWFP, **B2fa): if not YKHO.is_accessible(): if c5ow.is_authenticated: eTsH(403) else: return vKnz(nKyW('security.login', next=QePW.url))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v0Yt(YKHO, mWFP, **B2fa):\n if not YKHO.is_accessible():\n if c5ow.is_authenticated:\n eTsH(403)\n else:\n Dwep('Please log in to access this page.')\n return vKnz(nKyW('auth.login', next=QePW.url))", "def v0Yt(YKHO, mWFP, **B2fa):\n if not YKHO.is_accessi...
[ "0.76037353", "0.72781533", "0.7166377", "0.71454185", "0.6611925", "0.65360767", "0.64782995", "0.63069177", "0.62936634", "0.62607646", "0.62410086", "0.62410086", "0.6231908", "0.6221202", "0.61876464", "0.61628735", "0.613372", "0.6131847", "0.6101981", "0.6098942", "0.60...
0.749019
5
Override builtin _handle_view in order to redirect users when a view is not accessible.
def v0Yt(YKHO, mWFP, **B2fa): if not YKHO.is_accessible(): if c5ow.is_authenticated: eTsH(403) else: return vKnz(nKyW('security.login', next=QePW.url))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v0Yt(YKHO, mWFP, **B2fa):\n if not YKHO.is_accessible():\n if c5ow.is_authenticated:\n eTsH(403)\n else:\n Dwep('Please log in to access this page.')\n return vKnz(nKyW('auth.login', next=QePW.url))", "def v0Yt(YKHO, mWFP, **B2fa):\n if not YKHO.is_accessi...
[ "0.76057804", "0.72802854", "0.7163991", "0.7145642", "0.66120386", "0.6536311", "0.6478789", "0.63071734", "0.629511", "0.62611747", "0.6242592", "0.6242592", "0.6234349", "0.621924", "0.61864054", "0.61648434", "0.61355203", "0.6130257", "0.6100725", "0.6100664", "0.6088703...
0.74921376
4
Sets IAM policy for a project.
def NAO5(Vt89, ekCf, Qabx): EO7N = 3 if Qabx['version'] < EO7N: na1r.debug('Overriding GCP IAM Policy version, was %s is now %s', Qabx['version'], EO7N) Qabx['version'] = EO7N zVa7 = EhpD.discovery.build('cloudresourcemanager', 'v1', credentials=Vt89, cache_discovery=False) Qabx = zVa7.p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOmo(ekCf: str, Qabx: dict, eOtH: str) -> dict:\n KcEq = 'https://cloudresourcemanager.googleapis.com'\n bD7m = f'{KcEq}/v1/projects/{ekCf}:setIamPolicy'\n _hkX = G4JS.post(bD7m, json={'policy': Qabx}, headers={'Authorization': f'Bearer {eOtH}'})\n try:\n _hkX.raise_for_status()\n except ...
[ "0.7515577", "0.7077263", "0.69833905", "0.6611022", "0.6409385", "0.63702184", "0.63625145", "0.62233645", "0.6208541", "0.60881835", "0.5999725", "0.5989376", "0.5949473", "0.5884305", "0.5880211", "0.5829828", "0.581232", "0.57791364", "0.57791364", "0.57278866", "0.571793...
0.79357356
0
Compare two defaultdict. It is used because a simple access have side effects in defaultdict. >>> from collections import defaultdict >>> a = defaultdict(list) >>> b = defaultdict(list) >>> a == b True >>> a[0] [] >>> a == b False >>> practically_equal(a, b) True
def aSPY(jzdc: Dict[Any, Any], Fg_i: Dict[Any, Any]) -> bool: for G1Hx, Ty9i in jzdc.items(): if Ty9i != Fg_i[G1Hx]: return False for G1Hx, Ty9i in Fg_i.items(): if Ty9i != jzdc[G1Hx]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wW9P(cntZ, CsFy):\n assert isinstance(cntZ, oRi_)\n assert isinstance(CsFy, oRi_)\n assert cntZ.default_factory() == CsFy.default_factory()\n for H5ew in set(cntZ.keys()) | set(CsFy.keys()):\n assert cntZ[H5ew] == CsFy[H5ew]", "def K4zA(jzdc: defaultdict, Fg_i: defaultdict) -> bool:\n m...
[ "0.7765798", "0.7564405", "0.669969", "0.66173303", "0.6542308", "0.65319633", "0.63880575", "0.634196", "0.6323854", "0.63238484", "0.62624055", "0.6261331", "0.62475085", "0.62474895", "0.6245207", "0.62427676", "0.6216559", "0.62131375", "0.6209183", "0.61939216", "0.61927...
0.6447292
6
Adapt iterator to yield windows of the given size. window_size must be greater than 0
def THQj(OxJJ: Iterable[T], yMhW: int) -> bDy6[AzJI[Kt_s, ...]]: from collections import deque WhY1 = iter(OxJJ) assert yMhW > 0 oXW8: Brvh[Kt_s] = deque() while len(oXW8) < yMhW: oXW8.append(next(WhY1)) yield tuple(oXW8) for ZfUD in WhY1: oXW8.popleft() oXW8.append(Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QiK_(OxJJ, HHMN):\n dBuj = []\n for U6D_ in OxJJ:\n dBuj.append(U6D_)\n if len(dBuj) == HHMN:\n yield tuple(dBuj)\n elif len(dBuj) > HHMN:\n dBuj = dBuj[1:]\n yield tuple(dBuj)", "def CsNT(OxJJ, zNig):\n tWnD = g760.deque(maxlen=zNig)\n for YR...
[ "0.751977", "0.70176136", "0.69832754", "0.6914177", "0.6883975", "0.6858347", "0.67494524", "0.672955", "0.66560644", "0.665601", "0.66314906", "0.65359104", "0.65299964", "0.65247977", "0.6485982", "0.6463948", "0.6442987", "0.64285636", "0.6398692", "0.6398357", "0.6347486...
0.7468109
1
Port of numpy.random.Generator.geometric sampling It uses the Inverse Transform Sampling [1]. CDF(x) = 1 (1 p)x CDF^{1}(x) = log(1 x) / log(1 p)
def _51A(YKHO, XP5J: float) -> int: return epAf.ceil(epAf.log(YKHO.random()) / epAf.log(1 - XP5J))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c08K(YKHO):\n return YKHO.cdfInverse(tuKI.random())", "def NSK1(ywwl, DP2U):\n return DP2U(oyIN.random.uniform(size=ywwl))", "def hRj8(YKHO):\n return YKHO.modulus.gen_sample() * oyIN.exp(1j * YKHO.argument.gen_sample())", "def hRj8(YKHO):\n return YKHO.modulus.gen_sample() * oyIN.exp(1j * YK...
[ "0.6766033", "0.67310864", "0.6347944", "0.6347944", "0.6251412", "0.615739", "0.6113631", "0.6053588", "0.6021899", "0.59293944", "0.5924822", "0.5896919", "0.5873726", "0.58585274", "0.58469754", "0.58439606", "0.5833331", "0.58196205", "0.580595", "0.57504344", "0.5735648"...
0.5342509
94
Init a User with fields.
def FIMM(YKHO, V_D6): super(mv1M, YKHO).__init__(V_D6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, CBIr, *qIxc, **B2fa):\n super().__init__(*qIxc, **B2fa)\n YKHO.fields['username'].initial = CBIr.username\n YKHO.fields['email'].initial = CBIr.email\n YKHO.user = CBIr", "def FIMM(YKHO, mv1M):\n mv1M().__init__()", "def FIMM(YKHO, NtEF, jTXt, uJjO, c9ua, zp3f, ZP0S, vXX7, LqjR):\...
[ "0.7911157", "0.7382612", "0.7225081", "0.71773344", "0.716192", "0.71501774", "0.7149984", "0.71294165", "0.7072552", "0.7070009", "0.70568264", "0.70265627", "0.702461", "0.7010418", "0.69455945", "0.6938166", "0.6937204", "0.6901174", "0.6855407", "0.6845467", "0.68411237"...
0.7993206
0
Get virtual network to be associated with the pod. The heuristics to determine which virtual network to use for the pod
def xXyR(YKHO, ptiy, e5wU, WbIu): g2Vd = sSG8.find_by_name_or_uuid(ptiy) if not g2Vd: YKHO._logger.notice('%s - Pod %s:%s:%s Not Found(Might Got Delete Event From K8s)' % (YKHO._name, WbIu, e5wU, ptiy)) return None L8Ci = g2Vd.get_vn_fq_name() PCpl = YKHO._get_namespace(WbIu) if PCpl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KuT0(YKHO) -> h8nf[qe4Y.Input['SubResourceArgs']]:\n return qe4Y.get(YKHO, 'virtual_network')", "def KuT0(YKHO) -> qe4Y.Output[h8nf['outputs.SubResourceResponse']]:\n return qe4Y.get(YKHO, 'virtual_network')", "def KuT0(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'virtual_network')", ...
[ "0.7397001", "0.7390709", "0.7171768", "0.7171768", "0.6823934", "0.6764097", "0.67433965", "0.64442897", "0.6415154", "0.64116555", "0.63455623", "0.6315273", "0.6294651", "0.62917966", "0.6274888", "0.62659746", "0.62634647", "0.6225872", "0.62029433", "0.62029433", "0.6202...
0.6800649
5
Compute area of fault in square km
def sAdl(YKHO): return YKHO.get_length() * YKHO.get_width()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAdl(YKHO):\n return 3 * PZyS(3) * YKHO.length ** 2 / 2", "def f0tD(YKHO):\n return epAf.sqrt(3) / 4 * YKHO.sl ** 2", "def f0tD(YKHO):\n jzdc = YKHO.pt2 - YKHO.pt1\n Fg_i = YKHO.pt3 - YKHO.pt1\n return kteF(1, 2) * abs(jzdc.cross(Fg_i))", "def f0tD(YKHO):\n f0tD = 0\n for D70y in YKH...
[ "0.7274147", "0.72633076", "0.7194326", "0.71273345", "0.71245116", "0.70070297", "0.69966465", "0.6943793", "0.6924737", "0.6923102", "0.6923045", "0.690327", "0.6892205", "0.6890829", "0.6873443", "0.68668616", "0.6866464", "0.68622863", "0.68543774", "0.6850015", "0.683926...
0.0
-1
Compute standard deviation of strike from surface trace
def z6KB(YKHO): from mapping.geotools.angle import Azimuth rGHT = Azimuth(YKHO.get_mean_strike(), 'deg') Hqs6, TaUL = YKHO._get_trace_azimuths_and_distances() _mSQ = TaUL / oyIN.add.reduce(TaUL) mbN3 = Hqs6.get_enclosed_angle(rGHT).deg() I8JS = oyIN.dot(_mSQ, oyIN.array(mbN3) ** 2) / _mSQ.sum() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee6l(YKHO):\n return oyIN.sqrt(YKHO.variance())", "def ee6l(BkYD):\n return qw7D.standardDeviation(BkYD)", "def ee6l(YKHO):\n raise NotImplementedError", "def RSc0(YKHO):\n return YKHO.variance ** 0.5", "def tB1J(YKHO):\n try:\n return epAf.sqrt(YKHO.variance)\n except:\n ...
[ "0.7110157", "0.70448744", "0.7028711", "0.70128465", "0.7003729", "0.6922276", "0.6902163", "0.69007456", "0.68673104", "0.6831188", "0.6828497", "0.6820004", "0.6801549", "0.6793369", "0.67720413", "0.6756508", "0.67258453", "0.6708821", "0.6700781", "0.66893774", "0.668642...
0.75598896
0
Compute moment rate corresponding to maximum magnitude assuming Mmax corresponds to max_mag of MFD minus one bin width
def xRDu(YKHO, yGTL=30000000000.0): return YKHO.get_Mmax_moment() / YKHO.get_Mmax_return_period(mu=yGTL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uhPd(YKHO):\n try:\n SWJY = YKHO.mfd.char_mag\n except AttributeError:\n SWJY = YKHO.max_mag - YKHO.mfd.bin_width / 2.0\n return 10 ** (1.5 * (SWJY + 6.06))", "def WebE(YKHO):\n YKHO.M_max = x5nF(YKHO.D_o)", "def SWJY(YKHO):\n return YKHO.mfd.max_mag", "def SWJY(YKHO, *qIxc, ...
[ "0.7987862", "0.7625553", "0.74952227", "0.69066876", "0.69066876", "0.68100584", "0.68077457", "0.6698118", "0.65919304", "0.6539153", "0.6528907", "0.64981794", "0.64749426", "0.64736784", "0.64504623", "0.6367426", "0.6363971", "0.6335832", "0.63228863", "0.6306151", "0.62...
0.7430077
3
Compute slip corresponding to maximum magnitude, assuming it would occur over the entire fault plane, and assuming Mmax corresponds to max_mag of MFD minus one bin width
def SaLl(YKHO, yGTL=30000000000.0): return YKHO.get_Mmax_moment() / (yGTL * YKHO.get_area() * 1000000.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WebE(YKHO):\n YKHO.M_max = x5nF(YKHO.D_o)", "def UfYq(wEsz: array, Vb5F: float, IwUB: int):\n Z9rn, H2HG = zkG9(wEsz, Vb5F, IwUB)\n for WKvO in range(2, IwUB):\n jzdc = jth9(Z9rn[::WKvO])\n Z9rn = Z9rn[:len(jzdc)]\n YRbF = oyIN.argmax(abs(Z9rn))\n Z9rn *= jzdc\n Qr...
[ "0.70936424", "0.677647", "0.67166024", "0.66616493", "0.66616493", "0.65656257", "0.649513", "0.6390392", "0.6341042", "0.6299442", "0.6165243", "0.6095495", "0.6079861", "0.6055471", "0.5990948", "0.59777284", "0.59706765", "0.5962755", "0.595976", "0.5941172", "0.5927825",...
0.71452737
0
Compute centroid of area source
def IBzD(YKHO): e6ux = YKHO.to_ogr_geometry().Centroid() return (e6ux.GetX(), e6ux.GetY())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e6ux(YKHO):\n WKvO = YKHO.vertices[:, 0]\n LVAh = YKHO.vertices[:, 1]\n VMqD = 0.0\n Ya2r = 0.0\n for YRbF in range(len(YKHO.vertices) - 1):\n VMqD += (WKvO[YRbF] + WKvO[YRbF + 1]) * (WKvO[YRbF] * LVAh[YRbF + 1] - WKvO[YRbF + 1] * LVAh[YRbF])\n Ya2r += (LVAh[YRbF] + LVAh[YRbF + 1])...
[ "0.75757736", "0.75528765", "0.7410918", "0.7396884", "0.7383708", "0.7363667", "0.7331659", "0.72344625", "0.72171104", "0.72133565", "0.7210312", "0.7195396", "0.7173175", "0.7163875", "0.7150051", "0.71377885", "0.71330607", "0.7132874", "0.71013564", "0.7026891", "0.70157...
0.0
-1
Create a ParsedRequest object.
def FIMM(YKHO, QePW): YKHO.method = QePW['method'] YKHO.options = {} YKHO.memory = {} YKHO.credentials = [] YKHO.message = None if YKHO.method in ('check', 'receive'): YKHO.options = QePW['params']['options'] YKHO.memory = QePW['params']['memory'] YKHO.credentials = QePW[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E2Sy(YKHO, QePW, *qIxc, **B2fa):\n nNdW = YKHO.get_parser_context(QePW)\n return VNUm(QePW, parsers=YKHO.get_parsers(), authenticators=YKHO.get_authenticators(), negotiator=YKHO.get_content_negotiator(), parser_context=nNdW)", "def E2Sy(YKHO, QePW, *qIxc, **B2fa):\n nNdW = YKHO.get_parser_context(Qe...
[ "0.70611155", "0.69762784", "0.6881479", "0.68332845", "0.656855", "0.6545811", "0.6499849", "0.6320802", "0.6220306", "0.6215988", "0.6208648", "0.6205778", "0.61894083", "0.61678743", "0.6159102", "0.61566156", "0.6124936", "0.60685647", "0.60364103", "0.5954709", "0.593595...
0.0
-1
Returns a dict of the response. It is in the format that ActiveWorkflow's Agent API expects.
def MNRr(YKHO): return {'result': {'errors': YKHO._errors, 'logs': YKHO._logs, 'memory': YKHO._memory, 'messages': YKHO._messages}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fYl(YKHO) -> dict[str, ImMB]:\n return {'response': YKHO.response.as_dict(), 'conversation_id': YKHO.conversation_id}", "def MNRr(YKHO):\n geh0 = dict(YKHO.payload or ())\n geh0['message'] = YKHO.message\n geh0['status_code'] = YKHO.status_code\n return geh0", "def geh0(YKHO) -> cuzp[str, I...
[ "0.7209335", "0.71811545", "0.7036148", "0.6924923", "0.6835383", "0.67720133", "0.67242986", "0.66517615", "0.65247214", "0.65058047", "0.6468158", "0.64557254", "0.6454511", "0.6405623", "0.6390479", "0.63479125", "0.63426495", "0.6338872", "0.63109946", "0.63109946", "0.63...
0.0
-1
Mocked flask render template response
def hz5H(YKHO, _xNI): udfG = P4t4.app.test_client() udfG.get('/') YKHO.assertEqual(_xNI.called, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jZs_(Ehsq):\n BWXx = 'View Content'\n rPXJ = GSRe(BWXx)\n Adsg = CFMy(return_value=rPXJ)\n Ehsq.setattr(P4t4.jinja_env, 'get_template', Adsg)\n e1uE = tTee.View('Test')\n e1uE.render(lemon=AxSQ)\n e1uE.finish()\n assert not e1uE.html == BWXx\n assert e1uE.html.find(BWXx) > 0\n ass...
[ "0.7492616", "0.74840343", "0.74089783", "0.72515386", "0.7189602", "0.71706814", "0.7121659", "0.7059395", "0.70538497", "0.7030211", "0.7028636", "0.70281446", "0.70162284", "0.69860435", "0.6935985", "0.6915229", "0.6914803", "0.68932986", "0.68687797", "0.68329144", "0.68...
0.7601176
0
Posts a Random PrOn GIF
async def pgif(YKHO, OaeV): ne5b = await YKHO.execute('SELECT user FROM dbl', isSelect=True, fetchAll=True) ZqXZ = [] for Wyiq in ne5b: ZqXZ.append(Wyiq[0]) if str(OaeV.message.author.id) in ZqXZ: if not OaeV.message.channel.is_nsfw(): await OaeV.send('This is not a NSFW Chan...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v6pC():\n To46 = ''\n Mkmy = G4JS.get('http://api.giphy.com/v1/stickers/random?api_key=dc6zaTOxFJmzC', headers={'content-type': 'application/json'})\n To46 = Mkmy.json()['data']['url']\n return To46", "async def gif(YKHO, OaeV):\n To46 = tuKI.choice(YKHO.x.gifs)\n await OaeV.send(f'Here you...
[ "0.73301893", "0.7066321", "0.6957181", "0.69062805", "0.6623143", "0.652473", "0.6418487", "0.64028764", "0.6365405", "0.6333828", "0.6333828", "0.6302442", "0.62638235", "0.6237268", "0.6148188", "0.6137197", "0.61315036", "0.61218435", "0.61078703", "0.60682106", "0.605980...
0.53854156
86
Reshape tensor so that it is flat vector (except for batch dimension)
def nPf0(a1PO: Tensor) -> llWB: return ZylS.reshape(a1PO, [ZylS.shape(a1PO)[0], -1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(WKvO):\n return ZylS.reshape(WKvO, [-1])", "def dDTT(WKvO):\n return ZylS.reshape(WKvO, shape=[-1])", "def PWgb(WKvO: tf.Tensor) -> ZylS.Tensor:\n return ZylS.reshape(WKvO, (-1,))", "def PWgb(k3l6):\n WNSx = k3l6.get_shape().as_list()\n return ZylS.reshape(k3l6, [-1, oyIN.prod(WNSx[1:...
[ "0.7768371", "0.77153206", "0.7699831", "0.760134", "0.7449726", "0.737111", "0.7358059", "0.7227582", "0.71949995", "0.71546316", "0.7147921", "0.7142085", "0.71346825", "0.71305126", "0.71257627", "0.7093801", "0.704928", "0.7045904", "0.7026866", "0.69306165", "0.69283473"...
0.7737337
1
Current turn radius based on the current wheel turn angle
def UHAr(YKHO): if YKHO.wheel_turn_angle is None or YKHO.wheel_turn_angle == 0.0: return None return YKHO._wheelbase / Uyfy(YKHO.wheel_turn_angle)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b2nl(YKHO):\n return YKHO._wheel_radius", "def an6L(YKHO):\n return YKHO._wheel_turn_angle", "def mlgd(A1ab, VSZY):\n if VSZY == 0.0:\n return float('inf')\n return abs(A1ab / oyIN.tan(VSZY))", "def JCXs(YKHO):\n return float(kR1h(Component='Landing Gear', VariableName='Main wheel r...
[ "0.74967784", "0.73116726", "0.7204056", "0.71332043", "0.7062937", "0.69891095", "0.69812846", "0.69060755", "0.68195444", "0.6815553", "0.67988646", "0.6736393", "0.67334914", "0.67291224", "0.672173", "0.66410816", "0.6627634", "0.6609211", "0.65928537", "0.65837795", "0.6...
0.85922694
0
Insert and return a new Edge from u to v with aux
def BijJ(YKHO, P6bq, Ty9i, WKvO=None): tTpl = ndC_(P6bq, Ty9i, WKvO) YKHO._outgoing[P6bq][Ty9i] = tTpl YKHO._incoming[Ty9i][P6bq] = tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BijJ(YKHO, P6bq, Ty9i, WKvO=None):\n tTpl = YKHO.Edge(P6bq, Ty9i, WKvO)\n YKHO._outgoing[P6bq][Ty9i] = tTpl\n YKHO._incoming[Ty9i][P6bq] = tTpl", "def BijJ(YKHO, P6bq, Ty9i, yzQ0):\n if P6bq + 1 > YKHO.order or Ty9i + 1 > YKHO.order:\n raise IndexError\n else:\n YKHO.size += 1\n ...
[ "0.7720648", "0.76197183", "0.76033735", "0.74303585", "0.74013203", "0.7343416", "0.7282977", "0.7268973", "0.7215355", "0.7097354", "0.7091299", "0.696789", "0.6949406", "0.6939205", "0.692838", "0.6919309", "0.6916706", "0.6877636", "0.68763727", "0.6835103", "0.6800075", ...
0.763727
1
redirect logger from stderr to file, can be called any time
def XXPS(Emd4, R5Jy: str) -> None: try: nUeQ = R5Jy.encode() except BaseException: nUeQ = R5Jy Ylbp = _j2C.get_instance().set_log_file_board_controller(nUeQ) if Ylbp != BC_x.STATUS_OK.value: raise wfIB('unable to redirect logs to a file', Ylbp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ERnu():\n pass", "def DcSu(YKHO):\n return HwRy.stderr", "def bo34(Ol8d, nUeQ=None, gwV4=False):\n if nUeQ is None:\n HwRy.stderr.write(Ol8d)\n else:\n z1Rg = open(nUeQ, 'a')\n z1Rg.write(Ol8d)\n z1Rg.close()\n if gwV4:\n HwRy.exit(1)", "def Xj8R(YKHO, Yc...
[ "0.73167205", "0.7202125", "0.70837694", "0.7027782", "0.689487", "0.6801137", "0.6798984", "0.6776054", "0.6759537", "0.6666563", "0.6638182", "0.65843534", "0.6564115", "0.6562491", "0.65548944", "0.65300685", "0.6498714", "0.6470875", "0.64387566", "0.64053065", "0.6404012...
0.0
-1
get available presets for this board id
def qrQY(Emd4, kBYg: int) -> x1iM[str]: oCcJ = XTiz.zeros(1).astype(XTiz.int32) KPqu = XTiz.zeros(512).astype(XTiz.int32) Ylbp = _j2C.get_instance().get_board_presets(kBYg, KPqu, oCcJ) if Ylbp != BC_x.STATUS_OK.value: raise wfIB('unable to request info about this board', Ylbp) Aofo = KPqu.to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lBDX():\n pass", "def b31C(YKHO):\n return list(YKHO.camConfig.get('presets', {}).keys())", "def pvjK():\n pass", "def KPqu(Emd4):\n return jth9.deepcopy(KPqu)", "async def list_presets(YKHO) -> dict:\n return await YKHO.bcs_request('ListPresets', dict(locals()))", "def cpjw(YKHO):\n ...
[ "0.7454204", "0.70665747", "0.68464655", "0.67909414", "0.67824316", "0.67216", "0.6710203", "0.6694912", "0.6694912", "0.6694912", "0.66409963", "0.649377", "0.649377", "0.649377", "0.649377", "0.649377", "0.649377", "0.649377", "0.649377", "0.649377", "0.649377", "0.64410...
0.72723544
1
Verify a user can not take glance snapshot on BFV V2 instance. Will try to create an image from the server and is expecting a "Forbidden" exception to be raised.
def zRrV(YKHO): with YKHO.assertRaises(pW87): YKHO.servers_client.create_image(YKHO.server.id, YKHO.image_name, metadata=YKHO.metadata)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XBpQ(YKHO):\n Vk9F = YKHO._test_review_request_with_site()\n YKHO._login_user()\n eHNT = open(YKHO._getTrophyFilename(), 'r')\n YKHO.assertNotEqual(eHNT, None)\n uDyx = YKHO.apiPost(Vk9F, {'path': eHNT}, expected_status=403)\n eHNT.close()\n YKHO.assertEqual(uDyx['stat'], 'fail')\n YKHO...
[ "0.67445445", "0.6508591", "0.64759713", "0.64759713", "0.62865275", "0.61919826", "0.6126458", "0.605465", "0.6047743", "0.6042498", "0.60104835", "0.6010134", "0.59893155", "0.5972845", "0.591488", "0.5910386", "0.58832556", "0.5879392", "0.58594465", "0.57547987", "0.57146...
0.8320806
0
Return a string in bytes; use utf8 for unicode strings.
def tTN4(wEf2): if isinstance(wEf2, jKi7.text_type): return wEf2.encode('utf-8') elif isinstance(wEf2, jKi7.binary_type): return wEf2 else: raise TypeError('{} is not a unicode or str object'.format(wEf2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i_l1(KCHu):\n return KCHu.encode('utf8')", "def bytes(vIwR):\n return fR_9.bytes(vIwR, 'utf-8')", "def Ck8V(KCHu):\n if isinstance(KCHu, QMSQ):\n KCHu = KCHu.encode('ascii')\n return KCHu", "def VZEj(KCHu):\n return str(KCHu)", "def qSz5(vIwR):\n if isinstance(vIwR, jKi7.text_t...
[ "0.82165736", "0.81796575", "0.8133815", "0.8133021", "0.806219", "0.8012753", "0.7917428", "0.7912549", "0.78997976", "0.7851218", "0.78260666", "0.78041583", "0.7797167", "0.7789382", "0.76790357", "0.7677903", "0.7671584", "0.7631563", "0.7620934", "0.7584112", "0.75769615...
0.0
-1
Remove all HTML tags from a given string of html
def t5Yq(WEtT): na1r.debug('Stripping tags from "%s"', WEtT) aevO = _wdb() aevO.feed(WEtT) EESs = aevO.get_stripped_string() return EESs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)", "def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)", "def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)", "def JZhs(l5Ny):\n import re\n x0SS = re.compi...
[ "0.86183107", "0.86008185", "0.85643476", "0.84657323", "0.84657323", "0.84630066", "0.8431461", "0.84304494", "0.84304494", "0.84304494", "0.84304494", "0.84304494", "0.84304494", "0.84019005", "0.84019005", "0.84019005", "0.8401612", "0.8383447", "0.83381075", "0.83274704", ...
0.8041736
38
remove digits the same as digit >>> remove(2345, 2) 345 >>> remove(28567908, 8) 256790 >>> remove(120, 0) 12
def kSdD(exwG, Ko6S): if exwG // 10 == 0: if exwG == Ko6S: return 0 else: return exwG LFlW, PXGI = (exwG // 10, exwG % 10) if PXGI == Ko6S: return kSdD(LFlW, Ko6S) else: return PXGI + 10 * kSdD(LFlW, Ko6S)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSdD(exwG, Ko6S):\n cRrN, BHGE = (0, 0)\n while exwG != 0:\n exwG, XVAW = (exwG // 10, exwG % 10)\n if XVAW != Ko6S:\n cRrN = cRrN / 10 + XVAW\n BHGE = BHGE + 1\n return round(cRrN * 10 ** (BHGE - 1))", "def y_At(exwG, Ko6S):\n cRrN, BHGE = (0, 0)\n while ex...
[ "0.774277", "0.76553965", "0.7568666", "0.7370349", "0.72755677", "0.71516734", "0.6989849", "0.69254243", "0.68354034", "0.6817429", "0.679904", "0.6757627", "0.6736762", "0.6705812", "0.6674943", "0.6674943", "0.664445", "0.6607695", "0.65616435", "0.6544169", "0.652487", ...
0.7760687
0
Show list of users.
def yVA2(): DW23 = mv1M.query.all() return TvZl('user_list.html', users=DW23)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _FVT():\n DW23 = mv1M.query.all()\n return TvZl('user_list.html', users=DW23)", "def zidE():\n DW23 = mv1M.query.all()\n return TvZl('users.html', users=DW23)", "def zidE():\n ESns = NCls.session.query(mv1M).all()\n return TvZl('users.html', users=ESns)", "def s0TM():\n ESns = UXsa.g...
[ "0.8930896", "0.87024087", "0.8689884", "0.8633615", "0.8621271", "0.86019754", "0.85985595", "0.85832936", "0.85663253", "0.8563847", "0.8526153", "0.85121965", "0.84972584", "0.8478851", "0.8449927", "0.8444469", "0.8441582", "0.83768153", "0.83492345", "0.8330329", "0.8307...
0.8488131
15
Trim image of any extra (noncontent e.g. background) pixels.
def O358(YKHO, zn0c=None): LHFQ = YKHO._mode if YKHO._mode[-1] != 'A' else YKHO._mode[0:-1] lsmZ = hnIv.new(LHFQ, YKHO.size, YKHO._background) zNig = YKHO.size cviu = lLoU.difference(YKHO.image.convert(LHFQ), lsmZ).getbbox() if cviu: SPGa = {'left': (cviu[0], 0, zNig[0], zNig[1]), 'right': (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O358(YKHO, Xn71):\n dnR4 = hnIv.new(Xn71.mode, Xn71.size, Xn71.getpixel((0, 0)))\n yk4i = lLoU.difference(Xn71, dnR4)\n yk4i = lLoU.add(yk4i, yk4i, 2.0, -100)\n cviu = yk4i.getbbox()\n if cviu:\n return Xn71.crop(cviu)\n else:\n print('Trim of image failed.')\n return Xn7...
[ "0.80111814", "0.78254867", "0.77589184", "0.74564546", "0.74048805", "0.72758347", "0.727559", "0.72609264", "0.7249555", "0.70733565", "0.6902045", "0.6609625", "0.65834314", "0.65414226", "0.64971983", "0.6385146", "0.63504076", "0.6319561", "0.62866", "0.62866", "0.625099...
0.685982
11
Format given datelike object as RFC3339 date string.
def _c1T(YKHO, WKvO: Any, *qIxc) -> uLKX[str, None]: if qIxc: return YKHO.date((WKvO,) + qIxc) elif isinstance(WKvO, (JRYC.date, JRYC.datetime)): return YKHO._format_date(WKvO) elif isinstance(WKvO, str): return YKHO._format_date(JRYC.datetime(*YKHO._parse_datetime(WKvO))) elif i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r4Aq(WgTK):\n return WgTK.strftime(vnse)", "def r4Aq(_c1T):\n return r5lY(_c1T)", "def tJ9j(Csk6):\n return Csk6.strftime('%Y-%m-%dT%H:%M:%SZ')", "def kJ_q(Csk6: Any) -> str:\n return scAI.normalize(Csk6)", "def pbww(T0rB):\n if isinstance(T0rB, JRYC.datetime):\n T0rB = T0rB.date(...
[ "0.7890535", "0.76769036", "0.7385423", "0.7364872", "0.72472996", "0.7187334", "0.7182215", "0.70816416", "0.7067959", "0.7067959", "0.7035688", "0.6935919", "0.68312186", "0.67963976", "0.6791858", "0.6749146", "0.6706442", "0.66685414", "0.6663492", "0.6651137", "0.6645512...
0.0
-1
Format given date(time)like object as RFC333 date or datetime string depending on given resolution >>> rfc3339.normalize("2020/03/17") "20200317" >>> rfc3339.normalize("2020/03/17/12/34/56")
def NkkI(YKHO, WKvO: Any, *qIxc) -> uLKX[str, None]: if qIxc: return YKHO.normalize((WKvO,) + qIxc) elif isinstance(WKvO, JRYC.datetime): return YKHO.datetime(WKvO) elif isinstance(WKvO, JRYC.date): return YKHO.date(WKvO) elif isinstance(WKvO, str): WKvO = YKHO._parse_dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kJ_q(Csk6: Any) -> str:\n return scAI.normalize(Csk6)", "def r4Aq(_c1T):\n return r5lY(_c1T)", "def TjfV(m6Me: Raw, rhd_: Precision=o4KV.FULL) -> h8nf[str]:\n return hfK9(m6Me, precision=rhd_).text", "def r4Aq(WgTK):\n return WgTK.strftime(vnse)", "def Fsac(JRYC):\n if JRYC.utcoffset() i...
[ "0.7446993", "0.6652105", "0.6633482", "0.6448062", "0.6420282", "0.6417923", "0.6350167", "0.61668175", "0.6151628", "0.6122343", "0.6043931", "0.5951478", "0.59504956", "0.5938497", "0.5912039", "0.5912039", "0.5911334", "0.59095865", "0.58977115", "0.5892899", "0.5867314",...
0.5390279
54
Format given datetime as RFC3339 datetime string.
def QnRX(Emd4, Csk6: dt.datetime) -> str: assert Csk6.tzinfo is None, 'timezone handling not supported (TODO)' return Csk6.strftime(Emd4._FMT_DATETIME)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r5lY(JRYC):\n agcF(JRYC)\n bfRL = JRYC.replace(tzinfo=yl4j.tzutc())\n return bfRL.isoformat()", "def r4Aq(_c1T):\n return r5lY(_c1T)", "def wr0B(qcWV):\n if qcWV.tzinfo is None:\n qcWV = qcWV.astimezone(rIAI.utc)\n Ylbp = qcWV.isoformat()\n if Ylbp.endswith('+00:00'):\n r...
[ "0.8330267", "0.7915886", "0.7868289", "0.7809122", "0.77722484", "0.7623973", "0.7531859", "0.74640536", "0.7281", "0.7179341", "0.7171504", "0.7124749", "0.7035861", "0.70295626", "0.6995042", "0.69839686", "0.6876148", "0.6868858", "0.68636245", "0.6848838", "0.68402493", ...
0.7020482
14
Format given datetime as RFC3339 datetime string.
def zXI3(Emd4, Csk6: dt.date) -> str: return Csk6.strftime(Emd4._FMT_DATE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r5lY(JRYC):\n agcF(JRYC)\n bfRL = JRYC.replace(tzinfo=yl4j.tzutc())\n return bfRL.isoformat()", "def r4Aq(_c1T):\n return r5lY(_c1T)", "def wr0B(qcWV):\n if qcWV.tzinfo is None:\n qcWV = qcWV.astimezone(rIAI.utc)\n Ylbp = qcWV.isoformat()\n if Ylbp.endswith('+00:00'):\n r...
[ "0.8330267", "0.7915886", "0.7868289", "0.7809122", "0.77722484", "0.7623973", "0.7531859", "0.74640536", "0.7281", "0.7179341", "0.7171504", "0.7124749", "0.7035861", "0.70295626", "0.7020482", "0.6995042", "0.69839686", "0.6876148", "0.6868858", "0.68636245", "0.6848838", ...
0.0
-1
Get value deeply from nested dictionaries/lists/tuples
def cCkJ(nPrm: dict, *sjXb, WmM4=jwRE): for H5ew in sjXb: if isinstance(nPrm, dict) and H5ew in nPrm: nPrm = nPrm[H5ew] elif isinstance(nPrm, (list, tuple)) and isinstance(H5ew, int) and (0 <= H5ew < len(nPrm)): nPrm = nPrm[H5ew] elif WmM4 is jwRE: raise K...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(Csk6):\n return next(iter(Csk6.values())) if isinstance(Csk6, dict) else Csk6[0]", "def cL7e(Csk6, id):\n if not isinstance(id, (list, tuple)):\n id = (id,)\n ycBG = Csk6\n for H5ew in id:\n ycBG = ycBG[H5ew]\n return ycBG", "def Metp(tczJ, rLkG):\n if not isinstance(tc...
[ "0.6861109", "0.6783514", "0.67411464", "0.6694253", "0.6649572", "0.66464895", "0.66380155", "0.6628079", "0.65723217", "0.65431494", "0.6437271", "0.6419828", "0.6402282", "0.63721734", "0.63073814", "0.62871885", "0.6283705", "0.62696594", "0.62309164", "0.62305385", "0.61...
0.570509
67
Propagate the query_time information found on the VersionedQuerySet object to the given table or on table on which we have filtered on. When relation_table is given it will be used and a clause will be added to the generated query so that the matching object found on the given relation_table will be restricted to the q...
def IgGC(YKHO, KKSV=None): if KKSV: _PbE = [KKSV] else: _PbE = YKHO.related_table_in_filter W9XT = YKHO.query_time QAsn = [] NArs = [] for KKSV in _PbE: if W9XT: QAsn.append('{table}.version_start_date <= %s\n AND ({table}.version_end_da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n SR0I = super(Ckig, YKHO).get_queryset()\n if YKHO.instance.as_of is not None:\n SR0I = SR0I.as_of(YKHO.instance.as_of)\n return SR0I.propagate_querytime(YKHO.through._meta.db_table)", "def gpFe(ICGX, wvau):\n uIKN = GEpG(ICGX, wvau)\n\n class VersionedManyRelatedManager(uI...
[ "0.6533791", "0.5116", "0.50599605", "0.48638028", "0.47984847", "0.47350943", "0.4696353", "0.4696353", "0.46212605", "0.45490074", "0.44601163", "0.44367895", "0.43885434", "0.4367726", "0.434791", "0.42947328", "0.42524493", "0.42370418", "0.42278862", "0.42054653", "0.419...
0.86334383
0
This method saves changes made to the model to the database. By default, it just calls the save method of the Django model class. However, if either create_new_version or the SAVE_CREATES_VERSION setting is True, this will not change this model, but save any changes made to it to a new version.
def xkzz(YKHO, iMnL=None, *qIxc, **B2fa): if iMnL is None: try: iMnL = gCuF.SAVE_CREATES_VERSION except AttributeError: iMnL = False if not YKHO.pk: iMnL = False if iMnL: try: Etq1 = YKHO.__class__.objects.get(pk=YKHO.pk) except rIt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO):\n from models import storage\n YKHO.updated_at = qcWV.now()\n storage.new(YKHO)\n storage.save()", "def xkzz(YKHO) -> None:\n if YKHO.has_external_files:\n YKHO.save_external_files()\n if YKHO.hash_ is None:\n YKHO.hash_ = YKHO._hash()\n if YKHO.version is None:...
[ "0.6910891", "0.6814708", "0.6790788", "0.67205155", "0.67159", "0.6686562", "0.66301256", "0.6601088", "0.6522712", "0.6522696", "0.65124863", "0.6511549", "0.64662546", "0.6446557", "0.64302117", "0.642396", "0.63949513", "0.6387558", "0.63490295", "0.63318497", "0.63266176...
0.72632813
0
Validamos el campo categories
def qOCI(YKHO, nPrm): sfV2 = ',' A07C = nPrm.split(sfV2) LeZt = [] for id in A07C: Ghho = YdfJ.recipe_category(id) LeZt.append(Ghho) YKHO.context['categories'] = LeZt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pxcG(YKHO, Jyyj):\n if Jyyj.data == 0:\n raise sUXu('Please select a category')", "def qOCI(YKHO, LeZt: List[PageCategory]) -> None:\n assert len(LeZt) > 0\n for Ghho in LeZt:\n assert Ghho.page_name\n assert Ghho.category_name\n assert Ghho.category_url\n assert G...
[ "0.766515", "0.7150893", "0.7148497", "0.6898201", "0.684512", "0.6776521", "0.6721523", "0.6700979", "0.66619986", "0.6631986", "0.66184837", "0.65858024", "0.64870065", "0.647399", "0.64494616", "0.64279807", "0.64122003", "0.6375737", "0.63435835", "0.63368136", "0.6334063...
0.77811855
0
Yields the leaves of a dict (keys + values).
def B3Y3(nITe): if isinstance(nITe, dict): for H5ew, BWXx in nITe.items(): if isinstance(BWXx, dict): for Csk6 in B3Y3(BWXx): yield Csk6 else: yield (H5ew, BWXx) else: yield nITe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JOYj(J_Es: Mapping, NwZl=(), kCTv=False, KfGP: Callable[[tuple], bool]=None):\n if kCTv:\n for G1Hx, Ty9i in J_Es.items():\n G1Hx = (*NwZl, G1Hx)\n if not KfGP or KfGP(G1Hx):\n if isinstance(Ty9i, GySg):\n yield from JOYj(Ty9i, init_key=G1Hx, yi...
[ "0.7227922", "0.7041109", "0.67378473", "0.66678643", "0.66340804", "0.6588445", "0.651731", "0.642944", "0.6394254", "0.6388598", "0.6364378", "0.63060284", "0.63026625", "0.6284941", "0.62793297", "0.6275656", "0.6275656", "0.6231098", "0.6182425", "0.6164061", "0.61048216"...
0.6137329
20
Creates adjacency matrix from pytorch_geometric edge_index
def yHf3(EKkU, Gmfu, hB45=True, NkkI=True, begE=None): eQUr = ht2j.zeros((EKkU, EKkU)) mC4V = ht2j.stack((Gmfu[0], Gmfu[1]), 1) for rIMc, DWuz in mC4V: eQUr[rIMc, DWuz] = 1 if hB45: eQUr = eQUr + ht2j.eye(eQUr.size(0)) if NkkI: Csk6 = eQUr.sum(1) eQUr = eQUr / Csk6.vi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fyP7(Gmfu: torch.Tensor, begE: Optional[Device]='cpu') -> ht2j.Tensor:\n exwG = Gmfu.max() + 1\n k0lF = ht2j.zeros((exwG, exwG), device=begE).long()\n k0lF[tuple(Gmfu)] = 1\n return k0lF", "def LLlG(Gmfu, exwG):\n NxkS = oyIN.eye(exwG)\n NxkS[tuple(Gmfu.T)] = 1\n return NxkS", "def I0p...
[ "0.81022483", "0.79275596", "0.712187", "0.70256484", "0.691974", "0.6864109", "0.68182695", "0.67757994", "0.6731963", "0.6697866", "0.6690387", "0.6683268", "0.6655019", "0.6654575", "0.6607539", "0.65979916", "0.659071", "0.6588603", "0.6572165", "0.6547076", "0.65102303",...
0.7427447
2
given an array of numbers, return all unique triplets that sum up to target >>> threeSum([1,0,1,2,1,4], 0) [[1,1,2],[1,0,1]]
def KBgZ(xYvp, pan_): c1yg = [] xYvp.sort() for YRbF in range(len(xYvp) - 2): if YRbF > 0 and xYvp[YRbF] == xYvp[YRbF - 1]: continue c1yg += BxTh(xYvp[YRbF + 1:], xYvp[YRbF], pan_) return c1yg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AoSd(qw7D, _YfW):\n qw7D.sort()\n etCy = 0\n U5bT = []\n while etCy != len(qw7D) - 2:\n LFlW = etCy + 1\n _tIi = len(qw7D) - 1\n for or8S in range(LFlW, len(qw7D) - 1):\n if LFlW >= _tIi:\n break\n hs1B = qw7D[etCy] + qw7D[LFlW] + qw7D[_tIi]...
[ "0.7756767", "0.7391786", "0.73271847", "0.6872227", "0.67701054", "0.6673118", "0.6607037", "0.65391725", "0.64668185", "0.6464077", "0.6326843", "0.63061357", "0.62901", "0.6227193", "0.6225283", "0.62170494", "0.6212797", "0.6211752", "0.6206423", "0.6151299", "0.60828036"...
0.738097
2
This installs a noop Python SIGTERM handler to ensure that atexit functions are called. If there is already a SIGTERM handler, no new handler is installed.
def U1Pd(): DpUl = Gaon.getsignal(Gaon.SIGTERM) if DpUl == Gaon.SIG_DFL: Gaon.signal(Gaon.SIGTERM, wujy) return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BDaA(JfyU):\n Gaon.signal(Gaon.SIGTERM, JfyU)", "def GogP():\n\n def C_RK(Gaon, f4IJ):\n HwRy.exit(0)\n Gaon.signal(Gaon.SIGINT, C_RK)", "def GogP():\n o4ed.register(wyqm, 'exit')\n Gaon.signal(Gaon.SIGINT, VcU4)\n Gaon.signal(Gaon.SIGTERM, VcU4)\n Gaon.signal(Gaon.SIGHUP, VcU4)...
[ "0.75519377", "0.73309946", "0.72925144", "0.7189748", "0.71709615", "0.7155948", "0.715314", "0.71369594", "0.69902706", "0.6981385", "0.6969312", "0.6870573", "0.6857469", "0.68492967", "0.6825187", "0.6823172", "0.68023473", "0.6735392", "0.6722308", "0.6677631", "0.667763...
0.77912045
0
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "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.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
Check converting file names to driver.
def waqW(): for Ux0P in ['temp.mapchete', 'temp.tif', 'temp.jp2', 'temp.png', 'temp.vrt', 'temp.geojson', 'temp.shp']: assert b9k0(Ux0P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YIYl(YKHO):\n YKHO.assertEqual('.ovf', Ddeg.detect_type_from_name('/foo/bar/foo.ovf'))\n YKHO.assertEqual('.ova', Ddeg.detect_type_from_name('/foo/bar/foo.ova'))\n YKHO.assertEqual('.ovf', Ddeg.detect_type_from_name('/foo/bar/foo.ovf.5.2.2'))\n YKHO.assertLogged(levelname='WARNING', msg=\"found '.o...
[ "0.6354027", "0.62045276", "0.6124137", "0.6096962", "0.6069336", "0.6061811", "0.6061811", "0.6051346", "0.6007161", "0.59583956", "0.59458286", "0.59210587", "0.59077764", "0.58997846", "0.58904815", "0.58836424", "0.58783644", "0.5866992", "0.58659416", "0.5858609", "0.584...
0.7078592
0
Validate share tree input file leaf names against known drive cycles and phases.
def x20u(J_Es, Ux0P): uf05 = [] for kjp6 in J_Es.leaves(): kgsb = kjp6.identifier if not VIOT.validate_drive_cycle_id(kgsb): uf05.append('*** Invalid Policy Drive Cycle ID "%s" in %s ***' % (kgsb, Ux0P)) return uf05
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t457(YKHO):\n YKHO.paths.Validate()", "def xzCw(YKHO):\n if YKHO._is_validate:\n for LOks in YKHO.trees.values():\n if LOks is not None:\n if LOks.parent != YKHO:\n print('Child does not point to parent!')\n import pdb\n ...
[ "0.606087", "0.6050586", "0.5873366", "0.5826534", "0.58109117", "0.57989657", "0.57336664", "0.570717", "0.55979115", "0.55971867", "0.551607", "0.5510549", "0.55094564", "0.5496915", "0.5488127", "0.54432195", "0.54333997", "0.5408572", "0.53733087", "0.5330978", "0.5322964...
0.68046224
0
This function works with the `MockedResponse` class to simulate a successful API response.
def Q6_q(*qIxc, **B2fa): return HiyZ({'status': 'success'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C9X5() -> lzH7:\n return lzH7", "def qlrc(YKHO, YEnM, BWXx):\n YEnM.return_value = BWXx\n return YEnM", "def uC5L(jGRS, TBsA):\n MOPg = TMAJ.MagicMock(status=jGRS)\n return (MOPg, TBsA.encode())", "def ZG9D(hGN5, jGRS):\n geh0 = FM6F()\n geh0.content = hGN5\n\n def faXu():\n ...
[ "0.77177274", "0.7451793", "0.7368772", "0.73506755", "0.7272856", "0.7183679", "0.71760345", "0.71743333", "0.71669126", "0.71526945", "0.71526945", "0.71520907", "0.7081122", "0.69572324", "0.6934813", "0.69247496", "0.6916034", "0.68857586", "0.6852602", "0.68480885", "0.6...
0.7105087
12
This function works with the `MockedResponse` class to simulate a failed API response.
def TNSJ(*qIxc, **B2fa): return HiyZ({'status': 'error', 'message': 'There was an error', 'data': {'code': '500', 'type': 'error'}})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IIAf():\n return uC5L(500, 'Internal Server Error')", "def vIsf(YKHO):\n YKHO.set_mock_response(status_code=400, raw=b'{\\n \"status\": \"error\",\\n \"code\": 12,\\n \"name\": \"Error_Name\",\\n \"message\": \"Helpful explanation from Mandrill\"\\n ...
[ "0.7471646", "0.72393453", "0.71930164", "0.7176277", "0.7160903", "0.7152287", "0.7110283", "0.71023464", "0.70618296", "0.7056485", "0.7043384", "0.7034928", "0.7010834", "0.69945997", "0.69874984", "0.6982503", "0.69741917", "0.6964013", "0.6941128", "0.69347495", "0.69133...
0.68249387
27
This function works with the `MockedResponse` class to simulate a Bulk Data API JSON response.
def OxT9(*qIxc, **B2fa): return HiyZ({'records': []})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O7fJ(YKHO):\n ZQTu = {'foo': 'bar'}\n kSth = Epeb(200, ZQTu, 'application/json')\n UzPC = AEAp(kSth)\n geh0 = UzPC.send_get_request(oJbj)\n Bv0m = geh0.json()\n NaW5(ZQTu, Bv0m)", "def C9X5() -> lzH7:\n return lzH7", "def dc1q(YKHO):\n pass", "def M1Ac():\n WPJk = {'Id': 'X'}\n...
[ "0.652916", "0.6434661", "0.64163625", "0.6346108", "0.62870514", "0.6269168", "0.62673944", "0.6260751", "0.62512213", "0.6235126", "0.6220522", "0.62127304", "0.62074494", "0.62009627", "0.6148911", "0.6139642", "0.61096275", "0.60986584", "0.60703444", "0.60621184", "0.605...
0.7703283
0
Construct and return a backend instance of the appropriate type based on the arguments given. With no parameters, a single CPU core, float32 backend is returned.
def U0Nj(C3ST=None, wqL3=None, r6YL=False, cjjm=False, ZSIe=False, vaZI=False, wY8r=None, THVk=None, zqxI=False, mZIz=0, jf3N=None): bo34 = G9jH.getLogger(__name__) tv_r = False if cjjm and ZSIe: raise NotImplementedError('Hybrid parallelization scheme not implemented yet. Try with at most one ofda...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JLXL(*qIxc):\n if not len(qIxc) > 0:\n raise ValueError(' The function takes at least one parameter')\n if not len(set((type(jzdc) for jzdc in qIxc))) == 1:\n raise ValueError(mIEO.format([type(jzdc) for jzdc in qIxc]))\n if isinstance(qIxc[0], oyIN.ndarray):\n return UxOl()\n ...
[ "0.7046272", "0.6671182", "0.65545636", "0.64280456", "0.62868285", "0.6121761", "0.6075201", "0.5999476", "0.599411", "0.5960623", "0.59604436", "0.5945074", "0.5898406", "0.5893984", "0.5872778", "0.58298516", "0.58282006", "0.5801708", "0.5778269", "0.5748071", "0.57159364...
0.55150735
27
Return the password of Ixia API server.
def gu9l(EqSW, _WGT): r7J3 = EqSW[_WGT] return r7J3.host.options['variable_manager']._hostvars[r7J3.hostname]['secret_group_vars']['ixia_api_server']['password']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def AuKh(YKHO):\n if not getattr(YKHO, 'pass...
[ "0.83283377", "0.83283377", "0.83283377", "0.83283377", "0.81325257", "0.81277806", "0.81277806", "0.80150396", "0.80017334", "0.7930795", "0.7930795", "0.7887927", "0.7868903", "0.78614825", "0.7857357", "0.78245884", "0.7811688", "0.7811688", "0.7811688", "0.7811688", "0.77...
0.0
-1
BlackBox adversarial soft reward. Highest reward when `pred` for `targ` class is low. Use this reward to reinforce action gradients.
def OPzJ(nvEb, Lljz): DMkZ = ht2j.exp(nvEb) v6ln = nvEb[:, Lljz] pSfY = ht2j.ones_like(v6ln) Mkmy = pSfY - v6ln Mkmy = Mkmy.mean() return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UY98(nvEb, Lljz):\n nvEb = vuvg.softmax(nvEb, dim=1)\n yvT9 = nvEb.max(1, keepdim=True)[1]", "def xyVK(IFyQ, Q_m0):\n if IFyQ == Q_m0:\n RyIN = 1\n else:\n RyIN = 0\n return ht2j.tensor(RyIN).type(ht2j.FloatTensor).data", "def rtvB(QTBn: State, XeOP: Action, rxHc: State, *, vOG...
[ "0.68500197", "0.664067", "0.6592877", "0.6578855", "0.64632934", "0.63678694", "0.63471", "0.6292891", "0.62921804", "0.62911546", "0.62425256", "0.6241528", "0.62407124", "0.6232702", "0.6220719", "0.62019575", "0.6199418", "0.6174631", "0.6163792", "0.6163525", "0.61567396...
0.7864717
0
BlackBox adversarial 0/1 reward. 1 if predict something other than target, 0 if predict target. This reward should make it much harder to optimize a black box attacker.
def UY98(nvEb, Lljz): nvEb = vuvg.softmax(nvEb, dim=1) yvT9 = nvEb.max(1, keepdim=True)[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(ephx, _ins):\n return 1", "def vOGg(YKHO):\n pass", "def xyVK(YKHO):\n \"\"\"distance = np.sqrt(sum((self.target_pose - self.sim.pose[:3]) ** 2))\n reward = (1 / distance) * 5\n reward -= np.tanh(abs(self.sim.pose[0])) + np.tanh(abs(self.sim.pose[1]))\n \n return r...
[ "0.7071734", "0.69796395", "0.6960316", "0.6929944", "0.6814276", "0.67997104", "0.6790529", "0.6770965", "0.66694236", "0.66691226", "0.6627881", "0.6603941", "0.6573251", "0.6538695", "0.6533521", "0.6514313", "0.6510583", "0.65059865", "0.6492104", "0.6490859", "0.64846116...
0.0
-1
Constrain delta to l_infty ball
def xrdY(Ro40): return ht2j.sign(Ro40)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def riZZ():\n global ball_vel\n l4nO[0] *= -1\n if abs(l4nO[0]) < 35:\n l4nO[0] *= 1.1", "def neQZ(RA_F: torch.tensor):\n return ht2j.sum(ht2j.abs(RA_F))", "def gW98(YKHO):\n return epAf.sqrt(szJ_ / YKHO.a)", "def K33M(YKHO):\n if YKHO.speed != 0:\n YKHO.yd -= YKHO.yd / YKHO.s...
[ "0.6049583", "0.602284", "0.58287746", "0.58177483", "0.5790684", "0.57778955", "0.57280463", "0.5691022", "0.5650444", "0.56491387", "0.56450063", "0.56204176", "0.56042486", "0.5583102", "0.5547971", "0.55452377", "0.55305976", "0.5522613", "0.5522613", "0.5522052", "0.5513...
0.59649557
2
Generate samples of images with shapes and save tensor to disk. The saved tensor has shape (n_samples, 3, img_size, img_size).
def iPgu(Ylkb, cDK5, Ux0P): nPrm = ht2j.empty([cDK5, 3, Ylkb, Ylkb], dtype=ht2j.float32) for YRbF in range(cDK5): mvm2 = oyIN.array(kRFL(Ylkb)).transpose((2, 0, 1)) / 255.0 nPrm[YRbF] = ht2j.tensor(mvm2, dtype=ht2j.float32) ht2j.save(nPrm, BKva.join('data/', Ux0P))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PuY8(C3ST, Mq_a, cDK5=100):\n Hy7s.makedirs(Mq_a, exist_ok=True)\n p91O = []\n Ep8u = 100\n for YRbF in range(0, cDK5, Ep8u):\n p91O.append(C3ST.sample(Ep8u))\n print(f'sampled {YRbF + Ep8u} images.')\n Yw_3 = ht2j.cat(p91O, dim=0)\n for YRbF in range(cDK5):\n gXgy = Hy7s...
[ "0.71061426", "0.692729", "0.6728208", "0.6717917", "0.6606058", "0.6558409", "0.6531052", "0.6491823", "0.6473118", "0.6466046", "0.6456646", "0.6454997", "0.64536583", "0.6449052", "0.64473534", "0.6427867", "0.6423979", "0.64163995", "0.6413784", "0.640306", "0.6392036", ...
0.73758703
0
Judge the winner of the game by number of pieces for each player.
def pg_m(iBIi): GDCD = p1kx(iBIi, 1) EU2v = p1kx(iBIi, 2) if GDCD > EU2v + 2.5: return 1 elif GDCD < EU2v + 2.5: return 2 else: return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bHVe(YKHO):\n JGo6 = [0, 0]\n for LVAh in range(YKHO.size):\n for WKvO in range(YKHO.size):\n jNOo = [WKvO, LVAh]\n if YKHO.get_piece_at(jNOo) != q8RS.NONE:\n if len(q8RS.get_all_possible_moves(YKHO, jNOo)) > 0:\n if q8RS.is_white(YKHO, jNOo)...
[ "0.72004634", "0.70044166", "0.6864326", "0.6801305", "0.6774589", "0.67383033", "0.67383033", "0.672009", "0.66387194", "0.6638244", "0.6621891", "0.6615539", "0.66133124", "0.66107184", "0.6509685", "0.6508177", "0.65053964", "0.648818", "0.64773643", "0.64430445", "0.64389...
0.70094556
1
Loads the trained model from the model directory.
def JnVv(eG0V): bo34.info('Loading the model.') bo34.info(eG0V) begE = ht2j.device('cuda' if ht2j.cuda.is_available() else 'cpu') bo34.info('Current device: {}'.format(begE)) if begE == 'cuda': C3ST = ht2j.load(Hy7s.path.join(eG0V, 'model.pth')) else: C3ST = ht2j.load(Hy7s.path.j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IMdJ(YKHO, oTvY, cb_Q):\n pass", "def uyMl(YKHO, pmON):\n YKHO.model = ZylS.keras.models.load_model(pmON)", "def IMdJ():\n C3ST = OLvP()\n C3ST.load_weights(Yodb)\n return C3ST", "def uyMl(YKHO, pmON='./nnmodel.tflearn'):\n YKHO.model.load(pmON)", "def tyeH(YKHO, pmON):\n OuMq = YK...
[ "0.82492", "0.8195284", "0.80976945", "0.80765486", "0.804798", "0.8020959", "0.80167985", "0.8007363", "0.80021936", "0.7956183", "0.79518515", "0.7906088", "0.7896239", "0.7877262", "0.78766686", "0.7876503", "0.7857577", "0.7849771", "0.78494155", "0.78494155", "0.78494155...
0.0
-1
Draws the game objects, the images, the texts, and the labels to the view.
def JmFt(YKHO): if YKHO._state == ws9H: YKHO._background.draw(YKHO.view) YKHO._text.draw(YKHO.view) if YKHO._state == aeYm: YKHO.subdraw() if YKHO._state == UqMM: YKHO.subdraw() YKHO._end.draw(YKHO.view) YKHO._highscore = PTv8(text='YOUR SCORE IS: ' + str(YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO):\n CzUC.blit(YKHO.background, (0, 0))\n g74T.draw.rect(CzUC, ETiC['SILVER'], (20, 20, YDPm - 40, QKha - 40))\n CzUC.blit(YKHO.title, ((YDPm - YKHO.title_rect) / 2, 60))\n CzUC.blit(YKHO.inst1, ((YDPm - YKHO.inst_rect1) / 2, 120))\n CzUC.blit(YKHO.inst2, ((YDPm - YKHO.inst_rect2) / 2, ...
[ "0.76868623", "0.754589", "0.7544825", "0.7486266", "0.7473958", "0.7343809", "0.73433465", "0.7237946", "0.72376186", "0.7170029", "0.7138431", "0.71007735", "0.70997167", "0.7086929", "0.70862484", "0.705259", "0.7051233", "0.7028596", "0.7017212", "0.70020944", "0.69995624...
0.7067031
15
Calculate the ious between each bbox of bboxes1 and bboxes2.
def Eo7m(Bsc6, IUcw, Tuqy='iou', SGf8=1e-06, N7HL=False): assert Tuqy in ['iou', 'iof'] Bsc6 = Bsc6.astype(oyIN.float32) IUcw = IUcw.astype(oyIN.float32) usx6 = Bsc6.shape[0] WfCS = IUcw.shape[0] p9iZ = oyIN.zeros((usx6, WfCS), dtype=oyIN.float32) if usx6 * WfCS == 0: return p9iZ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kB1y(YKHO, wGB6, QFOH):\n k7mX = wGB6.size(0)\n pQ3z = QFOH.size(0)\n ewJg, Khbt = wGB6[:, :2].split(1, 1)\n Q9ku, J4l7 = (wGB6[:, :2] + wGB6[:, 2:4] / 1).split(1, 1)\n vSZT, WHlL = QFOH[:, :2].split(1, 1)\n guU_, QGiE = (QFOH[:, :2] + QFOH[:, 2:4] / 1).split(1, 1)\n Jw7X = (Q9ku.min(guU_....
[ "0.8019453", "0.8019453", "0.7956338", "0.772143", "0.7704595", "0.76862675", "0.7631901", "0.75726604", "0.75658506", "0.7552892", "0.75522196", "0.7540582", "0.75351816", "0.75225234", "0.7510376", "0.7478752", "0.74713916", "0.74613136", "0.7370439", "0.73085624", "0.72920...
0.70321447
52
Read a STACObject from a JSON file at the given source.
def eio9(YKHO, JZXy: Union[str, 'Link_Type'], tk5Y: Optional['Catalog_Type']=None) -> 'STACObject_Type': Csk6 = YKHO.read_json(JZXy) qvey = JZXy if isinstance(JZXy, str) else JZXy.get_absolute_href() return YKHO.stac_object_from_dict(Csk6, href=qvey, root=tk5Y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBvf(Ux0P):\n with open(Ux0P, encoding='utf-8') as Vf_1:\n zFiD = Vf_1.readline()\n M_Yt = qQXR.loads(zFiD)\n return M_Yt", "def PSj2(YKHO, JZXy: Union[str, 'Link_Type']) -> cuzp[str, ImMB]:\n FUjE = YKHO.read_text(JZXy)\n return YKHO._json_loads(FUjE, JZXy)", "def PSj2(Ux0P):\n ...
[ "0.6788486", "0.6487432", "0.6461729", "0.6445187", "0.63554615", "0.6309974", "0.6303259", "0.6297579", "0.62748146", "0.6266807", "0.62602395", "0.62527025", "0.6250026", "0.6228934", "0.62248063", "0.6156305", "0.6154016", "0.61482775", "0.6142679", "0.61169153", "0.611341...
0.62673384
9
Create a shallow copy of this Index. Primarily used when initializing models that subclass other abstract models or mixins (baseless classes that contain Columns and Indexes). You can override this method to
def FzJk(YKHO): Emd4 = YKHO.__class__ YEnM = Emd4.__new__(Emd4) YEnM.__dict__.update(YKHO.__dict__) YEnM.model = None YEnM._name = None YEnM.projection = {'mode': YKHO.projection['mode'], 'included': None, 'available': None, 'strict': YKHO.projection['strict']} if YKHO.projection['mode'] == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO) -> 'ModinIndex':\n o12l = YKHO._value\n if not callable(o12l):\n o12l = o12l.copy()\n return Hsr2(o12l)", "def tTee(YKHO) -> 'Index':\n return YKHO.copy()", "def jth9(YKHO) -> 'SymIndex':\n return VbgW(YKHO.unique_qnums.copy(), YKHO.ind_labels.copy(), YKHO.syms.copy())", ...
[ "0.7564578", "0.74910486", "0.7228577", "0.71862066", "0.7108829", "0.70641255", "0.6987555", "0.69411314", "0.6911345", "0.68983114", "0.6889359", "0.6856703", "0.6839265", "0.68317765", "0.68101037", "0.67734736", "0.67631423", "0.67631423", "0.67631423", "0.67631423", "0.6...
0.8001122
0
Name of the model's attr that references self
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._attr_name", "def mWFP(YKHO) -> str | None:\n return YKHO._attr_name", "def mWFP(YKHO) -> str:\n return f'{super().name} {YKHO._attribute}'", "def R8X1(YKHO):\n return YKHO._model_field_name or YKHO.attr_name", "def mWFP(YKHO):\n return YKHO.attribute.Name", "...
[ "0.83563995", "0.81576383", "0.8073709", "0.7794753", "0.7722742", "0.7372981", "0.73071796", "0.7266353", "0.7140654", "0.7068924", "0.7059854", "0.7053178", "0.7053178", "0.70506", "0.7026051", "0.70238936", "0.70238936", "0.7021217", "0.70095", "0.70095", "0.70095", "0.6...
0.0
-1
Create a shallow copy of this Column. Primarily used when initializing models that subclass other abstract models or mixins (baseless classes that contain Columns and Indexes). You can override this method to
def FzJk(YKHO): Emd4 = YKHO.__class__ YEnM = Emd4.__new__(Emd4) YEnM.__dict__.update(YKHO.__dict__) YEnM.model = None YEnM._name = None return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return OciN(YKHO.name, YKHO.type, YKHO.default, *[Z9rn.copy() for Z9rn in YKHO.constraints], key=YKHO.key, primary_key=YKHO.primary_key, nullable=YKHO.nullable, _is_oid=YKHO._is_oid, quote=YKHO.quote, index=YKHO.index)", "def _9K6(YKHO):\n return pGUH(YKHO._arr, metadata=YKHO.metadata, mi...
[ "0.82324594", "0.78541756", "0.7765946", "0.7556025", "0.7458296", "0.74398005", "0.7352363", "0.7313731", "0.7216983", "0.71307254", "0.7087242", "0.70435464", "0.69580287", "0.69517606", "0.6920209", "0.68538916", "0.68421656", "0.68421656", "0.68421656", "0.68421656", "0.6...
0.0
-1
Name of the model's attr that references self
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._attr_name", "def mWFP(YKHO) -> str | None:\n return YKHO._attr_name", "def mWFP(YKHO) -> str:\n return f'{super().name} {YKHO._attribute}'", "def R8X1(YKHO):\n return YKHO._model_field_name or YKHO.attr_name", "def mWFP(YKHO):\n return YKHO.attribute.Name", "...
[ "0.83580524", "0.8159219", "0.80760145", "0.7794863", "0.772441", "0.73728913", "0.7307442", "0.7268373", "0.7140839", "0.70705473", "0.706073", "0.70545727", "0.70545727", "0.70509523", "0.70274395", "0.7025525", "0.7025525", "0.70212996", "0.7010453", "0.7010453", "0.701045...
0.0
-1
Get the form groups in this domain
def MvIi(Emd4, zrIJ): t3vy = [] fskN = Emd4.objects.filter(domain=zrIJ).values_list('target_namespace', flat=True).distinct() for WpW2 in fskN: t3vy.append(Emd4.get_group_for_namespace(zrIJ, WpW2)) return t3vy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MvIi():\n return u8YN()", "def moMn(YKHO):\n return YKHO.view_data.get('groups') or []", "def MvIi(YKHO):\n return YKHO._get(url_suffix='groups/').get('data')", "def moMn(YKHO):\n return cQ68.all_in_domain(YKHO)", "def moMn(YKHO):\n return YKHO._data.get('groups', [])", "def MvIi(YKHO)...
[ "0.6987673", "0.6968489", "0.69440633", "0.69294435", "0.68574655", "0.68354213", "0.67858034", "0.67722225", "0.673247", "0.673247", "0.6720833", "0.67053634", "0.66839784", "0.66394275", "0.6613108", "0.6613108", "0.6613108", "0.6613108", "0.6613108", "0.6613108", "0.661310...
0.0
-1
Returns the total number of submission to this form.
def CdxK(YKHO): return RitE.objects.filter(attachments__form_metadata__formdefmodel=YKHO).count()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pGlJ(YKHO):\n return YKHO._submissions.find().count()", "def TRyc(YKHO):\n if YKHO.data or YKHO.files:\n return YKHO.management_form.cleaned_data['TOTAL_FORMS']\n else:\n if YKHO.initial_form_count() > 0:\n vLAJ = YKHO.initial_form_count()\n else:\n vLAJ = ...
[ "0.7331027", "0.7195736", "0.7195736", "0.7023017", "0.699995", "0.69637257", "0.6920038", "0.6753902", "0.6620001", "0.66126347", "0.65599763", "0.65599763", "0.65599763", "0.65599763", "0.65599763", "0.65599763", "0.65599763", "0.65599763", "0.65577376", "0.6553066", "0.655...
0.78373164
0
Override delete if the deletion of this object leaves a dangling data pointer then we want to get rid of that too to avoid unnecessary clutter in the DB.
def PTpj(YKHO, *qIxc, **B2fa): for lHJN in YKHO.fields.all(): if lHJN.columns.count() == 1: lHJN.delete() super(Ubet, YKHO).delete(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, Csk6):\n raise NotImplementedError()", "def PTpj(YKHO):\n raise NotImplementedError('Must extend this method')", "def PTpj(YKHO):\n raise NotImplementedError('Have to be implemented by sub-classes')", "def PTpj(YKHO):\n raise NotImplementedError", "def PTpj(YKHO):\n raise NotI...
[ "0.7521497", "0.7370802", "0.73552233", "0.7323661", "0.7323661", "0.7323661", "0.7323661", "0.7323661", "0.7323661", "0.7323661", "0.73155004", "0.7312907", "0.729843", "0.7289513", "0.72758627", "0.7273841", "0.7266057", "0.7258155", "0.7175403", "0.7158315", "0.7123334", ...
0.0
-1
Update the sql view object associated with this. This will create (or replace) the existing view and rebuild it based off of the forms and columns set.
def Mb6m(YKHO): LkQA = 'CREATE OR REPLACE VIEW %(view_name)s\n (%(column_list)s)\n AS \n %(select_statement)s;' xMGb = YKHO.columns.all() owX4 = ['form_id'] owX4.extend([iVRZ.name for iVRZ in xMGb]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mb6m(YKHO):\n raise NotImplementedError('update_view() needs to be implemented in derived class')", "def uHgi(YKHO, tTee):\n Pe9W = 'REFRESH MATERIALIZED VIEW %s.%s' % (YKHO.schema, tTee)\n YKHO.run_query(Pe9W)", "def pKHN(YKHO, mWFP, Pe9W):\n if not YKHO.enduser:\n raise bJqq('Cannot us...
[ "0.63151544", "0.62684935", "0.6253997", "0.62310135", "0.60085416", "0.5879391", "0.5870922", "0.5869517", "0.58630127", "0.5831471", "0.57727337", "0.57510793", "0.5723242", "0.5723242", "0.5717311", "0.5684576", "0.5670885", "0.56410515", "0.55864924", "0.55594605", "0.554...
0.75955683
0
Initializes the RoBERTaForMaskedLM transformer
def EQU7(YKHO): YKHO.mlm = ZaFa.from_pretrained(YKHO.model) YKHO.mlm.eval()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, GPtr: GPTJConfig):\n super().__init__()\n YKHO.config = GPtr\n YKHO.transformer = zuuf(GPtr, include_layer_norm=False)\n YKHO.lm_head = hlvc(GPtr)", "def FIMM(YKHO, Sqyf):\n super(HH8c, YKHO).__init__()\n YKHO.seq_module = Sqyf", "def FIMM(YKHO, Sqyf):\n super(HH8c, YKHO).__...
[ "0.61818826", "0.61168325", "0.61168325", "0.61168325", "0.61168325", "0.6005876", "0.59696084", "0.5888667", "0.58486843", "0.5797618", "0.5792247", "0.57180464", "0.57143867", "0.5688733", "0.5663242", "0.5660632", "0.5656628", "0.5614735", "0.55951077", "0.55702966", "0.55...
0.61346954
1
Returns the current org_id
def fHF0(YKHO): return YKHO.__org_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g9KT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'org_id')", "def g9KT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'org_id')", "def g9KT(YKHO) -> int:\n return YKHO._org_id", "def g9KT(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'org_id')", "def g9KT(YKHO) -> qe4Y.Input[...
[ "0.8713239", "0.8713239", "0.8453258", "0.8358429", "0.8358429", "0.8279333", "0.8279333", "0.78392416", "0.73592496", "0.7299518", "0.7264254", "0.7257302", "0.7244877", "0.7233928", "0.7119319", "0.70850456", "0.7030908", "0.69013065", "0.68979836", "0.6862843", "0.6815349"...
0.8593373
2
Creates and saves a superuser with the given username and password.
def Zp54(YKHO, BaHi, jTXt): CBIr = YKHO.create_user(BaHi, password=jTXt) CBIr.is_staff = True CBIr.is_superuser = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr", "def Zp54(YKHO, NtEF, jTXt):\n ...
[ "0.82415175", "0.8127792", "0.8040305", "0.8040305", "0.8036757", "0.8027549", "0.8015116", "0.8014595", "0.80103695", "0.80103695", "0.7991676", "0.7967237", "0.7966765", "0.7960559", "0.79472005", "0.7932018", "0.7927907", "0.7924215", "0.79133046", "0.7905284", "0.79045284...
0.7644636
65
Returns an unpacked list of arguments as a tuple instead The opposite of the operator
def K7Zp(*WKvO): return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ooAH(qIxc):\n Ylbp = []\n for d7pR in qIxc:\n if not isinstance(d7pR, tuple):\n Ylbp.append(d7pR)\n else:\n Ylbp.append(type(d7pR[0]).__getitem__(d7pR[0], ooAH(d7pR[1:])))\n return tuple(Ylbp)", "def XMpf(*qIxc):\n return tuple(qIxc)", "def vqs0(qIxc):\n i...
[ "0.75529206", "0.7436834", "0.7382631", "0.72482765", "0.71463126", "0.71279263", "0.7006091", "0.6965083", "0.69226485", "0.6921254", "0.6878786", "0.6851393", "0.67877203", "0.6733667", "0.66916835", "0.6649254", "0.6638473", "0.66341895", "0.66256607", "0.65826726", "0.652...
0.6542362
20
Assert that given json is unchanged under roundrobin (de)serialization.
def qR_y(nPrm, nmzA): yR_P = nmzA.build(nPrm) oAiD = yR_P.dump() assert oAiD == d7mG(nPrm)['data']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RYPc():\n zXzD = {'data': 'blah', 'identifier': 'some.json', 'completed': True}\n nPrm = zXzD.copy()\n X9Rj = nPrm.copy()\n X9Rj['data'] = qQXR.dumps(nPrm)\n for Csk6 in (nPrm, qQXR.dumps(nPrm), X9Rj):\n aEqx = 'blah' if Csk6 != X9Rj else qQXR.loads(X9Rj['data'])\n zZ1q, KQOt, WeNi...
[ "0.6811919", "0.6801543", "0.6620024", "0.6397442", "0.62810594", "0.6243957", "0.6243957", "0.61895406", "0.61026996", "0.6096767", "0.6069926", "0.6068397", "0.6003237", "0.5995381", "0.59932476", "0.5960621", "0.5946704", "0.5942749", "0.58916473", "0.5879426", "0.5851611"...
0.0
-1
Clear the nodes and edges of the network, without clearing the other elements in the layer.
def Y7Bk(YKHO): YKHO.clear_nodes() YKHO.clear_edges() YKHO.clear_nodelabels() YKHO.clear_edgelabels()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7Bk(YKHO):\n YKHO.adj.clear()\n YKHO.node.clear()\n YKHO.graph.clear()", "def Y7Bk(YKHO):\n YKHO._adj.clear()\n YKHO._node.clear()\n YKHO.graph.clear()", "def Y7Bk(YKHO):\n YKHO._nodes = set()\n YKHO._name_to_nodes = {}\n YKHO._obj_to_nodes = {}\n YKHO._obj_name_to_nodes = {}...
[ "0.7893928", "0.77852297", "0.7751931", "0.77508575", "0.7674001", "0.7674001", "0.76702684", "0.76061904", "0.7565345", "0.75455517", "0.7470821", "0.74601704", "0.7425733", "0.74017483", "0.7383976", "0.7382111", "0.73436624", "0.7320282", "0.72215843", "0.7176997", "0.7170...
0.8159937
0
Return a well formatted list. Basicaly, it's sort a list and remove duplicate.
def format(YKHO): try: return sorted(list(set(YKHO.main)), key=str.lower) except TypeError: return YKHO.main
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DaEM(IqQl):\n return list(U8Lr.fromkeys(IqQl))", "def FLOg(YKHO, w_3R):\n zdB2 = []\n for ZfUD in w_3R:\n if not zdB2:\n zdB2.append(ZfUD)\n elif zdB2[-1] != ZfUD:\n zdB2.append(ZfUD)\n return zdB2", "def PEZO(Zuws):\n vC9B = []\n for YRbF in Zuws:\n ...
[ "0.7146119", "0.71149755", "0.70000875", "0.68478364", "0.6843909", "0.68021", "0.67746544", "0.6728418", "0.67197514", "0.66774946", "0.6614965", "0.6614109", "0.6607661", "0.6594866", "0.65939134", "0.6590856", "0.65867233", "0.65621966", "0.6541101", "0.65174025", "0.65052...
0.0
-1
Return a well formatted list. With the key_method as a function/method to format the elements before sorting.
def mmjm(YKHO, bY67, gxEw=False): try: return sorted(list(set(YKHO.main)), key=bY67, reverse=gxEw) except TypeError: return YKHO.main
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n if AGcW:\n YKHO._validate()\n if not YKHO:\n return '{}'\n sjXb = YKHO.keys()\n sjXb.sort()\n return '{%s}' % ', '.join(map(repr, sjXb))", "def zAg0(YKHO):\n if AGcW:\n YKHO._validate()\n if not YKHO:\n return '{}'\n sjXb = YKHO.keys()\n sj...
[ "0.6343564", "0.6150224", "0.61414224", "0.6118959", "0.6100229", "0.60458803", "0.6015555", "0.6009363", "0.6009363", "0.6009363", "0.6009363", "0.59810096", "0.5960733", "0.5942422", "0.59171814", "0.5893592", "0.5870253", "0.5863445", "0.58164537", "0.5810021", "0.579177",...
0.7024959
0