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
r""" return list of element symbol in structure
def UXKg(): return ['MN', 'W', 'HE', 'C', 'CR', 'FE', 'MO', 'NI', 'SI', 'V']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZWtP(YKHO):\n return [jz1G.AtomicNumberToSymbol(bGrB) for bGrB in range(1, 108)]", "def GlbD(YKHO):\n msBr = g760.defaultdict(set)\n wGw9 = g760.defaultdict(list)\n for qpDA in YKHO.structure:\n msBr[qpDA.specie.symbol].add(str(qpDA.specie))\n for tTpl, kPI8 in msBr.items():\n if...
[ "0.7044129", "0.68436587", "0.6701035", "0.65234894", "0.6441934", "0.6424379", "0.6412252", "0.6385199", "0.6380028", "0.6374767", "0.63626957", "0.63604385", "0.6344224", "0.6333794", "0.63225", "0.6322028", "0.6321156", "0.63128376", "0.63073176", "0.62892026", "0.627701",...
0.6924359
1
Returns path to course config file for a given semester and course.
def fJve(YzNf, GQfX): return f'/var/local/submitty/courses/{YzNf}/{GQfX}/config/config.json'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RrNC(xzSM, Es0b, xqoZ):\n return Hy7s.path.join(Hy7s.getcwd(), ZR0i(xzSM, Es0b, xqoZ))", "def RrNC():\n return Hy7s.path.join(vmiX, u8az)", "def S673():\n return SDCd", "def S673(YKHO):\n return Hy7s.path.expanduser(YKHO.options.config_file)", "def tgzD(lqQH):\n kmqQ = Hy7s.path.sep.join...
[ "0.667759", "0.658503", "0.63297087", "0.6272886", "0.62363744", "0.62272716", "0.6222033", "0.6213293", "0.6197915", "0.61923844", "0.61843157", "0.61710906", "0.6158786", "0.6135893", "0.61270344", "0.6110814", "0.6064403", "0.6059278", "0.6048942", "0.60444945", "0.5996165...
0.84332985
0
Test Nuage VSP Static NAT functionality for Isolated network by performing (wget) traffic tests to the Internet
def BVWs(YKHO): YKHO.debug('Creating Nuage VSP Isolated Network offering with Static NAT service provider as NuageVsp...') nDVg = YKHO.create_NetworkOffering(YKHO.test_data['nuagevsp']['isolated_network_offering']) YKHO.validate_NetworkOffering(nDVg, state='Enabled') YKHO.debug('Creating persistent Nuag...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Am7g(YKHO):\n YKHO.debug('Creating Nuage VSP Isolated Network offering with Static NAT service provider as NuageVsp...')\n nDVg = YKHO.create_NetworkOffering(YKHO.test_data['nuagevsp']['isolated_network_offering'])\n YKHO.validate_NetworkOffering(nDVg, state='Enabled')\n YKHO.debug('Creating an Iso...
[ "0.7371253", "0.7364659", "0.71379334", "0.70257807", "0.6927745", "0.6847471", "0.67796326", "0.6657065", "0.6623083", "0.66060555", "0.6594915", "0.653332", "0.6493626", "0.6493626", "0.6493626", "0.6493626", "0.6493626", "0.6493626", "0.6493626", "0.6493626", "0.6493626", ...
0.72551775
2
Test Nuage VSP Static NAT functionality for VPC network by performing (wget) traffic tests to the Internet
def SFTc(YKHO): YKHO.debug('Creating Nuage VSP VPC offering with Static NAT service provider as NuageVsp...') Z50Y = YKHO.create_VpcOffering(YKHO.test_data['nuagevsp']['vpc_offering']) YKHO.validate_VpcOffering(Z50Y, state='Enabled') YKHO.debug('Creating a VPC with Static NAT service provider as NuageVs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JuQp(YKHO):\n YKHO.debug('Creating Nuage VSP VPC offering with Static NAT service provider as NuageVsp...')\n kZWW = YKHO.create_VpcOffering(YKHO.test_data['nuagevsp']['vpc_offering'])\n YKHO.validate_VpcOffering(kZWW, state='Enabled')\n YKHO.debug('Creating Nuage VSP VPC offering with Static NAT s...
[ "0.72332305", "0.7154081", "0.71518403", "0.702734", "0.6950627", "0.6877716", "0.65831625", "0.6559902", "0.6559902", "0.6559902", "0.6559902", "0.6559902", "0.6559902", "0.6559902", "0.6559902", "0.6559902", "0.6559902", "0.6559902", "0.6559902", "0.6559902", "0.6559902", ...
0.80050606
0
Test Nuage VSP Static NAT functionality with different Egress Firewall/Network ACL rules by performing (wget) traffic tests to the Internet
def Pq0f(YKHO): YKHO.debug('Creating Nuage VSP Isolated Network offering with Static NAT service provider as NuageVsp...') nDVg = YKHO.create_NetworkOffering(YKHO.test_data['nuagevsp']['isolated_network_offering']) YKHO.validate_NetworkOffering(nDVg, state='Enabled') YKHO.debug('Creating an Isolated net...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SFTc(YKHO):\n YKHO.debug('Creating Nuage VSP VPC offering with Static NAT service provider as NuageVsp...')\n Z50Y = YKHO.create_VpcOffering(YKHO.test_data['nuagevsp']['vpc_offering'])\n YKHO.validate_VpcOffering(Z50Y, state='Enabled')\n YKHO.debug('Creating a VPC with Static NAT service provider a...
[ "0.7359486", "0.69719416", "0.6748075", "0.6747684", "0.6732739", "0.65966743", "0.65702426", "0.64982396", "0.6443888", "0.64412016", "0.64412016", "0.64412016", "0.64412016", "0.64412016", "0.64412016", "0.64412016", "0.64412016", "0.64412016", "0.64412016", "0.64412016", "...
0.76051366
0
Test Nuage VSP Static NAT functionality with VM NIC operations by performing (wget) traffic tests to the Internet
def Am7g(YKHO): YKHO.debug('Creating Nuage VSP Isolated Network offering with Static NAT service provider as NuageVsp...') nDVg = YKHO.create_NetworkOffering(YKHO.test_data['nuagevsp']['isolated_network_offering']) YKHO.validate_NetworkOffering(nDVg, state='Enabled') YKHO.debug('Creating an Isolated net...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SFTc(YKHO):\n YKHO.debug('Creating Nuage VSP VPC offering with Static NAT service provider as NuageVsp...')\n Z50Y = YKHO.create_VpcOffering(YKHO.test_data['nuagevsp']['vpc_offering'])\n YKHO.validate_VpcOffering(Z50Y, state='Enabled')\n YKHO.debug('Creating a VPC with Static NAT service provider a...
[ "0.7340651", "0.7079634", "0.7025761", "0.6921978", "0.68337184", "0.6717643", "0.66703856", "0.65993947", "0.6519253", "0.6513", "0.65105957", "0.64601374", "0.64265716", "0.64178604", "0.64178604", "0.64178604", "0.64178604", "0.64178604", "0.64178604", "0.64178604", "0.641...
0.7724634
0
Test Nuage VSP Static NAT functionality with VM migration by performing (wget) traffic tests to the Internet
def u_J3(YKHO): YKHO.debug('Creating Nuage VSP Isolated Network offering with Static NAT service provider as NuageVsp...') nDVg = YKHO.create_NetworkOffering(YKHO.test_data['nuagevsp']['isolated_network_offering']) YKHO.validate_NetworkOffering(nDVg, state='Enabled') YKHO.debug('Creating an Isolated net...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Am7g(YKHO):\n YKHO.debug('Creating Nuage VSP Isolated Network offering with Static NAT service provider as NuageVsp...')\n nDVg = YKHO.create_NetworkOffering(YKHO.test_data['nuagevsp']['isolated_network_offering'])\n YKHO.validate_NetworkOffering(nDVg, state='Enabled')\n YKHO.debug('Creating an Iso...
[ "0.7444774", "0.74115384", "0.7150993", "0.7042967", "0.68836415", "0.6644771", "0.66234934", "0.6516926", "0.650572", "0.64329714", "0.6369543", "0.6369543", "0.6369543", "0.6369543", "0.6369543", "0.6369543", "0.6369543", "0.6369543", "0.6369543", "0.6369543", "0.6369543", ...
0.7787262
0
Test Nuage VSP Static NAT functionality by enabling Static Nat when VR is in starting state
def jflo(YKHO): YKHO.debug('Creating Nuage VSP Isolated Network offering with Static NAT service provider as NuageVsp...') nDVg = YKHO.create_NetworkOffering(YKHO.test_data['nuagevsp']['isolated_network_offering']) YKHO.validate_NetworkOffering(nDVg, state='Enabled') YKHO.debug('Creating an Isolated net...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5D4(YKHO):\n YKHO.debug('Creating Nuage VSP Isolated Network offering with Static NAT service provider as NuageVsp...')\n jzFq = YKHO.create_NetworkOffering(YKHO.test_data['nuagevsp']['isolated_network_offering'])\n YKHO.validate_NetworkOffering(jzFq, state='Enabled')\n YKHO.debug('Recreating abov...
[ "0.7072449", "0.6913246", "0.65535057", "0.65426236", "0.65410346", "0.65347445", "0.6522792", "0.64170885", "0.6385169", "0.6224114", "0.6009309", "0.5891868", "0.57703066", "0.5758075", "0.57453173", "0.57161885", "0.56454456", "0.5612172", "0.55518913", "0.5548299", "0.553...
0.8349246
0
Gets an error object to return in the response.
def CtsV(tTpl): return {'errors': [{'code': tTpl.code, 'title': tTpl.title, 'details': tTpl.details, 'href': tTpl.href}], 'message': 'Some errors were found during the execution of this request'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EkHl(YKHO):\n return YKHO._error", "def Ihip(YKHO):\n return YKHO.error", "def P1dF(YKHO) -> Ut6Z:\n return YKHO._error", "def TbCE(YKHO):\n return YKHO.__error", "def TbCE(YKHO):\n return YKHO.__error", "def TbCE(YKHO):\n return YKHO.__error", "def P1dF(YKHO) -> h8nf['outputs.Err...
[ "0.7537884", "0.7454768", "0.741799", "0.73647827", "0.73205", "0.73205", "0.7304039", "0.7304039", "0.7272973", "0.7267345", "0.72353816", "0.72223616", "0.7217054", "0.71999633", "0.7159664", "0.7159664", "0.7159664", "0.7159664", "0.7100999", "0.70685816", "0.7040328", "...
0.73152
6
Call super constructor BaseClassName.__init__(self, args)
def FIMM(YKHO, dAOG=None, _VzL=None, w0bU=None, oMqC=None, pzVU=None, G4SX=None, byuo=False, BuA0=None, OxSk=None, rPSv=None): super(n6rh, YKHO).__init__(unique_experiment_reference=G4SX, is_associated=byuo, date_asserted=BuA0, resource_score=OxSk, provenance_type=rPSv) '\n Name: evidence_codes\n Type: ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DnLW(YKHO, qIxc):\n raise NotImplementedError", "def nrOS(YKHO, qIxc):\n YKHO._sub_class_init(args=qIxc)", "def FIMM(YKHO, *qIxc: str, **B2fa: str) -> None:\n super().__init__(*qIxc, **B2fa)", "def FIMM(YKHO, *qIxc, **B2fa):\n super(i_Aq, YKHO).__init__(*qIxc, **B2fa)\n YKHO.arguments = {}...
[ "0.80648476", "0.80010223", "0.79700524", "0.79620224", "0.78786147", "0.7875011", "0.7874445", "0.7819296", "0.7798488", "0.77954304", "0.77954304", "0.77904266", "0.77904266", "0.77904266", "0.77904266", "0.77904266", "0.77904266", "0.77904266", "0.77904266", "0.77904266", ...
0.0
-1
Call super constructor BaseClassName.__init__(self, args)
def FIMM(YKHO, dAOG=None, w0bU=None, tsEk=None, D7Oh=None, IjQr=None, WTbS=None, qeG5=None, oMqC=None, lX5v=None, pzVU=None, G4SX=None, byuo=False, BuA0=None, OxSk=None, rPSv=None): super(SOkL, YKHO).__init__(unique_experiment_reference=G4SX, is_associated=byuo, date_asserted=BuA0, resource_score=OxSk, provenance_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DnLW(YKHO, qIxc):\n raise NotImplementedError", "def nrOS(YKHO, qIxc):\n YKHO._sub_class_init(args=qIxc)", "def FIMM(YKHO, *qIxc: str, **B2fa: str) -> None:\n super().__init__(*qIxc, **B2fa)", "def FIMM(YKHO, *qIxc, **B2fa):\n super(i_Aq, YKHO).__init__(*qIxc, **B2fa)\n YKHO.arguments = {}...
[ "0.80663866", "0.8002833", "0.7970224", "0.79616565", "0.78783286", "0.7875233", "0.7874747", "0.78190744", "0.7799999", "0.7797103", "0.7797103", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141",...
0.0
-1
Call super constructor BaseClassName.__init__(self, args)
def FIMM(YKHO, dAOG=None, tsEk=None, AzMF=None, gmIw=None, wnQV=None, pzVU=None, G4SX=None, byuo=False, BuA0=None, OxSk=None, rPSv=None): super(BScc, YKHO).__init__(unique_experiment_reference=G4SX, is_associated=byuo, date_asserted=BuA0, resource_score=OxSk, provenance_type=rPSv) '\n Name: evidence_codes\n ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DnLW(YKHO, qIxc):\n raise NotImplementedError", "def nrOS(YKHO, qIxc):\n YKHO._sub_class_init(args=qIxc)", "def FIMM(YKHO, *qIxc: str, **B2fa: str) -> None:\n super().__init__(*qIxc, **B2fa)", "def FIMM(YKHO, *qIxc, **B2fa):\n super(i_Aq, YKHO).__init__(*qIxc, **B2fa)\n YKHO.arguments = {}...
[ "0.80663866", "0.8002833", "0.7970224", "0.79616565", "0.78783286", "0.7875233", "0.7874747", "0.78190744", "0.7799999", "0.7797103", "0.7797103", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141", "0.7791141",...
0.0
-1
JSON comparison for complex objects. Should be JsonSerializable
def v2Du(cntZ, CsFy): return qQXR.dumps(cntZ, sort_keys=True) == qQXR.dumps(CsFy, sort_keys=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzCT(Emd4, YEnM):\n if isinstance(YEnM, dict):\n return any((G1Hx in YEnM for G1Hx in [Emd4.APPEND, Emd4.REMOVE, Emd4.UPDATE]))\n else:\n return False", "def JYOA(cntZ, CsFy):\n cntZ, CsFy = (qQXR.dumps(cntZ, sort_keys=True), qQXR.dumps(CsFy, sort_keys=True))\n return cntZ == CsFy",...
[ "0.68800765", "0.6826509", "0.6723007", "0.6649687", "0.6449731", "0.6424665", "0.6383619", "0.63649064", "0.6309871", "0.62944263", "0.6280882", "0.62777483", "0.62313473", "0.6211179", "0.62008315", "0.61854273", "0.61540616", "0.6154014", "0.61496145", "0.61443686", "0.612...
0.68313915
1
Get the anonymization salt based on the event timestamp's day.
def LNF2(i8WE): nkMR = 'stats:salt:{}'.format(i8WE.date().isoformat()) NTfD = Wi6w.get(nkMR) if not NTfD: KwAv = Hy7s.urandom(32) NTfD = QMfv(KwAv).decode('utf-8') Wi6w.set(nkMR, NTfD, timeout=60 * 60 * 24) return NTfD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kJBJ():\n return FXSn.token_hex(16)", "def LNF2(i8WE):\n nkMR = 'stats:salt:{}'.format(i8WE.date().isoformat())\n NTfD = Wi6w.get(nkMR)\n if not NTfD:\n KwAv = Hy7s.urandom(32)\n NTfD = QMfv(KwAv).decode('utf-8')\n Wi6w.set(nkMR, NTfD, timeout=60 * 60 * 24)\n return NTfD",...
[ "0.66509455", "0.6518927", "0.6515257", "0.6409875", "0.6388833", "0.6242519", "0.6139334", "0.6138571", "0.61185646", "0.6114634", "0.6034853", "0.6029225", "0.600292", "0.60007024", "0.59797275", "0.59355193", "0.59355193", "0.5923976", "0.58856726", "0.5846553", "0.5840141...
0.65115666
3
Destroy all panels attached to this frame.
def kRV1(YKHO): oMnB = (YKHO.comparePanel, YKHO.colorPanel, YKHO.findPanel, YKHO.fontPanel, YKHO.prefsPanel) for BcQj in oMnB: if BcQj: BcQj.top.destroy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zjR7(YKHO):\n for TEdI in YKHO.winfo_children():\n TEdI.destroy()", "def kSdD(YKHO):\n YKHO.panel.remove()\n YKHO.canvas.remove()\n for LihS in YKHO.elements:\n LihS.remove()", "def qp3v(YKHO):\n for aUGN in YKHO.winfo_children():\n aUGN.destroy()", "def Y7Bk(YKHO):\n ...
[ "0.7367682", "0.73173845", "0.7300831", "0.7272362", "0.70761424", "0.70380354", "0.69681656", "0.69312346", "0.6927201", "0.6825899", "0.6820099", "0.67727965", "0.66972905", "0.663864", "0.6465941", "0.6439915", "0.6433678", "0.6422021", "0.6422021", "0.641121", "0.63967574...
0.8540162
0
Return the last two published questions.
def k66M(YKHO): return Y4Gy.objects.order_by('-pub_date')[:2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iwvi(YKHO):\n II0Q(question_text='Past Question Example 1', days=-30)\n II0Q(question_text='Past Question Example 2', days=-5)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past Question Example 1>', '<Question: Past Ques...
[ "0.6867755", "0.6836231", "0.68226993", "0.681503", "0.679529", "0.67279357", "0.67279357", "0.67279357", "0.6689407", "0.6685257", "0.6664327", "0.66201806", "0.66147035", "0.6579468", "0.6557084", "0.65458095", "0.6535447", "0.6516913", "0.64711255", "0.64570165", "0.640999...
0.6601161
13
A view to show all categories
def ao3P(QePW): if not QePW.user.is_superuser: return vKnz(gxEw('home')) LeZt = qZuN.objects.all() rPXJ = 'subscriptions/categories.html' QpfX = {'categories': LeZt} return _1tc(QePW, rPXJ, QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xT2M(QePW):\n LeZt = qZuN.objects.all()\n return _1tc(QePW, 'categories/categories.html', {'categories': LeZt})", "def LeZt(QePW):\n return {'category_list': list(qZuN.objects.all())}", "def rNmM():\n return qZuN.objects.all()", "def LeZt(QePW):\n return {'categories': qZuN.objects.all()}"...
[ "0.8501596", "0.80507004", "0.79827195", "0.79407895", "0.7913971", "0.7893566", "0.78736776", "0.7865506", "0.77733225", "0.77178055", "0.77012664", "0.76968306", "0.76579267", "0.76446366", "0.75722986", "0.75722986", "0.75526065", "0.75334567", "0.75309694", "0.7452963", "...
0.822821
1
Gets a transient password
def jTXt(YKHO): return YKHO._password
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVq7(YKHO):\n return YKHO._password", "def QVq7(YKHO):\n return YKHO._password", "def QVq7(YKHO):\n return YKHO._password", "def QVq7(YKHO):\n return YKHO.password", "def QVq7(YKHO) -> str:\n return YKHO._password", "def AuKh(YKHO):\n return YKHO.__password", "def uOmc(YKHO):\n ...
[ "0.75226957", "0.75226957", "0.75226957", "0.7478531", "0.7396067", "0.73538566", "0.73297644", "0.7317272", "0.73089594", "0.7289029", "0.7283047", "0.72399044", "0.722049", "0.71988595", "0.71785617", "0.71785617", "0.71785617", "0.71785617", "0.7167737", "0.7144247", "0.71...
0.6998383
29
set transient password and updates password hash if password is not empty
def jTXt(YKHO, BWXx): if not BWXx: return YKHO._password = BWXx YKHO.hpass = mv1M.get_hashed_password(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m_qJ(YKHO, DDmJ: typing.Optional[str]) -> None:\n if DDmJ is None:\n YKHO._password = None\n else:\n YKHO._password = YKHO._hash(DDmJ)", "def G3s8(YKHO, jTXt):\n YKHO.values['password'] = vT87(jTXt)", "def G3s8(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)", "def G3s8(YKHO, jTX...
[ "0.7734406", "0.7692773", "0.7665058", "0.7665058", "0.7612137", "0.7609996", "0.7596706", "0.75941175", "0.7553533", "0.7553533", "0.7553533", "0.7553533", "0.7553533", "0.7553533", "0.7553533", "0.7553533", "0.7553533", "0.7553533", "0.7553533", "0.7553533", "0.7553533", ...
0.7417715
40
Add the form url to the Wagtail admin URLs.
def cx88(): return [pmON('tinify/<int:pk>/', KvHW.as_view(), name='tinify_form')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EjFW(YKHO):\n pzVU = super().get_admin_urls_for_registration()\n h0VS = FnRI(YKHO.url_helper.get_action_url_pattern('copy_form'), YKHO.copy_form_view, name=YKHO.url_helper.get_action_url_name('copy_form'))\n return pzVU + (h0VS,)", "def KKk3(YKHO, C3ST, QpfX):\n tKz9 = C3ST._meta.app_label\n r...
[ "0.747413", "0.69817907", "0.69536537", "0.69536537", "0.68914616", "0.68691474", "0.6569083", "0.6506862", "0.6468948", "0.63174176", "0.6288265", "0.6168437", "0.6131756", "0.6131756", "0.606116", "0.60075396", "0.59975445", "0.5980696", "0.59731025", "0.5964701", "0.590482...
0.0
-1
get current configuration copy.
def eEPS(): return jth9.deepcopy(UJfU) if UJfU else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zKPb(YKHO):\n return YKHO._config", "def jth9(YKHO):\n try:\n return jth9.deepcopy(Zboo().config)\n except NameError:\n return YKHO.default()", "def GPtr(YKHO):\n return jth9.deepcopy(YKHO._config.config)", "def tgzD(YKHO):\n return YKHO.config.config\n YKHO.update()", "...
[ "0.78690237", "0.7842721", "0.7818057", "0.78013194", "0.76355493", "0.75817835", "0.75817835", "0.75817835", "0.75817835", "0.74989706", "0.74989706", "0.74989706", "0.7491398", "0.74777037", "0.74777037", "0.74777037", "0.74777037", "0.74777037", "0.74777037", "0.74777037", ...
0.787109
0
Scalar dual quaternion multiplication. The multiplication with a scalar returns the dual quaternion with all elements multiplied by the scalar.
def OQEa(YKHO, Elif): if isinstance(Elif, KUXB): Xt2W = YKHO.dq.copy() iob8 = oyIN.float64(Elif) * Xt2W return spHl.from_vector(iob8) else: assert False, 'Multiplication is only defined for scalars or dual quaternions.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def irl5(Bud7, hAEw):\n Bud7.reinitialize()\n Bud7.dtype.scalar_mult(Bud7, hAEw)\n return Bud7", "def k0gx(hAEw, WKvO, mWFP=None):\n MP2n = m1c7.as_dtype(WKvO.dtype).base_dtype\n hAEw = IPme.convert_to_tensor(hAEw, dtype=MP2n, name='scalar')\n ROpF = hAEw.get_shape()\n if ROpF.ndims == 0:\n ...
[ "0.6976277", "0.69725436", "0.69518715", "0.69321203", "0.6925557", "0.69126314", "0.69017935", "0.68968016", "0.6888367", "0.6846627", "0.68306345", "0.6824026", "0.6819448", "0.6754712", "0.67300075", "0.6718543", "0.6660154", "0.66305304", "0.66158724", "0.6584249", "0.657...
0.63447654
29
Create a normalized dual quaternion from a pose.
def LC0a(Emd4, WKvO, LVAh, epBp, ydZk, OhBR, dnz0, ev_Q): jOpO = R5H8(ydZk, OhBR, dnz0, ev_Q) jOpO.normalize() eA0O = R5H8(WKvO, LVAh, epBp, 0) * jOpO * 0.5 return Emd4(jOpO, eA0O)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iwwp(A3nx):\n corR = PZyS(A3nx[0] * A3nx[0] + A3nx[1] * A3nx[1] + A3nx[2] * A3nx[2] + A3nx[3] * A3nx[3])\n vexM = A3nx\n vexM[0] = vexM[0] / corR\n vexM[1] = vexM[1] / corR\n vexM[2] = vexM[2] / corR\n vexM[3] = vexM[3] / corR\n shtX = I7o1([[1 - 2 * vexM[2] * vexM[2] - 2 * vexM[3] * vexM[...
[ "0.6464285", "0.64626664", "0.64138436", "0.6345448", "0.63406485", "0.62572896", "0.6252842", "0.6201455", "0.61755186", "0.6108503", "0.61010367", "0.60995966", "0.60926867", "0.6091622", "0.6072254", "0.60711783", "0.5978199", "0.5969667", "0.596458", "0.5963217", "0.59632...
0.681268
0
Create a normalized dual quaternion from a pose vector.
def tj2u(Emd4, shtX): return Emd4.from_pose(shtX[0], shtX[1], shtX[2], shtX[3], shtX[4], shtX[5], shtX[6])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bBBY(YKHO, iArr):\n FxcA = (iArr ^ VxRP.MVector(0, 1, 0)).normalize()\n g5BG = (iArr ^ FxcA).normalize()\n if YKHO._axis == 0:\n dFHd = VxRP.MVector(-iArr.x, -iArr.y, -iArr.z)\n _zDr = VxRP.MVector(-g5BG.x, -g5BG.y, -g5BG.z)\n Tv7R = FxcA\n if YKHO._invert:\n dFH...
[ "0.6698532", "0.6553287", "0.6517686", "0.65068483", "0.6297761", "0.62976533", "0.62976533", "0.6272423", "0.62610984", "0.6232002", "0.6209742", "0.6172515", "0.61720484", "0.61627126", "0.61489284", "0.61267966", "0.6125677", "0.61251885", "0.611703", "0.6111269", "0.60564...
0.6206268
11
Enforce a positive real part of the rotation quaternion.
def EUCG(YKHO): assert YKHO.norm()[0] > 1e-08 if YKHO.q_rot.w < 0.0: YKHO.dq = -YKHO.dq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cE9U():\n RqgG = oyIN.array([[1, 0, 0, 0]])\n lXgg = _UVk(oyIN.array([1e-07]))\n Aofo = KlhT(RqgG, lXgg)\n assert Aofo != 0", "def BpHy(YKHO):\n YylR = 0\n yRKV = XTiz.array([1, 0, 0, 0])\n F_On = YKHO.vectors\n foTO = [a3mR.geometry.Quaternion.real_and_vector(YylR, Ty9i).as_rotation(...
[ "0.6418534", "0.637388", "0.6307491", "0.6110963", "0.5897319", "0.58245736", "0.58171463", "0.5810595", "0.5796763", "0.5758407", "0.575817", "0.56722176", "0.5646793", "0.5595565", "0.5590042", "0.5585656", "0.5575917", "0.5572665", "0.5547609", "0.55034643", "0.5478631", ...
0.7744863
0
Normalize the dual quaternion.
def NkkI(YKHO): VZ4h = YKHO.q_rot.norm() YKHO.dq[0:4] = YKHO.q_rot.q / VZ4h YKHO.dq[4:8] = YKHO.q_dual.q / VZ4h YKHO.assert_normalization()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CkYf(YKHO):\n assert YKHO.q_rot.norm() > 1e-08, 'Dual quaternion has rotational part equal to zero, hence the norm isnot defined.'\n VZ4h = YKHO.q_rot.norm()\n w7Jt = oyIN.dot(YKHO.q_rot.q, YKHO.q_dual.q) / VZ4h\n return (VZ4h, w7Jt)", "def ZUWr(vexM):\n return vexM / oyIN.linalg.norm(vexM)", ...
[ "0.7283942", "0.71204656", "0.7028211", "0.69871557", "0.6935759", "0.6924926", "0.6840015", "0.68378365", "0.6811834", "0.66681236", "0.6603062", "0.6603062", "0.6576542", "0.653176", "0.6529967", "0.6521175", "0.6415239", "0.64138156", "0.6402193", "0.6379343", "0.63694096"...
0.7447237
0
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None Vt89 = qRGs.models.credentials.Credentials.from_dictionary(cmPJ.get('credentials')) if cmPJ.get('credentials') else None vMpZ = qRGs.models.app_owner_restore_info.AppOwnerRestoreInfo.from_dictionary(cmPJ.get('ownerRestoreInfo')) if cmPJ.get('ownerRe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
Add several limits to the manager in one go.
def FJj_(YKHO, c5uu): for qoqK in c5uu: YKHO.add(qoqK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set(YKHO, c5uu):\n YKHO.clear()\n YKHO.extend(c5uu)", "def y7_i(YKHO, c5uu: dict):\n Ylbp = YKHO._rest_client.confs['limits']['http_input']\n Ylbp.submit(c5uu)", "def dRO0(YKHO):\n A7jd = YKHO._limits_widget.get_selected_limits()\n for gEmA in YKHO.__layers:\n oCwL = gEmA.limits()\...
[ "0.72218055", "0.6813925", "0.6756792", "0.653293", "0.65154564", "0.6434286", "0.6389747", "0.6389747", "0.63428366", "0.6325944", "0.63014454", "0.62429553", "0.6187366", "0.6181726", "0.615059", "0.6113115", "0.6097939", "0.60563695", "0.6025687", "0.6009193", "0.6009193",...
0.82083654
0
Renders the home page.
def kZiy(QePW): assert isinstance(QePW, eu5F) return _1tc(QePW, 'app/index.html', context_instance=K1Ja(QePW, {'title': 'Start Here', 'year': qcWV.now().year}))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86078775", "0.8565745", "0.8562313", "0.84557843", "0.8353218", "0.8352591", "0.8327394", "0.8326027", "0.8326027", "0.83111614", "0.83078635", "0.83039415", "0.82960343", "0.8293676", "0.8293676", "0.8286475", "0.8279046", "0.8279046", "0.8279046", "0.8279046", "0.8279046...
0.0
-1
Renders the contact page.
def Mxk0(QePW): assert isinstance(QePW, eu5F) L03z = JmDL() return _1tc(QePW, 'app/contact.html', context_instance=K1Ja(QePW, {'title': 'Customer Service', 'message': 'We are here for you', 'year': qcWV.now().year, 'form': L03z}))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85942996", "0.856412", "0.856412", "0.8553042", "0.84771496", "0.84180754", "0.84098697", "0.8347894", "0.8342256", "0.8328687", "0.82468224", "0.82289207", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.8...
0.74761623
83
Only the dict keys from list should be converted to snakecase
def vtCQ(YKHO): nPrm = [{'camelCaseKey': 'camelCaseValue'}] cTtB = BfDw.convert_camelcase_to_snakecase(nPrm) Clec = [{'camel_case_key': 'camelCaseValue'}] YKHO.assertEqual(Clec, cTtB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A7fK(object: Dict[str, Any]) -> cuzp[str, ImMB]:\n M_Yt: cuzp[str, ImMB] = {}\n for H5ew, BWXx in object.items():\n hU8D = SJar.sub('_\\\\1', H5ew).lower()\n hU8D = hU8D.replace('__', '_')\n if hU8D[0] == '_':\n hU8D = hU8D[1:]\n for dYPj, crDJ in XPZR.items():\n ...
[ "0.756798", "0.74153835", "0.7403412", "0.70898485", "0.70550185", "0.6994019", "0.6961073", "0.693346", "0.69034505", "0.6870088", "0.68302345", "0.6751198", "0.6715556", "0.66817653", "0.66720784", "0.66509044", "0.66509044", "0.65818363", "0.6551203", "0.6524837", "0.65234...
0.73160183
3
Calculate the Rsquared error term.
def whQk(LVAh, Q2u8): import numpy P1dF = ((numpy.array(Q2u8) - numpy.array(LVAh)) ** 2).sum() X8Kx = P1dF / len(LVAh) return 1 - X8Kx / numpy.var(LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def whQk(YKHO):\n return 1 - YKHO.rss() / YKHO.tss()", "def RqHv(YKHO) -> float:\n WKvO, LVAh = OEwl(YKHO._ghg_data, YKHO._bird_data)\n return round(YKHO._model.score(WKvO, LVAh), 6)", "def whQk(YKHO):\n whQk = YKHO.model.score(YKHO.test_data, YKHO.test_labels[:, [-1]])\n return whQk", "def K9...
[ "0.75668883", "0.73701084", "0.7265163", "0.7163299", "0.7139716", "0.70334184", "0.6928948", "0.6911587", "0.6911474", "0.68887866", "0.6888343", "0.6887629", "0.6852677", "0.6851576", "0.6843242", "0.68282694", "0.6816184", "0.67877233", "0.67790616", "0.6774124", "0.673056...
0.7095714
5
Verify some basic properties of the /index/projects response and that each hit in the response is equal to the single hit response of a a request for one project (eg. /index/projects/{uuid})
def NTyb(YKHO): def _pxP(qxeD=None): bD7m = YKHO.base_url.set(path=('index', 'projects', qxeD or ''), args=dict(catalog=YKHO.catalog)) geh0 = G4JS.get(str(bD7m)) geh0.raise_for_status() return geh0.json() def GzQ9(UZ_k): YKHO.assertEqual(len(UZ_k['fileTypeSummaries']), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ixcK(YKHO):\n bNKA = YKHO.factory.project()\n Ylbp = YKHO.client.get(YKHO.get_project_url(bNKA))\n aEqx = {'id', 'title', 'description', 'link', 'gallery', 'thumbnail', 'tags'}\n YKHO.assertStrictAllIn(aEqx, Ylbp.data)\n YKHO.assertStrictAllIn(Ylbp.data['gallery'], {'id', 'pictures'})\n YKHO....
[ "0.6842935", "0.67768955", "0.66706383", "0.66082567", "0.65949535", "0.6571506", "0.6549068", "0.6536825", "0.6512736", "0.6472549", "0.64576167", "0.64142793", "0.63772416", "0.6367469", "0.63501567", "0.6309271", "0.6284906", "0.62807024", "0.62447125", "0.6204829", "0.618...
0.792433
0
String for representing the Model object.
def zAg0(YKHO): return f'{YKHO.user_id}, {YKHO.name}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--...
[ "0.81885296", "0.8092215", "0.79587615", "0.7848622", "0.7839469", "0.76655394", "0.75757945", "0.75660306", "0.7560155", "0.7548143", "0.7483473", "0.7464744", "0.74516714", "0.74516714", "0.74475425", "0.74459755", "0.74459755", "0.74459755", "0.74117213", "0.74064744", "0....
0.0
-1
String for representing the Model object.
def zAg0(YKHO): return f'{YKHO.class_id}, {YKHO.topic}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\t' + _2sc + ' instance\\n'\n oOUF += '--...
[ "0.81892824", "0.80928355", "0.7958657", "0.7849373", "0.78411466", "0.7667056", "0.7577242", "0.7566466", "0.7561851", "0.7548706", "0.7483726", "0.7465762", "0.74535877", "0.74535877", "0.7448269", "0.74476784", "0.74476784", "0.74476784", "0.74132323", "0.7407112", "0.7399...
0.0
-1
Returns log categorical crossentropy for given logpredictions and targets, targets should be onehotencoded.
def UjNl(Hy8I, x6A0, Htse=None): assert Hy8I.size() == x6A0.size() Aofo = -Hy8I * x6A0 if Htse is not None: if not hasattr(Htse, '__len__'): Htse = [Htse] for tpio in Htse: Aofo = idx7.sum(Aofo, dim=int(tpio)) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CqbS(N6Z1, x6A0):\n cKa6 = ht2j.log_softmax(N6Z1, dim=1)\n N77f = -(x6A0 * cKa6).sum(dim=1)\n return N77f", "def kYYV(g9eR, x6A0, Au0z=None):\n if g9eR.size() == x6A0.size():\n assert Au0z is None, 'Class weights not implemented for one-hot'\n return UjNl(g9eR, x6A0)\n TFPw = g9e...
[ "0.8501035", "0.8270494", "0.77917695", "0.77683187", "0.7663456", "0.7508606", "0.74487084", "0.73938286", "0.73098224", "0.72131246", "0.7211931", "0.7149633", "0.7117325", "0.70560604", "0.70470375", "0.6986921", "0.6959313", "0.69532955", "0.6923876", "0.6921471", "0.6911...
0.8214963
2
Return a copy of this CPT.
def jth9(YKHO): return XoSw(YKHO.values, YKHO.states, YKHO.conditioned, YKHO.description)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return U7YL.copy(YKHO)", "def jth9(YKHO):\n return U7YL.deepcopy(YKHO)", "def jth9(YKHO):\n return YKHO._copy()", "def jth9(YKHO):\n return YKHO.__class__(YKHO.data.copy(), YKHO.P)", "def jth9(YKHO):\n return YKHO", "def jth9(YKHO):\n return XNC8(YKHO)", "def jth9(YK...
[ "0.7976972", "0.79199886", "0.77279896", "0.7699616", "0.7688684", "0.7683602", "0.76508087", "0.76508087", "0.76508087", "0.76508087", "0.75595915", "0.75368947", "0.75368947", "0.75368947", "0.75368947", "0.75368947", "0.75368947", "0.7531756", "0.7514805", "0.7514805", "0....
0.8608626
0
Return a copy this CPT as a Factor.
def StVD(YKHO): return ggep(YKHO.values, YKHO.states)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n jth9 = MaKo.__new__(YKHO.__class__)\n jth9.variables = [*YKHO.variables]\n jth9.cardinality = oyIN.array(YKHO.cardinality)\n jth9.values = prPh.copy(YKHO.values)\n jth9.state_names = YKHO.state_names.copy()\n jth9.no_to_name = YKHO.no_to_name.copy()\n jth9.name_to_no = YKHO.n...
[ "0.7225422", "0.6636167", "0.63628185", "0.6333223", "0.6282211", "0.6276978", "0.62329113", "0.6217871", "0.61425436", "0.6122718", "0.60751265", "0.6066961", "0.6066961", "0.59226096", "0.59153616", "0.58209896", "0.58049035", "0.57921225", "0.5767862", "0.57384485", "0.571...
0.7626478
0
Return a dict representation of this CPT.
def _fYl(YKHO): Csk6 = super().as_dict() Csk6.update({'type': 'CPT', 'description': YKHO.description, 'conditioned': YKHO.conditioned, 'conditioning': YKHO.conditioning}) return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dict(YKHO):\n return YKHO.to_dict()", "def dict(YKHO):\n return YKHO.to_dict()", "def Napc(YKHO):\n return {'name': YKHO.name, 'description': YKHO.description, 'id': YKHO.id, 'pr': YKHO.pr, 'order': YKHO.order, 'suplier': YKHO.suplier, 'date': YKHO.date}", "def Napc(YKHO):\n return dict(YKHO....
[ "0.76467526", "0.76467526", "0.74321705", "0.7396879", "0.73454565", "0.73454565", "0.73454565", "0.73368114", "0.73368114", "0.73368114", "0.73368114", "0.73368114", "0.73368114", "0.73368114", "0.73368114", "0.73368114", "0.73368114", "0.73247373", "0.7299631", "0.7299631", ...
0.7800402
0
Return the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = YKHO.username return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM", "def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()", "def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')", "def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl...
[ "0.8330605", "0.8229233", "0.8182619", "0.8121796", "0.8082264", "0.8067136", "0.8060857", "0.8053972", "0.80444545", "0.80358243", "0.8031876", "0.80296946", "0.80162597", "0.8000356", "0.79981965", "0.7997343", "0.7996962", "0.7996962", "0.799515", "0.7994415", "0.7994415",...
0.0
-1
Translate ids in the list of requested names into their test addresses, if they are found in my dict of tests.
def nn5Z(YKHO, ZWCE, yR_P=None): RKD7.debug('ltfn %s %s', ZWCE, yR_P) try: Ga6V = open(YKHO.idfile, 'r') YKHO.ids = tyeH(Ga6V) RKD7.debug('Loaded test ids %s from %s', YKHO.ids, YKHO.idfile) Ga6V.close() except IOError: RKD7.debug('IO error reading %s', YKHO.idfile) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KXuM(_fCU, kxs9, B1dv, uWR1):\n assert _fCU.lookup(B1dv) == uWR1\n assert kxs9.lookup(B1dv) == uWR1", "def c9wO(YKHO, A07C: list) -> dict:\n nPrm: list = []\n ccBJ: dict = {}\n A07C = list(set(A07C))\n BJJz = 1000\n moMn = [A07C[YRbF:YRbF + BJJz] for YRbF in range(0, len(A07C), BJJz)]\n ...
[ "0.6177631", "0.5941644", "0.57482684", "0.55919415", "0.556712", "0.55201054", "0.5491595", "0.5482165", "0.5477535", "0.5412289", "0.5366041", "0.52769417", "0.52758557", "0.52578986", "0.5249741", "0.5244119", "0.52436745", "0.52274644", "0.52019984", "0.51865816", "0.5184...
0.6139741
1
Start running all callbacks. Supporting multiple executor threads for blocking callbacks.
def iXC1(YKHO, TP9_: bool=False, XhqX: bool=False) -> None: awAk = YKHO.robottype_controller.list_all_cr(use_cache=False) for TWOx in awAk: mWFP = TWOx.get('metadata', {}).get('name') Cqok = TWOx.get('spec') if mWFP and Cqok: YKHO.robottype_cb(mWFP, TWOx) gQtq = YKHO.list...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mNg9(YKHO):\n for db6b in YKHO._callbacks:\n db6b()", "def UHeF(YKHO):\n for d6pt in sorted(list(YKHO.callbacks.keys())):\n YKHO.run_callback(d6pt)", "def bdZS(YKHO):\n for f6Ma in YKHO._routines.values():\n f6Ma.start()", "def yKcO(YKHO):\n for MgeT in YKHO.__threads:\n ...
[ "0.6845453", "0.68155056", "0.6774595", "0.64716816", "0.6454115", "0.64516854", "0.63986933", "0.63514996", "0.63392013", "0.63345826", "0.63256955", "0.621105", "0.62038434", "0.6191091", "0.6173533", "0.616781", "0.6141713", "0.612686", "0.6096816", "0.6077031", "0.6042313...
0.0
-1
Generate a random string of fixed length
def TJC9(FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))", "def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]", "def BWvy(a__r):\n return Hy7s.urandom(a__r)", "def MiNk(u54L):\n gLiZ = vIwR.ascii...
[ "0.8746205", "0.87138057", "0.86634374", "0.8589632", "0.85856813", "0.85634226", "0.8558564", "0.85515654", "0.853908", "0.8533391", "0.8508468", "0.85072726", "0.84704083", "0.84667903", "0.84667903", "0.84504145", "0.8449424", "0.8428432", "0.84244287", "0.8423231", "0.841...
0.0
-1
Returns only the official name ("LAST FIRST MIDDLE") of the person
def TXQP(YKHO): return f'{YKHO.last} {YKHO.first} {YKHO.middle}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CCKR(taDc):\n return taDc['name'].split(' ')[-1]", "def jBHA(YKHO):\n return YKHO.name.split()[-1]", "def zp3f():\n return qyZ8('last_names')", "def CCKR(YKHO):\n if YKHO.last_name == '':\n YKHO.get_lead_traveller()\n return YKHO.last_name", "def zp3f(YKHO) -> str:\n return qe4...
[ "0.7887852", "0.7673257", "0.7399863", "0.73475266", "0.7313383", "0.72953606", "0.7265534", "0.7257359", "0.72387874", "0.7230672", "0.7210075", "0.71663386", "0.71558154", "0.71558154", "0.71558154", "0.71356386", "0.71356386", "0.71296227", "0.71296227", "0.7120467", "0.71...
0.0
-1
>>> from person import Person >>> Person(name_raw='DUNN,WL').full_name 'W. L. Dunn' >>> Person(name_raw='Dunn, William Lee').full_name 'William Lee Dunn'
def eHMM(YKHO): AdfU = [] if YKHO.first: if len(YKHO.first) == 1: AdfU.append(YKHO.first + '.') else: AdfU.append(YKHO.first.capitalize()) if YKHO.middle: if len(YKHO.middle) == 1: AdfU.append(YKHO.middle + '.') else: AdfU.appen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(cntZ, XVAW):\n pass", "def GY9S(c9ua, zp3f):\n eHMM = c9ua + zp3f\n return eHMM.title()", "def eHMM(YKHO):\n return '%s %s' % (YKHO.first_name, YKHO.last_name)", "def eHMM(YKHO):\n return '%s %s' % (YKHO.first_name, YKHO.lastname)", "def T37t(a70H: str) -> str:\n a70H = a70H.rstr...
[ "0.6874133", "0.6871976", "0.6837554", "0.68068963", "0.67948294", "0.67635417", "0.67433286", "0.6693515", "0.66790384", "0.6660656", "0.66596705", "0.66537875", "0.66476375", "0.6640883", "0.66304916", "0.6628111", "0.6613511", "0.66120046", "0.6607143", "0.6584629", "0.655...
0.0
-1
Finds raw org names like "B&W" in a name string, standarizes them (e.g. to "Brown & Williamson," and returns the name without that raw org name + extracted positions
def DSLr(hAkl): QTfy = [] for o23R, feeu in XG0f.items(): while True: JUKa = None for JUKa in ZbWC.finditer('\\b' + o23R + '\\b', hAkl): pass if not JUKa: break if len(o23R) >= 3: hAkl = hAkl[0:JUKa.start()] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XKeA(hAkl: str, UHFx: int, sSQK=True) -> (str, str, str, mBkc):\n hAkl = nj3W.remove_privlog_info(hAkl)\n hAkl = nj3W.remove_jr_sr_iii(hAkl)\n if hAkl.find(' - ') > -1 and len(hAkl.split(' - ')) == 2:\n hAkl, oUgx = hAkl.split(' - ')\n QTfy = [oUgx.strip()]\n else:\n QTfy = []\...
[ "0.649088", "0.6461909", "0.6405339", "0.62901163", "0.6139433", "0.6135727", "0.6135727", "0.6098773", "0.601008", "0.6004207", "0.5993561", "0.59886366", "0.5941324", "0.58842194", "0.5855982", "0.5845327", "0.57814485", "0.5751542", "0.5739772", "0.57207876", "0.5706487", ...
0.75244886
0
Load fmri time courses for each voxel within specified ROI.
def hVth(vi2_, oD1t, Zmw9=None): hqxQ = Hy7s.path.join(vi2_, 'VoxelResponses_subject%s.mat' % oD1t) ZylS = xU0C.open_file(hqxQ) UVc4 = ZylS.get_node('/rt')[:] ePTr = UVc4.sum(axis=1) WzDV = oyIN.nonzero(oyIN.logical_not(oyIN.isnan(ePTr)))[0] if Zmw9: eVnQ = ZylS.get_node('/roi/%s' % Zmw9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U3N0(XiwY, JIXZ, Mzf9, V_GC, GxCY, nXnc, D7KI, xCmO, MMTe='mean', IYen=True):\n import pygrib as tKSG\n GXef = JIXZ.strftime('%Y%m%d')\n lT4h = '{}/{}.{}*.grb2'.format(XiwY, QnGE(Mzf9), GXef)\n kOfG = CD35(['ls -1a ' + lT4h], shell=True).split()\n if MMTe == 'mem1':\n kOfG = [kOfG[0]]\n ...
[ "0.56154346", "0.5461009", "0.5229264", "0.5194744", "0.5158247", "0.5134898", "0.5124272", "0.510271", "0.50529754", "0.49751332", "0.49674326", "0.49672386", "0.49625996", "0.49445835", "0.49378896", "0.49328694", "0.49322274", "0.49276242", "0.49158493", "0.49146825", "0.4...
0.0
-1
Load fmri time courses for each voxel within specified ROI.
def xiRb(vi2_, oD1t, Zmw9=None): hqxQ = Hy7s.path.join(vi2_, 'EstimatedResponses.mat') ZylS = xU0C.open_file(hqxQ) UVc4 = ZylS.get_node('/dataTrnS%s' % oD1t)[:] UVc4 = UVc4.T ePTr = UVc4.sum(axis=1) WzDV = oyIN.nonzero(oyIN.logical_not(oyIN.isnan(ePTr)))[0] if Zmw9: pJTG = ZylS.get_n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U3N0(XiwY, JIXZ, Mzf9, V_GC, GxCY, nXnc, D7KI, xCmO, MMTe='mean', IYen=True):\n import pygrib as tKSG\n GXef = JIXZ.strftime('%Y%m%d')\n lT4h = '{}/{}.{}*.grb2'.format(XiwY, QnGE(Mzf9), GXef)\n kOfG = CD35(['ls -1a ' + lT4h], shell=True).split()\n if MMTe == 'mem1':\n kOfG = [kOfG[0]]\n ...
[ "0.56154346", "0.5461009", "0.5229264", "0.5194744", "0.5158247", "0.5134898", "0.5124272", "0.510271", "0.50529754", "0.49751332", "0.49674326", "0.49672386", "0.49625996", "0.49445835", "0.49378896", "0.49328694", "0.49322274", "0.49276242", "0.49158493", "0.49146825", "0.4...
0.0
-1
Instantiate the form to clock in a specific employee.
def FIMM(YKHO, YvUd, *qIxc, **B2fa): super().__init__(*qIxc, **B2fa) YKHO.employee = YvUd YKHO.fields['job'].queryset = FYrf.ClientJob.objects.filter(client=YvUd.client)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o90m(YKHO):\n bmkp = tBu1(YKHO, 'clock')\n bmkp.build(set_=True)\n YKHO.clock.start(YKHO.address_book, YKHO.agent_db)", "def cf8O(L03z):\n X259.append(TjLA(L03z['firstname'], L03z['lastname'], L03z['salary']))", "def FIMM(YKHO, YvUd, *qIxc, **B2fa):\n super().__init__(*qIxc, **B2fa)\n YKH...
[ "0.5897406", "0.5736023", "0.5637359", "0.5599819", "0.5408016", "0.5398559", "0.52968", "0.52561635", "0.5247337", "0.518841", "0.5185734", "0.5156401", "0.51000136", "0.5072606", "0.50541276", "0.50267917", "0.5016352", "0.49776798", "0.49739233", "0.49615923", "0.49473637"...
0.48096988
38
Save the new employee and attach the fields provided when the form was created.
def xkzz(YKHO, jSYO=True): YvUd = super().save(commit=False) YvUd.staffing_agency = YKHO.staffing_agency YvUd.user = YKHO.user if jSYO: YvUd.save() return YvUd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6():\n L03z = s1Vh()\n iYd6 = Mjcm.query.with_entities(Mjcm.name).all()\n L03z.department.choices = list(map(lambda YRbF: YRbF[0], iYd6))\n if L03z.validate_on_submit():\n mWFP = L03z.name.data.capitalize()\n SSA0 = L03z.surname.data.capitalize()\n _c1T = L03z.date.data\n ...
[ "0.70611024", "0.7034424", "0.7013398", "0.6818914", "0.67598534", "0.64693373", "0.64448565", "0.6405966", "0.64019954", "0.639497", "0.6383183", "0.637055", "0.6338847", "0.6304981", "0.6303287", "0.6269341", "0.62454927", "0.62223595", "0.6218607", "0.61832535", "0.6168466...
0.6653034
5
Ensure the employee and admin are associated with the same staffing agency.
def x0SS(YKHO): VMhS = super().clean() if not YKHO.admin.agency == YKHO.employee.agency: raise H6V6.ValidationError(bGrB('The staffing agency administrator may only approve employees who have applied to the same agency.')) return VMhS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YvUd(YKHO):\n return hasattr(YKHO, 'name') and (YKHO.name in Oa1e.admins or YKHO.name in Oa1e.sponsors or YKHO.name in Oa1e.employees)", "def jI0O(YKHO):\n SJJt = YKHO.agencies_in_stops\n YKHO.create_dummy_agency_table(YKHO.perm_agency_table, SJJt)\n n_KJ = eu98(YKHO.perm_agency_table, YKHO.desti...
[ "0.59021056", "0.58774215", "0.5707264", "0.56050754", "0.55494726", "0.5517427", "0.5498952", "0.54811317", "0.54687566", "0.54329056", "0.5425348", "0.54237366", "0.5386814", "0.53858614", "0.537205", "0.5366073", "0.5359665", "0.5356351", "0.53450084", "0.53379965", "0.533...
0.7005547
0
quick checks if the file is in ALLOWED_EXTENSIONS
def XT0o(Ux0P): return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in P4t4.config['ALLOWED_EXTENSIONS']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XT0o(Va2z):\n return Va2z.strip('.') in UWr8", "def XT0o(Ux0P):\n return Ux0P.endswith(UWr8)", "def XT0o(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in UWr8", "def XT0o(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1].lower() in UWr8", "def XT0o(Ux0P):\n return '...
[ "0.86049384", "0.82870924", "0.8275099", "0.8264661", "0.8264661", "0.82634866", "0.82634866", "0.82634866", "0.8260472", "0.82586753", "0.82586753", "0.82303995", "0.82286835", "0.822354", "0.822354", "0.822354", "0.822354", "0.822354", "0.822354", "0.822354", "0.822354", ...
0.8069762
30
Instantiation of DBStorage class
def FIMM(YKHO): Qfl3 = AxXv('HBNB_MYSQL_USER') s5fH = AxXv('HBNB_MYSQL_PWD') oFAP = AxXv('HBNB_MYSQL_HOST') AHSO = AxXv('HBNB_MYSQL_DB') YuXp = AxXv('HBNB_ENV') YKHO.__engine = y2U9('mysql+mysqldb://{}:{}@{}/{}'.format(Qfl3, s5fH, oFAP, AHSO), pool_pre_ping=True) i_Aq.metadata.create_all(YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **B2fa) -> None:\n S8SU = B2fa.pop('storage', YKHO.default_storage_class)\n YKHO._storage: kF3y = S8SU(*qIxc, **B2fa)\n YKHO._opened = True\n YKHO._tables: cuzp[str, TQJD] = {}", "def FIMM(YKHO, *qIxc, **B2fa):\n S8SU = B2fa.pop('storage', hBZ5)\n YKHO._storage = S8SU(*qIx...
[ "0.79881483", "0.796175", "0.7438283", "0.74259245", "0.7327161", "0.718788", "0.7153924", "0.7088119", "0.70709085", "0.7070331", "0.7064589", "0.70558804", "0.70417327", "0.70395255", "0.70334285", "0.70181185", "0.7000047", "0.6992548", "0.6980994", "0.6970335", "0.6967858...
0.0
-1
Add the object to the current database session
def BdN0(YKHO, YEnM): if YEnM: YKHO.__session.add(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _mzC(YKHO):\n NCls.session.add(YKHO)", "def RFVC(Emd4, cuiw, YEnM):\n cuiw.add(YEnM)", "def H2v5(YKHO, YEnM):\n YKHO.session.add(YEnM)", "def H2v5(YKHO, YEnM):\n YKHO.session.add(YEnM)", "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def H2v5(YKHO):\n NCls.s...
[ "0.83953357", "0.82088596", "0.8165225", "0.8165225", "0.8161732", "0.8078957", "0.7950483", "0.7877879", "0.7877879", "0.7877879", "0.7877879", "0.7877879", "0.7877879", "0.7877879", "0.7877879", "0.7877879", "0.7877879", "0.7877879", "0.7877879", "0.7877879", "0.7877879", ...
0.7714063
31
Call remove() on the private session attribute self.__session
def DDI8(YKHO): YKHO.__session.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSdD(YKHO, JkXK: str) -> None:\n raise NotImplementedError()", "def qs2_(YKHO, cuiw):\n raise NotImplementedError()", "def fFx9(YKHO):\n if isinstance(YKHO.__session, MBMI.session.Session):\n YKHO.__session.save()", "def yi3Z(YKHO):\n YKHO.__orm.remove_session()", "def yi3Z(YKHO, cui...
[ "0.78570795", "0.77869827", "0.7756413", "0.7702295", "0.76696545", "0.74989545", "0.743456", "0.7419179", "0.7389422", "0.7389422", "0.73843884", "0.7331777", "0.7190962", "0.7186128", "0.7145695", "0.7128189", "0.7059976", "0.7059976", "0.7059976", "0.7059976", "0.7059976",...
0.0
-1
Simplified Lorentz function Same as functions.lorentz, without scaling or centering constants
def hyAy(WKvO): return 1 / (WKvO ** 2 + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t8iT(epBp, cflT, Esro):\n return -oyIN.log(1.0 + ((epBp - cflT) / Esro) ** 2)", "def rJWX(*qIxc):\n return gQS9.Lorentzian(*qIxc)", "def ElHv(WKvO, LVAh, epBp, KCHu, Mkmy, Fg_i):\n CjCq = KCHu * (LVAh - WKvO)\n u7KJ = Mkmy * WKvO - LVAh - WKvO * epBp\n NzBs = WKvO * LVAh - Fg_i * epBp\n r...
[ "0.72229344", "0.7028811", "0.696277", "0.6824398", "0.6711064", "0.6657372", "0.66500926", "0.66163456", "0.6544928", "0.6531524", "0.6504777", "0.6501272", "0.64659244", "0.64545363", "0.6411735", "0.63915753", "0.6376712", "0.6375576", "0.63669175", "0.6336166", "0.6324064...
0.7201489
1
Gaussian function Nonnormalized Gaussian
def liMP(WKvO, jzdc, yGTL, KCHu): Oa1e = jzdc * oyIN.exp(-0.5 * (WKvO - yGTL) ** 2 / KCHu ** 2) return Oa1e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(WKvO, nJ9F, WTkW):\n return oyIN.exp(-((WKvO - nJ9F) / WTkW) ** 2 / 2.0)", "def IAWS(WKvO):\n return oyIN.exp(-WKvO ** 2)", "def IAWS(WKvO):\n return oyIN.exp(-(WKvO ** 2 / 2))", "def IAWS(WKvO, yGTL, WTkW):\n OEry = 1.0 / oyIN.sqrt(2 * oyIN.pi * WTkW ** 2)\n w520 = -1 * (WKvO - yGTL)...
[ "0.80374515", "0.80135", "0.796675", "0.791749", "0.79155713", "0.7907011", "0.7906134", "0.787613", "0.78751814", "0.7846798", "0.7793058", "0.77500427", "0.7744973", "0.7734314", "0.7713797", "0.76966166", "0.76765674", "0.7667111", "0.76667964", "0.7645445", "0.7638818", ...
0.0
-1
Read file data, encode it into base64. Return utf8 string of base64 encode data
def dbH5(pmON): return WR89.b64encode(open(pmON, 'rb').read()).decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mlKt(Ux0P):\n return WR89.b64encode(RRlC.ReadBinaryFileContents(RRlC.ExpandHomeDir(Ux0P)))", "def mlKt(Ux0P):\n return WR89.b64encode(RRlC.ReadBinaryFileContents(RRlC.ExpandHomeDir(Ux0P)))", "def mlKt(Ux0P):\n return WR89.b64encode(RRlC.ReadBinaryFileContents(RRlC.ExpandHomeDir(Ux0P)))", "def Hd...
[ "0.77257967", "0.77257967", "0.76624423", "0.7654765", "0.7449669", "0.73987466", "0.73616785", "0.73291266", "0.7260379", "0.71398383", "0.71276486", "0.7102616", "0.7102616", "0.7100563", "0.70593214", "0.7051314", "0.6932271", "0.69238776", "0.69085", "0.68881613", "0.6877...
0.7510416
4
Search for the best move from the available legal moves and return a result before the time limit expires. YOU DO NOT NEED TO MODIFY THIS FUNCTION For fixeddepth search, this function simply wraps the call to the minimax method, but this method provides a common interface for all Isolation agents, and you will replace ...
def j5YA(YKHO, BH3N, TK8C): YKHO.time_left = TK8C DQoW = (-1, -1) try: return YKHO.minimax(BH3N, YKHO.search_depth) except Z7bg: pass return DQoW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SR1K(YKHO, BH3N, rb7a):\n if YKHO.time_left() < YKHO.TIMER_THRESHOLD:\n raise Z7bg()\n DQoW = (-1, -1)\n f7Dd = float('-inf')\n HMeC = BH3N.get_legal_moves()\n if len(HMeC) > 0:\n DQoW = HMeC[0]\n for BZN_ in HMeC:\n QVeo = BH3N.forecast_move(BZN_)\n DCJh = YKHO.mi...
[ "0.8246812", "0.82101274", "0.81459904", "0.7970565", "0.794296", "0.7822564", "0.7798175", "0.7787617", "0.7577662", "0.75693095", "0.75615716", "0.7554072", "0.75053847", "0.75008243", "0.7483416", "0.74639213", "0.7448861", "0.743691", "0.7433992", "0.7425024", "0.7412237"...
0.71553236
46
Search for the best move from the available legal moves and return a result before the time limit expires. Modify the get_move() method from the MinimaxPlayer class to implement iterative deepening search instead of fixeddepth search.
def j5YA(YKHO, BH3N, TK8C): YKHO.time_left = TK8C DQoW = (-1, -1) try: rb7a = 1 while True: DQoW = YKHO.alphabeta(BH3N, rb7a) rb7a = rb7a + 1 except Z7bg: pass return DQoW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j5YA(YKHO, BH3N, HMeC, TK8C):\n YKHO.time_left = TK8C\n r6rW = TK8C()\n DQoW = (-1, -1)\n if len(HMeC) > 0:\n DQoW = HMeC[tuKI.randint(0, len(HMeC) - 1)]\n Kxv6 = 0\n BKMj = False\n J9Mn = YKHO.minimax if YKHO.method == 'minimax' else YKHO.alphabeta\n Ocsy = (1, HwRy.maxsize) if ...
[ "0.81965274", "0.80015737", "0.7872486", "0.7804517", "0.7668321", "0.76135427", "0.76125425", "0.7601262", "0.7559586", "0.7510621", "0.74562275", "0.7399094", "0.7395266", "0.7395266", "0.7370148", "0.7353778", "0.7353778", "0.7353778", "0.7353778", "0.7348244", "0.73417693...
0.715065
29
Changes colors of surrounding tiles, and returns true if target player is on one of the squares.
def m9XT(YKHO, iBIi, pan_): for WKvO, LVAh in Hs6x.product([-1, 0, 1], [-1, 0, 1]): Dd_h, Spep = (YKHO.x + WKvO, YKHO.y + LVAh) try: eL5z = iBIi[Dd_h, Spep] eL5z.randomize_color() if pan_.xy == (Dd_h, Spep): YKHO._found_other = True except ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vHjs(YKHO):\n Wyt4 = []\n for YRbF in range(8):\n Wyt4.append(YKHO.get_tile_colors(YRbF))\n hgjH = Wyt4[1][3] if Wyt4[1][3] == Wyt4[3][2] == Wyt4[4][0] == Wyt4[6][1] else False\n if hgjH is False:\n return False\n YKHO.__get_all_trios(Wyt4)\n for lkEY in YKHO.trios:\n if ...
[ "0.6690625", "0.66043955", "0.6506084", "0.64470875", "0.6432681", "0.6426453", "0.6338788", "0.62840766", "0.6261579", "0.62337065", "0.6173157", "0.61572033", "0.61130387", "0.6105262", "0.6098953", "0.6098953", "0.6023162", "0.59983355", "0.5977717", "0.5964132", "0.596003...
0.0
-1
Create and return a new 'House' instance, given the validated data
def eLpg(YKHO, vGfb): return TwVO.objects.create(**vGfb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OuLp(YKHO):\n Rci7 = Fu0_(name='Alba')\n xAU6 = xU49(rooms=4)\n pB3N = {'title': '2 bedrooms appartment near metrostation', 'price': 650.0, 'description': 'beautiful house downtown lafayette', 'location': Rci7.id, 'options': xAU6.id, 'user': YKHO.user}\n Ylbp = YKHO.client.post(vwxg, pB3N)\n YKH...
[ "0.6747248", "0.6594229", "0.62040585", "0.6148691", "0.60556173", "0.6007618", "0.5929257", "0.5912967", "0.5879106", "0.58285725", "0.58105254", "0.5779213", "0.573055", "0.5698384", "0.5689514", "0.56401163", "0.5629486", "0.5624343", "0.5606274", "0.5604947", "0.5603583",...
0.8509991
0
Update and return an existing 'Houste' instance, given the validated data
def QdZT(YKHO, KAOR, vGfb): KAOR.CRIM = vGfb.get('CRIM', KAOR.CRIM) KAOR.ZN = vGfb.get('ZN', KAOR.ZN) KAOR.INDUS = vGfb.get('INDUS', KAOR.INDUS) KAOR.CHAS = vGfb.get('CHAS', KAOR.CHAS) KAOR.NOX = vGfb.get('NOX', KAOR.NOX) KAOR.RM = vGfb.get('RM', KAOR.RM) KAOR.AGE = vGfb.get('AGE', KAOR.AGE)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, KAOR, vGfb):\n KAOR.name = vGfb.get('name', KAOR.name)\n KAOR.description = vGfb.get('description', KAOR.description)\n KAOR.uc = vGfb.get('uc', KAOR.uc)\n KAOR.semester = vGfb.get('semester', KAOR.semester)\n KAOR.tipo = vGfb.get('tipo', KAOR.tipo)\n KAOR.ht = vGfb.get('ht', KAOR....
[ "0.7727083", "0.736701", "0.7140469", "0.7140469", "0.7134158", "0.71161747", "0.7094782", "0.7089301", "0.7059813", "0.70533025", "0.7032436", "0.70322514", "0.7029204", "0.7025497", "0.70137084", "0.7009832", "0.70003164", "0.6996247", "0.69822234", "0.6978698", "0.69741905...
0.6495769
72
Calculate the average radius of the lines.
def Sd_Y(YKHO, Nqlg): B9Au = YKHO.IMG_HEIGHT - 1 QUk3 = YKHO._get_lane_width_pixels(Nqlg) ez0H = QUk3 // YKHO.LANE_WIDTH_METERS IaYw = 1 / 10 * ez0H q_3R = Nqlg['left'].poly_params Sz62 = Nqlg['right'].poly_params il5t = oyIN.linspace(0, YKHO.IMG_HEIGHT) FsGz = q_3R[0] * il5t ** 2 + q_3R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQgV(MEia):\n return oyIN.mean([Wskb[-1].mean() for Wskb in MEia])", "def WthT(YKHO):\n r1VO = oyIN.array(YKHO.coord_list)\n r1VO[:, 0] -= YKHO.mean_pos[0]\n r1VO[:, 1] -= YKHO.mean_pos[1]\n r1VO = oyIN.sqrt(oyIN.sum(r1VO ** 2, axis=1))\n AVjl = oyIN.mean(r1VO)\n return AVjl", "def leR...
[ "0.7347924", "0.71158403", "0.6617863", "0.6540354", "0.64894855", "0.6479317", "0.6451588", "0.6318948", "0.63098365", "0.6298217", "0.62651914", "0.62572247", "0.62482756", "0.62032026", "0.6168655", "0.6165745", "0.6154883", "0.61547804", "0.6105524", "0.60324985", "0.6013...
0.6653154
2
This function extracts a given channel from an image and applies a threshold to it. The output image is a binary image with the same shape of the input image.
def ojEa(VXjJ, YwkQ='h', knl1=(90, 255)): if YwkQ == 'h': Cd_s = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HLS) Z9rn = Cd_s[:, :, 0] elif YwkQ == 'l': qJtC = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HLS) Z9rn = qJtC[:, :, 1] elif YwkQ == 's': Cd_s = XC5k.cvtColor(VXjJ, XC5k.COLOR_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kS7z(VXjJ, YwkQ=2, knl1=(0, oyIN.pi / 2)):\n qJtC = XC5k.cvtColor(VXjJ, XC5k.COLOR_RGB2HLS).astype(oyIN.float)\n Mixq = qJtC[:, :, YwkQ]\n dbuB = oyIN.zeros_like(Mixq)\n dbuB[(Mixq >= knl1[0]) & (Mixq <= knl1[1])] = 1\n return dbuB", "def W3Q1(VXjJ, YwkQ, Hw9C=(0, 255)):\n jaG1 = VXjJ[:, :,...
[ "0.77865744", "0.7731529", "0.7731529", "0.74083674", "0.7351588", "0.7234183", "0.7063176", "0.6972783", "0.6939664", "0.69328463", "0.6901685", "0.68859285", "0.687787", "0.6869031", "0.6844901", "0.6828584", "0.6786097", "0.67706114", "0.66465884", "0.65543914", "0.6551812...
0.7811036
0
This function calculates the sobel for an image and applies a binary threshold
def Sk6z(VXjJ, ENzu='x', oVn9=0, cdWX=255, JR2b=False, ivFb=False, uuBR=oyIN.ones((9, 9), oyIN.uint8), HRJV=oyIN.ones((15, 15), oyIN.uint8)): ITiw = XC5k.cvtColor(VXjJ, XC5k.COLOR_RGB2GRAY) if ENzu == 'x': H9dw = XC5k.Sobel(ITiw, XC5k.CV_64F, 1, 0) elif ENzu == 'y': H9dw = XC5k.Sobel(ITiw, X...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZmDK(ITiw, pg7l, ENzu='x', oVn9=0, cdWX=255):\n if ENzu == 'y':\n JY0y = 0\n RfE8 = 1\n else:\n JY0y = 1\n RfE8 = 0\n H9dw = oyIN.absolute(XC5k.Sobel(ITiw, XC5k.CV_64F, JY0y, RfE8, ksize=pg7l))\n H9dw = oyIN.uint8(H9dw * 255 / oyIN.max(H9dw))\n dbuB = oyIN.zeros_like(...
[ "0.8140067", "0.76865375", "0.76474154", "0.7551741", "0.7544529", "0.75404346", "0.7479266", "0.74516666", "0.74263996", "0.74126565", "0.7407775", "0.7404041", "0.73818034", "0.7373043", "0.7339653", "0.732149", "0.7320622", "0.7310521", "0.7308867", "0.73028666", "0.730277...
0.66927296
54
This function extracts the R and Schannel of the image. Since the Schannel is quite noisy a sobel in xdirection is used to filter the noise (bitwise_and). Also both, the filtered S and the Rchannel are not working that well for detection yellow lines. Therefor a yellow color mask is added (bitwise_or) to the filtered S...
def A2ru(VXjJ): Y4vV = (200, 255) z_iT = ojEa(VXjJ, channel='r', thresh=Y4vV) g_q9 = (90, 255) U8Wq = ojEa(VXjJ, channel='s', thresh=g_q9) H9dw = Sk6z(VXjJ, orient='x', thresh_min=20, thresh_max=100) FDcB = XC5k.bitwise_and(U8Wq, H9dw) Cd_s = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HSV) Bc4x ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(VXjJ):\n ITiw = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)\n KCHu = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HLS)[:, :, 2]\n linG = kvsN.abs_sobel_thresh(KCHu, 'x', 7, (20, 100))\n vj8j = kvsN.abs_sobel_thresh(KCHu, 'y', 7, (10, 100))\n yBsX = kvsN.abs_sobel_thresh(ITiw, 'x', 7, (30, 100))\n v...
[ "0.6802581", "0.6798562", "0.6770081", "0.66415143", "0.653833", "0.6515461", "0.65078205", "0.63988626", "0.6381602", "0.633464", "0.6304195", "0.6300743", "0.62812465", "0.6273914", "0.62716186", "0.6233833", "0.62315303", "0.6230756", "0.62186855", "0.61944515", "0.6187904...
0.6815644
0
Lane detection method. Starting from the left and right base the method searched for line pixels using a sliding window approach. Left and right base can either be given or are determined by a histogram (see "_find_lane_pixels()" for details). If succesful, lines are added to state.
def K3Td(uZEh, QTBn, HNfD=None, eW_y=None): def GcuZ(uZEh, HNfD=None, eW_y=None): """ Function searches for lane pixels stating from a base point for both line (left and right) using sliding window. The base points can be given or are determined by a histogram approach. For this, the histog...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def degS(YKHO, VXjJ):\n thJw = oyIN.sum(VXjJ[VXjJ.shape[0] // 2:, :], axis=0)\n o8mw = oyIN.dstack((VXjJ, VXjJ, VXjJ)) * 255\n lKXT = oyIN.int(thJw.shape[0] // 2)\n ETor = oyIN.argmax(thJw[:lKXT])\n MBSt = oyIN.argmax(thJw[lKXT:]) + lKXT\n eIgl = oyIN.int(VXjJ.shape[0] // YKHO.nwindows)\n vPaS...
[ "0.79753685", "0.74969214", "0.7386693", "0.7290614", "0.7244515", "0.7244515", "0.7134481", "0.7119738", "0.711192", "0.7007128", "0.7007128", "0.6983325", "0.6947865", "0.6820585", "0.6809305", "0.67646664", "0.6704841", "0.6684188", "0.66827", "0.66719687", "0.6603136", ...
0.64310575
27
Lane detection methods. Searches in a area arounf the last lane lines for line pixels and fits a new line through those pixels. If successful, lines are added to state.
def r9oP(uZEh, QTBn): MVIL = 100 waS5 = uZEh.nonzero() FzSH = oyIN.array(waS5[0]) HoqM = oyIN.array(waS5[1]) AugS = (HoqM > QTBn.get_last_lines()['left'].poly_params[0] * FzSH ** 2 + QTBn.get_last_lines()['left'].poly_params[1] * FzSH + QTBn.get_last_lines()['left'].poly_params[2] - MVIL) & (HoqM < ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0wT(LNo8):\n global DO_ONCE\n if u5Bn:\n print('image type is', type(LNo8))\n u5Bn = False\n uA4E = B6HJ(LNo8, (80, 160, 3))\n uA4E = oyIN.array(uA4E)\n uA4E = uA4E[None, :, :, :]\n o3Uj = C3ST.predict(uA4E)[0] * 255\n vO4O.recent_fit.append(o3Uj)\n if len(vO4O.recent_fit...
[ "0.7276948", "0.7218004", "0.7190252", "0.7175294", "0.7173377", "0.7133018", "0.7087356", "0.6946586", "0.69407225", "0.6812044", "0.67639357", "0.6736562", "0.6465591", "0.6342078", "0.6295955", "0.62655723", "0.62528664", "0.6216421", "0.6140021", "0.61346424", "0.6128683"...
0.0
-1
Normalize the Jones vector to a power of 1.
def NkkI(YKHO): CkYf = YKHO.power YKHO[0, 0] = YKHO[0, 0] / CkYf YKHO[1, 0] = YKHO[1, 0] / CkYf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(VQ6Z):\n return VQ6Z / oyIN.sum(VQ6Z)", "def NkkI(YKHO) -> 'Vector':\n return YKHO * (1 / YKHO.magnitude)", "def AMFZ(WKvO):\n WKvO[oyIN.where(WKvO)[0]] = 1\n CkYf = oyIN.sqrt(WKvO.dot(WKvO))\n return WKvO / CkYf", "def NkkI(YKHO):\n YKHO.magnitude = 1", "def iC99(WKvO):\n WKv...
[ "0.6624604", "0.66190016", "0.6597844", "0.65589595", "0.6477011", "0.6459925", "0.64018005", "0.63740766", "0.63620406", "0.63485026", "0.630511", "0.62987274", "0.6298336", "0.6280472", "0.62760854", "0.6231625", "0.621381", "0.6180772", "0.617967", "0.61676574", "0.6160766...
0.6328903
10
Returns the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = '{} {}'.format(YKHO.first_name, YKHO.last_name) return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM", "def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()", "def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')", "def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl...
[ "0.82872856", "0.8179012", "0.81130326", "0.80760396", "0.8034134", "0.8032392", "0.8030516", "0.80072623", "0.8006718", "0.8005418", "0.8000916", "0.7995176", "0.79901665", "0.79793483", "0.79790914", "0.79603624", "0.7952844", "0.7944558", "0.7944558", "0.79419315", "0.7941...
0.0
-1
Return true if the state should end the episode. This includes both failure terminals (such as when the model isoutofbounds) and success terminals (when the model is in a successful state)
def f9TP(ephx): uKPe = ephx[18] return uKPe != 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1ww(YKHO, QTBn: EnvState, NArs: EnvParams) -> bool:\n xy52 = QTBn.step >= NArs.max_steps_in_episode\n return xy52", "def Ohg3(YKHO):\n return YKHO._state == YKHO._end_state", "def DrFW(YKHO) -> bool:\n if YKHO._check_player_exited():\n YKHO._log_dict['reset_count_player_exited'] += 1\n ...
[ "0.72352695", "0.7067624", "0.69847906", "0.6911963", "0.6842936", "0.67985356", "0.6749983", "0.67474693", "0.6700005", "0.6656901", "0.66436356", "0.66258544", "0.6612403", "0.6590365", "0.6570694", "0.6569765", "0.6535834", "0.6509557", "0.64947987", "0.6486915", "0.646178...
0.7228425
1
Does a PATCH request to /v1.0/stops/{stopId}. Clients can update the _geographic details_ of a stop; the Stop Geographic Details are the specific location for the truck and trailer to park and a polygon of geographic points indicating the entryway onto a facility (i.e. where the truck should drive on approach). Sending...
def qRdL(YKHO, zL37, TBsA): try: YKHO.logger.info('update_stop_geographic_details called.') YKHO.logger.info('Preparing query URL for update_stop_geographic_details.') T6Z0 = '/v1.0/stops/{stopId}' T6Z0 = fPb2.append_url_with_template_parameters(T6Z0, {'stopId': zL37}) RGYk =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SpLo(YKHO, DDJ9, hRJu, TBsA):\n try:\n YKHO.logger.info('update_driver_route_stop called.')\n YKHO.logger.info('Preparing query URL for update_driver_route_stop.')\n T6Z0 = '/v1.0/vehicles/{vehicleId}/routes/{routeId}'\n T6Z0 = fPb2.append_url_with_template_parameters(T6Z0, {'veh...
[ "0.6482105", "0.63043964", "0.6195137", "0.6000096", "0.580979", "0.577892", "0.5772058", "0.57211137", "0.56189364", "0.55965215", "0.5588995", "0.5557248", "0.55531996", "0.5505169", "0.54938066", "0.53893185", "0.5388352", "0.5337312", "0.5325891", "0.531589", "0.5304129",...
0.767272
0
Calculate moving average of a time series
def PdzZ(dy_H, exwG): U5bT = oyIN.cumsum(dy_H, dtype=float) U5bT[exwG:] = U5bT[exwG:] - U5bT[:-exwG] return U5bT[exwG - 1:] / exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def beX2(WKvO):\n Y8Kb = []\n for yzQ0 in range(1, min(50, U9jm), 5):\n ycBG = oyIN.mean(WKvO[-yzQ0:])\n Y8Kb.append(ycBG)\n return list(oyIN.array(Y8Kb) - WKvO[-1])", "def ZCKv(WKvO, pQ4c):\n if len(oyIN.shape(WKvO)) == 1:\n oyIN.expand_dims(WKvO, axis=1)\n gtI8 = oyIN.cumsum...
[ "0.8049096", "0.8002417", "0.79800814", "0.7907664", "0.79027164", "0.79026985", "0.7870761", "0.7835826", "0.78301764", "0.77577996", "0.773248", "0.77184427", "0.7689477", "0.76833296", "0.7671889", "0.7668486", "0.7668486", "0.76067895", "0.7593677", "0.7537501", "0.748914...
0.799259
2
Helper function to convert string to bool
def oOc6(Ty9i): if isinstance(Ty9i, bool): return Ty9i if Ty9i.lower() in ('yes', 'true', 't', 'y', '1'): return True elif Ty9i.lower() in ('no', 'false', 'f', 'n', '0'): return False else: raise j1Jz.ArgumentTypeError('Boolean value expected.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E8Lj(KCHu):\n if KCHu:\n return True\n else:\n return False", "def M0mR(KCHu):\n if KCHu == 'True':\n return True\n elif KCHu == 'False':\n return False", "def M0mR(vIwR):\n if vIwR == 'True':\n return True\n elif vIwR == 'False':\n return False",...
[ "0.8904083", "0.88728034", "0.88413334", "0.8824876", "0.8765637", "0.87606794", "0.8727608", "0.87170535", "0.8712773", "0.86618173", "0.861175", "0.86041677", "0.8591309", "0.85554785", "0.85516286", "0.85499007", "0.8549425", "0.85281485", "0.85085154", "0.84964734", "0.84...
0.0
-1
Constructor for the Reinforcement object.
def FIMM(YKHO, c2Yh: nn.Module, MnDN: nn.Module, FjzM: nn.Module, ABJW: nn.Module, a6E1: pd.DataFrame, gZZE: pd.DataFrame, NArs: dict, ZGE9: str, bo34): super(XXk1, YKHO).__init__(c2Yh, MnDN, NArs, ZGE9, bo34) YKHO.affinity_predictor = FjzM YKHO.affinity_predictor.eval() YKHO.efficacy_predictor = ABJW ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, **B2fa):\n super().__init__(**B2fa)\n YKHO.limbs_dict = ndry(True)\n YKHO.joint_dict = ndry(False)\n YKHO.reward_dictionary = {0: Oq3Y, 1: sZp6, 2: YCBc, 3: qy5X, 4: ZONW, 5: RUDB}\n YKHO.reward_kwargs = {}\n YKHO.reward_kwargs['trajectory'] = []\n YKHO.game_action = [3] * uwaB....
[ "0.68460774", "0.67031735", "0.6672071", "0.66345775", "0.6605145", "0.6586857", "0.65483975", "0.6542011", "0.6530617", "0.6523761", "0.65175813", "0.64707255", "0.64677614", "0.6454531", "0.64531046", "0.64346766", "0.6431096", "0.6422784", "0.64000845", "0.6391087", "0.638...
0.0
-1
Get the reward from affinity predictor.
def R5aK(YKHO, qijc: List, PZMH: str) -> oyIN.array: Z0At = YKHO.smiles_to_numerical(qijc, target='affinity') if len(Z0At) == 0: return 0 bGrB, la_m = YKHO.protein_to_numerical(PZMH, encoder_uses_sequence=False) nvEb, O4Lm = YKHO.affinity_predictor(Z0At, la_m.repeat(Z0At.shape[0], 1)) return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xyVK(kpkG):\n return vOGg[kpkG[0], kpkG[1]]", "def nFcm(YKHO):\n return YKHO.reward", "def vOGg(YKHO):\n return YKHO._reward", "def Jc_J(YKHO):\n pass", "def Jc_J(YKHO):\n pass", "def xyVK(YKHO):\n if YKHO.reward is None:\n YKHO.reward = YKHO.all_rewards[tuple(YKHO.path)]\n ...
[ "0.68337184", "0.66593623", "0.66294783", "0.6624705", "0.6624705", "0.65723073", "0.64134055", "0.64063525", "0.6386163", "0.6382037", "0.6371938", "0.63394237", "0.63292444", "0.6313427", "0.6312807", "0.6297818", "0.62966454", "0.6296045", "0.6295937", "0.6289964", "0.6289...
0.64667886
6
Get the reward from PaccMann.
def vjwB(YKHO, qijc: List, QChT: str) -> oyIN.array: Z0At = YKHO.smiles_to_numerical(qijc, target='efficacy') if len(Z0At) == 0: return 0 JbSN = ['gene_expression_' + str(WKvO) for WKvO in range(2128)] UqYw = ht2j.Tensor(YKHO.gep_df.loc[YKHO.gep_df['cell_line'] == QChT][JbSN].values) nvEb, O...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nFcm(YKHO):\n return YKHO.reward", "def vOGg(YKHO):\n return YKHO._reward", "def Jc_J(YKHO):\n pass", "def Jc_J(YKHO):\n pass", "def vOGg(YKHO, XeOP):\n return YKHO.bandits[XeOP].reward()", "def xyVK(YKHO):\n if YKHO.reward is None:\n YKHO.reward = YKHO.all_rewards[tuple(YKHO...
[ "0.69215333", "0.6789677", "0.66834736", "0.66834736", "0.6660815", "0.6645023", "0.6537537", "0.64608973", "0.64195305", "0.6417183", "0.63845056", "0.63845056", "0.637608", "0.6367904", "0.6346256", "0.6326824", "0.6320985", "0.6280305", "0.62782544", "0.62578154", "0.62493...
0.0
-1
Returns an authenticated Django user or None.
def rwEh(YKHO, PWuZ, jTXt): return PWuZ.authenticate(jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n if fnHH is not None:\n CBIr = YKHO.auth.store.user_model.get_by_id(fnHH['user_id'])\n return CBIr\n return None", "def lCqJ(YKHO, QePW):\n CBIr = QePW.user\n return None if CBIr.is_anonymous else CBIr", "def TKWP():\n CB...
[ "0.7820251", "0.7804431", "0.7771123", "0.7726202", "0.77140665", "0.7621773", "0.7591624", "0.7531119", "0.7480128", "0.74602777", "0.74449134", "0.74434245", "0.7443194", "0.74383014", "0.7434227", "0.74302185", "0.74042165", "0.73885524", "0.737504", "0.73729205", "0.73727...
0.0
-1
A new LDAPUser must be initialized with either a username or an authenticated User object. If a user is given, the username will be ignored.
def FIMM(YKHO, DDLl, NtEF=None, CBIr=None, QePW=None): YKHO.backend = DDLl YKHO._username = NtEF YKHO._request = QePW if CBIr is not None: YKHO._set_authenticated_user(CBIr) if NtEF is None and CBIr is None: raise Exception('Internal error: _LDAPUser improperly initialized.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C1yR(YKHO, NtEF, PWuZ):\n try:\n CBIr = mv1M.objects.get(username__iexact=NtEF)\n except rIt9:\n CBIr = mv1M(NtEF)\n return (CBIr, False)", "def C1yR(YKHO, NtEF, PWuZ):\n B2fa = {'username': NtEF, 'defaults': {'from_ldap': True}}\n vCWU = egNl()\n return vCWU.objects.get_or_cr...
[ "0.7234126", "0.7181239", "0.70759875", "0.7034789", "0.7012034", "0.6874877", "0.67735523", "0.6763741", "0.6758902", "0.6751341", "0.67207026", "0.6716078", "0.6716078", "0.66587013", "0.6653741", "0.6600892", "0.6597558", "0.659148", "0.6584027", "0.6570486", "0.654202", ...
0.70132834
4
Given a ModelForm return an unsaved instance. ``change`` is True if the object is being changed, and False if it's being added. The difference between this and ModelAdmin.save_form() is that we pass the request object in so that the save function can use the Message system.
def QVKp(YKHO, QePW, L03z, nZuS): return L03z.save(commit=False, request=QePW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVKp(YKHO, QePW, L03z, nZuS):\n return L03z.save(QePW, commit=False)", "def QVKp(YKHO, QePW, L03z, nZuS):\n return L03z.save(commit=False)", "def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n KAOR = L03z.save(commit=False)\n KAOR.author = QePW.user\n KAOR.save()\n L03z.save_m2m()\n return KAOR...
[ "0.6481684", "0.6316626", "0.60067606", "0.60067606", "0.60067606", "0.5912445", "0.58802253", "0.5877696", "0.58061856", "0.568512", "0.56627715", "0.55907995", "0.5570548", "0.55322134", "0.5476718", "0.54147404", "0.5350904", "0.5341445", "0.5305987", "0.52805036", "0.5276...
0.6412924
1
Determine if the current state is stale.
def ezz0(YKHO): if YKHO.staleness_interval: wzkt = ITS7.time() Y956 = wzkt - YKHO.state['timestamp'] T6xC = Y956 > YKHO.staleness_interval if T6xC: YKHO.logger.warn('state is stale as its age {} is greater than {}'.format(Y956, YKHO.staleness_interval)) return T6x...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ezz0(YKHO):\n if YKHO.staleness_interval:\n wzkt = ITS7.time()\n return wzkt - YKHO.state['timestamp'] > YKHO.staleness_interval\n else:\n return False", "def yOmI(YKHO):\n return YKHO._stale", "def ezz0(YKHO):\n return YKHO._staleness > O5cY._MAX_STALENESS", "def T6xC(YK...
[ "0.82940644", "0.8141577", "0.79567707", "0.78557205", "0.78557205", "0.774214", "0.7617508", "0.74005204", "0.7312846", "0.7252245", "0.72293043", "0.7037396", "0.7001299", "0.6945533", "0.69258666", "0.6852795", "0.6737079", "0.672062", "0.6665398", "0.66617537", "0.6646681...
0.8224158
1
Pycred Backend Default Configuration. It holds the name of the default backend of the particular backend type, and a list of the configurations that should be used by default for the various backends of that type.
def FIMM(YKHO, WmM4, zxMY): YKHO.default = WmM4 YKHO.backends = zxMY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDLl(YKHO) -> str:\n return GPtr.get(YKHO._config_field, YKHO._default) or YKHO._default", "def AgTe(YKHO):\n return YKHO._action(['backendtypes', 'default', 'list'])", "def Qgjn(YKHO):\n print('First time configuration. Please select the required backend')\n SuM2 = '3'\n B6pA = YKHO._backen...
[ "0.69647056", "0.6841314", "0.669549", "0.66746026", "0.65153366", "0.6467797", "0.6466606", "0.63238716", "0.6277439", "0.6277439", "0.62621164", "0.61973065", "0.61427313", "0.61026555", "0.60901695", "0.60795975", "0.6071", "0.60462946", "0.60460454", "0.6032603", "0.59976...
0.67095995
2
Get filename (path) for store config file.
def IeOC(YKHO, mWFP): VEhZ = YKHO.get_pycred_config().get_store_path() return Hy7s.path.join(VEhZ, '{name}.yaml'.format(name=mWFP))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ayhn(YKHO):\n return YKHO._cfg_fname", "def AeFH(YKHO):\n return Hy7s.path.join(YKHO.env.root_path, 'configs', YKHO.id + '.ini')", "def MeGT(YKHO, Fv2L=None):\n if Fv2L is None:\n Fv2L = YKHO.prepare_config()\n aPr_ = Fv2L.get('pgqadm', 'job_name').replace('_', '-')\n Ux0P = '%s/ticke...
[ "0.7910599", "0.7813593", "0.7567885", "0.75310516", "0.7501339", "0.7482776", "0.74808306", "0.7430511", "0.7405157", "0.7341726", "0.7287754", "0.7234842", "0.7223202", "0.71904296", "0.7171541", "0.716063", "0.7157717", "0.71246886", "0.7119733", "0.7100682", "0.70961875",...
0.8120871
0
View function for home page of site.
def d6pt(QePW): mraa = dl5x.objects.all() VJUP = qZuN.objects.all() QpfX = {'book_list': mraa, 'category_list': VJUP} return _1tc(QePW, 'index.html', context=QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def kZiy():\n ...
[ "0.8521128", "0.8379754", "0.8353459", "0.83415544", "0.83415544", "0.83171177", "0.830583", "0.8298624", "0.8296122", "0.8263442", "0.8224959", "0.8217078", "0.8206788", "0.81901366", "0.81901366", "0.8182092", "0.8176577", "0.81756383", "0.8147583", "0.81347877", "0.8134787...
0.0
-1
Return a list that is the cross product of A and B
def wnaF(k0lF, tjUW): return [jzdc + Fg_i for jzdc in k0lF for Fg_i in tjUW]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnaF(k0lF, tjUW):\n return [jzdc + Fg_i for jzdc in k0lF for Fg_i in tjUW]", "def wnaF(k0lF, tjUW):\n return [jzdc + Fg_i for jzdc in k0lF for Fg_i in tjUW]", "def WHx2(k0lF, tjUW):\n return [jzdc + Fg_i for jzdc in k0lF for Fg_i in tjUW]", "def WHx2(k0lF, tjUW):\n return [jzdc + Fg_i for jzd...
[ "0.8691302", "0.8691302", "0.84023565", "0.8388972", "0.8388972", "0.8356096", "0.8356096", "0.8310633", "0.83105284", "0.8257391", "0.8216573", "0.82124436", "0.817878", "0.81744087", "0.8069881", "0.80605406", "0.80070895", "0.7967582", "0.78414357", "0.78071207", "0.776669...
0.85973305
2
Find the next unassigned square in the board
def eVoI(YKHO): for KCHu in YKHO.squares: if YKHO.board[KCHu] == '0': return KCHu else: return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h2Qo(iBIi):\n for YRbF in range(9):\n for r845 in range(9):\n if iBIi[YRbF][r845] == 0:\n return (YRbF, r845)\n return None", "def WpSC(SaLE, OoLL, iBIi, Lteo):\n for WKvO in range(0, SaLE[0]):\n for LVAh in range(0, SaLE[1]):\n if (WKvO, LVAh) not ...
[ "0.77811784", "0.7351375", "0.7251027", "0.7136651", "0.69684154", "0.6943257", "0.6875684", "0.68593", "0.6829032", "0.67868805", "0.6773707", "0.6725754", "0.6689704", "0.66759074", "0.66527563", "0.6645066", "0.66306597", "0.6602208", "0.6591491", "0.6585867", "0.6581102",...
0.7208912
3
Randomly generates unique application codes.
def lj2J(Emd4, _FXm): gLiZ = 'ABCDEFGHIJKLMNOPQRSTVWXYZ123456789' _ins = False while not _ins: Wxnj = '' for YRbF in range(0, 6): Wxnj += gLiZ[tuKI.randrange(0, len(gLiZ))] _ins = True if Wxnj in _FXm: _ins = False Emd4.app_code_list().append(Wxnj)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gkKB():\n return ''.join((tuKI.choice(yPrR) for bGrB in range(10)))", "def LbTm():\n Wxnj = ''\n for bGrB in range(6):\n Wxnj += tuKI.choice('1234567890')\n return Wxnj", "def gkKB():\n fawY = []\n YRbF = 0\n while YRbF < 8:\n gZgb = vIwR.ascii_letters + vIwR.digits\n ...
[ "0.766808", "0.7570274", "0.73507863", "0.71820337", "0.7171257", "0.71488357", "0.71363354", "0.7029688", "0.69863534", "0.69842815", "0.69641155", "0.69231886", "0.69198453", "0.69168663", "0.69168663", "0.6806202", "0.68028814", "0.67868525", "0.6785018", "0.676036", "0.67...
0.8205342
0
Generate random static fire/overlay pattern.
def R5Og(l0e3, iHJl): zaBi = l0e3[0] * l0e3[1] TLbF = oyIN.zeros(shape=(zaBi,)) ai_V = tuKI.sample(range(zaBi), iHJl) hkxX = oyIN.ones(shape=(iHJl,)) oyIN.put(TLbF, ai_V, hkxX) sCLD = TLbF.reshape(l0e3) return sCLD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R9Jt():\n return ''.join([tuKI.choice(list(a4Hw.heuristic_map.keys())) for bGrB in range(tuKI.randrange(a4Hw.MAX_COMBINATION_LENGTH) or 1)])", "def C6M2(YKHO):\n if YKHO.pattern == '?':\n return ajWY(0, 1)\n if YKHO.pattern == '*':\n return ajWY(0, 20)\n if YKHO.pattern == '+':\n ...
[ "0.6929222", "0.66474485", "0.65565556", "0.6406544", "0.6398223", "0.63942355", "0.6340643", "0.6296177", "0.62489593", "0.62354815", "0.6205644", "0.61834276", "0.61610025", "0.61511064", "0.6132616", "0.61204624", "0.61121905", "0.6109764", "0.6106971", "0.610656", "0.6048...
0.6744217
1
Get the state. Put it together if not precomputed.
def n8Ps(YKHO, a1PO=None): EcVT = YKHO._data['observation'] if a1PO is None else YKHO._data['observation'][a1PO, :] assert not oyIN.any(oyIN.isnan(EcVT)) return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k8jS(YKHO):\n QTBn = YKHO.__dict__.copy()\n return QTBn", "def k8jS(YKHO):\n QTBn = YKHO.__dict__.copy()\n return QTBn", "def ja6o(YKHO, nYc2=True):\n if not nYc2 or YKHO.disable_pmap:\n return YKHO.state\n return iU95.jax_utils.unreplicate(YKHO.state)", "def ja6o(YKHO):\n ret...
[ "0.66527146", "0.66527146", "0.6612021", "0.6599904", "0.64805436", "0.6467301", "0.645503", "0.6396403", "0.6387929", "0.63694054", "0.62916285", "0.6280563", "0.6280563", "0.6277424", "0.6277424", "0.6277424", "0.6277424", "0.62591827", "0.6255716", "0.6255716", "0.6255716"...
0.0
-1
Transform a `matplotlib.contour.QuadContourSet` to a GeoDataFrame
def xHZ6(PeDC): UT57, Jw9H = ([], []) for YRbF, j5tF in enumerate(PeDC.collections): RRbZ = [] for pmON in j5tF.get_paths(): try: pmON.should_simplify = False _g9D = pmON.to_polygons() V2ak, eB22 = ([], []) if len(_g9D) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfy_():\n JyDx = VcL2().unary_union\n Lq8n = quUU.GeoDataFrame(quUU.GeoSeries(JyDx), crs={'init': 'epsg:4326'})\n Lq8n = Lq8n.rename(columns={0: 'geometry'}).set_geometry('geometry')\n return Lq8n", "def m_xQ(YKHO):\n try:\n MhBQ = U_NH.GeoDataFrame({'geometry': U_NH.GeoSeries(YKHO.geom...
[ "0.6557389", "0.62709916", "0.6177615", "0.6077933", "0.6011803", "0.59953684", "0.59705895", "0.5930431", "0.5914738", "0.5906193", "0.58749276", "0.58675396", "0.58675396", "0.58517295", "0.58511937", "0.5723471", "0.5717428", "0.56832707", "0.5659523", "0.56469584", "0.564...
0.55082905
32
Returns an instance of User that matches the given username and password
def bGBX(YKHO, NtEF, jTXt): return TEFD().getUserByLogin(NtEF, jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, NtEF, jTXt, *qIxc, **B2fa):\n CBIr = YKHO.query.filter_by(username=NtEF).first()\n if CBIr and CBIr.check_password(jTXt):\n return CBIr\n return None", "def NMoC(YKHO, NtEF, jTXt, *qIxc, **B2fa):\n CBIr = YKHO.query.filter_by(username=NtEF).first()\n if CBIr and CBIr.check_pa...
[ "0.8235451", "0.8235451", "0.8175052", "0.8175052", "0.8123545", "0.81125283", "0.81125283", "0.8105464", "0.8077499", "0.8058576", "0.8058576", "0.78976536", "0.78229344", "0.7816609", "0.7790223", "0.7776763", "0.7770716", "0.77399194", "0.7685904", "0.7680993", "0.76704085...
0.0
-1
Compute contamination value for heterozygous contamination.
def WOnR(YKHO, TDRx, PZaz): for s8br in range(3): if YKHO.allele[s8br] not in TDRx.allele: YKHO.allele.pop(s8br) hCN2 = YKHO.hauteur.pop(s8br) break if YKHO.hauteur[0] < YKHO.hauteur[1] * PZaz or YKHO.hauteur[1] < YKHO.hauteur[0] * PZaz: YKHO.contamination = 2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wIje(YKHO):\n return YKHO.cm.cm(YKHO.m, YKHO.z)", "def K_EX(YKHO):\n global contam\n Zs6H = 0.01\n with open('{data}/contest.firehose'.format(**globals()), 'r') as nUeQ:\n wEf2 = nUeQ.readline()\n Zs6H *= float(wEf2)", "def X3zr(YKHO):\n pass", "def YMb9(YKHO, ycBG):\n ret...
[ "0.6354423", "0.63519907", "0.62321526", "0.6228654", "0.62185466", "0.62089294", "0.6207988", "0.6190182", "0.6091017", "0.6082662", "0.6040305", "0.6016985", "0.59951144", "0.5994557", "0.5978131", "0.59747314", "0.59695673", "0.5955106", "0.5928512", "0.5918775", "0.591554...
0.5543325
70
Return a securely generated random string. The default length of 12 with the az, AZ, 09 character set returns a 71bit value. log_2((26+26+10)^12) =~ 71 bits
def GLL2(u54L=12, jkLJ='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'): return ''.join((tuKI.choice(jkLJ) for YRbF in range(u54L)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L=12):\n tO9_ = HBct.sha256()\n GIN8 = ''\n for bGrB in range(u54L):\n GIN8 += FXSn.choice(vIwR.ascii_letters)\n tO9_.update(GIN8.encode('ascii'))\n return tO9_.hexdigest()[:u54L]", "def GLL2(u54L=31, jkLJ='abcdefghijkmnpqrstuvwxyzABCDEFGHIJKLMNPQRSTUVWXYZ23456789'):\n return...
[ "0.75381505", "0.73821163", "0.7335809", "0.7246382", "0.7191019", "0.7186352", "0.7155004", "0.7153609", "0.7122799", "0.70664996", "0.7065443", "0.70588183", "0.70504385", "0.7046168", "0.7013681", "0.69948334", "0.69913185", "0.6988569", "0.6985578", "0.69817114", "0.69606...
0.69962025
15
Can an admin user query /api/v1/teams using a teams's email address
def fkJC(): P4t4 = B9Nx(user_mode='teams') with P4t4.app_context(): xJq0(P4t4.db, email='team@findme.com') iQ7K(P4t4, name='testuser', email='user@findme.com') with AlKG(P4t4, 'testuser') as x0hE: Mkmy = x0hE.get('/api/v1/teams?field=email&q=findme', json=True) as...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w6_u(YKHO):\n YKHO.set_up()\n rJco = r2Kd.objects.all()\n ZMzz = kSYG(rJco, many=True)\n Z9rn = iJSR()\n A30e = BFpK.objects.get(username='tn')\n Z9rn.force_authenticate(user=A30e)\n geh0 = Z9rn.get('/api/usersmanagement/teams/')\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.asser...
[ "0.6778589", "0.65801454", "0.65406805", "0.6521549", "0.6452779", "0.6205713", "0.6196066", "0.61554635", "0.6114595", "0.6109785", "0.60857975", "0.6017285", "0.60121375", "0.5976802", "0.59754544", "0.5960328", "0.5944216", "0.5936404", "0.59326744", "0.59260124", "0.59104...
0.7680819
0
Get the attention dimension.
def z7pO(YKHO): return YKHO._att_dim
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHp6(YKHO):\n return YKHO._emb_dim", "def eHp6(YKHO):\n return YKHO._emb_dim", "def vNQ8(YKHO):\n return YKHO._dim", "def wgYN(YKHO):\n return YKHO._dimension_at_observation", "def vNQ8(YKHO):\n return YKHO.ftobj.getArgs().dim", "def aGrF(YKHO):\n return YKHO._dim", "def aGrF(YKHO...
[ "0.7433356", "0.7433356", "0.73535925", "0.73128855", "0.73002833", "0.72519755", "0.72519755", "0.72428423", "0.71947473", "0.71947473", "0.71098775", "0.7090481", "0.7090481", "0.7090481", "0.70717376", "0.70607066", "0.7000946", "0.6995825", "0.6993198", "0.6983132", "0.69...
0.74983793
0
Get the attention type.
def B0fd(YKHO): return YKHO._att_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO):\n return YKHO.topic_item.get_type()", "def FRul(YKHO):\n return YKHO._get_attr('type', 'normal')", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO):\n return YKHO._type", "def FRul(YKHO...
[ "0.66639113", "0.6657265", "0.6510346", "0.6510346", "0.6510346", "0.6510346", "0.6510346", "0.6510346", "0.6510346", "0.6446045", "0.6446045", "0.64304715", "0.64304715", "0.64304715", "0.64128095", "0.641001", "0.641001", "0.641001", "0.641001", "0.641001", "0.641001", "0...
0.69493514
0
Obtains the unique IORegistry entry ID for the device.
def DJw5(nVrR): PcLL = wjiz.IOHIDDeviceGetService(nVrR) QWLk = gk2W.c_uint64() Aofo = wjiz.IORegistryEntryGetRegistryEntryID(PcLL, gk2W.byref(QWLk)) if Aofo != mBnN: raise OSError(f'Failed to obtain IORegistry entry ID: {Aofo}') return QWLk.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO):\n return f'{YKHO._entry_id}_{YKHO._device_output_port}'", "def ShR8(YKHO):\n return YKHO._device_info.unique_id", "def ShR8(YKHO):\n return YKHO._innogy_device.id", "def ShR8(YKHO):\n return YKHO._device.guid + YKHO._sensor_type['name']", "def ShR8(YKHO):\n return YKHO._devic...
[ "0.7679484", "0.7478672", "0.74674964", "0.7453754", "0.7448906", "0.7445128", "0.7440547", "0.7421608", "0.7421608", "0.7371533", "0.7366148", "0.7366148", "0.7365372", "0.7332832", "0.72904116", "0.72520036", "0.72471845", "0.7221162", "0.7192553", "0.7173761", "0.71712524"...
0.7384774
9
Abstract method which should return the value that __file__ is to be set to. Raises ImportError if the module cannot be found.
def yFjF(YKHO, jeLr): raise ImportError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xAKo(YKHO):\n return xAKo", "def xAKo(YKHO):\n return xAKo", "def xAKo(YKHO):\n return xAKo", "def xAKo(YKHO):\n return xAKo", "def xAKo(YKHO):\n return xAKo", "def xAKo(YKHO):\n return xAKo", "def xAKo(YKHO):\n return xAKo", "def xAKo(YKHO):\n return xAKo", "def xAKo(YK...
[ "0.7518077", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666", "0.74196666",...
0.0
-1
Create base64 encoded img tag from src url or tag element.
def VG5K(zZcM, P8oC=None): if isinstance(zZcM, A0Fa.element.Tag) and zZcM.name == 'img': for pan_ in ['src', 'data-src', 'data-original']: KCHu = zZcM.get(pan_) if KCHu is not None and (not ZbWC.match(pattern='^(javascript:|data:).+', string=KCHu)): break zZcM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _R2e(YKHO, Zc6P=None):\n Fg_i = YKHO.base64().decode('ascii')\n uhDT = Zc6P if Zc6P is not None else YKHO.filename()\n return '<img src=\"data:image/jpeg;charset=utf-8;base64,%s\" alt=\"%s\">' % (Fg_i, uhDT)", "def _R2e(YKHO, Zc6P=None, id=None, azoT={'loading': 'lazy'}):\n assert isinstance(azoT...
[ "0.67703706", "0.6691822", "0.66482186", "0.6622205", "0.652864", "0.6467767", "0.64492667", "0.641721", "0.6370783", "0.62993", "0.6257567", "0.6256544", "0.6251844", "0.62096894", "0.6208036", "0.6202506", "0.6127764", "0.6114083", "0.6081113", "0.6057608", "0.6045552", "...
0.7710197
0