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 |
|---|---|---|---|---|---|---|
Clean up a filename s by removing invalid characters and converting spaces to underscores. Returns the cleaned filename. | def BnqM(KCHu):
IznC = ''.join((Z9rn for Z9rn in KCHu if Z9rn.isalnum() or Z9rn in ' ._~'))
IznC = IznC.replace(' ', '_')
return IznC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _H8I(KCHu):\n return ZbWC.sub('[^0-9a-zA-Z_]+', '', ZbWC.sub('\\\\s', '_', KCHu))",
"def qDYF(YKHO, KCHu):\n KCHu = KCHu.replace('/', '_').replace('\\\\', '_').replace(':', '_').replace('<', '_').replace('>', '_')\n KCHu = KCHu.replace('nKeY', 'xxxx').replace('kKeY', 'xxxx').replace('cKeY', 'xxxx')\... | [
"0.8666734",
"0.8375041",
"0.8169665",
"0.81218565",
"0.79910374",
"0.79910374",
"0.7959788",
"0.7957763",
"0.7949339",
"0.79329264",
"0.7926069",
"0.7908641",
"0.7900095",
"0.78575677",
"0.7649855",
"0.76421195",
"0.76096004",
"0.75933516",
"0.7480896",
"0.7463797",
"0.74572... | 0.8364263 | 2 |
Function to mimic the 'fspecial' gaussian MATLAB function. | def WQaV(zNig, WTkW):
zNig = ZylS.convert_to_tensor(zNig, ZylS.int32)
WTkW = ZylS.convert_to_tensor(WTkW)
jNOo = ZylS.cast(ZylS.range(zNig), WTkW.dtype)
jNOo -= ZylS.cast(zNig - 1, WTkW.dtype) / 2.0
Oa1e = ZylS.square(jNOo)
Oa1e *= -0.5 / ZylS.square(WTkW)
Oa1e = ZylS.reshape(Oa1e, shape=[1,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(WKvO):\n return oyIN.exp(-WKvO ** 2)",
"def IAWS(WKvO, yGTL, wEsz):\n return 1 / (wEsz * oyIN.sqrt(2 * oyIN.pi)) * oyIN.exp(-1 / 2 * ((WKvO - yGTL) / wEsz) ** 2)",
"def IAWS(WKvO):\n return oyIN.exp(-(WKvO ** 2 / 2))",
"def IAWS(WKvO, nJ9F, WTkW):\n return oyIN.exp(-((WKvO - nJ9F) / WTkW... | [
"0.80285424",
"0.79119456",
"0.7909021",
"0.7840486",
"0.7797171",
"0.77850956",
"0.7741206",
"0.7694848",
"0.7669363",
"0.76371074",
"0.7636203",
"0.7566431",
"0.7547466",
"0.75315005",
"0.7512355",
"0.7512042",
"0.7511431",
"0.7489194",
"0.748071",
"0.7458724",
"0.7458724",... | 0.0 | -1 |
Returns True/False indicating whether the given path is a valid setting for this input. | def zwDd(YKHO, pmON):
return YKHO.type.is_valid_path(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def JK0O(YKHO, pmON: str) -> bool:\n pass",
"def deVW(YKHO, pmON: Path) -> bool:\n raise NotImplementedError",
"def qWKk(YKHO, GPtr):\n return ZJRH(GPtr, [('path', (str... | [
"0.70952874",
"0.70952874",
"0.69545144",
"0.69217396",
"0.6902417",
"0.6771821",
"0.67096144",
"0.66698796",
"0.66362786",
"0.6541593",
"0.64742523",
"0.64418197",
"0.6400858",
"0.6397315",
"0.6368575",
"0.636626",
"0.63526803",
"0.6345321",
"0.63327646",
"0.6329796",
"0.629... | 0.70027447 | 2 |
Returns True/False indicating whether the given path is a valid setting for this output. | def zwDd(YKHO, pmON):
return YKHO.type.is_valid_path(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aY2V(YKHO, mWFP, pmON):\n return YKHO.get_output(mWFP).is_valid_path(pmON)",
"def SGVO(YKHO):\n return Hy7s.path.isfile(YKHO.config_file)",
"def SGVO(YKHO) -> bool:\n return YKHO.path.is_file() and YKHO.htpass is not None",
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def ... | [
"0.67383355",
"0.6735544",
"0.66031486",
"0.6595013",
"0.6595013",
"0.64945453",
"0.64900315",
"0.64808327",
"0.64699227",
"0.6466834",
"0.6429903",
"0.63020796",
"0.6254115",
"0.6246877",
"0.6235181",
"0.62040144",
"0.6176",
"0.61600935",
"0.6147862",
"0.614569",
"0.61381584... | 0.64774215 | 8 |
Gets the default value for this parameter. | def HyJ9(YKHO):
if YKHO.is_required:
raise V8lP("Module parameter '%s' is required, so it has no default value" % YKHO.name)
return YKHO._default | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LO0Z(YKHO):\n return YKHO.default_value",
"def rcy9(YKHO):\n return YKHO._default_value",
"def HyJ9(YKHO) -> h8nf[ImMB]:\n return qe4Y.get(YKHO, 'default_value')",
"def HyJ9(YKHO) -> h8nf[ImMB]:\n return qe4Y.get(YKHO, 'default_value')",
"def HyJ9(YKHO):\n return YKHO._internal.get_defau... | [
"0.8728936",
"0.86638963",
"0.8632101",
"0.8632101",
"0.85467327",
"0.85317695",
"0.85317695",
"0.85317695",
"0.84936297",
"0.844976",
"0.84334373",
"0.8431808",
"0.8431808",
"0.84013927",
"0.8383843",
"0.8364287",
"0.8342452",
"0.8340997",
"0.8327634",
"0.8327053",
"0.832058... | 0.7791002 | 40 |
Returns True/False if `path` is a valid path for input `name`. | def xISP(YKHO, mWFP, pmON):
return YKHO.get_input(mWFP).is_valid_path(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JK0O(YKHO, pmON: str) -> bool:\n pass",
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def zwDd(YKHO, pmON):\n return YKHO.type.is_valid_path(pmON)",
"def zwDd(YKHO, pmON):\n return YKHO.type.is_valid_path(pmON... | [
"0.80745405",
"0.79282576",
"0.79282576",
"0.7857242",
"0.7857242",
"0.7771042",
"0.7526079",
"0.7481319",
"0.74807525",
"0.7405112",
"0.73771083",
"0.72674936",
"0.72632855",
"0.7207507",
"0.71164435",
"0.71038157",
"0.71009344",
"0.70305717",
"0.7010649",
"0.70102787",
"0.6... | 0.8436696 | 0 |
Returns True/False if `path` is a valid path for output `name`. | def aY2V(YKHO, mWFP, pmON):
return YKHO.get_output(mWFP).is_valid_path(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xISP(YKHO, mWFP, pmON):\n return YKHO.get_input(mWFP).is_valid_path(pmON)",
"def JK0O(YKHO, pmON: str) -> bool:\n pass",
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def o3nm(pmON):\n return EFYe(hIOi(pmON))"... | [
"0.75969976",
"0.75151086",
"0.72938734",
"0.72938734",
"0.7289456",
"0.72363126",
"0.7227204",
"0.7227204",
"0.7197834",
"0.70673287",
"0.70605993",
"0.70082194",
"0.69575524",
"0.6774762",
"0.6763107",
"0.6761329",
"0.6756546",
"0.6744684",
"0.6743988",
"0.6741266",
"0.6735... | 0.8634281 | 0 |
Returns a BlockdiagModule representation of this module. | def YEw8(YKHO):
ut3e = aeU1(YKHO.info.name)
for mWFP in YKHO.inputs:
ut3e.add_input(mWFP)
for mWFP in YKHO.outputs:
ut3e.add_output(mWFP)
for mWFP in YKHO.parameters:
ut3e.add_parameter(mWFP)
return ut3e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rt0o(YKHO):\n return H6Cb.basic_block_to_basic_block(YKHO)",
"def rt0o(YKHO):\n return H6Cb.hier_block2_sptr_to_basic_block(YKHO)",
"def yR_P(YKHO):\n return YKHO._module_rep",
"def Haqt(YKHO) -> U78l.Module:\n YKHO._close()\n return YKHO._module",
"def Haqt(YKHO) -> U78l.Module:\n YK... | [
"0.6125507",
"0.60641026",
"0.59777296",
"0.59736794",
"0.59736794",
"0.5936064",
"0.58854574",
"0.5844642",
"0.5841528",
"0.5808192",
"0.5791803",
"0.5772505",
"0.5762406",
"0.57504207",
"0.57464564",
"0.57464564",
"0.5742313",
"0.57346356",
"0.57308567",
"0.5715607",
"0.570... | 0.795054 | 0 |
Return kth unique values for a sorted array along row/column | def AEFi(nPrm, G1Hx, jDK_):
nPrm = nPrm.T if jDK_ == 0 else nPrm
vAqE = []
for iArr in nPrm:
oeNL = 0
qBYI = oyIN.NaN
for wEf2 in iArr:
if not L_aS(wEf2):
if wEf2 != qBYI:
qBYI = wEf2
oeNL += 1
if oeNL ==... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kcc4(ezWE, G1Hx):\n return oyIN.sort(oyIN.argpartition(oyIN.array(ezWE), -G1Hx)[-G1Hx:])",
"def wApv(Gmep, OfOG, LGze, H42b, jDK_):\n nPrm = oyIN.random.randint(0, LGze, (Gmep, OfOG)).astype(oyIN.float)\n nPrm = KnCI(nPrm, axis=jDK_)\n nPrm.sort(axis=jDK_)\n yMD1 = AEFi(nPrm, H42b, jDK_)\n ... | [
"0.6873392",
"0.6845563",
"0.6530234",
"0.6499084",
"0.6455793",
"0.6382164",
"0.63185984",
"0.6296333",
"0.62610954",
"0.6178544",
"0.61285007",
"0.61069506",
"0.60645074",
"0.6055544",
"0.60319704",
"0.6024074",
"0.6008447",
"0.600597",
"0.6005872",
"0.5999307",
"0.5990868"... | 0.7942705 | 0 |
Returns a random string of length string_length. | def jVr7(a__r=7):
tuKI = str(qxeD.uuid4())
tuKI = tuKI.upper()
tuKI = tuKI.replace('-', '')
return tuKI[0:a__r] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWvy(a__r):\n return Hy7s.urandom(a__r)",
"def GLL2(u54L):\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(u54L)))",
"def BWvy(u54L):\n return ''.join(tuKI.choices(vIwR.ascii_uppercase + vIwR.digits + vIwR.ascii_lowercase, k=u54L))",
"def BWvy(u54L):\n retu... | [
"0.8876176",
"0.8827222",
"0.8770069",
"0.8710327",
"0.8710327",
"0.8690012",
"0.8683446",
"0.86809766",
"0.86495167",
"0.86455065",
"0.8627251",
"0.8614129",
"0.8605394",
"0.8601623",
"0.8582271",
"0.8578396",
"0.85707814",
"0.8557459",
"0.8545255",
"0.8528147",
"0.85265285"... | 0.0 | -1 |
Computes the number of parameters of the model. | def TlVY(C3ST):
return sum((XP5J.numel() for XP5J in C3ST.parameters())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ca6I(YKHO):\n return eQ5t(YKHO.model)",
"def VgCS(C3ST):\n return sum((XP5J.numel() for XP5J in C3ST.parameters()))",
"def UqPz(C3ST):\n return oyIN.sum([XP5J.numel() for XP5J in C3ST.parameters()]).item()",
"def UqPz():\n C3ST = hxc2(num_classes=2)\n return oyIN.sum([XP5J.numel() for XP5J... | [
"0.8668608",
"0.8536555",
"0.8524557",
"0.8506675",
"0.83924747",
"0.8376438",
"0.8376438",
"0.8371957",
"0.8320878",
"0.8320878",
"0.82857955",
"0.8267253",
"0.8247605",
"0.8193344",
"0.818048",
"0.818048",
"0.8166998",
"0.8109579",
"0.8109579",
"0.8093931",
"0.8085582",
"... | 0.8073007 | 22 |
Fix that also copies the weights of bias in the output layer. | def Dx_Y(YKHO, Gok_=None):
Oa09 = ht2j.zeros(Gok_)
J0yt = YKHO.lm_loss.bias.size(0)
Oa09[:J0yt] = YKHO.lm_loss.bias
YKHO.lm_loss.bias = XDS4(Oa09) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q0Ko(YKHO):\n gEmA = YKHO.NN[-1]\n gEmA.weight.data.copy_(ht2j.zeros_like(gEmA.weight.data))\n gEmA.bias.data.copy_(ht2j.zeros_like(gEmA.bias.data))",
"def Q0Ko(YKHO):\n gEmA = YKHO.NN[-1]\n gEmA.weight.data.copy_(ht2j.zeros_like(gEmA.weight.data))\n gEmA.bias.data.copy_(ht2j.zeros_like(gEm... | [
"0.66622573",
"0.66622573",
"0.6613075",
"0.6591143",
"0.6583199",
"0.65504587",
"0.65346646",
"0.65307206",
"0.65307206",
"0.64653057",
"0.64521754",
"0.6450364",
"0.64347047",
"0.6416497",
"0.6413822",
"0.640963",
"0.63712096",
"0.63677025",
"0.63245165",
"0.630527",
"0.630... | 0.6110873 | 43 |
The output columns should always be the same, even when the encoder produces on new data that includes unseen labels or which doesn't have previously seen labels. | def WO7Z(YKHO):
EcVT = rLdf.DataFrame({'cat': ['a', 'b', 'c', 'a'], 'num': [1, 4, 3, 5]})
CAhe = rLdf.DataFrame({'cat': ['a', 'b', 'b', 'd'], 'num': [2, 4, 6, 5]})
MnDN = RHxJ()
MnDN.fit(EcVT, None)
ERVO = MnDN.produce(CAhe)
YKHO.assertTrue((ERVO.cat_a == rLdf.Series([1, 0, 0, 0])).all())
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1WA(YKHO):\n VHFj = YKHO.categorical_col\n YKHO.df_encoded = YKHO.df.copy()\n for fvDH in VHFj:\n if len(YKHO.df_encoded[fvDH].unique()) <= 2:\n YKHO.df_encoded[fvDH] = nu0g().fit_transform(YKHO.df_encoded[fvDH])\n else:\n YKHO.df_encoded = rLdf.get_dummies(YKHO.df... | [
"0.6334708",
"0.6251678",
"0.6228081",
"0.6131522",
"0.6101561",
"0.6043052",
"0.6029799",
"0.60159194",
"0.6012537",
"0.60019386",
"0.589536",
"0.5890446",
"0.588248",
"0.58546543",
"0.5843799",
"0.58015084",
"0.5782213",
"0.57721937",
"0.5770801",
"0.5748091",
"0.57353485",... | 0.5818917 | 15 |
Return the unit of measurement. | def b82i(YKHO):
return f'¢/{z0X2}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82i(YKHO):\n return YKHO._unit",
"def b82... | [
"0.90807384",
"0.904402",
"0.904402",
"0.904402",
"0.904402",
"0.904402",
"0.904402",
"0.904402",
"0.904402",
"0.904402",
"0.904402",
"0.90149",
"0.9006274",
"0.89476126",
"0.89476126",
"0.8938064",
"0.8919586",
"0.8919586",
"0.8919586",
"0.8919586",
"0.8919586",
"0.8919586... | 0.0 | -1 |
Update the entity. Only used by the generic entity update service. | async def async_update(YKHO):
await YKHO._coordinator.async_request_refresh() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UMiR(YKHO, LEXu):\n raise NotImplementedError",
"def QdZT(YKHO):\n VT3I = RZup(YKHO)\n YKHO.context.add_query(VT3I)\n return YKHO",
"def QdZT(YKHO, LEXu, tvqc=None):\n raise NotImplementedError()",
"def QdZT(YKHO, LEXu):\n id = YKHO._identify(LEXu)\n YKHO._unindex(YKHO.get(id))\n ... | [
"0.83942324",
"0.78831816",
"0.7741941",
"0.74171746",
"0.73275995",
"0.7175887",
"0.70918316",
"0.70399487",
"0.6985368",
"0.6918372",
"0.69039154",
"0.69039154",
"0.6886683",
"0.68581516",
"0.680338",
"0.6789005",
"0.6740899",
"0.6722271",
"0.66991353",
"0.6659492",
"0.6604... | 0.0 | -1 |
Return the equivalent field name in the file format for a standard geolocation field (lat, lon, time, z). Used for internal purpose and should not be called directly. | def CsAL(YKHO, K_Sa):
sjXb = YKHO.get_handler().variables.keys()
if YKHO.is_reference:
sjXb.append('time')
if K_Sa in YKHO.geofield_std2native:
for Acvy in YKHO.geofield_std2native[K_Sa]:
if Acvy in sjXb:
return Acvy
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CsAL(YKHO, K_Sa):\n raise NotImplementedError",
"def Bb7w(YKHO):\n if YKHO.data_files[0].start_time:\n G91o = YKHO.data_files[0].start_time\n elif YKHO.data_files[0].metadata:\n G91o = YKHO._extract_l1_time(YKHO.data_files[0].metadata['RANGEBEGINNINGDATE'], YKHO.data_files[0].metadata[... | [
"0.6974123",
"0.67073625",
"0.6068655",
"0.5921193",
"0.58607566",
"0.58566785",
"0.56923276",
"0.56825",
"0.56625485",
"0.5640981",
"0.56339264",
"0.56339264",
"0.5630108",
"0.5586831",
"0.55702806",
"0.55108976",
"0.55008686",
"0.5465928",
"0.5462624",
"0.545705",
"0.545077... | 0.7203006 | 0 |
retrieves all Place objects depending of the JSON in the body of the request | def K_zW():
nPrm = QePW.get_json()
if nPrm is None:
eTsH(400, 'Not a JSON')
Sa_m = {'states', 'cities'}
nvWN = []
if not len(nPrm) or all([len(Ty9i) == 0 for G1Hx, Ty9i in nPrm.items() if G1Hx in Sa_m]):
nvWN = S8SU.all(tTee).values()
if len(nPrm.get('cities', [])):
gysO ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GbMy():\n nvWN = []\n Mkmy = QePW.get_json()\n if 'amenities' in Mkmy:\n jzdc = [S8SU.get('Amenity', l050) for l050 in Mkmy['amenities']]\n for YRbF in jzdc:\n XP5J = YRbF.place_amenities\n SsWt = XP5J[0].place_id\n C6id = S8SU.get('Place', SsWt)\n ... | [
"0.7305232",
"0.7228068",
"0.70298743",
"0.7005443",
"0.68368894",
"0.68053657",
"0.6720779",
"0.6720175",
"0.6694461",
"0.6656076",
"0.6651204",
"0.66333836",
"0.6612945",
"0.65735066",
"0.6474433",
"0.646808",
"0.6463741",
"0.64327854",
"0.64081687",
"0.6374162",
"0.6359951... | 0.7150344 | 2 |
Create a new message. Only the type argument is mandatory, all other arguments are optional. The arguments have the same meaning as their respective class attributes. When using this constructor, it is your responsibility to check that the required arguments for the specific message type are set. If you fail to do this... | def FIMM(YKHO, type, dXPw=False, Go42=False, Pt6R=None, LAw1=None, pmON=None, wohN=None, mS46=None, HEhK=None, yFgu=None, vC92=None):
super(LuKW, YKHO).__init__(type)
YKHO.no_reply = dXPw
YKHO.no_auto_start = Go42
if Pt6R is not None:
YKHO.serial = Pt6R
if LAw1 is not None:
YKHO.repl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, Logs, hGN5=None):\n tO9_ = LuKW(Logs, YKHO.catalog, YKHO.serializer)\n tO9_.set_content(hGN5)\n return tO9_",
"def FIMM(YKHO, Lbt7=0, yFgu=None, pB3N=b''):\n super(LuKW, YKHO).__init__(dispatch=0)\n YKHO._type = Lbt7\n YKHO._destination = yFgu\n YKHO._source = None\n YKHO._... | [
"0.7263708",
"0.72603923",
"0.71351886",
"0.7098348",
"0.7068435",
"0.70335966",
"0.7022168",
"0.7017336",
"0.6899212",
"0.6867282",
"0.6832184",
"0.6819843",
"0.6800851",
"0.6796592",
"0.6792931",
"0.6735429",
"0.6726938",
"0.6724268",
"0.6675733",
"0.6661682",
"0.6634136",
... | 0.79529166 | 0 |
Create a new SIGNAL message. This represents a signal with name signal on interface interface that is emitted by the service at bus name service under path path. | def Gaon(Emd4, zVa7, pmON, wohN, Gaon, aadv=None, qIxc=None):
Ol8d = Emd4(phhF.MESSAGE_TYPE_SIGNAL, destination=zVa7, path=pmON, interface=wohN, member=Gaon)
if aadv is not None:
Ol8d.set_args(aadv, qIxc)
return Ol8d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xdoz(YKHO, rrBf: DaxSimDevice, mWFP: str, kN9s: _ST_T, *, zNig: _SS_T=None, DbxN: typing.Optional[_SV_T]=None) -> VOO1:\n pass",
"def Gaon(YKHO, rrBf: DaxSimDevice, mWFP: str) -> VOO1:\n H5ew = (rrBf, mWFP)\n if H5ew not in YKHO.__signals:\n raise eG2d(rrBf, mWFP)\n return YKHO.__signals[H... | [
"0.6155829",
"0.6030332",
"0.59541917",
"0.59401083",
"0.5824647",
"0.5819762",
"0.5798099",
"0.57320696",
"0.5712582",
"0.5711174",
"0.5697692",
"0.5666529",
"0.5629308",
"0.55831534",
"0.55641145",
"0.5537564",
"0.5465474",
"0.545334",
"0.5452806",
"0.5450312",
"0.5440125",... | 0.74947786 | 0 |
initializes the variables frequency filtering on an input image | def FIMM(YKHO, LNo8, cAx9, tAX0, T4Wy=0):
YKHO.image = LNo8
if cAx9 == 'ideal_l':
YKHO.filter = YKHO.get_ideal_low_pass_filter
elif cAx9 == 'ideal_h':
YKHO.filter = YKHO.get_ideal_high_pass_filter
elif cAx9 == 'butterworth_l':
YKHO.filter = YKHO.get_butterworth_low_pass_filter
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hOIt(YKHO):\n if YKHO.last_detect_info is not None:\n YKHO.set_X()\n YKHO.set_P()\n YKHO.set_F(dt=YKHO.dt)\n YKHO.set_H()\n YKHO.set_Q()\n YKHO.set_Z()\n YKHO.set_R()",
"def oHxN(YKHO):\n YKHO.W_conv = []\n YKHO.b_conv = []\n YKHO.W_fc1 = YKHO._wei... | [
"0.6633172",
"0.63818055",
"0.6196418",
"0.6169708",
"0.60131437",
"0.59256524",
"0.59050685",
"0.5888638",
"0.58673",
"0.5801949",
"0.5772917",
"0.5753789",
"0.5728668",
"0.57103205",
"0.570725",
"0.56778944",
"0.56766284",
"0.5676319",
"0.5672231",
"0.5662203",
"0.56586945"... | 0.5913969 | 6 |
Return random number from distribution with density p(x)=Kexp((xm)^2/sl'x), x>=0. | def cLOI(YKHO, r8hN, KCHu, vC9B):
r8hN = r8hN.toarray() if H4yH.isspmatrix(r8hN) else oyIN.array(r8hN)
vC9B = vC9B.toarray() if H4yH.isspmatrix(vC9B) else oyIN.array(vC9B)
k0lF = (vC9B * KCHu - r8hN) / PZyS(2 * KCHu)
jzdc = k0lF > 26.0
WKvO = oyIN.zeros(r8hN.shape)
LVAh = oyIN.random.rand(r8hN.s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h_3U():\n while 1:\n KCHu = fTff.random(2)\n if KCHu[0] < oyIN.exp(-100.0 * KCHu[1] * KCHu[1] / 2.0):\n break\n Xf84 = 10.0 * KCHu[1]\n return Xf84 * Xf84",
"def tuKI():\n WKvO = oyIN.random.random()\n if WKvO == 0.0:\n WKvO = 0.5\n return WKvO",
"def HIH_(... | [
"0.68033326",
"0.6803221",
"0.6657336",
"0.66152465",
"0.65817267",
"0.6562965",
"0.6561465",
"0.6561465",
"0.6491306",
"0.64888906",
"0.64807945",
"0.6455097",
"0.64523274",
"0.6365183",
"0.63547635",
"0.6351379",
"0.63502175",
"0.63478845",
"0.6332861",
"0.62969726",
"0.628... | 0.602322 | 62 |
Compute squared Frobenius norm of a target matrix and its NMF estimate. | def rV9r(YKHO):
return naF9(YKHO.V - BJ1H(YKHO.W, YKHO.H), 2).sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn0E(YKHO) -> 'double':\n return hBPC.vnl_matrixD_frobenius_norm(YKHO)",
"def zn0E(YKHO) -> 'float':\n return hBPC.vnl_matrixF_frobenius_norm(YKHO)",
"def zn0E(YKHO) -> 'float':\n return hBPC.vnl_matrixCF_frobenius_norm(YKHO)",
"def zn0E(YKHO):\n if Zxt2.sparse.issparse(YKHO.data):\n X... | [
"0.72443354",
"0.7243203",
"0.7120594",
"0.71203345",
"0.7042096",
"0.70405525",
"0.7001316",
"0.68529177",
"0.68317246",
"0.6813471",
"0.6812114",
"0.6806799",
"0.67998064",
"0.6750459",
"0.67259395",
"0.6718462",
"0.6666074",
"0.6625593",
"0.66228205",
"0.654776",
"0.649944... | 0.0 | -1 |
Normalize initialized basis and mixture matrix, using Boundedness Theorem in [Zhang2007]_. Normalization makes the BMF factorization more robust. Normalization produces basis and mixture matrix with values in [0, 1]. | def NkkI(YKHO):
a6LS, bGrB = q1NN(YKHO.W, axis=0)
tr36, bGrB = q1NN(YKHO.H, axis=1)
if H4yH.isspmatrix(YKHO.W):
q1Yn = H4yH.spdiags(a6LS, 0, YKHO.W.shape[1], YKHO.W.shape[1])
else:
q1Yn = oyIN.diag(a6LS)
if H4yH.isspmatrix(YKHO.H):
KPwL = H4yH.spdiags(tr36, 0, YKHO.H.shape[0]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(nyuy):\n Fg_i = oyIN.absolute(nyuy)\n hj9P = oyIN.zeros_like(nyuy)\n waS5 = Fg_i != 0\n hj9P[waS5] = nyuy[waS5] / Fg_i[waS5]\n return hj9P",
"def WMVN(SxVy: torch.Tensor, maxY: torch.Tensor) -> ht2j.Tensor:\n Fg_i = SxVy.shape[0]\n assert len(SxVy.shape) > 2\n assert maxY.shape =... | [
"0.6399105",
"0.6276778",
"0.61820155",
"0.6124978",
"0.6120756",
"0.6098339",
"0.6065124",
"0.6013644",
"0.6012624",
"0.6012501",
"0.6010046",
"0.6008007",
"0.60004556",
"0.5988013",
"0.5979924",
"0.59755474",
"0.59753877",
"0.5954064",
"0.5943145",
"0.59217906",
"0.5921455"... | 0.5685796 | 52 |
Compute squared Frobenius norm of a target matrix and its NMF estimate. | def rV9r(YKHO):
A3Vt = YKHO.V - BJ1H(YKHO.W, YKHO.H)
return wTxu(A3Vt, A3Vt).sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn0E(YKHO) -> 'double':\n return hBPC.vnl_matrixD_frobenius_norm(YKHO)",
"def zn0E(YKHO) -> 'float':\n return hBPC.vnl_matrixF_frobenius_norm(YKHO)",
"def zn0E(YKHO) -> 'float':\n return hBPC.vnl_matrixCF_frobenius_norm(YKHO)",
"def zn0E(YKHO):\n if Zxt2.sparse.issparse(YKHO.data):\n X... | [
"0.7245647",
"0.7244731",
"0.71218497",
"0.7121179",
"0.70438164",
"0.70417786",
"0.7002437",
"0.6854234",
"0.68328077",
"0.681482",
"0.6813196",
"0.68078905",
"0.6800746",
"0.6751448",
"0.6726988",
"0.67193574",
"0.6667257",
"0.66269547",
"0.6623409",
"0.6548352",
"0.6500066... | 0.0 | -1 |
Compute squared Frobenius norm of a target matrix and its NMF estimate. | def rV9r(YKHO):
return naF9(YKHO.V - BJ1H(YKHO.W, YKHO.H), 2).sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn0E(YKHO) -> 'double':\n return hBPC.vnl_matrixD_frobenius_norm(YKHO)",
"def zn0E(YKHO) -> 'float':\n return hBPC.vnl_matrixF_frobenius_norm(YKHO)",
"def zn0E(YKHO) -> 'float':\n return hBPC.vnl_matrixCF_frobenius_norm(YKHO)",
"def zn0E(YKHO):\n if Zxt2.sparse.issparse(YKHO.data):\n X... | [
"0.72443354",
"0.7243203",
"0.7120594",
"0.71203345",
"0.7042096",
"0.70405525",
"0.7001316",
"0.68529177",
"0.68317246",
"0.6813471",
"0.6812114",
"0.6806799",
"0.67998064",
"0.6750459",
"0.67259395",
"0.6718462",
"0.6666074",
"0.6625593",
"0.66228205",
"0.654776",
"0.649944... | 0.0 | -1 |
Extract elements for projected gradient norm. | def LGbJ(YKHO, EcVT, fuBA):
if H4yH.isspmatrix(EcVT):
EcVT = EcVT.tocsr()
J1b4, dg7v = EcVT.nonzero()
if J1b4.size != 0:
Dd_h = EcVT[J1b4, dg7v] < 0
Dd_h = oyIN.array(Dd_h)
Dd_h = Dd_h[0, :] if Dd_h.shape[0] == 1 else Dd_h[:, 0]
J1b4 = J1b4[Dd_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ux1X(YKHO) -> oyIN.ndarray:\n tpio = (YKHO.num_derivatives + 1) * YKHO.wiener_process_dimension\n zmxM = oyIN.zeros((tpio, tpio))\n ut5U = oyIN.eye(tpio)\n for vexM in range(YKHO.num_derivatives + 1):\n zmxM[vexM::YKHO.num_derivatives + 1] = ut5U[vexM * YKHO.wiener_process_dimension:(vexM + ... | [
"0.5906835",
"0.5748144",
"0.5592775",
"0.5586697",
"0.5574425",
"0.5504775",
"0.550252",
"0.54945666",
"0.54475933",
"0.54287374",
"0.54258585",
"0.5403491",
"0.5358291",
"0.5351223",
"0.5340405",
"0.533163",
"0.5328815",
"0.5318889",
"0.5304851",
"0.5301212",
"0.5299771",
... | 0.0 | -1 |
Compute squared Frobenius norm of a target matrix and its NMF estimate. | def fenx(YKHO):
A3Vt = YKHO.V - BJ1H(YKHO.W, YKHO.H)
return wTxu(A3Vt, A3Vt).sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn0E(YKHO) -> 'double':\n return hBPC.vnl_matrixD_frobenius_norm(YKHO)",
"def zn0E(YKHO) -> 'float':\n return hBPC.vnl_matrixF_frobenius_norm(YKHO)",
"def zn0E(YKHO) -> 'float':\n return hBPC.vnl_matrixCF_frobenius_norm(YKHO)",
"def zn0E(YKHO):\n if Zxt2.sparse.issparse(YKHO.data):\n X... | [
"0.7245647",
"0.7244731",
"0.71218497",
"0.7121179",
"0.70438164",
"0.70417786",
"0.7002437",
"0.6854234",
"0.68328077",
"0.681482",
"0.6813196",
"0.68078905",
"0.6800746",
"0.6751448",
"0.6726988",
"0.67193574",
"0.6667257",
"0.66269547",
"0.6623409",
"0.6548352",
"0.6500066... | 0.0 | -1 |
Compute Frobenius distance cost function with penalization term. | def rV9r(YKHO):
return naF9(YKHO.V - BJ1H(YKHO.W, YKHO.H), 2).sum() + zgsA(BJ1H(YKHO.H, BJ1H(YKHO.Theta, YKHO.H.T))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rf4O(YKHO):\n return 1 - YKHO.pred[YKHO.label == 1].mean()",
"def Rf4O(YKHO):\n return 1 - YKHO.pred[YKHO.label == 1].mean()",
"def Sjsw(YKHO, YgCw, gHYz, pfZs=1, NpTJ=1):\n iXK0 = float(pfZs * YgCw + NpTJ * gHYz) if YgCw != 0 and gHYz != 0 else 1\n Ylbp = pfZs * YgCw / iXK0 * YKHO.fp_cost() * ... | [
"0.6681494",
"0.66492593",
"0.66485834",
"0.62749124",
"0.62582624",
"0.62377083",
"0.61723405",
"0.6147053",
"0.61190724",
"0.6116756",
"0.6097127",
"0.6092083",
"0.6082055",
"0.6034721",
"0.6034065",
"0.60333985",
"0.6014207",
"0.60127866",
"0.6011262",
"0.59960985",
"0.599... | 0.0 | -1 |
Compute squared Frobenius norm of a target matrix and its NMF estimate. | def rV9r(YKHO):
A3Vt = YKHO.V - BJ1H(YKHO.W, YKHO.H)
return naF9(A3Vt, 2).sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn0E(YKHO) -> 'double':\n return hBPC.vnl_matrixD_frobenius_norm(YKHO)",
"def zn0E(YKHO) -> 'float':\n return hBPC.vnl_matrixF_frobenius_norm(YKHO)",
"def zn0E(YKHO) -> 'float':\n return hBPC.vnl_matrixCF_frobenius_norm(YKHO)",
"def zn0E(YKHO):\n if Zxt2.sparse.issparse(YKHO.data):\n X... | [
"0.72443354",
"0.7243203",
"0.7120594",
"0.71203345",
"0.7042096",
"0.70405525",
"0.7001316",
"0.68529177",
"0.68317246",
"0.6813471",
"0.6812114",
"0.6806799",
"0.67998064",
"0.6750459",
"0.67259395",
"0.6718462",
"0.6666074",
"0.6625593",
"0.66228205",
"0.654776",
"0.649944... | 0.0 | -1 |
Compute three component objective function as defined in [Zhang2011]_. | def rV9r(YKHO):
jdrO = abs(YKHO.V - BJ1H(YKHO.W, YKHO.H)).mean() / YKHO.V.mean()
AYfs = abs(YKHO.V1 - BJ1H(YKHO.W, YKHO.H1)).mean() / YKHO.V1.mean()
YKHO.err_avg = jdrO + AYfs
Dp6a = YKHO.V - BJ1H(YKHO.W, YKHO.H)
CWkX = wTxu(Dp6a, Dp6a).sum()
lHKk = YKHO.V1 - BJ1H(YKHO.W, YKHO.H1)
RLN6 = wTx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hpXD(UqYS, WKvO):\n return (WKvO[0] - UqYS[0]) ** 2 + WKvO[1] ** 2 - UqYS[2] ** 2",
"def Uk_D(YKHO):\n AtnB = YKHO._get_support_vectors()\n Aofo = 0\n for YRbF in AtnB:\n for r845 in AtnB:\n Aofo += YKHO.y[YRbF] * YKHO.y[r845] * YKHO.alpha[YRbF] * YKHO.alpha[r845] * YKHO._kernel... | [
"0.6935581",
"0.6888526",
"0.68678933",
"0.6808535",
"0.6741842",
"0.6724818",
"0.6671337",
"0.66359395",
"0.6633011",
"0.6599793",
"0.6583587",
"0.65805626",
"0.653896",
"0.64363456",
"0.6424286",
"0.64000285",
"0.63806427",
"0.6334675",
"0.63338864",
"0.63323855",
"0.629338... | 0.60532135 | 37 |
Return the matrix of basis vectors. | def SxVy(YKHO):
return YKHO.fit.basis() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7AD():\n Kkkm = 1 / oyIN.sqrt(2) * oyIN.array([1, 1j])\n sS4j = 1 / oyIN.sqrt(2) * oyIN.array([1, -1j])\n return (Kkkm, sS4j)",
"def J8sz(MpRk):\n assert MpRk.shape == (3,)\n assert oyIN.linalg.norm(MpRk) > 0\n lvEr = MpRk / oyIN.linalg.norm(MpRk)\n if lvEr[0] == lvEr[1] == 0:\n ... | [
"0.7362658",
"0.7242714",
"0.69736964",
"0.690057",
"0.67555887",
"0.67462647",
"0.6658482",
"0.662407",
"0.6623436",
"0.661651",
"0.6577398",
"0.65478915",
"0.6537438",
"0.6532038",
"0.6525227",
"0.6523145",
"0.6484313",
"0.6466155",
"0.6462137",
"0.6449304",
"0.64386904",
... | 0.6156333 | 51 |
Return the matrix of basis vectors. | def SxVy(YKHO):
return YKHO.W | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7AD():\n Kkkm = 1 / oyIN.sqrt(2) * oyIN.array([1, 1j])\n sS4j = 1 / oyIN.sqrt(2) * oyIN.array([1, -1j])\n return (Kkkm, sS4j)",
"def J8sz(MpRk):\n assert MpRk.shape == (3,)\n assert oyIN.linalg.norm(MpRk) > 0\n lvEr = MpRk / oyIN.linalg.norm(MpRk)\n if lvEr[0] == lvEr[1] == 0:\n ... | [
"0.7362658",
"0.7242714",
"0.69736964",
"0.690057",
"0.67555887",
"0.67462647",
"0.6658482",
"0.662407",
"0.6623436",
"0.661651",
"0.6577398",
"0.65478915",
"0.6537438",
"0.6532038",
"0.6525227",
"0.6523145",
"0.6484313",
"0.6466155",
"0.6462137",
"0.6449304",
"0.64386904",
... | 0.62979436 | 28 |
Return the matrix of basis vectors. | def SxVy(YKHO):
return YKHO.W | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7AD():\n Kkkm = 1 / oyIN.sqrt(2) * oyIN.array([1, 1j])\n sS4j = 1 / oyIN.sqrt(2) * oyIN.array([1, -1j])\n return (Kkkm, sS4j)",
"def J8sz(MpRk):\n assert MpRk.shape == (3,)\n assert oyIN.linalg.norm(MpRk) > 0\n lvEr = MpRk / oyIN.linalg.norm(MpRk)\n if lvEr[0] == lvEr[1] == 0:\n ... | [
"0.7362658",
"0.7242714",
"0.69736964",
"0.690057",
"0.67555887",
"0.67462647",
"0.6658482",
"0.662407",
"0.6623436",
"0.661651",
"0.6577398",
"0.65478915",
"0.6537438",
"0.6532038",
"0.6525227",
"0.6523145",
"0.6484313",
"0.6466155",
"0.6462137",
"0.6449304",
"0.64386904",
... | 0.62979436 | 31 |
Return the matrix of basis vectors. | def SxVy(YKHO):
return YKHO.W | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u7AD():\n Kkkm = 1 / oyIN.sqrt(2) * oyIN.array([1, 1j])\n sS4j = 1 / oyIN.sqrt(2) * oyIN.array([1, -1j])\n return (Kkkm, sS4j)",
"def J8sz(MpRk):\n assert MpRk.shape == (3,)\n assert oyIN.linalg.norm(MpRk) > 0\n lvEr = MpRk / oyIN.linalg.norm(MpRk)\n if lvEr[0] == lvEr[1] == 0:\n ... | [
"0.7362658",
"0.7242714",
"0.69736964",
"0.690057",
"0.67555887",
"0.67462647",
"0.6658482",
"0.662407",
"0.6623436",
"0.661651",
"0.6577398",
"0.65478915",
"0.6537438",
"0.6532038",
"0.6525227",
"0.6523145",
"0.6484313",
"0.6466155",
"0.6462137",
"0.6449304",
"0.64386904",
... | 0.62979436 | 30 |
Test whether any element along a given axis of sparse or dense matrix X is nonzero. | def any(EcVT, jDK_=None):
if H4yH.isspmatrix(EcVT):
EcVT = EcVT.tocsr()
assert jDK_ == 0 or jDK_ == 1 or jDK_ == None, 'Incorrect axis number.'
if jDK_ is None:
return len(EcVT.data) != EcVT.shape[0] * EcVT.shape[1]
Ylbp = [0 for bGrB in Ni9Y(EcVT.shape[1 - jDK_])]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JfyU(WKvO, jDK_):\n cXFM = WKvO == oyIN.array([0, 0, 0, 0, 0, 0, 0, 1], bool)\n return cXFM.all(axis=jDK_)",
"def waS5(YKHO):\n return oyIN.nonzero(oyIN.atleast_1d(oyIN.any(YKHO.ndarray, axis=-1)))",
"def pDpD(YKHO):\n jzdc = q3V_(HfiF(1, 46), (5, 3, 3))\n jzdc[1, 0, 0] = 0\n jzdc[3, 0, 0... | [
"0.6856666",
"0.6487832",
"0.64705217",
"0.6397826",
"0.63957757",
"0.63761646",
"0.63002616",
"0.628904",
"0.61948824",
"0.6192423",
"0.6112674",
"0.61012244",
"0.60536605",
"0.6031817",
"0.603114",
"0.60150754",
"0.60088766",
"0.6001093",
"0.60002667",
"0.5970781",
"0.59673... | 0.77696794 | 0 |
Construct matrix consisting of an mbyn tiling of copies of X. | def sONY(EcVT, r8hN, exwG):
if H4yH.isspmatrix(EcVT):
return H4yH.hstack([H4yH.vstack([EcVT for bGrB in Ni9Y(r8hN)], format=EcVT.format) for bGrB in Ni9Y(exwG)], format=EcVT.format)
else:
return oyIN.tile(oyIN.asmatrix(EcVT), (r8hN, exwG)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RslD(ywwl, WKvO):\n k0lF = pSfY((ywwl, ywwl))\n for YRbF in range(1, ywwl):\n k0lF[YRbF, :] = WKvO ** YRbF\n return dKc3(k0lF)",
"def V4SA(YKHO):\n for LVAh in range(YKHO.max_y):\n for WKvO in range(YKHO.max_x):\n YKHO.matrix.append([WKvO, LVAh, False, ''])",
"def Z8Wj(... | [
"0.65746146",
"0.6564853",
"0.64268965",
"0.6310117",
"0.6310117",
"0.6300788",
"0.630052",
"0.6296323",
"0.62825495",
"0.62264246",
"0.62100834",
"0.61925566",
"0.61375827",
"0.6098144",
"0.609485",
"0.609485",
"0.60888845",
"0.6072717",
"0.6046992",
"0.59678787",
"0.5927906... | 0.5827923 | 35 |
Infinity norm of a matrix (maximum absolute row sum). | def C1nn(EcVT):
if H4yH.isspmatrix_csr(EcVT) or H4yH.isspmatrix_csc(EcVT):
PGjO = EcVT.__class__((abs(EcVT.data), EcVT.indices, EcVT.indptr), shape=EcVT.shape)
return (PGjO * oyIN.ones(EcVT.shape[1], dtype=EcVT.dtype)).max()
elif H4yH.isspmatrix(EcVT):
return (abs(EcVT) * oyIN.ones(EcVT.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pcoj(EcVT):\n exwG = len(EcVT)\n ZU01 = 0.0\n for YRbF in range(exwG):\n g7Ti = 0.0\n for r845 in range(exwG):\n g7Ti += EcVT[YRbF][r845]\n if abs(g7Ti) > ZU01:\n ZU01 = abs(g7Ti)\n return ZU01",
"def ClE1(YKHO) -> 'float':\n return hBPC.vnl_matrixF_a... | [
"0.8082816",
"0.7084773",
"0.7074489",
"0.6996827",
"0.69185084",
"0.6850727",
"0.68308884",
"0.6827773",
"0.68221706",
"0.6798295",
"0.67316866",
"0.6728948",
"0.6717588",
"0.66668946",
"0.66470116",
"0.6622333",
"0.66132736",
"0.6597777",
"0.6596686",
"0.65734303",
"0.65499... | 0.7587176 | 1 |
Return list of nonzero elements from X (! data, not indices). | def MhAb(EcVT):
if H4yH.isspmatrix(EcVT):
return EcVT.data.tolist()
else:
return [WKvO for Mkmy in EcVT.tolist() for WKvO in Mkmy if WKvO != 0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def waS5(YKHO):\n return tuple([wkG1(Csk6) for Csk6 in YKHO._data.nonzero()])",
"def bbBk(EcVT):\n return oyIN.transpose(oyIN.nonzero(EcVT))",
"def waS5(YKHO):\n return oyIN.nonzero(oyIN.atleast_1d(oyIN.any(YKHO.ndarray, axis=-1)))",
"def DTH_(EcVT):\n _9tk = []\n for YRbF, RDhP in enumerate(E... | [
"0.7056769",
"0.6593355",
"0.6554484",
"0.6540193",
"0.65345347",
"0.65195173",
"0.6452565",
"0.6416951",
"0.6171983",
"0.61191034",
"0.60923773",
"0.6069175",
"0.6036647",
"0.59854186",
"0.59214765",
"0.59114623",
"0.5901374",
"0.58924705",
"0.5864549",
"0.58547574",
"0.5845... | 0.74914676 | 0 |
Cleans up resources and closes connection | def DDI8(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HySU(YKHO):\n YKHO.closeDataConn()",
"def ngVb():\n DpUl.close()\n w2B8.close()",
"def lqVN(YKHO):\n YKHO.connection.close()",
"def fFx9(YKHO):\n YKHO._close_connection()",
"def fFx9(YKHO):\n YKHO.connection.close()",
"def fFx9(YKHO):\n YKHO.connection.close()",
"def DDI8(YKHO)... | [
"0.8543631",
"0.82712644",
"0.8231138",
"0.8228028",
"0.8150306",
"0.8150306",
"0.81433374",
"0.8121857",
"0.8116123",
"0.8110427",
"0.8106041",
"0.8090002",
"0.80838484",
"0.8080581",
"0.8075939",
"0.80701655",
"0.80701655",
"0.8050611",
"0.80418533",
"0.80407983",
"0.802154... | 0.0 | -1 |
Get dataset with given name. Raises ValueError if the specified dataset does not exist. | def s7ch(YKHO, mWFP):
if not mWFP.lower() in YKHO.write:
YKHO.read.add(mWFP.lower())
Ilxn = YKHO.get_dataset_identifier(mWFP)
oxOY = YKHO.datastore.get_dataset(Ilxn)
if oxOY is None:
raise ValueError("unknown dataset '{}'".format(Ilxn))
return oxOY.to_dataframe() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def daKJ(YKHO, mWFP):\n if mWFP not in YKHO._datasetNameMap:\n raise Bx6I.DatasetNameNotFoundException(mWFP)\n return YKHO._datasetNameMap[mWFP]",
"def dD7q(j3aw):\n XlUs = lPhd()\n if j3aw not in XlUs:\n raise Exception('Dataset %s not found. Use list_datasets().' % (j3aw,))\n __n6 ... | [
"0.84100276",
"0.819055",
"0.7962588",
"0.79332656",
"0.7534723",
"0.75099295",
"0.75098276",
"0.7448027",
"0.7429457",
"0.73806435",
"0.73121625",
"0.73076737",
"0.7273389",
"0.7272503",
"0.7252943",
"0.71873677",
"0.70460904",
"0.6990734",
"0.69574106",
"0.69572717",
"0.694... | 0.0 | -1 |
A representation of this object | def wHJl(YKHO):
if YKHO.value is None:
return repr(None)
return repr(str(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return YKHO.to_dict()",
"def wHJl(YKHO):\n return Napc(YKHO)",
"def wHJl(YKHO):\n return str(YKHO.to_dict())",
"def wHJl(YKHO):\n return str(YKHO.to_dict())",
"def wHJl(YKHO):\n return YKHO.__represent()",
"def wHJl(YKHO):\n return YKHO.__represent()",
"def Napc(YKHO... | [
"0.84090257",
"0.8367107",
"0.83246285",
"0.83246285",
"0.8168832",
"0.8168832",
"0.8151959",
"0.8136748",
"0.8136748",
"0.8136748",
"0.8136748",
"0.8136748",
"0.8136748",
"0.81157815",
"0.809278",
"0.80600613",
"0.80600613",
"0.80600613",
"0.80600613",
"0.8039895",
"0.803989... | 0.0 | -1 |
Return the value currently associated with this variable | def ZPOP(YKHO):
return int(YKHO.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n return YKHO._variable.get()",
"def Zmkp(YKHO):\n return YKHO.current_value",
"def BWXx(YKHO):\n if isinstance(YKHO._value, iQnE):\n return YKHO._value.value()\n else:\n return YKHO._value",
"def NMoC(YKHO):\n return YKHO._var.get()",
"def NMoC(YKHO):\n retu... | [
"0.82159305",
"0.82106864",
"0.82003605",
"0.81154823",
"0.8091647",
"0.7976908",
"0.7976908",
"0.79598093",
"0.79240113",
"0.7923408",
"0.7918768",
"0.78947407",
"0.787396",
"0.7871165",
"0.7871165",
"0.78562164",
"0.78313935",
"0.7831098",
"0.7828196",
"0.782003",
"0.781272... | 0.0 | -1 |
Return the value currently associated with this variable | def zAg0(YKHO):
if YKHO.value is None:
return str(None)
return YKHO.toStr(YKHO.value) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n return YKHO._variable.get()",
"def Zmkp(YKHO):\n return YKHO.current_value",
"def BWXx(YKHO):\n if isinstance(YKHO._value, iQnE):\n return YKHO._value.value()\n else:\n return YKHO._value",
"def NMoC(YKHO):\n return YKHO._var.get()",
"def NMoC(YKHO):\n retu... | [
"0.82159305",
"0.82106864",
"0.82003605",
"0.81154823",
"0.8091647",
"0.7976908",
"0.7976908",
"0.79598093",
"0.79240113",
"0.7923408",
"0.7918768",
"0.78947407",
"0.787396",
"0.7871165",
"0.7871165",
"0.78562164",
"0.78313935",
"0.7831098",
"0.7828196",
"0.782003",
"0.781272... | 0.0 | -1 |
Checks that this enum is equal to the other, which can be an enum of the same type, a value, or a string. | def xa14(YKHO, Elif):
if isinstance(Elif, exCv):
return Elif == str(YKHO)
return YKHO.value == int(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: Any) -> bool:\n return YKHO is Elif or (isinstance(Elif, Wcw0) and YKHO.value == Elif.value and (YKHO.location == Elif.location))",
"def xa14(YKHO, Elif):\n try:\n return all((YKHO.name == Elif.name, YKHO.value == Elif.value, YKHO.capabilities == Elif.capabilities, YKHO.style ==... | [
"0.7976372",
"0.7189543",
"0.7165216",
"0.714141",
"0.714141",
"0.7063973",
"0.7048772",
"0.7044851",
"0.7041196",
"0.6991483",
"0.6978443",
"0.69774485",
"0.6950844",
"0.6950844",
"0.6950844",
"0.6950844",
"0.6950844",
"0.6897346",
"0.68967414",
"0.6888606",
"0.6888606",
"... | 0.6665177 | 51 |
Checks that this enum is equal to the other, which can be an enum of the same type, a value, or a string. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: Any) -> bool:\n return YKHO is Elif or (isinstance(Elif, Wcw0) and YKHO.value == Elif.value and (YKHO.location == Elif.location))",
"def xa14(YKHO, Elif):\n try:\n return all((YKHO.name == Elif.name, YKHO.value == Elif.value, YKHO.capabilities == Elif.capabilities, YKHO.style ==... | [
"0.7976372",
"0.7189543",
"0.7165216",
"0.714141",
"0.714141",
"0.7063973",
"0.7048772",
"0.7044851",
"0.7041196",
"0.6991483",
"0.6978443",
"0.69774485",
"0.6950844",
"0.6950844",
"0.6950844",
"0.6950844",
"0.6950844",
"0.6897346",
"0.68967414",
"0.6888606",
"0.6888606",
"... | 0.0 | -1 |
Return the official string representation of this object. | def wHJl(YKHO):
return 'Zero matrix' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SnfU(YKHO):\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def vIwR(YKHO) -> str:\n return YKHO._wrapper.string",
"def vIwR(YKH... | [
"0.81250703",
"0.8113324",
"0.8109855",
"0.8104329",
"0.80437535",
"0.8040225",
"0.8040225",
"0.8040225",
"0.7973353",
"0.7935608",
"0.79137266",
"0.78907263",
"0.78808",
"0.78663564",
"0.78599226",
"0.7846966",
"0.78405744",
"0.78373873",
"0.78373873",
"0.783286",
"0.783286"... | 0.0 | -1 |
Return the informal string representation of this object. | def zAg0(YKHO):
return 'Zero{0}'.format(YKHO.shape) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.get_info_string()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def Napc(YKHO):\n return repr(YKHO)",
"def zAg0(YKHO) -> str:\n return YKHO.info()",
"def zAg0(YKHO):\n return YKHO.tostring()",
"def zAg0(YKHO):\n ... | [
"0.818647",
"0.80978346",
"0.80956286",
"0.80927944",
"0.8047166",
"0.80439985",
"0.804007",
"0.7989821",
"0.7988247",
"0.79857177",
"0.79857177",
"0.79857177",
"0.79622126",
"0.796114",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239"... | 0.0 | -1 |
Return self != other. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return n... | [
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"... | 0.0 | -1 |
Return a reference to self. | def uzII(YKHO):
return XTiz.zeros(YKHO.shape) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAOR(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def Extv(YKHO):\n return YKHO.__self",
"def Z9rn(YKHO):\n return YKHO",
"def ... | [
"0.80807",
"0.8046896",
"0.8046896",
"0.8046896",
"0.8046896",
"0.8046896",
"0.78624886",
"0.7772982",
"0.7641219",
"0.7641219",
"0.7522969",
"0.7512374",
"0.73510927",
"0.73510927",
"0.73510927",
"0.7270911",
"0.7270911",
"0.7270911",
"0.726241",
"0.7226647",
"0.7226647",
... | 0.0 | -1 |
Return the official string representation of this object. | def wHJl(YKHO):
return 'Dense matrix\n' + str(YKHO._m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SnfU(YKHO):\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def vIwR(YKHO) -> str:\n return YKHO._wrapper.string",
"def vIwR(YKH... | [
"0.81250703",
"0.8113324",
"0.8109855",
"0.8104329",
"0.80437535",
"0.8040225",
"0.8040225",
"0.8040225",
"0.7973353",
"0.7935608",
"0.79137266",
"0.78907263",
"0.78808",
"0.78663564",
"0.78599226",
"0.7846966",
"0.78405744",
"0.78373873",
"0.78373873",
"0.783286",
"0.783286"... | 0.0 | -1 |
Return the informal string representation of this object. | def zAg0(YKHO):
return 'Dense{0}'.format(YKHO.shape) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.get_info_string()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def Napc(YKHO):\n return repr(YKHO)",
"def zAg0(YKHO) -> str:\n return YKHO.info()",
"def zAg0(YKHO):\n return YKHO.tostring()",
"def zAg0(YKHO):\n ... | [
"0.818647",
"0.80978346",
"0.80956286",
"0.80927944",
"0.8047166",
"0.80439985",
"0.804007",
"0.7989821",
"0.7988247",
"0.79857177",
"0.79857177",
"0.79857177",
"0.79622126",
"0.796114",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239"... | 0.0 | -1 |
Return self != other. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return n... | [
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"... | 0.0 | -1 |
Return a reference to self. | def uzII(YKHO):
return YKHO._m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAOR(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def Extv(YKHO):\n return YKHO.__self",
"def Z9rn(YKHO):\n return YKHO",
"def ... | [
"0.80807",
"0.8046896",
"0.8046896",
"0.8046896",
"0.8046896",
"0.8046896",
"0.78624886",
"0.7772982",
"0.7641219",
"0.7641219",
"0.7522969",
"0.7512374",
"0.73510927",
"0.73510927",
"0.73510927",
"0.7270911",
"0.7270911",
"0.7270911",
"0.726241",
"0.7226647",
"0.7226647",
... | 0.0 | -1 |
Return the official string representation of this object. | def wHJl(YKHO):
return 'Low-rank matrix' + '\nLeft matrix\n' + str(YKHO.U._m) + '\nRight matrix\n' + str(YKHO.V._m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SnfU(YKHO):\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def vIwR(YKHO) -> str:\n return YKHO._wrapper.string",
"def vIwR(YKH... | [
"0.81250703",
"0.8113324",
"0.8109855",
"0.8104329",
"0.80437535",
"0.8040225",
"0.8040225",
"0.8040225",
"0.7973353",
"0.7935608",
"0.79137266",
"0.78907263",
"0.78808",
"0.78663564",
"0.78599226",
"0.7846966",
"0.78405744",
"0.78373873",
"0.78373873",
"0.783286",
"0.783286"... | 0.0 | -1 |
Return the informal string representation of this object. | def zAg0(YKHO):
return 'LowRank({0[0]}, {0[1]}, {1})'.format(YKHO.shape, YKHO.rank) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.get_info_string()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def Napc(YKHO):\n return repr(YKHO)",
"def zAg0(YKHO) -> str:\n return YKHO.info()",
"def zAg0(YKHO):\n return YKHO.tostring()",
"def zAg0(YKHO):\n ... | [
"0.818647",
"0.80978346",
"0.80956286",
"0.80927944",
"0.8047166",
"0.80439985",
"0.804007",
"0.7989821",
"0.7988247",
"0.79857177",
"0.79857177",
"0.79857177",
"0.79622126",
"0.796114",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239"... | 0.0 | -1 |
Return result of formatted addition for two LR matrices. | def OdAt(YKHO, Elif):
oi5X, v46t = XTiz.linalg.qr(XTiz.hstack([YKHO.U, Elif.U]))
dYUu, J2s5 = XTiz.linalg.qr(XTiz.hstack([YKHO.V.T, Elif.V.T]))
KkY2, KCHu, hax7 = XTiz.linalg.svd(XTiz.matmul(v46t, J2s5.T))
if YKHO.eps:
fdMZ = 1
while KCHu[fdMZ] >= YKHO.eps:
fdMZ += 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bstr(jzdc, Fg_i):\n for Mkmy in range(len(jzdc)):\n for Z9rn in range(len(jzdc[Mkmy])):\n jzdc[Mkmy][Z9rn] += Fg_i[Mkmy][Z9rn]\n print('{:2d}'.format(jzdc[Mkmy][Z9rn]), end='')\n print()",
"def H2v5(YKHO, r8hN):\n for YKHO.nrows in range(len(r8hN)):\n for YKHO... | [
"0.68929964",
"0.64614207",
"0.64341855",
"0.6378476",
"0.6328177",
"0.6323834",
"0.62886494",
"0.61427265",
"0.61082137",
"0.6098921",
"0.60857636",
"0.60813314",
"0.6080981",
"0.60785866",
"0.6073335",
"0.6069851",
"0.606216",
"0.6044212",
"0.60369295",
"0.60232055",
"0.601... | 0.6869178 | 1 |
Return self != other. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return n... | [
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"... | 0.0 | -1 |
Return a reference to self. | def uzII(YKHO):
return (YKHO.U * YKHO.V).__array__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAOR(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def Extv(YKHO):\n return YKHO.__self",
"def Z9rn(YKHO):\n return YKHO",
"def ... | [
"0.80807",
"0.8046896",
"0.8046896",
"0.8046896",
"0.8046896",
"0.8046896",
"0.78624886",
"0.7772982",
"0.7641219",
"0.7641219",
"0.7522969",
"0.7512374",
"0.73510927",
"0.73510927",
"0.73510927",
"0.7270911",
"0.7270911",
"0.7270911",
"0.726241",
"0.7226647",
"0.7226647",
... | 0.0 | -1 |
Return the official string representation of this object. | def wHJl(YKHO):
yvT9 = 'Block low-rank matrix'
for d6pt in XTiz.ndindex(YKHO.nb):
yvT9 += '\n{0}: {1}'.format(d6pt, repr(YKHO._b[d6pt]))
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SnfU(YKHO):\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def gTzM(YKHO):\n return YKHO.__str__()",
"def vIwR(YKHO) -> str:\n return YKHO._wrapper.string",
"def vIwR(YKH... | [
"0.81250703",
"0.8113324",
"0.8109855",
"0.8104329",
"0.80437535",
"0.8040225",
"0.8040225",
"0.8040225",
"0.7973353",
"0.7935608",
"0.79137266",
"0.78907263",
"0.78808",
"0.78663564",
"0.78599226",
"0.7846966",
"0.78405744",
"0.78373873",
"0.78373873",
"0.783286",
"0.783286"... | 0.0 | -1 |
Return the informal string representation of this object. | def zAg0(YKHO):
yvT9 = 'BlockLowRank{0}'.format(YKHO.shape)
for d6pt in XTiz.ndindex(YKHO.nb):
yvT9 += '\n{0}: {1}'.format(d6pt, str(YKHO._b[d6pt]))
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.get_info_string()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def Napc(YKHO):\n return repr(YKHO)",
"def zAg0(YKHO) -> str:\n return YKHO.info()",
"def zAg0(YKHO):\n return YKHO.tostring()",
"def zAg0(YKHO):\n ... | [
"0.818647",
"0.80978346",
"0.80956286",
"0.80927944",
"0.8047166",
"0.80439985",
"0.804007",
"0.7989821",
"0.7988247",
"0.79857177",
"0.79857177",
"0.79857177",
"0.79622126",
"0.796114",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239",
"0.7958239"... | 0.0 | -1 |
Return self other (Vector object). | def J0Ls(YKHO, Elif):
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return lNLu(*YKHO)",
"def qjfR(YKHO, Elif: Vector) -> lNLu:\n return lNLu(YKHO._x - Elif._x, YKHO._y - Elif._y)",
"def eRcp(YKHO, Elif):\n if isinstance(Elif, lNLu):\n WKvO = YKHO.data[0] + Elif.data[0]\n return lNLu(WKvO)\n else:\n raise TypeError('You can on... | [
"0.7865758",
"0.75625736",
"0.7532455",
"0.7522096",
"0.74670225",
"0.7464836",
"0.7453189",
"0.7409304",
"0.7355796",
"0.7355796",
"0.7355796",
"0.7348992",
"0.7348646",
"0.73458374",
"0.7340225",
"0.7333875",
"0.73220617",
"0.7316055",
"0.7301352",
"0.72970015",
"0.72804713... | 0.0 | -1 |
Return other (Vector object) self. | def _Gk0(YKHO, Elif):
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return lNLu(*YKHO)",
"def qjfR(YKHO, Elif: Vector) -> lNLu:\n return lNLu(YKHO._x - Elif._x, YKHO._y - Elif._y)",
"def qjfR(YKHO, Elif):\n if isinstance(Elif, lNLu):\n return lNLu(YKHO.x - Elif.x, YKHO.y - Elif.y, YKHO.z - Elif.z)\n else:\n return lNLu(YKHO.x - Elif,... | [
"0.7800713",
"0.76866853",
"0.76632077",
"0.7531429",
"0.75288403",
"0.75014937",
"0.7493818",
"0.7456832",
"0.743773",
"0.7435832",
"0.73975724",
"0.7391728",
"0.7381705",
"0.7374107",
"0.7346998",
"0.7302205",
"0.7285039",
"0.72771215",
"0.72771215",
"0.72771215",
"0.726462... | 0.0 | -1 |
Return self != other. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return n... | [
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"0.9095513",
"... | 0.0 | -1 |
Return a reference to self. | def uzII(YKHO):
return YKHO._b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KAOR(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def nrOS(YKHO):\n return YKHO",
"def Extv(YKHO):\n return YKHO.__self",
"def Z9rn(YKHO):\n return YKHO",
"def ... | [
"0.80807",
"0.8046896",
"0.8046896",
"0.8046896",
"0.8046896",
"0.8046896",
"0.78624886",
"0.7772982",
"0.7641219",
"0.7641219",
"0.7522969",
"0.7512374",
"0.73510927",
"0.73510927",
"0.73510927",
"0.7270911",
"0.7270911",
"0.7270911",
"0.726241",
"0.7226647",
"0.7226647",
... | 0.0 | -1 |
Return a copy of self. | def jth9(YKHO):
return GR6j(YKHO._b.copy()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return YKHO",
"def jth9(YKHO):\n return jth9(YKHO)",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def jth9(YKHO):\n return YKHO.__copy__()",
"def FzJk(YKHO):\n return YKHO",
... | [
"0.90123576",
"0.89053416",
"0.88765144",
"0.88765144",
"0.88765144",
"0.88765144",
"0.8866463",
"0.8866463",
"0.8866463",
"0.8866463",
"0.8866463",
"0.8788827",
"0.8788827",
"0.875341",
"0.875341",
"0.875341",
"0.875341",
"0.875341",
"0.875341",
"0.8724741",
"0.8724741",
"... | 0.0 | -1 |
Return self as ``Dense`` object. | def NG8_(YKHO):
return l6ZH(XTiz.block(YKHO._b.tolist())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NG8_(YKHO):\n raise NotImplementedError",
"def A0RF(YKHO, begE=None):\n return NG8_(YKHO.feature, YKHO.depth, YKHO.thick, YKHO.shape[2], YKHO.feature.device)",
"def NG8_(YKHO):\n if YKHO.rep.fmt == 'dense':\n return YKHO\n return YKHO.from_rep(lxjx.to_ddm(YKHO.rep))",
"def NG8_(YKHO) -... | [
"0.7302263",
"0.72951317",
"0.7163171",
"0.70914096",
"0.7004947",
"0.69141424",
"0.6852757",
"0.6844573",
"0.6654152",
"0.6639979",
"0.6620732",
"0.6599525",
"0.6518972",
"0.6494051",
"0.64568853",
"0.6385501",
"0.62875587",
"0.62475306",
"0.6221135",
"0.62171036",
"0.619641... | 0.7448845 | 0 |
Sets the city of this OrganizationAddressV30Rc2. | def j5sA(YKHO, j5sA):
if j5sA is None:
raise ValueError('Invalid value for `city`, must not be `None`')
YKHO._city = j5sA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MFwm(YKHO, j5sA: str):\n YKHO.__city = j5sA\n return YKHO",
"def Eg4e(YKHO, nPrm):\n YKHO.city = nPrm",
"def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA",
"def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA",
"def j5sA(YKHO, j5sA):\n YKHO._city = j5sA",
"def j5sA(YKHO, j5sA):\n YKHO._... | [
"0.72879505",
"0.7170032",
"0.71115357",
"0.71115357",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",
"0.70778286",... | 0.6938145 | 29 |
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 |
Sets the parent of this ScheduleTimeline. | def _AKB(YKHO, _AKB):
YKHO._parent = _AKB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJu_(YKHO, _AKB):\n YKHO.parent = _AKB",
"def bCkD(YKHO, _AKB):\n YKHO.parent = _AKB",
"def bCkD(YKHO, _AKB):\n YKHO.parent = _AKB",
"def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB",
"def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB",
"def tJu_(YKHO, _AKB):\n YKHO._parent = _AKB",
"def K0... | [
"0.7464594",
"0.74641347",
"0.74641347",
"0.7463304",
"0.7463304",
"0.7463304",
"0.74520034",
"0.7449114",
"0.7400863",
"0.7399567",
"0.7332366",
"0.73005193",
"0.72841823",
"0.7187385",
"0.71646667",
"0.70941186",
"0.7057969",
"0.7043015",
"0.69785446",
"0.69571614",
"0.6944... | 0.7182141 | 14 |
Sets the start_date of this ScheduleTimeline. | def kepv(YKHO, kepv):
YKHO._start_date = kepv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YFxH(YKHO, kepv):\n YKHO._start_date = kepv",
"def YFxH(YKHO, kepv):\n YKHO.__start_date = kepv",
"def kepv(YKHO, kepv: datetime):\n if kepv is None:\n raise ValueError('Invalid value for `start_date`, must not be `None`')\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n if kepv... | [
"0.8543112",
"0.84789807",
"0.8415942",
"0.8304095",
"0.79950154",
"0.77427536",
"0.7683309",
"0.7683309",
"0.7683309",
"0.7683309",
"0.7683309",
"0.766505",
"0.7502515",
"0.74066323",
"0.7357069",
"0.73536783",
"0.70114166",
"0.69431096",
"0.6856293",
"0.68458325",
"0.684583... | 0.8163452 | 9 |
Sets the end_date of this ScheduleTimeline. | def KhBf(YKHO, KhBf):
YKHO._end_date = KhBf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eiFi(YKHO, eiFi: datetime):\n YKHO._enddate = eiFi",
"def KhBf(YKHO, KhBf: datetime):\n if KhBf is None:\n raise ValueError('Invalid value for `end_date`, must not be `None`')\n YKHO._end_date = KhBf",
"def j_6u(YKHO, j_6u):\n YKHO._schedule_end_date = j_6u",
"def ddKN(YKHO, ddKN):\n ... | [
"0.8220262",
"0.82150054",
"0.8176648",
"0.7991374",
"0.7991374",
"0.7991374",
"0.7655109",
"0.7547676",
"0.7369417",
"0.73570174",
"0.7290075",
"0.7286725",
"0.7127876",
"0.7108493",
"0.7054032",
"0.7054032",
"0.7054032",
"0.7054032",
"0.7054032",
"0.7054032",
"0.7054032",
... | 0.8350192 | 4 |
Sets the forwarding_timeline of this ScheduleTimeline. | def nF3D(YKHO, nF3D):
YKHO._forwarding_timeline = nF3D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQlL(YKHO, gPqm: bool):\n YKHO.is_forwarding = gPqm",
"def DoZF(YKHO, Plz9):\n YKHO._forwardingFlags = LG17(Plz9) if type(Plz9) is LG17 else LG17()",
"def Nz1I(YKHO, KVH6):\n YKHO.forward = KVH6",
"def LvCQ(YKHO, KVH6):\n YKHO.forwardsegment = KVH6",
"def BqU9(YKHO, BqU9: str):\n BbPm = ... | [
"0.6392345",
"0.6220792",
"0.59279615",
"0.55548525",
"0.5546972",
"0.5340486",
"0.5167133",
"0.5071272",
"0.49263763",
"0.49083358",
"0.4861062",
"0.48440722",
"0.4840939",
"0.48198056",
"0.4803373",
"0.47813642",
"0.47723225",
"0.47292948",
"0.46926734",
"0.46832958",
"0.46... | 0.8785239 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.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 |
Convert a list of numbers into a string, merging consecutive values | def wVNT(T6S7):
if not T6S7:
return ''
T6S7 = sorted(list(T6S7))
def ZxOw(bGaI, FwrK, wNuL, _0fC=1):
"""Add a pair of values, val0 and val1, to the valName list"""
iwVa = None
if isinstance(FwrK, str) and isinstance(wNuL, str):
if FwrK != wNuL:
uv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V3Zn(list):\n hkWs = map(str, list)\n udq7 = ' '.join(hkWs)\n return udq7",
"def hrsK(aO51):\n hkWs = [str(exwG) for exwG in aO51]\n return ''.join(hkWs)",
"def G9p9(vC9B):\n vC9B = list(set(vC9B))\n _CS_ = []\n ugjp = False\n THkp = -2\n while len(vC9B):\n YRbF = vC9B.... | [
"0.6874554",
"0.684646",
"0.68230385",
"0.67388254",
"0.67365897",
"0.66952014",
"0.66570497",
"0.6642149",
"0.66360116",
"0.6543766",
"0.64801043",
"0.6471741",
"0.6451782",
"0.6442297",
"0.64191335",
"0.6412661",
"0.6400221",
"0.6385529",
"0.63801473",
"0.6338569",
"0.63317... | 0.0 | -1 |
create a random string of user defined length | def TDq5(u54L, RBfV=False, LANb=False):
gZgb = vIwR.digits + vIwR.letters
if RBfV:
gZgb += vIwR.punctuation
if LANb:
gZgb += ' '
return ''.join((tuKI.choice(gZgb) for WKvO in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))",
"de... | [
"0.87449473",
"0.8688554",
"0.86265916",
"0.860821",
"0.8598549",
"0.85870576",
"0.8546861",
"0.8539926",
"0.85372055",
"0.853647",
"0.85271764",
"0.8492393",
"0.84797865",
"0.84797865",
"0.847273",
"0.84645027",
"0.84627116",
"0.84554887",
"0.8449662",
"0.84446704",
"0.84393... | 0.0 | -1 |
Read a .env file and load into os.environ. | def ikv7(Sbmk):
if not Hy7s.path.exists(Sbmk):
qmLP.warn("can't read %s - it doesn't exist." % Sbmk)
return None
for G1Hx, Ty9i in bBr3(Sbmk):
Hy7s.environ.setdefault(G1Hx, Ty9i)
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ceHH():\n ObT1 = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))\n LyS3 = Hy7s.path.join(ObT1, 'config.env')\n if Hy7s.path.exists(LyS3):\n print('Importing environment from .env file {}'.format(Hy7s.path.abspath(LyS3)))\n for zFiD in open(LyS3):\n SRYB = zFiD.strip().split('=')\n ... | [
"0.82964593",
"0.8149017",
"0.81101453",
"0.80460155",
"0.79875934",
"0.789421",
"0.7827556",
"0.77989095",
"0.77841717",
"0.77790517",
"0.77657586",
"0.74866664",
"0.74849474",
"0.7483549",
"0.7470151",
"0.74685425",
"0.7394453",
"0.73817456",
"0.73639613",
"0.73276883",
"0.... | 0.6943165 | 33 |
Prior name of load_dotenv function. Deprecated and pending removal If not given a path to a dotenv path, does filthy magic stack backtracking to find manage.py and then find the dotenv. | def f6HG(Sbmk=None):
qmLP.warn('read_dotenv deprecated, use load_dotenv instead')
if Sbmk is None:
qmLP.warn('read_dotenv without an explicit path is deprecated and will be removed soon')
f4IJ = HwRy._getframe()
Sbmk = Hy7s.path.join(Hy7s.path.dirname(f4IJ.f_back.f_code.co_filename), '.e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NzmD():\n Sbmk = gzes(TLI7('backend'), '.env')\n ikv7(Sbmk, override=True)",
"def Gm1W():\n if not Twf1.PIPENV_DONT_LOAD_ENV:\n fJd3 = bNKA.project_directory or '.'\n kWP0 = Twf1.PIPENV_DOTENV_LOCATION or Hy7s.sep.join([fJd3, '.env'])\n if Hy7s.path.isfile(kWP0):\n k8... | [
"0.7572717",
"0.74303794",
"0.7401516",
"0.720079",
"0.7159613",
"0.70030445",
"0.68535125",
"0.6783798",
"0.67803854",
"0.67689395",
"0.64580315",
"0.64576423",
"0.6433554",
"0.6394274",
"0.61926645",
"0.6160372",
"0.61110455",
"0.6026301",
"0.586393",
"0.5823742",
"0.581513... | 0.73698074 | 3 |
Adds or Updates a key/value to the given .env If the .env path given doesn't exist, fails instead of risking creating an orphan .env somewhere in the filesystem | def GxAL(Sbmk, oeXC, iuQW):
oeXC = str(oeXC)
iuQW = str(iuQW).strip("'").strip('"')
if not Hy7s.path.exists(Sbmk):
qmLP.warn("can't write to %s - it doesn't exist." % Sbmk)
return None
Vtzk = U8Lr(bBr3(Sbmk))
Vtzk[oeXC] = iuQW
nyyK = g33r(Sbmk, Vtzk)
return (nyyK, oeXC, iuQW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JY1n(pmON, sOlu, sadl):\n hlel = xxIl(pmON, sOlu)\n hlel.append('%s=%s' % (sOlu, sadl))\n pTBD(pmON, hlel)",
"def X3Fb(YKHO, H5ew, BWXx):\n gP7g.log.info('Adding env variable: %s=%s' % (H5ew, BWXx))\n if not Hy7s.path.exists('/etc/environment.orig'):\n YKHO.run('cp /etc/environment /etc... | [
"0.7694804",
"0.7361072",
"0.71230125",
"0.7106825",
"0.70945126",
"0.70725054",
"0.68152326",
"0.67650396",
"0.6758597",
"0.6686218",
"0.6610858",
"0.65355134",
"0.65204024",
"0.6469078",
"0.64570063",
"0.64547145",
"0.6353928",
"0.6340578",
"0.629678",
"0.6289542",
"0.62823... | 0.70156664 | 6 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.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.8043786 | 68 |
The expiration time of short lived proxy name in unix epoch. | def q_Mu(YKHO) -> float:
return qe4Y.get(YKHO, 'expires_on') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OBx7(YKHO) -> str:\n return qe4Y.get(YKHO, 'expiration_time')",
"def OBx7(YKHO) -> str:\n return qe4Y.get(YKHO, 'expiration_time')",
"def aCSz(YKHO):\n return YKHO._expiration_secs",
"def aCSz(YKHO):\n return YKHO._expiration_secs",
"def OBx7(YKHO) -> float:\n return qe4Y.get(YKHO, 'expi... | [
"0.7167765",
"0.7167765",
"0.6919119",
"0.6919119",
"0.6889956",
"0.68860215",
"0.68502724",
"0.6812806",
"0.6804886",
"0.6803955",
"0.6803955",
"0.6803955",
"0.6791072",
"0.6751676",
"0.6662987",
"0.65700096",
"0.65539336",
"0.6549563",
"0.65241057",
"0.65241057",
"0.6511488... | 0.6369745 | 36 |
Get the relative between a path that contains another path. | def Qth0(mSwx, S3Wb):
INpu = Hy7s.path.dirname(S3Wb)
assert FxuW(mSwx, INpu), '{} not inside {}'.format(S3Wb, mSwx)
return Hy7s.path.relpath(S3Wb, start=mSwx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IBYl(pHGo, G_GJ):\n return BfDw.relative_to(pHGo, G_GJ.rstrip(dyte) + VWe_)",
"def IBYl(YKHO, a1OC):\n if isinstance(YKHO._segments[0], iQnE) and isinstance(a1OC, iQnE):\n T9Iz = a1OC.value()\n iyJO = YKHO._segments[0].value()\n wvau = Hy7s.path.relpath(T9Iz, iyJO)\n if wvau... | [
"0.7803991",
"0.77348655",
"0.7657627",
"0.7641547",
"0.75345594",
"0.74354994",
"0.7403338",
"0.7362824",
"0.73443204",
"0.7340077",
"0.7336944",
"0.7286574",
"0.7285563",
"0.72662807",
"0.72540665",
"0.72494525",
"0.7223682",
"0.7214169",
"0.7213428",
"0.71890026",
"0.71527... | 0.72024536 | 19 |
Returns the Bayer CFA mosaic for a given RGB colourspace array. | def Pivs(swaY, mXDZ='RGGB'):
swaY = oet3(swaY)
A3Vt, yvY1, tjUW = pXpS(swaY)
KJ7i, SDd8, Stqu = v5bj(swaY.shape[0:2], mXDZ)
CaRw = A3Vt * KJ7i + yvY1 * SDd8 + tjUW * Stqu
return CaRw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ihOO(VXjJ, bnaE='rggb'):\n bnaE = bnaE.lower()\n wbvf = oyIN.asarray(c7Wa) / 8\n YyA4 = oyIN.asarray(l8fA) / 8\n D0Ge = oyIN.asarray(i5i4) / 8\n TXqw = oyIN.asarray(JJeD) / 8\n v7dX = V2fX.convolve(VXjJ, wbvf)\n dg7v = V2fX.convolve(VXjJ, YyA4)\n iYf1 = V2fX.convolve(VXjJ, D0Ge)\n Ns... | [
"0.5961827",
"0.5903049",
"0.58633626",
"0.5836684",
"0.5823255",
"0.5769657",
"0.571554",
"0.57028943",
"0.5656546",
"0.55877835",
"0.5531664",
"0.54971445",
"0.54886866",
"0.54733",
"0.5472316",
"0.54379886",
"0.5437056",
"0.54281145",
"0.5413417",
"0.5412497",
"0.53996724"... | 0.64578825 | 0 |
Returns an absolute path to a filename within the intermediary storage directory for uploaded but unprocessed files. | def Fusb(gIsw=None, pi44=None, GPtr=None):
GPtr = GPtr or RhcE()
if not pi44:
pi44 = GPtr.get(iOjD, 'storage_dir')
if not gIsw:
return Y0TB(pi44)
return Y0TB(gzes(pi44, gIsw)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qaEx(Ux0P):\n return Hy7s.sep.join(Hy7s.path.abspath(xAKo).split(Hy7s.sep)[:-5]) + '/data/uploads/' + Ux0P",
"def sx1R(YKHO):\n return pmON.join(YKHO._storage_dir, YKHO.id)",
"def Ux0P(YKHO):\n if YKHO.is_local:\n return YKHO.path.split(Hy7s.sep)[-1]\n else:\n return YKHO.path.spl... | [
"0.73049146",
"0.72877884",
"0.7221362",
"0.7191293",
"0.7157173",
"0.7058555",
"0.7034533",
"0.6952393",
"0.69365203",
"0.69351184",
"0.6913658",
"0.68762064",
"0.68705165",
"0.68307984",
"0.6821439",
"0.6815983",
"0.68147737",
"0.6812359",
"0.67059046",
"0.67059046",
"0.666... | 0.0 | -1 |
Plots rate of change of the loss function. | def LyCH(YKHO, ch6h=1, SkOn=10, VMaP=5, WvBH=(-0.01, 0.01)):
assert ch6h >= 1
Fi7w = [0] * ch6h
for YRbF in range(ch6h, len(YKHO.lrs)):
VVyp = (YKHO.losses[YRbF] - YKHO.losses[YRbF - ch6h]) / ch6h
Fi7w.append(VVyp)
QrM1.ylabel('rate of loss change')
QrM1.xlabel('learning rate (log sc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AQtZ(YKHO):\n QrM1.plot(YKHO.losses)\n QrM1.xlabel('epochs')\n QrM1.ylabel('Loss')\n QrM1.show()",
"def xN5O(N77f, OnWS, mWFP):\n d6pt = [YRbF for YRbF in range(OnWS)]\n QrM1.plot(d6pt, N77f, 'ro')\n QrM1.axis([0, 100, 1000, 7000])\n QrM1.xlabel('Iterations')\n QrM1.ylabel('Loss')\... | [
"0.7491834",
"0.71987766",
"0.7055957",
"0.7005364",
"0.69928813",
"0.6983739",
"0.69520974",
"0.6947179",
"0.6857948",
"0.6831555",
"0.68197584",
"0.67326725",
"0.6727403",
"0.6715562",
"0.67075974",
"0.67010176",
"0.669297",
"0.6691293",
"0.66818917",
"0.6642589",
"0.659614... | 0.659138 | 21 |
Normalize a tensor image with mean and standard deviation. | def NkkI(vhpA, JBMS, M1Jx, LpaZ=False):
if not SG3O(vhpA):
raise TypeError('tensor is not a torch image.')
if not LpaZ:
vhpA = vhpA.clone()
JBMS = ht2j.tensor(JBMS, dtype=ht2j.float32)
M1Jx = ht2j.tensor(M1Jx, dtype=ht2j.float32)
vhpA.sub_(JBMS[:, None, None]).div_(M1Jx[:, None, None... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(VXjJ, JBMS, M1Jx):\n return (VXjJ - JBMS) / M1Jx",
"def l9RK(VXjJ, JBMS, M1Jx):\n VXjJ = VXjJ * 255.0\n VXjJ = (VXjJ - JBMS[:, None, None]) / M1Jx[:, None, None]\n return VXjJ",
"def NkkI(Yw_3):\n JBMS = Yw_3.mean(axis=0)\n ee6l = Yw_3.std(axis=0)\n x613 = (Yw_3 - JBMS) / ee6l\n ... | [
"0.83903116",
"0.80170333",
"0.79787654",
"0.79531956",
"0.7948758",
"0.7948071",
"0.7899666",
"0.7894329",
"0.78842294",
"0.7875258",
"0.7865221",
"0.78636324",
"0.7861878",
"0.783395",
"0.7832739",
"0.77996016",
"0.77887636",
"0.77622336",
"0.7751333",
"0.7745017",
"0.77374... | 0.8066772 | 1 |
A GET request to delete a tenant by tenant id | def KE21():
mLXZ = QePW.args.get('id')
Mkmy = N1p7.callproc('DELETE_TENANT_PROC', [mLXZ])
hAVj.commit()
return pz3A(Mkmy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d8Rs(mLXZ=None, mWFP=None, z39Z=None, **A2US):\n kzhy = Jpbe(z39Z, **A2US)\n if mWFP:\n for ehIZ in getattr(kzhy, GNTX, None).list():\n if ehIZ.name == mWFP:\n mLXZ = ehIZ.id\n break\n if not mLXZ:\n return {'Error': 'Unable to resolve tenant id'}... | [
"0.7844266",
"0.7836028",
"0.7219377",
"0.6874664",
"0.6791274",
"0.67492783",
"0.6512846",
"0.644447",
"0.62758446",
"0.62680626",
"0.6258366",
"0.62577",
"0.6252387",
"0.6252387",
"0.6239401",
"0.6221931",
"0.6218609",
"0.6160351",
"0.6147497",
"0.61167854",
"0.61077696",
... | 0.8360063 | 0 |
A GET request to get the current committe members. | def mgyg():
Pe9W = "\n SELECT \n c.candidate_id,\n t.first_name || ' ' || t.last_name as full_name,\n c.num_supporters\n FROM candidates c, tenant t\n WHERE status = 'elected'\n AND t.tenant_id = c.candidate_id\n "
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CMgi(YKHO):\n return YKHO.request('members', method='get').json()",
"def NMoC(YKHO, QePW):\n DW23 = mv1M.objects.all()\n Q5RD = hq_r(DW23, many=True).data\n nPrm = {}\n nPrm['ok'] = True\n nPrm['members'] = Q5RD\n return oGir(nPrm)",
"def WNYI(YKHO):\n Eorv = '{0}members.json'.forma... | [
"0.7642797",
"0.7080426",
"0.69947636",
"0.68156046",
"0.6593624",
"0.65049815",
"0.6472066",
"0.6415467",
"0.6385286",
"0.6363327",
"0.6348855",
"0.6326741",
"0.6326741",
"0.63239455",
"0.63137215",
"0.6312041",
"0.63044757",
"0.62907624",
"0.6261081",
"0.6256994",
"0.625386... | 0.0 | -1 |
Allow access to this view only for users with the role "Admin". | def HsJG(YKHO):
return c5ow.has_role('Admin') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKMP(YKHO):\n return Tf5Y.Roles.is_super_admin()",
"def _Kb1(YKHO):\n return YKHO.role == YKHO.PermissionChoice.ADMIN or YKHO.user.is_staff",
"def HsJG(YKHO):\n return c5ow.has_role('admin')",
"def _Kb1(YKHO):\n return YKHO.role == YKHO.IS_ADMIN",
"def l4un():\n if not c5ow.is_admin:\n ... | [
"0.76010805",
"0.73884344",
"0.73149043",
"0.730625",
"0.7240764",
"0.7240764",
"0.7240764",
"0.72182786",
"0.7181375",
"0.7165082",
"0.7134743",
"0.71197796",
"0.7116707",
"0.7106198",
"0.70943546",
"0.70446414",
"0.7032227",
"0.7032227",
"0.7032227",
"0.6997572",
"0.6992692... | 0.7302339 | 4 |
Return a sorted array of the nonzero labels in the segmentation image. | def lz2s(nPrm):
return oyIN.unique(nPrm[nPrm != 0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TcVj(YKHO):\n return oyIN.array(sorted(set(range(0, YKHO.max_label + 1)).difference(oyIN.insert(YKHO.labels, 0, 0))))",
"def xZ1s(LNo8):\n VXjJ = MVjK.GetArrayFromImage(LNo8)\n VXjJ = VXjJ.flatten()\n Crrw = []\n for WKvO in VXjJ:\n if WKvO not in Crrw:\n Crrw.append(WKvO)\n ... | [
"0.7083889",
"0.66076225",
"0.64591795",
"0.6453972",
"0.64117455",
"0.64045346",
"0.6388053",
"0.62972486",
"0.6257052",
"0.62490666",
"0.62323177",
"0.6201573",
"0.61759895",
"0.6150911",
"0.61450595",
"0.6118782",
"0.6099179",
"0.60907555",
"0.6087105",
"0.6083795",
"0.607... | 0.73721635 | 0 |
A list of `Segment` objects. The list starts with the nonzero label. The returned list has a length equal to the number of labels and matches the order of the ``labels`` attribute. | def PXIy(YKHO):
PXIy = []
if of8m and a6Vm:
for UXqs, AfXr, cviu, f0tD, j5tF in zip(YKHO.labels, YKHO.slices, YKHO.bbox, YKHO.areas, YKHO.polygons):
PXIy.append(GoRQ(YKHO.data, UXqs, AfXr, cviu, f0tD, polygon=j5tF))
else:
for UXqs, AfXr, cviu, f0tD in zip(YKHO.labels, YKHO.slices... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Crrw():\n return list(uzmd)",
"def EKkb(YKHO):\n\n def ANg2():\n \"\"\"\n Turn sentences list into labels list\n \"\"\"\n for yAmx in YKHO.sentences:\n yield [ZfUD[1] for ZfUD in yAmx]\n if YKHO._label_list is None:\n YKHO._label_list = list(eNCK... | [
"0.6275228",
"0.6191835",
"0.6156846",
"0.6100862",
"0.60759866",
"0.602154",
"0.60157937",
"0.60016483",
"0.5859253",
"0.5859253",
"0.5843691",
"0.58422065",
"0.5833676",
"0.5805375",
"0.58025044",
"0.57584035",
"0.572975",
"0.57265544",
"0.5673467",
"0.5666224",
"0.5664464"... | 0.5802137 | 15 |
The shape of the segmentation array. | def ROpF(YKHO):
return YKHO._data.shape | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROpF(YKHO):\n return YKHO.__data[0].shape",
"def ROpF(YKHO):\n return YKHO.__data.shape",
"def ROpF(YKHO):\n return YKHO.data.shape",
"def ROpF(YKHO):\n return YKHO.data.shape",
"def ROpF(YKHO):\n return YKHO.data.shape",
"def ROpF(YKHO):\n return YKHO.data.shape",
"def ROpF(YKHO)... | [
"0.77064526",
"0.77025735",
"0.7680186",
"0.7680186",
"0.7680186",
"0.7680186",
"0.7680186",
"0.7680186",
"0.76793414",
"0.7636859",
"0.7615203",
"0.75850713",
"0.7580549",
"0.7576309",
"0.75721395",
"0.75486743",
"0.7418436",
"0.74104893",
"0.74093133",
"0.7353448",
"0.73497... | 0.7603503 | 11 |
The maximum label in the segmentation array. | def iLWF(YKHO):
if YKHO.nlabels == 0:
return 0
return oyIN.max(YKHO.labels) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B3or(YKHO):\n _Ktc = oyIN.zeros(YKHO.numUniqueLabels, dtype=int)\n for UXqs in oyIN.unique(YKHO.label4Classes)[0:]:\n _Ktc[UXqs - 1] = oyIN.count_nonzero(YKHO.label4Classes == UXqs)\n return oyIN.where(_Ktc == oyIN.amax(_Ktc))[0] + 1",
"def a1UY(YKHO, jDK_=None):\n if jDK_ is None:\n ... | [
"0.7732035",
"0.76168764",
"0.75264984",
"0.74865353",
"0.73433656",
"0.7342083",
"0.72138786",
"0.7194015",
"0.7158272",
"0.7057483",
"0.7016156",
"0.6970429",
"0.6950894",
"0.6950894",
"0.6950894",
"0.6949755",
"0.68929946",
"0.68282133",
"0.6795832",
"0.6787778",
"0.673704... | 0.89087427 | 0 |
A list of tuples, where each tuple contains two slices representing the minimal box that contains the labeled region. The list starts with the nonzero label. The returned list has a length equal to the number of labels and matches the order of the ``labels`` attribute. | def SuPp(YKHO):
return [AfXr for AfXr in YKHO._raw_slices if AfXr is not None] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S2LR(UFNG, xfec):\n HwLq = oyIN.unique(UFNG).tolist()\n HwLq.remove(0)\n aevO = []\n for OAgx in HwLq:\n b4jU = set(xfec[UFNG == OAgx])\n assert not len(b4jU) == 0\n MxXY = list(b4jU)[0]\n aevO.append((OAgx, MxXY))\n return aevO",
"def Crrw(YKHO):\n if '_raw_slic... | [
"0.6578099",
"0.654943",
"0.65445125",
"0.6440229",
"0.6394353",
"0.6373871",
"0.62743545",
"0.62574285",
"0.6224765",
"0.61903733",
"0.617261",
"0.6172495",
"0.6167693",
"0.61480415",
"0.6137936",
"0.6129417",
"0.6126251",
"0.61008435",
"0.60792637",
"0.60778946",
"0.6076351... | 0.0 | -1 |
The area (in pixel2) of the background (label=0) region. | def UJWT(YKHO):
return YKHO._data.size - oyIN.count_nonzero(YKHO._data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n return YKHO.h * YKHO.w",
"def f0tD(YKHO):\n return YKHO.__height * YKHO.__width",
"def f0tD(YKHO):\n return YKHO.__height * YKHO.__width",
"def f0tD(YKHO):\n return YKHO.height * YKHO.width",
"def f0tD(YKHO):\n return YKHO.height * YKHO.width",
"def f0tD(YKHO):\n retur... | [
"0.70194817",
"0.68693244",
"0.68693244",
"0.6858451",
"0.6858451",
"0.6858451",
"0.6858451",
"0.6827753",
"0.6804625",
"0.6784827",
"0.67694885",
"0.67694885",
"0.67625225",
"0.67625225",
"0.67625225",
"0.6743558",
"0.6738958",
"0.6738958",
"0.6738958",
"0.6738958",
"0.67389... | 0.7534871 | 0 |
A 1D array of areas (in pixel2) of the nonzero labeled regions. The `~numpy.ndarray` starts with the nonzero label. The returned array has a length equal to the number of labels and matches the order of the ``labels`` attribute. | def ILBk(YKHO):
ILBk = []
for UXqs, SuPp in zip(YKHO.labels, YKHO.slices):
ILBk.append(oyIN.count_nonzero(YKHO._data[SuPp] == UXqs))
return oyIN.array(ILBk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_W8(YKHO, Crrw):\n or8S = YKHO.get_indices(oyIN.atleast_1d(Crrw))\n return YKHO.areas[or8S]",
"def fIsm(Crrw):\n EaWK = oyIN.zeros((10, len(Crrw)))\n for nWi7, UXqs in enumerate(Crrw):\n EaWK[UXqs][nWi7] = 1\n return EaWK",
"def r5F7(Crrw):\n mNSi = oyIN.zeros((Crrw.shape[0], 8))\... | [
"0.7035228",
"0.67038447",
"0.65101874",
"0.6328957",
"0.62375385",
"0.6224975",
"0.616612",
"0.6163171",
"0.612973",
"0.6042408",
"0.5957768",
"0.5917155",
"0.585042",
"0.5842302",
"0.5791705",
"0.5784825",
"0.5755494",
"0.57483995",
"0.5735554",
"0.57286626",
"0.57285064",
... | 0.72485906 | 0 |
The area (in pixel2) of the region for the input label. | def sAdl(YKHO, UXqs):
return YKHO.get_areas(UXqs)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n return YKHO.h * YKHO.w",
"def f0tD(YKHO):\n return YKHO.height * YKHO.width",
"def f0tD(YKHO):\n return YKHO.height * YKHO.width",
"def f0tD(YKHO):\n return YKHO.height * YKHO.width",
"def f0tD(YKHO):\n return YKHO.height * YKHO.width",
"def f0tD(YKHO):\n return YKHO._... | [
"0.763385",
"0.7631551",
"0.7631551",
"0.7631551",
"0.7631551",
"0.76171476",
"0.76171476",
"0.7597976",
"0.7597563",
"0.7586153",
"0.75825495",
"0.75825495",
"0.75528634",
"0.75474375",
"0.75474375",
"0.75474375",
"0.7539876",
"0.7538892",
"0.7538892",
"0.7538892",
"0.753889... | 0.7332694 | 90 |
Boolean value indicating whether or not the nonzero labels in the segmentation array are consecutive and start from 1. | def MSbe(YKHO):
if YKHO.nlabels == 0:
return False
return YKHO.labels[-1] - YKHO.labels[0] + 1 == YKHO.nlabels and YKHO.labels[0] == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yo74(fuBA):\n TFPw = len(oyIN.unique(fuBA[fuBA != oyIN.array(-1)]))\n if max(fuBA) >= TFPw:\n return False\n return True",
"def eRwN(YKHO):\n return bool(len(YKHO.segments))",
"def yYge(YKHO):\n return all((YKHO[YRbF].end == YKHO[YRbF + 1].start for YRbF in range(len(YKHO) - 1)))",
... | [
"0.7010561",
"0.6436444",
"0.6415712",
"0.6388977",
"0.6250442",
"0.61802495",
"0.6087943",
"0.6059617",
"0.6029475",
"0.59260553",
"0.5925172",
"0.59192574",
"0.589267",
"0.5877356",
"0.5876962",
"0.58599746",
"0.5855271",
"0.5845498",
"0.58440965",
"0.5795828",
"0.57931757"... | 0.81513107 | 0 |