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 |
|---|---|---|---|---|---|---|
Autoscales the x or y axis of a given matplotlib ax object to fit the margins set by manually limits of the other axis, with margins in fraction of the width of the plot Defaults to current axes object if not specified. | def Cjzi(aNZO, jDK_='y', MVIL=10.0):
SbPT, Ihyz = (oyIN.inf, -oyIN.inf)
for h5p_ in aNZO.collections + aNZO.lines:
WKvO, LVAh = uDxK(h5p_)
if jDK_ == 'y':
cAPX = aNZO.set_ylim
Xk2t = aNZO.get_xlim()
Y2eJ, KeBf = (WKvO, LVAh)
else:
cAPX = aN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x7pT(aNZO: matplotlib.axes.Axes, jDK_: str='y', BA7i: str='both', MVIL: float=0.1) -> None:\n assert jDK_ in ['x', 'y']\n assert BA7i in ['both', 'min', 'max']\n gqRb, ODP9 = (oyIN.inf, -oyIN.inf)\n for h5p_ in aNZO.collections + aNZO.lines:\n if jDK_ == 'y':\n LqO4 = aNZO.set_yli... | [
"0.77157646",
"0.7123425",
"0.7121893",
"0.6834053",
"0.6708397",
"0.66815156",
"0.661986",
"0.6606869",
"0.66044617",
"0.6573852",
"0.65701437",
"0.6542463",
"0.6490678",
"0.64780253",
"0.64665586",
"0.64079314",
"0.6406158",
"0.64012617",
"0.64012617",
"0.6377503",
"0.63503... | 0.79304194 | 0 |
Get an existing RecordSet resource's state with the given name, id, and optional extra properties used to qualify the lookup. | def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'RecordSet':
VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))
r6DL = NySM.__new__(NySM)
r6DL.__dict__['alias_target'] = None
r6DL.__dict__['cidr_routing_config'] = None
r6DL.__dict__['comme... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(kFeU, id, VKhi=None, LIAQ=None, _9UV=None, Yicy=None, lLIo=None, xsne=None, ifdl=None, EwLb=None, tDwR=None, mWFP=None, J2us=None, JdS4=None, h9HD=None, type=None, ipY9=None, DVVB=None):\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = dict()\n r6DL['aliases'] = LIA... | [
"0.5712351",
"0.5326117",
"0.53254265",
"0.52797",
"0.52622974",
"0.52463746",
"0.52273864",
"0.5208175",
"0.520108",
"0.5175963",
"0.5172571",
"0.5154756",
"0.5123562",
"0.5118482",
"0.5118115",
"0.5098906",
"0.5061613",
"0.5057707",
"0.50535184",
"0.5039988",
"0.49799728",
... | 0.6402341 | 0 |
Gets the ioHub Server Device class given associated with the ioHubDeviceView. This is specified for a device in the ioHub configuration file. | def vDTs(YKHO):
return YKHO.device_class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO):\n return YKHO._sensor.get(F6ct)",
"def Eebg(YKHO, begE):\n return getattr(YfpN, YKHO.config.get(begE, 'type'))",
"def rM2U(YKHO):\n return YKHO.sensor_details[4]",
"def rM2U(YKHO):\n return YKHO._class",
"def rM2U(YKH... | [
"0.75013775",
"0.73846763",
"0.73441297",
"0.7252756",
"0.7245964",
"0.7173341",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
"0.7160503",
... | 0.7940168 | 0 |
See Computer.getPriority documentation, where current process will be the iohub process. | def FN7K(YKHO):
return YKHO._sendToHubServer(('RPC', 'getPriority'))[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ju5x(YKHO):\n pass",
"def AZya(YKHO):\n return YKHO.__system_priority",
"def FN7K(YKHO):\n return YKHO.priority",
"def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')",
"def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')",
"def Ey19(YKHO) -> int:\n return qe4Y.get(YKH... | [
"0.70312595",
"0.70203435",
"0.6838124",
"0.6803105",
"0.6803105",
"0.6803105",
"0.6803105",
"0.6803105",
"0.6803105",
"0.6803105",
"0.6803105",
"0.6787028",
"0.6787028",
"0.6787028",
"0.6787028",
"0.6766873",
"0.675494",
"0.675494",
"0.6734332",
"0.6734332",
"0.6734332",
"... | 0.74362284 | 0 |
Returns the full parsing of experiment_config.yaml as a python dictionary. | def eEPS(YKHO):
return YKHO.configuration | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tzc7():\n R7Zz = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'test_data', 'experiment-config.yaml')\n with open(R7Zz, encoding='utf-8') as G6EG:\n return eJb6.load(G6EG, eJb6.SafeLoader)",
"def xRMc(a9K4: str) -> dict:\n BqxI = Hy7s.path.dirname(xAKo)\n with open(Hy7s.path.join(BqxI, 'experime... | [
"0.74914426",
"0.71310335",
"0.70743537",
"0.70701045",
"0.7021984",
"0.6991644",
"0.69644135",
"0.6918091",
"0.68956417",
"0.6888611",
"0.6877811",
"0.68050545",
"0.67687845",
"0.6757109",
"0.67456925",
"0.66440624",
"0.66376716",
"0.6614731",
"0.66118246",
"0.6607108",
"0.6... | 0.0 | -1 |
Lookup a key in a nested document, return a list of values | def RkjP(H5ew, C13M, PK_P=False, vYws=False):
if vYws:
Csk6 = oRi_(list)
for G1Hx, Ty9i in VRz8(H5ew, C13M, wild=PK_P, with_keys=vYws):
Csk6[G1Hx].append(Ty9i)
return Csk6
return list(VRz8(H5ew, C13M, wild=PK_P, with_keys=vYws)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VRz8(H5ew, C13M):\n if isinstance(C13M, list):\n for Csk6 in C13M:\n for Aofo in VRz8(H5ew, Csk6):\n yield Aofo\n if isinstance(C13M, dict):\n for G1Hx, Ty9i in BVGD(C13M):\n if G1Hx == H5ew:\n yield Ty9i\n elif isinstance(Ty9i,... | [
"0.7943888",
"0.7425988",
"0.6878617",
"0.64634436",
"0.6323317",
"0.6284688",
"0.6171784",
"0.616351",
"0.61528164",
"0.6114703",
"0.60981625",
"0.6097231",
"0.60827625",
"0.60726434",
"0.60635793",
"0.60620046",
"0.60465235",
"0.6043169",
"0.60324675",
"0.6028786",
"0.60210... | 0.7368025 | 2 |
Adds an internal network interface to the specified router. | def QObf(YKHO, oimG, VWZy):
if not oimG:
raise TvYj('router to add interface is None!')
if not isinstance(oimG, hPmM):
raise TypeError('router %s is not %s instance' % (oimG, hPmM.__name__))
if not hasattr(oimG, 'id') or not oimG.id:
raise ValueError('No id is given in the router %s'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QObf(oimG, VWZy, z39Z=None):\n w2B8 = Hbi_(z39Z)\n return w2B8.add_interface_router(oimG, VWZy)",
"def xQFT(YKHO, eVVj, oZaD, hkS8=None):\n nPrm = {'virtual-network': {'fq_name': eVVj['fq_name'], 'route_table_refs': [{'to': oZaD['fq_name'], 'attr': hkS8}]}}\n return YKHO._put('/virtual-network/{0... | [
"0.8028322",
"0.7773259",
"0.7625781",
"0.7334347",
"0.7314876",
"0.7041609",
"0.70238566",
"0.6886946",
"0.6567107",
"0.65134627",
"0.6510247",
"0.6460175",
"0.6460175",
"0.64301324",
"0.63946205",
"0.6382395",
"0.6318003",
"0.63165367",
"0.63059336",
"0.6297906",
"0.6287209... | 0.75771445 | 3 |
Fetches a list of all members for a project. | def J6PO(YKHO, DE1z):
Vlb9 = {}
qxTz = YKHO.os_client.list_lbaas_members(DE1z.pool.id, retrieve_all=True, **Vlb9)
SKGK = []
for KVax in qxTz['members']:
KVax['pool_id'] = DE1z.pool.id
DE1z = UBB8(os_resource=KVax)
SKGK.append(DE1z)
return SKGK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tWhj(bNKA):\n qIxc = ['container', 'fleet', 'memberships', 'list', '--format', 'json(name)', '--project', bNKA]\n hlel, XObx = D6YZ(qIxc)\n if XObx:\n raise Bx6I.ConfigSyncError('Error listing memberships: {}'.format(XObx))\n jcIu = qQXR.loads(hlel)\n AO0n = [r8hN['name'] for r8hN in jcIu... | [
"0.72736853",
"0.7224382",
"0.7133639",
"0.7127311",
"0.70900655",
"0.68848723",
"0.68813825",
"0.68603605",
"0.6831531",
"0.68202037",
"0.6806619",
"0.6762109",
"0.6752332",
"0.6745164",
"0.6732729",
"0.67173725",
"0.6691254",
"0.66904986",
"0.667995",
"0.66666317",
"0.66540... | 0.0 | -1 |
Fetches a list of all members for a project. | def list(YKHO, qNSC):
Vlb9 = {}
qxTz = YKHO.os_client.list_lbaas_members(qNSC, retrieve_all=True, **Vlb9)
SKGK = []
for KVax in qxTz['members']:
KVax['pool_id'] = qNSC
DE1z = UBB8(os_resource=KVax)
SKGK.append(DE1z)
return SKGK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tWhj(bNKA):\n qIxc = ['container', 'fleet', 'memberships', 'list', '--format', 'json(name)', '--project', bNKA]\n hlel, XObx = D6YZ(qIxc)\n if XObx:\n raise Bx6I.ConfigSyncError('Error listing memberships: {}'.format(XObx))\n jcIu = qQXR.loads(hlel)\n AO0n = [r8hN['name'] for r8hN in jcIu... | [
"0.7274708",
"0.7225165",
"0.71338266",
"0.71272206",
"0.70910823",
"0.6885465",
"0.6881661",
"0.68602544",
"0.68318146",
"0.68205047",
"0.68065727",
"0.6760513",
"0.6752134",
"0.6745011",
"0.6732532",
"0.67174596",
"0.66913146",
"0.6690802",
"0.6680048",
"0.6667652",
"0.6655... | 0.0 | -1 |
Update the cost of an item by the growth factor Will throw a KeyError exception if item is not in the build info. | def BIoh(YKHO, ZfUD):
sSN_, M3Yz = YKHO._info[ZfUD]
YKHO._info[ZfUD] = [sSN_ * YKHO._build_growth, M3Yz] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Do9e(YKHO, BTV3):\n YKHO.item_cost = BTV3",
"def n8TG(YKHO, ZfUD):\n if ZfUD.name == 'Sulfuras, Hand of Ragnaros':\n ZfUD.quality = 80\n return ZfUD\n ZfUD.sell_in -= 1\n zDRZ = ZfUD.name.lower().strip()\n pSDG = -1\n if 'aged brie' in zDRZ:\n pSDG = 1\n if 'backstag... | [
"0.63004166",
"0.6214315",
"0.61196023",
"0.59292144",
"0.5776829",
"0.5755931",
"0.57138765",
"0.57056963",
"0.570549",
"0.5656473",
"0.56521344",
"0.56487423",
"0.5598264",
"0.5570666",
"0.55663025",
"0.5551843",
"0.5529404",
"0.54874986",
"0.546192",
"0.544557",
"0.5432954... | 0.8325813 | 0 |
Return human readable state | def zAg0(YKHO):
return 'Time: ' + str(YKHO._current_time_) + ' Current cookies: ' + str(YKHO._cookies_) + ' CPS: ' + str(YKHO._cps_) + ' Total cookies: ' + str(YKHO._total_cookies_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO):\n return str(YKHO.state)",
"def TKay(YKHO):\n return YKHO.state_t",
"def zAg0(YKHO):\n return YKHO.state()",
"def bo2O(YKHO):\n return YKHO.STATES[YKHO.state]",
"def zAg0(YKHO):\n return 'State{\\n %s \\n}' % '\\n'.join(['\\t{}: {}'.format(G1Hx, str(YRbF)) for G1Hx, YRbF in Y... | [
"0.81176835",
"0.8031357",
"0.8016581",
"0.79708076",
"0.78711575",
"0.7838888",
"0.78302425",
"0.7821361",
"0.7797723",
"0.7698908",
"0.7675653",
"0.7625312",
"0.758877",
"0.7542698",
"0.75221026",
"0.75218153",
"0.74984586",
"0.746073",
"0.74509376",
"0.74506253",
"0.743963... | 0.0 | -1 |
Get current CPS Should return a float | def ZUxg(YKHO):
return YKHO._cps_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZUxg(YKHO):\n return YKHO._current_cps",
"def ZUxg(YKHO):\n return YKHO.current_cps",
"def ZUxg(YKHO):\n return YKHO.curr_CPS",
"def ZUxg(YKHO):\n return YKHO._current_cps",
"def ZUxg(YKHO):\n return YKHO._current_cps",
"def ZUxg(YKHO):\n return YKHO._current_cps",
"def ZUxg(YKHO)... | [
"0.7484859",
"0.74181783",
"0.7388875",
"0.7357009",
"0.7357009",
"0.7357009",
"0.7144441",
"0.7039115",
"0.70333546",
"0.70333546",
"0.70187736",
"0.69165146",
"0.68792653",
"0.6864813",
"0.6743252",
"0.6692437",
"0.6552465",
"0.65462667",
"0.6425512",
"0.6425512",
"0.638971... | 0.71215343 | 7 |
initialize default simulation parameters | def FIMM(YKHO, JBZA):
YKHO.descr = JBZA
YKHO.cache_1 = 4 * GsUB
YKHO.cache_2 = 40 * GsUB
YKHO.nv_1 = True
YKHO.nv_2 = True
YKHO.n_power = 2
YKHO.m_power = 1
YKHO.n_fan = 2
YKHO.m_fan = 1
YKHO.n_nic = 2
YKHO.m_nic = 1
YKHO.copies = 3
YKHO.decluster = 1
YKHO.symmetr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JGCY(YKHO):\n return {'mu': 0.1 / 365, 'r': 0.03 / 365, 'sigma': 0.1 / oyIN.sqrt(365), 'dt': 1.0, 'S0': 100, 'K': 100, 'T': 240}",
"def LPwq(YKHO):\n YKHO.time = None\n YKHO.hour_step = None\n YKHO.years = None\n YKHO.dt = None\n YKHO.steps = None",
"def aPbT(YKHO):\n YKHO._intr = YKHO... | [
"0.7472479",
"0.74179506",
"0.73249555",
"0.72871965",
"0.72695374",
"0.72304827",
"0.7210319",
"0.71581745",
"0.7157643",
"0.7132799",
"0.71129054",
"0.71058995",
"0.71043926",
"0.70747596",
"0.7065358",
"0.7064957",
"0.7060298",
"0.7060298",
"0.703837",
"0.7011643",
"0.6996... | 0.0 | -1 |
Returns the OTT Id `o` as an integer if `o` is an integer or a string starting with ott (caseinsensitive). Raises a ValueError if the string does not match ^(OTT)?[09]+$ | def pOfM(z1Rg):
if isinstance(z1Rg, int):
return z1Rg
if z1Rg.startswith('ott'):
return int(z1Rg[3:])
try:
return int(z1Rg)
except:
if z1Rg.lower().startswith('ott'):
return int(z1Rg[3:])
raise | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IgF8(vIwR):\n try:\n return int(vIwR)\n except ValueError:\n return vIwR",
"def Xia2(zvM7: str) -> int:\n WhQ6 = zvM7.strip().lower()\n WhQ6 = BzSB.index(WhQ6) + 1\n return WhQ6",
"def bcrg(w2fL):\n try:\n return int(w2fL)\n except ValueError:\n return str(w... | [
"0.5821452",
"0.57310075",
"0.56742024",
"0.5667191",
"0.563753",
"0.5628419",
"0.56170845",
"0.55714476",
"0.5565253",
"0.5560839",
"0.55564195",
"0.5555147",
"0.5545361",
"0.55442244",
"0.5533669",
"0.55082405",
"0.54798675",
"0.5475148",
"0.5444237",
"0.54362226",
"0.54267... | 0.8701229 | 0 |
This method is used to test the user registration | def RkyA(YKHO):
bD7m = NKRf + '/register'
nPrm = {'title': 'miss', 'username': 'nikita', 'email': 'nikit.pawar05@gmail.com', 'phone_number': '9008678790', 'password': 'nikita@123', 'confirm_password': 'nikita@123', 'country': 'India'}
MOPg = {'Content-Type': 'application/json'}
geh0 = G4JS.post(url=bD7m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IUpI(YKHO):\n pass",
"def OPFs(YKHO):\n Aofo = YKHO.app.post('/', data=dict(username='test', email='test@test.com', password='12345'))\n YKHO.assertEqual('200 OK', Aofo.status)",
"def OPFs(YKHO):\n DLGy = bTD0().email()\n bky0 = DrBN.FuzzyText(length=16)\n v7EY = {'password1': bky0, 'pass... | [
"0.8772942",
"0.86091876",
"0.85247916",
"0.84318125",
"0.8423424",
"0.8383625",
"0.8366158",
"0.83639324",
"0.83596325",
"0.8355781",
"0.83390665",
"0.83337337",
"0.8309184",
"0.8289447",
"0.8288505",
"0.82846916",
"0.8269491",
"0.8256782",
"0.8252278",
"0.8246064",
"0.82363... | 0.0 | -1 |
This method is used to test the user registration to give invalid data | def kMQw(YKHO):
bD7m = NKRf + '/login'
nPrm = {'title': 'miss', 'username': 'nikita', 'phone_number': '9008678790', 'password': 'nikita@123', 'confirm_password': 'nikita@123', 'country': 'India'}
MOPg = {'Content-Type': 'application/json'}
geh0 = G4JS.post(url=bD7m, data=qQXR.dumps(nPrm), headers=MOPg)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J4it(YKHO):\n gFsc = {'username': 'janedoes', 'email': 'janedoe@janedoe.com'}\n geh0 = YKHO.client.post('/auth/register/', data=qQXR.dumps(gFsc), content_type='application/json')\n YKHO.assertEqual(geh0.status_code, 400)",
"def Ixb3(YKHO):\n geh0 = YKHO.client.post(gxEw('register'), {'username': ... | [
"0.8258476",
"0.7996816",
"0.798337",
"0.7982727",
"0.7909147",
"0.79077065",
"0.78989065",
"0.78897464",
"0.78873783",
"0.7871741",
"0.7849764",
"0.7849037",
"0.7835701",
"0.7830121",
"0.78112787",
"0.7809714",
"0.7792259",
"0.7783638",
"0.7778111",
"0.7777918",
"0.77684176"... | 0.77771467 | 20 |
This method is used to test the forgot password | def F3r3(YKHO):
bD7m = NKRf + '/forgot'
nPrm = {'email': 'nikita.pawar005@gmail.com'}
MOPg = {'Content-Type': 'application/json'}
geh0 = G4JS.post(url=bD7m, data=qQXR.dumps(nPrm), headers=MOPg)
print(geh0.text)
assert geh0.status_code == 200 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OAOs(YKHO):\n pass",
"def BhSC(YKHO):\n pass",
"def AQXB(YKHO):\n pass",
"def hBBL(YKHO):\n pass",
"def OvfQ(YKHO):\n pass",
"def KUhZ(YKHO):\n QePW = YKHO.client.get(gxEw('authentication:forgotten_password'))\n YKHO.assertEqual(QePW.status_code, 200)",
"def rCri(YKHO):\n pa... | [
"0.90071964",
"0.8704195",
"0.87028736",
"0.84709185",
"0.8437195",
"0.8355399",
"0.81993353",
"0.8196307",
"0.8145974",
"0.79894394",
"0.79381764",
"0.78658265",
"0.7793349",
"0.77750605",
"0.7768592",
"0.7765739",
"0.77392346",
"0.77363753",
"0.7732279",
"0.7730642",
"0.772... | 0.0 | -1 |
compute mean and std | def sdUi(fld4, CjDP, lguo):
CjDP = list(CjDP)
lguo = list(lguo)
_IQL = oyIN.zeros((max(CjDP), max(lguo)))
EhX9 = oyIN.zeros((max(CjDP), max(lguo)))
InN6 = oyIN.zeros((max(CjDP), max(lguo)))
KdDw = oyIN.zeros((max(CjDP), max(lguo)))
for N5Pj in fld4:
for yOAJ in N5Pj:
a06Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sdUi(nPrm):\n JBMS, M1Jx = (oyIN.mean(nPrm), oyIN.std(nPrm))\n return (JBMS, M1Jx)",
"def vb6t(input):\n return (input.mean(keepdims=True), input.std(keepdims=True))",
"def cbUt(nPrm):\n JBMS = oyIN.mean(nPrm)\n M1Jx = oyIN.std(nPrm)\n return (JBMS, M1Jx)",
"def tIbu(hkxX):\n S8vG = ... | [
"0.8531704",
"0.8245775",
"0.8199608",
"0.816345",
"0.79795206",
"0.79687285",
"0.77571404",
"0.767804",
"0.7662243",
"0.7645269",
"0.76287705",
"0.7622981",
"0.75736874",
"0.7572495",
"0.75683266",
"0.7507609",
"0.7506842",
"0.74939436",
"0.7491294",
"0.74727464",
"0.7472596... | 0.0 | -1 |
Expect an error on a set password request for a not existing user name | def KcCf(YKHO):
geh0 = YKHO.client.post('/set-password', data=qQXR.dumps({'user': 'Other_User@Some.net', 'token': 'SomeOtherToken', 'password': 'SomePassword1'}))
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(geh0.json, C4Sv.UNKNOWN_USER.__dict__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lQCr():\n with trZe.raises(ValueError) as zK6_:\n DDBf = Cc4e.Openam(openam_url='http://openam.example.com:8080/openam/')\n DDBf.authenticate(username='amadmin', password='password_openam')\n gFsc = {'currentpassword': 'secret12', 'userpassword': 'secret13'}\n DDBf.change_passwor... | [
"0.7391343",
"0.73808324",
"0.72386163",
"0.7229817",
"0.7225312",
"0.721917",
"0.7178013",
"0.71760166",
"0.7148219",
"0.71149445",
"0.7110142",
"0.71088845",
"0.7102704",
"0.71000135",
"0.7076348",
"0.6974213",
"0.6968112",
"0.6961593",
"0.6960583",
"0.69510365",
"0.6941358... | 0.71005905 | 13 |
Expect an error if a set password request is called with a not existing token. | def uaAA(YKHO):
geh0 = YKHO.client.post('/set-password', data=qQXR.dumps({'user': 'User@Some.net', 'token': 'Wrong token', 'password': 'SomePassword1'}))
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(geh0.json, C4Sv.WRONG_TOKEN.__dict__) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bEx_(YKHO, x0hE):\n eOtH = XM9m(-5)\n geh0 = x0hE.patch(_vA8 + f'?token={eOtH}', data={'password': Edpv['email']})\n _hkX = geh0.data\n assert geh0.status_code == 400\n assert 'status' and 'message' in _hkX\n assert _hkX['message'] == iGDk['EXPIRED_TOKEN']",
"def Ja3B(YKHO):\n geh0 = YKH... | [
"0.703045",
"0.70080984",
"0.700144",
"0.69987345",
"0.6996765",
"0.6992506",
"0.692019",
"0.68573844",
"0.67893904",
"0.6778698",
"0.6777975",
"0.6769636",
"0.67481196",
"0.672661",
"0.6725805",
"0.67224824",
"0.6720539",
"0.67111623",
"0.67013544",
"0.6683313",
"0.66772866"... | 0.75836647 | 0 |
Test DELETE /v1/secrets/{secret_id}/acl policy | def iurI(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BAF8(YKHO):\n rTi7, bGrB = oEMd(YKHO.app)\n _hkX = YKHO.app.delete('/secrets/{0}/acl'.format(rTi7), expect_errors=False)\n YKHO.assertEqual(200, _hkX.status_int)",
"def VUsa(YKHO):\n rTi7, bGrB = oEMd(YKHO.app)\n L0uX(YKHO.app, 'secrets', rTi7, read_project_access=True)\n _hkX = YKHO.app.de... | [
"0.80650604",
"0.79588485",
"0.75869316",
"0.7333479",
"0.7055119",
"0.7019159",
"0.6969815",
"0.69505745",
"0.6948854",
"0.6935962",
"0.68980366",
"0.688333",
"0.68420726",
"0.67634505",
"0.6694968",
"0.6574185",
"0.65653735",
"0.65551513",
"0.6543668",
"0.65304434",
"0.6495... | 0.79245746 | 2 |
Test DELETE /v1/secrets/{secret_id}/acl policy | def zIhh(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BAF8(YKHO):\n rTi7, bGrB = oEMd(YKHO.app)\n _hkX = YKHO.app.delete('/secrets/{0}/acl'.format(rTi7), expect_errors=False)\n YKHO.assertEqual(200, _hkX.status_int)",
"def VUsa(YKHO):\n rTi7, bGrB = oEMd(YKHO.app)\n L0uX(YKHO.app, 'secrets', rTi7, read_project_access=True)\n _hkX = YKHO.app.de... | [
"0.80650604",
"0.79588485",
"0.79245746",
"0.7333479",
"0.7055119",
"0.7019159",
"0.6969815",
"0.69505745",
"0.6948854",
"0.6935962",
"0.68980366",
"0.688333",
"0.68420726",
"0.67634505",
"0.6694968",
"0.6574185",
"0.65653735",
"0.65551513",
"0.6543668",
"0.65304434",
"0.6495... | 0.75869316 | 3 |
c.on_screen_tiles( [[Tile]] ) > [[Tile]] Given a 2D array of tiles, return a 2D array of only those tiles which appear onscreen. Not sure if this method is perfect, but it hasn't caused problems so far. | def Q139(YKHO, PttE):
BAMb = max(0, YKHO.state.left / 32)
ivGw = min(YKHO.state.right / 32, len(PttE[0]))
uznx = max(0, YKHO.state.top / 32)
LNWq = min(YKHO.state.bottom / 32, len(PttE))
return PttE[uznx:LNWq][BAMb:ivGw] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RbLF(YKHO):\n jzdc = YKHO.tiles_in_visibility_radius\n Fg_i = YKHO.non_visible_tiles\n return [eL5z for eL5z in jzdc if eL5z not in Fg_i]",
"def Uy2I(YKHO):\n Rn4e = XlhS.dungeon\n JPqE, fXzF = YKHO.center.coordinates\n PttE = []\n for BEAo in YKHO.tiles_in_visibility_radius:\n o4... | [
"0.70438457",
"0.68963087",
"0.6683026",
"0.63826984",
"0.63594186",
"0.6300832",
"0.6232563",
"0.6207823",
"0.61147726",
"0.6072578",
"0.6029225",
"0.59909016",
"0.5985831",
"0.5955696",
"0.59012246",
"0.58913475",
"0.58866966",
"0.58777285",
"0.5868292",
"0.58200675",
"0.58... | 0.76526546 | 0 |
c.update( Sprite ) > None The camera updates its position to center on the given target without going past any of the level's edges. The level is not referenced here, so to understand the exact mechanics of this method you would probably have to figure out where it is called in level. | def QdZT(YKHO, pan_):
yDvq = YKHO.state
vC9B, a1PO, bGrB, bGrB = pan_.rect
bGrB, bGrB, yzQ0, MKlR = yDvq
vC9B, a1PO, bGrB, bGrB = (-vC9B + bpKp, -a1PO + AWKn, yzQ0, MKlR)
vC9B = min(0, vC9B)
vC9B = max(-(yDvq.width - doPO), vC9B)
a1PO = max(-(yDvq.height - LP7U), a1PO)
a1PO = min(0, a1PO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, pan_: Sprite):\n WKvO = -pan_.rect.x + Rfb8[0]\n LVAh = -pan_.rect.y + Rfb8[1]\n WKvO = min(0, WKvO)\n LVAh = min(0, LVAh)\n WKvO = max(-(YKHO.width - Wl2e), WKvO)\n LVAh = max(-(YKHO.height - dVi8), LVAh)\n YKHO.camera = rbZs(WKvO, LVAh, YKHO.width, YKHO.height)",
"def QdZT(Y... | [
"0.7322399",
"0.70222205",
"0.6688055",
"0.6616424",
"0.6487986",
"0.64507365",
"0.64222914",
"0.64055",
"0.6383319",
"0.6382576",
"0.63780564",
"0.6363126",
"0.63024205",
"0.6277444",
"0.6274912",
"0.6272306",
"0.62161404",
"0.6207241",
"0.62059397",
"0.62059397",
"0.6192491... | 0.6662706 | 3 |
Converts platform to Chromium Dash platform. Note that Windows in Chromium Dash is win64 and we only want win32. | def Guaz(a9EH):
eMjW = a9EH.lower()
if eMjW == 'windows':
return 'Win32'
return eMjW.capitalize() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h1o9():\n Wju4 = a9EH.uname()\n return '-'.join([Wju4[0], Wju4[4]]).lower()",
"def sB6M(nNXP):\n return '%s-%s' % ({'win': 'windows', 'linux': 'linux', 'mac': 'mac'}[nNXP.platform.name], {('intel', 32): '386', ('intel', 64): 'amd64'}[nNXP.platform.arch, nNXP.platform.bits])",
"def xuRN():\n if ... | [
"0.67466927",
"0.6562783",
"0.6512628",
"0.6506383",
"0.64784056",
"0.6441398",
"0.6432525",
"0.6392816",
"0.63807535",
"0.6323735",
"0.62665373",
"0.6255453",
"0.62339556",
"0.6194709",
"0.61886305",
"0.6180746",
"0.6171224",
"0.6167747",
"0.6159967",
"0.61496407",
"0.614407... | 0.83196306 | 0 |
Computes the scores for each sentence in sentences | def _1FJ(YKHO, Rhv4):
with YKHO.session.as_default():
Aofo = []
for yAmx in Rhv4:
FqoZ = yAmx.split()
JxU2 = 1.0
QTBn = YKHO.model.initial_state.eval()
for GIN8 in range(len(FqoZ) - 1):
WKvO = oyIN.zeros((1, 1))
WKvO[0, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kG8T(YKHO, Rhv4):\n HWrf = [YKHO.space_model(yAmx) for yAmx in Rhv4]\n cCrA = []\n cCrA.append(YKHO.sentence_length_score(Rhv4))\n cCrA.append(YKHO.duplicate_word_score(Rhv4))\n cCrA.append(YKHO.topic_score(HWrf))\n cCrA.append(YKHO.related_score(HWrf))\n return oyIN.mean(cCrA, axis=0)",
... | [
"0.8357676",
"0.7783552",
"0.7627259",
"0.75685954",
"0.75627565",
"0.7533414",
"0.75265235",
"0.75232273",
"0.75216424",
"0.75102544",
"0.7499057",
"0.7490265",
"0.74750453",
"0.7375736",
"0.7327052",
"0.72995627",
"0.72960246",
"0.7227476",
"0.72225696",
"0.7216822",
"0.721... | 0.7506269 | 10 |
Convert string of type 1d12h3m23s into absolute epoch | def PgIw(YKHO, ObNr, E3oo):
lcOE = 0
KCHu = ObNr
if not ObNr:
return 0
for a1PO, AdrB in {'w': 3600 * 24 * 7, 'd': 3600 * 24, 'h': 3600, 'm': 60, 's': 1}.items():
Ty9i = KCHu.split(a1PO)
if len(Ty9i) == 2:
lcOE += int(Ty9i[0]) * AdrB
KCHu = Ty9i[-1]
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AkTL(KCHu):\n import time\n return time.mktime(time.strptime(KCHu, '%a, %d %b %Y %H:%M:%S'))",
"def mbTc(BWXx):\n pdbK = qcWV.strptime(BWXx, '%Y-%m-%d %H:%M:%S')\n return int(pdbK.timestamp()) * 1000 + int(pdbK.microsecond / 1000)",
"def qtWj(BWXx):\n if isinstance(BWXx, qcWV.datetime):\n ... | [
"0.80253464",
"0.7230189",
"0.7212836",
"0.7174203",
"0.7097716",
"0.70933837",
"0.6998585",
"0.6979309",
"0.69167674",
"0.687067",
"0.68674487",
"0.68504846",
"0.68069375",
"0.67575234",
"0.6736601",
"0.672633",
"0.6722251",
"0.66662914",
"0.6615799",
"0.6607445",
"0.6601217... | 0.6184499 | 38 |
Get a list of Usage objects filtered by project and (optional) user. | def d5lm(QpfX, ekCf, uJjO=None):
b6R5 = MKCK(QpfX, ekCf, user_id=uJjO)
return [Y6M5(**mt41) for mt41 in b6R5] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xExl(QpfX, ekCf):\n return gJE7.quota_usage_get_all_by_project(QpfX, ekCf)",
"def Is1_(YKHO):\n return YKHO.client._perform_json('GET', '/projects/%s/managedfolders/%s/usages' % (YKHO.project_key, YKHO.odb_id))",
"def k66M(YKHO):\n llaM = oPx1.objects.filter(projectmember__account=YKHO.request.use... | [
"0.6514537",
"0.62581044",
"0.6107934",
"0.60681826",
"0.5959505",
"0.5873967",
"0.58570755",
"0.57555187",
"0.5746523",
"0.5744012",
"0.564492",
"0.5642898",
"0.5633533",
"0.5624837",
"0.56051975",
"0.56049204",
"0.56035763",
"0.5602863",
"0.5595573",
"0.5564021",
"0.5562420... | 0.8090288 | 0 |
Test the `is_classmethod` util. | def NvWi():
assert lnV2(kQ2E, kQ2E.classmethod) is True
assert lnV2(kQ2E, kQ2E.method) is False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lnV2(YKHO) -> bool:\n return isinstance(YKHO.wrapped, classmethod)",
"def lnV2(YKHO) -> bool:\n if not YKHO.parent:\n return False\n return YKHO.parent_is_class() and isinstance(YKHO.parent.obj.__dict__.get(YKHO.name, None), classmethod)",
"def B9nU():\n\n class IExample(BX1n.Iface):\n ... | [
"0.8564219",
"0.7988067",
"0.7142213",
"0.6991503",
"0.6941031",
"0.68674386",
"0.686471",
"0.680774",
"0.680774",
"0.6806115",
"0.6749172",
"0.6722616",
"0.6720016",
"0.6657793",
"0.6650405",
"0.66367924",
"0.659601",
"0.65720624",
"0.65489596",
"0.6530711",
"0.6522229",
"... | 0.88640076 | 0 |
function to add edge | def F1KG(YKHO, SLBp, D70y):
YKHO.gdict[SLBp].append(D70y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rz7z(YKHO, tTpl):\n pass",
"def rz7z(YKHO, tTpl):\n Ty9i, yzQ0 = (tTpl[0], tTpl[1])\n YKHO.data[Ty9i][yzQ0] = tTpl\n YKHO.data[yzQ0][Ty9i] = tTpl",
"def rz7z(YKHO, tTpl):\n Ty9i, yzQ0 = tTpl\n YKHO[Ty9i][yzQ0] = tTpl\n YKHO[yzQ0][Ty9i] = tTpl",
"def rz7z(YKHO, D70y, jRxN=False):\n ... | [
"0.8727002",
"0.83548695",
"0.8191387",
"0.78186595",
"0.7812279",
"0.766551",
"0.76635146",
"0.76244134",
"0.7565019",
"0.7551606",
"0.7548153",
"0.7543229",
"0.7533608",
"0.7498844",
"0.749734",
"0.74941546",
"0.74837995",
"0.74788356",
"0.74779767",
"0.74771315",
"0.746748... | 0.0 | -1 |
Get the preferred audio driver for the current platform. | def mv5R():
return glla | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mv5R(YKHO):\n assert YKHO._as_parameter_\n return jzcB._new_from_handle(HOby(YKHO))",
"def KY8c() -> h8nf[str]:\n if Bdx2.load == Cz00.load:\n return None\n if Bdx2.load == aB7f.load:\n return 'sox_io'\n if Bdx2.load == Ge69.load:\n return 'soundfile'\n raise ValueError... | [
"0.7476702",
"0.7300595",
"0.722739",
"0.691174",
"0.6764763",
"0.6689938",
"0.6612665",
"0.6537722",
"0.6445118",
"0.64194584",
"0.6398263",
"0.6395366",
"0.6374894",
"0.6355644",
"0.63435006",
"0.63295126",
"0.62665844",
"0.62322867",
"0.6213027",
"0.6167484",
"0.616649",
... | 0.8059435 | 0 |
Convert an array of values into an ARGB array suitable for building QImages, OpenGL textures, etc. Returns the ARGB array (values 0255) and a boolean indicating whether there is alpha channel data. | def o0Th(nPrm, R_ya=None, bctv=None, NXpY=None):
if R_ya is not None and (not isinstance(R_ya, oyIN.ndarray)):
R_ya = oyIN.array(R_ya)
if bctv is not None and (not isinstance(bctv, oyIN.ndarray)):
bctv = oyIN.array(bctv)
if bctv is not None:
if bctv.ndim == 1:
if len(bctv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f53l(ZpJ8: numpy.ndarray, mbX2: numpy.ndarray) -> XTiz.ndarray:\n return XTiz.dstack((ZpJ8, mbX2))",
"def f53l(ZpJ8: numpy.ndarray, mbX2: numpy.ndarray) -> XTiz.ndarray:\n return XTiz.dstack((ZpJ8, mbX2))",
"def aFpE(J20S):\n if not xm_j:\n E14P()\n nPrm = J20S.getRGB(0, 0, J20S.width, J... | [
"0.6383469",
"0.6383469",
"0.62507755",
"0.6202458",
"0.6095264",
"0.60555243",
"0.6029639",
"0.5975737",
"0.59700274",
"0.59201473",
"0.59046215",
"0.58790356",
"0.5866076",
"0.5865452",
"0.5815663",
"0.5791423",
"0.5788223",
"0.5765357",
"0.5765357",
"0.5760502",
"0.5748082... | 0.0 | -1 |
Are the number of contractions on all atoms correct? | def aMxI(YKHO):
for PayV, WhQ6 in enumerate(YKHO.data.gbasis):
Lr6l = YKHO.data.atomnos[PayV]
assert len(WhQ6) == YKHO.contractions[Lr6l] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Svp0(YKHO):\n LkSQ = 0\n for tDpl in range(len(YKHO.amplitudes)):\n for sS61 in range(len(YKHO.amplitudes)):\n if tDpl > sS61:\n xWXN = YKHO.amplitudes[tDpl]\n gxCp = YKHO.amplitudes[sS61]\n for seET in YKHO.summation.indexes:\n ... | [
"0.70195514",
"0.6666314",
"0.6554313",
"0.65134984",
"0.63751096",
"0.6361191",
"0.6351688",
"0.63026756",
"0.625347",
"0.6249441",
"0.6248101",
"0.62094176",
"0.62020975",
"0.616747",
"0.61644197",
"0.6150047",
"0.61500275",
"0.613801",
"0.61320287",
"0.6129877",
"0.6129121... | 0.8048214 | 0 |
Returns 'True' if the element found with the 'locator' in the corresponding page else returns 'False' | def LGRD(YKHO, uG8F):
ynfG = y5Kl().get_library_instance('Selenium2Library')
return ynfG._is_element_present(uG8F) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ga4o(YKHO, uG8F):\n try:\n YKHO.driver.find_element(*uG8F)\n return True\n except WxwH:\n return False",
"def nny1(YKHO, uG8F, _pUq):\n N5MO(1)\n I1mm = None\n try:\n if uG8F == 'id':\n YKHO.driver.find_element_by_id(_pUq)\n elif uG8F == 'xpath':\n... | [
"0.75733256",
"0.74051124",
"0.7375938",
"0.7375938",
"0.72421277",
"0.7208891",
"0.71891284",
"0.7146438",
"0.7081911",
"0.7069403",
"0.7065501",
"0.7047292",
"0.69863176",
"0.6880779",
"0.6879418",
"0.6853122",
"0.6832774",
"0.68287945",
"0.68287945",
"0.68032396",
"0.68008... | 0.7218105 | 5 |
Add a new experience to memory. | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins)
YKHO.memory.append(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))",
"d... | [
"0.8763217",
"0.8755159",
"0.8509186",
"0.79707366",
"0.7879077",
"0.7878838",
"0.7878838",
"0.7709677",
"0.7708713",
"0.7609456",
"0.74958277",
"0.7470479",
"0.74537706",
"0.737918",
"0.73555547",
"0.730577",
"0.7283659",
"0.7276514",
"0.72636735",
"0.7246649",
"0.72328925",... | 0.7140187 | 61 |
Talk to the chat bot. | def nwYY(NzQY, cSAc):
return d9Ep[NzQY].get_response(cSAc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PbNC(YKHO, Ol8d):\n pass",
"def oFlS(YKHO):\n if YKHO.conversation is not None:\n print('[' + YKHO.name + ' says]: ' + YKHO.conversation)\n else:\n print(YKHO.name + \" doesn't want to talk to you\")",
"def khKA(YKHO, l5Ny):\n Y69S = iPXw.build_player_command('CHAT', text=l5Ny)\n ... | [
"0.76911926",
"0.7540369",
"0.75375015",
"0.74906844",
"0.73684764",
"0.7309967",
"0.72993916",
"0.70342946",
"0.69781166",
"0.6961622",
"0.6938367",
"0.69359285",
"0.69103426",
"0.69102216",
"0.69028467",
"0.68779117",
"0.6876151",
"0.685011",
"0.6835519",
"0.68259466",
"0.6... | 0.64157605 | 58 |
A decorator which wraps the specified callable (request handler coroutine) with an authhandling logic | def gy0k(b6ry: RequestHandlerType) -> joyj:
@xBlr.wraps(b6ry)
async def _auth_wrapper(QePW: web.Request) -> jA2G.Response:
"""
This wrapper extracts an access token from a request
headers, extracts an instance of AuthContext from
a related aiohttp Application, passes an executio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VH11(JfyU):\n\n @zaGL(JfyU)\n def _gRY(QePW, *qIxc, **B2fa):\n Aofo = BkrB(QePW)\n if Aofo is not None:\n return Aofo\n return JfyU(QePW, *qIxc, **B2fa)\n return _gRY",
"def wC2y(JfyU):\n\n @zaGL(JfyU)\n def XIpm(*qIxc, **B2fa):\n if not RgT7():\n ... | [
"0.77369595",
"0.74660385",
"0.7282959",
"0.7242911",
"0.72274125",
"0.71960014",
"0.717279",
"0.71343434",
"0.7125351",
"0.71242017",
"0.7121573",
"0.70605373",
"0.7049975",
"0.70427275",
"0.70232373",
"0.7020318",
"0.7011607",
"0.7011607",
"0.699594",
"0.6978053",
"0.696538... | 0.65307814 | 80 |
Return the path to PyCUTEr cache (``PYCUTER_CACHE`` environmental variable). If ``PYCUTER_CACHE`` is not set, return the full path to current work directory. | def OP0F():
if 'PYCUTER_CACHE' in PNq_:
return PNq_['PYCUTER_CACHE']
else:
return Hy7s.getcwd() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hz4f():\n return Hy7s.environ.get('ATTIC_CACHE_DIR', Hy7s.path.join(Hy7s.path.expanduser('~'), '.cache', 'attic'))",
"def gLDJ(YKHO):\n gLDJ = Hy7s.path.join(Hy7s.path.dirname(xAKo), '..', 'cache')\n if not Hy7s.path.exists(gLDJ):\n Hy7s.mkdir(gLDJ)\n return gLDJ",
"def gLDJ(YKHO):\n ... | [
"0.7779052",
"0.7633128",
"0.7633128",
"0.762782",
"0.7583663",
"0.7555645",
"0.7404398",
"0.7390164",
"0.7324236",
"0.73219734",
"0.7321795",
"0.7281791",
"0.7222119",
"0.72213817",
"0.7209152",
"0.7170087",
"0.71527404",
"0.7151387",
"0.70657897",
"0.7057674",
"0.7057278",
... | 0.9111699 | 0 |
3x3 convolution with padding. | def Myly(UUZO: int, sYyA: int, _0fC: int=1, moMn: int=1, ivFb: int=1) -> U78l.Conv2d:
return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False, dilation=ivFb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sx6c(input, KUnM, FEri, dvgN, wH3T='NHWC', mJgj=1, mWFP=None):\n return o6Bz(**locals())",
"def Myly(UUZO, sYyA, _0fC=1, moMn=1, ivFb=1, lc1X=False, Q79Q=['replicate', 'circular']):\n if not lc1X:\n return U78l.Conv2d(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=ivFb, groups=moMn, bias=False,... | [
"0.80117625",
"0.763754",
"0.7601276",
"0.7550737",
"0.7545917",
"0.7524121",
"0.7453882",
"0.74505305",
"0.74091595",
"0.7382823",
"0.7382823",
"0.73821586",
"0.7373773",
"0.7362818",
"0.73350525",
"0.73350525",
"0.73173827",
"0.7301496",
"0.72824085",
"0.7280231",
"0.727607... | 0.0 | -1 |
Lists all files ending with the file_extension in the directory path | def zQTl(pmON, ztnR):
if not Hy7s.path.isdir(pmON):
raise Exception('Not a valid directory!')
mYp9 = Hy7s.listdir(pmON)
return [gIsw for gIsw in mYp9 if gIsw.endswith(ztnR)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bqQh(eHKs: str, Fst3: str):\n return [YRbF[:-len(Fst3)] for YRbF in Hy7s.listdir(eHKs) if LV9m(YRbF, Fst3)]",
"def _San(iU6C, Fst3):\n return [eHNT for eHNT in Hy7s.listdir(iU6C) if Hy7s.path.isfile(Hy7s.path.join(iU6C, eHNT)) and eHNT.endswith(Fst3)]",
"def uWgS(pmON, Fst3=''):\n Ylbp = [Csk6 for... | [
"0.81311595",
"0.79821384",
"0.787612",
"0.78463495",
"0.7774556",
"0.7631461",
"0.74912953",
"0.7431711",
"0.74223953",
"0.7412982",
"0.74039364",
"0.74016786",
"0.7357895",
"0.73546463",
"0.7317201",
"0.7304203",
"0.7295089",
"0.72913074",
"0.72808075",
"0.72764814",
"0.727... | 0.71927756 | 30 |
Set initial invalid offset and verify error is thrown | def eEuq(PQER, hdzf, p9bx):
GTA_ = GLL2(vIwR.ascii_lowercase, 10)
UzPC = None
mBtZ = PQER.get_pipeline_builder()
Un2V = mBtZ.add_stage('JDBC Multitable Consumer')
Un2V.table_configs = [{'tablePattern': GTA_, 'overrideDefaultOffsetColumns': True, 'offsetColumns': ['id'], 'offsetColumnToInitialOffsetV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D1bJ(YKHO, vgXP: long) -> Swre:\n ...",
"def hCpf(Emd4, wEf2):\n return Emd4('incorrect_offset', wEf2)",
"def Qa1z(YKHO, BWXx):\n YKHO.offset = BWXx",
"def Qa1z(YKHO, BWXx):\n if BWXx >= len(YKHO.data.getvalue()):\n raise TFH0.WrongOffsetValueException('Wrong offset value. Must be less... | [
"0.7601268",
"0.7182216",
"0.69796145",
"0.6845745",
"0.6726501",
"0.65949446",
"0.6594168",
"0.6594168",
"0.65784687",
"0.6498663",
"0.64711285",
"0.644854",
"0.642735",
"0.64203316",
"0.63987225",
"0.6384455",
"0.63733774",
"0.6366686",
"0.63489664",
"0.6330922",
"0.6318764... | 0.0 | -1 |
Test JDBC Multitable Consumer with MSSQL server for the on_unknown_type action. This is to verify SDC12764. When the 'On Unknown Type' action is set to STOP_PIPELINE,the pipeline should stop with a StageException Error since it cannot convert DATETIMEOFFSET field When the 'On Unknown Type' action is set to CONVERT_TO_S... | def FYdN(PQER, hdzf, p9bx, aDBa):
if moxu(hdzf.version) >= moxu('3.14.0'):
trZe.skip('Skipping SQLServer Unknown Type action check, since DATETIMEOFFSET field is now natively supported from SDC Version 3.14.0')
y7XK = 'DATETIMEOFFSET'
MPCc = "'2004-05-23T14:25:10'"
qVmL = U8Lr(id=1, date_offset=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JIuo(PQER, hdzf, c4bB, UnZo, KUDF, cpuL, jXNy):\n GTA_ = GLL2(vIwR.ascii_letters, 15)\n gKRB = GLL2(vIwR.ascii_letters, 15)\n iK1K = tuKI.randint(100, 100000)\n JOsS(UnZo, GTA_, iK1K, gKRB)\n try:\n with UnZo.get_connection() as w2B8:\n with w2B8.cursor() as N1p7:\n ... | [
"0.64105576",
"0.62414616",
"0.6068611",
"0.59513664",
"0.5689763",
"0.55432034",
"0.5534126",
"0.5531286",
"0.5468104",
"0.5425232",
"0.5389413",
"0.53352755",
"0.5328656",
"0.53173274",
"0.53164077",
"0.52835226",
"0.52825767",
"0.52621216",
"0.520148",
"0.5156533",
"0.5122... | 0.83449495 | 0 |
Validate that the primary key (and no other columns) information is present in the record headers. | def viD8(PQER, hdzf, p9bx):
GTA_ = GLL2(vIwR.ascii_lowercase, 10)
dTSf = f'jdbc.primaryKeySpecification'
UzPC = None
S3WX = [{'id': 1, 'name': 'The Lich King', 'game': 'World of Warcraft'}, {'id': 2, 'name': 'Bowser', 'game': 'Super Mario Bros'}, {'id': 3, 'name': 'Handsome Jack', 'game': 'Borderlands 2... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CrPy(Ui6a, xAfl):\n WfCS = list(map(lambda WKvO: WKvO[0], Ui6a.dtypes))\n for _sei in xAfl:\n if _sei not in WfCS:\n raise mIsg('Invalid primary key: {}, the specified primary key does not exists among the available columns: {}'.format(xAfl, WfCS))\n return True",
"def sBY3(YKHO, *... | [
"0.710756",
"0.69049853",
"0.67949235",
"0.6773557",
"0.67009205",
"0.6618005",
"0.656395",
"0.63642055",
"0.63500917",
"0.63474166",
"0.6334901",
"0.6316691",
"0.6282431",
"0.6276385",
"0.626481",
"0.6259302",
"0.62398225",
"0.62033385",
"0.618943",
"0.61541224",
"0.61427766... | 0.0 | -1 |
Validate that the primary key (and no other columns) information is present in the record headers. | def r6r2(PQER, hdzf, p9bx):
GTA_ = GLL2(vIwR.ascii_lowercase, 10)
dTSf = f'jdbc.primaryKeySpecification'
UzPC = None
zDmR = PQER.get_pipeline_builder()
if p9bx.type is 'Oracle':
LJHZ = 'MY_NUMBER_1'
elif p9bx.type is 'PostgreSQL':
LJHZ = 'my_integer'
else:
LJHZ = 'my_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CrPy(Ui6a, xAfl):\n WfCS = list(map(lambda WKvO: WKvO[0], Ui6a.dtypes))\n for _sei in xAfl:\n if _sei not in WfCS:\n raise mIsg('Invalid primary key: {}, the specified primary key does not exists among the available columns: {}'.format(xAfl, WfCS))\n return True",
"def sBY3(YKHO, *... | [
"0.710756",
"0.69049853",
"0.67949235",
"0.6773557",
"0.67009205",
"0.6618005",
"0.656395",
"0.63642055",
"0.63500917",
"0.63474166",
"0.6334901",
"0.6316691",
"0.6282431",
"0.6276385",
"0.626481",
"0.6259302",
"0.62398225",
"0.62033385",
"0.618943",
"0.61541224",
"0.61427766... | 0.0 | -1 |
Validate that the primary key (and no other columns) information is present in the record headers. | def doL4(PQER, hdzf, p9bx):
GTA_ = GLL2(vIwR.ascii_lowercase, 10)
dTSf = f'jdbc.primaryKeySpecification'
UzPC = None
zDmR = PQER.get_pipeline_builder()
if p9bx.type is 'Oracle':
LJHZ = 'MY_DATE'
else:
LJHZ = 'my_date'
hLRM = zDmR.add_stage('JDBC Multitable Consumer')
hLRM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CrPy(Ui6a, xAfl):\n WfCS = list(map(lambda WKvO: WKvO[0], Ui6a.dtypes))\n for _sei in xAfl:\n if _sei not in WfCS:\n raise mIsg('Invalid primary key: {}, the specified primary key does not exists among the available columns: {}'.format(xAfl, WfCS))\n return True",
"def sBY3(YKHO, *... | [
"0.71068144",
"0.6906019",
"0.67986387",
"0.6772767",
"0.6703823",
"0.6616302",
"0.65656954",
"0.636813",
"0.6350108",
"0.6348804",
"0.63357973",
"0.631929",
"0.62806803",
"0.6277031",
"0.6269011",
"0.6258007",
"0.6238159",
"0.6204205",
"0.6191156",
"0.6155187",
"0.6146578",
... | 0.0 | -1 |
Validate that the primary key (and no other columns) information is present in the record headers. | def JwhY(PQER, hdzf, p9bx):
GTA_ = GLL2(vIwR.ascii_lowercase, 10)
UzPC = None
sMjA = f'jdbc.vendor'
S3WX = [{'id': 1, 'name': 'The Lich King', 'game': 'World of Warcraft'}, {'id': 2, 'name': 'Bowser', 'game': 'Super Mario Bros'}, {'id': 3, 'name': 'Handsome Jack', 'game': 'Borderlands 2'}]
zDmR = PQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CrPy(Ui6a, xAfl):\n WfCS = list(map(lambda WKvO: WKvO[0], Ui6a.dtypes))\n for _sei in xAfl:\n if _sei not in WfCS:\n raise mIsg('Invalid primary key: {}, the specified primary key does not exists among the available columns: {}'.format(xAfl, WfCS))\n return True",
"def sBY3(YKHO, *... | [
"0.710756",
"0.69049853",
"0.67949235",
"0.6773557",
"0.67009205",
"0.6618005",
"0.656395",
"0.63642055",
"0.63500917",
"0.63474166",
"0.6334901",
"0.6316691",
"0.6282431",
"0.6276385",
"0.626481",
"0.6259302",
"0.62398225",
"0.62033385",
"0.618943",
"0.61541224",
"0.61427766... | 0.0 | -1 |
Returns a device object given a device identifier. This includes the hashed secret and salt for that device. | def jMYo(Emd4, UzPC, jf3N):
N1p7 = UzPC.cursor()
N1p7.execute('select device_id, device_secret_hashed, salt from device where device_id=%s', (jf3N,))
if N1p7.rowcount != 1:
raise ValueError('Device not found')
else:
jf3N, geC3, NTfD = N1p7.fetchone()
NTfD = WR89.b64decode(NTfD)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wYyl(jf3N):\n if jf3N is not None:\n l967()\n return I0uW(jf3N)\n else:\n return qHN2",
"def VeaS(YKHO, id):\n return I0uW(id=id, client=YKHO)",
"def begE(YKHO):\n return YKHO.broker.device(**{'FWCSID': YKHO.FWCSID})",
"def VeaS(YKHO, jf3N):\n return YKHO._devices[jf3N... | [
"0.67220694",
"0.6687978",
"0.6608728",
"0.65415686",
"0.65405566",
"0.64563286",
"0.6398616",
"0.6369629",
"0.63494354",
"0.6287052",
"0.6260755",
"0.61929834",
"0.6189181",
"0.61890084",
"0.60819966",
"0.6071492",
"0.6069383",
"0.6050415",
"0.6049774",
"0.6048048",
"0.60353... | 0.83493257 | 0 |
Calculates and returns area of circle instance | def f0tD(YKHO):
return epAf.pi * YKHO._radius ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO) -> float:\n return YKHO.circle_area(YKHO.radius)",
"def yX2h(r1VO):\n return mM0K * r1VO * r1VO",
"def UdRN(r1VO):\n f0tD = epAf.pi * r1VO ** 2\n return f0tD",
"def f0tD(YKHO):\n return YKHO.radius ** 2 * mM0K",
"def yX2h(r1VO):\n return mM0K * r1VO ** 2",
"def f0tD(YKHO)... | [
"0.84584695",
"0.8187639",
"0.81688786",
"0.81128526",
"0.8098953",
"0.80802345",
"0.80533683",
"0.80527455",
"0.8041574",
"0.8041574",
"0.8041574",
"0.8034104",
"0.8034104",
"0.8021334",
"0.8021041",
"0.8019616",
"0.8017744",
"0.8001247",
"0.7998776",
"0.799521",
"0.7993257"... | 0.79269886 | 30 |
Test for parallel solving in unitary simulation. Uses same schedule as test_x_gate but runs it twice to trigger parallel execution. | def Q9kM(YKHO):
XjTb = 1.0
iF_P = XjTb
Mkmy = 0.01
FdP5 = 50
nxyw = oyIN.array([1.0, 0.0])
yokr = 9000
x16A = tZNw(system_model=YKHO._system_model_1Q(XjTb, Mkmy))
b6Gq = YKHO._1Q_constant_sched(FdP5)
CI4F = qGnx([b6Gq, b6Gq], backend=x16A, meas_level=2, meas_return='single', meas_map... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZlcF():\n nWeE = Hy7s.path.dirname(xAKo)\n lqQH = Hy7s.path.join(nWeE, 'test_configuration')\n GPtr = Pcbz.Config(Pcbz.DefaultGenome, Pcbz.DefaultReproduction, Pcbz.DefaultSpeciesSet, Pcbz.DefaultStagnation, lqQH)\n XP5J = Pcbz.Population(GPtr)\n XP5J.add_reporter(Pcbz.StdOutReporter(CoUW))\n ... | [
"0.65843475",
"0.6528482",
"0.6457935",
"0.64472336",
"0.63827187",
"0.6204465",
"0.6201213",
"0.61932516",
"0.6188071",
"0.61757463",
"0.6134894",
"0.60983425",
"0.6091878",
"0.60537535",
"0.5998962",
"0.59978634",
"0.5978609",
"0.59750575",
"0.5963188",
"0.5937448",
"0.5921... | 0.6371083 | 5 |
Generate a random vector of length n as a list. | def HANA(exwG):
return [tuKI() for YRbF in Ni9Y(exwG)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HANA(exwG):\n return [tuKI() for YRbF in range(exwG)]",
"def HANA(exwG):\n return [tuKI() for YRbF in range(exwG)]",
"def eWZ6(exwG):\n return [z50T.random_scalar() for bGrB in range(0, exwG)]",
"def d_3B(exwG, c2Yh, *qIxc):\n return [c2Yh(*qIxc) for YRbF in range(exwG)]",
"def nocu(exwG: i... | [
"0.87890595",
"0.87890595",
"0.84672207",
"0.8098994",
"0.79030913",
"0.77202815",
"0.7712027",
"0.76221067",
"0.76030225",
"0.74885154",
"0.74396455",
"0.731508",
"0.7159042",
"0.7126192",
"0.71123344",
"0.70958805",
"0.70622253",
"0.7021745",
"0.6987901",
"0.6928898",
"0.69... | 0.86858994 | 2 |
Compute the matrixvector product Ax as a list. | def KOED(k0lF, WKvO):
r8hN, exwG = (len(k0lF), len(WKvO))
return [sum([k0lF[YRbF][G1Hx] * WKvO[G1Hx] for G1Hx in range(exwG)]) for YRbF in range(r8hN)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U14a(k0lF, LVAh):\n r8hN = len(k0lF)\n exwG = len(k0lF[0])\n yvT9 = [0] * r8hN\n for YRbF in range(r8hN):\n for r845 in range(exwG):\n yvT9[YRbF] += k0lF[YRbF][r845] * LVAh[r845]\n return yvT9",
"def TsWE(Ty9i, k0lF):\n gNf1 = []\n for FgTH in k0lF:\n och9 = [FgT... | [
"0.72774047",
"0.68313384",
"0.6776022",
"0.6774592",
"0.6774592",
"0.6722973",
"0.66840774",
"0.6568797",
"0.6443788",
"0.6378437",
"0.6367136",
"0.63623005",
"0.63619936",
"0.63254935",
"0.6309203",
"0.6292112",
"0.6290788",
"0.6275703",
"0.61991286",
"0.618133",
"0.6155432... | 0.7794518 | 0 |
Initialize array with normalized columns | def xUFs(M1Jx=1.0):
def dcwf(ROpF, yDqo=None, TLZu=None):
yvT9 = oyIN.random.randn(*ROpF).astype(oyIN.float32)
yvT9 *= M1Jx / oyIN.sqrt(oyIN.square(yvT9).sum(axis=0, keepdims=True))
return ZylS.constant(yvT9)
return dcwf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FM5M(YKHO):\n eRPr = XTiz.min(YKHO.numpy_array_all_data, axis=0)\n I05E = XTiz.max(YKHO.numpy_array_all_data, axis=0)\n xlLU = I05E - eRPr\n YKHO.numpy_array_all_data = 1.0 - (1.0 - -1.0) * (I05E - YKHO.numpy_array_all_data) / xlLU\n YKHO._load_numpy_back_into_linearData()",
"def kt6B(ezWE):\n... | [
"0.71914524",
"0.69587404",
"0.65832293",
"0.65568024",
"0.6547472",
"0.64503187",
"0.63498586",
"0.63075614",
"0.620292",
"0.6184399",
"0.61495924",
"0.61420095",
"0.6140931",
"0.6117459",
"0.61121863",
"0.60912216",
"0.6073887",
"0.6070166",
"0.6062286",
"0.60590357",
"0.60... | 0.0 | -1 |
Indicates type of action rule Expected value is 'ActionGroup'. | def type(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PgMf(YKHO):\n return YKHO._action_type",
"def mmh7(YKHO) -> h8nf[bdIy[str]]:\n return qe4Y.get(YKHO, 'action_group')",
"def PgMf(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'action_type')",
"def PgMf(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'action_type')",
"def PgMf(YKHO) ->... | [
"0.67763937",
"0.6723704",
"0.6663589",
"0.6663589",
"0.6663589",
"0.6663589",
"0.6663589",
"0.6663589",
"0.6663589",
"0.6663589",
"0.65266937",
"0.65175456",
"0.64725757",
"0.64364624",
"0.63879204",
"0.6194361",
"0.616598",
"0.616598",
"0.616598",
"0.616598",
"0.6130812",
... | 0.0 | -1 |
The priority of this correlation. | def Ey19(YKHO) -> qe4Y.Input[int]:
return qe4Y.get(YKHO, 'priority') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ey19(YKHO):\n return YKHO.__priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ju5x(YKHO):\n pass",
"def Ey19(YKHO):\n return YKHO._priority"... | [
"0.82441396",
"0.81377494",
"0.81377494",
"0.81377494",
"0.81377494",
"0.80221355",
"0.79902875",
"0.7925021",
"0.7825931",
"0.7825931",
"0.7809272",
"0.7809272",
"0.7809272",
"0.7809272",
"0.77921915",
"0.77784485",
"0.7777679",
"0.7777679",
"0.7777679",
"0.7777679",
"0.7777... | 0.746131 | 58 |
The JPath of the property that the alerts should be correlated by. | def Jyyj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'field') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RsFk(YKHO):\n return YKHO.alert_rule.child_json_path",
"def pmON(YKHO):\n assert YKHO.islinked()\n return YKHO.__props[fwdW]",
"def pmON(YKHO) -> str:\n return HEOD.get(YKHO, 'path')",
"def pmON(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('path'))",
"def pmON(YKHO) -> str:... | [
"0.7321995",
"0.6999874",
"0.6693884",
"0.66671",
"0.66671",
"0.64561325",
"0.6407248",
"0.63467175",
"0.6307719",
"0.62383956",
"0.62237257",
"0.6217373",
"0.6217373",
"0.6217373",
"0.6217373",
"0.6217373",
"0.6217373",
"0.6217373",
"0.6217373",
"0.6217373",
"0.6217373",
"... | 0.0 | -1 |
Start time for recurrence. | def SWox(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'start_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4lU(YKHO):\n pass",
"def SWox(YKHO) -> qcWV:\n return YKHO.timer_start_time",
"def SWox(YKHO):\n return YKHO.time_range()[0]",
"def SWox(YKHO):\n raise NotImplementedError()",
"def SWox(YKHO) -> int:\n pass",
"def SWox(YKHO) -> ITS7:\n return YKHO._starttime",
"def yKcO(YKHO):\n ... | [
"0.7435437",
"0.74266124",
"0.7418355",
"0.7359779",
"0.7351801",
"0.73359144",
"0.7315184",
"0.73134273",
"0.7248207",
"0.7248207",
"0.71884346",
"0.71265477",
"0.71265477",
"0.7101757",
"0.70931953",
"0.70844835",
"0.70546657",
"0.70546657",
"0.70502913",
"0.70502913",
"0.7... | 0.65293604 | 100 |
Start time for recurrence. | def SWox(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'start_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4lU(YKHO):\n pass",
"def SWox(YKHO) -> qcWV:\n return YKHO.timer_start_time",
"def SWox(YKHO):\n return YKHO.time_range()[0]",
"def SWox(YKHO):\n raise NotImplementedError()",
"def SWox(YKHO) -> int:\n pass",
"def SWox(YKHO) -> ITS7:\n return YKHO._starttime",
"def yKcO(YKHO):\n ... | [
"0.7435437",
"0.74266124",
"0.7418355",
"0.7359779",
"0.7351801",
"0.73359144",
"0.7315184",
"0.73134273",
"0.7248207",
"0.7248207",
"0.71884346",
"0.71265477",
"0.71265477",
"0.7101757",
"0.70931953",
"0.70844835",
"0.70546657",
"0.70546657",
"0.70502913",
"0.70502913",
"0.7... | 0.0 | -1 |
The resource id of the action group to use. | def e8FJ(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'action_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e8FJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'action_group_id')",
"def vFpg(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_id')",
"def e8FJ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'action_group_id')",
"def e8FJ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'action_group_id')",
"def e... | [
"0.8370488",
"0.8011473",
"0.7968883",
"0.7968883",
"0.78642565",
"0.773746",
"0.773746",
"0.773746",
"0.773746",
"0.773746",
"0.773746",
"0.773746",
"0.773746",
"0.773746",
"0.773746",
"0.7564202",
"0.7564202",
"0.7501441",
"0.7501441",
"0.7501441",
"0.7501441",
"0.7501441... | 0.7664908 | 15 |
The severity of the alerts fired by the rule. Must be between 0 and 4. | def rwlZ(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'severity') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwlZ(YKHO) -> qe4Y.Input[uLKX[str, 'AlertSeverity']]:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> int:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> float:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'severity')",
"def rwlZ(Y... | [
"0.82207257",
"0.79742587",
"0.79717815",
"0.786863",
"0.786863",
"0.786863",
"0.786863",
"0.786863",
"0.786863",
"0.786863",
"0.78463143",
"0.78463143",
"0.78463143",
"0.76401794",
"0.76093",
"0.76093",
"0.7596119",
"0.7596119",
"0.7567517",
"0.7371393",
"0.7162493",
"0.70... | 0.77464217 | 13 |
End date for suppression | def KhBf(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'end_date') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eiFi(YKHO) -> _c1T:\n eiFi = YKHO.startdate() + fCoM(days=6)\n return eiFi",
"def lt5v(Emd4, nPrm: Restaurant) -> bool:\n Ylbp = not nPrm.end_date\n if not Ylbp:\n print(f'end date: {nPrm.end_date}, pnr: {nPrm.pnr}')\n Emd4.LOGGER['end_date'] += 1\n return Ylbp",
"def QZjw(YKHO... | [
"0.7271083",
"0.7242092",
"0.7205972",
"0.7165469",
"0.70057076",
"0.70057076",
"0.70057076",
"0.70057076",
"0.70057076",
"0.70057076",
"0.70039564",
"0.70030886",
"0.70030886",
"0.70030886",
"0.70030886",
"0.6939145",
"0.68724483",
"0.6857083",
"0.68499833",
"0.6849529",
"0.... | 0.65712774 | 32 |
End date for suppression | def C7pn(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'end_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eiFi(YKHO) -> _c1T:\n eiFi = YKHO.startdate() + fCoM(days=6)\n return eiFi",
"def lt5v(Emd4, nPrm: Restaurant) -> bool:\n Ylbp = not nPrm.end_date\n if not Ylbp:\n print(f'end date: {nPrm.end_date}, pnr: {nPrm.pnr}')\n Emd4.LOGGER['end_date'] += 1\n return Ylbp",
"def QZjw(YKHO... | [
"0.7271083",
"0.7242092",
"0.7205972",
"0.7165469",
"0.70057076",
"0.70057076",
"0.70057076",
"0.70057076",
"0.70057076",
"0.70057076",
"0.70039564",
"0.70030886",
"0.70030886",
"0.70030886",
"0.70030886",
"0.6939145",
"0.68724483",
"0.6857083",
"0.68499833",
"0.6849529",
"0.... | 0.0 | -1 |
Specifies the values for recurrence pattern | def lTma(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[int]]]]:
return qe4Y.get(YKHO, 'recurrence_values') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, lJf5, uqVt, b6Gq):\n YKHO.step = 0.0\n YKHO.initial_value = lJf5\n YKHO.nvalues = uqVt\n YKHO.schedule = h1yS[b6Gq]",
"def SdbH(YKHO, KWm2):\n _NR2 = KWm2.get('job_interval', 30)\n KWm2['freq_interval'] = 30 if not isinstance(_NR2, int) else _NR2\n KWm2['freq_type'] = 4096\n ... | [
"0.5967561",
"0.5828818",
"0.5609036",
"0.55748427",
"0.5551905",
"0.5524551",
"0.5512366",
"0.55113524",
"0.54562783",
"0.5441994",
"0.5436376",
"0.536582",
"0.5363222",
"0.5238506",
"0.5238506",
"0.52247584",
"0.52227",
"0.51921993",
"0.518538",
"0.5164962",
"0.51585937",
... | 0.5589819 | 3 |
Start time for suppression | def SWox(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'start_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4lU(YKHO):\n pass",
"def SWox(YKHO) -> int:\n pass",
"def SWox(YKHO):\n raise NotImplementedError()",
"def QF4h(YKHO) -> None:\n YKHO.start_time = gwnn()",
"def jSV8(YKHO):\n raise NotImplementedError",
"def jSV8(YKHO):\n raise NotImplementedError",
"def WEpS():\n return onpT.... | [
"0.760377",
"0.759168",
"0.72348106",
"0.6626679",
"0.6601658",
"0.6601658",
"0.6566207",
"0.6559646",
"0.6500063",
"0.6479469",
"0.64779186",
"0.64471316",
"0.6402707",
"0.63925916",
"0.63724923",
"0.6337507",
"0.63320756",
"0.6329315",
"0.6316681",
"0.6312986",
"0.63077366"... | 0.0 | -1 |
Start time for recurrence. | def SWox(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'start_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R4lU(YKHO):\n pass",
"def SWox(YKHO) -> qcWV:\n return YKHO.timer_start_time",
"def SWox(YKHO):\n return YKHO.time_range()[0]",
"def SWox(YKHO):\n raise NotImplementedError()",
"def SWox(YKHO) -> int:\n pass",
"def SWox(YKHO) -> ITS7:\n return YKHO._starttime",
"def yKcO(YKHO):\n ... | [
"0.7435437",
"0.74266124",
"0.7418355",
"0.7359779",
"0.7351801",
"0.73359144",
"0.7315184",
"0.73134273",
"0.7248207",
"0.7248207",
"0.71884346",
"0.71265477",
"0.71265477",
"0.7101757",
"0.70931953",
"0.70844835",
"0.70546657",
"0.70546657",
"0.70502913",
"0.70502913",
"0.7... | 0.0 | -1 |
Translate flat questionnaire items into nested dictionaries. | def gJ8n(Hyxo: dict, GTA_: str) -> dict:
mXDZ = ZbWC.compile(f'pcdssetup-{GTA_}-(\\d+)-(\\w+)')
YfpN = {}
for Jyyj, BWXx in Hyxo.items():
kUBT = mXDZ.match(Jyyj)
if kUBT:
U32q, mWFP = kUBT.groups()
if U32q not in YfpN:
YfpN[U32q] = {}
YfpN[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ghvt(JT9N):\n Ylbp = []\n try:\n GLRi = Kky9.objects.filter(phase=JT9N).first()\n except:\n raise Exception('You need to create a questionnaire for phase {}.'.format(JT9N))\n qLW0 = GLRi.questiongroup_set.all()\n for KMkJ in qLW0:\n Ylbp.append(dict(group=KMkJ.name, question... | [
"0.60879797",
"0.60008126",
"0.5781233",
"0.5755344",
"0.56887716",
"0.56861335",
"0.56462854",
"0.5596406",
"0.5576088",
"0.55649215",
"0.55619234",
"0.5561308",
"0.55393255",
"0.55263764",
"0.55115956",
"0.54951626",
"0.5445156",
"0.53514355",
"0.5347477",
"0.5305696",
"0.5... | 0.0 | -1 |
Can not initialize a new Questionnaire entry from API. | def uIcm(YKHO):
raise NotImplementedError('The Questionnaire backend is read-only') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SHjP(YKHO):\n YKHO.load_fixture('tests/fixtures/questions.json', Y4Gy)\n _jzK = {'question': 'What is the most populous city in the world?', 'answer': '', 'category': 3, 'difficulty': 1}\n Ylbp = YKHO.client().post('/questions', json=_jzK)\n nPrm = qQXR.loads(Ylbp.get_data(as_text=True))\n YKHO.... | [
"0.666504",
"0.658579",
"0.6526962",
"0.62679654",
"0.6198908",
"0.61923075",
"0.6157443",
"0.6157443",
"0.6157443",
"0.61261463",
"0.60885274",
"0.6060044",
"0.6000882",
"0.59975344",
"0.59964234",
"0.5955385",
"0.5946043",
"0.59342265",
"0.5915356",
"0.5896009",
"0.58954334... | 0.65760404 | 2 |
This function groups elements of the list xs using 'predicate', and then takes one element from each group. | def pPLc(fUYa: list, lgNN: Callable) -> list:
moMn = VAdt(fUYa, lgNN)
return [uOe2[0] for uOe2 in moMn] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CoWa(OxJJ, lgNN):\n oHE7 = iter(OxJJ)\n uOe2 = [next(oHE7)]\n for tTpl in oHE7:\n if lgNN(tTpl):\n yield uOe2\n uOe2 = [tTpl]\n else:\n uOe2.append(tTpl)\n if uOe2:\n yield uOe2",
"def VAdt(fUYa: list, lgNN: Callable) -> list:\n if not fUYa... | [
"0.8165959",
"0.8092646",
"0.72333497",
"0.64256126",
"0.63012224",
"0.62787414",
"0.6165725",
"0.6125317",
"0.61192834",
"0.61192834",
"0.6105366",
"0.60926896",
"0.6048082",
"0.59641504",
"0.59338176",
"0.5909659",
"0.5892769",
"0.5877839",
"0.5872942",
"0.5866981",
"0.5848... | 0.73864967 | 2 |
Check if the existing connection to an elastic search server contains a specific mapping | def iffg(V_s1, WzOq):
try:
return WzOq.indices.get_mapping(index=V_s1) is not None
except:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aouf(YKHO):\n return",
"def WzmV(YKHO):\n ...",
"def qMlS(YKHO, gtqQ, GFxT):\n for w2B8 in YKHO.conn_genes:\n if gtqQ[0] == w2B8[1] and GFxT[0] == w2B8[2]:\n return True\n return False",
"def jier(YKHO, Csk6):\n if Csk6 is None:\n return False\n if len(Csk6) != ... | [
"0.6527571",
"0.61072135",
"0.6058457",
"0.5995104",
"0.5988184",
"0.58900434",
"0.5867037",
"0.5849159",
"0.57908124",
"0.57870734",
"0.5714804",
"0.5703877",
"0.56831294",
"0.56689924",
"0.5643656",
"0.56373847",
"0.56119365",
"0.5568757",
"0.5560455",
"0.55142057",
"0.5505... | 0.70392066 | 0 |
Get cart via cart_id | def aRHl(sVCJ):
PmIG = xryH.get_shopping_cart_via_cart_id(sVCJ)
return qQXR.dumps(PmIG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(id):\n return w21X.query.filter_by(id=id).one()",
"def aRHl(YKHO, id):\n raise NotImplementedError('Must implement get_cart')",
"def Es1F(YKHO, sVCJ):\n Aofo = NCls.fetch_particular_cart_details(sVCJ)\n return Aofo",
"def ihLG(sVCJ):\n xryH = S8SU.get_cart(sVCJ)\n return (pz3A(xryH... | [
"0.8280825",
"0.82745767",
"0.824717",
"0.7736219",
"0.76334435",
"0.74575204",
"0.73733526",
"0.7244166",
"0.7148351",
"0.7143222",
"0.7056758",
"0.6947067",
"0.69323254",
"0.6924494",
"0.6919222",
"0.68938226",
"0.6889075",
"0.6889075",
"0.68589336",
"0.6790793",
"0.6790184... | 0.74283046 | 6 |
Configure the dynamics for a torque driven program (states are q and qdot, controls are tau activations). The tau activations are bounded between 1 and 1 and actual tau is computed from torquepositionvelocity relationship | def DOeS(e_GT, K9NE, tZXY: bool=False, XnXg: bool=False, lzNu: bool=False, Zm__: bool=False):
if tZXY and K9NE.model.nb_contacts == 0:
raise ValueError('No contact defined in the .bioMod, set with_contact to False')
rt49.configure_q(e_GT, K9NE, True, False)
rt49.configure_qdot(e_GT, K9NE, True, Fals... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZNKO(K9NE):\n avzv.__configure_q_qdot(K9NE, True, False)\n avzv.__configure_tau(K9NE, False, True)\n avzv.__configure_forward_dyn_func(K9NE, g6Ky.forward_dynamics_torque_driven)",
"def kXLl(K9NE):\n if K9NE['q_mapping'] is None:\n K9NE['q_mapping'] = PMY1(GySg(range(K9NE['model'].nbQ())), ... | [
"0.72573954",
"0.7001339",
"0.66635364",
"0.6588722",
"0.6549505",
"0.6542138",
"0.65354604",
"0.65070033",
"0.6439986",
"0.6354711",
"0.61931866",
"0.6189403",
"0.61830854",
"0.61676335",
"0.6116855",
"0.60624975",
"0.6024132",
"0.6007423",
"0.59944445",
"0.59510964",
"0.594... | 0.5673263 | 44 |
Configure the residual forces | def sCp9(e_GT, K9NE, Ipo1: bool, vCRp: bool):
mWFP = 'residual_tau'
qQJq = rt49._get_kinematics_based_names(K9NE, mWFP)
icgi = rt49._apply_phase_mapping(e_GT, K9NE, mWFP)
rt49.configure_new_variable(mWFP, qQJq, e_GT, K9NE, Ipo1, vCRp, axes_idx=icgi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rvpO(YKHO, uuHL):\n if YKHO.res.isDifferent(uuHL):\n YKHO.res.copy(uuHL)\n YKHO.grad_updated = False\n YKHO.obj_updated = False\n YKHO.res_updated = True\n return",
"def Vpl_(YKHO):\n for r8hN in YKHO.residual_layer.parameters():\n r8hN.requires_grad = False\n for r... | [
"0.63494647",
"0.6321144",
"0.6169476",
"0.6094141",
"0.60389525",
"0.599049",
"0.5920224",
"0.59034747",
"0.5879342",
"0.5853243",
"0.583964",
"0.58373046",
"0.57872653",
"0.5754673",
"0.5747695",
"0.5744738",
"0.5742111",
"0.5727037",
"0.5709018",
"0.56774867",
"0.5651189",... | 0.0 | -1 |
Correctly handle unimplemented rich comparisons. In Python 3, return NotImplemented. In Python 2, raise a TypeError. | def xBTy():
if DuQx:
raise TypeError()
else:
return NotImplemented | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zcf_(YKHO, Elif):\n return NxUk(YKHO, '>=', Elif) if type(YKHO) is type(Elif) else NotImplemented",
"def TPjt(YKHO, Elif):\n return NxUk(YKHO, '<=', Elif) if type(YKHO) is type(Elif) else NotImplemented",
"def jmxi(YKHO, Elif):\n return NxUk(YKHO, '>>', Elif) if type(YKHO) is type(Elif) else NotIm... | [
"0.6522535",
"0.6457493",
"0.6426447",
"0.6396854",
"0.6347256",
"0.6318731",
"0.62921906",
"0.6258103",
"0.62530714",
"0.62224185",
"0.6184771",
"0.6162165",
"0.61153436",
"0.60834044",
"0.6039521",
"0.60255474",
"0.60237354",
"0.60145104",
"0.5994729",
"0.59835505",
"0.5977... | 0.6811848 | 0 |
Return the content of the elf section. If any error takes place, return an empty string. | def bPTS(Zznq, M8YW='.text'):
vgXP, u54L = TneB(Zznq, M8YW)
if u54L <= 0 or vgXP < 0:
return ''
D6eH = Hy7s.path.normpath(Zznq)
if vgXP + u54L > Hy7s.path.getsize(D6eH):
return ''
with nUeQ(Zznq, 'rb') as n_aV:
n_aV.read(vgXP)
hGN5 = n_aV.read(u54L)
return hGN5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TneB(Zznq, M8YW='.text'):\n if not EnGy(Zznq):\n return (0, 0)\n pPL7 = '[0-9a-fA-F]+'\n xO4d = ZbWC.compile('\\\\s+\\\\[\\\\s*\\\\d+\\\\] ' + M8YW + '\\\\s+[_a-zA-Z0-9]+\\\\s+' + pPL7 + '\\\\s+(?P<offset>' + pPL7 + ')' + '\\\\s+(?P<length>' + pPL7 + ').*')\n yvT9 = Yn3K.check_output(['reade... | [
"0.68719304",
"0.61888635",
"0.6170187",
"0.61613965",
"0.5781786",
"0.57586014",
"0.568931",
"0.5570929",
"0.5492701",
"0.5431934",
"0.54020804",
"0.53987205",
"0.5397584",
"0.5376811",
"0.5366314",
"0.5339569",
"0.52982444",
"0.52763116",
"0.5273134",
"0.52228284",
"0.52164... | 0.8041594 | 0 |
Create a dictionary of items from a list of list of items. | def sTQI(xpKR):
assert type(xpKR) is list
br9j = {}
for DumB in xpKR:
for ZfUD in DumB:
if ZfUD not in br9j:
br9j[ZfUD] = 1
else:
br9j[ZfUD] += 1
return br9j | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BOen(YKHO, IqQl):\n m4Nl = {}\n for ZfUD in IqQl:\n m4Nl[ZfUD[0]] = ZfUD[1]\n return m4Nl",
"def GkpI(DumB):\n return {YRbF: vC9B for YRbF, vC9B in enumerate(sorted(DumB))}",
"def js81(aqea):\n u54L = len(aqea)\n YRbF = 0\n tPBh = []\n while YRbF < u54L:\n tPBh.append(... | [
"0.73258436",
"0.7256232",
"0.6854058",
"0.6840218",
"0.6683444",
"0.6635335",
"0.6569307",
"0.6535012",
"0.65028346",
"0.6501445",
"0.64907116",
"0.6428486",
"0.64240366",
"0.6411046",
"0.6409025",
"0.63872206",
"0.6382763",
"0.63320696",
"0.6317612",
"0.6274313",
"0.6256932... | 0.5843771 | 50 |
Replace every digit in a string by a zero. | def k1ZV(KCHu):
return ZbWC.sub('\\d', '0', KCHu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VQKx(KCHu):\n for YRbF in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']:\n KCHu = KCHu.replace(YRbF, '')\n return KCHu",
"def hfhL(l5Ny: str) -> str:\n Yxnq = ZbWC.sub('\\\\d+', '0', l5Ny)\n return Yxnq",
"def icwO(fktj):\n if fktj[-1].isdigit() and fktj[-2] == '0':\n retu... | [
"0.7878671",
"0.728198",
"0.6812238",
"0.67331153",
"0.6677174",
"0.6612402",
"0.66112536",
"0.6577562",
"0.65314966",
"0.64957863",
"0.6487779",
"0.64717394",
"0.646032",
"0.6425013",
"0.63594866",
"0.6307897",
"0.6281237",
"0.6273477",
"0.6246789",
"0.62312657",
"0.6230497"... | 0.8449677 | 0 |
Return a list from a path. First split into directories, then by a delimiter character such as '.' | def AgY6(VqRE):
QmmC = []
for Csk6 in VqRE.split('/'):
QmmC.append(Csk6.split('.'))
return QmmC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AgY6(pmON):\n U5bT = []\n Csk6, XP5J = khtY.splitdrive(pmON)\n while XP5J:\n sdCG, J3uN = khtY.split(XP5J)\n if sdCG == XP5J:\n U5bT.append(sdCG)\n break\n if J3uN:\n U5bT.append(J3uN)\n XP5J = sdCG\n if Csk6:\n U5bT.append(Csk6)\n... | [
"0.8116405",
"0.81106865",
"0.79866993",
"0.7954737",
"0.79422337",
"0.7888779",
"0.78802824",
"0.78347665",
"0.782153",
"0.7747172",
"0.7743156",
"0.7741776",
"0.77293086",
"0.77221894",
"0.76919734",
"0.76688975",
"0.76368564",
"0.7622876",
"0.7622876",
"0.7600721",
"0.7577... | 0.7804908 | 9 |
Constructor ui reference to the user interface object (UI.UserInterface) | def FIMM(YKHO, GD_A):
super(ltLr, YKHO).__init__(GD_A)
YKHO.__ui = GD_A | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, GD_A):\n YKHO.ui = GD_A",
"def DbxN(GD_A):\n global __ui\n J7ds = GD_A",
"def GD_A(YKHO, GD_A):\n YKHO._ui = GD_A",
"def FIMM(YKHO, lbxF):\n super().__init__()\n YKHO.uiClass = lbxF\n YKHO.running = False",
"def FIMM(YKHO):\n super(rirZ, YKHO).__init__()\n YKHO.ini... | [
"0.8258348",
"0.7484051",
"0.6939739",
"0.6883552",
"0.6823106",
"0.6757286",
"0.667216",
"0.6635077",
"0.6553326",
"0.64291674",
"0.6427115",
"0.6421514",
"0.6393931",
"0.6378026",
"0.6360326",
"0.6300719",
"0.62923324",
"0.62662596",
"0.6252579",
"0.6246046",
"0.62282157",
... | 0.6695811 | 6 |
Add a new experience to memory. | def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):
tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins)
YKHO.memory.append(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))",
"d... | [
"0.8763217",
"0.8755159",
"0.8509186",
"0.79707366",
"0.7879077",
"0.7878838",
"0.7878838",
"0.7709677",
"0.7708713",
"0.7609456",
"0.74958277",
"0.7470479",
"0.74537706",
"0.737918",
"0.73555547",
"0.730577",
"0.7283659",
"0.7276514",
"0.72636735",
"0.7246649",
"0.72328925",... | 0.7199177 | 29 |
Randomly sample a batch of experiences from memory. | def mvm2(YKHO):
wfZK = tuKI.sample(YKHO.memory, k=YKHO.batch_size)
wspz = ht2j.from_numpy(oyIN.vstack([tTpl.state for tTpl in wfZK if tTpl is not None])).float().to(YKHO.device)
xASv = ht2j.from_numpy(oyIN.vstack([tTpl.action for tTpl in wfZK if tTpl is not None])).long().to(YKHO.device)
vwlo = ht2j.fro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)",
"def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)",
"def mvm2(YKHO):\n wfZK = tuKI.sample(YKHO.memory, k=YKHO.... | [
"0.7983961",
"0.79046863",
"0.7868443",
"0.7706011",
"0.7525482",
"0.75070703",
"0.7481443",
"0.74332356",
"0.7432144",
"0.7427844",
"0.74261487",
"0.74147487",
"0.7403821",
"0.7403821",
"0.7403821",
"0.7392868",
"0.7389204",
"0.7389204",
"0.7389204",
"0.7379021",
"0.7376972"... | 0.7318567 | 26 |
Test whether a statement is inside the loop body or not. | def urQq(YKHO, ZRnd):
for Q6kx in YKHO.loop.body_nodes:
if Q6kx.addr.stmt_idx <= ZRnd < Q6kx.addr.stmt_idx + Q6kx.size:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fr_h(YKHO) -> bool:\n return YKHO._is_inside_loop",
"def uYDa(YKHO):\n return YKHO._loop_depth > 0",
"def fRRh(YKHO, kbO9: Dependency, DLiy: CUNode) -> bool:\n QflN = [Ty9i.start_position() for Ty9i in YKHO.subtree_of_type(DLiy, CvW4.LOOP)]\n afYC = YKHO.subtree_of_type(DLiy, CvW4.CU)\n for ... | [
"0.72217107",
"0.6481275",
"0.6425937",
"0.6210541",
"0.6189864",
"0.6160385",
"0.6091793",
"0.60652107",
"0.60080767",
"0.5998577",
"0.599038",
"0.5983117",
"0.5966879",
"0.5951881",
"0.5932938",
"0.5915695",
"0.58901757",
"0.58710253",
"0.586927",
"0.5862411",
"0.58020383",... | 0.7502243 | 0 |
Return the present model. Used by Parameter servers for merging gradients For supervised learning, the weights and biases are returned as they are sufficient in representing the model. ie. Inputw + b = Output | def YrZb(YKHO):
print('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dyGF(YKHO, sLS8, Xdzc):\n p15a = wOed(inputs=sLS8, outputs=[Xdzc], name='encoder')\n for gEmA in p15a.layers:\n if hasattr(gEmA, 'moving_mean') and hasattr(gEmA, 'moving_variance'):\n gEmA.trainable = True\n nMvt.eval(nMvt.update(gEmA.moving_mean, nMvt.zeros_like(gEmA.moving_... | [
"0.7312423",
"0.7027545",
"0.69240737",
"0.68601173",
"0.6786102",
"0.67841125",
"0.6731594",
"0.667232",
"0.6655872",
"0.66316295",
"0.66308594",
"0.663033",
"0.6626893",
"0.661104",
"0.6605272",
"0.66044307",
"0.66020787",
"0.6601587",
"0.6596484",
"0.6580486",
"0.6576758",... | 0.0 | -1 |
Return the latent normal sample z ~ N(mu, sigma^2) | def dEVc(YKHO, T4kS):
yGTL = YKHO._enc_mu(T4kS)
SgQ6 = YKHO._enc_log_sigma(T4kS)
WTkW = ht2j.exp(SgQ6)
USbC = ht2j.from_numpy(oyIN.random.normal(0, 1, size=WTkW.size())).float().cuda(0)
YKHO.z_mean = yGTL
YKHO.z_sigma = WTkW
return yGTL + WTkW * iQnE(USbC, requires_grad=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (YKHO.latent_cont_dim,))",
"def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (YKHO.batch_size, YKHO.latent_cont_dim))",
"def LY0K(YKHO, g5a_: tf.Tensor, Prd3: tf.Tensor, zNig: int=None):\n if zNig:\n Ep... | [
"0.76224434",
"0.75399035",
"0.726958",
"0.7069402",
"0.7062112",
"0.7003282",
"0.6981386",
"0.6977277",
"0.6964687",
"0.688566",
"0.6842076",
"0.67658067",
"0.6764559",
"0.6757325",
"0.6734205",
"0.6725047",
"0.6714046",
"0.6714046",
"0.6714046",
"0.6702773",
"0.6701739",
... | 0.0 | -1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj):
tspZ = gPbP * (1 - 0.015) ** qtWj
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.7991837",
"0.7940576",
"0.78895533",
"0.78278863",
"0.7822731",
"0.78170556",
"0.7810941",
"0.78027624",
"0.77914375",
"0.7788607",
"0.7782131",
"0.7765793",
"0.77645",
"0.77609223",
"0.7749379",
"0.7739108",
"0.7731853",
"0.77242327",
"0.77121335",
"0.7708826",
"0.7704794... | 0.0 | -1 |
Interpolate a dataframe containing a single track | def j3No(A6b2, NKcE='cubic', XmRU=True, loLX=0.01, Pz9k=30, anp5='data/vis/interpolation'):
if len(A6b2) <= 1:
return A6b2
pXq_ = A6b2['FrameId'].values
QQty = oyIN.diff(pXq_)
NaMX = QQty > Pz9k
if oyIN.any(NaMX):
KnwK = oyIN.where(NaMX)[0]
n3j9 = oyIN.array_split(A6b2, KnwK ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _anc(Kiac):\n return Kiac.interpolate()",
"def Nkb4(jQ3Z: 'DataFrame') -> 'DataFrame':\n jQ3Z = jQ3Z.astype(float).interpolate(method='linear', axis=0, limit=30, limit_direction='forward')\n return jQ3Z",
"def LrjM(jQ3Z, NKcE='cubic'):\n IDCC = []\n UKYx = jQ3Z['Id']\n XBMg = jQ3Z.columns... | [
"0.73448884",
"0.6796421",
"0.67643225",
"0.63399464",
"0.62438023",
"0.62335986",
"0.60297257",
"0.602864",
"0.5897126",
"0.5727737",
"0.5689349",
"0.5672744",
"0.56693554",
"0.5649988",
"0.56115425",
"0.5611105",
"0.5610774",
"0.5599773",
"0.5588767",
"0.5582505",
"0.557655... | 0.60699713 | 6 |
Give number of replicas to a node. | def _Q6t():
return (str(X4Tl), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yvbv(YKHO, yvbv):\n YKHO._num_of_replicas = yvbv",
"def X4Tl(YKHO, BWXx: int):\n YKHO._properties['replicas'] = BWXx",
"def X4Tl(YKHO, BWXx: int):\n YKHO._properties['replicas'] = BWXx",
"def X4Tl(YKHO, BWXx: int):\n YKHO._properties['replicas'] = BWXx",
"def X4Tl(YKHO, BWXx: int):\n YKH... | [
"0.74696577",
"0.7452393",
"0.7452393",
"0.7452393",
"0.7452393",
"0.7452393",
"0.7452393",
"0.73373824",
"0.7219405",
"0.70014083",
"0.6904167",
"0.6904167",
"0.6904167",
"0.6904167",
"0.6904167",
"0.6904167",
"0.6805518",
"0.67915225",
"0.67915225",
"0.6779678",
"0.6715709"... | 0.0 | -1 |
Parses the table representing cases in deaths in each countwide statistical area in the last fourteen days. | def r_ec(_R2e):
jQ3Z = rLdf.read_html(str(ocXQ(_R2e, t43S, True)[1]))[0].rename(columns={'City/Community': PtXs.AREA, 'Total Cases': PtXs.NEW_CASES_14_DAY_AVG, 'Crude Case Rate3': PtXs.NEW_CASES_14_DAY_AVG_PER_CAPITA, 'Adjusted Case Rate3,4': PtXs.ADJ_NEW_CASES_14_DAY_AVG, 'Unstable Adjusted Rate': PtXs.UNSTABLE_AD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pCo6():\n AGPF = Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.realpath(xAKo))).replace('\\\\', '/') + '/'\n nUeQ = 'Weekly_Counts_of_Deaths_by_Jurisdiction_and_Age.csv'\n jQ3Z = rLdf.read_csv(AGPF + 'data/raw/public/' + nUeQ)\n KCHu = jQ3Z[jQ3Z.Type.eq('Unweighted') & jQ3Z['Jurisdiction'].eq('Unit... | [
"0.6458734",
"0.60851824",
"0.5970134",
"0.590236",
"0.5697873",
"0.5688024",
"0.5591218",
"0.5544414",
"0.5492876",
"0.5487722",
"0.54561",
"0.53925264",
"0.5380278",
"0.53298175",
"0.53246903",
"0.5313122",
"0.53092533",
"0.5289783",
"0.5268773",
"0.52441955",
"0.52422357",... | 0.0 | -1 |
Deletes a city by id | def wYcN(accd):
j5sA = S8SU.get(cKBo, accd)
if not j5sA:
eTsH(404)
S8SU.delete(j5sA)
S8SU.save()
return Yxsy(pz3A({}), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DKZ1(accd):\n j5sA = S8SU.get('City', accd)\n if j5sA is None:\n eTsH(404)\n S8SU.delete(j5sA)\n S8SU.save()\n return ({}, 200)",
"def DKZ1(accd):\n M1ak = S8SU.get('City', accd)\n if not M1ak:\n eTsH(404)\n else:\n M1ak.delete()\n S8SU.save()\n retu... | [
"0.8762125",
"0.87296855",
"0.86701375",
"0.8646967",
"0.8614229",
"0.86072886",
"0.8591328",
"0.8576113",
"0.85621524",
"0.8561934",
"0.85577834",
"0.85246295",
"0.8514228",
"0.84095377",
"0.83794504",
"0.8296591",
"0.81342816",
"0.80706805",
"0.7876778",
"0.7835153",
"0.700... | 0.86394745 | 4 |
kth_to_last will return the kth to last node from the input linked list. Going to reverse the linked list and then count k steps. | def Gbpr(CLNC: LinkedList, G1Hx: int) -> o7DN:
if G1Hx <= 0 or G1Hx > CLNC.size:
raise IndexError('list index out of range')
exwG = CLNC.head
for YRbF in range(1, CLNC.size - G1Hx + 1):
exwG = exwG.next
return exwG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gbpr(sdCG, G1Hx):\n WL52 = sdCG\n Q6kx = sdCG\n O5ip = 0\n while WL52.next is not None:\n WL52 = WL52.next\n O5ip += 1\n if O5ip > G1Hx:\n Q6kx = Q6kx.next\n return Q6kx",
"def np4C(YKHO, G1Hx):\n wjRY = YKHO.len_iterative()\n DpUl = YKHO.head\n if DpUl... | [
"0.8533114",
"0.8366589",
"0.82484925",
"0.8240095",
"0.8217524",
"0.80513966",
"0.80100936",
"0.7815205",
"0.7744818",
"0.7704182",
"0.7693188",
"0.7660354",
"0.76344204",
"0.7619236",
"0.7575448",
"0.75306445",
"0.7513636",
"0.74344194",
"0.720026",
"0.7110672",
"0.70288265... | 0.8459346 | 1 |
Return the validation_criteria value. | def Yq4D(YKHO):
return YKHO.data.get('validation_criteria', {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ClYY(YKHO):\n return gZFB.VALIDATION_OF(YKHO).evaluate()",
"def R52L(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'validation_status')",
"def BWXx(YKHO):\n return YKHO._validate_value(YKHO._callback())",
"def ClYY(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'KustomizationValidationType']]]:\n ... | [
"0.6862059",
"0.6300183",
"0.6288416",
"0.62881964",
"0.61651236",
"0.610419",
"0.6080684",
"0.6063194",
"0.60394895",
"0.6005997",
"0.59886485",
"0.5985769",
"0.5945252",
"0.59392107",
"0.5927159",
"0.5927159",
"0.59244573",
"0.5857281",
"0.5822969",
"0.5784038",
"0.5782246"... | 0.73890674 | 0 |
Build a question for boolean input. | def orI9(YKHO, mWFP, nPrm):
WmM4 = YKHO._default(nPrm)
ZuCc = ['true', 'false']
N58y = 'false'
CHTi = ''
xAU6 = []
for Ty9i in ZuCc:
if Ty9i.lower() == WmM4.lower():
N58y = Ty9i
Ty9i = f'[{Ty9i}]'
xAU6.append(Ty9i)
CHTi = f' {'/'.join(xAU6)}'
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sHnj(Emd4, Fg_i: bool) -> t9Dm:\n return Emd4.YES if Fg_i else Emd4.NO",
"def N3EV(YKHO, bAls):\n k4ET = ['yes', 'y', 'no', 'n']\n try:\n ANfV = input(bAls + '? (y/n): ').strip()\n except (KeyboardInterrupt, EOFError):\n print('')\n return False\n while ANfV.lower() not in... | [
"0.67712706",
"0.6692733",
"0.6639793",
"0.6464515",
"0.64110434",
"0.6366972",
"0.63634974",
"0.6327208",
"0.6323628",
"0.6319006",
"0.6304641",
"0.6288317",
"0.62817913",
"0.62705183",
"0.622668",
"0.6219953",
"0.62079",
"0.6203028",
"0.619163",
"0.6191363",
"0.6191363",
... | 0.638392 | 5 |
Build a question for boolean input. | def bMYf(YKHO, mWFP, nPrm):
WmM4 = YKHO._default(nPrm)
CHTi = ''
if WmM4 is not None:
N58y = WmM4
CHTi = f' [{WmM4}]'
YKHO.print_header(nPrm)
BWXx = input(YKHO.choice(CHTi)).strip()
if not BWXx:
BWXx = N58y
BEAL = BWXx
UnuI = BWXx
if YKHO.profile.ij.runtime_le... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sHnj(Emd4, Fg_i: bool) -> t9Dm:\n return Emd4.YES if Fg_i else Emd4.NO",
"def N3EV(YKHO, bAls):\n k4ET = ['yes', 'y', 'no', 'n']\n try:\n ANfV = input(bAls + '? (y/n): ').strip()\n except (KeyboardInterrupt, EOFError):\n print('')\n return False\n while ANfV.lower() not in... | [
"0.67712706",
"0.6692733",
"0.6639793",
"0.6464515",
"0.64110434",
"0.638392",
"0.6366972",
"0.63634974",
"0.6327208",
"0.6323628",
"0.6319006",
"0.6304641",
"0.6288317",
"0.62817913",
"0.62705183",
"0.622668",
"0.6219953",
"0.62079",
"0.6203028",
"0.619163",
"0.6191363",
"... | 0.0 | -1 |
Convert this object in a readeable string (for print) | def zAg0(YKHO):
N4Kb = ''
if YKHO.parent is None:
N4Kb += 'parent = None ' + LUo0
else:
N4Kb += 'parent = ' + str(type(YKHO.parent)) + ' object' + LUo0
N4Kb += 'symbol = "' + str(YKHO.symbol) + '"' + LUo0
N4Kb += 'name = "' + str(YKHO.name) + '"' + LUo0
N4Kb += 'unit = "' + str(Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return ... | [
"0.8147778",
"0.81127644",
"0.81127644",
"0.8051181",
"0.8044083",
"0.80266374",
"0.80100787",
"0.80100787",
"0.8006724",
"0.7989146",
"0.7982943",
"0.7982943",
"0.7982943",
"0.7982943",
"0.79779285",
"0.7975119",
"0.7975119",
"0.7975119",
"0.7975119",
"0.7975119",
"0.7975119... | 0.0 | -1 |
Convert this object in a json serializable dict (can be use in __init__). | def _fYl(YKHO, U_mA=0, MP7X=False, **B2fa):
bQpV = dict()
bQpV['symbol'] = YKHO.symbol
bQpV['name'] = YKHO.name
bQpV['unit'] = YKHO.unit
if YKHO.normalizations is None:
bQpV['normalizations'] = None
else:
bQpV['normalizations'] = dict()
for H5ew, YEnM in YKHO.normalizatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l8Z8(YKHO) -> cuzp:\n return YKHO.to_dict()",
"def y0te(YKHO) -> dict:\n return dHX5(data=YKHO.to_dict())",
"def Napc(YKHO):\n return dict(YKHO.__dict__)",
"def NqdR(YKHO):\n return YKHO.to_dict()",
"def oD7C(YKHO):\n co6n = YKHO.__dict__\n co6n['_class_'] = YKHO.__class__.__name__\n ... | [
"0.8636049",
"0.8450956",
"0.83992404",
"0.8383846",
"0.8285185",
"0.8285185",
"0.8212995",
"0.82021725",
"0.8179472",
"0.81779474",
"0.81630856",
"0.81582636",
"0.80616236",
"0.80541134",
"0.8036083",
"0.80347836",
"0.80271167",
"0.8006634",
"0.8006109",
"0.80009264",
"0.799... | 0.0 | -1 |
build board and prepare all data | def gUkr(YKHO, SzBE: str, xPCr: Tuple[int, int]=None) -> bool:
if YKHO._board:
YKHO.previous_board = None
YKHO.previous_board = jth9.deepcopy(YKHO)
WSaE = qQXR.loads(SzBE)
YKHO.final_level = WSaE['levelProgress']['total'] == WSaE['levelProgress']['current']
vFoO = WSaE['layers'][0][:60]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cc7Y(YKHO, iBIi):\n YKHO.board = iBIi\n YKHO.uncaptured_pieces = list(filter(lambda mrj1: not mrj1.captured, iBIi.pieces))\n YKHO.open_positions = []\n YKHO.filled_positions = []\n YKHO.player_positions = {}\n YKHO.player_pieces = {}\n YKHO.position_pieces = {}\n YKHO.build_filled_posit... | [
"0.7282417",
"0.702766",
"0.6874336",
"0.68311906",
"0.67906445",
"0.67869854",
"0.67626536",
"0.6755633",
"0.67376864",
"0.6721455",
"0.6707388",
"0.66937554",
"0.66751647",
"0.6638915",
"0.66336656",
"0.66258633",
"0.6624192",
"0.6610893",
"0.65652084",
"0.6562726",
"0.6556... | 0.0 | -1 |
Determine if a request user is a member of the staff list editors group. | def eWuK(QePW: HttpRequest) -> bool:
return QePW.user is not None and QePW.user.groups.filter(name=FVPe).first() is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p7xs(CBIr):\n return CBIr.groups.filter(name='managers').exists()",
"def FAbd(YKHO, CBIr):\n hO62 = YKHO.editor_set.filter(id=CBIr.id).exists() or CBIr.is_superuser\n if YKHO.group:\n hO62 = hO62 or YKHO.group.user_can_edit(CBIr)\n return hO62",
"def WJxI(YKHO):\n return YKHO.author.i... | [
"0.72452104",
"0.7044537",
"0.6938868",
"0.68689775",
"0.6825171",
"0.68109494",
"0.6790258",
"0.67823106",
"0.67823106",
"0.67823106",
"0.67823106",
"0.67716223",
"0.67538244",
"0.6749489",
"0.6744141",
"0.6714198",
"0.6706435",
"0.66834015",
"0.66834015",
"0.6681527",
"0.66... | 0.8216507 | 0 |
obtains the binary of the image using a local adaptive threshold | def LQp1(LNo8, Z1S6):
foZr = oyIN.array(LNo8)
ie4D = KUnM.threshold_local(foZr, Z1S6, offset=8)
Q4X2 = foZr < ie4D
return Q4X2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def prtV(LNo8):\n foZr = oyIN.array(LNo8)\n knl1 = KUnM.threshold_otsu(foZr)\n prtV = foZr > knl1\n return prtV",
"def o2YJ(VXjJ, gwAu):\n o2YJ = oyIN.zeros(VXjJ.shape, dtype='uint8')\n o2YJ[VXjJ > gwAu] = 1\n return o2YJ",
"def neaT(YKHO, VXjJ, knl1=(90, 255)):\n neaT = oyIN.zeros_like... | [
"0.7666423",
"0.7566674",
"0.73777866",
"0.72531635",
"0.7246436",
"0.7212722",
"0.704547",
"0.70440155",
"0.69948083",
"0.6966597",
"0.6929411",
"0.6915106",
"0.68698174",
"0.6853725",
"0.6837646",
"0.6833843",
"0.68274325",
"0.6820566",
"0.6789278",
"0.6752862",
"0.67122054... | 0.7991382 | 0 |
generate a list containing num random ints between lower_bound and upper_bound.The result cannot contain duplicates. | def Fw76(mLGw, IDsK, A2Fp):
Aofo = []
xlLU = tuKI.Random()
for YRbF in range(mLGw):
while True:
SkC9 = xlLU.randrange(IDsK, A2Fp)
if SkC9 not in Aofo:
break
Aofo.append(SkC9)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fw76(mLGw, IDsK, A2Fp):\n Aofo = []\n xlLU = tuKI.Random()\n for YRbF in range(mLGw):\n while True:\n nYVo = xlLU.randrange(IDsK, A2Fp)\n if nYVo not in Aofo:\n break\n Aofo.append(nYVo)\n return Aofo",
"def a24_(mLGw, mmRm, yokr):\n tuKI.seed... | [
"0.819956",
"0.7991942",
"0.77431434",
"0.75855356",
"0.73262405",
"0.7256975",
"0.72083384",
"0.7182392",
"0.710175",
"0.70525277",
"0.7005302",
"0.69833803",
"0.69526726",
"0.6874105",
"0.6855941",
"0.68372744",
"0.6825429",
"0.6808667",
"0.6799317",
"0.6784174",
"0.6750042... | 0.8340382 | 0 |
Converts this to an array | def iwLm(YKHO):
return oyIN.array(YKHO.matrix) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MF4b(YKHO):\n return XTiz.asarray(YKHO)",
"def qw7D(YKHO):\n return XTiz.array(YKHO)",
"def GvlY(YKHO):\n qw7D = HWEd.factory(YKHO.dataType, YKHO.shape, YKHO.buffer_.duplicate())\n return qw7D",
"def qw7D(YKHO):\n return XTiz.array([YKHO[Wswm].array for Wswm in sorted(YKHO)])",
"def uzII... | [
"0.8505953",
"0.821335",
"0.80363834",
"0.79696894",
"0.78336495",
"0.78336495",
"0.7798424",
"0.7763221",
"0.7703441",
"0.7681451",
"0.76207495",
"0.7598558",
"0.7587046",
"0.75646484",
"0.75186294",
"0.74983406",
"0.7488032",
"0.74566454",
"0.7425032",
"0.7418989",
"0.74105... | 0.72822905 | 32 |
Initializes a DNNLinearCombinedEstimator instance. | def FIMM(YKHO, sdCG, eG0V=None, o5GN=None, uz0f='Ftrl', i_7d=None, tdIg='Adagrad', y_BD=None, yi76=U78l.relu, TPYx=None, AIv7=None, GPtr=None):
o5GN = o5GN or []
i_7d = i_7d or []
YKHO._feature_columns = list(o5GN) + list(i_7d)
if not YKHO._feature_columns:
raise ValueError('Either linear_featur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, X4OD, S7he, Ep8u=128):\n super(sDih, YKHO).__init__()\n YKHO.l1 = U78l.Linear(X4OD, 512)\n YKHO.l2 = U78l.Linear(512, 512)\n YKHO.l3 = U78l.Linear(512, 512)\n YKHO.l4 = U78l.Linear(512, 512)\n YKHO.l5 = U78l.Linear(512, S7he)",
"def FIMM(YKHO, Htse):\n super(vVCO, YKHO).__init... | [
"0.6113427",
"0.59723777",
"0.59577197",
"0.5877287",
"0.5841119",
"0.5818437",
"0.58145916",
"0.5769932",
"0.5767269",
"0.5757203",
"0.5743996",
"0.5735429",
"0.5729243",
"0.5722729",
"0.57173586",
"0.5713476",
"0.57077587",
"0.57054764",
"0.56999135",
"0.5683763",
"0.568345... | 0.773067 | 0 |
Given a set of entities, it returns those that already exist on the database. | def ps_8(YKHO, cuiw: Session, MMe4: Iterable[Entity]) -> cuzp[AzJI[str, str], ahCL]:
if not MMe4:
return {}
PoiL = nZvB(*[nWJV(ahCL.external_id == LEXu.external_id, ahCL.plugin == LEXu.plugin) for LEXu in MMe4])
xDcj = cuiw.query(ahCL).filter(PoiL)
SQY0 = {LEXu.entity_key: LEXu for LEXu in xDcj.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qB6Y(YKHO, *AdfU: Type[Component], zOjg=False) -> fHNa[str]:\n myBh = [YKHO.entities[UksD.component_name] for UksD in AdfU]\n if zOjg:\n return set.union(*myBh)\n return set.intersection(*myBh)",
"def B3_r(umWR, FQ0H=None, Lk5g=None) -> x1iM[fHNa[zwyK]]:\n whRq = oRi_(set)\n if Lk5g:\n ... | [
"0.6382611",
"0.60467464",
"0.59754926",
"0.59092116",
"0.5823349",
"0.5714536",
"0.5710831",
"0.56652147",
"0.563951",
"0.5612765",
"0.55750066",
"0.5552593",
"0.55502474",
"0.5547342",
"0.5538608",
"0.5536265",
"0.5492433",
"0.5485883",
"0.5476404",
"0.54425335",
"0.5439012... | 0.5673055 | 7 |