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 |
|---|---|---|---|---|---|---|
Sets the annual_heating_cost_in_pounds of this AdditionalFeatures. | def ARWB(YKHO, ARWB):
YKHO._annual_heating_cost_in_pounds = ARWB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JYqc(YKHO, JYqc):\n YKHO._annual_hot_water_cost_in_pounds = JYqc",
"def JzVh(YKHO, JzVh):\n YKHO._annual_lighting_cost_in_pounds = JzVh",
"def NoRa(YKHO):\n hI0L = YKHO.diesel_prices + YKHO.cd['heating fuel premium']\n YKHO.annual_heating_savings = YKHO.reduction_diesel_used * hI0L",
"def NoR... | [
"0.7388474",
"0.6862976",
"0.59728867",
"0.5376974",
"0.5345229",
"0.5297986",
"0.5190811",
"0.5188631",
"0.5119922",
"0.5081771",
"0.50787556",
"0.50479627",
"0.50388014",
"0.50256276",
"0.49889365",
"0.49553746",
"0.49267343",
"0.4907583",
"0.48827207",
"0.48795566",
"0.487... | 0.847852 | 0 |
Sets the annual_hot_water_cost_in_pounds of this AdditionalFeatures. | def JYqc(YKHO, JYqc):
YKHO._annual_hot_water_cost_in_pounds = JYqc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ARWB(YKHO, ARWB):\n YKHO._annual_heating_cost_in_pounds = ARWB",
"def JzVh(YKHO, JzVh):\n YKHO._annual_lighting_cost_in_pounds = JzVh",
"def vfJA(YKHO, vfJA):\n YKHO._cargo_water = vfJA",
"def SVHK(YKHO) -> None:\n HQEm = YKHO.array.shape[-1]\n eiby = len(YKHO.array.year.values)\n if HQ... | [
"0.7188057",
"0.6531353",
"0.5473915",
"0.52946043",
"0.51886946",
"0.5110022",
"0.506461",
"0.50551677",
"0.5053791",
"0.504716",
"0.5011629",
"0.5000343",
"0.49592116",
"0.49584126",
"0.49444562",
"0.4944142",
"0.49421972",
"0.49002343",
"0.48932138",
"0.4882531",
"0.484439... | 0.8700374 | 0 |
Sets the annual_lighting_cost_in_pounds of this AdditionalFeatures. | def JzVh(YKHO, JzVh):
YKHO._annual_lighting_cost_in_pounds = JzVh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ARWB(YKHO, ARWB):\n YKHO._annual_heating_cost_in_pounds = ARWB",
"def JYqc(YKHO, JYqc):\n YKHO._annual_hot_water_cost_in_pounds = JYqc",
"def MBUb(YKHO, MBUb):\n YKHO._price_incl_tax = MBUb",
"def aAT8(YKHO, aAT8):\n YKHO._current_api_cost = aAT8",
"def _IVh(YKHO, _IVh):\n if _IVh is Non... | [
"0.6885476",
"0.646175",
"0.5166921",
"0.51460433",
"0.5105837",
"0.50874466",
"0.5086904",
"0.48893318",
"0.48871922",
"0.4864471",
"0.48582357",
"0.48044312",
"0.47992",
"0.47737738",
"0.47731444",
"0.47694278",
"0.47639585",
"0.47530136",
"0.4731688",
"0.4727233",
"0.46955... | 0.8697074 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, b1Ws):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Onehot encoded tensor of string | def aqFJ(str, QIY9, u71k=True, PGJz=True):
zUkm = len(str) + 1 if u71k else len(str)
vhpA = ht2j.zeros(1, zUkm, len(QIY9))
for BDwY, sZqf in enumerate(str):
if sZqf in QIY9:
vhpA[0, BDwY, QIY9[sZqf]] = 1
elif PGJz:
vhpA[0, BDwY, QIY9[EDh6]] = 1
if u71k:
vh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpzK(YKHO, GIN8):\n GIN8 = YKHO.text_to_int(GIN8)\n GIN8 = iQnE(ht2j.tensor(GIN8))\n GIN8 = ht2j.nn.functional.one_hot(GIN8, len(YKHO.index_map))\n return GIN8.transpose(0, 1)",
"def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r8... | [
"0.81329143",
"0.7836819",
"0.7769942",
"0.7740352",
"0.7671784",
"0.76670223",
"0.7609004",
"0.7585184",
"0.75791216",
"0.756206",
"0.7525315",
"0.75058067",
"0.7494086",
"0.747759",
"0.74726266",
"0.7472051",
"0.74386954",
"0.74347407",
"0.742705",
"0.7375787",
"0.73711103"... | 0.0 | -1 |
Onehot encoded tensor of list of words | def ZSDD(V22M, xJbZ, u71k=True, ptpO=True, PGJz=True):
if type(V22M) != list:
raise Exception('Expected a list (not a string etc)')
zUkm = len(V22M) + 1 if u71k else len(V22M)
vhpA = ht2j.zeros(1, zUkm, len(xJbZ))
for YRbF, yzQ0 in enumerate(V22M):
if yzQ0 in xJbZ:
vhpA[0, YR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpzK(YKHO, GIN8):\n GIN8 = YKHO.text_to_int(GIN8)\n GIN8 = iQnE(ht2j.tensor(GIN8))\n GIN8 = ht2j.nn.functional.one_hot(GIN8, len(YKHO.index_map))\n return GIN8.transpose(0, 1)",
"def GpPk(KCHu):\n all = []\n for Z9rn in KCHu:\n WKvO = oyIN.zeros(dVLm)\n d6pt = DTDK[Z9rn]\n ... | [
"0.80627745",
"0.7716486",
"0.77139974",
"0.7699393",
"0.7683449",
"0.7665923",
"0.7664355",
"0.7661299",
"0.76292604",
"0.7620598",
"0.7541594",
"0.7492656",
"0.74861956",
"0.7448153",
"0.7445126",
"0.7432858",
"0.74162346",
"0.74150234",
"0.74150234",
"0.7389879",
"0.738590... | 0.0 | -1 |
Attach a lot of summaries to a Tensor (for TensorBoard visualization). | def g4Yp(YKHO, SRYB):
if not YKHO.MP.DISABLE_SUMMARY:
with ZylS.name_scope('summaries'):
JBMS = ZylS.reduce_mean(SRYB)
ZylS.summary.scalar('mean', JBMS)
with ZylS.name_scope('stddev'):
z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS)))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1pK(YKHO):\n for G1Hx, Ty9i in YKHO.metrics.items():\n ZylS.summary.scalar(G1Hx, Ty9i)\n YKHO.summary_op = ZylS.summary.merge_all()",
"def RlbR(YKHO):\n ZylS.summary.scalar('loss', YKHO.loss)\n XIcQ = ZylS.summary.merge_all()\n YKHO.summary_op = XIcQ\n ZylS.logging.info('summary op ... | [
"0.7071791",
"0.6970259",
"0.6970259",
"0.6800256",
"0.67872906",
"0.67407334",
"0.66669947",
"0.66576326",
"0.66193783",
"0.66085786",
"0.6595776",
"0.65836215",
"0.6581151",
"0.655297",
"0.6500364",
"0.6459978",
"0.64145213",
"0.6294558",
"0.62718755",
"0.62713677",
"0.6265... | 0.5688791 | 68 |
Creates a safe prime of n_bits bits | def ug3t(Fo59: int) -> int:
ffYW = None
while True:
ffYW = a4QL(Fo59)
if YYn3(ffYW) and YYn3(ffYW - 1 >> 1):
break
return ffYW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4QL(Fo59: int=128) -> int:\n ttqZ = PWzx()\n fuim = ttqZ.getrandbits(Fo59)\n fuim |= 1 << Fo59 - 1\n fuim |= 1\n return fuim",
"def KKLz(YKHO, Fo59):\n exwG = XD3u.mpz(HTbS.getrandbits(Fo59))\n return XD3u.next_prime(exwG)",
"def cuSf(uSbu=512):\n return c_d3(uSbu) * c_d3(uSbu)",
... | [
"0.8424074",
"0.7952582",
"0.7518133",
"0.742822",
"0.73530567",
"0.7227309",
"0.70004624",
"0.69871116",
"0.6972627",
"0.696377",
"0.69620395",
"0.6960163",
"0.6945166",
"0.69306606",
"0.6926512",
"0.6905931",
"0.6899738",
"0.68928635",
"0.68928635",
"0.68888646",
"0.6887792... | 0.7790044 | 2 |
Given a list of unordered data, return the fps neighbors (first neighbor is the sampled point). | def FIMM(YKHO, LTIa, PYVH=16, **B2fa):
super(C4RR, YKHO).__init__()
YKHO.points = LTIa
YKHO.knn = PYVH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E5SQ(YKHO):\n bdGm = []\n for YRbF, XP5J in enumerate(YKHO.frame_0):\n x9xL = oyIN.where(oyIN.linalg.norm(YKHO.frame_0 - XP5J, axis=1) <= YKHO.R_n)[0]\n d6pt = oyIN.argwhere(x9xL == YRbF)\n x9xL = oyIN.delete(x9xL, d6pt)\n bdGm.append(x9xL)\n return bdGm",
"def EdCQ(DpUl,... | [
"0.64099556",
"0.63660526",
"0.5958945",
"0.5950437",
"0.5902727",
"0.58451885",
"0.5680398",
"0.5640774",
"0.5637594",
"0.56226444",
"0.5603767",
"0.5523127",
"0.55198956",
"0.5514452",
"0.54987186",
"0.5475265",
"0.54498756",
"0.54331726",
"0.54331726",
"0.5415203",
"0.5412... | 0.0 | -1 |
Validator for image uploading | def aO7N(jUwK):
zNig = jUwK.file.size
if zNig > gCuF.GIZA_IMAGE_SIZE_LIMIT:
raise sUXu('사진 파일은 100KB 이하로 올려주세요.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aO7N(LNo8):\n tO9_ = N7gp(LNo8)\n if tO9_:\n raise sUXu(tO9_)",
"def aO7N(HCkR):\n if HCkR is None:\n return True\n _cgN = ['.png', '.jpg', '.jpeg']\n HCkR = str(HCkR)\n if not HCkR.lower().endswith((*_cgN,)):\n UvM_.status_code = jGRS.HTTP_400_BAD_REQUEST\n rais... | [
"0.7802354",
"0.6967605",
"0.69461703",
"0.69047123",
"0.6875441",
"0.67250717",
"0.67145497",
"0.6631862",
"0.6630777",
"0.66226584",
"0.6621506",
"0.6616627",
"0.6588324",
"0.6547479",
"0.65394026",
"0.6501633",
"0.6467978",
"0.641413",
"0.64106417",
"0.6379215",
"0.6356545... | 0.7135189 | 1 |
Return true if at least one command is found on the command line. | def D50Y():
qIxc = HwRy.argv[1:]
if '--help' in qIxc:
return False
if '-h' in qIxc:
return False
for d7pR in qIxc:
if d7pR and (not d7pR.startswith('-')):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L2oV(qIxc):\n if zEiN(qIxc, skip=True):\n return True\n return False",
"def UAdQ(qIxc):\n if qIxc.command is not None:\n return True\n return False",
"def rt2r(zFiD: str) -> bool:\n if zFiD[0] == '$':\n return True\n return False",
"def HyYS(YKHO) -> bool:\n retu... | [
"0.75476253",
"0.7315652",
"0.7177804",
"0.70393574",
"0.681452",
"0.67429733",
"0.6677546",
"0.6630747",
"0.66033745",
"0.65875995",
"0.652084",
"0.6506183",
"0.64890695",
"0.64350784",
"0.6398998",
"0.63341105",
"0.6330846",
"0.6327992",
"0.63226783",
"0.6311894",
"0.630724... | 0.77489024 | 0 |
Check if file is empty by confirming if its size is 0 bytes | def c8TK(qaEx):
return Hy7s.path.exists(qaEx) and Hy7s.stat(qaEx).st_size == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mqhv(gIsw):\n try:\n if Hy7s.stat(gIsw).st_size > 0:\n return False\n except Exception:\n pass\n return True",
"def tGe_(YKHO):\n YKHO.is_empty = True",
"def Hlgy(Sd0C):\n return Sd0C is not None and Hy7s.path.isfile(Sd0C) and (Hy7s.path.getsize(Sd0C) == 0)",
"def ... | [
"0.82181215",
"0.8140408",
"0.8068378",
"0.78488314",
"0.7599648",
"0.7596634",
"0.74580604",
"0.7405964",
"0.727476",
"0.7051939",
"0.7044965",
"0.70049536",
"0.6968705",
"0.68893236",
"0.68577814",
"0.68557173",
"0.68475395",
"0.68218964",
"0.68195176",
"0.68195176",
"0.679... | 0.85844964 | 0 |
Get next value with lock for concurrent access. | async def locked_next():
async with stkY:
try:
Y3LQ = await anext(oHE7)
except StopAsyncIteration:
return None
return Y3LQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y3LQ(YKHO):\n YKHO._lock.acquire()\n try:\n id = YKHO._next_id\n YKHO._next_id += 1\n finally:\n YKHO._lock.release()\n return id",
"def NMoC(YKHO):\n with YKHO.mutex:\n return YKHO.value",
"def next(YKHO):\n if YKHO.pointer > len(YKHO.queue) - 1:\n YKHO... | [
"0.7766037",
"0.7073409",
"0.6818339",
"0.6753151",
"0.6640604",
"0.66125697",
"0.6603093",
"0.65289444",
"0.6525621",
"0.65114576",
"0.6497521",
"0.6497521",
"0.64617753",
"0.640742",
"0.6392871",
"0.6357994",
"0.6334995",
"0.63230234",
"0.63156945",
"0.6292079",
"0.62857634... | 0.79237884 | 0 |
Tests that seasonal resolution hindcast predictions work. | def L4Ii(yG4H, qTkt):
SdoX = yG4H.rolling(lead=3, center=True).mean().dropna(dim='lead')
SdoX = SdoX.isel(lead=slice(0, None, 3))
jA4n = qTkt.rolling(time=3, center=True).mean().dropna(dim='time')
SdoX.lead.attrs['units'] = 'seasons'
assert tzbz(SdoX, jA4n).all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pi6m(kYg2, iLVe):\n mFf1 = kYg2.resample(init='5D').mean()\n tYi6 = iLVe.resample(time='5D').mean()\n mFf1.lead.attrs['units'] = 'pentads'\n assert tzbz(mFf1, tYi6).all()",
"def Y741(yG4H, qTkt):\n pYeE = yG4H.resample(init='YS').mean().isel(lead=slice(None, 2))\n xDKb = qTkt.resample(time=... | [
"0.7095887",
"0.69212794",
"0.69098943",
"0.68421084",
"0.67686075",
"0.674219",
"0.64660704",
"0.63922846",
"0.63648415",
"0.6269937",
"0.6237292",
"0.61016476",
"0.60239846",
"0.5929092",
"0.580805",
"0.5796893",
"0.5782806",
"0.5770261",
"0.5746235",
"0.5683293",
"0.566051... | 0.78237224 | 0 |
Returns session config proto. | def kGvS(NArs):
GPtr = ZylS.ConfigProto()
GPtr.allow_soft_placement = True
GPtr.intra_op_parallelism_threads = NArs.num_intra_threads
GPtr.inter_op_parallelism_threads = NArs.num_inter_threads
GPtr.gpu_options.force_gpu_compatible = NArs.force_gpu_compatible
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcLb():\n return Qo1u('a_protocol', 'an_author', '0.1.0')",
"def iRm2(Emd4):\n if Emd4.pb_singleton is None:\n with open(WncU.FLAGS.conf, 'r') as CAYp:\n Emd4.pb_singleton = C5Bg.Merge(CAYp.read(), PBLf.Config())\n Yoqy.info('Get config: {}'.format(Emd4.pb_singleton))\n ... | [
"0.6063571",
"0.5993571",
"0.5940212",
"0.59311754",
"0.5809161",
"0.5804188",
"0.5694371",
"0.5694371",
"0.5680273",
"0.5639866",
"0.56208193",
"0.5617359",
"0.55974823",
"0.55949265",
"0.55916214",
"0.5587071",
"0.5583146",
"0.55823916",
"0.5579282",
"0.55536556",
"0.555229... | 0.0 | -1 |
Sets up the environment that BenchmarkCNN should run in. | def eCGt(NArs):
Hy7s.environ['TF_ENABLE_WINOGRAD_NONFUSED'] = '1'
Hy7s.environ['TF_SYNC_ON_FINISH'] = str(int(NArs.sync_on_finish))
j1Jz.ArgumentParser(formatter_class=j1Jz.ArgumentDefaultsHelpFormatter)
NArs = NArs._replace(gpu_thread_mode=NArs.gpu_thread_mode.lower())
Hy7s.environ['TF_GPU_THREAD_M... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rRWD() -> None:\n Os6m()\n keK5()",
"def xDYi(Lwuh, aDYX):\n Hy7s.environ['RANK'] = str(Lwuh)\n Hy7s.environ['WORLD_SIZE'] = str(aDYX)\n Hy7s.environ['MASTER_ADDR'] = '127.0.0.1'\n Hy7s.environ['MASTER_PORT'] = '29500'\n IeH1(Lwuh)\n pImw.init_process_group(backend='nccl', world_size=... | [
"0.7039897",
"0.6370933",
"0.6356852",
"0.6353399",
"0.6344304",
"0.6198385",
"0.6176934",
"0.6174108",
"0.6139378",
"0.6128797",
"0.60959816",
"0.6062517",
"0.6056935",
"0.6046158",
"0.5997585",
"0.59735215",
"0.5972749",
"0.5954929",
"0.5905744",
"0.5900848",
"0.5888725",
... | 0.58541393 | 26 |
Loading VGG16 weights trained on ImageNet. Pytorch library has set of pretrained weights for VGG16. It can be find in below link | def OJVN(YKHO):
xA7f = YKHO.state_dict()
DTb0 = list(xA7f.keys())
KFXN = TTda.models.vgg16(pretrained=True).state_dict()
DDS1 = list(KFXN.keys())
for YRbF, xqoZ in enumerate(DTb0[:-4]):
xA7f[xqoZ] = KFXN[DDS1[YRbF]]
k068 = KFXN['classifier.0.weight'].view(4096, 512, 7, 7)
vTaP = KFXN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a7Lb(mL4f=False, **B2fa):\n if mL4f:\n B2fa['init_weights'] = False\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['vgg16']), strict=False)\n return C3ST",
"def a7Lb(mL4f=False, **B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n if m... | [
"0.71958834",
"0.69498736",
"0.6946103",
"0.6930777",
"0.6882998",
"0.686881",
"0.6824245",
"0.67993087",
"0.67415476",
"0.67379135",
"0.6729036",
"0.6677453",
"0.6614767",
"0.65058744",
"0.6454305",
"0.64470965",
"0.6441963",
"0.63713574",
"0.6365838",
"0.6363166",
"0.633335... | 0.7079707 | 1 |
View function for home page of site. | def d6pt(QePW):
n1rJ = T97t.objects.all().count()
orkQ = qZuN.objects.all().count()
nM65 = o763.objects.count()
QpfX = {'num_posts': n1rJ, 'num_category': orkQ, 'num_authors': nM65}
return _1tc(QePW, 'index.html', context=QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')",
"def vja_(QePW):\n return _1tc(QePW, 'ez_main/home_page.html')",
"def kZiy(QePW):\n return _1tc(QePW, 'home.html')",
"def C_QL(QePW):\n return _1tc(QePW, 'core/homepage.html')",
"def C_QL(QePW):\n return SGJU('h1ds_core/homepage.html'... | [
"0.8493426",
"0.84268916",
"0.83415145",
"0.83306193",
"0.82976943",
"0.8295291",
"0.8276345",
"0.82545686",
"0.82155704",
"0.8132563",
"0.81246215",
"0.81224865",
"0.8121264",
"0.81049734",
"0.8098485",
"0.80935514",
"0.80935514",
"0.80935514",
"0.80935514",
"0.80935514",
"0... | 0.0 | -1 |
Compute the constrained softmax (csoftmax); | def VcsJ(FRUf, Fg_i, ycBG):
epBp = ZylS.reduce_sum(ZylS.exp(FRUf / ycBG), axis=1, keep_dims=True)
jzdc = ZylS.exp(FRUf / ycBG) * (Fg_i / ycBG) / epBp
P6bq = ZylS.ones_like(Fg_i) - Fg_i
Sjp1 = ZylS.to_float(ZylS.less_equal(jzdc, P6bq))
l3yG = ZylS.to_float(ZylS.less(P6bq, jzdc))
k0lF = jzdc * Sjp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n pass\n O48W = oyIN.exp(WKvO)\n T63k = oyIN.sum(O48W, axis=0)\n N93T = O48W / T63k\n return N93T",
"def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(W... | [
"0.78560466",
"0.7835292",
"0.7820282",
"0.77575976",
"0.7694138",
"0.76709664",
"0.76704526",
"0.7662938",
"0.7661082",
"0.7656146",
"0.7652721",
"0.7651058",
"0.7638108",
"0.76260686",
"0.76043034",
"0.76043034",
"0.76043034",
"0.76043034",
"0.76043034",
"0.76043034",
"0.76... | 0.76578796 | 9 |
Sun position unit vector | def H_SX(vRiW):
return vRiW / WTaY(vRiW[0], vRiW[1], vRiW[2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXGI(YKHO):\n return lNLu(YKHO.x / YKHO.length(), YKHO.y / YKHO.length())",
"def PXGI():\n return DKJk(0, 1)",
"def ljfb(YKHO, a1PO):\n jzdc = YKHO.a0 + a1PO * YKHO.da\n ZLSD = YhSR(jzdc)\n RyuO = YUNn(jzdc)\n Ty9i = lNLu((RyuO, -ZLSD))\n if YKHO.da > 0:\n Ty9i = -Ty9i\n retu... | [
"0.6851483",
"0.6771579",
"0.6357444",
"0.61726576",
"0.61319935",
"0.6098751",
"0.60735273",
"0.607041",
"0.60634553",
"0.6035099",
"0.6001652",
"0.5976225",
"0.59704524",
"0.59430546",
"0.59178925",
"0.59092987",
"0.5897357",
"0.58889973",
"0.5882439",
"0.5877219",
"0.58728... | 0.7924792 | 0 |
Determines if the current page is the last one showing listings. | def QiG9(Z9JV):
e5kH = Z9JV.find('meta', {'property': 'og:url'})
if e5kH.has_attr('content'):
klRQ = ZbWC.search('.*/(\\d+)_p/', e5kH.attrs['content'])
if klRQ:
return klRQ.group(1) == '20'
if ZbWC.search('/rentals/$', e5kH.attrs['content']):
return False
G9jH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QiG9(YKHO):\n return YKHO.page == YKHO.last_page",
"def V5s8(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'is_last')",
"def _U5a(YKHO):\n if YKHO.countable:\n return False\n if YKHO.is_last_page:\n return False\n if int(YKHO.current_page + 1) * YKHO.page_size > YKHO.maximum_ski... | [
"0.7672648",
"0.67728835",
"0.66980845",
"0.6516898",
"0.6355717",
"0.6306561",
"0.62889564",
"0.62769735",
"0.62538326",
"0.62464654",
"0.6204267",
"0.61994034",
"0.6089153",
"0.60855496",
"0.6039939",
"0.6039939",
"0.60371155",
"0.602113",
"0.602113",
"0.602113",
"0.6013965... | 0.69576514 | 1 |
Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file. `mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result of os.environ.get("PATH"), or can be overridden with a custom search path. | def Nygx(HCmI, Tuqy=Hy7s.F_OK | Hy7s.X_OK, pmON=None):
def LZLW(FYKK, Tuqy):
return Hy7s.path.exists(FYKK) and Hy7s.access(FYKK, Tuqy) and (not Hy7s.path.isdir(FYKK))
if Hy7s.path.dirname(HCmI):
if LZLW(HCmI, Tuqy):
return HCmI
return None
if pmON is None:
pmON =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nygx(HCmI, Tuqy=Hy7s.F_OK | Hy7s.X_OK, pmON=None):\n\n def LZLW(FYKK, Tuqy):\n return Hy7s.path.exists(FYKK) and Hy7s.access(FYKK, Tuqy) and (not Hy7s.path.isdir(FYKK))\n if Hy7s.path.dirname(HCmI):\n if LZLW(HCmI, Tuqy):\n return HCmI\n return None\n if pmON is None:\n... | [
"0.74613327",
"0.7454271",
"0.72772473",
"0.6944246",
"0.6540553",
"0.63965267",
"0.6081426",
"0.59041977",
"0.58812714",
"0.58786947",
"0.5753893",
"0.5733103",
"0.5709695",
"0.5671653",
"0.5577198",
"0.557545",
"0.55516636",
"0.54997337",
"0.5452385",
"0.5445319",
"0.542585... | 0.77115226 | 0 |
Path to test data directory. | def h_xa(dGUC):
return Hy7s.path.join(dGUC, 'tests', 'test_data') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WLhE(YKHO):\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data')",
"def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(D40k), 'test', 'data')",
"def h_xa():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'test', 'data')",
"def Eitm():\n return Hy7s.path.abspath(Hy7... | [
"0.93090916",
"0.9228948",
"0.90788084",
"0.8958091",
"0.864455",
"0.85699105",
"0.81022733",
"0.8095879",
"0.8082996",
"0.8054517",
"0.80501175",
"0.804273",
"0.801872",
"0.79468805",
"0.792793",
"0.78461945",
"0.78139955",
"0.78120965",
"0.7735267",
"0.7686884",
"0.76713324... | 0.8281919 | 6 |
Path to bootstrap output directory. | def u2mb(RFh6, skVu):
return Hy7s.path.join(RFh6, 'out') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _8MX():\n return V2eH",
"def fwu5():\n return Hy7s.getcwd() + '/output/'",
"def n80H(YKHO):\n return '%s/%s' % (Hy7s.path.abspath(Hy7s.path.dirname(xAKo) + 'outputs'), YKHO.identifier)",
"def kmfe(YKHO):\n return Hy7s.path.join(YKHO._sandbox, 'output' + Hy7s.path.sep)",
"def kmfe(YKHO):\n ... | [
"0.78226775",
"0.75091505",
"0.74435955",
"0.741438",
"0.73034644",
"0.7293515",
"0.7096003",
"0.7057922",
"0.69811285",
"0.6971088",
"0.6921561",
"0.6900578",
"0.68579984",
"0.68556315",
"0.6840672",
"0.6832471",
"0.6815121",
"0.67833996",
"0.6763623",
"0.6721809",
"0.665743... | 0.6722821 | 19 |
Path to bootstrap config. | def BCfi(RFh6):
return Hy7s.path.join(RFh6, 'bootstrapping.yaml') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def lqQH():\n Kwmb = Hy7s.path.dirname(xAKo)\n rWOG = Hy7s.path.join(Kwmb, '../..')\n return Hy7s.path.join(rWOG, 'mike_dev.ini')",
"def jizk():\n return './' + vg61",
"def S673() -> GkAb:\n GPtr = Hy7s.getenv('TOM_CONFIG', '')\n return... | [
"0.7491028",
"0.7277288",
"0.7198955",
"0.7089994",
"0.70728725",
"0.70307755",
"0.68940914",
"0.6858863",
"0.68588036",
"0.68543637",
"0.6846163",
"0.6830477",
"0.68003565",
"0.6797498",
"0.6796525",
"0.6767383",
"0.67546785",
"0.6743908",
"0.67113745",
"0.67014086",
"0.6696... | 0.77958906 | 0 |
Path to resampling config. | def q3mq(Xop4):
return Hy7s.path.join(Xop4, 'resampling.yaml') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xop4(n5Q7):\n return Hy7s.path.join(n5Q7, 'resampling')",
"def Zg0d(YKHO, lqQH=Fm4J):\n return Hy7s.path.join(lqQH, YKHO.filename)",
"def s8UV(t6ks: str) -> GkAb:\n return kuHn(t6ks) / KHSu",
"def Y2i6():\n return 'tests/fixtures/global_config.yaml'",
"def gMM4(Xop4, skVu):\n return Hy7s... | [
"0.6881207",
"0.5867884",
"0.582824",
"0.57341564",
"0.56176305",
"0.55958325",
"0.5574562",
"0.55086046",
"0.54715735",
"0.54648596",
"0.5445687",
"0.54362184",
"0.5435501",
"0.5434435",
"0.5423719",
"0.54234105",
"0.5397872",
"0.53904104",
"0.53851056",
"0.53814703",
"0.536... | 0.7818898 | 0 |
Transform literal to its string form. Looking up the variable in a literal is a matter of dividing by two, which is the same as a bitwise shift to the right. | def c8Qr(YKHO, j76n):
KCHu = '!' if T2JV(j76n) else ''
return KCHu + YKHO.variables[j76n >> 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5IB(YKHO, MW_J):\n if isinstance(MW_J, KUXB):\n qXOC = str(MW_J).replace('-', 'Neg').replace('+', 'Pos').replace('.', 'point')\n elif isinstance(MW_J, exCv):\n qXOC = repr(MW_J)\n return qXOC",
"def oQQl(OXAZ: Literal) -> str:\n DuqQ = OXAZ.language\n yDqo = OXAZ.datatype\n M... | [
"0.6115746",
"0.60395455",
"0.59917223",
"0.5940928",
"0.5854459",
"0.5820236",
"0.5741875",
"0.55726326",
"0.55214185",
"0.54745287",
"0.54635787",
"0.5453568",
"0.5339531",
"0.5322462",
"0.52889454",
"0.52889454",
"0.5287417",
"0.52544516",
"0.5246208",
"0.5184462",
"0.5171... | 0.72383296 | 0 |
Forms a dict where for each component's number we have all the vertices in it. | def WoBl(AdfU: DefaultDict[int, int]) -> mBx8[int, x1iM]:
hGN5 = oRi_(list)
for Q6kx, yCnv in AdfU.items():
hGN5[yCnv].append(Q6kx)
return hGN5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EBww(YKHO):\n return str(YKHO.vert_dict.keys())",
"def l9hz(iXlf):\n RHxE = {}\n for Ty9i in range(1, iXlf + 1):\n RHxE[Ty9i] = []\n return RHxE",
"def iXlf(YKHO):\n return list(YKHO.graph_dict.keys())",
"def iXlf(YKHO):\n return YKHO.keys()",
"def iXlf(YKHO):\n return list(... | [
"0.6711244",
"0.6648429",
"0.6542306",
"0.6473419",
"0.6468677",
"0.6421165",
"0.6421165",
"0.6421165",
"0.640545",
"0.6392779",
"0.6334015",
"0.6280855",
"0.6201225",
"0.6170471",
"0.615769",
"0.6145397",
"0.6142944",
"0.61419284",
"0.613994",
"0.6130737",
"0.61163497",
"0... | 0.58261055 | 42 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
with ht2j.no_grad():
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.76427615",
"0.74189496",
"0.7418079",
"0.72710466",
"0.72456723",
"0.72446615",
"0.7237539",
"0.72213703",
"0.7210107",
"0.7058935",
"0.6852219",
"0.6786084",
"0.67836976",
"0.6768417",
"0.67273885",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.... | 0.0 | -1 |
Change to bold + italics, as that's our style. | def nniN(YKHO, Q6kx):
YKHO.body.append('\\emph{\\textbf{') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zcD9(YKHO):\n return I4qd(YKHO.name[0:2] + 'IB', YKHO.size)",
"def JSRs(vIwR):\n return dSEb + vIwR + lK9e",
"def nzpg(YKHO):\n return I4qd(YKHO.name[0:2] + 'B', YKHO.size)",
"def JSRs(YKHO, vIwR):\n return YKHO.wrap(JSRs(vIwR))",
"def GQGm(vIwR):\n return '<b>' + vIwR + '</b>'",
"def ... | [
"0.769831",
"0.7124498",
"0.7003055",
"0.6908303",
"0.6890068",
"0.6794942",
"0.6792447",
"0.6708449",
"0.67083156",
"0.6652179",
"0.6580752",
"0.65469474",
"0.6527881",
"0.6407647",
"0.6394216",
"0.63806015",
"0.63746125",
"0.634515",
"0.6237879",
"0.62150794",
"0.6194891",
... | 0.54307437 | 62 |
Create HTML for run length encoding table. | def CwRL(YKHO, TZ9E, zFiD, usx6, ZLJ_, vXQH=None, apla=False):
if vXQH:
ZLJ_ += 1
with TZ9E('table'):
with TZ9E('tbody'):
for begg in range(usx6):
with TZ9E('tr'):
for f1pu in range(ZLJ_):
zFiD('td', '', klass='bordered-cell... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mehO(YKHO):\n B2Dn = '<!DOCTYPE html>\\n <!doctype html>\\n <html lang=\"en\">\\n <head>\\n <meta charset=\"utf-8\">\\n <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no\">\\n </head>\\n </html>\\n <hea... | [
"0.6594432",
"0.63051206",
"0.6278174",
"0.62763023",
"0.6197059",
"0.61847097",
"0.6164546",
"0.6160518",
"0.6137205",
"0.6049625",
"0.6006883",
"0.59981126",
"0.59635264",
"0.59628034",
"0.59621364",
"0.5959026",
"0.5952446",
"0.59419113",
"0.5933154",
"0.5923689",
"0.59076... | 0.7343104 | 0 |
Calculate the KL divergence between p and q distributions on a grid of the feature space. Use only up to 3 dimensions, otherwise turns computationally expensive and intensive. | def dzAH(ZkGr, QXsI, LsIU=30, LT0V=2):
global COUNTER
if LT0V == 2:
WKvO = oyIN.linspace(-1.0, 1.0, LsIU)
LVAh = oyIN.linspace(-1.0, 1.0, LsIU)
pzDV = oyIN.meshgrid(WKvO, LVAh)
elif LT0V == 3:
WKvO = oyIN.linspace(-1.0, 1.0, LsIU)
LVAh = oyIN.linspace(-1.0, 1.0, LsIU)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dzAH(YKHO, qfME, P0tT):\n DvZS = qfME[:, :, 0]\n Cq55 = qfME[:, :, 1]\n cTBY = P0tT[:, :, 0]\n BcQb = P0tT[:, :, 1]\n rUEL = ht2j.exp(Cq55)\n vaTL = ht2j.exp(BcQb)\n t1lM = BcQb - Cq55 + (rUEL ** 2 + (DvZS - cTBY) ** 2) / (2.0 * vaTL ** 2) - 0.5\n return t1lM.sum(dim=-1)",
"def Qll2(X... | [
"0.7582083",
"0.7468207",
"0.7441536",
"0.72506154",
"0.7139358",
"0.7039632",
"0.6946458",
"0.6876695",
"0.6834531",
"0.6784169",
"0.6720736",
"0.67007035",
"0.6687194",
"0.66023445",
"0.65938723",
"0.65904456",
"0.6588315",
"0.65816873",
"0.6546122",
"0.6538691",
"0.6499524... | 0.75979996 | 0 |
Sets the model to stochastic evaluation mode. Override this to set your module to stochastic mode. | def Om2y(YKHO):
if YKHO.training:
YKHO.eval()
YKHO.stochastic = True
for yR_P in YKHO.modules():
if yR_P is not YKHO and isinstance(yR_P, qim5):
yR_P.stochastic_eval()
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H1N_(YKHO, Tuqy):\n if Tuqy == YKHO._model_modes.INFERENCE:\n YKHO.network.eval()\n else:\n YKHO.network.train()\n return YKHO",
"def DKDl(YKHO):\n pass",
"def S_JG(YKHO):\n YKHO._set_mode('train')\n return YKHO",
"def f2Lf(YKHO):\n if YKHO.model.__dict__['training']:\n... | [
"0.6359612",
"0.6211335",
"0.6179895",
"0.61752695",
"0.6022713",
"0.5916781",
"0.58898914",
"0.58591306",
"0.5817347",
"0.57757354",
"0.5755513",
"0.57445616",
"0.5719638",
"0.56991076",
"0.56963784",
"0.5668365",
"0.56326824",
"0.56243575",
"0.5618857",
"0.56135666",
"0.558... | 0.71500707 | 0 |
Strip no backspace characters out of the output | def aUkI():
l5Ny = 'Writing something'
hlel = i8ZT.strip_backspaces(l5Ny)
assert hlel == 'Writing something' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qGgC(hlel):\n GOFG = ZbWC.compile('\\\\x1b[^m]*m')\n return GOFG.sub('', hlel)",
"def RbUs():\n pass",
"def MZMe(BWXx):\n return ZbWC.sub('[\\\\x00-\\\\x20]+', ' ', BWXx).strip()",
"def dDzu():\n l5Ny = 'Writing\\x08something'\n hlel = i8ZT.strip_backspaces(l5Ny)\n assert hlel == 'Wr... | [
"0.7086674",
"0.6978313",
"0.6797572",
"0.6757039",
"0.67523134",
"0.66713244",
"0.66710985",
"0.66591233",
"0.6636382",
"0.66243845",
"0.65375507",
"0.6513357",
"0.64421564",
"0.64118475",
"0.6386427",
"0.63023925",
"0.6301879",
"0.63013834",
"0.6292409",
"0.62529516",
"0.62... | 0.6561933 | 10 |
Strip one backspace character out of the output | def dDzu():
l5Ny = 'Writing\x08something'
hlel = i8ZT.strip_backspaces(l5Ny)
assert hlel == 'Writingsomething' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BKmh():\n l5Ny = 'Writing\\x08something\\x08'\n hlel = i8ZT.strip_backspaces(l5Ny)\n assert hlel == 'Writingsomething'",
"def qGgC(hlel):\n GOFG = ZbWC.compile('\\\\x1b[^m]*m')\n return GOFG.sub('', hlel)",
"def OjlP(bTKY):\n bTKY.delete_symbol()",
"def RbUs():\n pass",
"def KJDp(v... | [
"0.6879016",
"0.6864058",
"0.68088466",
"0.67938316",
"0.6780626",
"0.66877925",
"0.6606588",
"0.6563648",
"0.65594405",
"0.6495283",
"0.6458312",
"0.64496064",
"0.6421529",
"0.63885844",
"0.6370434",
"0.63115174",
"0.62903535",
"0.62670755",
"0.6254752",
"0.6247414",
"0.6242... | 0.71228254 | 0 |
Strip any backspace characters out of the output | def BKmh():
l5Ny = 'Writing\x08something\x08'
hlel = i8ZT.strip_backspaces(l5Ny)
assert hlel == 'Writingsomething' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qGgC(hlel):\n GOFG = ZbWC.compile('\\\\x1b[^m]*m')\n return GOFG.sub('', hlel)",
"def RbUs():\n pass",
"def dDzu():\n l5Ny = 'Writing\\x08something'\n hlel = i8ZT.strip_backspaces(l5Ny)\n assert hlel == 'Writingsomething'",
"def MZMe(BWXx):\n return ZbWC.sub('[\\\\x00-\\\\x20]+', ' '... | [
"0.710811",
"0.690284",
"0.68992615",
"0.67880905",
"0.66545844",
"0.6594827",
"0.65848833",
"0.65636224",
"0.6557524",
"0.65460235",
"0.6538637",
"0.64922243",
"0.6487964",
"0.6485732",
"0.64854014",
"0.64391035",
"0.64279306",
"0.64158803",
"0.6394289",
"0.63304806",
"0.633... | 0.6837518 | 3 |
Threshold globally everything below the median to zero, and then MaxPool over a 7x7 kernel. This will fill every entry in the subgrids with the maximum value in the neighborhood. Binarize the image according to locations that are equal to their maximum (i.e. 1 when it is equal to the maximum value and 0 otherwise), and... | def KVH6(YKHO, WKvO: torch.Tensor) -> ht2j.Tensor:
BjRM = ht2j.median(WKvO)
_h7x = ht2j.where(WKvO < BjRM, ht2j.tensor([0.0]), WKvO)
ZIVn = U78l.MaxPool2d(7, stride=1, padding=3)
FhZb = ZIVn(_h7x)
Ffz0 = ht2j.where(FhZb == WKvO, ht2j.tensor([1.0]), ht2j.tensor([0.0]))
hlel = ht2j.mul(Ffz0, WKvO)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G4Po(VXjJ):\n vYqD = VXjJ.copy()\n f9pD, TVTK, bGrB = vYqD.shape\n for MKlR in range(0, f9pD, 8):\n for yzQ0 in range(0, TVTK, 8):\n vYqD[MKlR:MKlR + 8, yzQ0:yzQ0 + 8, 0] = oyIN.max(vYqD[MKlR:MKlR + 8, yzQ0:yzQ0 + 8, 0])\n vYqD[MKlR:MKlR + 8, yzQ0:yzQ0 + 8, 1] = oyIN.max(v... | [
"0.70798296",
"0.60064656",
"0.6003229",
"0.59821975",
"0.5846234",
"0.5826767",
"0.5822811",
"0.5811246",
"0.5801195",
"0.57726026",
"0.57537115",
"0.5741464",
"0.57412094",
"0.5740231",
"0.5740231",
"0.5728427",
"0.57163906",
"0.5714878",
"0.5713629",
"0.5708152",
"0.570760... | 0.57934994 | 9 |
struct.unpack 64bit unsigned int | def yvRj(nPrm):
return BlNT.unpack('<Q', nPrm)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WhIS(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n return MZ6z(BWXx, 64, dmhX, Zihr)",
"def nSR0(nPrm):\n BWXx = MZ6z(vqOS.INT64_BYTE_FORMAT, nPrm[:8])[0]\n return (BWXx, 8)",
"def bDih(YKHO, dmhX='<'):\n return YKHO.unpack('%sQ' % dmhX, 8)",
"def eQcc(YKHO, dmhX='<'):\n ret... | [
"0.7337515",
"0.7291455",
"0.70735544",
"0.70528245",
"0.6859246",
"0.6752526",
"0.6628481",
"0.6615263",
"0.6587468",
"0.6587468",
"0.6580051",
"0.6574504",
"0.657394",
"0.6571775",
"0.6461917",
"0.64502436",
"0.6379707",
"0.63772327",
"0.6362134",
"0.6348984",
"0.6336245",
... | 0.74838567 | 0 |
struct.unpack 32bit unsigned int | def JDXO(nPrm):
return BlNT.unpack('<I', nPrm)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3A2(Csk6):\n return MZ6z('<I', Csk6)[0]",
"def Fbhp(nPrm):\n BWXx = MZ6z(vqOS.UINT32_BYTE_FORMAT, nPrm[:4])[0]\n return (BWXx, 4)",
"def OjKU(YKHO):\n bytes = YKHO.data[:4]\n BWXx = BlNT.unpack('!I', bytes)[0]\n YKHO.data = YKHO.data[4:]\n return BWXx",
"def MZ6z(YKHO, IQG0):\n j... | [
"0.7671511",
"0.74603957",
"0.74409455",
"0.7307866",
"0.7171026",
"0.71099955",
"0.6816044",
"0.6803274",
"0.679638",
"0.67508364",
"0.6709867",
"0.6625973",
"0.6625973",
"0.6561455",
"0.6561455",
"0.6543186",
"0.6540487",
"0.6536308",
"0.646474",
"0.6462641",
"0.64550704",
... | 0.8090075 | 0 |
Generates a JWT encoding the data in `dictionary` with an additional keyvalue entry which describes how long from now the token expires. | def LQUb(cmPJ: dict, N850: datetime.timedelta):
cmPJ['expiration'] = (qcWV.datetime.utcnow() + N850).timestamp()
return DvJO.encode(cmPJ, wk5E.config['TOKEN_SECRET_KEY'], algorithm='HS256') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cWAO(YKHO):\n import jwt\n from datetime import datetime, timedelta\n from django.conf import settings\n JRYC = datetime.now() + timedelta(days=60)\n eOtH = jwt.encode({'id': YKHO.pk, 'username': YKHO.username, 'exp': int(JRYC.strftime('%s'))}, settings.SECRET_KEY, algorithm='HS256')\n return... | [
"0.65434813",
"0.6512368",
"0.63321507",
"0.6095236",
"0.60330266",
"0.6012122",
"0.60032386",
"0.5992282",
"0.5899493",
"0.5899071",
"0.5895014",
"0.5850155",
"0.5837455",
"0.5821893",
"0.58200026",
"0.57397145",
"0.57029384",
"0.56895727",
"0.56874955",
"0.56823957",
"0.567... | 0.79876447 | 0 |
Load a valid YAML config | def lnGJ(YKHO):
with uwwb(suffix='.yaml') as GPtr:
with open(GPtr.name, 'w') as CGab:
CGab.write('\n pipeline:\n - !LinearController\n low_utilisation: 0.9\n high_utilisation: 1.1\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9B0(GPtr):\n try:\n return eJb6.safe_load(GPtr)\n except eJb6.YAMLError as e:\n raise Exception('Error occurred while parsing YAML: {}'.format(tTpl))",
"def LgIG(Ux0P):\n with open(Ux0P, 'r') as wOb_:\n try:\n global CONFIG\n X8Rg = eJb6.load(wOb_)\n ... | [
"0.78422004",
"0.7696944",
"0.7660286",
"0.7658057",
"0.75203407",
"0.75120354",
"0.7475227",
"0.7423036",
"0.7402705",
"0.73566264",
"0.7343501",
"0.73430413",
"0.7334165",
"0.7333319",
"0.7317944",
"0.7307667",
"0.7276558",
"0.7270611",
"0.7262618",
"0.7260277",
"0.7246272"... | 0.0 | -1 |
Sets the property zip code | def DD6W(YKHO, DD6W):
YKHO._zipcode = DD6W | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jLqg(YKHO, jLqg):\n YKHO._zip_code = jLqg",
"def jLqg(YKHO, BWXx):\n njyT = GPtr.get('validators', 'zip_code')\n DD6W = ZbWC.search(njyT, BWXx)\n if not DD6W:\n raise KtW6(\"ZipCodeError: 'zip_code' must be 5 non-float digits\")\n else:\n YKHO._zip_code = BWXx",
"def aS2h(YKHO,... | [
"0.8063274",
"0.72263193",
"0.7218265",
"0.69565064",
"0.6854635",
"0.6693834",
"0.6617669",
"0.6424577",
"0.6424577",
"0.6424577",
"0.64047813",
"0.6381943",
"0.6219688",
"0.6131205",
"0.60806584",
"0.57415175",
"0.57322216",
"0.57199264",
"0.57005495",
"0.5653463",
"0.56534... | 0.8280006 | 0 |
Returns a list with the named_predictions (or more depending on ) Also returns a saliency map of the imgs | def oxdt(YKHO, xkjI, ZWCE='2DPositions'):
kdJa = {}
kdJa[YKHO.images_tf] = xkjI
_1lK, _sch = YKHO.sess.run([YKHO.conv6, YKHO.output], feed_dict=kdJa)
aTLP = _sch
GZBK = aTLP.argsort(axis=1)[:, ::-1]
Mi0E = aTLP.argmax(axis=1)
if ZWCE == 'Predictions':
YKHO.classmap = YKHO.detector.ge... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnkx(YKHO, xkjI):\n return YKHO._predict(xkjI)",
"def SG4A(FY5H):\n W6Ck = FY5H.decode_hparams\n if not W6Ck.display_decoded_images:\n return []\n N6Z1 = FY5H.predictions[0]\n kZRK = []\n J9wD = oyIN.random.choice(N6Z1, size=10)\n for QyVM, o3Uj in enumerate(J9wD):\n hk46 =... | [
"0.64799243",
"0.6398349",
"0.6308719",
"0.622036",
"0.62094873",
"0.6194067",
"0.61841846",
"0.61537486",
"0.61372584",
"0.6130253",
"0.61022663",
"0.6050701",
"0.600578",
"0.59851444",
"0.5947488",
"0.5937418",
"0.59310234",
"0.59310067",
"0.5928132",
"0.59254014",
"0.59181... | 0.0 | -1 |
Returns a list with the named_predictions (or more depending on ) Also returns a saliency map of the imgs | def gCi5(YKHO, xkjI, ZNBn=True, ZWCE='2DPositions'):
kdJa = {}
kdJa[YKHO.images_tf] = xkjI
_1lK, _sch = YKHO.sess.run([YKHO.conv6, YKHO.output], feed_dict=kdJa)
aTLP = _sch
lM74 = gCKo(aTLP)
QLnl = YKHO.summed_vis(_1lK)
if ZWCE == '2DPositions':
NDdP = lambda ezWE: ezWE.argmax(axis=1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnkx(YKHO, xkjI):\n return YKHO._predict(xkjI)",
"def SG4A(FY5H):\n W6Ck = FY5H.decode_hparams\n if not W6Ck.display_decoded_images:\n return []\n N6Z1 = FY5H.predictions[0]\n kZRK = []\n J9wD = oyIN.random.choice(N6Z1, size=10)\n for QyVM, o3Uj in enumerate(J9wD):\n hk46 =... | [
"0.64799243",
"0.6398349",
"0.6308719",
"0.622036",
"0.62094873",
"0.6194067",
"0.61841846",
"0.61537486",
"0.61372584",
"0.6130253",
"0.61022663",
"0.6050701",
"0.600578",
"0.59851444",
"0.5947488",
"0.5937418",
"0.59310234",
"0.59310067",
"0.5928132",
"0.59254014",
"0.59181... | 0.0 | -1 |
Initialize a Linear or Convolutional layer. | def yYlq(gEmA, Kz5H='leaky_relu'):
U78l.init.kaiming_uniform_(gEmA.weight, nonlinearity=Kz5H)
if hasattr(gEmA, 'bias'):
if gEmA.bias is not None:
gEmA.bias.data.fill_(0.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yYlq(gEmA):\n if gEmA.weight.ndimension() == 4:\n _LFN, Ya2q, H2v2, TVTK = gEmA.weight.size()\n exwG = Ya2q * H2v2 * TVTK\n elif gEmA.weight.ndimension() == 2:\n _LFN, exwG = gEmA.weight.size()\n M1Jx = epAf.sqrt(2.0 / exwG)\n NXpY = M1Jx * epAf.sqrt(3.0)\n gEmA.weight.data.... | [
"0.71585476",
"0.6946555",
"0.675435",
"0.67083526",
"0.6665737",
"0.665054",
"0.66405225",
"0.66383994",
"0.6587422",
"0.6569476",
"0.6534945",
"0.6534624",
"0.65278125",
"0.6458321",
"0.6450799",
"0.6441936",
"0.64249116",
"0.6423872",
"0.6368915",
"0.63685584",
"0.6366803"... | 0.65386915 | 10 |
Initialize a Batchnorm layer. | def uHk4(tF9S):
tF9S.bias.data.fill_(0.0)
tF9S.running_mean.data.fill_(0.0)
tF9S.weight.data.fill_(1.0)
tF9S.running_var.data.fill_(1.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oivd(r8hN, WYQd=3):\n exwG = WYQd ** 2 * r8hN.num_features\n r8hN.weight.data.normal_(0, epAf.sqrt(2.0 / exwG))\n r8hN.bias.data.zero_()",
"def feYC(r8hN, WYQd=3, M1Zr=0.025):\n exwG = WYQd ** 2 * r8hN.num_features\n r8hN.weight.data.normal_(0, epAf.sqrt(2.0 / exwG))\n r8hN.weight.data[(r8h... | [
"0.7382624",
"0.71817577",
"0.7181327",
"0.6949718",
"0.67419326",
"0.6725722",
"0.66990584",
"0.66967344",
"0.66012853",
"0.65898055",
"0.65177745",
"0.64865506",
"0.6468668",
"0.64600116",
"0.6428001",
"0.64219517",
"0.6387554",
"0.63616383",
"0.6357548",
"0.635414",
"0.632... | 0.5826963 | 93 |
Returns the corrupted version of the input x. | def bd80(WKvO, vMGH):
ZHfW = oyIN.random.RandomState(1).binomial(size=WKvO.shape, n=1, p=1.0 - vMGH)
return ZHfW.astype(oyIN.float32) * WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wYdt(YKHO, WKvO):\n ARTs = YKHO.s_rng.normal(size=WKvO.shape, avg=0.0, std=YKHO.corruption_level, dtype=e89i.config.floatX)\n return ARTs * YKHO.variance_map + WKvO",
"def bd80(YKHO, input):\n return YKHO.theano_rng.binomial(size=input.shape, n=1, p=1 - YKHO.corrupt_input_l, dtype=e89i.config.floatX... | [
"0.6968712",
"0.6322659",
"0.6209984",
"0.62051606",
"0.5759763",
"0.57580286",
"0.5696416",
"0.55372584",
"0.54685783",
"0.54180473",
"0.5317328",
"0.53071034",
"0.52875096",
"0.5271531",
"0.52702314",
"0.5257406",
"0.52477264",
"0.52360266",
"0.5225359",
"0.519407",
"0.5192... | 0.6804757 | 1 |
Return whether two IP sets contain exactly the same addresses. | def xa14(YKHO, Elif):
if not isinstance(Elif, wnUB):
return False
return wzZh.ipset_is_equal(YKHO.set, Elif.set) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p6XU(YKHO, LX4V, SpNa):\n YVv6 = set(LX4V.elements)\n rA0f = set(SpNa.elements)\n return YVv6.issubset(rA0f) or rA0f.issubset(YVv6)",
"def NB1b(YKHO, CZxs, AhJh):\n Ylbp = False\n for KCHu in YKHO._data:\n if CZxs in KCHu and AhJh in KCHu:\n Ylbp = True\n break\n ... | [
"0.7218479",
"0.68672657",
"0.6617279",
"0.6606687",
"0.6606687",
"0.655697",
"0.65538234",
"0.6546258",
"0.6541315",
"0.6509365",
"0.64934313",
"0.6431487",
"0.6408266",
"0.6399278",
"0.63746685",
"0.6364972",
"0.6360046",
"0.6347552",
"0.633242",
"0.6332059",
"0.6325906",
... | 0.68722737 | 1 |
Return whether an IP set is empty. | def FBfn(YKHO):
return wzZh.ipset_is_empty(YKHO.set) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ebnO(YKHO):\n return not wzZh.ipset_is_empty(YKHO.set)",
"def FBfn(YKHO):\n return wzZh.ipmap_is_empty(YKHO.map)",
"def A4KR(YKHO):\n return len(YKHO._pool) == 0",
"def FBfn(YKHO):\n return len(YKHO._pool) == 0",
"def FBfn(YKHO) -> bool:\n return len(YKHO._contains) == 0",
"def FBfn(YK... | [
"0.8127448",
"0.7930414",
"0.7647775",
"0.7524034",
"0.73700166",
"0.7339079",
"0.73206925",
"0.73206925",
"0.73117894",
"0.73114514",
"0.73091435",
"0.73082113",
"0.7304617",
"0.7291456",
"0.7291456",
"0.7291456",
"0.7291456",
"0.7291456",
"0.7291456",
"0.7291456",
"0.728926... | 0.8762385 | 0 |
Return whether an IP map is empty. | def FBfn(YKHO):
return wzZh.ipmap_is_empty(YKHO.map) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ebnO(YKHO):\n return not wzZh.ipmap_is_empty(YKHO.map)",
"def FBfn(YKHO):\n return wzZh.ipset_is_empty(YKHO.set)",
"def A4KR(map):\n lsmZ = True\n for oeNL in range(D5g7.size(map['table'])):\n bTKY = D5g7.getElement(map['table'], oeNL + 1)\n if bTKY['key'] != None and bTKY['key'] ... | [
"0.83483917",
"0.75399715",
"0.7489818",
"0.72315997",
"0.7129968",
"0.7102832",
"0.7068059",
"0.7054125",
"0.7046441",
"0.7046441",
"0.7043564",
"0.7029271",
"0.70288944",
"0.70288944",
"0.70193815",
"0.7010226",
"0.7004682",
"0.7001407",
"0.69977313",
"0.6992701",
"0.698996... | 0.8998053 | 0 |
Computes the total energy of the system for a given position | def dtD8(FBNX: pd.DataFrame, ojhJ: pd.DataFrame) -> int:
meX1 = FBNX.abs().sum(axis=1)
N_Ko = ojhJ.abs().sum(axis=1)
return sum(meX1 * N_Ko) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XBpR(FBNX: pd.DataFrame, paSp: int=10) -> int:\n ojhJ = rLdf.DataFrame({'x': [0] * len(FBNX), 'y': [0] * len(FBNX), 'z': [0] * len(FBNX)})\n for YRbF in range(paSp):\n ojhJ = mFtT(FBNX, ojhJ)\n FBNX = FBNX + ojhJ\n return dtD8(FBNX, ojhJ)",
"def zrlw(YKHO):\n pY2p = uwaB.physical_co... | [
"0.7529577",
"0.7446199",
"0.74258494",
"0.7417685",
"0.7409086",
"0.7384921",
"0.7366527",
"0.730405",
"0.7216314",
"0.72028726",
"0.7181386",
"0.7167144",
"0.7158759",
"0.712209",
"0.705574",
"0.692149",
"0.69153076",
"0.68737227",
"0.679874",
"0.6792858",
"0.6779364",
"0... | 0.7319196 | 7 |
Helper function to determine if a variable x is null or not. | def GKlK(YKHO, WKvO: any) -> bool:
return isinstance(WKvO, float) and epAf.isnan(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8rq(WKvO):\n return WKvO is not None",
"def tWmy(SRYB):\n return SRYB != None",
"def uYVM(SRYB):\n if SRYB is None or not SRYB:\n return True\n if any((isinstance(SRYB, KCHu) for KCHu in [str, list, tuple, set])) and len(SRYB) == 0:\n return True\n if isinstance(SRYB, str) and... | [
"0.7328554",
"0.71155214",
"0.6900641",
"0.66914225",
"0.6663548",
"0.6407877",
"0.63091034",
"0.6227551",
"0.62274116",
"0.6156314",
"0.60532653",
"0.6002863",
"0.59732443",
"0.59719497",
"0.5966999",
"0.5964991",
"0.5900165",
"0.58760357",
"0.58600163",
"0.58230263",
"0.581... | 0.5905992 | 16 |
Crossentropy loss function, naive implementation (with loops) Inputs have dimension D, there are C classes, and we operate on minibatches of N examples. | def C25O(XcU5, EcVT, LVAh, lQ3t):
N77f = 0.0
HFON = oyIN.zeros_like(XcU5)
Pdtj = EcVT.shape[0]
nZt5 = XcU5.shape[1]
for YRbF in range(Pdtj):
V08L = EcVT[YRbF].dot(XcU5)
V08L -= oyIN.max(V08L)
unLJ = oyIN.sum(oyIN.exp(V08L))
XblH = lambda G1Hx: oyIN.exp(V08L[G1Hx]) / u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CqbS(**B2fa) -> YrBT:\n return KQC9",
"def CqbS(EcVT, LVAh, RMWN=True):\n E3D9 = LVAh.shape[0]\n if RMWN:\n d_oh = -oyIN.log(oyIN.max(EcVT * LVAh, -1))\n else:\n d_oh = -oyIN.log(EcVT[range(E3D9), LVAh])\n N77f = oyIN.sum(d_oh) / E3D9\n return N77f",
"def CqbS(cgmM, XP5J):\n... | [
"0.69495684",
"0.69177157",
"0.68428034",
"0.6814304",
"0.6758068",
"0.6702218",
"0.6642081",
"0.6596823",
"0.6578491",
"0.65644884",
"0.6563975",
"0.65403014",
"0.65192664",
"0.65192664",
"0.6503482",
"0.6499705",
"0.64945656",
"0.64891076",
"0.6480807",
"0.6467565",
"0.6458... | 0.63205487 | 33 |
Crossentropy loss function, vectorized version. Inputs and outputs are the same as in cross_entropoy_loss_naive. | def QKMi(XcU5, EcVT, LVAh, lQ3t):
N77f = 0.0
HFON = oyIN.zeros_like(XcU5)
Pdtj = EcVT.shape[0]
nZt5 = XcU5.shape[1]
V08L = EcVT.dot(XcU5)
V08L -= oyIN.max(V08L, axis=1, keepdims=True)
unLJ = oyIN.sum(oyIN.exp(V08L), axis=1, keepdims=True)
XblH = oyIN.exp(V08L) / unLJ
N77f = oyIN.sum(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qN0O():\n return U78l.CrossEntropyLoss()",
"def CqbS(ZxJs, LVAh):\n from numpy import log, sum\n r8hN = LVAh.shape[0]\n XP5J = ZxJs\n d_oh = -log(XP5J[range(r8hN), LVAh])\n N77f = sum(d_oh) / r8hN\n return N77f",
"def CqbS(aJu6, nvEb, jDK_=-1, _hZ2=1e-07):\n nvEb = ZShU.clip(nvEb, _... | [
"0.73509604",
"0.7306688",
"0.72734684",
"0.7256321",
"0.7250249",
"0.72487295",
"0.724559",
"0.72013646",
"0.7191307",
"0.7190898",
"0.7174809",
"0.7104302",
"0.7094377",
"0.7070888",
"0.70589197",
"0.7036073",
"0.70332295",
"0.70327854",
"0.70228267",
"0.7020257",
"0.698976... | 0.6828674 | 29 |
Set instance attributes and create slack client | def FIMM(YKHO, GPtr):
YKHO.config = GPtr
YKHO.slack_client = Du3i(YKHO.config.SLACK_TOKEN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, GPtr):\n YKHO._slack_client = YKHO._connect(GPtr['slack_bot_token'])\n YKHO.bot_id = YKHO._get_user_id()\n YKHO.default_channel = GPtr['default_channel']",
"def FIMM(YKHO):\n super().__init__(websocket=FM6F(), slack_access_token=GHQf, github_access_token=eZkI, timezone=FXGE.timezone('A... | [
"0.6797116",
"0.67638814",
"0.6660995",
"0.6396746",
"0.63272035",
"0.6321388",
"0.62868756",
"0.6227542",
"0.62020427",
"0.61476713",
"0.61382717",
"0.61299807",
"0.6118268",
"0.6053337",
"0.60437185",
"0.6025882",
"0.5986845",
"0.5973288",
"0.59551275",
"0.59497654",
"0.594... | 0.71584666 | 0 |
Post to Slack channel defined in configuration | def uPGH(YKHO, l5Ny):
YKHO.slack_client.api_call('chat.postMessage', channel=YKHO.config.SLACK_CHANNEL, text=l5Ny, username='pybot', icon_emoji=':robot_face:') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IohM(leAC='Test', Ol8d='Hello world!', qfpW='#999999'):\n qD78 = dict(fallback=Ol8d, title=leAC, text=Ol8d, color=qfpW)\n Mkmy = x0hE.chat_postMessage(channel=a5v3, attachments=[qD78], username=f'{CmVG} DBA alert')\n return Mkmy",
"def k_ov(Vt89, l5Ny, NtEF, YwkQ):\n GPtr = enR0.ConfigParser()\n ... | [
"0.6974925",
"0.68494374",
"0.68440264",
"0.68244267",
"0.6739935",
"0.66531885",
"0.65750635",
"0.65197766",
"0.6519005",
"0.6491231",
"0.648801",
"0.6487364",
"0.648424",
"0.6365831",
"0.63640493",
"0.6212058",
"0.6177811",
"0.6165628",
"0.6150504",
"0.6147322",
"0.61369663... | 0.75266784 | 0 |
Return True if the user is authenticated. | def rts1(YKHO):
return YKHO.authenticated | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rts1(YKHO):\n return YKHO.user is not None and YKHO.state == yTCL.authenticated",
"def rts1(YKHO):\n return bool(Vu5X())",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n return True",
"def rts1(YKHO):\n retu... | [
"0.8739372",
"0.87086535",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.86574197",
"0.8613915",
"0.8609252",
"0.8578436",
"0.83723366",
"0.83587176",
"0.8258534",
"0.82273275",
"0.8209421",
"0.8200795",
"0.8174884",
"0.81280386",
"0.8... | 0.8580474 | 20 |
False, as anonymous users aren't supported. | def wDqn(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wDqn():\n return False",
"def wDqn(YKHO):\n return False",
"def wDqn(YKHO):\n return False",
"def _JeQ(YKHO):\n return YKHO._is_anonymous_access_allowed",
"def rts1(YKHO):\n return False",
"def SzmQ(rxPi):\n rxPi = rxPi or koZo()\n return str(rxPi.get('user_id')) == Cj1w",
"def... | [
"0.85624325",
"0.83800477",
"0.82456774",
"0.7815806",
"0.7576082",
"0.72904116",
"0.72619915",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72347337",
"0.72338396",
"0.715833",
"0.7106215",
"0.70944613",
"0.70567185",
"0.70209265",
"... | 0.8360155 | 15 |
We perform several subprocess.check_output calls, but we want to only mock one of them at a time. This function helps us do that. | def TMgA(ZZ9R):
def FYKK(g4y1, **B2fa):
while len(g4y1) >= 2 and g4y1[1] in ['--git-dir', '--work-tree']:
g4y1 = g4y1[0:1] + g4y1[3:]
LGXO = ' '.join(map(lambda WKvO: WKvO.decode('utf-8') if not isinstance(WKvO, str) else WKvO, g4y1))
for SjLr in ZZ9R:
if not LGXO.st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iE93(AZgw):\n return AZgw.patch('d.subprocess.check_output')",
"def iXC1(AZgw):\n return AZgw.patch('d.subprocess.check_call')",
"def aoWp(YKHO, AZgw):\n AZgw.stopall()\n cxSi = ['who', '-b']\n MpXb = 'test_who'\n rhUM = False\n LZBF = AZgw.MagicMock(name='mock_map_type_to_command')\n ... | [
"0.8127237",
"0.7088371",
"0.6627398",
"0.6595417",
"0.65784854",
"0.6552999",
"0.6530796",
"0.6462103",
"0.6422113",
"0.6417455",
"0.6387821",
"0.6315237",
"0.6315186",
"0.6289824",
"0.6253521",
"0.62160534",
"0.6207354",
"0.6163086",
"0.61532134",
"0.6119532",
"0.61189353",... | 0.69764817 | 2 |
Utility method that returns the first child element identified by its name. | def LRvv(U6D_: org.w3c.dom.Element, vIwR: str) -> QAIN.w3c.dom.Element:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO, mWFP: str) -> QGpr.Element:\n return YKHO.from_name(mWFP)[0]",
"def rtez(J_Es, mWFP, GQk7=False):\n mWFP = mWFP.lower()\n if not J_Es.hasChildNodes():\n return None\n for aUGN in J_Es.childNodes:\n if aUGN.nodeType != aUGN.ELEMENT_NODE:\n continue\n if a... | [
"0.83441937",
"0.7863166",
"0.78584886",
"0.7703127",
"0.7387351",
"0.7372053",
"0.72751904",
"0.72557247",
"0.71973526",
"0.7178503",
"0.71554446",
"0.70782673",
"0.7065373",
"0.7054879",
"0.696399",
"0.68811095",
"0.68765306",
"0.67918646",
"0.67334455",
"0.67287636",
"0.66... | 0.5961317 | 36 |
Givne a sent as str return ngrams as a list of tuple | def xg2I(_dZy, exwG):
yCs1 = wr3U(_dZy)
if exwG != 1:
yCs1.insert(0, '<s>')
yCs1.append('</s>')
return [tuple(yCs1[YRbF:YRbF + exwG]) for YRbF in range(0, len(yCs1) - exwG + 1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hesu(YKHO, yAmx, exwG):\n return [tuple(yAmx[YRbF:YRbF + exwG]) for YRbF in range(len(yAmx) - exwG + 1)]",
"def cib1(l5Ny, exwG=3):\n if exwG == 'word':\n return l5Ny.split()\n return list(eNCK(*[YYlr(YRbF, exwG) for YRbF in l5Ny.lower().split()]))",
"def pCSA(V22M, exwG=1):\n return [tu... | [
"0.7276324",
"0.7268101",
"0.7165608",
"0.7099095",
"0.7023482",
"0.6944611",
"0.6894021",
"0.6889632",
"0.6856115",
"0.6845594",
"0.6821956",
"0.6743374",
"0.6728121",
"0.6705199",
"0.66921085",
"0.65555626",
"0.654637",
"0.6523114",
"0.65055984",
"0.64340365",
"0.6419373",
... | 0.71661574 | 2 |
reinitialize all servers and their channels | def vCys(YKHO, vCAg):
YKHO.remove_servers_channels()
for rMLi in vCAg:
LIWd = rMLi['server']
NzQY = LIWd.name
YKHO._init_section_id(LIWd)
YKHO._sections[YKHO._server_hash(NzQY)] = LIWd
for bJyX in rMLi['channels']:
if bJyX is None:
continue
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wLeh(YKHO):\n HwSA = []\n for bGrB, Oa1e in YKHO.groups.items():\n Oa1e.get_servers(HwSA)\n for KCHu in HwSA:\n YKHO.servers[KCHu.vid] = KCHu",
"def OdZB(Emd4):\n Emd4._inited.clear()",
"async def reinit_manager(OaeV):\n await froe.reinit()\n await OaeV.send('Successfully re... | [
"0.7014916",
"0.6924551",
"0.6457707",
"0.6437192",
"0.6390924",
"0.63441694",
"0.6144403",
"0.609468",
"0.60830975",
"0.5959147",
"0.5954305",
"0.5942178",
"0.59123576",
"0.58808565",
"0.5879842",
"0.58571106",
"0.5795714",
"0.57858443",
"0.57686675",
"0.5763447",
"0.5761091... | 0.5573355 | 39 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / oyIN.sum(Bcwd.ravel())
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
print(Bcwd)
LZpg = QrM1.figure
QrM1.imshow(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.7917871",
"0.791609... | 0.8019153 | 3 |
Set the log level for given logger and all handlers | def fTst(GJcf, ABDL):
if isinstance(GJcf, str):
RKD7 = fZx2(GJcf)
else:
RKD7 = GJcf
RKD7.setLevel(ABDL)
for DCgT in RKD7.handlers:
DCgT.setLevel(ABDL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wgh3(YKHO, ABDL):\n oTZi = YKHO.logger.handlers\n for DCgT in oTZi:\n DCgT.setLevel(ABDL)",
"def wgh3(ABDL: int) -> None:\n for bo34 in Ry7x:\n bo34.setLevel(ABDL)",
"def lWLw(bo34, ABDL):\n bo34.setLevel(ABDL)\n for _FS_ in ousj:\n bo34.addHandler(_FS_)\n return bo34... | [
"0.7544083",
"0.74587137",
"0.7368688",
"0.7325677",
"0.7323056",
"0.7320412",
"0.73035693",
"0.72241944",
"0.7175546",
"0.7122466",
"0.7071112",
"0.69899726",
"0.6974298",
"0.6961429",
"0.69023854",
"0.68229544",
"0.68148625",
"0.67883754",
"0.674714",
"0.67307884",
"0.67267... | 0.7812011 | 0 |
A property to set the start date from which the metric is fetched | def yKcO(YKHO):
return YKHO._from | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YFxH(YKHO, _c1T):\n pass",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
"def kepv(YKHO, kepv):\n YKHO._start_date = kepv",
... | [
"0.7651095",
"0.74797356",
"0.73640335",
"0.73112905",
"0.73112905",
"0.73112905",
"0.73112905",
"0.73112905",
"0.73112905",
"0.73112905",
"0.73112905",
"0.73112905",
"0.722052",
"0.71963406",
"0.7039021",
"0.7039021",
"0.7039021",
"0.7039021",
"0.6943389",
"0.6943389",
"0.69... | 0.0 | -1 |
A property to set the end date from which the metric is fetched | def Os4s(YKHO):
return YKHO._until | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EmhK(YKHO, _c1T):\n pass",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO):\n return YKHO.__end_date",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf",
"def KhBf(YKHO... | [
"0.76984525",
"0.753401",
"0.7386682",
"0.7355923",
"0.7355923",
"0.7355923",
"0.7355923",
"0.7355923",
"0.7355923",
"0.7355923",
"0.7355923",
"0.71979177",
"0.71979177",
"0.71979177",
"0.7192801",
"0.7052094",
"0.7039563",
"0.7039563",
"0.7025651",
"0.6996496",
"0.68688715",... | 0.0 | -1 |
Check if a matrix is symmetric positivedefinite. | def kI7A(SppC):
try:
if len(SppC.shape) != 2 or SppC.shape[0] != SppC.shape[1]:
return False
oyIN.linalg.cholesky(SppC)
return True
except oyIN.linalg.LinAlgError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z_n9(SppC):\n return H4yH.allclose(SppC, SppC.T)",
"def FioC(vb7U):\n return oyIN.allclose(vb7U.T, vb7U)",
"def FioC(vb7U, SGf8=None):\n if SGf8 is None:\n SGf8 = oyIN.finfo(vb7U.dtype).eps\n assert vb7U.ndim == 2\n if vb7U.shape[0] != vb7U.shape[1]:\n return False\n return ... | [
"0.81164634",
"0.7551254",
"0.7257886",
"0.7103587",
"0.70027435",
"0.69661516",
"0.6822792",
"0.6735763",
"0.67137986",
"0.6709991",
"0.6610399",
"0.6609868",
"0.65940386",
"0.6574847",
"0.6566285",
"0.64804894",
"0.646248",
"0.6462106",
"0.6434021",
"0.6391697",
"0.6352792"... | 0.86486775 | 0 |
Initialze the tag. Takes on argument of type String | def FIMM(YKHO, TZ9E):
YKHO.tag = TZ9E.lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, TZ9E):\n YKHO.tag = TZ9E",
"def FIMM(YKHO, TZ9E):\n YKHO.tag = TZ9E.lower()\n YKHO.attrs = {}\n YKHO.contents = ()",
"def FIMM(YKHO):\n YKHO.tag = None",
"def utDp(YKHO, TZ9E):\n if not isinstance(TZ9E, str):\n raise TypeError('Tag must be a string')\n YKHO.token['r... | [
"0.72686875",
"0.71819913",
"0.699681",
"0.67347914",
"0.6734112",
"0.6644734",
"0.6598448",
"0.6582968",
"0.65582913",
"0.6546194",
"0.6439252",
"0.6411006",
"0.6397095",
"0.636618",
"0.62935704",
"0.62808144",
"0.6278395",
"0.6267621",
"0.62641025",
"0.6255274",
"0.62535197... | 0.7232194 | 1 |
Evaluates the fitness of each individual, in terms of similarity. | def XGg9(DM04, SMcL):
fyP7 = DM04.network.loc[:, ['in'] + FL53]
for YRbF in DM04.network.index:
DM04.network.loc[YRbF, 'age'] += 1
return (OnKj(fyP7, SMcL),) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wkbQ(YKHO):\n pass",
"def Hoa4(YKHO, CHNM: Population):\n for exwG, DM04 in enumerate(CHNM.individuals):\n Rwqe = YKHO._create_dataset(DM04, YKHO._X)\n cCrA = [GYRh.eval_fitness(X=Rwqe, y=YKHO._y, num_feats=len(CHNM.features)) for GYRh in YKHO.fitness]\n if YKHO.optimize_features:\... | [
"0.7028236",
"0.7027537",
"0.6962035",
"0.6937548",
"0.6771565",
"0.67507744",
"0.6725496",
"0.6593573",
"0.65333354",
"0.65192664",
"0.6507758",
"0.6474501",
"0.6470134",
"0.6466546",
"0.64599156",
"0.6453565",
"0.6447242",
"0.64172465",
"0.635991",
"0.63503724",
"0.63485926... | 0.58489895 | 61 |
Convert a scipy sparse matrix to a torch sparse tensor. | def FXf_(On0F):
On0F = On0F.tocoo().astype(oyIN.float32)
_0VL = ht2j.from_numpy(oyIN.vstack((On0F.row, On0F.col)).astype(oyIN.int64))
hkxX = ht2j.from_numpy(On0F.data)
ROpF = ht2j.Size(On0F.shape)
return ht2j.sparse.FloatTensor(_0VL, hkxX, ROpF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWjY(YKHO, SppC: sp.csr_matrix):\n SppC = SppC.tocoo()\n WKvO = ht2j.sparse.FloatTensor(ht2j.LongTensor(oyIN.array([SppC.row, SppC.col])), ht2j.FloatTensor(SppC.data.astype(oyIN.float32)), SppC.shape).to(YKHO.device)\n return WKvO",
"def FXf_(On0F):\n _0VL = ht2j.from_numpy(oyIN.vstack((On0F.row,... | [
"0.83033675",
"0.8148503",
"0.8032235",
"0.8029749",
"0.8029749",
"0.8029749",
"0.8029749",
"0.8029749",
"0.8029749",
"0.8029749",
"0.8029749",
"0.8029749",
"0.8029749",
"0.8029749",
"0.8029749",
"0.8029749",
"0.80132157",
"0.7997072",
"0.7997072",
"0.7984944",
"0.7984944",
... | 0.8045674 | 2 |
Gets the identifier of this VersionedConnection. The component's unique identifier | def Ilxn(YKHO):
return YKHO._identifier | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PoKV(YKHO) -> str:\n return qe4Y.get(YKHO, 'component_id')",
"def PoKV(YKHO) -> str:\n return qe4Y.get(YKHO, 'component_id')",
"def PoKV(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'component_id')",
"def PoKV(YKHO) -> cIM4:\n return YKHO.configuration.component_id",
"def id(YKHO):\n ... | [
"0.78510314",
"0.78510314",
"0.76195484",
"0.7616397",
"0.7576878",
"0.747728",
"0.7219206",
"0.71355915",
"0.7094497",
"0.7048979",
"0.6985249",
"0.6969072",
"0.69526106",
"0.6937948",
"0.69326395",
"0.6885128",
"0.6848697",
"0.683053",
"0.6819454",
"0.68151546",
"0.6814432"... | 0.677848 | 26 |
Sets the identifier of this VersionedConnection. The component's unique identifier | def Ilxn(YKHO, Ilxn):
YKHO._identifier = Ilxn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2tI(YKHO, Ilxn):\n YKHO.identifier = Ilxn",
"def f6Qh(YKHO):\n raise NotImplementedError()",
"def cohK(YKHO, Ilxn):\n YKHO._config['identifier'] = Ilxn",
"def cohK(YKHO, Ilxn):\n YKHO._config['identifier'] = Ilxn",
"def Ilxn(YKHO, Ilxn):\n YKHO._identifier = Ilxn",
"def Ilxn(YKHO, Ilx... | [
"0.6714855",
"0.64746994",
"0.63887763",
"0.63887763",
"0.6382856",
"0.6382856",
"0.6350311",
"0.6349375",
"0.6309655",
"0.6275971",
"0.62643385",
"0.6234821",
"0.6218606",
"0.61523587",
"0.61245376",
"0.6109239",
"0.60927093",
"0.6067607",
"0.6061418",
"0.60599065",
"0.60599... | 0.63267934 | 10 |
Gets the instance_identifier of this VersionedConnection. The instance ID of an existing component that is described by this VersionedComponent, or null if this is not mapped to an instantiated component | def wOnp(YKHO):
return YKHO._instance_identifier | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pl65(YKHO):\n return YKHO.instance_id",
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def PoKV(YKHO) -> str:\n return qe4Y.get(YKHO, 'component_id')",
"def PoKV(YKHO) -> str:\n return qe4Y.get(YKHO, 'component_id')",
"def PoKV(YKHO) -> cIM4:\n return YKHO.configuratio... | [
"0.71567833",
"0.7110711",
"0.7094666",
"0.7094666",
"0.7085142",
"0.7053215",
"0.7053215",
"0.7053215",
"0.7038276",
"0.7038276",
"0.7038276",
"0.7038276",
"0.6979187",
"0.6979187",
"0.6979187",
"0.69450146",
"0.69450146",
"0.69450146",
"0.69450146",
"0.69450146",
"0.6945014... | 0.7401791 | 0 |
Sets the instance_identifier of this VersionedConnection. The instance ID of an existing component that is described by this VersionedComponent, or null if this is not mapped to an instantiated component | def wOnp(YKHO, wOnp):
YKHO._instance_identifier = wOnp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_gm(YKHO, o_gm):\n YKHO._instance_id = o_gm",
"def FIMM(Ro_8, *, o_gm: pulumi.Input[int]):\n qe4Y.set(Ro_8, 'instance_id', o_gm)",
"def FIMM(Ro_8, *, o_gm: Optional[pulumi.Input[int]]=None):\n if o_gm is not None:\n qe4Y.set(Ro_8, 'instance_id', o_gm)",
"def VSB5(YKHO, Ty9i, tyeH=False):... | [
"0.6863868",
"0.6251302",
"0.61940706",
"0.5996129",
"0.58834374",
"0.5672411",
"0.5672411",
"0.5672411",
"0.5672411",
"0.5672411",
"0.55814195",
"0.55692",
"0.550248",
"0.55002433",
"0.5481638",
"0.5461459",
"0.5461459",
"0.5461459",
"0.5461459",
"0.5426572",
"0.5426572",
... | 0.71732706 | 0 |
Gets the name of this VersionedConnection. The component's name | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o0oP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection_name')",
"def yr70(YKHO):\n return YKHO._name",
"def o0oP(YKHO) -> str:\n return qe4Y.get(YKHO, 'connection_name')",
"def mWFP(YKHO):\n return o58j._NAME",
"def ZcDZ(YKHO):\n if YKHO.componentName:\n return YKHO.c... | [
"0.77749544",
"0.77625465",
"0.7752423",
"0.74572194",
"0.71108466",
"0.7099396",
"0.70917237",
"0.70859003",
"0.7077464",
"0.7077464",
"0.7064276",
"0.7030168",
"0.7030168",
"0.7030168",
"0.7026887",
"0.6983804",
"0.6955677",
"0.6955677",
"0.6955677",
"0.6955677",
"0.6951921... | 0.0 | -1 |
Sets the name of this VersionedConnection. The component's name | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.__name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO,... | [
"0.7306374",
"0.7306374",
"0.72857684",
"0.7272484",
"0.7251567",
"0.7251567",
"0.7251567",
"0.7251567",
"0.7251567",
"0.7246867",
"0.7212615",
"0.7121809",
"0.70949745",
"0.70943546",
"0.69884944",
"0.69769275",
"0.69769275",
"0.69769275",
"0.69769275",
"0.69571126",
"0.6953... | 0.68741834 | 94 |
Sets the comments of this VersionedConnection. The usersupplied comments for the component | def Tj1O(YKHO, Tj1O):
YKHO._comments = Tj1O | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tj1O(YKHO, Tj1O):\n YKHO.container['comments'] = Tj1O",
"def NZLa(YKHO, u2cf):\n YKHO.comments = u2cf",
"def Tj1O(YKHO, Tj1O):\n if Tj1O is not None and len(Tj1O) > 1000:\n raise ValueError('Invalid value for `comments`, length must be less than or equal to `1000`')\n YKHO._comments = Tj... | [
"0.7456346",
"0.6909691",
"0.6811351",
"0.67852646",
"0.6639198",
"0.6522824",
"0.63997614",
"0.6371351",
"0.6371351",
"0.6333562",
"0.63295907",
"0.63295907",
"0.63295907",
"0.63295907",
"0.63295907",
"0.63295907",
"0.63295907",
"0.63295907",
"0.63295907",
"0.63295907",
"0.6... | 0.76170665 | 2 |
Gets the position of this VersionedConnection. The component's position on the graph | def dQgj(YKHO):
return YKHO._position | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dQgj(YKHO):\n return YKHO._position",
"def Iuzb(YKHO):\n return YKHO._pos",
"def Iuzb(YKHO):\n return YKHO._pos",
"def Iuzb(YKHO):\n return YKHO.__position",
"def Iuzb(YKHO):\n return YKHO._position",
"def dQgj(YKHO):\n return YKHO.__position",
"def dQgj(YKHO):\n return YKHO.__... | [
"0.7344115",
"0.73411053",
"0.73411053",
"0.7332435",
"0.7332214",
"0.73077065",
"0.73077065",
"0.73077065",
"0.7282161",
"0.7278244",
"0.72649384",
"0.72649384",
"0.7245624",
"0.72257674",
"0.72051096",
"0.71659034",
"0.715127",
"0.71269375",
"0.7110756",
"0.70821744",
"0.70... | 0.7313003 | 13 |
Sets the source of this VersionedConnection. The source of the connection. | def JZXy(YKHO, JZXy):
YKHO._source = JZXy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZXy(YKHO, JZXy: Source):\n YKHO._source = JZXy",
"def xUuB(YKHO, JZXy):\n YKHO.data['source'] = JZXy",
"def nwXS(YKHO, JZXy):\n if JZXy != YKHO._source:\n YKHO._source = JZXy\n YKHO._channel = ''\n YKHO._channel_name = ''\n YKHO._is_forced_val = True\n YKHO._for... | [
"0.7144581",
"0.7139723",
"0.7095864",
"0.69880015",
"0.6860365",
"0.67446506",
"0.65222204",
"0.6520544",
"0.64635473",
"0.64635473",
"0.63877237",
"0.6372306",
"0.6218164",
"0.61966336",
"0.6185863",
"0.6123103",
"0.61074394",
"0.61041737",
"0.6036746",
"0.60270965",
"0.602... | 0.7195893 | 5 |
Sets the destination of this VersionedConnection. The destination of the connection. | def yFgu(YKHO, yFgu):
YKHO._destination = yFgu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mbgn(YKHO, BWXx):\n try:\n YKHO._destination = BWXx\n YKHO._repository = iyRm.repository(GD_A.ui(), YKHO._destination)\n except:\n YKHO._repository = None",
"def uMIi(YKHO, uMIi):\n YKHO._destination_config = uMIi",
"def mOv4(YKHO, AU8u):\n if type(AU8u) != PvyL:\n r... | [
"0.69039255",
"0.641365",
"0.6377837",
"0.63580644",
"0.61866975",
"0.6149715",
"0.594955",
"0.58278173",
"0.57887083",
"0.57559043",
"0.5727966",
"0.56784093",
"0.5650666",
"0.55692583",
"0.5546389",
"0.55313677",
"0.55067194",
"0.5497181",
"0.5369489",
"0.5366947",
"0.53302... | 0.73776555 | 0 |
Gets the label_index of this VersionedConnection. The index of the bend point where to place the connection label. | def mbWt(YKHO):
return YKHO._label_index | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NvPe(YKHO, UXqs):\n for or8S, YR_y in enumerate(YKHO):\n if YR_y.label == UXqs:\n return or8S\n return -1",
"def Vn7Z(YKHO, UXqs):\n if UXqs in YKHO.labels:\n return YKHO.labels.index(UXqs)\n else:\n YKHO.labels.append(UXqs)\n return YKHO.labels.index(UXqs)"... | [
"0.6727862",
"0.66204184",
"0.66039765",
"0.6571471",
"0.6556231",
"0.6408738",
"0.63165253",
"0.62246567",
"0.6137593",
"0.61325324",
"0.60939205",
"0.6070093",
"0.6070093",
"0.6070093",
"0.6070093",
"0.6070093",
"0.6070093",
"0.6070093",
"0.6070093",
"0.6070093",
"0.6070093... | 0.802188 | 0 |
Gets the z_index of this VersionedConnection. The z index of the connection. | def QNqm(YKHO):
return YKHO._z_index | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mZUR(YKHO):\n return YKHO._getz_index",
"def mZUR(YKHO, mZUR):\n YKHO._getz_index = mZUR",
"def GjII(YKHO, RMuO):\n klBa = oyIN.around((RMuO - YKHO.oz) / YKHO.dz)\n return int(klBa)",
"def QNqm(YKHO, QNqm):\n YKHO._z_index = QNqm",
"def ZNbK(YKHO):\n bo34.debug('Func: currentVersionIn... | [
"0.77253675",
"0.6177417",
"0.6173166",
"0.6049642",
"0.5866268",
"0.58088696",
"0.57979256",
"0.57634187",
"0.5742695",
"0.5736248",
"0.571728",
"0.57069707",
"0.5670593",
"0.56654567",
"0.56356966",
"0.5614658",
"0.5614658",
"0.5550554",
"0.5550554",
"0.5550554",
"0.5550554... | 0.78977776 | 0 |
Gets the back_pressure_object_threshold of this VersionedConnection. The object count threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing t... | def x6Tf(YKHO):
return YKHO._back_pressure_object_threshold | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x6Tf(YKHO, x6Tf):\n YKHO._back_pressure_object_threshold = x6Tf",
"def AlJY(YKHO):\n return YKHO._back_pressure_data_size_threshold",
"def AlJY(YKHO, AlJY):\n YKHO._back_pressure_data_size_threshold = AlJY",
"def gwAu(Vte4, dgIT):\n NvbC = jYIJ._project_or_clone(Vte4)\n for ca4A in NvbC:\n... | [
"0.77181",
"0.7069356",
"0.6146903",
"0.5801722",
"0.5776382",
"0.5658145",
"0.5658145",
"0.5492331",
"0.5375743",
"0.5353464",
"0.530409",
"0.528614",
"0.5284323",
"0.5245156",
"0.5240441",
"0.5236909",
"0.5203275",
"0.51861197",
"0.5134054",
"0.50981814",
"0.5080911",
"0.... | 0.8643123 | 0 |
Sets the back_pressure_object_threshold of this VersionedConnection. The object count threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pushing t... | def x6Tf(YKHO, x6Tf):
YKHO._back_pressure_object_threshold = x6Tf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x6Tf(YKHO):\n return YKHO._back_pressure_object_threshold",
"def AlJY(YKHO, AlJY):\n YKHO._back_pressure_data_size_threshold = AlJY",
"def gwAu(Vte4, dgIT):\n NvbC = jYIJ._project_or_clone(Vte4)\n for ca4A in NvbC:\n if ca4A.value < dgIT:\n ca4A.value, ca4A.error = (0, 0)\n ... | [
"0.71884716",
"0.67659616",
"0.5780856",
"0.5717957",
"0.5623481",
"0.5440922",
"0.5435245",
"0.5223511",
"0.51386034",
"0.50720525",
"0.5012596",
"0.5006339",
"0.49869636",
"0.49370492",
"0.4936689",
"0.4902464",
"0.48768574",
"0.48541486",
"0.47297552",
"0.4721113",
"0.4664... | 0.86187595 | 0 |
Gets the back_pressure_data_size_threshold of this VersionedConnection. The object data size threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pu... | def AlJY(YKHO):
return YKHO._back_pressure_data_size_threshold | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AlJY(YKHO, AlJY):\n YKHO._back_pressure_data_size_threshold = AlJY",
"def x6Tf(YKHO):\n return YKHO._back_pressure_object_threshold",
"def x6Tf(YKHO, x6Tf):\n YKHO._back_pressure_object_threshold = x6Tf",
"def QA4m(YKHO) -> int:\n return YKHO._j_checkpoint_storage.getMinFileSizeThreshold()",
... | [
"0.78312105",
"0.77389544",
"0.6767024",
"0.60794735",
"0.6065001",
"0.59814817",
"0.5893117",
"0.5890803",
"0.5836023",
"0.57315356",
"0.5621337",
"0.5621337",
"0.5587822",
"0.55608565",
"0.5558321",
"0.55280036",
"0.5505283",
"0.5491662",
"0.54877007",
"0.54628205",
"0.5447... | 0.84260064 | 0 |
Sets the back_pressure_data_size_threshold of this VersionedConnection. The object data size threshold for determining when back pressure is applied. Updating this value is a passive change in the sense that it won't impact whether existing files over the limit are affected but it does help feeder processors to stop pu... | def AlJY(YKHO, AlJY):
YKHO._back_pressure_data_size_threshold = AlJY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x6Tf(YKHO, x6Tf):\n YKHO._back_pressure_object_threshold = x6Tf",
"def AlJY(YKHO):\n return YKHO._back_pressure_data_size_threshold",
"def x6Tf(YKHO):\n return YKHO._back_pressure_object_threshold",
"def LVnU(YKHO, LVnU):\n YKHO._repo_size_limit_threshold_mb = LVnU",
"def mH2I(YKHO, mH2I):\... | [
"0.7592268",
"0.6924934",
"0.6211695",
"0.6131989",
"0.5838929",
"0.5402543",
"0.53954256",
"0.5345035",
"0.52865946",
"0.5257443",
"0.5248578",
"0.52220213",
"0.5212786",
"0.5186569",
"0.51818734",
"0.5174471",
"0.5170987",
"0.5151566",
"0.513395",
"0.51082796",
"0.5104749",... | 0.85663825 | 0 |
Sets the flow_file_expiration of this VersionedConnection. The amount of time a flow file may be in the flow before it will be automatically aged out of the flow. Once a flow file reaches this age it will be terminated from the flow the next time a processor attempts to start work on it. | def ijaW(YKHO, ijaW):
YKHO._flow_file_expiration = ijaW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ijaW(YKHO):\n return YKHO._flow_file_expiration",
"def rkQY(YKHO, rkQY):\n YKHO._token_expiration = rkQY",
"def Mige(YKHO, Mige):\n YKHO._expiration_interval = Mige",
"def bdZ1(YKHO):\n YKHO.expiration = qcWV.now() + fCoM(seconds=YKHO.expires_in - 10)\n G9jH.debug('Token expiration set to ... | [
"0.7241933",
"0.5858315",
"0.57438356",
"0.56768394",
"0.5660425",
"0.54408616",
"0.5379142",
"0.53784305",
"0.5113526",
"0.5093958",
"0.4972095",
"0.49653235",
"0.49210674",
"0.48974377",
"0.48956004",
"0.48558742",
"0.47897676",
"0.47897676",
"0.4775504",
"0.4770185",
"0.47... | 0.89278555 | 0 |
Gets the bends of this VersionedConnection. The bend points on the connection. | def n5ns(YKHO):
return YKHO._bends | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Oly(YKHO):\n return YKHO._graph.get_all_links()",
"def n5ns(YKHO, n5ns):\n YKHO._bends = n5ns",
"def n5ns(YKHO, n5ns):\n YKHO._bends = n5ns",
"def e6Dl(YKHO):\n return YKHO.blists[:]",
"def A3Qc(YKHO):\n return YKHO._bolts",
"def Tsx6(YKHO):\n N8fB = YKHO.__dict__\n Aofo = set((... | [
"0.64364254",
"0.61045074",
"0.61045074",
"0.59877867",
"0.5963126",
"0.5871168",
"0.586563",
"0.5792517",
"0.56854707",
"0.56720257",
"0.5645555",
"0.5645555",
"0.56248957",
"0.56197447",
"0.56197447",
"0.56197447",
"0.56197447",
"0.55867547",
"0.55863756",
"0.55644625",
"0.... | 0.8002686 | 0 |
Gets the load_balance_compression of this VersionedConnection. Whether or not compression should be used when transferring FlowFiles between nodes | def oiWS(YKHO):
return YKHO._load_balance_compression | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oiWS(YKHO, oiWS):\n BbPm = ['DO_NOT_COMPRESS', 'COMPRESS_ATTRIBUTES_ONLY', 'COMPRESS_ATTRIBUTES_AND_CONTENT']\n if oiWS not in BbPm:\n raise ValueError('Invalid value for `load_balance_compression` ({0}), must be one of {1}'.format(oiWS, BbPm))\n YKHO._load_balance_compression = oiWS",
"def k... | [
"0.65132606",
"0.63576114",
"0.63247293",
"0.59485686",
"0.5838227",
"0.5780729",
"0.56748044",
"0.55482644",
"0.54467434",
"0.54363036",
"0.5413613",
"0.529667",
"0.5263979",
"0.5160585",
"0.51479065",
"0.51212233",
"0.5091362",
"0.5073302",
"0.50611496",
"0.5047145",
"0.501... | 0.8167347 | 0 |
Sets the load_balance_compression of this VersionedConnection. Whether or not compression should be used when transferring FlowFiles between nodes | def oiWS(YKHO, oiWS):
BbPm = ['DO_NOT_COMPRESS', 'COMPRESS_ATTRIBUTES_ONLY', 'COMPRESS_ATTRIBUTES_AND_CONTENT']
if oiWS not in BbPm:
raise ValueError('Invalid value for `load_balance_compression` ({0}), must be one of {1}'.format(oiWS, BbPm))
YKHO._load_balance_compression = oiWS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oiWS(YKHO):\n return YKHO._load_balance_compression",
"def KF3f(YKHO, Rrsh):\n aDxC = IqFY.datastore.redis.config.RedisOptions.CompressionConverter()\n YKHO._java_ref.setCompression(aDxC.convert(Rrsh))",
"def lhXW(YKHO):\n Fv2L = super().jobconf()\n if YKHO.options.snappy:\n P_73 = {'... | [
"0.668837",
"0.658266",
"0.5714903",
"0.5628727",
"0.56237054",
"0.55810106",
"0.5554623",
"0.55520606",
"0.55103916",
"0.53882295",
"0.5272379",
"0.5176328",
"0.5114425",
"0.491287",
"0.49071902",
"0.48037845",
"0.47800833",
"0.47138026",
"0.46342933",
"0.4593201",
"0.454723... | 0.76771533 | 0 |
Gets the component_type of this VersionedConnection. | def g5oO(YKHO):
return YKHO._component_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5oO(YKHO) -> cXbK:\n return YKHO.configuration.component_type",
"def Xixj(YKHO):\n return YKHO._connection_type",
"def Xixj(YKHO):\n return YKHO._connection_type",
"def g5oO(YKHO):\n return 'ct'",
"def Xixj(YKHO) -> h8nf[str]:\n return YKHO._connection_type",
"def eL1J(YKHO):\n rai... | [
"0.80864406",
"0.6882048",
"0.6882048",
"0.68408436",
"0.66137916",
"0.6586359",
"0.65048647",
"0.6451614",
"0.6442098",
"0.6225689",
"0.6149628",
"0.6135824",
"0.61290544",
"0.61290544",
"0.61135983",
"0.61135983",
"0.61135983",
"0.61135983",
"0.61135983",
"0.61135983",
"0.6... | 0.82667226 | 0 |
Sets the component_type of this VersionedConnection. | def g5oO(YKHO, g5oO):
BbPm = ['CONNECTION', 'PROCESSOR', 'PROCESS_GROUP', 'REMOTE_PROCESS_GROUP', 'INPUT_PORT', 'OUTPUT_PORT', 'REMOTE_INPUT_PORT', 'REMOTE_OUTPUT_PORT', 'FUNNEL', 'LABEL', 'CONTROLLER_SERVICE', 'REPORTING_TASK', 'PARAMETER_CONTEXT', 'PARAMETER_PROVIDER', 'TEMPLATE', 'FLOW_REGISTRY_CLIENT']
if g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfJp(YKHO, FGxd):\n YKHO.etype = FGxd",
"def fpBc(YKHO, Cx_r):\n YKHO.compo_type = Cx_r",
"def g5oO(YKHO):\n return YKHO._component_type",
"def MmUA(YKHO, g5oO):\n YKHO.component_type = g5oO\n if g5oO == 'healpix':\n YKHO._name.required = False\n YKHO._skycoord.required = Fal... | [
"0.6194599",
"0.6170398",
"0.61031866",
"0.5946605",
"0.59419096",
"0.5828146",
"0.5766248",
"0.5700997",
"0.5684735",
"0.5623629",
"0.5623629",
"0.5613562",
"0.55535066",
"0.55379295",
"0.5529855",
"0.54915607",
"0.54915607",
"0.5484373",
"0.5484373",
"0.5476122",
"0.5475181... | 0.75809443 | 0 |
Gets the group_identifier of this VersionedConnection. The ID of the Process Group that this component belongs to | def sv_3(YKHO):
return YKHO._group_identifier | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._id",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')"... | [
"0.8137948",
"0.8137948",
"0.8137948",
"0.7986834",
"0.79201996",
"0.79201996",
"0.7862726",
"0.7856324",
"0.7752291",
"0.7655195",
"0.7446769",
"0.74325734",
"0.74001175",
"0.7289883",
"0.7289883",
"0.7289883",
"0.72281563",
"0.72281563",
"0.72281563",
"0.72281563",
"0.72281... | 0.8127684 | 3 |
Sets the group_identifier of this VersionedConnection. The ID of the Process Group that this component belongs to | def sv_3(YKHO, sv_3):
YKHO._group_identifier = sv_3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = hE03",
"def hE03(YKHO, hE03):\n YKHO._group_id = h... | [
"0.7518294",
"0.7518294",
"0.7518294",
"0.7518294",
"0.7518294",
"0.7518294",
"0.7239649",
"0.7166395",
"0.7149654",
"0.69653267",
"0.67212975",
"0.67196935",
"0.66776764",
"0.6651987",
"0.6651987",
"0.6651987",
"0.65640146",
"0.6560181",
"0.654211",
"0.64872617",
"0.6426295"... | 0.776042 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, L7XX):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.808826",
"0.808826",
"0.8054592",
"0.79827315",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"0.79666996",
"... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Check whether 'other' is equal to self. By default, 'other' is considered equal if it is a string matching 'self.name'. it is an instance of this type. | def xa14(YKHO, Elif):
if isinstance(Elif, jKi7.string_types):
return Elif == YKHO.name
elif isinstance(Elif, type(YKHO)):
return YKHO.xnd_dtype == Elif.xnd_dtype
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.name == Elif.name",
"def xa14(YKHO, Elif):\n return YKHO.name == Elif.name",
"def xa14(YKHO, Elif):\n return YKHO.getName() == Elif.getName()",
"def xa14(YKHO, Elif):\n if type(YKHO) != type(Elif):\n return False\n else:\n return YKHO.name == E... | [
"0.83886224",
"0.82446945",
"0.82067055",
"0.7938492",
"0.7933023",
"0.7933023",
"0.7906893",
"0.7819593",
"0.7775793",
"0.7775793",
"0.77651256",
"0.7688113",
"0.75874805",
"0.75733924",
"0.7571596",
"0.7561163",
"0.7560877",
"0.7560877",
"0.7548304",
"0.7507894",
"0.7483374... | 0.72562903 | 47 |
A character code (one of 'biufcmMOSUV'), default 'O' This should match the NumPy dtype used when the array is converted to an ndarray, which is probably 'O' for object if the extension type cannot be represented as a builtin NumPy type. See Also numpy.dtype.kind | def eJTR(YKHO):
return oyIN.dtype(YKHO.type).kind | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zRxV(YKHO):\n jzdc = oyIN.array([u'aŀle', u'eñe', u'açò'], dtype='U4')\n _P6x = ddO4.carray(jzdc, dtype='U4')\n YKHO.assertTrue(_P6x.dtype == oyIN.dtype('U4'))\n YKHO.assertTrue(jzdc.dtype == _P6x.dtype)\n Qhng(jzdc, _P6x, 'Arrays are not equal')",
"def eJTR(YKHO):\n if Xugt.types.is_date(Y... | [
"0.57914084",
"0.57651645",
"0.5710867",
"0.5653062",
"0.5472397",
"0.5444641",
"0.5427665",
"0.54223734",
"0.54131496",
"0.54018694",
"0.5363088",
"0.53498995",
"0.5341477",
"0.53250295",
"0.5318825",
"0.5315053",
"0.5311933",
"0.53070295",
"0.52940696",
"0.52760965",
"0.527... | 0.6083046 | 0 |
A string identifying the data type. Will be used for display in, e.g. ``Series.dtype`` | def mWFP(YKHO):
return str(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zJZT(YKHO):\n return Axsy(YKHO.data_type)",
"def wSwq(yDqo: Any) -> str:\n if yDqo is int:\n return 'Int64'\n elif yDqo is float:\n return 'Float64'\n elif yDqo is bool:\n return 'bool'\n return 'string'",
"def yDqo(YKHO) -> str:\n return YKHO._dtype",
"def Ce8C(YKH... | [
"0.8170928",
"0.7862311",
"0.7646698",
"0.7332368",
"0.72843975",
"0.72716475",
"0.72587484",
"0.72587484",
"0.72587484",
"0.7236054",
"0.7178421",
"0.71663415",
"0.7143789",
"0.71425635",
"0.71134084",
"0.71044236",
"0.7100429",
"0.7057926",
"0.70389223",
"0.70199174",
"0.69... | 0.0 | -1 |