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
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def TJf5(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis] print('Normalized confusion matrix') else: print('Confusion matrix, without normalization') print(Bcwd) QrM1.imshow(Bcwd, interp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.0
-1
Writes the text in the current paragraph. Should only be used after a start_paragraph and before an end_paragraph. Not all backends support s_tags, then the same happens as with write_text. Backends supporting write_markup will overwrite this method
def GC9D(YKHO, l5Ny, MoBv, Bc7X=None): YKHO.write_text(l5Ny, mark=Bc7X)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HKwb(YKHO, zF0X, **YSA3):\n if YKHO._terse:\n return ''\n G0ID.paragraph(YKHO, zF0X)\n TZ9E = 'p'\n if zF0X:\n zSZo = YKHO._open(TZ9E, **YSA3)\n else:\n zSZo = YKHO._close(TZ9E)\n return zSZo", "def LTRW(YKHO, l5Ny):\n YKHO.write(YKHO.render_text(l5Ny))", "def pU3y...
[ "0.6865519", "0.6829972", "0.6826349", "0.6388663", "0.62817895", "0.6262358", "0.6230746", "0.6228621", "0.6163076", "0.61500466", "0.6109052", "0.60628057", "0.5995166", "0.5986104", "0.59745467", "0.596526", "0.59477645", "0.5942742", "0.5921858", "0.59203964", "0.58624923...
0.6557993
3
Method creates top model. This model will be added at the top of keras application model.
def ArSK(YKHO, C3ST): CGJJ = bdPE.Sequential() CGJJ.add(bdPE.layers.Flatten(input_shape=C3ST.output_shape[1:])) for c3v3, jOe8 in enumerate(YKHO.num_nodes): CGJJ.add(bdPE.layers.Dense(jOe8, activation=YKHO.activation)) CGJJ.add(bdPE.layers.Dropout(YKHO.dropouts[c3v3])) CGJJ.add(bdPE.laye...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SR7B(YKHO):\n C3ST = ey6j.load_model(filename_weight=YKHO.top_model_path + '.h5', filename_model=YKHO.top_model_path + '.json')\n return C3ST", "def Cc7Y(em7r, jTqs):\n CGJJ = em7r.output\n CGJJ = Pf_s()(CGJJ)\n CGJJ = l6ZH(1024, activation='relu')(CGJJ)\n CGJJ = l6ZH(1024, activation='relu...
[ "0.73633105", "0.6960287", "0.6919673", "0.65092564", "0.6374208", "0.62201995", "0.6214374", "0.61819416", "0.61679876", "0.6164631", "0.6162851", "0.61620754", "0.6161317", "0.6142316", "0.6136363", "0.60989064", "0.6071444", "0.60667586", "0.6061216", "0.60570145", "0.6054...
0.80240077
0
Operations should be able to accept Enum values naturally.
def qwBZ(YKHO, LbbW: Reports, GHJz, aZe0): NArs = LbbW.request_report(report_type=GHJz, marketplace_ids=aZe0) assert NArs['ReportType'] == '_GET_FLAT_FILE_OPEN_LISTINGS_DATA_' assert NArs['MarketplaceIdList.Id.1'] == 'ATVPDKIKX0DER'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQ1Y(YKHO):\n raise NotImplementedError", "def qmuu(YKHO):\n pass", "def kKDa():\n assert DeRp.get_enum_by_value('CP') == DeRp.COOPERATIVE\n assert DeRp.get_enum_by_value('FM') == DeRp.PARTNERSHIP_AND_SOLE_PROP\n assert DeRp.get_enum_by_value('NOT_FOUND') is None", "def gd5O(YKHO):\n YK...
[ "0.73542905", "0.7274136", "0.6486379", "0.63655627", "0.6344009", "0.6325961", "0.63249874", "0.63218087", "0.63166285", "0.63075346", "0.6301543", "0.6242816", "0.62301284", "0.6214935", "0.6179849", "0.6176506", "0.61732835", "0.6154527", "0.6125673", "0.6105288", "0.60964...
0.0
-1
Generate colormap for N lines/points from the given colormap Later used in loop for each line/point by colorVal = scalarMap.to_rgba(i) i from 0
def bC3K(ywwl, iMGt='jet'): GwBX = iMGt Bcwd = QrM1.get_cmap(GwBX) tceN = Jw9H.Normalize(vmin=0, vmax=ywwl - 1) y1f3 = CbNT.ScalarMappable(norm=tceN, cmap=Bcwd) return y1f3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def owgR(exwG):\n ku7w = QrM1.get_cmap('jet')\n tceN = Jw9H.Normalize(vmin=0, vmax=exwG - 1)\n y1f3 = CbNT.ScalarMappable(norm=tceN, cmap=ku7w)\n wg_B = []\n for YRbF in range(exwG):\n wg_B.append(y1f3.to_rgba(YRbF))\n return wg_B", "def y30j(yqzY='rainbow'):\n iMGt = QrM1.get_cmap(yq...
[ "0.75112605", "0.6632478", "0.6578862", "0.6532801", "0.64647084", "0.64263225", "0.64244705", "0.63608927", "0.635885", "0.63546515", "0.63398165", "0.6310235", "0.6309026", "0.63089347", "0.62898755", "0.6284386", "0.62525696", "0.623394", "0.62333196", "0.6223972", "0.6186...
0.7548113
0
Setting up testing model
def FCbF(YKHO): YKHO.m = r8hN = fLF8() r8hN.t = a17m(bounds=(0, 10)) r8hN.v1 = RELP(r8hN.t) r8hN.dv1 = Eyks(r8hN.v1) r8hN.s = fHNa(initialize=[1, 2, 3], ordered=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.mock_model = FM6F()", "def LQs7(YKHO):\n YKHO.skipTest('Base module should not be tested.')", "def FCbF(YKHO):\n YKHO.base1 = KcDH()", "def jqkm():\n pass", "def Baw8(YKHO):\n rvDU = KcDH()", "def KwrU():\n AvM3()", "def FCbF(YKHO):\n YKHO.model = NGAn()\n ...
[ "0.7845025", "0.78247887", "0.77878684", "0.7740696", "0.77405584", "0.77213913", "0.7561998", "0.7539715", "0.7495202", "0.7462158", "0.7433301", "0.73712236", "0.7337238", "0.73222625", "0.73222625", "0.7316911", "0.7304841", "0.7303187", "0.72945654", "0.72531086", "0.7253...
0.69268125
95
Secure the size of the uploaded file is smaller than MAX_FILESIZE
def bnpf(VqRE): return Hy7s.path.getsize(VqRE) <= wk3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yvxd(YKHO, mfF2):\n if mfF2 > uwaB.MAX_UPLOAD_FILE_SIZE_BYTES:\n raise fV2U(f'Artifact size ({mfF2}) exceeds maximum file size: {uwaB.MAX_UPLOAD_FILE_SIZE_BYTES} bytes')", "def MotD(Vc9y):\n JAMD = Vc9y.size\n if JAMD > 10485760:\n raise sUXu(bGrB('최대 10MB까지 업로드할 수 있습니다.'))\n else:\...
[ "0.727252", "0.7133552", "0.70251024", "0.69188094", "0.6799686", "0.6660166", "0.6615638", "0.6607412", "0.6486542", "0.644599", "0.64264923", "0.6355493", "0.6347269", "0.62421507", "0.6239919", "0.6224063", "0.6214218", "0.61739886", "0.61398435", "0.61218286", "0.609277",...
0.7341425
0
checks if ExpiryService supports given provider
def kT1P(kT1P): if kT1P in ('alditalk', 'netzclub', 'congstar'): return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VJXg(YKHO) -> bool:\n raise NotImplementedError()", "def VnCC(kT1P):\n if S1Wq.get(kT1P, None):\n return S1Wq[kT1P]()\n else:\n return None", "def Moj5(YKHO):\n wzkt = XbVV(qcWV.utcnow().utctimetuple())\n if YKHO.authtype == 'jwt':\n if not hasattr(YKHO, 'token'):\n ...
[ "0.6162787", "0.5903158", "0.5848611", "0.58237255", "0.57934093", "0.576993", "0.5721815", "0.5663499", "0.5626392", "0.55726016", "0.5539378", "0.54887146", "0.546047", "0.545522", "0.5441179", "0.5441048", "0.5434389", "0.54284096", "0.5425315", "0.5424123", "0.54206216", ...
0.5720034
7
Returns distance between two neighbours. The inputs to this method are always neighbours, so Euclidean distance is sufficient.
def WWYU(YKHO, uNYm, bk7o): Vg9B, BDYS = uNYm _UaP, yvOa = bk7o return XTiz.sqrt((BDYS - yvOa) ** 2 + (Vg9B - _UaP) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rkEX(YKHO, WWRq):\n he6J = oyIN.array([YRbF[1] - YRbF[0] for YRbF in zip(YKHO.pos, WWRq)])\n pImw = oyIN.linalg.norm(he6J)\n return (he6J, pImw)", "def Ayfi(YKHO, dg7v, iYf1):\n WKvO = (iYf1.x - dg7v.x) ** 2\n LVAh = (iYf1.y - dg7v.y) ** 2\n Csk6 = int(round(epAf.sqrt(WKvO + LVAh)))\n re...
[ "0.72673136", "0.725836", "0.72009814", "0.71982306", "0.71426696", "0.71318465", "0.71016884", "0.70836747", "0.7062026", "0.7054939", "0.70502394", "0.7045556", "0.7033712", "0.7011416", "0.7003073", "0.69915885", "0.6982461", "0.69786894", "0.69786894", "0.6973766", "0.696...
0.7096832
7
Duplicate username (email) should not be allowed, as this leads to conflicting login credentials.
def VJoh(YKHO, ITuY): rInK = GSyo.CliTenantadm() YKHO.logger.debug('Starting `test_duplicate_username`') YKHO.logger.debug('First tenant creation call') PgQh = str(qxeD.uuid4()) mWFP, NtEF, jTXt = ('test.mender.io-' + PgQh, 'some.user+' + PgQh + '@example.com', 'secretsecret') mLXZ = rInK.create...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OBVp(YKHO):\n YKHO.signup_a_user(YKHO.user_data)\n L2K3 = YKHO.signup_a_user(YKHO.user_data_duplicate_username)\n YKHO.assertEqual(L2K3.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertEqual(L2K3.data['errors']['username'], ['user with this username already exists.'])\n YKHO.assertNotIn('tok...
[ "0.7409204", "0.7189609", "0.71210605", "0.7102304", "0.705187", "0.7051585", "0.69906384", "0.6977101", "0.69675106", "0.696455", "0.6934737", "0.6919309", "0.6911945", "0.6896342", "0.6877307", "0.68579966", "0.68542403", "0.6816319", "0.68159825", "0.6776343", "0.6753667",...
0.0
-1
It should be allowed to create duplicate organizations as long as the user emails (login credentials) differ.
def U1XV(YKHO, ITuY): YKHO.logger.debug('Starting `test_duplicate_username`') rInK = GSyo.CliTenantadm() PgQh = str(qxeD.uuid4()) mWFP, NtEF, jTXt = ('test.mender.io-' + PgQh, 'some.user+' + PgQh + '@example.com', 'secretsecret') mLXZ = rInK.create_org(name=mWFP, username=NtEF, password=jTXt) YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EI5X(YKHO):\n YKHO.client.force_authenticate(user=YKHO.system_admin)\n nPrm = {}\n geh0 = YKHO.client.post('/organization/', nPrm, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def qe4S(YKHO):\n pass", "def s5Y_(YKHO):\n QAIN = zvVu.create(name='foo', p...
[ "0.6749599", "0.6736119", "0.6513024", "0.6448117", "0.6388017", "0.6321886", "0.62049836", "0.6120972", "0.61076343", "0.60964805", "0.60940254", "0.60757685", "0.604642", "0.6044863", "0.6016764", "0.5972821", "0.5962959", "0.5945855", "0.59020007", "0.5888568", "0.5880644"...
0.620028
7
Creates a dictionary where the keys are the employee ID and the values associate with it are the employees name, salary, and email address
def YnTG(ZWCE, oPMv, QRI7, jluS): Csk6 = dict() for YRbF in range(len(ZWCE)): Csk6[oPMv[YRbF]] = TjLA(ZWCE[YRbF], oPMv[YRbF], QRI7[YRbF], jluS[YRbF]) return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KB39(YKHO):\n for YRbF in YKHO.emp_dict:\n YKHO.emp_id[YRbF] = YKHO.emp_dict[YRbF][0]\n return YKHO.emp_id", "def zLFV(qc1B):\n mWeS = {}\n for YvUd in x1yi(qc1B):\n if not YvUd.is_secretary:\n AOQK(mWeS, YvUd.prosecutors_office, {'employees': [], 'departments': {}, 'divi...
[ "0.6583202", "0.64773506", "0.63519627", "0.6321661", "0.63113487", "0.6213478", "0.6001616", "0.59993625", "0.5955378", "0.59340984", "0.5930626", "0.59140646", "0.58262366", "0.5825099", "0.5823625", "0.57922107", "0.57843775", "0.5739199", "0.5734489", "0.57167673", "0.565...
0.85496974
0
Optionally restricts the returned purchases to a given user, by filtering against a `username` query parameter in the URL.
def k66M(YKHO): SR0I = wHLq.objects.all() NtEF = YKHO.request.query_params.get('username', None) if NtEF is not None: SR0I = SR0I.filter(author__username__iexact=NtEF) TZ9E = YKHO.request.query_params.get('tag', None) if TZ9E is not None: SR0I = SR0I.filter(tags__tag_name__iexact=TZ9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n NtEF = YKHO.kwargs.get('username', None)\n KUnM = {}\n if NtEF:\n KUnM['user__username'] = NtEF\n return super(_qsD, YKHO).get_queryset().filter(**KUnM)", "def fRXs(YKHO, QePW, SR0I, tTee):\n if tTee.action == 'list':\n DW23 = QePW.GET.get('users')\n if DW23:...
[ "0.59682834", "0.59662503", "0.59339905", "0.59121907", "0.59062797", "0.56636876", "0.5653978", "0.5544974", "0.5541318", "0.55099636", "0.5504582", "0.5494414", "0.5487761", "0.5483002", "0.5471986", "0.5471543", "0.5451524", "0.54157865", "0.54070425", "0.53802735", "0.537...
0.0
-1
Get all the articles ever posted in the application
def NMoC(YKHO, QePW): YKHO.queryset = YKHO.queryset.all() ZMzz = YKHO.serializer_class(YKHO.queryset, many=True) B2Dn = YKHO.paginate_queryset(YKHO.queryset) if B2Dn is not None: ZMzz = YKHO.serializer_class(B2Dn, many=True) for l3QS in ZMzz.data: l3QS.pop('body') ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mrVf(YKHO):\n return YKHO.get_queryset().filter(content_type__model='article').order_by('-articles__published_at')", "def mrVf(YKHO):\n mrVf = T97t.objects.live().descendant_of(YKHO)\n mrVf = mrVf.order_by('-date')\n return mrVf", "def iqGZ(NCls: Session):\n return NCls.query(LJI6).all()", ...
[ "0.7787458", "0.7702132", "0.74091494", "0.7254118", "0.719956", "0.7127673", "0.70351017", "0.7021796", "0.7002338", "0.69403607", "0.6907534", "0.69053626", "0.68398845", "0.68362623", "0.6831707", "0.68249404", "0.6772308", "0.67231226", "0.6716085", "0.67119485", "0.66466...
0.61962825
50
Get all the articles ever posted in the application
def NMoC(YKHO, QePW, s5ru): mVUw = YKHO.request.query_params.get('rate', None) if mVUw is not None: return oGir({'average': YKHO.get_average_rating()}) ZMzz = YKHO.serializer_class(YKHO.get_queryset(), many=True) B2Dn = YKHO.paginate_queryset(YKHO.get_queryset()) if B2Dn is not None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mrVf(YKHO):\n return YKHO.get_queryset().filter(content_type__model='article').order_by('-articles__published_at')", "def mrVf(YKHO):\n mrVf = T97t.objects.live().descendant_of(YKHO)\n mrVf = mrVf.order_by('-date')\n return mrVf", "def iqGZ(NCls: Session):\n return NCls.query(LJI6).all()", ...
[ "0.7787458", "0.7702132", "0.74091494", "0.7254118", "0.719956", "0.7127673", "0.70351017", "0.7021796", "0.7002338", "0.69403607", "0.6907534", "0.69053626", "0.68398845", "0.68362623", "0.6831707", "0.68249404", "0.6772308", "0.67231226", "0.6716085", "0.67119485", "0.66466...
0.0
-1
Create a new NetworkitBackend instance, using a Networkit.graph.Graph object to store and manage network structure.
def FIMM(YKHO, Zh7o: bool=False, hQSK: MetadataStore=None): YKHO._directed = Zh7o YKHO._meta = hQSK or ja0r() YKHO._nk_graph = qTyq.graph.Graph(directed=Zh7o) YKHO._names = vXWk()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, eVVj: Network):\n YKHO.graph = eVVj.graph", "def zgmU():\n with ZylS.gfile.FastGFile(Hy7s.path.join(GPtr['inference']['model_dir'], 'output_graph.pb'), 'rb') as eHNT:\n r8JX = ZylS.GraphDef()\n r8JX.ParseFromString(eHNT.read())\n bGrB = ZylS.import_graph_def(r8JX, name='...
[ "0.6621306", "0.6416461", "0.63786495", "0.6358946", "0.63411415", "0.63283116", "0.630598", "0.62910914", "0.62809217", "0.62725455", "0.6262756", "0.6226599", "0.6198408", "0.6134232", "0.61340976", "0.6099635", "0.6088564", "0.60302883", "0.6011021", "0.6003893", "0.596592...
0.5972971
20
Return true if the node exists in the graph.
def Ierk(YKHO, P6bq: Hashable) -> bool: return P6bq in YKHO._names
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VjDw(YKHO):\n if not YKHO.node:\n return False\n UHFx = YKHO.transaction.db_driver.nodes(YKHO.node.__class__).ids(YKHO.node.node_id).count()\n return UHFx > 0", "def Ierk(YKHO, Q6kx: str) -> bool:\n return YKHO.graph.has_node(Q6kx)", "def Ierk(YKHO, exwG):\n return exwG in YKHO.node_d...
[ "0.82739633", "0.81863356", "0.81487614", "0.8036294", "0.7899973", "0.7784053", "0.77641773", "0.7764157", "0.76640135", "0.7412834", "0.7412834", "0.7400942", "0.72762567", "0.72552204", "0.71918076", "0.70686996", "0.6991342", "0.6975389", "0.686546", "0.6816985", "0.68011...
0.74154234
9
The dplace shift of a term t above cutoff c
def jKhl(Csk6, Z9rn, aIM3): DTDC = xsCo(onvar=lambda Z9rn, WKvO, exwG: Xi6O(WKvO + Csk6, exwG + Csk6) if WKvO >= Z9rn else Xi6O(WKvO, exwG + Csk6), cutoff=Z9rn) return DTDC.visit(aIM3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pF97(a1PO):\n a1PO = oyIN.asarray(a1PO)\n return dV3f(a1PO) - dV3f(a1PO - 1)", "def xIk5(a1PO):\n return ht2j.sum(ht2j.log(1 - a1PO ** 2 + CzNp), dim=1)", "def MTp0(a1PO, NArs):\n c9nX = ZylS.cast(NArs['t_final'].get_value(), dtype=ZylS.float64)\n WTkW = ZylS.cast(NArs['sigma'].get_value(), ...
[ "0.5693871", "0.55972594", "0.55784374", "0.5518223", "0.5509465", "0.5506729", "0.54885364", "0.5475864", "0.5453303", "0.54527485", "0.5408065", "0.5370242", "0.53084266", "0.528154", "0.5248789", "0.52028376", "0.51881176", "0.5181443", "0.5175417", "0.5173579", "0.5173435...
0.64094704
0
Generates a random string of length 20 with letters and numbers to be stored as a user's secret key.
def Vhex(): return ''.join((jxbx().choice(vIwR.ascii_letters + vIwR.digits) for bGrB in range(20)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c46T():\n H5ew = []\n gLiZ = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'\n for YRbF in Ni9Y(20):\n H5ew.append(tuKI.choice(gLiZ))\n return ''.join(H5ew)", "def E5G3():\n gLiZ = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'\n return GLL2(50, gLiZ)", "def szjw():\n return ''.joi...
[ "0.84760064", "0.83303833", "0.80883294", "0.7991474", "0.79716235", "0.78556705", "0.7825114", "0.7793576", "0.7765287", "0.7759033", "0.76967126", "0.7645301", "0.76375616", "0.758583", "0.757601", "0.75389576", "0.7536386", "0.7506599", "0.7499383", "0.7496711", "0.7472499...
0.86365056
0
Adds a new doc to Cloudant if a doc with the same value for unique_property_name does not exist.
def RpEk(YKHO, A97Q, SSlS): WOrs = A97Q['type'] EJwJ = A97Q[SSlS] xm2R = YKHO.find_doc(WOrs, SSlS, EJwJ) if xm2R is not None: print('Returning {} doc where {}={}'.format(WOrs, SSlS, EJwJ)) return xm2R else: print('Creating {} doc where {}={}'.format(WOrs, SSlS, EJwJ)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lLSf(YEnM):\n d6pt = YEnM.get_index_name()\n WOrs = YEnM.get_document_type()\n TBsA = YEnM.get_document_body()\n vtfo = n72w.exists(index=d6pt, doc_type=WOrs, id=YEnM.pk)\n if not vtfo:\n n72w.create(index=d6pt, doc_type=WOrs, body=TBsA, id=YEnM.pk)\n return None\n return 'Confl...
[ "0.611054", "0.5632766", "0.5597991", "0.55933577", "0.54912066", "0.5417457", "0.53981847", "0.53293335", "0.5327089", "0.5323742", "0.526858", "0.52545476", "0.5241042", "0.5233962", "0.522708", "0.5196779", "0.51897454", "0.51704806", "0.51538277", "0.5063545", "0.50605637...
0.8177068
0
Return all ways to pick a kset from an nset, represented by an array of truthy values of length n.
def w2I1(exwG, G1Hx): CzRG = [0] * exwG for _Fqy in E6VQ(range(exwG), G1Hx): for YRbF in _Fqy: CzRG[YRbF] = 1 yield CzRG for YRbF in _Fqy: CzRG[YRbF] = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gzsC(Z9rn, K6kE=2):\n PCpl = {}\n kgDL = [XP5J for XP5J in Z9rn.values() if len(XP5J) == K6kE]\n for G1Hx, Ty9i in Z9rn.items():\n if Ty9i in kgDL:\n PCpl[G1Hx] = sorted(Ty9i)\n return PCpl", "def uejD(Fnie, G1Hx):\n return Hs6x.chain(*[_Fqy(Fnie, YRbF) for YRbF in range(1, G...
[ "0.67668533", "0.67628735", "0.66775584", "0.66138315", "0.65901273", "0.64204156", "0.6387719", "0.62883735", "0.61560315", "0.6149759", "0.608652", "0.60710835", "0.6043199", "0.6033082", "0.5985013", "0.5959775", "0.5916754", "0.58844054", "0.5882562", "0.5881801", "0.5872...
0.5776907
25
Returns the BaseTable subclass instance from which this TableRow originated.
def B8Ax(YKHO): return YKHO.table
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afOx(YKHO, Q79e: str):\n return getattr(YKHO.connection.base.classes, Q79e)", "def c5JS(YKHO):\n if YKHO.table_class:\n return YKHO.table_class\n raise rqaQ('A table class was not specified. Define %(cls)s.table_class' % {'cls': type(YKHO).__name__})", "def Itdi(Emd4, *qIxc, **B2fa):\n H...
[ "0.6435579", "0.62322146", "0.62163913", "0.6172069", "0.59742546", "0.5929036", "0.59165496", "0.5886187", "0.5885914", "0.5841531", "0.58268", "0.57230175", "0.57230175", "0.56350595", "0.55845547", "0.5564515", "0.55475926", "0.5512529", "0.54857904", "0.5476513", "0.54545...
0.58892214
7
Closes the file associated with this TableReader. Does nothing by default; so might need to be overriden by child classes.
def DDI8(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qsZa(YKHO):\n YKHO.file.close()", "def qsZa(YKHO):\n YKHO.file.close()", "def qsZa(YKHO):\n YKHO.file.close()", "def rAzE(YKHO):\n if YKHO.file is not None:\n YKHO.file.close()", "def DDI8(YKHO):\n YKHO.__file.close()", "def DDI8(YKHO):\n YKHO.file.close()", "def DDI8(YKHO)...
[ "0.68259126", "0.6783816", "0.6783816", "0.67456055", "0.6711149", "0.66444004", "0.66444004", "0.6623016", "0.6619866", "0.66124773", "0.66124773", "0.6609649", "0.6609649", "0.6603344", "0.6574963", "0.65742487", "0.65004945", "0.6491931", "0.6449768", "0.6449768", "0.64278...
0.0
-1
Add an undirected edge to the graph
def rz7z(YKHO, hQHm, jlSq): if hQHm in YKHO.vertices and jlSq in YKHO.vertices: YKHO.vertices[hQHm].edges.add(jlSq) YKHO.vertices[jlSq].edges.add(hQHm) else: raise IndexError('That vertex does not exist!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, D70y):\n assert D70y not in YKHO.edges\n YKHO.edges.append(D70y)", "def rz7z(YKHO, D70y):\n if YKHO.has_edge(D70y) == 0:\n YKHO.__graph_dict[D70y[0]].append(D70y[1])", "def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKH...
[ "0.7865", "0.78355986", "0.77554756", "0.7723153", "0.76283425", "0.7609168", "0.76072603", "0.7577147", "0.7548283", "0.7519275", "0.75040096", "0.73821694", "0.7368773", "0.73575443", "0.73438126", "0.7327635", "0.73179865", "0.73135585", "0.7309023", "0.7287673", "0.727965...
0.7005843
37
Add a directed edge to the graph
def WYRu(YKHO, hQHm, jlSq): if hQHm in YKHO.vertices: YKHO.vertices[hQHm].edges.add(jlSq) else: raise IndexError('That vertex does not exist!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, D70y):\n zZcM = D70y.get_source()\n e1vZ = D70y.get_destination()\n if not (zZcM in YKHO.edges and e1vZ in YKHO.edges):\n raise ValueError('Node not in graph')\n YKHO.edges[zZcM].append(e1vZ)", "def rz7z(YKHO, zZcM, zr3f, QZnA):\n raise NotImplementedError", "def rz7z(YKHO,...
[ "0.8015505", "0.79607785", "0.7775231", "0.77532995", "0.7729604", "0.76811075", "0.7618941", "0.76063526", "0.75842005", "0.7577965", "0.7535009", "0.7482374", "0.7479285", "0.74776787", "0.7473104", "0.7470197", "0.7468396", "0.7455426", "0.74327624", "0.7406552", "0.734486...
0.79365623
2
Computes the 3 axisymmetric Acoefficients associated with orientation of the vector w.r.t. to the D_rot ellipsoid. v can be many dimensions, as lons as the X/Y/Z cartesian dimensions is the last. e.g. v.shape = (M,N,3) Note the current implementation is probably a bit slower on small sizes comapred to the trivial. This...
def bXvb(Ty9i, LP0L=True): Ty9i = vEzy(Ty9i) if LP0L: mPai = oyIN.square(Ty9i.take(-1, axis=-1)) else: mPai = oyIN.square(Ty9i.take(0, axis=-1)) ijJp = 1 - mPai uD85 = oyIN.multiply(3.0, oyIN.multiply(mPai, ijJp)) i8nr = oyIN.multiply(0.75, oyIN.square(ijJp)) vo6s = oyIN.mult...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D7NW(Ty9i, OWwh, P3dv=False):\n if P3dv:\n RA_F = OWwh\n else:\n RA_F = wrq0(I1iR)\n jlSq = [Ty9i[YRbF] * Ty9i[YRbF] for YRbF in range(3)]\n V3aR = [jlSq[YRbF] * jlSq[YRbF] for YRbF in range(3)]\n CQsc = 0.25 * (3.0 * (V3aR[0] + V3aR[1] + V3aR[2]) - 1.0)\n fKl2 = 1.0 / 12.0 * (R...
[ "0.65471244", "0.63981587", "0.6358327", "0.61069584", "0.60980535", "0.60576284", "0.5950037", "0.593224", "0.59102297", "0.5898678", "0.58856267", "0.5826456", "0.57454294", "0.5704868", "0.56803524", "0.56785", "0.5676309", "0.56459516", "0.56048304", "0.5567015", "0.55537...
0.5080665
88
Allocates tensors for the optimizer state to allow direct compilation of the model before the first step.
def KG3b(YKHO): for uOe2 in YKHO.param_groups: for XP5J in uOe2['params']: if uOe2['momentum'] != 0: YKHO.state[XP5J]['momentum_buffer'] = ht2j.zeros_like(XP5J, device='cpu').to(XP5J.device)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nea7(YKHO):\n YKHO.memories.append(ZylS.tanh(ZylS.random_normal(shape=(YKHO.memory_capacity, YKHO.memory_vector_size), stddev=0.5)))\n YKHO.ww_t.append(ZylS.nn.softmax(ZylS.range(YKHO.memory_capacity, 0, -1, dtype=ZylS.float32)))\n YKHO.rw_t.append(ZylS.nn.softmax(ZylS.range(YKHO.memory_capacity, 0, -...
[ "0.7075337", "0.68024665", "0.66032326", "0.651239", "0.6449832", "0.63652307", "0.6330712", "0.6323323", "0.63111883", "0.6264637", "0.62335074", "0.619684", "0.619684", "0.6181374", "0.6179314", "0.6170764", "0.6157225", "0.61245596", "0.61193943", "0.61077696", "0.6093256"...
0.0
-1
Set the name of the character.
def WZrJ(YKHO, mWFP): Csk6 = WmlO(mWFP, canonical=0) YKHO.data.update(Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZyIw(YKHO, oG4E):\n YKHO.name = oG4E", "def v8PT(YKHO, v8PT):\n YKHO._characterName = v8PT", "def WZrJ(YKHO, mWFP: str) -> None:\n _e0h.wlr_seat_set_name(YKHO._ptr, mWFP.encode())", "def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def WZrJ(...
[ "0.89501476", "0.82549185", "0.7734155", "0.75344384", "0.7511335", "0.74626625", "0.74626625", "0.7368366", "0.7368366", "0.7368366", "0.7368366", "0.7368366", "0.73563784", "0.7346184", "0.7298834", "0.72952807", "0.7294164", "0.7280826", "0.721163", "0.7199756", "0.7199756...
0.6915806
59
The Character is "false" if the self.data does not contain a name.
def ebnO(YKHO): if YKHO.data.get('name'): return 1 return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xste(YKHO):\n return YKHO.unpack_word(2) != 0", "def amcC(YKHO):\n return YKHO.unpack_word(16) & 1 == 1", "def MPxP(YKHO):\n return YKHO._name != ''", "def soeR(YKHO):\n hHld = set(YKHO.broader_tags()) & x77Q\n return bool(hHld)", "def _KJZ(YKHO, o61b):\n if o61b.type == YKHO.scanner....
[ "0.68924284", "0.6734916", "0.6635937", "0.65906084", "0.64795727", "0.643622", "0.63792413", "0.6378379", "0.636715", "0.63221276", "0.6321745", "0.62450135", "0.6176524", "0.61372274", "0.61087155", "0.60998607", "0.6054378", "0.60481435", "0.59773386", "0.59672993", "0.592...
0.7693617
0
Return true if this Character was portrayed in the given Movie or it was impersonated by the given Person.
def FYXB(YKHO, ZfUD): from Movie import Movie from Person import Person if isinstance(ZfUD, Person): for r8hN in PWgb(YKHO.data, yieldDictKeys=1, scalar=Movie): if ZfUD.isSame(r8hN.currentRole): return 1 elif isinstance(ZfUD, Movie): for r8hN in PWgb(YKHO.data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eStc(YKHO):\n return True", "def eStc():\n return False", "def i1UW(YKHO, P57q):\n dvBM = P57q.find('p', klasse='redner').redner.find('name')\n if not dvBM.vorname or not dvBM.nachname:\n return False\n c9ua = str(dvBM.vorname.string)\n zp3f = str(dvBM.nachname.string)\n return ...
[ "0.6456716", "0.6168211", "0.59273756", "0.57318056", "0.57080626", "0.56861764", "0.5646706", "0.5539991", "0.54835707", "0.54454577", "0.5397814", "0.5388086", "0.538147", "0.53624105", "0.5348565", "0.53358245", "0.5296581", "0.5289821", "0.52864164", "0.52445006", "0.5225...
0.51047575
38
Return a deep copy of a Character instance.
def d9kX(YKHO, i_PE): Z9rn = _Ldl(name=u'', characterID=YKHO.characterID, myName=YKHO.myName, myID=YKHO.myID, data=_qLf(YKHO.data, i_PE), notes=YKHO.notes, accessSystem=YKHO.accessSystem, titlesRefs=_qLf(YKHO.titlesRefs, i_PE), namesRefs=_qLf(YKHO.namesRefs, i_PE), charactersRefs=_qLf(YKHO.charactersRefs, i_PE)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO) -> 'Rune':\n return YKHO.__copy__()", "def jth9(YKHO) -> 'Rune':\n return YKHO.__copy__()", "def jth9(YKHO) -> 'Cell':\n BdN0 = riCw(YKHO.letter)\n BdN0.player = YKHO.player\n return BdN0", "def jth9(YKHO):\n return W_Rq(YKHO.string())", "def jth9(YKHO):\n return YKHO.mu...
[ "0.70646316", "0.70646316", "0.6972674", "0.64444566", "0.63464975", "0.6324347", "0.6317154", "0.62851924", "0.6243672", "0.62268496", "0.6195071", "0.6195071", "0.6195071", "0.6195071", "0.6191595", "0.6176384", "0.6176384", "0.6176384", "0.6176384", "0.6176384", "0.6176384...
0.741937
0
String representation of a Character object.
def wHJl(YKHO): Mkmy = '<Character id:%s[%s] name:_%s_>' % (YKHO.characterID, YKHO.accessSystem, YKHO.get('name')) if isinstance(Mkmy, QMSQ): Mkmy = Mkmy.encode('utf_8', 'replace') return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ddrW(YKHO):\n return YKHO.char", "def vIwR(YKHO):\n return ''.join((str(Z9rn) for Z9rn in YKHO.characters))", "def wHJl(YKHO):\n return '{}<{}, line {} char {}>'.format(YKHO.__class__.__name__, repr(YKHO._data), YKHO._lineno, YKHO._charno)", "def zAg0(YKHO):\n return f'({YKHO.character})'", ...
[ "0.7833714", "0.7424265", "0.70127326", "0.69779426", "0.68161", "0.6614953", "0.65942895", "0.64902914", "0.645844", "0.643535", "0.6384426", "0.6310432", "0.63066906", "0.6212264", "0.6205719", "0.6198091", "0.6185423", "0.6185423", "0.6183249", "0.6183249", "0.6183249", ...
0.74232304
2
Compute log(\sum_i exp(Z_i)) for some array Z.
def X0th(Nk6w): return oyIN.max(Nk6w) + oyIN.log(oyIN.sum(oyIN.exp(Nk6w - oyIN.max(Nk6w))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sQHE(epBp):\n Oa1e = 1 / (1 + oyIN.exp(-epBp))\n return Oa1e", "def X0th(WKvO):\n jDK_ = len(WKvO.shape) - 1\n r8hN = CbyH.max(WKvO, axis=jDK_)\n E43s = CbyH.max(WKvO, axis=jDK_, keepdim=True)\n return r8hN + CbyH.log(CbyH.sum(CbyH.exp(WKvO - E43s), axis=jDK_))", "def nqOO(epBp):\n l6F...
[ "0.72955406", "0.70000017", "0.69763386", "0.6947724", "0.6854341", "0.6854341", "0.68434733", "0.6835322", "0.6835322", "0.68340427", "0.68242425", "0.67890185", "0.678535", "0.67170584", "0.67069113", "0.6685326", "0.6638205", "0.6539537", "0.6538283", "0.653539", "0.648778...
0.853284
0
Get local output level. This method returns either the local logger level set when calling initialize, or if that was not set then the logger level set in the Initializer configuration.
def Z6JZ(YKHO): Tjgd = YKHO._local_logger_level if Tjgd is None: Tjgd = YKHO.config.output_level return Tjgd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZkgV(YKHO):\n return YKHO.logging_level", "def wiAm(YKHO) -> YU1I:\n if YKHO.is_quiet:\n return YU1I.NONE\n return YU1I(YKHO.logger.getEffectiveLevel())", "def o_1G() -> h8nf[int]:\n if not bo34.disabled:\n return bo34.level\n return None", "def wiAm(YKHO) -> str:\n return...
[ "0.68613553", "0.6751319", "0.67467946", "0.6674586", "0.66413873", "0.64126235", "0.63684386", "0.6364565", "0.6358256", "0.6274128", "0.620987", "0.6177266", "0.60777044", "0.6032914", "0.6021324", "0.60062045", "0.5992274", "0.5992274", "0.5970048", "0.5932795", "0.5932795...
0.8477695
0
Get and store current state of variables (fixed/unfixed) and constraints/objectives activated/deactivated in model.
def c0mt(YKHO, C3ST: Block): YKHO.initial_state[C3ST] = oD7C(C3ST, wts=hsH7, return_dict=True) return YKHO.initial_state[C3ST]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kc1W(YKHO) -> DQaz:\n return iU95.core.freeze({'params': YKHO.parameters, **YKHO.model_state})", "def X2TY(YKHO):\n if YKHO.nvars >= 0:\n pass\n else:\n uA89 = df65.SymbolTable()\n\n def WlOB(qIxc):\n return map(lambda jzdc: -uA89.getId(jzdc) if jNKK(jzdc) else jzdc, ...
[ "0.64224166", "0.6374878", "0.6295922", "0.6177371", "0.6170138", "0.61354345", "0.6135017", "0.6124848", "0.6111449", "0.61046994", "0.60919756", "0.6090844", "0.6084547", "0.60525256", "0.60161644", "0.5988815", "0.59854853", "0.5981811", "0.59513646", "0.59505635", "0.5930...
0.0
-1
Restore model state to that stored in self.initial_state.
def p7DV(YKHO, C3ST: Block): if C3ST in YKHO.initial_state: pktP(C3ST, sd=YKHO.initial_state[C3ST], wts=hsH7) else: YKHO._update_summary(C3ST, 'status', q4to.Error) raise ValueError('No initial state stored.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s0Da(YKHO):\n YKHO.model.reset_states()", "def SiRx(YKHO):\n YKHO.set_state(YKHO._initial_state)", "def SiRx(YKHO):\n YKHO._current_state = YKHO._initial_state\n return YKHO._current_state", "def sRHT(YKHO, QTBn):\n ShfX = YKHO.ale.decodeState(QTBn)\n YKHO.ale.restoreState(ShfX)\n YK...
[ "0.7463039", "0.73698086", "0.7294601", "0.71570307", "0.7149184", "0.7149184", "0.7149184", "0.703696", "0.69934034", "0.6952096", "0.6935206", "0.6890805", "0.68177515", "0.680695", "0.6728974", "0.6728974", "0.6728974", "0.6728974", "0.6728974", "0.6728974", "0.6728974", ...
0.77374345
0
Initialize the Layer Manager's model.
def fnLN(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gv23(YKHO):\n pass", "def fPO8(YKHO):\n pass", "def J2K6(YKHO):\n YKHO._init_predictor()\n if YKHO.use_edge_fusion:\n YKHO._init_edge_module()", "def fPO8(YKHO):\n eNGu.CXNNetInitModel(YKHO.handle)", "def uIcm(YKHO, C3ST):\n pass", "def uIcm(YKHO) -> None:\n YKHO.model = t...
[ "0.7288466", "0.7279331", "0.7026693", "0.7020394", "0.6874338", "0.65884787", "0.6567816", "0.6567816", "0.64982116", "0.64774096", "0.64710635", "0.64489335", "0.64408183", "0.6439161", "0.637311", "0.63661605", "0.6364058", "0.63477635", "0.63448393", "0.6319277", "0.63047...
0.76564676
0
For a given RNA, get the p values for all proteins by negative binomial.
def UPVT(YKHO, bSDv: Mapping[str, List], gYQR: np.array, HFu1, AtsH=1000000000.0, DtI8=False, Nygx='per_read', PJWX=False): if len(gYQR) == 0: return None H1uF = oyIN.mean(gYQR) > AtsH if DtI8 or H1uF: rlZV = True gYQR = oyIN.log10(gYQR) else: rlZV = False FTWy = oyIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Py98(eucu, OAgx):\n Ylbp = eQSh.binom.pmf(range(OAgx + 1), OAgx, 1 / 2.0)\n jzdc = 0\n for YRbF in range(OAgx + 1):\n jzdc = jzdc + Ylbp[YRbF]\n if jzdc >= eucu:\n return YRbF", "def gEei(YKHO, Nygx='per_read', DtI8=False, AtsH=1000000000.0, U43f=True, kubo=-5.0, ViGg=False,...
[ "0.64295244", "0.61206096", "0.6092632", "0.5937054", "0.5915439", "0.5897987", "0.5843961", "0.57824105", "0.57793957", "0.5767617", "0.5760822", "0.5756754", "0.5744418", "0.5713776", "0.5706442", "0.5702385", "0.5693384", "0.5687943", "0.5681183", "0.56736696", "0.5654586"...
0.625052
1
A data generator for generating triplets, i.e, (input_image, positive_image, negative_image) on the fly before training. Select a random input image from the training set and select an positive_image with same product id and negative image with different product id and generate batch of triplets The function keeps yiel...
def jsNy(yZpa=ZaBn, Epbr=PKpA, Ep8u=None): IUV0 = ZaBn.index.tolist() Tb36 = PKpA.index.tolist() Vo9x = oyIN.zeros((1, 3 * ywwl)) while True: SsCY = list() l7mh = list() zIio = list() E2dj = list() oMB_ = jth9.copy(IUV0) while len(oMB_) > 0: d6...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gU_B(PSbX, lNai, yokr=None, ML4p=None):\n iXTm = SC2F(Hy7s.path.join(PSbX, 'image_2', '*.png'))\n McqI = {ZbWC.sub('_(lane|road)_', '_', Hy7s.path.basename(pmON)): pmON for pmON in SC2F(Hy7s.path.join(PSbX, 'gt_image_2', '*_road_*.png'))}\n QPVU = oyIN.array([255, 0, 0])\n if ML4p:\n iXTm = ...
[ "0.6670975", "0.6518714", "0.6311734", "0.62550783", "0.62339956", "0.6226525", "0.62081903", "0.62033963", "0.6192986", "0.6186082", "0.618001", "0.61669344", "0.61635137", "0.61606437", "0.6137136", "0.61250395", "0.6095593", "0.6051026", "0.60404116", "0.6019593", "0.60158...
0.5884833
32
Is portfolio get all returning a list of Portfolio instances?
def K99n(YKHO): YKHO.assertTrue(isinstance(afQN.get_all(), list), msg='Portfolio is NOT returning a list of all instances') print('Portfolio get_all method is returning the following list: {}'.format(afQN.get_all()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HVIF(YKHO):\n YKHO.update_portfolio()\n return YKHO._immutable_portfolio", "def ZuIO(YKHO):\n XP5J = afQN.get_portfolio_by_slug('test')\n a1PO = T74E.get_transactions(XP5J)\n YKHO.assertTrue(isinstance(a1PO, list), msg='Transaction is NOT returning a list of all transaction instances')\n pr...
[ "0.7062169", "0.69397235", "0.6546505", "0.63734484", "0.62883407", "0.6234493", "0.6177684", "0.616726", "0.6156453", "0.59769446", "0.59720457", "0.5965514", "0.5940291", "0.5923666", "0.58675176", "0.5859177", "0.58466095", "0.58249974", "0.5822161", "0.57810724", "0.57732...
0.812841
0
Is portfolio get transaction assets returning an unique list of Transaction assets?
def bas4(YKHO): XP5J = afQN.get_portfolio_by_slug('test') a1PO = T74E.get_transaction_assets(XP5J) YKHO.assertTrue(isinstance(a1PO, list), msg='Transaction is NOT returning a list of unique transaction assets') print('Transaction get transaction assets is returning the following list: {}'.format(a1PO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a7_s(YKHO):\n XP5J = afQN.get_portfolio_by_slug('test')\n CBIr = 'automated unit tester'\n _5Ec = T74E.buy_stock(portfolio=XP5J, asset='IBM', t_currency=kw46, amount=32, unit_price=144.96, user=CBIr)\n a1PO = T74E.get_transactions_by_asset(XP5J, 'IBM')\n YKHO.assertEqual(len(a1PO), 2, msg='Trans...
[ "0.69945604", "0.694181", "0.6821842", "0.6712087", "0.6373541", "0.63606733", "0.6324977", "0.60800743", "0.605254", "0.6031225", "0.5916209", "0.58847517", "0.58741885", "0.5818111", "0.5714047", "0.5686146", "0.5644342", "0.56390864", "0.56340545", "0.56191", "0.56149846",...
0.85128826
0
Is portfolio get transactions by asset returning a list of Transactions?
def a7_s(YKHO): XP5J = afQN.get_portfolio_by_slug('test') CBIr = 'automated unit tester' _5Ec = T74E.buy_stock(portfolio=XP5J, asset='IBM', t_currency=kw46, amount=32, unit_price=144.96, user=CBIr) a1PO = T74E.get_transactions_by_asset(XP5J, 'IBM') YKHO.assertEqual(len(a1PO), 2, msg='Transaction is ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bas4(YKHO):\n XP5J = afQN.get_portfolio_by_slug('test')\n a1PO = T74E.get_transaction_assets(XP5J)\n YKHO.assertTrue(isinstance(a1PO, list), msg='Transaction is NOT returning a list of unique transaction assets')\n print('Transaction get transaction assets is returning the following list: {}'.forma...
[ "0.7884124", "0.75701594", "0.6596491", "0.6386773", "0.63495964", "0.62921685", "0.62614506", "0.61750096", "0.6090789", "0.60896486", "0.60391206", "0.6009348", "0.6002427", "0.5961729", "0.59453547", "0.5912782", "0.58792007", "0.5861768", "0.5806336", "0.5805966", "0.5804...
0.7743377
1
Checks if a location is on the board, if it is returns True.
def ufiu(YKHO, Rci7: tuple) -> bool: return 0 <= min(Rci7) and max(Rci7) <= 7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ldn_(BHsk: tuple, BrEt: int):\n jay3 = BHsk[0] in range(BrEt)\n DkAR = BHsk[1] in range(BrEt)\n return jay3 and DkAR", "def SSUM(WKvO: int, LVAh: int) -> bool:\n return WKvO >= 0 and WKvO < FNt1 and (LVAh < K9Rh)", "def jZyw(VmPb, aaFO):\n return (0, 0) <= VmPb < aaFO", "def iAga(M_DK, iBI...
[ "0.74486387", "0.7303566", "0.70326304", "0.69853187", "0.697615", "0.69737786", "0.69399995", "0.69195354", "0.68025", "0.67903817", "0.6759761", "0.6739166", "0.67048043", "0.66956395", "0.6690133", "0.6663193", "0.66379786", "0.6626786", "0.6599799", "0.6587071", "0.657922...
0.62807804
61
Returns a location to which we can safely move.
def cVxL(YKHO, W061, Rci7: tuple): DPG7 = YKHO.create_danger_map(W061) return YKHO.find_reachable_safe_location(W061['board'], DPG7, Rci7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zN9N(QTBn, Rci7):\n return HYMZ(QTBn, Rci7, True)", "def WzYi(YKHO, XSoh):\n kaNW = YKHO._current_loc.get_row()\n mCXz = YKHO._current_loc.get_column()\n if XSoh == 'l':\n return _JMH(kaNW, mCXz - 1)\n elif XSoh == 'u':\n return _JMH(kaNW - 1, mCXz)\n elif XSoh == 'r':\n ...
[ "0.68402696", "0.6645437", "0.64134586", "0.6402261", "0.6401443", "0.6365496", "0.63403916", "0.6289275", "0.6260041", "0.6241965", "0.6212907", "0.61765695", "0.6175093", "0.6167111", "0.6164323", "0.6143258", "0.61229134", "0.6118263", "0.610832", "0.6099639", "0.60875195"...
0.68152356
1
Fix duplicate field names by appending an integer to repeated names.
def uhi9(YKHO, ZWCE): XR14 = [] ukjG = [] for mWFP in ZWCE: if mWFP not in XR14: ukjG.append(mWFP) else: Dokz = '%s_%d' % (mWFP, XR14.count(mWFP)) ukjG.append(Dokz) XR14.append(mWFP) return ukjG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDv2(YKHO):\n ZWCE: cuzp[str, int] = dict()\n for YPaw in YKHO.Sequence:\n if isinstance(YPaw, W3xD):\n continue\n mWFP = YPaw.Name\n if mWFP != '':\n if mWFP not in ZWCE:\n ZWCE[mWFP] = 1\n else:\n ZWCE[mWFP] += 1\n f...
[ "0.67453194", "0.6440248", "0.6375717", "0.59917706", "0.58438915", "0.5807908", "0.5782446", "0.56516784", "0.5629432", "0.5595076", "0.55664474", "0.5514417", "0.55063826", "0.5475275", "0.5426433", "0.5420128", "0.53905916", "0.5383994", "0.5356543", "0.5355158", "0.535031...
0.815471
0
Build the url with the appended request if provided.
def bD7m(YKHO, j1Rx=''): return f'{YKHO.scheme}://{YKHO.host}/{j1Rx}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jNi7(YKHO, QePW, XeOP, **xDcj):\n P8oC = KVWQ.urljoin(QePW['base_url'], YKHO.auth_prefix + '/' + XeOP)\n return hmqx(P8oC, xDcj)", "def eJD6(YKHO, NArs, B2fa, m8z6=False):\n if m8z6:\n return '%s%s' % (YKHO.endpoint, YKHO.methodname)\n else:\n return '%s%s?%s' % (YKHO.endpoint, YKHO...
[ "0.79692763", "0.7254912", "0.7187679", "0.6979685", "0.69671714", "0.69655365", "0.69655365", "0.69041055", "0.67990327", "0.67837423", "0.6766316", "0.6761845", "0.6694898", "0.6689456", "0.6659014", "0.6642371", "0.6629415", "0.6613108", "0.6561013", "0.65125006", "0.65077...
0.6392476
24
Get the user with the provided id
def TKWP(YKHO, NBcv): return YKHO.get_object('user', NBcv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(YKHO, id):\n return YKHO.users.get(id)", "def NMoC(id):\n return mv1M.query.filter_by(id=id).first()", "def JuUv(YKHO, id):\n for CBIr in YKHO.users:\n if CBIr['id'] == id:\n return CBIr", "def TKWP(id):\n pass", "def KacQ(YKHO, id: int) -> auMM.bbUser:\n id = YKHO...
[ "0.9023855", "0.8664333", "0.8585364", "0.85791296", "0.85102224", "0.84687114", "0.8437379", "0.84248155", "0.8382619", "0.8363252", "0.8358248", "0.8322038", "0.831863", "0.83111", "0.8308937", "0.8265049", "0.8222677", "0.8192917", "0.8164613", "0.81605667", "0.81605667", ...
0.78946465
51
A primality test. >>> [is_prime(n) for n in (857, 859, 863, 877, 881, 883, 887, 907, 911)] [True, True, True, True, True, True, True, True, True] >>> is_prime(861) False >>> [is_prime(n) for n in (1, 2, 4, 6, 8, 7)] [False, True, False, False, False, True]
def T1qg(XP5J): if XP5J == 1: return False for exwG in range(2, int(epAf.sqrt(XP5J)) + 1): if XP5J % exwG == 0: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pZ6m(exwG):\n if q0b5[exwG]:\n return True\n else:\n return False", "def FBNJ(exwG):\n if exwG % 2 == 0:\n return False\n return all((exwG % YRbF for YRbF in range(3, int(exwG ** 0.5) + 1, 2)))", "def FBNJ(exwG):\n return T1qg(exwG)", "def T1qg(exwG):\n return kU5Q(...
[ "0.771079", "0.77059245", "0.7697917", "0.76606923", "0.7651121", "0.76310545", "0.7582879", "0.75709045", "0.7523891", "0.74345404", "0.7411377", "0.7390217", "0.7378277", "0.73780245", "0.7373386", "0.73607373", "0.7352041", "0.73334414", "0.73332", "0.7327298", "0.7322893"...
0.73416173
17
Convert comma separated list of column names and ranges to indices.
def W8Vt(ILBk: str) -> list[int]: WfCS: list[int] = [] for xlLU in ILBk.split(','): if ':' in xlLU: JQEJ = xlLU.split(':') WfCS.extend(range(FJ5d(JQEJ[0]), FJ5d(JQEJ[1]) + 1)) else: WfCS.append(FJ5d(xlLU)) return WfCS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CObc(m6Me):\n if not m6Me:\n return None\n _0VL = set()\n try:\n with open(m6Me, 'r') as eHNT:\n for vC9B in eHNT:\n vC9B = vC9B.strip()\n if len(vC9B) == 0 or vC9B[0] == '#':\n continue\n if ' ' in vC9B:\n ...
[ "0.6271139", "0.59360015", "0.58300525", "0.5817749", "0.5779524", "0.5596657", "0.5590307", "0.5585735", "0.5569682", "0.553597", "0.5459676", "0.5414293", "0.54004407", "0.5380438", "0.53774476", "0.534839", "0.5332412", "0.5327949", "0.53014314", "0.529832", "0.52869046", ...
0.5581468
8
The device Android version.
def mZpi(YKHO): if not YKHO._android_version: HCmI = ['getprop', 'ro.build.version.release'] jbXL = Yn3K.check_output(YKHO.shell + HCmI).decode() YKHO._android_version = jbXL.strip('\r\n') return YKHO._android_version
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(YKHO):\n return YKHO._arm.get_version()", "def YGHx(YKHO) -> str:\n return YKHO.camera_info['main_hw_version']", "def z1EZ(YKHO):\n return int(YKHO.get_property(_lH2.VERSION_SDK_PROPERTY))", "def HFIr():\n return dtwu.version", "async def get_version(YKHO):\n RKD7.info('get_version'...
[ "0.728132", "0.7243305", "0.7096307", "0.7047162", "0.68846136", "0.68696684", "0.68512815", "0.68475586", "0.67665094", "0.6745548", "0.66814363", "0.665434", "0.66414535", "0.6626868", "0.66016096", "0.66016096", "0.6588704", "0.6516657", "0.65029305", "0.65025693", "0.6498...
0.8584862
0
Get the directory matching the given path from a connected device. The path must be a directory.
def B6Nz(YKHO, pmON): pmON = Hy7s.path.normpath(pmON) HCmI = ['ls', '-ldZ', "'" + pmON + "'"] _Z1k = Yn3K.check_output(YKHO.shell + HCmI).decode().split('\n') zFiD = _Z1k[0].strip('\r') try: eHNT = fnT7(zFiD, Hy7s.path.dirname(pmON), YKHO.android_version) except ValueError as e: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l2Kj(pmON):\n from os.path import split\n pmON = NqPW(pmON)\n return split(pmON)[0]", "def ebmO(pmON):\n return SLEg(pmON).rsplit('/', 1)[0]", "def ebmO(pmON):\n pmON = Hy7s.path.expanduser(pmON)\n pmON = Hy7s.path.normpath(pmON)\n pmON = Hy7s.path.abspath(pmON)\n if not Hy7s.path.i...
[ "0.75760823", "0.7206234", "0.7135575", "0.6613675", "0.6525836", "0.6469089", "0.6371758", "0.636219", "0.63208586", "0.6316571", "0.62652737", "0.623589", "0.62309635", "0.6203044", "0.6164292", "0.61558557", "0.6091325", "0.6082039", "0.6038978", "0.60140264", "0.5993293",...
0.71436876
2
Get the file class
def Jaun(YKHO): return YKHO._security_class
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUeQ(YKHO):\n return YKHO._get_instantiation()[0]", "def doj6(mWFP):\n mWFP = JZFN(mWFP)\n return mWFP + YlCl", "def ZvYj(uRP3):\n yR_P = __import__(uRP3)\n return getattr(yR_P, uRP3)", "def XDJk(mBOY: java.lang.Class) -> QMSQ:\n ...", "def FwQX(mBOY: java.lang.Class) -> QMSQ:\n .....
[ "0.7350407", "0.6957804", "0.6814747", "0.67628294", "0.65856117", "0.655752", "0.6460984", "0.6456215", "0.64387596", "0.64387596", "0.64387596", "0.6414171", "0.63495946", "0.6287545", "0.62732863", "0.62375987", "0.6218352", "0.6207857", "0.61908466", "0.61908466", "0.6186...
0.0
-1
Get the file size in Bytes, if available.
def zNig(YKHO): if hasattr(YKHO, '_size'): return YKHO._size else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cZkV(YKHO) -> int:\n return YKHO.get_main_information()['FileSize']", "def mfF2():\n return Hy7s.path.getsize(bkJI)", "def cZkV(YKHO):\n try:\n return Hy7s.path.getsize(YKHO.get_full_path())\n except Exception as e:\n raise SystemExit(f'Could not complete operation: {tTpl}')", "...
[ "0.84936786", "0.8428093", "0.838306", "0.8283282", "0.8253737", "0.81616104", "0.81616104", "0.8150866", "0.8137746", "0.81308514", "0.8069001", "0.8069001", "0.8069001", "0.8002018", "0.79804486", "0.7972367", "0.7963873", "0.79202974", "0.7907865", "0.7893577", "0.7867854"...
0.0
-1
Get the file basename
def aPr_(YKHO): return YKHO._basename
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QCG8(YKHO):\n return YKHO._basename[:]", "def aPr_(YKHO):\n return sYT0(YKHO.filename)", "def aPr_(qaEx):\n return Hy7s.path.basename(qaEx)", "def aPr_(YKHO):\n return YKHO._getbyspec('basename')[0]", "def aPr_(YKHO):\n return Hy7s.path.basename(YKHO.filepath)", "def sYT0(nUeQ: Union[s...
[ "0.87719274", "0.8735816", "0.8710294", "0.8682129", "0.86057115", "0.8584476", "0.85607356", "0.83748215", "0.83733696", "0.82951725", "0.8268515", "0.82577753", "0.82519525", "0.8236792", "0.81958103", "0.8160816", "0.8100247", "0.80857176", "0.8051255", "0.7982047", "0.796...
0.81792635
15
Get the file absolute name
def tiF9(YKHO): return YKHO._absname
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Juou(IznC):\n L3tS = Hy7s.path.abspath(IznC)\n return L3tS", "def g_2H(YKHO):\n return YKHO.path.name[6:]", "def g_2H(YKHO):\n return str(YKHO.get_file())", "def IhdV(Ux0P):\n lBW9 = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))\n return Hy7s.path.join(lBW9, Ux0P)", "def MgDA(YKHO):\n ...
[ "0.81569433", "0.7838035", "0.77766085", "0.7764686", "0.7674127", "0.7660703", "0.75777906", "0.7505313", "0.7484599", "0.74674976", "0.74625427", "0.7458229", "0.7444796", "0.7419286", "0.7394074", "0.73682773", "0.73552865", "0.73462456", "0.73387575", "0.7338748", "0.7311...
0.0
-1
Get the process name
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UNCy(YKHO):\n return YKHO._args.t", "def UNCy(Ii1o):\n NRWD = Yn3K.Popen(['ps', '-p', Ii1o, '-o', 'comm='], stdout=Yn3K.PIPE, stderr=Yn3K.PIPE)\n yvT9, XObx = NRWD.communicate()\n return yvT9.strip().decode('utf-8')", "def mWFP(YKHO):\n if YKHO.pid == 0:\n return 'System Idle Process'...
[ "0.8540508", "0.8186103", "0.7787348", "0.7665088", "0.7560937", "0.74781615", "0.7391654", "0.7027333", "0.69708735", "0.68173873", "0.67580676", "0.6750514", "0.672062", "0.6711601", "0.6711601", "0.66987085", "0.6658858", "0.6635752", "0.6603424", "0.65922517", "0.6558821"...
0.0
-1
Reads all the text from a text file, and returns this as a single string.
def sF03(qaEx): A5b1(qaEx) with open(qaEx) as nUeQ: return ''.join([zFiD for zFiD in nUeQ])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j7F_(OwN0):\n with open(OwN0, 'rt') as nUeQ:\n nPrm = nUeQ.read()\n return nPrm", "def QaEZ(YKHO, HWF3):\n Fb5b = open(HWF3, 'r').read()\n return Fb5b", "def zK9X(YKHO, gIsw):\n with open(gIsw, 'r') as o1P6:\n return o1P6.read()", "def Np1T(YNHG: str):\n hGN5: str = ''...
[ "0.7316784", "0.72672963", "0.7229631", "0.7083923", "0.7055522", "0.70383984", "0.703616", "0.70302117", "0.69800526", "0.69755685", "0.69214934", "0.6918536", "0.6873002", "0.6791377", "0.67871165", "0.6734747", "0.673225", "0.67118716", "0.66837186", "0.6672363", "0.661160...
0.67958784
13
assert exception is raised for nonexistent path
def YAtR(HSm4): xtX7 = GkAb(HSm4.mktemp('git')) pmON = xtX7.joinpath('nonexistent') with trZe.raises(ValueError): Bwjp.pull(pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N0Fi(YKHO) -> None:\n pmON = '/some/non/existing/path'\n with YKHO.assertRaises(BZVJ):\n QcvR(pmON)", "def hyRW(YKHO):\n YKHO.assertRaises(j1Jz.ArgumentTypeError, ngUu.check_path, 'foo')", "def BXsd(YKHO) -> None:\n pmON = '/usr'\n with YKHO.assertRaises(BZVJ):\n QcvR(pmON)", ...
[ "0.8268219", "0.7502979", "0.75024366", "0.7451902", "0.7424781", "0.7392558", "0.72852635", "0.72728455", "0.72660863", "0.7231714", "0.72289926", "0.721946", "0.72025144", "0.71912223", "0.7178884", "0.7130148", "0.71187955", "0.71096396", "0.7096285", "0.7026923", "0.70209...
0.6659672
54
assert exception is raised if not a repo
def xbPj(xtX7): with trZe.raises(ValueError): Bwjp.pull(xtX7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g1Yl(YKHO):\n YKHO.assertRaises(RIGj, p1QK, YKHO.repos)", "def GG5u(YKHO):\n bD7m = 'https://github.com/archi'\n with YKHO.assertRaises(Exception):\n U6rx().fetch(bD7m)", "def kNTJ(YKHO):\n bD7m = 'http://gitlab.com/ivacf/archi'\n with YKHO.assertRaises(DWtv):\n U6rx().fetch(bD...
[ "0.761208", "0.7560967", "0.74026674", "0.7380079", "0.73506886", "0.71984696", "0.7144186", "0.7142813", "0.7048591", "0.70252424", "0.69973695", "0.6893283", "0.6803735", "0.67844695", "0.67088515", "0.67071533", "0.66571397", "0.6635888", "0.6630313", "0.6550595", "0.65361...
0.732144
5
assert exception is raised if a repo has no tracking branch
def ndov(boHx): with trZe.raises(ValueError): Bwjp.pull(boHx.working_tree_dir)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JHXH(F3jJ: Repository) -> None:\n with trZe.raises(KeyError):\n F3jJ.branch('branch')", "def jFoS(F3jJ: Repository) -> None:\n assert 'branch' not in F3jJ.heads", "def xbPj(xtX7):\n with trZe.raises(ValueError):\n Bwjp.pull(xtX7)", "def ySAX(ZqHk: Path) -> None:\n F3jJ = mY2R.in...
[ "0.75480485", "0.7263348", "0.7199445", "0.7009176", "0.6826254", "0.6780176", "0.6755103", "0.67515707", "0.67448026", "0.6742422", "0.67161465", "0.66541594", "0.6649784", "0.66389626", "0.66336024", "0.6609925", "0.6602508", "0.6420919", "0.64028436", "0.6387867", "0.63641...
0.7269188
1
Sets the id of this StoreUrlConfiguration.
def id(YKHO, id): if id is None: raise ValueError('Invalid value for `id`, must not be `None`') YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.__id = id", "def id(YKHO, id: str):\n YKHO._id = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def fmKd(YKHO, fmKd):\n YKHO._store_id = fmKd\n return YKHO", "def i...
[ "0.66508585", "0.6592743", "0.6566896", "0.64278495", "0.64161736", "0.64060926", "0.6399919", "0.6399919", "0.6399919", "0.6358866", "0.631308", "0.631308", "0.631308", "0.631308", "0.631308", "0.6270708", "0.6270708", "0.6270708", "0.6270708", "0.6270708", "0.6270708", "0...
0.0
-1
Sets the transaction_notification_url of this StoreUrlConfiguration.
def PVbZ(YKHO, PVbZ): YKHO._transaction_notification_url = PVbZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmEA(YKHO, lmEA):\n YKHO._recurring_transaction_notification_url = lmEA", "def LT8E(YKHO, LT8E):\n YKHO._notify_url = LT8E", "def nwW7(YKHO, nwW7):\n YKHO._method_notification_url = nwW7", "def Wt3I(YKHO, Wt3I):\n YKHO._store_url = Wt3I", "def CCEN(YKHO, RJDY):\n YKHO.callback_url = RJDY...
[ "0.743379", "0.6348347", "0.617391", "0.5849823", "0.50333273", "0.4990913", "0.49459577", "0.49224275", "0.4912939", "0.4912939", "0.4905969", "0.48247993", "0.4809686", "0.47674695", "0.47674695", "0.47510424", "0.46979332", "0.4695061", "0.46826473", "0.46764046", "0.46138...
0.86247927
0
Sets the recurring_transaction_notification_url of this StoreUrlConfiguration.
def lmEA(YKHO, lmEA): YKHO._recurring_transaction_notification_url = lmEA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PVbZ(YKHO, PVbZ):\n YKHO._transaction_notification_url = PVbZ", "def nwW7(YKHO, nwW7):\n YKHO._method_notification_url = nwW7", "def LT8E(YKHO, LT8E):\n YKHO._notify_url = LT8E", "def Wt3I(YKHO, Wt3I):\n YKHO._store_url = Wt3I", "def jMAL(YKHO, jMAL: 'str'):\n YKHO._attrs['webhookUrl'] =...
[ "0.73366183", "0.5945408", "0.58616453", "0.49812144", "0.47298342", "0.47298342", "0.46253613", "0.46181828", "0.45913643", "0.45379418", "0.45312813", "0.44840717", "0.44351047", "0.43826178", "0.43701798", "0.43670374", "0.43431824", "0.43294266", "0.4326882", "0.42897275", ...
0.84907234
0
Sets the response_success_url of this StoreUrlConfiguration.
def s6b9(YKHO, s6b9): YKHO._response_success_url = s6b9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0wb(YKHO, bD7m):\n YKHO.__success_url = bD7m\n return YKHO", "def NbrZ(YKHO, NbrZ):\n YKHO._on_success_url = NbrZ", "def m07J(YKHO):\n if not YKHO.success_url:\n return YKHO.request.get_full_path()\n return str(YKHO.success_url)", "def P_z2(YKHO, P_z2):\n YKHO._response_failure_...
[ "0.71014994", "0.684946", "0.63355774", "0.6243574", "0.6171999", "0.6091107", "0.60322094", "0.5935141", "0.59321535", "0.59321535", "0.5891836", "0.58217734", "0.5745798", "0.5708686", "0.5694084", "0.567529", "0.56572485", "0.5510942", "0.5470778", "0.5441133", "0.539344",...
0.8465847
0
Sets the response_failure_url of this StoreUrlConfiguration.
def P_z2(YKHO, P_z2): YKHO._response_failure_url = P_z2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s6b9(YKHO, s6b9):\n YKHO._response_success_url = s6b9", "def RQBM(YKHO, RQBM: str):\n YKHO._response_kafka_connection_url = RQBM", "def fKaK(YKHO, bD7m):\n YKHO.__error_url = bD7m\n return YKHO", "def F7Q8(YKHO, F7Q8):\n YKHO._on_error_url = F7Q8", "def LfXz(YKHO, LfXz):\n YKHO._redir...
[ "0.67325926", "0.61840147", "0.6133804", "0.5944127", "0.5575882", "0.5515315", "0.5437121", "0.53560185", "0.52995324", "0.5281394", "0.5277041", "0.5269514", "0.52312785", "0.5195577", "0.5164423", "0.5101275", "0.50832057", "0.50669324", "0.50382894", "0.50128365", "0.4986...
0.8542002
0
Sets the skip_result_page_for_success of this StoreUrlConfiguration.
def oaMX(YKHO, oaMX): YKHO._skip_result_page_for_success = oaMX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zc5z(YKHO, Zc5z):\n YKHO._skip_result_page_for_failure = Zc5z", "def HIi8(YKHO, Aofo):\n super(xSpp, YKHO).v2_runner_on_skipped(Aofo)\n YKHO._store(Aofo, R4gN)", "def ijz3(YKHO, wEf2):\n YKHO.skip = wEf2\n return YKHO", "def EdbX(YKHO, EdbX):\n YKHO._skip = EdbX", "def s6b9(YKHO, s6b9...
[ "0.7781596", "0.57031137", "0.52726793", "0.49588716", "0.49287266", "0.4810245", "0.473015", "0.4712832", "0.45400152", "0.45209688", "0.45202103", "0.45113936", "0.44433716", "0.44041428", "0.43869552", "0.43729672", "0.4371329", "0.4352022", "0.43146196", "0.43135968", "0....
0.84920037
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, cTFC): 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.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.0
-1
Dot product between two points
def BJ1H(EBgd, HpuQ): return EBgd[0] * HpuQ[0] + EBgd[1] * HpuQ[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BJ1H(jzdc, Fg_i):\n return jzdc[0] * Fg_i[0] + jzdc[1] * Fg_i[1] + jzdc[2] * Fg_i[2]", "def BJ1H(jzdc, Fg_i):\n return jzdc[0] * Fg_i[0] + jzdc[1] * Fg_i[1] + jzdc[2] * Fg_i[2]", "def BJ1H(WKvO, LVAh):\n return sum([Y7fn * O5iP for Y7fn, O5iP in zip(WKvO, LVAh)])", "def BJ1H(WKvO, LVAh):\n Yl...
[ "0.80575734", "0.80163157", "0.7981756", "0.78800917", "0.7833627", "0.78089905", "0.777131", "0.776726", "0.7749556", "0.7709001", "0.7671875", "0.766193", "0.76345164", "0.7632237", "0.7632237", "0.763077", "0.7625666", "0.76185733", "0.7605201", "0.7595505", "0.75636303", ...
0.8218893
0
Creates a line from two points
def zFiD(EBgd, HpuQ): k0lF = EBgd[1] - HpuQ[1] tjUW = HpuQ[0] - EBgd[0] Nq1b = EBgd[0] * HpuQ[1] - HpuQ[0] * EBgd[1] return (k0lF, tjUW, -Nq1b)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QEXj(fJfP, hWOy):\n k0lF = fJfP.y - hWOy.y\n tjUW = hWOy.x - fJfP.x\n Nq1b = fJfP.y * tjUW + fJfP.x * k0lF\n return oyIN.matrix([[k0lF], [tjUW], [-Nq1b]])", "def zFiD(o4D3, si3g, ajwV, skBL):\n o4D3 = NkkI(o4D3)\n si3g = NkkI(si3g)\n ajwV = NkkI(ajwV)\n skBL = NkkI(skBL)\n tzT8 = m...
[ "0.8127765", "0.78903234", "0.78226745", "0.77153796", "0.76861584", "0.7526297", "0.7425139", "0.7300555", "0.72701234", "0.72337586", "0.7218913", "0.72030354", "0.7201003", "0.7183471", "0.71760195", "0.7072573", "0.70341897", "0.70269936", "0.70102984", "0.69804555", "0.6...
0.66081494
45
Euclidean distance between two (tracktotrip) points
def kqCl(jzdc, Fg_i): return epAf.sqrt((Fg_i.lat - jzdc.lat) ** 2 + (Fg_i.lon - jzdc.lon) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k9Tn(lCHq: np.ndarray, ANJu: np.ndarray) -> float:\n return oyIN.sqrt(oyIN.sum(oyIN.square(lCHq - ANJu)))", "def Ayfi(jzdc: Point, Fg_i: Point) -> float:\n return epAf.sqrt(epAf.pow(Fg_i.x - jzdc.x, 2) + epAf.pow(Fg_i.y - jzdc.y, 2))", "def Ayfi(YKHO, X3qZ, ZYCo):\n if _eFN:\n Tq9Y()\n C...
[ "0.7570923", "0.7556414", "0.746476", "0.7439545", "0.7412407", "0.73951024", "0.7394975", "0.7373433", "0.73733133", "0.73496294", "0.7324275", "0.7317081", "0.7305315", "0.72701055", "0.7267547", "0.7261338", "0.7249864", "0.7248064", "0.7246902", "0.7240861", "0.7212386", ...
0.68871725
91
Yield the positions of atoms in the batch. Yields
def wJ89(YKHO): yield from YKHO._positions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w7gd(YKHO):\n for hksT in YKHO.iter_locations():\n yield hksT.position", "def w7gd(YKHO, gGe7=False):\n for WhQ6 in YKHO:\n if gGe7:\n for hksT in WhQ6.iter_positions():\n yield hksT\n else:\n yield WhQ6.position", "def MJlc(YKHO):\n for BH...
[ "0.7544001", "0.7362795", "0.6769089", "0.6741607", "0.6710273", "0.6702326", "0.66945636", "0.66754526", "0.646947", "0.63678926", "0.63566256", "0.63406646", "0.6335163", "0.63197887", "0.6276833", "0.6276194", "0.62350243", "0.6230621", "0.6223185", "0.620386", "0.6182705"...
0.69317377
2
Get the dialogue_reference of the message.
def fpn2(YKHO) -> AzJI[str, str]: SlLe(YKHO.is_set('dialogue_reference'), 'dialogue_reference is not set.') return YWvJ(AzJI[str, str], YKHO.get('dialogue_reference'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eair(YKHO):\n return YKHO.message", "def Eair(YKHO):\n return YKHO.message", "def S_Qd(YKHO):\n return YKHO.__message", "def Eair(YKHO):\n return YKHO._message", "def Eair(YKHO):\n return YKHO.__mess", "def LyJ3(YKHO):\n return YKHO._reference", "def Eair(YKHO):\n return YKHO.m...
[ "0.5959654", "0.5959654", "0.5914954", "0.5835652", "0.5816795", "0.58139884", "0.5798165", "0.56435615", "0.5603565", "0.55960155", "0.55960155", "0.5579671", "0.5579671", "0.5579671", "0.5579671", "0.5579671", "0.5565717", "0.55399346", "0.55399346", "0.55309427", "0.552806...
0.79154986
0
Get the message_id of the message.
def KREW(YKHO) -> int: SlLe(YKHO.is_set('message_id'), 'message_id is not set.') return YWvJ(int, YKHO.get('message_id'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KREW(YKHO):\n return YKHO._message_id", "def _rEH(YKHO):\n return YKHO._payload[1]", "def KREW(YKHO) -> str:\n return YKHO['Sns']['MessageId']", "def gS47(YKHO):\n return BlNT.unpack('<H', YKHO.pkt.payload[0:2])[0]", "def IlhY(KREW):\n return LuKW.query.get(KREW)", "def t9S2(YKHO) -> h...
[ "0.8787715", "0.8481341", "0.80076957", "0.7417332", "0.6884192", "0.6880647", "0.68433136", "0.6767874", "0.67058575", "0.67058575", "0.66893184", "0.6680958", "0.6643317", "0.6600039", "0.6521175", "0.64887494", "0.6466459", "0.64267176", "0.6333503", "0.633283", "0.6313509...
0.8594349
1
Convert sparse matrix to tuple representation.
def nPep(On0F): def EV8W(RsfQ): if not H4yH.isspmatrix_coo(RsfQ): RsfQ = RsfQ.tocoo() jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose() hkxX = RsfQ.data ROpF = RsfQ.shape return (jNOo, hkxX, ROpF) if isinstance(On0F, list): for YRbF in range(len(On...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPep(On0F):\n\n def EV8W(RsfQ):\n if not H4yH.isspmatrix_coo(RsfQ):\n RsfQ = RsfQ.tocoo()\n jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()\n hkxX = RsfQ.data\n ROpF = RsfQ.shape\n return (jNOo, hkxX, ROpF)", "def nPep(On0F):\n\n def EV8W(RsfQ):\n ...
[ "0.85870504", "0.82527", "0.82527", "0.8091624", "0.7986327", "0.602773", "0.59843755", "0.5971062", "0.59706587", "0.59447116", "0.59443593", "0.5910293", "0.5910293", "0.5910293", "0.5910293", "0.5910293", "0.58940256", "0.58499134", "0.5845008", "0.577404", "0.5689886", ...
0.82655305
7
Symmetrically normalize adjacency matrix.
def ujN0(eQUr): eQUr = H4yH.coo_matrix(eQUr) mJjf = oyIN.array(eQUr.sum(1)) tvzN = oyIN.power(mJjf, -0.5).flatten() tvzN[oyIN.isinf(tvzN)] = 0.0 hEeC = H4yH.diags(tvzN) return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = oyIN.diag(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC)", "def ujN0(eQUr):\n eQUr = H4yH.coo_matrix(eQUr)\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN...
[ "0.788518", "0.7691616", "0.759434", "0.7566608", "0.7335597", "0.730491", "0.72684425", "0.688461", "0.68616927", "0.686005", "0.6832041", "0.682895", "0.6750887", "0.6750057", "0.67278", "0.66282207", "0.6616473", "0.64879745", "0.6486613", "0.63610464", "0.63610464", "0....
0.7698141
8
A function to compute the jensenshannon distances between columns of similar DataFrames. For categorical columns, the probability of each category will be computed separately for `df_baseline` and `df_sample`, and the Jensen Shannon distance between the 2 probability arrays will be computed. For numerical columns, the ...
def Ti1N(p0EN, j5az, pOGA, ZH6t): Ylbp = {} kPrs = 100 for fvDH in ZH6t: jPGX = p0EN[fvDH].to_frame() vWCr = j5az[fvDH].to_frame() jPGX['source'] = 'baseline' vWCr['source'] = 'sample' YpUD = rLdf.concat([jPGX, vWCr], ignore_index=True) ezWE = YpUD.groupby([fv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pi73(p0EN, j5az, KQ7o=30):\n jzdc = oyIN.concatenate((p0EN, j5az), axis=0)\n tTpl, XP5J = c9J5(p0EN, n=KQ7o, range=(jzdc.min(), jzdc.max()))\n bGrB, vexM = c9J5(j5az, n=tTpl, range=(jzdc.min(), jzdc.max()))\n return Zxt2.spatial.distance.jensenshannon(XP5J, vexM)", "def aIK7(jQ3Z):\n return", ...
[ "0.64014757", "0.61950874", "0.59821224", "0.5697888", "0.54592794", "0.5174234", "0.5137397", "0.5131423", "0.5122167", "0.511841", "0.51071995", "0.5100075", "0.5094216", "0.50908756", "0.5061743", "0.50580746", "0.5043095", "0.50322914", "0.50091624", "0.49507222", "0.4939...
0.72510445
0
Plots a confusion matrix using Seaborn's heatmap().
def zi6W(H96n, Rfzd): uuEx.set(font_scale=1.5) LZpg, aNZO = QrM1.subplots(figsize=(3, 3)) aNZO = uuEx.heatmap(YsYU(H96n, Rfzd), annot=True, cbar=False) QrM1.xlabel('Predicted label') QrM1.ylabel('True label') return (LZpg, aNZO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=None, leAC='Confusion matrix'):\n if KndY is not None:\n uuEx.heatmap(Bcwd, xticklabels=KndY, yticklabels=KndY, vmin=0.0, vmax=1.0, annot=True)\n else:\n uuEx.heatmap(Bcwd, vmin=0.0, vmax=1.0)\n QrM1.title(leAC)\n QrM1.ylabel('True label')\n QrM1.xlabel('Predicted l...
[ "0.84595305", "0.8404798", "0.83949465", "0.8206685", "0.81137764", "0.809828", "0.8045054", "0.8013182", "0.7954737", "0.794583", "0.7920782", "0.78986645", "0.7851107", "0.78444636", "0.78387344", "0.77890563", "0.77542657", "0.77488065", "0.77433497", "0.7734367", "0.77288...
0.8383667
3
Computes the L2 norm bound of a vector after rounding (Thm. 1, Eq. 2).
def jhoG(WKvO, ZiOP, UqYS): UqYS = ZylS.cast(UqYS, WKvO.dtype) tpio = ZylS.cast(ZylS.size(WKvO), WKvO.dtype) if ZiOP is None: WzsH = ZylS.norm(WKvO, ord=2) else: WzsH = ZylS.cast(ZiOP, WKvO.dtype) AvCL = WzsH + ZylS.sqrt(tpio) W7NX = ZylS.square(WzsH) + 0.25 * tpio W7NX += Zy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KNe7(Ty9i):\n return oyIN.sqrt((Ty9i ** 2).sum())", "def KtDG(Ty9i):\n Ylbp = 0\n for tTpl in Ty9i:\n Ylbp += tTpl * tTpl\n return epAf.sqrt(Ylbp)", "def V70B(he6J):\n return oyIN.linalg.norm(he6J)", "def cbY4(Ty9i):\n return epAf.sqrt(uYbU(Ty9i, Ty9i))", "def jqaF(P6bq):\n ...
[ "0.7870646", "0.77247846", "0.7705849", "0.74021274", "0.7346353", "0.7112624", "0.7027149", "0.7002231", "0.69005", "0.6825025", "0.6820498", "0.67820287", "0.67647725", "0.6749962", "0.67238563", "0.6668505", "0.6658945", "0.66543186", "0.6644088", "0.661958", "0.6601495", ...
0.73359406
5
Pads a vector with shape (d,) with zeros to the next power of two.
def VOUI(WKvO): tpio = ZylS.shape(WKvO)[0] rak2 = ZylS.math.log(ZylS.cast(tpio, ZylS.float32)) / ZylS.math.log(2.0) XVqA = ZylS.pow(2, ZylS.cast(ZylS.math.ceil(rak2), ZylS.int32)) with ZylS.control_dependencies([ZylS.debugging.assert_rank(WKvO, 1)]): return ZylS.pad(WKvO, [[0, ZylS.maximum(0, XV...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOVh(nPrm):\n ywwl = len(nPrm)\n F_2A = oyIN.ceil(oyIN.log2(ywwl))\n return oyIN.pad(nPrm, (0, int(2 ** F_2A - ywwl)), 'constant')", "def he4C(YKHO, lSjb, exwG, wEf2):\n if len(lSjb) < exwG:\n lSjb = oyIN.pad(lSjb, (0, exwG - len(lSjb)), 'constant', constant_values=wEf2)\n else:\n ...
[ "0.63801193", "0.61805403", "0.5929952", "0.58702296", "0.586949", "0.5804458", "0.57253265", "0.57067007", "0.5633425", "0.55662155", "0.55635613", "0.55554175", "0.5510453", "0.5500605", "0.544494", "0.5421047", "0.54187894", "0.5418709", "0.54041296", "0.54020995", "0.5400...
0.5898861
3
Simple helper function that groups a list into pairs. For example, [1,2,3,4,5] would return [1,2],[3,4]
def kgDL(yv6U): for YRbF in range(1, len(yv6U), 2): yield (yv6U[YRbF - 1], yv6U[YRbF])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rL8p(vC9B):\n return {(vC9B[2 * YRbF], vC9B[2 * YRbF + 1]) for YRbF in range(len(vC9B) / 2)}", "def fr5W(aqea):\n return [(jvSB, aqea[or8S + 1] if -1 else None) for or8S, jvSB in enumerate(aqea) if or8S < len(aqea) - 1]", "def uOe2(yv6U, exwG):\n return zip(*[yv6U[YRbF::exwG] for YRbF in range(exw...
[ "0.7544938", "0.7045488", "0.7019172", "0.6966148", "0.69476837", "0.680975", "0.6743494", "0.6712265", "0.6687029", "0.66334724", "0.6593827", "0.6549743", "0.65470976", "0.6513818", "0.64491403", "0.6429426", "0.63867474", "0.63702846", "0.6325235", "0.62996686", "0.6261211...
0.7495571
1
Basic test of find_max_seat_id()
def wCxZ(): nPrm = [{'seat_id': 100}, {'seat_id': 101}, {'seat_id': 99}] assert U7No(nPrm) == 101
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H_l_():\n assert cs2n('test/test_input.txt') == 820", "def QIJn(J0QG):\n ue3R = J0QG.split('\\n')\n return max(list(map(O1R0, ue3R)))", "def qQ1D(nPrm: list) -> int:\n qwpZ: int = 0\n for Wxnj in nPrm:\n if tl81(Wxnj) > qwpZ:\n qwpZ = tl81(Wxnj)\n return qwpZ", "def Bq...
[ "0.77137196", "0.7553079", "0.75166106", "0.7501319", "0.7238762", "0.71223587", "0.6671076", "0.625585", "0.6194733", "0.61750185", "0.6145588", "0.59299815", "0.5890674", "0.5838614", "0.58339375", "0.58192277", "0.5777797", "0.5762046", "0.568597", "0.56781447", "0.5644486...
0.8820734
0
Get the data corresponding to a given indices.
def RJeL(YKHO, lwqt, _0VL): nPrm = {} for TZ9E in YKHO.data_tags: try: nPrm[TZ9E] = lwqt[TZ9E][_0VL] except KeyError: print('no this key in the current data file!') return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z2L_(bS0K: list, nPrm: np.ndarray) -> oyIN.ndarray:\n return oyIN.asarray([nPrm[YRbF, r845] for YRbF, r845 in bS0K])", "def yLtf(bySB, _VLC, bpxB, RRlC, _0VL):\n bySB = [bySB[or8S] for or8S in _0VL]\n _VLC = [_VLC[or8S] for or8S in _0VL]\n bpxB = [bpxB[or8S] for or8S in _0VL]\n RRlC = [RRlC[or...
[ "0.7586238", "0.73127365", "0.70574576", "0.67401016", "0.6729097", "0.6729097", "0.67080015", "0.66936725", "0.6658126", "0.6643573", "0.65621924", "0.6513033", "0.6510402", "0.6452007", "0.6452007", "0.64503914", "0.64347494", "0.64340377", "0.6278575", "0.62494344", "0.623...
0.7435763
1
transforms pandas series into array of values
def w5JJ(YEnM): T6S7 = YEnM.values return lkJx(T6S7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tFUn(YKHO, nPrm: pd.Series) -> rLdf.Series:\n ...", "def yznK(YKHO, v2rl: Iterable) -> rLdf.Series:\n return rLdf.Series(v2rl, index=YKHO.data.index)", "def rjaZ(YKHO) -> rLdf.Series:\n jQ3Z = YKHO.to_dataframe('* values *')\n Htse = YKHO.dims_list\n if len(Htse) == 1:\n Htse = Htse[0...
[ "0.71704954", "0.7061575", "0.7031719", "0.69319797", "0.69065505", "0.68227774", "0.67641383", "0.67072475", "0.66763926", "0.66559494", "0.65532196", "0.6527722", "0.65187865", "0.6429818", "0.63917977", "0.6334467", "0.6334109", "0.63249093", "0.63155305", "0.6302324", "0....
0.7271901
0
Transform arrays into lists of json safe types also handles pandas series, and replacing nans and infs with strings
def lkJx(YEnM): BFR6 = oyIN.datetime64('2001') Ssdc = BFR6.astype('int64') == BFR6.astype('datetime64[ms]').astype('int64') if YEnM.dtype.kind == 'M': if Ssdc: if YEnM.dtype == oyIN.dtype('datetime64[ns]'): return (YEnM.astype('int64') / 10 ** 6.0).tolist() else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pz3A(nPrm):\n for H5ew in nPrm:\n if type(nPrm[H5ew]) == XTiz.ndarray:\n nPrm[H5ew] = nPrm[H5ew].tolist()\n if isinstance(nPrm[H5ew], list):\n nPrm[H5ew] = [0 if isinstance(WKvO, float) and epAf.isnan(WKvO) else WKvO for WKvO in nPrm[H5ew]]\n return nPrm", "def eyKN(...
[ "0.691161", "0.6357955", "0.61296874", "0.61226934", "0.6014269", "0.59589815", "0.58300644", "0.57798976", "0.573751", "0.5733376", "0.56800723", "0.5652168", "0.55829626", "0.55093217", "0.54728806", "0.54601216", "0.54508823", "0.5444295", "0.5437409", "0.5432883", "0.5417...
0.55578816
13
Generate the operator in the complete Hilbert space of the system by taking tensor products.
def eCJf(BCqu: Union[int, List[int]], INK1: Union[numpy.ndarray, List[numpy.ndarray]], wbks: Union[int, List[int]], BxYA: int) -> XTiz.ndarray: if isinstance(wbks, int): cwmT = XTiz.identity(wbks, dtype=complex) if isinstance(BCqu, int): assert XTiz.size(INK1) == (wbks, wbks), 'Dimension...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kEeD(yvY1, C7Ls):\n nanM = WEES(yvY1, C7Ls)\n nanM.add_nodes_from(qOow(yvY1, C7Ls))\n nanM.add_edges_from(Yj6q(yvY1, C7Ls))\n if not nanM.is_directed():\n nanM.add_edges_from(x5Y9(yvY1, C7Ls))\n return nanM", "def QjWT(YKHO, n2Q1, SpII):\n return vhpA((yR_P.monomial(o4D3) * yR_P.mono...
[ "0.63826", "0.6133825", "0.6024412", "0.6009062", "0.5969987", "0.5946628", "0.5868395", "0.57984704", "0.5777967", "0.5750121", "0.5720918", "0.564446", "0.5631822", "0.5598328", "0.55919385", "0.55734795", "0.55693686", "0.55377257", "0.55348843", "0.5529705", "0.55268717",...
0.57783306
8
Get the unitary operator corresponding to the evolution governed by the Hamiltonian.
def Z_Bu(ORsB: Dict[str, Any]) -> XTiz.ndarray: Aofo = XiF4(ORsB) return Aofo['unitary']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XZ_x(OwND):\n MKlR = OwND.copy()\n MKlR = OwND.get_multicell()\n if MKlR.dimensionality != 1:\n raise\n if not MKlR.is_multicell:\n\n def hfaD(G1Hx):\n Y6K3 = oyIN.exp(1j * 2.0 * oyIN.pi * G1Hx)\n DJAH = 1j * (MKlR.inter * Y6K3 - MKlR.inter.H * oyIN.conjugate(Y6K...
[ "0.69397897", "0.65074074", "0.64563507", "0.6416185", "0.6388841", "0.63132447", "0.6234237", "0.62290835", "0.6201878", "0.6201878", "0.6201878", "0.61858284", "0.6143468", "0.6143468", "0.6143468", "0.6143468", "0.6143468", "0.6143468", "0.6143468", "0.6143468", "0.6143468...
0.0
-1
Transform the Hamiltonian dictionary to a string.
def Bpko(ORsB: Dict[str, Any]) -> str: Az5G = jth9.deepcopy(ORsB) dSBO(Az5G) Xn0w = Az5G['circuit']['max_time_dt'] JRYC = Az5G['circuit']['dt'] def zgba(jNSF: Dict[str, Any]) -> x1iM[float]: """ Translate callable waveform to sequence""" nonlocal maxDt, dt WmiZ = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D7nC(C7Ls):\n NHn2 = xdzS(C7Ls)\n\n def UXqs(KCHu):\n if KCHu == 'H0':\n return '\\\\hat{H}_0'\n elif KCHu == 'Hint':\n return '\\\\hat{H}_{\\\\text{int}}'\n else:\n try:\n y0cW, QyVM = KCHu.split('_')\n except ValueError:\n ...
[ "0.63096815", "0.60522574", "0.5930102", "0.57651013", "0.5684819", "0.5667677", "0.5636836", "0.56141305", "0.5579487", "0.5538844", "0.5538328", "0.5493518", "0.54401326", "0.5422144", "0.5412672", "0.5403245", "0.5392862", "0.53916574", "0.53879666", "0.5385236", "0.537964...
0.5326751
28
Adjust the parameters of the layer by using the optimizer
def CCGw(YKHO, XY1r): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KcD7(YKHO, tspZ, H0zq, WMj5):\n YKHO.optimizer = EW5f(lr=tspZ, momentum=H0zq, decay=WMj5)", "def jAow(YKHO, QpfX, K0do, KcEq):\n pass", "def e_63(YKHO, K0do, qtWj, qIxc):\n tspZ = qIxc.learning_rate * 0.1 ** (qtWj // 30)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ", "def e_63(...
[ "0.71678865", "0.7030835", "0.68808085", "0.68347955", "0.6777706", "0.67733604", "0.674914", "0.6741614", "0.673294", "0.668111", "0.6672885", "0.66728824", "0.6666251", "0.6638807", "0.6637646", "0.6636848", "0.6634975", "0.6631258", "0.6631105", "0.6631105", "0.6631105", ...
0.0
-1
Return a dictionary specifying the defaults for this form. This dictionary shall be used to inject the initial values for an Angular controller using the directive 'nginit={{thisform.get_initial_data|js|safe}}'.
def MX9n(YKHO): nPrm = {} for mWFP, Jyyj in YKHO.fields.items(): if hasattr(Jyyj, 'widget') and 'ng-model' in Jyyj.widget.attrs: nPrm[mWFP] = YKHO.initial and YKHO.initial.get(mWFP) or Jyyj.initial return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def muwo():\n Vo9x = YMxP.dummy\n return {'disease_demographic_id': Vo9x('demographic_id')}", "def KggW(YKHO, muwo):\n wTBP = YKHO.email()\n if wTBP:\n muwo['email'] = YKHO.email()\n nPrm = YKHO.additional_data()\n if not nPrm:\n return muwo\n for L03z in nPrm:\n if L03z...
[ "0.70314217", "0.7019184", "0.69623965", "0.6813803", "0.67751884", "0.67474955", "0.663069", "0.6547036", "0.64795905", "0.6336114", "0.63260394", "0.6297748", "0.62811136", "0.6272118", "0.626164", "0.6257755", "0.6234373", "0.6230987", "0.6228861", "0.6204141", "0.61935157...
0.715202
0
Used when angular's query() method is called Build an array of all objects, return json response
def PDwr(YKHO, QePW, *qIxc, **B2fa): return YKHO.build_json_response(YKHO.get_queryset())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w3Be():\n return pz3A(zVa7.get_all_data())", "def CnKV(YKHO):\n try:\n nPrm = [vxUp.self_json(Lx3t) for Lx3t in YKHO.productModel.query.all()]\n return oGir(response=qQXR.dumps(nPrm), status=200, mimetype='application/json')\n except cQ7A as err:\n return oGir(response=qQXR.dump...
[ "0.6735071", "0.66806215", "0.6582834", "0.6573205", "0.65703523", "0.65511554", "0.6521539", "0.64924604", "0.64832145", "0.6463034", "0.64612055", "0.6439454", "0.64274085", "0.6410017", "0.6385594", "0.6356347", "0.63551503", "0.63498086", "0.6339762", "0.6311569", "0.6296...
0.77316815
0
Evaluate the log density at th th is a numpy array of shape (d,) or (n_samples, d)
def Vjik(YKHO, idx7): ZHfW = YKHO.__low <= idx7 <= YKHO.__high if len(idx7.shape) == 1: u54L = 1 elif len(idx7.shape) == 2: u54L = idx7.shape[0] else: raise RuntimeError('th must be either (d,) or (n_samples, d)') FLMZ = oyIN.empty(u54L) FLMZ[ZHfW] = 0.0 FLMZ[~ZHfW] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NPc5(YKHO, H96n, PcEy, ubfq):\n raise NotImplementedError", "def NPc5(YKHO, sAoX, H96n):\n PcEy, ubfq = YKHO._raw_predict(sAoX)\n return YKHO.likelihood.log_predictive_density(H96n, PcEy, ubfq)", "def AJao(WKvO, JBMS, ZOOq, M1Jx):\n I8JS = M1Jx.pow(2)\n gXdX = -(WKvO - JBMS).pow(2) / (2 * I8...
[ "0.6885609", "0.6806024", "0.6674962", "0.6660521", "0.6604686", "0.6587067", "0.6571452", "0.65640014", "0.6537668", "0.64906", "0.6487277", "0.6470818", "0.6467356", "0.6417878", "0.6353183", "0.6353183", "0.63112515", "0.6305143", "0.6305143", "0.62966925", "0.62405676", ...
0.59863806
47
returns a humanfriendly representation of a file size.
def ddcG(wEf2, UH90=1): if wEf2 < 1000.0: return '%d Bytes' % int(wEf2) elif wEf2 < 1000000.0: return '%.*fkiB' % (UH90, wEf2 / 1024.0) elif wEf2 < 1000000000.0: return '%.*fMiB' % (UH90, wEf2 / 1024.0 / 1024.0) else: return '%.*fGiB' % (UH90, wEf2 / 1024.0 / 1024.0 / 102...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def format(YKHO, zNig):\n if YKHO.__units is None:\n return IVMq.format_file_size(zNig)\n elif YKHO.__units == 'bytes':\n return zNig\n else:\n return IVMq.format_file_size(zNig, units=YKHO.__units)[0:-1]", "def UzwC(zNig: float) -> str:\n for WKvO in ['bytes', 'KB', 'MB', 'GB', ...
[ "0.8058449", "0.80552155", "0.804821", "0.7806828", "0.7783957", "0.77127343", "0.771252", "0.75167257", "0.7506917", "0.74860644", "0.7473085", "0.74531823", "0.74407184", "0.73682183", "0.73258245", "0.7252712", "0.7244792", "0.7216793", "0.7213372", "0.7186753", "0.7148769...
0.6962758
35
returns a UTC datetime object in the format requried by http. This may crap when you fuzz with the locale. In general, when handling "real" times within the DC, prefer unix timestamps over datetimes and use the other RFC2616 functions.
def AzU9(JRYC): return JRYC.strftime('%a, %d %b %Y %H:%M:%S GMT')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SJMJ(IMJE=None):\n return snaW(IMJE, usegmt=True)", "def eoru(WKvO):\n return eCDK.Calendar().parseDT(datetimeString=WKvO, sourceTime=qcWV.utcnow(), tzinfo=rIAI('UTC'))[0]", "def SJMJ(Csk6=None):\n if not Csk6:\n Csk6 = qcWV.datetime.utcnow()\n return Csk6.strftime('%a, %d %b %Y %H:%M:%S...
[ "0.6338576", "0.6329292", "0.6308086", "0.6242978", "0.62164724", "0.6139425", "0.6133208", "0.6133208", "0.6126177", "0.6095178", "0.6017702", "0.6012535", "0.5992282", "0.5921262", "0.5918444", "0.58962435", "0.58649343", "0.58569807", "0.58372575", "0.5803685", "0.5803685"...
0.6159236
5
returns seconds since unix epoch representing UTC from the HTTPcompatible time specification s.
def wCIv(KCHu): SQ3m = BxIl.parsedate_tz(KCHu) return BxIl.mktime_tz(SQ3m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mqoM():\n wzkt = qcWV.datetime.utcnow()\n qtWj = qcWV.datetime(1970, 1, 1)\n return (wzkt - qtWj).total_seconds()", "def LrXp(KCHu):\n JRYC = d5IO.parser.parse(KCHu)\n p6zu = int(JRYC.replace(tzinfo=rIAI.utc).timestamp())\n return p6zu", "def zVfW(h5YN):\n return (h5YN - qcWV(1970, 1, ...
[ "0.72132", "0.7173617", "0.69503516", "0.6915451", "0.6843297", "0.6758395", "0.66292876", "0.6612739", "0.6607527", "0.65920275", "0.65612143", "0.65402836", "0.65402836", "0.6498623", "0.6465838", "0.64443916", "0.6438595", "0.6376012", "0.6367665", "0.635215", "0.6338115",...
0.0
-1
returns an RFC2616 date string for UTC seconds since unix epoch.
def ZSrm(lcOE=None): if lcOE is None: lcOE = ITS7.time() return BxIl.formatdate(lcOE, localtime=False, usegmt=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SJMJ(IMJE=None):\n return snaW(IMJE, usegmt=True)", "def zKHa(E3oo=ITS7(), gqke='%Y-%m-%d %H:%M:%S'):\n return F803(gqke, WPt4(E3oo))", "def qgZJ(_c1T):\n if not _c1T:\n return ''\n _c1T = _c1T + qcWV.timedelta(seconds=-ITS7.timezone)\n if ITS7.daylight:\n _c1T += qcWV.timedelt...
[ "0.70827997", "0.68862337", "0.6663131", "0.6659183", "0.6577747", "0.64988923", "0.637579", "0.6354921", "0.63463706", "0.62043566", "0.6177568", "0.61761963", "0.61582744", "0.6157967", "0.61409354", "0.6135716", "0.61010104", "0.6094307", "0.60888696", "0.60529083", "0.603...
0.7186623
0
returns some ISO8601 representation of a datetime instance. The reason for preferring this function over a simple str is that datetime's default representation is too difficult for some other code (e.g., itself); hence, this code suppresses any microsecond part and always adds a Z (where strftime works, utils.isoTimest...
def zyCs(JRYC): if JRYC is None: return None return JRYC.replace(microsecond=0, tzinfo=None).isoformat() + 'Z'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpCw(YEnM: datetime.datetime) -> str:\n return YEnM.replace(tzinfo=qcWV.timezone.utc).isoformat().replace('+00:00', 'Z')", "def D1gm(BWXx: Union[datetime.datetime, datetime.time]) -> str:\n RI88 = BWXx.isoformat()\n if BWXx.tzinfo is None:\n RI88 += 'Z'\n else:\n RI88 = ZbWC.sub('[+...
[ "0.7416491", "0.72285634", "0.7103629", "0.7078754", "0.7071707", "0.70313394", "0.69976014", "0.6958733", "0.6911778", "0.6786292", "0.6687942", "0.6662748", "0.66269565", "0.66113424", "0.65770954", "0.6558364", "0.6536537", "0.6460257", "0.645084", "0.64418143", "0.6441345...
0.7679552
0
returns s with exactly one trailing slash.
def FsCh(KCHu): return KCHu.rstrip('/') + '/'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afPa(pmON):\n return pmON.split('/')[0]", "def bIoc(bD7m):\n return bD7m if bD7m.endswith('/') else bD7m + '/'", "def KbHS(pmON):\n if len(pmON) > 0:\n if pmON[len(pmON) - 1] == '/':\n return pmON[0:-1]\n else:\n return pmON\n else:\n return pmON", "...
[ "0.74095285", "0.7214548", "0.7014402", "0.6937832", "0.67677695", "0.67522174", "0.6741746", "0.66087866", "0.64388007", "0.6331296", "0.62603635", "0.6188933", "0.61769015", "0.6120291", "0.6117025", "0.6114627", "0.60587126", "0.6023046", "0.60170954", "0.6016922", "0.5998...
0.8243863
0
returns a random string of harmless printable characters.
def XALU(u54L): return ''.join((tuKI.choice(NtSH) for Z9rn in range(u54L)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q_QB():\n yvT9 = ''\n for bGrB in range(24):\n yvT9 += Acvy(C1SZ)\n return yvT9", "def e7Tf():\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for bGrB in range(16)))", "def DsQ5(oQBC):\n QUSx = vIwR.printable\n V22M = ''\n YRbF = 0\n while YRbF < oQBC:\n ...
[ "0.74269366", "0.7230842", "0.7166727", "0.71631926", "0.7130199", "0.7080146", "0.70368505", "0.70176977", "0.6992308", "0.6985256", "0.6973733", "0.69231623", "0.68380547", "0.6823979", "0.680392", "0.67901033", "0.67643464", "0.67517096", "0.67489433", "0.6740124", "0.6738...
0.6437645
57
Method should return a standardisation matrix of the vector
def FxNT(): global standardisation return lncr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IdJC(iArr):\n global standardisation\n ggGl = ZvG6.StandardScaler().fit(iArr)\n lncr = ggGl.transform(iArr)", "def MQrb(YKHO):\n if YKHO.vector.shape is ():\n return\n if YKHO.dimensionality() != 1:\n raise NotImplementedError\n bQ6z = 1.0 * max(YKHO.vector)\n if bQ6z == 0....
[ "0.72598976", "0.65828854", "0.65278476", "0.6473063", "0.6401042", "0.629671", "0.6273627", "0.6264433", "0.61407506", "0.60999334", "0.6048403", "0.60418576", "0.60410947", "0.6029571", "0.6023645", "0.60013324", "0.59972024", "0.5983273", "0.59739894", "0.59585786", "0.595...
0.0
-1