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 resource policy for a station | def xKe6(YKHO, zW8g):
return YKHO._stations_service.get_station_resource_policy(zW8g) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cF5n(YKHO, zW8g, Sm0N):\n return YKHO._stations_service.get_station_lz_resource_policy(zW8g, Sm0N)",
"def QEFN(YKHO, zW8g, n10L):\n return YKHO._stations_service.get_station_user_resource_policy(zW8g, n10L)",
"def noJG(YKHO, zW8g, d9OY):\n return YKHO._stations_service.get_station_role_resource_po... | [
"0.7137783",
"0.68996143",
"0.65437603",
"0.64618856",
"0.6394285",
"0.62970984",
"0.62638164",
"0.6257891",
"0.6249871",
"0.6249871",
"0.6163805",
"0.6138999",
"0.6137637",
"0.601811",
"0.601811",
"0.5977792",
"0.59732735",
"0.59732735",
"0.59732735",
"0.59601575",
"0.595981... | 0.8375346 | 0 |
Returns the user's calculated (or effective) resource policy in the station. | def mSB0(YKHO, zW8g):
return YKHO._stations_service.get_self_resource_limits(zW8g) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QEFN(YKHO, zW8g, n10L):\n return YKHO._stations_service.get_station_user_resource_policy(zW8g, n10L)",
"def Qabx(YKHO) -> qe4Y.Output['outputs.ServicePolicy']:\n return qe4Y.get(YKHO, 'policy')",
"def Qabx(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'policy')",
"def Qabx(YKHO) -> qe4Y.Out... | [
"0.69573486",
"0.6920247",
"0.6906621",
"0.6906621",
"0.6906621",
"0.6848408",
"0.6824488",
"0.67560124",
"0.66650236",
"0.66650236",
"0.66650236",
"0.66113013",
"0.66027576",
"0.66027576",
"0.65952986",
"0.65764415",
"0.65764415",
"0.6349191",
"0.6294199",
"0.6294199",
"0.62... | 0.0 | -1 |
Gets the resource policy for a station user. | def QEFN(YKHO, zW8g, n10L):
return YKHO._stations_service.get_station_user_resource_policy(zW8g, n10L) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xKe6(YKHO, zW8g):\n return YKHO._stations_service.get_station_resource_policy(zW8g)",
"def L0Qz(YKHO, QpfX, id):\n geh0 = YKHO.dns_manager.get_sp_policy(QpfX, id)\n return geh0",
"def cF5n(YKHO, zW8g, Sm0N):\n return YKHO._stations_service.get_station_lz_resource_policy(zW8g, Sm0N)",
"def Qab... | [
"0.75928956",
"0.6324284",
"0.63131595",
"0.6269006",
"0.6251828",
"0.62097424",
"0.6201756",
"0.6140907",
"0.6137804",
"0.61294985",
"0.60993993",
"0.60781956",
"0.60781956",
"0.6061294",
"0.60529894",
"0.5937276",
"0.5937276",
"0.59300405",
"0.59284604",
"0.5907746",
"0.589... | 0.83362406 | 0 |
Gets the resource policy for a station role. | def noJG(YKHO, zW8g, d9OY):
return YKHO._stations_service.get_station_role_resource_policy(zW8g, d9OY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xKe6(YKHO, zW8g):\n return YKHO._stations_service.get_station_resource_policy(zW8g)",
"def cF5n(YKHO, zW8g, Sm0N):\n return YKHO._stations_service.get_station_lz_resource_policy(zW8g, Sm0N)",
"def QEFN(YKHO, zW8g, n10L):\n return YKHO._stations_service.get_station_user_resource_policy(zW8g, n10L)"... | [
"0.7808498",
"0.6741654",
"0.67381155",
"0.6363718",
"0.61435103",
"0.6060915",
"0.60048324",
"0.59662515",
"0.5936198",
"0.5916579",
"0.5856011",
"0.5811339",
"0.5811339",
"0.5806208",
"0.5722528",
"0.56213796",
"0.56213796",
"0.56213796",
"0.56205785",
"0.56205785",
"0.5620... | 0.8424791 | 0 |
Gets the resource policy for a station lz. | def cF5n(YKHO, zW8g, Sm0N):
return YKHO._stations_service.get_station_lz_resource_policy(zW8g, Sm0N) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xKe6(YKHO, zW8g):\n return YKHO._stations_service.get_station_resource_policy(zW8g)",
"def QEFN(YKHO, zW8g, n10L):\n return YKHO._stations_service.get_station_user_resource_policy(zW8g, n10L)",
"def OcoU(YKHO, QTBn):\n return YKHO.policy[QTBn]",
"def noJG(YKHO, zW8g, d9OY):\n return YKHO._sta... | [
"0.79656065",
"0.6517987",
"0.64155436",
"0.63686657",
"0.62979114",
"0.6194501",
"0.6194501",
"0.6139178",
"0.61108494",
"0.6098003",
"0.6068526",
"0.6058087",
"0.6056583",
"0.5989978",
"0.59861773",
"0.5925483",
"0.5833428",
"0.58309436",
"0.58218074",
"0.58218074",
"0.5804... | 0.83841497 | 0 |
Returns the user's calculated (or effective) resource policy for this particular lz in a station | def Pcrb(YKHO, zW8g, Sm0N):
return YKHO._stations_service.get_station_lz_resource_limits(zW8g, Sm0N) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cF5n(YKHO, zW8g, Sm0N):\n return YKHO._stations_service.get_station_lz_resource_policy(zW8g, Sm0N)",
"def QEFN(YKHO, zW8g, n10L):\n return YKHO._stations_service.get_station_user_resource_policy(zW8g, n10L)",
"def xKe6(YKHO, zW8g):\n return YKHO._stations_service.get_station_resource_policy(zW8g)"... | [
"0.7087221",
"0.64218205",
"0.6379272",
"0.6182093",
"0.6135923",
"0.6116134",
"0.61025643",
"0.61025643",
"0.61025643",
"0.6001296",
"0.6000483",
"0.5991274",
"0.59892267",
"0.58904797",
"0.58904797",
"0.58297974",
"0.58109313",
"0.58109313",
"0.58109313",
"0.578706",
"0.578... | 0.50424963 | 76 |
Returns the number of rows. | def jOFs(YKHO, _AKB: QtModelIndex=TWH2.QModelIndex()) -> int:
if _AKB.isValid():
return 0
return len(YKHO.articles) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWGE(YKHO) -> int:\n ...",
"def DR2N(YKHO) -> int:\n return len(YKHO.rows)",
"def DR2N(YKHO) -> int:\n return len(YKHO.rows)",
"def NwL4(YKHO):\n return len(YKHO.rows)",
"def _1Ox(YKHO):\n return YKHO._num_rows",
"def NwL4(YKHO):\n return len(YKHO.rows)",
"def SWGE(YKHO):\n ret... | [
"0.9179639",
"0.8805268",
"0.8805268",
"0.88044053",
"0.87689143",
"0.87461436",
"0.87428755",
"0.865783",
"0.85970724",
"0.8554916",
"0.84820026",
"0.8481867",
"0.8478176",
"0.8426226",
"0.8415246",
"0.83838",
"0.82410043",
"0.8194653",
"0.81584185",
"0.8157642",
"0.8137413"... | 0.0 | -1 |
Returns data about an index. | def nPrm(YKHO, d6pt: QtModelIndex, LmAn: int=0):
if not d6pt.isValid():
return None
l3QS: wHLq = d6pt.internalPointer()
if LmAn in (TWH2.Qt.DisplayRole, TWH2.Qt.ToolTipRole):
if d6pt.column() == 0:
return l3QS.title
if d6pt.column() == 1:
return l3QS.author
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO):\n return dict(data='index')",
"def d6pt(YKHO):\n return YKHO._data.get('index')",
"def Vn7Z(YKHO):\n with open(YKHO.index_path, 'r') as eHNT:\n return qQXR.load(eHNT)",
"def bFm_(YKHO):\n QePW = Xqgu.Request('GET', '/metadata/index_stats')\n return (QePW, gpan.parse_json... | [
"0.76539904",
"0.7606017",
"0.7443384",
"0.7309301",
"0.7210231",
"0.7181145",
"0.71791136",
"0.71590286",
"0.7089561",
"0.7078052",
"0.70224214",
"0.70119",
"0.7006514",
"0.6936691",
"0.6928603",
"0.68539524",
"0.68040735",
"0.68040735",
"0.68040735",
"0.68040735",
"0.680407... | 0.0 | -1 |
Update a Review object. Raise 404 error if review_id is not linked to a Review, 400 if the request body is not valid JSON data. Return Review dictionary with status code 200 otherwise. | def xnEA(oOW1):
fZOT = QePW.get_json()
if fZOT is None:
eTsH(400, {'message': 'Not a JSON'})
YEnM = S8SU.get(E1cg, oOW1)
if YEnM is None:
eTsH(404)
for G1Hx, Ty9i in fZOT.items():
if G1Hx not in ['id', 'user_id', 'place_id', 'created_at', 'updated_at']:
setattr(YE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xnEA(oOW1):\n gmRc = S8SU.get(E1cg, oOW1)\n if gmRc:\n h_69 = QePW.get_json()\n if not h_69:\n return (pz3A({'error': 'Not a JSON'}), 400)\n for H5ew, BWXx in h_69.items():\n setattr(gmRc, H5ew, BWXx)\n gmRc.save()\n return (pz3A(gmRc.to_dict()), 2... | [
"0.82450074",
"0.82270336",
"0.8185605",
"0.7904952",
"0.7187071",
"0.6835401",
"0.6708264",
"0.6448361",
"0.6329704",
"0.6321135",
"0.6019502",
"0.6008733",
"0.59540486",
"0.59440637",
"0.58708715",
"0.58403367",
"0.57342505",
"0.57078063",
"0.5680967",
"0.56521666",
"0.5621... | 0.78249574 | 4 |
Create a block with the given ID and return it. | def wWP1(YKHO, lhy8):
if 'ordinal' not in lhy8 and 'name' in lhy8:
for VVMx, RMvl in YKHO.config.get('ordinals', {}).items():
if isinstance(RMvl, str):
if lhy8['name'] == RMvl:
lhy8['ordinal'] = VVMx
break
elif 'instance' not in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GFeb(EmUK: World, yetk: str, WKvO: int, LVAh: int, *qIxc):\n yetk = GigA[yetk]\n if yetk == 'mystery_empty':\n XkN1 = Fg7c()\n elif yetk == 'mystery_coin':\n XkN1 = Fg7c(drop='coin', drop_range=(3, 6))\n elif yetk == 'bounce_block':\n XkN1 = aKyq()\n elif yetk == 'flag':\n ... | [
"0.70892054",
"0.6922745",
"0.6734681",
"0.67146844",
"0.6691439",
"0.66598445",
"0.6569314",
"0.6507948",
"0.6451737",
"0.6438023",
"0.64173955",
"0.631916",
"0.6271522",
"0.6259364",
"0.6188753",
"0.61676276",
"0.6142407",
"0.61034083",
"0.60966974",
"0.60704386",
"0.606842... | 0.6633076 | 6 |
Performs a bulk update of properties. Issues only one changed event for the entire update. | def nSyy(YKHO, hkxX):
with YKHO._change_lock:
for QWcs, BWXx in hkxX.items():
if QWcs in YKHO.__properties__:
setattr(YKHO, QWcs, BWXx)
else:
YKHO._props[QWcs] = BWXx
YKHO.changed()
YKHO.PropertiesChanged(YKHO.INTERFACE, hkxX, []) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YwRA(YKHO, hst7):\n for kGT0 in hst7:\n YKHO.update_object_properties(kGT0)",
"def Oud5(YKHO, T3PT):\n J4jQ = {ai9l.name: ai9l for ai9l in YKHO.get_field_types()}\n for mWFP, wEf2 in T3PT.items():\n ai9l = J4jQ[mWFP]\n if ai9l.is_parameter():\n H5ew = 'value'\n ... | [
"0.66578263",
"0.6543413",
"0.6513449",
"0.64142585",
"0.64012647",
"0.6382263",
"0.6328527",
"0.6231375",
"0.6205191",
"0.6145095",
"0.6109039",
"0.6012963",
"0.5999936",
"0.5995834",
"0.59565485",
"0.5932615",
"0.58797646",
"0.5834851",
"0.5812164",
"0.57771397",
"0.5743388... | 0.58494425 | 17 |
Opens a new database connection if there is none yet for the current application context. | def GGod():
if not hasattr(Oa1e, 'mongo_db'):
Oa1e.db = z22G()
return Oa1e.db | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db",
"def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)",
"def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)",
"def W... | [
"0.77379817",
"0.75827783",
"0.731633",
"0.716833",
"0.702289",
"0.6965276",
"0.6953964",
"0.6948672",
"0.68981296",
"0.68425506",
"0.6828195",
"0.6819551",
"0.68043447",
"0.67949706",
"0.67684644",
"0.6760031",
"0.675094",
"0.6747081",
"0.67314476",
"0.66986555",
"0.668763",... | 0.0 | -1 |
List available deep learning sentiment analysis models. | def ltZG():
return ['fast-text', 'hierarchical', 'bahdanau', 'luong', 'bidirectional', 'bert', 'entity-network'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j0Fd(Emd4) -> x1iM[sWYP]:\n DTMN = []\n C3ST = sWYP(pretrained_model_name='tts_en_radtts_aligner', location='https://api.ngc.nvidia.com/v2/models/nvidia/nemo/tts_en_radtts_aligner/versions/ARPABET_1.11.0/files/Aligner.nemo', description='This model is trained on LJSpeech sampled at 22050Hz with and can b... | [
"0.68529797",
"0.6511286",
"0.6198815",
"0.6003524",
"0.58048916",
"0.5759036",
"0.57087564",
"0.5695869",
"0.56604546",
"0.5656096",
"0.5618853",
"0.55990726",
"0.5555275",
"0.5535813",
"0.5522266",
"0.5472041",
"0.54421264",
"0.54421264",
"0.54421264",
"0.54421264",
"0.5425... | 0.659194 | 1 |
This function performs our backward pass and updates our gradients | def fIbT(dxS6):
Aak1 = ZylS.train.get_or_create_global_step()
ZylS.summary.scalar('Total_Loss', dxS6)
V0yp = int(vPBo.epoch_size / vPBo.batch_size * 75)
k3tV = ZylS.train.cosine_decay_restarts(vPBo.learning_rate, Aak1, V0yp)
y7GR = ZylS.contrib.opt.NadamOptimizer(learning_rate=k3tV, beta1=vPBo.beta1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZD5u(YKHO, ICX2):\n pass",
"def ZD5u(YKHO, ICX2):\n pass",
"def ZD5u(YKHO, ICX2):\n raise NotImplementedError()",
"def Xnhd(YKHO, input: np.ndarray, jHhP: Dict[str, np.ndarray]) -> oyIN.ndarray:\n raise NotImplementedError",
"def ZD5u(YKHO):\n ICX2 = MrDr\n return ICX2",
"def ZD5u(Y... | [
"0.8300835",
"0.8300835",
"0.813848",
"0.78645897",
"0.78537637",
"0.78537637",
"0.7841489",
"0.7801662",
"0.77778167",
"0.7776895",
"0.7717503",
"0.76866966",
"0.768577",
"0.7681438",
"0.7671628",
"0.76125723",
"0.76096076",
"0.7601533",
"0.7591049",
"0.75710464",
"0.7567065... | 0.0 | -1 |
allows the editing of a post as long as the active user is the post creator or admin | def BIDy(XJob, Ii1o):
wr44 = T97t.query.get(Ii1o)
L03z = L39s(QePW.form)
if QePW.method == 'POST' and c5ow.uid == wr44.uid:
if L03z.validate():
if wr44.name != L03z.name.data or wr44.text != L03z.desc.data:
CUeY = wr44.name
wr44.name = L03z.name.data
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yGM4(QePW, m8z6):\n CBIr = QePW.user\n AM55 = EC7F = False\n if CBIr.is_authenticated():\n if CBIr == m8z6.author:\n EC7F = AM55 = True\n elif CBIr.is_moderator or CBIr.is_staff:\n AM55 = True\n m8z6.is_editable = AM55\n m8z6.has_ownership = EC7F\n return m... | [
"0.80510914",
"0.72609615",
"0.7226267",
"0.71686494",
"0.71497864",
"0.71302485",
"0.70795995",
"0.7057716",
"0.7032421",
"0.6998917",
"0.69817406",
"0.69667983",
"0.69324255",
"0.689023",
"0.6886989",
"0.68172026",
"0.67966056",
"0.6777565",
"0.6759076",
"0.67485136",
"0.67... | 0.6869949 | 15 |
allows the editing of a post as long as the active user is the post creator or admin | def qKKT(XJob, Ii1o, iIih):
aM_I = jY1u.query.get(iIih)
L03z = rGVl(QePW.form)
if QePW.method == 'POST' and c5ow.uid == aM_I.uid:
if L03z.validate():
if aM_I.text != L03z.text.data:
aM_I.text = L03z.text.data
pths.session.commit()
Dwep('Com... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yGM4(QePW, m8z6):\n CBIr = QePW.user\n AM55 = EC7F = False\n if CBIr.is_authenticated():\n if CBIr == m8z6.author:\n EC7F = AM55 = True\n elif CBIr.is_moderator or CBIr.is_staff:\n AM55 = True\n m8z6.is_editable = AM55\n m8z6.has_ownership = EC7F\n return m... | [
"0.8052066",
"0.72612363",
"0.72258705",
"0.71685565",
"0.7149761",
"0.71297675",
"0.7078617",
"0.70570725",
"0.7032085",
"0.6998435",
"0.69808286",
"0.69673204",
"0.69330925",
"0.68888074",
"0.6885943",
"0.6869112",
"0.68170947",
"0.6795856",
"0.6777252",
"0.67587143",
"0.67... | 0.0 | -1 |
Create new product, from provided dict. | def SnVS(CPe3, yCF_):
if not isinstance(CPe3, dict):
raise ValueError(f'New product {CPe3} is not a dict')
bVmN = c0_m(serial_number=CPe3['serial_number'], type_name=CPe3['type_name'], owner_name=yCF_, product_condition=CPe3['product_condition'] == 'true', model=CPe3['model'], producent=CPe3['producent'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)",
"def jG8h(Emd4, fK8P):\n return Emd4(**fK8P)",
"def eLpg(Emd4, **B2fa):\n geh0 = Emd4.get_client().create_product(**B2fa)\n Qfqq = Emd4._flatten_object_details(geh0)\n return Emd4(**Qfqq)",
"def i... | [
"0.71715415",
"0.71715415",
"0.65444577",
"0.65245855",
"0.6505505",
"0.643091",
"0.64308983",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",
"0.6385321",... | 0.6412352 | 7 |
Set a minimum relative uncertainty for the HirexSr signals. | def K3aE(Gaon, gwAu=0.05):
xRT4 = Gaon.std_y / Gaon.y <= 0.05
Gaon.std_y[xRT4] = 0.05 * Gaon.y[xRT4]
if Gaon.s / Gaon.m <= 0.05:
Gaon.s = 0.05 * Gaon.m
Gaon.std_y_norm = Zxt2.sqrt((Gaon.std_y / Gaon.m) ** 2.0 + (Gaon.y / Gaon.m * (Gaon.s / Gaon.m)) ** 2.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OlT9(YKHO, LWLc):\n YKHO.__min_confidence = LWLc",
"def PIpR(YKHO, WKvO):\n WKvO = float(WKvO)\n if YKHO.Ec_min != WKvO:\n YKHO.Ec_min = WKvO\n YKHO.Ec[0] = WKvO",
"def hzkW(YKHO, ESzh):\n YKHO.uncertainty = ESzh",
"def B9Wo(YKHO):\n Zrch = YKHO.low_sigma_clip.text()\n if ... | [
"0.6703387",
"0.63027465",
"0.6177287",
"0.5665198",
"0.56195945",
"0.56136763",
"0.55630547",
"0.55627656",
"0.555593",
"0.555593",
"0.54854083",
"0.54678583",
"0.54263455",
"0.5422868",
"0.54227537",
"0.5412941",
"0.5385455",
"0.5342574",
"0.53386",
"0.53296685",
"0.5296957... | 0.69471943 | 0 |
Returns a filtered list of transactions. You must provide at least one of the available filter criteria to filter transactions. Filters are additive (similar to SQL AND), for example if you provide both account_ids and payment_order_ids then transactions will be returned that match both criteria. Within each filter fie... | def iImH(YKHO, k0gR: List[str]=None, B1ZO: List[str]=None, ZGPE: List[str]=None, XSoh: TransactionDirection=None, kL40: List[TransactionStatus]=None, GSt9: Dict[str, datetime]=None, wv2m: Dict[str, datetime]=None, sfRE: Dict[str, datetime]=None, H5vl: Dict[str, str]=None, DeLa: List[TransactionOrderBy]=None) -> XASE:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HkQT(YKHO, pw_q: Optional[date]=None, UHFx: int=1000, vgXP: int=0, wSAN: bool=False) -> x1iM[T74E]:\n return YKHO.session.get_transactions(YKHO.account_id, options={'since': pw_q, 'count': UHFx, 'offset': vgXP, 'include_pending': wSAN})",
"def HkQT(YKHO):\n gQVK = []\n for iSrC in range((Q9dT.args.s... | [
"0.65789837",
"0.6551348",
"0.6524975",
"0.643697",
"0.63870436",
"0.63828325",
"0.6184074",
"0.6104861",
"0.60844904",
"0.6030461",
"0.6005945",
"0.59506714",
"0.58950776",
"0.5889965",
"0.5830454",
"0.58221173",
"0.5817953",
"0.5797632",
"0.57867986",
"0.5762698",
"0.576108... | 0.6810662 | 0 |
Returns path relative to dir. | def PsRC(pmON, dir='.'):
Hn_k = Hy7s.path.abspath(Hy7s.path.normpath(pmON))
EgUb = Hy7s.path.abspath(Hy7s.path.normpath(dir))
if Hn_k == EgUb:
return Hy7s.curdir
V4CJ = Hy7s.path.commonprefix((Hn_k, EgUb))
DttN = EgUb[len(V4CJ):]
if len(DttN) == 0:
return pmON
if DttN.startsw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NE63(dir, Zg0d):\n if dir[-1] == '/' or dir[-1] == ':':\n return Zg0d[len(dir):]\n else:\n return Zg0d[len(dir) + 1:]",
"def dir(YKHO) -> str:\n return f'{Hy7s.path.dirname(YKHO.path)}/'.lstrip('/')",
"def NE63(pmON):\n AdfU = wT7m(pmON)\n if len(AdfU) <= 1:\n return Hy7... | [
"0.73512733",
"0.7256607",
"0.70581496",
"0.7025892",
"0.7023596",
"0.6984552",
"0.69707996",
"0.6943182",
"0.69392395",
"0.68329155",
"0.6819966",
"0.6805251",
"0.6773979",
"0.6750591",
"0.6749946",
"0.6705201",
"0.6704479",
"0.6677323",
"0.6668318",
"0.66661364",
"0.6627059... | 0.7438515 | 0 |
Round num to sf sig figs and format compactly; arbitrary precision if sf = 0 | def _z_n(mLGw, UH90=0):
KCHu = []
UET8 = 0
vdpR = -1
for WKvO in str(mLGw):
if WKvO == '.':
vdpR = len(KCHu)
continue
if UET8 == 0 and vdpR < 0 and (WKvO == '0'):
continue
KCHu.append(WKvO)
if WKvO != '-' and (WKvO != '0' or UET8 > 0):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dwrf(mLGw, aHc2):\n if mLGw != 0:\n return str(round(mLGw, -int(epAf.floor(epAf.log10(abs(mLGw))) - (aHc2 - 1))))\n else:\n return str(0.0)",
"def dwrf(mLGw, aHc2):\n if mLGw != 0:\n return str(round(mLGw, -int(epAf.floor(epAf.log10(abs(mLGw))) - (aHc2 - 1))))\n else:\n ... | [
"0.73041683",
"0.73041683",
"0.71902955",
"0.6843492",
"0.65107745",
"0.6475131",
"0.6462869",
"0.62252724",
"0.60651004",
"0.59419686",
"0.5824121",
"0.5783638",
"0.5775254",
"0.57725984",
"0.57562655",
"0.57537854",
"0.5735119",
"0.5697799",
"0.5692649",
"0.56849295",
"0.56... | 0.6751082 | 4 |
Fills the accumulator with zero values, based on the shape of the given weights. | def z7i3(YKHO, _mSQ):
if YKHO.value is None:
if isinstance(_mSQ, list):
YKHO.value = list()
for YRbF in range(0, len(_mSQ)):
YKHO.value.append(oyIN.zeros_like(_mSQ[YRbF]))
else:
YKHO.value = oyIN.zeros_like(_mSQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lfj2(YKHO):\n gnPz.raiseNotDefined()\n return",
"def i7WW(yzQ0):\n ROpF = yzQ0.shape\n if len(ROpF) == 4:\n YRbF, z1Rg, P6bq, Ty9i = ROpF\n G1Hx = oyIN.sqrt(6 / (YRbF * P6bq * Ty9i + z1Rg * P6bq * Ty9i))\n yzQ0.data.uniform_(-G1Hx, G1Hx)\n elif len(ROpF) == 2:\n G1H... | [
"0.6747005",
"0.65881675",
"0.656351",
"0.6509806",
"0.6401679",
"0.61936784",
"0.61487097",
"0.61451656",
"0.61346465",
"0.6079333",
"0.6079333",
"0.60078335",
"0.60078335",
"0.60078335",
"0.59733015",
"0.59696776",
"0.595237",
"0.5928644",
"0.5926054",
"0.5923076",
"0.58934... | 0.8440121 | 0 |
Fetches the injectable parameter names of parameters to the given method, along with a set of parameters which have default values and should be considered optional dependencies. This method will throw InjectionError if the method provided has arguments that are not POSITIONAL_OR_KEYWORD or KEYWORD_ONLY. If the method ... | def _gRl(eHNT, SpT5=False):
il7b = []
wON3 = set()
NArs: x1iM = []
if not tq_1.ismethod(eHNT) and SpT5 and (not tq_1.isfunction(eHNT)):
return ([], set())
hkS8 = Qs5W.for_method(eHNT)
assert hkS8 is not None
if hkS8.has(A_Eo.PARAMS):
NArs = YWvJ(list, hkS8.get(A_Eo.PARAMS))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DGqa(Emd4, *qIxc, **B2fa):\n wEsz = tq_1.signature(Emd4.__init__)\n bHvy = wEsz.parameters.get('self')\n rosz = list(wEsz.parameters.values())\n rosz.remove(bHvy)\n wEsz = wEsz.replace(parameters=rosz)\n doTl = wEsz.bind_partial(*qIxc, **B2fa)\n doTl.apply_defaults()\n return doTl.argum... | [
"0.5747912",
"0.55833083",
"0.5566967",
"0.5376236",
"0.5150334",
"0.5149961",
"0.5107904",
"0.5066509",
"0.50581443",
"0.5034733",
"0.49593595",
"0.49587607",
"0.492701",
"0.49034765",
"0.4865419",
"0.4864978",
"0.48638812",
"0.48015445",
"0.4793075",
"0.47842905",
"0.478277... | 0.73655486 | 0 |
Returns the number of measurements stored (which is equivalent to the number of timesteps that the system has been measuring). Returns | def Zp_0(YKHO):
return len(YKHO.measurement_history) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _T4h(YKHO):\n Teep = 0\n for ITS7 in YKHO.mdvtc.keys():\n Teep = Teep + YKHO.mdvtc[ITS7].get_number_of_measurement()\n return Teep",
"def SqqG(p9bx: Database) -> int:\n return int(p9bx.measurements.count_documents(filter={}))",
"def UHFx(YKHO) -> int:\n return YKHO.end_measure_num - Y... | [
"0.821365",
"0.74117464",
"0.69374704",
"0.6843931",
"0.6796748",
"0.6728694",
"0.6709693",
"0.6680076",
"0.6670823",
"0.66535914",
"0.6627371",
"0.6603178",
"0.6597402",
"0.65882856",
"0.6581612",
"0.6554371",
"0.65309995",
"0.65291715",
"0.65120083",
"0.64996237",
"0.649962... | 0.7084683 | 2 |
Convert Numpy matrix of vertices into a Python list (xy list of a shape) | def veb5(Mn23):
WsRX = Mn23.tolist()
Qwdd = []
for YRbF in range(0, len(WsRX)):
Qwdd.append(WsRX[YRbF][0])
Qwdd.append(WsRX[YRbF][1])
return Qwdd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_r0(UUiX, FlEM):\n tRMP(x_coords_metres=UUiX, y_coords_metres=FlEM)\n poMF = len(UUiX)\n zJIw = []\n for YRbF in range(poMF):\n zJIw.append((UUiX[YRbF], FlEM[YRbF]))\n return zJIw",
"def iXlf(YKHO) -> list[PvyL]:\n jzdc = PvyL(YKHO.array[..., 0, :], copy=False)\n Fg_i = PvyL(YKHO... | [
"0.7413975",
"0.7025411",
"0.68816763",
"0.6750809",
"0.6745582",
"0.66855454",
"0.65625846",
"0.6517452",
"0.64930856",
"0.6437436",
"0.64248884",
"0.6411927",
"0.6367023",
"0.63419783",
"0.6332802",
"0.6315702",
"0.63048035",
"0.62930965",
"0.6277304",
"0.62731403",
"0.6272... | 0.8255958 | 0 |
to learn the attention of one channel and the rest channels | def vNlG(YKHO, WKvO):
Fg_i, Z9rn, MKlR, yzQ0 = WKvO.shape
H6I0 = WKvO.contiguous().view(Fg_i, Z9rn, MKlR * yzQ0)
eBnL, jpc5 = YKHO.forward_unified(H6I0, H6I0, H6I0)
eBnL = eBnL.contiguous().view(Fg_i, Z9rn, MKlR, yzQ0)
return eBnL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TTPo(YKHO, g4y1):\n c3Oi = nMvt.batch_dot(x=g4y1, y=nMvt.permute_dimensions(g4y1, pattern=(0, 2, 1)))\n return nMvt.permute_dimensions(c3Oi, (0, 2, 1))",
"def v2uf(YKHO, vkAz, vFZ1=None):\n with ZylS.variable_scope('attention_compute'):\n je7f = 2 * YKHO.hidden_dim\n Ep8u = ZylS.shape(... | [
"0.6191988",
"0.6182749",
"0.61674166",
"0.6110955",
"0.60878927",
"0.6033937",
"0.60321414",
"0.6014058",
"0.60054046",
"0.5966352",
"0.5961111",
"0.59551805",
"0.5920994",
"0.59022796",
"0.5893938",
"0.58766156",
"0.5868471",
"0.5847925",
"0.58348364",
"0.5827881",
"0.58140... | 0.62221354 | 0 |
Construct a layernorm module in the TF style (epsilon inside the square root). | def FIMM(YKHO, wjbX, SGf8=1e-12):
super(B9e_, YKHO).__init__()
YKHO.weight = U78l.Parameter(ht2j.ones(wjbX))
YKHO.bias = U78l.Parameter(ht2j.zeros(wjbX))
YKHO.variance_epsilon = SGf8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D__v(uMfm, lGE9, ZylS, SGf8, IBR4, KMvS, nMvt):\n eHNT = lambda LVAh, a1PO: KMvS * LVAh * (1 - LVAh / nMvt)\n fuBA = _o7n(uMfm, lGE9, ZylS, SGf8, eHNT, IBR4)\n return fuBA",
"def V0YA(uMfm, lGE9, ZylS, SGf8, IBR4, KMvS):\n eHNT = lambda LVAh, a1PO: KMvS * LVAh\n fuBA = _o7n(uMfm, lGE9, ZylS, S... | [
"0.62758327",
"0.60142326",
"0.5795031",
"0.5740771",
"0.55372477",
"0.5517929",
"0.54223156",
"0.54113936",
"0.5386929",
"0.5368306",
"0.53505456",
"0.52857476",
"0.52559835",
"0.52327746",
"0.5227854",
"0.5224699",
"0.5219319",
"0.5218825",
"0.51930606",
"0.51930606",
"0.51... | 0.0 | -1 |
Splits up the URL given and returns the slug of the clip. | def Q_xf(vJPk: str) -> str:
s5ru = vJPk.split('/')
return s5ru[len(s5ru) - 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ir5t(bD7m):\n dOk3 = [('http(s)?://', ''), ('\\\\.', '-'), ('/', '-')]\n for neBz, qx_G in dOk3:\n bD7m = ZbWC.sub(neBz, qx_G, bD7m)\n return bD7m",
"def KqWK(bD7m):\n return bD7m[1:].split('/')",
"def Q_xf(YKHO, fdRN):\n DNHh = set(vIwR.punctuation)\n KCHu = ''.join((Npgh for Npgh... | [
"0.6573873",
"0.6397004",
"0.6325671",
"0.62193835",
"0.61308074",
"0.60969",
"0.60584766",
"0.6047683",
"0.60388464",
"0.5998331",
"0.5956057",
"0.5953348",
"0.5937267",
"0.5903982",
"0.58827615",
"0.5872457",
"0.58718574",
"0.5865004",
"0.5849255",
"0.57959837",
"0.57903177... | 0.78426516 | 0 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(ma4o, K0do, qtWj, lBIP):
tspZ = ma4o * 0.1 ** (qtWj // lBIP)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.79122996",
"0.79058665",
"0.77745456",
"0.77334857",
"0.7730185",
"0.7722212",
"0.7721426",
"0.771838",
"0.7708323",
"0.76928985",
"0.767362",
"0.7665062",
"0.7665062",
"0.7665062",
"0.76536506",
"0.7641248",
"0.7638249",
"0.7637116",
"0.7625168",
"0.7623629",
"0.7620543",... | 0.7848773 | 2 |
Load mydataset. This is a template for adding a function to load a dataset from MoleculeNet. Adjust the global variable URL strings, default parameters, default featurizers, transformers, and splitters, and variable names as needed. All available featurizers, transformers, and splitters are in the `DEFAULTS_X` global v... | def ecnU(ABK6: Featurizer=foCp['CircularFingerprint'], wxaK: List[Transformer]=[jPC1['NormalizationTransformer']], wAJt: Splitter=nSw7['RandomSplitter'], U3hF: bool=True, h_xa: Optional[str]=None, SQP_: Optional[str]=None, GoGb: Dict[str, object]={}, jlWC: Dict[str, object]={}, evOu: Dict[str, Dict[str, object]]={}, **... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AyYN(YKHO, lpha, qtWj=1, T7MU=False, **B2fa):\n ckRy = BfDw.split_paths(YKHO.cfg.data)\n assert len(ckRy) > 0\n i0XC = ckRy[(qtWj - 1) % len(ckRy)]\n zZcM, V_1d = (YKHO.cfg.source_lang, YKHO.cfg.target_lang)\n YKHO.datasets[lpha] = TOln(i0XC, lpha, zZcM, YKHO.src_dict, V_1d, YKHO.tgt_dict, combi... | [
"0.6464995",
"0.6344406",
"0.63009864",
"0.62198555",
"0.6104486",
"0.6049461",
"0.57530385",
"0.57283473",
"0.5718382",
"0.5714284",
"0.56947726",
"0.56910175",
"0.56653357",
"0.5658124",
"0.56215054",
"0.55981797",
"0.55725634",
"0.5554376",
"0.5487216",
"0.5476791",
"0.545... | 0.75441635 | 0 |
Set the validator dictionary. | def aBkf(YKHO, BWXx: Optional[Dict[str, Any]]):
YKHO._validator = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QITe(YKHO, QITe):\n YKHO._validator_info = QITe",
"def aBkf(YKHO) -> h8nf[cuzp[str, ImMB]]:\n return YKHO._validator",
"def zty5(YKHO, zty5):\n YKHO.container['validations'] = zty5",
"def FIMM(YKHO, aBkf):\n YKHO.validator = aBkf",
"def FIMM(YKHO, dict=None, **B2fa):\n dict = YKHO.valida... | [
"0.63722885",
"0.59797984",
"0.59709877",
"0.5968238",
"0.59022975",
"0.58239925",
"0.5774157",
"0.56801814",
"0.5592095",
"0.5553507",
"0.55335283",
"0.55131084",
"0.5410613",
"0.5351317",
"0.53378487",
"0.53378487",
"0.5327392",
"0.5327392",
"0.5301388",
"0.52763367",
"0.52... | 0.7382766 | 0 |
Gets the changed_by of this AuditEntry. | def Kiio(YKHO):
return YKHO._changed_by | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xYFR(YKHO):\n return YKHO._updated_by",
"def TM74(YKHO):\n return YKHO._last_modified_by",
"def xYFR(YKHO) -> 'str':\n return YKHO._attrs.get('updatedBy')",
"def xYFR(YKHO) -> 'str':\n return YKHO._attrs.get('updatedBy')",
"def xYFR(YKHO) -> 'str':\n return YKHO._attrs.get('updatedBy')",... | [
"0.7249279",
"0.69695014",
"0.67318934",
"0.67318934",
"0.67318934",
"0.66954154",
"0.6461869",
"0.6311164",
"0.6311164",
"0.6311164",
"0.6311164",
"0.6311164",
"0.6311164",
"0.62398523",
"0.6199881",
"0.6086686",
"0.6080386",
"0.60497826",
"0.60042036",
"0.5695446",
"0.56655... | 0.830074 | 1 |
Sets the changed_by of this AuditEntry. | def Kiio(YKHO, Kiio):
YKHO._changed_by = Kiio | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kiio(YKHO):\n return YKHO._changed_by",
"def Kiio(YKHO):\n return YKHO._changed_by",
"def xYFR(YKHO, xYFR):\n YKHO._updated_by = xYFR",
"def xYFR(YKHO, xYFR: 'str'):\n YKHO._attrs['updatedBy'] = xYFR",
"def xYFR(YKHO, xYFR: 'str'):\n YKHO._attrs['updatedBy'] = xYFR",
"def xYFR(YKHO, xY... | [
"0.70531774",
"0.70531774",
"0.6982425",
"0.67455775",
"0.67455775",
"0.67455775",
"0.65675133",
"0.65675133",
"0.60424423",
"0.5959088",
"0.58513176",
"0.58513176",
"0.58513176",
"0.58513176",
"0.58513176",
"0.58513176",
"0.5797555",
"0.5767141",
"0.5724656",
"0.55524004",
"... | 0.8309313 | 0 |
Gets the id of this AuditEntry. | def id(YKHO):
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def unpH(YKHO):\n return YKHO._id",
"def id(YKHO):\n return YKHO.metadata['id']",
"def wfbg(YKH... | [
"0.7254302",
"0.7254302",
"0.7254302",
"0.7254302",
"0.7254302",
"0.7254302",
"0.72303677",
"0.71647584",
"0.71460176",
"0.7144614",
"0.7144614",
"0.7108297",
"0.7108297",
"0.7108297",
"0.7108297",
"0.7108297",
"0.7108297",
"0.7108297",
"0.7108297",
"0.7108297",
"0.7108297",
... | 0.0 | -1 |
Sets the id of this AuditEntry. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, id):\n if id is not None and (not isinstance(id, int)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: id EXPECTED TYPE: int', None, None)\n YKHO.__id = id\n YKHO.__key_modified['id'] = 1",
"def ... | [
"0.7630219",
"0.7612315",
"0.7529485",
"0.75225174",
"0.7452073",
"0.7249684",
"0.7249684",
"0.7249684",
"0.7179838",
"0.7179838",
"0.7179838",
"0.7179838",
"0.7179838",
"0.7179838",
"0.7179838",
"0.7179838",
"0.7179838",
"0.7179838",
"0.7179838",
"0.7179838",
"0.7179838",
... | 0.0 | -1 |
Gets the organization_id of this AuditEntry. | def gZ75(YKHO):
return YKHO._organization_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZ75(YKHO) -> str:\n return qe4Y.get(YKHO, 'organization_id')",
"def gZ75(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'organization_id')",
"def gZ75(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'organization_id')",
"def gZ75(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4... | [
"0.80762357",
"0.78826576",
"0.77492076",
"0.77492076",
"0.7006984",
"0.69951683",
"0.6884503",
"0.6850317",
"0.6845058",
"0.6613094",
"0.63587046",
"0.63540274",
"0.6339878",
"0.62920094",
"0.62616473",
"0.62345904",
"0.62345904",
"0.6231323",
"0.61555445",
"0.61486125",
"0.... | 0.84393626 | 0 |
Sets the organization_id of this AuditEntry. | def gZ75(YKHO, gZ75):
YKHO._organization_id = gZ75 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZ75(YKHO, gZ75):\n if gZ75 is None:\n raise ValueError('Invalid value for `organization_id`, must not be `None`')\n YKHO._organization_id = gZ75",
"def g9KT(YKHO, g9KT):\n YKHO._org_id = g9KT",
"def wbiw(YKHO, wbiw):\n YKHO._organization = wbiw",
"def wbiw(YKHO, wbiw):\n YKHO._orga... | [
"0.75153923",
"0.730572",
"0.71776944",
"0.71776944",
"0.71776944",
"0.6829373",
"0.6627145",
"0.65207165",
"0.64345294",
"0.6204442",
"0.60855114",
"0.6005726",
"0.6005726",
"0.6001661",
"0.6001661",
"0.583284",
"0.5821725",
"0.582044",
"0.56470793",
"0.5548742",
"0.55099416... | 0.832213 | 1 |
Gets the entity_id of this AuditEntry. | def g2g3(YKHO):
return YKHO._entity_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g2g3(YKHO) -> str:\n return YKHO._entity_id",
"def V3pW(YKHO):\n return YKHO._tracked_entity_id",
"def KDPt(Emd4, LEXu):\n pK9F = 'entity:' + str(LEXu.entity_id)\n Aofo = Emd4.db.keys(pK9F)\n return LEXu.entity_id if Aofo else None",
"def eFw5(YKHO) -> qe4Y.Output[str]:\n return qe4Y.ge... | [
"0.7693048",
"0.72340983",
"0.62899536",
"0.61061704",
"0.6085583",
"0.60490215",
"0.60490215",
"0.60326046",
"0.60326046",
"0.60326046",
"0.60326046",
"0.60326046",
"0.60326046",
"0.60319936",
"0.60069406",
"0.5994444",
"0.59905154",
"0.59829485",
"0.5975086",
"0.5975086",
"... | 0.8037113 | 4 |
Sets the entity_id of this AuditEntry. | def g2g3(YKHO, g2g3):
YKHO._entity_id = g2g3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g2g3(YKHO, g2g3: str):\n YKHO._entity_id = g2g3",
"def g2g3(YKHO, g2g3):\n if g2g3 is None:\n raise ValueError('Invalid value for `entity_id`, must not be `None`')\n YKHO._entity_id = g2g3",
"def _wov(YKHO, _wov):\n YKHO._entities_id = _wov",
"def davs(YKHO, BWXx):\n super(c0Ra, YKH... | [
"0.79976314",
"0.79222083",
"0.66796696",
"0.65123117",
"0.64531934",
"0.6290769",
"0.5910044",
"0.5910044",
"0.5910044",
"0.5910044",
"0.5910044",
"0.5899952",
"0.5899952",
"0.5899952",
"0.57038164",
"0.5661641",
"0.545111",
"0.54498637",
"0.5395395",
"0.5363157",
"0.5341813... | 0.8073803 | 0 |
Gets the audit_action of this AuditEntry. | def FL0Y(YKHO):
return YKHO._audit_action | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AMEM(YKHO):\n return YKHO.__action",
"def XeOP(YKHO):\n return YKHO._get_field('action')",
"def AMEM(YKHO):\n return YKHO.current_action",
"def XeOP(YKHO):\n return YKHO._action",
"def XeOP(YKHO):\n return YKHO._action",
"def XeOP(YKHO):\n return YKHO._action",
"def XeOP(YKHO):\n ... | [
"0.71937025",
"0.6969079",
"0.69373006",
"0.68369156",
"0.68369156",
"0.68369156",
"0.68369156",
"0.68369156",
"0.68369156",
"0.66419053",
"0.6547587",
"0.6547587",
"0.6547587",
"0.65027106",
"0.64371264",
"0.63478076",
"0.63173217",
"0.6236077",
"0.62267995",
"0.62238157",
"... | 0.8121201 | 0 |
Sets the new_entity of this AuditEntry. | def grce(YKHO, grce):
YKHO._new_entity = grce | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def grce(YKHO):\n return YKHO._new_entity",
"def BdN0(YKHO, BdN0):\n YKHO._new = BdN0",
"def LEXu(YKHO, LEXu):\n YKHO._entity = LEXu",
"def bdUn(Emd4, LEXu):\n XTLj = Emd4.get_entity_count()\n hU8D = 'entity:' + str(XTLj + 1)\n LEXu.entity_key = hU8D\n Aofo = Emd4.db.hmset(hU8D, LEXu.ext... | [
"0.68103546",
"0.5976102",
"0.596852",
"0.5584641",
"0.547989",
"0.5396724",
"0.5247832",
"0.51539177",
"0.49853706",
"0.49630386",
"0.48778757",
"0.48662427",
"0.48621497",
"0.48537818",
"0.4843221",
"0.48238978",
"0.48095122",
"0.47993878",
"0.4794472",
"0.4772747",
"0.4751... | 0.8411291 | 0 |
Gets the state of this AuditEntry. | def QTBn(YKHO):
return YKHO._state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QTBn(YKHO):\n return YKHO.get_state()",
"def GBfH(YKHO):\n return YKHO._state",
"def GBfH(YKHO):\n return YKHO._state",
"def GBfH(YKHO):\n return YKHO.state",
"def GBfH(YKHO):\n return YKHO.state",
"def GBfH(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO._state",
... | [
"0.6980242",
"0.68909866",
"0.68909866",
"0.6888418",
"0.6888418",
"0.6888418",
"0.6842564",
"0.6842564",
"0.6842564",
"0.6842564",
"0.6842564",
"0.6829437",
"0.6829437",
"0.6807538",
"0.6770623",
"0.6770623",
"0.67589486",
"0.67364025",
"0.67311466",
"0.6722468",
"0.6722468"... | 0.6820712 | 88 |
Sets the created of this AuditEntry. | def _EYN(YKHO, _EYN):
YKHO._created = _EYN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _EYN(YKHO, _EYN):\n if _EYN is None:\n raise ValueError('Invalid value for `created`, must not be `None`')\n YKHO._created = _EYN",
"def WbRJ(YKHO, JRYC):\n YKHO.created = xUnN(JRYC)",
"def Vmps(YKHO, BWXx):\n super(coXw, YKHO)._set_input('Created', BWXx)",
"def JjkJ(YKHO, JjkJ):\n ... | [
"0.7562887",
"0.7332002",
"0.69526184",
"0.6912635",
"0.6912635",
"0.6849902",
"0.68028855",
"0.6782158",
"0.6782158",
"0.6782158",
"0.6782158",
"0.6782158",
"0.6782158",
"0.6782158",
"0.6760964",
"0.6750482",
"0.67365575",
"0.67365575",
"0.67365575",
"0.6716858",
"0.6693137"... | 0.74819726 | 12 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.80885184",
"0.80885184",
"0.805514",
"0.7983044",
"0.79614645",
"0.79614645",
"0.7942978",
"0.79307914",
"0.79270965",
"0.78980374",
"0.78832436",
"0.78832436",
"0.78809714",
"0.7873277",
"0.7868898",
"0.78659886",
"0.78258073",
"0.7820066",
"0.7816123",
"0.7807926",
"0.78... | 0.7966715 | 46 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.8456063",
"0.83918154",
"0.8144437",
"0.8140196",
"0.8132038",
"0.8093834",
"0.80918837",
"0.80918837",
"0.80918837",
"0.80852824",
"0.80852824",
"0.807626",
"0.807626",
"0.80657643"
] | 0.0 | -1 |
get the vtk point object for the location (x,y,z) | def P0Y9(UqpO):
JZXy = YU_E.vtkPointSource()
JZXy.SetCenter(UqpO[0])
JZXy.SetRadius(0)
JZXy.SetNumberOfPoints(1)
JZXy.Update()
return JZXy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AU8u(YKHO):\n return (YKHO.x, YKHO.y, YKHO.z)",
"def AU8u(WKvO, LVAh, epBp):\n return rIpo(WKvO, LVAh, epBp, 1.0)",
"def OJ0I(YKHO):\n return PvyL(*YKHO.position)",
"def OP2O(YKHO, *qIxc):\n return jpiX.vectoritkSurfaceSpatialObjectPoint3___getitem__(YKHO, *qIxc)",
"def AU8u(YKHO) -> M1rV:\... | [
"0.7138827",
"0.6928828",
"0.6814521",
"0.6653981",
"0.6626665",
"0.6483561",
"0.6447883",
"0.6434501",
"0.63675106",
"0.6335543",
"0.632635",
"0.62961286",
"0.6287827",
"0.6256243",
"0.6240352",
"0.62284607",
"0.62024504",
"0.6198469",
"0.61825156",
"0.6178122",
"0.6170829",... | 0.71322364 | 1 |
Bottleneck block for ResNeXt. If style is "pytorch", the stridetwo layer is the 3x3 conv layer, if it is "caffe", the stridetwo layer is the first 1x1 conv layer. | def FIMM(YKHO, hhGw, vRTu, moMn=1, s9Bf=4, V_Bh=64, **B2fa):
super(MF6R, YKHO).__init__(hhGw, vRTu, **B2fa)
if moMn == 1:
TVTK = YKHO.planes
else:
TVTK = epAf.floor(YKHO.planes * (s9Bf / V_Bh)) * moMn
YKHO.norm1_name, cZIU = n0Aj(YKHO.norm_cfg, TVTK, postfix=1)
YKHO.norm2_name, XsBg ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MFxF(WKvO: tf.Tensor, rb7a: int, MLcA: int, _0fC: int, mVUw: int=1) -> ZylS.Tensor:\n with ZylS.variable_scope(None, 'bottleneck_v2', [WKvO]):\n V2ar = Fz20.utils.last_dimension(WKvO.get_shape(), min_rank=4)\n hNWY = Fz20.batch_norm(WKvO, activation_fn=ZylS.nn.relu, scope='preact')\n if... | [
"0.6889076",
"0.6795593",
"0.67665195",
"0.6523262",
"0.6499701",
"0.6218676",
"0.6191233",
"0.6187817",
"0.61875874",
"0.61188823",
"0.60808504",
"0.5914599",
"0.5914326",
"0.5914326",
"0.59128946",
"0.58922887",
"0.5889086",
"0.5873635",
"0.5873635",
"0.58704764",
"0.585307... | 0.0 | -1 |
Build message specific to the recipient. | def TX1X(YKHO, iOUK):
Ol8d = YKHO.queue_doc.message
if not Ol8d:
return ''
Ol8d = Ol8d.replace(YKHO.message_placeholder('tracker'), YKHO.get_tracker_str(iOUK))
Ol8d = Ol8d.replace(YKHO.message_placeholder('unsubscribe_url'), YKHO.get_unsubscribe_str(iOUK))
Ol8d = Ol8d.replace(YKHO.message_pl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jfL_(YKHO):\n Dfxc = YKHO.msg_type\n if Dfxc == 'PUBMSG':\n Dfxc = 'PRIVMSG'\n U5bT = '{} {}'.format(Dfxc, YKHO.target)\n if YKHO.content:\n U5bT += ' :{}'.format(YKHO.content)\n return U5bT + '\\r\\n'",
"def TX1X():\n XcBg = uUlP()\n XcBg.from_email = GPrQ(RYI6, Own9)\n ... | [
"0.6769794",
"0.6737969",
"0.62899005",
"0.6173471",
"0.61571157",
"0.6078235",
"0.6017565",
"0.60136795",
"0.59706426",
"0.5963227",
"0.5956112",
"0.5827875",
"0.5805116",
"0.57555825",
"0.57555825",
"0.57119703",
"0.57029104",
"0.569709",
"0.5649452",
"0.5649261",
"0.563867... | 0.72548765 | 0 |
Check for the existance of enums in the parameter list. If an enum exists, we need to build a tuple of the emum names as well as the code that will validate the the enum. We create two lists one that contains the enums as tuples and another that contains the valdiate code. The method returns a list that consistes of th... | def YLMQ(SGPK):
Jx3A = ''
nFXD = []
skTx = []
for xqoZ in SGPK:
if 'enum' in xqoZ:
_N6A = Fhmz(IGTn(xqoZ['name']))
mceO = xqoZ['enum']
Jx3A = _N6A + '_types = ('
aVkO = ', '.join(("'{0}'".format(XP5J) for XP5J in mceO))
Jx3A += aVkO + '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EcKA(p5ux: Type[Enum]) -> x1iM[str]:\n return [f'{YRbF}: {Ty9i}' for YRbF, Ty9i in enumerate(p5ux)]",
"def TVGi(IGg1: Any) -> list:\n Aofo = []\n for xC3W in list(IGg1):\n Aofo.append(xC3W.value)\n return Aofo",
"def VSTX(YKHO):\n YHhm = []\n zcTP = set()\n RfhR = oRi_(set)\n ... | [
"0.6401213",
"0.63181007",
"0.63141215",
"0.61072165",
"0.60310066",
"0.56923455",
"0.56852007",
"0.55856186",
"0.55427897",
"0.5502843",
"0.548926",
"0.5463231",
"0.542895",
"0.5422927",
"0.5402525",
"0.5377337",
"0.5361586",
"0.5300357",
"0.5296258",
"0.5267555",
"0.5186078... | 0.7524469 | 0 |
convert camelCase to camel_case | def a8Pe(mWFP):
j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\1_\\2', mWFP)
return ZbWC.sub('([a-z0-9])([A-Z])', '\\1_\\2', j93S).lower() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O3vd(mWFP):\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1_\\\\2', mWFP)\n return ZbWC.sub('([a-z0-9])([A-Z])', '\\\\1_\\\\2', j93S).lower()",
"def J8xc(l5Ny: str) -> str:\n return ''.join((GIN8.title() for GIN8 in l5Ny.split('_')))",
"def c3S0(BWXx: str, **B2fa: Any) -> str:\n Aofo = ''.join(map... | [
"0.8216925",
"0.8098905",
"0.7977879",
"0.78845215",
"0.7877296",
"0.7851086",
"0.78430486",
"0.7833407",
"0.77893585",
"0.7788128",
"0.77770317",
"0.77436364",
"0.77385837",
"0.7737896",
"0.771665",
"0.771665",
"0.7715725",
"0.77044356",
"0.7662114",
"0.7646547",
"0.7639699"... | 0.6941522 | 76 |
Compute and return the value of addition operation. | def MrSv(YKHO):
WKvO, LVAh = YKHO.input_nodes
YKHO.output_value = DDLl.add(WKvO.output_value, LVAh.output_value)
return YKHO.output_value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO):\n return YKHO._do_calc(YKHO.adder)",
"def H2v5(YKHO):\n return YKHO._do_calc(YKHO.adder)",
"def H2v5(YKHO):\n return YKHO._do_calc(YKHO.adder)",
"def rpxx(YKHO, E_TU, OyNW):\n return E_TU + OyNW",
"def rpxx(jzdc, Fg_i):\n Aofo = jzdc + Fg_i\n return Aofo",
"def rpxx(jzdc... | [
"0.8168641",
"0.8168641",
"0.8168641",
"0.7837437",
"0.7704095",
"0.7474225",
"0.73802626",
"0.736307",
"0.730536",
"0.728264",
"0.72668445",
"0.7235886",
"0.7205479",
"0.71878326",
"0.7183775",
"0.7182901",
"0.7154208",
"0.710332",
"0.7075838",
"0.7075838",
"0.7075838",
"0... | 0.0 | -1 |
Instantiate a CSRFaware test client and verify that the CSRF Middleware rotates the CSRF token per request by logging in getting token1, getting token2, then assert that token1 does not equal token2. | def SnYe(YKHO):
x2lI = i9zE(enforce_csrf_checks=True)
x2lI.login(username='archen', password='mytestpassword')
geh0 = x2lI.get(gxEw('hackme:vote', kwargs={'question_id': 1}))
nKcD = '{0}'.format(geh0.context['csrf_token'])
geh0 = x2lI.get(gxEw('hackme:vote', kwargs={'question_id': 1}))
ok3O = '{... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QQQo(YKHO):\n x2lI = i9zE(enforce_csrf_checks=True)\n x2lI.login(username='archen', password='mytestpassword')\n geh0 = x2lI.get(gxEw('hackme:vote', kwargs={'question_id': 1}))\n nKcD = '{0}'.format(geh0.context['csrf_token'])\n x2lI.logout()\n x2lI.login(username='archen', password='mytestpa... | [
"0.75068396",
"0.67863727",
"0.6705328",
"0.66953987",
"0.65281594",
"0.64516985",
"0.6424007",
"0.6370507",
"0.636057",
"0.6342661",
"0.63172245",
"0.6177671",
"0.6174722",
"0.613412",
"0.6096326",
"0.6073039",
"0.6046885",
"0.60453147",
"0.601192",
"0.60011077",
"0.5999106"... | 0.798472 | 0 |
Checks if a preservation sheet has been identified by set_amiSheetNames() | def vMqh(YKHO):
if not YKHO.pres_sheetname:
YKHO.raise_excelerror('Required sheet for preservation files' + 'could not be found in workbook.')
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cJw7(YKHO):\n YKHO.pres_sheetname = None\n YKHO.edit_sheetname = None\n YKHO.notransfer_sheetname = None\n for OGYo in YKHO.wb.sheet_names():\n NoGf = OGYo.lower()\n if ZbWC.match('(original|preservation|file|full|archive)', NoGf):\n YKHO.pres_sheetname = OGYo\n elif... | [
"0.66302073",
"0.65046644",
"0.5886013",
"0.5579476",
"0.5479899",
"0.54747397",
"0.53408045",
"0.52864134",
"0.5272514",
"0.52497303",
"0.5119719",
"0.5086039",
"0.5080697",
"0.5060596",
"0.49829373",
"0.49792847",
"0.4975354",
"0.49734163",
"0.4972198",
"0.49180233",
"0.491... | 0.68520504 | 0 |
Configure the platform and add the sensors. | def AbqV(ajET, GPtr, uVcJ, tR5e=None):
mWFP = GPtr.get(BiEj)
eOtH = GPtr.get(fFds)
_UuI = GPtr.get(Z8q8, ajET.config.latitude)
fopC = GPtr.get(BcvV, ajET.config.longitude)
vzeF.debug('Using latitude and longitude: %s, %s', _UuI, fopC)
_CL2 = GPtr[VOdH]
oB5g = []
for Es0b in GPtr[atX2]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _kZf(YKHO, b32v):\n YKHO.__sensors = YKHO.setup_components(b32v, 'scale_client.sensors')",
"def AbqV(ajET, GPtr, qc_b, tR5e=None):\n dgV7 = ajET.data[VquC]\n if dgV7 is None or not dgV7.is_connected:\n na1r.warning('No connection to Flo service, ignoring setup of platform sensor')\n re... | [
"0.74864894",
"0.7239367",
"0.7238194",
"0.72378623",
"0.7099067",
"0.69818896",
"0.69631433",
"0.69562775",
"0.6948777",
"0.69465494",
"0.6945056",
"0.69391507",
"0.6869754",
"0.6851387",
"0.6831462",
"0.68086",
"0.6788309",
"0.6771401",
"0.6759165",
"0.67398715",
"0.6727710... | 0.67472076 | 19 |
Return the device state attributes. | def R1i3(YKHO):
if YKHO._type == VRJD:
YKHO._attrs[TQLQ] = YKHO.data[TQLQ]
if YKHO._type == oiVz:
YKHO._attrs[FfQ0] = YKHO.data[wdlc]
YKHO._attrs[nqIx] = round(YKHO.data[JMQB])
if YKHO._type == UEP4:
YKHO._attrs[FfQ0] = YKHO.data[rsYZ]
YKHO._attrs[nqIx] = round(YKHO.d... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attrs",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._... | [
"0.9317156",
"0.92453825",
"0.92205626",
"0.9214834",
"0.9214834",
"0.9210406",
"0.9210406",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9190629",
"0.9143603",
... | 0.8124515 | 63 |
Return a unique_id for this entity. | def ShR8(YKHO):
return '{}-{}-{}'.format(YKHO._latitude, YKHO._longitude, YKHO._type) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._id",
"def ShR8(YKHO):\n return YKHO._uuid",
"def ShR8(YKHO):\n return YKHO._uuid",
"def ShR8(YKHO) -> str:\n return YKHO._unique_id",
"def ShR8(YKHO) -> str:\n return YKHO._unique_id",
"def ShR8(YKHO) -> str:\n ret... | [
"0.8327206",
"0.8327206",
"0.8272821",
"0.8272821",
"0.82371587",
"0.82371587",
"0.82371587",
"0.82371587",
"0.82371587",
"0.82371587",
"0.82371587",
"0.82371587",
"0.82110804",
"0.82110804",
"0.82110804",
"0.82110804",
"0.82110804",
"0.82110804",
"0.82110804",
"0.82110804",
... | 0.7599431 | 54 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))
return uw5A / uw5A.sum() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"de... | [
"0.7797633",
"0.77625954",
"0.77602196",
"0.7757519",
"0.76584935",
"0.76584935",
"0.76584935",
"0.76584935",
"0.7589092",
"0.7433975",
"0.7410552",
"0.7397003",
"0.7360935",
"0.73204947",
"0.7271785",
"0.72655344",
"0.7264959",
"0.7259807",
"0.72332364",
"0.72179425",
"0.720... | 0.7093289 | 58 |
Test for search_by_ISBN method | def s7be(YKHO):
j93S = wk86()
kYGz = VkpT('1984', 'George Orwell', 'Harvill Secker', '1949', '0123456789123')
YKHO.assertEqual(j93S.search_by_ISBN('0123456789123'), 0)
j93S.add_resource(kYGz)
YKHO.assertEqual(j93S.search_by_ISBN('0123456789123'), 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L3n1(YKHO, ryQO):\n geh0 = gQ_J.search_by(YKHO.filter_isbn, YKHO.ISBN)\n YKHO.assertEqual(geh0.data, qQXR.loads(open(kPD3 + fcl6).read())['data'])",
"def qMF_(Z5r0):\n print('Searching for isbn ' + Z5r0 + ' in googlebooks...')\n Aofo = E7W_(Z5r0)\n if Aofo['totalItems'] == 0:\n return N... | [
"0.77695554",
"0.72875947",
"0.714704",
"0.6777699",
"0.67719877",
"0.675688",
"0.67482865",
"0.6720576",
"0.6668579",
"0.6662156",
"0.6598414",
"0.657023",
"0.6536934",
"0.64985555",
"0.6488425",
"0.6473168",
"0.6417611",
"0.64053017",
"0.6354876",
"0.6300086",
"0.62986517",... | 0.8734922 | 0 |
return API time corrected for local timezone | def FzuM(YKHO, HO4D):
return YKHO.feedzone.localize(HO4D).astimezone(YKHO.localzone) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rIAI():\n pass",
"def oMjx():\n return qcWV.datetime.now().isoformat()[:len('2017-01-24T10:44:00')]",
"def _meq():\n return 'UTC'",
"def h6AV():\n SpTL = qcWV.datetime.utcnow().astimezone(FXGE.timezone('America/Los_Angeles'))\n return SpTL.strftime('%a %b %e %H:%M %Z %G')",
"def Y894():\... | [
"0.7212565",
"0.7133227",
"0.69550765",
"0.67883587",
"0.67642075",
"0.66765994",
"0.6640911",
"0.6601219",
"0.6600101",
"0.6597976",
"0.6597636",
"0.6594265",
"0.6589398",
"0.6536743",
"0.64989436",
"0.6493774",
"0.64692587",
"0.6456862",
"0.644002",
"0.64021087",
"0.6392668... | 0.6696543 | 5 |
reverse localize_time to convert local timezone to API time | def SYK7(YKHO, HO4D):
return YKHO.localzone.localize(HO4D).astimezone(YKHO.feedzone) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FzuM(YKHO, HO4D):\n return YKHO.feedzone.localize(HO4D).astimezone(YKHO.localzone)",
"def biyN(rDtf):\n return FXGE.utc.localize(rDtf)",
"def biyN(rDtf):\n return FXGE.utc.localize(rDtf)",
"def hZ49(JRYC):\n if JRYC.tzinfo is wyKz:\n return (JRYC + IOPU).replace(tzinfo=None)\n retur... | [
"0.70825297",
"0.701795",
"0.701795",
"0.6822421",
"0.652934",
"0.652934",
"0.652934",
"0.64643",
"0.642147",
"0.64163226",
"0.6324556",
"0.626879",
"0.6254991",
"0.62439936",
"0.6230229",
"0.6203875",
"0.62010545",
"0.6193468",
"0.6165171",
"0.6119015",
"0.60487807",
"0.60... | 0.6317597 | 11 |
the bellman operator for the behavioral policy as a python function which takes the value function s^T P s + b represented as a numpy squared array P T(P,b) = R + theta_p^T Q theta_p + gamma (A + B theta_p)^T P (A + B theta_p), gamma (b + tr(P Sigma)) | def ZUOE(YKHO, V6IE, Fg_i, Qabx='behavior'):
T8ck = oyIN.matrix(YKHO.mdp.Q)
A3Vt = oyIN.matrix(YKHO.mdp.R)
k0lF = oyIN.matrix(YKHO.mdp.A)
tjUW = oyIN.matrix(YKHO.mdp.B)
KSVb = oyIN.matrix(oyIN.diag(YKHO.mdp.Sigma))
if Qabx == 'behavior':
q7In = oyIN.matrix(YKHO.behavior_policy.theta)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LuMN(V6IE, KSVb, QTBn, XeOP, KMvS):\n lLAx = 0\n for a1PO in V6IE[QTBn][XeOP]:\n Q7Be = a1PO[0]\n j3iQ = a1PO[1]\n sSN_ = a1PO[2]\n _ins = a1PO[3]\n if _ins:\n lLAx += Q7Be * sSN_\n else:\n lLAx += Q7Be * (sSN_ + KMvS * KSVb[QTBn, XeOP])\n ... | [
"0.71001726",
"0.68565446",
"0.6523547",
"0.6306089",
"0.6291289",
"0.6230942",
"0.61771154",
"0.6148315",
"0.60413855",
"0.5933376",
"0.5930906",
"0.5928049",
"0.5900982",
"0.5886188",
"0.5881746",
"0.58785963",
"0.58734393",
"0.5857429",
"0.58492917",
"0.5840334",
"0.581764... | 0.7670253 | 0 |
test a non existing sale_record cannot be retrieved | def i4fy(YKHO):
YKHO.register_user()
Aofo = YKHO.login_user()
NT__ = qQXR.loads(Aofo.data.decode())['token']
geh0 = YKHO.client.get('/api/v1/sale/100', headers=dict(Authorization='Bearer ' + NT__))
YKHO.assertEqual(geh0.status_code, 404)
Aofo = qQXR.loads(geh0.data.decode())
YKHO.assertEqual... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v5Xz(YKHO):\n Amyp = YKHO.admin_add_product()\n _hkX = YKHO.admin_create_user()\n Amyp = YKHO.attendant_login()\n eOtH = Amyp['token']\n _hkX = YKHO.client.get('/api/v1/sales/1', headers={'Authorization': 'Bearer {}'.format(eOtH)})\n Amyp = qQXR.loads(_hkX.data.decode())\n YKHO.assertEqual... | [
"0.67065454",
"0.65563065",
"0.6445439",
"0.6376305",
"0.6364539",
"0.63549346",
"0.6344477",
"0.63023585",
"0.6260622",
"0.62462413",
"0.6177097",
"0.61122227",
"0.6104429",
"0.6096169",
"0.60852754",
"0.6059171",
"0.6040166",
"0.6034094",
"0.6025876",
"0.60226256",
"0.60205... | 0.83915794 | 0 |
Wraps the core BERT model as a keras.Model. | def qTXl(i5Cy, qV0r, OIWs, GPtr=None, mWFP=None, JHly=ZylS.float32, Chzg=False):
WoPN = gCSU(config=GPtr, float_type=JHly, share_parameter_across_layers=Chzg, name=mWFP)
OQIc, wn3U = WoPN(i5Cy, qV0r, OIWs)
LCW7 = ZylS.keras.Model(inputs=[i5Cy, qV0r, OIWs], outputs=[OQIc, wn3U])
return LCW7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aJBW(YKHO):\n uPfz = X6a0(shape=(YKHO.batch_max_sentences, YKHO.bert_wrapper.max_seq_len), name='bert_input_ids', dtype='int32')\n EbxE = X6a0(shape=(YKHO.batch_max_sentences, YKHO.bert_wrapper.max_seq_len), name='bert_attention_ids', dtype='int32')\n TVMP = X6a0(shape=(YKHO.batch_max_sentences, YKHO.... | [
"0.72094166",
"0.71153945",
"0.6757933",
"0.6557551",
"0.6524431",
"0.65141064",
"0.6411738",
"0.6394894",
"0.6390862",
"0.6388574",
"0.63608235",
"0.6341187",
"0.63348085",
"0.63262266",
"0.6325279",
"0.6321138",
"0.6299965",
"0.6294272",
"0.62942296",
"0.6273413",
"0.627213... | 0.65128464 | 6 |
Return registered group with the given group id | def NMoC(YKHO):
YKHO._group = YKHO._client.get(url=YKHO._client.get_full_url(YKHO.get_path('single', realm=YKHO._realm_name, group_id=YKHO._group_id)))
YKHO._group_id = YKHO._group['id']
return YKHO._group | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aiHR(YKHO, hE03):\n return YKHO.root.get(hE03)",
"def tDwv(YKHO, id):\n for uOe2 in YKHO.groups:\n if uOe2.id == id:\n return uOe2\n return None",
"def aiHR(YKHO, hE03: str) -> dict:\n uOe2 = YKHO.ms_client.http_request(method='GET', url_suffix=f'groups/{hE03}')\n return uO... | [
"0.8029542",
"0.79949456",
"0.7972709",
"0.7740636",
"0.7728499",
"0.7666988",
"0.76289696",
"0.75440896",
"0.75185275",
"0.74773175",
"0.73800594",
"0.7367363",
"0.7357759",
"0.7311793",
"0.73070186",
"0.7265864",
"0.7263907",
"0.7083139",
"0.70819503",
"0.7020503",
"0.69858... | 0.67001593 | 40 |
Return NPSH in ft given suction and vapor pressure in Pa and density in kg/m^3. | def nbdg(Omli, yfxA, vXBu):
return 0.334438 * (Omli - yfxA) / vXBu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rANq(MKlR, ZT17):\n qbBh, wwnm, DqCU = ZT17\n ZMat = MKlR * MKlR * MKlR\n MTJb = qbBh * MKlR * MKlR\n R5UD = qbBh * wwnm * MKlR\n Uai0 = qbBh * wwnm * DqCU\n ciZM = ZMat + MTJb + R5UD + Uai0\n ZMat /= ciZM\n MTJb /= ciZM\n R5UD /= ciZM\n Uai0 /= ciZM\n return (ZMat, MTJb, R5UD,... | [
"0.6685551",
"0.639336",
"0.6244425",
"0.6082317",
"0.60762024",
"0.6053931",
"0.60533136",
"0.6028373",
"0.6004268",
"0.59924716",
"0.5931524",
"0.5906271",
"0.5870304",
"0.5837564",
"0.58216316",
"0.5757926",
"0.5748486",
"0.5741466",
"0.57287925",
"0.57140833",
"0.56934816... | 0.72387576 | 0 |
generate a random string | def BWvy(exwG, gZgb=vIwR.ascii_lowercase):
return ''.join((tuKI.choice(gZgb) for bGrB in range(exwG))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KpEQ():\n return ''.join(QMfv(rU7A(32)).decode('utf-8'))",
"def e7Tf():\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(16)))",
"def tEgU():\n return kxTZ().hex[:6].upper()",
"def Q_QB():\n yvT9 = ''\n for bGrB in range(24):\n yvT9 += Acvy(C1SZ)\n... | [
"0.850504",
"0.84503955",
"0.8107285",
"0.8030303",
"0.79917127",
"0.7966936",
"0.7955794",
"0.783599",
"0.7833559",
"0.7833183",
"0.7817233",
"0.7802888",
"0.7779429",
"0.7768785",
"0.7746513",
"0.77311516",
"0.7703917",
"0.77027106",
"0.7688608",
"0.7673507",
"0.7664003",
... | 0.0 | -1 |
Given a specific environment, creates an SARSA agent specific for this environment. Can only handle discrete environments. | def YypB(YKHO, sEAN):
if isinstance(sEAN.action_space, ch3p.spaces.Discrete):
return qdEp(obs_dim=sEAN.observation_space.shape[0], act_dim=sEAN.action_space.n, hidden_sizes=[64])
raise ValueError('SARSA can only be used for discrete action spaces.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YypB(YKHO, sEAN):\n if isinstance(sEAN.action_space, ch3p.spaces.Box):\n return F9Ry(obs_dim=sEAN.observation_space.shape[0], act_dim=sEAN.action_space.shape[0], hidden_sizes=[64])\n if isinstance(sEAN.action_space, ch3p.spaces.Discrete):\n return GYlE(obs_dim=sEAN.observation_space.shape[0... | [
"0.66630644",
"0.6631694",
"0.65505534",
"0.5953285",
"0.59230745",
"0.59207326",
"0.5811515",
"0.56780297",
"0.5674116",
"0.5648996",
"0.56102073",
"0.5546342",
"0.5455327",
"0.5420759",
"0.5400671",
"0.5400206",
"0.5390566",
"0.53870106",
"0.5293561",
"0.52203923",
"0.52186... | 0.76628625 | 0 |
Read dataset file and assigns dataframe object to _df | def HND1(YKHO) -> None:
YKHO._df = rLdf.read_csv(YKHO._dataset_file) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JOY1(Ux0P):\n jQ3Z = rLdf.read_csv(Ux0P)\n return jQ3Z",
"def DMrX(YKHO):\n YKHO.df = YKHO.sqlContext.read.csv(YKHO.source, sep=YKHO.sep, header=True, inferSchema=True)",
"def FIMM(YKHO, qaEx: str):\n YKHO._data: rLdf.DataFrame = YKHO.read_input_and_split_tuples(qaEx)",
"def WbUU(YKHO) -> Non... | [
"0.73519945",
"0.71827435",
"0.7137628",
"0.71346796",
"0.7073277",
"0.7056249",
"0.7042096",
"0.7015911",
"0.6976835",
"0.69308776",
"0.6821296",
"0.6812685",
"0.6812685",
"0.6812685",
"0.67467344",
"0.6741589",
"0.67386633",
"0.6737851",
"0.6723442",
"0.669246",
"0.6677787"... | 0.7191624 | 1 |
Splits the dataset in to training set and testing set | def bHtP(YKHO) -> None:
EcVT = YKHO._df[['Avg. Area Income', 'Avg. Area House Age', 'Avg. Area Number of Rooms', 'Avg. Area Number of Bedrooms', 'Area Population']]
LVAh = YKHO._df['Price']
YKHO._X_train, YKHO._X_test, YKHO._y_train, YKHO._y_test = bHtP(EcVT, LVAh, test_size=0.4, random_state=42) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cTf9(onqj):\n XxFT, t4zr = bHtP(onqj, test_size=0.2, random_state=42)\n return (XxFT, t4zr)",
"def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.valid, YKHO.valid, test_size=0.5)",
"def FJfc(YKHO, NI2... | [
"0.86097497",
"0.8584347",
"0.82286584",
"0.82185394",
"0.8021438",
"0.794746",
"0.79276013",
"0.7921467",
"0.791578",
"0.7897465",
"0.78501225",
"0.7830136",
"0.7821321",
"0.78176755",
"0.7755438",
"0.7750092",
"0.7728479",
"0.77197564",
"0.77020323",
"0.7688907",
"0.7685516... | 0.0 | -1 |
Generates an IPP Message. Returns the message as a string of text. | def ChRH(YKHO):
uD_4 = []
if None not in (YKHO.version, YKHO.operation_id):
uD_4.append(chr(YKHO.version[0]) + chr(YKHO.version[1]))
uD_4.append(tMMy('>H', YKHO.operation_id))
uD_4.append(tMMy('>I', YKHO.request_id or 1))
for JV_b in YKHO.attributes_types:
for xC3W in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jfL_(YKHO):\n Dfxc = YKHO.msg_type\n if Dfxc == 'PUBMSG':\n Dfxc = 'PRIVMSG'\n U5bT = '{} {}'.format(Dfxc, YKHO.target)\n if YKHO.content:\n U5bT += ' :{}'.format(YKHO.content)\n return U5bT + '\\r\\n'",
"def sGEl(YKHO):\n return Hy7s.urandom(YKHO.messageSize)",
"def sa0q(YK... | [
"0.660275",
"0.6068894",
"0.6058",
"0.6035902",
"0.6021112",
"0.5987677",
"0.59774643",
"0.59565526",
"0.5929928",
"0.591374",
"0.58054256",
"0.58035034",
"0.5764994",
"0.57645506",
"0.573444",
"0.5671204",
"0.5671204",
"0.5671204",
"0.5671204",
"0.5671204",
"0.56234944",
"... | 0.0 | -1 |
The identity block is the block that has no ConvGRU layer at shortcut. Arguments | def aP6R(FRUf, Ot1W, KUnM, EtM5, XkN1):
DZWo, MXwb, wMAF = KUnM
if nMvt.image_data_format() == 'channels_last':
z5f9 = 3
else:
z5f9 = 1
RmTP = 'res' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
WKvO = mN6m(DZWo, (1, 1), padding='same', return_sequence... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aP6R(YKHO, EcVT, EtM5, XkN1):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'\n LedO = EcVT\n EcVT = VIRZ(YKHO.filter, (3, 3, 1), kernel_initializer=YKHO.init, kernel_regularizer=YKHO.regularizer, padding='same')(EcVT)\n EcVT = GVKG(axis=3)(EcVT)\n E... | [
"0.7053969",
"0.6951196",
"0.69148076",
"0.69123244",
"0.69026166",
"0.6895569",
"0.68718547",
"0.68239397",
"0.67982614",
"0.6778847",
"0.6770707",
"0.6738197",
"0.67351675",
"0.67298466",
"0.67144144",
"0.67034507",
"0.67034507",
"0.66972566",
"0.6693836",
"0.66613907",
"0.... | 0.7369076 | 0 |
A block that has a conv layer at shortcut. Arguments | def mQG_(FRUf, Ot1W, KUnM, EtM5, XkN1, FEri=(2, 2)):
DZWo, MXwb, wMAF = KUnM
if nMvt.image_data_format() == 'channels_last':
z5f9 = 3
else:
z5f9 = 1
RmTP = 'res' + str(EtM5) + XkN1 + '_branch'
lPXw = 'bn' + str(EtM5) + XkN1 + '_branch'
WKvO = mN6m(DZWo, (1, 1), strides=FEri, padd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mQG_(YKHO, DVMO, UU6M, b27A):\n return YKHO.add_layer(mQG_, DVMO, UU6M, b27A)",
"def mjQN(YKHO, EcVT, KUnM, eHNT, KCHu, EtM5, XkN1):\n jZbr = 'res' + str(EtM5) + XkN1 + '_branch'\n tagR = 'bn' + str(EtM5) + XkN1 + '_branch'\n LedO = EcVT\n nK5p, Xf5Z, uN8x = KUnM\n EcVT = yHwh(filters=nK5p,... | [
"0.72210574",
"0.6797653",
"0.67508686",
"0.673468",
"0.6702727",
"0.66709983",
"0.66706705",
"0.6638113",
"0.6602907",
"0.6602907",
"0.65983295",
"0.65591985",
"0.6556552",
"0.6553555",
"0.6531844",
"0.65101147",
"0.650745",
"0.6479069",
"0.6421294",
"0.64118993",
"0.6391051... | 0.6319449 | 30 |
Get the Women's Bathroom status. | def nrPe(Ol8d):
jGRS = FxIp.simple('Home/womens/state', hostname='m16.cloudmqtt.com', auth={'username': Hy7s.environ['USERNAME'], 'password': Hy7s.environ['SLACK_PASS']}, port=21775, tls={'ca_certs': _w_5.where()})
return jGRS.payload | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n return d2m_.get(YKHO._mower_status, {}).get('message', YKHO._mower_status)",
"def bUwO(YKHO):\n geh0 = YKHO.parent.power_manager.get_status()\n if geh0 is not None:\n geh0 = geh0[0]\n dCyG = []\n for KAOo in geh0['batt_data']:\n dCyG.append(KAOo)\n ... | [
"0.6468318",
"0.6393942",
"0.6363238",
"0.63195926",
"0.60368097",
"0.6002562",
"0.59756094",
"0.59639066",
"0.59639066",
"0.59282535",
"0.590928",
"0.590928",
"0.590928",
"0.5900921",
"0.5868397",
"0.58677864",
"0.58677864",
"0.58677864",
"0.58677864",
"0.58677864",
"0.58677... | 0.63199383 | 3 |
Creates a new room. The rooms is a list of lists, where every list represents a column. Tiles | def kY8R(yzQ0, MKlR):
abiq = [[' ' for r845 in range(MKlR)] for YRbF in range(yzQ0)]
for WKvO in range(yzQ0):
for LVAh in range(MKlR):
if LVAh == 0 or LVAh == MKlR - 1:
abiq[WKvO][LVAh] = '-'
elif WKvO == 0 or WKvO == yzQ0 - 1:
abiq[WKvO][LVAh] = '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R3aL(TVTK=10, H2v2=10):\n DFSo = [uHxD(id) for id in range(1, TVTK * H2v2 + 1)]\n for bGrB in range(0, H2v2 * TVTK // 10):\n Ggc3 = ajWY(0, H2v2 * TVTK - 1)\n while DFSo[Ggc3].is_accessible == False:\n Ggc3 = ajWY(0, H2v2 * TVTK - 1)\n DFSo[Ggc3].is_accessible = False\n ... | [
"0.7591706",
"0.71845305",
"0.71760666",
"0.7051529",
"0.69662994",
"0.66109204",
"0.6405384",
"0.6376221",
"0.63713443",
"0.630056",
"0.6272139",
"0.62588125",
"0.62555104",
"0.6243304",
"0.6191843",
"0.6115295",
"0.6084862",
"0.60528034",
"0.6038224",
"0.6000447",
"0.596918... | 0.7119422 | 3 |
Draw black hashed vertical gridlines showing major time divisions. | def ZgOD(YKHO, Z1Xo, DhKI, tqct, rAjW):
zJ7C = YKHO._history_top - YKHO._current_pos_pointer_size[1] - 5
for VwNh in DhKI:
WKvO = YKHO.map_stamp_to_x(VwNh, False)
UXqs = YKHO._get_label(rAjW, VwNh - tqct)
BVod = WKvO + YKHO._major_divisions_label_indent
Z1Xo.setBrush(YKHO._defaul... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UMmB(YKHO):\n ITiw = '#D3D3D3'\n for WKvO in range(0, YKHO.width, YKHO.scale):\n YKHO.canvas.create_line(WKvO, 0, WKvO, YKHO.height, fill=ITiw)\n for LVAh in range(0, YKHO.height, YKHO.scale):\n YKHO.canvas.create_line(0, LVAh, YKHO.width, LVAh, fill=ITiw)",
"def bx86(YKHO, yzQ0, MKlR,... | [
"0.69875175",
"0.68149954",
"0.6810751",
"0.6640372",
"0.6640368",
"0.6514969",
"0.64459324",
"0.6404875",
"0.63303",
"0.6300145",
"0.62667954",
"0.6247951",
"0.6237642",
"0.6236573",
"0.6233812",
"0.62030315",
"0.61506754",
"0.6144414",
"0.61432195",
"0.61411273",
"0.6073863... | 0.5688038 | 50 |
Return JSONserializable representation of the object. | def MNRr(YKHO):
yvT9 = super().to_dict()
yvT9['connections'] = YKHO.connections
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO, YEnM):\n return qQXR.dumps(YEnM)",
"def Xxid(YKHO):\n return qQXR.dumps(YKHO, default=lambda z1Rg: z1Rg.__dict__)",
"def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())",
"def Xxid(Emd4, YEnM):\n return qQXR.dumps(YEnM)",
"def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict... | [
"0.8475618",
"0.84085596",
"0.83957154",
"0.838217",
"0.83239555",
"0.8288305",
"0.8275888",
"0.8227394",
"0.81710005",
"0.81556803",
"0.8117269",
"0.8117269",
"0.81065536",
"0.81065536",
"0.81065536",
"0.80988455",
"0.80659264",
"0.8029448",
"0.7999212",
"0.799741",
"0.79870... | 0.0 | -1 |
Returns the type of piece in a position on the board | def Oa6J(YKHO, oeNL, iBIi):
mrj1 = iBIi[YKHO.ind(oeNL)[0]][YKHO.ind(oeNL)[1]]
return mrj1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rz0E(YKHO, oeNL):\n mrj1 = YKHO.get_board()[YKHO.ind(oeNL)[0]][YKHO.ind(oeNL)[1]]\n return mrj1",
"def Oa6J(YKHO):\n return YKHO._piece_type",
"def Oa6J(YKHO):\n return YKHO._piece_type",
"def Oa6J(YKHO):\n return YKHO._piece_type",
"def Oa6J(YKHO):\n return YKHO._piece_type",
"def ... | [
"0.86817193",
"0.7477756",
"0.7477756",
"0.7477756",
"0.7477756",
"0.7477756",
"0.7477756",
"0.74554956",
"0.7289101",
"0.72572297",
"0.69393",
"0.6906759",
"0.66416234",
"0.6636054",
"0.6636054",
"0.66352475",
"0.66080254",
"0.66080254",
"0.66034764",
"0.6596245",
"0.6439447... | 0.8838244 | 0 |
Returns the color of the piece | def PICn(YKHO):
return YKHO._color | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qfpW(mrj1):\n return HRmL.BLACK if mrj1 in {q8RS.BP, q8RS.BN, q8RS.BB, q8RS.BR, q8RS.BQ, q8RS.BK} else HRmL.WHITE",
"def yPyf(YKHO, mrj1):\n if mrj1 == None:\n return None\n if ord(codf.W_KING) <= ord(mrj1) <= ord(codf.W_PAWN):\n return 'white'\n return 'black'",
"def PICn(YKHO):\... | [
"0.7939147",
"0.7717077",
"0.7684216",
"0.76383805",
"0.7632601",
"0.7610868",
"0.7576671",
"0.7567566",
"0.7567566",
"0.7567566",
"0.7567566",
"0.7528468",
"0.75168306",
"0.7486091",
"0.74580204",
"0.7429947",
"0.7415221",
"0.7405115",
"0.73971117",
"0.7374749",
"0.7362447",... | 0.7503997 | 14 |
Returns a list of all the input queues of the NetworkDevice instance. | def k2Dw(YKHO):
return [bIwZ.in_queue for bIwZ in YKHO.ports] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def If3l(YKHO):\n return YKHO.manager.get_queue_list()",
"def rysN(YKHO):\n return rysN.Queues(YKHO)",
"def rysN(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'queues')",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_ta(YKHO):\n return YKHO.__queues",
"def o_... | [
"0.7292679",
"0.6934699",
"0.69167936",
"0.66446567",
"0.66446567",
"0.66446567",
"0.66446567",
"0.66446567",
"0.66446567",
"0.66446567",
"0.66446567",
"0.66446567",
"0.66436195",
"0.6511804",
"0.6432993",
"0.63185084",
"0.604206",
"0.6019034",
"0.5928827",
"0.5894514",
"0.58... | 0.8002415 | 0 |
Integer that uniquely identifies the Message instance. | def Ilxn(YKHO):
return YKHO._identifier | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gS47(YKHO):\n return BlNT.unpack('<H', YKHO.pkt.payload[0:2])[0]",
"def KREW(YKHO) -> int:\n SlLe(YKHO.is_set('message_id'), 'message_id is not set.')\n return YWvJ(int, YKHO.get('message_id'))",
"def _rEH(YKHO):\n return YKHO._payload[1]",
"def dnPv(YKHO):\n return qxeD.uuid4().hex.upper(... | [
"0.76075435",
"0.7545699",
"0.73668766",
"0.7294178",
"0.7286209",
"0.70943856",
"0.68959796",
"0.6863287",
"0.6861981",
"0.6852783",
"0.6852783",
"0.6852783",
"0.6852783",
"0.6852783",
"0.6852783",
"0.6852783",
"0.6852783",
"0.6852783",
"0.6852783",
"0.6852783",
"0.6852783",... | 0.0 | -1 |
Returns true if self and message are identical except for the message identifier. | def xa14(YKHO, Ol8d):
return YKHO.source == Ol8d.source and YKHO.destination == Ol8d.destination and (YKHO.size_bytes == Ol8d.size_bytes) and (YKHO.message_type == Ol8d.message_type) and (YKHO.data == Ol8d.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n Aofo = NotImplemented\n if isinstance(Elif, LuKW):\n Aofo = False\n if YKHO is Elif:\n Aofo = True\n elif YKHO._message_length == Elif._message_length and YKHO._payload_length == Elif._payload_length and (YKHO._headers == Elif._headers) and (YKHO._paylo... | [
"0.75409573",
"0.6845765",
"0.6833236",
"0.67646956",
"0.676177",
"0.67007315",
"0.6687098",
"0.6542909",
"0.6538792",
"0.6526526",
"0.6486344",
"0.64815634",
"0.6458272",
"0.6454662",
"0.6447595",
"0.6419478",
"0.63492614",
"0.6322484",
"0.6286339",
"0.6276497",
"0.6268068",... | 0.735989 | 1 |
Computes cross entropy between predicted and true discrete distrubtions. | def CqbS(aJu6, nvEb, jDK_=-1, _hZ2=1e-07):
nvEb = ZShU.clip(nvEb, _hZ2, 1 - _hZ2)
k3Jw = ZShU.log(nvEb)
return -ZShU.reduce_sum(k3Jw * aJu6, jDK_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CqbS(cgmM, XP5J):\n pass",
"def CqbS(YKHO, TkHw, vBSe):\n C9u8 = len(TkHw)\n h6gv = 0\n for YRbF in range(len(TkHw)):\n hJ1R = TkHw[YRbF]\n qzyC = vBSe[YRbF]\n h6gv += sum([hJ1R[r845] * epAf.log(qzyC[r845]) for r845 in range(len(hJ1R))])\n YKHO.performance += -h6gv / C9u8\... | [
"0.7500701",
"0.73290604",
"0.7280353",
"0.72169656",
"0.71859753",
"0.7156666",
"0.7091561",
"0.70152426",
"0.6998785",
"0.6982236",
"0.6946835",
"0.68625927",
"0.6841047",
"0.68150157",
"0.67943674",
"0.67832506",
"0.6776295",
"0.67718947",
"0.6770149",
"0.67530984",
"0.674... | 0.7321498 | 2 |
Computes sparse cross entropy between logits and labels. | def nrA9(aJu6, nvEb, jDK_=-1, _hZ2=1e-07):
aJu6 = ZShU.one_hot(aJu6, nvEb.shape[jDK_])
return CqbS(aJu6, nvEb, jDK_, _hZ2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bz4B(Crrw=None, KeL5=None, mWFP=None):\n KEuE('sparse_softmax_cross_entropy_with_logits', Crrw, KeL5)\n with IPme.name_scope(mWFP, 'SparseSoftmaxCrossEntropyWithLogits', [Crrw, KeL5]):\n Crrw = IPme.convert_to_tensor(Crrw)\n KeL5 = IPme.convert_to_tensor(KeL5)\n MEUA = qkSJ.cast(KeL5... | [
"0.7383931",
"0.731593",
"0.7313389",
"0.7231131",
"0.71668744",
"0.7103112",
"0.70853496",
"0.70765847",
"0.7019666",
"0.69701236",
"0.6949585",
"0.69058555",
"0.68960786",
"0.68960786",
"0.6874639",
"0.68409586",
"0.68385947",
"0.67765355",
"0.67698383",
"0.67664945",
"0.67... | 0.75039977 | 0 |
(Computed) The etag of the IAM policy. | def ajCK(YKHO) -> str:
return qe4Y.get(YKHO, 'etag') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ajCK(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'etag')",
"def ajCK(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'etag')",
"def ajCK(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'etag')",
"def ajCK(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'etag')",
"def ajCK(YK... | [
"0.70715654",
"0.70715654",
"0.70715654",
"0.70715654",
"0.70715654",
"0.70715654",
"0.70715654",
"0.6971113",
"0.6930204",
"0.6930204",
"0.6930204",
"0.6930204",
"0.6930204",
"0.6930204",
"0.6930204",
"0.6930204",
"0.6930204",
"0.6930204",
"0.6930204",
"0.6930204",
"0.693020... | 0.71049285 | 6 |
Get all instances of this class in the registry. | def lbzt(Emd4, znBS=False):
bUWH = list(Emd4._instances)
if znBS:
for Melv in Emd4.__subclasses__():
bUWH += Melv.get_instances(recursive=znBS)
return list(set(bUWH)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lbzt(Emd4):\n raise NotImplementedError",
"def ZNvw(Emd4):\n return list(Emd4.__dbclass__.__instance_cache__.values())",
"def Ug9b(Emd4):\n ee8c = set()\n for bf9h in Emd4._instances:\n YEnM = bf9h()\n if YEnM is not None:\n yield YEnM\n else:\n ee8c.a... | [
"0.7619687",
"0.72287494",
"0.70653266",
"0.7045179",
"0.6888304",
"0.68455154",
"0.68399835",
"0.6827565",
"0.6720347",
"0.6706184",
"0.66594434",
"0.6623655",
"0.6620567",
"0.65878433",
"0.65827703",
"0.6566919",
"0.6550206",
"0.65336657",
"0.6468475",
"0.64582914",
"0.6431... | 0.732727 | 1 |
Gets all the models which share the MetaModel origin. | def ArHU(Emd4, znBS=False):
FYrf = list(Emd4._models)
if znBS:
for aUGN in Emd4.__subclasses__():
FYrf += aUGN.get_models(recursive=znBS)
return list(FYrf) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYrf(YKHO):\n return YKHO.get_field('model')",
"def FYrf(YKHO):\n return YKHO.get_field('model')",
"def YSnU(YKHO) -> x1iM:\n FYrf = list(YKHO.meta.name)\n print(FYrf)\n return FYrf",
"def fNzR(YKHO):\n FYrf = []\n if not YKHO.related_models:\n return FYrf\n for C3ST in YKH... | [
"0.67832965",
"0.67832965",
"0.6562437",
"0.6512124",
"0.6445747",
"0.63675845",
"0.63225657",
"0.62866795",
"0.6277958",
"0.62186563",
"0.61224395",
"0.6100776",
"0.6088184",
"0.6084223",
"0.6077946",
"0.6038946",
"0.6030036",
"0.6029571",
"0.5980312",
"0.5946005",
"0.594548... | 0.5592448 | 28 |
Insert a new Node at the end of linked list | def JPHp(YKHO, nPrm):
if YKHO.head == None:
YKHO.head = o7DN(nPrm)
else:
ZbOB = YKHO.head
while ZbOB.link != None:
ZbOB = ZbOB.link
ZbOB.link = o7DN(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ze1L(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.head = Msxl(nPrm)\n else:\n ycBG = YKHO.head\n while ycBG.next is not None:\n ycBG = ycBG.next\n ycBG.next = Msxl(nPrm)",
"def m0zt(YKHO, Q6kx, Esd_):\n Esd_.next = Q6kx.next\n Q6kx.next = Esd_",
"def m0zt(Q... | [
"0.8148187",
"0.7815384",
"0.7763275",
"0.7622498",
"0.7496598",
"0.74464536",
"0.74432915",
"0.7405461",
"0.73680526",
"0.7358912",
"0.72806185",
"0.72622913",
"0.72363603",
"0.7232796",
"0.71699554",
"0.7160366",
"0.7143708",
"0.7132515",
"0.7132515",
"0.71115035",
"0.70284... | 0.70837075 | 20 |
Get the event type | def Ku9n(YKHO):
return '%d' % YKHO.type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aihU(tvqc):\n return tvqc.type()",
"def aihU(tvqc):\n return tvqc.type()",
"def FRul(YKHO):\n return YKHO.event_type",
"def hEKL(YKHO) -> int:\n return YKHO.data['args']['eventType']",
"def type(YKHO) -> str:\n return YKHO._event.get('type')",
"def hEKL(YKHO) -> str:\n try:\n ... | [
"0.9124082",
"0.9124082",
"0.90069985",
"0.8711404",
"0.83575463",
"0.82805854",
"0.80476016",
"0.80090797",
"0.77455413",
"0.76935184",
"0.76803297",
"0.76801234",
"0.7523564",
"0.73957133",
"0.71513206",
"0.7093203",
"0.7033223",
"0.69131833",
"0.6899823",
"0.6825652",
"0.6... | 0.0 | -1 |
The servo that was active when the error occurred. | def YeZL(YKHO) -> h8nf[YeZL.Servo]:
return YKHO._servo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sW6F(YKHO, *qIxc, **B2fa) -> ImMB:\n pass",
"def jGRS(YKHO):\n return YKHO._bp.get_motor_status(YKHO._port)",
"def odqM(YKHO):\n YKHO.logger.info('Setting servo ON')\n YKHO.electronics.move_servo(1)\n YKHO.config['servo']['status'] = 1",
"def _mZd(YKHO) -> h8nf['outputs.CSIVXFlexOSStatusCo... | [
"0.6637851",
"0.59305996",
"0.57332313",
"0.5726711",
"0.5699285",
"0.56845474",
"0.5684502",
"0.56725603",
"0.56126374",
"0.55574274",
"0.55151606",
"0.54930377",
"0.5473341",
"0.54207635",
"0.5410516",
"0.53283364",
"0.5266262",
"0.5254195",
"0.52259874",
"0.52212095",
"0.5... | 0.6539491 | 1 |
Initialises a new ReadingLoader instance to read and process data from files generated by the RED reading task. Arguments data_dir String. Path to the directory that contains data files that need to be loaded. Keyword Arguments output_path String. Path to the file in which processed data needs to be stored, or None to ... | def FIMM(YKHO, h_xa, n80H=None, VsgD='ReadingTest', dP7M=None):
if dP7M is None:
dP7M = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'reading_answers.txt')
if not Hy7s.path.isfile(dP7M):
raise Exception("ERROR: Could not find the answer file at '%s'" % dP7M)
m6Me = XTiz.loadtxt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, h_xa, n80H=None, VsgD='Q1_Questions'):\n YKHO._task_name = VsgD\n YKHO.load_from_directory(h_xa, VsgD)\n YKHO.process_raw_data()\n if not n80H is None:\n YKHO.write_processed_data_to_file(n80H)",
"def QaEZ(YKHO, i0XC: str, mA1X: bool=False, Tuqy: str='raw', D5gV: str='A'):\n ... | [
"0.68810457",
"0.6347282",
"0.63151276",
"0.60448104",
"0.59106815",
"0.5840321",
"0.57810795",
"0.5776484",
"0.5745916",
"0.5745365",
"0.569666",
"0.5693174",
"0.56790227",
"0.5678662",
"0.5673701",
"0.56613",
"0.5648839",
"0.5613989",
"0.5597921",
"0.55950487",
"0.5570015",... | 0.6832593 | 1 |
Load the pretrained model weights | def ks9j(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(YKHO):\n if isinstance(YKHO.pretrained, str):\n bo34 = UKxV()\n bo34.info(f'load model from: {YKHO.pretrained}')\n Nh79(YKHO, YKHO.pretrained, strict=False, logger=bo34)\n elif YKHO.pretrained is None:\n pass\n else:\n raise TypeError('pretrained must be a str o... | [
"0.81840134",
"0.80532205",
"0.7929311",
"0.7929236",
"0.78598017",
"0.7832963",
"0.78319764",
"0.777211",
"0.7706451",
"0.76879597",
"0.7657897",
"0.76478493",
"0.76099664",
"0.760729",
"0.7571413",
"0.7569362",
"0.7523776",
"0.75005925",
"0.75003874",
"0.7451586",
"0.741773... | 0.8207032 | 0 |
Initializes the model, creates the required layers. | def FIMM(YKHO, mWFP, GPtr):
super(J9dV, YKHO).__init__(mWFP, J9dV, GPtr)
YKHO.key_feature_maps = YKHO.stream_keys['feature_maps']
YKHO.key_question_encodings = YKHO.stream_keys['question_encodings']
YKHO.key_outputs = YKHO.stream_keys['outputs']
YKHO.feature_maps_height = YKHO.globals['feature_maps_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J2K6(YKHO):\n YKHO._init_predictor()\n if YKHO.use_edge_fusion:\n YKHO._init_edge_module()",
"def kHAz(YKHO):\n YKHO.create_variables()\n YKHO.create_placeholders()\n YKHO.build_model()\n YKHO.reset_lr(None, True)\n YKHO.build_loss()\n YKHO.initialised = True",
"def Gv23(YKHO... | [
"0.75353396",
"0.7385353",
"0.7351519",
"0.7341105",
"0.73163855",
"0.72941434",
"0.7234489",
"0.72314245",
"0.7228721",
"0.7154608",
"0.7117338",
"0.69305784",
"0.6902656",
"0.68918926",
"0.68781185",
"0.68505406",
"0.684789",
"0.68447316",
"0.68215775",
"0.67649424",
"0.673... | 0.0 | -1 |
Function returns a dictionary with definitions of output data produced the component. | def Q1jq(YKHO):
return {YKHO.key_outputs: NXGg([-1, YKHO.output_size], [ht2j.Tensor], 'Batch of outputs [BATCH_SIZE x OUTPUT_SIZE]')} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q1jq(YKHO):\n return {}",
"def jSjS(YKHO):\n aT8L = {}\n for n80H in YKHO.provided_outputs:\n aT8L[n80H.full_path] = YKHO.get_value(n80H)\n return aT8L",
"def Q1jq(YKHO):\n return {YKHO.key_outputs: NXGg([-1] * (YKHO.num_inputs_dims - 1) + [YKHO.input_size], [ht2j.Tensor], 'Batch of o... | [
"0.79142004",
"0.7396703",
"0.72935414",
"0.714347",
"0.68933153",
"0.67715305",
"0.6712582",
"0.6655782",
"0.6595801",
"0.6583784",
"0.6554832",
"0.65446115",
"0.6532827",
"0.6519101",
"0.65083754",
"0.64225125",
"0.6382813",
"0.6379986",
"0.63664275",
"0.6361891",
"0.635461... | 0.7505002 | 1 |
x a tensor of shape (batch, input_seq_len, dm)containing the input to the encoder training a boolean to determine if the model is training mask the mask to be applied for multi head attention | def pOv4(YKHO, WKvO, Y9ns, ZHfW):
tsWk = ZylS.shape(WKvO)[1]
wjQX = YKHO.embedding(WKvO)
wjQX *= ZylS.math.sqrt(ZylS.cast(YKHO.dm, ZylS.float32))
wjQX += YKHO.positional_encoding[:, :tsWk, :]
E9hj = YKHO.dropout(wjQX, training=Y9ns)
for YRbF in range(YKHO.N):
E9hj = YKHO.blocks[YRbF](E9h... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, WKvO, ZHfW):\n WKvO = YKHO.sublayer[0](WKvO, lambda WKvO: YKHO.self_attn(WKvO, WKvO, WKvO, ZHfW))\n return YKHO.sublayer[1](WKvO, YKHO.feed_forward)",
"def KVH6(YKHO, WKvO: Tensor) -> llWB:\n o4D3 = WKvO[:, 0]\n ajwV = WKvO[:, 1]\n AvSC, h6hZ = (YKHO.encoder(o4D3), YKHO.encoder(ajwV... | [
"0.68944144",
"0.6433218",
"0.6370818",
"0.6343878",
"0.6306005",
"0.6193689",
"0.6187625",
"0.61835486",
"0.6144924",
"0.6137682",
"0.61019653",
"0.60944766",
"0.603872",
"0.60364276",
"0.6025595",
"0.59151536",
"0.5872006",
"0.5864127",
"0.5857473",
"0.5822816",
"0.5774186"... | 0.629951 | 5 |
x a tensor of shape (batch, target_seq_len, dm)containing the input to the decoder encoder_output a tensor of shape (batch, input_seq_len, dm) containing the output of the encoder training a boolean to determine if the model is training look_ahead_mask the mask to be applied to the first multi head attention layer padd... | def pOv4(YKHO, WKvO, qzxX, Y9ns, Ywfs, Mi3O):
tsWk = ZylS.shape(WKvO)[1]
HfyR = {}
WKvO = YKHO.embedding(WKvO)
WKvO *= ZylS.math.sqrt(ZylS.cast(YKHO.dm, ZylS.float32))
WKvO += YKHO.positional_encoding[:, :tsWk, :]
WKvO = YKHO.dropout(WKvO, training=Y9ns)
for YRbF in range(YKHO.N):
WK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, QTBn, NqP3):\n uuHL = QTBn.clone()\n \"\\n ___QUESTION-6-DESCRIBE-D-START___\\n What is the purpose of encoder_padding_mask? What will the output shape of `state' Tensor \\n be after multi-head attention? HINT: formulate your answer in terms of \\n constituent vari... | [
"0.68980443",
"0.6785151",
"0.672374",
"0.666072",
"0.6574727",
"0.649962",
"0.64837235",
"0.6482765",
"0.6397254",
"0.63569766",
"0.634568",
"0.6323986",
"0.63232094",
"0.62556964",
"0.62244546",
"0.6217759",
"0.6191466",
"0.6188659",
"0.61652607",
"0.6162906",
"0.6146513",
... | 0.72239923 | 0 |
N the number of blocks in the encoder and decoder dm the dimensionality of the model h the number of heads hidden the number of hidden units in the fully connected layers input_vocab the size of the input vocabulary target_vocab the size of the target vocabulary max_seq_input the maximum sequence length possible for th... | def FIMM(YKHO, ywwl, p37X, MKlR, Zode, AlrR, OjVv, M8bY, TsCL, TyPQ=0.1):
super().__init__()
YKHO.encoder = UYOu(ywwl, p37X, MKlR, Zode, AlrR, M8bY, TyPQ)
YKHO.decoder = quBk(ywwl, p37X, MKlR, Zode, OjVv, TsCL, TyPQ)
YKHO.linear = ZylS.keras.layers.Dense(OjVv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n super(My6_, YKHO).__init__()\n YKHO.lconvtwos = U78l.ModuleList([U78l.Sequential(U78l.Dropout(p=0.1), U78l.Conv2d(128, 32, kernel_size=(3, 3), padding=1), U78l.BatchNorm2d(32), U78l.Conv2d(32, 64, kernel_size=(3, 3), padding=1), U78l.BatchNorm2d(64)), U78l.Sequential(U78l.Conv2d(64, 32, ker... | [
"0.6649107",
"0.6574562",
"0.6515605",
"0.64855504",
"0.6468661",
"0.64408153",
"0.64387065",
"0.64374036",
"0.6415218",
"0.63973427",
"0.6371662",
"0.6340037",
"0.62952334",
"0.6289063",
"0.62647885",
"0.62570995",
"0.6251119",
"0.6237663",
"0.6213453",
"0.61888",
"0.6172886... | 0.7143646 | 0 |
Return the state attributes of the sensor. | def TzCU(YKHO) -> dict[str, ImMB]:
U5bT = {ksSA: YKHO._source_entity_id, FVxD: YKHO._coefficients}
if YKHO._source_attribute:
U5bT[XfMx] = YKHO._source_attribute
return U5bT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO.attr",
"def R1i3(YKHO) -> cuzp[str, any]:\n return YKHO._device.state_attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
... | [
"0.8418945",
"0.82497084",
"0.8243777",
"0.8243777",
"0.8200083",
"0.8169021",
"0.8169021",
"0.8159991",
"0.8159991",
"0.8145903",
"0.8145903",
"0.8145903",
"0.8145903",
"0.8145903",
"0.8145903",
"0.8145903",
"0.8145903",
"0.8145903",
"0.8145903",
"0.8145903",
"0.8145903",
... | 0.0 | -1 |
Gets the color_depth of this GIFOutput. Amount of colors in palette | def YHnl(YKHO):
return YKHO._color_depth | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kRvm(YKHO):\n return YKHO.__num_explored",
"def n3V4(YKHO):\n YKHO._numColorsInUse = YKHO._readInt('How many colors are available', 2, len(YKHO._palette))\n return YKHO._numColorsInUse",
"def WGCR(YKHO):\n return len(YKHO._sizes) + len(YKHO._ratios) - 1",
"def k2Z_(*qIxc, **B2fa):\n return... | [
"0.68169844",
"0.65945107",
"0.65047747",
"0.64739394",
"0.6416106",
"0.6415538",
"0.6361293",
"0.63216704",
"0.6281688",
"0.62379676",
"0.622544",
"0.61876786",
"0.6183844",
"0.6128096",
"0.60531795",
"0.60531795",
"0.60180753",
"0.592283",
"0.5902543",
"0.5848112",
"0.58416... | 0.8169639 | 0 |
Sets the color_depth of this GIFOutput. Amount of colors in palette | def YHnl(YKHO, YHnl):
YKHO._color_depth = YHnl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QKls(*qIxc, **B2fa):\n return nAU3.Bitmap_SetDepth(*qIxc, **B2fa)",
"def gSdU(YKHO, rb7a):\n YKHO._depth = rb7a\n if YKHO._scaled_image_coordinates is None:\n YKHO._initialise()\n else:\n YKHO._update_depth()",
"def YHnl(YKHO):\n return YKHO._color_depth",
"def CNvR(YKHO):\n ... | [
"0.6401659",
"0.6380821",
"0.6300926",
"0.62612724",
"0.5997467",
"0.5974511",
"0.5967667",
"0.5931414",
"0.5931148",
"0.59209645",
"0.58476746",
"0.58119255",
"0.57820714",
"0.57815474",
"0.5667481",
"0.5611237",
"0.5600413",
"0.5562935",
"0.5406338",
"0.53640157",
"0.535976... | 0.756508 | 0 |
Gets the height of this GIFOutput. Height of the media to be rendered, in pixels. Should be the height of your scenes unless a smaller resolution is needed. Resolution higher than the scene resolution reduces quality. The width is automatically calculated to keep the aspect ratio. | def H2v2(YKHO):
return YKHO._height | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xglF(YKHO) -> int:\n return YKHO.rsimulator.get_frame_height()",
"def xglF(YKHO):\n if YKHO.height:\n return YKHO.height\n if not YKHO._oembed:\n return ''\n return YKHO._oembed.get('height', None)",
"def H2v2(YKHO):\n return YKHO.config.get('resolution', {}).get('y', 1080)",
... | [
"0.7565148",
"0.73991317",
"0.7380456",
"0.736369",
"0.7310083",
"0.7279103",
"0.72679317",
"0.7228617",
"0.72236824",
"0.71272886",
"0.71267223",
"0.70312136",
"0.70312136",
"0.7028361",
"0.70189685",
"0.7004611",
"0.6970833",
"0.6970833",
"0.6967758",
"0.69549733",
"0.69441... | 0.66156316 | 56 |