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 |
|---|---|---|---|---|---|---|
Retrieve all documents from database. Return a response body as dictionary. | def pi1E(YKHO):
bD7m = YKHO._dbname + '/_all'
return YKHO._connection.get(bD7m).json() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dvck(YKHO) -> iu5r[dict]:\n return YKHO._db['documents']",
"def gchJ():\n A07C = WsL5.request.json\n if not A07C:\n raise cAM_('No ids provided')\n if not isinstance(A07C, list):\n raise cAM_('ids is not a list')\n with VcfD.index_driver.session as cuiw:\n xDcj = cuiw.quer... | [
"0.7672632",
"0.692513",
"0.6871703",
"0.6724037",
"0.67206156",
"0.6693477",
"0.66917866",
"0.6641344",
"0.663724",
"0.661075",
"0.6602389",
"0.65902025",
"0.65882415",
"0.64788723",
"0.64744323",
"0.64557517",
"0.64430666",
"0.6397225",
"0.63501567",
"0.63461",
"0.63415027"... | 0.7154066 | 1 |
Here we have to return the item requested by `idx` The PyTorch DataLoader class will use this method to make an iterable for our training or validation loop. | def OP2O(YKHO, or8S):
VXjJ = YKHO.images[or8S]
UXqs = YKHO.labels[or8S]
return (VXjJ, UXqs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, d6pt):\n bS0K = YKHO.indexes[d6pt * YKHO.batch_size:(d6pt + 1) * YKHO.batch_size]\n MTZi = [YKHO.list_IDs[G1Hx] for G1Hx in bS0K]\n EcVT, LVAh = YKHO.__data_generation(MTZi)\n return (EcVT, LVAh)",
"def OP2O(YKHO, or8S):\n return YKHO.batches[or8S]",
"def OP2O(YKHO, d6pt):\n bS... | [
"0.74890965",
"0.7338219",
"0.7252154",
"0.7252154",
"0.7225329",
"0.7225329",
"0.72103685",
"0.7205269",
"0.7197051",
"0.7196518",
"0.7185896",
"0.7159239",
"0.70329314",
"0.70329314",
"0.69596696",
"0.6953008",
"0.6911623",
"0.6876456",
"0.68624467",
"0.6838756",
"0.6836303... | 0.0 | -1 |
Application wide handler for `page not found` error | def m7kB(tTpl):
if QePW.accept_mimetypes.accept_json and (not QePW.accept_mimetypes.accept_html):
_hkX = pz3A({'error': 'not found'})
_hkX.status_code = 404
return _hkX
return (TvZl('errors/404.html'), 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7kB(tTpl):\n return (TvZl('404.html'), 404)",
"def m7kB(tTpl):\n return TvZl('404.html')",
"def m7kB(tTpl):\n return (TvZl('404.html'), 404)",
"def m7kB(tTpl):\n return (TvZl('404.html'), 404)",
"def LAmf():\n return (TvZl('error.html', title='Page Not Found'), 404)",
"def m7kB(tTpl):... | [
"0.8328757",
"0.8324451",
"0.8306104",
"0.8306104",
"0.8282943",
"0.8278657",
"0.8278657",
"0.8278657",
"0.8278657",
"0.8278657",
"0.8278657",
"0.8278657",
"0.8278657",
"0.82782984",
"0.82782984",
"0.82782984",
"0.82782984",
"0.82782984",
"0.82782984",
"0.82782984",
"0.827268... | 0.7564999 | 44 |
Gets the informationtype of this UserPreference. The type of private information; e.g. is it information that identifies the user (e.g. id number)? is it location information about the user? Is it about their activities? | def bx03(YKHO):
return YKHO._informationtype | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZP0S(YKHO):\n if 'userType' in YKHO._prop_dict:\n return YKHO._prop_dict['userType']\n else:\n return None",
"def ZP0S(YKHO):\n if 'userType' in YKHO._prop_dict:\n return YKHO._prop_dict['userType']\n else:\n return None",
"def WQCA(YKHO) -> qe4Y.Output[h8nf[str]]:\n... | [
"0.70244217",
"0.70244217",
"0.66223395",
"0.6511475",
"0.6403962",
"0.6396905",
"0.6316669",
"0.6290872",
"0.6229755",
"0.6112609",
"0.6112609",
"0.60983986",
"0.6092006",
"0.6092006",
"0.60521835",
"0.60354835",
"0.6029368",
"0.602728",
"0.6024328",
"0.5959934",
"0.5924556"... | 0.738233 | 0 |
Sets the informationtype of this UserPreference. The type of private information; e.g. is it information that identifies the user (e.g. id number)? is it location information about the user? Is it about their activities? | def bx03(YKHO, bx03):
YKHO._informationtype = bx03 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZP0S(YKHO):\n if 'userType' in YKHO._prop_dict:\n return YKHO._prop_dict['userType']\n else:\n return None",
"def ZP0S(YKHO):\n if 'userType' in YKHO._prop_dict:\n return YKHO._prop_dict['userType']\n else:\n return None",
"def bx03(YKHO):\n return YKHO._informati... | [
"0.5897687",
"0.5897687",
"0.5833581",
"0.5798439",
"0.575587",
"0.575587",
"0.5705809",
"0.56874186",
"0.56419927",
"0.56419927",
"0.5571181",
"0.55467516",
"0.54814386",
"0.54786813",
"0.54754466",
"0.546143",
"0.546143",
"0.5440057",
"0.5411394",
"0.5381352",
"0.53481793",... | 0.7156067 | 0 |
Sets the category of this UserPreference. The category of the service invading the privacy of the user. | def Ghho(YKHO, Ghho):
YKHO._category = Ghho | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ials(YKHO, Ghho):\n if Ghho is not None and (not isinstance(Ghho, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: category EXPECTED TYPE: str', None, None)\n YKHO.__category = Ghho\n YKHO.__key_modified['category'] = 1",
"def Ghho(YKHO, Ghho: str):\n YKHO._category = Ghho",
"def Ghho(YKH... | [
"0.6148977",
"0.61171514",
"0.59065515",
"0.56177014",
"0.5612471",
"0.5423099",
"0.53397524",
"0.52552575",
"0.5167303",
"0.5159331",
"0.5105742",
"0.51022834",
"0.5055925",
"0.4898449",
"0.48853084",
"0.48734626",
"0.48195198",
"0.4765104",
"0.47620714",
"0.47319126",
"0.47... | 0.6104452 | 5 |
Gets the preference of this UserPreference. The user's privacy preference. High means they are sensitive to disclosing private information. Medium they have concerns; and low means they have few privacy concerns with this question. | def OO1R(YKHO):
return YKHO._preference | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZCl9(Emd4, CBIr, _Pn0, WmM4=None):\n try:\n m1fU = Emd4.objects.get(user=CBIr, key=_Pn0)\n return m1fU.value\n except Emd4.DoesNotExist:\n return WmM4",
"def XQ56(YKHO):\n return YKHO._user_preferences",
"def dcN7(YKHO):\n if 'privacyProfile' in YKHO._prop_dict:\n if... | [
"0.6533348",
"0.6528942",
"0.6478107",
"0.64710844",
"0.64710844",
"0.64710844",
"0.6251502",
"0.6200216",
"0.6193726",
"0.6190971",
"0.6179328",
"0.61479455",
"0.6108699",
"0.61078143",
"0.6043957",
"0.5972695",
"0.59200466",
"0.5893652",
"0.5890291",
"0.5860554",
"0.5832112... | 0.7332115 | 0 |
Gets the action of this UserPreference. The action being carried out on the private date e.g. accessing, disclosing to a third party. This is an optional parameter in the case where users drill down to more detailed preferences. | def XeOP(YKHO):
return YKHO._action | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XeOP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'action')",
"def XeOP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'action')",
"def XeOP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'action')",
"def AMEM(YKHO):\n return YKHO.__action",
"def XeOP(YKHO):\n return YKHO._get_field('action')",... | [
"0.7054317",
"0.7054317",
"0.7054317",
"0.6913263",
"0.6885165",
"0.6768079",
"0.66591793",
"0.66279525",
"0.6453167",
"0.64418346",
"0.64170974",
"0.6410642",
"0.6272838",
"0.625536",
"0.6210096",
"0.6159967",
"0.6085725",
"0.6085725",
"0.6085725",
"0.6085725",
"0.6085725",
... | 0.67523766 | 8 |
Sets the action of this UserPreference. The action being carried out on the private date e.g. accessing, disclosing to a third party. This is an optional parameter in the case where users drill down to more detailed preferences. | def XeOP(YKHO, XeOP):
YKHO._action = XeOP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ddsp(YKHO, XeOP):\n YKHO.action = XeOP",
"def Ddsp(YKHO, XeOP):\n YKHO.action = XeOP",
"def Ddsp(YKHO, XeOP):\n YKHO.__action = XeOP",
"def Ddsp(YKHO, XeOP):\n YKHO._action = XeOP\n return YKHO",
"def FGnS(YKHO, XeOP):\n YKHO.action = XeOP\n return YKHO",
"def XeOP(YKHO, XeOP):\n... | [
"0.717679",
"0.717679",
"0.7100732",
"0.6970779",
"0.68790585",
"0.68238956",
"0.678415",
"0.678415",
"0.678415",
"0.678415",
"0.678415",
"0.678415",
"0.67498076",
"0.6652996",
"0.65466654",
"0.6514857",
"0.6495008",
"0.639691",
"0.623708",
"0.6096908",
"0.6071225",
"0.6071... | 0.6727978 | 13 |
Gets the purpose of this UserPreference. The purpose for which the service is using the private data. This is an optional parameter in the case where users drill down to more detailed preferences. | def Hqyb(YKHO):
return YKHO._purpose | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hqyb(YKHO) -> str:\n return qe4Y.get(YKHO, 'purpose')",
"def Hqyb(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'purpose')",
"def Hqyb(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'purpose')",
"def Hqyb(YKHO) -> h8nf[qe4Y.Input['CryptoKeyPurpose']]:\n return qe4Y.get(YKHO, 'pu... | [
"0.68959767",
"0.6782144",
"0.6767882",
"0.6743495",
"0.5690282",
"0.5690282",
"0.56498134",
"0.5514734",
"0.5472327",
"0.5429083",
"0.54241467",
"0.54016215",
"0.5375653",
"0.5375189",
"0.5375189",
"0.5358013",
"0.5339238",
"0.5339238",
"0.53197485",
"0.52952516",
"0.5246787... | 0.70088947 | 0 |
Sets the recipient of this UserPreference. The recipient of any disclosed privacy information. This is an optional parameter in the case where users drill down to more detailed preferences. | def nG3o(YKHO, nG3o):
YKHO._recipient = nG3o | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iOUK(YKHO, iOUK):\n YKHO._recipient_email = iOUK",
"def otVH(YKHO, *n6_N):\n assert [Mkmy for Mkmy in n6_N if Mkmy], 'setRecipients called with %r' % (n6_N,)\n YKHO.recipients = n6_N",
"def nG3o(YKHO):\n return YKHO._recipient",
"def wK_M(YKHO, wEf2: EmailAddress):\n YKHO._reply_to = wEf2"... | [
"0.59488815",
"0.55685467",
"0.5555495",
"0.52072185",
"0.5094615",
"0.50062287",
"0.49588314",
"0.49154642",
"0.48755875",
"0.48619398",
"0.4857391",
"0.48545724",
"0.48483944",
"0.48152375",
"0.4797693",
"0.47932798",
"0.4772352",
"0.4730175",
"0.47197193",
"0.47166342",
"0... | 0.6684624 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.7961088",
"0.7961088",
"0.79433626",
"0.79303336",
"0.7926563",
"0.7897525",
"0.78826123",
"0.78826123",
"0.78806067",
"0.7872423",
"0.7868354",
"0.78668815",
"0.7825702",
"0.7819993",
"0.78162885",
"0.78078854",
"0.78068... | 0.79670393 | 40 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"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.0 | -1 |
convert a date string to a datetime obj | def rqB5(str):
format = '%m/%d/%Y:%H:%M'
try:
lPJF = qcWV.datetime.strptime(str, format)
return lPJF
except ValueError as e:
print('Invalid format. Type --help for help.')
HwRy.exit() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDPx(GXef):\n from dateutil import parser\n from datetime import datetime\n _c1T = parser.parse(GXef)\n return _c1T",
"def TZLK(mbyn: str) -> qcWV:\n return d5IO.parser.parse(mbyn)",
"def OLXh(JvEs):\n return JRYC.strptime(JvEs, '%Y-%m-%d')",
"def R2Sr(KCHu):\n return qcWV.strptime(K... | [
"0.80567396",
"0.8017137",
"0.7864569",
"0.78634626",
"0.7813418",
"0.7802854",
"0.776981",
"0.77460647",
"0.7680245",
"0.7561667",
"0.7559936",
"0.7558161",
"0.75354403",
"0.75292635",
"0.7522666",
"0.7504948",
"0.7501718",
"0.7500525",
"0.7492992",
"0.74874043",
"0.74746895... | 0.69908804 | 68 |
convert a datetime obj to UNIX timestamp | def l2cW(JRYC):
E3oo = JRYC.timestamp()
E3oo = int(E3oo)
return E3oo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tAwz(Emd4, E3oo):\n if not isinstance(E3oo, qcWV.datetime):\n raise TypeError('Time.milliseconds expects a datetime object')\n return E3oo.timestamp()",
"def n99j(YKHO, JRYC):\n return ITS7.mktime(JRYC.timetuple())",
"def gmQs(JRYC):\n azw4 = (JRYC - qcWV(1970, 1, 1)).total_seconds()\n ... | [
"0.75118583",
"0.7441151",
"0.7413134",
"0.7333397",
"0.7227382",
"0.7154435",
"0.71492493",
"0.7147078",
"0.71339035",
"0.7101312",
"0.7041612",
"0.7019332",
"0.7011078",
"0.6962526",
"0.69107395",
"0.69055146",
"0.68959236",
"0.68573284",
"0.68507534",
"0.6836119",
"0.67825... | 0.66668206 | 34 |
get the storage profile backend | def O_Rz(YKHO, z39Z):
return YKHO._get_attribute(z39Z, 'backend') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JvXs(YKHO):\n return YKHO.client.info()['Driver']",
"def JLXL():\n return xcLg._BACKEND",
"def TMxO(YKHO) -> h8nf[DzqF]:\n z39Z = YKHO.models.ManagedClusterStorageProfile()\n if YKHO.mc.storage_profile is not None:\n z39Z = YKHO.mc.storage_profile\n z39Z.disk_csi_driver = YKHO.get_dis... | [
"0.8109166",
"0.7166763",
"0.7088159",
"0.70828015",
"0.7081954",
"0.69376177",
"0.674958",
"0.66896605",
"0.6652242",
"0.6646807",
"0.66389835",
"0.65603095",
"0.6507067",
"0.64663154",
"0.64635766",
"0.64633214",
"0.64539784",
"0.6421563",
"0.6377023",
"0.63766414",
"0.6250... | 0.80633515 | 1 |
Draw rectangles around features found in an image | def yvie(YKHO, DkGn):
if not YKHO.features_detected:
raise Exception('Detect features before drawing')
for WKvO, LVAh, yzQ0, MKlR in YKHO.features:
XC5k.rectangle(DkGn, (WKvO, LVAh), (WKvO + yzQ0, LVAh + MKlR), (255, 0, 0), 2)
return DkGn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s8EI(VXjJ, j8aQ, qfpW):\n for o4D3, si3g, ajwV, skBL in j8aQ:\n XC5k.rectangle(VXjJ, (o4D3, si3g), (ajwV, skBL), qfpW, 2)",
"def Itgt(YKHO, LNo8):\n if gnPz.isgray(LNo8):\n sRAQ = 255\n 'leftEyeColor = 255 \\n rightEyeColor = 255 \\n ... | [
"0.71270686",
"0.67524135",
"0.6650638",
"0.66389924",
"0.658751",
"0.65783095",
"0.64755803",
"0.6401808",
"0.6380531",
"0.63659096",
"0.6352395",
"0.63284403",
"0.63259363",
"0.6304608",
"0.63043827",
"0.627144",
"0.62679374",
"0.62504333",
"0.62408173",
"0.6218318",
"0.621... | 0.7837111 | 0 |
Converts a RAM offset to a ROM offset. | def nD4G(qwxf, gBH5):
if qwxf == 0:
Tr5h = gBH5
else:
Tr5h = qwxf * 16384 + gBH5 - 16384
return Tr5h | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tot0(YKHO, vgXP, wEf2):\n YKHO.SPItrans([64 | (vgXP & 1) << 3, 0, vgXP & 255, wEf2 & 255])",
"def aa7_(YKHO, vgXP):\n return YKHO.offset + vgXP",
"def gglD(YKHO, UTX6):\n return YKHO.rom.mapMem(YKHO, UTX6)",
"def CyTS(YKHO, UTX6):\n YKHO.writecmd(YKHO.APP, YKHO.WRITE3_READ1, 4, [32 | (UTX6 & ... | [
"0.596083",
"0.5677476",
"0.5521827",
"0.5423537",
"0.52856374",
"0.5282188",
"0.5269767",
"0.52220654",
"0.51163393",
"0.5089427",
"0.5012535",
"0.5012016",
"0.4989005",
"0.4971654",
"0.49634978",
"0.49581927",
"0.4935217",
"0.4935036",
"0.49329716",
"0.49247158",
"0.4896975... | 0.81001043 | 0 |
Respond that the config was inserted in the database. This function creates a corresponding response object and inserts it in the scheduler output queue. The response depends if the insertion succeeded or failed. | def lGbm(Ilxn: str, nyyK: bool) -> None:
if nyyK:
geh0 = QqN4.Response(success=True, message=f'Configuration with identifier {Ilxn} was successfully added to the schedule.', command=QqN4.SCHEDULER_ADD_CONFIG)
else:
geh0 = QqN4.Response(success=False, message=f"Configuration with identifier {Ilxn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MQNQ(Ilxn: str, nyyK: bool) -> None:\n if nyyK:\n geh0 = QqN4.Response(success=True, message=f'Interval with identifier {Ilxn} was successfully added.', command=QqN4.SCHEDULER_ADD_INTERVAL)\n else:\n geh0 = QqN4.Response(success=False, message=f\"Interval with identifier {Ilxn} wasn't added... | [
"0.60303116",
"0.5676817",
"0.5573638",
"0.55667096",
"0.543245",
"0.5423769",
"0.53902036",
"0.531135",
"0.5289624",
"0.5272679",
"0.5165895",
"0.51614034",
"0.51545453",
"0.50827277",
"0.50684375",
"0.50513464",
"0.50505483",
"0.5029978",
"0.50130916",
"0.49962315",
"0.4987... | 0.7150801 | 0 |
Normalizes a column header name. By default, lowercases it and replaces underscores with spaces (e.g. because Esri fields can't contain spaces). | def t1dz(YKHO, KCHu):
WBPg = oRP1(KCHu.lower().replace('_', ' '))
if hasattr(YKHO, 'locale'):
return YKHO.column_headers[YKHO.locale].get(WBPg, WBPg)
else:
return WBPg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UuRg(mWFP):\n return mWFP.lower()",
"def dOHh(GIN8: str, SAEY='-') -> str:\n return SAEY.join((WKvO.capitalize() or '_' for WKvO in GIN8.split('_')))",
"def xDF4(jQ3Z):\n Xlv3 = [WBPg.replace(\"'\", '').replace(' ', '').replace('(', '').replace(')', '').replace('.', '').replace('[', '').replace(']... | [
"0.7891797",
"0.7151179",
"0.6780989",
"0.66824234",
"0.66265243",
"0.65931004",
"0.6575037",
"0.64540786",
"0.63369936",
"0.6316234",
"0.62316495",
"0.62180614",
"0.62162244",
"0.6162555",
"0.61588436",
"0.61355364",
"0.61355364",
"0.61355364",
"0.61170626",
"0.6101007",
"0.... | 0.75482494 | 1 |
Corrects the postal code, abbreviates the province or territory name, and formats the last line of the address. | def FAkZ(YKHO, KCHu):
KCHu = ZbWC.sub('\\b[A-Z][O0-9][A-Z]\\s?[O0-9][A-Z][O0-9]\\b', lambda WKvO: WKvO.group(0).replace('O', '0'), oRP1(KCHu))
for G1Hx, Ty9i in jMt6().items():
KCHu = ZbWC.sub('[,\\n ]+\\(?' + G1Hx + '\\)?(?=(?:[,\\n ]+Canada)?(?:[,\\n ]+[A-Z][0-9][A-Z]\\s?[0-9][A-Z][0-9])?\\Z)', ' ' + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYZW(UTX6):\n if 'country' in UTX6 and UTX6['country']:\n vxW9 = UTX6['country']\n if vxW9 == 'CA':\n UTX6['country'] = 'CANADA'\n elif vxW9 == 'US':\n UTX6['country'] = 'UNITED STATES OF AMERICA'\n else:\n try:\n vxW9: str = ECWZ.c... | [
"0.67925024",
"0.66052836",
"0.65351456",
"0.64845693",
"0.630982",
"0.6286695",
"0.62632084",
"0.6248758",
"0.6235853",
"0.619288",
"0.61679214",
"0.6145944",
"0.6136241",
"0.6096363",
"0.60831267",
"0.60495055",
"0.6038855",
"0.60049254",
"0.59960675",
"0.596689",
"0.593596... | 0.75109243 | 0 |
Flattens an object list to list values from the input key. | def KHCe(ei4T, H5ew):
CIH_ = []
for object in ei4T:
CIH_.append(object[H5ew])
return CIH_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _cXH(YKHO, H5ew):\n return [H5ew] if isinstance(H5ew, (str, QMSQ)) else H5ew",
"def T1hL(d7pR):\n if hasattr(d7pR, 'iteritems'):\n DumB = d7pR.iteritems()\n elif hasattr(d7pR, 'items'):\n DumB = d7pR.items()\n else:\n DumB = d7pR\n nPrm = {}\n yQrc = []\n for EzFY, w... | [
"0.6282146",
"0.62681746",
"0.62389696",
"0.6218957",
"0.6179673",
"0.61769456",
"0.5984717",
"0.5960501",
"0.5908372",
"0.5891378",
"0.5885682",
"0.58415806",
"0.58358103",
"0.5822948",
"0.57968175",
"0.57681143",
"0.57681143",
"0.5759571",
"0.57543474",
"0.5676075",
"0.5660... | 0.74044377 | 0 |
Check if the diagonal contains only distances of 0. | def PqT7(YKHO):
return max(XTiz.diag(YKHO)) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def luah(YKHO):\n for YRbF in range(YKHO.SIZE):\n JEs7 = 0\n for r845 in range(YKHO.SIZE):\n if YRbF != r845:\n JEs7 += abs(YKHO.matrix[YRbF][r845])\n if abs(YKHO.matrix[YRbF][YRbF]) < JEs7:\n if not YKHO.has_error:\n YKHO.error += GUs1 + ... | [
"0.7113069",
"0.6907501",
"0.67899483",
"0.67822784",
"0.6727201",
"0.67067105",
"0.6683085",
"0.6666364",
"0.6605932",
"0.6605932",
"0.6593007",
"0.65881306",
"0.652949",
"0.6521399",
"0.64931494",
"0.64712787",
"0.6446754",
"0.63964283",
"0.6367554",
"0.63312495",
"0.632270... | 0.7694892 | 0 |
Applies batch normalization. Using the implementation in github.com/ tensorflow/tpu/blob/master/models/official/amoeba_net/network_utils.pyL550 | def eZt6(YKHO, q7In, g4y1):
if ZWbl.testonly_skip_norm_layers():
return g4y1
XP5J = YKHO.params
vnsC = g4y1.dtype
g4y1 = ZylS.cast(g4y1, XP5J.dtype)
g4y1 = ZWbl.with_dependencies([ZWbl.assert_shape_match([ZylS.shape(g4y1)[-1]], ZylS.shape(q7In.beta))], g4y1)
with ZylS.name_scope(XP5J.nam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def idFg(g4y1, Y9ns, wH3T):\n return ZylS.compat.v1.layers.batch_normalization(inputs=g4y1, axis=1 if wH3T == 'channels_first' else 3, momentum=ddHF, epsilon=UCFg, center=True, scale=True, training=Y9ns, fused=True)",
"def idFg(g4y1, Y9ns, wH3T):\n return ZylS.layers.batch_normalization(inputs=g4y1, axis=1... | [
"0.7592111",
"0.7517549",
"0.72370327",
"0.720235",
"0.7191406",
"0.7172832",
"0.7151566",
"0.7124053",
"0.70797896",
"0.7074559",
"0.7063098",
"0.7060001",
"0.7037771",
"0.7016266",
"0.700559",
"0.69971794",
"0.6991894",
"0.6938576",
"0.6908847",
"0.6883035",
"0.6853779",
... | 0.0 | -1 |
Add a provisioning request This endpoint is used to submit a new provisioing request | def BiMf():
if DTsL.request.is_json:
PdUZ = PFaC.from_dict(DTsL.request.get_json())
return PdUZ.save() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HiCp(YKHO):\n TBsA = PFaC()\n geh0 = YKHO.client.open('/api/provisioning/port', method='POST', data=qQXR.dumps(TBsA), content_type='application/json')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))",
"def qmEn(mBtZ, QePW):\n return RXQw(mBtZ, QePW)",
"def GLiJ(YKHO, y... | [
"0.6709356",
"0.6354247",
"0.58084023",
"0.5807036",
"0.5684748",
"0.5630783",
"0.55059826",
"0.5458795",
"0.5450733",
"0.5444115",
"0.5385391",
"0.5382746",
"0.53086185",
"0.53068244",
"0.5298163",
"0.5272548",
"0.5271485",
"0.52280164",
"0.5197333",
"0.5136484",
"0.5135528"... | 0.7784216 | 0 |
Create a pandas DataFrame from a numpy array | def u0uv(nPrm, d6pt, ZLJ_):
return rLdf.DataFrame(nPrm, d6pt, ZLJ_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMxI(CiHI: np.ndarray) -> rLdf.DataFrame:\n return rLdf.DataFrame(data=CiHI[1:, 1:], index=CiHI[1:, 0], columns=CiHI[0, 1:])",
"def OI5z(fTPA, l7j3=''):\n if l7j3 == '':\n l1Rm = p64T.DataFrame(data=fTPA)\n else:\n l1Rm = p64T.DataFrame(data=fTPA, columns=l7j3)\n return l1Rm",
"de... | [
"0.77702105",
"0.7429296",
"0.7328162",
"0.67364043",
"0.66789114",
"0.6568491",
"0.655613",
"0.6528087",
"0.6488552",
"0.6457486",
"0.64539254",
"0.6452575",
"0.643567",
"0.6351581",
"0.6342924",
"0.633087",
"0.6290506",
"0.6256135",
"0.62464374",
"0.6239635",
"0.62120587",
... | 0.60647607 | 23 |
Spawns `pedestrians` in random locations. | def e_jY(EmUK: carla.World, gr38: int, vObi: Sequence[float]=(1.0, 1.5, 2.0)) -> bdIy[CRxp.Vehicle]:
mpiO = EmUK.get_blueprint_library()
gig7 = list()
for exwG in range(gr38):
QJbm = tuKI.choice(mpiO.filter('walker.pedestrian.*'))
QJbm.set_attribute('is_invincible', 'true')
while len... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SawS(YKHO) -> None:\n return",
"def cl53(YKHO, LVAh, WKvO, MKlR, yzQ0):\n YKHO.pos = (oyIN.random.randint(LVAh, LVAh + MKlR), oyIN.random.randint(WKvO, WKvO + yzQ0))",
"def nuco(f0tD):\n f0tD.create_houses(True)\n for pOZw in f0tD.houses:\n lH9P(f0tD, pOZw)",
"def N9q7(YKHO):\n bo34... | [
"0.6385664",
"0.6308284",
"0.62233245",
"0.61066777",
"0.59956706",
"0.59764",
"0.59498715",
"0.5949812",
"0.5937989",
"0.5913861",
"0.58850455",
"0.5882951",
"0.5826011",
"0.58222336",
"0.5793148",
"0.5746932",
"0.5733028",
"0.5714152",
"0.57048285",
"0.5701444",
"0.56843114... | 0.7601863 | 0 |
Converts a `CARLA` measurement with attributes `x`, `y` and `z` to neural network friendly tensor. | def H3lQ(UqpO: Any) -> oyIN.ndarray:
return oyIN.asarray([UqpO.x, UqpO.y, UqpO.z], dtype=oyIN.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vil0(WKvO, LVAh, epBp):\n FFEX = [[WKvO], [LVAh], [epBp]]\n return oyIN.matrix(FFEX)",
"def vhpA(YKHO, EcVT):\n return ZylS.convert_to_tensor(EcVT, dtype=YKHO.dtype)",
"def pOv4(YKHO, WKvO):\n k4iO = ZylS.matmul(WKvO, YKHO.components_) + YKHO.mean_\n if YKHO.output_reshape:\n k4iO = Z... | [
"0.55218256",
"0.54678756",
"0.5464549",
"0.5452774",
"0.5447583",
"0.5443619",
"0.5443619",
"0.5443619",
"0.53828794",
"0.53746426",
"0.52829725",
"0.5265383",
"0.5208572",
"0.5187509",
"0.5124086",
"0.5115632",
"0.5111242",
"0.50903374",
"0.5083897",
"0.5065753",
"0.5063487... | 0.50507134 | 22 |
Converts a `CARLA` rotation to a neural network friendly tensor. | def gy5M(DWJ0: carla.VehicleControl) -> oyIN.ndarray:
return oyIN.asarray([DWJ0.pitch, DWJ0.yaw, DWJ0.roll], dtype=oyIN.float32) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CdkD(qw7D: np.ndarray) -> CRxp.Rotation:\n return CRxp.Rotation(*list(map(float, qw7D)))",
"def O1zA(tkLd):\n rKSe, H2HG, xTkQ = v7Y7(tkLd)\n pg0t = BmLB.euler_matrix(rKSe, H2HG, xTkQ)\n bULF = pg0t[:3, :3]\n return bULF",
"def v7Y7(tkLd):\n rKSe = -epAf.radians(tkLd.roll)\n H2HG = -ep... | [
"0.6352738",
"0.62339824",
"0.6024309",
"0.6001538",
"0.59880286",
"0.5941041",
"0.5924012",
"0.58854604",
"0.57720107",
"0.57476383",
"0.5648926",
"0.56421536",
"0.56418765",
"0.56293344",
"0.56293344",
"0.5628499",
"0.5621215",
"0.55792403",
"0.557715",
"0.5545402",
"0.5527... | 0.5578244 | 18 |
Returns the rotation matrix (3x3) given rotation in degrees. | def bArN(DWJ0: np.ndarray) -> oyIN.ndarray:
q4Fi = CdkD(DWJ0)
H2HG = oyIN.deg2rad(q4Fi.pitch)
rKSe = oyIN.deg2rad(q4Fi.roll)
xTkQ = oyIN.deg2rad(q4Fi.yaw)
return TcOH.euler.euler2mat(rKSe, H2HG, xTkQ).T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bULF(N0Pp):\n UShr, Yrvv, yl4j = N0Pp\n Zl7o = oyIN.array([[1, 0, 0], [0, oyIN.cos(UShr), -oyIN.sin(UShr)], [0, oyIN.sin(UShr), oyIN.cos(UShr)]])\n xEPK = oyIN.array([[oyIN.cos(Yrvv), 0, -oyIN.sin(Yrvv)], [0, 1, 0], [oyIN.sin(Yrvv), 0, oyIN.cos(Yrvv)]])\n LaXt = oyIN.array([[oyIN.cos(yl4j), -oyIN.s... | [
"0.76316816",
"0.76136047",
"0.75888276",
"0.75798786",
"0.74915266",
"0.7455403",
"0.73837405",
"0.732388",
"0.7304468",
"0.72709274",
"0.7251569",
"0.7243167",
"0.7238756",
"0.71931994",
"0.71853215",
"0.7162346",
"0.7159403",
"0.71549994",
"0.7144595",
"0.714456",
"0.71171... | 0.763637 | 0 |
Assert that preupload correctly posts a valid DigestCollection. | def Fejk(YKHO):
_63S = 'default-gzip'
AtgF = eOyk(_63S, ['a pony'])
YKHO.assertEqual(AtgF.namespace.namespace, _63S)
geh0 = YKHO.call_api('preupload', YKHO.message_to_dict(AtgF), 200)
Ol8d = geh0.json.get(u'items', [{}])[0]
YKHO.assertEqual('', Ol8d.get(u'gs_upload_url', ''))
aEqx = xzCw(Ol8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _5dc(YKHO):\n rkl6 = yukg.DigestCollection(namespace=yukg.Namespace())\n Pgui = usUQ(rkl6.namespace.namespace, 'some stuff')\n Pgui = 'g' + Pgui[1:]\n rkl6.items.append(yukg.Digest(digest=Pgui, size=10))\n with YKHO.call_should_fail('400'):\n YKHO.call_api('preupload', YKHO.message_to_dic... | [
"0.66060954",
"0.62266684",
"0.6076893",
"0.5997191",
"0.58350533",
"0.5833532",
"0.5799326",
"0.5795468",
"0.57431734",
"0.5702004",
"0.56863225",
"0.5676118",
"0.56317985",
"0.56190366",
"0.56003374",
"0.5591057",
"0.5562161",
"0.55481374",
"0.55475736",
"0.55439943",
"0.54... | 0.7695466 | 0 |
Assert that status 400 is returned when the digest is invalid. | def _5dc(YKHO):
rkl6 = yukg.DigestCollection(namespace=yukg.Namespace())
Pgui = usUQ(rkl6.namespace.namespace, 'some stuff')
Pgui = 'g' + Pgui[1:]
rkl6.items.append(yukg.Digest(digest=Pgui, size=10))
with YKHO.call_should_fail('400'):
YKHO.call_api('preupload', YKHO.message_to_dict(rkl6), 20... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 400)",
"def s6Fd(YKHO):\n YKHO.assertEqual(YKHO._request({}), 400)",
"def T1ps(YKHO):\n sU44 = 'invalid'\n B2fa = {'digest_value': sU44}\n YKHO.assertRaisesRegex(TypeError, 'invalid digest value', Gtel, **B2fa)",
"def w45d(YKHO,... | [
"0.71915936",
"0.706649",
"0.7063762",
"0.70434695",
"0.68241256",
"0.67997074",
"0.66844296",
"0.6675763",
"0.66534567",
"0.66534156",
"0.6629669",
"0.6610178",
"0.6581304",
"0.6578812",
"0.6488719",
"0.6472232",
"0.64715564",
"0.64515173",
"0.6390317",
"0.63737464",
"0.6360... | 0.6786917 | 6 |
Assert that status 400 is returned when the namespace is invalid. | def J7zY(YKHO):
rkl6 = yukg.DigestCollection(namespace=yukg.Namespace(namespace='~tildewhatevs'))
rkl6.items.append(f14G(rkl6.namespace.namespace, 'pangolin'))
with YKHO.call_should_fail('400'):
YKHO.call_api('preupload', YKHO.message_to_dict(rkl6), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s6Fd(YKHO):\n YKHO.assertEqual(YKHO._request({}), 400)",
"def w45d(YKHO, geh0):\n YKHO.assertEqual(geh0.status_code, 400)",
"def w45d(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 400)",
"def D5VD(YKHO):\n\n @YKHO.app.route('/400')\n def Z8pp():\n eTsH(400)\n geh0 = YK... | [
"0.73932964",
"0.7241316",
"0.72264194",
"0.6742868",
"0.66893035",
"0.6584689",
"0.6557967",
"0.651333",
"0.65025246",
"0.6495613",
"0.6469016",
"0.64400566",
"0.6436624",
"0.64005506",
"0.63752896",
"0.63164693",
"0.62773484",
"0.6269367",
"0.6266376",
"0.62650573",
"0.6253... | 0.6461189 | 11 |
Assert that inline content storage fails when there is no ticket. | def uJ8c(YKHO):
_63S = 'default-gzip'
QePW = YKHO.store_request(_63S, 'silence')
QePW.upload_ticket = None
with YKHO.call_should_fail('400'):
YKHO.call_api('store_inline', YKHO.message_to_dict(QePW), 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g18m(YKHO):\n _63S = 'default-gzip'\n QePW = YKHO.store_request(_63S, '')\n rWrZ = xzCw(QePW.upload_ticket, yukg.UPLOAD_MESSAGES[0])\n H5ew = C3ST.get_entry_key(rWrZ['n'], rWrZ['d'])\n YKHO.call_api('store_inline', YKHO.message_to_dict(QePW), 200)\n uhPm = H5ew.get()\n YKHO.assertEqual(H5e... | [
"0.72132635",
"0.67731094",
"0.6345822",
"0.6216823",
"0.62062633",
"0.60311335",
"0.588034",
"0.5870477",
"0.58235025",
"0.58128965",
"0.5783678",
"0.57435703",
"0.57328844",
"0.5728127",
"0.57182455",
"0.5710613",
"0.5708009",
"0.5651936",
"0.56476486",
"0.5646798",
"0.5645... | 0.7105201 | 1 |
Assert that retrieval fails with status 416 when offset is invalid. | def LjTk(YKHO):
hGN5 = "Of Man's first Disobedience, and the Fruit"
_63S = 'default'
QePW = YKHO.store_request(_63S, hGN5)
rWrZ = xzCw(QePW.upload_ticket, yukg.UPLOAD_MESSAGES[0])
YKHO.call_api('store_inline', YKHO.message_to_dict(QePW), 200)
G4JS = [yukg.RetrieveRequest(digest=rWrZ['d'], namesp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wMFC(YKHO):\n QePW = YKHO.factory.get('/path', HTTP_RANGE='bytes=17-20')\n geh0 = eim6(QePW, xDSY.BytesIO(b'sui2khiau2tsiang5'), content_type='audio/wav')\n YKHO.assertEqual(geh0.status_code, 416)",
"def e0Ro(YKHO):\n YKHO.expect_datatore_lookup('SomeBlobKey', True)\n YKHO.expect_open_image('S... | [
"0.7262901",
"0.62768227",
"0.6056359",
"0.598298",
"0.59184366",
"0.58583575",
"0.5762025",
"0.5746183",
"0.5715588",
"0.57110554",
"0.56968623",
"0.5693887",
"0.56691706",
"0.5651546",
"0.5647315",
"0.5646933",
"0.56463635",
"0.5645531",
"0.5640704",
"0.56295735",
"0.561448... | 0.6226121 | 2 |
Assert that HTTP 404 response is served when content is absent. | def EMcU(YKHO):
hGN5 = 'á¼\x84νδÏ\x81α\n μοι\n á¼\x94ννεÏ\x80ε'
_63S = 'default'
xUwc = eOyk(_63S, [hGN5])
irLU = YKHO.call_api('preupload', YKHO.message_to_dict(xUwc), 200)
Ol8d = irLU.json.get(u'items', [{}])[0]
QePW = erDF(Ol8d, hGN5)
rWrZ = xzCw(QePW.upload_ticket... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nguk(YKHO, geh0):\n YKHO.assertEqual(geh0.status_code, 404)",
"def Z3BG(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 404)",
"def nguk(YKHO, geh0):\n YKHO.assertTrue(geh0.status_code == 404)",
"def PclH(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.get('/fake-route')\n ... | [
"0.82266843",
"0.81710106",
"0.81665844",
"0.7910996",
"0.7790125",
"0.7763649",
"0.77431107",
"0.77375907",
"0.77250487",
"0.77114826",
"0.77010334",
"0.7693292",
"0.76752394",
"0.76638293",
"0.76015097",
"0.7572155",
"0.7531474",
"0.7521057",
"0.75166315",
"0.74495476",
"0.... | 0.0 | -1 |
Assert that server_details returns the correct version. | def RGGI(YKHO):
geh0 = YKHO.call_api('server_details', {}, 200).json
YKHO.assertEqual(BfDw.get_app_version(), geh0['server_version']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C4Nh(N5z6):\n assert isinstance(N5z6.version(), jKi7.string_types)",
"def Ez_h(YKHO):\n YKHO.assertEqual(LKml.__version_info__, (LKml.version.major, LKml.version.minor, LKml.version.micro))",
"def fgFW(YKHO):\n pass",
"def rTcL(YKHO):\n pass",
"def UxKw(YKHO, kpuP):\n kpuP.return_value.o... | [
"0.7979112",
"0.7291312",
"0.71832013",
"0.71026605",
"0.69860035",
"0.6926059",
"0.6913602",
"0.6879224",
"0.6864865",
"0.6836533",
"0.6797532",
"0.67337537",
"0.671789",
"0.6587996",
"0.6583096",
"0.65811616",
"0.65788925",
"0.65699327",
"0.656066",
"0.65569293",
"0.6527511... | 0.8166473 | 0 |
Test passing an invalid query parameter. | def fu5N(P4t4, W5Ig, c158, x0hE, MKlR, y0cW):
Ylbp = x0hE.get(f'{y0cW}?invalid=test', headers=MKlR)
assert Ylbp.status_code == 200
assert 'invalid' not in Ylbp.json['links']['self']
Ylbp = x0hE.get(f'{y0cW}?type={W5Ig.id}', headers=MKlR)
assert Ylbp.status_code == 200
assert W5Ig.id not in Ylbp.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AriE(YKHO):\n bD7m = gxEw('metrics')\n x0hE = iJSR()\n NArs = {'limit': 'foo'}\n bD7m = bD7m + '?' + QIYp(NArs, quote_via=ZfMZ)\n geh0 = x0hE.get(bD7m, **YKHO.headers)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def zu87():\n from scraper import get_inspection_page... | [
"0.73425215",
"0.71054655",
"0.69906384",
"0.6975498",
"0.68644947",
"0.68282956",
"0.6779271",
"0.66352904",
"0.66285586",
"0.65905184",
"0.65332484",
"0.65195274",
"0.65124476",
"0.65031457",
"0.6501962",
"0.6496102",
"0.647967",
"0.6443454",
"0.6413289",
"0.63844556",
"0.6... | 0.0 | -1 |
Advance the list by one element in FIFO order | def GO0e(Uqbu: List[any]) -> h8nf[any]:
try:
return Uqbu.pop(0)
except IndexError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ucSA(YKHO):\n LihS = next(YKHO._iterable)\n for MUE7 in YKHO._deques:\n MUE7.append(LihS)",
"def MJYP(Csk6):\n while True:\n try:\n yield Csk6.popleft()\n except IndexError:\n break",
"def Ia9d(YKHO, ZfUD, d6pt):\n if d6pt in YKHO.d_buffer.keys():\n ... | [
"0.66917545",
"0.64109516",
"0.62421197",
"0.6234606",
"0.6137212",
"0.61101466",
"0.6084792",
"0.60154593",
"0.5955123",
"0.5943641",
"0.59276056",
"0.5866266",
"0.58610576",
"0.58502537",
"0.5837725",
"0.5797237",
"0.5784957",
"0.5776639",
"0.57741725",
"0.57723534",
"0.576... | 0.5389257 | 90 |
Constructs a new setting from a given dataset. This method will automatically instantiate a new class matching the type of the given dataset. It will fill all values provided by the dataset and then return the created instance | def GNpU(nPrm):
i_PC = {'color': D7yD, 'scalar': bev5}
if nPrm['type'] not in i_PC:
raise Exception('Unkown setting type: {}'.format(nPrm['type']))
try:
KAOR = i_PC[nPrm['type']](nPrm)
except Exception:
print('Exception occured while parsing', nPrm)
raise
if nPrm:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, __n6):\n if isinstance(__n6, tgY5):\n YKHO.__data_config = __n6\n YKHO.dataset = __n6.dataset\n elif isinstance(__n6, str):\n bo34.debug('Dataset argument {} is string, looking up known dataset.'.format(__n6))\n YKHO.__data_config = tgY5.known_dataset(__n6)\n ... | [
"0.6707087",
"0.627974",
"0.62739533",
"0.6227424",
"0.6220415",
"0.6178334",
"0.60869604",
"0.5980886",
"0.5864001",
"0.5813324",
"0.57430923",
"0.5737196",
"0.5734911",
"0.57111776",
"0.5693735",
"0.56838965",
"0.5682534",
"0.5666111",
"0.56640273",
"0.56602865",
"0.5655319... | 0.640752 | 1 |
Sets the control points on the curves. | def ilFJ(YKHO, S9Fp):
for Rtu7, LTIa in enumerate(S9Fp):
YKHO.curves[Rtu7].control_points = LTIa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilFJ(Emd4):\n \"\"\" EXECUTE THIS FUNCTION IN THE FARM CLASS! \"\"\"\n Emd4.t = oyIN.fromfunction(lambda r845: (1.0 / 2.0 + r845) * Emd4.DT, (Emd4.N,))\n Emd4.p = oyIN.linspace(Emd4.t[0], Emd4.t[-1], num=10 * Emd4.N)",
"def xcXx(YKHO, d6pt, AdZ9) -> None:\n ...",
"def ivA1(YKHO, LTIa):\n YKH... | [
"0.69553864",
"0.6765051",
"0.6365332",
"0.60315007",
"0.59942174",
"0.5981036",
"0.5970902",
"0.59575534",
"0.5913922",
"0.5906109",
"0.58882546",
"0.58809596",
"0.5862599",
"0.5862599",
"0.58566064",
"0.58499694",
"0.58457136",
"0.5823314",
"0.58125895",
"0.5798629",
"0.575... | 0.87548643 | 0 |
Compute the energy of an audio signal | def WKL6(qJa9, CC5s, er8O, ufJO):
qJa9 = oyIN.lib.pad(qJa9, pad_width=(CC5s - er8O, 0), mode='constant', constant_values=0)
qJa9 = gLif.util.fix_length(qJa9, int(CC5s * oyIN.ceil(len(qJa9) / CC5s)))
SM5B = gLif.util.frame(qJa9, frame_length=CC5s, hop_length=er8O)
SM5B = vcPw(SM5B) ** 0.5
return oyIN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VYvU(nPrm):\n return sum(pow(nPrm, 2))",
"def VYvU(nPrm):\n return oyIN.real(oyIN.mean(oyIN.abs(nPrm) ** 2, axis=1))",
"def eXLU(YKHO, aQOl, n9A3):\n pass",
"def MI1C(YKHO):\n YRbF = YKHO.inl[0].to_flow()\n z1Rg = YKHO.outl[0].to_flow()\n epEI = (rHlu(YRbF, T0=YKHO.inl[0].T.val_SI) + rH... | [
"0.74858344",
"0.73468274",
"0.72648364",
"0.7205266",
"0.713724",
"0.70454234",
"0.7033085",
"0.7014199",
"0.69486386",
"0.686572",
"0.68204486",
"0.6807079",
"0.67907506",
"0.6739542",
"0.6724279",
"0.6708096",
"0.669785",
"0.66828525",
"0.6668826",
"0.6641229",
"0.6641229"... | 0.0 | -1 |
Build index.html for cherrypy Render the template and return the html file to be delivered to the browser | def d6pt(YKHO, amup=None, QOe9=None, U3hF=None):
if amup == 'on':
YKHO.plugin.beodevices.scan_subnet(YKHO.plugin.fromip, YKHO.plugin.toip)
if QOe9 == 'on':
YKHO.plugin.beodevices.update_devices_info()
TCZ_ = YKHO.tplenv.get_template('index.html')
return TCZ_.render(p=YKHO.plugin, device_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_():\n return TvZl('index.html')",
"def b8V_():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def Vn7Z():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZ... | [
"0.78016955",
"0.78016955",
"0.77203834",
"0.77076375",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",
"0.7637089",... | 0.0 | -1 |
Return string after translating the suffix correctly. | def Kp5M(vIwR):
GSkZ = {'M': '.2', 'MM': '.2', 'P': '.0', 'S': '.4', 'B': '.4', 'F': '.3'}
vIwR = vIwR.upper()
if vIwR.endswith('MM'):
YRbF = -2
else:
YRbF = -1
vIwR = '{prefix}{suffix}'.format(prefix=vIwR[:YRbF], suffix=GSkZ[vIwR[YRbF:]])
return vIwR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EuEN(YKHO) -> str:\n return ''",
"def ZI14(YKHO):\n return YKHO._suffix",
"def ZI14(YKHO):\n return YKHO._suffix",
"def ZI14(YKHO):\n return YKHO._suffix",
"def ZI14(YKHO):\n return YKHO.__suffix",
"def ZI14(YKHO):\n return YKHO.__suffix",
"def EuEN(YKHO) -> str:\n return f'!! ... | [
"0.74656254",
"0.6967761",
"0.6967761",
"0.6967761",
"0.69223803",
"0.69223803",
"0.689928",
"0.6898379",
"0.6898379",
"0.68521976",
"0.68294054",
"0.67576414",
"0.6695978",
"0.6670723",
"0.66402435",
"0.65456873",
"0.6470673",
"0.645351",
"0.64408004",
"0.6437943",
"0.641664... | 0.0 | -1 |
Creates bimodal gaussian from gaussian function. | def cCXa(a1PO, pDjJ=2.5, _iFP=20, Rnru=5, sSj5=1.75, LJx_=32, NqbJ=3):
IZ6w = IAWS(a1PO, _iFP, Rnru, pDjJ)
E0Gw = IAWS(a1PO, LJx_, NqbJ, sSj5)
return IZ6w + E0Gw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(WKvO, yGTL, WTkW):\n return oyIN.exp(-(WKvO - yGTL) ** 2 / 2.0 / WTkW ** 2) / oyIN.sqrt(2.0 * oyIN.pi) / WTkW",
"def IAWS(WKvO, JBMS, WTkW):\n return oyIN.exp(-oyIN.square(WKvO - JBMS) / (2 * oyIN.square(WTkW))) / oyIN.sqrt(2 * oyIN.pi * WTkW ** 2)",
"def IYu9(YKHO, WKvO: ndarray, yGTL: float, W... | [
"0.760031",
"0.7352755",
"0.73426646",
"0.72606367",
"0.72026026",
"0.7182496",
"0.6951342",
"0.69454867",
"0.6873863",
"0.6869742",
"0.68392676",
"0.68373543",
"0.6835207",
"0.6829774",
"0.6813556",
"0.67944705",
"0.6775187",
"0.6775187",
"0.6775187",
"0.6758869",
"0.6723592... | 0.6978091 | 6 |
Define standard datetime string | def Zb98(qtWj):
return F803('%a %b %d %Y %I:%M:%S%p', FdZ9(qtWj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dFdi():\n return JRYC.strftime(JRYC.now(), '%Y %m %d, %H:%M:%S')",
"def F803(YKHO, *qIxc, **B2fa):\n return FgBH(super(MHmB, YKHO).strftime(*qIxc, **B2fa))",
"def cTxh():\n return qcWV.now().strftime(dDFw)",
"def l7Na():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime())",
"def w... | [
"0.6937582",
"0.6927269",
"0.6853922",
"0.6849562",
"0.67262864",
"0.6701413",
"0.6589623",
"0.6550059",
"0.6550059",
"0.6529452",
"0.65084386",
"0.6485776",
"0.6476153",
"0.646095",
"0.6427314",
"0.6423523",
"0.6392761",
"0.6392737",
"0.63662696",
"0.6363606",
"0.63599855",
... | 0.0 | -1 |
Takes two distance matrices and performs a Mantel test. The Mantel test is a significance test of the correlation between two distance matrices. | def QOe9(EcVT, fuBA, awnO=10000, NKcE='pearson', J3uN='two-tail'):
EcVT, fuBA = (oyIN.asarray(EcVT, dtype=float), oyIN.asarray(fuBA, dtype=float))
if Catu.distance.is_valid_dm(EcVT) == False and Catu.distance.is_valid_y(EcVT) == False:
raise ValueError('X is not a valid distance matrix')
if Catu.dis... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n super(RhAj, YKHO).setUp()\n uXsA = ['S1', 'S2', 'S3']\n gpRq = qw7D([[0, 1, 2], [1, 0, 3], [2, 3, 0]])\n E43s = qw7D([[0, 2, 7], [2, 0, 6], [7, 6, 0]])\n WvT9 = l2fD(gpRq, uXsA)\n lOkZ = l2fD(E43s, uXsA)\n YKHO.small_mantel = MsbZ(WvT9, lOkZ, 'less')\n YKHO.overview_mantel... | [
"0.6865427",
"0.6755211",
"0.6429166",
"0.6348402",
"0.6217155",
"0.61987853",
"0.61615896",
"0.6088757",
"0.6064452",
"0.6026304",
"0.6025648",
"0.5994077",
"0.596311",
"0.5960525",
"0.59274274",
"0.5925849",
"0.5899003",
"0.58827",
"0.5864597",
"0.5861688",
"0.5835084",
"... | 0.0 | -1 |
Get list of products | def CnKV(mjTS):
bo34.debug('getting products...')
MOPg = OUtm(mjTS)
geh0 = G4JS.get('https://api.moltin.com/v2/products', headers=MOPg)
gH5N(geh0)
Ldyl = geh0.json()['data']
bo34.debug(f'{len(Ldyl)} products was got')
return Ldyl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQsB(YKHO):\n return YKHO._make_get_request(YKHO._urls['products'])",
"def CnKV(YKHO):\n pass",
"def Ldyl(YKHO):\n geh0 = G4JS.get(YKHO._url(YKHO._PRODUCTS_PATH), headers=YKHO._headers)\n return geh0.json()",
"def uQsB(YKHO):\n bD7m = YKHO.base_url\n iN3H = YKHO.connection.make_get(bD7m... | [
"0.8801383",
"0.83071506",
"0.8174317",
"0.8165491",
"0.8093002",
"0.8045835",
"0.8035913",
"0.79976684",
"0.7916318",
"0.7863756",
"0.7787328",
"0.7776258",
"0.7766564",
"0.7736289",
"0.76729137",
"0.76634645",
"0.7628119",
"0.76261294",
"0.76057017",
"0.7578552",
"0.7574292... | 0.7544413 | 22 |
Encode a given string to 1hot encoder matrix. Each row represents a 1hot encoding character. | def kLcZ(YKHO, vIwR):
ERVO = oyIN.zeros((len(vIwR), len(YKHO.__chars)))
for YRbF, Z9rn in enumerate(vIwR):
ERVO[YRbF, YKHO.__char2idx[Z9rn]] = 1
return ERVO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dPWx(YKHO, w6pf):\n if YKHO.selex_predict_str_adaptor != 0:\n w6pf = 'A' * YKHO.selex_predict_str_adaptor + w6pf + 'A' * YKHO.selex_predict_str_adaptor\n rhzg = w6pf.maketrans('ACGT', '0123')\n tsDO = ['' for WKvO in range(YKHO.num_of_str)]\n for YRbF in range(0, YKHO.num_of_str):\n t... | [
"0.79152924",
"0.77565753",
"0.7552682",
"0.7469745",
"0.72085565",
"0.71125835",
"0.70782804",
"0.7054675",
"0.69762754",
"0.69446176",
"0.6868482",
"0.6853921",
"0.67842835",
"0.67389077",
"0.67045826",
"0.66605264",
"0.6659397",
"0.6570717",
"0.6463458",
"0.6424995",
"0.64... | 0.6961741 | 9 |
Revert the indices of 1hot to the original characters. | def x8I_(YKHO, _0VL):
return ''.join(list(map(lambda Ty9i: YKHO.__idx2char[Ty9i], _0VL))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WXi5(WKvO):\n KCHu = []\n for aFAW in WKvO:\n lz08 = oyIN.argmax(aFAW)\n Z9rn = FIHz[lz08]\n KCHu.append(Z9rn)\n return ''.join(KCHu)",
"def xpzK(YKHO, GIN8):\n GIN8 = YKHO.text_to_int(GIN8)\n GIN8 = iQnE(ht2j.tensor(GIN8))\n GIN8 = ht2j.nn.functional.one_hot(GIN8, len(... | [
"0.6956735",
"0.68600917",
"0.6824224",
"0.6659191",
"0.6556727",
"0.65523386",
"0.65027565",
"0.64718795",
"0.6389349",
"0.6369143",
"0.63402545",
"0.6296131",
"0.62766284",
"0.62686855",
"0.62587446",
"0.6238152",
"0.6202982",
"0.6202982",
"0.6202982",
"0.6202982",
"0.61787... | 0.0 | -1 |
A required method by PyTorch Datasets, which is used to interface with a PyTorch DataLoader. | def szAg(YKHO):
if YKHO.TRAIN_BOOL is True:
UHFx = len(YKHO.dict_batch_1[b'data'])
UHFx += len(YKHO.dict_batch_2[b'data'])
UHFx += len(YKHO.dict_batch_3[b'data'])
UHFx += len(YKHO.dict_batch_4[b'data'])
UHFx += len(YKHO.dict_batch_5[b'data'])
else:
UHFx = len(YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K1Op(YKHO) -> ht2j.utils.data.DataLoader:\n return ht2j.utils.data.DataLoader(YKHO.dataset_train, **YKHO.dl_kwargs)",
"def M_QP(YKHO) -> ht2j.utils.data.DataLoader:\n return ht2j.utils.data.DataLoader(YKHO.dataset_test, **YKHO.dl_kwargs)",
"def FIMM(YKHO, **B2fa):\n pVAc.__init__(YKHO, **B2fa)",
... | [
"0.7848463",
"0.755778",
"0.7401026",
"0.7232123",
"0.7121414",
"0.70845634",
"0.7061457",
"0.70463866",
"0.70271957",
"0.70192647",
"0.70050615",
"0.69205135",
"0.6872101",
"0.6861064",
"0.68521905",
"0.6790742",
"0.6741337",
"0.66997504",
"0.6685074",
"0.66627693",
"0.66087... | 0.0 | -1 |
Returns the string label corresponding to an integer label ID. | def lIdf(YKHO, or8S):
return YKHO.label_dict[or8S].decode('utf-8') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pLAs(YKHO, hbFX):\n return hbFX",
"def pLAs(YKHO, hbFX):\n return hbFX",
"def HbBo(YKHO) -> int:\n pass",
"def Vkif(qWzF):\n if YKHO._int_to_label == {}:\n print('ERROR')\n print('Need to import data first')\n else:\n M9Mk = YKHO._int_to_label[qWzF]\n return M9M... | [
"0.79286325",
"0.7828818",
"0.76953506",
"0.7663193",
"0.75637794",
"0.73407304",
"0.72113633",
"0.70319164",
"0.6985439",
"0.6975497",
"0.6957828",
"0.6908309",
"0.6753622",
"0.6753622",
"0.6736257",
"0.6726225",
"0.6671618",
"0.66641635",
"0.6615971",
"0.66124606",
"0.66108... | 0.0 | -1 |
Return queryset with child comments sorted by created time. | def pggh(YKHO):
return YKHO.order_by('created_at').select_related('user') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hiQA(YKHO):\n return YKHO.exclude(parent__isnull=False).order_by('-created_at').select_related('user')",
"def Tj1O(YKHO):\n return YKHO.get_queryset().filter(content_type__model='comment').order_by('-comments__createdAt')",
"def k66M(YKHO, *qIxc, **B2fa):\n return S57n(YKHO.model, using=YKHO._db).... | [
"0.7657182",
"0.75776434",
"0.7485589",
"0.7161098",
"0.68852997",
"0.65679145",
"0.6383862",
"0.62792706",
"0.62332606",
"0.6180204",
"0.6004198",
"0.59232384",
"0.5752263",
"0.5707279",
"0.5683538",
"0.5670516",
"0.5643314",
"0.5631976",
"0.56158996",
"0.560286",
"0.5556957... | 0.8498989 | 0 |
Check whether the current grid is valid and return bool. | def deVW(YKHO):
YKHO.verify_vertex_values()
for zFiD in range(9):
PwWw = []
for rdlD in range(9):
if YKHO.grid[zFiD][rdlD] is None:
pass
elif YKHO.grid[zFiD][rdlD] in PwWw:
return False
else:
PwWw.append(YKHO.gri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGVO(YKHO):\n if YKHO.get_row() != -1 and YKHO.get_column() != -1:\n return True\n else:\n return False",
"def bfng(YKHO):\n for VmPb in YKHO._cells_iterable():\n if VmPb not in YKHO._valid_elements:\n return False\n return True",
"def tlst(YKHO):\n for (rdlD,... | [
"0.7920779",
"0.7716549",
"0.75221163",
"0.7479439",
"0.7447236",
"0.7432786",
"0.74020654",
"0.73892415",
"0.731774",
"0.72541356",
"0.7241043",
"0.7229743",
"0.72189623",
"0.71809644",
"0.7157131",
"0.71539134",
"0.7137221",
"0.7113721",
"0.711343",
"0.70851755",
"0.7084775... | 0.7767098 | 1 |
Calculate P_k(t2 | t1), a delta smoothed estimate of the conditional probability of the two tuples t1, t2, within a window of k. | def ZT4K(ewCu, SpII, n2Q1, G1Hx, RA_F=0.05):
B_ue = ewCu.relgram_map
if G1Hx in ewCu.windows:
vRsX = ewCu.windows.index(G1Hx)
else:
print('Relgram Statistics for k = {} not computed!'.format(G1Hx))
return None
if SpII in B_ue[n2Q1]:
V1S7 = B_ue[n2Q1][SpII][vRsX]
else:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rloA(EBgd, HpuQ, a1PO=0.0):\n return HpuQ",
"def sgQ0(EBgd, HpuQ, a1PO=0.0):\n return EBgd",
"def _07f(ewCu, SpII, n2Q1, Cwt5=0.5, RA_F=0.05):\n p1kx = 0\n Nk6w = 0\n for KnxT in ewCu.windows:\n Nk6w += Cwt5 ** KnxT\n p1kx += Cwt5 ** KnxT * ZT4K(ewCu, SpII, n2Q1, KnxT, RA_F)\n ... | [
"0.7134826",
"0.70182467",
"0.6233212",
"0.61481005",
"0.6000674",
"0.5977806",
"0.5783279",
"0.5763546",
"0.57388145",
"0.56944525",
"0.568175",
"0.56729245",
"0.5659935",
"0.5571314",
"0.5542993",
"0.55337095",
"0.55323213",
"0.55293614",
"0.55042565",
"0.548086",
"0.547501... | 0.75366694 | 0 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(Mkmy):
Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'
Mkmy.headers['Pragma'] = 'no-cache'
Mkmy.headers['Expires'] = '0'
Mkmy.headers['Cache-Control'] = 'public, max-age=0'
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.82239413",
"0.8223081",
"0.8223081",
"0.8223081",
"0.8223081",
"0.8196386",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
"0.8163827",
... | 0.71290123 | 57 |
Reads a file to a Dataframe. | def FLmu(Ux0P, VgNm='Sheet1', Zojp=','):
global df_read
ehBT = Ux0P.split('.')
Fst3 = ehBT[-1]
if Fst3 == 'csv':
YOlb = rLdf.read_csv(Ux0P, sep=Zojp)
if Fst3 == 'data':
YOlb = rLdf.read_csv(Ux0P, sep=Zojp, header=None)
if Fst3 == 'txt':
YOlb = rLdf.read_csv(Ux0P, sep=Zojp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Eyt6(YKHO, qaEx: str) -> rLdf.DataFrame:\n return rLdf.read_csv(qaEx, sep='\\t')",
"def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z",
"def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z",
"def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n return jQ3Z",
"def Iu6p(gIs... | [
"0.8018143",
"0.77899146",
"0.77899146",
"0.77899146",
"0.7416994",
"0.74105006",
"0.7376638",
"0.73196816",
"0.7315504",
"0.72933996",
"0.7281744",
"0.72561127",
"0.72343147",
"0.7178972",
"0.7175295",
"0.7146634",
"0.71346414",
"0.7101362",
"0.70862615",
"0.70787644",
"0.70... | 0.0 | -1 |
Splits tha Dataframe to a train and test Dataframe. | def Jaqd(um0W, YAuC=0.5):
szdU, fBfS = bHtP(um0W, test_size=YAuC)
return (szdU, fBfS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHtP(jQ3Z):\n jcFe = int(len(jQ3Z) * 0.67)\n NI2E = int(len(jQ3Z) - jcFe)\n EvQg, QOe9 = (jQ3Z[0:jcFe], jQ3Z[jcFe:len(jQ3Z)])\n return (EvQg, QOe9)",
"def bHtP(jQ3Z, NI2E=0.3):\n zBu_ = int(jQ3Z.shape[0] * (1 - NI2E))\n NI2E = jQ3Z.shape[0] - zBu_\n EvQg = jQ3Z[:zBu_]\n QOe9 = jQ3Z[zB... | [
"0.844805",
"0.8430184",
"0.8188947",
"0.81744057",
"0.81308454",
"0.80413634",
"0.8023334",
"0.7996662",
"0.7935957",
"0.790046",
"0.7868415",
"0.78513366",
"0.77936083",
"0.77797997",
"0.7738744",
"0.7681881",
"0.7673551",
"0.76102066",
"0.7550606",
"0.74824446",
"0.7463039... | 0.70738095 | 44 |
Returns the bounding boxes for the faces that appear in the frame. | def QdZT(YKHO, f4IJ, ll7u):
ITiw = XC5k.cvtColor(f4IJ, XC5k.COLOR_BGR2GRAY)
j8aQ = YKHO.detector.detectMultiScale(ITiw, scaleFactor=1.05, minNeighbors=9, minSize=(30, 30), flags=XC5k.CASCADE_SCALE_IMAGE)
if len(j8aQ) > 0:
WKvO, LVAh, yzQ0, MKlR = j8aQ[0]
BLnc = int(LVAh + MKlR / 2.0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yI3R(f4IJ):\n vxw0 = XC5k.dnn.blobFromImage(f4IJ, 1 / 255, (320, 320), (0, 0, 0), 1, crop=False)\n Zxma.setInput(vxw0)\n lI27 = Zxma.getUnconnectedOutLayersNames()\n zKTd = Zxma.forward(lI27)\n DjQG, JOUx = uv63(zKTd)\n bS0K = XC5k.dnn.NMSBoxes(DjQG, JOUx, 0.5, 0.3)\n return (bS0K, JOUx, D... | [
"0.7164721",
"0.7122802",
"0.70745176",
"0.7041347",
"0.695731",
"0.6920476",
"0.69052875",
"0.68970275",
"0.68761414",
"0.6874528",
"0.6874378",
"0.6869635",
"0.6788745",
"0.6737209",
"0.6736851",
"0.67288315",
"0.6723314",
"0.6689454",
"0.66346496",
"0.6629943",
"0.66219133... | 0.0 | -1 |
Return the interactions this component uses. TODO could this just return the only nonempty one, since there can only be one? @ In, None @ Out, interactions, list, list of Interaction instances | def zrec(YKHO):
try:
return (YKHO._produces + YKHO._stores + YKHO._demands)[0]
except IndexError:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hJrH(YKHO) -> bdIy[hFLg[M5Mr, drOD]]:\n return YKHO._interactions",
"def hJrH(YKHO) -> bdIy[hFLg[M5Mr, AzJI[int, ...]]]:\n return YKHO._simulation.interactions",
"def hJrH(YKHO) -> bdIy[hFLg[M5Mr, drOD]]:\n return YKHO._simulation.interactions",
"def hJrH(YKHO) -> bdIy[hFLg[M5Mr, drOD]]:\n ..... | [
"0.75529075",
"0.7466095",
"0.7421031",
"0.7022946",
"0.682388",
"0.67961085",
"0.65666246",
"0.6277766",
"0.5861724",
"0.5782191",
"0.56991154",
"0.5604135",
"0.55619895",
"0.5559137",
"0.54566085",
"0.5427054",
"0.53891176",
"0.5382058",
"0.5319858",
"0.5299573",
"0.5285783... | 0.667716 | 6 |
Returns the variable that is used to define this component's capacity. @ In, None @ Out, var, str, name of capacity resource | def dAhw(YKHO):
return YKHO.get_interaction().get_capacity_var() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dAhw(YKHO):\n return YKHO._capacity_var",
"def MudU(YKHO):\n WwC0 = YKHO.get_interaction()\n return WwC0.get_capacity(None, None, None, None, raw=True)",
"def b7hB(YKHO) -> laHg.Optional[str]:\n BWXx = YKHO._properties.get('capacity')\n return f'{BWXx}' if BWXx is not None else None",
"def... | [
"0.80675346",
"0.6781067",
"0.6497393",
"0.6241257",
"0.6236735",
"0.6177602",
"0.6130046",
"0.6130046",
"0.6130046",
"0.6130046",
"0.6130046",
"0.6130046",
"0.6130046",
"0.6079173",
"0.6079173",
"0.6079173",
"0.6079173",
"0.60548913",
"0.6019886",
"0.6019886",
"0.6019886",
... | 0.7681512 | 1 |
Returns the dispatchability indicator of this component. TODO Note that despite the name, this is NOT boolean, but a string indicator. @ In, None @ Out, dispatchable, str, dispatchability (e.g. independent, dependent, fixed) | def IHfk(YKHO):
return YKHO.get_interaction().is_dispatchable() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IHfk(YKHO):\n return YKHO._dispatchable",
"def LSt3(YKHO) -> str:\n return qe4Y.get(YKHO, 'compliance_status')",
"def QWfO(YKHO) -> qe4Y.Output['outputs.ComplianceNoteResponse']:\n return qe4Y.get(YKHO, 'compliance')",
"def EYDd(YKHO) -> 'outputs.CaseClassificationResponse':\n return qe4Y.get... | [
"0.5989074",
"0.5641539",
"0.54033077",
"0.53395367",
"0.5182405",
"0.51655066",
"0.51575965",
"0.51071817",
"0.50781125",
"0.5076977",
"0.49998572",
"0.49968374",
"0.4993749",
"0.4978742",
"0.49595362",
"0.49579173",
"0.49579173",
"0.49552572",
"0.49498314",
"0.48833358",
"0... | 0.5724547 | 1 |
Determines the maximum production possible for this component. @ In, meta, dict, metadata information for current status in run @ In, raven_variables, dict, variables from RAVEN TODO part of meta! @ In, dispatch, DispatchState, expression of the current activity levels in the system @ In, t, int, index of "time" at whi... | def r6Lk(YKHO, e5kH, yVLz, ypeQ, a1PO):
rLs8 = YKHO.get_interaction()
wMl7, e5kH = rLs8.produce_max(e5kH, yVLz, ypeQ, a1PO)
return (wMl7, e5kH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r6Lk(YKHO, e5kH, jD2f, ypeQ, a1PO):\n QePW, e5kH = YKHO.get_capacity(e5kH, jD2f, ypeQ, a1PO)\n wMl7, e5kH = YKHO.produce(QePW, e5kH, jD2f, ypeQ, a1PO)\n return (wMl7, e5kH)",
"def r6Lk(YKHO, e5kH, jD2f, ypeQ, a1PO):\n QePW, e5kH = YKHO.get_capacity(e5kH, jD2f, ypeQ, a1PO)\n return (QePW, e5kH)... | [
"0.74389774",
"0.7183633",
"0.6034818",
"0.5793284",
"0.57668215",
"0.57578975",
"0.5752119",
"0.5749403",
"0.5696631",
"0.55939186",
"0.54445386",
"0.5428297",
"0.5426092",
"0.53879386",
"0.53809106",
"0.5345843",
"0.52379626",
"0.5219953",
"0.5207181",
"0.51965785",
"0.5189... | 0.6999346 | 2 |
Allows hardsetting the capacity of this interaction. This destroys any underlying ValuedParam that was there before. @ In, cap, float, capacity value @ Out, None | def TtWG(YKHO, Fd1k):
YKHO._capacity.type = 'value'
YKHO._capacity._value = float(Fd1k) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TtWG(YKHO, Fd1k):\n return YKHO.get_interaction().set_capacity(Fd1k)",
"def b7hB(YKHO, b7hB):\n YKHO._capacity = b7hB",
"def b7hB(YKHO, BWXx: typing.Union[str, int, None]):\n YKHO._properties['capacity'] = oAPT.integer_or_string(BWXx)",
"def TtWG(YKHO, b7hB):\n NArs = {'AutoScalingGroupName':... | [
"0.7207605",
"0.634901",
"0.6179275",
"0.5969272",
"0.5923734",
"0.58853227",
"0.58645564",
"0.5801194",
"0.57781994",
"0.57559454",
"0.57559454",
"0.57559454",
"0.57559454",
"0.57559454",
"0.57559454",
"0.57559454",
"0.57251793",
"0.5718485",
"0.5707878",
"0.5657219",
"0.564... | 0.7055933 | 1 |
Returns the minimum level of this interaction. Returns an evaluated value unless "raw" is True, then gives ValuedParam @ In, meta, dict, additional variables to pass through @ In, raven_vars, dict, TODO part of meta! consolidate! @ In, dispatch, dict, TODO part of meta! consolidate! @ In, t, int, TODO part of meta! con... | def YP8A(YKHO, e5kH, jD2f, ypeQ, a1PO, m6Me=False):
if m6Me:
return YKHO._minimum
QePW = {YKHO._minimum_var: None}
g4y1 = {'request': QePW, 'meta': e5kH, 'raven_vars': jD2f, 'dispatch': ypeQ, 't': a1PO}
LxN9, e5kH = YKHO._minimum.evaluate(g4y1, target_var=YKHO._minimum_var)
return (LxN9, e5k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QwYr(YKHO):\n return YKHO.__min",
"def KtOs(YKHO, e5kH, jD2f, ypeQ, a1PO):\n if YKHO._minimum:\n QePW, e5kH = YKHO.get_minimum(e5kH, jD2f, ypeQ, a1PO)\n else:\n QePW = {next(iter(YKHO.get_inputs())): 0.0}\n return (QePW, e5kH)",
"def i1HD(YKHO):\n return YKHO._args.min",
"def... | [
"0.6753292",
"0.65013677",
"0.63005966",
"0.62827766",
"0.62479746",
"0.6230658",
"0.6230658",
"0.6142672",
"0.61193293",
"0.61193293",
"0.60946864",
"0.60024303",
"0.59456754",
"0.5901405",
"0.5889794",
"0.5862116",
"0.5811626",
"0.58044755",
"0.5787887",
"0.57598114",
"0.57... | 0.71186125 | 0 |
Returns the set of resources that are outputs to this interaction. @ In, None @ Out, outputs, set, set of outputs | def Jvkf(YKHO):
return set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jvkf(YKHO):\n o4Jx = set()\n o4Jx.update(YKHO.get_interaction().get_outputs())\n return o4Jx",
"def A0zC(YKHO):\n Ylbp = set()\n Ylbp.update(YKHO.get_inputs())\n Ylbp.update(YKHO.get_outputs())\n return Ylbp",
"def Jvkf(YKHO):\n o4Jx = set(oyIN.atleast_1d(YKHO._produces))\n retur... | [
"0.76896405",
"0.7511008",
"0.74381655",
"0.7184242",
"0.7166503",
"0.7166503",
"0.7150385",
"0.7117294",
"0.7092376",
"0.7013465",
"0.6936313",
"0.6874341",
"0.6783292",
"0.6777383",
"0.67731726",
"0.67696375",
"0.67319626",
"0.6652208",
"0.6652208",
"0.6652208",
"0.6652208"... | 0.7355123 | 3 |
Check to see if capacity limits of this component have been violated. @ In, res, str, name of capacitylimiting resource @ In, amt, float, requested amount of resource used in interaction @ In, balance, dict, results of requested interaction @ In, meta, dict, additional variable passthrough @ In, raven_vars, dict, TODO ... | def ab2W(YKHO, Ylbp, GTZT, wMl7, e5kH, jD2f, ypeQ, a1PO):
Fd1k = YKHO.get_capacity(e5kH, jD2f, ypeQ, a1PO)[0][YKHO._capacity_var]
try:
if abs(wMl7[YKHO._capacity_var]) > abs(Fd1k):
wMl7, e5kH = YKHO.produce_max(e5kH, jD2f, ypeQ, a1PO)
print('The full requested amount ({res}: {req... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ab2W(YKHO, Ylbp, GTZT, wMl7, e5kH, jD2f, ypeQ, a1PO, ABDL):\n Zihr = oyIN.sign(GTZT)\n if Zihr < 0:\n Fd1k, e5kH = YKHO.get_capacity(e5kH, jD2f, ypeQ, a1PO)\n Gzgg = Fd1k[Ylbp] - ABDL\n else:\n Gzgg = ABDL\n RA_F = Zihr * min(Gzgg, abs(GTZT))\n return ({Ylbp: RA_F}, e5kH)",
... | [
"0.81101316",
"0.7062868",
"0.67671955",
"0.5967685",
"0.5855561",
"0.5821423",
"0.5807003",
"0.57726336",
"0.57157713",
"0.5688964",
"0.56562155",
"0.56528187",
"0.56473243",
"0.55285233",
"0.5523255",
"0.5518745",
"0.5502126",
"0.5447026",
"0.5437369",
"0.541805",
"0.541681... | 0.8324179 | 0 |
Returns the set of resources that are outputs to this interaction. @ In, None @ Out, outputs, set, set of outputs | def Jvkf(YKHO):
o4Jx = set(oyIN.atleast_1d(YKHO._produces))
return o4Jx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jvkf(YKHO):\n o4Jx = set()\n o4Jx.update(YKHO.get_interaction().get_outputs())\n return o4Jx",
"def A0zC(YKHO):\n Ylbp = set()\n Ylbp.update(YKHO.get_inputs())\n Ylbp.update(YKHO.get_outputs())\n return Ylbp",
"def Jvkf(YKHO):\n return set()",
"def Jvkf(YKHO):\n return YKHO.out... | [
"0.7688987",
"0.7513798",
"0.7356075",
"0.71827364",
"0.7164275",
"0.7164275",
"0.7152217",
"0.71154803",
"0.7090229",
"0.70115966",
"0.6935741",
"0.6872568",
"0.67809206",
"0.67762345",
"0.67722744",
"0.6767754",
"0.6730913",
"0.665036",
"0.665036",
"0.665036",
"0.665036",
... | 0.74381936 | 2 |
Returns the set of resources that are outputs to this interaction. @ In, None @ Out, outputs, set, set of outputs | def Jvkf(YKHO):
o4Jx = hFLg.get_outputs(YKHO)
o4Jx.update(oyIN.atleast_1d(YKHO._stores))
return o4Jx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jvkf(YKHO):\n o4Jx = set()\n o4Jx.update(YKHO.get_interaction().get_outputs())\n return o4Jx",
"def A0zC(YKHO):\n Ylbp = set()\n Ylbp.update(YKHO.get_inputs())\n Ylbp.update(YKHO.get_outputs())\n return Ylbp",
"def Jvkf(YKHO):\n o4Jx = set(oyIN.atleast_1d(YKHO._produces))\n retur... | [
"0.76896405",
"0.7511008",
"0.74381655",
"0.7355123",
"0.7184242",
"0.7166503",
"0.7166503",
"0.7150385",
"0.7117294",
"0.7092376",
"0.7013465",
"0.6936313",
"0.6874341",
"0.6783292",
"0.6777383",
"0.67731726",
"0.67696375",
"0.67319626",
"0.6652208",
"0.6652208",
"0.6652208"... | 0.6335106 | 35 |
Check to see if capacity limits of this component have been violated. overloads Interaction method, since units for storage are "res" not "res per second" @ In, res, str, name of capacitylimiting resource @ In, amt, float, requested amount of resource used in interaction @ In, balance, dict, results of requested intera... | def ab2W(YKHO, Ylbp, GTZT, wMl7, e5kH, jD2f, ypeQ, a1PO, ABDL):
Zihr = oyIN.sign(GTZT)
if Zihr < 0:
Fd1k, e5kH = YKHO.get_capacity(e5kH, jD2f, ypeQ, a1PO)
Gzgg = Fd1k[Ylbp] - ABDL
else:
Gzgg = ABDL
RA_F = Zihr * min(Gzgg, abs(GTZT))
return ({Ylbp: RA_F}, e5kH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ab2W(YKHO, Ylbp, GTZT, wMl7, e5kH, jD2f, ypeQ, a1PO):\n Fd1k = YKHO.get_capacity(e5kH, jD2f, ypeQ, a1PO)[0][YKHO._capacity_var]\n try:\n if abs(wMl7[YKHO._capacity_var]) > abs(Fd1k):\n wMl7, e5kH = YKHO.produce_max(e5kH, jD2f, ypeQ, a1PO)\n print('The full requested amount ({... | [
"0.73435444",
"0.612147",
"0.6029243",
"0.5966412",
"0.5806626",
"0.5783032",
"0.5740476",
"0.572541",
"0.56472945",
"0.55836636",
"0.5444334",
"0.5432238",
"0.537833",
"0.5375539",
"0.5367818",
"0.53530115",
"0.52981216",
"0.52951413",
"0.52919245",
"0.5291475",
"0.5291475",... | 0.72398823 | 1 |
Create and return the session scoped user data directory | def Jwhv(HVXH, dUsx):
bxMd = Hy7s.path.join(HVXH, dUsx)
if not Hy7s.path.exists(bxMd):
Hy7s.mkdir(bxMd)
return bxMd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kmbc(YKHO):\n YKHO._user_data_dir = gbPf.TemporaryDirectory(prefix=f'{YKHO.USER_DATA_DIR_PREFIX}_tmp_')\n return YKHO._user_data_dir.name",
"def bxMd(h_xa, NtEF):\n bxMd = Hy7s.path.join(h_xa, NtEF)\n if not Hy7s.path.exists(bxMd):\n Hy7s.mkdir(bxMd)\n return bxMd",
"def w8RG(YKHO, Yb... | [
"0.7710768",
"0.7425073",
"0.71175796",
"0.6977174",
"0.6898327",
"0.68482685",
"0.6775326",
"0.6659154",
"0.66424274",
"0.6355724",
"0.6323745",
"0.631497",
"0.62177485",
"0.62093264",
"0.6187468",
"0.6185723",
"0.615499",
"0.6146501",
"0.6116718",
"0.60926324",
"0.6069982",... | 0.8119631 | 0 |
The application client type | def IYd2(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'client_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RLD6(YKHO):\n YKHO.__client_type = Q9fX.getClientType(YKHO.__contact)\n return YKHO.__client_type",
"def D1_G(YKHO):\n return YKHO._event['app_type']",
"def ih88(YKHO):\n ...",
"def FMfL():\n kFZK = guqD('is this a command-line application?')\n if kFZK:\n return Ew37\n else:\n... | [
"0.7808763",
"0.7427066",
"0.68974113",
"0.67553407",
"0.6514633",
"0.64236295",
"0.63967574",
"0.6387474",
"0.6372728",
"0.6357988",
"0.63532615",
"0.63532615",
"0.63505316",
"0.6313311",
"0.6310744",
"0.631004",
"0.62674904",
"0.62451446",
"0.6239589",
"0.6239277",
"0.62392... | 0.82905835 | 0 |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" | def type(YKHO) -> str:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '... | [
"0.7918774",
"0.7918774",
"0.78666556",
"0.78666556",
"0.78666556",
"0.78666556",
"0.78666556",
"0.7706737",
"0.7553459",
"0.72828007",
"0.70600736",
"0.6980601",
"0.6921472",
"0.68694425",
"0.67290044",
"0.67053574",
"0.6655504",
"0.6646448",
"0.65517074",
"0.6542098",
"0.65... | 0.66402596 | 50 |
Returns Linker resource for a given name. | def BH6W(a6KO: Optional[str]=None, q8SO: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> R14b:
rYZf = dict()
rYZf['linkerName'] = a6KO
rYZf['resourceUri'] = q8SO
VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_defaults(), VKhi)
p5j3 = qe4Y.runtime.invoke('azure-native:servicel... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HYjU(YKHO, mWFP):\n return YKHO._link_reg[mWFP]",
"def URKD(mWFP):\n return vs3M.get(mWFP, None)",
"def mjHc(a6KO: Optional[pulumi.Input[str]]=None, q8SO: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[NpNB]:\n ...",
"def HeD1(YKHO):\n from rowgene... | [
"0.68210036",
"0.6313673",
"0.62242836",
"0.5728099",
"0.5676354",
"0.5623828",
"0.5490361",
"0.5455136",
"0.54451567",
"0.543473",
"0.541519",
"0.5369731",
"0.53509015",
"0.53067946",
"0.5296344",
"0.5293343",
"0.5273132",
"0.5230027",
"0.5225598",
"0.52185607",
"0.5200879",... | 0.5804629 | 3 |
Returns Linker resource for a given name. | def mjHc(a6KO: Optional[pulumi.Input[str]]=None, q8SO: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[NpNB]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HYjU(YKHO, mWFP):\n return YKHO._link_reg[mWFP]",
"def URKD(mWFP):\n return vs3M.get(mWFP, None)",
"def BH6W(a6KO: Optional[str]=None, q8SO: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> R14b:\n rYZf = dict()\n rYZf['linkerName'] = a6KO\n rYZf['resourceUri'] = q8SO\n V... | [
"0.68210036",
"0.6313673",
"0.5804629",
"0.5728099",
"0.5676354",
"0.5623828",
"0.5490361",
"0.5455136",
"0.54451567",
"0.543473",
"0.541519",
"0.5369731",
"0.53509015",
"0.53067946",
"0.5296344",
"0.5293343",
"0.5273132",
"0.5230027",
"0.5225598",
"0.52185607",
"0.5200879",
... | 0.62242836 | 2 |
Sets the scope of this GetOauthAccessToken. | def rrBf(YKHO, rrBf):
YKHO._scope = rrBf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CeKz(YKHO, CeKz):\n YKHO._auth_token_provider_scope = CeKz",
"def rrBf(YKHO, rrBf):\n YKHO._scope = rrBf",
"def UXPF(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'oauth_scopes')",
"def UvZp(YKHO, BWXx):\n YKHO._set_one_attribute(YKHO.AttributeNames.SCOPE, BWXx)\n ret... | [
"0.61239964",
"0.5729581",
"0.5624162",
"0.5500636",
"0.5464855",
"0.5292399",
"0.52756095",
"0.5247207",
"0.51246613",
"0.50785697",
"0.50749266",
"0.5071316",
"0.5071316",
"0.5071316",
"0.5071316",
"0.5071316",
"0.5016877",
"0.5013042",
"0.50125283",
"0.50035864",
"0.495744... | 0.57666874 | 1 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, ExYd):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"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.0 | -1 |
POST /api/tams_api/enrollments_api/enrollments username, course_id | def m8z6(YKHO, QePW):
if not QePW.user.is_superuser:
return oGir(status=jGRS.HTTP_403_FORBIDDEN)
NtEF = QePW.POST.get('username')
S7Jr = QePW.POST.get('course_id')
if not NtEF:
return oGir({'code': jGRS.HTTP_400_BAD_REQUEST, 'message': 'username must be specified to create a new enrollme... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YNQL(QePW, S7Jr):\n S7Jr = FS5M.from_deprecated_string(S7Jr)\n XeOP = QePW.GET.get('action')\n yiUR = QePW.GET.get('identifiers')\n LyVx = q3NS(yiUR)\n zH_1 = QePW.GET.get('auto_enroll') in ['true', 'True', True]\n vmb9 = QePW.GET.get('email_students') in ['true', 'True', True]\n jhEG = {}... | [
"0.6677553",
"0.62678236",
"0.6196534",
"0.6187969",
"0.61222297",
"0.61106974",
"0.6041338",
"0.59688336",
"0.58251595",
"0.5716932",
"0.57095486",
"0.56842655",
"0.56739736",
"0.5642513",
"0.56059015",
"0.55944926",
"0.5588214",
"0.55854106",
"0.5580774",
"0.5508757",
"0.54... | 0.7292936 | 0 |
convert utc time to unix time | def yShF(h25_):
ycBG = ITS7.strptime(h25_, '%a %b %d %H:%M:%S +0000 %Y')
return GRk0.timegm(ycBG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0WG(YKHO, a1PO):\n LVAh, r8hN, Csk6 = str(a1PO).split('-')\n return qcWV(int(LVAh), int(r8hN), int(Csk6)).strftime('%s')",
"def SPss(a1PO):\n a1PO = a1PO.split('.')[0]\n JRYC = qcWV.strptime(a1PO, '%Y-%m-%dT%H:%M:%S')\n yl4j = FXGE.timezone('UTC')\n JRYC = yl4j.localize(JRYC)\n Ir3V = i... | [
"0.8105295",
"0.7840509",
"0.77686346",
"0.7434898",
"0.7400697",
"0.7027996",
"0.68857497",
"0.686126",
"0.6845806",
"0.68235254",
"0.6818207",
"0.6786848",
"0.67100006",
"0.6701036",
"0.66940135",
"0.667985",
"0.66578925",
"0.6655679",
"0.6582062",
"0.65193355",
"0.6518884"... | 0.8166597 | 0 |
Override to parse the start date time of the test from the response. | async def _parse_source_response_date_time(YKHO, geh0: Response) -> qcWV:
ueqd = [int(Q7me) for Q7me in (await YKHO._soup(geh0)).find(id='start_of_the_test').string.split('.')]
return qcWV(*ueqd) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hFBJ(YKHO, geh0):\n mbyn = geh0.css('.date time::attr(datetime)').extract_first()\n jmHs = ''.join(geh0.css('article.time::text').extract()).strip()\n if not jmHs:\n jmHs = ''.join(geh0.css('article.time *::text').extract()).strip()\n W_9F = ZbWC.split('-|(?<=m)(?: to)?\\\\s+(?=\\\\d)', jmHs... | [
"0.7545447",
"0.75290364",
"0.7269613",
"0.7173199",
"0.70514417",
"0.6728485",
"0.67172855",
"0.66125816",
"0.66035366",
"0.64855677",
"0.64855635",
"0.6394465",
"0.63635665",
"0.6351467",
"0.63334215",
"0.6329598",
"0.63294935",
"0.6321205",
"0.6275387",
"0.62672544",
"0.62... | 0.73272145 | 2 |
Return a weight variable with given shape. Values in the variable are normally distribution | def E9N2(ROpF):
RqgG = ZylS.truncated_normal(ROpF)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.Variable(RqgG)",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.Variable(RqgG)",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.Variable(RqgG)",
"... | [
"0.8167291",
"0.8167291",
"0.8167291",
"0.8166853",
"0.81457704",
"0.81457704",
"0.81457704",
"0.81457704",
"0.81457704",
"0.81457704",
"0.81457704",
"0.81457704",
"0.81457704",
"0.81457704",
"0.81420803",
"0.80653334",
"0.80435413",
"0.79841685",
"0.79613173",
"0.794438",
"0... | 0.7982093 | 18 |
Sets the dataset_id of this InlineResponseDefault1. | def c55i(YKHO, c55i):
if c55i is None:
raise ValueError('Invalid value for `dataset_id`, must not be `None`')
YKHO._dataset_id = c55i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, c55i: Optional[pulumi.Input[str]]=None):\n if c55i is not None:\n qe4Y.set(Ro_8, 'dataset_id', c55i)",
"def Nwxp(YKHO, Nwxp):\n if Nwxp is None:\n raise ValueError('Invalid value for `source_dataset_id`, must not be `None`')\n YKHO._source_dataset_id = Nwxp",
"def nsMm(... | [
"0.63282347",
"0.6255009",
"0.61360615",
"0.60884243",
"0.60570693",
"0.60160017",
"0.60039407",
"0.59261894",
"0.59261894",
"0.59261894",
"0.58970255",
"0.5854266",
"0.5790116",
"0.57628506",
"0.57227457",
"0.5698502",
"0.5682343",
"0.5591337",
"0.5587497",
"0.55863637",
"0.... | 0.6885173 | 0 |
Sets the description of this InlineResponseDefault1. | def JBZA(YKHO, JBZA):
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, QoB4: str) -> None:\n YKHO.metadata.data['description'] = QoB4",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA",
"def AqxA(YKHO, QoB4):\n super().set_description(QoB4, ... | [
"0.66183543",
"0.65854454",
"0.6557995",
"0.6526507",
"0.6480774",
"0.64497495",
"0.64345354",
"0.64170796",
"0.6406813",
"0.6402176",
"0.6402176",
"0.6402176",
"0.6402176",
"0.63463145",
"0.6239801",
"0.6239801",
"0.6239801",
"0.6239801",
"0.6235728",
"0.62024283",
"0.618663... | 0.63790315 | 35 |
Sets the name of this InlineResponseDefault1. | def mWFP(YKHO, mWFP):
if mWFP is None:
raise ValueError('Invalid value for `name`, must not be `None`')
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP)... | [
"0.7000422",
"0.69908214",
"0.69908214",
"0.69908214",
"0.69908214",
"0.69908214",
"0.6979785",
"0.69143873",
"0.68998045",
"0.68897456",
"0.6843567",
"0.6819892",
"0.6800285",
"0.6790905",
"0.67900187",
"0.67900187",
"0.67733103",
"0.67733103",
"0.6732732",
"0.6689249",
"0.6... | 0.0 | -1 |
Sets the task_name of this InlineResponseDefault1. | def VsgD(YKHO, VsgD):
YKHO._task_name = VsgD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yyZM(YKHO, tRWu):\n YKHO._taskName = tRWu\n YKHO._progressChangedNotifier.notify(YKHO)",
"def VsgD(YKHO, VsgD: str):\n if VsgD is None:\n raise ValueError('Invalid value for `task_name`, must not be `None`')\n YKHO._task_name = VsgD",
"def D5gV(YKHO, **D5gV):\n D5gV['name'] = D5gV['na... | [
"0.7198639",
"0.6968075",
"0.641446",
"0.6254486",
"0.62096256",
"0.6151299",
"0.59945893",
"0.5981083",
"0.59787136",
"0.59611887",
"0.59547806",
"0.5929917",
"0.592802",
"0.592802",
"0.592802",
"0.592802",
"0.592802",
"0.5897991",
"0.58553874",
"0.5850184",
"0.58480126",
... | 0.7577595 | 0 |
Sets the user_id of this InlineResponseDefault1. | def uJjO(YKHO, uJjO):
YKHO._user_id = uJjO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r2U1(YKHO, r2U1):\n YKHO._id_user = r2U1",
"def uJjO(YKHO, uJjO):\n if uJjO is None:\n raise ValueError('Invalid value for `user_id`, must not be `None`')\n YKHO._user_id = uJjO",
"def uJjO(YKHO, uJjO):\n if uJjO is None:\n raise ValueError('Invalid value for `user_id`, must not b... | [
"0.7504955",
"0.700793",
"0.700793",
"0.69559765",
"0.6842524",
"0.68103206",
"0.6660308",
"0.64519554",
"0.6404908",
"0.6269297",
"0.6166563",
"0.60911876",
"0.60542905",
"0.603385",
"0.5971589",
"0.5971589",
"0.5971589",
"0.5971589",
"0.5971589",
"0.5971589",
"0.5971589",
... | 0.7372273 | 6 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, G56U):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"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.0 | -1 |
Put the attributes in dictionary format. They are originally in a list containing tuple pairs. returns | def bjmO(YKHO, o8Kj):
zyX_ = {}
for J2gq in o8Kj:
zyX_[J2gq[0]] = J2gq[1]
return zyX_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h6gc(YKHO):\n qXTy = {}\n qXTy['s'] = str(YKHO.s)\n if YKHO.t != None:\n qXTy['t'] = str(YKHO.t)\n qXTy['a'] = str(YKHO.a)\n qXTy['b'] = str(YKHO.b)\n qXTy['c'] = str(YKHO.c)\n qXTy['d'] = str(YKHO.d)\n return qXTy",
"def MNRr(YKHO, azoT: Iterable[str]=('xyz', 'viewdir', 'imgsz... | [
"0.7466157",
"0.7338422",
"0.71757597",
"0.70290375",
"0.70115995",
"0.6956532",
"0.679067",
"0.6779112",
"0.676057",
"0.675987",
"0.6594606",
"0.6592889",
"0.6592889",
"0.6592889",
"0.65810835",
"0.65619534",
"0.65513647",
"0.6541424",
"0.65388393",
"0.6532938",
"0.6515294",... | 0.725325 | 2 |
get_queryset should add the correct extra attributes. | def hGLD(YKHO):
CBIr = mv1M.objects.create_user(username='hjkdhds@12ioavoi3.local', password='moo')
CBIr.add_to_group(YKHO.group1.pk)
MgeT = k_g4.make('connectmessages.Thread', group=YKHO.group1)
Ol8d = k_g4.make('connectmessages.Message', sender=CBIr, thread=MgeT)
k_g4.make('connectmessages.Message... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k66M(YKHO, QePW, SR0I):\n return SR0I",
"def k66M(YKHO):\n return None",
"def k66M(YKHO):\n return None",
"def k66M(YKHO, *qIxc, **B2fa):\n SR0I = super().get_queryset(*qIxc, **B2fa)\n SR0I = j6Z1.StockItemSerializer.annotate_queryset(SR0I)\n return SR0I",
"def k66M(YKHO):\n return... | [
"0.71883446",
"0.6951079",
"0.6951079",
"0.68909055",
"0.6890632",
"0.676962",
"0.676962",
"0.65448177",
"0.6538309",
"0.6518651",
"0.6490697",
"0.64789975",
"0.64745545",
"0.64653164",
"0.64630985",
"0.6418326",
"0.639211",
"0.6376393",
"0.6350245",
"0.6346319",
"0.6343889",... | 0.0 | -1 |
The identity_block is the block that has no conv layer at shortcut Arguments | def aP6R(YKHO, FRUf, Ot1W, KUnM, EtM5, XkN1, e5sz=True, Jwqs=True):
HUUr, IF78, vquH = KUnM
RmTP = 'res' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
WKvO = PlVk.Conv2D(HUUr, (1, 1), name=RmTP + '2a', use_bias=e5sz)(FRUf)
WKvO = SwZx(axis=3, name=lPXw + '2a', trainable=J... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ... | [
"0.7417824",
"0.72852165",
"0.72147304",
"0.72146046",
"0.721052",
"0.71971375",
"0.71670413",
"0.7152859",
"0.7131995",
"0.71131915",
"0.7111289",
"0.708507",
"0.70782053",
"0.7077924",
"0.70730114",
"0.70315313",
"0.7029831",
"0.7029831",
"0.70171803",
"0.70157117",
"0.7009... | 0.69374657 | 24 |
conv_block is the block that has a conv layer at shortcut Arguments | def mQG_(YKHO, FRUf, Ot1W, KUnM, EtM5, XkN1, FEri=(2, 2), e5sz=True, Jwqs=True):
HUUr, IF78, vquH = KUnM
RmTP = 'res' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
WKvO = PlVk.Conv2D(HUUr, (1, 1), strides=FEri, name=RmTP + '2a', use_bias=e5sz)(FRUf)
WKvO = SwZx(axis=3, na... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQG_(YKHO, DVMO, UU6M, b27A):\n return YKHO.add_layer(mQG_, DVMO, UU6M, b27A)",
"def mQG_(input, KUnM, JT9N=JT9N):\n mQG_ = ZylS.layers.conv2d(inputs=input, filters=KUnM, kernel_size=3, padding='SAME', activation=ZylS.nn.relu)\n return mQG_",
"def mQG_(FRUf, Ot1W, KUnM, EtM5, yetk, FEri=(2, 2), wH... | [
"0.75353014",
"0.74855703",
"0.73647773",
"0.72222644",
"0.7209214",
"0.720638",
"0.7202829",
"0.7185739",
"0.71778566",
"0.7174462",
"0.71601367",
"0.71582484",
"0.7157478",
"0.71517885",
"0.7130951",
"0.71057576",
"0.707301",
"0.70585597",
"0.7031059",
"0.70303994",
"0.7010... | 0.70994836 | 16 |
Return the value of the h.authority config settings. Falls back on returning request.domain if h.authority isn't set. | def YfSF(QePW):
return QePW.registry.settings.get('h.authority', QePW.domain) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f_ti(QePW):\n if QePW.identity and QePW.identity.auth_client:\n return QePW.identity.auth_client.authority\n return QePW.default_authority",
"def N8EW(QePW):\n return QePW.registry.settings.get('h.auth_domain', QePW.domain)",
"def FGSJ(QePW):\n for AQnM in QePW.effective_principals:\n ... | [
"0.68583006",
"0.6794211",
"0.64944965",
"0.6270468",
"0.6172108",
"0.6113083",
"0.5994615",
"0.5977845",
"0.57958686",
"0.57872874",
"0.57351005",
"0.5711627",
"0.56501937",
"0.56018865",
"0.5581103",
"0.5575125",
"0.55097246",
"0.5508197",
"0.5508197",
"0.5508197",
"0.55029... | 0.7876543 | 1 |
Truncate xtick labels with an ellipsis after `stop_index` | def OVhA(kj9G, bFhN=30):
for UXqs in kj9G.get_xticklabels():
a1PO = UXqs.get_text()
if len(a1PO) < bFhN:
continue
else:
UXqs.set_text(a1PO[:bFhN] + '...')
return kj9G.get_xticklabels() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pIgP(Crrw):\n\n def t67G(rdlD):\n PSle = False\n for YRbF, bGrB in enumerate(rdlD):\n if PSle:\n rdlD[YRbF] = -1\n elif rdlD[YRbF] == 10:\n PSle = True\n return rdlD\n U5bT = oyIN.copy(Crrw)\n U5bT = hYfm(U5bT)\n return oyIN.a... | [
"0.6083702",
"0.5959954",
"0.57749104",
"0.555258",
"0.55249304",
"0.54223025",
"0.5411453",
"0.5373801",
"0.5356702",
"0.5335157",
"0.532265",
"0.5292864",
"0.51761854",
"0.5173749",
"0.51684403",
"0.51598763",
"0.51417184",
"0.51403195",
"0.5099067",
"0.50803995",
"0.506559... | 0.84581554 | 0 |
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP. | def FIMM(Ro_8, *, lWxd: Optional[pulumi.Input[str]]=None, _KWB: Optional[pulumi.Input[int]]=None, lD3m: Optional[pulumi.Input[str]]=None, i6XV: Optional[pulumi.Input[str]]=None, fwgw: Optional[pulumi.Input['NodeManagementArgs']]=None, FcwI: Optional[pulumi.Input[str]]=None, UXPF: Optional[pulumi.Input[Sequence[pulumi.I... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nAIv(YKHO) -> h8nf[qe4Y.Input['AutoprovisioningNodePoolDefaultsArgs']]:\n return qe4Y.get(YKHO, 'autoprovisioning_node_pool_defaults')",
"def L5fN(YKHO) -> h8nf[qe4Y.Input['NodeConfigDefaultsArgs']]:\n return qe4Y.get(YKHO, 'node_config_defaults')",
"def FIMM(Ro_8, *, L5fN: Optional[pulumi.Input['Nod... | [
"0.86969364",
"0.6977837",
"0.59966993",
"0.5859701",
"0.575943",
"0.57324386",
"0.56806487",
"0.5671278",
"0.560926",
"0.56036353",
"0.558288",
"0.5562576",
"0.5510274",
"0.5471399",
"0.54708153",
"0.5429106",
"0.54229975",
"0.54216766",
"0.5419271",
"0.5419271",
"0.5391037"... | 0.0 | -1 |
The ID of a BigQuery Dataset. | def c55i(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'dataset_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c55i(YKHO) -> str:\n return qe4Y.get(YKHO, 'dataset_id')",
"def c55i(YKHO) -> str:\n return qe4Y.get(YKHO, 'dataset_id')",
"def c55i(YKHO) -> str:\n return qe4Y.get(YKHO, 'dataset_id')",
"def c55i(YKHO) -> str:\n return YKHO._dataset_id",
"def hq8C(YKHO) -> int:\n return YKHO.dataset_id"... | [
"0.81362456",
"0.81362456",
"0.81362456",
"0.80097246",
"0.7964272",
"0.75436383",
"0.75411695",
"0.7160429",
"0.66891587",
"0.66492206",
"0.6630024",
"0.6624311",
"0.65819645",
"0.65759516",
"0.64916605",
"0.6317154",
"0.6267738",
"0.61867064",
"0.61143833",
"0.607298",
"0.6... | 0.74934447 | 7 |
This field is deprecated. Leave this unset and instead configure BinaryAuthorization using evaluation_mode. If evaluation_mode is set to anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored. | def etR_(YKHO) -> h8nf[qe4Y.Input[bool]]:
qmLP.warn('This field is deprecated. Leave this unset and instead configure BinaryAuthorization using evaluation_mode. If evaluation_mode is set to anything other than EVALUATION_MODE_UNSPECIFIED, this field is ignored.', DeprecationWarning)
qe4Y.log.warn('enabled is de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, *, etR_: Optional[pulumi.Input[bool]]=None, KvCt: Optional[pulumi.Input['BinaryAuthorizationEvaluationMode']]=None):\n if etR_ is not None:\n qmLP.warn('This field is deprecated. Leave this unset and instead configure BinaryAuthorization using evaluation_mode. If evaluation_mode is set to ... | [
"0.8132143",
"0.6803469",
"0.55793554",
"0.5579164",
"0.4852749",
"0.48117784",
"0.47908556",
"0.4617451",
"0.45631117",
"0.45353624",
"0.44183743",
"0.43746224",
"0.42730844",
"0.42720217",
"0.42677683",
"0.4259761",
"0.42459857",
"0.4240406",
"0.42338163",
"0.4214717",
"0.4... | 0.74069196 | 1 |
CidrBlock contains an optional name and one CIDR block. | def FIMM(Ro_8, *, Dwtb: Optional[pulumi.Input[str]]=None, qQNS: Optional[pulumi.Input[str]]=None):
if Dwtb is not None:
qe4Y.set(Ro_8, 'cidr_block', Dwtb)
if qQNS is not None:
qe4Y.set(Ro_8, 'display_name', qQNS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dwtb(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cidr_block')",
"def Kvj_(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['CidrBlockArgs']]]]:\n return qe4Y.get(YKHO, 'cidr_blocks')",
"def EIb9(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'ipv4_cidr_block')",
"def Dwtb(YKHO):\n ... | [
"0.72494173",
"0.69008994",
"0.652641",
"0.6459805",
"0.6427073",
"0.63278306",
"0.6290132",
"0.6216575",
"0.61874634",
"0.58915496",
"0.58310604",
"0.58310604",
"0.57936865",
"0.57326955",
"0.57326955",
"0.5689116",
"0.5689116",
"0.5676451",
"0.5465345",
"0.5397414",
"0.5314... | 0.5753289 | 13 |
cidr_block must be specified in CIDR notation. | def Dwtb(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'cidr_block') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dwtb(YKHO, Dwtb):\n YKHO._cidr_block = Dwtb",
"def mwo_(wR2I):\n J3J2 = ''\n while True:\n try:\n J3J2 = SwOd.ip_network(wR2I)\n break\n except ValueError:\n G9jH.warn('input should be in format x.x.x.x/x')\n wR2I = input('enter the network c... | [
"0.7295626",
"0.71386415",
"0.69279796",
"0.67995924",
"0.67856276",
"0.67648405",
"0.6729557",
"0.66999584",
"0.6649946",
"0.6649946",
"0.6598423",
"0.65897006",
"0.65545976",
"0.65545976",
"0.65165895",
"0.6469174",
"0.6463293",
"0.64566743",
"0.64337647",
"0.6398839",
"0.6... | 0.7315977 | 0 |