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 |
|---|---|---|---|---|---|---|
Get the softmax likelihood associated with the statement. Returns the likelihood as a (softmax model, class label) pair, or as a precomputed discretized likelihood. | def LyQB(YKHO, Wu89=False, QTBn=None):
if not hasattr(YKHO, 'softmax'):
YKHO.generate_softmax()
if YKHO.softmax is not None:
if QTBn is not None:
return YKHO.softmax.probability(class_=YKHO.softmax_class_label, state=QTBn)
elif Wu89:
return YKHO.softmax.probabilit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NzrI(YKHO):\n if YKHO._likelihood is None:\n YKHO._likelihood = kLQb(YKHO.log_likelihood)\n if YKHO._likelihood == 0:\n YKHO._likelihood = HwRy.float_info.min\n return YKHO._likelihood",
"def h_oU(input, tpio, LpaZ=False):\n return o8DQ.apply('LogSoftmax', input.device, [inp... | [
"0.60922885",
"0.60311407",
"0.59170127",
"0.58422333",
"0.5788663",
"0.5774819",
"0.5736715",
"0.56744146",
"0.56641483",
"0.56396025",
"0.5633783",
"0.56208545",
"0.56171095",
"0.56118083",
"0.5607685",
"0.5595049",
"0.5577833",
"0.55751985",
"0.55733746",
"0.556406",
"0.55... | 0.76986706 | 0 |
Equality if types match and fields match | def xa14(YKHO, Elif):
return type(Elif) == type(YKHO) and YKHO.using_default_schema == Elif.using_default_schema and (YKHO.settings == Elif.settings) and (YKHO.schema == Elif.schema) and (YKHO.comment == Elif.comment) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8wp(YKHO, uGHt, Fvlg):\n YKHO.assertEqual(uGHt.name, Fvlg.name)\n YKHO.assertEqual(uGHt.description, Fvlg.description)\n YKHO.assertEqual(set(uGHt.fields.iterkeys()), set(Fvlg.fields.iterkeys()))\n for mWFP, a1PO in uGHt.fields.iteritems():\n YKHO.assertEqual(a1PO.type_str(), Fvlg.fields[mW... | [
"0.7433653",
"0.7135119",
"0.6952121",
"0.69321793",
"0.6918883",
"0.68991315",
"0.6868184",
"0.684146",
"0.67625135",
"0.66731817",
"0.66672426",
"0.6635601",
"0.6625247",
"0.66202956",
"0.66159356",
"0.65862745",
"0.6565891",
"0.65412927",
"0.6541273",
"0.6541269",
"0.64709... | 0.0 | -1 |
Get the most recent media published by the owner of the access_token. | def ufoB(YKHO):
bD7m = 'https://api.instagram.com/v1/users/self/media/recent/?access_token={0}'.format(YKHO.access_token)
QePW = G4JS.get(bD7m)
return QePW.json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YLaj(YKHO):\n return qoQs.RecentMedia(YKHO)",
"def YLaj(YKHO):\n return qoQs.RecentMedia(YKHO)",
"def YLaj(YKHO):\n return qoQs.RecentMedia(YKHO)",
"def YLaj(YKHO):\n return qoQs.RecentMedia(YKHO)",
"def ohK4(YKHO, qwpZ):\n bD7m = 'https://instagram.com/' + YKHO.username + '/media'\n ... | [
"0.6796755",
"0.6796755",
"0.6796755",
"0.6796755",
"0.67599696",
"0.6730841",
"0.6379026",
"0.6122097",
"0.5999925",
"0.59927255",
"0.5931581",
"0.577009",
"0.5754389",
"0.5750317",
"0.5703142",
"0.5688126",
"0.55674386",
"0.5564788",
"0.5486584",
"0.54648614",
"0.54532725",... | 0.6609476 | 6 |
Create flow from flow dict. | def y_qy(Emd4, RC0J=None, **B2fa):
_uqo = Emd4(**Emd4.sanitize_flow_kwargs(RC0J), add_root_task=False)
pNZh = RC0J.get('graph', {})
for D5gV in pNZh.get('tasks', {}).values():
_uqo.add_task(task=D5gV, add_default_connections=False)
for D70y in pNZh.get('edges', []):
_uqo.add_edge(edge=D7... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vCy_(YKHO, Fv2L, GFht, NArs):\n pass",
"def QkSu(chwN):\n return L4Y2(chwN)",
"def jG8h(Emd4, qHj0) -> 'ProductionFlowItem':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def dd3M(Emd4, Ecql=None, hBW8=True):\n _uqo = i2pj(**i2pj.sanitize_flow_kwargs(Ecql))\n for YRbF, D5gV in enumerate(E... | [
"0.6455452",
"0.63703924",
"0.6310935",
"0.630129",
"0.6297996",
"0.61647356",
"0.6027162",
"0.591691",
"0.5911723",
"0.58802015",
"0.5862433",
"0.5854949",
"0.57904935",
"0.5787647",
"0.57203573",
"0.5711133",
"0.563298",
"0.5555938",
"0.5539709",
"0.55395067",
"0.5526905",
... | 0.77714616 | 0 |
Create flow_dict from flow. | def IhFi(YKHO):
RC0J = {**{hkS8: getattr(YKHO, hkS8, None) for hkS8 in YKHO.SIMPLE_ATTRS}, 'graph': {'tasks': {H5ew: D5gV for H5ew, D5gV in YKHO.tasks.items()}, 'edges': [D70y for D70y in YKHO._edges.values()]}, 'num_tickable_tasks': len(YKHO.get_tickable_tasks())}
if 'key' in RC0J and RC0J['key'] is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m0u_(_uqo: flow.Flow) -> dict:\n eHNT = {'id': _uqo.id, 'intercepted': _uqo.intercepted, 'client_conn': _uqo.client_conn.get_state(), 'server_conn': _uqo.server_conn.get_state(), 'type': _uqo.type}\n if _uqo.error:\n eHNT['error'] = _uqo.error.get_state()\n if isinstance(_uqo, Xqgu.HTTPFlow):\n... | [
"0.74811596",
"0.6765847",
"0.60358953",
"0.58801585",
"0.58016783",
"0.5761484",
"0.57410705",
"0.5730544",
"0.56621265",
"0.5659916",
"0.5648384",
"0.5640027",
"0.5624737",
"0.55789095",
"0.55308735",
"0.5521242",
"0.54733324",
"0.5440959",
"0.5367895",
"0.53548",
"0.535308... | 0.72165316 | 1 |
Returns parameter quantiles for starmodel | def Tr1t(mWFP, tTqh='.', ZLJ_=['eep', 'mass', 'radius', 'age', 'feh', 'distance', 'AV'], umWR=[0.05, 0.16, 0.5, 0.84, 0.95], PXIK='mist_starmodel_single', PJWX=False, dhnS=False):
mA51 = Hy7s.path.join(tTqh, mWFP, '{}.h5'.format(PXIK))
try:
VlDb = WNSy.load_hdf(mA51)
except:
if PJWX:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aM62(YKHO, lHyk):\n raise NotImplementedError()",
"def o7bE(YKHO):\n return YKHO._quantiles",
"def o7bE(YKHO, vexM: int):\n return YKHO.dist.quantiles(vexM)",
"def hpNL(YKHO, vexM):\n return None",
"def hpNL(YKHO, vexM):\n return None",
"def aM62(YKHO, vexM: float) -> oyIN.array:\n ... | [
"0.64169925",
"0.637962",
"0.63189775",
"0.62406796",
"0.62406796",
"0.6220513",
"0.61744785",
"0.61182386",
"0.60933316",
"0.60338765",
"0.599344",
"0.599344",
"0.599344",
"0.59428054",
"0.5928919",
"0.589403",
"0.5878463",
"0.5878463",
"0.58730555",
"0.5869733",
"0.58490664... | 0.5597896 | 32 |
Shows the homepage listing students and projects. | def VI_d():
llaM = FWaO.get_projects()
VLXD = FWaO.get_students()
return TvZl('homepage.html', students=VLXD, projects=llaM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VI_d():\n URWT = FWaO.list_all_students()\n jZxb = FWaO.list_all_projects()\n return TvZl('index.html', list_of_students=URWT, list_of_projects=jZxb)",
"def C_QL():\n return TvZl('coursePage.html', courseName='Welcome', Courses=Ecr1, blank=1)",
"def AkDz(QePW):\n t0xh = {'title': 'All Studen... | [
"0.80605704",
"0.6935026",
"0.6850943",
"0.6835104",
"0.68063533",
"0.6660563",
"0.6626679",
"0.6547791",
"0.65438527",
"0.65353847",
"0.6534081",
"0.6529442",
"0.6524559",
"0.6518541",
"0.65129155",
"0.6511044",
"0.65007436",
"0.6494312",
"0.6461636",
"0.6453689",
"0.6452600... | 0.75135344 | 1 |
Compute distance between two objects | def Ayfi(EBgd, HpuQ):
return ((HpuQ.x - EBgd.x) * 2 + (HpuQ.y - EBgd.y)) ** 0.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVDj(YKHO, F5TF, BPWI):\n return oyIN.linalg.norm(oyIN.array(F5TF) - oyIN.array(BPWI))",
"def Ayfi(YKHO, Elif):\n ...",
"def Ayfi(YKHO, Elif):\n return epAf.sqrt((YKHO.x - Elif.x) ** 2 + (YKHO.y - Elif.y) ** 2)",
"def Uy8Q(BzZr, RL4V):\n Ayfi = Nkg6(BzZr.details['lon'], BzZr.details['lat'], R... | [
"0.8555258",
"0.77862144",
"0.7624347",
"0.76083374",
"0.76066375",
"0.75560284",
"0.7544068",
"0.754279",
"0.75403214",
"0.7498405",
"0.7467739",
"0.7458308",
"0.7446304",
"0.7433469",
"0.7394615",
"0.73917365",
"0.7390737",
"0.7388267",
"0.737851",
"0.73703736",
"0.73674935... | 0.6917101 | 71 |
Given a path to a .bdgcfg file, figure out the UUID for that file. | def bLr6(mmls):
iAXB, oDaq, BN_i = cGGv.readConfiguration(mmls)
return oDaq['uuid'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mCB7(ajET, Ux0P=Jvlk):\n try:\n with open(ajET.config.path(Ux0P)) as ONbQ:\n eZe5 = qQXR.loads(ONbQ.read())\n return qxeD.UUID(eZe5['uuid'], version=4).hex\n except (ValueError, AttributeError):\n return None\n except FileNotFoundError:\n return XQ4f(ajET, Ux... | [
"0.6563805",
"0.62032217",
"0.6028028",
"0.59647095",
"0.5964534",
"0.57945305",
"0.57594717",
"0.5742946",
"0.5716567",
"0.5712278",
"0.5690401",
"0.56604785",
"0.56443954",
"0.5641944",
"0.5609591",
"0.55868953",
"0.5585059",
"0.55748874",
"0.5566039",
"0.5555027",
"0.55489... | 0.76507205 | 0 |
Get name of discovery type. | def W0tD(YKHO):
return 'catkin' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l87X(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'type_name')",
"def l87X(YKHO):\n return YKHO._type_name",
"def mWFP(YKHO) -> str:\n return YKHO.type_data.name",
"def l87X(YKHO):\n return YKHO.TYPE_NAMES.get(YKHO.type, 'Unknown')",
"def l87X(YKHO):\n return YKHO.TYPE_NAMES[YKHO.type]",
... | [
"0.71542555",
"0.71514803",
"0.7143081",
"0.71386",
"0.7061267",
"0.70540243",
"0.6987808",
"0.6969985",
"0.6946779",
"0.6748077",
"0.6739484",
"0.6698395",
"0.66971695",
"0.665346",
"0.66354513",
"0.6635443",
"0.6603301",
"0.652437",
"0.652437",
"0.652437",
"0.652437",
"0.... | 0.0 | -1 |
Validator to check if user has admin role | def ynRO(NtEF):
gFsc = cCaN.get(NtEF)
if not gFsc or 'admin' not in gFsc.get('roles', []):
return 'User does not have admin role' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uJBC(CBIr):\n return jDAC(CBIr, zJiV)",
"def Jo_v(CBIr):\n return CBIr in PDtd",
"def _Kb1(YKHO):\n return FxgQ.query.get(2) in YKHO.roles",
"def _Kb1():\n return SAs9.patrole.rbac_test_role == SAs9.identity.admin_role",
"def esq9(YKHO, QePW):\n YKHO.validate_login(QePW)\n if QePW.ses... | [
"0.7195708",
"0.71724236",
"0.71231556",
"0.70081574",
"0.6983258",
"0.6954754",
"0.6895467",
"0.6894189",
"0.68935484",
"0.68899804",
"0.6878295",
"0.6839159",
"0.68133867",
"0.67594767",
"0.67324656",
"0.67324656",
"0.6731227",
"0.672199",
"0.66843635",
"0.667361",
"0.66718... | 0.71722347 | 2 |
If num isn't a power of 2, will return the next higher power of two | def uD9Z(mLGw):
uCmi = 1
while uCmi < mLGw:
uCmi <<= 1
return uCmi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HJcJ(mLGw):\n return 2 ** int(oyIN.ceil(oyIN.log2(mLGw)))",
"def hKtM(YKHO, exwG):\n if exwG == 0:\n return 1\n return int(2 ** epAf.ceil(epAf.log2(exwG)))",
"def uD9Z(mLGw):\n uCmi = 1\n while uCmi < mLGw:\n uCmi <<= 1\n return uCmi",
"def xBap(WKvO):\n return 1 if WKv... | [
"0.8734268",
"0.81847894",
"0.7933371",
"0.78695476",
"0.78207755",
"0.7814647",
"0.7762678",
"0.743134",
"0.739866",
"0.7351554",
"0.7341135",
"0.732585",
"0.7287776",
"0.7251041",
"0.72456557",
"0.71558917",
"0.71558917",
"0.7133101",
"0.7126195",
"0.7105558",
"0.70963067",... | 0.7981922 | 2 |
Average surface distance metric. Computes the average surface distance (ASD) between the binary objects in two images. | def oLcg(Aofo, aC0l, IoFa=None, IL0n=1):
bbms = G5nr(Aofo, aC0l, IoFa, IL0n)
oLcg = bbms.mean()
return oLcg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j8sn(Z5qG, N0W8):\n A2xg = []\n for MOYu in Z5qG:\n A2xg.append(oyIN.mean(MOYu))\n Vpmj = []\n for MOYu in N0W8:\n Vpmj.append(oyIN.mean(MOYu))\n return (oyIN.array(A2xg), oyIN.array(Vpmj))",
"def P8nd(YKHO, Z6UH, mqsI):\n return oyIN.average(oyIN.abs(Z6UH - mqsI))",
"def ZP... | [
"0.6882447",
"0.67812854",
"0.5967613",
"0.5770271",
"0.5768099",
"0.5728789",
"0.5724249",
"0.57195735",
"0.55891013",
"0.55025625",
"0.5478943",
"0.546979",
"0.54515624",
"0.5422702",
"0.5410362",
"0.54010916",
"0.5391672",
"0.536827",
"0.5357524",
"0.5352367",
"0.53379744"... | 0.6061412 | 2 |
Average symmetric surface distance. Computes the average symmetric surface distance (ASD) between the binary objects in two images. | def XAC0(Aofo, aC0l, IoFa=None, IL0n=1):
XAC0 = oyIN.mean((oLcg(Aofo, aC0l, IoFa, IL0n), oLcg(aC0l, Aofo, IoFa, IL0n)))
return XAC0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j8sn(Z5qG, N0W8):\n A2xg = []\n for MOYu in Z5qG:\n A2xg.append(oyIN.mean(MOYu))\n Vpmj = []\n for MOYu in N0W8:\n Vpmj.append(oyIN.mean(MOYu))\n return (oyIN.array(A2xg), oyIN.array(Vpmj))",
"def ZPYz(dg7v, iYf1):\n return sum((sum((wFok[EBgd][HpuQ] for EBgd in dg7v)) for Hpu... | [
"0.61649543",
"0.6120697",
"0.6092789",
"0.5514295",
"0.5485343",
"0.54832506",
"0.53247577",
"0.5288894",
"0.5284722",
"0.5282436",
"0.52777225",
"0.52777046",
"0.52586055",
"0.52527755",
"0.5243048",
"0.519607",
"0.5186011",
"0.516091",
"0.51481456",
"0.5145745",
"0.5134756... | 0.47976315 | 69 |
Decorator to check for discord.py specific paramaters before running a given cog command Returns True if the user is the owner of the guild or the user satisfies all keyword arguments (ex. adminstrator = True) and the command is run in a server (Not a private message) Raises CheckFailure NoPrivateMessage | def VzrS(**awnO):
eJh7 = wQcs.has_permissions(**awnO).predicate
async def extended_check(OaeV):
if OaeV.guild is None:
raise UAju.NoPrivateMessage
return OaeV.guild.owner_id == OaeV.author.id or await eJh7(OaeV)
return wQcs.check(BoZO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bu5z(YKHO, OaeV):\n if OaeV.guild is None:\n raise wQcs.NoPrivateMessage()\n return True",
"def L2oV(qIxc):\n if zEiN(qIxc, skip=True):\n return True\n return False",
"async def cog_check(YKHO, OaeV: Context) -> bool:\n return OaeV.guild is not None",
"async def cog_check(YKH... | [
"0.6856945",
"0.66123337",
"0.64086205",
"0.6222364",
"0.6163362",
"0.6163362",
"0.6090696",
"0.6031354",
"0.60244286",
"0.59669274",
"0.595418",
"0.59363496",
"0.5867672",
"0.5850312",
"0.57432497",
"0.5731238",
"0.57059324",
"0.57043934",
"0.56492984",
"0.56438303",
"0.5635... | 0.5672864 | 18 |
Read a file as text. | def u6jD(Ux0P: str) -> str:
with open(Ux0P) as G6EG:
FUjE = G6EG.read()
return FUjE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sF03(qaEx):\n A5b1(qaEx)\n with open(qaEx) as nUeQ:\n return ''.join([zFiD for zFiD in nUeQ])",
"def Np1T(YNHG: str):\n hGN5: str = ''\n with open(YNHG, mode='r', encoding='utf-8') as nUeQ:\n print('file being read: ' + YNHG + '\\n')\n hGN5 = nUeQ.read()\n return hGN5",
... | [
"0.82834005",
"0.81616354",
"0.81227875",
"0.80503017",
"0.8028902",
"0.7987044",
"0.7964787",
"0.78764147",
"0.78748137",
"0.7856088",
"0.7800344",
"0.7784426",
"0.7780789",
"0.7780785",
"0.7777496",
"0.77749777",
"0.7759207",
"0.77568686",
"0.7745249",
"0.77280533",
"0.7707... | 0.81126684 | 3 |
Initilizer for PowerSpectrum class. Builds custom spectrum if variables are passed when creating instance. | def FIMM(YKHO, fswS: float=280.0, M3Nn: float=4000.0, _nn5: str='AM1.5G'):
blGR = {'AM0Etr': 1, 'AM1.5G': 2, 'AM1.5D': 3}
YKHO.spectrum = oyIN.genfromtxt(pmON.join(pmON.dirname(xAKo), './ASTMG173.csv'), delimiter=',', skip_header=2)[:, [0, blGR[_nn5]]]
YKHO.start_w = fswS
YKHO.stop_w = M3Nn
if fswS ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, fswS: float=280.0, M3Nn: float=4000.0, _nn5: str='AM1.5G'):\n super(KL4S).__init__(fswS, M3Nn, _nn5)\n YKHO.spectrum[:, 1] = YKHO.spectrum[:, 1] * (YKHO.spectrum[:, 0] * 1e-09 / (uwaB.c * uwaB.h))\n YKHO.interp = _anc.interp1d(YKHO.spectrum[:, 0], YKHO.spectrum[:, 1])",
"def FIMM(YKHO, AL... | [
"0.7103904",
"0.68667674",
"0.6739533",
"0.66500825",
"0.6518826",
"0.6500992",
"0.6341084",
"0.6296443",
"0.6279604",
"0.6190744",
"0.61774486",
"0.613103",
"0.61304563",
"0.6079439",
"0.60709953",
"0.6023808",
"0.6001173",
"0.59967315",
"0.59879214",
"0.5983342",
"0.5972209... | 0.6644479 | 4 |
Returns a copy of the spectrum. | def T6Tz(YKHO):
return YKHO.spectrum.copy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zLEI(YKHO):\n YKHO.spectrum = YKHO.spectrum",
"def _owh(YKHO):\n _owh = cr9B.cache_to_psd(YKHO.cache, YKHO.ij)\n return _owh",
"def _owh(YKHO):\n eHNT, _owh = cr9B.get_spectra(YKHO.input.data, method=YKHO.method)\n return _owh",
"def T6Tz(YKHO) -> rLdf.Series:\n kYil = YKHO.get_short_ti... | [
"0.7573213",
"0.7512552",
"0.7477329",
"0.68190265",
"0.68140095",
"0.67553395",
"0.67553395",
"0.66107184",
"0.6573543",
"0.65258205",
"0.6394604",
"0.6306297",
"0.6298666",
"0.62905663",
"0.6238357",
"0.6223427",
"0.61873007",
"0.6179991",
"0.6161867",
"0.61329645",
"0.6116... | 0.85397387 | 0 |
Set the root directory of the library. The root directory is the directory that contains the ``Resources`` folder and the toplevel ``package.mo`` file. | def C7kj(YKHO):
YKHO._libHome = Hy7s.path.abspath(JoM2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q7DL(YKHO, tk5Y):\n YKHO.root_path = tk5Y",
"def pmON(YKHO, jNha):\n pmON = Hy7s.path.realpath(jNha)\n if not Hy7s.path.exists(pmON):\n raise ValueError('Build root does not exist: %s' % jNha)\n YKHO._root_dir = pmON",
"def Q7DL(baDF):\n global root\n tk5Y = Hy7s.path.expanduser(ba... | [
"0.75139695",
"0.74335825",
"0.6927549",
"0.6892072",
"0.67570066",
"0.67570066",
"0.67544323",
"0.67433196",
"0.6607599",
"0.6450696",
"0.6443666",
"0.6395353",
"0.63014346",
"0.62739587",
"0.62310123",
"0.6185639",
"0.61785305",
"0.6135115",
"0.6084959",
"0.60841674",
"0.60... | 0.77901334 | 0 |
return the x that maximizes func_to_maximize(x) | def PyDY(G8zP, Idit=0.5 * cAlv):
pZ9r = lambda WKvO: -G8zP(WKvO)
return z5Xd(pZ9r, Idit, disp=False)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PyDY(G8zP, Idit=0):\n pZ9r = lambda WKvO: -G8zP(WKvO)\n return z5Xd(pZ9r, Idit, disp=False)[0]",
"def bnFD(YKHO, nJ9F, NKcE='fmin', **B2fa):\n return YKHO._optimize(nJ9F, 'max', NKcE, **B2fa)",
"def wmce(SJkH, *qIxc, **B2fa):\n\n def mTTB(*qIxc):\n return -SJkH(*qIxc)\n Ylbp = H0wL(mT... | [
"0.78582346",
"0.762913",
"0.70909435",
"0.7005915",
"0.6918201",
"0.6830878",
"0.68056947",
"0.6792812",
"0.6780441",
"0.6751625",
"0.6751625",
"0.67505354",
"0.67262614",
"0.67262614",
"0.67209095",
"0.67055553",
"0.6699964",
"0.668871",
"0.668871",
"0.668871",
"0.668871",
... | 0.79619956 | 0 |
returns iso formatted timestamp | def ShY9(Ir3V):
return qcWV.datetime.fromtimestamp(int(Ir3V)).strftime('%Y-%m-%d %H:%M:%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2x9():\n return '{}Z'.format(qcWV.datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3])",
"def saqZ():\n HVay = ITS7.time()\n _PYT = repr(HVay).split('.')[1]\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S-{}'.format(_PYT), ITS7.gmtime(HVay))",
"def Jv5M(YKHO, a1PO=None):\n if a1PO is None:\n ... | [
"0.78718376",
"0.77396923",
"0.7717343",
"0.76365614",
"0.7627121",
"0.7439697",
"0.7429275",
"0.7429275",
"0.74282604",
"0.7396412",
"0.7369577",
"0.7363486",
"0.7330156",
"0.7329294",
"0.7278735",
"0.7213117",
"0.7198752",
"0.7176962",
"0.7170994",
"0.7160531",
"0.7148626",... | 0.65717757 | 82 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues):
if not leAC:
if NkkI:
leAC = 'Normalized confusion matrix'
else:
leAC = 'Confusion matrix, without normalization'
Bcwd = YsYU(Y8eF, aMgO)
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.81943494",
"0.80950284",
"0.8029028",
"0.8018638",
"0.79939085",
"0.7990765",
"0.79800814",
"0.797508",
"0.79603964",
"0.7956491",
"0.7937033",
"0.7934199",
"0.79338384",
"0.7930749",
"0.7926003",
"0.79238",
"0.7923391",
"0.7922832",
"0.7922392",
"0.7921617",
"0.79173195",... | 0.78198534 | 87 |
Check that minimum and maximum core values are respected. | def PYVr(KcEq, HW5y):
q5AB = 0
H9I4 = 0
Oq6w = 0
jLiv = 0
for KCHu in range(0, len(KcEq.nodes)):
Nezi = len(KcEq.cpu_lists[KCHu])
AIIz = HW5y[KCHu][uwaB.PLATFORM_FUNCTION]
vBZT = HW5y[KCHu][uwaB.VSWITCH_FUNCTION]
u7gB = HW5y[KCHu][uwaB.SHARED_FUNCTION]
qblw = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vwBR(YKHO):\n if not YKHO.allow_open_amount:\n return\n if YKHO.gc_min < 0 or YKHO.gc_max < 0:\n YKHO.raise_user_error('negative_amount_not_allowed')\n if YKHO.gc_min > YKHO.gc_max:\n YKHO.raise_user_error('invalid_amount')",
"def OdaK(YKHO, **B2fa):\n for Qzcy, GLOV in YKHO.... | [
"0.6770547",
"0.6757663",
"0.65089494",
"0.6500374",
"0.64607984",
"0.6371458",
"0.629739",
"0.62963516",
"0.6271304",
"0.6271218",
"0.6192666",
"0.61786395",
"0.61641514",
"0.6142654",
"0.6117739",
"0.60988885",
"0.60755795",
"0.60312194",
"0.6020419",
"0.597178",
"0.5952143... | 0.5696111 | 42 |
Unload a config entry. | async def async_unload_entry(ajET, PhL6):
yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')
return yT1k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True",
"async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry):\n yT1k = await ajET.config_entries.async_unload_platforms(bTKY, aprE)\n if yT1k:\n ajET.data[Sugg].pop(bTKY... | [
"0.6888799",
"0.67804056",
"0.6748717",
"0.66898286",
"0.6658954",
"0.6616611",
"0.6603602",
"0.65933734",
"0.6559995",
"0.6542201",
"0.6508463",
"0.6508463",
"0.6508463",
"0.6508463",
"0.6498429",
"0.64940464",
"0.648741",
"0.648741",
"0.648741",
"0.648741",
"0.64700884",
... | 0.6973518 | 0 |
Converts LatLng dicts to tuples. | def EV8W(Xl9d):
if isinstance(Xl9d, dict):
return (Xl9d['lat'], Xl9d['lng'])
else:
return Xl9d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wzOR(Csk6):\n return [(H5ew, BWXx) for H5ew, BWXx in Csk6.items()]",
"def tDAG(cmPJ):\n W0Eb = []\n for YaKs, ZMlM in cmPJ.items():\n W0Eb.append((ZMlM['x'], ZMlM['y']))\n return W0Eb",
"def lvFT(Csk6):\n return tuple(sorted(Csk6.items(), key=lambda ZfUD: ZfUD[0]))",
"def YVOS(OE5R)... | [
"0.66366625",
"0.6392047",
"0.61594534",
"0.61575013",
"0.613559",
"0.6055408",
"0.6005529",
"0.59849167",
"0.59672385",
"0.5961524",
"0.59522444",
"0.5933124",
"0.5812164",
"0.5763585",
"0.5733763",
"0.57309294",
"0.56814367",
"0.56712127",
"0.5636992",
"0.5636462",
"0.56187... | 0.6956577 | 0 |
Render website's home page. | def kZiy():
return TvZl('home.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')",
"def C_QL():\n ... | [
"0.8725",
"0.8579784",
"0.8504212",
"0.84866977",
"0.84621906",
"0.84369636",
"0.8430821",
"0.84204614",
"0.83973694",
"0.83973694",
"0.8375524",
"0.83571446",
"0.8351527",
"0.83413976",
"0.83413976",
"0.8336913",
"0.8330127",
"0.83299094",
"0.83257043",
"0.8317489",
"0.82942... | 0.833817 | 25 |
Render the website's about page. | def vsuQ():
return TvZl('about.html', name='Nadrine Simms') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')",
"def vsuQ():\n return TvZl... | [
"0.87910306",
"0.8698105",
"0.86404276",
"0.86124563",
"0.8490408",
"0.84784615",
"0.8467779",
"0.84352976",
"0.84289914",
"0.8424242",
"0.8424242",
"0.8424242",
"0.8424242",
"0.8424242",
"0.8424242",
"0.8424242",
"0.8424242",
"0.8424242",
"0.8424242",
"0.8424242",
"0.8424242... | 0.8185684 | 41 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also tell the browser not to cache the rendered page. If we wanted to we could change maxage to 600 seconds which would be 10 minutes. | def PYz4(geh0):
geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
geh0.headers['Cache-Control'] = 'public, max-age=0'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.8143421",
"0.8121197",
"0.8121197",
"0.8121197",
"0.8121197",
"0.80378723",
"0.80360985",
"0.8010573",
"0.7974773",
"0.7764793",
"0.7746749",
"0.75882703",
"0.74570346",
"0.7392739",
"0.7386158",
"0.7386158",
"0.7368778",
"0.7353415",
"0.7353415",
"0.7353415",
"0.7353415",... | 0.79951274 | 32 |
Set cuda or cpu as default tensor type. | def _kfn(begE):
if begE in [ht2j.device('cpu'), 'cpu']:
ht2j.set_default_tensor_type(ht2j.FloatTensor)
else:
ht2j.set_default_tensor_type(ht2j.cuda.FloatTensor) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _kfn():\n if ht2j.cuda.is_available():\n ht2j.set_default_tensor_type('torch.cuda.FloatTensor')\n else:\n print('ERROR: cuda is not available. Test will exit.')",
"def iNsL(begE: str='cuda'):\n UmpP._default_device_type = begE",
"def Xw1V(begE, DDLl='autograd'):\n if DDLl == 'auto... | [
"0.8462085",
"0.70081735",
"0.6351299",
"0.6312891",
"0.6302002",
"0.6301001",
"0.62432814",
"0.62432814",
"0.62432814",
"0.62432814",
"0.6154245",
"0.61309606",
"0.61218303",
"0.6116661",
"0.6022028",
"0.59652746",
"0.5912389",
"0.5874618",
"0.5867803",
"0.586027",
"0.582362... | 0.8510498 | 0 |
Get the Type of a given entity | def FRul(WoMo):
N9D1 = OJ0g.MolFromSmiles(WoMo)
if N9D1.HasSubstructMatch(OJ0g.MolFromSmarts('[*;R]')):
return 'RING'
return 'FG' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n8Qd(YKHO):\n return YKHO.entity_type",
"def zXgc(YKHO):\n return YKHO._entity_type",
"def zXgc(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'entity_type')",
"def zXgc(YKHO) -> str:\n return YKHO._entity_type",
"def zXgc(YKHO) -> qe4Y.Input['EntityTypes']:\n return qe4Y.get(YKHO, 'entity_... | [
"0.8026705",
"0.77205175",
"0.7690819",
"0.76394707",
"0.7544927",
"0.75048757",
"0.69538164",
"0.68466866",
"0.67495024",
"0.6543524",
"0.6384864",
"0.6384864",
"0.63847643",
"0.6349885",
"0.6348386",
"0.6265002",
"0.6224498",
"0.6190957",
"0.6190957",
"0.61684495",
"0.61335... | 0.0 | -1 |
Get and break AtomAtom pairs in two different rings. | def Qgwb(eSKT, Crrw=False, St5E=False):
foCo = eSKT.GetRingInfo()
HlHH = foCo.AtomRings()
UG4z = []
T2Cp = [ZfUD for XuXy in foCo.BondRings() for ZfUD in XuXy]
lHmx = []
for W0I0 in eSKT.GetBonds():
if W0I0.GetIdx() in T2Cp:
continue
HH9T = W0I0.GetBeginAtomIdx()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kdUP(YKHO, mmRm=True, kcwm=True, BA9O=True):\n ynSc = []\n for hQUT in YKHO.iter_atoms(sort=BA9O):\n for aixJ in YKHO.iter_atoms(sort=BA9O):\n if not hQUT == aixJ:\n if not mmRm or BzLl(hQUT.cart, hQUT.element, aixJ.cart, aixJ.element):\n mIJa = '{}{}'.... | [
"0.59658116",
"0.56597847",
"0.5635806",
"0.56292987",
"0.54953146",
"0.54759115",
"0.5455739",
"0.54142886",
"0.54060113",
"0.5320033",
"0.53129005",
"0.52928233",
"0.52688074",
"0.52503175",
"0.5239089",
"0.5212334",
"0.521067",
"0.5196737",
"0.5193991",
"0.51893455",
"0.51... | 0.6060232 | 0 |
Checks if usernamepassword combination is valid. | def Q9hI(NtEF, jTXt):
NCls = GGod()
NCls.ping(True)
DpUl = NCls.cursor()
try:
Pe9W = "SELECT password FROM users WHERE user_name = '{}';".format(NtEF)
DpUl.execute(Pe9W)
for YRbF in DpUl:
return z8jj(YRbF[0], jTXt)
return False
except KUr9.connector.Error ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kOTF(NtEF, jTXt):\n BHGE = ZbWC.search('\\\\d+', jTXt)\n PVq6 = ZbWC.search('[A-Z]+', jTXt)\n Fb9w = len(jTXt) > A6jg\n RtRb = ZbWC.search('[\\\\-\\\\/\\\\@\\\\?\\\\!\\\\,\\\\.\\\\#\\\\&\\\\*]+', jTXt)\n WNtM = BHGE and PVq6 and Fb9w and RtRb\n if WNtM:\n return True\n return False"... | [
"0.7966039",
"0.7848805",
"0.7792554",
"0.776062",
"0.76855046",
"0.76335526",
"0.75977254",
"0.7491143",
"0.74420166",
"0.7403845",
"0.7370911",
"0.7354776",
"0.7353697",
"0.72918993",
"0.72707045",
"0.72678345",
"0.7257464",
"0.7235163",
"0.72348094",
"0.721607",
"0.7211450... | 0.70460725 | 30 |
Add an edge to the underlying graph. | def D70y(YKHO, kO3T: VizEdge) -> None:
YKHO._digraph.edge(kO3T.start, kO3T.end) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F1KG(YKHO, D70y: Edge):\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n assert D70y not in YKHO.edges\n YKHO.edges.append(D70y)",
"def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKHO.edges and e1vZ in YKHO.edges):\n raise Val... | [
"0.8445283",
"0.8443771",
"0.83711624",
"0.8369298",
"0.83635324",
"0.83153874",
"0.8244956",
"0.8088963",
"0.8080543",
"0.8058128",
"0.8039632",
"0.8031182",
"0.8017334",
"0.79846",
"0.7972718",
"0.7916044",
"0.78750145",
"0.7841579",
"0.781696",
"0.76966286",
"0.7605795",
... | 0.0 | -1 |
Parse metadata lines to get metadata object (ordered dict) Allow only numbers, lists of numbers and strings | def GJ6p(T1Nq):
def gLCD(zFiD):
Ylbp = [wEf2.strip() for wEf2 in zFiD[5:].split(u':', 1)]
H5ew, BWXx = (Ylbp[0], Ylbp[1]) if len(Ylbp) == 2 else (Ylbp[0], u'')
if ZbWC.match('^-?\\d*[\\.|,]?\\d+$', BWXx):
BWXx = float(BWXx)
elif ZbWC.match('^\\[(.*)\\]', BWXx):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UpmI(YKHO, e5kH):\n hlel = {}\n for mWFP, BWXx in e5kH.items():\n mWFP = mWFP.lower()\n if mWFP == 'summary':\n fB8E = '\\n'.join(BWXx)\n YKHO._md.reset()\n QxIo = YKHO._md.convert(fB8E)\n hlel[mWFP] = YKHO.process_metadata(mWFP, QxIo)\n el... | [
"0.68529207",
"0.67159194",
"0.66998285",
"0.6539436",
"0.6451507",
"0.63073575",
"0.6226078",
"0.61940926",
"0.6166599",
"0.606983",
"0.60641",
"0.6048356",
"0.6042308",
"0.60304004",
"0.60246766",
"0.5993654",
"0.5988432",
"0.5985137",
"0.59825426",
"0.5975988",
"0.596073",... | 0.7264949 | 0 |
Returns the y coordinate of the last mouse click that was waited for. | def oMiv():
return FJbc.getMouseLocation().getY() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def boAb(YKHO):\n return YKHO.actual_coordinates[1]",
"def MSxD():\n return FJbc.getMouseLocation().getX()",
"def BBTF(YKHO):\n return YKHO.position.y",
"def yDCK(YKHO):\n return YKHO.coords[1]",
"def boAb(YKHO):\n return YKHO.rect.y",
"def yDCK(YKHO):\n return YKHO._collision_rect.y + ... | [
"0.70762795",
"0.70102507",
"0.70081323",
"0.685298",
"0.67405987",
"0.6689101",
"0.6683078",
"0.6655625",
"0.6521392",
"0.65000963",
"0.64991355",
"0.649781",
"0.6495931",
"0.6438594",
"0.6438594",
"0.64369875",
"0.641067",
"0.64102703",
"0.64101905",
"0.63854265",
"0.638531... | 0.8801762 | 0 |
Convert number to nearest numbers with SI prefixes. | def y0cW(mLGw):
oCcr = [1e-24 * pow(10, 3 * WKvO) for WKvO in range(17)]
tX49 = list(reversed(['Yotta (Y)', 'Zetta (Z)', 'Exa (E)', 'Peta (P)', 'Tera (T)', 'Giga (G)', 'Mega (M)', 'Kilo (K)', '', 'Milli (m)', 'Micro ($\\mu$)', 'Nano (n)', 'Pico (p)', 'Femto (f)', 'Atto (a)', 'Zepto (z)', 'Yocto (y)']))
kLQb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8Pe(b5Lm, BWXx, WC_0, yLCI):\n um5V = [WKvO for WKvO in b5Lm if WKvO[0] == WC_0 and WKvO[1] == yLCI]\n if um5V:\n return round(um5V[0][2] * BWXx, 2)\n else:\n NIsW = [WKvO for WKvO in b5Lm if WKvO[1] == WC_0 and WKvO[0] == yLCI]\n return round(1 / NIsW[0][2] * BWXx, 2)",
"def K... | [
"0.5877881",
"0.58714896",
"0.5813303",
"0.56365305",
"0.5605271",
"0.55365324",
"0.5487399",
"0.5468763",
"0.5433826",
"0.54247254",
"0.5419",
"0.5385421",
"0.53544366",
"0.5351114",
"0.5347292",
"0.5333756",
"0.53021646",
"0.5281399",
"0.5250965",
"0.52498883",
"0.52410996"... | 0.0 | -1 |
Get an array of colors, typically to use for plotting. | def Kt7N(mLGw, d7Eb=False):
udwX = tRp2('nipy_spectral', mLGw)
Z9rn = [udwX(YRbF)[:-1] for YRbF in range(mLGw)][1:]
if d7Eb:
return Z9rn
iYf1 = [tuple(ezWE((1, 1, 1)) - ezWE(qfpW)) for qfpW in Z9rn]
Z9rn = ['#%02x%02x%02x' % tuple((int(255 * qfpW[YRbF]) for YRbF in range(len(qfpW)))) for qfp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kt7N():\n return ['#8c99fc', '#cacefd', '#fff1d7', '#feda98', '#fda85a', '#fc6647']",
"def Kt7N():\n Jw9H = ['#d53e4f', '#fc8d59', '#fee08b', '#ffffbf', '#e6f598', '#99d594', '#3288bd']\n return Jw9H",
"def fRt4(YKHO):\n WKvO = oyIN.linspace(0, 1, YKHO.length)\n LVAh = WKvO ** YKHO.gamma\n ... | [
"0.8431883",
"0.8252241",
"0.757633",
"0.7556513",
"0.749515",
"0.742635",
"0.742635",
"0.7417511",
"0.738863",
"0.7332588",
"0.72232324",
"0.7163443",
"0.6962239",
"0.6939394",
"0.6923644",
"0.69206274",
"0.69086355",
"0.68662906",
"0.68428737",
"0.6819765",
"0.6807507",
"... | 0.6660558 | 29 |
Test we enforce valid username/password. | def VmD1() -> None:
with trZe.raises(ValueError):
Ifwr._parse_client_id('http://user@ex.com/')
with trZe.raises(ValueError):
Ifwr._parse_client_id('http://user:pass@ex.com/') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GGQL(YKHO):\n geh0 = YKHO.client.post(gxEw('users:login'), {'username': YKHO.user['username'], 'password': '1sfsdf'})\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertFormError(geh0, 'form', None, Bekv)",
"def tGTl(YKHO):\n pass",
"def bqHl(YKHO):\n geh0 = YKHO.client.post(gxEw('users:... | [
"0.7933663",
"0.7823255",
"0.77807546",
"0.7710019",
"0.7672158",
"0.7611543",
"0.76070577",
"0.7532508",
"0.7479734",
"0.7427894",
"0.74191535",
"0.7379525",
"0.731763",
"0.7310791",
"0.73100597",
"0.7270722",
"0.72338974",
"0.72298527",
"0.72156423",
"0.7204777",
"0.7204575... | 0.0 | -1 |
Test we update empty paths. | def ijPN() -> None:
assert Ifwr._parse_url('http://ex.com/hello').path == '/hello'
assert Ifwr._parse_url('http://EX.COM/hello').hostname == 'ex.com'
SQ3m = Ifwr._parse_url('http://EX.COM:123/HELLO')
assert SQ3m.netloc == 'ex.com:123'
assert SQ3m.path == '/HELLO' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wSwd(YKHO):\n YKHO.assertFalse(Hy7s.path.exists('/'))",
"def bDrV(YKHO):\n YKHO.paths[:]",
"def Ir81():\n DqEM = jth9.copy(fWUt.artifacts_path)\n assert DqEM is not None\n assert fWUt._contracts\n fWUt.set_artifacts_path(None)\n assert fWUt.artifacts_path == DqEM\n assert fWUt._cont... | [
"0.6695401",
"0.6604934",
"0.6527157",
"0.6268614",
"0.62626314",
"0.6109458",
"0.6092667",
"0.6079784",
"0.60396063",
"0.6032325",
"0.599547",
"0.59649366",
"0.5959601",
"0.59150314",
"0.59150314",
"0.59150314",
"0.59129804",
"0.5910636",
"0.5888191",
"0.58724904",
"0.587104... | 0.0 | -1 |
Test we update empty paths. | def eWht() -> None:
assert Ifwr._parse_url('http://ex.com').path == '/' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wSwd(YKHO):\n YKHO.assertFalse(Hy7s.path.exists('/'))",
"def bDrV(YKHO):\n YKHO.paths[:]",
"def Ir81():\n DqEM = jth9.copy(fWUt.artifacts_path)\n assert DqEM is not None\n assert fWUt._contracts\n fWUt.set_artifacts_path(None)\n assert fWUt.artifacts_path == DqEM\n assert fWUt._cont... | [
"0.6695401",
"0.6604934",
"0.6527157",
"0.6268614",
"0.62626314",
"0.6109458",
"0.6092667",
"0.6079784",
"0.60396063",
"0.6032325",
"0.599547",
"0.59649366",
"0.5959601",
"0.59150314",
"0.59150314",
"0.59150314",
"0.59129804",
"0.5910636",
"0.5888191",
"0.58724904",
"0.587104... | 0.0 | -1 |
Given at least 2 elements in a, generates the Cartesian product of all elements in the list. | def RZHN(jzdc):
cKif = ZylS.expand_dims(ZylS.tile(ZylS.expand_dims(jzdc[0], 1), [1, ZylS.shape(jzdc[1])[0]]), 2)
GftY = ZylS.expand_dims(ZylS.tile(ZylS.expand_dims(jzdc[1], 0), [ZylS.shape(jzdc[0])[0], 1]), 2)
xryH = ZylS.concat([cKif, GftY], axis=2)
xryH = ZylS.reshape(xryH, [-1, 2])
for Z9rn in jz... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tjFQ(Sk_F, yvT9=None):\n Sk_F = [oyIN.asarray(WKvO) for WKvO in Sk_F]\n yDqo = Sk_F[0].dtype\n exwG = oyIN.prod([WKvO.size for WKvO in Sk_F])\n if yvT9 is None:\n yvT9 = oyIN.zeros([exwG, len(Sk_F)], dtype=yDqo)\n r8hN = exwG / Sk_F[0].size\n yvT9[:, 0] = oyIN.repeat(Sk_F[0], r8hN)\n ... | [
"0.6750718",
"0.6750718",
"0.67469853",
"0.674225",
"0.67377234",
"0.6735327",
"0.6693337",
"0.6677904",
"0.66510355",
"0.6474917",
"0.6449693",
"0.6433361",
"0.64302397",
"0.64208287",
"0.637844",
"0.6307896",
"0.62475723",
"0.61624545",
"0.61596316",
"0.6150428",
"0.6140976... | 0.6568091 | 9 |
Rotation matrix for rotation of `theta` radians around z axis | def V5iU(q7In):
quY_ = oyIN.cos(q7In)
_VqN = oyIN.sin(q7In)
return oyIN.array([[quY_, -_VqN, 0], [_VqN, quY_, 0], [0, 0, 1]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oUfG(q7In):\n EbBL = oyIN.radians(q7In)\n bULF = [[oyIN.cos(EbBL), -oyIN.sin(EbBL), 0], [oyIN.sin(EbBL), oyIN.cos(EbBL), 0], [0, 0, 1]]\n return oyIN.matrix(bULF)",
"def JkLf(q7In):\n zNiy = oyIN.zeros((3, 3))\n zNiy[0, 0] = zNiy[1, 1] = oyIN.cos(q7In)\n zNiy[0, 1] = oyIN.sin(q7In)\n zNi... | [
"0.89510113",
"0.8513268",
"0.8401193",
"0.8271346",
"0.8271156",
"0.7886113",
"0.78525066",
"0.78206825",
"0.7718722",
"0.7700243",
"0.76467",
"0.7621795",
"0.75594187",
"0.7555873",
"0.7543994",
"0.7539651",
"0.7486037",
"0.7455395",
"0.74365795",
"0.7422053",
"0.74098134",... | 0.883624 | 1 |
Initializes the class by reading the config values and constructing a sensor (if not passed in). In the normal case, the sensor value should be None, thus allowing this class to use the trigger_pin and echo_pin config values to initialize its own Sensor instance. The only time one should need to pass in a Sensor instan... | def FIMM(YKHO, GPtr, XtFw=None):
if XtFw is None:
from monitor.sensor import SensorDriver
YKHO.sensor = SensorDriver(GPtr.getint(OesG, 'trigger_pin'), GPtr.getint(OesG, 'echo_pin'))
else:
YKHO.sensor = XtFw
YKHO.num_samples = GPtr.getint(OesG, 'num_samples')
YKHO.drop_extremes = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO, oB5g=None, ecT5=None, Onn9=None):\n YKHO.sensors = oB5g\n YKHO.readings = ecT5\n YKHO.clients = Onn9",
"def FIMM(YKHO) -> None:\n YKHO.sensor = Pt6R.Serial(GPtr.DEVICE)\n super().__init__()",
"def FIMM(YKHO):\n YKHO._read_calibration_data()\n YKHO.configure_sensor(FFtR.x08, ... | [
"0.6623096",
"0.66055477",
"0.655587",
"0.64301217",
"0.64230275",
"0.6369357",
"0.6350495",
"0.6325234",
"0.62492365",
"0.6221387",
"0.6210502",
"0.6198117",
"0.61677915",
"0.61502326",
"0.6140377",
"0.61286414",
"0.6103818",
"0.6072014",
"0.6067331",
"0.6060488",
"0.6049602... | 0.80569386 | 0 |
Calculate one forward propagation pass with yhat = WX + B followed by ReLU | def lu_y(EcVT, XcU5, tjUW):
Nk6w = oyIN.matmul(XcU5, EcVT) + tjUW
amiz = oyIN.maximum(0, Nk6w)
return (Nk6w, amiz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uLkJ(YKHO, EcVT):\n k0lF = EcVT\n aPd6 = YKHO.L - 1\n for YRbF in range(0, aPd6 - 1):\n Nk6w = oyIN.matmul(YKHO.W[YRbF], k0lF) + YKHO.b[YRbF]\n wyyA = ((k0lF, YKHO.W[YRbF], YKHO.b[YRbF]), Nk6w)\n k0lF = QZir(Nk6w)\n YKHO.caches[YRbF] = wyyA\n Nk6w = oyIN.matmul(YKHO.W[aP... | [
"0.72324014",
"0.7193855",
"0.712205",
"0.7118211",
"0.70029944",
"0.69511974",
"0.69348174",
"0.69012004",
"0.6885891",
"0.6885685",
"0.68315583",
"0.6812272",
"0.6811642",
"0.67951196",
"0.6785825",
"0.67706",
"0.6739923",
"0.6735901",
"0.6696897",
"0.66962826",
"0.6692639"... | 0.79619485 | 0 |
The loss, not to be confused with the cost, is just the difference between yhat (the values we calculated) and Y (the correct result) | def N77f(k0lF, fuBA):
return k0lF - fuBA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N77f(YKHO, LVAh: np.ndarray, uN02: np.ndarray) -> float:\n N8L0 = -(LVAh * oyIN.log(uN02) + (1 - LVAh) * oyIN.log(1 - uN02))\n return N8L0.mean() + YKHO.reg / YKHO.num_parameters * ((YKHO.v[:, -1] ** 2).sum() + (YKHO.w ** 2).sum())",
"def N77f(LVAh, uN02):\n uuHL = 0\n for YRbF, Jd40 in enumerate... | [
"0.83081317",
"0.8053836",
"0.804925",
"0.80340034",
"0.79513526",
"0.79112697",
"0.7830561",
"0.78220916",
"0.77000165",
"0.7628609",
"0.7599095",
"0.7530624",
"0.7508241",
"0.7504533",
"0.74959075",
"0.7491703",
"0.74726677",
"0.74414235",
"0.73721355",
"0.73415023",
"0.733... | 0.78762436 | 6 |
Uses the Gaussian (normal) distribution to initialize the parameters for all the layers. It randomizes the training examples as layer 0. | def sIhU(jPmz, cv8d):
XcU5 = [None] * len(jPmz)
tjUW = [None] * len(jPmz)
EcVT = oyIN.random.randn(jPmz[0], cv8d)
for r845 in range(1, len(jPmz)):
XcU5[r845] = oyIN.random.randn(jPmz[r845], jPmz[r845 - 1])
tjUW[r845] = oyIN.random.randn(jPmz[r845], 1)
return (EcVT, XcU5, tjUW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vfX0(YKHO, JBMS=0, z2bo=1):\n YKHO.slp_weights = oyIN.random.normal(JBMS, z2bo, size=(YKHO.n_rbfs, YKHO.n_targets))",
"def K55i(YKHO):\n for YRbF in range(1, YKHO.L):\n YKHO.W[YRbF - 1] = oyIN.random.randn(YKHO.layer_dims[YRbF], YKHO.layer_dims[YRbF - 1]) * 0.01\n YKHO.b[YRbF - 1] = oyIN.... | [
"0.72450733",
"0.70321673",
"0.6880616",
"0.6697837",
"0.6674255",
"0.6605887",
"0.6539226",
"0.6534349",
"0.65118116",
"0.6511221",
"0.65010405",
"0.6493671",
"0.6427588",
"0.642642",
"0.6425967",
"0.64197356",
"0.63975143",
"0.6392598",
"0.6387074",
"0.6363642",
"0.63564897... | 0.63189447 | 24 |
Plot an image array on the screen. | def DM2M(LNo8, c5uu=None, leAC=None):
if oyIN.iscomplexobj(LNo8):
qmLP.warn('Image is complex; only displaying real part')
LNo8 = oyIN.real(LNo8)
if c5uu is None:
QrM1.imshow(LNo8, cmap='gray')
else:
MynD = c5uu[0]
n4wC = c5uu[1]
QrM1.imshow(LNo8, cmap='gray',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8mS(qw7D):\n QrM1.figure()\n QrM1.imshow(qw7D)\n QrM1.show()",
"def I6Hh(dvtG):\n QrM1.imshow(dvtG, interpolation='nearest')\n QrM1.show()",
"def W8mS(qw7D):\n if isinstance(qw7D, oyIN.ndarray):\n QrM1.imshow(qw7D)\n QrM1.show()\n else:\n raise TypeError(f'display... | [
"0.8083877",
"0.7621783",
"0.75547636",
"0.7445747",
"0.71700436",
"0.69504726",
"0.69481796",
"0.6945318",
"0.69332254",
"0.6886047",
"0.68834215",
"0.6692736",
"0.6679821",
"0.667302",
"0.6633403",
"0.66268796",
"0.66121835",
"0.66057837",
"0.65990543",
"0.65990543",
"0.659... | 0.0 | -1 |
Plot a threedimensional quiver plot on screen. | def Qz5g(Cag8, TVTK=(1, 1, 1), leAC=None):
LZpg = QrM1.figure()
aNZO = LZpg.gca(projection='3d')
Ylbp = oyIN.shape(Cag8)[0:3]
WKvO, LVAh, epBp = oyIN.meshgrid(oyIN.arange(-TVTK[0] / 2, TVTK[0] / 2, TVTK[0] / Ylbp[0]), oyIN.arange(-TVTK[1] / 2, TVTK[1] / 2, TVTK[1] / Ylbp[1]), oyIN.arange(-TVTK[2] / 2, T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qz5g(ouVi: TrajaDataFrame, Pyrc: Optional[Union[int, tuple]]=None, llOJ: dict={}, **B2fa) -> MlUv:\n Z536, bGrB = hqzw(**B2fa)\n EcVT, fuBA, KkY2, cAlv = f0a_(ouVi, Pyrc)\n Nk6w = oyIN.sqrt(KkY2 * KkY2 + cAlv * cAlv)\n LZpg, aNZO = QrM1.subplots()\n aNZO.quiver(EcVT, fuBA, KkY2, cAlv, units='wid... | [
"0.67471987",
"0.6668109",
"0.6493304",
"0.63498944",
"0.6283693",
"0.61684316",
"0.6159947",
"0.6137141",
"0.6106258",
"0.60999334",
"0.5900313",
"0.5875842",
"0.58402973",
"0.5814336",
"0.5812573",
"0.5797149",
"0.57767075",
"0.57475734",
"0.5745139",
"0.5733174",
"0.573220... | 0.5750375 | 17 |
Save an image array in an image format. This produces a clean image with no axes or border. | def t7Mi(LNo8, n80H, c5uu=None):
LZpg = QrM1.figure()
LZpg.set_size_inches(1, 1)
aNZO = QrM1.Axes(LZpg, [0, 0, 1, 1])
aNZO.set_axis_off()
LZpg.add_axes(aNZO)
if oyIN.iscomplexobj(LNo8):
qmLP.warn('Image is complex; only saving real part')
LNo8 = oyIN.real(LNo8)
if c5uu is Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WCXl(ezWE, Ux0P):\n ezWE = ezWE.copy().clip(0, 255).astype('uint8')\n Xn71 = hnIv.fromarray(ezWE)\n Xn71.save(Ux0P)",
"def cWWj(qw7D: np.ndarray, pmON: str) -> None:\n VXjJ = hnIv.fromarray(qw7D.squeeze())\n VXjJ.save(pmON)",
"def t7Mi(pmON, LNo8):\n if len(LNo8.shape) == 4:\n LNo8... | [
"0.74521106",
"0.7398003",
"0.70915765",
"0.708634",
"0.70116305",
"0.69960225",
"0.6979536",
"0.6927554",
"0.6908419",
"0.69067883",
"0.67870927",
"0.6734198",
"0.66833395",
"0.66709673",
"0.665822",
"0.6637255",
"0.65556484",
"0.653073",
"0.6511239",
"0.6492289",
"0.6480823... | 0.5913399 | 52 |
Rounds time to 4/8/12 AM/PM. | def v9q3(ppPa):
Ly7s = int(ppPa.strftime('%H'))
VLzE = int(Ly7s / 4)
if VLzE == 5:
ppPa = qcWV.combine(ppPa.date() + fCoM(1), ITS7(0, 0))
else:
ppPa = qcWV.combine(ppPa.date(), ITS7((VLzE + 1) * 4, 0))
return ppPa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ct8j(ITS7: int) -> str:\n yVtz = ITS7 % 100\n ROt1 = int(ITS7 / 100)\n if ROt1 >= 12:\n if ROt1 > 12:\n ROt1 = ROt1 - 12\n geh0 = f'{ROt1} {yVtz} pm'\n else:\n geh0 = f'{ROt1} {yVtz} am'\n return geh0",
"def ZhNM(YKHO, ITS7):\n ROt1, eRPr, bGrB = ITS7.split('... | [
"0.6743482",
"0.6449745",
"0.64481854",
"0.6378203",
"0.624882",
"0.60521114",
"0.59160554",
"0.5871842",
"0.58707505",
"0.58488184",
"0.58358794",
"0.57936954",
"0.57530534",
"0.5738147",
"0.57171357",
"0.5671024",
"0.56705564",
"0.5640816",
"0.5608962",
"0.5574627",
"0.5574... | 0.5824333 | 11 |
Solves a univariate diophantine equations. Explanation =========== A univariate diophantine equation is an equation of the form `a_{0} + a_{1}x + a_{2}x^2 + .. + a_{n}x^n = 0` where `a_{1}, a_{2}, ..a_{n}` are integer constants and `x` is an integer variable. Usage ===== | def tLqA(cIT_):
SRYB, lk9W, ao3R = UpYZ(cIT_, _dict=False)
if ao3R == AxP1.name:
return {(int(YRbF),) for YRbF in lEQO(cIT_, SRYB[0]).intersect(o4sw.Integers)} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLPL(WKvO):\n return WKvO * (1 - WKvO)",
"def zUtk(jzdc, Fg_i, Z9rn):\n XP5J, vexM, Csk6 = g04p(jzdc, Fg_i)\n if Csk6 == 0 or Z9rn % Csk6 != 0:\n return None\n jzdc, Fg_i, Z9rn = (jzdc // Csk6, Fg_i // Csk6, Z9rn // Csk6)\n return (XP5J * Z9rn, vexM * Z9rn, jzdc, Fg_i)",
"def hOas(vuv... | [
"0.60249513",
"0.59195673",
"0.58596015",
"0.57925516",
"0.57472533",
"0.5679409",
"0.5631155",
"0.5631155",
"0.5616272",
"0.5607293",
"0.55954486",
"0.5595439",
"0.5569689",
"0.5569689",
"0.55627716",
"0.54942864",
"0.54492813",
"0.5401495",
"0.5380808",
"0.5282501",
"0.5277... | 0.5003401 | 49 |
r""" Returns a special dot product of the vectors `u = (u_{1}, u_{2})` and `v = (v_{1}, v_{2})` which is defined in order to reduce solution of the congruence equation `X^2 aZ^2 \equiv 0 \ (mod \ b)`. | def BJ1H(P6bq, Ty9i, yzQ0, jzdc, Fg_i):
RlDC, TKB8 = P6bq
lM0e, yxO9 = Ty9i
return (yzQ0 * RlDC + Fg_i * TKB8) * (yzQ0 * lM0e + Fg_i * yxO9) + abs(jzdc) * RlDC * lM0e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s2vS(P6bq, Ty9i):\n return P6bq[0] * Ty9i[0] + P6bq[1] * Ty9i[1] + P6bq[2] * Ty9i[2]",
"def uYbU(P6bq, Ty9i):\n U5bT = 0.0\n for YRbF in range(len(P6bq)):\n U5bT += float(float(P6bq[YRbF]) * float(Ty9i[YRbF]))\n return U5bT",
"def QLUs(hQHm, jlSq):\n return hQHm.x * jlSq.x + hQHm.y * ... | [
"0.7950857",
"0.75288385",
"0.7522804",
"0.73738956",
"0.7357853",
"0.7339615",
"0.7303692",
"0.72513527",
"0.72290015",
"0.7170018",
"0.7169143",
"0.7158276",
"0.7121757",
"0.7081416",
"0.70210546",
"0.7018486",
"0.70145714",
"0.6974848",
"0.6963552",
"0.69441426",
"0.693887... | 0.7824539 | 1 |
Returns a generator that can be used to generate partitions of an integer `n`. Explanation =========== A partition of `n` is a set of positive integers which add up to `n`. For example, partitions of 3 are 3, 1 + 2, 1 + 1 + 1. A partition is returned as a tuple. If ``k`` equals None, then all possible partitions are re... | def Qrt_(exwG, G1Hx=None, VNqG=False):
if not VNqG or G1Hx is None:
for YRbF in o6pt(exwG, G1Hx):
yield tuple(YRbF)
else:
for r8hN in range(1, G1Hx + 1):
for YRbF in o6pt(exwG, r8hN):
YRbF = tuple(YRbF)
yield ((0,) * (G1Hx - len(YRbF)) + YR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XOh9(exwG, G1Hx):\n if G1Hx == 1:\n yield (exwG,)\n return\n for YRbF in range(1, exwG):\n for XP5J in XOh9(exwG - YRbF, G1Hx - 1):\n yield ((YRbF,) + XP5J)",
"def Z3co(exwG):\n G1Hx = oyIN.zeros(exwG, dtype=oyIN.dtype(int))\n Nk6w = oyIN.zeros(exwG, dtype=oyIN.dty... | [
"0.8151417",
"0.7783835",
"0.74992603",
"0.7395536",
"0.6835849",
"0.66346866",
"0.65193653",
"0.6518118",
"0.6432495",
"0.641255",
"0.6350289",
"0.6323939",
"0.62612194",
"0.6255318",
"0.62544686",
"0.6222995",
"0.6217608",
"0.619579",
"0.6087453",
"0.5984424",
"0.59751225",... | 0.8531512 | 0 |
r""" Returns a generator for finding ktuples of integers, `(n_{1}, n_{2}, . . . n_{k})`, such that `n = n_{1}^p + n_{2}^p + . . . n_{k}^p`. Usage ===== | def hNfw(exwG, XP5J, G1Hx, VNqG=False):
exwG, XP5J, G1Hx = [Wa8K(YRbF) for YRbF in (exwG, XP5J, G1Hx)]
if exwG < 0:
if XP5J % 2:
for a1PO in hNfw(-exwG, XP5J, G1Hx, VNqG):
yield tuple((-YRbF for YRbF in a1PO))
return
if XP5J < 1 or G1Hx < 1:
raise ValueErr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XOh9(exwG, G1Hx):\n if G1Hx == 1:\n yield (exwG,)\n return\n for YRbF in range(1, exwG):\n for XP5J in XOh9(exwG - YRbF, G1Hx - 1):\n yield ((YRbF,) + XP5J)",
"def Qrt_(exwG, G1Hx=None, VNqG=False):\n if not VNqG or G1Hx is None:\n for YRbF in o6pt(exwG, G1Hx):... | [
"0.7479812",
"0.6864269",
"0.6725188",
"0.6606612",
"0.6476373",
"0.6454871",
"0.6413989",
"0.6408966",
"0.6377821",
"0.6368389",
"0.63032275",
"0.6301852",
"0.630057",
"0.63005334",
"0.6282942",
"0.6269676",
"0.6237687",
"0.61688274",
"0.61648625",
"0.6160839",
"0.6156447",
... | 0.66246575 | 3 |
Return True if n can be written as the sum of k squares, False if it cannot, or 1 if ``k == 2`` and ``n`` is prime (in which case it can be written as a sum of two squares). A False is returned only if it cannot be written as ``k``squares, even if 0s are allowed. | def XI81(exwG, G1Hx):
if G1Hx < 1:
return False
if exwG < 0:
return False
if exwG == 0:
return True
if G1Hx == 1:
return nap9(exwG)
if G1Hx == 2:
if exwG in (1, 2):
return True
if FBNJ(exwG):
if exwG % 4 == 1:
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ly1H(exwG: int, G1Hx: int=3) -> bool:\n if exwG < 2:\n return False\n for XP5J in kdK0:\n if exwG < XP5J * XP5J:\n return True\n if exwG % XP5J == 0:\n return False\n Mkmy, KCHu = (0, exwG - 1)\n while KCHu % 2 == 0:\n Mkmy += 1\n KCHu //= 2\... | [
"0.6561184",
"0.65501326",
"0.6427308",
"0.64001",
"0.6352532",
"0.6348876",
"0.6299129",
"0.6235472",
"0.6163073",
"0.612142",
"0.6099018",
"0.6086076",
"0.60442114",
"0.6026132",
"0.60021317",
"0.59826374",
"0.5964831",
"0.5940305",
"0.5911724",
"0.5869586",
"0.58663046",
... | 0.8653324 | 0 |
Return a list of all legal moves available to the active player. Each player should get a list of all empty spaces on the board on their first move, and otherwise they should get a list of all open spaces in a straight line along any row, column or diagonal from their current position. (Players CANNOT move through obst... | def dgbU(YKHO):
oLdq = []
if YKHO.player_locations[YKHO.whose_turn] is None:
return YKHO.get_blank_locations()
SppC = [(1, 0), (-1, 0), (0, 1), (0, -1), (1, 1), (1, -1), (-1, 1), (-1, -1)]
for Jw7X, eUWA in SppC:
WKvO, LVAh = YKHO.player_locations[YKHO.whose_turn]
while WKvO + Jw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r5wO(YKHO, iBIi, oyg0):\n Aofo = []\n for WcFg in range(8):\n for N5og in range(8):\n for wio1 in range(8):\n for OCh8 in range(8):\n if YKHO.is_legal_move(iBIi, [WcFg, N5og], [wio1, OCh8], oyg0):\n Aofo.append([[WcFg, N5og], [wio... | [
"0.8000684",
"0.7773118",
"0.7586156",
"0.75859827",
"0.7583773",
"0.7564738",
"0.74822897",
"0.74147075",
"0.7363811",
"0.7343176",
"0.7341429",
"0.7339519",
"0.7329256",
"0.73158693",
"0.7315806",
"0.7281532",
"0.72739327",
"0.7258576",
"0.72462726",
"0.72447574",
"0.723927... | 0.803273 | 0 |
Heapify the given array | def QZno(YKHO, k0lF: list, YRbF: int):
LFlW = 2 * YRbF
_tIi = 2 * YRbF + 1
RISy = YRbF
if YKHO.isMax == True:
if LFlW < YKHO.size and k0lF[LFlW] > k0lF[RISy]:
RISy = LFlW
if _tIi < YKHO.size and k0lF[_tIi] > k0lF[RISy]:
RISy = _tIi
else:
if LFlW < YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Npt8(ezWE):\n for YRbF in range(len(ezWE) // 2, -1, -1):\n QZno(ezWE, index=YRbF, size=len(ezWE) - 1)",
"def Npt8(ezWE):\n for YRbF in range(len(ezWE) - 1, -1, -1):\n O9C_(ezWE, len(ezWE), YRbF)",
"def QZno(WKvO):\n pass",
"def QZno(qw7D):\n exwG = len(qw7D)\n Q6kx = (exwG - ... | [
"0.8211661",
"0.8032507",
"0.7943686",
"0.7833598",
"0.76331764",
"0.7571177",
"0.7472281",
"0.7352209",
"0.7331762",
"0.7325254",
"0.7315894",
"0.7281005",
"0.72591686",
"0.7259155",
"0.7203545",
"0.7190889",
"0.702588",
"0.7017997",
"0.6997299",
"0.6957263",
"0.6941996",
... | 0.6451166 | 45 |
Build heap from given list | def Npt8(YKHO, k0lF: list):
YKHO.size = len(k0lF)
usD_ = YKHO.size // 2 - 1
for YRbF in range(0, usD_ + 1):
YKHO.heapify(k0lF, usD_ - YRbF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jH5Y(YKHO, yv6U):\n YKHO.heap_list = yv6U\n Q6kx = (len(YKHO.heap_list) - 2) / 2\n while Q6kx >= 0:\n YKHO.sift_down(Q6kx, len(YKHO.heap_list) - 1)\n Q6kx -= 1",
"def X6SM(YKHO, Oaw2):\n YKHO.heaplist = YKHO.heaplist + Oaw2\n YKHO.currentsize = len(Oaw2)\n d6pt = YKHO.currents... | [
"0.7733524",
"0.7665328",
"0.7585385",
"0.7496225",
"0.74051243",
"0.74012357",
"0.7397051",
"0.7390889",
"0.7278791",
"0.7245909",
"0.7225965",
"0.72010607",
"0.7190792",
"0.7187829",
"0.7187829",
"0.71755636",
"0.70264786",
"0.6883777",
"0.68744147",
"0.6786777",
"0.6684687... | 0.710583 | 16 |
Returns the net heat flow summed over all intervals. | def DgfH(YKHO):
return sum((YRbF.heat_flow for YRbF in YKHO.intervals)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vqRX(m3B5, RfSx, fTeL=6.0):\n RfSx = min(RfSx, 30.0)\n UShr = (m3B5 + RfSx) / 2.0\n return max(UShr - fTeL, 0.0)",
"def sum(YKHO, _uqo=False):\n return YKHO._hist.sum(_uqo)",
"def VXAf(Jw9H):\n return oyIN.sum(Jw9H, -1)",
"def vmwa(kuNm, i7Dg):\n hRUB, FLKL = (0, {})\n for G1Hx in so... | [
"0.6166869",
"0.59363246",
"0.5524207",
"0.5494214",
"0.54568416",
"0.5422755",
"0.534893",
"0.5241173",
"0.5239712",
"0.52246624",
"0.51893425",
"0.5185986",
"0.5185986",
"0.51702714",
"0.5137205",
"0.5109018",
"0.51044893",
"0.5080882",
"0.50262225",
"0.50031",
"0.4976768",... | 0.8429628 | 0 |
Return two randomly chosen PETs | def Nt5q():
tuKI.shuffle(m1FU)
return [m1FU[0], m1FU[1]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DaFt():\n _hkX = ulwC.get(' https://api.petfinder.com/v2/animals', params={'limit': 100}, headers={'Authorization': f'Bearer {tml9}'})\n jds5 = _hkX.json()['animals']\n Qj9l = tuKI.choice(jds5)\n return {'name': Qj9l['name'], 'age': Qj9l['age'], 'photo_url': Qj9l['photos'][0]['medium']}",
"def yH... | [
"0.64041954",
"0.62339264",
"0.6210921",
"0.6151756",
"0.61071044",
"0.6058716",
"0.5903469",
"0.5783984",
"0.57775664",
"0.57580894",
"0.5725573",
"0.5706698",
"0.5649349",
"0.5615236",
"0.5610193",
"0.5605159",
"0.5586027",
"0.55515933",
"0.55355704",
"0.55318683",
"0.55276... | 0.62105364 | 3 |
Returns the score on the given data, if the estimator has been refit. This uses the score defined by ``scoring`` where provided, and the ``best_estimator_.score`` method otherwise. | def p1kx(YKHO, EcVT, LVAh=None):
YKHO._check_is_fitted('score')
if YKHO.scorer_ is None:
raise ValueError("No score function explicitly defined, and the estimator doesn't provide one %s" % YKHO.best_estimator_)
p1kx = YKHO.scorer_[YKHO.refit] if YKHO.multimetric_ else YKHO.scorer_
return p1kx(YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1kx(YKHO, EcVT, LVAh=None):\n EcVT = C_vL(EcVT)\n LVAh = Z3Po(LVAh)\n if not hasattr(YKHO, 'scorer_') or YKHO.scorer_ is None:\n raise ValueError(\"No score function explicitly defined, and the estimator doesn't provide one %s\" % YKHO.best_estimator_)\n if YKHO.scoring is not None and hasa... | [
"0.7313498",
"0.7019969",
"0.68295705",
"0.66166914",
"0.65243155",
"0.6503311",
"0.6480312",
"0.642595",
"0.6283114",
"0.6205799",
"0.6185939",
"0.61381346",
"0.6060636",
"0.6026818",
"0.59923345",
"0.5936567",
"0.58994246",
"0.58483404",
"0.5824809",
"0.5810988",
"0.5786797... | 0.75780076 | 0 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(bj1J, YKHO).__init__(*qIxc, **c_sp)
if YKHO.position is None:
YKHO.position = T6GQ.msg.positionRPY()
if YKHO.is_Known is None:
YKHO.is_Known = False
else:
YKHO.position = T6GQ.msg.positionRPY()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ... | [
"0.7794478",
"0.77204376",
"0.77204376",
"0.76865023",
"0.7625996",
"0.7563802",
"0.74399596",
"0.74173665",
"0.73513013",
"0.73086345",
"0.72797984",
"0.7237519",
"0.7227004",
"0.7224259",
"0.7224259",
"0.7218872",
"0.72119284",
"0.72119284",
"0.72119284",
"0.72119284",
"0.7... | 0.0 | -1 |
Set up the test case with a user. | def FCbF(YKHO):
super(LjgG, YKHO).setUp()
YKHO._admin = YKHO.model('user').createUser('admin', 'password', 'admin', 'user', 'admin@example.com', admin=True)
YKHO._user = YKHO.model('user').createUser('minervauser', 'password', 'minerva', 'user', 'minervauser@example.com') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ucvb(YKHO):\n YKHO.email = 'foo@test.com'\n YKHO.password = 'bar'\n YKHO.username = 'test'\n YKHO.create_account(YKHO.username, YKHO.email, YKHO.password)\n YKHO.activate_user(YKHO.email)\n YKHO.login(YKHO.email, YKHO.password)",
"def FCbF(YKHO):\n YKHO.new_user = mv1M('Juma', '12345')",... | [
"0.77436024",
"0.75182045",
"0.750216",
"0.7499665",
"0.7476557",
"0.7475157",
"0.7475157",
"0.74514866",
"0.744934",
"0.74491787",
"0.7433773",
"0.7421106",
"0.7392623",
"0.7325794",
"0.73192704",
"0.7282397",
"0.7278737",
"0.7276982",
"0.72619313",
"0.72498167",
"0.7227374"... | 0.0 | -1 |
Calculates a file sha256 or md5 hash. | def najT(Sd0C, E91_='sha256', ztRo=65535):
if isinstance(E91_, str):
razo = Yn1B(E91_)
else:
razo = E91_
with open(Sd0C, 'rb') as NZX8:
for yOAJ in iter(lambda: NZX8.read(ztRo), b''):
razo.update(yOAJ)
return razo.hexdigest() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O4xT(VqRE):\n with open(VqRE, 'rb') as eHNT:\n return xORj(eHNT.read()).hexdigest()",
"def E_6C(nUeQ):\n razo = HBct.sha256()\n with open(nUeQ, 'rb') as L49q:\n LaVg = L49q.read(yZIe)\n razo.update(LaVg)\n return razo.hexdigest()",
"def najT(Sd0C, E91_='sha256', ztRo=65535)... | [
"0.7786545",
"0.7769877",
"0.7761857",
"0.7740141",
"0.77280766",
"0.7658293",
"0.76109266",
"0.7597406",
"0.7573602",
"0.75731796",
"0.75547624",
"0.75205857",
"0.7517073",
"0.74882835",
"0.7468499",
"0.7444793",
"0.7432471",
"0.74276716",
"0.74213576",
"0.74201006",
"0.7382... | 0.71841 | 41 |
Gets batch at position `index`. | def OP2O(YKHO, d6pt):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, d6pt):\n U_4K = YKHO.indexes[d6pt * YKHO.batch_size:(d6pt + 1) * YKHO.batch_size]\n fE75 = [YKHO.X_path[G1Hx] for G1Hx in U_4K]\n Mekx, ON2u = YKHO.data_generation(fE75)\n return (Mekx, ON2u)",
"def OP2O(YKHO, or8S):\n return YKHO.batches[or8S]",
"def OP2O(YKHO, d6pt):\n KCHu =... | [
"0.7656679",
"0.7603585",
"0.74478835",
"0.7352959",
"0.73506784",
"0.7243818",
"0.7213737",
"0.7213737",
"0.71921736",
"0.71921736",
"0.7157495",
"0.7124583",
"0.71189356",
"0.70656055",
"0.7063249",
"0.69080466",
"0.69080466",
"0.6777095",
"0.6733908",
"0.6619787",
"0.66046... | 0.0 | -1 |
Wait for the queue to be empty. | def MBWU(YKHO):
while True:
ITS7.sleep(0.1)
if YKHO.queue.unfinished_tasks == 0 or YKHO.stop_signal.is_set():
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T00d(YKHO):\n while True:\n if YKHO.queue.empty():\n YKHO.queue.join()\n return\n ITS7.sleep(1)",
"def sJDd(YKHO):\n YKHO.queue.join()",
"def gAK9(YKHO):\n while not YKHO.is_empty():\n YKHO.sleep(10)",
"def sJDd(YKHO):\n YKHO.drain_call_queue()",
"... | [
"0.8982549",
"0.8213569",
"0.8069371",
"0.7622824",
"0.7265177",
"0.72617537",
"0.7199978",
"0.7160778",
"0.7152426",
"0.71223426",
"0.70723593",
"0.7032268",
"0.6995655",
"0.6990395",
"0.6975788",
"0.6964058",
"0.69503295",
"0.69113475",
"0.6909111",
"0.6893445",
"0.6877515"... | 0.7763727 | 3 |
Gets the currentlyrunning duet task. This must be called from within a running async function, or else it will raise a RuntimeError. | def H2Is() -> o2Vr:
try:
return Td0_.get()
except LookupError:
raise RuntimeError('Can only be called from an async function.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sCUC(YKHO):\n return YKHO.queue.get()",
"def H2Is(YKHO):\n try:\n return YKHO.active_item(remove=False)\n except gGq6.Empty:\n return None",
"def OIQs():\n return H2Is",
"def OIQs():\n return H2Is",
"def fTjn(YKHO):\n return YKHO.get_current_step().get_last_task()",
"d... | [
"0.7482446",
"0.73506457",
"0.7274522",
"0.7274522",
"0.7122297",
"0.6915014",
"0.6913385",
"0.6913385",
"0.6913385",
"0.6913385",
"0.6913385",
"0.66671145",
"0.6424109",
"0.6402442",
"0.6379625",
"0.636109",
"0.628069",
"0.6240921",
"0.6182584",
"0.6095428",
"0.6076426",
"... | 0.78834015 | 0 |
Hide the widget by adding the dnone html class to the widget. Save the previous class and set viz attribute to False. | def Afoa(YKHO):
if not 'd-none' in str(YKHO.class_):
YKHO.old_class = YKHO.class_
YKHO.class_ = 'd-none'
YKHO.viz = False
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Afoa(YKHO):\n YKHO.visible = False",
"def Afoa(YKHO):\n YKHO.set_visible(False)",
"def Rzeh(YKHO):\n YKHO.visible = True",
"def tSMx(YKHO):\n YKHO.set_visible(False)",
"def KYVX(YKHO):\n if YKHO.hidden:\n YKHO.show()\n else:\n YKHO.hide()",
"def Afoa(YKHO, tvqc=None):\... | [
"0.748155",
"0.7446891",
"0.7445759",
"0.7321829",
"0.69841665",
"0.6910661",
"0.6910661",
"0.6869434",
"0.6869434",
"0.6856724",
"0.68148714",
"0.6795722",
"0.6777603",
"0.67516553",
"0.67223257",
"0.67000103",
"0.6658978",
"0.65718645",
"0.6516942",
"0.65008354",
"0.6499523... | 0.8425613 | 0 |
Hide the widget by removing the dnone html class to the widget Save the previous class and set viz attribute to True. | def nUHY(YKHO):
if YKHO.old_class:
YKHO.class_ = YKHO.old_class
if 'd-none' in str(YKHO.class_):
YKHO.class_ = str(YKHO.class_).replace('d-none', '')
YKHO.viz = True
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Afoa(YKHO):\n if not 'd-none' in str(YKHO.class_):\n YKHO.old_class = YKHO.class_\n YKHO.class_ = 'd-none'\n YKHO.viz = False\n return YKHO",
"def Rzeh(YKHO):\n YKHO.visible = True",
"def Afoa(YKHO):\n YKHO.visible = False",
"def Afoa(YKHO):\n YKHO.set_visible(False)",
"... | [
"0.81186175",
"0.7484487",
"0.7468306",
"0.73704565",
"0.7116422",
"0.6949298",
"0.69383186",
"0.689332",
"0.6850425",
"0.6850425",
"0.6809649",
"0.6809649",
"0.67778593",
"0.67379236",
"0.67172027",
"0.6692686",
"0.6573571",
"0.65499467",
"0.65168744",
"0.6506288",
"0.646014... | 0.6449419 | 22 |
Sorts the current routes in order of dynamic parameters ascending. The catchall route is always placed to the end. | def hJWQ(YKHO):
vq5_ = YKHO.routes.copy()
for NKcE in vq5_.keys():
vq5_[NKcE].sort(key=lambda PsCT: -PsCT.pattern.count(b'/'))
vq5_[NKcE].sort(key=lambda PsCT: len(PsCT.param_names))
vq5_[NKcE].sort(key=lambda PsCT: b'.*' in PsCT.rx.pattern)
vq5_[NKcE].sort(key=lambda PsCT: b'*' ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tb_i(YKHO):\n Xdrn = U8Lr()\n for rCm6, pKvt in YKHO.inputs.items():\n if rCm6 not in YKHO.routes:\n continue\n Xdrn[rCm6] = U8Lr()\n for qkHJ, yvT9 in YKHO.outputs.items():\n if qkHJ not in YKHO.routes[rCm6]:\n continue\n iAwL = YKHO.r... | [
"0.6953572",
"0.5846645",
"0.57272774",
"0.57272774",
"0.5657351",
"0.5489705",
"0.5406363",
"0.5375979",
"0.53661907",
"0.53634363",
"0.53601635",
"0.53370047",
"0.53307194",
"0.52761364",
"0.5272979",
"0.52632207",
"0.5247552",
"0.5233699",
"0.52210313",
"0.5210721",
"0.517... | 0.76602757 | 0 |
Returns the value of the maximum scoring sequence in ar. | def jB5X(wc14, HjDq: Optional[topk_scorer]=None):
assert len(wc14) > 0, 'dc.max_score is not defined for empty arrays'
if HjDq is None:
HjDq = nB0K()
def oteU(Xtuq, p1kx):
Ylbp = oyIN.array([p1kx] + [HjDq(KCHu.logprobs, KCHu) for KCHu in Xtuq])
return Ylbp.max()
return wc14.redu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jB5X(YKHO):\n return max(YKHO._extract_set('score') or [0])",
"def B3al(YKHO):\n return XTiz.max(YKHO.matrix)",
"def max(YKHO):\n max = 0\n jzdc = YKHO.array_form\n for YRbF in Ni9Y(len(jzdc)):\n if jzdc[YRbF] != YRbF and jzdc[YRbF] > max:\n max = jzdc[YRbF]\n return max... | [
"0.7127563",
"0.70873386",
"0.69916123",
"0.6841162",
"0.67739606",
"0.6766107",
"0.6715926",
"0.66732097",
"0.6657911",
"0.65869117",
"0.6580604",
"0.6541371",
"0.65367335",
"0.6490844",
"0.64814013",
"0.6479744",
"0.64717054",
"0.64717054",
"0.64717054",
"0.6433435",
"0.642... | 0.7726154 | 0 |
Returns the value of the minimum scoring sequence in ar. | def AjsF(wc14, HjDq: Optional[topk_scorer]=None):
assert len(wc14) > 0, 'dc.min_score is not defined for empty arrays'
if HjDq is None:
HjDq = nB0K()
def oteU(Xtuq, p1kx):
return oyIN.array([p1kx] + [HjDq(KCHu.logprobs, KCHu) for KCHu in Xtuq]).min()
return wc14.reduce(oteU, oyIN.finfo(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AjsF(YKHO):\n return min(YKHO._extract_set('score') or [0])",
"def WHwV(Q6uT, FYKK):\n P6Dd = Q6uT[0]\n Qai7 = FYKK(P6Dd)\n for WKvO in Q6uT:\n VTuD = FYKK(WKvO)\n if VTuD < Qai7:\n P6Dd, Qai7 = (WKvO, VTuD)\n return P6Dd",
"def mNcg(YKHO, ezWE):\n min = HwRy.maxi... | [
"0.7002847",
"0.6768277",
"0.67613745",
"0.67371047",
"0.67124754",
"0.6652967",
"0.6652967",
"0.6625174",
"0.64696425",
"0.6419198",
"0.64010924",
"0.64010924",
"0.6391168",
"0.63849664",
"0.6362425",
"0.629637",
"0.62874985",
"0.6255259",
"0.6255259",
"0.62148124",
"0.62126... | 0.76840615 | 0 |
Names the sequences in this pool with the given name. This information is useful for debugging purposes. | def mWFP(YKHO, mWFP=None, ydJa=False):
if mWFP is None:
return YKHO
for pmON, Aofo in YKHO.sequences.items():
if Aofo is None:
continue
for KCHu in Aofo:
if hasattr(KCHu, 'pool'):
if pmON is V6FS or ydJa:
KCHu.pool = mWFP
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lkLH(YKHO, mWFP):\n WhGz = YKHO.sequenceDict()\n return WhGz[mWFP]",
"def mWFP(YKHO, mWFP):\n return YKHO.name",
"def mWFP(YKHO, mWFP):\n return YKHO.name",
"def W0tD(YKHO):\n mWFP = ''.join(YKHO.__name_list)\n YKHO.__increment(len(YKHO.__name_list) - 1)\n return mWFP",
"def mWFP(Y... | [
"0.64284045",
"0.6339733",
"0.6319884",
"0.6261095",
"0.6208408",
"0.6133857",
"0.6133857",
"0.6133857",
"0.6133857",
"0.6133857",
"0.6133857",
"0.60687274",
"0.60687274",
"0.60654306",
"0.6055918",
"0.6055791",
"0.6051721",
"0.6031469",
"0.6031469",
"0.6031469",
"0.6031469",... | 0.635276 | 1 |
Returns item `i` at the given path in this array. | def ZfUD(YKHO, YRbF, pmON=None):
if pmON is None:
assert list(YKHO.sequences.keys())[0] is V6FS, 'Cannot access item without path if the array has more than one dimension.'
pmON = V6FS
return YKHO.sequences[pmON][YRbF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkRa(YKHO, YRbF):\n return YKHO.image_path_from_index(YKHO._image_index[YRbF])",
"def xkRa(YKHO, YRbF):\n return YKHO.image_path_from_index(YKHO._image_index[YRbF])",
"def OP2O(YKHO, YRbF):\n return YKHO.get(YRbF, YRbF + 1)",
"def OP2O(YKHO, YRbF):\n return YKHO._items[YRbF]",
"def OP2O(YKH... | [
"0.6716055",
"0.6716055",
"0.6666471",
"0.6571183",
"0.6557363",
"0.65095776",
"0.6494377",
"0.64751035",
"0.64106154",
"0.64106154",
"0.64106154",
"0.64106154",
"0.64106154",
"0.6235987",
"0.6121021",
"0.60928845",
"0.6087031",
"0.60627973",
"0.60606676",
"0.60439533",
"0.60... | 0.7906305 | 0 |
Returns a new DataArray with the same shape as this one, but with only unique sequences within each pool. | def kcwm(YKHO):
return YKHO.element_wise(lambda Xtuq: list(set(Xtuq))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DgcG(YKHO) -> 'SampleDataSet':\n return pUSo(YKHO._data.drop_duplicates())",
"def dDv2(jzdc):\n Fg_i = oyIN.ascontiguousarray(jzdc).view(oyIN.dtype((oyIN.void, jzdc.dtype.itemsize * jzdc.shape[1])))\n MOT_ = oyIN.unique(Fg_i).view(jzdc.dtype).reshape(-1, jzdc.shape[1])\n return MOT_",
"def kcwm... | [
"0.614951",
"0.5665234",
"0.5645208",
"0.5541726",
"0.5507382",
"0.5385371",
"0.53743726",
"0.5290405",
"0.5273045",
"0.5233762",
"0.52220154",
"0.521804",
"0.52133834",
"0.5156926",
"0.51566297",
"0.5150363",
"0.5123475",
"0.51182115",
"0.5093594",
"0.50819117",
"0.5076379",... | 0.5660854 | 2 |
Returns all of the nodes in the graph as a collection (set, list, or similar) | def EBww(YKHO):
hlel = []
for SLBp in YKHO.adjacency_list:
hlel.append(SLBp.value)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO):\n return list(set(YKHO._graph.keys() + [WKvO for WKvO in Hs6x.chain.from_iterable(YKHO._graph.values())]))",
"def AyQV(YKHO):\n return [Q6kx for Q6kx in YKHO._nodes.itervalues()]",
"def AyQV(YKHO):\n return [Q6kx for Q6kx in YKHO._nodes.itervalues()]",
"def Ziit(YKHO):\n return li... | [
"0.8091906",
"0.767403",
"0.767403",
"0.76589066",
"0.7624159",
"0.7607837",
"0.7546537",
"0.7528698",
"0.7526551",
"0.7515556",
"0.74869543",
"0.74475616",
"0.7446754",
"0.7429433",
"0.73889315",
"0.7385529",
"0.737684",
"0.7330525",
"0.72751486",
"0.724888",
"0.72425395",
... | 0.0 | -1 |
Parrot > str Return the string representation of the Parrot object based on its last defeated opponent, else a question mark(?) if it has not faced an opponent yet. | def zAg0(YKHO):
return YKHO._last_opponent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def amJP(YKHO):\n return YKHO.opponent + '\\t'",
"def zAg0(YKHO):\n Ylbp = 'Opponent: ' + str(YKHO.opponent) + ' Angle: ' + str(YKHO.angle)\n return Ylbp",
"def zAg0(YKHO):\n return 'player: ' + str(YKHO.player) + '\\nposition: ' + str(YKHO.position) + '\\naccepted: ' + str(YKHO.accepted) + '\\ndir... | [
"0.67383534",
"0.6564957",
"0.6473529",
"0.62737054",
"0.6074091",
"0.60388917",
"0.5939981",
"0.5931592",
"0.5871898",
"0.58564985",
"0.58221257",
"0.58185506",
"0.5810382",
"0.5804153",
"0.5765514",
"0.5763084",
"0.5693789",
"0.5614653",
"0.56027657",
"0.5580586",
"0.556923... | 0.6515004 | 2 |
A dictionary of simulated/true source parameters. | def yTdZ(YKHO):
return YKHO._injection_parameters | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QKMd(YKHO):\n Ltu9 = {}\n zgsA = FYsT.trace(YKHO.model).get_trace(YKHO.args, YKHO.kwargs)\n for mWFP, Q6kx in zgsA.iter_stochastic_nodes():\n if Q6kx['type'] == 'sample' and Q6kx['is_observed'] == False:\n Ltu9[mWFP] = Q6kx['value'].detach()\n return Ltu9",
"def NArs(YKHO):\n ... | [
"0.65883785",
"0.6375989",
"0.6341086",
"0.62498593",
"0.62366295",
"0.61617553",
"0.6161328",
"0.6130521",
"0.6109155",
"0.6107315",
"0.60812485",
"0.6081207",
"0.6055423",
"0.6035477",
"0.6033417",
"0.60204315",
"0.5970646",
"0.5961472",
"0.5960048",
"0.59170073",
"0.591390... | 0.0 | -1 |
Create 1D plots from posterior grids. | def sDq2(YKHO, **B2fa):
from pesummary.core.plots.plot import _1d_analytic_plot
mt76 = B2fa.copy()
if 'fig' not in B2fa:
from pesummary.core.plots.figure import figure
LZpg, aNZO = figure(gca=True)
B2fa['fig'] = LZpg
bb7r = False
else:
LZpg = B2fa['fig']
a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GZiZ(YKHO, **B2fa):\n from matplotlib.lines import Line2D\n from pesummary.core.plots.publication import pcolormesh\n if 'fig' not in B2fa:\n raise TypeError('Can only add Grid results to an existing corner plot showing samples')\n Jw9H = B2fa.pop('colors')\n LZpg = B2fa.pop('fig')\n a... | [
"0.67015654",
"0.637632",
"0.6203047",
"0.6182307",
"0.6123859",
"0.61169755",
"0.61040556",
"0.6091152",
"0.6055943",
"0.604422",
"0.60359657",
"0.6009474",
"0.5994107",
"0.59797597",
"0.59724945",
"0.5922779",
"0.5917129",
"0.59010255",
"0.5894244",
"0.5850232",
"0.5843308"... | 0.66519374 | 1 |
Calculate the credible intervals for a given parameter. | def wND2(YKHO, k78t, VOlW=[0.05, 0.95]):
if k78t not in YKHO.parameters:
raise ValueError(f"Parameter '{k78t}' is not available")
D7KI = {}
for H5ew, BWXx in YKHO.results.items():
if isinstance(BWXx, rApN):
D7KI[H5ew] = ummb._credible_interval_grid(BWXx, k78t, VOlW)
else:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wND2(YKHO, DF7C='current', VOlW=(0.025, 0.975)):\n RGhg = YKHO.cumulative_distribution(dist=DF7C)\n if DF7C == 'current' or DF7C == 'prior':\n zShx = YKHO.hypotheses[oyIN.where(RGhg - VOlW[0] > 0)[0].min()]\n RpL2 = YKHO.hypotheses[oyIN.where(RGhg - VOlW[1] > 0)[0].min()]\n yuVB = [(... | [
"0.69340336",
"0.65443045",
"0.6203978",
"0.58193254",
"0.5771073",
"0.554047",
"0.54753447",
"0.54728234",
"0.5456654",
"0.5373382",
"0.5351367",
"0.5275391",
"0.526941",
"0.5258351",
"0.5222526",
"0.5140093",
"0.51162237",
"0.50856185",
"0.50745493",
"0.5057593",
"0.5038882... | 0.74701375 | 0 |
Calculate an upper credible interval limit for a given parameter. | def AbYn(YKHO, k78t, mmRm=0.95):
return YKHO.credible_interval(k78t, interval=[mmRm]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A2Fp(YKHO) -> float:\n ...",
"def ME8y(YKHO, LSh8, CN9P):\n if not YKHO.upper_bounds is None:\n return YKHO.upper_bounds\n VLpm = oyIN.clip(YKHO.coeffs, -epAf.inf, 0)\n jWLi = oyIN.clip(YKHO.coeffs, 0, epAf.inf)\n YKHO.upper_bounds = jWLi.dot(CN9P) + VLpm.dot(LSh8) + YKHO.const\n ret... | [
"0.6782903",
"0.6254825",
"0.624402",
"0.615147",
"0.61142075",
"0.6080531",
"0.60715234",
"0.60213584",
"0.6001461",
"0.59814",
"0.58664227",
"0.58595216",
"0.57923555",
"0.578106",
"0.5772248",
"0.57525045",
"0.57338864",
"0.57316476",
"0.5729847",
"0.5656949",
"0.56540245"... | 0.8375727 | 0 |
Define the limits of an axis range using the current limits or the default bounds if current limits are outside those bounds. | def E0VU(aNZO, k78t, jDK_='x'):
kg7d = list(aNZO.get_xlim()) if jDK_ == 'x' else list(aNZO.get_ylim())
if 'low' in zmRz[k78t]:
gqRb = zmRz[k78t]['low']
if kg7d[0] < gqRb:
kg7d[0] = zmRz[k78t]['low']
if 'high' in zmRz[k78t]:
ODP9 = zmRz[k78t]['high']
if kg7d[1] > O... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zVoP(YKHO, AtCm=[], a8WT=[]):\n YKHO.data['Xmin'] = AtCm[0]\n YKHO.data['Xmax'] = AtCm[1]\n YKHO.data['Ymin'] = a8WT[0]\n YKHO.data['Ymax'] = a8WT[1]",
"def y7_i(jk7u=None, rTQi=None, aNZO=None):\n if aNZO is None:\n aNZO = QrM1.gca()\n if rTQi is not None:\n aNZO.set_ylim(rTQ... | [
"0.7563677",
"0.70228994",
"0.6902009",
"0.6879037",
"0.68770766",
"0.684473",
"0.67686707",
"0.67063695",
"0.66331327",
"0.66058207",
"0.6513873",
"0.651009",
"0.6494821",
"0.64937735",
"0.64774936",
"0.6468355",
"0.6417339",
"0.6411401",
"0.6410878",
"0.6352544",
"0.6310361... | 0.75755525 | 0 |
F(j) = max(F(i)) + 1, 0 <= i < j and nums[i] < nums[j] | def INXf(YKHO, xYvp: List[int]) -> int:
exwG = len(xYvp)
vuvg = [0] * exwG
vuvg[0] = 1
for YRbF in range(1, exwG):
Dww8 = [0]
for r845 in range(0, YRbF):
if xYvp[r845] < xYvp[YRbF]:
Dww8.append(vuvg[r845])
vuvg[YRbF] = max(Dww8) + 1
return max(vuvg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYKK(YRbF, r845):\n TK2h = 1\n for P2GO, gDyN in ((YRbF - 1, r845), (YRbF, r845 - 1), (YRbF, r845 + 1), (YRbF + 1, r845)):\n if 0 <= P2GO < r8hN and 0 <= gDyN < exwG and (SppC[YRbF][r845] < SppC[P2GO][gDyN]):\n TK2h = max(TK2h, 1 + FYKK(P2GO, gDyN))\n return TK2h",
"def FYKK(YRbF):... | [
"0.71989465",
"0.70241994",
"0.6753957",
"0.674082",
"0.6669375",
"0.65919256",
"0.63025326",
"0.62861985",
"0.6194349",
"0.61904025",
"0.617972",
"0.6176879",
"0.6176447",
"0.6172388",
"0.6124718",
"0.6098153",
"0.6098153",
"0.60589963",
"0.6042938",
"0.6024815",
"0.6020903"... | 0.6163868 | 14 |
Extraction rules are in the form string > dict where the dict contains the annotation for the match, e.g. | def FIMM(YKHO, c_NS: Union[Dict[str, dict], Set[str]], Kwd0: str=''):
if isinstance(c_NS, dict):
for mXDZ, ICn2 in c_NS.items():
if 'start' in ICn2 or 'end' in ICn2:
raise ValueError("Attributes 'start' and 'end' are reserved do not use it inside annotations")
elif not isinst... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mkn0(nUeQ, OMd2, DYqa, TZ9E):\n dixj = {}\n with open(nUeQ, 'r', encoding='utf-8') as eHNT:\n Mzf9 = 0\n uglr = []\n for zFiD in eHNT:\n if zFiD is '\\n':\n if uglr:\n if 'paragraph' + str(Mzf9) in dixj:\n dixj['para... | [
"0.57550836",
"0.5731638",
"0.5626193",
"0.5554156",
"0.5467629",
"0.53810644",
"0.53525615",
"0.5292076",
"0.52820754",
"0.5262517",
"0.5208889",
"0.51985896",
"0.51852655",
"0.51687044",
"0.516571",
"0.5158055",
"0.51480985",
"0.5145357",
"0.51176673",
"0.5116655",
"0.51079... | 0.5541818 | 4 |
If the vertex "vertex" is not in self.__graph_dict, a key "vertex" with an empty list as a value is added to the dictionary. Otherwise nothing has to be done. | def ohmD(YKHO, SLBp):
if SLBp not in YKHO.__graph_dict:
YKHO.__graph_dict[SLBp] = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO, SLBp):\n if SLBp not in YKHO.graph_dict:\n YKHO.graph_dict[SLBp] = []",
"def ohmD(YKHO, SLBp):\n if SLBp not in YKHO.graph_dict:\n YKHO.graph_dict[SLBp] = []\n return SLBp",
"def ohmD(YKHO, SLBp):\n if SLBp not in YKHO.__graph_dict:\n YKHO.__graph_dict[SLBp] ... | [
"0.8621471",
"0.8487749",
"0.84772027",
"0.8406467",
"0.77853566",
"0.746811",
"0.7458696",
"0.7252485",
"0.7200776",
"0.7144652",
"0.70762503",
"0.70762503",
"0.6963895",
"0.68889165",
"0.688376",
"0.6834728",
"0.68012196",
"0.6797876",
"0.6717518",
"0.67124915",
"0.66779464... | 0.858724 | 2 |
Get current time as formatted string | def ItX3():
return qcWV.datetime.now().strftime('%Y-%m-%d %H:%M') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dni_() -> str:\n return qcWV.now().strftime('%FT%H:%M:%S')",
"def _PtW():\n return F803('%Y_%m_%d_%H_%M_%S_%Z', WPt4())",
"def vHj7():\n wzkt = qcWV.datetime.now()\n ITS7 = wzkt.strftime('%Y-%m-%d %H:%M:%S:%f')\n return ITS7",
"def ApjM():\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S', ITS... | [
"0.8467659",
"0.8418462",
"0.8267366",
"0.8218223",
"0.82046044",
"0.8154258",
"0.8117794",
"0.8114865",
"0.80705476",
"0.80462134",
"0.8003247",
"0.79896045",
"0.79678386",
"0.7962166",
"0.7951885",
"0.79158986",
"0.7910026",
"0.79087",
"0.7899042",
"0.78971326",
"0.7881374"... | 0.71401787 | 73 |
The homepage for Stock Tracker. | def d6pt(QePW):
return _1tc(QePW, 'stock_trackers/index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n FL53 = biH0()\n return TvZl('main.html', stocks=FL53)",
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)",
"def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.no... | [
"0.790749",
"0.7402879",
"0.73412",
"0.7310414",
"0.7281917",
"0.7259897",
"0.7240034",
"0.7232201",
"0.7216923",
"0.7216005",
"0.72061193",
"0.72061193",
"0.72061193",
"0.72061193",
"0.72061193",
"0.72061193",
"0.72061193",
"0.72061193",
"0.72061193",
"0.72061193",
"0.719491... | 0.76760465 | 1 |
Same as manual_log_like_normal(x,data), but using scipy implementation. It's pretty slow. | def rsPf(WKvO, nPrm):
return oyIN.sum(oyIN.log(Zxt2.stats.norm(WKvO[0], WKvO[1]).pdf(nPrm))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eSCT(WKvO, nPrm):\n return oyIN.sum(-oyIN.log(WKvO[1] * oyIN.sqrt(2 * oyIN.pi)) - (nPrm - WKvO[0]) ** 2 / (2 * WKvO[1] ** 2))",
"def CBRO(yGTL, qEJV, WKvO):\n return oyIN.exp(-(oyIN.log(WKvO / yGTL) / (0.01 * qEJV)) ** 2)",
"def JwbV(WKvO, yGTL, wEsz):\n Jw7X = WKvO[1] - WKvO[0]\n iCEm = 1 / (W... | [
"0.87133837",
"0.7446079",
"0.71870023",
"0.71722597",
"0.69946253",
"0.6982088",
"0.69053465",
"0.69053465",
"0.68626857",
"0.6756093",
"0.6724028",
"0.6648678",
"0.66445565",
"0.6530944",
"0.6530044",
"0.65269274",
"0.65247226",
"0.6513712",
"0.6513262",
"0.65001273",
"0.64... | 0.7946673 | 1 |
Creates the tree string. | def EZmH(zNig):
F_O3 = 0.6
kn2i = [31, 33, 34, 35, 36, 37]
ZBHL = ['@', '&', '*', chr(169), chr(174)]
olYt = '\x1b[5;{0}m{1}\x1b[0m'
kjp6 = '\x1b[32m#\x1b[0m'
TVTK = 1
J_Es = '\n{}*\n'.format(' ' * zNig)
' Main Loop starts now.'
' We can\'t use the normal "format" centering approach:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n Kt_s = wEGT(2)\n Kt_s.root = o7DN(YKHO.keys, [o7DN(aUGN.keys, []) for aUGN in YKHO.children])\n return str(Kt_s)",
"def rEm6(YKHO, MnRD=0):\n return ''",
"def zAg0(YKHO):\n YKHO._synchronize_attributes()\n KCHu = ''\n gGq6 = NsEr.Queue()\n ABDL = 0\n gGq6.enqueue((1... | [
"0.77501494",
"0.76212937",
"0.75353056",
"0.75203866",
"0.75203866",
"0.7321976",
"0.7183862",
"0.71086305",
"0.709848",
"0.70958835",
"0.7064057",
"0.70419306",
"0.69600695",
"0.692635",
"0.6917843",
"0.6889876",
"0.6885725",
"0.6881385",
"0.6879757",
"0.68401366",
"0.68336... | 0.6422408 | 41 |
Show image with landmarks | def R39I(LNo8, CWXo, eXCI=False, gXgy=None):
QrM1.imshow(LNo8)
QrM1.scatter(CWXo[:, 0], CWXo[:, 1], s=10, marker='.', c='r')
if eXCI and gXgy is not None:
QrM1.savefig(gXgy)
QrM1.pause(0.001) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R39I(LNo8, CWXo):\n if isinstance(LNo8, str):\n LNo8 = XC5k.cvtColor(XC5k.imread(LNo8), XC5k.COLOR_BGR2RGB)\n QrM1.imshow(LNo8)\n QrM1.scatter(CWXo[:, 0], CWXo[:, 1], s=10, marker='.', c='r')\n QrM1.pause(0.001)",
"def R39I(LNo8, CWXo):\n QrM1.imshow(LNo8)\n QrM1.scatter(CWXo[:, 0], ... | [
"0.808608",
"0.7926357",
"0.7926357",
"0.7926357",
"0.78171635",
"0.7465765",
"0.7464966",
"0.6598388",
"0.65567565",
"0.65280706",
"0.6492143",
"0.6483718",
"0.6477732",
"0.644593",
"0.64328134",
"0.63780797",
"0.6371934",
"0.6371934",
"0.6371934",
"0.636128",
"0.6348264",
... | 0.778297 | 5 |
APIMgmtSpec defines the desired state of APIMgmt | def FIMM(Ro_8, *, eC7C: pulumi.Input[str], d86H: pulumi.Input[str], Rci7: pulumi.Input[str], C9U5: pulumi.Input['APIMgmtAPISpecPropertiesArgs'], vBTQ: pulumi.Input[str]):
qe4Y.set(Ro_8, 'api_id', eC7C)
qe4Y.set(Ro_8, 'api_service', d86H)
qe4Y.set(Ro_8, 'location', Rci7)
qe4Y.set(Ro_8, 'properties', C9U5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WRPA(YKHO):\n YKHO.implicit_api_logical_id = h2eW.implicit_http_api()\n YKHO.implicit_api_condition = 'ServerlessHttpApiCondition'\n YKHO.api_event_type = 'HttpApi'\n YKHO.api_type = AeOQ.HttpApi.value\n YKHO.api_id_property = 'ApiId'\n YKHO.editor = WWYO",
"def q38d(P4t4):\n pass",
"d... | [
"0.55997956",
"0.54633045",
"0.54397786",
"0.5310828",
"0.5273441",
"0.52452695",
"0.52085876",
"0.52010757",
"0.51736206",
"0.5145516",
"0.50976807",
"0.5064335",
"0.50512815",
"0.5033387",
"0.5032845",
"0.5024864",
"0.5005038",
"0.50043964",
"0.49984825",
"0.4998308",
"0.49... | 0.6245835 | 0 |
APIRevision Describes the Revision of the Api. If no value is provided, default revision 1 is created | def TNzD(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'api_revision') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gPQn(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'api_revision_description')",
"def clva(YKHO):\n return YKHO._api_version",
"def clva(YKHO):\n return YKHO._api_version",
"def clva(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'api_version')",
"def clva(YKHO) -> h8nf[str]:\n re... | [
"0.6755969",
"0.6119869",
"0.6054017",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
"0.59239435",
... | 0.75794876 | 0 |
Path Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API. | def pmON(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'path') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rPJ5(YKHO):\n return YKHO._get_api_base() + '/' + YKHO._get_resource_suffix()",
"def Ms2Z(YKHO, w2IS):\n return '{}/{}'.format(YKHO.api_root, w2IS)",
"def rPJ5(YKHO):\n return YKHO._get_api_base() + '/object/' + YKHO._get_resource_suffix()",
"def Ms2Z(YKHO) -> ODPQ.URL:\n return YKHO._client.... | [
"0.7867708",
"0.7475842",
"0.7443843",
"0.7401237",
"0.73302335",
"0.73001975",
"0.7122721",
"0.71119153",
"0.70910627",
"0.70845276",
"0.7079349",
"0.69851875",
"0.69132864",
"0.6903628",
"0.6887463",
"0.6840807",
"0.68003654",
"0.67251736",
"0.6705232",
"0.6638825",
"0.6636... | 0.0 | -1 |
Name The display Name of the API Version Set. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return o58j._NAME",
"def jtRV(YKHO) -> str:\n return qe4Y.get(YKHO, 'version_name')",
"def ZuQ2(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'api_entity_set_name')",
"def wHJl(YKHO):\n return YKHO.name + ' v' + YKHO.version",
"def ujht(YKHO):\n return YKHO.name",
"def mWFP... | [
"0.7163041",
"0.6847523",
"0.6617727",
"0.6521526",
"0.65016276",
"0.6492742",
"0.6377641",
"0.6377641",
"0.6377641",
"0.6377641",
"0.6377641",
"0.6377641",
"0.6377641",
"0.6377641",
"0.6377641",
"0.6377641",
"0.6377641",
"0.6377641",
"0.637011",
"0.637011",
"0.637011",
"0.... | 0.0 | -1 |
AzureSqlServerSpec defines the desired state of AzureSqlServer | def FIMM(Ro_8, *, Rci7: pulumi.Input[str], xGd0: pulumi.Input[str], DVD_: Optional[pulumi.Input[str]]=None):
qe4Y.set(Ro_8, 'location', Rci7)
qe4Y.set(Ro_8, 'resourcegroup', xGd0)
if DVD_ is not None:
qe4Y.set(Ro_8, 'key_vault_to_store_secrets', DVD_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, Rci7: str, vBTQ: str, N5z6: str, wnys: Optional[str]=None, H6zX: Optional[int]=None, E0wO: Optional['outputs.AzureSqlDatabaseSpecMaxSize']=None, x3GT: Optional[str]=None, PXIM: Optional['outputs.AzureSqlDatabaseSpecSku']=None, oknT: Optional[int]=None, lP8Y: Optional[str]=None, LMZA: Optional[str... | [
"0.55671924",
"0.51565075",
"0.51251256",
"0.4978824",
"0.49592975",
"0.4909491",
"0.48741475",
"0.48616317",
"0.4773627",
"0.4754697",
"0.4622016",
"0.46083343",
"0.4596981",
"0.45816892",
"0.4510267",
"0.4505686",
"0.44970566",
"0.4466821",
"0.44614944",
"0.44288692",
"0.44... | 0.0 | -1 |
CosmosDBKind enumerates the values for kind. Only one of the following kinds may be specified. If none of the following kinds is specified, the default one is GlobalDocumentDBKind. | def eJTR(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'kind') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eJTR(YKHO, eJTR: 'TriggerEventKind'):\n if isinstance(eJTR, bHD7):\n YKHO._attrs['kind'] = eJTR.value\n else:\n YKHO._attrs['kind'] = eJTR",
"def pl9Y(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['GroupKindArgs']]]]:\n return qe4Y.get(YKHO, 'selected_group_kinds')",
"def eJTR(YKHO) -> h8... | [
"0.5784343",
"0.55062705",
"0.54835415",
"0.5480056",
"0.5466895",
"0.5446912",
"0.5432135",
"0.5431228",
"0.53943044",
"0.53943044",
"0.53852904",
"0.53501344",
"0.5346622",
"0.5335876",
"0.5335876",
"0.5335876",
"0.5335876",
"0.5329811",
"0.5274644",
"0.52716005",
"0.527160... | 0.47884262 | 68 |
DatabaseAccountOfferType The offer type for the Cosmos DB database account. | def hU0u(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'database_account_offer_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwqL(YKHO):\n return YKHO.proto.offer[0].offerType",
"def dhPZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_type')",
"def TwqL(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'offer_type')",
"def aDCJ(YKHO):\n return tuKI.choice(YKHO.ACCOUNT_TYPE)",
"def gudc(YKHO) -> qe4Y.Output[... | [
"0.62732404",
"0.6056946",
"0.5796877",
"0.5623496",
"0.55011934",
"0.5317232",
"0.514535",
"0.5041874",
"0.50273305",
"0.50273305",
"0.50273305",
"0.50273305",
"0.488415",
"0.488415",
"0.48418367",
"0.48091587",
"0.48091587",
"0.4735253",
"0.4735253",
"0.4726379",
"0.4716318... | 0.8305023 | 0 |
EventhubNamespaceSku defines the sku | def PXIM(YKHO) -> h8nf[qe4Y.Input['EventhubNamespaceSpecSkuArgs']]:
return qe4Y.get(YKHO, 'sku') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO) -> qe4Y.Input['IotHubDpsSkuArgs']:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> h8nf[qe4Y.Input['IotHubDpsSkuArgs']]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4Y.Input['ApiManagementServiceSkuPropertiesArgs']:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> qe4... | [
"0.70359784",
"0.688907",
"0.6780028",
"0.6747152",
"0.66721773",
"0.66215503",
"0.66215503",
"0.65827245",
"0.65827245",
"0.65827245",
"0.65480113",
"0.64731556",
"0.64731556",
"0.6448809",
"0.6427096",
"0.6427096",
"0.6356144",
"0.6356144",
"0.63418",
"0.63300204",
"0.63037... | 0.8114673 | 0 |
IPRules List of IpRules | def G9fK(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['EventhubNamespaceSpecNetworkRuleIpRulesArgs']]]]:
return qe4Y.get(YKHO, 'ip_rules') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G9fK(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'ip_rules')",
"def G9fK(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['StorageAccountSpecNetworkRuleIpRulesArgs']]]]:\n return qe4Y.get(YKHO, 'ip_rules')",
"def G9fK(YKHO) -> h8nf[bdIy['outputs.IpRuleResponse']]:\n return qe... | [
"0.7549045",
"0.7458888",
"0.7378768",
"0.7373913",
"0.6809215",
"0.6724737",
"0.6724737",
"0.6562614",
"0.6470501",
"0.6316684",
"0.6278565",
"0.6220614",
"0.6100953",
"0.60866356",
"0.608405",
"0.60797924",
"0.5923773",
"0.5872824",
"0.58694565",
"0.5848989",
"0.5830501",
... | 0.75341594 | 1 |
Subnet Full Resource ID of Virtual Network Subnet | def pyfM(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'subnet_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pyfM(YKHO) -> str:\n return qe4Y.get(YKHO, 'subnet_id')",
"def pyfM(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'subnet_id')",
"def Ll4v(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'subnet_resource_id')",
"def pyfM(YKHO):\n return YKHO._subnet_id",
"def VWZy(YKHO) -> qe4Y.Output... | [
"0.7881096",
"0.7577092",
"0.747503",
"0.7449239",
"0.74444234",
"0.7443867",
"0.7439609",
"0.7378375",
"0.7378375",
"0.7317503",
"0.7046465",
"0.7022912",
"0.679372",
"0.6730822",
"0.660397",
"0.6479247",
"0.64577127",
"0.6353934",
"0.6306767",
"0.62809634",
"0.6266459",
"... | 0.7301591 | 11 |