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 |
|---|---|---|---|---|---|---|
Remove element from the beginning of the queue and return its value | def he0F(YKHO) -> object:
return YKHO._data.pop(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None",
"def BEuN(YKHO):\n lMD3 = YKHO.queue[0]\n del YKHO.queue[0]\n YKHO.index -= 1\n retu... | [
"0.831976",
"0.8151288",
"0.8088197",
"0.8072125",
"0.803209",
"0.80239594",
"0.8003051",
"0.79946816",
"0.7907526",
"0.78959465",
"0.7885423",
"0.78729606",
"0.78649676",
"0.7861199",
"0.7827563",
"0.7827563",
"0.782421",
"0.78091276",
"0.7805235",
"0.7797603",
"0.7742339",
... | 0.0 | -1 |
Init new Binary Search Tree DO NOT CHANGE THIS METHOD IN ANY WAY | def FIMM(YKHO, BWXx: object) -> None:
YKHO.value = BWXx
YKHO.left = None
YKHO.right = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n UmtR.__init__(YKHO)",
"def DszH(YKHO):\n i2Jd = UmtR(None)\n i2Jd.insert(5)\n i2Jd.insert(3)\n i2Jd.insert(2)\n i2Jd.insert(1)\n i2Jd.insert(7)\n i2Jd.insert(8)\n i2Jd.insert(6)\n return i2Jd",
"def FIMM(YKHO, tk5Y=bZsG):\n YKHO.root = tk5Y\n if YKHO.is_emp... | [
"0.78187996",
"0.76920646",
"0.76545054",
"0.76080436",
"0.7518575",
"0.7182802",
"0.7181627",
"0.71360725",
"0.7121441",
"0.7095835",
"0.70927536",
"0.7080334",
"0.70703214",
"0.70595473",
"0.704297",
"0.7033293",
"0.70199686",
"0.6945129",
"0.69372994",
"0.6918776",
"0.6917... | 0.6625392 | 44 |
Init new Binary Search Tree DO NOT CHANGE THIS METHOD IN ANY WAY | def FIMM(YKHO, jzb0=None) -> None:
YKHO.root = None
if jzb0 is not None:
for BWXx in jzb0:
YKHO.add(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n UmtR.__init__(YKHO)",
"def DszH(YKHO):\n i2Jd = UmtR(None)\n i2Jd.insert(5)\n i2Jd.insert(3)\n i2Jd.insert(2)\n i2Jd.insert(1)\n i2Jd.insert(7)\n i2Jd.insert(8)\n i2Jd.insert(6)\n return i2Jd",
"def FIMM(YKHO, tk5Y=bZsG):\n YKHO.root = tk5Y\n if YKHO.is_emp... | [
"0.78187996",
"0.76920646",
"0.76545054",
"0.76080436",
"0.7518575",
"0.7182802",
"0.7181627",
"0.71360725",
"0.7121441",
"0.7095835",
"0.70927536",
"0.7080334",
"0.70703214",
"0.704297",
"0.7033293",
"0.70199686",
"0.6945129",
"0.69372994",
"0.6918776",
"0.6917637",
"0.69176... | 0.70595473 | 13 |
Determines whether BST is complete | def ZZQq(YKHO) -> bool:
if YKHO.root is None:
return True
if YKHO.is_perfect():
return True
vexM = g5js()
vexM.enqueue(YKHO.root)
GdGT = False
while not vexM.is_empty():
Q6kx = vexM.dequeue()
if not GdGT:
if Q6kx.left is None and Q6kx.right is not None... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DGKv(YKHO, tk5Y: Optional[TreeNode]) -> bool:\n gGq6 = MUE7([tk5Y])\n hD_r = False\n while gGq6:\n Q6kx = gGq6.pop()\n if Q6kx is None:\n hD_r = True\n continue\n if hD_r:\n return False\n gGq6.appendleft(Q6kx.left)\n gGq6.appendleft(... | [
"0.797956",
"0.7713519",
"0.75388247",
"0.74441147",
"0.73238933",
"0.7260234",
"0.7218994",
"0.71737534",
"0.7158273",
"0.7142384",
"0.7131322",
"0.7021223",
"0.69020486",
"0.68814796",
"0.6872329",
"0.6865554",
"0.67412597",
"0.67332655",
"0.6705609",
"0.6687213",
"0.667880... | 0.8008008 | 0 |
Returns the number of TreeNodes in BST | def zNig(YKHO) -> int:
if YKHO.root is None:
return 0
return YKHO.size_helper(YKHO.root) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k1Ic(YKHO):\n UHFx = 1\n if YKHO.left:\n UHFx += YKHO.left.numInTree()\n if YKHO.right:\n UHFx += YKHO.right.numInTree()\n return UHFx",
"def ges3(YKHO, tk5Y=True) -> int:\n mLGw = 0\n for jehQ in YKHO.branches:\n mLGw += jehQ.count_tree_nodes(root=False) + 1\n retur... | [
"0.853941",
"0.8483836",
"0.8333993",
"0.82937884",
"0.8120481",
"0.7911525",
"0.7875501",
"0.7861911",
"0.7848756",
"0.78303045",
"0.78162575",
"0.77892137",
"0.7781629",
"0.77642167",
"0.7746273",
"0.7729766",
"0.7658602",
"0.765745",
"0.7629615",
"0.7622774",
"0.76162857",... | 0.0 | -1 |
Indicates whether TreeNode passed as argument is root | def kFcs(YKHO, Q6kx: object) -> bool:
if Q6kx == YKHO.root:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kFcs(YKHO):\n return YKHO.root is True",
"def kFcs(YKHO):\n return YKHO is YKHO.root",
"def kFcs(YKHO):\n return YKHO.val == YKHO.parent",
"def Swep(YKHO):\n return YKHO.parent_node is None",
"def K5QN(YKHO, Q6kx):\n return Q6kx.parent is YKHO.NIL",
"def kFcs(YKHO):\n return False",... | [
"0.8430092",
"0.8244933",
"0.81283075",
"0.8094763",
"0.8072023",
"0.80252624",
"0.79891807",
"0.79891807",
"0.7988053",
"0.7975312",
"0.79583496",
"0.7947294",
"0.792777",
"0.79159963",
"0.7901183",
"0.78690034",
"0.78393775",
"0.78393775",
"0.78393775",
"0.78393775",
"0.783... | 0.821144 | 2 |
Indicates whether TreeNode passed as argument is a leaf | def loae(YKHO, Q6kx: object) -> bool:
if Q6kx.left is None and Q6kx.right is None:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loae(YKHO):\n return not YKHO.left and (not YKHO.right)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae():\n return False",
"def loae() -> bool:\n return True",
"def loae(J_Es):\n return not GZiu(J_Es)",
"def loae(J_Es):\n retur... | [
"0.85254",
"0.85149926",
"0.85149926",
"0.8499521",
"0.84912014",
"0.8458319",
"0.8458319",
"0.8458319",
"0.83511716",
"0.83068293",
"0.8297158",
"0.82783735",
"0.82672715",
"0.82672715",
"0.8248231",
"0.82383996",
"0.82383996",
"0.8216432",
"0.81839216",
"0.8180787",
"0.8160... | 0.8186325 | 18 |
Get the meta data associated with the model | def e5kH(YKHO) -> dict:
if not YKHO._meta:
uTFO = Hy7s.path.join(YKHO.dirname, 'meta.yaml')
with open(uTFO, 'r', encoding='utf8') as eHNT:
YKHO._meta = eJb6.safe_load(eHNT)
return YKHO._meta | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e5kH(YKHO):\n if not YKHO.model:\n YKHO.load()\n return YKHO.model.meta",
"def C0wX(YKHO):\n if Ke5A:\n uZq5('Controller().get_meta()')\n return YKHO.model.get_meta()",
"def NMoC(YKHO):\n return Iy8x",
"def Vl0U(YKHO):\n return YKHO._meta",
"def Vl0U(C3ST):\n yzQ0 = {... | [
"0.8557862",
"0.8399466",
"0.8348561",
"0.83465695",
"0.8207943",
"0.8103455",
"0.806654",
"0.79177594",
"0.79177594",
"0.79177594",
"0.7834876",
"0.7810614",
"0.7799284",
"0.7771405",
"0.7771405",
"0.7660344",
"0.76193285",
"0.76193285",
"0.76193285",
"0.76193285",
"0.761932... | 0.0 | -1 |
Representation string of a model | def wHJl(YKHO) -> str:
return f'{YKHO.__class__.__name__}(dirname={YKHO.dirname!r})' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def wHJl(YKHO: BaseModel) -> str:\n sgKs = [f'{H5ew}={repr(BWXx)}' for H5ew, BWXx in YKHO.to_dict().items()]\n return f'{type(YKHO).__name__}({sgKs})'",
"def wHJl(YKHO):\n return '<{}>'.format(YKHO.model_... | [
"0.78313804",
"0.77860785",
"0.7722783",
"0.7719145",
"0.76900184",
"0.7673747",
"0.76320446",
"0.7456654",
"0.7350992",
"0.73353744",
"0.73005927",
"0.72541505",
"0.7246689",
"0.72320366",
"0.72071904",
"0.7154677",
"0.71391016",
"0.70980114",
"0.7081511",
"0.7031363",
"0.70... | 0.0 | -1 |
Test that the created VHDL text is correct. | def OruP():
Oz1B = z3xZ.create_test_object()
qwHT = oP0T.create_vhdl_package(Oz1B.register_maps[0])
print(qwHT)
assert qwHT == 'package test_map is\n\n constant test_register0 : integer := 0;\n constant test_register0_test_register0_bit_map0_0 : integer := 0;\n constant test_register0_test_register0_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UmKU(YKHO):\n ycBG = jbPF()\n YKHO.assertEqual('%s' % ycBG, 'U')",
"def eoNy(YKHO):\n TkWw = QpfX.create_vuln('RHSA-2019:0094')\n YKHO.assertTrue(TkWw)",
"def E1kv(YKHO):\n pass",
"def mTSG(YKHO, eCGt):\n eCGt['test_obj'] = O5Ii(Rint=0.2, Rext=0.5, is_internal=True, is_stator=False, L1=... | [
"0.6366099",
"0.62813026",
"0.6137789",
"0.59878945",
"0.5892323",
"0.5886765",
"0.5864408",
"0.5711211",
"0.5703983",
"0.57026595",
"0.56916314",
"0.56660163",
"0.56641936",
"0.5649516",
"0.55734676",
"0.5572485",
"0.55617994",
"0.5561632",
"0.5557015",
"0.5519544",
"0.55116... | 0.6634695 | 0 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)
Ylbp.append(R2Dg.mul_(1 / ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003144",
"0.7974792",
"0.7973687",
"0.7941219",
"0.78642184",
"0.78039354",
"0.7707838",
"0.76216906",
"0.7593254",
"0.7561343",
"0.7520396",
"0.74301255",
"0.7412324",
"0.7375929",
"0.73746765",
"0.7321523",
"0.7254618",
"0.72368574",
"0.7228014",
"0.72044694",
"0.713748... | 0.0 | -1 |
Factory function invoked by Flask to instantiate the application object. | def LUif() -> WsL5.Flask:
class CustomFormatter(G9jH.Formatter):
"""Implements a custom log formatter."""
def FIMM(YKHO) -> None:
"""Constructor."""
super().__init__('%(levelname)s: %(message)s')
def format(YKHO, AIu6: typing.Any) -> str:
"""Base class ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z_uJ():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(PSrQ)\n P4t4.config.from_object(Hy7s.environ.get('APP_SETTINGS'))\n return P4t4",
"def Dib3(kO5c=False):\n lEZe()\n EsWC(P4t4)\n P4t4.testing = kO5c\n trsB()\n Th2b()\n from app.utils.audit_util import configure_audit\n ... | [
"0.8223672",
"0.8134065",
"0.81267065",
"0.8106051",
"0.8042397",
"0.8037431",
"0.79974806",
"0.79850626",
"0.79556173",
"0.7912355",
"0.79076535",
"0.78942865",
"0.78761625",
"0.78727585",
"0.78653365",
"0.78653365",
"0.78624094",
"0.7857201",
"0.78552735",
"0.7851561",
"0.7... | 0.0 | -1 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8393829",
"0.83557564",
"0.8296152",
"0.8133522",
"0.81153053",
"0.8100911",
"0.8100133",
"0.8098902",
"0.8098902",
"0.80937666",
"0.80937666",
"0.80937666",
"0.80937666",
"0.8086338",
"0.8086338",
"0.8086338",
"0.8086338",
"0.8086338",
"0.8067774",
"0.80598664",
"0.805856... | 0.0 | -1 |
3x3 convolution with padding | def Myly(UUZO, sYyA, _0fC=1):
return lGhg(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1):\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=0, groups=moMn, bias=False, dilation=ivFb)",
"def DO8L(WKvO, yzQ0, UP6E=[0, 0, 0], FEri=[1, 1,... | [
"0.78404945",
"0.7541354",
"0.753996",
"0.7491138",
"0.7434801",
"0.74207747",
"0.73415834",
"0.7320252",
"0.7299599",
"0.7287539",
"0.72799367",
"0.72799367",
"0.7257735",
"0.7226928",
"0.72204214",
"0.7214909",
"0.7214909",
"0.7210775",
"0.7198222",
"0.71639067",
"0.7161914... | 0.0 | -1 |
Obtain a weighted sum (expectation) of all the embeddings, from a given probability distribution. | def lYi5(YKHO, eFr6=None, KeL5=None):
if eFr6 is None and KeL5 is not None:
Wc9F, u54L, tpio = KeL5.size()
rNAk = vuvg.softmax(KeL5, -1).view(Wc9F * u54L, tpio)
elif eFr6 is not None and KeL5 is None:
Wc9F, u54L, tpio = eFr6.size()
rNAk = eFr6.view(Wc9F * u54L, tpio)
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bWFM(qRpc):\n LSAz = qRpc / len(qRpc)\n return oyIN.sum(LSAz)",
"def SBYV(YKHO):\n V3oS = YKHO.weights.sum()\n YKHO.prob = oyIN.array([upAO / V3oS for upAO in YKHO.weights])",
"def r8Xq(jzV1):\n X4GY = ht2j.exp(jzV1)\n X4GY = X4GY / X4GY.sum(dim=0)\n return X4GY",
"def RZGf(YKHO, XP5... | [
"0.6514925",
"0.6456403",
"0.64236057",
"0.63339704",
"0.6292685",
"0.6207774",
"0.6156141",
"0.6145258",
"0.61257017",
"0.61155206",
"0.6106257",
"0.61008084",
"0.6089808",
"0.60802877",
"0.6068606",
"0.6047617",
"0.6023238",
"0.6007166",
"0.5983589",
"0.595928",
"0.594926",... | 0.0 | -1 |
Return scalarMap object with n colors in gradient from color map given in cmap_name. | def uknC(em8M, exwG):
iMGt = QrM1.get_cmap(em8M)
hkxX = range(exwG)
tceN = ZfWE.Normalize(vmin=hkxX[0], vmax=hkxX[-1])
y1f3 = Bcwd.ScalarMappable(norm=tceN, cmap=iMGt)
return y1f3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tRp2(ywwl, iMGt='nipy_spectral'):\n n_rA = Jw9H.Normalize(vmin=0, vmax=ywwl - 1)\n hG7b = CbNT.ScalarMappable(norm=n_rA, cmap=iMGt)\n\n def K2Jj(d6pt):\n return hG7b.to_rgba(d6pt)\n return K2Jj",
"def uULn(em8M, cDK5):\n Jw9H = []\n MYQr = Bcwd.cmap_d[em8M]\n for YRbF in oyIN.lins... | [
"0.68356085",
"0.67519104",
"0.66963476",
"0.6588155",
"0.6582519",
"0.65807575",
"0.65689445",
"0.6566814",
"0.6561841",
"0.6551726",
"0.65179664",
"0.6471713",
"0.6446358",
"0.6431729",
"0.64215887",
"0.6398221",
"0.6377721",
"0.6366388",
"0.63509214",
"0.63337463",
"0.6332... | 0.7883775 | 0 |
profile overview page This is what the user sees when he's already signed in | def z39Z(QePW):
QpfX = {'user': QePW.user}
QpfX.update(VLhM)
return _1tc(QePW, 'account/Profile.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hu6d():\n z39Z = cuiw.get('profile')\n if not z39Z:\n return ('Permission Denied: you can sign in using TutorCruncher SSO', 403)\n return TvZl('profile.jinja', profile=z39Z, group=cuiw.get('group'))",
"def z39Z():\n if 'logged_in' in cuiw:\n 'getting all the account info for the use... | [
"0.78164345",
"0.7799826",
"0.77899677",
"0.77614594",
"0.7753982",
"0.77056926",
"0.7674745",
"0.7668375",
"0.76112527",
"0.7602845",
"0.75839394",
"0.755838",
"0.755234",
"0.75426936",
"0.7533704",
"0.7504686",
"0.7483527",
"0.74632335",
"0.74608034",
"0.7433402",
"0.733983... | 0.694382 | 59 |
Description of the database engine version. | def _DcP(YKHO) -> str:
return qe4Y.get(YKHO, 'version_description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GdOD(YKHO) -> str:\n return qe4Y.get(YKHO, 'engine_version')",
"def DpZH(YKHO):\n return YKHO.attr_by_name('engine_version')",
"def Wb9b(eHpk):\n return gJE7.db_version(eHpk)",
"def gdCj(YKHO) -> str:\n return qe4Y.get(YKHO, 'database_version')",
"def Wb9b():\n return gJE7.db_version()",... | [
"0.8064246",
"0.8059112",
"0.7912862",
"0.7831065",
"0.7780927",
"0.7728419",
"0.7695073",
"0.7695073",
"0.7695073",
"0.76747364",
"0.75427663",
"0.7424652",
"0.7424652",
"0.73751247",
"0.73741496",
"0.7280884",
"0.7254315",
"0.71923435",
"0.7175841",
"0.7170399",
"0.7143172"... | 0.703763 | 40 |
Applies a Gaussian Noise kernel | def xsYF(VXjJ, Ot1W):
return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))",
"def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))",
"def VU7a(zNig=21, HVUZ=3):\n WKvO = oyIN.linspace(-HVUZ, HVUZ, zNig + 1)\n wpiG = oyIN.diff(aevO.norm.cdf(WKvO))\n KBhd = oyIN.outer(wpiG, w... | [
"0.7605461",
"0.73932594",
"0.72306895",
"0.7221973",
"0.70058626",
"0.6984166",
"0.69503105",
"0.69361",
"0.6932463",
"0.69269514",
"0.69150364",
"0.6897568",
"0.6854249",
"0.68513006",
"0.68307287",
"0.68179166",
"0.6815433",
"0.6809567",
"0.68012255",
"0.67894566",
"0.6774... | 0.0 | -1 |
Applies an image mask. Only keeps the region of the image defined by the polygon formed from `vertices`. The rest of the image is set to black. | def mWKt(VXjJ, iXlf):
ZHfW = oyIN.zeros_like(VXjJ)
if len(VXjJ.shape) > 2:
M9nc = VXjJ.shape[2]
K43N = (255,) * M9nc
else:
K43N = 255
XC5k.fillPoly(ZHfW, iXlf, K43N)
lVtf = XC5k.bitwise_and(VXjJ, ZHfW)
return lVtf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKt(YKHO, VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (255,) * M9nc\n else:\n K43N = 255\n XC5k.fillPoly(ZHfW, iXlf, K43N)\n lVtf = XC5k.bitwise_and(VXjJ, ZHfW)\n return lVtf",
"def mWKt(YKHO, VXjJ, iXlf):\n ... | [
"0.759888",
"0.759888",
"0.759888",
"0.759888",
"0.75630105",
"0.75260025",
"0.75105643",
"0.7508535",
"0.75024253",
"0.7500738",
"0.749719",
"0.74461156",
"0.7436003",
"0.7421955",
"0.7405154",
"0.7405154",
"0.7394225",
"0.7394225",
"0.7394225",
"0.7394225",
"0.7394225",
"... | 0.73190147 | 49 |
`img` should be the output of a Canny transform. Returns an image with hough lines drawn. | def ukXH(VXjJ, oZuG, q7In, gwAu, vkba, y7AI):
Nqlg = XC5k.HoughLinesP(VXjJ, oZuG, q7In, gwAu, oyIN.array([]), minLineLength=vkba, maxLineGap=y7AI)
MKv0 = oyIN.zeros((VXjJ.shape[0], VXjJ.shape[1], 3), dtype=oyIN.uint8)
return (MKv0, Nqlg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ukXH(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=10, maxLineGap=5)",
"def CM3h(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=20, maxLineGap=300)",
"def ukXH(LNo8):\n KQs3 = XC5k.HoughLinesP(LNo8, rh... | [
"0.75575745",
"0.7480556",
"0.7364218",
"0.7363673",
"0.73457974",
"0.72818995",
"0.7249461",
"0.72362673",
"0.72144073",
"0.7195113",
"0.71907496",
"0.7176949",
"0.71566063",
"0.71516556",
"0.71456134",
"0.7143236",
"0.7143236",
"0.7143236",
"0.7143236",
"0.7143236",
"0.7143... | 0.69406635 | 44 |
Calculates the intercept of a line using the slope and one point (x1, y1) | def yuNP(YKHO, VMex, o4D3, si3g):
return YKHO.convert_y_coord(si3g) - VMex * o4D3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BlB8(zFiD):\n return zFiD.y1 - VMex(zFiD) * zFiD.x1",
"def BlB8(o4D3, si3g, ajwV, skBL):\n return si3g - VMex(o4D3, si3g, ajwV, skBL) * o4D3",
"def BlB8(o4D3, si3g, ajwV, skBL):\n r8hN = VMex(o4D3, si3g, ajwV, skBL)\n Fg_i = r8hN * -o4D3 + si3g\n return Fg_i",
"def yuNP(YKHO):\n return ... | [
"0.9070874",
"0.8937309",
"0.87623036",
"0.85457134",
"0.8489999",
"0.8477324",
"0.8427285",
"0.83219814",
"0.81198984",
"0.8035643",
"0.7861456",
"0.77725434",
"0.76899356",
"0.7680964",
"0.76547956",
"0.7581675",
"0.7559446",
"0.7550512",
"0.7534805",
"0.74692565",
"0.74158... | 0.88354886 | 2 |
Calculates the x coordinate for a given Y coordinate on the line defined by given slope and intercept | def DyEw(YKHO, VMex, BlB8, LVAh):
return int((YKHO.convert_y_coord(LVAh) - BlB8) / VMex) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IP0z(VMex, WKvO, LVAh):\n return LVAh - VMex * WKvO",
"def BF4U(WKvO, LVAh, VMex):\n return LVAh - VMex * WKvO",
"def yuNP(YKHO, VMex, o4D3, si3g):\n return YKHO.convert_y_coord(si3g) - VMex * o4D3",
"def BF4U(AU8u, VMex):\n o4D3 = AU8u[0]\n si3g = AU8u[1]\n if VMex == 0:\n retur... | [
"0.835623",
"0.80770093",
"0.7812947",
"0.7794883",
"0.7758013",
"0.77558887",
"0.76242614",
"0.74620765",
"0.7420305",
"0.740715",
"0.73965603",
"0.73943186",
"0.7382756",
"0.72492015",
"0.72390324",
"0.71851015",
"0.71739006",
"0.71513313",
"0.71466637",
"0.7102871",
"0.709... | 0.8906994 | 0 |
Select the line segments that were detected by the Hough transform and bin them in the left lane or the right lane group (or no group if they don't meet certain conditions) 1. prune horizontal slope lines 2. divide into potential left lane and right lane lines according to the line slopes 3. calculate weighted mean of ... | def mFdY(YKHO, Nqlg, W6QT, Vbvt):
rl7s, YLRT = ([], [])
for zFiD in Nqlg:
VMex = YKHO.calculate_slope(zFiD[0][0], zFiD[0][1], zFiD[0][2], zFiD[0][3])
if VMex < 0:
if -VMex >= Vbvt:
YLRT.append(yTQA(zFiD[0][0], zFiD[0][1], zFiD[0][2], zFiD[0][3], VMex))
elif VM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpU6(LNo8):\n ITiw = XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2GRAY)\n Oyij, tPLZ = ITiw.shape\n QrM1.imshow(ITiw, cmap='Greys_r')\n QrM1.show()\n Ot1W = 5\n n1X_ = XC5k.GaussianBlur(ITiw, (Ot1W, Ot1W), 0)\n ZxDD = 100\n wKb9 = 50\n mC4V = XC5k.Canny(n1X_, wKb9, ZxDD)\n QrM1.imshow(mC4V,... | [
"0.6911716",
"0.6777285",
"0.6657462",
"0.66491044",
"0.6521379",
"0.64805233",
"0.6302078",
"0.6238062",
"0.61726236",
"0.60984087",
"0.60945183",
"0.6071286",
"0.6058441",
"0.6055492",
"0.6049787",
"0.60399103",
"0.603142",
"0.6019703",
"0.6014466",
"0.59539",
"0.59433854",... | 0.65977603 | 4 |
Sets the offsets from the HDAWGs to 0 after each experiment | def h6Hi(YKHO):
for d6o2 in range(0, 8):
YKHO.session.devices['device_hdawg'].awgs[0].sigouts[d6o2].offset = 0
YKHO.session.devices['device_hdawg2'].awgs[0].sigouts[0].offset = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQbU(YKHO):\n for r8hN in [YKHO.c.at.F, YKHO.c.at.S1, YKHO.c.at.S2, YKHO.c.at.M, YKHO.c.at.S3, YKHO.c.at.S4, YKHO.c.at.H]:\n r8hN.set_pos(0)\n N5MO(1.0)",
"def SiRx(YKHO):\n YKHO.offset = 0",
"def SiRx(YKHO):\n YKHO.offset = 0\n for Uwb0, vC9B in YKHO.bufferlist:\n LaVg = getat... | [
"0.63281167",
"0.6237761",
"0.6107242",
"0.60622257",
"0.6057696",
"0.60267425",
"0.5984786",
"0.5984786",
"0.5961048",
"0.5936179",
"0.5907719",
"0.5907719",
"0.58708227",
"0.58679044",
"0.5859657",
"0.58538306",
"0.5829414",
"0.58191925",
"0.58151877",
"0.58074474",
"0.5792... | 0.68224984 | 0 |
Calculates the estimated quaternion representation of the orientation. | def M4HK(YKHO, i73w, dOoc, YAq3, FOSW=None):
zDbD = YKHO.q[0]
jCyH = YKHO.q[1]
PMVZ = YKHO.q[2]
MDnR = YKHO.q[3]
ZApG = oyIN.linalg.norm(YAq3)
if ZApG > 0:
YKHO.acc_normalized = oyIN.divide(YAq3, ZApG)
Htqn = oyIN.array([2 * (jCyH * MDnR - zDbD * PMVZ) - YKHO.acc_normalized[0], 2 * (... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def slpS(YKHO):\n return YKHO.q",
"def BIIs(YKHO):\n Kt_s = YKHO.transform.transpose()\n OCOs = oyIN.array([1.0 + Kt_s[0, 0] - Kt_s[1, 1] - Kt_s[2, 2], 1.0 - Kt_s[0, 0] + Kt_s[1, 1] - Kt_s[2, 2], 1.0 - Kt_s[0, 0] - Kt_s[1, 1] + Kt_s[2, 2], 1.0 + Kt_s[0, 0] + Kt_s[1, 1] + Kt_s[2, 2]])\n cxFb = oyIN.fl... | [
"0.70135885",
"0.694298",
"0.6631478",
"0.66300845",
"0.6629662",
"0.65988034",
"0.6584349",
"0.65459514",
"0.6506868",
"0.6480865",
"0.646144",
"0.64188844",
"0.63989365",
"0.6389188",
"0.63626385",
"0.63609546",
"0.6330283",
"0.6330283",
"0.6330283",
"0.6330283",
"0.6330170... | 0.63404816 | 16 |
Generates the characters from `c1` to `c2`, inclusive. | def KbDL(dg7v, iYf1):
for Z9rn in range(ord(dg7v), ord(iYf1) + 1):
yield chr(Z9rn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbDL(dg7v, iYf1):\n for Z9rn in Ni9Y(ord(dg7v), ord(iYf1) + 1):\n yield chr(Z9rn)",
"def KbDL(dg7v, iYf1):\n for Z9rn in Ni9Y(ord(dg7v), ord(iYf1) + 1):\n yield chr(Z9rn)",
"def KbDL(dg7v, iYf1):\n for Z9rn in Ni9Y(ord(dg7v), ord(iYf1) + 1):\n yield chr(Z9rn)",
"def KbDL(dg7... | [
"0.8356534",
"0.8356534",
"0.8356534",
"0.8356534",
"0.8331273",
"0.83031625",
"0.83031625",
"0.83031625",
"0.83031625",
"0.83031625",
"0.8204458",
"0.6699442",
"0.6647206",
"0.61913",
"0.5943554",
"0.59274966",
"0.59238946",
"0.5885765",
"0.5748631",
"0.5706302",
"0.56295216... | 0.83226156 | 5 |
Get all labels as an exhaustive list, i. e. with as many entries as there are frames. This label_list is also added as an attribute of the Video object. | def Sqm0(YKHO):
if not YKHO.label_list:
import label_import.timestamp as i8WE
SYUm = YKHO.labels[-1]
U_dL = SYUm.end
Eso7 = U_dL.get_frameidx(YKHO.fps)
for or8S in range(0, Eso7, 1):
QRrk = i8WE.Timestamp.from_frameidx_fps(or8S, YKHO.fps)
WNp8 = YKHO.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EKkb(YKHO):\n\n def ANg2():\n \"\"\"\n Turn sentences list into labels list\n \"\"\"\n for yAmx in YKHO.sentences:\n yield [ZfUD[1] for ZfUD in yAmx]\n if YKHO._label_list is None:\n YKHO._label_list = list(eNCK(*list(ANg2())))\n return YKHO._label... | [
"0.6735975",
"0.6734455",
"0.6727747",
"0.6650855",
"0.65172106",
"0.65172106",
"0.65119636",
"0.6492169",
"0.64284635",
"0.63478184",
"0.6345375",
"0.63268393",
"0.63251173",
"0.63226515",
"0.6314845",
"0.6309673",
"0.63084865",
"0.6300621",
"0.62657416",
"0.62173384",
"0.61... | 0.7559895 | 0 |
Internal method to create a logger instance to log program output. | def Uv7Z(bo34=None, ABDL=G9jH.INFO):
if bo34 is None:
bo34 = G9jH.getLogger('pastas')
bo34.setLevel(ABDL)
nkbv(bo34)
hoIb(bo34) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lmAE(YKHO):\n GrNw = tBu1(YKHO, 'logger')\n GrNw.build(stream=HwRy.stderr, set_=True).start(YKHO.address_book, YKHO.agent_db)",
"def MWLp(YKHO):\n bo34 = G9jH.getLogger(YKHO.name)\n if YKHO.config['DEBUG']:\n bo34.setLevel(G9jH.DEBUG)\n uaPq = G9jH.Formatter('[%(asctime)s] <%(module... | [
"0.76997787",
"0.76264596",
"0.75152326",
"0.74160737",
"0.7334325",
"0.73313445",
"0.730765",
"0.7168466",
"0.7166587",
"0.71111536",
"0.7100292",
"0.7091937",
"0.7090531",
"0.7090531",
"0.7070182",
"0.70609087",
"0.7024386",
"0.6963071",
"0.6957494",
"0.69551754",
"0.692838... | 0.0 | -1 |
Method to add a console handler to the logger of Pastas. | def hoIb(bo34=None, ABDL=G9jH.INFO, FMLJ='%(levelname)s: %(message)s'):
if bo34 is None:
bo34 = G9jH.getLogger('pastas')
iiwI(bo34)
Npgh = G9jH.StreamHandler()
Npgh.setLevel(ABDL)
uaPq = G9jH.Formatter(fmt=FMLJ)
Npgh.setFormatter(uaPq)
bo34.addHandler(Npgh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OT_l(YKHO) -> None:\n C5iz = G9jH.StreamHandler()\n C5iz.setLevel(YKHO.level)\n C5iz.setFormatter(YKHO.formatter)\n YKHO.logger.addHandler(C5iz)",
"def OT_l(YKHO):\n C5iz = G9jH.StreamHandler()\n C5iz.setLevel(YKHO.level)\n C5iz.setFormatter(YKHO.formatter)\n YKHO.logger.addHandler(C5... | [
"0.7916151",
"0.7883497",
"0.7501896",
"0.71955353",
"0.70902795",
"0.69945955",
"0.69913507",
"0.69104266",
"0.6836664",
"0.68139315",
"0.6797092",
"0.6774246",
"0.6732383",
"0.6591273",
"0.6583906",
"0.6561074",
"0.64579743",
"0.64579743",
"0.6457246",
"0.640452",
"0.635041... | 0.73328257 | 3 |
takes as input a Conv2d layer and returns the a Conv2d layer with `num_channels` input channels and all the previous weights copied into the new layer. | def B9j3(YKHO, r8hN, Qi3c=None, G7j6=0):
pE9J = Qi3c if Qi3c is not None else r8hN.in_channels + 1
oug5 = False if r8hN.bias is None else True
MVFv = U78l.Conv2d(in_channels=pE9J, out_channels=r8hN.out_channels, kernel_size=r8hN.kernel_size, stride=r8hN.stride, padding=r8hN.padding, bias=oug5)
MVFv.weig... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZ8A(i92A, gEmA, lzjZ, cH4_):\n XcU5, Fg_i = TqsC(gEmA, lzjZ, cH4_)\n XcU5 = ZylS.constant(XcU5)\n Fg_i = ZylS.constant(oyIN.reshape(Fg_i, Fg_i.size))\n return ZylS.nn.conv2d(i92A, filter=XcU5, strides=[1, 1, 1, 1], padding='SAME') + Fg_i",
"def p0_1(YKHO, DYuh, tYiq, Ot1W, _0fC=1, dvgN=0, oug5=T... | [
"0.7276899",
"0.7060853",
"0.6999614",
"0.69995",
"0.6998047",
"0.6998047",
"0.69863683",
"0.69695425",
"0.6907139",
"0.6907139",
"0.6907139",
"0.6893583",
"0.689015",
"0.6868823",
"0.68567544",
"0.6844511",
"0.683885",
"0.6815815",
"0.68078905",
"0.67724514",
"0.67546296",
... | 0.7175521 | 1 |
A decorator that returns a property. The method decorated will only be called the first time the property is computed. | def VzPU(FYKK):
@property
@zaGL(FYKK)
def iEBR(YKHO):
H5ew = '_memo_%s' % FYKK.__name__
if not hasattr(YKHO, H5ew):
setattr(YKHO, H5ew, FYKK(YKHO))
return getattr(YKHO, H5ew)
return iEBR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VzPU(gJdh):\n\n @zaGL(gJdh)\n def mrMx(YKHO):\n H5ew = '_cached_property_' + gJdh.__name__\n if not hasattr(YKHO, H5ew):\n setattr(YKHO, H5ew, gJdh(YKHO))\n return getattr(YKHO, H5ew)\n return property(mrMx)",
"def VzPU(gJdh):\n\n @zaGL(gJdh)\n def mrMx(YKHO):\n... | [
"0.78982216",
"0.78982216",
"0.77719444",
"0.77637345",
"0.7733911",
"0.7733881",
"0.7712647",
"0.7712647",
"0.7705034",
"0.7643633",
"0.75937665",
"0.75889724",
"0.7585654",
"0.7577425",
"0.7571217",
"0.7463716",
"0.7453513",
"0.7362198",
"0.73435426",
"0.73402774",
"0.73176... | 0.74477154 | 17 |
Check possible values in a 99 Sudoku matrix | def WUfT(KCHu, WKvO, LVAh):
Aofo = oyIN.array(range(1, 10))
Aofo = oyIN.setdiff1d(Aofo, KCHu[WKvO, :])
Aofo = oyIN.setdiff1d(Aofo, KCHu[:, LVAh])
qlpj = WKvO // 3 + 1
WW1y = LVAh // 3 + 1
dr1y = KCHu[(qlpj - 1) * 3:qlpj * 3, (WW1y - 1) * 3:WW1y * 3]
Aofo = oyIN.setdiff1d(Aofo, dr1y[dr1y > 0]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JpJO(tyNF):\n pass",
"def tZC9(YKHO, FWzL: list) -> bool:\n PaNq = list()\n if not len(FWzL) == 9:\n return False\n for YRbF in range(len(FWzL)):\n if not len(FWzL[YRbF]) == 9:\n return False\n for YRbF in range(len(FWzL)):\n for G1Hx in FWzL[YRbF]:\n ... | [
"0.7917927",
"0.7314069",
"0.72649145",
"0.7243385",
"0.72132075",
"0.71678287",
"0.71577674",
"0.7146978",
"0.71092105",
"0.7094274",
"0.70588756",
"0.6973957",
"0.6961888",
"0.69452477",
"0.69427097",
"0.69235337",
"0.6916185",
"0.68831134",
"0.6878708",
"0.6872338",
"0.685... | 0.0 | -1 |
Test that the session is invalid when it's missing. | def ZbTt(YKHO):
YKHO.mock_database.sessions.find_one.return_value = None
PsCT = BCYG.Route(BCYG.app(), '/', 'POST', YKHO.route)
YKHO.assertRaises(BCYG.HTTPError, PsCT.call) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_invalid_session(YKHO, LWmu):\n with trZe.raises(llBy) as XObx:\n await LWmu.sessions.get_authenticated('invalid_session', 'token')\n assert str(XObx) == 'Session not found'",
"async def test_no_session(YKHO, LWmu):\n with trZe.raises(llBy) as XObx:\n await LWmu.sessions.... | [
"0.8123922",
"0.757271",
"0.7376249",
"0.7255062",
"0.7248599",
"0.71872723",
"0.7172988",
"0.71214676",
"0.71115243",
"0.6989921",
"0.69524693",
"0.6941452",
"0.69294506",
"0.6921746",
"0.69127",
"0.68998194",
"0.6874119",
"0.68646014",
"0.6864127",
"0.6835035",
"0.6808205",... | 0.73346096 | 3 |
Test that session ids are not authenticated with nonpost routes. | def tuPr(YKHO):
YKHO.mock_database.sessions.find_one.return_value = None
PsCT = BCYG.Route(BCYG.app(), '/', 'GET', YKHO.route)
YKHO.assertEqual(YKHO.success, PsCT.call()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ntn_(YKHO):\n YKHO.mock_database.reports_overviews.find_one.return_value = dict(_id='id', editors=['jodoe'])\n YKHO.mock_database.sessions.find_one.return_value = dict(user='jadoe', email='jadoe@example.org', session_expiration_datetime=qcWV.max.replace(tzinfo=rIAI.utc))\n PsCT = BCYG.Route(BCYG.app()... | [
"0.76283395",
"0.7495798",
"0.7083645",
"0.70321995",
"0.69575185",
"0.68464255",
"0.681323",
"0.6802612",
"0.6746427",
"0.67420346",
"0.67332286",
"0.67332286",
"0.6718148",
"0.66989523",
"0.66807157",
"0.66546285",
"0.66194856",
"0.66139686",
"0.6590674",
"0.6585097",
"0.65... | 0.0 | -1 |
Compare between two deployment statuses so that we can tell which one is worst than others. If first_status > second_status then return the first status otherwise return the second_status | def i7Tx(YKHO, RTGk, bw7y):
class _DeploymentStatus(object):
def FIMM(YKHO, jGRS):
YKHO.status = jGRS
def jmxi(YKHO, Elif):
if not YKHO.status:
return False
elif YKHO.status and (not Elif.status):
return True
elif YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EBJq(YKHO):\n QCS3 = YKHO.sub_environments_status\n wQlN = YKHO.sub_services_status\n if YKHO.is_environment:\n QCS3 = YKHO.compare_between_statuses(YKHO.sub_environments_status, YKHO.deployment_status)\n else:\n wQlN = YKHO.compare_between_statuses(YKHO.sub_services_status, YKHO.depl... | [
"0.6539961",
"0.64759934",
"0.6323432",
"0.62823796",
"0.6144921",
"0.60393924",
"0.6026653",
"0.588664",
"0.5780691",
"0.5779588",
"0.5765354",
"0.5734643",
"0.56481785",
"0.56394947",
"0.56102693",
"0.5597425",
"0.5586299",
"0.55579764",
"0.55338204",
"0.55334806",
"0.55275... | 0.84906036 | 0 |
Status of this group, based on the status of its executions. | def jGRS(YKHO):
wspz = {tTpl.status for tTpl in YKHO.executions}
if all((KCHu == PVkw.PENDING for KCHu in wspz)):
return PVkw.PENDING
i18B = PVkw.WAITING_STATES + [PVkw.PENDING]
if all((KCHu in i18B for KCHu in wspz)):
return PVkw.QUEUED
if all((KCHu in PVkw.END_STATES for KCHu in ws... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n return YKHO._update_job()['executionStatus']['state']",
"def rP0o(YKHO):\n pnNa = FYrf.executions_groups_executions_table\n llWr = NCls.session.query(FYrf.Execution._storage_id, pnNa.c.execution_group_id, FYrf.ExecutionGroup.concurrency).select_from(FYrf.Execution).outerjoin(pnNa, FYrf... | [
"0.7324528",
"0.717861",
"0.6994181",
"0.6845591",
"0.67983913",
"0.67983913",
"0.6772036",
"0.6768735",
"0.67661285",
"0.673813",
"0.673813",
"0.673813",
"0.673813",
"0.673813",
"0.673813",
"0.673813",
"0.673813",
"0.673813",
"0.673813",
"0.673813",
"0.673813",
"0.673813",... | 0.6887979 | 3 |
Get a new EventIterator object. | async def __aiter__(YKHO):
return kvxq(YKHO._emitter, YKHO._event) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sjsj(YKHO, xDcj, **xAU6):\n return GtTs(YKHO.client, '/events', xDcj, xAU6).items()",
"def Vs4Q(YKHO):\n return iter(YKHO.events)",
"def R2mM(YKHO):\n return iter(YKHO.events)",
"def Vs4Q(YKHO) -> laHg.Iterator[laHg.Tuple[BeZJ, NcrG]]:\n return iter(YKHO._events.items())",
"def Vs4Q(YKHO):\... | [
"0.65604895",
"0.65401584",
"0.61645573",
"0.6058229",
"0.5973774",
"0.5859675",
"0.5835475",
"0.5801032",
"0.5775302",
"0.577346",
"0.5747346",
"0.57263994",
"0.5711285",
"0.5707397",
"0.5691487",
"0.56392413",
"0.5626732",
"0.56119096",
"0.5604783",
"0.5604783",
"0.5604783"... | 0.7766269 | 0 |
Create a time stamp | def ct8j(YKHO, AIu6):
AIu6.dbtime = ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime(AIu6.created)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ffFh(ppPa: datetime):\n return ppPa.strftime('%Y%m%d%H%M%S')",
"def _LRs():\n wzkt = qcWV.now()\n E3oo = qcWV.timestamp(wzkt)\n return E3oo",
"def QeR8():\n wzkt = qcWV.datetime.now()\n E3oo = wzkt.strftime('%Y-%m-%d %H:%M:%S')\n return E3oo",
"def _LRs():\n return int(ITS7.time()... | [
"0.8156867",
"0.79816806",
"0.79529136",
"0.79435176",
"0.79318064",
"0.7605402",
"0.7565778",
"0.7565213",
"0.75474757",
"0.75474757",
"0.7485352",
"0.7477434",
"0.74663764",
"0.7415753",
"0.7404829",
"0.73977715",
"0.73977715",
"0.7382377",
"0.73796564",
"0.73604184",
"0.73... | 0.0 | -1 |
Makes sure that arg is a list. | def lovD(d7pR, u54L=None):
if isinstance(d7pR, str):
return [d7pR]
try:
(tTpl for tTpl in d7pR)
except TypeError:
d7pR = [d7pR]
d7pR = list(d7pR)
if u54L is not None:
if len(d7pR) == 1:
d7pR *= u54L
elif len(d7pR) == u54L:
pass
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eK7y(d7pR):\n if j5rG(d7pR):\n return d7pR\n return [d7pR]",
"def VvWv(YKHO, d7pR):\n if type(d7pR) in [list, tuple, oyIN.array, oyIN.ndarray]:\n return list(d7pR)\n else:\n return [d7pR]",
"def Lm1b(input):\n return type(input) == jbQU",
"def Lm1b(a1PO, qIxc=None):\n ... | [
"0.84234303",
"0.8082516",
"0.7624048",
"0.76078236",
"0.75780773",
"0.75597215",
"0.75477445",
"0.7493449",
"0.7488228",
"0.74201125",
"0.7389612",
"0.736488",
"0.7359121",
"0.7309328",
"0.7300163",
"0.7284558",
"0.72521156",
"0.72099227",
"0.7179242",
"0.7179242",
"0.711239... | 0.69335383 | 37 |
Returns the polarity of a sentence after considering any words that heighten the polarity of the text | def xwe3(OafS, xvaW, lFQo):
TWpx = 0.0
with open('incremental_words.txt', 'Ur') as E3fA:
lUDf = E3fA.read()
with open('decremental_words.txt', 'Ur') as _nqu:
hIW9 = _nqu.read()
lUDf = lUDf.split('\n')
hIW9 = hIW9.split('\n')
for YRbF in range(len(OafS)):
if OafS[YRbF] in ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aDF_(l5Ny):\n TWpx = 0\n u54L = len(l5Ny)\n with open(sJf4, 'r') as Powu, open(sTei, 'r') as jl1U, open(Y36d, 'r') as CX33, open(UlmG, 'r') as vsK8, open(MQv3, 'r') as tbib:\n wWZw = AHvH(Powu)\n VpN5 = AHvH(jl1U)\n aTcO = AHvH(CX33)\n MCiY = AHvH(vsK8)\n sMhV = AHvH... | [
"0.7837577",
"0.76840246",
"0.7544057",
"0.7516764",
"0.74908733",
"0.74908733",
"0.7489943",
"0.74270695",
"0.73342216",
"0.73342216",
"0.73147553",
"0.72944987",
"0.7273537",
"0.7271593",
"0.71342266",
"0.71038324",
"0.70768875",
"0.70620257",
"0.6931501",
"0.68711704",
"0.... | 0.61202395 | 46 |
Returns the polarity of a sentence along with the number of positive and negative words | def xMSE(yAmx):
OafS = yAmx.split()
OafS = g8pp(OafS)
fUPT, TmbI, xvaW = _Ta6(OafS)
zw3K, OYBn, lFQo = q1sM(OafS)
xktD = xwe3(OafS, xvaW, lFQo)
TWpx = fUPT + zw3K + xktD
return (TWpx, TmbI, OYBn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f28_(l5Ny):\n p1kx = tX5x.polarity_scores(l5Ny)\n return 1 if p1kx['pos'] > p1kx['neg'] else 0",
"def f28_(l5Ny):\n p1kx = tX5x.polarity_scores(l5Ny)\n return 1 if p1kx['pos'] > p1kx['neg'] else 0",
"def aDF_(l5Ny):\n TWpx = 0\n u54L = len(l5Ny)\n with open(sJf4, 'r') as Powu, open(sTe... | [
"0.78004205",
"0.78004205",
"0.77510685",
"0.758165",
"0.7577049",
"0.7536749",
"0.7513064",
"0.75116926",
"0.7487919",
"0.74183327",
"0.74183327",
"0.73909706",
"0.73694915",
"0.73610365",
"0.7296553",
"0.7296491",
"0.72729397",
"0.7263857",
"0.7240365",
"0.70633274",
"0.704... | 0.83629054 | 0 |
Stop down everything that was started. | def tBIc(YKHO):
YKHO.hass.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.shutdown = True",
"def hqgk(YKHO):\n YKHO.stop()",
"def hqgk(YKHO):\n YKHO.stop()",
"def JCyR(YKHO):\n YKHO._shutdown = True",
"def JCyR(YKHO):\n pass",
"def JCyR(YKHO):\n YKHO.shutdown()\n YKHO.wait_for_shutdown()",
"def kcUV(YKHO):\n YKHO.dut.kill_all()"... | [
"0.78972226",
"0.78788877",
"0.78788877",
"0.7784838",
"0.77249634",
"0.76851976",
"0.7647878",
"0.7634871",
"0.7537436",
"0.7513521",
"0.75017506",
"0.7496309",
"0.7496309",
"0.74719715",
"0.74615186",
"0.74530995",
"0.74204314",
"0.74204314",
"0.74204314",
"0.74182713",
"0.... | 0.0 | -1 |
Stop down everything that was started. | def tBIc(YKHO):
YKHO.hass.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.shutdown = True",
"def hqgk(YKHO):\n YKHO.stop()",
"def hqgk(YKHO):\n YKHO.stop()",
"def JCyR(YKHO):\n YKHO._shutdown = True",
"def JCyR(YKHO):\n pass",
"def JCyR(YKHO):\n YKHO.shutdown()\n YKHO.wait_for_shutdown()",
"def kcUV(YKHO):\n YKHO.dut.kill_all()"... | [
"0.78972226",
"0.78788877",
"0.78788877",
"0.7784838",
"0.77249634",
"0.76851976",
"0.7647878",
"0.7634871",
"0.7537436",
"0.7513521",
"0.75017506",
"0.7496309",
"0.7496309",
"0.74719715",
"0.74615186",
"0.74530995",
"0.74204314",
"0.74204314",
"0.74204314",
"0.74182713",
"0.... | 0.0 | -1 |
Stop down everything that was started. | def tBIc(YKHO):
YKHO.hass.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.shutdown = True",
"def hqgk(YKHO):\n YKHO.stop()",
"def hqgk(YKHO):\n YKHO.stop()",
"def JCyR(YKHO):\n YKHO._shutdown = True",
"def JCyR(YKHO):\n pass",
"def JCyR(YKHO):\n YKHO.shutdown()\n YKHO.wait_for_shutdown()",
"def kcUV(YKHO):\n YKHO.dut.kill_all()"... | [
"0.78965145",
"0.7877939",
"0.7877939",
"0.778414",
"0.77244043",
"0.7684758",
"0.76461685",
"0.76346314",
"0.7536318",
"0.75130606",
"0.75008345",
"0.749591",
"0.749591",
"0.74701905",
"0.7460746",
"0.74527156",
"0.7420151",
"0.7420151",
"0.7420151",
"0.74175054",
"0.7392789... | 0.0 | -1 |
Test the setting of the target temperature. | def WKAf(YKHO):
BJsk.set_temperature(YKHO.hass, 30)
YKHO.hass.block_till_done()
QTBn = YKHO.hass.states.get(NAV1)
assert 30.0 == QTBn.attributes.get('temperature')
BJsk.set_temperature(YKHO.hass, None)
YKHO.hass.block_till_done()
QTBn = YKHO.hass.states.get(NAV1)
assert 30.0 == QTBn.attr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nBkl(YKHO):\n YKHO._setup_switch(False)\n YKHO._setup_sensor(25)\n YKHO.hass.block_till_done()\n BJsk.set_temperature(YKHO.hass, 30)\n YKHO.hass.block_till_done()\n assert 1 == len(YKHO.calls)\n pOv4 = YKHO.calls[0]\n assert UvVr == pOv4.domain\n assert ibmf == pOv4.service\n asse... | [
"0.777121",
"0.7695783",
"0.76539755",
"0.7549763",
"0.75382584",
"0.7389297",
"0.7348888",
"0.7343281",
"0.73378754",
"0.7315321",
"0.7283702",
"0.72492623",
"0.7229321",
"0.72256553",
"0.72226006",
"0.7195143",
"0.71602273",
"0.7150251",
"0.71403503",
"0.7137063",
"0.713588... | 0.82425016 | 0 |
Test sensor that have None as state. | def xWF9(YKHO):
QTBn = YKHO.hass.states.get(NAV1)
ycBG = QTBn.attributes.get('current_temperature')
YKHO._setup_sensor(None)
YKHO.hass.block_till_done()
QTBn = YKHO.hass.states.get(NAV1)
assert ycBG == QTBn.attributes.get('current_temperature') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def test_state_with_none(ajET: HomeAssistant) -> None:\n ajET.states.async_set(u1Wc, iKVK, {})\n _dfQ = kX7b(ajET, Sugg, ibmf)\n nhQb = kX7b(ajET, Sugg, GrHz)\n tzB6 = kX7b(ajET, Sugg, Y2EH)\n uNaL = kX7b(ajET, Sugg, P2Ie)\n await YSr8(ajET, [wHLO(u1Wc, None)])\n await ajET.async_block_t... | [
"0.7238199",
"0.71549904",
"0.7105659",
"0.68765146",
"0.68141794",
"0.68108064",
"0.67859846",
"0.66543216",
"0.6645254",
"0.66199327",
"0.65933037",
"0.6579126",
"0.65776694",
"0.65702266",
"0.65522736",
"0.6546527",
"0.6534158",
"0.65082896",
"0.65010697",
"0.64978606",
"0... | 0.66973567 | 7 |
Test if temperature change turn heater off outside hot tolerance. | def R9sZ(YKHO):
YKHO._setup_switch(True)
BJsk.set_temperature(YKHO.hass, 30)
YKHO.hass.block_till_done()
YKHO._setup_sensor(35)
YKHO.hass.block_till_done()
assert 1 == len(YKHO.calls)
pOv4 = YKHO.calls[0]
assert UvVr == pOv4.domain
assert GrHz == pOv4.service
assert wE_t == pOv4.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cqqw(YKHO):\n YKHO._setup_switch(True)\n BJsk.set_temperature(YKHO.hass, 30)\n YKHO.hass.block_till_done()\n YKHO._setup_sensor(33)\n YKHO.hass.block_till_done()\n assert 0 == len(YKHO.calls)",
"def wg7Q(YKHO):\n YKHO._setup_switch(False)\n BJsk.set_temperature(YKHO.hass, 30)\n YKH... | [
"0.81686145",
"0.77472866",
"0.7712654",
"0.7708221",
"0.7537795",
"0.7498394",
"0.7470133",
"0.7357776",
"0.7307958",
"0.72313005",
"0.7210924",
"0.7143844",
"0.7110901",
"0.68908185",
"0.6834171",
"0.68147445",
"0.68046254",
"0.67688143",
"0.67500937",
"0.6702813",
"0.66212... | 0.8064865 | 1 |
Stop down everything that was started. | def tBIc(YKHO):
YKHO.hass.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.shutdown = True",
"def hqgk(YKHO):\n YKHO.stop()",
"def hqgk(YKHO):\n YKHO.stop()",
"def JCyR(YKHO):\n YKHO._shutdown = True",
"def JCyR(YKHO):\n pass",
"def JCyR(YKHO):\n YKHO.shutdown()\n YKHO.wait_for_shutdown()",
"def kcUV(YKHO):\n YKHO.dut.kill_all()"... | [
"0.78965145",
"0.7877939",
"0.7877939",
"0.778414",
"0.77244043",
"0.7684758",
"0.76461685",
"0.76346314",
"0.7536318",
"0.75130606",
"0.75008345",
"0.749591",
"0.749591",
"0.74701905",
"0.7460746",
"0.74527156",
"0.7420151",
"0.7420151",
"0.7420151",
"0.74175054",
"0.7392789... | 0.0 | -1 |
Stop down everything that was started. | def tBIc(YKHO):
YKHO.hass.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.shutdown = True",
"def hqgk(YKHO):\n YKHO.stop()",
"def hqgk(YKHO):\n YKHO.stop()",
"def JCyR(YKHO):\n YKHO._shutdown = True",
"def JCyR(YKHO):\n pass",
"def JCyR(YKHO):\n YKHO.shutdown()\n YKHO.wait_for_shutdown()",
"def kcUV(YKHO):\n YKHO.dut.kill_all()"... | [
"0.78965145",
"0.7877939",
"0.7877939",
"0.778414",
"0.77244043",
"0.7684758",
"0.76461685",
"0.76346314",
"0.7536318",
"0.75130606",
"0.75008345",
"0.749591",
"0.749591",
"0.74701905",
"0.7460746",
"0.74527156",
"0.7420151",
"0.7420151",
"0.7420151",
"0.74175054",
"0.7392789... | 0.0 | -1 |
Stop down everything that was started. | def tBIc(YKHO):
YKHO.hass.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.shutdown = True",
"def hqgk(YKHO):\n YKHO.stop()",
"def hqgk(YKHO):\n YKHO.stop()",
"def JCyR(YKHO):\n YKHO._shutdown = True",
"def JCyR(YKHO):\n pass",
"def JCyR(YKHO):\n YKHO.shutdown()\n YKHO.wait_for_shutdown()",
"def kcUV(YKHO):\n YKHO.dut.kill_all()"... | [
"0.78965145",
"0.7877939",
"0.7877939",
"0.778414",
"0.77244043",
"0.7684758",
"0.76461685",
"0.76346314",
"0.7536318",
"0.75130606",
"0.75008345",
"0.749591",
"0.749591",
"0.74701905",
"0.7460746",
"0.74527156",
"0.7420151",
"0.7420151",
"0.7420151",
"0.74175054",
"0.7392789... | 0.0 | -1 |
Stop down everything that was started. | def tBIc(YKHO):
YKHO.hass.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.shutdown = True",
"def hqgk(YKHO):\n YKHO.stop()",
"def hqgk(YKHO):\n YKHO.stop()",
"def JCyR(YKHO):\n YKHO._shutdown = True",
"def JCyR(YKHO):\n pass",
"def JCyR(YKHO):\n YKHO.shutdown()\n YKHO.wait_for_shutdown()",
"def kcUV(YKHO):\n YKHO.dut.kill_all()"... | [
"0.78965145",
"0.7877939",
"0.7877939",
"0.778414",
"0.77244043",
"0.7684758",
"0.76461685",
"0.76346314",
"0.7536318",
"0.75130606",
"0.75008345",
"0.749591",
"0.749591",
"0.74701905",
"0.7460746",
"0.74527156",
"0.7420151",
"0.7420151",
"0.7420151",
"0.74175054",
"0.7392789... | 0.0 | -1 |
Stop down everything that was started. | def tBIc(YKHO):
YKHO.hass.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.shutdown = True",
"def hqgk(YKHO):\n YKHO.stop()",
"def hqgk(YKHO):\n YKHO.stop()",
"def JCyR(YKHO):\n YKHO._shutdown = True",
"def JCyR(YKHO):\n pass",
"def JCyR(YKHO):\n YKHO.shutdown()\n YKHO.wait_for_shutdown()",
"def kcUV(YKHO):\n YKHO.dut.kill_all()"... | [
"0.78972226",
"0.78788877",
"0.78788877",
"0.7784838",
"0.77249634",
"0.76851976",
"0.7647878",
"0.7634871",
"0.7537436",
"0.7513521",
"0.75017506",
"0.7496309",
"0.7496309",
"0.74719715",
"0.74615186",
"0.74530995",
"0.74204314",
"0.74204314",
"0.74204314",
"0.74182713",
"0.... | 0.0 | -1 |
Stop down everything that was started. | def tBIc(YKHO):
YKHO.hass.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.shutdown = True",
"def hqgk(YKHO):\n YKHO.stop()",
"def hqgk(YKHO):\n YKHO.stop()",
"def JCyR(YKHO):\n YKHO._shutdown = True",
"def JCyR(YKHO):\n pass",
"def JCyR(YKHO):\n YKHO.shutdown()\n YKHO.wait_for_shutdown()",
"def kcUV(YKHO):\n YKHO.dut.kill_all()"... | [
"0.78965145",
"0.7877939",
"0.7877939",
"0.778414",
"0.77244043",
"0.7684758",
"0.76461685",
"0.76346314",
"0.7536318",
"0.75130606",
"0.75008345",
"0.749591",
"0.749591",
"0.74701905",
"0.7460746",
"0.74527156",
"0.7420151",
"0.7420151",
"0.7420151",
"0.74175054",
"0.7392789... | 0.0 | -1 |
Stop down everything that was started. | def tBIc(YKHO):
YKHO.hass.stop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JCyR(YKHO):\n YKHO.shutdown = True",
"def hqgk(YKHO):\n YKHO.stop()",
"def hqgk(YKHO):\n YKHO.stop()",
"def JCyR(YKHO):\n YKHO._shutdown = True",
"def JCyR(YKHO):\n pass",
"def JCyR(YKHO):\n YKHO.shutdown()\n YKHO.wait_for_shutdown()",
"def kcUV(YKHO):\n YKHO.dut.kill_all()"... | [
"0.78972226",
"0.78788877",
"0.78788877",
"0.7784838",
"0.77249634",
"0.76851976",
"0.7647878",
"0.7634871",
"0.7537436",
"0.7513521",
"0.75017506",
"0.7496309",
"0.7496309",
"0.74719715",
"0.74615186",
"0.74530995",
"0.74204314",
"0.74204314",
"0.74204314",
"0.74182713",
"0.... | 0.0 | -1 |
Requests seats using the REST API. | def jr6w(YKHO, _c1T, FGW3=2, mWFP='', D3lj='', bWtk='', aM_I=''):
nPrm = YKHO._create_data(_c1T, FGW3, mWFP, D3lj, bWtk, aM_I)
Ylbp = G4JS.post(YKHO._base_url + 'bookings', data=qQXR.dumps(nPrm))
if Ylbp.status_code == 201:
return Ylbp.json()['ref_num']
else:
raise EnvironmentError('Serv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H8aD(YKHO):\n nPrm = YKHO.message(qTHV.GET_SEATS, '')\n return qQXR.loads(nPrm, object_hook=t0cc)",
"def s3oT():\n NArs = {'client_id': ZklC}\n Mkmy = G4JS.get(url=yjJT)\n nPrm = qQXR.loads(Mkmy.text)\n return nPrm",
"def NMoC(YKHO, QePW, dV8m, bflT):\n pass",
"def yWbd():\n Go_H ... | [
"0.7040666",
"0.668935",
"0.6562782",
"0.5815553",
"0.5585807",
"0.5526605",
"0.5509657",
"0.55073166",
"0.54962397",
"0.54842466",
"0.5462024",
"0.54395956",
"0.54309326",
"0.5419564",
"0.53998494",
"0.5318669",
"0.5314865",
"0.5313054",
"0.5301797",
"0.5288943",
"0.52882785... | 0.5605301 | 4 |
Masks everything but the k top entries as infinity (1e10). Used to mask logits such that e^infinity > 0 won't contribute to the sum of the denominator. | def UvRA(KeL5, G1Hx):
if G1Hx == 0:
return KeL5
else:
hkxX = ht2j.topk(KeL5, G1Hx)[0]
nrWb = hkxX[:, -1].view(-1, 1).expand_as(KeL5)
return ht2j.where(KeL5 < nrWb, ht2j.ones_like(KeL5) * -10000000000.0, KeL5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UyE1(Emd4, KeL5, H42b):\n H42b = min(H42b, KeL5.size(-1))\n if H42b > 0:\n r2ey = KeL5 < ht2j.topk(KeL5, H42b)[0][..., -1, None]\n KeL5[r2ey] = float('-inf')\n return KeL5",
"def UvRA(KeL5, G1Hx):\n if G1Hx == 0:\n return KeL5\n hkxX, bGrB = ht2j.topk(KeL5, G1Hx)\n IMb4... | [
"0.7008224",
"0.6537357",
"0.6426662",
"0.6426662",
"0.60151094",
"0.5951639",
"0.58221555",
"0.56792444",
"0.5645558",
"0.56368893",
"0.5600408",
"0.55750394",
"0.55750394",
"0.55750394",
"0.557151",
"0.55616075",
"0.55411816",
"0.55411816",
"0.5526736",
"0.5488086",
"0.5487... | 0.6421938 | 4 |
Sets the city of this MeetingSettingsGlobalDialInNumbers. | def j5sA(YKHO, j5sA):
YKHO._city = j5sA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA",
"def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA",
"def Eg4e(YKHO, nPrm):\n YKHO.city = nPrm",
"def Eg4e(YKHO, BWXx):\n YKHO.city = BWXx\n G9jH.debug(\"User's city received\")",
"def MFwm(YKHO, j5sA: str):\n YKHO.__city = j5sA\n return YK... | [
"0.70179975",
"0.70179975",
"0.6984872",
"0.6946446",
"0.6907361",
"0.68130046",
"0.65316343",
"0.6415728",
"0.64076865",
"0.62938625",
"0.62938625",
"0.62900656",
"0.6249645",
"0.6249645",
"0.6249645",
"0.6249645",
"0.6249645",
"0.6249645",
"0.6249645",
"0.6249645",
"0.62496... | 0.6899063 | 9 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
this property tells if a user is premium or free. | def VWoX(YKHO):
from membership.models import UserMembership, Subscription, Membership
from tracker.models import Product
try:
Xw1j = UserMembership.objects.get(user=YKHO)
mouR = Subscription.objects.filter(user_membership=Xw1j)
if mouR.count() > 0:
if qcWV.now().date() >... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TXLv(YKHO):\n return YKHO._premium_member",
"def TXLv(YKHO):\n return YKHO._premium_status",
"def q7Lw(YKHO, uJjO: bson.ObjectId):\n return YKHO.__user_fetch({'_id': uJjO, 'plan': 'premium'}) is not None",
"def Zv0k(CBIr):\n return CBIr.get_profile().role == BFpK.ROLE_CHOICES[1][0]",
"def r... | [
"0.7631384",
"0.76036084",
"0.74072635",
"0.6634105",
"0.6625138",
"0.6546371",
"0.65123326",
"0.6488146",
"0.6455894",
"0.6447952",
"0.6404017",
"0.6403303",
"0.63643914",
"0.63575983",
"0.62705505",
"0.62275326",
"0.6182205",
"0.605565",
"0.6030441",
"0.60064757",
"0.597395... | 0.78681004 | 0 |
Returns the name of this layer. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lzjZ(YKHO):\n return YKHO.__class__.name__",
"def KdrZ(YKHO):\n return YKHO.layer",
"def pWdP(YKHO):\n Ylbp = G4JS.get(YKHO._service_layer_url + '?f=json', verify=YKHO._verfify_ssl)\n return Ylbp.json()['name']",
"def YHFb(YKHO) -> str:\n return YKHO._layer_name_arn",
"def s23s(YKHO):\n ... | [
"0.8881203",
"0.87964046",
"0.8238442",
"0.8137859",
"0.7869667",
"0.7722725",
"0.7722725",
"0.7722725",
"0.7722725",
"0.7722725",
"0.7722725",
"0.77209544",
"0.77209544",
"0.77209544",
"0.77209544",
"0.77209544",
"0.77209544",
"0.77209544",
"0.77209544",
"0.77209544",
"0.772... | 0.0 | -1 |
Returns the parent layer for this layer instance. | def _AKB(YKHO):
return YKHO._parent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO.parent",
"def PAwq(YKHO):\n return YKHO.__parent",
"def KViK(YKHO):\n return YKHO.parent... | [
"0.8030403",
"0.8030403",
"0.8030403",
"0.8030403",
"0.8008054",
"0.79914623",
"0.7971855",
"0.7971855",
"0.7955824",
"0.7948956",
"0.78964186",
"0.78578156",
"0.78569293",
"0.7831707",
"0.7829064",
"0.7821094",
"0.77978003",
"0.7788156",
"0.7782485",
"0.7782485",
"0.7782485"... | 0.781296 | 16 |
Returns the scene that this layer is associated with. | def F6jf(YKHO):
return YKHO._scene | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wTJK(YKHO):\n return YKHO.__project.get_scene()",
"def Tljn(YKHO):\n return YKHO.children.current_scene",
"def ps_a():\n return F6jf",
"def C1dM(YKHO):\n tTee = YKHO.getCurrentView()\n F6jf = tTee.scene()\n return F6jf",
"def svZO(YKHO):\n return YKHO",
"def x7Be(YKHO):\n retu... | [
"0.84554416",
"0.827699",
"0.82229173",
"0.80695635",
"0.7958178",
"0.78770274",
"0.7860329",
"0.7729575",
"0.7698771",
"0.75828964",
"0.7508151",
"0.74481106",
"0.74362135",
"0.74362135",
"0.73761296",
"0.72252345",
"0.72199684",
"0.71501446",
"0.71501446",
"0.70370483",
"0.... | 0.8664466 | 0 |
Merge one dictionary into a second dictionary. | def HtD3(b7IY, qw9H):
if b7IY and qw9H:
for H5ew in b7IY:
qw9H[H5ew] = b7IY[H5ew] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yQxF(WbPA, S69B):\n lXgg = WbPA.copy()\n lXgg.update(S69B)\n return lXgg",
"def IYhE(jzdc, Fg_i):\n Aofo = jzdc.copy()\n Aofo.update(Fg_i)\n return Aofo",
"def roQF(WbPA, S69B):\n epBp = WbPA.copy()\n epBp.update(S69B)\n return epBp",
"def yQxF(WKvO, LVAh):\n epBp = WKvO.cop... | [
"0.8666114",
"0.8630521",
"0.8576525",
"0.85402656",
"0.8508805",
"0.8453469",
"0.84505194",
"0.8441829",
"0.84224415",
"0.84224415",
"0.84224415",
"0.84224415",
"0.84224415",
"0.84224415",
"0.84224415",
"0.84224415",
"0.84224415",
"0.84224415",
"0.84224415",
"0.84224415",
"0... | 0.8029649 | 42 |
Takes input string e.g. "key=value" and converts into a Python dictionary. | def r3du(gHAU):
st9m = gHAU.split('=')
n527 = 0
LegL = 1
if len(st9m) == 1:
Aofo = {st9m[n527]: None}
else:
Aofo = {st9m[n527]: st9m[LegL]}
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s7Lz(s_ww):\n R8cc = {}\n laPh = s_ww.split(',')\n for bTKY in laPh:\n H5ew = bTKY.split(':')[0]\n BWXx = bTKY.split(':')[1].split(';')[0]\n cM24 = bTKY.split(';')[1]\n if cM24 == 'str':\n R8cc[H5ew] = BWXx\n elif cM24 == 'int':\n R8cc[H5ew] = i... | [
"0.79278886",
"0.76264787",
"0.76160705",
"0.75250816",
"0.7523661",
"0.75233865",
"0.72718084",
"0.7229563",
"0.7210954",
"0.7032139",
"0.6965703",
"0.69249034",
"0.6914497",
"0.6878717",
"0.6837121",
"0.6767286",
"0.6747922",
"0.67178255",
"0.6697496",
"0.6676001",
"0.66727... | 0.65612453 | 27 |
Saves a Python dictionary to a JSON file. | def DGXT(jnrs):
with open('result.json', 'w') as ytgA:
return qQXR.dump(jnrs, ytgA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U1ai(fGC9, FYKK):\n with open(FYKK, 'w') as eHNT:\n eHNT.write(qQXR.dumps(fGC9))",
"def ghRP(NWa8, tGFt):\n qQXR.dump(NWa8, open(tGFt, 'w'))",
"def U1ai(nPrm: dict, pmON: str):\n with open(pmON, 'w') as eHNT:\n qQXR.dump(nPrm, eHNT)",
"def PF_N(nPrm: Dict, pmON: str):\n with ope... | [
"0.8805109",
"0.849061",
"0.84209913",
"0.82411045",
"0.8230104",
"0.82229364",
"0.8196998",
"0.81192935",
"0.81095994",
"0.80901986",
"0.80901986",
"0.80808914",
"0.8067984",
"0.8043974",
"0.80291814",
"0.8022864",
"0.8022864",
"0.8022864",
"0.8010826",
"0.7967811",
"0.79660... | 0.0 | -1 |
Fixture for a client to interact with GifSync API's Flask app. | def Ss8o(P4t4: Flask) -> a1PO.Generator[QRbk, None, None]:
with P4t4.test_client() as x0hE:
yield x0hE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0hE(P4t4: Flask):\n return P4t4.test_client()",
"def x0hE():\n return P4t4.test_client()",
"def x0hE() -> QRbk:\n P4t4.config['TESTING'] = True\n return P4t4.test_client()",
"def udfG() -> QRbk:\n return D4WS.test_client()",
"def x0hE(P4t4: Flask) -> QRbk:\n return P4t4.test_client()... | [
"0.73190546",
"0.7294171",
"0.7226015",
"0.722224",
"0.72093314",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70387655",
"0.70298034",
"0.7003024",
"... | 0.7124809 | 5 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, WmMi):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Return normal of intersection point | def BdOK(YKHO, AU8u):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iSV7(YKHO):\n hQHm = YKHO.points[0].vector3D\n jlSq = YKHO.points[1].vector3D\n bUZ8 = YKHO.points[2].vector3D\n pO9Q = jlSq - hQHm\n yzPe = bUZ8 - hQHm\n q0Kk = oyIN.cross(pO9Q, yzPe)\n if q0Kk[-1] < 0:\n q0Kk = oyIN.cross(yzPe, pO9Q)\n return q0Kk / 2",
"def mhAC(YKHO):\n ... | [
"0.78886855",
"0.7643942",
"0.7519874",
"0.7460167",
"0.7402803",
"0.73587364",
"0.73384726",
"0.72203577",
"0.71810865",
"0.71615785",
"0.7143571",
"0.7104715",
"0.70838624",
"0.70766014",
"0.7033069",
"0.6995282",
"0.69876915",
"0.6973458",
"0.696872",
"0.6938941",
"0.69352... | 0.6386123 | 56 |
Returns the name of the metered element (considering the active Energy Meter). | def WaXs(YKHO):
Aofo = gk2W.c_char_p(YKHO.dss_obj.MetersS(gk2W.c_int32(2), gk2W.c_int32(0)))
return Aofo.value.decode('ascii') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO.measure[YKHO]",
"def Yovx(YKHO):\n Aofo = gk2W.c_char_p(YKHO.dss_obj.MetersS(gk2W.c_int32(0), gk2W.c_int32(0)))\n return Aofo.value.decode('ascii')",
"def Qcg0(YKHO):\n return YKHO._unit_of_measure_name",
"def mWFP(YKHO):\n return YKHO.element.Name",
"def W0tD(Y... | [
"0.6970462",
"0.6731625",
"0.6614763",
"0.65380454",
"0.6529291",
"0.63962287",
"0.6395623",
"0.63431114",
"0.6316841",
"0.6306354",
"0.62891406",
"0.62891406",
"0.62891406",
"0.62891406",
"0.62891406",
"0.62891406",
"0.62891406",
"0.62891406",
"0.62891406",
"0.62891406",
"0.... | 0.68966943 | 1 |
Given a gameboard and thus the list of boxes in the gameboard, gameBoard.box, finds the weights of each box in the gameboard. | def Q_wv(w8Mp):
if z_Bp:
yKcO = ITS7.time()
_mSQ = []
I6y3 = w8Mp.hor_splits + w8Mp.ver_splits
Q1oM = w8Mp.hor_splits - w8Mp.ver_splits
if w8Mp.splitAction == k9Ct:
qC6E = w8Mp.horClusters
else:
qC6E = w8Mp.verClusters
cNjg, HKqs = HVg7(w8Mp)
if XCAt:
prin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FWlN(G7BI):\n l6fI = 0.0\n for ZfUD in G7BI:\n l6fI += ZfUD[1]\n mbbD = []\n for ZfUD in G7BI:\n ug3y = ZfUD[1]\n FlUN = ZfUD[0]\n ug3y = ug3y / l6fI\n mbbD.append((FlUN, ug3y))\n return mbbD",
"def dM7G(P6bq, Ty9i, J_w3=100):\n J4yr = oyIN.arange(cjDG.u.m... | [
"0.6636786",
"0.6500347",
"0.612942",
"0.6105671",
"0.6087728",
"0.6079408",
"0.60620004",
"0.605993",
"0.58651376",
"0.58300805",
"0.5801739",
"0.58009094",
"0.5777869",
"0.57711226",
"0.571657",
"0.57079524",
"0.5681114",
"0.5670557",
"0.5660084",
"0.56597507",
"0.56346",
... | 0.72492695 | 0 |
Returns list of lines. | def O_nQ(Ux0P):
if not Hy7s.path.isfile(Ux0P):
raise Exception('%s is not a file' % Ux0P)
with open(Ux0P, 'r') as DfdU:
return DfdU.read().splitlines() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RtME(YKHO) -> x1iM[str]:\n return YKHO.lines[:]",
"def RtME(YKHO) -> list[str]:\n return YKHO._lines",
"def Nqlg(YKHO):\n Nqlg = []\n for Q7me in YKHO.parts:\n Nqlg.extend(Q7me.split('\\n'))\n return Nqlg",
"def Nqlg(YKHO):\n Nqlg = []\n for Q7me in YKHO.parts:\n Nqlg.e... | [
"0.8531852",
"0.84208006",
"0.8251524",
"0.8251524",
"0.8243985",
"0.81883484",
"0.8119838",
"0.80629754",
"0.8003006",
"0.7980181",
"0.7909575",
"0.78905606",
"0.7886531",
"0.78418523",
"0.782986",
"0.78073734",
"0.7701813",
"0.7687625",
"0.7674893",
"0.76554114",
"0.7647528... | 0.0 | -1 |
Returns USB PHY speed. | def RLjh(YKHO):
BWXx = YKHO.read_reg(YKHO.REG_USB_SPEED)[0]
if BWXx == YKHO.USB_SPEED_AUTO:
return 'auto'
elif BWXx == YKHO.USB_SPEED_LS:
return 'LS'
elif BWXx == YKHO.USB_SPEED_FS:
return 'FS'
elif BWXx == YKHO.USB_SPEED_HS:
return 'HS'
else:
raise ValueE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _1xG(YKHO):\n return YKHO.__port_speed",
"def _1xG(YKHO):\n return YKHO.__port_speed",
"def Az_2(YKHO):\n YKHO.send('?5')\n return YKHO.ser.readline()",
"def iBLD(YKHO) -> str:\n return ExaA[YKHO._device['fan_speed']]",
"def iBLD(YKHO) -> str:\n return ExaA[YKHO._device.status.fan_spe... | [
"0.7876915",
"0.78359956",
"0.77091867",
"0.7326525",
"0.73247504",
"0.7273821",
"0.72227526",
"0.72227526",
"0.7206062",
"0.7153043",
"0.71513665",
"0.7149778",
"0.71302164",
"0.7082918",
"0.7082918",
"0.705904",
"0.7035466",
"0.7002088",
"0.69621414",
"0.6955526",
"0.694223... | 0.67136306 | 46 |
Returns True if the capture FIFO has more entries than the empty threshold (128). | def gGxT(YKHO):
N206 = YKHO.read_reg(YKHO.REG_SNIFF_FIFO_STAT, 1)[0]
uaVe = N206 & 1
GF5I = N206 & 4
if uaVe or GF5I:
return False
else:
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g8r5(YKHO):\n return YKHO.queue.shape[0] > 0",
"def Yykn(YKHO):\n return YKHO._count >= YKHO._capacity",
"def bWGV(YKHO):\n return len(YKHO.buf) >= YKHO.buf_size",
"def Yykn(YKHO):\n return YKHO.queue_size == YKHO.k",
"def Yykn(YKHO):\n return YKHO.queue_size == YKHO.k",
"def xWeV(YKHO... | [
"0.7175581",
"0.69692016",
"0.69374114",
"0.6923441",
"0.6923441",
"0.68921524",
"0.6802516",
"0.678809",
"0.678717",
"0.6745011",
"0.67326695",
"0.67292386",
"0.6719735",
"0.6655851",
"0.6641862",
"0.66102624",
"0.6596632",
"0.6583627",
"0.6557539",
"0.6530741",
"0.65134263"... | 0.77152604 | 0 |
Given a damage grid and a list of ship initial positions, transforms `dmg_grid` so as if the ships were to start at the first position shifting the rows. | def _B8D(ZVWp, IxFj):
P5uO = []
for oeNL, rdlD in zip(IxFj, ZVWp):
P5uO.append(LYTE(rdlD, oeNL))
return P5uO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DkWr(YKHO, Cs6h):\n i5jP = len(Cs6h)\n fHmP = len(Cs6h[0])\n cntZ = Cs6h[i5jP - 1][fHmP - 1]\n for Mkmy in range(i5jP):\n cntZ = YKHO.shiftRow(Cs6h[Mkmy], cntZ)",
"def BZN_(YKHO, XSoh):\n YKHO.initial_indice_dict = {ckxV: list((tuple([0, cDjD]) for cDjD in range(YKHO.grid_width))), EGw7... | [
"0.5860449",
"0.5840603",
"0.58258414",
"0.5637272",
"0.54523367",
"0.5407642",
"0.5273608",
"0.525654",
"0.5255646",
"0.52307427",
"0.5226005",
"0.52066183",
"0.5186681",
"0.5172617",
"0.51717454",
"0.51702183",
"0.5167118",
"0.51643646",
"0.5158535",
"0.5145836",
"0.5141566... | 0.7710498 | 0 |
Save stores the internal dictionary as a json in a file. | def t3TG(YKHO, Npvu, ml4C):
KAOR = kuG0()
nPrm = rLdf.read_csv('data/iris.data.csv')
KAOR.fit(nPrm)
_IBo = [[1.006711409395973, -0.11010327176239865, 0.8776048563471857, 0.823443255069628], [-0.11010327176239865, 1.006711409395972, -0.4233383520816991, -0.3589370029669186], [0.8776048563471857, -0.42333... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO):\n YGFP = YKHO.to_dict()\n with open(YKHO.filename, 'w', encoding='utf8') as wM3v:\n qQXR.dump(YGFP, wM3v, indent=4)",
"def xkzz(YKHO):\n with open(BS3y.__file_path, 'w', encoding='utf-8') as eHNT:\n eUNp = {}\n for H5ew, YEnM in BS3y.__objects.items():\n e... | [
"0.86567557",
"0.84553695",
"0.8427386",
"0.84114283",
"0.83437115",
"0.8251534",
"0.8244477",
"0.823635",
"0.822303",
"0.81996214",
"0.81934667",
"0.8189881",
"0.8139799",
"0.81308985",
"0.8130701",
"0.8129206",
"0.81225437",
"0.8106754",
"0.8099721",
"0.8084215",
"0.8074956... | 0.0 | -1 |
Compute the target of the given repo element. if r is None, just return None. | def Mgcm(YKHO, Mkmy):
if Mkmy is None:
return
tqKV = Mkmy.attrib
pmON = tqKV.get('path')
if pmON is None:
raise ValueError('element with no path: %s' % QGpr.tostring(Mkmy))
pan_ = tqKV.get('target')
if pan_ is None:
pan_ = pmON.rsplit('/', 1)[-1]
return (pan_, pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YOP5(YKHO):\n return YKHO.__target_node",
"def BK83(YKHO):\n raise NotImplementedError('TODO here')",
"def yqdy(_63S):\n BrK6 = _63S.cwd\n if _63S.targets and isinstance(_63S.targets, list):\n d9fw = _63S.targets[0]\n if Hy7s.path.exists(d9fw):\n pan_ = Hy7s.path.abspat... | [
"0.56040126",
"0.53278005",
"0.5312435",
"0.52978504",
"0.5272283",
"0.52709806",
"0.52709806",
"0.52229804",
"0.5209424",
"0.5205622",
"0.5178433",
"0.5158321",
"0.51388025",
"0.51308024",
"0.5111098",
"0.5094685",
"0.50469744",
"0.5016915",
"0.49991852",
"0.49952793",
"0.49... | 0.5656872 | 0 |
Reshape tensor by concatenating patch pixel columns. Arguments | def w2LD(WKvO: tf.Tensor) -> ZylS.Tensor:
Cq8O = (ZylS.shape(WKvO)[0], oyIN.product(WKvO.shape[1:]))
kNbz = ZylS.reshape(WKvO, Cq8O)
return kNbz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xjbo(YKHO, Po4F):\n assert isinstance(Po4F, oyIN.ndarray)\n if Po4F.ndim == 3:\n Po4F = Po4F.reshape((1, 1) + Po4F.shape)\n elif Po4F.ndim == 4:\n Po4F = Po4F.reshape((1,) + Po4F.shape)\n return Po4F",
"def cWuJ(Po4F, FTrt, N0ky):\n TgYl = oyIN.zeros(N0ky)\n for YRbF in range(... | [
"0.67019",
"0.651915",
"0.6427296",
"0.61458087",
"0.6124704",
"0.6124704",
"0.6124427",
"0.605243",
"0.6012459",
"0.60030764",
"0.59731925",
"0.5944528",
"0.5931007",
"0.59149015",
"0.5882755",
"0.5865385",
"0.5849784",
"0.5818273",
"0.57778937",
"0.57648724",
"0.5750502",
... | 0.68636477 | 0 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, aOou, qIxc):
tspZ = qIxc.learning_rate
assert len(qIxc.gammas) == len(qIxc.schedule), 'length of gammas and schedule should be equal'
for KMvS, YPaw in zip(qIxc.gammas, qIxc.schedule):
if aOou >= YPaw:
tspZ = tspZ * KMvS
else:
break
K0do.param_group... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.79913574",
"0.7939993",
"0.7889258",
"0.7827651",
"0.78223044",
"0.7816854",
"0.7809879",
"0.7802364",
"0.77910584",
"0.7788134",
"0.7781728",
"0.7764728",
"0.77639675",
"0.7761158",
"0.77482516",
"0.77379465",
"0.7730999",
"0.7724226",
"0.7711953",
"0.770789",
"0.77039516... | 0.0 | -1 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
bGrB, pan_ = ht2j.max(pan_, 1)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].contiguous().view(-1).f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA... | [
"0.8003211",
"0.79748034",
"0.79735845",
"0.7941222",
"0.78642285",
"0.7803938",
"0.7707779",
"0.7621563",
"0.7593218",
"0.75612706",
"0.752028",
"0.7430132",
"0.74122673",
"0.7375894",
"0.7374447",
"0.7321427",
"0.7254542",
"0.7236769",
"0.72279894",
"0.7204469",
"0.7137302"... | 0.0 | -1 |
Provide model & permission for checking the user permission | def rjN5(yR_P='', C3ST='', Uvf2=''):
def mrMx(JfyU):
@zaGL(JfyU)
def GDMi(*qIxc, **B2fa):
CBIr = B2fa['user']
NCls = B2fa['db']
P4t4 = sJeD.objects.using(NCls).filter(slug=yR_P).first()
if P4t4 is None:
raise HMo9('No such app found!'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjN5(YKHO):\n pass",
"def qHTF(YKHO):\n pass",
"def tbWp(YKHO, QePW, ABDL, C3ST=None):\n C3ST = YKHO.model(QePW, C3ST)\n DDLl = QePW.cache.auth_backend\n if not DDLl.has_permission(QePW, C3ST.name, ABDL):\n raise wPvU",
"def qHTF(YKHO, QePW, tTee):\n from users.api import UserVie... | [
"0.7514481",
"0.7247151",
"0.72073",
"0.7022118",
"0.70038533",
"0.699907",
"0.6956072",
"0.6945328",
"0.6925014",
"0.6918973",
"0.6893681",
"0.6887346",
"0.68842936",
"0.68835473",
"0.68466556",
"0.6840733",
"0.68337715",
"0.68233603",
"0.6821045",
"0.6817182",
"0.6817182",
... | 0.66729355 | 45 |
Update existing ``Post`` object with data passed in Transfer Object and validate instance values. This function does not call ``save`` method on the object. | def HrwA(wEf2, nPrm):
from utils.django import update_object_from_dto
m8z6 = wEf2
if isinstance(m8z6, (int, Swre, exCv)):
m8z6 = GyR0(FYrf.Post, pk=m8z6)
if isinstance(m8z6, FYrf.Post):
update_object_from_dto(m8z6, nPrm, partial=True)
return m8z6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IsIF(YKHO):\n Aofo = YKHO.post.update('post-id', **aqR5)\n YKHO.assertIsInstance(Aofo, YOIG)",
"def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n KAOR.slug = vGfb.get('slug', KAOR.slug)\n KAOR.content = vGfb.get('content', KAOR.content)\n KAOR.publish_time = vGfb.ge... | [
"0.74223566",
"0.6967973",
"0.6933811",
"0.69235563",
"0.6895852",
"0.68319917",
"0.67945564",
"0.6660974",
"0.6646063",
"0.664257",
"0.66354614",
"0.66266286",
"0.6583159",
"0.6571516",
"0.6545857",
"0.6534081",
"0.6465413",
"0.6465413",
"0.64331347",
"0.6429978",
"0.6429168... | 0.72735655 | 1 |
An iterator over the immediate children tags of this tag | def RbaF(Q6kx):
for aUGN in Q6kx.contents:
if isinstance(aUGN, A0Fa.Tag):
yield aUGN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n return iter(YKHO.__children)",
"def Vs4Q(YKHO):\n return iter(YKHO._children)",
"def Vs4Q(YKHO):\n return iter(YKHO.children)",
"def Vs4Q(YKHO):\n return iter(YKHO.children)",
"def afYC(YKHO):\n for aUGN in YKHO._children:\n yield aUGN",
"def Vs4Q(YKHO):\n for Q... | [
"0.80736697",
"0.79879004",
"0.79819477",
"0.79702526",
"0.78324485",
"0.77746207",
"0.77653843",
"0.7749924",
"0.77095884",
"0.7685961",
"0.7656298",
"0.7617446",
"0.7617446",
"0.75287044",
"0.75287044",
"0.7489347",
"0.7479634",
"0.7462295",
"0.73959917",
"0.73815125",
"0.7... | 0.72072524 | 25 |
Check if all elements in interval have same dimension. This function uses [index1, index2) as interval. | def YnL5(BEuN, oZf4, YBiN):
zNig = len(BEuN[oZf4])
for geyT in BEuN[oZf4:YBiN]:
if len(geyT) != zNig:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bFoR(d6pt, e_2d=3):\n if not (isinstance(d6pt, tuple) and len(d6pt) == 3):\n return False\n for aNZO in d6pt:\n if not A1br(aNZO):\n return False\n return True",
"def UDX1(YKHO, SppC):\n usx6 = YKHO.rows() == SppC.rows()\n WfCS = YKHO.colums() == SppC.colums()\n ret... | [
"0.6152271",
"0.5957771",
"0.59429806",
"0.58953047",
"0.5893619",
"0.58497214",
"0.58070195",
"0.5793951",
"0.57825017",
"0.57761335",
"0.5767634",
"0.57170355",
"0.57102126",
"0.56562686",
"0.5645581",
"0.5619307",
"0.55911005",
"0.5571789",
"0.55715585",
"0.55704916",
"0.5... | 0.53966486 | 43 |
Line bisecting two complex points | def mP39(XP5J, vexM):
lKXT = (XP5J + vexM) / 2
vgXP = lKXT + (vexM - XP5J) * 1j
return TeoL(S1Or(lKXT), S1Or(vgXP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _s56(YKHO, lCHq, ANJu):\n raise NotImplementedError",
"def _s56(YKHO, lCHq, ANJu):\n nJ9F = lCHq[0]\n nxyw = lCHq[1]\n cflT = lCHq[2]\n hQHm = [lCHq[YRbF] - ANJu[YRbF] for YRbF in range(3)]\n jlSq = [lCHq[YRbF] - YKHO.center[YRbF] for YRbF in range(3)]\n Jgwa = hQHm[0]\n NsEU = hQHm[1... | [
"0.70875156",
"0.7041666",
"0.70028186",
"0.6822803",
"0.67640597",
"0.67583054",
"0.66526055",
"0.66371435",
"0.66223955",
"0.66157216",
"0.65478295",
"0.65207005",
"0.64903855",
"0.6488984",
"0.64687777",
"0.6462988",
"0.6449923",
"0.6445855",
"0.64441824",
"0.6443225",
"0.... | 0.61338896 | 68 |
Return package version from the bumpversion configuration file (hacky). | def kaPv():
try:
Ux0P = Hy7s.path.join(Hy7s.path.dirname(xAKo), '../../.bumpversion.cfg')
with open(Ux0P, 'r') as Gcbu:
_VT6 = Gcbu.read()
r8hN = ZbWC.search('current_version\\s*=\\s*(\\d+\\.\\d+\\.\\d+)', _VT6)
return r8hN.group(1)
except:
HwRy.exit('Unable t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N3jx():\n if EdVw.__PACKAGE_VERSION != '':\n return EdVw.__PACKAGE_VERSION\n PGGS = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n GZEz = Hy7s.path.join(PGGS, './../../', 'version.cfg')\n GZEz = Hy7s.path.normpath(GZEz)\n if not Hy7s.path.isfile(GZEz):\n raise Exception('There is no ... | [
"0.7901308",
"0.7747857",
"0.7214085",
"0.7192293",
"0.71895784",
"0.7176497",
"0.71571505",
"0.7131882",
"0.7111878",
"0.7076947",
"0.7076947",
"0.7076947",
"0.70484275",
"0.70309913",
"0.69977874",
"0.69976646",
"0.6975093",
"0.6973601",
"0.6968552",
"0.6961599",
"0.6955784... | 0.8438139 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83939064",
"0.83558416",
"0.8296191",
"0.8133439",
"0.81156427",
"0.810097",
"0.81001526",
"0.8099001",
"0.8099001",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80677134",
"0.80598736",
"0... | 0.0 | -1 |
Used to return the JSON associated with a request to the API | def Z7MT(YKHO, w2IS, NArs=None, _FTe=False, MFmG=False, XGUs=False):
sPy8 = 429
BqpK = 20
uIU8 = 10
NArs = NArs if NArs is not None else {}
if w2IS.split('/')[-1] in ['dockets', 'documents', 'comments']:
NArs = {**NArs, 'page[size]': 250}
cuiw = G4JS.Session()
cuiw.mount('https', oln... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gf_J(YKHO, qv1X):\n return ('ok', YKHO.as_json())",
"def _lv4(YKHO):\n MOPg = {'content-type': 'application/json'}\n _hkX = G4JS.get(YKHO.full_url, headers=MOPg)\n return _hkX.json()",
"def qQXR(YKHO):\n return geh0",
"def qQXR(YKHO):\n return geh0",
"def qQXR(YKHO):\n return geh0"... | [
"0.7800621",
"0.7710163",
"0.7702643",
"0.7702643",
"0.7702643",
"0.7436239",
"0.7401424",
"0.73398465",
"0.73286146",
"0.7037596",
"0.6941627",
"0.69324493",
"0.6931639",
"0.6914728",
"0.691327",
"0.68944013",
"0.6881629",
"0.6829216",
"0.68280053",
"0.68155944",
"0.67498374... | 0.0 | -1 |
Used to take the data contained in a response (e.g., the data for a bunch of comments) and remove unnecessary columns (i.e., those not specified in `cols`). Also adds the ID associated with the items and flattens lists contained in each item's data. | def ipro(YKHO, nPrm, Kp9U, CS4K=None):
hlel = []
WfCS = [WKvO for WKvO in nPrm[0]['attributes'].keys() if WKvO not in ['id', 'displayProperties', 'highlightedContent', 'fileFormats']]
for or8S, ZfUD in enumerate(nPrm):
yvT9 = {G1Hx: ' '.join(Ty9i) if type(Ty9i) == list else Ty9i for G1Hx, Ty9i in Zf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zwsJ(nPrm: list, ZLJ_: list) -> list:\n yifd = []\n for ZfUD in nPrm:\n _zw3 = {}\n for AAHb in ZLJ_:\n wEf2 = ZfUD.get(AAHb, None)\n _zw3[AAHb] = wEf2\n yifd.append(_zw3)\n return yifd",
"def _jgd(DumB, E6bj: list=None) -> rLdf.DataFrame:\n hKRi = []\n ... | [
"0.59534544",
"0.590076",
"0.5814016",
"0.5587839",
"0.5564122",
"0.5552813",
"0.5501105",
"0.54576343",
"0.5411264",
"0.54100573",
"0.5366173",
"0.53632706",
"0.5334527",
"0.5329258",
"0.531978",
"0.52587473",
"0.5256724",
"0.5206224",
"0.51969653",
"0.51630926",
"0.5160405"... | 0.61112887 | 0 |
Gets the ninety_degree_phase_shift of this DolbyDigitalPlusPreprocessing. | def ZRmy(YKHO):
return YKHO._ninety_degree_phase_shift | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZRmy(YKHO, ZRmy):\n if ZRmy is not None:\n if not isinstance(ZRmy, gGMA):\n raise TypeError('Invalid type for `ninety_degree_phase_shift`, type has to be `DolbyDigitalPlusNinetyDegreePhaseShift`')\n YKHO._ninety_degree_phase_shift = ZRmy",
"def Qb6X(YKHO) -> 'float':\n return ta2M.... | [
"0.7144333",
"0.5786678",
"0.561255",
"0.55512995",
"0.55512995",
"0.5543348",
"0.54567814",
"0.545098",
"0.5416849",
"0.5409657",
"0.53433955",
"0.5337432",
"0.53372824",
"0.53258616",
"0.5298507",
"0.52881765",
"0.527738",
"0.52671397",
"0.52638155",
"0.52597916",
"0.525962... | 0.8878878 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
given pressure in hPa, returns altitude in meters. | def H2v2(YKHO, XP5J):
MKlR = (1 - pow(XP5J / 1013.25, 0.190263)) * 44330.8
return MKlR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n_Ej(YKHO, CJ2p, r58Z=DOwU):\n return 44330.0 * (1.0 - pow(CJ2p / (r58Z * 100), 1.0 / 5.255))",
"def n_Ej(YKHO):\n CJ2p = YKHO.pressure\n return 44330 * (1.0 - epAf.pow(CJ2p / YKHO.sea_level_pressure, 0.1903))",
"def n_Ej(YKHO):\n n_Ej = 44330.0 * (1.0 - pow(YKHO.pressure / YKHO.sea_level_press... | [
"0.86687243",
"0.84698886",
"0.8396531",
"0.83338803",
"0.82551944",
"0.8229526",
"0.80428576",
"0.78135055",
"0.77910614",
"0.7656048",
"0.7608374",
"0.76057476",
"0.7594406",
"0.75518274",
"0.751681",
"0.74200094",
"0.7397468",
"0.7392771",
"0.7390729",
"0.7310869",
"0.7245... | 0.0 | -1 |
Get name of last chosen item. | def ScHw(YKHO):
return YKHO._last_item | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0tD(YKHO):\n Zr4w = ''\n if YKHO.name is None or YKHO.name == '':\n Zr4w = 'item_{}'.format(YKHO.id)\n else:\n Zr4w = YKHO.name\n return Zr4w",
"def mWFP(YKHO):\n return YKHO._name if YKHO._name is not None else YKHO._item.name",
"def mWFP(YKHO):\n return YKHO._item.name",
... | [
"0.71092373",
"0.6922294",
"0.6919754",
"0.6782833",
"0.6712709",
"0.6712709",
"0.6706507",
"0.66794777",
"0.66368824",
"0.66015786",
"0.6539211",
"0.6496748",
"0.6484241",
"0.6458148",
"0.6451937",
"0.64376354",
"0.6430541",
"0.6415142",
"0.6409954",
"0.64056224",
"0.6397937... | 0.6482044 | 13 |
Returns a copy of the variable in self.vars We return a copy so that nothing in self.vars is mutated. If the variable is a long integer, we convert it to a float so that numpy methods work on it. | def PlWa(GgvZ, kc1W):
BWXx = kc1W[GgvZ[0]]
BWXx = jth9.copy(BWXx)
if isinstance(BWXx, jKi7.integer_types):
BWXx = float(BWXx)
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def maTs(YKHO, SRYB: torch.Tensor) -> ht2j.autograd.Variable:\n SRYB = ht2j.FloatTensor(SRYB)\n SRYB = iQnE(SRYB)\n if YKHO._with_cuda:\n SRYB = SRYB.cuda()\n return SRYB",
"def BWXx(YKHO, SRYB: np.ndarray) -> oyIN.float64:\n raise NotImplementedError()",
"def IYtq(YKHO) -> oyIN.ndarray:\... | [
"0.66071683",
"0.6367638",
"0.6129231",
"0.60022384",
"0.58905685",
"0.5870597",
"0.58193344",
"0.5811164",
"0.575511",
"0.5707288",
"0.5673487",
"0.56584066",
"0.5653565",
"0.56323165",
"0.5616479",
"0.5608561",
"0.55778503",
"0.5575833",
"0.55744785",
"0.5572768",
"0.556437... | 0.5781431 | 8 |
Evaluate an expression; that is, take a string of math and return a float. Arguments ========= | def W2ox(l9Ur, kc1W=i0PS, ZZSa=Ex0X, iRsl=CfoV, DSDK=None, RKIQ=False):
m005 = ndxQ(variables_used=set(), functions_used=set(), suffixes_used=set(), max_array_dim_used=0)
if l9Ur is None:
return (float('nan'), m005)
l9Ur = l9Ur.strip()
if l9Ur == '':
return (float('nan'), m005)
U5Jc ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP2T(VN2L):\n return float(eval(VN2L))",
"def XQhz(YKHO, VN2L):\n if not len(VN2L):\n raise Exception('math error, expression cannot be empty')\n try:\n return YKHO.eval_(jZ4I.parse(VN2L).body[0].value)\n except (SyntaxError, TypeError):\n tO9_ = 'math syntax error in express... | [
"0.77996695",
"0.74686855",
"0.73867196",
"0.73774886",
"0.7297129",
"0.7274348",
"0.7265293",
"0.72410387",
"0.7181058",
"0.70381826",
"0.7024436",
"0.69301414",
"0.6853618",
"0.68253523",
"0.68094236",
"0.67555827",
"0.67485315",
"0.6684601",
"0.6679351",
"0.665779",
"0.659... | 0.0 | -1 |