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
! Format a single float for file names.
def O8Io(WKvO): return f'{float(WKvO)}'.replace('.', '_')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A6co(mWFP: Union[str, int, float]) -> str:\n try:\n mWFP = str(float(mWFP).as_integer_ratio()[0])\n except ValueError:\n pass\n return mWFP", "def d2Ed(BWXx):\n return f'{BWXx:.1f}'", "def a_yK(Vb5F: float) -> str:\n return f'{Vb5F:.6f}'.replace('.', '_')", "def fGXu(d7pR):\n...
[ "0.7484133", "0.69683146", "0.68478316", "0.6800473", "0.6771247", "0.66788155", "0.6649389", "0.6621227", "0.6596902", "0.6584847", "0.655585", "0.6543471", "0.65425116", "0.65146005", "0.6484591", "0.64338714", "0.6433231", "0.64309746", "0.6429905", "0.64210004", "0.641824...
0.7255348
1
True if media scrub is currently active for this disk. Omitted if excluded by 'desiredattributes'.
def HdDF(YKHO): return YKHO._is_media_scrubbing
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZHJ(YKHO):\n return bool(YKHO.__partition.is_active())", "def ozkE(YKHO):\n return not (YKHO.settings.isBase or YKHO.settings.isFreeZone)", "def Mc10(YKHO):\n return bool(YKHO._assocdrive._I.Drive.property.MediaAvailable)", "def ksfB(YKHO) -> bool:\n return YKHO.status == EOaO.storage.STATUS...
[ "0.69530463", "0.666104", "0.6553057", "0.6541857", "0.64759773", "0.64725596", "0.6419942", "0.6386662", "0.6371051", "0.6332054", "0.62802935", "0.6269315", "0.6257864", "0.6257051", "0.62187153", "0.61790454", "0.6170862", "0.61696965", "0.6131025", "0.6127846", "0.6121356...
0.73167044
0
The checksum type that has been assigned to this disk. Omitted if information is unavailable, or if excluded by 'desiredattributes'.
def xtos(YKHO): return YKHO._checksum_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lD3m(YKHO) -> str:\n return qe4Y.get(YKHO, 'disk_type')", "def lD3m(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'disk_type')", "def lD3m(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'disk_type')", "def pvad(YKHO):\n return G7Ug(YKHO._hdf5, kZE7)", "def RKas(YKHO):\n if Y...
[ "0.6673235", "0.64632964", "0.64044374", "0.63440365", "0.62467486", "0.62106675", "0.61781955", "0.6110826", "0.60719556", "0.60704803", "0.60704803", "0.60571796", "0.6052139", "0.6052139", "0.60482264", "0.6035405", "0.60300004", "0.6017781", "0.6001541", "0.59929234", "0....
0.8426594
0
True if disk is in prezeroed state. Omitted if excluded by 'desiredattributes'.
def bJht(YKHO): return YKHO._is_zeroed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ObHT(YKHO) -> bool:\n return YKHO._precomputed", "def D4Hd(YKHO):\n return Hy7s.path.exists(YKHO.get_dir_path())", "def LUzT(YKHO):\n return False", "def GP5i(YKHO):\n return YKHO._is_zeroing", "def axAp(YKHO):\n f4BB, bGrB = YKHO.imgs[0]\n return Hy7s.path.exists(YKHO._get_precompute...
[ "0.6411891", "0.6253443", "0.61937654", "0.6122439", "0.6064175", "0.5964899", "0.58567417", "0.58567417", "0.58150655", "0.58073854", "0.57477385", "0.57257473", "0.57014024", "0.5640533", "0.5639245", "0.5639245", "0.56233484", "0.56186247", "0.56170034", "0.56170034", "0.5...
0.6393685
1
Name of plex with which this disk is associated. Omitted if disk is not associated with a plex, or if excluded by 'desiredattributes'.
def Bbkv(YKHO): return YKHO._plex_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SSkF(YKHO) -> str:\n return qe4Y.get(YKHO, 'disk_name')", "def YCRW(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'disk_label')", "def YCRW(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'disk_label')", "def YCRW(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'disk_label')", "def YCRW(YKHO) -> h8nf...
[ "0.680259", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6352208", "0.6297455", "0.62007535", "0.61388046", "0.6113274", ...
0.66885424
1
The name which should be used for this retention rule. Changing this forces a new Backup Policy Disk to be created.
def mWFP(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bKqw(YKHO) -> str:\n return qe4Y.get(YKHO, 'rule_name')", "def bKqw(YKHO) -> str:\n return qe4Y.get(YKHO, 'rule_name')", "def xhCg(YKHO):\n return YKHO._backup_name", "def pZ6N(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'traffic_marking_policy_name')", "def pZ6N(YKHO) -> h8nf[...
[ "0.6216496", "0.6216496", "0.6198122", "0.61736506", "0.6061842", "0.6061842", "0.60225534", "0.60025996", "0.5995953", "0.58333427", "0.58333427", "0.58333427", "0.57976454", "0.57976454", "0.57976454", "0.57976454", "0.57976454", "0.57976454", "0.57976454", "0.578028", "0.5...
0.0
-1
The name which should be used for this retention rule. Changing this forces a new Backup Policy PostgreSQL to be created.
def mWFP(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bKqw(YKHO) -> str:\n return qe4Y.get(YKHO, 'rule_name')", "def bKqw(YKHO) -> str:\n return qe4Y.get(YKHO, 'rule_name')", "def pZ6N(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'traffic_marking_policy_name')", "def CX3n(YKHO):\n return YKHO._policy_name", "def CX3n(YKHO):\n re...
[ "0.6342983", "0.6342983", "0.6282874", "0.6279532", "0.6279532", "0.6279532", "0.6249811", "0.6249811", "0.6234659", "0.6220571", "0.6220571", "0.6220571", "0.6220571", "0.6220571", "0.6220571", "0.6220571", "0.6150392", "0.61270326", "0.6076092", "0.6069735", "0.59946823", ...
0.0
-1
Specifies the type of Managed Service Identity that should be configured on this Backup Vault. The only possible value is `SystemAssigned`.
def type(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def type(YKHO) -> qe4Y.Input[uLKX[str, 'ManagedServiceIdentityType']]:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO) -> qe4Y.Input[uLKX[str, 'ManagedServiceIdentityType']]:\n return qe4Y.get(YKHO, 'type')", "def _E99(YKHO) -> h8nf[qe4Y.Input['ManagedServiceIdentityArgs']]:\n return qe4Y.get(YKHO, ...
[ "0.669424", "0.669424", "0.63983256", "0.63415647", "0.6326702", "0.6184309", "0.6160492", "0.61348134", "0.61025757", "0.603343", "0.5947524", "0.5788659", "0.57283986", "0.57194465", "0.57061917", "0.5700562", "0.5690199", "0.5690199", "0.5690199", "0.5690199", "0.567838", ...
0.0
-1
The Principal ID for the Service Principal associated with the Identity of this Backup Vault.
def UENi(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'principal_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UENi(YKHO) -> str:\n return qe4Y.get(YKHO, 'principal_id')", "def UENi(YKHO) -> str:\n return qe4Y.get(YKHO, 'principal_id')", "def UENi(YKHO) -> str:\n return qe4Y.get(YKHO, 'principal_id')", "def UENi(YKHO) -> str:\n return qe4Y.get(YKHO, 'principal_id')", "def UENi(YKHO) -> str:\n ret...
[ "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054", "0.78340054"...
0.6865563
38
The Tenant ID for the Service Principal associated with the Identity of this Backup Vault.
def mLXZ(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'tenant_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get...
[ "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8453714", "0.8123439", "0.8123439", "0.8123439", "...
0.77479255
45
Returns the autocorrelation of x.
def CWNS(WKvO): O8R_ = XTiz.fft.rfft(WKvO - WKvO.mean(), 2 * len(WKvO)) _P6x = XTiz.fft.irfft(O8R_ * O8R_.conjugate())[:len(WKvO)] return _P6x / _P6x[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fSQ5(YKHO, WKvO):\n WKvO, LVAh = (WKvO[1:, :, :], WKvO.shift(time=1)[1:, :, :])\n LVAh = zuVY.where(oyIN.isnan(WKvO), oyIN.nan, LVAh)\n WKvO = zuVY.where(oyIN.isnan(LVAh), oyIN.nan, WKvO)\n exwG = zuVY.where(oyIN.isnan(WKvO), 0, 1).sum(axis=0)\n eBzg = WKvO.mean(axis=0, skipna=True)\n qWaF = ...
[ "0.8721377", "0.871573", "0.8184344", "0.77969795", "0.77272373", "0.7567475", "0.7553903", "0.72638017", "0.71384317", "0.7136301", "0.7066249", "0.7023622", "0.69147867", "0.6724879", "0.6639166", "0.6587361", "0.65822715", "0.6549804", "0.6515909", "0.6494793", "0.64832157...
0.74627703
7
Generate a neatly formatted city name.
def J4Xp(j5sA, vxW9, CHNM=''): if CHNM: dBfS = f'{j5sA}, {vxW9} - population {CHNM}' else: dBfS = f'{j5sA}, {vxW9}' return dBfS.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1yb(j5sA, vxW9):\n eHMM = j5sA + ',' + ' ' + vxW9\n return eHMM.title()", "def pVBp(j5sA, vxW9):\n return f'\"{j5sA.title()}, {vxW9.title()}\"'", "def qO0W(j5sA, vxW9, CHNM=''):\n if CHNM:\n syah = f'{j5sA},{vxW9} - population {CHNM}'\n else:\n syah = f'{j5sA},{vxW9}'\n ret...
[ "0.7600071", "0.7576191", "0.7575759", "0.75174356", "0.7516557", "0.75048834", "0.74346465", "0.7412733", "0.74119335", "0.74114966", "0.7343257", "0.7319985", "0.72878546", "0.7234365", "0.7214738", "0.72058654", "0.72027725", "0.720104", "0.7194898", "0.71770686", "0.71684...
0.782011
0
Loads an image as an numpy array
def DZ0a(pmON, JK6U=None, SFa2=None): VXjJ = xDSY.imread(pmON) if SFa2: VXjJ = XC5k.resize(VXjJ, SFa2, interpolation=XC5k.INTER_CUBIC) if JK6U is not None: if JK6U == 'hsv': VXjJ = qfpW.rgb2hsv(VXjJ) elif JK6U == 'ycbcr': VXjJ = qfpW.rgb2ycbcr(VXjJ) el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))", "def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))", "def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))", "def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))", "def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))", "def IrN9(p...
[ "0.8317575", "0.81816846", "0.81816846", "0.81816846", "0.81816846", "0.81716686", "0.81477255", "0.80705625", "0.80359286", "0.8001304", "0.79314184", "0.79093164", "0.7894128", "0.7881354", "0.7854074", "0.7827074", "0.78218555", "0.78068024", "0.77985495", "0.7789485", "0....
0.0
-1
Apply the normalization configuration to a batch of inputs.
def hWT_(YKHO, WKvO): WKvO = WKvO.astype('float32') if YKHO.rescale: WKvO *= YKHO.rescale if YKHO.normalize: if YKHO.mean is not None: WKvO -= YKHO.mean if YKHO.std is not None: WKvO /= YKHO.std return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLFL(cgBF: np.ndarray) -> oyIN.ndarray:\n return cgBF.astype('float32') / 255.0", "def Q7gV(g4y1):\n JDtU = oyIN.asarray(g4y1)\n Y5YY.fit(JDtU)\n O4TH = Y5YY.transform(JDtU)\n return O4TH", "def lS53(CK9p):\n assert len(CK9p.get_shape()) == 4\n yphq = CK9p.get_shape().as_list()\n JB...
[ "0.7204614", "0.70656073", "0.7016842", "0.6953258", "0.69381666", "0.68937534", "0.68925774", "0.68231356", "0.6796336", "0.67814094", "0.6773064", "0.67701447", "0.67579454", "0.6735373", "0.66767234", "0.66000545", "0.6590041", "0.6578941", "0.65728426", "0.64985526", "0.6...
0.0
-1
Takes in two lists and returns a list of items in common.
def qk7K(zznG, Wd5v): DpAB = [] for y3py in zznG: if y3py in Wd5v: DpAB.append(y3py) return DpAB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JreZ(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))", "def JreZ(Kt9y, I_KI):\n return frozenset(Kt9y) & frozenset(I_KI)", "def tQSi(Kt9y, I_KI):\n yMBS = []\n for CZxs in Kt9y:\n for AhJh in I_KI:\n if CZxs == AhJh:\n yMBS.append(CZxs)\n return yMBS", "d...
[ "0.8634576", "0.85681725", "0.83693665", "0.83390605", "0.83148307", "0.8297487", "0.82641417", "0.82150924", "0.8197116", "0.811882", "0.8081427", "0.8050323", "0.80402774", "0.8032663", "0.80311143", "0.79674155", "0.7957617", "0.794996", "0.7937236", "0.7933335", "0.792750...
0.73459834
56
Sum a list of Series, requiring 1 nonnan value per row sum.
def dW7Y(WfCS: list) -> rLdf.Series: return rLdf.concat(WfCS, axis=1).sum(axis=1, min_count=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G6_w(hkxX: TypeValList) -> float:\n if len(hkxX) == 0:\n return oyIN.nan\n return float(oyIN.sum(hkxX))", "def a42b(hkxX: TypeValList) -> float:\n if len(hkxX) == 0 or oyIN.all(oyIN.isnan(hkxX)):\n return oyIN.nan\n return oyIN.nansum(hkxX)", "def vFY_(*hkxX):\n jvSB = 0\n f...
[ "0.731016", "0.66612285", "0.6593026", "0.6316115", "0.62771815", "0.6262541", "0.60886604", "0.60770416", "0.6075384", "0.60455555", "0.6045261", "0.60128915", "0.6008214", "0.598385", "0.59620285", "0.59279007", "0.59163463", "0.59090376", "0.58976686", "0.58896077", "0.588...
0.62828106
4
Delete Playlist by ID
def PTpj(YKHO, id): from esify import session if session.has_key('logged_in') != True: return ('Forbidden accesss', 403) if not gOq1(id, session['X-Auth-Token']): return ('Forbidden access', 403) if nTP3(id): return ('Playlist deleted', 200) else: return ('Bad Request...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTP3(YKHO, hbFX):\n YKHO.client.delete_playlist(hbFX)\n YKHO.refresh()", "def nTP3(zVa7, _30w):\n zVa7.playlists().delete(id=_30w).execute()", "def XMXE(zVa7, _30w):\n zVa7.playlistItems().delete(id=_30w).execute()", "def Hj15(YKHO, JqP_):\n YKHO.youtube.playlists().delete(id=JqP_).execute...
[ "0.8586795", "0.8438127", "0.83310264", "0.80852675", "0.7900372", "0.77304053", "0.7726639", "0.77221334", "0.77221334", "0.7609398", "0.76061344", "0.75023544", "0.74594444", "0.74594444", "0.74421734", "0.7321821", "0.726392", "0.72537065", "0.7219937", "0.7215061", "0.721...
0.8415098
2
Add song to playlist
def m8z6(YKHO, pUWl, Ns3P): from esify import session if session.has_key('logged_in') != True: return ('Forbidden accesss', 403) if QVyL(pUWl, Ns3P): return ('Added song to playlist seccessfully', 200) else: return ('Bad Request', 400)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(NvAR, i34x):\n pass", "def QVyL(aw0L):\n H4yH.user_playlist_add_tracks('legosail2424', DVw8, [aw0L])", "def pVNq(YKHO, GJPU):\n YKHO.song_list.append(GJPU)", "def duLI(YKHO):\n TnSX.objects.create(song=YKHO, date_add=qcWV.now(), score=1)", "def duLI(YKHO, Tuqy='add'):\n a5yU = YKHO....
[ "0.89994437", "0.82557076", "0.8149565", "0.8117002", "0.81059", "0.78792983", "0.78331405", "0.7818819", "0.77767944", "0.7759731", "0.7741215", "0.7709074", "0.7672974", "0.7664225", "0.7613074", "0.7606303", "0.7514196", "0.75075793", "0.7478852", "0.7460421", "0.7430248",...
0.7191013
33
sets up the vertigo for the given camera
def pefu(yDvq): global vertigo_attr_name global vertigo_global_attr_name sDqG = yDvq.attr(V9dq).inputs()[0] Rtnc = sDqG.tz.get() Dyub = yDvq.focalLength.get() A7Jr = TlDD.spaceLocator(n=yDvq.name() + 'vertigo_space_loc#') if not yDvq.hasAttr(h9Hk): TlDD.addAttr(yDvq, ln=h9Hk, at='mes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Psq0(yDvq):\n hksT = TlDD.spaceLocator(n=yDvq.name() + 'vertigo_loc#')\n global vertigo_attr_name\n KMkE = yDvq.getShape()\n if not yDvq.hasAttr(V9dq):\n TlDD.addAttr(yDvq, ln=V9dq, at='message')\n hksT.message >> yDvq.attr(V9dq)\n TlDD.parent(hksT, yDvq)\n hksT.t.set(0, 0, -10)\n ...
[ "0.7049841", "0.68096614", "0.68074554", "0.6597374", "0.6468935", "0.6355492", "0.63256234", "0.62545645", "0.62126553", "0.62028676", "0.61112356", "0.60927314", "0.60694325", "0.604285", "0.60357887", "0.60268384", "0.60155153", "0.599516", "0.59599024", "0.5935297", "0.59...
0.7635655
0
Remove HTML markup from the given string.
def BP2x(_R2e): TKMu = ZbWC.sub('(?is)<(script|style).*?>.*?(</\\1>)', '', _R2e.strip()) TKMu = ZbWC.sub('(?s)<!--(.*?)-->[\\n]?', '', TKMu) TKMu = ZbWC.sub('(?s)<.*?>', ' ', TKMu) TKMu = ZbWC.sub('&nbsp;', ' ', TKMu) TKMu = ZbWC.sub(' ', ' ', TKMu) TKMu = ZbWC.sub(' ', ' ', TKMu) return T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vDdR(YKHO, NPoT):\n d_Go = rKuS(NPoT).text\n return d_Go", "def vDdR(vIwR: str):\n return rKuS(vIwR, 'html.parser').get_text()", "def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)", "def BP2x(WEtT):\n oVDR = ZbWC.compile('<.*?>')\n AiG_ = ZbWC.sub(oVDR, '', W...
[ "0.82233554", "0.8159339", "0.8141882", "0.80886245", "0.8049945", "0.8044808", "0.7995155", "0.79624516", "0.7952071", "0.7887521", "0.7846523", "0.7846523", "0.78335726", "0.7832909", "0.77982086", "0.7789601", "0.7789601", "0.7789601", "0.7789601", "0.7789601", "0.7789601"...
0.67383504
90
Calculates the first 2N+1 Fourier series coeff. of a periodic function. Given a periodic, function f(t) with period T, this function returns the
def inyg(YKHO, eHNT, L2Qu, qnfV, ywwl, djLJ=True): iDsy = 2 * ywwl n2Q1, JRYC = oyIN.linspace(0, L2Qu, iDsy + 2, endpoint=False, retstep=True) SpII, JRYC = oyIN.linspace(0, qnfV, iDsy + 2, endpoint=False, retstep=True) Kt_s = oyIN.meshgrid(n2Q1, SpII) LVAh = oyIN.fft.rfft2(eHNT(Kt_s), norm='ortho') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HIkG(WKvO, LVAh, exwG, r8hN, VKoo, qq3N, Z9rn, K4sN, jHsn, pvd3, JRYC, eHNT):\n XP5J = XTiz.ndarray((K4sN, pvd3, jHsn))\n if eHNT == 1:\n for a1PO in range(0, K4sN):\n for VAJu in range(0, r8hN):\n for RMvl in range(0, exwG):\n aNZO = RMvl * XTiz.pi / V...
[ "0.70191324", "0.68839747", "0.67662066", "0.66839707", "0.66035885", "0.6579264", "0.6462911", "0.6367905", "0.63490075", "0.6296377", "0.62942994", "0.62942994", "0.6284357", "0.6252658", "0.62440526", "0.62331367", "0.6173446", "0.61593574", "0.6153421", "0.6135335", "0.61...
0.67830545
2
Sets the category_ids of this XmlNs0AddIssueRequest.
def V9Rs(YKHO, V9Rs): YKHO._category_ids = V9Rs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeZt(YKHO, LeZt: List[str]):\n YKHO._categories = LeZt", "def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt", "def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt", "def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt", "def heRM(YKHO, heRM):\n YKHO._category_types = heRM", "def BNq6(YKHO, LeZt=...
[ "0.5991823", "0.5952169", "0.5952169", "0.5952169", "0.57714456", "0.5721279", "0.56081074", "0.5532878", "0.5455415", "0.54332954", "0.542935", "0.52734286", "0.5258868", "0.51578933", "0.5064272", "0.50396717", "0.49839646", "0.49522066", "0.4925902", "0.4925902", "0.492590...
0.7278181
0
Sets the name of this XmlNs0AddIssueRequest.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO, mWFP):\n if mWFP is None:\n raise ValueError('Invalid value for `name`, must not be `None`')\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n if mWFP is None:\n raise ValueError('Invalid value for `name`, must not be `None`')\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n...
[ "0.6471432", "0.6471432", "0.6471432", "0.6471432", "0.6471432", "0.6471432", "0.6421199", "0.6387682", "0.63830227", "0.63830227", "0.63830227", "0.6361467", "0.63611573", "0.63611573", "0.63611573", "0.63611573", "0.63611573", "0.63611573", "0.63611573", "0.63611573", "0.63...
0.61826867
98
Sets the related_assets of this XmlNs0AddIssueRequest.
def qRar(YKHO, qRar): YKHO._related_assets = qRar
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ffmk(YKHO, Ffmk):\n YKHO._assets = Ffmk", "def Ffmk(YKHO, Ffmk):\n YKHO._assets = Ffmk", "def Ffmk(YKHO, Ffmk):\n YKHO._assets = Ffmk", "def Ffmk(YKHO, Ffmk):\n YKHO._assets = Ffmk", "def Ffmk(YKHO, Ffmk):\n YKHO._assets = Ffmk", "def Ffmk(YKHO, Ffmk: list) -> None:\n YKHO._assets =...
[ "0.5704249", "0.5704249", "0.5704249", "0.5704249", "0.5704249", "0.567878", "0.5647792", "0.55172205", "0.54064107", "0.53260154", "0.526781", "0.5260948", "0.5260948", "0.52395594", "0.5106046", "0.5040119", "0.5021488", "0.5001856", "0.4856129", "0.47620964", "0.46998832",...
0.7950752
0
Sets the responsible_community_id of this XmlNs0AddIssueRequest.
def zTud(YKHO, zTud): YKHO._responsible_community_id = zTud
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A4Hr(YKHO, A4Hr):\n YKHO._responsible_user_id = A4Hr", "def vv2a(YKHO, vv2a):\n YKHO._responsible_team_ids = vv2a", "def avx0(YKHO, avx0):\n YKHO._community_iso_code = avx0", "def mOjX(YKHO, mOjX):\n YKHO._assigned_security_user_id = mOjX", "def bEvZ(YKHO, bEvZ):\n YKHO._requester_id = b...
[ "0.6335408", "0.5401815", "0.5257801", "0.49309093", "0.48970824", "0.48459297", "0.48125845", "0.46700457", "0.4608098", "0.45977795", "0.45977795", "0.45670757", "0.45558557", "0.44891664", "0.44878036", "0.4482322", "0.43796012", "0.43774715", "0.43724698", "0.43503562", "...
0.8543139
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393829", "0.83557564", "0.8296152", "0.8133522", "0.81153053", "0.8100911", "0.8100133", "0.8098902", "0.8098902", "0.80937666", "0.80937666", "0.80937666", "0.80937666", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8067774", "0.80598664", "0.805856...
0.0
-1
Add a chain node to this chain
def H2v5(YKHO, UK4k, P5aS=None, YLE8=None, Ueki=None): if UK4k is None: YKHO.done = True else: if YKHO.done: raise RuntimeError('Attempt to add a node to a done DAGChain') if isinstance(UK4k, z45V): YKHO.chain.append(UK4k) elif isinstance(UK4k, A7kc): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LEsw(YKHO, eNCK):\n xGoe = YKHO.head\n for id in eNCK:\n zAcD = xGoe.children.get(id)\n if not zAcD:\n zAcD = o7DN()\n xGoe.add_child(id, zAcD)\n xGoe = zAcD\n xGoe.is_complete = True", "def zJ4N(YKHO, mWFP=None, **c_sp):\n if mWFP == None:\n mWFP...
[ "0.78758156", "0.7194719", "0.6937223", "0.6807264", "0.6696389", "0.6584016", "0.6543942", "0.6523094", "0.6523094", "0.6514893", "0.6514893", "0.64602983", "0.64492995", "0.6442269", "0.6383111", "0.63190526", "0.6313128", "0.6305583", "0.62970704", "0.62794757", "0.6273742...
0.71755606
2
Returns the size of this stack.
def zNig(YKHO) -> int: return len(YKHO._stack)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n return YKHO.stack['size']", "def zNig(YKHO):\n return YKHO.stack.size", "def zNig(YKHO) -> int:\n return len(YKHO.stack)", "def R8e4(YKHO):\n return YKHO.__stack.getSize()", "def zNig(YKHO):\n return len(YKHO.stack)", "def zNig(YKHO):\n return len(YKHO.stack)", "def ...
[ "0.90745527", "0.8884835", "0.87780815", "0.87482953", "0.8633227", "0.8633227", "0.8633227", "0.8631403", "0.85826147", "0.8555921", "0.8499255", "0.81804377", "0.7990478", "0.7946765", "0.7923266", "0.7872753", "0.76414657", "0.76367605", "0.7622753", "0.7621018", "0.762101...
0.88361496
2
Returns true if this stack is empty, false otherwise.
def FBfn(YKHO) -> bool: return YKHO.size == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO) -> bool:\n return not bool(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(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0"...
[ "0.91954136", "0.9191002", "0.9191002", "0.9191002", "0.9139229", "0.9139229", "0.91157794", "0.9092921", "0.9084388", "0.9084388", "0.9080827", "0.90748066", "0.9064209", "0.9049014", "0.9039835", "0.9039408", "0.90142405", "0.9009224", "0.9008532", "0.9008532", "0.90074587"...
0.8421534
52
Maps targets onto target mechanisms (as needed by learning) Returns A dict mapping TargetMechanisms > target values
def qSUl(YKHO, Ziit: dict): U5bT = {} for Q6kx, hkxX in Ziit.items(): if GKRD.TARGET in YKHO.get_roles_by_node(Q6kx) and GKRD.LEARNING in YKHO.get_roles_by_node(Q6kx): Rtm4 = [WKvO.receiver.owner for WKvO in Q6kx.efferents] I1bG = [WKvO for WKvO in Rtm4 if isinstance(WKvO, ftxz) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RH8N(YKHO):\n if YKHO.debugging_messages:\n print('Setting the update targets...')\n YKHO.content_feature_maps, bGrB = YKHO.get_activation(YKHO.content_image)\n bGrB, YKHO.style_feature_maps = YKHO.get_activation(YKHO.style_image)\n YKHO.style_target_grams = {gEmA: YKHO.get_gram_matrix(YKHO....
[ "0.65990657", "0.64492846", "0.63255364", "0.62021387", "0.6167144", "0.60999304", "0.6088021", "0.60750496", "0.60518914", "0.60241663", "0.6016512", "0.5962075", "0.5941488", "0.58766603", "0.586339", "0.5842251", "0.58265376", "0.58130926", "0.58092856", "0.575986", "0.571...
0.5545417
36
Maps targets onto target mechanisms (as needed by learning) Returns A dict mapping TargetMechanisms > target values
def Rmpy(YKHO, Ziit: dict): U5bT = {} for Q6kx, hkxX in Ziit.items(): if GKRD.INPUT in YKHO.get_roles_by_node(Q6kx) and GKRD.TARGET not in YKHO.get_roles_by_node(Q6kx): U5bT[Q6kx] = hkxX return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RH8N(YKHO):\n if YKHO.debugging_messages:\n print('Setting the update targets...')\n YKHO.content_feature_maps, bGrB = YKHO.get_activation(YKHO.content_image)\n bGrB, YKHO.style_feature_maps = YKHO.get_activation(YKHO.style_image)\n YKHO.style_target_grams = {gEmA: YKHO.get_gram_matrix(YKHO....
[ "0.6599942", "0.6450683", "0.6326651", "0.6203286", "0.61673874", "0.6100916", "0.60888165", "0.60759354", "0.6051466", "0.6024382", "0.6017568", "0.5962341", "0.5941556", "0.5877837", "0.5864348", "0.5843035", "0.58266467", "0.58135986", "0.58090115", "0.5760438", "0.5713008...
0.0
-1
convert dict L.CU.FORM.JUR to company_legal_form
def RHWo(wEf2): Xvek = wEf2 tTYS = ojHl.company_legal_form_switcher return a8Pe(wEf2, tTYS, Xvek)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LTdN(YKHO):\n R02v = ['Publiekrechtelijke rechtspersoon', 'Eenmanszaak', 'Vennootschap onder firma (VoF)', 'Maatschap', 'Commanditaire vennootschap (CV)', 'Besloten vennootschap (BV) met Raad van Toezicht / Raad van Commissarissen', 'Besloten vennootschap (BV) zonder Raad van Toezicht / Raad van Commissaris...
[ "0.53983134", "0.5394741", "0.53568983", "0.50726104", "0.50198686", "0.49862972", "0.49797943", "0.49740037", "0.49740037", "0.49740037", "0.4958258", "0.4936404", "0.49243522", "0.49097848", "0.49012062", "0.48764375", "0.48725584", "0.48672235", "0.48179942", "0.48131716", ...
0.7091334
0
Compute the alignment weights based on the previous state.
def h6I7(YKHO, LYEB, vY7c, ZHfW=None): UVB2 = Kt_s.dot(LYEB, YKHO.Wa) YnC3 = vY7c if YnC3.ndim == 2: hNWY = UVB2[:, None, :] + YnC3[None, :, :] else: hNWY = UVB2[:, None, :] + YnC3 u_ln = Kt_s.activate(hNWY, 'tanh') DAqN = Kt_s.dot(u_ln, YKHO.Va) if ZHfW: ZHfW = (1 - ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upAO(YKHO, QTBn):\n Mkmy = 0\n for YRbF in YKHO.predecessors[QTBn]:\n if YRbF != QTBn:\n Mkmy += YKHO.delta[YRbF][QTBn].alphabeticLength() * (len(YKHO.delta[QTBn]) - 1)\n for YRbF in YKHO.delta[QTBn]:\n if YRbF != QTBn:\n Mkmy += YKHO.delta[QTBn][YRbF].alphabeticLen...
[ "0.6904392", "0.6778667", "0.6670709", "0.6663204", "0.66353935", "0.65305406", "0.64393497", "0.6430543", "0.6419305", "0.63669163", "0.63061905", "0.62703556", "0.6219058", "0.6211302", "0.61697644", "0.6161914", "0.616072", "0.61434555", "0.612544", "0.61235785", "0.610694...
0.7077539
0
Plot Accuracy and Loss curves given the model_history
def pTX5(C3ST): LZpg, jDK_ = QrM1.subplots(1, 2, figsize=(15, 5)) jDK_[0].plot(range(1, len(C3ST.history['accuracy']) + 1), C3ST.history['accuracy']) jDK_[0].plot(range(1, len(C3ST.history['val_accuracy']) + 1), C3ST.history['val_accuracy']) jDK_[0].set_title('Model Accuracy') jDK_[0].set_ylabel('Ac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qSo0(FLXQ):\n QrM1.plot(FLXQ.history['accuracy'])\n QrM1.plot(FLXQ.history['val_accuracy'])\n QrM1.title('Model Accuracy')\n QrM1.ylabel('Accuracy')\n QrM1.xlabel('Epoch')\n QrM1.legend(['Train', 'Validation'], loc='upper left')\n QrM1.show()", "def kj9G(C3ST):\n AC8I = C3ST.history.h...
[ "0.85670704", "0.84381545", "0.8309377", "0.8304358", "0.8274392", "0.8266392", "0.825881", "0.8238952", "0.8168802", "0.81129473", "0.8089955", "0.80479914", "0.8031789", "0.80198187", "0.8013178", "0.8012152", "0.79670674", "0.795267", "0.7889701", "0.7877599", "0.78685385"...
0.7872947
20
Read sentences from a file without order or doc structure.
def yx6t(qaEx, b0j5): tER_ = [] ZylS.logging.info('===== Processing %s =====', qaEx) for zFiD in ZylS.gfile.Open(qaEx): if len(tER_) % 100000 == 0: ZylS.logging.info('Loading line %d', len(tER_)) KRo7 = b0j5.convert_text_to_ids(zFiD.strip()) if vPBo.add_double_eos: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j_03(nUeQ):\n eHNT = open(nUeQ).read().strip()\n Rhv4 = eHNT.split('\\n\\n')\n return Rhv4", "def CXjX(gIsw):\n Rhv4 = []\n with open(gIsw) as nUeQ:\n hGN5 = nUeQ.readlines()\n yAmx = []\n for zFiD in hGN5:\n if zFiD == '\\n':\n Rhv4.append(yAmx)\...
[ "0.78741986", "0.7743743", "0.7739285", "0.76952225", "0.76227343", "0.7617582", "0.7547828", "0.73544836", "0.73436046", "0.72774994", "0.72774994", "0.7251888", "0.7241361", "0.7121943", "0.71117413", "0.71094847", "0.71032727", "0.7096097", "0.7092998", "0.7079717", "0.704...
0.5992541
84
Make relative paths absolute to the project directory.
def Yb80(t_yv, oEge=sEAN['cwd']): return Hy7s.path.abspath(Hy7s.path.join(oEge, t_yv))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J_1q(oyH5):\n return Hy7s.path.join(lkbE, oyH5)", "def IgWm(YKHO, t_yv):\n return Hy7s.path.join(YKHO._root, t_yv)", "def Ti7t(YKHO):\n return [Hy7s.path.join(YKHO.rel_path, JZXy) for JZXy in YKHO.source_paths]", "def BWoA(pmON):\n import os\n KnVF = os.path.dirname(os.path.abspath(xAKo))\...
[ "0.68422115", "0.67360836", "0.66558015", "0.65737927", "0.6547935", "0.65316254", "0.6494131", "0.64323676", "0.64192337", "0.6404234", "0.6402912", "0.64016783", "0.6309247", "0.6271203", "0.6263353", "0.6260217", "0.6259862", "0.6259862", "0.6247172", "0.6234323", "0.62154...
0.63500893
12
This function converts a power given in dBm to a power given in W.
def QjoE(iBX1): return 0.001 * 10 ** (iBX1 / 10.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tJ3a(EDjx):\n return oyIN.power(10, (EDjx - 30) / 10)", "def JtJ0(sYsB):\n return 10 ** (sYsB / 10)", "def kLxV(iBX1):\n return 0.001 * 10 ** (iBX1 / 10.0)", "def TenN(jeGy):\n return 10 * oyIN.log10(jeGy)", "def Exmz(YKHO):\n if YKHO.units == 'W':\n return YKHO\n Sc8e = YKHO\n...
[ "0.83927107", "0.75242597", "0.7399131", "0.7049358", "0.6869048", "0.6626949", "0.6581943", "0.63359654", "0.6274766", "0.6269944", "0.62464577", "0.6222596", "0.62148875", "0.62077355", "0.61748105", "0.61571467", "0.6120619", "0.6087486", "0.60698986", "0.602528", "0.60247...
0.72219425
3
Return the unique identifier of the DeltaTable.
def id(YKHO) -> int: return YKHO._metadata.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PYJP():\n return f'U{ITS7.time_ns()}'", "def iK1K(YKHO):\n return YKHO._properties.get('id')", "def iK1K(YKHO):\n return YKHO._properties.get('id')", "def GpOL(YKHO):\n return YKHO._get_attribute('tableId')", "def iK1K(YKHO):\n if YKHO.sharded:\n return f'{YKHO.table_name}{YKHO.sn...
[ "0.7482799", "0.7405977", "0.7405977", "0.7333474", "0.72744024", "0.7141109", "0.6992365", "0.68898094", "0.68140197", "0.66207397", "0.66207397", "0.66119725", "0.65328884", "0.6531058", "0.6416022", "0.6416022", "0.64033496", "0.6402197", "0.6402197", "0.63880455", "0.6341...
0.0
-1
Return an array containing the names of the partitioned columns of the DeltaTable.
def lQ1g(YKHO) -> x1iM[str]: return YKHO._metadata.partition_columns
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Txl5(YKHO):\n return YKHO.column_df().fieldName.tolist()", "def sjXb(YKHO):\n sjXb = []\n for Z9rn in YKHO.table.columnDefs:\n sjXb.append(Z9rn.name)\n return sjXb", "def KaGe(YKHO) -> list:\n return list(YKHO.df.columns)", "def cGYk(EF9J):\n return [str(fvDH).split('.')[-1] for ...
[ "0.6840031", "0.66230774", "0.65767884", "0.65670395", "0.65491927", "0.65194565", "0.6411028", "0.6404057", "0.64013416", "0.6390395", "0.6361337", "0.6357291", "0.6342916", "0.6341914", "0.6337424", "0.63072056", "0.6299587", "0.62613225", "0.62519336", "0.6235492", "0.6235...
0.78498024
0
Return The time when this metadata action is created, in milliseconds since the Unix epoch of the DeltaTable.
def wqpv(YKHO) -> int: return YKHO._metadata.created_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x7vo(YKHO):\n return YKHO._create_time", "def x7vo(YKHO):\n return YKHO._create_time", "def x7vo(YKHO):\n return YKHO._create_time", "def x7vo(YKHO):\n return YKHO._create_time", "def x7vo(YKHO):\n return YKHO._create_time", "def QT9s(YKHO) -> str:\n return qe4Y.get(YKHO, 'time_crea...
[ "0.76364195", "0.76364195", "0.76364195", "0.76364195", "0.76364195", "0.7481324", "0.7468364", "0.7468364", "0.74380594", "0.7437039", "0.7434497", "0.7434497", "0.7434497", "0.7434497", "0.7434497", "0.7434497", "0.7434497", "0.74274266", "0.74274266", "0.74229354", "0.7419...
0.776264
0
Checks whether the JWT claims should be accepted. Specifically, this method checks the "exp" claim and the "nbf" claim (if present), and raises UnauthenticatedException if 1) the current time is before the time identified by the "nbf" claim, or 2) the current time is equal to or after the time identified by the "exp" c...
def Vc8B(zJTZ): vHj7 = ITS7.time() N850 = zJTZ['exp'] if not isinstance(N850, (int, Swre)): raise kdFR.UnauthenticatedException('Malformed claim: "exp" must be an integer') if vHj7 >= N850: raise kdFR.UnauthenticatedException('The auth token has already expired') if 'nbf' not in zJTZ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qutR(YKHO):\n if 'jti' not in YKHO.payload:\n raise cKZN('Token has no jti claim')\n if 'jti' not in YKHO.payload:\n raise cKZN('Token has no exp claim')\n OAkQ = qcWV.fromtimestamp(YKHO.payload['exp'])\n if OAkQ <= qcWV.now():\n raise cKZN('Token has expired')", "def wyv3(YK...
[ "0.727223", "0.7123934", "0.7117863", "0.6801217", "0.67335993", "0.66576415", "0.6326901", "0.62783736", "0.61752564", "0.61105126", "0.6049651", "0.592215", "0.59079367", "0.58993757", "0.5824905", "0.58165824", "0.58048815", "0.5777435", "0.5754055", "0.5732985", "0.570012...
0.84385616
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, nipb): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Convert an 8bit string to a list of bits.
def IrKf(KCHu): UOVU = [] for Z9rn in KCHu: WKvO = ord(Z9rn) for YRbF in range(8): UOVU.append(WKvO % 2) WKvO = WKvO >> 1 return UOVU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OKxX(KCHu):\n Aofo = []\n for Z9rn in KCHu:\n UOVU = bin(ord(Z9rn))[2:]\n UOVU = '00000000'[len(UOVU):] + UOVU\n Aofo.extend([int(Fg_i) for Fg_i in UOVU])\n return Aofo", "def Jq2a(KCHu):\n return R3u8(KCHu)", "def Xfwi(YKHO, nrbE):\n BB68 = ''.join([str(bin(ord(KCHu))[2...
[ "0.7594677", "0.75025487", "0.7501252", "0.75005215", "0.74991995", "0.7375036", "0.736383", "0.73198295", "0.7209685", "0.71751803", "0.7021993", "0.6924466", "0.6922273", "0.6889226", "0.6887408", "0.68641686", "0.68295646", "0.6826418", "0.6754614", "0.67295754", "0.669066...
0.7702929
0
Creates and saves a User with the given email and password.
def lYUQ(YKHO, D3lj, jTXt=None): if not D3lj: raise ValueError('Users must have an email address') CBIr = YKHO.model(email=YKHO.normalize_email(D3lj)) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ...
[ "0.87186766", "0.84698254", "0.84610754", "0.845156", "0.84259224", "0.84210205", "0.8420248", "0.8415423", "0.84091556", "0.84079087", "0.84079087", "0.84000343", "0.840001", "0.8389738", "0.8388686", "0.8388686", "0.8388686", "0.8388686", "0.8388686", "0.8388686", "0.838868...
0.0
-1
Creates and saves a staff user with the given email and password.
def CECe(YKHO, D3lj, jTXt): CBIr = YKHO.create_user(D3lj, password=jTXt) CBIr.is_staff = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CECe(YKHO, NtEF='test_staffuser', D3lj='admin@example.com'):\n NNCJ = mv1M.objects.create_user(username=NtEF)\n NNCJ.is_staff = True\n NNCJ.set_password = 'pass'\n NNCJ.email = D3lj\n NNCJ.save()\n return NNCJ", "def CECe(YKHO, D3lj, c9ua, zp3f, jTXt):\n CBIr = YKHO.create_user(D3lj, c9u...
[ "0.8490624", "0.8467911", "0.8414016", "0.84046584", "0.83996266", "0.83691", "0.83522683", "0.83522683", "0.83522683", "0.8351542", "0.8318316", "0.8309993", "0.8273697", "0.82046163", "0.8107958", "0.8023492", "0.79991686", "0.7964073", "0.783607", "0.78292745", "0.78292745...
0.8115335
14
Creates and saves a superuser with the given email and password.
def Zp54(YKHO, D3lj, jTXt): CBIr = YKHO.create_user(D3lj, password=jTXt) CBIr.is_staff = True CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)", "def Zp54(YKHO, D3lj, jTXt, **wdCM):\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(D3lj, password=jTXt, **wdCM)\n CBIr.is_superuser = True\n CBIr.is_...
[ "0.8555722", "0.83575016", "0.83508795", "0.830083", "0.8291109", "0.82742244", "0.82727426", "0.8251127", "0.82483673", "0.82372046", "0.82254887", "0.8222463", "0.8222279", "0.8215102", "0.82104456", "0.82021487", "0.8192061", "0.8187187", "0.81800467", "0.81787187", "0.817...
0.0
-1
Work posts with a pub_date in the past should be displayed on the page.
def I4dV(YKHO): E92T(title='Past post', post_type='work', days=-10) geh0 = YKHO.client.get(gxEw('pages:work')) YKHO.assertQuerysetEqual(geh0.context['work_list'], ['<ExpPost: Past post>'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oXgd(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=-30)\n T97t(title='Past', text='Past post', published_date=ITS7)\n geh0 = YKHO.client.get(gxEw('blog:post_list'))\n YKHO.assertContains(geh0, 'No Posts are available.', status_code=200)\n YKHO.assertQuerysetEqual(geh0.context['post_list'], []...
[ "0.70331657", "0.6722394", "0.6676255", "0.65980625", "0.6553438", "0.6527082", "0.6502129", "0.6498748", "0.6464751", "0.6464751", "0.6464751", "0.6464751", "0.6456559", "0.64452016", "0.643622", "0.63894016", "0.6320201", "0.63007164", "0.62914175", "0.62519497", "0.6245535...
0.67796576
1
Work posts with a pub_date in the future should not be displayed.
def di2o(YKHO): E92T(title='Future post', post_type='work', days=10) geh0 = YKHO.client.get(gxEw('pages:work')) YKHO.assertQuerysetEqual(geh0.context['work_list'], []) YKHO.assertContains(geh0, 'No posts were found.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zanr(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=2)\n m5xt = Y4Gy(pub_date=ITS7, end_date=ITS7 + qcWV.timedelta(days=30))\n YKHO.assertIs(m5xt.is_published(), False)", "def U6Rv(YKHO):\n vS5o = pMQf.create_question('Past question', 30)\n Hz0M = vS5o.is_recent_publication()\n YKHO.asser...
[ "0.67651767", "0.6686687", "0.6626878", "0.65991026", "0.65970683", "0.65229464", "0.6514626", "0.6507647", "0.6505117", "0.6498558", "0.6490053", "0.6463847", "0.6439813", "0.64365935", "0.64310145", "0.6370719", "0.63590604", "0.6348821", "0.633732", "0.6320929", "0.6319582...
0.60241055
74
Work posts with a pub_date in the future should not be displayed but posts with a pub_date in the past should be displayed.
def Rs3J(YKHO): E92T(title='Future post', post_type='work', days=10) E92T(title='Past post', post_type='work', days=-10) geh0 = YKHO.client.get(gxEw('pages:work')) YKHO.assertQuerysetEqual(geh0.context['work_list'], ['<ExpPost: Past post>'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U6Rv(YKHO):\n vS5o = pMQf.create_question('Past question', 30)\n Hz0M = vS5o.is_recent_publication()\n YKHO.assertFalse(Hz0M, 'Expected question from future to not be recent')", "def oXgd(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=-30)\n T97t(title='Past', text='Past post', published_dat...
[ "0.6742347", "0.66486233", "0.6558001", "0.64632463", "0.6416318", "0.6392812", "0.6374699", "0.63698936", "0.63691306", "0.63544315", "0.63520634", "0.6350249", "0.6349079", "0.6347626", "0.6345598", "0.63429725", "0.6324706", "0.63155156", "0.6298152", "0.62972635", "0.6292...
0.66093117
2
More than one work post can be displayed at a time as long as the pub_date is in the past.
def YShB(YKHO): E92T(title='Past post 1', post_type='work', days=-10) E92T(title='Past post 2', post_type='work', days=-20) geh0 = YKHO.client.get(gxEw('pages:work')) YKHO.assertQuerysetEqual(geh0.context['work_list'], ['<ExpPost: Past post 2>', '<ExpPost: Past post 1>'], ordered=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I4dV(YKHO):\n E92T(title='Past post', post_type='work', days=-10)\n geh0 = YKHO.client.get(gxEw('pages:work'))\n YKHO.assertQuerysetEqual(geh0.context['work_list'], ['<ExpPost: Past post>'])", "def xBxz(YKHO):\n if YKHO.publication_date and YKHO.end_date:\n return YKHO.publication_date < w...
[ "0.635088", "0.6295722", "0.6282847", "0.626398", "0.62463295", "0.6241748", "0.6237433", "0.61947054", "0.61929995", "0.6184907", "0.61841875", "0.6181027", "0.61592704", "0.6115718", "0.61049086", "0.6089577", "0.6073768", "0.6072016", "0.6053733", "0.6053733", "0.6053733",...
0.6668733
0
If no project post exists, an appropriate message should be displayed.
def GNdy(YKHO): geh0 = YKHO.client.get(gxEw('pages:projects')) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertContains(geh0, 'No projects were found.') YKHO.assertQuerysetEqual(geh0.context['project_list'], [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fbOf(YKHO):\n E92T(title='Future post', post_type='project', days=10)\n geh0 = YKHO.client.get(gxEw('pages:projects'))\n YKHO.assertQuerysetEqual(geh0.context['project_list'], [])\n YKHO.assertContains(geh0, 'No projects were found.')", "def ED7G(YKHO, qIxc):\n if YKHO.get_project_by_id(qIxc['...
[ "0.6644228", "0.6292865", "0.6146175", "0.5974517", "0.5950213", "0.59468347", "0.58547693", "0.5854643", "0.578126", "0.57760316", "0.57461447", "0.5736034", "0.56844723", "0.5679039", "0.5660924", "0.5628698", "0.562305", "0.56208795", "0.5569618", "0.55676484", "0.5547505"...
0.6874378
0
Project posts with a pub_date in the past should be displayed on the page.
def rWcQ(YKHO): E92T(title='Past post', post_type='project', days=-10) geh0 = YKHO.client.get(gxEw('pages:projects')) YKHO.assertQuerysetEqual(geh0.context['project_list'], ['<ExpPost: Past post>'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oXgd(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=-30)\n T97t(title='Past', text='Past post', published_date=ITS7)\n geh0 = YKHO.client.get(gxEw('blog:post_list'))\n YKHO.assertContains(geh0, 'No Posts are available.', status_code=200)\n YKHO.assertQuerysetEqual(geh0.context['post_list'], []...
[ "0.7157527", "0.68152505", "0.67322767", "0.6403256", "0.6389486", "0.6380813", "0.628489", "0.62789017", "0.62479174", "0.623375", "0.62116635", "0.61656195", "0.6157207", "0.61536163", "0.6141072", "0.6139334", "0.6112103", "0.61012775", "0.61012775", "0.61012775", "0.61012...
0.7164963
0
Project posts with a pub_date in the future should not be displayed.
def fbOf(YKHO): E92T(title='Future post', post_type='project', days=10) geh0 = YKHO.client.get(gxEw('pages:projects')) YKHO.assertQuerysetEqual(geh0.context['project_list'], []) YKHO.assertContains(geh0, 'No projects were found.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jBY6(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=30)\n ujBc = oPx1(pub_date=ITS7)\n YKHO.assertIs(ujBc.was_published_recently(), False)", "def oXgd(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=-30)\n T97t(title='Past', text='Past post', published_date=ITS7)\n geh0 = YKHO.client.get...
[ "0.66580796", "0.6609919", "0.6468382", "0.6443797", "0.63817835", "0.63191396", "0.6292306", "0.62903154", "0.6271955", "0.61905605", "0.6175176", "0.6171435", "0.61593604", "0.6159029", "0.61587596", "0.6129459", "0.6126017", "0.60653013", "0.60373527", "0.60280657", "0.602...
0.62497944
9
Project posts with a pub_date in the future should not be displayed but posts with a pub_date in the past should be displayed.
def _6F4(YKHO): E92T(title='Future post', post_type='project', days=10) E92T(title='Past post', post_type='project', days=-10) geh0 = YKHO.client.get(gxEw('pages:projects')) YKHO.assertQuerysetEqual(geh0.context['project_list'], ['<ExpPost: Past post>'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rWcQ(YKHO):\n E92T(title='Past post', post_type='project', days=-10)\n geh0 = YKHO.client.get(gxEw('pages:projects'))\n YKHO.assertQuerysetEqual(geh0.context['project_list'], ['<ExpPost: Past post>'])", "def josv(YKHO):\n E92T(title='Past post 1', post_type='project', days=-10)\n E92T(title='P...
[ "0.68581164", "0.68018395", "0.67761135", "0.65469676", "0.6489544", "0.6411119", "0.6408152", "0.6350221", "0.6260304", "0.62339413", "0.61954975", "0.61604583", "0.6130457", "0.610189", "0.6091848", "0.60799885", "0.60783046", "0.6076132", "0.6021789", "0.5991305", "0.59909...
0.7009394
0
More than one project post can be displayed at a time as long as the pub_date is in the past.
def josv(YKHO): E92T(title='Past post 1', post_type='project', days=-10) E92T(title='Past post 2', post_type='project', days=-20) geh0 = YKHO.client.get(gxEw('pages:projects')) YKHO.assertQuerysetEqual(geh0.context['project_list'], ['<ExpPost: Past post 2>', '<ExpPost: Past post 1>'], ordered=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rWcQ(YKHO):\n E92T(title='Past post', post_type='project', days=-10)\n geh0 = YKHO.client.get(gxEw('pages:projects'))\n YKHO.assertQuerysetEqual(geh0.context['project_list'], ['<ExpPost: Past post>'])", "def oXgd(YKHO):\n ITS7 = rIAI.now() + qcWV.timedelta(days=-30)\n T97t(title='Past', text='...
[ "0.687766", "0.6660407", "0.6640374", "0.6541085", "0.65184504", "0.6315232", "0.63136476", "0.63021845", "0.6280267", "0.62668055", "0.6240417", "0.6215676", "0.6181225", "0.6163722", "0.6116983", "0.6116983", "0.6116983", "0.6116983", "0.6105718", "0.6075646", "0.60747135",...
0.7038323
0
Posts with no images associated with them should return an empty Queryset.
def J1Gz(YKHO): E92T(title='Test post', post_type='work') geh0 = YKHO.client.get(gxEw('pages:work')) YKHO.assertQuerysetEqual(geh0.context['work_list'][0].image_set.all(), [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mOTF(YKHO):\n geh0 = YKHO.client.get(gxEw('photogallery:index'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'No posts were found.')\n YKHO.assertQuerysetEqual(geh0.context['pictures_list'], [])", "def mOTF(YKHO):\n geh0 = YKHO.client.get(gxEw('blog:index'))\n YKHO...
[ "0.7028777", "0.64802265", "0.6354397", "0.63241774", "0.6296283", "0.61817807", "0.61292994", "0.6081319", "0.58741015", "0.5855561", "0.58229357", "0.58066595", "0.57656825", "0.5763654", "0.5725543", "0.57022405", "0.56932956", "0.56887203", "0.568576", "0.5655184", "0.562...
0.7518649
0
Format the given prefix length in string format to integer
def LLB8(y0cW): try: y0cW = int(y0cW) except ValueError: raise Exception('prefix must be an integer') if y0cW > 32 or y0cW < 0: raise Exception('prefix must be between 0 and 32') return y0cW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IoxP(u54L, vgXP):\n if u54L < 56:\n return chr(vgXP + u54L)\n elif u54L < 256 ** 8:\n tQeS = WXhK.serialize(u54L)\n return chr(vgXP + 56 - 1 + len(tQeS)) + tQeS\n else:\n raise ValueError('Length greater than 256**8')", "def QKtB(nPrm, bRy9):\n Aofo = ''\n iCcm = nP...
[ "0.7314764", "0.71651566", "0.7122645", "0.7013756", "0.6985716", "0.68052286", "0.67776096", "0.67329514", "0.6687712", "0.66522884", "0.65668", "0.6559106", "0.65415674", "0.648086", "0.64763916", "0.6454984", "0.6454984", "0.64475363", "0.64390904", "0.6407553", "0.6401426...
0.7811581
0
normalize the data to be between 1 and 1
def NkkI(QI8p, xVmP): Aofo = QI8p.copy() KR0Q, Lm6x = QI8p.shape assert KR0Q == 13 assert Lm6x == 4 y5bX = QI8p[:, 0:3] oWb2 = QI8p[:, 3] hFiK = 1000 / xVmP GIpP = [] for s4Nc, Ty9i in zip(y5bX, oWb2): if Ty9i == 1: GIpP.append(s4Nc) yGTL = oyIN.mean(GIpP, axi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(YKHO, nPrm):\n if YKHO.clip:\n return nPrm.clip(0, 1)\n return oyIN.mod(nPrm, 1)", "def jnV4(YKHO, nPrm):\n rCiM = (nPrm - min(nPrm)) / (max(nPrm) - min(nPrm))\n return rCiM", "def NkkI(YKHO):\n YKHO.scale(1 / YKHO.sum())", "def NkkI(YKHO, nPrm):\n try:\n Ytix = oyIN....
[ "0.84076494", "0.79413074", "0.7839913", "0.7832042", "0.7738641", "0.7712483", "0.76797307", "0.76771355", "0.7581719", "0.7574339", "0.754296", "0.75363463", "0.7524774", "0.7473811", "0.7460029", "0.7436567", "0.7427904", "0.7426802", "0.7405936", "0.74030656", "0.7392803"...
0.0
-1
finds what environment the requested context belongs in referenced from the deploy_config.json
def I0_M(pU7t, QpfX): MKCW = None IuCp = pU7t['clusters']['prod'] gqau = pU7t['clusters']['nonprod'] if QpfX in gqau: MKCW = 'nonprod' elif QpfX in IuCp: MKCW = 'prod' if not MKCW: return None else: return MKCW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I0_M(YKHO):\n GPtr = YKHO.get_config_data()\n return GPtr.get('environment', 'prod')", "def kLRF():\n _63S = wk5E.config.get('POD_NAMESPACE').lower()\n if _63S.endswith('dev'):\n return 'DEV'\n if _63S.endswith('test'):\n return 'TEST'\n if _63S.endswith('tools'):\n ret...
[ "0.7178221", "0.71675456", "0.71675456", "0.71675456", "0.709031", "0.6845963", "0.6809356", "0.6809356", "0.67407125", "0.6695514", "0.66936636", "0.66877437", "0.66877437", "0.66877437", "0.663696", "0.6595019", "0.65685594", "0.65480065", "0.6547945", "0.65304863", "0.6499...
0.76161754
0
RMS of magnitude of an (...,3) array
def ii_g(WKvO): GwEY = len(WKvO.shape) - 1 return PZyS(Fyji(WKvO.astype(HUFt)).sum(GwEY).mean())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ii_g(WKvO: np.ndarray) -> oyIN.ndarray:\n return oyIN.sqrt(NmYP(WKvO))", "def ii_g(WKvO):\n return oyIN.sqrt(oyIN.mean(WKvO ** 2))", "def ii_g(WKvO):\n return oyIN.sqrt(oyIN.mean(WKvO) ** 2)", "def O3cB(jzdc):\n return PZyS(JBMS(BWoA(jzdc) ** 2))", "def ii_g(nPrm):\n return PZyS(JBMS(Fyj...
[ "0.73301315", "0.72163683", "0.7200594", "0.7191982", "0.7061824", "0.6927745", "0.68967503", "0.68786126", "0.68570936", "0.6850347", "0.68448746", "0.684323", "0.6767225", "0.6741567", "0.6691104", "0.6691104", "0.6672479", "0.66301566", "0.6544476", "0.65180045", "0.650768...
0.7467327
0
gets an image and title and diplay it on a plot figure as requested
def feMA(VXjJ, leAC): QrM1.imshow(XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2RGB)) QrM1.title('Hand Number: ' + leAC) QrM1.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i5J1(Xn71, leAC):\n QrM1.imshow(Xn71)\n QrM1.colorbar()\n QrM1.title(leAC)\n QrM1.show()", "def i5J1(hxMA, LNo8, nuuJ):\n x5MY, QrM1 = hxMA\n QrM1 = x5MY.pyplot\n LZpg = QrM1.figure()\n aNZO = LZpg.add_subplot(1, 1, 1)\n gwMT = aNZO.imshow(LNo8, cmap=x5MY.cm.Greys)\n gwMT.set_in...
[ "0.75439936", "0.7492178", "0.7489777", "0.74849844", "0.74276155", "0.73564935", "0.73280597", "0.72953755", "0.7205396", "0.71370506", "0.71149683", "0.7106176", "0.7063039", "0.6986876", "0.69656694", "0.6926393", "0.6901155", "0.68766886", "0.6830039", "0.68219465", "0.67...
0.73879445
5
Convert the dictionary board representation to as string
def HGvS(hkxX): Ylbp = [] for Mkmy in usx6: for Z9rn in WfCS: Ty9i = hkxX[Mkmy + Z9rn] Ylbp.append(Ty9i if len(Ty9i) == 1 else '.') return ''.join(Ylbp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QB5L(BH3N):\n TEgA = '\\n{} | {} | {}\\n--------------\\n{} | {} | {}\\n--------------\\n{} | {} | {}\\n'\n JPR0 = []\n for list in BH3N['board']:\n rpVW = [bseI for bseI in list]\n JPR0 += rpVW\n TEgA = TEgA.format(*JPR0)\n return TEgA", "def Rekt(YKHO, rb7a=0):\n ...
[ "0.69037074", "0.6869583", "0.6846247", "0.67941076", "0.67384", "0.67384", "0.67014575", "0.6688211", "0.66821945", "0.66691387", "0.665011", "0.6644848", "0.6625225", "0.66074735", "0.6567372", "0.6555809", "0.65439117", "0.6538798", "0.65320563", "0.6527937", "0.6524928", ...
0.0
-1
Checks that the team_id in the config is valid or else creates one from the given index.
def SE7q(b2mu, or8S): if b2mu is None: return '#' + str(or8S) elif not isinstance(b2mu, str): raise ValueError('team_id must be string or None.') elif not b2mu: raise ValueError('team_id must not be empty.') elif b2mu.startswith('#'): raise ValueError('team_id must not st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def stiI(YKHO, C6Ky):\n rOAL('reindex_course_team', YKHO.team1.team_id)\n C6Ky.assert_called_once_with(YKHO.team1)\n C6Ky.reset_mock()", "def cDO8(YKHO, V_s1):\n d6pt = YKHO.get(V_s1)\n if not d6pt:\n d6pt = YKHO.create(V_s1)\n return d6pt", "def eLpg(YKHO, V_s1):\n raise NotImpleme...
[ "0.61704975", "0.5708384", "0.56379604", "0.55951804", "0.55392617", "0.5501985", "0.5490899", "0.54867965", "0.5443855", "0.5393279", "0.5367295", "0.53516793", "0.53429735", "0.53261745", "0.53073364", "0.529555", "0.52871144", "0.5271276", "0.5269375", "0.5268484", "0.5263...
0.648125
0
Returns the team id of the unambiguous winner.
def R1cZ(kUBT): if isinstance(kUBT, CS4o.Match) and kUBT.winner is not None: return R1cZ(kUBT.winner) elif isinstance(kUBT, CS4o.Bye): return R1cZ(kUBT.team) elif isinstance(kUBT, CS4o.Team): return kUBT.name elif isinstance(kUBT, str) or isinstance(kUBT, int): return kUB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ctcM(YKHO, b2mu: str) -> str:\n return YKHO.team_ids[abs(YKHO.team_ids.index(b2mu) - 1)]", "def b2mu(YKHO):\n return YKHO.c['team'].id", "def iY7u():\n return nub5", "def j7nZ(YKHO):\n if not YKHO.has_been_played or YKHO.is_draw or (not any(YKHO.team_matches)):\n return None\n retur...
[ "0.72918993", "0.7270939", "0.7197207", "0.71572345", "0.7102021", "0.70633286", "0.7062716", "0.70610905", "0.70235145", "0.70235145", "0.7013051", "0.6934246", "0.6905896", "0.6905896", "0.6905896", "0.6897337", "0.68679154", "0.681298", "0.6780463", "0.6768036", "0.6767576...
0.0
-1
Validate the directory whose path is provided. NOT part of the API; simply external to its client.
def gpkR(dZk2): if not Hy7s.path.exists(dZk2) or not Hy7s.path.isdir(dZk2): raise NotADirectoryError(dZk2) else: return dZk2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ph0B(pmON, tO9_):\n xzCw(Hy7s.path.isdir, pmON, tO9_)", "def WqhQ(pmON):\n pmON = Hy7s.path.abspath(Hy7s.path.normpath(pmON))\n if not Hy7s.path.isdir(pmON):\n tO9_ = 'No such directory: {}'.format(pmON)\n raise W66h(tO9_)\n return pmON", "def WqhQ(pmON):\n pmON = Hy7s.path.abs...
[ "0.75848943", "0.74778354", "0.74778354", "0.743164", "0.74266475", "0.7407564", "0.73333913", "0.7323663", "0.7272928", "0.72576296", "0.7252111", "0.721395", "0.7212871", "0.71631086", "0.7146846", "0.7071236", "0.70626926", "0.7045074", "0.7045074", "0.7039529", "0.699176"...
0.68443775
28
generates a random string with a given length. printable chars only
def olwh(YKHO, u54L=8): U5bT = '' for YRbF in range(u54L): WKvO = -1 while WKvO in (-1, 91, 92, 93, 94, 95, 96, 60, 61, 62, 58, 59, 63, 64): WKvO = qukk(48, 123) U5bT += chr(WKvO) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(YKHO, u54L):\n zZas = vIwR.ascii_uppercase + vIwR.digits\n return ''.join(tuKI.sample(zZas, u54L))", "def YzjY(YKHO, u54L):\n zZas = vIwR.ascii_uppercase + vIwR.digits\n return ''.join(tuKI.sample(zZas, u54L))", "def MiNk(u54L):\n gLiZ = vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIw...
[ "0.8456245", "0.8404039", "0.8393654", "0.8391543", "0.8379053", "0.83602107", "0.8352981", "0.834259", "0.8340753", "0.8324617", "0.8315573", "0.8300769", "0.8299956", "0.82987875", "0.82987875", "0.82976115", "0.82939166", "0.8289646", "0.8285797", "0.8285797", "0.82795423"...
0.8170432
32
load image, returns cuda tensor
def DZ0a(ThLH, DWkG): LNo8 = hnIv.open(ThLH).convert('RGB') LNo8 = DWkG(LNo8).float() return LNo8.cuda()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fbMT(C7_O):\n LNo8 = uGYG.Image.open(C7_O)\n LNo8 = LNo8.convert('RGB')\n LNo8 = wJO7(LNo8).float()\n LNo8 = iQnE(LNo8, requires_grad=True)\n LNo8 = LNo8.unsqueeze(0)\n return LNo8.cuda()", "def fbMT(LNo8):\n LNo8 = LNo8.convert('RGB')\n LNo8 = DWkG(LNo8).float()\n LNo8 = iQnE(LNo8...
[ "0.76837236", "0.76231134", "0.75060296", "0.73434466", "0.7270521", "0.72578776", "0.7163983", "0.7008943", "0.7004823", "0.6921992", "0.6874825", "0.672658", "0.67209166", "0.6694737", "0.6609181", "0.6597519", "0.655139", "0.6514023", "0.64839435", "0.64831656", "0.6451666...
0.7867898
0
Method to test if the /index endpoint returns 200 in HTTP status code.
def ZZwI(YKHO): print('In method', YKHO._testMethodName) YKHO.assertEqual(200, YKHO.response.status_code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nlJK(YKHO):\n geh0 = YKHO.app.get('/')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)", "def mdVt(YKHO):\n geh0 = YKHO.client.get(gxEw('index'))\n YKHO.assertEqual(geh0.status_code, 200)", "def a32l():\n assert '200 OK' == wk5E.test_client().get('/').status", "def d8pD(YKHO):\n ...
[ "0.86734146", "0.84184736", "0.8368724", "0.8297201", "0.8156121", "0.803476", "0.803476", "0.803476", "0.7881393", "0.78811276", "0.7788265", "0.77831805", "0.77792996", "0.77432233", "0.7725431", "0.7717507", "0.7668537", "0.75944775", "0.75944775", "0.75709367", "0.7553664...
0.83352613
3
Method to test if the /index endpoint returns HTML.
def tmPW(YKHO): print('In method', YKHO._testMethodName) YKHO.assertIn('text/html', YKHO.response.content_type)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hDnz(YKHO):\n geh0 = YKHO.app.get('/', content_type='html/text')\n assert geh0.status_code == 200", "def hDnz(YKHO):\n I78j = P4t4.test_client(YKHO)\n geh0 = I78j.get('/', content_type='html/text')\n YKHO.assertEqual(geh0.status_code, 200)\n print('test_index route -- PASS')", "def hDnz(Y...
[ "0.8029884", "0.77797925", "0.77475506", "0.7601934", "0.74431473", "0.73802555", "0.729877", "0.72891086", "0.7269617", "0.7268473", "0.72112405", "0.7188578", "0.7184477", "0.7152438", "0.71521413", "0.714728", "0.7109426", "0.7095133", "0.70164007", "0.7011826", "0.700627"...
0.8485442
0
Method to test if the /findall endpoint returns 200 in HTTP status code.
def DliY(YKHO): print('In method', YKHO._testMethodName) YKHO.assertEqual(200, YKHO.response.status_code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j1x8(_hkX):\n return _hkX.status_code == 200", "def ochF(YKHO):\n geh0 = LohM('GET')\n YKHO.assertEquals(geh0.code, rFt7.OK)", "def kKne(YKHO):\n bD7m = 'https://httpstat.us/200'\n Aofo = y7BL(bD7m)\n YKHO.assertEqual(Aofo, 200)", "def hYRz(YKHO):\n YKHO.check_valid_http_filter(['suc...
[ "0.7516419", "0.74302864", "0.72875565", "0.72619283", "0.7227488", "0.72145534", "0.72145534", "0.71880996", "0.7165774", "0.7149773", "0.7141822", "0.7127507", "0.706207", "0.7041111", "0.701591", "0.7011726", "0.70107645", "0.7000869", "0.6999441", "0.6995424", "0.6995424"...
0.77060175
0
Method to test if the /insert endpoint returns 200 in HTTP status code.
def vMxv(YKHO): print('In method', YKHO._testMethodName) YKHO.assertEqual(200, YKHO.response.status_code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ieOq(YKHO):\n assert YKHO.response.status_code == 201", "def Z5ZI(YKHO):\n assert YKHO.response.status_code == 200", "def wmBr(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 201)", "def wmBr(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 201)", "def xnmA(YKHO):\n geh0...
[ "0.74537706", "0.7275839", "0.72652966", "0.72639537", "0.7258728", "0.7258728", "0.7156029", "0.7111861", "0.7111861", "0.71014285", "0.7071865", "0.7071865", "0.7026998", "0.7026998", "0.70156544", "0.6959766", "0.6948674", "0.6934111", "0.69235533", "0.69232947", "0.689392...
0.8369342
0
Method to test if the /insert endpoint creates a new register in the database.
def l21U(YKHO): print('In method', YKHO._testMethodName) JBZA = 'TesteInsert' jGRS = False YKHO.app_test.post('/insert', data=dict(description=JBZA, status=jGRS)) D5gV = h_eM(JBZA) YKHO.assertEqual(JBZA, D5gV.description) YKHO.app_test.delete('/delete-by-id/' + str(D5gV._id))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xrgs(YKHO):\n nPrm = {'email': 'test@example.com', 'password': 'password', 'password2': 'password'}\n with _cTh(TLdo, (mv1M,)):\n im04 = YKHO.app.post('/register', data=nPrm)\n YKHO.assertEqual(im04.status_code, 302)\n YKHO.assertEqual(im04.location, 'http://localhost/')", "def vo9...
[ "0.73274046", "0.7157073", "0.71543413", "0.7142985", "0.7114797", "0.7112426", "0.7068336", "0.70593566", "0.7046121", "0.7016117", "0.7008243", "0.7001788", "0.6971357", "0.6966388", "0.69618136", "0.6948725", "0.6940767", "0.69320095", "0.6898451", "0.68817663", "0.6878691...
0.8109824
0
Method to test if the /updatebyid endpoint updates an existing register in the database.
def n_Eb(YKHO): print('In method', YKHO._testMethodName) JBZA = 'TesteUpdate' jGRS = False YKHO.app_test.post('/insert', data=dict(description=JBZA, status=jGRS)) D5gV = h_eM(JBZA) JBZA = 'TesteUpdateUpdated' YKHO.app_test.put('/update-by-id/' + str(D5gV._id), data=dict(description=JBZA)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wDnR(YKHO):\n print('In method', YKHO._testMethodName)\n JBZA = 'TesteUpdateStatus'\n jGRS = False\n YKHO.app_test.post('/insert', data=dict(description=JBZA, status=jGRS))\n D5gV = h_eM(JBZA)\n YKHO.app_test.put('/change-status-by-id/' + str(D5gV._id))\n D5gV = ggdo(D5gV._id)\n YKHO.as...
[ "0.6694059", "0.6320858", "0.63161886", "0.6268137", "0.62368447", "0.62255675", "0.6221662", "0.6218347", "0.62017196", "0.62002444", "0.6182844", "0.6181519", "0.61801827", "0.6178339", "0.61524296", "0.6138659", "0.61330384", "0.61320007", "0.61168814", "0.6093214", "0.608...
0.721904
0
Parse an XSD type definition to determine the appropriate Python type coercion function.
def JESW(l5Ny): kUBT = Tf0w.search(l5Ny) if kUBT: IERB = kUBT.group(1).strip() try: yDqo = bChq[IERB] except KeyError: qmLP.warn('Could not find a converter for XSD type %r' % (l5Ny,)) yDqo = str return yDqo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D19F(q_DO):\n zGKt = q_DO['_type.container']\n e_2d = q_DO.get('_type.dimension', OW9W.StarList([]))\n g8x2 = GCsq(q_DO['_type.contents'])\n if zGKt == 'Single':\n return kGd6(g8x2)\n elif zGKt == 'List':\n return ec0c(g8x2, e_2d)\n elif zGKt == 'Multiple':\n return None\...
[ "0.65554404", "0.593037", "0.5760908", "0.5651948", "0.56020427", "0.55765873", "0.5572027", "0.55354077", "0.5526894", "0.5507383", "0.5483159", "0.5480979", "0.54468775", "0.54409", "0.54313433", "0.5401385", "0.5392394", "0.5379078", "0.5367606", "0.535434", "0.5352578", ...
0.68545365
0
The underlying Cirq.Circuit object representing the specific QAOA circuit.
def DPNn(YKHO): return YKHO.__circuit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPNn(YKHO) -> Rv0t:\n return YKHO._circuit", "def k7t9(YKHO):\n return YKHO.interface_a.circuit_id", "def DPNn(YKHO) -> _giR:\n return YKHO._symbolic_circuit", "def DPNn(YKHO):\n return YKHO", "def L1W4(YKHO):\n jOpO = vR29(3, 'q')\n KBgZ = NCgL(3, 'c')\n DPNn = Rv0t(jOpO, KBgZ)\n ...
[ "0.6958004", "0.6588954", "0.6360767", "0.6293358", "0.61828864", "0.61689764", "0.5922052", "0.5789302", "0.57561845", "0.5744449", "0.5700132", "0.56806624", "0.5659593", "0.56219125", "0.559678", "0.55465215", "0.5538171", "0.5538171", "0.5538171", "0.55229443", "0.5499419...
0.646525
2
Given an input dict Strip out the non x400message key and add all its subkeys as top level keys of a new dict
def l41l(pkxk): V8Mb = {} for H5ew in pkxk.keys(): if H5ew.lower() == 'x400message': V8Mb[H5ew] = qQXR.dumps(pkxk[H5ew]) else: for ooP1 in pkxk[H5ew]: V8Mb[ooP1] = pkxk[H5ew][ooP1] return V8Mb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jdSk(chwN):\n mE6u = {}\n for G1Hx, Ty9i in chwN.items():\n hU8D = hr_R(str(G1Hx), reverse=True)\n hU8D = hU8D.replace('_i_d', '_id')\n if isinstance(Ty9i, dict):\n mE6u[hU8D] = jdSk(Ty9i)\n elif isinstance(Ty9i, list):\n mE6u[hU8D] = Z3A5(Ty9i)\n ...
[ "0.6208762", "0.60624945", "0.59925294", "0.59850836", "0.59698087", "0.5956295", "0.5892769", "0.58717585", "0.5854973", "0.5842751", "0.58384687", "0.5833135", "0.58049047", "0.5803001", "0.57667893", "0.57279325", "0.5720122", "0.5719048", "0.5716675", "0.5705215", "0.5685...
0.6131442
1
Returns a map of variables to load from a foreign checkpoint.
def oX6b(gssV): mK7E = {} for Es0b in ZylS.global_variables(): XuY2 = Es0b.op.name if XuY2.startswith(gssV + '/'): XuY2 = XuY2.replace(gssV + '/', '') mK7E[XuY2] = Es0b return mK7E
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPqQ(V1C0):\n print(V1C0)\n N5Pj = ZylS.train.load_checkpoint(V1C0)\n return {mWFP: N5Pj.get_tensor(mWFP) for mWFP in jKi7.iterkeys(N5Pj.get_variable_to_shape_map())}", "def UCnQ(YKHO, HgiY=True):\n mK7E = {}\n for Es0b in ZylS.all_variables():\n if Es0b.op.name.startswith(YKHO._extract...
[ "0.70310557", "0.65669453", "0.65593344", "0.65585446", "0.6409281", "0.6340929", "0.63171756", "0.62468785", "0.62358475", "0.6223086", "0.61986184", "0.61894596", "0.6166323", "0.6166323", "0.61139715", "0.6104362", "0.6076034", "0.5973877", "0.5970407", "0.595109", "0.5942...
0.5448197
62
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Get telegram logger bot (Singletone).
def Kfmt(): global _log_bot if not y5gZ: gM3o = Hy7s.environ.get('TG_LOG_BOT_TOKEN') kMyc = Hy7s.environ.get('TG_PROXY') y5gZ = z1pK(token=gM3o, proxy=kMyc) return y5gZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JyK9(YKHO):\n return YKHO.__bot", "def RuJL(YKHO):\n return YKHO.settings['your_botid']", "def fZx2(YKHO):\n HZoT = OZpC(YKHO, 'portal_followup', None)\n if HZoT is not None:\n return HZoT.getLogger()\n return None", "def WQ3g():\n if not t2SN:\n i9UK()\n return t2SN", ...
[ "0.6431611", "0.63789266", "0.6333872", "0.6291636", "0.60727084", "0.60531366", "0.6020854", "0.599852", "0.59868145", "0.5974488", "0.5974488", "0.59602714", "0.5938268", "0.59380835", "0.59087014", "0.588373", "0.5883295", "0.5876455", "0.5864729", "0.5856958", "0.5853561"...
0.7896796
0
Get the underlying path or raise if the path has not been set.
def pmON(YKHO) -> oAb3.Path: if YKHO._path is None: raise RuntimeError(f'The _path has not been set. Are you using {YKHO.__class__.__name__} outside of the context management?') return YKHO._path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO) -> laHg.Optional[oAb3.Path]:\n return YKHO._path", "def j1XE(YKHO) -> GkAb:\n raise NotImplementedError()", "def pmON(YKHO):\n if YKHO._path_present:\n return YKHO._path_value\n else:\n raise AttributeError(\"missing required field 'path'\")", "def pmON(YKHO):\n if...
[ "0.7324762", "0.7253689", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.70498616", "0.7003499", "0.6931566", ...
0.7367088
0
Get the underlying path or raise if the path has not been set.
def pmON(YKHO) -> oAb3.Path: if YKHO._path is None: raise RuntimeError(f'The _path has not been set. Are you using {YKHO.__class__.__name__} outside of the context management?') return YKHO._path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO) -> laHg.Optional[oAb3.Path]:\n return YKHO._path", "def j1XE(YKHO) -> GkAb:\n raise NotImplementedError()", "def pmON(YKHO):\n if YKHO._path_present:\n return YKHO._path_value\n else:\n raise AttributeError(\"missing required field 'path'\")", "def pmON(YKHO):\n if...
[ "0.7325915", "0.72540087", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.7050164", "0.70021254", "0.6931996", "0.6887353", ...
0.73673815
1
Close the temporary directory. If already closed, does nothing. If dont_delete not set, deletes the temporary directory if it exists.
def DDI8(YKHO) -> None: if not YKHO.exited: if not YKHO.dont_delete and YKHO._path is not None and YKHO._path.exists(): RDuA.rmtree(str(YKHO._path)) YKHO.exited = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO):\n yvT9 = super(bxBA, YKHO).close()\n if YKHO.exists:\n return MqCs(YKHO.name) and yvT9\n return False", "def DDI8(YKHO):\n yvT9 = super(bxBA, YKHO).close()\n if YKHO.exists:\n return MqCs(YKHO.name) and yvT9\n return False", "def WYsc():\n z_es = gbPf.mkdtemp(...
[ "0.6672246", "0.6672246", "0.6620533", "0.6562282", "0.6530725", "0.6480841", "0.6463138", "0.6436015", "0.6430482", "0.64032996", "0.6368142", "0.6363431", "0.6349988", "0.6315756", "0.6315443", "0.62911206", "0.62825215", "0.6277834", "0.6267283", "0.6265174", "0.6245544", ...
0.6217122
22
Return this object; no further action is performed.
def DMw_(YKHO) -> 'NamedTemporaryFile': return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO):\n return YKHO", "def nrOS(YKHO):\n return YKHO", "def nrOS(YKHO):\n return YKHO", "def nrOS(YKHO):\n return YKHO", "def nrOS(YKHO):\n return YKHO", "def KAOR(YKHO):\n return YKHO", "def crCa(YKHO):\n return YKHO", "def crCa(YKHO):\n return YKHO", "def Extv(YK...
[ "0.7700634", "0.7700634", "0.7700634", "0.7700634", "0.7700634", "0.72697234", "0.7204836", "0.7204836", "0.709396", "0.7058028", "0.7058028", "0.7027753", "0.7027753", "0.7018249", "0.6912566", "0.6912566", "0.6912566", "0.6764532", "0.6764532", "0.6753076", "0.6733178", "...
0.0
-1
Do not use. Only For Django PasswordResetForm Check django.contrib.auth.forms.PasswordResetForm
def KkPL(Emd4): return Emd4.USERNAME_FIELD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zb3e(QePW):\n if QePW.method == 'POST':\n L03z = Jpbe.forms.PasswordResetForm(data=QePW.POST)\n if L03z.is_valid():\n L03z.save(use_https=QePW.is_secure(), token_generator=Jpbe.tokens.default_token_generator, from_email=gCuF.DEFAULT_FROM_EMAIL, email_template_name='users/email/passw...
[ "0.77214664", "0.7437047", "0.7215908", "0.72143316", "0.70730346", "0.6986835", "0.6975326", "0.69452316", "0.692733", "0.68870693", "0.68737173", "0.6866596", "0.6830787", "0.6824391", "0.67996603", "0.67825353", "0.67526716", "0.6721108", "0.671909", "0.6697859", "0.667630...
0.0
-1
Calculate the total azimuth range that the satellite covers as seen by the ground station
def NFTZ(CW2G, OH2r): br2l = 2 * epAf.acos(epAf.tan(CW2G) / epAf.tan(OH2r)) return br2l
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lkDG(YKHO) -> float:\n return YKHO.item.properties.get(RzAo)", "def WDMt(YKHO):\n hf7d = oyIN.zeros_like(YKHO.ra_data) + YKHO.jdt_ref\n YKHO.azim_data, YKHO.elev_data = dkJI(YKHO.ra_data, YKHO.dec_data, hf7d, YKHO.lat, YKHO.lon)", "def GsvP(YKHO):\n try:\n WFvj = UJNH.AltAz(location=YKHO...
[ "0.6766263", "0.6693433", "0.66300225", "0.63786787", "0.63353205", "0.6313496", "0.62815183", "0.6238849", "0.6228864", "0.6221135", "0.61887276", "0.61705506", "0.6149483", "0.6124546", "0.61067545", "0.6071649", "0.6063208", "0.60615546", "0.6057874", "0.60573924", "0.5954...
0.7006901
0
Gets the current encryption key
def mexE(): try: return wk5E.config.get('LEMUR_ENCRYPTION_KEY').strip() except RuntimeError: print('No Encryption Key Found') return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ua7p(YKHO):\n return YKHO._encryption_key", "def ua7p(YKHO):\n return YKHO._encryption_key", "def COMI(YKHO):\n return YKHO._enc_key", "def ua7p(YKHO) -> laHg.Optional[lTJ4.aws_kms.Key]:\n return YKHO._values.get('encryption_key')", "def ua7p(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(Y...
[ "0.8592409", "0.84721506", "0.82036966", "0.81094384", "0.8101222", "0.80822486", "0.8050212", "0.8050212", "0.8050212", "0.8050212", "0.8017174", "0.8017174", "0.7925103", "0.7854137", "0.78513306", "0.7611764", "0.76030606", "0.759988", "0.757563", "0.75282836", "0.7513984"...
0.7540573
19
Return the output types returned by this transformer.
def sAxp(YKHO): rbzu = {'value': 'float'} if YKHO.null_transformer and YKHO.null_transformer.creates_null_column(): rbzu['is_null'] = 'float' return YKHO._add_prefix(rbzu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rbzu(YKHO):\n return YKHO._output_types", "def rbzu(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'output_types')", "def rbzu(YKHO):\n N8OZ = YKHO.output_shapes()\n SnBA = tuple(({G1Hx: ZylS.float64 for G1Hx in Csk6} for Csk6 in N8OZ))\n return SnBA", "def rbzu(...
[ "0.85980684", "0.8162853", "0.78765655", "0.75213486", "0.74615777", "0.72772866", "0.7275008", "0.7274528", "0.7274528", "0.7246503", "0.71671337", "0.7129535", "0.71272373", "0.71057343", "0.7105564", "0.70878977", "0.702972", "0.7025162", "0.69601935", "0.69323325", "0.687...
0.76683784
3
Insert a node in the tree. Method sets root if tree is empty, otherwise iterates left or right from root depending on key size, creating and setting a new node if empty child is found.
def Kb_V(YKHO, H5ew, nPrm) -> int: try: H5ew = int(H5ew) except ValueError: print('insertNode() abort: Supplied key is not of type integer.') return -1 if YKHO.__root == None: YKHO.__root = o7DN(H5ew, nPrm) else: _ins = False kMLo = YKHO.__root whi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MHMs(YKHO, H5ew):\n Q6kx = YKHO.root\n while True:\n if H5ew == Q6kx.val:\n return\n elif H5ew > Q6kx.val:\n if not Q6kx.right:\n Q6kx.right = i8DB(val=H5ew)\n break\n Q6kx = Q6kx.right\n else:\n if not Q6kx.le...
[ "0.8010175", "0.78560287", "0.7839482", "0.7835282", "0.77989095", "0.7792254", "0.77477145", "0.7735564", "0.75865453", "0.75831956", "0.7502795", "0.74674284", "0.7461696", "0.7446467", "0.74304885", "0.742684", "0.7340412", "0.73396194", "0.73122627", "0.7284166", "0.72789...
0.71329874
25
Get a node from the tree. Method iterates left or right from root depending on key size, returning the node associated with the key if found. Otherwise returns 1.
def c0_7(YKHO, H5ew) -> o7DN: if H5ew != int(H5ew): print('getNode() abort: Supplied key is not of type integer.') return -1 if YKHO.__root == None: print('getNode() abort: Tree is empty.') return -1 else: kMLo = YKHO.__root _ins = False while not _ins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IyQV(YKHO, H5ew):\n \"\"\"Takes an integer representing a key in the tree.\n Returns a node in the tree that contains the given key.\"\"\"\n XP5J = YKHO.root\n while XP5J and XP5J.key != H5ew:\n if H5ew < XP5J.key:\n XP5J = XP5J.left\n else:\n XP5J = XP5J.rig...
[ "0.7882322", "0.7761247", "0.74905455", "0.7438376", "0.7430037", "0.7421253", "0.7416506", "0.7394429", "0.73566985", "0.73566985", "0.73497164", "0.73490024", "0.73410225", "0.7322359", "0.7302115", "0.729253", "0.7281028", "0.7267584", "0.72581786", "0.72133905", "0.719550...
0.7635044
2
Constructor construct an `ImageClassifier` instance given variables for input, target and a final layer (a Lasagne layer)
def FIMM(YKHO, ypOY, _bo4, csAL, AwWL=None): YKHO.input_var = ypOY YKHO.target_var = _bo4 YKHO.final_layer = csAL YKHO.softmax = UjKG() eVVj = MTf8.layers.NonlinearityLayer(csAL, YKHO.softmax) YKHO.network = eVVj o3Uj = MTf8.layers.get_output(eVVj) N77f = MTf8.objectives.categorical_cros...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, _JTT, EDoJ):\n super(QX7S, YKHO).__init__()\n YKHO.layer_1 = U78l.Linear(_JTT, 128)\n YKHO.layer_2 = U78l.Linear(128, 64)\n YKHO.layer_3 = U78l.Linear(64, 32)\n YKHO.layer_out = U78l.Linear(32, EDoJ)\n YKHO.relu = U78l.ReLU()\n YKHO.dropout = U78l.Dropout(p=0.2)\n YKHO.batchn...
[ "0.6734064", "0.66911983", "0.6690343", "0.6639899", "0.6592971", "0.65275115", "0.65202457", "0.65162593", "0.6486538", "0.6443923", "0.641005", "0.6403274", "0.6379552", "0.63786006", "0.63601285", "0.6356433", "0.634483", "0.63148224", "0.63116777", "0.629405", "0.6282744"...
0.0
-1
This computes the number of white nodes within a binary tree
def Bozu(YKHO, Q6kx): if Q6kx is None: return 0 Q6kx.w = YKHO.num_white(Q6kx.left) Q6kx.ww = YKHO.num_white(Q6kx.right) if Q6kx.color == 0: mLGw = 1 else: mLGw = 0 return mLGw + Q6kx.w + Q6kx.ww
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kytq(J_Es):\n pass", "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 lcpJ(YKHO, Q6kx):\n return 2 - [Q6kx.left, Q6kx.right].count(YKHO.black_leaf)", "def UHFx(J_Es):\n return 1 + UHFx(J_Es.left) + ...
[ "0.78675205", "0.7385554", "0.7157989", "0.7143622", "0.71100384", "0.7106402", "0.7025357", "0.70211464", "0.69978374", "0.6958873", "0.6953994", "0.6950966", "0.69475603", "0.6933106", "0.69279045", "0.6925462", "0.6921687", "0.6878095", "0.6856538", "0.68265206", "0.682058...
0.7749116
1
Given a latitude and longitude, normalize the longitude if necessary, to return a valid ellipsoidalVincenty.LatLon object.
def Vm_6(QnmL: str, FDPT: str) -> chmV.LatLon: if FDPT[-1] in ['E', 'W']: jVpd = float(FDPT[:-1]) MVOv = FDPT[-1] else: jVpd = float(FDPT) if jVpd > 180.0: jVpd = 360.0 - jVpd MVOv = N0AV(MVOv) FDPT = str(jVpd) + MVOv return chmV.LatLon(QnmL, FDPT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DqrF(igSk, GgQG, TGuP, tk0B):\n if igSk > 90 or igSk < -90:\n tO9_ = 'Latitude of Point 1 out of bounds! (-90 <= lat1 <=90)'\n raise ValueError(tO9_)\n while GgQG > 180:\n GgQG -= 360\n while GgQG < -180:\n GgQG += 360\n if TGuP > 90 or TGuP < -90:\n tO9_ = 'Latit...
[ "0.6782738", "0.63784933", "0.6265536", "0.6262422", "0.6149739", "0.61442137", "0.5973828", "0.5969167", "0.5962277", "0.5954547", "0.59418154", "0.5926757", "0.59041315", "0.58805436", "0.5867953", "0.58590114", "0.58435166", "0.5840049", "0.58200365", "0.58147395", "0.5798...
0.5579945
44
Find distance from an input vector to every other vector in the embedding matrix.
def SNmP(YKHO, he6J, Ayfi='euclidean'): if Ayfi == 'euclidean': eFr6 = YKHO.norm(YKHO.mat - he6J) elif Ayfi == 'cosine': eFr6 = YKHO.cosine_distance(he6J, YKHO.mat) elif Ayfi == 'manhattan': eFr6 = YKHO.manhattan_distance(he6J, YKHO.mat) return eFr6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ycqS(hQHm, jlSq):\n return oyIN.linalg.norm([YRbF - r845 for YRbF in hQHm for r845 in jlSq])", "def AUp_(YKHO, lfri):\n return usGr(lfri, YKHO.weight_vector)", "def usGr(Wael):\n WKvO, LVAh = Wael\n return nMvt.sqrt(nMvt.sum(nMvt.square(WKvO - LVAh), axis=1, keepdims=True))", "def zG70(YKHO, ...
[ "0.72879493", "0.716524", "0.71393913", "0.7034824", "0.70134383", "0.69990206", "0.6916561", "0.6864878", "0.6864592", "0.68230057", "0.68210447", "0.6802546", "0.67960274", "0.6763366", "0.6723425", "0.6694434", "0.6681432", "0.66779983", "0.665354", "0.6648836", "0.6637381...
0.0
-1
Compute L2 norm of a vector. Euclidean distance between two vectors can be found by the operation norm(vec1 vec2).
def CkYf(he6J): return oyIN.sqrt(oyIN.sum(he6J ** 2, axis=-1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTUi(BZrQ, OhjO):\n return XTiz.linalg.norm(BZrQ - OhjO)", "def KtDG(iArr):\n return (iArr ** 2).sum()", "def wsvu(iArr):\n return iArr / oyIN.sqrt(oyIN.dot(iArr, iArr).astype(float))", "def XsBg(iArr):\n return iArr[0] * iArr[0] + iArr[1] * iArr[1]", "def KtDG(SWiB):\n if len(SWiB.shape...
[ "0.85432947", "0.85374624", "0.8217712", "0.8199529", "0.81924355", "0.80223185", "0.7914987", "0.79139715", "0.79107153", "0.7843764", "0.77431214", "0.7711393", "0.7690425", "0.7661183", "0.7641209", "0.753027", "0.74642235", "0.74258184", "0.74180853", "0.7415656", "0.7394...
0.725858
26
Test Initializer with credentials.
def KbtR(YKHO): Vt89 = YKHO.ocp_provider.authentication.credentials CU1e = aN_E(credentials=Vt89) YKHO.assertTrue(CU1e.does_db_entry_exist())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def as4H(YKHO):\n YKHO.assertEqual(YKHO.cred.account, 'Instagram')\n YKHO.assertEqual(YKHO.cred.username, 'inst')\n YKHO.assertEqual(YKHO.cred.password, '12345')", "def as4H(YKHO):\n YKHO.assertEqual(YKHO.new_credentials.account, 'Instagram')\n YKHO.assertEqual(YKHO.new_credentials.username, 'Malo...
[ "0.81546974", "0.7850005", "0.782609", "0.7813695", "0.7762945", "0.76737523", "0.7671827", "0.7607269", "0.7574543", "0.7484646", "0.7468444", "0.7445177", "0.7440919", "0.743013", "0.73900163", "0.73839265", "0.7344291", "0.72909784", "0.72881943", "0.71745515", "0.7169015"...
0.70383865
29
Test Initializer with auth_id and credentials.
def ZMxc(YKHO): iJPz = YKHO.ocp_db_auth.id Vt89 = YKHO.ocp_provider.authentication.credentials CU1e = aN_E(auth_id=iJPz, credentials=Vt89) YKHO.assertTrue(CU1e.does_db_entry_exist()) YKHO.assertEqual(int(iJPz), CU1e.get_auth_id())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def as4H(YKHO):\n YKHO.assertEqual(YKHO.cred.account, 'Instagram')\n YKHO.assertEqual(YKHO.cred.username, 'inst')\n YKHO.assertEqual(YKHO.cred.password, '12345')", "def as4H(YKHO, pu1N, Jpbe):\n NKcE = aaq4.auth_methods.RestCredentials(http_client=pu1N, **Jpbe)\n assert 'logged_in=False' in format...
[ "0.7814162", "0.76068056", "0.74457055", "0.74307257", "0.7398579", "0.7334134", "0.73116493", "0.7250016", "0.72476244", "0.7230046", "0.7180004", "0.713533", "0.7068952", "0.7041333", "0.7025501", "0.6998181", "0.6969517", "0.6959226", "0.69167304", "0.6908845", "0.6903106"...
0.6903379
20
Normalize and convert to log2probs.
def CkYf(YKHO): i9Rn = 0.0 for GIN8 in YKHO.model: i9Rn += YKHO.model[GIN8] bl2f = RKD7(i9Rn, 2) for GIN8 in YKHO.model: YKHO.model[GIN8] = RKD7(YKHO.model[GIN8], 2) - bl2f
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lb3G(zoT6):\n cpvk = oyIN.max(zoT6)\n return zoT6 - cpvk - oyIN.log(oyIN.sum(oyIN.exp(zoT6 - cpvk)))", "def X_L6(YKHO, O0ro, zoT6):\n KeL5 = O0ro['encoder_out']\n if zoT6:\n return BfDw.log_softmax(KeL5.float(), dim=-1)\n else:\n return BfDw.softmax(KeL5.float(), dim=-1)", "def...
[ "0.8125156", "0.7453927", "0.7323694", "0.7321269", "0.7292666", "0.7257658", "0.7257658", "0.72359574", "0.72203785", "0.70676064", "0.70676064", "0.70041627", "0.69727093", "0.6963838", "0.6859663", "0.68150824", "0.68019044", "0.67822486", "0.66555095", "0.664977", "0.6614...
0.0
-1