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
Returns if there is any word in the trie that starts with the given prefix.
def BYxH(YKHO, y0cW: str) -> bool: Q6kx = YKHO.root for Z9rn in y0cW: if Z9rn not in Q6kx: return False else: Q6kx = Q6kx[Z9rn] return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals...
[ "0.864258", "0.84560806", "0.8440592", "0.8416151", "0.8415877", "0.8407696", "0.8382329", "0.8370536", "0.8336619", "0.8327907", "0.83272654", "0.82404006", "0.822987", "0.81734085", "0.81607133", "0.8151848", "0.81477106", "0.8115942", "0.8011951", "0.79841673", "0.79841673...
0.77829313
57
Eliminate all the other values (except d) from values[s] and propagate. Return values, except return False if a contradiction is detected.
def bD1G(hkxX, KCHu, Csk6): Zlmx = hkxX[KCHu].replace(Csk6, '') if all((zJeh(hkxX, KCHu, _sQW) for _sQW in Zlmx)): return hkxX else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zJeh(YKHO, hkxX, KCHu, Csk6):\n if Csk6 not in hkxX[KCHu]:\n return hkxX\n hkxX[KCHu] = hkxX[KCHu].replace(Csk6, '')\n if len(hkxX[KCHu]) == 0:\n return False\n elif len(hkxX[KCHu]) == 1:\n _sQW = hkxX[KCHu]\n if not all((YKHO.eliminate(hkxX, Nqp_, _sQW) for Nqp_ in YKHO...
[ "0.7031444", "0.70096207", "0.6915229", "0.68620485", "0.6817504", "0.6799931", "0.6206688", "0.61590874", "0.6128887", "0.6085326", "0.6005421", "0.5944079", "0.59410226", "0.59364563", "0.58848745", "0.5806846", "0.5796024", "0.5702011", "0.56703323", "0.56703144", "0.56682...
0.63106835
6
Returns the object used for fetching plot configuration details. Ordinarily, this is whatever is set on persistent globals. However, it can be replaced with any
def GPtr(YKHO): if YKHO.config_hook is not None: return YKHO.config_hook return RLwN.CompuCellSetup.persistent_globals.configuration
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h34q():\n global _plot_options\n return jth9.copy(V4LN)", "def ItMU(Emd4):\n return FJMr.get('simple', {})", "def Cmyc(YKHO):\n return YKHO.plot", "def Dhbr(YKHO):\n return YKHO.config", "def yxpS(YKHO, l7Sm: str):\n if l7Sm in list(YKHO.plotDrawingObjects.keys()):\n return YKH...
[ "0.6936369", "0.67132926", "0.65028006", "0.64330745", "0.63156325", "0.62796164", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", "0.62525", ...
0.0
-1
The domain's NetBIOS name
def vbQv(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'alias')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pYjD(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'net_bios_domain_name')", "def pYjD(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'net_bios_domain_name')", "def aqYN(YKHO):\n return YKHO._data['subnet_domain_name']", "def d1Tj(YKHO) -> str:\n return qe4Y.get(YKHO, 'domain_name')", ...
[ "0.86808693", "0.8448392", "0.78837335", "0.7828563", "0.7828563", "0.7828563", "0.7828563", "0.7828563", "0.7828563", "0.77298903", "0.76766706", "0.76766706", "0.76766706", "0.76766706", "0.76766706", "0.7637339", "0.76299924", "0.7583981", "0.7545006", "0.7534259", "0.7416...
0.0
-1
The password of the Active Directory user with a minimum of readonly access to Base DN for users and groups.
def jTXt(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gyX2(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'domain_user_password')", "def AuKh(YKHO):\n return YKHO.__password", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKH...
[ "0.74418306", "0.73392767", "0.72835433", "0.72835433", "0.72835433", "0.72835433", "0.7264463", "0.7246183", "0.72400445", "0.7210348", "0.7210348", "0.7210348", "0.7210348", "0.7210348", "0.7210348", "0.7210348", "0.7210348", "0.7210348", "0.7210348", "0.7210348", "0.721034...
0.0
-1
The resource model definition representing SKU
def FIMM(Ro_8, *, mWFP: pulumi.Input[str]): qe4Y.set(Ro_8, 'name', mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXIM(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> qe4Y.Input['SkuArgs']:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> 'output...
[ "0.71946967", "0.71946967", "0.7186116", "0.71539605", "0.70596397", "0.6988937", "0.6988937", "0.6988937", "0.6988937", "0.6988937", "0.69558084", "0.6884481", "0.6884481", "0.6884481", "0.6884481", "0.6884481", "0.6884481", "0.6884481", "0.6884481", "0.68593735", "0.6859373...
0.0
-1
The name of the SKU.
def mWFP(YKHO) -> qe4Y.Input[str]: 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.0
-1
placement policy type Expected value is 'VmHost'.
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, 'ServicePlacementPolicyType']]:\n return qe4Y.get(YKHO, 'type')", "def FIMM(Ro_8, *, type: pulumi.Input[Union[str, 'ServicePlacementPolicyType']]):\n qe4Y.set(Ro_8, 'type', type)", "def ZG1k(YKHO):\n if YKHO.backend.version() > '1.2.0':\n return 'PrivateIp...
[ "0.66709274", "0.63913333", "0.59129417", "0.58941925", "0.569326", "0.5630755", "0.5629544", "0.55275524", "0.54645014", "0.54436296", "0.5442757", "0.53806627", "0.5374167", "0.53446573", "0.5315405", "0.53029263", "0.5259027", "0.5259027", "0.5259027", "0.5259027", "0.5259...
0.0
-1
placement policy type Expected value is 'VmVm'.
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, 'ServicePlacementPolicyType']]:\n return qe4Y.get(YKHO, 'type')", "def FIMM(Ro_8, *, type: pulumi.Input[Union[str, 'ServicePlacementPolicyType']]):\n qe4Y.set(Ro_8, 'type', type)", "def wPf9(YKHO):\n jrDN = YKHO._gcp_instance.get('machineType')\n if jrDN is No...
[ "0.71190673", "0.6528113", "0.6027237", "0.59967744", "0.59142894", "0.5863076", "0.5794707", "0.56782943", "0.55905646", "0.5497878", "0.5497878", "0.5497878", "0.5497878", "0.5497878", "0.5497878", "0.5497878", "0.5497878", "0.5497878", "0.5497878", "0.5497878", "0.5497878"...
0.0
-1
Given A mapper entry in the id_set with an incident type from the CommonTypes pack. When Building dependency graph for pack. Then Extracting the packs that the mapper depends on a mandatory dependencies.
def vMTT(YKHO, uNzI): Ggta = {('CommonTypes', True)} xvDN = [{'Dummy Mapper': {'name': 'Dummy Mapper', 'fromversion': '5.0.0', 'pack': 'dummy_pack', 'incident_types': ['Authentication']}}] mLvY = G_Pv._collect_mappers_dependencies(pack_mappers=xvDN, id_set=uNzI, verbose=False) assert UC8o.is_sets_equal(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uPfY(YKHO, uNzI):\n Ggta = {('AccessInvestigation', False), ('CommonTypes', True), ('PrismaCloud', False), ('BruteForce', False)}\n xvDN = [{'Dummy Mapper': {'name': 'Dummy Mapper', 'fromversion': '5.0.0', 'pack': 'dummy_pack', 'incident_types': ['Access', 'AWS CloudTrail Misconfiguration'], 'incident_fi...
[ "0.6899492", "0.6364634", "0.63276964", "0.629609", "0.6097317", "0.59876907", "0.59848356", "0.59243524", "0.58945", "0.5881975", "0.57400984", "0.5730093", "0.56952626", "0.56734407", "0.56540453", "0.5649561", "0.5645301", "0.55616534", "0.55604565", "0.55258083", "0.54939...
0.74947906
0
Ensure that the MDR instantiator stores the MDR variables properly
def as4H(): R6dZ = Iava() assert R6dZ.tie_break == 1 assert R6dZ.default_label == 0 assert R6dZ.class_fraction == 0.0 gPk7 = Iava(tie_break=1, default_label=2) assert gPk7.tie_break == 1 assert gPk7.default_label == 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wND5(YKHO) -> None:\n raise NotImplementedError", "def xSpw(YKHO):\n ...", "def hUYe(YKHO):\n pass", "def oHaL(YKHO):\n pass", "def aluj(YKHO):\n pass", "def YiGW(YKHO):\n pass", "def izJk(YKHO):\n YKHO.mission_control_time = ug49(YKHO.payload_frame)\n YKHO.recovery_time = u...
[ "0.60114133", "0.58823663", "0.5795006", "0.57375145", "0.5704939", "0.56093866", "0.5605705", "0.55590844", "0.5558596", "0.55551845", "0.5524825", "0.55132717", "0.5512428", "0.5512428", "0.5512428", "0.5512428", "0.5512428", "0.5512428", "0.5512428", "0.5512428", "0.551242...
0.0
-1
Render home view of a persona
def ai1c(id): ai1c = n_Gh.query.filter_by(id=id).first_or_404() miOn = uRGX.query.filter(uRGX.author_id == id, uRGX.state >= 0)[:4] WZaH = yBEY([[1, 5, 6, 2], [1, 1, 6, 4], [7, 1, 2, 2], [7, 3, 2, 2], [7, 5, 2, 2]]) return TvZl('persona.html', layout='persona', vizier=WZaH, stars=miOn, persona=ai1c)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('general/home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return T...
[ "0.78574365", "0.7824016", "0.77865344", "0.7767504", "0.7757261", "0.7757261", "0.7757261", "0.7757261", "0.7757261", "0.7757261", "0.7757261", "0.7757261", "0.7757261", "0.7757261", "0.7757261", "0.77495074", "0.77495074", "0.77495074", "0.77495074", "0.77495074", "0.774950...
0.0
-1
Render the landing page
def QJkK(): miOn = uRGX.query.filter(uRGX.state >= 0).all() B2Dn = RWUc.star_layout(miOn) if len(txwj()['controlled_personas'].all()) == 0: return vKnz(nKyW('create_persona')) if len(miOn) == 0: return vKnz(nKyW('create_star')) return TvZl('universe.html', page=B2Dn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hXw_():\n return TvZl('landing_page.html')", "def F_xU():\n return TvZl('index.html')", "def F_xU():\n return TvZl('landing.html')", "def hXw_(QePW):\n return SGJU('landing.html')", "def d6pt():\n return TvZl('landing.html')", "def d6pt():\n return TvZl('landing2.html')", "def hXw...
[ "0.8503683", "0.84985507", "0.8477545", "0.8389856", "0.8161038", "0.80565345", "0.7900841", "0.7743328", "0.7563157", "0.7502357", "0.7399053", "0.7386496", "0.72957706", "0.7282905", "0.72553915", "0.7247229", "0.72358394", "0.7203456", "0.7198406", "0.7188779", "0.7188432"...
0.0
-1
Return total energy. Both the energy extrapolated to zero Kelvin and the energy consistent with the forces (the free energy) can be returned.
def TdMr(YKHO, RR8p=None, X02w=False): return 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NIfg(YKHO):\n return sum(abs(YKHO.position)) * sum(abs(YKHO.velocity))", "def ZFMZ(YKHO):\n return YKHO.combined_gravity.potential_energy + YKHO.combined_gravity.kinetic_energy", "def dtD8(YKHO):\n if YKHO.potential_energy is None or YKHO.kinetic_energy is None:\n return None\n return YK...
[ "0.8174609", "0.7901423", "0.7853273", "0.77333075", "0.7653998", "0.76523745", "0.76272094", "0.7536692", "0.7517174", "0.74514425", "0.73843205", "0.7379543", "0.73282504", "0.7232818", "0.721361", "0.721361", "0.72106653", "0.7162617", "0.71546614", "0.7146739", "0.7112441...
0.7311085
13
Return the total magnetic moment.
def QgsC(YKHO, RR8p=None): return YKHO.occupation.magmom
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AXR(m0x2=''):\n R8Md = t04X(m0x2).ionic_steps[-1]['mag']\n return R8Md", "def rGtV(YKHO):\n KPt4 = 0.0\n FOSW = YKHO.spin_mag()\n for YRbF in range(YKHO.size()):\n KPt4 += YKHO.spin(YRbF)\n KPt4 *= FOSW\n return KPt4", "def Jo_U(JnVq):\n zUd3 = abs(oyIN.sum(JnVq))\n retur...
[ "0.7362924", "0.7127882", "0.7100481", "0.70908105", "0.708673", "0.7032582", "0.7003859", "0.6966008", "0.6953194", "0.6950558", "0.68544", "0.68449116", "0.6783289", "0.6757108", "0.6690061", "0.66683406", "0.66683406", "0.6663974", "0.66612226", "0.6661066", "0.6641208", ...
0.791436
0
Return the shape of arrays.
def vKvO(YKHO): return YKHO.gd.N_c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ROpF(YKHO) -> AzJI[int, ...]:\n return YKHO._numpy.shape", "def ROpF(YKHO):\n _h7H = AzJI[(Ibqj,) * YKHO.ndim]\n return _h7H._from_apply('array.shape', YKHO)", "def qC1Y(YKHO) -> PhJ3:\n return tuple((len(Z9rn) for Z9rn in YKHO.shape))", "def ROpF(YKHO) -> tuple:\n return YKHO.array.shape"...
[ "0.801044", "0.77918905", "0.77828807", "0.77493197", "0.7642763", "0.7642474", "0.7637772", "0.7595921", "0.75829595", "0.7565254", "0.75373733", "0.7522516", "0.7522516", "0.7522516", "0.7522516", "0.7522516", "0.7522516", "0.75049263", "0.7494807", "0.7494807", "0.7494807"...
0.0
-1
Sets the use_translation_memory of this PreTranslateJobsDto.
def UsJd(YKHO, UsJd): YKHO._use_translation_memory = UsJd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u2vx(YKHO, u2vx):\n YKHO._autotranslate_use_translation_memory = u2vx", "def htSP(YKHO, htSP):\n YKHO._use_project_pre_translate_settings = htSP", "def _q0O(YKHO, _q0O):\n YKHO._use_machine_translation = _q0O", "def IgPd(YKHO, IgPd):\n YKHO._translation_memory_treshold = IgPd", "def fWci(YK...
[ "0.7280703", "0.59612197", "0.5821505", "0.5293642", "0.52466077", "0.5176902", "0.5155714", "0.5059307", "0.493106", "0.48049775", "0.47778463", "0.47169444", "0.47093433", "0.47024933", "0.46597582", "0.457817", "0.44998664", "0.44970018", "0.44960135", "0.44788396", "0.446...
0.8018102
0
Sets the pre_translate_non_translatables of this PreTranslateJobsDto.
def _k19(YKHO, _k19): YKHO._pre_translate_non_translatables = _k19
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def htSP(YKHO, htSP):\n YKHO._use_project_pre_translate_settings = htSP", "def Asq_(YKHO, SzCW):\n YKHO._preu = SzCW", "def TrjO(YKHO, TrjO):\n YKHO._not_before = TrjO", "def BFra(YKHO, BFra):\n YKHO._non_transferrable = BFra", "def pCRp(YKHO, pCRp):\n if YKHO._configuration.client_side_vali...
[ "0.5956032", "0.5217042", "0.49667746", "0.4713751", "0.4711447", "0.47054657", "0.46461806", "0.46280897", "0.4510211", "0.4479889", "0.4472689", "0.44696537", "0.4436404", "0.44196412", "0.441138", "0.4405864", "0.4387292", "0.4378293", "0.43645492", "0.43437266", "0.434048...
0.79669106
0
Sets the confirm100_translation_memory_matches of this PreTranslateJobsDto.
def Q9Wl(YKHO, Q9Wl): YKHO._confirm100_translation_memory_matches = Q9Wl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTCb(YKHO, sTCb):\n YKHO._confirm101_translation_memory_matches = sTCb", "def TMER(YKHO, TMER):\n YKHO._lock100_translation_memory_matches = TMER", "def STD7(YKHO, STD7):\n YKHO._lock101_translation_memory_matches = STD7", "def Fd5g(YKHO, Fd5g):\n YKHO._confirm100_non_translatable_matches = F...
[ "0.7826196", "0.7693576", "0.7082873", "0.6832124", "0.6139915", "0.5400627", "0.44432637", "0.43589684", "0.43536934", "0.43516022", "0.43131196", "0.43027818", "0.4298886", "0.4247961", "0.41378218", "0.4133207", "0.41260004", "0.41208154", "0.41109186", "0.4097944", "0.408...
0.851
0
Sets the lock101_translation_memory_matches of this PreTranslateJobsDto.
def STD7(YKHO, STD7): YKHO._lock101_translation_memory_matches = STD7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TMER(YKHO, TMER):\n YKHO._lock100_translation_memory_matches = TMER", "def sTCb(YKHO, sTCb):\n YKHO._confirm101_translation_memory_matches = sTCb", "def Q9Wl(YKHO, Q9Wl):\n YKHO._confirm100_translation_memory_matches = Q9Wl", "def jhkp(YKHO, jhkp):\n YKHO._lock100_non_translatable_matches = j...
[ "0.8074761", "0.75009257", "0.6999118", "0.6244042", "0.5532823", "0.48109907", "0.47930217", "0.47422785", "0.46220776", "0.4607591", "0.45285314", "0.45006913", "0.44755936", "0.44479674", "0.44393012", "0.4427582", "0.43971738", "0.43962228", "0.43916085", "0.43413436", "0...
0.8470482
0
Sets the callback_url of this PreTranslateJobsDto.
def RJDY(YKHO, RJDY): YKHO._callback_url = RJDY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RJDY(YKHO, RJDY):\n if RJDY is None:\n raise ValueError('Invalid value for `callback_url`, must not be `None`')\n if RJDY is not None and len(RJDY) > 2100:\n raise ValueError('Invalid value for `callback_url`, length must be less than or equal to `2100`')\n if RJDY is not None and len(RJ...
[ "0.6850675", "0.59374034", "0.59008205", "0.59008205", "0.5787296", "0.5576682", "0.5536699", "0.55088055", "0.548276", "0.5428968", "0.53760946", "0.53300786", "0.52897084", "0.52719605", "0.5162418", "0.5107375", "0.5107375", "0.50910974", "0.504776", "0.50139135", "0.50082...
0.71589184
2
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.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 the mean price of all the trades.
def Yd8G(WZsM: pandas.DataFrame) -> XTiz.float64: return WZsM.price.mean()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qkN6(YKHO):\n xSHw = 'avg_price?symbol=BTCUSDT'\n geh0 = G4JS.get(YKHO.api_url + xSHw)\n return geh0.json()['price']", "def nQhZ(YKHO):\n try:\n JOTk = 0.0\n SKWQ = 0.0\n for YRbF in YKHO.prices:\n if YRbF is not None:\n JOTk += YRbF\n ...
[ "0.7762725", "0.74905354", "0.7166505", "0.69697964", "0.68138415", "0.6713755", "0.66556853", "0.6607808", "0.66059196", "0.659977", "0.6598832", "0.6598832", "0.65876126", "0.65811664", "0.65681493", "0.65570897", "0.65445113", "0.6537682", "0.64854604", "0.6422888", "0.640...
0.8209853
0
Get the total amount of crypto bought.
def SFZI(WZsM: pandas.DataFrame) -> XTiz.float64: return Ay8C(WZsM).amount.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aAFv(YKHO):\n return YKHO.long.total_buy_value() + YKHO.short.total_buy_value()", "def wjRY(YKHO):\n return YKHO.__amt * YKHO.__price", "def wjRY(YKHO):\n return YKHO.money", "def nxA6(YKHO):\n return YKHO.count * YKHO.purchasePrice", "def z7Kw(YKHO):\n return YKHO.qty * YKHO.price", "...
[ "0.77298516", "0.770612", "0.7635329", "0.74215996", "0.7342065", "0.73285997", "0.73244244", "0.72596294", "0.7258469", "0.7196668", "0.719198", "0.7188821", "0.7188821", "0.71874547", "0.71811056", "0.717098", "0.7166416", "0.71428734", "0.7137747", "0.7114259", "0.7078441"...
0.0
-1
Get the total amount of crypto sold.
def ZbwX(WZsM: pandas.DataFrame) -> XTiz.float64: return ZEdG(WZsM).amount.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z7Kw(YKHO):\n return sum((ZjSO(ZfUD['price']) * ZfUD['quantity'] for ZfUD in YKHO.cart.values()))", "def wjRY(YKHO):\n return YKHO.__amt * YKHO.__price", "def wjRY(YKHO):\n return YKHO.money", "def aAFv(YKHO):\n return YKHO.long.total_buy_value() + YKHO.short.total_buy_value()", "def KpBD(Y...
[ "0.74628866", "0.7417828", "0.73932314", "0.7323508", "0.7293927", "0.727086", "0.7246163", "0.7246163", "0.72374254", "0.7209845", "0.71980137", "0.7193025", "0.7184086", "0.7183434", "0.7140557", "0.7099861", "0.70985514", "0.70869833", "0.70436156", "0.703802", "0.7028206"...
0.0
-1
Creates a new User, including encrypting their password, if that User doesn't already exist. Otherwise, does nothing.
def yifY(Emd4, **B2fa): if not Emd4.get_by_id(B2fa['id']): B2fa['password'] = Emd4.encrypt_password(B2fa['password']) CBIr = Emd4(**B2fa) CBIr.put()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYUQ(Emd4):\n CBIr = NEJe.blend('auth.User')\n CBIr.set_password(k2eK)\n CBIr.save()\n Emd4.user = CBIr", "def xWi2(YKHO, jTXt, **wdCM):\n CBIr = YKHO.model(**wdCM)\n CBIr.set_password(jTXt)\n CBIr.save(using=YKHO._db)\n return CBIr", "def lYUQ(YKHO, NtEF, jTXt, y7iq=False, **B2fa):...
[ "0.79292804", "0.77228355", "0.7634783", "0.7607148", "0.760672", "0.76022184", "0.7561193", "0.7561193", "0.7555894", "0.7553902", "0.7552198", "0.75346935", "0.7493068", "0.7474379", "0.74687916", "0.7441697", "0.7434913", "0.74327517", "0.7428784", "0.7427703", "0.7418165"...
0.76873505
2
Updates an existing User's password.
def cDCx(Emd4, NtEF, Jee2): CBIr = rtVo.Key(Emd4, NtEF).get() CBIr.password = Emd4.encrypt_password(Jee2) CBIr.put()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def skPK(YKHO, CBIr=None):\n if YKHO._uuid is None:\n raise Alw1('must save BonitaUser before updating it')\n if YKHO.is_unchanged:\n return\n bD7m = '/identityAPI/updateUserPassword'\n nPrm = dict()\n nPrm['userUUID'] = YKHO.uuid\n nPrm['password'] = YKHO.password\n CdGE.get_ins...
[ "0.8184208", "0.8095599", "0.78768206", "0.7872892", "0.7809487", "0.7792436", "0.778293", "0.77351063", "0.7694311", "0.7654351", "0.76383835", "0.7610133", "0.7598128", "0.75955963", "0.75921845", "0.7582731", "0.7582492", "0.7582492", "0.7582492", "0.7561149", "0.75591904"...
0.79367703
2
For each propoerty of the observation, assign it to appropriate bins. This will become discrete states.
def LJPd(rNYq, Pyrc): QTBn = oyIN.zeros(4) for YRbF in range(4): QTBn[YRbF] = oyIN.digitize(rNYq[YRbF], Pyrc[YRbF]) return QTBn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def biH0(nPrm, YJY3):\n bGrB, Pyrc = oyIN.histogram(nPrm, bins=YJY3)\n d6pt = oyIN.digitize(nPrm, oyIN.concatenate((Pyrc[:-1], [oyIN.inf]))) - 1\n eKGI = 0.5 * (Pyrc[1:] + Pyrc[:-1])\n iypQ = {YRbF: wEf2 for YRbF, wEf2 in enumerate(eKGI)}\n return oyIN.fromiter((iypQ[YRbF] for YRbF in d6pt), dtype=f...
[ "0.62041235", "0.61837256", "0.61048573", "0.59667295", "0.5897475", "0.5758308", "0.5757933", "0.57488817", "0.5669971", "0.564896", "0.55924255", "0.5589649", "0.5561536", "0.55341214", "0.5506771", "0.5451763", "0.54510134", "0.5439375", "0.54314506", "0.54314506", "0.5410...
0.7548497
0
Check if the current temperature measured by the USB thermometer is within the set range, and if not then call the relevant IFTTT webhook.
def giYD(QePW): GPtr = jdrr() QzSB = '' Ol8d = '' if nXt6(GPtr): if QVMB(GPtr): Ol8d = 'Temperature checking has now been disabled.' if CPQF(GPtr): QzSB = ggMV() Ol8d += ' Webhook to switch heating off has been fired.' OxDr(GPtr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nKYC(YKHO, *qIxc):\n del qIxc\n if YKHO.aircon is False:\n if YKHO.__temperature_monitor.is_too_hot_or_cold():\n YKHO.__handle_too_hot_or_cold()\n elif YKHO.__temperature_monitor.is_within_target_temperatures():\n Ol8d = f'A desirable inside temperature of {YKHO.__temperature_...
[ "0.68179744", "0.66840893", "0.6501381", "0.6188368", "0.6160166", "0.61574197", "0.6132067", "0.6121634", "0.60622346", "0.6055964", "0.60520685", "0.60368353", "0.6021254", "0.60131097", "0.5950741", "0.5942814", "0.5908185", "0.5898123", "0.58833873", "0.586518", "0.585176...
0.7465049
0
gets a serializer based on the request action type
def l5oD(YKHO): if YKHO.action == 'create': return YKHO.create_stripe_serializer elif YKHO.action in ('update', 'partial_update'): return YKHO.update_stripe_serializer return super().get_serializer_class()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a9qP(YKHO, *qIxc, **B2fa):\n XeOP = B2fa.pop('action', None)\n cIuE = YKHO.get_serializer_class(XeOP)\n B2fa['context'] = YKHO.get_serializer_context()\n return cIuE(*qIxc, **B2fa)", "def a9qP(YKHO, *qIxc, **B2fa):\n XeOP = B2fa.pop('action', None)\n cIuE = YKHO.get_serializer_class(XeOP)\n...
[ "0.8059654", "0.8059654", "0.78422564", "0.7824606", "0.776581", "0.776581", "0.7667855", "0.7663452", "0.76449925", "0.7630684", "0.7605754", "0.7592889", "0.7591317", "0.75588405", "0.75559336", "0.7552902", "0.7518361", "0.7456259", "0.7421905", "0.7342726", "0.7337419", ...
0.70033044
41
Creates a (globally) shuffled dataset from the given set of files. Unlike `tf.data.Dataset.shuffle()`, which uses an inmemory buffer to shuffle elements of input dataset in a streaming fashion, `tf.data.experimental.index_shuffle()` performs a global shuffle of element indices and then reads the data in a shuffled orde...
def OxTv(SfUo, YjTj, yokr=None, XyRx=False): def or8S(YRbF): return YRbF % kw51 _0VL = [] G_Si = [0] * kw51 yq3I = [[] for bGrB in range(kw51)] for YRbF, GkYq in enumerate(SfUo): LyhY = GkYq['num_elements'] EdbX = 0 if 'skip' in GkYq: EdbX = GkYq['skip'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dD7q(RRlC, bySB, Ep8u=1, NT8N=0, QMHl=Hy7s.cpu_count(), hNo3=0):\n if hNo3 == 0:\n __n6 = nlsq(filenames=RRlC, batch_size=Ep8u, features=bySB, shuffle_buffer_size=NT8N, num_parallel_calls=QMHl)\n else:\n __n6 = ZylS.data.Dataset.list_files(RRlC)\n __n6 = __n6.interleave(lambda Ux0P: ...
[ "0.67657226", "0.66972226", "0.6568024", "0.65628666", "0.64902604", "0.6418309", "0.6404276", "0.63844365", "0.6362626", "0.6335975", "0.63214505", "0.63152987", "0.6292415", "0.6237831", "0.6213897", "0.6158419", "0.6150855", "0.6114683", "0.6112551", "0.61073065", "0.61000...
0.719125
0
Calculate the weight of the subtree by summing the node's weight plus the weights of its children.
def KAmC(uDOx, Q6kx): Q6kx.subtreeweight = Q6kx.weight + sum((KAmC(uDOx, uDOx[Z9rn]) for Z9rn in Q6kx.children)) return Q6kx.subtreeweight
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tKuh(uDOx):\n tk5Y = Lo8l(uDOx)\n KAmC(uDOx, tk5Y)\n return uDOx", "def r8o1(YKHO):\n return oyIN.sum(YKHO.weights)", "def ogdQ(YKHO):\n YKHO._node_weights = dict()\n for PUAf, ZQLv in YKHO.local_weights.items():\n for aUGN in YKHO._node_children:\n if PUAf == aUGN.name:...
[ "0.7128577", "0.6721823", "0.66790247", "0.66676444", "0.66556615", "0.665009", "0.6473768", "0.6448137", "0.6433676", "0.6360986", "0.62918013", "0.6279625", "0.6245654", "0.6243205", "0.6243205", "0.621832", "0.6123334", "0.61220646", "0.60825485", "0.60715026", "0.60672784...
0.7452195
0
Given a dictionary where each child is a key and its value is its parent, we determine the single element which does not have a parent. By definition, this is the tree's root.
def vi3q(ACnF): YPJ1 = set([ACnF[exwG] for exwG in ACnF if ACnF[exwG] not in ACnF]) assert len(YPJ1) == 1 return YPJ1.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lo8l(uDOx):\n Q6kx = uDOx[list(uDOx.keys())[0]]\n while Q6kx is not None and Q6kx.parent is not None:\n Q6kx = Q6kx.parent\n return Q6kx", "def _AKB(YKHO, H5ew: str) -> ImMB:\n PUAf = YKHO._nodes[H5ew].parent\n if PUAf is KAvf:\n return KAvf\n return YKHO._nodes[PUAf].value", ...
[ "0.70917064", "0.6964059", "0.67127603", "0.66800195", "0.638199", "0.63655066", "0.6343552", "0.63272834", "0.6291496", "0.6291496", "0.62766707", "0.6273447", "0.6271545", "0.626992", "0.62630004", "0.62273484", "0.6219075", "0.62000084", "0.6199052", "0.619574", "0.6186447...
0.0
-1
Calculate values for missing data via linear interpolation. Data gaps that exceed 11 hours are to be patched but also reported via email.
def ZlR7(YKHO, Sgcx, nTCi, Ludj): o2ba = Ludj - nTCi + 1 if o2ba > 11: RKD7.warning('A wind forcing data gap > 11 hr starting at {0:%Y-%m-%d %H:00} has been patched by linear interpolation'.format(YKHO.data[Sgcx][nTCi][0])) jEuI, XL1q = YKHO.data[Sgcx][nTCi - 1][1] X_PS, PSHB = YKHO.data[Sgcx][L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZlR7(YKHO, Sgcx, nTCi, Ludj):\n o2ba = Ludj - nTCi + 1\n if o2ba > 11:\n RKD7.warning('A {qty} forcing data gap > 11 hr starting at {gap_start:%Y-%m-%d %H:00} has been patched by linear interpolation'.format(qty=Sgcx, gap_start=YKHO.data[Sgcx][nTCi][0]))\n CUs1 = YKHO.data[Sgcx][nTCi - 1][1]\n ...
[ "0.6981395", "0.69026744", "0.6847268", "0.6563965", "0.6262192", "0.6203552", "0.62032", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0.6167564", "0...
0.6674588
3
test view non existing server
def u8BF(YKHO): qRWY() QePW = X5Wl(YKHO.get_url('/1/servers/1'), method='GET', headers=kg68({'X-AUTH-TOKEN': FmkL})) YKHO.http_client.fetch(QePW, YKHO.stop) geh0 = YKHO.wait() Ol8d = qQXR.loads(geh0.body) assert Ol8d == {'status': 'not_found'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TrwO(YKHO):\n YKHO.req.environ['cinder.context'].is_admin = True\n e1vZ = 'dummydest'\n YKHO.assertRaises(ZrWc.exc.HTTPNotFound, YKHO.controller.show, YKHO.req, e1vZ)", "def auP8(sCtz):\n rRzo = sCtz.get_address()\n assert G4JS.get(rRzo + 'collection//value').status_code == 404\n assert G4J...
[ "0.71005285", "0.69549984", "0.69387925", "0.6863376", "0.68420875", "0.6823624", "0.67513186", "0.67465717", "0.67030036", "0.6641866", "0.66253835", "0.65904355", "0.65636486", "0.6538175", "0.6519679", "0.6509572", "0.6478709", "0.6458155", "0.6446032", "0.64449465", "0.64...
0.75114334
0
Gets all the fields in current class namespace that are Fields.
def j2YQ(o8Kj: Dict) -> cuzp: return {G1Hx: Ty9i for G1Hx, Ty9i in o8Kj.items() if yPu3(Ty9i, lyar) or isinstance(Ty9i, lyar)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w4X0(YKHO):\n return YKHO.__fields", "def TnMw(YKHO):\n YKHO._init_fields()\n return YKHO._fields", "def TnMw(YKHO):\n return [Jyyj for Jyyj in YKHO.__dict__]", "def acO1(YKHO):\n SnBA = _lR6(type(YKHO))\n return [Jyyj for Jyyj in dir(YKHO) if not Jyyj.startswith('_') and Jyyj in SnBA]"...
[ "0.81236786", "0.8078545", "0.8014992", "0.79354274", "0.78970987", "0.78970987", "0.78580165", "0.78580165", "0.78580165", "0.7850615", "0.78469706", "0.782898", "0.78039545", "0.78039545", "0.78039545", "0.78039545", "0.78039545", "0.77684164", "0.7729539", "0.7711812", "0....
0.0
-1
Returns kwargs signaturean immutable, given a set of kwargs.
def tj2Q(YKHO, **rcrf): HRJ_ = tuple([Ty9i for G1Hx, Ty9i in sorted(rcrf.items())]) return str(HRJ_.__hash__())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DHvO(YKHO, B2fa):\n return jqqY(lambda G1Hx, Ty9i: cpVm((G1Hx, Ty9i)), B2fa)", "def vdNZ(B2fa, yYJH):\n yk4i = set(B2fa.keys()) - yYJH\n assert len(yk4i) == 0, 'Invalid keyword argument(s) in %s passed in!' % yk4i", "def pgGe(YKHO, B2fa):\n tBeV = YKHO.default_kwargs.copy()\n tBeV.update(B2f...
[ "0.7057101", "0.6788299", "0.669249", "0.6573143", "0.65628123", "0.6347014", "0.62333024", "0.6216209", "0.61946577", "0.6121065", "0.61153346", "0.6109527", "0.6100071", "0.60844445", "0.6078231", "0.60721076", "0.6069201", "0.60381436", "0.6000805", "0.59996647", "0.597867...
0.5357075
94
Clears the cached data and statistics.
def Y7Bk(YKHO, **rcrf): if not rcrf: YKHO.cached_values = {} else: nW9u = YKHO.kwargs_signature(**rcrf) YKHO.cached_values.pop(nW9u, None) YKHO.statistics.clear()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7Bk(YKHO):\n YKHO.data_cache.clear()", "def WcMc(YKHO):\n with YKHO._rlock:\n YKHO._statistics_data = {}", "def ORNU(YKHO):\n pass", "def Y7Bk(YmRm=False):\n wyyA.clear()\n umaf.clear()\n if not YmRm:\n eQSh[:] = [0, 0, 0]", "def Y7Bk():\n wyyA.clear()\n P2qO.hits...
[ "0.8702351", "0.82593334", "0.8225818", "0.8165784", "0.8159957", "0.8126762", "0.80842346", "0.8083804", "0.8050833", "0.8050833", "0.80474985", "0.8045638", "0.80245554", "0.80245554", "0.8017649", "0.8001321", "0.79978687", "0.7990189", "0.79662794", "0.7957265", "0.794642...
0.0
-1
Automatically accept a solution if it is better. Otherwise, only accept if the probability is greater than random number
def szKx(YKHO, cY7Y): a0CJ = YKHO.solution_cost(cY7Y) if a0CJ < YKHO.current_cost: YKHO.current_cost = a0CJ YKHO.current_solution = cY7Y if a0CJ < YKHO.best_cost: YKHO.best_cost = a0CJ YKHO.best_solution = cY7Y elif tuKI.random() < YKHO.accept_probability(a0CJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OiKl(Q7Be):\n return tuKI.random() < Q7Be", "def OiKl(Q7Be):\n return tuKI.random() < Q7Be", "def OiKl(Q7Be) -> bool:\n return tuKI() < Q7Be", "def OiKl(XP5J):\n if tuKI.random() < XP5J:\n return 1\n else:\n return 0", "def guUa(YKHO, Q7Be, uIhF=False):\n JSOp = tuKI.ran...
[ "0.7788881", "0.7788881", "0.77595574", "0.7424665", "0.72690743", "0.72387797", "0.7211534", "0.7203262", "0.70014787", "0.69310737", "0.681796", "0.68089134", "0.67769724", "0.67051494", "0.6692769", "0.66702306", "0.66535455", "0.6621242", "0.6609412", "0.6590944", "0.6590...
0.62773937
42
preprocess the tweet text, including dropping noncommon terms
def qB7T(YKHO, HsX8): GabI = on8l.key_wordlabels YKHO.twarr = HsX8 for OJS7 in YKHO.word_dicts: OJS7.clear() kUsN = dict([(TZ9E, YKHO.prop_n_dict) for TZ9E in YKHO.prop_n_tags] + [(TZ9E, YKHO.comm_n_dict) for TZ9E in YKHO.comm_n_tags] + [(TZ9E, YKHO.verb_dict) for TZ9E in YKHO.verb_tags] + [(TZ9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QrZ9(l5Ny):\n return biH0.PreprocessTweets(l5Ny).clean_text()", "def Sy0b(YKHO, VMDN):\n return [YRbF.lower() for YRbF in YcFa(VMDN) if YRbF.lower() not in YKHO.stop_words]", "def mh_Q(l5Ny):\n mXDZ = ZbWC.compile('(.)\\\\1{2,}', ZbWC.DOTALL)\n l5Ny = l5Ny.lower().replace('\"', '').replace(\"'\...
[ "0.7693249", "0.7648862", "0.76265156", "0.7599176", "0.75976455", "0.75843626", "0.74817973", "0.74071187", "0.73884517", "0.7372436", "0.73625475", "0.7346593", "0.73146117", "0.7307426", "0.72998387", "0.7258125", "0.725649", "0.7232208", "0.72034276", "0.72006005", "0.719...
0.0
-1
Encodes a list of BlockArgs to a list of strings.
def kLcZ(SIjs): xLsr = [] for XkN1 in SIjs: xLsr.append(saao._encode_block_string(XkN1)) return xLsr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(SIjs: typing.List[BlockArgs]) -> laHg.List[str]:\n xLsr = []\n for XkN1 in SIjs:\n xLsr.append(saao._encode_block_string(XkN1))\n return xLsr", "def kLcZ(YKHO, SIjs):\n xLsr = []\n for XkN1 in SIjs:\n xLsr.append(YKHO._encode_block_string(XkN1))\n return xLsr", "def kLc...
[ "0.83292353", "0.82587415", "0.8114463", "0.65568054", "0.6366501", "0.6169562", "0.6110677", "0.6019095", "0.60074794", "0.5982788", "0.59608096", "0.5916072", "0.5916072", "0.5916072", "0.58443534", "0.5820794", "0.5781399", "0.57770514", "0.5731343", "0.570425", "0.5680567...
0.8033816
3
Creates a efficientnet model.
def Jci7(SIjs='default', YDYE='swish', uZ8n={}, ZUQk=False, LsC8=1.0, DAru=1.0, Reel=1.0, lo24=0.2, PoXS=0.2, N0ky=None, jTqs=100): if SIjs == 'default': SIjs = ['r1_k3_s1_e1_i24_o16_se0.20', 'r1_k3_s1_e6_i16_o24_se0.20', 'r2_k3_s2_e6_i24_o40_se0.20', 'r1_k3_s1_e6_i40_o56_se0.20', 'r2_k3_s1_e6_i56_o72_se0.2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TCIu(YKHO):\n exwG = PMix.IMNN(parameters=YKHO.parameters)\n ZylS.reset_default_graph()\n exwG.setup(η=RHJb)\n return exwG", "def pPQk():\n C3ST = FYrf.vgg19(pretrained=True)\n MD0u = C3ST.classifier[3].in_features\n DivT = int(oyIN.sqrt(MD0u))\n hNMy = 5\n C3ST.classifier[3] = U78...
[ "0.73107886", "0.7221291", "0.70954895", "0.7086137", "0.7055905", "0.7049325", "0.7034908", "0.6939327", "0.68507904", "0.6849701", "0.6849701", "0.6849482", "0.6823755", "0.68140024", "0.68138295", "0.67936176", "0.6778419", "0.6774232", "0.67706954", "0.6762837", "0.676093...
0.0
-1
Wrapper to scipy threshold a given time series using Scipy's threshold function (in scipy.stats.stats). First it calculates the mean and rms of the given time series. It then makes the time series in terms of SNR. If a given SNR value is less than the threshold, it is set to "1". Returns a SNR array with values less th...
def c4SO(i8WE, knl1, vJPk=3, JEq5=1): JBMS = oyIN.mean(i8WE) M1Jx = oyIN.std(i8WE) if JEq5 > 0: for YRbF in range(JEq5): pSfY = oyIN.where((i8WE - JBMS) / M1Jx < vJPk)[0] JBMS = oyIN.mean(i8WE[pSfY]) M1Jx = oyIN.std(i8WE[pSfY]) iyW4 = (i8WE - JBMS) / M1Jx ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mfR_(V56r, hkxX, RNSW, DzID):\n HBKI, bGrB, bGrB = eQSh.binned_statistic(V56r, hkxX, statistic=DzID, bins=RNSW)\n return HBKI", "def ceis(K_q_, DikD, rA4k, jRcT=10):\n hgjH = XTiz.round(XTiz.asarray(K_q_.shape) / 2)\n ZWZx = K_q_[hgjH[0] - jRcT:hgjH[0] + jRcT, hgjH[1] - jRcT:hgjH[1] + jRcT, hgjH[...
[ "0.6141332", "0.5523132", "0.5514551", "0.5434914", "0.5433622", "0.54253626", "0.54151803", "0.5358267", "0.5306983", "0.52981365", "0.52704173", "0.5196462", "0.5195275", "0.5195111", "0.51873016", "0.5183803", "0.5166708", "0.51633", "0.5159477", "0.5149848", "0.512341", ...
0.7589198
0
Convert a hex representation into a string of bytes, ie the inverse of hexData.
def Zn1g(_NBq): return MRxC.unhexlify(_NBq.replace('|', '').replace(' ', ''))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RKql(KCHu):\n return bytes.fromhex(KCHu)", "def ntSl(X9sb: str) -> bytes:\n return bytes.fromhex(X9sb)", "def uSzb(anAZ):\n YRbF = 0\n ezWE = []\n while YRbF < len(anAZ):\n ezWE.append(int(anAZ[YRbF], 16) << 4 | int(anAZ[YRbF + 1], 16))\n YRbF += 2\n return bytes(ezWE)", "...
[ "0.77504927", "0.7727391", "0.7343294", "0.7322462", "0.7247773", "0.7187894", "0.71514666", "0.7107047", "0.7105035", "0.7052502", "0.699093", "0.69875413", "0.69530237", "0.6928932", "0.686496", "0.68464833", "0.6843938", "0.6840832", "0.6795968", "0.6791966", "0.6790629", ...
0.0
-1
A recursive function which updates a master nested dictionary (dict1) with only the new elements of a smaller contributor nested dictionary (dict2).
def wwg9(WbPA, S69B): for Xyq7, jlSq in S69B.iteritems(): if Xyq7 not in WbPA.keys(): WbPA.update({Xyq7: jlSq}) elif isinstance(jlSq, dict): wwg9(WbPA[Xyq7], jlSq) elif WbPA[Xyq7] == jlSq: pass else: Ol8d = 'WARNING : For {} about to ov...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Urra(Csk6: MutableMapping, _sQW: MutableMapping) -> None:\n for G1Hx, Ty9i in _sQW.items():\n if G1Hx in Csk6:\n if isinstance(Ty9i, dict):\n Urra(Csk6[G1Hx], Ty9i)\n continue\n Csk6[G1Hx] = Ty9i", "def DmV4(AjzU, _sQW):\n if all((isinstance(Csk6, ...
[ "0.7577096", "0.7262119", "0.72472566", "0.7126848", "0.7080177", "0.7051281", "0.703953", "0.7013942", "0.6918154", "0.6912098", "0.6847637", "0.6826861", "0.6790213", "0.6782969", "0.67646086", "0.675501", "0.6739718", "0.67337817", "0.672599", "0.67228836", "0.6715449", ...
0.64140046
41
Human readable representation of the object.
def wHJl(YKHO) -> str: return f'Dataspace(name={YKHO.name})'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.object_repr", "def zAg0(YKHO):\n return YKHO.human_format()", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def wHJl(YKHO):\n return str(YKHO.__dict__)", "def ...
[ "0.81665283", "0.7917875", "0.7843829", "0.7843829", "0.7843829", "0.7843829", "0.7843829", "0.7843829", "0.77951163", "0.7793131", "0.7793131", "0.77859694", "0.77859694", "0.77859694", "0.77859694", "0.77859694", "0.77859694", "0.77859694", "0.77859694", "0.77859694", "0.77...
0.0
-1
Get all dataspace's anchors. Iterable of related with dataspace anchors.
def LSLQ(YKHO) -> iu5r[xejc]: for _PKI in YKHO.send_message_json('GET', 'Get all CPS dataspace anchors', f'{YKHO.url}/anchors', auth=YKHO.auth): yield xejc(name=_PKI['name'], schema_set=cEaL(name=_PKI['schemaSetName'], dataspace=YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qvIa(YKHO) -> list[xejc]:\n return YKHO._anchors", "def Nxmy(YKHO):\n nrp9 = {}\n for YRbF, gEmA in enumerate(YKHO.ssd_params.featmap_layers):\n nrp9[gEmA] = YKHO._anchor_for_one_layer(YRbF)\n return nrp9", "def qvIa(YKHO):\n pass", "def LSLQ(YKHO, uCyO, SMrl, Eeyr=1):\n zWd_ = [...
[ "0.7644668", "0.7157036", "0.6851627", "0.6817662", "0.6751219", "0.67428523", "0.6575961", "0.6445228", "0.6398587", "0.63166434", "0.62938935", "0.6277538", "0.6258988", "0.6256217", "0.6193555", "0.6193555", "0.61243117", "0.61086714", "0.5982328", "0.5966052", "0.5928423"...
0.8735763
0
Validates if the 'item' has all fields filled in.
def SGVO(YKHO, ZfUD): for BWXx in ZfUD.values(): if not BWXx: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aBkf(Emd4, ZfUD, fR3y):\n return ZfUD is None", "def aBkf(Emd4, ZfUD, fR3y):\n Mu7y = fR3y.replace('empty:', '')\n GObz = {'dict': dict, 'hash': dict, 'object': dict, 'list': list}\n return isinstance(ZfUD, GObz[Mu7y]) and len(ZfUD) == 0", "def aBkf(Emd4, ZfUD, fR3y):\n return True", "def ...
[ "0.73056406", "0.7172814", "0.7085171", "0.7079221", "0.7037297", "0.69314206", "0.68253624", "0.67260456", "0.67070484", "0.6667132", "0.662389", "0.6609162", "0.660741", "0.66048944", "0.65560347", "0.65483534", "0.65382373", "0.64867145", "0.6486511", "0.6439326", "0.64355...
0.74136496
0
Return a 200 response with a success message. Useful for actions that do not return any data.
def nyyK(): return RpFU(UZug)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GwYN(tO9_):\n return igJ6(qQXR.dumps({'successMessage': tO9_}), content_type='application/json', status=200)", "def nyyK(YKHO):\n return xbdE()", "def vRbE(YKHO, nPrm=None):\n YKHO.response.write(qQXR.dumps({'status': 'ok', 'data': nPrm}))", "def T0o4(YKHO, geh0):\n YKHO.assertEqual(geh0.stat...
[ "0.7838796", "0.770943", "0.7508166", "0.7471187", "0.73204976", "0.7226535", "0.71922433", "0.7179156", "0.71133184", "0.70370746", "0.701127", "0.70097077", "0.69918776", "0.69614714", "0.6933484", "0.6875784", "0.68430746", "0.6817667", "0.67874634", "0.67874634", "0.67819...
0.7850855
0
Returns the indices of the first duplicated item in the list, a.
def yq2G(jzdc): PwWw = set([jzdc[0]]) for ZfUD in jzdc[1:]: if ZfUD not in PwWw: PwWw.add(ZfUD) else: return [YRbF for YRbF in range(len(jzdc)) if jzdc[YRbF] == ZfUD] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k0jU(jzdc: 'Sequence[Any]') -> list[int]:\n return [or8S for or8S, ZfUD in enumerate(jzdc) if ZfUD in jzdc[:or8S]]", "def yq2G(WKvO):\n BWz1 = set()\n for d6pt, ZfUD in enumerate(WKvO):\n if ZfUD in BWz1:\n return d6pt\n BWz1.add(ZfUD)", "def chdj(JTgH):\n for YRbF in r...
[ "0.80667394", "0.72343075", "0.69475883", "0.656753", "0.63271576", "0.6233753", "0.61698985", "0.6142688", "0.6125594", "0.61052513", "0.6101964", "0.6081077", "0.60380757", "0.60372216", "0.6033981", "0.60272694", "0.60122067", "0.5979279", "0.5976072", "0.59456044", "0.592...
0.78615236
1
Sets the modulation_index of this PhyConfig.
def Dj2g(YKHO, Dj2g): if Dj2g is None: raise ValueError('Invalid value for `modulation_index`, must not be `None`') YKHO._modulation_index = Dj2g
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BlxX(YKHO, d6pt: int) -> None:\n ...", "def A8ZN(YKHO, d6pt):\n YKHO.target_plate_idx = d6pt", "def Noxx(YKHO, d6pt):\n YKHO.number = d6pt", "def ACOY(YKHO, d6pt):\n YKHO.attrs.index = d6pt\n return '%s.setIndex(%d);' % (YKHO.name, d6pt)", "def ACOY(YKHO, d6pt):\n assert isinstance(d6...
[ "0.6053447", "0.5886773", "0.5886041", "0.5873508", "0.5793443", "0.57084626", "0.5650335", "0.5632559", "0.56304085", "0.5584381", "0.55379933", "0.5536728", "0.55356324", "0.5527444", "0.55131674", "0.5483504", "0.5483504", "0.5483504", "0.5483504", "0.5483504", "0.53930277...
0.73946303
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.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.83931077", "0.83551943", "0.8295509", "0.8132744", "0.8115034", "0.8100248", "0.8099668", "0.80982566", "0.80982566", "0.809302", "0.809302", "0.809302", "0.809302", "0.808576", "0.808576", "0.808576", "0.808576", "0.808576", "0.80673736", "0.80593926", "0.80581796", "0....
0.0
-1
WHEN a get request is made to `/teams/` with an invalid token in the `authorization` header THEN the response should have a 422 status code and indicate that the authorization header is malformed
def LLIj(x0hE): geh0 = x0hE.get(f'/teams/{str(qxeD.uuid4())}', headers={'Accept': 'application/vnd.api+json', 'Authorization': 'abcdefg'}) assert geh0.status_code == 422 assert z_e1(geh0) == 'application/vnd.api+json' assert qQXR.loads(geh0.data.decode()) == {'errors': [{'status': 422, 'title': 'Unproce...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def in9C(x0hE):\n geh0 = x0hE.get(f'/teams/{str(qxeD.uuid4())}', headers={'Accept': 'application/vnd.api+json'})\n assert geh0.status_code == 401\n assert z_e1(geh0) == 'application/vnd.api+json'\n assert qQXR.loads(geh0.data.decode()) == {'errors': [{'status': 401, 'title': 'Unauthorized', 'detail': '...
[ "0.75550795", "0.74716246", "0.7308126", "0.7290978", "0.72714317", "0.72452927", "0.7104464", "0.7089196", "0.7089196", "0.7089196", "0.70674986", "0.70507073", "0.70416766", "0.7027558", "0.70020664", "0.69791305", "0.69454485", "0.6933547", "0.6875769", "0.6870562", "0.685...
0.8420623
0
WHEN a get request is made to `/teams/` and the `ACCEPT` header is not correctly set THEN the response should have a 406 status code and indicate that the `ACCEPT` header is not correctly set
def JnJf(x0hE, Idwa): geh0 = x0hE.get(f'/teams/{Idwa.id}', headers={'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}'}) assert geh0.status_code == 406 assert z_e1(geh0) == 'application/vnd.api+json' assert qQXR.loads(geh0.data.decode()) == {'errors': [{'status': 406, 'title': 'Not Acceptable...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OvQ4(YKHO):\n _hkX = YKHO.client.get('/', HTTP_ACCEPT='foo/bar')\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_406_NOT_ACCEPTABLE)", "async def test_response_not_acceptable(YKHO, mo7H):\n geh0 = await mo7H.get('/api/books/1', headers={lYL_.ACCEPT: 'application/vnd.api+json; foo=bar'})\n assert g...
[ "0.7175384", "0.70419973", "0.6759621", "0.6752371", "0.6742682", "0.6735615", "0.65988505", "0.65779316", "0.6554295", "0.6356095", "0.63353074", "0.62571853", "0.62556255", "0.62037474", "0.61780536", "0.61551136", "0.61329913", "0.60947204", "0.60947204", "0.60947204", "0....
0.7916072
0
WHEN a get request is made to `/teams/` but the team ID is not a valid UUID THEN the response should have a 400 status and indicate that the provided team ID is not a valid UUID
def ct1J(x0hE): geh0 = x0hE.get('/teams/abcdefg', headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}'}) assert geh0.status_code == 400 assert z_e1(geh0) == 'application/vnd.api+json' assert qQXR.loads(geh0.data.decode()) == dict(errors=[c_ma('Team...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def urQF(x0hE):\n geh0 = x0hE.patch('/teams/abcdefg', data=qQXR.dumps({'name': 'new team name'}), headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}', 'Content-Type': 'application/vnd.api+json'})\n assert geh0.status_code == 400\n assert z_e1(geh0) ...
[ "0.7307072", "0.7160003", "0.7051246", "0.68247944", "0.67162055", "0.66440785", "0.6638678", "0.6497667", "0.6475699", "0.6422918", "0.63136494", "0.630116", "0.6275697", "0.62500143", "0.62332", "0.62127966", "0.6192729", "0.6188777", "0.6181602", "0.6180917", "0.61788386",...
0.82410955
0
GIVEN an existing team on the platform WHEN a get request is made to `/teams/` with the team's ID THEN the response should have a 200 status code and return the details of the team
def E7zO(x0hE, Idwa, AroK): pths.session.add(JEXV(user_id=AroK.id, team_id=Idwa.id, created_by=AroK.id, updated_by=AroK.id)) pths.session.commit() geh0 = x0hE.get(f'/teams/{Idwa.id}', headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=AroK.id)}'}) f3Bg = Idwa.team_me...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, QePW, id):\n GfdN, m9js, fxWz = iA_X(QePW)\n if GfdN:\n Ol8d = LuKW('success', f'Here is the Team')\n dZPi = r2Kd.objects.filter(id=id)\n if not dZPi.exists():\n Ol8d = LuKW('error', f'No team found')\n APkR = qQXR.dumps({'message': Ol8d.repr_json()},...
[ "0.7442237", "0.7379119", "0.7168751", "0.7124574", "0.71069413", "0.71036303", "0.697853", "0.69718593", "0.6960229", "0.69385344", "0.68332916", "0.68288124", "0.6802543", "0.679603", "0.66929483", "0.6673828", "0.66405225", "0.66362876", "0.6634606", "0.66342443", "0.66241...
0.6872726
10
WHEN a patch request is made to `/teams/` without a token in the `authorization` header THEN the response should have a 401 status code and indicate that the header is missing
def WvgQ(x0hE, Idwa): geh0 = x0hE.patch(f'/teams/{Idwa.id}', data=qQXR.dumps({'name': 'new team name'}), headers={'Accept': 'application/vnd.api+json', 'Content-Type': 'application/vnd.api+json'}) assert geh0.status_code == 401 assert z_e1(geh0) == 'application/vnd.api+json' assert qQXR.loads(geh0.data....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eRk1(YKHO):\n geh0 = YKHO.client.patch(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 401)", "def eRk1(YKHO):\n geh0 = YKHO.client.patch(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 401)", "def eRk1(YKHO):\n geh0 = YKHO.client.patch(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 401)", ...
[ "0.7920905", "0.7920905", "0.7920905", "0.7573048", "0.72686553", "0.7067685", "0.7055035", "0.70477605", "0.6972167", "0.696858", "0.6892965", "0.68540317", "0.68087316", "0.68072844", "0.6785599", "0.6782055", "0.67237854", "0.6673724", "0.6667889", "0.6654976", "0.66532713...
0.7693517
3
WHEN a patch request is made to `/teams/` with an invalid token in the `authorization` header THEN the response should have a 422 status code and indicate that the authorization header is malformed
def j9c7(x0hE, Idwa): geh0 = x0hE.patch(f'/teams/{Idwa.id}', data=qQXR.dumps({'name': 'new team name'}), headers={'Accept': 'application/vnd.api+json', 'Authorization': 'abcdefg', 'Content-Type': 'application/vnd.api+json'}) assert geh0.status_code == 422 assert z_e1(geh0) == 'application/vnd.api+json' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WUiZ(x0hE):\n geh0 = x0hE.patch('/users/abcdefg', data=qQXR.dumps({'first_name': 'updated_first'}), headers={'Accept': 'application/vnd.api+json', 'Authorization': 'abcdefg', 'Content-Type': 'application/vnd.api+json'})\n assert geh0.status_code == 422\n assert z_e1(geh0) == 'application/vnd.api+json'...
[ "0.74891555", "0.7354201", "0.72752744", "0.7264452", "0.7264452", "0.7264452", "0.71401715", "0.70388347", "0.69340795", "0.68907577", "0.68564725", "0.67800987", "0.6777364", "0.6720917", "0.6681618", "0.66671586", "0.66470444", "0.65720594", "0.65572524", "0.6531695", "0.6...
0.8091972
0
WHEN a patch request is made to `/teams/` and the `ContentType` header is not correctly set THEN the response should have a 415 status code and indicate that the `ContentType` header is not correctly set
def wiUE(x0hE, AroK, Idwa): geh0 = x0hE.patch(f'/teams/{Idwa.id}', data=qQXR.dumps({'name': 'new team name'}), headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=AroK.id)}'}) assert geh0.status_code == 415 assert z_e1(geh0) == 'application/vnd.api+json' assert qQXR.l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gPms(x0hE, AroK, Idwa):\n geh0 = x0hE.patch(f'/teams/{Idwa.id}', data=qQXR.dumps({'name': 'new team name'}), headers={'Authorization': f'Bearer {VuvO(identity=AroK.id)}', 'Content-Type': 'application/vnd.api+json'})\n assert geh0.status_code == 406\n assert z_e1(geh0) == 'application/vnd.api+json'\n ...
[ "0.78498375", "0.70570785", "0.6824242", "0.6781985", "0.67674166", "0.67379856", "0.66403514", "0.656325", "0.65417665", "0.65175116", "0.6517036", "0.6399701", "0.636386", "0.63315094", "0.629781", "0.62848336", "0.6264989", "0.62607455", "0.62150764", "0.6207247", "0.61942...
0.809146
0
WHEN a patch request is made to `/teams/` but the team ID is not a valid UUID THEN the response should have a 400 status and indicate that the provided team ID is not a valid UUID
def urQF(x0hE): geh0 = x0hE.patch('/teams/abcdefg', data=qQXR.dumps({'name': 'new team name'}), headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}', 'Content-Type': 'application/vnd.api+json'}) assert geh0.status_code == 400 assert z_e1(geh0) == 'appl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ct1J(x0hE):\n geh0 = x0hE.get('/teams/abcdefg', headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}'})\n assert geh0.status_code == 400\n assert z_e1(geh0) == 'application/vnd.api+json'\n assert qQXR.loads(geh0.data.decode()) == dict(errors=[c...
[ "0.72110957", "0.71202636", "0.70592505", "0.7017052", "0.6868362", "0.6798193", "0.67737263", "0.6738514", "0.6726623", "0.66458654", "0.66051537", "0.65994114", "0.656514", "0.65625167", "0.65564317", "0.64902073", "0.64589566", "0.64268416", "0.63585716", "0.6214762", "0.6...
0.8258138
0
WHEN a patch request is made to `/teams/` but no team with the given ID exists THEN the response should have a 404 status and indicate that no team with the given ID exists
def M5bP(x0hE): b2mu = str(qxeD.uuid4()) geh0 = x0hE.patch(f'/teams/{b2mu}', data=qQXR.dumps({'name': 'new team name'}), headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}', 'Content-Type': 'application/vnd.api+json'}) assert geh0.status_code == 404 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J1Es(x0hE):\n b2mu = str(qxeD.uuid4())\n geh0 = x0hE.get(f'/teams/{b2mu}', headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}'})\n assert geh0.status_code == 404\n assert z_e1(geh0) == 'application/vnd.api+json'\n assert qQXR.loads(geh0.da...
[ "0.730761", "0.7148927", "0.7046501", "0.6996148", "0.69712704", "0.6936084", "0.69170785", "0.6879318", "0.6868037", "0.6864653", "0.6862886", "0.6862683", "0.6828067", "0.679313", "0.6733081", "0.66959685", "0.6683109", "0.66817796", "0.66686434", "0.66499305", "0.6639864",...
0.8403311
0
GIVEN an existing user and team WHEN a patch request is made to `/teams/` but the authenticated user is not a member of the team being edited THEN the response should have a 403 status and indicate that the operation is forbidden because the user is not a member of the team
def pNfV(x0hE, AroK, Idwa): geh0 = x0hE.patch(f'/teams/{Idwa.id}', headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=AroK.id)}', 'Content-Type': 'application/vnd.api+json'}, data=qQXR.dumps({'name': 'new team name'})) assert geh0.status_code == 403 assert z_e1(geh0) == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xGgs(YKHO):\n g_7i = mv1M(email='other@test.com', password='new_pass2', first_name='Alice')\n g_7i.save()\n pB3N = YKHO.jwt_payload_handler(g_7i)\n nzqR = YKHO.jwt_encode_handler(pB3N)\n YKHO.client.credentials(HTTP_AUTHORIZATION='JWT ' + nzqR)\n geh0 = YKHO.client.patch(gxEw('test_challenge:...
[ "0.81377316", "0.7581171", "0.7009468", "0.6952679", "0.6948727", "0.690599", "0.6902969", "0.68352294", "0.67728573", "0.67287916", "0.672618", "0.66996294", "0.6680112", "0.6632415", "0.6578583", "0.65741163", "0.65328497", "0.6532363", "0.6529395", "0.6499678", "0.6497111"...
0.8191769
0
GIVEN an existing user and team, with the authenticated user being a member of that team WHEN a patch request is made to `/teams/` THEN the response should have a 200 status and return the updated details of the team
def Pb3e(x0hE, AroK, Idwa): Idwa.members.append(AroK) pths.session.add(Idwa) pths.session.commit() geh0 = x0hE.patch(f'/teams/{Idwa.id}', headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=AroK.id)}', 'Content-Type': 'application/vnd.api+json'}, data=qQXR.dumps({'nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pNfV(x0hE, AroK, Idwa):\n geh0 = x0hE.patch(f'/teams/{Idwa.id}', headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=AroK.id)}', 'Content-Type': 'application/vnd.api+json'}, data=qQXR.dumps({'name': 'new team name'}))\n assert geh0.status_code == 403\n assert z_e1(g...
[ "0.78002787", "0.76915115", "0.753591", "0.7323785", "0.7017142", "0.68479717", "0.6813472", "0.67399704", "0.66822356", "0.6620007", "0.66090965", "0.6594611", "0.6587905", "0.65351415", "0.6523569", "0.6515946", "0.64984095", "0.6488046", "0.6483872", "0.6464898", "0.640838...
0.78677225
0
WHEN a delete request is made to `/teams/` without a token in the `authorization` header THEN the response should have a 401 status code and indicate that the header is missing
def PBeK(x0hE): geh0 = x0hE.delete(f'/teams/{str(qxeD.uuid4())}', headers={'Accept': 'application/vnd.api+json'}) assert geh0.status_code == 401 assert z_e1(geh0) == 'application/vnd.api+json' assert qQXR.loads(geh0.data.decode()) == {'errors': [{'status': 401, 'title': 'Unauthorized', 'detail': 'Missin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a325(x0hE):\n geh0 = x0hE.delete(f'/teams/{str(qxeD.uuid4())}', headers={'Accept': 'application/vnd.api+json', 'Authorization': 'abcdefg'})\n assert geh0.status_code == 422\n assert z_e1(geh0) == 'application/vnd.api+json'\n assert qQXR.loads(geh0.data.decode()) == {'errors': [{'status': 422, 'titl...
[ "0.8169804", "0.7553636", "0.7424075", "0.74031025", "0.7170971", "0.7167832", "0.71372086", "0.7055742", "0.7032264", "0.70206183", "0.70206183", "0.70206183", "0.70127654", "0.69658035", "0.6940256", "0.6920385", "0.6916148", "0.69093347", "0.68612915", "0.6844405", "0.6827...
0.8225396
0
WHEN a delete request is made to `/teams/` with an invalid token in the `authorization` header THEN the response should have a 422 status code and indicate that the authorization header is malformed
def a325(x0hE): geh0 = x0hE.delete(f'/teams/{str(qxeD.uuid4())}', headers={'Accept': 'application/vnd.api+json', 'Authorization': 'abcdefg'}) assert geh0.status_code == 422 assert z_e1(geh0) == 'application/vnd.api+json' assert qQXR.loads(geh0.data.decode()) == {'errors': [{'status': 422, 'title': 'Unpr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PBeK(x0hE):\n geh0 = x0hE.delete(f'/teams/{str(qxeD.uuid4())}', headers={'Accept': 'application/vnd.api+json'})\n assert geh0.status_code == 401\n assert z_e1(geh0) == 'application/vnd.api+json'\n assert qQXR.loads(geh0.data.decode()) == {'errors': [{'status': 401, 'title': 'Unauthorized', 'detail'...
[ "0.78082556", "0.75810254", "0.7329144", "0.730502", "0.7270609", "0.72053456", "0.71368957", "0.71112895", "0.6929648", "0.6926492", "0.6904298", "0.6852212", "0.6799985", "0.67425495", "0.6719499", "0.6717909", "0.6680447", "0.664746", "0.66353583", "0.6623341", "0.66177475...
0.8542613
0
WHEN a delete request is made to `/teams/` and the `ACCEPT` header is not correctly set THEN the response should have a 406 status code and indicate that the `ACCEPT` header is not correctly set
def iZ8G(x0hE, Idwa): geh0 = x0hE.delete(f'/teams/{Idwa.id}', headers={'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}'}) assert geh0.status_code == 406 assert z_e1(geh0) == 'application/vnd.api+json' assert qQXR.loads(geh0.data.decode()) == {'errors': [{'status': 406, 'title': 'Not Accepta...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZXcw(x0hE, AroK):\n geh0 = x0hE.delete(f'/users/{AroK.id}', headers={'Authorization': f'Bearer {VuvO(identity=AroK.id)}'})\n assert geh0.status_code == 406\n assert z_e1(geh0) == 'application/vnd.api+json'\n assert qQXR.loads(geh0.data.decode()) == {'errors': [{'status': 406, 'title': 'Not Acceptab...
[ "0.7209498", "0.6984916", "0.6878784", "0.6858877", "0.68115395", "0.6728131", "0.66403115", "0.66160434", "0.6602559", "0.6578912", "0.65400124", "0.6516752", "0.64980227", "0.6472152", "0.6470943", "0.6374233", "0.63726544", "0.63513595", "0.6348997", "0.6329444", "0.632332...
0.8360357
0
WHEN a delete request is made to `/teams/` but the team ID is not a valid UUID THEN the response should have a 400 status and indicate that the provided team ID is not a valid UUID
def aBUV(x0hE): geh0 = x0hE.delete('/teams/abcdefg', headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}'}) assert geh0.status_code == 400 assert z_e1(geh0) == 'application/vnd.api+json' assert qQXR.loads(geh0.data.decode()) == dict(errors=[c_ma('T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ct1J(x0hE):\n geh0 = x0hE.get('/teams/abcdefg', headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}'})\n assert geh0.status_code == 400\n assert z_e1(geh0) == 'application/vnd.api+json'\n assert qQXR.loads(geh0.data.decode()) == dict(errors=[c...
[ "0.7300435", "0.7147351", "0.7141648", "0.71137094", "0.7030767", "0.6866002", "0.67303246", "0.6588552", "0.65859544", "0.6575765", "0.65374756", "0.6531849", "0.65214586", "0.6512941", "0.6511805", "0.64712244", "0.63851094", "0.6345139", "0.62948626", "0.62581086", "0.6243...
0.83118445
0
WHEN a delete request is made to `/teams/` but no team with the given ID exists THEN the response should have a 404 status and indicate that no team with the given ID exists
def yzeI(x0hE): b2mu = str(qxeD.uuid4()) geh0 = x0hE.delete(f'/teams/{b2mu}', headers={'Accept': 'application/vnd.api+json', 'Authorization': f'Bearer {VuvO(identity=str(qxeD.uuid4()))}'}) assert geh0.status_code == 404 assert z_e1(geh0) == 'application/vnd.api+json' assert qQXR.loads(geh0.data.deco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, id):\n w2B8 = WyYT.connect()\n luAj = t457()\n P1dF = luAj.idTeam(luAj, id)\n if P1dF:\n return P1dF\n iPqd = luAj.args_query_string(luAj)\n if iPqd:\n xDcj = w2B8.execute('DELETE FROM t_teams WHERE idteam = %d' % int(id) + ' AND ' + iPqd)\n else:\n xDcj = w...
[ "0.73411614", "0.7333553", "0.7259576", "0.7116787", "0.71025723", "0.70995975", "0.7040288", "0.702044", "0.6983918", "0.6872848", "0.68702865", "0.6864261", "0.6857708", "0.6850381", "0.6832607", "0.68275064", "0.6814956", "0.67985517", "0.67822844", "0.6770125", "0.6760935...
0.82963866
0
generate a random filename
def gbOx(): return ''.join(tuKI.choices(vIwR.ascii_uppercase + vIwR.digits, k=5))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qUV2():\n Si_B = tuKI.getrandbits(32)\n return '.random_%s' % Si_B", "def GK7x(YKHO):\n dISJ = qcWV.datetime.now().strftime('%Y%m%d%H%M%S')\n return '%s%s' % (dISJ, str(tuKI.randrange(1000, 10000)))", "def HXID(KAOR, Ux0P):\n return 'photos/%s-%s' % (''.join((tuKI.choice(vIwR.ascii_letters +...
[ "0.88635916", "0.8744127", "0.8540711", "0.8406293", "0.83890516", "0.8360326", "0.82359684", "0.81877506", "0.8117956", "0.7965048", "0.7962557", "0.7935703", "0.7930679", "0.7912168", "0.7873218", "0.7807067", "0.7805876", "0.77826786", "0.7748099", "0.7741514", "0.7733984"...
0.84778434
3
Splits a DataFrame into training and test sets.
def gru_(jQ3Z, neQB=0.1): QOe9 = jQ3Z.sample(frac=neQB, replace=False) EvQg = jQ3Z[~jQ3Z.index.isin(QOe9.index)] return (EvQg, QOe9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qb89(jQ3Z):\n Evq_, QOe9 = bHtP(jQ3Z, test_size=0.1, random_state=123)\n EvQg, xzCw = bHtP(Evq_, test_size=0.2, random_state=123)\n return (EvQg, xzCw, QOe9)", "def Zv6i(YKHO):\n YKHO.X_train, YKHO.X_test, YKHO.y_train, YKHO.y_test = bHtP(YKHO.X, YKHO.y, test_size=0.2, random_state=42)", "def h...
[ "0.817491", "0.8000444", "0.79100716", "0.78389204", "0.782131", "0.782131", "0.78158045", "0.77792096", "0.7776164", "0.7775465", "0.775321", "0.7734761", "0.77278125", "0.77153474", "0.77066875", "0.7697003", "0.76142836", "0.7609576", "0.76045775", "0.7600378", "0.75984603...
0.0
-1
Recursively find all the prime factors of n. Uses memoization to eliminate duplicate calculations.
def KX6O(exwG): Llmz = [] rPed = [] try: return i_PE[exwG] except KeyError: YRbF = 0 CN9P = exwG + 1 while YRbF < CN9P: YRbF += 1 if YRbF in Llmz: continue if exwG % YRbF == 0: CN9P = exwG / YRbF ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXQR(exwG):\n for YRbF in range(2, lO1m(PZyS(exwG)) + 1):\n if exwG % YRbF == 0:\n return [YRbF] + aXQR(int(exwG / YRbF))\n return [exwG]", "def Llmz(exwG):\n return (G1Hx for G1Hx, Ty9i in S2wa(exwG))", "def uBVK(exwG):\n if exwG <= 1:\n return mBkc()\n eHNT = UiFA(...
[ "0.8514582", "0.83690417", "0.82596743", "0.8146914", "0.8097948", "0.8081502", "0.80568457", "0.8002455", "0.80011624", "0.7991858", "0.79864293", "0.79651874", "0.79523885", "0.79489565", "0.7941162", "0.79381573", "0.7936946", "0.793671", "0.7933471", "0.7933471", "0.79295...
0.84389657
1
DATA[2], time avg. without correlation selection
def Zwka(YKHO): pxtC(YKHO.records['']['data'], XTiz.array([[0.1442849 - 0.03145669j], [-0.00379944 + 0.00710297j], [-0.00381106 - 0.00066403j], [0.14404297 - 0.04763794j]]), 0.0001)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EuYh(nPrm, pUuX=10):\n uOe2 = nPrm.groupby(nPrm.index // pUuX)\n H6MK = uOe2.mean()\n H6MK['time'] = uOe2.first()['time']\n if 'absTime' in nPrm.columns:\n H6MK['absTime'] = uOe2.first()['absTime']\n return H6MK", "def qqgr(nPrm):\n qw7D = oyIN.asarray(nPrm[1])\n return (nPrm[0], ...
[ "0.7353539", "0.68853766", "0.64966774", "0.6390353", "0.62407976", "0.61694574", "0.61384904", "0.61296934", "0.6125416", "0.6112597", "0.6106897", "0.6061587", "0.6055761", "0.60264534", "0.6023713", "0.6014076", "0.6009546", "0.6007539", "0.59903026", "0.598348", "0.598199...
0.0
-1
DATA[2], time avg. LL
def MbBa(YKHO): pxtC(YKHO.records['ll']['data'], XTiz.array([[0.14404297 - 0.04763794j]]), 0.0001)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sy4T(f0Ny: list) -> float:\n if len(f0Ny) < 2:\n raise ValueError('The length of tsLP is inferior to 2')\n jbXL = list()\n for YRbF in range(len(f0Ny) - 1):\n jbXL.append(abs(f0Ny[YRbF + 1] - f0Ny[YRbF]))\n return Dz7Y.mean(jbXL)", "def BBfX(YKHO):\n return sum(YKHO.dtime_log) / ...
[ "0.68247265", "0.67686", "0.6754765", "0.6710267", "0.6663695", "0.6604298", "0.6600383", "0.6552064", "0.64739084", "0.64098865", "0.6336699", "0.62841123", "0.62580705", "0.6254732", "0.6250747", "0.6247838", "0.62277013", "0.62269497", "0.6226269", "0.62218845", "0.6193601...
0.0
-1
SIGMA[7], time avg. RR, LL
def uldX(YKHO): pxtC(YKHO.records['rr, ll']['sigma'], XTiz.array([0.00168478, 0.00194404]), 0.0001)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NmYP(WKvO):\n return (oyIN.abs(WKvO) ** 2.0).mean()", "def sy4T(f0Ny: list) -> float:\n if len(f0Ny) < 2:\n raise ValueError('The length of tsLP is inferior to 2')\n jbXL = list()\n for YRbF in range(len(f0Ny) - 1):\n jbXL.append(abs(f0Ny[YRbF + 1] - f0Ny[YRbF]))\n return Dz7Y.me...
[ "0.6306928", "0.61593586", "0.61566514", "0.61092114", "0.6011937", "0.6011937", "0.5919977", "0.5887556", "0.5868938", "0.58659977", "0.58436495", "0.58029807", "0.577922", "0.5778203", "0.57639796", "0.57423675", "0.5737516", "0.57323766", "0.57145363", "0.5698634", "0.5677...
0.0
-1
SIGMA[7], chan avg. LL
def GBBF(YKHO): pxtC(YKHO.records['ll']['sigma'], XTiz.array([0.60978937]), 0.0001)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sGrV(Gaon, gGnb):\n if XTiz.sum(Gaon) != 0:\n AayN = XTiz.zeros(len(Gaon))\n for d6pt in range(gGnb // 2, len(Gaon) - gGnb // 2):\n AayN[d6pt] = XTiz.sum(Gaon[d6pt - gGnb // 2:d6pt + gGnb // 2]) / gGnb\n AayN[0:gGnb // 2] = 0\n AayN[len(Gaon) - gGnb // 2:len(Gaon)] = 0...
[ "0.61520725", "0.59445286", "0.59040827", "0.5807125", "0.57461816", "0.5741259", "0.57215583", "0.571805", "0.57165813", "0.57037914", "0.5656974", "0.5639274", "0.5629084", "0.5618802", "0.56020963", "0.5590725", "0.55771494", "0.5562426", "0.5560398", "0.5556777", "0.55299...
0.0
-1
SIGMA[7], chan avg. LL
def GBBF(YKHO): pxtC(YKHO.records['ll']['sigma'], XTiz.array([0.4736068]), 0.0001)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sGrV(Gaon, gGnb):\n if XTiz.sum(Gaon) != 0:\n AayN = XTiz.zeros(len(Gaon))\n for d6pt in range(gGnb // 2, len(Gaon) - gGnb // 2):\n AayN[d6pt] = XTiz.sum(Gaon[d6pt - gGnb // 2:d6pt + gGnb // 2]) / gGnb\n AayN[0:gGnb // 2] = 0\n AayN[len(Gaon) - gGnb // 2:len(Gaon)] = 0...
[ "0.61520725", "0.59445286", "0.59040827", "0.5807125", "0.57461816", "0.5741259", "0.57215583", "0.571805", "0.57165813", "0.57037914", "0.5656974", "0.5639274", "0.5629084", "0.5618802", "0.56020963", "0.5590725", "0.55771494", "0.5562426", "0.5560398", "0.5556777", "0.55299...
0.0
-1
Can we get BBC1?
def O6me(YKHO): pxtC(YKHO.records['1:12~115', '1']['bbc_no'], 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kYGz(YKHO):\n return YKHO.__b1", "def kYGz(YKHO):\n return YKHO.__b1", "def kYGz(YKHO):\n return YKHO.__b1", "def MCku(YKHO):\n return YKHO.__bbb", "def MCku(YKHO):\n return YKHO.__bbb", "def MCku(YKHO):\n return YKHO.__bbb", "def MCku(YKHO):\n return YKHO.__bbb", "def MCku(Y...
[ "0.6970625", "0.6969556", "0.6969556", "0.6600948", "0.6600948", "0.6600948", "0.6600948", "0.6600948", "0.6600948", "0.6531115", "0.6463726", "0.6392833", "0.6355409", "0.6339086", "0.6339086", "0.6339086", "0.6333169", "0.6333169", "0.6333169", "0.6333169", "0.6333169", "...
0.0
-1
SIGMA after straight selection of DATA.
def vzTu(YKHO): pxtC(YKHO.records['data', '1', '0s']['sigma'], XTiz.array([[4.0, 3.0, 2.0, 1.0], [4.0, 3.0, 2.0, 1.0], [1.0, 2.0, 3.0, 4.0], [5.0, 6.0, 7.0, 8.0], [1.0, 1.0, 1.0, 1.0]]), 0.001)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xLAU(YKHO, vRyL, GZla, oFmy, BL8q, R78A, WKvO):\n pass", "def WTkW(YKHO):\n if 'SIGMA' in YKHO.hdu_names():\n return YKHO['SIGMA'].flux\n else:\n return oyIN.ones(YKHO.wave_count())", "def qW8d(nPrm, WTkW):\n yk4i = [nPrm[YRbF + 1, 0] - nPrm[YRbF, 0] for YRbF in range(len(nPrm) - ...
[ "0.6408584", "0.58972186", "0.57414484", "0.5637995", "0.562801", "0.56100065", "0.5595062", "0.5585107", "0.55792814", "0.5548339", "0.5508366", "0.5477402", "0.5454737", "0.54367226", "0.5422221", "0.5421233", "0.5417815", "0.5407984", "0.53747404", "0.5359201", "0.53396964...
0.63006926
1
SIGMA after time averaging DATA.
def GN8l(YKHO): pxtC(YKHO.records['data', '1', '60s']['sigma'], XTiz.array([[3.53553414, 4.2426405, 2896.30933, 5.65685415], [4.06866741, 0.980580688, 4.55553961, 0.986393988], [0.499881893, 0.707106769, 0.99905616, 0.44721359], [0.707106769, 0.707106769, 0.707106769, 0.707106769], [0.707106769, 0.707106769, 0.7071...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RGTJ(nPrm):\n E6lE = oyIN.zeros_like(nPrm)\n P6bq = oyIN.zeros(nPrm.shape[1])\n for YRbF in range(nPrm.shape[0]):\n a1PO = YRbF + 1\n WWDz = nPrm[YRbF]\n P6bq = (a1PO - 1) / float(a1PO) * P6bq + 1 / float(a1PO) * WWDz\n E6lE[YRbF] = P6bq\n return E6lE", "def Vii8(nPrm:...
[ "0.6706859", "0.6549123", "0.6356641", "0.6347244", "0.62636065", "0.6234984", "0.6220876", "0.62151027", "0.6151607", "0.6136557", "0.6066014", "0.6046253", "0.6023059", "0.60165274", "0.5999467", "0.59873384", "0.59735596", "0.5958221", "0.5936276", "0.5935586", "0.5929528"...
0.0
-1
Convert dec to degress (float).
def fKGP(iSjc): if iSjc is None: return iSjc if type(iSjc) is float or type(iSjc) is int: return float(iSjc) if (type(iSjc) is str or type(iSjc) is QMSQ) and iSjc.find(':') == -1: return float(iSjc) assert type(iSjc) is str, 'Invalid parameter format' Csk6, r8hN, KCHu = iSjc....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i7T_(BWXx):\n Csk6 = float(BWXx.values[0].num) / float(BWXx.values[0].den)\n r8hN = float(BWXx.values[1].num) / float(BWXx.values[1].den)\n KCHu = float(BWXx.values[2].num) / float(BWXx.values[2].den)\n return Csk6 + r8hN / 60.0 + KCHu / 3600.0", "def i7T_(BWXx):\n pKiF = BWXx[0][0]\n AjzU ...
[ "0.7725049", "0.7701363", "0.7635422", "0.759779", "0.759779", "0.759779", "0.7597606", "0.7597606", "0.7597606", "0.7423001", "0.7363098", "0.72712296", "0.649478", "0.63778", "0.6035913", "0.5942026", "0.5900764", "0.58069223", "0.58009267", "0.57670873", "0.5647964", "0....
0.66944146
12
Saves algorithm hyperparameters to disk.
def IXJc(YKHO, Jf5j, m1Py, B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO):\n with open(Hy7s.path.join(YKHO.save_path, 'experiment.delira.pkl'), 'wb') as eHNT:\n t2lc.dump(YKHO, eHNT)\n YKHO.params.save(Hy7s.path.join(YKHO.save_path, 'parameters'))", "def xkzz(YKHO, pmON, **Elif):\n import pickle\n gnPz.makeDirAvailable(pmON)\n with open(pmON + 'con...
[ "0.71883094", "0.70967907", "0.7044072", "0.7041403", "0.70366824", "0.70294833", "0.6999811", "0.6994785", "0.69859636", "0.6951875", "0.68795747", "0.68766016", "0.68657875", "0.68435895", "0.68242615", "0.6806394", "0.6791072", "0.6790471", "0.6790295", "0.6782678", "0.677...
0.72158426
0
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO, axis=1).reshape(-1, 1)) return uw5A / uw5A.sum(axis=1).reshape(-1, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n j1LR = oyIN.exp(o...
[ "0.80119765", "0.7762025", "0.7762025", "0.7686785", "0.7671754", "0.76615846", "0.76581645", "0.76581645", "0.76581645", "0.76581645", "0.76581645", "0.76581645", "0.76581645", "0.76407975", "0.7627673", "0.7551796", "0.75327057", "0.74580646", "0.7325217", "0.7317911", "0.7...
0.7093903
53
Return true if the argument is iterable
def OxJJ(YEnM): try: iter(YEnM) except TypeError: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfZ5(d7pR):\n return hasattr(d7pR, '__iter__')", "def GfZ5(d7pR):\n return not isinstance(d7pR, str) and isinstance(d7pR, iu5r)", "def OxJJ(WKvO):\n try:\n iter(WKvO)\n except TypeError:\n return False\n else:\n return True", "def OxJJ(WKvO):\n try:\n iter(WK...
[ "0.8814442", "0.8482467", "0.82123166", "0.82123166", "0.82009137", "0.80120933", "0.8006421", "0.79995084", "0.7970237", "0.7949789", "0.79489785", "0.7918714", "0.7906311", "0.79000586", "0.78966385", "0.7883039", "0.78720325", "0.7847652", "0.78255945", "0.7821098", "0.782...
0.78589284
17
Return the timestamp as a formatted string.
def dd_C(ejIZ): return qcWV.strptime(ejIZ, '%Y%m%d%H%M%S').isoformat().replace('T', ' ')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X2x9(YKHO):\n return str(F803('%Y-%m-%d %H:%M:%S'))", "def Zz5w(E3oo):\n cTyu = qcWV.datetime.fromtimestamp(float(E3oo)).strftime('%Y%m%d-%H%M%S')\n return cTyu", "def bpfo(Emd4, E3oo):\n return FdZ9(E3oo).strftime('%Y-%m-%d %H:%M:%S')", "def dd_C(E3oo: datetime.datetime) -> str:\n return ...
[ "0.82177716", "0.8162421", "0.81566006", "0.8102401", "0.8098712", "0.8022038", "0.7990681", "0.79673845", "0.7961197", "0.7958044", "0.7935113", "0.7849761", "0.7844343", "0.7824757", "0.7802449", "0.7802189", "0.77981406", "0.779083", "0.77850217", "0.7784493", "0.7763613",...
0.0
-1
Set the position of all charge dummies of a molecule. The molecule is modified inplace. The charge dummies are placed at a distance to the anchor defined in nm by their charge dummy attribute, the name of which is given in the 'attribute_tag' argument.
def tJFa(asBq, mKwi=vVtU): ZrDu = [(mPsZ(asBq, AscX, mKwi), AscX) for AscX in asBq.nodes if asBq.nodes[AscX].get(mKwi, None) is not None] ZrDu.sort() EJU4 = Hs6x.groupby(ZrDu, key=seET.itemgetter(0)) for xtH2, DXfF in EJU4: lv1K = [q2Xo[1] for q2Xo in DXfF] lyD3(asBq, xtH2, lv1K, mKwi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQJ7(YKHO, Yo8G=None):\n if Yo8G is None or Yo8G == 'all':\n Yo8G = YKHO.molecules\n for r8hN in Yo8G:\n r8hN.set_mass()\n YKHO.mn = 0\n YKHO.mw = 0\n for r8hN in Yo8G:\n YKHO.mn += r8hN.mass\n YKHO.mw += pow(r8hN.mass, 2)\n YKHO.mw /= YKHO.mn\n YKHO.mn /= Yo8G....
[ "0.55143666", "0.5468056", "0.5258781", "0.49525246", "0.48950997", "0.4892165", "0.48920295", "0.4891575", "0.48877093", "0.4887478", "0.48783892", "0.48168355", "0.47982606", "0.47682637", "0.473309", "0.47275764", "0.4710782", "0.4707757", "0.4704896", "0.47025505", "0.469...
0.57154864
0
Check that we retrieve the correct number of SiPMs.
def HJPO(NCls): xPAp = pths.DataSiPM(NCls.detector, conf_label=NCls.conf_label) ZLJ_ = ['SensorID', 'CardID', 'TofpetID', 'ChannelID', 'Active', 'X', 'Y', 'Z', 'adc_to_pes', 'Sigma'] assert ZLJ_ == list(xPAp) assert xPAp.shape[0] == NCls.nsipms
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jbiH(YKHO):\n pass", "def HZVj(YKHO):\n for Q6kx in YKHO.nodes_dict:\n if YKHO.nodes_dict[Q6kx].p_spec and YKHO.nodes_dict[Q6kx].q_spec:\n YKHO.n_pq += 1\n elif YKHO.nodes_dict[Q6kx].p_spec and (not YKHO.nodes_dict[Q6kx].q_spec):\n YKHO.n_pv += 1\n else:\n ...
[ "0.57609385", "0.57561964", "0.5736211", "0.5703992", "0.5654889", "0.56480414", "0.56133854", "0.555872", "0.5544697", "0.55395174", "0.5535434", "0.55353117", "0.5529901", "0.5514829", "0.55103946", "0.5508176", "0.548756", "0.54819334", "0.5461793", "0.545084", "0.53760654...
0.58745307
0
Computes the crossproduct of two sets
def wnaF(q1bY, TBpA): return {KcIY(jzdc, Fg_i) for Fg_i in TBpA for jzdc in q1bY}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnaF(k0lF, tjUW):\n return [jzdc + Fg_i for jzdc in k0lF for Fg_i in tjUW]", "def BMZ6(mcwa, UWoh, zr3f):\n pass", "def wnaF(k0lF, tjUW):\n return [jzdc + Fg_i for jzdc in k0lF for Fg_i in tjUW]", "def wnaF(k0lF, tjUW):\n return [jzdc + Fg_i for jzdc in k0lF for Fg_i in tjUW]", "def wnaF(jz...
[ "0.7596147", "0.7592017", "0.75266296", "0.75266296", "0.7523413", "0.74380064", "0.73298", "0.7324924", "0.7245207", "0.72005785", "0.7160259", "0.71472335", "0.7136652", "0.70903504", "0.70903504", "0.70851725", "0.70804936", "0.7072963", "0.70511466", "0.7036012", "0.70360...
0.73882633
6
Boolean check whether there is an uncontrollable transition defined in P with the merged_source as start state.
def XfXK(iyeL, OYPK, plYM): bEa4(iyeL, OYPK, plYM) GiUW = kfCU(iyeL, plYM) pbw0 = {a1PO for a1PO in GiUW if OYPK.startswith(str(a1PO.source))} return pbw0 != set()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T_r4(YKHO, QTBn, o61b=None, pan_=None):\n if QTBn not in YKHO.delta:\n return False\n if o61b is None:\n return True\n if o61b not in YKHO.delta[QTBn]:\n return False\n if pan_ is None:\n return YKHO.delta[QTBn][o61b] != set()\n else:\n return pan_ in YKHO.delt...
[ "0.6464368", "0.6353319", "0.6251391", "0.6205543", "0.6173631", "0.603197", "0.6016069", "0.6013285", "0.597189", "0.59686947", "0.5952069", "0.5927567", "0.59217924", "0.5915274", "0.59115446", "0.58294773", "0.580135", "0.57952315", "0.5772331", "0.5768389", "0.57520616", ...
0.6971021
0
Boolean check whether there is an uncontrollable transition defined in Q with the merged_source as start state.
def A67V(sa2S, OYPK, plYM): bEa4(sa2S, OYPK, plYM) GiUW = kfCU(sa2S, plYM) pbw0 = {a1PO for a1PO in GiUW if OYPK.endswith(str(a1PO.source))} return pbw0 != set()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XfXK(iyeL, OYPK, plYM):\n bEa4(iyeL, OYPK, plYM)\n GiUW = kfCU(iyeL, plYM)\n pbw0 = {a1PO for a1PO in GiUW if OYPK.startswith(str(a1PO.source))}\n return pbw0 != set()", "def mpJ7(YKHO):\n return None not in (YKHO.data, YKHO.meta)", "def jawD(YKHO, JZXy):\n Aofo = uSyl._isUsable(YKHO, JZX...
[ "0.64730847", "0.6383603", "0.6288584", "0.6207802", "0.61985844", "0.6062699", "0.6060757", "0.6051808", "0.60469115", "0.6042022", "0.6008296", "0.59965444", "0.5990826", "0.5989989", "0.5988974", "0.59819806", "0.5977686", "0.594185", "0.59393865", "0.5926413", "0.59168476...
0.69355786
0
Removes duplicates from l, where l is a List of Lists.
def dDv2(vC9B): Csk6 = {} Aofo = [] for rdlD in vC9B: if tuple(rdlD) not in Csk6: Aofo.append(rdlD) Csk6[tuple(rdlD)] = True return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sHC1(YKHO, vC9B):\n S06t = []\n for LihS in vC9B:\n if S06t.count(LihS) == 0:\n S06t.append(LihS)\n return S06t", "def StJK(nwEZ):\n if type(nwEZ) == list and len(nwEZ) > 0 and (_uwh(nwEZ, list) == True):\n nwEZ.sort()\n HbfQ = list((nwEZ for nwEZ, bGrB in WhY1.gro...
[ "0.8010197", "0.7608275", "0.7381814", "0.73401284", "0.7212079", "0.7134195", "0.7082201", "0.70642895", "0.7026781", "0.69882923", "0.69745225", "0.69528276", "0.6928273", "0.6919402", "0.6919402", "0.6910674", "0.6876581", "0.68155646", "0.67778724", "0.677297", "0.6752644...
0.68531054
19
Overlap as defined in the article.
def aBUJ(Kt9y, I_KI, rb7a): YVv6, rA0f = (IeP6(Kt9y, rb7a), IeP6(I_KI, rb7a)) return (len(YVv6.intersection(rA0f)), len(YVv6), len(rA0f))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qLDy():\n raise NotImplementedError", "def PzH4(YKHO):\n return True", "def PzH4(YKHO):\n return False", "def a4Si(YKHO):\n return YKHO.overlap", "def PZIW(YKHO, Elif):\n return KxHb(LBWB.overlaps(YKHO, Elif))", "def yHH9(YKHO):\n return YKHO.overlapSize", "def PZIW(YKHO, Elif):\n...
[ "0.778864", "0.7755687", "0.7698428", "0.7555043", "0.7261859", "0.72250545", "0.7037448", "0.6980065", "0.69640046", "0.6957261", "0.6924101", "0.6910488", "0.69049096", "0.69030577", "0.68893635", "0.68844676", "0.68825674", "0.6871313", "0.68470174", "0.68371975", "0.68206...
0.0
-1
r"""Calculate the learning rate multiplier given current step and the number of warmup steps. The learning rate schedule follows a linear warmup and linear decay.
def pDPC(YPaw: int, uH9w: int, wbn8: int) -> float: YPaw = min(YPaw, uH9w) pSDG = 1 - (YPaw - wbn8) / (uH9w - wbn8) if wbn8 > 0 and YPaw < wbn8: VGur = YPaw / wbn8 pSDG = VGur return pSDG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qwy0(Aak1, xfXW, TcGe, wbn8):\n XP5J = Aak1 / wbn8\n yk4i = xfXW - TcGe\n return TcGe + yk4i * XP5J", "def srqN(DJmW, YPaw, f8ix):\n return YPaw / f8ix * DJmW", "def gVSL(zn_K, wbn8, uH9w):\n YPaw = 0\n while True:\n if YPaw < wbn8:\n aM8h = YPaw / max(1, wbn8)\n ...
[ "0.7977565", "0.7388579", "0.7290341", "0.7271139", "0.72694844", "0.72598624", "0.7169234", "0.71169955", "0.71154535", "0.7109139", "0.7057512", "0.70423555", "0.7026137", "0.7019346", "0.699786", "0.69901377", "0.69899416", "0.6953992", "0.6948076", "0.6937189", "0.6933678...
0.7942496
1
Given an email, return matching user(s) who should receive a reset. This allows subclasses to more easily customize the default policies that prevent inactive users and users with unusable passwords from resetting their password.
def VE4R(YKHO, D3lj): iOuf = egNl()._default_manager.filter(email__iexact=D3lj, is_active=True) return (P6bq for P6bq in iOuf if P6bq.has_usable_password())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VE4R(YKHO, D3lj):\n Nc2H = egNl()\n iOuf = Nc2H._default_manager.filter(**{'%s__iexact' % Nc2H.get_email_field_name(): D3lj})\n return iOuf", "def VE4R(YKHO, D3lj):\n iOuf = YhYs._default_manager.filter(email__iexact=D3lj, is_active=True)\n return (P6bq for P6bq in iOuf if P6bq.has_usable_pass...
[ "0.6780451", "0.6712309", "0.6705156", "0.6705156", "0.6703152", "0.6703152", "0.6640055", "0.6608588", "0.6551545", "0.6530081", "0.64942825", "0.6421367", "0.6309157", "0.62832326", "0.6150797", "0.6107861", "0.6107729", "0.6099336", "0.6061654", "0.6051757", "0.6004299", ...
0.66773003
6
Generates a oneuse only link for resetting password and sends to the user.
def xkzz(YKHO, Xczh=None, BE9d='registration/password_reset_subject.txt', zccf='registration/password_reset_email.html', HNpj=False, jVr7=SVG3, sIWq=None, QePW=None, JTkv=None): D3lj = YKHO.cleaned_data['email'] for CBIr in YKHO.get_users(D3lj): if not Xczh: FyFa = qtY4(QePW) w1v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkJG(YKHO):\n D3lj = YKHO.form.get('email', '').strip()\n CBIr = YKHO.store.get_user_by_email(D3lj)\n if not CBIr:\n return YKHO.fail('email address unknown to me')\n if YKHO.store.get_otk(CBIr['name']):\n U34r = {'otk': YKHO.store.get_otk(CBIr['name']), 'url': YKHO.config.url, 'admin...
[ "0.7477086", "0.73637307", "0.73034996", "0.72742647", "0.71531403", "0.70496076", "0.7024651", "0.7006456", "0.6984675", "0.69459325", "0.6943706", "0.6941279", "0.692917", "0.6919529", "0.68995154", "0.6890397", "0.6885185", "0.6882016", "0.6875887", "0.68358904", "0.682365...
0.0
-1
Test client put method for update one document
def YdEn(YKHO, x0hE): PZSZ = YKHO.__test_id rvvM = {'$set': {'satellite': 'update_satellite_name_X', 'storage_path': '/vol/data/control_frame/update_signal-element_file'}} wT63 = x0hE.put(nKyW('api.signal_element', id=PZSZ), json=rvvM) assert wT63.status_code == 200
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YdEn(YKHO, x0hE):\n PZSZ = YKHO.__test_id\n r7tU = {'$set': {'type': '0xDC', 'storage_path': '/vol/data/control_frame/update_control-frame_file'}}\n wT63 = x0hE.put(nKyW('api.control_frame', id=PZSZ), json=r7tU)\n assert wT63.status_code == 200", "def YdEn(YKHO):\n nPrm = {'name': 'new name'}\...
[ "0.82397705", "0.8076067", "0.8057998", "0.784602", "0.78164274", "0.7644519", "0.76233596", "0.75688386", "0.7555253", "0.75437164", "0.75437164", "0.75437164", "0.75437164", "0.75437164", "0.75437164", "0.75437164", "0.75437164", "0.75437164", "0.74791425", "0.7464159", "0....
0.83610004
0
Example of a builder function that constructs a `personalize_fn`. The returned function represents the optimization algorithm to run on each client in order to personalize a model for those clients.
def Uk0A(ZxRY, sTd8, y5lg, gX2p, gzqW, hXNa=True, NT8N=1000): K0do = ZxRY() @ZylS.function def phMG(C3ST, ppBc, Zwka, QpfX=None): """A personalization strategy that trains a model and returns the metrics. Args: model: A `tff.learning.Model`. train_data: An unbatched `tf.data.Dataset...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uk0A(ZxRY: _OptimizerFn, Ep8u: int, Zbwy: int, gX2p: int, hXNa: bool=True) -> BPzY:\n K0do = ZxRY()\n\n @ZylS.function\n def phMG(C3ST: tff.learning.models.VariableModel, ppBc: tf.data.Dataset, Zwka: tf.data.Dataset, QpfX: Optional[Any]=None) -> g760.OrderedDict[str, ImMB]:\n \"\"\"A personaliz...
[ "0.6649406", "0.5690863", "0.566883", "0.5533273", "0.53474796", "0.5316366", "0.5245587", "0.51974905", "0.51088357", "0.5093898", "0.4987544", "0.49727383", "0.4916554", "0.48915723", "0.4871524", "0.48672697", "0.48508438", "0.48499468", "0.48382273", "0.48156267", "0.4806...
0.6634278
1
Returns True if there are no tasks assigned to the Station
def FBfn(YKHO) -> bool: return len(YKHO) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v5nb(YKHO) -> bool:\n for H5ew in YKHO.last_cmd_data:\n if H5ew in YKHO.last_input and YKHO.last_cmd_data[H5ew][1] != YKHO.last_input[H5ew]:\n return False\n return True", "def SXFO(YKHO) -> bool:\n return YKHO.tasks is not None", "def GN__(YKHO):\n return False", "def ZfD8(...
[ "0.7271257", "0.7116518", "0.66933125", "0.6519762", "0.6474321", "0.6458481", "0.64462507", "0.6407435", "0.634905", "0.63235915", "0.6313432", "0.6301662", "0.62759453", "0.6261954", "0.6261533", "0.625491", "0.62541825", "0.62415314", "0.6237749", "0.62176985", "0.62165874...
0.0
-1
Returns the next NAT exclude rule number for VPN purposes
def CrUE(YKHO): if YKHO._nat_exclude_rule_num >= YKHO._MAX_NAT_EXCLUDE_RULE_NUM: raise E7KC.VRouterOperationError(ip_address=YKHO.address, reason='Max NAT Exclude rule count reached') YKHO._nat_exclude_rule_num += 1 return YKHO._nat_exclude_rule_num
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def epaF(YKHO):\n if YKHO._nat_subnet_ip_rule_num >= YKHO._MAX_NAT_SUBNET_IP_RULE_NUM:\n raise E7KC.VRouterOperationError(ip_address=YKHO.address, reason='Max NAT Subnet IP rule count reached')\n YKHO._nat_subnet_ip_rule_num += 1\n return YKHO._nat_subnet_ip_rule_num", "def ZaYc(YKHO):\n if YK...
[ "0.6678167", "0.6063547", "0.579884", "0.55208653", "0.52377343", "0.5161731", "0.51384294", "0.5096808", "0.50895184", "0.50860006", "0.50487745", "0.5035561", "0.5008843", "0.5008775", "0.49965912", "0.49867555", "0.49858972", "0.49670926", "0.49629796", "0.4955769", "0.494...
0.8331428
0