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 |
|---|---|---|---|---|---|---|
Given a NumPy / OpenCV 2 image, crops it to the given width and height, around it's centre point | def yAvS(LNo8, TVTK, H2v2):
N0ky = (LNo8.shape[1], LNo8.shape[0])
oO50 = (int(N0ky[0] * 0.5), int(N0ky[1] * 0.5))
if TVTK > N0ky[0]:
TVTK = N0ky[0]
if H2v2 > N0ky[1]:
H2v2 = N0ky[1]
o4D3 = int(oO50[0] - TVTK * 0.5)
ajwV = int(oO50[0] + TVTK * 0.5)
si3g = int(oO50[1] - H2v2 * ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NAnm(VXjJ: 'np.ndarray', WKvO: int, LVAh: int, TVTK: int, H2v2: int) -> 'np.ndarray':\n return VXjJ[LVAh:LVAh + H2v2, WKvO:WKvO + TVTK]",
"def yAvS(LNo8, TVTK, H2v2):\n N0ky = (LNo8.shape[1], LNo8.shape[0])\n oO50 = (int(N0ky[0] * 0.5), int(N0ky[1] * 0.5))\n if TVTK > N0ky[0]:\n TVTK = N0k... | [
"0.76377535",
"0.74180055",
"0.7380922",
"0.7369841",
"0.7331407",
"0.728423",
"0.727816",
"0.7252315",
"0.72463363",
"0.72463363",
"0.7190007",
"0.7180537",
"0.7168692",
"0.7141646",
"0.71074295",
"0.70952344",
"0.70926756",
"0.7081143",
"0.7067312",
"0.7041019",
"0.7040211"... | 0.738121 | 4 |
Build API header using authorization token | def XaJ7(YKHO, eOtH: str) -> dict:
WBPg = LPpG.copy()
WBPg['Authorization'] = f'Bearer {eOtH}'
return WBPg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r0kR(Tq5C):\n return {'Authorization': f'token {Tq5C}'}",
"def srwF(eOtH: str=None):\n return {'Content-Type': 'application/json', 'X-Auth-Token': eOtH or ZVs8()}",
"def XaJ7(YKHO, eOtH):\n WBPg = LPpG.copy()\n WBPg['Authorization'] = 'Bearer {}'.format(eOtH)\n return WBPg",
"def Np3K(eOtH... | [
"0.86079544",
"0.8266987",
"0.8259833",
"0.82146436",
"0.80822676",
"0.78398496",
"0.7626047",
"0.74493533",
"0.74467784",
"0.74467784",
"0.73052657",
"0.72448987",
"0.72024",
"0.7191292",
"0.7182246",
"0.7153723",
"0.7095803",
"0.70847106",
"0.70625544",
"0.70559555",
"0.703... | 0.80481756 | 5 |
Creates a conditional Normal distribution. | def FIMM(YKHO, zNig, xhie, F9qZ=0.0, ViPE=0.25, TASe=ZylS.nn.relu, EcCx=None, mWFP='conditional_normal_distribution'):
YKHO.sigma_min = F9qZ
YKHO.raw_sigma_bias = ViPE
YKHO.name = mWFP
YKHO.size = zNig
if EcCx is None:
EcCx = YN2L
YKHO.fcnet = njoj.nets.MLP(output_sizes=xhie + [2 * zNig]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, *qIxc, **B2fa):\n yGTL, WTkW = YKHO.condition(qIxc, **B2fa)\n return ZylS.contrib.distributions.Normal(loc=yGTL, scale=WTkW)",
"def zmG3():\n return K0SZ(tuKI.random())",
"def zmG3():\n return K0SZ(tuKI.random())",
"def YYaq():\n return oyIN.random.normal(0, 1)",
"def vRHY(Q7B... | [
"0.713719",
"0.7050329",
"0.70172936",
"0.68370706",
"0.67517245",
"0.67022425",
"0.6654298",
"0.6631554",
"0.66306645",
"0.6614433",
"0.66123754",
"0.66123754",
"0.66123754",
"0.66123754",
"0.65456814",
"0.65394753",
"0.6531439",
"0.6509048",
"0.6492514",
"0.6492514",
"0.649... | 0.0 | -1 |
Determine whether a URI is a validate for one of the namespaces registered with Identifiers.org | def w7_5(j8eK):
kUBT = ZbWC.match('^https?://identifiers\\.org/((([^/:]+)/([^/:]+)|[^/:]+)([/:])(.+))$', j8eK)
try:
_63S = N5cH(kUBT.group(2).lower())
except bACh:
if kUBT.group(3):
_63S = N5cH(kUBT.group(3).lower())
else:
raise
if not (not (kUBT.group(5) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eVh6(YKHO, *qIxc):\n return _VfD.XMLNamespaces_hasURI(YKHO, *qIxc)",
"def SGVO(w148):\n U5Jc = KVWQ(w148)\n return bool(U5Jc.netloc) and bool(U5Jc.scheme)",
"def tj3I(YKHO, *qIxc):\n return _VfD.XMLNamespaces_containsUri(YKHO, *qIxc)",
"def jiu0(wEf2):\n Ylbp = KVWQ(wEf2)\n return bool(... | [
"0.670965",
"0.667822",
"0.66165257",
"0.6595207",
"0.6498957",
"0.6455187",
"0.6331057",
"0.62750375",
"0.60879886",
"0.6053262",
"0.6042288",
"0.60388076",
"0.59925216",
"0.59925216",
"0.5972868",
"0.5916745",
"0.5874985",
"0.58692425",
"0.5814867",
"0.5754969",
"0.5753672"... | 0.6832338 | 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(oo2Y, YKHO).__init__(*qIxc, **c_sp)
if YKHO.planning_scene_diff is None:
YKHO.planning_scene_diff = fB9k.msg.PlanningScene()
if YKHO.operations is None:
YKHO.operations = fB9k.msg.OrderedCollisionOperations()
e... | {
"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.7793788",
"0.7720338",
"0.7720338",
"0.7686591",
"0.76257044",
"0.7563645",
"0.7439646",
"0.7417169",
"0.73514634",
"0.73075664",
"0.7279945",
"0.72372043",
"0.7227262",
"0.7224145",
"0.7224145",
"0.7218594",
"0.7211639",
"0.7211639",
"0.7211639",
"0.7211639",
"0.7211639",... | 0.6655072 | 81 |
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(CP1v, YKHO).__init__(*qIxc, **c_sp)
if YKHO.planning_scene is None:
YKHO.planning_scene = fB9k.msg.PlanningScene()
else:
YKHO.planning_scene = fB9k.msg.PlanningScene() | {
"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.77939296",
"0.7720264",
"0.7720264",
"0.76866186",
"0.7626193",
"0.756387",
"0.74395823",
"0.7416946",
"0.73519075",
"0.7308225",
"0.72806025",
"0.72379386",
"0.72272825",
"0.7224187",
"0.7224187",
"0.7218873",
"0.7211484",
"0.7211484",
"0.7211484",
"0.7211484",
"0.7211484... | 0.6496085 | 96 |
Constructor for the Automatic LGCLVO filter. | def FIMM(YKHO, yGTL=99.0, LzwM=10000, N77f='xent'):
YKHO.LGC_iter = LzwM
YKHO.mu = yGTL
YKHO.loss = N77f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n WZcn = XTiz.array([[-1, -1, -1], [-1, 9, -1], [-1, -1, -1]])\n _Glj.__init__(YKHO, WZcn)",
"def FIMM(YKHO):\n WZcn = XTiz.array([[-1, -1, -1], [-1, 8, -1], [-1, -1, -1]])\n _Glj.__init__(YKHO, WZcn)",
"def FIMM(YKHO):\n WZcn = XTiz.array([[-2, -1, 0], [-1, 1, 1], [0, 1, 2]])\n ... | [
"0.684153",
"0.6822762",
"0.6768444",
"0.65728235",
"0.6482528",
"0.6418998",
"0.6218817",
"0.61606306",
"0.6114177",
"0.60896397",
"0.6044181",
"0.60398275",
"0.60277164",
"0.60212094",
"0.5996329",
"0.5957431",
"0.59321326",
"0.58675385",
"0.58473384",
"0.58357286",
"0.5828... | 0.5439086 | 85 |
Get the current user. | def lq67():
return zN5h.getpwuid(Hy7s.getuid())[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W84Y(YKHO):\n return YKHO.current_user",
"def W84Y(YKHO):\n return YKHO.get_secure_cookie('user')",
"def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n return YKHO.auth.store.user_model.get_by_id(fnHH['user_id'])",
"def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n if f... | [
"0.8836685",
"0.87018216",
"0.86910814",
"0.8619504",
"0.85802186",
"0.8505428",
"0.8505428",
"0.8505428",
"0.8500047",
"0.8500047",
"0.84839404",
"0.8483425",
"0.84567",
"0.838958",
"0.8296931",
"0.8281396",
"0.82328916",
"0.815139",
"0.8126627",
"0.8124535",
"0.81106335",
... | 0.0 | -1 |
Load the YAML document from the specified file | def DMrX(Ux0P, UyKZ=None, PJWX=False):
if not Ux0P or Ux0P == '-':
eHNT = HwRy.stdin
if PJWX:
print('reading parameters from stdin')
return qvgd(eHNT.read(), Ux0P, default_namespace=UyKZ, verbose=PJWX)
else:
if not Hy7s.path.isfile(Ux0P):
raise SmmR('file ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f9B0(nUeQ: Text):\n with open(nUeQ) as ytgA:\n return eJb6.load(ytgA, eJb6.FullLoader)",
"def f9B0(qaEx):\n with open(qaEx) as Fwbn:\n hGN5 = eJb6.load(Fwbn, Loader=eJb6.FullLoader)\n return hGN5",
"def f9B0(nUeQ):\n with open(nUeQ, 'r') as nUeQ:\n nPrm = eJb6.safe_load(nUe... | [
"0.82032746",
"0.799028",
"0.7902689",
"0.77733713",
"0.77251863",
"0.7718737",
"0.7689882",
"0.7680805",
"0.76478076",
"0.761992",
"0.7570488",
"0.75476533",
"0.7541913",
"0.75214046",
"0.74628925",
"0.74222505",
"0.7397133",
"0.735951",
"0.73147076",
"0.7254368",
"0.7233035... | 0.0 | -1 |
Load the YAML document as a string | def qvgd(str, Ux0P, UyKZ=None, PJWX=False):
QcQn = []
UyKZ = UyKZ or SLH8()
for A97Q in eJb6.load_all(str):
if MAAb in A97Q:
PCpl = c603(UyKZ, A97Q.get(MAAb, None))
if PJWX:
print('reading parameters into namespace [%s]' % PCpl)
del A97Q[MAAb]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cO1h(YKHO, l5Ny):\n return eJb6.safe_load(l5Ny)",
"def f9B0(hGN5):\n from yaml import load, FullLoader\n return load(hGN5, Loader=FullLoader)",
"def f9B0(pmON):\n C9OF = open(pmON)\n try:\n oUnD = C9OF.read()\n UVG_ = eJb6.load(oUnD)\n finally:\n C9OF.close()\n ret... | [
"0.6863694",
"0.6804904",
"0.66811365",
"0.6677459",
"0.65846384",
"0.6474035",
"0.6442895",
"0.6401044",
"0.63880545",
"0.63652253",
"0.63532954",
"0.6350741",
"0.63268185",
"0.6326625",
"0.62723863",
"0.62661546",
"0.62479424",
"0.6244294",
"0.62355375",
"0.62345165",
"0.62... | 0.0 | -1 |
Create a new empty TypedDict with key_type and value_type as the types for the keys and values of the dictionary respectively. | def lsmZ(Emd4, gjwY, fX1C):
return Emd4(dcttype=tjLd(gjwY, fX1C)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lf8v(HrOk, xui9, ryv5, AsCw):\n a75i = SnBA.DictType(xui9.instance_type, ryv5.instance_type)\n\n def Y5qA(QpfX, mBtZ, aadv, qIxc):\n [bGrB, bGrB, AsCw] = qIxc\n pGOq = Zlwm.create_struct_proxy(a75i)\n eqrF = pGOq(QpfX, mBtZ)\n eqrF.data = AsCw\n Hbjt = QpfX.get_abi_size... | [
"0.65021694",
"0.64598584",
"0.6137077",
"0.57969946",
"0.5718489",
"0.57113713",
"0.5672381",
"0.5653581",
"0.5650383",
"0.56327116",
"0.56033117",
"0.55712324",
"0.5465431",
"0.5454871",
"0.5421098",
"0.54094374",
"0.5404606",
"0.539811",
"0.5365514",
"0.5332857",
"0.532901... | 0.7523846 | 0 |
Returns the index of the correlation between an individual on the given index and the previous individual in the chain of individuals. | def Dwwm(YKHO, d6pt: int) -> int:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mtwv(YKHO, d6pt: int) -> int:\n pass",
"def Ypvb(YKHO, d6pt: int) -> AzJI[int, int]:\n XDcB = YKHO._get_prev_correlation_index(d6pt)\n rYh9 = YKHO._get_next_correlation_index(d6pt)\n return (YKHO._correlation[XDcB], YKHO._correlation[rYh9])",
"def PAwq(YKHO, d6pt):\n return (d6pt - 1) // 2",... | [
"0.72343004",
"0.67907906",
"0.5708425",
"0.5613088",
"0.56076455",
"0.5580767",
"0.55760086",
"0.5514937",
"0.5512073",
"0.5502395",
"0.54905945",
"0.5446895",
"0.53913903",
"0.53371644",
"0.5299722",
"0.5287811",
"0.5280381",
"0.5261069",
"0.52596474",
"0.5218803",
"0.52167... | 0.7917535 | 0 |
Creates heatmap by stitching patch_right on to patch_left Overlap region heatmap is the weighted sum of two patches | def XPI6(YKHO, t5Iz, lIhR):
uGjw = int((YKHO.patch_w - YKHO.strides_cols) / YKHO.out_stride)
LFlW, ca1c = ZylS.split(t5Iz, [-1, uGjw], axis=1)
jijX, _tIi = ZylS.split(lIhR, [uGjw, -1], axis=1)
_mSQ = ZylS.reshape(ZylS.range(uGjw, dtype=ZylS.float32), shape=(1, uGjw, 1))
yHH9 = (ca1c * (uGjw - 1.0 - ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dydx(kauQ, _YGI, n2Q1, SpII, NKcE):\n o4D3, si3g, s1k6, zhMh = XC5k.boundingRect(oyIN.float32([n2Q1]))\n ajwV, skBL, xMw6, WL4f = XC5k.boundingRect(oyIN.float32([SpII]))\n _RVN = []\n enXE = []\n for YRbF in range(0, 3):\n _RVN.append((n2Q1[YRbF][0] - o4D3, n2Q1[YRbF][1] - si3g))\n ... | [
"0.5839399",
"0.56645966",
"0.5576645",
"0.55055076",
"0.54985756",
"0.5352495",
"0.5347219",
"0.5321907",
"0.53168464",
"0.52837247",
"0.5255244",
"0.52419865",
"0.5184701",
"0.51840943",
"0.5146829",
"0.5138015",
"0.51220703",
"0.5109756",
"0.51003075",
"0.50811404",
"0.507... | 0.7099316 | 0 |
The output panel name, beginning with ``output.``. Generally, API methods specific to output panels will use `name`, while methods that work with any panels will use `full_name`. | def eHMM(YKHO):
return 'output.%s' % YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._output_name",
"def wGWt(YKHO):\n return '%s (%d)' % (YKHO.panel_template.panel_name, YKHO.implementation)",
"def xYGm(YKHO) -> str:\n return HEOD.get(YKHO, 'outputName')",
"def q5GV(YKHO, Ilxn):\n return YKHO._outprefix + str(Ilxn) + '.' + YKHO._suffix",
"def FUJ1... | [
"0.75580347",
"0.75517553",
"0.74340254",
"0.6840934",
"0.67454123",
"0.6626438",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
"0.65341705",
... | 0.7944014 | 0 |
Hides the output panel. | def Afoa(YKHO):
YKHO.window.run_command('hide_panel', {'panel': YKHO.full_name}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Afoa(YKHO):\n YKHO.visible = False",
"def Afoa(YKHO):\n YKHO.set_visible(False)",
"def n7mp(YKHO):\n if YKHO._displayPjt:\n YKHO._displayPjt.hide()\n if YKHO._displayUsr:\n YKHO._displayUsr.hide()\n if YKHO._displayVtk:\n YKHO._displayVtk.hide()",
"def Afoa(YKHO):\n ... | [
"0.77253985",
"0.7568135",
"0.75639385",
"0.7437855",
"0.7415186",
"0.73480654",
"0.7337557",
"0.730565",
"0.72141254",
"0.7149685",
"0.7100635",
"0.7100635",
"0.70720184",
"0.7071647",
"0.7006422",
"0.7006422",
"0.69301534",
"0.68798286",
"0.6822775",
"0.6804328",
"0.6803036... | 0.8176615 | 0 |
Resnet v250 Assumes input is [batch, height_in, width_in, channels]!! | def vOfN(WKvO, rb7a=None, LT6S=True, oNEO=0.001, CJGY=False):
from tensorflow.contrib.slim.python.slim.nets import resnet_v2
with ZylS.name_scope('Encoder_resnet', [WKvO, rb7a]):
with Fz20.arg_scope(resnet_v2.resnet_arg_scope(weight_decay=oNEO)):
" added by CCJ from https://github.com/tensor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pyd8(GhuM, rb7a, jTqs=10, FRUf=None):\n if (rb7a - 2) % 6 != 0:\n raise ValueError('depth should be 6n+2 (eg 20, 32, 44 in [a])')\n gt4n = 16\n vlJR = int((rb7a - 2) / 6)\n if FRUf == None:\n g4y1 = X6a0(shape=GhuM)\n else:\n g4y1 = FRUf\n WKvO = zUti(inputs=g4y1)\n fo... | [
"0.65341675",
"0.6463447",
"0.6455948",
"0.6385356",
"0.6378919",
"0.6370182",
"0.6361361",
"0.6321603",
"0.6311166",
"0.62564576",
"0.625597",
"0.6239913",
"0.62225187",
"0.6207582",
"0.61995345",
"0.6185751",
"0.6184242",
"0.61777693",
"0.6152648",
"0.61354476",
"0.6125433"... | 0.5758886 | 79 |
Resnet v250 Assumes input is [batch, height_in, width_in, channels]!! | def HKNS(WKvO, rb7a=None, LT6S=True, oNEO=0.001, CJGY=False, mWFP='Encoder_resnet_v2'):
from tensorflow.contrib.slim.python.slim.nets import resnet_v2
with ZylS.variable_scope(mWFP, reuse=CJGY) as rrBf:
with Fz20.arg_scope(resnet_v2.resnet_arg_scope(weight_decay=oNEO)):
" added by CCJ from h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pyd8(GhuM, rb7a, jTqs=10, FRUf=None):\n if (rb7a - 2) % 6 != 0:\n raise ValueError('depth should be 6n+2 (eg 20, 32, 44 in [a])')\n gt4n = 16\n vlJR = int((rb7a - 2) / 6)\n if FRUf == None:\n g4y1 = X6a0(shape=GhuM)\n else:\n g4y1 = FRUf\n WKvO = zUti(inputs=g4y1)\n fo... | [
"0.6533067",
"0.64626646",
"0.6454749",
"0.63841057",
"0.6377438",
"0.6369209",
"0.6360234",
"0.63208926",
"0.63096803",
"0.6255967",
"0.6254889",
"0.6238891",
"0.62211806",
"0.620663",
"0.61974627",
"0.6185853",
"0.61820984",
"0.61763537",
"0.61514175",
"0.61342186",
"0.6123... | 0.5739538 | 88 |
Get 1st derivative of shape function (Bmatrix) in global coordinates | def tBYD(YKHO, SkDf: str, *, TpU3: int, HvfY: list=None) -> AzJI[oyIN.ndarray, oyIN.ndarray]:
if SkDf == 'area':
J8fz = YKHO._coords[:, oyIN.array(YKHO._connectivity[TpU3])[HvfY]][:YKHO._n_dof]
else:
J8fz = YKHO._coords[:, YKHO._connectivity[TpU3]][:YKHO._n_dof]
return YKHO._shapef[YKHO._ele... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVyp(YKHO, *qIxc):\n if YKHO.i_dim == 0:\n return oyIN.ones_like(*qIxc[0])\n else:\n return oyIN.zeros_like(*qIxc[0])",
"def thKP(YKHO, EcVT):\n return 3 * EcVT[1] ** 2",
"def xN_s(YKHO):\n return YKHO.Xf - YKHO.Yf",
"def Fi7w(irsQ, AYir):\n exwG = irsQ.shape[0]\n E3D9 = o... | [
"0.63705623",
"0.63577485",
"0.6329693",
"0.6323323",
"0.6255258",
"0.6253042",
"0.6217805",
"0.61191964",
"0.6070338",
"0.6056527",
"0.6049655",
"0.5947408",
"0.59276766",
"0.59020436",
"0.5892184",
"0.58756745",
"0.58727753",
"0.5870947",
"0.5848037",
"0.58409506",
"0.58381... | 0.0 | -1 |
Get 1st derivative of shape function (Bmatrix) in global coordinates | def yxxU(YKHO, SkDf: str, *, TpU3: int, HvfY: list=None) -> oyIN.ndarray:
if SkDf == 'area':
J8fz = YKHO._coords[:, oyIN.array(YKHO._connectivity[TpU3])[HvfY]][:YKHO._n_dof]
else:
J8fz = YKHO._coords[:, YKHO._connectivity[TpU3]][:YKHO._n_dof]
return YKHO._shapef[YKHO._element_name[TpU3]][SkD... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVyp(YKHO, *qIxc):\n if YKHO.i_dim == 0:\n return oyIN.ones_like(*qIxc[0])\n else:\n return oyIN.zeros_like(*qIxc[0])",
"def thKP(YKHO, EcVT):\n return 3 * EcVT[1] ** 2",
"def xN_s(YKHO):\n return YKHO.Xf - YKHO.Yf",
"def Fi7w(irsQ, AYir):\n exwG = irsQ.shape[0]\n E3D9 = o... | [
"0.6367847",
"0.6356957",
"0.63291055",
"0.6321411",
"0.6253899",
"0.62502164",
"0.62163144",
"0.6117512",
"0.60710317",
"0.60532486",
"0.6047797",
"0.59458286",
"0.59256405",
"0.5899265",
"0.5891074",
"0.58739454",
"0.5870604",
"0.58699936",
"0.58466184",
"0.5842252",
"0.584... | 0.0 | -1 |
Initialize the paddle with the specified geometry | def FIMM(YKHO, LFlW, tlxW, TVTK, H2v2):
YKHO.left = LFlW
YKHO.top = tlxW
YKHO.width = TVTK
YKHO.height = H2v2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, WKvO, LVAh):\n super(CbyH, YKHO).__init__(image=CbyH.paddle2, x=WKvO, y=LVAh)\n YKHO.points = eN17.Text(value=0, size=50, color=qfpW.white, top=5, right=eN17.screen.width - 5)\n eN17.screen.add(YKHO.points)",
"def FIMM(YKHO):\n YKHO.center = PvyL()\n YKHO.center.x = zMH2 - 10\n Y... | [
"0.64071244",
"0.62822574",
"0.628143",
"0.60530794",
"0.6026822",
"0.59846056",
"0.5930751",
"0.5787879",
"0.5736638",
"0.57215744",
"0.57202053",
"0.5710384",
"0.5694874",
"0.5600134",
"0.55815196",
"0.553639",
"0.54929966",
"0.5474628",
"0.5460995",
"0.54493225",
"0.544734... | 0.0 | -1 |
Saves parameters to json file | def xkzz(YKHO, RsFk):
with open(RsFk, 'w') as eHNT:
qQXR.dump(YKHO.__dict__, eHNT, indent=4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U1ai(YKHO, pmON=None):\n if pmON is None:\n pmON = YKHO.parampath\n NArs = {str(H5ew): str(BWXx) for H5ew, BWXx in YKHO.__dict__.items()}\n with open(Hy7s.path.join(pmON, f'params_{YKHO.mode}.json'), 'w') as eHNT:\n qQXR.dump(NArs, eHNT)",
"def TDTa(YKHO):\n try:\n with open(... | [
"0.82312053",
"0.8181947",
"0.8057166",
"0.7808885",
"0.77812463",
"0.775106",
"0.7710382",
"0.7706769",
"0.76148814",
"0.75990826",
"0.7574917",
"0.75643057",
"0.7448175",
"0.7373087",
"0.7341731",
"0.7261098",
"0.719621",
"0.7154501",
"0.714766",
"0.7143015",
"0.71297264",
... | 0.6737431 | 53 |
Saves dict of floats in json file | def ERYA(YKHO, RsFk):
with open(RsFk, 'w') as eHNT:
Csk6 = {G1Hx: str(Ty9i) for G1Hx, Ty9i in YKHO.params.dict.items()}
qQXR.dump(Csk6, eHNT, indent=4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ERYA(Csk6, RsFk):\n with open(RsFk, 'w') as eHNT:\n Csk6 = {G1Hx: float(Ty9i) for G1Hx, Ty9i in Csk6.items()}\n qQXR.dump(Csk6, eHNT, indent=4)",
"def ERYA(Csk6, RsFk):\n with open(RsFk, 'w') as eHNT:\n Csk6 = {G1Hx: float(Ty9i) for G1Hx, Ty9i in Csk6.items()}\n qQXR.dump(Cs... | [
"0.7564427",
"0.7564427",
"0.7253514",
"0.66701454",
"0.6560754",
"0.6480877",
"0.6427515",
"0.6369411",
"0.63336366",
"0.6319974",
"0.6308703",
"0.6225421",
"0.6213522",
"0.6200796",
"0.6162612",
"0.61495394",
"0.61287934",
"0.61068016",
"0.60562956",
"0.604909",
"0.60381424... | 0.721246 | 3 |
Learning Rate Schedule Learning rate is scheduled to be reduced after 80, 120, 160, 180 epochs. Called automatically every epoch as part of callbacks during training. Arguments | def ZT_s(YKHO, qtWj):
tspZ = YKHO.params.learning_rate
if qtWj > int(YKHO.params.num_epochs * 0.8):
tspZ *= 0.001
elif qtWj > int(YKHO.params.num_epochs * 0.6):
tspZ *= 0.01
elif qtWj > int(YKHO.params.num_epochs * 0.4):
tspZ *= 0.1
print('Learning rate: ', tspZ)
return t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vHc8(__n6):\n C3ST, y0cW = tcIP(non_negative=True)\n print('Baseline RNN')\n G3Ta(__n6, C3ST)\n print('RNN with decay')\n C3ST.set_params(**{y0cW + 'lr_decay': 'DecreasingLearningRateScheduler'})\n G3Ta(__n6, C3ST)",
"def ZT_s(qtWj):\n tspZ = 0.001\n if qtWj > 180:\n tspZ *= 0.... | [
"0.7523181",
"0.74990106",
"0.74865466",
"0.7482528",
"0.7470522",
"0.7470522",
"0.7470522",
"0.7470522",
"0.74078107",
"0.73543453",
"0.7348822",
"0.73360956",
"0.7268244",
"0.7265413",
"0.7228878",
"0.7224437",
"0.7197694",
"0.719144",
"0.71001893",
"0.7086968",
"0.70789975... | 0.7366162 | 9 |
Extract the 5day 3hour forecast for the provided City. | def dR7T(j5sA, rJDA):
NKRf = 'http://api.openweathermap.org/data/2.5/forecast?'
bD7m = NKRf + 'appid=' + rJDA + '&q=' + j5sA
Mkmy = G4JS.get(bD7m)
Mkmy.raise_for_status()
nPrm = Mkmy.json()
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n print('\\nCity Data..')\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['day_week'] = jQ3Z['Start Time'].dt.day_name()\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n ... | [
"0.60069734",
"0.6000779",
"0.596847",
"0.5942733",
"0.5914157",
"0.5891544",
"0.58722216",
"0.58638215",
"0.5838303",
"0.5817256",
"0.5810593",
"0.58050317",
"0.5796864",
"0.5792918",
"0.5790532",
"0.5785499",
"0.5775069",
"0.5774929",
"0.5773122",
"0.5772635",
"0.5769515",
... | 0.5924106 | 4 |
Computes the precision for the specified values of k | def vjyh(hlel, pan_, hz5a=(1,)):
Gq8e = max(hz5a)
Ep8u = pan_.size(0)
bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)
nvEb = nvEb.t()
gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))
Ylbp = []
for G1Hx in hz5a:
R2Dg = gXXc[:G1Hx].view(-1).float().sum(0, keepdim=True)
Ylbp.append(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R... | [
"0.76427615",
"0.74189496",
"0.7418079",
"0.72710466",
"0.72456723",
"0.72446615",
"0.7237539",
"0.72213703",
"0.7210107",
"0.7058935",
"0.6852219",
"0.6786084",
"0.67836976",
"0.6768417",
"0.67273885",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.67181736",
"0.... | 0.0 | -1 |
Initialize/reset all optimization related variables. This method initializes correction factors to identity and resets history of the optimization. | def SiRx(YKHO):
KCHu = YKHO
KCHu.step_counter = 0
IPme = []
for SRYB in YKHO.model.trainable_vars:
if YKHO.needs_correction(SRYB):
w0S9 = KCHu[SRYB].A.svd
KsRd = KCHu[SRYB].B2.svd
IPme.extend(w0S9.init_ops)
IPme.extend(KsRd.init_ops)
IP... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.reset_image_estimate()\n YKHO.init_m_aux()\n YKHO.reset_hessian_and_bias()\n YKHO.reset_adadelta_variables()",
"def lSjL(YKHO):\n YKHO.prediction = sDym.init_pred\n YKHO.error = sDym.init_err\n YKHO.fitness = sDym.init_fit",
"def SiRx(YKHO) -> None:\n YKHO._succes... | [
"0.6920202",
"0.66721946",
"0.64612997",
"0.6431148",
"0.640165",
"0.63812256",
"0.63766646",
"0.63586855",
"0.6343203",
"0.63043207",
"0.63029104",
"0.628375",
"0.62772477",
"0.6264784",
"0.6249498",
"0.62140375",
"0.61908585",
"0.61620176",
"0.6147041",
"0.6145196",
"0.6139... | 0.6704145 | 1 |
Yield the bonds in the batch. | def _Oly(YKHO) -> iu5r[KvzY]:
yield from YKHO._bonds | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kAST(YKHO):\n for W0I0 in YKHO.bond_list:\n yield W0I0",
"def _Oly(YKHO):\n yield from YKHO._molecule_state.get_bonds()",
"def kAST(YKHO):\n azXi = {}\n for XUbj in YKHO.iter_atoms():\n for W0I0 in XUbj.iter_bonds():\n if azXi.has_key(W0I0):\n continue\n ... | [
"0.7943251",
"0.7452321",
"0.7133443",
"0.7133443",
"0.7133443",
"0.7097584",
"0.66456985",
"0.631133",
"0.61824894",
"0.61297166",
"0.6066924",
"0.5932639",
"0.5841496",
"0.58220917",
"0.5796081",
"0.57958835",
"0.579542",
"0.57850516",
"0.5744912",
"0.5725474",
"0.5718149",... | 0.7672025 | 1 |
Get bounding box coordinate information. | def JcC1(VXjJ):
usx6 = oyIN.any(VXjJ, axis=1)
WfCS = oyIN.any(VXjJ, axis=0)
s_8f, X17R = oyIN.where(usx6)[0][[0, -1]]
Yd35, ZfiU = oyIN.where(WfCS)[0][[0, -1]]
X17R += 1
ZfiU += 1
return [s_8f, X17R, Yd35, ZfiU] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JcC1(YKHO):\n FDPT, QnmL = YKHO.coordinates\n CLNC = (oyIN.min(FDPT), oyIN.min(QnmL))\n d2DU = (oyIN.min(FDPT), oyIN.max(QnmL))\n r902 = (oyIN.max(FDPT), oyIN.max(QnmL))\n tspZ = (oyIN.max(FDPT), oyIN.min(QnmL))\n return (CLNC, d2DU, r902, tspZ)",
"def HV3G(YKHO):\n rwK9 = oyIN.max(YKHO.... | [
"0.7826119",
"0.76943433",
"0.7685138",
"0.76418823",
"0.76372904",
"0.7635961",
"0.7628765",
"0.76077354",
"0.75890565",
"0.75890565",
"0.7586321",
"0.7468325",
"0.7428931",
"0.7417812",
"0.7417812",
"0.7393874",
"0.7384683",
"0.7378131",
"0.73564994",
"0.73172516",
"0.72425... | 0.0 | -1 |
Compute the softmax in a numerically stable way. | def Bc82(WKvO):
WKvO = WKvO - oyIN.max(WKvO)
O48W = oyIN.exp(WKvO)
y3Mu = O48W / oyIN.sum(O48W)
return y3Mu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n pass\n O48W = oyIN.exp(WKvO)\n T63k = oyIN.sum(O48W, axis=0)\n N93T = O48W / T63k\n return N93T",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n \"\"\"\"\"\"\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)",
"def N93T(W... | [
"0.8550425",
"0.8457038",
"0.84488344",
"0.84132797",
"0.83853513",
"0.8353569",
"0.835235",
"0.83453566",
"0.83386815",
"0.8329015",
"0.83232",
"0.83217776",
"0.83217776",
"0.8318111",
"0.8318111",
"0.8318111",
"0.8318111",
"0.82981586",
"0.8296965",
"0.8296965",
"0.8296965"... | 0.8206516 | 64 |
Return pdf of the multivariate normal distribution at a point x | def kzAT(YKHO, WKvO):
if type(WKvO) is not oyIN.ndarray:
raise TypeError('x must be a numpy.ndarray')
if len(WKvO.shape) != 2 or WKvO.shape[1] != 1 or WKvO.shape[0] != YKHO.mean.shape[0]:
raise ValueError('x must have the shape ({}, 1)'.format(YKHO.mean.shape[0]))
Ylbp = oyIN.matmul((WKvO - ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kzAT(WKvO, yGTL, M1Jx):\n if M1Jx == 0:\n return 0\n return 1.0 / (M1Jx * PZyS(2 * mM0K)) * oyIN.exp(-(WKvO - yGTL) ** 2 / (2 * M1Jx ** 2))",
"def whUF(WKvO, yGTL, WTkW):\n yDep = 1 / (WTkW * epAf.sqrt(2 * epAf.pi))\n Ocla = oyIN.exp(-(WKvO - yGTL) ** 2 / (2 * WTkW ** 2))\n return yDep ... | [
"0.7994099",
"0.7923467",
"0.7800269",
"0.77726316",
"0.7729975",
"0.7724094",
"0.7671156",
"0.7664487",
"0.76360565",
"0.76360565",
"0.759209",
"0.7573027",
"0.75457025",
"0.7486424",
"0.7402956",
"0.7358192",
"0.7335815",
"0.7312965",
"0.7284434",
"0.7243327",
"0.72275126",... | 0.7689972 | 6 |
Tests that the user is redirected to the home page. | def q4CC(YKHO):
YKHO.assertRedirects(YKHO.response, YKHO.home_url) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsjw(YKHO):\n pass",
"def rKWs(YKHO):\n bD7m = gxEw('home')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, 200)",
"def GvGQ(YKHO):\n geh0 = YKHO.client.get('/')\n YKHO.assertContains(geh0, 'Home Page', 1, 200)",
"def tacr(x0hE):\n bD7m = gxEw('home')\n geh0 = ... | [
"0.84217453",
"0.7769299",
"0.76420814",
"0.7638164",
"0.76040894",
"0.759174",
"0.758025",
"0.7538141",
"0.7536092",
"0.74214154",
"0.74214154",
"0.7371821",
"0.7367941",
"0.7366777",
"0.7333203",
"0.72763914",
"0.72220784",
"0.71568996",
"0.71443254",
"0.71340394",
"0.71012... | 0.7805177 | 1 |
This function splits a text into sentences. | def XgOb(l5Ny: str, rQow: str='es') -> x1iM[str]:
if not rQow in SfQ4[rQow]:
raise ValueError(f'Language {rQow} is not supported yet')
K9NE = CNQv.load(rQow, disable=['tagger', 'parser', 'ner'])
K9NE.add_pipe(K9NE.create_pipe('sentencizer'))
OSxU = K9NE(l5Ny)
return [str(yAmx) for yAmx in OS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JHW8(YKHO, l5Ny):\n return UQZR(l5Ny)",
"def c0FK(l5Ny):\n Rhv4 = Dhdw.sent_tokenize(l5Ny)\n return Rhv4",
"def Y2KJ(l5Ny):\n return l5Ny.split('.')",
"def lpha(l5Ny):\n A97Q = K9NE(l5Ny)\n Rhv4 = [WKvO.text_with_ws for WKvO in A97Q.sents]\n return Rhv4",
"def bI8b(YKHO, l5Ny):\n ... | [
"0.8672343",
"0.85861427",
"0.8472792",
"0.84667826",
"0.8257693",
"0.81614894",
"0.7940572",
"0.7914254",
"0.7831395",
"0.7710162",
"0.7662661",
"0.76290506",
"0.7622077",
"0.7622077",
"0.75612384",
"0.7471516",
"0.74060327",
"0.7382098",
"0.73585206",
"0.73516166",
"0.73237... | 0.74611187 | 16 |
This function splits a text into sentences. | def tP9T(A97Q: Doc) -> x1iM[IbBk]:
return [KCHu for KCHu in A97Q.sents if len(KCHu.text.strip()) > 0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JHW8(YKHO, l5Ny):\n return UQZR(l5Ny)",
"def c0FK(l5Ny):\n Rhv4 = Dhdw.sent_tokenize(l5Ny)\n return Rhv4",
"def Y2KJ(l5Ny):\n return l5Ny.split('.')",
"def lpha(l5Ny):\n A97Q = K9NE(l5Ny)\n Rhv4 = [WKvO.text_with_ws for WKvO in A97Q.sents]\n return Rhv4",
"def bI8b(YKHO, l5Ny):\n ... | [
"0.8672311",
"0.85856885",
"0.8473692",
"0.84668624",
"0.82568705",
"0.81610686",
"0.7940494",
"0.791481",
"0.78306633",
"0.77087206",
"0.76636416",
"0.7629145",
"0.7621852",
"0.7621852",
"0.75620395",
"0.74730825",
"0.74618554",
"0.74090004",
"0.7385066",
"0.73591983",
"0.73... | 0.0 | -1 |
Method to clean black dots and set to 808080 | def VdbR(C00v, jtyf=7):
Xn71 = hnIv.open(C00v)
Xn71 = Xn71.convert('RGB')
EBgd = Xn71.load()
for WKvO in range(Xn71.size[0]):
for LVAh in range(Xn71.size[1]):
if EBgd[WKvO, LVAh][0] < jtyf and EBgd[WKvO, LVAh][1] < jtyf and (EBgd[WKvO, LVAh][2] < jtyf):
EBgd[WKvO, LVA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o5jW(YKHO, l5Ny: str) -> str:\n mXDZ = 'http\\\\S+'\n return ZbWC.sub(mXDZ, ' ', str(l5Ny))",
"def c6hR(YKHO):\n YKHO.matomo_url = ZbWC.sub('/\\\\/$/', '', YKHO.matomo_url)\n if ZbWC.match('^http://', YKHO.matomo_url):\n YKHO.matomo_url = ZbWC.sub('^http://', '', YKHO.matomo_url)\n ... | [
"0.59661394",
"0.58218926",
"0.5761587",
"0.5714812",
"0.5661295",
"0.565335",
"0.5636224",
"0.56039876",
"0.55440944",
"0.5527531",
"0.55191916",
"0.54607946",
"0.5456812",
"0.5454855",
"0.54479426",
"0.54219395",
"0.54095036",
"0.53533024",
"0.53326285",
"0.53257805",
"0.52... | 0.0 | -1 |
r"""Standardize features by removing the mean and scaling to unit variance. | def NkkI(LyKa, VMkz, yDqo=oyIN.float32):
Oy1y = LyKa[VMkz]
Y5YY = ZvG6.StandardScaler()
Y5YY.fit(Oy1y)
LyKa = Y5YY.transform(LyKa)
return LyKa.astype(yDqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ERn(YKHO):\n nGWB = []\n for fvDH in YKHO.X.columns:\n if YKHO.X[fvDH].dtype != 'object':\n nGWB.append(fvDH)\n Y5YY = ZvG6.StandardScaler().fit(YKHO.X[nGWB])\n YKHO.X[nGWB] = Y5YY.transform(YKHO.X[nGWB])",
"def hWT_(EcVT):\n yGTL = EcVT.mean(axis=0, keepdims=True)\n KCHu... | [
"0.7807891",
"0.7597977",
"0.75549036",
"0.74405175",
"0.74150527",
"0.7391262",
"0.73537886",
"0.7308655",
"0.7305091",
"0.72536564",
"0.7250654",
"0.7210351",
"0.71905535",
"0.71505314",
"0.713604",
"0.71302843",
"0.71074224",
"0.70464814",
"0.70461905",
"0.7046183",
"0.702... | 0.0 | -1 |
Sets the seed for this env's random number generator(s). | def yokr(YKHO, yokr=None):
YKHO.np_random, yokr = Gt3g.np_random(yokr)
return [yokr] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e3of(Emd4, yokr: Any) -> None:\n Emd4.rand = RHmZ(yokr)",
"def e3of(YKHO, yokr: int):\n YKHO.__sim.seed(yokr)",
"def e3of(YKHO, yokr):\n YKHO.seed = yokr",
"def yokr(YKHO, yokr=None):\n if yokr is not None:\n YKHO._rng.seed(yokr)",
"def PVng(YKHO, yokr):\n oyIN.random.seed(yokr)\n... | [
"0.837315",
"0.8116574",
"0.80862194",
"0.8081547",
"0.80698186",
"0.80698186",
"0.8035685",
"0.79711807",
"0.7949761",
"0.79067385",
"0.79045385",
"0.78622633",
"0.7830874",
"0.78281605",
"0.78175986",
"0.77908194",
"0.7770842",
"0.7770138",
"0.77453065",
"0.7741128",
"0.772... | 0.758876 | 30 |
The end date of the current term | def KhBf(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'end_date') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')",
"def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')",
"def KhBf(YKHO):\n return YKHO.__end_date",
"def KhBf(YKHO):\n return YKHO._end_date",
"def KhBf(YKHO):\n return YKHO._end_date",
"def KhBf(YKHO):\n return YKHO._en... | [
"0.8016982",
"0.8016982",
"0.79294646",
"0.78057766",
"0.78057766",
"0.78057766",
"0.7764251",
"0.7568661",
"0.75136626",
"0.73069984",
"0.7293585",
"0.70146596",
"0.6945339",
"0.69356525",
"0.6815827",
"0.67398614",
"0.67398614",
"0.6672662",
"0.66457826",
"0.6624636",
"0.66... | 0.7626937 | 8 |
The start date of the current term | def kepv(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'start_date') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nUNa(YKHO):\n return '%d%02d' % (YKHO.year, YKHO.term)",
"def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')",
"def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')",
"def kepv(YKHO):\n return YKHO.__start_date",
"def Kx9c(YKHO):\n return qcWV.date(2016, 1, 4)",
"def ... | [
"0.8313013",
"0.77163315",
"0.77163315",
"0.7669511",
"0.7624826",
"0.75638956",
"0.75638956",
"0.75638956",
"0.75638956",
"0.7483072",
"0.7297139",
"0.7262415",
"0.716523",
"0.7146404",
"0.7104689",
"0.70259964",
"0.6978446",
"0.696415",
"0.6856978",
"0.6804855",
"0.6799373"... | 0.72893286 | 12 |
The unit indicating Monthly / Yearly | def ftt_(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'term_unit') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Shk4(YKHO):\n return YKHO.time_base * 60.0 * 24.0 * 365.0 / 12",
"def AACM(YKHO):\n return YKHO.time_base * 60.0 * 24.0 * 365.0 / 12",
"def mPa9(YKHO):\n return YKHO.time_base * 60.0 * 24.0 * 365.0",
"def hfbv(YKHO):\n return YKHO.time_base * 60.0 * 24.0",
"def x0eS(YKHO):\n return 0",
... | [
"0.76864266",
"0.75879943",
"0.6720808",
"0.6638905",
"0.6562602",
"0.6562602",
"0.65231407",
"0.64992774",
"0.64830637",
"0.6470921",
"0.6422167",
"0.63863474",
"0.63855857",
"0.6282617",
"0.6263456",
"0.62479097",
"0.61852545",
"0.61839813",
"0.61303926",
"0.61143076",
"0.6... | 0.0 | -1 |
The created date of this resource. | def _EYN(YKHO) -> str:
return qe4Y.get(YKHO, 'created') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a0GP(YKHO):\n return YKHO._created_date",
"def a0GP(YKHO):\n return YKHO._created_date",
"def JjkJ(YKHO):\n return YKHO._date_created",
"def JjkJ(YKHO):\n return YKHO._date_created",
"def JjkJ(YKHO):\n return YKHO._date_created",
"def JjkJ(YKHO) -> qcWV:\n return YKHO._date_created"... | [
"0.8752678",
"0.8752678",
"0.8514051",
"0.8514051",
"0.8514051",
"0.84255594",
"0.83635926",
"0.83635926",
"0.83635926",
"0.8300944",
"0.8245852",
"0.82184666",
"0.8198086",
"0.813445",
"0.8043646",
"0.8043646",
"0.79941124",
"0.7802316",
"0.7742131",
"0.77390605",
"0.7710792... | 0.7867446 | 19 |
Whether the SaaS subscription will auto renew upon term end. | def z2Wi(YKHO) -> h8nf[bool]:
return qe4Y.get(YKHO, 'auto_renew') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z2Wi(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'auto_renew')",
"def z2Wi(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'auto_renew')",
"def z2Wi(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'auto_renew')",
"def ECxp(YKHO) -> h8nf[qe4Y.Input[bool]]:\n ret... | [
"0.7635799",
"0.7555081",
"0.7555081",
"0.7060618",
"0.66018945",
"0.63008267",
"0.6166622",
"0.6105066",
"0.6095437",
"0.60400766",
"0.6024941",
"0.60069394",
"0.59538114",
"0.5946263",
"0.5913129",
"0.59094524",
"0.590431",
"0.5873234",
"0.5791154",
"0.5784895",
"0.5782406"... | 0.79429305 | 1 |
The Payment channel for the SaasSubscription. | def kD14(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'payment_channel_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YwkQ(YKHO):\n return DIz8({'id': YKHO.channel_id, 'connection': YKHO.connection})",
"def iNkx(YKHO):\n return YKHO.channel",
"def YwkQ(YKHO) -> 'Channel':\n return YKHO._channel",
"def YwkQ(YKHO):\n return YKHO._channel",
"def YwkQ(YKHO):\n return YKHO._channel",
"def YwkQ(YKHO):\n ... | [
"0.64235836",
"0.6375752",
"0.63539016",
"0.6338129",
"0.6338129",
"0.6270923",
"0.62647957",
"0.6255194",
"0.61652064",
"0.6117484",
"0.5970928",
"0.5964751",
"0.59157217",
"0.58987176",
"0.58987176",
"0.58987176",
"0.5872529",
"0.5872529",
"0.5872529",
"0.5861939",
"0.58208... | 0.6670644 | 1 |
The SaaS resource name. | def Ewhl(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'saas_resource_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YJsY(YKHO):\n return YKHO._resource_name",
"def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_name')",
"def kFeU(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_name')",
"def mWFP(YKHO):\n return YKHO.raw_resource['name']",
"def mWFP(YKHO):\n return YKHO.resource['meta... | [
"0.75283563",
"0.742396",
"0.742396",
"0.7398112",
"0.7182074",
"0.7104791",
"0.7104791",
"0.7104791",
"0.7104791",
"0.7104791",
"0.70863575",
"0.69936925",
"0.69936925",
"0.6841932",
"0.6746869",
"0.6736587",
"0.6699765",
"0.6691915",
"0.6676494",
"0.66206276",
"0.66170204",... | 0.8277715 | 0 |
The current Term id. | def PGrJ(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'term_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO, OXAZ):\n OXAZ = OXAZ.lower() if YKHO.lower else OXAZ\n try:\n return YKHO.term2id[OXAZ]\n except KeyError:\n return YKHO.term2id[YKHO.unk_term]",
"def Achk(YKHO, OXAZ):\n xDcj = YKHO.db.execute('SELECT rowid FROM terms WHERE term = ?;', (OXAZ,))\n A07C = xDcj.fetchall(... | [
"0.695331",
"0.6933238",
"0.6902128",
"0.6885298",
"0.6561754",
"0.6549523",
"0.6519543",
"0.64798254",
"0.64798254",
"0.64798254",
"0.64798254",
"0.64798254",
"0.64798254",
"0.64798254",
"0.64798254",
"0.64798254",
"0.64798254",
"0.64798254",
"0.64798254",
"0.64798254",
"0.6... | 0.7920032 | 0 |
Create instance of sqlalchemy.engine.Engine. URL should be a string that indicates database dialect and connection arguments. | def FIMM(YKHO, bD7m):
try:
YKHO.engine = i48E.create_engine(bD7m)
except Exception as e:
raise RuntimeError(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ykhp(YKHO, bD7m=None):\n if not bD7m:\n bD7m = YKHO.create_url()\n eHpk = i48E.create_engine(bD7m, pool_size=YKHO.sql_engine_pool_size, pool_recycle=YKHO.sql_engine_pool_recycle, echo=YKHO.sql_engine_echo)\n eHpk.connect()\n return eHpk",
"def eHpk(h8Lu=None):\n h8Lu = h8Lu or Hy7s.gete... | [
"0.81839484",
"0.81197804",
"0.8006621",
"0.79811877",
"0.74319786",
"0.7261863",
"0.7229383",
"0.71871376",
"0.71557087",
"0.7149246",
"0.7106051",
"0.70689964",
"0.7022129",
"0.69169366",
"0.6916641",
"0.687477",
"0.687477",
"0.687477",
"0.687477",
"0.687477",
"0.6861764",
... | 0.73803365 | 5 |
Test to validates ``mimeType`` is replaced by ``mediaType`` for all descriptions. Also we validate that processes that use ``mimeType`` or ``mediaType`` can be deployed successfully. | def aEa7(YKHO):
Y423, fm6E = iJ59(CFza)
Dl0U = dict(list(Y423.items()))
TBsA = {'processDescription': {'process': {'id': YKHO._testMethodName, 'title': 'some title', 'abstract': 'this is a test', 'inputs': [{'id': 'wps_format_mimeType', 'formats': [{'mimeType': CFza, 'default': True}]}, {'id': 'wps_format_m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ehay(YKHO):\n Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST)\n Kz8N['job']['interface']['inputs']['files'][0]['mediaTypes'] = []\n GPtr = jth9.deepcopy(YKHO.configuration)\n zgjV = {'manifest': Kz8N, 'configuration': GPtr}\n bD7m = '/%s/job-types/validation/' % YKHO.api\n geh0 = YKHO.client.gen... | [
"0.6418336",
"0.57625765",
"0.53959703",
"0.53888893",
"0.5337691",
"0.52999",
"0.5279323",
"0.5244089",
"0.51923144",
"0.51400024",
"0.5133637",
"0.51287067",
"0.5109834",
"0.51068723",
"0.50749046",
"0.5027425",
"0.49983624",
"0.49710092",
"0.49595988",
"0.49017262",
"0.489... | 0.5752137 | 2 |
Test verifies that ``minOccurs`` and/or ``maxOccurs`` definitions other than allowed formats are raised as invalid schemas. | def UjpO(YKHO):
KxAi = {'cwlVersion': 'v1.0', 'class': 'CommandLineTool', 'inputs': [{}], 'outputs': {'values': {'type': 'string'}}}
TBsA = {'processDescription': {'process': {'id': YKHO._testMethodName, 'title': 'some title', 'abstract': 'this is a test', 'inputs': [{}]}}, 'deploymentProfileName': 'http://www.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cImY(YKHO):\n LQmj = qflg.get_supported_schemas()\n s2d9 = ['HAZUS_v1.0', 'SARA_v1.0', 'SUPPASRI2013_v2.0', 'Mavrouli_et_al_2014', 'Torres_Corredor_et_al_2017', 'Medina_2019']\n YKHO.assertTrue(LQmj)\n YKHO.assertEqual(len(s2d9), len(LQmj))\n for uPxI in s2d9:\n YKHO.assertIn(uPxI, LQmj)"... | [
"0.6614721",
"0.6577441",
"0.6567425",
"0.6553559",
"0.64648145",
"0.64188457",
"0.641412",
"0.63875085",
"0.6359459",
"0.63483405",
"0.6324148",
"0.6290119",
"0.6287649",
"0.628245",
"0.6272029",
"0.6266671",
"0.62480336",
"0.62457275",
"0.6243545",
"0.62339765",
"0.62214714... | 0.6609925 | 1 |
Filter posts by tag, return 404 if no post is found. | def k66M(YKHO):
return T97t.objects.filter(user_id=YKHO.kwargs['user_id'], status='published', visibility='public') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YHVA(RlHf):\n return f5si.objects.filter(tags__tag=RlHf)",
"def bE4h(FvVY):\n return filter(aIlr, FvVY)",
"def fRXs(YKHO, SR0I):\n dJ1p = YKHO.request.GET.getlist('tag')\n if dJ1p:\n for TZ9E in dJ1p:\n SR0I = SR0I.filter(tag__tag=TZ9E)\n return super().filter_queryset(SR0I... | [
"0.6856305",
"0.64649606",
"0.6225477",
"0.601161",
"0.5983079",
"0.5930495",
"0.59113294",
"0.58109844",
"0.5793466",
"0.57592404",
"0.56951296",
"0.5690261",
"0.5667304",
"0.565259",
"0.55932647",
"0.55529505",
"0.55511284",
"0.5488095",
"0.542649",
"0.5378492",
"0.5346248"... | 0.0 | -1 |
Test whether the underlying data is bytewiseequal. >>> a = numpy.arange(16); b = a.copy() >>> ak = NumKeyLite(a); bk = NumKeyLite(b) >>> ak == bk True >>> ak != bk False >>> bk = NumKeyLite(b + 0.1) >>> ak == bk False >>> b = a.reshape(4, 1).copy(); bk = NumKeyLite(b) >>> ak == bk False >>> ak != bk True | def xa14(YKHO, Elif):
try:
return XTiz.all(XTiz.equal(YKHO.__value, Elif.__value))
except ValueError:
return False
except AttributeError:
raise TypeError('Not knowing how to compare.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S8Mo(jzdc, Fg_i, k3Zu='numpy'):\n if not hasattr(Fg_i, 'shape'):\n return jzdc == Fg_i\n if (not hasattr(jzdc, 'shape') or jzdc.shape == ()) and (not hasattr(Fg_i, 'shape') or Fg_i.shape == ()):\n return jzdc == Fg_i\n if jzdc.shape != Fg_i.shape:\n if PJWX:\n print('Sh... | [
"0.6826737",
"0.68032116",
"0.67569584",
"0.6716373",
"0.66690123",
"0.6648836",
"0.66395783",
"0.65901333",
"0.65335965",
"0.6531204",
"0.64945734",
"0.6479077",
"0.6456584",
"0.6451906",
"0.64480895",
"0.6436678",
"0.6390705",
"0.63904655",
"0.6376124",
"0.63293356",
"0.628... | 0.5957682 | 71 |
Sets the token_unique_reference of this TokenizeResponseSchema. | def Bh5k(YKHO, Bh5k):
YKHO._token_unique_reference = Bh5k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w6ed(YKHO, w6ed):\n YKHO._unique_reference = w6ed",
"def PU5B(YKHO, PU5B):\n YKHO._pan_unique_reference = PU5B",
"def DHIv(YKHO, DHIv):\n YKHO._token_uri = DHIv",
"def eOtH(YKHO, eOtH):\n YKHO._token = eOtH",
"def eOtH(YKHO, eOtH):\n YKHO._token = eOtH",
"def CpvB(YKHO, CpvB):\n YKH... | [
"0.66069114",
"0.54265714",
"0.52031356",
"0.51464486",
"0.51464486",
"0.5061283",
"0.50280356",
"0.49233103",
"0.48930898",
"0.48925546",
"0.48611587",
"0.48317307",
"0.47713757",
"0.47481495",
"0.4733137",
"0.47289088",
"0.47012594",
"0.46930283",
"0.46761343",
"0.46750033",
... | 0.82809067 | 0 |
Sets the token_detail of this TokenizeResponseSchema. | def tsH6(YKHO, tsH6):
YKHO._token_detail = tsH6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XIlI(YKHO, XIlI):\n YKHO._token_info = XIlI",
"def mDCx(YKHO, eOtH):\n YKHO.token = eOtH\n YKHO._token_header = 'Bearer ' + eOtH['access_token']",
"def YVx_(YKHO, YVx_):\n YKHO._error_detail = YVx_",
"def _6P0(YKHO, eOtH):\n YKHO._data['maptoken'] = eOtH",
"def eOtH(YKHO, eOtH):\n YKH... | [
"0.63697726",
"0.5925274",
"0.5838624",
"0.5797187",
"0.5791003",
"0.5791003",
"0.5643845",
"0.56285834",
"0.55679846",
"0.55679846",
"0.55679846",
"0.55239844",
"0.52082306",
"0.51737744",
"0.5173633",
"0.5173558",
"0.5164342",
"0.5164342",
"0.5126371",
"0.5104957",
"0.50998... | 0.8307674 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, gimT):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, gimT):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Sets the speed of the left and right motors to the given speed. The speed should be in the range of [0, 255]. Sleeps for 0.1 seconds in between setting the left and right motor speeds. | def rboB(iBLD):
if iBLD > 255:
iBLD = 255
elif iBLD < 0:
iBLD = 0
hFHH(iBLD)
ornw(iBLD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BZN_(YKHO, iBLD=1):\n YKHO.set_motor(YKHO.left_motor, 'left', iBLD)\n YKHO.set_motor(YKHO.right_motor, 'right', iBLD)\n ITS7.sleep(0.5)",
"def hFHH(iBLD):\n if iBLD > 255:\n iBLD = 255\n elif iBLD < 0:\n iBLD = 0\n return yYFu(T9QJ, LD2H + [iBLD, 0, 0])",
"def hFHH(iBLD):\n ... | [
"0.78023344",
"0.7445923",
"0.7445923",
"0.73864216",
"0.72845906",
"0.726722",
"0.7251113",
"0.7161834",
"0.71615404",
"0.7146234",
"0.7146234",
"0.7104322",
"0.7103598",
"0.70458686",
"0.69860035",
"0.6962281",
"0.69477236",
"0.69449216",
"0.69364804",
"0.6886092",
"0.68427... | 0.8324373 | 0 |
Checks that we're consistently running at 60 ticks/s. | def agwf(YKHO):
FLXQ = YKHO.history
bW5R = 60
def m7L9(IQ7T):
return IQ7T.game_tick_proto.GameInfo().SecondsElapsed()
def Iw_Z(IQ7T):
return IQ7T.game_tick_proto.GameInfo().IsRoundActive()
D7KI = [m7L9(FLXQ[YRbF + 1]) - m7L9(FLXQ[YRbF]) for YRbF in range(len(FLXQ) - 1) if Iw_Z(FLXQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u3AU(YKHO) -> int:\n pass",
"def jdVm(YKHO):\n YKHO.current_time = qcWV.now()\n return all([YKHO._minute(), YKHO._hour(), YKHO._day_of_month(), YKHO._month(), YKHO._day_of_week()])",
"def iqFZ(YKHO):\n if YKHO.timer is None or ITS7.time() - YKHO.last_try > YKHO.min_sec * 2:\n YKHO.timer ... | [
"0.6439625",
"0.6252726",
"0.6111706",
"0.6087357",
"0.6052535",
"0.60162747",
"0.60071677",
"0.6004329",
"0.5976713",
"0.59697694",
"0.59691685",
"0.5926805",
"0.59260744",
"0.592052",
"0.5848709",
"0.5847624",
"0.58312494",
"0.58304274",
"0.5811613",
"0.5803207",
"0.5800268... | 0.6675983 | 0 |
Tests that the api can be hit and that authorization works and that it can return one particular person who is likely to be with the company for some time | def inXb():
hGN5 = Hy6m(10050)
assert hGN5['preferredName'].endswith('immel') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ecv1(YKHO):\n PC8y[SYXh['org_id']] = str(YKHO.org_id)\n SqJ0 = [bTKY for bTKY in YKHO.valid_response if all((str(bTKY[G1Hx]).lower().find(str(PC8y[G1Hx]).lower()) != -1 for G1Hx in PC8y))]\n h2IT.add(h2IT.GET, YKHO.api_url, json=SqJ0, status=200, match_querystring=False)\n AEiC = t1zY(client=YKHO.c... | [
"0.65235025",
"0.6501353",
"0.6472427",
"0.64364195",
"0.6426616",
"0.64263946",
"0.6409696",
"0.6380067",
"0.6376479",
"0.633538",
"0.63281476",
"0.62975615",
"0.6294384",
"0.6268598",
"0.6262227",
"0.62525415",
"0.6242194",
"0.6224487",
"0.6209244",
"0.61947787",
"0.6183047... | 0.6604673 | 0 |
``` Get current weight decay rate ``` | def iENt(YKHO):
if type(YKHO.model.optimizer).__name__ == 'AdamWeightDecay':
return YKHO.model.optimizer.weight_decay_rate
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oNEO(YKHO):\n if YKHO._weight_decay is not None:\n return YKHO._weight_decay\n return 5e-05 if 'VG' in YKHO.dataset else 0.0005",
"def WMj5(YKHO):\n return YKHO._decay",
"def VNTV(YKHO):\n sfVb = ZylS.get_collection(ZylS.GraphKeys.REGULARIZATION_LOSSES)\n RKD7.info('Weight decay varia... | [
"0.7772663",
"0.7588543",
"0.7197065",
"0.70361257",
"0.6825383",
"0.6824575",
"0.67655575",
"0.67583513",
"0.67453355",
"0.6740679",
"0.6740679",
"0.6651961",
"0.6601236",
"0.65886915",
"0.6570518",
"0.6546319",
"0.65148735",
"0.6501756",
"0.64437497",
"0.6422064",
"0.639320... | 0.7858903 | 0 |
``` Sets global weight decay via AdamWeightDecay optimizer | def qsqA(YKHO, TI1B=KkY2.DEFAULT_WD):
YKHO._recompile(wd=TI1B)
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VUr6(YKHO):\n for Lwm5 in YKHO.optimizer.param_groups:\n for xqoZ in Lwm5['params']:\n xqoZ.data = xqoZ.data.add(-1.0 * YKHO.weights_decay * Lwm5['lr'], xqoZ.data)",
"def FIMM(YKHO, oNEO, b0Ix=0.001, dgWh=0.9, znmT=0.999, _hZ2=1e-08, Wxok=False, mWFP='AdamW'):\n super(L5Qk, YKHO).__in... | [
"0.7529152",
"0.7424105",
"0.70994705",
"0.7070848",
"0.70599794",
"0.7018945",
"0.70012134",
"0.69909436",
"0.6972249",
"0.69699156",
"0.6891229",
"0.67930806",
"0.67761046",
"0.6766105",
"0.6699152",
"0.66976225",
"0.6680061",
"0.66540873",
"0.65958995",
"0.65872186",
"0.65... | 0.7015071 | 6 |
``` Reinitializes network with original weights ``` | def UMkV(YKHO, PJWX=1):
if Hy7s.path.isfile(YKHO._original_weights):
YKHO.model.load_weights(YKHO._original_weights)
YKHO.history = None
KkY2.vprint('Model weights have been reset.', verbose=PJWX)
else:
qmLP.warn('Weights have not been reset because the original weights file ' + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0Lv(YKHO):\n pass",
"def WGBA(YKHO):\n YKHO.weights = oyIN.zeros((XP5J.num_rovers, YKHO.n_weights))\n YKHO.in_layer = oyIN.zeros((XP5J.num_rovers, YKHO.n_inputs))\n YKHO.hid_layer = oyIN.zeros((XP5J.num_rovers, YKHO.n_nodes))\n YKHO.out_layer = oyIN.zeros((XP5J.num_rovers, YKHO.n_outputs))",
... | [
"0.7458227",
"0.7412517",
"0.73875344",
"0.73781663",
"0.7371596",
"0.7259882",
"0.7183528",
"0.7132337",
"0.712373",
"0.7110474",
"0.71094805",
"0.7104507",
"0.70966613",
"0.7035379",
"0.70156866",
"0.6962031",
"0.6941823",
"0.6907929",
"0.6880448",
"0.6868592",
"0.6859495",... | 0.0 | -1 |
Make converter that returns a truthy value or ``None``. ``converter`` is called to further convert non``None`` values. | def VAKB(aDxC: Callable[[Any], T]) -> YrBT[[ImMB], h8nf[Kt_s]]:
return lambda BWXx: aDxC(BWXx) if BWXx else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L0pj(aDxC: Callable[[Any], T]) -> YrBT[[ImMB], h8nf[Kt_s]]:\n return lambda BWXx: None if BWXx is None else aDxC(BWXx)",
"def a8Pe(YKHO, aDxC=None):\n if aDxC is not None:\n YKHO.converter = aDxC\n YKHO.code(YKHO.prepare)",
"def dxbz(YKHO, aDxC):\n pass",
"def tcRf(YKHO, BWXx):\n if... | [
"0.74117136",
"0.6217806",
"0.60996294",
"0.6047573",
"0.58413285",
"0.5426432",
"0.54246247",
"0.54015446",
"0.5386038",
"0.5373192",
"0.53192526",
"0.5307836",
"0.52500135",
"0.5246546",
"0.52267283",
"0.5171171",
"0.5150713",
"0.5147207",
"0.5136645",
"0.5133075",
"0.50921... | 0.8393245 | 0 |
Make converter that returns a string stripped of newlines or ``None``. ``converter`` is called to further convert non``None`` values. | def cbmt(aDxC: Callable[[Any], T]) -> YrBT[[ImMB], h8nf[Kt_s]]:
return lambda BWXx: aDxC(BWXx.replace('\r', '').replace('\n', '')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EJYq(BWXx: Optional[str]) -> h8nf[str]:\n if BWXx is None:\n return None\n Ty9i = str(BWXx.strip()).replace('\\r', '').replace('\\n', '')\n return Ty9i or None",
"def yjsX(BWXx):\n return str(BWXx) if BWXx is not None else None",
"def aVEM(YKHO, BWXx):\n if not str(BWXx).strip():\n ... | [
"0.57796806",
"0.5565792",
"0.5423951",
"0.51866627",
"0.5173151",
"0.5128336",
"0.51152",
"0.50806856",
"0.5063399",
"0.496225",
"0.4939525",
"0.49193722",
"0.4881577",
"0.48720887",
"0.4861825",
"0.48315695",
"0.48274344",
"0.48204777",
"0.4794638",
"0.4782126",
"0.47787866... | 0.79939085 | 0 |
Return the density of the mask's model. | def y7YR(ZHfW):
return qpRx(ZHfW).float() / kQ31(ZHfW).float() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InLe(YKHO):\n return YKHO.nnz / YKHO.dim",
"def InLe(YKHO):\n return YKHO.get_density()",
"def InLe(YKHO):\n return YKHO.__density",
"def InLe(YKHO):\n return YKHO.__density",
"def InLe(YKHO):\n return YKHO.__density",
"def InLe(YKHO):\n return YKHO._density",
"def InLe(YKHO):\n ... | [
"0.7146775",
"0.7057674",
"0.6915033",
"0.6915033",
"0.6915033",
"0.68925333",
"0.6860638",
"0.68238187",
"0.6782899",
"0.6741262",
"0.67350525",
"0.6734582",
"0.66461",
"0.6584711",
"0.655791",
"0.654934",
"0.6408289",
"0.618068",
"0.6179919",
"0.61492056",
"0.6135738",
"0... | 0.8207859 | 0 |
The __init__ should be used to load all data into the object which is necessary for calculation of the logposterior probability which will be returned by the __call__ method. Typically this includes experimental measurements with their associated uncertainties, and any relevant physical constants. | def FIMM(YKHO, __d3):
YKHO.x = __d3
YKHO.c1 = 422.0
YKHO.c2 = 428.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.shape_parameter = 0.0\n 'Shape parameter describes the skew of the Weibull distribution. \\n If shape < 3.5, data skews left.\\n If shape == 3.5, data is normal.\\n If shape > 3.5, data skews right.\\n '\n YKHO.scale_paramter = 0.0\n 'Represents the pe... | [
"0.704647",
"0.6935416",
"0.69181246",
"0.69077706",
"0.68912816",
"0.68874115",
"0.68645275",
"0.68167216",
"0.68167216",
"0.68167216",
"0.6805164",
"0.6799064",
"0.6790852",
"0.67805284",
"0.67520815",
"0.6751402",
"0.6740377",
"0.67364275",
"0.67152387",
"0.6713303",
"0.67... | 0.0 | -1 |
Generates examples for the dSprites data set. | def zDiL(YKHO, VqRE):
with iJJ6.core.lazy_imports.h5py.File(VqRE, 'r') as Uz_1:
VOC_ = oyIN.array(Uz_1['imgs'])
lbUo = oyIN.array(Uz_1['latents']['classes'])
r5g_ = oyIN.array(Uz_1['latents']['values'])
for YRbF, (LNo8, KndY, hkxX) in enumerate(oLdq.zip(VOC_, lbUo, r5g_)):
AIu6 =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zDiL(YKHO, s0DA):\n for _2sc in ZylS.io.gfile.listdir(s0DA):\n qwKh = Hy7s.path.join(s0DA, _2sc)\n for C7_O in ZylS.io.gfile.listdir(qwKh):\n LNo8 = Hy7s.path.join(qwKh, C7_O)\n yield (LNo8, {'image': LNo8, 'label': _2sc})",
"def Xu17():\n mj0C()\n NgSk()\n wit... | [
"0.6653823",
"0.6332842",
"0.62703526",
"0.62283355",
"0.59563273",
"0.5934799",
"0.59232813",
"0.5902306",
"0.5902306",
"0.5882513",
"0.58446765",
"0.58446765",
"0.58446765",
"0.58446765",
"0.58446765",
"0.583835",
"0.58275044",
"0.58089954",
"0.57928115",
"0.57856613",
"0.5... | 0.5801675 | 18 |
Compare this iDevice with other | def Aicm(YKHO, Elif):
return eHkp(YKHO.id, Elif.id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: Any) -> bool:\n if isinstance(Elif, I0uW):\n return YKHO.device_type == Elif.device_type and YKHO.device_id == Elif.device_id\n elif isinstance(Elif, ht2j.device):\n return YKHO.device_type == Elif.type and YKHO.device_id == Elif.index\n else:\n return NotImplemen... | [
"0.73767394",
"0.7251255",
"0.72493994",
"0.7232587",
"0.70750767",
"0.70426285",
"0.7021127",
"0.70188135",
"0.69482976",
"0.69293094",
"0.6920181",
"0.6907133",
"0.6903699",
"0.6796442",
"0.67254376",
"0.6682992",
"0.66745126",
"0.66745126",
"0.65955245",
"0.6589126",
"0.65... | 0.0 | -1 |
Computes the backward pass of an affine function. | def Kt1o(zYcP, WKvO, yzQ0, Fg_i):
ywwl = WKvO.shape[0]
lWPh, E3D9 = yzQ0.shape
rf2S = oyIN.dot(zYcP, yzQ0.T)
Jw7X = rf2S.reshape(WKvO.shape)
kNbz = WKvO.reshape(ywwl, lWPh)
ncXl = oyIN.dot(kNbz.T, zYcP)
NCls = oyIN.sum(zYcP, axis=0) * 1
return (Jw7X, ncXl, NCls) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kt1o(zYcP, wyyA):\n WKvO, yzQ0, Fg_i = wyyA\n Jw7X, ncXl, NCls = (None, None, None)\n aWf9 = oyIN.prod(WKvO[0].shape)\n ywwl = WKvO.shape[0]\n EcVT = WKvO.reshape(ywwl, aWf9)\n Jw7X = zYcP.dot(yzQ0.T)\n Jw7X = Jw7X.reshape(WKvO.shape)\n ncXl = EcVT.T.dot(zYcP)\n NCls = zYcP.sum(axis=... | [
"0.7472531",
"0.7303336",
"0.72739273",
"0.72518855",
"0.7249961",
"0.7240876",
"0.71885693",
"0.71885693",
"0.71885693",
"0.71885693",
"0.70969874",
"0.7090897",
"0.7083341",
"0.70574296",
"0.7027857",
"0.700729",
"0.70063347",
"0.699855",
"0.6964251",
"0.6934633",
"0.692569... | 0.7206497 | 6 |
Computes the forward pass for rectified linear units (ReLUs). | def wN5Y(WKvO):
yvT9 = WKvO
yvT9[yvT9 < 0] = 0
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drfk(YKHO):\n\n def XVC9(yR_P, g6LF, EYyA):\n \"\"\"\n If there is a negative gradient, change it to zero\n \"\"\"\n nWP1 = YKHO.forward_relu_outputs[-1]\n nWP1[nWP1 > 0] = 1\n e1d4 = nWP1 * ht2j.clamp(g6LF[0], min=0.0)\n del YKHO.forward_relu_outputs... | [
"0.69386315",
"0.6738482",
"0.6700439",
"0.6639096",
"0.6637197",
"0.6555062",
"0.6436974",
"0.63124865",
"0.62632155",
"0.6243523",
"0.6224539",
"0.6208889",
"0.6193527",
"0.61763686",
"0.6022533",
"0.5998642",
"0.5998347",
"0.597587",
"0.59679216",
"0.5951862",
"0.5884953",... | 0.6384566 | 7 |
Computes the backward pass for rectified linear units (ReLUs). | def PPFh(zYcP, WKvO):
_hxI = WKvO > 0
Jw7X = zYcP * _hxI
return Jw7X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPFh(YKHO, gEpz, wyyA):\n WKvO = wyyA\n WKvO = oyIN.array(WKvO, copy=True)\n WKvO[WKvO <= 0] = 0\n WKvO[WKvO > 0] = 1\n cf5c = gEpz * WKvO\n return cf5c",
"def PPFh(zYcP, wyyA):\n Jw7X, WKvO = (None, wyyA)\n Jw7X = oyIN.where(WKvO <= 0, 0, 1) * zYcP\n pass\n return Jw7X",
"def... | [
"0.7124722",
"0.7017195",
"0.7015673",
"0.6892136",
"0.68882793",
"0.68678695",
"0.6858797",
"0.6836433",
"0.6825028",
"0.68220276",
"0.6786696",
"0.6786696",
"0.67829865",
"0.6777763",
"0.67603457",
"0.67577285",
"0.67430496",
"0.67430496",
"0.67378974",
"0.6713772",
"0.6684... | 0.6825718 | 8 |
The full XML stream for the chart specified by this chart builder, as unicode text. This method must be overridden by each subclass. | def QToG(YKHO):
raise NotImplementedError('must be implemented by all subclasses') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ry3J(YKHO):\n with xDSY.StringIO() as vIwR:\n vIwR.write(GXnK.tostring(YKHO.root, encoding='unicode'))\n return vIwR.getvalue()",
"def Sa1R(YKHO):\n return _VfD.XMLInputStream_toString(YKHO)",
"def Ry3J(YKHO):\n return QGpr.tostring(YKHO.get_etree())",
"def zbJi(YKHO):\n return ... | [
"0.6885545",
"0.6277913",
"0.6193232",
"0.6142608",
"0.61369824",
"0.6129046",
"0.61222863",
"0.60559154",
"0.6035094",
"0.59926337",
"0.59828854",
"0.5953446",
"0.59503734",
"0.5929605",
"0.59173256",
"0.58949184",
"0.5893518",
"0.5893518",
"0.5879584",
"0.5803865",
"0.57939... | 0.6124511 | 6 |
Returns two lists, where the first one contains answers that would be lost due to tokenization, while the second one contains wrong answers | def tbgN(YKHO, jQ3Z, wtry):
s9Ze = jQ3Z['answer_start'].tolist()
XAGq = jQ3Z['answer_end'].tolist()
dwMt, QHFh = ([], [])
for YRbF, (Z9rn, KCHu, tTpl) in enumerate(zip(wtry, s9Ze, XAGq)):
ZHfW = ht2j.tensor(Z9rn.attention_mask, device=YKHO.device).bool() & ~ht2j.tensor(Z9rn.special_tokens_mask, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yk4i(BUJl, YBKk):\n return list(okyX(BUJl, YBKk))",
"def rRTz():\n ANfV = [[1, 2, 2, 1], ['https://soundcloud.com/', 'https://cfmriweb.ucsd.edu/', 'https://www.thesaurus.com/', 'https://ucsd.sona-systems.com/', 'https://www.linkedin.com/', 'https://facebook.com/']]\n return ANfV",
"def Rhv4(jzdc, ... | [
"0.6093905",
"0.6059985",
"0.5974665",
"0.578052",
"0.5764473",
"0.57333994",
"0.5700691",
"0.56971943",
"0.5693195",
"0.56718713",
"0.5667118",
"0.56469125",
"0.5629894",
"0.55992776",
"0.5597915",
"0.5587587",
"0.55770713",
"0.55751204",
"0.5565917",
"0.55606455",
"0.555868... | 0.5283619 | 56 |
Fetch and return index data as xarray DataSet This is a shortcut to .load().index.to_xarray() Returns | def ARze(YKHO, **B2fa):
if YKHO._AccessPoint not in YKHO.valid_access_points:
raise aiv3(' Initialize an access point (%s) first.' % ','.join(YKHO.Fetchers.keys()))
return YKHO.load().index.to_xarray(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QYuY():\n CJ2p = zuVY.DataArray([850.0, 700.0, 500.0], dims=('isobaric',), attrs={'units': 'hPa'})\n ycBG = zuVY.DataArray([[[[296.0, 295.0, 294.0], [293.0, 292.0, 291.0]], [[286.0, 285.0, 284.0], [283.0, 282.0, 281.0]], [[276.0, 275.0, 274.0], [273.0, 272.0, 271.0]]]] * rYO3.K, dims=('time', 'isobaric',... | [
"0.66301817",
"0.6526453",
"0.64050734",
"0.6305211",
"0.6266725",
"0.62328595",
"0.6203111",
"0.61584604",
"0.6153438",
"0.6139485",
"0.60812867",
"0.6065309",
"0.6064389",
"0.60103244",
"0.60103244",
"0.6007262",
"0.60051835",
"0.60036457",
"0.60001653",
"0.5986962",
"0.591... | 0.68834615 | 0 |
Parse a learning rate argument into an initial rate and an optional scheduler callback. | def wxDY(b0Ix: str):
H4yH = str(b0Ix).split('*')
RqgG = float(H4yH[0])
if len(H4yH) == 1:
return (RqgG, [])
elif len(H4yH) == 2:
return (RqgG, [nQsW(H4yH[1])])
assert False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(qIxc, K0do, qtWj):\n tspZ = qIxc.lr\n b6Gq = qIxc.lr_schedule\n if b6Gq == 'trades':\n if qtWj >= 0.75 * qIxc.epochs:\n tspZ = qIxc.lr * 0.1\n elif b6Gq == 'trades_fixed':\n if qtWj >= 0.75 * qIxc.epochs:\n tspZ = qIxc.lr * 0.1\n if qtWj >= 0.9 * qIxc... | [
"0.632414",
"0.626112",
"0.62322897",
"0.61935663",
"0.6161706",
"0.61524177",
"0.61368936",
"0.6128309",
"0.6113266",
"0.6106419",
"0.60915613",
"0.6090125",
"0.60646015",
"0.6049675",
"0.6031494",
"0.6018241",
"0.60113454",
"0.6008282",
"0.60074973",
"0.597578",
"0.59740263... | 0.77980846 | 0 |
return block diagonal matrix with entries A,B | def PtUL(YKHO, tjUW):
k0lF = YKHO
r8hN, exwG = k0lF.shape
XP5J, vexM = tjUW.shape
EcVT = oyIN.zeros([r8hN + XP5J, exwG + vexM])
EcVT[:r8hN, :exwG] = k0lF
EcVT[r8hN:, exwG:] = tjUW
return aLMY(EcVT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JUNu(VJ7c):\n assert VJ7c.ndim == 3\n GicI = VJ7c.shape[0]\n vBWh = oyIN.concatenate([oyIN.concatenate([oyIN.diag(VJ7c[:, YRbF, r845]) for r845 in range(VJ7c.shape[2])], axis=1) for YRbF in range(VJ7c.shape[1])], axis=0)\n return vBWh",
"def Cq4u(FNxs):\n Z9Mn = {}\n for YRbF, PaeO in enume... | [
"0.7059728",
"0.6913739",
"0.6728796",
"0.66922975",
"0.66883457",
"0.667499",
"0.6457386",
"0.640291",
"0.63497514",
"0.6323933",
"0.6246453",
"0.6184476",
"0.6173583",
"0.61535287",
"0.61428887",
"0.6106134",
"0.5953221",
"0.5921137",
"0.5916368",
"0.5903814",
"0.58936244",... | 0.0 | -1 |
GET/PUT for camera controller. | def VlA_(YKHO, Dfe5=None, pmON=None, BWXx=None, **B2fa):
if pmON == None:
pmON = []
if Dfe5 != None:
pmON.insert(0, Dfe5)
pmON.insert(0, 'cameracontroller')
Rci7 = '/'.join(pmON)
if BWXx != None:
csSA = YKHO.send_put(Rci7, params={'value': BWXx})
else:
csSA = YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WpIo():\n return (oGir(eK5b(yDvq), mimetype='multipart/x-mixed-replace; boundary=frame'), 200)",
"def yDvq(YKHO):\n return YKHO.__camera",
"def yDvq(YKHO):\n return YKHO._camera",
"def yDvq(YKHO):\n return YKHO._camera",
"def Tfg2(lKdC):\n yDvq = m6Eg(lKdC)\n return pz3A(yDvq.export_d... | [
"0.65088314",
"0.60280484",
"0.5967427",
"0.5967427",
"0.59517896",
"0.59313315",
"0.5858214",
"0.5843304",
"0.57947284",
"0.577467",
"0.5726902",
"0.5630387",
"0.5625143",
"0.5621106",
"0.56064785",
"0.5561165",
"0.55356747",
"0.5528753",
"0.55175257",
"0.55114865",
"0.55013... | 0.757974 | 0 |
this method returns a onehot vector of the given size, where the 1 is placed in the ind entry. | def F9zB(zNig, QyVM):
KLLm = oyIN.zeros((zNig,))
KLLm[QyVM] = 1
return KLLm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kefl(QyVM, exwG):\n he6J = oyIN.zeros(exwG)\n he6J[QyVM] = 1\n return he6J",
"def D40I(YKHO, u54L, QyVM):\n KLLm = [0 for bGrB in range(u54L)]\n if QyVM >= len(KLLm):\n KLLm[-1] = 1\n else:\n KLLm[QyVM] = 1\n return KLLm",
"def KLLm(d6pt):\n hlel = oyIN.zeros(100)\n ... | [
"0.84444565",
"0.8298798",
"0.8195772",
"0.8189615",
"0.8126685",
"0.81259286",
"0.81199",
"0.810238",
"0.7999138",
"0.7949889",
"0.79117304",
"0.7889848",
"0.7886849",
"0.77816015",
"0.7770782",
"0.77627516",
"0.7722842",
"0.7692494",
"0.76899445",
"0.7679778",
"0.7666221",
... | 0.8994864 | 0 |
from absolute positions to relative positions, centred around the middle (yolo format) | def a8Pe(zNig, FlUN):
ncXl = 1.0 / zNig[0]
GzWn = 1.0 / zNig[1]
WKvO = (FlUN[0] + FlUN[1]) / 2.0
LVAh = (FlUN[2] + FlUN[3]) / 2.0
yzQ0 = FlUN[1] - FlUN[0]
MKlR = FlUN[3] - FlUN[2]
WKvO = WKvO * ncXl
yzQ0 = yzQ0 * ncXl
LVAh = LVAh * GzWn
MKlR = MKlR * GzWn
return (WKvO, LVAh, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JSap(YKHO, JZXy):\n if YKHO.relative:\n return JZXy.center + YKHO.center\n else:\n return YKHO.center",
"def tqpl(YKHO):\n YKHO.rect.midbottom = YKHO.screen_rect.midbottom\n YKHO.x, YKHO.y = (float(YKHO.rect.x), float(YKHO.rect.y))",
"def YEZH(YKHO, WKvO, LVAh):\n YKHO.x = WKvO... | [
"0.7057521",
"0.6928795",
"0.6912088",
"0.68229353",
"0.6720442",
"0.6695829",
"0.66890335",
"0.660353",
"0.6571176",
"0.65602934",
"0.65575945",
"0.65461105",
"0.65344065",
"0.6482683",
"0.64808226",
"0.64451253",
"0.64381176",
"0.64342654",
"0.639161",
"0.6372221",
"0.63061... | 0.0 | -1 |
create one hot vector for each element in the structure | def HqHP(U6D_):
lWPh = yVNA()
E6KI = _PPv(U6D_)
sOXo = oyIN.zeros(len(lWPh))
for WdbD in E6KI:
sOXo[lWPh[WdbD]] = 1
return sOXo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel",
"def zGX0(WKvO):\n SxSJ = list(WKvO)\n for d6pt in oyIN.arange(len(SxSJ)):\n SxSJ[d6pt] = dmUM(WKvO[d6pt])[WKvO[d6pt]]\n return oyIN.array(SxSJ)",
"de... | [
"0.7645146",
"0.76057005",
"0.7551651",
"0.75490177",
"0.75124705",
"0.74896836",
"0.7467359",
"0.74551237",
"0.73987114",
"0.73829705",
"0.73699",
"0.73542374",
"0.7347406",
"0.7342356",
"0.733751",
"0.7330842",
"0.7315053",
"0.7276076",
"0.7255521",
"0.7252579",
"0.7252579"... | 0.0 | -1 |
Adds an item at the front of the list. | def byB9(YKHO, ZfUD):
Esd_ = o7DN(ZfUD)
if YKHO.head is None:
YKHO.head = Esd_
else:
Esd_.next = YKHO.head
YKHO.head = Esd_
YKHO.n += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dZVG(YKHO, ZfUD):\n YKHO.items.insert(0, ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.list.prepend(ZfUD)",
"def wbHw(YKHO, ZfUD):\n YKHO._items.insert(0, ZfUD)",
"def _jXH(YKHO, ZfUD):\n YKHO.linked_list.prepend(ZfUD)",
"def j5ff(YKHO, ZfUD):\n YKHO.front = o7DN(ZfUD, YKHO.front)",
"def ZK_O(... | [
"0.8478339",
"0.78348863",
"0.7722424",
"0.76395625",
"0.7530378",
"0.75040954",
"0.74947596",
"0.74927473",
"0.71589714",
"0.7130175",
"0.71164906",
"0.7080073",
"0.7035995",
"0.6870759",
"0.6870759",
"0.68705535",
"0.68518543",
"0.6771763",
"0.67336917",
"0.6660746",
"0.663... | 0.7720473 | 3 |
returns the value of the nth item (starting at 0) | def jI2q(YKHO, d6pt):
if d6pt == 0:
return YKHO.head.val
FZqh = YKHO.head
for bGrB in range(d6pt):
FZqh = FZqh.next
return FZqh.val | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, YRbF):\n return YKHO.get(YRbF, YRbF + 1)",
"def NMoC(YKHO, d6pt: int) -> int:\n if d6pt + 1 > YKHO.cnt:\n return -1\n jbXL = YKHO.dummy\n for YRbF in range(d6pt + 1):\n jbXL = jbXL.next\n return jbXL.val",
"def OP2O(YKHO, exwG):\n return YKHO._array[exwG]",
"def... | [
"0.7461209",
"0.7198535",
"0.71174335",
"0.7068467",
"0.6979077",
"0.6949385",
"0.6928961",
"0.68497336",
"0.67874527",
"0.6725961",
"0.66929966",
"0.6687388",
"0.66578394",
"0.66318387",
"0.66274095",
"0.6566982",
"0.6566982",
"0.6566982",
"0.6563464",
"0.6531671",
"0.652858... | 0.65629685 | 19 |
returns the value of the node at nth position from the end of the list | def reIy(YKHO, exwG):
if exwG > YKHO.n - 1:
print(f'Error; n is greater than the length of the list = {YKHO.n - 1}')
return
FZqh = YKHO.head
for bGrB in range(YKHO.n - 1 - exwG):
FZqh = FZqh.next
return FZqh.val | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FnCN(YKHO, exwG):\n u54L = 0\n if YKHO.head:\n jvSB = YKHO.head\n while jvSB:\n u54L += 1\n jvSB = jvSB.next\n UHFx = 0\n jvSB = YKHO.head\n while UHFx < u54L - exwG:\n UHFx += 1\n jvSB = jvSB.next\n return jvSB.data",
... | [
"0.74624777",
"0.7346212",
"0.7245577",
"0.7144503",
"0.7056932",
"0.6897913",
"0.6836249",
"0.68209404",
"0.68094146",
"0.67188853",
"0.6701307",
"0.66925293",
"0.66457725",
"0.6619531",
"0.66030765",
"0.65967846",
"0.6596734",
"0.6596202",
"0.65683895",
"0.6555614",
"0.6543... | 0.7774788 | 0 |
Display the single Butter front page and allow visitors to start a Buy a=or Sell transaction | def d6pt(QePW):
if QePW.method == 'POST':
L03z = Wwq8(QePW.POST)
if L03z.is_valid():
if QePW.POST['tx_type'] == 'BUY':
if not QePW.POST['address']:
print('no address')
yEHD.add_message(QePW, yEHD.ERROR, 'You have provided an invalid... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ODy1(YKHO, nF2B):\n nF2B = 4500\n YKHO.trade(nF2B)",
"def IU3N():\n if QePW.method == 'POST':\n geh0 = IYUG(NCls, cuiw['user_id'], QePW.form, 'BUY')\n if geh0:\n if geh0['type'] is 'error':\n Dwep(geh0['text'], 'error')\n else:\n Dwep... | [
"0.64694035",
"0.64094466",
"0.6284296",
"0.60376376",
"0.60059065",
"0.5976704",
"0.59608257",
"0.5959968",
"0.59041345",
"0.59013575",
"0.58992827",
"0.58914644",
"0.587166",
"0.58528227",
"0.5842987",
"0.58223736",
"0.58221805",
"0.5811866",
"0.5807332",
"0.58057636",
"0.5... | 0.63998646 | 2 |
A list of all headlines in html_root_node. | def InVX(xNQx):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fW1P(YKHO):\n elTD = list(YKHO.keyword_headlines().values())\n zmuW = set()\n for l71z in elTD:\n for TN8g in l71z:\n zmuW.add(TN8g.headlineid.content)\n return list(zmuW)",
"def _nL6(YKHO, YSA3=None):\n if YSA3:\n return YKHO.get_headlines_with_keyword(YSA3)\n else... | [
"0.67986226",
"0.65997756",
"0.65986437",
"0.6581237",
"0.6533369",
"0.64754415",
"0.6419111",
"0.62299573",
"0.62149304",
"0.6154909",
"0.6016565",
"0.59933895",
"0.5969729",
"0.5963461",
"0.59520066",
"0.59432167",
"0.5813856",
"0.57545596",
"0.5723752",
"0.56269383",
"0.56... | 0.90039504 | 0 |
Renders the home page. | def Ag2B(QePW):
assert isinstance(QePW, eu5F)
if QePW.method == 'POST':
jIe7.remove_from_cart(QePW)
return _1tc(QePW, 'cartapp/cart_detail.html', {'title': 'Cart Page', 'year': qcWV.now().year})
else:
return _1tc(QePW, 'cartapp/cart_detail.html', {'title': 'Cart Page', 'year': qcWV.n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Tokenize given text into paragraphs, sentences and words. Endpoint uses Newline method to tokenize paragraphs and regexes and rules to tokenize sentences and words | async def tokenize_text_handler(QePW, *qIxc):
return x1CH(QePW['text']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wr3U(l5Ny):\n yAmx = W66f(l5Ny)\n return yAmx.tokens()",
"def x1CH(C13M, K9NE):\n return [eOtH.text for eOtH in K9NE(C13M)]",
"def wr3U(l5Ny):\n return l5Ny.split(' ')",
"def wr3U(YKHO, l5Ny):\n l5Ny = ZbWC.sub('[^a-zA-Z0-9]', ' ', l5Ny.lower())\n s2mk = dFss(l5Ny)\n s2mk = [a1PO for... | [
"0.77011746",
"0.7228713",
"0.7202503",
"0.7153594",
"0.7108917",
"0.7074527",
"0.70556897",
"0.7049619",
"0.70398355",
"0.7023222",
"0.70075214",
"0.7003905",
"0.69966006",
"0.6993002",
"0.6990796",
"0.698593",
"0.69777656",
"0.69753927",
"0.697454",
"0.69680476",
"0.6942435... | 0.67757994 | 36 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
if len(GIN8) == 0:
return True
or8S = ord(GIN8[0]) - ord('a')
if not YKHO.children[or8S]:
return False
if len(GIN8) == 1:
return YKHO.children[or8S].tail
return YKHO.children[or8S].search(GIN8[1:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.838632",
"0.8150416",
"0.8123471",
"0.7856802",
"0.7830664",
"0.77935004",
"0.7792806",
"0.77642965",
"0.7753436",
"0.7747724",
"0.7711298",
"0.76816714",
"0.7677101",
"0.7664614",
"0.76506114",
"0.76338875",
"0.7628353",
"0.76114196",
"0.7577657",
"0.75695884",
"0.756079"... | 0.7139436 | 53 |
Get the connected signs | def jryd(YKHO) -> cuzp[str, eAmD]:
return YKHO._signs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Blhw(YKHO):\n if not YKHO.is_connected():\n raise G4S0.ArgumentError('Cannot compute the connectivity of {}\\n'.format(YKHO) + 'Segment is not connected to a GFA instance')\n return YKHO._connectivity_symbols(len(YKHO.dovetails_L), len(YKHO.dovetails_R))",
"def iXlf(YKHO):\n return YKHO.adjac... | [
"0.5988669",
"0.59284824",
"0.57749724",
"0.56526196",
"0.56343955",
"0.56310093",
"0.55913466",
"0.55886096",
"0.55867475",
"0.55490667",
"0.55300474",
"0.55252635",
"0.5496374",
"0.5487526",
"0.5479785",
"0.54754657",
"0.5448505",
"0.5398998",
"0.5371763",
"0.5349526",
"0.5... | 0.60209274 | 0 |
Set a list of modules to a particular logging level. | def Bnu8(UnG6, KHix):
if not UnG6:
return
WsrH = getattr(G9jH, KHix.upper(), KHix)
if not isinstance(WsrH, int):
try:
WsrH = int(WsrH)
except ValueError:
G9jH.warning('Could not parse modlevel {}'.format(KHix))
WsrH = G9jH.DEBUG
for ag0A in UnG... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wgh3(ABDL: int) -> None:\n for bo34 in Ry7x:\n bo34.setLevel(ABDL)",
"def aQ22(Ry7x=['vaex'], ABDL=G9jH.DEBUG):\n for bo34 in Ry7x:\n G9jH.getLogger(bo34).setLevel(ABDL)",
"def H6Rf(ZWCE, ABDL=G9jH.CRITICAL):\n for ZfUD in ZWCE:\n G9jH.getLogger(ZfUD).setLevel(ABDL)",
"def f... | [
"0.754282",
"0.7299224",
"0.72906643",
"0.709733",
"0.69048655",
"0.6828029",
"0.67473036",
"0.671748",
"0.6643824",
"0.6637931",
"0.6613942",
"0.648382",
"0.64391565",
"0.64324754",
"0.6421063",
"0.6417684",
"0.6400293",
"0.6390389",
"0.6388985",
"0.6385155",
"0.6378326",
... | 0.71237177 | 3 |
Test correct error is raised when a nonevendimensional array is passed | def A1VN(YKHO, MCGS, tpio):
zNig = (5,) * tpio
k0lF = oyIN.random.rand(*zNig)
with trZe.raises(ValueError, match='The input array is not even-dimensional'):
MCGS(k0lF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uPMs():\n with trZe.raises(ValueError, match='Please pass in a valid array'):\n neIM('')",
"def pRpB():\n lt9K = [list(range(8)), str(12345678)]\n for WKvO in lt9K:\n with cR0t(TypeError):\n b7La(WKvO)",
"def IvCS(YKHO):\n YKHO.assertRaises(TypeError, qD5e, 5, 'reject i... | [
"0.7476376",
"0.7124102",
"0.71235746",
"0.7106779",
"0.7014832",
"0.6992509",
"0.6902733",
"0.6823309",
"0.6800893",
"0.6757861",
"0.66611123",
"0.6646919",
"0.66283774",
"0.66185856",
"0.6580735",
"0.6577013",
"0.6551648",
"0.65404934",
"0.653902",
"0.6509724",
"0.64953256"... | 0.629896 | 44 |
Constructs a generator based on a ResNet50 model. | def MfnI(**B2fa):
return wBPa(iJC5.EresNetBottleneck, [3, 4, 6, 3], **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OWrF(YKHO, YgP2, KUnM=32, mx59=3, xfCb='tanh', QxIo=False, SkYi=None, mWFP='gan_g_'):\n if SkYi:\n '\\n Load pretreined model\\n '\n C3ST = YKHO.utils.build_pretrained_model(SkYi)\n if QxIo:\n C3ST.summary()\n return C3ST\n else:\n DbxN ... | [
"0.68357396",
"0.6660795",
"0.66268563",
"0.6449131",
"0.64019734",
"0.6350461",
"0.63176906",
"0.63161147",
"0.62941504",
"0.62886864",
"0.6261149",
"0.6252632",
"0.6252632",
"0.6252632",
"0.6252632",
"0.6242074",
"0.6233013",
"0.62021315",
"0.6199121",
"0.61881065",
"0.6172... | 0.5578411 | 94 |
Constructs a generator based on a ResNet152 model. | def t_pe(**B2fa):
return wBPa(iJC5.EresNetBottleneck, [3, 8, 36, 3], **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e8xY(**B2fa):\n C3ST = eWLN(MF6R, [3, 8, 36, 3], **B2fa)\n return C3ST",
"def Gdbk(YKHO):\n YKHO.model = or7t(weights='imagenet')",
"def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm('resnet152', MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152'])... | [
"0.69971883",
"0.68275565",
"0.65654314",
"0.65592206",
"0.6533679",
"0.64743906",
"0.64743906",
"0.64743906",
"0.64743906",
"0.6450941",
"0.6419934",
"0.6335441",
"0.6335441",
"0.6238511",
"0.6228068",
"0.6189244",
"0.6005388",
"0.59869194",
"0.59712064",
"0.5920513",
"0.584... | 0.608068 | 16 |
The list of required import lines (as strings with python code) | def IhaN(YKHO) -> x1iM[str]:
Aofo = []
j3dD = oRi_(list)
for mWFP in sorted(YKHO.required_names):
if mWFP not in YKHO.module_for:
continue
r8hN = YKHO.module_for[mWFP]
if r8hN is not None:
if mWFP in YKHO.reverse_alias:
mWFP = '{} as {}'.format... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VtR6(YKHO) -> str:\n nwHI = [\"_ = require('lodash');\", \"stream = require('stream');\", f\"const hookRegister = require('./{gCuF.ARTILLERY_HOOK_FILE}').hookRegister;\", f\"hook = require('./{gCuF.ARTILLERY_LIB_FOLDER}/hooks').hook;\", f\"utils = require('./{gCuF.ARTILLERY_LIB_FOLDER}/providers');\", f\"se... | [
"0.7392999",
"0.7008633",
"0.7006744",
"0.6577546",
"0.65343875",
"0.6469632",
"0.63858473",
"0.6340286",
"0.6318618",
"0.62747866",
"0.62601453",
"0.6256329",
"0.624323",
"0.6182229",
"0.61704916",
"0.6132508",
"0.61241585",
"0.6098096",
"0.60951346",
"0.6083969",
"0.6073907... | 0.74202406 | 0 |
Return initializer for a variable. Return None if we've generated one already or if the variable is internal. | def iaJ8(YKHO, d1jk: str, M3M4: Expression, ICn2: Optional[Type]=None) -> h8nf[str]:
if d1jk in YKHO._vars[-1]:
return None
if YKHO.is_private_name(d1jk) or YKHO.is_not_in_all(d1jk):
return None
YKHO._vars[-1].append(d1jk)
if ICn2 is not None:
QNO6 = YKHO.print_annotation(ICn2)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n return YKHO._variable.initializer",
"def Es0b(MuED=None, ROpF=None, yDqo=None, mWFP=None, **B2fa):\n return FLAV(mWFP, shape=ROpF, dtype=yDqo, initializer=MuED, **B2fa)",
"def nnuK(mWFP, ROpF, yDqo):\n VUF1 = jj4W._get_default_variable_store()\n MuED = VUF1._get_default_initialize... | [
"0.7012431",
"0.640539",
"0.62067115",
"0.6109931",
"0.6077824",
"0.60201895",
"0.5894355",
"0.5758639",
"0.5741372",
"0.5715161",
"0.5671216",
"0.5660715",
"0.55991495",
"0.5595322",
"0.5546396",
"0.5451056",
"0.54067546",
"0.54067546",
"0.5384396",
"0.5382944",
"0.53653044"... | 0.5486726 | 15 |
Find checkpoint files based on its max steps. is_outdir indicates whether find from outdir or modeldir. note that outdir generated from train and eval copy them to modeldir. | def IRPi(pmON, mnRQ):
paSp = [int(eHNT[len(lnij):-5]) for eHNT in Hy7s.listdir(pmON) if eHNT[:len(lnij)] == lnij and eHNT[-5:] == '.meta']
if len(paSp) == 0:
if mnRQ:
raise FileNotFoundError('No Available ckpt.')
else:
return (None, -1)
zMOd = max(paSp)
if len(paS... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kmfe(YKHO):\n return Hy7s.path.join(YKHO.checkpoint_dir, YKHO.model_dir)",
"def hW0f(YKHO):\n GRVp = next(Hy7s.walk(YKHO.model_dir))[1]\n H5ew = YKHO.config.NAME.lower()\n GRVp = filter(lambda eHNT: eHNT.startswith(H5ew), GRVp)\n GRVp = sorted(GRVp)\n if not GRVp:\n return (None, Non... | [
"0.6018463",
"0.5785135",
"0.5748152",
"0.57382095",
"0.5651902",
"0.55859107",
"0.5512155",
"0.5418045",
"0.5396361",
"0.5361415",
"0.5323277",
"0.53144616",
"0.53109574",
"0.5308277",
"0.5305889",
"0.52755123",
"0.52709544",
"0.51943886",
"0.5179579",
"0.5176981",
"0.512353... | 0.61166877 | 0 |
Test all expected versioned base URLs responds with 200 This depends on the routers for each kind of server. | def wmnX(x0hE, KYLs, N5z6: str):
try:
import simplejson as qQXR
except ImportError:
import qQXR
from optimade.server.routers.utils import BASE_URL_PREFIXES
Onn9 = {'regular': x0hE, 'index': KYLs}
qV0A = {'regular': ('/info', '/links', '/references', '/structures'), 'index': ('/info',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def efWz(YKHO):\n x0hE = i9zE()\n geh0 = x0hE.get(gxEw('home'))\n YKHO.assertEqual(200, geh0.status_code)\n geh0 = x0hE.get(gxEw('browse_produce'))\n YKHO.assertEqual(200, geh0.status_code)\n geh0 = x0hE.get(gxEw('browse_locations'))\n YKHO.assertEqual(200, geh0.status_code)\n geh0 = x0hE.g... | [
"0.6897015",
"0.68129045",
"0.677679",
"0.6763513",
"0.6698699",
"0.6693176",
"0.65127456",
"0.6466742",
"0.6453278",
"0.6448831",
"0.6442751",
"0.63902104",
"0.63858867",
"0.63354486",
"0.6322557",
"0.6315488",
"0.63115126",
"0.63115126",
"0.63044256",
"0.6285797",
"0.627788... | 0.74736565 | 0 |
Ensures that flavorid duplicates raise InstanceTypeCreateFailed | def XFxk(YKHO):
kaCx = 'flavor1'
VuRd.create('name one', 256, 1, 120, 200, kaCx)
YKHO.assertRaises(AJ5d.InstanceTypeIdExists, VuRd.create, 'name two', 256, 1, 120, 200, kaCx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PUOX(YKHO):\n mWFP = 'some_name'\n VuRd.create(mWFP, 256, 1, 120, 200, 'flavor1')\n YKHO.assertRaises(AJ5d.InstanceTypeExists, VuRd.create, mWFP, 256, 1, 120, 200, 'flavor2')",
"def pd5B(YKHO):\n h2RD = kzYZ(name=YKHO.flavor_name, ram=1, disk=1, vcpus=1)\n YKHO.flavor_creator = VQI1(YKHO.os_cr... | [
"0.6808342",
"0.67799765",
"0.6590003",
"0.6453586",
"0.64351535",
"0.6365518",
"0.6303799",
"0.62312794",
"0.60959566",
"0.5960529",
"0.58526385",
"0.5842749",
"0.57575655",
"0.57458967",
"0.5740525",
"0.57401335",
"0.5717716",
"0.5713491",
"0.56291854",
"0.5617452",
"0.5548... | 0.8336245 | 0 |
Obtain the current execution status. | def QtQ8(YKHO):
return YKHO.controller.getStatus() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO) -> qe4Y.Output['outputs.JobStatus']:\n return qe4Y.get(YKHO, 'status')",
"def Jxmr(YKHO):\n return YKHO.__status",
"def Opi4(Emd4):\n from sauna.plugins.base import Plugin\n from sauna import check_results_lock, check_results\n\n def ZgA7(roY4, hm_4):\n if hm_4.status > Plu... | [
"0.78136736",
"0.7751159",
"0.7657813",
"0.76288384",
"0.7592241",
"0.7535528",
"0.7535528",
"0.75348437",
"0.75277287",
"0.7518563",
"0.75127155",
"0.74892646",
"0.74881625",
"0.7473243",
"0.7473243",
"0.74728304",
"0.7460494",
"0.7460494",
"0.7460494",
"0.7460494",
"0.74604... | 0.7142546 | 88 |
returns the expected future reward for taking each action | def KVH6(YKHO, QTBn, l5Ny, KeL5=True):
assert not ht2j.isnan(QTBn).any(), f'NaN in input state {QTBn}'
assert not ht2j.isnan(l5Ny).any(), f'NaN in input embedding {l5Ny}'
OygL = vuvg.relu(YKHO.l1_state(QTBn))
lA_r = vuvg.relu(YKHO.l1_text(l5Ny))
MKlR = OygL + lA_r
Mkmy = YKHO.l2(MKlR)
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xyVK(YKHO, z_Ho, XeOP, uJ1p, laqX):\n pass",
"def Jc_J(YKHO):\n if YKHO.status():\n return YKHO.current_step / YKHO.ep_length\n else:\n return 0",
"def YPaw(YKHO, XeOP):\n Ylbp = YKHO.reward_table.get(YKHO.curr_state, XeOP)\n YKHO.curr_state = Ylbp['result']\n return Ylbp",
... | [
"0.735721",
"0.7279181",
"0.71540534",
"0.7067911",
"0.7016758",
"0.69453704",
"0.6944374",
"0.6939781",
"0.6938727",
"0.69059646",
"0.6894488",
"0.6880816",
"0.687064",
"0.6843841",
"0.68362904",
"0.68348783",
"0.6828078",
"0.6823985",
"0.68140066",
"0.68140066",
"0.68140066... | 0.0 | -1 |
extracts file name with and without extension from the full file path | def PJbf(YKHO, eZ_W):
YKHO.file_name_with_ext, YKHO.file_name = PJbf(eZ_W) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MjJ9(pmON: str) -> str:\n return Hy7s.path.basename(pmON)",
"def PJbf(qaEx):\n gIsw = qaEx.split('/')[-1]\n return gIsw.split('.')[0]",
"def g_2H(pmON: str) -> str:\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0]",
"def Ooqe(pmON):\n return pmON.split('\\\\').pop().split('/').pop(... | [
"0.8303241",
"0.82110685",
"0.8128588",
"0.80927277",
"0.7958194",
"0.7909453",
"0.79039913",
"0.7895643",
"0.7865542",
"0.784489",
"0.7813938",
"0.77781713",
"0.77732307",
"0.77731204",
"0.7605138",
"0.7603767",
"0.75907135",
"0.7587515",
"0.7577802",
"0.7551133",
"0.7540287... | 0.7103106 | 73 |
Returns True if var should be enqueued under the allreduceddomains condition, otherwise False | def ixDU(lhin, SRYB):
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Ivw(lhin, SRYB):\n if len(lhin.get_domain(SRYB)) == 1:\n return True\n return False",
"def _Ivw(lhin, SRYB):\n return len(lhin.get_domain(SRYB)) == 1",
"def A88o(YKHO, zEgx, PtXs, sEAN, JnAt, QyVM=0, HOet=[]):\n if QyVM == len(JnAt):\n return PtXs.holds(sEAN)\n else:\n ... | [
"0.6265647",
"0.6243808",
"0.5521765",
"0.5475188",
"0.54499143",
"0.5381839",
"0.5379803",
"0.5367007",
"0.53247434",
"0.5320797",
"0.53065324",
"0.53065324",
"0.5259333",
"0.52381426",
"0.5214658",
"0.5190644",
"0.5171438",
"0.5169606",
"0.5158193",
"0.5148482",
"0.51421607... | 0.6505326 | 1 |
Returns True if var should be enqueued under the singletondomains condition, otherwise False | def _Ivw(lhin, SRYB):
if len(lhin.get_domain(SRYB)) == 1:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Ivw(lhin, SRYB):\n return len(lhin.get_domain(SRYB)) == 1",
"def Dwfu(YKHO):\n return YKHO.has_label(Ir2c)",
"def ixDU(lhin, SRYB):\n return True",
"def ixDU(lhin, SRYB):\n return True",
"def gDN7(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'allow_bare_domains')",
"def gD... | [
"0.7515692",
"0.6359609",
"0.6248687",
"0.6248687",
"0.6022763",
"0.6022763",
"0.6010284",
"0.58347994",
"0.5811564",
"0.5811564",
"0.5689526",
"0.55664146",
"0.55624366",
"0.5551198",
"0.55263907",
"0.55263907",
"0.5476592",
"0.5419524",
"0.54008955",
"0.5396627",
"0.5390506... | 0.7757652 | 0 |