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 |
|---|---|---|---|---|---|---|
Initializes weights using Kaiming He et al. (2015). Only convolution layers have learnable weights. All convolutions use a leaky relu activation function (negative_slope = 0.1) except the last which is just a linear output. | def vB93(YKHO):
with ht2j.no_grad():
YKHO._init_weights() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(yR_P, acCR=0):\n if isinstance(yR_P, (U78l.Conv2d, U78l.ConvTranspose2d)):\n U78l.init.kaiming_normal_(yR_P.weight.data, acCR)\n yR_P.bias.data.zero_()",
"def i7WW(YKHO):\n yYlq(YKHO.conv1)\n yYlq(YKHO.conv2)\n uHk4(YKHO.norm1)\n uHk4(YKHO.norm2)",
"def vB93(YKHO) -> None:... | [
"0.7530922",
"0.7115809",
"0.70792145",
"0.6918258",
"0.68732697",
"0.6850686",
"0.6803812",
"0.6799815",
"0.6769556",
"0.6758403",
"0.6749095",
"0.6749095",
"0.6749095",
"0.6725107",
"0.67078733",
"0.6699106",
"0.6634279",
"0.66204095",
"0.6601775",
"0.65797615",
"0.65797615... | 0.6725825 | 13 |
Generate an input image that maximizes the final Dense layer output corresponding to some class class. | def YYYN(YKHO, shpZ='fc', KQ2Q='', IA1T=3, Nc2M=20):
mgU1 = [or8S for or8S, gEmA in enumerate(YKHO.model.layers) if gEmA.name == shpZ][0]
d33m = []
for or8S in [Nc2M] * IA1T:
VXjJ = kGEa(YKHO.model, mgU1, filter_indices=or8S, max_iter=500)
VXjJ = BfDw.draw_text(VXjJ, str(or8S))
d33m.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cc7Y(YKHO, d6hw, nZt5):\n WKvO = rNyv(101)\n WKvO = yHwh(nZt5, (1, 1), kernel_initializer='he_normal', activation='linear', padding='valid', strides=(1, 1), kernel_regularizer=V70B(oNEO))(WKvO)",
"def Cc7Y(GhuM, KndY):\n C3ST = ileL()\n C3ST.add(yHwh(20, kernel_size=9, padding='same', input_shape... | [
"0.6708983",
"0.6171949",
"0.61025274",
"0.59712255",
"0.596562",
"0.59621865",
"0.5889845",
"0.582567",
"0.5824334",
"0.58145535",
"0.5776591",
"0.577273",
"0.57447594",
"0.5727517",
"0.5683086",
"0.5658841",
"0.5658407",
"0.56465864",
"0.5634805",
"0.5631828",
"0.5623851",
... | 0.0 | -1 |
Associate the specified route table to the specified subnet | async def associate(YKHO, UhU2, pyfM):
YKHO._client.associate_route_table(RouteTableId=UhU2, SubnetId=pyfM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yecy(Fknb, pyfM):\n geh0 = dRaJ.associate_route_table(RouteTableId=Fknb, SubnetId=pyfM)\n return geh0",
"def vwih():\n if XFtT:\n print('Would link the VPC and subnet in the route table.')\n return True\n VgIM = zRl1.vpc\n finE = zRl1.sub\n KEmf = zRl1.igw\n QZcN = [WKvO fo... | [
"0.7980144",
"0.71845025",
"0.6899577",
"0.6548851",
"0.616238",
"0.6066488",
"0.6058821",
"0.5992398",
"0.59419805",
"0.5936496",
"0.5929731",
"0.5908266",
"0.5905303",
"0.5875463",
"0.5871839",
"0.58340645",
"0.58267415",
"0.58092064",
"0.57885087",
"0.57583785",
"0.5719695... | 0.8255521 | 0 |
Check if the specified route table using the name exists | async def exists(YKHO, hLhr):
try:
if await YKHO.get_id(hLhr):
return True
except RAdA:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oGgH(k9X4, pmON):\n KAOR = Zq4h(pmON)\n Fa0T = [YRbF for YRbF, r845 in KAOR.actual_list.items()]\n return True if k9X4 in Fa0T else False",
"def Pylq(YKHO, px8m: str, JsOY: str) -> bool:\n return YKHO.run(\"existsTable('%s','%s')\" % (px8m, JsOY))",
"def n2Bh(YKHO, GTA_):\n return GTA_ in YK... | [
"0.7161614",
"0.6733002",
"0.6658079",
"0.661979",
"0.66126657",
"0.6576453",
"0.65729344",
"0.65590614",
"0.6552416",
"0.65392077",
"0.6531865",
"0.65291053",
"0.6525369",
"0.6516566",
"0.64875996",
"0.64805526",
"0.64751875",
"0.64390045",
"0.64074206",
"0.64074206",
"0.638... | 0.0 | -1 |
Get the main route table id attached to a specified vpc | async def get_main_rtb_id_from_vpc(YKHO, xOeT):
N2Yd = YKHO._client.describe_route_tables(Filters=[{'Name': 'vpc-id', 'Values': [xOeT]}, {'Name': 'association.main', 'Values': ['true']}])
try:
return N2Yd['RouteTables'][0]['Associations'][0]['RouteTableId']
except IndexError:
raise RAdA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y2VQ(cuiw, xOeT, Ym57):\n if cuiw is None:\n return None\n x0hE = cuiw.client('ec2')\n geh0 = x0hE.describe_route_tables(Filters=[{'Name': 'vpc-id', 'Values': [xOeT]}, {'Name': 'tag:Name', 'Values': [Ym57]}])\n if len(geh0['RouteTables']) == 0:\n return None\n else:\n return... | [
"0.7193369",
"0.64152586",
"0.6398741",
"0.6395726",
"0.6395726",
"0.6395726",
"0.6395726",
"0.6395726",
"0.6395726",
"0.6299454",
"0.6299454",
"0.6299454",
"0.6299454",
"0.6299454",
"0.6299454",
"0.6299454",
"0.6299454",
"0.6299454",
"0.6295589",
"0.6295589",
"0.6240656",
... | 0.8638846 | 0 |
Sets the container_name of this Options. | def G1wx(YKHO, G1wx):
YKHO._container_name = G1wx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO, mWFP):\n YKHO.container['name'] = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO.container['name'] = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.options['name'] = mWFP",
"def G1wx(YKHO):\n pass",
"def eGo6(YKHO, JKMw, zGKt):\n return zGKt",
"def KCib(YKHO, KCib):\n YKHO._container_id = KC... | [
"0.68004715",
"0.68004715",
"0.6698704",
"0.6679226",
"0.63754743",
"0.6177963",
"0.6028596",
"0.5975322",
"0.59642506",
"0.5952842",
"0.5949729",
"0.5949729",
"0.5932253",
"0.5932253",
"0.5932253",
"0.5932253",
"0.5916452",
"0.5892692",
"0.58421427",
"0.58270925",
"0.5827092... | 0.81974286 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, lE6K):
return False
return YKHO.to_dict() == Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.80891633",
"0.80891633",
"0.8055254",
"0.7983334",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, lE6K):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
"0.8042487",
... | 0.0 | -1 |
Get absolute path to resource, works for dev and for PyInstaller | def JFat(t_yv):
try:
XSj5 = HwRy._MEIPASS
except Exception:
XSj5 = Hy7s.path.abspath('.')
return Hy7s.path.join(XSj5, t_yv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep",
"def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join... | [
"0.8371822",
"0.8281945",
"0.82500875",
"0.8140755",
"0.81153977",
"0.81001383",
"0.80954826",
"0.80812496",
"0.80692154",
"0.8068952",
"0.8064015",
"0.8064015",
"0.8064015",
"0.8064015",
"0.8064015",
"0.8064015",
"0.8064015",
"0.80585384",
"0.80561507",
"0.8041909",
"0.80267... | 0.8046439 | 28 |
conversion unix timestamp to str format | def netS(VwNh):
BWXx = qcWV.fromtimestamp(VwNh)
return BWXx.strftime('%Y-%m-%d %H:%M:%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbe6(YKHO, i8WE):\n g55J = qcWV.datetime.fromtimestamp(i8WE)\n return YKHO.format_datetime(g55J)",
"def Errs(nPrm):\n return str(ITS7.mktime(nPrm.timetuple()))",
"def joq6(i8WE):\n return ip8D(nerg(i8WE))",
"def wozj(a1PO, FMLJ='%Y-%m-%d %H:%M:%S.000'):\n return qcWV.fromtimestamp(a1PO).st... | [
"0.7505882",
"0.73331577",
"0.73180467",
"0.7237942",
"0.7237942",
"0.72325796",
"0.7208728",
"0.7102412",
"0.70655805",
"0.7041109",
"0.70340234",
"0.69867146",
"0.6976715",
"0.69738454",
"0.69706464",
"0.6947854",
"0.69362104",
"0.6929564",
"0.6919992",
"0.68995273",
"0.686... | 0.67716634 | 26 |
The humanreadable name of the language. Use for self.get_info_dict() Raises an NotImplementedError if not overwritten. | def mWFP(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NaV1(YKHO):\n return YKHO.language_name",
"def Bmkt(YKHO) -> str:\n return YKHO.language",
"def K4RC(YKHO):\n if YKHO.enName:\n return YKHO.enName\n return YKHO.name",
"def bWkI(*qIxc, **B2fa):\n return nAU3.Locale_GetLanguageName(*qIxc, **B2fa)",
"def mWFP(YKHO, DuqQ):\n retur... | [
"0.83590657",
"0.7469342",
"0.74398685",
"0.74336946",
"0.740388",
"0.7354294",
"0.7354294",
"0.7339188",
"0.7313449",
"0.73072755",
"0.72624296",
"0.72363585",
"0.72198087",
"0.7186301",
"0.709679",
"0.709679",
"0.7094334",
"0.706892",
"0.70568806",
"0.70482373",
"0.7041437"... | 0.0 | -1 |
The name of the language in its localized version. This returns self.language() by default but can be overwritten in subclasses. | def aVN6(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NaV1(YKHO):\n return YKHO.language_name",
"def Bmkt(YKHO) -> str:\n return YKHO.language",
"def rQow(YKHO) -> str:\n return YKHO._language",
"def rQow(YKHO) -> str:\n return YKHO._language",
"def Bmkt(YKHO):\n return YKHO.lang",
"def Bmkt(YKHO):\n return YKHO.language",
"def rQow(... | [
"0.8891806",
"0.852259",
"0.83891976",
"0.83891976",
"0.83420074",
"0.8172584",
"0.8166991",
"0.8166991",
"0.80996853",
"0.8051275",
"0.8017129",
"0.8017129",
"0.8017129",
"0.8017129",
"0.8005064",
"0.79708767",
"0.7907234",
"0.79026175",
"0.7898901",
"0.7866133",
"0.7829279"... | 0.0 | -1 |
Convert time to string formatted to to locale's default date/time. | def vgJc(BWXx):
return ITS7.strftime('%c', ITS7.localtime(BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ry7t(DHri):\n if DHri is None:\n return u''\n if DHri.tzinfo is not None:\n try:\n rIAI = u' ' + DHri.tzinfo.tzname(DHri)\n except NotImplementedError:\n rIAI = DHri.strftime('%z')\n else:\n rIAI = u' UTC'\n a6yY = Kcnc(DHri, 'DATE_TIME')\n retur... | [
"0.7677523",
"0.7362637",
"0.6986561",
"0.6952355",
"0.6942945",
"0.66350526",
"0.66325575",
"0.6590962",
"0.6589478",
"0.6537305",
"0.65306735",
"0.65160406",
"0.65082526",
"0.64657295",
"0.6426139",
"0.64222014",
"0.6410087",
"0.6397695",
"0.639609",
"0.63525814",
"0.634404... | 0.58020633 | 88 |
Returns a data accessor for column. | def CUXk(YKHO, iVRZ):
return GOPn(YKHO, iVRZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CU1e(YKHO):\n return YKHO.column.accessor or k0lF(YKHO.name)",
"def yThU(YKHO, object):\n return getattr(object, YKHO.name)",
"def iBd8(YKHO, mWFP):\n return YKHO.column(mWFP)",
"def iBd8(Emd4, mWFP):\n return Emd4._columns[mWFP]",
"def JgjC(YKHO, fvDH):\n return YKHO._obj[fvDH].to_numpy... | [
"0.78067195",
"0.74959177",
"0.6950187",
"0.67827857",
"0.66103107",
"0.64918023",
"0.64521646",
"0.64137155",
"0.63880247",
"0.63789606",
"0.63674843",
"0.6363852",
"0.6327106",
"0.63044393",
"0.6233944",
"0.6227115",
"0.6211959",
"0.62066215",
"0.61935747",
"0.61376065",
"0... | 0.6482259 | 6 |
Convert cstring (nullterminated string) to python string. | def heBZ(Dhyu):
b9co = Dhyu.find('\x00')
if b9co == -1:
return Dhyu
else:
return Dhyu[:b9co] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ylYC(vIwR):\n return gk2W.c_char_p(vIwR.encode('utf-8'))",
"def rquJ(Gcbu: BinaryIO) -> bytes:\n vIwR = bytearray()\n while True:\n YB8B = Gcbu.read(1)\n if not YB8B or YB8B == b'\\x00':\n return bytes(vIwR)\n vIwR += YB8B",
"def GsEi(KCHu):\n try:\n retur... | [
"0.8101468",
"0.6951169",
"0.6903813",
"0.68005097",
"0.6789319",
"0.6671728",
"0.64522445",
"0.6438888",
"0.63993275",
"0.63708085",
"0.6347318",
"0.6252298",
"0.6238433",
"0.61751384",
"0.61609167",
"0.6122366",
"0.6109058",
"0.6105692",
"0.61002207",
"0.59915334",
"0.59629... | 0.0 | -1 |
Returns the match or an empty string. | def unoq(lcnE, uOe2=0):
if lcnE:
return lcnE.group(uOe2)
else:
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _ZNf(YKHO, kUBT):\n return ''",
"def PSvv(YKHO):\n mXDZ = ''\n KCHu = 'abcdef'\n YKHO.assertEqual(IaaG, ZbWC.search(mXDZ, KCHu).group())",
"def PSvv(YKHO):\n OXNr = ''\n KCHu = 'abcdef'\n YKHO.assertEqual(IaaG, ZbWC.match(OXNr, KCHu).group())",
"def n9he(YKHO):\n NaW5(None, qhLD(Y... | [
"0.79507387",
"0.64764625",
"0.6466959",
"0.6319046",
"0.6317875",
"0.6210361",
"0.616529",
"0.6061667",
"0.58991545",
"0.58730906",
"0.5867399",
"0.58345383",
"0.582758",
"0.58266807",
"0.58242995",
"0.58020985",
"0.5771622",
"0.5743972",
"0.5742049",
"0.57385296",
"0.572899... | 0.76447314 | 1 |
Return size of self.data, after, if necessary, packing it. | def R8e4(YKHO):
if not YKHO.changed:
return YKHO.size
yvT9 = ZyMD(ZnQG.StringIO())
YKHO.dumpData(yvT9)
YKHO.data = yvT9.getvalue()
nPrm.close()
YKHO.size = len(YKHO.data)
YKHO.setChanged(False)
return YKHO.size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiw9(YKHO):\n return YKHO._data_size",
"def zNig(YKHO):\n return YKHO.data.size",
"def R8e4(YKHO):\n if not YKHO.changed:\n return YKHO.size\n yvT9 = ZyMD(ZnQG.StringIO())\n YKHO.dumpData(yvT9)\n YKHO.data = yvT9.getvalue()\n yvT9.close()\n YKHO.size = len(YKHO.data)\n YKH... | [
"0.79109526",
"0.7802156",
"0.777342",
"0.7666639",
"0.7624621",
"0.7624621",
"0.7624621",
"0.7624621",
"0.7624621",
"0.76233584",
"0.7544752",
"0.7540108",
"0.75384873",
"0.7537705",
"0.75085723",
"0.74740255",
"0.7428007",
"0.74055505",
"0.7371733",
"0.73297143",
"0.7321144... | 0.7001552 | 51 |
Return size of self.data, after, if necessary, packing it. | def R8e4(YKHO):
if not YKHO.changed:
return YKHO.size
yvT9 = ZyMD(ZnQG.StringIO())
YKHO.dumpData(yvT9)
YKHO.data = yvT9.getvalue()
yvT9.close()
YKHO.size = len(YKHO.data)
YKHO.setChanged(False)
return YKHO.size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiw9(YKHO):\n return YKHO._data_size",
"def zNig(YKHO):\n return YKHO.data.size",
"def k7u0(YKHO) -> int:\n return YKHO._pack_size",
"def zNig(YKHO):\n return len(YKHO.data)",
"def zNig(YKHO):\n return len(YKHO.data)",
"def zNig(YKHO):\n return len(YKHO.data)",
"def zNig(YKHO):\n ... | [
"0.791279",
"0.7803657",
"0.7666002",
"0.76257974",
"0.76257974",
"0.76257974",
"0.76257974",
"0.76257974",
"0.7624669",
"0.7545911",
"0.7541531",
"0.75397",
"0.7538813",
"0.75085735",
"0.7475736",
"0.742872",
"0.7407118",
"0.7372853",
"0.7331235",
"0.7322147",
"0.7278654",
... | 0.77750313 | 2 |
Return True if object is a temp object. | def blPB(YKHO, object):
return object in YKHO.tempObjects | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xKy2(YKHO, mWFP: str) -> bool:\n return Hy7s.path.exists(YKHO._path_for_pickle(mWFP))",
"def bool(YKHO, YEnM):\n return True",
"def bool(YKHO, YEnM):\n return True",
"def xKy2(YEnM):\n return isinstance(YEnM, object) and type(YEnM) is not type and (type(YEnM) is not SnBA.FunctionType)",
"de... | [
"0.6585963",
"0.64631236",
"0.64631236",
"0.63785005",
"0.6301376",
"0.6285813",
"0.6240615",
"0.62181836",
"0.6160513",
"0.61474115",
"0.6085642",
"0.60410786",
"0.60282105",
"0.6014119",
"0.59407514",
"0.58731616",
"0.5765552",
"0.5722132",
"0.5684896",
"0.5676765",
"0.5664... | 0.87039113 | 0 |
Draw rectangle of specified color. | def T3oG(YKHO, qfpW, o4D3, si3g, ajwV, skBL):
if not YKHO.changed:
YKHO.edit()
PqCj = 512
iAeq = YKHO.mapd
for LVAh in Ni9Y(si3g, skBL):
DQEj = PqCj * LVAh
for WKvO in Ni9Y(o4D3, ajwV):
iAeq[WKvO + DQEj] = qfpW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L0yp(VXjJ, mawX, qfpW):\n if len(mawX) is not 4:\n return\n mawX = mawX * EhH2\n o4D3, si3g, ajwV, skBL = mawX.astype(XTiz.int32)\n XC5k.rectangle(VXjJ, (o4D3, si3g), (ajwV, skBL), qfpW, 2)",
"def fnPg(YKHO, qfpW, dQgj, zNig, e7ZM=0, DNwW='topleft'):\n qfpW = P3Um.color._determine(qfpW)... | [
"0.77119595",
"0.751639",
"0.7331997",
"0.72960854",
"0.7203873",
"0.71435416",
"0.7140063",
"0.7057411",
"0.69646674",
"0.6940525",
"0.6921079",
"0.6918698",
"0.6904941",
"0.68767667",
"0.68513477",
"0.6826486",
"0.68209034",
"0.67911476",
"0.6752047",
"0.6716133",
"0.670798... | 0.6996527 | 8 |
Draw's a border rectangle of specified thickness. | def VIrI(YKHO, qfpW, o4D3, si3g, ajwV, skBL, IHC3):
YKHO.drawRect(qfpW, o4D3, si3g, ajwV, si3g + IHC3)
YKHO.drawRect(qfpW, o4D3, si3g, o4D3 + IHC3, skBL)
YKHO.drawRect(qfpW, ajwV - IHC3, si3g, ajwV, skBL)
YKHO.drawRect(qfpW, o4D3, skBL - IHC3, ajwV, skBL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VIrI(YKHO):\n YKHO.wts(0, 0, '╭' + '─' * (YKHO.width - 2) + '╮', YKHO._borderColor)\n YKHO.wts(YKHO.height - 2, 0, '└' + '─' * (YKHO.width - 2) + '╯', YKHO._borderColor)\n for s7Kh in range(1, YKHO.height - 2):\n YKHO.wts(s7Kh, 0, '│', YKHO._borderColor)\n YKHO.wts(s7Kh, YKHO.width - 1, ... | [
"0.71188384",
"0.70126176",
"0.6929818",
"0.6718227",
"0.66622007",
"0.6635933",
"0.6588754",
"0.6530003",
"0.6508044",
"0.64947903",
"0.6355176",
"0.63386136",
"0.6332063",
"0.63249457",
"0.6287606",
"0.628658",
"0.62021995",
"0.6193314",
"0.617658",
"0.6039158",
"0.6038586"... | 0.75119376 | 0 |
True if modFile is in load list. | def UosK(YKHO, shA0):
return shA0 in YKHO.loadFiles | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UosK(YKHO, uRP3):\n return AsFA.isLoaded(uRP3)",
"def KDVp(YKHO, LCet):\n for yR_P, R3gR, mWFP, ord in YKHO.rt_import_table.values():\n if yR_P == LCet:\n return True\n return False",
"def t_r3(Emd4, Ux0P):\n return False",
"def KYPg(YKHO, p4vR: str) -> bool:\n return... | [
"0.72510654",
"0.7220901",
"0.6949726",
"0.64905375",
"0.63691705",
"0.63691705",
"0.63617396",
"0.6360658",
"0.6359112",
"0.6249636",
"0.6232187",
"0.6219556",
"0.6188836",
"0.6176873",
"0.6134634",
"0.60979486",
"0.60872066",
"0.6082824",
"0.60674137",
"0.6066154",
"0.60543... | 0.86566865 | 0 |
Sets description to specified text and then writes hedr. | def chjv(YKHO, JBZA):
JBZA = JBZA[:min(255, len(JBZA))]
YKHO.tes3.hedr.description = JBZA
YKHO.tes3.hedr.setChanged()
YKHO.writeHedr() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YYyB(YKHO, JBZA):\n bD7m = yvY1.api + YKHO.testId + '/snapshots/' + YKHO.hash\n YKHO.info = G4JS.put(bD7m, auth=(yvY1.username, yvY1.authkey), data={'description': JBZA})",
"def AqxA(YKHO, nPrm):\n YKHO._description = YKHO._uni(nPrm)",
"def prlj(YKHO, JBZA):\n YKHO.description = str(JBZA)",
"... | [
"0.64111924",
"0.6370797",
"0.6362023",
"0.63107014",
"0.62497413",
"0.62397426",
"0.6228479",
"0.6212276",
"0.61864495",
"0.61308736",
"0.6123549",
"0.6123549",
"0.6123549",
"0.6123549",
"0.61095864",
"0.60835516",
"0.60835516",
"0.60835516",
"0.60835516",
"0.60835516",
"0.6... | 0.8167504 | 0 |
True if fileName is in the the load list. | def UosK(YKHO, uRP3):
return AsFA.isLoaded(uRP3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t_r3(Emd4, Ux0P):\n return False",
"def UosK(YKHO, shA0):\n return shA0 in YKHO.loadFiles",
"def eDco(YKHO, Ux0P: str):\n for ZfUD in Hy7s.listdir(YKHO.getPath()):\n if Ux0P in ZfUD:\n return True\n return False",
"def vtfo(YKHO, Ux0P):\n return Ux0P in YKHO.files",
"de... | [
"0.724537",
"0.71412885",
"0.71269864",
"0.6977991",
"0.6932028",
"0.68382",
"0.6799403",
"0.6674898",
"0.6663756",
"0.6586046",
"0.6546176",
"0.64733523",
"0.6429546",
"0.63843304",
"0.6329842",
"0.6315099",
"0.62874025",
"0.6276312",
"0.6271743",
"0.6245755",
"0.62091804",
... | 0.74375594 | 0 |
Returns map of real to ghosted files in mods directory. | def MHqO():
nsY5 = AQSv['mods']
g_p1 = [WKvO for WKvO in nsY5.list() if WKvO.cs[-6:] == '.ghost']
return dict(((WKvO.root, WKvO) for WKvO in g_p1 if not nsY5.join(WKvO).root.exists())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thhm(YKHO) -> cuzp[str, RRAN]:\n return YKHO._forge_files",
"def YU5H(jNha, mSwx):\n return {'F1': Hy7s.path.join(jNha, 'F1'), 'F': Hy7s.path.join(mSwx, 'F'), 'F2': Hy7s.path.join(mSwx, 'F2-local'), 'D1': Hy7s.path.join(jNha, 'D1'), 'D': Hy7s.path.join(mSwx, 'D'), 'D2': Hy7s.path.join(mSwx, 'D2-local')... | [
"0.6672134",
"0.6244158",
"0.59795296",
"0.59374934",
"0.59366405",
"0.592153",
"0.5905381",
"0.58584255",
"0.58526814",
"0.5842469",
"0.5839313",
"0.58322704",
"0.5823074",
"0.56830454",
"0.568261",
"0.5663049",
"0.5649142",
"0.5620803",
"0.559837",
"0.55753934",
"0.5536636"... | 0.67132413 | 0 |
Returns the number of synchronized controllers. an integer corresponding to the number of synchronized controllers On failure, throws an exception or returns YMultiAxisController.NAXIS_INVALID. | def D6PK(YKHO):
if YKHO._cacheExpiration <= NA0M.GetTickCount():
if YKHO.load(NA0M._yapiContext.GetCacheValidity()) != NA0M.SUCCESS:
return ejUj.NAXIS_INVALID
Ylbp = YKHO._nAxis
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kcag(HCmI):\n return len(HCmI.control_qubits)",
"def xSYK(YKHO) -> int:\n return qe4Y.get(YKHO, 'dispatch_count')",
"def e85K(YKHO) -> int:\n return YKHO._pygame.joystick.get_count()",
"def JrmX(YKHO) -> int:\n return YKHO._num_servos",
"def tIzb(YKHO):\n return YKHO._num_carns",
"def ... | [
"0.619233",
"0.60119426",
"0.5963663",
"0.59550816",
"0.59049064",
"0.58648944",
"0.58528495",
"0.58372545",
"0.582305",
"0.57541937",
"0.5753122",
"0.5753122",
"0.57439953",
"0.56580514",
"0.5651148",
"0.561711",
"0.561378",
"0.5590282",
"0.5576778",
"0.55757374",
"0.5566395... | 0.6530266 | 0 |
test that nobody can create a product listing without auth | def GIh_(YKHO):
bD7m = '/product/xml/'
geh0 = YKHO.client.post(bD7m, {'description': 'my new description'})
YKHO.failUnlessEqual(geh0.status_code, 401) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qexb(YKHO):\n _hkX = YKHO.admin_create_user()\n Amyp = YKHO.attendant_login()\n eOtH = Amyp['token']\n Lx3t = dict(prod_name='NY_denims', category='denims', stock=20, price=150)\n _hkX = YKHO.client.post('/api/v1/products', content_type='application/json', data=qQXR.dumps(Lx3t), headers={'Author... | [
"0.7960845",
"0.76032835",
"0.7385757",
"0.73341733",
"0.72847015",
"0.7257508",
"0.72551584",
"0.72313315",
"0.72014314",
"0.7152841",
"0.7113371",
"0.70674574",
"0.70522344",
"0.702054",
"0.6988015",
"0.6940775",
"0.6892139",
"0.68841934",
"0.6819123",
"0.6786343",
"0.67745... | 0.70973486 | 11 |
test that nobody can modify an existing product without auth | def NPJZ(YKHO):
Lx3t = msfn.objects.all()[0]
bD7m = '/product/xml/%s/' % Lx3t.item_number
geh0 = YKHO.client.put(bD7m, {'description': 'my new description'})
YKHO.failUnlessEqual(geh0.status_code, 401) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ivxi(YKHO):\n _hkX = YKHO.admin_create_user()\n Amyp = YKHO.attendant_login()\n eOtH = Amyp['token']\n o5h_ = dict(prod_name='NY_jeans', category='denims', stock=50, price=180)\n _hkX = YKHO.client.put('/api/v1/products/1', content_type='application/json', data=qQXR.dumps(o5h_), headers={'Author... | [
"0.7836434",
"0.7741535",
"0.77172345",
"0.759511",
"0.7338387",
"0.73073435",
"0.72424406",
"0.7194128",
"0.706966",
"0.70480245",
"0.7029451",
"0.70166636",
"0.69850487",
"0.68859285",
"0.6885113",
"0.68846375",
"0.6837389",
"0.67560273",
"0.6751412",
"0.67499226",
"0.67290... | 0.7822307 | 1 |
test that nobody can delete an existing product without auth | def mtKT(YKHO):
Lx3t = msfn.objects.all()[0]
bD7m = '/product/xml/%s/' % Lx3t.item_number
geh0 = YKHO.client.delete(bD7m)
YKHO.failUnlessEqual(geh0.status_code, 401) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xiZO(YKHO):\n YKHO._require_login(YKHO.user1)\n geh0 = YKHO.client.delete('/api/1.0/products/2/')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def wPkU(YKHO):\n _hkX = YKHO.admin_register()\n Amyp = YKHO.admin_login()\n eOtH = Amyp['token']\n Lx3t = dict(prod_name='NY... | [
"0.8797145",
"0.8246856",
"0.81133246",
"0.7989509",
"0.79883975",
"0.79554987",
"0.7902811",
"0.7887529",
"0.7776524",
"0.7751724",
"0.76756126",
"0.7585028",
"0.7563168",
"0.75324357",
"0.7508863",
"0.7457899",
"0.7440487",
"0.73995256",
"0.7399106",
"0.73594016",
"0.732811... | 0.877179 | 1 |
test that nobody can retrieve the complete product list without the correct credidential | def f2RL(YKHO):
Lx3t = msfn.objects.all()[0]
bD7m = '/product/xml/'
geh0 = YKHO.client.get(bD7m)
YKHO.failUnlessEqual(geh0.status_code, 401)
bD7m = '/product/xml/%s/' % Lx3t.item_number
oGir = YKHO.client.get(bD7m)
YKHO.failUnlessEqual(geh0.status_code, 401) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bdOq(YKHO):\n tTee = SQ_0.as_view({'get': 'list'})\n j8eK = gxEw('products:list-available-products')\n QePW = YKHO.factory.get(j8eK, HTTP_AUTHORIZATION='Token {}'.format(YKHO.token_user.key))\n QePW.user = YKHO.user['user']\n geh0 = tTee(QePW)\n YKHO.assertEqual(geh0.status_code, 200, f'Expec... | [
"0.71448547",
"0.7104924",
"0.7048587",
"0.7037518",
"0.7035228",
"0.69407725",
"0.69278264",
"0.69031703",
"0.6888261",
"0.68730485",
"0.68618673",
"0.6771843",
"0.67529726",
"0.669686",
"0.6633077",
"0.65858436",
"0.6567495",
"0.65665793",
"0.6556243",
"0.6546642",
"0.65459... | 0.7604344 | 0 |
Initialize the parameters of the layer, either by using sparse initialization or small isotropic noise. | def LGvk(YKHO):
YKHO.W_ems = []
YKHO.b_ems = []
if YKHO.rank_n_approx:
HUbM = YKHO.init_fn[0](YKHO.n_in, YKHO.rank_n_approx, YKHO.sparsity[0], YKHO.scale[0], YKHO.rng)
hM09 = YKHO.init_fn[0](YKHO.rank_n_approx, YKHO.n_hids[0], YKHO.sparsity[0], YKHO.scale[0], YKHO.rng)
YKHO.W_em1 = e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yYlq(gEmA):\n if gEmA.weight.ndimension() == 4:\n _LFN, Ya2q, H2v2, TVTK = gEmA.weight.size()\n exwG = Ya2q * H2v2 * TVTK\n elif gEmA.weight.ndimension() == 2:\n _LFN, exwG = gEmA.weight.size()\n M1Jx = epAf.sqrt(2.0 / exwG)\n NXpY = M1Jx * epAf.sqrt(3.0)\n gEmA.weight.data.... | [
"0.716163",
"0.7136903",
"0.7069152",
"0.68276066",
"0.6772616",
"0.67636126",
"0.6740026",
"0.66746503",
"0.66323656",
"0.6631897",
"0.6605512",
"0.65971637",
"0.6591617",
"0.65872365",
"0.6580605",
"0.657975",
"0.6546712",
"0.6537283",
"0.65184796",
"0.6507062",
"0.64842767... | 0.0 | -1 |
Returns the first item of the Queue | def T7C_(YKHO):
return YKHO.first | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._head._element",
"def cntZ(YKHO):\n if YKHO.head is None:\n raise Exception('nothing in que... | [
"0.8702278",
"0.86236244",
"0.85479504",
"0.8490896",
"0.84425616",
"0.83485395",
"0.8345703",
"0.83136916",
"0.82134175",
"0.82134175",
"0.81876904",
"0.8145613",
"0.8112181",
"0.8078956",
"0.80502397",
"0.80120635",
"0.7998008",
"0.79267305",
"0.78532416",
"0.78217995",
"0.... | 0.69136715 | 82 |
Given a discrete distribution (may have not been normalized to 1), smooth it by replacing zeros with eps multiplied by a scaling factor and taking the corresponding amount off the nonzero values. | def gmNU(XP5J, SGf8=0.0001):
Hh_O = (XP5J == 0).astype(oyIN.float32)
grY7 = (XP5J != 0).astype(oyIN.float32)
JCHk = Hh_O.sum()
kPfm = XP5J.size - JCHk
if not kPfm:
raise ValueError('The discrete probability distribution is malformed. All entries are 0.')
IH8b = SGf8 * float(JCHk) / float... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RMHG(hkxX, M1Jx):\n TVTK = M1Jx * 4\n WKvO = oyIN.linspace(-TVTK, TVTK, min(2 * TVTK + 1, len(hkxX)))\n WZcn = oyIN.exp(-(WKvO / 5) ** 2)\n hkxX = oyIN.array(hkxX)\n _mSQ = oyIN.ones_like(hkxX)\n qPGm = oyIN.convolve(hkxX, WZcn, mode='same')\n LeA5 = oyIN.convolve(_mSQ, WZcn, mode='same')\... | [
"0.619303",
"0.599787",
"0.57301944",
"0.5693864",
"0.5693163",
"0.5686192",
"0.5684507",
"0.56833947",
"0.56658393",
"0.5663905",
"0.56597185",
"0.5639174",
"0.5591923",
"0.5536933",
"0.5520846",
"0.5501997",
"0.5474872",
"0.54531705",
"0.5435398",
"0.5434047",
"0.5426548",
... | 0.7445933 | 0 |
Given a dataset, find the optimal threshold for quantizing it. | def lJNH(ezWE, rebk=1001, Vnxq=255):
if not isinstance(ezWE, oyIN.ndarray):
raise TypeError('get_optimal_threshold only supports input type of np.ndarray, while received type=%s' % str(type(ezWE)))
kpLf = oyIN.min(ezWE)
JCoA = oyIN.max(ezWE)
idx7 = max(abs(kpLf), abs(JCoA))
QzFq, ra6D = oyIN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uFrD(LVAh, uN02, Rf07, s6nO, bnFD=True):\n jxcb, Qai7 = (0.0, 0.0 if bnFD else 1.0)\n for Hw9C in oyIN.arange(0, 1, Rf07):\n p1kx = b6Yt(LVAh, uN02, s6nO, Hw9C)\n if bnFD and p1kx > Qai7 or (not bnFD and p1kx < Qai7):\n Qai7 = p1kx\n jxcb = Hw9C\n return (jxcb, Qai7... | [
"0.639031",
"0.63328415",
"0.62595606",
"0.6156397",
"0.6144371",
"0.6098109",
"0.60654205",
"0.606497",
"0.6051026",
"0.6025029",
"0.5901674",
"0.5898532",
"0.58839",
"0.58134365",
"0.57301223",
"0.5717562",
"0.5661646",
"0.565874",
"0.56428444",
"0.5632944",
"0.5612439",
... | 0.57394457 | 14 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8040086",
"0.79256725",
"0.7923959",
"0.78855336",
"0.78781366",
"0.7816429",
"0.7766289",
"0.7756418",
"0.7744994",
"0.77324396",
"0.77295053",
"0.77257586",
"0.77034765",
"0.7690202",
"0.7690202",
"0.7664886",
"0.7657751",
"0.7656609",
"0.7656609",
"0.7646568",
"0.764656... | 0.7453906 | 35 |
Precision at rank k | def HQjY(Y8eF, OU5i, G1Hx=10):
MOaZ = oyIN.unique(Y8eF)
if len(MOaZ) > 2:
raise ValueError('Only supported for two relevance levels.')
kH4i = 0
tmLx = 0
for B7FD in Y8eF:
if B7FD == 1:
tmLx += 1
for d6pt in OU5i[:G1Hx]:
if Y8eF[d6pt] == 1:
kH4i += ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('Relevance score length < k')\n return oyIN.mean(Mkmy)",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx... | [
"0.7249937",
"0.72204053",
"0.7163338",
"0.7148408",
"0.7115376",
"0.7072892",
"0.6917101",
"0.6874991",
"0.67599165",
"0.66663283",
"0.6532125",
"0.6491568",
"0.648943",
"0.6441465",
"0.6430751",
"0.6415166",
"0.6390798",
"0.63762665",
"0.63743824",
"0.63681585",
"0.6279463"... | 0.64314383 | 14 |
We enforce certain behavior on the "special" methods. Anyone who overrides this class can override the 'fit', 'transform', and 'fit_transform' methods. This class will redirect the call of this to handle the additional logic required for DataFrames that will not need to be implemented by the child class. | def nWc_(YKHO, hkS8):
if hkS8 in super(IIvq, YKHO).__getattribute__('_overrides'):
return super(IIvq, YKHO).__getattribute__('_' + hkS8)
return super(IIvq, YKHO).__getattribute__(hkS8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(YKHO):\n raise Exception('derived class should redefine this function')",
"def a7sN(YKHO):\n raise NotImplementedError('{} does not have implemented `child_overriden`'.format(YKHO))",
"def nrOS(YKHO):\n raise NotImplementedError('override me')",
"def r8Tn(YKHO, __n6):\n raise NotImplemen... | [
"0.5875139",
"0.58352757",
"0.58183974",
"0.580818",
"0.5777932",
"0.5748379",
"0.5687404",
"0.56783247",
"0.5673622",
"0.56652856",
"0.56445026",
"0.5609732",
"0.55811244",
"0.5553304",
"0.5520016",
"0.55106056",
"0.5501446",
"0.54673254",
"0.5454347",
"0.54439837",
"0.54430... | 0.0 | -1 |
Makes a post request to the given endpoint with the provided data from the client. | def F8ab(x0hE, w2IS, nPrm):
return x0hE.post(w2IS, data=nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO, w2IS, NArs=None, nPrm=None):\n return YKHO._call(G4JS.post, w2IS, params=NArs, data=nPrm)",
"def m8z6(YKHO, w2IS, NArs=None, nPrm=None):\n NArs = NArs or dict()\n nPrm = nPrm or dict()\n return YKHO.request(verb=G4JS.post, address=YKHO.project_address + w2IS, params=NArs, data=nPrm)",
... | [
"0.76917946",
"0.75565577",
"0.72526884",
"0.72151124",
"0.7178728",
"0.70120376",
"0.6983637",
"0.6974069",
"0.68566394",
"0.68350816",
"0.679791",
"0.67907983",
"0.6790379",
"0.6745747",
"0.6716422",
"0.6710829",
"0.66509205",
"0.6636331",
"0.6633512",
"0.6619758",
"0.65772... | 0.92025495 | 0 |
Creates a random string | def BWvy(u54L):
nocu = []
for YRbF in range(u54L):
nocu.append(tuKI.choice(vIwR.ascii_uppercase + vIwR.digits))
return ''.join(nocu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KpEQ():\n return ''.join(QMfv(rU7A(32)).decode('utf-8'))",
"def e7Tf():\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(16)))",
"def tEgU():\n return kxTZ().hex[:6].upper()",
"def r4k0(OaeV, wuRi=''):\n bo34.info('DeprecationWarning: randomstr is deprecated... | [
"0.8204216",
"0.8064874",
"0.8060258",
"0.78437895",
"0.7699288",
"0.76867044",
"0.7685242",
"0.7667141",
"0.7630261",
"0.7621643",
"0.76169604",
"0.75889164",
"0.7581788",
"0.75459",
"0.7545244",
"0.7534775",
"0.75305027",
"0.7518783",
"0.7496469",
"0.7462007",
"0.74562943",... | 0.0 | -1 |
Find and return a ".terraformversion" file if one is present. | def hiHK(YKHO) -> h8nf[GkAb]:
for pmON in [YKHO.path, YKHO.path.parent]:
eH4Y = pmON / fmXY
if eH4Y.is_file():
S0MI.debug('using version file: %s', eH4Y)
return eH4Y
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(YKHO, AGPF, mE6n='.version'):\n if YKHO.path_exists(AGPF) and mE6n in Hy7s.listdir(AGPF):\n eHNT = open(AGPF + '/' + mE6n)\n DpZH = eHNT.read()\n eHNT.close()\n return DpZH\n return None",
"def sozI():\n JDp6 = locals()\n d0zu = Hy7s.path.abspath(Hy7s.path.dirname... | [
"0.67319036",
"0.6583178",
"0.65693635",
"0.64801407",
"0.6475913",
"0.64692795",
"0.6441142",
"0.633473",
"0.6330302",
"0.6328526",
"0.6227127",
"0.62209064",
"0.6220467",
"0.62152225",
"0.6202556",
"0.6196654",
"0.6191919",
"0.61804706",
"0.61592025",
"0.6157814",
"0.615431... | 0.71120024 | 0 |
Get the defined minimum required version of Terraform. | def _YMq(YKHO) -> str:
DpZH = YKHO.terraform_block.get('required_version')
if DpZH:
if ZbWC.match('^!=.+', DpZH):
S0MI.error('min required Terraform version is a negation (%s) - unable to determine required version', DpZH)
HwRy.exit(1)
else:
DpZH = ZbWC.search... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwja():\n return I4m3",
"def cUYC(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'min_api_version')",
"def cUYC(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'min_api_version')",
"def cUYC(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'min_api_version')",
"def ... | [
"0.7592078",
"0.6727831",
"0.6727831",
"0.67000395",
"0.6673934",
"0.6651586",
"0.6635504",
"0.6635504",
"0.6570398",
"0.6563299",
"0.654208",
"0.625186",
"0.6146679",
"0.6130398",
"0.60835415",
"0.60531086",
"0.60531086",
"0.59937984",
"0.59844506",
"0.5975632",
"0.5962323",... | 0.8736733 | 0 |
Allow or prevent the computation of gradients for decoder blocks | def ZGlH(YKHO):
for NArs in YKHO.encoder.parameters():
NArs.requires_grad = YKHO.if_fine_tune | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A2fp():\n pass",
"def M3Lu():\n pass",
"def VibZ():\n pass",
"def DlVC(khtY, vtNT):\n return vtNT",
"def KI8G(YKHO):\n vKfT(YKHO.eval_net)\n for MKLC, wDWA in YKHO.data_to_dev.items():\n kB_O = Ykkq(dataset=wDWA, batch_size=1, batch_type=YKHO.batch_type, shuffle=False, train=Fa... | [
"0.6387028",
"0.6113133",
"0.6037294",
"0.588107",
"0.58578974",
"0.57747084",
"0.576814",
"0.5694518",
"0.561002",
"0.5607158",
"0.56008726",
"0.55730104",
"0.55313396",
"0.5525046",
"0.5512736",
"0.54739",
"0.54404914",
"0.5412464",
"0.5375855",
"0.5374027",
"0.53729916",
... | 0.57306284 | 7 |
Creates the initial hidden and cell state for each layer of the decoder's lstm | def mDs7(YKHO, E9hj):
VWHf = []
Mzw3 = E9hj.mean(dim=1)
MKlR = YKHO.init_h(Mzw3)
Z9rn = YKHO.init_c(Mzw3)
VWHf.append((MKlR, Z9rn))
for YRbF in range(1, YKHO.decoder_number_layers):
VWHf.append((iQnE(ht2j.zeros(1, YKHO.decoder_rnn_channels[YRbF])).to(begE), iQnE(ht2j.zeros(1, YKHO.decode... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XU4B(Ep8u, cOks, Fh_m):\n yzH3 = [('l%d_init_c' % vC9B, (Ep8u, Fh_m)) for vC9B in range(cOks)]\n UmP9 = [('l%d_init_h' % vC9B, (Ep8u, Fh_m)) for vC9B in range(cOks)]\n return yzH3 + UmP9",
"def Ibvu(UXHt: Dict[str, torch.Tensor], _Pky: SequenceReducer, CLda: int) -> AzJI[ht2j.Tensor, ht2j.Tensor]:\n... | [
"0.79330057",
"0.7323646",
"0.72587425",
"0.72421336",
"0.72159034",
"0.72159034",
"0.72159034",
"0.70154953",
"0.7008315",
"0.69341445",
"0.6934068",
"0.6829755",
"0.6825306",
"0.6800513",
"0.6800513",
"0.6789778",
"0.6777058",
"0.6772707",
"0.6771452",
"0.6765032",
"0.67504... | 0.7289454 | 2 |
set new learning rate | def Fy54(Qm5y, S0S4):
if qIxc.accumulate:
if S0S4 % qIxc.accumulate == 0:
Zxma.collect_params().zero_grad()
Qm5y += 1
else:
Qm5y += 1
if Qm5y < USzt:
WVUz = qIxc.lr * Qm5y / USzt
else:
vgXP = (Qm5y - USzt) * qIxc.lr / (H0j9 - USzt)
WVUz = q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kVtO(YKHO, mVUw):\n YKHO.SGD.set_learning_rate(mVUw)",
"def yCHN(cuiw, _nen, BL_6, WVUz):\n cuiw.run(_nen, feed_dict={BL_6: WVUz})",
"def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor * YKHO._get_lr_scale()\n for Lwm5 in YKHO._optimizer.param_groups:\n Lwm5['lr'] = tspZ",
"de... | [
"0.81899655",
"0.8186776",
"0.7890553",
"0.77374995",
"0.7719085",
"0.76482403",
"0.76482403",
"0.75524837",
"0.7516568",
"0.7480104",
"0.74621284",
"0.7443868",
"0.74433243",
"0.744311",
"0.743519",
"0.7428284",
"0.7428284",
"0.7409477",
"0.7404238",
"0.7380271",
"0.73702323... | 0.0 | -1 |
This function mutates given control_points and returns the same list. | def u_ln(YKHO, S9Fp):
YKHO.current_parameter = 0
XP5J = YKHO.param
for YRbF in range(0, len(S9Fp), 3):
hgjH = S9Fp[YRbF]
jOGM = S9Fp[YRbF + 1]
jOLC = S9Fp[YRbF + 2]
for r845, WKvO in enumerate(jOGM):
jOGM[r845] = XP5J(WKvO, guess_std=abs(WKvO - hgjH[r845]) / 3)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eGpg(LTIa):\n mmgj = [AU8u.copy() for AU8u in LTIa]\n return mmgj",
"def ilFJ(YKHO, S9Fp):\n for Rtu7, LTIa in enumerate(S9Fp):\n YKHO.curves[Rtu7].control_points = LTIa",
"def Ik8Z(YKHO, LTIa):\n return [AU8u + YKHO for AU8u in LTIa]",
"def htGh(LTIa, cvwt):\n return [Du98(AU8u, cv... | [
"0.64618224",
"0.63019234",
"0.62510586",
"0.62441766",
"0.57302487",
"0.56248873",
"0.55653214",
"0.5523265",
"0.54409575",
"0.5415689",
"0.5411803",
"0.53513193",
"0.52872205",
"0.5216645",
"0.5189271",
"0.51567817",
"0.51401174",
"0.5134629",
"0.5107092",
"0.5084214",
"0.5... | 0.5183061 | 15 |
Returns a fixed version of the AP data point for this error or None if this error should be suppressed. | def yhqV(YKHO) -> uLKX[tuple, None]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HBzw(YKHO) -> laHg.Union[None, str]:\n if YKHO.airfield.data['2.14']['data']:\n for rdlD in YKHO.airfield.data['2.14']['data'][2:]:\n if rdlD[0] == YKHO.designation:\n return rdlD[3].partition('\\n')[0] or None\n return None",
"def YbNz(YKHO):\n ga2c = YKHO.datapoint... | [
"0.6167753",
"0.54195476",
"0.52139986",
"0.5131659",
"0.50841814",
"0.507934",
"0.50727123",
"0.50565684",
"0.50497514",
"0.49881572",
"0.4982593",
"0.49672902",
"0.494047",
"0.49204242",
"0.48960406",
"0.48955262",
"0.4883316",
"0.4866334",
"0.48160532",
"0.48071092",
"0.48... | 0.0 | -1 |
Returns the original version of this data point. | def UjPB(YKHO) -> uLKX[tuple, None]:
if hasattr(YKHO, 'pred'):
return (YKHO.pred['class'], (YKHO.pred['score'], False, YKHO.pred['info']))
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zQqL(YKHO):\n return YKHO.original",
"def eJh7(YKHO):\n return YKHO._original",
"def eJh7(YKHO):\n return YKHO._original",
"def jth9(YKHO):\n return PvyL(YKHO.data, name=YKHO.name + \"'\")",
"def WOxh(YKHO):\n return YKHO.original",
"def i3ak(YKHO):\n return _VfD.Point_clone(YKHO)",... | [
"0.76433486",
"0.7354626",
"0.7354626",
"0.73061746",
"0.67512125",
"0.6592378",
"0.65743464",
"0.65743464",
"0.65743464",
"0.64975107",
"0.6459376",
"0.6419153",
"0.64087516",
"0.63501376",
"0.6303118",
"0.6303118",
"0.6227504",
"0.6147316",
"0.61231947",
"0.611136",
"0.6102... | 0.0 | -1 |
Test that host expression props fail gracefully | def AssU(YKHO):
XkN1 = OK40()
XkN1._create_data = CFMy()
XkN1.execute_request = CFMy()
YYEI = '1.3.6.1.2.1.31.1.1.1.6.2'
D8Ke = '0.0.0.0'
bIwZ = 1611
LEAt = H8kl({'ip': D8Ke, 'port': bIwZ})
YKHO.configure_block(XkN1, {'oids': [{'oid': YYEI}], 'agent_host': '{{ ip }}'})
XkN1.start()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jy9b(YKHO):\n VZuY = YKHO._create_script(linux_script='#! /bin/bash -e\\n ctx instance runtime-properties nonexistent\\n ', windows_script='\\n ctx instance runtime-properties nonexistent\\n ')\n with YKHO.assertRaises(xCjU.ProcessException) as Bcwd:\n Y... | [
"0.6067826",
"0.60512716",
"0.5924807",
"0.5880989",
"0.573708",
"0.5730073",
"0.57235485",
"0.5694024",
"0.56856906",
"0.5622357",
"0.56221014",
"0.56204987",
"0.5611164",
"0.5609023",
"0.5603117",
"0.5597464",
"0.5571664",
"0.55696565",
"0.55646634",
"0.5554427",
"0.5530065... | 0.62409085 | 0 |
Run a simulation from the initial state given for a fixed number of steps. The returned array includes the initial state. | def Gycj(YKHO, KoRr: float, Fp5f: float, d3gB: int, PtEJ: float=1.0) -> oyIN.array:
if d3gB <= 0:
raise ValueError(f'n_steps must be a positive integer, but was {d3gB}')
return YKHO.run_simulation(KoRr, Fp5f, eval_times=oyIN.arange(0, d3gB + 1, dtype=oyIN.float64) * PtEJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zcFM(YKHO, AIZ9, KAIS=True, xlLU=oyIN.random):\n WXkz = [YKHO.time]\n wspz = [YKHO.state.copy()]\n for bGrB in range(AIZ9):\n b5Lm = YKHO.params * YKHO._calc_propensities()\n ip8B = b5Lm.sum()\n if ip8B == 0:\n YKHO.time = float('inf')\n break\n YKHO.t... | [
"0.67404836",
"0.6414116",
"0.6295438",
"0.6263309",
"0.6066734",
"0.6066734",
"0.6054842",
"0.60531026",
"0.5980217",
"0.59237224",
"0.59151053",
"0.5876742",
"0.5867276",
"0.5846098",
"0.58368707",
"0.58101326",
"0.57950294",
"0.5785644",
"0.57750326",
"0.57696164",
"0.5751... | 0.64974654 | 1 |
Test missing .shx file | def KymV(YKHO):
pmON = Hy7s.path.join(Odyn, 'tests', 'fixtures', 'missing_shx.zip')
lNdu = AvK2.ZipFile(pmON)
with YKHO.assertRaises(Wp9m) as QpfX:
m1Of(lNdu)
ynkN = QpfX.exception
YKHO.assertEqual(NdeX, ynkN.message) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROJO():\n flI0 = False\n try:\n WKvO = K7hc('foo.bar')\n except:\n flI0 = True\n assert flI0",
"def N8PT(YKHO):\n zjv5 = Hy7s.listdir('../../taxonomy/src_files')\n YKHO.assertIn('validate_match_batch.py', zjv5)",
"def N8PT(YKHO):\n zjv5 = Hy7s.listdir('../../taxonomy/src_... | [
"0.70473933",
"0.68444026",
"0.67671233",
"0.67127603",
"0.66949743",
"0.6689946",
"0.66809124",
"0.66654414",
"0.65776235",
"0.6543652",
"0.6543581",
"0.6525398",
"0.6420084",
"0.6413658",
"0.6389313",
"0.63086426",
"0.62918097",
"0.62362903",
"0.6213797",
"0.618119",
"0.617... | 0.7172244 | 0 |
Converts to military (24hour) time | def MVTC(KCHu):
rRy_ = ''
if KCHu[-2:] == 'PM' and KCHu[:2] != '12':
rRy_ = str(int(KCHu[:2]) + 12) + KCHu[2:-2]
elif KCHu[-2:] == 'AM' and KCHu[:2] == '12':
rRy_ = '0' + str(int(KCHu[:2]) - 12) + KCHu[2:-2]
else:
rRy_ = KCHu[:-2]
return rRy_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JhJa(v1VR):\n if v1VR == 0:\n nRaM = '12am'\n elif v1VR == 12:\n nRaM = '12pm'\n elif v1VR > 12:\n nRaM = str(v1VR - 12) + 'pm'\n else:\n nRaM = str(v1VR) + 'am'\n return nRaM",
"def Elw4(ITS7, VqfF):\n if VqfF.lower() == 'p' and ITS7 <= 12:\n ITS7 += 12\n... | [
"0.74171627",
"0.68960637",
"0.6859331",
"0.6672087",
"0.6596903",
"0.6552891",
"0.64525217",
"0.64145744",
"0.6337312",
"0.62382984",
"0.62377155",
"0.62156934",
"0.62137127",
"0.6163646",
"0.61625975",
"0.6150988",
"0.6150089",
"0.61185735",
"0.6108344",
"0.605468",
"0.6014... | 0.6483817 | 6 |
This plots a confusion matrix for an already trained predictor (it will just call predictor.predict(X_test), not predictor.fit(...)) This can be used to check wether the given predictor performs well | def LwSz(mWFP, cpdv, Z5wO, H96n):
LZpg, aNZO = QrM1.subplots()
LZpg.tight_layout()
Bcwd = YsYU(H96n, cpdv.predict(Z5wO), normalize='all')
psLw(Bcwd, display_labels=['False', 'True']).plot(ax=aNZO)
QrM1.title(mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YsYU(Y8eF, aMgO):\n uN_p.plot_confusion_matrix(Y8eF, aMgO, normalize=True)\n QrM1.show()",
"def LwSz(aMgO, Y8eF, VV8l):\n LZpg = QrM1.figure(figsize=(8, 8))\n Bcwd = YsYU(aMgO, Y8eF)\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.... | [
"0.7565519",
"0.7540713",
"0.75214607",
"0.74298614",
"0.7427613",
"0.73591155",
"0.73433137",
"0.73245466",
"0.7302947",
"0.72827363",
"0.7254476",
"0.7239747",
"0.7219855",
"0.720874",
"0.72076845",
"0.7196952",
"0.7176733",
"0.7175466",
"0.7163334",
"0.7162828",
"0.7162089... | 0.7979355 | 0 |
Creates a classification model. | def LQs7(AgTV, LT6S, en8t, ia3Z, Pha6, qV0r, Uszf, D44T, UXqs, as3x, TJyV, MQ3_, rDpN, jfO1, WOrs, N77f, KMUY, oUkS, cQY1):
with ZylS.variable_scope('Teacher') as rrBf:
if LT6S or en8t:
bGrB, O2DR, bGrB, dgWg = t1QL(AgTV, LT6S, Pha6[0], qV0r[0], D44T[0], Uszf[0], as3x, rDpN, TJyV, 'Query', pooli... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7(YKHO):\n YKHO.classifier = HmMl(max_depth=1)",
"def LQs7(YKHO, Nq1b: float=1):\n YKHO.classifier = v9Rb(max_depth=5)",
"def LQs7():\n C3ST = ileL()\n C3ST.add(l6ZH(units=128, activation='relu', input_shape=(784,)))\n C3ST.add(l6ZH(units=128, activation='relu'))\n C3ST.add(l6ZH(units=... | [
"0.7451048",
"0.716728",
"0.70753753",
"0.69427526",
"0.69337225",
"0.69306064",
"0.6929345",
"0.68631464",
"0.68004555",
"0.6769279",
"0.6737084",
"0.66838384",
"0.66709864",
"0.660953",
"0.65912193",
"0.6564333",
"0.6534873",
"0.6526978",
"0.6525293",
"0.6521778",
"0.651739... | 0.0 | -1 |
Returns True if tile percent of background pixels are above background_threshold or tile is not of shape expected_shape. | def DsSZ(q7BW, ooqW, igLT, lnf9):
VXjJ, OGvl = c0tH(q7BW, ooqW)
if VXjJ.shape != lnf9:
return (True, 0.0)
i9p7 = oyIN.sum(OGvl) / (VXjJ.shape[0] * VXjJ.shape[1])
return (i9p7 > igLT, i9p7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0tH(rwSZ, ooqW):\n VXjJ = hiw8.imread(rwSZ)\n M3Eb = VXjJ > ooqW\n OGvl = oyIN.prod(M3Eb, axis=-1)\n return (VXjJ, OGvl)",
"def eddt(LNo8, K1nB=0.1):\n qIcq = LNo8.shape[1] * LNo8.shape[2]\n UVns = LNo8[LNo8 != LNo8.numpy().min()]\n if len(UVns) >= K1nB * qIcq:\n ZUyI = True\n ... | [
"0.66431487",
"0.59043664",
"0.58898723",
"0.5856966",
"0.57924366",
"0.57647645",
"0.57396984",
"0.5713221",
"0.5682661",
"0.56154114",
"0.55924904",
"0.55850697",
"0.5566328",
"0.55467147",
"0.549086",
"0.5444107",
"0.54391205",
"0.5433852",
"0.5433661",
"0.54200405",
"0.53... | 0.8183993 | 0 |
Return a randomly generated list of goals with length num_goals. All elements of the list must be the same type of goal, but each goal must have a different randomly generated colour from COLOUR_LIST. No two goals can have the same colour. | def eEMf(MXgP: int) -> x1iM[PrYy]:
mLGw = tuKI.random()
X9vO = []
kn2i = _Ptd()
if mLGw < 0.5:
for YRbF in range(MXgP):
OfK8 = kn2i[YRbF]
xi3E = fEZo(OfK8)
X9vO.append(xi3E)
else:
for YRbF in range(MXgP):
OfK8 = kn2i[YRbF]
x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eEMf(MXgP: int) -> x1iM[PrYy]:\n hWRp = []\n QcX3 = []\n mLGw = len(SLQS) - 1\n ADdS = tuKI.randint(0, 1)\n if ADdS == 1:\n while len(hWRp) < MXgP:\n BdN0 = SLQS[tuKI.randint(0, mLGw)]\n if not QcX3.__contains__(BdN0):\n QcX3.append(BdN0)\n ... | [
"0.9042545",
"0.87703604",
"0.8560951",
"0.7739296",
"0.6907885",
"0.62121385",
"0.6152537",
"0.6105629",
"0.5944219",
"0.580509",
"0.5644077",
"0.5638114",
"0.55760545",
"0.5520105",
"0.5478518",
"0.5462582",
"0.5442521",
"0.5389885",
"0.53858465",
"0.5379968",
"0.5376745",
... | 0.8217716 | 3 |
Return a twodimensional list representing as rows and columns of unit cells. Return a list of lists L, where, for 0 <= i, j < 2^{max_depth self.level} L[i] represents column i and L[i][j] represents the unit cell at column i and row j. Each unit cell is represented by a tuple of 3 ints, which is the colour of the block... | def MKPt(XkN1: Block) -> x1iM[x1iM[AzJI[int, int, int]]]:
if XkN1.level == XkN1.max_depth:
return [[XkN1.colour]]
elif not XkN1.children:
tpio = int(2 ** (XkN1.max_depth - XkN1.level))
return [[XkN1.colour] * tpio for bGrB in range(tpio)]
else:
Cs6h = []
Glhq = MKPt(X... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kd8o(YKHO):\n if YKHO.is_depth:\n return list(reversed(YKHO._cells[2]))\n return YKHO._cells[2]",
"def H5Vg(YKHO):\n CAzz, Jd40 = oyIN.meshgrid(YKHO.x_spacings, YKHO.y_spacings)\n return oyIN.vstack([Jd40.ravel(), CAzz.ravel()]).transpose()",
"def qzRP(YKHO):\n QS88 = []\n H2v2 = Y... | [
"0.6126699",
"0.6068125",
"0.604326",
"0.60215193",
"0.5918493",
"0.5905843",
"0.58728737",
"0.57507306",
"0.5708353",
"0.5694894",
"0.5665089",
"0.5663916",
"0.56198037",
"0.56185895",
"0.5616556",
"0.55978286",
"0.5591555",
"0.55790204",
"0.5563565",
"0.5550841",
"0.5533275... | 0.5942324 | 4 |
Return the current score for this goal on the given board. The score is always greater than or equal to 0. | def p1kx(YKHO, iBIi: Block) -> int:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vNP6(YKHO, iBIi):\n return iBIi.getScore()[YKHO.tile]",
"def p1kx(YKHO, iBIi: Block) -> int:\n raise NotImplementedError",
"def p1kx(YKHO, iBIi: Block) -> int:\n raise NotImplementedError",
"def p1kx(YKHO, iBIi: Block) -> int:\n raise NotImplementedError",
"def n5Ze(YKHO):\n AdrB = YKHO.... | [
"0.7853069",
"0.7739044",
"0.7739044",
"0.7739044",
"0.74194056",
"0.7296544",
"0.7255367",
"0.7215996",
"0.72092766",
"0.71322733",
"0.70832807",
"0.70311314",
"0.70094764",
"0.7002051",
"0.69650555",
"0.68869925",
"0.6875984",
"0.68739367",
"0.6851097",
"0.6836086",
"0.6821... | 0.7805225 | 2 |
Returns whether the dependency is contained within a single job. | def J67g(YKHO):
if YKHO.data.depend_er_job == YKHO.data.depend_on_job:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M3RM(YKHO):\n if YKHO.get_db('jobid') is None:\n RKD7.debug('jobid not found for calculation.')\n return False\n else:\n OEYZ = YKHO.get_db('jobid')\n bGrB, P7UA, bGrB = Fw5s('qselect', stdout=Yn3K.PIPE, stderr=Yn3K.PIPE)\n if str(OEYZ) in P7UA.split('\\n'):\n ... | [
"0.6906989",
"0.6839656",
"0.66601545",
"0.6360909",
"0.6337891",
"0.6222235",
"0.61848074",
"0.61673003",
"0.6142863",
"0.6091579",
"0.60619444",
"0.6031266",
"0.60294586",
"0.60197246",
"0.60098815",
"0.59935504",
"0.5973742",
"0.5960723",
"0.59422576",
"0.5940927",
"0.5902... | 0.6351953 | 4 |
Validates if given file exists. | def WPqF(qaEx):
if not Hy7s.path.exists(qaEx):
raise j1Jz.ArgumentTypeError('Input file path does not exist')
return qaEx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JgkM(Ux0P: str):\n if Hy7s.path.isfile(Ux0P):\n return True\n else:\n raise FileExistsError",
"def Hat5(YKHO):\n pass",
"def pvYP(Ux0P):\n try:\n nUeQ = open(Ux0P, 'r')\n nUeQ.close()\n except IOError:\n print('\\nError: The file ' + Ux0P + ' does not exist... | [
"0.81250226",
"0.801535",
"0.8012515",
"0.79715765",
"0.791677",
"0.7829435",
"0.78247803",
"0.7813382",
"0.7812089",
"0.7812089",
"0.77913696",
"0.77477324",
"0.7740215",
"0.77300465",
"0.77202404",
"0.7717732",
"0.77073765",
"0.76988333",
"0.76670444",
"0.7647037",
"0.76454... | 0.74938667 | 31 |
Validates if given ADB bitrate is correct or not. | def Ip04(KWda):
return KWda | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(f6W2):\n return f6W2.length != -1",
"def xzCw(input):\n njyT = ZbWC.compile('(UL)?\\\\d{1,' + ZbWC.escape(str(L9EX)) + '}$', flags=ZbWC.IGNORECASE)\n if njyT.match(input):\n SGVO = True\n else:\n SGVO = False\n return SGVO",
"def QHVQ(eN1Z):\n KZwT = 0\n Tb4a = 0\n ... | [
"0.55174804",
"0.54642963",
"0.5445135",
"0.53527755",
"0.53027385",
"0.52211946",
"0.5206416",
"0.5174617",
"0.51487523",
"0.5126271",
"0.51182705",
"0.51049453",
"0.5005415",
"0.49875465",
"0.4981704",
"0.4973337",
"0.495033",
"0.49458855",
"0.49274614",
"0.49164766",
"0.49... | 0.0 | -1 |
Generate a random string with the combination of lowercase and uppercase letters | def TJC9(FVpJ):
rmc3 = '!#$%&*?@'
g3aW = ''
Ucmk = ''
if 'onlylower' in HwRy.argv:
g3aW = vIwR.ascii_lowercase
else:
g3aW = vIwR.ascii_letters
if 'nosymbol' not in HwRy.argv:
Ucmk = g3aW + rmc3
else:
Ucmk = g3aW
return ''.join((tuKI.choice(Ucmk) for YRbF i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWvy(u54L=1, QmjV=False, cKm3=False):\n SIyd = BHGE\n Wxnj = str()\n if QmjV:\n SIyd += tcl1\n if cKm3:\n SIyd += JSRc\n while len(Wxnj) < u54L:\n bseI = Acvy(SIyd)\n if len(Wxnj) == 0:\n bseI = Acvy(tcl1)\n Wxnj += bseI\n return Wxnj",
"def ORa... | [
"0.79476154",
"0.77391785",
"0.7680588",
"0.7658086",
"0.76103413",
"0.752879",
"0.75105095",
"0.74913675",
"0.7373961",
"0.7372846",
"0.73110056",
"0.7271517",
"0.7265145",
"0.7246747",
"0.72297484",
"0.7197778",
"0.7178096",
"0.717765",
"0.7168494",
"0.71666646",
"0.7165629... | 0.7079744 | 37 |
Checks whether a string has numbers or letters. | def sY_W(UTX6):
return ZbWC.search('[a-zA-Z0-9]', UTX6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ELYd(vIwR):\n return True",
"def gqpb(KCHu: str) -> bool:\n return len(ZbWC.findall('[^A-Za-z0-9]', KCHu)) == 0",
"def vFJM(H6GT):\n if H6GT not in vIwR.ascii_letters or len(H6GT) > 1:\n return False\n return True",
"def qekA(b7zw):\n return any((hcXw.isdigit() for hcXw in b7zw))",
... | [
"0.8243477",
"0.7757213",
"0.75719815",
"0.7537497",
"0.7535774",
"0.75231296",
"0.7232919",
"0.7226663",
"0.71988374",
"0.71583915",
"0.7117124",
"0.7073485",
"0.70496655",
"0.7028747",
"0.69984823",
"0.6997262",
"0.6978403",
"0.6962873",
"0.69445205",
"0.6938811",
"0.693717... | 0.0 | -1 |
Creates a parent/child relation in the database. | def TDQb(NmVZ, S3Wb):
if NmVZ:
eF0n = ysHe.get_skill(NmVZ).id
CeZk = ysHe.get_skill(S3Wb).id
geVf = RBzI(parent_skill_id=eF0n, child_skill_id=CeZk)
NCls.session.add(geVf)
NCls.session.commit()
else:
CeZk = ysHe.get_skill(S3Wb).id
geVf = RBzI(child_skill_id... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bpcB(_AKB, aUGN, M9zE, akib):\n x6aZ = Kumh()\n k8wH.echo('Creating relations: {0} - {1}'.format(_AKB['pid'], aUGN['pid']))\n x6aZ.add(parent=_AKB, child=aUGN, relation_type=M9zE, volume=str(akib) if akib else None)",
"def WqDG(YKHO, _AKB, pmON):\n vexM = 'insert into nodes (parent, path) values ... | [
"0.727176",
"0.6639228",
"0.6511371",
"0.626259",
"0.62460697",
"0.6112094",
"0.6086549",
"0.6059214",
"0.5871822",
"0.5843188",
"0.5779552",
"0.5749226",
"0.57240736",
"0.5638246",
"0.56082636",
"0.55755395",
"0.55712795",
"0.5554237",
"0.55324274",
"0.5529303",
"0.5505311",... | 0.6088462 | 6 |
Gets Users object, given id of the user | def B9ST(uJjO):
return YJv1.query.filter_by(id=uJjO).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bt8D(YKHO, id):\n return YKHO.users.get(id)",
"def KacQ(YKHO, id: int) -> auMM.bbUser:\n id = YKHO.validateID(id)\n return YKHO.users[id]",
"def NMoC(id):\n return mv1M.query.filter_by(id=id).first()",
"def lyxB(id):\n return YJv1.query.get(id)",
"def JuUv(YKHO, id):\n for CBIr in YKH... | [
"0.8779749",
"0.83585083",
"0.822289",
"0.8173856",
"0.81693155",
"0.80604845",
"0.79971176",
"0.79869205",
"0.79842687",
"0.7925498",
"0.7846517",
"0.7846517",
"0.7846517",
"0.7846517",
"0.78368735",
"0.7819745",
"0.77926064",
"0.7779953",
"0.77797216",
"0.77566826",
"0.7755... | 0.7846145 | 14 |
Takes a list of `Users` and converts them to `ProfileModel`s | def uNFf(DW23):
KPyJ = []
for CBIr in DW23:
bPSQ = ysHe.get_skills(CBIr.username)
KPyJ.append(gxTS(CBIr.username, CBIr.username, bPSQ))
return KPyJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z5Nm(YKHO, NArs):\n return YKHO.profiles",
"def QhXp():\n Yw_3 = GDNZ()\n J2us = NCls.session.query(BFpK).all()\n return TvZl('profiles.html', images=Yw_3, records=J2us)",
"def nmem(YKHO):\n umWR = super(jgvg, YKHO).list_to()\n umWR = umWR.exclude(user_profile__user__pk__in=YKHO._get_nopr... | [
"0.5873556",
"0.5811019",
"0.580981",
"0.57973635",
"0.5732257",
"0.5656988",
"0.56169206",
"0.56113976",
"0.5596969",
"0.5583577",
"0.5578255",
"0.5532246",
"0.5505803",
"0.54858834",
"0.54853094",
"0.54630697",
"0.54360455",
"0.5386984",
"0.5321617",
"0.52642417",
"0.526338... | 0.75204486 | 0 |
Takes a ProfileModel and a list of skillpaths and checks for the sum of the levels of corresponding skills. Used as a key for ordering search results. | def RG7i(z39Z, vSx_):
uvo_ = 0
for kZCx in vSx_:
for nNlp in z39Z.skills:
if nNlp.skill_path.lower() == kZCx.lower():
uvo_ += nNlp.level
return uvo_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TgwQ(xDcj):\n RJYm = []\n DW23 = ysHe.get_all_users()\n Lw0f = DW23.copy()\n for CBIr in DW23:\n for hjnE, QwYr in xDcj.items():\n vm6n = ysHe.get_skill(hjnE).id\n OJ1g = ysHe.get_assocs(users_id=CBIr.id, skill_id=vm6n, level=QwYr, type='first')\n if OJ1g is ... | [
"0.55930096",
"0.5148804",
"0.5144777",
"0.5058127",
"0.5057765",
"0.49606115",
"0.48981452",
"0.48834836",
"0.48424393",
"0.47602153",
"0.47531292",
"0.4727375",
"0.4652321",
"0.46334404",
"0.46107352",
"0.45984805",
"0.45913628",
"0.4589694",
"0.45509657",
"0.45504436",
"0.... | 0.7638404 | 0 |
Resize image to match the given shape. A bilinear interpolation is used for resizing. | def Einh(WKvO, oLRV):
if not vUb_:
raise ValueError('cv2 is not installed on your environment, so nothing will be plotted at this time. Please install OpenCV.\n\n Under Anaconda environment, you can install it by $ conda install -c menpo opencv=2.4.11\n')
C7Ls, XcU5 = oLRV
WKvO = WKvO.transpose(1, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Einh(VXjJ, ROpF, Tuqy='constant', JNn7=(155, 240, 240)):\n assert len(ROpF) == 3, 'Can not have more than 3 dimensions'\n Llmz = (ROpF[0] / JNn7[0], ROpF[1] / JNn7[1], ROpF[2] / JNn7[2])\n return trlf(VXjJ, Llmz, mode=Tuqy)",
"def Einh(VXjJ, zNig, NKcE='bilinear'):\n if NKcE == hnIv.BILINEAR or N... | [
"0.7953497",
"0.7260338",
"0.72600085",
"0.7184659",
"0.708315",
"0.69229156",
"0.6893204",
"0.68926215",
"0.68926215",
"0.6874876",
"0.6867922",
"0.6847304",
"0.6828275",
"0.6809579",
"0.68094295",
"0.68004084",
"0.6797732",
"0.6780467",
"0.6760277",
"0.67247456",
"0.6717196... | 0.0 | -1 |
Retrieves the clients list from samba | def YBYn(YKHO):
G9jH.debug('inspecting samba...')
oUZx = 'sudo smbstatus -p | sed -n 5p | tr -s " " | cut -d" " -f4'
hlel = BfDw.run_os_command(oUZx)
return hlel.strip().split('\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xxxj(YKHO):\n N1p7 = YKHO.conn.cursor()\n N1p7.execute('SELECT * FROM CLIENT')\n return N1p7.fetchall()",
"def LAA1(YKHO) -> None:\n from bacommon.servermanager import ClientListCommand\n YKHO._enqueue_server_command(ClientListCommand())\n YKHO._block_for_command_completion()",
"def ik_9(... | [
"0.7487732",
"0.719857",
"0.7137713",
"0.69747156",
"0.69664335",
"0.6604978",
"0.6604978",
"0.6563487",
"0.65014094",
"0.64407647",
"0.6428513",
"0.64033383",
"0.6313856",
"0.6263324",
"0.6246961",
"0.62337726",
"0.62311494",
"0.6202812",
"0.6202548",
"0.62021095",
"0.620181... | 0.7655905 | 0 |
Split dataset into train and test sets (sublists) based on a test set size. | def bHtP(EcVT, LVAh, NI2E=0.33, t3eI=None, hXNa=True):
if t3eI is not None:
tuKI.seed(t3eI)
if hXNa:
oQbP.randomize_in_place(EcVT, parallel_list=LVAh)
Ep5Y = len(EcVT)
if isinstance(NI2E, float):
NI2E = epAf.ceil(Ep5Y * NI2E)
kPGE = Ep5Y - NI2E
return (EcVT[:kPGE], EcVT[k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FJfc(YKHO, NI2E=0.2):\n YKHO.training_data, YKHO.test_data, YKHO.training_labels, YKHO.test_labels = bHtP(YKHO.training_data, YKHO.training_labels, test_size=NI2E)",
"def Qb89(__n6, NI2E=0.5):\n fVgT = oyIN.random.RandomState(seed=721).permutation(__n6)\n XxFT = fVgT[:int(len(__n6) * (1 - NI2E)), :]... | [
"0.8606726",
"0.8337164",
"0.82015276",
"0.8159535",
"0.7856308",
"0.7855692",
"0.78139555",
"0.77506024",
"0.77325463",
"0.7729288",
"0.767232",
"0.7650368",
"0.75894517",
"0.7572302",
"0.75486135",
"0.7527101",
"0.7507528",
"0.75036293",
"0.74679023",
"0.7461673",
"0.743368... | 0.7133727 | 49 |
Add a rate parameter names source_name + "_rate_multiplier" to the likelihood function.. The values of this parameter will MULTIPLY the expected rate of events for the source. The rates of sources can also vary due to shape parameters. | def bRbm(YKHO, KoHv, EU4P=None):
YKHO.rate_parameters[KoHv] = EU4P | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QRw1(YKHO, *qIxc, **B2fa):\n return tGN_.usrp_source_set_samp_rate(YKHO, *qIxc, **B2fa)",
"def QRw1(YKHO, *qIxc, **B2fa):\n return tGN_.usrp_source_sptr_set_samp_rate(YKHO, *qIxc, **B2fa)",
"def mQdI(YKHO, KoHv, d8EW):\n YKHO.add_rate_parameter(KoHv, log_prior=eQSh.norm(1, d8EW).logpdf)",
"def Q... | [
"0.6405935",
"0.59060144",
"0.5845224",
"0.57820135",
"0.5649823",
"0.5517799",
"0.550522",
"0.5408946",
"0.5400886",
"0.5353125",
"0.53267485",
"0.53233707",
"0.5310702",
"0.53073066",
"0.5293416",
"0.5276952",
"0.5274179",
"0.52601314",
"0.52576244",
"0.52510154",
"0.521648... | 0.7664521 | 0 |
Adds a shape parameter to the likelihood function, with Gaussian prior around the default value. | def Ocem(YKHO, _DBc, d8EW, bNie=(-2, -1, 0, 1, 2), vg4c=None):
YKHO.add_shape_parameter(_DBc, bNie, base_value=vg4c)
qvIa, EU4P, vg4c = YKHO.shape_parameters[_DBc]
YKHO.shape_parameters[_DBc] = (qvIa, eQSh.norm(vg4c, vg4c * d8EW).logpdf, vg4c) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fCKX(ROpF, WOF6, yY44, mWFP='GaussianPrior'):\n rYO3 = ROpF[1]\n\n def NN4v(epBp):\n if WOF6:\n A2Q7 = fhcK.Lambda(lambda a1PO: nMvt.zeros_like(a1PO) + 0.001, output_shape=ROpF, name='{}.zero-mean'.format(mWFP))(epBp)\n wucG = fhcK.TimeDistributed(fhcK.Dense(units=rYO3, use_b... | [
"0.63119084",
"0.5846583",
"0.5792739",
"0.57768315",
"0.5588442",
"0.5461596",
"0.5376964",
"0.53341377",
"0.52759147",
"0.52588916",
"0.52504516",
"0.5230208",
"0.5208885",
"0.5193517",
"0.51928234",
"0.5179233",
"0.5179233",
"0.5179233",
"0.51752466",
"0.51703197",
"0.5164... | 0.5380459 | 6 |
Shows information about the current guild. | async def server(YKHO, OaeV):
_EYN = OaeV.guild.created_at
_EYN = _EYN.strftime('%a %b %d %Y at %I:%M %p')
JV31 = qcWV.strptime(_EYN, '%a %b %d %Y at %I:%M %p')
JV31 = enlf(JV31, qcWV.utcnow())
xMux = len(OaeV.guild.channels)
Q1PJ = ZOrr.Embed(color=YKHO.bot.embed_color)
DgAC = [WKvO for WKv... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def server_info(YKHO, OaeV):\n lSCo = OaeV.guild\n id = lSCo.id\n Fh8F = lSCo.premium_subscription_count\n zn0c = str(lSCo.region)\n xMux = len(lSCo.channels)\n dIT4 = len(lSCo.voice_channels)\n zNrl = len(lSCo.text_channels)\n bkDO = lSCo.emoji_limit\n kpVu = lSCo.bitrate_limit\n ... | [
"0.72720075",
"0.7151705",
"0.7101078",
"0.70837516",
"0.7072103",
"0.6987756",
"0.6968286",
"0.69477713",
"0.69180405",
"0.6845922",
"0.68390226",
"0.6799237",
"0.67586267",
"0.672205",
"0.66088957",
"0.6591235",
"0.65743196",
"0.6568158",
"0.65651506",
"0.6563881",
"0.65606... | 0.6066025 | 36 |
Shows the avatar of the mentioned user. | async def avatar(YKHO, OaeV, CBIr: discord.Member=None):
if CBIr is None:
CBIr = OaeV.author
H8ai = CBIr.avatar_url_as(static_format='png', size=1024)
Q1PJ = ZOrr.Embed(color=YKHO.bot.embed_color)
Q1PJ.set_author(name=f"{CBIr}'s avatar", icon_url=H8ai)
Q1PJ.description = f'[[Download Avatar]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def avatar(YKHO, OaeV, *, mS46: disnake.Member=None):\n if mS46 is None:\n mS46 = OaeV.author\n await OaeV.send(mS46.display_avatar.url)",
"async def avatar(YKHO, OaeV, CBIr: discord.User=None):\n if CBIr is None:\n CBIr = OaeV.author\n H8ai = CBIr.avatar_url\n Q1PJ = ZOrr.Embe... | [
"0.77440083",
"0.7552449",
"0.7500849",
"0.7481652",
"0.7424725",
"0.74126095",
"0.7402198",
"0.73649114",
"0.7171719",
"0.7034651",
"0.68934387",
"0.6856163",
"0.6789102",
"0.67856646",
"0.67298824",
"0.66623604",
"0.65778744",
"0.6469675",
"0.6442003",
"0.64376867",
"0.6423... | 0.7308232 | 8 |
True iff triangle abc is counterclockwise | def TRH2(jzdc, Fg_i, Z9rn):
XP5J = Fg_i - jzdc
vexM = Z9rn - jzdc
f0tD = XP5J.x * vexM.y - vexM.x * XP5J.y
return f0tD > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VWkc(YKHO):\n KCHu = sum(((pG0V[1][0] - pG0V[0][0]) * (pG0V[1][1] + pG0V[0][1]) for pG0V in YKHO.segment_tuples))\n return KCHu > 0",
"def Ehrb(jzdc, Fg_i, Z9rn):\n jzdc, Fg_i, Z9rn = sorted([jzdc, Fg_i, Z9rn])\n return True if jzdc > abs(Fg_i - Z9rn) and jzdc < Fg_i + Z9rn else False",
"def UP... | [
"0.7610783",
"0.74833363",
"0.74156165",
"0.7167028",
"0.7089694",
"0.7089694",
"0.6931784",
"0.6843787",
"0.67656064",
"0.6741302",
"0.6705305",
"0.6668621",
"0.65707225",
"0.65638405",
"0.64989984",
"0.6447921",
"0.6405516",
"0.63942707",
"0.6367579",
"0.62225384",
"0.62088... | 0.72346896 | 3 |
1. Remove punc 2. Remove stop words 3. Return list of clean text words | def rgPI(p9K5):
rKmc = [hcXw for hcXw in p9K5 if hcXw not in vIwR.punctuation]
rKmc = ''.join(rKmc)
return [GIN8 for GIN8 in rKmc.split() if GIN8.lower() not in di0c.words('english') and len(GIN8) > 2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CZge(l5Ny):\n V28s = [GIN8 for GIN8 in l5Ny.split() if GIN8.isalpha()]\n V28s = ' '.join(V28s)\n Vl6w = Dhdw.word_tokenize(V28s)\n return Vl6w",
"def s7oB(l5Ny):\n s2mk = wr3U(l5Ny)\n s2mk = nkVl(s2mk)\n return s2mk",
"def fUnC(l5Ny):\n ggDo = []\n for GIN8 in l5Ny.split():\n ... | [
"0.8581471",
"0.81725335",
"0.8148157",
"0.8145557",
"0.8123101",
"0.7994653",
"0.79781365",
"0.7969293",
"0.79102516",
"0.78597337",
"0.78296715",
"0.7808968",
"0.7807197",
"0.77931356",
"0.7773359",
"0.77686226",
"0.7747774",
"0.77133286",
"0.77133286",
"0.77133286",
"0.771... | 0.79306465 | 8 |
Opens the tree view of Invoices. | def XSY8(YKHO):
return {'domain': "[('id', 'in', " + str(YKHO.invoice_ids.ids) + ' )]', 'name': 'Invoices', 'view_mode': 'tree,form', 'res_model': 'account.move', 'type': 'ir.actions.act_window'} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Omwu(YKHO, KBgZ, PObu, A07C, QpfX=None):\n if QpfX is None:\n QpfX = {}\n S4e5 = YKHO.pool.get('ir.model.data')\n for RQwU in YKHO.browse(KBgZ, PObu, A07C, context=QpfX):\n CGVZ = S4e5.get_object_reference(KBgZ, PObu, 'account', 'invoice_supplier_form')\n _gHB = CGVZ and CGVZ[1] o... | [
"0.711692",
"0.6486356",
"0.5976821",
"0.5902836",
"0.579003",
"0.57529277",
"0.5566393",
"0.55498576",
"0.5519628",
"0.5500557",
"0.5479644",
"0.54782456",
"0.54366016",
"0.53994286",
"0.53791326",
"0.5370473",
"0.5346116",
"0.5237616",
"0.52264035",
"0.5200993",
"0.5156033"... | 0.72879493 | 0 |
Computes the dot product of v1 and v2 | def uYbU(hQHm, jlSq):
sum = 0
for YRbF in range(len(hQHm)):
sum += hQHm[YRbF] * jlSq[YRbF]
return sum | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X6_J(hQHm, jlSq):\n MxXY = NkkI(hQHm)\n cWFu = NkkI(jlSq)\n return MxXY[0] * cWFu[0] + MxXY[1] * cWFu[1] + MxXY[2] * cWFu[2]",
"def uYbU(hQHm, jlSq):\n return hQHm[0] * jlSq[0] + hQHm[1] * jlSq[1] + hQHm[2] * jlSq[2]",
"def uYbU(hQHm, jlSq):\n return hQHm[0] * jlSq[0] + hQHm[1] * jlSq[1]",
... | [
"0.9146861",
"0.89656043",
"0.8939553",
"0.89197075",
"0.8891167",
"0.8458794",
"0.8448753",
"0.84123284",
"0.8348313",
"0.8326295",
"0.82441646",
"0.8225435",
"0.8112416",
"0.8092164",
"0.8033246",
"0.80259407",
"0.80184",
"0.79506934",
"0.7913882",
"0.7907049",
"0.78919226"... | 0.81787544 | 12 |
Logistic / sigmoid function | def D7Jk(WKvO):
try:
ciZM = 1 + epAf.e ** (-WKvO)
except OverflowError:
return 0.0
return 1.0 / ciZM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + epAf.exp(-WKvO))",
"def m1Hg(WKvO):\n return 1.0 / (1.0 + kLQb(-WKvO))",
"def m1Hg(WKvO):\n return 1 / (1 + r8hN.exp(-WKvO))",
"def m1Hg(WKvO):\n return ... | [
"0.8515589",
"0.8515589",
"0.84908247",
"0.8464301",
"0.8463506",
"0.8446034",
"0.84339756",
"0.8418244",
"0.8416246",
"0.8416246",
"0.8398559",
"0.8398559",
"0.8398559",
"0.8398559",
"0.8398559",
"0.8398559",
"0.8384881",
"0.8383032",
"0.8376922",
"0.83710796",
"0.8370056",
... | 0.0 | -1 |
Initializes matrix of weights and biases self.weights a dictionary where each layer j maps to a size ixj matrix | def MHKb(YKHO, LXaY):
_mSQ = [[None]]
oug5 = []
oug5.append([1] * LXaY[0])
for gEmA in range(1, len(LXaY)):
_mSQ.append(XTiz.random.rand(LXaY[gEmA - 1], LXaY[gEmA]))
oug5.append([0] * LXaY[gEmA])
oug5[len(LXaY) - 1] = [0] * LXaY[-1]
return (_mSQ, oug5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AT17(YKHO):\n try:\n Hxou = jth9.copy(CMn8.__dict__[YKHO._weight_matrix_name])\n except KeyError:\n nPrm = open(YKHO._weight_matrix_name).readlines()\n Q6uT = nPrm[0].strip('/n/r').split()\n Hxou = dict([(KCHu, dict([(KCHu, 0) for KCHu in Q6uT])) for KCHu in Q6uT])\n fo... | [
"0.74495703",
"0.737873",
"0.7342981",
"0.73123944",
"0.72205836",
"0.7079782",
"0.7074431",
"0.7074431",
"0.7074431",
"0.7064074",
"0.7040137",
"0.7037429",
"0.7027251",
"0.701833",
"0.7001828",
"0.7001634",
"0.6970096",
"0.6914572",
"0.6892995",
"0.68780696",
"0.68658906",
... | 0.0 | -1 |
takes an error matrix and a layer, returns the individual errors of the node in the preceding layer based on the weights. | def Fn2L(YKHO, UAju, gEmA):
_mSQ = YKHO.weights[gEmA]
w5RY = []
for YRbF, input in enumerate(YKHO.input_matrix[gEmA - 1]):
w5RY.append(float(WE0_(input) * uYbU(_mSQ[YRbF], UAju)))
return w5RY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dG67(YKHO, a1PO=0, _R_A=0):\n p06G = _R_A\n if a1PO != 0:\n for gEmA in YKHO.next_recurrent:\n p06G += gEmA.get_error_contribution(YKHO, t=a1PO + 1)\n for gEmA in YKHO.next:\n p06G += gEmA.get_error_contribution(YKHO, t=a1PO)\n if a1PO != 0:\n p06G += oyIN.dot(YKHO.g... | [
"0.63156897",
"0.6257517",
"0.59837484",
"0.59098774",
"0.584947",
"0.5719502",
"0.5716888",
"0.5716773",
"0.5702195",
"0.55608886",
"0.548",
"0.54583067",
"0.54363763",
"0.54083955",
"0.54007465",
"0.5379464",
"0.53708035",
"0.5368533",
"0.5345358",
"0.5312313",
"0.5310901",... | 0.79019064 | 0 |
Create the api and authenticator objects. | async def async_setup(YKHO, Fv2L):
if Fv2L.get(KJC6):
return
YKHO._access_token_cache_file = Fv2L.get(TZUM, f'.{Fv2L[kG_n]}{MjF4}')
YKHO._config = Fv2L
YKHO._api = mauD(YKHO._aiohttp_session, timeout=YKHO._config.get(iom2))
YKHO._authenticator = z3AC(YKHO._api, YKHO._config[YhBT], YKHO._conf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.api = fyIx(consumer_key=Vt89['consumer_key'], consumer_secret=Vt89['consumer_secret'], access_token_key=Vt89['access_token_key'], access_token_secret=Vt89['access_token_secret'])",
"def flyc(YKHO):\n IMGh = Hy7s.environ.get('CONSUMER_KEY')\n o5kg = Hy7s.environ.get('CONSUMER_SECRE... | [
"0.66780365",
"0.6645443",
"0.6397644",
"0.6388884",
"0.633235",
"0.6326718",
"0.624818",
"0.6222473",
"0.61881906",
"0.6158173",
"0.6120532",
"0.6110127",
"0.60853136",
"0.60724443",
"0.6064991",
"0.6060397",
"0.6057882",
"0.60202724",
"0.600326",
"0.59973305",
"0.59905744",... | 0.6010488 | 18 |
Check whether an action had an associated faction. | def WJGy(l5Ny):
for nmDD in bxYj:
if nmDD in l5Ny:
return nmDD
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m5Vd(YKHO, XeOP):\n return hasattr(YKHO, YKHO._action_handler_name(XeOP))",
"def kIF4(YKHO, XeOP):\n if YKHO.board[XeOP[0]][XeOP[1]] == None:\n return True\n return False",
"def xc3U(YKHO, vhil):\n for XeOP in YKHO.h:\n if isinstance(XeOP, vhil):\n return True\n retu... | [
"0.6802109",
"0.6584824",
"0.6345662",
"0.6176071",
"0.5996063",
"0.5974518",
"0.59714603",
"0.59099567",
"0.57944673",
"0.5789518",
"0.5746428",
"0.57446367",
"0.5738184",
"0.5721567",
"0.5682417",
"0.5665316",
"0.56606245",
"0.5640808",
"0.56190777",
"0.5613474",
"0.5590448... | 0.5028373 | 57 |
Evaluates the Interval to the power of n, based on some rules provided | def JYo6(YKHO, exwG):
if exwG >= 1 and exwG % 2 != 0:
return Kx1f(YKHO.left ** exwG, YKHO.right ** exwG)
elif exwG > 0 and exwG % 2 == 0:
if YKHO.left >= 0:
return Kx1f(YKHO.left ** exwG, YKHO.right ** exwG)
elif YKHO.right < 0:
return Kx1f(YKHO.right ** exwG, YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def naF9(WKvO, exwG):\n naF9 = 1\n for YRbF in range(abs(exwG)):\n naF9 = wTxu(naF9, WKvO)\n return naF9",
"def _Jb_(YKHO, exwG):\n assert exwG > 0\n return m3se(YKHO, exwG)",
"def naF9(WKvO, exwG):\n if exwG == 0:\n return 1\n Aofo = naF9(WKvO, epAf.floor(exwG / 2))\n if ... | [
"0.72425",
"0.709204",
"0.7003416",
"0.6994898",
"0.6925305",
"0.6813599",
"0.68055737",
"0.67978084",
"0.6785114",
"0.6766115",
"0.67495096",
"0.6682384",
"0.66654557",
"0.66620886",
"0.6640547",
"0.6640547",
"0.662766",
"0.66202223",
"0.6599868",
"0.6570302",
"0.6565152",
... | 0.8090334 | 0 |
Verifica si un numero previamente premiado ha incrementado su premio. Devuelve True si hay incremento sobre un premio ya informado. False en caso contrario. | def tmvr(ulZ4, DUgF):
if ulZ4 in CrCt.keys():
if CrCt[ulZ4] < DUgF:
print(kj52.format(ulZ4, CrCt[ulZ4], DUgF))
if Sa_m:
Sa_m.api_call('chat.postMessage', channel=xSRG, text=kj52.format(ulZ4, CrCt[ulZ4], DUgF))
CrCt[ulZ4] = DUgF
return True
else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HdMg(YKHO):\n return YKHO.page > 1",
"def HdMg(YKHO):\n return YKHO.page > 1",
"def sJdb(YKHO, or8S) -> bool:\n return False",
"def sJdb(YKHO, or8S):\n return YKHO.args[0].is_positive()",
"def sJdb(YKHO, or8S):\n return False",
"def sJdb(YKHO, or8S):\n return False",
"def sJdb(YKH... | [
"0.6546479",
"0.6546479",
"0.6348991",
"0.6322084",
"0.6320673",
"0.6320673",
"0.6320673",
"0.62667453",
"0.6232614",
"0.6078803",
"0.6061329",
"0.597883",
"0.59470063",
"0.5875424",
"0.5801918",
"0.5653601",
"0.5653601",
"0.5653601",
"0.5555568",
"0.5516738",
"0.5476474",
... | 0.80478257 | 0 |
Set the ID in the new document with the updated ID | def ekm0(id, hGN5):
return hGN5.replace('$ID', str(id)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def psjw(YKHO, BZDx):\n YKHO.id = BZDx",
"def PZSZ(YKHO, Jyyj='name'):\n if YKHO.verbose:\n k8wH.echo('Updating ID')\n if Jyyj not in YKHO.data:\n jCFN(f'Missing {Jyyj} field in file {YKHO.source_file} - add this field manually')\n return\n YKHO.data['id'] = YKHO.data[Jyyj]",
"... | [
"0.7223816",
"0.68603384",
"0.68397456",
"0.67639816",
"0.6696392",
"0.6696392",
"0.6696392",
"0.6696392",
"0.6696392",
"0.6687556",
"0.6670801",
"0.66359824",
"0.66359824",
"0.66359824",
"0.66359824",
"0.66359824",
"0.66359824",
"0.66359824",
"0.66359824",
"0.66359824",
"0.6... | 0.0 | -1 |
Convert from Euler angles to pose's orientation (quaternion) | def aodV(rKSe, H2HG, xTkQ):
shtX = bYdR()
slpS = ZylS.transformations.quaternion_from_euler(rKSe, H2HG, xTkQ)
shtX.orientation.x = slpS[0]
shtX.orientation.y = slpS[1]
shtX.orientation.z = slpS[2]
shtX.orientation.w = slpS[3]
return shtX.orientation | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WlgB(URbk: tuple) -> object:\n xTkQ, H2HG, rKSe = (URbk[0], URbk[1], URbk[2])\n PMVZ = oyIN.sin(rKSe / 2) * oyIN.cos(H2HG / 2) * oyIN.cos(xTkQ / 2) - oyIN.cos(rKSe / 2) * oyIN.sin(H2HG / 2) * oyIN.sin(xTkQ / 2)\n jCyH = oyIN.cos(rKSe / 2) * oyIN.sin(H2HG / 2) * oyIN.cos(xTkQ / 2) + oyIN.sin(rKSe / 2) ... | [
"0.7716793",
"0.7675402",
"0.76656246",
"0.7630826",
"0.73898655",
"0.73428357",
"0.73076576",
"0.72086555",
"0.7201879",
"0.7146299",
"0.71291596",
"0.71251535",
"0.7056123",
"0.70338565",
"0.6970747",
"0.6889485",
"0.6875701",
"0.68428713",
"0.6842132",
"0.6798497",
"0.6798... | 0.82313824 | 0 |
Helper function to assign pose's orientation according to quaterion in list form. | def yQMw(shtX, CtT5):
shtX.orientation.x = CtT5[0]
shtX.orientation.y = CtT5[1]
shtX.orientation.z = CtT5[2]
shtX.orientation.w = CtT5[3] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FszL(YKHO, X0VH):\n snci = 1.65\n if abs(round(X0VH.position.x, 2)) == 22.45:\n if X0VH.position.x < 0:\n X0VH.position.x += snci\n X0VH.position.y -= 0.4\n else:\n X0VH.position.x -= snci\n X0VH.position.y += 0.4\n if abs(round(X0VH.position.y... | [
"0.60361046",
"0.5982259",
"0.5908801",
"0.5787259",
"0.5771794",
"0.5737287",
"0.5693343",
"0.5658342",
"0.56019497",
"0.56019497",
"0.5593034",
"0.55820554",
"0.5557277",
"0.55565345",
"0.5547485",
"0.554395",
"0.55262035",
"0.548297",
"0.54825646",
"0.54807514",
"0.5442158... | 0.66434866 | 0 |
Converts the provided string into camel case | def fH8d(vIwR: str):
return ''.join((GIN8.title() if or8S > 0 else GIN8 for or8S, GIN8 in enumerate(vIwR.split('_')))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uhRd(KCHu):\n return KCHu[0].upper() + KCHu[1:]",
"def nEDo(vIwR, YXiu):\n U5bT = vIwR.lower()\n V22M = ZbWC.split('[\\\\s_]', U5bT)\n V22M = list(map(lambda WKvO: WKvO.capitalize(), V22M))\n if not YXiu:\n V22M[0] = V22M[0].lower()\n return ''.join(V22M)",
"def kCQi(vIwR: str):\n ... | [
"0.8393052",
"0.82150733",
"0.8171326",
"0.8133403",
"0.8088697",
"0.8019505",
"0.8014874",
"0.8008397",
"0.7981959",
"0.7952406",
"0.7948592",
"0.7920694",
"0.7904639",
"0.78928894",
"0.7876539",
"0.775117",
"0.772237",
"0.7704707",
"0.7684524",
"0.76456",
"0.75734717",
"0... | 0.80613923 | 5 |
Generate ngrams from an iterable l = range(5) list(ngrams(l)) > [(0,), (1,), (2,), (3,), (4,)] list(ngrams(l, 2)) > [(0, 1), (1, 2), (2, 3), (3, 4)] list(ngrams(l, 3)) > [(0, 1, 2), (1, 2, 3), (2, 3, 4)] | def pCSA(OxJJ, exwG=1):
return zip(*(OxJJ[YRbF:] for YRbF in range(exwG))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPuO(vwCE, exwG):\n yield zip(*[vwCE[YRbF:] for YRbF in range(exwG)])",
"def zxm6(OxJJ, exwG):\n return zip(*[Hs6x.islice(WhY1, YRbF, None) for YRbF, WhY1 in enumerate(Hs6x.tee(OxJJ, exwG))])",
"def R4Rq(list, exwG):\n pCSA = zip(*[list[YRbF:] for YRbF in range(exwG)])\n return [' '.join(u8Mh) ... | [
"0.8114929",
"0.8107826",
"0.79146713",
"0.7791096",
"0.77816623",
"0.7760309",
"0.7717857",
"0.7651586",
"0.75992054",
"0.75757325",
"0.7519746",
"0.74806225",
"0.7425707",
"0.74204004",
"0.74161285",
"0.7402985",
"0.73509467",
"0.7329913",
"0.7321288",
"0.73070914",
"0.7284... | 0.78738594 | 3 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues):
if not leAC:
if NkkI:
leAC = 'Normalized confusion matrix'
else:
leAC = 'Confusion matrix, without normalization'
Bcwd = YsYU(Y8eF, aMgO)
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.81920755",
"0.8093736",
"0.8028212",
"0.8017333",
"0.79923165",
"0.7989431",
"0.79789335",
"0.7974398",
"0.795948",
"0.79555666",
"0.7935652",
"0.7932704",
"0.7932632",
"0.7929465",
"0.7924336",
"0.7922666",
"0.79221356",
"0.7921299",
"0.79209703",
"0.7920307",
"0.7916008"... | 0.0 | -1 |
Get the last broadcasted state from the /mavros/state topic | def DghZ():
global current_state
while DghZ is None:
pass
return DghZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LsPf(YKHO):\n if not YKHO.state_list:\n return None\n if not YKHO.state_list[-1]:\n return None\n return YKHO.state_list[-1]",
"def o_r0(YKHO):\n return YKHO._simstate",
"def bGIA(YKHO):\n return YKHO.pipeline.get_state(Jc3d.CLOCK_TIME_NONE)[1]",
"def j29d(YKHO):\n return ... | [
"0.6417554",
"0.62642854",
"0.6139529",
"0.6015026",
"0.6008578",
"0.59739655",
"0.5973244",
"0.5938572",
"0.59256697",
"0.58885914",
"0.58385104",
"0.58385104",
"0.5825541",
"0.5800791",
"0.57872146",
"0.57858175",
"0.5777898",
"0.5752066",
"0.5733361",
"0.57307214",
"0.5702... | 0.0 | -1 |
Apply histogram equalization to an input frame, threshold it and return the (binary_image_array) result. | def UAxz(f4IJ):
ggeo = XC5k.equalizeHist(f4IJ.gray)
bGrB, idx7 = XC5k.threshold(ggeo, thresh=240, maxval=255, type=XC5k.THRESH_TOZERO)
return idx7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ji2q(f4IJ):\n ji2q = XC5k.equalizeHist(f4IJ)\n return ji2q",
"def BTlm(f4IJ, b6Fn=30):\n return XC5k.threshold(f4IJ, b6Fn, 255, XC5k.THRESH_BINARY)[1]",
"def NcFt(WkuO):\n gQPV = False\n LNo8 = WkuO\n if len(WkuO.shape) == 3:\n gQPV = True\n pnTu = ofDI(WkuO)\n LNo8 =... | [
"0.7274848",
"0.70589155",
"0.6838287",
"0.66614676",
"0.6572216",
"0.65297306",
"0.6498808",
"0.64899945",
"0.6463982",
"0.64587957",
"0.6425696",
"0.6424768",
"0.640547",
"0.6374837",
"0.6334242",
"0.6324775",
"0.6276884",
"0.6257229",
"0.62504154",
"0.62375546",
"0.6179145... | 0.79449207 | 0 |
Array of species molar masses [kg/kmol]. | def qfHA(YKHO, oMqC=None):
cpvk = bMU8.phase_getarray(YKHO._phase_id, 22)
return YKHO.selectSpecies(cpvk, oMqC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mfQf(N9D1):\n return oyIN.array([jzdc.GetMass() for jzdc in N9D1.GetAtoms()])",
"def ztHm(YKHO):\n try:\n return YKHO._massList\n except AttributeError:\n YKHO._massList = [float(WKvO) for WKvO in YKHO._raw_data['MASS']]\n return YKHO._massList",
"def MAKF(YKHO):\n kQKO = Y... | [
"0.77033025",
"0.7010884",
"0.6967567",
"0.6662244",
"0.6612066",
"0.652884",
"0.6185853",
"0.6109096",
"0.6049422",
"0.6046375",
"0.59868944",
"0.5983297",
"0.5859888",
"0.5834788",
"0.58251154",
"0.58115196",
"0.57832134",
"0.5771419",
"0.57619977",
"0.57262677",
"0.5725522... | 0.7331622 | 1 |
Array of species molar masses [kg/kmol]. | def eCVJ(YKHO, oMqC=None):
return YKHO.molarMasses(oMqC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mfQf(N9D1):\n return oyIN.array([jzdc.GetMass() for jzdc in N9D1.GetAtoms()])",
"def qfHA(YKHO, oMqC=None):\n cpvk = bMU8.phase_getarray(YKHO._phase_id, 22)\n return YKHO.selectSpecies(cpvk, oMqC)",
"def ztHm(YKHO):\n try:\n return YKHO._massList\n except AttributeError:\n YKHO... | [
"0.77033025",
"0.7331622",
"0.7010884",
"0.6967567",
"0.6662244",
"0.6612066",
"0.652884",
"0.6185853",
"0.6109096",
"0.6049422",
"0.6046375",
"0.59868944",
"0.5983297",
"0.5859888",
"0.5834788",
"0.58251154",
"0.58115196",
"0.57832134",
"0.5771419",
"0.57619977",
"0.57262677... | 0.5464818 | 42 |
Mole fraction of a species, referenced by name or index number. >>> ph.moleFraction(4) >>> ph.moleFraction('CH4') | def Qa1X(YKHO, oMqC):
G1Hx = YKHO.speciesIndex(oMqC)
return bMU8.phase_molefraction(YKHO._phase_id, G1Hx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qa1X(YKHO, KCHu):\n if type(KCHu) == SnBA.StringType:\n ERMG = YKHO._contents.speciesIndex(KCHu)\n else:\n ERMG = KCHu\n WKvO = YKHO.moleFractions()\n return WKvO[ERMG]",
"def FLxv(YKHO, oMqC=None):\n WKvO = bMU8.phase_getarray(YKHO._phase_id, 20)\n return YKHO.selectSpecies(W... | [
"0.80913675",
"0.70740086",
"0.68286306",
"0.6639602",
"0.6633551",
"0.6337102",
"0.5858942",
"0.5850405",
"0.5636429",
"0.55042446",
"0.5472932",
"0.5384408",
"0.5356524",
"0.53066105",
"0.5292259",
"0.5236752",
"0.51733166",
"0.51559746",
"0.5136899",
"0.5134771",
"0.513313... | 0.7754062 | 1 |
Species mass fraction array. If optional argument species is supplied, then only the values for the selected species are returned. >>> y1 = ph.massFractions() all species >>> y2 = ph.massFractions(['OH', 'CH3'. 'O2']) | def sAPE(YKHO, oMqC=None):
LVAh = bMU8.phase_getarray(YKHO._phase_id, 21)
return YKHO.selectSpecies(LVAh, oMqC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sAPE(YKHO):\n J8l2 = YKHO._contents.nSpecies()\n LVAh = VNqG(J8l2, 'd')\n for G1Hx in range(J8l2):\n LVAh[G1Hx] = YKHO.massFraction(G1Hx)\n return LVAh",
"def d3uL(YKHO, oMqC):\n G1Hx = YKHO.speciesIndex(oMqC)\n return bMU8.phase_massfraction(YKHO._phase_id, G1Hx)",
"def FLxv(YKHO,... | [
"0.768643",
"0.7121507",
"0.700465",
"0.6576287",
"0.6432377",
"0.57874465",
"0.56374764",
"0.5481158",
"0.538975",
"0.53418016",
"0.5316373",
"0.53144085",
"0.5270862",
"0.52437854",
"0.52242243",
"0.5200321",
"0.5193363",
"0.5179203",
"0.51119214",
"0.5103088",
"0.5071522",... | 0.8189515 | 0 |
Mass fraction of one species, referenced by name or index number. >>> ph.massFraction(4) >>> ph.massFraction('CH4') | def d3uL(YKHO, oMqC):
G1Hx = YKHO.speciesIndex(oMqC)
return bMU8.phase_massfraction(YKHO._phase_id, G1Hx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d3uL(YKHO, KCHu):\n if type(KCHu) == SnBA.StringType:\n ERMG = YKHO._contents.speciesIndex(KCHu)\n else:\n ERMG = KCHu\n return bMU8.reactor_massFraction(YKHO.__reactor_id, ERMG)",
"def sAPE(YKHO, oMqC=None):\n LVAh = bMU8.phase_getarray(YKHO._phase_id, 21)\n return YKHO.selectSp... | [
"0.8143933",
"0.7273333",
"0.6898319",
"0.6713574",
"0.666651",
"0.6622478",
"0.63634455",
"0.6115404",
"0.6112987",
"0.6078885",
"0.60731626",
"0.6020887",
"0.6008939",
"0.5954976",
"0.59517664",
"0.5927389",
"0.5915098",
"0.5908623",
"0.5904089",
"0.5900988",
"0.58879167",
... | 0.79167795 | 1 |
Given an array f of floatingpoint element properties, return a those values corresponding to elements listed in elements. Returns an array if elements is a sequence, or a scalar if elements is a scalar. >>> f = ph.elementPotentials() >>> lam_o, lam_h = ph.selectElements(f, ['O', 'H']) >>> lam_h = ph.selectElements(f, '... | def YgGl(YKHO, eHNT, UqER):
if isinstance(UqER, SnBA.StringTypes):
r8hN = YKHO.elementIndex(UqER)
return eHNT[r8hN]
if UqER:
Vb5F = []
G1Hx = 0
for KCHu in UqER:
G1Hx = YKHO.elementIndex(KCHu)
Vb5F.append(eHNT[G1Hx])
return MF4b(Vb5F)
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UqER(u8IA):\n E_qD = jJDz().connect()\n return E_qD.find_elements_by_xpath(u8IA)",
"def ZJYK(YKHO, HC2u, mGsV):\n VfAl = []\n PJ4f = []\n Ga2g = 0\n for qw7D in mGsV:\n L0jR = []\n for d_Ba in qw7D:\n if d_Ba in HC2u:\n L0jR.append(d_Ba)\n if l... | [
"0.52432096",
"0.518182",
"0.4885145",
"0.48468608",
"0.48123518",
"0.48107567",
"0.47828904",
"0.47817177",
"0.47577536",
"0.4753989",
"0.47314376",
"0.47000527",
"0.46615222",
"0.46554",
"0.46544898",
"0.45862788",
"0.45752892",
"0.45678526",
"0.45643702",
"0.4563339",
"0.4... | 0.7426283 | 0 |
Computes analytic GP upper confidence bound. | def nrOS(YKHO, **B2fa):
z2bo = YKHO.predictive_distribution.stddev(**B2fa)
JBMS = YKHO.predictive_distribution.mean(**B2fa)
return KI4n(JBMS, z2bo, exploration=YKHO.exploration) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A2Fp(YKHO) -> float:\n ...",
"def HROS(YKHO, EcVT):\n WKvO = oyIN.asarray(EcVT).reshape(1, -1)\n yGTL, WTkW = YKHO.gpr.predict(WKvO, return_std=True)\n return yGTL - YKHO.beta * WTkW",
"def gLHL(YKHO):\n return YKHO._upper_bound",
"def Anhc(YKHO):\n if YKHO._all_nodes:\n return m... | [
"0.6975499",
"0.6713523",
"0.61821425",
"0.6160476",
"0.61156183",
"0.6087567",
"0.6075567",
"0.59776247",
"0.59265476",
"0.5905964",
"0.58638215",
"0.5863536",
"0.58501583",
"0.5828992",
"0.5805245",
"0.5803856",
"0.5790083",
"0.5782733",
"0.57269305",
"0.5709188",
"0.568294... | 0.59057575 | 10 |
Normal distribution upper confidence bound. | def KI4n(JBMS, z2bo, bHR_=0.01):
yDqo = vqUI.common_dtype([JBMS, z2bo])
JBMS = ZylS.convert_to_tensor(JBMS, dtype=yDqo)
z2bo = ZylS.convert_to_tensor(z2bo, dtype=yDqo)
return JBMS + bHR_ * z2bo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z5Lu(Q7Be: float, yGTL: float=0, WTkW: float=1) -> float:\n return K0SZ(Q7Be, yGTL, WTkW)",
"def Z5Lu(Q7Be: float, yGTL: float=0, WTkW: float=1) -> float:\n return K0SZ(Q7Be, yGTL, WTkW)",
"def Z5Lu(Q7Be, yGTL=0, WTkW=1):\n return K0SZ(Q7Be, yGTL, WTkW)",
"def Z5Lu(Q7Be, yGTL=0, WTkW=1):\n re... | [
"0.78890866",
"0.7762559",
"0.7672157",
"0.7672157",
"0.7672157",
"0.7672157",
"0.7672157",
"0.7650126",
"0.733106",
"0.7062492",
"0.6937367",
"0.68465424",
"0.66980326",
"0.66980326",
"0.6690994",
"0.6661956",
"0.6661956",
"0.6628589",
"0.66065615",
"0.6594629",
"0.6575422",... | 0.7093311 | 9 |