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 |
|---|---|---|---|---|---|---|
Gets the start of this GIFOutput. What second of the storyboard timeline to start the GIF. | def yKcO(YKHO):
return YKHO._start | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lAAs(YKHO):\n return hPFK.Animation_getStartTime(YKHO)",
"def lAAs(YKHO):\n return hPFK.Channel_getStartTime(YKHO)",
"def orK2(YKHO):\n return YKHO._start",
"def MkYa(YKHO):\n return YKHO._start",
"def z4o8(YKHO):\n return YKHO._start",
"def lAAs(YKHO):\n return hPFK.Vec2LinearSampl... | [
"0.7076997",
"0.6851174",
"0.66245645",
"0.6571833",
"0.65565145",
"0.6531953",
"0.65159637",
"0.65159637",
"0.63531405",
"0.63480484",
"0.6346194",
"0.63422894",
"0.6338405",
"0.6206076",
"0.6201802",
"0.61647004",
"0.6138878",
"0.6114829",
"0.6110501",
"0.607757",
"0.606464... | 0.61608136 | 20 |
Sets the start of this GIFOutput. What second of the storyboard timeline to start the GIF. | def yKcO(YKHO, yKcO):
if yKcO is None:
raise ValueError('Invalid value for `start`, must not be `None`')
YKHO._start = yKcO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKcO(YKHO, yKcO):\n YKHO._start = yKcO",
"def yKcO(YKHO, yKcO):\n YKHO._start = yKcO",
"def yKcO(YKHO, yKcO):\n YKHO._start = yKcO",
"def yKcO(YKHO, yKcO):\n YKHO._start = yKcO",
"def yKcO(YKHO):\n if YKHO._start is not None:\n raise RuntimeError('Animations can only be run once')... | [
"0.6723576",
"0.6723576",
"0.6723576",
"0.6723576",
"0.6678015",
"0.665719",
"0.6505287",
"0.6384998",
"0.6332083",
"0.62387615",
"0.62376267",
"0.62024736",
"0.6184223",
"0.6178705",
"0.60933346",
"0.60816824",
"0.60661453",
"0.5995193",
"0.5995193",
"0.59945655",
"0.5989577... | 0.60994416 | 14 |
Gets the duration of this GIFOutput. Seconds for the duration of the GIF. Can't be longer than the video. | def WbTE(YKHO):
return YKHO._duration | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbTE():\n JRmW, WbTE = Jd2p()\n return WbTE",
"def oM4s(YKHO):\n return YKHO._video_duration",
"def EdTY(YKHO):\n Hv7J = YKHO.get_frame_duration()\n c1sR = YKHO.get_num_frames()\n liRQ = Hv7J * (c1sR - 1)\n return liRQ",
"def ONFB(YKHO):\n try:\n YzQK = YKHO.im.info['durati... | [
"0.7762158",
"0.7709614",
"0.75428295",
"0.7538186",
"0.74586827",
"0.74504477",
"0.74190795",
"0.7403893",
"0.7340937",
"0.733311",
"0.7328377",
"0.7324417",
"0.72875273",
"0.7262277",
"0.7247565",
"0.72455525",
"0.72377896",
"0.7232972",
"0.721482",
"0.7209425",
"0.7201544"... | 0.7359599 | 12 |
Gets the suffix of this GIFOutput. Unique ending of the file name so several outputs can be created then identified. Required if there is more then 1 video output. | def ZI14(YKHO):
return YKHO._suffix | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZI14(YKHO):\n return YKHO['suffix']",
"def ZI14(YKHO):\n return YKHO['suffix']",
"def kBpi(YKHO):\n return f'{YKHO.image_count:05}' if YKHO.sequential_naming else qcWV.datetime.now().strftime('%Y-%m-%d-%H-%M-%S')",
"def ZI14(YKHO):\n return YKHO.__suffix",
"def ZI14(YKHO):\n return YKHO.... | [
"0.7610536",
"0.7610536",
"0.75316405",
"0.7521287",
"0.7521287",
"0.7347243",
"0.7304037",
"0.70785016",
"0.70785016",
"0.70710915",
"0.7039384",
"0.69881004",
"0.6693291",
"0.6596418",
"0.65870094",
"0.651454",
"0.64653707",
"0.6425669",
"0.63848877",
"0.63419944",
"0.63229... | 0.7638083 | 2 |
Sets the suffix of this GIFOutput. Unique ending of the file name so several outputs can be created then identified. Required if there is more then 1 video output. | def ZI14(YKHO, ZI14):
YKHO._suffix = ZI14 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZbTh(YKHO, BWXx):\n return YKHO._set(suffix=BWXx)",
"def kBpi(YKHO):\n return f'{YKHO.image_count:05}' if YKHO.sequential_naming else qcWV.datetime.now().strftime('%Y-%m-%d-%H-%M-%S')",
"def ZI14(YKHO):\n return YKHO._suffix",
"def ZI14(YKHO):\n return YKHO._suffix",
"def ZI14(YKHO):\n r... | [
"0.7028223",
"0.69330084",
"0.67990613",
"0.67990613",
"0.67990613",
"0.67454875",
"0.67454875",
"0.67304456",
"0.66012996",
"0.66012996",
"0.6601247",
"0.6541266",
"0.63328516",
"0.6209011",
"0.6205128",
"0.61271995",
"0.6105634",
"0.6063221",
"0.60500926",
"0.60498923",
"0.... | 0.73530364 | 3 |
Gets the overlay_alignment of this GIFOutput. Alignment for overlay image in case the image doesn't fit the video perfectly. The first item in the array is X. The second is Y. | def nnpp(YKHO):
return YKHO._overlay_alignment | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nnpp(YKHO, nnpp):\n BbPm = ['left', 'center', 'right', 'top', 'middle', 'bottom']\n if not set(nnpp).issubset(set(BbPm)):\n raise ValueError('Invalid values for `overlay_alignment` [{0}], must be a subset of [{1}]'.format(', '.join(map(str, set(nnpp) - set(BbPm))), ', '.join(map(str, BbPm))))\n ... | [
"0.6082157",
"0.5811847",
"0.57966024",
"0.5563203",
"0.5563203",
"0.5563203",
"0.5542505",
"0.54789925",
"0.5473381",
"0.5473381",
"0.5473381",
"0.54557025",
"0.5414728",
"0.5391308",
"0.53716415",
"0.53711426",
"0.53711426",
"0.5358381",
"0.5308002",
"0.5301803",
"0.5293957... | 0.78458405 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, ECQy):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Takes masked softmax over given dimension of logits. | def Ibo7(KeL5, ZHfW, tpio):
Mhzc = (1 - ZylS.cast(ZHfW, 'float')) * -1e+30
APKa = ZylS.add(KeL5, Mhzc)
q414 = ZylS.nn.softmax(APKa, tpio)
return (APKa, q414) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ibo7(KeL5, ZHfW, tpio=-1, h_oU=False):\n ZHfW = ZHfW.type(ht2j.float32)\n APKa = ZHfW * KeL5 + (1 - ZHfW) * -1e+30\n fMFa = vuvg.log_softmax if h_oU else vuvg.softmax\n BFeB = fMFa(APKa, tpio)\n return BFeB",
"def Ibo7(vhpA, ZHfW):\n qiip = vhpA.size()\n iHy6 = vhpA.view(-1, qiip[-1])\n ... | [
"0.80401665",
"0.7654991",
"0.761089",
"0.75716364",
"0.7517807",
"0.74387515",
"0.7438501",
"0.7347286",
"0.7323559",
"0.73165834",
"0.7309688",
"0.73022497",
"0.7278672",
"0.72193605",
"0.7214303",
"0.71653897",
"0.7160705",
"0.7139164",
"0.70996326",
"0.70656717",
"0.70488... | 0.8118963 | 1 |
Get distance between two points going only through the defense land | def Ch8W(YKHO, EBgd, HpuQ):
try:
return YKHO.distancerDefense.getDistance(EBgd, HpuQ)
except Exception:
return YKHO.getMazeDistance(EBgd, HpuQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ayfi(YKHO, Hps1, YX4M=True):\n return 0.0",
"def zG70(cntZ: Point, CsFy: Point) -> auK0:\n return PZyS((CsFy.x - cntZ.x) ** 2 + (CsFy.y - cntZ.y) ** 2)",
"def k9Tn(lCHq: np.ndarray, ANJu: np.ndarray) -> float:\n return oyIN.sqrt(oyIN.sum(oyIN.square(lCHq - ANJu)))",
"def LhCJ(YKHO, a0GJ, TLv5):\... | [
"0.744277",
"0.71968544",
"0.7164096",
"0.7129097",
"0.707927",
"0.7068014",
"0.7024101",
"0.7008225",
"0.698951",
"0.6964147",
"0.693927",
"0.6936985",
"0.69191873",
"0.6912923",
"0.687099",
"0.68569434",
"0.68446594",
"0.6841914",
"0.68375",
"0.68300796",
"0.6805769",
"0.... | 0.72054726 | 1 |
Return true if this term and other are strictly syntactically equivalent. This would tipically be in the magic method `__eq__`, but we use `__eq__` for a different purpose, namely, to be able to use Python expressions such as "loc(b1)==table" in order to construct a FOL atom. | def hkek(YKHO, Elif):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if Elif is YKHO:\n return True\n if isinstance(Elif, gadJ):\n if Elif.parent() != YKHO.parent():\n return False\n else:\n return bool(Elif._express == YKHO._express)\n else:\n return bool(YKHO._express == Elif)",
"def xa14(YKHO, E... | [
"0.73922414",
"0.72952706",
"0.7224389",
"0.7203774",
"0.6997577",
"0.6990958",
"0.6936724",
"0.6910764",
"0.6866715",
"0.68585664",
"0.6852991",
"0.6825722",
"0.68223184",
"0.67959416",
"0.6793662",
"0.67728335",
"0.67344457",
"0.673216",
"0.667139",
"0.66642874",
"0.6662836... | 0.7148483 | 4 |
insert a new element e into L after position p in L | def qJs5(YKHO, XP5J, tTpl):
if XP5J == YKHO.tail:
tTpl.prev = XP5J
XP5J.next = tTpl
YKHO.tail = tTpl
else:
tTpl.next = XP5J.next
tTpl.prev = XP5J
XP5J.next.prev = tTpl
XP5J.next = tTpl
YKHO.size += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JPHp(YKHO, XP5J, LihS):\n Q6kx = YKHO._validate(XP5J)\n Esd_ = YKHO._Node(LihS, idx=YKHO._curr_idx, parent=Q6kx._parent)\n YKHO._curr_idx += 1\n Q6kx._parent = Esd_\n Esd_._children.append(Q6kx)\n YKHO._size += 1\n YKHO._depths, YKHO._heights = (None, None)\n return YKHO._make_position(... | [
"0.6875697",
"0.683577",
"0.68196416",
"0.6734926",
"0.6691563",
"0.6660932",
"0.65894085",
"0.6546601",
"0.65235424",
"0.6392077",
"0.6371146",
"0.6342604",
"0.63203907",
"0.63068795",
"0.6300094",
"0.6290958",
"0.6276742",
"0.6204748",
"0.6189171",
"0.6147242",
"0.6122845",... | 0.682632 | 2 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, WbSY):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, WbSY):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Create a new decider instance for this tank. | def FIMM(YKHO, zvOU, MVIL):
YKHO.target_height = zvOU
YKHO.margin = MVIL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v3hF(YKHO):\n return zJYA()",
"def x8wb(_AKB, or8S):\n FdHb = _qLf(_AKB.currentBoardState)\n XeOP = FdHb.get_available_actions()[or8S]\n _AKB.children[or8S] = b1_F(FdHb, XeOP, _AKB.level + 1, _AKB, strategy=_AKB.strategy)",
"def FIMM(YKHO, mWFP, Jtpl, Lg0L):\n YKHO._name = mWFP\n YKHO._bu... | [
"0.5191765",
"0.5076142",
"0.5060887",
"0.5056275",
"0.49928105",
"0.49708506",
"0.49122322",
"0.4881246",
"0.48092645",
"0.48057178",
"0.48007756",
"0.4775759",
"0.4762769",
"0.47324157",
"0.47183925",
"0.4665197",
"0.4644241",
"0.46142703",
"0.459592",
"0.45821506",
"0.4580... | 0.0 | -1 |
Creates a onedimensional copy of the original list. Each atomic value is copied directly into the returned list. Each list or tuple encountered in the original list has its elements fully expanded into the returned list. | def PWgb(lu1l):
rm8o = []
for ZfUD in lu1l:
if isinstance(ZfUD, list) or isinstance(ZfUD, tuple):
rm8o += PWgb(ZfUD)
else:
rm8o.append(ZfUD)
return rm8o | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mEcU(HU2v):\n zzuG = []\n for YRbF in range(len(HU2v)):\n zzuG.append([])\n for r845 in range(len(HU2v)):\n zzuG[YRbF].append(HU2v[YRbF][r845])\n return zzuG",
"def zzuG(vC9B: List[Any]) -> x1iM[ImMB]:\n return [ZfUD for ZfUD in vC9B]",
"def COne(YKHO, list):\n jth9 ... | [
"0.6927564",
"0.64464235",
"0.63768125",
"0.6303269",
"0.6203216",
"0.61485165",
"0.6136498",
"0.61050004",
"0.6041816",
"0.6032829",
"0.59858614",
"0.59675235",
"0.5932443",
"0.58459234",
"0.5824462",
"0.57863224",
"0.5776607",
"0.57702994",
"0.5757627",
"0.5735408",
"0.5725... | 0.51816493 | 97 |
Objects are equal when the have the same DN. | def iSZb(YKHO):
IwtX = bTKY.BaseLDAPEntry(dn='ou=Team, dc=example,dc=com')
nvjF = bTKY.BaseLDAPEntry(dn='ou=Team, dc=example,dc=com')
cntZ = RA_F.DeleteOp(IwtX)
CsFy = RA_F.DeleteOp(nvjF)
YKHO.assertEqual(cntZ, CsFy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qajA(YKHO):\n eHuZ = _Gue.DistinguishedName(stringValue='ou=Team,dc=example,dc=com')\n cntZ = RA_F.DeleteOp(eHuZ)\n nvjF = bTKY.BaseLDAPEntry(dn='ou=Team, dc=example, dc=com')\n CsFy = RA_F.DeleteOp(nvjF)\n pGCm = RA_F.DeleteOp('ou=Team, dc=example,dc=com')\n YKHO.assertEqual(cntZ, CsFy)\n ... | [
"0.665897",
"0.6595536",
"0.6559323",
"0.65231705",
"0.64151347",
"0.63600206",
"0.6305464",
"0.6276601",
"0.62563235",
"0.61931187",
"0.61730045",
"0.6166215",
"0.61655784",
"0.61634344",
"0.61440104",
"0.6120709",
"0.6116827",
"0.6102328",
"0.6101921",
"0.60912746",
"0.6087... | 0.6638436 | 1 |
DeleteOp objects are equal if their DNs are equal. | def qajA(YKHO):
eHuZ = _Gue.DistinguishedName(stringValue='ou=Team,dc=example,dc=com')
cntZ = RA_F.DeleteOp(eHuZ)
nvjF = bTKY.BaseLDAPEntry(dn='ou=Team, dc=example, dc=com')
CsFy = RA_F.DeleteOp(nvjF)
pGCm = RA_F.DeleteOp('ou=Team, dc=example,dc=com')
YKHO.assertEqual(cntZ, CsFy)
YKHO.assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iSZb(YKHO):\n IwtX = bTKY.BaseLDAPEntry(dn='ou=Team, dc=example,dc=com')\n nvjF = bTKY.BaseLDAPEntry(dn='ou=Team, dc=example,dc=com')\n cntZ = RA_F.DeleteOp(IwtX)\n CsFy = RA_F.DeleteOp(nvjF)\n YKHO.assertEqual(cntZ, CsFy)",
"def BlHZ(YKHO):\n IwtX = bTKY.BaseLDAPEntry(dn='ou=Team, dc=examp... | [
"0.73695445",
"0.7121779",
"0.6974125",
"0.6964153",
"0.68876994",
"0.66953886",
"0.6677444",
"0.62607294",
"0.62252873",
"0.62102026",
"0.6203794",
"0.61505586",
"0.5923089",
"0.58912915",
"0.5797456",
"0.57742137",
"0.5747886",
"0.56847215",
"0.56771487",
"0.56651294",
"0.5... | 0.7539459 | 0 |
DeleteOp objects are not equal when the have different LDAP entries. | def tZox(YKHO):
IwtX = bTKY.BaseLDAPEntry(dn='ou=Team, dc=example,dc=com')
nvjF = bTKY.BaseLDAPEntry(dn='ou=Cowboys, dc=example,dc=com')
cntZ = RA_F.DeleteOp(IwtX)
CsFy = RA_F.DeleteOp(nvjF)
YKHO.assertNotEqual(cntZ, CsFy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qajA(YKHO):\n eHuZ = _Gue.DistinguishedName(stringValue='ou=Team,dc=example,dc=com')\n cntZ = RA_F.DeleteOp(eHuZ)\n nvjF = bTKY.BaseLDAPEntry(dn='ou=Team, dc=example, dc=com')\n CsFy = RA_F.DeleteOp(nvjF)\n pGCm = RA_F.DeleteOp('ou=Team, dc=example,dc=com')\n YKHO.assertEqual(cntZ, CsFy)\n ... | [
"0.8243594",
"0.8238518",
"0.79273254",
"0.7917759",
"0.7837672",
"0.7599454",
"0.7520965",
"0.7130038",
"0.6935918",
"0.6859313",
"0.68569475",
"0.6782144",
"0.6508775",
"0.6477197",
"0.62264705",
"0.6213489",
"0.6212964",
"0.60358036",
"0.6033882",
"0.60309523",
"0.59265226... | 0.81283015 | 2 |
Invalid type of DN raises AssertionError | def vIdL(YKHO):
YKHO.assertRaises(AssertionError, RA_F.DeleteOp, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F1ry():\n with trZe.raises(SystemExit):\n assert CHaW('8.8.8.8', 'google.com', 'XYZ', 1)",
"def jwjv(YKHO):\n xXXd = '*.domain.loc'\n zrIJ = BKX1(YKHO.org_name)\n YKHO.assertRaises(P1dF.InputError, zrIJ.create, xXXd)",
"def CI8h(YKHO):\n lhKE = kpgd('test.example.com')\n with YKHO.... | [
"0.6102946",
"0.60879546",
"0.60435635",
"0.59925544",
"0.59021413",
"0.5806988",
"0.5777806",
"0.5716664",
"0.57142717",
"0.56849355",
"0.5669419",
"0.5668466",
"0.5655222",
"0.5636531",
"0.56307924",
"0.56252545",
"0.56155413",
"0.5597194",
"0.5589934",
"0.5567641",
"0.5567... | 0.6022595 | 3 |
Modify operations are not equal with other object types. | def ZhMM(YKHO):
skca = RA_F.ModifyOp('cn=john,dc=example,dc=com', [RA_F.Delete('description')])
YKHO.assertNotEqual('cn=john,dc=example,dc=com', skca) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, njIY):\n return True\n return YKHO.to_dict() != Elif.to_dict()",
"def jVn8(YKHO):\n jzdc = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i = ei4T.OpaqueObject(YKHO.bytes_a, aVkO.OpaqueDataType.NONE)\n Fg_i.opaque_type = 'inval... | [
"0.66701645",
"0.6650229",
"0.66290677",
"0.6574526",
"0.65306",
"0.6503209",
"0.6490417",
"0.64533794",
"0.6431893",
"0.641037",
"0.63912207",
"0.63811505",
"0.6380642",
"0.63728714",
"0.6324027",
"0.6298897",
"0.6289167",
"0.62679493",
"0.626407",
"0.62496984",
"0.6221644",... | 0.64344126 | 8 |
Calculate the precisionrecall (PR) curve. It's not a public method. Use it only when you understand what you are doing exactly. The PR curve result is similar to that in sklearn and ROCR in R with minor difference. The first precisionrecall pair always takes the value (1,0). | def e5ud(YKHO, aRqL):
khdH = YKHO.rawPredictionColValue
zy1L = YKHO.labelColValue
AdZ9 = wzRA(aRqL, khdH, zy1L).select('precision', 'recall')
return AdZ9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fo3h(Y8eF, ZxJs, pYkT):\n uSAa = o0TP(Y8eF, ZxJs)\n if pYkT.graphs:\n rhd_, AOzf, bGrB = wzRA(Y8eF, ZxJs)\n QrM1.style.use('ggplot')\n QrM1.clf()\n QrM1.plot(AOzf, rhd_, label='Precision-Recall Curve (Area = %0.3f)' % uSAa)\n QrM1.xlabel('Recall: P(predicted+|true+)')\... | [
"0.7959289",
"0.77566373",
"0.7682807",
"0.74131346",
"0.73854953",
"0.73743725",
"0.73437935",
"0.7288011",
"0.72208554",
"0.72071886",
"0.718288",
"0.7181433",
"0.7181433",
"0.7180739",
"0.7163176",
"0.7161011",
"0.7159116",
"0.70982945",
"0.7091552",
"0.70432097",
"0.70173... | 0.8154175 | 0 |
Take file path as string; return text as string. Takes a string that is a file path, opens the file, and turns the file's contents as one string of text. | def OcVp(qaEx):
OwN0 = open(qaEx)
LFxn = OwN0.read()
OwN0.close()
return LFxn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcVp(qaEx):\n OwN0 = open(qaEx)\n SFw1 = OwN0.read()\n return SFw1",
"def cHUw(VqRE):\n assert JC7M(VqRE), 'filepath does not exist'\n with open(VqRE, 'r', encoding='utf-8') as eHNT:\n l5Ny = ' '.join(map(lambda WKvO: WKvO.rstrip('\\n'), eHNT.readlines()))\n return l5Ny",
"def Wwj6... | [
"0.80470866",
"0.8014033",
"0.7990872",
"0.7920758",
"0.786444",
"0.7798141",
"0.7678207",
"0.76581025",
"0.76132697",
"0.76079136",
"0.7569296",
"0.7539552",
"0.75283855",
"0.75040907",
"0.7503145",
"0.7498271",
"0.7412663",
"0.73693025",
"0.7360746",
"0.7329229",
"0.72927",... | 0.80692214 | 0 |
Test for error if data_type = list but raw data file is in plate format. | def gNrR():
FAmx = Xvb7.read_in_envision(data_csv=UekL, platemap_csv=AMvm, data_type='list', size=384) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RIR1():\n FAmx = Xvb7.read_in_envision(data_csv=sbM3, platemap_csv=AMvm, data_type='plate', size=384)",
"def Rfag():\n FAmx = Xvb7.read_in_envision(data_csv=sbM3, platemap_csv=AMvm, data_type='typo', size=384)",
"def ARmh(YKHO, nPrm):\n assert 'file_contents' in nPrm, nPrm\n assert 'type' in nP... | [
"0.75342304",
"0.70626557",
"0.6768114",
"0.6571354",
"0.61076355",
"0.59984607",
"0.59412366",
"0.593715",
"0.58935404",
"0.5881785",
"0.58569247",
"0.5786611",
"0.57838047",
"0.5749198",
"0.574268",
"0.5735595",
"0.5733344",
"0.5718264",
"0.5713996",
"0.56484675",
"0.559914... | 0.7635421 | 0 |
Add a vertex to the graph. | def ohmD(YKHO, oqUi):
YKHO.vertices[oqUi] = set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, SLBp):\n raise NotImplementedError",
"def ohmD(YKHO, SLBp):\n if isinstance(SLBp, Yegm):\n YKHO.vertices.append(SLBp)\n return\n raise TypeError('Is not vertex instance!')",
"def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO",
"def ohmD(Y... | [
"0.8703537",
"0.84338593",
"0.8423067",
"0.8409588",
"0.83660835",
"0.8317327",
"0.8255059",
"0.8086839",
"0.8082268",
"0.803738",
"0.80348116",
"0.7882737",
"0.78723216",
"0.7840483",
"0.7840483",
"0.7762625",
"0.775688",
"0.77160776",
"0.7714244",
"0.7668677",
"0.76634395",... | 0.72670186 | 39 |
Add a directed edge to the graph. | def rz7z(YKHO, hQHm, jlSq):
if hQHm in YKHO.vertices and jlSq in YKHO.vertices:
YKHO.vertices[hQHm].add(jlSq)
else:
raise IndexError('Vertex does not exist') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKHO.edges and e1vZ in YKHO.edges):\n raise ValueError('Node not in graph')\n YKHO.edges[zZcM].append(e1vZ)",
"def WYRu(YKHO, hQHm, jlSq):\n if hQHm in YKHO.vertices:\n YKHO.vertices[hQ... | [
"0.78169996",
"0.77789694",
"0.7618847",
"0.761851",
"0.75694674",
"0.7547367",
"0.7483565",
"0.7437083",
"0.74284625",
"0.7422367",
"0.741715",
"0.7337182",
"0.73281914",
"0.7266331",
"0.7227267",
"0.7212267",
"0.71977764",
"0.7194343",
"0.71735585",
"0.7168542",
"0.7152955"... | 0.6447642 | 88 |
Get all neighbors (edges) of a vertex. | def BTfj(YKHO, oqUi):
return YKHO.vertices[oqUi] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3gy(YKHO, SLBp):\n return list(YKHO.neighbor_in_iterator(SLBp))",
"def YHRb(YKHO, SLBp):\n return list(YKHO.neighbor_out_iterator(SLBp))",
"def qIRx(YKHO, SLBp):\n hlel = []\n if SLBp in YKHO.adjacency_list:\n for _Wdu in YKHO.adjacency_list[SLBp]:\n hlel.append([_Wdu.vertex.... | [
"0.8146008",
"0.78266084",
"0.78112674",
"0.7634123",
"0.76183206",
"0.7559868",
"0.7391218",
"0.73596346",
"0.73310196",
"0.7279731",
"0.71649474",
"0.7128683",
"0.7083494",
"0.7077735",
"0.7033856",
"0.69887614",
"0.69749075",
"0.6923719",
"0.68615776",
"0.6847223",
"0.6838... | 0.729323 | 13 |
Writes a flag to a register with the given offset.\n | def qpjA(YKHO, I1mm, Bz5o, vgXP):
if len(I1mm) + vgXP > 8:
raise ValueError('Flag + offset exceeded 8 bit limit.')
n4_l = YKHO.read_byte_data(Bz5o)
for d6pt, BWXx in enumerate(I1mm):
if BWXx:
n4_l |= BWXx << d6pt + vgXP
else:
n4_l &= BWXx << d6pt + vgXP
YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CnHv(eBNq, oeNL, jGRS):\n if jGRS:\n return eBNq | 2 ** oeNL\n else:\n return eBNq & ~2 ** oeNL",
"def NGQc(YKHO, OXxz, BWXx):\n JbyC = {'C': 0, 'Z': 1, 'I': 2, 'D': 3, 'B': 4, 'V': 6, 'N': 7}\n vctM = YKHO.get_register('P')\n if BWXx == 1:\n HxWr = vctM | 1 << JbyC[OXxz]\... | [
"0.6303939",
"0.62794644",
"0.6193683",
"0.61641306",
"0.6088857",
"0.5993474",
"0.596513",
"0.59287363",
"0.5836613",
"0.5812747",
"0.5805649",
"0.5772962",
"0.5758084",
"0.5718409",
"0.5704642",
"0.5610061",
"0.5600659",
"0.5600078",
"0.5501439",
"0.5494253",
"0.548575",
... | 0.7759315 | 0 |
The Proximity Interrupt Threshold sets the high and low trigger points for the comparison function which generates an interrupt. If the value generated by the proximity channel, crosses below the lower threshold or above the higher threshold, an interrupt may be signaled to the host processor. Interrupt generation is s... | def E2zX(YKHO, Mn59, tg4l):
YKHO.write_byte_data(Mn59, cKt0.PROX_INT_LOW_THR_REG_ADDRESS)
YKHO.write_byte_data(tg4l, cKt0.PROX_INT_HIGH_THR_REG_ADDRESS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vZs4(YKHO):\n UHFx = 0\n while True:\n print('---------------- Analizo si debo detectar enemigos - PROXIMITY')\n print('----- DEBO?? ::::> self.enemy_not_detected = {}'.format(YKHO.enemy_not_detected))\n while YKHO.enemy_not_detected:\n Ayfi = YKHO.ir.proximity\n ... | [
"0.5534539",
"0.54538596",
"0.5126924",
"0.51206297",
"0.505338",
"0.5048163",
"0.5048163",
"0.5048163",
"0.5048163",
"0.5048163",
"0.5022339",
"0.4987388",
"0.4979836",
"0.49741766",
"0.49654108",
"0.49539858",
"0.4941065",
"0.49398372",
"0.49256364",
"0.49235585",
"0.491772... | 0.6906886 | 0 |
Returns how many four byte data points UDLR are ready for read over I2C. One fourbyte dataset is equivalent to a single count. | def zSQc(YKHO):
return YKHO.read_byte_data(cKt0.GESTURE_FIFO_LEVEL_REG_ADDRESS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EnYX(YKHO):\n return YKHO.unpack_dword(4)",
"def RTy5(YKHO):\n return len(YKHO.data)",
"def Xvdp(YKHO):\n return int(YKHO.numberOfImages / YKHO.slicesPerTimepoint)",
"def jEa4(YKHO):\n zNig = YKHO.unpack_dword(4)\n if zNig >= 2147483648:\n zNig -= 2147483648\n return zNig",
"de... | [
"0.6965965",
"0.6805894",
"0.677659",
"0.6650018",
"0.6626462",
"0.660655",
"0.6508911",
"0.6501165",
"0.6457129",
"0.63789034",
"0.6369483",
"0.63651574",
"0.6353523",
"0.634668",
"0.63127184",
"0.6292377",
"0.6277734",
"0.626514",
"0.62461203",
"0.62191695",
"0.6219098",
... | 0.6746333 | 3 |
Return product id of the order. | def Mc9N(YKHO):
return YKHO._product_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mc9N(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'product_id')",
"def zJ7I(YKHO) -> str:\n return qe4Y.get(YKHO, 'order_id')",
"def Mc9N(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'product_id')",
"def Mc9N(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'product_id')",
... | [
"0.75733906",
"0.74336404",
"0.73466593",
"0.7327513",
"0.69790107",
"0.69345057",
"0.6861878",
"0.6836638",
"0.6635784",
"0.6635784",
"0.6571606",
"0.65395075",
"0.64812005",
"0.63588506",
"0.62382644",
"0.6232359",
"0.62090987",
"0.6192391",
"0.6189691",
"0.61673254",
"0.60... | 0.7661305 | 2 |
Return item type of the order. | def Lojf(YKHO):
return YKHO._item_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lojf(YKHO) -> str:\n return YKHO.__item_type",
"def jAyP(YKHO, ZfUD):\n return ZfUD.GetType()",
"def Lojf(YKHO):\n pass",
"def Hghu(YKHO, ZfUD):\n return YKHO.cv.type(ZfUD)",
"def FmWB(YVL7):\n if 'object' in YVL7:\n Lojf = 'object'\n elif 'module' in YVL7:\n Lojf = 'mod... | [
"0.7878613",
"0.7632085",
"0.76022285",
"0.72713494",
"0.7140311",
"0.65833795",
"0.65375483",
"0.653278",
"0.64914745",
"0.64649284",
"0.6431173",
"0.6399569",
"0.6393856",
"0.6391988",
"0.63863796",
"0.6381702",
"0.63592213",
"0.6328614",
"0.6316727",
"0.631637",
"0.6296000... | 0.78946465 | 0 |
Return item name of the order. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dvRm(YKHO):\n return YKHO.__item_name",
"def Q0HP(YKHO, ZfUD):\n return ZfUD.s",
"def dvRm(YKHO, YRbF):\n for ZfUD in YKHO.items:\n if ZfUD['id'] == YRbF:\n return ZfUD['localized_name']\n return 'Unknown Item'",
"def uN_z(YKHO, T4Wy):\n return QMSQ(T4Wy)",
"def zAg0(YK... | [
"0.7870671",
"0.7556543",
"0.71382755",
"0.6934038",
"0.69025004",
"0.68930954",
"0.6725883",
"0.6696614",
"0.66641533",
"0.65920144",
"0.65798575",
"0.65130144",
"0.64259017",
"0.6419284",
"0.63608354",
"0.635453",
"0.6233386",
"0.6228149",
"0.6177948",
"0.61624074",
"0.6156... | 0.0 | -1 |
Return the holiday that the item for. | def FPM2(YKHO):
return YKHO._holiday | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YZnH(ZfUD):\n return (ZfUD['summary'], ZfUD.get('start', {}).get('date'), ZfUD.get('end', {}).get('date'))",
"def uICW() -> mNJz:\n return mNJz.EASTER",
"def uICW() -> mNJz:\n return mNJz.CHRISTMAS",
"def gQDQ(YKHO, _c1T):\n if _c1T.weekday() > 4 or [_c1T.year, _c1T.month, _c1T.day] in YKHO.b... | [
"0.72972995",
"0.67561626",
"0.6577892",
"0.6061763",
"0.6009833",
"0.5928844",
"0.5921662",
"0.5920972",
"0.5895366",
"0.5789303",
"0.576882",
"0.57558805",
"0.57488185",
"0.5738588",
"0.5726189",
"0.56056666",
"0.5596636",
"0.5571406",
"0.554734",
"0.554123",
"0.5535749",
... | 0.81748694 | 0 |
Set the invalid notes. | def _FB5(YKHO, P1dF):
YKHO._invalid_notes = P1dF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PQPj(YKHO):\n return YKHO._invalid_notes",
"def rpno(YKHO, rpno: str):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"def rpno(YKHO, rpno):\n YKHO._notes = rpno",
"de... | [
"0.730826",
"0.67267275",
"0.66282713",
"0.66282713",
"0.66282713",
"0.66282713",
"0.66282713",
"0.6261393",
"0.6240077",
"0.6159089",
"0.6155227",
"0.60829383",
"0.599079",
"0.5827429",
"0.5736566",
"0.5701913",
"0.5699494",
"0.5683367",
"0.5591186",
"0.5569768",
"0.547599",... | 0.84916085 | 0 |
Saves changes to DB. If there is `updated` field in model sets it's value to current time | def xkzz(YKHO, CLJ4=False):
try:
if 'updated' in YKHO.columns and YKHO.get('updated') is not None:
YKHO.set(updated=l5Ny('now()'))
YKHO.s.add(YKHO)
if CLJ4:
YKHO.s.flush()
else:
YKHO.s.commit()
return YKHO
except cQ7A:
YKHO.s.ro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n YKHO.updated_at = qcWV.now()",
"def xkzz(YKHO, *qIxc, **B2fa):\n YKHO.modify_ts = qcWV.now()\n super(M45m, YKHO).save(*qIxc, **B2fa)",
"def xkzz(YKHO):\n from models import storage\n YKHO.updated_at = qcWV.now()\n storage.save()",
"def xkzz(YKHO):\n from models import s... | [
"0.7989006",
"0.7342806",
"0.73408216",
"0.7330617",
"0.7323052",
"0.7323052",
"0.7223719",
"0.72018397",
"0.7156861",
"0.6995323",
"0.6935213",
"0.6935213",
"0.6843707",
"0.6843707",
"0.6829831",
"0.680846",
"0.680846",
"0.680846",
"0.6770967",
"0.6770967",
"0.67044",
"0.6... | 0.5886115 | 64 |
Assert create of coupon business from SugarCRM account. | def gvRz(YKHO):
na1r.debug('test_sync_biz_from_sugar_acct')
X2vB = RyWp.objects.get(id=114)
iUQk = X2vB.advertiser
yR_P = 'Accounts'
xDcj = UhC8(module=yR_P, test_mode=True, get_modified=False, start=None)
ZWlW = YKHO.sugar.get_entry_list(yR_P, xDcj)
ib8o = ZWlW[0]
ib8o['business_id_c'] ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJB9(YKHO):\n pass",
"def Yg4C(YKHO):\n pass",
"def c6AS(YKHO):\n pass",
"def Nu9_(YKHO):\n c_Ww = X9FF.create_coupon()\n oQ6W = cx3z.create_slot(coupon=c_Ww)\n qzOZ = qcWV.date.today() + qcWV.timedelta(weeks=1)\n c_Ww.expiration_date = qzOZ\n c_Ww.save()\n YKHO.assertEqual(oQ6... | [
"0.7462063",
"0.6744753",
"0.6724438",
"0.6466636",
"0.64611053",
"0.643641",
"0.6409974",
"0.6333359",
"0.62230194",
"0.6154744",
"0.5997458",
"0.5916436",
"0.58945185",
"0.58517826",
"0.5819267",
"0.58043146",
"0.57985806",
"0.5796583",
"0.5761732",
"0.5751245",
"0.57463956... | 0.6122855 | 10 |
Assert create of coupon business from SugarCRM contact. | def t8eN(YKHO):
na1r.debug('test_sync_from_sugar_contact')
X2vB = RyWp.objects.get(id=114)
iUQk = gJIq.objects.get(id=114)
D3lj = iUQk.email
yR_P = 'Contacts'
xDcj = UhC8(module=yR_P, test_mode=True, get_modified=False, start=None)
ZWlW = YKHO.sugar.get_entry_list(yR_P, xDcj)
ib8o = ZWlW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WJB9(YKHO):\n pass",
"def DoNj(YKHO):\n pass",
"def Yg4C(YKHO):\n pass",
"def xMrN(YKHO, eLpg):\n \"\"\"Campaigns should be created\"\"\"\n rdlD = {'PROJ_NAME1': 'Argentina Fund', 'PROJ_NO': '789-CFD', 'SUMMARY': 'Some Sum'}\n H69_.create_account(rdlD, None)\n YKHO.assertTrue(eLpg.ca... | [
"0.70949316",
"0.6541851",
"0.6399019",
"0.63015497",
"0.62419224",
"0.60687506",
"0.6056447",
"0.6038391",
"0.60067683",
"0.59705",
"0.59677804",
"0.59333086",
"0.589922",
"0.58825874",
"0.5880873",
"0.5877111",
"0.58503705",
"0.58325475",
"0.58100945",
"0.58008313",
"0.5798... | 0.60524577 | 7 |
Test task that will sync recently modified and created SugarCRM accounts and contacts data to coupon website. | def YKju(YKHO):
na1r.debug('test_sync_modify_biz_from_sugar')
hRej(get_modified=True, sugar=YKHO.sugar)
YKHO.assertTrue(True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CeNN(YKHO):\n na1r.debug('test_sync_biz_to_sugar_coupon')\n R72Z = h4N1.objects.get(id=300)\n R72Z.first_name = 'Danielle'\n R72Z.last_name = 'Dongo'\n R72Z.save()\n c_Ww = wGNr.objects.get(id=300)\n Rci7 = _JMH.objects.create(business=c_Ww.offer.business, location_address1='addr1', locati... | [
"0.7445045",
"0.71122766",
"0.6862755",
"0.682964",
"0.6565033",
"0.6416634",
"0.63961476",
"0.6234564",
"0.60413563",
"0.6014782",
"0.59478164",
"0.589701",
"0.5895136",
"0.5886317",
"0.5852639",
"0.58312035",
"0.58291084",
"0.5824226",
"0.57904667",
"0.57891405",
"0.5734122... | 0.61891896 | 8 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
print('Normalized confusion matrix')
else:
print('Confusion matrix, without normalization')
print(Bcwd)
QrM1.imshow(Bcwd, interp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.791787... | 0.7845746 | 48 |
Sets the inventory_reference_type of this CreateAdsByInventoryReferenceRequest. | def VM0q(YKHO, VM0q):
YKHO._inventory_reference_type = VM0q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FTHf(YKHO, FTHf):\n YKHO._inventory_reference_id = FTHf",
"def IDut(YKHO, IDut):\n YKHO._inventory_id = IDut",
"def CS5l(YKHO, CS5l):\n YKHO._inventory = CS5l",
"def y1dR(YKHO, y1dR):\n YKHO._inventory_items = y1dR",
"def TG_K(YKHO, type, IbHI=None):\n YKHO._set_property('pc:type', type,... | [
"0.64331234",
"0.5246117",
"0.5223081",
"0.49133226",
"0.47064462",
"0.4672102",
"0.46364635",
"0.46090922",
"0.46090922",
"0.46090922",
"0.46090922",
"0.45791408",
"0.45752478",
"0.45637342",
"0.45555532",
"0.45555532",
"0.45555532",
"0.4546563",
"0.45451772",
"0.45405617",
... | 0.8307037 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, qDZd):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Uses the information in the XML to create a Course object to send to Parse | def yEuJ(a7QU):
o8Kj = ['term-code', 'term-description', 'subject', 'course-number', 'school', 'department', 'title', 'description', 'credit-hours', 'distribution-group']
GQfX = pbhn(a7QU, o8Kj)
GQfX['sections'] = []
return GQfX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cdLe(a7QU):\n saO8 = tNqB(a7QU)\n if not saO8:\n saO8 = yEuJ(a7QU)\n else:\n None\n UpZt = JbIJ(saO8)\n print('Processed Course: {0} {1}'.format(saO8['subject'], saO8['courseNumber']))\n YD0x = BwJf(a7QU)\n if not YD0x:\n YD0x = laYJ(a7QU)\n else:\n None\n ... | [
"0.7376115",
"0.6733328",
"0.6598599",
"0.6522951",
"0.63766646",
"0.62547004",
"0.60987",
"0.60921395",
"0.60627925",
"0.6030125",
"0.6019453",
"0.6005106",
"0.5900326",
"0.58816576",
"0.5865308",
"0.5858704",
"0.5853114",
"0.5842916",
"0.5832726",
"0.5832424",
"0.5831467",
... | 0.79287744 | 0 |
Entirely processes a Course given it's XML data. Creates / Updates the corresponding Parse Course and Parse Section. | def cdLe(a7QU):
saO8 = tNqB(a7QU)
if not saO8:
saO8 = yEuJ(a7QU)
else:
None
UpZt = JbIJ(saO8)
print('Processed Course: {0} {1}'.format(saO8['subject'], saO8['courseNumber']))
YD0x = BwJf(a7QU)
if not YD0x:
YD0x = laYJ(a7QU)
else:
None
pHhI = hbAu(YD0x)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yEuJ(a7QU):\n o8Kj = ['term-code', 'term-description', 'subject', 'course-number', 'school', 'department', 'title', 'description', 'credit-hours', 'distribution-group']\n GQfX = pbhn(a7QU, o8Kj)\n GQfX['sections'] = []\n return GQfX",
"def hAbc(YKHO) -> None:\n XFZL: HiMC = YKHO.soup.find('div... | [
"0.6962763",
"0.64638436",
"0.641806",
"0.62422866",
"0.6193113",
"0.61114055",
"0.608011",
"0.6013513",
"0.6002378",
"0.56043005",
"0.5571442",
"0.5534993",
"0.5486418",
"0.5453523",
"0.5442029",
"0.54323494",
"0.5428582",
"0.5420072",
"0.5415792",
"0.5405431",
"0.5392446",
... | 0.8557731 | 0 |
Compute the mismatch mixing matrix for A(k) with an _lambdaexponentially decaying mixing coefficient in the Hamming distance (number of character mismatches). | def HG4X(G1Hx, _2rl):
V22M = l4Z4(G1Hx)
ywwl = len(V22M)
x1A_ = oyIN.zeros((ywwl, ywwl))
for YRbF in range(ywwl):
x1A_[YRbF, YRbF] = 1
for r845 in range(YRbF + 1, ywwl):
x1A_[YRbF, r845] = _2rl ** QQr7.hamming(V22M[YRbF], V22M[r845])
x1A_[r845, YRbF] = x1A_[YRbF, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WDgr(G1Hx, r8hN):\n V22M = l4Z4(G1Hx)\n ywwl = len(V22M)\n KPs5 = oyIN.zeros((ywwl, ywwl))\n for YRbF in range(ywwl):\n for r845 in range(YRbF, ywwl):\n if QQr7.hamming(V22M[YRbF], V22M[r845]) <= r8hN:\n KPs5[YRbF, r845] = 1 / 2\n KPs5[r845, YRbF] = 1... | [
"0.60043955",
"0.584836",
"0.5295001",
"0.5183668",
"0.5108589",
"0.5089423",
"0.5051361",
"0.5040407",
"0.5032514",
"0.50196207",
"0.5013043",
"0.4982249",
"0.4963083",
"0.4911103",
"0.4889793",
"0.48831633",
"0.48796803",
"0.48700666",
"0.48386526",
"0.48216584",
"0.4814628... | 0.7275287 | 0 |
Returns true if the bounding boxes intersect | def P10m(YKHO, Elif: 'BB') -> bool:
return bool(_e0h.cpBBIntersects(YKHO, Elif)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ynEz(YKHO, Elif):\n if YKHO.upperLeft.x <= Elif.lowerRight.x and YKHO.lowerRight.x >= Elif.upperLeft.x and (YKHO.upperLeft.y >= Elif.lowerRight.y) and (YKHO.lowerRight.y <= Elif.upperLeft.y):\n return True\n return False",
"def P10m(YKHO, *zl2J):\n return False",
"def XMlP(YKHO, lued):\n ... | [
"0.7917236",
"0.7433382",
"0.73676354",
"0.7323342",
"0.7283105",
"0.72586185",
"0.7230588",
"0.72287357",
"0.7222845",
"0.72152424",
"0.71825683",
"0.7179442",
"0.71124595",
"0.70957017",
"0.70947075",
"0.70937395",
"0.7029807",
"0.70073956",
"0.6959474",
"0.6942189",
"0.693... | 0.6963489 | 18 |
Merges this and other then returns the area of the merged bounding box. | def iMoe(YKHO, Elif: 'BB') -> float:
return _e0h.cpBBMergedArea(YKHO, Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rSA3(YKHO, Elif: 'BoundingBox2D') -> float:\n iQin = YKHO.intersection(Elif)\n if iQin is None:\n return 0.0\n return iQin.area / (YKHO.area + Elif.area - iQin.area)",
"def CYXe(CYwQ, q1ub):\n o4D3 = min(CYwQ[0], q1ub[0])\n si3g = min(CYwQ[1], q1ub[1])\n ajwV = max(CYwQ[2], q1ub[2])\... | [
"0.7157065",
"0.71257174",
"0.6863361",
"0.6718412",
"0.6672673",
"0.65338534",
"0.64984745",
"0.6486933",
"0.6463623",
"0.6392254",
"0.6305657",
"0.6289434",
"0.6286845",
"0.62425774",
"0.623435",
"0.6214841",
"0.6189725",
"0.6187245",
"0.61332756",
"0.61302435",
"0.61198205... | 0.8213908 | 0 |
Provide a certificate chain PEM file path via fixture. | def i91Y(OWMv):
with OWMv.private_key_and_cert_chain_pem.tempfile() as ih8L:
yield ih8L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k3ls(YKHO, lc6T):\n eNCK = M2Zi()\n [(K5ix, gDLt), (jR8u, K3MR), (IePQ, JRys)] = eNCK\n eviw(lc6T)\n IszS = LGIh(lc6T, 'chain.pem')\n uNul = LGIh(lc6T, 'ca.pem')\n with open(IszS, 'wb') as jWIJ:\n jWIJ.write(_kor(PhnB, JRys))\n jWIJ.write(_kor(PhnB, K3MR))\n jWIJ.write(_k... | [
"0.65376246",
"0.6510968",
"0.64322776",
"0.6361593",
"0.60838246",
"0.60578936",
"0.59323585",
"0.5911285",
"0.5909131",
"0.586066",
"0.5757245",
"0.5733029",
"0.57099134",
"0.5704165",
"0.5615864",
"0.55440724",
"0.55197316",
"0.54616076",
"0.5460418",
"0.5451866",
"0.54236... | 0.7069549 | 0 |
'super' is called cause this class is part of the SpotifyClient mixin and all the constructors of mixin base classes should be called | def FIMM(YKHO, **GPtr):
super().__init__(**GPtr)
for jeGQ in ['CLIENT_ID', 'CLIENT_SECRET', 'USER_ID']:
if not jeGQ in GPtr:
raise RuntimeError('Required key is missing from the config: {}'.format(jeGQ))
YKHO.client_id = GPtr['CLIENT_ID']
YKHO.client_secret = GPtr['CLIENT_SECRET']
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, x0hE):\n super().__init__(x0hE)",
"def FIMM(YKHO, **B2fa):\n super().__init__(**B2fa)",
"def FIMM(YKHO, *qIxc, **B2fa):\n YKHO._initialize_protocols()\n super().__init__(*qIxc, **B2fa)",
"def FIMM(YKHO, **B2fa):\n super().__init__()",
"def FIMM(YKHO, x0hE, LebI=True):\n sup... | [
"0.76301706",
"0.7138623",
"0.7082449",
"0.7049371",
"0.69989604",
"0.69989604",
"0.69989604",
"0.69989604",
"0.69989604",
"0.6977749",
"0.69485176",
"0.69485176",
"0.69299436",
"0.69299436",
"0.69299436",
"0.6924915",
"0.6923379",
"0.6895334",
"0.6895072",
"0.6895072",
"0.68... | 0.0 | -1 |
Returns the URL used to authorize Spotify to access the playlist | def WfZK(YKHO, Z7L0=None, rrBf=('user-modify-playback-state', 'playlist-modify-private', 'user-read-playback-state')):
xT1r = {}
xT1r['grant_type'] = 'authorization_code'
xT1r['client_id'] = YKHO.client_id
xT1r['client_secret'] = YKHO.client_secret
xT1r['response_type'] = 'code'
xT1r['redirect_u... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jw1n():\n u5xJ, qeVH, _GXD = qsPJ()\n QTBn = ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits + vIwR.ascii_uppercase) for YRbF in range(20)))\n rrBf = 'playlist-read-private playlist-read-collaborative' + ' playlist-modify-public playlist-modify-private'\n pB3N = {}\n pB3N['client_id'] = ... | [
"0.7664534",
"0.7005464",
"0.69552195",
"0.64460176",
"0.6185538",
"0.6177314",
"0.61346537",
"0.6055279",
"0.5944853",
"0.59444726",
"0.593703",
"0.5909125",
"0.5888972",
"0.5854268",
"0.58344334",
"0.5831299",
"0.5813125",
"0.58006614",
"0.5737664",
"0.57366407",
"0.5734806... | 0.0 | -1 |
Test that a token is created for the user | def Ss3i(YKHO):
pB3N = {'email': 'test@max.net', 'password': 'Testpass123', 'name': 'Maks'}
lYUQ(**pB3N)
Ylbp = YKHO.client.post(pEkX, pB3N)
YKHO.assertIn('token', Ylbp.data)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Grn6(YKHO):\n EIMJ(**YKHO.mock_user)\n Ylbp = YKHO.client.post(pEkX, YKHO.mock_user)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO.assertIn('token', Ylbp.data)",
"def Ss3i(YKHO):\n pB3N = {'email': 'test1@test1.ri', 'password': 'testPassWord', 'time_zone': 'Europe/Dublin'}\n ... | [
"0.8524954",
"0.8461728",
"0.8460548",
"0.8412818",
"0.8412537",
"0.8401617",
"0.825214",
"0.8243027",
"0.82033753",
"0.8139369",
"0.7937181",
"0.79370046",
"0.79301524",
"0.78969824",
"0.7844167",
"0.78259856",
"0.7804769",
"0.7752505",
"0.77294105",
"0.7720604",
"0.7707844"... | 0.84151304 | 3 |
Test that token is not created if user doesn't exists | def i_2a(YKHO):
pB3N = {'email': 'test@max.net', 'password': 'testpass', 'name': 'Maks'}
Ylbp = YKHO.client.post(pEkX, pB3N)
YKHO.assertNotIn('token', Ylbp.data)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i_2a(YKHO):\n Ylbp = YKHO.client.post(pEkX, YKHO.mock_user)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertNotIn('token', Ylbp.data)",
"def i_2a(YKHO):\n pB3N = {'email': 'test@gmail.com', 'password': 'testpass'}\n geh0 = YKHO.client.post(pEkX, pB3N)\n YKHO.ass... | [
"0.804403",
"0.79388356",
"0.78894347",
"0.7885779",
"0.7755042",
"0.7703482",
"0.76045763",
"0.75595903",
"0.7531418",
"0.7526247",
"0.749789",
"0.7478718",
"0.7438763",
"0.7421789",
"0.7401069",
"0.7393741",
"0.7387908",
"0.73829055",
"0.7354504",
"0.73526466",
"0.7351663",... | 0.7817135 | 4 |
Test retrieving profile for logged in user | def DOw2(YKHO):
Ylbp = YKHO.client.get(XiK1)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
YKHO.assertEqual(Ylbp.data, {'name': YKHO.user.name, 'email': YKHO.user.email}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuRs(YKHO):\n geh0 = YKHO.client.get(MQNu)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(geh0.data, {'name': YKHO.user.name, 'email': YKHO.user.email})",
"def PFTI(YKHO):\n Aofo = YKHO.client.get('/profile/1')\n YKHO.assertIn(b'In house:', Aofo.data)",
"def Tjjd(Y... | [
"0.8208589",
"0.807811",
"0.8027141",
"0.80075693",
"0.7999291",
"0.7981915",
"0.79818964",
"0.7970111",
"0.795909",
"0.7951995",
"0.79075676",
"0.79026365",
"0.78413916",
"0.7817132",
"0.7801892",
"0.77627635",
"0.77301943",
"0.77071506",
"0.76768214",
"0.7648913",
"0.758592... | 0.8024252 | 3 |
Return iterable with strip_value items removed from beginning. | def BbO_(OxJJ, W9nM):
EESs = []
s5Ei = True
for ZfUD in OxJJ:
if s5Ei:
if ZfUD != W9nM:
s5Ei = False
else:
continue
EESs.append(ZfUD)
return EESs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qqBB(OxJJ, W9nM):\n EESs = []\n\n def WnjW(BWXx):\n return BWXx == W9nM\n for ZfUD in KDqG(WnjW, OxJJ):\n EESs.append(ZfUD)\n return EESs",
"def o2AL(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei and ZfUD == W9nM:\n continue\n ... | [
"0.77129996",
"0.7655893",
"0.75878036",
"0.7578346",
"0.73598844",
"0.73241323",
"0.7268078",
"0.7177186",
"0.71711046",
"0.6862552",
"0.68594253",
"0.66307306",
"0.6221924",
"0.61717254",
"0.6156851",
"0.60763013",
"0.6043025",
"0.59987134",
"0.59019655",
"0.5735523",
"0.57... | 0.77285135 | 0 |
Return iterable with strip_value items removed from beginning. | def o2AL(OxJJ, W9nM):
EESs = []
s5Ei = True
for ZfUD in OxJJ:
if s5Ei and ZfUD == W9nM:
continue
s5Ei = False
EESs.append(ZfUD)
return EESs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbO_(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei:\n if ZfUD != W9nM:\n s5Ei = False\n else:\n continue\n EESs.append(ZfUD)\n return EESs",
"def qqBB(OxJJ, W9nM):\n EESs = []\n\n def WnjW(BWXx):\n ... | [
"0.77279246",
"0.77117336",
"0.7585977",
"0.7576826",
"0.7358597",
"0.73228806",
"0.72670853",
"0.717575",
"0.71704465",
"0.6864692",
"0.6858694",
"0.6629628",
"0.62193835",
"0.61715555",
"0.6153395",
"0.60745984",
"0.6041615",
"0.5996829",
"0.59021205",
"0.57330346",
"0.5705... | 0.7655379 | 2 |
Return iterable with strip_value items removed from beginning. | def LyRv(OxJJ, W9nM):
EESs = []
oHE7 = iter(OxJJ)
try:
ZfUD = next(oHE7)
while ZfUD == W9nM:
ZfUD = next(oHE7)
EESs.append(ZfUD)
except StopIteration:
pass
else:
for ZfUD in oHE7:
EESs.append(ZfUD)
return EESs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbO_(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei:\n if ZfUD != W9nM:\n s5Ei = False\n else:\n continue\n EESs.append(ZfUD)\n return EESs",
"def qqBB(OxJJ, W9nM):\n EESs = []\n\n def WnjW(BWXx):\n ... | [
"0.77285135",
"0.77129996",
"0.7655893",
"0.7578346",
"0.73598844",
"0.73241323",
"0.7268078",
"0.7177186",
"0.71711046",
"0.6862552",
"0.68594253",
"0.66307306",
"0.6221924",
"0.61717254",
"0.6156851",
"0.60763013",
"0.6043025",
"0.59987134",
"0.59019655",
"0.5735523",
"0.57... | 0.75878036 | 3 |
Return iterable with strip_value items removed from beginning. | def AiBo(OxJJ, W9nM):
EESs = []
oHE7 = iter(OxJJ)
for ZfUD in oHE7:
if not ZfUD == W9nM:
EESs.append(ZfUD)
break
for ZfUD in oHE7:
EESs.append(ZfUD)
return EESs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbO_(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei:\n if ZfUD != W9nM:\n s5Ei = False\n else:\n continue\n EESs.append(ZfUD)\n return EESs",
"def qqBB(OxJJ, W9nM):\n EESs = []\n\n def WnjW(BWXx):\n ... | [
"0.77285135",
"0.77129996",
"0.7655893",
"0.75878036",
"0.73598844",
"0.73241323",
"0.7268078",
"0.7177186",
"0.71711046",
"0.6862552",
"0.68594253",
"0.66307306",
"0.6221924",
"0.61717254",
"0.6156851",
"0.60763013",
"0.6043025",
"0.59987134",
"0.59019655",
"0.5735523",
"0.5... | 0.7578346 | 4 |
Return iterable with strip_value items removed from beginning. | def qqBB(OxJJ, W9nM):
EESs = []
def WnjW(BWXx):
return BWXx == W9nM
for ZfUD in KDqG(WnjW, OxJJ):
EESs.append(ZfUD)
return EESs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbO_(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei:\n if ZfUD != W9nM:\n s5Ei = False\n else:\n continue\n EESs.append(ZfUD)\n return EESs",
"def o2AL(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfU... | [
"0.77285135",
"0.7655893",
"0.75878036",
"0.7578346",
"0.73598844",
"0.73241323",
"0.7268078",
"0.7177186",
"0.71711046",
"0.6862552",
"0.68594253",
"0.66307306",
"0.6221924",
"0.61717254",
"0.6156851",
"0.60763013",
"0.6043025",
"0.59987134",
"0.59019655",
"0.5735523",
"0.57... | 0.77129996 | 1 |
Return iterable with strip_value items removed from beginning. | def glY7(OxJJ, W9nM):
def WnjW(BWXx):
return BWXx == W9nM
return KDqG(WnjW, OxJJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbO_(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei:\n if ZfUD != W9nM:\n s5Ei = False\n else:\n continue\n EESs.append(ZfUD)\n return EESs",
"def qqBB(OxJJ, W9nM):\n EESs = []\n\n def WnjW(BWXx):\n ... | [
"0.77279246",
"0.77117336",
"0.7655379",
"0.7585977",
"0.7576826",
"0.7358597",
"0.73228806",
"0.717575",
"0.71704465",
"0.6864692",
"0.6858694",
"0.6629628",
"0.62193835",
"0.61715555",
"0.6153395",
"0.60745984",
"0.6041615",
"0.5996829",
"0.59021205",
"0.57330346",
"0.57058... | 0.72670853 | 7 |
Return iterable with strip_value items removed from beginning. | def SjFz(OxJJ, W9nM):
oHE7 = iter(OxJJ)
for ZfUD in oHE7:
if ZfUD != W9nM:
yield ZfUD
break
for ZfUD in oHE7:
yield ZfUD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbO_(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei:\n if ZfUD != W9nM:\n s5Ei = False\n else:\n continue\n EESs.append(ZfUD)\n return EESs",
"def qqBB(OxJJ, W9nM):\n EESs = []\n\n def WnjW(BWXx):\n ... | [
"0.77285135",
"0.77129996",
"0.7655893",
"0.75878036",
"0.7578346",
"0.73241323",
"0.7268078",
"0.7177186",
"0.71711046",
"0.6862552",
"0.68594253",
"0.66307306",
"0.6221924",
"0.61717254",
"0.6156851",
"0.60763013",
"0.6043025",
"0.59987134",
"0.59019655",
"0.5735523",
"0.57... | 0.73598844 | 5 |
Return iterable with strip_value items removed from beginning. | def SjFz(OxJJ, W9nM):
oHE7 = iter(OxJJ)
for ZfUD in oHE7:
if ZfUD != W9nM:
yield ZfUD
break
yield from oHE7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbO_(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei:\n if ZfUD != W9nM:\n s5Ei = False\n else:\n continue\n EESs.append(ZfUD)\n return EESs",
"def qqBB(OxJJ, W9nM):\n EESs = []\n\n def WnjW(BWXx):\n ... | [
"0.77285135",
"0.77129996",
"0.7655893",
"0.75878036",
"0.7578346",
"0.73598844",
"0.7268078",
"0.7177186",
"0.71711046",
"0.6862552",
"0.68594253",
"0.66307306",
"0.6221924",
"0.61717254",
"0.6156851",
"0.60763013",
"0.6043025",
"0.59987134",
"0.59019655",
"0.5735523",
"0.57... | 0.73241323 | 6 |
Return iterable with strip_value items removed from beginning. | def MrTA(OxJJ, W9nM):
oHE7 = iter(OxJJ)
for ZfUD in oHE7:
if callable(W9nM) and (not W9nM(ZfUD)) or (not callable(W9nM) and ZfUD != W9nM):
yield ZfUD
break
yield from oHE7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbO_(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei:\n if ZfUD != W9nM:\n s5Ei = False\n else:\n continue\n EESs.append(ZfUD)\n return EESs",
"def qqBB(OxJJ, W9nM):\n EESs = []\n\n def WnjW(BWXx):\n ... | [
"0.77285135",
"0.77129996",
"0.7655893",
"0.75878036",
"0.7578346",
"0.73598844",
"0.73241323",
"0.7268078",
"0.71711046",
"0.6862552",
"0.68594253",
"0.66307306",
"0.6221924",
"0.61717254",
"0.6156851",
"0.60763013",
"0.6043025",
"0.59987134",
"0.59019655",
"0.5735523",
"0.5... | 0.7177186 | 8 |
Return iterable with strip_value items removed from beginning. | def AuOD(OxJJ, W9nM):
oHE7 = iter(OxJJ)
if callable(W9nM):
lgNN = W9nM
else:
def lgNN(BWXx):
return BWXx == W9nM
for ZfUD in oHE7:
if not lgNN(ZfUD):
yield ZfUD
break
yield from oHE7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbO_(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei:\n if ZfUD != W9nM:\n s5Ei = False\n else:\n continue\n EESs.append(ZfUD)\n return EESs",
"def qqBB(OxJJ, W9nM):\n EESs = []\n\n def WnjW(BWXx):\n ... | [
"0.77279246",
"0.77117336",
"0.7655379",
"0.7585977",
"0.7576826",
"0.7358597",
"0.73228806",
"0.72670853",
"0.717575",
"0.6864692",
"0.6858694",
"0.6629628",
"0.62193835",
"0.61715555",
"0.6153395",
"0.60745984",
"0.6041615",
"0.5996829",
"0.59021205",
"0.57330346",
"0.57058... | 0.71704465 | 9 |
Return iterable with strip_value items removed from beginning. | def qwwA(OxJJ, W9nM):
if callable(W9nM):
lgNN = W9nM
else:
def lgNN(BWXx):
return BWXx == W9nM
return KDqG(lgNN, OxJJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbO_(OxJJ, W9nM):\n EESs = []\n s5Ei = True\n for ZfUD in OxJJ:\n if s5Ei:\n if ZfUD != W9nM:\n s5Ei = False\n else:\n continue\n EESs.append(ZfUD)\n return EESs",
"def qqBB(OxJJ, W9nM):\n EESs = []\n\n def WnjW(BWXx):\n ... | [
"0.77285135",
"0.77129996",
"0.7655893",
"0.75878036",
"0.7578346",
"0.73598844",
"0.73241323",
"0.7268078",
"0.7177186",
"0.71711046",
"0.6862552",
"0.66307306",
"0.6221924",
"0.61717254",
"0.6156851",
"0.60763013",
"0.6043025",
"0.59987134",
"0.59019655",
"0.5735523",
"0.57... | 0.68594253 | 11 |
Applies inplace linear activation | def nrOS(YKHO, WKvO):
oyIN.multiply(WKvO, YKHO.slope, out=WKvO)
oyIN.add(WKvO, YKHO.bias, out=WKvO)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPkV(etIE, XcU5, Fg_i, YDYE):\n pass",
"def PPkV(etIE, XcU5, Fg_i, YDYE):\n Nk6w, LGGw = dD1r(etIE, XcU5, Fg_i)\n if YDYE == 'sigmoid':\n v3qL = m1Hg\n else:\n v3qL = QZir\n k0lF, wyyA = v3qL(Nk6w)\n w80d = Nk6w\n wyyA = {'linear_cache': LGGw, 'activation_cache': w80d}\n ... | [
"0.78238016",
"0.7253499",
"0.7113381",
"0.71122736",
"0.70810336",
"0.7012244",
"0.69595957",
"0.6942727",
"0.69128925",
"0.68755966",
"0.6852831",
"0.6824166",
"0.6789728",
"0.67681146",
"0.67663103",
"0.6718598",
"0.66713166",
"0.6643897",
"0.65571713",
"0.6546967",
"0.654... | 0.0 | -1 |
Applies inverted sigmoid inplace | def nrOS(YKHO, WKvO):
oyIN.subtract(WKvO, YKHO.d, out=WKvO)
oyIN.divide(YKHO.a, WKvO, out=WKvO)
oyIN.subtract(WKvO, YKHO.b, out=WKvO)
oyIN.log(WKvO, out=WKvO)
oyIN.divide(WKvO, -YKHO.e, out=WKvO)
oyIN.add(WKvO, YKHO.c, out=WKvO)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def okWq(WKvO):\n LVAh = -1 * oyIN.log((1 - WKvO) / WKvO)\n return LVAh",
"def m1Hg(epBp):\n return mFhB(epBp)",
"def pbsR(WKvO):\n return WKvO * G1Hx.activations.sigmoid(WKvO)",
"def pbsR(WKvO):\n return WKvO * ZylS.sigmoid(WKvO)",
"def lifc(YKHO):\n YKHO.value = 1 / (1 + oyIN.e ** (-YKH... | [
"0.75106734",
"0.75092953",
"0.73808044",
"0.73472565",
"0.73404986",
"0.7290867",
"0.7290837",
"0.7245116",
"0.72361183",
"0.7213144",
"0.7213144",
"0.7199016",
"0.7183686",
"0.7171895",
"0.7162724",
"0.71618813",
"0.7150425",
"0.7141738",
"0.7136035",
"0.7135243",
"0.712966... | 0.0 | -1 |
Obtaining a Pauli error rate from an empirical decay curve. | def kezo(kMka: np.ndarray, nPrm: np.ndarray, *, sogq: int=2, fvBG: bool=False) -> AzJI[float, oyIN.ndarray, oyIN.ndarray]:
YRdB = 100.0
def cNBK(u54L: np.ndarray, XObx: float, _Al5: float, ALpO: float) -> oyIN.ndarray:
XP5J = 1.0 - XObx / (1.0 - 4 ** (-sogq)) / YRdB
return _Al5 * oyIN.power(XP5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UclR(YKHO, q_RB: float, sogq: int=1):\n ywwl = 2 ** sogq\n return 1 - q_RB / (1 - 1 / ywwl / ywwl)",
"def N2ii(h6vC, QOiQ, C3ST):\n Swf2 = list(Yorg(C3ST, QOiQ, h6vC))[0]\n return oyIN.log(oyIN.maximum(1e-10, (Swf2 - C3ST.theta) ** 2))",
"def vtKY(YKHO, sogq: int=1):\n if YKHO._p is not None... | [
"0.6633635",
"0.5984317",
"0.59809506",
"0.5942395",
"0.5937436",
"0.5909725",
"0.5794775",
"0.57891876",
"0.5784051",
"0.5758449",
"0.5750015",
"0.5750015",
"0.5688634",
"0.5685889",
"0.5682493",
"0.5680682",
"0.5667898",
"0.5656839",
"0.5617177",
"0.56053925",
"0.55998826",... | 0.54116875 | 36 |
Splits data into train/val/test subsets | def lpha(YKHO, Q83p=0.8, qE3E=0.2, NMeG=0, yokr=1):
if YKHO.is_initialized():
return
YKHO.ensure_fraction_sum(Q83p, qE3E, NMeG)
oyIN.random.seed(yokr)
YKHO.samples = sorted(YKHO.samples)
oyIN.random.shuffle(YKHO.samples)
d8cP = lO1m(Q83p * len(YKHO.samples))
IlWe = d8cP + lO1m(qE3E *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JWSc(nPrm):\n raise NotImplementedError",
"def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.valid, YKHO.valid, test_size=0.5)",
"def cTf9(onqj):\n XxFT, t4zr = bHtP(onqj, test_size=0.2, random_state=... | [
"0.8326181",
"0.82755184",
"0.8240179",
"0.7841811",
"0.78244966",
"0.7819313",
"0.77936596",
"0.77811414",
"0.7773943",
"0.7643291",
"0.7630211",
"0.7630134",
"0.7604545",
"0.7580003",
"0.75724965",
"0.7525816",
"0.7521702",
"0.7519651",
"0.75031596",
"0.7492511",
"0.7489865... | 0.705187 | 73 |
The setter for the subject's education. | def hSsa(YKHO, hSsa):
YKHO.logger.debug("In 'education' setter.")
YKHO._education = hSsa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U4ZT(YKHO, BWXx):\n YKHO.set_property('subject', BWXx)",
"def KgVA(YKHO, KgVA):\n YKHO.logger.debug(\"In 'study' setter.\")\n YKHO._study = KgVA",
"def p7U7(YKHO, U4ZT):\n YKHO._subject = U4ZT",
"def Ab9Q(YKHO, okTO):\n raise NotImplementedError",
"def U4ZT(YKHO, U4ZT):\n YKHO._subjec... | [
"0.5795873",
"0.55750304",
"0.5570268",
"0.5530429",
"0.5493474",
"0.5493474",
"0.5493474",
"0.54005027",
"0.5381545",
"0.5318309",
"0.5318309",
"0.5307106",
"0.52891785",
"0.5287006",
"0.52413213",
"0.523876",
"0.52178764",
"0.51306283",
"0.51233983",
"0.5068059",
"0.5049448... | 0.84062594 | 0 |
The setter for the gestational age at delivery. | def h1tw(YKHO, h1tw):
YKHO.logger.debug("In 'ga_at_delivery' setter.")
YKHO._ga_at_delivery = h1tw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kjC_(YKHO, ZJe_):\n YKHO.__age = ZJe_",
"def ZJe_(YKHO, ZJe_):\n YKHO._age = ZJe_",
"def ZJe_(YKHO, ZJe_):\n YKHO._age = ZJe_",
"def kjC_(YKHO, ZJe_):\n YKHO.age = float(ZJe_)",
"def kjC_(YKHO, NI3A):\n YKHO.age = NI3A",
"def ZJe_(YKHO):\n return YKHO.__age",
"def N_N1(YKHO):\n ... | [
"0.7584002",
"0.75798273",
"0.75798273",
"0.752224",
"0.7486885",
"0.74444014",
"0.7389936",
"0.7326969",
"0.72830474",
"0.72830474",
"0.72830474",
"0.7277231",
"0.7266985",
"0.72298354",
"0.7226066",
"0.718807",
"0.7165034",
"0.707837",
"0.70711815",
"0.7048963",
"0.70006585... | 0.0 | -1 |
Returns true if the current user has moderator access to this game. | def js_e(YKHO):
return YKHO.user_moderating(DW23.GetCurrentUser()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTQF(YKHO):\n return YKHO.user_type == 'M'",
"def obDU():\n\n async def predicate(OaeV: commands.context):\n if any((LmAn.name in CbXx for LmAn in OaeV.message.author.roles)):\n return True\n else:\n await OaeV.send(f'Sorry {OaeV.message.author.mention}. You are not ... | [
"0.8183338",
"0.75612557",
"0.7522311",
"0.74560916",
"0.74560916",
"0.74443835",
"0.73708737",
"0.7347426",
"0.7195451",
"0.71045125",
"0.70880973",
"0.70880973",
"0.7063466",
"0.704253",
"0.70394504",
"0.6947849",
"0.69445515",
"0.69445515",
"0.6938868",
"0.6932087",
"0.690... | 0.7404325 | 6 |
Returns true if the given user has moderator acces to this game. | def pzDz(YKHO, CBIr):
if not CBIr:
return False
xDcj = NCls.Query(FMWn)
xDcj.filter('game =', YKHO)
xDcj.filter('user =', CBIr)
return xDcj.get() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D1QP(YKHO, CBIr):\n if not YKHO.modOnlyAccess:\n return True\n if CBIr.modAccess == YKHO.modOnlyAccess:\n return True\n else:\n return False",
"def sTQF(YKHO):\n return YKHO.user_type == 'M'",
"def oBCx(YKHO, CBIr: discord.User, TiPc: discord.Guild) -> bool:\n lSCo = SQv... | [
"0.7828556",
"0.77501905",
"0.7736339",
"0.7736339",
"0.76756227",
"0.75299066",
"0.73816484",
"0.73230696",
"0.73103917",
"0.729185",
"0.72802365",
"0.72083044",
"0.71758336",
"0.7058588",
"0.7058509",
"0.7045077",
"0.70308125",
"0.70189774",
"0.70164526",
"0.70089716",
"0.7... | 0.786476 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, YrKN):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8089204",
"0.8089204",
"0.8055265",
"0.7983358",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"0.7967577",
"... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
!Take a vector, normalize and rotate it 90 degrees. | def nIUD(D8Ke, ytgA):
WKvO = ytgA[0] - D8Ke[0]
LVAh = ytgA[1] - D8Ke[1]
Mkmy = PZyS(WKvO ** 2 + LVAh ** 2)
return qw7D([-LVAh / Mkmy, WKvO / Mkmy]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def j8U8(iArr):\n return iArr / oyIN.linalg.norm(iArr)",
"def NkkI(Ty9i):\n return Ty9i / oyIN.linalg.norm(Ty9i)",
"... | [
"0.71244574",
"0.6952223",
"0.6952223",
"0.6952223",
"0.6928747",
"0.69084775",
"0.69084775",
"0.69084775",
"0.69084775",
"0.69084775",
"0.69084775",
"0.69084775",
"0.69084775",
"0.69084775",
"0.69084775",
"0.69084775",
"0.6848545",
"0.6826794",
"0.6784497",
"0.6762535",
"0.6... | 0.0 | -1 |
Add noncaching headers on every request. | def PYz4(geh0):
geh0.cache_control.no_store = True
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(qv1X):\n qv1X.headers['Cache-Control'] = 'no-cache'\n return qv1X",
"def hNfN(YKHO):\n\n def rYe1(Mkmy: flask.Response):\n if 'Cache-Control' not in Mkmy.headers:\n Mkmy.headers['Cache-Control'] = 'no-store'\n return Mkmy\n YKHO.after_request(rYe1)",
"def PYz4(QePW... | [
"0.74973166",
"0.748153",
"0.73780614",
"0.7354821",
"0.7340503",
"0.7238027",
"0.7234116",
"0.71540225",
"0.7139049",
"0.70819616",
"0.70819616",
"0.7081777",
"0.70774555",
"0.7069949",
"0.7069949",
"0.7069949",
"0.7069949",
"0.7069949",
"0.7069949",
"0.7069949",
"0.7069949"... | 0.74886334 | 2 |
Multiline string based on max available width. | def ebi9(FUjE, Pxxw):
return '\n'.join(FUjE + [' '] * (Pxxw - len(FUjE))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LenZ(x3V5, uo5H=len):\n return max(map(uo5H, ZbWC.split('[\\r\\n]', x3V5)))",
"def x_2v(nPrm, c31X, BcCR=wIbM):\n LaVg = ''\n while len(nPrm) > wIbM:\n or8S = nPrm.rfind(' ', 0, wIbM)\n LaVg += '%s\\n%s' % (nPrm[:or8S], c31X)\n nPrm = nPrm[or8S + 1:]\n else:\n LaVg += ... | [
"0.7045821",
"0.6897236",
"0.67795783",
"0.67193043",
"0.6708668",
"0.65434706",
"0.6513859",
"0.64862955",
"0.6335112",
"0.63170445",
"0.6309135",
"0.6297263",
"0.6276366",
"0.6260004",
"0.6234242",
"0.62333167",
"0.6220249",
"0.62160796",
"0.61966604",
"0.6147532",
"0.61455... | 0.0 | -1 |
Delete a number of messages from the channel. Default is 10. Max 100. | async def purge(YKHO, OaeV, RLRe: int=10):
if OaeV.guild.id == 202724765218242560:
return
if RLRe > 100:
await OaeV.error('No more than 100 messages can be purged at a time.')
return
AaTp = await OaeV.channel.purge(limit=RLRe)
KCHu = 's' if len(AaTp) > 1 else ''
kCPS = await ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def channel_(YKHO, OaeV, FGW3=10):\n FGW3 = FGW3 if FGW3 <= 100 else 100\n bAls = await OaeV.send(f'this will delete the last {FGW3} messages from ALL users. Continue?')\n await bAls.add_reaction(YKHO.reactions[0])\n await bAls.add_reaction(YKHO.reactions[1])\n\n def d8mJ(tj0V, CBIr):\n ... | [
"0.7288479",
"0.72206223",
"0.7182962",
"0.7022472",
"0.6961094",
"0.69093484",
"0.6867969",
"0.6842305",
"0.6701014",
"0.6677718",
"0.6663868",
"0.666008",
"0.6650558",
"0.6520946",
"0.65097123",
"0.6386746",
"0.6380716",
"0.6371731",
"0.6360819",
"0.6308435",
"0.62655646",
... | 0.7220789 | 1 |
Function that find minimal element in array | def jl2H(ezWE: Sequence) -> int:
if len(ezWE) == 0:
print('упс')
return
YRbF = 0
ZSml = 0
dgIT = ezWE[0]
while YRbF < len(ezWE) - 1:
YRbF += 1
if ezWE[YRbF] < dgIT:
dgIT = ezWE[YRbF]
ZSml = YRbF
print(f'arr:{ezWE},\nmin:{dgIT}; index:{ZSml}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def min(YKHO):\n jzdc = YKHO.array_form\n min = len(jzdc)\n for YRbF in Ni9Y(len(jzdc)):\n if jzdc[YRbF] != YRbF and jzdc[YRbF] < min:\n min = jzdc[YRbF]\n return min",
"def jl2H(ezWE: Sequence) -> int:\n print(ezWE)\n ZSml = None\n VMHH = ezWE[0]\n for YRbF in range(1, ... | [
"0.7925055",
"0.7658557",
"0.76490307",
"0.7593806",
"0.75074613",
"0.74905646",
"0.74420714",
"0.7398279",
"0.7398279",
"0.735186",
"0.7324894",
"0.7082873",
"0.70476097",
"0.70369023",
"0.7016719",
"0.7015526",
"0.7004855",
"0.6989546",
"0.6985163",
"0.69713104",
"0.6943967... | 0.72386086 | 11 |
Returns a dictionary containg the default settings specified in this class. These settings cover global toolbox settings, such as ``enableCExtensions``, as well as the image preprocessing settings (e.g. resampling). Feature class specific are defined in the respective feature classes and and not included here. Similarl... | def Cec6(Emd4):
return {'minimumROIDimensions': 1, 'minimumROISize': None, 'normalize': False, 'normalizeScale': 1, 'removeOutliers': None, 'resampledPixelSpacing': None, 'interpolator': 'sitkBSpline', 'padDistance': 5, 'distances': [1], 'force2D': False, 'force2Ddimension': 0, 'label': 1, 'enableCExtensions': True... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gCuF(YKHO) -> cuzp[str, ImMB]:\n gCuF = {}\n if YKHO.pre_thresholder is not None:\n gCuF['pre_thresh'] = YKHO.pre_thresholder.threshold\n if YKHO.pre_thresholder.val_low_class != 0.0:\n gCuF['pre_val_low'] = YKHO.pre_thresholder.val_low_class\n if YKHO.pre_thresholder.val_... | [
"0.7154207",
"0.70924383",
"0.6903164",
"0.68919384",
"0.68635166",
"0.68474275",
"0.6748116",
"0.67425704",
"0.672394",
"0.66872275",
"0.66056347",
"0.65817654",
"0.6545441",
"0.65379333",
"0.65102243",
"0.64229476",
"0.6391109",
"0.6390645",
"0.6373113",
"0.6338724",
"0.631... | 0.74119973 | 0 |
Returns a list of all possible feature classes. | def kxDZ(YKHO):
return YKHO.featureClasses.keys() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KndY(YKHO):\n return list(YKHO._classes_generator())",
"def all(Emd4):\n dixj = []\n for mWFP in NDOe:\n _x49 = Emd4.get_by_name(mWFP)\n if _x49 is None:\n _x49 = Emd4(name=mWFP)\n Emd4.query.session.add(_x49)\n dixj.append(_x49)\n return dixj",
"def k... | [
"0.7083753",
"0.7047303",
"0.6986615",
"0.693242",
"0.6733783",
"0.6730487",
"0.67188895",
"0.6682392",
"0.6679798",
"0.66244197",
"0.65775675",
"0.65715474",
"0.65669453",
"0.65622187",
"0.65523064",
"0.65395606",
"0.65354544",
"0.65196466",
"0.65172577",
"0.65092283",
"0.64... | 0.76183635 | 0 |
Sends a 401 response that enables basic auth | def NLCy():
return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})",
"def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\... | [
"0.8095378",
"0.80943215",
"0.7960329",
"0.785324",
"0.7844362",
"0.78259075",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
"0.7812201",
... | 0.7749071 | 35 |
Finds the first occurrence of 'None' in the list of properties. | def Oh6f(YKHO, C9U5):
for Xx5Z in C9U5:
ckp0 = iter(Xx5Z)
next(ckp0)
for TJFQ in ckp0:
GrlE = TJFQ.split(': ')[1].split(' //')[0]
if GrlE == 'None':
return TJFQ
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QUdG(C9U5, H5ew):\n K_C7 = [QWcs.split('=').pop(1) for QWcs in C9U5 if QWcs.startswith(H5ew + '=')]\n if len(K_C7) > 1:\n raise ValueError('Property %r should appear only once in %r' % (H5ew, C9U5))\n if '' in K_C7:\n raise ValueError('Invalid empty value for property %r in %r' % (H5ew, ... | [
"0.6420576",
"0.6140944",
"0.56629044",
"0.5504727",
"0.5462736",
"0.5437577",
"0.53297234",
"0.52824485",
"0.5245571",
"0.52292776",
"0.5227138",
"0.5211976",
"0.51856893",
"0.5184328",
"0.5180561",
"0.5177724",
"0.516806",
"0.5162539",
"0.5130421",
"0.5128275",
"0.51195353"... | 0.8134218 | 0 |
Initializes the meter to DC voltage measurment in the 10V range | def c4KZ(TPXj):
TPXj.write('RESET')
TPXj.write('TARM HOLD')
TPXj.write('FUNC DCV')
TPXj.write('RANGE 10')
TPXj.write('LFREQ LINE')
TPXj.write('NPLC 1')
TPXj.write('AZERO ONCE')
TPXj.write('FIXEDZ ON') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jUsp(YKHO, xlLU, Ylbp, PXGI='V'):\n YKHO.write_to_serial(':conf:volt:dc ' + str(xlLU) + ',' + str(Ylbp))",
"def hKVc(YKHO):\n pass",
"def AVIi(YKiD, Z0EI=10, B1Wx=0.003):\n return float(YKiD.query('MEAS:VOLTage:DC? %s,%s' % (Z0EI, B1Wx)))",
"def nYxq(YKHO, begE, xZXM, UdSm, f4EL, fQqb, eAYh):\n ... | [
"0.6578889",
"0.5966041",
"0.5959843",
"0.58004075",
"0.58004075",
"0.57944673",
"0.5790686",
"0.5748484",
"0.5745046",
"0.5723111",
"0.57070476",
"0.56898814",
"0.5680734",
"0.5679567",
"0.5679567",
"0.56482434",
"0.5646847",
"0.5607881",
"0.56076604",
"0.5604224",
"0.560302... | 0.0 | -1 |
r"""Close the websocket connection. | def ul7O(YKHO, VTcd, Wxnj, lo9Y):
YKHO.wsapp.keep_running = False
if not YKHO.ws_opened.is_set():
YKHO.ws_opened.set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO) -> None:\n if YKHO.websocket:\n YKHO.websocket.stop()",
"def DDI8(YKHO) -> None:\n vzeF.info('Shutting down connections to deCONZ.')\n if YKHO.websocket:\n YKHO.websocket.stop()",
"async def close(YKHO):\n await YKHO._ws.close()\n print(Z9rn[3] + '\\nTokenAnalyst con... | [
"0.82686013",
"0.7933651",
"0.7698873",
"0.7587314",
"0.75302136",
"0.7504887",
"0.75026125",
"0.7472136",
"0.74413806",
"0.7424967",
"0.74112785",
"0.73001915",
"0.72993577",
"0.72989756",
"0.72845757",
"0.7276639",
"0.7242707",
"0.7239804",
"0.7239804",
"0.7239804",
"0.7239... | 0.0 | -1 |
Represent each Card as a concatenation of its rank and suit. | def wHJl(YKHO):
return YKHO.rank + YKHO.suit | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.rank) + ' of ' + YKHO.suit",
"def BjaM(*khoC):\n iNie = {'Spades': '♠', 'Diamonds': '♦', 'Hearts': '♥', 'Clubs': '♣'}\n\n def vGcH(dxhl):\n fdMZ = dxhl.rank if dxhl.rank == '10' else dxhl.rank[0]\n return Ryy2.format(rank=fdMZ, suit=iNie[dxhl.suit])\n r... | [
"0.71933305",
"0.71600074",
"0.71444017",
"0.7140631",
"0.70260257",
"0.70260257",
"0.6997441",
"0.69622666",
"0.6956081",
"0.69310045",
"0.69288784",
"0.6914523",
"0.67576605",
"0.6716822",
"0.66366667",
"0.6612663",
"0.6599204",
"0.6593373",
"0.6528129",
"0.65071744",
"0.65... | 0.7598367 | 0 |
Cards are == when one Card has the same rank or suit of another Card instance. | def xa14(YKHO, sPLd):
if YKHO.rank == sPLd.rank or YKHO.suit == sPLd.suit:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, nNr0):\n return YKHO.suit == nNr0.suit and YKHO.rank == nNr0.rank",
"def xa14(YKHO, Elif: Card) -> bool:\n return lAcl[YKHO.number] == lAcl[Elif.number]",
"def xa14(YKHO, Elif):\n if isinstance(Elif, F1Hz):\n return YKHO.color == Elif.color and YKHO.value == Elif.value\n retur... | [
"0.87093216",
"0.78906995",
"0.77700496",
"0.74245775",
"0.7407949",
"0.7117948",
"0.7053784",
"0.70236933",
"0.6877931",
"0.687404",
"0.68026626",
"0.6787577",
"0.6734536",
"0.6732668",
"0.6705773",
"0.66778344",
"0.6657151",
"0.6649128",
"0.6634081",
"0.6603406",
"0.6591542... | 0.8623669 | 1 |
Recursively templateexpand a json dict against itself or other context. The context for string expansion is the json dict itself by default, updated by extra_context, if supplied. | def Xh__(zgjV, fkz_=None, lnZT=True):
if lnZT:
QpfX = dict(zgjV)
else:
QpfX = {}
if fkz_:
QpfX.update(fkz_)
def kUlf(YEnM):
if isinstance(YEnM, list):
return [kUlf(WKvO) for WKvO in YEnM]
elif isinstance(YEnM, dict):
return dict(((G1Hx, kU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZUtV(kLQb, d24T):\n\n def Lhk2(tTpl):\n return ZUtV(tTpl, d24T)\n if isinstance(kLQb, dict):\n return {Lhk2(G1Hx): Lhk2(Ty9i) for G1Hx, Ty9i in kLQb.items()}\n elif isinstance(kLQb, list):\n return [Lhk2(tTpl) for tTpl in kLQb]\n elif kLQb in d24T:\n return d24T[kLQb]\n ... | [
"0.6263145",
"0.55062026",
"0.54617023",
"0.53140074",
"0.52904445",
"0.5242427",
"0.5238454",
"0.521097",
"0.52007663",
"0.5114993",
"0.5110396",
"0.5087918",
"0.50575686",
"0.501296",
"0.49815476",
"0.4947743",
"0.4945792",
"0.4896503",
"0.48905617",
"0.4872648",
"0.4816023... | 0.8101806 | 0 |
Return the directory of data files. | def h_xa():
return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'data') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRIH(YKHO):\n return YKHO.get_raw('data_directory')",
"def h_xa(YKHO) -> GkAb:\n return YKHO._data_dir",
"def xe5l(YKHO):\n return YKHO.data_dir",
"def h_xa(YKHO):\n return YKHO._data_dir",
"def h_xa(YKHO):\n return YKHO._data_dir",
"def h_xa():\n return viqz.datadir",
"def h_xa(Y... | [
"0.86678046",
"0.8487896",
"0.8462572",
"0.84176695",
"0.84176695",
"0.84165275",
"0.83920074",
"0.83725977",
"0.8331892",
"0.82320046",
"0.82109785",
"0.8151315",
"0.8066355",
"0.8062088",
"0.8061976",
"0.8047895",
"0.80455387",
"0.8033556",
"0.8001184",
"0.79925346",
"0.798... | 0.87103015 | 0 |
Combines list into a string of the form item1, item2, and item 3 | def o6qD(DumB):
sUeM = len(DumB)
if sUeM == 0:
return ''
elif sUeM == 1:
return DumB[0]
return ', '.join(DumB[:-1]) + ', and ' + DumB[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JbwW(DumB: Iterable[str]) -> str:\n return lcpj.join(DumB)",
"def KP6z(qgK3):\n rIkN = ''\n for ZfUD in qgK3:\n rIkN += ' ' + str(ZfUD) + ','\n return rIkN[:-1]",
"def zp3R(DumB, xki2='and'):\n l5Ny = ''\n if not DumB:\n l5Ny = ''\n elif len(DumB) == 1:\n l5Ny = Du... | [
"0.79991424",
"0.7775448",
"0.75652117",
"0.7435386",
"0.72728205",
"0.7271365",
"0.72299993",
"0.722568",
"0.70819163",
"0.7036277",
"0.70145047",
"0.70130634",
"0.6990181",
"0.69315577",
"0.6876183",
"0.68205476",
"0.6816648",
"0.67916524",
"0.6769555",
"0.67605346",
"0.673... | 0.6674709 | 24 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
return [vC9B[YRbF:YRbF + exwG] for YRbF in range(0, len(vC9B), exwG)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038813",
"0.79248375",
"0.7923423",
"0.7885103",
"0.78773195",
"0.7815877",
"0.77655786",
"0.77556044",
"0.77441615",
"0.7731815",
"0.77288336",
"0.772473",
"0.77028215",
"0.76889825",
"0.76889825",
"0.7664208",
"0.76570904",
"0.7655856",
"0.7655856",
"0.76458347",
"0.764... | 0.0 | -1 |
Converts decimal number into sexagesimal number parts. ``deci`` is the decimal number to be converted. ``precision`` is how close the multiple of 60 and 3600, for example minutes and seconds, are to 60.0 before they are rounded to the higher quantity, for example hours and minutes. | def ecGL(UvOR, rhd_=1e-08):
Zihr = '+'
if UvOR < 0:
UvOR = abs(UvOR)
Zihr = '-'
LONS, mLGw = epAf.modf(UvOR)
mLGw = int(mLGw)
liM1, LONS = epAf.modf(LONS * 60.0)
LONS = int(LONS)
liM1 *= 60.0
if abs(liM1 - 60.0) < rhd_:
liM1 = 0.0
LONS += 1
if abs(LONS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(YKHO):\n vIwR = YKHO.ask('od;E;')\n TPao = vIwR.find('.')\n fVVZ = vIwR.find('E', TPao)\n phJ9 = fVVZ - TPao - 1\n w520 = int(vIwR[fVVZ + 1:])\n eRdl = 10 ** (-phJ9 + w520)\n return eRdl",
"def YOHd(Csk6: decimal.Decimal, rhd_: int, NXpY: int) -> None:\n bGrB, BHGE, kLQb = Csk6.a... | [
"0.5545609",
"0.54595983",
"0.5409595",
"0.5327562",
"0.5315469",
"0.52859825",
"0.52043194",
"0.519569",
"0.5193756",
"0.51741165",
"0.515108",
"0.515045",
"0.5112662",
"0.500345",
"0.49701056",
"0.49647292",
"0.4951426",
"0.49483728",
"0.49165738",
"0.48891824",
"0.4876071"... | 0.62166643 | 0 |
A convenient string representation that contains the current yaml map of this yamlizable | def wHJl(YKHO) -> str:
_2Ld = dH2d.yaml_map(YKHO)
jc5U = [f'{G1Hx}={Ty9i!r}' for G1Hx, Ty9i in sorted(_2Ld.items())]
return f'{YKHO.__class__.__name__}({', '.join(jc5U)})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJb6(YKHO):\n return str(YKHO.data)",
"def zAg0(YKHO):\n tbx9 = YKHO._def.default.copy()\n tbx9.update(YKHO.__dict__)\n mWFP = '%s <%s>' % (YKHO.__class__.__name__, id(YKHO))\n return eJb6.dump({mWFP: tbx9}, default_flow_style=False)",
"def GMGf(YKHO):\n FD5x._check_yaml_import()\n imp... | [
"0.7816891",
"0.7704461",
"0.7668333",
"0.74728835",
"0.74209595",
"0.7258811",
"0.7217699",
"0.71320325",
"0.71031713",
"0.70095026",
"0.6967369",
"0.69200975",
"0.6897495",
"0.6850851",
"0.6836524",
"0.6836524",
"0.6836524",
"0.6836524",
"0.6836524",
"0.6836524",
"0.6836524... | 0.7610701 | 3 |
Creates a Cell from a JSON dictionary. | def pktP(YKHO, _ugn: Dict) -> 'Cell':
VmPb = riCw(content=_ugn['content'], data=_ugn['data'])
VmPb.id = _ugn['id']
return VmPb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pktP(Emd4, _ugn: Dict) -> 'Page':\n B2Dn = Emd4(cells=[riCw.from_json(Je8a) for Je8a in _ugn['cells']], data=_ugn['data'])\n B2Dn.id = _ugn['id']\n return B2Dn",
"def jG8h(YKHO, Csk6):\n return rApN(**Csk6)",
"def pktP(Emd4, Fg_i):\n return Emd4.from_dict(qQXR.loads(Fg_i))",
"def pktP(Emd4... | [
"0.6552123",
"0.6535798",
"0.6277082",
"0.6269054",
"0.6266621",
"0.61997414",
"0.61492914",
"0.6125334",
"0.5983177",
"0.5935195",
"0.58735913",
"0.58735913",
"0.58735913",
"0.58735913",
"0.58735913",
"0.58735913",
"0.58735913",
"0.58735913",
"0.58735913",
"0.58735913",
"0.5... | 0.82266605 | 0 |
Does RV shifting work | def fw75():
Cqok = iLPL(file=nUeQ)
assert Cqok.uncertainty is not None
assert hasattr(Cqok, 'barycentric_correct')
ihAi = Cqok.estimate_barycorr()
assert isinstance(Cqok.RA, ISwT.units.quantity.Quantity)
assert isinstance(Cqok.DEC, ISwT.units.quantity.Quantity)
assert ihAi is not None
as... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MHOc(YKHO):\n gr_i = YKHO.return_middle_registers(YKHO.opcode)\n UOVU = YKHO.registers[gr_i[1]]\n YKHO.registers[15] = UOVU & 1\n YKHO.registers[gr_i[0]] = YKHO.registers[gr_i[1]] >> 1\n bo34.info('Shifted register V{} to the right into V{}({})'.format(gr_i[1], gr_i[0], hex(YKHO.registers[gr_i[0... | [
"0.69488525",
"0.68362254",
"0.67707986",
"0.67707986",
"0.66768026",
"0.6673234",
"0.66563946",
"0.66563946",
"0.64938307",
"0.64050066",
"0.63850296",
"0.6352056",
"0.6345997",
"0.6341593",
"0.62932235",
"0.62932235",
"0.62131655",
"0.61368865",
"0.6103431",
"0.6093303",
"0... | 0.0 | -1 |
The value of the property. | def BWXx(YKHO) -> str:
return YKHO._value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n return YKHO._value",
"def Zmkp(YKHO):\n return YKHO._value",
"def Zmkp(YKHO):\n return YKHO._value",
"def BWXx(YKHO):\n return YKHO.__value",
"def BWXx(YKHO):\n return YKHO.__value",
"def Zmkp(YKHO):\n return YKHO._value",
"def Zmkp(YKHO):\n return YKHO._value",
... | [
"0.82087135",
"0.81645244",
"0.81645244",
"0.81625575",
"0.81625575",
"0.8161171",
"0.8161171",
"0.8161171",
"0.8132177",
"0.8132177",
"0.8132177",
"0.8080328",
"0.8080328",
"0.8080328",
"0.8080328",
"0.8080328",
"0.8080328",
"0.8080328",
"0.8080328",
"0.8080328",
"0.8080328"... | 0.80432713 | 44 |
Return the last values of all state variables in a SimState object. | def o_r0(YKHO):
return YKHO._simstate | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GFRo(YKHO):\n QTBn = {}\n KCHu = YKHO.copy()\n vJPk = not oyIN.isscalar(YKHO['t'])\n if vJPk:\n KCHu.set_state(YKHO.state[:, -1])\n for G1Hx in YKHO.difeq_vars:\n QTBn[G1Hx] = KCHu[G1Hx]\n for G1Hx in YKHO.dep_vars:\n QTBn[G1Hx] = KCHu[G1Hx]\n for G1Hx, Ty9i in YKHO.ex... | [
"0.70501053",
"0.68264186",
"0.6813396",
"0.67094797",
"0.66886044",
"0.6674428",
"0.6615974",
"0.6521614",
"0.6480747",
"0.64383215",
"0.6368001",
"0.6361215",
"0.63596594",
"0.63395506",
"0.6314231",
"0.6235604",
"0.6213478",
"0.6176815",
"0.61695874",
"0.6163223",
"0.61559... | 0.7101281 | 0 |
A strategy that creates `Case` instances. Explicit `path_parameters`, `headers`, `cookies`, `query`, `body` arguments will be used in the resulting `Case` object. | def lHzy(JmFt: Callable, w2IS: Endpoint, dBkI: Optional[HookDispatcher]=None, odKW: Optional[Feedback]=None, V5kA: DataGenerationMethod=FlJy.default(), yrzv: Any=nqSx, MOPg: Any=nqSx, ku7L: Any=nqSx, xDcj: Any=nqSx, TBsA: Any=nqSx) -> ImMB:
vBKb = {FlJy.positive: pL0S}[V5kA]
QpfX = UH2l(w2IS)
if yrzv is nqS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dD9Z(YKHO, R4bX, RhGk):\n D8zn = RhGk['method'].upper() in YKHO.modification_methods\n IItS = RhGk.get('user', D8zn)\n if IItS:\n cuiw = YKHO.user_session\n else:\n cuiw = G4JS\n locH = getattr(cuiw, RhGk['method'].lower())\n lfLI = YKHO.uri(RhGk['endpoint'])\n B2fa = {'allow... | [
"0.575196",
"0.57027084",
"0.5673386",
"0.5494484",
"0.54804766",
"0.5334432",
"0.5334432",
"0.52071553",
"0.51731235",
"0.51614434",
"0.51614434",
"0.50898486",
"0.50793946",
"0.5054101",
"0.5024315",
"0.5018465",
"0.50131065",
"0.50022775",
"0.49648806",
"0.49112797",
"0.48... | 0.5888172 | 0 |
A GET request should simply return a 200. | def ykgQ(YKHO):
geh0 = YKHO.client.get(YKHO.url)
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def us5f(YKHO):\n pass",
"def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.response.status_code)",
"def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.response.status_code)",
"def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.resp.status_code)",
"def ykgQ(YKHO):\n YKHO.assertEqual(200, YKHO.resp.status_cod... | [
"0.83019894",
"0.7618177",
"0.7618177",
"0.7606511",
"0.7606511",
"0.74461186",
"0.7405459",
"0.71480525",
"0.7101645",
"0.70365584",
"0.69865036",
"0.6959429",
"0.69543254",
"0.6887673",
"0.68825656",
"0.6864004",
"0.6860572",
"0.6855868",
"0.6817767",
"0.6748019",
"0.674660... | 0.7089127 | 10 |