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 |
|---|---|---|---|---|---|---|
make onehot ann_matrix (num_chords, N) make pitchshift onehot matrix to chords sequence (use nochord class for allzeros as well) replace sequence of initial chords by new generated sequence. Do not replace values if corresponded label in new seq is nochord class save a new annotation to .lab file | def XH_L(eoQW, DkWr, cRRG):
sn1h, dAQT = BK9z(eoQW)
DlsW = oyIN.zeros_like(sn1h)
KIE5 = oyIN.array([DkWr])
for YRbF in range(sn1h.shape[1]):
if not sn1h[:, YRbF].any():
continue
DlsW[:, YRbF] = OPZq(sn1h[:, YRbF], KIE5)
fq2D = JFAw(DlsW, nonchord=True)
assert len(dAQT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zGX0(Q6uT):\n Q6uT = Q6uT.replace('A', '0')\n Q6uT = Q6uT.replace('C', '1')\n Q6uT = Q6uT.replace('G', '2')\n Q6uT = Q6uT.replace('T', '3')\n V0Th = oyIN.zeros((4, len(Q6uT)), dtype='float16')\n for YRbF in range(len(Q6uT)):\n if Q6uT[YRbF].isdigit():\n V0Th[int(Q6uT[YRbF]),... | [
"0.6338879",
"0.608163",
"0.60425293",
"0.60392606",
"0.5997686",
"0.5991118",
"0.596435",
"0.5931869",
"0.59280235",
"0.5840679",
"0.5797793",
"0.5784012",
"0.5772275",
"0.5743827",
"0.5709518",
"0.5705517",
"0.5702054",
"0.5682331",
"0.5675031",
"0.5671577",
"0.56588024",
... | 0.62388605 | 1 |
Checks the response from a Zoom API call to see if the token needs to be refreshed | def jNQz(Bv0m):
QMPs = False
try:
if Bv0m['code'] == 124:
try:
GQl3()
QMPs = True
except:
pass
else:
pass
except:
pass
return QMPs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HL13():\n w2IS = 'https://api.spotify.com/v1/me'\n MOPg = {'Authorization': 'Bearer' + Oa1e.user.spotify_token}\n geh0 = G4JS.get(w2IS, headers=MOPg)\n nPrm = qQXR.loads(geh0.text)\n if 'error' in nPrm:\n GQl3()\n else:\n return True",
"def zWnV(YKHO, _sei, QePW):\n try:\n ... | [
"0.66267484",
"0.6462836",
"0.63267225",
"0.6283981",
"0.6219097",
"0.61753327",
"0.6163811",
"0.61156154",
"0.6085723",
"0.60584307",
"0.6052728",
"0.6012493",
"0.60057884",
"0.59735656",
"0.5971946",
"0.5955918",
"0.59484106",
"0.59484106",
"0.59403527",
"0.5928423",
"0.592... | 0.73769313 | 0 |
Retrieves all meetings for which the current user is the host, and reruns get_recordings for each to check for new recordings. | def wtq3():
CmXP = c5ow.id
dDhq = uD5n.query.filter_by(host_id=CmXP).all()
for IDh4 in dDhq:
FuaZ(IDh4.id)
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_ZQ(cuiw=None):\n return NCls.get_all_meetings(session=cuiw)",
"def uxB7():\n NArs = s3m7()\n bD7m = 'https://webexapis.com/v1/meetings'\n geh0 = G4JS.get(bD7m, headers=sEAN['headers'], params=NArs)\n return qQXR.loads(geh0.text)",
"def FuaZ(lq1n, gepq, eiFi):\n em58 = 'Bearer ' + cuiw['... | [
"0.68858236",
"0.67950547",
"0.6665495",
"0.65413433",
"0.63811773",
"0.6306051",
"0.61571074",
"0.60925746",
"0.6036551",
"0.5984694",
"0.5937716",
"0.59141976",
"0.58028024",
"0.5786696",
"0.57739615",
"0.576641",
"0.5710857",
"0.5671595",
"0.5603391",
"0.5569088",
"0.55425... | 0.7361381 | 0 |
Returns all the coupon codes that are currently in the store | def b4iX(B8NJ):
EY_U = []
OqGu = B8NJ.woocommerce_api.get('coupons').json()
for YRbF in range(len(OqGu)):
EY_U.append(OqGu[YRbF].get('code'))
return EY_U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zgs6(Emd4):\n all = GhOX.query(Emd4).all()\n cwhV = []\n for ZfUD in all:\n cwhV.append(ZfUD.email_confirm_code)\n return cwhV",
"def sEek(YKHO):\n return (VIXL['shortname'] for VIXL in YKHO.currencies)",
"def UlFH(YKHO):\n YKHO.code_names, YKHO.categories = YKHO.app.get_codes_cate... | [
"0.65511215",
"0.65346444",
"0.6279872",
"0.6189412",
"0.6118632",
"0.6118022",
"0.6091796",
"0.60827315",
"0.60449976",
"0.5993538",
"0.596346",
"0.596346",
"0.590859",
"0.5887534",
"0.5839946",
"0.58295107",
"0.58201665",
"0.5776965",
"0.5756028",
"0.5721443",
"0.5712648",
... | 0.8147777 | 0 |
Get the product ID for a song a user has uploaded | def Trci(B8NJ, NtEF, JYWT):
xf1D = '<p>Check out my profile by searching for ' + NtEF + ' in the musician directory</p>'
Aofo = -1
C76W = B8NJ.woocommerce_api.get('products').json()
for YRbF in range(len(C76W)):
dkFW = C76W[YRbF]
if dkFW.get('name') == JYWT and dkFW.get('short_descriptio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Trci():\n return vWtU",
"def Trci(YKHO):\n return YKHO._product_id",
"def Mc9N(YKHO):\n return YKHO.get_product_id()",
"def Mc9N(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'product_id')",
"def x1Ij(YKHO):\n return YKHO.__device_info.product_id",
"def Mc9N(YKHO) -> h8nf[qe4Y.Inpu... | [
"0.7200147",
"0.70821214",
"0.70405066",
"0.6806983",
"0.67897195",
"0.6723923",
"0.67076117",
"0.66663724",
"0.6665237",
"0.6665237",
"0.6665237",
"0.6585481",
"0.657823",
"0.65595037",
"0.65171677",
"0.6484755",
"0.64791834",
"0.64791834",
"0.6448054",
"0.6405851",
"0.63968... | 0.79699385 | 0 |
Returns the player_id of the next player that should be picked based on | def sKGr(YKHO, Sgw_):
IuHX = IFrz - YKHO.total_remaining
Dl_C = Sgw_.copy()
Dl_C['new_active'] = Dl_C.pos.apply(YKHO.count_new_num_active)
Dl_C = Dl_C.query('new_active > @num_active').query('new_active > -1')
return Dl_C.iloc[0].name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zia_(YKHO, LZbL):\n if LZbL == YKHO.players[-1]:\n return YKHO.players[0]\n else:\n return YKHO.players[YKHO.players.index(LZbL) + 1]",
"def Zia_(YKHO, id):\n d6pt = YKHO.player_id_list.index(id)\n rYh9 = (d6pt + 1) % len(YKHO.player_id_list)\n return YKHO.player_id_list[rYh9]",
... | [
"0.806291",
"0.7844222",
"0.762102",
"0.7402257",
"0.736252",
"0.7348265",
"0.7346214",
"0.726052",
"0.7257092",
"0.72367644",
"0.72187567",
"0.7079598",
"0.7049324",
"0.704282",
"0.7031986",
"0.6998601",
"0.6942907",
"0.6896828",
"0.6876857",
"0.6784704",
"0.6774656",
"0.6... | 0.0 | -1 |
Returns the player_id of the next player that should be picked based on | def ECaU(YKHO, Sgw_):
Dl_C = Sgw_.copy()
Dl_C['new_active'] = Dl_C.pos.apply(YKHO.count_new_num_active)
Dl_C = Dl_C.query('(18 - new_active) < @self.picks_left').query('new_active != -1')
return Dl_C.iloc[0].name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zia_(YKHO, LZbL):\n if LZbL == YKHO.players[-1]:\n return YKHO.players[0]\n else:\n return YKHO.players[YKHO.players.index(LZbL) + 1]",
"def Zia_(YKHO, id):\n d6pt = YKHO.player_id_list.index(id)\n rYh9 = (d6pt + 1) % len(YKHO.player_id_list)\n return YKHO.player_id_list[rYh9]",
... | [
"0.80631596",
"0.7843974",
"0.76206297",
"0.74024755",
"0.73637205",
"0.73479915",
"0.7346203",
"0.72614604",
"0.72582155",
"0.72370934",
"0.7218614",
"0.7079139",
"0.70503247",
"0.7042797",
"0.70330536",
"0.69989777",
"0.6943571",
"0.6897682",
"0.6877324",
"0.67839867",
"0.6... | 0.0 | -1 |
Returns ``True`` if the response is complete; ``False`` otherwise. The response is considered valid if the HTTP status, headers and body are set and valid and no exception occured during the execution of the request. | def Fd4y(YKHO):
return isinstance(YKHO.status, str) and YKHO.status[:3].isdigit() and (YKHO.status[3:4] == ' ') and isinstance(YKHO.headers, zHVF(ANrH(str, str))) and isinstance(YKHO.body, bytes) and (YKHO.exc_info is None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zw_x(YKHO) -> bool:\n return YKHO.unparsed_response is not None and len(YKHO.unparsed_response) > 0",
"def PbU_(YKHO):\n return False if YKHO.response is None else True",
"def wJuV(YKHO):\n if YKHO._req > -1:\n return True\n return False",
"def p6pm(YKHO, geh0) -> bool:\n if hasattr... | [
"0.7475832",
"0.7328558",
"0.7230784",
"0.7140274",
"0.7130765",
"0.711616",
"0.70172274",
"0.6980337",
"0.6977299",
"0.6924835",
"0.6881429",
"0.68127733",
"0.6762034",
"0.67458797",
"0.6717539",
"0.67098796",
"0.6689047",
"0.6679888",
"0.6652455",
"0.6644587",
"0.65736556",... | 0.787034 | 0 |
Teste if error is raised when no path is provided | def wCUC(GvHC, AFN4):
XObx = nvv3(f'{AFN4} -m cli --metadata_path={GvHC} table create --if_table_exists=pass {vOJR} {HVet}', output='err')
assert b'You must provide a path to correctly create config files' in XObx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EXwq(YKHO):\n with trZe.raises(RuntimeError):\n z6ty._load_input_file('/path/does/not/exist')",
"def qFCz(YKHO):\n geh0 = YKHO.get_error_response(YKHO.organization.slug, YKHO.project.slug, status_code=400)\n assert geh0.data == {'detail': 'Filepath is required'}",
"def bu41(YKHO):\n XObx... | [
"0.7644181",
"0.7577995",
"0.7559034",
"0.74390596",
"0.73898286",
"0.7385784",
"0.7367625",
"0.73640853",
"0.7306058",
"0.72673464",
"0.72656727",
"0.7264999",
"0.72563875",
"0.7178829",
"0.71746933",
"0.71443105",
"0.7137287",
"0.71308297",
"0.71290976",
"0.7120679",
"0.710... | 0.0 | -1 |
Similar to `estimate_intrinsics`, but assumes that the camera center `cxy` is known, and the skew of the camera `gamma` is zero. These assumptions allow this method to estimate camera intrinsics from just one input homography. | def akzS(K_YH, MMaI):
z54K(K_YH, nmin=1)
nFdY, T8d8 = MMaI
gkIT = []
for C7Ls in K_YH:
OH59, XuVg, yfM8 = C7Ls[:, 0]
SlSO, yKnU, Act7 = C7Ls[:, 1]
gkIT.append([OH59 * SlSO - nFdY * OH59 * Act7 - nFdY * SlSO * yfM8 + nFdY * nFdY * yfM8 * Act7, XuVg * yKnU - T8d8 * XuVg * Act7 - T8... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zkl0(K_YH):\n z54K(K_YH, nmin=2)\n gkIT = []\n for C7Ls in K_YH:\n gkIT.append(JrKC(C7Ls, 0, 1))\n gkIT.append(JrKC(C7Ls, 0, 0) - JrKC(C7Ls, 1, 1))\n if len(K_YH) == 2:\n gkIT.append(oyIN.array([0, 1, 0, 0, 0, 0]))\n Nq1b = oyIN.vstack(gkIT)\n KkY2, KCHu, UNkU = oyIN.lina... | [
"0.6408475",
"0.62756014",
"0.5837828",
"0.57295907",
"0.55653024",
"0.55602306",
"0.55065787",
"0.549334",
"0.540771",
"0.5327462",
"0.53195244",
"0.5311075",
"0.5302359",
"0.5210025",
"0.5194941",
"0.51927376",
"0.5186662",
"0.5186141",
"0.51759154",
"0.5169443",
"0.5145813... | 0.62138116 | 2 |
Returns the undecided contest that preceeded runoff_contest. Returns None if it can't be found. | def PAwq(YKHO):
m8z6 = YKHO.posts.all()[0].post
try:
return yzWa.objects.filter(posts__post=m8z6, election__date__lt=YKHO.election.date).latest('election__date')
except yzWa.DoesNotExist:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MVsg(YKHO):\n return mBkc(YKHO.conditions).most_common(1)[0][0] if YKHO.conditions else 'None'",
"def DzE6(YKHO):\n if spHt.worker._mode() != spHt.worker.LOCAL_MODE:\n Glfn = YKHO.get_alive_node_ips()\n if Glfn - YKHO.get_current_trial_ips():\n for tZuJ in YKHO.get_running_tria... | [
"0.5572976",
"0.5571078",
"0.54951",
"0.54739106",
"0.5453807",
"0.5400805",
"0.5393397",
"0.539192",
"0.53891104",
"0.5283915",
"0.52680445",
"0.52680445",
"0.52680445",
"0.52680445",
"0.52238876",
"0.5214829",
"0.52089715",
"0.51782405",
"0.51702744",
"0.5155542",
"0.514918... | 0.66845596 | 0 |
Check whether a parameter is of a complex type. If not, return it unchanged. Otherwise, 1) create a hash for its value; 2) save a complex type lookup entry linking `key`, `value`, and the hash for `value`; and 3) return the hashed value with `key`, instead of the original complextyped `value` | def TClq(pmON, H5ew, BWXx):
if isinstance(BWXx, aLmk):
return (H5ew, JEVC(BWXx))
if isinstance(BWXx, x2iR):
return (H5ew, BWXx.sentinel)
elif callable(BWXx) or isinstance(BWXx, rLdf.DataFrame):
dfbF = mAY9(BWXx)
if isinstance(BWXx, rLdf.DataFrame):
jBYo.setdefault... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dsbd(OaeV, ZlgM):\n H5ew = ZlgM.search_one('key')\n if H5ew is not None:\n TVLI = ZlgM.i_base_type\n while TVLI is not None:\n Pugo = TVLI.search_one('key')\n if Pugo is not None:\n S_iL(OaeV.errors, H5ew.pos, 'REDEFINED_KEY', (ZlgM.arg, TVLI.arg, Pugo.p... | [
"0.5534374",
"0.5521924",
"0.5355214",
"0.52691007",
"0.5243243",
"0.5241345",
"0.5201538",
"0.51970965",
"0.5182536",
"0.50991374",
"0.49860957",
"0.49815816",
"0.4965812",
"0.49513495",
"0.4921187",
"0.49117368",
"0.48921657",
"0.48622835",
"0.48515934",
"0.48502034",
"0.48... | 0.45965898 | 41 |
Return True if the given string is a line comment, else False | def LzAl(vIwR):
return bool(ZbWC.match('^\\s*#', vIwR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Frqk(zFiD: str) -> bool:\n return zFiD.strip().startswith('#')",
"def aFve(vIwR):\n return vIwR.startswith('//') or vIwR.startswith('/*')",
"def azkn(zFiD: str) -> bool:\n return zFiD[1:].lstrip().startswith(coFx)",
"def tHe1(zFiD):\n Frqk = zFiD.startswith('#') or not bool(zFiD)\n return ... | [
"0.87138563",
"0.8672453",
"0.8510912",
"0.8495545",
"0.8478887",
"0.8478887",
"0.843367",
"0.84306544",
"0.84111416",
"0.8375319",
"0.8283282",
"0.8198104",
"0.8110472",
"0.81034976",
"0.809019",
"0.80103135",
"0.79987913",
"0.7860483",
"0.78183174",
"0.7814717",
"0.7753796"... | 0.9262151 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.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.83939064",
"0.83558416",
"0.8296191",
"0.8133439",
"0.81156427",
"0.810097",
"0.81001526",
"0.8099001",
"0.8099001",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80677134",
"0.80598736",
"0... | 0.0 | -1 |
Test case for otoroshi_controllers_adminapi_api_keys_controller_patch_entity_action | def HTDb(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j_w7(YKHO):\n pass",
"def NZEK(YKHO):\n pass",
"def L4xw(YKHO):\n pass",
"def y_iE(YKHO):\n pass",
"def oZWf(YKHO):\n pass",
"def Wala(y26g):\n x0hE = _Pwh(user=TKWP(admin=y26g))\n YEnM = rvbH(name='ORIGINAL_NAME')\n nPrm = {'name': 'UPDATED_NAME'}\n geh0 = x0hE.put(gxEw('v... | [
"0.8965165",
"0.7982942",
"0.7294",
"0.7244279",
"0.7112585",
"0.6714432",
"0.66921556",
"0.6674004",
"0.66549575",
"0.6637814",
"0.66340405",
"0.6633192",
"0.6613056",
"0.6607998",
"0.6587385",
"0.658637",
"0.6568743",
"0.6468041",
"0.64501715",
"0.64349556",
"0.6428945",
... | 0.9496418 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.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.83939064",
"0.83558416",
"0.8296191",
"0.8133439",
"0.81156427",
"0.810097",
"0.81001526",
"0.8099001",
"0.8099001",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80677134",
"0.80598736",
"0... | 0.804493 | 78 |
set boundary condition as cos function with amplitude fAmp | def RjMT(a1PO, MDC4, yzQ0):
return MDC4 * oyIN.cos(a1PO * yzQ0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def maTY(YKHO):\n aPd6 = 10\n dg7v = YKHO.riskfree * YKHO.maturity\n iYf1 = YKHO.param.sigma ** 2 * YKHO.maturity\n jzdc = dg7v - aPd6 * iYf1 ** 0.5\n Fg_i = dg7v + aPd6 * iYf1 ** 0.5\n return (jzdc, Fg_i)",
"def UsoG(WKvO):\n return oyIN.cos(WKvO)",
"def mbUv(jzdc, Fg_i, k0lF=1, eHNT=1):\... | [
"0.6286102",
"0.62005156",
"0.6192358",
"0.61764926",
"0.61426485",
"0.6044596",
"0.59646213",
"0.59155095",
"0.5915331",
"0.5891757",
"0.58629423",
"0.5850989",
"0.5849026",
"0.5760574",
"0.57409245",
"0.5719099",
"0.57013744",
"0.5616498",
"0.56131923",
"0.560756",
"0.56074... | 0.633227 | 0 |
Emits a constant i64 value. | def XOiM(BWXx: int):
return Csk6.ConstantOp(Csk6.IntegerType.get_explicit(64), _ABP.IntegerAttr.get(_ABP.IntegerType.get_signless(64), BWXx)).result | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OohW(BWXx):\n return tNVR.spl.op.Expression('INT64', int(BWXx))",
"def oevr(BWXx):\n return tNVR.spl.op.Expression('UINT64', int(BWXx))",
"def s3qy(Z9rn, wEf2):\n Z9rn.LOAD_CONST(wEf2)",
"def QeSX(VN2L):\n if isinstance(VN2L, int):\n return VN2L\n if not isinstance(VN2L, (fnfy.expr.... | [
"0.64486635",
"0.6159027",
"0.5761424",
"0.57530487",
"0.5635024",
"0.5635024",
"0.56309384",
"0.5581174",
"0.55335116",
"0.55164397",
"0.55014855",
"0.54804146",
"0.5439058",
"0.54240286",
"0.5419802",
"0.53596586",
"0.53206253",
"0.5317552",
"0.5315754",
"0.5294918",
"0.525... | 0.76018417 | 0 |
Promotes a numeric value to i64 and compares it to zero. Returns True if not zero. This should not be needed in the fullness of time but works around type inference limitations in low level code. | def T2CZ(EtM5: ImportStage, BWXx: ir.Value) -> _ABP.Value:
hhN_ = VMgb(EtM5, BWXx)
sbx9 = XOiM(0)
return Csk6.ApplyCompareOp(Csk6.BoolType.get(), _ABP.StringAttr.get('ne'), hhN_, sbx9).result | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wqOm(BWXx: Any) -> bool:\n return gBe3(BWXx) == 0",
"def dece(BWXx):\n try:\n 0 + BWXx\n return True\n except TypeError:\n return False",
"def fOLT(OXAZ):\n while isinstance(OXAZ, k2j5):\n OXAZ = OXAZ.t\n return OXAZ == uJiN",
"def a3cq(WKvO):\n return WKvO.i... | [
"0.6101769",
"0.60960037",
"0.607267",
"0.6029715",
"0.6022502",
"0.5942233",
"0.5942233",
"0.5930447",
"0.5889261",
"0.58432364",
"0.5836824",
"0.5822758",
"0.58023137",
"0.5737709",
"0.5711867",
"0.57046425",
"0.5703744",
"0.56907934",
"0.5678285",
"0.5653847",
"0.5642288",... | 0.61401325 | 0 |
Calculates the Euclidean length of any nDimensional vector. | def LDcD(iArr):
zX1d = oyIN.array(iArr) ** 2
y0lJ = zX1d.sum()
LDcD = oyIN.sqrt(y0lJ)
return LDcD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pKBJ(he6J: np.array) -> oyIN.float:\n return oyIN.sqrt(oyIN.sum(he6J ** 2, axis=1))",
"def gqRY(iArr):\n return PZyS(B0eC(iArr, iArr))",
"def X_iT(iArr):\n return epAf.sqrt(sum([tTpl * tTpl for tTpl in iArr]))",
"def Q5Nl(Ty9i):\n return oyIN.sqrt(oyIN.sum(oyIN.square(Ty9i), axis=1, keepdims=... | [
"0.79522955",
"0.7616965",
"0.76169497",
"0.7545019",
"0.75198686",
"0.75023836",
"0.7446952",
"0.74362123",
"0.7385806",
"0.7375424",
"0.7271339",
"0.72292197",
"0.7197589",
"0.71817946",
"0.7149573",
"0.7147411",
"0.7140254",
"0.7087397",
"0.7079463",
"0.69750124",
"0.69743... | 0.7130789 | 17 |
Split the current exmaples based on `feature_index`. | def Y3VB(YKHO, _73Q, xhAU):
olGy = []
HALx = []
for rdlD in _73Q:
if rdlD.features[xhAU] == 0:
olGy.append(rdlD)
else:
HALx.append(rdlD)
return (olGy, HALx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(YKHO, _NkK):\n raise NotImplementedError('')",
"def lpha(YKHO, BZ2A):\n raise NotImplementedError()",
"def xxqo(_0VL, IlRZ):\n return oyIN.array_split(_0VL, indices_or_sections=IlRZ)",
"def zFkw(YKHO, _73Q, xhAU, K5qA):\n pass",
"def lpha(YKHO, H0N9: np.ndarray, sNE4: np.ndarray=None):... | [
"0.649733",
"0.6314984",
"0.59579235",
"0.59507656",
"0.59427214",
"0.5929251",
"0.59215057",
"0.58843124",
"0.58085936",
"0.57908845",
"0.57726634",
"0.5738784",
"0.572054",
"0.56940347",
"0.56914264",
"0.56901866",
"0.5662986",
"0.56579405",
"0.561573",
"0.55828553",
"0.558... | 0.55622077 | 22 |
Return the most common output value among examples. When there is a tie, return randomly. | def thHR(YKHO, _73Q):
WzEE = 0
rdzv = 0
Aofo = 0
for YRbF in range(len(_73Q)):
if _73Q[YRbF].outcome == 1:
WzEE += 1
else:
rdzv += 1
if WzEE > rdzv:
Aofo = 1
elif WzEE == rdzv:
Aofo = tuKI.choice([0, 1])
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PeVW(r9Hf):\n assert type(r9Hf) == mBkc or type(r9Hf) == dict\n n6mp = max(r9Hf.values())\n c0_4 = [YRbF for YRbF in r9Hf.keys() if r9Hf[YRbF] == n6mp]\n return ADdS.choice(c0_4)",
"def thHR(_73Q):\n geGr = iVRZ(_73Q, len(_73Q[0]) - 1)\n N_Ko = set(geGr)\n k0lF = [len([WKvO for WKvO in g... | [
"0.6308378",
"0.6212182",
"0.6111585",
"0.5914288",
"0.5882505",
"0.58485293",
"0.58397776",
"0.5813654",
"0.57555044",
"0.5702366",
"0.5698878",
"0.568222",
"0.56798285",
"0.5679501",
"0.5677343",
"0.56755865",
"0.56510216",
"0.56480455",
"0.56453985",
"0.56391513",
"0.56132... | 0.57339454 | 9 |
Video streaming generator function. | def nnoD(yDvq):
while True:
VXjJ = yDvq.get_img()
yield (b'--jpg\r\nContent-Type: image/jpeg\r\n\r\n' + VXjJ + b'\r\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LNm5(R72Z):\n e5kH = False\n while True:\n if not e5kH:\n yield b'<meta http-equiv=\"refresh\" content=\"300\">\\n'\n e5kH = True\n else:\n tO9_ = R72Z.poll()\n if tO9_ is not None:\n yield (b'--frame\\r\\n' + b'Content-Type: image/... | [
"0.7232534",
"0.72200143",
"0.7201321",
"0.71994513",
"0.7173184",
"0.7100655",
"0.70869464",
"0.7069883",
"0.70319384",
"0.69891196",
"0.69714355",
"0.6953195",
"0.6927075",
"0.69249046",
"0.69249046",
"0.69049984",
"0.6902836",
"0.68776107",
"0.6869355",
"0.6866506",
"0.684... | 0.62508416 | 93 |
Apply `func` for each wrapped generators. | def P8gx(YKHO, JfyU: Callable[..., Any], *qIxc: Iterable[Any]) -> x1iM[ImMB]:
return [JfyU(eK5b, *MQo6) for eK5b, MQo6 in zip(YKHO._generators, zip(*qIxc))] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aDLx(YKHO, JfyU, *qIxc, **B2fa):\n with YKHO:\n for geyT in JfyU(*qIxc, **B2fa):\n yield geyT",
"def bQPe(c2Yh, eHNT):\n for WKvO in c2Yh:\n yield eHNT(WKvO)",
"def JQ7D(JfyU: Callable[..., T], WhY1: Iterable[tuple]) -> bDy6[Kt_s]:\n return (JfyU(*qIxc) for qIxc in WhY1)",... | [
"0.74392134",
"0.730855",
"0.67464656",
"0.67462254",
"0.6674329",
"0.6608998",
"0.65453285",
"0.6538311",
"0.65149057",
"0.64876515",
"0.64639884",
"0.6405987",
"0.6301619",
"0.6253235",
"0.6246436",
"0.62317973",
"0.62156254",
"0.62007195",
"0.6186521",
"0.6137667",
"0.6130... | 0.7277601 | 2 |
Returns a fresh, empty wrapper_accumulator. | def k06t(YKHO) -> l3Mo:
return {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k06t(YKHO):\n raise NotImplementedError",
"def bMpl():\n jvSB = [0]\n\n def alQJ(WKvO):\n jvSB[0] += WKvO\n return jvSB[0]\n return alQJ",
"def dsmM(YKHO, DJ0J: WrapperAccumulator, R4rN: types.FeaturePath) -> x1iM[ImMB]:\n Aofo = DJ0J.get(R4rN, None)\n if Aofo is not None:\n... | [
"0.70751494",
"0.66935116",
"0.6680377",
"0.6559035",
"0.65351945",
"0.64017564",
"0.57203406",
"0.55966514",
"0.54905176",
"0.53260356",
"0.52503467",
"0.5250225",
"0.51907164",
"0.51142585",
"0.5057101",
"0.50266665",
"0.5018222",
"0.50038654",
"0.4998464",
"0.49462643",
"0... | 0.8161589 | 0 |
Display an rgb image using matplotlib (useful for debugging) | def BE3X(d7Eb, leAC=None):
import matplotlib.pyplot as QrM1
QrM1.imshow(d7Eb, interpolation='nearest', origin='lower')
if leAC:
QrM1.title(leAC)
QrM1.show()
return QrM1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ogbo(LNo8):\n QrM1.figure(figsize=(12, 10), dpi=80)\n QrM1.imshow(LNo8)\n QrM1.show()",
"def p1dx(VXjJ):\n QrM1.imshow(VXjJ, cmap='binary')\n QrM1.axis('off')\n QrM1.show()",
"def p1dx(LNo8):\n QrM1.imshow(LNo8, cmap='gray')",
"def YFCF(gMlh, leAC, oeNL):\n i9D0 = gMlh[:, :, ::-1]... | [
"0.8663603",
"0.75546527",
"0.7539491",
"0.7539189",
"0.7539189",
"0.7528429",
"0.7516675",
"0.7496739",
"0.74923044",
"0.7476775",
"0.7465298",
"0.7453964",
"0.7428427",
"0.74236065",
"0.7398281",
"0.73814136",
"0.7359569",
"0.73482543",
"0.73041326",
"0.72805464",
"0.726658... | 0.7423758 | 13 |
Return image with all points above satValue set to NaN. Simulates saturation on an image, so we can test 'replace_saturated_pixels' | def RgfG(LNo8, F0_J):
Aofo = LNo8.copy()
fM22 = LNo8 > F0_J
Aofo[fM22] = oyIN.nan
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zY3k(YKHO, shSu, iVRZ, rdlD, Z8n6=150000.0):\n fM22 = oyIN.where((shSu > Z8n6).astype(float))[0]\n m5cw = oyIN.vstack([oyIN.hstack([iVRZ[fM22] + or8S for or8S in oyIN.arange(-3, 3)]), oyIN.hstack([rdlD[fM22] for or8S in oyIN.arange(-3, 3)])]).T\n m5cw = m5cw[oyIN.unique([''.join(KCHu) for KCHu in m5cw... | [
"0.6659644",
"0.64043874",
"0.63028204",
"0.629076",
"0.6190069",
"0.6120708",
"0.59761226",
"0.594081",
"0.587431",
"0.58440673",
"0.5838982",
"0.58366865",
"0.5826782",
"0.58248496",
"0.5803498",
"0.57363933",
"0.57257324",
"0.5693877",
"0.56799835",
"0.5679546",
"0.5673726... | 0.8308955 | 0 |
Create Human env with base movement and random seed | def G9FC(Emd4: Type[TypeObject]) -> u30H:
yokr: int = oyIN.random.randint(0, uwaB.MAX_INT)
return Emd4(eIZI(seed=yokr), Nyl4.base_movement()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ROSy(geb0, yokr, g4pi=False):\n pR3T = vPBo.observations.split(';')\n ZylS.logging.info('Observations requested:')\n ZylS.logging.info(pR3T)\n GPtr = {'status_height': 0, 'width': vPBo.width, 'height': vPBo.height, 'graph_width': vPBo.graph_width, 'graph_height': vPBo.graph_height, 'graph_zoom': vP... | [
"0.66344696",
"0.65973353",
"0.64123976",
"0.6340731",
"0.6340731",
"0.6327432",
"0.6315247",
"0.6287643",
"0.6236758",
"0.6221256",
"0.62133074",
"0.6164051",
"0.6143788",
"0.6139603",
"0.6121945",
"0.6113712",
"0.610769",
"0.6100646",
"0.60992056",
"0.6084039",
"0.60834366"... | 0.0 | -1 |
Depth first traversal helper to generate the parentchild relationships by elements on the document. | def tOYY(ugBM, UqER):
Rxiz = DIfe(ugBM.get('paragraph').get('elements')[0].get('textRun').get('content').strip())
if 'bullet' not in ugBM.get('paragraph'):
ZaW8 = -1
elif 'nestingLevel' not in ugBM.get('paragraph')['bullet']:
ZaW8 = 0
else:
ZaW8 = ugBM.get('paragraph')['bullet'][... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zN6g(XP5J):\n while XP5J is not None:\n yield XP5J\n XP5J = XP5J.parent",
"def eNvf(YKHO):\n if not YKHO.children:\n return\n for y0cW in sorted(YKHO.children):\n aUGN = YKHO.children[y0cW]\n yield aUGN\n for aUGN in aUGN.traverse():\n yield aUGN"... | [
"0.6390327",
"0.6323612",
"0.6322797",
"0.620601",
"0.61698204",
"0.611555",
"0.61009574",
"0.60912895",
"0.60383815",
"0.60296583",
"0.60256904",
"0.5987716",
"0.59667736",
"0.59509194",
"0.5950084",
"0.5937194",
"0.5926767",
"0.592117",
"0.5899753",
"0.58838916",
"0.5872072... | 0.6873921 | 0 |
Display a surface using a scatter plot in 2D. | def RYIa(WKvO, LVAh, epBp=None, leAC=None, jk7u=None, rTQi=None, mvm2=None):
if epBp is None:
epBp = oyIN.ones(WKvO.shape, dtype=oyIN.int)
if mvm2 is not None:
print('Plotting %5.2f percent of data' % mvm2)
WKvO, LVAh, epBp = Ai26(WKvO, LVAh, epBp, mvm2)
print('Now length of data... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qm1W(WKvO, LVAh, P6bq, mWFP):\n LZpg = QrM1.figure(figsize=(13, 10), dpi=100)\n aNZO = LZpg.gca(projection='3d')\n EcVT, fuBA = oyIN.meshgrid(WKvO, LVAh)\n C5Es = aNZO.plot_surface(EcVT, fuBA, P6bq[:], rstride=1, cstride=1, cmap=Bcwd.coolwarm, linewidth=0, antialiased=False)\n LZpg.savefig(mWFP)... | [
"0.7155951",
"0.70916367",
"0.6882743",
"0.67251086",
"0.66689754",
"0.66485894",
"0.6593139",
"0.6551731",
"0.6521496",
"0.65187883",
"0.65077215",
"0.64899933",
"0.64748883",
"0.64683855",
"0.64548165",
"0.63980037",
"0.6366844",
"0.63312286",
"0.6282331",
"0.6256374",
"0.6... | 0.0 | -1 |
Helper to get the current version from either git describe or the .version file (if available). | def mWUu(L4cu):
iGvk = Hy7s.path.split(xAKo)[0]
Kz2T = Hy7s.path.join(iGvk, L4cu, '.version')
try:
from param import version
except ImportError:
version = None
if version is not None:
return version.Version.setup_version(iGvk, L4cu, archive_commit='$Format:%h$')
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv():\n try:\n with open(ahDO) as eHNT:\n return eHNT.readline().strip()\n except IOError:\n with open(ahDO, 'w') as eHNT:\n XP5J = fGmS('git describe'.split(), stdout=eHNT)\n if XP5J.wait() == 0:\n return kaPv()\n else:\n ... | [
"0.826631",
"0.8060924",
"0.8050643",
"0.7951543",
"0.7920423",
"0.78742373",
"0.7820179",
"0.78069204",
"0.7740147",
"0.77063984",
"0.7705781",
"0.7583027",
"0.7478428",
"0.74300826",
"0.74257445",
"0.742511",
"0.74067205",
"0.73990077",
"0.731932",
"0.7311703",
"0.7235923",... | 0.0 | -1 |
Align the arrays of the input list, based on batch size. | def Pz9L(YKHO, mGsV):
hgl7 = oyIN.min([WKvO.shape[0] for WKvO in mGsV])
S06t = [WKvO[0:hgl7] for WKvO in mGsV]
return S06t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X8fE(YKHO, Wc9F):\n Ys30 = max([KCHu.shape[1] for KCHu in Wc9F])\n ywwl, vuvg = (len(Wc9F), Wc9F[0].shape[0])\n ty06 = oyIN.zeros((ywwl, vuvg, Ys30), dtype=oyIN.float32)\n aHnM = []\n for YRbF, KCHu in enumerate(Wc9F):\n Kt_s = KCHu.shape[1]\n aHnM.append(Kt_s)\n ty06[YRbF, ... | [
"0.6461616",
"0.64240986",
"0.63844925",
"0.6360318",
"0.62728405",
"0.6203405",
"0.6114841",
"0.61067003",
"0.60612476",
"0.60508275",
"0.6003344",
"0.59966046",
"0.59917814",
"0.59917814",
"0.5983689",
"0.5973208",
"0.5955981",
"0.59149283",
"0.5881909",
"0.5874121",
"0.586... | 0.7516001 | 1 |
Updates a weight vector before a prediction is made. | def poUy(YKHO, yzQ0: dict) -> dict:
return yzQ0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MyUA(YKHO, USzK, dqRU):\n rDFg = YKHO.predict(USzK)\n if rDFg is not dqRU:\n YKHO.weights[rDFg] = YKHO.weights[rDFg] - USzK\n YKHO.weights[dqRU] = YKHO.weights[dqRU] + USzK",
"def MyUA(YKHO) -> gyIm:\n o3Uj = YKHO.get_prediction(YKHO.training_x)\n YKHO.weights -= 2 * YKHO.alpha * (o... | [
"0.7832299",
"0.7732793",
"0.74389327",
"0.7377671",
"0.72922844",
"0.70882297",
"0.70566213",
"0.6963169",
"0.687938",
"0.6863254",
"0.6767046",
"0.67656213",
"0.67413205",
"0.6739941",
"0.6706613",
"0.6667953",
"0.66656446",
"0.6629984",
"0.6594854",
"0.65942985",
"0.659075... | 0.0 | -1 |
Test case for testing cos method | def uhu5(YKHO):
YKHO.assertEqual(0.5403023058681398, NIOI.cos(1.0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bw3M(YKHO):\n YKHO.assertEqual(0.5403023058681398, NIOI.cos(-1.0))",
"def TvaH(YKHO):\n vhpA = ht2j.tensor([0.01 * YRbF for YRbF in range(-1000, 1001, 1)], device=YKHO.device)\n LCyV = reUQ(vhpA)\n ajHT = ['cos', 'sin']\n for JfyU in ajHT:\n aC0l = getattr(vhpA, JfyU)()\n tLaD = ... | [
"0.7888595",
"0.7652043",
"0.76197124",
"0.7193406",
"0.71926135",
"0.7187329",
"0.71849835",
"0.7066284",
"0.7065364",
"0.70391214",
"0.7025462",
"0.7022211",
"0.7020385",
"0.70118624",
"0.70017904",
"0.6997881",
"0.69916165",
"0.69893396",
"0.6958218",
"0.69443727",
"0.6893... | 0.8529424 | 0 |
Test case for testing cos method against negative value | def Bw3M(YKHO):
YKHO.assertEqual(0.5403023058681398, NIOI.cos(-1.0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uhu5(YKHO):\n YKHO.assertEqual(0.5403023058681398, NIOI.cos(1.0))",
"def vybr(YKHO):\n YKHO.assertEqual(-0.8414709848078965, NIOI.sin(-1.0))",
"def YhSR(BWXx):\n return epAf.cos(BWXx)",
"def TvaH(YKHO):\n vhpA = ht2j.tensor([0.01 * YRbF for YRbF in range(-1000, 1001, 1)], device=YKHO.device)\... | [
"0.83119416",
"0.75520444",
"0.73894954",
"0.7328099",
"0.7306045",
"0.72482646",
"0.7134732",
"0.7119784",
"0.7057688",
"0.7017759",
"0.70002484",
"0.699906",
"0.6997914",
"0.6968216",
"0.6950396",
"0.69370186",
"0.69361746",
"0.69248044",
"0.6906013",
"0.6897046",
"0.688761... | 0.9019477 | 0 |
Gets the uid of this User. | def PObu(YKHO) -> int:
return YKHO._uid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PObu(YKHO):\n return YKHO._get_field('uid')",
"def PObu(YKHO):\n return YKHO._uid",
"def PObu(YKHO):\n return YKHO._uid",
"def PObu(YKHO):\n return YKHO._uid",
"def PObu(YKHO):\n return YKHO._uid",
"def PObu(YKHO):\n return YKHO._uid",
"def PObu(YKHO):\n return YKHO._uid",
"d... | [
"0.7970233",
"0.78888535",
"0.78888535",
"0.77706486",
"0.77706486",
"0.77706486",
"0.77706486",
"0.77706486",
"0.77706486",
"0.77706486",
"0.77706486",
"0.77007395",
"0.7696733",
"0.7696733",
"0.7639884",
"0.75998676",
"0.75635076",
"0.7554313",
"0.7507687",
"0.747533",
"0.7... | 0.7705079 | 11 |
Sets the uid of this User. | def PObu(YKHO, PObu: int):
YKHO._uid = PObu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PObu(YKHO, PObu):\n if PObu is None:\n raise ValueError('Invalid value for `uid`, must not be `None`')\n YKHO._uid = PObu",
"def PObu(YKHO, PObu):\n if PObu is None:\n raise ValueError('Invalid value for `uid`, must not be `None`')\n YKHO._uid = PObu",
"def PObu(YKHO, PObu):\n ... | [
"0.78782",
"0.78782",
"0.7757793",
"0.7757793",
"0.7757793",
"0.7757793",
"0.7757793",
"0.7757793",
"0.7237509",
"0.7124206",
"0.7073927",
"0.7073927",
"0.70363617",
"0.6930687",
"0.6809892",
"0.6809892",
"0.67639315",
"0.6523342",
"0.6483704",
"0.6352413",
"0.6324258",
"0.... | 0.7769155 | 2 |
Gets the password of this User. | def jTXt(YKHO) -> str:
return YKHO._password | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AFDB(YKHO):\n return YKHO._password",
"def AFDB(YKHO):\n return YKHO.password",
"def AuKh(YKHO):\n return YKHO.password",
"def jTXt(YKHO):\n return YKHO.api.get_password_fields(YKHO)['Password']",
"def AuKh(YKHO):\n return YKHO.__password",
"def AFDB(YKHO):\n return YKHO.password",
... | [
"0.87817645",
"0.86507404",
"0.8640171",
"0.861403",
"0.8565449",
"0.8530338",
"0.8525145",
"0.84650606",
"0.84650606",
"0.84650606",
"0.8463665",
"0.8372234",
"0.8358475",
"0.8327157",
"0.82744104",
"0.826058",
"0.8251464",
"0.8196152",
"0.8196152",
"0.8196152",
"0.8196152",... | 0.81350553 | 42 |
Sets the password of this User. | def jTXt(YKHO, jTXt: str):
YKHO._password = jTXt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PnS7(YKHO, jTXt):\n YKHO._password = jTXt",
"def PnS7(YKHO, jTXt):\n YKHO.password = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.user.set_password(jTXt)\n YKHO.user.save()",
"def PnS7(YKHO, jTXt):\n YKHO.password = mv1M.getDigest(jTXt)",
"def PnS7(YKHO, jTXt):\n YKHO.password = jTXt",
"def... | [
"0.84621173",
"0.84532344",
"0.8428748",
"0.83626926",
"0.83357793",
"0.8335238",
"0.8324722",
"0.8307938",
"0.8307938",
"0.8273144",
"0.8246472",
"0.823601",
"0.8188693",
"0.8179101",
"0.81479216",
"0.8147531",
"0.8147531",
"0.8147531",
"0.8147531",
"0.8147531",
"0.8147531",... | 0.81017846 | 30 |
Gets the status of this User. | def jGRS(YKHO) -> str:
return YKHO._status | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VLTN(YKHO):\n return Edpv.STATUS[YKHO.status]",
"def jGRS(YKHO):\n return YKHO._status if 'status' in YKHO._user_dat else 0",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status",
"def VLTN(YKHO):\n return YKHO.status... | [
"0.848264",
"0.8192834",
"0.79205966",
"0.7815481",
"0.7815481",
"0.7815481",
"0.7815481",
"0.77959",
"0.7789528",
"0.7754292",
"0.7748979",
"0.7742568",
"0.7742568",
"0.7716148",
"0.76681405",
"0.76681405",
"0.76681405",
"0.7651737",
"0.7640214",
"0.76155573",
"0.75955075",
... | 0.0 | -1 |
Gets the park_time of this User. | def DLgl(YKHO) -> str:
return YKHO._park_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def La1L(YKHO) -> int:\n return YKHO._park_hour",
"def Ifpw(YKHO):\n return YKHO._locktime",
"def EIDe(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'locked_time')",
"def EIDe(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'locked_time')",
"def kdNT(YKHO):\n return YKHO.pt... | [
"0.6901491",
"0.66204023",
"0.6516009",
"0.6516009",
"0.63690895",
"0.63495415",
"0.63495415",
"0.63291645",
"0.6296249",
"0.6296249",
"0.6296249",
"0.6296249",
"0.6296249",
"0.62924814",
"0.62770915",
"0.62704986",
"0.6269769",
"0.6261712",
"0.6261712",
"0.6261712",
"0.62462... | 0.81277585 | 0 |
Create and return a new `User` instance, given the validated data. | def eLpg(YKHO, vGfb):
return mv1M.objects.create(**vGfb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO, vGfb):\n KAOR = mv1M()\n return YKHO.update(KAOR, vGfb)",
"def eLpg(YKHO, vGfb):\n KAOR = mv1M()\n return YKHO.update(KAOR, vGfb)",
"def eLpg(YKHO, vGfb):\n KAOR = mv1M()\n KAOR.first_name = vGfb.get('first_name')\n KAOR.last_name = vGfb.get('last_name')\n KAOR.username =... | [
"0.85540104",
"0.85540104",
"0.8532735",
"0.8461704",
"0.84538645",
"0.84449524",
"0.8362963",
"0.82728904",
"0.82188535",
"0.8192379",
"0.8117336",
"0.8081972",
"0.80805063",
"0.8064197",
"0.80386573",
"0.7982846",
"0.79543436",
"0.7952286",
"0.7924563",
"0.7920855",
"0.7902... | 0.8623806 | 0 |
Get serializer's ref_name (or None for ModelSerializer if it is named 'NestedSerializer') | def lWKb(YKHO, ZMzz):
XjA3 = getattr(ZMzz, 'Meta', None)
qviK = type(ZMzz).__name__
if hasattr(XjA3, 'ref_name'):
mXGw = XjA3.ref_name
elif qviK == 'NestedSerializer' and isinstance(ZMzz, IyFz.ModelSerializer):
mXGw = None
else:
mXGw = qviK
if mXGw.endswith('Serialize... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qviK(YKHO):\n KCHu = YKHO._meta.label.split('.')[-1]\n return KCHu[0].lower() + KCHu[1:]",
"def l5oD(YKHO):\n return YKHO.serializers.get(YKHO.action, YKHO.serializers.get('default'))",
"def WE21(YKHO, wvau):\n return wvau.viewset.get_serializer_class()",
"def l5oD(YKHO):\n if YKHO.action ... | [
"0.67534447",
"0.649975",
"0.6479666",
"0.6194682",
"0.61579853",
"0.6110502",
"0.6077673",
"0.60753655",
"0.60753655",
"0.60585",
"0.6043541",
"0.6038516",
"0.60107934",
"0.59975743",
"0.5990436",
"0.59884346",
"0.5970357",
"0.59626544",
"0.57665664",
"0.5720843",
"0.5714891... | 0.89797115 | 0 |
Returns the currently running script file name. | def yUi_():
return Hy7s.path.basename(HwRy.argv[0]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qq1Z():\n f4IJ = tq_1.stack()[1]\n yR_P = tq_1.getmodule(f4IJ[0])\n Ux0P = yR_P.__file__\n Ux0P = str(Ux0P).split('/')[-1].split('.')[0]\n return Ux0P",
"def E544(YKHO):\n return YKHO.current_file",
"def jN9l(YKHO):\n return YKHO._script_fname",
"def B6sC(YKHO):\n if getattr(YKHO,... | [
"0.86422664",
"0.8021067",
"0.77601737",
"0.7670543",
"0.7662351",
"0.7594824",
"0.75364923",
"0.7450948",
"0.7409215",
"0.7288341",
"0.7276614",
"0.72612035",
"0.7209854",
"0.71479243",
"0.71479243",
"0.71365887",
"0.7101171",
"0.706671",
"0.706671",
"0.706671",
"0.706671",
... | 0.8099859 | 1 |
Computes the average precision at k. This function computes the average prescision at k between two lists of items. | def yYKJ(n5sN, PjQx, G1Hx=500):
if len(PjQx) > G1Hx:
PjQx = PjQx[:G1Hx]
p1kx = 0.0
yAQO = 0.0
for YRbF, XP5J in enumerate(PjQx):
if XP5J in n5sN and XP5J not in PjQx[:YRbF]:
yAQO += 1.0
p1kx += yAQO / (YRbF + 1.0)
if not n5sN:
return 1.0
return p1k... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('Relevance score length < k')\n return oyIN.mean(Mkmy)",
... | [
"0.7842362",
"0.74304044",
"0.72959566",
"0.71327955",
"0.71056813",
"0.708125",
"0.7049891",
"0.7046644",
"0.7011986",
"0.6988736",
"0.69440395",
"0.69035864",
"0.69035864",
"0.6897904",
"0.6895055",
"0.6895055",
"0.6877405",
"0.6877405",
"0.6877405",
"0.68744665",
"0.684627... | 0.60348505 | 84 |
Return True if the other position represents the same location | def xa14(YKHO, Elif):
raise NotImplementedError('must be implemented by a subclass') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aY5o(gwqK, yCTS, RVVh=30):\n qO1S, gwqK, bGrB, p4s7 = gwqK\n f1fs, yCTS, lFiF = yCTS\n if qO1S != f1fs or p4s7 != lFiF:\n return False\n return abs(gwqK - yCTS) < RVVh",
"def aY5o(gwqK, yCTS, RVVh=30):\n qO1S, gwqK, p4s7 = gwqK\n f1fs, yCTS, lFiF = yCTS\n if qO1S != f1fs or p4s7 !... | [
"0.75673896",
"0.75645435",
"0.7526115",
"0.7509263",
"0.74938995",
"0.74878",
"0.74827594",
"0.74087554",
"0.73582417",
"0.73582417",
"0.73115206",
"0.72837955",
"0.7242354",
"0.72400904",
"0.72308016",
"0.72284967",
"0.72148967",
"0.71466434",
"0.7144372",
"0.71392757",
"0.... | 0.0 | -1 |
Return True if other doesnot represent the same location | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: 'TSLocation') -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: 'TSLocationBasic') -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n return not YKHO._coords == Elif._coords",
"def Vdqg(YKHO, Elif: 'TSLocalLocation') -> bool:\n return not YKHO == Elif",
... | [
"0.82327795",
"0.8064353",
"0.8047339",
"0.7981134",
"0.79808307",
"0.79765534",
"0.7944917",
"0.7944917",
"0.7708304",
"0.759352",
"0.759352",
"0.7556649",
"0.75540596",
"0.7518611",
"0.7504624",
"0.7503389",
"0.7501393",
"0.7494533",
"0.7453718",
"0.7442554",
"0.7442554",
... | 0.0 | -1 |
Assigns a work order to a given technician. Returns a tuple, the technician and the order that it is working on. | def ldUC(RMoQ, L_Ne, M9Tm):
if len(L_Ne) <= 0:
return {}
if len(M9Tm) <= 0:
return {}
a5X0 = qBSg(RMoQ, L_Ne)
Cc3h = pjjh(a5X0, M9Tm)
if not Cc3h:
return {}
apsU = Cc3h[0]['priority']
_9yg = RMoQ['last_location']
for T4Wy in Cc3h:
if T4Wy['priority'] < aps... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YDuP(YKHO, T4Wy):\n YvUd = YKHO.stack.delete()\n YvUd.set_order_load(T4Wy)\n YKHO.employees_working.append(YvUd)",
"def Kr_z(YKHO):\n return YKHO._feature.attributes.get(YKHO._schema.work_order_id)",
"def bXYi(x0hE: SymphonyClient, mWFP: str, Yg5D: WorkOrderType) -> OeW3:\n Aofo = mq6Q.execu... | [
"0.5757381",
"0.55612195",
"0.5157181",
"0.5137342",
"0.5122866",
"0.5100923",
"0.5091331",
"0.5058826",
"0.5040013",
"0.5033377",
"0.5022164",
"0.498841",
"0.4972609",
"0.49180833",
"0.4911404",
"0.49053377",
"0.490153",
"0.48905176",
"0.48862833",
"0.4876045",
"0.48720765",... | 0.68374926 | 0 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
X_bn = ['january', 'february', 'march', 'april', 'may', 'june']
print('Displaying the most common month: ', jQ3Z['month'].mode()[0], '\n')
print('Displaying the most common day of week: ', jQ3Z['day_of_w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.8001165",
"0.7922243",
"0.7893095",
"0.78627574",
"0.7860645",
"0.78407425",
"0.78012186",
"0.77861416",
"0.7736663",
"0.7724549",
"0.77149576",
"0.7709874",
"0.7705828",
"0.77031857",
"0.76912403",
"0.7687133",
"0.76814157",
"0.7680444",
"0.7673816",
"0.7662959",
"0.76615... | 0.7506775 | 66 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
bTuL = jQ3Z['Start Station'].mode()[0]
print(f'The most common start station is: {bTuL}')
Nj0t = jQ3Z['End Station'].mode()[0]
print(f'The most common end station is: {Nj0t}')
_Ek3 = jQ3Z['Start... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.737194 | 31 |
Sets the currency_code of this CouponDiscountItemWithItemPurchase. | def uvmn(YKHO, uvmn):
if uvmn is not None and len(uvmn) > 3:
raise ValueError('Invalid value for `currency_code`, length must be less than or equal to `3`')
YKHO._currency_code = uvmn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn):\n YKHO._currency_code = uvmn",
"def uvmn(YKHO, uvmn)... | [
"0.7223427",
"0.7223427",
"0.7223427",
"0.7223427",
"0.7223427",
"0.7223427",
"0.7223427",
"0.7223427",
"0.71917087",
"0.71917087",
"0.695142",
"0.6942537",
"0.6375373",
"0.5968608",
"0.5968608",
"0.5968608",
"0.59159786",
"0.5876304",
"0.5875738",
"0.58731025",
"0.584731",
... | 0.69189304 | 12 |
Sets the discount_item of this CouponDiscountItemWithItemPurchase. | def GFIh(YKHO, GFIh):
YKHO._discount_item = GFIh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FMQW(YKHO, FMQW):\n YKHO._discount = FMQW",
"def FMQW(YKHO, FMQW):\n YKHO._discount = FMQW",
"def FMQW(YKHO, FMQW):\n YKHO._discount = FMQW",
"def n1JI(YKHO, n1JI):\n YKHO._cash_discount = n1JI",
"def ZW42(YKHO, ZW42):\n YKHO._discount_amount = ZW42",
"def ZW42(YKHO, ZW42):\n YKHO._... | [
"0.64613533",
"0.64613533",
"0.64613533",
"0.6066586",
"0.6035241",
"0.6035241",
"0.6035241",
"0.6035241",
"0.6017188",
"0.59680194",
"0.5888665",
"0.5868977",
"0.57342774",
"0.5724319",
"0.55102473",
"0.54682803",
"0.53639966",
"0.5334744",
"0.53273016",
"0.52835965",
"0.517... | 0.8251749 | 0 |
Sets the discount_price of this CouponDiscountItemWithItemPurchase. | def BHm7(YKHO, BHm7):
YKHO._discount_price = BHm7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gUkw(YKHO, gUkw):\n YKHO._price_discount = gUkw",
"def ncUz(YKHO, ncUz):\n YKHO._discounted_price = ncUz",
"def GFIh(YKHO, GFIh):\n YKHO._discount_item = GFIh",
"def FMQW(YKHO, FMQW):\n YKHO._discount = FMQW",
"def FMQW(YKHO, FMQW):\n YKHO._discount = FMQW",
"def FMQW(YKHO, FMQW):\n ... | [
"0.73988545",
"0.70381695",
"0.6962652",
"0.66364914",
"0.66364914",
"0.66364914",
"0.65297306",
"0.65297306",
"0.65297306",
"0.65297306",
"0.6413606",
"0.6404589",
"0.5995825",
"0.5926625",
"0.5884017",
"0.5800895",
"0.5799989",
"0.5715321",
"0.5637337",
"0.55629677",
"0.543... | 0.767805 | 0 |
Sets the required_purchase_item of this CouponDiscountItemWithItemPurchase. | def bRmS(YKHO, bRmS):
YKHO._required_purchase_item = bRmS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ayGG(YKHO, ayGG):\n YKHO._minimum_purchase = ayGG",
"def GFIh(YKHO, GFIh):\n YKHO._discount_item = GFIh",
"def Do9e(YKHO, BTV3):\n YKHO.item_cost = BTV3",
"def jeGQ(YKHO, jeGQ):\n YKHO._required = jeGQ",
"def jeGQ(YKHO, jeGQ):\n YKHO._required = jeGQ",
"def jeGQ(YKHO, jeGQ):\n YKHO.... | [
"0.5693237",
"0.5292257",
"0.52151245",
"0.5176103",
"0.5176103",
"0.5176103",
"0.5176103",
"0.51481366",
"0.514562",
"0.5028986",
"0.5012932",
"0.5010641",
"0.49268386",
"0.49167967",
"0.48990107",
"0.4804061",
"0.4737003",
"0.47319406",
"0.47118223",
"0.467086",
"0.4633479"... | 0.8344103 | 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.83939064",
"0.83558416",
"0.8296191",
"0.8133439",
"0.81156427",
"0.810097",
"0.81001526",
"0.8099001",
"0.8099001",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80936444",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80862904",
"0.80677134",
"0.80598736",
"0... | 0.0 | -1 |
Given a list of lists of lists that contains interacting chainpairs, it deletes the redundant ones. Returns another list, similar to the input one, but with the redundant pairs eliminated. In order to classify two interacting chainpairs as redundant, we will need to superimpose those that share a common chain, which we... | def c_5H(l8Rr, pImw=2.5, PJWX=False):
Ayfi = pImw
DaD6 = []
if PJWX == True:
print('Looking for redundant pairs...')
for d6pt, rkr3 in enumerate(l8Rr):
for nExx in l8Rr[d6pt + 1:]:
Jjxi = L0z6(rkr3[0], nExx[0])
if Jjxi is not None and Jjxi > 0.95:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZMDu(YKHO):\n lV4j = []\n wzkt = PCpl.sim_time()\n for Q_l5, K84X in YKHO._pending_pairs.items():\n if wzkt - K84X[1] > YKHO._max_delay:\n lV4j.append(Q_l5)\n if lV4j:\n G9jH.debug(f'{PCpl.sim_time():.1f}: dropping the following e2e pairs: {lV4j}')\n for Q_l5 in lV4j:\n ... | [
"0.6270697",
"0.5933251",
"0.5809955",
"0.5799788",
"0.5769331",
"0.5709706",
"0.5698822",
"0.5694742",
"0.5653403",
"0.56445885",
"0.5618334",
"0.5594972",
"0.55879384",
"0.5579539",
"0.557584",
"0.55646986",
"0.5559846",
"0.5557493",
"0.55510515",
"0.5545966",
"0.55452967",... | 0.8152493 | 0 |
Divide a list into nsized chunks. | def yOAJ(vC9B, exwG):
exwG = max(1, exwG)
for YRbF in range(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(bCES, mTYt):\n dixj = []\n for YRbF in range(0, len(bCES), mTYt):\n dixj.append(bCES[YRbF:YRbF + mTYt])\n return dixj",
"def kzv7(ybN4, exwG):\n return list(eHxA(ybN4, exwG))",
"def mrOG(qgK3, exwG):\n for YRbF in range(0, len(qgK3), exwG):\n yield qgK3[YRbF:YRbF + exwG]",... | [
"0.77774394",
"0.77699924",
"0.77194595",
"0.76097494",
"0.76062864",
"0.75751835",
"0.75443333",
"0.7524065",
"0.7496021",
"0.74940354",
"0.74711615",
"0.7464104",
"0.745628",
"0.744737",
"0.7442343",
"0.7433384",
"0.74322027",
"0.7430029",
"0.7419071",
"0.73926187",
"0.7387... | 0.0 | -1 |
Tests that a nondict default_payload is rejected. | def NBHL(YKHO) -> None:
d9dQ = YKHO.get_test_pushkin('com.example.gcm')
d9dQ.preload_with_response(200, {'results': [{'message_id': 'msg42', 'registration_id': 'badpayload'}]})
_hkX = YKHO._request(YKHO._make_dummy_notification([Ngz1]))
YKHO.assertEqual(_hkX, {'rejected': ['badpayload']})
YKHO.asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufx0():\n assert EOtS('val', None).unwrap() == 'val'",
"def _Vt_(YKHO):\n _hkX = YKHO.app.post('/with_default_shadow/1?b=string')\n assert '\"int\": 1' in _hkX, _hkX",
"def N9KQ(YKHO):\n dnR_ = YKHO.session.sid\n pB3N = None\n YKHO.assertRaisesRegexp(DQrD, 'Invalid payload format!', uC3Z,... | [
"0.66580784",
"0.6607199",
"0.6369897",
"0.6348799",
"0.62710994",
"0.6262348",
"0.62147564",
"0.621127",
"0.6210759",
"0.6197646",
"0.6127341",
"0.61041033",
"0.60675013",
"0.60228324",
"0.59833986",
"0.5970421",
"0.5949984",
"0.5928544",
"0.59222454",
"0.59161544",
"0.59145... | 0.74665064 | 0 |
Tests that multiple GCM devices have their notification delivered to GCM together, instead of being delivered separately, and that if only one device ID is rejected, then only that device is reported to the homeserver as rejected. | def OZ8A(YKHO) -> None:
d9dQ = YKHO.get_test_pushkin('com.example.gcm')
d9dQ.preload_with_response(200, {'results': [{'registration_id': 'spqr', 'message_id': 'msg42'}, {'registration_id': 'spqr2', 'error': 'NotRegistered'}]})
_hkX = YKHO._request(YKHO._make_dummy_notification([qIdx, GCi1]))
YKHO.assert... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NUfs(YKHO) -> None:\n d9dQ = YKHO.get_test_pushkin('com.example.gcm')\n d9dQ.preload_with_response(200, {'results': [{'registration_id': 'spqr', 'message_id': 'msg42'}, {'registration_id': 'spqr2', 'message_id': 'msg42'}]})\n _hkX = YKHO._request(YKHO._make_dummy_notification([qIdx, GCi1]))\n YKHO.... | [
"0.7243243",
"0.5933409",
"0.59153354",
"0.5895278",
"0.5813445",
"0.5808283",
"0.57928884",
"0.5739999",
"0.57238084",
"0.5610451",
"0.5586057",
"0.5582319",
"0.55783325",
"0.5501248",
"0.5492343",
"0.5467139",
"0.5464168",
"0.54606724",
"0.5430011",
"0.541654",
"0.5414132",... | 0.75049037 | 0 |
Return the latent normal sample z ~ N(mu, sigma^2) | def dEVc(YKHO, T4kS):
yGTL = YKHO._enc_mu(T4kS)
SgQ6 = YKHO._enc_log_sigma(T4kS)
WTkW = ht2j.exp(SgQ6)
USbC = ht2j.from_numpy(oyIN.random.normal(0, 1, size=WTkW.size())).float()
YKHO.z_mean = yGTL
YKHO.z_sigma = WTkW
return yGTL + WTkW * iQnE(USbC, requires_grad=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (YKHO.latent_cont_dim,))",
"def d39J(YKHO, qIxc):\n y906, bKZA = qIxc\n return uXlY(y906, bKZA, (YKHO.batch_size, YKHO.latent_cont_dim))",
"def LY0K(YKHO, g5a_: tf.Tensor, Prd3: tf.Tensor, zNig: int=None):\n if zNig:\n Ep... | [
"0.76218265",
"0.75393003",
"0.7270335",
"0.7067709",
"0.7062785",
"0.7002177",
"0.69815904",
"0.6975475",
"0.696606",
"0.68844837",
"0.68406487",
"0.6766654",
"0.6763923",
"0.67573327",
"0.6734824",
"0.6724789",
"0.6714272",
"0.6714272",
"0.6714272",
"0.6701038",
"0.6700269"... | 0.0 | -1 |
Returns the drop off type. | def kbYI(YKHO):
return YKHO.DROP_OFF_REQUEST_COURIER if YKHO.request_pickup else YKHO.DROP_OFF_REGULAR_PICKUP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W_rO(IXKo):\n return IXKo.split('_')[0]",
"def XqP7(YKHO):\n return YKHO.__drop",
"def XqP7(YKHO):\n return YKHO.__drop",
"def XqP7(YKHO):\n return YKHO.__drop",
"def XqP7(YKHO):\n return YKHO.__drop",
"def XqP7(YKHO):\n return YKHO.__drop",
"def XqP7(YKHO):\n return YKHO.__dro... | [
"0.71879125",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6791414",
"0.6619878",
"0.6408491",
... | 0.76980525 | 0 |
Update a cart's billing info given the IPN data `data`. | def nwl0(xryH, nPrm):
xryH.bill_email = xryH.bill_email or nPrm.get('payer_email', '')
xryH.ship_email = xryH.ship_email or xryH.bill_email
xryH.bill_first_name = xryH.bill_first_name or nPrm.get('first_name', '')
xryH.ship_first_name = xryH.ship_first_name or xryH.bill_first_name
xryH.bill_last_nam... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZLyL(YKHO, QePW, jMd6=None):\n GPtr = YKHO.GetMethodConfig('UpdateBillingInfo')\n return YKHO._RunMethod(GPtr, QePW, global_params=jMd6)",
"def QdZT(YKHO, Lx3t, Sgcx):\n Mc9N = str(Lx3t)\n if Mc9N in YKHO.cart:\n YKHO.cart[Mc9N]['qty'] = Sgcx\n YKHO.save()",
"def s49T(YKHO):\n YKHO... | [
"0.6159188",
"0.5868402",
"0.5815195",
"0.5805623",
"0.5790655",
"0.5769908",
"0.5761822",
"0.5654443",
"0.546173",
"0.5461307",
"0.5435819",
"0.5435819",
"0.53843063",
"0.53843063",
"0.5369522",
"0.53540003",
"0.5345826",
"0.5296734",
"0.5281785",
"0.5258044",
"0.52549595",
... | 0.75170743 | 0 |
Return whether WordLadderPuzzle self is equivalent to other. | def xa14(YKHO, Elif):
return type(Elif) == type(YKHO) and YKHO._from_word == Elif._from_word and (YKHO._to_word == Elif._to_word) and (YKHO._word_set == Elif._word_set) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return type(YKHO) == type(Elif) and YKHO._from_word == Elif._from_word and (YKHO._to_word == Elif._to_word) and (YKHO._word_set == Elif._word_set)",
"def xa14(YKHO, Elif):\n return YKHO.word == Elif.word",
"def xa14(YKHO, Elif):\n if isinstance(Elif, YKHO.__class__):\n r... | [
"0.71852016",
"0.70667565",
"0.7027813",
"0.7019088",
"0.7011254",
"0.6976579",
"0.68481404",
"0.6841339",
"0.6741915",
"0.6737107",
"0.6730847",
"0.6633386",
"0.66039973",
"0.6602048",
"0.6584101",
"0.65686536",
"0.6559304",
"0.6549489",
"0.6543312",
"0.6497358",
"0.6497104"... | 0.72261286 | 0 |
Load pretrained model with help cv2 | def Y7RH(I710, _mSQ, GPtr):
Zxma = XC5k.dnn.readNet(I710 + _mSQ, I710 + GPtr)
fKMN = Zxma.getLayerNames()
cUDr = [fKMN[YRbF[0] - 1] for YRbF in Zxma.getUnconnectedOutLayers()]
return (Zxma, cUDr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DTnm():\n return l90I.text.Pipeline.from_pretrained('../models/temis_model.tar.gz')",
"def DZeY():\n C3ST = YrZb()\n C3ST = x2M3(C3ST)\n return C3ST",
"def IMdJ():\n return uyMl(bNss)",
"def uyMl():\n pass",
"def uyMl():\n pass",
"def O5RJ(YKHO) -> None:\n YKHO.model = ADDA(en... | [
"0.7465436",
"0.73697776",
"0.73505443",
"0.7306192",
"0.7306192",
"0.72137165",
"0.72108084",
"0.7194613",
"0.7191763",
"0.71555454",
"0.71459854",
"0.7078083",
"0.70307916",
"0.70267284",
"0.70102996",
"0.70087826",
"0.7001449",
"0.6995963",
"0.6995706",
"0.69934624",
"0.69... | 0.7576785 | 0 |
Pads the data using a model of the edge pixels. | def hVLt(YKHO, sEW_, XElQ):
usx6, WfCS, bGrB = YKHO._data.shape
H5Km = YKHO._compute_padding(sEW_, XElQ)
qw7D = YKHO._data
if usx6 > sEW_:
tlxW = (usx6 - sEW_) // 2
es2x = tlxW + sEW_
qw7D = qw7D[tlxW:es2x, :]
usx6 = sEW_
if WfCS > XElQ:
LFlW = (WfCS - XElQ) /... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AeBf(YKHO, Jw7X, eUWA, Tuqy='edge'):\n YKHO._array = oyIN.pad(YKHO.load().array(), ((eUWA, eUWA), (Jw7X, Jw7X), (0, 0)) if YKHO.load().array().ndim == 3 else ((eUWA, eUWA), (Jw7X, Jw7X)), mode=Tuqy)\n return YKHO",
"def AeBf(YKHO, Jw7X, eUWA, Tuqy='edge'):\n YKHO._array = oyIN.pad(YKHO.load().array(... | [
"0.62737364",
"0.62737364",
"0.59492195",
"0.5914941",
"0.5873263",
"0.58512735",
"0.5835968",
"0.5766923",
"0.5710185",
"0.56820154",
"0.56651664",
"0.5623169",
"0.56205344",
"0.5612094",
"0.56075",
"0.5603767",
"0.5600349",
"0.5596807",
"0.5550535",
"0.552429",
"0.5523404",... | 0.520316 | 45 |
close the database connection after request is done | def mTtn(DPiw):
ouvA.remove() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ssTe(YKHO):\n tiX4().close()",
"def YzkT(YKHO):\n YKHO.conn.close()",
"def ssTe():\n tiX4().close()",
"def rYe1(geh0):\n Oa1e.db.close()\n return geh0",
"def yZlT():\n global conn\n if w2B8:\n w2B8.close()",
"def DDI8(YKHO):\n YKHO.conn.close()\n YKHO.logger.debug('d... | [
"0.8001968",
"0.79391694",
"0.79159796",
"0.7867563",
"0.7848928",
"0.78028077",
"0.7795964",
"0.7766481",
"0.7761101",
"0.7761101",
"0.77567405",
"0.7753009",
"0.77440757",
"0.7723431",
"0.76935387",
"0.76935387",
"0.76935387",
"0.76935387",
"0.76935387",
"0.76935387",
"0.76... | 0.0 | -1 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
yh4W = None
if cmPJ.get('accessTimeBuckets') != None:
yh4W = list()
for g8x2 in cmPJ.get('accessTimeBuckets'):
yh4W.append(qRGs.models.nas_analysis_job_params_access_time_bucket.NasAnalysisJobParams_AccessTimeBucket.from_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78... | 0.0 | -1 |
Splits a string in PascalCase or MACRO_CASE into a list of lower case words | def l4Z4(vIwR):
if vIwR.isupper():
return [yzQ0.lower() for yzQ0 in vIwR.split('_')]
else:
njyT = ''.join((ZbWC.escape(yzQ0) + '|' for yzQ0 in cmPJ)) + '[a-z0-9]+|[A-Z][a-z0-9]*'
return [yzQ0 if yzQ0 in cmPJ else yzQ0.lower() for yzQ0 in ZbWC.findall(njyT, vIwR)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wWP1(vIwR):\n return [YRbF for YRbF in ZbWC.split('\\\\W+', vIwR.lower()) if YRbF]",
"def ojb0(KCHu):\n KCHu = q_1g(KCHu)\n KCHu = ZbWC.sub('[A-Z]', '-\\\\g<0>', KCHu, flags=ZbWC.UNICODE)\n KCHu = KCHu.replace('_', '-')\n V22M = Xbam(ZbWC.split('\\\\W+', KCHu, flags=ZbWC.UNICODE))\n return ... | [
"0.74818736",
"0.71145654",
"0.7013104",
"0.70129895",
"0.7010636",
"0.69818026",
"0.69715816",
"0.6960645",
"0.68868136",
"0.68791014",
"0.68369216",
"0.68321276",
"0.68321276",
"0.67500174",
"0.6742274",
"0.6728237",
"0.6702205",
"0.66735256",
"0.66677845",
"0.6655991",
"0.... | 0.7325911 | 1 |
Return the total number of cattle sold, from top of market report. | def FBTG(p52P):
hRRF = ZbWC.search('SOLD+?', str(p52P))
return bool(hRRF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XfKI():\n return so3_(_e0h.PDElements_Get_Totalcustomers())",
"def IuRe(YKHO):\n eQSh = YKHO.get_all_tot_stats()\n return eQSh[:3]",
"def pfKU():\n return so3_(_e0h.Lines_Get_TotalCust())",
"def DUZc(YKHO):\n return sum(YKHO.totals.itervalues())",
"def woGg(YKHO):\n hI0L = 0\n for ... | [
"0.6376454",
"0.63095856",
"0.62911546",
"0.6286093",
"0.62086695",
"0.6173456",
"0.6173209",
"0.6169129",
"0.6107929",
"0.6100744",
"0.6092374",
"0.6077903",
"0.60763",
"0.6073458",
"0.6050656",
"0.6034245",
"0.5995476",
"0.59802717",
"0.59747744",
"0.5967953",
"0.59676677",... | 0.0 | -1 |
make an HTTP OPTIONS Request and return the response | def xAU6(YKHO, bD7m, R7S5=None, m8z6={}, MOPg={}, QBs8=None):
return YKHO(url=bD7m, method='OPTIONS', query_string=R7S5, post=m8z6, headers=MOPg, assert_=QBs8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xAU6(YKHO, *qIxc, **B2fa):\n B2fa['method'] = V1Lg\n return YKHO.request(*qIxc, **B2fa)",
"def JK5s():\n if QePW.method == 'OPTIONS':\n _hkX = P4t4.make_default_options_response()\n MOPg = None\n if 'ACCESS_CONTROL_REQUEST_HEADERS' in QePW.headers:\n MOPg = QePW.heade... | [
"0.79727924",
"0.7499856",
"0.7449854",
"0.7416617",
"0.7388163",
"0.7339837",
"0.7339837",
"0.7197028",
"0.71601516",
"0.7097079",
"0.7036597",
"0.7033077",
"0.69483244",
"0.69221836",
"0.6833173",
"0.67796105",
"0.67262435",
"0.6715469",
"0.67091423",
"0.67016673",
"0.66975... | 0.69667643 | 12 |
Compute the focal loss between `logits` and the ground truth `labels`. Focal loss = alpha_t (1pt)^gamma log(pt) where pt is the probability of being classified to the true class. pt = p (if true class), otherwise pt = 1 p. p = sigmoid(logit). | def UYCc(Crrw, KeL5, Cwt5, KMvS):
UoqH = vuvg.binary_cross_entropy_with_logits(input=KeL5, target=Crrw, reduction='none')
if KMvS == 0.0:
hGOF = 1.0
else:
hGOF = ht2j.exp(-KMvS * Crrw * KeL5 - KMvS * ht2j.log(1 + ht2j.exp(-1.0 * KeL5)))
N77f = hGOF * UoqH
CDqf = Cwt5 * N77f
UYCc ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UYCc(Crrw, KeL5, Cwt5, KMvS):\n UoqH = vuvg.binary_cross_entropy_with_logits(input=KeL5, target=Crrw, reduction='none')\n if KMvS == 0.0:\n hGOF = 1.0\n else:\n hGOF = ht2j.exp(-KMvS * Crrw * KeL5 - KMvS * ht2j.log(1 + ht2j.exp(-1.0 * KeL5)))\n N77f = hGOF * UoqH\n CDqf = Cwt5 * N7... | [
"0.8366613",
"0.8306591",
"0.8101995",
"0.807328",
"0.80209017",
"0.79350436",
"0.7401664",
"0.708148",
"0.70534664",
"0.703282",
"0.702411",
"0.6986822",
"0.69785696",
"0.6968734",
"0.69245267",
"0.6906763",
"0.6854361",
"0.68404835",
"0.6823876",
"0.6807743",
"0.67722857",
... | 0.8377846 | 0 |
Compute the Class Balanced Loss between `logits` and the ground truth `labels`. | def eheA(Crrw, KeL5, XPRK, hoaX, NKL0, UqYS, KMvS):
xY_X = 1.0 - oyIN.power(UqYS, XPRK)
_mSQ = (1.0 - UqYS) / oyIN.array(xY_X)
_mSQ = _mSQ / oyIN.sum(_mSQ) * hoaX
xZkh = ht2j.zeros(Crrw.size(0), hoaX).scatter_(1, Crrw.unsqueeze(1), 1).float()
_mSQ = ht2j.tensor(_mSQ).float()
_mSQ = _mSQ.unsqueez... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N77f(YKHO, KeL5, Crrw):\n N77f = ZylS.nn.softmax_cross_entropy_with_logits(KeL5, Crrw)\n return N77f",
"def kizm(KeL5: torch.Tensor, Crrw: torch.Tensor) -> ht2j.Tensor:\n N77f = vuvg.cross_entropy(KeL5, Crrw, reduction='mean')\n return N77f",
"def sIxh(YKHO, KeL5, Crrw):\n raise NotImplement... | [
"0.73585",
"0.7303453",
"0.7243234",
"0.7192753",
"0.71311533",
"0.7109106",
"0.70961934",
"0.70751745",
"0.7072413",
"0.7051238",
"0.6994994",
"0.6982296",
"0.69638026",
"0.69198275",
"0.6893301",
"0.688448",
"0.6883586",
"0.6882429",
"0.6875114",
"0.6870975",
"0.6868281",
... | 0.66890645 | 52 |
Root page view. This is essentially a singlepage app, if you ignore the login and admin parts. | def d6pt(QePW):
DFSo = uHxD.objects.order_by('title')
return _1tc(QePW, 'index.html', {'rooms': DFSo}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tk5Y():\n CBIr = TKWP()\n return TvZl('index.html', homepage=True, user=CBIr)",
"def _fof(QePW):\n return _1tc(QePW, template_name='website/index.html')",
"def Ev1b():\n bo34.info('At main app page.')\n return TvZl('index.html')",
"def tk5Y():\n return TvZl('home.html')",
"def kZiy(Qe... | [
"0.8159167",
"0.77034414",
"0.76192695",
"0.75432706",
"0.7493273",
"0.73544943",
"0.73139757",
"0.72975314",
"0.7297115",
"0.7257858",
"0.72556525",
"0.72344065",
"0.72311056",
"0.7201755",
"0.71565604",
"0.7153299",
"0.7130107",
"0.71215624",
"0.71186316",
"0.70989776",
"0.... | 0.0 | -1 |
Generates a gender. If the gender is female, the gender will be True | def helm():
cCR1 = tuKI.random()
if cCR1 <= 0.50581395348:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t5dp(YKHO):\n emIq = ['m', 'f']\n EE3v = tuKI.choice(emIq)\n YKHO.gender = EE3v[0]\n return YKHO.gender",
"def KKmm(YKHO):\n return int(YKHO.gender_code) % 2 != 0",
"def ZfO2(YKHO):\n return tuKI.choice(['M', 'F'])",
"def RKMB(YKHO):\n return int(YKHO.gender_code) % 2 == 0",
"def x... | [
"0.7675214",
"0.7579064",
"0.7552958",
"0.73791367",
"0.7371657",
"0.7329189",
"0.7288439",
"0.7241747",
"0.7217848",
"0.7082717",
"0.6945159",
"0.69275755",
"0.69264144",
"0.69097227",
"0.6858146",
"0.6851612",
"0.68459725",
"0.68143374",
"0.6798771",
"0.6774087",
"0.6770531... | 0.7700733 | 0 |
If there are parameters in the request, returns the uri without the parameters part. If no parameters are present, the whole uri will be returned. | def fAfc(YKHO):
avwJ = YKHO._uri.find(cSJy)
return YKHO._uri if avwJ == -1 else YKHO._uri[:avwJ] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yoae(YKHO):\n j8eK = YKHO.path or '/'\n if YKHO.query is not None:\n j8eK += '?' + YKHO.query\n return j8eK",
"def yoae(YKHO):\n j8eK = YKHO.path or '/'\n if YKHO.query is not None:\n j8eK += '?' + YKHO.query\n return j8eK",
"def ip2O(QePW):\n j8eK = QePW.base_url\n if... | [
"0.7444698",
"0.7444698",
"0.7270176",
"0.7082379",
"0.6721377",
"0.6576096",
"0.64643294",
"0.6192215",
"0.61435425",
"0.61213285",
"0.6115208",
"0.61114454",
"0.6103954",
"0.6097609",
"0.6028426",
"0.6028426",
"0.6005182",
"0.5930617",
"0.59172195",
"0.59071666",
"0.5855298... | 0.79443276 | 0 |
get identical column names | def hLpG(_lYe, qaAi):
return list(set(_lYe.columns) & set(qaAi.columns)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CSa0(Emd4):\n return set(Emd4.__table__.c.keys())",
"def vBje(upba, GTA_='EVENTS'):\n ZYo6 = [nVrR[GTA_].columns for nVrR in upba]\n d7pR = ywwl.argmin([len(fvDH) for fvDH in ZYo6])\n return (ZYo6[d7pR], upba[d7pR][GTA_].header)\n '\\n selector = {}\\n for col in all_cols:\\n for n in... | [
"0.71763474",
"0.66049916",
"0.65780234",
"0.64148474",
"0.63624114",
"0.63508636",
"0.6350192",
"0.63472456",
"0.63468385",
"0.6346705",
"0.6334927",
"0.6248004",
"0.62401783",
"0.62397325",
"0.62391734",
"0.6238633",
"0.62310904",
"0.621176",
"0.6197255",
"0.61970747",
"0.6... | 0.59607303 | 52 |
Get CatType categories for saving these in COCO format annotations. | def fjZT(GPtr: Config) -> x1iM[ukLG]:
LeZt = KD9_(GPtr.categories)
Aofo = [ukLG(id=YRbF + 1, name=Ghho.name) for YRbF, Ghho in enumerate(LeZt)]
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LeZt(YKHO):\n return QcoP(YKHO.type.get('categories').values())",
"def ME1q(YKHO):\n o9av = YKHO.context.font\n DUii, gitN, e5J2, Icli, AdfU = (set(), set(), set(), set(), set())\n EVFO = o9av.lib.get(LYbx, {})\n for tLb6, Ghho in EVFO.items():\n if Ghho == 'unassigned':\n DU... | [
"0.7625139",
"0.70528996",
"0.7016104",
"0.68512094",
"0.6787996",
"0.6769939",
"0.67538553",
"0.67444277",
"0.6739205",
"0.6716241",
"0.66895026",
"0.6669509",
"0.6654428",
"0.66419834",
"0.6626476",
"0.661789",
"0.66145873",
"0.65887016",
"0.658182",
"0.6573356",
"0.6561577... | 0.74057794 | 1 |
Convert mask into Box2D. | def bnIY(ZHfW: NDArrayU8) -> N3N4:
hWXU = oyIN.nonzero(oyIN.sum(ZHfW, axis=0))[0]
H_gl = oyIN.nonzero(oyIN.sum(ZHfW, axis=1))[0]
o4D3, ajwV = (int(oyIN.min(hWXU)), int(oyIN.max(hWXU)))
si3g, skBL = (int(oyIN.min(H_gl)), int(oyIN.max(H_gl)))
JVlD = N3N4(x1=o4D3, y1=si3g, x2=ajwV, y2=skBL)
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NbEP(YKHO) -> None:\n ZHfW: vfmd = oyIN.zeros((10, 10), dtype=oyIN.uint8)\n ZHfW[4:6, 2:8] = 1\n ZHfW[2:8, 4:6] = 1\n JVlD = bnIY(ZHfW)\n W1uz = N3N4(x1=2, x2=7, y1=2, y2=7)\n YKHO.assertEqual(JVlD, W1uz)",
"def MkGd(ZHfW, dsE5=True):\n ZHfW = ZHfW.copy()\n if len(ZHfW.shape) == 2:\n ... | [
"0.8074731",
"0.6951309",
"0.6829631",
"0.66820157",
"0.6667339",
"0.66628647",
"0.66376674",
"0.6636483",
"0.6636483",
"0.6636483",
"0.6636483",
"0.6636483",
"0.6636483",
"0.6636483",
"0.66268575",
"0.6610473",
"0.6605973",
"0.6605681",
"0.6572616",
"0.65302104",
"0.6454778"... | 0.8288775 | 0 |
Convert Scalabel Poly2Ds into COCO polygons. | def Ke7S(GqSo: List[Poly2D]) -> GRQc:
j5tF: GRQc = []
for A04U in GqSo:
iXlf = A04U.vertices
_g9D = [Ty9i for SLBp in iXlf for Ty9i in SLBp]
j5tF.append(_g9D)
return j5tF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vo99(ROpF: List[ImageSize], XgyP: List[AnnType], GqSo: List[List[Poly2D]], jc_i: int=vAiW, j5tF: bool=False) -> x1iM[qfP5]:\n with IIs7(jc_i) as dBuj:\n XgyP = dBuj.starmap(JcSP, PRqg(zip(XgyP, GqSo, ROpF, [j5tF] * len(XgyP)), total=len(XgyP)))\n sorted(XgyP, key=lambda uFSR: uFSR['id'])\n retu... | [
"0.697758",
"0.67190343",
"0.66285807",
"0.6492251",
"0.62445724",
"0.6160833",
"0.6089491",
"0.60666275",
"0.5989869",
"0.5974064",
"0.59702814",
"0.5963014",
"0.5961853",
"0.589047",
"0.58464354",
"0.58460623",
"0.5829999",
"0.58177936",
"0.57826966",
"0.5782159",
"0.577104... | 0.67017454 | 2 |
Converting RLE to Box2D. | def e89E(LnOm: RLE) -> N3N4:
cviu = tSbM.toBbox(LnOm.dict()).tolist()
return WY1D(cviu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ggZp(YKHO) -> None:\n wM3v = qwcg('scalabel_ins_seg.json')\n VIPT = tyeH(wM3v).frames\n for f4IJ in VIPT:\n if f4IJ.labels is None:\n continue\n for UXqs in f4IJ.labels:\n if UXqs.rle is None:\n continue\n JVlD = e89E(UXqs.rle)\n ... | [
"0.64386773",
"0.6259257",
"0.62030715",
"0.6092222",
"0.6068358",
"0.6053709",
"0.60513544",
"0.6037396",
"0.59854907",
"0.59383434",
"0.59105843",
"0.5883229",
"0.5818534",
"0.58147615",
"0.57820314",
"0.5767677",
"0.5685467",
"0.5663539",
"0.56561285",
"0.56401825",
"0.561... | 0.77150965 | 0 |
Converting COCO keypoints to list of Nodes. | def znyH(xXQH: List[float], zSv7: Optional[List[str]]=None) -> x1iM[o7DN]:
assert len(xXQH) % 3 == 0
if zSv7 is None:
zSv7 = ['coco_kpt'] * (len(xXQH) // 3)
return [o7DN(location=(xXQH[YRbF], xXQH[YRbF + 1]), category=zSv7[YRbF // 3], id=C6M2(size=16), score=xXQH[YRbF + 2]) for YRbF in range(0, len(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cyj4(YKHO) -> None:\n BR8K = []\n for YRbF in range(14):\n BR8K.extend([YRbF, YRbF + 50, YRbF / 42.0])\n Ziit = znyH(BR8K)\n YKHO.assertEqual(len(Ziit), 14)\n for YRbF, Q6kx in enumerate(Ziit):\n YKHO.assertEqual(len(Q6kx.id), 16)\n YKHO.assertEqual(Q6kx.category, 'coco_kpt'... | [
"0.7235207",
"0.63036346",
"0.617622",
"0.61424",
"0.60207886",
"0.6015919",
"0.59473085",
"0.5881478",
"0.58679944",
"0.586266",
"0.5797882",
"0.57917506",
"0.57854",
"0.5779129",
"0.5758154",
"0.5757024",
"0.5753274",
"0.5752419",
"0.57455206",
"0.57429856",
"0.5725893",
... | 0.75748897 | 0 |
Return the collection of Tile objects as a GeoJSON feature collection. | def JZc4(PttE, b1tc, ucxv=None):
eK5b = (Fw8z.box(*b1tc.bbox(eL5z)) for eL5z in PttE)
eK5b = (Fw8z.mapping(FlUN) for FlUN in eK5b)
eK5b = (wFOJ.Feature(geometry=J8oL) for J8oL in eK5b)
return wFOJ.dumps(wFOJ.FeatureCollection(features=[eHNT for eHNT in eK5b], crs=ucxv)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def umRH(YKHO):\n qLIY = qRoE([V_n5(geometry=PvyL(GovK['latlng'])) for GovK in YKHO.sort(YKHO.result)])\n return qLIY",
"def wFOJ(YKHO, ucxv=xvQU, usx6=None, WfCS=None, py_F=False, SDvY=False):\n q_5Q = usx6 or YKHO.rows\n uTjy = WfCS or YKHO.cols\n BdFJ = Hs6x.product(q_5Q, uTjy)\n bySB = []\n... | [
"0.7584926",
"0.7168358",
"0.7095985",
"0.6824161",
"0.6823129",
"0.6773497",
"0.67336637",
"0.6705562",
"0.6697478",
"0.66489094",
"0.65529335",
"0.6412869",
"0.6370828",
"0.63656497",
"0.6339917",
"0.6330881",
"0.6320275",
"0.6319113",
"0.6316932",
"0.6276571",
"0.6256427",... | 0.72097 | 1 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(QNwQ, YKHO).__init__(*qIxc, **c_sp)
if YKHO.header is None:
YKHO.header = kKAJ.msg.Header()
if YKHO.people is None:
YKHO.people = []
else:
YKHO.header = kKAJ.msg.Header()
YKHO.people = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=''):\n YKH... | [
"0.8165213",
"0.77197707",
"0.77197707",
"0.7652202",
"0.7544022",
"0.7484976",
"0.7471328",
"0.7458079",
"0.7445732",
"0.74455976",
"0.7433956",
"0.741542",
"0.7408282",
"0.739147",
"0.737536",
"0.73631966",
"0.732547",
"0.73231727",
"0.73231727",
"0.73231727",
"0.73231727",... | 0.7573333 | 4 |
Return true if the path exists. | def vtfo(YKHO, VqRE):
ytgA = GkAb(YKHO.prefix + YKHO.separator + VqRE.lstrip('/'))
return ytgA.exists() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _35x(YKHO) -> bool:\n return Hy7s.path.exists(YKHO.pathname)",
"def vtfo(pmON):\n return bool",
"def vtfo(YKHO, pmON: str) -> bool:\n pass",
"def ETLN(YKHO):\n return Hy7s.path.exists(YKHO.getPath())",
"def vtfo(YKHO, pmON):\n return False",
"def _35x(pmON):\n if not pmON:\n ... | [
"0.902664",
"0.89827216",
"0.88730067",
"0.8850038",
"0.8799315",
"0.87196225",
"0.86424863",
"0.86157006",
"0.85754174",
"0.8570667",
"0.8546564",
"0.85426843",
"0.85354334",
"0.85244566",
"0.85244566",
"0.8516569",
"0.8512246",
"0.84645087",
"0.8457425",
"0.8410283",
"0.840... | 0.79613584 | 66 |
Return true if the path exists. | def vtfo(YKHO, pmON):
return bool(YKHO.filesize(pmON)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _35x(YKHO) -> bool:\n return Hy7s.path.exists(YKHO.pathname)",
"def vtfo(pmON):\n return bool",
"def vtfo(YKHO, pmON: str) -> bool:\n pass",
"def ETLN(YKHO):\n return Hy7s.path.exists(YKHO.getPath())",
"def vtfo(YKHO, pmON):\n return False",
"def _35x(pmON):\n if not pmON:\n ... | [
"0.902664",
"0.89827216",
"0.88730067",
"0.8850038",
"0.8799315",
"0.87196225",
"0.86424863",
"0.86157006",
"0.85754174",
"0.8570667",
"0.8546564",
"0.85426843",
"0.85354334",
"0.85244566",
"0.85244566",
"0.8516569",
"0.8512246",
"0.84645087",
"0.8457425",
"0.8410283",
"0.840... | 0.0 | -1 |
Split data into training and testing. | def Qb89(EcVT, LVAh, ugUs=0.2):
lpha = EcVT.shape[0] * ugUs
Z5wO = EcVT[:lpha, :, :, :]
H96n = LVAh[:lpha, :]
Lcqa = EcVT[lpha:, :, :, :]
VJv0 = LVAh[lpha:, :]
return (Lcqa, VJv0, Z5wO, H96n) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qb89(nPrm, jcFe):\n IMeE = int(jcFe * len(nPrm))\n b2G5 = len(nPrm) - IMeE\n EvQg = nPrm.head(IMeE)\n QOe9 = nPrm.tail(b2G5)\n return (EvQg, QOe9)",
"def hhTY(YKHO):\n EvQg = []\n QOe9 = []\n for ZfUD in YKHO.data:\n if ZfUD[0] == 'train':\n EvQg.append(ZfUD)\n ... | [
"0.83493423",
"0.8284765",
"0.8239031",
"0.82379764",
"0.8224969",
"0.81304526",
"0.8041162",
"0.8037863",
"0.8036809",
"0.8029045",
"0.8025916",
"0.8015267",
"0.7999982",
"0.79558736",
"0.7942657",
"0.793403",
"0.79314303",
"0.7921484",
"0.7920422",
"0.7899527",
"0.7894038",... | 0.0 | -1 |
Split a dataframe into several flights. The rule to determine | def vpYb(jQ3Z):
yk4i = jQ3Z['time'].diff() >= 3600
d6pt = yk4i[yk4i == True].index
dc7I = []
cntZ = 0
for YRbF in d6pt:
dc7I.append(jQ3Z.iloc[cntZ:YRbF].reset_index())
cntZ = YRbF
dc7I.append(jQ3Z.iloc[cntZ:])
return dc7I | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fyl2(AUar):\n WhA7 = AUar.loc[AUar.type == 'drop-off / pick-up']\n u9zL = rLdf.DataFrame()\n for YRbF in range(WhA7.shape[0]):\n rdlD = WhA7.iloc[YRbF].copy()\n rdlD.type = 'drop-off'\n u9zL = u9zL.append(rdlD)\n rdlD.type = 'pick-up'\n u9zL = u9zL.append(rdlD)\n ... | [
"0.64764833",
"0.6288094",
"0.6241559",
"0.61937237",
"0.61089396",
"0.609964",
"0.5892497",
"0.58657956",
"0.58585364",
"0.58258843",
"0.5791825",
"0.5724106",
"0.57192236",
"0.5691315",
"0.56811",
"0.56677294",
"0.5658041",
"0.5647058",
"0.5629904",
"0.56266046",
"0.5611095... | 0.7535613 | 0 |
Collates a batch containing a list of input tensors as dictionary | def P9x1(Wc9F):
fdNR = {'source': Wc9F[0], 'target': Wc9F[1], 'source_neighborhood': Wc9F[2], 'target_neighborhood': Wc9F[3], 'source_mask': Wc9F[4], 'target_mask': Wc9F[5]}
if len(Wc9F) > 6:
fdNR['negative'] = Wc9F[6]
fdNR['negative_neighborhood'] = Wc9F[7]
fdNR['negative_mask'] = Wc9F[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uDGa(Wc9F):\n yBDm = {}\n for H5ew in Wc9F[0].keys():\n yBDm[H5ew] = []\n for bTKY in Wc9F:\n for H5ew in bTKY.keys():\n yBDm[H5ew].append(bTKY[H5ew])\n for H5ew in yBDm.keys():\n ZfUD = ht2j.stack(yBDm[H5ew])\n if len(ZfUD.shape) == 3:\n ZfUD = ZfU... | [
"0.7626607",
"0.7243464",
"0.7228527",
"0.72003716",
"0.7200293",
"0.71725565",
"0.7163512",
"0.71208334",
"0.70700854",
"0.70046026",
"0.69913805",
"0.69098395",
"0.687338",
"0.6870393",
"0.67917013",
"0.67584836",
"0.67515975",
"0.67385364",
"0.6719054",
"0.6719054",
"0.671... | 0.64365077 | 42 |
Conditionally expands a numpy array along a given dim (axis) | def h7FL(ezWE, tpio, Q3Ge):
if Q3Ge:
return oyIN.expand_dims(ezWE, tpio)
return ezWE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wmvz(ezWE: array_like, jDK_: int) -> KvM0:\n return oyIN.expand_dims(ezWE, axis=jDK_)",
"def tNug(WKvO, jDK_):\n for aNZO in jDK_:\n WKvO = wmvz(WKvO, aNZO)\n return WKvO",
"def xTm1(ezWE, qC1Y):\n ezWE = _vxO(ezWE, h_4H(qC1Y, 2))\n if qC1Y > 2:\n ezWE = _vxO(ezWE, qC1Y, axis=-... | [
"0.7246326",
"0.7142783",
"0.6987719",
"0.6800133",
"0.6709508",
"0.670451",
"0.6679722",
"0.66175425",
"0.65619665",
"0.6510453",
"0.64861375",
"0.64821017",
"0.64762485",
"0.645542",
"0.64534634",
"0.63949496",
"0.6393878",
"0.63405514",
"0.6230573",
"0.6223788",
"0.6125704... | 0.81000537 | 0 |
Gets the object_type of this SnmpUser. The concrete type of this complex type. The ObjectType property must be set explicitly by API clients when the type is ambiguous. In all other cases, the ObjectType is optional. The type is ambiguous when a managed object contains an array of nested documents, and the documents in... | def vcaS(YKHO):
return YKHO._object_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vcaS(YKHO) -> qe4Y.Input[uLKX[str, 'ObjectType']]:\n return qe4Y.get(YKHO, 'object_type')",
"def vcaS(YKHO):\n return YKHO.__object_type",
"def vcaS(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_type')",
"def vcaS(YKHO):\n return my9x.ObjectType.USER",
"def vcaS(YKHO):\n return None",
... | [
"0.7385078",
"0.7043169",
"0.6991126",
"0.6396345",
"0.628348",
"0.62342787",
"0.61997753",
"0.61710536",
"0.6130461",
"0.61009574",
"0.6046237",
"0.60329974",
"0.58830357",
"0.58824354",
"0.58348775",
"0.5735068",
"0.5710874",
"0.5691553",
"0.56582946",
"0.5624464",
"0.55792... | 0.71297354 | 1 |
Gets the is_auth_password_set of this SnmpUser. Indicates whether the value of the 'authPassword' property has been set. | def m9BR(YKHO):
return YKHO._is_auth_password_set | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m9BR(YKHO, m9BR):\n YKHO._is_auth_password_set = m9BR",
"def WFo7(YKHO):\n return YKHO.properties.get('hasPassword', None)",
"def O0v5(YKHO):\n return YKHO.__has_password",
"def jTXt(YKHO):\n if YKHO._getValue('password').lower() == 'true':\n return True\n else:\n return Fals... | [
"0.80443347",
"0.75389516",
"0.7505304",
"0.69802994",
"0.6916501",
"0.6700356",
"0.67000103",
"0.66353965",
"0.6609603",
"0.66015583",
"0.6598652",
"0.653112",
"0.645216",
"0.64371973",
"0.64070094",
"0.6378715",
"0.6378715",
"0.6374062",
"0.63670266",
"0.6366853",
"0.632270... | 0.8819567 | 0 |
Gets the auth_password of this SnmpUser. Authorization password for the user. | def gz4m(YKHO):
return YKHO._auth_password | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AuKh(YKHO):\n return YKHO.decoded_password",
"def AuKh(YKHO):\n return YKHO.password",
"def AuKh(YKHO):\n return YKHO.__password",
"def QVq7(YKHO):\n return YKHO._password",
"def QVq7(YKHO):\n return YKHO._password",
"def QVq7(YKHO):\n return YKHO._password",
"def AFDB(YKHO):\n ... | [
"0.7864636",
"0.7825279",
"0.7809869",
"0.76830935",
"0.76830935",
"0.76830935",
"0.76501256",
"0.7594725",
"0.75495696",
"0.75126445",
"0.74996215",
"0.7448102",
"0.74121124",
"0.7395647",
"0.7345437",
"0.7339406",
"0.7339406",
"0.7339406",
"0.7339406",
"0.7339406",
"0.73394... | 0.8521171 | 0 |
Sets the auth_password of this SnmpUser. Authorization password for the user. | def gz4m(YKHO, gz4m):
YKHO._auth_password = gz4m | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt",
"def G3s8(YKHO, jTXt):\n YKHO.user.set_password(jTXt)\n YKHO.user.save()",
"def G3s8(YKHO, Ud05):\n super(mv1M, YKHO).set_password(Ud05)",
"def G3s8(YKHO, jTXt):\n YKHO.__password = vT87(jTXt)",
"def G3s8(YKHO, jTXt):\n YKHO.values['password... | [
"0.7154058",
"0.7117166",
"0.7089797",
"0.70681787",
"0.7044691",
"0.70419496",
"0.70419496",
"0.70317954",
"0.7020107",
"0.7013972",
"0.69888234",
"0.69888234",
"0.69819975",
"0.69819975",
"0.69819975",
"0.69819975",
"0.69819975",
"0.69819975",
"0.69819975",
"0.69819975",
"0... | 0.84780663 | 0 |
Gets the auth_type of this SnmpUser. Authorization protocol for authenticating the user. | def zkAN(YKHO):
return YKHO._auth_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zkAN(YKHO) -> str:\n return qe4Y.get(YKHO, 'auth_type')",
"def zkAN(YKHO) -> str:\n return qe4Y.get(YKHO, 'auth_type')",
"def zkAN(YKHO) -> str:\n return qe4Y.get(YKHO, 'auth_type')",
"def zkAN(YKHO) -> str:\n return qe4Y.get(YKHO, 'auth_type')",
"def zkAN(YKHO) -> str:\n return qe4Y.get... | [
"0.80880564",
"0.80880564",
"0.80880564",
"0.80880564",
"0.80880564",
"0.80880564",
"0.80880564",
"0.80880564",
"0.78416294",
"0.78416294",
"0.7793881",
"0.7728103",
"0.72230387",
"0.7178474",
"0.7178474",
"0.7178474",
"0.71738887",
"0.7132405",
"0.7132405",
"0.7132405",
"0.7... | 0.8460422 | 0 |
Sets the auth_type of this SnmpUser. Authorization protocol for authenticating the user. | def zkAN(YKHO, zkAN):
BbPm = ['NA', 'MD5', 'SHA']
if zkAN not in BbPm:
raise ValueError('Invalid value for `auth_type` ({0}), must be one of {1}'.format(zkAN, BbPm))
YKHO._auth_type = zkAN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W8YL(YKHO, zkAN, gCuF):\n if not zkAN:\n raise ValueError('Invalid auth type={}'.format(zkAN))\n QF8J = Zy9T.get(zkAN.lower())\n if not QF8J:\n raise ValueError('Unsupported auth type={}'.format(zkAN))\n YKHO._authorizer = QF8J(gCuF)",
"def zkAN(YKHO, zkAN):\n BbPm = ['jwt']\n ... | [
"0.7733849",
"0.73017484",
"0.70788985",
"0.68398666",
"0.679469",
"0.65885556",
"0.6573091",
"0.6481138",
"0.6481138",
"0.6412974",
"0.6412974",
"0.6412974",
"0.6412974",
"0.6412974",
"0.6412974",
"0.6412974",
"0.6412974",
"0.6267759",
"0.6267759",
"0.6139125",
"0.61317235",... | 0.75891465 | 1 |
Gets the is_privacy_password_set of this SnmpUser. | def qEql(YKHO):
return YKHO._is_privacy_password_set | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qEql(YKHO, qEql):\n YKHO._is_privacy_password_set = qEql",
"def wbZp(YKHO):\n return YKHO._privacy_password",
"def m9BR(YKHO):\n return YKHO._is_auth_password_set",
"def OMcJ(YKHO):\n return YKHO.private",
"def WFo7(YKHO):\n return YKHO.properties.get('hasPassword', None)",
"def V7Ek(Y... | [
"0.79772687",
"0.6635568",
"0.65037227",
"0.61474174",
"0.5974219",
"0.5794222",
"0.5749868",
"0.5643538",
"0.5604897",
"0.559358",
"0.5466846",
"0.5434015",
"0.5431367",
"0.5379589",
"0.5371625",
"0.53106564",
"0.5302844",
"0.52446705",
"0.52347285",
"0.5209448",
"0.51902795... | 0.8687116 | 0 |
Sets the is_privacy_password_set of this SnmpUser. | def qEql(YKHO, qEql):
YKHO._is_privacy_password_set = qEql | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qEql(YKHO):\n return YKHO._is_privacy_password_set",
"def wbZp(YKHO, wbZp):\n YKHO._privacy_password = wbZp",
"def m9BR(YKHO, m9BR):\n YKHO._is_auth_password_set = m9BR",
"def hMcP(YKHO, wEf2):\n YKHO.private = wEf2",
"def NNUK(YKHO, BFEr):\n if BFEr:\n YKHO.input.setEchoMode(vj3Z... | [
"0.7044754",
"0.6774496",
"0.6299022",
"0.56725085",
"0.5323265",
"0.52166647",
"0.5199097",
"0.51962006",
"0.5156872",
"0.51457256",
"0.51381725",
"0.5113975",
"0.51129436",
"0.5112093",
"0.50947195",
"0.50763196",
"0.5063317",
"0.50512516",
"0.50379825",
"0.50188637",
"0.50... | 0.88561285 | 0 |