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
Determine if 2D point (x, y) is in the rectangle
def p4_Z(YKHO, WKvO, LVAh): if WKvO > YKHO.X and WKvO < YKHO.X + YKHO.Width and (LVAh > YKHO.Y) and (LVAh < YKHO.Y + YKHO.Height): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def abYb(WKvO, LVAh, mawX):\n if WKvO < mawX.x + mawX.width and WKvO > mawX.x and (LVAh < mawX.y + mawX.height) and (LVAh > mawX.y):\n return True\n return False", "def PHPf(Xlvp, nfKA, lued):\n W8Wc = float('-inf')\n XftZ = float('-inf')\n Nvb_ = float('inf')\n YpNe = float('inf')\n ...
[ "0.8538397", "0.83779377", "0.82355344", "0.81480265", "0.81370807", "0.8030859", "0.795908", "0.7931149", "0.7892396", "0.7891076", "0.7884565", "0.7800089", "0.77921206", "0.7763431", "0.77613074", "0.7756947", "0.7734764", "0.77126616", "0.77125025", "0.77041435", "0.76900...
0.7879716
11
Return latitude value of the device.
def _UuI(YKHO) -> float | None: if not YKHO._tile.latitude: return None return YKHO._tile.latitude
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _UuI(YKHO):\n return YKHO._device.position['x']", "def _UuI(YKHO) -> float:\n return float(YKHO._mp_dict['lat'])", "def _UuI(YKHO):\n return YKHO._gps.latitude", "def _UuI(YKHO):\n return YKHO._vehicle.location.get('latitude')", "def _UuI(YKHO):\n QnmL = YKHO._lat_lon[0]\n return QnmL...
[ "0.84948385", "0.8280237", "0.8276124", "0.82405204", "0.82343274", "0.8184037", "0.8183589", "0.8171833", "0.8096438", "0.8073491", "0.80702454", "0.80673325", "0.8048899", "0.8045055", "0.8042021", "0.8042021", "0.8042021", "0.8042021", "0.80388033", "0.80256957", "0.802569...
0.714331
56
Return longitude value of the device.
def fopC(YKHO) -> float | None: if not YKHO._tile.longitude: return None return YKHO._tile.longitude
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fopC(YKHO):\n return YKHO._device.position['y']", "def fopC(YKHO):\n return YKHO._gps.longitude", "def fopC(YKHO):\n return YKHO['lon']", "def fopC(YKHO):\n return YKHO._vehicle.location.get('longitude')", "def fopC(YKHO) -> float:\n return float(YKHO._mp_dict['lon'])", "def fopC(YKHO)...
[ "0.8808105", "0.86225194", "0.85961634", "0.8595835", "0.8593382", "0.8564958", "0.8549394", "0.8498284", "0.84899974", "0.8462357", "0.8425351", "0.8421351", "0.8421351", "0.8421351", "0.8421351", "0.8421351", "0.84195507", "0.8419155", "0.8419155", "0.8419155", "0.8416904",...
0.7542287
57
Return the source type, eg gps or router, of the device.
def zEt5(YKHO) -> n_JI: return n_JI.GPS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zEt5(YKHO):\n return YKHO._data.get('source_type', MqPP)", "def zEt5(YKHO):\n return YKHO.entity.attributes.get(i6p8, Z4Pi)", "def zEt5(YKHO):\n return MqPP", "def zEt5(YKHO):\n return MqPP", "def zEt5(YKHO):\n return MqPP", "def zEt5(YKHO) -> str:\n return Z4Pi", "def zEt5(YKHO) ...
[ "0.84455025", "0.82527125", "0.79860157", "0.79860157", "0.79860157", "0.79516566", "0.79516566", "0.7566773", "0.7566773", "0.7566773", "0.7349769", "0.7278647", "0.7264269", "0.72256124", "0.72256124", "0.72256124", "0.7214051", "0.7214051", "0.7214051", "0.7214051", "0.721...
0.8094676
2
The cluster sku definition.
def FIMM(Ro_8, *, b7hB: Optional[pulumi.Input[float]]=None, mWFP: Optional[pulumi.Input[Union[str, 'ClusterSkuNameEnum']]]=None): if b7hB is not None: qe4Y.set(Ro_8, 'capacity', b7hB) if mWFP is not None: qe4Y.set(Ro_8, 'name', mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXIM(YKHO) -> h8nf[qe4Y.Input['ManagedClusterSKUArgs']]:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> qe4Y.Output[h8nf['outputs.ManagedClusterSKUResponse']]:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO):\n return YKHO._sku", ...
[ "0.76388085", "0.749334", "0.7131728", "0.70560026", "0.70560026", "0.70560026", "0.70560026", "0.70560026", "0.68527776", "0.6846295", "0.6846295", "0.6828599", "0.6828599", "0.68024325", "0.68024325", "0.6638284", "0.6638284", "0.6638284", "0.6638284", "0.6638284", "0.66382...
0.0
-1
The name of the SKU.
def mWFP(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'ClusterSkuNameEnum']]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mDSP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'sku_name')", "def mDSP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'sku_name')", "def mDSP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'sku_name')", "def mDSP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sku_name')",...
[ "0.88857025", "0.88857025", "0.88857025", "0.8638984", "0.8638984", "0.8638984", "0.85343736", "0.85343736", "0.85343736", "0.85343736", "0.8393489", "0.8304479", "0.8182229", "0.8057693", "0.8057693", "0.7971114", "0.78658867", "0.78658867", "0.7843939", "0.7756897", "0.7756...
0.70038754
47
Type of managed service identity.
def type(YKHO) -> qe4Y.Input['IdentityType']: 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 type(YKHO) -> h8nf[qe4Y.Input['ManagedIdentityType']]:\n return qe4Y.get(YKHO, 'type')...
[ "0.830856", "0.830856", "0.7883073", "0.75472474", "0.74958676", "0.712185", "0.6949521", "0.69127727", "0.6871106", "0.6779821", "0.6768954", "0.67576957", "0.6745624", "0.66652", "0.6539087", "0.65131915", "0.6512134", "0.64776397", "0.6434017", "0.6401052", "0.6390899", ...
0.7033254
6
The version of the key associated with the Log Analytics cluster.
def z6lS(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'key_version')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z6lS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'key_version')", "def z6lS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'key_version')", "def z6lS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'key_version')", "def aA8j(YKHO) -> str:\n return qe4Y.get(YKHO, 'kms_key_version')", "def DpZH(YKHO...
[ "0.7785339", "0.7785339", "0.7785339", "0.75997335", "0.74352086", "0.7333123", "0.7251861", "0.7046939", "0.6880529", "0.6791683", "0.67727774", "0.67727774", "0.67221403", "0.6674151", "0.6674151", "0.6659894", "0.6655287", "0.66013134", "0.6600177", "0.65924925", "0.659249...
0.73112905
6
The Azure Resource Manager ID of the storage account resource.
def id(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oj8I(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'storage_account_resource_id')", "def oj8I(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'storage_account_resource_id')", "def oj8I(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'storage_account_resource_id')", "def KoGM(YKHO) -> qe4Y.Outp...
[ "0.8604474", "0.8604474", "0.8459163", "0.7751353", "0.7751353", "0.77161855", "0.7602045", "0.751491", "0.751491", "0.751491", "0.74746144", "0.7416047", "0.7416047", "0.7416047", "0.7416047", "0.7416047", "0.7388892", "0.73263323", "0.73263323", "0.73263323", "0.71844", "...
0.0
-1
The SKU (tier) of a workspace.
def FIMM(Ro_8, *, mWFP: pulumi.Input[Union[str, 'WorkspaceSkuNameEnum']], FDX6: Optional[pulumi.Input[int]]=None): qe4Y.set(Ro_8, 'name', mWFP) if FDX6 is not None: qe4Y.set(Ro_8, 'capacity_reservation_level', FDX6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EcuX(YKHO) -> h8nf[qe4Y.Input['SkuTier']]:\n return qe4Y.get(YKHO, 'tier')", "def PXIM(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku')", "def EcuX(YKHO) -> str:\n return qe4Y.get(YKHO, 'tier')", "def EcuX(YKHO) -> str:\n return qe4Y.get(YKHO, 'tier')", "def EcuX(YKHO) -> str:\n return qe4Y....
[ "0.74164563", "0.7095802", "0.70794535", "0.70794535", "0.70794535", "0.70794535", "0.68876034", "0.6879221", "0.6844852", "0.6844852", "0.68326765", "0.68326765", "0.6780973", "0.6771129", "0.6771129", "0.6771129", "0.6771129", "0.6771129", "0.67299694", "0.67259747", "0.672...
0.0
-1
The name of the SKU.
def mWFP(YKHO) -> qe4Y.Input[uLKX[str, 'WorkspaceSkuNameEnum']]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mDSP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'sku_name')", "def mDSP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'sku_name')", "def mDSP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'sku_name')", "def mDSP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sku_name')",...
[ "0.88857025", "0.88857025", "0.88857025", "0.8638984", "0.8638984", "0.8638984", "0.85343736", "0.85343736", "0.85343736", "0.85343736", "0.8393489", "0.8304479", "0.8182229", "0.8057693", "0.8057693", "0.7971114", "0.78658867", "0.78658867", "0.7843939", "0.7756897", "0.7756...
0.684622
60
Devuelve la armadura total del Gunpla. Un Gunpla tiene tanta armadura como la sumatoria de la armadura de sus partes y armas
def kEBX(YKHO): XyHk = 0 for z7NJ in YKHO.armas: XyHk += z7NJ.get_armadura() for p3El in YKHO.partes: XyHk += p3El.get_armadura() return XyHk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sPGl(YKHO):\n YKHO.raza = max(YKHO.latura_1, YKHO.latura_2, YKHO.latura_3) / 2", "def fteH(YKHO):\n YKHO.amount_ves_natura = 0\n YKHO.amount_ves_zachet = 0\n YKHO.avg_jir = 0\n YKHO.avg_belok = 0\n YKHO.avg_plotnost = 0\n YKHO.avg_som_kletki = 0\n YKHO.avg_somo = 0\n YKHO.avg_kislo...
[ "0.66115063", "0.647996", "0.630164", "0.6240163", "0.6235775", "0.62135214", "0.6195511", "0.6166657", "0.6137795", "0.613037", "0.6115659", "0.61110264", "0.60781974", "0.60576487", "0.6056701", "0.6045171", "0.6038545", "0.6028488", "0.60265076", "0.5994259", "0.59937704",...
0.78257865
0
Devuelve el escudo total del Gunpla. Un Gunpla tiene tanto escudo como la sumatoria del escudo de sus partes y armas
def P5lZ(YKHO): GB1W = 0 for z7NJ in YKHO.armas: GB1W += z7NJ.get_escudo() for p3El in YKHO.partes: GB1W += p3El.get_escudo() return GB1W
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h4aS(YKHO):\n try:\n UuU5 = YKHO.dados.get('icms') if YKHO.dados.get('icms') else 6\n wjRY = YKHO.get_subtotal() / ((100 - float(UuU5)) / 100)\n if type(wjRY) is float:\n wjRY = ZjSO(wjRY)\n wjRY = float(wjRY.quantize(ZjSO('.01'), rounding=OQsf))\n retur...
[ "0.7363641", "0.6640203", "0.663876", "0.6605328", "0.65894645", "0.6550415", "0.65434694", "0.6502384", "0.64621025", "0.64531726", "0.6447522", "0.63766754", "0.63729644", "0.6370764", "0.6370161", "0.63653034", "0.6362219", "0.6329433", "0.6329418", "0.6304702", "0.6302725...
0.7208671
1
Devuelve la velocidad total del Gunpla. Un Gunpla tiene tanta velocidad como la sumatoria de las velocidades de sus partes y esqueleto
def KSlW(YKHO): H0q3 = YKHO.esqueleto.get_velocidad() for p3El in YKHO.partes: H0q3 += p3El.get_velocidad() return H0q3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JSjW(YKHO, GAM_=1):\n return YKHO.gravedad * GAM_ / YKHO.tiempos[YKHO.tiempo] * (YKHO.longitudes[YKHO.longitud] / YKHO.tiempos[YKHO.tiempo])", "def h4aS(YKHO):\n try:\n UuU5 = YKHO.dados.get('icms') if YKHO.dados.get('icms') else 6\n wjRY = YKHO.get_subtotal() / ((100 - float(UuU5)) / 100...
[ "0.6750631", "0.65731835", "0.6562867", "0.6535452", "0.65322936", "0.6473971", "0.6466963", "0.64177394", "0.64152724", "0.64092433", "0.6388385", "0.63684464", "0.6333295", "0.6309555", "0.6304897", "0.63036215", "0.6295614", "0.6274849", "0.62205803", "0.6216037", "0.62123...
0.7555788
0
Genera N cantidad de instancias de Partes. Devuelve una lista con las partes generadas.
def s9MN(exwG): KxAZ = [] for WKvO in range(exwG): nmpm = tuKI.randint(1, 100) qeNE = tuKI.randint(-100, 100) lDYy = tuKI.randint(-100, 100) JSjW = tuKI.randint(-100, 100) IHjj = tuKI.randint(-10, 100) NEgo = tuKI.choice([True, False]) Mu7y = tuKI.choice([...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UDyQ(YKHO):\n YRbF = 0\n for WKvO in YKHO.equipos:\n for LVAh in YKHO.equipos:\n qe8s = WKvO.get_nombre()\n nK2W = LVAh.get_nombre()\n if WKvO.get_nombre() != LVAh.get_nombre():\n YRbF += 1\n XP5J = f_n_(YRbF, qe8s, nK2W)\n ...
[ "0.6898994", "0.6588802", "0.6387594", "0.6336643", "0.61787915", "0.6029297", "0.6027354", "0.5964163", "0.5961568", "0.5950502", "0.5935392", "0.5919925", "0.5848365", "0.58472896", "0.57982063", "0.5775765", "0.57613117", "0.5759495", "0.57574636", "0.5740749", "0.574004",...
0.66219085
1
Genera N cantidad de instancias de Piloto. Devuelve una lista con los pilotos generados.
def VZnY(exwG): pZIl = [] for WKvO in range(exwG): qWyD = gTEy() qWyD.nombre = 'Piloto' + str(WKvO) pZIl.append(qWyD) return pZIl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s9MN(exwG):\n KxAZ = []\n for WKvO in range(exwG):\n nmpm = tuKI.randint(1, 100)\n qeNE = tuKI.randint(-100, 100)\n lDYy = tuKI.randint(-100, 100)\n JSjW = tuKI.randint(-100, 100)\n IHjj = tuKI.randint(-10, 100)\n NEgo = tuKI.choice([True, False])\n Mu7y =...
[ "0.70972854", "0.67548007", "0.66712797", "0.666293", "0.6567789", "0.6547013", "0.65422577", "0.6452757", "0.63637316", "0.6363187", "0.6350403", "0.632489", "0.6319555", "0.6267445", "0.62330437", "0.62264967", "0.6200165", "0.61616254", "0.6156021", "0.6082035", "0.6068731...
0.82480246
0
Create a Raft object from a yaml file
def FvEQ(WRxi): chwN = eJb6.safe_load(open(WRxi)) iPRO = chwN['raft_id'] ruHg = chwN['sensor_type'] oB5g = chwN['sensors'] FxB7 = {} for _DZj, U4Ya in oB5g.items(): FxB7[_DZj] = XTqt(U4Ya, iPRO, None) return kX_3(iPRO, ruHg, FxB7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FvEQ(Emd4, qtsU):\n GDd0 = aFjx(qtsU)\n return Emd4(GDd0)", "def OXMy(Emd4, Ux0P):\n eHNT = open(Ux0P, 'r')\n nPrm = eJb6.load(eHNT.read().encode('utf-8'), Loader=eJb6.Loader)\n return Emd4.from_dict(nPrm)", "def aBOe(Emd4, pmON):\n Csk6 = eJb6.safe_load(open(pmON))\n return Emd4.from_...
[ "0.7388995", "0.6883393", "0.67265385", "0.6643798", "0.65469384", "0.6486745", "0.64231265", "0.6386575", "0.63712", "0.6360743", "0.63553774", "0.63221866", "0.63044196", "0.6221964", "0.6195047", "0.6194488", "0.6192843", "0.61577654", "0.61569303", "0.6147956", "0.6142810...
0.82661116
0
Returns a list of Student objects read from filename
def HBoa(Ux0P: str) -> x1iM[G8qb]: yvT9 = list() with open(Ux0P) as ytgA: for zFiD in ytgA: QOe9 = zFiD.split(',') g3Gt = G8qb(QOe9[0], QOe9[1], QOe9[2:-1]) yvT9.append(g3Gt) return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rj7V(Ux0P: str) -> list:\n hst7 = []\n with open(Ux0P) as rVmU:\n Nqlg = rVmU.readlines()\n CGJY = [zFiD.split() for zFiD in Nqlg]\n for YRbF in CGJY:\n if not YRbF:\n continue\n else:\n hst7.append(g3Gt.Student(YRbF[0], YRbF[1], YR...
[ "0.8183109", "0.77325815", "0.7725217", "0.73096037", "0.73072547", "0.72263193", "0.716653", "0.69160086", "0.6891587", "0.6812391", "0.67859375", "0.6783046", "0.6757506", "0.671164", "0.6594501", "0.65725785", "0.64829034", "0.63800776", "0.6305583", "0.6284002", "0.626968...
0.76670915
3
This function returns the list of supported CRC models.
def ZWCE(YKHO): return [C3ST['name'] for C3ST in YKHO.models]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T6tY():\n return tuple(_vtG.keys())", "def izSj() -> list:\n zk3X = []\n dyeT = nHas('MODEL')\n for JACg in dyeT.keys():\n for GPtr in dyeT[JACg].keys():\n for __n6 in dyeT[JACg][GPtr].keys():\n zk3X.append(f'{JACg}_{GPtr}_{__n6}')\n return sorted(zk3X)", "de...
[ "0.6594611", "0.6565024", "0.64991856", "0.6244134", "0.6178449", "0.60148185", "0.58265793", "0.5779883", "0.57489234", "0.57351303", "0.5657515", "0.5657515", "0.5653296", "0.5649693", "0.5648147", "0.5626679", "0.55959535", "0.55877644", "0.5587005", "0.5576947", "0.557647...
0.0
-1
Sample a batch of data (with size batch_size) from replay buffer.
def cQJh(YKHO, Ep8u): assert YKHO.observations is not None and YKHO.actions is not None and (YKHO.expert_actions is not None) zNig = len(YKHO.observations) LWg9 = oyIN.random.randint(0, zNig, Ep8u) return (YKHO.observations[LWg9], YKHO.actions[LWg9], YKHO.expert_actions[LWg9], YKHO.state_infos[LWg9])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvm2(YKHO):\n assert YKHO.replaybuf.ready()\n while YKHO.fresh_data_counter < YKHO.batch_size:\n G8IK = YKHO.datagen.play_game()\n YKHO.replaybuf.put(G8IK)\n YKHO.fresh_data_counter += YKHO.replaybuf_resample * len(G8IK)\n N6hW.add_scalar('sampler/replaybuf_write_position', YK...
[ "0.7795195", "0.76273865", "0.76258844", "0.761902", "0.7541385", "0.7474216", "0.74259835", "0.74259835", "0.73870057", "0.7363835", "0.7279859", "0.72751856", "0.71689594", "0.7124576", "0.7122738", "0.7116656", "0.7116656", "0.7116656", "0.70759004", "0.7060153", "0.705932...
0.6546828
58
Return the directory where this repository is located.
def dir(YKHO): return YKHO.__dir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ejh1(YKHO):\n if YKHO._repo_dir:\n return YKHO._repo_dir\n ejh1 = YKHO.args.repo_dir\n if not ejh1 or not Hy7s.path.isabs(ejh1):\n ejh1 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.getcwd(), ejh1))\n while not Hy7s.path.isdir(Hy7s.path.join(ejh1, '.git')):\n ejh1 = Hy7s.path.abspath...
[ "0.8281229", "0.8047415", "0.79800403", "0.7880343", "0.7870243", "0.7821681", "0.78129506", "0.78063655", "0.7800667", "0.7771112", "0.77674705", "0.77162373", "0.77084774", "0.7693692", "0.7674776", "0.7652055", "0.76022005", "0.7550493", "0.75496686", "0.75485855", "0.7533...
0.0
-1
Test that getattr raises an attributeerror if we give it garbage.
def wxTs(): x0hE = zyll.Client(client_id='foo') x0hE.foo()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hsTY(YKHO):\n with YKHO.assertRaises(AttributeError):\n PRiV.GammatoneFilterbank().invalid_attribute", "def diZD(YKHO, GSAg, xvni):\n GSAg.side_effect = AttributeError\n tO9_ = 'accessing valid attribute `name` raised an AttributeError'\n with YKHO.assertRaises(AssertionError, msg=tO9_):\n...
[ "0.75651455", "0.7328859", "0.7224702", "0.7171596", "0.6964437", "0.6867418", "0.68408054", "0.68344563", "0.67552686", "0.67502445", "0.66857004", "0.66656905", "0.66309786", "0.6607604", "0.65773606", "0.65179", "0.64992225", "0.6478287", "0.64322454", "0.6425343", "0.6423...
0.0
-1
Return the state attributes of the monitored installation.
def R1i3(YKHO): if YKHO._attributes is not None: return YKHO._attributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO.rest.data", "def R1i3(YKHO):\n return YKHO.rest.data", "def R1i3(YKHO...
[ "0.80348986", "0.80348986", "0.80348986", "0.7981297", "0.7939329", "0.7939329", "0.7935911", "0.7935911", "0.7935911", "0.7935911", "0.79337853", "0.79337853", "0.79337853", "0.79337853", "0.79337853", "0.79337853", "0.79337853", "0.79337853", "0.79337853", "0.79337853", "0....
0.77888787
37
Return the unit of measurement.
def b82i(YKHO): return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82...
[ "0.90788347", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9042988", "0.9013875", "0.90051067", "0.89462197", "0.89462197", "0.89366317", "0.89184356", "0.89184356", "0.89184356", "0.89184356", "0.8918...
0.8463183
64
tests uploading an apartment that has a negative rental price
def dCLT(YKHO): YKHO.client.force_login(NLwJ.objects.create(username='testuser')) Xn71 = hnIv.new(mode='RGB', size=(200, 200)) TcSE = aKaX() Xn71.save(TcSE, 'JPEG') TcSE.seek(0) q68M = aKSh(TcSE, None, 'image.jpg', 'image/jpeg', len(TcSE.getvalue()), None) aqR5 = {'city': 'New York', 'state'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lp02():\n assert not L22T.manageTickets(L22T.events[0][0], -30, 'Cheap Seats', 'C', 5) and L22T.events[0][0].tickets[0].list_price == 50", "def edMh(YKHO):\n CBIr = NLwJ.objects.create(username='testuser')\n YKHO.client.force_login(CBIr)\n hksT, stjD = YKHO.create_location_and_apartment()\n st...
[ "0.6373278", "0.63710946", "0.6197493", "0.6197493", "0.6173619", "0.6036763", "0.589636", "0.5877263", "0.58578324", "0.5853524", "0.5823964", "0.5797222", "0.57813805", "0.57533324", "0.572654", "0.569419", "0.56573963", "0.56399864", "0.5624979", "0.561714", "0.56156033", ...
0.724757
0
Tests the 'apartment_edit' page redirects when the user is not logged in
def MuEf(YKHO): hksT, stjD = YKHO.create_location_and_apartment() geh0 = YKHO.client.get(gxEw('apartment_edit', kwargs={'pk': hksT.id, 'apk': stjD.id})) YKHO.assertRedirects(geh0, f'/accounts/login/?next=/location/{hksT.id}/apartment/{stjD.id}/edit')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKS5(YKHO):\n CBIr = NLwJ.objects.create(username='testuser')\n f0lR = NLwJ.objects.create(username='landlord')\n YKHO.client.force_login(CBIr)\n hksT, stjD = YKHO.create_location_and_apartment()\n stjD.landlord = f0lR\n stjD.save()\n geh0 = YKHO.client.get(gxEw('apartment_edit', kwargs={'...
[ "0.7364542", "0.7123045", "0.7033227", "0.69820833", "0.6892789", "0.6850775", "0.68201387", "0.6784333", "0.6779809", "0.67342925", "0.673286", "0.672469", "0.6650353", "0.66395456", "0.6637943", "0.66296893", "0.65897983", "0.65754086", "0.65629447", "0.6481932", "0.6474091...
0.8051352
0
tests a successful POST request to the 'apartment_edit' URI
def wrvP(YKHO): CBIr = NLwJ.objects.create(username='testuser') YKHO.client.force_login(CBIr) hksT, stjD = YKHO.create_location_and_apartment() stjD.landlord = CBIr stjD.save() BGqR = {'suite_num': stjD.suite_num, 'rent_price': 2500, 'number_of_bed': 2, 'description': 'A different description'} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tVdG(vY7J, zTKZ, MUsr):\n zTKZ['csrf_token'] = MUsr\n geh0 = vY7J.post('/journal/1/edit-entry', zTKZ)\n assert geh0.location == 'http://localhost/journal/1'", "def Jn0o(YKHO):\n CBIr = NLwJ.objects.create(username='testuser')\n YKHO.client.force_login(CBIr)\n hksT, stjD = YKHO.create_locati...
[ "0.71431935", "0.7113355", "0.7004949", "0.6914463", "0.6914187", "0.674223", "0.6623435", "0.66108114", "0.6558793", "0.6502301", "0.6492617", "0.64779854", "0.6436504", "0.6420337", "0.64142036", "0.6405458", "0.63724357", "0.634228", "0.63412076", "0.63386995", "0.6327745"...
0.76091576
0
tests a POST request to the 'apartment_edit' URI where the suite_num is negative
def edMh(YKHO): CBIr = NLwJ.objects.create(username='testuser') YKHO.client.force_login(CBIr) hksT, stjD = YKHO.create_location_and_apartment() stjD.landlord = CBIr stjD.save() BGqR = {'suite_num': -1, 'rent_price': 2500, 'number_of_bed': 2, 'description': 'a different description'} geh0 = Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jn0o(YKHO):\n CBIr = NLwJ.objects.create(username='testuser')\n YKHO.client.force_login(CBIr)\n hksT, stjD = YKHO.create_location_and_apartment()\n qLDi = YKHO.create_second_apartment(hksT)\n stjD.landlord = CBIr\n qLDi.landlord = CBIr\n stjD.save()\n qLDi.save()\n BGqR = {'suite_num...
[ "0.7249958", "0.68502265", "0.6460518", "0.6277625", "0.61636895", "0.61439645", "0.61329764", "0.6073848", "0.6064577", "0.59490925", "0.5913469", "0.59118056", "0.59013444", "0.5878128", "0.5876663", "0.5861337", "0.581637", "0.5792979", "0.57925093", "0.5775652", "0.575155...
0.76493704
0
Tests the apartment delete function when the apartment doesn't have a landlord
def skKF(YKHO): CBIr = NLwJ.objects.create(username='testuser') YKHO.client.force_login(CBIr) hksT, Yrr6 = YKHO.create_location_and_apartment() geh0 = YKHO.client.post(gxEw('apartment_delete', kwargs={'pk': hksT.id, 'apk': Yrr6.id}), {}) YKHO.assertEqual(geh0.status_code, 403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IqBm(YKHO):\n CBIr = NLwJ.objects.create(username='testuser')\n YKHO.client.force_login(CBIr)\n hksT, Yrr6 = YKHO.create_location_and_apartment()\n Yrr6.landlord = CBIr\n Yrr6.save()\n geh0 = YKHO.client.post(gxEw('apartment_delete', kwargs={'pk': hksT.id, 'apk': Yrr6.id}), {})\n YKHO.asse...
[ "0.814895", "0.80893797", "0.7743199", "0.7485632", "0.747092", "0.66002166", "0.65994215", "0.6583018", "0.6489742", "0.63937014", "0.6369075", "0.6326489", "0.63103646", "0.6280817", "0.6277925", "0.62434924", "0.62260324", "0.6205668", "0.6203521", "0.6200462", "0.61971784...
0.8203112
0
tests the apartment delete when the current user is not the landlord of the building
def rgOP(YKHO): CBIr = NLwJ.objects.create(username='testuser') YKHO.client.force_login(CBIr) f0lR = NLwJ.objects.create(username='landlord') hksT, Yrr6 = YKHO.create_location_and_apartment() Yrr6.landlord = f0lR Yrr6.save() geh0 = YKHO.client.post(gxEw('apartment_delete', kwargs={'pk': hksT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def skKF(YKHO):\n CBIr = NLwJ.objects.create(username='testuser')\n YKHO.client.force_login(CBIr)\n hksT, Yrr6 = YKHO.create_location_and_apartment()\n geh0 = YKHO.client.post(gxEw('apartment_delete', kwargs={'pk': hksT.id, 'apk': Yrr6.id}), {})\n YKHO.assertEqual(geh0.status_code, 403)", "def IqB...
[ "0.82417434", "0.80589664", "0.7552317", "0.75130266", "0.728639", "0.70146817", "0.68909043", "0.64643216", "0.6448882", "0.6412023", "0.6347864", "0.6332619", "0.6297085", "0.62024707", "0.6190395", "0.617309", "0.61715305", "0.61547714", "0.61410296", "0.612581", "0.611343...
0.83089364
0
insures that a 404 is thrown if the apartment doesn't exist
def lnyb(YKHO): CBIr = NLwJ.objects.create(username='testuser') YKHO.client.force_login(CBIr) hksT, Yrr6 = YKHO.create_location_and_apartment() id = Yrr6.id Yrr6.delete() geh0 = YKHO.client.post(gxEw('apartment_delete', kwargs={'pk': hksT.id, 'apk': id}), {}) YKHO.assertEqual(geh0.status_cod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QO4w():\n nNXP.abort(aazL.HTTP_404, 'Unable to locate tenant.')", "def SZaV(YKHO):\n DQkc(uhgT, _Nve, nSqr.specializations, name='some thing else')", "def o3cf(YKHO):\n raise lW34()", "def Culi(YKHO):\n YKHO.get('startup_detail', slug='nonexistent')\n YKHO.response_404()", "def _hn1(vY7J...
[ "0.6722932", "0.6411463", "0.63527966", "0.62839496", "0.6182802", "0.61564523", "0.6108268", "0.6097557", "0.60811514", "0.60790694", "0.6053529", "0.605165", "0.60409427", "0.59912723", "0.59735423", "0.5968411", "0.5944258", "0.59392035", "0.5932324", "0.5931046", "0.59080...
0.6199882
4
Test that running naclsdk with current revision does nothing.
def Tl57(YKHO): YKHO._WriteManifest() XkTm = YKHO._RunAndExtractRevision() YKHO.assertEqual(XkTm, YKHO.current_revision)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ezMx(YKHO):\n hlel = VH11.acl_in_token(YKHO.token, version=1000)\n YKHO.assertFalse(hlel)", "def rOn0(YKHO):\n YKHO.do_test_version_control_the_unkown()", "def Lhks(YKHO):\n with YGoE.LoggingCapturer() as bo34:\n qIxc = [uwaB.BRANCH_UTIL_CONFIG]\n YKHO.assertDieSysExit(Aqar._Parse...
[ "0.6449322", "0.63415164", "0.62207687", "0.6043343", "0.5998127", "0.5947574", "0.5943756", "0.58555275", "0.58258176", "0.58096474", "0.57676923", "0.5728091", "0.5724261", "0.5680273", "0.56709266", "0.5664652", "0.56615686", "0.5637572", "0.56294143", "0.5617191", "0.5598...
0.68140465
0
Helper method to check matching response status.
def jqXM(YKHO, geh0, JBvl): YKHO.assertEqual(geh0.status_code, JBvl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yNhM(geh0, yFCe=200):\n if geh0.status_code == yFCe:\n return True\n else:\n return False", "def yOZO(PdJD):\n return 'Status: ' + str(geh0.status_code)", "def j1x8(_hkX):\n return _hkX.status_code == 200", "def NsL3(_hkX):\n KCHu = _hkX.status\n if KCHu != 200:\n r...
[ "0.7898551", "0.78916067", "0.78097874", "0.7702825", "0.76027805", "0.7557286", "0.7380161", "0.73709255", "0.7347522", "0.7319411", "0.7278378", "0.7265474", "0.7257844", "0.72415143", "0.72098976", "0.71948284", "0.7192236", "0.71862453", "0.7184098", "0.7132609", "0.71226...
0.7000545
33
Checks if response status code is 401
def muex(YKHO, geh0): YKHO.assertStatus(geh0, 401)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XgVz(_hkX):\n return _hkX.status_code == 401 or '<ResponseCode>401</ResponseCode>' in _hkX.text", "def bUA4(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 401)", "def bUA4(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 401)", "def ozxE(YKHO, geh0):\n if geh0.code == 401:\n...
[ "0.79369485", "0.7749756", "0.7715572", "0.7511502", "0.73946893", "0.73520535", "0.7340807", "0.72632456", "0.72295415", "0.7143958", "0.7118804", "0.7067315", "0.7067315", "0.7061492", "0.70344913", "0.6993515", "0.6993515", "0.69620967", "0.693655", "0.6933446", "0.6885145...
0.75711066
3
returns difference of two lists
def p1XJ(ko4j, tjSX): by6d = [] for Fg_i in ko4j: if Fg_i not in tjSX: by6d.append(Fg_i) return by6d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def by6d(jzdc, Fg_i):\n return [geyT for geyT in jzdc if geyT not in Fg_i]", "def idas(jzdc, Fg_i):\n return list(set(jzdc) - set(Fg_i))", "def yk4i(vASe, OQAR):\n eR42 = [YRbF for YRbF in vASe if YRbF not in OQAR]\n return eR42", "def srwB(Kt9y, I_KI):\n import myclasses\n nF1T = myclasses...
[ "0.8327211", "0.8305463", "0.8286679", "0.8242808", "0.82049114", "0.8164529", "0.8155056", "0.8131994", "0.8109837", "0.8093522", "0.80321574", "0.80304617", "0.80013955", "0.79473853", "0.79344666", "0.79283273", "0.79187316", "0.79175395", "0.78850234", "0.78688204", "0.78...
0.7560469
37
Return True if the argument is a string that contains a valid ISBN10 code, False otherwise. >>> isISBN('9971502100') True >>> isISBN('9971502108') False >>> isISBN('53WKEFF2C') False >>> isISBN(4378580136) False
def _9xF(Wxnj): if not (isinstance(Wxnj, str) and len(Wxnj) == 10 and Wxnj[:9].isdigit()): return False return bKao(Wxnj) == Wxnj[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SNBI(N6yo):\n if not isinstance(N6yo, exCv):\n raise ValueError('Invalid Format')\n elif len(N6yo) != 10:\n raise ValueError('Invalid String Format')\n else:\n kjEx = Zs2o(N6yo)\n if kjEx == 10:\n kjEx = 'X'\n return str(kjEx) == N6yo[9]", "def _9xF(Wxnj...
[ "0.82615656", "0.76865804", "0.7531997", "0.7491178", "0.6998174", "0.69829136", "0.68324757", "0.65335315", "0.6317102", "0.6296248", "0.620088", "0.6095311", "0.60696", "0.60395664", "0.60065585", "0.59783113", "0.59397", "0.58834994", "0.58754706", "0.58738387", "0.5863315...
0.81861925
1
Computes the check digit for a given string that contains the first nine digits of an ISBN10 code. >>> checkdigit('997150210') '0' >>> checkdigit('938389293') '5'
def bKao(Wxnj): GfdN = sum(((YRbF + 1) * int(Wxnj[YRbF]) for YRbF in range(9))) % 11 return 'X' if GfdN == 10 else str(GfdN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D7EM(FGW3):\n if FGW3[10:13] <= '100':\n _mSQ = (14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2)\n wjRY = sum((int(exwG) * yzQ0 for exwG, yzQ0 in zip(FGW3, _mSQ)))\n return str(wjRY % 11 % 10)\n _mSQ = (2, 7, 6, 5, 4, 3, 2, 7, 6, 5, 4, 3, 2)\n wjRY = sum((int(exwG) * yzQ0 for exwG, yz...
[ "0.7357701", "0.7328251", "0.7277785", "0.7172631", "0.7141484", "0.7094971", "0.70882046", "0.7080997", "0.7080997", "0.70447254", "0.7002445", "0.69473433", "0.6870734", "0.6823199", "0.6783948", "0.6743859", "0.67332053", "0.6732839", "0.67278415", "0.6721754", "0.6701291"...
0.7147448
4
Init for square! Takes in a size, defaults to 0.
def FIMM(YKHO, zNig=0): YKHO.__check_size__(zNig) YKHO.__size = zNig
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Fyji):\n YKHO.__size = Fyji", "def FIMM(YKHO, zNig, WKvO=0, LVAh=0, id=None):\n super().__init__(zNig, zNig, WKvO, LVAh, id)\n YKHO.size = zNig", "def FIMM(YKHO, zNig, WKvO=0, LVAh=0, id=None):\n super().__init__(zNig, zNig, WKvO, LVAh, id)\n YKHO.size = zNig", "def FIMM(YKHO, z...
[ "0.83792806", "0.7464732", "0.7464732", "0.7307286", "0.73072845", "0.72939354", "0.7281178", "0.7281178", "0.7281178", "0.7281178", "0.7281178", "0.7281178", "0.7281178", "0.7274977", "0.7237773", "0.7237773", "0.7237773", "0.7237773", "0.7237773", "0.7237773", "0.7237773", ...
0.6954359
80
Size getter, returns the private size.
def zNig(YKHO): return YKHO.__size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jiw9(YKHO):\n return YKHO.__size", "def jiw9(YKHO) -> int:\n return YKHO._size", "def zNig(YKHO):\n return YKHO._size", "def jiw9(YKHO):\n return YKHO.size", "def jiw9(YKHO):\n return YKHO.size", "def jiw9(YKHO):\n return YKHO.size", "def jiw9(YKHO):\n return YKHO.size", "def...
[ "0.87866", "0.8710432", "0.86749154", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.86677706", "0.8664948", "0.86400557", "0.8639889", "0...
0.0
-1
Returns the area of the square.
def f0tD(YKHO): return YKHO.__size ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return YKHO._Square__size ** 2", "def f0tD(YKHO):\n return YKHO._Square__size ** 2", "def f0tD(YKHO):\n f0tD = YKHO.__width * YKHO.__height\n return f0tD", "def f0tD(YKHO):\n return YKHO.__width * YKHO.__height", "def f0tD(YKHO):\n return YKHO.__width * YKHO.__height", ...
[ "0.8764547", "0.86848134", "0.8362973", "0.82607704", "0.82607704", "0.82141304", "0.8204112", "0.81895566", "0.81895566", "0.81895566", "0.8146566", "0.8146238", "0.81343174", "0.810714", "0.810714", "0.80877584", "0.80877584", "0.80877584", "0.80877584", "0.80877584", "0.80...
0.7871705
86
Return the loaded training and testing data. Returns
def nPrm(YKHO): Lcqa = YKHO.image_segmentation_.drop('CLASS', axis=1).values VJv0 = YKHO.image_segmentation_['CLASS'].copy().values Z5wO = YKHO.image_segmentation_test_.drop('CLASS', axis=1).values H96n = YKHO.image_segmentation_test_['CLASS'].copy().values VJv0 = YKHO.le_.fit_transform(VJv0) H9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jrLz(YKHO):\n x4W3 = rLdf.read_csv(YKHO.train_file, header=0)\n Dmme = rLdf.read_csv(YKHO.test_file, header=0)\n if not YKHO.silent:\n print('Loaded training and test data')\n return (x4W3, Dmme)", "def bnUc(YKHO):\n return YKHO.load_data_set(is_test=False)", "def UlWi(YKHO):\n bPN...
[ "0.8169803", "0.8150996", "0.8005469", "0.7869294", "0.78267103", "0.78267103", "0.7797297", "0.7694708", "0.76865184", "0.76123726", "0.7607975", "0.75027937", "0.7497029", "0.7483673", "0.74697703", "0.7467122", "0.7467006", "0.74421346", "0.7424428", "0.73909974", "0.73909...
0.0
-1
Does signing up with an existing username raise an error?
def pvTm(YKHO): qVG7 = mv1M.signup('test0', 'test2@email.com', 'password2', None) with YKHO.assertRaises(BQDi.IntegrityError): NCls.session.commit()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7gl(YKHO):\n qVG7 = mv1M.signup(None, 'test2@email.com', 'password2', None)\n with YKHO.assertRaises(BQDi.IntegrityError):\n NCls.session.commit()", "def LXjg(YKHO):\n YKHO.new_user['user']['username'] = YKHO.user['user']['username']\n geh0 = YKHO.register_user(YKHO.new_user)\n YKHO.as...
[ "0.7621665", "0.75908154", "0.7585868", "0.7561496", "0.7555536", "0.75358635", "0.7519465", "0.750094", "0.74501085", "0.73764956", "0.7354986", "0.7352705", "0.73146963", "0.72881836", "0.7267698", "0.72527343", "0.7202349", "0.71983325", "0.71975935", "0.7190479", "0.71858...
0.7933757
0
Does signing up with an existing email raise an error?
def K09Z(YKHO): qVG7 = mv1M.signup('test2', 'test0@email.com', 'password2', None) with YKHO.assertRaises(BQDi.IntegrityError): NCls.session.commit()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKfJ(YKHO):\n YKHO.assertEqual(FYrf.FAILURE, YKHO.users.sign_up('userG', 'myPassword', 'myPassword', 'userG@gmailcom'))", "def vOeY(YKHO):\n YKHO.assertEqual(FYrf.FAILURE, YKHO.users.sign_up('userF', 'myPassword', 'myPassword', 'userFgmail.com'))", "def nYtz(YKHO):\n YKHO.new_user['user']['email']...
[ "0.76121026", "0.75864816", "0.7559834", "0.75190943", "0.7470686", "0.73942745", "0.73727125", "0.7359806", "0.7343652", "0.7253416", "0.72365576", "0.7231398", "0.72093886", "0.7166053", "0.7159116", "0.7154095", "0.71259516", "0.71212524", "0.7111022", "0.7060965", "0.7059...
0.78080326
0
Combine listlike of Categoricallike, unioning categories. All categories must have the same dtype.
def BRgm(Qaww, _FpU: bool=False, JJjO: bool=False) -> Categorical: from pandas import Categorical from pandas.core.arrays.categorical import recode_for_categories if len(Qaww) == 0: raise ValueError('No Categoricals to union') def AZIm(WKvO): if isinstance(WKvO, (MRn4, bmLq)): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EjLl(EcVT, zSv7=None):\n ztIo = DEFE(EcVT.columns, zSv7)\n dH80 = EcVT.copy()\n for AAHb, A8fR in ztIo.items():\n if len(A8fR) > 1:\n dH80[AAHb] = koMW(EcVT, AAHb)\n dH80.drop(A8fR, axis=1, inplace=True)\n return dH80", "def FX7W(*LeZt, **B2fa):\n if LeZt[-1] is .....
[ "0.65790546", "0.64610636", "0.64339936", "0.62592566", "0.62246805", "0.6153518", "0.61473364", "0.6121025", "0.6070133", "0.60135263", "0.6004518", "0.5965336", "0.59190756", "0.59177834", "0.5863258", "0.5847016", "0.58415407", "0.5821244", "0.5802127", "0.5787758", "0.569...
0.7129308
0
Deletes all created IAM policies.
def HySU(YKHO): super().cleanup() for hMqs in YKHO.arns: YKHO.iam_client.delete_policy(PolicyArn=hMqs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LnXF():\n NCls = Um_h.get_core_db_instance()\n LTp8 = NCls.policy_instance_strategy.delete_all()\n return (LTp8.success, LTp8.message)", "def q_3b(YKHO, S9KE: str, gri1: bool=None):\n pass", "def HySU(YKHO):\n if YKHO.arn:\n h1Ur = ZbWC.match(WbxG, YKHO.arn).group(1)\n uPxV = Y...
[ "0.7163611", "0.66865754", "0.6594501", "0.62777615", "0.60942245", "0.6076448", "0.59744525", "0.5959075", "0.59487164", "0.5861015", "0.58313626", "0.5801743", "0.57820886", "0.57586396", "0.57469624", "0.5743818", "0.5693496", "0.56797296", "0.566066", "0.5626295", "0.5624...
0.7856009
0
Helper to create a Variable stored on CPU memory.
def js1U(mWFP, ROpF, MuED): with ZylS.device('/cpu:0'): yDqo = ZylS.float32 SRYB = ZylS.get_variable(mWFP, ROpF, initializer=MuED, dtype=yDqo) return SRYB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def js1U(mWFP, ROpF, MuED, XJsN):\n with ZylS.device('/cpu:0'):\n yDqo = ZylS.float32\n SRYB = ZylS.get_variable(mWFP, ROpF, initializer=MuED, dtype=yDqo, trainable=XJsN)\n return SRYB", "def js1U(mWFP, ROpF, MuED, yDqo):\n with ZylS.device('/cpu:0'):\n SRYB = ZylS.get_variable(mWFP...
[ "0.7053174", "0.68374807", "0.68162715", "0.6711794", "0.670901", "0.669595", "0.6693301", "0.6679854", "0.66779804", "0.6661204", "0.6656669", "0.66533124", "0.66533124", "0.6645065", "0.6637938", "0.6597281", "0.65675366", "0.6566952", "0.6566952", "0.6555388", "0.65461564"...
0.65545285
20
Helper to create an initialized Variable with weight decay. Note that the Variable is initialized with a truncated normal distribution. A weight decay is added only if one is specified.
def xSbR(mWFP, ROpF, z2bo, TI1B): SRYB = ZylS.get_variable(mWFP, ROpF, initializer=ZylS.truncated_normal_initializer(stddev=z2bo)) if TI1B is not None: oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss') ZylS.add_to_collection('losses', oNEO) return SRYB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJ6q(mWFP, ROpF, z2bo, TI1B):\n yDqo = ZylS.float32\n SRYB = Es0b(mWFP, ROpF, initializer=ZylS.compat.v1.truncated_normal_initializer(stddev=z2bo, dtype=yDqo))\n if TI1B is not None:\n oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss')\n ZylS.compat.v1.add_to_collectio...
[ "0.7469696", "0.743359", "0.7426465", "0.7364982", "0.7331814", "0.7322328", "0.7322328", "0.7308076", "0.73032296", "0.7302452", "0.7286879", "0.7284501", "0.7284256", "0.72804457", "0.7278874", "0.7264561", "0.7261074", "0.7261074", "0.72570914", "0.72465795", "0.72431684",...
0.72117794
22
Convert single letter T or F to bool
def BBLH(YKHO, wEf2): if wEf2.lower().startswith('f') or wEf2.strip() == '0': return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VYWp(WKvO):\n return 'T' if WKvO else 'F'", "def ZylS(YKHO, WKvO):\n if type(WKvO) == type(u'') or type(WKvO) == type(str('')):\n if WKvO.lower().strip() == 'true':\n return True\n else:\n return False\n elif type(WKvO) == type(True):\n return WKvO\n els...
[ "0.7453768", "0.7453327", "0.7319125", "0.72737825", "0.72026634", "0.7191725", "0.713989", "0.71006", "0.70545363", "0.70386565", "0.70348585", "0.7012125", "0.70022815", "0.6999104", "0.6993599", "0.6989158", "0.6974722", "0.6973417", "0.6970352", "0.6964502", "0.69580454",...
0.0
-1
Calculates the KL divergence of Q from P, where Q and P are univariate Gaussian distributions.
def dzAH(Iuka, xp8Y, Wmca, ZP3V): return ZylS.reduce_sum(0.5 * ZylS.math.log(ZP3V / xp8Y) + (xp8Y + ZylS.square(Iuka - Wmca)) / (2.0 * ZP3V) - 0.5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PlVk(V6IE, T8ck):\n _hZ2 = 1e-05\n V6IE = V6IE + _hZ2\n T8ck = T8ck + _hZ2\n scUA = oyIN.sum(V6IE * oyIN.log(V6IE / T8ck))\n return scUA", "def dzAH(XP5J, vexM):\n return XP5J * RKD7(XP5J / vexM) + (1.0 - XP5J) * RKD7((1.0 - XP5J) / (1.0 - vexM))", "def dzAH(XP5J: np.ndarray, vexM: np.nda...
[ "0.8398954", "0.81295866", "0.8112332", "0.8049948", "0.80224264", "0.79590505", "0.7927456", "0.77778333", "0.77365243", "0.7735142", "0.76552206", "0.7629502", "0.75265676", "0.7482131", "0.73451334", "0.7342594", "0.7304657", "0.7216775", "0.7216401", "0.72006524", "0.7168...
0.7628485
12
Calculates the mean and covariance of the joint distribution q(f)
def Yzz8(Wmca, h948, Z5Mx, WZcn, g4y1): g_0K = ZylS.linalg.band_part(h948, -1, 0) CAP2 = g_0K @ ZylS.linalg.matrix_transpose(g_0K) FJ3O = WZcn.K(Z5Mx) c8sE = tdZ4(FJ3O) xLze = WZcn.K(g4y1, Z5Mx) k0lF = xLze @ c8sE QbdT = ZylS.squeeze(k0lF @ Wmca, axis=-1) jHxP = WZcn.K(g4y1) o4sw = Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jkrO(YKHO):\n YKHO.Q = oyIN.matmul(YKHO.G, YKHO.q)\n YKHO.Q = oyIN.matmul(YKHO.Q, YKHO.G.transpose())\n YKHO.P = oyIN.matmul(YKHO.F, YKHO.P)\n YKHO.P = oyIN.matmul(YKHO.P, YKHO.F.transpose()) + YKHO.Q", "def SGd0(YKHO):\n YKHO.q -= YKHO.q.mean()", "def _IBo(WKvO, LVAh):\n exwG = len(WKvO)...
[ "0.6497491", "0.614285", "0.5983931", "0.59788775", "0.5846367", "0.58435297", "0.5835498", "0.5831617", "0.58161795", "0.5782607", "0.57575804", "0.5749645", "0.5661522", "0.5629973", "0.55959976", "0.5575694", "0.5559343", "0.5552854", "0.5535978", "0.5533922", "0.5518397",...
0.5321362
52
Finds all subclasses of given parent class within given packages
def JLLY(cEzT, Ro5k): PDTt = {} for XP5J in cEzT: PDTt.update(tF99(XP5J)) Hh7E = set() Q5yx = [Ro5k] while Q5yx: _AKB = Q5yx.pop() for aUGN in _AKB.__subclasses__(): if aUGN not in Hh7E: Q5yx.append(aUGN) for XP5J in cEzT: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zc9M(YKHO, KndY):\n YKHO.subclasses = []\n for G1Hx in KndY.keys():\n if KndY[G1Hx].superclass == YKHO.name:\n KndY[G1Hx].findSubclasses(KndY)\n YKHO.subclasses.append(KndY[G1Hx])\n YKHO.subclasses.sort()", "def nDwZ(XriF):\n PDaj = gFEK('org.clapper.util.classutil')\...
[ "0.7215069", "0.7057094", "0.6790816", "0.6778836", "0.67284983", "0.66330767", "0.6630571", "0.6625264", "0.66106534", "0.659626", "0.6575002", "0.6536985", "0.6503936", "0.6490082", "0.64839745", "0.645552", "0.64519936", "0.64320266", "0.64082974", "0.640166", "0.63801944"...
0.8462607
0
View function for home page of site.
def NMoC(YKHO, QePW, **B2fa): return _1tc(QePW, 'index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def kZiy():\n ...
[ "0.8521128", "0.8379754", "0.8353459", "0.83415544", "0.83415544", "0.83171177", "0.830583", "0.8298624", "0.8296122", "0.8263442", "0.8224959", "0.8217078", "0.8206788", "0.81901366", "0.81901366", "0.8182092", "0.8176577", "0.81756383", "0.8147583", "0.81347877", "0.8134787...
0.0
-1
Creates a simple CNN model
def rxue(): YpkZ = X6a0((zRFz, zRFz, 3), name='img') jtyf = yHwh(64, HhoG, activation=ybb1(alpha=rMFQ), padding='same')(YpkZ) jtyf = kipr(jtyf, 128, dropout=False) V70B = kipr(jtyf, 128) vCua = kipr(V70B, 256) qR5I = kipr(vCua, 64) o4Jx = yHwh(1, OAaz, activation='sigmoid', padding='same')(q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQs7():\n C3ST = ileL()\n C3ST.add(lTlC(32, 3, activation='relu', input_shape=Nq1b.INPUT_SHAPE))\n C3ST.add(ehTc(pool_size=2))\n C3ST.add(lTlC(64, 3, activation='relu'))\n C3ST.add(ehTc(pool_size=2))\n C3ST.add(lTlC(128, 3, activation='relu'))\n C3ST.add(ehTc(pool_size=2))\n C3ST.add(lT...
[ "0.77976626", "0.7734994", "0.76746196", "0.76589215", "0.75969726", "0.75425833", "0.7498378", "0.7497283", "0.7470913", "0.74641085", "0.7421798", "0.73935676", "0.73871386", "0.7378928", "0.73333806", "0.7289977", "0.72843623", "0.72809625", "0.7273948", "0.7233407", "0.72...
0.0
-1
Spawns a graphical gate that can be used to update the coordinates of the current gate.
def cl53(YKHO, xMux, aNZO): if i1WI(YKHO.source_channels, xMux): IyTF = YKHO.gate_type(YKHO.verts, aNZO, xMux) YKHO.spawn_list.append(IyTF) return IyTF else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO):\n from neuron import gui\n if not hasattr(YKHO, 'gOpt'):\n from numpy import pi\n YKHO.gOpt = MKlR.Shape(0)\n YKHO.gOpt.view(-2100, -2100, 4200, 4200, 230, 450, 200.64, 200.32)\n YKHO.gOpt.rotate(0, 0, 0, pi / 2, 0, 0)\n MKlR.pt3dclear(sec=YKHO.sec)\n MKlR.pt...
[ "0.5968553", "0.59668887", "0.58577996", "0.577603", "0.5711199", "0.57011473", "0.5606229", "0.55557317", "0.55140585", "0.5424985", "0.54158676", "0.53968006", "0.5393322", "0.5351248", "0.5331917", "0.5330746", "0.53131926", "0.53051805", "0.5279141", "0.52791375", "0.5261...
0.57108444
5
This function generates the random number between a given range
def ADdS(nEeK=0, ekgN=1): global seed yokr = 16807 * yokr % 2147483647 return nEeK + (ekgN - nEeK) * yokr / 2147483647
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oRCQ(YKHO, yKcO, JCyR):\n return tuKI.randint(int(yKcO), int(JCyR))", "def qukk(YKHO, kpLf, JCoA):\n return vPAK", "def TXxF(P8oC, ZMSp):\n tuKI.seed()\n NXpY = ZMSp - P8oC\n return tuKI.random() * NXpY + P8oC", "def xac_(min, max):\n return tuKI.random() * (max - min) + min", "def Gi...
[ "0.83895993", "0.82139266", "0.8122229", "0.81176674", "0.7971335", "0.7917098", "0.78230643", "0.77187204", "0.7717863", "0.768327", "0.76789457", "0.7661556", "0.7661556", "0.76346993", "0.761615", "0.76060164", "0.75568813", "0.75423783", "0.7532968", "0.7531455", "0.75235...
0.68376637
99
Is an energy equal to another? Compares only the value, with implicit unit conversion
def xa14(YKHO, Elif): ke2i = 1.59e-05 if isinstance(Elif, Nsj3) and (not isinstance(Elif, YKHO.__class__)): return False if isinstance(Elif, WnaT): Elif = Elif.to('Ha') return abs(Elif - float(YKHO.to('Ha'))) < ke2i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kP3D(jybH, VYvU, aEqx):\n assert str(VYvU) == aEqx['str']\n assert VYvU.display_str() == aEqx['display_str']\n assert VYvU.value == aEqx['value']", "def xa14(YKHO, Elif):\n zraP = YKHO.units == Elif.units\n return zraP and oyIN.allclose(YKHO.value, Elif.value)", "def xa14(YKHO, Elif):\n i...
[ "0.703992", "0.66349804", "0.66197", "0.65913105", "0.6591208", "0.65891457", "0.65444785", "0.6510997", "0.6462595", "0.6399772", "0.6396375", "0.6395605", "0.63816804", "0.63747954", "0.6319752", "0.6304501", "0.62746274", "0.62710047", "0.6235516", "0.62343925", "0.6228931...
0.69996303
1
Add another energy to this list, if it does not already appear
def SStx(YKHO, Elif: Energy) -> None: for ZfUD in YKHO: if Elif == ZfUD: bo34.warning(f'Not appending {Elif} to the energies - already present. Moving to the end') YKHO.append(YKHO.pop(YKHO.index(ZfUD))) return return super().append(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qbnw(YKHO, BWXx):\n YKHO._energies = BWXx\n if hasattr(YKHO.energy_list, '__iter__'):\n YKHO.energy_list.append(BWXx)\n else:\n YKHO.energy_list = [BWXx]", "def CJqB(YKHO, Fpca):\n YKHO.equipment.append(Fpca)", "def SStx(YKHO, Elif):\n if Elif not in YKHO:\n super().appe...
[ "0.654704", "0.62495136", "0.6236176", "0.6232324", "0.6110531", "0.6039043", "0.6030269", "0.5949654", "0.5906398", "0.5879012", "0.584535", "0.584535", "0.584535", "0.584535", "0.58350533", "0.58350533", "0.58350533", "0.5807792", "0.5803171", "0.57947105", "0.5774555", "...
0.8254992
0
First potential energy in this list
def qDZK(YKHO) -> h8nf[URML]: return YKHO.first(energy_type=URML)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VYvU(YKHO):\n if YKHO._energy:\n return YKHO._energy[0][0]", "def RRXs(YKHO):\n cIIR = oyIN.argmin(YKHO.energy)\n Zu6A = YKHO.volume[cIIR]\n Ylbp = Wg84(YKHO.evaluate, Zu6A)\n return (Ylbp['fun'], Ylbp['x'][0])", "def rWkO(YKHO):\n return YKHO._total_dos[0, :]", "def rWkO(YKHO):\...
[ "0.7161482", "0.7152218", "0.65345824", "0.65345824", "0.6519363", "0.64730644", "0.64730644", "0.6468929", "0.630922", "0.62649363", "0.6263736", "0.61756486", "0.6173775", "0.6171015", "0.6160584", "0.6158487", "0.6138915", "0.6138915", "0.6129119", "0.61146915", "0.6110895...
0.72918236
0
First potential energy in this list
def bV3v(YKHO) -> h8nf[URML]: return YKHO.last(energy_type=URML)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qDZK(YKHO) -> h8nf[URML]:\n return YKHO.first(energy_type=URML)", "def VYvU(YKHO):\n if YKHO._energy:\n return YKHO._energy[0][0]", "def RRXs(YKHO):\n cIIR = oyIN.argmin(YKHO.energy)\n Zu6A = YKHO.volume[cIIR]\n Ylbp = Wg84(YKHO.evaluate, Zu6A)\n return (Ylbp['fun'], Ylbp['x'][0])"...
[ "0.72918236", "0.7161482", "0.7152218", "0.65345824", "0.65345824", "0.6519363", "0.64730644", "0.64730644", "0.6468929", "0.630922", "0.62649363", "0.6263736", "0.61756486", "0.6173775", "0.6171015", "0.6160584", "0.6158487", "0.6138915", "0.6138915", "0.6129119", "0.6114691...
0.59052
37
Is an energy equal to another? Compares only the value, not whether they are estimated
def xa14(YKHO, Elif): return super().__eq__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n ke2i = 1.59e-05\n if isinstance(Elif, Nsj3) and (not isinstance(Elif, YKHO.__class__)):\n return False\n if isinstance(Elif, WnaT):\n Elif = Elif.to('Ha')\n return abs(Elif - float(YKHO.to('Ha'))) < ke2i", "def xa14(YKHO, Elif):\n return YKHO.E == Elif.E", "...
[ "0.69701385", "0.67797995", "0.6686642", "0.66185784", "0.6618166", "0.6611149", "0.6578971", "0.6515665", "0.6498894", "0.64901656", "0.6475173", "0.6473439", "0.6445975", "0.6436399", "0.6418946", "0.64142704", "0.6388097", "0.6381583", "0.6336831", "0.63044405", "0.6301107...
0.0
-1
Convert this array to a new unit, returning a copy
def Br5Q(YKHO, rYO3): return JDph(YKHO, rYO3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return xfgo(YKHO.value.copy(), YKHO.units, YKHO.uncertainty.copy(), YKHO.uncertainty_type)", "def dYHS(YKHO, PXGI):\n Aofo = YKHO.copy()\n Aofo.inunit(PXGI)\n return Aofo", "def jth9(YKHO) -> 'vec':\n return he6J(*YKHO.array)", "def jth9(YKHO):\n yvT9 = w4OU(shape=YKHO.sha...
[ "0.72953534", "0.6712843", "0.67059416", "0.65136117", "0.62367684", "0.6047355", "0.60114396", "0.59893465", "0.5982952", "0.5977831", "0.5974564", "0.5974564", "0.5953083", "0.5947689", "0.5936148", "0.5934778", "0.59212124", "0.58961713", "0.5895163", "0.5892335", "0.58729...
0.57361895
37
First generate a list of random image pairs.
def jQ95(YKHO): MIc8 = [] jINc = [] for Ux0P in Hy7s.listdir(YKHO.txtDir1.text()): if Ux0P.upper().endswith('.JPG') or Ux0P.upper().endswith('.JPEG'): MIc8.append(Hy7s.path.join(YKHO.txtDir1.text(), Ux0P)) if YKHO.txtDir2.text() != '': for Ux0P in Hy7s.listdir(YKHO.txtDir2.te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WKfh(y_PJ=None, Ep8u=8):\n if y_PJ is None:\n raise NotImplementedError('Faces do not exist')\n zNig = y_PJ.shape[0]\n kgDL = []\n for bGrB in range(Ep8u):\n try:\n _0VL = tuKI.sample(range(0, zNig - 1), 2)\n except ValueError as e:\n print('More than 2 fa...
[ "0.7042805", "0.69654256", "0.6950991", "0.6919755", "0.69196516", "0.67417884", "0.6708807", "0.67027783", "0.67027783", "0.6693993", "0.66873085", "0.66670287", "0.66610235", "0.66610235", "0.6646123", "0.662927", "0.65951455", "0.6591319", "0.65415806", "0.6499489", "0.647...
0.68816113
5
dict_merge Merge dictionaries of dictionaries.
def RSKQ(*fgcx): sjXb = Pusg(set.union, map(set, fgcx)) XIcQ = {} for H5ew in sjXb: XIcQ[H5ew] = {} for Csk6 in fgcx: XIcQ[H5ew].update(Csk6.get(H5ew, {})) return XIcQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def roQF(WbPA, S69B):\n XIcQ = {**WbPA, **S69B}\n return XIcQ", "def roQF(m2Vb, g6HL):\n RgYu = m2Vb.copy()\n for H5ew in g6HL:\n if H5ew in m2Vb and isinstance(m2Vb[H5ew], dict) and isinstance(g6HL[H5ew], dict):\n RgYu[H5ew] = roQF(m2Vb[H5ew], g6HL[H5ew])\n else:\n ...
[ "0.8015183", "0.7977642", "0.7971211", "0.78843933", "0.78832537", "0.7841442", "0.7819969", "0.7809472", "0.7807274", "0.7787659", "0.7786085", "0.77846706", "0.77811605", "0.7772038", "0.7763561", "0.77592796", "0.77547807", "0.77494144", "0.7747388", "0.774687", "0.7738126...
0.76960164
27
Main/default path that serves index.html from the templates folder
def d6pt(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P8oC(pmON):\n return TvZl('index.html')", "def d6pt(pmON):\n return TvZl('index.html')", "def d6pt(pmON):\n return TvZl('index.html')", "def d6pt(pmON):\n return TvZl('index.html')", "def d6pt(pmON):\n return TvZl('index.html')", "def d6pt(pmON):\n return TvZl('index.html')", "def...
[ "0.7763373", "0.776249", "0.776249", "0.776249", "0.776249", "0.776249", "0.776249", "0.776249", "0.7691581", "0.76618904", "0.7584132", "0.75240964", "0.7509465", "0.7496128", "0.7484916", "0.7465472", "0.7464455", "0.74349433", "0.7426239", "0.7420277", "0.74018335", "0.7...
0.0
-1
The purpose of this helper is to create a Message object without corresponding UserMessage rows being created.
def ur_k(vfhk: str, wOb_: Stream) -> LuKW: nG3o = wOb_.recipient Ol8d = LuKW(sender=vC92, realm=bkz0, recipient=nG3o, content=vfhk, date_sent=EnDd(), sending_client=b4kT) Ol8d.set_topic_name(O7Jy) Ol8d.save() return Ol8d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K1ka(YKHO):\n return", "def LFwG(l5Ny):\n return xPRj.objects.messages.Message({'message_id': 1, 'from': {'id': 123, 'first_name': 'Nobody'}, 'chat': {'id': -123, 'type': 'chat', 'title': 'Something'}, 'date': 1, 'text': l5Ny})", "def iJ7U(Ol8d):\n return PJEK(type=loOw(Ol8d.level), message_html=s...
[ "0.6820807", "0.672597", "0.66953546", "0.63922536", "0.63440025", "0.627774", "0.6156232", "0.6152931", "0.6124145", "0.60988075", "0.6071541", "0.60544664", "0.60507286", "0.60504293", "0.60354966", "0.5993909", "0.5970357", "0.5944164", "0.5924069", "0.5918006", "0.5881613...
0.0
-1
Separtates the string by integers
def iOjM(vIwR): Aofo = [] U6D_ = vIwR[0] for hcXw in vIwR[1:]: if hcXw.isalpha(): if U6D_.isdigit(): Aofo.append(int(U6D_)) U6D_ = hcXw elif U6D_.isupper() and hcXw.islower(): U6D_ += hcXw else: Aofo....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GpXw(KCHu: str) -> int:\n return int(''.join((Ko6S for Ko6S in KCHu if Ko6S.isdigit())))", "def OBJS(str):\n eHxA = ZbWC.findall('(\\\\d+|\\\\D+)', str)\n eHxA = [ZbWC.match('\\\\d', WKvO) and int(WKvO) or WKvO for WKvO in eHxA]\n return eHxA", "def gXtX(KCHu: str) -> x1iM[int]:\n return XqC...
[ "0.7171751", "0.69942987", "0.69475776", "0.6857847", "0.6764414", "0.67179745", "0.6684573", "0.66839385", "0.66451645", "0.66199493", "0.65742147", "0.6570104", "0.6567394", "0.65639925", "0.6557074", "0.6517032", "0.65137964", "0.64924175", "0.6486553", "0.64811", "0.64706...
0.0
-1
Return a metric for selecting best model.
def yAIR(): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AcYW(YKHO) -> h8nf[float]:\n return YKHO._best_metric", "def nd85(YKHO):\n return YKHO.auto_est.get_best_model()", "def uqnm(YKHO):\n return YKHO.model_finder.best_model()", "def OmFP(YKHO):\n QxIo = YKHO.get_summary()\n return QxIo.get('best', None)", "def nd85(YKHO):\n return YKHO.b...
[ "0.74719447", "0.7443367", "0.73237115", "0.71886146", "0.7112727", "0.7079797", "0.7064413", "0.6982911", "0.6964914", "0.6877272", "0.6852347", "0.68279314", "0.6780112", "0.67609435", "0.67569053", "0.6754116", "0.6741468", "0.6740634", "0.67404693", "0.66956997", "0.66841...
0.63404256
54
Decode base64 input images and save to user folder
def PWfg(ESvo, Yw_3, OQe7, yKcO): iXTm = [] for YRbF in range(OQe7): VXjJ = Yw_3[YRbF] _cnG = VXjJ.split(',', 1)[1] oII8 = VXjJ.split(';', 1)[0] YBcr = oII8.split('/', 2)[1] CSMc = WR89.b64decode(_cnG) C7_O = '/image' + str(yKcO + YRbF) hWND = ESvo + C7_O ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lGZA(GQzu, UXEK=None):\n ThLH = WR89.b64decode(ZbWC.sub('^data:image/.+;base64,', '', GQzu))\n if UXEK:\n with open(UXEK, 'wb') as nUeQ:\n nUeQ.write(ThLH)\n return ThLH", "def HHfX(aq4b, gIsw):\n with open(gIsw, 'wb') as QM8V:\n QM8V.write(WR89.b64decode(aq4b))", "def ...
[ "0.686446", "0.68202317", "0.6654636", "0.65152156", "0.6506777", "0.6505895", "0.643325", "0.6406073", "0.6296902", "0.62143826", "0.6197855", "0.6194697", "0.61505353", "0.61481696", "0.6136561", "0.6128382", "0.6080927", "0.60780245", "0.60763085", "0.6072897", "0.60323757...
0.6977156
0
Sum of the abs difference of the mean of the simulated and obs data
def uKlp(WKvO, LVAh): return oyIN.sum(oyIN.abs(oyIN.mean(WKvO, axis=0) - oyIN.mean(LVAh, axis=0)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Emt7(AjzU, _sQW):\n gdEx = AjzU.subtract(_sQW).abs()\n return gdEx.mean()", "def W4jA(YKHO):\n exwG = YKHO.y_actual.shape[0]\n Emt7 = oyIN.sum(oyIN.abs(YKHO.y_predicted - YKHO.y_actual))\n return Emt7 / exwG", "def k1tJ(YKHO, YV5x=None):\n ormZ = 100000.0\n for YRbF, r845 in Hs6x.combi...
[ "0.6949622", "0.6780351", "0.67372453", "0.6636729", "0.66350925", "0.6601762", "0.6576591", "0.65737385", "0.6564537", "0.65267336", "0.6475915", "0.6464979", "0.64193386", "0.6367445", "0.6307543", "0.6307543", "0.630714", "0.6295252", "0.6292567", "0.62661004", "0.62655747...
0.0
-1
Check the estimated value of theta1 and theta2
def ruHj(CsDk): for YRbF in range(len(B9EC)): khQ6 = oyIN.array([ZSFW.weighted_avg_and_std(dBuj.thetas[:, YRbF], dBuj.ws, axis=0) for dBuj in CsDk]) QrM1.errorbar(range(Kt_s), khQ6[:, 0], khQ6[:, 1], label='Theta %i' % YRbF) QrM1.hlines(B9EC, 0, Kt_s, linestyle='dotted', linewidth=0.7) QrM1....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QCFx(YKHO):\n HhVR = 2\n ppBc = oyIN.array([(oyIN.array(WKvO), oyIN.sin(WKvO) + 0.2 * oyIN.cos(13 * WKvO)) for WKvO in oyIN.linspace(0, 2 * oyIN.pi, 64)])\n EcVT = oyIN.array([oyIN.array(WKvO) for WKvO in oyIN.linspace(0, 2 * oyIN.pi, 16, endpoint=False)])\n WKvO, LVAh = zip(*ppBc)\n azQ3, CIn9 ...
[ "0.63746524", "0.63293165", "0.61973375", "0.61474544", "0.6134751", "0.60521585", "0.6048385", "0.60481477", "0.6031533", "0.60195285", "0.6011708", "0.59898216", "0.59898216", "0.59729457", "0.5969601", "0.59641784", "0.5924388", "0.5881781", "0.5881687", "0.586906", "0.583...
0.0
-1
Gets the pose of the camera, with T given in world coordinates. If convention = 'openGL', the Z axis of T is the backward direction of the camera, with Y pointing up and X pointing to the right. If convention = 'standard', the Z axis of T is the forward direction of the camera, with Y pointing down and X pointing to th...
def H1xc(YKHO, r57q='standard'): if r57q == 'openGL': return YKHO.camera.matrix() else: Kt_s = YKHO.camera.matrix() jPOT = [-1, 0, 0, 0, 1, 0, 0, 0, -1] return (V2xT.mul(Kt_s[0], jPOT), Kt_s[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GHJO(Kt_s):\n Mkmy = A3Vt.from_dcm(Kt_s[0:3, 0:3])\n Otid = Mkmy.as_euler('xyz')\n shtX = bYdR(Kt_s[0][3], Kt_s[1][3], Kt_s[2][3], Otid[0], Otid[1], Otid[2])\n return shtX", "def X9U2(Kt_s):\n shtX = oyIN.zeros([6, 1])\n URbk = dEmD(Kt_s)\n shtX = [Kt_s[0, 3], Kt_s[1, 3], Kt_s[2, 3], URb...
[ "0.679892", "0.6600843", "0.64048445", "0.63392836", "0.6240695", "0.6119225", "0.60297817", "0.60005516", "0.59657174", "0.595602", "0.5952591", "0.5918452", "0.59177583", "0.59158826", "0.58134496", "0.5798083", "0.57905304", "0.5786228", "0.576998", "0.5759406", "0.572444"...
0.6476632
2
Returns a Klampt C++ Viewport() instance corresponding to this view. This is used to interface with the Widget classes
def Epm7(YKHO): vuA2 = MkNd() vuA2.x, vuA2.y, vuA2.w, vuA2.h = (YKHO.x, YKHO.y, YKHO.w, YKHO.h) vuA2.n, vuA2.f = YKHO.clippingplanes vuA2.perspective = True Ir38 = float(YKHO.w) / float(YKHO.h) emWK = YKHO.fov * epAf.pi / 180.0 vuA2.scale = 1.0 / (2.0 * epAf.tan(emWK * 0.5 / Ir38) * Ir38) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sCnA():\n TQKG = vyaI.M3dView.active3dView().widget()\n return h_2_(Swre(TQKG), x5x0.QWidget)", "def aRKK(YKHO):\n return YKHO.__viewport", "def J3ya(YKHO):\n tTee = Rv6M(kLxY(name='viewport', show_label=False, editor=yjpB()))\n return tTee", "def aRKK(YKHO):\n return YKHO._viewport", ...
[ "0.7999833", "0.73774225", "0.7288124", "0.7277546", "0.70827955", "0.69911504", "0.6628288", "0.6493479", "0.64794946", "0.64598405", "0.6304761", "0.6226561", "0.6121901", "0.60799146", "0.60463125", "0.6025889", "0.6006609", "0.5983433", "0.59693956", "0.59228796", "0.5921...
0.6519894
7
Returns a pair of 3tuples indicating the ray source and direction in world coordinates for a screencoordinate point (x,y)
def eRK3(YKHO, WKvO, LVAh): A3Vt, a1PO = YKHO.camera.matrix() P6bq = float(WKvO - (YKHO.x + YKHO.w / 2)) / YKHO.w Ty9i = float(YKHO.y + YKHO.h / 2 - LVAh) / YKHO.w Ir38 = float(YKHO.w) / float(YKHO.h) emWK = YKHO.fov * epAf.pi / 180.0 NXpY = 2.0 * epAf.tan(emWK * 0.5 / Ir38) * Ir38 Csk6 = (P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SAnN(YKHO, WKvO, LVAh):\n return (WKvO, LVAh, YKHO.loc[2] + YKHO.direction[2] * YKHO.distance)", "def y8OP(YKHO, WKvO, LVAh):\n YKHO.init_view()\n ODyO(Henh)\n rNUd()\n yKcO = XTiz.array(Q0gC(WKvO, LVAh, 0.001))\n Os4s = XTiz.array(Q0gC(WKvO, LVAh, 0.999))\n XSoh = Os4s - yKcO\n XSoh ...
[ "0.6898489", "0.66838074", "0.628362", "0.624647", "0.6058222", "0.5976071", "0.59526616", "0.59270746", "0.5846499", "0.5828702", "0.5787732", "0.5787253", "0.5771903", "0.5756896", "0.5715555", "0.5715555", "0.570968", "0.5704988", "0.57041085", "0.5704054", "0.56903136", ...
0.6246532
3
Call this to redraw the screen on the next event loop
def uUrB(YKHO): YKHO.window.refresh()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCKv(YKHO):\n pass", "def xoyg(YKHO):\n YKHO._surface.fill(a9eO.Color(48, 48, 48))\n YKHO._display_game_board()\n a9eO.display.flip()", "def KEJe(YKHO):\n YKHO.evo_flock.main_loop()\n YKHO.clear_scene()\n YKHO.draw_world()\n YKHO.populate_world()", "def gCKv(YKHO):\n YKHO.send(...
[ "0.8049183", "0.7907419", "0.7862137", "0.774213", "0.774213", "0.77365816", "0.77014107", "0.76427925", "0.7624938", "0.76113904", "0.7608493", "0.75973624", "0.75406", "0.7525572", "0.75066245", "0.74810034", "0.7449418", "0.7429647", "0.7358814", "0.7348161", "0.7331247", ...
0.0
-1
Get a summary list of all available runs.
def NMoC(YKHO, QePW): _hkX = [] try: jGRS = RBVb.SystemState.invoke() _hkX = jGRS.client_summary() except Exception as e: import traceback traceback.print_exc() bo34.error('Error getting system status: {}'.format(tTpl)) return Xqgu.HttpResponse(qQXR.dumps(_hkX), c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MB7B(ftWC):\n return ftWC.get_runs(include_children=True)", "def tEwG(YKHO):\n return YKHO.model.get_available_summaries()", "def nUHY(YKHO):\n NCls = PGBI.get_run_db()\n NCls.list_runs(uid=YKHO.metadata.uid, project=YKHO.metadata.project).show()", "def Kt_F(YKHO):\n k245 = nNTj.objects.fi...
[ "0.7274313", "0.70640826", "0.6825323", "0.67456615", "0.659927", "0.659075", "0.6524997", "0.64905286", "0.6304818", "0.6300633", "0.6300633", "0.62655884", "0.6251269", "0.6246469", "0.6204207", "0.6190071", "0.61147046", "0.6108482", "0.6093299", "0.6077729", "0.6074426", ...
0.0
-1
Test case for order_amend Amend the quantity or price of an open order.
def cpin(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uky0(YKHO):\n YKHO.test_handle_create_new_order()\n y4Sy = {'id': 1, 'quantity': 5, 'action': 'amend'}\n ik8l = YKHO.order_book.process_order(y4Sy)\n YKHO.assertIsNone(ik8l, 'Top of book has not changed')\n YKHO.assertEqual(YKHO.order_book.bid_list[2]['id'], 1)\n YKHO.assertEqual(YKHO.order_b...
[ "0.7919301", "0.68547714", "0.6301348", "0.6233822", "0.6141299", "0.5941164", "0.5934707", "0.5934522", "0.58943087", "0.58417314", "0.5784773", "0.57615566", "0.57136333", "0.56877536", "0.56737584", "0.56667584", "0.5651855", "0.56516546", "0.56516546", "0.5613814", "0.560...
0.6656457
2
Initialize with a place name.
def FIMM(YKHO, mWFP): YKHO.name = mWFP YKHO.contained_places = set() YKHO.containing_places = set()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, TGQZ, TdZ4, ekCf):\n YKHO.place_name = TGQZ\n YKHO.geocode = TdZ4\n YKHO.project_id = ekCf", "def FIMM(YKHO, W0jx, iCd0, SsWt, mWFP, vGRC=None, _AKB=None):\n YKHO.type = W0jx\n YKHO.geography = iCd0\n YKHO.id = SsWt\n YKHO.name = mWFP\n YKHO.abbreviated_name = vGRC\n YKH...
[ "0.7761879", "0.74391174", "0.68457687", "0.6563813", "0.64887804", "0.64247507", "0.64088166", "0.6376406", "0.63495624", "0.6339889", "0.6339889", "0.6336476", "0.6316846", "0.6292388", "0.62858903", "0.6262604", "0.6243187", "0.6222243", "0.62015057", "0.61970097", "0.6191...
0.6871498
2
Contain the other place within this place.
def yWYp(YKHO, cnVI): YKHO.contained_places.add(cnVI) cnVI.containing_places.add(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjXf(YKHO, cnVI):\n return cnVI in YKHO.contained_places", "def C6id(YKHO):\n pass", "def sb_b(YKHO, Elif: 'SpatialInterface') -> bool:\n pass", "def yHH9(YKHO, Elif):\n return YKHO.box.overlap(Elif.box)", "def C6id(YKHO):\n YKHO._placed = True", "def PZIW(YKHO, Elif):\n MRei = YKHO...
[ "0.66848207", "0.657843", "0.63145906", "0.6292761", "0.6236386", "0.62190974", "0.6212013", "0.619973", "0.61606306", "0.6060047", "0.605979", "0.6058919", "0.60462636", "0.6030563", "0.60118705", "0.60029733", "0.5994888", "0.59846264", "0.59339964", "0.59166455", "0.591250...
0.7895209
0
Initialize with a place name.
def FIMM(YKHO, mWFP): super().__init__(mWFP) YKHO.clock = '' YKHO.events = mBkc() YKHO.conflict = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, TGQZ, TdZ4, ekCf):\n YKHO.place_name = TGQZ\n YKHO.geocode = TdZ4\n YKHO.project_id = ekCf", "def FIMM(YKHO, W0jx, iCd0, SsWt, mWFP, vGRC=None, _AKB=None):\n YKHO.type = W0jx\n YKHO.geography = iCd0\n YKHO.id = SsWt\n YKHO.name = mWFP\n YKHO.abbreviated_name = vGRC\n YKH...
[ "0.7761879", "0.74391174", "0.6871498", "0.68457687", "0.6563813", "0.64887804", "0.64247507", "0.64088166", "0.6376406", "0.63495624", "0.6339889", "0.6339889", "0.6336476", "0.6316846", "0.6292388", "0.62858903", "0.6262604", "0.6243187", "0.6222243", "0.62015057", "0.61970...
0.0
-1
Return true if any of this place's containers have the same conflict as the given conflict.
def xyx3(YKHO, FDvM): return YKHO.container_has_conflict(FDvM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PJCY(YKHO, FDvM):\n for C6id in YKHO.containing_places:\n if C6id.has_conflict(FDvM):\n return True\n return False", "def xyx3(YKHO, FDvM):\n return FDvM == YKHO.conflict", "def K69n(YKHO) -> bool:\n return len(YKHO.conflicts()) == 0", "def Vu7W(YKHO, QTBn, rdlD, fvDH):\n ...
[ "0.8786769", "0.71775687", "0.67952985", "0.6665337", "0.6665337", "0.6651154", "0.63789856", "0.63416016", "0.6339159", "0.6304973", "0.62327373", "0.6050619", "0.60474473", "0.60069925", "0.59769166", "0.5951617", "0.5936057", "0.5933183", "0.5927563", "0.59070057", "0.5848...
0.77168816
1
Return list of tokens in postfix.
def NNmE(WrFl): xpjC = [] hlel = [] Ey19 = {'|': -4, '&': -3, '!': -2, '==': -1, '!=': -1, '>': 0, '>=': 0, '<': 0, '<=': 0, '+': 1, '-': 1, '*': 2, '/': 2, '~': 3, '(': 4} for YRbF in WrFl: if YRbF[0] == ')': while xpjC[-1][0] != '(': hlel.append(xpjC.pop()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkWu(YKHO) -> list:\n return qYc3(YKHO.infix_tokens())", "def s2mk(YKHO):\n Aofo = [YRbF for YRbF in YKHO.gettoken()]\n return Aofo", "def IdVy(YKHO) -> list:\n return YKHO._infix_tokens_helper(YKHO.root)", "def MH9s(IdVy):\n L17J = []\n xkWu = []\n for eOtH in IdVy:\n if tpts...
[ "0.8297597", "0.7236326", "0.7213691", "0.69429255", "0.6892713", "0.68144166", "0.67541724", "0.6673796", "0.6516189", "0.6499393", "0.623327", "0.61968225", "0.61871713", "0.61574143", "0.6139585", "0.6115787", "0.60908556", "0.608985", "0.6081857", "0.60724306", "0.6029332...
0.6126459
15
This test checks that the YAML generated for a .bib file looks as expected and that newlines are not filtered out.
def MXoY(): Aofo = zx68('book.bib', normalize=True)[0] assert Aofo.fm['abstract'] == 'Paragraph one.\n\nParagraph two.\n\nParagraph three.' assert Aofo.fm['authors'] == ['Nelson Bigetti', 'Firstname von Book-Author, Jr.', 'Someone Else'] assert Aofo.fm['featured'] is True del Aofo.fm['publishDate'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SR9f() -> None:\n jj62.yaml2bib(bib_fname='examples/example.bib', dois_yaml='examples/example.yaml', replacements_yaml='examples/replacements.yaml', static_bib='examples/not_on_crossref.bib', doi2bib_database='examples/yaml2bib-doi2bib.db', crossref_database='examples/yaml2bib-crossref.db', email='basnijhol...
[ "0.69426477", "0.64237016", "0.62216383", "0.61946607", "0.6166098", "0.60558254", "0.6027409", "0.5921715", "0.5909845", "0.59023386", "0.5859853", "0.5817945", "0.56771255", "0.5600302", "0.5583848", "0.5572655", "0.5538457", "0.5528305", "0.55188984", "0.5508221", "0.54994...
0.73282796
0
Count the whole Linked List starting with this Node
def IrFd(sdCG): UHFx = 0 while sdCG: UHFx += 1 sdCG = sdCG.next return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO):\n UHFx = 0\n Q6kx = YKHO.head\n while Q6kx:\n UHFx += 1\n Q6kx = Q6kx.next\n return UHFx", "def UHFx(YKHO):\n UHFx = 0\n kMLo = YKHO.begin\n while kMLo:\n UHFx += 1\n kMLo = kMLo.next\n return UHFx", "def szAg(YKHO) -> int:\n ewCu = 0\n ...
[ "0.82232744", "0.81973237", "0.8082073", "0.806601", "0.7931527", "0.7900102", "0.7891592", "0.7826321", "0.7770293", "0.7751517", "0.7747241", "0.7709981", "0.7709234", "0.7709134", "0.76936114", "0.769126", "0.7663844", "0.7663844", "0.765329", "0.7646353", "0.76283747", ...
0.7690367
16
Construct a linked list from a list of values return the head of the created linked list
def IUcN(yv6U): if not yv6U: return None uv6v = Msxl(0) Q6kx = uv6v for BWXx in yv6U: Q6kx.next = Msxl(BWXx) Q6kx = Q6kx.next return uv6v.next
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fnqe(YKHO, IC2L):\n if not IC2L:\n return []\n sdCG = Msxl(IC2L[0])\n J3uN = sdCG\n for BWXx in IC2L[1:]:\n Esd_ = Msxl(BWXx)\n J3uN.next = Esd_\n J3uN = J3uN.next\n return sdCG", "def loaW(list):\n sdCG = Msxl(-1)\n wlsD = sdCG\n for WKvO in list:\n ...
[ "0.76272285", "0.74544704", "0.73701304", "0.73433626", "0.7238338", "0.71394205", "0.70605683", "0.7011992", "0.69916564", "0.68633926", "0.675215", "0.66754633", "0.6658736", "0.6637813", "0.66327703", "0.6627519", "0.6627012", "0.66214484", "0.66104513", "0.6591153", "0.65...
0.7524013
1
Initializes Woodwork typing information for a Series, returning a new Series. The dtype of the returned series will be converted to match the dtype associated with the LogicalType.
def ahna(dy_H, MiW6=None, qMWR=None, KCB2=True, JBZA=None, yIVm=None): MiW6 = TWu6(dy_H, MiW6, dy_H.name) HKlI = cbfe(dy_H, MiW6) HKlI.ww.init(logical_type=MiW6, semantic_tags=qMWR, use_standard_tags=KCB2, description=JBZA, metadata=yIVm) return HKlI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jBy8(YKHO, KCHu):\n pass", "def ahna(HrOk, nPrm, d6pt=None, mWFP=None):\n d6pt = SnBA.none if d6pt is None else d6pt\n mWFP = SnBA.none if mWFP is None else mWFP\n MPxP = False if mWFP is SnBA.none else True\n\n def Y5qA(QpfX, mBtZ, aadv, qIxc):\n dvxC, HdFs, jY0L = qIxc\n dy_H =...
[ "0.65579796", "0.6526348", "0.633776", "0.63374966", "0.6082066", "0.59469396", "0.59298277", "0.57159925", "0.56887496", "0.56680375", "0.56582487", "0.551149", "0.5494642", "0.54789156", "0.5472974", "0.54583967", "0.5451827", "0.54385006", "0.5391676", "0.5363499", "0.5351...
0.7305418
0
Update the dtype of the underlying series to match the dtype corresponding to the LogicalType for the column.
def cbfe(dy_H, MiW6): if isinstance(MiW6, cyHT): MiW6._validate_data(dy_H) if QX8o(MiW6) == tscO: if I1iR and isinstance(dy_H, I1iR.Series): mWFP = dy_H.name e5kH = (dy_H, tuple([float, float])) dy_H = dy_H.apply(lsdN, meta=e5kH) dy_H.name = mWFP ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vEws(YKHO, yDqo):\n if YKHO.image.dtype != yDqo:\n YKHO._image = YKHO._image.astype(yDqo)\n return YKHO", "def X4pG(jQ3Z, Qg73, yXm6):\n if yXm6 in [object, int, float]:\n print(' Details of column:', Qg73)\n print(' - dtype(o):', jQ3Z[Qg73].dtypes)\n jQ3Z[Qg73] = ...
[ "0.6607031", "0.64598274", "0.63532203", "0.63443404", "0.6331208", "0.6213015", "0.612152", "0.6080228", "0.601772", "0.60069263", "0.6003948", "0.5999216", "0.5979398", "0.59747136", "0.5896571", "0.5887797", "0.5855693", "0.5831629", "0.58311594", "0.58175814", "0.58104515...
0.80789036
0
Return the dtype that is considered valid for a series with the given logical_type
def Nsr7(kQHE, MiW6): RtM0 = MiW6.backup_dtype if ZT17 and kQHE == ZT17.Series and RtM0: Ob_D = RtM0 else: Ob_D = MiW6.primary_dtype return Ob_D
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cbfe(dy_H, MiW6):\n if isinstance(MiW6, cyHT):\n MiW6._validate_data(dy_H)\n if QX8o(MiW6) == tscO:\n if I1iR and isinstance(dy_H, I1iR.Series):\n mWFP = dy_H.name\n e5kH = (dy_H, tuple([float, float]))\n dy_H = dy_H.apply(lsdN, meta=e5kH)\n dy_H....
[ "0.65520823", "0.6442726", "0.64402413", "0.62527174", "0.6228376", "0.61681026", "0.61637247", "0.61036164", "0.6103079", "0.6055584", "0.60495096", "0.6047029", "0.60398066", "0.6016488", "0.59840447", "0.59769166", "0.5976596", "0.5931453", "0.59284085", "0.592736", "0.592...
0.81178695
0
Convert inputs to arrays with at least one dimension. BlockArrays are returned unmodified.
def bxwd(*iS25): if len(iS25) == 1: ezWE = iS25[0] return ezWE if isinstance(ezWE, IFo1) else oLG2.atleast_1d(ezWE) else: yvT9 = [] for ezWE in iS25: if isinstance(ezWE, IFo1): yvT9.append(ezWE) else: yvT9.append(oLG2.atleas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CWdp(pKvt, *qIxc, **B2fa):\n\n def hptw(pKvt):\n if isinstance(pKvt, IFo1):\n return pKvt._data\n else:\n return pKvt\n W6mH = hptw(pKvt)\n dZB7 = (hptw(bGrB) for bGrB in qIxc)\n phn5 = {H5ew: hptw(wEf2) for H5ew, wEf2 in B2fa.items()}\n return (W6mH, dZB7, ph...
[ "0.6980869", "0.6544019", "0.63753545", "0.63535106", "0.634169", "0.618973", "0.60195255", "0.59978104", "0.58893895", "0.5811488", "0.5810808", "0.57982576", "0.5779376", "0.57579565", "0.5750776", "0.57438195", "0.57212484", "0.57159686", "0.5713202", "0.56863993", "0.5676...
0.5734662
16
Total number of elements in the array.
def zNig(YKHO) -> int: return YKHO._aval.size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n return len(YKHO.arr)", "def Cn47(YKHO):\n if not YKHO.array:\n return 0\n try:\n exwG = int(YKHO.array)\n if exwG < 0:\n exwG = 0\n return exwG\n except:\n return 0", "def t892(YKHO) -> int:\n ...", "def t892(YKHO):\n return YK...
[ "0.79765785", "0.7959813", "0.7790835", "0.77552223", "0.7747401", "0.7718539", "0.7711775", "0.7704779", "0.7679427", "0.76633555", "0.7627866", "0.76277584", "0.75968975", "0.75791234", "0.7549559", "0.7543963", "0.7524988", "0.74854475", "0.747153", "0.74597913", "0.744338...
0.0
-1
Return a copy of ``self._data`` as a contiguous, flattened `DeviceArray`. Note that a copy, rather than a view, of the underlying array is returned.
def SgOx(YKHO) -> DKWv: return YKHO._data[:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BKk7(YKHO):\n return E4NK.from_buffer(YKHO.buf, YKHO.starts, YKHO.shape0s, YKHO.shape1s, YKHO.stride0s, YKHO.stride1s, names=YKHO.names)", "def Bjh8(YKHO):\n nPrm = oyIN.empty(YKHO.shape, dtype=YKHO.dtype)\n cogj(Yg1o.MXNDArraySyncCopyToCPU(YKHO.handle, nPrm.ctypes.data_as(gk2W.c_void_p), gk2W.c_siz...
[ "0.6643459", "0.6624273", "0.6519774", "0.65082765", "0.64737874", "0.6468406", "0.64611465", "0.6437992", "0.6422257", "0.64003515", "0.6399976", "0.63903934", "0.6367764", "0.6309812", "0.62466174", "0.6136533", "0.61322117", "0.61003625", "0.6097909", "0.6093915", "0.60526...
0.5778186
46
Return a copy of ``self._data`` as a contiguous, flattened `DeviceArray`. Note that a copy, rather than a view, of the underlying array is returned.
def PWgb(YKHO) -> DKWv: return YKHO._data[:]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BKk7(YKHO):\n return E4NK.from_buffer(YKHO.buf, YKHO.starts, YKHO.shape0s, YKHO.shape1s, YKHO.stride0s, YKHO.stride1s, names=YKHO.names)", "def Bjh8(YKHO):\n nPrm = oyIN.empty(YKHO.shape, dtype=YKHO.dtype)\n cogj(Yg1o.MXNDArraySyncCopyToCPU(YKHO.handle, nPrm.ctypes.data_as(gk2W.c_void_p), gk2W.c_siz...
[ "0.66442317", "0.66241485", "0.6518798", "0.6508105", "0.64738953", "0.64619255", "0.64374685", "0.6421554", "0.6400026", "0.6399232", "0.6390735", "0.6366755", "0.630935", "0.6246084", "0.6136448", "0.6133007", "0.61006194", "0.6096934", "0.6093386", "0.60527587", "0.6049611...
0.6468209
5
Takes cell and returns a list of strings. The cell source is strings or nested lists, A list of substrings is returned. e.g. cell is ['first\nsecond',['third','fourth',['fifth','sixth']]] is returned as ['first', 'second', 'third', 'fourth', 'fifth', 'sixth']
def g8ky(BWXx, ABDL=1): if pyRB(BWXx): return BWXx elif ste9(BWXx): BWXx = u'\n'.join([u'\n'.join(riCw._split_cell(Q7me, ABDL + 1)) for Q7me in BWXx]) else: BWXx = str(BWXx).replace(u'\r', u'') return [Q7me for Q7me in BWXx.split(u'\n')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzRP(pmON):\n return ''.join([iBIi[XP5J] for XP5J in pmON])", "def O232(ziv1):\n qzRP = [Hy7s.linesep + ziv1]\n qzRP = [ZfUD.split(Hy7s.linesep + '|') for ZfUD in qzRP]\n qzRP = list(Hs6x.chain.from_iterable(qzRP))\n qzRP = [ZfUD.split(Hy7s.linesep + '!') for ZfUD in qzRP]\n qzRP = list(Hs6...
[ "0.62442434", "0.61301994", "0.61301994", "0.61131227", "0.6090975", "0.58450973", "0.56899714", "0.56606233", "0.5639213", "0.5623896", "0.561834", "0.5543849", "0.5473223", "0.5466527", "0.5416571", "0.5407713", "0.5398386", "0.53961813", "0.5393234", "0.5391458", "0.536575...
0.63331777
0
Serializes this instance to a Python dictionary.
def MNRr(YKHO): hlel = jth9.deepcopy(YKHO.__dict__) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> dict:\n pass", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def sS6L(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO) -> dict:\n return YKHO.__data__", "def _fYl(YKHO) -> cuzp[str, ImMB]:\n return B4us(YKHO)", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(Y...
[ "0.8867926", "0.8861291", "0.8325109", "0.8323158", "0.8313032", "0.8288802", "0.8288802", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8282073", "0.8251281", "0.8234439", "0.8234439", "0.8216978", "...
0.0
-1
Calculates intersection over union between two bounding boxes Assumes the bboxes have format [x1, y1, x2, y2]
def fcYC(MErA, ZnGJ): FbzW = max(MErA[0], ZnGJ[0]) ZVhQ = max(MErA[1], ZnGJ[1]) FOx7 = min(MErA[2], ZnGJ[2]) WYYB = min(MErA[3], ZnGJ[3]) kRTs = max(0, FOx7 - FbzW + 1) * max(0, WYYB - ZVhQ + 1) N12a = (MErA[2] - MErA[0] + 1) * (MErA[3] - MErA[1] + 1) iMA6 = (ZnGJ[2] - ZnGJ[0] + 1) * (ZnGJ[3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hpbT(YKHO, wDdI, WY2U):\n wDdI = ZylS.concat([wDdI[..., :2] - wDdI[..., 2:] * 0.5, wDdI[..., :2] + wDdI[..., 2:] * 0.5], axis=-1)\n WY2U = ZylS.concat([WY2U[..., :2] - WY2U[..., 2:] * 0.5, WY2U[..., :2] + WY2U[..., 2:] * 0.5], axis=-1)\n wDdI = ZylS.concat([ZylS.minimum(wDdI[..., :2], wDdI[..., 2:]), ...
[ "0.8157202", "0.80641544", "0.7998001", "0.7995798", "0.79881394", "0.79721", "0.7971672", "0.7931267", "0.79182017", "0.79177284", "0.79159987", "0.79061574", "0.7894061", "0.7890568", "0.7883967", "0.78810203", "0.7873976", "0.78725195", "0.7870097", "0.7870097", "0.7870097...
0.0
-1
Calculates intersection over union between two bounding boxes. IoU = Area intersection / Area union. Assumes the bboxes have format [x, y, w, h]. That means that we only have the top left point and the width and height. Internally, this method just converts the bboxes to format [x1, y1, x2, y2] and delegates to executi...
def qm66(MErA, ZnGJ): BPnI = [MErA[0], MErA[1], MErA[0] + MErA[2] - 1, MErA[1] + MErA[3] - 1] dzVI = [ZnGJ[0], ZnGJ[1], ZnGJ[0] + ZnGJ[2] - 1, ZnGJ[1] + ZnGJ[3] - 1] return fcYC(BPnI, dzVI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8gd(MErA, ZnGJ):\n ZFgS = max(0, min(MErA.right, ZnGJ.right) - max(MErA.left, ZnGJ.left))\n rfRS = max(0, min(MErA.bottom, ZnGJ.bottom) - max(MErA.top, ZnGJ.top))\n iQin = ZFgS * rfRS\n bzU2 = (MErA.right - MErA.left) * (MErA.bottom - MErA.top)\n Eq1k = (ZnGJ.right - ZnGJ.left) * (ZnGJ.bottom -...
[ "0.84985", "0.8443813", "0.83335173", "0.8286586", "0.82664573", "0.82350826", "0.81931627", "0.81433684", "0.8140348", "0.8126233", "0.8124811", "0.8091562", "0.8083199", "0.80574787", "0.80510664", "0.8027111", "0.8012582", "0.80030483", "0.79993504", "0.79792506", "0.79790...
0.0
-1
Displays the FPS in the status bar
def lT1E(YKHO, bW5R): YKHO.statusBar.SetStatusText('fps: %f' % bW5R)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def udoe(YKHO):\n YKHO.alertManager.draw(YKHO.screen)\n a9eO.display.flip()", "def dgF0(YKHO):\n KzVY = '{} - FPS: {:.2f}'.format(Fq3y, YKHO.clock.get_fps())\n g74T.display.set_caption(KzVY)", "def dgF0(YKHO):\n KzVY = '{} - FPS: {:.2f}'.format(gCuF.CAPTION, YKHO.clock.get_fps())\n g74T.displ...
[ "0.7696644", "0.76046413", "0.75043756", "0.7329207", "0.7193095", "0.71779096", "0.7155075", "0.7081083", "0.6962177", "0.6886075", "0.68324846", "0.6773084", "0.6741053", "0.67306846", "0.6671579", "0.6663873", "0.6658537", "0.65959716", "0.6508221", "0.6413018", "0.6404032...
0.8285359
0
Ensure we try to assign a sequence to the same artist.
def Rl7k(): QpfX = e1Jg({'artists': [{'name': '1'}, {'name': '2'}], 'tasks': [{'name': '0001', 'duration': 1}, {'name': '0002', 'duration': 1}, {'name': '0003', 'duration': 1}, {'name': '0004', 'duration': 1}], 'combinations': [{'tasks': ['0001', '0002', '0003'], 'weight': 10}], 'settings': {'EQUAL_TASKS_COUNT_BY_U...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qdes(YKHO, Xtuq):\n assert not YKHO.seqs, 'Sequences have already been set for this structure.'\n YKHO.seqs = tuple(Xtuq)\n assert YKHO.length == sum([Q6uT.length for Q6uT in YKHO.seqs])\n YKHO.seq = vIwR.join([Q6uT.seq for Q6uT in YKHO.seqs], '')", "def t318(YKHO, h5p_):\n for PpV4 in YKHO.se...
[ "0.5964981", "0.5734286", "0.56817013", "0.553028", "0.5525511", "0.5520616", "0.54846317", "0.54770565", "0.54559904", "0.5441918", "0.541669", "0.53876394", "0.53806704", "0.5365201", "0.53592056", "0.5343949", "0.5338639", "0.53254086", "0.5315307", "0.52952206", "0.529363...
0.0
-1
Gets the port of this OrgApacheSlingJcrJackrabbitServerRmiRegistrationSupportProperties.
def bIwZ(YKHO) -> gYcJ: return YKHO._port
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i44Y(YKHO):\n return YKHO.__port", "def bIwZ(YKHO):\n return YKHO.conf.get('rpctl', 'port', 'Unknown')", "def i44Y(YKHO):\n return YKHO._port", "def VD8p(YKHO):\n return YKHO._port", "def i44Y(YKHO):\n return YKHO.port", "def i44Y(YKHO):\n return YKHO.port", "def VD8p(YKHO):\n ...
[ "0.6695134", "0.66489077", "0.6643567", "0.66411644", "0.66163754", "0.66163754", "0.65993243", "0.6512766", "0.6512766", "0.6496326", "0.6472955", "0.64601773", "0.64601773", "0.64601773", "0.64601773", "0.64601773", "0.64601773", "0.6454691", "0.64491934", "0.6442666", "0.6...
0.67366594
0
Add items to the queue.
def e7dX(YKHO, bySB, Crrw=None, MQRi=None): wzkt = qcWV.now() if isinstance(bySB, rLdf.DataFrame): bySB = [rdlD for bGrB, rdlD in bySB.iterrows()] with YKHO.session() as cuiw: if MQRi is None: MQRi = Hs6x.cycle([None]) if Crrw is None: Crrw = Hs6x.cycle([None]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, ZfUD):\n YKHO.queue.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO._items.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO._items.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO._queue.append(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO.list.a...
[ "0.7905306", "0.7894571", "0.7894571", "0.7831408", "0.77683085", "0.7733512", "0.77065325", "0.76079696", "0.76079696", "0.7549702", "0.7543462", "0.75213534", "0.7518667", "0.7514663", "0.7513951", "0.7496591", "0.7496591", "0.7496591", "0.7496591", "0.7496591", "0.7467334"...
0.0
-1
Returns weights tensor if layer is trainable. Returns None for nontrainable layers.
def _mSQ(YKHO) -> h8nf[AzJI[oyIN.array, oyIN.array]]: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kn2f(gEmA):\n yzQ0, Fg_i = gEmA.weights\n return Q5DW(w=yzQ0.numpy(), b=Fg_i.numpy())", "def wT46(YKHO):\n return YKHO.neural_network.model.get_weights()", "def LWGk(YKHO, Norb=None):\n if Norb is None:\n Norb = YKHO._body_input_depth\n MuED = YKHO._get_initializer(Norb)\n return Z...
[ "0.72723633", "0.6729516", "0.6606293", "0.66027504", "0.65992284", "0.656725", "0.65584105", "0.6472103", "0.6459195", "0.64521986", "0.643896", "0.642406", "0.642406", "0.642406", "0.6414709", "0.63931125", "0.6351507", "0.6344375", "0.6344375", "0.63395286", "0.6318533", ...
0.0
-1