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 pocket residue sequence for all structures.
def NCl9(_tpO): Qnl2 = rLdf.DataFrame(_tpO['structure.pocket'].apply(list).to_list(), columns=range(1, 86)) return Qnl2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xjpg(g8x2):\n CU8j = lambda Mkmy: (Mkmy.id[1], CURt.get(Mkmy.resname, 'X'))\n Q6uT = [CU8j(Mkmy) for Mkmy in g8x2.get_residues() if itLf(Mkmy)]\n return Q6uT", "def Gvq8(YKHO):\n Q6uT = ''\n I1mm = 'prot'\n z9fQ = YKHO.child_list[0].resname.strip()\n if z9fQ not in YKHO.protein:\n ...
[ "0.6367672", "0.6336202", "0.6321035", "0.60811985", "0.6047499", "0.60437936", "0.5974348", "0.5912533", "0.58409137", "0.58174604", "0.5813587", "0.5797233", "0.57754475", "0.57512796", "0.56786305", "0.56439716", "0.5623062", "0.5609271", "0.55916333", "0.5572633", "0.5562...
0.0
-1
Label bars in barplot that are listed as anchor residues.
def TwAd(aNZO, I225): if I225: FA0o = [eb3W for Y7wX in I225.values() for eb3W in Y7wX] for eb3W, Po4F in enumerate(aNZO.patches, 1): if eb3W in FA0o: aNZO.annotate('*', (Po4F.get_x(), Po4F.get_height()), size=10) return aNZO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def siQ4(j8aQ, aNZO):\n for mawX in j8aQ:\n H2v2 = mawX.get_height()\n aNZO.annotate('{}'.format(H2v2), xy=(mawX.get_x() + mawX.get_width() / 2, H2v2), xytext=(0, 3), textcoords='offset points', ha='center', va='bottom')", "def KLLa(aNZO, k3mI):\n for S6Fl in k3mI:\n H2v2 = S6Fl.get_he...
[ "0.72285545", "0.7226857", "0.7205448", "0.7177928", "0.71204966", "0.70728415", "0.6721932", "0.6699309", "0.6687966", "0.6681812", "0.66795", "0.66408336", "0.66173553", "0.65640026", "0.65560544", "0.65434146", "0.6542403", "0.6542403", "0.6539501", "0.6536239", "0.6535907...
0.72911924
0
Return an ASCIIonly JSON representation of a Python string
def iGZj(KCHu): if isinstance(KCHu, str) and HAIz.search(KCHu) is not None: KCHu = KCHu.decode('utf-8') def qx_G(kUBT): KCHu = kUBT.group(0) try: return I0A5[KCHu] except KeyError: exwG = ord(KCHu) if exwG < 65536: return '\\u%...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dC0v(vIwR, m5r4='application/octet-stream'):\n try:\n vIwR = vIwR.decode('utf-8')\n qQXR.dumps(vIwR)\n return vIwR\n except (ValueError, TypeError):\n return b''.join([b'data:', m5r4.encode('utf-8'), b';base64,', WR89.b64encode(vIwR)]).decode('utf-8')", "def npHv(KCHu):\n ...
[ "0.75954646", "0.7505128", "0.73644197", "0.73565984", "0.7341369", "0.729658", "0.71943605", "0.70926166", "0.70713615", "0.7019235", "0.70114905", "0.69929934", "0.69594175", "0.69289684", "0.69289684", "0.68958473", "0.68930566", "0.68290156", "0.68054473", "0.67836905", "...
0.0
-1
Load model from provided path
def uyMl(YKHO, pmON): YKHO.model = tyeH(pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O5RJ(YKHO, uqvc: str):\n pass", "def O5RJ(Emd4, uqvc):\n pass", "def uyMl(YKHO, WJHQ):\n raise NotImplementedError", "def uyMl(YKHO, pmON='./nnmodel.tflearn'):\n YKHO.model.load(pmON)", "def uyMl(YKHO, QpfX, pmON):\n raise NotImplementedError()", "def k8jE(pmON):\n C3ST = w4hD.load_...
[ "0.883984", "0.87927717", "0.8418188", "0.84097517", "0.840475", "0.83941466", "0.83838826", "0.8359086", "0.831313", "0.83051324", "0.821429", "0.8200186", "0.8199192", "0.8195227", "0.8172675", "0.8156591", "0.8145068", "0.8136955", "0.812062", "0.8084128", "0.8061464", "...
0.8867279
0
Tests that filtering only returns latest versions.
def Q0Cy(): bvud = k7pM(name='malware1', labels=['label1']).save() k7pM(name='malware2', labels=['label1']).save() RBez = bvud.modified bvud.update({'name': 'malware11'}) ph6n = k7pM.filter({'name': 'malware1'})[0].modified assert str(ph6n) != str(RBez) assert len(k7pM.filter({'name': 'malwa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mfLA(YKHO, YQs6, NRxX=6):\n ACia = OZpC(YKHO.context, 'portal_catalog')\n Ylbp = []\n for ycAf in YQs6:\n Ylbp.append(ycAf)\n if len(Ylbp) == NRxX:\n break\n Ylbp.sort(key=lambda WKvO: WKvO.effective)\n Ylbp.reverse()\n return Ylbp", "def vkUd():\n em9o = set(lis...
[ "0.6661979", "0.66379076", "0.66314363", "0.65298367", "0.6426348", "0.6293006", "0.62884027", "0.62873936", "0.6254053", "0.6215862", "0.61569107", "0.6129761", "0.61026514", "0.6041129", "0.5958266", "0.59374917", "0.59039134", "0.5889406", "0.58731985", "0.58542794", "0.58...
0.7860384
0
This function init share contact api class.
def FIMM(YKHO): YKHO.mode_name = 'contact' YKHO.tag = 'qrd_share_contact' i_Aq.__init__(YKHO, YKHO.mode_name) YKHO.debug_print('contact init:%f' % ITS7.time())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._contacts = []", "def FIMM(YKHO, NT__=None, LhSa=None, ZaJ1=None, bKAt=None, eYwf=None, NKKl=None, HCrG=None, gu8a=None, DSUH=None, SLWl=None, Gnjd=None, hkQl=None, pqeW=None, BiNI=None, nFBP=None, LpCf=None):\n YKHO._access_token = None\n YKHO._contact_entity_id = None\n YKHO....
[ "0.6640391", "0.6583303", "0.6577143", "0.63315153", "0.62935346", "0.6268373", "0.6268373", "0.6268373", "0.62624305", "0.62574106", "0.624758", "0.6221371", "0.6200428", "0.6196686", "0.6187839", "0.61777234", "0.61727715", "0.6168387", "0.6168387", "0.6168387", "0.6168387"...
0.8031883
0
Convert a Catalog into a serializable catalog DTO
def v9uB(n7sQ: Catalog) -> mT2F: c7pe = [] for G1Hx, KCHu in n7sQ.sources.items(): for HJX9 in KCHu.versions.values(): c7pe.append(ZQqq(identifier=G1Hx, driver_name=HJX9.driver_name, driver_kwargs=HJX9.driver_kwargs, version=HJX9.version, metadata=HJX9.metadata)) return mT2F(sources=c7pe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIsN():\n return vjcZ.to_json()", "def xZOy():\n Piln = cuiw.query(qZuN).order_by('name').all()\n return pz3A(Catalog=[Z9rn.serialize for Z9rn in Piln])", "def xZOy():\n LeZt = cuiw.query(qZuN).all()\n return pz3A(Category=[Z9rn.serialize for Z9rn in LeZt])", "def xZOy():\n return pz3A(...
[ "0.642225", "0.6361703", "0.61031693", "0.61019003", "0.60604084", "0.59070206", "0.59067565", "0.5898338", "0.5851317", "0.5703802", "0.5692951", "0.56413525", "0.5622461", "0.5606162", "0.558884", "0.5584398", "0.5573082", "0.55714285", "0.5517975", "0.55132616", "0.5513261...
0.56350005
12
Property to access the users projects namespace
def llaM(YKHO) -> WDYr: return YKHO._projects
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kMaH(YKHO) -> str:\n ...", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace')", "def _6...
[ "0.7867012", "0.67295146", "0.67295146", "0.67295146", "0.67295146", "0.67295146", "0.67295146", "0.67295146", "0.6634662", "0.6634662", "0.6634662", "0.6634662", "0.6634662", "0.66277045", "0.66185397", "0.66185397", "0.66185397", "0.66185397", "0.66185397", "0.66185397", "0...
0.0
-1
Writes graph to JSON file Private method to write graphs into specified JSON file. Called by undirectedGraph and directedGraph.
def Agbz(YKHO, IznC, pNZh): with open(IznC, 'w') as tyeL: qQXR.dump(pNZh, tyeL, indent=4, sort_keys=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYCN(YKHO, Ux0P=None):\n if Ux0P is not None:\n J5gw = mcTD.node_link_data(YKHO.G)\n qQXR.dump(J5gw, open('{}.json'.format(Ux0P), 'w'), indent=4)", "def djJW(YKHO, Ux0P=None):\n if YKHO.filename is None:\n if Ux0P is not None:\n YKHO.filename = Ux0P\n else:\n ...
[ "0.752524", "0.735616", "0.7286365", "0.7234849", "0.7184138", "0.7153888", "0.7020182", "0.7002331", "0.6964757", "0.6959974", "0.6953119", "0.6946285", "0.69204134", "0.682879", "0.6824269", "0.68212014", "0.6788103", "0.67872274", "0.67598885", "0.67523235", "0.6693543", ...
0.8770918
0
Gets a list of all job parameters for which only a single value per sample is allowed.
def kaWI(YKHO) -> x1iM[_DqA]: return [XP5J for XP5J in YKHO.params if XP5J.per_sample]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UPMR(YKHO) -> x1iM[_DqA]:\n return [XP5J for XP5J in YKHO.params if XP5J.default is None]", "def UNGO(YKHO):\n HhGF = ZylS.trainable_variables()\n BWuP = HhGF\n if YKHO.ignore_weights:\n BWuP = [XP5J for XP5J in BWuP if 'weights' not in XP5J.name]\n if YKHO.ignore_means:\n BWuP =...
[ "0.6580403", "0.6290207", "0.62317276", "0.61368877", "0.6136458", "0.60581166", "0.5847219", "0.5847219", "0.58137107", "0.58000356", "0.57762575", "0.57762575", "0.5728673", "0.56882954", "0.56678313", "0.56607425", "0.564918", "0.5642822", "0.56330925", "0.558", "0.557456"...
0.7833992
0
Gets a list of column names in the job data that are not job parameters but metadata.
def vYHk(YKHO) -> x1iM[I2jr]: return list(set(YKHO.data) - set((XP5J.name for XP5J in YKHO.params)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Txl5(YKHO):\n if YKHO._data is not None:\n return [WKvO for WKvO in YKHO._data.header()]\n else:\n return []", "def DmX2(YKHO):\n return YKHO._data.columns", "def iDDg(YKHO):\n return [WKvO for WKvO in YKHO.__dict__.keys() if WKvO[0] != '_']", "def Txl5(YKHO):\n return YKHO.c...
[ "0.75120395", "0.72855353", "0.722955", "0.7143701", "0.71134245", "0.70245135", "0.7017874", "0.700738", "0.70060366", "0.6933757", "0.6919079", "0.6919079", "0.6919079", "0.6919079", "0.6919079", "0.6919079", "0.69183195", "0.6872049", "0.6870889", "0.6846285", "0.6840508",...
0.7021474
6
Convert record instance to dict
def MtOB(AIu6): if not isinstance(AIu6, list): return [{H5ew: BWXx for H5ew, BWXx in AIu6.items()}] else: return [{H5ew: BWXx for H5ew, BWXx in rdlD.items()} for rdlD in AIu6]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SZFh(AIu6: Base) -> dict:\n return AIu6.to_dict()", "def odaL(YKHO, AIu6):\n k0u0 = {'name': AIu6.employee.name, 'date': AIu6.date, 'task_name': AIu6.task_name, 'duration': AIu6.duration, 'notes': AIu6.notes}\n return k0u0", "def qK35(YKHO):\n return YKHO.__dict__", "def MtOB(AIu6):\n try:...
[ "0.8336334", "0.7959103", "0.7747701", "0.7528714", "0.73159707", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", "0.71719676", ...
0.0
-1
Redraw screen. This could be to initialize, or to redraw after resizing.
def rI0P(YKHO, Miq3): with YKHO._lock: Miq3.clear() Miq3.addstr(0, 0, 'workflows service monitor -- quit with Ctrl+C', PcHS.A_BOLD) Miq3.refresh() YKHO.message_box = YKHO._boxwin(5, PcHS.COLS, 2, 0, title='last seen message', color_pair=1) YKHO.message_box.scrollok(True) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCKv(YKHO):\n YKHO.send({'msg': 'redraw'})", "def gCKv(YKHO):\n YKHO.send({'msg': 'redraw'})", "def xoyg(YKHO):\n YKHO._surface.fill(a9eO.Color(48, 48, 48))\n YKHO._display_game_board()\n a9eO.display.flip()", "def gCKv(YKHO):\n YKHO.draw_background()\n YKHO.draw_blocks()\n YKHO.d...
[ "0.8442929", "0.8442929", "0.83911717", "0.8311172", "0.82801175", "0.8273601", "0.8261587", "0.81025827", "0.802929", "0.799095", "0.7916841", "0.7878804", "0.7797484", "0.7788812", "0.7715872", "0.7697755", "0.76954275", "0.76454395", "0.75842214", "0.75745076", "0.7568979"...
0.0
-1
Destroy cards with this or higher number.
def Rm2T(YKHO, FGW3): with YKHO._lock: if FGW3 < len(YKHO.cards) - 1: YKHO._erase_card(FGW3 + 1) if FGW3 > len(YKHO.cards) - 1: return huLt = int(PcHS.COLS / 35) c7Du = PcHS.newwin(6, 35, 7 + 6 * (FGW3 // huLt), 35 * (FGW3 % huLt)) c7Du.erase() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hROg(YKHO, mLGw):\n return YKHO.cards.pop(mLGw)", "def TRvr(YKHO, d6pt):\n YKHO.cards.remove(d6pt)", "def xXXt(YKHO, d6pt):\n del YKHO.cards[d6pt]", "def IA2m(YKHO, YRbF=-1) -> F1Hz:\n return YKHO.cards.pop(YRbF)", "def kSdD(YKHO, d6pt):\n dxhl = YKHO.cards[d6pt]\n del YKHO.cards[d6pt...
[ "0.67516774", "0.6601254", "0.6575927", "0.64914054", "0.63730055", "0.6338971", "0.6336597", "0.6333479", "0.63053817", "0.6199773", "0.61848867", "0.6163442", "0.615038", "0.6101604", "0.6101604", "0.6101604", "0.6101604", "0.6086948", "0.6069274", "0.6043388", "0.59956115"...
0.7194383
0
Return a string representation of this hash table.
def wHJl(YKHO): return "['" + "' -> '".join(YKHO.items) + "']"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.hash_table)", "def zAg0(YKHO):\n Aofo = 'Linear Hash Table:\\n'\n for YRbF, EtlH in enumerate(YKHO.table_list):\n Aofo += '{}-> {}\\n'.format(YRbF, EtlH)\n return Aofo", "def zAg0(YKHO):\n Aofo = 'Chaining Hash Table:\\n'\n for YRbF, MgJg in enumerate(...
[ "0.83391666", "0.8082379", "0.8001092", "0.792997", "0.792997", "0.7689725", "0.7645915", "0.7645915", "0.7645915", "0.7584382", "0.752767", "0.75219405", "0.7489924", "0.7476664", "0.7454088", "0.7441246", "0.7428882", "0.74018717", "0.7376303", "0.73750687", "0.732013", "...
0.0
-1
Return a unique hash for a player based on their CSV row.
def PXlE(rdlD): return str(qxeD.uuid5(glCj, '{}{}{}'.format(rdlD['First Name'], rdlD['Last Name'], rdlD['DOB'])))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKsj(rdlD):\n LYUz = ''\n for Jyyj in rdlD:\n if isinstance(rdlD[Jyyj], str) or isinstance(rdlD[Jyyj], int):\n if isinstance(rdlD[Jyyj], int):\n rdlD[Jyyj] = str(rdlD[Jyyj])\n geQy = rdlD[Jyyj].strip()\n geQy = ' '.join(geQy.split())\n LYU...
[ "0.72605765", "0.6856293", "0.6030971", "0.5992665", "0.58536285", "0.5747485", "0.56692904", "0.56490564", "0.5643112", "0.5616857", "0.56065625", "0.555457", "0.55340415", "0.553269", "0.5532274", "0.5509302", "0.54828554", "0.5444804", "0.5400917", "0.5373403", "0.5362781"...
0.6076356
2
Initiation of the Class Ship
def FIMM(YKHO, e81N, v40M, hgiy, AA86, cEyu, ZU6l): YKHO._position_x = e81N YKHO._position_y = v40M YKHO._velocity_x = hgiy YKHO._velocity_y = AA86 YKHO._heading = cEyu YKHO._lives = ZU6l
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n fs6s.init(200, 200, scale=2)\n YKHO.ship = riCe(*uwaB.SHIP_INITIAL_POSITION, uwaB.SHIP_COLOUR)\n _40k.init_class(YKHO.ship)\n x2yN.init_music()\n YKHO.reset_game()\n YKHO.high_score = XKbh(uwaB.HIGH_SCORE_FILE)\n fs6s.run(YKHO.update, YKHO.draw)", "def FIMM(YKHO):\n a9eO...
[ "0.78817856", "0.75720465", "0.731348", "0.7242769", "0.7240856", "0.72115195", "0.71317923", "0.7125225", "0.7062942", "0.70047784", "0.69992906", "0.6983639", "0.6941227", "0.6940057", "0.6920412", "0.6918408", "0.69125", "0.6885608", "0.68831646", "0.6871087", "0.68009853"...
0.0
-1
This function returns the position on axis x
def Ktcp(YKHO): return YKHO._position_x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HPWF(YKHO):\n return YKHO._position[1]", "def Dl13(YKHO):\n return YKHO._positions_x", "def nIKw(YKHO):\n return YKHO.x_coord", "def Aco_(YKHO):\n return YKHO.__pos_x", "def NkBi(YKHO):\n return YKHO.xvar", "def vAgg(YKHO):\n return YKHO.widget.position[0]", "def QOxj(YKHO):\n ...
[ "0.8213568", "0.80591774", "0.79888374", "0.79817784", "0.78711814", "0.7870219", "0.77732146", "0.7772559", "0.7745069", "0.7741071", "0.77308744", "0.77233124", "0.77024966", "0.7685751", "0.76847976", "0.7665229", "0.7663412", "0.7640373", "0.7597335", "0.7565998", "0.7559...
0.80283725
2
conv2d retorna uma camada convolucional 2d com uma stride de [1, 1, 1, 1].
def b_zE(WKvO, XcU5): return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b_zE(YKHO, *qIxc, **B2fa):\n FYKK, ZI14 = YKHO._get_function_and_suffix('conv2d')\n return YKHO._mask(FYKK, ZI14, *qIxc, **B2fa)", "def b_zE(YKHO, *qIxc, **B2fa):\n FYKK, ZI14 = YKHO._get_function_and_suffix('conv2d')\n return YKHO._mask(FYKK, ZI14, *qIxc, **B2fa)", "def b_zE(YKHO, rb7a, M6vu, ...
[ "0.72963065", "0.72963065", "0.71849406", "0.71552485", "0.712308", "0.71015483", "0.70969015", "0.7096675", "0.70959014", "0.70845515", "0.70845515", "0.70788276", "0.70777965", "0.70735", "0.70504653", "0.70479506", "0.7029027", "0.70221806", "0.70158017", "0.70096713", "0....
0.6925942
36
weight_variable gera uma weight variable da shape informada.
def E9N2(ROpF): RqgG = ZylS.truncated_normal(ROpF, stddev=0.1) return ZylS.Variable(RqgG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9N2(ROpF):\n return ZylS.get_variable(name='weight', shape=ROpF, initializer=ZylS.truncated_normal_initializer(stddev=0.1))", "def E9N2(ROpF):\n return ZylS.get_variable('weights', ROpF, initializer=ZylS.contrib.layers.xavier_initializer())", "def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, ...
[ "0.79773724", "0.7942016", "0.77589023", "0.7661195", "0.7652652", "0.7610591", "0.75868136", "0.7559044", "0.7543536", "0.7532904", "0.7532904", "0.7532904", "0.7531613", "0.7519945", "0.7499242", "0.74452305", "0.74452305", "0.74452305", "0.74452305", "0.74452305", "0.74452...
0.76012313
6
bias_variable gera a variavel bias da forma informada.
def Y7ph(ROpF): RqgG = ZylS.constant(0.1, shape=ROpF) return ZylS.Variable(RqgG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fthx(YKHO):\n return YKHO.getGlobalVariableByName('bias')", "def fthx(YKHO):\n return YKHO.getGlobalVariableByName('bias')", "def Y7ph(ROpF):\n return ZylS.get_variable(name='bias', shape=ROpF, initializer=ZylS.constant_initializer(0.1))", "def Y7ph(ROpF):\n return ZylS.get_variable('bias', R...
[ "0.7511811", "0.7511811", "0.7447681", "0.7407954", "0.7357868", "0.727836", "0.7263292", "0.72523236", "0.724696", "0.72259855", "0.7194011", "0.71823394", "0.71789306", "0.71296763", "0.7102281", "0.7084802", "0.7084802", "0.7084802", "0.7084802", "0.7084802", "0.7084802", ...
0.7197906
10
Perform HTTP PATCH request.
def Po4F(YKHO, bD7m: StrOrURL, *, nPrm: Any=None, **B2fa: Any) -> '_RequestContextManager': return FNQS(YKHO._request(lYL_.METH_PATCH, bD7m, data=nPrm, **B2fa))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Po4F(YKHO, *qIxc, **B2fa):\n B2fa['method'] = LIz1\n return YKHO.request(*qIxc, **B2fa)", "def p1FH(YKHO):\n k_uT = int(YKHO.headers.get('Content-Length', 0))\n TBsA = YKHO.rfile.read(k_uT)\n YKHO.request_info('PATCH', YKHO.path, TBsA)\n YKHO.response_content = '{\"id\":\"updated_sni\"}'\n ...
[ "0.8031414", "0.7655002", "0.76431894", "0.7635338", "0.7552571", "0.75277287", "0.7502557", "0.7498055", "0.74533606", "0.74474216", "0.74474216", "0.7441193", "0.7431788", "0.7430035", "0.7412594", "0.7412594", "0.7412594", "0.7412594", "0.7412594", "0.7407046", "0.7407046"...
0.0
-1
Perform HTTP DELETE request.
def PTpj(YKHO, bD7m: StrOrURL, **B2fa: Any) -> '_RequestContextManager': return FNQS(YKHO._request(lYL_.METH_DELETE, bD7m, **B2fa))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, *qIxc, **B2fa):\n B2fa['method'] = wlcv\n return YKHO.request(*qIxc, **B2fa)", "def PTpj(YKHO):\n Mkmy = YKHO.request(YKHO.url + '/delete')\n YKHO.response = None\n YKHO.url = None\n return Mkmy", "def PTpj(YKHO, bD7m, **YSA3):\n return YKHO._do_request(method='DELETE', url=...
[ "0.8298113", "0.8199373", "0.81390214", "0.80364907", "0.80346787", "0.8023496", "0.79915136", "0.79800904", "0.79769015", "0.7937535", "0.79021084", "0.7894702", "0.78715986", "0.78659993", "0.7801357", "0.7745142", "0.7705492", "0.77035934", "0.7703404", "0.76522154", "0.76...
0.0
-1
Is client session closed. A readonly property.
def msNV(YKHO) -> bool: return YKHO._connector is None or YKHO._connector.closed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SEEh(YKHO):\n return YKHO.status == LTBJ", "def SEEh(YKHO):\n return YKHO._is_state(Cy2T)", "def SEEh(YKHO):\n return YKHO._closed", "def SEEh(YKHO):\n return YKHO._closed", "def msNV(YKHO):\n return YKHO._state == YKHO.STATE_CLOSED", "def SEEh(YKHO):\n return YKHO._state is False",...
[ "0.75227743", "0.7426756", "0.74229574", "0.74229574", "0.73130345", "0.727219", "0.724588", "0.72364527", "0.7206814", "0.7206814", "0.7203035", "0.7194902", "0.7182328", "0.718004", "0.7154353", "0.7142294", "0.7128692", "0.7122885", "0.7118994", "0.7066006", "0.70275444", ...
0.6582105
63
Return compiled query string.
def u70P(YKHO): V_D6 = [bTKY for bTKY in [YKHO.table, YKHO.field, YKHO.operation] if bTKY is not None] return YKHO.SEP.join(V_D6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compile(YKHO):\n gtI8 = ''\n for OXAZ in YKHO.terms:\n if gtI8:\n gtI8 += ' '\n gtI8 += OXAZ\n YKHO.compiled_str = uRlK.parse.quote(gtI8)\n return YKHO", "def axXe(YKHO) -> str:\n if len(YKHO.__parameters) == 0:\n raise ValueError('No search-parameters set.')\n ...
[ "0.67798126", "0.6771708", "0.6767989", "0.6706485", "0.65818757", "0.65593386", "0.65567183", "0.64684033", "0.6351423", "0.63331497", "0.6306588", "0.627833", "0.6256731", "0.6221233", "0.6167512", "0.61506796", "0.6108911", "0.61052084", "0.6102855", "0.60961396", "0.60895...
0.6214348
14
Decide if self < other.
def JWbp(YKHO, Elif): return str(YKHO.data) < str(Elif.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWbp(YKHO, Elif):\n return not YKHO > Elif", "def JWbp(YKHO, Elif):\n return YKHO <= Elif and YKHO != Elif", "def JWbp(YKHO, Elif) -> bool:\n if YKHO >= Elif:\n return False\n else:\n return True", "def JWbp(YKHO, Elif):\n return YKHO._value < Elif._value", "def JWbp(YKHO, ...
[ "0.8768031", "0.8752274", "0.86970305", "0.86687505", "0.86188257", "0.86188257", "0.86188257", "0.85909116", "0.85768735", "0.8571282", "0.85433096", "0.8539126", "0.84946454", "0.8443337", "0.84283125", "0.8421655", "0.8413797", "0.8412786", "0.838566", "0.83794916", "0.836...
0.0
-1
Return the length of the collection.
def szAg(YKHO): return len(YKHO._filters)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO) -> int:\n return len(YKHO.collection)", "def u54L(YKHO):\n return YKHO._list.__len__()", "def u54L(YKHO):\n return YKHO.list.size", "def u54L(YKHO):\n return YKHO.list.size", "def u54L(YKHO):\n return YKHO.list.size", "def u54L(YKHO):\n return YKHO.list.length()", "def ...
[ "0.88178885", "0.82445997", "0.8193684", "0.8193684", "0.8193684", "0.8152089", "0.8135081", "0.8135081", "0.8135081", "0.8135081", "0.81079817", "0.8102155", "0.8102155", "0.80723023", "0.8063177", "0.80604976", "0.805584", "0.80312765", "0.8021581", "0.8010293", "0.79748183...
0.0
-1
compute and save the filter maximal activation as an image. Compute it only for filters for which
def Ve4_(YKHO, WHQn, bS0K=None): ZYHV = YKHO.model_info[WHQn] if bS0K is None: bS0K = range(ZYHV['lay'].out_channels) lzjZ = ZYHV['name'] OzT9 = [] for ulrI in ZYHV['filters']: mWFP = '{}_{}_max_activ.jpg'.format(ZYHV['name'], ulrI['id']) utPP = YKHO.get_filt_string('max_acti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Snzo(YKHO):\n return XTiz.max(YKHO.activation)", "def dRO0(woP8):\n return oyIN.maximum(woP8, 0)", "def Lyl1(VXjJ, KUnM):\n imx5 = oyIN.zeros_like(VXjJ)\n for V3HY, NArs in KUnM:\n UKAb = XC5k.filter2D(VXjJ, XC5k.CV_8UC3, V3HY)\n XC5k.imshow('filtered image', UKAb)\n XC5k.i...
[ "0.67161644", "0.64552236", "0.6232958", "0.60864633", "0.60656875", "0.60010314", "0.59810764", "0.59552246", "0.59386873", "0.5847978", "0.5828713", "0.57992643", "0.57860047", "0.5762139", "0.56813127", "0.56519663", "0.5636324", "0.562905", "0.56274843", "0.5615208", "0.5...
0.6751657
0
Verify string is ISBN10 returns a bool.
def qutR(Z5r0): wjRY = 0 Z5r0 = list(Z5r0) Z5r0 = [WKvO for WKvO in Z5r0 if WKvO not in '-'] if len(Z5r0) != 10: return False if Z5r0[-1] == 'X': Z5r0[-1] = 10 try: Z5r0 = [int(WKvO) for WKvO in Z5r0] except: return False for YRbF, ZfUD in enumerate(Z5r0):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SNBI(N6yo):\n if not isinstance(N6yo, exCv):\n raise ValueError('Invalid Format')\n elif len(N6yo) != 10:\n raise ValueError('Invalid String Format')\n else:\n kjEx = Zs2o(N6yo)\n if kjEx == 10:\n kjEx = 'X'\n return str(kjEx) == N6yo[9]", "def _9xF(Wxnj...
[ "0.80880964", "0.80425197", "0.7960419", "0.7863364", "0.7697824", "0.7617398", "0.74695385", "0.697315", "0.69634867", "0.6876383", "0.67434245", "0.64677656", "0.64539665", "0.6396049", "0.63388866", "0.63150865", "0.63150865", "0.6312838", "0.6287689", "0.6287689", "0.6202...
0.70596683
7
Create a convolutional unit. A convolutional unit uses normal convolutional layer with a nonlinearity (squash).
def pCwX(YKHO, or8S): PXGI = U78l.Conv2d(in_channels=YKHO.in_channel, out_channels=32, kernel_size=9, stride=2) YKHO.add_module('conv_unit' + str(or8S), PXGI) return PXGI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KdSp(pOSB):\n return ZylS.contrib.layers.conv2d(pOSB, 16, kernel_size=4, stride=1, activation_fn=ZylS.nn.relu)", "def Dubg(g4y1, KUnM, Ot1W=3, YDYE='relu'):\n B2fa = {'use_bias': False, 'kernel_initializer': 'he_uniform'}\n WKvO = yHwh(KUnM, Ot1W, (1, 1), 'same', **B2fa)(g4y1)\n WKvO = GVKG()(WKv...
[ "0.6978821", "0.6766384", "0.67309105", "0.668059", "0.66784036", "0.66536325", "0.66434526", "0.66321975", "0.6603493", "0.65927345", "0.6588654", "0.65730345", "0.6539222", "0.6519372", "0.6517879", "0.64910865", "0.6489543", "0.6489543", "0.6489543", "0.6453352", "0.644108...
0.67137563
3
FIR filter design using the window method. From the given frequencies `f` and corresponding gains `m`, this function constructs an FIR filter with linear phase and (approximately) the given frequency response.
def NVe_(exwG: int, eHNT, r8hN, eQHC: int=512, KnxT='hamming') -> AzJI: if eQHC <= exwG / 2: raise ValueError('`npt` must be larger than `n/2`.') if r8hN[-1] == 1 and exwG % 2 == 1: exwG += 1 Rmys = eQHC * 2 exwG += 1 mLGw = Gaon.firwin2(exwG, eHNT, r8hN, nfreqs=Rmys, window=KnxT) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZR2(ycBG, r8hN):\n cB3J = []\n fq02 = []\n for YRbF in range(len(ycBG)):\n cB3J.append(ycBG[YRbF])\n if YRbF < r8hN - 1:\n fq02.append(1 / (1 + YRbF) * sum(cB3J[-r8hN:]))\n else:\n fq02.append(1 / r8hN * sum(cB3J[-r8hN:]))\n return fq02", "def gWdI(YKHO...
[ "0.6601655", "0.6509002", "0.6457902", "0.61903864", "0.6104172", "0.60851645", "0.6023356", "0.5948267", "0.5921358", "0.59114224", "0.59104675", "0.58713263", "0.5866037", "0.5849465", "0.58461374", "0.5833209", "0.5812439", "0.5796842", "0.57777447", "0.5744406", "0.573924...
0.0
-1
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses.
def kblH(YKHO, *qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_(YKHO):\n print('Subclass and over-ride this method.')", "def FIMM(YKHO):\n super().__init__(None)", "def FIMM(YKHO):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2...
[ "0.7979564", "0.71205705", "0.71157724", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", "0.7090922", ...
0.0
-1
Checks if user has access to this view
def HsJG(YKHO): return c5ow.is_authenticated and c5ow.is_admin()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h8ch(YKHO, QePW):\n return QePW.user.is_authenticated and QePW.user.is_active or True", "def JL1u(YKHO):\n if Mi51.has_permission('access', YKHO, YKHO.request):\n return True\n else:\n return False", "def qHTF(YKHO, QePW, tTee):\n if QePW.method == 'GET':\n return True\n ...
[ "0.8735637", "0.83789814", "0.81484044", "0.8130487", "0.8117701", "0.8110206", "0.8106839", "0.8096669", "0.8086357", "0.8086357", "0.8054653", "0.8053434", "0.8053434", "0.8044102", "0.8023643", "0.8022705", "0.8016375", "0.8002642", "0.7983959", "0.7974202", "0.79598", "...
0.0
-1
Checks if user has access to this view
def HsJG(YKHO): return c5ow.is_authenticated and c5ow.is_admin()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h8ch(YKHO, QePW):\n return QePW.user.is_authenticated and QePW.user.is_active or True", "def JL1u(YKHO):\n if Mi51.has_permission('access', YKHO, YKHO.request):\n return True\n else:\n return False", "def qHTF(YKHO, QePW, tTee):\n if QePW.method == 'GET':\n return True\n ...
[ "0.8735637", "0.83789814", "0.81484044", "0.8130487", "0.8117701", "0.8110206", "0.8106839", "0.8096669", "0.8086357", "0.8086357", "0.8054653", "0.8053434", "0.8053434", "0.8044102", "0.8023643", "0.8022705", "0.8016375", "0.8002642", "0.7983959", "0.7974202", "0.79598", "...
0.0
-1
The main home page
def kZiy(QePW): FDzT = dKht.objects.all().order_by('id') QpfX = {'all_dashboards': FDzT} return _1tc(QePW, 'home.html', context=QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('main.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def kZiy():\n return TvZl('inde...
[ "0.8743453", "0.86135423", "0.85873294", "0.84623754", "0.8415483", "0.8396793", "0.8396793", "0.83923507", "0.8379263", "0.8363314", "0.8362787", "0.835599", "0.83303356", "0.83219284", "0.82943386", "0.8293104", "0.8293104", "0.8293104", "0.8293104", "0.8293104", "0.8293104...
0.0
-1
Consultant Survey from request and response
def A4gD(QePW, sAxw): Dck1 = QyXt.decode_data(sAxw) Dck1 = Iofl(dKht, pk=int(Dck1)) if QePW.method == 'POST': L03z = H6V6.ConsultantSurveyForm(Dck1, QePW.POST) if L03z.is_valid(): q2EN = L03z.cleaned_data['team'] bTKY = L03z.save(commit=False) bTKY.team = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IiJp(YKHO, QePW):\n return YKHO._dashboard_request(method='GET', path='/api/survey-questions/' + QePW['questionId'], body=QePW)", "def tYjn(QePW):\n if QePW.method == 'GET':\n AzR4 = jcBk.objects.all()\n ZMzz = vV1C(AzR4, many=True)\n return sz8e(ZMzz.data)\n elif QePW.method ==...
[ "0.6814594", "0.6718265", "0.67114604", "0.6623171", "0.6615245", "0.6614629", "0.66109073", "0.65215695", "0.6517535", "0.64482915", "0.64425516", "0.6429962", "0.6416982", "0.6380036", "0.63667494", "0.6341388", "0.6310065", "0.6288167", "0.6274968", "0.6243631", "0.6242598...
0.5958294
36
Add a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list.
def PgMl(YKHO, wEf2: int) -> None: BdN0 = Msxl(wEf2) if YKHO.LL: BdN0.next = YKHO.LL[0] YKHO.LL.insert(0, BdN0) return YKHO.LL[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yMiq(YKHO, wEf2, Z6gX):\n if YKHO.includes(wEf2):\n if YKHO.head.value == wEf2:\n YKHO.insert(Z6gX)\n else:\n Q6kx = o7DN(Z6gX)\n jvSB = YKHO.head\n while jvSB.nxt.value != wEf2:\n jvSB = jvSB.nxt\n Q6kx.nxt = jvSB.nxt\n ...
[ "0.84591115", "0.8395089", "0.8387186", "0.813704", "0.8074683", "0.8035796", "0.7994846", "0.79606694", "0.7942848", "0.7921503", "0.7894538", "0.78705585", "0.7839092", "0.78325856", "0.77841204", "0.77626526", "0.77019674", "0.76744634", "0.7673072", "0.7670344", "0.766323...
0.75385356
30
Return the name of the field used in the data container object.
def mWFP(YKHO) -> str: if YKHO.alias is not None: return YKHO.alias return YKHO.original_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vXX7(YKHO):\n return YKHO._field_name", "def vXX7(YKHO) -> str:\n return qe4Y.get(YKHO, 'field_name')", "def vXX7(YKHO) -> str:\n return YKHO._field_name", "def gGw6(YKHO):\n return YKHO.name", "def gGw6(YKHO):\n return YKHO.name", "def mWFP(YKHO):\n return YKHO.field.name", "def ...
[ "0.84621435", "0.84357095", "0.841464", "0.8337012", "0.8337012", "0.82631725", "0.8152235", "0.8057672", "0.79726505", "0.7861525", "0.7789948", "0.7786045", "0.7786045", "0.7598638", "0.7598638", "0.7570356", "0.7568342", "0.7455468", "0.73621523", "0.7329103", "0.72413117"...
0.0
-1
Go through the list of dictionaries and add all values of a certain key to a list.
def hkxX(khaN, H5ew): v9CE = [] for ZfUD in khaN: if isinstance(ZfUD, dict) and H5ew in ZfUD: if ZfUD[H5ew] not in v9CE: v9CE.append(ZfUD[H5ew]) return v9CE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RqFK(dzf3, H5ew):\n S06t = []\n for Hm8A in dzf3:\n S06t.append(Hm8A[H5ew])\n return S06t", "def hkxX(yv6U, H5ew):\n hkxX = []\n for ZfUD in yv6U:\n if isinstance(ZfUD, dict) and H5ew in ZfUD:\n if ZfUD[H5ew] not in hkxX:\n hkxX.append(ZfUD[H5ew])\n r...
[ "0.71930796", "0.66999805", "0.66399884", "0.6492948", "0.6422087", "0.63846767", "0.6374638", "0.63227767", "0.62321097", "0.6227179", "0.6224525", "0.6201691", "0.6187246", "0.61722624", "0.6163033", "0.61343235", "0.6091583", "0.60582757", "0.6040276", "0.597367", "0.59734...
0.5977227
19
Compute the intersection between two lists.
def XMlP(LFlW: celtypes.ListType, _tIi: celtypes.ListType) -> cLri.BoolType: return cLri.BoolType(bool(set(LFlW) & set(_tIi)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RIsH(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))", "def iQin(jtyf, V70B):\n j93S = set(jtyf)\n Nqp_ = set(V70B)\n hlel = list(j93S.intersection(Nqp_))\n return hlel", "def iQin(jzdc, Fg_i):\n return [geyT for geyT in jzdc if geyT in Fg_i]", "def zVQj(iHrl, X1zw):\n return list(...
[ "0.8187086", "0.79817754", "0.7949051", "0.79284304", "0.79277587", "0.78504616", "0.7809722", "0.77542293", "0.77542293", "0.77467114", "0.7703163", "0.767165", "0.7657279", "0.7657279", "0.7657279", "0.7657279", "0.7657279", "0.7608975", "0.75971454", "0.75757015", "0.75677...
0.6705687
86
Unique size of a list
def Vcvr(xUwc: celtypes.ListType) -> cLri.IntType: return cLri.IntType(len(set(xUwc)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(vC9B):\n return len(vC9B)", "def szAg(YKHO) -> int:\n zNig = 0\n for Csk6 in YKHO._list:\n zNig += len(Csk6)\n return zNig // 2", "def zNig(YKHO):\n vIOz = len(YKHO._list)\n return vIOz", "def zNig(YKHO):\n return len(YKHO.list)", "def F4js(YKHO):\n pass", "def szA...
[ "0.78843004", "0.7484988", "0.7253481", "0.7218483", "0.7199098", "0.71936154", "0.7075802", "0.70384765", "0.7033139", "0.70240164", "0.6928721", "0.6918546", "0.6907848", "0.6871561", "0.68624765", "0.6853665", "0.6853665", "0.6853665", "0.6836738", "0.6836045", "0.6832423"...
0.7590488
1
Parse an ARN, removing a partivular field. The field name must one one of "partition", "service", "region", "accountid", "resourcetype", "resourceid" In the case of a ``resourcetype/resourceid`` path, this will be a "resourceid" value, and there will be no "resourcetype". Examples formats
def TYm5(hMqs: celtypes.StringType, Jyyj: celtypes.StringType) -> cLri.Value: NSNj = {len(ZWCE): ZWCE for ZWCE in [('partition', 'service', 'region', 'account-id', 'resource-id'), ('partition', 'service', 'region', 'account-id', 'resource-type', 'resource-id')]} y0cW, *V_D6 = hMqs.split(':') if y0cW != 'arn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def stlQ(hMqs):\n UqER = hMqs.split(':', 5)\n Aofo = {'arn': UqER[0], 'partition': UqER[1], 'service': UqER[2], 'region': UqER[3], 'account': UqER[4], 'resource': UqER[5], 'resource_path': None}\n if '/' in Aofo['resource']:\n Aofo['resource'], Aofo['resource_path'] = Aofo['resource'].split('/', 1)...
[ "0.73668486", "0.6587829", "0.52639556", "0.520362", "0.5021502", "0.49753946", "0.48879102", "0.47815314", "0.47040337", "0.46974087", "0.46501383", "0.46241152", "0.46187532", "0.46187532", "0.45797104", "0.45239058", "0.4463871", "0.4463871", "0.4463871", "0.4463871", "0.4...
0.6568094
2
Initializes the observation probabilities (the 'B' matrix).
def z_aY(YKHO): for YRbF in range(pe5E.NUMBER_OF_CHARS): gtI8 = pe5E.neighbour[YRbF] for r845 in range(pe5E.NUMBER_OF_CHARS): YKHO.b[YRbF][r845] = -float('inf') for r845 in range(len(gtI8)): YKHO.b[YRbF][pe5E.char_to_index(gtI8[r845])] = epAf.log(0.1) YKHO.b[Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)", "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)", "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.weight.data.fill_(1.0)", "def uHk4(tF9S):\n tF9S.bias.data.fill_(0.0)\n tF9S.wei...
[ "0.67748564", "0.67420834", "0.67298514", "0.67298514", "0.6717257", "0.6716573", "0.6716573", "0.6716573", "0.65357184", "0.6497901", "0.64961946", "0.63999397", "0.6389958", "0.62136483", "0.6210758", "0.61998767", "0.6172952", "0.61655706", "0.6105846", "0.6105846", "0.610...
0.69094926
0
Calc the pdf of a gaussian distribution
def kzAT(EcVT, r8hN, o4sw): if not isinstance(EcVT, oyIN.ndarray) or len(EcVT.shape) != 2: return None if not isinstance(r8hN, oyIN.ndarray) or len(r8hN.shape) != 1: return None if not isinstance(o4sw, oyIN.ndarray) or len(o4sw.shape) != 2: return None if EcVT.shape[1] != r8hN.sh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qhzd(WKvO, JBMS, WTkW):\n return oyIN.exp(-0.5 * ((WKvO - JBMS) / WTkW) ** 2) / (WTkW * oyIN.sqrt(2.0 * oyIN.pi))", "def Qhzd(T6S7, yGTL, WTkW):\n QF3p = ZWbT(T6S7, yGTL, WTkW)\n kzAT = oyIN.exp(QF3p)\n return kzAT", "def yrge(WKvO, yGTL, WTkW):\n return Zxt2.stats.norm.pdf(WKvO, yGTL, WTkW)...
[ "0.8480126", "0.8329698", "0.81549215", "0.80501294", "0.804628", "0.7919505", "0.79163677", "0.7903333", "0.7903333", "0.7863266", "0.7856363", "0.78118354", "0.77678096", "0.7753007", "0.7702725", "0.76990783", "0.769519", "0.76852083", "0.7679931", "0.76575196", "0.7645398...
0.0
-1
Each draw from the deck results in a value between 1 and 13 (uniformly
def yWAB(YKHO): BWXx = tuKI.randint(2, 11) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yWAB(YKHO):\n fg5D = YKHO.cards.pop(ajWY(0, len(YKHO.cards) - 1))\n iCfd = YKHO.suits[pBSp(fg5D / len(YKHO.cardlist))]\n wEf2 = YKHO.cardlist[fg5D % len(YKHO.cardlist)]\n return {'suit': iCfd, 'val': wEf2, 'card': iCfd + wEf2}", "def jXNy(vKgD, RAvt, xvI9):\n O1gd = [mLGw for mLGw in range(1, ...
[ "0.6554458", "0.63606906", "0.63376874", "0.6335888", "0.63166374", "0.6251462", "0.6225413", "0.6182587", "0.61690456", "0.61529976", "0.61429995", "0.61381143", "0.61317", "0.61204845", "0.61028427", "0.6065132", "0.60581666", "0.60380644", "0.6028202", "0.60235316", "0.601...
0.7058382
0
Gets the message of this Response500.
def Ol8d(YKHO): return YKHO._message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BuEc(YKHO):\n return YKHO._exception_message", "def Ol8d(YKHO):\n return YKHO._message", "def Eair(YKHO):\n return \"API error #{0} ('{1}'): {2}.\".format(YKHO.id, YKHO.name, YKHO.message)", "def Eair(YKHO):\n return YKHO.__message", "def Eair(YKHO):\n return YKHO.__message", "def Eair...
[ "0.76403433", "0.752246", "0.75135165", "0.74232084", "0.7402665", "0.7402665", "0.73622316", "0.73622316", "0.7332171", "0.7322832", "0.7320861", "0.73031235", "0.72402596", "0.72402596", "0.72402596", "0.72402596", "0.72176903", "0.72119033", "0.7210111", "0.7199539", "0.71...
0.7235123
19
Sets the more_info of this Response500.
def yxYh(YKHO, yxYh): YKHO._more_info = yxYh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yxYh(YKHO, yxYh: str):\n if yxYh is None:\n raise ValueError('Invalid value for `more_info`, must not be `None`')\n YKHO._more_info = yxYh", "def aOtT(YKHO, aOtT):\n YKHO._error_info = aOtT", "def yxYh(YKHO) -> str:\n return YKHO._more_info", "def mjPN(YKHO, necE):\n YKHO.additional...
[ "0.7398337", "0.65797704", "0.64497524", "0.6324349", "0.6268183", "0.61660445", "0.6004419", "0.5908769", "0.5675951", "0.56233096", "0.56149787", "0.55885285", "0.54823744", "0.5474354", "0.54659176", "0.5384063", "0.53783923", "0.53783923", "0.53783923", "0.53783923", "0.5...
0.80028635
0
Partitions a list around a pivot. A[i] <= A[pivot_index] <= A[j] for all i < pivot_index < j < len(A).
def Qrt_(k0lF, gqRb, ODP9): Mkmy = tuKI.randint(gqRb, ODP9) k0lF[gqRb], k0lF[Mkmy] = (k0lF[Mkmy], k0lF[gqRb]) csQL = gqRb for YRbF in range(gqRb + 1, ODP9 + 1): if k0lF[YRbF] < k0lF[gqRb]: csQL += 1 k0lF[YRbF], k0lF[csQL] = (k0lF[csQL], k0lF[YRbF]) k0lF[csQL], k0lF[gq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qrt_(k0lF, Dvh2, Ybwo, dur0):\n k0lF[Dvh2], k0lF[dur0] = (k0lF[dur0], k0lF[Dvh2])\n csQL = k0lF[Dvh2]\n M6gN = Dvh2\n svfL = Dvh2 + 1\n for LSgh in range(Dvh2, Ybwo):\n if k0lF[LSgh] < csQL:\n k0lF[svfL], k0lF[LSgh] = (k0lF[LSgh], k0lF[svfL])\n svfL += 1\n k0lF[M6...
[ "0.77810806", "0.7360338", "0.7307198", "0.72612673", "0.7257408", "0.71746844", "0.71105945", "0.70724183", "0.7044968", "0.70424336", "0.7028464", "0.6993171", "0.6991698", "0.69793576", "0.6961796", "0.6929484", "0.6857005", "0.678569", "0.67812735", "0.67767435", "0.67699...
0.0
-1
Decorator that caches the return value for each call to f(args). Then when called again with same args, we can just look it up.
def i_PE(eHNT): wyyA = {} def ECmi(*qIxc): try: return wyyA[qIxc] except KeyError: wyyA[qIxc] = Aofo = eHNT(*qIxc) return Aofo except TypeError: return eHNT(*qIxc) ECmi.cache = wyyA return ECmi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rxxd(eHNT):\n wyyA = {}\n\n def KmAm(*qIxc):\n if qIxc in wyyA:\n return wyyA[qIxc]\n Aofo = eHNT(*qIxc)\n wyyA[qIxc] = Aofo\n return Aofo\n return KmAm", "def rxxd(eHNT, wyyA={}):\n\n def Oa1e(*qIxc, **B2fa):\n H5ew = (eHNT, tuple(qIxc), frozenset(B2...
[ "0.8194364", "0.80174994", "0.80002046", "0.78567535", "0.78335977", "0.78018326", "0.78005886", "0.7788078", "0.77712035", "0.77712035", "0.77712035", "0.77712035", "0.7747788", "0.77087224", "0.7675925", "0.76643693", "0.7659227", "0.76172686", "0.7613276", "0.7613276", "0....
0.7781479
8
Returns full JSON path (with .json filename included at end). Creates project directory if necessary. DOES NOT create a JSON file, however.
def Ecnp(LNo8, dir): for eHNT in Hy7s.listdir(dir): if eHNT in LNo8: return Hy7s.path.join(dir, eHNT, eHNT + '.json') tN39 = Hy7s.path.join(dir, LNo8) plBm = Hy7s.path.join(tN39, LNo8 + '.json') if not Hy7s.path.exists(tN39): Hy7s.makedirs(tN39) return plBm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HXAE(mWFP):\n pmON = f'./json/{mWFP}.json'\n return pmON", "def TLr7(YKHO):\n return Hy7s.path.join(YKHO.__dest_dirname, YKHO.__json_filename)", "def PI9j(YKHO, Ux0P):\n if Ux0P.endswith('.json'):\n pass\n else:\n Ux0P += '.json'\n qaEx = GkAb(Hy7s.path.dirname(Hy7s.path.rea...
[ "0.7253331", "0.6801878", "0.6736421", "0.65931463", "0.6572988", "0.6506111", "0.6493731", "0.6416815", "0.64062184", "0.6405591", "0.6396897", "0.63542426", "0.6323767", "0.6323536", "0.63172424", "0.62673575", "0.61953145", "0.61699486", "0.61610734", "0.61581", "0.6125253...
0.67516005
2
Receive a string that contains a list of subreddit names, separated by comma or spaces or similar characters. Split the string into a list of clean subreddit names and return the list.
def pbm9(KCHu): if not KCHu: return [] BDwY = ZbWC.split('[^A-Za-z0-9_-]+', KCHu) BDwY = [WKvO for WKvO in BDwY] return BDwY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CoaY(NPoT):\n rxma = []\n V22M = NPoT.split(' ')\n iPaa = [GIN8 for GIN8 in V22M if GIN8.startswith('/r/') or GIN8.startswith('\\r\\n/r/')]\n for _5RM in iPaa:\n if '.' in _5RM:\n _5RM = _5RM.rstrip('.')\n _5RM = _5RM.split('/r/')[1]\n rxma.append(_5RM)\n return r...
[ "0.7713783", "0.6188854", "0.6177878", "0.61684537", "0.60484403", "0.601092", "0.58926123", "0.5853598", "0.5755166", "0.5731672", "0.57175624", "0.5696931", "0.5677463", "0.56473535", "0.56216145", "0.5616718", "0.5599654", "0.55945534", "0.5589262", "0.5588618", "0.5566992...
0.58045685
8
Return a UTC timezone aware datetime object from a string in ISO8601 format.
def tLIA(ZpyY=None): if not ZpyY: NGTC = qcWV.now(FXGE.utc) else: NGTC = d5IO.parser.parse(ZpyY) if not NGTC.tzinfo: NGTC = FXGE.utc.localize(NGTC) return NGTC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfK9(gYCd):\n return qcWV.datetime.strptime(gYCd, A19j).replace(tzinfo=qcWV.timezone.utc)", "def tLIA(KCHu, yl4j=None):\n return bifY.parse_date(KCHu, default_timezone=yl4j)", "def iX6S(vIwR):\n return Uex5(d5IO.parser.parse(vIwR))", "def yF4M(ETcH):\n return qcWV.strptime(ETcH, '%Y-%m-%dT%H:...
[ "0.8036048", "0.76252276", "0.7580489", "0.7580167", "0.7557494", "0.7515709", "0.7515709", "0.74262947", "0.73905873", "0.7348248", "0.7290705", "0.7222524", "0.7219429", "0.7192115", "0.71920335", "0.7163346", "0.7095177", "0.70941234", "0.7047642", "0.7028536", "0.7012852"...
0.6344686
54
VGG 11layer model (configuration "A")
def zohT(jTqs=10): return s3br(AaDq(_Fei['A']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wNbF(**B2fa):\n C3ST = s3br(AaDq(_Fei['A']), **B2fa)\n return C3ST", "def wNbF():\n return s3br(AaDq(_Fei['A']))", "def CAz4():\n return s3br(AaDq(_Fei['A'], batch_norm=True))", "def ZsU2():\n return s3br(AaDq(_Fei['B']))", "def ZsU2(**B2fa):\n C3ST = s3br(AaDq(_Fei['B']), **B2fa)\n ...
[ "0.8561846", "0.8528357", "0.8266595", "0.8174459", "0.8169166", "0.81288993", "0.7844362", "0.7815675", "0.7798872", "0.7752156", "0.7752156", "0.77488863", "0.77369756", "0.77261806", "0.7652191", "0.76373684", "0.7524913", "0.7484841", "0.74788743", "0.74782026", "0.746969...
0.73091656
31
VGG 11layer model (configuration "A") with batch normalization
def GUrD(jTqs=10): return s3br(AaDq(_Fei['A'], batch_norm=True))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CAz4():\n return s3br(AaDq(_Fei['A'], batch_norm=True))", "def Cxkw():\n return s3br(AaDq(_Fei['B'], batch_norm=True))", "def CAz4(**B2fa):\n C3ST = s3br(AaDq(_Fei['A'], batch_norm=True), **B2fa)\n return C3ST", "def DTy7():\n a7Lb = ileL()\n a7Lb.add(Zlsf(lambda WKvO: WKvO / 255.0 - 0....
[ "0.76259476", "0.75271994", "0.7346531", "0.7285733", "0.72399247", "0.7219344", "0.7217027", "0.719485", "0.7160787", "0.7089549", "0.7082275", "0.70569205", "0.70370656", "0.7017738", "0.70171255", "0.70057493", "0.6974416", "0.6961074", "0.6956125", "0.69464666", "0.687715...
0.65265507
44
VGG 13layer model (configuration "B")
def ZsU2(jTqs=10): return s3br(AaDq(_Fei['B']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cxkw():\n return s3br(AaDq(_Fei['B'], batch_norm=True))", "def ZsU2():\n return s3br(AaDq(_Fei['B']))", "def ZsU2(**B2fa):\n C3ST = s3br(AaDq(_Fei['B']), **B2fa)\n return C3ST", "def Cxkw(**B2fa):\n C3ST = s3br(AaDq(_Fei['B'], batch_norm=True), **B2fa)\n return C3ST", "def CAz4():\n ...
[ "0.8477868", "0.8465897", "0.8463193", "0.8337648", "0.80160695", "0.7966153", "0.7870948", "0.78542745", "0.7847819", "0.78449655", "0.7840387", "0.7830252", "0.7802169", "0.77512956", "0.77200717", "0.7678957", "0.76687014", "0.7640897", "0.76353616", "0.76197195", "0.76010...
0.8061902
4
VGG 16layer model (configuration "D")
def a7Lb(jTqs=10): return s3br(AaDq(_Fei['D']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a7Lb(**B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n return C3ST", "def a7Lb():\n return s3br(AaDq(_Fei['D']))", "def XF5m():\n return s3br(AaDq(_Fei['D'], batch_norm=True))", "def a7Lb(jTqs=10):\n C3ST = s3br(_Fei['vgg16'], jTqs)\n return C3ST", "def XF5m(**B2fa):\n C3ST = s3br(...
[ "0.8482543", "0.8453662", "0.83023703", "0.8240353", "0.8079578", "0.7999773", "0.7996756", "0.7950659", "0.79101694", "0.79068863", "0.7885296", "0.78825146", "0.78825146", "0.78825146", "0.7827089", "0.7819219", "0.7813056", "0.77699214", "0.7759704", "0.7741364", "0.770486...
0.81314003
4
VGG 19layer model (configuration "E")
def AndN(jTqs=10): return s3br(AaDq(_Fei['E']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AndN(**B2fa):\n C3ST = s3br(AaDq(_Fei['E']), **B2fa)\n return C3ST", "def AndN():\n return s3br(AaDq(_Fei['E']))", "def bFDE():\n return s3br(AaDq(_Fei['E'], batch_norm=True))", "def bFDE(**B2fa):\n C3ST = s3br(AaDq(_Fei['E'], batch_norm=True), **B2fa)\n return C3ST", "def ZsU2():\n ...
[ "0.84032625", "0.8357504", "0.8207867", "0.80626094", "0.80340594", "0.79124343", "0.78631854", "0.7821841", "0.77572435", "0.77047306", "0.7658324", "0.7656703", "0.76538116", "0.7615078", "0.7603496", "0.7598256", "0.75641656", "0.7563316", "0.7558401", "0.7551434", "0.7531...
0.8002266
5
Sends the current TOTP token to ``self.number``.
def ksg3(YKHO): wzkt = qcWV.datetime.utcnow() if (wzkt - YKHO.last_used).total_seconds() < gCuF.OTP_TWILIO_RATE_LIMIT_INTERVAL: raise AeQj('Too many requests, ignoring...') eOtH = '{0:06}'.format(tYvF(YKHO.bin_key)) if YKHO.number == 5551234567: return eOtH if gCuF.OTP_TWILIO_NO_DELI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7_y(YKHO, BWXx):\n YKHO.__socketConfig.setOTP(BWXx)\n return YKHO", "def c9lV(YKHO):\n q8z_ = HYmV(user=YKHO.user, otp_type=YKHO.otp_type)\n erWp = q8z_.generate()\n B_nT.delay(phone_ext=q8z_.user.phone_ext, phone_no=q8z_.user.phone_no, otp_code=erWp)\n return q8z_.id", "def ZP9Q(YKHO, J...
[ "0.6688125", "0.65414095", "0.6094438", "0.6053083", "0.59337986", "0.58783174", "0.5861008", "0.5715621", "0.57135737", "0.5695709", "0.5680561", "0.56444305", "0.56369716", "0.56218857", "0.559099", "0.5590013", "0.55865234", "0.557235", "0.55386496", "0.5528219", "0.552527...
0.5832355
7
Returns the next schedule date for auto repeat after a recurring document has been created. Adds required offset to the schedule_date param and returns the next schedule date.
def s378(YKHO, kRVI, IZJw=False): if o27V.get(YKHO.frequency): Hu0p = o27V.get(YKHO.frequency) + iayq(kRVI, YKHO.start_date) - 1 else: Hu0p = 0 KBuT = 0 if Hu0p and YKHO.repeat_on_last_day: KBuT = 31 jeHq = Zm3O(YKHO.start_date, Hu0p, KBuT) elif Hu0p and YKHO.repeat_o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vyxk(YKHO) -> qcWV.datetime:\n zbgu = FXGE.timezone('UTC')\n if YKHO.repetition_period and YKHO.status in [YKHO.STATUS_SPOOLED, YKHO.STATUS_STARTED]:\n wzkt = YKHO.last_invocation_datetime or qcWV.datetime.now().replace(tzinfo=zbgu)\n if YKHO.repetition_rate in (None, 0):\n YKHO....
[ "0.68098944", "0.60810363", "0.59903187", "0.5898535", "0.5857537", "0.5823043", "0.5818463", "0.57593375", "0.56674045", "0.5513071", "0.55084085", "0.5472327", "0.54618895", "0.54592514", "0.54567575", "0.54491216", "0.54308784", "0.5430425", "0.5422706", "0.5390141", "0.53...
0.6576893
1
Initializes and shows the piece creation interface
def n0b6(YKHO, tvqc): YKHO.addPieceMenu = zMyh(YKHO.frame) YKHO.addPieceMenu.drawMenu() YKHO.addPieceMenuBindEvents() YKHO.menu.destroy() YKHO.vbar.destroy() YKHO.addPieceMenu.pack()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.label = '1: Make Network Points from Procedural Features'\n YKHO.description = 'Given site-worthy aquatic procedural features, creates points along the hydro network, then loads them into service layers.'\n YKHO.canRunInBackground = True\n YKHO.category = 'Site Delineation Tools:...
[ "0.66682965", "0.6628258", "0.6549138", "0.65212536", "0.65097666", "0.6416019", "0.63301504", "0.6327453", "0.6218913", "0.62087667", "0.61997473", "0.6168698", "0.61616933", "0.6154203", "0.6147298", "0.6112709", "0.6108214", "0.61023414", "0.610223", "0.6095847", "0.609039...
0.0
-1
Convert a date and time string to a datetime.
def LnML(_c1T, ITS7): LVAh, r8hN, Csk6 = map(int, _c1T.split('/')) C7Ls, E3D9, o4sw = map(int, ITS7.split(':')) JRYC = qcWV.datetime(LVAh, r8hN, Csk6, C7Ls, E3D9, o4sw) return JRYC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDPx(mbyn):\n try:\n return qcWV.datetime.strptime(mbyn, '%Y-%m-%d %H:%M:%S')\n except Exception as e:\n return tTpl", "def fk21(cTyu):\n try:\n y_em = qcWV(*TCR1(cTyu, '%Y%m%d%H%M')[0:6])\n except ValueError:\n y_em = qcWV(*TCR1(cTyu, '%Y%m%d%H%M%S')[0:6])\n return...
[ "0.78600425", "0.7848633", "0.784137", "0.7795451", "0.7795036", "0.77529496", "0.7718137", "0.7689168", "0.7635893", "0.75973517", "0.7579941", "0.7566065", "0.7565877", "0.7551212", "0.75491524", "0.7533209", "0.7511259", "0.7495966", "0.7495966", "0.7485983", "0.7481048", ...
0.8285132
0
Convert a time to decimal.
def Jmuw(ITS7): MKlR, r8hN, KCHu = map(float, ITS7.split(':')) C6wh = MKlR * 3600.0 + r8hN * 60.0 + KCHu return C6wh / 3600.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uly6(YKHO, X20W):\n X20W = YKHO.to_24(X20W)\n FCal = X20W.split(':')\n tFzF = float(FCal[0])\n tFzF += float(FCal[1]) / 60.0\n return tFzF", "def uly6(B6UX):\n WbTE = fCoM(**dict(zip(['hours', 'minutes', 'seconds'], map(int, B6UX.split(':')))))\n return WbTE.total_seconds() / (24 * 60 * ...
[ "0.8078725", "0.7725059", "0.7262708", "0.7042514", "0.69802386", "0.6780589", "0.6770884", "0.6720688", "0.66602427", "0.66236836", "0.66122365", "0.660681", "0.65739685", "0.6564265", "0.6564265", "0.6564265", "0.6564265", "0.653639", "0.65290713", "0.65170187", "0.6455498"...
0.6981798
4
Transforms the `within_chunk_annotator_ids` to a set of new `annotator_ids` that do not collide among the `num_chunks` equal chunks of the dataset. This method splits the dataset into `num_chunks` unique chunks with the same number of examples, and transforms the `within_chunk_annotator_ids` which uniquely identifies t...
def H5nG(YKHO, qXDZ: tf.Tensor, iWW0: int, vilq: int, IGl8: int) -> ZylS.Tensor: S5z_ = iWW0 % vilq l94S = qXDZ + ZylS.cast(S5z_ * IGl8, ZylS.float32) return l94S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tFpc(YKHO):\n G9jH.info('Grouping exams by patient...')\n m877 = {C3kz: list(YKHO.exams_df.loc[Pfcj]['exam_id']) for C3kz, Pfcj in PRqg(YKHO.exams_df.groupby('patient_id').groups.items())}\n PYUx = list(YKHO.exams_df['patient_id'].unique())\n tuKI.shuffle(PYUx)\n G9jH.info('Building splits...')\...
[ "0.5518897", "0.54766756", "0.5475223", "0.54436004", "0.51720953", "0.5164109", "0.515053", "0.5133736", "0.5104821", "0.50754803", "0.50475466", "0.4998573", "0.49824497", "0.49698976", "0.49665636", "0.49171647", "0.48936334", "0.4890047", "0.48894104", "0.48870662", "0.48...
0.7823813
0
Returns the number of adversarial annotators that are added to the global pool of annotators.
def SJ7c(YKHO): if YKHO._num_adversarial_annotators_per_example is None or YKHO._num_adversarial_annotators_per_example == 0: return 0 else: return int(round(YKHO._num_adversarial_annotators_per_example * YKHO.num_examples / YKHO.average_annotator_load))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xXuZ(YKHO):\n if YKHO._num_effective_annotators is None:\n YKHO._num_effective_annotators = YKHO.annotators_info['count'].size()\n return YKHO._num_effective_annotators", "def n40R(YKHO):\n pass", "def o2tc(YKHO):\n if YKHO._num_annotators_per_example is None:\n return YKHO._max_a...
[ "0.7788256", "0.7652788", "0.7261421", "0.6825871", "0.67144287", "0.6544413", "0.64380515", "0.6370017", "0.6365181", "0.63510835", "0.6293438", "0.62703234", "0.62376595", "0.6232995", "0.6178669", "0.61725706", "0.61661863", "0.61331683", "0.6115121", "0.6100357", "0.61003...
0.8190433
0
Pads pi_features with 1 so that each example has features for exactly num_annotators_per_example_and_step. An annotator_id=1 indicates that the corresponding pi_features are meaningless.
def fYZX(YKHO, PU1l: Example) -> kC_U: ig11 = ZylS.shape(PU1l['pi_features']['annotator_ids'])[0] WAcC = YKHO.num_annotators_per_example_and_step - ig11 LkVj = ZylS.convert_to_tensor([[0, WAcC], [0, 0]]) def sOoy(mQxV, r1tP): YWB9 = ZylS.pad(mQxV, LkVj, 'CONSTANT', constant_values=-1) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def voio(YKHO, PU1l: Example):\n FNms = ZylS.cast(ZylS.reshape(PU1l['pi_features']['annotator_ids'], [-1]), dtype=ZylS.int32)\n GVLS = ZylS.expand_dims(PU1l['clean_labels'], 1)\n n5rq = ZylS.shape(GVLS)[-1]\n GVLS = ZylS.repeat(GVLS, axis=1, repeats=[YKHO.num_annotators_per_example])\n GVLS = ZylS.c...
[ "0.65328836", "0.6245856", "0.6105788", "0.5836396", "0.5742092", "0.5694408", "0.56317794", "0.5603368", "0.55983174", "0.5456482", "0.527373", "0.525005", "0.5223174", "0.51910025", "0.51690394", "0.50268924", "0.49866447", "0.49265757", "0.49155784", "0.49067795", "0.48955...
0.79406804
0
Creates a unique random PI feature vector of length `random_pi_length` sampled from a normal distribution.
def xM5X(YKHO, PU1l: Example, z54w: tf.Tensor) -> ZylS.Tensor: ig11 = ZylS.shape(PU1l['pi_features']['annotator_ids'])[0] return ZylS.random.stateless_normal((ig11, YKHO._random_pi_length), z54w)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cSJ0():\n YylR = 2 * epAf.pi * tuKI.random()\n return DpX9(epAf.cos(YylR), epAf.sin(YylR))", "def MAOA(YKHO):\n return oyIN.random.normal(0, 1, size=YKHO.dimension)", "def Nprk(exwG=100):\n bJYl = 0.0\n for YRbF in range(0, exwG):\n WKvO = tuKI()\n LVAh = tuKI()\n if PZy...
[ "0.61700886", "0.6080856", "0.6020747", "0.6013696", "0.6010459", "0.5976455", "0.5964238", "0.59418875", "0.5921308", "0.5909259", "0.5860938", "0.58436346", "0.5812235", "0.573625", "0.573625", "0.56914216", "0.56887275", "0.5674271", "0.56522095", "0.564202", "0.5631436", ...
0.6315389
0
Returns the number of effective annotators in the dataset. An effective annotator is any real annotator that has been accepted after filtering, as well as any annotator that has been artificially included afterwards, i.e., an adversarial annotator.
def xXuZ(YKHO): if YKHO._num_effective_annotators is None: YKHO._num_effective_annotators = YKHO.annotators_info['count'].size() return YKHO._num_effective_annotators
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o2tc(YKHO):\n if YKHO._num_annotators_per_example is None:\n return YKHO._max_annotators_per_example\n else:\n return YKHO._num_annotators_per_example", "def n40R(YKHO):\n pass", "def ZE9r(YKHO):\n ZE9r = 0\n for dadx in YKHO._annotations:\n ZE9r = oyIN.max([ZE9r, len(YK...
[ "0.70041555", "0.6881365", "0.65993714", "0.6573037", "0.64825696", "0.64421266", "0.6343614", "0.63257754", "0.60875374", "0.60782087", "0.60777575", "0.60313374", "0.59277403", "0.57655", "0.5701187", "0.55960685", "0.55635756", "0.5546141", "0.5457369", "0.5438154", "0.541...
0.8084642
0
Returns the number of annotators that are loaded per example.
def o2tc(YKHO): if YKHO._num_annotators_per_example is None: return YKHO._max_annotators_per_example else: return YKHO._num_annotators_per_example
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vvy2(YKHO):\n if YKHO._num_annotators_per_example_and_step is None:\n return YKHO.num_annotators_per_example\n else:\n return YKHO._num_annotators_per_example_and_step", "def n40R(YKHO):\n pass", "def xXuZ(YKHO):\n if YKHO._num_effective_annotators is None:\n YKHO._num_effe...
[ "0.8273262", "0.80049217", "0.7692497", "0.7429308", "0.7355457", "0.7060937", "0.6993702", "0.6936328", "0.6933762", "0.6891213", "0.68884176", "0.68714356", "0.67397976", "0.6645886", "0.6502235", "0.64266807", "0.64266807", "0.64129096", "0.6389165", "0.63823164", "0.63572...
0.8572759
0
Returns the value of the highest annotator id.
def nqWW(YKHO): return (YKHO.num_dataset_annotators + YKHO.num_global_adversarial_annotators) * YKHO._artificial_id_increase_factor
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XfNq(YKHO):\n q3j1 = Z1d9('iannotations')\n rdlD = YKHO.table.read_row(q3j1)\n g2mL = int.from_bytes(rdlD.cells[YKHO.incrementer_family_id][Z1d9('counter')][0].value, byteorder='big')\n return oyIN.uint64(g2mL)", "def KH4m(YKHO):\n return YKHO.maxIid", "def max(YKHO):\n if YKHO.is_empty()...
[ "0.78189445", "0.6968186", "0.6962617", "0.6889624", "0.6820261", "0.6758993", "0.6732535", "0.67277694", "0.67268765", "0.66850936", "0.6676068", "0.6675375", "0.6675375", "0.6659075", "0.66408354", "0.6598481", "0.65984803", "0.6594844", "0.6580511", "0.6580511", "0.6580055...
0.7960841
0
Set up this integration using UI.
async def async_setup_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: ajET.data.setdefault(Sugg, {}) cuiw = tsGL(ajET) v1Dl = zocj(cuiw) async def async_update(): try: return await v1Dl.upcoming_launches() except kNdt as ex: raise ZlbM(aTqo) from aTqo ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def setup(YKHO):\n hENg = YKHO.services['launcher']\n if QTw_ is None:\n raise ValueError(\"bui isn't installed, can't create the graphical launcher\")\n YKHO.window = QTw_.parse_layout(QTw_, process=YKHO, service=hENg)\n YKHO.window_task = V7ok.create_task(YKHO.start_window())", "def S4...
[ "0.701923", "0.6786671", "0.67005926", "0.66924316", "0.6620975", "0.6615678", "0.6603928", "0.6603398", "0.6582979", "0.6559805", "0.6549382", "0.6540358", "0.6539057", "0.6527921", "0.6510329", "0.6507382", "0.64986813", "0.64916366", "0.64732665", "0.64648753", "0.6463916"...
0.0
-1
Calculate the KL divergence between a and b
def dzAH(jzdc, Fg_i): jzdc = oyIN.asarray(jzdc) Fg_i = oyIN.asarray(Fg_i) OnDi = set(jzdc) PIOG = set(Fg_i) PQgZ = OnDi.union(PIOG) ccBJ = {} for YRbF, WKvO in enumerate(PQgZ): ccBJ[WKvO] = YRbF AZ1p = oyIN.ones(len(PQgZ)) for WKvO in jzdc: AZ1p[ccBJ[WKvO]] += 1 E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzAH(k0lF, tjUW):\n t1lM = 0.0\n for jzdc, Fg_i in zip(k0lF, tjUW):\n if jzdc < 1e-06:\n continue\n if Fg_i < 1e-06:\n continue\n dMYj = jzdc / Fg_i\n t1lM += RKD7(dMYj) * jzdc\n return t1lM", "def dzAH(YKHO, jzdc, Fg_i):\n oRrT = lambda WKvO: Zyl...
[ "0.83499014", "0.8081128", "0.7859561", "0.77711105", "0.7746243", "0.77192366", "0.7653158", "0.7652975", "0.763869", "0.7545628", "0.7531196", "0.7487438", "0.739558", "0.73446494", "0.732", "0.7247531", "0.7221558", "0.7162484", "0.71351033", "0.7063007", "0.7044419", "0...
0.8569956
0
Estimate the distance between two populations, using the Gaussian smoothed PSTH.
def FBbd(AmMF, Xk4T, r_IP, VJSn, JRYC, Kt_s=None): if Kt_s is None: Kt_s = max(Xk4T.max(), VJSn.max()) ywwl = max(AmMF.max(), r_IP.max()) F4VO = klIT(AmMF, Xk4T, Kt_s, ywwl, JRYC).sum(1) PrSF = klIT(r_IP, VJSn, Kt_s, ywwl, JRYC).sum(1) WTkW = 0.005 n6O6 = int(3 * WTkW / JRYC) Oa1e = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K5Qp(Ghu1, WlqU, WTkW):\n return oyIN.sqrt(HhuK(Ghu1, Ghu1, WTkW) + HhuK(WlqU, WlqU, WTkW) - 2 * HhuK(Ghu1, WlqU, WTkW))", "def O5_5(YKHO, ox54, HqmB, kpso=True):\n XOQz = []\n Jupi = []\n E_h5 = []\n vn78 = False\n if ox54.has_hdp_model and HqmB.has_hdp_model and kpso:\n if oyIN.arr...
[ "0.6727379", "0.6011863", "0.59853303", "0.5965613", "0.5944785", "0.5936763", "0.5921102", "0.5911816", "0.5904566", "0.5876704", "0.58706975", "0.58364964", "0.5767252", "0.57651335", "0.5762407", "0.57547253", "0.5749362", "0.5742722", "0.57103264", "0.5676419", "0.5673491...
0.58202314
12
Parses a ``label`` or ``value`` option value. Possibilities are that it's a string that matches a column name, that it's a column index (0 being the first column, 1 being the last), or that it's blank in which case the first column of type ``column_type`` is used, if there is one.
def NlwR(nudR, zIfu, y7XK, tyNF): try: zIfu = int(zIfu) except ValueError: pass if isinstance(zIfu, int): zIfu = int(zIfu) try: zIfu = tyNF.columns[zIfu].name except IndexError: raise k8wH.BadParameter("index {} is beyond the last column, '{}',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u_7K(YKHO, Jyyj, BWXx):\n if BWXx == 'NA':\n return UV8M.FlexibleStringDataType()\n if Jyyj.lower() in ['tumor_content', 'allele_frequency_tumor', 'coverage']:\n return UV8M.FlexibleDecimalDataType()\n if Jyyj.lower() in ['genotype', 'mutational_load', 'ref', 'chromosomes', 'chr']:\n ...
[ "0.5952424", "0.58587015", "0.5807276", "0.57604253", "0.57299256", "0.5557335", "0.55336446", "0.5511544", "0.5418671", "0.53667444", "0.53487015", "0.53487015", "0.53334576", "0.5294041", "0.52863353", "0.5265459", "0.5215922", "0.5215805", "0.5190238", "0.5173238", "0.5170...
0.69329584
0
Returns numpy array (type uint8) with number of rows equal to maximum height of all shapes's bounding boxes and number of columns equal to their number of rows. shape_args is a list of dictionaries whose keys are the parameters to the shape_to_png function. The mask is taken to be all the pixels that are nonzero in the...
def k1MF(DHY8, lpwy): Yw_3 = [] for RyuO in DHY8: a8NM = iSP9(**RyuO) Yw_3.append(uGYG.Image.open(xDSY.BytesIO(a8NM))) GNZ6, fIMm = [max([Xn71.size[YRbF] for Xn71 in Yw_3]) for YRbF in range(2)] ZHfW = oyIN.zeros((fIMm, GNZ6), dtype=oyIN.uint8) if type(lpwy) != type(list()): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z25C(ROpF: Tuple[int, ...], Dps6: np.ndarray) -> oyIN.ndarray:\n ZHfW = oyIN.zeros(ROpF, dtype=oyIN.uint8)\n ZHfW.fill(255)\n zYNG = tuple([0] * len(ROpF))\n for BAMb, uznx, ivGw, LNWq in Dps6:\n XC5k.rectangle(ZHfW, (BAMb, uznx), (ivGw, LNWq), zYNG, -1)\n return ZHfW", "def RwvP(oGem):...
[ "0.60869145", "0.58478314", "0.58469087", "0.56412613", "0.5566892", "0.55162394", "0.55137825", "0.5495459", "0.5483197", "0.54514", "0.54409254", "0.54409254", "0.54397595", "0.5435536", "0.5391382", "0.53744143", "0.53709877", "0.5316839", "0.5242905", "0.5227483", "0.5226...
0.7183718
0
Take MxN matrix containing integers representing labels and return an MxNx4 matrix where each label has been replaced by a color looked up in colormap. colormap entries must be strings like plotly.express style colormaps. alpha is the value of the 4th channel color_class_offset allows adding a value to the color class ...
def GPmb(VXjJ, ZHfW, Cwt5, MYQr, ZgfN, qLTo): MYQr = [tuple([xih0(MKlR[KCHu:KCHu + 2]) for KCHu in range(0, len(MKlR), 2)]) for MKlR in [Z9rn.replace('#', '') for Z9rn in MYQr]] QGZ1 = oyIN.zeros(VXjJ.shape[:2] + (3,), dtype='uint8') tfZ6 = oyIN.min(VXjJ) tVN0 = oyIN.max(VXjJ) for Z9rn in range(tfZ6...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JNWv():\n MYQr = oyIN.zeros((256, 3), dtype=oyIN.uint8)\n MYQr[0] = [0, 0, 0]\n MYQr[1] = [153, 204, 255]\n MYQr[2] = [70, 70, 70]\n MYQr[3] = [102, 102, 156]\n MYQr[4] = [190, 153, 153]\n MYQr[5] = [153, 153, 153]\n MYQr[6] = [250, 170, 30]\n MYQr[7] = [220, 220, 0]\n MYQr[8] = [...
[ "0.7087912", "0.7027891", "0.6922379", "0.66067797", "0.66034746", "0.65884304", "0.6510798", "0.6428104", "0.6420624", "0.6412711", "0.6400326", "0.63801205", "0.6361433", "0.63534737", "0.63291353", "0.6296633", "0.6292743", "0.625167", "0.625167", "0.62468976", "0.62351686...
0.7054416
1
checks if the object is an instance of\ a class that inherited dir or indir
def b_gB(YEnM, J9Xy): return isinstance(YEnM, J9Xy) and type(YEnM) is not J9Xy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xmkf(aUGN, _AKB):\n if aUGN.__name__ == _AKB.__name__:\n if aUGN.__module__ == _AKB.__module__:\n return True\n return any((xmkf(P8oC, _AKB) for P8oC in aUGN.__bases__))", "def kgXq(iGvk, YEnM):\n try:\n return any((Emd4 for Emd4 in YEnM.__class__.mro() if iGvk == '%s.%s' % ...
[ "0.7433509", "0.7351116", "0.7146595", "0.7134836", "0.7134836", "0.70954245", "0.7083776", "0.7048384", "0.6997329", "0.6987928", "0.69814706", "0.6967621", "0.69660115", "0.695961", "0.695961", "0.69369847", "0.6932556", "0.69090974", "0.69076014", "0.6901732", "0.69017076"...
0.68171513
35
Validate date_to and date_from parameters Convert date_to and date_from from str to datetime type
def ZXv8(qQXR): try: if qQXR['date_from'] != None: qQXR['date_from'] = JRYC.strptime(qQXR['date_from'], '%d.%m.%Y') if qQXR['date_to'] != None: qQXR['date_to'] = JRYC.strptime(qQXR['date_to'], '%d.%m.%Y') except ValueError: try: if qQXR['date_from'] !=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzCw(ljfJ, hg96):\n try:\n qcWV.datetime.strptime(ljfJ, '%Y-%m-%d')\n qcWV.datetime.strptime(hg96, '%Y-%m-%d')\n if ljfJ <= hg96:\n return True\n except ValueError:\n return False", "def _KP9(YKHO, NTec):\n if YKHO.to_date.data < YKHO.from_date.data:\n r...
[ "0.74223536", "0.7051087", "0.7051087", "0.69728166", "0.6824196", "0.67872673", "0.668923", "0.66682917", "0.6653228", "0.6651873", "0.65761083", "0.6509574", "0.6468835", "0.644242", "0.6441265", "0.6440852", "0.6435455", "0.6406264", "0.6385738", "0.63831556", "0.6357118",...
0.7568053
0
r"""Applies a softmax function.
def N93T(input: Tensor, tpio: Optional[int]=None, yDqo=None) -> llWB: if yDqo is None: U5bT = _uqo._C.softmax(input, tpio) else: U5bT = _uqo._C.softmax(input.to(yDqo), tpio) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)", "def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)", "def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)", "def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKv...
[ "0.8332549", "0.8283092", "0.821968", "0.8179755", "0.8126082", "0.81255984", "0.81255984", "0.81255984", "0.81255984", "0.81255984", "0.8124532", "0.8112286", "0.8108343", "0.81072897", "0.8104847", "0.8103393", "0.8103393", "0.8103393", "0.8103393", "0.8103393", "0.8103393"...
0.0
-1
Sets the amount of this Payload2.
def Z5kt(YKHO, Z5kt): YKHO._amount = Z5kt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def Z5kt(YKHO, Z5kt: int):\n YKHO._amount = Z5kt", "def jGTW(YKHO, Z5kt):\n YKHO.__amount = Z5kt", "def Z5kt(YKHO, Z5kt: float):\n YKHO._amount = Z5kt", "def QmX6(YKHO, Z5kt: float):\n YKHO.__amount = Z5kt\n return YKHO", "def tlgI(YKHO, Z5...
[ "0.74187994", "0.73636395", "0.72852093", "0.71649206", "0.70141494", "0.66650313", "0.6616795", "0.6451095", "0.63773173", "0.6311743", "0.62649095", "0.62649095", "0.6144334", "0.61270523", "0.61146134", "0.6050677", "0.6050677", "0.6050677", "0.6049178", "0.60308594", "0.6...
0.7346845
2
Sets the merchant_op_id of this Payload2.
def BKQd(YKHO, BKQd): YKHO._merchant_op_id = BKQd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aCFu(YKHO, aCFu):\n YKHO._merchant_id = aCFu", "def aCFu(YKHO, aCFu):\n YKHO._merchant_id = aCFu", "def aCFu(YKHO, aCFu: str):\n YKHO._merchant_id = aCFu", "def Il2k(YKHO, Il2k):\n YKHO._merchant = Il2k", "def Xgym(YKHO, VlC0):\n YKHO.opid = VlC0", "def ys5w(YKHO, ys5w):\n YKHO._mer...
[ "0.6648162", "0.6648162", "0.65335774", "0.6047103", "0.58839595", "0.55869764", "0.5584503", "0.55780953", "0.5495422", "0.5480131", "0.5430074", "0.5332261", "0.5235267", "0.52153194", "0.5205982", "0.5130366", "0.50456357", "0.5007272", "0.5007272", "0.49679044", "0.492454...
0.7936032
0
Sets the invoice_number of this Payload2.
def YhRM(YKHO, YhRM): YKHO._invoice_number = YhRM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YhRM(YKHO, YhRM):\n YKHO._invoice_number = YhRM", "def BPka(YKHO, BPka):\n YKHO._invoice_no = BPka", "def d_Cv(YKHO, d_Cv):\n YKHO._invoice_id = d_Cv", "def d_Cv(YKHO, d_Cv):\n YKHO._invoice_id = d_Cv", "def d_Cv(YKHO, d_Cv):\n YKHO._invoice_id = d_Cv", "def nsye(YKHO, nsye: str):\n ...
[ "0.8239081", "0.82188463", "0.74168354", "0.74168354", "0.74168354", "0.7220745", "0.71957004", "0.70107627", "0.6837115", "0.6538705", "0.62233704", "0.607928", "0.59579647", "0.59148884", "0.59130263", "0.5877824", "0.5877824", "0.58677584", "0.57960397", "0.5784", "0.57543...
0.74817437
2
Sets the buyer_identity_code of this Payload2.
def BV4p(YKHO, BV4p): YKHO._buyer_identity_code = BV4p
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vcjy(YKHO, Vcjy):\n YKHO._issuer_company = Vcjy", "def ys5w(YKHO, ys5w):\n YKHO._merchant_info = ys5w", "def A9MV(YKHO, A9MV: str):\n YKHO._v_customer_code = A9MV", "def kWYc(YKHO, kWYc):\n YKHO._carrier_code = kWYc", "def gn9s(YKHO, gn9s):\n YKHO._seller_id = gn9s", "def YkoI(sbHd):\n...
[ "0.5692045", "0.5607816", "0.5581956", "0.54521674", "0.54388005", "0.5373595", "0.5333753", "0.53236055", "0.53236055", "0.53215504", "0.5244776", "0.5244776", "0.5244776", "0.5243088", "0.522698", "0.5216836", "0.5214329", "0.51889724", "0.51402146", "0.51344144", "0.513441...
0.85316247
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.8640854", "0.85093737", "0.785447", "0.7744496", "0.77114135", "0.7696879", "0.76601094", "0.7639409", "0.7623007", "0.7608497", "0.7608497", "0.7608497", "0.76073915", "0.7600974", "0.75863326", "0.75839657", "0.7572215", "0.7569474", "0.75403374", "0.75403374", "0.752854...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Return a custom 404 error.
def m7kB(tTpl): return ('Sorry, nothing at this URL.', 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(P1dF):\n return '404'", "def mZnU():\n return oGir(RA4y, '<h1>404 Error : Some crap went down, so just <a href=\"/\">HEAD HOME</a>.</h1>', [])", "def eJkH(XObx):\n return dict(err=XObx)", "def o3cf(P1dF):\n return G3KB('Not Found', 404)", "def RQdI(P1dF):\n return 'Sorry, Nothing at...
[ "0.8263737", "0.79933435", "0.79192984", "0.78825426", "0.7845269", "0.78424567", "0.7818006", "0.7818006", "0.7818006", "0.7816168", "0.78139937", "0.78001934", "0.77720594", "0.77618265", "0.7702134", "0.76248384", "0.7620647", "0.76148254", "0.75642604", "0.75578934", "0.7...
0.72681904
61
Return random int, random str or param.
def en4D(xqoZ): ANfV = xqoZ WrY2 = 18 if xqoZ == 'rand_int': ANfV = 100 * tuKI.random() elif xqoZ == 'rand_str': ANfV = ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(WrY2))) return ANfV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wc7e():\n return tuKI.choice('abcdef0123456789')", "def KccN():\n return tuKI.randint(0, 1)", "def gkNC():\n return tuKI.random()", "def gkNC():\n return tuKI.random()", "def tuKI():\n return str(qxeD.uuid4())", "def yiU6():\n if tuKI.random() < 0.2:\n return Vt_K()\n else...
[ "0.7061252", "0.70406204", "0.69936126", "0.69936126", "0.6961694", "0.68983954", "0.6834065", "0.6745497", "0.6729165", "0.6711711", "0.6690764", "0.66282314", "0.66196483", "0.6616137", "0.6586472", "0.6576742", "0.6558715", "0.6551693", "0.654188", "0.6540238", "0.6518128"...
0.79565555
0
Generates ResNet18 model using GroupNormalization rather than BatchNormalization. Two groups are used.
def BIub(jTqs: int=10) -> awyi: C3ST: S1Vm = qUH4(norm_layer=lambda WKvO: lxnG(2, WKvO), num_classes=jTqs) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NWdm():\n C3ST = bdPE.models.Sequential([bdPE.layers.SimpleRNN(20, return_sequences=True, input_shape=[None, 1]), bdPE.layers.BatchNormalization(), bdPE.layers.SimpleRNN(20, return_sequences=True), bdPE.layers.BatchNormalization(), bdPE.layers.TimeDistributed(bdPE.layers.Dense(10))])\n return C3ST", "d...
[ "0.6679161", "0.63654757", "0.6303091", "0.61277896", "0.60522157", "0.60144985", "0.5998095", "0.59445924", "0.5942517", "0.59245145", "0.59152913", "0.5909113", "0.5908623", "0.5908623", "0.5908623", "0.5908623", "0.59033227", "0.58868986", "0.5879661", "0.5869644", "0.5867...
0.56143916
79
The ARN of the SNS topic to send events to.
def zbnq(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'sns_topic_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> qe4Y.Output[str]:\n retu...
[ "0.7586059", "0.7586059", "0.7586059", "0.75347227", "0.75347227", "0.74872255", "0.69486207", "0.68975997", "0.68188906", "0.6687172", "0.6360666", "0.6360666", "0.6178234", "0.6068677", "0.584873", "0.5792237", "0.5782373", "0.57788783", "0.5709459", "0.5709459", "0.5709459...
0.769783
0
The ARN of the SNS topic to send events to.
def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'sns_topic_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbnq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, ...
[ "0.7696116", "0.7696116", "0.7696116", "0.75327426", "0.75327426", "0.7485335", "0.69491214", "0.68970984", "0.68182826", "0.6686576", "0.6360288", "0.6360288", "0.6177577", "0.6069445", "0.58478236", "0.5791113", "0.5781663", "0.5779817", "0.57079136", "0.57079136", "0.57079...
0.75844413
3
The ARN of the SNS topic to send events to.
def zbnq(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'sns_topic_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbnq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sns_topic_arn')", "def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(Y...
[ "0.769783", "0.769783", "0.769783", "0.7586059", "0.7586059", "0.7586059", "0.74872255", "0.69486207", "0.68975997", "0.68188906", "0.6687172", "0.6360666", "0.6360666", "0.6178234", "0.6068677", "0.584873", "0.5792237", "0.5782373", "0.57788783", "0.5709459", "0.5709459", ...
0.75347227
6
Return True when the payment is accepted, or False if money is insufficient.
def aWe4(g3AG, Qq3R): if g3AG >= Qq3R: nZuS = round(g3AG - Qq3R, 2) print(f'Here is ${nZuS} in change.') global profit NRiI += Qq3R return True else: print("Sorry that's not enough money. Money refunded.") return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MPvg(YKHO, hI0L, BFxV, **B2fa):\n for NKcE in YKHO.allowed_methods:\n if NKcE.should_redeem(BFxV):\n try:\n Ty9i = NKcE.redeem_payment(hI0L, BFxV, **B2fa)\n except Exception as e:\n raise rDSL(str(tTpl))\n return Ty9i\n return False", ...
[ "0.69610107", "0.6927604", "0.6903567", "0.6891129", "0.6864816", "0.6820733", "0.6791464", "0.67884356", "0.67734915", "0.6738435", "0.6712277", "0.6698464", "0.668666", "0.666357", "0.6658969", "0.66538554", "0.65988475", "0.65690166", "0.6558527", "0.64624214", "0.6451817"...
0.6828477
5
Computes discounted sum of future rewards for use in updating value estimate.
def AC1_(Mkmy, KMvS=0.99, gR5j=0.0): g2lU = oyIN.zeros_like(Mkmy) S8qo = gR5j for a1PO in reversed(range(0, Mkmy.size)): S8qo = S8qo * KMvS + Mkmy[a1PO] g2lU[a1PO] = S8qo return g2lU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AC1_(vwlo, tzvm):\n rMFp = oyIN.array(vwlo)\n for Lucr in range(len(vwlo) - 2, -1, -1):\n rMFp[Lucr] += rMFp[Lucr + 1] * tzvm\n return rMFp", "def AC1_(YKHO):\n g2lU = oyIN.zeros_like(YKHO.reward_buffer)\n S8qo = 0\n for a1PO in reversed(Ni9Y(0, len(YKHO.reward_buffer))):\n if...
[ "0.7318393", "0.7308301", "0.72021586", "0.711046", "0.69728816", "0.6937233", "0.6920674", "0.69034714", "0.69030756", "0.6887052", "0.6853726", "0.6853726", "0.6852877", "0.68192166", "0.68087465", "0.6806364", "0.67980415", "0.6791258", "0.6788905", "0.673656", "0.6734681"...
0.63804066
53
Return a string representation of the model.
def zAg0(YKHO): return YKHO.title
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def wHJl(YKHO: BaseModel) -> str:\n sgKs = [f'{H5ew}={repr(BWXx)}' for H5ew, BWXx in YKHO.to_dict().items()]\n return f'{type(YKHO).__name__}({sgKs})'", "def zAg0(YKHO):\n oOUF = '------------------------...
[ "0.8495378", "0.84243166", "0.7915196", "0.78244203", "0.77733344", "0.764589", "0.7635692", "0.76274943", "0.7619749", "0.760028", "0.75957674", "0.75945055", "0.75873816", "0.7564407", "0.7564407", "0.7564407", "0.754512", "0.7540122", "0.7535816", "0.75323755", "0.75323755...
0.0
-1
Return a string representation of the model.
def zAg0(YKHO): if len(YKHO.text) > 50: YKHO.text = YKHO.text[:50] return f'{YKHO.text}...' else: return YKHO.text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def wHJl(YKHO: BaseModel) -> str:\n sgKs = [f'{H5ew}={repr(BWXx)}' for H5ew, BWXx in YKHO.to_dict().items()]\n return f'{type(YKHO).__name__}({sgKs})'", "def zAg0(YKHO):\n oOUF = '------------------------...
[ "0.8495676", "0.8424549", "0.7915226", "0.78231704", "0.77746725", "0.7646499", "0.76353073", "0.76262254", "0.7618147", "0.75990707", "0.7594216", "0.75930893", "0.75854623", "0.7563424", "0.7563424", "0.7563424", "0.7544013", "0.75400853", "0.7535514", "0.7530679", "0.75306...
0.0
-1
Returns the current working directory of this context.
def rjTE(YKHO): return nkpg.cNamespace().get_cwd(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def exV3(YKHO):\n return YKHO._cached_current_dir", "def aOxl(YKHO) -> str:\n return qe4Y.get(YKHO, 'working_dir')", "def Z2Su(YKHO):\n return YKHO._working_directory", "def pJGK(YKHO):\n if YKHO._workingDirectory is None:\n return Hy7s.getcwd()\n return YKHO._workingDirectory", "def ...
[ "0.8829378", "0.86448294", "0.8588227", "0.8530355", "0.8457542", "0.84449834", "0.8377554", "0.8355142", "0.8305", "0.8302114", "0.825837", "0.82343155", "0.82343155", "0.82343155", "0.8230886", "0.8230886", "0.8227009", "0.8189216", "0.8167226", "0.81595695", "0.8116854", ...
0.8072712
23
Returns the current working directory of this context.
def rjTE(YKHO): return YKHO.__test_context.getCwd()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def exV3(YKHO):\n return YKHO._cached_current_dir", "def aOxl(YKHO) -> str:\n return qe4Y.get(YKHO, 'working_dir')", "def Z2Su(YKHO):\n return YKHO._working_directory", "def pJGK(YKHO):\n if YKHO._workingDirectory is None:\n return Hy7s.getcwd()\n return YKHO._workingDirectory", "def ...
[ "0.8829425", "0.86452866", "0.8587965", "0.8529895", "0.8457233", "0.8444919", "0.8377708", "0.8354448", "0.8304972", "0.8302199", "0.82582146", "0.8234365", "0.8234365", "0.8234365", "0.8230984", "0.8230984", "0.82272834", "0.8189658", "0.8167575", "0.81595856", "0.81165785"...
0.7154004
82
Gets the image with index i, and applies data augmentation randomly
def OP2O(YKHO, YRbF): VXjJ = YKHO.images[YRbF] ZHfW = YKHO.masks[YRbF] if YKHO.augmentation: VXjJ, ZHfW = YKHO.augmenter.augment_image(img=VXjJ, mask=ZHfW) ZHfW = YKHO.preprocess_mask(ZHfW) VXjJ = YKHO.preprocess(VXjJ) return {'image': ht2j.from_numpy(VXjJ), 'mask': ht2j.from_numpy(ZHfW)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, d6pt):\n QMAG = YKHO.image_paths[d6pt]\n Ux0P = QMAG.split('_')[-1][:-len('.jpg')]\n SDTb = YKHO.GT_paths + 'ISIC_' + Ux0P + '_segmentation.png'\n LNo8 = hnIv.open(QMAG)\n fWxp = hnIv.open(SDTb)\n pAIe = LNo8.size[1] / LNo8.size[0]\n YyWH = []\n SFdF = tuKI.randint(300, 320)\...
[ "0.6874412", "0.68690664", "0.6826434", "0.68004596", "0.67360216", "0.66980064", "0.66814214", "0.6673865", "0.66461223", "0.6448828", "0.64330983", "0.63858545", "0.6374775", "0.6306589", "0.6305828", "0.62724555", "0.62716043", "0.62639654", "0.62531734", "0.62308466", "0....
0.6061806
37
Returns the raw image as a numpy array
def KPam(YKHO, YRbF): or8S = YKHO.ids[YRbF] pD6d = SC2F(YKHO.imgs_dir + or8S + '*') VXjJ = SnjK.imread(pD6d[0]) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iwLm(YKHO):\n return oyIN.array(YKHO.to_image())", "def aCqr(YKHO):\n VXjJ = lQaV()\n VXjJ.load(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'mock_camera_images.png'))\n mawX = VXjJ.rect()\n TVTK = mawX.width()\n H2v2 = mawX.height()\n hvIU = 4\n Fg_i = VXjJ.bits()\n Fg_i.setsize(TVTK *...
[ "0.76582265", "0.76402265", "0.7613144", "0.75222045", "0.75127417", "0.75004363", "0.7488394", "0.7401324", "0.7362783", "0.73512584", "0.72738665", "0.72689295", "0.7266585", "0.72495115", "0.7168634", "0.71392757", "0.7121452", "0.71079224", "0.71025395", "0.7094751", "0.7...
0.0
-1
True if all 2D cubes in a multicube set can provide pairwise comparison.
def bCgk(YKHO) -> bool: if len(YKHO._cubes) < 2: return False return all((all((JRYC in lwT1.ALLOWED_PAIRWISE_TYPES for JRYC in tk32.dimension_types[-2:])) and tk32.ndim >= 2 for tk32 in YKHO._cubes[1:]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yprr(YKHO):\n for RpU_ in YKHO.cube.values():\n if len(Pusg(lambda WKvO, LVAh: WKvO | LVAh, map(set, RpU_))) != 1:\n return False\n return True", "def elRB(YKHO) -> bool:\n return len(YKHO._cube_responses) > 1", "def g26x(YKHO):\n return YKHO.size() == 2 or YKHO.size() == 3", ...
[ "0.70761466", "0.6954234", "0.6671893", "0.6668728", "0.6623368", "0.65141636", "0.64535093", "0.6401874", "0.6326973", "0.62987125", "0.62593585", "0.6249337", "0.6245549", "0.6231507", "0.62246287", "0.6198721", "0.61973023", "0.6193204", "0.6178825", "0.6169254", "0.616806...
0.7480751
0
Optional float64 ndarray of the cube_covariance if the measure exists.
def _IBo(YKHO) -> h8nf[oyIN.ndarray]: if YKHO._measures.covariance is None: return None return YKHO._measures.covariance.raw_cube_array[YKHO._valid_idxs].astype(oyIN.float64)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _IBo(YKHO) -> 'Optional[\"_CovarianceMeasure\"]':\n _IBo = KX5t(YKHO._cube_dict, YKHO._all_dimensions, YKHO._cube_idx_arg)\n return None if _IBo.raw_cube_array is None else _IBo", "def N0iN(YKHO):\n return YKHO.covariance", "def _IBo(YKHO):\n yxzb = oyIN.cov(YKHO.particles, aweights=YKHO.partic...
[ "0.753758", "0.6732347", "0.66036713", "0.65108943", "0.6508698", "0.639169", "0.63855314", "0.6378978", "0.6294674", "0.626312", "0.6235041", "0.62341654", "0.6230885", "0.6189009", "0.61843014", "0.61800754", "0.61665905", "0.61665905", "0.6155647", "0.61468995", "0.6114662...
0.8020282
0