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
Test that the Zassenhaus algorithm raises an error when the input has inconsistent dimension.
def wKgJ(rkrH): with trZe.raises(ValueError): J5u8(*rkrH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H5e8(YKHO):\n _2zY = oyIN.array([[0.0, 0.0, 1.0], [0.1, 0.2, 0.8], [0.2, 0.4, 0.6], [0.3, 0.7, 0.3], [0.6, 0.8, 0.2], [0.8, 0.9, 0.1], [1.0, 1.0, 0.0]], dtype=oyIN.float64)\n YKHO.assertRaises(ValueError, xyRa.weigh, _2zY, 'Unknown')", "def S8I6(YKHO):\n YKHO.assertRaises(Exception, YKHO.validate, (...
[ "0.67524713", "0.6719426", "0.66936415", "0.6620208", "0.66172826", "0.6609881", "0.6603864", "0.6579804", "0.656651", "0.65514654", "0.6547087", "0.6520995", "0.65174687", "0.6507072", "0.64990294", "0.6497248", "0.64500827", "0.64472127", "0.6443199", "0.6373365", "0.636905...
0.8237013
0
Turn off the LED light
def l4XF(YKHO, qfpW='all'): if qfpW in ['all', 'r']: YKHO.__send('r', 'off') if qfpW in ['all', 'g']: YKHO.__send('g', 'off') if qfpW in ['all', 'b']: YKHO.__send('b', 'off')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)", "def Z_rv(YKHO):\n print('Turning the lights off')\n YKHO.led.all_off()\n YKHO.client.publish(uf2Z, nGxz)", "def Z_rv(YKHO, **B2fa: Any) -> None:\n YKHO._device.power_on = False\n vzeF.debug('Turn off light %s', YKHO._device.ip)", "def Z_rv(...
[ "0.9098916", "0.87860805", "0.863714", "0.85260457", "0.8431987", "0.84233093", "0.8382514", "0.8363099", "0.8342604", "0.8337329", "0.8312644", "0.8291258", "0.82482105", "0.8243882", "0.82085174", "0.8207159", "0.811875", "0.8092324", "0.8034994", "0.8020193", "0.7994777", ...
0.0
-1
Toggle the LED light. Turn off while the light on status and turn on while the light off.
def xe2L(YKHO, qfpW='all'): if qfpW in ['all', 'r']: YKHO.__send('r', 'toggle') if qfpW in ['all', 'g']: YKHO.__send('g', 'toggle') if qfpW in ['all', 'b']: YKHO.__send('b', 'toggle')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CKKG(YKHO):\n if YKHO.state == xi8C.LOW:\n YKHO.state = xi8C.HIGH\n else:\n YKHO.state = xi8C.LOW\n return YKHO.update_status()", "def jY15(YKHO):\n xi8C.output(YKHO.gpio, True)", "def xe2L(YKHO):\n YKHO._interrupt_flash()\n xi8C.output(YKHO.pin, xi8C.LOW if YKHO.on else xi8...
[ "0.8128857", "0.79605216", "0.76151997", "0.7484463", "0.7410243", "0.73769903", "0.7369239", "0.732776", "0.7300347", "0.7296502", "0.7268717", "0.7263247", "0.72266966", "0.7218166", "0.72032404", "0.71941334", "0.71164215", "0.7116177", "0.71115065", "0.7090818", "0.706841...
0.0
-1
If 'mantis_id' is None, add all issues If `add_after` is False, add issues with IDs less than `mantis_id`. If `add_after` is True, add issues with IDs greater than `mantis_id`.
def XDEl(YKHO, AtHU=None, I8XV=False, p9bx=None, F_Y6=None, waDZ=None, MC91=None, PJWX=False): W5Ak = [] for HHWf in YKHO.__project_issue_numbers: if AtHU is not None: if not I8XV and HHWf >= AtHU: break if I8XV and HHWf <= AtHU: continue i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXKS(CBIr, W5A4, DumB):\n pTEq = gNay(W5A4)\n for vVBc in pTEq:\n if not vVBc.is_editable:\n continue\n for ZfUD in DumB:\n T4Wy = ht8T(user=CBIr, date=vVBc, type=ZfUD)\n NCls.session.add(T4Wy)\n NCls.session.commit()", "def _b3q(YKHO, onft, QePW):\n ...
[ "0.50791806", "0.48217428", "0.4815567", "0.4730302", "0.46686578", "0.46100894", "0.4567516", "0.45626375", "0.45396146", "0.44809577", "0.44540864", "0.4449402", "0.4442932", "0.44306818", "0.43877757", "0.43731502", "0.43698195", "0.4355999", "0.43274876", "0.4326846", "0....
0.7036041
0
Method for spliting dataset to the training and test.
def FJfc(YKHO, NI2E=0.2): YKHO.training_data, YKHO.test_data, YKHO.training_labels, YKHO.test_labels = bHtP(YKHO.training_data, YKHO.training_labels, test_size=NI2E)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.valid, YKHO.valid, test_size=0.5)", "def Qb89(YKHO, nPrm):\n x4W3, Dmme = bHtP(nPrm, test_size=YKHO.test_size, random_state=0, stratify=nPrm[YKHO.outcome_name]...
[ "0.89554304", "0.82610244", "0.82391465", "0.8219358", "0.8165741", "0.81357616", "0.8107226", "0.79983044", "0.795695", "0.79256755", "0.7915028", "0.79078156", "0.7877868", "0.7861761", "0.7856721", "0.7838992", "0.7808851", "0.7779093", "0.7777716", "0.77745175", "0.773286...
0.8575196
1
Method that creates the pipeline for only important feature extraction with univariate_feature_selection.
def dEmW(YKHO, NKcE, SrUS, FGW3): YKHO.scoring_functions = {'f_classif': WNcz, 'mutual_info_classif': z41M, 'chi2': JEVk} YKHO.selection_methods = {'select_k_best': GrbV(YKHO.scoring_functions[SrUS], k=FGW3), 'select_percentile': WY8c(YKHO.scoring_functions[SrUS], percentile=FGW3)} YKHO.model = Y0rt([('feat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPIK(YKHO):\n wxaK = []\n L0lO = YKHO.CustomFeature()\n ROaS = int(YKHO.n_features / 2)\n if YKHO.definer.problem_type == 'classification':\n vyTp = fzy5(SQyw(criterion='entropy'))\n else:\n vyTp = fzy5(GHxR())\n wxaK.append(('extraTC', vyTp))\n return UVqZ(wxaK)", "def QI4...
[ "0.691752", "0.6515457", "0.6514647", "0.64553595", "0.6396666", "0.6391689", "0.63481605", "0.62624484", "0.6191567", "0.6166328", "0.61137426", "0.61040705", "0.6085444", "0.607597", "0.6019646", "0.59978026", "0.5990065", "0.59273946", "0.5851573", "0.584903", "0.5838492",...
0.5807853
24
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key
def NMoC(YKHO, H5ew: int) -> int: oeNL = YKHO.hash(H5ew) if H5ew in YKHO.table[oeNL]: return YKHO.table[oeNL][H5ew] else: return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew: int) -> int:\n if H5ew not in YKHO.map:\n return -1\n return YKHO.map[H5ew]", "def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap.keys():\n return YKHO.hashmap[H5ew]\n else:\n return -1", "def NMoC(YKHO, H5ew: int) -> int:\n lWrn = H5ew % 37\n ...
[ "0.80029744", "0.79090077", "0.76285666", "0.75648946", "0.7555506", "0.752899", "0.7525261", "0.74916106", "0.7293888", "0.72929615", "0.7221035", "0.7216307", "0.7180106", "0.7176812", "0.7160988", "0.6980195", "0.69278413", "0.67843336", "0.67558086", "0.67320067", "0.6611...
0.7373553
8
Gets the full set of targets supported by this builder. Used in automatic target name transformations, and also in offering the user choices.
def wCwx(YKHO): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x6A0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['PlanTargetsArgs']]]]:\n return qe4Y.get(YKHO, 'targets')", "def WELE(YKHO):\n return YKHO._targets", "def x6A0(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['ContactTargetsArgs']]]]:\n return qe4Y.get(YKHO, 'targets')", "def x6A0(YKHO):\n return YKHO....
[ "0.7267673", "0.72533965", "0.7115405", "0.69083786", "0.6887221", "0.684837", "0.67811924", "0.67587334", "0.64828795", "0.6480067", "0.6447007", "0.64061385", "0.6405271", "0.6329794", "0.6288235", "0.619657", "0.61855984", "0.6152486", "0.61432", "0.6072367", "0.6062667", ...
0.62242705
15
Returns a list of closest matching targets for a named target.
def kztB(YKHO, XNHl): return _ama.get_close_matches(XNHl, YKHO.GetTargets(), 10, 0.4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzLu(YKHO, x6A0):\n Tm2h = None\n mp07 = None\n x6A0 = filter(lambda WKvO: not WKvO.owner or WKvO.owner is YKHO, x6A0)\n for pan_ in x6A0:\n if pan_.occupied_by:\n print(f'{pan_.name}: {pan_.x},{pan_.y} occupied by {pan_.occupied_by.name}')\n continue\n if pan_ i...
[ "0.6920748", "0.6278692", "0.6217341", "0.6204103", "0.61921126", "0.6167426", "0.6105352", "0.60744244", "0.60616773", "0.59815866", "0.58965415", "0.5893583", "0.5890426", "0.58796626", "0.5878019", "0.58761984", "0.5838707", "0.58263904", "0.5734014", "0.5723764", "0.57050...
0.7324836
0
Functor to return a uppercase string.
def CN9P(BWXx): return BWXx.upper()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CN9P(BWXx):\n return BWXx.upper()", "def QmjV(str):\n return str.upper()", "def CN9P(YKHO) -> FgBH:\n pass", "def QmjV(vIwR):\n return str(vIwR).upper()", "def a3j4(l5Ny):\n return l5Ny.upper()", "def M1kB(YKHO, l5Ny):\n return l5Ny.upper()", "def uwCm(l5Ny):\n return l5Ny.uppe...
[ "0.7736215", "0.751684", "0.74385214", "0.7289567", "0.7086765", "0.70487165", "0.7014051", "0.6949512", "0.6941151", "0.6875285", "0.68643904", "0.68633956", "0.6825572", "0.6812113", "0.6797524", "0.6794077", "0.6755859", "0.6737372", "0.66871476", "0.6634358", "0.6487766",...
0.748002
2
Functor to return a whitespace stripped string.
def Nlxd(BWXx): return BWXx.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EQOQ():\n pass", "def ZlZC(str):\n return str.strip()", "def Yczo(KCHu):\n return ZbWC.sub('\\\\s+', ' ', KCHu.strip())", "def dRdd(YKHO, l5Ny):\n return l5Ny.strip()", "def EQOQ(vIwR):\n return vIwR.replace(' ', '')", "def neUU(KCHu):\n return ZbWC.sub('\\\\s+', '', KCHu)", "def ...
[ "0.72803855", "0.708484", "0.6857887", "0.6845617", "0.68302655", "0.6736759", "0.6736759", "0.66933715", "0.66795033", "0.66662675", "0.66065574", "0.65711504", "0.6561733", "0.65381485", "0.65308195", "0.6514705", "0.64818996", "0.64725375", "0.64662844", "0.64420325", "0.6...
0.6425698
21
Name the league champion for this season.
def ZyLT(YKHO): return max(YKHO.teams, key=lambda dZPi: len(dZPi.wins))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xKro(YKHO):\n return 'Team Name'", "def zy1T(Zo0b, rJDA=EOsh(), zn0c='na'):\n geh0 = dTAH.urlopen('https://global.api.pvp.net/api/lol/static-data/' + zn0c + '/v1.2/champion/' + str(Zo0b) + '?api_key=' + rJDA)\n mU__ = qQXR.load(geh0)\n return mU__['name']", "def W0tD(YKHO):\n return YKHO._pl...
[ "0.68287086", "0.66475165", "0.6388904", "0.6247523", "0.6240383", "0.6227796", "0.6180316", "0.60847265", "0.6078636", "0.60367405", "0.60168505", "0.60109186", "0.59963465", "0.59931976", "0.59854746", "0.59711856", "0.5929514", "0.59019774", "0.5875374", "0.5856296", "0.58...
0.72963077
0
The number of rows applied, plus the number of rows in error.
def pcsc(YKHO): return YKHO.applied_count + YKHO.error_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWGE(YKHO) -> int:\n ...", "def NwL4(YKHO):\n return len(YKHO.rows)", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def DR2N(YKHO) -> int:\n return len(YKHO.rows)", "def NwL4(YKHO):\n return len(YKHO.rows)", "def AbqG(YKHO):\n return YKHO._count", "def _1Ox(YKHO):\n return...
[ "0.77358806", "0.7658716", "0.7552611", "0.7552611", "0.75167227", "0.7471678", "0.74319524", "0.7423443", "0.7343645", "0.73394495", "0.7335471", "0.73140174", "0.7270245", "0.7251893", "0.7219502", "0.7217385", "0.7215328", "0.72083944", "0.7122091", "0.70914394", "0.704539...
0.69896233
22
Checks the values of a WindowPair. If any problems are found, it flags them in red. Returns True / False for ok / not ok.
def GfdN(YKHO): GTOg, IgBd, DW9D, jHsn, pvd3 = YKHO.get() raTX = YKHO.ystart.ok() and YKHO.xleft.ok() and YKHO.xright.ok() and YKHO.nx.ok() and YKHO.ny.ok() if IgBd is None or IgBd + jHsn - 1 > 512: YKHO.xleft.config(bg=de4j) raTX = False if DW9D is None or DW9D + jHsn - 1 > 1024: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfdN(YKHO):\n raTX = True\n for xZmj in YKHO.winps:\n if not xZmj.check():\n raTX = False\n IJch, vqeO, AU77, pqFA, bBgk = YKHO.winps[0].get()\n for xZmj in YKHO.winps[1:]:\n ELrk, qkdp, lGxW, aeUz, AqCL = xZmj.get()\n if IJch is not None and ELrk is not None and (bB...
[ "0.7280459", "0.64105046", "0.6135781", "0.6016167", "0.5988482", "0.59411937", "0.5928348", "0.5897497", "0.5861804", "0.5850843", "0.579835", "0.5797004", "0.5731858", "0.5723502", "0.5701964", "0.57005197", "0.5695273", "0.56533974", "0.5628439", "0.56216186", "0.560936", ...
0.65346867
1
Instantiate an account. This constructor should only be directly called when it's desired to create a new account using just a password and a randomly generated private key, otherwise use the alternative constructors
def FIMM(YKHO, jTXt: str, x03U: Optional[bytes]=None, CcrV: bool=False, UTX6: Optional[str]=None, UXqs: Optional[str]=None, stkY: bool=False, hLKG: Optional[contracts.Contract]=None, dDGN: Optional[Dict[str, Any]]=None): dD1L: h8nf[gxFM.ECPoint] = None nKy4: h8nf[bytes] = None IkQW: h8nf[bytes] = None i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BdN0(Emd4, jTXt, H5ew=None, qxeD=None, pmON=None):\n if H5ew is None:\n H5ew = wIDF()\n if not X7_c(H5ew):\n H5ew = yLCI(H5ew)\n if not X7_c(jTXt):\n jTXt = yLCI(jTXt)\n AaqB = sjXb.make_keystore_json(H5ew, jTXt)\n AaqB['id'] = qxeD\n return tHSi(AaqB, jTXt, pmON)", "de...
[ "0.78722817", "0.7258734", "0.6898454", "0.67368233", "0.6699483", "0.6698168", "0.6669464", "0.6666555", "0.6654865", "0.66117704", "0.65626335", "0.65057623", "0.6499423", "0.64622176", "0.6368004", "0.63259524", "0.63200647", "0.62456703", "0.62340075", "0.6196716", "0.616...
0.6454271
14
Instantiate and returns an account from a given wif and password.
def dAHQ(Emd4, QTDo: str, jTXt: str) -> tHSi: return Emd4(password=jTXt, private_key=Emd4.private_key_from_wif(QTDo))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ZrNc, NtEF, jTXt):\n YKHO.account = ZrNc\n YKHO.username = NtEF\n YKHO.password = jTXt", "def FIMM(YKHO, tHSi, NtEF, jTXt):\n YKHO.Account = tHSi\n YKHO.username = NtEF\n YKHO.password = jTXt", "def FMAD():\n ZrNc = RZeI.eth.account.create()\n return ZrNc", "def FIMM(YK...
[ "0.65044117", "0.6310783", "0.62864006", "0.62818706", "0.6231221", "0.62165356", "0.6215969", "0.61335546", "0.6118962", "0.5977061", "0.586638", "0.5833336", "0.57898766", "0.5760846", "0.5753914", "0.57516044", "0.5743921", "0.57119364", "0.56248856", "0.5603027", "0.55973...
0.84263015
0
Get numeral values from a column.
def iYZ_(uYRG, iVRZ=0): for zFiD in uYRG: BWXx = zFiD.split()[iVRZ] try: BWXx = float(BWXx) except ValueError: BWXx = None yield BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WQHC(YKHO, usx6: List[Row], iVRZ: NumberColumn) -> KUXB:\n mSrU: x1iM[float] = []\n for rdlD in usx6:\n ThUb = rdlD.values[iVRZ.name]\n if isinstance(ThUb, float):\n mSrU.append(ThUb)\n return mSrU[0] if mSrU else -1", "def Yh9o(jQ3Z, AAHb):\n for Z9rn in AAHb:\n j...
[ "0.6913897", "0.6599753", "0.6514567", "0.64090616", "0.6285983", "0.6182886", "0.6075679", "0.60131425", "0.5956224", "0.58398235", "0.581068", "0.5797837", "0.5731052", "0.57033914", "0.5601626", "0.5601626", "0.5601626", "0.5601626", "0.55814517", "0.5526401", "0.55178505"...
0.5326149
36
Generates the environment variables list for an application of type SSER
def L4L0(YKHO, d6pt): vNrC = [('GLOBUS_DUROC_SUBJOB_INDEX', '%d' % d6pt), ('LD_LIBRARY_PATH', '/usr/local/globus/globus-3.2/lib/')] return vNrC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xtda(YKHO):\n _wWf = {}\n for H5ew in YKHO.envvars:\n try:\n _wWf[H5ew] = Hy7s.environ[H5ew]\n except KeyError:\n continue\n if _wWf:\n bo34.warning('This API does not support environment secrets.')\n return _wWf", "def QUTX():\n yIVm = E14P()\n re...
[ "0.7046139", "0.70148987", "0.6612566", "0.6599169", "0.6573192", "0.6566125", "0.6431719", "0.64266616", "0.6393218", "0.63826114", "0.6378862", "0.634711", "0.6345269", "0.63368773", "0.6226397", "0.6204843", "0.6181352", "0.61801493", "0.6159335", "0.615245", "0.61086816",...
0.6713219
2
Creates a node with the given label. The label must be a string for use with the PQGram algorithm.
def FIMM(YKHO, UXqs): YKHO.label = UXqs YKHO.children = list()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def exwG(UXqs):\n global id\n Q6kx = H7Nv.Node(name=id, obj_dict=None, label=UXqs)\n id += 1\n pNZh.add_node(Q6kx)\n return Q6kx", "def igy8(YKHO, *Crrw, **lhy8):\n UksD = o7DN(*Crrw, **lhy8)\n YKHO.graph.create(UksD)\n return UksD", "def lfCk(RCEU, CXwD, UXqs, edvT):\n return g5gD(R...
[ "0.67834806", "0.6396251", "0.6215353", "0.61980563", "0.6132489", "0.61282533", "0.6104603", "0.60961515", "0.60835075", "0.6052563", "0.59633195", "0.5948374", "0.5892859", "0.5891874", "0.5883719", "0.58648664", "0.58566564", "0.5849776", "0.5836935", "0.5782482", "0.57588...
0.52988166
47
Computes the edit distance between two PQGram Profiles. This value should always be between 0.0 and 1.0. This calculation is reliant on the intersection method.
def ynZz(YKHO, Elif): b65I = len(YKHO) + len(Elif) return 1.0 - 2.0 * (YKHO.intersection(Elif) / b65I)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QJO9(YKHO, ZLDn, YsF0):\n Ayfi = 0.0\n if ZLDn == YsF0:\n Ayfi = 1.0\n return Ayfi", "def QJO9(YKHO, ZLDn, YsF0):\n Ayfi = 0.0\n if ZLDn == YsF0:\n Ayfi = 1.0\n return Ayfi", "def ynZz(YKHO, Elif):\n b65I = len(YKHO) + len(Elif)\n return 1.0 - 2.0 * (YKHO.intersection(...
[ "0.6954483", "0.6954117", "0.6331403", "0.6307539", "0.6120704", "0.61015373", "0.5989113", "0.5968466", "0.594435", "0.5941943", "0.5940011", "0.59327114", "0.5907452", "0.5903014", "0.58983225", "0.58959496", "0.5885451", "0.58801675", "0.58702207", "0.5868561", "0.5867697"...
0.627328
4
Creates an internal list of the specified size and fills it with the default value of "". Once a ShiftRegister is created you cannot change the size without concatenating another ShiftRegister.
def FIMM(YKHO, zNig): YKHO.register = list() for YRbF in range(zNig): YKHO.register.append('*')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Roif(YKHO, XqwL: int):\n for bGrB in range(XqwL + 1 - len(YKHO)):\n YKHO.append(0)", "def FIMM(YKHO, zNig: int):\n YKHO.l = []\n YKHO.sz = zNig\n YKHO.sm = 0", "def K0j0(YKHO):\n maxY = list()\n for YRbF in range(10):\n maxY.append(tuKI.randint(1, 50))\n for zNig in maxY:...
[ "0.6161752", "0.60480016", "0.58815473", "0.58761644", "0.5761343", "0.5758599", "0.5650796", "0.5643129", "0.5624663", "0.5615912", "0.5596628", "0.5538347", "0.5499173", "0.54861355", "0.5458629", "0.54465675", "0.54397625", "0.5435063", "0.5413335", "0.5389931", "0.5387299...
0.63082594
0
Concatenates two ShiftRegisters and returns the resulting ShiftRegister.
def MPiJ(YKHO, lQ3t): ycBG = list(YKHO.register) ycBG.extend(lQ3t.register) return ycBG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MUpX(YKHO):\n oBUD = SHTo(2)\n oBUD.shift('a')\n oBUD.shift('b')\n nqnZ = SHTo(3)\n nqnZ.shift('c')\n nqnZ.shift('d')\n nqnZ.shift('e')\n E7Pb = oBUD.concatenate(nqnZ)\n YKHO.assertEqual(''.join(E7Pb), 'abcde')", "def m5re(YKHO, Elif):\n Elif.set_upstream(YKHO)\n return Elif"...
[ "0.67564994", "0.5837776", "0.5616268", "0.55135673", "0.5468361", "0.54525924", "0.5439346", "0.5371612", "0.5352196", "0.5324187", "0.5293746", "0.5288235", "0.5288235", "0.5256369", "0.5252603", "0.524575", "0.52294064", "0.5221462", "0.5187699", "0.5187699", "0.5175249", ...
0.5613873
3
This method will take a normal tree structure and the given values for p and q, returning a new tree which represents the socalled PQExtendedTree.
def MR4W(tk5Y, XP5J=1, vexM=1): NoOu = tk5Y for YRbF in range(XP5J - 1): Q6kx = o7DN(label='*') Q6kx.addkid(tk5Y) tk5Y = Q6kx t_T5 = NoOu.children if len(t_T5) == 0: YLgL(NoOu, vexM) else: qYHv(NoOu, vexM) while len(t_T5) > 0: Y8Kb = list() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tH7D(J_Es):\n return '\\\\' + 'Tree {}'.format(wgfG(J_Es))", "def if_Y(YKHO, XP5J, vexM):\n hbUd, BzON = (MUE7([XP5J]), MUE7([vexM]))\n while (hbUd and BzON) and len(hbUd) == len(BzON):\n EBgd = hbUd.popleft()\n HpuQ = BzON.popleft()\n if (EBgd and HpuQ) and EBgd.val == HpuQ.val...
[ "0.6004092", "0.56338376", "0.55847466", "0.55218244", "0.5488793", "0.54671514", "0.5432379", "0.54169387", "0.54126024", "0.5398982", "0.5360151", "0.5334569", "0.5309979", "0.52630544", "0.5259419", "0.5203182", "0.5194728", "0.51930785", "0.5190961", "0.51853263", "0.5129...
0.7214988
0
Ensure that two different PQGram Profile are actually the same. Used in later tests to compare dynamically created Profiles against preset Profiles.
def wzoE(YKHO, eyXC, nAOv): if len(eyXC) != len(nAOv) or len(eyXC[0]) != len(nAOv[0]): return False for ZLDn in eyXC: sjXf = False for YsF0 in nAOv: if ZLDn == YsF0: sjXf = True break if sjXf == False: return False retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzoE(YKHO, eyXC, nAOv):\n if len(eyXC) != len(nAOv) or len(eyXC[0]) != len(nAOv[0]):\n return False\n for ZLDn in eyXC:\n sjXf = False\n for YsF0 in nAOv:\n if ZLDn == YsF0:\n sjXf = True\n break\n if sjXf == False:\n return ...
[ "0.7128957", "0.6806193", "0.6779668", "0.60975534", "0.586982", "0.57932186", "0.5639829", "0.5503911", "0.5437295", "0.54024154", "0.5368421", "0.53682536", "0.5355948", "0.5344326", "0.53417224", "0.53026056", "0.5295276", "0.5286694", "0.52284336", "0.522824", "0.52236074...
0.71741575
0
Normalizes a Wikidata item identifier >>> to_q('Q1234') 'Q1234'
def gfN7(bD7m): if type(bD7m) != str: return kUBT = GPtr.q_re.match(bD7m.strip()) if kUBT: return kUBT.group(GPtr.q_re_group_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jajo(YKHO) -> str:\n return YKHO._itempage.title()", "def tIRJ(vexM):\n if vexM[0] < 0:\n vexM = -vexM\n QYxB = epAf.sqrt(vexM[0] * vexM[0] + vexM[1] * vexM[1] + vexM[2] * vexM[2] + vexM[3] * vexM[3])\n Z7qo = vexM / QYxB\n return Z7qo", "def NkkI(ZfUD):\n ZfUD = ZfUD.lower().strip...
[ "0.6520814", "0.63027114", "0.57867503", "0.57641643", "0.5662145", "0.55990016", "0.55610466", "0.5509767", "0.5407902", "0.5377882", "0.53394204", "0.52613723", "0.524593", "0.5225572", "0.52095103", "0.5202225", "0.51897955", "0.51742655", "0.51638603", "0.51584107", "0.51...
0.5180563
17
Normalizes a Wikidata property identifier >>> to_p('P1234') 'P1234'
def IuD8(bD7m): if type(bD7m) != str: return kUBT = GPtr.p_re.match(bD7m.strip()) if kUBT: return kUBT.group(GPtr.p_re_group_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PZ5_(wEf2):\n r8hN = JZD6.match(wEf2)\n return r8hN.group(2)", "def JrbT(YKHO, QZnA):\n leAC = QZnA.get('title')\n kUBT = dtrd.match(leAC)\n if kUBT:\n return kUBT.group(2)", "def ohpS(mWFP):\n exwG = mWFP.strip()\n exwG = ZbWC.sub('/', ' ', exwG)\n exwG = ZbWC.sub('-', ' ', ...
[ "0.65713704", "0.56733394", "0.56100345", "0.5556826", "0.54838204", "0.5454807", "0.54023707", "0.54013544", "0.53587043", "0.5339857", "0.53060675", "0.52711654", "0.5255018", "0.52454776", "0.5211262", "0.52029216", "0.5169888", "0.51516956", "0.5118911", "0.51147336", "0....
0.55868983
3
Replace substrings in s according to mapping (a sequence of
def UGKo(KCHu, J8oL): for j93S, RqeO in J8oL: KCHu = KCHu.replace(j93S, RqeO) return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TECO(l5Ny: str, /, J8oL: _Mapping[str, str], *, kISC: bool=False) -> str:\n if not J8oL:\n return l5Ny\n if kISC:\n NkkI: lew_[[str], str] = lambda KCHu: KCHu.lower()\n HVrX = dRhc.IGNORECASE\n J8oL = {NkkI(H5ew): wEf2 for H5ew, wEf2 in J8oL.items()}\n else:\n NkkI: ...
[ "0.7268492", "0.70326984", "0.7008759", "0.6968927", "0.6762078", "0.6729505", "0.66941446", "0.6669461", "0.6647284", "0.65870917", "0.6471583", "0.6429247", "0.6412923", "0.63938326", "0.63737065", "0.63635397", "0.62747", "0.6252348", "0.6248728", "0.6240093", "0.6238764",...
0.89654297
0
Sort an OrderedDict inplace.
def pRwu(Csk6, H5ew=None): DumB = [(G1Hx, Csk6[G1Hx]) for G1Hx in sorted(Csk6, key=H5ew)] Csk6.clear() Csk6.update(DumB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w3_L():\n Csk6 = {1: 'a', 3: 'c', 2: 'b'}\n Csk6.sort()\n print(Csk6)", "def BA9O(YKHO):\n YKHO.keys = sorted(YKHO.keys)\n YKHO.keys.reverse()", "def jEar(Csk6):\n SeSY = U8Lr()\n for H5ew in sorted(list(Csk6.keys())):\n assert H5ew not in SeSY\n SeSY[H5ew] = Csk6[H5ew]\n...
[ "0.63416475", "0.628851", "0.6270603", "0.6100329", "0.5850811", "0.58167475", "0.5747687", "0.5739225", "0.5731727", "0.5729787", "0.57237804", "0.5710882", "0.57041484", "0.55458856", "0.5521257", "0.551189", "0.5501789", "0.5500597", "0.54872984", "0.5466565", "0.5466144",...
0.68532526
0
Adds CA certificates from 'ca_certs' to the systemwide CA store (if available on the platform). Returns True if the operation succeeded, False otherwise.
def SYzw(YKHO, OWqT): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RZmi(kZdy, fvum):\n bo34.info('Fetching CA certs and writing to filesystem')\n if cCxB('update-ca-trust'):\n bo34.info('update-ca-trust available')\n o0oB = 'update-ca-trust'\n _abC = '/etc/pki/ca-trust/source/anchors/'\n elif cCxB('update-ca-certificates'):\n bo34.info('up...
[ "0.68859243", "0.62767655", "0.61505914", "0.6095542", "0.60781914", "0.5956906", "0.5892409", "0.5761105", "0.5700852", "0.5621966", "0.54755276", "0.54685503", "0.54224426", "0.5332096", "0.5309037", "0.51828796", "0.5157283", "0.51554203", "0.5149179", "0.50269085", "0.495...
0.73149234
0
Verify that value is a positive number.
def tnOz(ZfUD): if not isinstance(ZfUD, (int, float)): return False return ZfUD > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UtDY(Emd4, BWXx):\n if BWXx < 0:\n raise ValueError('must be positive or zero')\n return BWXx", "def GHab(BWXx: float):\n if BWXx < 0:\n XObx = f'{BWXx} n`est pas positif'\n raise sUXu(XObx)", "def r0e4(BWXx):\n f4Xc = int(BWXx)\n if f4Xc <= 0:\n raise j1Jz.Argume...
[ "0.79806185", "0.7925833", "0.77110785", "0.7561893", "0.7406155", "0.7362765", "0.7329012", "0.7320382", "0.7311145", "0.73064244", "0.7277063", "0.7270226", "0.7263722", "0.72005403", "0.71868134", "0.71601546", "0.71065044", "0.71034455", "0.709753", "0.7041604", "0.700824...
0.7039701
20
Get an existing Product resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Product': VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id)) r6DL = dict() r6DL['approval_required'] = None r6DL['description'] = None r6DL['display_name'] = None r6DL['name'] = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, jcC6: Optional[pulumi.Input[str]]=None, hMqs: Optional[pulumi.Input[str]]=None, wqpv: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, DjF0: Optional[pulumi.Input[str]]=None, oLe6: Optional[pulumi.Input...
[ "0.69742733", "0.60021263", "0.57728904", "0.56428784", "0.5618183", "0.5606345", "0.5597542", "0.55726314", "0.5548431", "0.550479", "0.55019826", "0.5498372", "0.54713905", "0.5461784", "0.54028386", "0.53916764", "0.5386808", "0.53728896", "0.5372836", "0.536194", "0.53294...
0.6703615
1
whether product is published or not. Published products are discoverable by users of developer portal. Non published products are visible only to administrators. Default state of Product is notPublished.
def QTBn(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'state')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h1a5(YKHO):\n if hasattr(YKHO, 'public_published_cache'):\n return YKHO.public_published_cache\n if YKHO.public:\n return YKHO.public.published\n return False", "def FhQf(YKHO) -> bool:\n return YKHO.published and YKHO.published <= rIAI.now()", "def FhQf(YKHO):\n wzkt = rIAI.no...
[ "0.6795369", "0.67713946", "0.65852404", "0.65618056", "0.6321038", "0.6229848", "0.6142038", "0.60721225", "0.59382844", "0.5852014", "0.57760906", "0.57723063", "0.5764882", "0.5692409", "0.5662366", "0.5642007", "0.56359017", "0.5624442", "0.5610189", "0.560383", "0.560196...
0.0
-1
Whether a product subscription is required for accessing APIs included in this product. If true, the product is referred to as "protected" and a valid subscription key is required for a request to an API included in the product to succeed. If false, the product is referred to as "open" and requests to an API included i...
def uEqh(YKHO) -> qe4Y.Output[h8nf[bool]]: return qe4Y.get(YKHO, 'subscription_required')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uEqh(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'subscription_required')", "def CpSz(YKHO, QNO6):\n return QNO6 in YKHO.required_products", "def Vfcz(YKHO):\n return YKHO._allow_purchase_order", "def fiUM():\n return False", "def jeGQ(YKHO):\n return bool(YKHO.qualifiers.ge...
[ "0.7043986", "0.5886566", "0.57689476", "0.57401973", "0.57140994", "0.5704844", "0.55955976", "0.55401134", "0.553812", "0.5503626", "0.547906", "0.5457311", "0.5450119", "0.53810483", "0.53543466", "0.53438616", "0.5331839", "0.53170943", "0.53009504", "0.52960557", "0.5295...
0.6832563
1
Whether the number of subscriptions a user can have to this product at the same time. Set to null or omit to allow unlimited per user subscriptions. Can be present only if subscriptionRequired property is present and has a value of true.
def dqu7(YKHO) -> qe4Y.Output[h8nf[int]]: return qe4Y.get(YKHO, 'subscriptions_limit')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uEqh(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'subscription_required')", "def uEqh(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'subscription_required')", "def eSe8(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['ResourceIdArgs']]]]:\n return qe4Y.get(YKHO, 'subscriptions')"...
[ "0.69928175", "0.6903692", "0.61321527", "0.6063184", "0.59141153", "0.55955404", "0.55230147", "0.54307324", "0.5314592", "0.52450216", "0.51267433", "0.51140934", "0.50804025", "0.50139475", "0.49988398", "0.49809965", "0.49796617", "0.4960402", "0.49478364", "0.49319953", ...
0.64298
2
Retourne la valeur l'attribut 'mise' en lecture seule. Ne pas surcharger !
def w0J6(YKHO): return YKHO._mise
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vELP(YKHO):\n return YKHO.cleaning('Mínimo')", "def U4Fp(YKHO):\n return _VfD.Unit_isMetre(YKHO)", "def E3D9(YKHO):\n return YKHO._properties['M']", "def khpW(YKHO):\n return YKHO.M", "def yrkk(YKHO):\n return YKHO.m", "def bMbF(YKHO):\n return YKHO._getAttribute(URbA.mass)", "def...
[ "0.55395454", "0.55174774", "0.5470984", "0.54400706", "0.5272502", "0.52657515", "0.52194315", "0.5205189", "0.5160615", "0.515912", "0.5121621", "0.51193744", "0.5101799", "0.5099681", "0.5067106", "0.50647163", "0.50589836", "0.5038421", "0.50373274", "0.503598", "0.503484...
0.75931937
0
Gets the current list of alarms.
def sMhQ() -> x1iM[cuzp[str, ImMB]]: return aZv9.values()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sMhQ(YKHO) -> x1iM[cuzp[str, ImMB]]:\n return [IOKn.to_dict() for IOKn in YKHO._get_backend().get_alarms()]", "def dGuq(YKHO):\n geh0 = YKHO.get(J1jo, 'GetAlarmInfo')\n return KMCF(geh0['alarmList']['alarm'])", "def Ozfk(YKHO):\n return [YKHO.arms[or8S] for or8S in YKHO.arm_idx]", "def sMhQ(z...
[ "0.7703647", "0.75001156", "0.73608094", "0.7314355", "0.7160552", "0.714314", "0.7061736", "0.6991116", "0.6555422", "0.6493329", "0.63688284", "0.63156277", "0.6259843", "0.6223005", "0.6094764", "0.6090626", "0.6085706", "0.60797906", "0.59144175", "0.58075523", "0.5768915...
0.7756937
0
Assumes d1 is a "full DOI", like '10.1145/1166253.1166292', and d2 is a partial DOI, like '1166292' or '1166253.1166292'. Returns true if they match and false otherwise. Note that in the previous case, a partial like '292' would be a negative match. The partial must contain full subsections.
def oMxt(AjzU, _sQW): if _sQW.find('.') >= 0: return _sQW == AjzU.split('/')[-1] return _sQW == AjzU.split('.')[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lAvs(daXS, AUB0, UaOM='\\\\{.*\\\\}'):\n h4RK = daXS.split('/')\n xDEO = AUB0.split('/')\n lvR3 = ZbWC.compile(UaOM)\n if len(h4RK) != len(xDEO):\n return False\n for lgPp, Eznv in zip(h4RK, xDEO):\n if lvR3.match(lgPp) or lvR3.match(Eznv):\n continue\n if not lgP...
[ "0.6014786", "0.56956816", "0.5662353", "0.5500623", "0.5473948", "0.54247487", "0.5415583", "0.54035217", "0.53829956", "0.5355803", "0.52952635", "0.52876115", "0.52532464", "0.5248896", "0.52389824", "0.52248555", "0.5220483", "0.5198634", "0.5177238", "0.5177077", "0.5156...
0.79501957
0
returns a |DataFrame| with the boundary rays for all fields
def FLLK(WceZ): BKva = WceZ.optical_spec pOqt, gXlo, XrZ2 = BKva.lookup_fld_wvl_focus(0) EHOe = [] for eHNT in BKva.field_of_view.fields: Dydu = AODW(WceZ, eHNT, gXlo, XrZ2) EHOe.append(Dydu) BG_4 = rLdf.concat(EHOe, keys=BKva.field_of_view.index_labels, names=['field']) return B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kUbk(spHt):\n Mkmy = rLdf.DataFrame(spHt, columns=['inc_pt', 'after_dir', 'after_dst', 'normal'])\n Mkmy.index.names = ['intrfc']\n return Mkmy", "def hRSQ():\n jQ3Z = vYIR()\n return {'data': jQ3Z.to_dict(orient='records')}", "def bj_1(YKHO, mXOg):\n xDcj = 'SELECT Shape.STAsText() as ge...
[ "0.65361434", "0.59676796", "0.57851183", "0.5736684", "0.5432055", "0.5259642", "0.52134967", "0.51573277", "0.5024834", "0.50156873", "0.49824193", "0.48824582", "0.487294", "0.48670003", "0.4863748", "0.4827349", "0.4796878", "0.47901168", "0.4777756", "0.47774118", "0.475...
0.4648217
31
intersect 2 nonparallel lines, returning distance from P1 s = ((P2 P1) x V1).(V1 x V2)/\|(V1 x V2)\|2 `Weisstein, Eric W. "LineLine Intersection." From MathWorldA Wolfram Web
def N9ru(Wqlh, it9q, bskW, suoh): T5SM = oyIN.cross(it9q, suoh) KCHu = oyIN.dot(oyIN.cross(bskW - Wqlh, it9q), T5SM) / oyIN.dot(T5SM, T5SM) return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(EBgd, HpuQ):\n if G1py(EBgd, HpuQ):\n vC9B = oyIN.cross(EBgd.w, EBgd.v - HpuQ.v * oyIN.dot(EBgd.w, HpuQ.w) / BJ1H(HpuQ.w, HpuQ.w)) / oyIN.linalg.norm(EBgd.w)\n elif abs(EBgd * HpuQ) < 10 * UI67:\n vC9B = 0\n else:\n vC9B = abs(EBgd * HpuQ) / oyIN.linalg.norm(oyIN.cross(EBgd.w...
[ "0.7984512", "0.7703972", "0.77021426", "0.750219", "0.7471955", "0.7402277", "0.73771644", "0.7363731", "0.7286477", "0.72673047", "0.72651136", "0.7248636", "0.7235739", "0.72180456", "0.72157663", "0.7187971", "0.71844125", "0.7167012", "0.71630144", "0.7162702", "0.713186...
0.80740553
0
Create api client and construct API headers
def dYjD(XSj5, NT__): d4y1 = OxSd() d4y1.host = XSj5 d4y1.set_default_header(header_name='Authorization', header_value=f'Bearer {NT__}') return d4y1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DK0X(rSTc: str):\n return {'Authorization': f'token {rSTc}', 'User-Agent': 'sharing-api-fetcher', 'Accept-Encoding': 'gzip', 'Accept': 'application/json'}", "def yp1j(YKHO, NArs: Dict) -> None:\n rJDA = YKHO._get_query_api_key(NArs) or YKHO.user_api_key\n if rJDA is None:\n raise Jrs6('No API...
[ "0.6716841", "0.6632479", "0.6585274", "0.65273464", "0.65174973", "0.65110296", "0.64546186", "0.6444354", "0.64215404", "0.64006066", "0.6381962", "0.6373149", "0.6367229", "0.63553387", "0.6311216", "0.6295633", "0.6279288", "0.62528956", "0.62363464", "0.6221914", "0.6221...
0.74126905
0
Calculates the probability density at the observed point of a gaussian distribution with the specified mean and covariance The probability density at an observed point is, given a distribution, what is the likelihood of observing the provided point. The mean and covariance describe a gaussian distribution.
def xP99(gEVc, JBMS, _IBo): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(epBp, JBMS=0, ee6l=None, WTkW=1):\n WTkW = ee6l if ee6l is not None else WTkW\n CkYf = eQSh.norm(loc=JBMS, scale=WTkW)\n kzAT = CkYf.pdf(epBp, loc=JBMS, scale=WTkW)\n return (epBp, kzAT)", "def IAWS(WKvO, JBMS, WTkW):\n return oyIN.exp(-oyIN.square(WKvO - JBMS) / (2 * oyIN.square(WTkW))) ...
[ "0.7076718", "0.695932", "0.68181866", "0.6816641", "0.68077284", "0.6659633", "0.66336644", "0.660347", "0.6548794", "0.6403903", "0.6401023", "0.63993347", "0.6374524", "0.63698596", "0.6356623", "0.6336011", "0.6319167", "0.6315058", "0.62899816", "0.62808084", "0.62674785...
0.6684921
5
Samples randomly from a gaussian (normal) distribution
def tE4_(JBMS, _IBo): return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LIQM():\n JBMS = float(nPCd + 1) / 2\n while True:\n Mkmy = tuKI.normalvariate(JBMS, hgNa)\n BWXx = int(round(Mkmy))\n if 1 <= BWXx <= nPCd:\n break\n return BWXx", "def UbES(YKHO, yGTL=0.0, wEsz=1.0, zNig=1):\n yBeu = oyIN.random.normal(yGTL, wEsz, zNig)\n retu...
[ "0.75420827", "0.7472586", "0.7387461", "0.73843616", "0.73308533", "0.73060536", "0.72585607", "0.7211958", "0.71785474", "0.7171299", "0.7146328", "0.71457875", "0.7133743", "0.7131446", "0.7098366", "0.7090585", "0.7090404", "0.70685804", "0.701407", "0.6968865", "0.693823...
0.7190876
8
Calculates the target's azimuth and elevation given its ENU position. target_pos The target's position in the ENU coordinate system. Returns the target's azimuth and elevation.
def FG20(YKHO, vqrk): svO0 = vqrk[0] Ng4b = vqrk[1] TYhg = vqrk[2] _mMB = vwZf(svO0, Ng4b) _mMB = _IXK(_mMB + 2 * mM0K if _mMB < 0 else _mMB) xMJb = _IXK(vwZf(TYhg, PZyS(svO0 ** 2 + Ng4b ** 2))) while abs(_mMB) > 360: if _mMB > 0: _mMB = _mMB - 360 elif _mMB < 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aejN(hLKG):\n IVck = hLKG.sweep_start_ray_index['data'][0]\n JG8Q = hLKG.sweep_end_ray_index['data'][0]\n NOTN = oyIN.sort(hLKG.azimuth['data'][IVck:JG8Q + 1])\n aWYG = oyIN.median(NOTN[1:] - NOTN[:-1])\n return (NOTN, aWYG)", "def suEl(YKHO, Y_RS, vqrk):\n dXZG = Y_RS[0]\n wzJe = Y_RS[1...
[ "0.59828514", "0.5775981", "0.56484556", "0.5497794", "0.5335439", "0.52951586", "0.5265463", "0.52368045", "0.52313495", "0.5229205", "0.52013355", "0.49970043", "0.49947467", "0.4991102", "0.49614742", "0.49529862", "0.4919147", "0.49130073", "0.4863262", "0.4863262", "0.48...
0.772992
0
obtain the feature set of a tensor
def IIsB(YKHO, ZrX_): _e0h = zcty('./libsample.so') _PLx = ZrX_.encode() _e0h.getBaseFeatures.argtypes = [TO1V] _e0h.getBaseFeatures.restype = NSpG iLht = _e0h.getBaseFeatures(_PLx) return iLht
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def carQ(WluB, LTIa=Rv6f):\n ezWE = []\n for LVAh, WKvO in LTIa:\n ezWE.append(WluB[:, LVAh, WKvO, :])\n return (ZylS.stack(ezWE, axis=1, name='extracted_features'), len(LTIa))", "def YEmk(C3ST, Mekx):\n bySB = C3ST.get_feature(Mekx, training=False)\n return bySB", "def AQ_I(Zxma, aEZk):\...
[ "0.66642237", "0.6563432", "0.65360254", "0.624109", "0.6222723", "0.62105286", "0.6172606", "0.61175543", "0.60785043", "0.6077659", "0.60567254", "0.6049704", "0.6047908", "0.6039491", "0.6018224", "0.60164773", "0.60151154", "0.6008665", "0.5987548", "0.5984549", "0.594984...
0.0
-1
obtain the feature set of a tensor
def qFFU(YKHO, ZrX_): _e0h = zcty('./libsample.so') _PLx = ZrX_.encode() _e0h.getCsfFeatures.argtypes = [TO1V] _e0h.getCsfFeatures.restype = NSpG HXZy = _e0h.getCsfFeatures(_PLx) return HXZy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def carQ(WluB, LTIa=Rv6f):\n ezWE = []\n for LVAh, WKvO in LTIa:\n ezWE.append(WluB[:, LVAh, WKvO, :])\n return (ZylS.stack(ezWE, axis=1, name='extracted_features'), len(LTIa))", "def YEmk(C3ST, Mekx):\n bySB = C3ST.get_feature(Mekx, training=False)\n return bySB", "def AQ_I(Zxma, aEZk):\...
[ "0.6664263", "0.6565329", "0.65363914", "0.6241583", "0.6222612", "0.62112486", "0.6170799", "0.6118415", "0.60803896", "0.607755", "0.6055672", "0.6049822", "0.60478497", "0.60400766", "0.60189", "0.6016816", "0.60156876", "0.6008345", "0.5987119", "0.59845614", "0.5951214",...
0.0
-1
obtain the feature set of a batch of tensors
def twVv(YKHO, zqov): iumf = [] n1u9 = [] SLBz = open(zqov) for zFiD in SLBz: p7Wy = zFiD.split() iumf.append(p7Wy[-1]) SLBz.close() Ep8u = len(iumf) for TKgy in range(0, Ep8u): gU9N = YKHO.base_sample(iumf[TKgy]) wdWJ = YKHO.csf_sample(iumf[TKgy]) XlW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmk(C3ST, Mekx):\n bySB = C3ST.get_feature(Mekx, training=False)\n return bySB", "def lxN8(FYrf, Mekx):\n _4Fm = []\n for C3ST in FYrf:\n v_tA = C3ST.get_feature(Mekx, training=False)\n _4Fm.append(v_tA)\n chTF = ZylS.concat(_4Fm, axis=1)\n return chTF", "def PSlE(YKHO, D0B...
[ "0.6872066", "0.6695601", "0.6676771", "0.6630831", "0.65582216", "0.6557546", "0.64915574", "0.64251524", "0.6375864", "0.63708925", "0.6325119", "0.6310564", "0.6296545", "0.6290175", "0.62837833", "0.6231989", "0.6167522", "0.6161451", "0.6143088", "0.61331475", "0.6115151...
0.6377178
8
Check if the weight(and bias) is all zero.
def rqik(KZ52): lJnW = ht2j.equal(KZ52.weight.data, ht2j.zeros_like(KZ52.weight.data)) if hasattr(KZ52, 'bias'): qoPp = ht2j.equal(KZ52.bias.data, ht2j.zeros_like(KZ52.bias.data)) else: qoPp = True return lJnW and qoPp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XvKK() -> None:\n xF06 = oyIN.ones_like(An13)\n ygOn, rTfk, _Iob = rKWc(xF06, AYI0, An13)\n oyIN.testing.assert_almost_equal(ygOn, xF06)\n oyIN.testing.assert_almost_equal(rTfk, AYI0)\n oyIN.testing.assert_almost_equal(_Iob, An13)", "def Witr(YKHO):\n for XeOP, JxU2 in YKHO._regrets.items()...
[ "0.7341079", "0.72111833", "0.69303536", "0.6882128", "0.68332803", "0.6832085", "0.6830218", "0.68012315", "0.6775479", "0.6775216", "0.6760953", "0.6629957", "0.6629592", "0.6627388", "0.65673006", "0.65472466", "0.65326476", "0.6426862", "0.6423972", "0.6420071", "0.641342...
0.79077387
0
Embed categorical variables with onehot.
def KLLm(pJbt): for eHNT in range(PSrQ.num_feature): mI7d = PSrQ.schema[eHNT] if mI7d == 1: pass elif mI7d > 1: T7pw[eHNT] = ZylS.Variable(oyIN.identity(mI7d, dtype=oyIN.float32), trainable=False, name='embed_' + str(eHNT)) else: raise ValueError('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(jQ3Z):\n WfCS = ['job', 'marital', 'education', 'month', 'day_of_week', 'poutcome']\n for mAB6 in WfCS:\n ZrDu = rLdf.get_dummies(jQ3Z[mAB6], prefix=mAB6, drop_first=False)\n jQ3Z = rLdf.concat([jQ3Z, ZrDu], axis=1)\n jQ3Z = jQ3Z.drop(WfCS, axis=1)\n return jQ3Z", "def WGab(YKH...
[ "0.7793252", "0.7686966", "0.7509871", "0.7490291", "0.7461447", "0.74399245", "0.74275523", "0.7419072", "0.7411135", "0.7397537", "0.73827565", "0.7372006", "0.7364942", "0.7363173", "0.734486", "0.7343188", "0.73188174", "0.73098856", "0.7304188", "0.7290859", "0.7288098",...
0.0
-1
Sanitise string for use as group/directory name
def GPjv(vIwR: str) -> str: return '_'.join(ZbWC.findall(ZbWC.compile('[^ @&()/]+'), vIwR))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zilh(mWFP):\n KCHu = str(mWFP).strip()\n if ' ' in KCHu or ':' in KCHu:\n raise ValueError('Invalid name: ' + repr(mWFP))\n return KCHu", "def KMk9(mWFP):\n if mWFP[-1] == '/':\n return mWFP[:-1]\n return mWFP", "def aqYU(vIwR):\n return ZbWC.sub('[^_0-9a-zA-Z]+', '__', vIwR...
[ "0.69937134", "0.6942757", "0.6923409", "0.6739956", "0.6704685", "0.6686966", "0.6639211", "0.66019833", "0.6591186", "0.65446335", "0.65408367", "0.652787", "0.6504911", "0.6490723", "0.6466227", "0.6442929", "0.6434002", "0.638021", "0.63787466", "0.63305604", "0.63200516"...
0.6242357
23
Return attribute ``name``. Will return a widget if present.
def JgjC(YKHO, mWFP: str) -> Tx6S: for TEdI in YKHO._list: if mWFP == TEdI.name: return TEdI return object.__getattribute__(YKHO, mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RBD7(YKHO, mWFP):\n return YKHO.params[mWFP].widget", "def mWFP(YKHO) -> 'str':\n return YKHO._attrs.get('name')", "def mWFP(YKHO) -> 'str':\n return YKHO._attrs.get('name')", "def mWFP(YKHO) -> 'str':\n return YKHO._attrs.get('name')", "def G7Ug(YKHO, mWFP: str):\n return YKHO.call(mWFP...
[ "0.7518205", "0.69048035", "0.69048035", "0.69048035", "0.6801233", "0.6753137", "0.66779834", "0.6672801", "0.6634435", "0.6602681", "0.65999603", "0.6575435", "0.6559737", "0.65589046", "0.6499128", "0.6478199", "0.64001954", "0.63081235", "0.63009286", "0.62743723", "0.626...
0.7388688
1
Set attribute ``name``. Prevents changing widget if present, (use del).
def PCU8(YKHO, mWFP: str, BWXx: Any) -> None: if YKHO._initialized: for TEdI in YKHO._list: if mWFP == TEdI.name: raise AttributeError(f'Cannot set attribute with same name as a widget\nIf you are trying to change the value of a widget, use: `{YKHO.__class__.__name__}.{mWFP}.valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSgC(YKHO, mWFP):\n YKHO._validator.validate_one('name', iyhn['name'], mWFP)\n YKHO._ifAttributes['name'] = str(mWFP)", "def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)", "def oSgC(YKHO, mWFP):\n YKHO._name = mWFP", "def oSgC(YKHO, mWFP):\n YKHO.name = mWFP", "def oSgC(YKHO, mWFP):\n YK...
[ "0.7399976", "0.7368965", "0.7340324", "0.7337265", "0.7337265", "0.7337265", "0.7337265", "0.7335747", "0.7329216", "0.7329216", "0.7286056", "0.728038", "0.728038", "0.728038", "0.728038", "0.728038", "0.72574246", "0.72574246", "0.7244431", "0.72427636", "0.7209517", "0....
0.74426407
0
Insert widget at ``key``.
def JPHp(YKHO, H5ew: int, TEdI: WidgetVar) -> None: if isinstance(TEdI, (mXqI, vyNV)): TEdI.changed.connect(lambda: YKHO.changed.emit(YKHO)) bc79 = TEdI if YKHO.labels: from magicgui.widgets._concrete import _LabeledWidget if not isinstance(TEdI, (_LabeledWidget, JReS)): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MHMs(YKHO, H5ew):\n YKHO.tree.insert(H5ew)", "def O1R3(YKHO, H5ew: Any, TEdI: Component) -> None:\n if not isinstance(TEdI, LG4S):\n YKHO._add(TEdI, *YKHO._key_to_rows_columns(H5ew))", "def JPHp(YKHO, H5ew):\n d6pt = YKHO.search(H5ew)\n YKHO.keys.insert(d6pt, H5ew)", "def JPHp(YKHO, H5...
[ "0.74977267", "0.72943276", "0.70248306", "0.6816359", "0.663488", "0.6604347", "0.658162", "0.6396453", "0.6333509", "0.6331519", "0.62363946", "0.6233498", "0.62247455", "0.62040496", "0.6191764", "0.6189095", "0.6132108", "0.6104652", "0.60987896", "0.60983926", "0.6089103...
0.8277953
0
Return margin between the content and edges of the container.
def XWt4(YKHO) -> tuple[int, int, int, int]: return YKHO._widget._mgui_get_margins()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pydF(YKHO):\n return YKHO._margins", "def MVIL(YKHO):\n return YKHO._generate_spacing_info(YKHO.config['margin'])", "def xdRP(YKHO):\n MUcb.lib.geometry_get_margin.restype = Z9rn.c_float\n return MUcb.lib.geometry_get_margin(YKHO._geometry)", "def fL72(YKHO):\n assert False", "def Mm9j(Y...
[ "0.71554303", "0.7149228", "0.7104188", "0.6999216", "0.6874192", "0.6824018", "0.67398703", "0.64800406", "0.64658856", "0.61194366", "0.5920113", "0.5898274", "0.588148", "0.58542335", "0.58154404", "0.5724995", "0.5639125", "0.55490357", "0.5467832", "0.545791", "0.5391666...
0.6802002
6
Reset choices for all Categorical subWidgets to the default state. If widget._default_choices is a callable, this may NOT be the exact same set of choices as when the widget was instantiated, if the callable relies on external state.
def m9AX(YKHO, *bGrB: Any) -> None: for TEdI in YKHO._list: if hasattr(TEdI, 'reset_choices'): TEdI.reset_choices()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uiau(YKHO):\n YKHO.setValue(YKHO._choices_)", "def ETE8(YKHO):\n return []", "def ka5c(YKHO, GabG=False):\n if YKHO._isDefault:\n YKHO.options = YKHO.__class__.options.copy()\n if GabG:\n for aUGN in YKHO._children:\n aUGN.reset()\n else:\n YKHO.op...
[ "0.6236825", "0.6147855", "0.59383166", "0.5937631", "0.5839361", "0.53093266", "0.5213739", "0.52118415", "0.5211805", "0.52071846", "0.520566", "0.51978725", "0.51608455", "0.509057", "0.5082559", "0.50553024", "0.50463384", "0.5035311", "0.50323635", "0.5012139", "0.501117...
0.7414776
0
Restore the state of the widget from previously saved file at `path`.
def AXOg(YKHO, pmON: str | Path, LpOW: bool=False) -> None: import pickle from pathlib import Path pmON = Path(pmON) if not pmON.exists(): if LpOW: return raise FileNotFoundError(f'Widget state file does not exist: {pmON}') try: nPrm: dict = pickle.loads(pmON.read...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBIE(YKHO, pmON, mWFP=None):\n mWFP = mWFP or YKHO.name\n pmON = Hy7s.path.join(pmON, mWFP)\n with open(pmON, 'rb') as VIsj:\n JBAi = t2lc.load(VIsj)\n YKHO.__dict__.update(JBAi.__dict__)", "def hLQf(YKHO, tfdu):\n super(QDpH, YKHO)._restore(tfdu)\n YKHO._model._restore()", "def wB...
[ "0.7195376", "0.68001056", "0.6709525", "0.66451806", "0.66451806", "0.66451806", "0.6470373", "0.6408319", "0.63664085", "0.60548496", "0.6044801", "0.5989243", "0.5943166", "0.5943166", "0.5929317", "0.591915", "0.58787197", "0.5872494", "0.58546984", "0.5853393", "0.583949...
0.5762056
30
Change categorical labels with some integers.
def mgdX(EcVT): MnDN = nu0g() for iVRZ in EcVT.select_dtypes(include=['object']): EcVT[iVRZ] = MnDN.fit_transform(EcVT[iVRZ]) return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dcdg():\n KUch.intax()", "def fKLU(nWzz, jTqs):\n return (nWzz, oyIN.eye(jTqs, dtype='uint8')[nWzz])", "def ZHad(YKHO, rTQ5):\n if len(YKHO.ints_to_strings) < len(YKHO.label_vocab):\n YKHO.ints_to_strings = {d6pt: UXqs for UXqs, d6pt in YKHO.label_vocab.items()}\n return YKHO.ints_to_str...
[ "0.6711416", "0.6431477", "0.6415793", "0.6367324", "0.6301755", "0.6229059", "0.6198448", "0.612619", "0.61099815", "0.6076366", "0.6072507", "0.60207933", "0.6009409", "0.59942836", "0.5955582", "0.59382176", "0.5936906", "0.59165394", "0.58953613", "0.58778775", "0.587513"...
0.0
-1
Generate onehot encoded class vector.
def xiBs(iVRZ): MnDN = nu0g() MnDN.fit(iVRZ) SOLZ = MnDN.transform(iVRZ) QVQD = fKLU(SOLZ) return QVQD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(WKvO, TFPw):\n return oyIN.eye(TFPw)[WKvO]", "def KLLm(LVAh, jTqs):\n return oyIN.eye(jTqs)[LVAh]", "def KLLm(ijL8):\n ijL8 = ijL8.reshape(len(ijL8))\n uqVt = int(oyIN.max(ijL8)) + 1\n uqVt = 6\n return oyIN.eye(uqVt)[oyIN.array(ijL8, dtype=oyIN.int32)]", "def KLLm(WEJA, jTqs):\n ...
[ "0.8248339", "0.8198288", "0.8008788", "0.798322", "0.79610676", "0.79600346", "0.7958679", "0.79526263", "0.79490805", "0.7909179", "0.7908739", "0.78891355", "0.7864662", "0.78570116", "0.784551", "0.7784665", "0.7784665", "0.777746", "0.776651", "0.7764797", "0.7743757", ...
0.0
-1
set the learning rate
def LruE(K0do, tspZ): for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kVtO(YKHO, mVUw):\n YKHO.SGD.set_learning_rate(mVUw)", "def NcuP(YKHO):\n b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num_epoch) ** YKHO.params.power\n for Lwm5 in YKHO.opt.param_groups:\n Lwm5['lr'] = b0Ix\n print('Change learning rate into %f' % b0Ix)\n YKHO.summ...
[ "0.8475554", "0.77922183", "0.77061725", "0.7705153", "0.7653821", "0.76475346", "0.76475346", "0.76323247", "0.7563035", "0.7526534", "0.75165945", "0.75116456", "0.7480992", "0.7465035", "0.7451768", "0.7451768", "0.74436015", "0.7438059", "0.7427731", "0.7413679", "0.74035...
0.0
-1
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)", "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\...
[ "0.8331214", "0.8284662", "0.82381004", "0.8229767", "0.82202226", "0.81864446", "0.81847763", "0.8175173", "0.8171541", "0.81699467", "0.81664646", "0.81645083", "0.81637454", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "0.81622064", "...
0.7847017
94
Get a copy of the current attributes dictionary.
def iLfU(YKHO): return dict(YKHO._attrs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return gRy7(dict(YKHO).copy())", "def h6gc(YKHO):\n return dict(YKHO.attributes)", "def h6gc(YKHO):\n return dict(YKHO.attributes)", "def h6gc(YKHO):\n return dict(YKHO.attributes)", "def azoT(YKHO):\n return dict(YKHO.__attributes)", "def iOI9(YKHO):\n return YKHO.__a...
[ "0.84263563", "0.7721028", "0.7721028", "0.7721028", "0.7617698", "0.760092", "0.7590136", "0.7506497", "0.7405794", "0.7388799", "0.7299701", "0.72899675", "0.72865224", "0.72066426", "0.7111404", "0.7039502", "0.70130455", "0.7012649", "0.6998842", "0.6996243", "0.6947482",...
0.74433565
8
set the weights and the bias of the model
def TLrO(YKHO, WKvO): NArs = WKvO.reshape((-1, YKHO.Y.shape[1])) if YKHO.add_bias: YKHO.bias = NArs[0:1] YKHO.W = NArs[1:] else: YKHO.W = NArs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNuA(YKHO, _mSQ):\n YKHO.model.set_weights(_mSQ)", "def sNuA(YKHO, yzQ0):\n YKHO.nn.set_param_values(yzQ0)", "def sNuA(YKHO, _mSQ):\n YKHO.weights = _mSQ", "def vB93(C3ST):\n ...", "def TLrO(YKHO, upAO, oug5=None):\n YKHO.weight = ht2j.nn.Parameter(ht2j.as_tensor(upAO))\n if oug5 is n...
[ "0.7855509", "0.7727223", "0.7703758", "0.7607408", "0.74730814", "0.7432303", "0.740899", "0.73724484", "0.7362923", "0.7354686", "0.7343699", "0.73327285", "0.7237629", "0.7233025", "0.7187846", "0.71453327", "0.71410644", "0.71410644", "0.713035", "0.7129434", "0.7129434",...
0.0
-1
initialize the model parameters The bias is set to the mean of self.Y. The W vector is set to a zero mean random normal with standard deviation = scale
def DGqa(YKHO, NXpY=0.0001): if YKHO.add_bias: YKHO.bias = YKHO.Y.mean(0)[oyIN.newaxis, :] YKHO.W = oyIN.random.normal(scale=NXpY, size=(YKHO.X.shape[1], YKHO.Y.shape[1]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8Xp(YKHO):\n nIVP = 1.0 / epAf.sqrt(YKHO.weight.data.size(1))\n YKHO.weight.data.uniform_(-nIVP, nIVP)\n if YKHO.bias is not None:\n YKHO.bias.data.uniform_(-nIVP, nIVP)", "def vB93(YKHO):\n YKHO.w = oyIN.random.randn(YKHO.D) / oyIN.sqrt(YKHO.D)", "def K55i(YKHO):\n for YRbF in range...
[ "0.8181459", "0.748455", "0.7481587", "0.7390689", "0.7365083", "0.7334129", "0.73298407", "0.7327724", "0.73068106", "0.730381", "0.730381", "0.7300364", "0.7240218", "0.7238535", "0.7238535", "0.7238535", "0.7224468", "0.71588415", "0.7156189", "0.7139337", "0.7136962", "...
0.8557049
0
Cleans the tweets and makes a set of all the words
def Wqra(knSv, kObQ): G9jH.info('Making pickle for the dictionary') MJy5 = set() for Mau6 in YSRH(knSv)['dat']: V22M, bGrB = rq7K(Mau6['text']) for GIN8 in V22M: MJy5.add(GIN8) G9jH.info('Number unique words: {}'.format(len(MJy5))) k7Qm(MJy5, kObQ) G9jH.info('Saved di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B18N(YKHO):\n h9J1 = []\n for Mau6 in YKHO.tweets:\n h9J1.extend(YKHO.clean_tweet(Mau6).split())\n return h9J1", "def X8gu(YKHO, Mau6):\n Mau6 = YKHO.clean_urls(Mau6)\n Mau6 = YKHO.clean_hashtags(Mau6)\n Mau6 = YKHO.clean_mentions(Mau6)\n Mau6 = YKHO.clean_emojis_and_smileys(Mau6)...
[ "0.72377753", "0.71261615", "0.70121723", "0.69805133", "0.69693035", "0.69652164", "0.6947083", "0.6898583", "0.687569", "0.6853566", "0.68455225", "0.6836043", "0.6786327", "0.67730886", "0.6744922", "0.6730578", "0.6696421", "0.6589141", "0.6567265", "0.65516764", "0.65347...
0.0
-1
the function to test the function of updating the beneficiary entity without a ID
def ZMey(YKHO): print('the test function name: {}'.format(HwRy._getframe().f_code.co_name)) try: bD7m = gxEw('beneficiary:beneficiary-entity-by-id-update') geh0 = YKHO.client.get(bD7m, content_type='application/json') return YKHO.assertTrue(geh0.status_code, 200) except Exception as ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HtU_(YKHO):\n print('the test function name: {}'.format(HwRy._getframe().f_code.co_name))\n bD7m = gxEw('beneficiary:beneficiary-entity-by-id-update', kwargs={'pk': 1})\n geh0 = YKHO.client.post(bD7m, content_type='application/json')\n return YKHO.assertTrue(geh0.status_code, 200)", "def spxY(YKH...
[ "0.77336633", "0.72154415", "0.71757287", "0.71694785", "0.71415323", "0.6948796", "0.6934264", "0.6863995", "0.68329513", "0.68329513", "0.68329513", "0.68132126", "0.67864555", "0.672461", "0.67134356", "0.66681844", "0.6665831", "0.66343844", "0.6615086", "0.65882564", "0....
0.768389
1
Sets the id of this RegisteredFaceWithFaceSnaps.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def id(YKHO, id):\n YKHO._id = id", "def id(YKHO, id):\n YKHO._id = id" ]
[ "0.6488453", "0.64652675", "0.6348114", "0.6348114" ]
0.6352402
65
Sets the registered_face_id of this RegisteredFaceWithFaceSnaps.
def pNSW(YKHO, pNSW): YKHO._registered_face_id = pNSW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mUiZ(YKHO, BWXx):\n YKHO.face = BWXx", "def mUiZ(YKHO, BWXx):\n YKHO.face = BWXx", "def vwwp(YKHO, RpU_):\n if YKHO.face is not None:\n YKHO.face.remove_point(YKHO)\n YKHO.face = RpU_\n YKHO.face.add_point(YKHO)", "def pCxt(YKHO, RpU_):\n if RpU_.uuid is None:\n RpU_.uuid ...
[ "0.58917874", "0.58917874", "0.54671526", "0.54602313", "0.5451022", "0.5242556", "0.52268106", "0.51698357", "0.5094764", "0.50829196", "0.50829196", "0.50829196", "0.505928", "0.505928", "0.5056116", "0.50340617", "0.49553692", "0.49553692", "0.49553692", "0.49246573", "0.4...
0.8254062
0
Sets the full_name of this RegisteredFaceWithFaceSnaps.
def eHMM(YKHO, eHMM): YKHO._full_name = eHMM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gBdT(YKHO, BWXx):\n YKHO.fullname = BWXx", "def V_VB(YKHO, V_VB):\n YKHO._user_full_name = V_VB", "def gBdT(YKHO, BWXx):\n raise NotImplementedError('set_fullname')", "def ZUM3(YKHO, vBWh: bool=False) -> str:\n return YKHO.name_full if vBWh else YKHO.name", "def eHMM(YKHO):\n return YKHO...
[ "0.64851123", "0.6422021", "0.6260016", "0.6017037", "0.5753263", "0.5751759", "0.56307304", "0.5622065", "0.55616325", "0.54762983", "0.54762983", "0.54762983", "0.54762983", "0.54762983", "0.5465241", "0.54576063", "0.54576063", "0.54576063", "0.54501486", "0.54501486", "0....
0.76909584
0
Sets the face_snaps of this RegisteredFaceWithFaceSnaps.
def Blh1(YKHO, Blh1): YKHO._face_snaps = Blh1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def die6(YKHO, die6):\n YKHO._screenshots = die6", "def vZa6(YKHO, vZa6):\n YKHO._snap = vZa6", "def ygBj(YKHO, ygBj):\n YKHO._ifaces = ygBj", "def jEnn(YKHO, jEnn):\n YKHO._manifestations_shoots = jEnn", "def EkGM(YKHO, WKvO, LVAh):\n YKHO._snap_limits = (WKvO, LVAh)\n YKHO.Snap()", "d...
[ "0.5244599", "0.5218898", "0.51472676", "0.5071176", "0.5008355", "0.46705747", "0.46705747", "0.46705747", "0.46705747", "0.45809054", "0.44767794", "0.44584414", "0.44417167", "0.44373494", "0.43795556", "0.4360621", "0.43574172", "0.4342645", "0.43396005", "0.43237007", "0...
0.887337
0
Sets the age of this RegisteredFaceWithFaceSnaps.
def ZJe_(YKHO, ZJe_): YKHO._age = ZJe_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kjC_(YKHO, ZJe_):\n YKHO.__age = ZJe_", "def HaIk(YKHO, ZJe_):\n YKHO._age = ZJe_", "def kjC_(YKHO, ZJe_):\n YKHO.age = float(ZJe_)", "def kjC_(YKHO, NI3A):\n YKHO.age = NI3A", "def HaIk(YKHO, ZJe_):\n YKHO.age = ZJe_", "def ZJe_(YKHO):\n YKHO._age += 1", "def wlGd(YKHO, Ty9i, tye...
[ "0.7408455", "0.73629194", "0.7062379", "0.70445997", "0.6954864", "0.6512156", "0.6507787", "0.6427091", "0.642616", "0.6103652", "0.6099601", "0.6032122", "0.5772501", "0.5721763", "0.57093084", "0.56830156", "0.56341314", "0.56304514", "0.56185305", "0.5616488", "0.5517378...
0.73833
2
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, tUsi): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
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 if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8456063", "0.83918154", "0.8144437", "0.8140196", "0.8132038", "0.8093834", "0.80918837", "0.80918837", "0.80918837", "0.80852824", "0.80852824", "0.807626", "0.807626", "0.80657643" ]
0.0
-1
Get the source template files directory
def fdjU(YKHO): if YKHO.srcdir == None: TCZ_ = YKHO.getTmplDir() YKHO.srcdir = Hy7s.path.join(TCZ_, 'template', YKHO.args.tmpl) return YKHO.srcdir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VQOr():\n return Hy7s.path.join(EcEz.getProjectRootDir(), h4QA)", "def zAgA(YKHO):\n return YKHO.templates_dir", "def bMoe(YKHO):\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'default_config', 'divvy_templates')", "def oeB0():\n return Hy7s.path.abspath(Hy7s.path.join(hkV2, Hy7s.pardir, H...
[ "0.78034294", "0.7770891", "0.7554223", "0.7232547", "0.7142863", "0.7097075", "0.70330364", "0.70065504", "0.6955735", "0.69521964", "0.6943259", "0.69353086", "0.6917054", "0.68860227", "0.68817574", "0.6861956", "0.6797765", "0.67940515", "0.67331064", "0.6722607", "0.6722...
0.81686807
0
Retrieve camera parameters and 3D coordinates.
def JCWQ(NArs, S06R, L8b6): jbXL = NArs[:S06R * 9].reshape((S06R, 9)) Vigh = [] for Z9rn in jbXL: A3Vt, a1PO = DgO1(Z9rn) Vigh.append(RUQe(A3Vt, a1PO)) CyDe = [] pqhE = 0 for Mkmy in L8b6: Ty13 = Mkmy * 3 CyDe.append(NArs[S06R * 9 + pqhE:S06R * 9 + pqhE + Ty13].re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W4D3(YKHO):\n return (YKHO.camera.getHeight(), YKHO.camera.getWidth(), 4)", "def Livo(aYnK):\n AOlJ = aYnK[0]\n stDt = aYnK[1]\n uRwD = aYnK[2]\n UV8M = aYnK[3]\n vHO5 = aYnK[4]\n nMvt = oyIN.array([[AOlJ, uRwD, UV8M], [0, stDt, vHO5], [0, 0, 1]], dtype=oyIN.float64)\n A3Vt = oyIN.arr...
[ "0.6542464", "0.6417448", "0.626672", "0.62348", "0.61959046", "0.6163532", "0.61304396", "0.61248636", "0.61239195", "0.6123729", "0.6114265", "0.6076176", "0.6076176", "0.5992724", "0.5981369", "0.5965596", "0.5945441", "0.59410375", "0.59268504", "0.5913921", "0.59042203",...
0.57563376
28
Encode given columns of X based on the learned features.
def dSez(YKHO, EcVT: pd.DataFrame, LVAh=None) -> rLdf.DataFrame: YKHO.fit(EcVT, LVAh) return YKHO.transform(EcVT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(YKHO, ZLJ_):\n if not ZLJ_:\n return None\n G9jH.info('one-hot-encoding columns: %s' % ','.join(ZLJ_))\n MtOy = rLdf.concat((YKHO.train[ZLJ_], YKHO.test[ZLJ_]))\n MnDN = ZvG6.OneHotEncoder()\n ERVO = MnDN.fit_transform(MtOy).sorted_indices()\n CXnw = YKHO.train.shape[0]\n gx8m ...
[ "0.6647285", "0.65819275", "0.6553035", "0.6539307", "0.64955664", "0.64740604", "0.64628875", "0.6456644", "0.64290786", "0.6427065", "0.6360779", "0.63579065", "0.63483477", "0.6312137", "0.6286197", "0.6271494", "0.6252841", "0.6241294", "0.6235882", "0.62332755", "0.62330...
0.0
-1
Read a dataframe from a CSV file using pandas.
def YOlb(pmON: pathlib.Path, **B2fa) -> rLdf.DataFrame: return rLdf.read_csv(pmON, sep=';', float_precision='high', **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vBd4(Ux0P):\n jQ3Z = rLdf.read_csv(Ux0P)\n return jQ3Z", "def gAn6(z36O: str) -> rLdf.DataFrame:\n return rLdf.read_csv(z36O, header=0)", "def LvsP(YKHO, pmON=None):\n jQ3Z = rLdf.read_csv(pmON)\n return jQ3Z", "def ZK4F(YKHO, VqRE):\n YKHO.dataframe = rLdf.load_csv(VqRE, separator='')"...
[ "0.79322445", "0.79194576", "0.77785325", "0.77730066", "0.76640373", "0.76077795", "0.75767684", "0.7570743", "0.75273764", "0.74582297", "0.74400705", "0.74130535", "0.7375998", "0.73672867", "0.73646027", "0.73432344", "0.73432344", "0.73432344", "0.7298824", "0.72938806", ...
0.7194139
23
Write a dataframe to a CSV file using pandas.
def HpeX(jQ3Z: pd.DataFrame, pmON: pathlib.Path, **B2fa) -> None: jQ3Z.to_csv(pmON, sep=';', float_format='%.8f', **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xMnm(gIsw, bOBl):\n print('\\nSaved result to {}\\n'.format(gIsw))\n bOBl.to_csv(gIsw, mode='a', header=False, index=False)", "def eL6F(Ux0P: str, jQ3Z: pandas.DataFrame) -> None:\n print('\\nWriting to csv file: ' + Ux0P + '... ', end='', flush=True)\n jQ3Z.to_csv(Ux0P, sep=',', quotechar='\"', ...
[ "0.8079099", "0.80030954", "0.7982537", "0.78449696", "0.7796473", "0.7676012", "0.76063156", "0.7544861", "0.7517614", "0.7511816", "0.7484378", "0.74792945", "0.7419916", "0.73280257", "0.7312606", "0.7276958", "0.7202785", "0.7191054", "0.718852", "0.71448267", "0.7143549"...
0.7732134
5
Whether interactability checks will be applied to file type input elements. The default is false.
def UsHO(YKHO, BWXx: bool): YKHO._caps['strictFileInteractability'] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yNXK(YKHO):\n return all(('filesubmission' not in rmft.allowed_inputfields for rmft in YKHO.responders.values()))", "def tSZB(YKHO):\n if YKHO._allowed_ext:\n if YKHO.get_ext() not in YKHO._allowed_ext:\n return False\n return True", "def Nz4g(Jyyj):\n return isinstance(Jyyj.f...
[ "0.6314451", "0.62356764", "0.59860724", "0.5693379", "0.56021535", "0.55845374", "0.54977125", "0.54533404", "0.5451383", "0.54463464", "0.538172", "0.53462267", "0.5315613", "0.5309475", "0.53040415", "0.52930903", "0.5244472", "0.5235056", "0.52224654", "0.52160406", "0.52...
0.66873574
0
Group a list of elements into tuples of size n.
def JPRO(vC9B, exwG): assert len(vC9B) % exwG == 0 U5bT = [] for YRbF in range(0, len(vC9B), exwG): Ty9i = vC9B[YRbF:YRbF + exwG] U5bT.append(tuple(Ty9i)) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E0cw(exwG, OxJJ):\n qIxc = [iter(OxJJ)] * exwG\n return list((tuple([tTpl for tTpl in a1PO if tTpl != None]) for a1PO in igF0(*qIxc)))", "def uOe2(yv6U, exwG):\n return zip(*[yv6U[YRbF::exwG] for YRbF in range(exwG)])", "def E0cw(OxJJ, exwG):\n qIxc = [iter(OxJJ)] * exwG\n return zip(*qIxc)"...
[ "0.7895249", "0.7572651", "0.7503761", "0.74917966", "0.74416924", "0.73648375", "0.7201025", "0.70826304", "0.7065605", "0.7054971", "0.7054084", "0.7026747", "0.6967191", "0.6898973", "0.68613786", "0.68413454", "0.6835167", "0.6828687", "0.67922187", "0.67667115", "0.67431...
0.86011666
0
Sets initial parameters as zeros
def qhPr(C3ST: LogisticRegression): TFPw = 15 ROaS = 33 C3ST.classes_ = oyIN.array([YRbF for YRbF in range(15)]) C3ST.coef_ = oyIN.zeros((TFPw, ROaS)) if C3ST.fit_intercept: C3ST.intercept_ = oyIN.zeros((TFPw,))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0Ko(YKHO, cflT):\n YKHO._set_z0(cflT)\n YKHO._set_parameters()", "def K_PL(YKHO, _lfT):\n if not len(_lfT) == 2 * YKHO.nZero:\n raise IndexError('Number of zero mode parameters does not match')\n YKHO.hasZMP = True\n YKHO.zeroModeParameters = _lfT", "def Q0Ko(YKHO):\n FJYT = getat...
[ "0.7390067", "0.73613685", "0.7184451", "0.71802145", "0.71612483", "0.70880985", "0.70771194", "0.70280796", "0.6991509", "0.69013304", "0.6874983", "0.68693817", "0.68398345", "0.6763932", "0.6763932", "0.6763932", "0.67557013", "0.6742511", "0.6736647", "0.6732402", "0.672...
0.62557304
66
resize image to a size multiple of 32 which is required by the network
def lmn5(YKHO, Xn71, zeMq=512): MKlR, yzQ0, bGrB = Xn71.shape SE8I = yzQ0 z0pE = MKlR if max(z0pE, SE8I) > zeMq: dMYj = float(zeMq) / z0pE if z0pE > SE8I else float(zeMq) / SE8I else: dMYj = 1.0 z0pE = int(z0pE * dMYj) SE8I = int(SE8I * dMYj) z0pE = z0pE if z0pE % 32 == 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QM3h(WbAn):\n mVUw = 1\n while min(WbAn['img'].shape[:2]) > 736:\n NI2E = 736\n if WbAn['img'].shape[0] > WbAn['img'].shape[1]:\n if True:\n mVUw = NI2E / WbAn['img'].shape[1]\n Q6uT = Reog.Sequential([Reog.Scale({'height': 'keep-aspect-ratio', 'widt...
[ "0.70825875", "0.7021497", "0.69271106", "0.68081397", "0.66379243", "0.66232806", "0.6529377", "0.6525579", "0.6510065", "0.65004414", "0.64680946", "0.64599925", "0.6458243", "0.6455653", "0.6437946", "0.64353275", "0.64297265", "0.6396388", "0.6383566", "0.6377056", "0.627...
0.0
-1
Gets a native docker image flag and returns its mapped native image name from the 'docker_native_image_config.json' file. If the requested docker image flag doesn't have a mapped native image in the config file write to the logs.
def BlxX(YKHO, DcHu: str) -> uLKX[str, None]: qYxM = Oj41() if (ij6F := qYxM.flags_versions_mapping.get(DcHu)): return ij6F else: bo34.info(f"Skipping checks on docker for '{DcHu}' - The requested native image: '{DcHu}' is not supported. For supported native image versions please see: 'Tests...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3RG(YKHO, ij6F: str) -> uLKX[str, None]:\n bo34.info(f'{YKHO._pack_name} - Get Versioned Native Image - {ij6F} - Started')\n qYxM = Oj41()\n return qYxM.get_native_image_reference(ij6F)", "def i0fi(YKHO, Evw7: str) -> uLKX[str, None]:\n zRsS = f'{YKHO._pack_name} - Get Dev Native Image'\n bo3...
[ "0.6022707", "0.5634478", "0.5631012", "0.52040356", "0.51978153", "0.5037897", "0.501338", "0.4984199", "0.49565476", "0.49448016", "0.4941051", "0.48314983", "0.48207644", "0.4813704", "0.48090866", "0.48082003", "0.47982135", "0.47972023", "0.47861397", "0.4774008", "0.475...
0.8335949
0
Gets a versioned native image name, and finds it's reference (tag) in the docker_native_image_config.json file.
def K3RG(YKHO, ij6F: str) -> uLKX[str, None]: bo34.info(f'{YKHO._pack_name} - Get Versioned Native Image - {ij6F} - Started') qYxM = Oj41() return qYxM.get_native_image_reference(ij6F)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BlxX(YKHO, DcHu: str) -> uLKX[str, None]:\n qYxM = Oj41()\n if (ij6F := qYxM.flags_versions_mapping.get(DcHu)):\n return ij6F\n else:\n bo34.info(f\"Skipping checks on docker for '{DcHu}' - The requested native image: '{DcHu}' is not supported. For supported native image versions please ...
[ "0.76866686", "0.73347646", "0.67115", "0.6559359", "0.64129794", "0.6269719", "0.6239601", "0.61873376", "0.60529107", "0.59456474", "0.59262145", "0.59131044", "0.5895089", "0.5894241", "0.5891443", "0.58681995", "0.58671135", "0.5859722", "0.5798949", "0.57781386", "0.5745...
0.80080914
0
Sets the key_manager_status of this EncryptionKeyManagerInfo.
def etk9(YKHO, etk9): YKHO._key_manager_status = etk9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IfJM(YKHO, IfJM):\n YKHO._key_manager = IfJM", "def N8QX(YKHO, N8QX):\n YKHO._key_manager_info = N8QX", "def ZPia(YKHO, H5ew):\n YKHO.core.log.info('Key Manager key update')\n _olp = YKHO.core.get_client_protocol(H5ew.machine_id)\n if _olp is not None:\n Amyp = zZUV().create(kind=zZUV...
[ "0.65761554", "0.6564906", "0.57830924", "0.5533103", "0.5406321", "0.5239027", "0.52350456", "0.52350456", "0.52350456", "0.5202071", "0.5194683", "0.5191662", "0.5098668", "0.5052411", "0.5024152", "0.501601", "0.5010872", "0.5007042", "0.49562296", "0.49360225", "0.4936022...
0.8637964
0
Sets the action_needed of this EncryptionKeyManagerInfo.
def mO4q(YKHO, mO4q): YKHO._action_needed = mO4q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kS9k(YKHO, kS9k):\n YKHO._action_required = kS9k", "def g2GR(YKHO, XeOP):\n\n def Uzsc(ZO0d):\n YKHO.useAction = XeOP\n YKHO.actions.addAction(Uzsc)", "def Ddsp(YKHO, XeOP):\n YKHO.__action = XeOP", "def Ddsp(YKHO, XeOP):\n YKHO.action = XeOP", "def Ddsp(YKHO, XeOP):\n YKHO.act...
[ "0.5930235", "0.5133524", "0.49000227", "0.4764496", "0.4764496", "0.47547382", "0.47405764", "0.47340602", "0.47340602", "0.47340602", "0.47340602", "0.47340602", "0.47340602", "0.46857134", "0.46467784", "0.46454233", "0.46234223", "0.46214762", "0.46170697", "0.45745027", ...
0.7251819
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, gzoU): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, gzoU): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Inserts node at beginning of linked list.
def qIuc(YKHO, WKvO): YKHO.insert(0, WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QZi3(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.head = Msxl(nPrm)\n else:\n ycBG = YKHO.head\n YKHO.head = Msxl(nPrm)\n YKHO.head.next = ycBG", "def qIuc(YKHO, BWXx):\n if YKHO.head is None:\n YKHO.head = o7DN(BWXx)\n return\n Esd_ = o7DN(BWXx)\n Esd_...
[ "0.8129536", "0.7683391", "0.76653755", "0.7664685", "0.763414", "0.7597075", "0.75797606", "0.7565086", "0.75576365", "0.7549218", "0.7541743", "0.7515407", "0.7418321", "0.73824435", "0.7310312", "0.72734404", "0.72648054", "0.72352403", "0.72060174", "0.71992254", "0.71769...
0.6768356
39
Inserts node at end of linked list.
def SStx(YKHO, WKvO): YKHO.insert(len(YKHO), WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ze1L(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.head = Msxl(nPrm)\n else:\n ycBG = YKHO.head\n while ycBG.next is not None:\n ycBG = ycBG.next\n ycBG.next = Msxl(nPrm)", "def m0zt(YKHO, Q6kx, Esd_):\n Esd_.next = Q6kx.next\n Q6kx.next = Esd_", "def m0zt(Q...
[ "0.81369025", "0.7400838", "0.7368428", "0.7308944", "0.72780937", "0.72697634", "0.7198543", "0.70404124", "0.7015562", "0.6943148", "0.6905299", "0.69019985", "0.68692124", "0.6867615", "0.682679", "0.679146", "0.67738575", "0.6769764", "0.66958255", "0.66952467", "0.669502...
0.0
-1
Traverses linked list to return the payload of node at requested index value. If index value is out of range an error message is displayed.
def OP2O(YKHO, YRbF): try: return YKHO.__getIthNode(YRbF).getPayload() except IndexError: print('ERROR: Index value out of range.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, d6pt=0):\n if d6pt < 0 or d6pt >= YKHO._size:\n raise M9dY('index out of range.')\n YRbF = 0\n kMLo = YKHO._head\n while YRbF < d6pt:\n kMLo = kMLo.next\n YRbF += 1\n return kMLo.value", "def jI2q(YKHO, d6pt):\n if YKHO.empty():\n return 'Linked List E...
[ "0.72877437", "0.72538054", "0.72352177", "0.7169649", "0.71562105", "0.70674276", "0.7052232", "0.70235115", "0.6994789", "0.69922054", "0.6972242", "0.69682443", "0.69496", "0.69441646", "0.6935038", "0.6903717", "0.6871632", "0.6851099", "0.6842729", "0.6818132", "0.679766...
0.72976935
0
set the owner in the payload and also used for victims
def KVVd(YKHO, nPrm): YKHO._owner = YKHO._uni(nPrm) YKHO.add_payload('owner', nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVVd(YKHO, qsJ6):\n YKHO.settings['owner'] = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6):\n YKHO._owner = qsJ6", "def qsJ6(YKHO, qsJ6: str):\n YKHO._owner = qsJ...
[ "0.7266226", "0.7238346", "0.7238346", "0.7238346", "0.7238346", "0.72242475", "0.7169581", "0.7086285", "0.7086285", "0.7086285", "0.7086285", "0.69276613", "0.6885551", "0.6862052", "0.66897625", "0.6606244", "0.65946996", "0.64924765", "0.6333816", "0.6333816", "0.6333816"...
0.82212836
0
indicate if this request supports owners
def eIQl(YKHO, nPrm): YKHO._owner_allowed = YKHO._uni(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def cog_check(YKHO, OaeV: utils.Context):\n if OaeV.author.id in YKHO.bot.config['owners']:\n return True\n raise wQcs.NotOwner", "def EC7F(YKHO):\n CBIr = YKHO.request.user\n object = YKHO.get_object()\n if object.owned_by(CBIr):\n return True\n else:\n return False"...
[ "0.662087", "0.65712994", "0.6502403", "0.6445665", "0.6441956", "0.64249283", "0.6384449", "0.6351287", "0.6337761", "0.63308", "0.6293859", "0.6249096", "0.62407714", "0.6234601", "0.6234601", "0.6209713", "0.6189197", "0.617085", "0.6143529", "0.6110992", "0.6093328", "0...
0.6089248
21
Basic text clean and creating list of tokens Really basic cleaning. One big one missing is stopwords
def YAg3(l3kg): l5Ny = [YRbF.lower() for YRbF in l3kg] l5Ny = [ZbWC.subn('\\s+|\n+', ' ', YRbF)[0] for YRbF in l5Ny] l5Ny = [ZbWC.subn('[.!@#$%^&*()-_+=,./?"\'|\\}{:;]+', ' ', YRbF)[0] for YRbF in l5Ny] l5Ny = [ZbWC.split('\\s+', YRbF) for YRbF in l5Ny] l5Ny = [[YRbF for YRbF in r845 if YRbF != ''] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s7oB(l5Ny):\n s2mk = wr3U(l5Ny)\n s2mk = nkVl(s2mk)\n return s2mk", "def OTws(przZ):\n b0j5 = M9Fq('\\\\w+')\n s2mk = b0j5.tokenize(przZ.lower())\n hwHU = set(Dhdw.corpus.stopwords.words('english'))\n i6lF = [yzQ0 for yzQ0 in s2mk if not yzQ0 in hwHU]\n return i6lF", "def wr3U(l5Ny)...
[ "0.81097025", "0.78711426", "0.7840307", "0.7787952", "0.7713275", "0.76837844", "0.7656022", "0.7638737", "0.7638566", "0.76237935", "0.75959116", "0.75959116", "0.75924206", "0.75757957", "0.7566537", "0.7562676", "0.7547082", "0.7541691", "0.74590874", "0.74234074", "0.738...
0.0
-1
Restores a previously saved model.
def uyMl(YKHO, AGPF): with ZylS.Session() as cb_Q: ZylS.saved_model.loader.load(cb_Q, [ZylS.saved_model.tag_constants.SERVING], AGPF) YKHO.model = ZylS.contrib.predictor.from_saved_model(AGPF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wBIE(YKHO):\n if YKHO._restored_model:\n return\n with YKHO.eval_graph.graph.as_default():\n x8fl = YKHO._find_last_checkpoint()\n jkyf = ZylS.train.Saver()\n jkyf.restore(YKHO._get_shared_session(train=False), x8fl)\n YKHO._restored_model = True", "def p7DV(YKHO, C3S...
[ "0.7627033", "0.7383768", "0.7218079", "0.7200881", "0.7194437", "0.70792776", "0.7075553", "0.70614964", "0.7019826", "0.70197797", "0.70011765", "0.68946534", "0.68306", "0.67819273", "0.67714393", "0.6716831", "0.66678756", "0.6637887", "0.6637105", "0.6612508", "0.6610946...
0.0
-1
Check whether a given string is a number
def ye72(YKHO, wEf2): try: float(wEf2) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except ValueError:\n return False", "def QirG(Dhyu):\n return Myyj(Dhyu) or QpCZ(Dhyu)", "def ye72(KCHu):\n try:\n int(KCHu)\n return True\n except ValueError:\n return False", "def ye72(vIwR):\n tr...
[ "0.8599215", "0.8594775", "0.8590061", "0.85404444", "0.8518628", "0.8328218", "0.83216244", "0.82936364", "0.82936364", "0.82936364", "0.8271122", "0.82399917", "0.81856", "0.8179802", "0.80999064", "0.80885744", "0.80733865", "0.8015332", "0.7957879", "0.795744", "0.7951730...
0.72543204
65
Extract features of the loaded sample.
def carQ(YKHO): YKHO.extract_features_static() YKHO.extract_features_dynamic()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q2CL(YKHO):\n return {exwG: YKHO._extract_feature(eHNT) for exwG, eHNT in YKHO.features.items()}", "def yxBv(YKHO, V52X):\n veV6", "def uA4Y(YKHO, bySB):\n pass", "def carQ(YKHO, g4y1):\n pass", "def carQ(YKHO, mvm2):\n L77v = JPaR(YKHO.features)\n GSwS = Hy7s.path.join(Hy7s.path.join...
[ "0.736281", "0.7257807", "0.7232119", "0.70687616", "0.70373356", "0.6754617", "0.6754617", "0.67102116", "0.6704189", "0.6697711", "0.6641419", "0.6640016", "0.6628544", "0.6551657", "0.65497965", "0.6530647", "0.65214807", "0.6497448", "0.64748424", "0.6471052", "0.6450408"...
0.7804912
0
Create features form results return by heuristic tools. Not available for current JSON content.
def w2rL(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def carQ(YKHO):\n YKHO.extract_features_static()\n YKHO.extract_features_dynamic()", "def b4z6(YKHO, nPrm):\n pass", "def yxBv(YKHO, V52X):\n veV6", "def TJvP(YKHO):\n dzye = dict()\n dzye['bias'] = 1.0\n dzye['user:' + YKHO.user] = 1.0\n dzye['format:' + YKHO.format] = 1.0\n dzye[...
[ "0.6555898", "0.6405811", "0.6138835", "0.6118346", "0.6083954", "0.6080781", "0.5991696", "0.59778917", "0.5952428", "0.59330773", "0.59279025", "0.59266144", "0.5886324", "0.5866058", "0.5846722", "0.5834687", "0.5818833", "0.58111763", "0.57806045", "0.5755879", "0.5750794...
0.0
-1
Tests if this resource is a group. A resource that is a group can be used in the group sessions.
def Kagf(YKHO): return YKHO._my_map['group']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kagf(YKHO):\n return YKHO._is_group", "def Kagf(YEnM) -> bool:\n return hasattr(YEnM, V8hM.GROUP_ATTR_NAME)", "def Kagf(YKHO, IXKo):\n return IXKo in YKHO._group", "def VNly(YKHO) -> bool:\n return YKHO.all_icon is not None and YKHO.all_name is not None", "def cTKt(YKHO):\n return V0S5()...
[ "0.8004295", "0.77944714", "0.7665563", "0.7171541", "0.7098044", "0.69698185", "0.67225504", "0.66702867", "0.6638505", "0.65491295", "0.6529278", "0.64755046", "0.63670874", "0.6301761", "0.6290568", "0.62850153", "0.6273045", "0.6272149", "0.6267542", "0.6267542", "0.62629...
0.8218186
0
Tests if this resource is a demographic. A resource that is a demographic can be used in the demographic service and the group sessions.
def OGQ0(YKHO): return YKHO._demographic
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FdBY(YKHO) -> None:\n RQDI = oDIU.Collection.create_default_collection('0')\n YKHO.assertEqual(RQDI.is_demo, True)\n FiM3 = oDIU.Collection.create_default_collection('a')\n YKHO.assertEqual(FiM3.is_demo, False)\n a3nX = oDIU.Collection.create_default_collection('abcd')\n YKHO.assertEqual(a3nX...
[ "0.56513476", "0.5539796", "0.53276396", "0.5253306", "0.51560223", "0.51426125", "0.51358867", "0.51073253", "0.50527936", "0.5031034", "0.50178134", "0.50139415", "0.49925047", "0.49802807", "0.49349448", "0.49217823", "0.4911247", "0.4902479", "0.48927996", "0.48890322", "...
0.81982607
0
Gets the asset ``Id``.
def VJhh(YKHO): if not YKHO._my_map['avatarId']: raise UAju.IllegalState('this Resource has no avatar') else: return zZ1q(YKHO._my_map['avatarId'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uY1h(YKHO) -> str:\n return YKHO._asset_id", "def uY1h(YKHO) -> str:\n return YKHO.__asset_id", "def unpH(gNR4):\n return zd79.get_uid(gNR4)", "def id(YKHO):\n return YKHO.raw_resource['id']", "def Wswm(YKHO) -> dv6U:\n return YKHO.asset", "def id(YKHO):\n return YKHO.cached_data['i...
[ "0.8306181", "0.82968944", "0.73428214", "0.7057386", "0.7042391", "0.7009156", "0.6845345", "0.68321025", "0.6825759", "0.67866254", "0.6773195", "0.6754204", "0.67397374", "0.67397374", "0.67397374", "0.67397374", "0.67397374", "0.67397374", "0.6716531", "0.6681128", "0.668...
0.0
-1
Gets the ``ResourceFormRecord`` corresponding to the given ``Resource`` record ``Type``.
def tTZb(YKHO, fdXi): return YKHO._get_record(fdXi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M95Z(YKHO, fdXi):\n return YKHO._get_record(fdXi)", "def vI6k(YKHO, iu4m=None):\n if not YKHO.has_record_type():\n raise jian()\n else:\n raise e6xC()", "def tV70(YKHO, CG7U=None):\n if not YKHO.has_record_type():\n raise jian()\n else:\n raise e6xC()", "def Qjb...
[ "0.8114026", "0.63643396", "0.6115171", "0.5902211", "0.5902211", "0.5881822", "0.5881822", "0.5881822", "0.5881822", "0.5881822", "0.5869668", "0.57236433", "0.5706427", "0.568179", "0.5671516", "0.565137", "0.5612121", "0.54968446", "0.5375285", "0.5368652", "0.5360401", ...
0.8896213
0