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
If true, it will ignore all user configurations of SBP.
def d0v1(YKHO, Tuqy: bool=True): YKHO.proto.enable_auto_parallel_ignore_user_sbp_config = Tuqy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JsHn(QpfX):\n return True", "def bRHq(QpfX):\n return False", "def QKi5():\n return False", "def QF2Z(YKHO):\n return False", "def htTT(YKHO):\n return bool(YKHO.__user.suppress)", "def aEzr(YKHO, NtEF):\n YKHO.c.disable_wsgi(NtEF)", "def VZFr(YKHO):\n if uwaB.CONFIG_REMOVE_MIS...
[ "0.65738577", "0.65003884", "0.6493168", "0.63636553", "0.6221354", "0.61853474", "0.6171306", "0.61461854", "0.6136312", "0.612953", "0.612167", "0.60564405", "0.59830356", "0.595864", "0.5914247", "0.5912936", "0.5899067", "0.587563", "0.58558065", "0.5828592", "0.5786798",...
0.6270553
4
Adds another Length to this one, returning a new Length.
def H2v5(YKHO, Elif): YKHO._ft += Elif.getFeet() YKHO._in += Elif.getInches() YKHO.checkFormat() return (YKHO._ft, YKHO._in)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, Elif):\n qYv5 = Elif.getFeet() + YKHO.getFeet()\n y5_h = Elif.getInches() + YKHO.getInches()\n xTva = YMVS(qYv5, y5_h)\n return xTva", "def e0z1(YKHO, u54L: int) -> None:\n YKHO.length.append(u54L)", "def FOdN(YKHO, Elif):\n if len(YKHO) != len(Elif):\n raise ValueError(...
[ "0.7797509", "0.7333888", "0.6380053", "0.6232504", "0.62139934", "0.6084461", "0.60239345", "0.60059494", "0.59904546", "0.5955113", "0.593306", "0.59310573", "0.59310573", "0.59310573", "0.5918062", "0.5916265", "0.5912801", "0.5912801", "0.5908879", "0.5897856", "0.5891551...
0.0
-1
Compute the DICE loss, similar to generalized IOU for masks
def MU3M(g4y1, x6A0, hG11): g4y1 = g4y1.sigmoid() g4y1 = g4y1.flatten(1) M6pt = 2 * (g4y1 * x6A0).sum(1) UUZ1 = g4y1.sum(-1) + x6A0.sum(-1) N77f = 1 - (M6pt + 1) / (UUZ1 + 1) return N77f.sum() / hG11
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def exWL(hlel, pan_):\n SGf8 = 0.0001\n iQin = hlel * pan_\n M6pt = 2 * iQin.sum(0).sum(1).sum(1)\n UUZ1 = hlel + pan_\n UUZ1 = UUZ1.sum(0).sum(1).sum(1) + SGf8\n fBFn = 1 - M6pt / UUZ1\n return fBFn.sum() / hlel.size(1)", "def exWL(hlel, pan_):\n SGf8 = 0.0001\n iQin = hlel * pan_\n ...
[ "0.7010825", "0.7010825", "0.6993396", "0.6993396", "0.69145834", "0.69133556", "0.68533003", "0.68381715", "0.6797677", "0.6790699", "0.6741192", "0.6726027", "0.67149496", "0.6704602", "0.66932666", "0.66693574", "0.6662403", "0.66550773", "0.6646167", "0.66447896", "0.6642...
0.6939773
4
Return a list of required loaders (modalities).\n
def lqDe(YKHO) -> bdIy[str]: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SELc(qIxc):\n return TkJ2(qIxc.dataset, qIxc)", "def AnPd(YKHO):\n pdlj = list()\n _8UM = BfDw.get_available_skins(selected=YKHO.skin).values()\n u5dK = [Hy7s.path.join(EJkW, 'templates') for EJkW in _8UM]\n pdlj.append(Gaj0.FileSystemLoader(u5dK))\n return pdlj", "def w3LV(YKHO):\n o3...
[ "0.66827524", "0.653083", "0.6522342", "0.65111655", "0.64850944", "0.64089024", "0.6283462", "0.6237669", "0.6177728", "0.6161996", "0.6155332", "0.61280555", "0.6062063", "0.60222316", "0.59889346", "0.5976754", "0.5849588", "0.5803487", "0.57828695", "0.5774714", "0.577089...
0.74772197
0
Pad the given sequence with zeros to fill target_sequence_length elements.
def FHnj(YKHO, aWuw, Pu1k: str): if type(aWuw) is oyIN.ndarray: return ta7j.pad_sequence_numpy(aWuw, YKHO.max_sequence_length, YKHO.structure[Pu1k].input_shape) return ta7j.pad_sequence_generator(aWuw, YKHO.max_sequence_length)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(jWe2, BcCR, KHPh=0):\n yvT9 = []\n for aWuw in jWe2:\n H5Km = aWuw + [0] * (BcCR - len(aWuw))\n yvT9.append(H5Km)\n return yvT9", "def hVLt(Q6uT):\n Ep8u = len(Q6uT)\n wzH_ = max((len(Q6uT[YRbF]) for YRbF in Ni9Y(Ep8u)))\n ZEPD = oyIN.zeros((Ep8u, wzH_), dtype='int32')\n ...
[ "0.7748788", "0.7408597", "0.7355717", "0.73232955", "0.731313", "0.72984844", "0.7252842", "0.7227364", "0.7206454", "0.71596146", "0.7154823", "0.7086428", "0.7080314", "0.7039792", "0.7039792", "0.69306046", "0.68830353", "0.6866059", "0.6865705", "0.68392205", "0.6809902"...
0.66099477
32
Computes the MAE for the current values of X and Y.
def pvTa(YKHO): PXML = TPJb.predict(YKHO.X, YKHO.Y) U874 = TPJb.MAE(PXML, YKHO.R) return U874
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Emt7(YKHO, EcVT, fuBA):\n aO1w = YKHO.predict(EcVT)\n return oyIN.mean(oyIN.absolute(fuBA - aO1w.reshape(fuBA.shape)), axis=0)", "def Emt7(EcVT, fuBA):\n ywwl, = EcVT.shape\n Emt7 = oyIN.abs(EcVT - fuBA)\n Emt7 = Emt7.mean()\n LJE9 = Emt7 * (1 - oyIN.sqrt(1 - 1.96 * oyIN.sqrt(2) / oyIN.sqrt...
[ "0.76266927", "0.7271593", "0.6991804", "0.6981833", "0.69090724", "0.67441654", "0.67136115", "0.6712656", "0.66898805", "0.6684623", "0.6631344", "0.66106796", "0.66106796", "0.66106796", "0.66106796", "0.66106796", "0.65856504", "0.654216", "0.6537823", "0.65001917", "0.64...
0.0
-1
Computes the cosine similarity between two arrays.
def boAU(YKHO, Bu2M, UCbH): iwlo = xEai.norm(Bu2M) vqC9 = xEai.norm(UCbH) if iwlo == 0 or vqC9 == 0: return -1 return oyIN.dot(Bu2M, UCbH) / (iwlo * vqC9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKk5(WKvO: np.ndarray, LVAh: np.ndarray) -> float:\n return oyIN.dot(WKvO, LVAh) / (oyIN.linalg.norm(WKvO) * oyIN.linalg.norm(LVAh))", "def gKk5(jzdc, Fg_i):\n uYbU = oyIN.dot(jzdc, Fg_i)\n x1FS = oyIN.linalg.norm(jzdc)\n sd7I = oyIN.linalg.norm(Fg_i)\n return uYbU / (x1FS * sd7I)", "def gKk...
[ "0.8618033", "0.8339166", "0.822828", "0.81065285", "0.8084675", "0.80002475", "0.7976079", "0.79298335", "0.7925521", "0.79050636", "0.78677", "0.7863878", "0.78530574", "0.78290606", "0.781928", "0.7777922", "0.77777344", "0.77777344", "0.77777344", "0.77721125", "0.7740331...
0.7641285
26
Subdivides the R matrix in n_folds folds. It uses a mask to randomly choose (user, item) pairs. It returns an array containing the folds.
def GXS2(YKHO, NFPR): JV6N = [YRbF for YRbF in range(NFPR)] Gp7l = [1.0 / NFPR for bGrB in range(NFPR)] ZHfW = oyIN.random.choice(a=JV6N, size=YKHO.R.size, p=Gp7l).reshape(YKHO.R.shape) y7Jh = [oyIN.zeros(YKHO.R.shape) for bGrB in range(NFPR)] for YRbF in range(NFPR): y7Jh[YRbF][ZHfW == YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nt8i(nPrm, G1Hx):\n Qb89 = []\n JwQp = int(len(nPrm) / G1Hx)\n for YRbF in range(G1Hx):\n YhDe = []\n while len(YhDe) < JwQp:\n QyVM = qukk(len(nPrm))\n YhDe.append(nPrm.pop(QyVM))\n Qb89.append(YhDe)\n return Qb89", "def Nt8i(nPrm, G1Hx):\n Qb89 = []...
[ "0.6223448", "0.6223448", "0.59363437", "0.5912525", "0.5859489", "0.5858988", "0.5858988", "0.5847199", "0.5751359", "0.57331455", "0.57265216", "0.5631552", "0.5587178", "0.5557637", "0.55530995", "0.5526412", "0.55261403", "0.5501267", "0.54911464", "0.54855525", "0.547532...
0.6799693
0
Returns the last n ultra data entries from the CAN
def OcqE(YKHO, exwG=1): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UYB1(Emd4, begE, exwG=1):\n vexM = Emd4.query(Emd4.device_key == begE.key)\n vexM = vexM.order(-Emd4.data_received)\n UHFx = min(exwG, vexM.count())\n if UHFx > 0:\n return vexM.fetch(UHFx)\n return []", "def j3p7(YKHO, exwG):\n vpR4 = ht2j.zeros([exwG] + [tpio for tpio in YKHO.obs_s...
[ "0.6914684", "0.6488146", "0.6263276", "0.6207823", "0.60607505", "0.60103333", "0.5960438", "0.59309536", "0.59222406", "0.5913218", "0.5886365", "0.587026", "0.58578736", "0.58256", "0.58235556", "0.5816656", "0.58072", "0.5801655", "0.5787471", "0.57652736", "0.57601225", ...
0.66937524
1
The constructor of the stack
def FIMM(YKHO): YKHO._data = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.stack = S9Ut()\n return", "def FIMM(YKHO, nPrm=()):\n S9Ut.__init__(YKHO, nPrm)", "def FIMM(YKHO):\n YKHO.stack = []", "def FIMM(YKHO):\n YKHO.l_stack = S9Ut()\n YKHO.r_stack = S9Ut()", "def FIMM(YKHO):\n YKHO.stack = []", "def FIMM(YKHO):\n YKHO.stack = []"...
[ "0.8408698", "0.81947404", "0.8115429", "0.8073698", "0.7977525", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", "0.7945518", ...
0.0
-1
A function that checks if a stack is empty
def A4KR(YKHO): return len(YKHO._data) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(E5BI):\n return E5BI.top is None", "def lsmZ(E5BI):\n return len(E5BI.elements) == 0", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn...
[ "0.9141858", "0.8910485", "0.8750546", "0.86456823", "0.86456823", "0.86456823", "0.8586999", "0.8586999", "0.8545946", "0.8453194", "0.843923", "0.8410229", "0.8410229", "0.8406597", "0.8406597", "0.8348412", "0.83251846", "0.8297819", "0.82837653", "0.8266573", "0.8254354",...
0.0
-1
returns True when n is odd and False otherwise
def kYZq(exwG): return not ubP8(exwG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kYZq(exwG):\n if exwG % 2 == 0:\n return False\n return True", "def kYZq(exwG: int) -> bool:\n return not ubP8(exwG)", "def kYZq(exwG: int) -> bool:\n return not exwG % 2 == 0", "def kYZq(exwG):\n if ubP8(exwG) == True:\n return False\n else:\n return True", "def ...
[ "0.89933324", "0.88093305", "0.8807692", "0.87554306", "0.87212855", "0.8673984", "0.844238", "0.8312116", "0.8301415", "0.8292039", "0.8280059", "0.82719266", "0.8037861", "0.80044925", "0.7956537", "0.7942274", "0.79418045", "0.78901994", "0.78884953", "0.7869202", "0.78558...
0.87669176
3
takes an integer as an argument and returns True if the argument is an even number and False if it is odd
def ubP8(exwG): return exwG % 2 == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTzf(kAne):\n return kAne % 2 == 0", "def ubP8(kAne):\n return kAne % 2 == 0", "def ubP8(FGW3):\n return FGW3 % 2 == 0", "def ubP8(mLGw):\n return mLGw % 2 == 0", "def ubP8(mLGw):\n return mLGw % 2 == 0", "def ubP8(FGW3):\n return FGW3 % 2 == 0", "def ubP8(FGW3):\n return FGW3 ...
[ "0.9016899", "0.8892568", "0.8842001", "0.8826579", "0.8826579", "0.8798521", "0.8798521", "0.8798521", "0.8798521", "0.87960976", "0.8784729", "0.87747085", "0.8755805", "0.8755805", "0.87424654", "0.87377137", "0.8686008", "0.8678215", "0.8664487", "0.8664112", "0.86633116"...
0.8585768
27
returns the slope of the line through the points (x1, y1) and (x2, y2)
def VMex(o4D3, si3g, ajwV, skBL): return (skBL - si3g) / (ajwV - o4D3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VMex(o4D3, si3g, ajwV, skBL):\n return (skBL - si3g) / (ajwV - o4D3)", "def VMex(o4D3, si3g, ajwV, skBL):\n return (skBL - si3g) / (ajwV - o4D3)", "def SY6o(YKHO, o4D3, si3g, ajwV, skBL):\n return (si3g - skBL) / (ajwV - o4D3)", "def VMex(o4D3, si3g, ajwV, skBL):\n r8hN = (skBL - si3g) / (ajw...
[ "0.88322765", "0.8771188", "0.874378", "0.8700784", "0.8462967", "0.83780557", "0.835108", "0.83382976", "0.8202355", "0.807493", "0.80698806", "0.8002649", "0.79998714", "0.7932844", "0.79021853", "0.7897215", "0.7871597", "0.7871597", "0.78273195", "0.780501", "0.7757202", ...
0.8810129
1
Constructor for the Order class
def FIMM(YKHO, di0Y, jlUo, DumB): super(L9Jq, YKHO).__init__() YKHO.id = None YKHO.reference = qxeD.uuid4() YKHO.customer_id = di0Y YKHO.items = DumB YKHO.address = jlUo YKHO.date_ordered = qcWV.datetime.utcnow() YKHO.status = 'pending' YKHO.total = 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, T4Wy):\n YKHO.order = T4Wy", "def FIMM(YKHO, T4Wy: int):\n YKHO.order = T4Wy", "def FIMM(YKHO, o61b, y7DO, cTRz, XSoh):\n YKHO.type = 'ORDER'\n YKHO.symbol = o61b\n YKHO.order_type = y7DO\n YKHO.quantity = cTRz\n YKHO.direction = XSoh", "def FIMM(YKHO, o61b, y7DO, cTRz, XS...
[ "0.8424656", "0.81799704", "0.8149528", "0.8145742", "0.79208314", "0.7881374", "0.7802072", "0.77596337", "0.75789386", "0.75207186", "0.7499086", "0.7497624", "0.7373355", "0.7298026", "0.7282397", "0.7265977", "0.72522104", "0.7175069", "0.71397334", "0.7134153", "0.712784...
0.786059
6
Return json serializable properties without id
def qQXR(YKHO): return {'town': YKHO.town, 'street': YKHO.street, 'phone': YKHO.phone}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQXR(YKHO):\n return qQXR.dumps({G1Hx: Ty9i for G1Hx, Ty9i in YKHO.items() if G1Hx in YKHO.__PROPERTIES})", "def tWwp(YKHO):\n return {}", "def NqdR(YKHO):\n return {YKHO.__class__.__name__: {G1Hx: Ty9i for G1Hx, Ty9i in YKHO.__dict__.items() if G1Hx[:1] != '_'}}", "def oX1v(YKHO):\n geh0 = {...
[ "0.7142715", "0.70651907", "0.66764456", "0.6622174", "0.6571916", "0.65568244", "0.65492016", "0.65492016", "0.6514854", "0.6513204", "0.6440252", "0.64330417", "0.64253694", "0.64103216", "0.63894874", "0.6388171", "0.6381951", "0.6379812", "0.6377421", "0.63733697", "0.637...
0.0
-1
Return JSON serializable properties without id
def NenA(YKHO): return {'id': YKHO.id, 'town': YKHO.town, 'street': YKHO.street, 'phone': YKHO.phone}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQXR(YKHO):\n return qQXR.dumps({G1Hx: Ty9i for G1Hx, Ty9i in YKHO.items() if G1Hx in YKHO.__PROPERTIES})", "def tWwp(YKHO):\n return {}", "def NqdR(YKHO):\n return {YKHO.__class__.__name__: {G1Hx: Ty9i for G1Hx, Ty9i in YKHO.__dict__.items() if G1Hx[:1] != '_'}}", "def oX1v(YKHO):\n geh0 = {...
[ "0.7275384", "0.71701396", "0.6735243", "0.67138714", "0.6676204", "0.662575", "0.6584334", "0.6577495", "0.6577495", "0.6566629", "0.6556026", "0.6539533", "0.6524651", "0.65158844", "0.65052634", "0.6492596", "0.6480964", "0.646307", "0.64523625", "0.6444565", "0.6439419", ...
0.0
-1
Return the integer value of the argument. Throw an error if the argument is unrecognized, not an integer, or is outside the optionally specified range.
def DNVZ(YKHO, GPtr, BWXx, xY0N=None, vy31=None, XnTY=None): if xY0N != None and vy31 != None and (vy31 < xY0N): raise TjRR('Program bug: lowLimit = %d and highLimit = %d conflict' % (xY0N, vy31)) if ZbWC.match('L_\\w+$', BWXx): if not GPtr.IsParameter(BWXx): raise TjRR('Unrecognize...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, d7pR: str) -> int:\n if not d7pR:\n raise W66h('Expected integer value')\n try:\n wEf2 = int(d7pR)\n except ValueError:\n raise W66h(f\"Invalid integer value: '{d7pR}'\")\n if YKHO.min_val is not None and wEf2 < YKHO.min_val:\n raise W66h(f'Value must be great...
[ "0.7987782", "0.77220654", "0.7624937", "0.7566669", "0.7565462", "0.75460076", "0.74639106", "0.7365914", "0.73476464", "0.7347422", "0.72742987", "0.72388643", "0.7182291", "0.7119325", "0.7118645", "0.7107589", "0.70986736", "0.70957905", "0.7089678", "0.70581686", "0.7053...
0.0
-1
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): if not YKHO.head: YKHO.head = o7DN(wEf2) YKHO.length = 1 else: exwG = o7DN(wEf2) exwG.next = YKHO.head YKHO.head = exwG YKHO.length += 1
{ "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.8460169", "0.83963245", "0.8388417", "0.81362003", "0.80739886", "0.8034373", "0.799449", "0.7960312", "0.794327", "0.7920181", "0.7893991", "0.78717524", "0.7838199", "0.78315544", "0.7782496", "0.77610207", "0.7703332", "0.76732326", "0.7671962", "0.76719147", "0.7662430...
0.7414241
34
Set up necessary variables for offline labeling/viewing.
def RLEm(uSl0, uFZt): uFZt = uFZt[:] if uSl0 == 'catastrophe': Crrw = oyIN.array([f4IJ.get_label() == 'c' for f4IJ in uFZt]) elif uSl0 == 'block': Crrw = oyIN.array([f4IJ.get_label() == 'b' for f4IJ in uFZt]) else: Crrw = oyIN.array([False] * len(uFZt)) N6Z1 = oyIN.array([f4I...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iObY(YKHO):\n YKHO.mininet, YKHO.overlord, YKHO.switch = YKHO._initMininet()", "def LX6c(YKHO):\n YKHO.__passengers_count_stringvar.set(str(YKHO.__bus.count_people()))\n YKHO.__buses_count_stringvar.set(str(YKHO.__bus.count_buses()))\n YKHO.__session_time_stringvar.set(f'{YKHO.__bus.session_time}...
[ "0.61581826", "0.60601825", "0.5921453", "0.58286375", "0.5794189", "0.57593083", "0.5699552", "0.5699552", "0.5699552", "0.56899905", "0.5684841", "0.5681765", "0.5670491", "0.56683606", "0.566669", "0.5665097", "0.56483066", "0.56456316", "0.56445134", "0.5626327", "0.56229...
0.0
-1
Get the paths of all the children directories of a node.
def svne(J_Es, Q6kx): afYC = RbaF(J_Es, Q6kx) Xc3K = [j5HZ(J_Es, Z9rn) for Z9rn in afYC] return Xc3K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dCu5(YKHO, N4R1):\n ckRy = list()\n if YKHO.ItemHasChildren(N4R1):\n SStx = ckRy.append\n iIby = YKHO.GetPyData\n for Q6kx in YKHO.GetChildNodes(N4R1):\n try:\n SStx(iIby(Q6kx))\n except lnPd.PyAssertionError:\n pass\n return ckR...
[ "0.70123124", "0.7002021", "0.69999164", "0.6943276", "0.683365", "0.67130554", "0.6677086", "0.66568494", "0.6649963", "0.6623121", "0.6618017", "0.66016304", "0.65941155", "0.6567417", "0.6544836", "0.65378", "0.6522554", "0.6519507", "0.6509718", "0.64965296", "0.64522964"...
0.7922677
0
Returns the index of the source compartment in the infection multiplier vector.
def MhQv(YKHO, JZXy: Compartment): return YKHO.category_lookup[JZXy.idx]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bJPt(YKHO):\n return YKHO.index1", "def T3XV(YKHO):\n yKcO = [0]\n for HgE9 in YKHO.neurons:\n yKcO.append(HgE9.number_of_compartments())\n return oyIN.cumsum(yKcO)", "def yf6c(YKHO):\n return int(YKHO._digits, base=YKHO._base)", "def Z3zB(YKHO, JZXy=1):\n JZXy = YKHO._interpret_...
[ "0.5921763", "0.5584999", "0.55849487", "0.55077857", "0.54015946", "0.5388182", "0.5375598", "0.53663486", "0.53623617", "0.53536904", "0.53251815", "0.5284464", "0.52837926", "0.5250825", "0.5245414", "0.5232989", "0.5210419", "0.51604855", "0.515601", "0.5144271", "0.51171...
0.57997835
1
Get force of infection multiplier for a given compartment, using the 'infection frequency' calculation.
def s55j(YKHO, JZXy: Compartment, e1vZ: Compartment): or8S = YKHO.get_force_idx(JZXy) SteT = e1vZ._strat_values.get('strain', YKHO.DEFAULT_DISEASE_STRAIN) return YKHO.infection_frequency[SteT][or8S][0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VYvU(jzdc, Nq1b, eHNT, naMm=1):\n return (eHNT / Nq1b) ** (1 / -jzdc) * naMm", "def MupD(YKHO, WhQ6):\n Cqok = YKHO.getSpecOf(WhQ6)\n r8hN = Aq2z[Cqok][1] * g2zq\n Ty9i = YKHO.iv[WhQ6 - 1]\n KUXk = BJ1H(Ty9i, Ty9i) * 10000000000.0\n return r8hN * KUXk / 2 / chmV", "def ZuFw(wT9u, wW3z, T4...
[ "0.5954643", "0.5848851", "0.58278227", "0.58204466", "0.5782385", "0.5690042", "0.56643915", "0.5656955", "0.562479", "0.5574084", "0.5572458", "0.55341536", "0.5497946", "0.54396755", "0.543778", "0.5427137", "0.54247063", "0.54085517", "0.5400069", "0.5374521", "0.53736806...
0.6733023
0
Get force of infection multiplier for a given compartment, using the 'infection density' calculation.
def FlT7(YKHO, JZXy: Compartment, e1vZ: Compartment): or8S = YKHO.get_force_idx(JZXy) SteT = e1vZ._strat_values.get('strain', YKHO.DEFAULT_DISEASE_STRAIN) return YKHO.infection_density[SteT][or8S][0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s55j(YKHO, JZXy: Compartment, e1vZ: Compartment):\n or8S = YKHO.get_force_idx(JZXy)\n SteT = e1vZ._strat_values.get('strain', YKHO.DEFAULT_DISEASE_STRAIN)\n return YKHO.infection_frequency[SteT][or8S][0]", "def VYvU(jzdc, Nq1b, eHNT, naMm=1):\n return (eHNT / Nq1b) ** (1 / -jzdc) * naMm", "def ...
[ "0.592619", "0.57976985", "0.5756186", "0.5621409", "0.5597507", "0.55691963", "0.5514214", "0.5506769", "0.5489971", "0.5463036", "0.5459572", "0.5437058", "0.53848755", "0.5359373", "0.5354024", "0.53446615", "0.5337217", "0.5334783", "0.5332167", "0.5323735", "0.53041476",...
0.6867775
0
Sanitizes HTML, removing not allowed tags and attributes.
def lZfd(_R2e: str, uImr: List[str]=ormQ, STsu: Dict[str, List[str]]=WRMb) -> str: return x0SS(_R2e, tags=uImr, attributes=STsu, strip=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KWei(_R2e):\n return WxwX.clean(_R2e, tags=BvNT, attributes=c0UC)", "def KWei(Emd4, _R2e):\n MPvw = WxwX.clean(_R2e, tags=Emd4.ALLOWED_TAGS, attributes=Emd4.ALLOWED_ATTRIBUTES, strip=True)\n if '<span>' in MPvw:\n Z9JV = rKuS(MPvw)\n for uvMl in Z9JV.find_all('span'):\n if n...
[ "0.8172865", "0.81137705", "0.79334927", "0.76131314", "0.7538799", "0.74970067", "0.7432408", "0.7357024", "0.73315465", "0.7308542", "0.72832483", "0.72679424", "0.72294277", "0.7226483", "0.720502", "0.7166892", "0.7162236", "0.71498036", "0.71473897", "0.70950335", "0.708...
0.7833353
3
Splits the data into a train and test data by using sklearn train_test_split
def bHtP(YKHO, NI2E): YKHO.check_property('_x') YKHO.check_property('_y') YKHO.check_property('_z') YKHO._x_train, YKHO._x_test, YKHO._y_train, YKHO._y_test, YKHO._z_train, YKHO._z_test = bHtP(YKHO.x, YKHO.y, YKHO.z, test_size=NI2E)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hhTY(nPrm, NI2E=0.2):\n EvQg, QOe9 = bHtP(nPrm, test_size=NI2E, random_state=42)\n return (EvQg, QOe9)", "def qMKV():\n Lcqa, Z5wO, VJv0, H96n = bHtP(EcVT, LVAh, test_size=0.33)\n return (Lcqa, Z5wO, VJv0, H96n)", "def Xfh7(YKHO, Itsc: 'float'):\n YKHO.features_train, YKHO.features_test, YKH...
[ "0.8572715", "0.8497193", "0.8424024", "0.8401856", "0.8391801", "0.83573055", "0.8323574", "0.8320055", "0.83162767", "0.8288648", "0.82665986", "0.82664996", "0.82417655", "0.8241143", "0.8234631", "0.8232469", "0.8222368", "0.82014894", "0.8162936", "0.81214917", "0.808944...
0.0
-1
Convert (int) to (str) and if single digit, leftpad it with 0.
def mLGw(YKHO, YRbF): if YRbF < 10: return '0' + str(YRbF) return str(YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HaUO(YRbF):\n BHGE = '0123456789'\n if YRbF == 0:\n return '0'\n Aofo = ''\n while YRbF > 0:\n Aofo = BHGE[YRbF % 10] + Aofo\n YRbF = YRbF // 10\n return Aofo", "def HaUO(YRbF):\n BHGE = '0123456789'\n if YRbF == 0:\n return '0'\n Aofo = ''\n while YRbF ...
[ "0.7700572", "0.7691855", "0.7627828", "0.74674743", "0.7427757", "0.7392062", "0.73785317", "0.73528224", "0.7345477", "0.7293215", "0.7278562", "0.7210118", "0.69949704", "0.69761485", "0.6970526", "0.6967218", "0.69357383", "0.69038004", "0.68686557", "0.68478364", "0.6821...
0.6705638
27
r""" Calculate surface area for an arbitrary shaped throat give the perimeter and length.
def WlUj(eVVj, msq6='throat.perimeter', _2RP='throat.length'): return eVVj[msq6] * eVVj[_2RP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(fbwn, fbAQ, UoOD=None):\n j5tF = yhy4(fbwn, fbAQ, UoOD)[2]\n fUYa = j5tF[:, 0]\n bEXe = j5tF[:, 1]\n njMM = XTiz.roll(bEXe, -1, axis=0)\n zNu6 = XTiz.roll(bEXe, 1, axis=0)\n return XTiz.absolute(XTiz.sum(fUYa * (zNu6 - njMM)) / 2.0)", "def FnSF(YKHO, *qIxc):\n return leuP.Geom_Toroi...
[ "0.70475", "0.6997197", "0.68224525", "0.6775798", "0.67655975", "0.6733314", "0.67229265", "0.67023236", "0.6657956", "0.661783", "0.65795994", "0.6541669", "0.6540842", "0.6505676", "0.6491875", "0.64779794", "0.64734846", "0.6467731", "0.64533466", "0.6451273", "0.6447997"...
0.0
-1
r""" Calculate surface area for a rectangular throat Only suitable for true 2D simulations
def lued(eVVj, _2RP='throat.length'): return 2 * eVVj[_2RP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())", "def U9LR(j93S: int, Nqp_: int, pGmv: int) -> int:\n return 2 * (j93S * Nqp_) + 2 * (j93S * pGmv) + 2 * (Nqp_ * pGmv)", "def B7Mv(YKHO):\n if YKHO.surface_area_ is None:\n f0tD = 0.0\n for nXnc in YKHO.triangles:\n ...
[ "0.6994925", "0.6953244", "0.6880505", "0.6805221", "0.67545855", "0.6686903", "0.6631991", "0.6583187", "0.6514787", "0.6464606", "0.6389254", "0.63370746", "0.6299284", "0.62952805", "0.6283703", "0.625155", "0.6212292", "0.62037754", "0.62009954", "0.61972696", "0.6196756"...
0.0
-1
Takes a Performance DF and converts it to a bar plot performance graph
def EEQx(jQ3Z: pd.DataFrame, Wbxz: List[str], aNZO: Optional[Any]=None, leAC: Optional[str]=None, rTQi: Optional[Tuple[float, float]]=None, wytA: Optional[Tuple[int, int]]=None, As7F: bool=True) -> None: lP8B = jQ3Z[Wbxz].T.unstack().reset_index().rename(index=str, columns={'level_0': 'class', 'level_1': 'metric', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dxAR(YKHO, jQ3Z):\n jQ3Z['airline_sentiment'].value_counts().iplot(kind='bar', asFigure=True)", "def Fs_N(kj9G, Fg_i):\n ei4T = [f'BS:{jzdc + 1}' for jzdc in range(51)]\n SCLJ = oyIN.arange(len(ei4T))\n G8Ju = Fg_i.squeeze().detach().cpu().numpy()\n kj9G.bar(SCLJ, G8Ju, align='center', alpha=0...
[ "0.71062976", "0.6765234", "0.6642138", "0.66180134", "0.64622307", "0.6457371", "0.6392696", "0.6369991", "0.63299465", "0.6329859", "0.6290943", "0.62909395", "0.6280627", "0.62704843", "0.6265896", "0.61905724", "0.61834615", "0.61523765", "0.61501145", "0.61209136", "0.61...
0.7343763
0
Takes a list of integers as type strings and returns list of same intgers as int type
def lQgB(aO51): return [int(YRbF) for YRbF in aO51]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eyrs(qnba):\n JiPG = []\n for w1Cv in qnba:\n JiPG.append(int(w1Cv))\n return JiPG", "def ilAg(vC9B):\n return [K4Ei(KCHu) for KCHu in vC9B]", "def PVOR(hkWs):\n PVOR = []\n for KCHu in hkWs:\n PVOR.append(int(KCHu))\n return PVOR", "def pwKa(kcsq):\n return [int(WKv...
[ "0.8326681", "0.8326042", "0.82781243", "0.81480724", "0.8027298", "0.7966082", "0.79006207", "0.7823335", "0.7748889", "0.7685318", "0.7656057", "0.7621494", "0.7550123", "0.75486183", "0.7528085", "0.7507326", "0.7507326", "0.7474039", "0.7445703", "0.7273457", "0.72683024"...
0.71133405
30
Takes two sets (lists) and returns an intersection of the sets (list)
def iQin(MWrr, MOlU): return [YRbF for YRbF in MWrr if YRbF in MOlU]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQin(lNWu):\n return xBlr.reduce(set.intersection, [KCHu for KCHu in lNWu])", "def iQin(YVv6, rA0f):\n return YVv6 & rA0f", "def XMlP(jzdc, Fg_i):\n return set(jzdc) & set(Fg_i)", "def iQin(YKHO, rA0f):\n XMlP = zA7d()\n for YRbF in YKHO:\n if YRbF in rA0f and YRbF not in XMlP:\n ...
[ "0.8824271", "0.85798466", "0.8246792", "0.8176322", "0.81066394", "0.8080032", "0.80652463", "0.8062324", "0.8059243", "0.8059243", "0.8059243", "0.8059243", "0.8059243", "0.8055411", "0.8049902", "0.8028487", "0.8026493", "0.8001739", "0.799085", "0.7972561", "0.7964989", ...
0.8758574
1
Instantiate the trigger with a specific set of parameters. Does not evaluate the trigger, just configures it for execution.
def FIMM(YKHO, VJme, La_l=None, **B2fa): YKHO.gate_cls = VJme YKHO.msg = None YKHO._fired_instances = [] YKHO.rule_id = La_l if YKHO.gate_cls.__lifecycle_state__ == grOb.eol or YKHO.__lifecycle_state__ == grOb.eol: return sYft = [] NArs = YKHO.__class__._parameters() VFpc = {} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ofnn(YKHO, **B2fa):\n oTgf = iqFZ.Trigger.New(YKHO.mock_client, 'default')\n j855.ParseStaticFieldsIntoMessage(oTgf.Message(), B2fa)\n return oTgf", "def os2u(av29=None, eBH2=None, HwIj=None, OGnW=None, pgXf=None, AHoS=None, hptE=None):\n pass", "def FIMM(YKHO, nI0W, Gxf2):\n YKHO.trigger1 =...
[ "0.7343115", "0.69328725", "0.6734882", "0.6734882", "0.668757", "0.66526693", "0.66036123", "0.6583564", "0.6390761", "0.61289704", "0.6109959", "0.60722226", "0.60700226", "0.60167533", "0.60153675", "0.600081", "0.59485704", "0.59268486", "0.5918944", "0.58982503", "0.5898...
0.0
-1
Returns a map of display names of the TriggerParameters defined for this Trigger to values
def SGPK(YKHO): return {hGI9: getattr(YKHO, hGI9) for hGI9 in list(YKHO._parameters().keys())}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U5jJ(Emd4):\n return {WKvO.name: WKvO.object for WKvO in [hkS8 for hkS8 in tq_1.classify_class_attrs(Emd4) if hkS8.kind == 'data' and isinstance(hkS8.object, wyAq.services.policy_engine.engine.policy.params.TriggerParameter)]}", "def SGPK(YKHO):\n return dict(((G1Hx, getattr(YKHO, G1Hx)) for G1Hx in YK...
[ "0.67734045", "0.66384417", "0.661647", "0.661647", "0.6530016", "0.65121263", "0.6476828", "0.6474862", "0.64720666", "0.6430803", "0.63869613", "0.6298672", "0.62834823", "0.62487495", "0.62174815", "0.6215616", "0.61956394", "0.6185264", "0.6185264", "0.6149737", "0.613923...
0.6213503
16
Anonymous users should not be allowed to retrieve a Markdown image.
def zRXr(YKHO): Le24 = asfN() geh0 = YKHO.client.get(f'/api/markdown-documents/{Le24.markdown_document.id}/markdown-images/{Le24.id}/') YKHO.assertEqual(geh0.status_code, 401) hGN5 = qQXR.loads(geh0.content) YKHO.assertEqual(hGN5, {'detail': 'Authentication credentials were not provided.'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lGqV(YKHO):\n geh0 = YKHO.client.get('/images/permissions/')\n YKHO.assertEquals(geh0.status_code, 401)", "def VjP8(YKHO):\n Le24 = asfN()\n pdWF = vu4X(playlist=Le24.markdown_document.playlist, permissions__can_update=False)\n geh0 = YKHO.client.get(f'/api/markdown-documents/{Le24.markdown_do...
[ "0.6651547", "0.6516236", "0.63901186", "0.636458", "0.61545706", "0.60767955", "0.6069844", "0.6034763", "0.59288776", "0.5926398", "0.5923331", "0.5853673", "0.58496875", "0.58451444", "0.58451444", "0.5840002", "0.58399904", "0.5821857", "0.58156097", "0.5759265", "0.57340...
0.7506182
0
Return a string representation of the reference that can be used to reconstruct the object.
def wHJl(YKHO): vIwR = YKHO.to_pretty_repr() vIwR = ZbWC.sub('\\(\\n ', '(', vIwR) vIwR = ZbWC.sub(',\\n ', ', ', vIwR) vIwR = ZbWC.sub(',\\n\\)', ')', vIwR) vIwR = ZbWC.sub(' = ', '=', vIwR) return vIwR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{}'.format(YKHO.reference)", "def wHJl(YKHO):\n jnBr = 'DocumentReference({},{},{})'.format(YKHO.docName, YKHO.absolutePath, YKHO.docLength)\n return jnBr", "def _cG8(YKHO):\n vIwR = u'Reference(\\n'\n if len(YKHO.authors) != 0:\n vIwR += u' authors = [{0}],\\...
[ "0.81436956", "0.7755897", "0.7711809", "0.7576275", "0.735843", "0.733643", "0.7334522", "0.7163516", "0.7141299", "0.71189624", "0.71189624", "0.71189624", "0.7093228", "0.70632017", "0.69950426", "0.69950426", "0.6958885", "0.6908834", "0.6897897", "0.68873376", "0.6869908...
0.0
-1
Return a string representation of the reference that can be used to reconstruct the object.
def _cG8(YKHO): vIwR = u'Reference(\n' if len(YKHO.authors) != 0: vIwR += u' authors = [{0}],\n'.format(', '.join(['{0!r}'.format(taDc.encode('utf-8')) for taDc in YKHO.authors])) if YKHO.title != '': vIwR += u' title = {0!r},\n'.format(YKHO.title.encode('utf-8')) if YKHO.year != '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{}'.format(YKHO.reference)", "def wHJl(YKHO):\n jnBr = 'DocumentReference({},{},{})'.format(YKHO.docName, YKHO.absolutePath, YKHO.docLength)\n return jnBr", "def OSJW(YKHO):\n return str(YKHO._ref)", "def zAg0(YKHO):\n return ('{0} '.format(FoKK.ref) if YKHO.isRef els...
[ "0.8143757", "0.7755762", "0.7576644", "0.73583454", "0.7336558", "0.73345256", "0.7164123", "0.714101", "0.7118714", "0.7118714", "0.7118714", "0.7093382", "0.7063699", "0.69943774", "0.69943774", "0.69584095", "0.69094133", "0.6897661", "0.6887139", "0.6869439", "0.6814959"...
0.771203
2
Return a string representation of the reference that can be used to reconstruct the object.
def _cG8(YKHO): vIwR = u'Article(\n' if len(YKHO.authors) != 0: vIwR += u' authors = [{0}],\n'.format(', '.join(['{0!r}'.format(taDc.encode('utf-8')) for taDc in YKHO.authors])) if YKHO.title != '': vIwR += u' title = {0!r},\n'.format(YKHO.title.encode('utf-8')) if YKHO.journal != ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{}'.format(YKHO.reference)", "def wHJl(YKHO):\n jnBr = 'DocumentReference({},{},{})'.format(YKHO.docName, YKHO.absolutePath, YKHO.docLength)\n return jnBr", "def _cG8(YKHO):\n vIwR = u'Reference(\\n'\n if len(YKHO.authors) != 0:\n vIwR += u' authors = [{0}],\\...
[ "0.8141679", "0.77548134", "0.77105665", "0.7575759", "0.735668", "0.7334795", "0.7334352", "0.7162867", "0.71407616", "0.7117805", "0.7117805", "0.7117805", "0.70927304", "0.7061749", "0.699387", "0.699387", "0.6958095", "0.69071794", "0.6897402", "0.68875694", "0.6869799", ...
0.0
-1
Return a string representation of the reference that can be used to reconstruct the object.
def _cG8(YKHO): vIwR = u'Book(\n' if len(YKHO.authors) != 0: vIwR += u' authors = [{0}],\n'.format(', '.join(['{0!r}'.format(taDc.encode('utf-8')) for taDc in YKHO.authors])) if YKHO.title != '': vIwR += u' title = {0!r},\n'.format(YKHO.title.encode('utf-8')) if YKHO.publisher != '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{}'.format(YKHO.reference)", "def wHJl(YKHO):\n jnBr = 'DocumentReference({},{},{})'.format(YKHO.docName, YKHO.absolutePath, YKHO.docLength)\n return jnBr", "def _cG8(YKHO):\n vIwR = u'Reference(\\n'\n if len(YKHO.authors) != 0:\n vIwR += u' authors = [{0}],\\...
[ "0.8141679", "0.77548134", "0.77105665", "0.7575759", "0.735668", "0.7334795", "0.7334352", "0.7162867", "0.71407616", "0.7117805", "0.7117805", "0.7117805", "0.70927304", "0.7061749", "0.699387", "0.699387", "0.6958095", "0.69071794", "0.6897402", "0.68875694", "0.6869799", ...
0.0
-1
Return a string representation of the reference that can be used to reconstruct the object.
def _cG8(YKHO): vIwR = u'Thesis(\n' if len(YKHO.authors) != 0: vIwR += u' authors = [{0}],\n'.format(', '.join(['{0!r}'.format(taDc.encode('utf-8')) for taDc in YKHO.authors])) if YKHO.title != '': vIwR += u' title = {0!r},\n'.format(YKHO.title.encode('utf-8')) if YKHO.degree != ''...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '{}'.format(YKHO.reference)", "def wHJl(YKHO):\n jnBr = 'DocumentReference({},{},{})'.format(YKHO.docName, YKHO.absolutePath, YKHO.docLength)\n return jnBr", "def _cG8(YKHO):\n vIwR = u'Reference(\\n'\n if len(YKHO.authors) != 0:\n vIwR += u' authors = [{0}],\\...
[ "0.8141679", "0.77548134", "0.77105665", "0.7575759", "0.735668", "0.7334795", "0.7334352", "0.7162867", "0.71407616", "0.7117805", "0.7117805", "0.7117805", "0.70927304", "0.7061749", "0.699387", "0.699387", "0.6958095", "0.69071794", "0.6897402", "0.68875694", "0.6869799", ...
0.0
-1
Find and return the first fact matching this type. Raises a ValueError if no fact of the given type exists/could be enumerated.
def cntZ(YKHO, cM24: str) -> bPXq.db.Fact: try: iter = YKHO.iter(cM24) bKCn = next(iter) iter.close() except StopIteration: raise ValueError(f'{cM24}: no facts located') return bKCn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bKCn(YKHO, mWFP):\n uZlc = YKHO.__api.facts(name=mWFP, query=YKHO.__query_scope)\n return next((bKCn for bKCn in uZlc))", "def Qc4o(YKHO, bKCn):\n for PrQi in YKHO.facts:\n if bKCn == PrQi:\n return PrQi", "def Qc4o(YKHO, bKCn):\n for PrQi in YKHO.facts:\n if bKCn == Pr...
[ "0.66739506", "0.6335047", "0.6335047", "0.6335047", "0.6335047", "0.60148", "0.594152", "0.57538956", "0.567435", "0.5609667", "0.55147874", "0.5509286", "0.5500841", "0.5487155", "0.54871196", "0.5480855", "0.54370916", "0.5392469", "0.53885543", "0.5384328", "0.5361906", ...
0.80665714
0
Function to mimic the 'fspecial' gaussian MATLAB function.
def Ey6p(zNig, WTkW): r1VO = zNig // 2 vgXP = 0.0 yKcO, JCyR = (-r1VO, r1VO + 1) if zNig % 2 == 0: vgXP = 0.5 JCyR -= 1 WKvO, LVAh = oyIN.mgrid[vgXP + yKcO:JCyR, vgXP + yKcO:JCyR] assert len(WKvO) == zNig Oa1e = oyIN.exp(-((WKvO ** 2 + LVAh ** 2) / (2.0 * WTkW ** 2))) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(WKvO):\n return oyIN.exp(-WKvO ** 2)", "def IAWS(WKvO, yGTL, wEsz):\n return 1 / (wEsz * oyIN.sqrt(2 * oyIN.pi)) * oyIN.exp(-1 / 2 * ((WKvO - yGTL) / wEsz) ** 2)", "def IAWS(WKvO):\n return oyIN.exp(-(WKvO ** 2 / 2))", "def IAWS(WKvO, nJ9F, WTkW):\n return oyIN.exp(-((WKvO - nJ9F) / WTkW...
[ "0.80281687", "0.7911797", "0.7908719", "0.7840603", "0.7797364", "0.7785475", "0.77413493", "0.7695643", "0.766863", "0.7638029", "0.76360536", "0.75666595", "0.7548239", "0.7531688", "0.7513485", "0.75123453", "0.75119776", "0.74898744", "0.74814886", "0.74591386", "0.74591...
0.74484235
22
Returns the tag vocabulary as a JSON object.
def JFu6(): return qQXR.dumps(dict(((a1PO[0], a1PO[1]) for a1PO in OhYN.objects.values_list('name', 'slug'))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQXR(YKHO):\n return {'tags': list(YKHO.tags), 'word': YKHO.word}", "def V9Us():\n DumB = NCls.session.query(OhYN).all()\n return pz3A(tags=[ZfUD.serialize for ZfUD in DumB])", "def o_9p():\n dJ1p = cuiw.query(A_Eo).all()\n return pz3A(Tags=[a1PO.serialize for a1PO in dJ1p])", "def _oce(Ct...
[ "0.6940584", "0.6383822", "0.6349335", "0.6213249", "0.6154558", "0.61365205", "0.606914", "0.6068668", "0.60551363", "0.6051912", "0.6036513", "0.6023813", "0.596691", "0.59623444", "0.5954728", "0.59483075", "0.5888081", "0.58814585", "0.5848001", "0.5831761", "0.58231926",...
0.8323749
0
pad or truncate a list of tensors
def glYR(kdmR, u54L): assert isinstance(kdmR[0], ht2j.Tensor), 'tesnor type not right' H5Km = gc7n(kdmR, batch_first=True) if H5Km.shape[1] > u54L: H5Km = H5Km[:, :u54L] elif H5Km.shape[1] < u54L: eusk = u54L - H5Km.shape[1] FuQw = ht2j.zeros(H5Km.shape[0], eusk) H5Km = h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RnIX(fUYa: torch.Tensor, KHPh=0, tpio=0) -> ht2j.Tensor:\n if tpio == 0:\n return gc7n(fUYa, batch_first=True, padding_value=KHPh)\n else:\n fUYa = [WKvO.transpose(0, tpio) for WKvO in fUYa]\n H5Km = gc7n(fUYa, batch_first=True, padding_value=KHPh)\n return H5Km.transpose(1, t...
[ "0.7390106", "0.72508556", "0.71970904", "0.68644947", "0.685217", "0.67813385", "0.67768395", "0.66639096", "0.662747", "0.6607352", "0.6574101", "0.65641475", "0.6532724", "0.6515277", "0.64636624", "0.64347774", "0.6382229", "0.637313", "0.6372001", "0.635297", "0.63336873...
0.804832
0
pad or truncate a already padded tensor
def YZVu(H5Km, u54L, begE): if H5Km.shape[1] > u54L: H5Km = H5Km[:, :u54L] elif H5Km.shape[1] < u54L: eusk = u54L - H5Km.shape[1] FuQw = ht2j.zeros(H5Km.shape[0], eusk, H5Km.shape[2]).to(begE) H5Km = ht2j.cat([H5Km, FuQw], axis=1) return H5Km
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zFmz(G1Hx, a1PO):\n if uljb and G1Hx not in uljb:\n return a1PO\n vtyV = u54L if isinstance(u54L, int) else u54L[G1Hx]\n a1PO = a1PO[:vtyV]\n zQCc = vtyV - ZylS.shape(a1PO)[0]\n qH03 = ZylS.pad(a1PO, [(0, zQCc)] + [(0, 0)] * (len(a1PO.shape) - 1))\n qH03.set_shape([vtyV] + a1PO.shape.a...
[ "0.76142037", "0.7581636", "0.7572648", "0.73678875", "0.73678875", "0.7301524", "0.7274786", "0.7254054", "0.72540444", "0.7220199", "0.71899426", "0.7180151", "0.71777046", "0.71367705", "0.71131355", "0.70823926", "0.7076021", "0.70384574", "0.70262325", "0.69875264", "0.6...
0.7168693
13
Getter for the tunnelhost to create the tunnel if host is not accessible
def IqB1(YKHO): return YKHO.__tunnelhost
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InX9(YKHO):\n return zuid(YKHO._mode, YKHO.interface)", "def M2_F(YKHO):\n return YKHO._host", "def KcEq(YKHO):\n if hasattr(YKHO, '_host'):\n return YKHO._host\n else:\n return None", "def oD8D(YKHO):\n pass", "def oD8D(YKHO):\n return YKHO.host", "def KcEq(YKHO):\n ...
[ "0.7012425", "0.6843267", "0.6759447", "0.6708587", "0.6638696", "0.6566068", "0.6494868", "0.6494868", "0.6471366", "0.643532", "0.64338636", "0.64183825", "0.63954085", "0.63954085", "0.63954085", "0.63954085", "0.63954085", "0.63954085", "0.63954085", "0.63954085", "0.6395...
0.81111133
0
Setter for the tunnelhost to create the tunnel if host is not accessible
def IqB1(YKHO, kBjg): YKHO.__tunnelhost = kBjg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KcEq(YKHO, KcEq):\n try:\n YKHO._host = KcEq\n except Exception as e:\n raise tTpl", "def IqB1(YKHO):\n return YKHO.__tunnelhost", "def FIMM(YKHO, SbJ_, xKoW, xC87, NtEF):\n YKHO.tunnel = SbJ_\n YKHO.dest = xKoW\n YKHO.username = NtEF\n YKHO.port = xC87", "def FIMM(YKHO...
[ "0.6565371", "0.6562314", "0.65596145", "0.640893", "0.63600725", "0.633721", "0.6336189", "0.63134694", "0.6308262", "0.6298223", "0.6297637", "0.62013966", "0.61537874", "0.61537874", "0.607778", "0.607778", "0.607778", "0.607778", "0.607778", "0.607778", "0.60699356", "0...
0.76090455
0
Gets the packing_plan for the topology. If the callback is provided, sets watch on the path and calls the callback with the new packing_plan.
def oIGp(YKHO, sFC1, db6b=None): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MbCk(YKHO):\n return YKHO.waypts_plan", "def NMoC(YKHO, W4KC: bool=True):\n jth9 = not W4KC\n qUyJ = YKHO.owner.fetch_plan(YKHO.id_at_location, YKHO.location, copy=jth9)\n return qUyJ", "def Ved8(YKHO, qUyJ) -> RloF:\n if str(qUyJ.id) not in YKHO.plan_map:\n YKHO.plan_map[str(qUyJ.id)...
[ "0.45931584", "0.4557586", "0.4463962", "0.4446854", "0.4438858", "0.44153962", "0.44153962", "0.44153962", "0.43771482", "0.43702608", "0.43147868", "0.42846248", "0.4274549", "0.42274126", "0.4197389", "0.4174474", "0.4163296", "0.41533226", "0.41520005", "0.41222948", "0.4...
0.7180352
0
Test a readable string is returned for the model instance.
def EOlo(YKHO): YKHO.assertEqual(str(YKHO.complaint), YKHO.complaint_category)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B0JF(YKHO):\n YEnM = KcDH()\n KCHu = str(YEnM)\n YKHO.assertEqual(type(KCHu), str)", "def Dt2g(YKHO):\n vIwR = '[BaseModel] ({}) {}'.format(YKHO.my_model.id, YKHO.my_model.__dict__)\n YKHO.assertEqual(vIwR, str(YKHO.my_model))", "def ma9p(YKHO) -> None:\n YKHO.assertEqual(str(YKHO.book), ...
[ "0.7402788", "0.7275895", "0.72586435", "0.72363305", "0.72129714", "0.72006786", "0.7131133", "0.70798767", "0.707498", "0.7060294", "0.6963096", "0.6936971", "0.6862412", "0.6851495", "0.68452203", "0.6806698", "0.67323756", "0.67196345", "0.6659167", "0.66514397", "0.66474...
0.68642104
12
Test the api can update a given complaint.
def VoO5(YKHO): """Note from Chad: I don't think the actual API should be able to do this.""" Uq9W = KZIF.objects.get() Dxs_ = {'comments': 'Business Noise', 'severity': YKHO.complaint_data['severity'], 'latitude': YKHO.complaint_data['latitude'], 'longitude': YKHO.complaint_data['longitude']} Ylbp = YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rbUV(YKHO):\n YKHO.login_client('test_user', 'testing')\n geh0 = YKHO.make_a_request(kind='put', id=2, data=YKHO.valid_data)\n YKHO.assertEqual(geh0.data, YKHO.valid_data)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def R...
[ "0.70662665", "0.69133234", "0.69133234", "0.69055164", "0.68487567", "0.68285483", "0.6811525", "0.6808772", "0.6748743", "0.66700417", "0.66699225", "0.6664802", "0.66196245", "0.66153276", "0.66103786", "0.6591096", "0.6585972", "0.6532963", "0.65234584", "0.65066314", "0....
0.78947264
0
Test the api can delete a bucketlist.
def FFs1(YKHO): Uq9W = KZIF.objects.get() Ylbp = YKHO.client.delete(gxEw('details', kwargs={'pk': Uq9W.id}), format='json', follow=True) YKHO.assertEquals(Ylbp.status_code, jGRS.HTTP_204_NO_CONTENT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OyQO(YKHO):\n ZoOm = IkQF.objects.get()\n geh0 = YKHO.client.delete(gxEw('details', kwargs={'pk': ZoOm.id}))\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_204_NO_CONTENT)", "def N4bL(YKHO):\n YKHO.client().post('/bucketlist/', headers=YKHO.login(), data=YKHO.bucketlist)\n _hkX = YKHO.client()...
[ "0.8925998", "0.8907866", "0.8822734", "0.8680078", "0.8529247", "0.8527492", "0.850274", "0.84885144", "0.83645034", "0.8332143", "0.8175024", "0.8053198", "0.78155756", "0.77800053", "0.772501", "0.76626915", "0.7360046", "0.731505", "0.724393", "0.7112287", "0.7098228", ...
0.0
-1
Return the client_id from the provided request
def ZZmI(YKHO, QePW): if QePW.method == 'GET': return QePW.GET.get('client_id') else: return QePW.POST.get('client_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vzpJ(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_request_id')", "def zb3C(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'client_id')", "def zb3C(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'client_id')", "def zb3C(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'client_id')", ...
[ "0.8231754", "0.7636325", "0.7636325", "0.7636325", "0.7636325", "0.7636325", "0.73614347", "0.73614347", "0.73614347", "0.73614347", "0.73614347", "0.73614347", "0.72080505", "0.7074353", "0.7074353", "0.7074353", "0.7074353", "0.7074353", "0.7074353", "0.7074353", "0.707435...
0.8543889
0
Decomposes the access token in the request to an expiration date, scopes, and User.
def WQdJ(YKHO, QePW, geh0): hGN5 = qQXR.loads(geh0.content.decode('utf-8')) NT__ = hGN5['access_token'] rrBf = hGN5['scope'] OlUp = YKHO.get_adapter(QePW).get_access_token(NT__) CBIr = OlUp.user uC2a = rrBf.split(' ') ihMv = hGN5['expires_in'] return (ihMv, uC2a, CBIr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cao3(geh0):\n yoae = geh0['url']\n if 'api/v1/access_token' not in yoae or geh0['status']['code'] != 200:\n return geh0\n TBsA = geh0['body']['string'].decode()\n try:\n eOtH = qQXR.loads(TBsA)['access_token']\n geh0['body']['string'] = geh0['body']['string'].replace(eOtH.encod...
[ "0.5830666", "0.57282794", "0.5634213", "0.56288046", "0.56260574", "0.5608414", "0.5555204", "0.55507636", "0.5540532", "0.5529096", "0.5524503", "0.5523479", "0.55167955", "0.55035573", "0.546058", "0.5454979", "0.5446595", "0.5445644", "0.54456294", "0.5418863", "0.5412275...
0.7379323
0
Returns a JWT access token.
def Gy9L(YKHO, CBIr, uC2a, ihMv): wzkt = int(ITS7()) Jh5R = gCuF.JWT_AUTH pB3N = {'iss': Jh5R['JWT_ISSUER'], 'aud': Jh5R['JWT_AUDIENCE'], 'exp': wzkt + ihMv, 'iat': wzkt, 'preferred_username': CBIr.username, 'scopes': uC2a} for rrBf in uC2a: DCgT = YKHO.claim_handlers.get(rrBf) if DCgT: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n uIyX = Zul5()\n return nyyK({'access_token': VuvO(uIyX, fresh=False)})", "def gNTt(YKHO):\n bD7m = gxEw('obtain_jwt')\n NT__ = YKHO.client.post(bD7m, {'email': YKHO.user.email, 'password': o3Wp}, format='json').data['access']\n YKHO.client.credentials(HTTP_AUTHORIZATION='Bearer '...
[ "0.82428336", "0.78751403", "0.7793038", "0.7785745", "0.77567255", "0.76685494", "0.7534352", "0.7534352", "0.7534352", "0.7534352", "0.7520638", "0.7428211", "0.7416855", "0.7413835", "0.7383454", "0.7328146", "0.7318135", "0.7307924", "0.73061067", "0.7287504", "0.7286383"...
0.0
-1
Add the email claim details to the JWT payload.
def y7zB(YKHO, pB3N, CBIr): pB3N['email'] = CBIr.email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AP_Y(_E99):\n return Oa1e.extra_info_for_claims", "def O59W(D3lj):\n try:\n pB3N = {'exp': qcWV.datetime.utcnow() + qcWV.timedelta(days=1), 'iat': qcWV.datetime.utcnow(), 'sub': D3lj}\n return DvJO.encode(pB3N, gCuF.SECRET_KEY, algorithm='HS256')\n except Exception as e:\n retur...
[ "0.6443408", "0.62933373", "0.61322296", "0.6103863", "0.6008499", "0.5931747", "0.58837897", "0.58183146", "0.5813869", "0.5766198", "0.5742368", "0.5737549", "0.57129526", "0.57100594", "0.5708962", "0.5704153", "0.5680331", "0.56677794", "0.56638944", "0.56212103", "0.5613...
0.78230554
0
Append a node to the end of the list
def SStx(YKHO, BWXx): if YKHO.head is None: YKHO.head = o7DN(BWXx) return Q6kx = YKHO.head while Q6kx.next: Q6kx = Q6kx.next Q6kx.next = o7DN(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, ZfUD):\n Esd_ = o7DN(ZfUD)\n if YKHO.head is None:\n YKHO.head = Esd_\n return\n kMLo = YKHO.head\n while kMLo.get_next() is not None:\n kMLo = kMLo.get_next()\n kMLo.set_next(Esd_)", "def K_Q6(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.insert_beginni...
[ "0.7874896", "0.78021276", "0.7780175", "0.77673954", "0.7761886", "0.77308375", "0.7692673", "0.76344275", "0.7633627", "0.7619611", "0.7612009", "0.75981754", "0.7597346", "0.7583492", "0.75739443", "0.7572994", "0.75709784", "0.75662154", "0.7558447", "0.7558447", "0.75584...
0.7322636
64
Search the linked list for a node with the requested value and return the node.
def TgwQ(YKHO, BWXx): if YKHO.head is None: return None Q6kx = YKHO.head while Q6kx: if Q6kx.value == BWXx: return Q6kx Q6kx = Q6kx.next raise ValueError('Value not found in the list.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgwQ(YKHO, BWXx):\n kMLo = YKHO.head\n while kMLo:\n if kMLo.value == BWXx:\n return kMLo\n else:\n kMLo = kMLo.next", "def TgwQ(YKHO, BWXx):\n if YKHO.head is None:\n return None\n kMLo = YKHO.head\n while kMLo.next:\n if kMLo.value == BWXx:\n...
[ "0.8728292", "0.8727737", "0.86478835", "0.85866135", "0.8476757", "0.84549904", "0.82663554", "0.82552433", "0.8213175", "0.81484276", "0.813064", "0.7953746", "0.7919459", "0.78418964", "0.7821389", "0.7792404", "0.77507", "0.7717579", "0.76503474", "0.7599706", "0.7590746"...
0.8671411
2
Return the size or length of the linked list.
def zNig(YKHO): zNig = 0 Q6kx = YKHO.head while Q6kx: zNig += 1 Q6kx = Q6kx.next return zNig
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n THsq = YKHO.head\n sL7f = 0\n while THsq is not None:\n sL7f = sL7f + 1\n THsq = THsq.next\n return sL7f", "def zNig(YKHO):\n return YKHO.linked_list.size()", "def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1...
[ "0.8064686", "0.80579835", "0.80047977", "0.7990104", "0.7962079", "0.7952713", "0.78398746", "0.7825874", "0.7817758", "0.7805949", "0.7790046", "0.77758557", "0.7769994", "0.7761854", "0.7741997", "0.773215", "0.7719919", "0.77022284", "0.76981276", "0.76968116", "0.7682566...
0.75894773
34
Return the parent node of the node containing the given item (or the parent node of where the given item would be if inserted) in this tree, or None if this tree is empty or has only a root node. Search is performed recursively starting from the given node (give the root node to start recursion).
def mdgq(YKHO, OXAZ, _AKB=None): if YKHO.data == OXAZ: return _AKB else: if YKHO.left is not None: vC9B = YKHO.left.search(OXAZ, YKHO) if vC9B is not None: return vC9B if YKHO.right is not None: Mkmy = YKHO.right.search(OXAZ, YKHO) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yc6o(YKHO, BWXx):\n if YKHO._linkRoot == None:\n return None\n if YKHO._linkRoot._itemValue == BWXx:\n return None\n return YKHO._find_parent_item_recursively(YKHO._linkRoot, BWXx)", "def neBz(YKHO, ZfUD):\n jvSB = YKHO.root\n while jvSB:\n if jvSB.item == ZfUD:\n ...
[ "0.759709", "0.74668956", "0.7038102", "0.7038102", "0.68975055", "0.6890206", "0.68796945", "0.6845738", "0.68135333", "0.67734057", "0.6767164", "0.66984123", "0.66970015", "0.663535", "0.65497947", "0.64995426", "0.64751774", "0.64518774", "0.6426755", "0.6356558", "0.6239...
0.68985665
4
O(1) Return True if this binary search tree is empty (has no nodes).
def FBfn(YKHO): return YKHO.root is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n \"\"\"Takes no arguments.\n Returns True if the tree is empty and False otherwise.\"\"\"\n return YKHO.root == None", "def FBfn(YKHO: AbstractTree) -> bool:\n return YKHO._root is None", "def j2V2(YKHO):\n return YKHO.treestore.get_iter_first() == None", "def FBfn(YKHO) -...
[ "0.9225237", "0.8935353", "0.87836254", "0.8685696", "0.8685696", "0.8685696", "0.86398506", "0.862181", "0.862181", "0.85718036", "0.85244375", "0.84987736", "0.84262913", "0.8419612", "0.8408967", "0.84046984", "0.8344801", "0.8335844", "0.8317838", "0.8317838", "0.8317838"...
0.85411024
10
O(log n) Return the parent node of the node containing the given item (or the parent node of where the given item would be if inserted) in this tree, or None if this tree is empty or has only a root node. Search is performed recursively starting from the given node (give the root node to start recursion).
def CGfD(YKHO, OXAZ): if YKHO.is_empty() is not True: return YKHO.root.find_parent_node_recursive(OXAZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neBz(YKHO, ZfUD):\n jvSB = YKHO.root\n while jvSB:\n if jvSB.item == ZfUD:\n return jvSB\n if jvSB.item < ZfUD:\n jvSB = jvSB.right\n else:\n jvSB = jvSB.left\n return None", "def Yc6o(YKHO, BWXx):\n if YKHO._linkRoot == None:\n return ...
[ "0.7656669", "0.75870556", "0.71811724", "0.71811724", "0.70654786", "0.7058753", "0.6909672", "0.6900705", "0.68613285", "0.685269", "0.681589", "0.67656124", "0.6595582", "0.65836936", "0.65741557", "0.6562177", "0.65283376", "0.650311", "0.64958227", "0.6492248", "0.647345...
0.6853686
9
For `with`, make this class a context manager type
def DMw_(YKHO): return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DMw_(YKHO):\n print('Entering context manager')\n return YKHO.obj", "def DMw_(YKHO):\n if getattr(YKHO, '_func', None) is None:\n raise AttributeError(f\"Can't use {YKHO!r} as a context manager because the '_func' attribute is not defined\")\n return YKHO", "def v7zJ():\n pass", "de...
[ "0.7545441", "0.7490576", "0.74108225", "0.7409608", "0.7333631", "0.7124729", "0.7090032", "0.7090032", "0.7027947", "0.6962429", "0.68733305", "0.6819696", "0.6802818", "0.6802818", "0.6802818", "0.6802818", "0.6802818", "0.6802818", "0.6802818", "0.6802818", "0.67861646", ...
0.665973
47
Count how many nodes in the tree has the same depth as the root
def z2xP(Wln9: str) -> int: a1PO = jHsn.read_gpickle(Hy7s.path.join(Hy7s.getcwd(), Wln9)) pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ges3(YKHO, tk5Y=True) -> int:\n mLGw = 0\n for jehQ in YKHO.branches:\n mLGw += jehQ.count_tree_nodes(root=False) + 1\n return mLGw + tk5Y", "def EKkU(J_Es):\n mLGw = 1\n for aUGN in J_Es.children:\n mLGw += 1 + len(aUGN.children)\n EKkU(aUGN)\n return mLGw", "def UHF...
[ "0.83729315", "0.81980073", "0.81851965", "0.8102208", "0.8020714", "0.77874184", "0.7731633", "0.76999044", "0.7693859", "0.76661444", "0.76612806", "0.76488286", "0.7616912", "0.7567364", "0.7555874", "0.7545817", "0.7544849", "0.7537709", "0.75219023", "0.75095034", "0.748...
0.0
-1
Calculate the midlayer pressure in Pa from surface pressure and ak and bk constants.
def LCST(tgCD): By5j = tgCD.dp_pa.copy().load() YhE_ = tgCD.surfpres_pa.copy().load() for G1Hx in range(len(tgCD.z)): DQYo = tgCD.ak[G1Hx + 1] + YhE_ * tgCD.bk[G1Hx + 1] fF6Q = tgCD.ak[G1Hx] + YhE_ * tgCD.bk[G1Hx] By5j[:, G1Hx, :, :] = (DQYo - fF6Q) / oyIN.log(DQYo / fF6Q) By5j.n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V6IE(G1Hx, Cwt5=-11.0 / 3, _sPN=1):\n return (G1Hx / _sPN) ** Cwt5", "def UZ8s():\n return 69476.95", "def OcxY(hnFq, _sei, CdMZ):\n lwo8 = oyIN.size(_sei)\n glrM = hnFq.shape[2]\n bJvf = hnFq.shape[1]\n V6vp = hnFq.shape[0]\n Sa4a = hnFq.copy()\n nyMd = _sei.copy()\n _5or = CdMZ...
[ "0.6264266", "0.61629385", "0.61079556", "0.6051906", "0.59973156", "0.59794956", "0.5943206", "0.5940953", "0.58709013", "0.5851131", "0.5840645", "0.58286774", "0.58186924", "0.58040076", "0.57796025", "0.5765717", "0.57561713", "0.5712479", "0.57029676", "0.5653184", "0.56...
0.600018
4
Parse commandline and configuration file arguments.
def dCXb(YKHO): qIxc, cmuQ = YKHO.conf_parser.parse_known_args() if qIxc.conf_file: GPtr = kwpV() if len(GPtr.read([qIxc.conf_file])) > 0: if GPtr.has_section('defaults'): for H5ew, BWXx in dict(GPtr.items('defaults')).items(): qIxc, n9YZ = YKHO.pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gjfU(YKHO):\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--inputfile', '-f', nargs=1, type=nUeQ, help='File containing the track graph in dot format to process.', required=True)\n wvEv.add_argument('--configfile', '-c', nargs=1, type=nUeQ, help='File containing the DB connection settings.', req...
[ "0.78589976", "0.7856081", "0.78278416", "0.77832013", "0.77701104", "0.76816803", "0.7657332", "0.7657332", "0.75967765", "0.7583818", "0.75594807", "0.75508505", "0.75478846", "0.7521759", "0.7509482", "0.7504367", "0.748097", "0.7455516", "0.74549127", "0.7454116", "0.7447...
0.7336436
38
Use this for boolean options, regular bool is always treated as True.
def likR(Ty9i): return Ty9i.lower() in ('yes', 'y', 'true', 't', '1')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bool(mWFP):\n return pifZ(mWFP)", "def bool(YKHO):\n KCHu = YKHO.value\n if KCHu:\n KCHu = KCHu.lower()\n exwG = len(KCHu)\n if KCHu == '1' or KCHu == 'on' or KCHu == 'true'[:exwG] or (KCHu == 'yes'[:exwG]):\n return True\n if KCHu == '0' or KCHu == 'off'[:exwG...
[ "0.7782557", "0.76908726", "0.7406885", "0.7386128", "0.7323352", "0.7257024", "0.7242227", "0.72324675", "0.7232392", "0.7210993", "0.71674097", "0.7156078", "0.7156075", "0.7152539", "0.7106212", "0.7099612", "0.70806986", "0.7040309", "0.70346063", "0.70044017", "0.6988549...
0.6834899
49
Rotate arrays of coordinates x and y by theta radians about the point (ox, oy).
def Du47(WKvO, LVAh, q7In, YRSS, rUT8): KCHu, Z9rn = (oyIN.sin(q7In), oyIN.cos(q7In)) WKvO, LVAh = (oyIN.asarray(WKvO) - YRSS, oyIN.asarray(LVAh) - rUT8) return (WKvO * Z9rn - LVAh * KCHu + YRSS, WKvO * KCHu + LVAh * Z9rn + rUT8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N0Pp(WKvO, LVAh, XGDG, iSy9, q7In):\n zuVY = epAf.cos(q7In) * (WKvO - XGDG) - epAf.sin(q7In) * (LVAh - iSy9) + XGDG\n wx6A = epAf.sin(q7In) * (WKvO - XGDG) + epAf.cos(q7In) * (LVAh - iSy9) + iSy9\n return [zuVY, wx6A]", "def N0Pp(M_DK, q7In):\n PxLa = oyIN.cos(q7In) * M_DK[0] - oyIN.sin(q7In) * M...
[ "0.8085989", "0.7851707", "0.7696078", "0.7643412", "0.75988185", "0.7299764", "0.7110979", "0.70898396", "0.70751464", "0.69552344", "0.6944577", "0.6943731", "0.69158477", "0.69026", "0.6825911", "0.68081284", "0.6785577", "0.6782722", "0.6742196", "0.66996753", "0.6694609"...
0.85197496
0
Converts EquivStructure.Structure to an atom.Structure
def _NYW(g8x2): import Pylada from EquivStructure import Structure Aofo = Pylada.Structure() Vo9x = Pylada.rMatrix3d() Vo9x.diag(Pylada.rVector3d([0.5, 0.5, 0.5])) Aofo.cell = Pylada.make_rMatrix3d(g8x2.period) * Vo9x for YRbF in range(len(g8x2.entries)): Aofo.atoms.append(Pylada.Ato...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H5D2(RR8p):\n if not xu0H.FOUND_ASE:\n print('ASE must be installed to convert Atoms object to a Structure')\n return\n BlNT = Ij4F()\n BlNT.cell = RR8p.get_cell()\n for jzdc in RR8p:\n WhQ6 = k3IH()\n WhQ6.coord = jzdc.position\n WhQ6.symbol = jzdc.symbol\n ...
[ "0.68760306", "0.6572252", "0.6553226", "0.65008724", "0.61962074", "0.6027057", "0.5487126", "0.543743", "0.5419155", "0.5384528", "0.5381247", "0.5338359", "0.53315485", "0.5257331", "0.51634794", "0.51496017", "0.50817966", "0.50775987", "0.5075818", "0.50525624", "0.50471...
0.5777201
6
Represents the object by its sender, recipient, and id.
def wHJl(YKHO) -> str: return f'Message(to: {YKHO.recipient:.12}{('...' if len(YKHO.recipient) > 12 else '')}, from: {YKHO.sender:.12}{('...' if len(YKHO.sender) > 12 else '')}, id: {YKHO.id})'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iv8C(YKHO):\n if YKHO.sender_id:\n return {'user_id': YKHO.sender_id}\n return {'name': YKHO.name}", "def Napc(YKHO):\n return {'id': YKHO.id, 'sender_id': YKHO.sender_id, 'recipient_id': YKHO.recipient_id, 'sender_first_name': YKHO.sender_first_name, 'sender_last_name': YKHO.sender_last_name...
[ "0.6226982", "0.60688394", "0.6051376", "0.5919422", "0.5901743", "0.58451396", "0.58120614", "0.5763305", "0.57426816", "0.5723484", "0.5723484", "0.5678303", "0.5666805", "0.5664909", "0.5651934", "0.56481785", "0.5645815", "0.5591562", "0.5579514", "0.5569135", "0.556317",...
0.57230455
11
Marks this message as spam (by adding the SPAM label).
def cArY(YKHO): try: Ylbp = YKHO._service.users().messages().modify(userId=YKHO.user_id, id=YKHO.id, body=YKHO._create_update_labels(to_add=[Crrw.SPAM])).execute() except c1Bu as error: print(f'An error occurred: {P1dF}') else: assert Crrw.SPAM in Ylbp['labelIds'], f'An error occurre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cArY(QqN4, vC92):\n n3SU = Er1K.db.get_value('Email Rule', {'email_id': vC92})\n if not n3SU:\n Er1K.get_doc({'doctype': 'Email Rule', 'email_id': vC92, 'is_spam': 1}).insert(ignore_permissions=True)\n Er1K.db.set_value('Communication', QqN4, 'email_status', 'Spam')", "def cArY(QqN4, vC92):\n...
[ "0.7239143", "0.7196459", "0.7125568", "0.66757506", "0.6336803", "0.6322876", "0.60459197", "0.6000602", "0.58681446", "0.5763201", "0.5736072", "0.5721808", "0.5691713", "0.56094104", "0.5607539", "0.5593045", "0.55720633", "0.5552595", "0.5474209", "0.54605216", "0.5435791...
0.8245823
0
Removes the given label from the message.
def FADW(YKHO, lV4j): YKHO.remove_labels([lV4j])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z2Pi(YKHO, UXqs):\n YKHO._api.doRequest('DELETE', UXqs.getBaseApiPath() + '/messages/' + YKHO.id)\n if UXqs.id in YKHO._label_ids_set:\n del YKHO._label_ids_set[UXqs.id]", "def FADW(YKHO, UXqs):\n pass", "def FADW(YKHO, UXqs=None):\n YKHO.get_issue().remove_from_labels(UXqs)", "def Pix...
[ "0.88859653", "0.814295", "0.80274737", "0.77776635", "0.7426615", "0.74248105", "0.7338871", "0.73039603", "0.7182217", "0.7170692", "0.7160024", "0.70397985", "0.6823429", "0.6768328", "0.6720549", "0.67204595", "0.66418964", "0.6631448", "0.66033196", "0.6583153", "0.65811...
0.6722269
14
Removes the given labels from the message.
def lU8j(YKHO, lV4j): YKHO.modify_labels([], lV4j)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lU8j(YKHO, Crrw):\n for yHil in YKHO.labels.keys():\n ZHfW = YKHO.labels[yHil]['label'].isin(Crrw)\n YKHO.labels[yHil] = YKHO.labels[yHil][~ZHfW]\n YKHO.feats[yHil] = YKHO.feats[yHil][~ZHfW]", "def lU8j(YKHO, Crrw, koBJ=False):\n YKHO.check_labels(Crrw)\n YKHO.reassign_labels(Cr...
[ "0.75733984", "0.7246216", "0.7206219", "0.720248", "0.7000669", "0.68336755", "0.6658485", "0.6589406", "0.6535657", "0.64877933", "0.6457391", "0.6409241", "0.63720703", "0.63162625", "0.63042176", "0.62537205", "0.6219787", "0.6206738", "0.6166374", "0.607027", "0.6037227"...
0.6513334
9
Adds or removes the specified labels.
def n3AV(YKHO, A9IP, lV4j): if isinstance(A9IP, seYU): A9IP = [A9IP] if isinstance(lV4j, seYU): lV4j = [lV4j] try: Ylbp = YKHO._service.users().messages().modify(userId=YKHO.user_id, id=YKHO.id, body=YKHO._create_update_labels(A9IP, lV4j)).execute() except c1Bu as error: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zWfs(Atyj, OaeV, VNiV):\n Ttey = OaeV.triggered[0]['value']['points'][0]['customdata']\n if Ttey in VNiV:\n VNiV.remove(Ttey)\n else:\n VNiV.append(Ttey)\n Atyj('label_ids', VNiV)", "def euZr(YKHO, EKkb, FKHv=False):\n YKHO._labels_handler(label_list=EKkb, update_ontology=FKHv, m...
[ "0.72779834", "0.7059804", "0.7043859", "0.7021216", "0.6993318", "0.6947146", "0.6847959", "0.68334824", "0.68334824", "0.68334824", "0.68334824", "0.68334824", "0.6712503", "0.66971415", "0.6657855", "0.6641483", "0.6562794", "0.65177673", "0.6454415", "0.6427096", "0.63705...
0.658723
16
r"""Generates a latitude/longitude grid at a desired resolution Computes 1D arrays of latitude and longitude values which correspond to cell interfaces and centroids at a given resolution.
def dgEF(Ylbp, **wUfe): JAbW = wUfe.get('from_zero', False) C1p9 = wUfe.get('res_lat', Ylbp) sIdI = wUfe.get('res_lon', Ylbp) glrM = int(360.0 / sIdI) + 1 bJvf = int(180.0 / C1p9) + 1 FKQg = oyIN.linspace(-180, 180, glrM) if JAbW: FKQg += 180 YTS6 = oyIN.linspace(-90, 90, bJvf) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w3hO(fopC, _UuI):\n qJvq = oyIN.zeros((len(_UuI), len(fopC)))\n btha = oyIN.zeros((len(_UuI), len(fopC)))\n for PdTe in range(len(_UuI)):\n KZwh = ILZY(0.0, _UuI[PdTe], oyIN.mean(oyIN.diff(fopC)), _UuI[PdTe])\n mKPJ = ILZY(0.0, 0.0, 0.0, oyIN.mean(oyIN.diff(_UuI)))\n qJvq[PdTe] = ...
[ "0.7248392", "0.7137752", "0.70530695", "0.70386994", "0.69217956", "0.6877082", "0.686807", "0.6743981", "0.6727812", "0.6698898", "0.6688786", "0.66830903", "0.66740835", "0.66121703", "0.6610282", "0.6606824", "0.6605253", "0.6598492", "0.6579779", "0.65535027", "0.6553502...
0.61872756
69
Remaps a normalized variable to the interval [0,1].
def Ca9i(SRYB, WuUW): from ILAMB.Variable import Variable mWFP = SRYB.name.replace('bias', 'bias_score') mWFP = mWFP.replace('diff', 'diff_score') mWFP = mWFP.replace('rmse', 'rmse_score') mWFP = mWFP.replace('iav', 'iav_score') oyIN.seterr(over='ignore', under='ignore') nPrm = oyIN.exp(-oyI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(LNo8, vFVn=-1000.0, VypE=400.0):\n LNo8 = (LNo8 - vFVn) / (VypE - vFVn)\n LNo8[LNo8 > 1] = 1.0\n LNo8[LNo8 < 0] = 0.0\n return LNo8", "def r0lV(BWXx, bKEy, o6jZ):\n return (BWXx + 1) / 2.0 * (o6jZ - bKEy) + bKEy", "def NkkI(WKvO):\n return (WKvO - WKvO.min()) / (WKvO.max() - WKvO.min...
[ "0.6833057", "0.6711595", "0.6653338", "0.6588735", "0.65417457", "0.65365994", "0.6528899", "0.6513339", "0.65069026", "0.64869654", "0.6480294", "0.64613855", "0.64215636", "0.6393945", "0.6379416", "0.6368923", "0.6331289", "0.6327337", "0.6326096", "0.6325103", "0.6318893...
0.0
-1
Normalize a list of sample image data in the range of 0 to 1
def NkkI(WKvO): hlel = oyIN.array([LNo8 / 255 for LNo8 in WKvO]) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ku21(nPrm):\n for YRbF in range(0, len(nPrm)):\n nPrm[YRbF] = oyIN.true_divide(nPrm[YRbF], 255)\n return nPrm", "def NkkI(nPrm, Ytix, qoiF):\n Ytix, qoiF = (oyIN.array(Ytix), oyIN.array(qoiF))\n ezF6 = Ytix - qoiF\n for YRbF in oyIN.arange(nPrm.shape[1]):\n nPrm[:, YRbF] = (nPrm[...
[ "0.8353757", "0.7798726", "0.77475727", "0.76734304", "0.76517504", "0.7551767", "0.75108385", "0.7497634", "0.74527204", "0.74414486", "0.74364305", "0.74323845", "0.7361728", "0.73230165", "0.7303288", "0.73031634", "0.7255065", "0.72532886", "0.72413355", "0.7241024", "0.7...
0.7604871
5
Flatten x_tensor to (Batch Size, Flattened Image Size)
def PWgb(k3l6): RE2Q = ZylS.contrib.layers.flatten(k3l6) return RE2Q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(k3l6):\n WNSx = k3l6.get_shape().as_list()\n return ZylS.reshape(k3l6, [-1, oyIN.prod(WNSx[1:])])", "def nPf0(WKvO):\n ROpF = WKvO.get_shape().as_list()[1:]\n if None not in ROpF:\n return ZylS.reshape(WKvO, [-1, int(oyIN.prod(ROpF))])\n return ZylS.reshape(WKvO, ZylS.stack([ZylS.s...
[ "0.7683886", "0.76205015", "0.7564119", "0.75083315", "0.7126777", "0.7110308", "0.70505315", "0.7025903", "0.6955535", "0.69369626", "0.6933507", "0.6863118", "0.6823055", "0.67963463", "0.67839575", "0.66726184", "0.66007537", "0.6562133", "0.6516714", "0.6516714", "0.64765...
0.7725276
0
Apply a output layer to x_tensor using weight and bias
def hlel(k3l6, I07O): RLZ8 = ZylS.layers.dense(k3l6, I07O, activation=None) return RLZ8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlel(k3l6, I07O):\n WNSx = k3l6.get_shape().as_list()\n ROpF = list((WNSx[-1],) + (I07O,))\n XcU5 = ZylS.get_variable('W', shape=ROpF, initializer=ZylS.contrib.layers.xavier_initializer(), dtype=gv9r)\n ZylS.summary.histogram('weights', XcU5)\n return ZylS.matmul(k3l6, XcU5)", "def hlel(k3l6, ...
[ "0.73618627", "0.7318608", "0.6838199", "0.6838177", "0.67591053", "0.6735119", "0.67206484", "0.6711356", "0.6694844", "0.6679892", "0.6621747", "0.6593367", "0.64830446", "0.64329976", "0.6429556", "0.6415362", "0.6411092", "0.63984203", "0.6367148", "0.6356077", "0.6352386...
0.69600695
2
Create a convolutional neural network model
def Hf6V(WKvO, sMyr): PlUV = tCUu(WKvO, conv_num_outputs=64, conv_ksize=(5, 5), conv_strides=(2, 2), pool_ksize=(2, 2), pool_strides=(2, 2)) PlUV = ZylS.nn.dropout(PlUV, sMyr) wNHR = tCUu(PlUV, conv_num_outputs=128, conv_ksize=(3, 3), conv_strides=(2, 2), pool_ksize=(2, 2), pool_strides=(2, 2)) wNHR = Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cJ5i():\n C3ST = ileL()\n C3ST.name = 'cnn_ke_1'\n C3ST.add(yHwh(64, 5, data_format='channels_last', kernel_initializer='he_normal', input_shape=(48, 48, 1)))\n C3ST.add(GVKG())\n C3ST.add(MroH('relu'))\n C3ST.add(yHwh(64, 4))\n C3ST.add(GVKG())\n C3ST.add(MroH('relu'))\n C3ST.add(YM...
[ "0.76673216", "0.7620799", "0.7554268", "0.7473249", "0.7454712", "0.7423837", "0.7364558", "0.7300785", "0.72817856", "0.72618675", "0.72554284", "0.72481835", "0.7235669", "0.72312355", "0.7210186", "0.7179799", "0.7150174", "0.71237445", "0.7117585", "0.70953375", "0.70737...
0.0
-1
Normalize image after adding noise or other values.
def NkkI(LNo8): return XC5k.normalize(LNo8, alpha=0, beta=1, norm_type=XC5k.NORM_MINMAX, dtype=XC5k.CV_32F)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwsU(YKHO):\n YKHO.img = oyIN.clip(YKHO.img - YKHO.img.mean(), -1, 1)", "def kwsU(YKHO):\n YKHO.img = YKHO.img.astype(oyIN.float32) / 255.0\n YKHO.img -= YKHO.img.mean()", "def kwsU(YKHO):\n YKHO.img = oyIN.clip(YKHO.img, 0, 150.0) / 150.0", "def NkkI(YKHO):\n YKHO._images = YKHO._images.a...
[ "0.79806244", "0.7907607", "0.75239193", "0.7466345", "0.74495065", "0.7432135", "0.73549086", "0.73306906", "0.72687477", "0.72464097", "0.72276545", "0.7159842", "0.7140151", "0.703665", "0.7036364", "0.703058", "0.7023303", "0.7019725", "0.7019112", "0.7014589", "0.7008477...
0.6646071
54
Construction classmethod for Structure by converting pymatgen Lattice/Molecule to Structure.
def IRcG(Emd4, Bzjt): BlNT = Emd4() Fw8z = oyIN.array([qpDA.coords for qpDA in Bzjt]) oMqC = oyIN.array([qpDA.specie.name for qpDA in Bzjt]) if type(Bzjt) == UnlI: BlNT.from_geo_array(Fw8z, oMqC) elif type(Bzjt) == GlT5: raise Exception('Lattice conversion not implemented yet') e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A7M5(YKHO):\n lnum = oyIN.array([WhQ6[1] for WhQ6 in YKHO.molecule])\n Kxrs = oyIN.array([WhQ6[1] for WhQ6 in YKHO.others])\n hgjH = oyIN.mean(lnum, axis=0)\n tux7 = YKHO.struc.lattice.matrix\n jzdc, Fg_i, Z9rn = (tux7[0], tux7[1], tux7[2])\n tux7 = oyIN.array([jzdc * YKHO.scaling_matrix[0], ...
[ "0.70737725", "0.6384125", "0.63830423", "0.63573027", "0.6340039", "0.62896013", "0.6148268", "0.6146247", "0.61328965", "0.61288726", "0.6128435", "0.6110625", "0.603687", "0.60350376", "0.59844077", "0.5968865", "0.5947504", "0.58927035", "0.5834795", "0.5829935", "0.58189...
0.72704005
0
Load the saved weights for the model and target model.
def SUd8(YKHO, gIsw=None): if gIsw is None: gIsw = 'critic-' + YKHO.optimizer_choice + '-' + str(YKHO.state_shape) + '-features.h5' try: YKHO.model.load_weights(gIsw) YKHO.target_model.load_weights(gIsw) except OSError: print('Critic weights could not be found. No data was lo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SUd8(YKHO):\n gmRx = YKHO.model_dir_path + YKHO.model_name + '.h5'\n C_Py = YKHO.model_dir_path + YKHO.model_d_name + '.h5'\n fq0h = YKHO.model_dir_path + YKHO.model_ae_name + '.h5'\n YKHO.autoencoder.load_weights(fq0h)\n YKHO.discriminator.load_weights(C_Py)\n YKHO.combined.load_weights(gmRx...
[ "0.81942004", "0.81942004", "0.81942004", "0.8181223", "0.8172194", "0.7977065", "0.7925401", "0.7846057", "0.769056", "0.76599556", "0.7659392", "0.76553893", "0.7624976", "0.7624976", "0.74980843", "0.7441599", "0.74212855", "0.74130106", "0.73951936", "0.73951936", "0.7395...
0.0
-1
FUNCTION get the list of factors of the query PARAMETERS None RETURN
def TbPN(): Llmz = ['all', 'year', 'cs', 'csyear', 'act_type', 'period'] return Llmz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WEYW(YKHO):\n bTKY = YKHO.get_entry()\n if YKHO.input_is_valid(bTKY, 1):\n dixj = map(lambda WKvO: sorted(zAVy.factors_of(WKvO)), bTKY)\n YKHO.result.config(text=YKHO.build_results(bTKY, dixj))", "def RGjk(ypOY):\n for YRbF in range(2, int(ypOY ** 0.5)):\n if ypOY % YRbF == 0:\n...
[ "0.7159386", "0.6986992", "0.6855194", "0.6818341", "0.68054944", "0.6730846", "0.6709099", "0.67083985", "0.6701328", "0.66498464", "0.66284364", "0.6622892", "0.6607728", "0.66011685", "0.6594013", "0.6586175", "0.6580144", "0.65725696", "0.6561295", "0.6555731", "0.6550942...
0.73391366
0
Function removes duplicates from a list Returns list without duplicates
def EIZV(yv6U): return list(dict.fromkeys(yv6U))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c9nX(BDwY):\n return list(set(BDwY))", "def uY6T(yv6U):\n return list(set([YRbF for YRbF in yv6U]))", "def sHC1(YKHO, list):\n return set((ZfUD for ZfUD in list))", "def uY6T(list):\n return set((ZfUD for ZfUD in list))", "def cXrt(e5Mv):\n bDFL = set(e5Mv)\n SIKZ = list(bDFL)\n re...
[ "0.8654164", "0.8610866", "0.85941684", "0.857151", "0.85504705", "0.8526703", "0.84372145", "0.840986", "0.84094197", "0.83778083", "0.82390654", "0.82248086", "0.8219887", "0.82121885", "0.82098526", "0.8156499", "0.81306565", "0.8112381", "0.81108516", "0.8091005", "0.8044...
0.7430828
60
Returns a list of all the columns names
def NiwV(YKHO): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NKcn(YKHO) -> x1iM[str]:\n return YKHO.result_set.colnames()", "def Txl5(YKHO):\n return YKHO.implementation.col_names", "def Txl5(YKHO):\n if YKHO._data is not None:\n return [WKvO for WKvO in YKHO._data.header()]\n else:\n return []", "def iDDg(YKHO):\n return [WKvO for WKv...
[ "0.8531912", "0.8516403", "0.8505613", "0.8458376", "0.84132767", "0.8401358", "0.84011745", "0.8389407", "0.83776027", "0.83515626", "0.8341409", "0.83394843", "0.8323788", "0.832057", "0.8292581", "0.82914793", "0.82492936", "0.81860036", "0.8180813", "0.8169213", "0.814363...
0.7690223
50
Returns a class created from the provided dictionary.
def jG8h(lLIB: Dict[str, Any]) -> 'Node': try: return o7DN(name=lLIB['name'], X=lLIB['X'], Y=lLIB['Y'], orientation=lLIB['orientation'], roomID=lLIB['roomID']) except KeyError as e: raise UQfG('The provided dictionary is missing the key {}'.format(str(tTpl)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(vOsx, Csk6):\n Mkmy = vOsx(**Csk6)\n return Mkmy", "def jG8h(fK8P):\n _2sc = fK8P['class_name']\n GPtr = fK8P['config']\n Emd4 = _2vT(_2sc)\n return Emd4.from_config(GPtr)", "def jG8h(Emd4, fK8P):\n return Emd4(fK8P['name'])", "def CCiu(Emd4, tbx9: Dict):\n return Emd4.from_d...
[ "0.82902306", "0.8107985", "0.7490155", "0.7407589", "0.7404955", "0.7404955", "0.74027026", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", ...
0.0
-1
Returns a class created from the provided dictionary.
def jG8h(Rnx0: Dict[str, Any]) -> 'Edge': try: return ndC_(nodeID1=Rnx0['nodeID1'], nodeID2=Rnx0['nodeID2'], distance=Rnx0['distance'], color=Rnx0['color']) except KeyError as e: raise UQfG('The provided dictionary is missing the key {}'.format(str(tTpl)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(vOsx, Csk6):\n Mkmy = vOsx(**Csk6)\n return Mkmy", "def jG8h(fK8P):\n _2sc = fK8P['class_name']\n GPtr = fK8P['config']\n Emd4 = _2vT(_2sc)\n return Emd4.from_config(GPtr)", "def jG8h(Emd4, fK8P):\n return Emd4(fK8P['name'])", "def CCiu(Emd4, tbx9: Dict):\n return Emd4.from_d...
[ "0.82902306", "0.8107985", "0.7490155", "0.7407589", "0.7404955", "0.7404955", "0.74027026", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", "0.7389282", ...
0.0
-1
Broadcasts a message to all the clients.
def iJtT(tO9_): for mWFP in Onn9: Onn9[mWFP].send(bytes(tO9_, 'utf8'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iJtT(tO9_):\n for x0hE in D74A:\n x0hE.send(tO9_)", "def wBki(tO9_):\n iJtT(tO9_)\n for x0hE in YJXy.LOBBY:\n x0hE.send(tO9_)", "def iJtT(tO9_):\n for iG42 in Onn9:\n print('sock', iG42)\n Onn9[iG42].send(bytes(tO9_, 'utf8'))", "def iJtT(tO9_):\n for iG42 in Onn...
[ "0.82788026", "0.79221004", "0.78849614", "0.7863455", "0.7689409", "0.7600799", "0.75450814", "0.75362855", "0.75304943", "0.7479366", "0.74786234", "0.74779105", "0.7453509", "0.7449087", "0.74008024", "0.73870194", "0.7377045", "0.7366334", "0.73518723", "0.7322387", "0.73...
0.80906296
1
Returns the number of graphs in the batch.
def kAKg(YKHO) -> int: if YKHO.__num_graphs__ is not None: return YKHO.__num_graphs__ return YKHO.ptr.numel() + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kAKg(YKHO):\n return YKHO.batch[-1].item() + 1", "def kAKg(YKHO):\n return YKHO.batch[-1].item() + 1", "def kAKg(YKHO):\n return YKHO.batch[-1].item() + 1", "def kAKg(YKHO):\n return YKHO.batch[-1].item() + 1", "def kAKg(YKHO):\n return YKHO.batch[-1].item() + 1", "def kAKg(YKHO):\n ...
[ "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.87904835", "0.8758109",...
0.8116249
20
Get normalized bisecting vector of two vectors (two bond lengths). It is assumed that the two flanking atoms have the same central atom. |b|a + |a|b
def DRMy(YKHO, vvCZ, AhI2, R_EE): kYGz = YKHO.xx[:, vvCZ] - YKHO.xx[:, AhI2] ftz7 = YKHO.xx[:, R_EE] - YKHO.xx[:, AhI2] SD1j = (kYGz + ftz7) / pEuX.norm(kYGz + ftz7, axis=1).reshape(-1, 1) return SD1j
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sizS(jzdc, Fg_i):\n return (Fg_i[0] - jzdc[0], Fg_i[1] - jzdc[1], 0.0)", "def xrA5(jzdc, Fg_i):\n assert type(jzdc) is nQNQ, 'arg `a` MUST be a Vector2d.'\n assert type(Fg_i) is nQNQ, 'arg `b` MUST be a Vector2d.'\n Z9rn = Fg_i - jzdc\n return Z9rn / Z9rn.length", "def zG70(jzdc, Fg_i):\n ...
[ "0.73863757", "0.714714", "0.7007287", "0.6996181", "0.69719815", "0.69476813", "0.69294447", "0.6919499", "0.68640405", "0.6859643", "0.68278277", "0.6798622", "0.6788598", "0.6770923", "0.6720373", "0.6720373", "0.6716635", "0.66983646", "0.6691452", "0.66497993", "0.664275...
0.0
-1
Return node with highest value in Binary Tree.
def xrsK(J_Es): PtQX = None def khtY(wEf2): nonlocal maximum if PtQX is None or wEf2 > PtQX: PtQX = wEf2 else: pass J_Es.post_order(khtY) return PtQX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jqD_(YKHO):\n if YKHO.root:\n JCoA = YKHO.root.val\n VUF1 = [YKHO.root]\n while len(VUF1) > 0:\n DpUl = VUF1.pop(0)\n if DpUl.val > JCoA:\n JCoA = DpUl.val\n if DpUl.right:\n VUF1.append(DpUl.right)\n if DpUl.left...
[ "0.8225019", "0.7819673", "0.7751498", "0.7732631", "0.77168226", "0.76785684", "0.7669872", "0.7666726", "0.76636314", "0.7648188", "0.75654197", "0.75558275", "0.7548801", "0.7541979", "0.7531844", "0.74634343", "0.7453778", "0.7440269", "0.7342597", "0.7312198", "0.7308608...
0.7972512
1
Calculate Gaussian probability density of x, when x ~ N(mu,sigma)
def j3sx(WKvO, yGTL, o4sw): jHsn = len(o4sw) Mjks = jHsn * oyIN.log(2 * oyIN.pi) + oyIN.linalg.slogdet(o4sw)[1] XObx = WKvO - yGTL if H4yH.issparse(o4sw): M6pt = mmVH.spsolve(o4sw, XObx).T.dot(XObx) else: M6pt = oyIN.linalg.solve(o4sw, XObx).T.dot(XObx) return -0.5 * (Mjks + M6pt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / PZyS(2.0 * mM0K * WTkW ** 2)", "def IAWS(yGTL, WTkW, WKvO):\n return kLQb(-(yGTL - WKvO) ** 2 / WTkW ** 2 / 2.0) / PZyS(2.0 * mM0K * WTkW ** 2)", "def Qhzd(WKvO, JBMS, WTkW):\n return oyIN.exp(-0.5 * ((WKvO - JBMS) / WT...
[ "0.8137831", "0.8101252", "0.79879665", "0.7959683", "0.7954023", "0.79357016", "0.784852", "0.7737203", "0.77305484", "0.77174", "0.7697216", "0.76811945", "0.7663028", "0.7643874", "0.76080894", "0.76060367", "0.7566795", "0.7517771", "0.7495415", "0.7490294", "0.74784833",...
0.0
-1
Set up the ui and signal/slot connections.
def FIMM(YKHO, _AKB=None): super().__init__(_AKB) YKHO.chb_voltx = drFL(' X ') YKHO.chb_volty = drFL(' Y ') YKHO.chb_voltz = drFL(' Z ') YKHO.chb_ch101 = drFL('CH 101') YKHO.chb_ch102 = drFL('CH 102') YKHO.chb_ch103 = drFL('CH 103') YKHO.chb_ch105 = drFL('CH 105') YKHO.pbt_config = C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nRV7(YKHO):\n bo34.debug('start setting up interface signals')\n wDYU.QObject.connect(YKHO.buttonBox, wDYU.SIGNAL('rejected()'), YKHO.close)\n wDYU.QObject.connect(YKHO.buttonBox, wDYU.SIGNAL('accepted()'), YKHO.login)\n bo34.debug('finished setting up interface signals')", "def nRV7(YKHO):\n ...
[ "0.780542", "0.7424139", "0.73668396", "0.73435104", "0.72301555", "0.7159049", "0.7152297", "0.7139291", "0.7078385", "0.70718443", "0.70708257", "0.70402837", "0.70202917", "0.7004998", "0.6996399", "0.69756675", "0.69673413", "0.6964324", "0.6957262", "0.6953876", "0.69417...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 100 epochs
def e_63(K0do, qtWj): tspZ = qIxc.lr if qtWj < 120: tspZ = qIxc.lr elif qtWj >= 120 and qtWj < 160: tspZ = qIxc.lr * 0.1 for Lwm5 in K0do.param_groups: Lwm5['lr'] = qIxc.lr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(YKHO, K0do, qtWj):\n tspZ = YKHO.args.lr * 0.1 ** (qtWj // YKHO.args.every_decay)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do...
[ "0.77762276", "0.77353257", "0.77251756", "0.77234614", "0.77207", "0.7720442", "0.7717765", "0.7709611", "0.77029514", "0.7688221", "0.7666025", "0.7660718", "0.76599836", "0.765922", "0.7643271", "0.7641387", "0.76357526", "0.76318824", "0.76152897", "0.7602711", "0.7601082...
0.0
-1
adds all the number in a list together input > a list output > an integer representing the combined numbers of the list
def Eksp(qgK3): eaYY = 0 for YRbF in TuHc: eaYY += YRbF return eaYY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(aO51):\n mq4h = 0\n for mLGw in aO51:\n mq4h += mLGw\n return mq4h", "def H2v5(aO51):\n return aO51[0] + aO51[1]", "def rPcR(qQiX):\n YAq3 = 0\n for YRbF in qQiX:\n YAq3 += YRbF\n return YAq3", "def a8Ih(CaKm):\n if CaKm is None:\n return 0\n V1Vz = su...
[ "0.7927794", "0.78703797", "0.7847683", "0.7784055", "0.7757799", "0.7738521", "0.75342184", "0.7472443", "0.74051994", "0.730853", "0.723747", "0.7223625", "0.7179224", "0.71772414", "0.71155137", "0.7097196", "0.70398706", "0.70166504", "0.69786346", "0.6969081", "0.6957236...
0.7244339
10
Create a new Wallet with the default settings.
def WmM4(Emd4, pmON: str=pFhC, mWFP: Optional[str]='wallet.json') -> pE2v: return Emd4(path=pmON, name=mWFP, version=Emd4._wallet_version, scrypt=z3QB(), accounts=[], extra=None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dTuE(YKHO):\n _hkX = YKHO.call('wallet_create')\n return _hkX['wallet']", "def hGMD():\n return DqPV(50)", "def vZ5a(YKHO, pmON):\n vf2_ = 'm/84h/%dh/0h' % E5GA[YKHO.network]['bip32']\n lXb6 = YKHO.keystore.get_xpub(vf2_)\n QoB4 = 'Default&wpkh([%s%s]%s)' % (jry1(YKHO.keystore.fingerprint...
[ "0.76677406", "0.75089496", "0.7428251", "0.7305189", "0.72954863", "0.72567886", "0.71808934", "0.7035055", "0.6900573", "0.68540746", "0.6826505", "0.6757621", "0.6627815", "0.65898466", "0.6483748", "0.64734274", "0.6459551", "0.64207906", "0.6414689", "0.6407351", "0.6321...
0.60248804
32
Tests generating an employee from a dictionary object
def CjWQ(YKHO): nPrm = {'id': 1, 'first_name': 'Test', 'manager': 2, 'salary': 110} YvUd = TjLA.fromDictionary(nPrm) YKHO.assertEqual(YvUd.id, nPrm['id']) YKHO.assertEqual(YvUd.first_name, nPrm['first_name']) YKHO.assertEqual(YvUd.manager_id, nPrm['manager']) YKHO.assertEqual(YvUd.salary, nPrm['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frrF(YKHO):\n try:\n import lab4c as tBJS\n except:\n YKHO.fail('lab4c.py contains errors(HINT: run the function and fix errors')\n lMrb = 'problem with function(HINT:))'\n MZVA = {'Address': '70 The Pond Rd', 'City': 'Toronto', 'Country': 'Canada', 'Postal Code': 'M3J3M6', 'Province'...
[ "0.63053954", "0.6163519", "0.6159477", "0.61254036", "0.6105302", "0.6058197", "0.60296065", "0.60287595", "0.5992921", "0.59693354", "0.5959926", "0.59535146", "0.593806", "0.5926877", "0.59111786", "0.5910161", "0.5906358", "0.5893588", "0.5880827", "0.5878638", "0.5857923...
0.7697817
0
Get the weights required for an integration scheme of the desired order.
def wT46(YKHO, T4Wy): if T4Wy not in YKHO.YS_weights: raise ValueError('Order {:d} not supported for YS integration weights'.format(T4Wy)) else: return YKHO.YS_weights[T4Wy]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wT46(YKHO):\n if YKHO.integration_order == 1:\n _mSQ = oyIN.array([[0.33333333333333, 0.33333333333333, 1.0]])\n elif YKHO.integration_order == 2:\n _mSQ = oyIN.array([[0.16666666666667, 0.16666666666667, 0.33333333333333], [0.16666666666667, 0.66666666666667, 0.33333333333333], [0.66666666...
[ "0.79304606", "0.72715724", "0.72645116", "0.7216111", "0.7192197", "0.7172569", "0.7162678", "0.7159326", "0.7159326", "0.71556985", "0.71556985", "0.7135813", "0.7135813", "0.70366985", "0.70366985", "0.7035645", "0.7031552", "0.69422746", "0.69422746", "0.6897544", "0.6893...
0.7951266
0
compute the number of labels. Padding is not included
def K2mJ(YKHO): Crrw = set() for KCHu in YKHO.samples: Crrw |= set(KCHu[1]) YKHO.n_labels = len(Crrw) + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r8Bx(YKHO):\n return len(YKHO._middle) + 2", "def OR2u(YKHO):\n return len(YKHO.labels)", "def svPB(YKHO):\n return len(YKHO._labels)", "def U9dU(YKHO):\n return len(YKHO.labels)", "def svPB(YKHO):\n return YKHO.num_classes", "def jAfc():\n return 8", "def svPB(YKHO):\n return ...
[ "0.79714525", "0.78531104", "0.7821813", "0.77881217", "0.7722951", "0.76646924", "0.7659599", "0.7659599", "0.7592233", "0.74978346", "0.7470158", "0.7470158", "0.7470158", "0.7359533", "0.7324727", "0.729645", "0.7220301", "0.7204723", "0.7203777", "0.71942383", "0.7171671"...
0.69948757
34
Reads temperature from 'CONFIG_FILE_CURRENT'
def oLzz(GaLQ=False): try: HmHW("Using current configuration file: '" + A30I + "'") NwEx = open(A30I, 'r') except: raise ValueError('current configuration file not found at:\n ' + A30I + '\n\n' + 'To create this file use:\n' + ' blugon --setcurrent=' + str(jvan)) try: y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gsZH(YKHO):\n pass", "def ub_b():\n if mA9e:\n try:\n ycBG = oLzz(return_temp=True) + S9Lu\n except:\n ycBG = jvan + S9Lu\n else:\n ycBG = S9Lu\n if ycBG < n1co:\n HmHW('Temperature capped at minimum ' + str(n1co))\n ycBG = n1co\n elif y...
[ "0.7137772", "0.71192974", "0.7115676", "0.7093505", "0.69105095", "0.6874879", "0.6832649", "0.6806085", "0.6743403", "0.6686034", "0.666381", "0.66571116", "0.6657089", "0.6656166", "0.6629404", "0.66208506", "0.65897375", "0.6586513", "0.6574752", "0.6574724", "0.6574364",...
0.7974066
0