query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Test that valid JSON object implodes into valid string.
def Jmym(YKHO): YKHO.assertEqual('{"a_1": [{"a_2": 2, "f_2": 3, "g_2": 1}], "c_3": 1}', GFDZ.implode_json({'a_1': [{'a_2': 2, 'f_2': 3, 'g_2': 1}], 'c_3': 1}))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U8bG(vIwR):\n try:\n YEnM = qQXR.loads(vIwR)\n except ValueError:\n return False\n else:\n return qQXR.dumps(YEnM)", "def kr2R(YKHO):\n KrbB = {'id': 5, 'class': 'string', 'list': [], 'set': {}}\n YKHO.assertEqual([KrbB, KrbB], i_Aq.from_json_string(qQXR.dumps([KrbB, KrbB]...
[ "0.70126456", "0.6939657", "0.6939616", "0.69073474", "0.69073474", "0.68876886", "0.6769467", "0.6751211", "0.6728717", "0.6640332", "0.661407", "0.66093594", "0.65896505", "0.6534089", "0.6508719", "0.64925027", "0.6491361", "0.6448345", "0.64363533", "0.6423825", "0.641927...
0.0
-1
Read the full data set from file and return it as a Pandas DataFrame
def yLtf(): return rLdf.read_csv('cetml1659on.dat', skiprows=6, sep='\\s+', na_values=['-99.9', '-99.99'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eyt6(YKHO, qaEx: str) -> rLdf.DataFrame:\n return rLdf.read_csv(qaEx, sep='\\t')", "def Nwr9(IznC: str) -> rLdf.DataFrame:\n WPdU = rLdf.read_hdf(IznC).to_frame().reset_index(level=[0, 1]).loc[jNhW]\n WPdU['date'] = WPdU.index\n return WPdU", "def ZAQi(VqRE):\n jQ3Z = rLdf.read_csv(VqRE)\n ...
[ "0.7898248", "0.783135", "0.7768955", "0.7768955", "0.7768955", "0.7579788", "0.7579788", "0.74528533", "0.7435008", "0.74049973", "0.739193", "0.73815155", "0.7330159", "0.7327047", "0.7322965", "0.72151095", "0.7214003", "0.7171817", "0.71651703", "0.71512496", "0.7136538",...
0.0
-1
Get questions by category id raise 404 if category not found.
def tO_I(VMw8): try: Ghho = aWdm(VMw8) if Ghho is None: eTsH(hlvL) WlEx = sFOk(category_id=VMw8) return pz3A({'success': True, 'questions': WlEx, 'total_questions': len(WlEx), 'current_category': Ghho.format()}) except Exception as exp: eTsH(kLQb.code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sqec(YKHO):\n Ylbp = YKHO.client().get('/api/categories/101/questions')\n YKHO.assertEqual(Ylbp.status_code, 404)\n nPrm = qQXR.loads(Ylbp.data)\n YKHO.assertFalse(nPrm['success'])", "def jldz(VMw8):\n try:\n SuM2 = Y4Gy.query.filter(Y4Gy.category == VMw8).order_by(Y4Gy.id).all()\n ...
[ "0.78010434", "0.7353595", "0.70831335", "0.7049248", "0.70363176", "0.68794125", "0.68048877", "0.6764478", "0.66607267", "0.6603221", "0.6598103", "0.6581523", "0.656642", "0.6497925", "0.6470568", "0.6399294", "0.6319814", "0.627569", "0.6203658", "0.6170528", "0.60397357"...
0.7367104
1
Error handler for not found with status code 404.
def o3cf(P1dF): return (pz3A({'success': False, 'error': hlvL, 'message': TIcV[hlvL]}), hlvL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf():\n return c1Bu(404)", "def EEM3(YKHO):\n RKD7.err('HTTP Error 404')", "def Ouod(PNq_):\n return (404, [], zGZ6('Not Found', PNq_['PATH_INFO']))", "def zFDo(QePW):\n geh0 = SGJU('404.html', {})\n geh0.status_code = 404\n return geh0", "def o3cf(tTpl):\n return (TvZl('errors/4...
[ "0.86769915", "0.8654244", "0.8410529", "0.8397226", "0.836706", "0.8279775", "0.8269981", "0.8221273", "0.8208208", "0.814195", "0.81343615", "0.81231064", "0.81194043", "0.811817", "0.81155205", "0.81098413", "0.81074953", "0.81071836", "0.81071836", "0.80904335", "0.808561...
0.7450699
93
Returns the tail of the list, i.e. the rest of the list without `self.head()`. Does not modify the underlying list.
def J3uN(YKHO): if YKHO.empty(): raise Exception('tail called on empty Cursor') else: return IshC(YKHO._list, YKHO.index + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fEPq(YKHO):\n lHJN = YKHO.head\n while lHJN.next_node:\n lHJN = lHJN.next_node\n return lHJN", "def EFwc(YKHO):\n if YKHO.is_empty():\n raise RuntimeError('Empty list')\n return YKHO.tail.data", "def J3uN(YKHO):\n return YKHO._tail", "def J3uN(YKHO):\n return YKHO._tail...
[ "0.76245725", "0.73223484", "0.7311307", "0.7311307", "0.72715515", "0.7257775", "0.724409", "0.72408926", "0.7236688", "0.7060192", "0.6984749", "0.6911415", "0.6903667", "0.6886063", "0.68855834", "0.6848931", "0.68364924", "0.6809556", "0.680542", "0.68035376", "0.6784701"...
0.64794946
34
Returns a new Cursor on this Cursor's list, at the specified index. Does not copy the underlying list.
def _QSz(YKHO, d6pt): return IshC(YKHO._list, d6pt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J3uN(YKHO):\n if YKHO.empty():\n raise Exception('tail called on empty Cursor')\n else:\n return IshC(YKHO._list, YKHO.index + 1)", "def d6pt(YKHO, *d6pt):\n KCHu = YKHO._clone()\n if not d6pt:\n KCHu._index = None\n else:\n KCHu._index = (YKHO._index or []) + list(...
[ "0.6224085", "0.6043138", "0.58508873", "0.5785007", "0.57502466", "0.56166494", "0.55539805", "0.55267805", "0.55203176", "0.5516711", "0.5506712", "0.54734635", "0.5446013", "0.54428375", "0.54048043", "0.5401309", "0.53989834", "0.5353783", "0.5310984", "0.5309808", "0.529...
0.8740931
0
Maps elements of this cursor via `map_fn` until `map_fn` returns falsy. Returns the collected list of mapped elements, and a Cursor positioned at the first element in the list that mapped to a falsy value.
def r4Dy(YKHO, qC60): AvyM = [] N1p7 = YKHO J8oL = True while N1p7.not_empty() and J8oL: J8oL = qC60(N1p7.head()) if J8oL: AvyM.append(J8oL) N1p7 = N1p7.tail() return (AvyM, N1p7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n6Yz(w0fi: MutableSequence[T], M_t2: Callable[[T], Any]=lambda WKvO: WKvO, b_xr: Callable[[T], bool]=lambda WKvO: True) -> VsgV[ImMB]:\n return [M_t2(WKvO) for WKvO in w0fi if b_xr(WKvO)]", "def DKP0(ukQo, JfyU):\n YRbF = 0\n while YRbF < len(ukQo) and JfyU(ukQo[YRbF]):\n YRbF += 1\n retur...
[ "0.553322", "0.5507595", "0.5400299", "0.5356471", "0.5335284", "0.5266585", "0.5224523", "0.5201668", "0.52003837", "0.51346254", "0.5099721", "0.504173", "0.49930522", "0.49902922", "0.4988033", "0.49835303", "0.4975505", "0.49646297", "0.49042228", "0.48730347", "0.4867722...
0.7372497
0
Execute work until the future is complete. Callbacks and other work will be executed in a SingleThreadedExecutor until future.done() returns True or rclpy is shutdown.
def v0_d(Q6kx, KS9L, ZaUd=None): ZaUd = Mo37() if ZaUd is None else ZaUd try: ZaUd.add_node(Q6kx) ZaUd.spin_until_future_complete(KS9L) finally: ZaUd.remove_node(Q6kx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RErc(YKHO, KS9L):\n\n @nV_N\n def _gRY():\n yield from KS9L\n YKHO._unschedule_all()\n YKHO.loop.run_until_complete(V7ok.ensure_future(_gRY()))", "def fp07():\n pass", "def MBb2(YKHO, KS9L, vYBr=None):\n assert isinstance(KS9L, D1Oj)\n Gaon = T6FA.Condition()\n if vYBr is...
[ "0.6649419", "0.6450642", "0.6301808", "0.5825906", "0.5812852", "0.5799747", "0.57868373", "0.57705075", "0.5758156", "0.5753766", "0.57412547", "0.5663614", "0.56243575", "0.557873", "0.55638164", "0.5550744", "0.55503356", "0.5519838", "0.551515", "0.5500011", "0.5487419",...
0.55801463
13
Increase the y axis by given (small) amount
def CWPk(YKHO, Y9Vw): N3PU = Y9Vw / YKHO.space_subdivisions if YKHO.pos_y + N3PU < YKHO.unit: YKHO.pos_y = YKHO.unit elif YKHO.pos_y + N3PU > 1.0 - YKHO.unit: YKHO.pos_y = 1.0 - YKHO.unit else: YKHO.pos_y = YKHO.pos_y + N3PU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZRnD(YKHO, K3Ez):\n YKHO.__y_axis = K3Ez", "def lcEV(YKHO, eLqP):\n YKHO.y = eLqP", "def LVAh(YKHO, BWXx):\n if not 0 < BWXx < vkJL - YKHO.height:\n YKHO.dir_y = -YKHO.dir_y\n YKHO._y += abs(YKHO._y - BWXx) * YKHO.dir_y", "def lcEV(YKHO, LVAh: float):\n YKHO.y = LVAh", "def z9NM(Y...
[ "0.7111089", "0.7067304", "0.6817044", "0.673916", "0.66344637", "0.66344637", "0.66052425", "0.6591268", "0.6522655", "0.6475032", "0.6463889", "0.64328635", "0.6428911", "0.64207256", "0.6418648", "0.64113146", "0.64089984", "0.6406062", "0.6387664", "0.63804346", "0.636935...
0.7042225
2
Set the y axis decimal position
def lcEV(YKHO, ft8x): wEf2 = ft8x / YKHO.space_subdivisions + YKHO.unit _hZ2 = 1e-06 if not YKHO.unit <= wEf2 <= 1.0 - YKHO.unit + _hZ2: raise AttributeError('Value out of bounds') YKHO.pos_y = wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lcEV(YKHO, LVAh: float):\n YKHO.y = LVAh", "def z9NM(YKHO, BWXx):\n YKHO.position[1] = BWXx", "def yuZ1(YKHO):\n YKHO.ax.set_ylim(YKHO.ylims)\n UUS0 = [*range(0, YKHO.ymax, 5)]\n Vb5F = YKHO.settings.rcParams['axes.labelsize'] if YKHO.settings.otherParams['ylabel.fontsize'] is None else YKHO...
[ "0.72356445", "0.70184404", "0.69513273", "0.6790154", "0.67710084", "0.67710084", "0.67673725", "0.67340696", "0.6716918", "0.67115784", "0.67107046", "0.67042667", "0.66998893", "0.6676879", "0.65456986", "0.65409005", "0.6536455", "0.6536455", "0.65168494", "0.6490037", "0...
0.66582704
14
Helper function to freeze weights of the base model Args
def M6x5(YKHO, Pu1k, DHy6): if DHy6 == 'all': print('Freezing the Base model.') for xqoZ in getattr(YKHO, 'Base_{}'.format(Pu1k)).parameters(): xqoZ.requires_grad = False elif DHy6 == 'partialbn' and YKHO.base_model_name == 'bninception': print('Freezing the batchnorms of Bas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vKfT(YKHO):\n for yR_P in YKHO.modules():\n if isinstance(yR_P, (U78l.BatchNorm2d, U78l.GroupNorm)):\n yR_P.eval()\n for xqoZ in YKHO.parameters():\n xqoZ.requires_grad = False", "def MyUA(YKHO):\n pass", "def vKfT(C3ST):\n for xqoZ in C3ST.parameters():\n xqoZ.r...
[ "0.71988785", "0.67592853", "0.6753739", "0.6696791", "0.66212523", "0.6581039", "0.6574347", "0.65439975", "0.63393384", "0.6324345", "0.63032305", "0.6297751", "0.62899", "0.6275054", "0.6209337", "0.62070376", "0.6198616", "0.61924076", "0.61850953", "0.618357", "0.6178196...
0.74430555
0
Helper function to freeze weights of the base model Args
def xmu5(YKHO, cCrA, EZd9=(1, -1)): assert isinstance(cCrA, (dict, ht2j.Tensor)) assert isinstance(EZd9, tuple) if isinstance(cCrA, dict): for H5ew in cCrA.keys(): cCrA[H5ew] = cCrA[H5ew].view(EZd9).mean(dim=1) else: cCrA = cCrA[H5ew].view(EZd9).mean(dim=1) return cCrA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M6x5(YKHO, Pu1k, DHy6):\n if DHy6 == 'all':\n print('Freezing the Base model.')\n for xqoZ in getattr(YKHO, 'Base_{}'.format(Pu1k)).parameters():\n xqoZ.requires_grad = False\n elif DHy6 == 'partialbn' and YKHO.base_model_name == 'bninception':\n print('Freezing the batchn...
[ "0.7442864", "0.7202029", "0.6760114", "0.6757101", "0.6699162", "0.6621716", "0.6584286", "0.6573972", "0.6545437", "0.63416934", "0.6327056", "0.63042974", "0.62992907", "0.629057", "0.6276091", "0.6209781", "0.6209242", "0.62011224", "0.61940175", "0.61866367", "0.61856973...
0.0
-1
It inserts the button to save and export the notebook as an embed_HTML
def zJVZ(fytP, kj_s): AWmt = open(yemu + 'preview_HTML.py').read() fytP['cells'] += [GPal.v4.new_code_cell(AWmt.replace('?FILENAME?', kj_s))] fytP.cells[-1].metadata = {'init_cell': True, 'tags': ['run_start'], 'editable': False, 'deletable': False, 'tags': ['run_start']} return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def grEs():\n Oz1B('jupyter nbconvert --to HTML --output=Look+At+Enron+data+set.html \"Look At Enron data set.ipynb\"')\n return", "def PGuW(U34r=False):\n assert j_eT()\n Zg0d = Yt2P()\n pmON, Ux0P = Hy7s.path.split(Zg0d)\n sO5k = Hy7s.getcwd()\n Hy7s.chdir(pmON)\n HCmI = 'jupyter nbconv...
[ "0.6973831", "0.6596256", "0.6421619", "0.6389082", "0.6312435", "0.62654626", "0.6265459", "0.6041431", "0.6031877", "0.59675705", "0.59076065", "0.5876155", "0.5869668", "0.5800764", "0.5798376", "0.578653", "0.5699953", "0.5699953", "0.55925304", "0.55887675", "0.55887675"...
0.49341565
92
Construct a dumbEmoji object from its dictionary representation. If both an ID and a unicode representation are provided, the emoji ID will be used.
def MJdd(Emd4, i5DN: dict, **B2fa) -> eye7: Zh7W = B2fa['rejectInvalid'] if 'rejectInvalid' in B2fa else False if type(i5DN) == eye7: return i5DN if 'id' in i5DN: if i5DN['id'] == 0: return eye7.EMPTY else: return eye7(id=i5DN['id'], rejectInvalid=Zh7W) el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def toAV(KCHu: str) -> eye7:\n if type(KCHu) == eye7:\n return KCHu\n if type(KCHu) == dict:\n return cVt4(KCHu)\n if OdH3(KCHu):\n return eye7(unicode=KCHu)\n elif rMUw(KCHu):\n return eye7(id=int(KCHu[KCHu[KCHu.index(':') + 1:].index(':') + 3:-1]))\n elif i4yK.isInt(KCH...
[ "0.71143246", "0.67178386", "0.67085356", "0.586928", "0.5608321", "0.54813236", "0.53057253", "0.5232978", "0.51436514", "0.5137245", "0.51251453", "0.5094067", "0.50500804", "0.50497", "0.5020558", "0.5019778", "0.5004183", "0.49909002", "0.49721834", "0.49710587", "0.49602...
0.8126695
0
Adds commandline arguments pertaining to training a model. These are different from the arguments dictating the model architecture.
def i1eN(wvEv): wvEv.register('type', 'bool', oOc6) Qvn0 = wvEv.add_argument_group('Environment') Qvn0.add_argument('--no-cuda', type='bool', default=False, help='Train on CPU, even if GPUs are available.') Qvn0.add_argument('--gpu', type=int, default=-1, help='Run on a specific GPU') Qvn0.add_argum...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i1eN(wvEv):\n Qvn0 = wvEv.add_argument_group('Environment')\n Qvn0.add_argument('--dataset', type=str, default='searchqa', help='Dataset: searchqa, quasart or unftriviaqa')\n Qvn0.add_argument('--base_dir', type=str, default='.', help='base_dir of the pre-processing')", "def fvAV(wvEv):\n wvEv.ad...
[ "0.7584579", "0.7450639", "0.7416743", "0.7408205", "0.7381234", "0.72820014", "0.72462153", "0.7141932", "0.71342915", "0.7133612", "0.7102615", "0.70485526", "0.7035238", "0.7016071", "0.6951427", "0.6938835", "0.69271606", "0.68915665", "0.68802047", "0.68490934", "0.68385...
0.74698377
1
Check if the stack is full or not.
def Yykn(YKHO): if len(YKHO.batch) == YKHO.__batch_size: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LWCs(YKHO):\n if YKHO.num_items == YKHO.capacity:\n return True\n else:\n return False", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return len(YKHO.the_stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(Y...
[ "0.8321418", "0.7983887", "0.79595804", "0.7881708", "0.78058916", "0.78058916", "0.77232194", "0.7704919", "0.7687648", "0.7671286", "0.75727993", "0.756861", "0.75546515", "0.7541563", "0.7530106", "0.7512447", "0.74824774", "0.74824774", "0.7438913", "0.7427661", "0.740219...
0.6539718
91
r"""Calculates the output tensor on passing the image ``x`` through the Discriminator.
def KVH6(YKHO, WKvO, uTVT=False): WKvO = YKHO.model(WKvO) return YKHO.output(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7La(YKHO, q0PX, W7Yp):\n\n def VTRi(LNo8, mWFP, exwG, rb7a, _0fC, Y9ns=True):\n \"\"\"This function creates one layer of the discriminator network.\n\n This function is to be called when creating the structure of the\n discriminator network as it's often used.\n\n Ar...
[ "0.6754469", "0.6599978", "0.6471476", "0.64024913", "0.63077277", "0.63015866", "0.6244399", "0.6234966", "0.62208015", "0.62035495", "0.6201749", "0.6097965", "0.6066595", "0.6060173", "0.60587645", "0.6055986", "0.6045468", "0.6043284", "0.5992526", "0.5936307", "0.5932191...
0.0
-1
Initialise. Create a dictionary reference of part ID's and their OBJ path.
def FIMM(YKHO): YKHO.lights_dictionary = BfDw.load_dictionary(YKHO.LIGHTS_JSON) YKHO.nice_name_dictionary = BfDw.load_dictionary(YKHO.NICE_JSON) YKHO.part_order = 0 YKHO.part_cache = {} YKHO.part_reference = {} YKHO.available_packs = [('Parts', YKHO.MODEL_PATH)] if Hy7s.path.exists(YKHO.MODS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eCGt(YKHO):\n YKHO.suburbs_dict = dict()\n YKHO.raw_proIds_dict = dict()\n YKHO.propertyIds_dict = dict()\n YKHO.valuations = dict()", "def FIMM(YKHO, g74T):\n YKHO._paths = []\n for H5ew, BWXx in g74T.items():\n if H5ew == 'paths':\n for pmON in g74T['paths']:\n ...
[ "0.60454375", "0.6014876", "0.5839867", "0.57908285", "0.56131625", "0.5604289", "0.56011385", "0.5597128", "0.55666476", "0.5491945", "0.54889387", "0.546553", "0.54474974", "0.54161716", "0.54092383", "0.5408581", "0.5390852", "0.53690827", "0.53604496", "0.5344424", "0.530...
0.6372537
0
Given a pack name, return it's associated path.
def zp8S(YKHO, Yy0u): for RFFL, w0X_ in YKHO.available_packs: if RFFL == Yy0u: return w0X_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OVoQ(YKHO, sKYw):\n Mkmy = bbBz.RosPack()\n xfst = Mkmy.get_path(sKYw)\n return xfst", "def OVoQ(YKHO, sKYw):\n Mkmy = bbBz.RosPack()\n xfst = Mkmy.get_path(sKYw)\n return xfst", "def OyQC(mWFP: str) -> str:\n return xcR_.fetch(mWFP)", "def OyQC(mWFP: str) -> str:\n return xcR_.fe...
[ "0.6855222", "0.6855222", "0.6753942", "0.6753942", "0.6541193", "0.59934795", "0.59823704", "0.59354067", "0.59093165", "0.5906736", "0.58939755", "0.58539796", "0.585293", "0.5845841", "0.5845837", "0.57941604", "0.5792674", "0.57903576", "0.5785672", "0.5769156", "0.573316...
0.66684884
4
pass through a sigmoid function; this will be our activation function
def xSCv(WKvO, yzQ0, Fg_i): epBp = oyIN.dot(WKvO, oyIN.transpose(yzQ0)) + Fg_i try: KCHu = 1 / (1 + kLQb(-epBp)) except OverflowError: KCHu = float('inf') return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d1fz(WKvO):\n return 1.0 / (1 + oyIN.exp(-WKvO))", "def m1Hg(EcVT, XcU5, Fg_i):\n sdgB = oyIN.dot(EcVT, XcU5) + Fg_i\n return 1.0 / (1.0 + oyIN.exp(-sdgB))", "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n retu...
[ "0.8433485", "0.82847655", "0.8192158", "0.818258", "0.818258", "0.8182444", "0.8180967", "0.81500953", "0.81484914", "0.8142061", "0.8133941", "0.8123074", "0.8123074", "0.8123074", "0.8123074", "0.8123074", "0.8123074", "0.8116751", "0.8115734", "0.8113843", "0.8104586", ...
0.0
-1
Constructor. Pass in a handle to player. Needed for when moving platforms collide with the player.
def FIMM(YKHO, Vjhr, oyg0, yk4i): YKHO.screen = Vjhr YKHO.player = oyg0 YKHO.init_difficulty = yk4i YKHO.start_time = a9eO.time.get_ticks() YKHO.close = False YKHO.close_time = 0 YKHO.platform_list = a9eO.sprite.Group() YKHO.platform_grass_list = a9eO.sprite.Group() YKHO.platform_sto...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, oyg0):\n YKHO.player = oyg0", "def FIMM(YKHO, oyg0):\n YKHO.player = oyg0", "def FIMM(YKHO, *qIxc, **B2fa):\n super(mVZ4, YKHO).__init__(*qIxc, **B2fa)", "def FIMM(YKHO, oyg0):\n YKHO.platform_list = a9eO.sprite.Group()\n YKHO.enemy_list = a9eO.sprite.Group()\n YKHO.player = ...
[ "0.77231866", "0.7595499", "0.7080239", "0.69828427", "0.69644624", "0.69105446", "0.6889749", "0.6837545", "0.6835783", "0.67911077", "0.67646843", "0.6741916", "0.67302036", "0.6726993", "0.671572", "0.6631071", "0.6558635", "0.6551346", "0.6535295", "0.65187436", "0.648396...
0.0
-1
Filter objects by the 'user' field.
def VuzP(YKHO, CBIr, **B2fa): return YKHO.select_related()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i8vv(YKHO, CBIr):\n return YKHO.filter(owner=CBIr)", "def k66M(YKHO):\n uIfa = {YKHO.bound_to_user_field_name: YKHO.request.auth.user}\n return super(rFqd, YKHO).get_queryset().filter(**uIfa)", "def mac6(Emd4, CBIr):\n return Emd4.objects.filter(PKta.Q(CBIr))", "def k66M(YKHO, *qIxc, **B2fa):...
[ "0.77877027", "0.751539", "0.74419916", "0.7344984", "0.73082817", "0.728992", "0.72513855", "0.7216652", "0.72073907", "0.70905066", "0.70402247", "0.70261896", "0.6978064", "0.6932051", "0.6923237", "0.6903759", "0.6902897", "0.68395203", "0.67696226", "0.67499954", "0.6631...
0.62835526
47
Group objects by category and take the average of the values.
def D0V6(YKHO, kepv, KhBf): nPrm = YKHO.by_date(kepv, KhBf) return nPrm.values('category__name').annotate(avg_value=FYrf.Avg('value')).order_by('category')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O5mg(zq8K):\n sum = 0\n TsCi = 0\n for Ghho in zq8K:\n TsCi += 1\n sum += zq8K[Ghho]\n return sum / TsCi", "def zYJ7(nPrm, ZfUD):\n BfDw.save_log('{0} :: {1}'.format(zYJ7.__module__, zYJ7.__name__))\n z0q4 = 'AverageValuePer{0}'.format(ZfUD)\n p06G = nPrm.select([ZfUD, GPtr...
[ "0.70602226", "0.6710419", "0.64120346", "0.62712085", "0.6120465", "0.5990346", "0.59093577", "0.58876765", "0.5752044", "0.5730655", "0.56454986", "0.5562313", "0.5547221", "0.5533601", "0.55290794", "0.55239445", "0.5521062", "0.55177146", "0.551102", "0.5453478", "0.54500...
0.6962641
1
Opens the SimpleChromeDriver and falls into the interpreter for playing around with things
def cgwW(): gCuF = asJJ() xpPk = GkAb(gCuF.chrome_download_dir).expanduser() JPSR = GkAb(gCuF.chrome_profile_dir).expanduser() with huhZ(xpPk, JPSR) as IYa_: IYa_.start() import code code.interact(local=dict(globals(), **locals()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oTPU():\n Hy7s.system('start {CHROME_PATH} --remote-debugging-port={CHROME_DEBUG_PORT} --user-data-dir=\"{CHROME_USERDATA_PATH}\" --lang=zh-CN'.format(CHROME_PATH=dcPK, CHROME_DEBUG_PORT=U22c, CHROME_USERDATA_PATH=cIU6))\n uh1m = lE6K()\n uh1m.add_experimental_option('debuggerAddress', '127.0.0.1:9222...
[ "0.70674855", "0.7066412", "0.6698198", "0.6633192", "0.6588362", "0.6559349", "0.65485334", "0.65295887", "0.65019816", "0.65019816", "0.6455774", "0.6451579", "0.6418617", "0.6371837", "0.6366316", "0.63517374", "0.63277173", "0.6312584", "0.6263341", "0.625561", "0.62232",...
0.72392744
0
This route displays the main/index page.
def b8V_(): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return TvZl('main/index.html', title='Main page')", "def d6pt(YKHO):\n return TvZl('main/index.html')", "def d6pt():\n return TvZl('main.html')", "def d6pt():\n return TvZl('main.html')", "def d6pt():\n return TvZl('main.html')", "def d6pt():\n return TvZl('0-index.html')"...
[ "0.8384523", "0.8128889", "0.7971943", "0.7971943", "0.7964373", "0.7881438", "0.78651434", "0.7843105", "0.7836917", "0.7836917", "0.77871275", "0.778417", "0.7754252", "0.7754252", "0.771109", "0.7710717", "0.7702258", "0.7675622", "0.7668744", "0.7668744", "0.7668744", "...
0.7454932
78
Takes a neutron velocity V in m/s and converts it to lambda in angstroms
def ZHcx(cAlv): return 3956 / cAlv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOBg(w4rS):\n MKlR = 6.2 * 10 ** (-34)\n Z9rn = 299792458\n eHNT = Z9rn / w4rS\n tTpl = MKlR * eHNT * 100000000\n fHZS = 1.0 * tTpl / 10 ** (-19)\n print(fHZS, 'eV')\n return fHZS", "def sv5p(sUMX, fgsB, Cwt5=1.14, hwrp=700.0):\n return sUMX * (hwrp / fgsB) ** (-Cwt5)", "def CmXG(ut...
[ "0.66738105", "0.66485393", "0.6566697", "0.6527834", "0.6354463", "0.6297796", "0.6270176", "0.61058545", "0.6032348", "0.6003408", "0.5979153", "0.59565634", "0.59547573", "0.5875637", "0.5864775", "0.58594537", "0.5839281", "0.58387655", "0.58381325", "0.5807664", "0.57662...
0.7585652
0
The KL divergence from the variational distribution to the prior
def PlVk(YKHO): YKHO.build_cholesky_if_needed() PlVk = -0.5 * YKHO.num_inducing * YKHO.num_nodes * YKHO.dim_per_out for fHgE in range(YKHO.num_nodes): XUMG = YKHO.q_sqrt_lst[fHgE] with QORb(XUMG, convert=True): PlVk -= 0.5 * ZylS.reduce_sum(ZylS.log(ZylS.matrix_diag_part(XUMG) **...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzAH(YKHO) -> llWB:\n return YKHO.variational_strategy.kl_divergence().sum(dim=1).mean()", "def dzAH(yGTL, XO02):\n OE18 = -0.5 * (1 + XO02 - yGTL.pow(2) - XO02.exp())\n y_kP = OE18.sum(1).mean(0, True)\n eb59 = OE18.mean(0)\n hd3S = OE18.mean(1).mean(0, True)\n return (y_kP, eb59, hd3S)", ...
[ "0.79924214", "0.7681632", "0.76779", "0.7626055", "0.758", "0.74929273", "0.7459091", "0.73978436", "0.7341976", "0.73240703", "0.7304507", "0.7291152", "0.7167363", "0.7139671", "0.713152", "0.71254086", "0.7113217", "0.7070393", "0.7028246", "0.69509184", "0.69250625", "...
0.0
-1
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8): Q6kx = YKHO.root for sZqf in GIN8: if sZqf not in Q6kx.children: return False Q6kx = Q6kx.children[sZqf] return Q6kx.word
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False", "def Gtm1(ZO...
[ "0.838632", "0.8150416", "0.8123471", "0.7856802", "0.7830664", "0.77935004", "0.7792806", "0.77642965", "0.7753436", "0.7747724", "0.7711298", "0.76816714", "0.7677101", "0.7664614", "0.76506114", "0.76338875", "0.7628353", "0.76114196", "0.7577657", "0.75695884", "0.756079"...
0.7232451
51
Runs the passwords through a hash and appends.
def G3s8(YKHO, jTXt): YKHO.password_hash = vT87(str(jTXt))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AuKh(qIxc):\n for jTXt in qIxc:\n U70P = qzFd(jTXt)\n print(U70P)", "def Vh_B(NCls):\n CyXm = []\n for Mi51 in NCls['security'].find():\n QdZT = {}\n if not Mi51['password'].startswith('pbkdf2:'):\n QdZT['password'] = vT87(Mi51['password'])\n if any((not...
[ "0.68333465", "0.65163296", "0.6445835", "0.62189674", "0.61914897", "0.6129258", "0.60973704", "0.6070059", "0.60641265", "0.6053884", "0.6044887", "0.59895384", "0.5978022", "0.5972177", "0.5966764", "0.5962361", "0.5938177", "0.5904473", "0.59040856", "0.5895461", "0.58764...
0.0
-1
Computes Euclidian Distance b/w two feature vectors X1 can be a numpy ndarray and x2 is numpy array
def _ORZ(YKHO, o4D3, ajwV): jzdc = o4D3 - ajwV pHXX = jzdc ** 2 Fg_i = oyIN.sum(pHXX, axis=1) Z9rn = oyIN.sqrt(Fg_i) return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P9Al(AvSC: np.ndarray, h6hZ: np.ndarray) -> oyIN.ndarray:\n jzdc = AvSC[:, oyIN.newaxis, :]\n Fg_i = h6hZ[oyIN.newaxis, :, :]\n return oyIN.linalg.norm(jzdc - Fg_i, axis=-1)", "def usGr(o4D3: np.ndarray, ajwV: np.ndarray) -> float:\n return oyIN.sqrt(oyIN.square(o4D3 - ajwV).sum())", "def usGr(...
[ "0.7816244", "0.7808609", "0.7703177", "0.76813495", "0.7666806", "0.7592636", "0.7402267", "0.735111", "0.7240136", "0.72320914", "0.71527284", "0.7129991", "0.7124229", "0.70791507", "0.70430213", "0.7035438", "0.7012098", "0.69866854", "0.6983904", "0.69837594", "0.6963854...
0.7164826
10
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8): XQ_O = YKHO.root for Z9rn in GIN8: if not Z9rn in XQ_O: return False XQ_O = XQ_O[Z9rn] if not YKHO.end in XQ_O: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False", "def Gtm1(ZO...
[ "0.838632", "0.8150416", "0.8123471", "0.7856802", "0.7830664", "0.77935004", "0.7792806", "0.77642965", "0.7753436", "0.7747724", "0.7711298", "0.76816714", "0.7677101", "0.7664614", "0.76506114", "0.76338875", "0.7628353", "0.76114196", "0.7577657", "0.75695884", "0.756079"...
0.74387366
35
Attempt to fuzzy match the target string to an operator name using the given scorer function. The alias for the match with the highest score is returned. If a match with a score above the cutoff is not found, None is returned
def YPZG(YKHO, pan_: str, HjDq=None, bXCZ=85, qoqK=1) -> rLdf.Series: HjDq = HjDq or YKHO.default_scorer() P8mz: list = NBjn.extractBests(pan_, YKHO.operator, scorer=HjDq, limit=qoqK, score_cutoff=bXCZ) jQ3Z = rLdf.DataFrame.from_records(P8mz, columns=['name', 'index_score', 'fuzzy_score']) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mZPP(object, ANfV, gwAu=80):\n Ao4F = zxm6(ANfV)\n if Ao4F:\n WZbd = [IYPf.ratio(object, wIFx) for wIFx in Ao4F]\n if oyIN.max(WZbd) > gwAu:\n return (oyIN.max(WZbd), Ao4F[oyIN.argmax(WZbd)])\n else:\n return (0, '')\n else:\n return (0, '')", "async...
[ "0.6589819", "0.64425164", "0.58997977", "0.58632153", "0.58299005", "0.56999075", "0.5664272", "0.5549336", "0.5484873", "0.5475975", "0.53234446", "0.53025043", "0.52954453", "0.52909315", "0.5284119", "0.5278062", "0.5250008", "0.5246519", "0.51911473", "0.51895994", "0.51...
0.71131057
2
Attempt to fuzzy match the target string to an operator name using the given scorer function. The alias for the match with the highest score is returned. If a match with a score above the cutoff is not found, None is returned
def YPZG(YKHO, pan_: str, HjDq=None, bXCZ=85, qoqK=1) -> rLdf.Series: HjDq = HjDq or YKHO.default_scorer() P8mz: list = NBjn.extractBests(pan_, YKHO.operator, scorer=HjDq, limit=qoqK, score_cutoff=bXCZ) jQ3Z = rLdf.DataFrame.from_records(P8mz, columns=['name', 'index_score', 'fuzzy_score']) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mZPP(object, ANfV, gwAu=80):\n Ao4F = zxm6(ANfV)\n if Ao4F:\n WZbd = [IYPf.ratio(object, wIFx) for wIFx in Ao4F]\n if oyIN.max(WZbd) > gwAu:\n return (oyIN.max(WZbd), Ao4F[oyIN.argmax(WZbd)])\n else:\n return (0, '')\n else:\n return (0, '')", "async...
[ "0.659055", "0.64439535", "0.59002095", "0.5863153", "0.5831834", "0.5701473", "0.5665831", "0.5550824", "0.54848444", "0.5475604", "0.5324608", "0.53036016", "0.52972806", "0.5290554", "0.5284169", "0.52791375", "0.5251146", "0.52473545", "0.5191728", "0.51911855", "0.518684...
0.71132505
1
Attempt to fuzzy match the target string to an operator name using the given scorer function. The alias for the match with the highest score is returned. If a match with a score above the cutoff is not found, None is returned
def YPZG(YKHO, pan_: str, HjDq=None, bXCZ=85, qoqK=1) -> rLdf.Series: HjDq = HjDq or YKHO.default_scorer() P8mz: list = NBjn.extractBests(pan_, YKHO.operator, scorer=HjDq, limit=qoqK, score_cutoff=bXCZ) jQ3Z = rLdf.DataFrame.from_records(P8mz, columns=['name', 'index_score', 'fuzzy_score']) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mZPP(object, ANfV, gwAu=80):\n Ao4F = zxm6(ANfV)\n if Ao4F:\n WZbd = [IYPf.ratio(object, wIFx) for wIFx in Ao4F]\n if oyIN.max(WZbd) > gwAu:\n return (oyIN.max(WZbd), Ao4F[oyIN.argmax(WZbd)])\n else:\n return (0, '')\n else:\n return (0, '')", "async...
[ "0.6589819", "0.64425164", "0.58997977", "0.58632153", "0.58299005", "0.56999075", "0.5664272", "0.5549336", "0.5484873", "0.5475975", "0.53234446", "0.53025043", "0.52954453", "0.52909315", "0.5284119", "0.5278062", "0.5250008", "0.5246519", "0.51911473", "0.51895994", "0.51...
0.71131057
0
Get account record for project.
def v5uS(ekCf, AaTp=False, cuiw=None): cuiw = cuiw or KfiN() Aofo = cuiw.query(FYrf.ProjectAccountRecord).filter_by(project_id=ekCf).filter_by(deleted=AaTp).first() if not Aofo: raise AJ5d.ProjectRecordNotFound() return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AmjW(YKHO):\n return YKHO._account", "def AmjW(YKHO):\n return YKHO._account", "def AmjW(YKHO, ZrNc):\n pass", "def ZrNc(YKHO, EBtu):\n return YAq3.Account(YKHO, EBtu)", "def ZrNc(YKHO, Z31E: str):\n return _mmD(YKHO.accounts, 'id', Z31E)", "def AmjW(YKHO, mWFP):\n return YKHO._acco...
[ "0.6873403", "0.6873403", "0.6768942", "0.65608275", "0.6481947", "0.6471267", "0.6470501", "0.64585155", "0.6380671", "0.63713425", "0.63052857", "0.63029593", "0.6294659", "0.61823344", "0.616734", "0.61592054", "0.61530197", "0.6139093", "0.6127555", "0.61225945", "0.60992...
0.7251701
0
Get all item record for project by project id.
def _JIM(ekCf, AaTp=False, cuiw=None): cuiw = cuiw or KfiN() Aofo = cuiw.query(FYrf.ProjectItemRecord).filter_by(project_id=ekCf).filter_by(deleted=AaTp).all() if not Aofo: raise AJ5d.ProjectItemRecordNotFound() return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _JIM(bNKA):\n p4sf = WsL5.request.db_api\n try:\n J2us = p4sf.get_all_item_record_for_project(bNKA)\n DumB = p4sf.get_all_item()\n YVL7 = dict([(YRbF.id, YRbF) for YRbF in DumB])\n Bobm = {}\n for AIu6 in J2us:\n Bobm[YVL7[AIu6.item_id].name] = AIu6\n exce...
[ "0.813911", "0.7328739", "0.69601107", "0.67463654", "0.6533493", "0.63821095", "0.63788885", "0.634504", "0.63328993", "0.6316908", "0.6295516", "0.62620634", "0.61942583", "0.61678183", "0.6166824", "0.6155322", "0.6145036", "0.6108053", "0.60920167", "0.6046282", "0.602754...
0.79447895
1
Get account record for user.
def HdjH(ekCf, uJjO, AaTp=False): cuiw = KfiN() xDcj = cuiw.query(FYrf.UserAccountRecord).filter_by(project_id=ekCf).filter_by(user_id=uJjO).filter_by(deleted=AaTp) return xDcj.all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8kR(YKHO):\n mWFP = YKHO._GetAccountNameFromUser()\n FGW3 = YKHO._GetAccountNumberFromUser()\n if ZbWC.match('^[0-9]*$', FGW3) is None:\n raise ValueError('Account number is invalid: %r' % FGW3)\n return TDrP.Account(mWFP, int(FGW3))", "def TKWP(YKHO, uJjO):\n try:\n return tHSi...
[ "0.7582313", "0.73810774", "0.7379446", "0.73619837", "0.728641", "0.720849", "0.7114318", "0.7114318", "0.69070274", "0.6905375", "0.6758387", "0.6721938", "0.6680151", "0.66314286", "0.6567621", "0.65584415", "0.65564144", "0.6526109", "0.65027344", "0.6495356", "0.63669413...
0.66611445
13
Pads inputs w.r.t. data format.
def XGdJ(g4y1, LkVj, wH3T): if wH3T == 'channels_first': PE9h = ZylS.pad(g4y1, [[0, 0], [0, 0], LkVj, LkVj]) else: PE9h = ZylS.pad(g4y1, [[0, 0], LkVj, LkVj, [0, 0]]) return PE9h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def el_E(__n6, dvgN=0):\n bW4_ = max((len(WKvO) for WKvO in __n6['input_ids']))\n for mWFP in Kzkc:\n __n6[mWFP] = [WKvO + [dvgN if mWFP != 'lm_labels' else -100] * (bW4_ - len(WKvO)) for WKvO in __n6[mWFP]]\n return __n6", "def hVLt(nPrm, *qIxc, **B2fa):\n raise NotImplementedError()", "def...
[ "0.6714534", "0.65620893", "0.63622624", "0.6301816", "0.6300907", "0.62297213", "0.6203088", "0.61806923", "0.61762965", "0.6154326", "0.61143845", "0.60824525", "0.604327", "0.60138506", "0.5969655", "0.5911536", "0.5877184", "0.5751767", "0.5698976", "0.5692566", "0.564209...
0.62052333
6
Fuses spacetodepth and transpose. Spacetodepth performs the following permutation, which is equivalent to tf.nn.space_to_depth. As spacetodepth has an implicitly transpose, input transpose is fused into spacetodepth transform. images = tf.reshape(images, [batch, h // block_size, block_size, w // block_size, block_size,...
def OeYa(Yw_3, Z1S6=2, H4_K=True): Ep8u, MKlR, yzQ0, Z9rn = Yw_3.get_shape().as_list() if Z1S6 != 0: Yw_3 = ZylS.reshape(Yw_3, [Ep8u, MKlR // Z1S6, Z1S6, yzQ0 // Z1S6, Z1S6, Z9rn]) if H4_K: Yw_3 = ZylS.transpose(Yw_3, [1, 3, 0, 2, 4, 5]) Yw_3 = ZylS.reshape(Yw_3, [MKlR //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sULR(Oa1e, khtY, XkN1):\n mJgj = khtY.attr('dilations')\n moMn = khtY.attr('groups')\n LkVj = khtY.attr('paddings')\n DSTW = khtY.attr('padding_algorithm')\n FEri = khtY.attr('strides')\n EJc2 = khtY.attr('output_padding') if khtY.attr('output_padding') else [0, 0]\n WZcn = Oa1e.get_node(k...
[ "0.6252821", "0.6187393", "0.6059542", "0.60442156", "0.60276586", "0.60033554", "0.5998148", "0.59918356", "0.5949912", "0.5934507", "0.5899734", "0.5860573", "0.58351976", "0.5719159", "0.570773", "0.56841886", "0.5680008", "0.56749076", "0.56631535", "0.5646647", "0.563803...
0.7638583
0
Standard building block for residual networks with BN after convolutions.
def QufS(g4y1, KUnM, LT6S, FEri, HhsH=False, wH3T='channels_first'): PWHU = g4y1 if HhsH: PWHU = yN4c(inputs=g4y1, filters=KUnM, kernel_size=1, strides=FEri, data_format=wH3T) PWHU = e32L(PWHU, LT6S, relu=False, data_format=wH3T) g4y1 = yN4c(inputs=g4y1, filters=KUnM, kernel_size=3, strides=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNyv(YKHO):\n iwRO = X6a0((YKHO.data_rows, YKHO.data_cols, 1), name='inputs_data')\n\n def QufS(input, dxEX=64, Ot1W=(3, 3), _0fC=(1, 1)):\n WKvO = yHwh(dxEX, Ot1W, padding='same', strides=_0fC)(input)\n WKvO = GVKG()(WKvO)\n WKvO = MroH('relu')(WKvO)\n WKvO = yHwh(dxEX, Ot1W,...
[ "0.6761057", "0.6718992", "0.65846515", "0.65790915", "0.649853", "0.64868796", "0.64450806", "0.64450806", "0.6441736", "0.6411527", "0.64062256", "0.6399525", "0.63963383", "0.63919085", "0.6371196", "0.63613915", "0.62739086", "0.62727815", "0.6233148", "0.623134", "0.6202...
0.0
-1
Bottleneck block variant for residual networks with BN after convolutions.
def DBu1(g4y1, KUnM, LT6S, FEri, HhsH=False, wH3T='channels_first'): PWHU = g4y1 if HhsH: M6Hj = 4 * KUnM PWHU = yN4c(inputs=g4y1, filters=M6Hj, kernel_size=1, strides=FEri, data_format=wH3T) PWHU = e32L(PWHU, LT6S, relu=False, data_format=wH3T) g4y1 = yN4c(inputs=g4y1, filters=KUnM,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dAQ7(ZVqN=[1, 2, 3], fdcO=None, mdiS=None):\n Hydj = X6a0(shape=(None, None, 3))\n z5f9 = 3\n mBM4 = 1 not in ZVqN\n WKvO = yHwh(64, (7, 7), strides=(2, 2), padding='same', name='conv1', trainable=mBM4, kernel_regularizer=fdcO, bias_regularizer=mdiS)(Hydj)\n WKvO = GVKG(axis=z5f9, name='bn_conv1...
[ "0.67967707", "0.6790556", "0.67886436", "0.6717657", "0.65665877", "0.6537484", "0.6519858", "0.65195817", "0.6465134", "0.64170057", "0.64149576", "0.63950753", "0.63930964", "0.6377483", "0.6363764", "0.63319874", "0.6259834", "0.6256376", "0.62512606", "0.62451756", "0.62...
0.57658273
78
Changes a specific byte in a byte array
def oYhX(J83E, d6pt): if J83E[d6pt] == 0: aaYR = J83E[0:d6pt] + b'\xff' + J83E[d6pt + 1:] aaYR = J83E[0:d6pt] + b'\x00' + J83E[d6pt + 1:] return aaYR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZgF(YKHO, gEui, VVjy, Qj8D):\n if VVjy >= YKHO.binary_size:\n print('You tried to modify a byte at %d index. This cannot be done. The maximum index is %d.' % (VVjy, YKHO.binary_size - 1))\n else:\n Qj8D = str(Qj8D)\n YB8B = YKHO.binary_array[gEui]\n E9l9 = YB8B[0:VVjy] + Qj8D...
[ "0.7607034", "0.7187944", "0.6851375", "0.6837722", "0.6780952", "0.6729589", "0.6723024", "0.6679319", "0.64730704", "0.6376428", "0.6333384", "0.62949824", "0.62935746", "0.6257262", "0.6237112", "0.6162971", "0.6119067", "0.6108211", "0.61019486", "0.609579", "0.5928492", ...
0.7412648
1
Sends a 401 response that enables basic auth
def NLCy(): return oGir('Could not verify your credentials for that url', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})", "def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\...
[ "0.8093736", "0.80926424", "0.7958403", "0.7852648", "0.7824419", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", ...
0.7843114
4
Try to add the reporter as a fallback owner or if no alternative owners have been specified. This should work since only employees are allowed to use this request type and all employees are in LDAP.
def iphZ(): Aofo = ymkM.find_from_email(rKLW.globals.REPORTER) if Aofo is not None: NdcI.post_comment('Adding %s as the owner of the group.' % rKLW.globals.REPORTER, True) return [Aofo] NdcI.post_comment('Unable to add %s as an owner as the email address cannot be found in Linaro Login. This...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jjss(YKHO, a98m, W_1b, WmM4=None):\n YKHO.lock.acquire()\n YKHO.users.add(a98m)\n raTX = W_1b in YKHO.users\n YKHO.lock.release()\n if WmM4 != YKHO and WmM4 != None:\n WmM4.check_user(a98m, W_1b)\n return raTX", "def QuAR(YKHO, _E99, AIu6, **B2fa):\n oQGL = HEL8 in _E99.provides\n...
[ "0.5346557", "0.5095638", "0.50383765", "0.5028467", "0.48953253", "0.48707283", "0.4851011", "0.48406032", "0.48377118", "0.48243517", "0.48027915", "0.4784198", "0.47707832", "0.47077477", "0.46895742", "0.46746963", "0.46505794", "0.46497324", "0.4624019", "0.46179965", "0...
0.63934386
0
Loads a single training dataset.
def AyYN(pmON): bPNP = [] with open(pmON) as z36O: N5Pj = m6_J.reader(z36O, delimiter=',') next(N5Pj) for rdlD in N5Pj: bPNP.append(rdlD[1]) return bPNP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pJ1y(YKHO):\n YKHO._save_training_data()", "def AyYN():\n NTkV = IRIK(HbpR, load=False)\n K1Op = pVAc(NTkV, batch_size=16, shuffle=True, num_workers=0, collate_fn=GfO2())\n d10X = IRIK(OvGi, load=True)\n M_QP = pVAc(d10X, batch_size=1, shuffle=False, num_workers=0, collate_fn=GfO2())\n asse...
[ "0.7245358", "0.71401083", "0.7106745", "0.7064546", "0.70641655", "0.6957694", "0.695757", "0.69105434", "0.6814488", "0.68131214", "0.6791823", "0.6780509", "0.67765695", "0.67636853", "0.6733562", "0.67234486", "0.6712425", "0.67052805", "0.6686271", "0.6671118", "0.667068...
0.68193704
8
Saves the parameters into a dictionary that can later be e.g. savez'd. It is different from the Pytorch version in that the prefix of the variables is determined by the variable (/name?) scopes used when the cell was defined.
def QCE7(YKHO, cuiw, R8cc=None): if R8cc is None: R8cc = {} for yzQ0 in YKHO.weights: R8cc[yzQ0.name.rsplit(':', 1)[0]] = cuiw.run([yzQ0])[0] return R8cc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eS0I(YKHO):\n vEX2 = YKHO.weights + YKHO.biases\n S1TU = [bGrB.name for bGrB in vEX2]\n FbnM = {mWFP: SRYB for mWFP, SRYB in zip(S1TU, vEX2)}\n return FbnM", "def QCE7(YKHO):\n vWc7 = Hy7s.path.join(YKHO._datadir, YKHO.id.lower() + '.cfg')\n O34f = {}\n O34f['eta'] = YKHO.system_param['e...
[ "0.70121944", "0.6368089", "0.636776", "0.63463885", "0.622241", "0.6198613", "0.61972576", "0.616711", "0.6138725", "0.61033726", "0.6083243", "0.6026282", "0.5963769", "0.5925412", "0.5909473", "0.5871749", "0.5840318", "0.58307344", "0.5823209", "0.5816673", "0.5795027", ...
0.6631182
1
Saves the parameters into a dictionary that can later be e.g. savez'd. It is different from the Pytorch version in that the prefix of the variables is determined by the variable (/name?) scopes used when the cell was defined.
def QCE7(YKHO, cuiw, R8cc=None): if R8cc is None: R8cc = {} for gEmA in YKHO.layers: gEmA.save_parameters(cuiw, R8cc) return R8cc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eS0I(YKHO):\n vEX2 = YKHO.weights + YKHO.biases\n S1TU = [bGrB.name for bGrB in vEX2]\n FbnM = {mWFP: SRYB for mWFP, SRYB in zip(S1TU, vEX2)}\n return FbnM", "def QCE7(YKHO, cuiw, R8cc=None):\n if R8cc is None:\n R8cc = {}\n for yzQ0 in YKHO.weights:\n R8cc[yzQ0.name.rsplit(':...
[ "0.70133185", "0.663021", "0.6368316", "0.63673604", "0.634539", "0.62220037", "0.61976147", "0.6197335", "0.6164007", "0.61014414", "0.60837275", "0.60256314", "0.5962757", "0.5926123", "0.5908395", "0.587091", "0.583851", "0.582901", "0.58223844", "0.58159804", "0.57932276"...
0.61386293
9
Get a list containing all elements in the arma_container.
def twWU(j9gP): vfHt = j9gP['n_elem'] poLx = j9gP['mem'] BrfN = poLx.type.target().unqualified() if 'complex' in BrfN.name: return [M9sA(poLx[YRbF]) for YRbF in range(vfHt)] return [poLx[YRbF] for YRbF in range(vfHt)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def all(YKHO):\n return list(YKHO.iterator())", "def BGc_(j9gP):\n if isinstance(j9gP, str):\n j9gP = yc5u.parse_and_eval(j9gP)\n Gmep = j9gP['n_rows']\n OfOG = j9gP['n_cols']\n vfHt = j9gP['n_elem']\n poLx = j9gP['mem']\n BrfN = poLx.type.target().unqualified()\n ygxb = {'double':...
[ "0.6568955", "0.65409666", "0.65166247", "0.6506832", "0.6444223", "0.64083475", "0.6289796", "0.62836426", "0.6215201", "0.62119395", "0.62043554", "0.6201367", "0.61920005", "0.61659324", "0.6161435", "0.61315525", "0.6113563", "0.610823", "0.61022896", "0.60991925", "0.607...
0.77745867
0
Return a fully qualified class name string for class ``cls``.
def s5_U(Emd4: type) -> str: return SsJC.full_classname(Emd4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kn2E(Emd4):\n return '{}.{}'.format(Emd4.__module__, Emd4.__name__)", "def jeLr(Emd4):\n yR_P = Emd4.__module__\n if yR_P is None or yR_P == str.__class__.__module__:\n return Emd4.__class__.__name__\n return yR_P + '.' + Emd4.__class__.__name__", "def _2sc(Emd4):\n return Emd4.__name...
[ "0.80164295", "0.7981724", "0.7926273", "0.7926273", "0.7805226", "0.7680299", "0.73659676", "0.73585546", "0.73313534", "0.72725195", "0.72346884", "0.72346884", "0.7160803", "0.71084", "0.7064977", "0.70488745", "0.70252043", "0.70252043", "0.70180553", "0.69375885", "0.691...
0.79708624
2
Return a copy of this configuration factory that functionally works the same.
def i3ak(YKHO) -> ImMB: return U7YL.copy(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO):\n AJ7R = _OIF()\n AJ7R.use_examples_for_default = YKHO.use_examples_for_default\n AJ7R.use_response_for_default = YKHO.use_response_for_default\n AJ7R.use_embedded = YKHO.use_embedded\n AJ7R.use_wordbook = YKHO.use_wordbook\n AJ7R.use_examples = YKHO.use_examples\n AJ7R.use_res...
[ "0.7286043", "0.69984365", "0.69428957", "0.6785458", "0.67494476", "0.6692631", "0.66480064", "0.65916646", "0.6536674", "0.6497581", "0.64873344", "0.6476193", "0.6476193", "0.6455589", "0.6430411", "0.64302033", "0.6366175", "0.6362718", "0.6353676", "0.63217604", "0.63009...
0.0
-1
Return a copy of this configuration factory that functionally works the same. However, it does not copy over any resources generated during the life of the factory.
def i3ak(YKHO) -> ImMB: i3ak = super().clone() i3ak.clear() return i3ak
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FzJk(YKHO):\n AJ7R = _OIF()\n AJ7R.use_examples_for_default = YKHO.use_examples_for_default\n AJ7R.use_response_for_default = YKHO.use_response_for_default\n AJ7R.use_embedded = YKHO.use_embedded\n AJ7R.use_wordbook = YKHO.use_wordbook\n AJ7R.use_examples = YKHO.use_examples\n AJ7R.use_res...
[ "0.6886761", "0.6744836", "0.65485", "0.6495054", "0.6481339", "0.64424306", "0.64332163", "0.643071", "0.6342509", "0.6342509", "0.6323504", "0.6312829", "0.6283929", "0.6275074", "0.62745625", "0.6247065", "0.62115985", "0.6155805", "0.61544675", "0.6102668", "0.6100096", ...
0.0
-1
Creates selenium driver for webscrapping automation Downloads it into driver folder if not installed
def RDuc(YKHO): if not YKHO.driverFolder.exists(): Hy7s.mkdir('driver') _QHU = 'User agent: ' + YKHO.userAgent + '<br>' YKHO.announcer.announce(YKHO.announcer.format_sse(_QHU)) for WUn1 in YKHO.userAgent.split(' '): if WUn1.split('/')[0] == YKHO.browser: DpZH = WUn1.split('/'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zW6E():\n xAU6 = lE6K()\n xAU6.headless = True\n E_qD = cSpz.Firefox(options=xAU6, executable_path='./geckodriver')\n E_qD.implicitly_wait(30)\n return E_qD", "def Qd75():\n Hy7s.environ['webdriver.chrome.driver'] = t4gW\n E_qD = cSpz.Chrome(t4gW)\n E_qD.set_window_size(1280, 800)\n ...
[ "0.6866805", "0.6855302", "0.6822128", "0.6610871", "0.6569253", "0.656648", "0.6483102", "0.64660627", "0.6465365", "0.6460813", "0.63670164", "0.6320266", "0.6313826", "0.6309802", "0.6277847", "0.62708163", "0.62688744", "0.62457854", "0.6199809", "0.61945736", "0.6123801"...
0.7487497
0
Returns the nested nodes in the body of a node.
def RbaF(Emd4, Q6kx: ast.AST) -> iu5r[jZ4I.AST]: TBsA: h8nf[bdIy[jZ4I.AST]] = getattr(Q6kx, 'body', None) if TBsA is not None: for aUGN in TBsA: yield aUGN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rj6q(Q6kx):\n return list(wNRb(Q6kx))", "def Ziit(YKHO):\n return (Q6kx.content for Q6kx in YKHO.traverse())", "def afYC(Q6kx):\n return cxBS(Q6kx)", "def wa12(YKHO):\n BWXx = YKHO.subnode_loop_body\n if BWXx is None:\n return ()\n else:\n return (BWXx,)", "def MqtK(YKHO...
[ "0.62883824", "0.6253895", "0.60750514", "0.60332704", "0.6013374", "0.58077276", "0.5789496", "0.56801975", "0.5561987", "0.54618096", "0.5426877", "0.5400886", "0.5373536", "0.5360819", "0.53477675", "0.534337", "0.5341113", "0.528977", "0.52756613", "0.52542585", "0.524975...
0.659452
0
Pretty JSON dump of an object.
def CgYo(YKHO, YEnM): return qQXR.dumps(YEnM, sort_keys=True, indent=2, separators=(',', ': '))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wilB(YKHO, YEnM: object) -> str:\n return qQXR.dumps(YEnM, sort_keys=YKHO.beautify, indent=4)", "def s0u9(YEnM):\n print(qQXR.dumps(YEnM, indent=2))", "def CgYo(YEnM):\n return qQXR.dumps(YEnM, sort_keys=True, indent=2, separators=(',', ': '))", "def CgYo(YEnM):\n return qQXR.dumps(YEnM, sort...
[ "0.79998887", "0.7930918", "0.7916694", "0.7916694", "0.78797597", "0.7752486", "0.7712631", "0.7646695", "0.7569254", "0.75250614", "0.74820435", "0.74561304", "0.741061", "0.7307335", "0.72820616", "0.7219065", "0.72057736", "0.70947427", "0.70880896", "0.7081247", "0.70657...
0.79296386
2
GetOutput(self) > itkMeshD2Q GetOutput(self, unsigned int idx) > itkMeshD2Q
def lKgj(YKHO, *qIxc): return O8Nl.itkMeshSourceMD2Q_GetOutput(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lKgj(YKHO, *qIxc) -> 'itkMeshD2 *':\n return VW7C.itkVTKPolyDataReaderMD2_Superclass_GetOutput(YKHO, *qIxc)", "def lKgj(YKHO, *qIxc) -> 'itkPointSetD2 *':\n return O8Nl.itkMeshSourcePSD2_GetOutput(YKHO, *qIxc)", "def lKgj(YKHO, *qIxc) -> 'itkMeshD2 *':\n return O8Nl.itkMeshSourceMD2_GetOutput(YKHO...
[ "0.707139", "0.7049461", "0.6873616", "0.6843278", "0.6818263", "0.6817498", "0.6801467", "0.6795621", "0.6783045", "0.6737912", "0.6718591", "0.6700618", "0.669821", "0.66754043", "0.66668105", "0.6639717", "0.6619755", "0.6594609", "0.65867054", "0.6510939", "0.6499863", ...
0.69199556
2
cast(itkLightObject obj) > itkMeshSourceMD2Q
def YWvJ(*qIxc): return O8Nl.itkMeshSourceMD2Q_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SyZY(YEnM: 'itkLightObject') -> 'itkMeshSourceMD2 *':\n return O8Nl.itkMeshSourceMD2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkMeshSourceMD2 *':\n return O8Nl.itkMeshSourceMD2_cast(YEnM)", "def huXH(YEnM: 'itkLightObject') -> 'itkMeshSourceMD3 *':\n return O8Nl.itkMeshSourceMD3_cast(YE...
[ "0.8582052", "0.8537004", "0.83109564", "0.8264792", "0.8228583", "0.81956387", "0.80514306", "0.7962712", "0.7915732", "0.79055077", "0.7892144", "0.7815524", "0.78107864", "0.77667904", "0.7763599", "0.7682104", "0.763537", "0.76352715", "0.76349384", "0.76339114", "0.76305...
0.74455327
34
New() > itkMeshSourceMD2Q Create a new object of the class itkMeshSourceMD2Q and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first input, etc. The n...
def oW_4(*qIxc, **PECO): YEnM = N7v8.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = wAgI.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = WuIs.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.7639044", "0.727875", "0.7128952", "0.698582", "0.6949615", "0.6797933", "0.6774174", "0.67558956", "0.6738865", "0.66925174", "0.6649819", "0.66396123", "0.6613809", "0.6544495", "0.6528151", "0.6504718", "0.6462523", "0.6440543", "0.6421221", "0.6412888", "0.63615274", ...
0.80018705
0
itkMeshSourceMD2Q_cast(itkLightObject obj) > itkMeshSourceMD2Q
def YB98(*qIxc): return O8Nl.itkMeshSourceMD2Q_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SyZY(YEnM: 'itkLightObject') -> 'itkMeshSourceMD2 *':\n return O8Nl.itkMeshSourceMD2_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkMeshSourceMD2 *':\n return O8Nl.itkMeshSourceMD2_cast(YEnM)", "def huXH(YEnM: 'itkLightObject') -> 'itkMeshSourceMD3 *':\n return O8Nl.itkMeshSourceMD3_cast(YE...
[ "0.86521226", "0.8496428", "0.8229923", "0.81796956", "0.8117432", "0.8107494", "0.7942349", "0.79344153", "0.77690357", "0.7740543", "0.7737454", "0.7703959", "0.7676164", "0.76738644", "0.76635903", "0.7634641", "0.76233923", "0.7613119", "0.75789106", "0.7488574", "0.74645...
0.8176313
4
GetOutput(self) > itkMeshD3Q GetOutput(self, unsigned int idx) > itkMeshD3Q
def lKgj(YKHO, *qIxc): return O8Nl.itkMeshSourceMD3Q_GetOutput(YKHO, *qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lKgj(YKHO, *qIxc) -> 'itkMeshD3 *':\n return VW7C.itkVTKPolyDataReaderMD3_Superclass_GetOutput(YKHO, *qIxc)", "def lKgj(YKHO, *qIxc) -> 'itkPointSetD3 *':\n return O8Nl.itkMeshSourcePSD3_GetOutput(YKHO, *qIxc)", "def lKgj(YKHO, *qIxc) -> 'itkMeshD3 *':\n return O8Nl.itkMeshSourceMD3_GetOutput(YKHO...
[ "0.7287188", "0.7221649", "0.71742666", "0.71100026", "0.7073772", "0.7030481", "0.70147634", "0.6998503", "0.69892234", "0.6967587", "0.693919", "0.6935009", "0.69286907", "0.69260216", "0.68590224", "0.6832003", "0.6768338", "0.67619294", "0.67344165", "0.6715194", "0.67117...
0.7188139
2
cast(itkLightObject obj) > itkMeshSourceMD3Q
def YWvJ(*qIxc): return O8Nl.itkMeshSourceMD3Q_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def huXH(YEnM: 'itkLightObject') -> 'itkMeshSourceMD3 *':\n return O8Nl.itkMeshSourceMD3_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkMeshSourceMD3 *':\n return O8Nl.itkMeshSourceMD3_cast(YEnM)", "def Wzx5(YEnM: 'itkLightObject') -> 'itkMeshSourceMF3 *':\n return O8Nl.itkMeshSourceMF3_cast(YE...
[ "0.8897926", "0.87653625", "0.85445416", "0.84689623", "0.8408301", "0.83891255", "0.83023906", "0.82078826", "0.81228536", "0.8096932", "0.8038447", "0.8036079", "0.80280703", "0.8027851", "0.8007173", "0.8004767", "0.7995328", "0.79838175", "0.796514", "0.7950437", "0.79498...
0.7580068
30
New() > itkMeshSourceMD3Q Create a new object of the class itkMeshSourceMD3Q and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first input, etc. The n...
def oW_4(*qIxc, **PECO): YEnM = wAgI.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = XQE4.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = N7v8.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.76424545", "0.75177705", "0.72723085", "0.72642565", "0.70665973", "0.70411664", "0.6989817", "0.69875216", "0.69681907", "0.6827896", "0.6809468", "0.6800386", "0.676918", "0.6702616", "0.6649606", "0.6634698", "0.6605022", "0.6587581", "0.65751237", "0.6470867", "0.64678...
0.821262
0
itkMeshSourceMD3Q_cast(itkLightObject obj) > itkMeshSourceMD3Q
def _DCB(*qIxc): return O8Nl.itkMeshSourceMD3Q_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def huXH(YEnM: 'itkLightObject') -> 'itkMeshSourceMD3 *':\n return O8Nl.itkMeshSourceMD3_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkMeshSourceMD3 *':\n return O8Nl.itkMeshSourceMD3_cast(YEnM)", "def Wzx5(YEnM: 'itkLightObject') -> 'itkMeshSourceMF3 *':\n return O8Nl.itkMeshSourceMF3_cast(YE...
[ "0.8978029", "0.8786041", "0.8519509", "0.83915526", "0.8382306", "0.8357595", "0.8251058", "0.82282436", "0.8043792", "0.8010526", "0.7997927", "0.7983657", "0.79835016", "0.7977872", "0.793134", "0.7918131", "0.7876938", "0.7820073", "0.7818601", "0.7747988", "0.7739797", ...
0.8198177
8
Return a list of nodes forming the path from the root to this node.
def pmON(YKHO): Q6kx, Jk9z = (YKHO, []) while Q6kx: Jk9z.append(Q6kx) Q6kx = Q6kx.parent return list(reversed(Jk9z))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n Q6kx, X_FV = (YKHO, [])\n while Q6kx:\n X_FV.append(Q6kx)\n Q6kx = Q6kx.parent\n return list(reversed(X_FV))", "def pmON(YKHO):\n Q6kx, Jk9z = (YKHO, [])\n while Q6kx:\n Jk9z.append(Q6kx)\n Q6kx = Q6kx.parent\n return list(reversed(Jk9z))", "def A...
[ "0.7984329", "0.77074516", "0.7606885", "0.7442534", "0.7393407", "0.73567694", "0.73452824", "0.7337256", "0.7315247", "0.7297849", "0.7290767", "0.7246857", "0.72439355", "0.7197385", "0.7157757", "0.715197", "0.71127594", "0.710878", "0.7068614", "0.7051616", "0.70308995",...
0.7581861
4
Get a pb instance from the config.
def iRm2(Emd4): if Emd4.pb_singleton is None: with open(WncU.FLAGS.conf, 'r') as CAYp: Emd4.pb_singleton = C5Bg.Merge(CAYp.read(), PBLf.Config()) Yoqy.info('Get config: {}'.format(Emd4.pb_singleton)) return Emd4.pb_singleton
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iSDi(Emd4):\n if not Emd4._instance:\n Emd4._instance = PSrQ()\n return Emd4._instance", "def tgzD(Emd4) -> '__Config':\n if Emd4.__instance is None:\n Emd4.__instance = Emd4.__Config()\n return Emd4.__instance", "def tgzD() -> h8nf[PSrQ]:\n return kNfJ.get()", "def rTEB(GPtr...
[ "0.61414784", "0.6062606", "0.57294023", "0.57033986", "0.57033986", "0.5687849", "0.5682233", "0.55206746", "0.55115753", "0.5506902", "0.5470777", "0.5435427", "0.5435427", "0.54308707", "0.5418612", "0.54126674", "0.5409956", "0.53776026", "0.53776026", "0.5318656", "0.529...
0.7611659
0
Get realpath from a path string in config. Starting with '/' indicates an absolute path, otherwise it will be taken as a relative path of the Apollo root.
def glH0(Emd4, XltJ): if XltJ.startswith('/'): return XltJ return Hy7s.path.abspath(Hy7s.path.join(Emd4.apollo_root, XltJ))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RUFc(pmON: str) -> str:\n pass", "def RUFc(pmON):\n if pmON.startswith('//'):\n pmON = kZw_.path.abspath(pmON)\n else:\n pmON = Hy7s.path.realpath(pmON)\n pmON = pmON.replace('\\\\', '/')\n pmON = Hy7s.path.realpath(pmON)\n return pmON", "def RUFc(YKHO, pmON):\n return Hy...
[ "0.77301323", "0.75936407", "0.74692786", "0.72557855", "0.72251844", "0.70825744", "0.70761037", "0.70343393", "0.6972751", "0.68626493", "0.6804119", "0.6591446", "0.65749484", "0.6556271", "0.65054965", "0.64656866", "0.6438085", "0.63194704", "0.63104266", "0.6278452", "0...
0.8214451
0
Return the name of the process.
def W0tD(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UNCy(YKHO):\n return YKHO._args.t", "def UNCy(Ii1o):\n NRWD = Yn3K.Popen(['ps', '-p', Ii1o, '-o', 'comm='], stdout=Yn3K.PIPE, stderr=Yn3K.PIPE)\n yvT9, XObx = NRWD.communicate()\n return yvT9.strip().decode('utf-8')", "def mWFP(YKHO):\n if YKHO.pid == 0:\n return 'System Idle Process'...
[ "0.85471857", "0.79289544", "0.787106", "0.7468466", "0.74120295", "0.7236602", "0.7233819", "0.7141989", "0.70894533", "0.6992078", "0.6813217", "0.6813217", "0.6813217", "0.6813217", "0.6813217", "0.6813217", "0.6813217", "0.6813217", "0.6813217", "0.6813217", "0.6813217", ...
0.0
-1
Return a list of rentals performed by the provided client for the provided car client The client performing the rental. None means all clients cars The rented car. None means all cars
def q8Bh(YKHO, x0hE, _6NH): Aofo = [] for LcUJ in YKHO.__repository.getAll(): if x0hE != None and LcUJ.client != x0hE: continue if _6NH != None and LcUJ.car != _6NH: continue Aofo.append(LcUJ) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qlsk(YKHO):\n AXEx = YKHO.get_list()\n frKk = dict.fromkeys([LcUJ.client for LcUJ in AXEx], 0)\n for LcUJ in AXEx:\n frKk[LcUJ.client] += 1\n DumB = sorted(frKk.items(), key=lambda ZfUD: ZfUD[1], reverse=True)\n return [uEag(ZfUD[0], ZfUD[1]) for ZfUD in DumB]", "def Cqk3(QePW):\n zb...
[ "0.60510564", "0.57855946", "0.57267207", "0.5495068", "0.5456945", "0.5285654", "0.52423316", "0.52244574", "0.5095199", "0.5042458", "0.5001045", "0.48717806", "0.48693237", "0.48531705", "0.4853079", "0.4828688", "0.48279813", "0.48155066", "0.47878057", "0.47713622", "0.4...
0.7709649
0
Return the input number if its odd, or return input number + 1 if its even or zero.
def pDm2(FGW3): if FGW3 == 0: FGW3 += 1 if FGW3 % 2 == 0: FGW3 += -1 return FGW3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ePD4(FGW3):\n if FGW3 % 2 == 0:\n return 0\n else:\n return 1", "def PRjN(mLGw):\n if mLGw % 2 == 0:\n mLGw += 1\n return mLGw", "def bYQo(FGW3):\n if FGW3 % 2 == 0:\n return FGW3", "def cLIG(FGW3):\n if FGW3 % 2 == 0:\n return 'even'\n else:\n ...
[ "0.8168115", "0.7859249", "0.719919", "0.718165", "0.71592253", "0.7086521", "0.7042811", "0.7012443", "0.687709", "0.68506926", "0.68103355", "0.67186725", "0.66446716", "0.6642592", "0.66274685", "0.6626728", "0.6619069", "0.66058695", "0.6584184", "0.6577917", "0.65761554"...
0.7791604
2
The ID or Amazon Resource Name (ARN) of the target group.
def nQhL(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'target_group_identifier')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nQhL(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'target_group_identifier')", "def KMT1(YKHO, h85P):\n sZw4 = YKHO.get_target_group_info(h85P)\n return sZw4['TargetGroupArn']", "def vXKT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'target_group')", "def nQhL(YKHO) -> h8nf[qe4Y.I...
[ "0.8059303", "0.77209467", "0.76946956", "0.76142114", "0.7459761", "0.7424217", "0.7291563", "0.7291563", "0.7070664", "0.7054723", "0.7054723", "0.7054723", "0.7054723", "0.7054723", "0.7054723", "0.700518", "0.700518", "0.6932303", "0.6895912", "0.68954605", "0.689537", ...
0.77805084
1
The ID or Amazon Resource Name (ARN) of the target group.
def nQhL(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'target_group_identifier')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nQhL(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'target_group_identifier')", "def nQhL(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'target_group_identifier')", "def KMT1(YKHO, h85P):\n sZw4 = YKHO.get_target_group_info(h85P)\n return sZw4['TargetGroupArn']", "def vXKT(YKHO) -> q...
[ "0.8060474", "0.7782377", "0.77201146", "0.7695647", "0.74612945", "0.74235034", "0.72911525", "0.72911525", "0.7071454", "0.7055554", "0.7055554", "0.7055554", "0.7055554", "0.7055554", "0.7055554", "0.70069563", "0.70069563", "0.6934187", "0.6897746", "0.6897058", "0.689599...
0.76161706
4
The ID or Amazon Resource Name (ARN) of the target group.
def nQhL(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'target_group_identifier')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nQhL(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'target_group_identifier')", "def KMT1(YKHO, h85P):\n sZw4 = YKHO.get_target_group_info(h85P)\n return sZw4['TargetGroupArn']", "def vXKT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'target_group')", "def nQhL(YKHO) -> h8nf[qe4Y.In...
[ "0.7782377", "0.77201146", "0.7695647", "0.76161706", "0.74612945", "0.74235034", "0.72911525", "0.72911525", "0.7071454", "0.7055554", "0.7055554", "0.7055554", "0.7055554", "0.7055554", "0.7055554", "0.70069563", "0.70069563", "0.6934187", "0.6897746", "0.6897058", "0.68959...
0.8060474
0
Resolve all paths to a list of files.
def Md1_(ckRy): KrOO = tuple(GSBL.keys()) s2ni = [] for pmON in ckRy: if Hy7s.path.isdir(pmON): s2ni.extend((bTKY.path for bTKY in Hy7s.scandir(pmON) if bTKY.is_file() and bTKY.name.lower().endswith(KrOO))) elif Hy7s.path.isfile(pmON) and pmON.lower().endswith(KrOO): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FGIs(ckRy):\n Mzww = []\n for pmON in ckRy:\n if Hy7s.path.isdir(pmON):\n bGrB, bGrB, RRlC = Hy7s.walk(pmON).next()\n Mzww.extend((Hy7s.path.join(pmON, IznC) for IznC in RRlC))\n else:\n Mzww.append(pmON)\n return Mzww", "def fD02(*FCTK):\n ckRy = []...
[ "0.70843834", "0.7008949", "0.7005918", "0.6991757", "0.6980533", "0.6943847", "0.6908536", "0.6815965", "0.6810721", "0.67709655", "0.66659486", "0.66539854", "0.6626398", "0.6625859", "0.660965", "0.65911394", "0.6577185", "0.6509825", "0.6505772", "0.64861", "0.64778113", ...
0.7782248
0
Make sure email not in use.
def Bt7w(L03z, Jyyj): if mv1M.query.filter_by(email=L03z.email.data).first(): L03z.email.errors.append('Email already associated with account!') raise sUXu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NDUF(YKHO):\n pass", "def YBiq(YKHO):\n if mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']):\n raise H6V6.ValidationError(bGrB(u'This email address is already in use. Please supply a different email address.'))\n return YKHO.cleaned_data['email']", "def YBiq(YKHO):\n if mv1M...
[ "0.7547832", "0.69692755", "0.68943226", "0.68845636", "0.68845636", "0.6878333", "0.6797547", "0.6777223", "0.67052704", "0.66979927", "0.6694335", "0.66453594", "0.66256976", "0.66151065", "0.6599791", "0.6570279", "0.65497637", "0.65465266", "0.6540458", "0.65211236", "0.6...
0.0
-1
Make sure email is not in use unless it's the current user's email.
def Bt7w(L03z, Jyyj): CBIr = mv1M.query.filter_by(email=L03z.email.data).first() if CBIr and (not CBIr == Oa1e.user): L03z.email.errors = ['Email already associated with account!', *L03z.email.errors] raise sUXu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YBiq(YKHO):\n if mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']):\n raise H6V6.ValidationError(bGrB(u'This email address is already in use. Please supply a different email address.'))\n return YKHO.cleaned_data['email']", "def YBiq(YKHO):\n if mv1M.objects.filter(email__iexact=Y...
[ "0.7446851", "0.739905", "0.739905", "0.7380747", "0.73281556", "0.72398597", "0.72120744", "0.72011906", "0.7174148", "0.71672803", "0.7081384", "0.70392203", "0.7017105", "0.6994809", "0.69502664", "0.6879769", "0.6850791", "0.67699957", "0.67592144", "0.6754703", "0.668111...
0.66117746
24
Mocks the requests.get method in app.py with a given pun
def b7RX(YKHO): for Pcn2 in YKHO.success_test_pun: aEqx = Pcn2[wcOL] with TMAJ.patch('requests.get', tdSP): XQFH = P4t4.on_new_address(Pcn2) YKHO.assertEqual(aEqx, XQFH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykgQ(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n with h2IT.RequestsMock() as _THl:\n _THl.add(h2IT.GET, f'{YKHO.host}/{riNT}', status=200, json={'value': 'good!'})\n Mkmy = x0hE.get(riNT)", "def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n ...
[ "0.69669604", "0.67627823", "0.6592265", "0.65826535", "0.6497083", "0.64620715", "0.6438313", "0.6414112", "0.6376383", "0.636982", "0.63449466", "0.63231426", "0.63054174", "0.6286555", "0.61875427", "0.6182093", "0.6159612", "0.61394614", "0.60945237", "0.609397", "0.60508...
0.0
-1
Mocks the requests.get method in app.py
def LOnA(YKHO): for Pcn2 in YKHO.failure_test_params: aEqx = Pcn2[wcOL] with TMAJ.patch('requests.get', Uj6A): XQFH = P4t4.on_new_address(Pcn2) YKHO.assertNotEqual(aEqx, XQFH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ykgQ(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n riNT = 'some/url/'\n with h2IT.RequestsMock() as _THl:\n _THl.add(h2IT.GET, f'{YKHO.host}/{riNT}', status=200, json={'value': 'good!'})\n Mkmy = x0hE.get(riNT)", "def TwPl(YKHO):\n x0hE = wkOs(host=YKHO.host, username='')\n ...
[ "0.757244", "0.7426668", "0.7414589", "0.72550845", "0.7225032", "0.7213081", "0.70949316", "0.704562", "0.7016927", "0.6952909", "0.6937874", "0.6872953", "0.68185633", "0.6812734", "0.6795233", "0.6713535", "0.67129856", "0.671215", "0.6706005", "0.6678081", "0.66740376", ...
0.0
-1
Tests if Rectangle inherits Base.
def PFh0(YKHO): YKHO.assertTrue(issubclass(x7Ls, i_Aq))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TO8a(YKHO):\n YKHO.assertTrue(issubclass(type(YKHO.S0), x7Ls) and type(YKHO.S0) != x7Ls)", "def Sg7L(YKHO):\n _UKz.reset_objects()\n YKHO.assertEqual(issubclass(_UKz, x7Ls), True)", "def I7xG(YKHO):\n YKHO.assertTrue(issubclass(x7Ls, i_Aq))\n Mkmy = x7Ls(10, 2)\n YKHO.assertEqual(Mkmy.hei...
[ "0.7410984", "0.73879737", "0.71916723", "0.6733655", "0.64805657", "0.6343817", "0.61637074", "0.6104673", "0.59940827", "0.590253", "0.58446425", "0.5831769", "0.57768166", "0.5750307", "0.5746952", "0.574595", "0.57251126", "0.571214", "0.5711103", "0.56737524", "0.5669128...
0.86079776
0
Adds a word (and its metadata) related to a measurement to the list of all related words for that measurement
def Ivwh(NnTR, kbO9, Igos, d6pt, SQvy=None): A97Q = {} A97Q['relationForm'] = kbO9 A97Q['rawName'] = NnTR A97Q['tokenIndex'] = int(d6pt) A97Q['offsetStart'] = k0lF.lookup[int(d6pt)]['start'] A97Q['offsetEnd'] = k0lF.lookup[int(d6pt)]['end'] A97Q['connector'] = '' if SQvy is None else SQvy ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, GIN8: str) -> None:\n YKHO.words.add(GIN8)\n YKHO.added_words.add(GIN8)", "def JTTa(YKHO, V22M):\n for GIN8 in V22M:\n YKHO.add(GIN8)", "def H2v5(YKHO, GIN8: str) -> None:\n YKHO.d.add(GIN8)", "def JTTa(YKHO, V22M, BWXx):\n if V22M is None:\n return\n BWXx = str...
[ "0.6651249", "0.6582952", "0.64778966", "0.63896775", "0.62895304", "0.62871456", "0.62849236", "0.6282664", "0.62679726", "0.6182581", "0.6168457", "0.61679065", "0.61659604", "0.6078923", "0.60761344", "0.6069568", "0.60609025", "0.6058869", "0.6050961", "0.6043219", "0.603...
0.56861186
57
For related words found for a measurement (usually nouns), add any connected adjectives, compounds, or modifiers.
def xUps(NnTR): for Mkmy in NnTR: Mkmy['descriptors'] = [] for D70y in yvY1.edges(data=True): FGVR = d6KL(D70y, Mkmy['tokenIndex']) if FGVR and (k0lF.lookup[int(FGVR)]['pos'] == 'JJ' or D70y[2]['dep'] in ['amod', 'compound']): Mkmy['descriptors'].append({'toke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uFs_(eQSh, kUBT, nFp0):\n Igos = None\n IHwW = ['space_between', 'attached', 'hyphenated']\n Igos = Ov1C(kUBT['unit_idx'], kUBT['measurement_format'], nFp0)\n if Igos == None:\n Igos = Ov1C(kUBT['unit_idx'], ['uncertain'], nFp0)\n _ITm = Ov1C([kUBT['num_idx']], kUBT['measurement_format'],...
[ "0.59282726", "0.5896106", "0.57640356", "0.5736976", "0.55327153", "0.5507227", "0.5498549", "0.54563355", "0.5434374", "0.5351359", "0.5312978", "0.52993435", "0.5271659", "0.5256711", "0.5176169", "0.51729816", "0.51703644", "0.51655173", "0.51633793", "0.516039", "0.51557...
0.5840201
2
Compute the heuristic for a given state in the current problem.
def SxEG(YKHO, QTBn): if YKHO._shape_reward_mode == 'optimal': X3eO = YKHO.problems[YKHO._problem_idx] IRf8 = set(QTBn.literals) Sno3 = set(YKHO.action_space.all_ground_literals(QTBn, valid_only=False)) IRf8 |= Sno3 ahkh = '' try: Gcbu, ahkh = gbPf.mkstemp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8PV(QTBn, X3eO=None):\n n8rh = X3eO.goal\n return abs(QTBn[0] - n8rh[0]) + abs(QTBn[1] - n8rh[1])", "def y_oG(QTBn, X3eO):\n jvSB = X3eO.G.node[QTBn.state]\n lXgg = X3eO.G.node[X3eO.end_node]\n i4ry = (jvSB['x'], 0, 0)\n Txq8 = (jvSB['y'], 0, 0)\n cHzJ = (lXgg['x'], 0, 0)\n TLbF = (l...
[ "0.77781177", "0.76758313", "0.74438214", "0.7409058", "0.7408299", "0.7377791", "0.7353731", "0.7306439", "0.71683395", "0.7154942", "0.70938486", "0.6993468", "0.6966539", "0.6902104", "0.679804", "0.6768399", "0.6738102", "0.67237085", "0.67138356", "0.67086256", "0.669070...
0.77858466
0
Tests model object creation with Author model. Inserting data into the model and retrieving it.
def W00s(YKHO): pcLw = o763(first_name='Arthur', last_name='Kent', rating=ZjSO('4.1')) pcLw.save() ccPB = o763.objects.all().values('first_name', 'last_name') YKHO.assertEqual(ccPB[0]['first_name'], 'Arthur') YKHO.assertEqual(ccPB[0]['last_name'], 'Kent') o763.objects.all().delete()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AVOK(c9ua='testfirstname', zp3f='testlastname'):\n return o763.objects.create(first_name=c9ua, last_name=zp3f)", "def GEf2(YKHO):\n pB3N = {'first_name': 'testname1', 'last_name': 'testname2', 'nickname': 'testnick1'}\n Ylbp = YKHO.client.post(gxEw('authors'), pB3N)\n YKHO.assertEqual(Ylbp.status...
[ "0.73595816", "0.73528016", "0.6917232", "0.68811285", "0.6825536", "0.66415656", "0.6564151", "0.65254474", "0.64944285", "0.64746404", "0.64741796", "0.64724386", "0.64366996", "0.6363541", "0.63500893", "0.63140833", "0.6293489", "0.62684065", "0.6254518", "0.6235322", "0....
0.66609263
5
Return current date and time as a string.
def UHhE(): ppPa = qcWV.now() Vip5 = ppPa.strftime('%b-%d-%Y (%H:%M:%S)') return Vip5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f1rh():\n return B72W().strftime('%Y%m%d-%H%M%S')", "def JUFO() -> str:\n return hLAQ(RN2L())", "def EUP2():\n wzkt = JRYC.datetime.now()\n LLuI = wzkt.strftime('%d/%m %H:%M')\n return LLuI", "def ApjM():\n return ITS7.strftime('%Y-%m-%d-%H-%M-%S', ITS7.localtime())", "def EUP2():\n ...
[ "0.86410594", "0.83569145", "0.82452714", "0.81948674", "0.81886935", "0.8177085", "0.8142239", "0.8139969", "0.80767894", "0.8070444", "0.8038072", "0.791959", "0.7906521", "0.7894949", "0.78761137", "0.7829549", "0.78283703", "0.78224957", "0.78067684", "0.77908033", "0.778...
0.7783489
21
Check if a link has an invalid scheme. Also transform the ``&`` character in ``&`` character.
def LBdD(YKHO, QZnA, CedP=True): nPrm = QZnA.split(':', 1) ht58 = nPrm[0] if ht58 in YKHO.scheme_blacklist: return '' if CedP: return QZnA.replace('&', '&amp;') return QZnA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LSwg(YKHO, QZnA):\n HmwI = ['wikipedia:', 'w:', 'wikitionary:', 'wikt:', 'wikinews:', 'n:', 'wikibooks:', 'b:', 'wikiquote:', 'q:', 'wikisource:', 's:', 'wikispecies:', 'species:', 'wikiversity', 'v:', 'wikivoyage:', 'voy:', 'wikimedia:', 'foundation:', 'wmf:', 'commonds:', 'c:', 'chapter:', 'metawikipedia:...
[ "0.65676564", "0.65118766", "0.6282904", "0.62509656", "0.61940354", "0.61904234", "0.61856216", "0.615911", "0.61529464", "0.6069519", "0.6041988", "0.60321385", "0.59708303", "0.5959572", "0.5953686", "0.5906121", "0.58944297", "0.585033", "0.58366746", "0.5836454", "0.5818...
0.64214295
2
Verify that we raise an appropriate exception if the operation is invoked with an unknown vm name.
def _huh(YKHO): YKHO.failUnlessRaises(GWcY.vim.fault.NotFound, X4qQ().DoIt, YKHO.host, 'unknownVm')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sgsr(YKHO, mWFP):\n raise hgoV(\"Operation '%s' not found\" % mWFP)", "def aAkq(YKHO):\n YKHO.command.output = 'foo.vmx'\n with YKHO.assertRaises(utXx):\n YKHO.command.package = YKHO.input_ovf", "def PoMf(YKHO):\n YKHO.assertRaises(AJ5d.InstanceTypeNotFound, VuRd.get_instance_type_by_nam...
[ "0.653822", "0.6389487", "0.608852", "0.6059318", "0.60320866", "0.5987542", "0.59446174", "0.5939153", "0.59103185", "0.5847701", "0.5841957", "0.58180857", "0.58157957", "0.5758776", "0.5726958", "0.57252586", "0.5693958", "0.56661975", "0.5659771", "0.56591505", "0.5638999...
0.7320924
0
Yield successive nsized chunks from lst.
def eHxA(yv6U, exwG): for YRbF in range(0, len(yv6U), exwG): yield yv6U[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]", "def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield...
[ "0.83071756", "0.81939614", "0.81910837", "0.81910837", "0.8190213", "0.81267184", "0.81218547", "0.81218547", "0.80773693", "0.80526286", "0.80526286", "0.80526286", "0.80526286", "0.80526286", "0.80042696", "0.7871678", "0.7845623", "0.7828392", "0.7827006", "0.78138447", "...
0.80533457
19
Returns a stream consisting of the results of applying the given function to the items of this stream.
def map(YKHO, YAg3): def M_t2(oHE7): return YAg3(next(oHE7)) return YKHO.__class__(YKHO, M_t2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XkiF(YKHO, eHNT):\n return rvoP((LVAh for WKvO in YKHO for LVAh in eHNT(WKvO)))", "def filter(YKHO, m2Zb):\n return sZTx(filter(m2Zb, YKHO.data))", "def map(YKHO, m2Zb):\n return sZTx(map(m2Zb, YKHO.data))", "def Pusg(YKHO, m2Zb):\n return Pusg(m2Zb, YKHO.data)", "def map(OxJJ, m2Zb):\n ...
[ "0.68622994", "0.6546545", "0.65409714", "0.6433659", "0.6394086", "0.6208269", "0.61741555", "0.616061", "0.60999846", "0.60531145", "0.60272384", "0.59801644", "0.5966168", "0.5962581", "0.58892", "0.588588", "0.58688843", "0.584554", "0.5843813", "0.5799488", "0.578355", ...
0.0
-1
Returns a stream consisting of the distinct items of this stream.
def UYlD(YKHO): _p7a = set() def KyFa(oHE7): while True: ZfUD = next(oHE7) if ZfUD in _p7a: continue _p7a.add(ZfUD) return ZfUD return YKHO.__class__(YKHO, KyFa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UYlD(YKHO):\n return DtFU(YKHO)", "def UYlD(YKHO):\n umWR = jth9(YKHO)\n umWR._distinct = True\n return umWR", "def kcwm(YKHO):\n return YKHO.element_wise(lambda Xtuq: list(set(Xtuq)))", "def UYlD(YKHO):\n YKHO.distinct_ = True\n return YKHO", "def UYlD(WKvO):\n return list(set(...
[ "0.6983475", "0.6915483", "0.6780482", "0.64765984", "0.63660026", "0.6359798", "0.6213019", "0.5897391", "0.5876457", "0.58733404", "0.58576953", "0.5810534", "0.57947123", "0.5721542", "0.57094973", "0.56463784", "0.56267685", "0.5607414", "0.5602389", "0.5584928", "0.55782...
0.76015234
0
Returns a stream consisting of items of this stream, truncated to be no longer than max_size in length.
def qoqK(YKHO, E0wO): return YKHO.__class__(Hs6x.islice(YKHO, E0wO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p8Qn(YKHO):\n WH_7 = len(YKHO) - YKHO._maxLen\n if WH_7 > 0:\n YKHO[:WH_7] = []", "def YVOd(wOb_: Union[BinaryIO, Generator, List], qoqK: int) -> jd6F:\n for BWXx in wOb_:\n yield BWXx\n if qoqK == 1:\n return\n else:\n qoqK = qoqK - 1", "def G34s(...
[ "0.61745995", "0.58200085", "0.57398564", "0.5702165", "0.5623146", "0.56076515", "0.55688864", "0.55473465", "0.55255014", "0.5505975", "0.5426797", "0.54205805", "0.54120886", "0.5398848", "0.5391275", "0.53815204", "0.53634936", "0.53267366", "0.53238416", "0.5316794", "0....
0.7333502
0
Returns a stream consisting of remaining items of this stream after discarding first n items.
def EdbX(YKHO, exwG): return YKHO.__class__(Hs6x.islice(YKHO, exwG, None))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ReNU(OxJJ, exwG, uOgj=uOgj):\n return uOgj(OxJJ, exwG, None)", "def ReNU(exwG, Q6uT):\n return Hs6x.islice(Q6uT, exwG, None)", "def _iMd(YKHO, exwG):\n return x1iM(uehb(YKHO, exwG))", "def ReNU(OxJJ, exwG):\n ewCu = 0\n for U6D_ in OxJJ:\n if ewCu < exwG:\n ewCu += 1\n ...
[ "0.75482744", "0.7436712", "0.70949703", "0.6980845", "0.69610167", "0.68319", "0.6816474", "0.6816474", "0.6804587", "0.6804587", "0.66202843", "0.651614", "0.64598036", "0.64442784", "0.64442784", "0.6440829", "0.6393749", "0.63775164", "0.6363687", "0.6357983", "0.6342082"...
0.71049416
2
Returns True if no items of this stream match the given predicate, otherwise False.
def Ywqg(YKHO, lgNN): return not YKHO.any(lgNN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def any(YKHO, lgNN):\n return any((lgNN(ZfUD) for ZfUD in YKHO))", "def all(YKHO, lgNN):\n return all((lgNN(ZfUD) for ZfUD in YKHO))", "def KOdv(Q6uT, nvEb=None):\n for LihS in p1Gi(nvEb, Q6uT):\n return False\n return True", "def all(Q6uT, nvEb=None):\n for LihS in PDoM.ifilterfalse(nv...
[ "0.66968435", "0.6578743", "0.6485255", "0.6245035", "0.62410504", "0.61962926", "0.6189238", "0.6089569", "0.6053107", "0.6053107", "0.5953874", "0.58961457", "0.58409333", "0.583326", "0.5788164", "0.5788164", "0.5745407", "0.5716643", "0.570402", "0.567105", "0.5656919", ...
0.7476168
0
Returns the smallest item of this stream.
def min(YKHO, H5ew=lambda bGrB: bGrB): return min(YKHO, key=H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aScC(YKHO):\n return YKHO.get_first()", "def min(YKHO):\n return YKHO.get_first()", "def CTDF(YKHO):\n if YKHO.is_empty():\n raise rWmY('Priority queue is empty')\n wuLw = YKHO._data.first()\n ZAda = YKHO._data.after(wuLw)\n while ZAda is not None:\n if ZAda.element() < wuLw...
[ "0.8079357", "0.7964827", "0.786516", "0.78332955", "0.76497614", "0.75355464", "0.75355464", "0.7523685", "0.74445915", "0.73460555", "0.7334136", "0.7317787", "0.7317787", "0.7303266", "0.7297569", "0.72822535", "0.7268715", "0.7267241", "0.72492516", "0.72000057", "0.71911...
0.7408102
9
Returns the largest item of this stream.
def max(YKHO, H5ew=lambda bGrB: bGrB): return max(YKHO, key=H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max(YKHO):\n return YKHO.get_first()", "def ipPO(YKHO):\n Hqoa = YKHO.items[1]\n if Hqoa is None:\n return None\n for YRbF in range(1, len(YKHO.items)):\n if YKHO.items[YRbF] is not None:\n if YKHO.items[YRbF] > Hqoa:\n Hqoa = YKHO.items[YRbF]\n return H...
[ "0.7670412", "0.7572868", "0.7463609", "0.7441727", "0.7412763", "0.7282507", "0.7238279", "0.7205189", "0.7166872", "0.7162609", "0.7157219", "0.7157219", "0.71475804", "0.7141774", "0.71350074", "0.7082565", "0.708053", "0.70803034", "0.702977", "0.6994883", "0.6988381", ...
0.711443
15
Returns the number of items of this stream.
def UHFx(YKHO): return sum((1 for bGrB in YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GADp(YKHO):\n return len(YKHO.items)", "def OGwl(YKHO):\n return YKHO.num_items", "def ogsx(YKHO):\n return len(YKHO.items)", "def UHFx(YKHO):\n return len(YKHO.read_ints())", "def ogsx(YKHO):\n return len(YKHO.items)", "def ogsx(YKHO):\n return len(YKHO.items)", "def zNig(YKHO) -...
[ "0.8301211", "0.81344986", "0.80515355", "0.79899615", "0.79588777", "0.79588777", "0.79573154", "0.7908144", "0.78880036", "0.78873676", "0.7877877", "0.78292423", "0.7749551", "0.77141726", "0.7712948", "0.7682725", "0.7682725", "0.7682725", "0.7651507", "0.7649355", "0.764...
0.70951164
92
Toggle user admin status endpoint To toggle, access token and admin permissions are required
def m8z6(YKHO, uJjO): CBIr = mv1M.query.get(uJjO) if CBIr is None: return eTsH(422, message='User does not exist') " check if user's the only admin if it's an admin " PDtd = mv1M.query.filter_by(admin=True).all() if CBIr.admin and len(PDtd) == 1: return eTsH(422, message='User is the...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MgXm(DCgT):\n\n def s0qS(YKHO, *qIxc, **B2fa):\n Jpbe = YKHO.auth\n if not Jpbe.get_user_by_session():\n YKHO.redirect('/auth/login', abort=True)\n CBIr = Jpbe.get_user_by_session()\n g345 = mv1M.get_by_id(CBIr['user_id'])\n if g345 and g345.phb_user_admin_statu...
[ "0.6454747", "0.63205993", "0.62615484", "0.62442005", "0.62236315", "0.6223049", "0.6207268", "0.6181463", "0.6181463", "0.61800843", "0.61779815", "0.6082381", "0.6079935", "0.60787714", "0.60214365", "0.602113", "0.60124683", "0.6005901", "0.5990312", "0.5989222", "0.59612...
0.0
-1
Get the current security object of the database. (mixed)
def z4L4(YKHO): return YKHO.client.get(YKHO.name + '/_security').getBodyData()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jXYd(YKHO):\n return YKHO.cloudant_database.get_security_document()", "def Mi51(YKHO):\n return YKHO._security", "def Jaun(YKHO):\n return YKHO._security_class", "def jXYd(YKHO, OG6M: str) -> LvNm:\n return YKHO.session.get_security(YKHO.account_id, OG6M)", "def Dvct(YKHO):\n return YKHO...
[ "0.7439619", "0.71845263", "0.70937705", "0.6900253", "0.61629117", "0.60930294", "0.6086127", "0.6086127", "0.6058834", "0.6051057", "0.6030994", "0.59401894", "0.59401894", "0.59401894", "0.5932471", "0.5864239", "0.5863935", "0.5863935", "0.5863935", "0.5863935", "0.586393...
0.63126576
4
Set the current "revs_limit" (revision limit) setting. (int) limit (mixed)
def aCyh(YKHO, qoqK): return YKHO.client.put(YKHO.name + '/_revs_limit', None, qoqK).getBodyData()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h6ei(YKHO, qoqK):\n YKHO.limit = qoqK\n YKHO._prune()", "def yfwO(YKHO):\n return YKHO.client.get(YKHO.name + '/_revs_limit').getBodyData()", "def nOFO(YKHO, *qIxc):\n return dndU.BRepAlgo_NormalProjection_SetLimit(YKHO, *qIxc)", "def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK", "def qoqK(YK...
[ "0.6917625", "0.6857605", "0.66053945", "0.6602822", "0.6602822", "0.6602822", "0.6594543", "0.6535649", "0.65266085", "0.64890593", "0.6478399", "0.63712174", "0.6257707", "0.60748005", "0.6017279", "0.6012214", "0.5952001", "0.5936896", "0.59314567", "0.59136355", "0.590478...
0.87726605
0
Update Stack's currency with a given value.
def abFx(YKHO, VIXL: str, BWXx: str) -> None: if VIXL == 'USDT': YKHO._USDT = float(BWXx) elif VIXL == 'ETH': YKHO._ETH = float(BWXx) elif VIXL == 'BTC': YKHO._BTC = float(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def krd7(YKHO, BWXx):\n BWXx = YKHO.price", "def pMeQ(BWXx, VIXL='USD'):\n o61b = dRee[VIXL]['symbol']\n return '%s%s' % (o61b, round(BWXx) / 100)", "async def set_currency(YKHO, VIXL: str):\n qQXR = {**YKHO.get_data(), 'currencyId': VIXL}\n return await YKHO.easee.put(f'/api/sites/{YKHO.id}', j...
[ "0.60010123", "0.5893632", "0.57380164", "0.57254374", "0.57075036", "0.56984043", "0.56984043", "0.56984043", "0.56984043", "0.56679785", "0.56300604", "0.54938513", "0.5454203", "0.5446152", "0.543147", "0.5414669", "0.5411957", "0.5407819", "0.5390974", "0.53639185", "0.53...
0.7322223
0
Returns a value in project settings file
def IaVq(YKHO, H5ew, WmM4=None, pTc2=False): if pTc2: return (YKHO.get_local(H5ew, WmM4, as_tuple=False), False) else: KJdK = CREs.active_window().project_data() if KJdK and 'javatar' in KJdK and (H5ew in KJdK['javatar']): return KJdK['javatar'][H5ew] return WmM4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCuF():\n return v083()[1]", "def E0_f(H5ew, HyJ9=None):\n try:\n xRYx()\n except RuntimeError:\n CREs.set_timeout(lambda: xRYx(), 0)\n if o4sw.CONFIG_PROJECT:\n if H5ew in o4sw.CONFIG_PROJECT:\n return o4sw.CONFIG_PROJECT[H5ew]\n return HyJ9", "def U5a0(YKHO,...
[ "0.7651562", "0.73200214", "0.7067771", "0.69836646", "0.68459237", "0.67755395", "0.66721684", "0.6671477", "0.65649176", "0.6564709", "0.6528995", "0.6528318", "0.6519946", "0.6495842", "0.6494672", "0.6466321", "0.6431724", "0.6427801", "0.63764167", "0.63681996", "0.63494...
0.0
-1
Returns the output tensor at the given index.
def QEIX(d6pt): T8hE = mh5P.get_output_details()[d6pt] vhpA = oyIN.squeeze(mh5P.get_tensor(T8hE['index'])) return vhpA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QEIX(YKHO, d6pt):\n T8hE = YKHO.model.get_output_details()[d6pt]\n vhpA = oyIN.squeeze(YKHO.model.get_tensor(T8hE['index']))\n return vhpA", "def QEIX(YKHO, d6pt):\n T8hE = YKHO.interpreter.get_output_details()[d6pt]\n vhpA = oyIN.squeeze(YKHO.interpreter.get_tensor(T8hE['index']))\n return...
[ "0.8773681", "0.87153566", "0.86581725", "0.8473132", "0.8446493", "0.8446493", "0.8446493", "0.75534517", "0.7171569", "0.68134344", "0.6715133", "0.6542007", "0.65397805", "0.65058136", "0.6436549", "0.6430624", "0.63161963", "0.6215072", "0.6104049", "0.6095873", "0.608248...
0.88110566
0
Draw boxes from results structure onto image
def edPp(LNo8, dixj, AjsF=0.2, asK2=10): dixj = sorted(dixj, key=lambda WKvO: WKvO['score']) dixj = dixj[0:asK2] for Mkmy in dixj: if Mkmy['score'] < AjsF: continue do6P(LNo8, Mkmy['bounding_box'], Crrw[Mkmy['class_id']], Mkmy['score'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edPp(YKHO, Xn71, oUSw):\n for cviu in oUSw:\n vC9B = [int(WKvO) for WKvO in cviu['coords']]\n vC9B = YKHO.scalebox(vC9B)\n _G4g = YKHO.classes_to_icons[cviu['label']]\n _ePx(Xn71, _G4g, vC9B[0], vC9B[1] - _G4g.shape[0] - 5)\n XC5k.rectangle(Xn71, (vC9B[0], vC9B[1]), (vC9B[...
[ "0.72445345", "0.7153246", "0.7029988", "0.7007932", "0.69935673", "0.69907695", "0.6941484", "0.6920315", "0.6867858", "0.6833942", "0.6833801", "0.6787415", "0.6783118", "0.67714643", "0.67637265", "0.66858953", "0.6676106", "0.6671345", "0.6658536", "0.66494524", "0.664904...
0.7102486
2