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 |
|---|---|---|---|---|---|---|
Creats a more complete list of fields from the schema. | def Kh9A(nPrm):
v0yu = ZCCt(_Asa)
v0yu['GIS - Limit/Precision'] = v0yu['character_maximum_length'].fillna(v0yu['numeric_precision']).fillna(v0yu['datetime_precision'])
heCv = v0yu[~v0yu['table_schema'].str.contains('jde')]
heCv = heCv[['table_name', 'column_name', 'data_type', 'GIS - Limit/Precision']]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def soUv(V_D6):\n MBW2 = []\n for YRbF, J87D in enumerate(V_D6):\n if not 'name' in J87D and (not 'id' in J87D):\n raise Y_WC('Field #%d has no name' % YRbF)\n mWFP = J87D.get('name')\n if not mWFP:\n mWFP = J87D['id']\n kTwo = J87D.get('type', 'unknown')\n ... | [
"0.7443",
"0.71250397",
"0.7088596",
"0.6928502",
"0.6896992",
"0.68953925",
"0.67752117",
"0.6687737",
"0.6666899",
"0.6647236",
"0.6641526",
"0.6615943",
"0.6606786",
"0.65884167",
"0.6584329",
"0.65711546",
"0.65091586",
"0.64615583",
"0.6455865",
"0.6451769",
"0.64513093"... | 0.0 | -1 |
get list od DataPoint for the stream name | def BUFY(YKHO, kgZu, uJjO, CjKC):
wY6U = []
nYSF = YKHO.CC.get_stream_id(uJjO, kgZu)
for MLMj in nYSF:
UL3h = YKHO.CC.get_stream(MLMj['identifier'], day=CjKC, user_id=uJjO, data_type=uy3w.COMPLETE)
if UL3h is not None and len(UL3h.data) > 0:
wY6U.extend(UL3h.data)
wY6U.sort(k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Orn0(YKHO):\n if YKHO._ds_list is None:\n YKHO._ds_list = YKHO._get_datastreams()\n return YKHO._ds_list",
"def LTIa(YKHO, gCuF, Oac7, JKLN, xDcj=None):\n return []",
"def ZlUH(YKHO, Ii1o):\n EW3N = '{}{}/datastreams?format=xml'.format(YKHO.rest_url, Ii1o)\n Aofo = G4JS.get(EW3N)\n ... | [
"0.6167856",
"0.5864184",
"0.58639914",
"0.58344936",
"0.58011204",
"0.5764734",
"0.5763756",
"0.5642826",
"0.5545674",
"0.55145264",
"0.5482962",
"0.54501414",
"0.5437392",
"0.5437392",
"0.54270333",
"0.5424158",
"0.54173815",
"0.54010296",
"0.53923136",
"0.5384244",
"0.5381... | 0.62480724 | 0 |
Takes a package and imports all modules underneath it | def ANUD(B5hb: ModuleType) -> None:
Al0C: h8nf[x1iM[str]] = None
Al0C = B5hb.__path__
_mgc = B5hb.__name__
for QxUn, mWFP, OZeO in M7QU.iter_modules(Al0C):
LCet = f'{_mgc}.{mWFP}'
if not Kc5l and LCet.startswith('onnx.backend.test.case.node.ai_onnx_ml'):
continue
yR_P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oTN3(B5hb='.'):\n VlDb = __import__(B5hb, fromlist=[])\n return VlDb",
"def xW_t(mWFP, B5hb):\n if mWFP == '__main__' and B5hb is None:\n nUeQ = GkAb(xAKo).expanduser().resolve()\n _AKB, tlxW = (nUeQ.parent, nUeQ.parents[1])\n HwRy.path.append(str(tlxW))\n try:\n ... | [
"0.7270004",
"0.7233973",
"0.7166512",
"0.7029677",
"0.6938343",
"0.69136983",
"0.6751753",
"0.66893804",
"0.66535556",
"0.66419655",
"0.66311634",
"0.66251355",
"0.6624978",
"0.66121596",
"0.65824234",
"0.65824234",
"0.65824234",
"0.6535446",
"0.6535446",
"0.6535446",
"0.653... | 0.7317583 | 0 |
Rotates y on xy plane counterclockwise through a specified angle with respect to the x axis about the origin of a 2D cartesian coordinate system. | def OhBR(kidU, me_t, a1PO):
return kidU * YUNn(a1PO) + me_t * YhSR(a1PO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a60O(YKHO, YylR):\n WKvO = YKHO._pos.get_x() * dPP2(YylR) + YKHO._pos.get_z() * x1Rg(YylR)\n LVAh = YKHO._pos.get_y()\n epBp = -YKHO._pos.get_x() * x1Rg(YylR) + YKHO._pos.get_z() * dPP2(YylR)\n YKHO._pos.set_x(WKvO)\n YKHO._pos.set_y(LVAh)\n YKHO._pos.set_z(epBp)",
"def O2D2(YylR):\n KCH... | [
"0.74994534",
"0.7403746",
"0.7343707",
"0.7154031",
"0.71253747",
"0.7088098",
"0.7087055",
"0.70563215",
"0.7037843",
"0.696651",
"0.6945154",
"0.6917861",
"0.6910997",
"0.6903669",
"0.6892549",
"0.6880427",
"0.6870629",
"0.6836741",
"0.6804319",
"0.6793684",
"0.6792434",
... | 0.0 | -1 |
Make sure invalid parens is thrown | def gDLj(YKHO):
with YKHO.assertRaises(SyntaxWarning):
hzm0.find_matching_parenthesis(0, '( 2 + 5') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyg0():\n assert Dp5K('()())') == -1",
"def kt9s():\n assert IyPk('([)]') is False",
"def IfNt():\n assert IyPk('(](') is False",
"def AvV5():\n assert Dp5K('((()()()))') == 0",
"def DYDa():\n assert Dp5K('(()()') == 1",
"def HT9M(YKHO):\n lsX7 = '1 + 3 * 5 + 7'\n YKHO.assertNotE... | [
"0.7446726",
"0.72235084",
"0.7210933",
"0.7147659",
"0.7105294",
"0.70526695",
"0.70106214",
"0.6968366",
"0.67130286",
"0.67072314",
"0.6675179",
"0.6666665",
"0.66628504",
"0.6650581",
"0.66359854",
"0.6631606",
"0.6629265",
"0.6577423",
"0.6562911",
"0.64677703",
"0.64673... | 0.74777204 | 0 |
Name is generated by randomly picking a starting type (vowel or consonant) and is then composed of alternating types of letters (vowel, consonant, consonant pair, etc.). Certain letters are filtered to increase chances of readability. | def CZ0_(exwG, Oa1e):
if exwG > 2:
FBQQ = tuKI.choice([nykK, CsyU, bzkH])
else:
FBQQ = tuKI.choice([nykK, CsyU])
BTmL = ['', '']
while len(list(''.join(BTmL))) < exwG:
if BTmL[-1] == 'y':
sZqf = tuKI.choice(list(filter(lambda WKvO: WKvO != 'y', FBQQ)))
if BTmL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gje8(qc_H=False, vz0P=False):\n mWFP = ''\n lzi6 = 'aeiouy'\n lkcV = 'bcdfghjklmnpqrstvwxz'\n iw1d = hC5R(Hy7s.urandom(16), t=6, c=2, m=0)\n for YRbF in range(iw1d):\n rgWI = hC5R(Hy7s.urandom(16), t=6, c=1, m=0)\n Y20O = hC5R(Hy7s.urandom(16), t=20, c=1, m=0)\n if (rgWI + Y... | [
"0.74669355",
"0.7127162",
"0.6794653",
"0.66992843",
"0.66661704",
"0.66561216",
"0.66506684",
"0.6584646",
"0.65801716",
"0.6560584",
"0.65231216",
"0.6502247",
"0.6453846",
"0.6421834",
"0.635112",
"0.6291337",
"0.6279719",
"0.62493926",
"0.6247287",
"0.6229019",
"0.622298... | 0.7418869 | 1 |
Return the absolute path to the asset directory. 1. Check if the assets environment variable is set; if yes > take this dir 2.1 Check the path where the config is located for an assets directory 2.2 Check the current working directory for an assets directory | def TRFE(YKHO) -> GkAb:
Ebd9 = []
if xsPP in Hy7s.environ:
Ebd9.append(Hy7s.environ[xsPP])
else:
if YKHO.base_path:
Ebd9.append(Hy7s.path.join(YKHO.base_path, 'assets'))
Ebd9.append(Hy7s.path.join(Hy7s.getcwd(), 'assets'))
Ebd9 = [Hy7s.path.abspath(FWWz) for FWWz in E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B1tp(YKHO):\n return oAb3.Path(HwRy.modules[YKHO.__module__].__file__).absolute().parent / 'assets'",
"def Cib7(t_yv: str) -> str:\n if P4t4.development:\n XSj5 = Hy7s.path.abspath(Cz85)\n else:\n XSj5 = HwRy._MEIPASS\n return Hy7s.path.join(XSj5, t_yv)",
"def mrPH(YKHO) -> str:\n... | [
"0.769683",
"0.75095457",
"0.7326008",
"0.7192794",
"0.69889766",
"0.6972626",
"0.6969973",
"0.6695633",
"0.6633594",
"0.65130514",
"0.6415725",
"0.63646996",
"0.63457036",
"0.6300966",
"0.62186813",
"0.6194925",
"0.6194054",
"0.6185819",
"0.6184247",
"0.61786914",
"0.6153798... | 0.7846861 | 0 |
Return the absolute path to the template directory. 1. Check if the template directory environment variable is set; if yes > take it 2.1 Check if the assets directory does contain a templates directory 2.2 Check if the path where the config is located does contain a templates directory 2.3 Check if the current working ... | def eZd9(YKHO) -> GkAb:
Ebd9 = []
if mEV5 in Hy7s.environ:
Ebd9.append(Hy7s.environ[mEV5])
else:
Ebd9.append(Hy7s.path.join(str(YKHO.assets_dir()), 'templates'))
if YKHO.base_path:
Ebd9.append(Hy7s.path.join(YKHO.base_path, 'templates'))
Ebd9.append(Hy7s.path.join... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zrTO():\n return Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'template')",
"def eZd9(YKHO):\n return YKHO._build_path('templates')",
"def IE2W(pmON):\n return Hy7s.path.join(pmON, 'templates')",
"def Ejpk():\n import os\n return os.path.join(os.path.dirname(xAKo), 'steering_... | [
"0.7790536",
"0.747267",
"0.7371522",
"0.7354658",
"0.7337283",
"0.73128605",
"0.7311327",
"0.72582656",
"0.7222765",
"0.7216307",
"0.71542877",
"0.70972025",
"0.7049417",
"0.704118",
"0.7025347",
"0.70003086",
"0.6998985",
"0.69621336",
"0.6934257",
"0.6890448",
"0.6860696",... | 0.76993406 | 1 |
Return whether dst node is reachable from src. | def Uo90(YKHO, zZcM, zr3f) -> bool:
return zr3f in jHsn.descendants(YKHO, zZcM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ebnO(YKHO):\n return YKHO._graph.has_edge(YKHO.src_id, YKHO.dst_id)",
"def xacG(zZcM, zr3f):\n zZcM = Hy7s.path.abspath(zZcM)\n zr3f = Hy7s.path.abspath(zr3f)\n chX5 = Hy7s.path.normcase(zZcM).lower()\n CgBO = Hy7s.path.normcase(zr3f).lower()\n if not chX5.endswith(Hy7s.path.sep):\n ... | [
"0.6907488",
"0.65055513",
"0.64363265",
"0.64350677",
"0.6355582",
"0.63113534",
"0.6303585",
"0.62016386",
"0.62002534",
"0.6189581",
"0.6169966",
"0.6162052",
"0.6158649",
"0.6083756",
"0.606989",
"0.60587484",
"0.60524756",
"0.60465854",
"0.59995204",
"0.5992017",
"0.5982... | 0.8454532 | 0 |
Return an instance of URLSafeSerializer. | def a9qP():
global serializer
ZMzz = ZMzz or TonD(secret_key=wk5E.secret_key, signer_kwargs={'key_derivation': 'hmac'})
return ZMzz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZMzz(YKHO, **B2fa):\n if not YKHO._serializer:\n YKHO._serializer = YKHO.get_serializer()(**B2fa)\n return YKHO._serializer",
"def ZMzz(Emd4):\n return qQXR",
"def oXAR(YEnM):\n return qQXR.dumps(YEnM)",
"def a9qP(YKHO, **B2fa):\n YEnM = YKHO.get_object(**B2fa)\n ZMzz = YKHO.seri... | [
"0.6288447",
"0.6057164",
"0.604943",
"0.5984691",
"0.5974887",
"0.5957893",
"0.5915615",
"0.5906058",
"0.5906058",
"0.586582",
"0.568564",
"0.5616727",
"0.5600396",
"0.5578373",
"0.5553119",
"0.55150056",
"0.55075395",
"0.54843336",
"0.5473312",
"0.5452794",
"0.5441464",
"... | 0.6888527 | 0 |
Return a dict of the category's information. | def Napc(YKHO):
return {'id': YKHO.id, 'name': YKHO.name, 'description': YKHO.description} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XYgW(YKHO):\n QePW = 'SELECT * FROM categories'\n JG0v.cursor.execute(QePW)\n WBmJ = JG0v.cursor.fetchall()\n for list in WBmJ:\n YKHO.categories_dict[list[0]] = list[1]\n return YKHO.categories_dict",
"def RqmY(ACia, PAnk=False):\n Ylbp = {}\n try:\n if isinstance(ACia, QM... | [
"0.7664951",
"0.75609124",
"0.75473326",
"0.74299246",
"0.7380595",
"0.72221565",
"0.7200406",
"0.7179174",
"0.7171989",
"0.715961",
"0.71419007",
"0.71419007",
"0.71419007",
"0.7140453",
"0.70585346",
"0.7056552",
"0.70021",
"0.69921327",
"0.69366884",
"0.69344497",
"0.69172... | 0.0 | -1 |
Return the instrument's image URL or a fallback placeholder. | def kskO(YKHO):
return YKHO.image or '/static/logo.svg' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qwnb(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'image_url')",
"def qwnb(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'image_url')",
"def kskO(YKHO):\n if YKHO.image:\n return XN37.getMediaUrl(YKHO.image.url)\n else:\n return XN37.getBlankImage()",
"def qwnb(YKHO):\... | [
"0.75629777",
"0.7250333",
"0.72237384",
"0.7188559",
"0.717895",
"0.7152714",
"0.7145285",
"0.712361",
"0.712361",
"0.7094975",
"0.7093775",
"0.70313674",
"0.7005856",
"0.70040464",
"0.70040464",
"0.6996398",
"0.6906",
"0.6865322",
"0.68550766",
"0.6818727",
"0.6805907",
"... | 0.71404725 | 7 |
Return bin surface area in km, assuming that the bin is a spherical rectangle on a sphere of radius r_km kilometers PARAMETERS | def MklU(YKHO, yHnP, DzcV=6371.2 + 110.0):
M5jx = (90.0 - yHnP[0]) * oyIN.pi / 180.0
snrU = (90.0 - yHnP[1]) * oyIN.pi / 180.0
p7ih = bYI9.angle_difference(yHnP[3], yHnP[2], YKHO.azi_units)
fgiF = oyIN.abs(p7ih) * YKHO.azi_fac
return oyIN.abs(DzcV ** 2 * fgiF * (oyIN.cos(snrU) - oyIN.cos(M5jx))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sFSh(r1VO):\n return 4 * mM0K * r1VO * r1VO",
"def sFSh(r1VO):\n return 4 * mM0K * r1VO ** 2",
"def lG_y(TJc2, azvb, cSr0, cU_F):\n f0tD = 180 / oyIN.pi * (azvb - TJc2) * (cU_F - cSr0)\n return f0tD",
"def g6ex(Mkmy):\n return 4 / 3 * epAf.pi * Mkmy ** 3",
"def qfUh(r1VO):\n return po... | [
"0.7142316",
"0.70347774",
"0.64720684",
"0.6378409",
"0.63431954",
"0.6285016",
"0.62562764",
"0.6224156",
"0.6216163",
"0.6199179",
"0.61968374",
"0.6182163",
"0.6131632",
"0.61153364",
"0.61153364",
"0.61153364",
"0.611107",
"0.6099539",
"0.6091262",
"0.6080784",
"0.607252... | 0.69655895 | 2 |
Create the TensorFlow placeholders for the model. | def q5nL(YKHO):
WKvO = ZylS.placeholder('float', [None, YKHO.num_visible], name='x-input')
BEW5 = ZylS.placeholder('float', [None, YKHO.num_hidden], name='hrand')
return (WKvO, BEW5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5nL(YKHO):\n YKHO.input = ZylS.placeholder(ZylS.int32, [None, YKHO.mx_len], name='input')\n YKHO.input_lengths = ZylS.placeholder(ZylS.int32, [None], name='input_lens')\n YKHO.y = ZylS.placeholder(ZylS.float32, [None], name='labels')",
"def RGPB():\n ZXEb = ZylS.placeholder(dtype=ZylS.int32, sha... | [
"0.7827525",
"0.782283",
"0.78136784",
"0.7614081",
"0.76120937",
"0.7607325",
"0.7497029",
"0.7490798",
"0.7486926",
"0.7474523",
"0.7470685",
"0.7457696",
"0.7457696",
"0.7437745",
"0.7436427",
"0.7427378",
"0.74136204",
"0.74109834",
"0.74096084",
"0.73951334",
"0.7390774"... | 0.7263963 | 28 |
Load a trained model from disk. The shape of the model (num_visible, num_hidden) and the number of gibbs sampling steps must be known in order to restore the model. | def uyMl(YKHO, ROpF, jcVT, uqvc):
YKHO.num_visible, YKHO.num_hidden = (ROpF[0], ROpF[1])
YKHO.gibbs_sampling_steps = jcVT
ZylS.reset_default_graph()
YKHO._build_model()
ZCRR = ZylS.global_variables_initializer()
YKHO.tf_saver = ZylS.train.Saver()
with ZylS.Session() as YKHO.tf_session:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO):\n jkyf = ZylS.train.Saver()\n jkyf.restore(YKHO.sess, YKHO.checkpoint_path)\n print('Model restored.')",
"def uyMl():\n nonlocal seen_tokens\n print(f'Loading model from {uqvc}')\n QTBn = ht2j.load(uqvc, map_location=begE)\n if 'seen_tokens' in QTBn:\n N1YD = QTBn['see... | [
"0.75973797",
"0.7517155",
"0.7507378",
"0.7506833",
"0.74702144",
"0.7464812",
"0.7435981",
"0.7429533",
"0.73986375",
"0.7381791",
"0.7381791",
"0.7354923",
"0.7349948",
"0.7295151",
"0.72858065",
"0.72836655",
"0.72679114",
"0.72587913",
"0.7242412",
"0.72369534",
"0.72351... | 0.7984816 | 0 |
Return the model parameters in the form of numpy arrays. | def W2Z0(YKHO):
with ZylS.Session() as YKHO.tf_session:
YKHO.tf_saver.restore(YKHO.tf_session, YKHO.model_path)
return {'W': YKHO.W.eval(), 'bh_': YKHO.bh_.eval(), 'bv_': YKHO.bv_.eval()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qvVH(YKHO):\n return oyIN.array(list(YKHO._povm_params.values())).flatten()",
"def SGPK(YKHO):\n return oyIN.array([float(k78t) for k78t in YKHO._parameters])",
"def knYa(YKHO):\n PiL5 = []\n for bGrB, xqoZ in YKHO.state_dict().items():\n PiL5.append(xqoZ.reshape(-1).cpu().numpy())\n ... | [
"0.79208326",
"0.7780949",
"0.7675425",
"0.76742727",
"0.7668503",
"0.7649914",
"0.7648162",
"0.75738865",
"0.7553997",
"0.7523115",
"0.7422797",
"0.7412041",
"0.7391716",
"0.7317111",
"0.7307512",
"0.7297861",
"0.72615665",
"0.72585464",
"0.7249142",
"0.71736085",
"0.7147069... | 0.6938119 | 51 |
Start time relative to root | def wRHz(YKHO):
if YKHO.parent is not None:
return YKHO.parent.getstart() + YKHO.delay
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWox(YKHO) -> int:\n pass",
"def R4lU(YKHO):\n pass",
"def SWox() -> int:\n from calendar import timegm\n from datetime import datetime\n return int(timegm(datetime.utcnow().utctimetuple()))",
"def SWox(YKHO):\n raise NotImplementedError()",
"def jSV8(YKHO):\n return YKHO.global_st... | [
"0.81309867",
"0.8120548",
"0.7967904",
"0.7800107",
"0.77199215",
"0.76241004",
"0.76241004",
"0.76163125",
"0.7608723",
"0.75514174",
"0.75514174",
"0.75502974",
"0.7536906",
"0.7536906",
"0.7536906",
"0.7536906",
"0.7536906",
"0.7536906",
"0.7536906",
"0.7536906",
"0.75369... | 0.0 | -1 |
Start time relative to root | def wRHz(YKHO):
if YKHO.parent is not None:
return YKHO.parent.getstart() + YKHO.delay
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWox(YKHO) -> int:\n pass",
"def R4lU(YKHO):\n pass",
"def SWox() -> int:\n from calendar import timegm\n from datetime import datetime\n return int(timegm(datetime.utcnow().utctimetuple()))",
"def SWox(YKHO):\n raise NotImplementedError()",
"def jSV8(YKHO):\n return YKHO.global_st... | [
"0.81309867",
"0.8120548",
"0.7967904",
"0.7800107",
"0.77199215",
"0.76241004",
"0.76241004",
"0.76163125",
"0.7608723",
"0.75514174",
"0.75514174",
"0.75502974",
"0.7536906",
"0.7536906",
"0.7536906",
"0.7536906",
"0.7536906",
"0.7536906",
"0.7536906",
"0.7536906",
"0.75369... | 0.0 | -1 |
Test case for c_rm_data_update_entity | def NsjJ(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oZWf(YKHO):\n pass",
"def zUDI(YKHO):\n pass",
"def vrnv(YKHO):\n pass",
"def zIZj(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def QwWk(YKHO):\n pass",
"def jc3s(YKHO):\n pass",
"def IsIF(__n6):\n rPXJ = puTk('to be updated')\n rPXJ = __n6.... | [
"0.7785447",
"0.7295691",
"0.7205865",
"0.71539336",
"0.7089514",
"0.7089514",
"0.7034161",
"0.7011223",
"0.6983085",
"0.6925068",
"0.691848",
"0.68808526",
"0.68774205",
"0.6875643",
"0.6777917",
"0.67771906",
"0.669187",
"0.6690303",
"0.66608775",
"0.66427445",
"0.6509479",... | 0.9424169 | 0 |
Applies normalization op along given dimension to strided x elements that are valid according to mask tensor. | def KhDO(khtY, WKvO, tpio, yDqo=None, ZHfW=None):
if WKvO.ndim == 0:
return khtY(WKvO, tpio, dtype=yDqo)
LVAh = ht2j.zeros_like(WKvO, dtype=yDqo)
LMWi = ht2j._masked._input_mask(WKvO, mask=ZHfW)
zNAw = tpio % WKvO.ndim
G4fB = tuple(map(range, WKvO.shape[:zNAw]))
NKOn = tuple(map(range, W... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ekx3(WKvO):\n if oyIN.ndim(WKvO) == 3:\n YDR7 = oyIN.shape(WKvO)[0]\n elif oyIN.ndim(WKvO) == 4:\n YDR7 = oyIN.shape(WKvO)[1]\n else:\n print('ERROR: input image dimensions not 3 or 4')\n GkAI = (WKvO - sZZU[:, :YDR7, :, :]) / aSKM[:, :YDR7, :, :]\n return GkAI",
"def NkkI... | [
"0.64698017",
"0.6351268",
"0.6284777",
"0.6276932",
"0.6265624",
"0.62228715",
"0.6141096",
"0.6094246",
"0.6024075",
"0.5997615",
"0.59589016",
"0.59506667",
"0.5933117",
"0.59243995",
"0.5922598",
"0.5911867",
"0.5895139",
"0.5895139",
"0.5895139",
"0.58477527",
"0.5819647... | 0.7946765 | 0 |
Return a FormidableSerializer instance, including eventual context. | def a9qP(Qwsq, QpfX=None):
from formidable.serializers import FormidableSerializer
ZMzz = FormidableSerializer(data=Qwsq)
ZMzz.context.update(QpfX or {})
return ZMzz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZMzz(YKHO):\n if not YKHO.__serializer:\n if isinstance(YKHO.nested, i3lu):\n YKHO.__serializer = YKHO.nested\n elif isinstance(YKHO.nested, type) and issubclass(YKHO.nested, i3lu):\n YKHO.__serializer = YKHO.nested(None, many=YKHO.many)\n elif YKHO.nested == 'self... | [
"0.68344927",
"0.6656085",
"0.6524925",
"0.6472671",
"0.6445661",
"0.62779313",
"0.6253799",
"0.6253799",
"0.6211763",
"0.6200042",
"0.60129255",
"0.5970573",
"0.5896145",
"0.5840453",
"0.58313733",
"0.5815318",
"0.58137214",
"0.5791422",
"0.5783537",
"0.57686436",
"0.5743252... | 0.72289187 | 0 |
get centroid of tri given 3 triangle points | def G0Yq(nXnc):
e6ux = oyIN.array([oyIN.average(nXnc[:, 0]), oyIN.average(nXnc[:, 1])])
return e6ux | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I1hs(MxXY, cWFu, ZQPE):\n e6ux = (MxXY + cWFu + ZQPE) / 3.0\n return e6ux",
"def e6ux(tXIo):\n \"\"\"Starts with centroid being at 0,0\"\"\"\n HPHZ = [0, 0]\n for SLBp in tXIo:\n HPHZ[0] += SLBp[0]\n HPHZ[1] += SLBp[1]\n HPHZ[0] /= 3.0\n HPHZ[1] /= 3.0\n return HPHZ",
... | [
"0.8742604",
"0.8267444",
"0.77294594",
"0.72737217",
"0.720234",
"0.7195236",
"0.71712625",
"0.7143987",
"0.7116737",
"0.70629793",
"0.69466895",
"0.69424677",
"0.691658",
"0.68882895",
"0.6876205",
"0.6857353",
"0.68176794",
"0.6798052",
"0.67901117",
"0.6787666",
"0.676379... | 0.81109685 | 2 |
Helper to update the lengths of each parameter in the case of vector or matrix valued parameters. | def PaF6(YKHO):
auUM = YKHO.list_parameters()
Wo3y = []
FrtE = []
for A07C in auUM:
for id in A07C:
Wo3y.append(id)
ewpR = id[0]
FyXI = id[1]
yCnv = id[2]
xqoZ = id[3]
_teq = YKHO.instructions[ewpR]
Mzf9 = _teq.c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQHp(YKHO, SGPK):\n pass",
"def i9_o(YKHO, vC9B, u54L):\n for ezWE in vC9B:\n if ezWE not in type(YKHO).__dict__:\n raise AttributeError('Unknown config variable: %s' % ezWE)\n type(YKHO).__dict__[ezWE].set_length(u54L)",
"def CMLf(YKHO, NArs=None):\n if NArs is not None:\... | [
"0.67629445",
"0.64857894",
"0.62518525",
"0.6241236",
"0.61682093",
"0.6101689",
"0.60733503",
"0.6060511",
"0.60239637",
"0.6022134",
"0.6008637",
"0.5990282",
"0.598442",
"0.598398",
"0.59817505",
"0.5960429",
"0.5951664",
"0.59449273",
"0.59449273",
"0.59449273",
"0.59449... | 0.6253678 | 2 |
Estimation of hyperparameter theta. | def L22L(SQiD):
Ty9i = SQiD.mean()
Nqp_ = oyIN.var(SQiD, ddof=1)
return (Ty9i * Nqp_ + Ty9i ** 3) / Nqp_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q7In(YKHO, q7In):\n NArs = YKHO.get_params()\n YRbF = 0\n for bpHD in YKHO.hyperparameters:\n if bpHD.fixed:\n continue\n if bpHD.n_elements > 1:\n NArs[bpHD.name] = oyIN.exp(q7In[YRbF:YRbF + bpHD.n_elements])\n YRbF += bpHD.n_elements\n else:\n ... | [
"0.776406",
"0.75199455",
"0.743834",
"0.743834",
"0.743834",
"0.7243296",
"0.71753734",
"0.711354",
"0.7079667",
"0.7073206",
"0.7047442",
"0.7034788",
"0.69851494",
"0.6959423",
"0.6899644",
"0.68927544",
"0.6891005",
"0.68828046",
"0.68412274",
"0.68412274",
"0.68412274",
... | 0.6468016 | 58 |
Converts to a dict, coercing listlike items to lists. | def MNRr(YKHO) -> cuzp:
return SLdk.asdict(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GkpI(DumB):\n return {YRbF: vC9B for YRbF, vC9B in enumerate(sorted(DumB))}",
"def xf4j(YKHO):\n Aofo = {}\n for H5ew, BWXx in YKHO._items:\n if H5ew in Aofo:\n Aofo[H5ew].append(BWXx)\n else:\n Aofo[H5ew] = [BWXx]\n return Aofo",
"def Y_Bi(vC9B):\n assert... | [
"0.7274786",
"0.7258345",
"0.7020837",
"0.6934153",
"0.69323623",
"0.6904019",
"0.6900265",
"0.6855372",
"0.67130303",
"0.66452634",
"0.65043205",
"0.6500001",
"0.64862263",
"0.6471763",
"0.6400378",
"0.63857764",
"0.635666",
"0.63104516",
"0.6306307",
"0.62297124",
"0.621566... | 0.0 | -1 |
Converts to a dict, coercing listlike items to lists. | def MNRr(YKHO) -> cuzp:
return {G1Hx: Ty9i for G1Hx, Ty9i in SLdk.asdict(YKHO).items() if G1Hx not in ['name', 'system']} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GkpI(DumB):\n return {YRbF: vC9B for YRbF, vC9B in enumerate(sorted(DumB))}",
"def xf4j(YKHO):\n Aofo = {}\n for H5ew, BWXx in YKHO._items:\n if H5ew in Aofo:\n Aofo[H5ew].append(BWXx)\n else:\n Aofo[H5ew] = [BWXx]\n return Aofo",
"def Y_Bi(vC9B):\n assert... | [
"0.7274786",
"0.7258345",
"0.7020837",
"0.6934153",
"0.69323623",
"0.6904019",
"0.6900265",
"0.6855372",
"0.67130303",
"0.66452634",
"0.65043205",
"0.6500001",
"0.64862263",
"0.6471763",
"0.6400378",
"0.63857764",
"0.635666",
"0.63104516",
"0.6306307",
"0.62297124",
"0.621566... | 0.0 | -1 |
Instantiate a Res2Net model | def vZ1A(rb7a=50, jTqs=10, kSCs=26, NXpY=4, mL4f=False, Eb4t=True, **B2fa):
if Ykk7.get(rb7a) is None:
raise NotImplementedError(f'This specific architecture is not defined for that depth: {rb7a}')
XkN1 = _o4u if rb7a >= 50 else em1m
C3ST = aGam(XkN1, Ykk7.get(rb7a), num_classes=jTqs, scale=NXpY, **... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, XI_C: str):\n k7Nc = DoD3()\n C3ST = k7Nc.read_model(XI_C)\n YKHO._net = k7Nc.compile_model(model=C3ST, device_name='CPU')",
"def v19q(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18']))\n return... | [
"0.72733665",
"0.7029558",
"0.7015967",
"0.7004554",
"0.6969939",
"0.69670856",
"0.6949113",
"0.6869532",
"0.6837275",
"0.6837275",
"0.6837275",
"0.6837275",
"0.67991406",
"0.67991406",
"0.676854",
"0.6738107",
"0.67290974",
"0.6690128",
"0.6676704",
"0.6662233",
"0.6657512",... | 0.0 | -1 |
Get a list of Requirement objects from file. Requirements will have normalized version numbers. Environment markers will be used to filter out packages which are not installed in the environment checkrequirements is currently running in. For ease of comparison, the markers are stripped before | def HPQy(Ux0P: str) -> list[tuple[jfKu, str]]:
U5bT = []
for zFiD in O_nQ(Ux0P):
if zFiD.strip() == '-e .':
continue
try:
vzyB = jfKu.parse(zFiD)
if vzyB.marker and (not vzyB.marker.evaluate()):
continue
U5bT.append((f4IT(zFiD), Ux0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O1OY(ndwV):\n with open(ndwV, 'r') as ytgA:\n Nqlg = ytgA.readlines()\n f9mM = []\n for zFiD in Nqlg:\n zFiD = zFiD.strip('\\n')\n if not zFiD.startswith('#') and zFiD != '':\n f9mM.append(zFiD)\n return f9mM",
"def K73q() -> list:\n bTRL = Hy7s.path.join(L2rN, ... | [
"0.7885702",
"0.7850479",
"0.7828321",
"0.78199846",
"0.77707976",
"0.77554166",
"0.77322805",
"0.7726938",
"0.77257174",
"0.77211267",
"0.7714758",
"0.7698661",
"0.76685846",
"0.7620449",
"0.7615157",
"0.76037896",
"0.75924844",
"0.7587878",
"0.75816435",
"0.7560516",
"0.754... | 0.81748194 | 0 |
Test case for get_single_duty_details Returns details about a duties. | def _AHC(YKHO):
R7S5 = [('page', 56), ('pageSize', 56)]
MOPg = {'Accept': 'application/json'}
geh0 = YKHO.client.open('/{version}/trustcode/{trust_code}/duty/{duty_id}'.format(version='version_example', trust_code='trust_code_example', duty_id=56), method='GET', headers=MOPg, query_string=R7S5)
YKHO.ass... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fbkg(YKHO):\n R7S5 = [('id', 56), ('page', 56), ('pageSize', 56)]\n MOPg = {'Accept': 'application/json'}\n geh0 = YKHO.client.open('/{version}/trustcode/{trust_code}/duty'.format(version='version_example', trust_code='trust_code_example'), method='GET', headers=MOPg, query_string=R7S5)\n YKHO.asse... | [
"0.7204807",
"0.5650595",
"0.55200714",
"0.5503838",
"0.5493858",
"0.5491512",
"0.54814464",
"0.547655",
"0.54551405",
"0.542546",
"0.5419109",
"0.5388005",
"0.5364424",
"0.52841866",
"0.5283189",
"0.52769256",
"0.52736",
"0.5252672",
"0.5247906",
"0.5247375",
"0.5238873",
... | 0.7616239 | 0 |
Apply a unique LayerNorm to x with default settings. | def vUJ3(WKvO: jnp.ndarray, mWFP: Optional[str]=None) -> oLG2.ndarray:
return TP_I.LayerNorm(axis=-1, create_scale=True, create_offset=True, name=mWFP)(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O9Ow(vhpA, mWFP, QGCI='sn', HVS_=None):\n if QGCI == 'gn':\n WKvO = lxnG(name='gn' + mWFP)(vhpA)\n elif QGCI == 'sn':\n WKvO = Z2wg(name='sn' + mWFP)(vhpA)\n else:\n WKvO = SwZx(name='bn' + mWFP)(vhpA, training=HVS_)\n return WKvO",
"def _BYV(YKHO, **B2fa):\n vHnr = YKHO.i... | [
"0.7193873",
"0.68697363",
"0.67187065",
"0.6697478",
"0.6647706",
"0.6643582",
"0.65723336",
"0.64203686",
"0.6408038",
"0.63964915",
"0.63964915",
"0.6286971",
"0.62836516",
"0.62819594",
"0.6268749",
"0.62103814",
"0.6156383",
"0.6155422",
"0.6155422",
"0.6155252",
"0.6155... | 0.7109913 | 1 |
Generate a string of random characters. | def TJgT(u54L=4, SIyd=vIwR.ascii_letters + vIwR.digits):
qxeD = []
for bGrB in range(u54L):
qxeD.append(tuKI.choice(SIyd))
return ''.join(qxeD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(20)))",
"def BWvy() -> str:\n return ''.join((Acvy(tcl1 + BHGE) for bGrB in range(ajWY(0, 1000))))",
"def BWvy():\n gLiZ = vIwR.ascii_lowercase\n return ''.join([tuKI.choice(gLiZ) fo... | [
"0.8386323",
"0.8262809",
"0.82262367",
"0.8206189",
"0.82049686",
"0.81922317",
"0.81922317",
"0.81433165",
"0.8141696",
"0.8124962",
"0.8086294",
"0.8067792",
"0.8063127",
"0.80574346",
"0.8049428",
"0.8049428",
"0.8048644",
"0.80462456",
"0.8042921",
"0.801144",
"0.8007185... | 0.0 | -1 |
Instantiates ClientPage, ClientEditPage, TestStatus instance to be used by the test class The function is run before every test function is called | def VUzX(YKHO):
YKHO.teststatus = GGYx()
YKHO.clientpage = _peW()
YKHO.clienteditpage = Yzwm() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n YKHO.client = yPQU.test_client()",
"def FCbF(YKHO):\n YKHO.ic = i9zE(HTTP_REFERER=YKHO.live_server_url + '/', HTTP_HOST=KVWQ.urlparse(YKHO.live_server_url).netloc)\n YKHO.ec = i9zE(HTTP_REFERER='http://www.google.com/', HTTP_HOST=KVWQ.urlparse(YKHO.live_server_url).netloc)",
"def Baw... | [
"0.69347054",
"0.67609334",
"0.67398",
"0.67398",
"0.6712372",
"0.6708767",
"0.6679383",
"0.6679383",
"0.6679383",
"0.66687095",
"0.66496617",
"0.6638251",
"0.6632222",
"0.6610245",
"0.66014487",
"0.6599024",
"0.6595542",
"0.65840715",
"0.65761214",
"0.6539526",
"0.65377164",... | 0.79812396 | 0 |
Twst if the response is 200 when the page is requested | def a5QD(YKHO):
Ylbp = YKHO.client.get('')
YKHO.assertEqual(Ylbp.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kKne(YKHO):\n bD7m = 'https://httpstat.us/200'\n Aofo = y7BL(bD7m)\n YKHO.assertEqual(Aofo, 200)",
"def j1x8(_hkX):\n return _hkX.status_code == 200",
"def GfdN(geh0):\n if geh0.code != 200:\n raise Exception('Call to \"{}\" yielded error code \"{}\"'.format(bD7m, geh0.code))\n ret... | [
"0.7325281",
"0.7305056",
"0.7192885",
"0.7179617",
"0.7143129",
"0.71244866",
"0.7118263",
"0.7035295",
"0.7035295",
"0.7031224",
"0.6972801",
"0.6970902",
"0.6911832",
"0.6889415",
"0.68764305",
"0.6867709",
"0.680014",
"0.680014",
"0.67875326",
"0.67753756",
"0.6727615",
... | 0.6568542 | 40 |
Test that HomePageView is called when request the right url | def xgRB(YKHO):
Ylbp = YKHO.client.get(gxEw('home'))
YKHO.assertEqual(Ylbp.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gk60(YKHO):\n geh0 = YKHO.client.get(nKyW('home'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def gk60(YKHO):\n geh0 = YKHO.client.get(nKyW('home.homepage'))\n YKHO.assertEqual(geh0.status_code, 200)",
"def gk60(YKHO):\n geh0 = YKHO.client.get(nKyW('app.hello'))",
"def ZhV1(YKHO):\n t... | [
"0.82569116",
"0.81828654",
"0.7997492",
"0.79641926",
"0.79521406",
"0.79384184",
"0.789689",
"0.7848571",
"0.77582896",
"0.77308875",
"0.7688211",
"0.7652977",
"0.7649605",
"0.7637334",
"0.7581096",
"0.75619847",
"0.7516498",
"0.7491013",
"0.7490865",
"0.748669",
"0.7477578... | 0.7356672 | 25 |
Radial Basis Function Kernel | def WZcn(YKHO, mSn1, IP77):
return pow(YKHO.sigma_f, 2) * oyIN.exp(pow(mSn1 - IP77.T, 2) / -2 / pow(YKHO.l, 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RCes(WTkW=0.5):\n KMvS = -1 / (2 * WTkW ** 2)\n AQRV = lambda EcVT, LVAh: oyIN.exp(KMvS * oyIN.square(EcVT[:, oyIN.newaxis] - LVAh).sum(axis=2))\n return AQRV",
"def RVOP(o4D3, ajwV):\n wEf2 = 0.0\n KMvS = 0.7\n wEf2 = oyIN.exp(-KMvS * oyIN.linalg.norm(o4D3 - ajwV) ** 2)\n return wEf2",
... | [
"0.6812041",
"0.6442979",
"0.638757",
"0.6381433",
"0.6309713",
"0.6240747",
"0.618898",
"0.6183074",
"0.61708",
"0.6013131",
"0.5968071",
"0.5965583",
"0.5945969",
"0.59437484",
"0.59329265",
"0.5931376",
"0.5902891",
"0.58997184",
"0.5897198",
"0.589368",
"0.5892009",
"0.... | 0.55725396 | 56 |
Return the estimated value of a horse. Currently the value is purely based on the number of races the horse could be expected to run and how much they are expected to earn per race. | def eBZC(Jfk4, CjKC):
QZj0 = KyIH.age(Jfk4, CjKC).loc[0, 'age']
uqEL, bGrB = KyIH.expected_race_life()
UpIW = max(0, uqEL - QZj0)
sAMs = UpIW / F7Or.races_per_day()
sAMs = min(20, sAMs)
return sAMs * KyIH.expected_winnings(Jfk4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SrvT(oyg0, T29t):\n return 1 / (1 + float(10) ** ((oyg0.raiting - T29t.raiting) / 400))",
"def rV9r(YKHO):\n return sum((YKHO.sequence_slots[oQ6W][1] for oQ6W in range(len(YKHO.sequence_slots)))) / sum(YKHO.scenarios[1])",
"def FpFu(YKHO):\n wEf2 = YKHO.char.traits.stamina\n wEf2 += YKHO.char.t... | [
"0.6289591",
"0.6201569",
"0.61458844",
"0.61177",
"0.6087385",
"0.59787625",
"0.5962932",
"0.59495443",
"0.59388584",
"0.5914231",
"0.5903255",
"0.58903384",
"0.58521765",
"0.583976",
"0.5828545",
"0.58276004",
"0.5806707",
"0.580556",
"0.5792539",
"0.5792539",
"0.57756984",... | 0.75971997 | 0 |
Returns the directory name where the package with name supplied as the first argument should be installed. ``source`` Source package name to use to work out directory name. | def MfYP(JZXy):
if JZXy.startswith('lib'):
return Hy7s.path.join(JZXy[:4], JZXy)
else:
return Hy7s.path.join(JZXy[0], JZXy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HfZK(KoHv):\n wNuJ = '%s_SRC' % KoHv.upper()\n if Hy7s.environ.get(wNuJ):\n return Hy7s.environ.get(wNuJ)\n Ol8d = 'This is a %(name)s testcase, please define %(env_name)s or enter your %(name)s source location here' % {'name': KoHv, 'env_name': wNuJ}\n gSTA = Dq6Q(QYWI(Ol8d, 'Please enter a... | [
"0.73922426",
"0.6532419",
"0.6519072",
"0.6416819",
"0.64088297",
"0.6408378",
"0.6386579",
"0.6368982",
"0.6319757",
"0.6307283",
"0.6275196",
"0.626172",
"0.622601",
"0.6202027",
"0.6136631",
"0.611716",
"0.60992205",
"0.6071569",
"0.60187083",
"0.60059905",
"0.6002488",
... | 0.81979984 | 0 |
Returns an instantiated GnuPG object using debexpo's options for the ``gpg`` binary's and keyring's paths. | def iE_v():
return eYcI.GnuPG(GPtr['debexpo.gpg_path'], GPtr['debexpo.gpg_keyring']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hSGf(YKHO):\n if YKHO.gpg_verify:\n bo34.debug('gpg verification enabled, initializing gpg')\n EVQ7 = Hy7s.path.expanduser('~/.gnupg')\n YKHO.gpg = eYcI.GPG(gnupghome=EVQ7)\n YKHO.key_path, YKHO.key_info = YKHO.get_signing_key()\n bo34.debug('{0} {1}'.format(YKHO.key_path,... | [
"0.63595974",
"0.5807187",
"0.5670465",
"0.56619155",
"0.5212837",
"0.51868206",
"0.51823556",
"0.51622814",
"0.50597996",
"0.5048013",
"0.50363845",
"0.49890044",
"0.49252716",
"0.49189916",
"0.4917334",
"0.4856942",
"0.4856615",
"0.48540044",
"0.47919872",
"0.4774443",
"0.4... | 0.76198584 | 0 |
Compute Receiver operating characteristic (ROC) | def v5W1(Y8eF, OU5i, uxJJ=None, xF06=None, c2JP=True):
bW5R, zEMz, Nhxk = Vrk8(Y8eF, OU5i, pos_label=uxJJ, sample_weight=xF06)
if c2JP and len(bW5R) > 2:
vLzd = oyIN.where(oyIN.r_[True, oyIN.logical_or(oyIN.diff(bW5R, 2), oyIN.diff(zEMz, 2)), True])[0]
bW5R = bW5R[vLzd]
zEMz = zEMz[vLzd]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wAfH(Y8eF, OU5i):\n \"\"\"TODO: Use the functions suggested above to fill in the ROC characteristics\"\"\"\n OS6F, Wbxj, Nhxk = v5W1(Y8eF, OU5i)\n No_o = zUeS(OS6F, Wbxj)\n return (OS6F, Wbxj, No_o)",
"def wAfH(fQya, B_NH, lsVE):\n Wbxj, OS6F = ([], [])\n HRJ_ = 0.0\n ytgA = 0.0\n for... | [
"0.67097056",
"0.6672239",
"0.66484404",
"0.6626568",
"0.65877736",
"0.65776175",
"0.6404425",
"0.6385607",
"0.63207626",
"0.6305658",
"0.6299778",
"0.62940085",
"0.62864166",
"0.62864166",
"0.6277049",
"0.6212375",
"0.61821914",
"0.6181603",
"0.6168788",
"0.6158267",
"0.6142... | 0.0 | -1 |
Builds a Person object from the information in the passed source. | def a70H(JZXy):
fcCO, vlaf, jBHA = wvEv.fullname(JZXy)
return nj3W(id=wvEv.model_id(JZXy), firstname=fcCO, lastname=jBHA, middlename=vlaf, birthday=wvEv.birthday(JZXy)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kgd4(Ilxn, **B2fa):\n H5ew = '{irws_root}/person/{identifier}/{hash}'.format(identifier=Ilxn, hash=hash(B2fa.get('netid') + Ilxn) % 10 ** 9, **B2fa)\n JKCy = {}\n if Ilxn in ('hepps', 'uwhr'):\n a70H = {'person': [dict(validid=B2fa.get('employee_id'), regid='0000deadbeef', lname=B2fa['formal'][... | [
"0.62460846",
"0.6150927",
"0.60850704",
"0.60850704",
"0.60029334",
"0.583775",
"0.58328366",
"0.5817627",
"0.58011746",
"0.5781184",
"0.5765296",
"0.57447964",
"0.5689964",
"0.5616541",
"0.5616541",
"0.5597732",
"0.55925196",
"0.5558499",
"0.55358136",
"0.55187094",
"0.5491... | 0.7737327 | 0 |
Resets the env and returns observations from agents in the environment. Returns | def SiRx(YKHO):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n uX8I, OMAa = YKHO._env.reset()\n SB8x = {}\n for YRbF, W061 in enumerate(uX8I):\n SB8x[YRbF] = {'action_mask': oyIN.array(YKHO._env.get_avail_agent_actions(YRbF)), 'obs': W061}\n YKHO._ready_agents = list(range(len(uX8I)))\n return SB8x",
"def SiRx(YKHO):\n MuOc = YKHO.... | [
"0.78629285",
"0.751756",
"0.7510108",
"0.7385798",
"0.73526853",
"0.72404146",
"0.71995234",
"0.71679246",
"0.7162347",
"0.7158546",
"0.7155264",
"0.71018755",
"0.71018755",
"0.70885247",
"0.7047323",
"0.70317495",
"0.70317495",
"0.70317495",
"0.70317495",
"0.70317495",
"0.7... | 0.0 | -1 |
Environment step. Performs an environment step with simultaneous execution of actions for agents in action_dict. Returns observations for the agents. The returns are dicts mapping from agent_id strings to values. | def YPaw(YKHO, dHhE):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YPaw(YKHO, dHhE):\n xASv = []\n for YRbF in YKHO._ready_agents:\n if YRbF not in dHhE:\n raise ValueError('You must supply an action for agent: {}'.format(YRbF))\n xASv.append(dHhE[YRbF])\n if len(xASv) != len(YKHO._ready_agents):\n raise ValueError('Unexpected number o... | [
"0.7569559",
"0.726748",
"0.7147585",
"0.7037898",
"0.6880811",
"0.67852324",
"0.67344713",
"0.6695208",
"0.6578321",
"0.6484405",
"0.6443977",
"0.62964344",
"0.6257508",
"0.62515384",
"0.6238157",
"0.6237285",
"0.62166286",
"0.617313",
"0.6113777",
"0.61006606",
"0.6067595",... | 0.0 | -1 |
Returns a IssuedCurrencyAmount, at the value given. | def x7kw(BWXx: str) -> VZN1:
return VZN1(currency='USD' if eldQ else 'FOO', issuer='r9PfV3sQpKLWxccdg3HL2FXKxGW2orAcLE' if eldQ else 'rPWkTSpLJ2bumVKngjaeznSUUp4wj6tGuK', value=BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CCr2(BWXx, VIXL='USD'):\n return QWwV(BWXx)",
"def Y35p(YKHO):\n return YKHO._get_value('CURRENCY')",
"def eGOn(YKHO, BWXx=0):\n return qdHh(value=BWXx)",
"def Zmkp(YKHO, VIXL=qdHh.USD):\n zXzD = YKHO.currency\n e1vZ = VIXL\n if zXzD == YKHO.Currency.THB:\n if e1vZ == YKHO.Curren... | [
"0.63895303",
"0.6178183",
"0.60465974",
"0.60211354",
"0.60073715",
"0.5917401",
"0.58996683",
"0.580801",
"0.5806612",
"0.5787694",
"0.57334375",
"0.5729086",
"0.5725602",
"0.5708651",
"0.57068306",
"0.5682581",
"0.5648075",
"0.56382555",
"0.55911684",
"0.5572557",
"0.55674... | 0.5892222 | 7 |
Get a mask of nonwhite spots from an image. | def BN3U(QnV5, gwAu=0.8):
yush = YbqG(QnV5)
aPd6 = yush[:, :, 0]
ReL1 = aPd6 / 255.0
return ReL1 < gwAu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PbUT(VXjJ):\n Fg_i, Oa1e, Mkmy = XC5k.split(VXjJ)\n idx7 = gwAu(Mkmy, 35)\n WZcn = oyIN.ones((3, 3), oyIN.uint8)\n sK1C = XC5k.morphologyEx(idx7, XC5k.MORPH_OPEN, WZcn)\n W5SF = XC5k.morphologyEx(sK1C, XC5k.MORPH_CLOSE, WZcn)\n ZHfW = XC5k.erode(W5SF, WZcn, iterations=1)\n Aofo = f2Y_(VXjJ... | [
"0.7224297",
"0.71973497",
"0.71279645",
"0.7049608",
"0.7018425",
"0.7018425",
"0.70145875",
"0.6945768",
"0.6944875",
"0.69332397",
"0.6885168",
"0.6874748",
"0.6852339",
"0.6783765",
"0.67753357",
"0.6763222",
"0.675783",
"0.6661398",
"0.6652867",
"0.6645243",
"0.6641866",... | 0.6549652 | 24 |
Normalize row by its 1/2/inf norm | def aB7J(EcVT, ord=1):
return EcVT / XVcZ.norm(EcVT, axis=1, ord=ord)[:, oyIN.newaxis] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aB7J(WKvO: np.ndarray):\n return oyIN.nan_to_num(WKvO / oyIN.linalg.norm(WKvO, ord=2, axis=1, keepdims=True))",
"def U95B(WKvO):\n return WKvO / oyIN.linalg.norm(WKvO, axis=1)[:, None]",
"def orOt(WKvO):\n DG22 = WKvO / Kt_s.sqrt(Kt_s.sum(WKvO ** 2.0, axis=1, keepdims=1) + ojA0(1e-08))\n return... | [
"0.80379033",
"0.7719643",
"0.75366634",
"0.74739283",
"0.74046063",
"0.73779887",
"0.73654526",
"0.7348618",
"0.7325326",
"0.7298559",
"0.7280041",
"0.7242441",
"0.72396237",
"0.7231831",
"0.7204291",
"0.7122488",
"0.7119343",
"0.7089882",
"0.70885915",
"0.7034626",
"0.69940... | 0.72050834 | 14 |
Gets the DB column type for the specified Resilient 'input type' | def DpHA(YKHO, lt9u):
KXx7 = dict(number='INTEGER', datepicker='DATE', datetimepicker='TIMESTAMP', boolean='BOOLEAN', blob='BLOB')
if lt9u in KXx7:
return KXx7[lt9u]
return 'TEXT' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpHA(YKHO, lt9u):\n KXx7 = dict(number='BIGINT', datepicker='DATE', datetimepicker='DATETIME', boolean='TINYINT', blob='BLOB')\n if lt9u in KXx7:\n return KXx7[lt9u]\n return 'TEXT'",
"def DpHA(YKHO, lt9u):\n KXx7 = dict(number='BIGINT', datepicker='DATE', datetimepicker='TIMESTAMPTZ', boo... | [
"0.80330294",
"0.80079734",
"0.7787067",
"0.77814335",
"0.7354826",
"0.7218574",
"0.7163038",
"0.71257937",
"0.70083356",
"0.69923913",
"0.6980349",
"0.6918417",
"0.69088614",
"0.68486375",
"0.6822494",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
... | 0.8066713 | 0 |
Gets the DB column type for the specified Resilient 'input type' | def DpHA(YKHO, lt9u):
KXx7 = dict(number='BIGINT', datepicker='DATE', datetimepicker='TIMESTAMPTZ', boolean='BOOLEAN', blob='bytea')
if lt9u in KXx7:
return KXx7[lt9u]
return 'TEXT' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpHA(YKHO, lt9u):\n KXx7 = dict(number='INTEGER', datepicker='DATE', datetimepicker='TIMESTAMP', boolean='BOOLEAN', blob='BLOB')\n if lt9u in KXx7:\n return KXx7[lt9u]\n return 'TEXT'",
"def DpHA(YKHO, lt9u):\n KXx7 = dict(number='BIGINT', datepicker='DATE', datetimepicker='DATETIME', bool... | [
"0.8066713",
"0.80330294",
"0.7787067",
"0.77814335",
"0.7354826",
"0.7218574",
"0.7163038",
"0.71257937",
"0.70083356",
"0.69923913",
"0.6980349",
"0.6918417",
"0.69088614",
"0.68486375",
"0.6822494",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
... | 0.80079734 | 2 |
Gets the DB column type for the specified Resilient 'input type' | def DpHA(YKHO, lt9u):
KXx7 = dict(number='BIGINT', datepicker='DATE', datetimepicker='DATETIME', boolean='TINYINT', blob='BLOB')
if lt9u in KXx7:
return KXx7[lt9u]
return 'TEXT' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpHA(YKHO, lt9u):\n KXx7 = dict(number='INTEGER', datepicker='DATE', datetimepicker='TIMESTAMP', boolean='BOOLEAN', blob='BLOB')\n if lt9u in KXx7:\n return KXx7[lt9u]\n return 'TEXT'",
"def DpHA(YKHO, lt9u):\n KXx7 = dict(number='BIGINT', datepicker='DATE', datetimepicker='TIMESTAMPTZ', b... | [
"0.8066713",
"0.80079734",
"0.7787067",
"0.77814335",
"0.7354826",
"0.7218574",
"0.7163038",
"0.71257937",
"0.70083356",
"0.69923913",
"0.6980349",
"0.6918417",
"0.69088614",
"0.68486375",
"0.6822494",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
... | 0.80330294 | 1 |
Gets the DB column type for the specified Resilient 'input type' | def DpHA(YKHO, lt9u):
KXx7 = dict(number='BIGINT', datepicker='DATE', datetimepicker='DATETIME2', boolean='BIT', blob='VARBINARY(max)')
if lt9u in KXx7:
return KXx7[lt9u]
return 'NTEXT' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpHA(YKHO, lt9u):\n KXx7 = dict(number='INTEGER', datepicker='DATE', datetimepicker='TIMESTAMP', boolean='BOOLEAN', blob='BLOB')\n if lt9u in KXx7:\n return KXx7[lt9u]\n return 'TEXT'",
"def DpHA(YKHO, lt9u):\n KXx7 = dict(number='BIGINT', datepicker='DATE', datetimepicker='DATETIME', bool... | [
"0.8066713",
"0.80330294",
"0.80079734",
"0.77814335",
"0.7354826",
"0.7218574",
"0.7163038",
"0.71257937",
"0.70083356",
"0.69923913",
"0.6980349",
"0.6918417",
"0.69088614",
"0.68486375",
"0.6822494",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
"0.680787",
... | 0.7787067 | 3 |
Gets the DB column type for the specified Resilient 'input type' | def DpHA(YKHO, lt9u):
KXx7 = dict(number='NUMBER(16)', datepicker='DATE', datetimepicker='TIMESTAMP', boolean='NUMBER(1)', blob='BLOB')
if lt9u in KXx7:
return KXx7[lt9u]
return 'NVARCHAR2(2000)' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpHA(YKHO, lt9u):\n KXx7 = dict(number='INTEGER', datepicker='DATE', datetimepicker='TIMESTAMP', boolean='BOOLEAN', blob='BLOB')\n if lt9u in KXx7:\n return KXx7[lt9u]\n return 'TEXT'",
"def DpHA(YKHO, lt9u):\n KXx7 = dict(number='BIGINT', datepicker='DATE', datetimepicker='DATETIME', bool... | [
"0.80682003",
"0.8034643",
"0.80095404",
"0.77892244",
"0.73586774",
"0.7222467",
"0.71673906",
"0.7127862",
"0.70091647",
"0.69959843",
"0.6981837",
"0.6921491",
"0.6914161",
"0.68479276",
"0.6824116",
"0.68047565",
"0.68047565",
"0.68047565",
"0.68047565",
"0.68047565",
"0.... | 0.7784148 | 4 |
Get the langauge model configuration. | def CDcZ(YKHO) -> Gfvc:
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPtr(YKHO) -> WmNu:\n if YKHO._config is None:\n YKHO._config = YKHO._load_config()\n return YKHO._config",
"def AEHk(YKHO) -> dict:\n return YKHO.model_config",
"def tgzD(YKHO, ZGE9):\n if not YKHO.model_loaded(ZGE9):\n YKHO.load_model(ZGE9)\n return YKHO.models_dict[ZGE9].con... | [
"0.74172515",
"0.6959509",
"0.68114036",
"0.6744266",
"0.6744266",
"0.6744266",
"0.67216355",
"0.66583866",
"0.66225797",
"0.66171926",
"0.6594953",
"0.6593641",
"0.6565683",
"0.6564924",
"0.65053",
"0.6504883",
"0.6490264",
"0.6444797",
"0.64166707",
"0.6384013",
"0.6370285"... | 0.80871415 | 0 |
Will generate a random string to your length | def VdQs(u54L):
Aofo = ''
sSaq = len(c02C) - 1
if sSaq <= 0:
return Aofo
while len(Aofo) < u54L:
Aofo += c02C[tuKI.randint(0, sSaq)]
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzjY(YKHO, u54L):\n zZas = vIwR.ascii_uppercase + vIwR.digits\n return ''.join(tuKI.sample(zZas, u54L))",
"def YzjY(YKHO, u54L):\n zZas = vIwR.ascii_uppercase + vIwR.digits\n return ''.join(tuKI.sample(zZas, u54L))",
"def MiNk(u54L):\n gLiZ = vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIw... | [
"0.88420284",
"0.8801967",
"0.8778554",
"0.8762963",
"0.8716781",
"0.87001616",
"0.8668635",
"0.86576",
"0.86124235",
"0.85999084",
"0.85968417",
"0.85711133",
"0.8565706",
"0.8564148",
"0.8560618",
"0.8557323",
"0.85403085",
"0.8537342",
"0.85329086",
"0.85329086",
"0.853142... | 0.0 | -1 |
Returns the server datetime, encoded as YYYYMMSS_HHMMSS. | def E3oo(Z9rn: Connection) -> str:
return Z9rn.run('date +%Y%m%d_%H%M%S').stdout.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7Na():\n return ITS7.strftime('%Y%m%d%H%M%S')",
"def lbYz(YKHO):\n yo7_ = qcWV.datetime.now()\n ppPa = yo7_.strftime('_%m_%d_%Y_%H_%M_%S')\n return ppPa",
"def o5Ya():\n return qcWV.now().strftime('%Y-%m-%d %H:%M:%S')",
"def z5tQ():\n return ITS7.strftime('T%H%M%S%d%m%Y')",
"def saqZ... | [
"0.7347683",
"0.7019621",
"0.6869156",
"0.6854574",
"0.6816213",
"0.6804713",
"0.68009114",
"0.67854166",
"0.67762446",
"0.6766092",
"0.67630935",
"0.67570233",
"0.6732001",
"0.6727499",
"0.67088217",
"0.6701839",
"0.66617846",
"0.6632532",
"0.66307384",
"0.6589286",
"0.65889... | 0.63334537 | 57 |
BOOL should take precedence over STR. | def DmfB(YKHO):
YKHO.__test_supertype_precedence_h([YKHO.BOOL, YKHO.STR], YKHO.BOOL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q4YZ(YKHO):\n assert BJsk.convert_bool_str('True') is True\n return",
"def q4YZ(YKHO):\n assert BJsk.convert_bool_str('True') is True\n return",
"def svJO(YKHO):\n YKHO.__test_clean_restrict_several_builtins_bad_h(YKHO.STR, YKHO.BOOL)",
"def b9IU(YKHO):\n YKHO.assertEqual(int(VNcL.str2b... | [
"0.71023697",
"0.71023697",
"0.7001351",
"0.69804555",
"0.6892668",
"0.6872397",
"0.6862328",
"0.6855194",
"0.68377393",
"0.68373156",
"0.6827064",
"0.6814234",
"0.6802807",
"0.67818516",
"0.6768659",
"0.67653036",
"0.67231536",
"0.6715152",
"0.6711382",
"0.67064023",
"0.6690... | 0.79883444 | 0 |
Testing case where string cannot be cast to an int. | def TgWE(YKHO):
YKHO.__test_builtin_type_bad_h(YKHO.INT, '1.72') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IgF8(vIwR):\n try:\n return int(vIwR)\n except ValueError:\n return vIwR",
"def zyFy(KCHu):\n try:\n int(KCHu)\n except ValueError:\n return False\n else:\n return True",
"def outo(YKHO):\n Z7tR = Myyj('two')\n YKHO.assertFalse(Z7tR)",
"def tp4T(oWz... | [
"0.79157585",
"0.77652764",
"0.77456605",
"0.7734048",
"0.77058923",
"0.7700516",
"0.76927996",
"0.76773626",
"0.76768136",
"0.7600231",
"0.75608945",
"0.75342524",
"0.7530015",
"0.7530015",
"0.75296056",
"0.75195825",
"0.7501196",
"0.7482787",
"0.7452645",
"0.742857",
"0.742... | 0.0 | -1 |
Testing case where string cannot be cast to a Boolean. | def ZIpa(YKHO):
YKHO.__test_builtin_type_bad_h(YKHO.BOOL, 'maybe') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rord(vIwR):\n if vIwR.strip().lower() in ['1', 'true', 't', 'y']:\n return True\n if vIwR.strip().lower() in ['0', 'false', 'f', 'n'] or not vIwR:\n return False\n else:\n raise TypeError(f'string {vIwR} is not an identified boolean.')",
"def PggZ():\n assert M0mR(False) is F... | [
"0.7918033",
"0.7910311",
"0.79027295",
"0.78908074",
"0.7747151",
"0.7729627",
"0.76398116",
"0.7620046",
"0.75871724",
"0.75871724",
"0.75869936",
"0.7566647",
"0.7541838",
"0.7500431",
"0.7500199",
"0.74724704",
"0.7467154",
"0.7444248",
"0.74438184",
"0.74271846",
"0.7423... | 0.0 | -1 |
Testing case where a string passes the MIN_LENGTH restriction. | def bQeC(YKHO):
YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MIN_LENGTH, 5, 'foobar', passes_constraint=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def boKw(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MIN_LENGTH, 100, 'short string', passes_constraint=False)",
"def qIKF(YKHO, BWXx, Lx0h):\n YKHO.assertIsNotNone(BWXx)\n YKHO.assertGreaterEqual(len(BWXx), Lx0h)",
"def tDh7(BWXx, mWFP, Lx0h=0, BcCR=None):\n if not isinstance(BWXx, ... | [
"0.8301205",
"0.79466295",
"0.7517508",
"0.745048",
"0.74206346",
"0.7328796",
"0.73277956",
"0.72937363",
"0.728536",
"0.7125634",
"0.7078991",
"0.7065467",
"0.70601946",
"0.70051384",
"0.70015496",
"0.69997877",
"0.6995658",
"0.6984779",
"0.6984779",
"0.69622093",
"0.695275... | 0.8183227 | 1 |
Testing case where a string just passes (edgecondition) the MIN_LENGTH restriction. | def dKDu(YKHO):
YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MIN_LENGTH, 11, 'hello world', passes_constraint=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def boKw(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MIN_LENGTH, 100, 'short string', passes_constraint=False)",
"def bQeC(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MIN_LENGTH, 5, 'foobar', passes_constraint=True)",
"def qIKF(YKHO, BWXx, Lx0h):\n YKHO.assertIsNotNone(BW... | [
"0.8119603",
"0.80291104",
"0.7823196",
"0.74666685",
"0.7160455",
"0.71573406",
"0.7140246",
"0.711598",
"0.70948595",
"0.70948595",
"0.70706415",
"0.7067452",
"0.69772565",
"0.69423187",
"0.6929259",
"0.691792",
"0.6897343",
"0.688544",
"0.6870359",
"0.68527335",
"0.684989"... | 0.7857252 | 2 |
Testing case where a string fails the MIN_LENGTH restriction. | def boKw(YKHO):
YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MIN_LENGTH, 100, 'short string', passes_constraint=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQeC(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MIN_LENGTH, 5, 'foobar', passes_constraint=True)",
"def qIKF(YKHO, BWXx, Lx0h):\n YKHO.assertIsNotNone(BWXx)\n YKHO.assertGreaterEqual(len(BWXx), Lx0h)",
"def tDh7(BWXx, mWFP, Lx0h=0, BcCR=None):\n if not isinstance(BWXx, jKi7.stri... | [
"0.7867954",
"0.7827125",
"0.7588593",
"0.7526498",
"0.74054325",
"0.73933744",
"0.7346871",
"0.732512",
"0.72705114",
"0.70870775",
"0.70857495",
"0.70804566",
"0.7026779",
"0.7002128",
"0.700021",
"0.69884145",
"0.698841",
"0.69824904",
"0.69357646",
"0.6931503",
"0.6901637... | 0.84194154 | 0 |
Testing case where a string just fails (edgecondition) the MIN_LENGTH restriction. | def vpO6(YKHO):
YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MIN_LENGTH, 8, 'bye all', passes_constraint=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def boKw(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MIN_LENGTH, 100, 'short string', passes_constraint=False)",
"def qIKF(YKHO, BWXx, Lx0h):\n YKHO.assertIsNotNone(BWXx)\n YKHO.assertGreaterEqual(len(BWXx), Lx0h)",
"def bQeC(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.STR, eizE... | [
"0.8279089",
"0.7739914",
"0.7698583",
"0.7430513",
"0.7393638",
"0.7369481",
"0.7292855",
"0.71873474",
"0.7163679",
"0.7162533",
"0.70952684",
"0.7023912",
"0.6992494",
"0.6982899",
"0.6952956",
"0.69402605",
"0.69402605",
"0.6935313",
"0.6923144",
"0.6899799",
"0.68808764"... | 0.7114014 | 10 |
Testing case where a string passes the MAX_LENGTH restriction. | def sAkJ(YKHO):
YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MAX_LENGTH, 2, 'Hi', passes_constraint=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SDUd(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MAX_LENGTH, 10, 'Hello everyone', passes_constraint=False)",
"def m2oo(vIwR, Lx0h=5, BcCR=100):\n return Lx0h <= len(vIwR) <= BcCR",
"def E3h_(GUy1, cpuL):\n u54L = 1\n G_if = KXdO(open_api=por0(type='string', max_length=u54L, form... | [
"0.8343494",
"0.76418835",
"0.75832856",
"0.7563107",
"0.7546621",
"0.7390592",
"0.7379386",
"0.7376063",
"0.735227",
"0.7333708",
"0.73115396",
"0.7302928",
"0.7294837",
"0.7269205",
"0.726586",
"0.72505194",
"0.7238536",
"0.722714",
"0.72233033",
"0.72233033",
"0.7192324",
... | 0.8292314 | 1 |
Testing case where a string fails the MAX_LENGTH restriction. | def SDUd(YKHO):
YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MAX_LENGTH, 10, 'Hello everyone', passes_constraint=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sAkJ(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MAX_LENGTH, 2, 'Hi', passes_constraint=True)",
"def tDh7(BWXx, mWFP, Lx0h=0, BcCR=None):\n if not isinstance(BWXx, jKi7.string_types):\n tO9_ = bGrB('%s is not a string or unicode') % mWFP\n raise AJ5d.InvalidInput(message=tO... | [
"0.7973372",
"0.76037157",
"0.7584339",
"0.7486732",
"0.7430925",
"0.7405718",
"0.73999536",
"0.7375305",
"0.7375305",
"0.7361977",
"0.7348354",
"0.73324925",
"0.73109424",
"0.7290353",
"0.72370946",
"0.7232543",
"0.7172912",
"0.7117406",
"0.7092083",
"0.70593786",
"0.7018536... | 0.83794296 | 0 |
Testing case where a string just fails (edgecondition) the MAX_LENGTH restriction. | def ys09(YKHO):
YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MAX_LENGTH, 10, 'Hello world', passes_constraint=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SDUd(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MAX_LENGTH, 10, 'Hello everyone', passes_constraint=False)",
"def sAkJ(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.STR, eizE.MAX_LENGTH, 2, 'Hi', passes_constraint=True)",
"def tDh7(BWXx, mWFP, Lx0h=0, BcCR=None):\n if not isinst... | [
"0.81269264",
"0.7704899",
"0.7536128",
"0.7494446",
"0.7361248",
"0.7336729",
"0.7329177",
"0.73265934",
"0.73134845",
"0.73049825",
"0.7272297",
"0.726814",
"0.7201216",
"0.71958107",
"0.71358895",
"0.71358895",
"0.71091896",
"0.7098588",
"0.7097357",
"0.70801383",
"0.70363... | 0.7424712 | 4 |
Testing case where an integer passes the MAX_VAL restriction. | def TYFi(YKHO):
YKHO.__test_numerical_constraint_h(YKHO.INT, eizE.MAX_VAL, 85, '3', passes_constraint=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hHyS(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.FLOAT, eizE.MAX_VAL, 3, '44', passes_constraint=False)",
"def nVTs(YKHO):\n YKHO.assertEqual(qOmX([-9, 2, 5, 6, 3]), 6)",
"def muBB(YKHO):\n YKHO.assertEqual(qOmX([YRbF for YRbF in range(10)]), 9)",
"def bYpv(YKHO):\n YKHO.__test_numerical... | [
"0.81237525",
"0.76865005",
"0.7683547",
"0.76427805",
"0.7611829",
"0.76035",
"0.7558557",
"0.7538069",
"0.75199085",
"0.75157523",
"0.75092804",
"0.746515",
"0.7459529",
"0.7432129",
"0.74247587",
"0.74227786",
"0.73507",
"0.73291594",
"0.7324039",
"0.73207074",
"0.7312968"... | 0.8239871 | 0 |
Testing case where an integer just passes (edgecondition) the MAX_VAL restriction. | def bYpv(YKHO):
YKHO.__test_numerical_constraint_h(YKHO.INT, eizE.MAX_VAL, -92, '-92', passes_constraint=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U1A8(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.FLOAT, eizE.MAX_VAL, 7, '8', passes_constraint=False)",
"def TYFi(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.INT, eizE.MAX_VAL, 85, '3', passes_constraint=True)",
"def hHyS(YKHO):\n YKHO.__test_numerical_constraint_h(YKHO.FLOAT, eizE.MAX_... | [
"0.8173008",
"0.803067",
"0.7935913",
"0.7411662",
"0.733368",
"0.7268574",
"0.7268574",
"0.726607",
"0.72439414",
"0.7206964",
"0.7204718",
"0.720218",
"0.7178938",
"0.71585643",
"0.71317935",
"0.71046203",
"0.70994216",
"0.7093993",
"0.7059028",
"0.70472074",
"0.7032919",
... | 0.8268852 | 0 |
Test a string against a REGEXP it does not satisfy. | def RIWi(YKHO):
YKHO.__test_regexp_h(YKHO.STR, 'foo|bar', '123abc', passes_constraint=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PBdR(BWXx: str, Owyl: Union[str, re._pattern_type]) -> bool:\n return not ZbWC.match(Owyl, BWXx)",
"def Z0R5(KCHu, mXDZ):\n return not ZbWC.match(mXDZ, KCHu)",
"def HvUq(ElwW, str):\n assert not c4EF(ElwW, None).match(str)",
"def vqQc(YKHO, QEgb):\n return YKHO.regex.search(QEgb.name) is not ... | [
"0.7197513",
"0.6569286",
"0.6389508",
"0.6384036",
"0.6383094",
"0.62806404",
"0.62764776",
"0.6242509",
"0.6202854",
"0.6112958",
"0.60438335",
"0.6002269",
"0.5996234",
"0.5995945",
"0.5992358",
"0.5970128",
"0.5954512",
"0.59045494",
"0.59040046",
"0.5870634",
"0.58549154... | 0.64269555 | 2 |
Test an int against a REGEXP it satisfies. | def Dhl2(YKHO):
YKHO.__test_regexp_h(YKHO.INT, '.+', '4444', passes_constraint=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQFj(YKHO):\n YKHO.__test_regexp_h(YKHO.INT, '[1-9]{4}', '-1000', passes_constraint=False)",
"def tp4T(YKHO, WKvO):\n return YKHO.re_isInt.match(WKvO) is not None",
"def iUPF(l5Ny):\n return ZbWC.match('^[\\\\d]+$', l5Ny)",
"def fQWs(YKHO) -> None:\n YKHO.assertRegex('400', '\\\\d+')\n YKH... | [
"0.7324904",
"0.6822645",
"0.6788727",
"0.6667304",
"0.6515417",
"0.64198774",
"0.6418112",
"0.6414174",
"0.63115",
"0.6292761",
"0.6280352",
"0.6272617",
"0.6272617",
"0.6208124",
"0.6064473",
"0.60160196",
"0.600177",
"0.59863055",
"0.58700174",
"0.5860825",
"0.58223414",
... | 0.74090683 | 0 |
Test a Boolean against a REGEXP it satisfies. | def Qsig(YKHO):
YKHO.__test_regexp_h(YKHO.BOOL, 'True|TRUE|true|t|1', 'True', passes_constraint=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HwUy(YKHO):\n YKHO.assertTrue(W4hN.check_regex(hVX3, ClnK))\n YKHO.assertTrue(W4hN.check_regex(hVX3, jShY))",
"def LdpC(YKHO):\n YKHO.__test_regexp_h(YKHO.STR, 'False', 'True', passes_constraint=False)",
"def TREW(mXDZ, vIwR):\n Vn8t = bA3e(mXDZ)\n kUBT = ZbWC.match(Vn8t, vIwR)\n return b... | [
"0.7546805",
"0.7336391",
"0.72583294",
"0.6988736",
"0.687095",
"0.64540154",
"0.63938504",
"0.62835133",
"0.6239045",
"0.6209528",
"0.6176308",
"0.61752295",
"0.61168045",
"0.609381",
"0.60899603",
"0.6042705",
"0.600496",
"0.600305",
"0.5999734",
"0.5989029",
"0.5974262",
... | 0.78617793 | 0 |
Test a Boolean against several restrictions, all of which pass. | def i9B9(YKHO):
CL6J = zykr(name='MyDT', description='Datatype with several restrictions', user=YKHO.myUser)
CL6J.full_clean()
CL6J.save()
CL6J.restricts.add(YKHO.BOOL)
CL6J.basic_constraints.create(ruletype=eizE.REGEXP, rule='T...')
CL6J.basic_constraints.create(ruletype=eizE.REGEXP, rule='rue|... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w6mu(YKHO):\n CL6J = zykr(name='MyDT', description='Datatype with several restrictions', user=YKHO.myUser)\n CL6J.full_clean()\n CL6J.save()\n CL6J.restricts.add(YKHO.BOOL)\n ufz2 = CL6J.basic_constraints.create(ruletype=eizE.REGEXP, rule='T...')\n JSKw = CL6J.basic_constraints.create(ruletyp... | [
"0.7503779",
"0.7091537",
"0.70289457",
"0.6880123",
"0.67439604",
"0.6721806",
"0.6702235",
"0.6699785",
"0.66912687",
"0.6661701",
"0.6626015",
"0.64486957",
"0.643365",
"0.6425483",
"0.6399929",
"0.63950807",
"0.6349839",
"0.6344129",
"0.6304235",
"0.6268144",
"0.62661976"... | 0.7630157 | 0 |
Test a Boolean against several restrictions, some of which fail. | def w6mu(YKHO):
CL6J = zykr(name='MyDT', description='Datatype with several restrictions', user=YKHO.myUser)
CL6J.full_clean()
CL6J.save()
CL6J.restricts.add(YKHO.BOOL)
ufz2 = CL6J.basic_constraints.create(ruletype=eizE.REGEXP, rule='T...')
JSKw = CL6J.basic_constraints.create(ruletype=eizE.REGE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i9B9(YKHO):\n CL6J = zykr(name='MyDT', description='Datatype with several restrictions', user=YKHO.myUser)\n CL6J.full_clean()\n CL6J.save()\n CL6J.restricts.add(YKHO.BOOL)\n CL6J.basic_constraints.create(ruletype=eizE.REGEXP, rule='T...')\n CL6J.basic_constraints.create(ruletype=eizE.REGEXP,... | [
"0.7438139",
"0.69857925",
"0.694452",
"0.692737",
"0.6923912",
"0.68049276",
"0.6791231",
"0.66442883",
"0.66270566",
"0.6521274",
"0.6520649",
"0.65021086",
"0.64831144",
"0.6468559",
"0.64413464",
"0.6439594",
"0.6424667",
"0.6415132",
"0.64107716",
"0.640228",
"0.6384405"... | 0.7828301 | 0 |
CompoundDatatype with single index equalling 1. | def u5ir(YKHO):
sjSB = T8Qg(user=YKHO.myUser)
sjSB.save()
sjSB.members.create(datatype=YKHO.RNA_dt, column_name='ColumnTwo', column_idx=1)
YKHO.assertEqual(sjSB.clean(), None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q1sv(YKHO):\n if YKHO.classified_as_indexing:\n return YKHO.classified_as_indexing[0]\n return L22q",
"def TPjt(YKHO, z1Rg):\n return oekH.IndexConstDataSet1D___le__(YKHO, z1Rg)",
"def OP2O(YKHO, YRbF):\n return oekH.DataSetIndex1D___getitem__(YKHO, YRbF)",
"def cELa(YKHO, z3SE):\n ... | [
"0.5767888",
"0.5557954",
"0.5511759",
"0.5485438",
"0.5413614",
"0.53991425",
"0.53798896",
"0.53148246",
"0.52990925",
"0.52734023",
"0.5250321",
"0.5239008",
"0.52362835",
"0.5230961",
"0.5226315",
"0.52217764",
"0.52088326",
"0.5206586",
"0.51897687",
"0.517102",
"0.51373... | 0.5183005 | 19 |
CompoundDatatype with single index not equalling 1. | def O_Cr(YKHO):
sjSB = T8Qg(user=YKHO.myUser)
sjSB.save()
sjSB.members.create(datatype=YKHO.RNA_dt, column_name='ColumnTwo', column_idx=3)
YKHO.assertRaisesRegexp(sUXu, ZbWC.escape('Column indices of CompoundDatatype "{}" are not consecutive starting from 1'.format(sjSB)), sjSB.clean) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cELa(YKHO, z3SE):\n naoj = z3SE['class_bit_field_0']\n Ghxe = z3SE['class_bit_field_1']\n PPnu = naoj + (Ghxe << 4)\n DgAC = []\n for bGrB in range(PPnu):\n g_PK = YKHO.buf.index(b'\\x00', YKHO.offset)\n xfuA = spK1(g_PK - YKHO.offset, 8)\n mWFP = YKHO.buf[YKHO.offset:YKHO.o... | [
"0.56843805",
"0.5434035",
"0.5398631",
"0.5347434",
"0.53192735",
"0.5292659",
"0.5288862",
"0.5255923",
"0.5244468",
"0.5240704",
"0.5213763",
"0.52068263",
"0.52006346",
"0.51902205",
"0.5169744",
"0.51570386",
"0.51374906",
"0.51345754",
"0.51209456",
"0.5101188",
"0.5101... | 0.5037391 | 27 |
Test creation of a CompoundDatatype using the API. | def CW30(YKHO):
YKHO.string_dt = zykr.objects.get(pk=sb_0.STR_PK)
yr85 = {'name': 'GoodCDT', 'members': [{'column_idx': 1, 'column_name': 'col1', 'datatype': YKHO.string_dt.pk}, {'column_idx': 2, 'column_name': 'col2', 'datatype': YKHO.string_dt.pk}], 'groups_allowed': [Biqu().name]}
QePW = YKHO.factory.pos... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CW30(YKHO):\n yr85 = {'name': 'GoodCDT', 'members': [{'column_idx': 1, 'column_name': 'col1', 'datatype': YKHO.string_dt.pk}, {'column_idx': 2, 'column_name': 'col2', 'datatype': YKHO.string_dt.pk}], 'groups_allowed': [Biqu().name]}\n IhIe = nbmM(data=yr85, context=YKHO.kive_context)\n YKHO.assertTrue... | [
"0.7073179",
"0.6377604",
"0.6355486",
"0.63418305",
"0.61910355",
"0.6124242",
"0.61169785",
"0.6101096",
"0.5889464",
"0.5791354",
"0.5756871",
"0.5753004",
"0.57523793",
"0.57203054",
"0.568016",
"0.5660894",
"0.5651366",
"0.5650097",
"0.5647187",
"0.5623311",
"0.56194395"... | 0.63262254 | 4 |
Obtain indices of all faces sharing an edge. | def VcJr(Oa1e: pp.Grid, tTpl: np.ndarray) -> oyIN.ndarray:
if Oa1e.dim == 1:
y_PJ = tTpl
elif Oa1e.dim == 2:
y_PJ = Oa1e.face_nodes[tTpl].nonzero()[1]
elif Oa1e.dim == 3:
n8o7 = Oa1e.face_nodes[tTpl[0]].nonzero()[1]
riYg = Oa1e.face_nodes[tTpl[1]].nonzero()[1]
y_PJ = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QPTh(YKHO, D70y):\n P6bq, Ty9i = D70y\n return (YKHO.halfedge[P6bq][Ty9i], YKHO.halfedge[Ty9i][P6bq])",
"def dFkd(YKHO):\n return fXG2.arange(YKHO.mesh.numberOfFaces)",
"def dFkd(YKHO):\n return fXG2.arange(YKHO.mesh.offset, YKHO.mesh.offset + YKHO.mesh.numberOfFaces)",
"def C9JL(YKHO):\n ... | [
"0.71867424",
"0.6986953",
"0.6971755",
"0.6885166",
"0.67627025",
"0.67315346",
"0.67097896",
"0.66960394",
"0.66726995",
"0.6649621",
"0.66266865",
"0.660404",
"0.6590414",
"0.6446716",
"0.64415",
"0.63960785",
"0.6391773",
"0.6390241",
"0.6385693",
"0.6373166",
"0.63540256... | 0.74021006 | 0 |
Initial values for the Darcy fluxes, p, T and u. | def iJka(YKHO) -> None:
for Oa1e, Csk6 in YKHO.gb:
Csk6[_oWe.PARAMETERS] = _oWe.Parameters()
Csk6[_oWe.PARAMETERS].update_dictionaries([YKHO.mechanics_parameter_key, YKHO.mechanics_temperature_parameter_key, YKHO.scalar_parameter_key, YKHO.temperature_parameter_key])
YKHO._update_all_apertures(t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NDOx(YKHO):\n YKHO.pressure_nodes[1].dof.fix()\n YKHO.pressure_nodes[1].dof.set_value(YKHO.initial_pressure)",
"def XftE(YKHO, lGE9, nJ9F):\n super().set_initial_values(lGE9, nJ9F[0:4])\n YKHO.converter.u_dc0 = nJ9F[4].real\n YKHO.converter.i_L0 = nJ9F[5].real",
"def Tp0e(YKHO):\n YKHO.te... | [
"0.67108923",
"0.6703442",
"0.6690285",
"0.6470666",
"0.64581996",
"0.6450486",
"0.6337652",
"0.63114434",
"0.6235479",
"0.6226363",
"0.62010664",
"0.61853015",
"0.6156994",
"0.6134677",
"0.6134216",
"0.6118561",
"0.6110228",
"0.6071199",
"0.6052892",
"0.6048202",
"0.604749",... | 0.5843319 | 46 |
Set rock and fluid properties to those of granite and water. We ignore all temperature dependencies of the parameters. | def GNGr(YKHO):
YKHO.rock = r4hX()
YKHO.fluid = wmZF() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cwOR(YKHO):\n YKHO.YOUNG = 40000000000.0\n YKHO.POISSON = 0.2\n YKHO.BIOT = 0.8\n YKHO.POROSITY = 0.01\n YKHO.COMPRESSIBILITY = 4.4e-10\n YKHO.PERMEABILITY = 5e-20\n YKHO.VISCOSITY = 0.0001\n YKHO.FRICTION = 0.5\n YKHO.FLUID_DENSITY = 930 * 0\n YKHO.ROCK_DENSITY = 2700.0 * 0\n ... | [
"0.764757",
"0.6438653",
"0.6270475",
"0.6244941",
"0.61975586",
"0.6086331",
"0.6059402",
"0.6035876",
"0.5989121",
"0.5976371",
"0.59290826",
"0.579268",
"0.5775286",
"0.57692033",
"0.5757269",
"0.5707182",
"0.57002044",
"0.5699697",
"0.5679408",
"0.5674924",
"0.5644407",
... | 0.8031813 | 0 |
Compute effective thermal parameter as porosity weighted sum. | def YXlH(YKHO, Oa1e, x_UZ, P_x3) -> float:
rVnq = YKHO._porosity(Oa1e)
return rVnq * x_UZ + (1 - rVnq) * P_x3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F_gh(YKHO) -> P6bq.W / (P6bq.K * P6bq.m):\n ...",
"def _9Eu(YKHO):\n KMvS = YKHO.atmosphere.ratio_of_specific_heats()\n return YKHO.atmosphere.temperature() * (1 + (KMvS - 1) / 2 * YKHO.mach() ** 2)",
"def CJ2p(YKHO):\n return YKHO.number_density * YKHO.temperature * hAVj.k * 10000000.0",
"de... | [
"0.72568816",
"0.6465129",
"0.64312196",
"0.64267945",
"0.6331558",
"0.6289432",
"0.6246529",
"0.6199506",
"0.6182068",
"0.61675036",
"0.612653",
"0.6104469",
"0.60946244",
"0.608352",
"0.6072659",
"0.6058168",
"0.60455126",
"0.6042864",
"0.60412025",
"0.60265213",
"0.6005134... | 0.0 | -1 |
For TM, the coefficient is the product of the bulk modulus (=inverse of the compressibility) and the volumetric thermal expansion coefficient. | def yD0E(YKHO, Oa1e):
if Oa1e.dim == YKHO._Nd:
return YKHO.rock.BULK_MODULUS * 3 * YKHO.rock.THERMAL_EXPANSION
else:
X73w = YKHO.gb.node_props(Oa1e)[_oWe.STATE][_oWe.ITERATE]
RTOE = X73w[YKHO.temperature_variable] * YKHO.temperature_scale
AEBY = YKHO.fluid.specific_heat_capacity(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F_gh(YKHO) -> P6bq.W / (P6bq.K * P6bq.m):\n ...",
"def PCoy(YKHO, TYz5):\n t7Zg = 4\n if TYz5 <= 3:\n return 0\n else:\n return 0.8",
"def AjKC(nMvt, XP5J, Nq1b, Kt_s, PXVk):\n return BMxC(nMvt(Kt_s), Kt_s, PXVk) / (XP5J(Kt_s) * Nq1b(Kt_s))",
"def lk9W(YKHO):\n if len(YKHO... | [
"0.67527384",
"0.6573659",
"0.6309862",
"0.6299517",
"0.62964773",
"0.62964773",
"0.62964773",
"0.62964773",
"0.62964773",
"0.62793875",
"0.6247535",
"0.62115216",
"0.61611134",
"0.6144544",
"0.61413145",
"0.6100797",
"0.60872084",
"0.60701525",
"0.60491055",
"0.60491055",
"0... | 0.0 | -1 |
Obtain indices of all faces sharing one or two nodes. | def eM2i(Oa1e: pp.Grid, tTpl: np.ndarray) -> oyIN.ndarray:
if tTpl.size < 2:
assert Oa1e.dim < 3
y_PJ = Oa1e.face_nodes[tTpl[0]].nonzero()[1]
elif tTpl.size == 2:
n8o7 = Oa1e.face_nodes[tTpl[0]].nonzero()[1]
riYg = Oa1e.face_nodes[tTpl[1]].nonzero()[1]
y_PJ = oyIN.interse... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dFkd(YKHO):\n return fXG2.arange(YKHO.mesh.numberOfFaces)",
"def dFkd(YKHO):\n return fXG2.arange(YKHO.mesh.offset, YKHO.mesh.offset + YKHO.mesh.numberOfFaces)",
"def I50H(YKHO):\n return fXG2.arange(0, YKHO.mesh.numberOfFaces)",
"def DrHq(YKHO):\n return fXG2.arange(YKHO.mesh.numberOfFaces)"... | [
"0.66959107",
"0.6669036",
"0.65689147",
"0.65593237",
"0.6542679",
"0.6542058",
"0.6442407",
"0.6441058",
"0.64362353",
"0.64019716",
"0.635321",
"0.63157475",
"0.6310227",
"0.6251646",
"0.62393075",
"0.61771244",
"0.6159515",
"0.60867506",
"0.60351425",
"0.59900826",
"0.598... | 0.71596533 | 0 |
Ensure we get the price attribute if it is not None when calling get_price_or_default() | def c8u8(YKHO):
kWN_ = _Ci5.objects.create(period=YKHO.period, price=1, start_time=rIAI.now(), end_time=rIAI.now() + fCoM(hours=4))
YKHO.assertNotEqual(YKHO.period.price, kWN_.price)
YKHO.assertEqual(kWN_.billing_price, kWN_.price) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qM26(YKHO):\n for AIu6 in YKHO:\n if AIu6.product_id and AIu6.inter_transfer_id.state:\n if AIu6.inter_transfer_id.state in 'draft':\n Mc9N = AIu6.with_context(force_company=1).product_id\n AIu6.price = Mc9N.base_imponible_costo\n AIu6.net_price... | [
"0.6594776",
"0.6454253",
"0.64032894",
"0.6402322",
"0.64006376",
"0.63279676",
"0.63204885",
"0.62148815",
"0.6192643",
"0.6151592",
"0.61332446",
"0.61320186",
"0.61206776",
"0.61195475",
"0.61195475",
"0.61195475",
"0.61195475",
"0.61195475",
"0.61195475",
"0.61195475",
"... | 0.0 | -1 |
Ensure we get the period's price if the price attribute is None when calling get_price_or_default() | def QMOe(YKHO):
kWN_ = _Ci5.objects.create(period=YKHO.period, price=None, start_time=rIAI.now(), end_time=rIAI.now() + fCoM(hours=4))
YKHO.assertEqual(kWN_.billing_price, YKHO.period.price) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qM26(YKHO):\n for AIu6 in YKHO:\n if AIu6.product_id and AIu6.inter_transfer_id.state:\n if AIu6.inter_transfer_id.state in 'draft':\n Mc9N = AIu6.with_context(force_company=1).product_id\n AIu6.price = Mc9N.base_imponible_costo\n AIu6.net_price... | [
"0.6493842",
"0.6325939",
"0.63086313",
"0.6296666",
"0.6072997",
"0.59549934",
"0.5937764",
"0.5934652",
"0.5915184",
"0.588892",
"0.5859245",
"0.58522415",
"0.5832859",
"0.58191156",
"0.5792131",
"0.5780347",
"0.5775186",
"0.5755953",
"0.57542396",
"0.57465345",
"0.572722",... | 0.66110885 | 0 |
Initialise StackingRegressor with base and meta regressors. | def FIMM(YKHO, tLmY, QZSr, g9kA=False):
super(kJMD, YKHO).__init__(base_estimators=tLmY, meta_estimator=QZSr, use_orig_features=g9kA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tO0E():\n tRbc.LinearReg()\n tRbc.SvmLinearReg()\n tRbc.DecsionTreeReg()\n tRbc.RandomForestReg()",
"def KMGv(YKHO) -> _lsB:\n GPtr = YKHO._config.get('REGRESSOR', {})\n YKHO._criterion = GPtr.get('CRITERION', 'mse')\n xiX8 = GPtr.get('MAX_FEATURES', 'sqrt')\n if xiX8 == 'none':\n ... | [
"0.72888887",
"0.67499727",
"0.6704514",
"0.6415503",
"0.6399387",
"0.6120653",
"0.6064987",
"0.60556465",
"0.6023358",
"0.5960869",
"0.59608656",
"0.59594434",
"0.5921025",
"0.5905208",
"0.58595365",
"0.5845713",
"0.57964146",
"0.57603836",
"0.5708092",
"0.56793755",
"0.5649... | 0.7874034 | 0 |
Post request that allow to create a new State if exists the name or raise Error if is not a valid json or if the name is missing | def nxW9():
if not QePW.get_json():
return Yxsy(pz3A({'error': 'Not a JSON'}), 400)
qv1X = QePW.get_json()
if 'name' not in qv1X:
return Yxsy(pz3A({'error': 'Missing name'}), 400)
QTBn = wHLO(**qv1X)
QTBn.save()
return Yxsy(pz3A(QTBn.to_dict()), 201) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def esNN():\n if not QePW.get_json():\n eTsH(400, description='Not a JSON')\n elif 'name' not in QePW.get_json():\n eTsH(400, description='Missing name')\n else:\n TBsA = QePW.get_json()\n AJEJ = wHLO(**TBsA)\n AJEJ.save()\n return Yxsy(pz3A(AJEJ.to_dict()), 201)"... | [
"0.82551706",
"0.81538975",
"0.7890589",
"0.78884107",
"0.7871858",
"0.77051663",
"0.76831305",
"0.75215834",
"0.7462358",
"0.74378955",
"0.7432163",
"0.7374471",
"0.73233414",
"0.692772",
"0.66544354",
"0.6527695",
"0.65114224",
"0.64965856",
"0.6489835",
"0.6467404",
"0.644... | 0.6819993 | 14 |
Investigate if path is nonexistant or older than provided reference path. | def cKtl(pmON, a1OC, sWmO=None):
sWmO = sWmO or '.'
pmON = IE9V(pmON, cwd=sWmO)
a1OC = IE9V(a1OC, cwd=sWmO)
if not Hy7s.path.exists(pmON):
return True
if Hy7s.path.getmtime(a1OC) - 1e-06 >= Hy7s.path.getmtime(pmON):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nsGh(pmON):\n return True",
"def nsGh(pmON):\n return True",
"def ezz0(YKHO, Eorv, pmON):\n return True",
"def Cv8g(YKHO, Edrf, pmON):\n pass",
"def tr1n(YKHO):\n pmON = ckRy.path('/path/to/nowhere')\n YKHO.assertGreaterEqual(pmON, False)\n YKHO.assertGreaterEqual(pmON, ckRy.path(N... | [
"0.65117556",
"0.65117556",
"0.6355327",
"0.6291178",
"0.61890775",
"0.6177539",
"0.6131889",
"0.6081308",
"0.60695046",
"0.60246867",
"0.6023664",
"0.60192996",
"0.5978077",
"0.5978077",
"0.5923599",
"0.58986324",
"0.589256",
"0.58675003",
"0.5860098",
"0.58510894",
"0.58509... | 0.69136095 | 0 |
We need to filter out the missing values from a vector. Because we don't want to use those values to determine bin boundaries. Note pd.DataFrame.isna and pd.DataFrame.isnull are identical | def trwd(YKHO, EcVT: pd.DataFrame, LVAh):
with rLdf.option_context('mode.use_inf_as_na', True):
xDpu = rLdf.isna(EcVT).values
rTfk = EcVT[~xDpu]
if LVAh is not None and len(LVAh) > 0:
_Iob = LVAh[~xDpu]
else:
_Iob = LVAh
return (rTfk, _Iob) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NC5J(WKvO):\n ErFd = WKvO.copy()\n ErFd = ErFd[:, [oyIN.count_nonzero(WKvO.T[YRbF] == -999) == 0 for YRbF in range(WKvO.shape[1])]]\n return ErFd",
"def RlXw(YKHO):\n RlXw = YKHO.data.isnull().sum()\n return RlXw[RlXw > 0]",
"def li5L(jQ3Z):\n print('just drop all the samples with missing... | [
"0.63035405",
"0.60564154",
"0.6042942",
"0.60222644",
"0.5971844",
"0.59381926",
"0.5933993",
"0.5891487",
"0.5875416",
"0.5874341",
"0.5864869",
"0.5841248",
"0.5838134",
"0.5834387",
"0.58132136",
"0.57890505",
"0.573018",
"0.57256454",
"0.5724524",
"0.57233065",
"0.568512... | 0.58805573 | 8 |
Make sure all specials columns are also in the data. | def FoQm(faXt: Dict, kc1W: List) -> None:
yk4i = set(faXt.keys()).difference(set(kc1W))
if len(yk4i) > 0:
raise ValueError(f'Features {yk4i} are defined in the specials dictionary, but not in the variables.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BP0P(YKHO):\n usx6 = [(riCw('Product High'), riCw('Category B'), riCw('5'))]\n YKHO.assertFalse(YKHO.get_parse_as_data(usx6))",
"def wRSs(YKHO, bo34):\n fIQ3 = 1\n YFx1 = L4Dn.valid_columns_for_instrument(fIQ3)\n YKHO.assertIn('not_special', YFx1, \"'not_special' reference is not in returned c... | [
"0.68494844",
"0.65111065",
"0.6325178",
"0.6304507",
"0.61854976",
"0.6138994",
"0.6112251",
"0.609496",
"0.6094192",
"0.6089932",
"0.60800564",
"0.60640913",
"0.60306776",
"0.60293895",
"0.60033965",
"0.5993189",
"0.5985846",
"0.5973428",
"0.59683096",
"0.5966588",
"0.59268... | 0.0 | -1 |
Save the features bucket to a yaml file. | def POvz(YKHO, J7Cn: PathLike) -> None:
mrZR(YKHO)
if isinstance(YKHO.features_bucket_mapping_, dict):
W5DX(YKHO.features_bucket_mapping_).save_yml(J7Cn)
else:
YKHO.features_bucket_mapping_.save_yml(J7Cn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q24I(YKHO, pmON: str):\n _fuv = jth9.deepcopy(YKHO.as_dict())\n for BZ2A, RDhP in _fuv['features']:\n if RDhP is not None:\n _fuv['features'][BZ2A] = RDhP.to_json()\n STbT(_fuv, pmON)",
"def q24I(YKHO, pmON: str):\n _fuv = jth9.deepcopy(YKHO.as_dict())\n for BZ2A, RDhP in _fu... | [
"0.69992244",
"0.69992244",
"0.6740695",
"0.6686852",
"0.6618992",
"0.6582585",
"0.65440315",
"0.6538081",
"0.6463326",
"0.6455249",
"0.64525235",
"0.6440676",
"0.6371933",
"0.63566667",
"0.6327285",
"0.632053",
"0.6298838",
"0.6281974",
"0.62464094",
"0.6236034",
"0.62160945... | 0.71457994 | 0 |
Estimator tags are annotations of estimators that allow programmatic inspection of their capabilities. | def Vw9e(YKHO):
return {'binary_only': True, 'allow_nan': True} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, BHCt=axnu()):\n YKHO.estimator = BHCt",
"def I5ZD(YKHO, NArs):\n pass",
"def k07C(YKHO):\n raise NotImplementedError('You must implement a set estimator method')",
"def _ExI(p4_k):\n return Kih9(p4_k, ['tensorflow', 'estimator'])",
"def hWjk(YKHO):\n cKa4 = lLiJ.to_metric_metr... | [
"0.5808487",
"0.5800978",
"0.5740526",
"0.56636655",
"0.55417407",
"0.5514237",
"0.5514048",
"0.54900086",
"0.54893494",
"0.54893494",
"0.54893494",
"0.5474867",
"0.5464826",
"0.5361892",
"0.5346948",
"0.5336608",
"0.5336608",
"0.526538",
"0.52474713",
"0.5246185",
"0.5217808... | 0.0 | -1 |
Update the series of an existing trace. If the series is different, set `self._changed` to True. | def eUQl(YKHO, mWFP: str, dy_H: pd.Series):
yKIT = YKHO[mWFP]
if yKIT.update_series(dy_H) and yKIT.is_visible():
YKHO._changed = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _reS(YKHO, mWFP: str, dy_H: pd.Series, SLQE: Optional[str]=None):\n if SLQE is not None:\n try:\n YKHO[SLQE].add(mWFP)\n except KeyError:\n YKHO[SLQE] = {mWFP}\n if mWFP in YKHO._series_dict:\n YKHO[mWFP] = dy_H\n YKHO._plotter.update_trace_series(mWFP, d... | [
"0.71999",
"0.678994",
"0.67417884",
"0.67417884",
"0.6362618",
"0.6316496",
"0.62861",
"0.60983443",
"0.5849486",
"0.5837507",
"0.58355004",
"0.5804868",
"0.57491463",
"0.57451725",
"0.5741314",
"0.57189685",
"0.57070625",
"0.5693209",
"0.56872535",
"0.567188",
"0.5661923",
... | 0.82493585 | 0 |
Plot variable if it is of type pd.DataFrame and has plottable columns. | def kAeo(YKHO, mWFP: str, SRYB: Any) -> bool:
if not isinstance(SRYB, rLdf.DataFrame):
return False
if mWFP in YKHO._series_dict:
YKHO._delete_trace(mWFP)
ZLJ_ = {fvDH: SRYB[fvDH] for fvDH in SRYB.columns}
for fvDH, dy_H in ZLJ_.items():
OGm4 = EOTa.format(mWFP, fvDH)
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kj9G(YKHO, iVRZ=None):\n YKHO.df.plot(column=iVRZ)",
"def s3m4(YKHO):\n print('Plotting')\n fDz8 = nXQd(jQ3Z)\n fDz8.visualize()\n return",
"def ryOt(jQ3Z, NkBi, ZLJ_, jk7u, VoLU, IICq, leAC, _Cnz, hksT=0, _jGM=False, f8H1=False):\n jQ3Z.loc[:, ZLJ_].plot(x=NkBi, xlim=jk7u, style=_Cnz, fi... | [
"0.686157",
"0.6673179",
"0.660579",
"0.6527975",
"0.6448339",
"0.6382026",
"0.63497627",
"0.6239781",
"0.62388927",
"0.620911",
"0.6138385",
"0.61366856",
"0.6110945",
"0.6104719",
"0.6091791",
"0.60793895",
"0.6072748",
"0.6058548",
"0.60173285",
"0.6008066",
"0.60061073",
... | 0.63755596 | 6 |
Return a PDF annotation assignment (HTML response). Download the PDF file to be annotated from Canvas's API and save it to a cache directory on disk, if the file hasn't been cached already. This requires an access token for the Canvas API. If we don't have one then kick off an authorization code flow to get one, redire... | def yhWc(QePW, iJ13, ZOjS, aHOq, GQfX, mWFP, BWXx):
aqR5 = gnPz.requests.capture_post_data(QePW)
WpAY = BWXx
yQzl = QePW.find_service(name='auth_data')
try:
qPFg = yQzl.get_lti_token(iJ13)
except KeyError:
return gnPz.simple_response("We don't have the Consumer Key %s in our database... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cMc2(QePW, UpoN, K7Em, K1SC):\n GJjC = K8PR.get_object_or_404(FYrf.SubmissionPage, submission=K7Em, page_number=int(K1SC))\n ICn2 = K8PR.get_object_or_404(FYrf.FreeformAnnotation, submission_page=GJjC)\n LNo8 = G4JS.get(ICn2.annotation_image.url, stream=True)\n return Xqgu.StreamingHttpResponse(LNo... | [
"0.624694",
"0.5808591",
"0.5573419",
"0.550699",
"0.53458625",
"0.5343995",
"0.5216176",
"0.520388",
"0.5151403",
"0.5134455",
"0.50994486",
"0.50803757",
"0.50687134",
"0.5029996",
"0.5006403",
"0.49910918",
"0.49854666",
"0.49658647",
"0.4962875",
"0.49303797",
"0.49249443... | 0.5875977 | 1 |
Return the user marked as the default administrator OR the first admin if none are default. | def cnwX(YKHO):
ng0F = YKHO.communityadmin_set.filter(is_default=True)
if ng0F:
return ng0F[0].user
KbiT = YKHO.communityadmin_set.all()
if KbiT:
return KbiT[0].user | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X5Zj():\n return egNl().objects.get(username='admin0')",
"def E_lX(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'administrator_login')",
"def E_lX(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'administrator_login')",
"def E_lX(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4... | [
"0.7271948",
"0.6695996",
"0.6695996",
"0.6695996",
"0.66111845",
"0.6575227",
"0.6510068",
"0.6380162",
"0.62920046",
"0.61828506",
"0.6181036",
"0.6181036",
"0.61767995",
"0.61701316",
"0.6168604",
"0.6159452",
"0.6159452",
"0.61581933",
"0.6152197",
"0.612797",
"0.60802925... | 0.84327775 | 0 |
Get the stream URL. | def DXz0(YKHO):
bD7m = YKHO._get_stream_url_func(YKHO.alprstream_pointer)
bD7m = LxHa(bD7m)
return bD7m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Irfz(YKHO):\n return YKHO.streaming_url",
"def locQ(YKHO):\n return YKHO.track_body.get('streaming_url', None)",
"def DXz0():\n return llUV[KHP_.getSetting(iT2K, 'res_stream')]",
"def llUV(YKHO) -> str:\n wCIG = Qq1m.format(host=YKHO.config.host, video=YKHO.video_query, audio=YKHO.audio_query... | [
"0.85495496",
"0.8266091",
"0.8192544",
"0.7809798",
"0.7751131",
"0.7425107",
"0.73896796",
"0.7330057",
"0.72977716",
"0.71196985",
"0.7101666",
"0.71006984",
"0.7077669",
"0.70752656",
"0.7068722",
"0.7065761",
"0.7064269",
"0.7059724",
"0.70433915",
"0.704232",
"0.7016777... | 0.88183737 | 0 |
Given two complete drillholes A, B (no gaps and up to the end of the drillhole), this function returns the smaller of two intervals la = FromA[ia] lb = FromB[ib] and updates the indices ia and ib. There are three possible outcomes FromA[ia] == FromB[ib]+/ tol. Returns mean of FromA[ia], FromB[ib] and ia+1, ib+1 FromA[i... | def Mw_k(pEuX, Ae2G, h16r, YV7q, yJiH=0.01):
if pEuX == Ae2G:
return (h16r + 1, YV7q + 1, pEuX)
if pEuX < Ae2G:
return (h16r + 1, YV7q, pEuX)
if Ae2G < pEuX:
return (h16r, YV7q + 1, Ae2G) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wumi(k0lF, tjUW):\n k0lF /= oyIN.sum(k0lF)\n tjUW /= oyIN.sum(tjUW)\n AcYW = oyIN.sum(oyIN.minimum(k0lF, tjUW))\n return AcYW",
"def GERS(k0lF, tjUW):\n Smc5 = -1\n UHFx = 0\n for YRbF in range(len(tjUW)):\n print('Compare for prev_seg_end_point ' + str(Smc5))\n if k0lF[YR... | [
"0.6101104",
"0.5993394",
"0.59255767",
"0.5881558",
"0.5858839",
"0.5858368",
"0.5852995",
"0.58154523",
"0.58135086",
"0.5810865",
"0.57527405",
"0.5746716",
"0.57411575",
"0.5729806",
"0.5729731",
"0.5695375",
"0.56820524",
"0.56261766",
"0.5625342",
"0.56188774",
"0.55867... | 0.56434685 | 17 |
Normalize the q of the problem. Currently unused. | def bPEU(zQZR, mecR):
zJre = 0
for zn0c in zQZR:
for uOe2 in range(mecR):
zJre += zn0c.q[uOe2]
for zn0c in zQZR:
for uOe2 in range(mecR):
zn0c.q[uOe2] = zn0c.q[uOe2] / zJre | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO):\n if YKHO.norm() > YKHO.epsilon:\n YKHO.q /= YKHO.norm()",
"def NkkI(YKHO, jylo):\n wjRY = jylo[0] + jylo[1]\n if wjRY == 0:\n return jylo\n jylo[0] = jylo[0] / wjRY\n jylo[1] = jylo[1] / wjRY\n return jylo",
"def NkkI(YKHO):\n VZ4h = YKHO.q_rot.norm()\n YK... | [
"0.75208044",
"0.72478044",
"0.71481276",
"0.7085517",
"0.693411",
"0.6581782",
"0.64665157",
"0.6413719",
"0.63522875",
"0.6326465",
"0.6302619",
"0.6296929",
"0.6258666",
"0.62312925",
"0.6217584",
"0.61102515",
"0.6100101",
"0.60879654",
"0.6080686",
"0.60794365",
"0.60686... | 0.0 | -1 |
Test event creation through the API. Only users belonging to the CM group (or superuser) can create events | def aO30(YKHO):
x0hE = iJSR()
Ehzw = {'name': 'Event 3', 'description': 'Description', 'subtitle': 'subtitle', 'event_url': 'http://www.gogle.com'}
geh0 = x0hE.post('/events/', data=Ehzw, format='json')
YKHO.assertEquals(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)
ERVO = WR89.b64encode('test_username... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lGCH(YKHO, x0hE, gtbI, CBIr, uOe2, Ehzw):\n geh0 = x0hE.post('/api/events', Ehzw, **gtbI)\n assert geh0.data == {**Ehzw, 'id': 1, 'description': '', 'created_by': CBIr.username, 'start_date': _t8W(Ehzw['start_date']), 'end_date': None}\n assert QRWf.objects.filter(title=Ehzw['title']).exists()",
"de... | [
"0.81506747",
"0.76805866",
"0.76162535",
"0.7536025",
"0.75046456",
"0.7346244",
"0.7311473",
"0.72806084",
"0.72296035",
"0.70684195",
"0.6963601",
"0.6934075",
"0.6897648",
"0.68846786",
"0.68507946",
"0.68021035",
"0.6734251",
"0.67322916",
"0.66559947",
"0.6623307",
"0.6... | 0.81274265 | 1 |
Returns the L_index coefficient, according to Antal et al. (2009), as given by equation 1. L_k = \frac{1}{n} \sum_{i=1}^{n} (a_{kk}+a_{ki}a_{ik}a_{ii}) | def uWdZ(d6pt, fmHk):
zNig = fmHk.shape[0]
QjOl = 0
for YRbF in range(0, zNig):
QjOl = QjOl + (fmHk[d6pt, d6pt] + fmHk[d6pt, YRbF] - fmHk[YRbF, d6pt] - fmHk[YRbF, YRbF])
return FCE9.together(FCE9.simplify(QjOl / zNig), zNig) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WVJY(YKHO, or8S):\n return or8S * 2",
"def oSk6(G1Hx):\n return r845 + (YRbF - 1) * YRbF / 2",
"def tTAA(y4NN, r8hN, g_JW):\n return y4NN * (y4NN + 1) - g_JW ** 2 + r8hN",
"def NaS4(YRbF, r845, G1Hx):\n return (bNBd + 1) * ((E55c + 1) * YRbF + r845) + G1Hx",
"def s_CC(exwG, G1Hx):\n retu... | [
"0.73049355",
"0.69127107",
"0.68521786",
"0.6823667",
"0.6806145",
"0.66496104",
"0.6592055",
"0.6501146",
"0.6498996",
"0.6462571",
"0.64389145",
"0.6308886",
"0.6297142",
"0.62870544",
"0.62870544",
"0.62806255",
"0.6254663",
"0.6230806",
"0.62206084",
"0.61586905",
"0.615... | 0.61419046 | 22 |
Converts a numpy array into sympy.Matrix | def mpv4(qw7D):
return FCE9.Matrix(qw7D.shape[0], qw7D.shape[1], lambda YRbF, r845: qw7D[YRbF, r845]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ty5u(qw7D):\n assert len(qw7D.shape) == 2, 'The array must be two dimmentional'\n nPrm = []\n for ezWE in qw7D:\n for LihS in ezWE:\n nPrm.append(mPYi(oyIN.real(LihS), oyIN.imag(LihS)))\n _plf = aLMY(qw7D.shape[0], qw7D.shape[1], nPrm)\n return _plf",
"def GaKA(YKHO):\n fr... | [
"0.7459694",
"0.7153884",
"0.7005053",
"0.677453",
"0.6650593",
"0.66503745",
"0.66503745",
"0.66217995",
"0.65585995",
"0.6509298",
"0.65027016",
"0.6483795",
"0.6453709",
"0.64399326",
"0.6410083",
"0.63228244",
"0.6316179",
"0.6307556",
"0.6270022",
"0.62547064",
"0.625262... | 0.82797587 | 0 |
Map 32 character to number | def YH06(Npgh):
if ord('0') <= ord(Npgh) <= ord('9'):
return ord(Npgh) - ord('0')
elif ord('A') <= ord(Npgh) <= ord('Z'):
return ord(Npgh) - ord('A') + 10
else:
return None
raise ValueError(f'Not correct value of {Npgh}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m83H(GIN8):\n return ''.join(map(lambda vC9B: sWCX[ord(vC9B) - ord('a')], GIN8))",
"def YAg3(lzhM: str) -> int:\n y8UN = {'一': 1, '二': 2, '三': 3, '四': 4, '五': 5, '六': 6, '七': 7, '八': 8, '九': 9, '十': 10}\n if len(lzhM) == 1:\n return y8UN.get(lzhM)\n elif len(lzhM) == 2:\n return 10 ... | [
"0.69107246",
"0.6901625",
"0.67549753",
"0.66756284",
"0.66484946",
"0.6602778",
"0.6554433",
"0.6514736",
"0.6412386",
"0.6385878",
"0.63760173",
"0.6365225",
"0.6316552",
"0.63093036",
"0.63031393",
"0.6292509",
"0.6278854",
"0.6257816",
"0.6244624",
"0.6229829",
"0.622577... | 0.69760436 | 0 |
Set the 'finished' state for this report. If that means a change, the report must be saved. | def ZhED(YKHO, zF0X, N1p7):
if zF0X == YKHO.isFinished():
return
YKHO.saveOnChanged(N1p7, zF0X)
Gaon('textChanged') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pt1K(YKHO, Pt1K):\n YKHO._finished = Pt1K",
"def IXlb(YKHO, IXlb):\n YKHO._is_finished = IXlb",
"def KNf6(YKHO, Pt1K=True):\n XeOP = YKHO.daofactory(classname='Subscriptions.MarkFinishedSubscriptions')\n XeOP.execute(YKHO['id'], conn=YKHO.getDBConn(), transaction=YKHO.existingTransaction())\n ... | [
"0.7603094",
"0.6923414",
"0.67787355",
"0.6618712",
"0.6610916",
"0.65815204",
"0.65812266",
"0.64967364",
"0.64967364",
"0.64459",
"0.64075494",
"0.63260454",
"0.632306",
"0.632306",
"0.632306",
"0.63131535",
"0.6312138",
"0.6191438",
"0.61872804",
"0.6180947",
"0.6180947",... | 0.60096985 | 34 |