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 |
|---|---|---|---|---|---|---|
Return the current size of internal memory. | def szAg(YKHO):
return len(YKHO.memory) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R8e4(YKHO) -> int:\n return len(YKHO.mem)",
"def R8e4(YKHO):\n return YKHO.bf.memory()",
"def ZGo4(YKHO):\n return YKHO.xlist('get-memsize')[1][0] * 1024",
"def zNig(YKHO):\n zNig = 0\n zNig += YKHO.data.size * HwRy.getsizeof(YKHO.data)\n return zNig / 1024.0 / 1024.0 / 1024.0",
"def ... | [
"0.8573752",
"0.82169205",
"0.8200361",
"0.8087402",
"0.8021614",
"0.7890747",
"0.78219426",
"0.78017354",
"0.77905464",
"0.7758844",
"0.77559924",
"0.77559924",
"0.775519",
"0.77544576",
"0.7733221",
"0.7732168",
"0.7720068",
"0.77145016",
"0.77092093",
"0.77077913",
"0.7697... | 0.75127405 | 57 |
Create a WeMoDevice instance. | def uKUu(jo6F, RG9D):
Emd4 = getattr(uMiY, RG9D)
begE = KlG8(Emd4, instance=True)
begE.host = UMmp
begE.port = oSkP
begE.name = JokJ
begE.serial_number = hYB3
begE.model_name = RG9D.replace('LongPress', '')
begE.udn = f'uuid:{begE.model_name}-1_0-{begE.serial_number}'
begE.firmware_v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T5DB(YKHO):\n wN9s = YKHO.options.device\n YKHO.log.info('Looking for %s', wN9s)\n D8Ke = G_0M(wN9s)\n if not Stt4(D8Ke):\n try:\n D8Ke = (yield jLL7(wN9s))\n except GGmw.error as ex:\n YKHO.log.warn('Hostname lookup failed for %s: %s', wN9s, aTqo)\n r... | [
"0.6979325",
"0.6969494",
"0.69279915",
"0.6697995",
"0.64664435",
"0.64664435",
"0.64532006",
"0.6452956",
"0.61701924",
"0.6123077",
"0.60617",
"0.6022968",
"0.6019177",
"0.6003418",
"0.5994704",
"0.59622884",
"0.59211713",
"0.5915887",
"0.5875939",
"0.5863109",
"0.58471197... | 0.7106339 | 0 |
takes in single channel image and returns its filtered image | def yxsS(VXjJ, UbdU=40.0):
EMFI = XC5k.dft(oyIN.float32(VXjJ), flags=XC5k.DFT_COMPLEX_OUTPUT)
z8O2 = oyIN.fft.fftshift(EMFI)
ZHfW = oyIN.zeros((VXjJ.shape[0], VXjJ.shape[1], 2), dtype=oyIN.uint8)
ITgn = (int(VXjJ.shape[0] / 2), int(VXjJ.shape[1] / 2))
ejx_, Nyyq = oyIN.ogrid[:VXjJ.shape[0], :VXjJ.sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O3Tr(LNo8):\n hlel = oyIN.array(LNo8)\n for WKvO in Ni9Y(0, 1):\n aTRb = XC5k.bilateralFilter(hlel, 5, 75, 75)\n return aTRb",
"def Iwgw(VXjJ):\n return XC5k.bilateralFilter(VXjJ, 9, 50, 50)",
"def sE9r(LNo8: Image) -> hnIv:\n LNo8 = LNo8.filter(x5w2.Kernel(size=(3, 3), kernel=(1, 0, ... | [
"0.7590697",
"0.7579986",
"0.74054664",
"0.7184011",
"0.7175308",
"0.7068393",
"0.706228",
"0.69902253",
"0.69761366",
"0.6754231",
"0.67055255",
"0.66707313",
"0.66542345",
"0.6605028",
"0.6521483",
"0.6521347",
"0.6521347",
"0.65176535",
"0.6515441",
"0.6492547",
"0.6485968... | 0.0 | -1 |
Create a negative path from the source to a random neighbor. | def RH24(YKHO, qpft, pmON):
Oa1e, Csk6 = (YKHO._graphs[qpft], YKHO._distances[qpft])
JZXy, xi3E = (pmON[0], pmON[-1])
Y9VY, x3di, Tm2h = (6, 4, 3)
A_IW = jHsn.single_source_shortest_path_length(Oa1e, JZXy, cutoff=Y9VY)
A_IW = [G1Hx for G1Hx, Ty9i in A_IW.items() if Ty9i >= x3di]
deVW = [Q6kx for... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yuk8(YKHO, qpft, pmON):\n Oa1e, Csk6 = (YKHO._graphs[qpft], YKHO._distances[qpft])\n vgXP = oyIN.random.randint(1, len(pmON) - 1)\n JZXy, xi3E = (pmON[vgXP], pmON[-1])\n Y9VY, x3di, Tm2h = (6 - vgXP, 4 - vgXP, 3)\n A_IW = jHsn.single_source_shortest_path_length(Oa1e, JZXy, cutoff=Y9VY)\n A_IW... | [
"0.6949671",
"0.6315474",
"0.5942192",
"0.5929039",
"0.5828919",
"0.56675005",
"0.56124395",
"0.5601444",
"0.5512754",
"0.54970336",
"0.5454087",
"0.5393641",
"0.5342276",
"0.5340866",
"0.5325405",
"0.52940774",
"0.529315",
"0.5278507",
"0.52612984",
"0.5237378",
"0.52128506"... | 0.6671322 | 1 |
Create a negative path that starts along the path then goes to a random neighbor. | def yuk8(YKHO, qpft, pmON):
Oa1e, Csk6 = (YKHO._graphs[qpft], YKHO._distances[qpft])
vgXP = oyIN.random.randint(1, len(pmON) - 1)
JZXy, xi3E = (pmON[vgXP], pmON[-1])
Y9VY, x3di, Tm2h = (6 - vgXP, 4 - vgXP, 3)
A_IW = jHsn.single_source_shortest_path_length(Oa1e, JZXy, cutoff=Y9VY)
A_IW = [G1Hx fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RH24(YKHO, qpft, pmON):\n Oa1e, Csk6 = (YKHO._graphs[qpft], YKHO._distances[qpft])\n JZXy, xi3E = (pmON[0], pmON[-1])\n Y9VY, x3di, Tm2h = (6, 4, 3)\n A_IW = jHsn.single_source_shortest_path_length(Oa1e, JZXy, cutoff=Y9VY)\n A_IW = [G1Hx for G1Hx, Ty9i in A_IW.items() if Ty9i >= x3di]\n deVW ... | [
"0.67538655",
"0.6313133",
"0.6284355",
"0.627728",
"0.6218492",
"0.6182821",
"0.61107945",
"0.6069016",
"0.5802694",
"0.5775509",
"0.5691818",
"0.56777906",
"0.5651772",
"0.5632896",
"0.56143737",
"0.5603061",
"0.554976",
"0.55230093",
"0.5520119",
"0.5504714",
"0.54974747",... | 0.6926614 | 0 |
Create a negative path by swapping one of the viewpoints randomly. | def PWu0(YKHO, qpft, pmON):
e_du = pmON[:]
w6nK = oyIN.random.randint(len(e_du))
o0Qa = oyIN.random.choice(list(YKHO._viewpoints[qpft] - set(pmON)))
e_du[w6nK] = o0Qa
return e_du | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r3Zb(YKHO):\n cntZ = tuKI.randrange(len(YKHO.path))\n CsFy = tuKI.choice([YRbF for YRbF in range(len(YKHO.path)) if YRbF != cntZ])\n jbXL = YKHO.path[cntZ]\n YKHO.path[cntZ] = YKHO.path[CsFy]\n YKHO.path[CsFy] = jbXL",
"def o0DT(Lx35, d6pt):\n X5vR = tuKI.randint(1, max(0, len(Lx35[d6pt][2]... | [
"0.6211992",
"0.6139775",
"0.6108279",
"0.579733",
"0.56937534",
"0.5638884",
"0.5549893",
"0.5543935",
"0.55129814",
"0.5506386",
"0.54785573",
"0.54631406",
"0.5439866",
"0.5413279",
"0.5412733",
"0.53877205",
"0.5377846",
"0.5355373",
"0.53548074",
"0.5347682",
"0.53378224... | 0.67209977 | 0 |
Get features for a given path. | def L27F(YKHO, qpft, pmON, GppF):
f5cH = uJUl(YKHO._graphs[qpft], pmON, GppF)
G6HS = f5cH[1:] + [f5cH[-1]]
j5Ue = min(len(pmON), YKHO._max_path_length)
shMh, qlBB, VdmT = ([], [], [])
for zLQ8, IO9i in enumerate(pmON[:j5Ue]):
H5ew = qpft + '-' + IO9i
bySB, oUSw = YKHO._pano_features_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cwgi(pmON):\n nPrm, JvR2, gIsw = yLtf(pmON)\n bySB = TjOV(nPrm, JvR2)\n return [gIsw] + bySB",
"def tGZA(vOGA: str) -> a1PO.Dict[str, ht2j.Tensor]:\n UiEM = DWkG(vOGA)\n with ht2j.no_grad():\n return mEju(UiEM)",
"def uA4Y(R4rN):\n if not Hy7s.path.exists(Hy7s.path.join(R4rN, f'0_f... | [
"0.79351115",
"0.6615956",
"0.645515",
"0.6429322",
"0.6428331",
"0.6403526",
"0.63582647",
"0.6303315",
"0.6202913",
"0.6200943",
"0.6167978",
"0.61569124",
"0.6139376",
"0.61316806",
"0.6129238",
"0.61110646",
"0.61109895",
"0.60972047",
"0.6086738",
"0.6076351",
"0.6050064... | 0.63635606 | 6 |
Returns the area of the square | def f0tD(YKHO):
return int(YKHO.__size) * int(YKHO.__size) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FmDM(HEZd):\n return HEZd ** 2",
"def f0tD(YKHO):\n return YKHO.__width * YKHO.__height",
"def f0tD(TVTK, H2v2):\n return TVTK * H2v2",
"def f0tD(YKHO):\n f0tD = YKHO.__width * YKHO.__height\n return f0tD",
"def BHTL(YKHO):\n jzdc, Fg_i = YKHO.sides\n f0tD = jzdc * Fg_i\n print(... | [
"0.82916456",
"0.8142852",
"0.8130899",
"0.81287146",
"0.8103277",
"0.8081276",
"0.8078793",
"0.80734193",
"0.8035203",
"0.802752",
"0.802752",
"0.8023302",
"0.8011109",
"0.8005454",
"0.80037534",
"0.7954123",
"0.7944111",
"0.7944111",
"0.7944111",
"0.79368186",
"0.79368186",... | 0.7616927 | 66 |
Test that invalid URLs, or those that do not follow a specific format are not treated as a special case. | def MtCQ(YKHO, SIO6):
pzVU = ('www.example.com', 'invalid:/www.example.com')
for bD7m in pzVU:
Aofo = SIO6.run({'commits': [{'stats': {'total': 2}, 'message': 'subj\n\nThis is a long url: {}'.format(bD7m), 'sha': 'aa', 'url': ''}, {'stats': {'total': 2}, 'message': 'x' * 5, 'sha': 'aa', 'url': ''}]})[0]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bM42(YKHO):\n for bD7m in ['not-a-url', 'http://not-a-url', 'https://not-a-url']:\n yield (YKHO.check_url_raises, bD7m)",
"def Xnb7():\n bLaE = 'https://not-a-google-doc.com'\n assert KSw8(bLaE) is False",
"def jmRk():\n o9Mu = 'https://invalid.netloc.com/spreadsheets/d/AbCde1'\n asse... | [
"0.7551601",
"0.75008017",
"0.7416675",
"0.7350243",
"0.7282661",
"0.7188756",
"0.71761644",
"0.6950575",
"0.69120955",
"0.6846826",
"0.68459594",
"0.6837864",
"0.6835412",
"0.68341583",
"0.6830114",
"0.68287134",
"0.6804755",
"0.67899966",
"0.6771376",
"0.67198443",
"0.67002... | 0.6656918 | 23 |
Sign of the number; 1, 0 or 1 | def yy40(WKvO) -> int:
if WKvO > 0:
return 1
if WKvO < 0:
return -1
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zihr(mLGw: float):\n return 1 if mLGw >= 0 else -1",
"def VGrK(YKHO, FGW3):\n return eHkp(FGW3, 0)",
"def Zihr(YKHO):\n return 1 - 2 * YKHO._ltz()",
"def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n else:\n return -1",
"def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n ... | [
"0.84922457",
"0.8201882",
"0.8110207",
"0.807229",
"0.8038881",
"0.7961936",
"0.793839",
"0.78780055",
"0.78209555",
"0.7654399",
"0.74612725",
"0.7452525",
"0.72622633",
"0.7193294",
"0.70806974",
"0.7006637",
"0.69394064",
"0.6901046",
"0.68992543",
"0.6864174",
"0.6761238... | 0.58665586 | 73 |
Whether two floating point numbers are equal. Epsilon = 10^12 | def KQVf(WKvO: float, LVAh: float) -> bool:
return plSJ(WKvO - LVAh) < 10 ** (-12) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oilP(WKvO, LVAh):\n return abs(WKvO - LVAh) < eBM9",
"def C68P(TP50, fHZS):\n return round(TP50 - fHZS, 4) == 0.0",
"def WlB9(EBgd, HpuQ, eRdl=0.0001):\n n2Q1 = mLGw.fabs(EBgd[0] - HpuQ[0]) < eRdl\n SpII = mLGw.fabs(EBgd[1] - HpuQ[1]) < eRdl\n if n2Q1 and SpII:\n return True",
"def ... | [
"0.7790273",
"0.77249455",
"0.7590512",
"0.75876886",
"0.75591",
"0.75169545",
"0.7490431",
"0.74748975",
"0.744136",
"0.71324843",
"0.7114323",
"0.7081868",
"0.70735383",
"0.70727074",
"0.70311004",
"0.700937",
"0.6988842",
"0.6954459",
"0.69383615",
"0.6913378",
"0.6877883"... | 0.81073457 | 0 |
Whether one floating point is lesser than the other and not equal. | def dGBI(WKvO: float, LVAh: float) -> bool:
return not KQVf(WKvO, LVAh) and WKvO < LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D2pd(YKHO, jzdc: float, Fg_i: float) -> bool:\n return jzdc >= Fg_i - YKHO.tol * max(abs(jzdc), abs(Fg_i), 1.0)",
"def BHcV(WKvO: float, LVAh: float) -> bool:\n return not KQVf(WKvO, LVAh) and WKvO > LVAh",
"def HFDh(UXsi, c163):\n gdXy = d3Tn.to_nullable_float(UXsi)\n DWMs = d3Tn.to_nullable_f... | [
"0.7885711",
"0.77801955",
"0.766003",
"0.765407",
"0.76113784",
"0.7489459",
"0.7471796",
"0.7386086",
"0.7314204",
"0.72951937",
"0.7188735",
"0.714852",
"0.7093572",
"0.7043863",
"0.70429265",
"0.70106715",
"0.6941966",
"0.6901486",
"0.6901313",
"0.68965113",
"0.68830496",... | 0.8250106 | 0 |
Whether one floating point is lesser than the other and not equal. | def BHcV(WKvO: float, LVAh: float) -> bool:
return not KQVf(WKvO, LVAh) and WKvO > LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dGBI(WKvO: float, LVAh: float) -> bool:\n return not KQVf(WKvO, LVAh) and WKvO < LVAh",
"def D2pd(YKHO, jzdc: float, Fg_i: float) -> bool:\n return jzdc >= Fg_i - YKHO.tol * max(abs(jzdc), abs(Fg_i), 1.0)",
"def HFDh(UXsi, c163):\n gdXy = d3Tn.to_nullable_float(UXsi)\n DWMs = d3Tn.to_nullable_f... | [
"0.8250106",
"0.7885711",
"0.766003",
"0.765407",
"0.76113784",
"0.7489459",
"0.7471796",
"0.7386086",
"0.7314204",
"0.72951937",
"0.7188735",
"0.714852",
"0.7093572",
"0.7043863",
"0.70429265",
"0.70106715",
"0.6941966",
"0.6901486",
"0.6901313",
"0.68965113",
"0.68830496",
... | 0.77801955 | 2 |
Haversine formula. Distance between two lat/lon points in meters. | def GeVo(gwqK: Position, yCTS: Position, r1VO: float) -> float:
H91H = yCTS.lon - gwqK.lon
n_9K = yCTS.lat - gwqK.lat
jzdc = YUNn(n_9K / 2) ** 2 + YhSR(gwqK.lat) * YhSR(yCTS.lat) * YUNn(H91H / 2) ** 2
return 2 * P099(PZyS(jzdc)) * r1VO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GeVo(GgQG, igSk, tk0B, TGuP):\n GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP])\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2\n Z9rn = 2 * Gqkf(PZyS(jzdc) / PZyS(1 - jzdc))\n Mkmy = 6371\n Csk6 = Z9rn * M... | [
"0.8449889",
"0.8395916",
"0.8379287",
"0.8367029",
"0.83662117",
"0.8363496",
"0.8362872",
"0.83386964",
"0.8327431",
"0.83269835",
"0.8287061",
"0.8269741",
"0.825335",
"0.82446206",
"0.8237512",
"0.8233819",
"0.82322216",
"0.8229987",
"0.82235116",
"0.8222867",
"0.8216212"... | 0.76495206 | 80 |
Initialize a premined blockchain for use by the test. Create a cache of a 200blocklong chain (with wallet) for MAX_NODES Afterward, create num_nodes copies from the cache. | def jCq5(YKHO, l_jd, EKkU, wsLY, OTw7=None, wIbz=None):
assert EKkU <= rolA
UHoW = False
for YRbF in range(rolA):
if not Hy7s.path.isdir(Hy7s.path.join(wsLY, 'node' + str(YRbF))):
UHoW = True
break
if UHoW:
YKHO.log.debug('Creating data directories from cached dat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, dD1L, Lnes):\n BZTK = n3Kt(0, '', [], [], [], 100, 0)\n YKHO.chain = [BZTK]\n YKHO.__open_transactions = []\n YKHO.__open_chipsactions = []\n YKHO.__open_messsactions = []\n YKHO.public_key = dD1L\n YKHO.__peer_nodes = set()\n YKHO.node_id = Lnes\n YKHO.resolve_conflicts =... | [
"0.6295902",
"0.61665285",
"0.59151757",
"0.5836084",
"0.5798645",
"0.57585114",
"0.5758475",
"0.5683243",
"0.5674482",
"0.56719446",
"0.56386983",
"0.55849296",
"0.557282",
"0.5552743",
"0.5531975",
"0.5500357",
"0.5483222",
"0.54699636",
"0.5445604",
"0.54446316",
"0.542925... | 0.6339188 | 0 |
Is this package in the output of 'pip freeze'? | def IJIM(hxGQ, VMFD):
mXDZ = '(?mi)^{pkg}==|#egg={pkg_under}-'.format(pkg=ZbWC.escape(hxGQ), pkg_under=ZbWC.escape(hxGQ.replace('-', '_')))
return bool(ZbWC.search(mXDZ, VMFD)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VkVL(hxGQ: str) -> bool:\n try:\n return VtVP(hxGQ) is not None\n except ModuleNotFoundError:\n return False",
"def u69C(mWFP):\n oUZx = [HwRy.executable, '-m', 'pip', 'show', '--quiet', mWFP]\n with open(Hy7s.devnull, 'w') as EaG3:\n jGRS = Yn3K.call(oUZx, stderr=EaG3)\n ... | [
"0.7385979",
"0.73618233",
"0.7319043",
"0.7116039",
"0.7111637",
"0.7095251",
"0.7034042",
"0.70042217",
"0.7000459",
"0.69762516",
"0.69757324",
"0.69757324",
"0.6974673",
"0.69583064",
"0.69517165",
"0.6942311",
"0.6926903",
"0.6890541",
"0.68792504",
"0.68278736",
"0.6719... | 0.6490038 | 29 |
Get Sparv data path from config file. | def m03a():
nPrm = {}
if AT41.is_file():
try:
with open(AT41, encoding='utf-8') as eHNT:
nPrm = eJb6.load(eHNT, Loader=eJb6.FullLoader)
except:
nPrm = {}
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s8df(mWFP):\n Rf_J = open('config.json').read()\n nPrm = qQXR.loads(Rf_J)\n return Hy7s.path.expanduser(nPrm[mWFP]['data_path'])",
"def lqQH(YKHO):\n if Hy7s.path.exists(YKHO._config_path):\n if vpop.ConfigFactory.parse_file(YKHO._config_path):\n return Hy7s.path.realpath(YKHO._... | [
"0.6566849",
"0.65321064",
"0.6358356",
"0.6332933",
"0.6307411",
"0.62524223",
"0.62229335",
"0.62165177",
"0.61986035",
"0.61933744",
"0.6170848",
"0.6089747",
"0.60827637",
"0.60757047",
"0.6057296",
"0.6017485",
"0.601708",
"0.5993128",
"0.59785646",
"0.5962027",
"0.59534... | 0.59009796 | 27 |
Get location of directory containing Sparv models, binaries and other files. | def s8df(_o7t: Union[str, Path]='') -> h8nf[GkAb]:
global data_dir
if not h_xa:
fVou = Hy7s.environ.get(Ntu_) or m03a().get('sparv_data')
if fVou:
h_xa = GkAb(fVou).expanduser()
if _o7t and h_xa:
return h_xa / _o7t
elif _o7t:
return GkAb(_o7t)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oEge():\n return Hy7s.path.join(qCfz.base_dir(), 'model')",
"def LLgG():\n return Hy7s.path.abspath(Hy7s.path.join(Rip8(), 'bin/'))",
"def kmfe(YKHO):\n return Hy7s.path.join(YKHO.checkpoint_dir, YKHO.model_dir)",
"def sP2q(YKHO):\n return QMOX.get_install_dir(YKHO) + '/madgraph4/src'",
"de... | [
"0.68704474",
"0.6758443",
"0.67347515",
"0.6670471",
"0.6602026",
"0.6587618",
"0.65568507",
"0.6503984",
"0.6472025",
"0.64619815",
"0.6435073",
"0.64157987",
"0.6393991",
"0.63832104",
"0.6375732",
"0.6373274",
"0.6342713",
"0.63319594",
"0.6326641",
"0.63038784",
"0.62744... | 0.0 | -1 |
Transforms a variable sized list of arrays to a rectangular array by padding the arrays accordingly with the given padding value. | def XSUz(nPrm: List[np.ndarray], fRI8) -> x1iM[ZylS.Tensor]:
LkVj = oyIN.array([0, oyIN.max(list((lmlm.shape[0] for lmlm in nPrm)))]).reshape((1, -1))
return list((ZylS.pad(lmlm, paddings=LkVj - oyIN.array((0, len(lmlm))), mode='CONSTANT', constant_values=fRI8) for lmlm in nPrm)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R9cP(yqD4, kjOt='edge', JRYC='float32'):\n fcYF = len(yqD4)\n Kmcr = max(map(lambda WKvO: WKvO.shape[0], yqD4))\n sjdr = yqD4[0].shape[1:]\n EcVT = oyIN.zeros((fcYF, Kmcr) + sjdr, JRYC)\n for YRbF, WKvO in enumerate(yqD4):\n TocD = (Kmcr - WKvO.shape[0]) // 2\n REHY = Kmcr - (TocD ... | [
"0.69096273",
"0.66828376",
"0.6568966",
"0.65320784",
"0.65285623",
"0.6496416",
"0.64390767",
"0.64080936",
"0.6280034",
"0.62532794",
"0.6188187",
"0.6164986",
"0.61580384",
"0.61549556",
"0.61429626",
"0.6118807",
"0.61010903",
"0.6096081",
"0.607194",
"0.6065543",
"0.605... | 0.6143269 | 14 |
Get a list of openstack controllers Returns list of controller names see NDL_API for other details | def qVSn(YKHO):
KCHu = YKHO._NDL_API('getcontrollers', {})
return KCHu.split(',') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uuUY(YKHO):\n hlel = YKHO.run_json('/call show all')\n try:\n uuUY = hlel['Controllers']\n except KeyError:\n raise WncV('Output is missing Controllers segment')\n return [Z9rn['Response Data'] for Z9rn in uuUY]",
"def qVSn(YKHO):\n uuUY = list()\n try:\n RBVb, uuUY = Y... | [
"0.779671",
"0.73064417",
"0.6901195",
"0.6888313",
"0.6001293",
"0.59080946",
"0.58274674",
"0.5818716",
"0.57552016",
"0.5643199",
"0.55913943",
"0.5554745",
"0.55441964",
"0.54850614",
"0.5469831",
"0.5450695",
"0.53808284",
"0.5361371",
"0.5357271",
"0.532952",
"0.5313359... | 0.792972 | 0 |
Returns the minimax action using self.depth and self.evaluationFunction | def bk5W(YKHO, Ov5A):
"""*** YOUR CODE HERE ***"""
def WzEy(Ov5A, YWSi, rb7a, Cwt5, UqYS):
qzD7 = float('inf')
for XeOP in Ov5A.getLegalActions(YWSi):
U08W = Ov5A.generateSuccessor(YWSi, XeOP)
if YWSi == Ov5A.getNumAgents() - 1:
qzD7 = min(qzD7, BWXx(U08W... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\... | [
"0.7482665",
"0.7383559",
"0.71806973",
"0.7110041",
"0.70884514",
"0.70694935",
"0.70683014",
"0.7048308",
"0.70055133",
"0.69651455",
"0.69642085",
"0.69604385",
"0.6945924",
"0.68998593",
"0.6895832",
"0.688605",
"0.6826282",
"0.6767276",
"0.6758028",
"0.6751636",
"0.67054... | 0.6307419 | 78 |
Returns a Stream object wrapping the dataset at `path`. `chunk_size` is the size of the chunk in which values are yielded; the bigger the better, as long as it fits in the memory. If `num_samples` is specified, it returns up to that many elements. | def rTeK(YKHO, pmON, ztRo=1000000, eAYh=None, PJWX=False):
def eK5b(pmON, ztRo):
__n6 = YKHO.file[pmON]
if eAYh != None:
u54L = eAYh
else:
u54L = len(__n6)
vgXP = 0
while vgXP < u54L:
if u54L - vgXP > ztRo:
yOAJ = ztRo
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HebG(YKHO, pmON: pathlib.Path, ztRo: int=4096) -> bDy6[bytes]:\n with open(pmON, 'rb') as eHNT:\n yield eHNT.read(ztRo)\n yield eHNT.read()",
"def yq6u(eZ_W, ym_X=100000, j3aw=''):\n with g5R2.File(eZ_W, 'r', libver='latest') as eHNT:\n __n6 = eHNT[j3aw]\n for WKvO in range(... | [
"0.6306511",
"0.61508876",
"0.6149109",
"0.5949633",
"0.58010083",
"0.5604665",
"0.54888386",
"0.5464916",
"0.54498684",
"0.54498684",
"0.5439023",
"0.53936875",
"0.5352236",
"0.53444123",
"0.5337886",
"0.5295888",
"0.52500737",
"0.52484035",
"0.5240565",
"0.5201321",
"0.5185... | 0.73735285 | 0 |
Return a Stream object wrapping a concatenation od datasets at `paths`. Each dataset must be 1d or 2d (if 2d, then time is the vertical axis), and they are stacked as columns. In theory should be faster than multiple `stream_channel` and `merge` calls, but depends on the number of datasets and on the `chunk_size`. | def fziA(YKHO, ckRy, ztRo=10000000, PJWX=False):
def eK5b(ckRy, ztRo):
gMbG = [YKHO.file[pmON] for pmON in ckRy]
u54L = len(gMbG[0])
vgXP = 0
UUUJ = [__n6.shape[0] if __n6.ndim > 1 else 1 for __n6 in gMbG]
YxnI = sum(UUUJ)
LaVg = None
while vgXP < u54L:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zmX0(Emd4, ckRy, uPxI, **B2fa):\n JJXN = [open(pmON, 'rU') for pmON in ckRy]\n return Emd4.concatenate_from_streams(JJXN, uPxI, **B2fa)",
"def MPiJ(ckRy):\n if len(ckRy) == 1:\n return ckRy[0].copy()\n dQOE = oyIN.array([len(YRbF.vertices) for YRbF in ckRy])\n gQVb = oyIN.append(0.0, oy... | [
"0.64080966",
"0.6242597",
"0.61970395",
"0.6169942",
"0.58028203",
"0.57118344",
"0.53240854",
"0.5300275",
"0.529831",
"0.5271258",
"0.5241104",
"0.5220966",
"0.519327",
"0.5187537",
"0.51033413",
"0.50501066",
"0.50359243",
"0.50144637",
"0.50018805",
"0.49417612",
"0.4893... | 0.759247 | 0 |
Returns a numpy array of first `numElems` elements of the stream without consuming them from the stream. | def T7C_(YKHO, dV3k):
YKHO._ensureNumElems(dV3k)
XVAW = min(YKHO.head.shape[0], dV3k)
return YKHO.head[:XVAW] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ueki(YKHO, dV3k):\n YKHO._ensureNumElems(dV3k)\n XVAW = min(YKHO.head.shape[0], dV3k)\n Ylbp = YKHO.head[:XVAW]\n YKHO.head = YKHO.head[XVAW:]\n return Ylbp",
"def EBvd(JZXy, zNig):\n ARTs = JZXy()\n if zNig is None:\n return ARTs.next()\n return XTiz.asarray([ARTs.next() for b... | [
"0.70644504",
"0.56574523",
"0.55341256",
"0.5463243",
"0.5460688",
"0.5437747",
"0.5390174",
"0.5380804",
"0.5321297",
"0.5283705",
"0.52784705",
"0.5272602",
"0.52671504",
"0.5253575",
"0.5215722",
"0.5198634",
"0.51869345",
"0.51869345",
"0.5149594",
"0.5149594",
"0.514220... | 0.70416373 | 1 |
Consumes first `numElems` elements of the stream and returns a numpy array with them. 1d data is concatenated, 2d data is stacked vertically. | def Ueki(YKHO, dV3k):
YKHO._ensureNumElems(dV3k)
XVAW = min(YKHO.head.shape[0], dV3k)
Ylbp = YKHO.head[:XVAW]
YKHO.head = YKHO.head[XVAW:]
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGZu(*qIxc, ztRo=None):\n if ztRo == None:\n ztRo = qIxc[0].chunk_size\n\n def eK5b():\n while True:\n qYyF = []\n JVgm = []\n for XB4B in qIxc:\n zKV1 = XB4B.read(ztRo)\n if zKV1.shape[0] == 0:\n return\n ... | [
"0.5822116",
"0.5563216",
"0.5531794",
"0.54539394",
"0.54513526",
"0.54001474",
"0.5296485",
"0.5250147",
"0.52496076",
"0.51933104",
"0.5150464",
"0.51436824",
"0.5129348",
"0.5126586",
"0.508596",
"0.5084975",
"0.5050267",
"0.50400627",
"0.5027853",
"0.5010467",
"0.5008419... | 0.5975388 | 0 |
Place a piece (sprite) on the board | def mrj1(oQ6W, WKvO, LVAh):
global images
YRbF = 4 * oQ6W
r845 = Yw_3[oQ6W & 15] * 2
Rivs = oQ6W >> 4 & 1
aden.sprite(YRbF, WKvO, LVAh, r845, Rivs, 0)
aden.sprite(YRbF + 1, WKvO + 16, LVAh, r845 + 1, Rivs, 0)
aden.sprite(YRbF + 2, WKvO, LVAh + 16, r845 + 12, Rivs, 0)
aden.sprite(YRbF + 3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k7nQ(YKHO):\n YKHO.screen.blit(YKHO.image, YKHO.rect)",
"def dX33(YKHO, rdlD, fvDH, mrj1):\n YKHO.board[rdlD + pVtL][fvDH + pVtL] = mrj1",
"def MUHP(YKHO, BZN_, mrj1):\n if len(BZN_) > 1:\n YKHO.board[BZN_[1][0]][BZN_[1][1]] = ' '\n YKHO.board[BZN_[0][0]][BZN_[0][1]] = mrj1",
"def MUHP... | [
"0.75555396",
"0.7513637",
"0.7450242",
"0.74135655",
"0.7406118",
"0.7317528",
"0.7212788",
"0.7206841",
"0.71792126",
"0.7166997",
"0.71481895",
"0.6956051",
"0.69257796",
"0.68178844",
"0.68178844",
"0.6780405",
"0.669677",
"0.66774845",
"0.6633246",
"0.66113526",
"0.65779... | 0.7273403 | 6 |
Convenience function to get the path to the instance config. | def lTtI():
return gzes(gCuF.PROJECT_DIR, 'conf', 'eoxserver.conf') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmON(YKHO):\n return Hy7s.path.join(YKHO.config.get('path', Hy7s.getcwd()))",
"def _6VY(YKHO):\n return YKHO._cfg_path",
"def S673(YKHO):\n return gTEQ('PrlFoundVmInfo_GetConfigPath', YKHO.handle)",
"def S673(GPtr):\n XLMv = GPtr.sections()[0]\n return GkAb(GPtr.get(XLMv, 'path')).expandus... | [
"0.74873763",
"0.73683774",
"0.7295674",
"0.72576624",
"0.70503014",
"0.69795734",
"0.6871692",
"0.6870429",
"0.68692046",
"0.68461007",
"0.6752746",
"0.6733424",
"0.66958183",
"0.6675214",
"0.6665934",
"0.66556245",
"0.66281676",
"0.6578932",
"0.6543936",
"0.654296",
"0.6468... | 0.8381718 | 0 |
Turn the Fortran format string into a float | def iBQu(nrbE):
if 'D' not in nrbE:
nrbE = nrbE.replace('-', 'D-')
WlZG = float(nrbE.replace('D', 'E'))
return WlZG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BQ6F(vIwR):\n try:\n return float(vIwR.strip())\n except:\n return 0",
"def ESR_(KNYb):\n return float(KNYb.replace(',', '.'))",
"def wUR_(Ty9i):\n if Ty9i.strip() == '':\n return 0.0\n try:\n return float(Ty9i)\n except ValueError:\n return float(Ty9i[0... | [
"0.7453782",
"0.73610944",
"0.7324272",
"0.7323958",
"0.7254898",
"0.7230739",
"0.716408",
"0.7113251",
"0.7076061",
"0.70330656",
"0.6993943",
"0.69850624",
"0.69437283",
"0.6923919",
"0.6920324",
"0.6903942",
"0.6851412",
"0.6831058",
"0.68195987",
"0.6810032",
"0.67939925"... | 0.65519345 | 35 |
Return the x and y vectors for alpha and beta | def WNjB(gIsw, NCCO):
ruCH = NCCO.nocc_a * NCCO.nvirt_a
ifg5 = NCCO.nocc_b * NCCO.nvirt_b
U8F_ = ruCH + ifg5
QpGu = Br9S(gIsw)
vhNf = []
tqIg = []
for KJny in range(NCCO.nex):
P_ZP = KJny * U8F_ + 12
rm_n = KJny * U8F_ + ruCH + 12
iRTm = KJny * U8F_ + ruCH + 12
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V0n2(YKHO, jzdc, Fg_i):\n UqYS = jzdc / Fg_i\n Cwt5 = jzdc * UqYS\n return (Cwt5, UqYS)",
"def V0n2(YKHO):\n Cwt5 = ZylS.nn.softplus(YKHO.alpha_prime)\n UqYS = -Cwt5 + ZylS.nn.softplus(YKHO.beta_prime)\n return (Cwt5, UqYS)",
"def ZFOy(WKvO, LVAh, JN71):\n qC1Y = JN71.ndim - 2\n jzd... | [
"0.68735784",
"0.68204397",
"0.67867076",
"0.6299598",
"0.6199403",
"0.61011344",
"0.60152775",
"0.59740174",
"0.59481496",
"0.5925536",
"0.58475786",
"0.5844231",
"0.5831517",
"0.57823837",
"0.5778254",
"0.5776628",
"0.57758147",
"0.57320166",
"0.5696956",
"0.5686293",
"0.55... | 0.0 | -1 |
Wraps a ModelViewSet method for course validation. Course validation includes checking existence of selected course and checking that the authorized user belongs to selected course. | def mpHA(YKHO, QePW, *qIxc, **B2fa):
S7Jr = YKHO.kwargs.get('course_id')
CBIr = YKHO.request.user
Z_HT = getattr(CBIr, CBIr.role).id
j4P9 = {'teacher': CQpO.objects.filter(T8ck(teachers__id=Z_HT) & T8ck(id=S7Jr)), 'student': CQpO.objects.filter(T8ck(students__id=Z_HT) & T8ck(id=S7Jr))}
GQfX = j4P9[C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DJZA(YKHO):\n rjUa = YKHO.cleaned_data.get(YKHO.Fields.COURSE)\n if rjUa:\n xiXg = YKHO.cleaned_data.get(YKHO.Fields.COURSE_MODE)\n if not xiXg:\n raise sUXu(bbC6.COURSE_WITHOUT_COURSE_MODE)\n dd7H = rjUa['course_modes']\n if all((xiXg != Tuqy['slug'] for Tuqy in dd... | [
"0.5590755",
"0.53617436",
"0.5145853",
"0.51159775",
"0.508113",
"0.5050647",
"0.5046381",
"0.4923978",
"0.48529267",
"0.48208934",
"0.47914517",
"0.47747445",
"0.47612217",
"0.47533214",
"0.47438258",
"0.4708966",
"0.46987057",
"0.46812943",
"0.46761858",
"0.46756464",
"0.4... | 0.66286105 | 0 |
Factory for building TensorFlow data generators for loading time series data. | def jnli(i0XC: str, Ep8u: int=256, hXNa: bool=True) -> ZylS.data.Dataset:
with g5R2.File(i0XC, 'r') as CVOT:
WKvO = oyIN.array(CVOT.get('X'))
LVAh = oyIN.array(CVOT.get('y'))
WKvO = WKvO[..., oyIN.newaxis]
LVAh = LVAh[..., oyIN.newaxis]
nPrm = ZylS.data.Dataset.from_tensor_slices((WKvO, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kCFw(YKHO) -> ZylS.data.Dataset:\n __n6 = ZylS.data.Dataset.from_generator(generator=lambda: YKHO.pipeline, output_types=YKHO.model.output_types(), output_shapes=YKHO.model.output_shapes())\n return __n6.repeat().batch(YKHO.batch_size)",
"def FvHZ(YKHO):\n Yuzq = YKHO.params['mag_files']\n OCY6 =... | [
"0.66462356",
"0.64967215",
"0.64925647",
"0.64921045",
"0.6476613",
"0.6314732",
"0.6290138",
"0.627915",
"0.627915",
"0.62301713",
"0.6161398",
"0.6133778",
"0.61250055",
"0.6109148",
"0.60952944",
"0.60284424",
"0.6001974",
"0.59873",
"0.5963512",
"0.594026",
"0.59273034",... | 0.5460467 | 93 |
Factory for building TensorFlow data generators for loading time series data. | def uxki(i0XC: str, Ep8u: int=256, hXNa: bool=True) -> ZylS.data.Dataset:
with g5R2.File(i0XC, 'r') as CVOT:
WKvO = oyIN.array(CVOT.get('X'))
LVAh = oyIN.array(CVOT.get('y'))
TTm1 = oyIN.c_[WKvO, LVAh]
DZsY = SNvk()
TTm1 = DZsY.fit_transform(TTm1.T).T[..., oyIN.newaxis]
nPrm = ZylS.d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kCFw(YKHO) -> ZylS.data.Dataset:\n __n6 = ZylS.data.Dataset.from_generator(generator=lambda: YKHO.pipeline, output_types=YKHO.model.output_types(), output_shapes=YKHO.model.output_shapes())\n return __n6.repeat().batch(YKHO.batch_size)",
"def FvHZ(YKHO):\n Yuzq = YKHO.params['mag_files']\n OCY6 =... | [
"0.66462356",
"0.64967215",
"0.64925647",
"0.64921045",
"0.6476613",
"0.6314732",
"0.6290138",
"0.627915",
"0.627915",
"0.62301713",
"0.6161398",
"0.6133778",
"0.61250055",
"0.6109148",
"0.60952944",
"0.60284424",
"0.6001974",
"0.59873",
"0.5963512",
"0.594026",
"0.59273034",... | 0.0 | -1 |
Factory for building TensorFlow data generators for loading time series and their extracted features. | def wLy_(i0XC: str, _NS7: str, Ep8u: int=256, hXNa: bool=True) -> ZylS.data.Dataset:
with g5R2.File(i0XC, 'r') as CVOT:
WKvO = oyIN.array(CVOT.get('X'))
LVAh = oyIN.array(CVOT.get('y'))
TTm1 = oyIN.c_[WKvO, LVAh]
with g5R2.File(_NS7, 'r') as CVOT:
bySB = oyIN.array(CVOT.get('X'))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zWTv(YKHO, lpha, Ep8u):\n owEI = (ZylS.int32, ZylS.float32, ZylS.float32, ZylS.int32, ZylS.bool)\n mM9L = ((None, None, 2), (None, None, 2, 3), (None, None, 2, 4), (None, None), (None,))\n YKHO.iterator = ZylS.data.Iterator.from_structure(owEI, mM9L)\n for XP5J in ['train', 'validation', 'test']:\n... | [
"0.67443097",
"0.66661745",
"0.6650237",
"0.6623372",
"0.64999294",
"0.6340058",
"0.63001215",
"0.6259694",
"0.6207655",
"0.6194978",
"0.6185427",
"0.6185427",
"0.6167378",
"0.6102306",
"0.60838675",
"0.6078142",
"0.60687983",
"0.606182",
"0.6061444",
"0.6024734",
"0.60079116... | 0.0 | -1 |
Factory for building TensorFlow data generators for loading time series and their extracted features. | def Qp9r(i0XC: str, _NS7: str, Ep8u: int=256, hXNa: bool=True) -> ZylS.data.Dataset:
with g5R2.File(i0XC, 'r') as CVOT:
WKvO = oyIN.array(CVOT.get('X'))
LVAh = oyIN.array(CVOT.get('y'))
TTm1 = oyIN.c_[WKvO, LVAh][:, :2]
with g5R2.File(_NS7, 'r') as CVOT:
bySB = oyIN.array(CVOT.get('X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zWTv(YKHO, lpha, Ep8u):\n owEI = (ZylS.int32, ZylS.float32, ZylS.float32, ZylS.int32, ZylS.bool)\n mM9L = ((None, None, 2), (None, None, 2, 3), (None, None, 2, 4), (None, None), (None,))\n YKHO.iterator = ZylS.data.Iterator.from_structure(owEI, mM9L)\n for XP5J in ['train', 'validation', 'test']:\n... | [
"0.67443097",
"0.66661745",
"0.6650237",
"0.6623372",
"0.64999294",
"0.6340058",
"0.63001215",
"0.6259694",
"0.6207655",
"0.6194978",
"0.6185427",
"0.6185427",
"0.6167378",
"0.6102306",
"0.60838675",
"0.6078142",
"0.60687983",
"0.606182",
"0.6061444",
"0.6024734",
"0.60079116... | 0.0 | -1 |
return ISO8601 compliant date/time format. Should be migrated to Pilot 2 | def E3oo():
kgaJ = ITS7.timezone
FHuP = '+'
if kgaJ > 0:
FHuP = '-'
Rin1 = int(kgaJ / 3600)
return str('%s%s%02d:%02d' % (ITS7.strftime('%Y-%m-%dT%H:%M:%S', ITS7.localtime()), FHuP, abs(Rin1), int(kgaJ / 60 - Rin1 * 60))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AJqZ(YKHO):\n if YKHO.timezoneNaive():\n return '%0.4d-%0.2d-%0.2dT%0.2d:%0.2d:%0.2d' % (YKHO._year, YKHO._month, YKHO._day, YKHO._hour, YKHO._minute, YKHO._second)\n PduB = Ja1h(SED2(YKHO._tz, YKHO._t))\n return '%0.4d-%0.2d-%0.2dT%0.2d:%0.2d:%0.2d%s' % (YKHO._year, YKHO._month, YKHO._day, YKH... | [
"0.8031052",
"0.7549923",
"0.75283825",
"0.75212055",
"0.74224776",
"0.739377",
"0.73147774",
"0.7279895",
"0.71151495",
"0.70583504",
"0.70411354",
"0.7027823",
"0.6999905",
"0.6988748",
"0.69877434",
"0.69846934",
"0.69693106",
"0.69264823",
"0.6895225",
"0.6885199",
"0.686... | 0.0 | -1 |
Get all the bad channels for a given plane in the detector. | def EClz(YKHO, Edrf, gnAD, kEC0):
VdL1 = YKHO._getPlaneRef(Edrf, gnAD, kEC0)
return YKHO.badplanelookup[VdL1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yRZm(tvqc, NArs):\n pIm8 = NArs['raw'].info['bads']\n NArs['info']['bads'] = e9Cl(tvqc, NArs, pIm8)\n Q9SY(NArs, None)",
"def hqqk(YKHO, ccBJ):\n o94s = [[] for YRbF in range(YKHO._getPlaneRef(ksLj, 1, 0))]\n for Z9rn in ccBJ:\n try:\n if Z9rn['bad']:\n VdL1 = ... | [
"0.61248296",
"0.5950472",
"0.5560963",
"0.5281573",
"0.5241824",
"0.51673263",
"0.51415074",
"0.51146936",
"0.5025403",
"0.5021278",
"0.4939192",
"0.4880686",
"0.48577687",
"0.48271984",
"0.48190108",
"0.48058408",
"0.47965816",
"0.47965375",
"0.4664127",
"0.46545315",
"0.46... | 0.72485226 | 0 |
Plot confusion matrix for each categories | def LwSz(I9lJ, Crrw, QaWM):
G9jH.info('run plot_confusion_matrix')
LZpg, aNZO = QrM1.subplots(6, 6, figsize=(12, 7))
for MPlV, Bcwd, UXqs in zip(aNZO.flatten(), I9lJ, Crrw):
uuEx.heatmap(Bcwd, annot=True, fmt='.2f', cbar=False, ax=MPlV)
MPlV.set_ylabel('True label')
MPlV.set_xlabel('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()",
"def LwSz(Bcwd, KndY, YAq3, iMGt=QrM1.cm.Reds):\n QrM1.figure(figsize=(10, 8))\n leAC = 'Confusion Matrix (Accuracy: %0.3f%%)' % (YAq3 * 100)\n print(Bcwd)\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=i... | [
"0.79958206",
"0.7797282",
"0.772547",
"0.7710784",
"0.7693405",
"0.76933295",
"0.7672207",
"0.76644045",
"0.7661321",
"0.76542395",
"0.76526475",
"0.76429826",
"0.7642122",
"0.7639309",
"0.76285523",
"0.76215076",
"0.76143986",
"0.7613713",
"0.76110595",
"0.76022375",
"0.760... | 0.0 | -1 |
Report the percentage of correct predictions of a model applied on a set of labels. | def NR_X(LVAh, UShr, E8x_, PJWX=True):
N6Z1 = UShr.dot(E8x_)
N6Z1[N6Z1 >= 0] = 1
N6Z1[N6Z1 < 0] = -1
H5Bz = oyIN.sum(N6Z1 == LVAh) / float(len(N6Z1))
if PJWX:
print('Percentage of correct predictions is: ', H5Bz * 100, '%')
return H5Bz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FTWH(aTLP, Crrw):\n zAcA = bUj_(aTLP, Crrw)\n return zAcA / aTLP.size(0) * 100.0",
"def c5jL(aTLP, Crrw):\n zAcA = bUj_(aTLP, Crrw)\n return (1.0 - zAcA / aTLP.size(0)) * 100.0",
"def vjyh(Crrw, N6Z1):\n if len(Crrw) != len(N6Z1):\n return -1\n gXXc = 0\n wjRY = 0\n for YRbF,... | [
"0.7871242",
"0.7692111",
"0.7465326",
"0.74451435",
"0.7433113",
"0.740562",
"0.7334789",
"0.7317563",
"0.7218029",
"0.7211699",
"0.7210559",
"0.717335",
"0.71672153",
"0.71659905",
"0.7144537",
"0.7124623",
"0.7090912",
"0.7079722",
"0.70773655",
"0.70764416",
"0.7057367",
... | 0.67366594 | 45 |
Report the percentage of correct predictions of a model that is applied on a set of labels. This method specifically works for logistic regression since the prediction assumes that labels are between 0 and 1. | def WLc0(LVAh, UShr, E8x_, PJWX=True):
N6Z1 = UShr.dot(E8x_)
N6Z1[N6Z1 > 0.5] = 1
N6Z1[N6Z1 <= 0.5] = 0
H5Bz = oyIN.sum(N6Z1 == LVAh) / float(len(N6Z1))
if PJWX:
print('Percentage of correct predictions is: ', H5Bz * 100, '%')
return H5Bz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FTWH(aTLP, Crrw):\n zAcA = bUj_(aTLP, Crrw)\n return zAcA / aTLP.size(0) * 100.0",
"def vjyh(Crrw, N6Z1):\n if len(Crrw) != len(N6Z1):\n return -1\n gXXc = 0\n wjRY = 0\n for YRbF, Ty9i in enumerate(N6Z1):\n if Crrw[YRbF] == str(Ty9i):\n gXXc += 1\n wjRY += 1... | [
"0.79064804",
"0.76377076",
"0.7626569",
"0.75967944",
"0.756062",
"0.7556763",
"0.7539606",
"0.7503543",
"0.7439626",
"0.74320936",
"0.7431187",
"0.7404015",
"0.73755205",
"0.7307937",
"0.7298856",
"0.7289553",
"0.7263754",
"0.7205337",
"0.71940637",
"0.7182078",
"0.71450794... | 0.66843253 | 64 |
Starting Adventure then moving once to the WEST. | def NOkH():
try:
rPMv.run(SRIv).stdout(qbRG)
except rPMv.Failure as error:
raise rPMv.Failure(f'Expected the description of initial room when Adventure starts.\n {P1dF}')
rPMv.run(SRIv).stdin('WEST').stdout(MXGc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HyIT(YKHO):\n YKHO.deal_cards()\n YKHO.plant_food()",
"def rfNQ(YKHO):\n YKHO.phase.set(0)\n YKHO.players[YKHO.first_player].take_turn()",
"def HyIT(YKHO):\n oyg0 = mVZ4(input('What is your name?'))\n while oyg0.health > 0:\n input('Press t to start another turn')\n exwG = t... | [
"0.7167774",
"0.66325593",
"0.65417296",
"0.65364516",
"0.6524741",
"0.6523999",
"0.6479118",
"0.64517695",
"0.6447917",
"0.6422094",
"0.6379985",
"0.6359189",
"0.63509166",
"0.63466007",
"0.63339067",
"0.6290509",
"0.6269523",
"0.62450963",
"0.62108606",
"0.6197317",
"0.6192... | 0.6674562 | 1 |
Initialize an image model object | def FIMM(YKHO, uqvc, WF32=1.0, dvBq='input_1:0', xYGm='output_node0:0', WIl5=True, Uk6p=None):
GPtr = ZylS.compat.v1.ConfigProto()
GPtr.gpu_options.allow_growth = True
GPtr.gpu_options.per_process_gpu_memory_fraction = WF32
YKHO.tf_session = ZylS.compat.v1.Session(config=GPtr)
with ZylS.io.gfile.GFi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, LNo8):\n YKHO.image = LNo8",
"def FIMM(YKHO, VXjJ):\n YKHO.img = VXjJ",
"def FIMM(YKHO, LNo8: np.ndarray) -> None:\n YKHO.image = LNo8",
"def FIMM(YKHO):\n super(MEOo, YKHO).__init__()",
"def FIMM(YKHO, _z_f, tgYj):\n YKHO.image1 = _z_f\n YKHO.image2 = tgYj",
"def FIMM(YK... | [
"0.7717652",
"0.76432824",
"0.74131936",
"0.7357223",
"0.7033353",
"0.6875327",
"0.6811336",
"0.6811336",
"0.6811336",
"0.6700828",
"0.66547954",
"0.66336644",
"0.6597151",
"0.6580927",
"0.6541128",
"0.6539228",
"0.6539032",
"0.6528956",
"0.6523666",
"0.6508041",
"0.6503518",... | 0.0 | -1 |
Returns the shape of the input image for this network | def EsUr(YKHO):
return YKHO.input_shape | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iX1L(YKHO):\n return YKHO.network.inputs[YKHO.input_blob].shape",
"def GhuM(YKHO):\n return YKHO._ipt_shape",
"def GhuM(YKHO) -> ht2j.Size:\n pass",
"def ROpF(YKHO):\n return YKHO._img.shape",
"def ROpF(YKHO):\n return YKHO.image.shape",
"def lNai(YKHO):\n return YKHO.data.shape[:2]... | [
"0.8649809",
"0.8356472",
"0.813365",
"0.8117253",
"0.808485",
"0.79884",
"0.79884",
"0.7955736",
"0.79366237",
"0.7844177",
"0.7808833",
"0.7590165",
"0.7590165",
"0.7590165",
"0.75398207",
"0.75398207",
"0.75398207",
"0.74360204",
"0.74095434",
"0.7397343",
"0.7394603",
"... | 0.837068 | 1 |
Assert a slot site cannot be modified if there is a flyer placement. | def L7d1(YKHO):
oQ6W = cx3z.create_slot()
oIzs.objects.create(site_id=2, slot=oQ6W, send_date=RWiW())
oQ6W.site = HAC5.objects.get(id=3)
with YKHO.assertRaises(sUXu) as v7zJ:
oQ6W.save()
YKHO.fail('Slot with flyer placements allowed site update.')
na1r.debug(v7zJ.exception) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0L8(YKHO):\n oQ6W = cx3z.create_slot()\n oIzs.objects.create(site_id=2, slot=oQ6W, send_date=RWiW())\n oQ6W.site_id = 3\n with YKHO.assertRaises(sUXu) as v7zJ:\n oQ6W.clean()\n YKHO.fail('Slot with a flyer placement changed site.')\n na1r.debug(v7zJ.exception)",
"def gvt2(YKHO):... | [
"0.78633815",
"0.7079916",
"0.62983745",
"0.597745",
"0.5886045",
"0.5840207",
"0.58233327",
"0.5821704",
"0.56852794",
"0.5625556",
"0.56186026",
"0.55756253",
"0.55640936",
"0.55611664",
"0.55611014",
"0.5516117",
"0.551059",
"0.550255",
"0.5499364",
"0.54895204",
"0.543866... | 0.78529 | 1 |
Assert a slot cannot be modified such that its start date is after the start_datetime of one of its slot_time_frames. | def SmXB(YKHO):
c_Ww = X9FF.create_coupon()
oQ6W = Lm2N.objects.create(site_id=2, business_id=c_Ww.offer.business.id, start_date=qcWV.date.today(), end_date=qcWV.date.today() + qcWV.timedelta(2))
T5bR.objects.create(slot=oQ6W, coupon_id=c_Ww.id, start_datetime=qcWV.datetime.today(), end_datetime=qcWV.dateti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sUf8(YKHO):\n c_Ww = X9FF.create_coupon()\n czZv = qcWV.datetime.now() - qcWV.timedelta(60)\n oQ6W = Lm2N.objects.create(site_id=2, business_id=c_Ww.offer.business.id, start_date=czZv, end_date=czZv + qcWV.timedelta(30))\n ZDEi = T5bR.objects.create(slot=oQ6W, coupon_id=c_Ww.id, start_datetime=czZv... | [
"0.7740584",
"0.76618403",
"0.71000266",
"0.7085148",
"0.673704",
"0.67104626",
"0.6623965",
"0.63351166",
"0.63146013",
"0.61352897",
"0.6095809",
"0.6070038",
"0.5997575",
"0.5982856",
"0.58851403",
"0.584132",
"0.58356845",
"0.58175594",
"0.5735563",
"0.570813",
"0.5682675... | 0.79038787 | 0 |
Assert a slot with flyer placements cannot change sites. | def C0L8(YKHO):
oQ6W = cx3z.create_slot()
oIzs.objects.create(site_id=2, slot=oQ6W, send_date=RWiW())
oQ6W.site_id = 3
with YKHO.assertRaises(sUXu) as v7zJ:
oQ6W.clean()
YKHO.fail('Slot with a flyer placement changed site.')
na1r.debug(v7zJ.exception) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L7d1(YKHO):\n oQ6W = cx3z.create_slot()\n oIzs.objects.create(site_id=2, slot=oQ6W, send_date=RWiW())\n oQ6W.site = HAC5.objects.get(id=3)\n with YKHO.assertRaises(sUXu) as v7zJ:\n oQ6W.save()\n YKHO.fail('Slot with flyer placements allowed site update.')\n na1r.debug(v7zJ.exceptio... | [
"0.7681225",
"0.70491904",
"0.59680027",
"0.5935951",
"0.5884749",
"0.57971174",
"0.56998223",
"0.5658399",
"0.5636538",
"0.55817765",
"0.5558177",
"0.5510633",
"0.5483465",
"0.54643154",
"0.5458033",
"0.5448332",
"0.54309213",
"0.54027927",
"0.5353414",
"0.534754",
"0.532739... | 0.76242644 | 1 |
Return a dictionary of Landsat path/rows and their geometries | def SCGQ(O38l, xhWP='PATH', bdTF='ROW', iGO9='p{0:02d}r{1:02d}'):
m4Nl = dict()
_fLM = K40W.Open(O38l, 0)
VUI3 = _fLM.GetLayer()
Ys0u = VUI3.GetNextFeature()
while Ys0u:
pmON = Ys0u.GetFieldAsInteger(Ys0u.GetFieldIndex(xhWP))
rdlD = Ys0u.GetFieldAsInteger(Ys0u.GetFieldIndex(bdTF))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PII8(Qdb1, n85m):\n tTpl = y2U9(n85m)\n DMju = FJ3D(bind=tTpl)\n KCHu = DMju()\n wg9o = {}\n vexM = 'SELECT routes.route_short_name, trips.block_id, trips.shape_id FROM routes INNER JOIN trips ON routes.route_id == trips.route_id WHERE routes.route_short_name == :rsn GROUP BY tri... | [
"0.6615435",
"0.5902735",
"0.562384",
"0.5622782",
"0.55859905",
"0.55605197",
"0.5548617",
"0.5479241",
"0.5414328",
"0.5374981",
"0.53623295",
"0.53474003",
"0.53458613",
"0.5343928",
"0.5325275",
"0.5320268",
"0.5293182",
"0.528168",
"0.52514654",
"0.5247206",
"0.5237352",... | 0.551659 | 7 |
Gets the SIM 928 voltage output value from the selected source. | def U4IO(YKHO, Z9rn):
if 'slot_number' in Z9rn.keys():
ycr9 = Z9rn['slot_number']
yield YKHO.open_comm(Z9rn, ycr9)
yield YKHO.write(Z9rn, 'VOLT?')
m8jn = (yield YKHO.read(Z9rn))
yield YKHO.close_comm(Z9rn, ycr9)
try:
m8jn = float(m8jn)
except Value... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8jn(YKHO):\n return YKHO.outputValue()",
"def m8jn(YKHO):\n return YKHO._voltage",
"def uICB(YKHO):\n xMOH = 'V' + YKHO.output + 'O?'\n UX5e = YKHO.scpi_comm(xMOH)\n S0MI.warn(UX5e)\n ITS7.sleep(0.1)\n try:\n BWXx = float(UX5e.replace('V', ''))\n except ValueError:\n ... | [
"0.76975703",
"0.7170357",
"0.7167381",
"0.7091971",
"0.707882",
"0.7049874",
"0.70478016",
"0.70135254",
"0.70114994",
"0.68997383",
"0.687818",
"0.6862341",
"0.67574966",
"0.67447245",
"0.67127234",
"0.6700612",
"0.6648761",
"0.663301",
"0.6542766",
"0.6483619",
"0.64784473... | 0.64835197 | 20 |
Gets SIM 928 voltage output state for the selected slot number. | def WHHJ(YKHO, Z9rn):
if 'slot_number' in Z9rn.keys():
ycr9 = Z9rn['slot_number']
if 'output_state' not in Z9rn.keys():
try:
abwI = (yield YKHO.query(Z9rn, ycr9, 'EXON?'))
YKHO.wait_for_completion(Z9rn)
abwI = bool(int(abwI))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8jn(YKHO):\n return YKHO.outputValue()",
"def U4IO(YKHO, Z9rn):\n if 'slot_number' in Z9rn.keys():\n ycr9 = Z9rn['slot_number']\n yield YKHO.open_comm(Z9rn, ycr9)\n yield YKHO.write(Z9rn, 'VOLT?')\n m8jn = (yield YKHO.read(Z9rn))\n yield YKHO.close_comm(Z9rn, ycr9)\n... | [
"0.63390845",
"0.60011977",
"0.58982235",
"0.5888021",
"0.5868136",
"0.5811036",
"0.5797195",
"0.57788026",
"0.5743811",
"0.57337487",
"0.57333994",
"0.57218057",
"0.5718227",
"0.5710561",
"0.5702051",
"0.5701623",
"0.56224227",
"0.5603312",
"0.5540073",
"0.5531823",
"0.55259... | 0.61963123 | 1 |
returns all courses mapped to Course class | def k8nB():
sDlr = []
kcwV = CQpO._file.read_db()
for GQfX in kcwV['courses']:
sDlr.append(CQpO(**GQfX))
return sDlr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8nB(YKHO):\n return YKHO.def_ms.get_courses()",
"def k8nB(YKHO, rb7a=0):\n return YKHO.courses.values()",
"def crfZ(YKHO, AXRD=100):\n dixj = YKHO.service.courses().list(pageSize=AXRD).execute()\n YKHO.courses = dixj.get('courses', [])\n if not YKHO.courses:\n return []\n return Y... | [
"0.76317406",
"0.7433428",
"0.70438474",
"0.70121115",
"0.7001081",
"0.6907132",
"0.69066805",
"0.6872299",
"0.68508995",
"0.6741409",
"0.6687205",
"0.66742456",
"0.66447455",
"0.663649",
"0.6608549",
"0.6571368",
"0.65176916",
"0.65051067",
"0.64989233",
"0.6480629",
"0.6468... | 0.78154653 | 0 |
returns the list of students | def sN9F(YKHO):
return YKHO._students | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_5z(YKHO) -> x1iM['Student']:\n return YKHO.students.values()",
"def VLXD(YKHO):\n return YKHO._parser.students",
"def VLXD(YKHO):\n return YKHO.grade_set.all().distinct()",
"def b9dB():\n CGJY = []\n CGJY = Jprm()\n return CGJY",
"def fyjp():\n Hubz = yiLn('students.txt')\n bV... | [
"0.82873625",
"0.7877513",
"0.7858565",
"0.76923436",
"0.7558353",
"0.7541415",
"0.75404143",
"0.74475265",
"0.7419316",
"0.74162376",
"0.7408174",
"0.74036086",
"0.7260754",
"0.7233279",
"0.721486",
"0.70674795",
"0.69724274",
"0.6957563",
"0.69317955",
"0.6908784",
"0.68980... | 0.8491717 | 0 |
checks whether student is in students list of course | def rU0F(YKHO, _D0U):
if not YKHO.is_course_exists():
print('Course with name - {} does not exist'.format(YKHO._course_name))
return
GQfX = YKHO.get_course()
for KCHu in GQfX._students:
if KCHu == _D0U:
return True
break
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYXB(YKHO, WKvO):\n PCzT('_gradelist[..].__contains__(', WKvO, ')')\n JDQV = YKHO._grades\n if not isinstance(WKvO, sCLt):\n JDQV = [vexM.name for vexM in YKHO._grades]\n PCzT('_gradelist[..].__contains__.nems = ', *JDQV)\n for YRbF in JDQV:\n if WKvO == YRbF:\n return T... | [
"0.6483951",
"0.6436867",
"0.6400396",
"0.6397378",
"0.6390898",
"0.6349866",
"0.6244952",
"0.6189546",
"0.61033106",
"0.60985065",
"0.6055721",
"0.60426754",
"0.6002529",
"0.59932625",
"0.5960789",
"0.59526426",
"0.5951925",
"0.5945947",
"0.58917737",
"0.584523",
"0.58390075... | 0.6804614 | 0 |
Keep only words that pass normalizeOrRemoveWord(), return them as a list | def dl9a(l5Ny):
V22M = l5Ny.split()
yvT9 = []
for yzQ0 in V22M:
yzQ0 = lCct(yzQ0)
if yzQ0 != None:
yvT9.append(yzQ0)
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ihFl(V22M):\n g68O = []\n for yzQ0 in V22M:\n if yzQ0 in di0c.words('german'):\n continue\n else:\n g68O += [yzQ0]\n return g68O",
"def R5ha(V22M):\n ntLm = set(di0c.words('english'))\n V22M = [yzQ0 for yzQ0 in V22M if yzQ0 not in ntLm]\n return V22M",
... | [
"0.7268136",
"0.72538286",
"0.71622425",
"0.7162114",
"0.7100072",
"0.70469993",
"0.70404196",
"0.7009588",
"0.7008717",
"0.69970953",
"0.6989197",
"0.69874895",
"0.69810474",
"0.69805336",
"0.69651985",
"0.69546914",
"0.69517297",
"0.6946344",
"0.69410586",
"0.6937314",
"0.6... | 0.8376103 | 0 |
Setup object from dictionary with parameters. | def v0XN(YKHO, NArs):
YKHO.linP_params = NArs.copy()
g_Kt = 0.5 * NArs['alpha_star']
sWHk = NArs['n_star']
LBdI = 2 * oyIN.pi ** 2 * NArs['Delta2_star'] / YKHO.kp_kms ** 3
pVlK = oyIN.log(LBdI)
qTFX = oyIN.poly1d([g_Kt, sWHk, pVlK])
YKHO.linP_params['linP_kms'] = qTFX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eCGt(YKHO, **B2fa):\n for G1Hx, Ty9i in B2fa.items():\n setattr(YKHO, G1Hx, Ty9i)",
"def FIMM(YKHO, *qIxc, **B2fa):\n for cmPJ in [bGrB for bGrB in qIxc if isinstance(bGrB, dict)]:\n for H5ew in cmPJ:\n setattr(YKHO, H5ew, cmPJ[H5ew])\n for H5ew in B2fa:\n setattr(YKH... | [
"0.70206964",
"0.6965815",
"0.69603235",
"0.69603235",
"0.69522285",
"0.6949055",
"0.6882688",
"0.6882688",
"0.6882688",
"0.6820064",
"0.6809252",
"0.678246",
"0.67785233",
"0.6767497",
"0.6759825",
"0.67578596",
"0.6750979",
"0.672112",
"0.6680001",
"0.6644889",
"0.66397643"... | 0.0 | -1 |
Remove URLs from a sample string | def Yk6F(mvm2):
mvm2['full_text'] = ZbWC.sub('http\\S+', '', mvm2['full_text'])
return mvm2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RG0J(mvm2):\n return ZbWC.sub('http\\\\S+', '', mvm2)",
"def Yk6F(Mau6):\n return ZbWC.sub('http\\\\S+', 'URL', Mau6)",
"def EGZf(l5Ny):\n l5Ny = ZbWC.sub('(?P<url>https?://[^\\\\s]+)', '', l5Ny)\n return l5Ny",
"def EGZf(l5Ny):\n pass",
"def EGZf(YKHO, l5Ny):\n return ZbWC.sub('http.... | [
"0.8735943",
"0.8024629",
"0.7941175",
"0.79276586",
"0.79134667",
"0.79063195",
"0.7805464",
"0.7790042",
"0.7647424",
"0.7633826",
"0.75397545",
"0.75013065",
"0.74350727",
"0.7431088",
"0.7386092",
"0.7302479",
"0.73011416",
"0.7291912",
"0.71393806",
"0.7134624",
"0.71004... | 0.8012376 | 2 |
Returns True if the elements of s when sorted are consecutive integers. | def GZOZ(KCHu):
for WKvO, LVAh in Zu14(sorted(KCHu)):
if LVAh - WKvO != 1:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ibft(gXtX):\n if len(gXtX) == 0:\n return False\n for G1Hx in range(len(gXtX) - 1):\n yk4i = abs(gXtX[G1Hx] - gXtX[G1Hx + 1])\n if yk4i == 1:\n return True\n return False",
"def mwCj(Q6uT):\n return all((Q6uT[YRbF - 1] < Q6uT[YRbF] for YRbF in range(1, len(Q6uT))))... | [
"0.74098265",
"0.6928977",
"0.6897801",
"0.6615658",
"0.6598261",
"0.6550628",
"0.64529496",
"0.63946664",
"0.6385006",
"0.6371796",
"0.6316305",
"0.620914",
"0.61585253",
"0.6138976",
"0.6135714",
"0.61216",
"0.60529387",
"0.6033719",
"0.6021474",
"0.6008208",
"0.60057026",
... | 0.74789083 | 0 |
Opens a new database connection if there is none yet for the current application context. | def GGod():
tlxW = rwhr.top
if not hasattr(tlxW, 'sqlite_db'):
tlxW.sqlite_db = iHv3.connect(P4t4.config['DATABASE'])
tlxW.sqlite_db.row_factory = iHv3.Row
return tlxW.sqlite_db | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db",
"def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)",
"def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)",
"def W... | [
"0.7737639",
"0.7582971",
"0.73180443",
"0.71693045",
"0.70220166",
"0.6966687",
"0.6954785",
"0.69486743",
"0.6897534",
"0.6842663",
"0.68292314",
"0.68191963",
"0.680592",
"0.67950195",
"0.67697805",
"0.6762173",
"0.6751266",
"0.6746273",
"0.67316663",
"0.670031",
"0.668866... | 0.66702753 | 25 |
Verify that an import fails if the imported mojom does not exist. | def Og0u(YKHO):
jzdc = 'a.mojom'
YKHO.WriteFile(jzdc, ' module a;\n import "non-existent.mojom";\n struct Bar {};')
with YKHO.assertRaisesRegexp(ValueError, 'does not exist'):
YKHO.ParseMojoms([jzdc]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WVuA(YKHO):\n jzdc = 'a.mojom'\n lfOU = 'out/a.build_metadata'\n Fg_i = 'b.mojom'\n csFG = 'out/b.build_metadata'\n YKHO.WriteFile(lfOU, qQXR.dumps({'sources': [YKHO.GetPath(jzdc)], 'deps': []}))\n YKHO.WriteFile(csFG, qQXR.dumps({'sources': [YKHO.GetPath(Fg_i)], 'deps': []}))\n YKHO.Write... | [
"0.7461903",
"0.7275904",
"0.7138814",
"0.7113217",
"0.7079737",
"0.7037294",
"0.6944042",
"0.69142383",
"0.69015855",
"0.6836902",
"0.67599964",
"0.67475903",
"0.672928",
"0.6668213",
"0.6656134",
"0.6639959",
"0.661349",
"0.6529497",
"0.65285075",
"0.6489404",
"0.6438373",
... | 0.7223841 | 2 |
Verify that an import fails if the imported mojom is not in the set of mojoms provided to the parser on this execution AND there is no preexisting parsed output module already on disk for it. | def _vrM(YKHO):
jzdc = 'a.mojom'
Fg_i = 'b.mojom'
YKHO.WriteFile(jzdc, ' module a;\n struct Bar {};')
YKHO.WriteFile(Fg_i, ' module b;\n import "a.mojom";\n struct Foo { a.Bar bar; };')
with YKHO.assertRaisesRegexp(ValueError, 'does not exist'):
YKHO.ParseM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WVuA(YKHO):\n jzdc = 'a.mojom'\n lfOU = 'out/a.build_metadata'\n Fg_i = 'b.mojom'\n csFG = 'out/b.build_metadata'\n YKHO.WriteFile(lfOU, qQXR.dumps({'sources': [YKHO.GetPath(jzdc)], 'deps': []}))\n YKHO.WriteFile(csFG, qQXR.dumps({'sources': [YKHO.GetPath(Fg_i)], 'deps': []}))\n YKHO.Write... | [
"0.74225783",
"0.68580514",
"0.6681641",
"0.6539058",
"0.64829755",
"0.6467921",
"0.64035505",
"0.6367649",
"0.6337716",
"0.6335164",
"0.6315197",
"0.62826014",
"0.62718916",
"0.6251536",
"0.6232602",
"0.61881936",
"0.6141252",
"0.61133844",
"0.60503674",
"0.6040266",
"0.5895... | 0.67000496 | 2 |
Redefinition of queryset for the view | def k66M(YKHO):
if 'person_id' in YKHO.request.GET:
SR0I = Y4Gy.objects.all()
if 'my_questions' in YKHO.request.GET:
SR0I = SR0I.filter(creator__id=YKHO.request.GET['person_id'])
if 'search_autor' in YKHO.request.GET:
Sy_8 = YKHO.request.GET['search_autor']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO, QePW, SR0I):\n return SR0I",
"def k66M(YKHO):\n return None",
"def k66M(YKHO):\n return None",
"def k66M(YKHO):\n return 'asdf'",
"def k66M(YKHO):\n return QyXt.objects.all()",
"def k66M(YKHO) -> ZYvt:\n raise NotImplementedError()",
"def k66M(YKHO):\n return YKHO.mo... | [
"0.77580863",
"0.74919105",
"0.74919105",
"0.73191786",
"0.6982991",
"0.69799757",
"0.6945096",
"0.68940383",
"0.680753",
"0.6797859",
"0.678566",
"0.67554003",
"0.67505884",
"0.6738525",
"0.6705272",
"0.6696201",
"0.66655976",
"0.66646045",
"0.6662832",
"0.6613625",
"0.65990... | 0.0 | -1 |
Redefinition of queryset for the view | def k66M(YKHO):
if 'person_id' in YKHO.request.GET:
SR0I = X4qQ.objects.filter(creator__id=YKHO.request.GET['person_id'])
elif 'question_id' in YKHO.request.GET:
SR0I = X4qQ.objects.filter(question__id=YKHO.request.GET['question_id'])
else:
SR0I = X4qQ.objects.all()
return SR0I | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO, QePW, SR0I):\n return SR0I",
"def k66M(YKHO):\n return None",
"def k66M(YKHO):\n return None",
"def k66M(YKHO):\n return 'asdf'",
"def k66M(YKHO):\n return QyXt.objects.all()",
"def k66M(YKHO) -> ZYvt:\n raise NotImplementedError()",
"def k66M(YKHO):\n return YKHO.mo... | [
"0.77580863",
"0.74919105",
"0.74919105",
"0.73191786",
"0.6982991",
"0.69799757",
"0.6945096",
"0.68940383",
"0.680753",
"0.6797859",
"0.678566",
"0.67554003",
"0.67505884",
"0.6738525",
"0.6705272",
"0.6696201",
"0.66655976",
"0.66646045",
"0.6662832",
"0.6613625",
"0.65990... | 0.0 | -1 |
Provide instance for basic Flask app. | def P4t4(QePW):
P4t4 = WsL5.Flask(__name__)
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN():\n N5z6 = L2w0(__name__)\n return N5z6",
"def H39v() -> L2w0:\n P4t4: L2w0 = L2w0(__name__)\n return P4t4",
"def LUif(YKHO):\n YKHO.app = L2w0(__name__, instance_relative_config=True)\n YKHO.app.config.from_mapping(SECRET_KEY='!ZNeverSayNever116Z!', MONGODB_SETTINGS={'host': 'mongo... | [
"0.75798887",
"0.74666655",
"0.7463826",
"0.7460829",
"0.74291706",
"0.7410541",
"0.7389104",
"0.7237898",
"0.7182087",
"0.71570164",
"0.7135041",
"0.7120906",
"0.7097216",
"0.7068",
"0.7042895",
"0.7027653",
"0.7025276",
"0.7003195",
"0.69872",
"0.6977798",
"0.69745773",
"... | 0.7255322 | 7 |
Return basic Flask app with an established app context. | def vY7J(QePW, P4t4):
OaeV = P4t4.app_context()
OaeV.push()
def mTtn():
OaeV.pop()
QePW.addfinalizer(mTtn)
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P4t4():\n P4t4 = LUif()\n return P4t4",
"def P4t4():\n return LUif()",
"def LUif(kO5c=False, GSyo=False):\n P4t4 = L2w0(__name__)\n P4t4.config.from_object('flask_cli.config')\n if kO5c is True:\n P4t4.config['TESTING'] = True\n zqKm(P4t4, GSyo)\n q38d(P4t4)\n TfOc(P4t4)\n... | [
"0.836939",
"0.8277128",
"0.7886538",
"0.78150755",
"0.7811015",
"0.7809284",
"0.7780888",
"0.77743506",
"0.77714014",
"0.77698404",
"0.7747037",
"0.77430415",
"0.77399004",
"0.7714849",
"0.7702316",
"0.7672012",
"0.7665288",
"0.7633971",
"0.76006365",
"0.7599737",
"0.7596087... | 0.0 | -1 |
Test Triple Exponential Moving Average. | def OLby(YKHO):
w4Sv = 200
kVix = P5VR.tema(YKHO.close, w4Sv)
WMae = wf7J.TEMA(YKHO.close, w4Sv)
oyIN.testing.assert_allclose(kVix, WMae, rtol=YKHO.tolerance) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WqUq(YKHO):\n gWvi = {1: 0, 12: 3, 23: 2, 1024: 31}\n for FGW3, aEqx in gWvi.items():\n n5sN = bImE(FGW3)\n Ol8d = \"Testing input '{}', expected '{}' but got '{}'\".format(FGW3, aEqx, n5sN)\n YKHO.assertEqual(bImE(FGW3), aEqx, msg=Ol8d)",
"def Umc6(YKHO):\n w4Sv = 200\n FwwX... | [
"0.62892723",
"0.62653625",
"0.6246335",
"0.6077951",
"0.6063664",
"0.5991172",
"0.59591246",
"0.5884438",
"0.5875656",
"0.5835546",
"0.58348143",
"0.5810547",
"0.560417",
"0.55650103",
"0.5556142",
"0.54927886",
"0.54201156",
"0.5416584",
"0.54040563",
"0.5380211",
"0.537744... | 0.57951003 | 12 |
Connect to the MQTT client | def yWAh():
x0hE = ZozG.Client('41')
x0hE.connect(Mobb, port=NFbp, keepalive=a2w5)
return x0hE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zr7Z():\n global mqtt_client\n G9jH.debug('connecting to mqtt broker %s', GPtr['mqtt']['host'])\n k14B = p9X3.Client()\n k14B.tls_set()\n k14B.on_connect = yZmE\n k14B.on_message = jgcV\n k14B.username_pw_set(GPtr['mqtt']['username'], GPtr['mqtt']['password'])\n k14B.connect(GPtr['mqtt'... | [
"0.85796714",
"0.8428635",
"0.7963951",
"0.7920447",
"0.7794714",
"0.75743264",
"0.74649715",
"0.74649715",
"0.7373413",
"0.73696387",
"0.7346389",
"0.7338156",
"0.7331327",
"0.72875684",
"0.7278879",
"0.7223587",
"0.7214293",
"0.7207479",
"0.712503",
"0.7106952",
"0.70867497... | 0.8601595 | 0 |
Preprocess input image for inference. Changes image shape from [HxWxC] to [1xCxHxW]. You may need to change code according to your model requirements. | def ZvG6(LNo8, yzQ0, MKlR):
LNo8 = XC5k.resize(LNo8, (yzQ0, MKlR))
LNo8 = oyIN.transpose(LNo8, (2, 0, 1))
LNo8 = LNo8.reshape(1, 3, MKlR, yzQ0)
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(YKHO, VXjJ):\n t9mp = LNo8.load_img(VXjJ, target_size=(299, 299))\n t9mp = LNo8.img_to_array(t9mp)\n t9mp = oyIN.expand_dims(t9mp, axis=0)\n t9mp = fjyB(t9mp)\n return t9mp",
"def biH0(YKHO, LNo8, GhuM):\n MKlR, yzQ0, bGrB = LNo8.shape\n vfcz, QWjt = GhuM\n NXpY = min(float(QWjt)... | [
"0.8091709",
"0.7933292",
"0.77311146",
"0.76915485",
"0.7511666",
"0.7508585",
"0.747994",
"0.7455124",
"0.7425685",
"0.7403951",
"0.7355058",
"0.72795254",
"0.72446",
"0.7205273",
"0.7186801",
"0.71853864",
"0.7184433",
"0.7161172",
"0.71598864",
"0.71541595",
"0.71163017",... | 0.7058314 | 22 |
Initialize class with number of input features, conv layers. | def FIMM(YKHO, GPtr: SimpleGCNConfig=TJPi(name='simplegcn')):
super().__init__()
YKHO.edge_lengthscale = GPtr.edge_lengthscale
YKHO.weight_edges = GPtr.weight_edges
YKHO.atom_embedding = U78l.Linear(GPtr.atom_input_features, GPtr.width)
YKHO.layer1 = mr1Y(GPtr.width, GPtr.width)
YKHO.layer2 = mr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, MKE4, jTqs):\n YKHO.the_input_shape = MKE4\n YKHO.num_classes = jTqs",
"def FIMM(YKHO, ROaS, UnVY, FsUe, TFPw, RnOn, L7vf=0.0, B5PI=1.0):\n super().__init__()\n YKHO.n_templates = UnVY\n YKHO.n_template_nodes = FsUe\n YKHO.n_hidden_layers = RnOn\n YKHO.n_features = ROaS\n Y... | [
"0.7326099",
"0.72048867",
"0.7200758",
"0.7153407",
"0.7141172",
"0.7130546",
"0.71173173",
"0.7074235",
"0.70174074",
"0.69571537",
"0.6955571",
"0.693834",
"0.6916583",
"0.69123095",
"0.6880345",
"0.686464",
"0.685392",
"0.6850391",
"0.6845464",
"0.6842833",
"0.68404406",
... | 0.64696527 | 70 |
Transforms the vertices and normals of the mesh such that the origin of the resulting mesh's coordinate frame is at the centroid and the principal axes are aligned with the vertical Z, Y, and X axes. | def BGwV(YKHO):
YKHO.mesh_.center_vertices_bb()
pyLE = oyIN.array(YKHO.mesh_.vertices())
zxDJ = N3vq.decomposition.PCA(n_components=3)
zxDJ.fit(pyLE)
Tdp_ = zxDJ.components_
hDlh = pyLE.dot(Tdp_.T)
Kvqx = oyIN.sum(hDlh < 0, axis=0)
qUm1 = oyIN.sum(hDlh >= 0, axis=0)
hwqw = 1 * (qUm1 ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lz6z(SCGi):\n N0a4 = []\n for rR8k in SCGi:\n OxwY = rR8k[1, 0] - rR8k[0, 0]\n E4xK = rR8k[1, 1] - rR8k[0, 1]\n sykR = rR8k[1, 2] - rR8k[0, 2]\n IwKw = rR8k[2, 0] - rR8k[1, 0]\n XWgL = rR8k[2, 1] - rR8k[1, 1]\n Qv_E = rR8k[2, 2] - rR8k[1, 2]\n mhAC = oyIN.... | [
"0.6525593",
"0.64589655",
"0.63386613",
"0.6272838",
"0.60727006",
"0.60694283",
"0.60694283",
"0.6056767",
"0.59369475",
"0.59097",
"0.5874956",
"0.5852677",
"0.5843772",
"0.580823",
"0.579929",
"0.57796335",
"0.57417923",
"0.5740103",
"0.5715549",
"0.56859803",
"0.5633433"... | 0.7241301 | 0 |
Creates an in memory repository for the client cards. | def FIMM(YKHO):
YKHO.__storage = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _51C():\n miXd(QePW)\n nPrm = QePW.json\n if not G7kS(['username', 'deck_name', 'description', 'cards', 'session_id'], nPrm):\n G9jH.debug('Missing parameters')\n return pz3A({'error': 500})\n NtEF = nPrm['username']\n dLv6 = nPrm['deck_name']\n QoB4 = nPrm['description']\n k... | [
"0.5652824",
"0.56190675",
"0.55942696",
"0.55875534",
"0.5555107",
"0.5541201",
"0.5514296",
"0.54700917",
"0.53988624",
"0.53588414",
"0.53367114",
"0.53283167",
"0.5327179",
"0.5315572",
"0.5284003",
"0.52683854",
"0.52603686",
"0.5238103",
"0.5178416",
"0.5176272",
"0.515... | 0.0 | -1 |
Create the package name from a filename that contains the whole path. | def cQy7(qaEx, B5PH):
H0dE = str(B5PH) + '.'
H0dE = H0dE + Hy7s.path.splitext(str(qaEx).replace(IA6W, '.'))[0]
return H0dE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NpXO(Ux0P: str) -> str:\n zq8l = f'{HwRy.prefix}/lib/python{HwRy.version_info.major}.{HwRy.version_info.minor}/'\n SZA9 = f'{HwRy.prefix}/lib/python{HwRy.version_info.major}.{HwRy.version_info.minor}/site-packages/'\n kZiy = f'{GkAb.home()}/'\n sWmO = f'{GkAb.cwd()}/'\n if Ux0P.startswith(SZA9):... | [
"0.7358309",
"0.6815504",
"0.68074465",
"0.6752537",
"0.6749479",
"0.66622144",
"0.6656041",
"0.6618932",
"0.659578",
"0.65727305",
"0.6527444",
"0.651673",
"0.6509434",
"0.64720184",
"0.64376783",
"0.643493",
"0.63837117",
"0.63672787",
"0.63419753",
"0.63081545",
"0.6299007... | 0.5913786 | 93 |
this function splits a dataset into n = len(split_list) disjointed datasets | def eVUs(__n6: SimpleJsonLanguageModelDataset, nJNG):
import numpy as oyIN
nJNG = oyIN.multiply(oyIN.cumsum(nJNG), len(__n6)).astype('int').tolist()
uzIN = list(range(len(__n6)))
hXNa(uzIN)
Cc00 = [[] for bGrB in range(len(nJNG))]
for gYka, (yKcO, Os4s) in enumerate(zip([0] + nJNG[:-1], nJNG)):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nLy7(__n6: SimpleJsonAcceptorDataset, nJNG):\n import numpy as oyIN\n nJNG = oyIN.multiply(oyIN.cumsum(nJNG), len(__n6)).astype('int').tolist()\n uzIN = list(range(len(__n6)))\n hXNa(uzIN)\n Cc00 = [[] for bGrB in range(len(nJNG))]\n for gYka, (yKcO, Os4s) in enumerate(zip([0] + nJNG[:-1], nJ... | [
"0.7199985",
"0.7183539",
"0.702069",
"0.6972421",
"0.6942974",
"0.69273907",
"0.68854773",
"0.6841575",
"0.6778787",
"0.6740829",
"0.67270815",
"0.671384",
"0.6676607",
"0.65896827",
"0.65881675",
"0.6561787",
"0.65356535",
"0.65280485",
"0.6517825",
"0.6500705",
"0.6474087"... | 0.69952285 | 3 |
this function splits a dataset into n = len(split_list) disjointed datasets | def nLy7(__n6: SimpleJsonAcceptorDataset, nJNG):
import numpy as oyIN
nJNG = oyIN.multiply(oyIN.cumsum(nJNG), len(__n6)).astype('int').tolist()
uzIN = list(range(len(__n6)))
hXNa(uzIN)
Cc00 = [[] for bGrB in range(len(nJNG))]
for gYka, (yKcO, Os4s) in enumerate(zip([0] + nJNG[:-1], nJNG)):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qb89(YKHO):\n print('split data')\n oyIN.random.shuffle(YKHO.dataList)\n vC9B = len(YKHO.dataList) / YKHO.fold\n YKHO.dataList = [YKHO.dataList[YRbF * vC9B:(YRbF + 1) * vC9B] for YRbF in range(YKHO.fold - 1)] + [YKHO.dataList[(YKHO.fold - 1) * vC9B:]]",
"def hLYa(km5h):\n mLGw = len(km5h)\n ... | [
"0.7184243",
"0.7020519",
"0.69961977",
"0.69733965",
"0.6942246",
"0.692669",
"0.68858796",
"0.6841991",
"0.6778319",
"0.6740616",
"0.67276645",
"0.6713794",
"0.66745126",
"0.65899247",
"0.65868694",
"0.65617746",
"0.6536151",
"0.65287596",
"0.65183157",
"0.6500121",
"0.6475... | 0.7201067 | 0 |
Convert a snake case string to camel case. | def kCQi(BQoY: str) -> str:
V22M = BQoY.strip('_').split('_')
return V22M[0] + ''.join((GIN8[:1].upper() + GIN8[1:] for GIN8 in V22M[1:])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hr_R(BQoY):\n qWBe = BQoY.split('_')\n return ' '.join(qWBe).title()",
"def kCQi(vIwR: str):\n return ''.join((dMQI.title() for dMQI in vIwR.split('_')))",
"def hr_R(vIwR):\n c3S0 = []\n for GIN8 in vIwR.split('_'):\n c3S0.append(GIN8.title())\n ''.join(c3S0)",
"def hr_R(vIwR):\n... | [
"0.83920556",
"0.82715195",
"0.8106933",
"0.8031035",
"0.80189705",
"0.7861413",
"0.78282315",
"0.7821179",
"0.7792496",
"0.7754196",
"0.7745883",
"0.773233",
"0.77296615",
"0.76856786",
"0.7622103",
"0.754372",
"0.75140065",
"0.7498547",
"0.7498547",
"0.7460533",
"0.74504083... | 0.85066724 | 0 |
Get the head node id. Iterate through all nodes in the ray cluster and return the node id of the first alive node with head node resource. | def xvfv() -> str:
DVBT = None
for Q6kx in spHt.nodes():
if wc0u in Q6kx['Resources'] and Q6kx['Alive']:
DVBT = Q6kx['NodeID']
break
assert DVBT is not None, 'Cannot find alive head node.'
return DVBT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ydJI(YKHO):\n ETu_ = YKHO.db.selectById(YKHO.tableName, 1)\n if ETu_:\n YKHO.headId = ETu_['childId']\n return YKHO.headId\n print('Error! No first sublist record found.')\n return None",
"def x4IW(YKHO):\n HIt6 = YKHO.get_by_id(_DU8, YKHO.ROOT_KEYNAME)\n if HIt6 and HIt6.head... | [
"0.671215",
"0.6701873",
"0.66886413",
"0.6480033",
"0.64682245",
"0.6271473",
"0.6268742",
"0.62582123",
"0.6184551",
"0.601184",
"0.6004681",
"0.60040486",
"0.5910604",
"0.59034836",
"0.582966",
"0.58114076",
"0.5793033",
"0.57766134",
"0.57257324",
"0.57257324",
"0.5710767... | 0.8895967 | 0 |
Create array of zeros | def _UDX(YKHO):
return oyIN.zeros(YKHO.exog.shape[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VNqG(exwG):\n return [0 for YRbF in range(exwG)]",
"def PIEQ(nPrm):\n return sfxH.zeros_like(nPrm)",
"def sbx9(YKHO):\n return oyIN.zeros([YKHO.nx])",
"def VNqG(tpio):\n return oyIN.zeros(tpio, dtype='uint8')",
"def OC6w(YKHO, EcVT):\n return oyIN.zeros(EcVT.size())",
"def CppX(YKHO, R... | [
"0.7918194",
"0.7747626",
"0.7739681",
"0.7654799",
"0.7569704",
"0.75592136",
"0.7489521",
"0.746419",
"0.74546695",
"0.7445473",
"0.7386749",
"0.73800087",
"0.73686373",
"0.73237073",
"0.7277108",
"0.7277108",
"0.72404116",
"0.7231769",
"0.7210081",
"0.71698105",
"0.7169139... | 0.0 | -1 |
month = Month to be predicted, expected format MM year = Year of month to be predicted, expected format yyyy | def LCql(lO87, x0eS):
kepv = str(lO87) + '-' + str(x0eS) + '-01'
KhBf = str(lO87) + '-' + str(x0eS) + '-' + str(wTnG(lO87, x0eS)[1])
Pfix = rLdf.date_range(kepv, KhBf, freq='D').strftime('%Y-%m-%d').tolist()
IEBR = []
gIsw = '../predictions/model_' + str(lO87) + '_' + str(x0eS) + '.csv'
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VIcm():\n return k6WC(V03T, X_bn)",
"def x0eS(YKHO):\n return 0",
"def x0eS(YKHO):\n return 0",
"def kpxX(Emd4, lO87: typing.Union[int, str], x0eS: typing.Union[int, str]) -> str:\n _fR_: str\n if isinstance(lO87, int):\n _fR_ = str(lO87)\n else:\n _fR_ = lO87\n dG5d: s... | [
"0.7081572",
"0.6782309",
"0.6782309",
"0.6686441",
"0.66647196",
"0.65147257",
"0.64489126",
"0.644196",
"0.6401168",
"0.6366427",
"0.63189125",
"0.63072455",
"0.6286175",
"0.6273243",
"0.62700665",
"0.6258982",
"0.62423307",
"0.6233265",
"0.62054217",
"0.6195906",
"0.619390... | 0.56801903 | 78 |
Creates an ArgumentParser to read the options for this script from sys.argv | def RIXt():
wvEv = j1Jz.ArgumentParser()
wvEv.add_argument('data_directory', help='Directory where the data files live.')
wvEv.add_argument('out', help='Output directory of files.')
wvEv.add_argument('-t', '--test', action='store_true', help='Test mode, avoids slow classifiers and uses 3 folds')
wvE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvp4(YKHO, E0cB):\n from optparse import OptionParser\n e2h5 = 'usage: %prog [options]'\n wvEv = OptionParser(e2h5)\n xAU6, qIxc = wvEv.parse_args(E0cB)",
"def t4a2():\n feVy = j1Jz.ArgumentParser()\n feVy.add_argument('--pull', help='pull scripts from UR3', action='store_true')\n feVy.a... | [
"0.77495533",
"0.7427968",
"0.7407757",
"0.73361915",
"0.73148197",
"0.7309196",
"0.72941315",
"0.729033",
"0.7288606",
"0.72717685",
"0.72671",
"0.72608715",
"0.7257929",
"0.72291887",
"0.72102225",
"0.7202624",
"0.71952707",
"0.7194806",
"0.71738976",
"0.71731013",
"0.71731... | 0.7051707 | 29 |
Read a file and return its contents as a list. \n and \r are removed from the end of each line. | def kGys(VqRE):
eHNT = open(VqRE, 'r')
uCmi = [WKvO.rstrip('\r\n') for WKvO in eHNT.readlines()]
eHNT.close()
return uCmi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HTzx(gIsw):\n aF0O = open(gIsw, encoding='utf-8')\n vC9B = [zFiD.strip() for zFiD in aF0O]\n aF0O.close()\n return vC9B",
"def U0fF(gIsw):\n with open(gIsw) as nUeQ:\n nPrm = nUeQ.read().splitlines()\n return nPrm",
"def Nwr9(pmON: str) -> list:\n rhss = []\n with open(pmON, ... | [
"0.8080656",
"0.80013096",
"0.7955879",
"0.7927518",
"0.79060733",
"0.78917086",
"0.78774464",
"0.78428364",
"0.7833556",
"0.7824648",
"0.78093654",
"0.7790631",
"0.7751445",
"0.77492845",
"0.7687986",
"0.767622",
"0.76651824",
"0.7643231",
"0.76290494",
"0.76240045",
"0.7562... | 0.76262283 | 19 |
Compute probability of negative correlation matrix. | def _SA0(YKHO):
cu9Y = YKHO.nw.shape[2]
YKHO.P = oyIN.sum(YKHO.nw < 0, axis=2) / cu9Y
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pTh9(YKHO, MVZX):\n bWGr = YKHO.proje_var.argsort()[:MVZX]\n wGXr = oyIN.linalg.inv(YKHO.proje_cov[bWGr][:, bWGr])\n return 1 / oyIN.sum(wGXr)",
"def srs8(YKHO):\n jzdc, Z9rn, Csk6, Fg_i = YKHO.to_ccw()\n EBgd, hbUd = (jzdc + Fg_i, Z9rn + Csk6)\n HpuQ, BzON = (jzdc + Z9rn, Fg_i + Csk6)\n ... | [
"0.59116715",
"0.5833177",
"0.5826051",
"0.58201087",
"0.58058614",
"0.5800813",
"0.5748519",
"0.57311296",
"0.5694853",
"0.56917757",
"0.5683683",
"0.56661004",
"0.56511396",
"0.562607",
"0.5620447",
"0.561948",
"0.5592494",
"0.55850726",
"0.5572602",
"0.5567935",
"0.5556673... | 0.0 | -1 |
Compute distance to origin of embedding. | def CD5L(YKHO):
YKHO.D = xvHe(YKHO.isomap, oyIN.zeros([1, YKHO.isomap.shape[1]])).flatten() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CD5L(YKHO):\n return oyIN.sqrt(YKHO.x ** 2 + YKHO.y ** 2)",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 ... | [
"0.79157805",
"0.7855354",
"0.7848784",
"0.7848784",
"0.7848784",
"0.7848784",
"0.7848784",
"0.7848784",
"0.7848784",
"0.7840683",
"0.76216936",
"0.75263345",
"0.7159884",
"0.6941558",
"0.6691831",
"0.6689198",
"0.6631622",
"0.6624444",
"0.66191137",
"0.6532472",
"0.6530253",... | 0.73793375 | 12 |
Transforms Tensor to numpy. | def i2oU(WKvO: Union[Tensor, np.ndarray, Number]) -> oyIN.ndarray:
if isinstance(WKvO, oyIN.ndarray):
return WKvO
if oyIN.isscalar(WKvO):
return oyIN.array([WKvO])
if isinstance(WKvO, llWB):
return WKvO.detach().cpu().numpy()
raise NotImplementedError('Got {}, but numpy array, sc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTDd(vhpA):\n raise NotImplementedError",
"def bJO5(vhpA):\n return vhpA.detach().cpu().numpy()",
"def XTiz(WKvO):\n if isinstance(WKvO, ht2j.Tensor):\n WKvO = WKvO.detach().cpu().numpy()\n elif isinstance(WKvO, ZylS.Tensor):\n WKvO = WKvO.numpy()\n return WKvO.astype(oyIN.floa... | [
"0.865773",
"0.79550344",
"0.7905405",
"0.7781543",
"0.77757764",
"0.76597416",
"0.7593022",
"0.7478778",
"0.7463445",
"0.7421553",
"0.7364014",
"0.72990674",
"0.7292116",
"0.7270427",
"0.7156812",
"0.71258116",
"0.70515126",
"0.69874114",
"0.690894",
"0.6898046",
"0.6866942"... | 0.7213085 | 14 |
Exponential decay factor alpha for a given tau (decay window size [s]). | def khFi(JvR2: int, M_Qc: int, jmzt: float):
JRYC = M_Qc / JvR2
return epAf.exp(-JRYC / jmzt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkOh(YKHO, Cwt5: float):\n WKvO = oyIN.linspace(0, 1, 100)\n LVAh = oyIN.exp(Cwt5 * WKvO)\n AFPF = mxlQ.exp_decay(WKvO, LVAh)\n YKHO.assertAlmostEqualAbsolute(AFPF, Cwt5)",
"def IgiR(YKHO, Cwt5):\n if not isinstance(Cwt5, oyIN.ndarray):\n Cwt5 = Cwt5 * oyIN.ones(YKHO.grid.Ncells())\n ... | [
"0.6965109",
"0.68987036",
"0.68590426",
"0.6759444",
"0.65288174",
"0.649881",
"0.64560324",
"0.6417596",
"0.6402563",
"0.63517445",
"0.6323861",
"0.63229555",
"0.63160884",
"0.627504",
"0.62685233",
"0.6263686",
"0.6241628",
"0.62409884",
"0.6184035",
"0.61641264",
"0.61613... | 0.64983374 | 6 |
strip any whitespace then outter characters. | def C54W(youW):
return youW.strip().strip('"[]') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EQOQ():\n pass",
"def T7vC(YKHO, KCHu):\n return KCHu.translate({ord(Z9rn): None for Z9rn in vIwR.whitespace})",
"def RbUs():\n pass",
"def dRdd(YKHO, l5Ny):\n return l5Ny.strip()",
"def neUU(KCHu):\n return ZbWC.sub('\\\\s+', '', KCHu)",
"def neUU(KCHu):\n return ZbWC.sub('\\\\s+',... | [
"0.7748556",
"0.75171465",
"0.7503736",
"0.74134153",
"0.7404506",
"0.7404506",
"0.73442906",
"0.7074216",
"0.7074161",
"0.7064353",
"0.7038751",
"0.70189506",
"0.70023394",
"0.7000071",
"0.6998789",
"0.6950758",
"0.69427323",
"0.6892519",
"0.68918943",
"0.6854954",
"0.685420... | 0.0 | -1 |
download dataset file and return dictionary including training/validation split | def dD7q(Z9pM: str='wnut_17', SNd4: dict=None, kCPm: bool=True):
SNd4 = dict() if SNd4 is None else SNd4
i0XC = Hy7s.path.join(PjxR, Z9pM)
def b4AG(gIsw, jWTJ: dict):
g4y1, Crrw = ([], [])
with open(Hy7s.path.join(i0XC, gIsw), 'r') as eHNT:
yAmx, LEXu = ([], [])
for ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KmPa(__n6: Literal['penntreebank', 'wikitext2', 'wikitext103'], h_xa: str) -> tuple[ZnGW[str], ZnGW[str], ZnGW[str]]:\n gMbG = {}\n for lpha in ('train', 'valid', 'test'):\n if __n6.lower() == 'penntreebank':\n gMbG[lpha] = gF3F(root=h_xa, split=lpha)\n elif __n6.lower() == 'wiki... | [
"0.68258333",
"0.66840726",
"0.65688664",
"0.6510446",
"0.63808805",
"0.63656235",
"0.6340215",
"0.63361245",
"0.6316002",
"0.62699366",
"0.62672967",
"0.626569",
"0.62558717",
"0.623332",
"0.6233109",
"0.62287945",
"0.61991155",
"0.61916643",
"0.61909544",
"0.61437",
"0.6125... | 0.0 | -1 |
Modify setup.cfg to add install_requires and pytest settings | def LUAt(BlNT, VKhi):
VKhi['namespace'] = [eRnh]
eX1T = [VKhi['project'], 'setup.cfg']
BlNT = XN37.modify(BlNT, eX1T, ynJY)
BlNT = XN37.modify(BlNT, eX1T, R2cn)
BlNT = XN37.modify(BlNT, eX1T, lambda WKvO: plcq(WKvO, VKhi))
return (BlNT, VKhi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R2cn(rpFn):\n qVoy = MwdE()\n qVoy.read_string(rpFn)\n h3rk = qVoy['options.extras_require']\n h3rk['testing'].set_values(['flake8', 'pytest', 'pytest-cov', 'pytest-virtualenv', 'pytest-xdist'])\n return str(qVoy)",
"def eCGt(OaeV):\n OaeV.run('pip3 install -r requirements.txt')",
"def uK... | [
"0.7890031",
"0.6854879",
"0.67244124",
"0.66400105",
"0.6521497",
"0.6349635",
"0.630472",
"0.63008094",
"0.6271522",
"0.62125844",
"0.62074906",
"0.6204412",
"0.6204412",
"0.6204412",
"0.60907084",
"0.6055785",
"0.60537934",
"0.60504746",
"0.6031955",
"0.5960534",
"0.595468... | 0.7287702 | 1 |
Lays out a [N, H, W, C] image array as a single image grid. | def kt1c(n2Vj, WfCS=4, hVLt=1, zkt_=255):
hVLt = int(hVLt)
if hVLt < 0:
raise ValueError('pad must be non-negative')
WfCS = int(WfCS)
assert WfCS >= 1
ywwl, C7Ls, XcU5, Nq1b = n2Vj.shape
usx6 = ywwl // WfCS + int(ywwl % WfCS != 0)
jeNG = usx6 * WfCS - ywwl
assert jeNG >= 0
p2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j44n(hlel):\n Cs6h = []\n for nPrm in hlel:\n Cs6h += [R0O3(nPrm, nrow=5, normalize=True)]\n return Cs6h",
"def Lm0U(Yw_3, Gmep=4, OfOG=4):\n G1Hx = min(Gmep * OfOG, len(Yw_3))\n _0VL = [YRbF for YRbF in range(G1Hx)]\n return qr3m(Yw_3, _0VL, Gmep, OfOG)",
"def aln0(Yw_3, aUKP, hVL... | [
"0.7380985",
"0.722367",
"0.72193944",
"0.7196341",
"0.67317426",
"0.6663164",
"0.66591406",
"0.6534534",
"0.6519759",
"0.64165",
"0.6377872",
"0.6377872",
"0.63755167",
"0.6347957",
"0.6319809",
"0.6286931",
"0.6279665",
"0.6227293",
"0.6221285",
"0.6218103",
"0.6216886",
... | 0.66335875 | 7 |
Visualizes the images in realonly mode. | def A26W(cpHD, Iy3G, KzVY, mLGw, YZR5, _OdP, C3ST):
Iy3G = SOTQ(Iy3G, C3ST)
Cs6h = kt1c(Iy3G, cols=_OdP)
Cs6h = ZylS.convert_to_tensor(Cs6h, dtype=ZylS.uint8)
return (Iy3G, Cs6h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kwp2(YKHO):\n QrM1.figure(figsize=(8, 6))\n QrM1.subplot(1, 2, 1)\n QrM1.imshow(YKHO.original_image, cmap='gray')\n QrM1.title('Original Image')\n QrM1.subplot(1, 2, 2)\n QrM1.imshow(YKHO.blurred_image, cmap='gray')\n QrM1.title('Blurred Image')",
"def nUHY(YKHO, eo2P=False):\n if eo2... | [
"0.7178462",
"0.71104944",
"0.6729432",
"0.66617453",
"0.66121",
"0.661191",
"0.66069067",
"0.65909886",
"0.6518474",
"0.65091676",
"0.6508016",
"0.64301366",
"0.64213306",
"0.641656",
"0.6413523",
"0.64044183",
"0.6391974",
"0.637897",
"0.6373977",
"0.636835",
"0.6360143",
... | 0.66745794 | 3 |
Return a string of the content of the class. | def zAg0(YKHO):
return 'API Name: {apiName:s}\nAPI Username: {apiUser:s}\nAPI Password: {apiPass:s}\nAPI URL: {apiURL:s}\nData Path: {dataPath:s}\n'.format(apiName=YKHO.apiName, apiUser=YKHO.apiUser, apiPass='*' * len(YKHO.apiPass), apiURL=YKHO.apiURL, dataPath=YKHO.dataPath) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return repr(YKHO.content)",
"def hGN5(YKHO) -> str:\n return YKHO._content",
"def zAg0(YKHO):\n return ''.join(YKHO.contents)",
"def kGys(YKHO) -> str:\n return YKHO._contents",
"def wHJl(YKHO):\n return repr(YKHO.contents)",
"def wHJl(YKHO) -> str:\n return f'<Class[{... | [
"0.7037365",
"0.68746835",
"0.68527365",
"0.6778612",
"0.6742392",
"0.66767204",
"0.66615826",
"0.66602737",
"0.66602737",
"0.66533655",
"0.6577777",
"0.6568595",
"0.65343",
"0.6533232",
"0.6533232",
"0.6533232",
"0.65317065",
"0.6512414",
"0.6512365",
"0.6512365",
"0.6499095... | 0.0 | -1 |
is.find_boxes_under_coord(num,num) > [Box] Returns all of the boxes underneath image location (x,y). | def iVV1(YKHO, WKvO, LVAh):
return tuple((Mkmy[YKHO.box_col] for Mkmy in YKHO.model if PsBF(Mkmy[YKHO.box_col].rect, WKvO, LVAh))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZP7f(FlUN, LNo8):\n usx6 = LNo8.shape[0]\n WfCS = LNo8.shape[1]\n return FlUN[0] >= 0 and FlUN[1] >= 0 and (FlUN[2] <= WfCS) and (FlUN[3] <= usx6)",
"def yX0c(YKHO, C13M):\n cviu = YKHO._bbox\n oUSw = C13M.get_boxes()\n return [FlUN for FlUN in oUSw if cviu[0] <= FlUN.x0 and FlUN.x1 <= cviu... | [
"0.68882775",
"0.6715736",
"0.66976124",
"0.6626913",
"0.65848416",
"0.65710986",
"0.64194447",
"0.63852483",
"0.63555825",
"0.6348769",
"0.63056386",
"0.62108004",
"0.6199009",
"0.6186366",
"0.617191",
"0.61693555",
"0.6151418",
"0.6103108",
"0.6093899",
"0.60877305",
"0.607... | 0.7961827 | 0 |
Insert an element at the nth position in the Linkedlist. | def QWpx(YKHO, _pUq, dQgj):
if dQgj == 0 and (not YKHO.head):
Esd_ = o7DN(_pUq)
Esd_.next = Esd_
YKHO.head = Esd_
elif dQgj > YKHO.length():
raise VBTh
else:
jvSB = YKHO.head
THkp = YKHO.head
ewCu = 0
while ewCu < dQgj:
ewCu = ewCu ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, d6pt, BWXx):\n if d6pt < 0 or d6pt > YKHO.n:\n print('Index Error; please input valid index')\n return\n if d6pt == 0:\n YKHO.push_front(BWXx)\n return\n Esd_ = o7DN(BWXx)\n FZqh = YKHO.head\n for bGrB in range(d6pt - 1):\n FZqh = FZqh.next\n Esd_... | [
"0.7506879",
"0.7337873",
"0.73338896",
"0.72380835",
"0.7225943",
"0.7213076",
"0.7169024",
"0.7167143",
"0.71494186",
"0.71048874",
"0.71001285",
"0.70599335",
"0.705492",
"0.69927484",
"0.6959111",
"0.69580513",
"0.694763",
"0.6937996",
"0.693408",
"0.6920292",
"0.6916921"... | 0.6204685 | 63 |
Get the current experiment id. | def q3vm():
if sEAN.get_env(hnC4) is not None:
return sEAN.get_env(hnC4)
else:
rjee = qxeD.uuid4().hex
Hy7s.environ[hnC4] = rjee
return rjee | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jPJT(t6ks: str, GPtr: SQAConfig) -> h8nf[int]:\n cq1B = GPtr.class_to_sqa_class[hOpO]\n with FNir() as cuiw:\n _q74 = cuiw.query(cq1B.id).filter_by(name=t6ks).one_or_none()\n if _q74 is None:\n return None\n return _q74[0]",
"def unpH(YKHO):\n return YKHO.iid",
"def id(YKHO) ->... | [
"0.7000055",
"0.6813342",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"0.6809691",
"... | 0.0 | -1 |
Initialize the transition parameters. The parameters will be initialized randomly from a uniform distribution between 0.1 and 0.1. | def Q0Ko(YKHO) -> None:
U78l.init.uniform_(YKHO.start_transitions, -0.1, 0.1)
U78l.init.uniform_(YKHO.end_transitions, -0.1, 0.1)
U78l.init.uniform_(YKHO.transitions, -0.1, 0.1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0Ko(YKHO, Qr_E) -> None:\n U78l.init.uniform_(YKHO.start_transitions, -0.1, 0.1)\n U78l.init.uniform_(YKHO.end_transitions, -0.1, 0.1)\n if not Qr_E:\n U78l.init.uniform_(YKHO.transitions, -0.1, 0.1)",
"def FIMM(YKHO, OZkM, YUjG):\n YKHO.time_steps = YUjG\n YKHO.transition = OZkM\n ... | [
"0.73451084",
"0.7069381",
"0.69564855",
"0.6894689",
"0.68848574",
"0.68810326",
"0.6771471",
"0.67523175",
"0.66436225",
"0.65703744",
"0.6535196",
"0.6523617",
"0.64791125",
"0.647577",
"0.64482796",
"0.6446289",
"0.6442313",
"0.6434945",
"0.6431381",
"0.64138424",
"0.6407... | 0.73760986 | 0 |
Check representation of a transformed dimension. | def d6hT(YKHO):
a1PO = VoC8()
assert a1PO.repr_format('asfa') == 'asfa' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brO1(e_2d, SZFh=None):\n if isinstance(e_2d, eOte):\n return e_2d\n if not isinstance(e_2d, (list, tuple, oyIN.ndarray)):\n raise ValueError('Dimension has to be a list or tuple.')\n if len(e_2d) == 1:\n return hQev(e_2d, transform=SZFh)\n if len(e_2d) == 2:\n if any([is... | [
"0.6601862",
"0.6167027",
"0.6046284",
"0.60089576",
"0.59311587",
"0.59085476",
"0.5894478",
"0.5852796",
"0.5845249",
"0.5781944",
"0.57811064",
"0.5660137",
"0.5646089",
"0.561485",
"0.55891615",
"0.55763173",
"0.5574433",
"0.55693966",
"0.5557644",
"0.5556008",
"0.5466861... | 0.0 | -1 |
Check representation of a transformed dimension. | def d6hT(YKHO):
a1PO = cJ6i(ephw())
assert a1PO.repr_format('asfa') == 'ReverseQuantize(asfa)' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brO1(e_2d, SZFh=None):\n if isinstance(e_2d, eOte):\n return e_2d\n if not isinstance(e_2d, (list, tuple, oyIN.ndarray)):\n raise ValueError('Dimension has to be a list or tuple.')\n if len(e_2d) == 1:\n return hQev(e_2d, transform=SZFh)\n if len(e_2d) == 2:\n if any([is... | [
"0.66009927",
"0.61655766",
"0.60451436",
"0.6008891",
"0.59300977",
"0.5907829",
"0.5893205",
"0.58523893",
"0.5844773",
"0.578081",
"0.57806385",
"0.5659487",
"0.56460017",
"0.56143785",
"0.5587609",
"0.55753785",
"0.55740553",
"0.55687946",
"0.55569714",
"0.55546796",
"0.5... | 0.0 | -1 |
Check representation of a transformed dimension. | def d6hT(YKHO):
a1PO = jeFo([sVsq([2, 'asfa', 'ipsi']), d2OV(3)], 'categorical')
assert a1PO.repr_format('asfa') == 'OneHotEncode(Enumerate(asfa))' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brO1(e_2d, SZFh=None):\n if isinstance(e_2d, eOte):\n return e_2d\n if not isinstance(e_2d, (list, tuple, oyIN.ndarray)):\n raise ValueError('Dimension has to be a list or tuple.')\n if len(e_2d) == 1:\n return hQev(e_2d, transform=SZFh)\n if len(e_2d) == 2:\n if any([is... | [
"0.6601862",
"0.6167027",
"0.6046284",
"0.60089576",
"0.59311587",
"0.59085476",
"0.5894478",
"0.5852796",
"0.5845249",
"0.5781944",
"0.57811064",
"0.5660137",
"0.5646089",
"0.561485",
"0.55891615",
"0.55763173",
"0.5574433",
"0.55693966",
"0.5557644",
"0.5556008",
"0.5466861... | 0.0 | -1 |
Check representation of a transformed dimension. | def d6hT(YKHO):
a1PO = o4KV()
assert a1PO.repr_format('asfa') == 'Precision(4, asfa)' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brO1(e_2d, SZFh=None):\n if isinstance(e_2d, eOte):\n return e_2d\n if not isinstance(e_2d, (list, tuple, oyIN.ndarray)):\n raise ValueError('Dimension has to be a list or tuple.')\n if len(e_2d) == 1:\n return hQev(e_2d, transform=SZFh)\n if len(e_2d) == 2:\n if any([is... | [
"0.66009927",
"0.61655766",
"0.60451436",
"0.6008891",
"0.59300977",
"0.5907829",
"0.5893205",
"0.58523893",
"0.5844773",
"0.578081",
"0.57806385",
"0.5659487",
"0.56460017",
"0.56143785",
"0.5587609",
"0.55753785",
"0.55740553",
"0.55687946",
"0.55569714",
"0.55546796",
"0.5... | 0.0 | -1 |
Check representation of a transformed dimension. | def d6hT(YKHO):
a1PO = ephw()
assert a1PO.repr_format('asfa') == 'Quantize(asfa)' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brO1(e_2d, SZFh=None):\n if isinstance(e_2d, eOte):\n return e_2d\n if not isinstance(e_2d, (list, tuple, oyIN.ndarray)):\n raise ValueError('Dimension has to be a list or tuple.')\n if len(e_2d) == 1:\n return hQev(e_2d, transform=SZFh)\n if len(e_2d) == 2:\n if any([is... | [
"0.6601862",
"0.6167027",
"0.6046284",
"0.60089576",
"0.59311587",
"0.59085476",
"0.5894478",
"0.5852796",
"0.5845249",
"0.5781944",
"0.57811064",
"0.5660137",
"0.5646089",
"0.561485",
"0.55891615",
"0.55763173",
"0.5574433",
"0.55693966",
"0.5557644",
"0.5556008",
"0.5466861... | 0.0 | -1 |
Check representation of a transformed dimension. | def d6hT(YKHO):
a1PO = sVsq([2, 'asfa', 'ipsi'])
assert a1PO.repr_format('asfa') == 'Enumerate(asfa)' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brO1(e_2d, SZFh=None):\n if isinstance(e_2d, eOte):\n return e_2d\n if not isinstance(e_2d, (list, tuple, oyIN.ndarray)):\n raise ValueError('Dimension has to be a list or tuple.')\n if len(e_2d) == 1:\n return hQev(e_2d, transform=SZFh)\n if len(e_2d) == 2:\n if any([is... | [
"0.66009927",
"0.61655766",
"0.60451436",
"0.6008891",
"0.59300977",
"0.5907829",
"0.5893205",
"0.58523893",
"0.5844773",
"0.578081",
"0.57806385",
"0.5659487",
"0.56460017",
"0.56143785",
"0.5587609",
"0.55753785",
"0.55740553",
"0.55687946",
"0.55569714",
"0.55546796",
"0.5... | 0.0 | -1 |
Check representation of a transformed dimension. | def d6hT(YKHO):
a1PO = d2OV(3)
assert a1PO.repr_format('asfa') == 'OneHotEncode(asfa)' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brO1(e_2d, SZFh=None):\n if isinstance(e_2d, eOte):\n return e_2d\n if not isinstance(e_2d, (list, tuple, oyIN.ndarray)):\n raise ValueError('Dimension has to be a list or tuple.')\n if len(e_2d) == 1:\n return hQev(e_2d, transform=SZFh)\n if len(e_2d) == 2:\n if any([is... | [
"0.6601862",
"0.6167027",
"0.6046284",
"0.60089576",
"0.59311587",
"0.59085476",
"0.5894478",
"0.5852796",
"0.5845249",
"0.5781944",
"0.57811064",
"0.5660137",
"0.5646089",
"0.561485",
"0.55891615",
"0.55763173",
"0.5574433",
"0.55693966",
"0.5557644",
"0.5556008",
"0.5466861... | 0.0 | -1 |
Check representation of a transformed dimension. | def d6hT(YKHO):
a1PO = Gjq5()
assert a1PO.repr_format(1.0) == 'Linearize(1.0)' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brO1(e_2d, SZFh=None):\n if isinstance(e_2d, eOte):\n return e_2d\n if not isinstance(e_2d, (list, tuple, oyIN.ndarray)):\n raise ValueError('Dimension has to be a list or tuple.')\n if len(e_2d) == 1:\n return hQev(e_2d, transform=SZFh)\n if len(e_2d) == 2:\n if any([is... | [
"0.6601862",
"0.6167027",
"0.6046284",
"0.60089576",
"0.59311587",
"0.59085476",
"0.5894478",
"0.5852796",
"0.5845249",
"0.5781944",
"0.57811064",
"0.5660137",
"0.5646089",
"0.561485",
"0.55891615",
"0.55763173",
"0.5574433",
"0.55693966",
"0.5557644",
"0.5556008",
"0.5466861... | 0.0 | -1 |
Check representation of a transformed dimension. | def d6hT(YKHO):
ROpF = (3, 4, 5)
d6pt = (0, 2, 1)
a1PO = Rv6M(shape=ROpF, index=d6pt)
assert a1PO.repr_format(1.0) == 'View(shape=(3, 4, 5), index=(0, 2, 1), 1.0)' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def brO1(e_2d, SZFh=None):\n if isinstance(e_2d, eOte):\n return e_2d\n if not isinstance(e_2d, (list, tuple, oyIN.ndarray)):\n raise ValueError('Dimension has to be a list or tuple.')\n if len(e_2d) == 1:\n return hQev(e_2d, transform=SZFh)\n if len(e_2d) == 2:\n if any([is... | [
"0.66009927",
"0.61655766",
"0.60451436",
"0.6008891",
"0.59300977",
"0.5907829",
"0.5893205",
"0.58523893",
"0.5844773",
"0.578081",
"0.57806385",
"0.5659487",
"0.56460017",
"0.56143785",
"0.5587609",
"0.55753785",
"0.55740553",
"0.55687946",
"0.55569714",
"0.55546796",
"0.5... | 0.0 | -1 |