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 |
|---|---|---|---|---|---|---|
An interface for adding the tensor outputs of a keras layer. Encapsulates trace_tensor. | def zna2(gEmA, pkan):
try:
o4Jx = gEmA.output
if E7LX.is_tf_type(o4Jx):
ZgWy(o4Jx, '%s' % pkan)
else:
or8S = 0
for aIXl in o4Jx:
if E7LX.is_tf_type(o4Jx):
ZgWy(aIXl, '%s_%d' % (pkan, or8S))
or8S += 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zgsA(vhpA):\n raise NotImplementedError",
"def T8mL(YKHO, wRXp, Rnme):\n raise NotImplementedError",
"def ZgWy(vhpA, N_zR=None):\n if N_zR is None:\n N_zR = vhpA.name\n vhpA.graph.get_collection(qxGM)\n vhpA.graph.add_to_collection(qxGM, (vhpA, N_zR))\n return vhpA",
"def TORX(YK... | [
"0.67857146",
"0.6388953",
"0.63715225",
"0.6257437",
"0.6257437",
"0.6228444",
"0.62104905",
"0.6142885",
"0.6114395",
"0.60825926",
"0.60685295",
"0.602036",
"0.6011695",
"0.5970463",
"0.5943941",
"0.591428",
"0.5906252",
"0.59019965",
"0.58907664",
"0.587499",
"0.5870185",... | 0.6519989 | 1 |
Returns True if TensorTracer is enabled. | def n30Z():
try:
TSMu = Qqew.TTParameters().is_enabled()
if TSMu:
uybv.get_cell('is_enabled').set(True)
return TSMu
except (ValueError, RuntimeError) as e:
G9jH.warning('Tensor Tracer V1 flags processing error encountered in is_enabled check. %s', tTpl)
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o6r0(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'trace_enabled')",
"def ZVGE(xAU6):\n return bool(xAU6.get('traces_sample_rate') is not None or xAU6.get('traces_sampler') is not None)",
"def y31c(YKHO):\n return YKHO._parameters.trace_mode == Qqew.TRACE_MODE_FULL_TENSOR_SUMMARY",
"... | [
"0.7352318",
"0.6993896",
"0.67367506",
"0.6653039",
"0.6437213",
"0.6221225",
"0.60980266",
"0.6041605",
"0.5997682",
"0.59908676",
"0.5865279",
"0.583192",
"0.57753474",
"0.5765052",
"0.56993747",
"0.56993747",
"0.56993747",
"0.56993747",
"0.56993747",
"0.56993747",
"0.5691... | 0.77441347 | 0 |
Initializes a TensorTracer. Sets the various member fields from the flags (if given) or the defaults. | def FIMM(YKHO):
YKHO._replica_id = None
YKHO._tt_config = kiV1.TensorTracerConfig()
YKHO._parameters = Qqew.TTParameters()
YKHO._host_call_fn = {}
YKHO._cache_variables = {}
YKHO._history_value_cache = {}
YKHO._traced_op_names = set()
YKHO._report_proto = None
YKHO._temp_cache_var = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WCJG(ko3c=None, gefD=None):\n if gefD is not None and (not callable(gefD)):\n raise ValueError('start_span_cb is not callable')\n global _g_tracer, _g_start_span_cb\n if hasattr(ko3c, '_tracer'):\n ko3c = ko3c._tracer\n WofY = ko3c\n FVbQ = gefD",
"def FIMM(YKHO, tUBe=None, r7uW=... | [
"0.60568595",
"0.60088533",
"0.59830976",
"0.5968764",
"0.58912414",
"0.587532",
"0.5856739",
"0.5849403",
"0.58392364",
"0.5776628",
"0.5775846",
"0.5773352",
"0.5754781",
"0.5748357",
"0.57385355",
"0.57230204",
"0.57172567",
"0.5693982",
"0.567977",
"0.5675176",
"0.5672812... | 0.6583369 | 0 |
Creates a variable as the cache to store intermediate tensor values. | def PE93(YKHO, _OIP, pNZh, ROpF=None, yDqo=m1c7.float32):
if pNZh is None:
raise ValueError('Invalid graph.')
ACjc = YKHO._cache_variable_for_graph(pNZh)
if _OIP not in ACjc:
if ROpF is None:
raise ValueError('shape must be provided at cache creation.')
if yDqo.is_integer... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ww31(wEf2):\n return xElS(wEf2)",
"def wyyA(YKHO):\n YKHO.cached_mu = YKHO.mu.eval()\n YKHO.cached_var = YKHO.var.eval()\n YKHO.cached_count = YKHO.count.eval()",
"def ECEj(YKHO, XRov, fmke, pNZh):\n ECSy = cACa.constant(qhEj, dtype=m1c7.float32, shape=[fmke])\n YKHO._temp_cache_var[pNZh]... | [
"0.70055306",
"0.6747109",
"0.66498315",
"0.6506411",
"0.62963825",
"0.6243984",
"0.6232762",
"0.61714506",
"0.61712897",
"0.61198336",
"0.60760653",
"0.6070976",
"0.58924294",
"0.58900154",
"0.57658064",
"0.5740284",
"0.5729406",
"0.5718902",
"0.5706372",
"0.5702549",
"0.570... | 0.7105806 | 0 |
Returns true if the intermediate values should be stacked instead of being stored in a tf.Variable. | def a2yv(YKHO):
if YKHO._use_tensor_buffer():
return False
if YKHO._use_tensor_values_cache():
return YKHO._parameters.use_temp_cache_var
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vxYx(YKHO) -> bool:\n return YKHO.layers > 1",
"def EUcS(TzIk):\n for SRYB in TzIk:\n if len(SRYB.dimensions) > 2 and SRYB[0, 0, :].mask.all() and SRYB[-1, 1, :, :].mask.all():\n return True\n return False",
"def BSx9(YKHO):\n return bool(set(YKHO.kind) & set('XYZ'))",
"def ... | [
"0.6048697",
"0.5971611",
"0.5710397",
"0.5619038",
"0.5598955",
"0.5590325",
"0.53867996",
"0.53844666",
"0.5345319",
"0.53421265",
"0.53105307",
"0.5286167",
"0.52738845",
"0.5273864",
"0.5272531",
"0.5256374",
"0.52537984",
"0.52448654",
"0.5216769",
"0.51903856",
"0.51879... | 0.5320932 | 10 |
Creates a new tf.Variable and a new tf.Operation that assigns the value of the tensor to this variable. | def xqlF(YKHO, vhpA):
mbNo = YKHO._create_or_get_tensor_values_cache(vhpA.name, vhpA.op.graph, vhpA.shape.as_list(), vhpA.dtype)
return PeSp.assign(mbNo, vhpA).op | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Es0b(BWXx, yDqo, mWFP=None, liuk=None):\n return ZylS.Variable(BWXx, dtype=yDqo, name=mWFP)",
"def bD1G(YKHO, Elif):\n assert isinstance(Elif, z0_P)\n assert len(YKHO) == len(Elif)\n IPme = []\n for c4Qk, xRop in zip(YKHO.vars_, Elif.vars_):\n IPme.append(c4Qk.assign(xRop))\n return ... | [
"0.7086066",
"0.65979517",
"0.6486898",
"0.6359577",
"0.6303178",
"0.62906426",
"0.62873197",
"0.62840164",
"0.62840164",
"0.6103901",
"0.60994834",
"0.606198",
"0.6040132",
"0.6025503",
"0.60185015",
"0.59964055",
"0.5975711",
"0.5944911",
"0.5895868",
"0.5891965",
"0.588817... | 0.59726536 | 17 |
Returns true if the op is at the same level with the training loop. Returns false if the op is in an inner while loop or if it is outside of the training loop. | def hbHU(YKHO, khtY):
bp_0 = YKHO._get_op_control_flow_context(khtY)
xw0F = FsVq.GetContainingWhileContext(bp_0)
return xw0F == FsVq.GetContainingWhileContext(YKHO._outmost_context) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _WRu(nBaQ, yhyn):\n return yhyn in nBaQ and 'LoopCond' in nBaQ[yhyn]",
"def IYt9(khtY):\n return FsVq.IsLoopSwitch(khtY) or FsVq.IsLoopMerge(khtY) or FsVq.IsLoopEnter(khtY) or FsVq.IsLoopExit(khtY) or pOgI.loop_cond_op(khtY) or (khtY.type in ('RefNextIteration', 'NextIteration'))",
"def wTyC(YKHO):\n... | [
"0.67206365",
"0.6643843",
"0.610397",
"0.60806173",
"0.59005386",
"0.57906383",
"0.5759867",
"0.5722015",
"0.5584763",
"0.5563943",
"0.55123514",
"0.5496754",
"0.54837847",
"0.5472309",
"0.5446198",
"0.5442353",
"0.5428745",
"0.53709555",
"0.5353489",
"0.53505546",
"0.534481... | 0.6994096 | 0 |
Creates a temporary cache with the given dimensions. Fills the self._temp_cache_var with num_traced_tensors tf.constant() ops that have shape of [num_signatures]. | def ECEj(YKHO, XRov, fmke, pNZh):
ECSy = cACa.constant(qhEj, dtype=m1c7.float32, shape=[fmke])
YKHO._temp_cache_var[pNZh] = [ECSy for bGrB in range(XRov)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PE93(YKHO, _OIP, pNZh, ROpF=None, yDqo=m1c7.float32):\n if pNZh is None:\n raise ValueError('Invalid graph.')\n ACjc = YKHO._cache_variable_for_graph(pNZh)\n if _OIP not in ACjc:\n if ROpF is None:\n raise ValueError('shape must be provided at cache creation.')\n if yDq... | [
"0.63529843",
"0.6059687",
"0.56912345",
"0.5540874",
"0.53828937",
"0.52646154",
"0.49738878",
"0.48838246",
"0.48829386",
"0.4804552",
"0.47643253",
"0.4763133",
"0.47207418",
"0.4718563",
"0.47168207",
"0.4706097",
"0.46977234",
"0.4676159",
"0.46719626",
"0.46638885",
"0.... | 0.7776393 | 0 |
Writes the given caches as tensor summary. | def Cu31(YPaw, u7d9=None, **B2fa):
kBpi = FRug
if u7d9 is not None:
kBpi = JoeS.string_join([kBpi, u7d9], separator='.')
So0g = []
PxNv = QxIo.create_file_writer_v2(YKHO._parameters.trace_dir, filename_suffix=kBpi, max_queue=U8xL)
pNZh.add_to_collection(dnWU, PxNv)
VM6Z = YPaw[0]
JRY... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1pK(YKHO):\n for G1Hx, Ty9i in YKHO.metrics.items():\n ZylS.summary.scalar(G1Hx, Ty9i)\n YKHO.summary_op = ZylS.summary.merge_all()",
"def atSw(YKHO, wyyA, w5u3, Qm5y, Q4Am, ux_7):\n\n def pUfw(vhpA):\n \"\"\"Returns the text to be printed for inspection output.\"\"\"\n if YKHO... | [
"0.62373126",
"0.6211419",
"0.61969113",
"0.6189914",
"0.6168754",
"0.5829025",
"0.5809746",
"0.5802566",
"0.5793453",
"0.5787205",
"0.57535094",
"0.5752002",
"0.57258844",
"0.5705497",
"0.56813705",
"0.562398",
"0.5612645",
"0.5610259",
"0.5548419",
"0.5537438",
"0.55310524"... | 0.5770509 | 10 |
Get the local path to the query interface Returns str Path to the query interface | def rVp6():
import concordancer.server
return str(oAb3.Path(qlOU.server.__file__).parents[0] / 'dist/index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fQwc(YKHO) -> str:\n return YKHO.join_path(YKHO.rest_api_saved_query.arg)",
"def x4Ve(TBXe):\n return GkAb(TBXe) / 'queries'",
"def _gb0(YKHO, Wxnj) -> str:\n return f'{YKHO.scriptpath(Wxnj)}/query.php'",
"def OPRw(YKHO):\n lpha = YKHO.path_s.split('?', 1)\n if len(lpha) == 1:\n ret... | [
"0.7560793",
"0.72178215",
"0.69427603",
"0.6552635",
"0.65501314",
"0.6470023",
"0.6345656",
"0.62637967",
"0.6196307",
"0.6196307",
"0.61442584",
"0.6069796",
"0.6050089",
"0.6012457",
"0.60050875",
"0.599463",
"0.5990045",
"0.5990045",
"0.5990045",
"0.5990045",
"0.5990045"... | 0.68800527 | 3 |
Compute the sparse least squares update for u per section 3.2.1 of the paper The rhs of the ls problem needs to be recomputed every time since w_0 and w are variables The lhs should be precomputed in advance for computational efficiency | def RUyo(bnhf, RHJb, rLog, tQh9, yzQ0, K1SU, K_rd, ZVdC=None, GOsN=50):
"""In the following +[[]] and [:-1] are added to keep thing 1dim array of objects and still multiply it elemtwisely"""
LQkd = oyIN.concatenate(1 / oyIN.sqrt(2 * RHJb) * oyIN.array(yzQ0 + [[]])[:-1], axis=0)
UYfW = oyIN.concatenate([1 /... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ykvB(svnZ, bnhf, RHJb, rLog, Kt_s, C7Ls, Vuk4, pgUp, Cwt5, KMvS, tjUW, lWPh, Nq1b, J_Xh=0.001, SYxB=5000, PJWX=0, GOsN=30):\n USky = 1 / oyIN.sqrt(2 * rLog)\n K_rd = Zxt2.sparse.vstack([Kt_s.multiply(1 / oyIN.sqrt(2 * bnhf))] + [C7Ls[YRbF].multiply(1 / oyIN.sqrt(2 * RHJb[YRbF])) for YRbF in range(len(C7L... | [
"0.70971364",
"0.69212496",
"0.67300016",
"0.63234544",
"0.61302644",
"0.60571796",
"0.6040179",
"0.6027713",
"0.60185385",
"0.6016433",
"0.6011073",
"0.5998979",
"0.5990436",
"0.597067",
"0.59691066",
"0.5943357",
"0.59225035",
"0.59133816",
"0.58944416",
"0.58914286",
"0.58... | 0.6811894 | 2 |
Ensure user is not created with no password. | def f9L2(YKHO):
nPrm = {'username': 'foobar', 'email': 'foobar@example.com', 'password': ''}
geh0 = YKHO.client.post(YKHO.create_url, nPrm, format='json')
YKHO.assertEqual(mv1M.objects.count(), 1)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(len(geh0.data['password'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K05x(YKHO, CBIr):\n with trZe.raises(gBn6.errors.ValidationError):\n CBIr.save()",
"def nyNy(YKHO):\n YKHO.assertFalse(mv1M.objects.exists())",
"def N1so(YKHO):\n print('Create user invalid password (empty)')\n lgoE = 3\n NtEF = 'newtestuser'\n jTXt = ''\n uwbZ = 1\n R6Gd = l... | [
"0.7623653",
"0.75486773",
"0.7176564",
"0.7047765",
"0.6966404",
"0.6900393",
"0.6864475",
"0.68414086",
"0.68090117",
"0.67989016",
"0.6794892",
"0.67774653",
"0.67742616",
"0.67722416",
"0.6758322",
"0.67077434",
"0.6657933",
"0.66565204",
"0.66258895",
"0.6609708",
"0.659... | 0.7279704 | 2 |
Ensure user is not created if a user with the same username already exists | def Fug7(YKHO):
nPrm = {'username': 'test_user', 'email': 'test@example.com', 'password': 'testpassword'}
geh0 = YKHO.client.post(YKHO.create_url, nPrm, format='json')
YKHO.assertEqual(mv1M.objects.count(), 1)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(len(geh0.da... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nyNy(YKHO):\n YKHO.assertFalse(mv1M.objects.exists())",
"def jvg7(YKHO):\n print('Create user invalid username (already taken)')\n lgoE = 3\n NtEF = '100'\n jTXt = 'test9999'\n uwbZ = 1\n R6Gd = len(mv1M.query.all())\n YKHO.assertEqual(YKHO.system.create_user(lgoE, NtEF, jTXt, uwbZ), ... | [
"0.7600812",
"0.7525696",
"0.74614483",
"0.7457946",
"0.74328053",
"0.73718536",
"0.7238513",
"0.72200084",
"0.7175557",
"0.7166411",
"0.71644723",
"0.7147632",
"0.70900244",
"0.7081625",
"0.7071533",
"0.7071499",
"0.7062999",
"0.70582616",
"0.7036029",
"0.7013217",
"0.694712... | 0.6824656 | 34 |
Ensure user is not created with an invalid email | def PFDF(YKHO):
nPrm = nPrm = {'username': 'foobar', 'email': 'testing', 'password': 'testpassword'}
geh0 = YKHO.client.post(YKHO.create_url, nPrm, format='json')
YKHO.assertEqual(mv1M.objects.count(), 1)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(len(geh0.data['e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5xs(YKHO):\n with trZe.raises(ValueError) as wrFM:\n biYH.objects._create_user(None, None, False, False)\n YKHO.assertIn('email must be set', str(wrFM.value))",
"def F53s(YKHO):\n with YKHO.assertRaises(ValueError):\n egNl().objects.create_user(None, password='open@123')",
"def d_TI... | [
"0.8287806",
"0.8175898",
"0.8170805",
"0.81610084",
"0.81512934",
"0.81358635",
"0.8127811",
"0.8127281",
"0.8103175",
"0.81016153",
"0.80948347",
"0.8093309",
"0.80913407",
"0.80913407",
"0.80913407",
"0.80913407",
"0.80913407",
"0.80659455",
"0.80529404",
"0.8036108",
"0.7... | 0.74769104 | 28 |
Ensure user is not created without an email | def BAb1(YKHO):
nPrm = nPrm = {'username': 'foobar', 'email': '', 'password': 'testpassword'}
geh0 = YKHO.client.post(YKHO.create_url, nPrm, format='json')
YKHO.assertEqual(mv1M.objects.count(), 1)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(len(geh0.data['email'])... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q5xs(YKHO):\n with trZe.raises(ValueError) as wrFM:\n biYH.objects._create_user(None, None, False, False)\n YKHO.assertIn('email must be set', str(wrFM.value))",
"def ZY6r(YKHO):\n YKHO.registration_profile.objects.create_inactive_user(site=HAC5.objects.get_current(), send_email=False, **YKHO... | [
"0.809932",
"0.7832809",
"0.7743485",
"0.77125674",
"0.7619968",
"0.74492943",
"0.7448719",
"0.7404325",
"0.73889196",
"0.7387381",
"0.73864526",
"0.7383292",
"0.7375014",
"0.73642695",
"0.73576325",
"0.73576325",
"0.73576325",
"0.73576325",
"0.73576325",
"0.73542297",
"0.733... | 0.72434855 | 29 |
Ensure we cannot authenticate a user if we are given a blank username | def dwN5(YKHO):
nPrm = {'username': '', 'password': 'testpassword'}
geh0 = YKHO.client.post(YKHO.authenticate_url, nPrm, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(len(geh0.data['username']), 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NcTd(YKHO, NtEF):\n return uZ9H",
"def Ngt6(YKHO):\n YKHO.assertFalse(mv1M.authenticate('invalid', 'allison'))",
"def Z3WL(YKHO, NtEF):\n CBIr = mv1M.query.filter_by(username=NtEF.data).first()\n if CBIr:\n raise sUXu('That username is taken. Please choose a different one.')",
"def OcQ... | [
"0.837919",
"0.8134554",
"0.75647277",
"0.74679124",
"0.73858154",
"0.73339015",
"0.73185027",
"0.72769094",
"0.71925473",
"0.7115826",
"0.7096848",
"0.7085231",
"0.70651865",
"0.70624185",
"0.706138",
"0.704638",
"0.7003717",
"0.6948561",
"0.69125056",
"0.6872944",
"0.684412... | 0.7024288 | 16 |
Ensure we cannot authenticate a user if we are given a blank password | def w4Gr(YKHO):
nPrm = {'username': 'test_user', 'password': ''}
geh0 = YKHO.client.post(YKHO.authenticate_url, nPrm, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(len(geh0.data['password']), 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c9Uh(YKHO):\n YKHO.assertFalse(mv1M.authenticate(YKHO.user1.username, 'invalid'))",
"def Ngt6(YKHO):\n YKHO.assertFalse(mv1M.authenticate('invalid', 'allison'))",
"def NcSq(YKHO):\n _hkX = YKHO.client.post(gxEw('login'), qQXR.dumps({'username': YKHO.USERNAME, 'password': ''}), content_type='applic... | [
"0.7693631",
"0.7543654",
"0.7408975",
"0.73944926",
"0.7305289",
"0.72950023",
"0.7291412",
"0.7282313",
"0.72413546",
"0.72387516",
"0.7231195",
"0.7209531",
"0.72035354",
"0.7202927",
"0.71617824",
"0.7135228",
"0.7082839",
"0.70537686",
"0.7052462",
"0.7047135",
"0.701559... | 0.7233731 | 10 |
Ensure we cannot authenticate a user if we are given an incorrect username | def yFkc(YKHO):
nPrm = {'username': 'test_user_2', 'password': 'testpassword'}
geh0 = YKHO.client.post(YKHO.authenticate_url, nPrm, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(len(geh0.data['non_field_errors']), 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ngt6(YKHO):\n YKHO.assertFalse(mv1M.authenticate('invalid', 'allison'))",
"def NcTd(YKHO, NtEF):\n return uZ9H",
"def OcQ7(YKHO):\n CBIr = mv1M.authenticate('wrong_username', 'password')\n YKHO.assertEqual(CBIr, False)",
"def pQ5e(YKHO):\n _hkX = YKHO.client.post(gxEw('login'), qQXR.dumps(... | [
"0.85252064",
"0.80036956",
"0.78180283",
"0.7404895",
"0.73670876",
"0.7276735",
"0.7235713",
"0.7098317",
"0.70515686",
"0.70403093",
"0.70128584",
"0.69934356",
"0.69871634",
"0.69377285",
"0.6930042",
"0.69232506",
"0.6903995",
"0.6876713",
"0.685478",
"0.68443984",
"0.68... | 0.7354706 | 5 |
Ensure we cannot authenticate a user if we are given an incorrect username | def uejV(YKHO):
nPrm = {'username': 'test_user', 'password': 'testpassword_2'}
geh0 = YKHO.client.post(YKHO.authenticate_url, nPrm, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(len(geh0.data['non_field_errors']), 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ngt6(YKHO):\n YKHO.assertFalse(mv1M.authenticate('invalid', 'allison'))",
"def NcTd(YKHO, NtEF):\n return uZ9H",
"def OcQ7(YKHO):\n CBIr = mv1M.authenticate('wrong_username', 'password')\n YKHO.assertEqual(CBIr, False)",
"def pQ5e(YKHO):\n _hkX = YKHO.client.post(gxEw('login'), qQXR.dumps(... | [
"0.85252064",
"0.80036956",
"0.78180283",
"0.7404895",
"0.73670876",
"0.7354706",
"0.7276735",
"0.7235713",
"0.7098317",
"0.70515686",
"0.70403093",
"0.70128584",
"0.69934356",
"0.69871634",
"0.69377285",
"0.6930042",
"0.69232506",
"0.6903995",
"0.6876713",
"0.685478",
"0.684... | 0.0 | -1 |
find all variable definitions. | def _JfE(YKHO, Q6kx):
if J9MF.cindex.Cursor_is_def(Q6kx):
if Q6kx.kind == J9MF.cindex.CursorKind.VAR_DECL or Q6kx.kind == J9MF.cindex.CursorKind.PARM_DECL or Q6kx.kind == J9MF.cindex.CursorKind.STRUCT_DECL or (Q6kx.kind == J9MF.cindex.CursorKind.UNION_DECL) or (Q6kx.kind == J9MF.cindex.CursorKind.ENUM_DECL)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MgLH(YKHO):\n Aofo = {}\n for SRYB in YKHO.variables:\n Aofo[SRYB.name.upper()] = SRYB\n return Aofo",
"def kc1W(YKHO):\n return {P6bq for P6bq in YKHO if P6bq.type == 'var'}",
"def lSnF(YKHO):\n return []",
"def MgLH(YKHO):\n return {}",
"def lSnF(YKHO):\n raise NotImplemen... | [
"0.7008761",
"0.6826084",
"0.6737132",
"0.66949856",
"0.6689962",
"0.665618",
"0.6632569",
"0.66054916",
"0.65854424",
"0.65536",
"0.6469792",
"0.64125735",
"0.63931966",
"0.62532175",
"0.62504715",
"0.6159233",
"0.614085",
"0.61167824",
"0.60921293",
"0.60829693",
"0.6076479... | 0.7513789 | 0 |
find all variable references. | def kXOW(YKHO, Q6kx, _AKB, ldlt):
if not (Q6kx.kind.is_invalid() or J9MF.cindex.Cursor_displayname(Q6kx) == '' or Q6kx.kind == J9MF.cindex.CursorKind.VAR_DECL or (Q6kx.kind == J9MF.cindex.CursorKind.FUNCTION_DECL) or (Q6kx.kind == J9MF.cindex.CursorKind.CALL_EXPR) or (Q6kx.kind == J9MF.cindex.CursorKind.PARM_DECL) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zApw(l5Ny):\n return set(GCWI.findall(l5Ny))",
"def PCKW(YKHO):\n fvkH = []\n for e2h5 in YKHO.xml_cache.get_xml_tree('usagemodel'):\n W6v1 = e2h5.findall('.//namedReference__VariableUsage')\n for mWFP in W6v1:\n fvkH.append(mWFP.get('referenceName'))\n return fvkH",
"d... | [
"0.70831215",
"0.68738055",
"0.68206716",
"0.64130825",
"0.6260108",
"0.6224151",
"0.62091905",
"0.6183214",
"0.6179734",
"0.6143947",
"0.6068276",
"0.6035985",
"0.59923255",
"0.598996",
"0.5983211",
"0.59772897",
"0.59245044",
"0.5911925",
"0.5829187",
"0.58259785",
"0.57860... | 0.7058895 | 1 |
Function that takes a numpy 1D array of [lat, lon] and returns the distance to the coast | def ai8F(YKHO, eE4O, gusN):
Z45P = oyIN.zeros(eE4O.size)
OArg = oyIN.zeros(gusN.size)
WhY1 = oyIN.nditer([eE4O, gusN, None, None])
for fopC, _UuI, Z45P, OArg in WhY1:
Z45P[...] = oyIN.argmin(oyIN.abs(YKHO.lons - fopC))
OArg[...] = oyIN.argmin(oyIN.abs(YKHO.lats - _UuI))
kHxB = YKHO.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LI77(FDPT: np.ndarray, QnmL: np.ndarray, r1VO: float) -> oyIN.ndarray:\n igSk = oyIN.radians(QnmL[0:-1])\n TGuP = oyIN.radians(QnmL[1:])\n H91H = oyIN.radians(oyIN.diff(FDPT))\n Ayfi = oyIN.zeros_like(FDPT)\n Ayfi[1:] = oyIN.arccos(oyIN.sin(igSk) * oyIN.sin(TGuP) + oyIN.cos(igSk) * oyIN.cos(TGuP... | [
"0.62877554",
"0.5602629",
"0.55377555",
"0.54176754",
"0.54111797",
"0.54077476",
"0.5403657",
"0.5402054",
"0.5398642",
"0.53956836",
"0.53947115",
"0.53855157",
"0.5332569",
"0.532302",
"0.5319578",
"0.53186566",
"0.5315231",
"0.5314175",
"0.53038937",
"0.5287257",
"0.5286... | 0.739904 | 0 |
Convert coordinates of box from format (center x, center y, width, height) to format (x1, y1, x2, y2) where xy1=topleft, xy2=bottomright | def iduY(jNOo: Union[np.ndarray, torch.Tensor]) -> uLKX[oyIN.ndarray, ht2j.Tensor]:
XFf3 = jNOo.clone() if isinstance(jNOo, ht2j.Tensor) else jNOo.copy()
XFf3[:, 0] = jNOo[:, 0] - jNOo[:, 2] / 2
XFf3[:, 1] = jNOo[:, 1] - jNOo[:, 3] / 2
XFf3[:, 2] = jNOo[:, 0] + jNOo[:, 2] / 2
XFf3[:, 3] = jNOo[:, 1]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8Pe(zNig, FlUN):\n ncXl = 1.0 / zNig[0]\n GzWn = 1.0 / zNig[1]\n WKvO = (FlUN[0] + FlUN[1]) / 2.0\n LVAh = (FlUN[2] + FlUN[3]) / 2.0\n yzQ0 = FlUN[1] - FlUN[0]\n MKlR = FlUN[3] - FlUN[2]\n WKvO = WKvO * ncXl\n yzQ0 = yzQ0 * ncXl\n LVAh = LVAh * GzWn\n MKlR = MKlR * GzWn\n retu... | [
"0.741545",
"0.7392813",
"0.7284722",
"0.7190906",
"0.7182979",
"0.7154211",
"0.7123096",
"0.71174866",
"0.70556617",
"0.70417756",
"0.69756097",
"0.6871905",
"0.68521637",
"0.68361527",
"0.68091464",
"0.68086463",
"0.67906094",
"0.6731699",
"0.67304313",
"0.67274034",
"0.669... | 0.0 | -1 |
Convert nx4 boxes coordinates from xyxy format to xmymwh format. (x1, y1, x2, y2) where xy1=topleft, xy2=bottomright (xm, ym, w, h) xcenter ycenter, width, height. | def S20x(jNOo: Union[np.ndarray, torch.Tensor]) -> uLKX[oyIN.ndarray, ht2j.Tensor]:
XFf3 = jNOo.clone() if isinstance(jNOo, ht2j.Tensor) else jNOo.copy()
XFf3[:, 0] = (jNOo[:, 0] + jNOo[:, 2]) / 2
XFf3[:, 1] = (jNOo[:, 1] + jNOo[:, 3]) / 2
XFf3[:, 2] = jNOo[:, 2] - jNOo[:, 0]
XFf3[:, 3] = jNOo[:, 3]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mB7r(oUSw: np.array) -> oyIN.array:\n oUSw[..., 0] = oUSw[..., 0] - oUSw[..., 2] / 2\n oUSw[..., 1] = oUSw[..., 1] - oUSw[..., 3] / 2\n oUSw[..., 2] = oUSw[..., 0] + oUSw[..., 2]\n oUSw[..., 3] = oUSw[..., 1] + oUSw[..., 3]\n return oUSw",
"def x5dQ(oUSw):\n cviu = oyIN.zeros(oUSw.shape)\n ... | [
"0.72790796",
"0.72380066",
"0.70485616",
"0.69318014",
"0.6900929",
"0.683451",
"0.67552704",
"0.66656977",
"0.66656196",
"0.65630454",
"0.6550723",
"0.64708453",
"0.6383549",
"0.63413745",
"0.6299441",
"0.62793684",
"0.624992",
"0.6157106",
"0.6126333",
"0.6105238",
"0.6066... | 0.64998883 | 11 |
Returns a tuple that is the [lower, upper) bounds of this bucket. The lower bound of the first bucket is Infinity, and the upper bound of the last bucket is +Infinity. | def PeiE(YKHO, WE7e):
if WE7e < 0 or WE7e >= YKHO.total_buckets:
raise IndexError('bucket %d out of range' % WE7e)
if WE7e == YKHO.total_buckets - 1:
return (YKHO._lower_bounds[WE7e], float('Inf'))
return (YKHO._lower_bounds[WE7e], YKHO._lower_bounds[WE7e + 1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mm43(YKHO):\n LSh8 = YKHO._lower_bounds[0]\n for YRbF in Ni9Y(1, YKHO.total_buckets):\n CN9P = YKHO._lower_bounds[YRbF]\n yield (LSh8, CN9P)\n LSh8 = CN9P\n yield (LSh8, float('Inf'))",
"def pmnP(YKHO):\n LFlW, es2x, VnzS = (10000, 10000, 10000)\n _tIi, tlxW, W30o = (-1000... | [
"0.8170204",
"0.72578526",
"0.7065659",
"0.7021958",
"0.69613093",
"0.68987477",
"0.6888175",
"0.68696576",
"0.6862277",
"0.6831296",
"0.6825643",
"0.677113",
"0.6686822",
"0.6675468",
"0.66671413",
"0.66648155",
"0.6624111",
"0.6610917",
"0.66108996",
"0.65763694",
"0.657167... | 0.82785773 | 0 |
Generator that produces the [lower, upper) bounds of all buckets. | def mm43(YKHO):
LSh8 = YKHO._lower_bounds[0]
for YRbF in Ni9Y(1, YKHO.total_buckets):
CN9P = YKHO._lower_bounds[YRbF]
yield (LSh8, CN9P)
LSh8 = CN9P
yield (LSh8, float('Inf')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PeiE(YKHO, WE7e):\n if WE7e < 0 or WE7e >= YKHO.total_buckets:\n raise IndexError('bucket %d out of range' % WE7e)\n if WE7e == YKHO.total_buckets - 1:\n return (YKHO._lower_bounds[WE7e], float('Inf'))\n return (YKHO._lower_bounds[WE7e], YKHO._lower_bounds[WE7e + 1])",
"def gSR0(YKHO, ... | [
"0.7573677",
"0.73628",
"0.6909603",
"0.68796027",
"0.68222916",
"0.6327313",
"0.6302399",
"0.62847596",
"0.62519956",
"0.6121042",
"0.6089689",
"0.6057429",
"0.6056241",
"0.6044407",
"0.60231084",
"0.5976366",
"0.5970544",
"0.59474784",
"0.5943578",
"0.5915982",
"0.58931535"... | 0.87313205 | 0 |
takes the dot product of the vector and another vector | def BJ1H(YKHO, Elif):
if YKHO.shape != Elif.shape:
raise Rhzo()
else:
return sum([YKHO.values[d6pt] * Elif.values[d6pt] for d6pt in range(len(YKHO.values))]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QLUs(hQHm, jlSq):\n return hQHm.x * jlSq.x + hQHm.y * jlSq.y + hQHm.z * jlSq.z",
"def BJ1H(ENWa, ZoT5):\n return sum((XOOk * pHXX for XOOk, pHXX in zip(ENWa, ZoT5)))",
"def yYJc(hQHm, jlSq):\n return oyIN.dot(hQHm, jlSq)",
"def BJ1H(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exc... | [
"0.87325376",
"0.86952156",
"0.84879315",
"0.84399253",
"0.8425274",
"0.83896273",
"0.8377463",
"0.8363828",
"0.8357046",
"0.83329153",
"0.8285499",
"0.8279161",
"0.82709223",
"0.826449",
"0.825345",
"0.82238436",
"0.81963176",
"0.81900704",
"0.817703",
"0.81731206",
"0.81713... | 0.0 | -1 |
Returns the magnitude of the vector | def FOSW(YKHO):
return epAf.sqrt(sum([zZRI ** 2 for zZRI in YKHO.values])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(YKHO):\n return epAf.sqrt(Pusg(lambda WKvO, LVAh: WKvO + LVAh, [WKvO ** 2 for WKvO in YKHO.vector]))",
"def YXbZ(iArr):\n return epAf.sqrt(Lzxs(iArr))",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
... | [
"0.8607332",
"0.83465797",
"0.8337714",
"0.8268874",
"0.8267131",
"0.8244777",
"0.8046047",
"0.803577",
"0.791312",
"0.7877694",
"0.7852275",
"0.7811192",
"0.77554786",
"0.76608247",
"0.76422673",
"0.76422673",
"0.7610301",
"0.7584126",
"0.75666547",
"0.75289005",
"0.7493118"... | 0.68726724 | 34 |
Creates new instances from dictionary. | def bulR(asFK, i_PC):
Z9rn = PSrQ()
Z9rn.raw_config = asFK
Z9rn.base_directory = asFK['base_directory']
Z9rn.scratch_directory = asFK['scratch_directory']
UOrz = ['resources']
for XLMv in UOrz:
pAN_ = getattr(Z9rn, XLMv)
laOO(asFK.get(XLMv, []), pAN_, i_PC)
for XLMv in UOrz:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def jG8h(Emd4, cmPJ):\n KAOR = Emd4()\n for H5ew, BWXx in cmPJ.items():\n KAOR.__dict__[H5ew] = BWXx\n return KAOR",
"def jG8h(Emd4, cmPJ: Dict[str, Any]):\n return Emd4(**cmPJ)",
"def jG8... | [
"0.7975714",
"0.7975714",
"0.755238",
"0.7451603",
"0.7370652",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.736379",
"0.7... | 0.0 | -1 |
Type of the monitoring job. | def W7UD(Emd4):
return 'ModelBias' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ucry(YKHO):\n return YKHO._job_type",
"def ucry(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'job_type')",
"def type(YKHO) -> h8nf[qe4Y.Input['JobType']]:\n return qe4Y.get(YKHO, 'type')",
"def g8yp(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_details_type')",
"def g8yp(YKHO) -> str:\n ... | [
"0.79452276",
"0.7710846",
"0.7402716",
"0.7004238",
"0.7004238",
"0.7004238",
"0.6752077",
"0.6486656",
"0.62885904",
"0.62340164",
"0.6185555",
"0.6114646",
"0.6076853",
"0.60511374",
"0.60511374",
"0.60511374",
"0.60511374",
"0.60511374",
"0.60511374",
"0.60511374",
"0.605... | 0.0 | -1 |
Sets this object's schedule name to the name provided. This allows subsequent describe_schedule or list_executions calls to point to the given schedule. | def qD78(Emd4, olxh, UNf7=None):
UNf7 = UNf7 or DMju()
APtd = UNf7.describe_monitoring_schedule(monitoring_schedule_name=olxh)
W7UD = APtd['MonitoringScheduleConfig'].get('MonitoringType')
if W7UD != Emd4.monitoring_type():
raise TypeError('{} can only attach to ModelBias schedule.'.format(BcI9.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s2nd(YKHO, s2nd):\n YKHO._schedule_name = s2nd",
"def xyPJ(YKHO, s2nd):\n bD7m = 'schedules'\n xAU6 = '?query={}'.format(s2nd.replace(' ', '%'))\n xcA3 = YKHO._pagerduty_session_get(bD7m, xAU6).json()\n if len(xcA3['schedules']) == 0:\n raise Exception('Schedule \"{}\" not found'.format... | [
"0.88192904",
"0.7999869",
"0.7830659",
"0.7159031",
"0.70395786",
"0.69394153",
"0.69394153",
"0.653065",
"0.6498086",
"0.64289886",
"0.6303668",
"0.6217492",
"0.61572874",
"0.61572874",
"0.6145142",
"0.6125495",
"0.6119232",
"0.60983247",
"0.6076833",
"0.60676503",
"0.60671... | 0.0 | -1 |
Type of the monitoring job. | def W7UD(Emd4):
return 'ModelExplainability' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ucry(YKHO):\n return YKHO._job_type",
"def ucry(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'job_type')",
"def type(YKHO) -> h8nf[qe4Y.Input['JobType']]:\n return qe4Y.get(YKHO, 'type')",
"def g8yp(YKHO) -> str:\n return qe4Y.get(YKHO, 'job_details_type')",
"def g8yp(YKHO) -> str:\n ... | [
"0.79452276",
"0.7710846",
"0.7402716",
"0.7004238",
"0.7004238",
"0.7004238",
"0.6752077",
"0.6486656",
"0.62885904",
"0.62340164",
"0.6185555",
"0.6114646",
"0.6076853",
"0.60511374",
"0.60511374",
"0.60511374",
"0.60511374",
"0.60511374",
"0.60511374",
"0.60511374",
"0.605... | 0.604203 | 57 |
Sets this object's schedule name to the name provided. This allows subsequent describe_schedule or list_executions calls to point to the given schedule. | def qD78(Emd4, olxh, UNf7=None):
UNf7 = UNf7 or DMju()
APtd = UNf7.describe_monitoring_schedule(monitoring_schedule_name=olxh)
W7UD = APtd['MonitoringScheduleConfig'].get('MonitoringType')
if W7UD != Emd4.monitoring_type():
raise TypeError('{} can only attach to ModelExplainability schedule.'.fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s2nd(YKHO, s2nd):\n YKHO._schedule_name = s2nd",
"def xyPJ(YKHO, s2nd):\n bD7m = 'schedules'\n xAU6 = '?query={}'.format(s2nd.replace(' ', '%'))\n xcA3 = YKHO._pagerduty_session_get(bD7m, xAU6).json()\n if len(xcA3['schedules']) == 0:\n raise Exception('Schedule \"{}\" not found'.format... | [
"0.88192904",
"0.7999869",
"0.7830659",
"0.7159031",
"0.70395786",
"0.69394153",
"0.69394153",
"0.653065",
"0.6498086",
"0.64289886",
"0.6303668",
"0.6217492",
"0.61572874",
"0.61572874",
"0.6145142",
"0.6125495",
"0.6119232",
"0.60983247",
"0.6076833",
"0.60676503",
"0.60671... | 0.0 | -1 |
Tests the triangle_area function. | def QOe9(ZbiE, CSPF, mOlj, ymxS, tEh9, PD75):
print('A triangle with vertices (' + str(ZbiE) + ',' + str(CSPF) + '),')
print('(' + str(mOlj) + ',' + str(ymxS) + '), and')
print('(' + str(tEh9) + ',' + str(PD75) + ') has an area of')
print(str(cGOR(ZbiE, CSPF, mOlj, ymxS, tEh9, PD75)) + '.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def svSG(YKHO):\n YKHO.assertEqual(6, cGOR(YKHO.values['base'], YKHO.values['height']))",
"def R4jC(YKHO):\n Aofo = yzii.triangle_area(10, 5)\n YKHO.assertEqual(Aofo, 25)",
"def bVgR():\n hQHm = (0, 0)\n jlSq = (1, 0)\n bUZ8 = (0, 2)\n Qbpe = [hQHm, jlSq, bUZ8]\n aEqx = 1\n v66Q = nD... | [
"0.86155367",
"0.856417",
"0.85050195",
"0.79427975",
"0.7842579",
"0.76150316",
"0.741595",
"0.73901117",
"0.73285645",
"0.7316956",
"0.7307981",
"0.7201154",
"0.71656376",
"0.7159693",
"0.71319467",
"0.7101162",
"0.7070409",
"0.70696735",
"0.70656854",
"0.7062248",
"0.70501... | 0.7353802 | 8 |
Sets the warehouse_id of this ProductInventory. | def t_VS(YKHO, t_VS):
YKHO._warehouse_id = t_VS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IDut(YKHO, IDut):\n YKHO._inventory_id = IDut",
"def p63N(YKHO):\n joJ7 = YKHO.env['stock.inventory']\n for dHxa in YKHO:\n Lx3t = dHxa.product_id.with_context(location=dHxa.location_id.id, lot_id=dHxa.lot_id.id)\n prYD = dHxa._action_start_line()\n if dHxa.product_id.id and dHx... | [
"0.6164509",
"0.57944274",
"0.56671536",
"0.56671536",
"0.5652377",
"0.53858393",
"0.5384447",
"0.5361004",
"0.5318009",
"0.5301065",
"0.52795684",
"0.5219352",
"0.51637465",
"0.5142357",
"0.4920947",
"0.48942694",
"0.4867124",
"0.48104545",
"0.47848165",
"0.47802722",
"0.478... | 0.8336979 | 0 |
Sets the in_stock of this ProductInventory. | def ksW5(YKHO, ksW5):
YKHO._in_stock = ksW5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iMNw(YKHO, iMNw):\n if iMNw is None:\n raise ValueError('Invalid value for `is_in_stock`, must not be `None`')\n YKHO._is_in_stock = iMNw",
"def L64_(YKHO, L64_):\n YKHO._stock_id = L64_",
"def XZjP(YKHO, X1oz, uid7):\n DpUl.execute('UPDATE catalogue SET stock = ? WHERE productid = ? AND... | [
"0.7377579",
"0.59913296",
"0.5934978",
"0.5934945",
"0.5870628",
"0.57754326",
"0.57432187",
"0.56522363",
"0.5627049",
"0.5610558",
"0.5603841",
"0.56013626",
"0.54913306",
"0.5463092",
"0.53783",
"0.53699446",
"0.5362714",
"0.5338288",
"0.5305871",
"0.5302662",
"0.52313966... | 0.83905125 | 0 |
Sets the additional_fields of this ProductInventory. | def cu96(YKHO, cu96):
YKHO._additional_fields = cu96 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3",
"def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3",
"def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3",
"def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3",
"def Sno3(YKHO, Sno3):\n YKHO._custom_fields = Sno3",
"def y1dR(YKHO, y1dR)... | [
"0.5752643",
"0.5752643",
"0.5752643",
"0.5752643",
"0.5752643",
"0.5632876",
"0.5627395",
"0.5565864",
"0.5512944",
"0.54463583",
"0.5362765",
"0.533865",
"0.52753925",
"0.5234363",
"0.5213341",
"0.5210302",
"0.5203737",
"0.51939094",
"0.5171562",
"0.5169301",
"0.5150748",
... | 0.6904246 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, Cu7X):
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.84560555",
"0.83913696",
"0.8143685",
"0.81403786",
"0.8131871",
"0.8093231",
"0.80915105",
"0.80915105",
"0.80915105",
"0.8084564",
"0.8084564",
"0.8075547",
"0.8075547",
"0.8065006"
] | 0.0 | -1 |
Given a DataFrame, plot the correlation between columns. Function assumes all numeric continuous data. It masks the top half of the correlation matrix, since this holds the same values. Decomissioned for use of the dython associations function. | def r8zN(WKvO: Union[pd.DataFrame, np.ndarray], aNZO=None, T5my: bool=False, **B2fa) -> h8nf[oyIN.ndarray]:
if isinstance(WKvO, rLdf.DataFrame):
bSmD = WKvO.corr().values
elif isinstance(WKvO, oyIN.ndarray):
bSmD = oyIN.corrcoef(WKvO, rowvar=False)
else:
raise ValueError('Unknown dat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v1BU(jQ3Z):\n eHNT = QrM1.figure(figsize=(19, 15))\n QrM1.matshow(jQ3Z.corr().abs(), fignum=eHNT.number)\n BBLH = QrM1.colorbar()\n BBLH.ax.tick_params(labelsize=14)\n QrM1.title('Correlation Matrix', fontsize=16)",
"def yV8K(jQ3Z, AAHb):\n if not isinstance(jQ3Z, rLdf.DataFrame):\n ... | [
"0.7461798",
"0.7347706",
"0.73251384",
"0.70350003",
"0.6985054",
"0.69759643",
"0.6969627",
"0.6957218",
"0.69535625",
"0.69255793",
"0.69004166",
"0.6882208",
"0.6758976",
"0.67368037",
"0.6705809",
"0.6702674",
"0.66998357",
"0.66799664",
"0.6666793",
"0.665836",
"0.65973... | 0.6171213 | 38 |
Plot continous density function on optionally given ax. If no ax, cdf is plotted and shown. | def YzER(Z9NT, f5i1, VoLU: str='Values', IICq: str='Cumulative Sum', aNZO=None):
o4D3 = oyIN.sort(Z9NT)
ajwV = oyIN.sort(f5i1)
LVAh = oyIN.arange(1, len(Z9NT) + 1) / len(Z9NT)
aNZO = aNZO if aNZO else QrM1.subplots()[1]
evL5 = {'size': '14'}
aNZO.set_xlabel(VoLU, **evL5)
aNZO.set_ylabel(IICq... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sB_C(YKHO, nPrm, aNZO=None, UODG=False, **B2fa):\n Pyrc, NFei = YKHO.cdf(nPrm, survival=UODG, **B2fa)\n if not aNZO:\n LZpg, aNZO = QrM1.subplots()\n aNZO.loglog(Pyrc, NFei, **B2fa)\n else:\n LZpg = aNZO.get_figure()\n aNZO.plot(Pyrc, NFei, **B2fa)\n return (LZpg, aNZO)"... | [
"0.7151131",
"0.640917",
"0.63557786",
"0.621272",
"0.61949044",
"0.61315835",
"0.6122382",
"0.61173147",
"0.6033304",
"0.5762083",
"0.5757444",
"0.5717196",
"0.57103103",
"0.5702478",
"0.565598",
"0.56171894",
"0.55526465",
"0.55511624",
"0.5542126",
"0.55248004",
"0.5512110... | 0.5228244 | 48 |
Try to load the string with the json module. If successful it's a json file. | def kvgc(YKHO, Ux0P):
try:
qQXR.load(open(Ux0P))
return True
except Exception:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AXOg(YKHO, nMY2, H3eE):\n try:\n YKHO.json_dict = qQXR.loads(nMY2)\n YKHO.filename = H3eE\n return YKHO.json_dict\n except ValueError:\n print('JSON string content error in _load()')\n raise ValueError",
"def fl1R():\n cftY = '{\"foo\": \"bar\"}'\n in4Z = {'foo'... | [
"0.7805877",
"0.7704909",
"0.73687",
"0.73673046",
"0.724741",
"0.722549",
"0.7211943",
"0.71838015",
"0.717326",
"0.71039796",
"0.70954967",
"0.7087735",
"0.70365024",
"0.6962103",
"0.6911919",
"0.68721926",
"0.6851505",
"0.6828451",
"0.6823047",
"0.67897516",
"0.6781209",
... | 0.0 | -1 |
Compute softmax probability over raw logits. | def M49J(cCrA):
if not cCrA:
return []
jB5X = None
for p1kx in cCrA:
if jB5X is None or p1kx > jB5X:
jB5X = p1kx
KPVz = []
mq4h = 0.0
for p1kx in cCrA:
WKvO = oyIN.exp(p1kx - jB5X)
KPVz.append(WKvO)
mq4h += WKvO
BFeB = []
for p1kx in KP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n nwEM = oyIN.exp(WKvO)\n return nwEM / oyIN.sum(nwEM)",
"def N93T(WKvO):\n A3sN = oyIN.array(WKvO)\n xbFY = oyIN.exp(WKvO)\n return xbFY / sum(xbFY)",
"def N93T(g4y1):\n BFeB = oyIN.exp(g4y1)\n BFeB /= oyIN.sum(BFeB, axis=0)[oyIN.newaxis, :]\n return BFeB",
"def N93T(... | [
"0.77200097",
"0.7704036",
"0.77031845",
"0.7689372",
"0.76789933",
"0.7667026",
"0.7667026",
"0.7614546",
"0.7609603",
"0.75957626",
"0.7592047",
"0.75795877",
"0.7579332",
"0.7575453",
"0.7566295",
"0.75662047",
"0.7563993",
"0.7556705",
"0.7556705",
"0.7556705",
"0.7556705... | 0.0 | -1 |
The full URL to this host when deployed, for use in href attributes. | def QZnA(YKHO):
return 'http://{}:{}'.format(YKHO.basic_url, YKHO.port) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D3T3(YKHO):\n return '%s://%s%s' % (YKHO.protocol, YKHO.host, YKHO.uri)",
"def hKhs(YKHO) -> str:\n return TDhU(YKHO._base_url, YKHO.url)",
"def negx(YKHO):\n return 'http://{}:{}'.format(YKHO.host, YKHO.port)",
"def yBtl(YKHO):\n NzQY = YKHO.get_external_domain()\n mizK = YKHO.get_tls()\n... | [
"0.7733112",
"0.75688636",
"0.75384086",
"0.7512936",
"0.747791",
"0.7476851",
"0.7444745",
"0.7424831",
"0.7318727",
"0.7298595",
"0.729839",
"0.72969544",
"0.72949106",
"0.7290604",
"0.7290604",
"0.7290604",
"0.7254489",
"0.7233823",
"0.7220661",
"0.7199187",
"0.71988064",
... | 0.0 | -1 |
Whether or not the associated resource group exists on the cloud. | def cTKt(YKHO):
return V0S5().group_exists(ZWCE.group_name(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T6fW(YKHO, h85P):\n return YKHO.get_target_group_info(h85P) is not None",
"def Mkql(YKHO, I9O1):\n uOe2 = YKHO._resolve_group(I9O1)\n for Oa1e in YKHO.groups.query(name=uOe2.name):\n if Oa1e.name == uOe2.name:\n return True\n return False",
"def Mkql(YKHO, MjBJ):\n if not Y... | [
"0.70838195",
"0.6911127",
"0.68680817",
"0.6582228",
"0.6557702",
"0.6529358",
"0.6526806",
"0.6418921",
"0.63955855",
"0.6372062",
"0.6323255",
"0.6314798",
"0.6300838",
"0.62944514",
"0.6255041",
"0.6254257",
"0.6238047",
"0.6232726",
"0.6216354",
"0.6176009",
"0.6155225",... | 0.7980444 | 0 |
Return the Python representation of ``s`` (a ``str`` or ``unicode`` instance containing a JSON document) | def x8I_(YKHO, KCHu, VzLM=d1zo.match, ggxu=Lpna):
if ggxu and isinstance(KCHu, iauG):
KCHu = KCHu.decode(YKHO.encoding)
YEnM, Os4s = YKHO.raw_decode(KCHu)
Os4s = VzLM(KCHu, Os4s).end()
if Os4s != len(KCHu):
raise bZdH('Extra data', KCHu, Os4s, len(KCHu))
return YEnM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vmDR(KCHu):\n return qQXR.dumps(KCHu.as_dict())",
"def Jjk4(KCHu):\n return jnRN(KCHu.as_dict(), safe=False)",
"def nMY2(Rf_J: Union[Dict[str, Any], Input, str]) -> str:\n if type(Rf_J) is dict:\n Rf_J = qQXR.dumps(Rf_J)\n elif type(Rf_J) is X6a0:\n Rf_J = qQXR.dumps(Rf_J.__dict__... | [
"0.7389859",
"0.6503537",
"0.6422268",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
"0.63213587",
... | 0.0 | -1 |
Return an ASCIIonly JSON representation of a Python string | def iGZj(KCHu, ggxu=Lpna):
if ggxu:
if isinstance(KCHu, iauG):
KCHu = KCHu.decode('utf-8')
elif isinstance(KCHu, str) and HAIz.search(KCHu) is not None:
KCHu = KCHu.decode('utf-8')
def qx_G(kUBT):
KCHu = kUBT.group(0)
try:
return I0A5[KCHu]
ex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IxRr(YKHO, vIwR):\n B2fa = {'cls': sFr4, 'indent': 1, 'sort_keys': True, 'separators': (',', ': ')}\n return Ur3m(qQXR.dumps(vIwR, **B2fa), 'utf-8')",
"def Dbb4(YKHO, vIwR):\n return qQXR.dumps(vIwR)",
"def Xxid(object):\n return qQXR.dumps(object, ensure_ascii=False)",
"def vmDR(KCHu):\n ... | [
"0.8173381",
"0.7761752",
"0.73871756",
"0.7306732",
"0.7114988",
"0.6949071",
"0.6896345",
"0.68929964",
"0.6786643",
"0.67857534",
"0.6751209",
"0.66860336",
"0.66523707",
"0.66367877",
"0.6627448",
"0.66205585",
"0.6590046",
"0.6590046",
"0.6590046",
"0.6590046",
"0.659004... | 0.0 | -1 |
Constructor for JSONEncoder, with sensible defaults. If skipkeys is false, then it is a TypeError to attempt encoding of keys that are not str, int, long, float or None. If skipkeys is True, such items are simply skipped. If ensure_ascii is true, the output is guaranteed to be str objects with all incoming unicode char... | def FIMM(YKHO, W1FA=False, X7g_=True, zIQ5=True, gZeu=True, u2qj=False, MnRD=None, Kwd0=None, tZ2K='utf-8', WmM4=None, W4gv=True, jyQX=True, RSHr=True, g9Ij=False, X_o7=None):
YKHO.skipkeys = W1FA
YKHO.ensure_ascii = X7g_
YKHO.check_circular = zIQ5
YKHO.allow_nan = gZeu
YKHO.sort_keys = u2qj
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PjZe(YEnM, W1FA=False, X7g_=True, zIQ5=True, gZeu=True, Emd4=None, MnRD=None, Kwd0=None, tZ2K='utf-8', WmM4=None, u2qj=False, **YSA3):\n if not W1FA and X7g_ and zIQ5 and gZeu and (Emd4 is None) and (MnRD is None) and (Kwd0 is None) and (tZ2K == 'utf-8') and (WmM4 is None) and (not u2qj) and (not YSA3):\n ... | [
"0.7841536",
"0.76318866",
"0.6674009",
"0.6602294",
"0.64573807",
"0.6386735",
"0.61420614",
"0.5870939",
"0.583436",
"0.582956",
"0.58067137",
"0.57632715",
"0.57514626",
"0.5742633",
"0.5742329",
"0.56044716",
"0.55965227",
"0.5562437",
"0.55547315",
"0.55540115",
"0.54955... | 0.5755817 | 12 |
Checks if the ball enters the provided regions | def qaDk(YKHO, EmUK) -> xqJY:
for zn0c in YKHO.regions:
if YwX5.contains(zn0c, YwX5.createPoint(EmUK.ball.current_state.global_position)):
return xqJY.PASSING
return xqJY.FAILING | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AF88(YKHO, zn0c):\n if YKHO.x2 < zn0c.x1:\n return False\n if YKHO.x1 > zn0c.x2:\n return False\n if YKHO.y2 < zn0c.y1:\n return False\n if YKHO.y1 > zn0c.y2:\n return False\n return True",
"def QwmK(YKHO, hbVz):\n if hbVz.gl > 180.0:\n hbVz.gl -= 360.0\n ... | [
"0.69990134",
"0.6617942",
"0.6469112",
"0.6441537",
"0.6407256",
"0.6396766",
"0.63359696",
"0.6300389",
"0.6299785",
"0.62835896",
"0.6273223",
"0.6267162",
"0.62645406",
"0.623665",
"0.6203495",
"0.6199588",
"0.61965483",
"0.6186781",
"0.6151584",
"0.61507994",
"0.61301345... | 0.0 | -1 |
Get absolute path to resource, works for dev and for PyInstaller | def thjq(T6eH):
try:
XSj5 = HwRy._MEIPASS
return Hy7s.path.join(XSj5, Hy7s.path.basename(T6eH))
except Exception:
XSj5 = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))
return Hy7s.path.join(XSj5, T6eH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join... | [
"0.83695436",
"0.8280479",
"0.82485795",
"0.8139178",
"0.8114118",
"0.80985415",
"0.80940944",
"0.80797124",
"0.80677074",
"0.80673695",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.8062465",
"0.80569947",
"0.80545217",
"0.80448323",
"0.804... | 0.7358136 | 67 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + 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.80379355",
"0.79237956",
"0.7922027",
"0.78840584",
"0.7876208",
"0.78144675",
"0.77643776",
"0.77544284",
"0.7743112",
"0.7730491",
"0.772761",
"0.7723601",
"0.7701434",
"0.768797",
"0.768797",
"0.7662925",
"0.765581",
"0.765473",
"0.765473",
"0.76447",
"0.76447",
"0.76... | 0.743674 | 98 |
generate a nonce any approach which produces a relatively random alphanumeric string should be OK. | def ytOB(YKHO):
WPdU = tuKI.getrandbits(32 * 8)
C5N_ = ''
for YRbF in range(32):
YGdm = WPdU % 256
WPdU /= 256
C5N_ += chr(YGdm)
ERVO = WR89.b64encode(C5N_)
return ERVO.rstrip('=').replace('+', 'A').replace('/', 'B') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kBBd():\n return str(int(round(ITS7.time() * 1000)))",
"def kBBd():\n return kxTZ().hex",
"def GMXN():\n mZOz = '%Y-%m-%dT%H:%M:%SZ'\n Cd1f = ITS7.strftime(mZOz, ITS7.gmtime())\n jUwZ = ''\n for tdoI in range(0, 128):\n if chr(tdoI).isalpha() or chr(tdoI).isalnum():\n jU... | [
"0.8591053",
"0.8586692",
"0.85286474",
"0.8491104",
"0.8491104",
"0.8474032",
"0.83049124",
"0.82906467",
"0.8214552",
"0.8138846",
"0.80913",
"0.80913",
"0.7977414",
"0.78299505",
"0.78022283",
"0.7548465",
"0.7408869",
"0.73951733",
"0.7339227",
"0.7295845",
"0.72536653",
... | 0.76117766 | 15 |
Add new experience to memory | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)
YKHO.memory.append(GsKL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)",
"def lVty(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YKHO.buffer.append(GsKL)",
"def ilp5(YKHO, XeOP, QTBn, vOGg, f9TP):\n ... | [
"0.7707071",
"0.7609556",
"0.7474518",
"0.728529",
"0.72838557",
"0.709813",
"0.7017289",
"0.6950786",
"0.69280106",
"0.6862262",
"0.6862262",
"0.6862262",
"0.6862262",
"0.6862262",
"0.6862262",
"0.6862262",
"0.6862262",
"0.6862262",
"0.6862262",
"0.6862262",
"0.6766821",
"... | 0.74314296 | 3 |
Build an actor (policy) network that maps states > actions. | def n8cN(YKHO):
wspz = fhcK.Input(shape=(YKHO.state_size,), name='states')
RG9Q = EcCx.VarianceScaling(scale=1.0, mode='fan_in', distribution='normal', seed=None)
Zxma = fhcK.Dense(units=400, activation='elu', kernel_initializer=RG9Q)(wspz)
Zxma = fhcK.Dense(units=300, activation='elu', kernel_initializ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j1Fc(wspz, HQGy, NArs, h7Vl):\n NtOa = h7Vl + '/'\n with ZylS.variable_scope(h7Vl):\n OCat = ZylS.layers.dense(wspz, units=NArs.actor_hidden_units[0], activation=None, kernel_initializer=NArs.initializer)\n if NArs.use_batch_norm:\n OCat = ZylS.layers.layer_norm(OCat, center=True... | [
"0.69356495",
"0.636351",
"0.6270465",
"0.62087923",
"0.62009275",
"0.6187312",
"0.61473614",
"0.6146225",
"0.6128509",
"0.60179603",
"0.6002386",
"0.5976266",
"0.5959938",
"0.5952642",
"0.594925",
"0.59280884",
"0.5916518",
"0.5898108",
"0.58937097",
"0.5891148",
"0.5880467"... | 0.0 | -1 |
Assume that MAZE is a rectangular 2D array (list of lists) where maze[r][c] is true iff there is a concrete block occupying column c of row r. ROW0 and COL0 are the initial row and column of the prisoner. Returns true iff there is a path of empty squares that are horizontally or vertically adjacent to each other starti... | def Za3O(ku3c, nlpD, TxAA):
azXi = set()
WfCS, usx6 = (range(len(TxAA[0])), range(len(TxAA)))
def FVGx(Mkmy, Z9rn):
"""True iff is a path of empty, unvisited cells from (R, C) out of maze."""
if Mkmy not in usx6 or Z9rn not in WfCS:
return True
elif TxAA[Mkmy][Z9r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JUuP(iBIi):\n for rdlD in iBIi:\n for mrj1 in rdlD:\n if mrj1 == '*':\n return False\n return True",
"def xreD(iBIi, rdlD, iVRZ):\n bdxl = list(WVhd.neighborsList(iBIi, 1, rdlD, iVRZ))\n for U6D_ in bdxl:\n if not WVhd.isEmpty(iBIi, U6D_[0], U6D_[1]):\n ... | [
"0.6406011",
"0.63258815",
"0.62363464",
"0.6219696",
"0.6212434",
"0.62058043",
"0.61897993",
"0.6116551",
"0.60529155",
"0.60384476",
"0.6036287",
"0.6032698",
"0.6012134",
"0.60030794",
"0.59859455",
"0.59746796",
"0.5953047",
"0.5921198",
"0.5915295",
"0.58916277",
"0.588... | 0.7195388 | 0 |
True iff is a path of empty, unvisited cells from (R, C) out of maze. | def FVGx(Mkmy, Z9rn):
if Mkmy not in usx6 or Z9rn not in WfCS:
return True
elif TxAA[Mkmy][Z9rn] or (Mkmy, Z9rn) in azXi:
return False
else:
azXi.add((Mkmy, Z9rn))
return FVGx(Mkmy + 1, Z9rn) or FVGx(Mkmy - 1, Z9rn) or FVGx(Mkmy, Z9rn + 1) or FVGx(Mkmy, Z9rn - 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Za3O(ku3c, nlpD, TxAA):\n azXi = set()\n WfCS, usx6 = (range(len(TxAA[0])), range(len(TxAA)))\n\n def FVGx(Mkmy, Z9rn):\n \"\"\"True iff is a path of empty, unvisited cells from (R, C) out of maze.\"\"\"\n if Mkmy not in usx6 or Z9rn not in WfCS:\n return True\n ... | [
"0.70624137",
"0.68595284",
"0.6733619",
"0.65522736",
"0.6527314",
"0.64794415",
"0.64671725",
"0.64547527",
"0.63852763",
"0.63625515",
"0.63525426",
"0.6348405",
"0.63012356",
"0.6231833",
"0.62082386",
"0.6181732",
"0.6176096",
"0.6172059",
"0.61506987",
"0.6145246",
"0.6... | 0.5904503 | 43 |
A Tree with given label and children. For convenience, if children[k] is not a Tree, it is converted into a leaf whose operator is children[k]. | def FIMM(YKHO, UXqs, *afYC):
YKHO.__label = UXqs
YKHO.__children = [Z9rn if type(Z9rn) is UD_O else UD_O(Z9rn) for Z9rn in afYC] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, UXqs, *afYC):\n YKHO.__label = UXqs\n YKHO.__children = [Z9rn if type(Z9rn) is UD_O else UD_O(Z9rn) for Z9rn in afYC]",
"def J_Es(UXqs, GZiu=[]):\n for jehQ in GZiu:\n assert y8Td(jehQ), 'branches must be trees'\n return [UXqs] + list(GZiu)",
"def na3Q(J_Es, UXqs=None):\n K... | [
"0.7163515",
"0.64173216",
"0.6144817",
"0.5953546",
"0.5890156",
"0.5888928",
"0.57656956",
"0.5721938",
"0.5655272",
"0.56364053",
"0.56037146",
"0.5599821",
"0.55800366",
"0.5574726",
"0.5572648",
"0.55561084",
"0.55426395",
"0.5532823",
"0.55194116",
"0.5519082",
"0.54744... | 0.7147395 | 1 |
Number of leaf nodes in the Tree T. | def W8Ya(Kt_s):
if Kt_s.is_leaf:
return 1
else:
KCHu = 0
for aUGN in Kt_s:
KCHu += W8Ya(aUGN)
return KCHu
return xBlr.reduce(seET.add, map(W8Ya, Kt_s), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8Ya(a1PO: Tree) -> int:\n if a1PO.children == []:\n return 1\n else:\n return sum([W8Ya(aUGN) for aUGN in a1PO.children])",
"def W8Ya(YKHO) -> int:\n if YKHO.children == []:\n return 1\n else:\n return sum([WKvO.leaf_count() for WKvO in YKHO.children])",
"def tIln(K... | [
"0.87792015",
"0.86984694",
"0.8363531",
"0.83214927",
"0.8320937",
"0.789062",
"0.78523636",
"0.78494376",
"0.7846712",
"0.7814548",
"0.76643425",
"0.7588327",
"0.7572381",
"0.75621325",
"0.7480115",
"0.7463508",
"0.73346376",
"0.7332298",
"0.7326017",
"0.73081714",
"0.72246... | 0.8069077 | 5 |
Returns the number of ways of representing n using the coins 1, 5, 10, 25. | def xrcs(exwG):
return OnDr([1, 5, 10, 25], exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JKt7(exwG):\n if exwG < 0:\n return 0\n elif exwG == 0:\n return 1\n else:\n wjRY = 0\n for YRbF in range(1, min(exwG, 3) + 1):\n wjRY += JKt7(exwG - YRbF)\n return wjRY",
"def yKtU(exwG):\n if exwG == 0 or exwG == 1:\n return 1\n Y3Dn = 1\n... | [
"0.8170431",
"0.7707872",
"0.7638492",
"0.70050895",
"0.66066194",
"0.6571325",
"0.6491194",
"0.6465131",
"0.6441236",
"0.64319307",
"0.6426987",
"0.64118636",
"0.6405003",
"0.6394261",
"0.63854074",
"0.63723606",
"0.63432866",
"0.63349",
"0.6324204",
"0.63181853",
"0.6287646... | 0.8904059 | 0 |
r""" Returns whether a candidate username is valid. It must contain | def Gt2s(NtEF):
import string
if not (len(NtEF) > 2 and len(NtEF) < 65):
return False
if not NtEF[0] in string.letters:
return False
r8hN = TFh5.match(NtEF)
return r8hN.start() == 0 and r8hN.end() == len(NtEF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N3mX(NtEF: str) -> bool:\n if sjSk <= len(NtEF) < iIx2:\n return bool(ZbWC.search(apw8, NtEF))\n return False",
"def Gt2s(YKHO, NtEF):\n gVaL = '^[a-zA-Z]{3,}$'\n return ZbWC.match(gVaL, NtEF)",
"def mxq9(YKHO, NtEF):\n if YKHO.username_regex.search(NtEF) is not None:\n print('... | [
"0.82025987",
"0.8173515",
"0.80325276",
"0.8028382",
"0.7975582",
"0.79197615",
"0.78914243",
"0.78454524",
"0.78387666",
"0.7767522",
"0.77501625",
"0.77213436",
"0.77108395",
"0.7708148",
"0.7706937",
"0.768852",
"0.7686954",
"0.76003015",
"0.7584706",
"0.75082517",
"0.750... | 0.79633546 | 5 |
r""" Return True if and only if ``password`` is valid, i.e., is between 4 and 32 characters long, doesn't contain space(s), and doesn't contain ``username``. | def W5z7(jTXt, NtEF):
import string
if len(jTXt) < 4 or ' ' in jTXt:
return False
if NtEF:
if string.lower(NtEF) in string.lower(jTXt):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kOTF(NtEF, jTXt):\n BHGE = ZbWC.search('\\\\d+', jTXt)\n PVq6 = ZbWC.search('[A-Z]+', jTXt)\n Fb9w = len(jTXt) > A6jg\n RtRb = ZbWC.search('[\\\\-\\\\/\\\\@\\\\?\\\\!\\\\,\\\\.\\\\#\\\\&\\\\*]+', jTXt)\n WNtM = BHGE and PVq6 and Fb9w and RtRb\n if WNtM:\n return True\n return False"... | [
"0.8413704",
"0.8253108",
"0.81500554",
"0.81450474",
"0.80467796",
"0.80194587",
"0.80037874",
"0.79487133",
"0.79376817",
"0.793012",
"0.790427",
"0.79011995",
"0.7829927",
"0.7755393",
"0.7753331",
"0.77316546",
"0.77077174",
"0.7703221",
"0.7693121",
"0.7687667",
"0.76866... | 0.88350177 | 0 |
Goes to the home page | def iuD1():
E_qD.get(vja_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oUar(YKHO):\n if YKHO.home_url is not None:\n YKHO.set_url(YKHO.home_url)",
"def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)",
"def BZ0h():\n if not bIYZ:\n eTsH(404)\n return vKnz(bIYZ)",
"def oUar(QePW):\n bD7m = QePW.route_url('home', _app_url=NxLh(QeP... | [
"0.8276103",
"0.8050566",
"0.8050566",
"0.801638",
"0.79798096",
"0.78557956",
"0.7794467",
"0.7788585",
"0.7787083",
"0.7738189",
"0.77336496",
"0.7720103",
"0.77095175",
"0.7690481",
"0.7649062",
"0.7635818",
"0.7622547",
"0.7541022",
"0.7534915",
"0.75132096",
"0.75105333"... | 0.7698908 | 13 |
Given a linear index (integer between 0 and outdim), returns the bin indices for each of the state dimensions. | def mnBn(YKHO, KBfg):
return KBfg / YKHO.magic_array % YKHO.nbins_across_dims | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S9XX(UY63, EopV=None, KQ7o=20):\n if EopV is None:\n EopV = []\n for IInG in range(UY63.shape[1]):\n EopV.append(XTiz.linspace(XTiz.min(IInG), XTiz.max(IInG), KQ7o + 1)[1:-1])\n Kr4p = XTiz.zeros(len(UY63), dtype=XTiz.int)\n for jDK_, yVJx in enumerate(EopV):\n Kr4p *= ... | [
"0.6318626",
"0.60193294",
"0.5965671",
"0.5952402",
"0.5927503",
"0.5797661",
"0.5770164",
"0.57490516",
"0.572948",
"0.57134926",
"0.5675638",
"0.5661051",
"0.56601435",
"0.56357145",
"0.56357145",
"0.56162226",
"0.5607805",
"0.5594806",
"0.55804384",
"0.5574714",
"0.555152... | 0.71380746 | 0 |
Return instance of player by index in the list | def GFCh(YKHO, or8S):
return YKHO.players[or8S] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GFCh(YKHO, d6pt):\n if type(d6pt) is not int:\n raise TypeError('The index passed to getPlayer must be of type int.')\n elif d6pt < 0 or d6pt >= len(YKHO.__colordict__.keys()):\n raise IndexError('Index less than 0 or greater than or equal to the number of ' + 'players in the game.')\n t... | [
"0.7225015",
"0.7059273",
"0.68231434",
"0.6478474",
"0.647411",
"0.6439984",
"0.6266633",
"0.62629753",
"0.61795074",
"0.6134053",
"0.60877204",
"0.6051445",
"0.5985431",
"0.59811187",
"0.5975781",
"0.5903814",
"0.5899067",
"0.58785975",
"0.5859788",
"0.5832354",
"0.5830776"... | 0.7650819 | 0 |
Returns the status of the pod. | def VLTN():
if QePW.method == 'GET':
'\n request looks like:\n {\n "workflow_name": "test-workflow"\n }\n '
qv1X = QePW.get_json(force=True)
if jDRa(qv1X['workflow_name']):
geh0 = {'status': 'Still running'}
else:
P4t4.lo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO) -> qe4Y.Output['outputs.JobStatus']:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(YKHO):\n return YKHO._get(path='status')",
"def jGRS(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'status')",
"def jGRS(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'status')"... | [
"0.72762626",
"0.72277206",
"0.7176679",
"0.7176679",
"0.7176679",
"0.71301764",
"0.7123881",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
"0.7107593",
... | 0.79594374 | 0 |
Build and return a data loader. | def RuZU(GPtr):
W7C9 = [Kt_s.Resize((256, 128)), Kt_s.RandomHorizontalFlip(), Kt_s.ToTensor(), Kt_s.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])]
W7C9 = Kt_s.Compose(W7C9)
aLdE = [Kt_s.Resize((256, 128)), Kt_s.ToTensor(), Kt_s.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5])]
aLdE = Kt_s.Com... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RuZU(nPrm, qQXR, Ep8u, hXNa, I7Gy):\n __n6 = uUr5(nPrm, qQXR)\n zQKy = ht2j.utils.data.DataLoader(dataset=__n6, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy, collate_fn=QxcP)\n return zQKy",
"def cMaC(YKHO) -> pVAc:\n pass",
"def rHzL(YKHO, **B2fa):\n return pVAc(YKHO, **B2fa)",
"def JW... | [
"0.74896806",
"0.7352408",
"0.7116231",
"0.703314",
"0.6993853",
"0.69911397",
"0.69694024",
"0.69258267",
"0.6925624",
"0.6866596",
"0.68356377",
"0.68205285",
"0.6814369",
"0.6809004",
"0.6807265",
"0.6693439",
"0.66928136",
"0.6689916",
"0.66793126",
"0.665312",
"0.6646554... | 0.6316193 | 35 |
Tests whether ``ApplicationRoleConnection.__repr__`` works as intended. | def W16L():
UeG4 = 'buta'
y_ul = 'otome'
sZpf = {'old': '1'}
UzPC = u9gp(platform_name=UeG4, platform_user_name=y_ul, metadata_values=sZpf)
Qg87.assert_instance(repr(UzPC), str) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yrtM(Emd4) -> bool:\n raise NotImplementedError",
"def H4zp(YKHO):\n YKHO.assertEquals(repr(YKHO.tabView), '<TabView topLevel=False tabs=%r>' % YKHO.tabs)",
"def H4zp(YKHO, Mkmy, sWfS):\n assert repr(Mkmy) == sWfS",
"def H4zp(YKHO):\n Vo9x = yp3N()\n repr(Vo9x)",
"def H4zp(YKHO):\n YK... | [
"0.6745693",
"0.65486985",
"0.65423334",
"0.6459256",
"0.62968767",
"0.62698096",
"0.6243799",
"0.615087",
"0.61474997",
"0.60385793",
"0.60331905",
"0.6028509",
"0.6010869",
"0.60008466",
"0.59883606",
"0.59846157",
"0.59846157",
"0.5938847",
"0.5897374",
"0.58890253",
"0.58... | 0.806551 | 0 |
Tests whether ``ApplicationRoleConnection.__eq__`` works as intended. | def CErg():
UeG4 = 'buta'
y_ul = 'otome'
sZpf = {'old': '1'}
nURT = {'platform_name': UeG4, 'platform_user_name': y_ul, 'metadata_values': sZpf}
UzPC = u9gp(**nURT)
Qg87.assert_eq(UzPC, UzPC)
Qg87.assert_ne(UzPC, object())
for vXX7, sjci in (('platform_name', None), ('platform_user_name'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: 'Role') -> bool:\n if not isinstance(Elif, YKHO.__class__):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def xa14(YKHO, Elif):\n if isinstance(Elif, naiQ):\n return YKHO._im_func == Elif._im_func and YKHO._im_self_ref == Elif._im_self_ref and (YKHO._im_cla... | [
"0.71062076",
"0.7066842",
"0.6988803",
"0.68393695",
"0.68366027",
"0.6831782",
"0.66683984",
"0.6653032",
"0.66249555",
"0.66249555",
"0.66249555",
"0.66249555",
"0.66249555",
"0.66249555",
"0.66249555",
"0.66249555",
"0.66249555",
"0.66249555",
"0.66249555",
"0.6578068",
"... | 0.7928563 | 0 |
Get the answers list of a given question_id | def aFY5(JVBp, fWNC, lTaB=None, B2Dn=1, TBsA=False, Tj1O=False, GBmG=100, BA9O='votes'):
pmON = 'questions/%d/answers' % JVBp
hRyo = '.p-I38n'
if TBsA:
hRyo = '-m8C*uMP-q0'
if Tj1O:
hRyo = ')(Ybp0wdAN'
if TBsA and Tj1O:
hRyo = 'D9l0ZsiD'
if GBmG == 0:
hRyo = '!-q2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, JVBp):\n geh0 = LdTk.get_all_answers(JVBp)\n return geh0",
"def CUt_(YKHO, cvsF):\n return YKHO._answers_by_id.get(cvsF)",
"def sNEE(CXYT, JVBp):\n eL5G = [U6D_ for U6D_ in CXYT if U6D_['question_id'] == JVBp]\n if eL5G:\n return eL5G\n return False",
"def rRTz(YKHO):\... | [
"0.7881036",
"0.74949026",
"0.7257717",
"0.7236561",
"0.7148829",
"0.68085486",
"0.6751629",
"0.6680172",
"0.6677202",
"0.66614604",
"0.65761554",
"0.6564532",
"0.65357995",
"0.6373324",
"0.62934756",
"0.6293136",
"0.62627447",
"0.6252867",
"0.6192842",
"0.6075509",
"0.604657... | 0.67658585 | 6 |
Builds the API URL for fetching results. | def z03H(pmON, fWNC, **NArs):
xDcj = ['%s=%s' % (H5ew, NArs[H5ew]) for H5ew in NArs if NArs[H5ew] or H5ew == 'pagesize']
R7S5 = '&'.join(xDcj)
bD7m = '%s/%s/%s?' % (pCvm, acxN, pmON)
bD7m += R7S5
return bD7m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F5bL(YKHO, O9Yh, nNXP):\n Ms2Z = '%s%s%s' % (nNXP, O9Yh, YKHO.api_key)\n return Ms2Z",
"def z03H(YKHO, OFMJ, **B2fa):\n B2fa['key'] = YKHO.api_key\n if 'language' not in B2fa:\n B2fa['language'] = YKHO.language\n if 'format' not in B2fa:\n B2fa['format'] = YKHO.__format\n kcRE... | [
"0.77091813",
"0.75082874",
"0.74344903",
"0.72820085",
"0.71979994",
"0.71971315",
"0.7070169",
"0.7069157",
"0.7069157",
"0.70579827",
"0.6947857",
"0.6916341",
"0.69012713",
"0.68881667",
"0.6878032",
"0.6861863",
"0.68463403",
"0.67982954",
"0.67475265",
"0.6737456",
"0.6... | 0.70509595 | 10 |
Returns the item at position iter_counter from iterable iter_num. First we try to retrieve it from the cache. If we fail, then retrieve it from the iterable. Returns None if no more items are left. | def Sbhq(YKHO, f8ix, Zy9t):
assert f8ix < len(YKHO.iterables)
ZfUD = YKHO.history_items[f8ix].get(Zy9t, 'unexplored')
if ZfUD == 'unexplored':
try:
ZfUD = YKHO.iterables[f8ix].next()
except StopIteration:
ZfUD = None
YKHO.history_items[f8ix][Zy9t + 1] = ZfUD
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e0s1(YKHO, oHE7, or8S):\n zNig = len(YKHO)\n or8S = seET.index(or8S)\n if not -zNig <= or8S < zNig:\n raise IndexError('index {} is out of range'.format(or8S))\n or8S %= zNig\n return next(Hs6x.islice(oHE7, or8S, None))",
"def vFtO(YKHO):\n try:\n U5bT = YKHO.work[_qLf(YKHO.i)... | [
"0.6466208",
"0.61976546",
"0.610565",
"0.60025674",
"0.5975917",
"0.5896563",
"0.5891029",
"0.5882008",
"0.5769617",
"0.5724124",
"0.56661123",
"0.5661857",
"0.5642048",
"0.5608716",
"0.55899316",
"0.5588746",
"0.5581726",
"0.55711037",
"0.5548941",
"0.5545475",
"0.5538849",... | 0.6891464 | 0 |
Returns a tuple with the first element of the iterable, and the iterable. It returns None if the iterable is exhausted. | def e5sv(OxJJ):
try:
ZQQe = OxJJ.next()
_Gy1 = Hs6x.chain([ZQQe], OxJJ)
return (ZQQe, _Gy1)
except StopIteration:
return (None, OxJJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WeXW(OxJJ):\n try:\n cntZ = next(OxJJ)\n except StopIteration:\n return None\n if cntZ is None:\n return None\n return Hs6x.chain([cntZ], OxJJ)",
"def cntZ(OxJJ: t.Iterable[T]) -> Kt_s:\n return next(iter(OxJJ))",
"def x1W4(OxJJ: Iterable[Tuple[Any, ...]]) -> AzJI[bDy6[I... | [
"0.72285706",
"0.6918471",
"0.6651263",
"0.6537334",
"0.64549786",
"0.6413649",
"0.63581884",
"0.635215",
"0.635215",
"0.6339364",
"0.63305384",
"0.632527",
"0.6275617",
"0.6250987",
"0.62166786",
"0.61677766",
"0.6158402",
"0.6071349",
"0.60561216",
"0.6054858",
"0.6038312",... | 0.7495007 | 0 |
Takes in a list of all raw text Returns list of raw text without stop words based on document frequency and TFIDF | def g8pp(eU_s, HMp8=0.75):
KxLt = oNB5()
F_On = KxLt.fit_transform([A97Q.lower() for A97Q in eU_s])
OeUg = KxLt.get_feature_names()
A0RF = F_On.todense()
HgSF = A0RF.tolist()
XTZa = rLdf.DataFrame(HgSF, columns=OeUg)
B82q = dict.fromkeys(OeUg, 0)
for GIN8, nPrm in XTZa.iteritems():
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OTws(przZ):\n b0j5 = M9Fq('\\\\w+')\n s2mk = b0j5.tokenize(przZ.lower())\n hwHU = set(Dhdw.corpus.stopwords.words('english'))\n i6lF = [yzQ0 for yzQ0 in s2mk if not yzQ0 in hwHU]\n return i6lF",
"def biH0(l5Ny, QTg7=5):\n l5Ny = ZbWC.sub(\"[^A-Za-z0-9(),!?\\\\'\\\\`]\", ' ', l5Ny)\n l5Ny... | [
"0.69431984",
"0.6630494",
"0.6602285",
"0.6583488",
"0.6578389",
"0.6571684",
"0.6531152",
"0.6481732",
"0.64261454",
"0.64218646",
"0.6381453",
"0.6365398",
"0.6362743",
"0.63601077",
"0.6340669",
"0.63333184",
"0.6323711",
"0.6313189",
"0.6302088",
"0.6294493",
"0.627699",... | 0.6817782 | 1 |
return true if obj is exactly a class | def plAK(YEnM, J9Xy):
return type(YEnM) is J9Xy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bk6c(YEnM, J9Xy):\n if isinstance(YEnM, J9Xy) is True:\n return True\n else:\n return False",
"def as9g(object):\n return isinstance(object, (type, SnBA.ClassType))",
"def Bk6c(YEnM, J9Xy):\n if isinstance(YEnM, J9Xy):\n return True\n else:\n return False",
"def... | [
"0.8230429",
"0.8198473",
"0.8196204",
"0.8196204",
"0.81858844",
"0.8147639",
"0.8143109",
"0.8136343",
"0.8117038",
"0.8117038",
"0.8117038",
"0.8117038",
"0.8117038",
"0.8117038",
"0.80860734",
"0.8085975",
"0.8058114",
"0.8052911",
"0.80333",
"0.80274004",
"0.7980031",
... | 0.79976004 | 20 |
Gets the avg_inference_time of this Dashboard. | def vTp5(YKHO):
return YKHO._avg_inference_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kH1T(YKHO):\n return YKHO._avg_training_time",
"def DIRX(YKHO):\n return YKHO._total_time['value'] / 1000 / YKHO._total_time['count'] if YKHO._total_time['count'] else 0",
"def vTp5(YKHO, vTp5):\n YKHO._avg_inference_time = vTp5",
"def qqgr(YKHO):\n return sum(YKHO.times) / len(YKHO.times)",
... | [
"0.7688986",
"0.7378882",
"0.7085033",
"0.6965324",
"0.6965324",
"0.6965324",
"0.68854594",
"0.6841707",
"0.67688745",
"0.6650615",
"0.6546919",
"0.6546919",
"0.6474598",
"0.64510095",
"0.64407456",
"0.6419536",
"0.637936",
"0.6369307",
"0.62679136",
"0.6213513",
"0.6203301",... | 0.8750952 | 0 |
Gets the avg_latency of this Dashboard. | def VeXd(YKHO):
return YKHO._avg_latency | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H7Jy(YKHO):\n return YKHO._average_latency_per_iop",
"def P40K(YKHO):\n return YKHO._average_speed",
"def P40K(YKHO):\n return YKHO.total_distance * 3600 / YKHO.total_time",
"def DIRX(YKHO):\n return YKHO._total_time['value'] / 1000 / YKHO._total_time['count'] if YKHO._total_time['count'] els... | [
"0.7002933",
"0.68997884",
"0.6851817",
"0.6824462",
"0.6778096",
"0.67746073",
"0.66578525",
"0.65238416",
"0.64111894",
"0.6406071",
"0.63798845",
"0.63798845",
"0.63798845",
"0.6372547",
"0.6355915",
"0.62166494",
"0.62070835",
"0.6131814",
"0.6080654",
"0.6071413",
"0.605... | 0.86059934 | 1 |
Gets the avg_training_time of this Dashboard. | def kH1T(YKHO):
return YKHO._avg_training_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vTp5(YKHO):\n return YKHO._avg_inference_time",
"def kH1T(YKHO, kH1T):\n YKHO._avg_training_time = kH1T",
"def DIRX(YKHO):\n return YKHO._total_time['value'] / 1000 / YKHO._total_time['count'] if YKHO._total_time['count'] else 0",
"def JMmr(YKHO):\n pass",
"def VeXd(YKHO):\n return YKHO.... | [
"0.7506201",
"0.7159708",
"0.7058346",
"0.684442",
"0.6722557",
"0.6722557",
"0.6705557",
"0.6705557",
"0.6705557",
"0.66139954",
"0.654946",
"0.65014553",
"0.64305717",
"0.63712406",
"0.6343276",
"0.63094103",
"0.63054085",
"0.62871736",
"0.6204863",
"0.6202335",
"0.61831266... | 0.8810325 | 0 |
Gets the enable_health of this Dashboard. | def eE07(YKHO):
return YKHO._enable_health | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gasA(YKHO):\n return YKHO.__health",
"def gasA(YKHO):\n return YKHO.health",
"def yig2(YKHO):\n return YKHO.health",
"def gasA(YKHO):\n return YKHO.__healthy",
"def _djR(YKHO):\n return YKHO.health",
"def ZnpV(YKHO):\n return YKHO._health",
"def ZnpV(YKHO):\n return YKHO._healt... | [
"0.7512435",
"0.7488104",
"0.7402548",
"0.7016691",
"0.6954334",
"0.69409657",
"0.69409657",
"0.68736297",
"0.6552519",
"0.65186435",
"0.6502406",
"0.6502406",
"0.6483834",
"0.643544",
"0.64260054",
"0.63999337",
"0.63261014",
"0.6322474",
"0.62189955",
"0.61582977",
"0.61525... | 0.8434188 | 0 |
Sets the ion_instance of this Dashboard. | def yETv(YKHO, yETv):
YKHO._ion_instance = yETv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kQ4Y(YKHO, kQ4Y):\n YKHO._ion = kQ4Y",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"def WQJg(YKHO, KAOR):\n YKHO.instance = KAOR",
"d... | [
"0.6787115",
"0.6573194",
"0.6573194",
"0.6573194",
"0.6573194",
"0.6573194",
"0.6409853",
"0.63181776",
"0.6265229",
"0.5963499",
"0.56104624",
"0.55304074",
"0.55137837",
"0.54621404",
"0.5434859",
"0.5347679",
"0.53132266",
"0.51905864",
"0.51905864",
"0.51905864",
"0.5190... | 0.80882585 | 0 |
Gets the is_ml_healthy of this Dashboard. | def qL_G(YKHO):
return YKHO._is_ml_healthy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qL_G(YKHO, qL_G):\n YKHO._is_ml_healthy = qL_G",
"def qL_G(YKHO, qL_G):\n YKHO._is_ml_healthy = qL_G",
"def gasA(YKHO):\n return YKHO.__healthy",
"def vzMz(YKHO) -> bool:\n return False",
"def kk9a(YKHO):\n return YKHO._is_system_healthy",
"def Cbg5(YKHO) -> qe4Y.Input[int]:\n retur... | [
"0.813105",
"0.813105",
"0.7209838",
"0.69925964",
"0.6922049",
"0.6823707",
"0.680214",
"0.67930883",
"0.6685253",
"0.61448264",
"0.6069192",
"0.6005631",
"0.59968466",
"0.5957496",
"0.59371406",
"0.5922947",
"0.59106916",
"0.5894872",
"0.5894872",
"0.5894872",
"0.5894872",
... | 0.88365185 | 1 |
Gets the operation_mode of this Dashboard. | def jEwG(YKHO):
return YKHO._operation_mode | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jEwG(YKHO) -> int:\n CfEJ = YKHO._read_u8(wjdR)\n return CfEJ >> 2 & 7",
"def yQBk(YKHO):\n return YKHO._api.get_mode()",
"def hRLm(YKHO):\n return YKHO._mode",
"def bTfd(YKHO):\n return YKHO.mode",
"def yQBk(YKHO):\n return YKHO.mode",
"def yQBk(YKHO):\n return YKHO.get_paramete... | [
"0.7838033",
"0.7746636",
"0.7497163",
"0.74531657",
"0.74391294",
"0.74110365",
"0.72917336",
"0.72220725",
"0.72198814",
"0.7200436",
"0.7171177",
"0.7161535",
"0.71283394",
"0.71283394",
"0.71283394",
"0.7103808",
"0.70693433",
"0.70677537",
"0.70672023",
"0.70672023",
"0.... | 0.84856904 | 0 |
Gets the status of this Dashboard. | def jGRS(YKHO):
return YKHO._status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n return YKHO._get(path='status')",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n Mkmy = G4JS.get(YKHO.base_url + '/status')\n return Mkmy.json()",
"def VLTN(YKHO):\n return Y... | [
"0.802181",
"0.7888734",
"0.7888734",
"0.7888734",
"0.7854777",
"0.7853983",
"0.7794157",
"0.7759545",
"0.7753214",
"0.77168816",
"0.7698679",
"0.76866144",
"0.76688194",
"0.7645983",
"0.76382256",
"0.76220614",
"0.75926965",
"0.75720483",
"0.7559108",
"0.7559108",
"0.7559108... | 0.7476286 | 70 |
Gets the total_data_processed of this Dashboard. | def lOYW(YKHO):
return YKHO._total_data_processed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z6OU(YKHO):\n z6OU = YKHO._properties.get('totalBytesProcessed')\n if z6OU is not None:\n return int(z6OU)",
"def vFPU(YKHO):\n return YKHO.total_count",
"def zTq9(YKHO):\n return YKHO._output.get('TotalCount', None)",
"def wjRY(YKHO):\n return YKHO._results.total",
"def wjRY(YKHO... | [
"0.73769915",
"0.73075116",
"0.73067",
"0.7302086",
"0.72489244",
"0.7246251",
"0.72313356",
"0.7166553",
"0.7118288",
"0.7102905",
"0.7088142",
"0.70527405",
"0.6970937",
"0.6962205",
"0.69501203",
"0.6941027",
"0.68699205",
"0.68479675",
"0.684391",
"0.6824782",
"0.6813029"... | 0.861788 | 0 |
Sets the total_data_processed of this Dashboard. | def lOYW(YKHO, lOYW):
YKHO._total_data_processed = lOYW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yqMa(YKHO, yqMa):\n YKHO._total_samples_processed = yqMa",
"def wjRY(YKHO, wjRY):\n YKHO._total = wjRY",
"def wjRY(YKHO, wjRY):\n YKHO._total = wjRY",
"def wjRY(YKHO, wjRY):\n YKHO._total = wjRY",
"def wjRY(YKHO, wjRY):\n YKHO._total = wjRY",
"def wjRY(YKHO, wjRY):\n YKHO._total = w... | [
"0.7049226",
"0.68256205",
"0.68256205",
"0.68256205",
"0.68256205",
"0.68256205",
"0.68256205",
"0.68256205",
"0.68256205",
"0.68031895",
"0.64619446",
"0.6373086",
"0.6309745",
"0.6308942",
"0.630299",
"0.62930256",
"0.6233852",
"0.6215431",
"0.621347",
"0.6134889",
"0.6131... | 0.86530817 | 0 |
Gets the total_models_updated of this Dashboard. | def EIzk(YKHO):
return YKHO._total_models_updated | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EIzk(YKHO, EIzk):\n YKHO._total_models_updated = EIzk",
"def wfp9(YKHO):\n return YKHO._total_models_produced",
"def Jw_g(YKHO):\n return YKHO._num_updates",
"def wjRY(YKHO):\n if YKHO.dynamic:\n YKHO._update_db_obj()\n return YKHO._db_obj.total",
"def Zh38(YKHO):\n return YKHO... | [
"0.7211526",
"0.6658129",
"0.65444165",
"0.63419837",
"0.6284991",
"0.6205161",
"0.59438735",
"0.58653957",
"0.586409",
"0.581988",
"0.5811029",
"0.5776755",
"0.5775125",
"0.5738407",
"0.571537",
"0.5698881",
"0.56909597",
"0.565398",
"0.5649401",
"0.5643217",
"0.5637602",
... | 0.876 | 0 |
Sets the total_predictions of this Dashboard. | def qIRV(YKHO, qIRV):
YKHO._total_predictions = qIRV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIRV(YKHO):\n return YKHO._total_predictions",
"def N6Z1(YKHO, N6Z1):\n YKHO._predictions = N6Z1",
"def n382(YKHO):\n YKHO.vis.draw_predictions()",
"def p1kx(YKHO, N6Z1):\n return 0.0",
"def wjRY(YKHO, wjRY):\n YKHO._total = wjRY",
"def wjRY(YKHO, wjRY):\n YKHO._total = wjRY",
"de... | [
"0.72526914",
"0.67309004",
"0.61389494",
"0.6097807",
"0.5889469",
"0.5889469",
"0.5889469",
"0.5889469",
"0.5889469",
"0.5889469",
"0.5889469",
"0.5889469",
"0.58128315",
"0.5769351",
"0.5683086",
"0.56372076",
"0.5603803",
"0.555724",
"0.5543685",
"0.55434895",
"0.5500842"... | 0.8787851 | 0 |
Gets the total_samples_processed of this Dashboard. | def yqMa(YKHO):
return YKHO._total_samples_processed | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lOYW(YKHO):\n return YKHO._total_data_processed",
"def z6OU(YKHO):\n z6OU = YKHO._properties.get('totalBytesProcessed')\n if z6OU is not None:\n return int(z6OU)",
"def FdP5(YKHO):\n DiSR = YKHO.recording_data()['totals']\n return DiSR[0] + DiSR[1]",
"def yU06(YKHO):\n return YKH... | [
"0.75298214",
"0.7332648",
"0.7303424",
"0.72026956",
"0.7153452",
"0.71260434",
"0.7040016",
"0.69730455",
"0.687591",
"0.6859451",
"0.682129",
"0.6738427",
"0.6715235",
"0.6669595",
"0.6662182",
"0.6659618",
"0.66531247",
"0.6627849",
"0.66063005",
"0.6590494",
"0.6569571",... | 0.8658058 | 0 |
Sets the total_samples_processed of this Dashboard. | def yqMa(YKHO, yqMa):
YKHO._total_samples_processed = yqMa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lOYW(YKHO, lOYW):\n YKHO._total_data_processed = lOYW",
"def yqMa(YKHO):\n return YKHO._total_samples_processed",
"def vbu2(YKHO, vbu2):\n YKHO._reads_total = vbu2",
"def ZLUx(YKHO, ZLUx):\n YKHO._total_copies = ZLUx",
"def GFu9(YKHO, GFu9):\n YKHO._total_hits = GFu9",
"def wjRY(YKHO, ... | [
"0.74044716",
"0.69159865",
"0.63528943",
"0.63419914",
"0.62626487",
"0.62496924",
"0.62496924",
"0.62496924",
"0.62496924",
"0.62496924",
"0.62496924",
"0.62496924",
"0.62496924",
"0.612097",
"0.6102538",
"0.6066606",
"0.5975876",
"0.59652287",
"0.5851357",
"0.5806901",
"0.... | 0.8502352 | 0 |
asserts that abs(ab/(a+b))<ratio. If a+b are an underflow, we error out right now. | def gSC5(YKHO, jzdc, Fg_i, dMYj=1e-07, tO9_=None):
if tO9_ is None:
tO9_ = '%s != %s to within %s of the sum' % (jzdc, Fg_i, dMYj)
ciZM = abs(jzdc + Fg_i)
YKHO.failUnless(abs(jzdc - Fg_i) / ciZM < dMYj, tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VD6k(jzdc, Fg_i, YOmK, f2PB=0):\n return int(oyIN.ceil(oyIN.abs(Fg_i - jzdc) / oyIN.sqrt(f2PB ** 2 + YOmK ** 2)))",
"def oilP(jzdc, Fg_i, yJiH=0.0001):\n try:\n return jzdc == Fg_i or max(jzdc, Fg_i) / min(jzdc, Fg_i) - 1 < yJiH\n except ZeroDivisionError:\n return False",
"def yCFC(... | [
"0.7358371",
"0.66254807",
"0.6521883",
"0.65050066",
"0.6449601",
"0.6401195",
"0.6396084",
"0.6393364",
"0.62814593",
"0.6261673",
"0.6259443",
"0.6236319",
"0.61901605",
"0.61901605",
"0.6128072",
"0.61068314",
"0.61023176",
"0.6097711",
"0.60512173",
"0.60392064",
"0.6034... | 0.7253796 | 1 |
Sets the operation_state of this V1alpha1ApplicationStatus. | def hCWZ(YKHO, hCWZ):
YKHO._operation_state = hCWZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ER7q(YKHO, ER7q):\n YKHO._operational_status = ER7q",
"def ER7q(YKHO, ER7q):\n YKHO._operational_status = ER7q",
"def F45e(YKHO, F45e: str):\n BbPm = ['DISABLED', 'ENABLED']\n if F45e not in BbPm:\n raise ValueError('Invalid value for `operational_state` ({0}), must be one of {1}'.format... | [
"0.61507636",
"0.61507636",
"0.5949264",
"0.5696181",
"0.56286985",
"0.55063367",
"0.53397185",
"0.5336757",
"0.52983826",
"0.5260551",
"0.5246371",
"0.5239253",
"0.52015436",
"0.51887983",
"0.51887983",
"0.51887983",
"0.5111096",
"0.50920767",
"0.50906014",
"0.50811106",
"0.... | 0.6980252 | 0 |
Sets the source_type of this V1alpha1ApplicationStatus. | def zEt5(YKHO, zEt5):
YKHO._source_type = zEt5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zEt5(YKHO, zEt5):\n if zEt5 is None:\n raise ValueError('Invalid value for `source_type`, must not be `None`')\n BbPm = ['PROCESSOR', 'REMOTE_INPUT_PORT', 'REMOTE_OUTPUT_PORT', 'INPUT_PORT', 'OUTPUT_PORT', 'FUNNEL']\n if zEt5 not in BbPm:\n raise ValueError('Invalid value for `source_typ... | [
"0.6924241",
"0.5907548",
"0.5868112",
"0.5808144",
"0.5653231",
"0.5427961",
"0.53869885",
"0.5380671",
"0.5270179",
"0.525405",
"0.525405",
"0.525405",
"0.5247243",
"0.51593596",
"0.51593596",
"0.51593596",
"0.51593596",
"0.51593596",
"0.51593596",
"0.51593596",
"0.5135225"... | 0.7221481 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, CoB0):
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.80886984",
"0.80886984",
"0.8055307",
"0.7983415",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
"0.79673034",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, CoB0):
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 |
r"""Gets an attestor. Returns NOT_FOUND if the attestor does not exist. | def xP7V(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('Get')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WaOa(YKHO):\n YKHO.app.getAutor(1)",
"def FzFL(YKHO) -> qe4Y.Output['outputs.AttestationAuthorityResponse']:\n return qe4Y.get(YKHO, 'attestation_authority')",
"def tdJr(YKHO):\n bD7m = '/api/v1/pacientes/AAA/'\n QePW = YKHO.client.get(bD7m)\n YKHO.assertEqual(QePW.status_code, jGRS.HTTP_404... | [
"0.5476859",
"0.5434072",
"0.52487147",
"0.5230785",
"0.52038616",
"0.51578623",
"0.5099478",
"0.5058455",
"0.50464344",
"0.50330085",
"0.49977604",
"0.49969175",
"0.49940065",
"0.49587908",
"0.49484286",
"0.49183556",
"0.49150467",
"0.4904164",
"0.48963606",
"0.48773664",
"0... | 0.0 | -1 |
r"""A policy specifies the attestors that must attest to. a container image, before the project is allowed to deploy that image. There is at most one policy per project. All image admission requests are permitted if a project has no policy. Gets the policy for this project. Returns a default policy if the project does ... | def RmIS(YKHO, QePW, jMd6=None):
GPtr = YKHO.GetMethodConfig('GetPolicy')
return YKHO._RunMethod(GPtr, QePW, global_params=jMd6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qabx(YKHO) -> h8nf[qe4Y.Input['ServicePolicyArgs']]:\n return qe4Y.get(YKHO, 'policy')",
"def Qabx(YKHO) -> h8nf[qe4Y.Input['ServicePolicyArgs']]:\n return qe4Y.get(YKHO, 'policy')",
"def Qabx(YKHO) -> laHg.Optional['BucketPolicy']:\n return HEOD.get(YKHO, 'policy')",
"def Qabx(YKHO) -> laHg.Opt... | [
"0.68192047",
"0.68192047",
"0.67501944",
"0.67501944",
"0.6656044",
"0.6587022",
"0.6587022",
"0.6587022",
"0.65520436",
"0.64265966",
"0.64265966",
"0.64265966",
"0.63386905",
"0.63386905",
"0.6282369",
"0.62444496",
"0.61737216",
"0.61178595",
"0.61143225",
"0.60101265",
"... | 0.5603377 | 69 |
Creates a timestamp with a timezone and offset in days | def HvxI(rIAI=None, Sm0u=0, Wave=0, O66n=0, C6wh=0):
if rIAI is None:
rIAI = ITS7.strftime('%z')
E3oo = '{time}{timezone}'.format(time=qcWV.datetime.today() + qcWV.timedelta(days=Sm0u, hours=Wave, minutes=O66n, seconds=C6wh), timezone=rIAI)
return E3oo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def slWZ(lhKE, vgXP=0):\n return qcWV.date(qcWV.fromtimestamp(ITS7.time() + 86400 * vgXP, tz=lhKE))",
"def ItX3(YKHO, Sm0u=1):\n vgXP = qcWV.datetime.utcnow().date() - qcWV.timedelta(days=Sm0u - 1)\n rIAI = '+02:00'\n yKcO = qcWV.datetime(vgXP.year, vgXP.month, vgXP.day)\n return yKcO.isoformat() ... | [
"0.6918239",
"0.6670805",
"0.62720466",
"0.6256378",
"0.60689795",
"0.5998587",
"0.5996574",
"0.5963465",
"0.5952184",
"0.59323317",
"0.58728915",
"0.5826471",
"0.5763407",
"0.5755451",
"0.56876653",
"0.56705695",
"0.55962193",
"0.5591352",
"0.55668265",
"0.5544842",
"0.55122... | 0.8148346 | 0 |
Sum the quantity of player's points | def tDA9(YKHO) -> int:
return sum([dxhl.rank_value for dxhl in YKHO.deck.cards]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YYJ9(YKHO):\n YYJ9 = 0.0\n for uBMr in YKHO.ingredients:\n if uBMr.has_property('ppg'):\n YYJ9 += uBMr.property('ppg').to('ppg') * uBMr.quantity.to('lb')\n else:\n YYJ9 += _mJZ[uBMr.type] * uBMr.quantity.to('lb')\n return f9X8(YYJ9, 'points')",
"def B443(YKHO):\n ... | [
"0.6939034",
"0.6713888",
"0.6518515",
"0.6507416",
"0.6504014",
"0.6458282",
"0.6399612",
"0.6229231",
"0.6217279",
"0.6197217",
"0.6190142",
"0.61326945",
"0.61238325",
"0.6110782",
"0.610348",
"0.6089072",
"0.60308164",
"0.60287845",
"0.60252935",
"0.6025237",
"0.60227716"... | 0.7183356 | 0 |
get next page url return url string | def fmO_(SYsl):
Gqqd = SYsl.find(class_='pages')
for B2Dn in Gqqd:
if B2Dn.string == t1sn:
return B2Dn
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xsYE(QePW):\n next = QePW.REQUEST.get('next', '')\n KcEq = QePW.get_host()\n return next if next and gMU9(next, host=KcEq) else None",
"def UDN3(YKHO, geh0):\n return None",
"def xsYE(YKHO):\n if YKHO.has_next:\n B2fa = Oa1e.request_args.copy()\n B2fa.update(QePW.view_args.copy... | [
"0.8284485",
"0.79817075",
"0.7885116",
"0.77592736",
"0.7658762",
"0.76225215",
"0.7614582",
"0.7570373",
"0.7535425",
"0.75084984",
"0.74679697",
"0.74578935",
"0.7450493",
"0.7414621",
"0.7413333",
"0.7364251",
"0.7352222",
"0.7235328",
"0.7188004",
"0.71653914",
"0.706589... | 0.620411 | 56 |
Get SEN information of m1. | def sAZM(UShr, Yrvv, QAuf, EIht):
"""
1 Get information from m1_info
"""
q_lV = QAuf[0]
yDbq = QAuf[1]
DP4r = QAuf[2]
I2_u = DP4r / 3
Dh3u = QAuf[4]
_j56 = QAuf[3]
uTQh = _j56[0]
RcJP = _j56[1]
RVhi = _j56[2]
G2DJ = _j56[3]
eg5U = (UShr, Yrvv)
SxWU = H0q3.Di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O0V9(Jw7X, eUWA, faZV, JB7U):\n \"\"\"\n 1 Get information from m_info\n \"\"\"\n kOjW = faZV[0]\n xYJD = faZV[1]\n DP4r = faZV[2]\n I2_u = DP4r / 3\n Dh3u = faZV[4]\n TieB = faZV[3]\n uf1r = TieB[0]\n pucS = TieB[1]\n sOVy = TieB[2]\n zxVe = TieB[3]\n eg5U = (Jw7X, ... | [
"0.62744147",
"0.55263764",
"0.5517202",
"0.5517202",
"0.5418137",
"0.53576267",
"0.53576267",
"0.5332228",
"0.53206706",
"0.53069717",
"0.5306769",
"0.52975816",
"0.5252321",
"0.52439135",
"0.52369094",
"0.51948607",
"0.51542157",
"0.51261246",
"0.5116743",
"0.5115453",
"0.5... | 0.6605167 | 0 |
Make list of Y direction upper shapes points. | def TWC3(p6S0, BGSy, NFEp, Dh3u, sVAg):
y4fz = (p6S0, BGSy)
EBgd = (p6S0 - Dh3u, BGSy - NFEp + sVAg / 2)
HpuQ = (p6S0, BGSy - NFEp + sVAg / 2)
Lq8X = (p6S0, BGSy - sVAg / 2)
U0Zt = (p6S0 + Dh3u, BGSy - sVAg / 2)
WGCl = (p6S0 + Dh3u, BGSy + NFEp - sVAg / 2)
ela2 = (p6S0, BGSy + NFEp - sVAg / ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def higH(UShr, Yrvv, QAuf, WdBV):\n \"\"\"\n 1 Get information from m1_info & SEN_info\n \"\"\"\n q_lV = QAuf[0]\n yDbq = QAuf[1]\n DP4r = QAuf[2]\n _j56 = QAuf[3]\n uTQh = _j56[0]\n RcJP = _j56[1]\n RVhi = _j56[2]\n G2DJ = _j56[3]\n NFEp = WdBV[0]\n sVAg = WdBV[1]\n LOr... | [
"0.6447427",
"0.6425065",
"0.6360502",
"0.63538593",
"0.62190753",
"0.61287504",
"0.6095526",
"0.6071502",
"0.604048",
"0.5937894",
"0.5934886",
"0.5903958",
"0.5889333",
"0.5886241",
"0.5779479",
"0.5772985",
"0.5727114",
"0.5695548",
"0.5695548",
"0.5658319",
"0.56419516",
... | 0.65152735 | 0 |