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 |
|---|---|---|---|---|---|---|
Check if cached stations still exist in osm data and not moved far away. | def YqIv(YKHO, j5sA):
Vb0H = YKHO.cache[j5sA.name]
for TlHf, RNX1 in Vb0H['stops'].items():
zW8g = RNX1['osm_type'][0] + str(RNX1['osm_id'])
zRIQ = j5sA.elements.get(zW8g)
if not zRIQ or not njvh.is_station(zRIQ, j5sA.modes):
return False
g9v4 = h301(zRIQ)
Gew... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X77H(YKHO) -> bool:\n if not YKHO.items:\n bo34.debug('Data is not ready yet')\n return False\n if YKHO._cached_at + YKHO.cache_period < qcWV.now():\n bo34.debug('Updating sitemap cache')\n return False\n bo34.debug('Using sitemap cache')\n return True",
"def KLFc(YKHO... | [
"0.625328",
"0.6213155",
"0.6029869",
"0.6017577",
"0.59913015",
"0.59902805",
"0.5969509",
"0.5934449",
"0.59076476",
"0.58949757",
"0.58706063",
"0.5868306",
"0.58597815",
"0.5851138",
"0.5846369",
"0.58399236",
"0.5824837",
"0.5790584",
"0.5742519",
"0.57353777",
"0.571658... | 0.72059286 | 0 |
cities list of City instances; transfers list of sets of StopArea.id; cache_path path to jsonfile with good cities cache or None. | def NBjn(gysO, HMEH, gLDJ):
def iEdv(Z9rn):
return Z9rn[1:] if Z9rn else None
def ydJM(hgjH, Ziit):
zNqJ = []
Tm2h = None
for exwG in Ziit:
Csk6 = Ayfi(hgjH, (exwG['lon'], exwG['lat']))
if not Tm2h:
Tm2h = Csk6 * 2 / 3
elif Cs... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gAk_(YKHO, HMEH):\n for dBfS in YKHO.recovered_city_names:\n v80b = YKHO.cache[dBfS]['transfers']\n for x_dm, t8sg, Ysky in v80b:\n if (x_dm, t8sg) not in HMEH:\n HMEH[x_dm, t8sg] = Ysky",
"def AhPw(YKHO, dBfS, eVVj):\n YKHO.cache[dBfS] = {'network': eVVj, 'stops... | [
"0.6229207",
"0.6121748",
"0.61086136",
"0.5883801",
"0.58117515",
"0.5752471",
"0.56233966",
"0.56224024",
"0.5513273",
"0.5480705",
"0.54620665",
"0.54597175",
"0.5449166",
"0.5370525",
"0.53670186",
"0.53654027",
"0.53389657",
"0.53277516",
"0.53069663",
"0.52869475",
"0.5... | 0.7576152 | 0 |
Return the path to the file represented by the URI. | def pmON(YKHO):
return YKHO.__path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ct9R(YKHO, j8eK):\n qJi5 = iQWu.file_parse_name(j8eK)\n return qJi5.get_path()",
"def qaEx(YKHO):\n assert YKHO.is_file\n ys3h = jKi7.moves.urllib.parse.urlparse(YKHO.url[7:])\n return Hy7s.path.normpath(Hy7s.path.join(YKHO._base_dir, ys3h.netloc + ys3h.path))",
"def fyMa(j8eK):\n rSWC = ... | [
"0.8501967",
"0.7750096",
"0.7528583",
"0.7287764",
"0.7287764",
"0.7278435",
"0.71642196",
"0.68879366",
"0.68860906",
"0.6832747",
"0.6759522",
"0.67590725",
"0.67590725",
"0.67585784",
"0.673047",
"0.6720144",
"0.6717778",
"0.66869384",
"0.6671114",
"0.6631472",
"0.6611267... | 0.0 | -1 |
Return the password in the backup image URI. | def jTXt(YKHO):
return YKHO.__password | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jTXt(YKHO):\n return YKHO.image_fixture.password",
"def Rci7(YKHO):\n return YKHO.password_dir / YKHO.fullname",
"def QVq7(YKHO) -> str:\n return YKHO._password",
"def AuKh(YKHO):\n return YKHO.crb['pass']",
"def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')",
"def jTXt(YKHO) ... | [
"0.7567288",
"0.6806868",
"0.656531",
"0.6544767",
"0.6517489",
"0.6517489",
"0.6517489",
"0.6517489",
"0.64881265",
"0.6475737",
"0.6471864",
"0.6471864",
"0.6471864",
"0.64677376",
"0.64526623",
"0.64356613",
"0.63822615",
"0.637221",
"0.6352458",
"0.6344041",
"0.6344041",
... | 0.62565225 | 28 |
Test for invalid numerical value for wind speed. | def nSpm(YKHO):
with trZe.raises(ValueError, match='.* -12.9 .*'):
Ui3b(YKHO.bg_temp, YKHO.r_hum, YKHO.w_speed_invalid) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IYOF():\n ycBG = oyIN.array([10, 51, 49, 60, 80, 81]) * rYO3.degF\n iBLD = oyIN.array([4, 4, 3, 1, 10, 39]) * rYO3.mph\n Uf4h = _RmF(ycBG, iBLD)\n w75t = rYO3.Quantity(oyIN.ma.array([2.6230789, oyIN.nan, oyIN.nan, oyIN.nan, oyIN.nan, oyIN.nan], mask=[False, True, True, True, True, True]), rYO3.degF... | [
"0.6963875",
"0.6928827",
"0.68711054",
"0.679076",
"0.6537735",
"0.6339522",
"0.63144356",
"0.6307008",
"0.62957853",
"0.623907",
"0.6150755",
"0.6131828",
"0.61164105",
"0.60482305",
"0.6018574",
"0.6000157",
"0.59111905",
"0.5821234",
"0.58012146",
"0.5779594",
"0.5752142"... | 0.7042026 | 0 |
Test for invalid numerical value for solar radiation. | def UPg0(YKHO):
with trZe.raises(ValueError, match='.* -5.1 .*'):
W_hn(YKHO.air_temp, YKHO.r_hum, -5.1, YKHO.w_speed) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gc5P(YKHO):\n with trZe.raises(ValueError):\n W_hn(YKHO.air_temp, YKHO.r_hum, 'invalid number', YKHO.w_speed)",
"def pUz7(FGW3):\n try:\n FGW3 = float(FGW3)\n except (TypeError, ValueError):\n HwRy.stderr.write('ValueCheck: bad value: %r\\n' % (FGW3,))\n return XTiz.nan\n... | [
"0.66436434",
"0.6630493",
"0.6593101",
"0.63095754",
"0.62453926",
"0.6192854",
"0.6172183",
"0.61695564",
"0.6165419",
"0.6088278",
"0.607571",
"0.6061398",
"0.60570085",
"0.6046972",
"0.60365224",
"0.60010934",
"0.5985403",
"0.5938485",
"0.59331703",
"0.5930943",
"0.593074... | 0.6620866 | 2 |
Fetch the conference ID for a team. | def Qwcf(YKHO, zu8f, xso8):
with iHv3.connect(YKHO._db) as w2B8:
N1p7 = w2B8.cursor()
xDcj = 'SELECT DISTINCT conf FROM teams WHERE id IN (?, ?)'
N1p7.execute(xDcj, (zu8f, xso8))
ZfUD = [YRbF[0] for YRbF in N1p7.fetchall()]
if len(ZfUD) == 0:
return None
e... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z9BA(YKHO, dZPi):\n YKHO.db_cursor.execute('SELECT id FROM teams WHERE name=?', (dZPi,))\n Aofo = YKHO.db_cursor.fetchone()\n if Aofo is None:\n return None\n return Aofo[0]",
"def Opo8(YKHO, qsJ6, dZPi):\n bD7m = '%s/orgs/%s/teams' % (YKHO._api_url, qsJ6)\n geh0 = YKHO.get(bD7m)\n ... | [
"0.7323524",
"0.7285714",
"0.7143914",
"0.6936405",
"0.6829901",
"0.67878145",
"0.67878145",
"0.6760838",
"0.67424506",
"0.6693434",
"0.6693434",
"0.6693434",
"0.6498939",
"0.6486282",
"0.63500357",
"0.63203156",
"0.6280506",
"0.6278343",
"0.62412506",
"0.61015755",
"0.608850... | 0.0 | -1 |
The digital root of all positive base10 number will be 0 iff the number is 0. Otherwise, all numbers that yield a "pseudo digital root" of 0 will have to return 9. | def BKuV(SOnQ):
if SOnQ == 0:
return 0
z9ph = SOnQ % 9
return 9 if z9ph == 0 else z9ph | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I5QR(mLGw):\n if mLGw < 0:\n raise ValueError\n if mLGw < 10:\n return mLGw\n else:\n _1qI = 0\n while mLGw > 0:\n _1qI = _1qI + mLGw % 10\n mLGw = mLGw // 10\n if _1qI < 10:\n return _1qI\n else:\n return I5QR(_1qI)... | [
"0.7781114",
"0.7635282",
"0.69153535",
"0.6347546",
"0.62920254",
"0.6284895",
"0.62657154",
"0.6262186",
"0.6252063",
"0.6219444",
"0.6216394",
"0.6150121",
"0.6144412",
"0.61346537",
"0.6120891",
"0.61064017",
"0.60729134",
"0.6020152",
"0.601728",
"0.5933599",
"0.59309256... | 0.7423578 | 2 |
Gets the distro_hash of this Promotion Query. distro_hash of promoted repo | def TtSl(YKHO):
return YKHO._distro_hash | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hash(YKHO):\n return Hy7s.popen('git rev-parse HEAD').read().strip()",
"def hash(YKHO):\n return Hy7s.popen('git rev-parse HEAD').read().strip()",
"def L6HI(YKHO):\n with YKHO:\n HCmI = TkY7('git rev-parse HEAD', YKHO.target)\n HCmI.wait()\n return HCmI.output()[0]",
"def Oh... | [
"0.5767713",
"0.5767713",
"0.57645965",
"0.57325804",
"0.56803334",
"0.56265104",
"0.5570162",
"0.55675554",
"0.55217916",
"0.55202764",
"0.5497153",
"0.5449247",
"0.5438258",
"0.54121363",
"0.54087436",
"0.5399846",
"0.5399682",
"0.53933823",
"0.5391918",
"0.53789437",
"0.53... | 0.755871 | 1 |
Gets the extended_hash of this Promotion Query. distro_hash of promoted repo | def tbyO(YKHO):
return YKHO._extended_hash | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TtSl(YKHO):\n return YKHO._distro_hash",
"def TtSl(YKHO):\n return YKHO._distro_hash",
"def YI76(YKHO) -> int:\n return int(YKHO.get_context().get('crypto_extended_base_hash'))",
"def L6HI(YKHO):\n with YKHO:\n HCmI = TkY7('hg identify', YKHO.target)\n HCmI.wait()\n retur... | [
"0.661196",
"0.661196",
"0.6265777",
"0.58043724",
"0.5696854",
"0.5682371",
"0.5682371",
"0.5682233",
"0.5677326",
"0.56213295",
"0.559854",
"0.5549362",
"0.5549362",
"0.5537032",
"0.5533482",
"0.55317086",
"0.5528881",
"0.55134666",
"0.55122364",
"0.55020446",
"0.5495268",
... | 0.66688883 | 1 |
Gets the aggregate_hash of this Promotion Query. aggregate_hash of promoted repo | def EMxU(YKHO):
return YKHO._aggregate_hash | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def az0M(YKHO):\n return YKHO.__aggregation",
"def SZsr(YKHO):\n return YKHO._commit_hash",
"def SZsr(YKHO):\n return YKHO._commit_hash",
"def GbBF(YKHO):\n return YKHO.__aggregate_id",
"def SZsr(YKHO):\n return YKHO._domain.commit_hash",
"def GbBF(YKHO):\n return YKHO.__aggregate_id",
... | [
"0.57688797",
"0.5671793",
"0.5671793",
"0.5647795",
"0.55831337",
"0.55817163",
"0.55314237",
"0.5446123",
"0.54148656",
"0.53814596",
"0.5335642",
"0.5317403",
"0.5311726",
"0.5311726",
"0.5311726",
"0.5311726",
"0.5311726",
"0.5311726",
"0.5311726",
"0.52955717",
"0.527649... | 0.7021172 | 0 |
Sets the aggregate_hash of this Promotion Query. aggregate_hash of promoted repo | def EMxU(YKHO, EMxU):
YKHO._aggregate_hash = EMxU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EMxU(YKHO):\n return YKHO._aggregate_hash",
"def SZsr(YKHO, SZsr):\n YKHO._commit_hash = SZsr",
"def SZsr(YKHO, SZsr):\n YKHO._commit_hash = SZsr",
"def X1Eq(YKHO, X1Eq):\n YKHO._objective_hash = X1Eq",
"def xSh6(YKHO, xSh6):\n YKHO._talent_grid_hash = xSh6",
"def H7ZY(YKHO, H7ZY):\n ... | [
"0.5833233",
"0.52936256",
"0.52936256",
"0.5246544",
"0.5196886",
"0.51447845",
"0.51222795",
"0.5099948",
"0.50742763",
"0.50136405",
"0.50136405",
"0.49989164",
"0.49910948",
"0.49838692",
"0.49838692",
"0.49838692",
"0.49838692",
"0.49665374",
"0.49665374",
"0.48611706",
... | 0.75621104 | 0 |
Gets the promote_name of this Promotion Query. name used for the promotion | def bQ96(YKHO):
return YKHO._promote_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gv8G(YEnM):\n return '%s' % YEnM.promotion.name",
"def qQNS(YKHO):\n return f'P({YKHO.short_query_str()})'",
"def bQ96(YKHO, bQ96):\n YKHO._promote_name = bQ96",
"def W0tD(YKHO) -> str:\n if YKHO.alias:\n return YKHO.alias\n return YKHO.final_name",
"def W0tD(YKHO) -> str:\n re... | [
"0.7438505",
"0.6147425",
"0.611083",
"0.6046311",
"0.6017277",
"0.5963856",
"0.5930324",
"0.5930324",
"0.5930324",
"0.5930324",
"0.5930324",
"0.5930324",
"0.59038186",
"0.5898666",
"0.5898666",
"0.5898666",
"0.5898666",
"0.5898666",
"0.5878811",
"0.58494663",
"0.58204013",
... | 0.7641133 | 0 |
Gets the component of this Promotion Query. Limit to the query to promotions for this component | def UksD(YKHO):
return YKHO._component | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GqEw(YKHO, BqeW):\n for Lx3t in YKHO.products:\n if Lx3t[0] == BqeW:\n return Lx3t[1]",
"def bAnZ(YKHO):\n return YKHO.component",
"def bAnZ(YKHO):\n return YKHO._component",
"def UksD(YKHO) -> ahCL:\n return YKHO._component",
"def bAnZ(YKHO):\n if YKHO.__componentMode_... | [
"0.6780632",
"0.63109887",
"0.60809207",
"0.6018845",
"0.5851776",
"0.5851776",
"0.5817953",
"0.5668742",
"0.559593",
"0.5523391",
"0.5520737",
"0.5520737",
"0.551214",
"0.5501159",
"0.54869765",
"0.54869765",
"0.54869765",
"0.5473604",
"0.5466577",
"0.54099196",
"0.54099196"... | 0.6183459 | 2 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.8640854",
"0.85093737",
"0.785447",
"0.7744496",
"0.77114135",
"0.7696879",
"0.76601094",
"0.7639409",
"0.7623007",
"0.7608497",
"0.7608497",
"0.7608497",
"0.76073915",
"0.7600974",
"0.75863326",
"0.75839657",
"0.7572215",
"0.7569474",
"0.75403374",
"0.75403374",
"0.752854... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Initializes an object representing a card. | def FIMM(YKHO, mWFP: str='', LTIa: int=0):
YKHO.name = mWFP
YKHO.points = LTIa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, qsJ6, QTBn, kfQt):\n P8oC = V0G0(YKHO, kfQt['base'])\n F1Hz.__init__(YKHO, kfQt['Name'], kfQt['Cost'], P8oC, qsJ6, QTBn, kfQt)\n YKHO.countdown = kfQt['Base'].setdefault('Countdown', None)\n YKHO.state = QTBn\n YKHO.type = DcAe.amulet",
"def FIMM(YKHO, FCyN, tXNk, wEiH):\n YKHO.c... | [
"0.79328024",
"0.77938545",
"0.7758791",
"0.7699946",
"0.7677718",
"0.7637385",
"0.7589452",
"0.7527522",
"0.75090456",
"0.7497045",
"0.7492676",
"0.7410808",
"0.7401748",
"0.73902524",
"0.737083",
"0.7354354",
"0.7353978",
"0.73116636",
"0.73028934",
"0.7256916",
"0.725439",... | 0.0 | -1 |
String representation of the card's name and point value | def zAg0(YKHO):
return f'{YKHO.name}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return f'{F1Hz.VALUES[YKHO.value]} of {F1Hz.SUITS[YKHO.suit]}'",
"def zAg0(YKHO):\n return '%s of %s' % (F1Hz.value_names[YKHO.value], F1Hz.suit_names[YKHO.suit])",
"def zAg0(YKHO):\n return 'Card: suit: {:10s} rank: {} value: {:3d}'.format(YKHO.__card_suit_name, YKHO.__card_suit_ran... | [
"0.75273204",
"0.75113535",
"0.7507056",
"0.74130774",
"0.7255412",
"0.7179583",
"0.7104736",
"0.7096761",
"0.7086928",
"0.7072911",
"0.70582265",
"0.70456696",
"0.7040804",
"0.7040804",
"0.7022039",
"0.70130694",
"0.70019054",
"0.6977382",
"0.69764477",
"0.6900347",
"0.68917... | 0.7113628 | 6 |
Decodes a record to a TensorFlow example. | def F8vC(AIu6, Q3__):
PU1l = ZylS.parse_single_example(AIu6, Q3__)
for mWFP in list(PU1l.keys()):
a1PO = PU1l[mWFP]
if a1PO.dtype == ZylS.int64:
a1PO = ZylS.to_int32(a1PO)
PU1l[mWFP] = a1PO
return PU1l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8vC(AIu6, Q3__=Q3__):\n print('record', AIu6)\n PU1l = ZylS.parse_single_example(AIu6, Q3__)\n for mWFP in list(PU1l.keys()):\n a1PO = PU1l[mWFP]\n if a1PO.dtype == ZylS.int64:\n a1PO = ZylS.to_int32(a1PO)\n PU1l[mWFP] = a1PO\n return PU1l",
"def F8vC(AIu6, Q3__):... | [
"0.8447341",
"0.8301567",
"0.8279351",
"0.8275953",
"0.8275953",
"0.8275953",
"0.82753044",
"0.82734776",
"0.82734776",
"0.82687396",
"0.8265597",
"0.82326764",
"0.82233274",
"0.8212724",
"0.8212724",
"0.819977",
"0.81511253",
"0.81293434",
"0.81259537",
"0.8102487",
"0.79588... | 0.82483613 | 11 |
Return features slice for a test/train split. | def bySB(YKHO, lpha, bySB):
EvQg, QOe9 = lpha
return (bySB[YKHO.features_[EvQg]], bySB[YKHO.features_[QOe9]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mMn3(YKHO):\n return AQU0.train_test_split(YKHO.data, YKHO.target)",
"def hhTY(YKHO):\n EvQg = []\n QOe9 = []\n for ZfUD in YKHO.data:\n if ZfUD[0] == 'train':\n EvQg.append(ZfUD)\n else:\n QOe9.append(ZfUD)\n return (EvQg, QOe9)",
"def bHtP(fUYa, QOe9=0.4... | [
"0.7240789",
"0.69392145",
"0.69230694",
"0.6911241",
"0.68541604",
"0.68515384",
"0.6825617",
"0.67795193",
"0.67737293",
"0.67610115",
"0.6696051",
"0.66888505",
"0.6679623",
"0.6665909",
"0.6664217",
"0.664994",
"0.66332555",
"0.6633225",
"0.6631274",
"0.6606971",
"0.65971... | 0.6887343 | 4 |
Return targets slice for a test/train split. | def x6A0(YKHO, lpha, x6A0):
EvQg, QOe9 = lpha
return (x6A0[YKHO.targets_[EvQg]], x6A0[YKHO.targets_[QOe9]]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RH8N(Blhr):\n x6A0 = []\n for YRbF, mvm2 in enumerate(Blhr):\n x6A0.extend(mvm2['target'].numpy())\n return x6A0",
"def mMn3(YKHO):\n return AQU0.train_test_split(YKHO.data, YKHO.target)",
"def x6A0(YKHO):\n return YKHO.trainset.targets",
"def JCJW(YKHO):\n return YKHO.targets[0:... | [
"0.6721411",
"0.66447026",
"0.66214454",
"0.6604059",
"0.63363606",
"0.62919295",
"0.6271462",
"0.6239664",
"0.623933",
"0.62320316",
"0.62320316",
"0.62207043",
"0.61968905",
"0.6160411",
"0.61480707",
"0.6119975",
"0.61150205",
"0.6105326",
"0.6067928",
"0.6067106",
"0.6065... | 0.75784016 | 0 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:
if (yT1k := (await ajET.config_entries.async_unload_platforms(bTKY, aprE))):
ajET.data[Sugg].pop(bTKY.entry_id)
return yT1k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)",
"async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()... | [
"0.7043211",
"0.69987667",
"0.69208705",
"0.6904362",
"0.68998456",
"0.6872188",
"0.6841565",
"0.6792108",
"0.6785277",
"0.6784296",
"0.67775536",
"0.67695177",
"0.67392683",
"0.67312276",
"0.67148435",
"0.6708635",
"0.6665728",
"0.66414803",
"0.6638568",
"0.6616761",
"0.6608... | 0.6452101 | 54 |
Returns the diagonal length of a hexagon | def zE6u(YKHO):
return 2 * YKHO.length | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oDKx(YKHO):\n Fg_i = YKHO.polydata().GetBounds()\n return oyIN.sqrt((Fg_i[1] - Fg_i[0]) ** 2 + (Fg_i[3] - Fg_i[2]) ** 2 + (Fg_i[5] - Fg_i[4]) ** 2)",
"def rqoF(sY_C):\n f0tD = 1.5 * oyIN.sqrt(3.0) * sY_C\n return f0tD",
"def IjIm(Mkmy):\n from math import sqrt\n return sqrt(u54L(Mkmy) ** ... | [
"0.6983721",
"0.67046773",
"0.64876896",
"0.6477632",
"0.6391514",
"0.6311605",
"0.6274069",
"0.62200195",
"0.614309",
"0.61374724",
"0.61099935",
"0.6079686",
"0.606761",
"0.6028082",
"0.60232127",
"0.59913516",
"0.5976932",
"0.5961759",
"0.5958867",
"0.59433126",
"0.593864"... | 0.61675686 | 8 |
Returns the diagonal length of a hexagon | def Hq2A(YKHO):
return YKHO.length * PZyS(3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oDKx(YKHO):\n Fg_i = YKHO.polydata().GetBounds()\n return oyIN.sqrt((Fg_i[1] - Fg_i[0]) ** 2 + (Fg_i[3] - Fg_i[2]) ** 2 + (Fg_i[5] - Fg_i[4]) ** 2)",
"def rqoF(sY_C):\n f0tD = 1.5 * oyIN.sqrt(3.0) * sY_C\n return f0tD",
"def IjIm(Mkmy):\n from math import sqrt\n return sqrt(u54L(Mkmy) ** ... | [
"0.6982699",
"0.6706693",
"0.6482641",
"0.64757186",
"0.63892096",
"0.6313099",
"0.6275012",
"0.6219079",
"0.6163808",
"0.6140156",
"0.6109591",
"0.6082096",
"0.6066596",
"0.6025988",
"0.60187757",
"0.59930325",
"0.59780484",
"0.5964176",
"0.59606576",
"0.5942696",
"0.5940408... | 0.6138755 | 10 |
Instantiate a new User instance. | def MiuT(YKHO, o8Kj, KAOR=None):
assert KAOR is None, 'Cannot update users with UserCreationSerializer'
CBIr = mv1M(email=o8Kj.get('email', ''), username=o8Kj.get('username'))
CBIr.set_password(o8Kj.get('password'))
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vbsz(YKHO):\n CBIr = mv1M(YKHO.data['username'], YKHO.data['password'], YKHO.data['email'])\n YKHO._set_common_attributes(CBIr)\n YKHO.user = CBIr\n return CBIr",
"def vbsz(YKHO):\n CBIr = mv1M(username=YKHO.data['username'], email=YKHO.data['email'], password=YKHO.data['password'])\n YKHO.... | [
"0.7987797",
"0.7922719",
"0.7596995",
"0.7583048",
"0.75656",
"0.75235045",
"0.74194926",
"0.74122345",
"0.7389775",
"0.73199594",
"0.7314734",
"0.73067516",
"0.7297577",
"0.7260827",
"0.7257717",
"0.7245608",
"0.72187304",
"0.72084516",
"0.72084516",
"0.71991444",
"0.715106... | 0.0 | -1 |
This example method on our test subclass shows we can override the set_api_key method | def POlZ(YKHO, rJDA=None) -> str:
PbB1 = YKHO.mock_api_key_from_external
return super().retrieve_id(PbB1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dma5(YKHO, rJDA: str):\n YKHO.api_key = rJDA",
"def FIMM(YKHO, rSTc):\n YKHO.set_apikey(rSTc)",
"def rJDA(YKHO, rJDA):\n YKHO._api_key = rJDA",
"def iu1r(YKHO, rSTc):\n YKHO.apikey = rSTc\n return YKHO",
"def Dma5(YKHO, H5ew: str) -> None:\n YKHO._api_key = H5ew",
"def h2wX(YKHO):\n... | [
"0.82175714",
"0.77011687",
"0.7547232",
"0.754553",
"0.75000036",
"0.74835616",
"0.7422281",
"0.7396731",
"0.7372354",
"0.7372354",
"0.7372354",
"0.73465633",
"0.7317843",
"0.72766596",
"0.72766596",
"0.72766596",
"0.7247884",
"0.72132444",
"0.7131427",
"0.7127129",
"0.70989... | 0.0 | -1 |
Plots seaborn countplots of unit covariate and outcome distributions | def _7Vm(jQ3Z, Es0b, pLl6=None, ioEw=None, cZQY=None, kyIY=None, Pyrc=None, wytA=(15, 5), GAJY=20, jDK_=None):
import re
def ARFj(hcXw):
return int(hcXw) if hcXw.isdigit() else hcXw
def d9Al(l5Ny):
"""
Added so the columns are correctly ordered
"""
return [ARFj(hcXw... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AsWn(jQ3Z):\n Gsik = jQ3Z.columns\n for fvDH in Gsik:\n QrM1.figure(figsize=(7, 7))\n QrM1.tight_layout()\n HpuQ = uuEx.countplot(jQ3Z[fvDH])\n QrM1.title('{} Distribution'.format(fvDH))\n QrM1.show()",
"def Tw3k(ppBc, pan_, v9rB, vsK8=1):\n for iVRZ in v9rB:\n ... | [
"0.67158085",
"0.6698441",
"0.6540058",
"0.6533597",
"0.65161985",
"0.65143156",
"0.6489652",
"0.642362",
"0.63456845",
"0.63321257",
"0.63237464",
"0.6318777",
"0.62348014",
"0.6210111",
"0.6132493",
"0.60899556",
"0.6062525",
"0.6035607",
"0.6030784",
"0.6030656",
"0.602092... | 0.60614157 | 17 |
Multi response column cross tabulations | def LCtw(jQ3Z, _cg6, En0P, wVx0=3, XWt4=True, NkkI=True):
RtZD = []
for LVAh in En0P:
l1ca = rLdf.crosstab(jQ3Z[_cg6], jQ3Z[LVAh], margins=XWt4, normalize=NkkI)
if wVx0 >= 0:
l1ca.columns = ['{}_{}'.format(str(LVAh)[:int(wVx0)], fvDH) for fvDH in l1ca.columns]
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wmwS(jQ3Z: pd.DataFrame):\n Rl2j = rLdf.crosstab(jQ3Z['id_car'], jQ3Z['nm_nome_cleaned'], jQ3Z['conteggio'], aggfunc='first').fillna(0)\n uywR = Rl2j.index.values\n m6fV = Rl2j.columns.values\n Rl2j = oyIN.array(Rl2j)\n return (Rl2j, uywR, m6fV)",
"def ubX2():\n pass",
"def bBRi(jQ3Z: pd.... | [
"0.6641186",
"0.6041838",
"0.5992172",
"0.55500734",
"0.5438946",
"0.54285616",
"0.5422133",
"0.5392301",
"0.53805465",
"0.5333076",
"0.5332428",
"0.529059",
"0.52738625",
"0.52197415",
"0.520936",
"0.5191747",
"0.51904964",
"0.51891696",
"0.5186832",
"0.51314104",
"0.5127539... | 0.7066519 | 0 |
Gets index of self within the list of possible values self can take | def d6pt(YKHO):
return YKHO.possible_values.index(YKHO.value.get()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(YKHO, BWXx):\n for QyVM, wEf2 in enumerate(YKHO):\n if wEf2 == BWXx:\n return QyVM\n raise ValueError",
"def kS1Y(YKHO, pan_):\n for YRbF in range(len(YKHO)):\n if YKHO[YRbF][0] == pan_:\n return YRbF\n return None",
"def d6pt(YKHO, wEf2):\n for r845 ... | [
"0.7219542",
"0.7022066",
"0.697076",
"0.69250137",
"0.6824833",
"0.66914815",
"0.6667792",
"0.6648422",
"0.6643891",
"0.6609517",
"0.6594441",
"0.6551448",
"0.6546885",
"0.6533039",
"0.6532005",
"0.6497448",
"0.6474135",
"0.6408823",
"0.63997114",
"0.6396491",
"0.6394006",
... | 0.7653994 | 0 |
Length between self and point. | def u54L(YKHO, AU8u):
return PZyS((AU8u.x - YKHO.x) ** 2 + (AU8u.y - YKHO.y) ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yall(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)",
"def yall(YKHO):\n u54L = 0.0\n _YlI = YKHO.points[0]\n for AU8u in YKHO.points[1:]:\n u54L += _YlI.distance_to(AU8u)\n _YlI = AU8u\n return u54L",
"def u54L(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)",
... | [
"0.81691134",
"0.81663436",
"0.8130679",
"0.81058574",
"0.80962384",
"0.8073793",
"0.79693884",
"0.79319847",
"0.7886178",
"0.77675486",
"0.77291566",
"0.77291566",
"0.76920134",
"0.7672696",
"0.76534015",
"0.75903726",
"0.7587706",
"0.7572074",
"0.7566011",
"0.7515626",
"0.7... | 0.8548833 | 0 |
Create a dict of point with key a number and value a point. | def JTYK(Nqlg):
LTIa = []
UHFx = 1
for zFiD in Nqlg:
zFiD = zFiD.strip().split(' ')
AU8u = PvyL(int(zFiD[0]), int(zFiD[-1]))
LTIa.append([UHFx, AU8u])
UHFx += 1
return LTIa | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nkGx():\n return {(1.0, 5.0), (2.0, 8.0), (3.5, 12.5)}",
"def dict(YKHO):\n return {'x0': YKHO.x0, 'y0': YKHO.y0, 'x1': YKHO.x1, 'y1': YKHO.y1}",
"def dict(YKHO):\n return {'x0': YKHO.x0, 'y0': YKHO.y0, 'x1': YKHO.x1, 'y1': YKHO.y1}",
"def eB2f(AU8u: pymap.Landmark) -> cuzp[str, ImMB]:\n retu... | [
"0.6757038",
"0.6305212",
"0.6305212",
"0.6290897",
"0.62547594",
"0.62381697",
"0.6179902",
"0.6123381",
"0.6091146",
"0.598617",
"0.59488374",
"0.5918325",
"0.59116346",
"0.58879477",
"0.5885449",
"0.5884554",
"0.5834248",
"0.57851565",
"0.57761586",
"0.5769241",
"0.5760095... | 0.533786 | 75 |
Gets the external_signer_id of this UpdateSignerRequest. Your reference for the signer. | def LJCF(YKHO):
return YKHO._external_signer_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WhG7(YKHO):\n return YKHO._external_id",
"def WhG7(YKHO):\n return YKHO._external_id",
"def WhG7(YKHO):\n return YKHO._external_id",
"def WhG7(YKHO):\n return YKHO._external_id",
"def hHf2(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'signer_key')",
"def WhG7(YKHO):\n ret... | [
"0.63742054",
"0.63742054",
"0.63742054",
"0.63742054",
"0.6322232",
"0.62751216",
"0.6239266",
"0.620429",
"0.61426586",
"0.61339486",
"0.60924673",
"0.6077298",
"0.6077298",
"0.5936994",
"0.5873938",
"0.57648414",
"0.57287997",
"0.57012767",
"0.56418985",
"0.555168",
"0.547... | 0.819281 | 0 |
Sets the external_signer_id of this UpdateSignerRequest. Your reference for the signer. | def LJCF(YKHO, LJCF):
YKHO._external_signer_id = LJCF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tvwn(YKHO, WhG7):\n YKHO.set_payload_param(Qhjq.EXTERNAL_ID.value, WhG7)",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def Tvwn(YKHO, WhG7):\n YKHO.set_condition('StringEquals... | [
"0.7008555",
"0.69260275",
"0.69260275",
"0.69260275",
"0.6585033",
"0.6442338",
"0.6234726",
"0.6234726",
"0.62284666",
"0.6114876",
"0.60826814",
"0.5992086",
"0.5893838",
"0.58909875",
"0.5626036",
"0.55877435",
"0.5583326",
"0.54572743",
"0.54572743",
"0.5454932",
"0.5383... | 0.8279323 | 0 |
Gets the redirect_settings of this UpdateSignerRequest. Return URLs and domain settings | def Mjsf(YKHO):
return YKHO._redirect_settings | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iCRW(YKHO) -> 'outputs.SecurityPolicyRuleRedirectOptionsResponse':\n return qe4Y.get(YKHO, 'redirect_options')",
"def Mjsf(YKHO, Mjsf):\n YKHO._redirect_settings = Mjsf",
"def oiLb(YKHO) -> MH_9:\n return YKHO._oauth_redirect_request_params",
"def vSyi(YKHO):\n return YKHO._redirect_uri",
"... | [
"0.65684223",
"0.57500297",
"0.5744104",
"0.5701166",
"0.5701166",
"0.56925833",
"0.55888313",
"0.54449284",
"0.5418038",
"0.5410732",
"0.53939515",
"0.53894913",
"0.5367487",
"0.5367162",
"0.5364314",
"0.53599286",
"0.53529674",
"0.53510654",
"0.53157955",
"0.53019804",
"0.5... | 0.7308038 | 0 |
Sets the redirect_settings of this UpdateSignerRequest. Return URLs and domain settings | def Mjsf(YKHO, Mjsf):
YKHO._redirect_settings = Mjsf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mjsf(YKHO):\n return YKHO._redirect_settings",
"def iCRW(YKHO) -> 'outputs.SecurityPolicyRuleRedirectOptionsResponse':\n return qe4Y.get(YKHO, 'redirect_options')",
"def LfXz(YKHO, LfXz):\n YKHO._redirect_url = LfXz",
"def wfOq(YKHO, wfOq):\n YKHO._authproxy_settings = wfOq",
"def oiLb(YKHO... | [
"0.66384315",
"0.5928598",
"0.5841067",
"0.57864296",
"0.5727972",
"0.55673355",
"0.55448353",
"0.5365646",
"0.5365646",
"0.53012437",
"0.5260914",
"0.5260914",
"0.52452606",
"0.52322173",
"0.5226836",
"0.5225766",
"0.52193856",
"0.5199148",
"0.51893514",
"0.5183011",
"0.5182... | 0.7511388 | 0 |
Gets the signature_type of this UpdateSignerRequest. | def hZjE(YKHO):
return YKHO._signature_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmD8(YKHO):\n return YKHO.__sign_type",
"def hZjE(YKHO) -> str:\n SnBA = []\n if YKHO._lexeridref:\n SnBA.append(YKHO._lexeridref)\n if YKHO._typeid:\n SnBA.append(YKHO._context.signature_type(YKHO._typeid))\n if YKHO._builtintype:\n SnBA.append(YKHO._builtintype.signature... | [
"0.6649858",
"0.66411823",
"0.61105114",
"0.6043922",
"0.6013608",
"0.5995372",
"0.5991707",
"0.5991707",
"0.59837234",
"0.59837234",
"0.59783286",
"0.5969713",
"0.59537536",
"0.58913463",
"0.5882448",
"0.5828747",
"0.5805755",
"0.5805755",
"0.57975304",
"0.57975304",
"0.5793... | 0.80200154 | 0 |
Sets the signature_type of this UpdateSignerRequest. | def hZjE(YKHO, hZjE):
YKHO._signature_type = hZjE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cBcR(YKHO, cBcR):\n YKHO._recipient_type = cBcR",
"def aadv(YKHO, aadv):\n YKHO._signature = aadv",
"def aadv(YKHO, aadv):\n YKHO._signature = aadv",
"def aadv(YKHO, aadv):\n YKHO._signature = aadv",
"def hZjE(YKHO):\n return YKHO._signature_type",
"def QdZT(YKHO, aadv: str) -> None:\n... | [
"0.6011383",
"0.59517866",
"0.59517866",
"0.59517866",
"0.58169156",
"0.5755194",
"0.57233214",
"0.56952715",
"0.56952715",
"0.5694602",
"0.5681421",
"0.5671597",
"0.56339806",
"0.55737394",
"0.5566796",
"0.55428874",
"0.5513481",
"0.5467447",
"0.5457185",
"0.5457185",
"0.542... | 0.82197416 | 0 |
Gets the tags of this UpdateSignerRequest. Coming soon. | def dJ1p(YKHO):
return YKHO._tags | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qwli(YKHO):\n return YKHO.get_job().get('tags', [])",
"def dJ1p(YKHO):\n return YKHO.update_verb(VOnN.GET).update_url('/tags')",
"def dJ1p(YKHO):\n return YKHO._get('tags')",
"def Qwli(YKHO):\n return YKHO._tags",
"def Qwli(YKHO):\n return YKHO._tags",
"def qvDz(YKHO):\n return YKHO... | [
"0.706789",
"0.7038902",
"0.69338185",
"0.68585885",
"0.68585885",
"0.68327487",
"0.67774534",
"0.67774534",
"0.6761399",
"0.6744514",
"0.67424285",
"0.67424285",
"0.66699535",
"0.66580415",
"0.6571082",
"0.6563461",
"0.6563461",
"0.6563461",
"0.65487593",
"0.6523048",
"0.651... | 0.680948 | 14 |
Gets the required of this UpdateSignerRequest. Determines if the signer is required to sign the document before other signers. Any other signers will not be allowed to sign before all required signers have signed the document. | def jeGQ(YKHO):
return YKHO._required | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_eZ(YKHO):\n return YKHO._require_signer_certificate",
"def jeGQ(YKHO):\n return YKHO.__required",
"def jeGQ(YKHO):\n return YKHO.__required",
"def lsIX(YKHO):\n return YKHO._get_attribute('updateRequired')",
"def lsIX(YKHO):\n return YKHO._get_attribute('updateRequired')",
"def glsA(... | [
"0.6299256",
"0.6282776",
"0.6244355",
"0.62182087",
"0.62182087",
"0.59012634",
"0.59012634",
"0.59012634",
"0.58996046",
"0.5896602",
"0.5884667",
"0.5827142",
"0.5796265",
"0.5791789",
"0.57311356",
"0.57311356",
"0.57311356",
"0.57311356",
"0.5622954",
"0.5559954",
"0.553... | 0.6327688 | 1 |
Sets the required of this UpdateSignerRequest. Determines if the signer is required to sign the document before other signers. Any other signers will not be allowed to sign before all required signers have signed the document. | def jeGQ(YKHO, jeGQ):
YKHO._required = jeGQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_eZ(YKHO, D_eZ):\n YKHO._require_signer_certificate = D_eZ",
"def f81S(YKHO, f81S):\n YKHO._signer_must_acknowledge = f81S",
"def AcJA(YKHO, QTBn):\n YKHO._required = QTBn",
"def AcJA(YKHO, Mkmy=True):\n if YKHO._props['type'] == 'bool':\n raise dDoU(YKHO.value, 'Bool option \"%s\" ca... | [
"0.6125505",
"0.5975099",
"0.5866149",
"0.565259",
"0.5498084",
"0.5498084",
"0.5440832",
"0.5433636",
"0.5359805",
"0.5316222",
"0.5262292",
"0.52561945",
"0.52458227",
"0.52458227",
"0.52458227",
"0.52458227",
"0.52458227",
"0.5238922",
"0.5233735",
"0.5233735",
"0.5233735"... | 0.6313676 | 1 |
Gets the sign_url_expires of this UpdateSignerRequest. The time at which the signature URL expires (ISO 8601). Specify this if you want a limited timetolive for the URL. Defaults to the lifetime of the document. | def nXsZ(YKHO):
return YKHO._sign_url_expires | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fFuc(YKHO) -> str:\n return qe4Y.get(YKHO, 'signature_expires_at')",
"def nXsZ(YKHO, nXsZ):\n YKHO._sign_url_expires = nXsZ",
"def bc41(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'expires_at')",
"def bc41(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'expires_at')",
"... | [
"0.6853375",
"0.65655583",
"0.6480846",
"0.6480846",
"0.64257205",
"0.63846433",
"0.6367372",
"0.63595563",
"0.63402545",
"0.63323474",
"0.623785",
"0.62123597",
"0.61767334",
"0.61767334",
"0.61767334",
"0.61767334",
"0.61703205",
"0.6153265",
"0.610463",
"0.610463",
"0.6096... | 0.78774124 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.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 |
Given an endgame board, returns 1000 if the maximizer has won, 1000 if the minimizer has won, or 0 in case of a tie. | def oOA2(iBIi, phTf):
if phTf:
return -1000
else:
return 1000 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oOA2(iBIi, phTf):\n if DIpw(iBIi):\n rWhl = 0\n for fvDH in range(0, 7):\n if iBIi.is_column_full(fvDH):\n rWhl += 1\n if rWhl == 7:\n return 0\n elif phTf:\n return -1000\n elif not phTf:\n return 1000",
"def Kd... | [
"0.7459958",
"0.7064227",
"0.7024087",
"0.69510376",
"0.690104",
"0.68830013",
"0.6876895",
"0.6800698",
"0.6766967",
"0.6766967",
"0.67280704",
"0.6718192",
"0.670241",
"0.6700968",
"0.66639566",
"0.664983",
"0.6647901",
"0.6646065",
"0.66164166",
"0.6607771",
"0.65937877",
... | 0.69909066 | 3 |
Gets an alreadycreated parser. Returns the parser associated with ``command_name``. You may use this parser to add custom arguments or even modify the existing ones. | def EpPs(YKHO, Asoz):
return YKHO._subparsers[Asoz] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yl6v(YKHO, Asoz):\n YKHO._subparsers[Asoz] = YKHO._subparsers['_creator'].add_parser(name=Asoz)\n return YKHO._subparsers[Asoz]",
"def yl6v(YKHO, qP5v, V0Dt, ZbXs=sWmU):\n return ZbXs(prog=qP5v, usage=YKHO.usage(V0Dt), version=YKHO.get_version(), option_list=YKHO.option_list)",
"def EpPs():\n r... | [
"0.8150579",
"0.7495597",
"0.7475214",
"0.7358379",
"0.7261847",
"0.71284556",
"0.7017867",
"0.6988713",
"0.6920023",
"0.6894538",
"0.6822515",
"0.6819146",
"0.6764189",
"0.67499423",
"0.6721078",
"0.67029864",
"0.66805595",
"0.6664917",
"0.6664177",
"0.66445076",
"0.66372406... | 0.8556177 | 0 |
Get the list of options for all categories. the list of options for all categories. | def knO1(YKHO) -> x1iM[RnTg.framework.options.Options]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LU07(Emd4):\n return LeZt",
"def EU9A(YKHO):\n loyE = []\n UOrz = YKHO.get_all_sections_name()\n for kRsb in UOrz:\n VKhi = YKHO.get_options_in_the_section(kRsb)\n loyE.append(VKhi)\n return loyE",
"def LH1I(YKHO) -> x1iM[qZuN]:\n return YKHO.categories",
"def LQuW(YKHO):\... | [
"0.74421585",
"0.72811174",
"0.72475094",
"0.72472656",
"0.7142351",
"0.7108536",
"0.7012357",
"0.70021176",
"0.69869196",
"0.697834",
"0.6950825",
"0.6950825",
"0.694127",
"0.68961674",
"0.68948144",
"0.685263",
"0.6833913",
"0.68083644",
"0.68066525",
"0.6778597",
"0.677193... | 0.64604837 | 47 |
Gets the next_page of this NeighborEntities. | def fmO_(YKHO):
return YKHO._next_page | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fmO_(YKHO):\n return YKHO._list.next_page",
"def Wd6M(YKHO):\n if YKHO.is_retrieving_events:\n return YKHO._get_event_next_page()\n else:\n return YKHO._get_next_page()",
"def Wd6M(YKHO):\n try:\n VECZ = YKHO.get_real_estate_entries(YKHO.get_soup())\n return VECZ['pa... | [
"0.75705594",
"0.7217908",
"0.7200375",
"0.7093405",
"0.689313",
"0.6800001",
"0.66468436",
"0.660302",
"0.65340567",
"0.6506495",
"0.6444736",
"0.6366577",
"0.6366577",
"0.6366577",
"0.63490057",
"0.6330282",
"0.6326003",
"0.63224953",
"0.62961835",
"0.6248947",
"0.6193662",... | 0.746322 | 1 |
convert given image to grayscale image (if needed) and resize to desired height | def z8p_(VXjJ, H2v2):
assert VXjJ.ndim in (2, 3)
if VXjJ.ndim == 3:
VXjJ = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)
MKlR = VXjJ.shape[0]
aM8h = H2v2 / MKlR
return XC5k.resize(VXjJ, dsize=None, fx=aM8h, fy=aM8h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q_JW(QMAG, tpio):\n VXjJ = XC5k.imread(QMAG)\n HKoa = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)\n return XC5k.resize(HKoa, (tpio, tpio), interpolation=XC5k.INTER_AREA)",
"def Pl9M(VXjJ, UFp3):\n LNo8 = hnIv.open(VXjJ).convert('L')\n LNo8.save(UFp3)",
"def oh1W(LNo8):\n return XC5k.cvtColor... | [
"0.74672896",
"0.71043384",
"0.7019981",
"0.7019981",
"0.6946725",
"0.6943364",
"0.69285464",
"0.69195837",
"0.69079053",
"0.6869325",
"0.6854308",
"0.68347",
"0.68258727",
"0.6821373",
"0.67974687",
"0.67973167",
"0.6785655",
"0.6785655",
"0.6778538",
"0.67760277",
"0.676539... | 0.6945468 | 5 |
Method that gets JSON for this refresh token. | def oD7C(YKHO):
return qQXR.dumps({'refresh_token': YKHO.token, 'expires_in': YKHO.exp, 'scope': ' '.join(YKHO.scopes), 'token_type': 'jwt-bearer'}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pUgf(YKHO) -> cuzp:\n ggQl = YKHO.client_app.acquire_token_by_refresh_token(refresh_token=YKHO.refresh_token, scopes=YKHO.scope)\n if 'error' in ggQl:\n print(ggQl)\n raise PermissionError('Permissions not authorized, delete json file and run again.')\n YKHO._state(action='save', token_d... | [
"0.7116192",
"0.70919305",
"0.68679494",
"0.6636835",
"0.6629377",
"0.6627909",
"0.6602933",
"0.6518086",
"0.6517875",
"0.6509602",
"0.64511067",
"0.64511067",
"0.6437192",
"0.640808",
"0.6358237",
"0.6323196",
"0.6319425",
"0.6297389",
"0.6297389",
"0.6295528",
"0.6293743",
... | 0.7681425 | 0 |
Method that authenticates with `refresh_token` using refresh token grant type. | def NLCy(YKHO, GQl3, bD7m=None):
if not bD7m:
bD7m = YKHO.app.href + '/oauth/token'
MOPg = {'Content-Type': 'application/x-www-form-urlencoded'}
nPrm = {'grant_type': 'refresh_token'}
if isinstance(GQl3, jUrF):
nPrm['refresh_token'] = GQl3
elif hasattr(GQl3, 'token'):
nPrm['r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GQl3(YKHO, GQl3: str, rrBf: str='', Gdqg: str='refresh_token') -> ImMB:\n return YKHO.authenticated_post(f'{YKHO.protocol}://{YKHO.domain}/oauth/token', data={'client_id': YKHO.client_id, 'refresh_token': GQl3, 'scope': rrBf, 'grant_type': Gdqg})",
"def WDkb(**B2fa):\n nPrm = dict(grant_type='refresh_t... | [
"0.7937875",
"0.771927",
"0.77109945",
"0.7625759",
"0.7601968",
"0.7448821",
"0.74202317",
"0.7275562",
"0.71778154",
"0.7173099",
"0.7124127",
"0.7121317",
"0.71178657",
"0.7106601",
"0.70613956",
"0.7059199",
"0.70505196",
"0.7020596",
"0.699744",
"0.6996113",
"0.69497025"... | 0.7805002 | 1 |
Compute the variance of a vector given a prior variance | def _sKr(WKvO, wucG, Cwt5, UqYS, jDK_=0):
ywwl = len(WKvO)
hQHm = 1.0 / (ywwl + 2 * Cwt5 + 2)
jlSq = 2.0 * UqYS + oyIN.sum((WKvO - wucG) ** 2, jDK_)
I8JS = hQHm * jlSq
return I8JS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I8JS(WKvO):\n exwG = len(WKvO)\n fPjl = UCnk(WKvO)\n return Lzxs(fPjl) / (exwG - 1)",
"def I8JS(WKvO):\n exwG = len(WKvO)\n fPjl = UCnk(WKvO)\n return Lzxs(fPjl) / (exwG - 1)",
"def I8JS(WKvO):\n exwG = len(WKvO)\n fPjl = UCnk(WKvO)\n return Lzxs(fPjl) / (exwG - 1)",
"def I8JS(... | [
"0.7593533",
"0.7585142",
"0.7560584",
"0.7530414",
"0.7530414",
"0.7530414",
"0.74832106",
"0.7368232",
"0.7366412",
"0.735538",
"0.73181367",
"0.7310083",
"0.7300973",
"0.7269992",
"0.725202",
"0.7235162",
"0.71536404",
"0.7144276",
"0.7112374",
"0.70982903",
"0.7083214",
... | 0.7548097 | 3 |
Read image using its path. Default value is grayscale, and image is read by YCbCr format as the paper said. | def cE34(pmON, E4ec=True):
if E4ec:
return Zxt2.misc.imread(pmON, flatten=True, mode='YCbCr').astype(oyIN.float)
else:
return Zxt2.misc.imread(pmON, mode='YCbCr').astype(oyIN.float) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cE34(pmON, E4ec=True):\n if E4ec:\n return Zxt2.misc.imread(pmON, flatten=True, mode='YCbCr').astype(oyIN.float)\n else:\n return Zxt2.misc.imread(pmON, mode='YCbCr').astype(oyIN.float)",
"def cE34(pmON, E4ec=True):\n if E4ec:\n return Zxt2.misc.imread(pmON, flatten=True, mode='... | [
"0.7784884",
"0.7768453",
"0.7763878",
"0.7756949",
"0.7730488",
"0.7531412",
"0.73422045",
"0.73422045",
"0.7331501",
"0.72805077",
"0.72264594",
"0.72055113",
"0.7124856",
"0.7085698",
"0.7017816",
"0.69267136",
"0.6898979",
"0.6897863",
"0.68837565",
"0.6881603",
"0.687794... | 0.7768353 | 2 |
Constructor for a particular card and pair. | def FIMM(YKHO, dxhl, q2Xo):
YKHO.ptop = '/proc/driver/domhub/card%d/pair%d' % (dxhl, q2Xo)
YKHO.fpwr = nUeQ(YKHO.ptop + '/pwr', 'w')
YKHO.card = dxhl
YKHO.pair = q2Xo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, q2Xo: str='', dQgO: str='IDEALPRO', o61b: str='', VIXL: str='', **B2fa):\n if q2Xo:\n assert len(q2Xo) == 6\n o61b = o61b or q2Xo[:3]\n VIXL = VIXL or q2Xo[3:]\n oBwI.__init__(YKHO, 'CASH', symbol=o61b, exchange=dQgO, currency=VIXL, **B2fa)",
"def FIMM(YKHO, dxhl, lhKE):... | [
"0.71633923",
"0.7039007",
"0.6780937",
"0.67402846",
"0.6697743",
"0.6680974",
"0.6654503",
"0.66115314",
"0.6599288",
"0.6583843",
"0.658197",
"0.65597546",
"0.65532607",
"0.6544738",
"0.6527019",
"0.6512824",
"0.64939094",
"0.63984245",
"0.6397118",
"0.63756377",
"0.635330... | 0.5836316 | 84 |
Set up user conda environment with required packages | def ULWf(lsvX):
bo34.info('Setting up user environment...')
YD1G = '4.5.4'
tq7n = '4.7.10'
n1lX = '8a324adcc9eaf1c09e22a992bb6234d91a94146840ee6b11c114ecadafc68121'
if dDCZ.check_miniconda_version(rhOE, tq7n):
FPUU = '4.8.1'
elif dDCZ.check_miniconda_version(rhOE, YD1G):
FPUU = '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lQ_s():\n iXC1('conda create -y -n %s' % _Fei['conda_env'])",
"def Q945():\n print(f'Installing miniconda...')\n Yn3K.run('wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh', shell=True, check=True)\n Yn3K.run('bash ~/miniconda.sh -b -p $HOME/miniconda',... | [
"0.6970637",
"0.66492367",
"0.6577459",
"0.6488669",
"0.64546895",
"0.6343826",
"0.62774634",
"0.6185083",
"0.61645675",
"0.61634135",
"0.6123524",
"0.61215764",
"0.6081565",
"0.6031561",
"0.5988218",
"0.5986408",
"0.5969228",
"0.59489596",
"0.5900218",
"0.58999735",
"0.58870... | 0.72195446 | 0 |
The role definition ID. | def eZyY(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'role_definition_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eZyY(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_definition_id')",
"def d9OY(YKHO) -> int:\n return YKHO._role_id",
"def id(YKHO) -> str:\n return YKHO.role.id",
"def d9OY(YKHO):\n return YKHO._current_id",
"def d9OY(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_id')",
"def d9OY(YKHO) ->... | [
"0.92834556",
"0.77021986",
"0.7666817",
"0.7619924",
"0.7619595",
"0.7370109",
"0.72978574",
"0.7251183",
"0.7162495",
"0.71529293",
"0.6829356",
"0.6595183",
"0.6595183",
"0.6595183",
"0.64643663",
"0.64351296",
"0.6305803",
"0.622555",
"0.6199472",
"0.6195211",
"0.6149972"... | 0.8880656 | 1 |
Generate a JSON array from an iterable of bytes. | def COLn(DumB: Iterable[bytes]) -> iu5r[bytes]:
cntZ = True
yield b'['
for ZfUD in DumB:
if cntZ:
cntZ = False
else:
yield b','
yield ZfUD
yield b']' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VAHy(eJh7: Iterator) -> jd6F:\n eyoo = 0\n SKTF = ''\n s_ww = False\n for hcXw in eJh7:\n if not s_ww and hcXw == '{':\n eyoo += 1\n elif not s_ww and hcXw == '}':\n eyoo -= 1\n elif hcXw == '\"':\n s_ww = not s_ww\n else:\n pa... | [
"0.6561848",
"0.6169478",
"0.5943789",
"0.5887969",
"0.5845077",
"0.58405435",
"0.58014756",
"0.57953984",
"0.5770178",
"0.5675139",
"0.566122",
"0.56231654",
"0.5583642",
"0.55794746",
"0.55694425",
"0.55488396",
"0.55314654",
"0.5515769",
"0.55082023",
"0.55065566",
"0.5478... | 0.6950862 | 0 |
Drops all columns with over 50% Nans unless they have at least 50 values | def piru(YKHO):
SDIv = YKHO.df.isin([' ', oyIN.nan]).mean()
AlVb = SDIv[SDIv >= 0.5].index
[YKHO.df.drop(columns=[fvDH], inplace=True) for fvDH in AlVb]
[YKHO.dropped_cols_stats.update({4: ZWCE}) for ZWCE in AlVb]
[YKHO.cat_cols.remove(WKvO) for WKvO in list(set(YKHO.cat_cols).intersection(set(AlVb)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qy6W(jQ3Z):\n depU = {}\n for fvDH in jQ3Z:\n depU[fvDH] = jQ3Z[fvDH].isnull().sum()\n z7uA = []\n for IgiH, JNix in sorted(depU.items(), key=lambda WKvO: WKvO[1], reverse=True):\n if JNix < 0.25 * len(jQ3Z[IgiH]):\n z7uA.append(IgiH)\n return jQ3Z[z7uA]",
"def zQHC(jQ... | [
"0.7210709",
"0.71681887",
"0.71170866",
"0.7050561",
"0.7039888",
"0.6914486",
"0.6894041",
"0.68631357",
"0.6827471",
"0.6715124",
"0.663831",
"0.6564797",
"0.65322113",
"0.6494022",
"0.6455126",
"0.6450093",
"0.6415692",
"0.6406649",
"0.63978225",
"0.63793504",
"0.6378923"... | 0.76741606 | 0 |
Convert sparse matrix to tuple representation. | def nPep(On0F):
def EV8W(RsfQ):
if not H4yH.isspmatrix_coo(RsfQ):
RsfQ = RsfQ.tocoo()
jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()
hkxX = RsfQ.data
ROpF = RsfQ.shape
return (jNOo, hkxX, ROpF)
if isinstance(On0F, list):
for YRbF in range(len(On... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPep(On0F):\n\n def EV8W(RsfQ):\n if not H4yH.isspmatrix_coo(RsfQ):\n RsfQ = RsfQ.tocoo()\n jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()\n hkxX = RsfQ.data\n ROpF = RsfQ.shape\n return (jNOo, hkxX, ROpF)",
"def nPep(On0F):\n\n def EV8W(RsfQ):\n ... | [
"0.85551137",
"0.8286502",
"0.8280199",
"0.82523304",
"0.82516325",
"0.8250825",
"0.8239869",
"0.82270455",
"0.82270455",
"0.82270455",
"0.82270455",
"0.82270455",
"0.82270455",
"0.82270455",
"0.8214171",
"0.80325496",
"0.7864041",
"0.7707938",
"0.68628216",
"0.68546987",
"0.... | 0.8264357 | 7 |
Symmetrically normalize adjacency matrix. | def ujN0(eQUr):
eQUr = H4yH.coo_matrix(eQUr)
mJjf = oyIN.array(eQUr.sum(1))
tvzN = oyIN.power(mJjf, -0.5).flatten()
tvzN[oyIN.isinf(tvzN)] = 0.0
hEeC = H4yH.diags(tvzN)
return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = H4yH.diags(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo()",
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatte... | [
"0.79748905",
"0.78841347",
"0.78669816",
"0.78669816",
"0.78590506",
"0.7824809",
"0.7818386",
"0.7787256",
"0.77343863",
"0.77217567",
"0.77149534",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.7697704",
"0.76977... | 0.77057743 | 11 |
symbList is a list of ETF symbols. This function takes in a list of symbols and returns a list of unique pairs of symbols | def MYKt(TdyI):
pqvp = []
YRbF = 0
while YRbF < len(TdyI) - 1:
r845 = YRbF + 1
while r845 < len(TdyI):
pqvp.append([TdyI[YRbF], TdyI[r845]])
r845 += 1
YRbF += 1
for YRbF in pqvp:
if YRbF[0] == YRbF[1]:
pqvp.remove(YRbF)
H3tz = [... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uhWT(rmc3):\n cmPJ = U8Lr()\n for H5ew in rmc3:\n cmPJ[H5ew] = True\n return cmPJ.keys()",
"def lxXF(UrXw):\n rmc3 = set()\n for Mjw9 in UrXw:\n for RDhP in Mjw9:\n euKR = Mjw9[RDhP].columns\n rmc3.update(euKR)\n return rmc3",
"def mjh1(YKHO) -> iu5r[wZ... | [
"0.6618523",
"0.65066695",
"0.6456936",
"0.6425215",
"0.631036",
"0.631036",
"0.62952745",
"0.628982",
"0.6275802",
"0.62749815",
"0.62346053",
"0.60129476",
"0.5885138",
"0.58253443",
"0.58021796",
"0.5782877",
"0.57310116",
"0.5703937",
"0.56592953",
"0.5647554",
"0.5596223... | 0.8317578 | 0 |
(number,number,number)> float Return the semiperimeter of a triangle with sides of length side1,side2 and side3. >>>semiperimeter(3,4,5) 6.0 >>>semiperimetre(10.5,6,9.3) 12.9 | def uQwy(zPAF, BsXG, t_of):
return cDmO(zPAF, BsXG, t_of) / 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iJjb(HEZd: Number) -> KUXB:\n return 4 * HEZd",
"def cDmO(zPAF, BsXG, t_of):\n return zPAF + BsXG + t_of",
"def iJjb(HEZd):\n return 4 * HEZd",
"def PspK(zPAF, BsXG, t_of):\n return zPAF + BsXG + t_of",
"def iJjb(HEZd: Number) -> KUXB:\n if pMxs(HEZd):\n return 4 * HEZd\n else:... | [
"0.65630776",
"0.64043164",
"0.63778764",
"0.6277761",
"0.59674066",
"0.59199613",
"0.57656175",
"0.57515156",
"0.57481384",
"0.57385325",
"0.56230205",
"0.55801886",
"0.5532456",
"0.55134916",
"0.55063313",
"0.5497171",
"0.54796076",
"0.54492056",
"0.5437662",
"0.5407974",
"... | 0.80475956 | 0 |
Test that `sanity_check_insufficient_bands` does not except if there is no `output_band`, which is optional. | def Wp7e(J5dx):
NBjn = J5dx(exit_code=qmi2(0))
NBjn.setup()
sVwB = NBjn.ctx.children[-1]
assert NBjn.sanity_check_insufficient_bands(sVwB) is None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHZW(YKHO):\n sP1E(src='tests/data/spacenet.zip')\n sP1E(src='tests/data/massachusetts_buildings_kaggle.zip')\n OYjI = (('tests/data/spacenet/SpaceNet_AOI_2_Las_Vegas-056155973080_01_P001-WV03.json', ''), ('tests/data/massachusetts_buildings_kaggle/22978945_15_uint8_clipped_${dataset.bands}.tif', ''))... | [
"0.6646169",
"0.6313148",
"0.63042784",
"0.6271982",
"0.62085223",
"0.6178491",
"0.61733353",
"0.6132495",
"0.6047412",
"0.5966404",
"0.59320873",
"0.59110755",
"0.5902036",
"0.5900106",
"0.5869729",
"0.5849572",
"0.581414",
"0.5797771",
"0.57719165",
"0.5764639",
"0.573835",... | 0.75692856 | 0 |
Get the list of all available products. | def CxaC(YKHO, **NArs):
w2IS = '/products'
return YKHO.request(w2IS, params=NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jPbW():\n dixj = []\n dixj = msfn.available()\n return Yxsy(pz3A([XP5J.serialize() for XP5J in dixj]), n6fA)",
"def pi1E(YKHO):\n Ldyl = [Ldyl for Ldyl in YKHO.no_of_products]\n if not Ldyl:\n nNXP.abort(404, 'No Products Found.')\n return Ldyl",
"def CnKV(YKHO) -> list:\n qfQ3 ... | [
"0.85792744",
"0.82855296",
"0.81328696",
"0.8007822",
"0.78918564",
"0.7873212",
"0.78262234",
"0.77456",
"0.76904523",
"0.76072955",
"0.75289357",
"0.7526414",
"0.7490406",
"0.746165",
"0.7435176",
"0.73795295",
"0.73795295",
"0.7367808",
"0.73471373",
"0.73408777",
"0.7339... | 0.7464134 | 13 |
Test reset password invalid token | def icjH(YKHO):
YKHO.add_user_return_password_reset_token()
MOPg = YKHO.get_request_header()
nPrm = qQXR.dumps({'password': 'VeryLongNewPassowrd'})
bD7m = f'{YKHO.url}some-wrong-text'
geh0 = YKHO.test_client.post(bD7m, headers=MOPg, data=nPrm)
YKHO.assertEqual(geh0.status_code, 400) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bEx_(YKHO, x0hE):\n eOtH = XM9m(-5)\n geh0 = x0hE.patch(_vA8 + f'?token={eOtH}', data={'password': Edpv['email']})\n _hkX = geh0.data\n assert geh0.status_code == 400\n assert 'status' and 'message' in _hkX\n assert _hkX['message'] == iGDk['EXPIRED_TOKEN']",
"def EYrn():\n Y7Bk()\n D3... | [
"0.8481578",
"0.83201385",
"0.8170216",
"0.8165896",
"0.8161514",
"0.8160723",
"0.81527555",
"0.8080461",
"0.80221957",
"0.8003132",
"0.79532516",
"0.79168874",
"0.7886162",
"0.78281933",
"0.7820545",
"0.78182185",
"0.7811715",
"0.78070766",
"0.7768155",
"0.7762759",
"0.77286... | 0.8146282 | 7 |
Get the project used when automatically configuring assets. | def bNKA(YKHO) -> oPx1:
return YKHO._project | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bNKA(YKHO):\n return capf.cli.command.get_project(YKHO.home)",
"def YsXL():\n WWFe = b_c3()\n bNKA = ZC5E(WWFe)\n return bNKA",
"def YsXL(YKHO):\n return o7DN.wrap(tpHi(YKHO.plugin))",
"def ITTn(YKHO):\n return YKHO.project",
"def YsXL():\n RKD7('GET: /project', X8Rg)\n GPtr = X... | [
"0.7785026",
"0.7621192",
"0.75417525",
"0.7488715",
"0.74771327",
"0.747029",
"0.7449572",
"0.7393174",
"0.73744756",
"0.7357903",
"0.72908664",
"0.7255779",
"0.72414243",
"0.7235784",
"0.72025424",
"0.72025424",
"0.72025424",
"0.72025424",
"0.7162157",
"0.7137543",
"0.70999... | 0.68531096 | 54 |
Get the naming label for assets configured by this object. | def mWFP(YKHO) -> str:
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M9Mk(YKHO) -> str:\n return YKHO._label_name",
"def DeTJ(YKHO):\n if YKHO.label != None:\n return YKHO.label\n else:\n return YKHO.name",
"def UXqs(YKHO) -> str:\n return YKHO._str_representation_for('name')",
"def d3Pt(YKHO) -> str:\n return YKHO.__name",
"def UXqs(YKHO) -... | [
"0.7427631",
"0.74118644",
"0.7382635",
"0.7095969",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
"0.70904106",
... | 0.0 | -1 |
Get the most recent status of the autoconfigure workflow. | def jGRS(YKHO) -> str:
return YKHO._status.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VLTN(YKHO):\n return YKHO.last_status",
"def rKUF(YKHO):\n return YKHO._auto_status[YKHO.auto_magic]",
"def QtQ8(YKHO):\n k838 = YKHO.getVersionWorkflowId()\n cO4L = OZpC(YKHO, 'portal_workflow', None)\n if not k838 or cO4L is None:\n return None\n if hasattr(SAlm(YKHO), 'workflow_... | [
"0.7133331",
"0.70060474",
"0.69123214",
"0.6815354",
"0.6719274",
"0.65430516",
"0.6526284",
"0.6497329",
"0.6452764",
"0.6425549",
"0.63898",
"0.6248287",
"0.62470645",
"0.6241733",
"0.62404394",
"0.6229093",
"0.6215355",
"0.6215355",
"0.6213643",
"0.6206602",
"0.620178",
... | 0.0 | -1 |
Get the predictor associated with this workflow. | def iyYY(YKHO) -> h8nf[IOqb]:
return YKHO._predictor | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a8hJ(YKHO):\n return YKHO.params['predictor']",
"def s5Mn(YKHO) -> h8nf[AV3K]:\n return YKHO._predictor_evaluation_workflow",
"def o3Uj(YKHO):\n return YKHO._prediction",
"def o3Uj(YKHO):\n return YKHO._prediction",
"def vCIj(YKHO):\n iyYY.Predict()",
"def s2iB(YKHO):\n return YKHO.... | [
"0.7806066",
"0.6967608",
"0.66943204",
"0.66943204",
"0.6572353",
"0.64477736",
"0.6446081",
"0.6406359",
"0.6324587",
"0.6324432",
"0.6312388",
"0.6238191",
"0.62273544",
"0.61756456",
"0.6147424",
"0.61325675",
"0.610722",
"0.6099601",
"0.60668683",
"0.6040647",
"0.603015"... | 0.8050138 | 0 |
Get the predictor evaluation workflow associated with this workflow. | def s5Mn(YKHO) -> h8nf[AV3K]:
return YKHO._predictor_evaluation_workflow | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cO4L(YKHO) -> oywb:\n return YKHO._workflow",
"def gACh(YKHO):\n H5ew = ('%s_%s' % (YKHO.__class__.__name__, 'WORKFLOW')).upper()\n cO4L = wyyA.get(H5ew)\n if cO4L is not None:\n return cO4L\n cO4L = BfDw.get_workflow(YKHO)\n if cO4L:\n wyyA.set(H5ew, cO4L)\n return cO4L",
... | [
"0.6726737",
"0.6577815",
"0.64751124",
"0.6414993",
"0.61890054",
"0.61040485",
"0.6023858",
"0.5879768",
"0.5849478",
"0.5831989",
"0.58127904",
"0.5739727",
"0.57269436",
"0.57269436",
"0.57269436",
"0.57269436",
"0.57269436",
"0.57269436",
"0.5705303",
"0.5696401",
"0.565... | 0.84502566 | 0 |
Get the design space associated with this workflow. | def zJVP(YKHO) -> h8nf[Zmsh]:
return YKHO._design_space | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K4kq(YKHO) -> h8nf[N_w4]:\n return YKHO._design_workflow",
"def bJKA(MflT):\n if MflT:\n from fontTools.designspaceLib import DesignSpaceDocument\n import defcon\n PY54 = DesignSpaceDocument.fromfile(MflT)\n PY54.loadSourceFonts(defcon.Font)\n return PY54",
"def T8_... | [
"0.63779825",
"0.6172128",
"0.61077785",
"0.60696095",
"0.6065592",
"0.597557",
"0.5894881",
"0.5859404",
"0.5814189",
"0.5706945",
"0.5692079",
"0.5672869",
"0.5670514",
"0.56396466",
"0.5635098",
"0.56261915",
"0.56261915",
"0.56261915",
"0.5612252",
"0.55920166",
"0.558191... | 0.78793675 | 0 |
Create a design space from a specified predictor, or use the provided one. | def _ieb(YKHO, *, iyYY: GraphPredictor, zJVP: Optional[DesignSpace], QTOT: bool):
YKHO._print_status('Configuring design space...')
if zJVP is None:
zJVP = YKHO.project.design_spaces.create_default(predictor_id=iyYY.uid)
zJVP.name = YKHO._default_asset_names['DESIGN_SPACE']
zJVP = VHtg(collectio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7():\n if yTdJ['arch'] == 'AE_SIMPLE':\n return wv4K()\n if yTdJ['arch'] == 'AE_SEGM':\n return mdTV(ref_model=yTdJ['ref_model'])\n NmYP.print_err('Architecture {} not valid'.format(yTdJ['arch']))",
"def yKnk(YKHO, *, iyYY: GraphPredictor, W2ox: Optional[PredictorEvaluator]=None, zJ... | [
"0.5648826",
"0.5616565",
"0.55319226",
"0.549156",
"0.5465131",
"0.54017276",
"0.5330538",
"0.52675056",
"0.5240069",
"0.5235763",
"0.52019536",
"0.51966983",
"0.5171521",
"0.5170776",
"0.5167885",
"0.51497924",
"0.51492554",
"0.51332426",
"0.5126703",
"0.5126681",
"0.512386... | 0.5733384 | 0 |
Convert a string representing one document into a list of words. Remove all punctuation and split on whitespace. >>> tokenize("Hi there. What's going on?") ['hi', 'there', 'what', 's', 'going', 'on'] | def wr3U(C13M):
s2mk = C13M.lower()
return ZbWC.findall('\\w+', s2mk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dFss(vIwR):\n return PHXD(vIwR).split(' ')",
"def wr3U(l5Ny: str) -> x1iM:\n return [eOtH.text for eOtH in Wh3D(l5Ny)]",
"def wr3U(yAmx: str) -> x1iM[str]:\n return dFss(yAmx)",
"def wr3U(l5Ny):\n return oCpR.findall(l5Ny)",
"def dFss(KCHu):\n return ZbWC.split('\\\\W', KCHu)",
"def dF... | [
"0.81877726",
"0.7935305",
"0.7853436",
"0.7775953",
"0.77694815",
"0.7703017",
"0.7697013",
"0.76773787",
"0.7669291",
"0.7663635",
"0.7622442",
"0.76216936",
"0.76163435",
"0.7605887",
"0.76041913",
"0.76011986",
"0.7560663",
"0.7544491",
"0.75441134",
"0.75347936",
"0.7517... | 0.73232675 | 55 |
Route to logout the current User | def erK4():
oLi7()
Dwep('You have been logged out Successfully!', 'success')
return vKnz(nKyW('main.home')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLi7(QePW):\n pass",
"def erK4(YKHO):\n YKHO.loggedInUser = None\n YKHO.router('/')",
"def erK4():\n oLi7()\n return vKnz('/')",
"def oLi7(QePW):\n if QePW.user.is_authenticated():\n erK4(QePW)\n return {'url': gxEw(d6pt)}\n else:\n raise fqzn({'error': ['user no... | [
"0.8591256",
"0.83496237",
"0.8314949",
"0.8289054",
"0.8278505",
"0.8277459",
"0.82702786",
"0.8237456",
"0.82073104",
"0.8199624",
"0.8194632",
"0.8176792",
"0.81511045",
"0.81511045",
"0.8145286",
"0.8134964",
"0.81300867",
"0.81157744",
"0.8104955",
"0.81045073",
"0.80996... | 0.0 | -1 |
Returns the number of jumps legal for this Piece. | def _SEM(YKHO):
return YKHO._jumps | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RDUL(YKHO, pmON):\n hrkE = 0\n for dQgj, MZPZ in pmON[0:-1]:\n if MZPZ:\n hrkE += 1\n return hrkE",
"def lDui(YKHO):\n return YKHO.nopen_line",
"def XZGX(YKHO):\n return YKHO._number_of_cheeses",
"def pskg(YKHO):\n return YKHO._number_of_cantons",
"def u54L(YKHO):\n ... | [
"0.7321942",
"0.66126287",
"0.6353277",
"0.623888",
"0.6187484",
"0.61216354",
"0.6073029",
"0.6054337",
"0.6049425",
"0.60342205",
"0.60313064",
"0.5995838",
"0.59904796",
"0.59726876",
"0.59518206",
"0.59461486",
"0.59461486",
"0.5919858",
"0.59045905",
"0.58852714",
"0.586... | 0.5648358 | 43 |
Takes a stringtype boolean value and converts it to a full boolean value. e.g. 'True' > True | def M0mR(QndV):
assert QndV == 'True' or 'False'
if QndV == 'True':
return True
elif QndV == 'False':
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lzx4(BWXx):\n if BWXx in ['true', 'false']:\n return BWXx\n return str(bool(int(BWXx)) is True).lower()",
"def CRS3(BWXx):\n return 'true' if BWXx else 'false'",
"def DUUG(BWXx):\n if BWXx == 'True':\n return True\n elif BWXx == 'False':\n return False\n else:\n ... | [
"0.81216234",
"0.8121466",
"0.8015909",
"0.7967315",
"0.79660505",
"0.793663",
"0.7900114",
"0.7875719",
"0.7873632",
"0.78624284",
"0.7851072",
"0.7839431",
"0.7829719",
"0.7829088",
"0.7815217",
"0.78068876",
"0.7803286",
"0.7786716",
"0.77320635",
"0.7695807",
"0.76956636"... | 0.75347364 | 57 |
A fixture that returns the path to fail config yaml. | def j9Bc(QePW):
pmON = QePW.path.parent.joinpath('test-config-fail.yaml')
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xat2():\n with trZe.raises(ValueError):\n PSrQ(Hy7s.path.join(Hy7s.path.dirname(xAKo), 'rsc', 'bad.yaml'))",
"def MkWN(YKHO, mWFP):\n return Hy7s.path.join(YKHO.testDir, 'fixtures/%s.yml' % mWFP)",
"def UQn2():\n with trZe.raises(ValueError):\n fwpV(Hy7s.path.join(Hy7s.path.dirname(x... | [
"0.71264094",
"0.6954496",
"0.6704321",
"0.66362643",
"0.65772307",
"0.6466679",
"0.64563054",
"0.6422633",
"0.6419827",
"0.641814",
"0.6374007",
"0.6348809",
"0.6320128",
"0.63037574",
"0.6300821",
"0.62924385",
"0.6244508",
"0.6141368",
"0.6139497",
"0.6138533",
"0.6133048"... | 0.8171438 | 0 |
Returns the absolute project path unless relative=True, when a path relative to the current directory will be returned. | def O0al(IDBL, Qth0=False):
pmON = Hy7s.path.realpath(Hy7s.path.abspath(Hy7s.path.join(IDBL['container'], IDBL['name'])))
if Qth0:
KvrH = len(Hy7s.path.commonprefix([Hy7s.path.realpath(Hy7s.getcwd()), pmON])) + 1
pmON = pmON[KvrH:]
return pmON | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y0TB(pmON):\n if juj8(pmON):\n return pmON\n return gzes(gCuF.PROJECT_DIR, pmON)",
"def J_1q(oyH5):\n return Hy7s.path.join(lkbE, oyH5)",
"def SOoY(YKHO):\n WWFe = None\n if bNKA.current_filepath:\n WWFe = Hy7s.path.dirname(bNKA.current_filepath)\n qaEx = YKHO.data['path']\n... | [
"0.7999054",
"0.7710823",
"0.76420015",
"0.7539475",
"0.75218",
"0.7437381",
"0.73907065",
"0.72926974",
"0.72454",
"0.72431064",
"0.7179508",
"0.71656895",
"0.7157255",
"0.7120046",
"0.7098965",
"0.7097592",
"0.7092858",
"0.7086756",
"0.706324",
"0.70150054",
"0.70040846",
... | 0.75508434 | 3 |
Constructor. Calls `super`, prepares the request body with the `query` provided. | def FIMM(YKHO, JkXK, LvtP, xDcj, **B2fa):
super(bL2v, YKHO).__init__(JkXK, LvtP, **B2fa)
YKHO.http_method = 'POST'
YKHO.request_body = xDcj
YKHO.service = My0s % YKHO.api_version | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, xDcj=None):\n YKHO._query = xDcj",
"def FIMM(Ro_8, *, xDcj: Optional[pulumi.Input[str]]=None):\n if xDcj is not None:\n qe4Y.set(Ro_8, 'query', xDcj)",
"def FIMM(Ro_8, *, xDcj: Optional[pulumi.Input[str]]=None):\n if xDcj is not None:\n qe4Y.set(Ro_8, 'query', xDcj)",
"d... | [
"0.7747447",
"0.7467625",
"0.7467625",
"0.73684937",
"0.73684937",
"0.73090804",
"0.72771966",
"0.71763796",
"0.69644886",
"0.69142",
"0.68798983",
"0.68593454",
"0.6818713",
"0.6811897",
"0.66996175",
"0.6687981",
"0.6661555",
"0.6633934",
"0.65631455",
"0.6555984",
"0.65427... | 0.7168073 | 8 |
Your function should return an even value | def glen():
assert GSNj(10) % 2 == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ubP8(WKvO):\n return WKvO % 2 == 0",
"def ubP8(WKvO):\n return WKvO % 2 == 0",
"def EVW3(BWXx):\n return BWXx % 2 == 0",
"def vf3I(WKvO):\n return int(WKvO) % 2 == 0",
"def vf3I(BWXx):\n return 2 * int(BWXx // 2)",
"def ubP8(exwG):\n return",
"def vf3I(mLGw):\n return mLGw % 2 ... | [
"0.8187487",
"0.8187487",
"0.81760955",
"0.80621517",
"0.8037884",
"0.79461384",
"0.7936539",
"0.7823713",
"0.7788398",
"0.7778158",
"0.774689",
"0.7727223",
"0.7727223",
"0.7727223",
"0.7727223",
"0.77247053",
"0.7696328",
"0.7654884",
"0.7654884",
"0.76427174",
"0.76366633"... | 0.6555135 | 96 |
move the pivot point to a point where all elements smaller than it come before and all elements larger come after | def Qrt_(ezWE, vC9B, Mkmy):
print('run partition')
WKvO = ezWE[Mkmy]
YRbF = vC9B
for r845 in range(vC9B, Mkmy):
if ezWE[r845] <= WKvO:
ezWE[YRbF], ezWE[r845] = (ezWE[r845], ezWE[YRbF])
YRbF += 1
ezWE[YRbF], ezWE[Mkmy] = (ezWE[Mkmy], ezWE[YRbF])
return YRbF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def csQL(YKHO):\n YKHO.y, YKHO.x = (YKHO.x, YKHO.y)\n YKHO.h, YKHO.w = (YKHO.w, YKHO.h)",
"def csQL():\n pass",
"def MHWF(YKHO):\n yzQ0 = YKHO.bp.pivot()\n oyIN.testing.assert_allclose(yzQ0.value, 5355.863596422962, rtol=1e-06)",
"def Umeh(ezWE, cntZ, XVAW):\n x1fj = cntZ + (XVAW - cntZ) >>... | [
"0.6962765",
"0.68729806",
"0.680924",
"0.6701722",
"0.6555771",
"0.6428713",
"0.6377191",
"0.63752854",
"0.6351795",
"0.6350235",
"0.63246477",
"0.6313889",
"0.6255589",
"0.62110734",
"0.61902094",
"0.6167667",
"0.61420286",
"0.613565",
"0.61283445",
"0.6110513",
"0.610735",... | 0.6065222 | 21 |
Return the DMs used in the scenario. | def xcez(gGq6, tyNF, gGnb):
gGq6.execute('SELECT DISTINCT DMs FROM ' + tyNF + ' WHERE (samples = ' + gGnb + ') ORDER BY DMs')
return gGq6.fetchall() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QyOX(YKHO):\n if YKHO._devClassTree is None:\n YKHO._initDevClasses()\n return YKHO._devClassTree.get('device-mapper')",
"def PD8h(YKHO):\n YKHO.refresh()\n return YKHO.simulators",
"def ARZf(YKHO):\n return YKHO.tool_wrapper.simulators",
"def mW6P(YKHO, M4N3):\n return YKHO.tool... | [
"0.63069284",
"0.60672206",
"0.59142",
"0.57365316",
"0.55560064",
"0.54733956",
"0.5364434",
"0.5362413",
"0.53605133",
"0.5358069",
"0.5349193",
"0.5307526",
"0.52851164",
"0.5262845",
"0.5238843",
"0.5221182",
"0.52105993",
"0.5196127",
"0.51932466",
"0.5189035",
"0.517167... | 0.0 | -1 |
get the value of property _CACertFile | def KCoR(YKHO):
if YKHO.force_auto_sync:
YKHO.get('CACertFile')
return YKHO._CACertFile | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yd_9(YKHO):\n return YKHO._ca_cert_file",
"def WyVa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'ca_file')",
"def WyVa(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'ca_file')",
"def WyVa(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'ca_file')",
"def WyVa(YKHO) -... | [
"0.7403814",
"0.7367161",
"0.73227066",
"0.73227066",
"0.73227066",
"0.73019576",
"0.7178679",
"0.7178679",
"0.6919421",
"0.68628925",
"0.68628925",
"0.6788587",
"0.66641265",
"0.66641265",
"0.66375834",
"0.6568089",
"0.6561327",
"0.6546886",
"0.6526758",
"0.6509682",
"0.6414... | 0.8198951 | 0 |
get the value of property _UserPassPhrase | def bG3l(YKHO):
if YKHO.force_auto_sync:
YKHO.get('UserPassPhrase')
return YKHO._UserPassPhrase | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QVq7(YKHO):\n return YKHO.password",
"def uOmc(YKHO):\n return YKHO.password",
"def AFDB(YKHO):\n return YKHO.get('password')",
"def jTXt(YKHO):\n return YKHO.data.password",
"def QVq7(YKHO):\n return YKHO._password",
"def QVq7(YKHO):\n return YKHO._password",
"def QVq7(YKHO):\n ... | [
"0.6718978",
"0.6651709",
"0.6644781",
"0.65562665",
"0.6548987",
"0.6548987",
"0.6548987",
"0.6472499",
"0.6419414",
"0.64024335",
"0.64014435",
"0.64014435",
"0.63910335",
"0.6367902",
"0.6301851",
"0.62883145",
"0.6286022",
"0.62713414",
"0.62617904",
"0.6235447",
"0.62241... | 0.82772446 | 0 |
get the value of property _PeerAuthType | def BBn3(YKHO):
if YKHO.force_auto_sync:
YKHO.get('PeerAuthType')
return YKHO._PeerAuthType | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Peme(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'peer_cert_mode')",
"def Peme(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'peer_cert_mode')",
"def Peme(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'peer_cert_mode')",
"def GpBv(YKHO) -> qe4Y.Output[str]:\n return... | [
"0.6419556",
"0.6419556",
"0.6414548",
"0.6002367",
"0.5977598",
"0.5943997",
"0.5943997",
"0.58400506",
"0.575709",
"0.57472956",
"0.5745246",
"0.5705283",
"0.5700305",
"0.567104",
"0.56501436",
"0.56410193",
"0.5597802",
"0.5594251",
"0.55790484",
"0.55539495",
"0.55539495"... | 0.8064172 | 0 |
Reshape a model's output layers for the given number of classes | def ntV7(C3ST, JACg, jTqs):
if JACg.startswith('resnet'):
C3ST.fc = ht2j.nn.Linear(C3ST.fc.in_features, jTqs)
print('=> reshaped ResNet fully-connected layer with: ' + str(C3ST.fc))
elif JACg.startswith('alexnet'):
C3ST.classifier[6] = ht2j.nn.Linear(C3ST.classifier[6].in_features, jTqs)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vb7L(YKHO, FGW3, hlel):\n hlel = hlel.reshape(YKHO.output_shapes[FGW3])\n hlel = hlel.permute(0, 2, 3, 1)\n Ep8u, H2v2, TVTK, bGrB = hlel.shape\n qNoP = Ep8u\n MFrU, fRuM = (H2v2, TVTK)\n nSKI = 3\n vsbj = 4 + 1 + YKHO.classes_num\n return ht2j.reshape(hlel, (qNoP, MFrU, fRuM, nSKI, vsb... | [
"0.7210271",
"0.68765104",
"0.6605068",
"0.6604477",
"0.6316236",
"0.62387645",
"0.6235709",
"0.62164",
"0.6158754",
"0.60684675",
"0.60271114",
"0.59955347",
"0.598287",
"0.5980894",
"0.5937471",
"0.5901918",
"0.59000856",
"0.58956754",
"0.5851902",
"0.58473384",
"0.584324",... | 0.6615323 | 2 |
Returns material Returns the material class associated with this block | def mk1M(YKHO):
return YKHO.m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mx95(YKHO):\n return YKHO._material",
"def PoVH(YKHO):\n return YKHO.material",
"def PoVH(YKHO):\n return YKHO.get('primitive.material')",
"def Mx95(YKHO) -> str:\n return YKHO._material",
"def VPSx(YKHO):\n from cross3d.constants import MaterialType\n return MaterialType.Generic",
... | [
"0.8029919",
"0.80187607",
"0.7887758",
"0.7672128",
"0.75350064",
"0.74146634",
"0.69076216",
"0.6739602",
"0.67301613",
"0.6715611",
"0.67127866",
"0.67020977",
"0.66997546",
"0.6674492",
"0.66306144",
"0.6611439",
"0.65991443",
"0.65891105",
"0.6458663",
"0.6448244",
"0.64... | 0.7818058 | 3 |
Sets block material properties Sets new material properties stored in an instance of the ``material`` class. | def QwkI(YKHO, vb7U):
assert type(vb7U) is Mx95
YKHO.m = vb7U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bIXn(YKHO, vb7U: BaseMaterial) -> None:\n ...",
"def QwkI(MQSJ, Mx95):\n pass",
"def xbxx(YKHO, Mx95):\n if YKHO.material is not None:\n YKHO.material.removeReference()\n YKHO.material = Mx95\n if YKHO.material is not None:\n YKHO.material.addReference()\n YKHO.calculateText... | [
"0.7622509",
"0.7517459",
"0.74694484",
"0.73355484",
"0.7260754",
"0.7117328",
"0.70784736",
"0.7032539",
"0.70299816",
"0.7005824",
"0.6948122",
"0.69443035",
"0.6934281",
"0.67274535",
"0.66781753",
"0.6634575",
"0.6617746",
"0.6610498",
"0.6605738",
"0.6566692",
"0.654871... | 0.7676756 | 0 |
Returns the last temperature measurement. Temperature is updated only every 64 seconds, or when a conversion is forced. | def ovGo(YKHO) -> float:
return YKHO._temperature / 4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ovGo(YKHO):\n return YKHO.__last_temperature",
"def ovGo(YKHO):\n if YKHO._last_read_temp is None or ITS7.monotonic() - YKHO._last_read_time >= aqvu:\n assert YKHO._convert_temp()\n YKHO._last_read_temp = YKHO._read_temp()\n return YKHO._last_read_temp",
"def ovGo(YKHO):\n YKHO._r... | [
"0.85684896",
"0.8555454",
"0.82128537",
"0.8056606",
"0.80396765",
"0.7926841",
"0.79141873",
"0.7901725",
"0.7899537",
"0.7890607",
"0.78683215",
"0.7846924",
"0.7827753",
"0.781134",
"0.7793724",
"0.7792053",
"0.7783751",
"0.7759594",
"0.7758592",
"0.7730907",
"0.77226454"... | 0.0 | -1 |
Merge Dict1 & Dict2 into a single one if keys are same. Returns a dict. | def Nf9Y(WbPA, S69B):
_jHa = {}
for B2hD in WbPA:
Fw4z = []
for gfpw in S69B:
if B2hD == gfpw:
if isinstance(S69B.get(gfpw), list):
Fw4z = WbPA.get(B2hD) + S69B.get(gfpw)
_jHa[gfpw] = Fw4z
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGZu(tMxp, LxWn):\n return dict(((str(H5ew), tMxp.get(H5ew) or LxWn.get(H5ew)) for H5ew in set(LxWn) | set(tMxp)))",
"def vGZu(tMxp, LxWn):\n return dict(((str(H5ew), tMxp.get(H5ew) or LxWn.get(H5ew)) for H5ew in set(LxWn) | set(tMxp)))",
"def vGZu(tMxp, LxWn):\n return dict(((str(H5ew), tMxp.get(... | [
"0.83203894",
"0.83203894",
"0.83041775",
"0.822313",
"0.8134752",
"0.80993295",
"0.800125",
"0.795982",
"0.79343164",
"0.79089355",
"0.7908495",
"0.7888892",
"0.78537583",
"0.7832529",
"0.78052676",
"0.7800143",
"0.7788973",
"0.77829486",
"0.7769093",
"0.77318054",
"0.771952... | 0.7084486 | 85 |
Override builtin _handle_view in order to redirect users when a view is not accessible. | def v0Yt(YKHO, mWFP, **B2fa):
if not YKHO.is_accessible():
if c5ow.is_authenticated:
eTsH(403)
else:
return vKnz(nKyW('security.login', next=QePW.url)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v0Yt(YKHO, mWFP, **B2fa):\n if not YKHO.is_accessible():\n if c5ow.is_authenticated:\n eTsH(403)\n else:\n Dwep('Please log in to access this page.')\n return vKnz(nKyW('auth.login', next=QePW.url))",
"def v0Yt(YKHO, mWFP, **B2fa):\n if not YKHO.is_accessi... | [
"0.76057804",
"0.72802854",
"0.7163991",
"0.7145642",
"0.66120386",
"0.6536311",
"0.6478789",
"0.63071734",
"0.629511",
"0.62611747",
"0.6242592",
"0.6242592",
"0.6234349",
"0.621924",
"0.61864054",
"0.61648434",
"0.61355203",
"0.6130257",
"0.6100725",
"0.6100664",
"0.6088703... | 0.74921376 | 3 |
Tests that root url goes to landing page | def R4Gy(YKHO):
w2IS = xBs1('/')
print(w2IS)
YKHO.assertEquals(w2IS.func, F_xU) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nm5J(YKHO):\n Aofo = YKHO.client.get('/')\n assert qed_(Aofo.status_code) == qed_.FOUND\n assert iAwL.get_absolute('main.landing_page') in Aofo.headers['Location']",
"def rKWs(YKHO):\n geh0 = YKHO.client.get('/index')\n YKHO.assertTrue(b'Redirecting...' in geh0.data)",
"def r6eW(YKHO):\n ... | [
"0.8604907",
"0.79198986",
"0.7734974",
"0.7696345",
"0.7675799",
"0.7589709",
"0.7589679",
"0.75890195",
"0.757646",
"0.7573318",
"0.75698155",
"0.7551001",
"0.7538307",
"0.7520296",
"0.7470554",
"0.7467901",
"0.74643433",
"0.7423019",
"0.7420575",
"0.73972154",
"0.73773783"... | 0.0 | -1 |
Return recipe image upload url | def xx5i(rXcN):
return gxEw('recipe:recipe-upload-image', args=[rXcN]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xx5i(rXcN):\n return gxEw('recipe:recipe-upload-image', args=[rXcN])",
"def xx5i(rXcN):\n return gxEw('recipe:recipe-upload-image', args=[rXcN])",
"def xx5i(rXcN):\n return gxEw('recipe_app:recipe-upload-image', args=[rXcN])",
"def nXsP(rXcN):\n return gxEw('recipe:recipe-upload-image', args=... | [
"0.8178946",
"0.8178946",
"0.8102075",
"0.8067124",
"0.709594",
"0.7036616",
"0.7005021",
"0.69874066",
"0.6972505",
"0.69596756",
"0.69591916",
"0.6950969",
"0.692483",
"0.6872608",
"0.68656975",
"0.6858306",
"0.6855254",
"0.683491",
"0.67912763",
"0.67737937",
"0.6757147",
... | 0.81340504 | 7 |
Test retrieving recipe list for authenticated user | def RzEH(YKHO):
uDCI = egNl().objects.create_user('ratnakar@gmail.com', 'sample123')
VHaa(uDCI)
VHaa(YKHO.user)
AHLC = LC16.objects.filter(user=YKHO.user).order_by('-id')
ZMzz = azWq(AHLC, many=True)
Ylbp = YKHO.client.get(nyJA)
YKHO.assertEqual(Ylbp.data, ZMzz.data)
YKHO.assertEqual(Ylb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HVO0(YKHO):\n g_7i = lYUQ(email='otheruser@example.com', password='testpass1234')\n vETe(user=g_7i)\n vETe(user=YKHO.user)\n Ylbp = YKHO.client.get(tQ6t)\n AHLC = LC16.objects.filter(user=YKHO.user)\n ZMzz = azWq(AHLC, many=True)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n ... | [
"0.8247005",
"0.7985789",
"0.792017",
"0.78658223",
"0.77632153",
"0.7761846",
"0.77501935",
"0.77464145",
"0.774537",
"0.77340883",
"0.7733716",
"0.7718711",
"0.77175707",
"0.77173555",
"0.7715411",
"0.7708596",
"0.77045983",
"0.77035457",
"0.77021897",
"0.76645887",
"0.7646... | 0.7680433 | 19 |
Test creating recipe with tags | def xsEp(YKHO):
R9U6 = eo18(YKHO.user, name='Vegan')
GTT9 = eo18(YKHO.user, name='Dessert')
pB3N = {'title': 'New chocolate lime cake', 'time_minutes': 5, 'price': 60.0, 'tags': [R9U6.id, GTT9.id]}
Ylbp = YKHO.client.post(nyJA, pB3N)
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED)
YSCM... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZQ0k(YKHO):\n R9U6 = ayqs(user=YKHO.user)\n GTT9 = ayqs(user=YKHO.user)\n pB3N = {'title': 'Sausages', 'tags': [R9U6.id, GTT9.id], 'time_minutes': 10, 'price': 5.0}\n bD7m = gxEw('recipe:recipe-list')\n Ylbp = YKHO.client.post(bD7m, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CRE... | [
"0.8394875",
"0.83743906",
"0.8338097",
"0.8333908",
"0.83058316",
"0.8295931",
"0.8293075",
"0.8286255",
"0.82838273",
"0.828009",
"0.82714",
"0.82691216",
"0.82629526",
"0.8249101",
"0.8228768",
"0.822333",
"0.79692185",
"0.78645647",
"0.77285874",
"0.75258005",
"0.75195384... | 0.83248657 | 4 |
Test calling image upload with bad image | def gopI(YKHO):
bD7m = xx5i(YKHO.recipe.id)
pB3N = {'image': 'image-sample'}
Ylbp = YKHO.client.post(bD7m, pB3N, format='multipart')
YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gopI(YKHO):\n bD7m = xx5i(YKHO.spot.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='multipart')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)",
"def gopI(YKHO):\n bD7m = xx5i(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='mul... | [
"0.8374067",
"0.83537227",
"0.8338703",
"0.83239144",
"0.8317004",
"0.8317004",
"0.8311052",
"0.8300841",
"0.82874334",
"0.82733154",
"0.82733154",
"0.82683724",
"0.82408994",
"0.8194981",
"0.8188128",
"0.8170776",
"0.8137816",
"0.81263065",
"0.80906117",
"0.8013057",
"0.7863... | 0.8193748 | 14 |
Name of this initiator group. | def kAdF(YKHO):
return YKHO._initiator_group_name_2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._group.name",
"def JKkI(YKHO):\n return YKHO._initiator_group_name_1",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def IXKo(YKHO):\n return f'Group: {YKHO.id}'",
"def mWFP(YKHO):\n return YKHO._iface.get_group_name(YKHO.tag_id)",
"def XZ_F... | [
"0.8316801",
"0.8046925",
"0.8039315",
"0.79867923",
"0.78459233",
"0.7720319",
"0.7547494",
"0.75454",
"0.7529669",
"0.751871",
"0.7510196",
"0.7418498",
"0.7407087",
"0.73878175",
"0.73877096",
"0.73857707",
"0.73857707",
"0.7361305",
"0.7351087",
"0.7343548",
"0.7335093",
... | 0.77069 | 6 |
Name of this initiator group. | def JKkI(YKHO):
return YKHO._initiator_group_name_1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._group.name",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def IXKo(YKHO):\n return f'Group: {YKHO.id}'",
"def mWFP(YKHO):\n return YKHO._iface.get_group_name(YKHO.tag_id)",
"def XZ_F(YKHO):\n return ''",
"def kAdF(YKHO):\n return YKHO._... | [
"0.8316801",
"0.8039315",
"0.79867923",
"0.78459233",
"0.7720319",
"0.77069",
"0.7547494",
"0.75454",
"0.7529669",
"0.751871",
"0.7510196",
"0.7418498",
"0.7407087",
"0.73878175",
"0.73877096",
"0.73857707",
"0.73857707",
"0.7361305",
"0.7351087",
"0.7343548",
"0.7335093",
... | 0.8046925 | 1 |
Builds a single deep q network model using keras. | def qmNW(ETfU, ph8c, Xsfr):
C3ST = ZylS.keras.Sequential()
C3ST.add(ZylS.keras.layers.Conv2D(filters=32, kernel_size=8, strides=4, activation=ZylS.keras.activations.relu, input_shape=ETfU))
C3ST.add(ZylS.keras.layers.Conv2D(filters=64, kernel_size=4, strides=2, activation=ZylS.keras.activations.relu))
C... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VjcN(YKHO):\n C3ST = ZylS.keras.Sequential()\n C3ST.add(fhcK.Input(shape=(YKHO._obs_length,)))\n for bGrB in range(YKHO._config.num_hidden_layers):\n C3ST.add(fhcK.Dense(YKHO._config.hidden_layer_size, activation='relu', kernel_initializer=EcCx.RandomNormal(stddev=0.01), bias_initializer=EcCx.Z... | [
"0.7753706",
"0.74337155",
"0.7397374",
"0.7266762",
"0.7220359",
"0.71511906",
"0.7139194",
"0.70755625",
"0.704521",
"0.70118934",
"0.7010314",
"0.69520235",
"0.6936442",
"0.6924198",
"0.69241756",
"0.6909249",
"0.6886593",
"0.68701327",
"0.68660754",
"0.6861788",
"0.682962... | 0.0 | -1 |
Add the experience to memory. Also decay exploration rate and remove oldest experience if memory full. | def atX8(YKHO, wspz):
YKHO._add_memory(wspz)
IXlb = wspz[-1]
if IXlb and YKHO.exp_rate > YKHO.min_exp_rate:
YKHO._decay_exp_rate()
if len(YKHO.mem) > YKHO.max_mem:
YKHO.mem.popleft() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)",
"def _jXH(YKHO, GsKL):\n if len(YKHO.memory) < YKHO.capacity:\n YKHO.memory.append(GsKL)\n else:\n ... | [
"0.8334304",
"0.81833243",
"0.81478405",
"0.74244833",
"0.74122",
"0.7410149",
"0.73705035",
"0.7353055",
"0.7176711",
"0.71611536",
"0.7157696",
"0.7113773",
"0.7105034",
"0.70722604",
"0.70722604",
"0.7072038",
"0.7053462",
"0.70455074",
"0.694332",
"0.6937103",
"0.6869862"... | 0.0 | -1 |
Synchronize weights between main and target network. | def TuZs(YKHO):
print('Updating target...')
YKHO.target.set_weights(YKHO.q.get_weights()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RHr4(YKHO):\n YKHO.active_target_params = YKHO.active_online_params\n YKHO.passive_target_params = YKHO.passive_online_params",
"def RFnJ(YKHO):\n YKHO.target_network.model.set_weights(YKHO.neural_network.model.get_weights())",
"def njHe(YKHO):\n YKHO.model.sync_weights_to(YKHO.target_model)",
... | [
"0.8032866",
"0.80236685",
"0.78668654",
"0.78668654",
"0.7610627",
"0.7544891",
"0.74479926",
"0.73707557",
"0.73107916",
"0.72236675",
"0.7102913",
"0.6856492",
"0.67777795",
"0.6763086",
"0.6737059",
"0.6722333",
"0.6717078",
"0.66904736",
"0.6681324",
"0.66500586",
"0.664... | 0.6897197 | 11 |