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 |
|---|---|---|---|---|---|---|
Create a filled array like `a`. | def ShW4(jzdc, **B2fa):
Ub6J(jzdc, B2fa)
if isinstance(jzdc, HWEd):
B2fa.setdefault('fill_value', jzdc.fill_value)
return vBWh(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tai5(jzdc):\n jzdc.size = jzdc.length * jzdc.base.size\n return jzdc",
"def owhS(zNig, QKyp=None):\n return [QKyp] * zNig",
"def KGm9(YKHO, Z9rn):\n return Z9rn * [None]",
"def qUOF(jzdc, xgWT, yDqo):\n if not jzdc:\n return oyIN.array([[]])\n BcCR = max([len(rdlD) for rdlD in jz... | [
"0.7224655",
"0.7026511",
"0.6915234",
"0.6670503",
"0.6575526",
"0.654146",
"0.6413181",
"0.63366693",
"0.63033915",
"0.6293167",
"0.6281475",
"0.6268439",
"0.6236677",
"0.62316966",
"0.61896336",
"0.6162792",
"0.6112299",
"0.6098695",
"0.6084763",
"0.6056418",
"0.6055951",
... | 0.6253221 | 12 |
Open a persistent array like `a`. | def CBqL(jzdc, pmON, **B2fa):
Ub6J(jzdc, B2fa)
if isinstance(jzdc, HWEd):
B2fa.setdefault('fill_value', jzdc.fill_value)
return y_QR(pmON, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def open(YKHO):\n return YKHO.open_array",
"def open(YKHO):\n return YKHO.open_array",
"def tyeH(jzdc):\n jzdc.store_locally(data=False)",
"def TDZz(YKHO, ezWE):\n mWFP = YKHO._translator(YKHO._persistent_value_idgen())\n uFSR = jetH(ezWE, 'i')\n YKHO._internal_annotations[mWFP] = uFSR\n ... | [
"0.61710405",
"0.61710405",
"0.58796674",
"0.5732951",
"0.5628421",
"0.5489631",
"0.5427907",
"0.54071224",
"0.5383051",
"0.5345745",
"0.53427744",
"0.53172684",
"0.53090996",
"0.5305366",
"0.5237836",
"0.52120006",
"0.52046716",
"0.51628774",
"0.5160181",
"0.514589",
"0.5141... | 0.6789352 | 0 |
Return the unique id of the switch. | def g2g3(YKHO):
g2g3 = '{}.{}_{}'.format(Sugg, J6RW, YKHO._deviceid)
if YKHO._outlet is not None:
g2g3 = '{}_{}'.format(g2g3, str(YKHO._outlet + 1))
return g2g3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vswitch_id')",
"def D_IQ(YKHO) -> qe4Y.Out... | [
"0.7853029",
"0.7853029",
"0.7853029",
"0.77190894",
"0.77190894",
"0.77190894",
"0.77190894",
"0.75732017",
"0.73973614",
"0.73639965",
"0.73639965",
"0.73639965",
"0.73587346",
"0.73587346",
"0.73111564",
"0.72934896",
"0.72799087",
"0.727629",
"0.72681415",
"0.72581303",
"... | 0.0 | -1 |
A Dict_Replacer that will replace any element of `maps`. | def QzZI(YKHO):
map = YKHO.map
if map:
DuqQ = UKao.I18N.Config.choice[0]
try:
Aofo = YKHO._replacers[DuqQ]
except KeyError:
Aofo = YKHO._replacers[DuqQ] = l40U(map, 0, YKHO._re_head, YKHO._re_tail)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e4rq(ZUBj: Dict[Tuple[ClassType1, ClassType2], Any], blnv: Dict[str, Dict[str, Any]], JaKZ: Dict[CombinatorialClass, str]) -> None:\n for (dg7v, iYf1), BWXx in ZUBj.items():\n TPao, fVVZ = (JaKZ[dg7v], JaKZ[iYf1])\n if TPao not in blnv:\n blnv[TPao] = {fVVZ: BWXx}\n else:\n ... | [
"0.6288529",
"0.6147522",
"0.61297464",
"0.6123637",
"0.6114405",
"0.6075874",
"0.60664195",
"0.6011656",
"0.59918475",
"0.59841645",
"0.59748167",
"0.5965798",
"0.5955026",
"0.594668",
"0.5897802",
"0.5883757",
"0.5872708",
"0.58687097",
"0.58240664",
"0.5823723",
"0.5808589... | 0.5479339 | 55 |
A Dict_Replacer that will replace any element of `maps`. | def TFWn(YKHO):
jqL2 = YKHO.map_r
if jqL2:
DuqQ = UKao.I18N.Config.choice[0]
try:
Aofo = YKHO._replacers_r[DuqQ]
except KeyError:
Aofo = YKHO._replacers_r[DuqQ] = l40U(jqL2, 0, YKHO._re_head, YKHO._re_tail)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e4rq(ZUBj: Dict[Tuple[ClassType1, ClassType2], Any], blnv: Dict[str, Dict[str, Any]], JaKZ: Dict[CombinatorialClass, str]) -> None:\n for (dg7v, iYf1), BWXx in ZUBj.items():\n TPao, fVVZ = (JaKZ[dg7v], JaKZ[iYf1])\n if TPao not in blnv:\n blnv[TPao] = {fVVZ: BWXx}\n else:\n ... | [
"0.628803",
"0.6148463",
"0.6128583",
"0.6125073",
"0.61137116",
"0.6074333",
"0.6065834",
"0.60107756",
"0.59906745",
"0.59850025",
"0.59719473",
"0.59625447",
"0.59553087",
"0.59461737",
"0.5894609",
"0.58831203",
"0.58719975",
"0.5868021",
"0.58242494",
"0.5822796",
"0.580... | 0.0 | -1 |
The number of edges in the incidence graph, or the number of structural nonzeros in the incidence matrix | def dos2(YKHO):
if YKHO._incidence_graph is None:
raise RuntimeError('Cannot get number of edges (nonzeros) when nothing is cached')
return len(YKHO._incidence_graph.edges) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n8F9():\n return len(mC4V())",
"def n8F9(YKHO) -> int:\n return YKHO.edge_index.shape[1]",
"def fOCg(YKHO):\n return YKHO.graph.number_of_edges()",
"def n8F9(YKHO):\n return len(tuple(YKHO.edges()))",
"def n8F9(YKHO):\n return len(tuple(YKHO.edges()))",
"def vi4d(YKHO):\n return YKH... | [
"0.7748353",
"0.7626369",
"0.7565316",
"0.7558853",
"0.7558853",
"0.75169444",
"0.75009346",
"0.74896985",
"0.74896985",
"0.7442603",
"0.7442603",
"0.74392384",
"0.74239206",
"0.74042505",
"0.73084134",
"0.7305662",
"0.73024654",
"0.7289548",
"0.7257673",
"0.72480613",
"0.723... | 0.85679 | 0 |
The structural incidence matrix of variables and constraints. Variables correspond to columns and constraints correspond to rows. All matrix entries have value 1.0. | def tclk(YKHO):
if YKHO._incidence_graph is None:
return None
else:
E3D9 = len(YKHO.constraints)
ywwl = len(YKHO.variables)
rdlD = []
fvDH = []
nPrm = []
for YRbF in range(E3D9):
assert YKHO._incidence_graph.nodes[YRbF]['bipartite'] == 0
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmif(kc1W, gkIT, **c_sp):\n GPtr = c4_v(c_sp)\n veP8(kc1W + gkIT)\n ywwl, E3D9 = (len(kc1W), len(gkIT))\n kQsc = RwDH(((Ty9i, YRbF) for YRbF, Ty9i in enumerate(kc1W)))\n usx6 = []\n WfCS = []\n for YRbF, hAVj in enumerate(gkIT):\n WfCS.extend((kQsc[Ty9i] for Ty9i in y3Ht(hAVj.body, ... | [
"0.7837089",
"0.65682775",
"0.6519975",
"0.6511596",
"0.5927245",
"0.5908339",
"0.5878391",
"0.58359253",
"0.58272755",
"0.58195966",
"0.5800587",
"0.57986915",
"0.5752717",
"0.5740483",
"0.5735109",
"0.57261866",
"0.56956154",
"0.56772304",
"0.5670385",
"0.5654812",
"0.56363... | 0.78829503 | 0 |
Returns jetson nano CPU thermal zone temperature in celsius | def eHHr():
nYbO = Yn3K.run(['cat', '/sys/class/thermal/thermal_zone1/temp'], check=True, stdout=Yn3K.PIPE, stderr=Yn3K.PIPE, universal_newlines=True)
JELU = float(nYbO.stdout) / 1000
return JELU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QGow(YKHO):\n return YKHO.temp",
"def ovGo(YKHO):\n ycBG = YKHO.read_temp_raw()\n ycBG = 21.0 + ycBG / 8\n return ycBG",
"def ovGo(YKHO):\n Eawd = YKHO._read_raw_temperature()\n mSn1 = int((Eawd - YKHO._AC6) * YKHO._AC5 >> 15)\n IP77 = int((YKHO._MC << 11) / (mSn1 + YKHO._MD))\n M_X... | [
"0.7726897",
"0.76199156",
"0.7615099",
"0.76074445",
"0.7552536",
"0.7521549",
"0.747208",
"0.745129",
"0.7443127",
"0.7434559",
"0.7404754",
"0.73921764",
"0.7369112",
"0.734113",
"0.73388517",
"0.73098063",
"0.7307362",
"0.7293222",
"0.7271296",
"0.7271296",
"0.7271296",
... | 0.73267037 | 15 |
Returns jetson nano GPU thermal zone temperature in celsius | def dHVP():
RxDy = Yn3K.run(['cat', '/sys/class/thermal/thermal_zone2/temp'], check=True, stdout=Yn3K.PIPE, stderr=Yn3K.PIPE, universal_newlines=True)
XEEe = float(RxDy.stdout) / 1000
return XEEe | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rcrL(YKHO):\n return YKHO.CC.get_temperature()",
"def ovGo(YKHO):\n Eawd = YKHO._read_raw_temperature()\n mSn1 = int((Eawd - YKHO._AC6) * YKHO._AC5 >> 15)\n IP77 = int((YKHO._MC << 11) / (mSn1 + YKHO._MD))\n M_XA = mSn1 + IP77\n ycBG = (M_XA + 8 >> 4) / 10.0\n return ycBG",
"def ovGo(Y... | [
"0.7514327",
"0.7495834",
"0.7470662",
"0.7464954",
"0.74236166",
"0.7419443",
"0.74099326",
"0.7397348",
"0.7383267",
"0.7354397",
"0.7349145",
"0.7342484",
"0.73330766",
"0.7305317",
"0.72985077",
"0.7281285",
"0.7256023",
"0.72491354",
"0.72377264",
"0.72377264",
"0.723772... | 0.7062001 | 50 |
Returns thermal fan estimate thermal zone temperature in celsius. thermal fan estimate is weighted average of gpu and cpu temperature. | def ojAz():
jcGU = Yn3K.run(['cat', '/sys/class/thermal/thermal_zone5/temp'], check=True, stdout=Yn3K.PIPE, stderr=Yn3K.PIPE, universal_newlines=True)
qS2B = float(jcGU.stdout) / 1000
return qS2B | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ovGo(YKHO):\n if YKHO.mass > 0:\n return YKHO.thermal_energy / (YKHO.mass * YKHO.specific_heat_capacity)\n else:\n return 0.0",
"def ovGo(YKHO):\n Yh3e = YKHO.data.adc_t\n Z9rn = YKHO.calibration\n CIn9 = ((Yh3e >> 3) - (Z9rn.T1 << 1)) * Z9rn.T2 >> 11\n AhCl = (((Yh3e >> 4) - ... | [
"0.76010656",
"0.7492908",
"0.74803936",
"0.7234314",
"0.72156495",
"0.72042185",
"0.719054",
"0.7103083",
"0.70882267",
"0.70532644",
"0.70299876",
"0.7007201",
"0.70066",
"0.696049",
"0.6941184",
"0.6897455",
"0.6882762",
"0.6879243",
"0.68663484",
"0.68266475",
"0.6791728"... | 0.72982216 | 3 |
Create neural network architecture and compile. Accepts number of hiiden layers, number of neurons, learning rate, and input shape. Returns compiled model. | def mHQi(V06R=2, dieZ=50, b0Ix=0.001, ETfU=200, ReNU=0.1):
C3ST = bdPE.models.Sequential()
C3ST.add(bdPE.layers.Dropout(ReNU, input_shape=(ETfU,)))
for gEmA in range(V06R):
C3ST.add(bdPE.layers.Dense(dieZ, activation='relu'))
C3ST.add(bdPE.layers.Dropout(ReNU))
C3ST.add(bdPE.layers.Dense... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m5Rz(eVVj, Ybg9, GhuM):\n O7Wv = eVVj['nb_layers']\n mKYo = eVVj['nb_neurons']\n YDYE = eVVj['activation']\n K0do = eVVj['optimizer']\n C3ST = ileL()\n for YRbF in range(O7Wv):\n if YRbF == 0:\n C3ST.add(l6ZH(mKYo, activation=YDYE, input_shape=GhuM))\n else:\n ... | [
"0.78178394",
"0.7771535",
"0.77434915",
"0.76255953",
"0.7446458",
"0.7283329",
"0.72679263",
"0.7214384",
"0.7164747",
"0.71592355",
"0.7145736",
"0.71084",
"0.70502317",
"0.7042647",
"0.70327866",
"0.70280105",
"0.6997546",
"0.69871384",
"0.6954622",
"0.6933218",
"0.693047... | 0.71058816 | 12 |
Return a list of strings on separate lines in the given text file with any leading and trailing whitespace characters removed from each line. | def UjPT(Ux0P='/usr/share/dict/words'):
with open(Ux0P) as nUeQ:
Nqlg = [zFiD.strip() for zFiD in nUeQ]
return Nqlg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JrCa(rVmU):\n return list(map(XQ_r, rVmU))",
"def K3lV(Xf36):\n with open(Xf36, 'r') as eHNT:\n vC9B = list(eHNT.readlines())\n return [a1PO.strip() for a1PO in list(vC9B)]",
"def mA5V(Ux0P):\n with open(Ux0P, 'r') as eHNT:\n Nqlg = eHNT.readlines()\n return list(filter(bool, [... | [
"0.73653615",
"0.72571176",
"0.7213279",
"0.7204998",
"0.72031075",
"0.7137295",
"0.7023896",
"0.6998096",
"0.69679654",
"0.6957609",
"0.69046",
"0.6843501",
"0.68114626",
"0.67990476",
"0.67963564",
"0.6784661",
"0.6766078",
"0.6760604",
"0.67374176",
"0.67303425",
"0.672100... | 0.0 | -1 |
Simple function to generate an unique random string | def BWvy(u54L, yKcO=''):
for YRbF in range(u54L):
yKcO += tuKI.choice(vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits)
return str(yKcO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eTqN():\n return str(qxeD.uuid4())[:10]",
"def nj6L():\n Aofo = Gmzq.rand_uuid()\n return Aofo",
"def tuKI():\n return str(qxeD.uuid4())",
"def swFL():\n return str(kxTZ())",
"def lVRE():\n gLiZ = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXZY0123456789'\n ADdS = tuKI.random... | [
"0.8692033",
"0.8346173",
"0.82696617",
"0.8113564",
"0.8079017",
"0.7929484",
"0.7912618",
"0.788675",
"0.7859626",
"0.7847683",
"0.78472894",
"0.78428864",
"0.7811414",
"0.77996874",
"0.7773539",
"0.77183264",
"0.77040774",
"0.7696731",
"0.76810515",
"0.76808095",
"0.767128... | 0.0 | -1 |
Generate a random string and return the value | def tuKI(YKHO):
return BWvy(int(YKHO.length), YKHO.prefix) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eTqN():\n return str(qxeD.uuid4())[:10]",
"def nj6L():\n Aofo = Gmzq.rand_uuid()\n return Aofo",
"def wc7e():\n return tuKI.choice('abcdef0123456789')",
"def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(20)))",
"def tuKI... | [
"0.8164003",
"0.80483115",
"0.80404264",
"0.80064756",
"0.7873241",
"0.77671325",
"0.77558184",
"0.76810575",
"0.7679636",
"0.76760775",
"0.76745415",
"0.7575572",
"0.75139624",
"0.75115997",
"0.7502513",
"0.74726623",
"0.74618316",
"0.7460817",
"0.74073166",
"0.74071133",
"0... | 0.76895934 | 7 |
Return copy of this object | def jth9(YKHO):
q9ES = jth9.deepcopy(YKHO)
return q9ES | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def FzJk(YKHO):\n return YKHO",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__cop... | [
"0.90242183",
"0.90022564",
"0.90022564",
"0.90022564",
"0.90022564",
"0.90022564",
"0.8956464",
"0.8956464",
"0.8956464",
"0.8956464",
"0.89188963",
"0.8829272",
"0.8829272",
"0.8829272",
"0.8829272",
"0.8829272",
"0.8829272",
"0.8827696",
"0.8827696",
"0.8825865",
"0.882459... | 0.0 | -1 |
Make the dictionary mapping from integer number to board position | def zT8f(YKHO):
Csk6 = dict()
Csk6[7] = (0, 0)
Csk6[8] = (0, 1)
Csk6[9] = (0, 2)
Csk6[4] = (1, 0)
Csk6[5] = (1, 1)
Csk6[6] = (1, 2)
Csk6[1] = (2, 0)
Csk6[2] = (2, 1)
Csk6[3] = (2, 2)
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dcdR(iBIi):\n return {(YRbF, r845): wEf2 for YRbF, rdlD in enumerate(iBIi) for r845, wEf2 in enumerate(rdlD)}",
"def JpnJ():\n iBIi = {}\n for jzdc in range(1, 9):\n for Fg_i in range(1, 9):\n iBIi[jzdc, Fg_i] = 0\n iBIi[4, 4] = 1\n iBIi[4, 5] = 2\n iBIi[5, 4] = 2\n iBI... | [
"0.72289246",
"0.7168953",
"0.65891725",
"0.65432143",
"0.65401554",
"0.65376097",
"0.65069693",
"0.64998746",
"0.64501876",
"0.64172363",
"0.64118165",
"0.641094",
"0.6405298",
"0.6373773",
"0.6365623",
"0.6363512",
"0.6345562",
"0.6329639",
"0.629935",
"0.62710774",
"0.6223... | 0.6052502 | 32 |
Take in integer spot and place X or O on board if not taken | def MUHP(YKHO, j5sR):
if j5sR < 1 or j5sR > 9:
print('INPUT INVALID! CHOOSE ANOTHER')
return -1
dQgj = YKHO.dictionary[j5sR]
if YKHO.board[dQgj[0]][dQgj[1]] != 0:
print('SPOT ALREADY TAKEN! CHOOSE ANOTHER')
return -1
YKHO.board[dQgj[0]][dQgj[1]] = 1 if not YKHO.turn else ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F5VF(YKHO, oeNL: tuple):\n rdlD = oeNL[1]\n iVRZ = oeNL[0]\n eL5z = YKHO.board[rdlD][iVRZ]\n if not eL5z.fixed and len(eL5z.penciled_values) > 0:\n eL5z.value = eL5z.penciled_values[0]\n return True\n return False",
"def JUxV(iBIi):\n QKgV = tuKI.randint(1, 9)\n if QKgV in ... | [
"0.68477803",
"0.6825627",
"0.6745942",
"0.66953146",
"0.6652479",
"0.6588742",
"0.6572606",
"0.6565852",
"0.65393317",
"0.65230834",
"0.6443511",
"0.6410989",
"0.6402779",
"0.63470054",
"0.63449067",
"0.63426715",
"0.6276273",
"0.62718207",
"0.6262429",
"0.62592155",
"0.6247... | 0.7088268 | 0 |
Parse requirements file and get requirments that are grouped by "Components". | def l7kG():
VsXA = xbSz / 'dev-requirements-new.txt'
R6S6 = VsXA.read_text()
v8H8 = None
Xa6e = dict()
for zFiD in R6S6.splitlines():
if zFiD == '':
continue
if zFiD.rstrip().startswith('#'):
r8hN = ZbWC.match('^# <COMPONENT:([^>]+)>$', zFiD)
if r8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VnMZ(IznC='requirements.txt'):\n from os.path import dirname, join, exists\n import re\n jK_o = join(dirname(xAKo), IznC)\n\n def pjGW(zFiD):\n \"\"\"\n Parse information from a line in a requirements text file\n \"\"\"\n U34r = {}\n if zFiD.startswith('-e '):\n ... | [
"0.74429816",
"0.7396771",
"0.7291915",
"0.72867596",
"0.7251991",
"0.71717775",
"0.71124524",
"0.7064679",
"0.7045054",
"0.7043593",
"0.70355976",
"0.70296365",
"0.7000465",
"0.6995348",
"0.6992549",
"0.698099",
"0.6975266",
"0.69589335",
"0.6940222",
"0.69242764",
"0.692427... | 0.8269759 | 0 |
Return a vector of M example costs using hinge loss | def U7nq(XcU5, Fg_i, WKvO, si3g):
MVIL = si3g * (oyIN.dot(WKvO, XcU5) + Fg_i)
sSN_ = yq4r(MVIL).mean(axis=0).sum()
return sSN_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y0Y6(Y8eF, VwyP, *, Crrw=..., xF06=...):\n ...",
"def besz(YKHO):\n with QpfX.eager_mode():\n OR2u = 1\n sHXb = 1\n KeL5 = oyIN.random.rand(sHXb).astype(oyIN.float32)\n Crrw = oyIN.random.rand(OR2u).astype(oyIN.float32)\n Aofo = fhcK.HingeLoss()(Crrw, KeL5)\n a... | [
"0.71900684",
"0.6844906",
"0.68047965",
"0.65471363",
"0.6524093",
"0.6447132",
"0.62965554",
"0.6284845",
"0.6280103",
"0.622501",
"0.62132686",
"0.6208225",
"0.6093763",
"0.60663414",
"0.6042739",
"0.6021105",
"0.59963584",
"0.59144014",
"0.5911368",
"0.58721036",
"0.58696... | 0.60527945 | 14 |
Gets the questions of this Ballot. | def WlEx(YKHO) -> x1iM[Y4Gy]:
return YKHO._questions | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kL3o(YKHO):\n return YKHO.question",
"def u7No(YKHO) -> x1iM[dict]:\n pass",
"def u7No(YKHO) -> x1iM[Y4Gy]:\n return YKHO._questions.values()",
"def NSJu(YKHO):\n return YKHO.question_list",
"def DbAa(YKHO):\n return YKHO._question_options",
"def u7No(YKHO):\n kPzY = 'asthma_questio... | [
"0.7740417",
"0.740879",
"0.7371338",
"0.7235335",
"0.7128773",
"0.71214336",
"0.71050924",
"0.70761603",
"0.7033791",
"0.70166904",
"0.70058936",
"0.6982542",
"0.68658936",
"0.68348813",
"0.6745868",
"0.67303866",
"0.66252226",
"0.6575303",
"0.6553552",
"0.6490542",
"0.64872... | 0.7499382 | 1 |
Returns a `requests.Session` or a `requests_cache.CachedSession` | def KfiN(foZc, _OIP='cache'):
if foZc == '-1':
foZc = None
bo34.debug('expire_after==0 no cache')
cuiw = G4JS.Session()
else:
if foZc == '0':
foZc = 0
bo34.debug("Installing cache '%s.sqlite' without expiration" % _OIP)
else:
foZc = rLd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfiN():\n return G4JS.session()",
"def KfiN():\n pmON = gCuF.STATE_PATH.joinpath('http').as_posix()\n cuiw = aaO7(cache_name=pmON, expire_after=gCuF.CACHE_EXPIRE)\n cuiw.headers.update(KP2F)\n cuiw.request = xBlr.partial(cuiw.request, timeout=gCuF.HTTP_TIMEOUT)\n return cuiw",
"def KfiN()... | [
"0.798672",
"0.7802319",
"0.7698503",
"0.76431274",
"0.7392881",
"0.73688745",
"0.7195727",
"0.71623784",
"0.7147283",
"0.70345265",
"0.70143753",
"0.7012742",
"0.69689333",
"0.6949701",
"0.69181484",
"0.69148517",
"0.68782675",
"0.6859741",
"0.6800821",
"0.6800202",
"0.67909... | 0.7076833 | 9 |
Create and return a `User` with superuser powers. Superuser powers means that this use is an admin that can do anything they want. | def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):
print('vao')
if jTXt is None:
raise TypeError('Superusers must have a password.')
CBIr = YKHO.create_user(NtEF, D3lj, jTXt)
CBIr.is_superuser = True
CBIr.is_staff = True
CBIr.save()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cxLU():\n P6bq, _EYN = mv1M.objects.get_or_create(username='admin')\n if _EYN:\n P6bq.set_password('password')\n P6bq.is_superuser = True\n P6bq.is_staff = True\n P6bq.save()\n return P6bq",
"def Zp54(YKHO, NtEF, jTXt):\n CBIr = YKHO.create_user(NtEF, password=jTXt)\n ... | [
"0.7510914",
"0.7502767",
"0.73325396",
"0.7320911",
"0.73114306",
"0.7295989",
"0.7292679",
"0.728296",
"0.72469884",
"0.7238596",
"0.722982",
"0.7224232",
"0.7205832",
"0.7202652",
"0.71994865",
"0.7198191",
"0.71898174",
"0.71893966",
"0.71893555",
"0.71742475",
"0.7171986... | 0.725872 | 8 |
The ID of the VPC that the configuration is for. | def PcW4(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_... | [
"0.8454203",
"0.8454203",
"0.8454203",
"0.8454203",
"0.8454203",
"0.8454203",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8172444",
"0.8165689",
"0.8165689",
"... | 0.0 | -1 |
The AWS account ID of the owner of the VPC that this firewall configuration applies to. | def gPmJ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'owner_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k4C1(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'owner_account_id')",
"def k4C1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'owner_account_id')",
"def k4C1(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'owner_account_id')",
"def RQV1(YKHO) -> str:\n return qe4Y.get(YKH... | [
"0.7729553",
"0.76424754",
"0.7600305",
"0.7214075",
"0.70687836",
"0.70607936",
"0.70607936",
"0.6926518",
"0.6926518",
"0.6926518",
"0.6926518",
"0.6926518",
"0.68598855",
"0.6845747",
"0.6814827",
"0.6765138",
"0.6765138",
"0.6723448",
"0.6723448",
"0.6704604",
"0.6651587"... | 0.68503004 | 13 |
The ID of the VPC that the configuration is for. | def PcW4(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_... | [
"0.8455175",
"0.8455175",
"0.8455175",
"0.8455175",
"0.8455175",
"0.8455175",
"0.82999533",
"0.82999533",
"0.82999533",
"0.82999533",
"0.82999533",
"0.82999533",
"0.82999533",
"0.82999533",
"0.82999533",
"0.82999533",
"0.82999533",
"0.82999533",
"0.8173586",
"0.8166299",
"0.8... | 0.0 | -1 |
Get an existing ResolverFirewallConfig resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, tXdk: Optional[pulumi.Input[str]]=None, gPmJ: Optional[pulumi.Input[str]]=None, PcW4: Optional[pulumi.Input[str]]=None) -> 'ResolverFirewallConfig':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, YS4Q: Optional[pulumi.Input[bool]]=None, slE1: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, JBZA: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, Say0: Optional[pulumi.Input[bool]]=None, u... | [
"0.70485604",
"0.62688917",
"0.6249584",
"0.5809649",
"0.572693",
"0.55635154",
"0.51913023",
"0.5176447",
"0.5166435",
"0.51390636",
"0.51040584",
"0.5010417",
"0.49922928",
"0.4972415",
"0.49639717",
"0.49633318",
"0.49145877",
"0.4910647",
"0.48954815",
"0.48871988",
"0.48... | 0.7925255 | 0 |
The AWS account ID of the owner of the VPC that this firewall configuration applies to. | def gPmJ(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'owner_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k4C1(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'owner_account_id')",
"def k4C1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'owner_account_id')",
"def k4C1(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'owner_account_id')",
"def RQV1(YKHO) -> str:\n return qe4Y.get(YKH... | [
"0.7729747",
"0.76422477",
"0.7599893",
"0.7213106",
"0.7069892",
"0.7060494",
"0.7060494",
"0.68597245",
"0.6850108",
"0.6850108",
"0.6850108",
"0.6850108",
"0.6844993",
"0.6814184",
"0.6764825",
"0.6764825",
"0.6725492",
"0.6725492",
"0.6706279",
"0.6651049",
"0.66493624",
... | 0.69264585 | 8 |
The ID of the VPC that the configuration is for. | def PcW4(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'resource_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_... | [
"0.8454203",
"0.8454203",
"0.8454203",
"0.8454203",
"0.8454203",
"0.8454203",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8298814",
"0.8172444",
"0.8165689",
"0.8165689",
"... | 0.0 | -1 |
Returns the value history of the asset. | def TSF4(YKHO, M3Vp, UPSK):
return YKHO.value_history[M3Vp:UPSK].copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FLXQ(YKHO):\n return tE_f.viterbi_s_sptr_history(YKHO)",
"def FLXQ(YKHO):\n return YKHO._hist",
"def kKi3(YKHO):\n return list(YKHO.history)",
"def FLXQ(YKHO):\n return tE_f.encoder_bs_sptr_history(YKHO)",
"def FLXQ(YKHO):\n return tE_f.viterbi_i_sptr_history(YKHO)",
"def FLXQ(YKHO):\n... | [
"0.69794786",
"0.69659406",
"0.69623536",
"0.69130844",
"0.6902651",
"0.68762356",
"0.68739027",
"0.6823596",
"0.682318",
"0.6808734",
"0.6802695",
"0.6790551",
"0.6785233",
"0.67827034",
"0.6777967",
"0.67754835",
"0.67726344",
"0.67716414",
"0.67662853",
"0.67599356",
"0.67... | 0.0 | -1 |
Returns the current price of the asset. | def mUwC(YKHO):
return YKHO.price_history[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N_Zi(YKHO):\n return YKHO._price",
"def N_Zi(YKHO):\n return YKHO.price",
"def N_Zi(YKHO):\n return YKHO._price",
"def N_Zi(YKHO):\n return YKHO._price",
"def N_Zi(YKHO) -> float:\n return YKHO.price",
"def N_Zi(YKHO):\n return YKHO.price",
"def N_Zi(YKHO):\n return YKHO.price"... | [
"0.7876845",
"0.78721213",
"0.78717875",
"0.78717875",
"0.78563637",
"0.78546923",
"0.7778733",
"0.7734858",
"0.77265143",
"0.77265143",
"0.771126",
"0.771126",
"0.771126",
"0.7700627",
"0.767095",
"0.7612465",
"0.76121074",
"0.7602688",
"0.75789565",
"0.75789565",
"0.7578956... | 0.6987853 | 48 |
Test creating a default super user | def YvG0():
NtEF = 'admin'
jTXt = '12345'
qIxc = []
VKhi = {'username': NtEF, 'password': jTXt}
from django.core.management import call_command
call_command('create_default_superuser', *qIxc, **VKhi)
dp9S = mv1M.objects.filter(username=NtEF).first()
assert dp9S.username == NtEF
asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rCAj(YKHO):\n D3lj = 'super_user@aqurds.com'\n jTXt = 'super_user_123'\n _5cq = egNl().objects.create_superuser(D3lj, jTXt)\n YKHO.assertTrue(_5cq.is_superuser)\n YKHO.assertTrue(_5cq.is_staff)",
"def LqR1(YKHO):\n CBIr = egNl().objects.create_superuser('test@undeinveti.ro', 'test123')\n ... | [
"0.83493024",
"0.8345986",
"0.83394235",
"0.83379066",
"0.8326953",
"0.82798773",
"0.826642",
"0.8259175",
"0.82496405",
"0.8244099",
"0.8172927",
"0.81656325",
"0.81320584",
"0.81198376",
"0.81039375",
"0.8096067",
"0.8078225",
"0.8063302",
"0.8057669",
"0.8050585",
"0.80431... | 0.7869771 | 48 |
Get a hyperparameter space to use with hyperopt. Returns | def LWMn(YKHO):
return ({}, {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4uX(qIxc):\n if qIxc.model == 'DualOutputRNN':\n n294 = dict(batchsize=vHdG, workers=2, epochs=30, switch_epoch=9999, earliness_factor=1, fold=Gb7w.grid_search([0]), hidden_dims=Gb7w.grid_search([2 ** 6, 2 ** 7, 2 ** 8, 2 ** 9]), learning_rate=Gb7w.grid_search([0.01, 0.001, 0.0001]), dropout=0.5, nu... | [
"0.7421625",
"0.71012884",
"0.6765077",
"0.6725538",
"0.63150585",
"0.62880623",
"0.6172192",
"0.61144596",
"0.6092504",
"0.60575837",
"0.6024123",
"0.6017399",
"0.6010724",
"0.59863293",
"0.59737444",
"0.595682",
"0.5931514",
"0.59247416",
"0.588623",
"0.5878178",
"0.5862996... | 0.0 | -1 |
Returns dictionary of the class attributes. | def oD7C(YKHO):
return YKHO.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def azoT(Emd4):\n return dict(Emd4._attributes)",
"def h6gc(YKHO, Emd4):\n azoT = tq_1.getmembers(Emd4, lambda jzdc: not tq_1.isroutine(jzdc))\n return {jzdc[0]: jzdc[1] for jzdc in azoT if not (jzdc[0].startswith('__') and jzdc[0].endswith('__'))}",
"def h6gc(Emd4):\n Vfbn = dict()\n jOxn = '_'... | [
"0.8644537",
"0.80543625",
"0.79666686",
"0.7964369",
"0.7911386",
"0.7716526",
"0.7703662",
"0.76961964",
"0.7658004",
"0.76370925",
"0.763464",
"0.7605403",
"0.76041853",
"0.74962217",
"0.7483634",
"0.7478904",
"0.745855",
"0.7446133",
"0.74264246",
"0.74212974",
"0.7401410... | 0.0 | -1 |
Test whether this instance is equal to another instance | def xa14(YKHO, Elif):
if isinstance(Elif, DpX9):
return YKHO.x == Elif.x and YKHO.y == Elif.y
else:
assert hasattr(Elif, '__len__') and len(Elif) == 2
return YKHO.x == Elif[0] and YKHO.y == Elif[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return True if YKHO.serialize() == Elif.serialize() else False",
"def xa14(YKHO, Elif):\n return False",
"def xa14(YKHO, Elif):\n return False",
"def xa14(YKHO, Elif):\n return False",
"def xa14(YKHO, Elif):\n return... | [
"0.8447368",
"0.83856094",
"0.83848935",
"0.83776593",
"0.83776593",
"0.8368244",
"0.83595705",
"0.8314832",
"0.83043104",
"0.8280035",
"0.8280035",
"0.8280035",
"0.8260962",
"0.82492757",
"0.82492757",
"0.82455266",
"0.8240765",
"0.82402587",
"0.8239981",
"0.8239258",
"0.823... | 0.0 | -1 |
Test whether this instance is not equal to another instance | def Vdqg(YKHO, Elif):
return not YKHO.__eq__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return ... | [
"0.8533754",
"0.85079026",
"0.85079026",
"0.85079026",
"0.85079026",
"0.85079026",
"0.85023254",
"0.8496084",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332... | 0.0 | -1 |
Returns an iterator object with a next() method. | def Vs4Q(YKHO):
return iter((YKHO.x, YKHO.y)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def next(YKHO):\n raise NotImplementedError('next() not implemented in %s' % YKHO.__class__)",
"def UDAb(YKHO):\n try:\n Ylbp = next(YKHO._iterators[YKHO._index])\n except StopIteration:\n YKHO._index += 1\n Ylbp = YKHO.__next__()\n except IndexError:\n raise StopIteration... | [
"0.7976826",
"0.7911485",
"0.78888553",
"0.7864764",
"0.77810055",
"0.7708306",
"0.77026606",
"0.7635733",
"0.75972164",
"0.75878584",
"0.75878584",
"0.75878584",
"0.75878584",
"0.75878584",
"0.75500154",
"0.7539742",
"0.7539742",
"0.7539742",
"0.7539742",
"0.7539742",
"0.753... | 0.0 | -1 |
Invoked for "+"; adds other to self. If other is a Vector2, a Vector2 is returned. If other is a Point2, a Point2 is returned. If other is a sequence of length 2, treat it like a vector. | def FOdN(YKHO, Elif):
if isinstance(Elif, DpX9):
if YKHO.__class__ is Elif.__class__:
PWg9 = DpX9
else:
PWg9 = m7iN
return PWg9(YKHO.x + Elif.x, YKHO.y + Elif.y)
else:
assert hasattr(Elif, '__len__') and len(Elif) == 2
return DpX9(YKHO.x + Elif[0],... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif):\n if isinstance(Elif, DpX9):\n return DpX9(YKHO.x + Elif.x, YKHO.y + Elif.y)\n else:\n return DpX9(YKHO.x + Elif, YKHO.y + Elif)",
"def CaoY(YKHO, Elif):\n if isinstance(Elif, DpX9):\n YKHO.x += Elif.x\n YKHO.y += Elif.y\n else:\n YKHO.x += Eli... | [
"0.88708305",
"0.849567",
"0.8267753",
"0.824625",
"0.82275426",
"0.82164073",
"0.81905305",
"0.8181551",
"0.8178207",
"0.8178207",
"0.8178207",
"0.8177203",
"0.81583196",
"0.81524616",
"0.8113884",
"0.81020343",
"0.810004",
"0.8087572",
"0.80295867",
"0.8028559",
"0.8005182"... | 0.9062 | 0 |
Division of self by other with remainder, even for integers | def HVh8(YKHO, Elif):
assert type(Elif) in (int, int, float)
return DpX9(seET.truediv(YKHO.x, Elif), seET.truediv(YKHO.y, Elif)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M9fH(YKHO, Elif):\n return YKHO.binary(Elif, seET.div)",
"def M9fH(YKHO, Elif):\n return YKHO.__mul__(1.0 / Elif)",
"def L3gF(YKHO, Elif):\n return YKHO - Elif * (YKHO // Elif)",
"def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)",
"def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Eli... | [
"0.8173837",
"0.81317365",
"0.81132716",
"0.8040949",
"0.8040949",
"0.7886088",
"0.7806767",
"0.7749839",
"0.77457",
"0.77452624",
"0.7738289",
"0.77283406",
"0.771987",
"0.76985043",
"0.7685121",
"0.7677668",
"0.767536",
"0.7611885",
"0.75686705",
"0.75323963",
"0.7496404",
... | 0.0 | -1 |
Division of other by self with remainder, even for integers | def dMQB(YKHO, Elif):
assert type(Elif) in (int, int, float)
return DpX9(seET.truediv(Elif, YKHO.x), seET.truediv(Elif, YKHO.y)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M9fH(YKHO, Elif):\n return YKHO.binary(Elif, seET.div)",
"def M9fH(YKHO, Elif):\n return YKHO.__mul__(1.0 / Elif)",
"def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)",
"def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)",
"def L3gF(YKHO, Elif):\n return YKHO - Elif * (YKHO // Eli... | [
"0.8243314",
"0.81656426",
"0.8103884",
"0.8103884",
"0.8002415",
"0.7996892",
"0.7978329",
"0.7880207",
"0.7850976",
"0.7837557",
"0.7836885",
"0.7836686",
"0.7815951",
"0.781373",
"0.7812476",
"0.77962947",
"0.77582514",
"0.7701675",
"0.7656079",
"0.7638256",
"0.763596",
... | 0.0 | -1 |
Returns magnitude (absolute value) of Vector2 'self' | def PKV0(YKHO):
return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO) -> float:\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)",
"def YXbZ(YKHO):\n return (YKHO.u ** 2 + YKHO.v ** 2) ** 0.5",
"def wjNy(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) * 0.5",
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.dot(YKHO))",
"def YXbZ(YKHO) -> float:\n return epAf.... | [
"0.77627766",
"0.77530533",
"0.77115715",
"0.7672395",
"0.7656776",
"0.76524395",
"0.7650016",
"0.76448643",
"0.7609005",
"0.75860965",
"0.75737834",
"0.7572965",
"0.7525824",
"0.7515479",
"0.74664044",
"0.7439766",
"0.7439766",
"0.7422145",
"0.7326867",
"0.7323138",
"0.72983... | 0.65725535 | 56 |
Returns angle by which next is rotated to have the direction of self. Positive angles are CW. Negative angles are CCW. This is backwards from the usual Euclidean convention. The advantage of this definition is that it gives an angle direction associated with azimuth. If you think of it as a turn from direction 1 to dir... | def DWJ0(YKHO, next):
_PGl = next.normalized()
tFNH = YKHO.normalized().dot(_PGl)
Ataq = YKHO.normalized().dot(_PGl.cross())
return epAf.atan2(Ataq, tFNH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tSZR() -> float:\n pass",
"def Tbd6(YKHO):\n if YKHO.x == 0:\n return CEWs(90, True) if YKHO.y > 0 else CEWs(270, True)\n jzdc = epAf.atan(YKHO.y / YKHO.x)\n if YKHO.x < 0:\n jzdc += epAf.pi\n elif YKHO.y < 0:\n jzdc += 2 * epAf.pi\n return CEWs(jzdc, False)",
"def mZ... | [
"0.7344372",
"0.73442763",
"0.72909653",
"0.7229947",
"0.7171112",
"0.7099487",
"0.7098675",
"0.7033573",
"0.70188946",
"0.6958526",
"0.69221276",
"0.6910594",
"0.6900384",
"0.68713444",
"0.68609977",
"0.6843615",
"0.6843471",
"0.6828536",
"0.6797458",
"0.679178",
"0.678606",... | 0.7768433 | 0 |
Test whether this instance is equal to another instance | def xa14(YKHO, Elif):
if isinstance(Elif, SZ2k):
return YKHO.x == Elif.x and YKHO.y == Elif.y and (YKHO.z == Elif.z)
else:
assert hasattr(Elif, '__len__') and len(Elif) == 3
return YKHO.x == Elif[0] and YKHO.y == Elif[1] and (YKHO.z == Elif[2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return True if YKHO.serialize() == Elif.serialize() else False",
"def xa14(YKHO, Elif):\n return False",
"def xa14(YKHO, Elif):\n return False",
"def xa14(YKHO, Elif):\n return False",
"def xa14(YKHO, Elif):\n return... | [
"0.8447368",
"0.83856094",
"0.83848935",
"0.83776593",
"0.83776593",
"0.8368244",
"0.83595705",
"0.8314832",
"0.83043104",
"0.8280035",
"0.8280035",
"0.8280035",
"0.8260962",
"0.82492757",
"0.82492757",
"0.82455266",
"0.8240765",
"0.82402587",
"0.8239981",
"0.8239258",
"0.823... | 0.0 | -1 |
Test whether this instance is not equal to another instance | def Vdqg(YKHO, Elif):
return not YKHO.__eq__(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return ... | [
"0.8533754",
"0.85079026",
"0.85079026",
"0.85079026",
"0.85079026",
"0.85079026",
"0.85023254",
"0.8496084",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332",
"0.8482332... | 0.0 | -1 |
Returns an iterator object with a next() method. | def Vs4Q(YKHO):
return iter((YKHO.x, YKHO.y, YKHO.z)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def next(YKHO):\n raise NotImplementedError('next() not implemented in %s' % YKHO.__class__)",
"def UDAb(YKHO):\n try:\n Ylbp = next(YKHO._iterators[YKHO._index])\n except StopIteration:\n YKHO._index += 1\n Ylbp = YKHO.__next__()\n except IndexError:\n raise StopIteration... | [
"0.7977711",
"0.7911564",
"0.7888438",
"0.7865678",
"0.7781282",
"0.7708803",
"0.77022916",
"0.76365685",
"0.75983065",
"0.758867",
"0.758867",
"0.758867",
"0.758867",
"0.758867",
"0.7551049",
"0.75407803",
"0.75407803",
"0.75407803",
"0.75407803",
"0.75407803",
"0.75325316",... | 0.0 | -1 |
Adds other to self. If other is a Vector3, a Vector3 is returned. If other is not a Vector3, a Point3 is returned. If other is a sequence of length 3, treat it like a vector. | def FOdN(YKHO, Elif):
if isinstance(Elif, SZ2k):
if YKHO.__class__ is Elif.__class__:
PWg9 = SZ2k
else:
PWg9 = zMVZ
return PWg9(YKHO.x + Elif.x, YKHO.y + Elif.y, YKHO.z + Elif.z)
else:
assert hasattr(Elif, '__len__') and len(Elif) == 3
return SZ2k(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FOdN(YKHO, Elif) -> 'Vector3':\n if SZ2k._is_vector3like(Elif):\n return SZ2k(YKHO.x + Elif[0], YKHO.y + Elif[1], YKHO.z + Elif[2])\n raise TypeError(f'Cannot add types Vector3 and {type(Elif)}')",
"def K7GD(YKHO, Elif) -> 'Vector3':\n if SZ2k._is_vector3like(Elif):\n return YKHO + Eli... | [
"0.8837227",
"0.87080956",
"0.86416495",
"0.83957297",
"0.837628",
"0.835647",
"0.8261097",
"0.82099193",
"0.8164846",
"0.807911",
"0.8006945",
"0.7914637",
"0.7896213",
"0.7894753",
"0.7789733",
"0.77279896",
"0.7704427",
"0.76862246",
"0.7606263",
"0.7589156",
"0.7588116",
... | 0.9000759 | 0 |
Division of self by other with remainder, even for integers | def HVh8(YKHO, Elif):
assert type(Elif) in (int, int, float)
return SZ2k(seET.truediv(YKHO.x, Elif), seET.truediv(YKHO.y, Elif), seET.truediv(YKHO.z, Elif)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M9fH(YKHO, Elif):\n return YKHO.binary(Elif, seET.div)",
"def M9fH(YKHO, Elif):\n return YKHO.__mul__(1.0 / Elif)",
"def L3gF(YKHO, Elif):\n return YKHO - Elif * (YKHO // Elif)",
"def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)",
"def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Eli... | [
"0.81736296",
"0.81313175",
"0.8114377",
"0.80408996",
"0.80408996",
"0.78846556",
"0.7807044",
"0.77490526",
"0.7746196",
"0.77459913",
"0.7738327",
"0.7727867",
"0.7720305",
"0.76985514",
"0.7684876",
"0.7676968",
"0.7675449",
"0.7611451",
"0.7567464",
"0.753003",
"0.749734... | 0.0 | -1 |
Division of other by self with remainder, even for integers | def dMQB(YKHO, Elif):
assert type(Elif) in (int, int, float)
return SZ2k(seET.truediv(Elif, YKHO.x), seET.truediv(Elif, YKHO.y), seET.truediv(Elif, YKHO.z)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M9fH(YKHO, Elif):\n return YKHO.binary(Elif, seET.div)",
"def M9fH(YKHO, Elif):\n return YKHO.__mul__(1.0 / Elif)",
"def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)",
"def M9fH(YKHO, Elif):\n return YKHO.__truediv__(Elif)",
"def L3gF(YKHO, Elif):\n return YKHO - Elif * (YKHO // Eli... | [
"0.8243314",
"0.81656426",
"0.8103884",
"0.8103884",
"0.8002415",
"0.7996892",
"0.7978329",
"0.7880207",
"0.7850976",
"0.7837557",
"0.7836885",
"0.7836686",
"0.7815951",
"0.781373",
"0.7812476",
"0.77962947",
"0.77582514",
"0.7701675",
"0.7656079",
"0.7638256",
"0.763596",
... | 0.0 | -1 |
Returns magnitude (absolute value) of Vector2 'self' | def PKV0(YKHO):
return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO) -> float:\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)",
"def YXbZ(YKHO):\n return (YKHO.u ** 2 + YKHO.v ** 2) ** 0.5",
"def wjNy(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) * 0.5",
"def YXbZ(YKHO):\n return epAf.sqrt(YKHO.dot(YKHO))",
"def YXbZ(YKHO) -> float:\n return epAf.... | [
"0.7762422",
"0.77532125",
"0.7710683",
"0.7672741",
"0.76566094",
"0.76525",
"0.76486224",
"0.76448935",
"0.76098704",
"0.75852597",
"0.7573799",
"0.7573568",
"0.7525674",
"0.75150543",
"0.74665755",
"0.74405974",
"0.74405974",
"0.7422037",
"0.7326328",
"0.73233294",
"0.7299... | 0.6378545 | 82 |
Return the vector reflected about the given normal Assumes 'normal' is normalized In three dimensions, normal is the normal (perpendicular) to a plane | def MicQ(YKHO, mhAC):
assert isinstance(mhAC, SZ2k)
Csk6 = 2 * (YKHO.x * mhAC.x + YKHO.y * mhAC.y + YKHO.z * mhAC.z)
return SZ2k(YKHO.x - Csk6 * mhAC.x, YKHO.y - Csk6 * mhAC.y, YKHO.z - Csk6 * mhAC.z) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MicQ(YKHO, mhAC):\n assert isinstance(mhAC, DpX9)\n Csk6 = 2 * (YKHO.x * mhAC.x + YKHO.y * mhAC.y)\n return DpX9(YKHO.x - Csk6 * mhAC.x, YKHO.y - Csk6 * mhAC.y)",
"def iSV7(YKHO):\n hQHm = YKHO.points[0].vector3D\n jlSq = YKHO.points[1].vector3D\n bUZ8 = YKHO.points[2].vector3D\n pO9Q = ... | [
"0.801674",
"0.7470778",
"0.7323633",
"0.7176503",
"0.7125581",
"0.70346355",
"0.699794",
"0.69885635",
"0.69745636",
"0.69610775",
"0.6958793",
"0.6938083",
"0.69168377",
"0.6915827",
"0.68106604",
"0.6779251",
"0.67676634",
"0.6760767",
"0.6698658",
"0.66730046",
"0.6670211... | 0.83384997 | 0 |
Return the vector rotated around axis through angle theta. Right hand rule applies. Adapted from equations published by Glenn Murray. | def gWds(YKHO, jDK_, q7In):
WKvO, LVAh, epBp = (YKHO.x, YKHO.y, YKHO.z)
P6bq, Ty9i, yzQ0 = (jDK_.x, jDK_.y, jDK_.z)
CYjz = P6bq ** 2 + Ty9i ** 2 + yzQ0 ** 2
Mkmy = epAf.sqrt(CYjz)
lY0q = epAf.cos(q7In)
aevO = epAf.sin(q7In) / Mkmy
JRYC = (P6bq * WKvO + Ty9i * LVAh + yzQ0 * epBp) * (1 - lY0q)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gWds(YKHO, jDK_, q7In):\n WKvO, LVAh, epBp = (YKHO.x, YKHO.y, YKHO.z)\n P6bq, Ty9i, yzQ0 = (jDK_.x, jDK_.y, jDK_.z)\n CYjz = P6bq ** 2 + Ty9i ** 2 + yzQ0 ** 2\n Mkmy = epAf.sqrt(CYjz)\n lY0q = epAf.cos(q7In)\n aevO = epAf.sin(q7In) / Mkmy\n JRYC = (P6bq * WKvO + Ty9i * LVAh + yzQ0 * epBp) ... | [
"0.769363",
"0.74683386",
"0.7461444",
"0.7458122",
"0.74299127",
"0.74202865",
"0.73403543",
"0.73225427",
"0.7272272",
"0.7269249",
"0.725566",
"0.72514516",
"0.7247344",
"0.7243845",
"0.72369236",
"0.722677",
"0.7213625",
"0.7199927",
"0.7180192",
"0.71801496",
"0.7174826"... | 0.7780398 | 0 |
Applies a scaling to this Matrix3 instance. Note that this method operates inplace (modifies the original matrix), and also returns itself as a result. This allows you to chain transforms together directly. | def NXpY(YKHO, WKvO, LVAh):
YKHO *= nhLU.new_scale(WKvO, LVAh)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXpY(YKHO, WKvO, LVAh, epBp):\n YKHO *= Ie5s.new_scale(WKvO, LVAh, epBp)\n return YKHO",
"def Z5wj(YKHO, WKvO, LVAh, epBp):\n E3D9 = UfKx.ThreeDeeMath.TransformMatrix(YKHO.parameters.matrix)\n E3D9.scale(WKvO, LVAh, epBp)\n YKHO.parameters.matrix = E3D9.get_matrix()",
"def bi20(YKHO, *qIxc) ... | [
"0.72139746",
"0.6948535",
"0.667109",
"0.65485233",
"0.6522483",
"0.6491086",
"0.64466476",
"0.6400996",
"0.63816255",
"0.62733454",
"0.62555945",
"0.6151473",
"0.61501664",
"0.61076534",
"0.610274",
"0.60710245",
"0.6048085",
"0.60204333",
"0.6000146",
"0.597072",
"0.596245... | 0.6877512 | 2 |
Applies a scaling to this Matrix4 instance. Note that this method operates inplace (modifies the original matrix), and also returns itself as a result. This allows you to chain transforms together directly. | def NXpY(YKHO, WKvO, LVAh, epBp):
YKHO *= Ie5s.new_scale(WKvO, LVAh, epBp)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXpY(YKHO, WKvO, LVAh):\n YKHO *= nhLU.new_scale(WKvO, LVAh)\n return YKHO",
"def NXpY(YKHO, K0JX=1, Y0cU=1, LpaZ=False):\n from .affine import NXpY\n Oa1e = jth9.copy(YKHO)\n KCHu = NXpY(Oa1e, *(K0JX, Y0cU))\n if LpaZ:\n YKHO = KCHu\n return KCHu",
"def miBC(YKHO, SppC):\n S... | [
"0.6930031",
"0.6880553",
"0.6670478",
"0.6517243",
"0.6449379",
"0.64105946",
"0.6341954",
"0.62365377",
"0.62236583",
"0.61395204",
"0.61277664",
"0.61072516",
"0.6085909",
"0.6081731",
"0.60337293",
"0.60130316",
"0.5987854",
"0.59769684",
"0.5975471",
"0.59741384",
"0.597... | 0.70644855 | 0 |
Create a new instance with specified elements | def BdN0(Emd4, *hkxX):
E3D9 = Emd4()
E3D9[:] = hkxX
return E3D9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gJdR(YKHO) -> None:\n ...",
"def gJdR(YKHO) -> None:\n ...",
"def FIMM(YKHO, UqER=None):\n YKHO.items = []\n YKHO.size = 0\n if UqER is not None:\n for U6D_ in UqER:\n YKHO.add(U6D_)",
"def FIMM(YKHO, UqER=None):\n YKHO.items = _sfu()\n if UqER is not None:\n ... | [
"0.7242436",
"0.7242436",
"0.7161769",
"0.6901103",
"0.6901103",
"0.68354326",
"0.67904454",
"0.6778673",
"0.65412784",
"0.65336746",
"0.6513515",
"0.6505507",
"0.6494615",
"0.6479799",
"0.6436338",
"0.63736016",
"0.6372274",
"0.6323433",
"0.6316785",
"0.6306384",
"0.6260039"... | 0.0 | -1 |
Creates a new general scaling matrix along the x, y, and z axes. The three arguments indicate the desired scale factors along each of the three axes. | def Z1q6(Emd4, WKvO, LVAh, epBp):
YKHO = Emd4()
YKHO.a = WKvO
YKHO.f = LVAh
YKHO.k = epBp
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXpY(YKHO, WKvO=1, LVAh=1, epBp=1):\n YKHO.matrix = oyIN.dot(oyIN.diagflat([WKvO, LVAh, epBp, 1]), YKHO.matrix)",
"def NXpY(YKHO, *qIxc):\n if len(qIxc) == 3:\n WKvO, LVAh, epBp = qIxc\n assert WKvO * LVAh * epBp != 0, 'Warning: scale({},{},{}) includes zero scale.'.format(WKvO, LVAh, epB... | [
"0.67613715",
"0.6713749",
"0.67095065",
"0.6596417",
"0.65850466",
"0.65570134",
"0.6556316",
"0.6536299",
"0.6512088",
"0.64644974",
"0.64292824",
"0.62705016",
"0.61348826",
"0.60617447",
"0.60571635",
"0.60378873",
"0.60378546",
"0.6036453",
"0.6006498",
"0.60010016",
"0.... | 0.63141584 | 11 |
Returns True if this Point instance is inside Circle 'other' | def zwN1(YKHO, Elif):
return LU4A(YKHO, Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C8gF(YKHO, Elif) -> bool:\n if not isinstance(Elif, Lr0q):\n return False\n return True",
"def sjXf(YKHO, Elif) -> bool:\n if isinstance(Elif, PvyL):\n return YKHO.center.distance_to(Elif) <= YKHO.radius\n else:\n return YKHO.as_rect().contains(Elif)",
"def nRbd(YKHO, FV9o)... | [
"0.7808618",
"0.77279395",
"0.7460883",
"0.73630327",
"0.7333503",
"0.7333503",
"0.73127824",
"0.72905034",
"0.72649896",
"0.7151976",
"0.71051836",
"0.7098473",
"0.70597994",
"0.70218545",
"0.6922801",
"0.6879607",
"0.6877124",
"0.68572855",
"0.68292063",
"0.6811873",
"0.680... | 0.7037892 | 13 |
Computes the point at which self intersects other | def XMlP(YKHO, Elif):
return Elif._intersect_line2(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iQin(YKHO, Elif):\n try:\n WKvO = float(YKHO.b * Elif.c - YKHO.c * Elif.b)\n LVAh = float(YKHO.c * Elif.a - YKHO.a * Elif.c)\n di96 = float(YKHO.a * Elif.b - YKHO.b * Elif.a)\n return Hu0o.Point(WKvO / di96, LVAh / di96)\n except ArithmeticError:\n return None",
"def ... | [
"0.747576",
"0.7119958",
"0.6821837",
"0.67697316",
"0.67648447",
"0.67540467",
"0.67480844",
"0.6743171",
"0.6736414",
"0.6724362",
"0.6709262",
"0.67009234",
"0.6662838",
"0.66614306",
"0.66145796",
"0.65911806",
"0.65843236",
"0.6564066",
"0.65627104",
"0.6561979",
"0.6550... | 0.0 | -1 |
Computes the point at which other intersects self | def NQ5O(YKHO, Elif):
return MZqt(YKHO, Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iQin(YKHO, Elif):\n try:\n WKvO = float(YKHO.b * Elif.c - YKHO.c * Elif.b)\n LVAh = float(YKHO.c * Elif.a - YKHO.a * Elif.c)\n di96 = float(YKHO.a * Elif.b - YKHO.b * Elif.a)\n return Hu0o.Point(WKvO / di96, LVAh / di96)\n except ArithmeticError:\n return None",
"def ... | [
"0.7542253",
"0.7324198",
"0.69186133",
"0.68863726",
"0.6856429",
"0.6849324",
"0.68437254",
"0.6842185",
"0.6812045",
"0.6807999",
"0.68027765",
"0.6765176",
"0.6760916",
"0.67560387",
"0.6748466",
"0.6740997",
"0.6733374",
"0.67307013",
"0.67003477",
"0.66675",
"0.66633224... | 0.0 | -1 |
True if this Circle instance intersects another | def XMlP(YKHO, Elif):
return Elif._intersect_circle(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P10m(YKHO, t5uH):\n if YKHO.center.distance_from(t5uH.center) < YKHO.radius + t5uH.radius:\n return True\n else:\n return False",
"def J5e4(MB0Q: np.ndarray((2,)), NSIK: np.ndarray((2,)), r1VO: float) -> bool:\n return oyIN.linalg.norm(MB0Q - NSIK) <= r1VO * 2",
"def fMy9(YKHO, Elif)... | [
"0.8064524",
"0.7840569",
"0.769934",
"0.76601154",
"0.7414419",
"0.74037194",
"0.7344793",
"0.72640073",
"0.7206845",
"0.72010404",
"0.71146196",
"0.7113128",
"0.7012503",
"0.69897807",
"0.6981188",
"0.6971063",
"0.69683546",
"0.6958081",
"0.6957508",
"0.69514126",
"0.694562... | 0.76314116 | 4 |
Returns True if point P lies with circle C. | def LU4A(V6IE, Nq1b):
return abs(V6IE - Nq1b.c) <= Nq1b.r | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r4R3(FV9o, XP5J):\n return MXsf(FV9o.center, XP5J) <= FV9o.r",
"def r4R3(FV9o, AU8u):\n return epAf.sqrt((AU8u.x - FV9o.centre.x) ** 2 + (AU8u.y - FV9o.centre.y) ** 2) <= FV9o.radius",
"def r4R3(FV9o, AU8u):\n return Ayfi(AU8u, FV9o.center) <= FV9o.radius",
"def r4R3(AU8u, FV9o):\n Csk6 = Yyo... | [
"0.81537926",
"0.80456233",
"0.7964403",
"0.79306954",
"0.7913041",
"0.77922577",
"0.77433795",
"0.7697454",
"0.7562717",
"0.7537938",
"0.7516597",
"0.7492382",
"0.7235206",
"0.7038029",
"0.70323056",
"0.70126414",
"0.70126414",
"0.69921005",
"0.69909596",
"0.69909316",
"0.69... | 0.81910235 | 0 |
Returns True if self is in or on the sphere 'other' | def gwXp(YKHO, Elif):
return uZKs(YKHO, Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: 'Sphere') -> bool:\n if not YKHO.validate_sphere(Elif):\n return False\n if YKHO.radius != Elif.radius:\n return False\n return True",
"def fMy9(YKHO, Elif):\n if ZbiO.distance(Elif.location) <= YKHO.radius * 2:\n return True",
"def N8Wl(YKHO, Elif) -> bool... | [
"0.7478219",
"0.72594875",
"0.72500443",
"0.72288233",
"0.7192402",
"0.7192402",
"0.71178037",
"0.7105493",
"0.6807642",
"0.67607844",
"0.67401326",
"0.6576979",
"0.6555573",
"0.6509112",
"0.6481621",
"0.6479669",
"0.64710486",
"0.64565456",
"0.64472127",
"0.6387364",
"0.6331... | 0.67295855 | 11 |
Returns LineSegment3 if the self and other are not the same | def bZ7F(YKHO, Elif):
if YKHO != Elif:
return KaA7(Elif, YKHO)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lTxh(YKHO, Elif):\n Z9rn = SHal(YKHO, Elif)\n if Z9rn:\n return Z9rn._swap()",
"def o4nP(YKHO, Elif):\n return blrU(Elif, YKHO)",
"def H4hC(YKHO, Elif):\n YVv6 = set([YKHO.pt1, YKHO.pt2, YKHO.pt3])\n rA0f = set([Elif.pt1, Elif.pt2, Elif.pt3])\n mBl8 = YVv6 & rA0f\n assert len(mB... | [
"0.70784163",
"0.7050536",
"0.6903555",
"0.6840497",
"0.65291667",
"0.6519301",
"0.642175",
"0.6384536",
"0.63824904",
"0.637743",
"0.63508904",
"0.6324364",
"0.62528026",
"0.61781687",
"0.61333686",
"0.6127473",
"0.60997844",
"0.60685617",
"0.59717315",
"0.5960964",
"0.58738... | 0.7799382 | 0 |
Returns True if the point 'other' is in or on self | def DvvN(YKHO, Elif):
return uZKs(Elif, YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P10m(YKHO, Elif):\n WzfH = {AU8u: False for AU8u in YKHO.points}\n for AU8u in Elif.points:\n WzfH[AU8u] = True\n if False not in WzfH.values():\n return True\n for D70y in Elif.edges:\n for AU8u in D70y.get_points():\n if YKHO.inside(AU8u):\n return T... | [
"0.7630587",
"0.7623986",
"0.7606729",
"0.751117",
"0.7498165",
"0.74579406",
"0.74577546",
"0.74577546",
"0.74325716",
"0.7320118",
"0.7317202",
"0.7286042",
"0.7271175",
"0.72223014",
"0.71762115",
"0.71599543",
"0.7137139",
"0.7134123",
"0.71045804",
"0.70776576",
"0.70534... | 0.0 | -1 |
Find all the prime factors of `n`, sorted from largest to smallest | def OvlX(exwG):
YRbF = 2
Llmz = []
while YRbF * YRbF <= exwG:
if exwG % YRbF:
YRbF += 1
else:
exwG //= YRbF
Llmz.append(YRbF)
if exwG > 1:
Llmz.append(exwG)
Llmz = sorted(Llmz, reverse=True)
return Llmz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KX6O(exwG):\n Llmz = []\n return sorted(Llmz)",
"def aXQR(exwG):\n for YRbF in range(2, lO1m(PZyS(exwG)) + 1):\n if exwG % YRbF == 0:\n return [YRbF] + aXQR(int(exwG / YRbF))\n return [exwG]",
"def Llmz(exwG):\n return sorted((WKvO for SjLr in ([YRbF, exwG // YRbF] for YRbF... | [
"0.88776815",
"0.8694228",
"0.8577942",
"0.8507174",
"0.8505847",
"0.8495944",
"0.84844536",
"0.84828573",
"0.8466255",
"0.84583664",
"0.8422905",
"0.84192413",
"0.8406731",
"0.8406526",
"0.8392042",
"0.83886683",
"0.838795",
"0.83797216",
"0.8377496",
"0.8371553",
"0.8369543... | 0.8933258 | 0 |
Returns a random number between 0.5 range ~ 0.5 range | def NSL4(p1kx, oIFm):
if p1kx + oIFm * 0.5 > 1:
return 1 - tuKI.random() * oIFm - p1kx
elif p1kx - oIFm * 0.5 < 0:
return oIFm * tuKI.random() - p1kx
else:
return (tuKI.random() - 0.5) * oIFm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sb38(FGW3):\n FGW3 = FGW3 * tuKI.uniform(0.5, 1.5)\n return FGW3",
"def ADdS(wEf2):\n return wEf2 * tuKI.uniform(0.9, 1.1)",
"def g92x(A2Fp):\n return tuKI.random() * A2Fp",
"def xac_(min, max):\n return tuKI.random() * (max - min) + min",
"def RjKZ(min, max):\n return ajWY(min, max)"... | [
"0.8243165",
"0.7817703",
"0.7582388",
"0.75055575",
"0.74834406",
"0.7447196",
"0.7437357",
"0.7356743",
"0.7356743",
"0.7287196",
"0.7249468",
"0.71733534",
"0.7172588",
"0.71661115",
"0.7139062",
"0.7124891",
"0.71035516",
"0.7072996",
"0.70665574",
"0.7058221",
"0.7025031... | 0.0 | -1 |
Determine whether to syncopate this beat. Returns the index of the pulse to be played back applying the rules for sequential syncopation if a negative is return then NO trigger is forced irrelevant of index Returns | def AC5U(YKHO):
m_TQ = oyIN.sum(YKHO.sync_score[YKHO.counter])
mxXx = oyIN.sum(YKHO.sync_stop_score[YKHO.counter])
if m_TQ > 1:
m_TQ = 2 - m_TQ
elif m_TQ < 0:
m_TQ = -m_TQ
if mxXx > 1:
mxXx -= int(mxXx)
elif mxXx < 0:
mxXx = -mxXx
or8S = YKHO.counter
YRbF ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lzmk(YKHO):\n return YKHO._value and (not YKHO._last_value)",
"def L9CL(YKHO, eZDF=None):\n if YKHO.interval != YKHO._originalScheduleInterval:\n YKHO.interval = YKHO._originalScheduleInterval\n RKD7.debug('Resetting next check back to %s seconds', YKHO._originalScheduleInterval)\n ret... | [
"0.5321358",
"0.51262784",
"0.49487004",
"0.4908462",
"0.4866644",
"0.48139966",
"0.48009333",
"0.47994462",
"0.47781017",
"0.4748397",
"0.47371605",
"0.47201014",
"0.47167137",
"0.47046268",
"0.47012678",
"0.46893573",
"0.468586",
"0.46761557",
"0.4675779",
"0.46694994",
"0.... | 0.6639284 | 0 |
Repeat the measure until its at least chosen from drawing from `duration_distribution`. If `shift` is True, then also randomly offset the start time. | def LVYP(YKHO, JHno, hy2Y=None, GpOK=Zxt2.stats.truncnorm(-2, 2, 30, 10), DkWr=True):
if hy2Y is None:
hy2Y = GpOK.rvs()
YIfD = hy2Y * YKHO.sample_rate
e38h, x81q, CG9a, PAwd = Tv5e(YKHO.strat_level[0], YKHO.num_pulses_per_measure[0], YKHO.tempo, YKHO.sample_rate)
ISIR = int(oyIN.ceil(YIfD / PAw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pARd(QVq7=9, DkWr=3):\n P8oC = tuKI.random()\n O66n = P8oC * QVq7 + DkWr\n return JRYC.timedelta(minutes=O66n)",
"def Bi__(tuKI: Optional[bool]=False, lGbz: Optional[bool]=False, D77_: Optional[bool]=False, DkWr: Optional[list[tuple[float, float]]]=None) -> bdIy:\n Q6uT = bdIy(loop=lGbz)\n jvS... | [
"0.61776423",
"0.56623995",
"0.5629242",
"0.5555554",
"0.5527782",
"0.54647994",
"0.537651",
"0.5362696",
"0.53138757",
"0.5249472",
"0.5243949",
"0.5208766",
"0.519267",
"0.5191297",
"0.51788855",
"0.5152327",
"0.51481736",
"0.5135258",
"0.5129245",
"0.51186126",
"0.51120204... | 0.58434474 | 1 |
Recruiters have different circumstances under which experiment questionnaires should be accepted or rejected. To reject a questionnaire, this method returns an error string. By default, they are accepted, so we return None. | def XOpk(YKHO, zAlC):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzCw(YKHO):\n if not isinstance(YKHO.question, str):\n return 'Question is not a string.'\n if not isinstance(YKHO.correctAnswer, str):\n return 'Correct answer is not a string.'\n if not isinstance(YKHO.hint, str):\n return 'Hint is not a string.'\n if not isinstance(YKHO.help... | [
"0.6623655",
"0.6276187",
"0.6233003",
"0.61888057",
"0.6164207",
"0.6080949",
"0.60439956",
"0.5917216",
"0.5879605",
"0.5870119",
"0.58323693",
"0.5828062",
"0.5797572",
"0.5778001",
"0.5762765",
"0.5728387",
"0.5728387",
"0.5728387",
"0.5728387",
"0.5614823",
"0.56073236",... | 0.5826912 | 12 |
Return an alphanumeric string of specified length based on a seed value, so the same result will always be returned for a given seed. | def KHNL(yokr: str, u54L: int=8):
WnWI = tuKI.Random(yokr)
gZgb = vIwR.ascii_uppercase + vIwR.digits
return ''.join((WnWI.choice(gZgb) for YRbF in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a2Ud(u54L=10):\n SuXy = vIwR.ascii_letters + vIwR.digits\n dEzN = ''.join((tuKI.choice(SuXy) for YRbF in range(u54L)))\n return dEzN",
"def MiNk(u54L):\n gLiZ = vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(u54L)))",
"def bcVV... | [
"0.7771439",
"0.77518016",
"0.7748113",
"0.7726004",
"0.7697593",
"0.76855856",
"0.7676538",
"0.7647889",
"0.7638539",
"0.76188344",
"0.760691",
"0.758993",
"0.7585825",
"0.75703245",
"0.75661606",
"0.75654507",
"0.75642323",
"0.75569093",
"0.75555557",
"0.75439835",
"0.75439... | 0.80388075 | 0 |
Return the ID of the HIT associated with the active experiment ID if any such HIT exists. | def zbrx(YKHO):
return YKHO.store.get(YKHO.hit_id_storage_key) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(YKHO) -> int:\n return YKHO._hit.id",
"def Z2dz(YKHO):\n return YKHO._id",
"def id(YKHO):\n jGRS = YKHO.status()\n return jGRS and jGRS['ID'] or None",
"def Z2dz(YKHO):\n return YKHO._experiment_id",
"def q3vm():\n return OaeV.experiment_id",
"def id(YKHO):\n jGRS = YKHO.statu... | [
"0.6026167",
"0.57112527",
"0.55237585",
"0.5503555",
"0.54112154",
"0.532689",
"0.5310884",
"0.5298806",
"0.5295501",
"0.52795136",
"0.5246876",
"0.52418214",
"0.52224785",
"0.5200378",
"0.51982933",
"0.51864135",
"0.51831955",
"0.5173709",
"0.5173709",
"0.5173709",
"0.51497... | 0.681505 | 0 |
Return a Recruiter instance based on the configuration. Default is HotAirRecruiter in debug mode (unless we're using the bot recruiter, which can be used in debug mode) and the MTurkRecruiter in other modes. | def MSOc(GPtr):
q0nq = GPtr.get('mode') == 'debug'
mWFP = GPtr.get('recruiter', None)
H1f_ = None
if GPtr.get('replay'):
return Sc40()
if mWFP is not None:
H1f_ = NCru(mWFP)
if isinstance(H1f_, (OW0z, rIwU)):
return H1f_
if q0nq:
return NCru(GPtr.get('... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bkiV(GPtr):\n Emd4 = WL52.TrialRunner\n qIxc = {'reporterFactory': GPtr['reporter'], 'tracebackFormat': GPtr['tbformat'], 'realTimeErrors': GPtr['rterrors'], 'uncleanWarnings': GPtr['unclean-warnings'], 'logfile': GPtr['logfile'], 'workingDirectory': GPtr['temp-directory']}\n if GPtr['dry-run']:\n ... | [
"0.55473953",
"0.5546449",
"0.552905",
"0.51431084",
"0.5132922",
"0.51161957",
"0.51058835",
"0.5092175",
"0.50126815",
"0.49868706",
"0.4928115",
"0.4925859",
"0.4898602",
"0.4874603",
"0.4866951",
"0.48444146",
"0.4840809",
"0.484063",
"0.48225853",
"0.47590664",
"0.475532... | 0.8417518 | 0 |
read text from a utf8 encoded file | def z2Cs(pmON):
with open(pmON, 'rb') as eHNT:
return eHNT.read().decode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKHU(Ux0P):\n with T_Uj.open(Ux0P, encoding='utf-8') as gY90:\n hGN5 = gY90.read()\n return hGN5",
"def zlYa(IznC, tZ2K='utf-8'):\n try:\n with open(IznC, 'r', encoding='utf-8') as eHNT:\n FUjE = eHNT.read()\n except UnicodeDecodeError as e:\n print(f'read_txt({Izn... | [
"0.8083682",
"0.7784535",
"0.7684523",
"0.76412004",
"0.76237816",
"0.7612363",
"0.7575629",
"0.75702494",
"0.7553814",
"0.754421",
"0.75408477",
"0.7451947",
"0.7402359",
"0.7385255",
"0.7385255",
"0.7368343",
"0.734558",
"0.7295557",
"0.72713304",
"0.7243911",
"0.72312564",... | 0.0 | -1 |
Instantiates from yaml file. | def OXMy(Emd4, Nu1S):
with open(Nu1S) as GPtr:
hGN5 = eJb6.safe_load(GPtr)
return Emd4(**hGN5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXMy(Emd4, Ux0P):\n eHNT = open(Ux0P, 'r')\n nPrm = eJb6.load(eHNT.read().encode('utf-8'), Loader=eJb6.Loader)\n return Emd4.from_dict(nPrm)",
"def aBOe(Emd4, pmON):\n Csk6 = eJb6.safe_load(open(pmON))\n return Emd4.from_dict(Csk6)",
"def aBOe(Emd4, o1P6):\n hGN5 = eJb6.safe_load(o1P6)\n ... | [
"0.8413534",
"0.83284664",
"0.80519533",
"0.7843026",
"0.78060055",
"0.7793144",
"0.774366",
"0.7683825",
"0.76536703",
"0.75942314",
"0.7568369",
"0.756017",
"0.7532933",
"0.7523795",
"0.75109524",
"0.75082374",
"0.74981326",
"0.74881107",
"0.7477171",
"0.7473117",
"0.747311... | 0.7968986 | 3 |
Executes `func` over iterable. | def k2UK(JfyU, OxJJ):
return [JfyU(*wEf2) for wEf2 in PRqg(OxJJ)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I6W9(WhY1, JfyU):\n for ZfUD in WhY1:\n JfyU(ZfUD)",
"def BL2I(m2Zb, OxJJ):\n for WKvO in OxJJ:\n m2Zb(WKvO)",
"def O7Mg(YKHO, JfyU, OxJJ):\n for ZfUD in OxJJ:\n yield JfyU(ZfUD)",
"def map(YKHO, JfyU: callable, iter: Iterable):\n raise NotImplementedError",
"def JQ7D(J... | [
"0.74870825",
"0.73364675",
"0.7319286",
"0.7184174",
"0.70611495",
"0.6858144",
"0.6802796",
"0.6784973",
"0.6772627",
"0.6755239",
"0.6667274",
"0.6666562",
"0.66530734",
"0.6649245",
"0.66456777",
"0.6624719",
"0.6617214",
"0.6560368",
"0.653129",
"0.6524303",
"0.64996815"... | 0.6305105 | 31 |
get applications instances return dict | def bUWH(YKHO):
eOtH = YKHO._get_token()
sDSx = YKHO.kargs.copy()
sDSx['url_path'] = '/deployment/applications'
return PA9F(VNUm(sDSx, eOtH).get()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XKJ2(YKHO):\n geh0 = YKHO.call(fodo.GET, 'applications/')\n Q80C = geh0.json()\n for P4t4 in Q80C['applications']:\n yield m36K(YKHO, **P4t4)",
"def p_Nc(YKHO):\n tKwm = YKHO.compute_instance.applications\n return {Csk6['displayName']: Csk6['endpointUri'] for Csk6 in tKwm}",
"def p_Nc... | [
"0.72380555",
"0.71151954",
"0.71151954",
"0.7028455",
"0.701943",
"0.69684213",
"0.69604605",
"0.6898465",
"0.68531436",
"0.6842562",
"0.6831463",
"0.67904675",
"0.66908",
"0.66875374",
"0.6651711",
"0.6646139",
"0.66300666",
"0.6586783",
"0.6580443",
"0.6580443",
"0.6563383... | 0.77739704 | 0 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:
if (yT1k := (await ajET.config_entries.async_unload_platforms(bTKY, aprE))):
nPrm: W0gU = ajET.data[Sugg][bTKY.entry_id]
await nPrm.device.async_disconnect()
ajET.data[Sugg].pop(bTKY.entry_id)
if not ajET.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)",
"async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()... | [
"0.70418245",
"0.69975436",
"0.69197667",
"0.69024074",
"0.6896897",
"0.6870464",
"0.6840728",
"0.67911863",
"0.67835754",
"0.6782968",
"0.6776581",
"0.67688036",
"0.6737991",
"0.6730449",
"0.6713354",
"0.67085946",
"0.6664857",
"0.66411716",
"0.6637687",
"0.66157013",
"0.660... | 0.63768774 | 72 |
Test that some attribute are present in the json request. | def qcu9(YKHO):
with YKHO.client:
geh0 = YKHO.client.post('v1/guests', headers=dict(Authorization='Bearer ' + YKHO.get_user_token()), data=qQXR.dumps({'guest': {}}), content_type='application/json')
nPrm = qQXR.loads(geh0.data.decode())
YKHO.assertEqual(geh0.status_code, 400)
YKHO.as... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YqVO(YKHO):\n pass",
"def Ynw2(azoT: list, BGqR: dict, qVE2=[]) -> bool:\n for xC3W in azoT:\n if xC3W not in BGqR.keys():\n return f'{xC3W} missing :('\n for xC3W in BGqR.keys():\n if xC3W not in azoT + qVE2 + ['token', 'api']:\n return f'{xC3W} is an invalid att... | [
"0.68688995",
"0.6837345",
"0.6748131",
"0.6563927",
"0.65507865",
"0.65253",
"0.6494673",
"0.6488963",
"0.6475464",
"0.6436304",
"0.6394437",
"0.6337636",
"0.6323947",
"0.63200843",
"0.63116413",
"0.6246088",
"0.6234338",
"0.6227929",
"0.6218033",
"0.62013936",
"0.6201131",
... | 0.0 | -1 |
Test that the Guest details(name) is updated | def eL7H(YKHO):
with YKHO.client:
eOtH = YKHO.get_user_token()
geh0 = YKHO.client.post('v1/guests', data=qQXR.dumps(dict(guest=dict(first_name='Tim', last_name='Hortons', organization='TIMS', email='tim.hortons@tims.ca'))), headers=dict(Authorization='Bearer ' + eOtH), content_type='application/json... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IsIF(YKHO):\n NuWl = YKHO.assert_create(b4Sj, name=d0Dv, surname=YIzv, birthday=qj3D, biography=qyLU)\n YKHO.assert_update(NuWl, name=BJbz)",
"def M_rH(YKHO):\n with YKHO.client:\n eOtH = YKHO.get_user_token()\n Ylbp = YKHO.client.put('v1/guests/guestid', headers=dict(Authorization='Be... | [
"0.71438676",
"0.7024493",
"0.6982036",
"0.6895793",
"0.6786717",
"0.6730274",
"0.672154",
"0.65604484",
"0.655577",
"0.6510431",
"0.6509717",
"0.64770633",
"0.6429711",
"0.6428641",
"0.6428641",
"0.6428641",
"0.6401814",
"0.63995236",
"0.6374816",
"0.6364278",
"0.6312917",
... | 0.7750498 | 0 |
Test the guest to be updated does not exist. | def FTMp(YKHO):
with YKHO.client:
eOtH = YKHO.get_user_token()
Ylbp = YKHO.client.put('v1/guests/1', headers=dict(Authorization='Bearer ' + eOtH), data=qQXR.dumps(dict(guest=dict(first_name='John'))), content_type='application/json')
nPrm = qQXR.loads(Ylbp.data.decode())
YKHO.assertE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M_rH(YKHO):\n with YKHO.client:\n eOtH = YKHO.get_user_token()\n Ylbp = YKHO.client.put('v1/guests/guestid', headers=dict(Authorization='Bearer ' + eOtH), data=qQXR.dumps(dict(guest=dict(first_name='Tim', last_name='Hortons', organization='TIMS', email='tim.hortons@tims.ca'))), content_type='a... | [
"0.69841087",
"0.6560188",
"0.6419392",
"0.6376614",
"0.63027287",
"0.61641145",
"0.6149735",
"0.61166203",
"0.6111736",
"0.60976493",
"0.6096783",
"0.6086484",
"0.6056941",
"0.6047513",
"0.6006032",
"0.5997236",
"0.5992709",
"0.5960032",
"0.5950157",
"0.5927505",
"0.59202206... | 0.7839922 | 0 |
Test for Bad requests 400s | def pJBL(YKHO):
with YKHO.client:
eOtH = YKHO.get_user_token()
Ylbp = YKHO.client.put('v1/guests/1', headers=dict(Authorization='Bearer ' + eOtH), content_type='application/json')
nPrm = qQXR.loads(Ylbp.data.decode())
YKHO.assertEqual(Ylbp.status_code, 400)
YKHO.assertTrue(nP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _bbE(YKHO):\n bD7m = f'{Q_Es}&limit=1001'\n Ylbp = G4JS.get(bD7m)\n YKHO.assertEqual(Ylbp.status_code, 400)",
"def lvQ6():\n CDAy = 'http://52.24.157.193:5000/api/fibonacci/5/foo'\n geh0 = G4JS.get(CDAy)\n nPrm = geh0.json()\n assert geh0.status_code == 400",
"def e4S6(YKHO):\n Ylbp... | [
"0.8065618",
"0.78865826",
"0.78110194",
"0.78110194",
"0.7762635",
"0.77414644",
"0.7722338",
"0.7682968",
"0.7613088",
"0.7613088",
"0.76029825",
"0.7525198",
"0.7475711",
"0.7466477",
"0.7402542",
"0.73604316",
"0.7359486",
"0.7337835",
"0.7333477",
"0.73287034",
"0.727919... | 0.72902167 | 20 |
Test Guests are returned when a query search q is present in the url Also test that the next page pagination string is None | def czTI(YKHO):
with YKHO.client:
eOtH = YKHO.get_user_token()
YKHO.create_guests(eOtH)
geh0 = YKHO.client.get('v1/guests?q=T&page=2', headers=dict(Authorization='Bearer ' + eOtH))
nPrm = qQXR.loads(geh0.data.decode())
YKHO.assertTrue(nPrm['status'] == 'success')
YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _fqc(YKHO):\n geh0 = YKHO.client.get('/searchPage/', follow=True)\n YKHO.assertEqual(geh0.status_code, 200)",
"def UAgr(YKHO):\n with YKHO.client:\n eOtH = YKHO.get_user_token()\n YKHO.create_guests(eOtH)\n geh0 = YKHO.client.get('v1/guests?q=T', headers=dict(Authorization='Bear... | [
"0.69255406",
"0.67355",
"0.66889036",
"0.66002566",
"0.65405506",
"0.64986455",
"0.6472365",
"0.6427053",
"0.6423136",
"0.6421245",
"0.6420486",
"0.64046276",
"0.6399398",
"0.6381188",
"0.6355274",
"0.6335563",
"0.6334782",
"0.6327968",
"0.6327574",
"0.63228863",
"0.63054353... | 0.70444995 | 0 |
Compute l2 loss between targets and predictions. | def wOmn(YKHO):
with ZylS.variable_scope('loss'):
N77f = ZylS.reduce_mean((YKHO.targets - YKHO.predictions) ** 2, name='loss')
return N77f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Noe5():\n\n def eHNT(Xdzc, x6A0, _mSQ):\n N8OZ.assert_same_shape(Xdzc, x6A0)\n N8OZ.assert_same_shape(Xdzc, _mSQ)\n KVkj = _mSQ * (Xdzc - x6A0) ** 2\n return oLG2.sum(KVkj) / oLG2.sum(_mSQ)\n return P8oC.Fn('L2Loss', eHNT)",
"def LJvU(N6Z1, GigO):\n with ZylS.variable_sco... | [
"0.82032096",
"0.79172033",
"0.7905515",
"0.78486705",
"0.7769238",
"0.7522146",
"0.7510206",
"0.7509704",
"0.74665475",
"0.7456279",
"0.74518037",
"0.7330183",
"0.7312276",
"0.7253313",
"0.72435856",
"0.7225836",
"0.71807593",
"0.7169952",
"0.7165901",
"0.7144422",
"0.710785... | 0.65459794 | 80 |
Returns the available cash. | def KWPq(YKHO, gzpV=True, JzyV=None):
bo34.debug('现金是' + str(YKHO.strategyAccount[JzyV].getCash()))
return YKHO.strategyAccount[JzyV].getCash() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8G8(YKHO):\n bD7m = Pqur('accounts', YKHO.investor_id, 'availablecash')\n geh0 = YKHO.session.get(url=bD7m)\n geh0.raise_for_status()\n return ZjSO(geh0.json().get('availableCash'))",
"def XlXw(YKHO):\n return YKHO._summary.available_cash",
"def KWPq(YKHO):\n return YKHO.__ibConnection.g... | [
"0.84132487",
"0.78041506",
"0.73603344",
"0.6752998",
"0.66651523",
"0.6592227",
"0.64580756",
"0.6410407",
"0.6409917",
"0.6365891",
"0.6339565",
"0.63214123",
"0.6315135",
"0.61936975",
"0.6169726",
"0.6143762",
"0.613214",
"0.60888404",
"0.6064842",
"0.60580033",
"0.60445... | 0.61729264 | 14 |
Creates a Stop order. A stop order, also referred to as a stoploss order, is an order to buy or sell a stock once the price of the stock reaches a specified price, known as the stop price. When the stop price is reached, a stop order becomes a market order. A buy stop order is entered at a stop price above the current ... | def jJ0x(YKHO, XeOP, YKiD, p6Mr, cTRz):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jJ0x(YKHO, XeOP, YKiD, p6Mr, cTRz):\n raise NotImplementedError()",
"def eDEV(YKHO, XeOP, YKiD, p6Mr, M0c7, cTRz):\n pass",
"def eDEV(YKHO, XeOP, YKiD, p6Mr, M0c7, cTRz):\n raise NotImplementedError()",
"def C19x(YKHO, NSKj=None):\n if not isinstance(NSKj, list):\n NSKj = [NSKj]\n f... | [
"0.78545237",
"0.7374257",
"0.72977924",
"0.7102298",
"0.7095731",
"0.69310224",
"0.68253183",
"0.6812877",
"0.6807513",
"0.6717068",
"0.66244704",
"0.65351176",
"0.65201974",
"0.6519362",
"0.651077",
"0.6441312",
"0.63992184",
"0.6370565",
"0.6222036",
"0.61381197",
"0.61358... | 0.7993976 | 0 |
Sets the annotations of this GetAnnotationsResponse. | def XgyP(YKHO, XgyP):
if XgyP is None:
raise ValueError('Invalid value for `annotations`, must not be `None`')
YKHO._annotations = XgyP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XgyP(YKHO, XgyP):\n YKHO._annotations = XgyP",
"def XgyP(YKHO, XgyP):\n if XgyP is None:\n XgyP = 'Annotations not load please remove omit=annotations'\n YKHO._annotations = XgyP",
"def wGOc(YKHO, XgyP):\n return XgyP",
"def gcFi(YKHO):\n return YKHO._get(YKHO._annotation_url)",
"... | [
"0.7812936",
"0.7599463",
"0.7042578",
"0.6957865",
"0.68681514",
"0.66842574",
"0.6635162",
"0.6634157",
"0.65644646",
"0.6492137",
"0.6480792",
"0.64077777",
"0.6374",
"0.63324827",
"0.63324827",
"0.6330324",
"0.63123083",
"0.62795216",
"0.62795216",
"0.61977094",
"0.619203... | 0.7619952 | 1 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Setup the distributed training. VISSL support both GPU and CPU only training. (1) Initialize the torch.distributed.init_process_group if the distributed is not already initialized. The init_method, backend are specified by user in the yaml config file. See vissl/defaults.yaml file for description on how to set init_met... | def BxqX(YKHO, IHts: bool):
ywJc = int(Hy7s.environ['WORLD_SIZE'])
assert ywJc % YKHO.cfg.DISTRIBUTED.NUM_NODES == 0
FJYT = f'{YKHO.cfg.DISTRIBUTED.INIT_METHOD}://{YKHO.dist_run_id}'
G9jH.info(f'Using Distributed init method: {FJYT}, world_size: {ywJc}, rank: {YKHO.distributed_rank}')
if not ht2j.di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ybLF(YKHO):\n ht2j.distributed.init_process_group(backend=YKHO.distributed_training_args.backend, init_method=YKHO.distributed_training_args.init_method, rank=YKHO.distributed_training_args.global_rank, world_size=YKHO.distributed_training_args.world_size)\n ht2j.cuda.set_device(YKHO.distributed_training... | [
"0.8254846",
"0.7641229",
"0.7474035",
"0.73919",
"0.7344156",
"0.7222954",
"0.7134846",
"0.71325415",
"0.69578934",
"0.6933404",
"0.69034326",
"0.6866748",
"0.67790675",
"0.67775625",
"0.6633153",
"0.66309226",
"0.65790075",
"0.65678006",
"0.6543738",
"0.6511403",
"0.6507894... | 0.7971513 | 1 |
Show user's profile page | def SGll(QePW):
CBIr = QePW.user
return _1tc(QePW, 'user_profile.html', {'user': CBIr}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QyAW():\n return TvZl('user_profile_page.html')",
"def YxIp():\n CBIr = mv1M.query.get_or_404(Oa1e.user.id)\n return TvZl('/user/profile.html', user=CBIr)",
"def SGll():\n return TvZl('user_profile_page.html')",
"def fRKm():\n return TvZl('userprofile.html', username=SAOk())",
"def z39Z(... | [
"0.8925481",
"0.852804",
"0.848867",
"0.8420559",
"0.82898194",
"0.8281754",
"0.8144255",
"0.8140775",
"0.813006",
"0.8093679",
"0.80689275",
"0.80619",
"0.80540323",
"0.8002679",
"0.8000204",
"0.7968985",
"0.7964852",
"0.7951074",
"0.7939831",
"0.7910826",
"0.7902591",
"0.... | 0.79942465 | 15 |
Determine if an age represents an adult or not | def OFRK(ZJe_):
return ZJe_ > 18 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OFRK(ZJe_):\n return ZJe_ >= 18",
"def ZkYj(YKHO):\n return YKHO._adult",
"def OFRK(YKHO) -> h8nf[bool]:\n if YKHO._is_adult is not None or not YKHO.user_id:\n return YKHO._is_adult\n YKHO._load_main_page()\n return YKHO._is_adult",
"def a_AG(YKHO) -> None:\n YKHO._call_checked('... | [
"0.8797464",
"0.7014607",
"0.66615176",
"0.6646392",
"0.6571641",
"0.65313375",
"0.65242773",
"0.6428781",
"0.6254732",
"0.62187654",
"0.62157345",
"0.6204327",
"0.6197939",
"0.6140182",
"0.6106399",
"0.61040926",
"0.6102586",
"0.6089236",
"0.60710603",
"0.60490394",
"0.60489... | 0.872005 | 1 |
Safe ANDing of two querysets. If one of both queries has its DISTINCT flag set, sets distinct on both querysets. Also takes extra | def UTa3(ccPB, AuZF):
if ccPB.query.distinct or AuZF.query.distinct:
Ylbp = ccPB.distinct() & AuZF.distinct()
else:
Ylbp = ccPB & AuZF
Ylbp._transform_fns = list(set(getattr(ccPB, '_transform_fns', []) + getattr(AuZF, '_transform_fns', [])))
if not (ccPB.query.standard_ordering and AuZF.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZSfs(YKHO, SR0I, UY_i):\n for kQlf in UY_i:\n VKhi = SR0I.model._meta\n if kQlf[0] in YKHO.lookup_prefixes:\n kQlf = kQlf[1:]\n SQ3m = kQlf.split(pQgP)\n for Q7me in SQ3m:\n Jyyj = VKhi.get_field(Q7me)\n if hasattr(Jyyj, 'get_path_info'):\n ... | [
"0.641959",
"0.6279977",
"0.6239921",
"0.6063612",
"0.6012493",
"0.5962331",
"0.59012717",
"0.58669174",
"0.5856045",
"0.5832692",
"0.58178926",
"0.5742382",
"0.5741174",
"0.57263494",
"0.57004935",
"0.5693845",
"0.56781924",
"0.5676612",
"0.5631233",
"0.5631233",
"0.5628853"... | 0.76541823 | 0 |
Access the config property. | def GPtr(YKHO) -> h8nf[V8S8]:
if len(YKHO.configs) > 0:
return YKHO.configs[-1]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPtr(YKHO):\n return YKHO.get('config')",
"def GPtr(YKHO):\n return YKHO._data.get('config')",
"def GPtr(YKHO):\n return YKHO.__config",
"def GPtr():\n return YKHO.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO):\n return YKHO.config.config",
"def tgzD(YKHO... | [
"0.83475643",
"0.8276066",
"0.8007677",
"0.7994771",
"0.79384524",
"0.79384524",
"0.79384524",
"0.79305464",
"0.79305464",
"0.7904749",
"0.7886057",
"0.7884131",
"0.7884131",
"0.7884131",
"0.7884131",
"0.7884131",
"0.7884131",
"0.7884131",
"0.7884131",
"0.7884131",
"0.7884131... | 0.0 | -1 |
Deserialize the experiment data stored at `dir_path` and return an Experiment object. | def n5rA(eHKs: str) -> hOpO:
EyZF = f'{eHKs}/config.jsonl'
b32v = []
with open(EyZF) as eHNT:
for zFiD in eHNT:
b32v.append(qQXR.loads(zFiD))
Wbxz = {}
qdZX = GkAb(f'{eHKs}/metric/')
for DeZH in qdZX.iterdir():
if DeZH.is_file():
H5ew = DeZH.parts[-1]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Luv1(VqRE: str) -> hOpO:\n with open(VqRE, 'r') as nUeQ:\n jJsY = qQXR.loads(nUeQ.read())\n return G_62(jJsY)",
"def tyeH(YKHO, SItH, nPrm):\n kf3C = Hy7s.path.join(SItH, 'experiment-settings.json')\n with open(kf3C, 'r') as UXEK:\n nPrm = qQXR.load(UXEK)\n YKHO.name = nP... | [
"0.6776431",
"0.6302013",
"0.6212284",
"0.61824214",
"0.61329067",
"0.6080345",
"0.6056208",
"0.6001818",
"0.5984911",
"0.5965697",
"0.5849271",
"0.58235145",
"0.58235145",
"0.5796448",
"0.5796048",
"0.5708365",
"0.56506723",
"0.56447244",
"0.56429505",
"0.56039286",
"0.56029... | 0.81955045 | 0 |
Aggregate metrics across experiment sequences. Given a list of metric names, aggreate the metrics across different experiments in an experiment sequence. | def jGg3(YKHO, **B2fa: Any) -> dict[str, oyIN.typing.NDArray[oyIN.float32]]:
for H5ew in ['metric_names', 'x_name', 'x_min', 'x_max', 'mode', 'drop_duplicates', 'dropna', 'verbose']:
assert H5ew in B2fa
PJWX = B2fa['verbose']
_obH = B2fa['metric_names']
FS6T: dict[str, list[oyIN.typing.NDArray[o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGg3(YKHO, vK4e: bool=True, **B2fa: Any) -> dict[str, oyIN.typing.NDArray[oyIN.float32]]:\n for H5ew in ['get_experiment_name', 'metric_names', 'x_name', 'x_min', 'x_max', 'mode', 'drop_duplicates', 'dropna', 'verbose']:\n assert H5ew in B2fa\n TEd8 = B2fa.pop('get_experiment_name')\n _obH = B2... | [
"0.64623314",
"0.61799014",
"0.60363895",
"0.6000248",
"0.56680715",
"0.56478035",
"0.5634238",
"0.55860865",
"0.55659944",
"0.55384946",
"0.5537096",
"0.552785",
"0.5500917",
"0.548741",
"0.54866415",
"0.5484168",
"0.5479515",
"0.54789484",
"0.5460642",
"0.5457897",
"0.54477... | 0.67020977 | 0 |
Create a conv block consisting of two conv layers with batch normalization | def _053(KUnM, g4y1, XSHN):
XkN1 = kVq_(g4y1, 1)
XkN1 = kVq_(XkN1, 2)
return XkN1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t84O(YKHO, KUnM, pKvt):\n RRgV = GVKG()(pKvt)\n aw2B = MroH('relu')(RRgV)\n dFGd = yHwh(KUnM, (3, 3), padding='same', kernel_initializer=YKHO.initializer)(aw2B)\n bo8Q = GVKG()(dFGd)\n AIsx = MroH('relu')(bo8Q)\n sUaA = yHwh(KUnM, (3, 3), padding='same', kernel_initializer=YKHO.initializer)(A... | [
"0.7692012",
"0.760028",
"0.74801886",
"0.73376083",
"0.73279786",
"0.73274624",
"0.7327447",
"0.7284995",
"0.72732717",
"0.72732717",
"0.72732717",
"0.72722137",
"0.72722137",
"0.72722137",
"0.7259798",
"0.7252184",
"0.7217374",
"0.71129054",
"0.7111876",
"0.7070053",
"0.706... | 0.0 | -1 |
Create conv layer with batch norm layer attached | def kVq_(KUnM, g4y1, XSHN, YlZl):
RKO_ = 'conv_{}_{}'.format(XSHN, YlZl)
EtM5 = yHwh(KUnM, (3, 3), activation='relu', padding='same', name=RKO_)(g4y1)
F5xQ = 'batch_norm_{}_{}'.format(XSHN, YlZl)
EtM5 = GVKG(name=F5xQ)(EtM5)
EtM5 = MroH('relu')(EtM5)
return EtM5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlQ2(YKHO):\n raise NotImplementedError",
"def ZxUV(g4y1, LT6S, okEi, rrBf):\n return gJFC(g4y1, LT6S, rrBf, [0, 1, 2], okEi)",
"def ZxUV(g4y1, LT6S, okEi, rrBf, wH3T):\n return gJFC(g4y1, LT6S, rrBf, [0, 1, 2], okEi, wH3T)",
"def ZxUV(g4y1, LT6S, okEi, rrBf):\n return gJFC(g4y1, LT6S, rrBf, ... | [
"0.78678185",
"0.7636443",
"0.75789547",
"0.7537999",
"0.74263495",
"0.7417891",
"0.7319199",
"0.7301832",
"0.72758424",
"0.7254213",
"0.72235113",
"0.721829",
"0.7186307",
"0.7183592",
"0.7182666",
"0.716811",
"0.7138232",
"0.7107151",
"0.7091215",
"0.7075652",
"0.70683986",... | 0.0 | -1 |
Given an iterator, it returns sublists made of n items (except the last that can have len < n) | def N2EU(oHE7, exwG=2):
alQJ = []
for ZfUD in oHE7:
alQJ.append(ZfUD)
if len(alQJ) == exwG:
yield alQJ
alQJ = []
if len(alQJ) != 0:
yield alQJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _iMd(exwG, iter):\n return list(uOgj(iter, exwG))",
"def _iMd(OxJJ, exwG):\n return list(Hs6x.islice(OxJJ, exwG))",
"def _iMd(exwG, OxJJ):\n return list(Hs6x.islice(OxJJ, exwG))",
"def E0cw(exwG, OxJJ):\n OxJJ = iter(OxJJ)\n return iter(lambda: list(Hs6x.islice(OxJJ, exwG)), [])",
"def j... | [
"0.7549798",
"0.75473344",
"0.74806386",
"0.74687314",
"0.74603945",
"0.7422774",
"0.74161905",
"0.74161905",
"0.74161905",
"0.73732245",
"0.7306881",
"0.7284016",
"0.72714996",
"0.7244208",
"0.71817523",
"0.7178605",
"0.71714115",
"0.71598923",
"0.7150095",
"0.71488196",
"0.... | 0.0 | -1 |
Transform the list of sentences into a dataframe Make a dataframe that adds some metadata to the list of sentences. Each row will contain one sentence, the name of the source file and a zero based index of the sentence. | def Vv_0(Rhv4, gIsw):
return CwDs.DataFrame(data={'sentence': Rhv4}).assign(file_name=gIsw, location=lambda WKvO: WKvO.index) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FJf2(Rhv4):\n Rhv4 = OGiI(Rhv4)\n jQ3Z = hxoQ(columns=['act', 'scene', 'speaker', 'sentence'], data=Rhv4)\n return jQ3Z",
"def dKUz(pmON, EYDd):\n iumf, pZ8o = JGsS(pmON, NORM=True)\n usx6 = []\n or8S = []\n YRbF = 0\n for HKwb in pZ8o:\n usx6.append({'text': HKwb, 'class': EYD... | [
"0.62425655",
"0.61931723",
"0.61295307",
"0.60389143",
"0.5997166",
"0.5988423",
"0.59166586",
"0.59152055",
"0.5902983",
"0.5874644",
"0.5861002",
"0.58240324",
"0.5752979",
"0.57241064",
"0.57142544",
"0.5689745",
"0.5665955",
"0.56515586",
"0.56393754",
"0.5631878",
"0.56... | 0.7578058 | 0 |
He normal initializer with scale. | def Lo2K(NXpY=1.0, yokr=None):
NXpY = 2.0 * NXpY
return ZylS.keras.initializers.VarianceScaling(scale=NXpY, mode='fan_in', distribution='truncated_normal', seed=yokr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dqOW(ROpF):\n IddF = ROpF[0]\n return oyIN.random.randn(*ROpF) * oyIN.sqrt(2.0 / IddF)",
"def dGW5(YKHO):\n ...",
"def mhAC(YKHO):\n if YKHO._normal is None:\n assert YKHO.rows == 1 or YKHO.columns == 1\n exwG = YKHO.norm\n YKHO._normal = 1 / exwG * YKHO\n return YKHO._n... | [
"0.72617066",
"0.666443",
"0.6607306",
"0.65771365",
"0.65644443",
"0.65604323",
"0.64859986",
"0.6429408",
"0.6384876",
"0.63744026",
"0.6366612",
"0.6362341",
"0.631512",
"0.62922573",
"0.6265821",
"0.6247555",
"0.6238328",
"0.6235709",
"0.6231011",
"0.62230724",
"0.6178152... | 0.0 | -1 |
Gets a human readable name for the recurrent. | def jzK7(Lmqg):
return ' '.join(Lmqg.__name__.split('_')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pig2(YKHO) -> str:\n return qe4Y.get(YKHO, 'human_readable_name')",
"def pig2(YKHO) -> str:\n return qe4Y.get(YKHO, 'human_readable_name')",
"def mWFP(YKHO):\n return YKHO._status['FriendlyName']",
"def mWFP(YKHO) -> str:\n return qe4Y.get(YKHO, 'name')",
"def mWFP(YKHO) -> str:\n return... | [
"0.7397408",
"0.7397408",
"0.73927814",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
"0.7353771",
... | 0.7660035 | 0 |
Sets the created_at of this TweetSummarizeEntity. | def aJ2e(YKHO, aJ2e):
if aJ2e is None:
raise ValueError('Invalid value for `created_at`, must not be `None`')
YKHO._created_at = aJ2e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO, aJ2e):\n YKHO._cr... | [
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015",
"0.69525015"... | 0.6614145 | 37 |