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 |
|---|---|---|---|---|---|---|
Split this container into smaller containers of the same type of size 'batch_size'. If the length of this container is not perfectly divisible by 'batch_size', the final container will be shorter than the rest. | def O1rV(YKHO, Ep8u: int) -> bDy6[x1iM]:
if Ep8u >= len(YKHO):
yield type(YKHO)(YKHO)
else:
for iXC1 in range(0, len(YKHO), Ep8u):
yield YKHO[iXC1:iXC1 + Ep8u] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PKW0(YKHO, OxJJ, zNig):\n return BfDw.split_on_chunks(OxJJ, zNig)",
"def q9R7(YKHO, Ep8u):\n Pdul = oyIN.arange(0, YKHO.explode_length)\n oyIN.random.shuffle(Pdul)\n I7JW = Pdul[:Ep8u]\n TVym = [YKHO.explode_images[YRbF] for YRbF in I7JW]\n GI9a = [YKHO.explode_lbls[YRbF] for YRbF in I7JW]\... | [
"0.66679996",
"0.6647029",
"0.65682423",
"0.65567344",
"0.64719105",
"0.64487696",
"0.64167565",
"0.6398678",
"0.63343215",
"0.6326952",
"0.63112897",
"0.62693685",
"0.62693685",
"0.62651753",
"0.6250854",
"0.6248492",
"0.62341845",
"0.62306714",
"0.6230071",
"0.6223465",
"0.... | 0.75003314 | 0 |
Return True if file `target' is missing, or is older than `reference'. | def aFcw(pan_, aC0l=None):
if not Hy7s.path.isfile(pan_):
return True
if aC0l:
return Hy7s.path.getmtime(pan_) < Hy7s.path.getmtime(aC0l)
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uMEV(JZXy, pan_):\n if not Hy7s.path.exists(JZXy):\n raise RRUE(\"file '%s' does not exist\" % Hy7s.path.abspath(JZXy))\n if not Hy7s.path.exists(pan_):\n return True\n return Hy7s.stat(JZXy).st_mtime > Hy7s.stat(pan_).st_mtime",
"def fvB4(JZXy, pan_):\n return not Hy7s.path.isfile(... | [
"0.71246564",
"0.70820457",
"0.6981222",
"0.66121864",
"0.63654494",
"0.6188364",
"0.6178757",
"0.60222495",
"0.60196024",
"0.5942662",
"0.59375006",
"0.5935005",
"0.59308803",
"0.5885809",
"0.5863201",
"0.58552855",
"0.5779307",
"0.5766456",
"0.57449186",
"0.568841",
"0.5681... | 0.8671155 | 0 |
Gets the most specific rdf_type. Returns the URI corresponding to the lowest in the DataObject class hierarchy from among the given URIs. | def p94q(SnBA):
YAg3 = onHt.CONTEXT.mapper
tidP = tuple(YAg3.base_classes.values())
for WKvO in SnBA:
try:
CNw8 = YAg3.RDFTypeTable[WKvO]
if issubclass(CNw8, tidP):
tidP = (CNw8,)
except KeyError:
aPd6.warning('A Python class corresponding ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO) -> pkDA:\n if YKHO.study_instance_uid is None:\n return pkDA.SERVICE\n elif YKHO.series_instance_uid is None:\n return pkDA.STUDY\n elif YKHO.sop_instance_uid is None:\n return pkDA.SERIES\n elif YKHO.frames is None:\n return pkDA.INSTANCE\n return pkDA.FRA... | [
"0.6093359",
"0.60854715",
"0.554034",
"0.5296322",
"0.5230488",
"0.5205593",
"0.51270694",
"0.51154256",
"0.50827587",
"0.5079269",
"0.5075472",
"0.5020265",
"0.49683824",
"0.49645853",
"0.49509254",
"0.49112874",
"0.48547608",
"0.4796295",
"0.4781412",
"0.477706",
"0.475805... | 0.7599178 | 0 |
Find out if number is even. | def ubP8(FGW3):
return FGW3 % 2 == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ubP8(FGW3):\n return FGW3 % 2 == 0",
"def ubP8(mLGw):\n return mLGw % 2 == 0",
"def ubP8(FGW3: int) -> bool:\n return FGW3 % 2 == 0",
"def ubP8(FGW3):\n if FGW3 % 2 == 0:\n return True\n else:\n return False",
"def ubP8(exwG):\n return exwG % 2 == 0",
"def ubP8(mLGw: i... | [
"0.9053494",
"0.9034889",
"0.90041065",
"0.8938645",
"0.8896712",
"0.88882595",
"0.8879262",
"0.87531185",
"0.8700416",
"0.8586053",
"0.8564545",
"0.8558445",
"0.85247",
"0.8426129",
"0.8395409",
"0.83054405",
"0.82596934",
"0.8256843",
"0.8253218",
"0.8244772",
"0.8192477",
... | 0.90880644 | 0 |
recursively iterate all attributes of an object to convert an object to a pure map(only contains builtin types) | def q9kJ(YEnM):
if isinstance(YEnM, list) or isinstance(YEnM, tuple):
Ylbp = []
for YRbF in YEnM:
Ylbp.append(q9kJ(YRbF))
return Ylbp
elif isinstance(YEnM, dict):
Op6c = {}
for G1Hx, Ty9i in YEnM.items():
Op6c[G1Hx] = q9kJ(Ty9i)
return Op6c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qeab(YEnM):\n if isinstance(YEnM, list):\n for YRbF, vC9B in enumerate(YEnM):\n YEnM[YRbF] = gRy7.make_recursive(vC9B)\n elif isinstance(YEnM, dict):\n for G1Hx, Ty9i in YEnM.items():\n YEnM[G1Hx] = gRy7.make_recursive(Ty9i)\n return gRy7(YEnM)\n return YEnM"... | [
"0.6256274",
"0.6182762",
"0.611956",
"0.60716295",
"0.59637487",
"0.5909074",
"0.5805566",
"0.5775913",
"0.5772003",
"0.57663935",
"0.57611656",
"0.5751742",
"0.57454497",
"0.57359624",
"0.5714102",
"0.56854045",
"0.5679278",
"0.5659475",
"0.56465966",
"0.56385344",
"0.56287... | 0.6639609 | 0 |
Function converts string to list "dispersed" with zeroes. Function is necessary for writing special values to Windows registry | def wtXz(toUL):
IssV = list(toUL)
return list(Hs6x.chain.from_iterable(zip(IssV, [0] * len(IssV)))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VNqG(KCHu, sbx9=0):\n return [VNqG(KCHu[1:]) for YRbF in range(KCHu[0])] if not len(KCHu) else sbx9",
"def FYKK(KCHu):\n if len(KCHu) == 1:\n return [KCHu]\n if KCHu.startswith('0') and KCHu.endswith('0'):\n return []\n if KCHu.startswith('0'):\n return [KCHu[:1] + '.' + KCHu... | [
"0.6276546",
"0.6146885",
"0.60171235",
"0.6001595",
"0.59806764",
"0.59747446",
"0.593996",
"0.5904246",
"0.5881783",
"0.5871116",
"0.5681117",
"0.56704247",
"0.56690603",
"0.56546926",
"0.56486815",
"0.563864",
"0.55844074",
"0.55371785",
"0.5526049",
"0.5518702",
"0.551870... | 0.60728526 | 2 |
Convert bytes list, which is Python list with values in range [0, 255], to binary array. Function is necessary for writing special values to Windows registry | def vRoy(oxgu):
Ud5x = []
for LihS in oxgu:
if isinstance(LihS, int):
Ud5x.append(LihS.to_bytes(1, 'little'))
elif isinstance(LihS, str):
Ud5x.append(ord(LihS).to_bytes(1, 'little'))
lFpl = b''.join(Ud5x)
return lFpl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nAsc(wEf2):\n return [int(WKvO * 255) for WKvO in wEf2]",
"def cJvC(eQNZ):\n print(eQNZ)\n hnjo = [hex(int(WKvO, 2)) for WKvO in eQNZ]\n Aofo = bytes([int(WKvO, 0) for WKvO in hnjo])\n return Aofo",
"def N3q0(neaT):\n bytes = [0, 0, 0, 0]\n YRbF = 3\n while neaT:\n bytes[YRbF... | [
"0.7485727",
"0.73353904",
"0.6969886",
"0.692457",
"0.68925136",
"0.6882395",
"0.687321",
"0.68293947",
"0.67941445",
"0.6748755",
"0.65864176",
"0.6552455",
"0.6546625",
"0.6508638",
"0.6508638",
"0.6492829",
"0.6464818",
"0.6463897",
"0.64490473",
"0.64422554",
"0.643546",... | 0.74200106 | 1 |
Return a string representation of this object | def zAg0(YKHO):
return "SkosmosClient(api_base='{}')".format(YKHO.api_base) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def Napc(YKHO):\n return str(YKHO)",
"def CZBi(YKHO):\n return YKHO.__repr__()",
"def Sa1R(YKHO) -> str:\n raise NotImplementedError",
"def Napc(YKHO):\n return str(YKHO)",
"def zAg0(YKHO):\n return str(YKHO.serialize())",
"def zAg0(YKHO):\n ... | [
"0.8690287",
"0.8689758",
"0.8669933",
"0.86497015",
"0.8643615",
"0.8593662",
"0.8586409",
"0.8555447",
"0.8545644",
"0.85290325",
"0.85290325",
"0.85290325",
"0.85290325",
"0.85290325",
"0.85290325",
"0.85290325",
"0.85290325",
"0.85290325",
"0.85290325",
"0.85290325",
"0.8... | 0.0 | -1 |
Return the configuration of the LDA. | def GPtr(YKHO) -> cuzp[str, ImMB]:
nGDL = {hkS8: getattr(YKHO._lda, hkS8, None) for hkS8 in YKHO.attributes}
return {'params': YKHO._lda.get_params(), 'attributes': nGDL} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(YKHO):\n return YKHO.config",
"def tgzD():\n GPtr = DM65.ConfigDict()\n GPtr.dim = __LU.value\n GPtr.margin = xsPT.value\n GPtr.num_experts = XbdI.value\n GPtr.num_samples = int(round(DAjy.value * __LU.value))\n GPtr.depth = KhPD.value\n GPtr.widths = [int(round(float(yzQ0) * __L... | [
"0.6683904",
"0.664694",
"0.6520222",
"0.6442374",
"0.64326733",
"0.64326733",
"0.6398642",
"0.63801837",
"0.63796014",
"0.637906",
"0.63716674",
"0.6351424",
"0.6342234",
"0.6342234",
"0.6342234",
"0.63397306",
"0.6297886",
"0.6278152",
"0.62754923",
"0.62688655",
"0.6267812... | 0.7432447 | 0 |
Return the configuration of the QDA. | def GPtr(YKHO) -> cuzp[str, ImMB]:
nGDL = {hkS8: getattr(YKHO._qda, hkS8, None) for hkS8 in YKHO.attributes}
return {'params': YKHO._qda.get_params(), 'attributes': nGDL} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPtr(YKHO):\n return YKHO._cfg",
"def tgzD(YKHO):\n return YKHO.config",
"def tgzD(YKHO):\n if YKHO.allow_reco():\n return YKHO.chs_config()\n else:\n return YKHO.get_config_j(YKHO.id)",
"def GPtr(YKHO):\n return YKHO[OtOl]",
"def eMhT(YKHO) -> dict:\n return YKHO.config... | [
"0.70671046",
"0.70628023",
"0.70587337",
"0.7055506",
"0.70128334",
"0.69564295",
"0.69354254",
"0.68964475",
"0.6891008",
"0.6883623",
"0.6883623",
"0.68802506",
"0.6878562",
"0.6878562",
"0.6846274",
"0.6846274",
"0.6846274",
"0.68448836",
"0.6800819",
"0.67965907",
"0.675... | 0.7497954 | 0 |
Centers a pin in Y Requirements Alignment pin mounted. Pin should be aligned in X to within 0.25 of the Mag3 width | def rbVh(WpIo=WiZG):
if WpIo not in [v2Oi, WiZG]:
print('cam must be one of: [cam_7, cam_8]')
return -1
WpIo.roi4.min_xyz.min_x.put(WpIo.roi2.min_xyz.min_x.get())
WpIo.roi4.min_xyz.min_y.put(WpIo.roi2.min_xyz.min_y.get())
WpIo.roi4.size.x.put(WpIo.roi2.size.x.get() * 0.25)
WpIo.roi4.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ThfF(YKHO):\n wzhh = YKHO.TiltSeries_._TiltAlignmentParas.cent\n OtIs = YKHO.TiltSeries_._imdimX\n MCm7 = YKHO.TiltSeries_._imdimY\n print(OtIs, MCm7)\n if wzhh[0] != OtIs // 2 + 1 or wzhh[1] != MCm7 // 2 + 1:\n YKHO.TiltSeries_._TiltAlignmentParas.cent = [OtIs // 2 + 1, MCm7 // 2 + 1]",
... | [
"0.6530727",
"0.63778764",
"0.60896593",
"0.6032488",
"0.58007073",
"0.5784148",
"0.57672673",
"0.5753318",
"0.5683996",
"0.5666882",
"0.56419",
"0.56303936",
"0.56197965",
"0.5603084",
"0.5589763",
"0.5583597",
"0.55815464",
"0.5568885",
"0.5562424",
"0.5542947",
"0.5531073"... | 0.58367175 | 4 |
Initilise the queue with size 0 and empty data | def FIMM(YKHO, zNig=0):
YKHO.data = []
YKHO.size = zNig | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO._data = [None] * LpYu.DEFAULT_CAPACITY\n YKHO._size = 0\n YKHO._front = 0",
"def hWEK():\n return g5js(0, None, None)",
"def FIMM(YKHO, aSZ5):\n YKHO.queueLength = aSZ5\n YKHO.data = []\n return",
"def _OiT():\n return g5js()",
"def _OiT():\n return g5js()"... | [
"0.79281473",
"0.7913286",
"0.76543",
"0.7505615",
"0.7505615",
"0.7501691",
"0.74106145",
"0.7392602",
"0.73601854",
"0.7353549",
"0.7339182",
"0.730633",
"0.7270129",
"0.7244942",
"0.71681535",
"0.71326494",
"0.709261",
"0.709261",
"0.709261",
"0.709261",
"0.709261",
"0.7... | 0.65200084 | 69 |
Returns the length of the queue | def szAg(YKHO):
return len(YKHO.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zNig(YKHO):\n return len(YKHO.queue)",
"def zNig(YKHO):\n return len(YKHO.queue)",
"def rWde(YKHO):\n return len(YKHO._queue)",
"def zNig(YKHO):\n return len(YKHO.__queue)",
"def zNig(YKHO):\n return len(YKHO.queue)",
"def zNig(YKHO):\n return len(YKHO.queue)",
"def zNig(YKHO):\n ... | [
"0.85218304",
"0.85218304",
"0.8510092",
"0.8497616",
"0.8497419",
"0.8497419",
"0.8497419",
"0.8497419",
"0.843837",
"0.8403797",
"0.83387715",
"0.8329439",
"0.83276945",
"0.82428545",
"0.8194946",
"0.8171252",
"0.8151139",
"0.8142358",
"0.797672",
"0.7916072",
"0.7915109",
... | 0.0 | -1 |
Returns boolean True if queue is empty and False if we have some data present | def FBfn(YKHO):
return len(YKHO.data) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def lsmZ(YKHO) -> bool:\n if YKHO.queue is not None and len(YKHO.queue) > 0:\n print('len > ... | [
"0.87975156",
"0.8682277",
"0.86627233",
"0.86627233",
"0.8609134",
"0.8605527",
"0.85967875",
"0.8543217",
"0.8542111",
"0.8524275",
"0.85015005",
"0.84722984",
"0.84551764",
"0.84286475",
"0.842505",
"0.84226465",
"0.8420542",
"0.83950776",
"0.8338616",
"0.8338616",
"0.8286... | 0.0 | -1 |
Return the first element present in the queue | def VnzS(YKHO):
if YKHO.is_empty():
raise Exception('Queue is empty !!! Please add data to the Queue :) ')
else:
return YKHO.data[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue undeflow.')\n ... | [
"0.85646725",
"0.8433074",
"0.8271941",
"0.825775",
"0.8155439",
"0.8133391",
"0.8109052",
"0.8100387",
"0.78322685",
"0.7774173",
"0.77433103",
"0.76770425",
"0.76770425",
"0.7647386",
"0.760932",
"0.7587123",
"0.756754",
"0.75370353",
"0.7530781",
"0.75128305",
"0.7497796",... | 0.74428505 | 22 |
Splits input raw texts into words (tokens) | def Nwm2(aIiu, kCRN, _q7k):
Jajo = ZbWC.split(E7TJ, str(aIiu))
XEri = ZbWC.split(E7TJ, str(kCRN))
XEri = [Q3Ge for Q3Ge in XEri if Q3Ge != ' ' and Q3Ge != '']
hlel = ZbWC.split(womY, str(_q7k))
Jajo = [WKvO.lower() for WKvO in Jajo]
XEri = [WKvO.lower() for WKvO in XEri]
hlel = [WKvO.lower()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(l5Ny):\n return l5Ny.split(' ')",
"def wr3U(YKHO, Novh):\n zpSF = dFss(Novh.decode('utf8'))\n return YKHO.filter_tokens(zpSF)",
"def dFss(l5Ny):\n for HlGW, m1Oc in Nb9k:\n l5Ny = finE(HlGW, m1Oc, l5Ny)\n l5Ny = ' ' + l5Ny + ' '\n for HlGW, m1Oc in KIq4:\n l5Ny = finE(H... | [
"0.7914099",
"0.766587",
"0.76578075",
"0.74407744",
"0.74345595",
"0.7426157",
"0.74118954",
"0.73792315",
"0.73627406",
"0.735913",
"0.73539406",
"0.7346636",
"0.7282593",
"0.7274609",
"0.7271629",
"0.72632974",
"0.7240448",
"0.7236909",
"0.72321457",
"0.7217849",
"0.719459... | 0.0 | -1 |
Replaces tokens of the input list using a dictionary | def rT4t(list, cmPJ, MJeY=False):
Taap = []
for zFiD in list:
if MJeY:
HidG = [cmPJ[GIN8] for GIN8 in zFiD if GIN8 in cmPJ]
else:
HidG = [cmPJ[GIN8] if GIN8 in cmPJ else GIN8 for GIN8 in zFiD]
Taap.append(HidG)
return Taap | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yagq(KaYn, V22M):\n return [F0vX(KaYn, GIN8) for GIN8 in V22M]",
"def cFjk(YKHO, WrFl, MMe4):\n yxa9 = []\n w7Yx = {}\n for G1Hx, bGrB in MMe4.items():\n w7Yx[G1Hx] = 0\n for eOtH in WrFl:\n if eOtH in YKHO.possible_entities:\n yxa9.append(MMe4[eOtH][w7Yx[eOtH]])\n ... | [
"0.63856053",
"0.6282236",
"0.6268503",
"0.6263758",
"0.6247176",
"0.6206646",
"0.60814965",
"0.6021747",
"0.60169226",
"0.5904308",
"0.58789766",
"0.58739334",
"0.5872065",
"0.5829256",
"0.5790956",
"0.5784738",
"0.5770782",
"0.5722827",
"0.5713262",
"0.570973",
"0.56988025"... | 0.66879517 | 0 |
Pad sequnces in the input list with zero | def P7Lu(list, BcCR, kjOt):
eB5C = S5Za(list, maxlen=BcCR, padding=kjOt, truncating='post')
return eB5C | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fyIq(vC9B: List[int], exwG: int) -> x1iM[int]:\n return [0] * (exwG - len(vC9B)) + vC9B",
"def RnIX(fUYa, KHPh=0.0, _C3A=False):\n lHmx = len(fUYa)\n gNly = max((WKvO.size(0) for WKvO in fUYa))\n CBXt = fUYa[0].new_zeros(lHmx, gNly, *fUYa[0].size()[1:]).fill_(KHPh)\n for Fg_i in range(lHmx):\n... | [
"0.77024096",
"0.74833196",
"0.74800617",
"0.72278726",
"0.71290225",
"0.709887",
"0.708432",
"0.70421475",
"0.70078874",
"0.6902827",
"0.68919396",
"0.6867498",
"0.68605846",
"0.6846655",
"0.68445545",
"0.6818112",
"0.68132347",
"0.67973995",
"0.6783716",
"0.6741074",
"0.670... | 0.7913045 | 0 |
Set the text of the selected element to an ISO8601 formatted datetime. | def dRhw(YKHO, FfHy, JRYC, yl4j=None, k32k=0):
JRYC = drHU.date_time.cast_naive_datetime_to_tz(JRYC, yl4j)
YKHO.get_element_by_name(FfHy, k32k).text = JRYC.isoformat() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zb98(YKHO, qcWV):\n return qcWV.isoformat()",
"def NN8z(YEnM):\n return YEnM.strftime('%Y-%m-%dT%H:%M:%SZ')",
"def Z4Xa(YKHO, tTpl, mWFP):\n wEf2 = tTpl.get(mWFP)\n tCto = qcWV.strptime(wEf2, '%Y-%m-%dT%H:%M:%S')\n return tCto.strftime('%Y%m%d%H%M%S')",
"def Jv5M(YKHO, a1PO=None):\n if ... | [
"0.60160416",
"0.59837675",
"0.58897847",
"0.5887512",
"0.5850168",
"0.5818771",
"0.5792185",
"0.57389456",
"0.5708228",
"0.569295",
"0.56919295",
"0.56737584",
"0.5640936",
"0.5635818",
"0.55746555",
"0.55341154",
"0.5521194",
"0.5516898",
"0.54779214",
"0.5468041",
"0.54578... | 0.6644105 | 0 |
Parses the Handler instance to find all callables which aren't protected (starts with '_'), or instances of Handler. | def myvb(YKHO):
if not YKHO.__handlers:
oTZi = {}
for H5ew in dir(YKHO):
if H5ew.startswith('_'):
continue
hkS8 = getattr(YKHO, H5ew)
if issubclass(type(hkS8), UNen) and hkS8 != YKHO:
for mWFP, DCgT in hkS8._handlers.iteritems():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x1sh(YKHO):\n return []",
"def myvb(YKHO) -> tuple:\n return YKHO._classname2handlers[YKHO.deco_class.__name__]",
"def iSCP(YKHO):\n oCWm = []\n ckRy = YKHO.get_paths()\n for XP5J in ckRy:\n KCHu = ZbWC.sub('(?<={)\\\\w+}', '.*', XP5J).replace('{', '')\n z1Rg = ZbWC.sub('(?<=<)... | [
"0.60620993",
"0.57250327",
"0.5673089",
"0.5449978",
"0.54243743",
"0.5415022",
"0.53942007",
"0.53825504",
"0.5360696",
"0.5359757",
"0.5322516",
"0.5305773",
"0.5305773",
"0.5225442",
"0.5197529",
"0.51772535",
"0.5139828",
"0.5113842",
"0.5112694",
"0.5096272",
"0.5066052... | 0.63426507 | 0 |
Get the UUID of the player. | def LMfH(YKHO, NtEF: str) -> str:
DfsO = Xqgu.client.HTTPSConnection('api.mojang.com')
WBPg = {'User-Agent': 'Minecraft Username -> UUID', 'Content-Type': 'application/json'}
DfsO.request('GET', '/users/profiles/minecraft/' + NtEF, headers=WBPg)
geh0 = DfsO.getresponse().read().decode('utf-8')
if no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LZbL(YKHO):\n return 'audio-player-%s' % hash((ITS7.time(),))",
"def yztK(YKHO):\n return YKHO.game.get_player_id()",
"def yztK(YKHO):\n return YKHO.player_id",
"def qxeD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'uuid')",
"def qxeD(YKHO) -> str:\n return YKHO._uuid",
"def qxe... | [
"0.73326635",
"0.728474",
"0.72775805",
"0.7048046",
"0.7020953",
"0.7020953",
"0.7020953",
"0.700895",
"0.700895",
"0.7005704",
"0.69823635",
"0.69823635",
"0.69647104",
"0.69174725",
"0.6916713",
"0.6898692",
"0.6894389",
"0.687858",
"0.6787915",
"0.67823154",
"0.6727314",
... | 0.68489695 | 18 |
An 'array of T' type is valid iff T is a valid, nonarray type. | def G4sA(a1PO):
TVLI = a1PO.type
if PFXX(TVLI):
raise OK0X(a1PO)
xzCw(TVLI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PFXX(a1PO):\n return isinstance(a1PO, jZ4I.Array)",
"def PjOg(jzdc):\n try:\n J93I = isinstance(jzdc, gyIm)\n except:\n J93I = False\n return J93I",
"def PjOg(jzdc):\n try:\n J93I = isinstance(jzdc, gyIm)\n except:\n J93I = False\n return J93I",
"def PFXX(... | [
"0.7268601",
"0.7067942",
"0.70335424",
"0.69161105",
"0.68694717",
"0.68320364",
"0.6744537",
"0.6655593",
"0.6631181",
"0.6603789",
"0.65593135",
"0.65315646",
"0.652849",
"0.6496802",
"0.64870256",
"0.6449459",
"0.6345396",
"0.63129985",
"0.6289665",
"0.62599844",
"0.61802... | 0.8408344 | 0 |
Initialize a new Table. | def FIMM(YKHO):
YKHO.knownTypes = bwMQ.Smartdict()
for rptx in jZ4I.builtin_types_map.values():
YKHO.knownTypes[rptx()] = None
YKHO.knownConstructors = bwMQ.Smartdict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def euOf(YKHO, tyNF: 'Table'):\n if not YKHO.columns:\n YKHO.columns = tyNF.columns\n YKHO._data = tyNF.data",
"def FIMM(YKHO, *qIxc):\n ED7W.Table_swiginit(YKHO, ED7W.new_Table(*qIxc))",
"def FIMM(YKHO, *qIxc):\n PZpo.TTable_swiginit(YKHO, PZpo.new_TTable(*qIxc))",
"def FIMM(YKHO):\n P... | [
"0.81200945",
"0.7962949",
"0.7687565",
"0.7545291",
"0.7409864",
"0.73864406",
"0.73345435",
"0.72978896",
"0.7226538",
"0.7220205",
"0.7205668",
"0.7202054",
"0.71976924",
"0.7191461",
"0.71576416",
"0.71576416",
"0.71576416",
"0.71576416",
"0.71576416",
"0.71576416",
"0.71... | 0.0 | -1 |
Implement a function that normalizes each row of the matrix x (to have unit length). | def BO3f(WKvO):
WzsH = oyIN.linalg.norm(WKvO, axis=1, keepdims=True)
WKvO = WKvO / WzsH
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U95B(WKvO):\n XsBg = oyIN.linalg.norm(WKvO, 2, axis=1).reshape(WKvO.shape[0], -1)\n WKvO = WKvO / XsBg\n return WKvO",
"def XKyw(WKvO):\n WzsH = oyIN.linalg.norm(WKvO, ord=2, axis=1, keepdims=True)\n WKvO = WKvO / WzsH\n return WKvO",
"def U95B(WKvO):\n WKvO = WKvO / oyIN.sqrt(oyIN.sum... | [
"0.85183686",
"0.84794587",
"0.8413852",
"0.8387981",
"0.8331784",
"0.8196567",
"0.80282104",
"0.7980823",
"0.78951055",
"0.75890106",
"0.75781053",
"0.74963975",
"0.742637",
"0.7392669",
"0.7376092",
"0.7376092",
"0.73587036",
"0.7262997",
"0.72211283",
"0.7221105",
"0.71363... | 0.7513161 | 11 |
Create and save a User with the given email and password. | def lYUQ(YKHO, D3lj, jTXt, **wdCM):
if not D3lj:
raise ValueError(bGrB('The Email must be set'))
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save()
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The given email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save(using=YKHO._db)\n return CBIr",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n ... | [
"0.85437864",
"0.8511318",
"0.85077024",
"0.8502027",
"0.85019606",
"0.84889764",
"0.84889764",
"0.84882575",
"0.84882575",
"0.84882575",
"0.84854496",
"0.84765774",
"0.84759104",
"0.8474798",
"0.8474798",
"0.8474798",
"0.8474798",
"0.8474798",
"0.8474798",
"0.8474798",
"0.84... | 0.8456341 | 23 |
Finds if a given file extension is present in the directory. | def R4uK(eHKs, Fst3):
return SC2F.glob(Hy7s.path.join(eHKs, '*{}'.format(Fst3)))[0].replace('\\', '/').split('/')[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOZQ(YKHO, pmON):\n if ZbWC.match('.*\\\\\\\\.*\\\\..*$', pmON):\n return True",
"def zc6t(VqRE, CBZq):\n return any((VqRE.endswith(YBcr) for YBcr in CBZq))",
"def zc6t(YKHO, Ux0P):\n if Ux0P is None:\n return False\n return Ux0P.split('.')[-1].lower() in YKHO.extensions",
"def ... | [
"0.78296727",
"0.77626044",
"0.7569853",
"0.7501492",
"0.7461539",
"0.7431779",
"0.7387349",
"0.73432827",
"0.73432827",
"0.7338431",
"0.7324811",
"0.7291695",
"0.72345763",
"0.7211979",
"0.7211979",
"0.71585274",
"0.7156586",
"0.7148936",
"0.70079666",
"0.6902493",
"0.689557... | 0.6782226 | 21 |
Return the prefixes of a dotted name. >>> dotted_prefixes("aa.bb.cc") ['aa', 'aa.bb', 'aa.bb.cc'] >>> dotted_prefixes("aa.bb.cc", reverse=True) ['aa.bb.cc', 'aa.bb', 'aa'] | def Cb_v(YEU2, gxEw=False):
SzCd = YEU2.split('.')
if gxEw:
k52S = range(len(SzCd), 0, -1)
else:
k52S = range(1, len(SzCd) + 1)
Aofo = ['.'.join(SzCd[:YRbF]) or '.' for YRbF in k52S]
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NgW2(PXIy):\n DEYW = [KCHu[:-1] for KCHu in PXIy[:-1]]\n DEYW.append(PXIy[-1])\n return '.'.join(DEYW)",
"def rWzy(zrIJ):\n NZzQ = zrIJ.split('.')\n return ['.'.join(NZzQ[YRbF:]) for YRbF in range(0, len(NZzQ))]",
"def NRDA(Pgf7):\n tX49 = oOnU(Pgf7.get('prefixes', ''))\n return [Hy7s.... | [
"0.6022765",
"0.58671707",
"0.55240303",
"0.5438187",
"0.53960484",
"0.5386747",
"0.5350526",
"0.5319152",
"0.53097326",
"0.53032535",
"0.53005904",
"0.52979624",
"0.516109",
"0.51079416",
"0.5082074",
"0.5035346",
"0.5027347",
"0.50088865",
"0.49930736",
"0.49788493",
"0.497... | 0.85201687 | 0 |
Checks if a goat in this position could be captured. | def Gxbf(YKHO, rRzo: str) -> bool:
for iJQd in YKHO.get_all_tiger_positions():
if iJQd.piece.can_capture_pos(rRzo):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ejjD(YKHO):\n return kEoh not in YKHO.get_game() and YKHO.get_game().count(giUo) == len(YKHO.get_pokemon_location)",
"def sAaE(YKHO, vGaq):\n return False",
"def sAaE(YKHO, vGaq):\n return False",
"def vbGs(YKHO):\n return YKHO.game.enemyTeam.flag.carrier != None",
"def vbGs(YKHO):\n ret... | [
"0.63768417",
"0.6304616",
"0.6304616",
"0.62884665",
"0.62884665",
"0.62662184",
"0.62662184",
"0.62443227",
"0.61577123",
"0.61482024",
"0.60645723",
"0.60438615",
"0.6036877",
"0.6024885",
"0.60145944",
"0.6012126",
"0.6000759",
"0.5974608",
"0.59501183",
"0.5945777",
"0.5... | 0.6197087 | 8 |
Move a piece between two positions by its address. Returns true if the move was successful. | def pAtj(YKHO, YJhm: str, LmzM: str) -> bool:
y9K3 = YKHO.get_pos(YJhm)
iRl3 = YKHO.get_pos(LmzM)
mrj1 = y9K3.piece
if isinstance(mrj1, q8RS):
Ylbp = mrj1.move(iRl3)
if Ylbp:
YKHO._push_move(Ylbp)
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yfnk(YKHO, yKcO: (int, int), e1vZ: (int, int), SWgz=''):\n yFF7 = YKHO.board[yKcO[0]][yKcO[1]]\n pbiM = YKHO.board[e1vZ[0]][e1vZ[1]]\n yTej = YKHO.get_all_moves()\n if wHLO.convert_to_EAN(yKcO, e1vZ, SWgz) not in yTej:\n return False\n YKHO._invalidate_castles()\n YKHO.half_moves += 1\... | [
"0.68301886",
"0.6818215",
"0.66086984",
"0.65005803",
"0.6480579",
"0.63806236",
"0.63772017",
"0.636649",
"0.6290251",
"0.6214949",
"0.6214106",
"0.61747766",
"0.6164447",
"0.6162481",
"0.6105225",
"0.60745883",
"0.6067893",
"0.60648817",
"0.6052884",
"0.6034089",
"0.602655... | 0.8092822 | 0 |
Zeroes out rates which are uninformative | def zDT9(b5Lm, hU1b):
return b5Lm * hU1b | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def twO4(YKHO):\n YKHO.__bootstrap_zero_coupons__()\n YKHO.__get_bond_spot_rates__()\n return [YKHO.zero_rates[Kt_s] for Kt_s in YKHO.get_maturities()]",
"def ba0Y(YKHO, mVUw, exwG, rZ7q, eTBv):\n _9ju = rZ7q + oyIN.zeros(eTBv)\n Aofo = YKHO.MetricClass(rate=mVUw, n=exwG)._result_from_wealth(_9ju)... | [
"0.7177395",
"0.711723",
"0.68331224",
"0.65118873",
"0.64457047",
"0.6402241",
"0.63996696",
"0.6244319",
"0.6231271",
"0.6175478",
"0.6167862",
"0.6146404",
"0.60793495",
"0.6078265",
"0.5994392",
"0.5977114",
"0.59527403",
"0.59098345",
"0.5876304",
"0.57722586",
"0.575263... | 0.6810036 | 3 |
Test that EmailUser.objects._create_user without email raise an ValueError exception | def Q5xs(YKHO):
with trZe.raises(ValueError) as wrFM:
biYH.objects._create_user(None, None, False, False)
YKHO.assertIn('email must be set', str(wrFM.value)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F53s(YKHO):\n with YKHO.assertRaises(ValueError):\n egNl().objects.create_user(None, password='open@123')",
"def hhyC(YKHO):\n with YKHO.assertRaises(ValueError):\n egNl().objects.create_user(None, 'Test1234')",
"def V97d(YKHO):\n with YKHO.assertRaises(ValueError):\n egNl().o... | [
"0.8980237",
"0.89562356",
"0.89108115",
"0.8897907",
"0.8890067",
"0.8890067",
"0.8890067",
"0.8890067",
"0.8890067",
"0.8889543",
"0.8887051",
"0.88774866",
"0.8872822",
"0.8859131",
"0.88463163",
"0.8826658",
"0.8751669",
"0.87022865",
"0.8699824",
"0.8655796",
"0.86059135... | 0.8948492 | 2 |
Unload Sensibo config entry. | async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:
if await ajET.config_entries.async_unload_platforms(bTKY, aprE):
del ajET.data[Sugg][bTKY.entry_id]
if not ajET.data[Sugg]:
del ajET.data[Sugg]
vzeF.debug('Unloaded entry for %s', bTKY.title)
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kr8E(mWFP):\n NCls = xCWl.open(Nu1S, 'c')\n del NCls[mWFP]\n NCls.close()",
"def Y7Bk(YKHO):\n del YKHO.__config\n YKHO.__config = {}\n YKHO.save()",
"def j4lB():\n if _Fei.update_cfg:\n _Fei.save()",
"def oMrj(YKHO):\n YKHO._master.destroy()\n YKHO._config_status = Fals... | [
"0.651566",
"0.6492102",
"0.62874913",
"0.6278922",
"0.61833173",
"0.6160499",
"0.6151495",
"0.6067035",
"0.60456467",
"0.59289694",
"0.59132713",
"0.584025",
"0.58340853",
"0.57949704",
"0.5758732",
"0.573924",
"0.57035446",
"0.56980896",
"0.5691844",
"0.56831014",
"0.567023... | 0.55008256 | 58 |
Returns a list with the names of edges (ordered in the same way as in the graph) | def zXh1(YKHO):
SqIz = list(YKHO.graph.edges)
dict = jHsn.get_edge_attributes(YKHO.graph, 'name')
mC4V = []
for tuple in SqIz:
mC4V.append(dict[tuple])
return mC4V | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZmON(YKHO):\n return [(MLZm[0].name, MLZm[1].name) for MLZm in YKHO._edges]",
"def xC8f(YKHO):\n return ['->'.join([str(MxXY), str(cWFu)]) for MxXY in YKHO.graph.keys() for cWFu in YKHO.graph[MxXY]]",
"def mC4V(YKHO):\n l25F = []\n for i4Va in YKHO.node_dict:\n for rUTj in YKHO.node_dict... | [
"0.8764807",
"0.7965441",
"0.73738754",
"0.71742374",
"0.7083922",
"0.7055936",
"0.7042484",
"0.6955942",
"0.6912451",
"0.6890552",
"0.6879474",
"0.67920065",
"0.67897445",
"0.6786462",
"0.6784994",
"0.67837",
"0.67505616",
"0.6742401",
"0.67248994",
"0.6724661",
"0.6682827",... | 0.7131337 | 4 |
Return dictionary of initial storage states | def JYlQ(YKHO):
yvT9 = {}
for AwDt, VMul in YKHO.nodes.items():
for fzsX, F4yz in VMul.get_heat_stor().items():
yvT9['.'.join([AwDt, fzsX])] = F4yz
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def By99(YKHO):\n return {}",
"def k8jS(YKHO):\n QTBn = {'connector_keys': YKHO.connector_keys, 'metric_key': YKHO.metric_key, 'location_key': YKHO.location_key, 'parameters': YKHO.parameters, 'mrsm_instance': YKHO.instance_keys}\n return QTBn",
"def OEQv(YKHO):\n YKHO.update()\n Csk6 = {}\n ... | [
"0.70408183",
"0.70337296",
"0.68019986",
"0.6626433",
"0.6583845",
"0.6583845",
"0.6563593",
"0.64705276",
"0.6437133",
"0.64204884",
"0.64204884",
"0.6395019",
"0.636914",
"0.6354147",
"0.63470924",
"0.6340963",
"0.63282716",
"0.6304431",
"0.6298344",
"0.6284666",
"0.628120... | 0.0 | -1 |
Add balance equations after all blocks for this node and subcomponents have been compiled | def HCIQ(YKHO):
Z9rn = YKHO.components
XP5J = YKHO.pipes
if YKHO.temperature_driven:
Nqlg = YKHO.params['lines'].v()
YKHO.block.mix_temp = RELP(YKHO.TIME, Nqlg)
def VqrU(Fg_i, a1PO, vC9B):
MzOE = g760.defaultdict(list)
i_aJ = g760.defaultdict(list)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UFdQ(YKHO, znBS=True):\n if YKHO.node:\n if znBS:\n if YKHO.node.left:\n YKHO.node.left.update_balances()\n if YKHO.node.right:\n YKHO.node.right.update_balances()\n YKHO.balance = YKHO.node.left.height - YKHO.node.right.height\n else:\n ... | [
"0.6054147",
"0.58334726",
"0.5670819",
"0.56580913",
"0.56235176",
"0.55567765",
"0.5514667",
"0.5377202",
"0.53753936",
"0.5350596",
"0.52809346",
"0.52765864",
"0.52592015",
"0.5246449",
"0.5235047",
"0.5230758",
"0.52254176",
"0.52158594",
"0.51965415",
"0.51801145",
"0.5... | 0.546225 | 7 |
Check to see if there are unmerged patch files from /srv/patches for a given revision. | def Lk5w(DpZH, _Fei):
bo34 = G9jH.getLogger('check_patch_files')
x3Be = _Fei['patch_path']
if x3Be is None:
return
jbW8 = Hy7s.path.join(x3Be, DpZH)
pbVx = Hy7s.path.join(jbW8, 'extensions')
bGrB, CBZq, bGrB = Hy7s.walk(pbVx).next()
ohfT = BfDw.get_patches(['core'], jbW8)
ohfT.up... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M3xj(BE5e, XkTm):\n pmON = Hy7s.path.join(BE5e, XkTm, 'fluidinfo')\n with o1Kh(pmON):\n with gCuF(warn_only=True):\n yvT9 = evsB('bin/python bin/fluidinfo patch-status postgres:///fluidinfo', user='fluidinfo')\n return yvT9.return_code != 0",
"def QiVE(boHx):\n Yn3K.chec... | [
"0.6747199",
"0.63514054",
"0.5787946",
"0.571065",
"0.5706241",
"0.56494606",
"0.56411487",
"0.5574085",
"0.55628467",
"0.5545786",
"0.552631",
"0.55009574",
"0.54736805",
"0.54680383",
"0.5434093",
"0.53959745",
"0.5357477",
"0.53343767",
"0.5313679",
"0.52986103",
"0.52769... | 0.646274 | 1 |
Returns True if quantity of items in stock is less or equal to running out level set | def ZsLk(YKHO):
return YKHO.quantity <= YKHO.running_out_level | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ulMF(YKHO):\n gwAu = 5\n if YKHO.quantity < gwAu or u2sk.pastSellByDate(YKHO):\n return True\n else:\n return False",
"def ulMF(YKHO):\n gwAu = 5\n if YKHO.quantity < gwAu:\n return True\n else:\n return False",
"def A9Fx(tJ7E, eZD2):\n if tJ7E >= eZD2:\n ... | [
"0.7058821",
"0.6774906",
"0.6749879",
"0.66084254",
"0.6426332",
"0.64241284",
"0.6273235",
"0.6272138",
"0.6267329",
"0.62376887",
"0.62362623",
"0.6151465",
"0.61491424",
"0.6147428",
"0.61192626",
"0.611071",
"0.60732037",
"0.6062483",
"0.6035766",
"0.60297716",
"0.595885... | 0.6798015 | 1 |
Increment 'rates_total' field and set new value to 'average_rate' field of the Item object every time new rate is set | def xkzz(YKHO, *qIxc, **B2fa):
YKHO.item.rates_total += 1
YKHO.item.average_rate += (YKHO.item.average_rate + YKHO.rate) / YKHO.item.rates_total
YKHO.item.save()
super(Rs5E, YKHO).save(*qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oPZB(YKHO, RrWF):\n YKHO.num_ratings += 1\n YKHO.rating_total += RrWF\n YKHO.save(update_fields=['num_ratings', 'rating_total'])\n YKHO.average_rating = int(round(YKHO.rating_total / YKHO.num_ratings))\n YKHO.save(update_fields=['average_rating'])\n return",
"def QdZT(YKHO):\n YKHO.rate ... | [
"0.7321416",
"0.66296947",
"0.65281373",
"0.65063566",
"0.65063566",
"0.64591575",
"0.64470184",
"0.63789356",
"0.6359085",
"0.6314785",
"0.6285263",
"0.6284265",
"0.6283313",
"0.62690187",
"0.6254097",
"0.6243333",
"0.6189606",
"0.6189606",
"0.6111474",
"0.6034977",
"0.59974... | 0.8508447 | 0 |
Return all of the registered subclasses in this class's namespace. | def fZX4(Emd4) -> cuzp[str, rdVY]:
return {mWFP: Emd4.registered_subclasses_by_name(mWFP) for mWFP in Emd4.__registered_subclasses__.keys() if len(Emd4.registered_subclasses_by_name(mWFP)) > 0} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ToPw(Emd4):\n Hh7E = set()\n for dm7U in Emd4.__subclasses__():\n if dm7U.UI_NAME:\n Hh7E.add(dm7U)\n Hh7E.update(dm7U.all_named_subclasses())\n return Hh7E",
"def TPXT(YKHO, _2sc):\n return _2sc.__subclasses__()",
"def _1ql(Emd4):\n return (dm7U for dm7U in Emd4.all... | [
"0.741222",
"0.740364",
"0.73563385",
"0.711135",
"0.7018451",
"0.6991726",
"0.6965637",
"0.6960461",
"0.69340235",
"0.68089914",
"0.6794711",
"0.67932886",
"0.67883366",
"0.6768203",
"0.67035",
"0.6696795",
"0.66884154",
"0.66816986",
"0.66578376",
"0.66443104",
"0.6643126",... | 0.7070527 | 4 |
Return all of the registered subclasses for a given name that are a proper subclass of this class. | def vKyy(Emd4, mWFP) -> rdVY:
return [dm7U for dm7U in Emd4.__registered_subclasses__.get(mWFP, []) if issubclass(dm7U, Emd4) and dm7U is not Emd4] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPXT(YKHO, _2sc):\n return _2sc.__subclasses__()",
"def ToPw(Emd4):\n Hh7E = set()\n for dm7U in Emd4.__subclasses__():\n if dm7U.UI_NAME:\n Hh7E.add(dm7U)\n Hh7E.update(dm7U.all_named_subclasses())\n return Hh7E",
"def zqDc(Emd4, mWFP):\n if mWFP == Emd4.__name__:\n... | [
"0.7883098",
"0.7543909",
"0.7074033",
"0.6891646",
"0.6767185",
"0.67396295",
"0.6564497",
"0.6554241",
"0.63487107",
"0.6294811",
"0.6273062",
"0.6244816",
"0.62022436",
"0.6187426",
"0.6159351",
"0.6154411",
"0.6154411",
"0.61098695",
"0.6094665",
"0.60649866",
"0.60130835... | 0.839856 | 0 |
Change field to more friendly value. | def zAg0(YKHO):
return YKHO.Name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bewq(YKHO, BWXx):\n return BWXx",
"def HFpR(YKHO, YEnM, Jyyj):\n return Bb7T(Jyyj.value_to_string(YEnM))",
"def pBKL(YEnM, Jyyj):\n return eGJQ(YEnM, Jyyj)",
"def q_IN(C3ST, mWFP, BWXx):\n if BWXx is None:\n return BWXx\n a1PO = type(getattr(C3ST, mWFP))\n if a1PO == qcWV:\n ... | [
"0.64163786",
"0.64045805",
"0.6230152",
"0.6197962",
"0.6049613",
"0.60457075",
"0.60409987",
"0.60119575",
"0.5987234",
"0.596578",
"0.5954733",
"0.5949111",
"0.59255826",
"0.5907281",
"0.5885562",
"0.58582",
"0.5850745",
"0.58349216",
"0.5817909",
"0.5727358",
"0.5720516",... | 0.0 | -1 |
Change field to more friendly value. | def zAg0(YKHO):
return YKHO.Title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bewq(YKHO, BWXx):\n return BWXx",
"def HFpR(YKHO, YEnM, Jyyj):\n return Bb7T(Jyyj.value_to_string(YEnM))",
"def pBKL(YEnM, Jyyj):\n return eGJQ(YEnM, Jyyj)",
"def q_IN(C3ST, mWFP, BWXx):\n if BWXx is None:\n return BWXx\n a1PO = type(getattr(C3ST, mWFP))\n if a1PO == qcWV:\n ... | [
"0.64181435",
"0.6407031",
"0.62318605",
"0.6199098",
"0.60499734",
"0.6047273",
"0.6042602",
"0.6009652",
"0.59889525",
"0.59655845",
"0.5955943",
"0.59459305",
"0.59282154",
"0.5906922",
"0.58868504",
"0.58601195",
"0.5848213",
"0.5836326",
"0.5817839",
"0.57272786",
"0.571... | 0.0 | -1 |
Called when the user specifies an intent for this skill | def E97p(McO3, cuiw):
global session_attributes
UEnw = ''
print('on_intent requestId=' + McO3['requestId'] + ', sessionId=' + cuiw['sessionId'])
try:
print('session previous node name is' + Zz_i['previous_node'])
UEnw = Zz_i['previous_node']
except KeyError:
print('No previou... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r... | [
"0.71430594",
"0.69552237",
"0.6948083",
"0.6905248",
"0.6892207",
"0.6763211",
"0.67538756",
"0.67219484",
"0.6719871",
"0.67152613",
"0.6698335",
"0.66911006",
"0.6669216",
"0.6644265",
"0.6641675",
"0.6638301",
"0.6607477",
"0.65941316",
"0.65746164",
"0.65694714",
"0.6561... | 0.0 | -1 |
Determines if nick has a given rank. Defaults to false if nick is not registered. | def cqeo(YKHO, CVgL, fdMZ):
CBIr = CVgL.split('!')[0]
if CBIr in YKHO.users and YKHO.users[CBIr]['authenticated_at']:
FNSD = YKHO.users[CBIr]['rank']
if fdMZ == 'none':
return True
if fdMZ == 'voice' and FNSD in ('voice', 'half-op', 'op', 'owner', 'master'):
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fvwR(YKHO, fdMZ):\n for dxhl in YKHO.cards:\n if dxhl.rank == fdMZ:\n return True\n return False",
"def Ff8F(YKHO, fdMZ: RankLike) -> bool:\n if isinstance(fdMZ, b4m8):\n return YKHO.rank == fdMZ\n elif isinstance(fdMZ, str):\n return str(YKHO.rank) == fdMZ\n re... | [
"0.7856904",
"0.7297953",
"0.6947024",
"0.61633563",
"0.59573346",
"0.5913768",
"0.58583415",
"0.5767362",
"0.5685322",
"0.5598793",
"0.551664",
"0.5485738",
"0.547762",
"0.54646134",
"0.5406755",
"0.53569126",
"0.5351782",
"0.53459543",
"0.53358555",
"0.5309997",
"0.5265431"... | 0.84574145 | 0 |
Make box plots from DataFrameGroupBy data. | def skJe(qDyV, nlwp: bool=True, iVRZ=None, GAJY: int | None=None, XyWv: int=0, Cs6h: bool=True, aNZO=None, wytA: tuple[float, float] | None=None, LAOT=None, AkYO: bool=False, R4F9: bool=True, DDLl=None, **B2fa):
vgOV = zTV9(DDLl)
return vgOV.boxplot_frame_groupby(qDyV, subplots=nlwp, column=iVRZ, fontsize=GAJY,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FlUN(jQ3Z):\n nPrm = []\n for ITJB in jQ3Z['property_type'].unique():\n LmYr = jQ3Z[jQ3Z['property_type'] == ITJB]\n nPrm.append(iEax.Box(y=LmYr['price_paid'].values, x=LmYr['year'].values, name=ITJB, boxpoints='all', pointpos=-1, jitter=0.1))\n LAOT = iEax.Layout(boxmode='group', height... | [
"0.6913194",
"0.6854868",
"0.68304986",
"0.6814123",
"0.6789308",
"0.677085",
"0.67126036",
"0.66805327",
"0.662606",
"0.6621172",
"0.66030794",
"0.65600044",
"0.655631",
"0.651553",
"0.65022236",
"0.6355091",
"0.63200086",
"0.62828976",
"0.6268113",
"0.6248913",
"0.62152463"... | 0.5870896 | 38 |
Can expand_transactions do a basic expansion? | def J7YQ(YKHO):
IFJW = rLdf.DataFrame({'Badge': rLdf.Series([4, 5, 4], index=[0, 1, 2]), 'Qty': rLdf.Series([1, 2, 3], index=[0, 1, 2]), 'Cmdty': rLdf.Series(['BP1', 'BP1', 'BP1'], index=[0, 1, 2]), 'Price': rLdf.Series([10, 12, 10], index=[0, 1, 2])})
tC1I = rLdf.DataFrame({'Badge': rLdf.Series([4, 4, 4, 4, 5,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJ6O(cuiw, uJjO, lHli=False):\n if lHli:\n Aofo = cuiw.query(T74E).filter(T74E.user_phone == uJjO).all()\n F5X4 = srw8()\n gQVK = [F5X4.dump(Mkmy).data for Mkmy in Aofo]\n else:\n Aofo = cuiw.query(T74E.id).filter(T74E.user_phone == uJjO).all()\n gQVK = [nYM9.format(tra... | [
"0.5415126",
"0.5299976",
"0.52820116",
"0.5281367",
"0.5151515",
"0.5115945",
"0.51059294",
"0.50741404",
"0.50590974",
"0.50300115",
"0.5011892",
"0.5009598",
"0.5009502",
"0.50091445",
"0.49657786",
"0.49431652",
"0.4929163",
"0.49100354",
"0.49046612",
"0.48959568",
"0.48... | 0.70023584 | 0 |
Calculates the equivalent km to the input miles | def gLC1(YKHO, gj3u):
YKHO.output_text = f'{float(YKHO.get_valid_value(gj3u)) * WBEu:.3f}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zpqm(JYmd):\n return JYmd * 1.60934",
"def brid(q5XV):\n return q5XV * 0.621371",
"def K2sP(q5XV):\n return q5XV * 1000",
"def zpqm(JYmd: float) -> float:\n TE6a = float(JYmd)\n ssQ2 = float(float(TE6a) * 1.60934)\n return round(ssQ2, 2)",
"def YwhA() -> None:\n ssQ2 = nXNw.vincent... | [
"0.78242373",
"0.7524305",
"0.724568",
"0.7075588",
"0.6966431",
"0.69285303",
"0.6907654",
"0.6901715",
"0.68600583",
"0.6851965",
"0.68237203",
"0.6788575",
"0.6679422",
"0.65561616",
"0.6514525",
"0.6471732",
"0.6447639",
"0.6445172",
"0.6430164",
"0.64240295",
"0.64205945... | 0.0 | -1 |
Get all the ns instance models | def IW4m(YKHO, YJPQ=False):
if YKHO.ns_filter and 'ns_inst_id' in YKHO.ns_filter:
n4I1 = YKHO.ns_filter['ns_inst_id']
s_v_ = fdff.objects.filter(id=n4I1)
else:
s_v_ = fdff.objects.all()
Aofo = []
for EVG4 in s_v_:
if EVG4.status != 'null':
Aofo.append(YKHO.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ArHU(YKHO):\n YKHO.load()\n return YKHO._models",
"def _KCp(YKHO) -> bDy6['panda_core_data.model.Model']:\n for XOSE in YKHO.all_models:\n for OERl in XOSE.all_instances:\n yield OERl",
"def d6pt(YKHO, qv1X):\n return YKHO._get_models(qv1X, is_detail=False)",
"def FYrf(YKHO)... | [
"0.68864083",
"0.6847077",
"0.67271155",
"0.6657664",
"0.6590258",
"0.6571301",
"0.653106",
"0.6515408",
"0.64586544",
"0.64461714",
"0.64461714",
"0.6445483",
"0.6393697",
"0.6391405",
"0.636739",
"0.6303757",
"0.62975174",
"0.62332475",
"0.62195146",
"0.6209198",
"0.6204461... | 0.0 | -1 |
extract patches (with or without context) from a 3D image if the user sets patch_size equal to 1 and ctx_radius equal to (0,), then all (and only) the values of idxs will be directly pulled from the numpy array (very fast!) if the user sets patch_size equal to 0, then the central pixel will not be extracted, only the s... | def YXTw(nPrm, DNs0=None, FTrt=3, kpLf=0, eXR6=(3, 5, 7), D6Sf=True, JBMS=False):
if DNs0 is None:
DNs0 = oyIN.where(nPrm > kpLf)
if FTrt % 2 != 1 and FTrt > 0:
raise SkvT('Patch size must be odd or zero')
if len(DNs0) != 3:
raise SkvT('Data must be 3-dimensional.')
eXR6 = eXR6 i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U1xD(YKHO, NjCU, dRyq, ZXJJ, kWTg, LEqE):\n sa9u = [YKHO.center_of_mass_ij(ITS7) for ITS7 in YKHO.times]\n frfg = []\n cNRc = []\n oWOB = []\n kVai = []\n XCWx = []\n COvJ = []\n for a1PO, ITS7 in enumerate(YKHO.times):\n BHDx = (slice(sa9u[a1PO][0] - NjCU, sa9u[a1PO][0] + NjCU),... | [
"0.7090064",
"0.6793001",
"0.65807337",
"0.6453943",
"0.64293873",
"0.6395926",
"0.61576813",
"0.61506754",
"0.60751665",
"0.6045121",
"0.601196",
"0.5989834",
"0.5948674",
"0.5909477",
"0.5879795",
"0.58778334",
"0.5872079",
"0.58591396",
"0.58397543",
"0.5822568",
"0.581336... | 0.6930896 | 1 |
Generate a random string with the combination of lowercase and uppercase letters | def TJC9(FVpJ):
KoG3 = vIwR.ascii_letters
return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWvy(u54L=1, QmjV=False, cKm3=False):\n SIyd = BHGE\n Wxnj = str()\n if QmjV:\n SIyd += tcl1\n if cKm3:\n SIyd += JSRc\n while len(Wxnj) < u54L:\n bseI = Acvy(SIyd)\n if len(Wxnj) == 0:\n bseI = Acvy(tcl1)\n Wxnj += bseI\n return Wxnj",
"def ORa... | [
"0.7946826",
"0.7738986",
"0.7679305",
"0.7657063",
"0.7609224",
"0.7529105",
"0.7509637",
"0.74899936",
"0.73721504",
"0.73713845",
"0.73095775",
"0.7270342",
"0.7263459",
"0.7245338",
"0.7229803",
"0.7196288",
"0.7176311",
"0.71762294",
"0.7166171",
"0.7165482",
"0.7164123"... | 0.0 | -1 |
If author conditions match, run child actions. | def iXC1(YKHO):
if not YKHO.regex.search(YKHO.author):
return 0
YKHO.context.tokens['Author'] = YKHO.author
return super(a3Dk, YKHO).run() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(YKHO):\n if not YKHO.regex.match(YKHO.user):\n return 0\n return super(fDRV, YKHO).run()",
"def WFwW(YKHO):\n if 'install-bento' in YKHO.actions:\n YKHO._do_action_bento_setup()\n if 'create-tables' in YKHO.actions:\n YKHO._do_action_tables_create()\n if 'import-ratin... | [
"0.61574596",
"0.61307675",
"0.60542125",
"0.5880891",
"0.5762093",
"0.5703147",
"0.56884307",
"0.56884307",
"0.5659398",
"0.5623402",
"0.5615381",
"0.5615381",
"0.5615381",
"0.5613559",
"0.5605133",
"0.5605133",
"0.5571688",
"0.5568924",
"0.5560718",
"0.5534824",
"0.549065",... | 0.72102934 | 0 |
Returns whether existing static bindings require an update. | def a7iG(xAU6, Gx5f, gCuF):
P9dO, sgbo = mxZS(xAU6)
if not Hy7s.path.exists(P9dO):
G9jH.error("failed to find static Python binding .cpp file at '%s'", P9dO)
HwRy.exit(-12)
if not Hy7s.path.exists(gCuF.output_file):
return True
import filecmp
if not filecmp.cmp(P9dO, gCuF.out... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eWZe(YKHO) -> bool:\n return False",
"def eWZe(YKHO):\n return not YKHO.config.same_as(YKHO._stored_config, excluded=['cmake_generator'])",
"def YuNo(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'dependency_update')",
"def R1aV(YKHO):\n if YKHO.is_updated:\n YKHO.is_updated... | [
"0.6690729",
"0.644464",
"0.6159469",
"0.6119258",
"0.6105362",
"0.60355103",
"0.6032068",
"0.60197634",
"0.599974",
"0.59849477",
"0.59849477",
"0.59849477",
"0.59849477",
"0.59849477",
"0.5874212",
"0.58567077",
"0.58344716",
"0.58330137",
"0.58108795",
"0.577966",
"0.57693... | 0.6095028 | 5 |
The ID of the current affiliation according to Scopus. | def eech(YKHO):
return YKHO._json.get('affiliation-current', {}).get('@id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Cfs(YKHO):\n return YKHO._aff_id",
"def Krn7(YKHO):\n return YKHO._affiliate_oid",
"def eOeN(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'association_id')",
"def dB3i(YKHO):\n return YKHO.id",
"def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')",
"def id(YKHO) -> str:\n return qe4Y... | [
"0.81198645",
"0.7606688",
"0.6611478",
"0.66044164",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
"0.6596886",
... | 0.76033723 | 2 |
Class to represent a Scopus Author query by the scopusid. | def FIMM(YKHO, inK4, uUrB=False):
YKHO._id = str(int(str(inK4).split('-')[-1]))
X4vK.__init__(YKHO, YKHO._id, 'AuthorRetrieval', uUrB)
YKHO._json = YKHO._json['author-retrieval-response']
try:
YKHO._json = YKHO._json[0]
except KeyError:
VASM = YKHO._json['alias']['prism:url']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8Sj(YKHO, taDc):\n A07C = taDc.get('ids', [])\n for id in A07C:\n if id['schema'] == 'ORCID':\n return id['value']",
"def vu0S(Emd4, aqYu):\n p8Ee = Pg8r('VG_%s' % aqYu)\n if not p8Ee:\n p8Ee = [str(Oa1e.id()) for Oa1e in wR7l.all(keys_only=True).filter('author =', aqYu)... | [
"0.5821403",
"0.57149875",
"0.5504118",
"0.54856455",
"0.54786545",
"0.5441735",
"0.537706",
"0.5319915",
"0.5319915",
"0.5319915",
"0.52745295",
"0.52745295",
"0.5273645",
"0.5256441",
"0.5248979",
"0.5248979",
"0.52442986",
"0.5242263",
"0.523816",
"0.5237666",
"0.5222103",... | 0.5445242 | 5 |
Initializes name or raises exceptions. | def mWFP(YKHO, Dokz):
if type(Dokz) != str:
raise TypeError
elif len(Dokz) > YKHO.NAME_LEN_MAX:
raise ValueError
else:
YKHO._name = Dokz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO, mWFP):\n try:\n YKHO._name = mWFP\n except Exception as e:\n raise tTpl",
"def FIMM(YKHO, mWFP: str) -> None:\n YKHO._name = mWFP",
"def FIMM(YKHO, mWFP):\n YKHO._name = mWFP\n pass",
"def FIMM(YKHO, mWFP):\n YKHO._name = mWFP",
"def FIMM(YKHO, mWFP):\n YKH... | [
"0.7331325",
"0.7316429",
"0.73054016",
"0.72824514",
"0.72824514",
"0.72335076",
"0.7216129",
"0.71950895",
"0.7117422",
"0.7094429",
"0.706005",
"0.6988624",
"0.6988624",
"0.6988624",
"0.6988624",
"0.6988624",
"0.6988624",
"0.6982934",
"0.6972627",
"0.6972627",
"0.6972627",... | 0.0 | -1 |
Returns the birth date. | def _c1T(YKHO):
return YKHO._date | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def feEG(YKHO) -> str:\n return YKHO._birth_date",
"def ge71(YKHO):\n iuVk = YKHO.birthdate\n if iuVk:\n JRYC = qcWV.datetime.strptime(iuVk, '%d %b %Y')\n return JRYC.date()\n else:\n return iuVk",
"def Jr0g(YKHO):\n return YKHO.__date_of_birth",
"def Jr0g(YKHO) -> str:\n ... | [
"0.869477",
"0.8532876",
"0.8414813",
"0.84118456",
"0.8086971",
"0.8073747",
"0.7908046",
"0.78920686",
"0.7741814",
"0.7490186",
"0.7279895",
"0.7075022",
"0.6997279",
"0.69565374",
"0.67772436",
"0.67618597",
"0.67498857",
"0.67309785",
"0.67280513",
"0.67269915",
"0.67071... | 0.55270994 | 92 |
Returns the index of the name in the list through linear search. | def TrX4(Emd4, CGJY, mWFP):
for YRbF in range(len(CGJY)):
if mWFP == CGJY[YRbF].name:
return YRbF
return Emd4.NOT_FOUND | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jUbz(Emd4, CGJY, mWFP):\n d6pt = Emd4.binary_search_h(CGJY, mWFP, 0, len(CGJY) - 1)\n return d6pt",
"def TrX4(qFa0, H5ew):\n for YRbF in range(len(qFa0)):\n if qFa0[YRbF] == H5ew:\n return YRbF\n return -1",
"def TrX4(ybN4, H5ew):\n for YRbF in range(len(ybN4)):\n if... | [
"0.75526994",
"0.7475514",
"0.73415667",
"0.73283374",
"0.7212527",
"0.7175193",
"0.71190345",
"0.69839907",
"0.6914055",
"0.69122297",
"0.68360955",
"0.6830471",
"0.6802668",
"0.67936033",
"0.67802715",
"0.67586553",
"0.674661",
"0.6701394",
"0.66132295",
"0.65922177",
"0.65... | 0.8503366 | 0 |
Returns the index of the name in the list through binary search. | def jUbz(Emd4, CGJY, mWFP):
d6pt = Emd4.binary_search_h(CGJY, mWFP, 0, len(CGJY) - 1)
return d6pt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TrX4(Emd4, CGJY, mWFP):\n for YRbF in range(len(CGJY)):\n if mWFP == CGJY[YRbF].name:\n return YRbF\n return Emd4.NOT_FOUND",
"async def _exact_search(YKHO, mWFP, PMeG=None):\n if PMeG is None:\n PMeG = await YKHO._get_all_splits()\n for YRbF in range(len(PMeG)):\n ... | [
"0.7921743",
"0.7267634",
"0.7134139",
"0.7120976",
"0.69717205",
"0.68718535",
"0.6849081",
"0.6835377",
"0.680086",
"0.6779261",
"0.67450905",
"0.67212695",
"0.6694472",
"0.66890866",
"0.6676077",
"0.6675736",
"0.66697437",
"0.66634756",
"0.66575396",
"0.66444063",
"0.66423... | 0.8307284 | 0 |
Returns the index of the largest item in the list. | def s5Ac(CGJY, u54L):
WkM4 = 0
for YRbF in range(u54L):
if CGJY[YRbF] > CGJY[WkM4]:
WkM4 = YRbF
return WkM4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tI17(list):\n pass",
"def BA99(list):\n max = -oyIN.Infinity\n d6pt = 0\n YRbF = 0\n for BWXx in list:\n if BWXx > max:\n max = BWXx\n d6pt = YRbF\n YRbF += 1\n return d6pt",
"def GSCH(Q6uT):\n assert len(Q6uT) > 0\n WKvO, DKxu, d6pt = (len(Q6uT),... | [
"0.79740417",
"0.7768458",
"0.7741354",
"0.7511112",
"0.73583585",
"0.7314375",
"0.73022014",
"0.72367394",
"0.7216943",
"0.7091791",
"0.7061966",
"0.7031335",
"0.69689447",
"0.6950506",
"0.6833915",
"0.6833915",
"0.6833915",
"0.6793978",
"0.6792949",
"0.6781937",
"0.6779124"... | 0.73254013 | 5 |
Read the iris data set and split them into training and test sets | def mLPe():
Ty8a = gMbG.load_iris()
nPrm = Ty8a['data']
pan_ = Ty8a['target']
ywwl, E3D9 = nPrm.shape
qc42 = oyIN.ones((ywwl, E3D9 + 1))
qc42[:, 1:] = nPrm
svPB = len(oyIN.unique(pan_))
e6bu = oyIN.eye(svPB)[pan_]
return bHtP(qc42, e6bu, test_size=0.33, random_state=CYNo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lzu_(MJSD):\n MJSD = gMbG.load_iris()\n nPrm = MJSD['data']\n x6A0 = MJSD['target']\n ppBc, Zwka, JCJW, NR7E = bHtP(nPrm, x6A0, test_size=0.1)\n return (ppBc, Zwka, JCJW, NR7E)",
"def cTf9(onqj):\n XxFT, t4zr = bHtP(onqj, test_size=0.2, random_state=42)\n return (XxFT, t4zr)",
"def Y4c... | [
"0.86840147",
"0.7412835",
"0.73949766",
"0.72888356",
"0.71956486",
"0.7190181",
"0.7138559",
"0.71093816",
"0.70930296",
"0.7055825",
"0.6988381",
"0.6981499",
"0.6958128",
"0.695424",
"0.6951528",
"0.69407564",
"0.69405776",
"0.6924203",
"0.69197077",
"0.6915284",
"0.69124... | 0.7305273 | 3 |
haveibeenpwned.com API setup class, contains required headers, api key etc | def FIMM(YKHO, rJDA):
YKHO._api_key = rJDA
YKHO.headers = {'hibp-api-key': rJDA, 'user-agent': 'haveibeenpywned.py'}
'Dict of additional headers required for api calls to the haveibeenpwned.com\n api' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, bD7m='localhost', nNXP=None, N9aP=None):\n YKHO.url = bD7m\n if nNXP == None:\n if N9aP == None:\n try:\n YKHO.api = YKHO.apikey()\n except:\n YKHO.api = ''\n else:\n YKHO.api = YKHO.apikey(N9aP)\n else:\n Y... | [
"0.74662167",
"0.74065113",
"0.7307669",
"0.7267622",
"0.7248045",
"0.72415316",
"0.7164782",
"0.70773506",
"0.7052166",
"0.7046896",
"0.7025002",
"0.7021696",
"0.69985604",
"0.6948251",
"0.69243574",
"0.689379",
"0.6875908",
"0.68664426",
"0.685007",
"0.6796857",
"0.6784413"... | 0.80104417 | 0 |
Returns all "data classes". A "data class" is an attribute of a record compromised in a breach. For example, many breaches expose data classes such as "Email addresses" and "Passwords". | def RJKK(YKHO):
return YKHO._do_request('dataclasses') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nf7Q(YKHO):\n return YKHO._dataclasses",
"def ylai(YKHO):\n xDcj = oOLZ('structure exploration/classes')\n geh0 = YKHO._submit_query(xDcj)\n return [LihS['c']['value'].split('/')[-1] for LihS in geh0]",
"def HJmR(YKHO):\n return YKHO.classes",
"def KndY(YKHO):\n raise NotImplementedErro... | [
"0.7593299",
"0.6969874",
"0.69365895",
"0.6611238",
"0.6560574",
"0.6528585",
"0.6518693",
"0.65047234",
"0.65005875",
"0.6491597",
"0.64866287",
"0.6425726",
"0.64042854",
"0.63857615",
"0.6369201",
"0.63456434",
"0.62851804",
"0.6271262",
"0.6267843",
"0.6267843",
"0.62238... | 0.79020566 | 0 |
Generates a set of random angle positions for each joint. | def bcX8(YKHO):
tw24 = YKHO._q_ref.copy()
while True:
jwwo = YKHO._rand_obj_.uniform(YKHO._angles_low, YKHO._angles_high)
tw24[YKHO._joint_indices] = jwwo
MT1s, c9sK, vb7U, UqpO = YKHO._check_bound(tw24)
if c9sK:
break
return (jwwo, UqpO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DLd9(fQxG):\n exwG = len(fQxG.a)\n oVTz = oyIN.array(list(fQxG.ub.values()))\n Ae2G = oyIN.array(list(fQxG.lb.values()))\n iKvv = oyIN.random.random(exwG) * (oVTz - Ae2G) + Ae2G\n iKvv = rAig(iKvv)\n return iKvv",
"def hYT8(YKHO):\n YKHO.angle = ajWY(-360, 360)\n YKHO.speed = ajWY(1, ... | [
"0.74707836",
"0.65016574",
"0.647303",
"0.6099726",
"0.6061551",
"0.59800303",
"0.5957063",
"0.5844553",
"0.58117163",
"0.57865286",
"0.57756066",
"0.5731834",
"0.5723282",
"0.5719301",
"0.5636434",
"0.5618039",
"0.5589569",
"0.55706424",
"0.5530735",
"0.5530735",
"0.5518055... | 0.6849419 | 1 |
Calculate a sha256 hash of the first MB of a file and every 512MB offset | def VuXy(apum):
r8hN = HBct.sha256()
with open(apum, 'rb', 1024 * 1024) as eHNT:
vC9B = eHNT.read(1024 * 1024)
while len(vC9B) > 0:
r8hN.update(vC9B)
eHNT.seek(1024 * 1024 * (512 - 1), 1)
vC9B = eHNT.read(1024 * 1024)
return r8hN.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B5dr(Ux0P):\n V9VR = HBct.sha256()\n with open(Ux0P, 'rb') as eHNT:\n for yOAJ in iter(lambda: eHNT.read(4096), b''):\n V9VR.update(yOAJ)\n return V9VR.hexdigest()",
"def b48p(gIsw, Z1S6=2 ** 20):\n razo = Yf5F.new()\n gY90 = open(gIsw, 'r')\n while True:\n nPrm = g... | [
"0.7526049",
"0.7483799",
"0.7458667",
"0.73816144",
"0.7287259",
"0.72815084",
"0.7263004",
"0.71712226",
"0.71708715",
"0.7146456",
"0.713434",
"0.7113393",
"0.7069692",
"0.7042622",
"0.7037928",
"0.70223695",
"0.70124155",
"0.7011414",
"0.70032585",
"0.69882447",
"0.698549... | 0.7718487 | 0 |
Calculate relative positionaware dotproduct selfattention. The attention calculation is augmented with learned representations for the relative position between each element in q and each element in k and v. | def DW8x(vexM, G1Hx, Ty9i, oug5, VR8t, qlqq, hr1G=None):
KeL5 = WQHh(vexM, G1Hx, VR8t, True)
if oug5 is not None:
KeL5 += oug5
_mSQ = vuvg.softmax(KeL5, -1)
if hr1G is not None:
_mSQ = hr1G(_mSQ)
return (_mSQ, WQHh(_mSQ, Ty9i, qlqq, False)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUzg(vexM, G1Hx, Ty9i, ZHfW):\n LwVP = ZylS.matmul(vexM, G1Hx, transpose_b=True)\n WiZd = ZylS.cast(ZylS.shape(G1Hx)[-1], ZylS.float32)\n _q8E = LwVP / ZylS.math.sqrt(WiZd)\n if ZHfW is not None:\n _q8E += ZHfW * -1000000000.0\n HfyR = ZylS.nn.softmax(_q8E, axis=-1)\n hlel = ZylS.matmu... | [
"0.68195266",
"0.68038666",
"0.6799893",
"0.6799893",
"0.67888033",
"0.6776201",
"0.6765243",
"0.67502666",
"0.67109114",
"0.67029536",
"0.6660924",
"0.65879524",
"0.6382919",
"0.63718426",
"0.6223819",
"0.6204725",
"0.604961",
"0.600069",
"0.59804153",
"0.5865115",
"0.586252... | 0.7610927 | 0 |
Nonparametric bootstrapping for mean and standard deviation of data. | def OHct(nPrm, OnWS=10000):
dFH9 = []
for exwG in range(0, OnWS):
KpvO = VsGh(nPrm, replace=True, n_samples=None, random_state=None)
dFH9.append(oyIN.mean(KpvO))
p29q = oyIN.mean(dFH9)
X58p = oyIN.std(dFH9, dtype=oyIN.float64)
return (p29q, X58p) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_():\n jQ3Z = rLdf.read_csv('data/Boston.csv')\n cnd2 = len(jQ3Z)\n oyIN.random.seed(111)\n SRQ8 = oyIN.mean(jQ3Z['medv'])\n print('medv mean = {:.3f}'.format(SRQ8))\n HFka = Dz7Y.stdev(jQ3Z['medv']) / oyIN.sqrt(cnd2)\n print('medv standard error = {:.5f}'.format(HFka))\n tAGn = 1000... | [
"0.64253616",
"0.63953525",
"0.6324652",
"0.6264044",
"0.62474877",
"0.62136763",
"0.6040646",
"0.6036641",
"0.60337794",
"0.6004637",
"0.59977597",
"0.5925892",
"0.59084326",
"0.5883746",
"0.5877968",
"0.58090675",
"0.5792603",
"0.5782245",
"0.5737146",
"0.5729175",
"0.57289... | 0.6924311 | 0 |
Calculate the square of the standard deviation divided by mean. Returns a dataframe. | def jzUx(jQ3Z):
d2wI = jQ3Z.dropna()
d2wI = jQ3Z['std'].divide(jQ3Z['mean']) ** 2
d2wI.name = 'sq_std'
d2wI = rLdf.DataFrame(d2wI)
d2wI = d2wI.dropna()
return d2wI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XQb1(YKHO):\n PFC2 = YKHO.to_sparse().diagonal()\n M1Jx = oyIN.sqrt(PFC2)\n return rLdf.Series(M1Jx, index=YKHO.data.index, name='STD')",
"def M1Jx(K2kF):\n ZcDg = JBMS(K2kF)\n ilik = sum([(jQ3Z - ZcDg) * (jQ3Z - ZcDg) for jQ3Z in K2kF])\n return ilik / len(K2kF)",
"def ee6l(DumB):\n r... | [
"0.713817",
"0.7034297",
"0.7009347",
"0.6928206",
"0.6914255",
"0.6885497",
"0.68430775",
"0.683856",
"0.6800903",
"0.67548",
"0.6750036",
"0.67378706",
"0.6733283",
"0.6724245",
"0.6690851",
"0.66537976",
"0.66349167",
"0.6623512",
"0.6600477",
"0.6569947",
"0.6564526",
"... | 0.8169658 | 0 |
Return points as a DataFrame | def o4pG(YKHO):
return rLdf.DataFrame(YKHO.points) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hnXw(YKHO) -> rLdf.DataFrame:\n u0PL = rLdf.DataFrame([Xf84.as_dictionary for Xf84 in YKHO._reach_points])\n u0PL.spatial.set_geometry('SHAPE')\n return u0PL",
"def C6YU(YKHO):\n FVm4 = rLdf.DataFrame(YKHO.P, columns=YKHO.xvec, index=YKHO.yvec)\n FVm4.columns.name = 'x'\n FVm4.index.name = ... | [
"0.7914209",
"0.70626533",
"0.6857107",
"0.66520613",
"0.65722036",
"0.65693396",
"0.6465779",
"0.6420738",
"0.6405561",
"0.6378418",
"0.6370319",
"0.6352421",
"0.6351393",
"0.63387316",
"0.63144183",
"0.63144183",
"0.63144183",
"0.63144183",
"0.63144183",
"0.62535036",
"0.61... | 0.82998013 | 0 |
Get a timestamp of the current date in the preferred format | def ItX3():
return ITS7.strftime('%Y-%m-%d %H:%M:%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hw4X():\n return qcWV.now().strftime('%Y.%m.%d %H:%M:%S.%f')[:-7]",
"def E3oo():\n E3oo = qcWV.today().strftime('%Y-%m-%d')\n return E3oo",
"def jHdZ(YKHO):\n return str(ITS7.mktime(qcWV.datetime.now().timetuple()))",
"def oZF7():\n return int(qcWV.now().strftime('%s'))",
"def E3oo():\n ... | [
"0.81133074",
"0.8088549",
"0.80845183",
"0.8037244",
"0.79379404",
"0.7909125",
"0.7861129",
"0.78309476",
"0.7793799",
"0.7789436",
"0.77821374",
"0.7781246",
"0.77583665",
"0.7755523",
"0.77465737",
"0.77060443",
"0.76667833",
"0.7661988",
"0.76394886",
"0.76190346",
"0.76... | 0.7522288 | 25 |
Generate the XML string representation of this object. It doesn't use any special python module to keep compatibility with Slicer | def krn_(YKHO):
hlel = '<?xml version="1.0" encoding="utf8"?><GeometryTopologyData>'
if YKHO.num_dimensions != 0:
hlel += '<NumDimensions>%i</NumDimensions>' % YKHO.num_dimensions
hlel += '<CoordinateSystem>%s</CoordinateSystem>' % YKHO.__coordinate_system_to_str__(YKHO.coordinate_system)
if YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UD1P(YKHO):\n return YKHO._xmlpre + '\\n'.join(map(lambda eHNT: eHNT.toXML(), YKHO._items)) + YKHO._xmlpost",
"def Ry3J(YKHO):\n return QGpr.tostring(YKHO.get_etree())",
"def QToG(YKHO):\n raise NotImplementedError('must be implemented by all subclasses')",
"def zAg0(YKHO):\n Aofo = QToG.dom.... | [
"0.7444018",
"0.7417709",
"0.73246074",
"0.72655046",
"0.71488553",
"0.7119824",
"0.7117236",
"0.70290947",
"0.70209783",
"0.6985477",
"0.69573355",
"0.69437337",
"0.6937302",
"0.6921697",
"0.6891177",
"0.6852785",
"0.6818636",
"0.67883563",
"0.6773768",
"0.6747661",
"0.67208... | 0.65540385 | 42 |
Get the xml string representation of the point | def krn_(YKHO):
g8x2 = super(PvyL, YKHO).to_xml()
jNOo = dU9B.__to_xml_vector__(YKHO.coordinate, YKHO.format)
return '<Point>%s<Coordinate>%s</Coordinate></Point>' % (g8x2, jNOo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UD1P(YKHO, *qIxc):\n return _VfD.Point_toXML(YKHO, *qIxc)",
"def krn_(YKHO):\n hlel = '<?xml version=\"1.0\" encoding=\"utf8\"?><GeometryTopologyData>'\n if YKHO.num_dimensions != 0:\n hlel += '<NumDimensions>%i</NumDimensions>' % YKHO.num_dimensions\n hlel += '<CoordinateSystem>%s</Coordi... | [
"0.8101803",
"0.7010831",
"0.6940374",
"0.6851222",
"0.67575705",
"0.6746641",
"0.67308795",
"0.66953325",
"0.6676879",
"0.6654264",
"0.6587637",
"0.6562918",
"0.65483993",
"0.65205294",
"0.6508712",
"0.6501561",
"0.64824957",
"0.64060384",
"0.6381412",
"0.63755596",
"0.63748... | 0.81740326 | 0 |
Return a new instance of a Point object from xml "BoundingBox" element | def SWsX(LSom):
g8x2 = Ij4F.from_xml_node(LSom)
dnZa = []
for BHsk in LSom.findall('Start/value'):
dnZa.append(float(BHsk.text))
Ne9B = []
for BHsk in LSom.findall('Size/value'):
Ne9B.append(float(BHsk.text))
edvT = R6EX(g8x2.chest_region, g8x2.chest_type, g8x2.feature_type, dnZa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PDsa(X7zS):\n return (X7zS['@maxlat'], X7zS['@minlat'], X7zS['@maxlon'], X7zS['@minlon'])",
"def gFBf(pmON: Path) -> oyIN.ndarray:\n with open(pmON, mode='r') as nUeQ:\n lHmx = rKuS(nUeQ, 'xml')\n wBZN = float(lHmx.bndbox.xmin.string)\n re6M = float(lHmx.bndbox.xmax.string)\n KDmU = flo... | [
"0.6762533",
"0.6513566",
"0.64866483",
"0.63503605",
"0.632924",
"0.6262937",
"0.6238842",
"0.61690426",
"0.6150288",
"0.59898925",
"0.5892474",
"0.58671874",
"0.5836598",
"0.5829366",
"0.5809731",
"0.57863283",
"0.5755876",
"0.56877697",
"0.56653863",
"0.56519485",
"0.56515... | 0.75214934 | 0 |
Get the xml string representation of the bounding box | def krn_(YKHO):
HLDs = dU9B.__to_xml_vector__(YKHO.start, YKHO.format)
ONS5 = dU9B.__to_xml_vector__(YKHO.size, YKHO.format)
g8x2 = super(R6EX, YKHO).to_xml()
return '<BoundingBox>%s<Start>%s</Start><Size>%s</Size></BoundingBox>' % (g8x2, HLDs, ONS5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UD1P(YKHO):\n return _VfD.BoundingBox_toXML(YKHO)",
"def PDsa(X7zS):\n return (X7zS['@maxlat'], X7zS['@minlat'], X7zS['@maxlon'], X7zS['@minlon'])",
"def xFhy(YKHO):\n KCHu = '<element><id>floor1</id><category>floor</category><bounds><corner1>0., 0., 0.</corner1><corner2>0., 0., 0.</corner2></boun... | [
"0.7772671",
"0.7068699",
"0.6873577",
"0.6646032",
"0.65720594",
"0.6563929",
"0.65543574",
"0.6476132",
"0.6381904",
"0.63593704",
"0.6266397",
"0.62451667",
"0.62451667",
"0.62089556",
"0.62076813",
"0.620574",
"0.619256",
"0.61894584",
"0.61849076",
"0.6179268",
"0.615582... | 0.7647968 | 1 |
Sets pin to 0 output level. | def l4XF(YKHO) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UDRf(YKHO):\n xi8C.setwarnings(False)\n xi8C.setmode(xi8C.BOARD)\n xi8C.setup(YKHO.pin, xi8C.OUT)\n xi8C.output(YKHO.pin, xi8C.LOW)\n ITS7.sleep(3)\n xi8C.output(YKHO.pin, xi8C.HIGH)",
"def tJtz(YKHO, yQ5t: int) -> None:\n YKHO._pins[yQ5t - 1] = 'OUTPUT_LOW'",
"def finO(YKHO, yQ5t):\n ... | [
"0.71061224",
"0.7041869",
"0.7000544",
"0.69910437",
"0.6893605",
"0.68816113",
"0.6743418",
"0.6674658",
"0.6450905",
"0.6414794",
"0.64028215",
"0.63959575",
"0.63413215",
"0.629648",
"0.6288892",
"0.62748",
"0.6255868",
"0.62488633",
"0.6238575",
"0.62362516",
"0.62336636... | 0.0 | -1 |
Sets pin to 1 output level. | def zF0X(YKHO) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UDRf(YKHO):\n xi8C.setwarnings(False)\n xi8C.setmode(xi8C.BOARD)\n xi8C.setup(YKHO.pin, xi8C.OUT)\n xi8C.output(YKHO.pin, xi8C.LOW)\n ITS7.sleep(3)\n xi8C.output(YKHO.pin, xi8C.HIGH)",
"def set(yQ5t, wEf2=1):\n if wEf2 not in [0, 1]:\n raise RuntimeError\n xi8C.output(yQ5t, wEf... | [
"0.69885653",
"0.6881948",
"0.6804933",
"0.6759037",
"0.667056",
"0.65865165",
"0.65591294",
"0.65591294",
"0.6550606",
"0.64962894",
"0.6437662",
"0.63883775",
"0.6325998",
"0.6258773",
"0.6255017",
"0.62526935",
"0.62266445",
"0.62118626",
"0.61594224",
"0.61354446",
"0.609... | 0.0 | -1 |
Turns on PWM functionality on the associated pin. | def DbxN(YKHO) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lCSn(YKHO, JFWa):\n YKHO.hw_interfaces['pwm'][JFWa.name] = aJiH(pin=JFWa)",
"def Cqb3(YKHO):\n ZHfW = 1 << 3\n YKHO._injectFault('PWM1TCR', YKHO.TCR, ZHfW)",
"def zF0X(YKHO):\n if not YKHO._is_on:\n YKHO._pwms.enable(YKHO._pin_index, YKHO._frequency)\n YKHO._is_on = True",
"def ... | [
"0.7507943",
"0.7288023",
"0.7279597",
"0.7279189",
"0.7175336",
"0.7156948",
"0.7088378",
"0.70339763",
"0.69491214",
"0.6779807",
"0.67297035",
"0.6723542",
"0.6712733",
"0.67055964",
"0.6699761",
"0.6647362",
"0.6586929",
"0.6568149",
"0.6535646",
"0.65287006",
"0.6479545"... | 0.0 | -1 |
Generates a START condition on the bus (SDA transitions to low while SCL is high). | def yKcO(YKHO) -> None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UASx(YKHO):\n YKHO._state = zVa7.ServiceStateMachine(['READY'], default_state='READY')\n YKHO._temperature = 50\n YKHO._set_state_internal(force=True)",
"def cXam(YKHO, wEf2):\n nPrm = wEf2 & YKHO.ACQSTART_MASK\n YKHO._ftdi.spi_write(YKHO.ACQSTART_ADDR, [nPrm], burst='fixed')",
"def _m74(YKH... | [
"0.533664",
"0.51825917",
"0.51726115",
"0.5062321",
"0.5021848",
"0.49577686",
"0.49486732",
"0.4933952",
"0.49305284",
"0.4905358",
"0.49017555",
"0.48968908",
"0.487109",
"0.48656768",
"0.48656768",
"0.48656768",
"0.48656768",
"0.48656768",
"0.48656768",
"0.48656768",
"0.4... | 0.0 | -1 |
Reset clipping plane to the initial position | def O_TI(YKHO):
if YKHO.ui.checkBox.isChecked():
YKHO.changeClippingPlane() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQzg(YKHO):\n YKHO.ResetCameraClippingRange()",
"def SiRx(YKHO):\n YKHO.x_pos1 = 0\n YKHO.x_pos2 = YKHO.x_pos1 + YKHO.width\n YKHO.y_pos = YKHO.offset_y\n YKHO.velocity = YKHO.origin_velocity",
"def SiRx(YKHO):\n YKHO._x = 0\n YKHO._y = 0",
"def VJUC(YKHO):\n dir = qT99(0.0, 0.0, ... | [
"0.72114533",
"0.68878317",
"0.67456526",
"0.6715707",
"0.66233075",
"0.66181415",
"0.65896136",
"0.6578817",
"0.6536948",
"0.6497763",
"0.6484316",
"0.6471452",
"0.6400927",
"0.63769555",
"0.63728917",
"0.6343672",
"0.63340217",
"0.633372",
"0.632881",
"0.6328413",
"0.632614... | 0.7311386 | 0 |
late initialization using attributes ``N`` and ``popsize`` | def uIcm(YKHO, kXUa):
Mkmy = kXUa.sp.weights.mueff / kXUa.popsize
YKHO.index_to_compare = 0.5 * (Mkmy ** 0.5 + 2.0 * (1 - Mkmy ** 0.5) / oyIN.log(kXUa.N + 9) ** 2) * kXUa.popsize
YKHO.index_to_compare = 0.3 * kXUa.popsize
YKHO.damp = 2 - 2 / kXUa.N
YKHO.c = 0.3
YKHO.s = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, ywwl):\n pass",
"def FIMM(YKHO, zNig=100):\n YKHO.__parent = [YRbF for YRbF in range(zNig)]\n YKHO.__rank = [0 for bGrB in range(zNig)]",
"def JjQv(YKHO, ywwl):\n for WKvO in range(ywwl):\n YKHO.id.append(WKvO)\n for WKvO in range(ywwl):\n YKHO.sz.append(1)",
"def ... | [
"0.74300265",
"0.696399",
"0.68804914",
"0.6877807",
"0.6848971",
"0.67619073",
"0.6749006",
"0.6723467",
"0.67146224",
"0.6686835",
"0.6671072",
"0.6653456",
"0.6628384",
"0.6623292",
"0.66192466",
"0.66084754",
"0.6566455",
"0.656438",
"0.6558431",
"0.655732",
"0.655732",
... | 0.0 | -1 |
the first and second value in ``function_values`` must reflect two mirrored solutions. Mirrored solutions must have been sampled in direction / in opposite direction of the previous mean shift, respectively. | def QdZT(YKHO, kXUa, JSbA, **B2fa):
if YKHO.initialized is not True:
YKHO.initialize(kXUa.N, kXUa.opts)
if YKHO.initialized is not True:
BfDw.print_warning('dimension not known, damping set to 4', 'update', 'CMAAdaptSigmaTPA')
YKHO.initialized = True
if 1 < 3:
hefl = oyIN.asa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKaS(YKHO, hkxX):\n J4g0 = oyIN.max(hkxX)\n XLKX = oyIN.min(hkxX)\n\n def eHNT(WKvO):\n return (WKvO - XLKX) / (J4g0 - XLKX)\n return eHNT",
"def cBE8(DwDX, dQgj, XSoh):\n\n def O6wj(a1PO):\n Xf84 = dQgj + a1PO * XSoh\n _luV, ICX2 = DwDX(Xf84)\n return o7aa(f=_luV, ... | [
"0.5213453",
"0.5194283",
"0.51106",
"0.5087232",
"0.5041832",
"0.5018956",
"0.4948366",
"0.49431592",
"0.49379903",
"0.4915298",
"0.49128544",
"0.4912666",
"0.4899099",
"0.48883718",
"0.4830111",
"0.48290446",
"0.48279116",
"0.47945482",
"0.47945154",
"0.4787185",
"0.4783373... | 0.5703827 | 0 |
Checks if the object has either a valid DOI or URL | def _PxE(YKHO):
chmV = YKHO.qctx(VZ3E)()
_qN4 = set(chmV.load())
Kiaj = set()
for WGUL in _qN4:
bf9h = WGUL.reference()
if isinstance(bf9h, yQaM):
RHKR = bf9h.doi()
if RHKR:
for lvR3 in LeNn:
if lvR3.match(RHKR):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def faqJ(RHKR):\n try:\n qv1X = G4JS.get('http://dx.doi.org/%s' % RHKR, timeout=2.5)\n except (Grbl, GX9K) as e:\n bo34.error('Can not validate doi: ' + str(tTpl))\n raise\n else:\n return qv1X.status_code == 200",
"def SGVO(YKHO, RHKR):\n RHKR = YKHO.normalise(RHKR, inclu... | [
"0.664218",
"0.6509624",
"0.6371124",
"0.6319777",
"0.6193954",
"0.6177623",
"0.6164984",
"0.61067796",
"0.6100734",
"0.6020571",
"0.59995127",
"0.59993356",
"0.5990723",
"0.5988188",
"0.5985087",
"0.5978379",
"0.5974516",
"0.59663296",
"0.595839",
"0.5951592",
"0.59475064",
... | 0.56157315 | 47 |
Gets the status of this order based on a few conditions. | def VLTN(YKHO):
JVfx = FYrf.get_model(YKHO._meta.app_label, 'resultitem')
ndX8 = CNMA.objects.get_ok()
if not YKHO.aliquot.aliquot_condition:
jGRS = 'ERROR'
elif JVfx.objects.filter(result__order=YKHO) or YKHO.panel.panel_type == 'STORAGE':
if YKHO.aliquot.aliquot_condition == ndX8:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def update_order_status():\n o61b = Z33s.config['symbol']\n T4Wy = Z33s.order\n zJ7I = T4Wy.get('orderId', 0) if T4Wy else 0\n if not zJ7I:\n RKD7.error(f'Wrong state or use: check order status cannot find the order id.')\n return None\n try:\n bAcf = Z33s.client.get_order... | [
"0.69561034",
"0.694322",
"0.6855676",
"0.68541086",
"0.66167575",
"0.64354783",
"0.6378744",
"0.62970495",
"0.62887",
"0.62887",
"0.62887",
"0.6262306",
"0.62575763",
"0.62280935",
"0.6224763",
"0.61609876",
"0.6115667",
"0.60789305",
"0.6074266",
"0.6071368",
"0.60649365",
... | 0.72342694 | 0 |
Returns the Element specified by or None Looks at the real not the select2 widget, since that doesn't create the DOM until we click on it. | def pqeT(SYsl, IQMO, MTKo):
EfUA = Jx7R(SYsl, 'select', IQMO)
assert EfUA
try:
return EfUA.find_element_by_xpath(str('.//option[normalize-space(text()) = "%s"]' % MTKo))
except WxwH:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def feIN(YKHO):\n if YKHO.exists():\n U6D_ = YKHO.element()\n if U6D_.tag_name == u'select':\n return I9A4(U6D_)",
"def U6D_(YKHO):\n if isinstance(YKHO._selector, tuple):\n return YKHO._driver.find_element(*YKHO._selector)",
"def xtUD(YKHO, KAOR, qsJ6):\n DdnJ.debug('A... | [
"0.6852096",
"0.6456852",
"0.6172631",
"0.60803807",
"0.60538006",
"0.59906584",
"0.59722203",
"0.59425443",
"0.59387374",
"0.59002507",
"0.5898433",
"0.58677405",
"0.5866694",
"0.58614147",
"0.57861197",
"0.5746658",
"0.56525344",
"0.56332093",
"0.5614359",
"0.5601628",
"0.5... | 0.48249903 | 88 |
Returns a pandas timeseries dataframe with the cycle id as the value. | def Yulc(YKHO, bWOo):
return YKHO.data_provider.get_cycle_obs(bWOo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EAiN(YKHO):\n return",
"def Kiac(eCdU, FGW3):\n Kt9y, I_KI = list(eCdU.get('cycle_' + str(FGW3)).items())\n UbsS = list(zip(Kt9y[1], I_KI[1]))\n nPrm = rLdf.DataFrame(UbsS, columns=['Potential', 'Current'])\n return nPrm",
"def xYvZ(nNXP, oS73):\n _Re_ = nNXP.data_by_series(series=oS73)\n... | [
"0.66727316",
"0.6615727",
"0.627",
"0.62005085",
"0.6010478",
"0.5969151",
"0.59121937",
"0.57969636",
"0.5769604",
"0.57303125",
"0.5718447",
"0.56777257",
"0.5594098",
"0.55817556",
"0.55712366",
"0.5552834",
"0.55071044",
"0.5490255",
"0.5456189",
"0.54433453",
"0.5428817... | 0.4944678 | 78 |
Create sort options JSON dump for InvenioSearchJS. | def XyWE(lpc4):
return qQXR.dumps(dict(options=BQRP(lpc4)), sort_keys=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XyWE(lpc4):\n return qQXR.dumps({'options': BQRP(lpc4)})",
"def HyVf(lpc4, tH7u):\n return [{'text': Ty9i['title'], 'sortBy': G1Hx, 'sortOrder': Ty9i.get('default_order', 'asc'), 'default': tH7u['query'] == G1Hx, 'defaultOnEmptyString': tH7u['noquery'] == G1Hx} for G1Hx, Ty9i in sorted(lpc4.items(), ke... | [
"0.7647973",
"0.6721828",
"0.6474501",
"0.62434304",
"0.6147201",
"0.6114072",
"0.59847856",
"0.585511",
"0.5677213",
"0.56770813",
"0.5661485",
"0.5627517",
"0.55311555",
"0.54182565",
"0.5365508",
"0.53565365",
"0.53188163",
"0.5306118",
"0.5306118",
"0.5284684",
"0.5251678... | 0.75585943 | 1 |
Initializes a waveform from multiple waveforms. | def FIMM(YKHO, *kReO):
if len(kReO) < 2:
raise ValueError('Needs at least two waveforms to form a CompositeWaveform.')
for gcpQ in kReO:
YKHO._validate(gcpQ)
YKHO._waveforms = list(kReO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, HPlH=[], D0hC=[]):\n HPlH = [float(YRbF) for YRbF in HPlH]\n D0hC = [float(YRbF) for YRbF in D0hC]\n if len(HPlH) and (not len(D0hC)):\n YKHO.wavelengths = qjJM.array(HPlH)\n YKHO.intensities = qjJM.array([0.0] * len(HPlH))\n elif not len(HPlH) and len(D0hC):\n raise... | [
"0.6732369",
"0.633956",
"0.6135821",
"0.60347545",
"0.600781",
"0.5973297",
"0.58889836",
"0.5862459",
"0.5856629",
"0.58562154",
"0.58272624",
"0.58228755",
"0.57738274",
"0.5771001",
"0.5671579",
"0.56585145",
"0.56542605",
"0.5653904",
"0.565056",
"0.56315523",
"0.5593559... | 0.7351188 | 0 |
Convert a node id to a bitcoin address. | def eO2W(Lnes):
return WDgb(b'\x00' + Lnes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPKd(UTX6):\n return S9Th(UTX6)[1:]",
"def VRAa(YKHO, rk5Z: unicode) -> RnTg.program.model.address.Address:\n ...",
"def S7Qg(Q6kx):\n D8Ke = Zupg.AioNodeToIpAddress(Q6kx)\n return '%d.%d.%d.%d' % (D8Ke.a, D8Ke.b, D8Ke.c, D8Ke.d)",
"def dzMZ(YKHO, mLGw):\n if mLGw == iTB9:\n return ... | [
"0.6943163",
"0.6050124",
"0.6009167",
"0.5976289",
"0.58893955",
"0.577559",
"0.56174105",
"0.558131",
"0.5552375",
"0.549397",
"0.5488261",
"0.5478707",
"0.5433137",
"0.5413362",
"0.53965724",
"0.5384793",
"0.5361286",
"0.5309592",
"0.5294386",
"0.5252372",
"0.52402204",
... | 0.88026035 | 0 |
Split list into chunks of the given size. Original order is preserved. | def eHxA(DumB, zNig):
return [DumB[YRbF:YRbF + zNig] for YRbF in range(0, len(DumB), zNig)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXED(list, ztRo):\n for YRbF in range(0, len(list), ztRo):\n yield list[YRbF:YRbF + ztRo]",
"def _Qd3(a7r8, ztRo):\n assert a7r8 is not None\n for YRbF in range(0, len(a7r8), ztRo):\n yield a7r8[YRbF:YRbF + ztRo]",
"def nJNG(vC9B, maxY):\n eHxA = []\n vgXP = 0\n for zNig in ... | [
"0.8559774",
"0.82934535",
"0.8153084",
"0.8006796",
"0.799206",
"0.7990606",
"0.79425645",
"0.78783",
"0.782068",
"0.7762646",
"0.7737744",
"0.77330047",
"0.7712356",
"0.77036834",
"0.7669049",
"0.76601946",
"0.7656016",
"0.7634975",
"0.7581418",
"0.7567102",
"0.7544625",
... | 0.78850025 | 7 |
Returns the total size of all files in a directory. | def z3DD(XKL0):
B2mP = 0
for pGQh, iIh5, iumf in Hy7s.walk(XKL0):
for eHNT in iumf:
ytgA = Hy7s.path.join(pGQh, eHNT)
B2mP += Hy7s.path.getsize(ytgA)
return B2mP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NH0y(AGPF: str) -> int:\n zNig = 0\n for nUeQ in Hy7s.listdir(AGPF):\n Ux0P = Hy7s.path.join(AGPF, nUeQ)\n zNig += Hy7s.path.getsize(Ux0P)\n return zNig",
"def PaRd(YKHO):\n wjRY = 0\n for XP5J in YKHO.select_file(recursive=True):\n try:\n wjRY += XP5J.size\n ... | [
"0.85994136",
"0.8468758",
"0.82439613",
"0.8155375",
"0.8154064",
"0.8081626",
"0.8017493",
"0.776276",
"0.7736956",
"0.77107847",
"0.76583356",
"0.7378454",
"0.7371622",
"0.734555",
"0.73357457",
"0.7308904",
"0.72537863",
"0.7246301",
"0.70917696",
"0.70613694",
"0.7047035... | 0.6855207 | 31 |
Generates a simple string representing this order, in the format of '5x chais, 2x table' | def JBZA(YKHO):
DEZP = [f'{YRbF.quantity}x {YRbF.item.name}' for YRbF in YKHO.items]
return ','.join(DEZP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bnkv(T4Wy):\n CiHI = oyIN.array(T4Wy)\n pNz6 = oyIN.sum(CiHI == 0)\n XQaS = oyIN.sum(CiHI == 1)\n r9BM = oyIN.sum(CiHI == 2)\n mMtJ = '$'\n if pNz6 == 0 and XQaS == 0 and (r9BM == 0):\n return 'constant'\n if pNz6 > 0:\n mMtJ += 'x^{{{}}}'.format(pNz6)\n if XQaS > 0:\n ... | [
"0.67842156",
"0.6756943",
"0.66362876",
"0.66337097",
"0.6528493",
"0.64398247",
"0.6369542",
"0.6322151",
"0.6309945",
"0.6275073",
"0.62696475",
"0.6183502",
"0.61820257",
"0.61726725",
"0.6169974",
"0.61690223",
"0.6123048",
"0.61156565",
"0.6108299",
"0.6099818",
"0.6096... | 0.0 | -1 |
Initializes the LatexFloat with a caption and a tag. | def FIMM(YKHO, KzVY, TZ9E):
YKHO._caption = KzVY
YKHO._tag = TZ9E.replace(' ', '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, KzVY, TZ9E, QMAG, NXpY=0.7):\n super(AY2f, YKHO).__init__(KzVY, TZ9E)\n YKHO._image_path = QMAG\n YKHO._scale = NXpY",
"def Uuea(YKHO, Q6kx):\n YKHO.body.append(YKHO.starttag(Q6kx, 'figcaption', ''))",
"def qYYe(YKHO):\n YKHO.doc, YKHO.tag, YKHO.text = VBgC().tagtext()",
"def FI... | [
"0.5589178",
"0.5471002",
"0.54125345",
"0.52791595",
"0.5256642",
"0.52242815",
"0.5221189",
"0.5187113",
"0.5012101",
"0.50118905",
"0.49141017",
"0.48652402",
"0.48545364",
"0.48213896",
"0.4816042",
"0.4792866",
"0.47889185",
"0.4769716",
"0.4769716",
"0.4769716",
"0.4769... | 0.6798125 | 0 |
The pytorch autograd version of calculating residual | def XQK4(YKHO, WKvO, a1PO, P6bq, Ty9i):
Z4FI = ht2j.autograd.grad(P6bq, a1PO, grad_outputs=ht2j.ones_like(P6bq), retain_graph=True, create_graph=True)[0]
T8tr = ht2j.autograd.grad(P6bq, WKvO, grad_outputs=ht2j.ones_like(P6bq), retain_graph=True, create_graph=True)[0]
DnSE = ht2j.autograd.grad(T8tr, WKvO, gr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ed_d(YKHO) -> eQHC.NDArray[oyIN.float64]:\n return YKHO.data - YKHO.theory",
"def UKy8(YKHO, NArs):\n nPrm = YKHO.F ** 2\n C3ST = oyIN.absolute(YKHO._model()) ** 2\n WTkW = YKHO.sigma\n return (nPrm[YKHO.mask] - C3ST[YKHO.mask]) / WTkW[YKHO.mask]",
"def uuHL(YKHO, mWFP):\n QTBn = YKHO.get... | [
"0.70183986",
"0.6871696",
"0.68147755",
"0.6750128",
"0.6652142",
"0.66166586",
"0.6602038",
"0.65820956",
"0.6567983",
"0.653666",
"0.6498291",
"0.6447466",
"0.6439558",
"0.6423172",
"0.6394977",
"0.6276244",
"0.62630713",
"0.6256495",
"0.6216926",
"0.620914",
"0.61731714",... | 0.6797474 | 3 |
Convert arrays to MultiIndex. | def IAYK(Emd4, Sk_F, Oyik: int | None=None, ZWCE: Sequence[Hashable] | Hashable | lib.NoDefault=_e0h.no_default) -> pcN8:
tf1m = 'Input must be a list / sequence of array-likes.'
if not Kuz2(Sk_F):
raise TypeError(tf1m)
if aRHW(Sk_F):
Sk_F = list(Sk_F)
for qw7D in Sk_F:
if not Ku... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YYDj(qw7D, fA3g, NKcn):\n B2te = rLdf.MultiIndex.from_product([range(YRbF) for YRbF in qw7D.shape])\n eTu4 = {'level_' + str(YRbF): NKcn[YRbF] for YRbF in range(len(NKcn))}\n return rLdf.DataFrame({fA3g: rLdf.Series(index=B2te, data=qw7D.flatten())}).reset_index().rename(eTu4, axis=1)",
"def pxKz(YK... | [
"0.6568427",
"0.6020459",
"0.5958974",
"0.5663307",
"0.56514394",
"0.56280124",
"0.55209684",
"0.549699",
"0.5490428",
"0.54442114",
"0.5416948",
"0.5405946",
"0.5315614",
"0.53122175",
"0.5239235",
"0.52379495",
"0.5225342",
"0.5222101",
"0.5185408",
"0.5156308",
"0.51496154... | 0.58396184 | 3 |
Return the dtypes as a Series for the underlying MultiIndex. Examples >>> idx = pd.MultiIndex.from_product([(0, 1, 2), ('green', 'purple')], ... names=['number', 'color']) >>> idx MultiIndex([(0, 'green'), (0, 'purple'), (1, 'green'), (1, 'purple'), (2, 'green'), (2, 'purple')], names=['number', 'color']) >>> idx.dtype... | def m1c7(YKHO) -> Series:
from pandas import Series
ZWCE = zJeG.fill_missing_names([ABDL.name for ABDL in YKHO.levels])
return Series([ABDL.dtype for ABDL in YKHO.levels], index=tTFA(ZWCE)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1c7(YKHO) -> rLdf.Series:\n return rLdf.Series([Jyyj.dtype for Jyyj in YKHO._internal.index_fields], index=rLdf.Index([mWFP if len(mWFP) > 1 else mWFP[0] for mWFP in YKHO._internal.index_names]))",
"def otXk(YKHO):\n return XTiz.dtype([('count', XTiz.float64)])",
"def pxKz(YKHO) -> rLdf.MultiIndex:\... | [
"0.72793233",
"0.58683264",
"0.57514507",
"0.57469267",
"0.56303644",
"0.55622905",
"0.55187994",
"0.54342955",
"0.5349008",
"0.5337053",
"0.5252856",
"0.51584876",
"0.51045334",
"0.5075535",
"0.49397582",
"0.4921555",
"0.48933786",
"0.4867922",
"0.48633084",
"0.47980618",
"0... | 0.7409178 | 0 |
Return the number of elements in the underlying data. | def zNig(YKHO) -> int:
return len(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO):\n return YKHO.data_array.size",
"def zNig(YKHO):\n U5bT = 0\n for P2GO in YKHO.__data:\n U5bT += int(P2GO.get_size())\n return U5bT",
"def RTy5(YKHO):\n return len(YKHO.data)",
"def c8dy(YKHO):\n return len(YKHO.data)",
"def yJv_(__n6):\n return __n6.count()",
... | [
"0.85899806",
"0.8423803",
"0.8414217",
"0.8210661",
"0.80919904",
"0.8047665",
"0.8039008",
"0.8034847",
"0.8028368",
"0.7915025",
"0.7895275",
"0.7874186",
"0.7864957",
"0.7843419",
"0.7843419",
"0.7843419",
"0.7843419",
"0.7843419",
"0.7837047",
"0.7822931",
"0.78134686",
... | 0.0 | -1 |
Integer number of levels in this MultiIndex. Examples >>> mi = pd.MultiIndex.from_arrays([['a'], ['b'], ['c']]) >>> mi MultiIndex([('a', 'b', 'c')], ) >>> mi.nlevels 3 | def vZKM(YKHO) -> int:
return len(YKHO._levels) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qqoI(YKHO):\n return YKHO._nlevels",
"def Cb9n(YKHO):\n return YKHO.primary_header['Number of levels']",
"def Cb9n(YKHO):\n return len(YKHO.scales)",
"def szAg(YKHO):\n return YKHO.data.index.get_level_values(0).to_series().nunique()",
"def zNig(YKHO, vcn7=None):\n return YKHO[vcn7].inde... | [
"0.75933546",
"0.731903",
"0.7178818",
"0.65723294",
"0.64887375",
"0.6476538",
"0.6376688",
"0.5913918",
"0.58839625",
"0.57709014",
"0.5510854",
"0.5493949",
"0.5455473",
"0.53948176",
"0.5392115",
"0.53767926",
"0.536649",
"0.5358589",
"0.534354",
"0.53428805",
"0.5314514"... | 0.7621207 | 0 |
return the number of bytes in the underlying data deeply introspect the level data if deep=True include the engine hashtable this is in internal routine | def H931(YKHO, y4ha: bool=False) -> int:
ZJyn = 24
dpUL = sum((YRbF.memory_usage(deep=y4ha) for YRbF in YKHO.levels))
oduh = sum((YRbF.nbytes for YRbF in YKHO.codes))
kvq9 = sum((PkkU(YRbF, ZJyn) for YRbF in YKHO.names))
Aofo = dpUL + oduh + kvq9
Aofo += YKHO._engine.sizeof(deep=y4ha)
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiw9(YKHO):\n return HwRy.getsizeof(YKHO.children) + HwRy.getsizeof(YKHO.parent) + HwRy.getsizeof(YKHO.dataset_id) + HwRy.getsizeof(YKHO.k) + YKHO.filter.get_size()",
"def i2Jd(YKHO):\n return YKHO._flat_data._tree_depth()",
"def szAg(YKHO):\n return len(YKHO.subtrees())",
"def szAg(YKHO) -> int... | [
"0.6753621",
"0.6542395",
"0.64652896",
"0.6415443",
"0.63772947",
"0.63761693",
"0.6366233",
"0.6358291",
"0.6357476",
"0.6357162",
"0.6316735",
"0.63133305",
"0.63085866",
"0.62735164",
"0.6263637",
"0.6212407",
"0.6205844",
"0.6205844",
"0.61761713",
"0.6151221",
"0.615030... | 0.7882383 | 0 |
Set new names on index. Each name has to be a hashable type. | def LCOS(YKHO, ZWCE, *, ABDL=None, xzCw: bool=True):
if ZWCE is not None and (not Kuz2(ZWCE)):
raise ValueError('Names should be list-like for a MultiIndex')
ZWCE = list(ZWCE)
if xzCw:
if ABDL is not None and len(ZWCE) != len(ABDL):
raise ValueError('Length of names must match le... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pwL3(YKHO):\n YKHO.xi = YKHO.i1\n YKHO.yi = YKHO.i2",
"def xZYe(YKHO, ZWCE, jDK_=0):\n YKHO.get_axis(jDK_).names = ZWCE",
"def pwL3(YKHO):\n YKHO.theta = YKHO.i1\n YKHO.radial = YKHO.i2",
"def oSgC(YKHO, *qIxc):\n return _VfD.SpeciesTypeComponentIndex_setName(YKHO, *qIxc)",
"def oSgC(... | [
"0.6842202",
"0.68311644",
"0.65839916",
"0.646326",
"0.6418336",
"0.63339156",
"0.6309426",
"0.618173",
"0.6102824",
"0.6080749",
"0.6042175",
"0.6033473",
"0.6000016",
"0.5945332",
"0.59041435",
"0.58616143",
"0.58616143",
"0.5859123",
"0.583149",
"0.57843554",
"0.57787365"... | 0.6435984 | 4 |
Return a boolean if the values are equal or decreasing. | def b9KO(YKHO) -> bool:
return YKHO[::-1].is_monotonic_increasing | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dhsH(hkxX):\n return all([YRbF >= r845 for YRbF, r845 in zip(hkxX, hkxX[1:])])",
"def hfzg(hkxX):\n return all([YRbF <= r845 for YRbF, r845 in zip(hkxX, hkxX[1:])])",
"def mwCj(YKHO):\n AOBR = 0\n for BWXx in YKHO.data:\n if BWXx < AOBR:\n return False\n AOBR = BWXx\n ... | [
"0.75411683",
"0.7101109",
"0.65814716",
"0.6485186",
"0.6383295",
"0.6379341",
"0.6370533",
"0.62918895",
"0.6273469",
"0.62532073",
"0.61968917",
"0.6188817",
"0.6163151",
"0.6135353",
"0.6113867",
"0.6112549",
"0.6101412",
"0.61003673",
"0.60794723",
"0.60569924",
"0.60431... | 0.7104333 | 1 |
Create a DataFrame with the levels of the MultiIndex as columns. Column ordering is determined by the DataFrame constructor with data as a dict. | def B5fV(YKHO, d6pt: bool=True, mWFP=_e0h.no_default, RiWs: bool=False) -> DataFrame:
from pandas import DataFrame
if mWFP is not _e0h.no_default:
if not Kuz2(mWFP):
raise TypeError("'name' must be a list / sequence of column names.")
if len(mWFP) != len(YKHO.levels):
rai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qhD4(w38M: list, wyuX: list, _KqF: list) -> rLdf.DataFrame:\n SqIz = l1Ox(_KqF, wyuX)\n Tgu8 = rLdf.MultiIndex.from_tuples(SqIz)\n jQ3Z = rLdf.concat(w38M, axis=1).loc[:, dict(SqIz).keys()]\n jQ3Z.columns = Tgu8\n return jQ3Z",
"def Suiq():\n OxJJ = [['approach', 'contact', 'retract', 'paus... | [
"0.70277464",
"0.6877731",
"0.68394387",
"0.6486251",
"0.63666445",
"0.6252275",
"0.5973582",
"0.5972855",
"0.5968527",
"0.59421885",
"0.59358686",
"0.5903799",
"0.5856466",
"0.5850365",
"0.5832864",
"0.58110815",
"0.580311",
"0.5745067",
"0.5742697",
"0.57394814",
"0.5734639... | 0.6281439 | 5 |