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 |
|---|---|---|---|---|---|---|
Gets the ResultType.result_type attribute associated with the given Query object. | def s7c6(YKHO):
return IXdA.objects.get(compositor_id=YKHO.compositor).compositor_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HfXH(YKHO):\n return YKHO._result_type",
"def HfXH(YKHO) -> str:\n return YKHO._result_type",
"def kdD5(YKHO):\n return YKHO._query_type",
"def type(YKHO):\n return YKHO._result.type",
"def VEOl(YKHO) -> UV1p:\n return YKHO._executionresulttype",
"def kdD5(YKHO) -> h8nf[str]:\n retu... | [
"0.7154858",
"0.6993083",
"0.66927135",
"0.64845854",
"0.62794673",
"0.59737974",
"0.5920963",
"0.58528256",
"0.5812756",
"0.5756362",
"0.5729461",
"0.5729461",
"0.5652434",
"0.56275094",
"0.56275094",
"0.55206865",
"0.55201554",
"0.55194944",
"0.55092114",
"0.55079496",
"0.5... | 0.0 | -1 |
Initialize the `indices` with all one vector with the length same as the number of channels. During pruning, the places in `indices` which correpond to the channels to be pruned will be set to 0. | def FIMM(YKHO, Qi3c):
super(RhPy, YKHO).__init__()
YKHO.register_buffer('indices', ht2j.ones(Qi3c, dtype=bool)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ht6e(YKHO, Ep8u):\n return ht2j.ones(Ep8u, dtype=ht2j.int64) * YKHO.bos_index",
"def Ht6e(YKHO, Ep8u):\n return ht2j.ones(Ep8u, dtype=ht2j.int64) * YKHO.bos_index",
"def Ht6e(YKHO, Ep8u):\n return ht2j.ones(Ep8u, dtype=ht2j.int64) * YKHO.bos_index",
"def Ht6e(YKHO, Ep8u):\n return ht2j.ones(E... | [
"0.64531016",
"0.64460695",
"0.64460695",
"0.6407223",
"0.6378929",
"0.61996996",
"0.6103791",
"0.5983798",
"0.59623134",
"0.59515756",
"0.5929189",
"0.5927389",
"0.5801792",
"0.5794154",
"0.5773279",
"0.5768307",
"0.5766403",
"0.56468385",
"0.56468385",
"0.56416035",
"0.5639... | 0.58036304 | 12 |
Takes in two characters and returns corresonding match/mismatch score according to the given SCORE matrix. The characters could be amino acids or DNA nucleotides. | def ysID(ni3Z, EeIQ):
p1kx = FCNI
ni3Z = ni3Z.upper()
EeIQ = EeIQ.upper()
if p1kx.get((ni3Z, EeIQ), 'NA') != 'NA':
return p1kx[ni3Z, EeIQ]
else:
return p1kx[EeIQ, ni3Z] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMjc(lz9e, EI9L, o9ng, Dn_O):\n if lz9e == EI9L:\n return o9ng\n else:\n return Dn_O",
"def p1kx(wxdF: str, O48g: str, kUBT: int=0, YGrE: int=-1) -> int:\n p1kx = 0\n for YRbF in range(min(len(wxdF), len(O48g))):\n if wxdF[YRbF] == O48g[YRbF]:\n p1kx += kUBT\n ... | [
"0.71687514",
"0.6454418",
"0.6377652",
"0.62998587",
"0.6262803",
"0.6188478",
"0.6172102",
"0.6168904",
"0.6165514",
"0.613455",
"0.6102202",
"0.61021066",
"0.6031389",
"0.601195",
"0.59909356",
"0.59803784",
"0.59624034",
"0.59529674",
"0.59464234",
"0.5893367",
"0.5881305... | 0.67104703 | 1 |
Returns filter hardware device metadata. | def ncbd(YKHO) -> e5kH.Device:
bdSV, DbxN = YKHO.init_hardware.split('=')
mWFP = DbxN.split(':', 1)[0]
if YKHO.filter_hardware != mWFP:
raise ValueError(YKHO.filter_hardware)
return e5kH.Device(bdSV, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GWuV(YKHO):\n return {'name': ueYb(YKHO._data, YKHO._shutter_id), 'identifiers': {(Sugg, Sph8(YKHO._data, YKHO._shutter_id))}, 'manufacturer': YhHo, 'model': YKHO._shutter.product_type, 'sw_version': YKHO._shutter.firmware_version, 'via_device': (Sugg, YKHO._data.wiserhub.system.name)}",
"def GWuV(YKHO):\... | [
"0.7174662",
"0.70244837",
"0.70244837",
"0.70244837",
"0.7005335",
"0.69828314",
"0.69828314",
"0.69828314",
"0.6953016",
"0.69218606",
"0.689657",
"0.6886892",
"0.6879973",
"0.6879973",
"0.68632555",
"0.6855993",
"0.68525964",
"0.68525964",
"0.68441725",
"0.68245435",
"0.67... | 0.6098491 | 92 |
r"""Get a User protobuf for a specific user. | def tgJw(MqU2, CBIr):
if '\\' in CBIr:
zrIJ, CBIr = CBIr.split('\\', 1)
DW23 = [P6bq for P6bq in MqU2.users if P6bq.username == CBIr and P6bq.userdomain == zrIJ]
else:
DW23 = [P6bq for P6bq in MqU2.users if P6bq.username == CBIr]
if not DW23:
return
else:
return D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oRxS(YKHO):\n return bAXD.make(mv1M)",
"def oRxS(YKHO):\n return bAXD.make(mv1M)",
"def oRxS(YKHO):\n return bAXD.make(mv1M)",
"def xP7V(YKHO) -> 'GrrUser':\n qIxc = L0bU.ApiGetGrrUserArgs(username=YKHO.username)\n nPrm = YKHO._context.SendRequest('GetGrrUser', qIxc)\n if not isinstance... | [
"0.681178",
"0.681178",
"0.681178",
"0.6692564",
"0.66820073",
"0.65699494",
"0.6557485",
"0.6555031",
"0.652557",
"0.6495871",
"0.64957285",
"0.64902776",
"0.6478965",
"0.64777464",
"0.6462172",
"0.6458877",
"0.6454576",
"0.64543134",
"0.645229",
"0.64498407",
"0.64434284",
... | 0.0 | -1 |
Reinitialize the data structures for the next query after the previous query. | def Y7Bk(YKHO):
for Ty9i in YKHO.workset:
YKHO.d[0][Ty9i] = YKHO.d[1][Ty9i] = YKHO.inf
YKHO.visited[0][Ty9i] = False
YKHO.visited[1][Ty9i] = False
YKHO.workset = set() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FnTW(YKHO):\n YKHO._queries = []\n YKHO._current_query_index = 0",
"def ka5c(YKHO):\n YKHO.pending_queries: x1iM[cuzp] = list()\n YKHO._retriable_queries: x1iM[cuzp] = list()\n YKHO._retriable_query_exceptions: x1iM[cuzp] = list()",
"def Hvwm(YKHO):\n YKHO.queries = {}",
"def SiRx(YKHO)... | [
"0.779011",
"0.7539981",
"0.73614347",
"0.7253113",
"0.71681625",
"0.7074386",
"0.67838377",
"0.6766987",
"0.67471665",
"0.66922355",
"0.66803926",
"0.6635233",
"0.66193414",
"0.65841717",
"0.6529426",
"0.65213156",
"0.65174806",
"0.6512295",
"0.6463719",
"0.6451998",
"0.6451... | 0.0 | -1 |
Return Tornado application instance. This is used by main() to start the application, and by functional tests for testing. The default dependencies should be those for the real application. If db_file is None, use an inmemory DB. | def WTdB(QKV0=None, uNTd=lambda: int(ITS7.time()), Exf6=lambda bD7m: bD7m):
VUF1 = ZpnP(QKV0, uNTd)
return my7k.web.Application(oTZi.get_routes(VUF1, Exf6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPKU(mmls: Optional[str]=None) -> ImMB:\n dcEW = boMG.init(mmls)\n try:\n xAU6 = odmE(Hy7s.environ)\n return WTdB(dcEW, 'main', options=xAU6)\n except Exception:\n G9jH.getLogger(__name__).exception('Failed starting the application')\n raise",
"def P4t4():\n print('fix... | [
"0.67886394",
"0.6702511",
"0.6657551",
"0.6569244",
"0.6569244",
"0.6518805",
"0.6450811",
"0.63962543",
"0.6394006",
"0.63558304",
"0.6355209",
"0.63379806",
"0.6257208",
"0.6254953",
"0.62390935",
"0.62329644",
"0.6177802",
"0.6148788",
"0.6123611",
"0.61195284",
"0.610921... | 0.69837916 | 0 |
Post comment with invalid data | def hkyU(YKHO):
Tj1O = [{'movie_id': 5, 'comment_body': "The best movie I've ever seen"}, {'movie_id': 2}, {}]
for aM_I in Tj1O:
geh0 = YKHO.client.post('/api/comments/', aM_I)
YKHO.assertEqual(geh0.status_code, 400, aM_I)
YKHO.assertTrue(geh0.json().get('error'), aM_I) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def COZd(YKHO):\n pB3N = {'title': ''}\n Ylbp = YKHO.client.post(n9t6, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def BziP(YKHO):\n Ylbp = YKHO.client.post(n9t6, {'movie': '5', 'comment': ''})\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def wH... | [
"0.7714447",
"0.748075",
"0.7338627",
"0.73244363",
"0.72885597",
"0.72063625",
"0.7191827",
"0.7184849",
"0.70651096",
"0.70491433",
"0.7010029",
"0.69916576",
"0.69152725",
"0.68665326",
"0.685646",
"0.6827616",
"0.67799795",
"0.6771627",
"0.6757645",
"0.67329675",
"0.67320... | 0.7218896 | 5 |
A wrapper for `tf.Variable` which enables parameter sharing in models. Creates and returns theano shared variables similarly to `tf.Variable`, except if you try to create a param with the same name as a previouslycreated one, `param(...)` will just return the old one instead of making a new one. This constructor also a... | def xqoZ(mWFP, *qIxc, **B2fa):
if mWFP not in Vlb9:
B2fa['name'] = mWFP
xqoZ = ZylS.Variable(*qIxc, **B2fa)
xqoZ.param = True
Vlb9[mWFP] = xqoZ
Aofo = Vlb9[mWFP]
YRbF = 0
while Aofo in HHxO:
YRbF += 1
Aofo = HHxO[Aofo]
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xqoZ(mWFP, *qIxc, **B2fa):\n if mWFP not in Vlb9:\n B2fa['name'] = mWFP\n xqoZ = e89i.shared(*qIxc, **B2fa)\n xqoZ.param = True\n Vlb9[mWFP] = xqoZ\n return Vlb9[mWFP]",
"def cmJY(Es0b, mWFP=None, **B2fa):\n Es0b = vhpA.as_tensor_variable(Es0b)\n if mWFP is None:\n ... | [
"0.7227374",
"0.66221553",
"0.6406256",
"0.57588273",
"0.5570102",
"0.54060805",
"0.540357",
"0.5381313",
"0.5340563",
"0.5340563",
"0.5307797",
"0.52746373",
"0.52675444",
"0.52558684",
"0.5207828",
"0.5180621",
"0.51455146",
"0.5144205",
"0.5144082",
"0.5040404",
"0.5034354... | 0.64951074 | 2 |
Ensure that the provisioning state of a VM is 'Succeeded' For all provisioning states other than 'Succeeded', this method will raise an exception with an informative error message. | def fX0K(qIxc):
geh0 = oWPP(qIxc)
VFHf = geh0.get('name')
C9U5 = geh0.get('properties')
mX_9 = C9U5.get('provisioningState')
kL40 = C9U5.get('instanceView', {}).get('statuses')
if mX_9.lower() == 'failed':
for jGRS in kL40:
JBvl = jGRS.get('code')
if 'provisioning... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fX0K(YKHO, vBTQ, VFHf):\n geh0 = YKHO.get_vm(vBTQ, VFHf)\n C9U5 = geh0.get('properties')\n mX_9 = C9U5.get('provisioningState')\n kL40 = C9U5.get('instanceView', {}).get('statuses')\n if mX_9.lower() == 'failed':\n for jGRS in kL40:\n JBvl = jGRS.get('code')\n if 'pr... | [
"0.7332646",
"0.59183925",
"0.5870998",
"0.56433403",
"0.5572472",
"0.5572472",
"0.5572472",
"0.55561215",
"0.5540002",
"0.55069286",
"0.55069286",
"0.5482762",
"0.54631275",
"0.54631275",
"0.54631275",
"0.54631275",
"0.54631275",
"0.54631275",
"0.54631275",
"0.54631275",
"0.... | 0.7192015 | 1 |
List all Resource Groups belonging to your Azure subscription | def xgXX():
geh0 = VNZ2()
BWXx = geh0.get('value')
P2jf = []
for vBTQ in BWXx:
ssf0 = {'Name': vBTQ.get('name'), 'ID': vBTQ.get('id'), 'Location': vBTQ.get('location'), 'ProvisioningState': vBTQ.get('properties', {}).get('provisioningState')}
P2jf.append(ssf0)
leAC = 'List of Resourc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xgXX(x0hE: MsGraphClient, qIxc: dict):\n geh0 = x0hE.list_resource_groups()\n BWXx = geh0.get('value')\n P2jf = []\n for vBTQ in BWXx:\n ssf0 = {'Name': vBTQ.get('name'), 'ID': vBTQ.get('id'), 'Location': vBTQ.get('location'), 'ProvisioningState': vBTQ.get('properties', {}).get('provisioning... | [
"0.7783919",
"0.74430656",
"0.7321408",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
"0.68032175",
... | 0.7551904 | 1 |
Get the version of an instance, or detect it if currently unknown. Several functions rely on the Postgres version of the instance. This function will detect the version from the PG_VERSION file in the PGDATA root directory. If the version file doesn't exist, this instance hasn't been bootstrapped yet, so return the Non... | def kaPv(YKHO):
p4_k = YKHO.instance
if not p4_k.version:
uTvs = p4_k.local_pgdata or p4_k.herd.pgdata
REbA = Hy7s.path.join(uTvs, 'PG_VERSION')
try:
p4_k.version = YKHO.__run_cmd('cat %s' % (REbA,)).strip()
except:
p4_k.version = None
return p4_k.vers... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(YKHO):\n YKHO._db.cursor.execute(\"SELECT * FROM sqlite_master WHERE type='table' AND name='versions'\")\n if not YKHO._db.cursor.fetchone():\n return None\n YKHO._db.cursor.execute('SELECT MAX(version) FROM versions')\n return YKHO._db.cursor.fetchone()[0]",
"def kaPv():\n try:\n ... | [
"0.71121323",
"0.7036755",
"0.7012324",
"0.6983658",
"0.6952805",
"0.69022226",
"0.6823498",
"0.6804089",
"0.67131144",
"0.67090845",
"0.668487",
"0.66374546",
"0.6616696",
"0.66047674",
"0.6595223",
"0.6588043",
"0.6561032",
"0.6512267",
"0.64719266",
"0.64615256",
"0.645972... | 0.83700264 | 0 |
Converts a bool into tcl compatible equivalent | def Rwub(wEf2):
return 'Yes' if wEf2 else 'No' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _J6_(Fg_i):\n return '1' if Fg_i else '0'",
"def QxEQ(bool):\n return 'true' if bool else 'false'",
"def i7vQ(bool):\n return 'true' if bool else 'false'",
"def Ux8e(Fg_i):\n if Fg_i:\n return 'yes'\n else:\n return 'no'",
"def gstE(Fg_i):\n if Fg_i:\n return 'Yes... | [
"0.7554548",
"0.7450973",
"0.7392828",
"0.7350133",
"0.73461896",
"0.73412514",
"0.73102605",
"0.7221507",
"0.71094936",
"0.70965225",
"0.706466",
"0.70630836",
"0.70552015",
"0.7012353",
"0.6996033",
"0.6992492",
"0.69804215",
"0.6961189",
"0.69125247",
"0.68376464",
"0.6813... | 0.82819414 | 0 |
Gets and sets the HTTP method by which to send the request (ex. PUT, GET) | def NKcE(YKHO):
return YKHO._method | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GjSa(YKHO):\n return YKHO.__http_method",
"def GjSa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'http_method')",
"def GjSa(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'http_method')",
"def GjSa(YKHO):\n return YKHO._http_method.name",
"def jZqH():\n return QePW.headers.get('X... | [
"0.7836126",
"0.77326435",
"0.77326435",
"0.75346136",
"0.7483727",
"0.7426795",
"0.7362428",
"0.7351277",
"0.73486567",
"0.73253995",
"0.7324016",
"0.73200387",
"0.728253",
"0.71991575",
"0.71838236",
"0.7156205",
"0.7156205",
"0.7119179",
"0.70567465",
"0.7002125",
"0.69906... | 0.5586407 | 93 |
Creates a new Area | def m8z6(YKHO):
nPrm = QePW.json
return Dwws(data=nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AVRv(YKHO, **B2fa):\n f0tD = FnSF.objects.create(adminlevel=YKHO, **B2fa)\n return f0tD",
"async def area_create(QePW: Request, f0tD: AreaCreate, NCls=JHvC(GGod)):\n return await AVRv(NCls, f0tD)",
"def GsxC(azoT):\n _i_Z = FnSF(**azoT)\n assert _i_Z.construct() == f0tD.render(azoT)",
"def... | [
"0.8173784",
"0.7725479",
"0.6903094",
"0.6898562",
"0.68519044",
"0.67402583",
"0.6739947",
"0.6708265",
"0.670537",
"0.6693104",
"0.6676716",
"0.6675231",
"0.6671773",
"0.659029",
"0.65666944",
"0.65485966",
"0.6534863",
"0.6525849",
"0.64675874",
"0.6456944",
"0.63781536",... | 0.62080646 | 49 |
Returns a float for sentiment strength based on the input text. Positive values are positive valence, negative value are negative valence. | def El7S(l5Ny):
V22M = obeQ.split(l5Ny.lower())
QPZq = map(lambda GIN8: qmX1.get(GIN8, 0), V22M)
if QPZq:
El7S = float(sum(QPZq)) / epAf.sqrt(len(QPZq))
else:
El7S = 0
return El7S | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def El7S(YKHO, l5Ny: str) -> float:\n return 0.0",
"def El7S(YKHO, l5Ny: str) -> float:\n Rhv4 = YKHO.normalize(l5Ny)\n cCrA = [YKHO.sentence_sentiment(KCHu) for KCHu in Rhv4]\n if not Rhv4:\n return 0.0\n Z083 = sum(cCrA) / epAf.sqrt(len(Rhv4))\n return Z083",
"def El7S(YKHO, l5Ny: st... | [
"0.7876808",
"0.78144807",
"0.7716422",
"0.7653561",
"0.74009436",
"0.7297932",
"0.72597224",
"0.7150512",
"0.71274066",
"0.71253115",
"0.7124383",
"0.7114149",
"0.7108682",
"0.7098844",
"0.7082372",
"0.7082288",
"0.70727235",
"0.69961864",
"0.6995476",
"0.6970621",
"0.695196... | 0.7665307 | 3 |
Gets low and high bounds that captures the interesting bits of the two pieces of data. @ In, stats1, dict, dictionary with either "low" and "high" or "mean" and "stdev" @ In, stats2, dict, dictionary with either "low" and "high" or "mean" and "stdev" @ Out, (low, high), (float, float) Returns low and high bounds. | def RZDm(Qj1N, i3rY):
def CvYB(QmN4):
"""
Finds the lower bound from the statistics in stat.
@ In, stat, dict, Dictionary with either "low" or "mean" and "stdev"
@ Out, getLowBound, float, the lower bound to use.
"""
if 'low' in QmN4:
return QmN4['low']
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JcNo(T6S7, r0is):\n JBMS = XTiz.mean(T6S7)\n M1Jx = XTiz.std(T6S7, ddof=1)\n LSh8 = JBMS - r0is * M1Jx\n CN9P = JBMS + r0is * M1Jx\n return (LSh8, CN9P)",
"def iacw(QmN4):\n if 'high' in QmN4:\n return QmN4['high']\n return QmN4['mean'] + 5 * QmN4['stdev']",
"def CWaD(zhMh, WL4f... | [
"0.67185116",
"0.63194007",
"0.62734187",
"0.62495834",
"0.6204338",
"0.6160534",
"0.6103729",
"0.59510934",
"0.5896173",
"0.5889795",
"0.5888724",
"0.5887486",
"0.5876652",
"0.58626",
"0.5840588",
"0.5808809",
"0.5771848",
"0.57420945",
"0.57302994",
"0.57126385",
"0.5704056... | 0.87825435 | 0 |
Finds the higher bound from the statistics in stat. @ In, stat, dict, Dictionary with either "high" or "mean" and "stdev" @ Out, getLowBound, float, the lower bound to use. | def iacw(QmN4):
if 'high' in QmN4:
return QmN4['high']
return QmN4['mean'] + 5 * QmN4['stdev'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CvYB(QmN4):\n if 'low' in QmN4:\n return QmN4['low']\n return QmN4['mean'] - 5 * QmN4['stdev']",
"def RZDm(Qj1N, i3rY):\n\n def CvYB(QmN4):\n \"\"\"\n Finds the lower bound from the statistics in stat.\n @ In, stat, dict, Dictionary with either \"low\" or \"mean\" and \"stdev... | [
"0.83543384",
"0.6601516",
"0.6335026",
"0.62249017",
"0.6065429",
"0.60270286",
"0.59638155",
"0.59415567",
"0.5935885",
"0.5931856",
"0.59256643",
"0.59016526",
"0.5809335",
"0.5768603",
"0.5747709",
"0.5741245",
"0.57284486",
"0.5704864",
"0.57029814",
"0.56941223",
"0.568... | 0.83660215 | 0 |
Returns the VGG Model with some modifications Weights are initialized with the IMAGENET dataset, last fully conected layers are implemented differently | def bSpI(GhuM):
vHnr = X6a0(shape=GhuM)
vHnr = Zlsf(lambda WKvO: WKvO / 255.0 - 0.5)(vHnr)
p7xH = HxRh(weights='imagenet', include_top=False, input_tensor=vHnr)
RLZ8 = p7xH.output
RLZ8 = D2Bo()(RLZ8)
RLZ8 = l6ZH(1024, activation='elu', name='fc1')(RLZ8)
RLZ8 = lARV(0.5, name='fc1_dropout')(R... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HxRh(YKHO):\n if YKHO.train:\n q1Of = Hy7s.path.join(YKHO.working_directory, 'VGG16_notop_model.h5')\n if not Hy7s.path.exists(q1Of):\n print('Downloading VGG16_Notop_weights...')\n bD7m = 'https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weig... | [
"0.74590176",
"0.7427509",
"0.7370819",
"0.7351405",
"0.7304335",
"0.72661036",
"0.725225",
"0.7201073",
"0.7084758",
"0.70495725",
"0.703533",
"0.7014569",
"0.70059514",
"0.700569",
"0.70028305",
"0.69890225",
"0.69723326",
"0.69630075",
"0.695334",
"0.6931497",
"0.692174",
... | 0.72440034 | 7 |
Get storage group limit. | def ASnA(YKHO, d1tq):
if YKHO.sg_limits['use_default']:
return YKHO.sg_limits['default']
else:
return YKHO.sg_limits['limits'].get(d1tq, YKHO.sg_limits['default']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3hO():\n return u406[0]",
"def K3hO(YKHO):\n raise NotImplementedError()",
"def K3hO(YKHO):\n return YKHO.__limit__",
"def K3hO(YKHO):\n return YKHO.__limit",
"def K3hO(YKHO):\n return YKHO.__limit",
"def K3hO(YKHO):\n return YKHO.__limit",
"def K3hO(YKHO):\n return YKHO.raw_r... | [
"0.70791113",
"0.7056952",
"0.7002485",
"0.6991069",
"0.6991069",
"0.6991069",
"0.69882387",
"0.6988191",
"0.6988191",
"0.6988191",
"0.6622386",
"0.65770656",
"0.6533349",
"0.6518371",
"0.6518371",
"0.64947593",
"0.6470159",
"0.64294255",
"0.63852346",
"0.63852346",
"0.638523... | 0.7978439 | 0 |
Restrict client access based on the version of the encp client. | def swQX(YKHO, d1tq, tPza, YXSb):
RBVb = False
zT4D.trace(YKHO.trace_level + 3, 'restrict_version_access %s %s %s' % (d1tq, tPza, YXSb))
if d1tq == YXSb['vc']['storage_group']:
Fa6Y = Ea05.convert_version(tPza)
if YXSb.has_key('version'):
DpZH = YXSb['version'].split()[0]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GG58(YKHO, KGEA, AaEs, G1Nu):\n pass",
"def gji8(*qIxc, **B2fa):\n\n def mrMx(JfyU):\n\n @xBlr.wraps(JfyU)\n def h3Xc(*Bbxl, **dRDL):\n if not hy7M(B2fa['client'], B2fa['version']):\n tO9_ = 'requires %s client version >= %s' % (B2fa['client'], B2fa['version'])\n... | [
"0.6119468",
"0.6110919",
"0.59851646",
"0.59134525",
"0.58923674",
"0.5867258",
"0.5827632",
"0.57856256",
"0.575225",
"0.57456774",
"0.5618315",
"0.5566463",
"0.5536984",
"0.5487927",
"0.5487927",
"0.5486899",
"0.5479409",
"0.54712844",
"0.5468198",
"0.5439502",
"0.54126835... | 0.62774616 | 0 |
Get a connection using the OCISessionGet() interface rather than using the low level interface for connecting. | def dyHn(YKHO, n294, dBuj, wnGP, Ud4l):
X_mC = False
Lg8j = dRjz.nullptr(WI3u.OCIAuthInfo.TO)
if dBuj:
kHse = dBuj.w_name
Tuqy = WI3u.OCI_SESSGET_SPOOL
if not dBuj.homogeneous and dBuj.w_username and YKHO.w_username:
X_mC = n294.is_true(n294.ne(dBuj.w_username, YKHO.w_use... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i43P():\n return QyHK.connect('ANONYMOUS', 'mayo', 'mayo')",
"def dyHn():\n global __g_Connection\n try:\n if not OXn1 is None:\n return OXn1\n except NameError:\n OXn1 = None\n return OXn1",
"def TXQY(CBIr, cuiw):\n cuiw = kicx(CBIr, cuiw)\n return DLpL(cuiw)"... | [
"0.70855916",
"0.6993364",
"0.69111603",
"0.68593854",
"0.68405104",
"0.68044275",
"0.6784415",
"0.67267245",
"0.67000496",
"0.66559285",
"0.6646604",
"0.6634625",
"0.6629524",
"0.66110873",
"0.6592889",
"0.6517981",
"0.6510447",
"0.64972454",
"0.6496917",
"0.647138",
"0.6460... | 0.6002081 | 87 |
Convert given values for the given label. | def a8Pe(YKHO, UXqs, hkxX):
if YKHO.hkt != None or YKHO.mnemonic != None:
YwkQ = YKHO.channel
yeL4 = YKHO.hkt
else:
G_YN = YKHO.itos.query4descr(UXqs)
yeL4, YwkQ = YKHO.itos.parse_descr(G_YN)
VN2L = YKHO.itos.query4expr(hkt=yeL4, channel=YwkQ, mnemonic=YKHO.mnemonic)
WgY8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8Rf(Crrw):\n ccBJ = oyIN.unique(Crrw)\n ya19 = [ccBJ[KCHu] for KCHu in Crrw]\n return oyIN.array(ya19)",
"def SBkZ(YKHO, Crrw):\n m6nV = []\n for UXqs in Crrw:\n m6nV.append(YKHO.class_names[UXqs])\n assert len(m6nV) == len(Crrw)\n return m6nV",
"def aI1h(Crrw, YEt5, jezm):\n ... | [
"0.7092279",
"0.65040463",
"0.6342",
"0.62356365",
"0.61214477",
"0.60995716",
"0.6088293",
"0.60501754",
"0.6038071",
"0.60239244",
"0.60232955",
"0.5984666",
"0.5960241",
"0.5930667",
"0.5922105",
"0.5882756",
"0.58444506",
"0.58402467",
"0.5811589",
"0.5803457",
"0.5794754... | 0.71874994 | 0 |
Generate matrix plot of confusion matrix with pretty annotations. The plot image is saved to disk. | def l5Np(Y8eF, aMgO, Ux0P, jTqs, SLLj, Crrw=None, NHTT=None, wytA=(20, 20)):
Crrw = [str(YRbF) for YRbF in range(jTqs)]
if NHTT is not None:
aMgO = [NHTT[O5iP] for O5iP in aMgO]
Y8eF = [NHTT[O5iP] for O5iP in Y8eF]
Crrw = [NHTT[O5iP] for O5iP in Crrw]
Bcwd = YsYU(Y8eF, aMgO)
pEBx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Qf5f):\n global MATRIX\n FtBq = oyIN.asarray(XXoK).sum(axis=1)\n XXoK = XXoK / FtBq[:, oyIN.newaxis] * 100\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(111)\n k13D = QrM1.imshow(XXoK, cmap='cool')\n QrM1.clim(0, 100)\n LZpg.colorbar(k13D)\n QrM1.title(f'{Qf5f}', fontsize=16)... | [
"0.7690865",
"0.7682237",
"0.76541895",
"0.758027",
"0.7560889",
"0.75390345",
"0.75163203",
"0.7512992",
"0.749461",
"0.74940556",
"0.74931014",
"0.74906224",
"0.7479551",
"0.7471206",
"0.74654603",
"0.74582607",
"0.7452952",
"0.74335474",
"0.74274635",
"0.7398009",
"0.73957... | 0.0 | -1 |
Returns the signal value of the wire specified. | def XWPL(_67D: list[Wire()], nj5J: str) -> int | None:
if _67D is not None:
for UsS3 in _67D:
if UsS3.identifier == nj5J:
return UsS3.signal | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BF46(YKHO):\n wEf2 = YKHO._out_signal\n YKHO._out_signal = None\n return wEf2",
"def XWPL(YKHO, nj5J):\n return YKHO._wires[nj5J]",
"def Xlmt(YKHO):\n return YKHO.__Signal",
"def Gaon(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'signal')",
"def Gaon(YKHO) -> h8nf[int]:\n return qe4... | [
"0.7190691",
"0.70777434",
"0.70703435",
"0.6983749",
"0.6983749",
"0.6983749",
"0.6983749",
"0.6983749",
"0.6983749",
"0.6908352",
"0.6903227",
"0.67629075",
"0.6713202",
"0.6607135",
"0.6543636",
"0.6469824",
"0.6469824",
"0.64184994",
"0.6289863",
"0.62465864",
"0.6230079"... | 0.69756097 | 9 |
the Users page should open, expand the user and click the edit button. | def bi8Y(E_qD):
assert EaU9(E_qD, 7, '//div[contains(.,"Users")]')
assert EaU9(E_qD, 10, '//tr[contains(.,"ericbsd")]//mat-icon', 'clickable')
E_qD.find_element_by_xpath('//tr[contains(.,"ericbsd")]//mat-icon').click()
assert EaU9(E_qD, 10, '(//tr[contains(.,"ericbsd")]/following-sibling::ix-user-detail... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nCo8(E_qD):\n assert EaU9(E_qD, 7, '//h3[contains(.,\"Edit User\")]')\n ITS7.sleep(0.5)",
"def GFx6(uJjO):\n CBIr = mv1M.query.get_or_404(uJjO)\n return TvZl('User_Edit_Page.html', user=CBIr)",
"def Bbqu(XjSm):\n CBIr = mv1M.query.get(XjSm)\n return TvZl('edituser.html', user_num=XjSm, us... | [
"0.72891563",
"0.7178532",
"0.7055993",
"0.70521104",
"0.6896198",
"0.6891831",
"0.67946446",
"0.6791108",
"0.67856073",
"0.6755736",
"0.6734571",
"0.6726808",
"0.671632",
"0.66812766",
"0.6665291",
"0.6662702",
"0.66375715",
"0.6627778",
"0.6619442",
"0.66145337",
"0.6594956... | 0.87407124 | 0 |
Removes any edge pointing to v. | def Ialh(YKHO, Ty9i):
for Q6kx in YKHO.adj:
YKHO.adj[Q6kx] = [tTpl for tTpl in YKHO.adj[Q6kx] if tTpl.dst != Ty9i] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iyca(YKHO, P6bq, Ty9i):\n YKHO.graph.remove_edge(P6bq, Ty9i)",
"def AYvI(YKHO, Ty9i):\n pass",
"def AYvI(YKHO, Ty9i: Vertex):\n WKvO = Ty9i.element()\n for D70y in YKHO.incident_edges(Ty9i, outgoing=False):\n YKHO.remove_edge(D70y)\n del Ty9i\n return WKvO",
"def AYvI(YKHO, Ty9i)... | [
"0.8512768",
"0.8261522",
"0.8213466",
"0.8197033",
"0.81630117",
"0.8136765",
"0.8002327",
"0.79815394",
"0.79699767",
"0.79553676",
"0.7944234",
"0.786519",
"0.77767164",
"0.7760892",
"0.76945",
"0.7669942",
"0.76505977",
"0.75972676",
"0.7516998",
"0.74346894",
"0.74168825... | 0.80564004 | 6 |
Calculate the estimated reward based on the action and stimuli This contains parts that are task dependent | def XZCi(YKHO, rNYq):
KOOc, bipQ = YKHO.stimulus_shaper.processStimulus(rNYq)
lQTD = YKHO._actExpectations(YKHO.expectations, bipQ)
return (lQTD, bipQ, KOOc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _KvT(YKHO, pR3T, _ins):\n return vOGg",
"def YncY(YKHO):\n if YKHO.steps_taken == kGPH:\n YKHO.reward = oyIN.finfo(oyIN.float64).min\n return YKHO.reward\n else:\n l2xT = UZpv(YKHO.sec_stage_gas.X[tKpR], YKHO.sec_stage_gas.X[rvPO], YKHO.sec_stage_gas.X[z5ml])\n c3dt = UZp... | [
"0.72764903",
"0.708671",
"0.69909364",
"0.69529057",
"0.69529057",
"0.69529057",
"0.69529057",
"0.69529057",
"0.68756944",
"0.68287045",
"0.6805432",
"0.68029046",
"0.6768382",
"0.6765981",
"0.6756292",
"0.6752677",
"0.6730435",
"0.67260474",
"0.6709327",
"0.6707969",
"0.670... | 0.6705356 | 22 |
Calculates the comparison between the reward and the expectation | def RA_F(YKHO, vOGg, lYi5, XeOP, bipQ):
YHiJ = YKHO.reward_shaper.processFeedback(vOGg, XeOP, bipQ)
RA_F = YHiJ - lYi5
return RA_F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wOT8(YKHO) -> float:\n raise NotImplementedError",
"def oe4f(YKHO):\n tb29 = YKHO.metric\n YKHO.metric = YKHO.reward_metric(YKHO.local_afford_new)\n if YKHO.metric - tb29 > 0.01:\n return 1.0\n elif YKHO.metric - tb29 < -0.01:\n return -0.5\n else:\n return -1.0\n '\... | [
"0.7492109",
"0.74377465",
"0.73950064",
"0.7377217",
"0.7331196",
"0.72981715",
"0.72935206",
"0.7290687",
"0.7266587",
"0.725824",
"0.725672",
"0.72471625",
"0.7234425",
"0.72151774",
"0.7203175",
"0.71851724",
"0.71803004",
"0.71600896",
"0.7153361",
"0.71489286",
"0.71414... | 0.7280722 | 8 |
Compute the KLdivergence between 2 multivariate gaussian distributions with diagonal covariance matrices. | def fy3N(ryEI, CIn9, WNRf=None, AhCl=None):
assert ryEI is not None, 'mu1 should not be None'
if WNRf is None:
WNRf = ht2j.zeros_like(ryEI)
if AhCl is None:
AhCl = ht2j.ones_like(ryEI)
if CIn9 is None:
CIn9 = ht2j.ones_like(ryEI)
vlV6 = ht2j.log(CIn9)
L2Pj = ht2j.log(AhCl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q1ax(azQ3, QgyP, K1Yq, oD27):\n q0Kk = WGTe(azQ3, QgyP)\n V1aF = WGTe(K1Yq, oD27)\n return ht2j.distributions.kl.kl_divergence(q0Kk, V1aF).sum(-1, keepdim=True)",
"def KSSg(ryEI, xWgp, WNRf, fuAh, KMvS=10):\n nMvt = 12\n SrbQ = oyIN.linalg.inv(xWgp)\n yfKq = oyIN.linalg.inv(fuAh)\n vRs4 ... | [
"0.75255716",
"0.70914274",
"0.6871505",
"0.67929876",
"0.6774796",
"0.6762942",
"0.6688234",
"0.66506934",
"0.660932",
"0.6602281",
"0.65703034",
"0.6556395",
"0.65553033",
"0.6530687",
"0.65274787",
"0.6520966",
"0.6491581",
"0.6472032",
"0.6469281",
"0.64656985",
"0.643784... | 0.65211576 | 15 |
Maps input value between 1 and 1 to an integer 0255, suitable for use as an RGB color code. | def YDzg(wEf2):
K785 = SlZZ(wEf2, -1, 1, 0, 255)
return int(K785) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)",
"def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)",
"def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)",
"def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K7... | [
"0.7928926",
"0.7856694",
"0.7824886",
"0.7824886",
"0.7824886",
"0.711617",
"0.70736814",
"0.6906762",
"0.6873725",
"0.6841608",
"0.68026966",
"0.6721779",
"0.65153384",
"0.6501716",
"0.6458572",
"0.6458537",
"0.64514136",
"0.6339577",
"0.6238807",
"0.6210475",
"0.62063944",... | 0.7913781 | 1 |
Calcualtes Intersection over Union (IOU) of the two list of bounding boxes | def WHLW(Bsc6, IUcw):
mr0K, V7mM, ABnd, CI8m = oyIN.split(Bsc6, 4, axis=1)
G9pH, aPH5, _2NJ, arTO = oyIN.split(IUcw, 4, axis=1)
FJ23 = oyIN.maximum(mr0K, oyIN.transpose(G9pH))
cpky = oyIN.maximum(V7mM, oyIN.transpose(aPH5))
lCRk = oyIN.minimum(ABnd, oyIN.transpose(_2NJ))
w871 = oyIN.minimum(CI8m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RjuK(pNCA, p3tS):\n \"\"\"Implement the intersection over union (IoU) between box1 and box2\n \n Arguments:\n box1 -- first box, list object with coordinates (x1, y1, x2, y2)\n box2 -- second box, list object with coordinates (x1, y1, x2, y2)\n \"\"\"\n VNcT = max(pNCA[0], p3tS[0])\n _5... | [
"0.83317494",
"0.8172607",
"0.8158332",
"0.80812305",
"0.8029706",
"0.80223465",
"0.7990268",
"0.79711384",
"0.7966542",
"0.7932073",
"0.7921765",
"0.78617305",
"0.7860432",
"0.7853801",
"0.7825596",
"0.7804903",
"0.7803605",
"0.780264",
"0.77984047",
"0.77939177",
"0.7789196... | 0.0 | -1 |
Calculates centroid of bounding box | def IBzD(FlUN):
assert isinstance(FlUN, oyIN.ndarray)
assert FlUN.shape == (4,)
o4D3, si3g, ajwV, skBL = FlUN
return (int((o4D3 + ajwV) / 2), int((si3g + skBL) / 2)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6ux(nPrm, WKvO, LVAh):\n g0Hx = oyIN.dot(WKvO, oyIN.sum(nPrm, axis=1))\n dlau = oyIN.dot(LVAh, oyIN.sum(nPrm, axis=0))\n wjRY = oyIN.sum(oyIN.sum(nPrm))\n return (g0Hx / wjRY, dlau / wjRY)",
"def uXnH(edvT, iK6n=1):\n edvT = oyIN.array(edvT) / iK6n\n WKvO = (edvT[2] + edvT[0]) / 2\n LVA... | [
"0.7971872",
"0.7752314",
"0.77276933",
"0.77147377",
"0.7655933",
"0.76537335",
"0.7620989",
"0.7571771",
"0.7553178",
"0.7506646",
"0.74752015",
"0.7473854",
"0.74598336",
"0.7458219",
"0.7441623",
"0.7420213",
"0.7407293",
"0.7395849",
"0.7388521",
"0.7377409",
"0.7377409"... | 0.7931396 | 1 |
Name of the source instance which will be cloned. | def Azqc(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'source_instance_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Azqc(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_instance_name')",
"def mWFP(YKHO):\n return jth9.deepcopy(YKHO.__name)",
"def mWFP(YKHO):\n return YKHO.original.name",
"def _9jk(YKHO) -> str:\n pass",
"def mWFP(YKHO) -> str:\n return YKHO.inst['targetname']",
"def KoHv(YKHO) -> qe4Y... | [
"0.7381404",
"0.72705716",
"0.71439326",
"0.69783443",
"0.66969156",
"0.6687535",
"0.66663814",
"0.66663814",
"0.6637561",
"0.6625745",
"0.6625745",
"0.6625745",
"0.6625745",
"0.6625745",
"0.6625745",
"0.6625745",
"0.6614494",
"0.66134477",
"0.6605074",
"0.6605074",
"0.660014... | 0.7080737 | 3 |
PEM representation of the trusted CA's x509 certificate. | def dkWm(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'ca_certificate') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DtYS(YKHO):\n return YKHO.cert.public_bytes(B5_Q.PEM)",
"def iJOI(YKHO):\n return Hm8u.load_pem_x509_certificate(bytes(YKHO.pem, 'utf-8'), Fyo1())",
"def DtYS(YKHO):\n return z50T.dump_certificate(z50T.FILETYPE_PEM, YKHO.cert)",
"def m2NI(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'pe... | [
"0.7383374",
"0.7076202",
"0.69736683",
"0.6892238",
"0.68789184",
"0.6742909",
"0.6742909",
"0.67004025",
"0.66992956",
"0.66992956",
"0.66992956",
"0.66992956",
"0.6674183",
"0.6575264",
"0.6575264",
"0.6568561",
"0.6552144",
"0.65291864",
"0.65291864",
"0.65291864",
"0.652... | 0.62264353 | 36 |
The ID of the backup run to restore from. | def p_G1(YKHO) -> qe4Y.Input[int]:
return qe4Y.get(YKHO, 'backup_run_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p_G1(YKHO) -> int:\n return qe4Y.get(YKHO, 'backup_run_id')",
"def orrc(YKHO) -> str:\n return qe4Y.get(YKHO, 'restore_id')",
"def KNdJ(YKHO):\n return YKHO._context.currentRunId().toString()",
"def id(YKHO) -> int:\n return YKHO.run_id",
"def rAwn(YKHO) -> str:\n return qe4Y.get(YKHO, '... | [
"0.8790282",
"0.7919706",
"0.78876436",
"0.7868751",
"0.74148023",
"0.71125555",
"0.707358",
"0.7059938",
"0.6923996",
"0.6918421",
"0.6918421",
"0.6759026",
"0.67011344",
"0.6696753",
"0.6696753",
"0.6696753",
"0.6696753",
"0.6696753",
"0.6675211",
"0.66561794",
"0.6654662",... | 0.8448925 | 1 |
The ID of the instance that the backup was taken from. If left empty, this instance's ID will be used. | def o_gm(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'instance_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_gm(YKHO):\n return YKHO._instance_id",
"def o_gm(YKHO):\n return YKHO._instance_id",
"def o_gm(YKHO):\n return YKHO._instance_id",
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def o_gm(YKHO) -> str:... | [
"0.81138027",
"0.81138027",
"0.81138027",
"0.8077962",
"0.8077962",
"0.8077962",
"0.8077962",
"0.8077962",
"0.8077962",
"0.8077962",
"0.804774",
"0.80362207",
"0.80232775",
"0.79149616",
"0.78947437",
"0.7854554",
"0.7844497",
"0.782137",
"0.782137",
"0.782137",
"0.782137",
... | 0.75046575 | 47 |
A set of key/value user label pairs to assign to the instance. | def O2YR(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:
return qe4Y.get(YKHO, 'user_labels') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O2YR(YKHO) -> h8nf[GySg[str, str]]:\n return qe4Y.get(YKHO, 'user_labels')",
"def O2YR(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:\n return qe4Y.get(YKHO, 'user_labels')",
"def Crrw(YKHO, BWXx: Iterable[str]):\n if not all((isinstance(mWFP, str) for mWFP in BWXx)):\n raise TypeError('Labels... | [
"0.6827719",
"0.67593527",
"0.64234054",
"0.63500065",
"0.63500065",
"0.63500065",
"0.63500065",
"0.63500065",
"0.63500065",
"0.63500065",
"0.63500065",
"0.63402855",
"0.63402855",
"0.6310156",
"0.62929785",
"0.6226508",
"0.6199563",
"0.61937845",
"0.6183018",
"0.6142135",
"0... | 0.66679186 | 2 |
The domain name for the active directory (e.g., mydomain.com). Can only be used with SQL Server. | def zrIJ(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'domain') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d1Tj(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain_name')",
"def d1Tj(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain_name')",
"def d1Tj(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain_name')",
"def d1Tj(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain_name')",
"def d1Tj(YKHO) -> str:\n return ... | [
"0.8334327",
"0.8334327",
"0.8334327",
"0.8334327",
"0.8334327",
"0.8334327",
"0.8169669",
"0.8002754",
"0.8002754",
"0.8002754",
"0.8002754",
"0.8002754",
"0.789696",
"0.7873432",
"0.7860732",
"0.7717296",
"0.7701807",
"0.7699056",
"0.7699056",
"0.7699056",
"0.7699056",
"0... | 0.0 | -1 |
Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups. | def bx0P(YKHO) -> qe4Y.Input[int]:
return qe4Y.get(YKHO, 'retained_backups') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ww6J(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'backup_retention')",
"def oC4a(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'retention')",
"def NNBD(YKHO):\n return YKHO._backup_deleted_item_retention",
"def jvGs(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'backup_retention_period')",
"de... | [
"0.7357672",
"0.66844606",
"0.6664177",
"0.66625595",
"0.6623414",
"0.66013366",
"0.6567783",
"0.65348506",
"0.65348506",
"0.65233654",
"0.6515704",
"0.6515704",
"0.64693135",
"0.64298284",
"0.64298284",
"0.6399579",
"0.6399579",
"0.6399579",
"0.6399579",
"0.6399579",
"0.6399... | 0.58343935 | 50 |
Value of the flag. | def BWXx(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'value') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wEf2(YKHO):\n return YKHO._val & 7",
"def BWXx(YKHO):\n return YKHO.val",
"def BWXx(YKHO):\n return YKHO.opts['value']",
"def baOo(YKHO):\n return YKHO.val",
"def wEf2(YKHO):\n return YKHO.__val",
"def BWXx(YKHO):\n YKHO.check_change()\n return YKHO.val",
"def xdKy(YKHO):\n ... | [
"0.76197726",
"0.74391806",
"0.7437948",
"0.73480153",
"0.7333291",
"0.73315096",
"0.73254675",
"0.73192024",
"0.73192024",
"0.7305991",
"0.7298523",
"0.7256784",
"0.71964264",
"0.71730226",
"0.71730226",
"0.7159654",
"0.7139768",
"0.71256787",
"0.7107958",
"0.7107958",
"0.70... | 0.0 | -1 |
"deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyymmdd i.e., 20201101, or mmdd, i.e., 1101 | def KhBf(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'end_date') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eiFi(YKHO) -> _c1T:\n dTBt = pYXG(YKHO._year + 1, YKHO._system) - 1\n return _c1T.fromordinal(dTBt)",
"def zAFW(FTfL, fbfF, AC5j):\n try:\n sz_R = max(1, min(12, int(fbfF)))\n except:\n sz_R = 12\n try:\n fXGn = max(1, min(31, int(AC5j)))\n except:\n fXGn = 31\n ... | [
"0.6892112",
"0.6505921",
"0.64769",
"0.6380971",
"0.6346003",
"0.62195",
"0.61085266",
"0.6067021",
"0.59878004",
"0.5946489",
"0.5916923",
"0.59151715",
"0.5890829",
"0.58688396",
"0.5866544",
"0.58367455",
"0.5813711",
"0.57669646",
"0.5759685",
"0.57231236",
"0.57147413",... | 0.5570036 | 55 |
True if Query Insights will record client address when enabled. | def _o6s(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'record_client_address') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _o6s(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'record_client_address')",
"def llJB(YKHO) -> bool:\n return qe4Y.get(YKHO, 'is_address')",
"def pgSp(YKHO):\n return YKHO.__dict__.has_key('has_addr')",
"def eAcz(YKHO):\n return True if YKHO.addr_postcode or YKHO.addr_position else False",
... | [
"0.7945101",
"0.6848955",
"0.64369893",
"0.60372734",
"0.588636",
"0.58671516",
"0.58671516",
"0.5762369",
"0.57183254",
"0.57023937",
"0.565397",
"0.565397",
"0.565397",
"0.5622455",
"0.556285",
"0.5561931",
"0.55615836",
"0.55562586",
"0.55562586",
"0.5555799",
"0.5497505",... | 0.77381504 | 1 |
A name for this whitelist entry. | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return A5Qt(YKHO._data['name'])",
"def mWFP(YKHO):\n return YKHO['name']",
"def mWFP(YKHO):\n return YKHO['name']",
"def mWFP(YKHO):\n return YKHO['name']",
"def W0tD(YKHO) -> str:\n return '_'.join([str(YKHO.entrypoint), str(YKHO.rule), str(YKHO.entrypoint)])",
"def mWFP... | [
"0.70511955",
"0.7005827",
"0.7005827",
"0.7005827",
"0.69864136",
"0.69275415",
"0.69275415",
"0.69275415",
"0.69275415",
"0.6829887",
"0.6807752",
"0.6777789",
"0.6776294",
"0.6767691",
"0.67616504",
"0.6746089",
"0.6744266",
"0.6728719",
"0.67118216",
"0.6710888",
"0.67104... | 0.0 | -1 |
A GAE application whose zone to remain in. Must be in the same region as this instance. | def Tbkf(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'follow_gae_application') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C8EO(YKHO) -> str:\n return qe4Y.get(YKHO, 'app_location')",
"def yC69(YKHO):\n return YKHO.getPeriodManager().getApplication()",
"def SCWY(YKHO):\n return YKHO._get_field('application')",
"def DVVB(YKHO):\n return YKHO._gcp_instance.get('zone')",
"def TT5f(YKHO) -> h8nf[str]:\n return q... | [
"0.6058545",
"0.58629715",
"0.5832206",
"0.5819004",
"0.58033806",
"0.5773878",
"0.57578504",
"0.57578504",
"0.575025",
"0.5725713",
"0.56697017",
"0.56697017",
"0.56697017",
"0.56697017",
"0.56697017",
"0.56230515",
"0.5621422",
"0.5605788",
"0.5605788",
"0.55940557",
"0.557... | 0.0 | -1 |
The preferred Compute Engine zone for the secondary/failover. The optional `settings.maintenance_window` subblock for instances declares a onehour | def jiWp(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'secondary_zone') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H0V3():\n return cnCo('--get-default-zone')",
"def sF0Q(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'default_availability_zone')",
"def jiWp(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'secondary_zone')",
"def lhKE(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'zone')",
"def lhKE(YKHO)... | [
"0.6884636",
"0.67301905",
"0.67095286",
"0.6577657",
"0.6577657",
"0.6569945",
"0.65627885",
"0.6455223",
"0.6455223",
"0.64239913",
"0.6416382",
"0.6416382",
"0.6416382",
"0.6416382",
"0.6416382",
"0.63811123",
"0.6308704",
"0.6276565",
"0.6276565",
"0.6276565",
"0.6276565"... | 0.62885344 | 17 |
Return a new FloatIndividual object that is a copy of the current object. Can be called using >>> import copy >>> copy.copy(FloatIndividual()) | def FzJk(YKHO):
CQdT = eZcj(YKHO.n)
CQdT.genotype = jth9(YKHO.genotype)
CQdT.fitness = YKHO.fitness
CQdT.sigma = YKHO.sigma
CQdT.last_z = jth9(YKHO.last_z)
CQdT.mutation_vector = jth9(YKHO.mutation_vector)
return CQdT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO, DVHj):\n return qG0X._FloatProperty_copy(YKHO, DVHj)",
"def jth9(YKHO):\n M_Yt = super(ORdo, YKHO).copy()\n M_Yt.cost = []\n return M_Yt",
"def FzJk(YKHO):\n return YKHO.__class__(YKHO.x, YKHO.y, YKHO.z)",
"def FzJk(YKHO):\n CQdT = yc5Y(YKHO.n, YKHO.num_discrete, YKHO.num_int... | [
"0.624442",
"0.61541593",
"0.6084715",
"0.60838234",
"0.6054654",
"0.59719247",
"0.5921144",
"0.58627313",
"0.586065",
"0.5810948",
"0.5795992",
"0.579118",
"0.5770535",
"0.5766584",
"0.5757044",
"0.57448155",
"0.57416046",
"0.5727091",
"0.5723996",
"0.571849",
"0.5713006",
... | 0.8238709 | 0 |
Return a new Individual object that is a copy of the current object. Can be called using >>> import copy >>> copy.copy(MixedIntIndividual()) | def FzJk(YKHO):
CQdT = yc5Y(YKHO.n, YKHO.num_discrete, YKHO.num_ints)
CQdT.genotype = jth9(YKHO.genotype)
CQdT.fitness = YKHO.fitness
CQdT.sigma = YKHO.sigma
CQdT.maxStepSize = YKHO.maxStepSize
CQdT.baseStepSize = YKHO.baseStepSize
CQdT.initStepSize = YKHO.initStepSize
CQdT.stepSizeOffse... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FzJk(YKHO):\n CQdT = eZcj(YKHO.n)\n CQdT.genotype = jth9(YKHO.genotype)\n CQdT.fitness = YKHO.fitness\n CQdT.sigma = YKHO.sigma\n CQdT.last_z = jth9(YKHO.last_z)\n CQdT.mutation_vector = jth9(YKHO.mutation_vector)\n return CQdT",
"def _9K6(YKHO):\n if not NArs['GENOME_OPERATIONS']:\n ... | [
"0.7528131",
"0.71489",
"0.6609564",
"0.6531389",
"0.64066035",
"0.64066035",
"0.63866246",
"0.63815075",
"0.63341635",
"0.6325519",
"0.6319373",
"0.6307353",
"0.62883025",
"0.62834555",
"0.62800604",
"0.6274259",
"0.62636477",
"0.62574464",
"0.62574464",
"0.62574464",
"0.625... | 0.8475239 | 0 |
Attend all encoder inputs conditioned on the previous hidden state of the decoder. After creating variables to store the attention energies, calculate their values for each encoder output and return the normalized values. | def KVH6(YKHO, Zode, p83V):
[bGrB, Ep8u, bGrB] = Zode.size()
tsWk = len(p83V)
qbnw = iQnE(ht2j.zeros((tsWk, Ep8u))).cuda()
for YRbF in range(tsWk):
qbnw[YRbF] = YKHO._score(Zode, p83V[YRbF])
return vuvg.softmax(qbnw, dim=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dKiU(YKHO, ZDDV: torch.Tensor=None, p83V: torch.Tensor=None, vZsB: torch.Tensor=None):\n vZsB = vZsB.float()\n Wtih = YKHO._attention(ZDDV, p83V, vZsB)\n RPQh = gnPz.weighted_sum(p83V, Wtih)\n return (RPQh, Wtih)",
"def v2uf(vkAz):\n with ZylS.variable_scope('Attention'):\n QHji = Jfky(... | [
"0.7058103",
"0.6583469",
"0.6577328",
"0.6525176",
"0.64343256",
"0.6376659",
"0.62597114",
"0.61129427",
"0.6094545",
"0.6035184",
"0.60201335",
"0.58874893",
"0.5881661",
"0.5878731",
"0.58721775",
"0.58359057",
"0.5830002",
"0.5824425",
"0.5780256",
"0.5772426",
"0.575861... | 0.628971 | 6 |
Updates the 2D map and sprites. | def QdZT(YKHO):
YKHO.map.update()
YKHO.sprites.update()
if not YKHO.map.are_tiles_moving() and YKHO.move_queue:
psNf = YKHO.move_queue.pop(0)
for BZN_ in psNf:
YKHO.map.move_tile(BZN_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.all_sprites.update()",
"def JmFt(YKHO):\n YKHO.map.draw()\n YKHO.sprites.draw()",
"def itC4():\n pass",
"def QdZT(YKHO) -> None:\n YKHO.all_sprites.update()\n YKHO.gui_elements.update()",
"def L2c2(YKHO):\n YKHO.view.fill(YKHO.bg_color)\n for map in YKHO.dunge... | [
"0.7648269",
"0.7404308",
"0.72413987",
"0.71342486",
"0.6964006",
"0.69555146",
"0.69129133",
"0.69118047",
"0.69050395",
"0.69027936",
"0.6883865",
"0.6881312",
"0.68618417",
"0.68550503",
"0.6836725",
"0.6784492",
"0.677661",
"0.67747384",
"0.6755601",
"0.67188275",
"0.670... | 0.7020085 | 4 |
Draws the 2D map and sprites. | def JmFt(YKHO):
YKHO.map.draw()
YKHO.sprites.draw() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO):\n if YKHO._vertex_list_dirty:\n YKHO.rebuild_vertices()\n YKHO._vertex_list_dirty = False\n YKHO._object_sprite_batch.draw()\n AOlJ._fx_sprite_batch.draw()\n JtkL(HjDQ)\n MFpp(YKHO.tiles_tex.target, YKHO.tiles_tex.id)\n YKHO._vertex_list.draw(gKg0)\n if YKHO._high... | [
"0.7603395",
"0.7477074",
"0.7442843",
"0.7437435",
"0.72981894",
"0.7233594",
"0.7156281",
"0.7148724",
"0.7132926",
"0.7096788",
"0.70861375",
"0.70584464",
"0.70434296",
"0.70298827",
"0.7029023",
"0.7021551",
"0.7001531",
"0.69989496",
"0.69932693",
"0.6990883",
"0.699076... | 0.8693011 | 0 |
Tests that `Snapshot.assert_match_dir` works when updating an existing snapshot. Also tests that `Snapshot` supports absolute/relative str/Path snapshot directories and snapshot paths. | def T3Q8(GvHC, HGRU, ZW5S, AdfB):
GvHC.makepyfile("\n from pathlib import Path\n\n def test_sth(snapshot):\n snapshot.snapshot_dir = {case_dir_repr}\n snapshot.assert_match_dir({{\n 'obj1.txt': 'the value of obj1.txt',\n 'subdir1': {{\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aQyA(YKHO):\n nPrm = {'this/is/a/deep/path/foo.json.gz': 'snapshot_hash'}\n Rwel = ztqF(nPrm)\n RRlC = Rwel.ls('')\n YKHO.assertEqual(['this'], RRlC)\n RRlC = Rwel.ls('this')\n YKHO.assertEqual(['this/is'], RRlC)\n RRlC = Rwel.ls('this/is')\n YKHO.assertEqual(['this/is/a'], RRlC)\n R... | [
"0.71109486",
"0.6820871",
"0.65465444",
"0.6485885",
"0.6437151",
"0.6436279",
"0.6285388",
"0.61549485",
"0.61519074",
"0.60144794",
"0.59932876",
"0.59504247",
"0.59394896",
"0.5922564",
"0.5913214",
"0.5877983",
"0.5859724",
"0.5834819",
"0.58222383",
"0.5801802",
"0.5788... | 0.8126363 | 0 |
Contains the sprite to the player bounds | def F37v(YKHO, UDHr):
if YKHO.rect.bottom > UDHr.player_bounds_rect.bottom:
YKHO.rect.bottom = UDHr.player_bounds_rect.bottom
YKHO.dy = 0.0
YKHO.falling = False
if YKHO.dx > 0:
YKHO.rect.centerx += YKHO.dx
if YKHO.rect.right - YKHO.margin_right > UDHr.player_bounds_rect.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO):\n YKHO.rect.x += YKHO.change_x\n UZ_k = a9eO.sprite.collide_rect(YKHO, YKHO.player)\n if UZ_k:\n if YKHO.change_x < 0:\n YKHO.player.rect.right = YKHO.rect.left\n else:\n YKHO.player.rect.left = YKHO.rect.right\n YKHO.rect.y += YKHO.change_y\n UZ_k... | [
"0.7106684",
"0.6823642",
"0.675117",
"0.67471594",
"0.67449194",
"0.6725245",
"0.669422",
"0.669422",
"0.6681156",
"0.6674309",
"0.6666023",
"0.66300595",
"0.66300595",
"0.6615896",
"0.66092545",
"0.6601061",
"0.65850717",
"0.65669817",
"0.6565414",
"0.6547543",
"0.65469724"... | 0.0 | -1 |
Draws the animated sprite's current frame at its current position on the screen | def JmFt(YKHO):
L3F1 = YKHO.animations[YKHO.current_animation].get_current_frame()
YKHO.screen.blit(YKHO.images[L3F1], YKHO.rect) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO, Vjhr):\n Vjhr.blit(YKHO.sprite, (YKHO.x + YKHO.w / 2 - YKHO.sprite.get_width() / 2, YKHO.y + YKHO.h / 2 - YKHO.sprite.get_height() / 2))",
"def JmFt(YKHO):\n YKHO.game.display.blit(YKHO.image, (YKHO.x, YKHO.y))",
"def JmFt(YKHO):\n YKHO.sprite.draw()",
"def JmFt(YKHO, J20S):\n J20S... | [
"0.78517973",
"0.7798375",
"0.77681994",
"0.77164876",
"0.7709553",
"0.76221704",
"0.7530497",
"0.7511587",
"0.749626",
"0.748348",
"0.7421846",
"0.7399945",
"0.7346992",
"0.73346955",
"0.7331733",
"0.732158",
"0.7272497",
"0.72224814",
"0.72221565",
"0.72216433",
"0.7203457"... | 0.7894014 | 0 |
Parse a boolean value from a string. | def JMLd(YKHO):
with YKHO.subTest(name='None'):
YKHO.assertIsNone(LOnh.parse_bool(None))
with YKHO.subTest(name='empty'):
YKHO.assertIsNone(LOnh.parse_bool(''))
with YKHO.subTest(name='true'):
YKHO.assertTrue(LOnh.parse_bool('true'))
YKHO.assertTrue(LOnh.parse_bool('True'))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lIW9(_J6_: str) -> bool:\n if _J6_.lower() in ('0', 'false'):\n return False\n if _J6_.lower() in ('1', 'true'):\n return True\n raise SWMn(f'invalid boolean string: {_J6_!r}')",
"def hYJ7(KCHu):\n KCHu = KCHu.strip().lower()\n if KCHu in ('yes', 'true', 'on', '1'):\n retu... | [
"0.8513239",
"0.8469796",
"0.83219284",
"0.82808924",
"0.82304674",
"0.81804305",
"0.8175904",
"0.81022453",
"0.8095656",
"0.8073915",
"0.80301046",
"0.79915774",
"0.79816824",
"0.7934216",
"0.7928672",
"0.7867282",
"0.78319496",
"0.782898",
"0.780696",
"0.78044325",
"0.77824... | 0.0 | -1 |
Get a deeply nested field from an arbitrary object. | def nHws(YKHO):
YEnM = YKHO.test_utils.load_sample_metadata()
Aofo = LOnh.get_entry(YEnM, 'result', 0, 'tags', 2, 'id')
YKHO.assertEqual(Aofo, '56f3cdad-8acb-46c8-bc71-aa1ded8407fb') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cYhb(YKHO, YEnM, vXX7):\n return YEnM.node.getField(vXX7)",
"def GlCY(Jyyj, YEnM):\n Mzf9 = YEnM\n AdfU = Jyyj.split('__')\n for UksD in AdfU[:-1]:\n Mzf9 = getattr(Mzf9, UksD)\n if Mzf9 is None:\n break\n try:\n return getattr(Mzf9, AdfU[-1]) if Mzf9 else None\... | [
"0.6578115",
"0.6545697",
"0.6478768",
"0.6334825",
"0.62044317",
"0.6202154",
"0.61986786",
"0.61063415",
"0.61063415",
"0.6087735",
"0.60635746",
"0.5984028",
"0.59710366",
"0.59680885",
"0.59612554",
"0.59251255",
"0.5922332",
"0.59211713",
"0.5896061",
"0.58588374",
"0.58... | 0.0 | -1 |
Convert None to an empty string. | def VuC5(BWXx: str or None) -> str:
return str(BWXx) if BWXx is not None else '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vhlU(wEf2):\n if wEf2 is None:\n return ''\n else:\n return wEf2",
"def vhlU(nPrm):\n return nPrm if nPrm is not None else ''",
"def im3y(BWXx):\n if BWXx is None:\n return 'None'\n else:\n return \"'{0}'\".format(BWXx)",
"def BSIj(d7pR):\n return d7pR if d7p... | [
"0.82595277",
"0.8111727",
"0.7889699",
"0.77969384",
"0.77458495",
"0.774382",
"0.7675994",
"0.7650238",
"0.75681233",
"0.747742",
"0.7406134",
"0.7384679",
"0.7353988",
"0.7237834",
"0.7231736",
"0.7227878",
"0.7133851",
"0.7050712",
"0.70318925",
"0.6989476",
"0.686722",
... | 0.8375746 | 0 |
Creates a MasterMind instance from a Telegram message's user and text | def sLyO(Emd4, mYSL, yv94):
ud_Z = x7_4.from_telegram_user(mYSL)
return Emd4(ud_Z, yv94) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DLKy(CBIr, l5Ny):\n uJjO = CBIr['id']\n NtEF = CBIr['username'].capitalize()\n return {'user': uJjO, 'channel': f'@{uJjO}', 'blocks': [{'type': 'section', 'text': {'type': 'mrkdwn', 'text': f'Hey *{NtEF}*! :wave:\\nAre you ready to fill out the *CT Daily Report*? \\n>{l5Ny}\\n'}}]}",
"def FIMM(YKHO,... | [
"0.6168909",
"0.6166692",
"0.59643185",
"0.5936765",
"0.5882973",
"0.58400255",
"0.5835426",
"0.5801861",
"0.57211596",
"0.57048744",
"0.56919837",
"0.56773925",
"0.56730324",
"0.56654674",
"0.5658964",
"0.5638063",
"0.5604483",
"0.56002253",
"0.5582854",
"0.55752623",
"0.555... | 0.7239194 | 0 |
Given a tensor of features, compute spatial weights as normalized total activation. Normalization parameters default to values determined experimentally to be most effective. | def Lg1B(EcVT, jzdc=2, Fg_i=2):
NI4b.set_trace()
o4sw = EcVT.sum(axis=1)
epBp = ((o4sw ** jzdc).sum(axis=(1, 2)) ** (1.0 / jzdc)).unsqueeze(1).unsqueeze(1)
return (o4sw / epBp) ** (1.0 / Fg_i) if Fg_i != 1 else o4sw / epBp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def umpk(Emd4, bySB: np.ndarray):\n return (bySB - Emd4.NORM_PARAMS['mean']) / Emd4.NORM_PARAMS['std']",
"def FWlN(WKvO):\n \"\"\"?!--> ????? This is not SoftMax \"\"\"\n return WKvO / WKvO.sum(axis=0)",
"def FWlN(WKvO):\n \"\"\"?!--> ????? This is not SoftMax \"\"\"\n return WKvO / WKvO.sum(axi... | [
"0.6691025",
"0.6564652",
"0.6564652",
"0.64421314",
"0.61702925",
"0.6152851",
"0.6150045",
"0.6146258",
"0.6109656",
"0.61056215",
"0.61034364",
"0.6039029",
"0.6027488",
"0.6026192",
"0.6022003",
"0.60117525",
"0.6002677",
"0.59759283",
"0.5970246",
"0.5955671",
"0.5931997... | 0.0 | -1 |
Returns list of columns being selected or an empty list if all columns are being selected; undefined behavior if invalid query | def V4JS(xDcj: str) -> list[str]:
e0Mq = ZbWC.compile('select (.*?)\\w*\\n?from')
kUBT = e0Mq.search(xDcj)
ZLJ_ = kUBT.group(1)
if ZLJ_ == '*':
return []
return ZLJ_.split('\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mihr(YKHO) -> Wgi7:\n raise NotImplementedError()",
"def mihr(YKHO) -> Wgi7:\n raise NotImplementedError()",
"def ToWh(YKHO):\n if YKHO._query is not None:\n return jth9.copy(YKHO._query.colnames)",
"def g4SI(YKHO):\n return YKHO.json_dict.get('selected_columns', None)",
"def UdmU(YK... | [
"0.7064764",
"0.7064764",
"0.70276564",
"0.69389725",
"0.6937324",
"0.69321036",
"0.68484586",
"0.6806136",
"0.6798404",
"0.6745275",
"0.6674074",
"0.6603015",
"0.6600107",
"0.65987545",
"0.6594878",
"0.6528132",
"0.6523421",
"0.6518956",
"0.65147376",
"0.6507675",
"0.6503469... | 0.72631884 | 0 |
Compare y_true to y_pred and return the accuracy | def aFTQ(Y8eF, aMgO):
vjyh = oyIN.sum(Y8eF == aMgO, axis=0) / len(Y8eF)
return vjyh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(Y8eF, aMgO):\n YCxY(Y8eF, aMgO)\n return oyIN.sum(Y8eF != aMgO) / Y8eF.shape[0]",
"def vjyh(Y8eF, aMgO):\n return oyIN.sum(Y8eF == aMgO) / len(Y8eF)",
"def vjyh(aMgO, LVAh):\n return ((aMgO == LVAh).float().sum() / len(LVAh)).item()",
"def vjyh(YKHO, aMgO, LVAh):\n return (aMgO.argmax... | [
"0.87664264",
"0.8761501",
"0.87567186",
"0.8604419",
"0.8501316",
"0.84404045",
"0.8413955",
"0.8355314",
"0.834614",
"0.8329094",
"0.8314211",
"0.8302461",
"0.82990515",
"0.82990515",
"0.8295549",
"0.8266033",
"0.8258526",
"0.8253632",
"0.8141644",
"0.8118092",
"0.8117209",... | 0.85266775 | 4 |
This blacklists a user joining this server even if they aren't in the server currently. | async def blacklist(YKHO, OaeV, *DW23):
RKD7 = None
if str(OaeV.message.author.guild.id) in YKHO.bot.config['log'].keys():
RKD7 = YKHO.bot.get_channel(YKHO.bot.config['log'][str(OaeV.message.guild.id)])
for CBIr in DW23:
a70H = YKHO.bot.get_user(int(CBIr))
if a70H is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def whitelist(YKHO, OaeV, *, CBIr: discord.User):\n _eu6 = str(CBIr.id)\n if _eu6 not in YKHO.bl_users:\n return await OaeV.reply(f'User `{CBIr}` has not yet been blacklisted.')\n YKHO.bl_users.remove(_eu6)\n YKHO.update_bl_users()\n await OaeV.reply(f'User `{CBIr}` has been successfull... | [
"0.7209142",
"0.7206574",
"0.7152017",
"0.69899756",
"0.68356854",
"0.6780052",
"0.6689354",
"0.6640606",
"0.6597897",
"0.6567816",
"0.656216",
"0.6552277",
"0.6452136",
"0.6407741",
"0.63721305",
"0.6340601",
"0.63019556",
"0.61666864",
"0.61622846",
"0.6133558",
"0.6130323"... | 0.6960697 | 4 |
Initializes a new MinHeap DO NOT CHANGE THIS METHOD IN ANY WAY | def FIMM(YKHO, xRjf=None):
YKHO.heap = DVR7()
if xRjf:
for Q6kx in xRjf:
YKHO.add(Q6kx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.small = s4ZP()\n YKHO.large = ZyI_()",
"def FIMM(YKHO):\n YKHO.minHeap, YKHO.maxHeap = ([], [])",
"def FIMM(YKHO):\n YKHO.minHeap = []\n YKHO.maxHeap = []",
"def FIMM(YKHO):\n YKHO.max_heap = []\n YKHO.min_heap = []\n YKHO.left = 0",
"def FIMM(YKHO):\n YKHO... | [
"0.7736791",
"0.7576142",
"0.7560883",
"0.7523308",
"0.74715275",
"0.74705845",
"0.74518555",
"0.74367696",
"0.7432826",
"0.7432099",
"0.7426444",
"0.7407989",
"0.73926884",
"0.73917973",
"0.73245233",
"0.7322512",
"0.7308547",
"0.7272232",
"0.7264965",
"0.72611827",
"0.72215... | 0.7089436 | 40 |
Setup the echoscu logging | def WWrj():
bo34 = G9jH.Logger('getscu')
DCgT = G9jH.StreamHandler()
uaPq = G9jH.Formatter('%(levelname).1s: %(message)s')
DCgT.setFormatter(uaPq)
bo34.addHandler(DCgT)
bo34.setLevel(G9jH.ERROR)
return bo34 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n XXXO(logger='info', logger_pyinsteon='debug', logger_messages='debug', logger_topics=True)",
"def Noxs():\n LSpl = G9jH.StreamHandler()\n uaPq = G9jH.Formatter('%(asctime)s %(levelname)s %(message)s')\n LSpl.setFormatter(uaPq)\n LSpl.setLevel(G9jH.INFO)\n na1r.addHandler... | [
"0.76432306",
"0.76102465",
"0.75013804",
"0.7465828",
"0.7421703",
"0.73910236",
"0.728412",
"0.7278521",
"0.7244814",
"0.72333103",
"0.72074986",
"0.7184943",
"0.7177728",
"0.71713865",
"0.71713734",
"0.71537954",
"0.7149477",
"0.71447194",
"0.7115638",
"0.7098224",
"0.7096... | 0.66570586 | 87 |
Returns whether other action space is the same or not. | def xa14(YKHO, Elif):
if not isinstance(Elif, WGiW):
return False
return (YKHO.minimum == Elif.minimum).all() and (YKHO.maximum == Elif.maximum).all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n try:\n return YKHO.action == Elif.action and YKHO.hard == Elif.hard and (YKHO.linked_action == Elif.linked_action) and (YKHO.linked_hard == Elif.linked_hard)\n except AttributeError:\n return False",
"def xa14(YKHO, Elif: Any) -> bool:\n if not isinstance(Elif, k4Es... | [
"0.6947633",
"0.68233776",
"0.6808807",
"0.6480446",
"0.64662063",
"0.645918",
"0.64431524",
"0.6413369",
"0.6406903",
"0.63937664",
"0.63880056",
"0.6367531",
"0.63571185",
"0.6352891",
"0.6348506",
"0.63418055",
"0.6339404",
"0.6322449",
"0.63172287",
"0.6309221",
"0.629698... | 0.6323917 | 17 |
Extract the operator class from the operators list. | def JoPw(YKHO, YfwU: str, S4zX: OperatorType) -> uS0y:
RJDd = YKHO.__get_operators_classes().get(S4zX)
if not RJDd:
YKHO.logger.error(f'No such operator type {S4zX}')
raise jzpk(f"Invalid operator type '{S4zX}'.")
PfiD = RJDd.get(YfwU)
if not PfiD:
YKHO.logger.error(f'No such ope... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BItw(VN2L: List[ast.stmt], Up12: Dict[str, Type[PreprocessOp]]) -> eBH2[NVAH]:\n if isinstance(VN2L, jZ4I.Call):\n kp35 = VN2L.func.id\n elif isinstance(VN2L, jZ4I.Name):\n kp35 = VN2L.id\n else:\n raise ValueError(f'Could not parse function name from expression: {VN2L!r}.')\n ... | [
"0.69466925",
"0.6460547",
"0.6390847",
"0.6379801",
"0.61732304",
"0.610584",
"0.6084193",
"0.60697687",
"0.59967804",
"0.5985883",
"0.59272116",
"0.59244853",
"0.5899636",
"0.589804",
"0.5891671",
"0.58699036",
"0.5841219",
"0.58403206",
"0.58266246",
"0.58184844",
"0.57371... | 0.5733777 | 21 |
Return a list of Paths corresponding to XDG_CONFIG_DIRS. | def BnIC() -> x1iM[GkAb]:
return n0RF('XDG_CONFIG_DIRS', [GkAb('/etc/xdg')]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M3fK():\n iIh5 = ['/etc/dwilib', '~/.config/dwilib', '.']\n Ux0P = 'dwilib.cfg'\n ckRy = [fENN(WKvO) / Ux0P for WKvO in iIh5]\n return [WKvO for WKvO in ckRy if WKvO.exists()]",
"def eUrG(YKHO):\n ck3z = Hy7s.path.split(Hy7s.path.abspath(xAKo))[0]\n mp7t = Hy7s.path.split(ck3z)[0]\n A6nx... | [
"0.83662266",
"0.8285425",
"0.8259984",
"0.8002048",
"0.7784702",
"0.77459127",
"0.76165664",
"0.75933",
"0.74795896",
"0.7422708",
"0.722791",
"0.7170007",
"0.7166182",
"0.71006334",
"0.7082513",
"0.70643014",
"0.7041497",
"0.7006155",
"0.70017827",
"0.69965565",
"0.69780254... | 0.90630305 | 0 |
Return a list of Paths corresponding to XDG_DATA_DIRS. | def ddBq() -> x1iM[GkAb]:
return n0RF('XDG_DATA_DIRS', [GkAb(pmON) for pmON in '/usr/local/share/:/usr/share/'.split(':')]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NqOI() -> x1iM[str]:\n ddBq = Hy7s.environ['XDG_DATA_DIRS'].split(':')\n Aofo = [Hy7s.path.expanduser('~/.local/share/applications')]\n for pmON in ddBq:\n Aofo.append(Hy7s.path.join(pmON, 'applications'))\n return Aofo",
"def BnIC() -> x1iM[GkAb]:\n return n0RF('XDG_CONFIG_DIRS', [GkAb... | [
"0.8696142",
"0.81281805",
"0.8045607",
"0.7695889",
"0.75417924",
"0.7489387",
"0.74375683",
"0.7404619",
"0.7294059",
"0.728327",
"0.72174066",
"0.70575875",
"0.70004064",
"0.695476",
"0.6953771",
"0.689788",
"0.6832822",
"0.68178934",
"0.68118244",
"0.6742637",
"0.6696868"... | 0.9125559 | 0 |
Converts the string into binary. | def SfpA(GIN8):
LDIG = ''
for sZqf in GIN8:
ycBG = bin(ord(sZqf))[2:]
while len(ycBG) < 7:
ycBG = '0' + ycBG
LDIG = LDIG + ycBG
return LDIG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TjFa(KCHu):\n return KCHu.encode('utf-8')",
"def TjFa(KCHu):\n return KCHu.encode('utf-8')",
"def p9Wg(KCHu):\n if HwRy.version_info[0] < 3:\n if type(KCHu) is not str:\n KCHu = KCHu.encode('utf8')\n elif type(KCHu) is str:\n KCHu = bytes(KCHu, 'utf8')\n return KCHu"... | [
"0.80837554",
"0.80837554",
"0.7894574",
"0.76603264",
"0.7580103",
"0.7565038",
"0.75059223",
"0.73619854",
"0.73540443",
"0.7308281",
"0.7240598",
"0.71487314",
"0.70791507",
"0.70723283",
"0.7063377",
"0.70042324",
"0.699878",
"0.6971829",
"0.6945368",
"0.692776",
"0.68663... | 0.0 | -1 |
Create random weights given a shape | def hSYI(ROpF, mWFP):
return ZylS.Variable(ZylS.truncated_normal(ROpF, stddev=0.1), name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UJhC(ROpF):\n if len(ROpF) == 2:\n IddF = ROpF[0]\n else:\n IddF = oyIN.prod(ROpF[1:])\n yzQ0 = ht2j.randn(ROpF, device=begE, dtype=yDqo) * oyIN.sqrt(2.0 / IddF)\n yzQ0.requires_grad = True\n return yzQ0",
"def UJhC(ROpF):\n if len(ROpF) == 2:\n IddF = ROpF[0]\n else... | [
"0.81389266",
"0.80914134",
"0.8057905",
"0.8044089",
"0.8026405",
"0.77317995",
"0.77127343",
"0.770286",
"0.7583385",
"0.74548596",
"0.73808223",
"0.7354354",
"0.73389363",
"0.72995627",
"0.7267364",
"0.72486025",
"0.724705",
"0.72459865",
"0.71789217",
"0.714016",
"0.71311... | 0.66620636 | 73 |
Return a dictionary with all keys converted from arguments | def jdSk(Csk6):
y5U5 = {'started_before': 'StartTime<', 'started_after': 'StartTime>', 'started': 'StartTime', 'ended_before': 'EndTime<', 'ended_after': 'EndTime>', 'ended': 'EndTime', 'from_': 'From'}
Aofo = {}
for G1Hx, Ty9i in Csk6.iteritems():
if G1Hx in y5U5:
Aofo[y5U5[G1Hx]] = Ty9... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kkWs(YKHO, *qIxc):\n B2fa = {}\n for d7pR in qIxc:\n for G1Hx, Ty9i in d7pR.items():\n B2fa[G1Hx] = Ty9i\n return B2fa",
"def PesF(qIxc):\n if len(qIxc) == 0:\n raise Exception('Smoothing method must be given.')\n if qIxc[0] not in EegP.methods:\n raise Exceptio... | [
"0.7482695",
"0.73638123",
"0.7284461",
"0.7122136",
"0.71193784",
"0.7073934",
"0.70622385",
"0.70147663",
"0.6936231",
"0.68710184",
"0.68194103",
"0.6797659",
"0.67770547",
"0.6742097",
"0.66803133",
"0.6623901",
"0.6595875",
"0.6593508",
"0.65853626",
"0.65853626",
"0.658... | 0.0 | -1 |
Return the number of instance resources contained in this list resource | def UHFx(YKHO):
_hkX, B2Dn = YKHO.request('GET', YKHO.uri)
return B2Dn['total'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AHWq(YKHO) -> int:\n return YKHO.resources.instance_count if YKHO.resources else None",
"def UHFx(YKHO):\n return YKHO.instances.countObjects()",
"def xHdH(YKHO) -> int:\n return len(YKHO._resources)",
"def UHFx(Emd4):\n return len(Emd4.instances)",
"def PYpf(YKHO) -> int:\n ...",
"def... | [
"0.83711845",
"0.7965915",
"0.7907688",
"0.7784637",
"0.7753083",
"0.761558",
"0.761558",
"0.74881536",
"0.74881536",
"0.74050295",
"0.7352052",
"0.7350391",
"0.7343249",
"0.7306987",
"0.7306987",
"0.7284725",
"0.72831917",
"0.72831917",
"0.7269281",
"0.7246333",
"0.7246333",... | 0.6638496 | 70 |
Mute the given participant | def KkzS(YKHO, Xu9X):
return YKHO.update(Xu9X, muted=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KkzS(YKHO):\n YKHO._connection.send('GloveMute')",
"async def toggle_mute(YKHO):\n oyg0: ESA9.DefaultPlayer = YKHO.bot.lavalink.player_manager.get(YKHO.guild.id)\n YKHO.muted = not YKHO.muted\n if YKHO.muted:\n await oyg0.set_volume(0)\n else:\n await oyg0.set_volume(YKHO.volume)... | [
"0.73281825",
"0.72559166",
"0.72032386",
"0.71390146",
"0.7130165",
"0.7125663",
"0.70796615",
"0.7065566",
"0.70282656",
"0.6992045",
"0.6930042",
"0.6923211",
"0.69107467",
"0.69000614",
"0.68963796",
"0.68963796",
"0.68963796",
"0.6888636",
"0.6881997",
"0.6818272",
"0.68... | 0.64939326 | 47 |
Return a generator of rolls. If n is given, limit the number of rolls by n. | def zeCq(YKHO, exwG=None):
if exwG is None:
exwG = FfMS
Z9rn = 0
while Z9rn < exwG:
Z9rn += 1
yield YKHO._roll() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rKSe(YKHO, exwG=None):\n if exwG is None:\n return YKHO._roll()\n return list(YKHO.rolls_gen(n=exwG))",
"def rKSe(exwG):\n return [ajWY(1, 6) for WKvO in range(exwG)]",
"def rKSe(YKHO, exwG=1):\n return list([YKHO.r for bGrB in range(exwG)])",
"def mqS_(exwG):\n return [FXSn.choice(... | [
"0.7965245",
"0.78615415",
"0.7793585",
"0.76637495",
"0.7494368",
"0.74369234",
"0.72947687",
"0.71932214",
"0.7158707",
"0.70023036",
"0.69123733",
"0.6908619",
"0.68637484",
"0.6807527",
"0.6781306",
"0.6724423",
"0.6676915",
"0.6627735",
"0.66093343",
"0.6401564",
"0.6373... | 0.8475288 | 0 |
Return the expected value of a function func with respect to the distribution of the random variable. func should be a function of one argument. | def lYi5(YKHO, JfyU):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gk5F(YKHO):\n jzdc = YKHO.value_range[0]\n Fg_i = YKHO.value_range[1]\n if YKHO.value_type == o04K.Integer:\n Ylbp = ajWY(jzdc, Fg_i)\n else:\n Ylbp = js4S(jzdc, Fg_i)\n return Ylbp",
"def whNe(eHNT, WKvO, LVAh, epBp):\n if eHNT[0] is 'x':\n return WKvO\n elif eHNT[0... | [
"0.67602",
"0.6683568",
"0.64852077",
"0.630118",
"0.62906563",
"0.628446",
"0.62099206",
"0.6177919",
"0.61639047",
"0.61417556",
"0.6092089",
"0.6089706",
"0.6089306",
"0.60670257",
"0.60663515",
"0.60575914",
"0.60531884",
"0.60420823",
"0.6026736",
"0.6025469",
"0.6005775... | 0.0 | -1 |
The maximum value of the random variable. | def max(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQ6z(YKHO):\n return YKHO._max_value",
"def JCoA() -> float:\n return 1",
"def max(YKHO):\n return YKHO._maxval",
"def max(YKHO):\n return YKHO._maxval",
"def qfB5(YKHO):\n return YKHO.max",
"def uBsB(YKHO):\n return YKHO._maxval",
"def uBsB(YKHO):\n return YKHO._maxval",
"de... | [
"0.8108964",
"0.8094585",
"0.80734175",
"0.80734175",
"0.8032648",
"0.8005732",
"0.8005732",
"0.7990973",
"0.7962929",
"0.7935695",
"0.7933271",
"0.78896683",
"0.78896683",
"0.78863907",
"0.78817546",
"0.7859563",
"0.7840667",
"0.777934",
"0.7778961",
"0.7778961",
"0.7778961"... | 0.0 | -1 |
The variance of the random variable. | def I8JS(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8JS(YKHO):\n return YKHO._rv.var()",
"def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL",
"def I8JS(YKHO):\n if YKHO.sample_count > 1:\n return YKHO.new_var / (1 - YKHO.B2 ** YKHO.sample_count)\n else:\n return YKHO.empty",
"def I8JS(YKHO):\n ... | [
"0.86138326",
"0.8568959",
"0.85256696",
"0.85107523",
"0.84771174",
"0.84330904",
"0.8420939",
"0.8345285",
"0.820063",
"0.8140093",
"0.8107162",
"0.81054157",
"0.8092687",
"0.8092687",
"0.808123",
"0.7998913",
"0.79629016",
"0.7860543",
"0.7828961",
"0.78214484",
"0.7776244... | 0.83134544 | 8 |
Return a new discrete random variable, which is the result of operator on self and other. other may be an integer, in which case we treat it as a constant random variable. | def PWxZ(YKHO, Elif, seET, mWFP):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ky76(YKHO, Elif):\n return YKHO.binary(Elif, seET.__and__, right=True)",
"def Ky76(YKHO, Elif):\n return eHpk.CURRENT.normalize(Elif) & YKHO",
"def PWxZ(YKHO, Elif, seET, mWFP):\n if isinstance(Elif, int):\n Elif = si3H(Elif)\n dBuj = Xpxm(YKHO, Elif)\n return seET(dBuj, mWFP)",
"de... | [
"0.7443266",
"0.7031927",
"0.7031784",
"0.6804373",
"0.6761698",
"0.6734536",
"0.6550974",
"0.64399934",
"0.6432646",
"0.63854146",
"0.63630205",
"0.62329143",
"0.6201718",
"0.6189836",
"0.6160645",
"0.612813",
"0.6109341",
"0.6100985",
"0.60956174",
"0.60765827",
"0.60564214... | 0.0 | -1 |
Return the expected value of a function func with respect to the distribution of the random variable. func should be a function of one argument. | def lYi5(YKHO, JfyU):
return YKHO._rv.expect(func=JfyU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gk5F(YKHO):\n jzdc = YKHO.value_range[0]\n Fg_i = YKHO.value_range[1]\n if YKHO.value_type == o04K.Integer:\n Ylbp = ajWY(jzdc, Fg_i)\n else:\n Ylbp = js4S(jzdc, Fg_i)\n return Ylbp",
"def whNe(eHNT, WKvO, LVAh, epBp):\n if eHNT[0] is 'x':\n return WKvO\n elif eHNT[0... | [
"0.67602",
"0.6683568",
"0.64852077",
"0.630118",
"0.62906563",
"0.628446",
"0.62099206",
"0.6177919",
"0.61639047",
"0.61417556",
"0.6092089",
"0.6089706",
"0.6089306",
"0.60670257",
"0.60663515",
"0.60575914",
"0.60531884",
"0.60420823",
"0.6026736",
"0.6025469",
"0.6005775... | 0.56424224 | 59 |
The maximum value of the random variable. | def max(YKHO):
return max(YKHO._rv.xk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQ6z(YKHO):\n return YKHO._max_value",
"def JCoA() -> float:\n return 1",
"def max(YKHO):\n return YKHO._maxval",
"def max(YKHO):\n return YKHO._maxval",
"def qfB5(YKHO):\n return YKHO.max",
"def uBsB(YKHO):\n return YKHO._maxval",
"def uBsB(YKHO):\n return YKHO._maxval",
"de... | [
"0.8108964",
"0.8094585",
"0.80734175",
"0.80734175",
"0.8032648",
"0.8005732",
"0.8005732",
"0.7990973",
"0.7962929",
"0.7935695",
"0.7933271",
"0.78896683",
"0.78896683",
"0.78863907",
"0.78817546",
"0.7859563",
"0.7840667",
"0.777934",
"0.7778961",
"0.7778961",
"0.7778961"... | 0.0 | -1 |
The variance of the random variable. | def I8JS(YKHO):
return YKHO._rv.var() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8JS(YKHO):\n yGTL = YKHO.expected()\n return YKHO.moment(2) - yGTL * yGTL",
"def I8JS(YKHO):\n if YKHO.sample_count > 1:\n return YKHO.new_var / (1 - YKHO.B2 ** YKHO.sample_count)\n else:\n return YKHO.empty",
"def I8JS(YKHO):\n return YKHO._variance",
"def I8JS(YKHO):\n ... | [
"0.8568959",
"0.85256696",
"0.85107523",
"0.84771174",
"0.84330904",
"0.8420939",
"0.8345285",
"0.83134544",
"0.820063",
"0.8140093",
"0.8107162",
"0.81054157",
"0.8092687",
"0.8092687",
"0.808123",
"0.7998913",
"0.79629016",
"0.7860543",
"0.7828961",
"0.78214484",
"0.7776244... | 0.86138326 | 0 |
Return a new discrete random variable, which is the result of operator on self and other. other may be an integer, in which case we treat it as a constant random variable. | def PWxZ(YKHO, Elif, seET, mWFP):
if isinstance(Elif, int):
Elif = si3H(Elif)
dBuj = Xpxm(YKHO, Elif)
return seET(dBuj, mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ky76(YKHO, Elif):\n return YKHO.binary(Elif, seET.__and__, right=True)",
"def Ky76(YKHO, Elif):\n return eHpk.CURRENT.normalize(Elif) & YKHO",
"def Ky76(YKHO, Elif: Union[int]) -> oHI2:\n return YKHO._checked_arithmetic_op_call(Elif, 'bitwise_rand', rZw9.swap(seET.__and__))",
"def Ky76(YKHO, Eli... | [
"0.7443266",
"0.7031927",
"0.6804373",
"0.6761698",
"0.6734536",
"0.6550974",
"0.64399934",
"0.6432646",
"0.63854146",
"0.63630205",
"0.62329143",
"0.6201718",
"0.6189836",
"0.6160645",
"0.612813",
"0.6109341",
"0.6100985",
"0.60956174",
"0.60765827",
"0.60564214",
"0.6005299... | 0.7031784 | 2 |
Return all the observables from all the related ObservedData objects. | def jrbA(YKHO, tfI3, XSoh='related_to'):
if XSoh == 'related_to':
yq9a = True
suQT = False
elif XSoh == 'related_from':
yq9a = False
suQT = True
elif XSoh == 'both':
yq9a = False
suQT = False
if type(tfI3) == str:
_eu6 = tfI3
else:
_eu6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fPW4(YKHO):\n fPW4 = []\n for tfI3 in YKHO.observations:\n try:\n RmfS = tfI3.refs\n except:\n RmfS = []\n for uYWe in tfI3.objects.values():\n if uYWe.type == 'file':\n for RX8a, BWXx in uYWe.hashes.items():\n fPW4.a... | [
"0.837908",
"0.7468674",
"0.7468674",
"0.70179427",
"0.6929993",
"0.6513534",
"0.6475771",
"0.6215974",
"0.62047875",
"0.6202691",
"0.6181702",
"0.6162559",
"0.61123574",
"0.60641414",
"0.6049142",
"0.5928508",
"0.5926879",
"0.5889222",
"0.5869288",
"0.5869288",
"0.5869288",
... | 0.64678276 | 7 |
Return all Sighting objects in the Environment | def TdR9(YKHO):
TdR9 = []
for rFvj in YKHO._env.query(kEyY('type', '=', 'sighting')):
if not YKHO.revoked(rFvj.sighting_of_ref):
TdR9.append(rFvj)
return TdR9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbsJ(YKHO):\n TdR9 = []\n for KCHu in YKHO._env.sightings():\n yvW5 = YKHO._env.get(KCHu.sighting_of_ref)\n for uYWe in yvW5.objects.values():\n TdR9.append(cxxA.observable.Observable(uYWe.type, uYWe.value, _id=yvW5.id, added_by=yvW5.added_by, first_seen=KCHu.first_seen, last_see... | [
"0.7299561",
"0.62804353",
"0.60626686",
"0.599751",
"0.5986981",
"0.5932363",
"0.58958626",
"0.58550495",
"0.5796559",
"0.57358736",
"0.572978",
"0.57011986",
"0.5697622",
"0.5695339",
"0.56708276",
"0.5652377",
"0.5652377",
"0.5652377",
"0.5652377",
"0.5652377",
"0.5652377"... | 0.7261856 | 1 |
Return all the observables from all the sighted ObservedData objects. Return values are threatstash.Observable objects, which contain the ObservedData id, the type and value of each Observable in the ObservedData, and the first_seen and last_seen fields from the Sighting. | def pbsJ(YKHO):
TdR9 = []
for KCHu in YKHO._env.sightings():
yvW5 = YKHO._env.get(KCHu.sighting_of_ref)
for uYWe in yvW5.objects.values():
TdR9.append(cxxA.observable.Observable(uYWe.type, uYWe.value, _id=yvW5.id, added_by=yvW5.added_by, first_seen=KCHu.first_seen, last_seen=KCHu.las... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fPW4(YKHO):\n fPW4 = []\n for tfI3 in YKHO.observations:\n try:\n RmfS = tfI3.refs\n except:\n RmfS = []\n for uYWe in tfI3.objects.values():\n if uYWe.type == 'file':\n for RX8a, BWXx in uYWe.hashes.items():\n fPW4.a... | [
"0.81688",
"0.6807183",
"0.6807183",
"0.6491402",
"0.6371899",
"0.62330776",
"0.6189318",
"0.61616164",
"0.61563057",
"0.6093578",
"0.60806626",
"0.6014945",
"0.60009104",
"0.5993405",
"0.59550965",
"0.5930134",
"0.5918141",
"0.5910813",
"0.589746",
"0.5873905",
"0.5860472",
... | 0.82881933 | 0 |
Return the Sightings for a particular ObservedData | def yOCh(YKHO, tfI3):
if YKHO.revoked(tfI3):
return False
if type(tfI3) == str:
_eu6 = tfI3
else:
_eu6 = tfI3.id
return YKHO._env.query(kEyY('sighting_of_ref', '=', _eu6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pbsJ(YKHO):\n TdR9 = []\n for KCHu in YKHO._env.sightings():\n yvW5 = YKHO._env.get(KCHu.sighting_of_ref)\n for uYWe in yvW5.objects.values():\n TdR9.append(cxxA.observable.Observable(uYWe.type, uYWe.value, _id=yvW5.id, added_by=yvW5.added_by, first_seen=KCHu.first_seen, last_see... | [
"0.684134",
"0.6104252",
"0.5977603",
"0.5542711",
"0.55053425",
"0.54748243",
"0.54594827",
"0.5436281",
"0.53668296",
"0.5339349",
"0.5294473",
"0.52545476",
"0.52529156",
"0.5237024",
"0.52335346",
"0.52314925",
"0.520691",
"0.52060556",
"0.5184983",
"0.5154927",
"0.514837... | 0.6435447 | 1 |
Return all the Observables in all the ObservedData objects in our Environment | def fPW4(YKHO):
fPW4 = []
for tfI3 in YKHO.observations:
try:
RmfS = tfI3.refs
except:
RmfS = []
for uYWe in tfI3.objects.values():
if uYWe.type == 'file':
for RX8a, BWXx in uYWe.hashes.items():
fPW4.append(cxxA.obse... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fPW4(YKHO):\n return YKHO._observables",
"def fPW4(YKHO):\n return YKHO._observables",
"def pbsJ(YKHO):\n TdR9 = []\n for KCHu in YKHO._env.sightings():\n yvW5 = YKHO._env.get(KCHu.sighting_of_ref)\n for uYWe in yvW5.objects.values():\n TdR9.append(cxxA.observable.Obser... | [
"0.7448046",
"0.7448046",
"0.71962947",
"0.69621307",
"0.66903937",
"0.660342",
"0.6269572",
"0.6259467",
"0.6258975",
"0.62048495",
"0.6137404",
"0.608887",
"0.6029816",
"0.60251987",
"0.60075223",
"0.59524477",
"0.59374416",
"0.5923286",
"0.5923286",
"0.5923286",
"0.5923286... | 0.8134174 | 0 |
Return all the ObservedData objects in our Environment | def pR3T(YKHO):
pR3T = []
for tfI3 in YKHO._env.query(kEyY('type', '=', 'observed-data')):
if not YKHO.revoked(tfI3):
pR3T.append(tfI3)
return pR3T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pR3T(YKHO):\n return YKHO.agent_manager.get_observations()",
"def fPW4(YKHO):\n fPW4 = []\n for tfI3 in YKHO.observations:\n try:\n RmfS = tfI3.refs\n except:\n RmfS = []\n for uYWe in tfI3.objects.values():\n if uYWe.type == 'file':\n ... | [
"0.71051604",
"0.68794096",
"0.6792368",
"0.6579407",
"0.65432024",
"0.65157664",
"0.6496329",
"0.6491637",
"0.6475418",
"0.6441691",
"0.6434609",
"0.64136654",
"0.6372442",
"0.6324192",
"0.63050944",
"0.6267194",
"0.6242778",
"0.6224461",
"0.62233603",
"0.6197405",
"0.616573... | 0.7280784 | 0 |
The index of refraction above the ice's valid range. | def UUXC(YKHO):
if YKHO._index_above is None:
return YKHO.layers[0].index(YKHO.layers[0].valid_range[1])
else:
return YKHO._index_above | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GhFm(YKHO, tAX0=None):\n return YKHO.relative(tAX0) - 1",
"def WfDO(YKHO, BWXx: float) -> int:\n ...",
"def FUsM(YKHO):\n if YKHO._index_below is None:\n return YKHO.layers[-1].index(YKHO.layers[-1].valid_range[0])\n else:\n return YKHO._index_below",
"def BJma(YKHO):\n retur... | [
"0.6373936",
"0.6240636",
"0.6164693",
"0.6160941",
"0.61595625",
"0.61200553",
"0.6118218",
"0.6056786",
"0.6056067",
"0.6034646",
"0.60072553",
"0.6004425",
"0.59310716",
"0.593082",
"0.58999777",
"0.58996314",
"0.5858957",
"0.5853401",
"0.58533907",
"0.5853269",
"0.5833120... | 0.6459844 | 0 |
The index of refraction below the ice's valid range. | def FUsM(YKHO):
if YKHO._index_below is None:
return YKHO.layers[-1].index(YKHO.layers[-1].valid_range[0])
else:
return YKHO._index_below | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GhFm(YKHO, tAX0=None):\n return YKHO.relative(tAX0) - 1",
"def WfDO(YKHO, BWXx: float) -> int:\n ...",
"def UUXC(YKHO):\n if YKHO._index_above is None:\n return YKHO.layers[0].index(YKHO.layers[0].valid_range[1])\n else:\n return YKHO._index_above",
"def hksT(YKHO):\n return ... | [
"0.6295655",
"0.6230358",
"0.62204856",
"0.61055547",
"0.6067626",
"0.6063884",
"0.6024773",
"0.6013151",
"0.6004027",
"0.6000334",
"0.59810007",
"0.5961272",
"0.59477",
"0.591235",
"0.5887544",
"0.58747697",
"0.58673817",
"0.58479345",
"0.5844231",
"0.583822",
"0.577154",
... | 0.6263024 | 1 |
Find coordinates of (largest) bounding box within which all images have all good pixels, meaning no NaN pixels at the data edges, no True (masked) pixels in the mask edges. Works from the outside edges and inward, so will probably miss internal NaN or masked pixels. Adapted 20200824 from mpc.mp_bulldozer.recrop_mp_imag... | def k0wn(YKHO):
Sk_F = [QJlQ.data for QJlQ in YKHO.subimages]
if not all([jzdc.shape == Sk_F[0].shape for jzdc in Sk_F]):
print(' >>>>> ERROR .trim_nans_from_subimages(): the ' + str(len(Sk_F)) + ' arrays differ in shape, but must be uniform shape.')
return None
ToOK = oyIN.sum(Sk_F, axis=0)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1GJ(VXjJ):\n usx6 = oyIN.any(VXjJ, axis=1)\n WfCS = oyIN.any(VXjJ, axis=0)\n s_8f, X17R = oyIN.where(usx6)[0][[0, -1]]\n Yd35, ZfiU = oyIN.where(WfCS)[0][[0, -1]]\n X17R += 1\n ZfiU += 1\n return [s_8f, X17R, Yd35, ZfiU]",
"def JcC1(VXjJ):\n usx6 = oyIN.any(VXjJ, axis=1)\n WfCS = ... | [
"0.71909755",
"0.7002254",
"0.6913242",
"0.67941046",
"0.66959345",
"0.65581405",
"0.6490478",
"0.64491135",
"0.64297515",
"0.6411067",
"0.64057153",
"0.63898736",
"0.63692266",
"0.6332909",
"0.63317275",
"0.63137543",
"0.6258217",
"0.62575996",
"0.62506944",
"0.62472457",
"0... | 0.68913406 | 3 |
Test that an invalid path is caught. | async def test_invalid_path(ajET: HomeAssistant) -> None:
GPtr = {'sensor': {'platform': 'folder', EZkZ: 'invalid_path'}}
assert await C3TX(ajET, 'sensor', GPtr)
assert len(ajET.states.async_entity_ids('sensor')) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yJvw(pmON):\n with trZe.raises(ValueError):\n WTcy(pmON)",
"def Cw6t(YKHO):\n JRYC = BFyu('/path/to/')\n YKHO.assertRaises(CxLt, JRYC.add, '/wrong/path/to/some/file.wav')",
"def EXwq(YKHO):\n with trZe.raises(RuntimeError):\n V66C._load_input_file('/path/does/not/exist')",
"def ... | [
"0.8001053",
"0.7759677",
"0.7736849",
"0.76673234",
"0.766715",
"0.76426786",
"0.7542184",
"0.75400543",
"0.75375193",
"0.75339735",
"0.75210404",
"0.75046134",
"0.738138",
"0.73275816",
"0.7319048",
"0.7315634",
"0.72879237",
"0.7264878",
"0.7242054",
"0.7236323",
"0.722750... | 0.715152 | 28 |
Test for a valid path. | async def test_valid_path(ajET: HomeAssistant) -> None:
if not Hy7s.path.isdir(PiBm):
Hy7s.mkdir(PiBm)
o6vr(rrVU)
ajET.config.allowlist_external_dirs = {PiBm}
GPtr = {'sensor': {'platform': 'folder', EZkZ: PiBm}}
assert await C3TX(ajET, 'sensor', GPtr)
await ajET.async_block_till_done()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JK0O(YKHO, pmON: str) -> bool:\n pass",
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def JK0O(Emd4, pmON):\n return bool(Emd4.PATH.match(pmON))",
"def Zngb(YKHO):\n YKHO.assertTrue(gnPz.valid_path('/valid/path/'))",
"def zwDd(pmON):\n if pmON is not None and pmON != -1 ... | [
"0.8658614",
"0.84214884",
"0.84214884",
"0.8393491",
"0.83460057",
"0.8324584",
"0.8324584",
"0.8275645",
"0.8000495",
"0.7994861",
"0.7951097",
"0.77989715",
"0.7769871",
"0.7754037",
"0.769814",
"0.7697946",
"0.7673975",
"0.76307493",
"0.75768363",
"0.7546158",
"0.7514854"... | 0.0 | -1 |
Various test for the str2bool template tag | def b9IU(YKHO):
YKHO.assertEqual(int(VNcL.str2bool('true')), True)
YKHO.assertEqual(int(VNcL.str2bool('yes')), True)
YKHO.assertEqual(int(VNcL.str2bool('none')), False)
YKHO.assertEqual(int(VNcL.str2bool('off')), False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V4PP(YKHO):\n YKHO.assertEqual(YQT8(False), BY_x(eoaG('elements/no.html', {})))",
"def q4YZ(YKHO):\n assert BJsk.convert_bool_str('True') is True\n return",
"def q4YZ(YKHO):\n assert BJsk.convert_bool_str('True') is True\n return",
"def V4PP(YKHO):\n YKHO.assertEqual(YQT8(True), BY_x(eo... | [
"0.6932384",
"0.682415",
"0.682415",
"0.68178225",
"0.67732257",
"0.6733372",
"0.67264974",
"0.6601484",
"0.6562983",
"0.65083385",
"0.642923",
"0.64225394",
"0.640017",
"0.6391254",
"0.6370523",
"0.63689196",
"0.63464296",
"0.6345259",
"0.634083",
"0.6336843",
"0.63348234",
... | 0.7096785 | 0 |
Test keyvalue template tag | def si6p(YKHO):
YKHO.assertEqual(VNcL.keyvalue({'a': 'a'}, 'a'), 'a') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSCX(YKHO):\n a1PO = GSRe('{% load djblets_utils %}<span{% attr \"class\" %}\\n{% if some_bool %}truthy{% endif %}\\n{% endattr %}>')\n YKHO.assertEqual(a1PO.render(cFqH({'some_bool': True})), '<span class=\"truthy\">')",
"def TY_t(YKHO, dJ1p, H5ew, BWXx):\n TZ9E = next((TZ9E for TZ9E in dJ1p if TZ... | [
"0.6318618",
"0.6213958",
"0.6195352",
"0.6097326",
"0.6006817",
"0.592769",
"0.5907297",
"0.5906805",
"0.5880304",
"0.58678246",
"0.5867703",
"0.5855073",
"0.58351725",
"0.5809565",
"0.5801042",
"0.57845455",
"0.57797956",
"0.5774619",
"0.56982565",
"0.5667523",
"0.56588197"... | 0.6803553 | 0 |
Test that an image can be renamed | def i0Lp(YKHO):
VXjJ = k2J4(YKHO.r1, 'hello.png')
YKHO.assertEqual(VXjJ, Hy7s.path.join('part_images', 'hello.png')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ykq2(YKHO):\n CgsD = YKHO._DoTestFile('22_image_name.dts')\n YKHO.assertEqual(0, CgsD)\n LNo8 = z5su.images['image1']\n IznC = bWeC.GetOutputFilename('test-name')\n YKHO.assertTrue(Hy7s.path.exists(IznC))\n LNo8 = z5su.images['image2']\n IznC = bWeC.GetOutputFilename('test-name.xx')\n Y... | [
"0.7675872",
"0.71754324",
"0.69297755",
"0.68243825",
"0.67880505",
"0.6759663",
"0.6640568",
"0.6614059",
"0.6563922",
"0.6542862",
"0.6525003",
"0.65164644",
"0.6509673",
"0.64523554",
"0.6434977",
"0.64009875",
"0.6399192",
"0.6393721",
"0.63903564",
"0.63899004",
"0.6383... | 0.7723154 | 0 |
Returns the angle (in degrees) of the straight line between firstPoint and secondPoint, 0 degrees being the second point to the right of first point. | def YylR(SZG4, PVCF):
fG1s = PVCF.x - SZG4.x
Ln29 = PVCF.y - SZG4.y
return _IXK(vwZf(Ln29, fG1s)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YMCM(YKHO, lCHq, ANJu):\n o4D3 = lCHq[0]\n si3g = lCHq[1]\n ajwV = ANJu[0]\n skBL = ANJu[1]\n Jw7X = ajwV - o4D3\n eUWA = skBL - si3g\n jzdc = epAf.degrees(epAf.atan2(eUWA, Jw7X))\n if jzdc < 0:\n jzdc = 360 + jzdc\n return jzdc",
"def TL_X(cnXz, Ijzj):\n _31T = xpeN(cnXz... | [
"0.75812554",
"0.7447752",
"0.7446725",
"0.73775685",
"0.7363143",
"0.7208536",
"0.71677905",
"0.7156378",
"0.7147253",
"0.7137012",
"0.7108443",
"0.70372903",
"0.70015466",
"0.70005727",
"0.6964975",
"0.68746436",
"0.68322057",
"0.6832167",
"0.68279725",
"0.67935324",
"0.674... | 0.8345183 | 0 |
Get the transpose of a matrix using numpy | def ol8l(SppC):
import numpy as oyIN
return oyIN.transpose(SppC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7uB(vb7U):\n return vb7U.T",
"def ol8l(SppC):\n return SppC.T",
"def ol8l(SppC):\n return SppC.T",
"def ol8l(SppC):\n return SppC.transpose()",
"def ol8l(SppC):\n return SppC.transpose()",
"def __Sz(vb7U):\n return oyIN.transpose(vb7U)",
"def H2DR(SppC):\n t2_1 = [[SppC[r845][... | [
"0.87864995",
"0.87190586",
"0.87190586",
"0.8671196",
"0.8671196",
"0.81631345",
"0.80316234",
"0.7989012",
"0.797314",
"0.7955388",
"0.7939111",
"0.7889028",
"0.78626776",
"0.7859033",
"0.78483564",
"0.78483564",
"0.7835178",
"0.7829473",
"0.7818014",
"0.77670467",
"0.77625... | 0.85906154 | 5 |
Decorator that wraps functions and forces authentication | def NLCy(JfyU):
def GDMi(*qIxc, **B2fa):
if xzCw(QePW.json):
return JfyU(*qIxc, **B2fa)
else:
return eTsH(403)
return GDMi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IspK(m2Zb):\n\n def h3Xc(YKHO, *qIxc, **B2fa):\n if YKHO.authenticated:\n return m2Zb(YKHO, *qIxc, **B2fa)\n YKHO.login()\n if not YKHO.authenticated:\n raise e9nV('Unable to call authenticated function: automatic logon failed')\n return m2Zb(YKHO, *qIxc, **... | [
"0.83591044",
"0.79253995",
"0.78714764",
"0.77823555",
"0.7781898",
"0.77779865",
"0.7671752",
"0.7630037",
"0.7626264",
"0.7599385",
"0.75844777",
"0.7583637",
"0.75368834",
"0.7506193",
"0.74889576",
"0.7474475",
"0.7473074",
"0.746913",
"0.74656045",
"0.7451451",
"0.74492... | 0.707042 | 62 |
If there was found to be improper punctuation at the end of the name string, clean it off. | def Q03I(kUBT):
if not kUBT or len(kUBT.groups()) < 3:
return kUBT
return kUBT.groups()[0] + kUBT.groups()[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lAyY(c9ua):\n mWFP = c9ua\n while True:\n bXJE = -1\n YA4P = -1\n if '\"' in mWFP and mWFP.find('\"') != mWFP.rfind('\"'):\n bXJE = mWFP.find('\"')\n YA4P = bXJE + 1 + mWFP[bXJE + 1:].find('\"')\n if '(' in mWFP and ')' in mWFP and (mWFP.find('(') < mWFP.... | [
"0.7607457",
"0.75702095",
"0.75606287",
"0.7482333",
"0.7405591",
"0.7354949",
"0.7324607",
"0.72733045",
"0.72531193",
"0.71392417",
"0.7137009",
"0.7100238",
"0.70970273",
"0.7089859",
"0.70552844",
"0.70059234",
"0.6990008",
"0.6972147",
"0.69446665",
"0.6932619",
"0.6929... | 0.0 | -1 |