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 |
|---|---|---|---|---|---|---|
Get the filter name for the request data parameter. | def ZZ6m(Emd4, xqoZ, wvau=None):
if not xqoZ:
return xqoZ
y0cW = '%s%s' % (wvau or '', pQgP)
if wvau and xqoZ.startswith(y0cW):
xqoZ = xqoZ[len(y0cW):]
if xqoZ in Emd4.base_filters:
return xqoZ
if xqoZ[-1] == '!' and xqoZ[:-1] in Emd4.base_filters:
return xqoZ[:-1]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ihRa(YKHO):\n pass",
"async def get_filter(YKHO, **B2fa: Any) -> str:\n return YKHO._telescope.filter_name",
"def mWFP(YKHO) -> q8sV:\n return YKHO.__name",
"def filter(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'filter')",
"def XPBh(YKHO):\n return YKHO.request.GET.get(YKHO.get_json_ca... | [
"0.79879385",
"0.73243344",
"0.675019",
"0.65612745",
"0.6520124",
"0.6505116",
"0.64178914",
"0.6189231",
"0.6183338",
"0.61544156",
"0.6082367",
"0.60678583",
"0.6023081",
"0.60075915",
"0.6005047",
"0.59691584",
"0.59691584",
"0.587701",
"0.5817631",
"0.5786401",
"0.576572... | 0.6619432 | 3 |
Filter the provided `queryset` by the `related_filtersets`. It is recommended that you override this method to change the filtering behavior across relationships. | def RiY3(YKHO, SR0I):
for XvR5, AVzq in YKHO.related_filtersets.items():
y0cW = '%s%s' % (NnTR(YKHO, XvR5), pQgP)
if not any((BWXx.startswith(y0cW) for BWXx in YKHO.data)):
continue
vXX7 = YKHO.filters[XvR5].field_name
k5aI = pQgP.join([vXX7, 'in'])
hWCj = Qm01(AV... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L5oV(YKHO, SR0I, Qu4F=None, t5xf=None):\n if Qu4F:\n SR0I = SR0I.filter(Qu4F)\n if t5xf:\n SR0I = SR0I.exclude(t5xf)\n return SR0I",
"def udgm(YKHO):\n KVjs = U8Lr()\n for XvR5 in YKHO.related_filters:\n if XvR5 not in YKHO.filters:\n continue\n eHNT = YK... | [
"0.67854434",
"0.6782465",
"0.66839457",
"0.6680913",
"0.646492",
"0.63564074",
"0.63288736",
"0.63143224",
"0.63010234",
"0.6240037",
"0.6125244",
"0.60945296",
"0.608679",
"0.6075394",
"0.6073214",
"0.60558784",
"0.60067743",
"0.60016656",
"0.5998127",
"0.59923685",
"0.5961... | 0.84336936 | 0 |
Check if multiple or single file is chosen. | def B2bf(iumf):
mLGw = len(iumf)
if mLGw == 1:
xuug = bool(1)
else:
xuug = bool(0)
return xuug | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYUe(YKHO):\n return 'files' in YKHO.torrent['info']",
"def vDRj():\n if not hp1l.is_prompt():\n return [fnT7.get_random_file()]\n Ghho = hp1l.select_category()\n if not Ghho:\n return fnT7.select_file_upload_method()\n hp1l.print('Select Files or a Folder')\n RRlC = []\n w... | [
"0.6862918",
"0.6714143",
"0.64036655",
"0.6360947",
"0.62420434",
"0.6179852",
"0.6168158",
"0.606886",
"0.6025578",
"0.5963181",
"0.59183747",
"0.5914388",
"0.59100074",
"0.59086585",
"0.5877628",
"0.5876562",
"0.5874005",
"0.58681023",
"0.5844574",
"0.5818032",
"0.5810063"... | 0.6930178 | 0 |
Called when using a nonce. This method should return C{True} if the nonce has not been used before, and store it for a while to make sure nobody tries to use the same value again. If the nonce has already been used or the timestamp is not current, return C{False}. You may use L{openid.store.nonce.SKEW} for your timesta... | def X448(YKHO, QaO6, E3oo, NTfD):
if _Upe(E3oo):
return False
try:
seb0 = CWWz.objects(server_url=QaO6, salt=NTfD, timestamp=E3oo)
except RuJL.DoesNotExist:
seb0 = []
if len(seb0) == 0:
print('Timestamp = %s' % E3oo)
CWWz(server_url=QaO6, salt=NTfD, timestamp=E3oo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X448(YKHO, bEAa):\n xDcj = EVcG.Query('Nonce')\n xDcj['nonce ='] = bEAa\n xDcj['created >='] = qcWV.datetime.now() - qcWV.timedelta(hours=6)\n dixj = xDcj.Get(1)\n if dixj:\n EVcG.Delete(dixj[0].key())\n return True\n else:\n return False",
"def wdHT(N0up, QmYg, bEAa):\... | [
"0.73136973",
"0.6600226",
"0.6195637",
"0.61672926",
"0.61513644",
"0.6094848",
"0.6070164",
"0.6020712",
"0.6004455",
"0.5996191",
"0.5996191",
"0.59095937",
"0.5881976",
"0.5801852",
"0.5756545",
"0.569583",
"0.5590977",
"0.5563972",
"0.55559796",
"0.5550194",
"0.5542444",... | 0.76029676 | 0 |
return a list of manifests that are applied on this machine | def bKCn():
JeSG = [WKvO for WKvO in Hy7s.walk(nAL2)]
return {'manifests': JeSG} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wE12(YKHO):\n return YKHO._available_manifest_strands",
"def rzx2():\n import enaml\n with enaml.imports():\n from .pulses.manifest import PulsesManagerManifest\n from .tasks.manifest import PulsesTasksManifest\n from .measure.manifest import PulsesMeasureManifest\n return [P... | [
"0.7041786",
"0.6661976",
"0.65691805",
"0.62815154",
"0.62224513",
"0.6135718",
"0.60951227",
"0.60727566",
"0.5942932",
"0.58993065",
"0.588448",
"0.58641076",
"0.58577496",
"0.5830976",
"0.58182544",
"0.58155537",
"0.58051246",
"0.5784909",
"0.5783124",
"0.57371914",
"0.57... | 0.5902238 | 9 |
Avoid using literal_eval for simple addition expressions. Returns sum of all positive numbers. | def Qdnq(lsX7):
Cne9 = lsX7.split('+')
rSSZ = [float(Ty9i) for Ty9i in Cne9]
wjRY = sum([Ty9i for Ty9i in rSSZ if Ty9i > 0.0])
return wjRY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ACpp(GgvZ):\n wjRY = 0.0\n IyLW = seET.add\n for eOtH in GgvZ:\n if eOtH == '+':\n IyLW = seET.add\n elif eOtH == '-':\n IyLW = seET.sub\n else:\n wjRY = IyLW(wjRY, eOtH)\n return wjRY",
"def LLeQ(kLQb):\n x_rR = kLQb.split('+')\n wjRY =... | [
"0.71442914",
"0.70861304",
"0.62418014",
"0.62357926",
"0.6229933",
"0.62040615",
"0.6063164",
"0.60560673",
"0.6047006",
"0.5978517",
"0.59740245",
"0.59523994",
"0.59317786",
"0.59307003",
"0.5925646",
"0.5923283",
"0.5915873",
"0.5901256",
"0.58456707",
"0.5834098",
"0.58... | 0.65476674 | 2 |
Set a new password for encryption. | def G3s8(YKHO, jTXt):
YKHO.__init__(password=jTXt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zZft(YKHO, zN5h):\n pass",
"def G3s8(YKHO, BWXx):\n r8hN = HBct.sha256()\n r8hN.update('-'.join([str(qcWV.now()), GPtr.get('security.password_salt')]))\n YKHO.salt = r8hN.hexdigest()\n YKHO.password_pending = False\n YKHO.password = YKHO.__encrypt(BWXx)",
"def G3s8(YKHO, jTXt):\n YKHO.... | [
"0.8377578",
"0.8145898",
"0.8129737",
"0.80971813",
"0.8089785",
"0.80798155",
"0.80655986",
"0.8056996",
"0.8050682",
"0.7988545",
"0.7963893",
"0.7942522",
"0.7855977",
"0.7843381",
"0.7838417",
"0.78155446",
"0.78155446",
"0.78155446",
"0.78155446",
"0.7810031",
"0.778050... | 0.7456274 | 39 |
Get two lists (for rows and columns) where the row/col index gives the list of col/row indexes of the nonzero elements. | def Gw1q(YKHO, vb7U):
VCFe, xL7R = vb7U.shape
QC3e, x6px = ([], [])
for YRbF in range(VCFe):
QZS9 = VEDo.where(vb7U[YRbF] > 0)[0]
if len(QZS9) == 0:
raise Exception('Row {} is composed of zeros'.format(YRbF))
QC3e.append(QZS9)
for r845 in range(xL7R):
QZS9 = V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gfID(QTBn):\n JnVq = []\n for begg, rdlD in enumerate(QTBn.board):\n for TMa9, VmPb in enumerate(rdlD):\n if VmPb == 0:\n JnVq.append([begg, TMa9])\n return JnVq",
"def Dn0W(QTBn):\n JnVq = []\n for YRbF, rdlD in enumerate(QTBn):\n for r845, fvDH in enum... | [
"0.70034736",
"0.6999915",
"0.6924702",
"0.6525192",
"0.6505699",
"0.6490474",
"0.64878106",
"0.6456846",
"0.6356905",
"0.63506573",
"0.6348926",
"0.62902606",
"0.6273074",
"0.62722355",
"0.6267735",
"0.62005794",
"0.6167228",
"0.61156595",
"0.6083813",
"0.6070011",
"0.606649... | 0.72458094 | 0 |
Return an ndarray having row per element in data and one column | def t95D(YKHO, nPrm):
return qw7D(nPrm, dtype=fSkI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLtf(nPrm):\n oBBj = oyIN.array(nPrm)\n qw7D = []\n for YRbF in range(0, oBBj.shape[1]):\n qw7D.append(oBBj[:, YRbF])\n return oyIN.array(qw7D)",
"def yLtf(nPrm):\n oBBj = oyIN.array(nPrm)\n qw7D = []\n for YRbF in range(0, oBBj.shape[1]):\n qw7D.append(oBBj[:, YRbF])\n ... | [
"0.7534442",
"0.7534442",
"0.70013255",
"0.6785662",
"0.6688916",
"0.6645851",
"0.6567787",
"0.65319115",
"0.6462152",
"0.6382598",
"0.63573694",
"0.62963057",
"0.6281688",
"0.627003",
"0.623539",
"0.62131137",
"0.61992896",
"0.6181052",
"0.6180269",
"0.616434",
"0.6149688",
... | 0.573665 | 41 |
Get updated learning rate. | def gWpO(YKHO):
if not YKHO._initialized:
YKHO._initialized = True
return YKHO.base_lrs
YPaw = YKHO.last_epoch + 1
YKHO._cycle_counter = YPaw - YKHO._last_restart
yj8H = [YKHO.eta_min + (tspZ - YKHO.eta_min) / 2 * (oyIN.cos(oyIN.pi * (YKHO._cycle_counter % YKHO._updated_cycle_len) / YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkTt(YKHO):\n GPtr = YKHO.config\n JQpF = LXsA.adjust_learning_rate(YKHO.optimizer, YKHO.epoch, GPtr['training']['learning_rate'], decay=GPtr['training']['lr_decay_rate'], step=GPtr['training']['lr_decay_step'])\n YKHO.cur_lr = JQpF\n return JQpF",
"def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.0000... | [
"0.79935455",
"0.79565597",
"0.78638303",
"0.76802355",
"0.7612205",
"0.7602973",
"0.7580131",
"0.74478555",
"0.7442717",
"0.74091333",
"0.7381036",
"0.7336032",
"0.7336032",
"0.7331142",
"0.72541714",
"0.72166234",
"0.72166234",
"0.71983415",
"0.7194819",
"0.70593596",
"0.70... | 0.61572826 | 75 |
Compare the duration to the example. | def sbOv():
QA2t = {'C': [], 'A': ['C'], 'F': ['C'], 'B': ['A'], 'D': ['A'], 'E': ['B', 'D', 'F']}
assert bynC(QA2t, 2, 0) == 15 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tx5H(YKHO):\n for WayG, bGrB, bGrB in YKHO.test_cases:\n YKHO.assertEqual(d8yM(WayG).duration, WayG)",
"def cMwg(YKHO):\n OF1R = 0.1\n akX3 = {'no_timesteps': 1000, 'no_sweeps': 10, 'no_channels': 4}\n NK8u = akX3['no_timesteps'] * OF1R\n OFDP = QZcN.Recording(oyIN.zeros([akX3['no_chann... | [
"0.6993373",
"0.64634085",
"0.6261238",
"0.6072691",
"0.6072691",
"0.60668623",
"0.60171825",
"0.58592576",
"0.58530915",
"0.58014023",
"0.56802076",
"0.5668855",
"0.5660802",
"0.55880255",
"0.55880255",
"0.55513406",
"0.5545389",
"0.5539826",
"0.55272925",
"0.55245674",
"0.5... | 0.5158579 | 75 |
Return the overall mean score of a Player | def edkP(oyg0, rV9r, UYXv, _mSQ=None, AV8x=None):
Umg3 = []
if AV8x is not None:
_0VL = oyIN.random.choice(len(UYXv), AV8x)
UYXv = [UYXv[YRbF] for YRbF in _0VL]
if _mSQ is not None:
_mSQ = [_mSQ[YRbF] for YRbF in _0VL]
for OuMq, wpLl in UYXv:
oyg0.reset()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LonD(HODG):\n return sum(HODG) / len(HODG)",
"def eyjh(YKHO):\n return sum(YKHO.scores) / len(YKHO.scores)",
"def pHjC(YKHO):\n return YKHO._total_score",
"def mYPT(sV3k: List[Movie]) -> float:\n return round(sum([r8hN.score for r8hN in sV3k]) / len(sV3k), 1)",
"def O5mg(YKHO) -> float:\n ... | [
"0.7505888",
"0.7412792",
"0.7344528",
"0.72962356",
"0.713673",
"0.7091335",
"0.7069279",
"0.68148583",
"0.68021953",
"0.6720858",
"0.6720858",
"0.6720858",
"0.6719883",
"0.670838",
"0.6703316",
"0.66747105",
"0.66253746",
"0.66124016",
"0.65976983",
"0.6594148",
"0.65919864... | 0.61413795 | 86 |
Compares color to pawn color, returns true if they are the same. | def HE49(YKHO, qfpW):
return YKHO.color == qfpW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WqoG(YKHO, Elif: 'Piece') -> bool:\n return YKHO.color == Elif.color",
"def jRxK(YKHO, JGOR):\n if not YKHO.color_in_check(JGOR):\n return False\n qJGe = True\n for WKvO, LVAh in YKHO.__players[JGOR]:\n oLdq = YKHO._get_piece_moves(WKvO, LVAh)\n for Br5Q in oLdq:\n ... | [
"0.7082352",
"0.6642375",
"0.6420325",
"0.63803416",
"0.6271055",
"0.6236686",
"0.62152225",
"0.6214757",
"0.6146159",
"0.6136335",
"0.6056689",
"0.6049656",
"0.6021747",
"0.60207504",
"0.6019101",
"0.60071254",
"0.6001189",
"0.6000824",
"0.59897274",
"0.59405607",
"0.5914164... | 0.6147662 | 8 |
A custom Django template tag for encoding URL query string parameters. | def DCBk(*bGrB, **B2fa):
CWA5 = {G1Hx: Ty9i for G1Hx, Ty9i in B2fa.items() if Ty9i is not None}
if CWA5:
return '?{}'.format(QIYp(CWA5))
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AsB1(QpfX, **B2fa):\n xDcj = QpfX['request'].GET.dict()\n xDcj.update(B2fa)\n return QIYp(xDcj)",
"def AsB1(QpfX, **B2fa):\n xDcj = QpfX['request'].GET.dict()\n xDcj.update(B2fa)\n return QIYp(xDcj)",
"def Hj_B(QePW):\n return Wv2z(QePW)",
"def TcF5(*qIxc, **B2fa):\n qIxc = dict(q... | [
"0.6936687",
"0.6936687",
"0.65685886",
"0.6343588",
"0.62395805",
"0.6233473",
"0.6176143",
"0.61670446",
"0.6154101",
"0.6131022",
"0.60958886",
"0.60618484",
"0.6031017",
"0.6029763",
"0.5963693",
"0.59559804",
"0.59069306",
"0.57844955",
"0.57651424",
"0.5763139",
"0.5728... | 0.5674797 | 24 |
Checks whether or not reply to message m2 should be faked If m1's field is None then m2's field value is not compared at all | def EkGj(gpRq, E43s):
gpRq = gpRq.serialize()
E43s = E43s.serialize()
yk4i = False
for YRbF in range(len(gpRq)):
if gpRq[YRbF] is None:
continue
if gpRq[YRbF] != E43s[YRbF]:
yk4i = True
break
return not yk4i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v8t4(YKHO):\n\n class MyMessage(yEHD.Message):\n A2So = yEHD.StringField(1)\n gpRq = okUZ()\n E43s = okUZ()\n E43s.my_field = None\n YKHO.assertEquals(gpRq, E43s)",
"def xa14(YKHO, Elif):\n if not isinstance(Elif, T5Ke):\n return False\n return YKHO.__dict__ == Elif.__dict_... | [
"0.61221015",
"0.60199493",
"0.5698596",
"0.56491196",
"0.56256944",
"0.55935615",
"0.5585704",
"0.55634177",
"0.55492973",
"0.55470234",
"0.55111665",
"0.5495307",
"0.546077",
"0.5453699",
"0.5440305",
"0.5392359",
"0.5371638",
"0.5361735",
"0.5357879",
"0.53478",
"0.5341549... | 0.7252573 | 0 |
Gives access to the hidden state of the individual components of the input batch. Since encode() encodes the whole batch of sequences in one call, but decoding is performed for every batch sequence individually, this method becomes necessary. | def uXac(YKHO, ERVO, d6pt):
return (ERVO[0][:, d6pt:d6pt + 1].contiguous(), ERVO[1][:, d6pt:d6pt + 1].contiguous()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kLcZ(YKHO, WKvO):\n bGrB, syQw = YKHO.encoder(WKvO)\n return syQw",
"def BbPK(YKHO):\n with ZylS.variable_scope('encoding'):\n YKHO.sep_p_encodes, bGrB = IQ89(YKHO.p_emb, YKHO.p_length, YKHO.hidden_size)\n ZylS.get_variable_scope().reuse_variables()\n YKHO.sep_q_encodes, bGrB = ... | [
"0.6531696",
"0.6165337",
"0.61568475",
"0.59570867",
"0.59406155",
"0.5908961",
"0.58463246",
"0.5821808",
"0.5770365",
"0.57613736",
"0.57613736",
"0.5760088",
"0.5760088",
"0.5760088",
"0.5757003",
"0.57509893",
"0.5750539",
"0.57451725",
"0.570995",
"0.5698639",
"0.569119... | 0.0 | -1 |
Performs one single decoding step for one example. It passes the hidden state for the decoder and input the tensor with the embeddings vector for the input token. The result of the decoder is passed to the output net to obtain the logits for every item in the dictionary. It outputs those logits and the new hidden state... | def BptS(YKHO, syQw, bVvo):
yvT9, q4zp = YKHO.decoder(bVvo.unsqueeze(0), syQw)
yvT9 = YKHO.output(yvT9)
return (yvT9.squeeze(dim=0), q4zp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_():\n with ZylS.Session() as cb_Q:\n C3ST = LQs7(True)\n C3ST.batch_size = 1\n fPO8(cb_Q, C3ST)\n CtWL, VboW = Nhuv.get_vocabulary(vPBo.data_dir, vPBo.words, vPBo.word_embeddings, vPBo.vocab_size)\n HwRy.stdout.write('> ')\n HwRy.stdout.flush()\n yAmx = H... | [
"0.7202692",
"0.6928575",
"0.6782827",
"0.6653837",
"0.65899867",
"0.6541342",
"0.6538928",
"0.6499897",
"0.6485077",
"0.641824",
"0.64113784",
"0.637471",
"0.6374259",
"0.6316419",
"0.6304639",
"0.62677693",
"0.62158835",
"0.6194001",
"0.61918765",
"0.61859244",
"0.6164222",... | 0.0 | -1 |
Return the query list as a DataFrame. | def Y2zE():
COhH = dSO_.list_data_environments()
print('Generating documentation for for the following providers')
print(', '.join(list(S1Wq)))
print('Skipping the following providers')
print(', '.join(list(set(COhH) - set(S1Wq))))
v8co = {Zu6c: dSO_(Zu6c) for Zu6c in PRqg.tqdm(S1Wq)}
F1nL =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kTk2(xDcj):\n jQ3Z = rLdf.DataFrame(xDcj.all())\n jQ3Z.columns = [WKvO['name'] for WKvO in xDcj.column_descriptions]\n return jQ3Z",
"def FpoK(xDcj):\n jQ3Z = rLdf.DataFrame(data=list(Hs6x.product([0, 1], repeat=len(xDcj.variables))), columns=xDcj.variables)\n jQ3Z['p'] = xDcj.values.flatten()... | [
"0.7733995",
"0.7497827",
"0.73814756",
"0.7326154",
"0.7304706",
"0.7227527",
"0.7195444",
"0.71918434",
"0.71499586",
"0.7113315",
"0.70896244",
"0.7081603",
"0.70788634",
"0.70317006",
"0.70228714",
"0.7020063",
"0.7013619",
"0.6978598",
"0.6976442",
"0.68564945",
"0.68412... | 0.6495787 | 50 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, j5mX):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8089139",
"0.8089139",
"0.8054507",
"0.79827213",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
"0.79669285",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
The module that this command is registered to. Will return `None` if this command has not yet been registered. | def yR_P(YKHO) -> h8nf[awyi]:
return YKHO._module | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JEuV(YKHO):\n return YKHO.module",
"def yR_P(YKHO):\n return YKHO._module",
"def yR_P(YKHO):\n return YKHO._module",
"def yR_P(YKHO):\n return YKHO._module",
"def yR_P(YKHO):\n return YKHO._module",
"def yR_P(YKHO):\n return YKHO._module",
"def yR_P(YKHO):\n return YKHO.lib.mod... | [
"0.8003115",
"0.7536935",
"0.7536935",
"0.7536935",
"0.7536935",
"0.7536935",
"0.75261885",
"0.7365347",
"0.70169824",
"0.68556315",
"0.67025244",
"0.66628325",
"0.66449714",
"0.6640801",
"0.6626384",
"0.652614",
"0.6519318",
"0.648883",
"0.64871985",
"0.64552623",
"0.6444489... | 0.74596643 | 7 |
The User that invoked the command. | def wX0N(YKHO) -> mv1M:
return YKHO.msg.source | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CBIr(YKHO):\n return YKHO.getattr('user')",
"def CBIr(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'user')",
"def CBIr(YKHO) -> h8nf[str]:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('user', M56f)\n return GSuR.execute_sync(h8nf[str])",
"def CBIr(YKHO):\n return YKHO._user",
"... | [
"0.80029744",
"0.78830194",
"0.7869089",
"0.7831611",
"0.7831611",
"0.7831611",
"0.7831611",
"0.7830656",
"0.77808654",
"0.77667016",
"0.77667016",
"0.77667016",
"0.7764792",
"0.77462137",
"0.7722865",
"0.7709639",
"0.77054626",
"0.77054626",
"0.7655964",
"0.7575146",
"0.7570... | 0.74655455 | 22 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues, WHnJ=False, KLAd='/home/temp/moriz/validation/', vh9Z=None, lQYk='pdf'):
if not leAC:
leAC = 'Confusion matrix'
if NkkI:
Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]
LZpg, aNZO = QrM1.subplots()
Xn71 = aNZ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"... | [
"0.8194862",
"0.80949175",
"0.8029915",
"0.8019153",
"0.79941195",
"0.7991258",
"0.7980955",
"0.7976606",
"0.79610753",
"0.79590565",
"0.79378676",
"0.7934962",
"0.7934504",
"0.79313844",
"0.7926313",
"0.7924577",
"0.79241234",
"0.7923211",
"0.7923023",
"0.7921931",
"0.791787... | 0.0 | -1 |
Use arpack to calculate hte local density of states at a certain energy | def eDW_(iaHs, D9jv=10, bYji=False, yJiH=0, tTpl=0.0, RA_F=0.01):
if bYji:
MP7n, EUkm = SNz4.eigs(iaHs, k=int(D9jv), which='LM', sigma=tTpl + 1j * RA_F, tol=yJiH)
MP7n = MP7n.real
else:
MP7n, EUkm = SNz4.eigsh(iaHs, k=int(D9jv), which='LM', sigma=tTpl, tol=yJiH)
Csk6 = oyIN.array([0.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5ua(YKHO, wspz: FlowFieldMap, pb9w: FlowFieldMap) -> jZi3:\n Ud7_ = pb9w.get('zz', [ZylS.constant(0, dtype=viN8)] * YKHO._params.nz)\n if 'T' in wspz:\n a1PO = wspz['T']\n elif 'theta' in wspz:\n a1PO = YKHO._potential_temperature_to_temperature(wspz['theta'], Ud7_)\n else:\n ... | [
"0.639904",
"0.6349566",
"0.6122259",
"0.587715",
"0.5850544",
"0.5828956",
"0.5805845",
"0.57823133",
"0.57640857",
"0.5762716",
"0.575468",
"0.5743525",
"0.57068014",
"0.568855",
"0.56624216",
"0.56600386",
"0.5653631",
"0.56313336",
"0.5620443",
"0.56074494",
"0.56047225",... | 0.0 | -1 |
Calculate the density of states for a finite system | def oskz(MKlR, tTpl=0.0, exwG=10, Iq_D=4, RA_F=0.0001):
if MKlR.dimensionality != 1:
raise
iaHs = siwH(MKlR.intra)
C7_8 = siwH(MKlR.inter)
Zwg6 = C7_8.H
r8hN = [[None for YRbF in range(exwG)] for r845 in range(exwG)]
for YRbF in range(exwG):
r8hN[YRbF][YRbF] = iaHs
for YRbF i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vibm(YKHO, S22D):\n return ITsA.freerotor_densityofstates(S22D, YKHO.frequencies, 1 if YKHO.linear else 0)",
"def Vibm(YKHO, S22D):\n oZuG = oyIN.zeros(len(S22D), oyIN.float64)\n MRrp = ITsA.hinderedrotor_densityofstates(S22D, YKHO.frequency, YKHO.barrier)\n for YRbF in range(YKHO.degeneracy):\n ... | [
"0.6842676",
"0.6838163",
"0.66934264",
"0.66780734",
"0.6619658",
"0.6589051",
"0.6474599",
"0.63931894",
"0.63873273",
"0.63801605",
"0.6272464",
"0.62401986",
"0.6229511",
"0.61976075",
"0.6176228",
"0.6112314",
"0.6104218",
"0.60965395",
"0.60946393",
"0.60946393",
"0.609... | 0.0 | -1 |
Create a plane through a given point with given normal and surface material | def FIMM(YKHO, AU8u, mhAC, Mx95):
YKHO.point = AU8u
YKHO.norm = PXGI(mhAC)
YKHO.mat = Mx95 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BS9d(AU8u, kEC0):\n P8oC, mhAC = kEC0\n mhAC = u1KP(mhAC)\n iArr = f4Oi(AU8u, P8oC)\n Ifga = HvgP(mhAC, s2vS(iArr, mhAC))\n return f4Oi(AU8u, Ifga)",
"def ctsk(V4se, RPT1, Yixg, EhSX):\n epBp = (V4se[0] * (EhSX[0] - RPT1) + V4se[1] * (EhSX[1] - Yixg)) / V4se[2] + EhSX[2]\n return epBp",
... | [
"0.6926132",
"0.67918247",
"0.66280645",
"0.6622853",
"0.6570255",
"0.6499382",
"0.64442146",
"0.6332076",
"0.62797856",
"0.62646264",
"0.6246257",
"0.6151091",
"0.6120761",
"0.6096576",
"0.60693115",
"0.59628874",
"0.5912617",
"0.58920056",
"0.58715844",
"0.585937",
"0.58575... | 0.683124 | 1 |
Returns the ctf of the dataset series which this datasource operates on | def hJFy(YKHO):
return YKHO.ctf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KK3c(YKHO):\n return YKHO.cdfSample",
"def Uijz(YKHO):\n return YKHO.__CFL",
"def Dvtj(YKHO):\n return [J3oR(YKHO.nx, YKHO.dx, fft=YKHO.tfft, ny=YKHO.ny, dy=YKHO.dy).get_cfft(), J3oR(YKHO.nx, YKHO.dx, fft=YKHO.efft, ny=YKHO.ny, dy=YKHO.dy).get_cfft(), J3oR(YKHO.nx, YKHO.dx, fft=YKHO.bfft, ny=YKHO.... | [
"0.6114998",
"0.5954782",
"0.5948087",
"0.5920047",
"0.59179395",
"0.58852816",
"0.5781732",
"0.57313186",
"0.57007056",
"0.56663144",
"0.5602908",
"0.5576217",
"0.55340517",
"0.5467268",
"0.5431777",
"0.539905",
"0.539905",
"0.5388791",
"0.5385939",
"0.53720737",
"0.53636706... | 0.5846474 | 6 |
Merges the given Item with the last one currently in the given Container if both are whitespace items. Returns True if the items were merged. | def lg6G(YKHO, ZfUD, zGKt):
XVAW = zGKt.last_item()
if not XVAW:
return False
if not isinstance(ZfUD, Zjzw) or not isinstance(XVAW, Zjzw):
return False
yKcO = YKHO._idx - (len(XVAW.s) + len(ZfUD.s))
zGKt.body[-1] = (zGKt.body[-1][0], Zjzw(YKHO._src[yKcO:YKHO._idx]))
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E1Na(THkp, DpUl):\n d1zo = (' ', '\\t')\n if not DpUl.mergeable or not THkp.mergeable:\n return False\n elif DpUl.offset != THkp.offset + THkp.length:\n return False\n elif DpUl.text in d1zo and (not THkp.text in d1zo):\n return False\n elif THkp.text in d1zo and (not DpUl.t... | [
"0.5630323",
"0.562426",
"0.51364464",
"0.5081948",
"0.5043025",
"0.48954043",
"0.48792508",
"0.4865082",
"0.48528847",
"0.48474756",
"0.48178267",
"0.48116726",
"0.47968078",
"0.4795999",
"0.478459",
"0.47503677",
"0.47446725",
"0.47313824",
"0.47310415",
"0.47016767",
"0.46... | 0.75566405 | 0 |
Creates and saves a superuser with the given email and password. | def Zp54(YKHO, D3lj, jTXt):
CBIr = YKHO.create_user(D3lj, password=jTXt)
CBIr.is_admin = True
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HvMu():\n D3lj = idDS('User E-Mail')\n JAPf = idDS('Confirm E-Mail')\n if not D3lj == JAPf:\n HwRy.exit('\\nCould not create user: E-Mail did not match')\n if not abGk.match(D3lj):\n HwRy.exit('\\nCould not create user: Invalid E-Mail addresss')\n jTXt = GgOB('User password')\n ... | [
"0.83345544",
"0.82813346",
"0.8258201",
"0.8249415",
"0.8248188",
"0.8223905",
"0.82129776",
"0.8210377",
"0.8180428",
"0.8175924",
"0.8174477",
"0.8159496",
"0.81555283",
"0.8152179",
"0.8147241",
"0.8146682",
"0.81466043",
"0.81466043",
"0.81466043",
"0.81454295",
"0.81319... | 0.80541736 | 37 |
Is the user a member of staff? | def WJxI(YKHO):
return YKHO.is_admin | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def is_staff(OaeV):\n mS46 = OaeV.message.author\n QnPi = ZOrr.utils.get(mS46.guild.roles, name=NQvZ)\n jSVV = ZOrr.utils.get(mS46.guild.roles, name=A5FQ)\n return QnPi in mS46.roles or jSVV in mS46.roles",
"def WJxI(YKHO):\n return YKHO.is_admin",
"def WJxI(YKHO):\n return YKHO.is_admi... | [
"0.8091983",
"0.79417914",
"0.79417914",
"0.79417914",
"0.78373754",
"0.7725267",
"0.7695455",
"0.7543704",
"0.7538521",
"0.74671674",
"0.74179083",
"0.740949",
"0.740872",
"0.7405209",
"0.7117188",
"0.7050242",
"0.7050242",
"0.7018241",
"0.694894",
"0.68767804",
"0.685789",
... | 0.76052535 | 8 |
Is the user a superuser? | def qMrd(YKHO):
return YKHO.is_admin | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jK97(YKHO):\n CBIr = YKHO.getSession()\n return YKHO.pipe.auth.isSuper(CBIr)",
"def qMrd():\n if HwRy.version > '2.7':\n for PObu in Hy7s.getresuid():\n if PObu == 0:\n return True\n elif Hy7s.getuid() == 0 or Hy7s.getegid() == 0:\n return True\n return ... | [
"0.8203781",
"0.8123163",
"0.7936285",
"0.77750057",
"0.76693565",
"0.7637397",
"0.757354",
"0.7337289",
"0.7219452",
"0.713708",
"0.70978487",
"0.7031901",
"0.69242924",
"0.69207996",
"0.6917187",
"0.6854157",
"0.68328345",
"0.68302256",
"0.6777356",
"0.6768828",
"0.6747381"... | 0.80404836 | 2 |
Coerce an unknown date to the given timezone, then to UTC | def uTy1(_c1T, rIAI):
FEXa = FXGE.timezone(rIAI)
oL7g = _c1T.replace(tzinfo=FEXa)
zbgu = FXGE.timezone('UTC')
oL7g = oL7g.astimezone(zbgu)
return oL7g | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KCz9(tUMc, rIAI):\n MvAv = wvEv.parse(tUMc)\n mz4v = FXGE.timezone(rIAI)\n eGZQ = mz4v.localize(MvAv)\n Ihgv = FXGE.utc.normalize(eGZQ)\n return Ihgv",
"def IFrW(YKHO, _c1T):\n if _c1T.tzinfo is not None:\n _c1T = _c1T.astimezone(YKHO.tz_utc)\n else:\n _c1T = _c1T.replace(t... | [
"0.75894195",
"0.7289164",
"0.7209024",
"0.6907422",
"0.6864215",
"0.6698652",
"0.6688846",
"0.6686423",
"0.6653843",
"0.6593803",
"0.6576157",
"0.6573529",
"0.6562767",
"0.6553227",
"0.65446633",
"0.6526314",
"0.64945215",
"0.64906996",
"0.6474339",
"0.64524305",
"0.6386153"... | 0.76795125 | 0 |
Test with only threecard petitions allowed. | def _ecE(YKHO):
eHNT = VfzH.check_petition_combos
YKHO.assertTrue(eHNT(0, 0, [0], False, True))
YKHO.assertFalse(eHNT(1, 0, [0], False, True))
YKHO.assertTrue(eHNT(1, 1, [0], False, True))
YKHO.assertTrue(eHNT(1, 0, [3], False, True))
YKHO.assertTrue(eHNT(1, 3, [0], False, True))
YKHO.assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nIVs(YKHO):\n eHNT = VfzH.check_petition_combos\n YKHO.assertTrue(eHNT(0, 0, [], True, True))\n YKHO.assertFalse(eHNT(1, 0, [], True, True))\n YKHO.assertFalse(eHNT(1, 0, [1], True, True))\n YKHO.assertTrue(eHNT(1, 0, [2], True, True))\n YKHO.assertTrue(eHNT(1, 0, [3], True, True))\n YKHO.... | [
"0.6810119",
"0.6473808",
"0.645677",
"0.62938344",
"0.62752783",
"0.62059915",
"0.6155211",
"0.6148065",
"0.60892385",
"0.59840876",
"0.596696",
"0.5963209",
"0.59501404",
"0.5799793",
"0.5697761",
"0.5672481",
"0.566434",
"0.561755",
"0.56103486",
"0.5594359",
"0.5582937",
... | 0.7429536 | 0 |
Uploads the SVG file to S3, and returns the URL of the object | def ON1z(Ux0P, BbcR):
pGmv = iVGz.client('s3')
geh0 = pGmv.put_object(ACL='public-read', Body=BbcR, Bucket=uEEx, Key=Ux0P, StorageClass='REDUCED_REDUNDANCY')
return 'https://s3.amazonaws.com/%s/%s' % (uEEx, Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AwJp(qaEx, crm5, MYjm, QDug) -> None:\n WE7e = 'seals.free.law'\n x0hE = iVGz.client('s3', aws_access_key_id=MYjm, aws_secret_access_key=QDug)\n QTwH = E4TU(x0hE)\n if '.png' in qaEx:\n m5r4 = 'image/png'\n else:\n m5r4 = 'image/svg+xml'\n QTwH.upload_file(qaEx, WE7e, crm5, extr... | [
"0.65627086",
"0.6511997",
"0.64451045",
"0.63643384",
"0.61173415",
"0.6040773",
"0.6031718",
"0.60039645",
"0.5967601",
"0.5940069",
"0.5857561",
"0.58238834",
"0.5796205",
"0.574195",
"0.57342345",
"0.57331437",
"0.5722847",
"0.57148886",
"0.57147944",
"0.5705097",
"0.5654... | 0.7696398 | 0 |
String representation of this class | def wHJl(YKHO):
return f'<Airport(id={str(YKHO.id)}, name={YKHO.name})>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sa1R(YKHO):\n jCXZ = ''\n for DaW4 in YKHO.getDataAttributes():\n SwUt = getattr(YKHO, DaW4)\n jCXZ += ', %s=%s' % (DaW4, SwUt)\n kItf = type(YKHO)\n if jCXZ == '':\n return '<%s>' % kItf.__name__\n return '<%s: %s>' % (kItf.__name__, jCXZ[2:])",
"def wHJl(YKHO):\n retu... | [
"0.8405431",
"0.83985007",
"0.83985007",
"0.83985007",
"0.83985007",
"0.83985007",
"0.83985007",
"0.83985007",
"0.83985007",
"0.83985007",
"0.83985007",
"0.83985007",
"0.83985007",
"0.83985007",
"0.8396452",
"0.8396452",
"0.8396452",
"0.8396452",
"0.8396452",
"0.83616906",
"0... | 0.0 | -1 |
Computes the x coordinate of the ball | def kjhX(QTBn):
zn0c = QTBn[93:189, 8:Wl2e - 8, 0]
m5qY = zn0c.nonzero()[1]
if len(m5qY) > 0:
return m5qY.mean()
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vAgg(YKHO):\n return YKHO.position.x",
"def nIKw(YKHO):\n return YKHO._collision_rect.x + 14",
"def WKvO(YKHO):\n return YKHO.position.x",
"def nIKw(YKHO):\n return YKHO.posX",
"def Aco_(YKHO):\n return YKHO.__pos_x",
"def p5xg(YKHO):\n return YKHO.x_coord",
"def WKvO(YKHO):\n ... | [
"0.7201727",
"0.7096933",
"0.69620883",
"0.69616777",
"0.68398833",
"0.6825444",
"0.68012977",
"0.68012977",
"0.67890507",
"0.67753965",
"0.67356485",
"0.6712596",
"0.67017496",
"0.6700496",
"0.6699452",
"0.6689949",
"0.66789895",
"0.6650196",
"0.6637467",
"0.6616907",
"0.661... | 0.7251717 | 0 |
Computes the x coordinate of the paddle. | def xKzG(QTBn):
zn0c = QTBn[190:191, 8:Wl2e - 8, 0]
m5qY = zn0c.nonzero()[1]
assert len(m5qY) > 0
return m5qY.mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vAgg(YKHO):\n return YKHO.position.x",
"def nIKw(YKHO):\n return YKHO.posX",
"def WKvO(YKHO):\n return YKHO.position.x",
"def Aco_(YKHO):\n return YKHO.__pos_x",
"def YH9x(YKHO):\n return YKHO.rect.x",
"def muXy(YKHO):\n return YKHO.x",
"def nIKw(YKHO):\n return YKHO._collision... | [
"0.7278048",
"0.71396947",
"0.70126045",
"0.6951281",
"0.69439006",
"0.6811559",
"0.6754752",
"0.6747178",
"0.674097",
"0.6727758",
"0.6699524",
"0.6672045",
"0.6648935",
"0.66291857",
"0.6610564",
"0.6605478",
"0.65597486",
"0.65584433",
"0.6536112",
"0.6401617",
"0.6386279"... | 0.7158066 | 1 |
A convenience wrapper for `visit_iterable` that returns a sequence instead of an iterable. | def nB33(_AKB: 'CSTNode', K_Sa: str, afYC: Sequence[CSTNodeT], jbn3: 'CSTVisitorT') -> bdIy[HL6C]:
return tuple(zihI(_AKB, K_Sa, afYC, jbn3)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6LA(WKvO):\n if OxJJ(WKvO):\n return WKvO\n else:\n return [WKvO]",
"def ywRu(Q6uT):\n if isinstance(Q6uT, bDy6):\n Q6uT = list(Q6uT)\n if isinstance(Q6uT, (tuple, list)):\n Q6uT = list(map(ywRu, Q6uT))\n return Q6uT",
"def DKfr(d7pR):\n return d7pR if GfZ5(d7... | [
"0.71035177",
"0.6873974",
"0.66026473",
"0.64714134",
"0.61446095",
"0.61344165",
"0.61129576",
"0.60355216",
"0.60355216",
"0.5988719",
"0.5987896",
"0.5984973",
"0.5884642",
"0.58802277",
"0.5814334",
"0.5812307",
"0.57950664",
"0.57258046",
"0.56900185",
"0.56784594",
"0.... | 0.5409288 | 40 |
Shows your or the selected user's id. | async def user_id(tvqc, uJjO: ('user_id', 'Get the id of an other user?', 'user')=None):
if uJjO is None:
uJjO = tvqc.user.id
return str(uJjO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FeZC(QePW, uJjO):\n return _1tc(QePW, 'users/view_user.html', {})",
"def uC3Z(uJjO):\n CBIr = mv1M.query.get(uJjO)\n return TvZl('user.html', user=CBIr)",
"def uC3Z():\n return TvZl('user/show_by_user.html', title='Show Profile', user=c5ow)",
"def nUHY(uJjO):\n if uJjO != c5ow.id:\n ... | [
"0.70061904",
"0.6974337",
"0.6950619",
"0.6897555",
"0.6804346",
"0.67851716",
"0.6750138",
"0.67339456",
"0.66650236",
"0.66331357",
"0.6614428",
"0.65648824",
"0.65122503",
"0.65082175",
"0.6507262",
"0.65002286",
"0.6484979",
"0.6484979",
"0.6449136",
"0.6417354",
"0.6394... | 0.66290426 | 10 |
Return the header of request. | def Wpgj() -> cuzp:
nxg9, QUTX = wGq8()
WBPg = {**{f'jinameta-{G1Hx}': str(Ty9i) for G1Hx, Ty9i in nxg9.items()}, **QUTX}
return WBPg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _cyv(YKHO):\n return YKHO._header",
"def t1Gm():\n return _488",
"def WBPg(YKHO):\n return YKHO._header",
"def WBPg(YKHO):\n return YKHO._header",
"def WBPg(YKHO):\n return YKHO._header",
"def t1Gm(YKHO):\n return YKHO.data.header",
"def WBPg(YKHO):\n return YKHO.__header",
"... | [
"0.8271102",
"0.8128856",
"0.7752471",
"0.7752471",
"0.7752471",
"0.77344984",
"0.76949877",
"0.7601719",
"0.7559333",
"0.75524616",
"0.7516345",
"0.7507523",
"0.72965723",
"0.72964346",
"0.72653186",
"0.7242549",
"0.72425336",
"0.7175708",
"0.7161306",
"0.71201324",
"0.71052... | 0.69505686 | 28 |
Unfolds a tensor T into a matrix, taking the dimension "dim" of T as the first dimension of the matrix, and flattening all the other dimensions into the other one dimension of the matrix. dim starts from 0. | def jNuQ(Kt_s, tpio):
PXVk = oyIN.moveaxis(Kt_s, tpio, 0)
return PXVk.reshape(Kt_s.shape[tpio], -1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PWgb(vhpA):\n Nq1b = vhpA.size(1)\n iQfg = (1, 0) + tuple(range(2, vhpA.dim()))\n NPTA = vhpA.permute(iQfg)\n return NPTA.contiguous().view(Nq1b, -1)",
"def MKPt(YKHO, S8xm, zNig):\n return ZylS.reshape(S8xm, (-1, zNig))",
"def PWgb(vhpA):\n Nq1b = vhpA.size(1)\n iQfg = (1, 0) + tuple(... | [
"0.7043688",
"0.6872559",
"0.6866148",
"0.6625046",
"0.6595738",
"0.6544334",
"0.6462534",
"0.6318924",
"0.63155955",
"0.6307684",
"0.6298893",
"0.62986493",
"0.62389565",
"0.6198749",
"0.6193831",
"0.6192542",
"0.6138287",
"0.60814816",
"0.6069293",
"0.6062363",
"0.60362655"... | 0.81962144 | 0 |
nMode product of a tensor T and a matrix M, the summation is made along the nth dim. definition in paper "A MULTILINEAR SINGULAR VALUE DECOMPOSITION" by LIEVEN DE LATHAUWER , BART DE MOOR , AND JOOS VANDEWALLE For example, n with value 0, 1, or 2, would specify the 1st, 2nd or 3rd dim of the tensor T. For the matrix M,... | def WYCq(Kt_s, E3D9, exwG):
V6IE = rPnw(Kt_s, E3D9, axes=([exwG], [1]))
return oyIN.rollaxis(V6IE, len(Kt_s.shape) - 1, exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bj4d(a1PO, r8hN, G1Hx):\n I7Ab = []\n ihqc = []\n rj3F = len(a1PO.shape)\n for YRbF in range(rj3F):\n I7Ab.append((G1Hx - YRbF) % rj3F)\n ihqc.append(a1PO.shape[(G1Hx - YRbF) % rj3F])\n l5J1 = tuple(I7Ab)\n ihqc[0] = r8hN.shape[0]\n QY_y = dmES(a1PO, G1Hx)\n rLlK = oyIN.ma... | [
"0.60840887",
"0.5962957",
"0.5834595",
"0.57553023",
"0.5729404",
"0.56230754",
"0.55998474",
"0.558549",
"0.55777717",
"0.5541569",
"0.54854864",
"0.54752266",
"0.53972495",
"0.53863096",
"0.53441954",
"0.5337099",
"0.5322091",
"0.5305267",
"0.5296987",
"0.52967924",
"0.527... | 0.84308904 | 0 |
This is a new version of extend_dims() function of numpy, it extend multiple dims rather than one. | def RZdE(jzdc, MPlV):
if type(MPlV) == int:
return oyIN.expand_dims(jzdc, MPlV)
for aNZO in sorted(MPlV):
jzdc = oyIN.expand_dims(jzdc, aNZO)
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FJj_(jzdc, Fg_i):\n if oyIN.isscalar(jzdc):\n return jzdc\n _xz6 = (1,) * (Fg_i.ndim - jzdc.ndim)\n return jzdc.reshape(jzdc.shape + _xz6)",
"def wmvz(qw7D):\n return qw7D[oyIN.newaxis, oyIN.newaxis, ...]",
"def QfE2(WKvO: np.array) -> oyIN.array:\n WKvO = oyIN.expand_dims(WKvO, axis=... | [
"0.70451933",
"0.6982546",
"0.673844",
"0.66155654",
"0.65966463",
"0.64626193",
"0.6444467",
"0.6379055",
"0.62785256",
"0.62534416",
"0.6246189",
"0.6212844",
"0.61804307",
"0.61784613",
"0.60776794",
"0.5881329",
"0.58224505",
"0.57709056",
"0.57032615",
"0.569746",
"0.566... | 0.642201 | 7 |
Decide whether the minitaur has fallen. If the up directions between the base and the world is larger (the dot product is smaller than 0.5), the minitaur is considered fallen. | def DWey(YKHO):
C3ap = YKHO.minitaur_env.minitaur.GetBaseOrientation()
SCXK = YKHO.minitaur_env._pybullet_client.getMatrixFromQuaternion(C3ap)
YKC6 = SCXK[6:]
return oyIN.dot(oyIN.asarray([0, 0, 1]), oyIN.asarray(YKC6)) < 0.3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WbqU(YKHO):\n return YKHO.distance_from_goal < YKHO.robot.wheels.base_length / 2",
"def WbqU(YKHO):\n return YKHO.distance_from_goal < YKHO.robot.wheels.base_length / 2",
"def CVSN(YKHO):\n return YKHO.z < 0",
"def CGIg(YKHO):\n return YKHO.distmin < YKHO.distmax * 0.8",
"def g2ey():\n K... | [
"0.63688046",
"0.63688046",
"0.58916235",
"0.58059263",
"0.5784403",
"0.5761813",
"0.57414496",
"0.5711356",
"0.5707844",
"0.5697768",
"0.5675407",
"0.56628335",
"0.56495374",
"0.56233096",
"0.55607885",
"0.555384",
"0.55337554",
"0.5527628",
"0.5523818",
"0.55205244",
"0.550... | 0.72476137 | 0 |
Send null value in EMonth fields | def ok55(YKHO):
assert 'False' == fyIx.requestBlock('test-15') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0eS(YKHO):\n return 0",
"def x0eS(YKHO):\n return 0",
"def Llcy(Jyyj):\n if Jyyj.null:\n return None\n else:\n return ''",
"def FS96(YKHO):\n if not YKHO.date['year']:\n YKHO.date['year'] = YKHO.DEFAULT_DATE['year']\n if not YKHO.date['month']:\n YKHO.date['... | [
"0.5866896",
"0.5866896",
"0.57713896",
"0.5746307",
"0.57161075",
"0.56837165",
"0.5625904",
"0.55780524",
"0.5558474",
"0.54825336",
"0.53664184",
"0.532997",
"0.5325653",
"0.530205",
"0.52342147",
"0.5223373",
"0.5202048",
"0.51526874",
"0.5086805",
"0.5086271",
"0.5052253... | 0.0 | -1 |
Send special characters in EMonth fields | def R7W2(YKHO):
assert 'False' == fyIx.requestBlock('test-16') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cwGe(x0eS):\n qXEg = 'janvfévrmarsavr-mai-juinjuilaoûtseptoct-nov-déc-'\n UVnF = ZbWC.search(x0eS.lower(), qXEg.lower())\n if UVnF:\n dBdQ = (UVnF.start() + 4) / 4\n return '0{}'.format(dBdQ)",
"def eXO9(YKHO, x0eS):\n if x0eS is not None:\n x0eS = YKHO.tr('MONTH.' + x0eS.upp... | [
"0.5688062",
"0.5482961",
"0.548005",
"0.5468909",
"0.54230297",
"0.5412855",
"0.530084",
"0.52983487",
"0.52577066",
"0.51923347",
"0.5177958",
"0.5175429",
"0.5157469",
"0.5145739",
"0.51417935",
"0.5081514",
"0.5069298",
"0.5042676",
"0.5035212",
"0.5016211",
"0.5014319",
... | 0.0 | -1 |
Send boundary values EMonth field (EMonth= 12) | def tjVL(YKHO):
assert 'True' == fyIx.requestBlock('test-19') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vZpv(YKHO, BWXx):\n super(tPGm, YKHO)._set_input('Month', BWXx)",
"def ZiWT(YKHO) -> qe4Y.Input['GoogleTypeDateArgs']:\n return qe4Y.get(YKHO, 'effective_invoice_month')",
"def Ogs3(YKHO, Lepe):\n\n def gMvJ(H5ew, hBFO, zhJJ=None):\n if H5ew in hBFO.keys():\n hBFO[H5ew] = hBFO[H5... | [
"0.5634143",
"0.54065627",
"0.53806704",
"0.5306783",
"0.5197246",
"0.5181283",
"0.5181283",
"0.51676494",
"0.51546735",
"0.51468223",
"0.51246095",
"0.51028955",
"0.5069277",
"0.50182337",
"0.5016101",
"0.49582988",
"0.49270567",
"0.49263218",
"0.48897153",
"0.483824",
"0.48... | 0.0 | -1 |
Send boundary values EMonth field (EMonth= 01) | def yW_7(YKHO):
assert 'True' == fyIx.requestBlock('test-22') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vZpv(YKHO, BWXx):\n super(tPGm, YKHO)._set_input('Month', BWXx)",
"def Ogs3(YKHO, Lepe):\n\n def gMvJ(H5ew, hBFO, zhJJ=None):\n if H5ew in hBFO.keys():\n hBFO[H5ew] = hBFO[H5ew] + [zhJJ]\n else:\n hBFO[H5ew] = [zhJJ]\n return hBFO\n wQXe = dict()\n for t... | [
"0.56795377",
"0.5456256",
"0.5432058",
"0.5432058",
"0.5389009",
"0.5362143",
"0.5330217",
"0.52422476",
"0.52419305",
"0.52336526",
"0.5153409",
"0.5141174",
"0.5082032",
"0.5056412",
"0.50128525",
"0.49637815",
"0.49588114",
"0.49463055",
"0.489759",
"0.48916426",
"0.48840... | 0.0 | -1 |
Initializes InvalidUsername with an error message. | def FIMM(YKHO, tO9_):
YKHO.msg = tO9_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, NtEF: str) -> None:\n try:\n LTkL(NtEF, 'username', 'a-z0-9', 100)\n except MeOg as e:\n raise tBvF(tTpl.message) from tTpl\n YKHO.name = NtEF",
"def I_5s(YKHO, tO9_):\n raise NotImplementedError('username_error')",
"def k0nI(NtEF):\n return sBY3(UBVo, UAju.AccountUs... | [
"0.7104705",
"0.6829881",
"0.6761184",
"0.6483541",
"0.6251707",
"0.6137439",
"0.60849506",
"0.6066154",
"0.60328996",
"0.60174",
"0.5974511",
"0.59486985",
"0.59322745",
"0.59095454",
"0.5881767",
"0.5851913",
"0.58311576",
"0.5790885",
"0.5769815",
"0.57687426",
"0.57497245... | 0.0 | -1 |
Initializes InvalidUserTag with an error message. | def FIMM(YKHO, tO9_):
YKHO.msg = tO9_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(TZ9E, Ol8d=None):\n RdPg._post('error', TZ9E, Ol8d)",
"def FIMM(YKHO, Ol8d=''):\n super(sUXu, YKHO).__init__(Ol8d)",
"def FIMM(YKHO, tf1m):\n super(D9Ku, YKHO).__init__()\n YKHO.error_msg = tf1m",
"def FIMM(YKHO, Ol8d, l5Ny=None, aC0l=None, Mxk0=None):\n YKHO.openid_message = Ol8d\n ... | [
"0.56462985",
"0.54964924",
"0.536261",
"0.5255886",
"0.52409583",
"0.5214799",
"0.51638514",
"0.51309276",
"0.512227",
"0.5116152",
"0.50880295",
"0.5065294",
"0.50539815",
"0.5043654",
"0.50230527",
"0.5009636",
"0.49937543",
"0.499186",
"0.49844167",
"0.49798706",
"0.49764... | 0.0 | -1 |
Initializes InvalidProfilePicturePath with an error message. | def FIMM(YKHO, tO9_):
YKHO.msg = tO9_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yVhV(YKHO):\n xx5i = hKoz\n pB3N = {'name': 'temp', 'speciality': [YKHO.speciality.pk], 'image': 'invalid image', 'overview': 'bla bla bla'}\n Ylbp = YKHO.client.post(xx5i, pB3N, format='multipart')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def DPlK(YKHO):\n bD7m = 'ht... | [
"0.5651921",
"0.5624119",
"0.56222874",
"0.5336274",
"0.52178127",
"0.52178127",
"0.52178127",
"0.51103395",
"0.5086884",
"0.5018844",
"0.49850813",
"0.49842182",
"0.49580494",
"0.49038544",
"0.49034742",
"0.48773718",
"0.48606312",
"0.48144424",
"0.47821972",
"0.4751558",
"0... | 0.0 | -1 |
Return the name of the device if any. | def mWFP(YKHO):
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')",
"def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')",
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO._device.name",
"def mWFP(YKHO):\n return YKHO._device.name",
"def ueYb(Y... | [
"0.89734465",
"0.89734465",
"0.8584627",
"0.8584627",
"0.8584627",
"0.8502048",
"0.84944665",
"0.84194607",
"0.83955586",
"0.83955586",
"0.8379756",
"0.83165",
"0.8306566",
"0.8161454",
"0.81564134",
"0.8090303",
"0.8087526",
"0.8073198",
"0.8006941",
"0.7999654",
"0.79544145... | 0.0 | -1 |
Return the device state attributes. | def R1i3(YKHO):
o8Kj = {}
o8Kj[PlJk] = YyUn
o8Kj[_5Iv] = Ec7s
o8Kj[TB1d] = YKHO._camera_type
return o8Kj | {
"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.93173087",
"0.9245708",
"0.92207897",
"0.92147964",
"0.92147964",
"0.9210798",
"0.9210798",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
... | 0.8087728 | 66 |
takes clean str from self.text and creats dict of word length freq. | def BHxr(YKHO):
RzRO = YKHO.cleanString(YKHO.text)
DWK9 = RzRO.split()
for WKvO in DWK9:
if len(WKvO) not in YKHO.wordlengths:
YKHO.wordlengths[len(WKvO)] = 1
else:
YKHO.wordlengths[len(WKvO)] += 1
return YKHO.wordlengths | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kbzd(s6mN):\n QTg7 = {}\n XJHl = ('\"', \"'\", '%', '$', '!', '.', '?', '-', ',', '\\n', '\\t', '\\r', ':', ';')\n for Z9rn in XJHl:\n s6mN = s6mN.replace(Z9rn, ' ')\n V22M = s6mN.split()\n for GIN8 in V22M:\n ycBG = GIN8.lower()\n QTg7[ycBG] = QTg7.get(ycBG, 0) + 1\n ret... | [
"0.72095066",
"0.71612656",
"0.71218807",
"0.711714",
"0.7092993",
"0.7040645",
"0.7019579",
"0.6963053",
"0.6958046",
"0.6943951",
"0.6904577",
"0.68902737",
"0.6876883",
"0.6857476",
"0.68253565",
"0.68212354",
"0.6773053",
"0.6735119",
"0.67350656",
"0.668967",
"0.6683868"... | 0.6272309 | 57 |
takes clean str from self.text and creats dict of word freq. | def u6Oh(YKHO):
RzRO = YKHO.cleanString(YKHO.text)
DWK9 = RzRO.split()
for WKvO in DWK9:
if WKvO not in YKHO.words:
YKHO.words[WKvO] = 1
else:
YKHO.words[WKvO] += 1
return YKHO.words | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kbzd(s6mN):\n QTg7 = {}\n XJHl = ('\"', \"'\", '%', '$', '!', '.', '?', '-', ',', '\\n', '\\t', '\\r', ':', ';')\n for Z9rn in XJHl:\n s6mN = s6mN.replace(Z9rn, ' ')\n V22M = s6mN.split()\n for GIN8 in V22M:\n ycBG = GIN8.lower()\n QTg7[ycBG] = QTg7.get(ycBG, 0) + 1\n ret... | [
"0.74459994",
"0.74220663",
"0.7391444",
"0.7324509",
"0.7309391",
"0.7289624",
"0.7283719",
"0.7226567",
"0.722053",
"0.7219711",
"0.72076803",
"0.7172384",
"0.7164771",
"0.7158287",
"0.7152727",
"0.7031354",
"0.6992306",
"0.69521797",
"0.691885",
"0.6871911",
"0.68676853",
... | 0.6263762 | 93 |
Test default product price being 10. | def MBCD(YKHO):
QRFO = Lx3t('Test Product')
YKHO.assertEqual(QRFO.price, 10)
YKHO.assertEqual(QRFO.weight, 20) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBCD(YKHO):\n QRFO = msfn('Test Product')\n YKHO.assertEqual(QRFO.price, 10)",
"def MBCD(YKHO):\n QRFO = msfn('Test Product')\n YKHO.assertEqual(QRFO.price, 10)",
"def MBCD(YKHO):\n QRFO = msfn('Test Product')\n YKHO.assertEqual(QRFO.price, 10)",
"def MBCD(YKHO):\n QRFO = msfn('Test ... | [
"0.8738257",
"0.8738257",
"0.8738257",
"0.8738257",
"0.8738257",
"0.8738257",
"0.8738257",
"0.8738257",
"0.8738257",
"0.8738257",
"0.8738257",
"0.87333673",
"0.8580199",
"0.7287374",
"0.72686666",
"0.72686666",
"0.72686666",
"0.72686666",
"0.72686666",
"0.72686666",
"0.726349... | 0.8610413 | 12 |
Test that node names are set correctly for linear ops turned into matmul/add in onnx. | def TjMg(YKHO, AH92):
class Linear(ht2j.nn.Module):
def FIMM(YKHO):
super(hPO2, YKHO).__init__()
YKHO.linear = ht2j.nn.Linear(3, 2)
def KVH6(YKHO, pKvt):
WKvO = YKHO.linear(pKvt)
return WKvO
C3ST = hPO2()
zaqo = './data/MyModel.onnx'
Kvn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k2h3(YKHO):\n C3ST = FYrf.resnet18(pretrained=False)\n CrBO = ht2j.randn(1, 3, 224, 224)\n ht2j.onnx.export(C3ST, CrBO, './data/resnet18.onnx')\n Kvn_.OnnxSaver.set_node_names('./data/resnet18.onnx', C3ST, CrBO, is_conditional=False, module_marker_map={})\n v1bE = BlLG.load('./data/resnet18.onnx... | [
"0.6792893",
"0.67721677",
"0.65422505",
"0.61988956",
"0.6150528",
"0.6148229",
"0.5965357",
"0.59260803",
"0.5876603",
"0.58762425",
"0.584769",
"0.5770553",
"0.57376754",
"0.5707993",
"0.5700042",
"0.5673199",
"0.5655918",
"0.56137747",
"0.5602277",
"0.5545079",
"0.5532079... | 0.7743685 | 0 |
Return a list of segments (as strings) from a word Characters that are not valid segments are included in the list as individual characters. | def oV4k(YKHO, GIN8, NkkI=True):
if NkkI:
GIN8 = UCqK.normalize(GIN8)
return YKHO._segs(GIN8, include_invalid=True, normalize=NkkI) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hTWD(l5Ny: str) -> x1iM[str]:\n if not l5Ny or not isinstance(l5Ny, str):\n return []\n return fAwq(JTCu.word_tokenize(l5Ny))",
"def slice(YKHO, GIN8):\n if len(GIN8) <= 4:\n return [GIN8]\n if GIN8.lower() in YKHO.exceptions:\n LTIa = YKHO.exceptions[GIN8.lower()]\n else:... | [
"0.68789977",
"0.6741519",
"0.65025",
"0.6010337",
"0.6006612",
"0.5996679",
"0.5950866",
"0.5939301",
"0.5936155",
"0.5838023",
"0.58029926",
"0.5797689",
"0.5774421",
"0.572342",
"0.5713739",
"0.57017034",
"0.5683238",
"0.56335175",
"0.5613616",
"0.5602126",
"0.55915654",
... | 0.59464043 | 7 |
Return a string like the input but containing only legal IPA segments | def NHNn(YKHO, GIN8, NkkI=True):
return ''.join(YKHO.ipa_segs(GIN8, NkkI)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xbam(FGW3):\n FGW3 = x0SS(FGW3, ' ').upper().strip()\n if FGW3.startswith('AL'):\n FGW3 = FGW3[2:]\n if FGW3.startswith('(AL)'):\n FGW3 = FGW3[4:]\n return FGW3",
"def QUiS():\n return 'junction:chr1:176-324:+'",
"def gPL9(UTX6):\n R0Ku = list(UTX6)\n rcVq = len(R0Ku)\n ... | [
"0.54550743",
"0.54391927",
"0.53663737",
"0.5322689",
"0.5241737",
"0.52362967",
"0.5214989",
"0.52047104",
"0.519561",
"0.51782346",
"0.5152315",
"0.51449424",
"0.51403505",
"0.5121869",
"0.50963056",
"0.506933",
"0.50592506",
"0.5054341",
"0.5052699",
"0.5051405",
"0.50455... | 0.5909749 | 0 |
group([0,3,4,10,2,3], 2) => iterator Group an iterable into an ntuples iterable. Incomplete tuples are padded with Nones e.g. >>> list(group(range(10), 3)) [(0, 1, 2), (3, 4, 5), (6, 7, 8), (9, None, None)] | def uOe2(yv6U, exwG):
S7dm = y54_(yv6U, exwG)
S7dm = [S7dm[0]] + [eNCK(iter, wPFE(None)) for iter in S7dm[1:]]
return DMWo(*[uOgj(iter, YRbF, None, exwG) for YRbF, iter in enumerate(S7dm)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E0cw(OxJJ: Iterable, exwG: int, WJBW: Any=None) -> bDy6[tuple]:\n qIxc = [iter(OxJJ)] * exwG\n return Hs6x.zip_longest(*qIxc, fillvalue=WJBW)",
"def E0cw(exwG, OxJJ):\n qIxc = [iter(OxJJ)] * exwG\n return list((tuple([tTpl for tTpl in a1PO if tTpl != None]) for a1PO in igF0(*qIxc)))",
"def uOe2... | [
"0.80415297",
"0.8012354",
"0.7891814",
"0.78612876",
"0.7830936",
"0.7768379",
"0.77457225",
"0.774194",
"0.774194",
"0.7739891",
"0.7731009",
"0.7731009",
"0.7730615",
"0.7714614",
"0.7697723",
"0.76915014",
"0.76890963",
"0.76890963",
"0.76738936",
"0.76717544",
"0.7668773... | 0.71935266 | 33 |
Convert the passed values to colormap. | def YI3L(Mc1b: np.ndarray) -> oyIN.ndarray:
z6Ep = Mc1b
GfC0, ZneS = (z6Ep.min(), z6Ep.max())
CkYf = Jw9H.Normalize(GfC0, ZneS)
r8hN = QrM1.cm.ScalarMappable(norm=CkYf, cmap='Spectral_r')
r8hN.set_array([])
va0d = r8hN.to_rgba(z6Ep)
return va0d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y045(YKHO, Ty9i):\n if oyIN.isscalar(Ty9i):\n Mkmy = YKHO.cmap(YKHO.norm(oyIN.asarray([Ty9i])))\n else:\n Mkmy = YKHO.cmap(YKHO.norm(Ty9i))\n return Mkmy.flatten()",
"def YI3L(hkxX, iMGt='jet', Ew8X=True, RKD7=False):\n vjeQ = not isinstance(hkxX, int)\n if not vjeQ:\n Ew8... | [
"0.7223537",
"0.70907754",
"0.6728139",
"0.6724819",
"0.66896755",
"0.66573834",
"0.65715116",
"0.64982826",
"0.6465033",
"0.6465033",
"0.6465033",
"0.6465033",
"0.6443659",
"0.6338098",
"0.63217264",
"0.6303877",
"0.6251594",
"0.6230061",
"0.62153965",
"0.6132751",
"0.609306... | 0.6442322 | 13 |
Returns True if the self rank is higher than the other rank | def JWbp(YKHO, Elif):
return YKHO.rank() < Elif.rank() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jmxi(YKHO, Elif):\n return int(YKHO.rank) > int(Elif.rank)",
"def Zcf_(YKHO, Elif):\n return int(YKHO.rank) >= int(Elif.rank)",
"def TPjt(YKHO, Elif):\n return int(YKHO.rank) <= int(Elif.rank)",
"def jmxi(YKHO, Elif):\n return YKHO.eval_score < Elif.eval_score",
"def JWbp(YKHO, Elif):\n ... | [
"0.8275582",
"0.79964995",
"0.7796771",
"0.72897935",
"0.716286",
"0.714543",
"0.7067061",
"0.7035331",
"0.7034307",
"0.70110303",
"0.69910157",
"0.69268256",
"0.6925097",
"0.69192606",
"0.6889218",
"0.68517315",
"0.68517315",
"0.6849785",
"0.6836221",
"0.6831901",
"0.6809451... | 0.69531363 | 11 |
Loads yaml file. Arguments | def tyeH(pmON: str='config.yaml'):
nUeQ = GkAb(pmON).open()
Aofo = eJb6.safe_load(nUeQ)
dsE5(f'YAML file {pmON} loaded and parsed succesful')
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def esJT(YKHO, Ux0P):\n pmON = Hy7s.path.dirname(xAKo) + '/' + Ux0P\n if Hy7s.path.exists(pmON) and Hy7s.path.isfile(pmON):\n YKHO.load(eJb6.load(open(pmON, 'r')))",
"def f9B0(Ux0P):\n try:\n eHNT = nUeQ(Ux0P, 'r')\n nPrm = eJb6.load(eHNT)\n return nPrm\n except (IOError, ... | [
"0.77729696",
"0.7398894",
"0.73696256",
"0.73671806",
"0.7323886",
"0.7295187",
"0.7261868",
"0.72600996",
"0.7254409",
"0.72472084",
"0.722904",
"0.7219554",
"0.7214941",
"0.7211812",
"0.7204388",
"0.716829",
"0.7168116",
"0.71676886",
"0.71614975",
"0.7131892",
"0.71218497... | 0.6669963 | 61 |
Check that the board used is large enough and has enough valid tiles for the given list of players, raises a ValueError if any of these conditions are not met. | def oqoh(YKHO, iBIi, Bwa6):
vVxE = iBIi.get_rows() * iBIi.get_cols()
if vVxE < (6 - len(Bwa6)) * len(Bwa6):
raise ValueError('Board specified by board_size is too small.')
if len(Bwa6) == 3 and vVxE - iBIi.get_holes_in_board() < 9:
raise ValueError('Too many holes to place all penguins')
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlst(iBIi):\n deVW = len(iBIi) == 9\n deVW &= -1 <= sum(iBIi) <= 1\n deVW &= Pusg(lambda WKvO, LVAh: WKvO and LVAh, [BfDw.is_valid_player(XP5J) for XP5J in iBIi])\n return deVW",
"def vMVH(YKHO):\n BH3N = PTLA.Minesweeper()\n TVTK = 10\n H2v2 = 12\n STkk = int(TVTK * H2v2)\n with Y... | [
"0.6559245",
"0.65429807",
"0.6363457",
"0.63405097",
"0.6310487",
"0.61935323",
"0.61810786",
"0.61345714",
"0.60889655",
"0.6072533",
"0.5982412",
"0.5976069",
"0.5964283",
"0.59554005",
"0.5949775",
"0.59412664",
"0.59252197",
"0.5920554",
"0.59201723",
"0.5910528",
"0.589... | 0.8507374 | 0 |
Get the player scores. | def lZRP(YKHO):
return [(YKHO.players[XP5J.get_color()], XP5J.get_score()) for XP5J in YKHO.state.get_players()] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZRP(YKHO):\n return YKHO.score",
"def hckV(YKHO, oyg0):\n if oyg0 in YKHO.player_scores:\n return YKHO.player_scores[oyg0]\n else:\n raise Exception('Player not in score list')",
"def p1kx(YKHO):\n return YKHO.client.call('GET', YKHO.name + 'score')",
"def _3O1(YKHO):\n retu... | [
"0.81142956",
"0.7553951",
"0.738606",
"0.7267321",
"0.719919",
"0.71760154",
"0.7120312",
"0.704196",
"0.6985496",
"0.6970983",
"0.6936181",
"0.6799197",
"0.6795344",
"0.6784494",
"0.6777752",
"0.67771673",
"0.6773122",
"0.6722797",
"0.6709587",
"0.66867256",
"0.66849506",
... | 0.8255623 | 0 |
Get a rule violators who have been ejected. | def c_Zz(YKHO):
return YKHO.violators | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tEvD(YKHO):\n return [r8hN for r8hN in YKHO.members if r8hN.disease == U9LP.AFFECTED]",
"def IEj9(YKHO):\n if YKHO.is_game_over():\n cCrA = [XP5J.get_score() for XP5J in YKHO.state.get_players()]\n if len(cCrA) == 0:\n return []\n jB5X = max(cCrA)\n q2gK = []\n ... | [
"0.6156995",
"0.59065264",
"0.5629059",
"0.5474041",
"0.53551775",
"0.52045214",
"0.5177488",
"0.50929904",
"0.5079941",
"0.5059264",
"0.5059264",
"0.5011072",
"0.4973407",
"0.49627775",
"0.4929745",
"0.4920347",
"0.4912848",
"0.4911266",
"0.4906332",
"0.48964974",
"0.4874137... | 0.61693317 | 0 |
Get a copy of the current state. | def c0mt(YKHO):
return _qLf(YKHO.state) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return jth9.deepcopy(YKHO._state)",
"def k8jS(YKHO):\n QTBn = YKHO.__dict__.copy()\n YKHO.__cleanState__(QTBn)\n return QTBn",
"def QTBn(YKHO):\n return YKHO._state.copy()",
"def ja6o(YKHO, _qLf: bool=True):\n KCHu = YKHO.cache_ if hasattr(YKHO, 'cache_') else {}\n retu... | [
"0.8455732",
"0.79240113",
"0.78669524",
"0.78233796",
"0.76678777",
"0.76537627",
"0.7607961",
"0.75942713",
"0.7512252",
"0.74859667",
"0.74796313",
"0.7326282",
"0.7263944",
"0.7236717",
"0.7214216",
"0.7181021",
"0.7169202",
"0.71566755",
"0.715247",
"0.7142748",
"0.71140... | 0.81724 | 1 |
Sigmoid backward (derivative) implementation | def m9vT(LQ6K, Nk6w):
Nf0X = m1Hg(Nk6w) * (1 - m1Hg(Nk6w))
return LQ6K * Nf0X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NZml(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n return WKvO * (1.0 - WKvO)",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))",
"def m9vT(zYcP, wyyA):\n Jw7X, WKvO = (None,... | [
"0.85681444",
"0.8473839",
"0.831426",
"0.831426",
"0.8309925",
"0.8075164",
"0.80000556",
"0.79696095",
"0.79516095",
"0.7931595",
"0.7929404",
"0.7801728",
"0.7743298",
"0.7714867",
"0.7661006",
"0.76579946",
"0.7626087",
"0.76228863",
"0.7605027",
"0.753502",
"0.75197905",... | 0.82721937 | 5 |
Register a new queue in the pool catalog. This method should be called whenever a new queue is being created, and will create an entry in the pool catalog for the given queue. After using this method to register the queue in the catalog, the caller should call `lookup()` to get a reference to a storage driver which wil... | def gr_i(YKHO, gGq6, bNKA=None, k3Zu=None):
if YKHO._catalogue_ctrl.exists(bNKA, gGq6):
Pu7z = YKHO._catalogue_ctrl.get(bNKA, gGq6)
F7JM = Pu7z['pool']
EusQ = YKHO._pools_ctrl.get(F7JM)
RXdD = EusQ['flavor']
BXZh = bGrB(u'register queue to pool: old flavor: %(oldflavor)s , ne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gr_i(YKHO, gGq6, bNKA=None):\n if not YKHO._catalogue_ctrl.exists(bNKA, gGq6):\n OWrw = EfUA.weighted(YKHO._shards_ctrl.list(limit=0))\n if not OWrw:\n raise UAju.NoShardFound()\n YKHO._catalogue_ctrl.insert(bNKA, gGq6, OWrw['name'])",
"def xKhZ(YKHO, gGq6):\n cT55 = gGq... | [
"0.71361166",
"0.6695945",
"0.64565563",
"0.6338736",
"0.6160316",
"0.6083422",
"0.5962883",
"0.59370244",
"0.5895258",
"0.5773519",
"0.5767887",
"0.5727844",
"0.5669611",
"0.5621137",
"0.55773187",
"0.5558326",
"0.5552847",
"0.55482846",
"0.55192804",
"0.5471164",
"0.5442383... | 0.7536504 | 0 |
Open the URL for the given DOI in the default browser | def PdRk(RHKR):
HywK.open_new_tab(__Xk % RHKR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QM3s(YKHO):\n HywK.open(YKHO.url)",
"def open(bD7m):\n HywK.open(bD7m)",
"def GW_c(q5jJ, Ltpw):\n A0Gq = wObZ(q5jJ, Ltpw)\n HywK.open(A0Gq.url)",
"def R90Q(mWFP):\n bD7m = r2JL.get_webServer(mWFP)\n SYsl = r46S()\n SYsl.get(bD7m)\n return SYsl",
"def r46S(bD7m):\n import webb... | [
"0.7175303",
"0.70528334",
"0.6925984",
"0.68447846",
"0.66982275",
"0.6694972",
"0.654901",
"0.65459543",
"0.64876926",
"0.6484498",
"0.6445093",
"0.64057773",
"0.63870794",
"0.6381969",
"0.63739616",
"0.6357972",
"0.6353263",
"0.62887174",
"0.62686133",
"0.6265236",
"0.6234... | 0.82702404 | 0 |
Test if the add operation returns the correct result for a test case | def x3Ly(YKHO):
YKHO.assertEqual(ql7k.add(3, 4), 7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ftco(YKHO):\n Aofo = YKHO.calc.add(2, 2)\n YKHO.assertEqual(4, Aofo)",
"def JsCA(YKHO):\n YKHO.assertEqual(H2v5(1, 1), 2, 'Wrong answer')\n YKHO.assertEqual(H2v5(10, 1), 11, 'Wrong answer')\n YKHO.assertEqual(H2v5(15, 15), 30, 'Wrong answer')",
"def JsCA(YKHO):\n print('test_add')\n YK... | [
"0.87641716",
"0.8728581",
"0.85901284",
"0.83460325",
"0.8322828",
"0.82488525",
"0.82488525",
"0.82488525",
"0.8183821",
"0.8175811",
"0.80814475",
"0.8047177",
"0.8006275",
"0.79732543",
"0.79165095",
"0.7913617",
"0.7900404",
"0.77927405",
"0.7747016",
"0.774245",
"0.7690... | 0.8132406 | 10 |
Unit test for Roybal_Student_Analytics constructor. | def as4H(YKHO):
KCHu = lGNP()
YKHO.assertEqual(len(KCHu.data), 89) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, g3Gt):\n pass",
"def FIMM(YKHO, g3Gt, kepv, xpUk):\n YKHO.student = g3Gt\n YKHO.start_date = kepv\n YKHO.day_periods = xpUk\n YKHO.student_name = g3Gt.full_name_lastname_first(show_middle_name=False)\n YKHO.student_gender = g3Gt.gender\n YKHO.student_attendance_record = YKHO.s... | [
"0.6371787",
"0.6314157",
"0.6181478",
"0.6096545",
"0.6089736",
"0.60254514",
"0.5956355",
"0.59550136",
"0.594131",
"0.58837605",
"0.58226454",
"0.5809876",
"0.57946306",
"0.5790085",
"0.578611",
"0.57836026",
"0.57833344",
"0.57766145",
"0.5764777",
"0.5755531",
"0.574614"... | 0.75536776 | 0 |
Returns the network connected to the tenant router. Assumes a single router with a single tenant network connected. | def tMOx(YKHO):
bIwZ = YKHO._connection.network.ports.find_by_device_owner('network:router_interface')
if bIwZ:
return YKHO._connection.network.networks.get(bIwZ.network_id)
else:
raise UAju.ImproperlyConfiguredError('Could not find tenancy network') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOWR(YKHO):\n try:\n oimG = next(YKHO._connection.network.routers.all())\n except StopIteration:\n raise UAju.ImproperlyConfiguredError('Could not find tenancy router.')\n return YKHO._connection.network.networks.get(oimG.external_gateway_info['network_id'])",
"def XHTY(YKHO):\n ret... | [
"0.77449316",
"0.7281764",
"0.7092121",
"0.70122546",
"0.6769052",
"0.6733666",
"0.6733666",
"0.6733666",
"0.6582788",
"0.65117043",
"0.6201502",
"0.61733115",
"0.6108502",
"0.60738486",
"0.60403067",
"0.6020271",
"0.600645",
"0.5939682",
"0.5937701",
"0.5896336",
"0.58795285... | 0.796581 | 0 |
Returns the cluster manager for the tenancy. | def rQ6x(YKHO):
if not hasattr(YKHO, '_cluster_manager'):
if YKHO._cluster_engine:
YKHO._cluster_manager = YKHO._cluster_engine.create_manager(YKHO._username, YKHO._tenancy)
else:
YKHO._cluster_manager = None
if not YKHO._cluster_manager:
raise UAju.UnsupportedOpe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DjJx(YKHO):\n return YKHO.manager",
"def hKn5(YKHO):\n return YKHO._cluster",
"def hKn5(YKHO):\n return YKHO._cluster",
"def bfMs(clva=None):\n from manager import get_keystone_manager\n return get_keystone_manager(EhVf(), Xcdf(), clva)",
"def iBC6(YKHO) -> 'AioCluster':\n return llll... | [
"0.66724825",
"0.665754",
"0.665754",
"0.66434646",
"0.663374",
"0.6481853",
"0.6345078",
"0.6344062",
"0.62795883",
"0.6278968",
"0.62144953",
"0.60009164",
"0.59885573",
"0.5977996",
"0.59189504",
"0.5905458",
"0.5904256",
"0.5867709",
"0.5859221",
"0.58005214",
"0.5737495"... | 0.85531485 | 0 |
Computes the forward pass for a layer of rectified linear units (ReLUs). | def wN5Y(WKvO):
yvT9 = None
yvT9 = oyIN.empty_like(WKvO)
oyIN.clip(WKvO, 0, None, yvT9)
wyyA = WKvO
return (yvT9, wyyA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def drfk(YKHO):\n\n def XVC9(yR_P, g6LF, EYyA):\n \"\"\"\n If there is a negative gradient, change it to zero\n \"\"\"\n nWP1 = YKHO.forward_relu_outputs[-1]\n nWP1[nWP1 > 0] = 1\n e1d4 = nWP1 * ht2j.clamp(g6LF[0], min=0.0)\n del YKHO.forward_relu_outputs... | [
"0.6775336",
"0.6629373",
"0.6602302",
"0.6523369",
"0.6508466",
"0.64465874",
"0.63842785",
"0.626676",
"0.620465",
"0.6178559",
"0.61525744",
"0.613782",
"0.60611176",
"0.6054329",
"0.6047199",
"0.6046748",
"0.59962803",
"0.5989819",
"0.596913",
"0.5962442",
"0.5948833",
... | 0.60177517 | 16 |
Computes the backward pass for a layer of rectified linear units (ReLUs). | def PPFh(zYcP, wyyA):
Jw7X, WKvO = (None, wyyA)
Jw7X = oyIN.empty_like(zYcP)
oyIN.copyto(Jw7X, zYcP)
Jw7X[WKvO < 0] = 0
return Jw7X | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PPFh(YKHO, gEpz, wyyA):\n WKvO = wyyA\n WKvO = oyIN.array(WKvO, copy=True)\n WKvO[WKvO <= 0] = 0\n WKvO[WKvO > 0] = 1\n cf5c = gEpz * WKvO\n return cf5c",
"def ZD5u(OaeV, pwN3):\n N77f, lQ3t, P6bq, OCi3 = OaeV.saved_tensors\n begE = P6bq.device\n SGf8 = 1e-10\n Ro40, = ht2j.auto... | [
"0.70412636",
"0.694716",
"0.6897693",
"0.6847592",
"0.6847592",
"0.6846935",
"0.6841099",
"0.68178034",
"0.6766849",
"0.6754919",
"0.67536426",
"0.67530656",
"0.67419785",
"0.6739244",
"0.6713423",
"0.6708748",
"0.6699276",
"0.6696307",
"0.6696307",
"0.66860896",
"0.6665928"... | 0.66615254 | 25 |
Forward pass for batch normalization. During training the sample mean and (uncorrected) sample variance are computed from minibatch statistics and used to normalize the incoming data. During training we also keep an exponentially decaying running mean of the mean and variance of each feature, and these averages are use... | def d3MU(WKvO, KMvS, UqYS, Y7R2):
Tuqy = Y7R2['mode']
SGf8 = Y7R2.get('eps', 1e-05)
H0zq = Y7R2.get('momentum', 0.9)
ywwl, lWPh = WKvO.shape
zsZT = Y7R2.get('running_mean', oyIN.zeros(lWPh, dtype=WKvO.dtype))
xl1j = Y7R2.get('running_var', oyIN.zeros(lWPh, dtype=WKvO.dtype))
yvT9, wyyA = (No... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(YKHO, WKvO, EvQg=True):\n if EvQg is not None:\n JBMS, I8JS = ZylS.nn.moments(WKvO, [0, 1, 2])\n ghdg = YKHO.mean.assign(JBMS)\n RPPm = YKHO.variance.assign(I8JS)\n with ZylS.control_dependencies([ghdg, RPPm]):\n return ZylS.nn.batch_norm_with_global_normalization... | [
"0.73375744",
"0.7016016",
"0.69402426",
"0.6930308",
"0.6890035",
"0.6870713",
"0.6845096",
"0.6766321",
"0.67575425",
"0.6714171",
"0.67051464",
"0.6647627",
"0.65995526",
"0.65970504",
"0.65763676",
"0.6518246",
"0.6511042",
"0.6459731",
"0.64524907",
"0.64098454",
"0.6387... | 0.6935189 | 3 |
A naive implementation of the forward pass for a maxpooling layer. | def LUxS(WKvO, cjPb):
yvT9 = None
ywwl, Nq1b, C7Ls, XcU5 = WKvO.shape
ZdOB = cjPb['pool_height']
dvGM = cjPb['pool_width']
_0fC = cjPb['stride']
L_Fy = int(1 + (C7Ls - ZdOB) / _0fC)
ZQxi = int(1 + (XcU5 - dvGM) / _0fC)
yvT9 = oyIN.zeros((ywwl, Nq1b, L_Fy, ZQxi))
for exwG in range(yww... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gORb(WKvO, cjPb):\n yvT9 = None\n ywwl, Nq1b, C7Ls, XcU5 = WKvO.shape\n dvGM = cjPb['pool_width']\n ZdOB = cjPb['pool_height']\n _0fC = cjPb['stride']\n nAIO = int((XcU5 - dvGM) / _0fC + 1)\n Ya8v = int((C7Ls - ZdOB) / _0fC + 1)\n yvT9 = oyIN.zeros((ywwl, Nq1b, Ya8v, nAIO))\n for YRb... | [
"0.78478473",
"0.77464086",
"0.7588915",
"0.75831836",
"0.75474185",
"0.74184185",
"0.7378611",
"0.7318571",
"0.72232896",
"0.71326613",
"0.7098723",
"0.70758176",
"0.6990659",
"0.69255495",
"0.69221073",
"0.68792313",
"0.68130654",
"0.68058133",
"0.6792034",
"0.6792034",
"0.... | 0.74050933 | 6 |
Recommended maximum number of datapoints Returns int | def mmBN(YKHO) -> int:
return 1000000000.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def blQ1(YKHO) -> int:\n return int(YKHO.graph_tuple_stats.graph_data_size_max or 0)",
"def e4pL(Emd4):\n return Emd4._MINIMUM_NUMBER_OF_DATA_POINTS",
"def mCLR(YKHO):\n return 20000",
"def eDgB(YKHO) -> int:\n return int(YKHO.graph_tuple_stats.data_edge_count_max or 0)",
"def AIf_(YKHO):\n ... | [
"0.74292016",
"0.74018806",
"0.7281152",
"0.7237732",
"0.7090521",
"0.6958116",
"0.6913622",
"0.68758655",
"0.6854837",
"0.68302363",
"0.67935854",
"0.6772748",
"0.6769792",
"0.67452073",
"0.67428017",
"0.67161715",
"0.66959566",
"0.668196",
"0.66803277",
"0.6658686",
"0.6651... | 0.87322336 | 0 |
Get item from self.human_data. | def Yj2o(YKHO, or8S: int):
U34r = super().prepare_raw_data(or8S)
if YKHO.cache_reader is not None:
YKHO.human_data = YKHO.cache_reader.get_item(or8S)
or8S = or8S % YKHO.cache_reader.slice_size
if 'smplx' in YKHO.human_data:
smUC = YKHO.human_data['smplx']
U34r['has_smplx'] = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kTCt(YKHO):\n return YKHO.item",
"def kTCt(YKHO):\n return YKHO.item",
"def OP2O(YKHO, ZfUD):\n return YKHO._data[ZfUD]",
"def OP2O(YKHO, ZfUD):\n return YKHO.data[ZfUD]",
"def OP2O(YKHO, ZfUD):\n return YKHO.data[ZfUD]",
"def OP2O(YKHO, ZfUD):\n return YKHO.data[ZfUD]",
"def Iov8... | [
"0.7406864",
"0.7406864",
"0.73144776",
"0.7309078",
"0.7309078",
"0.7309078",
"0.7219982",
"0.71420383",
"0.71420383",
"0.71420383",
"0.70934916",
"0.70712644",
"0.7018385",
"0.7018385",
"0.70036954",
"0.70014024",
"0.7000123",
"0.6842417",
"0.6842417",
"0.6842417",
"0.67811... | 0.0 | -1 |
Name of the dataset. | def W0tD(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j3aw(YKHO):\n return YKHO.dataset.name",
"def j3aw(YKHO):\n return YKHO._dataset_name",
"def P6gR(YKHO):\n raise NotImplementedError",
"def P6gR(YKHO):\n return YKHO.dataset_name",
"def KdeG(YKHO):\n Csk6 = MDcw.Open(YKHO.fname)\n Fg_i = Csk6.GetRasterBand(1)\n J87D = Fg_i.GetMetad... | [
"0.919469",
"0.8976905",
"0.87083614",
"0.8686752",
"0.7850114",
"0.7471211",
"0.7451666",
"0.74262846",
"0.7378664",
"0.73779565",
"0.7199527",
"0.70992815",
"0.70992815",
"0.70992815",
"0.6962095",
"0.6886322",
"0.6757635",
"0.6693697",
"0.667641",
"0.6673114",
"0.6660524",... | 0.0 | -1 |
Converts examples into TexttoText batches to be used with a model like T5. Inputs are prefixed with a text prompt that indicates the task to perform. | def E9Lq(YKHO):
bySB = []
for ttfM, PU1l in enumerate(YKHO.examples):
if ttfM % 10000 == 0:
G9jH.info(f'Writing example {ttfM} of {len(YKHO.examples)}')
BSBL = YKHO.processor.get_t5_prompted_query(PU1l.text_a, PU1l.text_b)
cY2j = YKHO.tokenizer.text_to_ids(BSBL)
if le... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ianL(_73Q):\n c7pe = _73Q[GPtr.source_lang]\n x6A0 = _73Q[GPtr.target_lang]\n tRiF = GPtr.tokenizer(c7pe, max_length=GPtr.max_source_length, truncation=True)\n with GPtr.tokenizer.as_target_tokenizer():\n Crrw = GPtr.tokenizer(x6A0, max_length=GPtr.max_target_length, truncation=True)\n tR... | [
"0.61118716",
"0.592422",
"0.58838516",
"0.585979",
"0.5801184",
"0.5781311",
"0.57746387",
"0.57520574",
"0.57209575",
"0.56961864",
"0.5692046",
"0.5686498",
"0.5684553",
"0.5684334",
"0.56032795",
"0.5577988",
"0.55708474",
"0.55665946",
"0.55582416",
"0.5552899",
"0.55346... | 0.56218064 | 14 |
Converts examples into TexttoText batches to be used with a model like T5. Inputs are prefixed with a text prompt that indicates the task to perform. | def OCyR(YKHO):
bySB = YKHO.features
VNuL = []
for ttfM, PU1l in enumerate(YKHO.examples):
rQow = PU1l.guid.split('-')[1]
if rQow in YKHO.lang_list:
VNuL.append(bySB[ttfM] + [rQow])
return VNuL | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ianL(_73Q):\n c7pe = _73Q[GPtr.source_lang]\n x6A0 = _73Q[GPtr.target_lang]\n tRiF = GPtr.tokenizer(c7pe, max_length=GPtr.max_source_length, truncation=True)\n with GPtr.tokenizer.as_target_tokenizer():\n Crrw = GPtr.tokenizer(x6A0, max_length=GPtr.max_target_length, truncation=True)\n tR... | [
"0.6111713",
"0.5924071",
"0.58839375",
"0.5859931",
"0.5800309",
"0.5781618",
"0.5774486",
"0.57522273",
"0.57205606",
"0.56961256",
"0.56917894",
"0.5685472",
"0.5684877",
"0.5684489",
"0.5622114",
"0.56032103",
"0.5577944",
"0.55711997",
"0.5566548",
"0.555741",
"0.5552782... | 0.0 | -1 |
r"""One could also use the Laplacian of Gaussian formula to design the filter. | def Gg7q(yMhW) -> ht2j.Tensor:
HfMq = ht2j.ones(yMhW)
HfMq[yMhW // 2] = 1 - yMhW
Gg7q: ht2j.Tensor = HfMq
return Gg7q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def filter(YKHO, khtY=_Ezo):\n if YKHO._verbose > 0:\n print('Filtering...')\n NArs = eEZC()\n tbib = YKHO.image_raw - khtY(sigma=NArs['sigma_bgd']).convolve(YKHO.image_raw)\n YKHO.image_filtered = khtY(sigma=NArs['sigma_spots']).convolve(tbib)",
"def eyeM(nPrm, WTkW=(0, 2, 2), Tuqy='wrap'):\n... | [
"0.66963106",
"0.65597415",
"0.6478427",
"0.636755",
"0.6351325",
"0.6253081",
"0.62316626",
"0.62082386",
"0.617469",
"0.61242366",
"0.6101194",
"0.6060973",
"0.60049284",
"0.600304",
"0.60001606",
"0.59720194",
"0.59712464",
"0.59702766",
"0.5951012",
"0.59331256",
"0.59309... | 0.0 | -1 |
Get the expression adjustment parameter for certain samples. | def Yvel(gGnb, uNtZ):
o45_ = oyIN.loadtxt(uNtZ, dtype='str', skiprows=1, delimiter='\t')
jzdc, Fg_i = oyIN.where(gGnb[:, oyIN.newaxis] == o45_[:, 0])
assert oyIN.all(o45_[Fg_i, 0] == gGnb)
o45_ = o45_[Fg_i, :]
usD_ = oyIN.median(o45_[:, 1].astype('float'))
UH90 = usD_ / o45_[:, 1].astype('float'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j6Rr(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'adjustment')",
"def j6Rr(YKHO) -> h8nf[qe4Y.Input[str]]:\n return q... | [
"0.5970573",
"0.5970573",
"0.5970573",
"0.5970573",
"0.5970573",
"0.5970573",
"0.5970573",
"0.5970573",
"0.55451614",
"0.5458691",
"0.5382217",
"0.5338391",
"0.52984136",
"0.52497977",
"0.5241062",
"0.5241062",
"0.52158433",
"0.5213984",
"0.5213984",
"0.5159911",
"0.5122732",... | 0.0 | -1 |
Get all combinations of items in the given array Specifically used for generating variant combination | def VTAx(qw7D, Mkmy=None):
if Mkmy is None:
Mkmy = len(qw7D)
return [bGrB for YRbF in range(1, Mkmy + 1) for bGrB in Hs6x.combinations(qw7D, YRbF)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E6VQ(Sk_F):\n return oyIN.array(oyIN.meshgrid(*Sk_F)).T.reshape(-1, len(Sk_F))",
"def grAr(qw7D, exwG=2):\n if exwG == 0:\n yield frozenset()\n return\n for Z9rn in set(grAr(qw7D, exwG - 1)):\n for YRbF in qw7D:\n if YRbF not in Z9rn:\n yield (frozenset... | [
"0.73074627",
"0.7185561",
"0.6950121",
"0.67702305",
"0.67702305",
"0.6750947",
"0.6720031",
"0.6644649",
"0.6399782",
"0.63772047",
"0.63587743",
"0.6318727",
"0.62932175",
"0.62885773",
"0.62456626",
"0.6200499",
"0.6191303",
"0.61892384",
"0.61841613",
"0.6181527",
"0.616... | 0.79023576 | 0 |
Set the `order_by_field` on the filterset and ensure that the field name is respected. | def lLdu(YKHO):
class F(pauW):
class Meta:
C3ST = mv1M
V_D6 = ['username', 'status']
DeLa = ['status']
gC6d = 'order'
eHNT = vuvg({'order': 'status'}, queryset=YKHO.qs)
YKHO.assertQuerysetEqual(eHNT.qs, ['carl', 'alex', 'jacob', 'aaron'], lambda z1Rg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lLdu(YKHO):\n\n class F(pauW):\n\n class Meta:\n C3ST = mv1M\n V_D6 = ['username', 'status']\n DeLa = ['status']\n gC6d = 'order'\n eHNT = vuvg().form\n YKHO.assertNotIn('o', eHNT.fields)\n YKHO.assertIn('order', eHNT.fields)\n YKHO.assertEqual(... | [
"0.7114981",
"0.6805322",
"0.65821075",
"0.6384245",
"0.6316189",
"0.6254384",
"0.6160399",
"0.60926193",
"0.59577346",
"0.59503293",
"0.59400135",
"0.5909272",
"0.5759706",
"0.57583076",
"0.57493776",
"0.5726326",
"0.5716653",
"0.571355",
"0.5712792",
"0.5647503",
"0.5642596... | 0.7341014 | 0 |
Test ordering descending works when order_by=True. | def B5Ah(YKHO):
class F(pauW):
class Meta:
C3ST = mv1M
V_D6 = ['username', 'status']
DeLa = True
eHNT = vuvg({'o': '-username'}, queryset=YKHO.qs)
YKHO.assertQuerysetEqual(eHNT.qs, ['jacob', 'carl', 'alex', 'aaron'], lambda z1Rg: z1Rg.username) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ysyf(YKHO):\n YAg3(mv1M, DW23, order_by=None)\n vC9B = gte4().query(mv1M).all()",
"def Tsue():\n pass",
"def NIZr(YKHO):\n QePW = YKHO.factory.get('/api/v1/cars', {'distance': 10000, 'ordering': '-price'})\n geh0 = d743.as_view({'get': 'list'})(QePW)\n YKHO.assertEqual(geh0.status_code, q... | [
"0.68660283",
"0.6728724",
"0.6677009",
"0.6650034",
"0.65972036",
"0.6469477",
"0.64451",
"0.6346018",
"0.62945986",
"0.62910104",
"0.6286649",
"0.6240998",
"0.6212203",
"0.619569",
"0.618064",
"0.61099553",
"0.6034809",
"0.5979432",
"0.59784126",
"0.59772485",
"0.59331065",... | 0.6622364 | 4 |
Set the `order_by_field` on the filterset and ensure that the field name is respected. | def lLdu(YKHO):
class F(pauW):
class Meta:
C3ST = mv1M
V_D6 = ['username', 'status']
DeLa = ['status']
gC6d = 'order'
eHNT = vuvg().form
YKHO.assertNotIn('o', eHNT.fields)
YKHO.assertIn('order', eHNT.fields)
YKHO.assertEqual(eHNT.fields['orde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lLdu(YKHO):\n\n class F(pauW):\n\n class Meta:\n C3ST = mv1M\n V_D6 = ['username', 'status']\n DeLa = ['status']\n gC6d = 'order'\n eHNT = vuvg({'order': 'status'}, queryset=YKHO.qs)\n YKHO.assertQuerysetEqual(eHNT.qs, ['carl', 'alex', 'jacob', 'aaron... | [
"0.7341898",
"0.6805477",
"0.6581681",
"0.6385461",
"0.6315338",
"0.6252756",
"0.6159823",
"0.6090766",
"0.5956584",
"0.5951964",
"0.59386057",
"0.59089255",
"0.5759275",
"0.57582235",
"0.5749629",
"0.57229424",
"0.5717913",
"0.5713295",
"0.5711421",
"0.5647316",
"0.56422055"... | 0.7116057 | 1 |
Set the `order_by_field` on the filterset and ensure that the field name is respected. | def BpHt(YKHO):
class F(pauW):
class Meta:
C3ST = mv1M
V_D6 = ['username', 'status']
DeLa = ['status', '-status']
gC6d = 'order'
eHNT = vuvg().form
YKHO.assertNotIn('o', eHNT.fields)
YKHO.assertIn('order', eHNT.fields)
YKHO.assertEqual(eHNT.f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lLdu(YKHO):\n\n class F(pauW):\n\n class Meta:\n C3ST = mv1M\n V_D6 = ['username', 'status']\n DeLa = ['status']\n gC6d = 'order'\n eHNT = vuvg({'order': 'status'}, queryset=YKHO.qs)\n YKHO.assertQuerysetEqual(eHNT.qs, ['carl', 'alex', 'jacob', 'aaron... | [
"0.7341014",
"0.7114981",
"0.65821075",
"0.6384245",
"0.6316189",
"0.6254384",
"0.6160399",
"0.60926193",
"0.59577346",
"0.59503293",
"0.59400135",
"0.5909272",
"0.5759706",
"0.57583076",
"0.57493776",
"0.5726326",
"0.5716653",
"0.571355",
"0.5712792",
"0.5647503",
"0.5642596... | 0.6805322 | 2 |
Returns gdal.Band.GetNoDataValue() as a NumPy type | def SQvY(YKHO):
Aofo = super(uNJx, YKHO).GetNoDataValue()
if Aofo is not None:
return YKHO.NumPyDataType(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GnSg(YKHO, H0Ty=1):\n if H0Ty < 1 or H0Ty > YKHO.dataset.RasterCount:\n raise IndexError('band index is out of range')\n return YKHO.dataset.GetRasterBand(H0Ty).GetNoDataValue()",
"def xilo(YKHO):\n try:\n W1Td = float(YKHO._info['bands'][0]['noDataValue'])\n except KeyError:\n ... | [
"0.7544999",
"0.7434405",
"0.7288697",
"0.6567842",
"0.6520311",
"0.6363698",
"0.6319562",
"0.62501335",
"0.6163293",
"0.61502856",
"0.61502856",
"0.61240387",
"0.6110622",
"0.60905856",
"0.590359",
"0.5895869",
"0.58876556",
"0.58424926",
"0.58220965",
"0.5796688",
"0.577856... | 0.86186093 | 0 |
Returns the minimum value that can be stored in this band | def qSqA(YKHO):
SLLj = YKHO.NumPyDataType
if issubclass(SLLj, XTiz.integer):
return XTiz.iinfo(SLLj).min
elif issubclass(SLLj, XTiz.floating):
return -XTiz.inf
else:
raise TypeError('Cannot handle DataType: {0}'.format(SLLj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def min(YKHO):\n if YKHO.kind == 'u':\n return 0\n else:\n try:\n wEf2 = T_0W._min_vals[YKHO.key]\n except KeyError:\n wEf2 = int(-(1 << YKHO.bits - 1))\n T_0W._min_vals[YKHO.key] = wEf2\n return wEf2",
"def min(YKHO):\n if YKHO.kind == 'u':\n... | [
"0.7944226",
"0.7944226",
"0.7937631",
"0.78972983",
"0.7884411",
"0.78611416",
"0.7846386",
"0.7778144",
"0.77733576",
"0.7762124",
"0.7680303",
"0.7642864",
"0.75792414",
"0.75792414",
"0.75784636",
"0.7551094",
"0.75474113",
"0.75474113",
"0.7521111",
"0.7521111",
"0.74849... | 0.7393505 | 28 |
Returns the minimum value that can be stored in this band | def G8zU(YKHO):
SLLj = YKHO.NumPyDataType
if issubclass(SLLj, XTiz.integer):
return XTiz.iinfo(SLLj).max
elif issubclass(SLLj, XTiz.floating):
return XTiz.inf
else:
raise TypeError('Cannot handle DataType: {0}'.format(SLLj)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def min(YKHO):\n if YKHO.kind == 'u':\n return 0\n else:\n try:\n wEf2 = T_0W._min_vals[YKHO.key]\n except KeyError:\n wEf2 = int(-(1 << YKHO.bits - 1))\n T_0W._min_vals[YKHO.key] = wEf2\n return wEf2",
"def min(YKHO):\n if YKHO.kind == 'u':\n... | [
"0.7944226",
"0.7944226",
"0.7937631",
"0.78972983",
"0.7884411",
"0.78611416",
"0.7846386",
"0.7778144",
"0.77733576",
"0.7762124",
"0.7680303",
"0.7642864",
"0.75792414",
"0.75792414",
"0.75784636",
"0.7551094",
"0.75474113",
"0.75474113",
"0.7521111",
"0.7521111",
"0.74849... | 0.0 | -1 |
Transforms pixel coordinates into the destination projection. If transform is None, no reprojection occurs and the dataset's SpatialReference is used. | def ky4_(YKHO, WKvO, LVAh, SZFh=None):
if not 0 <= WKvO <= YKHO.RasterXSize:
raise ValueError('x %r is not between 0 and %d' % (WKvO, YKHO.RasterXSize))
if not 0 <= LVAh <= YKHO.RasterYSize:
raise ValueError('y %r is not between 0 and %d' % (LVAh, YKHO.RasterYSize))
aopH = YKHO.GetGeoTransfo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HXvt(oxOY, pnj8=None, eKiX=None, TVTK=None, H2v2=None, Ylbp=None, xx9t=None, **B2fa):\n if 'resampling' not in B2fa:\n B2fa['resampling'] = B9Vf.warp.Resampling.cubic\n t1Jm = r7uO(oxOY)\n Y2Kp = pmnP(oxOY)\n if xx9t is not None:\n xx9t = R6EX(*xx9t)\n if pnj8 is None:\n pnj... | [
"0.6720557",
"0.6548644",
"0.6337521",
"0.6230713",
"0.62149775",
"0.58759457",
"0.58334744",
"0.5782975",
"0.5738817",
"0.56981885",
"0.5647636",
"0.5635617",
"0.5624577",
"0.5602451",
"0.55902624",
"0.5584441",
"0.5567373",
"0.55569345",
"0.55569345",
"0.5550751",
"0.552929... | 0.5615591 | 13 |
Converts a signal name to canonical form. | def c0uK(vIwR):
try:
Ty9i = int(vIwR)
except ValueError:
if '_' in vIwR:
raise ValueError('could not convert %r to signal name' % vIwR)
KCHu = vIwR.upper()
if not KCHu.startswith('SIG'):
KCHu = 'SIG' + KCHu
Ty9i = getattr(Gaon, KCHu, None)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tfQR(YKHO, mWFP):\n raise NotImplementedError",
"def eRH4(Gaon: domain.Signal) -> str:\n Zy0I: zrIJ.SIGNAL_MAP = {(550.0, 10.0, 610.0, 20.0): 'mRFP1', (430.0, 10.0, 480.0, 10.0): 'ECFP', (500.0, 10.0, 530.0, None): 'EYFP', (485.0, 12.0, 520.0, None): 'GFP', (485.0, 12.0, 530.0, None): 'GFP530', 600.0: ... | [
"0.70679617",
"0.672173",
"0.66685057",
"0.6528386",
"0.6398456",
"0.6284975",
"0.6257678",
"0.6253902",
"0.6199662",
"0.6199662",
"0.6164654",
"0.61454165",
"0.6111997",
"0.5949534",
"0.58953434",
"0.58953434",
"0.58953434",
"0.5865084",
"0.5847952",
"0.57750165",
"0.5761741... | 0.66648597 | 3 |
Dismiss the alarm that is currently running. | def qBfR(YKHO):
YKHO._get_backend().dismiss_alarm() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sG8W(YKHO):\n VT3I = wNTI(YKHO, 'dismissReminder')\n YKHO.context.add_query(VT3I)\n return YKHO",
"def iZ1n(YKHO):\n if YKHO.animate_alarm:\n YKHO.loop.remove_alarm(YKHO.animate_alarm)\n YKHO.animate_alarm = None",
"async def stop(YKHO, QdZT: Update, QpfX: ContextTypes.DEFAULT_TYPE) -... | [
"0.6770825",
"0.6504499",
"0.6491621",
"0.6473124",
"0.6453558",
"0.6367585",
"0.6321344",
"0.61386096",
"0.60624015",
"0.60624015",
"0.59958225",
"0.5922445",
"0.5870512",
"0.5868287",
"0.5867719",
"0.5865545",
"0.58586764",
"0.58586764",
"0.58152795",
"0.58013976",
"0.57735... | 0.8574007 | 0 |
Sets the country of this Organization. | def vxW9(YKHO, vxW9):
YKHO._country = vxW9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vxW9(YKHO, vxW9):\n if vxW9 is None:\n raise ValueError('Invalid value for `country`, must not be `None`')\n YKHO._country = vxW9",
"def lLqu(YKHO, vxW9):\n return YKHO._request('domain/settings/set_country', gsjh(tq_1.currentframe()))",
"def vxW9(YKHO, vxW9):\n if vxW9 is not None:\n ... | [
"0.7712507",
"0.71704066",
"0.6832151",
"0.6527378",
"0.65113974",
"0.62519395",
"0.62519395",
"0.6071815",
"0.6042363",
"0.5949575",
"0.5870461",
"0.56637245",
"0.558508",
"0.5546206",
"0.5546206",
"0.55045587",
"0.54971576",
"0.5478352",
"0.5457733",
"0.5457733",
"0.5406521... | 0.76674914 | 5 |
Sets the person_name of this Organization. | def zgzW(YKHO, zgzW):
YKHO._person_name = zgzW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, FCtA):\n YKHO.name = FCtA",
"def jpuF(YKHO, jpuF):\n YKHO._org_name = jpuF",
"def jpuF(YKHO, jpuF):\n YKHO._org_name = jpuF",
"def UW_n(YKHO, a70H):\n if a70H.upper() == Sil8.upper():\n YKHO.person_name = Sil8\n YKHO.person_id = 'XX'\n else:\n YKHO.person_na... | [
"0.7833753",
"0.7134179",
"0.7134179",
"0.6688187",
"0.65317196",
"0.65317196",
"0.65103024",
"0.65103024",
"0.65096503",
"0.6446856",
"0.64192414",
"0.6416891",
"0.63956535",
"0.63956535",
"0.63956535",
"0.63956535",
"0.63956535",
"0.63945746",
"0.63945746",
"0.6344165",
"0.... | 0.8247543 | 1 |
Sets the email of this Organization. | def D3lj(YKHO, D3lj):
YKHO._email = D3lj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lEeL(YKHO, D3lj):\n YKHO.email = D3lj\n return YKHO",
"def D3lj(YKHO, D3lj: str):\n YKHO._email = D3lj",
"def D3lj(YKHO, D3lj):\n if YKHO.local_vars_configuration.client_side_validation and D3lj is None:\n raise ValueError('Invalid value for `email`, must not be `None`')\n YKHO._email... | [
"0.8130456",
"0.7738362",
"0.7542091",
"0.7482652",
"0.7326202",
"0.72683007",
"0.72421545",
"0.71375",
"0.71375",
"0.686361",
"0.686361",
"0.686361",
"0.66893005",
"0.6623506",
"0.6539565",
"0.65185577",
"0.64557123",
"0.6449671",
"0.6417425",
"0.63945293",
"0.6345876",
"0... | 0.7769974 | 9 |
Sets the zip_post_code of this Organization. | def aS2h(YKHO, aS2h):
YKHO._zip_post_code = aS2h | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DD6W(YKHO, DD6W):\n YKHO._zipcode = DD6W",
"def jLqg(YKHO, jLqg):\n YKHO._zip_code = jLqg",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ",
"def q8sW(YKHO, q8sW):\n YKHO._post... | [
"0.7381539",
"0.7371916",
"0.70360076",
"0.70360076",
"0.70360076",
"0.69919515",
"0.67918134",
"0.67918134",
"0.67918134",
"0.6679859",
"0.65118146",
"0.6351724",
"0.61154234",
"0.6063556",
"0.6023592",
"0.59138143",
"0.58627266",
"0.56648487",
"0.56164485",
"0.55818355",
"0... | 0.84573597 | 0 |