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
Return if this registration is equal to the other
def xa14(YKHO, Elif): return YKHO.pair == Elif.pair and YKHO.actsAs == Elif.actsAs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if not isinstance(Elif, J9bP):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def xa14(YKHO, Elif):\n if not isinstance(Elif, X_fm):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def xa14(YKHO, Elif):\n if not isinstance(Elif, gbPk):\n...
[ "0.7757781", "0.7540411", "0.74960876", "0.747177", "0.73806", "0.7374574", "0.7341356", "0.7336385", "0.7255695", "0.7252048", "0.72474265", "0.72006524", "0.71739715", "0.71583265", "0.7142593", "0.7123601", "0.7118556", "0.71086955", "0.7102557", "0.7102557", "0.7102557", ...
0.0
-1
returns True if the object is an instance of a class that inherited (directly or indirectly) from the specified class.
def b_gB(YEnM, J9Xy): if type(YEnM) == J9Xy: return False else: return isinstance(YEnM, J9Xy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b_gB(YEnM, J9Xy):\n if type(YEnM) == J9Xy:\n return False\n elif issubclass(type(YEnM), J9Xy):\n return True\n else:\n return False", "def b_gB(YEnM, J9Xy):\n if isinstance(YEnM, J9Xy) and type(YEnM) is J9Xy:\n return False\n else:\n return True", "def b_gB...
[ "0.82960814", "0.827476", "0.8261541", "0.82166165", "0.8193129", "0.81882364", "0.8151814", "0.8151814", "0.81490135", "0.8117059", "0.8093528", "0.8079098", "0.80737716", "0.8072463", "0.804691", "0.8045542", "0.8039811", "0.8016197", "0.8014592", "0.78772235", "0.78073907"...
0.816199
6
Returns the scene description, possibly empty, as a unicode string.
def KUG7(YKHO): return YKHO.description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YTwW():\n return ''", "def JBZA(YKHO):\n Z07Q = YKHO.lazyload_data()\n return Z07Q['objects'][0]['description']", "def JBZA(YKHO) -> str:\n return YKHO._cubes[0].description", "def JBZA(YKHO) -> str:\n if 'description' in YKHO._dimension_transforms_dict:\n JBZA = YKHO._dimension_tra...
[ "0.6853931", "0.6794288", "0.6728459", "0.6515222", "0.6468434", "0.64668274", "0.64668274", "0.6438376", "0.6426182", "0.6426182", "0.6410932", "0.6410932", "0.6404553", "0.6404553", "0.6404553", "0.6404553", "0.6404553", "0.64009935", "0.6379738", "0.6375406", "0.63637006",...
0.0
-1
Returns the default render resolution width used in the scene, as an integer.
def bmXJ(YKHO): return YKHO.renderWidth
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVTK(YKHO):\n if YKHO._width is None:\n return 1000\n return YKHO._width", "def V8C_():\n TVTK = float(fvO8) / 9 - 5\n return TVTK", "def TVTK(YKHO) -> float:\n return YKHO._width_unit * YKHO._resolution", "def TVTK(YKHO):\n return int(YKHO._texture.width * YKHO._scale * YKHO._sc...
[ "0.7063068", "0.7037737", "0.69449496", "0.688997", "0.67945546", "0.6785601", "0.6768033", "0.67629457", "0.6757529", "0.67397946", "0.6703378", "0.6702984", "0.6681416", "0.6650876", "0.6644389", "0.6623912", "0.6621177", "0.6614088", "0.6614088", "0.6614088", "0.6614088", ...
0.67996067
4
Returns the render layer description, possibly empty, as a unicode string.
def KUG7(YKHO): return YKHO.description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t5do(YKHO):\n SWyb = YKHO._get_layer()\n return SWyb.abstract", "def nhdH(eLOP):\n Rm1M = ''\n if (Y3Bl := eLOP.get('description')):\n Rm1M += Y3Bl\n return Rm1M", "def M4We(Emd4):\n return Emd4.desc if Emd4.desc is not None else \"Apply Layer '{}'\".format(Emd4.name)", "def t5do...
[ "0.746763", "0.71069103", "0.69671214", "0.68839467", "0.67486465", "0.67146283", "0.6671549", "0.6671549", "0.66602594", "0.66445494", "0.66445494", "0.66445494", "0.66445494", "0.66445494", "0.6593706", "0.65559745", "0.6550856", "0.65229243", "0.6519283", "0.6506163", "0.6...
0.0
-1
Returns the render resolution width used by this layer, as an integer.
def bmXJ(YKHO): return YKHO.renderWidth
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVTK(YKHO) -> float:\n return YKHO._width_unit * YKHO._resolution", "def TVTK(YKHO):\n return YKHO._surface.get_width()", "def TVTK(YKHO):\n return int(YKHO._texture.width * YKHO._scale * YKHO._scale_x)", "def TVTK(YKHO):\n if YKHO._subpixel:\n return YKHO._texture.width * abs(YKHO._sc...
[ "0.8187054", "0.79802376", "0.7933034", "0.79199266", "0.78172636", "0.78013045", "0.7770479", "0.77450913", "0.7737136", "0.77261853", "0.7685654", "0.76698244", "0.7660634", "0.7654256", "0.7654256", "0.7654256", "0.7654256", "0.7654256", "0.7654256", "0.76519626", "0.76519...
0.7849415
5
Return a list of render passes (RenderPass instances) in this render layer which are contributing to a render from a specific camera.
def Jm0m(YKHO): return YKHO.renderPasses
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQZP(YKHO):\n if YKHO.__camera_pass is None:\n YKHO._init_passes()\n return YKHO.__camera_pass", "def XD_L(YKHO):\n return YKHO.renderCameras", "def eKXB(YKHO):\n return YKHO.renderLayers", "def bz_h(YKHO):\n YKHO._matchBuffer = YKHO.renderPasses.values()\n YKHO._sortedNodes = []...
[ "0.61956596", "0.57675964", "0.57267964", "0.57107085", "0.5707173", "0.5537238", "0.54943156", "0.5423614", "0.53882456", "0.53716266", "0.53399163", "0.5307972", "0.5297534", "0.525318", "0.52312875", "0.5215143", "0.518936", "0.51797926", "0.5175624", "0.51695156", "0.5159...
0.583436
1
Returns the render resolution width used for this pass, as an integer.
def bmXJ(YKHO): return YKHO.renderWidth
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TVTK(YKHO) -> float:\n return YKHO._width_unit * YKHO._resolution", "def TVTK(YKHO):\n if YKHO._width is None:\n return 1000\n return YKHO._width", "def TVTK(YKHO):\n return int(YKHO._texture.width * YKHO._scale * YKHO._scale_x)", "def V8C_(YKHO) -> int:\n return YKHO._width", "de...
[ "0.7992847", "0.7480053", "0.74711317", "0.7465345", "0.7456236", "0.74436444", "0.74224204", "0.74138165", "0.73865265", "0.73844826", "0.73724914", "0.73625726", "0.73625726", "0.73541474", "0.7346425", "0.7340235", "0.7339027", "0.7324922", "0.731412", "0.7282802", "0.7270...
0.7458357
6
Generate hash from password.
def qzFd(jTXt): jTXt = jKi7.b(jTXt) return HBct.sha256(jTXt).hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HV_B(jTXt):\n MKlR = hqsM()\n MKlR.update(jTXt.encode())\n qzFd = MKlR.hexdigest()\n return qzFd", "def vT87(jTXt):\n return hqsM(jTXt.encode('utf-8')).hexdigest()", "def EcAW(Emd4, jTXt):\n J87D = HBct.md5()\n J87D.update(pzdD + jTXt + brQR)\n return MRxC.hexlify(J87D.digest())", ...
[ "0.85724723", "0.83616346", "0.82416475", "0.8234866", "0.82207483", "0.81473416", "0.81356573", "0.81282747", "0.811638", "0.8108529", "0.81010497", "0.8092038", "0.8092038", "0.8086784", "0.8075836", "0.8074903", "0.8018654", "0.80006963", "0.797068", "0.7937514", "0.792660...
0.77234524
57
Construct new API instance.
def FIMM(YKHO, NtEF=None, rSTc=None): if NtEF and rSTc: YKHO.auth = fMuH(NtEF, rSTc) else: YKHO.auth = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO) -> None:\n YKHO.api = fyIx()", "def eLpg(GPtr, nNXP):\n return RMSS.get(nNXP)(GPtr)", "def FIMM(YKHO, nNXP: OpVersion) -> None:\n YKHO.api = nNXP", "def E14P(YKHO, **B2fa):\n from .. import Devices, Instances, Users, Vulnerabilities\n YKHO.api_devices: Devices = Devices(auth=YKH...
[ "0.7896413", "0.76308113", "0.74378765", "0.74089116", "0.72659224", "0.72105414", "0.72105414", "0.72105414", "0.71021694", "0.71021694", "0.70644486", "0.70613146", "0.70138294", "0.7010953", "0.700216", "0.700216", "0.700216", "0.700216", "0.69981116", "0.6970047", "0.6956...
0.0
-1
Returns a list of the files and folders in a given folder. The fullPath option determines whether it returns the full paths or just th efile names, and the fileExtension option restricts the result to files with a specific extension.
def oWiH(xtX7, ypig=False, Fg5l=None): X2HH = Hy7s.listdir(xtX7) if ypig == True: kB81 = Hy7s.path.abspath(xtX7) BO3C = [] for AesY in X2HH: Vhvr = Hy7s.path.join(kB81, AesY) BO3C.append(Vhvr) X2HH = BO3C if Fg5l != None: zdB2 = [] HYOe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oEq_(xtX7):\n return [Hy7s.path.join(TifC, eHNT) for TifC, CCrh, iumf in Hy7s.walk(xtX7) for eHNT in iumf]", "def iAqQ(xtX7, Fst3='.sdf'):\n MVVZ = []\n for tk5Y, AQSv, RRlC in Hy7s.walk(xtX7):\n for dir in AQSv:\n pGQh = Hy7s.path.join(tk5Y, dir)\n for Ux0P in RRlC:\n ...
[ "0.6935469", "0.67556536", "0.66645706", "0.66509", "0.6635634", "0.6631459", "0.661879", "0.65790546", "0.65643907", "0.6511563", "0.65097076", "0.6499481", "0.64928055", "0.64450675", "0.6439972", "0.6428078", "0.6392071", "0.63393676", "0.6317309", "0.63172275", "0.6315313...
0.80245405
0
Check if the request was denied by the server. And raise an exception if it was.
def pQcO(J_Es): from lxml import etree if isinstance(J_Es, Qhn2): if J_Es.count_bytes > 1000000: return J_Es = J_Es.contents if isinstance(J_Es, str): J_Es = etree.HTML(J_Es) aK5O = False aK5O = aK5O or ARDX(J_Es) if aK5O: raise Exception('The request ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def always_deny(QePW, BoQy):\n raise jA2G.HTTPForbidden()", "def rwUd(YKHO, QePW):\n if not QePW.successful_authenticator:\n raise Bx6I.NotAuthenticated()\n raise Bx6I.PermissionDenied()", "def OyLJ(YKHO):\n YKHO.ruleset.deny('192.168.0.1')\n geh0 = YKHO.client.get('/', environ_base...
[ "0.76333266", "0.73777926", "0.7171424", "0.7155755", "0.7131381", "0.70447063", "0.7019828", "0.6985883", "0.69760936", "0.69371784", "0.6929518", "0.6898397", "0.6880573", "0.68573123", "0.68573123", "0.6790171", "0.6755322", "0.6752626", "0.6741384", "0.67388475", "0.67350...
0.0
-1
Fail with a bad file path
def U13w(Df1i): eZ_W = 'flat.fits' with trZe.raises(FileNotFoundError): a1KP.from_cmdline(['jwst.stpipe.tests.steps.StepWithModel', eZ_W])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EXwq(YKHO):\n with trZe.raises(RuntimeError):\n z6ty._load_input_file('/path/does/not/exist')", "def EXwq(YKHO):\n with trZe.raises(RuntimeError):\n V66C._load_input_file('/path/does/not/exist')", "def KWJW(YKHO):\n YKHO.assertRaises(SystemExit, m3PB, [Hy7s.path.dirname(xAKo) + '/tes...
[ "0.82414454", "0.80951065", "0.78897715", "0.78300035", "0.7789672", "0.7708023", "0.76351947", "0.75958395", "0.75658476", "0.75389004", "0.75239813", "0.7519716", "0.7517994", "0.7496524", "0.7444425", "0.7414801", "0.73932916", "0.73706394", "0.73460406", "0.733504", "0.73...
0.0
-1
Given a set of n distinct numbers, returns its power set.
def R0Xi(input): Aofo = [] fS_f(0, [], input, Aofo) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0Xi(exwG):\n KCHu = range(1, exwG + 1)\n return eNCK.from_iterable((E6VQ(KCHu, Mkmy) for Mkmy in range(1, len(KCHu) + 1)))", "def R0Xi(WRKq):\n KCHu = list(WRKq)\n return eNCK.from_iterable((E6VQ(KCHu, Mkmy) for Mkmy in range(len(KCHu) + 1)))", "def R0Xi(aevO):\n exwG = set(aevO)\n cB3J ...
[ "0.8596635", "0.7601112", "0.7509541", "0.75005054", "0.7476558", "0.7476558", "0.7476558", "0.7476558", "0.7476558", "0.7476558", "0.7476558", "0.7476558", "0.7476558", "0.7440225", "0.73716295", "0.7358213", "0.7309144", "0.72835225", "0.7268155", "0.72630817", "0.7248681",...
0.69135344
47
Upsamples the given inputs.
def FNi2(Zxma, I07O, _0fC, NKcE='conv2d_transpose'): with ZylS.variable_scope('upconv'): g4Fr = ZylS.shape(Zxma) H2v2 = g4Fr[1] TVTK = g4Fr[2] R5m6 = oyIN.array([[0, 0], [1, 1], [1, 1], [0, 0]]) if NKcE == 'nn_upsample_conv': Zxma = ZylS.image.resize_nearest_neigh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sZAs(g4y1, NArs, mWFP='upsample'):\n pass", "def ZQBP(WKvO):\n return vuvg.interpolate(WKvO, scale_factor=2, mode='nearest')", "def T_FN(YKHO, g4y1):\n if YKHO.input_transform == 'resize_concat':\n g4y1 = [g4y1[YRbF] for YRbF in YKHO.in_index]\n PO3T = [vuvg.interpolate(WKvO, size=Cb...
[ "0.7121787", "0.6349433", "0.6315803", "0.6304235", "0.62832355", "0.6276257", "0.6231676", "0.62130535", "0.6145989", "0.6145603", "0.6143433", "0.61379933", "0.6087493", "0.60714173", "0.60714173", "0.6024819", "0.6007087", "0.5992799", "0.59881467", "0.5987702", "0.5975833...
0.0
-1
Create the projection matrix from the current viewing position. elev stores the elevation angle in the z plane azim stores the azimuth angle in the x,y plane dist is the distance of the eye viewing point from the object point.
def FG3B(YKHO): qo1z, PiTO = (oyIN.pi * YKHO.elev / 180, oyIN.pi * YKHO.azim / 180) BQGg, bYzl = YKHO.get_xlim3d() h3cg, Z3uP = YKHO.get_ylim3d() Viww, zXLc = YKHO.get_zlim3d() hKI_ = qjsa.world_transformation(BQGg, bYzl, h3cg, Z3uP, Viww, zXLc) A3Vt = oyIN.array([0.5, 0.5, 0.5]) fsgT = A3Vt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YhPc(YKHO):\n BxRI = oyIN.tan(YKHO.fov_deg / 2.0 / 180.0 * oyIN.pi)\n OsfI = YKHO.near_plane * BxRI\n if YKHO.vport_wd_px < YKHO.vport_ht_px:\n u6RH = 2.0 * OsfI\n AYdK = u6RH * YKHO.vport_ht_px / float(YKHO.vport_wd_px)\n else:\n AYdK = 2.0 * OsfI\n u6RH = AYdK * YKHO.v...
[ "0.600854", "0.6006392", "0.5945275", "0.59308195", "0.58266175", "0.57477313", "0.5702868", "0.5699755", "0.5670676", "0.56313336", "0.56038153", "0.5601629", "0.5570358", "0.5568224", "0.55402154", "0.5539047", "0.5524296", "0.55192536", "0.5517761", "0.54264396", "0.540499...
0.60652685
0
Split a string into a table of elements delimited by the given separator (defaults to ","). When convert_numbers is true, numerical tokens are stored as numbers (defaults to true). Empty elements are stored as empty strings. When the separator is "", every character is split into a separate element. >>> split("1,2,3")
def lpha(KCHu, g8rx=',', Dhw9=True): Aofo = [] DumB = KCHu.split(g8rx) for ZfUD in DumB: if Dhw9: try: if ZfUD == '': Aofo.append('') else: Aofo.append(_h2a(ZfUD)) except ValueError: Aofo....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(g8rx=None):\n return yIp6.function(lambda BWXx: BWXx.split(g8rx))", "def RJQo(vIwR, VWe_=None):\n Aofo = vIwR.split(VWe_)\n return Aofo", "def nV90(vIwR, VWe_):\n vIwR = vIwR.strip()\n if not vIwR:\n return []\n return vIwR.split(VWe_)", "def lpha(vIwR, TDw3=','):\n retur...
[ "0.7001009", "0.67481506", "0.6501409", "0.6371132", "0.635637", "0.6351397", "0.6248723", "0.62322074", "0.6227633", "0.6172065", "0.61242557", "0.61170036", "0.604788", "0.604788", "0.6030674", "0.5939323", "0.5929614", "0.5906394", "0.5896391", "0.58628905", "0.5733996", ...
0.76874876
0
fname.split('_', 1)[1] splits the string by '_ 'and returns second part [1] This_is_an_ex.mpg.OTHEREXTENSION while .rsplit('.', 1)[0] splits by '.' and returns first part
def PJbf(IznC): return IznC.split('_', 1)[1].rsplit('.', 1)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c5uP(FYKK):\n if '.' in FYKK:\n P8oC, YBcr = FYKK.rsplit('.', 1)\n else:\n YBcr = ''\n P8oC = FYKK\n return (P8oC, YBcr)", "def kdT2(Ux0P):\n return Hy7s.path.splitext(Ux0P)[0]", "def efWQ(Ux0P):\n return Hy7s.path.splitext(Ux0P)[1]", "def kdT2(Ux0P):\n jNP6 = Ux0P....
[ "0.765826", "0.75010526", "0.7403866", "0.7390981", "0.73523295", "0.7325136", "0.7320095", "0.7314245", "0.72721183", "0.7210961", "0.71843296", "0.7173116", "0.70981294", "0.709058", "0.70569223", "0.7050171", "0.7019185", "0.7013592", "0.6999276", "0.6962585", "0.69195944"...
0.77592254
0
Generate a 1hot encoded matrix of the proteins sequence. Generate a 1hot encoded matrix of the proteins sequence. The default indeces are in single letter code alphabetical order, which can be altered to feed into models expecting different orders.
def MN2V(YKHO, sUSf=dJeF): PoJq = max((Ty9i for G1Hx, Ty9i in sUSf.items())) + 1 pR1t = oyIN.array([sUSf[D9cM] for D9cM in YKHO.primary]) KLLm = oyIN.zeros((PoJq, len(pR1t)), dtype=oyIN.int) KLLm[pR1t, oyIN.arange(len(pR1t))] = 1 return KLLm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(YKHO, Q6uT) -> oyIN.ndarray:\n tsWk = len(Q6uT)\n JV5Q = oyIN.zeros((YKHO.sequence_length, len(YKHO.alphabet)))\n for YRbF in range(tsWk):\n JV5Q[YRbF, YKHO.alphabet.index(Q6uT[YRbF])] = 1\n return JV5Q", "def zGX0(Q6uT):\n Q6uT = Q6uT.replace('A', '0')\n Q6uT = Q6uT.replace('C'...
[ "0.7044502", "0.69988865", "0.6859771", "0.67963094", "0.67179126", "0.66457546", "0.66092", "0.65812135", "0.65713394", "0.6548964", "0.65434617", "0.65107423", "0.6505066", "0.6470862", "0.6434521", "0.64312977", "0.641836", "0.64145553", "0.6389702", "0.6375098", "0.637201...
0.58759254
86
Connects to Dapr Runtime and initialize gRPC client stub.
def FIMM(YKHO, UTX6: Optional[str]=None, dVr4: Optional[List[Union[UnaryUnaryClientInterceptor, UnaryStreamClientInterceptor, StreamUnaryClientInterceptor, StreamStreamClientInterceptor]]]=None, FqQt: Optional[int]=None): VrxA = f'dapr-sdk-python/{BtDU}' if not UTX6: UTX6 = f'{gCuF.DAPR_RUNTIME_HOST}:{g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ykhp(YKHO):\n xAU6 = {'ca_cert': qQPX['ca_cert'], 'client_cert': qQPX['client_cert'], 'client_key': qQPX['client_key']} if YKHO.secure else {}\n x0hE = aG_G(qQPX['api_proto'], qQPX['api_grpc'])\n x0hE.connect(qQPX['host'], qQPX['port'], **xAU6)\n return x0hE", "def Ykhp(YKHO):\n if YKHO.secure...
[ "0.6804017", "0.6613461", "0.617082", "0.61344826", "0.612501", "0.6091898", "0.600804", "0.5959368", "0.5957843", "0.59549725", "0.592077", "0.59145343", "0.5903337", "0.58742404", "0.5847642", "0.58276814", "0.5805607", "0.57889533", "0.57836026", "0.57438713", "0.5734296",...
0.6213675
2
Computes softmax along the specific axis
def N93T(hlel, jDK_=1): iTOy = oyIN.max(hlel, axis=jDK_, keepdims=True) FvF0 = hlel - iTOy return oyIN.exp(FvF0) / oyIN.sum(FvF0, axis=1, keepdims=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO, jDK_=0):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=jDK_, keepdims=True)", "def N93T(WKvO, jDK_=0):\n import numpy as oyIN\n WKvO = oyIN.swapaxes(WKvO, 0, jDK_)\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO, axis=0))\n Mkmy = uw5A / uw5A.sum(axis=0)\n return oyIN.swapaxes(M...
[ "0.8614411", "0.8527094", "0.85111415", "0.8488573", "0.84870034", "0.8482251", "0.84646696", "0.84459984", "0.8433523", "0.84268177", "0.84127426", "0.83972985", "0.8367744", "0.83621585", "0.8361125", "0.835914", "0.83528686", "0.8349765", "0.8349572", "0.8346757", "0.83366...
0.0
-1
Return DGLGraph object from dataset name.
def dD7q(j3aw: str): kZiy = Hy7s.path.expanduser('~') ysnp = Hy7s.path.join(kZiy, 'ogb') if not Hy7s.path.exists(ysnp): Hy7s.makedirs(ysnp) if j3aw == 'pubmed': NgJ8 = XdHH.data.PubmedGraphDataset() Oa1e = NgJ8[0].int() CSZR = {'train': Oa1e.ndata['train_mask'], 'valid': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pNZh(mWFP=None):\n return Q1Kq(mWFP)", "def DHnc(mWFP):\n __n6 = i9Wa(mWFP)\n HcOV = __n6.parse_all_graphs()\n Crrw = [bZX9(pNZh) for pNZh in HcOV]\n return (HcOV, Crrw)", "def Dl_0(YKHO, mWFP, DpZH='latest'):\n try:\n yEg8 = qxeD.UUID(mWFP)\n RKD7.info(f'Getting a dataset h...
[ "0.6749196", "0.6585491", "0.64562887", "0.64373934", "0.63739586", "0.63215", "0.63199866", "0.6269621", "0.6213606", "0.6198681", "0.61404747", "0.606332", "0.6045229", "0.59988993", "0.59432745", "0.59199744", "0.58666044", "0.58607733", "0.5849211", "0.5841627", "0.583113...
0.6693686
1
Sets the learning rate.
def kVtO(YKHO, tspZ: float) -> None: YKHO._set_learning_rate(tspZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aaf0(YKHO, Tclk):\n YKHO.learningRate = Tclk", "def kVtO(YKHO, b0Ix: float) -> None:\n YKHO.learning_rate = b0Ix", "def kVtO(YKHO, Qj8D: float):\n pass", "def kVtO(YKHO, tspZ):\n if not isinstance(tspZ, float):\n raise TypeError('lr must be a float')\n else:\n YKHO._learning_...
[ "0.8735665", "0.85554767", "0.8510793", "0.8501511", "0.84828603", "0.8282463", "0.8282463", "0.8111477", "0.7971118", "0.78310096", "0.7824445", "0.7777391", "0.7777391", "0.7769508", "0.77621114", "0.7706042", "0.767651", "0.7660075", "0.7537252", "0.7481165", "0.74649394",...
0.81974864
7
Returns numerator if it could be clearly divided with given denominator. If not, func increases numerator & returns increased (clearly divisible) number.
def pujc(M6pt, UUZ1): Bvcu = M6pt % UUZ1 if Bvcu != 0: M6pt += UUZ1 - Bvcu return M6pt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xY2l(M6pt: int, UUZ1: int) -> int:\n qUME(M6pt, UUZ1)\n return M6pt // UUZ1", "def dShr(M6pt, UUZ1):\n assert M6pt % UUZ1 == 0, f'{M6pt} is not divisible by {UUZ1}'\n return M6pt // UUZ1", "def rAjW(M6pt, UUZ1):\n return M6pt / UUZ1 if UUZ1 else 0", "def ngd7(pAX6, di96):\n if di96 == 1...
[ "0.7650147", "0.74681276", "0.7336124", "0.71070457", "0.6934206", "0.6929161", "0.69073105", "0.683304", "0.6546709", "0.6527189", "0.6526664", "0.6525896", "0.6414115", "0.6391164", "0.63902223", "0.63656175", "0.6331984", "0.6328164", "0.6295456", "0.62906283", "0.6288471"...
0.58591175
71
Percentage of times that topk predictions matches labels on non0s.
def X7YA(Crrw, KeL5, G1Hx): with ZylS.name_scope('padded_accuracy_topk'): KeL5, Crrw = z4AI.pad_tensors_to_same_length(KeL5, Crrw) _mSQ = ZylS.cast(ZylS.not_equal(Crrw, 0), ZylS.float32) H8I_ = ZylS.minimum(G1Hx, ZylS.shape(KeL5)[-1]) bGrB, o4Jx = ZylS.nn.top_k(KeL5, k=H8I_) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(hlel, pan_, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = pan_.size(0)\n bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(pan_.reshape(1, -1).expand_as(nvEb))\n return [gXXc[:G1Hx].reshape(-1).float().sum(0) * 100.0 / Ep8u for G1Hx in hz5a]", "def vjyh(hlel, pan...
[ "0.7232744", "0.71744484", "0.7165251", "0.7146319", "0.70950145", "0.7091889", "0.70541", "0.6999625", "0.6994898", "0.699072", "0.6988161", "0.6983744", "0.69830555", "0.6966629", "0.69576466", "0.69569105", "0.6955663", "0.695301", "0.695301", "0.695301", "0.695301", "0....
0.0
-1
Percentage of times that predictions matches labels everywhere (non0).
def nuPC(Crrw, KeL5): with ZylS.name_scope('padded_sequence_accuracy'): KeL5, Crrw = z4AI.pad_tensors_to_same_length(KeL5, Crrw) _mSQ = ZylS.cast(ZylS.not_equal(Crrw, 0), ZylS.float32) if len(KeL5.get_shape().as_list()) == 3: o4Jx = ZylS.cast(ZylS.argmax(KeL5, axis=-1), ZylS.int3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(Crrw: List[str], N6Z1: List[str]) -> float:\n gXXc = sum([1 if UXqs == o3Uj else 0 for UXqs, o3Uj in zip(Crrw, N6Z1)])\n return gXXc / len(Crrw)", "def dYlE(N6Z1, Crrw):\n return 100.0 - 100.0 * oyIN.sum(oyIN.argmax(N6Z1, 1) == Crrw) / N6Z1.shape[0]", "def dYlE(N6Z1, Crrw):\n return 100.0 ...
[ "0.7510669", "0.7366373", "0.7264105", "0.7249335", "0.7197268", "0.71944976", "0.7191117", "0.7176792", "0.7176792", "0.71420556", "0.71246773", "0.70980036", "0.70902276", "0.7084372", "0.7049785", "0.70453113", "0.70073503", "0.7005771", "0.69979984", "0.69979984", "0.6985...
0.0
-1
Return text clipped at the last space before or after max_len
def vJPk(l5Ny, wzH_=80): Os4s = None if len(l5Ny) > wzH_: f4lN = l5Ny.rfind(' ', 0, wzH_) if f4lN >= 0: Os4s = f4lN else: XEB8 = l5Ny.rfind(' ', wzH_) if XEB8 >= 0: Os4s = XEB8 if Os4s is None: Os4s = len(l5Ny) return l5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vJPk(l5Ny, wzH_=80):\n Os4s = None\n if len(l5Ny) > wzH_:\n f4lN = l5Ny.rfind(' ', 0, wzH_)\n if f4lN >= 0:\n Os4s = f4lN\n else:\n XEB8 = l5Ny.rfind(' ', wzH_)\n if XEB8 >= 0:\n Os4s = XEB8\n if Os4s is None:\n Os4s = len(l5N...
[ "0.8436351", "0.8321837", "0.76462734", "0.74143016", "0.72867566", "0.72323024", "0.7193352", "0.70818686", "0.6965088", "0.6895709", "0.68432736", "0.6817233", "0.67778397", "0.6756994", "0.67321765", "0.6731217", "0.6673495", "0.6673495", "0.6673495", "0.66471994", "0.6647...
0.84616864
0
Get priority and associativity of the given binary operator.
def XRXj(YKHO, seET): return YKHO.table[seET, YKHO.binary]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jge7(YKHO, seET):\n return YKHO._operators[seET][0]", "def BrTj(YKHO):\n return YKHO._priority_operator", "def Ey19(seET):\n return {'**': 3, '//': 2, '%': 2, '*': 2, '/': 2, '+': 1, '-': 1, '(': 0}[seET]", "def Jge7(YKHO, seET):\n return YKHO.DEFAULT_PRIORITY[seET]", "def Eind(YKHO, seET, ...
[ "0.77633464", "0.73199433", "0.73038965", "0.7260824", "0.71421605", "0.7133216", "0.6868961", "0.6798515", "0.66377145", "0.6544042", "0.6512959", "0.6512959", "0.6512959", "0.6449642", "0.64474255", "0.64029723", "0.6399237", "0.6373204", "0.6362287", "0.6362287", "0.636228...
0.8447297
0
Get priority of the given unary or binary operator.
def Eind(YKHO, seET, lJlU): return YKHO.table[seET, lJlU][0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jge7(YKHO, seET):\n return YKHO._operators[seET][0]", "def Jge7(YKHO, seET):\n return YKHO.DEFAULT_PRIORITY[seET]", "def BrTj(YKHO):\n return YKHO._priority_operator", "def XRXj(YKHO, seET):\n return YKHO.table[seET, YKHO.binary]", "def Ey19(seET):\n return {'**': 3, '//': 2, '%': 2, '*'...
[ "0.84557563", "0.80947626", "0.77114713", "0.74137604", "0.73537093", "0.72059643", "0.67357856", "0.6730594", "0.6477087", "0.6235626", "0.623002", "0.6223371", "0.6223371", "0.6223371", "0.62146676", "0.6169494", "0.6169494", "0.6169494", "0.6169494", "0.6169494", "0.616949...
0.81164294
1
Stores the variable in the list.
def E9Vq(YKHO, WKvO): YKHO.__variables[str(WKvO)] = WKvO return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1R3(YKHO, SRYB, wEf2):\n YKHO.shell.interp.locals[SRYB] = wEf2\n YKHO._existing[SRYB] = wEf2", "def DlYu(YKHO, CXYT, BWXx):\n YKHO.r.rpush(CXYT, BWXx)", "def RT7C(YKHO, mWFP, Es0b):\n YKHO.variables[mWFP] = Es0b", "def Ew9i(YKHO, SRYB, BWXx):\n YKHO.assignment[SRYB] = BWXx", "def woWt(Y...
[ "0.681612", "0.6669649", "0.6548724", "0.6468865", "0.6348355", "0.6277238", "0.62520236", "0.6250767", "0.6241869", "0.621544", "0.62050164", "0.61959904", "0.61857957", "0.6172149", "0.616465", "0.6140173", "0.60944647", "0.60944647", "0.6074756", "0.60739225", "0.6070607",...
0.6035545
25
>>> luhn_wiki(79927398713) True >>> luhn_wiki(79927398714) False
def w9Y9(GgQH): jjth = (0, 2, 4, 6, 8, 1, 3, 5, 7, 9) if not isinstance(GgQH, str): GgQH = str(GgQH) try: MfeY = sum((int(XP5J) for XP5J in GgQH[-1::-2])) hxx9 = sum((jjth[int(XP5J)] for XP5J in GgQH[-2::-2])) return (MfeY + hxx9) % 10 == 0 except ValueError: retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDm8(YKHO):\n if not YKHO.number:\n return False\n Mkmy = [int(Npgh) for Npgh in str(YKHO.number)][::-1]\n KCHu = sum(Mkmy[0::2]) + sum((sum(divmod(Csk6 * 2, 10)) for Csk6 in Mkmy[1::2]))\n return KCHu % 10 == 0", "def Lr80(mLGw):\n mLGw = eval(mLGw)\n WKvO = mLGw % 10\n mLGw = mL...
[ "0.71211207", "0.6918234", "0.6644015", "0.62101215", "0.6202527", "0.6192713", "0.6171316", "0.6146848", "0.6101665", "0.61000645", "0.6081439", "0.6076948", "0.60407853", "0.60316896", "0.5948693", "0.5945594", "0.5887246", "0.585623", "0.58172643", "0.58117247", "0.5811189...
0.72930336
0
Get the current reader position in the file
def WeOw(YKHO): return YKHO._handle.tell()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKWF(YKHO):\n YKHO.position_index = YKHO.file_obj.tell()\n return YKHO.position_index", "def Iuzb(YKHO):\n YKHO.pos = YKHO.f.tell()\n return YKHO.pos", "def dQgj(YKHO):\n return YKHO.scanner.position()", "def dQgj(YKHO):\n return YKHO.scanner.position()", "def AGb1(YKHO):\n return ...
[ "0.8135821", "0.7570955", "0.7492414", "0.7445574", "0.74176866", "0.7372919", "0.7331617", "0.72293615", "0.71742755", "0.70633835", "0.7023202", "0.6941523", "0.69236356", "0.68635285", "0.6849078", "0.6821953", "0.6811223", "0.67877775", "0.67361146", "0.6735417", "0.67352...
0.0
-1
Serialize Circuit into JSON type dict. In this implementation, serialized circuit is flattened. However, it's not specifications of JSON schema.
def Napc(Z9rn: Circuit) -> 'CircuitJsonDict': def NytG(khtY: 'Operation') -> 'OpJsonDict': x6A0 = khtY.targets if isinstance(x6A0, slice): raise TypeError('Not flatten circuit.') if isinstance(x6A0, int): x6A0 = [x6A0] if isinstance(x6A0, tuple): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vlxM(YKHO):\n return {'circuit': YKHO.circuit.as_json(), 'trace': YKHO.probes, 'layout': YKHO.layout_svg}", "def fyds(YKHO):\n if YKHO.pathway_as_dict is None:\n YKHO.nodes_compounds.reverse()\n YKHO.pathway_as_dict = {'elements': {'nodes': YKHO.nodes_compounds + YKHO.nodes_transformation...
[ "0.68377566", "0.61329365", "0.6056955", "0.6013823", "0.6001115", "0.5969154", "0.595098", "0.5814617", "0.57846844", "0.57761896", "0.57590646", "0.5750343", "0.57188934", "0.5712736", "0.56969815", "0.56762725", "0.56658596", "0.56598026", "0.5651634", "0.5644721", "0.5638...
0.8029252
0
Given an Image3D 'im', extract the given slice along the given dimension. If sliceIdx is None, extract the middle slice.
def gf_u(Xn71, WSuw=None, tpio='z'): Rv0k = Xn71.size().tolist() if WSuw is None: WSuw = Rv0k[_lCF[tpio]] // 2 Rxlj = aM69.Vec3Di(0, 0, 0) FJN6 = aM69.Vec3Di(Rv0k[0], Rv0k[1], Rv0k[2]) Rxlj.set(_lCF[tpio], WSuw) FJN6.set(_lCF[tpio], 1) ZnZs = aM69.GridInfo(Xn71.grid().size(), Xn71.gr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I1VV(ezWE, WSuw=None, tpio='z'):\n ezWE = oyIN.atleast_3d(ezWE)\n Rv0k = ezWE.shape\n if WSuw is None:\n WSuw = Rv0k[_lCF[tpio]] // 2\n Rxlj = oyIN.array([0, 0, 0])\n FJN6 = oyIN.array([Rv0k[0], Rv0k[1], Rv0k[2]])\n Rxlj[_lCF[tpio]] = WSuw\n FJN6[_lCF[tpio]] = 1\n NPKt = Rxlj + F...
[ "0.7328504", "0.7048457", "0.66970026", "0.6633502", "0.6548257", "0.64955217", "0.64091593", "0.6371541", "0.6345254", "0.6331745", "0.62443024", "0.6232149", "0.6194952", "0.6088594", "0.605176", "0.6019334", "0.5980765", "0.5935341", "0.5862254", "0.5850796", "0.5844319", ...
0.8416593
0
Given an Image3D 'im', extract the given slice along the given dimension and return a copy of it as a numpy array. If sliceIdx is None, extract the middle slice.
def ZFGp(Xn71, WSuw=None, tpio='z'): TWlt = gf_u(Xn71, WSuw, tpio) VA29 = haHv(TWlt) return VA29
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gf_u(Xn71, WSuw=None, tpio='z'):\n Rv0k = Xn71.size().tolist()\n if WSuw is None:\n WSuw = Rv0k[_lCF[tpio]] // 2\n Rxlj = aM69.Vec3Di(0, 0, 0)\n FJN6 = aM69.Vec3Di(Rv0k[0], Rv0k[1], Rv0k[2])\n Rxlj.set(_lCF[tpio], WSuw)\n FJN6.set(_lCF[tpio], 1)\n ZnZs = aM69.GridInfo(Xn71.grid().si...
[ "0.8255142", "0.78424615", "0.6966745", "0.6557137", "0.64862597", "0.64560175", "0.64264274", "0.63476646", "0.632265", "0.6264696", "0.6250443", "0.6227179", "0.61734515", "0.61393774", "0.608568", "0.60587907", "0.6053064", "0.6043866", "0.5962303", "0.5944641", "0.5936468...
0.75079215
2
Given a Field3D 'vf', extract the given slice along the given dimension and return a copy of it as a numpy array. If sliceIdx is None, extract the middle slice.
def BzgF(oTv4, WSuw=None, tpio='z'): EAhl = ZozL(oTv4, WSuw, tpio) VA29 = haHv(EAhl) return VA29
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZozL(oTv4, WSuw=None, tpio='z'):\n Rv0k = oTv4.size().tolist()\n if WSuw is None:\n WSuw = Rv0k[_lCF[tpio]] // 2\n Rxlj = aM69.Vec3Di(0, 0, 0)\n FJN6 = aM69.Vec3Di(Rv0k[0], Rv0k[1], Rv0k[2])\n Rxlj.set(_lCF[tpio], WSuw)\n FJN6.set(_lCF[tpio], 1)\n ZnZs = aM69.GridInfo(oTv4.grid().si...
[ "0.8085572", "0.6911146", "0.6701868", "0.6536336", "0.63847476", "0.6303022", "0.59901404", "0.5923277", "0.5886146", "0.579504", "0.5779556", "0.5776712", "0.5746446", "0.5722162", "0.5706136", "0.5702529", "0.5689697", "0.56861496", "0.5684825", "0.56830716", "0.5656187", ...
0.72853535
1
As in the paper, we use a VGG16 pretrained on the ImageNet task as the base network.
def OJVN(YKHO): xA7f = YKHO.state_dict() DTb0 = list(xA7f.keys()) KFXN = TTda.models.vgg16(pretrained=True).state_dict() DDS1 = list(KFXN.keys()) for YRbF, xqoZ in enumerate(DTb0[:-4]): xA7f[xqoZ] = KFXN[DDS1[YRbF]] k068 = KFXN['classifier.0.weight'].view(4096, 512, 7, 7) vTaP = KFXN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HxRh(YKHO):\n if YKHO.train:\n q1Of = Hy7s.path.join(YKHO.working_directory, 'VGG16_notop_model.h5')\n if not Hy7s.path.exists(q1Of):\n print('Downloading VGG16_Notop_weights...')\n bD7m = 'https://github.com/fchollet/deep-learning-models/releases/download/v0.1/vgg16_weig...
[ "0.7965491", "0.7943802", "0.78797823", "0.7849042", "0.7842197", "0.7818201", "0.76644725", "0.7638572", "0.75739574", "0.75612104", "0.7558984", "0.7555377", "0.7550174", "0.75499696", "0.7547258", "0.75438845", "0.7532384", "0.7528001", "0.74993765", "0.7494683", "0.749066...
0.0
-1
Return path w.r.t. the repository root.
def dMng(YKHO, pmON): pmON = Hy7s.path.abspath(pmON) assert pmON.startswith(YKHO.base_path) assert pmON.startswith(YKHO.repo.root) wOmD = pmON[len(YKHO.repo.root):] if wOmD.startswith(Hy7s.sep): wOmD = wOmD[len(Hy7s.sep):] return wOmD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CtHB() -> GkAb:\n return GkAb('.').absolute()", "def n3vd(YKHO) -> str:\n return YKHO.__get_path__('repos')", "def a_7F(boHx):\n return Orwp.joinpath(boHx)", "def W0I0(YKHO, RDp6):\n return YKHO.root + '/' + RDp6", "def cl4h(YKHO, F3jJ):\n return Hy7s.path.join(OSdB, F3jJ.id)", "def tG...
[ "0.8654833", "0.80325466", "0.79203975", "0.7895561", "0.7828775", "0.7822057", "0.7809467", "0.77722514", "0.7740463", "0.7733736", "0.7720017", "0.76620847", "0.76593316", "0.76573324", "0.75676847", "0.75539017", "0.75513154", "0.7524832", "0.75048566", "0.74805194", "0.74...
0.7781974
7
Sell shares of stock.
def ZBqQ(): if QePW.method == 'POST': if not QePW.form.get('symbol') or not QePW.form.get('shares'): return P88m('Incomplete Info') aDi_ = QePW.form.get('symbol') iTlw = QePW.form.get('shares') NCC9 = ccBJ(aDi_) while not NCC9: NCC9 = ccBJ(aDi_) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vLdO(YKHO, o61b, Z5kt):\n pass", "def vLdO(YKHO):\n pass", "def e4Ga(YKHO, q9zX, FGW3, RdoJ):\n pass", "def D3VZ(YKHO):\n YKHO.txnumber = YKHO.txnumber + 1\n B__k = YKHO.portfolio.positions[YKHO.stockB].amount\n YKHO.order(YKHO.stockB, -1 * B__k)\n VjqK = YKHO.portfolio.positions[YKH...
[ "0.8072918", "0.8063354", "0.76947683", "0.7503331", "0.7384993", "0.7310677", "0.71882445", "0.71568274", "0.70857376", "0.7041662", "0.7009744", "0.69902384", "0.69897187", "0.6959713", "0.6925477", "0.6925465", "0.69224066", "0.68414044", "0.68296736", "0.6818411", "0.6777...
0.6784455
20
load model from file
def uyMl(qIxc): cb_Q = ZylS.Session() with ZylS.gfile.GFile(qIxc.model, 'rb') as eHNT: r8JX = ZylS.GraphDef() r8JX.ParseFromString(eHNT.read()) ZylS.import_graph_def(r8JX, input_map=None, return_elements=None, name='') WJI9 = ZylS.summary.FileWriter('log') WJI9.add_graph(cb_Q.graph) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(Ux0P):\n pass", "def uyMl(Ux0P):\n raise NotImplementedError()", "def uyMl(YKHO, WJHQ):\n raise NotImplementedError", "def uyMl(YKHO, gIsw):\n raise NotImplementedError", "def uyMl(ytgA: str):\n raise NotImplementedError", "def uyMl(Ux0P: str):\n return tyeH(Ux0P)", "def tyeH...
[ "0.9047159", "0.8786297", "0.86208427", "0.85985017", "0.85963327", "0.85815257", "0.8550728", "0.85303104", "0.840477", "0.840477", "0.840477", "0.8395978", "0.8377985", "0.8353479", "0.8315821", "0.8296318", "0.82114327", "0.8200668", "0.8182162", "0.8182162", "0.81542265",...
0.0
-1
Returns the normal queryset with all topics. In the background all attachments and the related agenda item are prefetched from the database.
def fmfM(YKHO, *qIxc, **B2fa): return super().get_prefetched_queryset(*qIxc, **B2fa).prefetch_related('attachments', 'lists_of_speakers', 'agenda_items')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XlsC(YKHO):\n return YKHO.get_queryset().prefetch_related('attachments', 'lists_of_speakers', 'agenda_items')", "def Bou5():\n AdpB = oosv.objects.all()\n return AdpB", "def k66M(YKHO):\n return oosv.objects.order_by('-pub_date')", "def Bou5(YKHO):\n KCHu = i48E.orm.Session(YKHO.engine)\n ...
[ "0.749894", "0.7041263", "0.69926184", "0.66700315", "0.6612075", "0.65810657", "0.6546884", "0.64301354", "0.62795115", "0.6256937", "0.6198241", "0.61404574", "0.61150503", "0.61150503", "0.6080135", "0.6071938", "0.607184", "0.60257924", "0.60073626", "0.599969", "0.599083...
0.7034486
2
Replace quoted parts of string with dictionary entries.
def QM2G(vIwR, cmPJ): SQ3m = vIwR.split('"') SQ3m[1::2] = [cmPJ[GIN8] for GIN8 in SQ3m[1::2]] return ''.join(SQ3m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QM2G(vIwR, cmPJ):\n SQ3m = vIwR.split('\"')\n for YRbF in range(1, len(SQ3m), 2):\n SQ3m[YRbF] = cmPJ[SQ3m[YRbF]]\n return ''.join(SQ3m)", "def dMkK(dict):\n for YRbF in dict:\n dict[YRbF] = dict[YRbF].replace('\"', '\\\\\"')\n return dict", "def fP1Q(Op6c, stWx):\n Op6c = d...
[ "0.77319175", "0.69101816", "0.66546965", "0.64212614", "0.6249416", "0.6246925", "0.6231092", "0.6224836", "0.61827165", "0.6119085", "0.61118346", "0.60120565", "0.59976304", "0.59972906", "0.5989988", "0.5987412", "0.5923175", "0.59200305", "0.59156114", "0.59156114", "0.5...
0.7616221
1
Replace quoted parts of string with dictionary entries.
def QM2G(vIwR, cmPJ): SQ3m = vIwR.split('"') for YRbF in range(1, len(SQ3m), 2): SQ3m[YRbF] = cmPJ[SQ3m[YRbF]] return ''.join(SQ3m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QM2G(vIwR, cmPJ):\n SQ3m = vIwR.split('\"')\n SQ3m[1::2] = [cmPJ[GIN8] for GIN8 in SQ3m[1::2]]\n return ''.join(SQ3m)", "def dMkK(dict):\n for YRbF in dict:\n dict[YRbF] = dict[YRbF].replace('\"', '\\\\\"')\n return dict", "def fP1Q(Op6c, stWx):\n Op6c = dict(((ZbWC.escape(G1Hx), T...
[ "0.7616221", "0.69101816", "0.66546965", "0.64212614", "0.6249416", "0.6246925", "0.6231092", "0.6224836", "0.61827165", "0.6119085", "0.61118346", "0.60120565", "0.59976304", "0.59972906", "0.5989988", "0.5987412", "0.5923175", "0.59200305", "0.59156114", "0.59156114", "0.59...
0.77319175
0
store password as hash
def G3s8(YKHO, jTXt): YKHO.password_hash = vT87(jTXt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO, jTXt):\n YKHO.hash = jf1V.encrypt(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.encrypt(jTXt)", "def qzFd(jTXt: str):\n return jf1V.hash...
[ "0.8178832", "0.8085099", "0.8085099", "0.8029278", "0.7696849", "0.76884645", "0.7678298", "0.7678298", "0.7656915", "0.76319164", "0.7631336", "0.76251245", "0.7612051", "0.76082826", "0.7608108", "0.76047933", "0.7583937", "0.75763845", "0.7548922", "0.7520171", "0.750365"...
0.0
-1
takes a token and attempts to decode it by invoking PyJWT's jwt.decode() function
def cqId(eOtH): try: PObu = DvJO.decode(eOtH, wk5E.config['SECRET_KEY'], algorithms=['HS256'])['reset_password'] except DvJO.ExpiredSignatureError: return ZTmp('Token has expired') return mv1M.query.get(PObu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x8I_(eOtH):\n return DvJO.decode(eOtH, P4t4.config['JWT_SECRET'], algorithms=[P4t4.config['JWT_ALGORITHM']])", "def yXnH(eOtH):\n AgdR = DvJO.decode(eOtH, QDug, algorithms='HS256')\n return AgdR", "def _7aU(eOtH):\n pB3N = DvJO.decode(eOtH, RzZd, algorithms=['HS256'])\n return pB3N", "def ...
[ "0.86838835", "0.8578908", "0.8359552", "0.81479424", "0.8143268", "0.81271446", "0.8043148", "0.8023987", "0.7979598", "0.7936061", "0.7922278", "0.7806684", "0.7799633", "0.7784719", "0.7769138", "0.7762501", "0.7759383", "0.77580684", "0.7745562", "0.77447814", "0.7731615"...
0.0
-1
we use conv1d to capture context
def W8Li(YKHO): for YRbF in range(YKHO._n_cnns): yIp6 = ht2j.nn.Conv1d(in_channels=YKHO._word_dim, out_channels=YKHO._n_filters, kernel_size=YKHO._window, bias=True) yIp6.weight.requires_grad = YKHO._require_grad yIp6.bias.requires_grad = YKHO._require_grad eNbu(yIp6) YKHO.ad...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j2cC(PhLZ, uK2T, _0fC=1):\n return U78l.Conv1d(PhLZ, uK2T, kernel_size=1, stride=_0fC, bias=True)", "def GNqg(vhpA: tf.Tensor, gt4n: int, G1Hx: int) -> ZylS.Tensor:\n vhpA = lTlC(gt4n, G1Hx, padding='valid', dilation_rate=1, kernel_regularizer=V70B(2e-05), use_bias=False)(vhpA)\n vhpA = GVKG()(vhpA)...
[ "0.6734176", "0.6709245", "0.66419905", "0.66020995", "0.66020995", "0.6579461", "0.65404314", "0.64498585", "0.64177924", "0.64002734", "0.63982093", "0.63558286", "0.635173", "0.63099444", "0.62894505", "0.62865895", "0.62689126", "0.62568605", "0.62485766", "0.62151426", "...
0.0
-1
Read from pip requirements from txt file.
def VnMZ(Ux0P: str) -> list: with open(Ux0P) as eHNT: return [Mkmy.strip() for Mkmy in eHNT.read().splitlines() if Mkmy.strip() and (not Mkmy.startswith('#'))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DRKI():\n SYKw = '%s/requirements.txt' % TLI7(RUFc(xAKo))\n with open(SYKw) as eHNT:\n return [zFiD.strip() for zFiD in eHNT]", "def Ks_v():\n VGiD = Hy7s.path.join('.', 'requirements.txt')\n with open(VGiD, 'r') as eHNT:\n fA3L = [zFiD.rstrip() for zFiD in eHNT]\n return fA3L", ...
[ "0.81550115", "0.80999494", "0.805326", "0.7967492", "0.7922816", "0.79162186", "0.78756684", "0.7849317", "0.78088266", "0.7645073", "0.7604753", "0.75474393", "0.7544081", "0.7531022", "0.7502201", "0.7442521", "0.7432144", "0.7408417", "0.7402693", "0.7313407", "0.7301291"...
0.65507793
93
cdf values evaluated at x.
def YzER(YKHO, WKvO): WKvO = oyIN.asarray(WKvO) if WKvO.ndim == 1 and YKHO.k_dim == 1: WKvO = WKvO[:, None] YWC0 = _9SU(WKvO, YKHO.cdf_grid) return YWC0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzER(YKHO, WKvO):\n return YKHO.distr.cdf(WKvO)", "def YzER(YKHO, WKvO):\n return YKHO._frozen.cdf(WKvO)", "def mMPC(YKHO, WKvO):\n if isinstance(WKvO, float):\n return 1.0 / 2.0 * (1 + epAf.erf(WKvO / oyIN.sqrt(2)))\n else:\n return 1.0 / 2.0 * (1 + oyIN.array([epAf.erf(exwG / oy...
[ "0.88476664", "0.8806192", "0.86978537", "0.86885536", "0.8297869", "0.8249193", "0.81331307", "0.81312615", "0.8096019", "0.8034669", "0.79246634", "0.78513867", "0.7823958", "0.7812677", "0.77798706", "0.7768027", "0.77547413", "0.7729693", "0.77261513", "0.7631929", "0.758...
0.77553177
16
Push element x to the back of queue.
def _jXH(YKHO, WKvO: int) -> None: YKHO.stack_in.append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()", "def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)...
[ "0.8627964", "0.847768", "0.8414127", "0.827978", "0.8259876", "0.82024014", "0.81944746", "0.81445456", "0.81445456", "0.81041193", "0.81004506", "0.80947775", "0.805236", "0.805236", "0.8037114", "0.8033887", "0.79936236", "0.79584146", "0.7948628", "0.7944436", "0.7899758"...
0.7013682
83
Removes the element from in front of queue and returns that element.
def BEuN(YKHO) -> int: while YKHO.stack_in: YKHO.stack_out.append(YKHO.stack_in.pop()) NAZO = YKHO.stack_out.pop() while YKHO.stack_out: YKHO.stack_in.append(YKHO.stack_out.pop()) return NAZO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()", "def BEuN(YKHO):\n if len(...
[ "0.85555553", "0.8329695", "0.81405824", "0.80353034", "0.791703", "0.78865194", "0.7882125", "0.7802728", "0.77982587", "0.7746587", "0.7715509", "0.77124494", "0.7696993", "0.76691186", "0.76638514", "0.7662351", "0.76441866", "0.7642656", "0.76400787", "0.7635912", "0.7620...
0.0
-1
Get the front element.
def T7C_(YKHO) -> int: while YKHO.stack_in: YKHO.stack_out.append(YKHO.stack_in.pop()) NAZO = YKHO.stack_out.pop() YKHO.stack_in.append(NAZO) while YKHO.stack_out: YKHO.stack_in.append(YKHO.stack_out.pop()) return NAZO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.frontelem.elem", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]", "def TA6u(YKHO):\n return YKHO.storage[0]", "def VnzS(YKHO):\n return YKHO.head", "def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]", "def qnv...
[ "0.87835056", "0.83788836", "0.82574433", "0.80897844", "0.8012526", "0.7981897", "0.786668", "0.783555", "0.7815892", "0.77942365", "0.7735508", "0.769147", "0.76801795", "0.76465446", "0.7630563", "0.75877416", "0.7572392", "0.75053453", "0.74844474", "0.74813557", "0.74660...
0.0
-1
Push element x to the back of queue.
def _jXH(YKHO, WKvO: int) -> None: YKHO.r_stack.push(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()", "def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)...
[ "0.8627964", "0.847768", "0.8414127", "0.827978", "0.8259876", "0.82024014", "0.81944746", "0.81445456", "0.81445456", "0.81041193", "0.81004506", "0.80947775", "0.805236", "0.805236", "0.8037114", "0.8033887", "0.79936236", "0.79584146", "0.7948628", "0.7944436", "0.7899758"...
0.69763315
85
Removes the element from in front of queue and returns that element.
def BEuN(YKHO) -> int: YKHO._transform() return YKHO.l_stack.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()", "def BEuN(YKHO):\n if len(...
[ "0.85555553", "0.8329695", "0.81405824", "0.80353034", "0.791703", "0.78865194", "0.7882125", "0.7802728", "0.77982587", "0.7746587", "0.7715509", "0.77124494", "0.7696993", "0.76691186", "0.76638514", "0.7662351", "0.76441866", "0.7642656", "0.76400787", "0.7635912", "0.7620...
0.0
-1
Get the front element.
def T7C_(YKHO) -> int: YKHO._transform() return YKHO.l_stack.peek()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.frontelem.elem", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]", "def TA6u(YKHO):\n return YKHO.storage[0]", "def VnzS(YKHO):\n return YKHO.head", "def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]", "def qnv...
[ "0.87835056", "0.83788836", "0.82574433", "0.80897844", "0.8012526", "0.7981897", "0.786668", "0.783555", "0.7815892", "0.77942365", "0.7735508", "0.769147", "0.76801795", "0.76465446", "0.7630563", "0.75877416", "0.7572392", "0.75053453", "0.74844474", "0.74813557", "0.74660...
0.0
-1
Test DNS 'MINFO' record queries
def Ea0B(YKHO): return YKHO.namesTest(YKHO.resolver.lookupMailboxInfo('test-domain.com'), [wAWK.Record_MINFO(rmailbx='r mail box', emailbx='e mail box', ttl=19283784)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mSJE(YKHO):\n AIu6 = wAWK.Record_MINFO(b'alice.example.com', b'bob.example.com', 15)\n YKHO.assertEqual(repr(AIu6), '<MINFO responsibility=alice.example.com errors=bob.example.com ttl=15>')", "def Ea0B(YKHO):\n YKHO._recordRoundtripTest(wAWK.Record_MINFO(rmailbx=b'foo', emailbx=b'bar'))", "def mSJ...
[ "0.79527974", "0.7843839", "0.7167022", "0.6828417", "0.6591835", "0.6409334", "0.63252753", "0.62946206", "0.622706", "0.61154443", "0.61011165", "0.60715294", "0.60228807", "0.5978509", "0.594769", "0.5917399", "0.5888622", "0.5876459", "0.58653545", "0.5858742", "0.5798693...
0.7601589
2
Verify that certain address records are included in the I{additional} section of a response generated by L{FileAuthority}.
def Q1ne(YKHO, NKcE, kylV, KYrJ): pan_ = b'mail.' + OtGW.mname.name Csk6 = YKHO._lookupSomeRecords(NKcE, OtGW, kylV, pan_, KYrJ) ANfV, GbKX, q8Qv = YKHO.successResultOf(Csk6) YKHO.assertRecordsMatch([wAWK.RRHeader(pan_, UTX6.TYPE, ttl=OtGW.expire, payload=UTX6, auth=True) for UTX6 in KYrJ], q8Qv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kP4n(YKHO):\n YKHO.render_config_template(dns_ports=[53], dns_include_additionals=True)\n YKHO.run_packetbeat(pcap='dns_additional.pcap')\n p9NO = YKHO.read_output()\n assert len(p9NO) == 1\n z1Rg = p9NO[0]\n assert z1Rg['type'] == 'dns'\n assert z1Rg['dns.additionals_count'] == 1\n ass...
[ "0.6247163", "0.6181558", "0.6049658", "0.5960927", "0.5960927", "0.58530957", "0.58497256", "0.5673915", "0.554916", "0.5520204", "0.5514671", "0.5507333", "0.54984385", "0.54841685", "0.54831624", "0.5438206", "0.5424502", "0.54230267", "0.5411213", "0.5371438", "0.534688",...
0.6623043
0
If the name of the MX response has AAAA records, they are included in the additional section of the response.
def DlcJ(YKHO): YKHO._additionalMXTest([YKHO._AAAA])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z8FB(YKHO):\n return YKHO.namesTest(YKHO.resolver.lookupIPV6Address('test-domain.com'), [wAWK.Record_AAAA('AF43:5634:1294:AFCB:56AC:48EF:34C3:01FF', ttl=19283784)])", "def Z6cd(YKHO, AIu6):\n return f'add_aaaa_record {AIu6.domain} {AIu6.entry.strip('.')} {YKHO.ip}'", "def oWqh(YKHO):\n x6aZ = YKHO...
[ "0.62927574", "0.6265539", "0.62546885", "0.62378573", "0.61830103", "0.6079474", "0.5937912", "0.5877987", "0.58265257", "0.57889515", "0.57411504", "0.5740741", "0.5671975", "0.5620993", "0.562016", "0.5614513", "0.55959815", "0.5585627", "0.5519228", "0.54538274", "0.54119...
0.6716943
0
If the name of the MX response has both A and AAAA records, they are all included in the additional section of the response.
def HCcb(YKHO): YKHO._additionalMXTest([YKHO._A, YKHO._AAAA])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DlcJ(YKHO):\n YKHO._additionalMXTest([YKHO._AAAA])", "def oCPr(geh0, UAZf, WZhw, jRgw):\n BdTM = []\n n__S = []\n DWW4 = []\n qdx6 = UAZf\n for YRbF in range(WZhw):\n QUCt = nLUw(geh0, qdx6 + 12)\n qdx6 = QUCt[1]\n BdTM.append(QUCt[0])\n vIMU = qdx6\n if jRgw > 0:...
[ "0.67708844", "0.6289718", "0.6228706", "0.61520773", "0.6063826", "0.6011641", "0.59850115", "0.58509797", "0.5817981", "0.5703249", "0.56755376", "0.5667923", "0.5631484", "0.56076366", "0.5595679", "0.5554436", "0.55093235", "0.55069554", "0.5474572", "0.5449563", "0.54117...
0.61004543
4
If the name of the NS response has both A and AAAA records, they are all included in the additional section of the response.
def VXsH(YKHO): YKHO._additionalNSTest([YKHO._A, YKHO._AAAA])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oCPr(geh0, UAZf, WZhw, jRgw):\n BdTM = []\n n__S = []\n DWW4 = []\n qdx6 = UAZf\n for YRbF in range(WZhw):\n QUCt = nLUw(geh0, qdx6 + 12)\n qdx6 = QUCt[1]\n BdTM.append(QUCt[0])\n vIMU = qdx6\n if jRgw > 0:\n for YRbF in range(jRgw):\n Bmg9 = MZ6z('!H...
[ "0.67325383", "0.66302806", "0.6106046", "0.587262", "0.5821959", "0.5805411", "0.57623625", "0.56731665", "0.5663277", "0.55518293", "0.55097413", "0.54104996", "0.53903306", "0.5389931", "0.538682", "0.5357258", "0.5349338", "0.52949375", "0.52322507", "0.5185792", "0.51815...
0.61208606
2
Returns the dtype of the underlying array interface
def yDqo(YKHO): return oyIN.dtype(YKHO.ai_['typestr'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDqo(YKHO) -> eBH2[XTiz.dtype]:\n return YKHO._dtype", "def iR6h(YKHO):\n return YKHO.hardware_dtype", "def yDqo(YKHO) -> oyIN.dtype:\n return YKHO._converter.dtype", "def yDqo(YKHO) -> SnBA.Dtype:\n return YKHO._dtype", "def yDqo(YKHO):\n return YKHO._impl.dtype", "def kHVp(QLR1):\n ...
[ "0.8076794", "0.7922114", "0.7890755", "0.78438956", "0.7794191", "0.7748448", "0.7698768", "0.7658348", "0.7627451", "0.7627451", "0.7627451", "0.7627451", "0.76250505", "0.762066", "0.7608815", "0.7604274", "0.7604274", "0.7604274", "0.7604274", "0.7604274", "0.75858355", ...
0.7630716
8
Remove html tags from a string. This is anything in between
def JZhs(l5Ny): x0SS = ZbWC.compile('<.*?>') return ZbWC.sub(x0SS, ' ', l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iw0V(vIwR):\n return ZbWC.sub('<[^>]*?>', ' ', vIwR)", "def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)", "def JZhs(KCHu: str) -> str:\n return ZbWC.sub('<[^>]+>', '', KCHu)", "def gg3k(input):\n p8Nh = ZbWC.compile('<.*?>')\n Bopb = ZbWC.sub(p8Nh, '', i...
[ "0.8686408", "0.85757947", "0.85705745", "0.85430354", "0.8502028", "0.8502028", "0.84781927", "0.84687054", "0.8459709", "0.84364295", "0.84364295", "0.84364295", "0.84364295", "0.84364295", "0.84364295", "0.8418534", "0.8418534", "0.8418534", "0.83890915", "0.83797735", "0....
0.837481
20
Checks if all mines have been flagged.
def kTv5(YKHO): return YKHO.mines_found == YKHO.mines
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q1Ui(YKHO):\n while YKHO.mine_variables:\n i_xa = YKHO.mine_variables.pop(0)\n YKHO._flags.add((i_xa.row, i_xa.column))", "def kTv5(YKHO) -> bool:\n return YKHO.mines_found == YKHO.mines", "def Zsrv(YKHO):\n YKHO.minefield_grid.revealAllMines()", "def Ukgb(YKHO):\n c9d7 = set()\...
[ "0.75215626", "0.6754252", "0.6718773", "0.6704077", "0.6528909", "0.63343984", "0.6244706", "0.60936314", "0.6079671", "0.60773295", "0.6073017", "0.6057064", "0.60473925", "0.60288286", "0.60249376", "0.6004857", "0.59933877", "0.5987422", "0.5986069", "0.59817356", "0.5972...
0.67865825
3
Returns a set of all cells in self.cells known to be mines (if cells = count) and passes them to mark_mine.
def Ukgb(YKHO): c9d7 = set() if len(YKHO.cells) == YKHO.count: for VmPb in YKHO.cells: c9d7.add(VmPb) for VmPb in c9d7: YKHO.mark_mine(VmPb) return c9d7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ukgb(YKHO):\n if YKHO.count == len(YKHO.cells):\n return YKHO.cells.copy()\n else:\n return set()", "def Ukgb(YKHO):\n return YKHO.cells if YKHO.count == len(YKHO.cells) else set()", "def Ukgb(YKHO):\n if len(YKHO.cells) == YKHO.count:\n return YKHO.cells\n else:\n ...
[ "0.8407582", "0.83727914", "0.8328241", "0.8228559", "0.809146", "0.8043389", "0.78140336", "0.6960264", "0.6945625", "0.6868842", "0.67892706", "0.67783254", "0.66624254", "0.6651692", "0.6541423", "0.6507498", "0.6502987", "0.6443234", "0.6443234", "0.6443234", "0.6443234",...
0.8539616
0
Returns a random move to make on the Minesweeper board.
def Qy5L(YKHO): EY2w = set() for YRbF in range(0, YKHO.height): for r845 in range(0, YKHO.width): if (YRbF, r845) in YKHO.moves_made: continue if (YRbF, r845) in YKHO.mines: continue EY2w.add((YRbF, r845)) if len(EY2w) != 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hlcE(iBIi):\n pass", "def Qy5L(YKHO):\n try:\n BZN_ = (YKHO.board - YKHO.moves_made - YKHO.mines).pop()\n except KeyError:\n BZN_ = None\n return BZN_", "def Qy5L(YKHO) -> mb3R:\n ZpiV = YKHO._full_board - YKHO.moves_made - YKHO.mines\n if ZpiV:\n return tuKI.choice(t...
[ "0.83953744", "0.80013394", "0.79414326", "0.78847927", "0.77622", "0.7760161", "0.7743173", "0.76855475", "0.7664029", "0.76081556", "0.7585635", "0.7574861", "0.7546561", "0.7539903", "0.7506395", "0.75032026", "0.75032026", "0.7468366", "0.74615425", "0.74346465", "0.72877...
0.7814186
4
Return True if the CompletionStatus of the Section or List Item specified by the given section_id and list_item_id is COMPLETED or INDIVIDUAL_RESPONSE_REQUESTED, else False.
def YDGo(YKHO, NHWH: str, W1be: str | None=None) -> bool: return (NHWH, W1be) in YKHO.section_and_repeating_blocks_progress_keys(statuses={woQv.COMPLETED, woQv.INDIVIDUAL_RESPONSE_REQUESTED})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KsId(YKHO, VlT4: str, NHWH: str, W1be: str | None=None) -> bool:\n sPBL = False\n uiNE = Y5P7(NHWH, W1be)\n if uiNE in YKHO._section_and_repeating_blocks_progress:\n if YKHO._section_and_repeating_blocks_progress[uiNE].status != VlT4:\n sPBL = True\n YKHO._section_and_repe...
[ "0.703682", "0.61661935", "0.61131155", "0.60116667", "0.5913373", "0.5744796", "0.5673803", "0.55373234", "0.5512334", "0.5497927", "0.5489715", "0.5473369", "0.54724586", "0.54208255", "0.5416879", "0.5416675", "0.53899384", "0.5374441", "0.5365078", "0.5342223", "0.5337163...
0.77999556
0
Draw square boxes on image
def do6P(LNo8, oUSw, zuY6=(255, 255, 255)): for FlUN in oUSw: XC5k.rectangle(LNo8, (FlUN[0], FlUN[1]), (FlUN[2], FlUN[3]), zuY6, 3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(LNo8, oUSw):\n for FlUN in oUSw:\n C1GJ = FlUN['box']\n o4D3, ajwV, si3g, skBL = BfDw.bounding_box_coords(C1GJ, LNo8)\n XC5k.rectangle(LNo8, (int(o4D3), int(si3g)), (int(ajwV), int(skBL)), (125, 255, 51), thickness=2)", "def ADtX(LNo8, FlUN, qfpW):\n XC5k.rectangle(LNo8, (FlUN...
[ "0.75748545", "0.7451528", "0.7427231", "0.7405685", "0.73488396", "0.73215646", "0.7308953", "0.73078245", "0.7283391", "0.72626346", "0.7252724", "0.7251634", "0.7249556", "0.72208875", "0.7199149", "0.71391475", "0.7129244", "0.7107083", "0.7077816", "0.70373815", "0.70302...
0.77007425
0
Return the current hash.
def dKPB(YKHO) -> bytes: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OoXC(YKHO):\n return YKHO.hash", "def uk0M(YKHO):\n return YKHO.hash", "def OoXC(YKHO):\n return YKHO._hash", "def OoXC(YKHO):\n return YKHO.__hash", "def OoXC(YKHO):\n return YKHO.hasher.hexdigest()", "def uk0M(YKHO):\n pass", "def aJZC(YKHO):\n return YKHO.active_buffer_hash_...
[ "0.84695405", "0.84040856", "0.83554536", "0.82941735", "0.82245994", "0.81567097", "0.81090635", "0.8031999", "0.7981279", "0.7967636", "0.78917587", "0.78720003", "0.78720003", "0.78127384", "0.7741757", "0.7621693", "0.7575109", "0.75719154", "0.7550111", "0.7502967", "0.7...
0.0
-1
All of these loss will penalize l1 > l2, i.e. ground truth label is l1 < l2.
def eDQL(mWFP, qHDB): if qHDB == 'embed': return lambda jtyf, V70B, yzQ0: yzQ0 * FZeT[mWFP](jtyf, V70B) elif qHDB == 'infinite': return FZeT[mWFP + '_infinite'] return FZeT[mWFP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OCIG(my6U, HLds, UXqs, MVIL):\n I_5V = ZylS.reduce_sum(ZylS.pow(my6U - HLds, 2), 1, keepdims=True)\n cMz7 = ZylS.square(ZylS.maximum(MVIL - I_5V, 0))\n return ZylS.reduce_mean(UXqs * I_5V + (1 - UXqs) * cMz7) / 2", "def pD1a(YKHO):\n with QpfX.eager_mode():\n lULz = oyIN.random.rand(5, 10)...
[ "0.6766669", "0.6756067", "0.6693348", "0.6665979", "0.6596204", "0.65901953", "0.6471364", "0.6459297", "0.64220625", "0.6413102", "0.6408864", "0.6389465", "0.6383146", "0.63537264", "0.63444835", "0.633046", "0.6318884", "0.62805915", "0.6269533", "0.62683284", "0.6256162"...
0.0
-1
Get the transformation used for drawing xaxis labels, which will add the given amount of padding (in points) between the axes and the label. The xdirection is in data coordinates and the ydirection is in axis coordinates. Returns a
def _SR7(YKHO, U_zW): return (YKHO.get_xaxis_transform(which='tick1') + zBuo.ScaledTranslation(0, -1 * U_zW / 72.0, YKHO.figure.dpi_scale_trans), 'top', 'center')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _SR7(YKHO, U_zW):\n lQs7 = I8kJ.rcParams['xtick.alignment']\n return (YKHO.get_xaxis_transform(which='tick1') + zBuo.ScaledTranslation(0, -1 * U_zW / 72.0, YKHO.figure.dpi_scale_trans), 'top', lQs7)", "def GSJa(YKHO, U_zW):\n lQs7 = I8kJ.rcParams['xtick.alignment']\n return (YKHO.get_xaxis_transf...
[ "0.7187167", "0.6950452", "0.6673272", "0.6664853", "0.65954447", "0.6592598", "0.6592598", "0.62569594", "0.6196854", "0.61244404", "0.6030083", "0.60200804", "0.60200804", "0.5989452", "0.59660065", "0.59660065", "0.5964043", "0.5959895", "0.58865607", "0.5835193", "0.58195...
0.707181
1
Recompute the data limits based on current artists.
def QAHl(YKHO): YKHO.dataLim.ignore(True) YKHO.ignore_existing_data_limits = True for zFiD in YKHO.lines: YKHO._update_line_limits(zFiD) for XP5J in YKHO.patches: YKHO._update_patch_limits(XP5J)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RWR_(YKHO, Cc00):\n print('define_slice: updating limits var: std_name {}'.format(Cc00.std_name))\n YKHO.limits.update({Cc00.std_name: Cc00.data[:]})\n if 'lat' in YKHO.limits.keys() and 'lon' in YKHO.limits.keys():\n '\\n if lat and lon are read in, define new keys ilat and ilon\\n ...
[ "0.6128787", "0.6075403", "0.6042829", "0.6013957", "0.6000131", "0.5920033", "0.59095347", "0.5882987", "0.5848113", "0.5810253", "0.5801829", "0.5714553", "0.5636629", "0.5634907", "0.56262624", "0.5604469", "0.559554", "0.5547035", "0.55144644", "0.5495764", "0.54806674", ...
0.7087354
0
Sets up xaxis ticks and labels that treat the x data as dates. tz is the time zone to use in labeling dates. Defaults to rc value.
def vHB_(YKHO, yl4j=None): YKHO.xaxis.axis_date()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vHB_(YKHO, yl4j=None):\n YKHO.xaxis.axis_date(yl4j)", "def gFE4():\n QrM1.xlabel('Date')\n GOzt, Crrw = QrM1.xticks()\n QrM1.setp(Crrw, rotation=90)", "def Iuuj(YKHO, yl4j=None):\n YKHO.yaxis.axis_date()", "def Iuuj(YKHO, yl4j=None):\n YKHO.yaxis.axis_date(yl4j)", "def nblW(YKHO, LZpg...
[ "0.7543474", "0.7089098", "0.61350805", "0.61261785", "0.6123119", "0.59247714", "0.59108883", "0.58450043", "0.5822854", "0.57785153", "0.5764466", "0.5740538", "0.5725103", "0.56178886", "0.560496", "0.55738753", "0.55596006", "0.5538473", "0.5485539", "0.54847676", "0.5448...
0.76009595
0
Get the title text string.
def Upwb(YKHO): return YKHO.title.get_text()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Upwb(YKHO):\n return YKHO.get_string('getTitle', [])", "def Upwb(YKHO):\n return YKHO.get_string('getTitle', [])", "def Upwb(YKHO):\n return YKHO._title", "def Upwb(YKHO):\n return YKHO._title", "def Upwb(YKHO) -> str:\n return YKHO._title", "def Upwb(YKHO) -> str:\n return YKHO.tit...
[ "0.8357242", "0.8357242", "0.828082", "0.828082", "0.8245751", "0.823963", "0.823963", "0.8218044", "0.8218044", "0.82003015", "0.81959784", "0.81959784", "0.81959784", "0.8195669", "0.8195669", "0.81807435", "0.81807435", "0.81807435", "0.81807435", "0.81807435", "0.81807435...
0.8704539
0
pseudocolor plot of a 2D array Experimental; this is a version of pcolor that does not draw lines, that provides the fastest possible rendering with the Agg backend, and that can handle any quadrilateral grid.
def DC49(YKHO, *qIxc, **B2fa): if not YKHO._hold: YKHO.cla() Cwt5 = B2fa.pop('alpha', None) CkYf = B2fa.pop('norm', None) iMGt = B2fa.pop('cmap', None) MynD = B2fa.pop('vmin', None) n4wC = B2fa.pop('vmax', None) if CkYf is not None: assert isinstance(CkYf, Ka7R.Normalize) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uv9E(ezWE, K785={}):\n LZpg = QrM1.figure(figsize=(10, 10))\n aNZO = LZpg.add_subplot(111)\n aNZO.set_xlim(0, ezWE.shape[1])\n aNZO.set_ylim(0, ezWE.shape[0])\n aNZO.set_xticks([])\n aNZO.set_yticks([])\n for YRbF in range(ezWE.shape[0]):\n aNZO.plot([0, ezWE.shape[1]], [YRbF, YRbF]...
[ "0.59449285", "0.5780565", "0.5769032", "0.5749402", "0.5699085", "0.56458706", "0.56446", "0.5606631", "0.55584615", "0.5535787", "0.55331933", "0.5496821", "0.5476432", "0.54609925", "0.5460273", "0.54193836", "0.5385579", "0.5361693", "0.5334821", "0.53324336", "0.53274095...
0.5099329
52
Convert timestamp in microseconds to timestamp in seconds.
def noW8(E3oo): return int(E3oo) // 1000000
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dYl_(fa_w, format='%Y-%m-%d %H:%M:%S'):\n return qcWV.datetime.fromtimestamp(fa_w // 1000000).strftime(format)", "def naOj(a1PO):\n return int((a1PO - QXXU).total_seconds() * 1000000.0)", "def MTrK(E3oo):\n U34r = list(filter(None, ZbWC.split('[\\\\.|Z]{1}', E3oo))) + [0]\n return round((qcWV.d...
[ "0.7697564", "0.7574528", "0.7532311", "0.73984224", "0.7291131", "0.7183867", "0.71776855", "0.7177591", "0.7127805", "0.7116219", "0.71071213", "0.7054567", "0.70213217", "0.69647986", "0.69200593", "0.69094014", "0.6898701", "0.6868855", "0.68562967", "0.6842662", "0.68235...
0.0
-1
Initialize the hash chain.
def xEtJ(YKHO): bQjt = YKHO._start_ele YKHO.entries.append(YKHO._start_ele) for bGrB in range(YKHO._length - 1): xn5b = YKHO._hash_func.new(bQjt).digest() YKHO.entries.append(xn5b) bQjt = xn5b YKHO._next_ele_ptr = YKHO._length - 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B6kz(YKHO):\n pass", "def FIMM(YKHO, GReN):\n YKHO.hash_args = GReN", "def FIMM(YKHO):\n YKHO.hash = 2069\n YKHO.hashMap = [None for bGrB in range(YKHO.hash)]", "def FIMM(YKHO):\n YKHO.hash = {}", "def FIMM(YKHO, eNCK=None):\n YKHO.__set = YKHO.build(eNCK) if eNCK and len(eNCK) > 1 el...
[ "0.77723676", "0.7254859", "0.7185921", "0.71845907", "0.70682424", "0.6934281", "0.68688536", "0.68462783", "0.6830153", "0.6815501", "0.6796876", "0.6792944", "0.67773813", "0.66540134", "0.6647937", "0.66351336", "0.6626732", "0.6600128", "0.6562462", "0.653238", "0.650184...
0.77715313
1
Return the currently used element or 'None'.
def OTFx(YKHO, lUSq=False): if YKHO._next_ele_ptr < 0 or YKHO._next_ele_ptr >= YKHO._length - 1: return None _pUq = YKHO.entries[YKHO._next_ele_ptr + 1] if lUSq: return b9mO(_pUq) return _pUq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A93t(YKHO):\n if YKHO.widget_count > 0:\n return YKHO.widgets[YKHO.current]\n else:\n return None", "def jvSB(YKHO):\n return YKHO.items[YKHO._index] if YKHO.items else None", "def tlxW(YKHO):\n if YKHO.topindex == -1:\n return None\n else:\n return YKHO.element[Y...
[ "0.6933256", "0.6836338", "0.6795083", "0.67104757", "0.66808665", "0.66493917", "0.6561698", "0.6548803", "0.6529453", "0.6450077", "0.6440944", "0.6435681", "0.6432922", "0.6432922", "0.6432922", "0.6432922", "0.64135385", "0.64022183", "0.63813424", "0.63666046", "0.634155...
0.68562454
1
Setup logging config to log into terminal & log file. Just execute set_logging(logging_level, log_file) and start of the script & every time when logging will use this config.
def Tt6t(xiS5, R5Jy): G9jH.basicConfig(format='%(asctime)s %(levelname)s %(message)s', filename=R5Jy, datefmt='%m/%d/%Y %H:%M:%S', level=ZkgV(xiS5)) TgL8 = G9jH.StreamHandler() TgL8.setFormatter(G9jH.Formatter(G9jH.BASIC_FORMAT)) G9jH.getLogger().addHandler(TgL8) G9jH.debug('logging is setup')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tqPq():\n G9jH.config.fileConfig('config/logging.conf')", "def tqPq(GPtr):\n Ga6V = G9jH.FileHandler(GPtr.log_file)\n Ga6V.setLevel(qigo[h13y])\n Npgh = G9jH.StreamHandler()\n Npgh.setLevel(qigo[h13y])\n VISv = G9jH.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')\n S9wr...
[ "0.8222403", "0.78534734", "0.78267854", "0.77742296", "0.7759017", "0.7749933", "0.77482045", "0.7724269", "0.77037925", "0.7652914", "0.7650198", "0.76484585", "0.7620801", "0.7620801", "0.76088536", "0.75840247", "0.7569466", "0.7567401", "0.7560163", "0.7558763", "0.75466...
0.74797255
27
Test if the address is contained within any of the addressSets in this collection. address address to test. true if addr exists in the set, false otherwise.
def sjXf(YKHO, UTX6: ghidra.program.model.address.Address) -> bool: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pgSp(YKHO, UTX6: int) -> bool:\n return UTX6 in YKHO.addresses_set", "def CXfU(YKHO, frOM, vcn7):\n if not frOM:\n return True\n if not vcn7:\n return False\n for i9YH in vcn7:\n jmVR = False\n for KM4o in frOM:\n if i9YH.subnet_of(KM4o):\n jm...
[ "0.7316678", "0.7207962", "0.6983596", "0.67860997", "0.67633224", "0.6686549", "0.6653353", "0.6597082", "0.63218427", "0.6275522", "0.62599516", "0.6180357", "0.6104939", "0.6067878", "0.60585696", "0.60397714", "0.60207033", "0.60173005", "0.59920114", "0.5955051", "0.5951...
0.70696694
2
Finds the first address in this collection that is also in the given addressSet. set the addressSet to search for the first (lowest) common address. the first address that is contained in this set and the given set.
def jCb2(YKHO, set: ghidra.program.model.address.AddressSetView) -> RnTg.program.model.address.Address: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DGYa(YKHO) -> RnTg.program.model.address.AddressSet:\n ...", "def heBg(YKHO) -> RnTg.program.model.address.Address:\n ...", "def WlcM(YKHO, set: ghidra.program.model.address.AddressSetView, SW_g: bool) -> RnTg.program.database.map.AddressKeyIterator:\n ...", "def joqQ(YKHO):\n if not YKHO._li...
[ "0.5678181", "0.54848576", "0.54777086", "0.5341977", "0.529314", "0.5250708", "0.5205899", "0.5203645", "0.5172868", "0.5150607", "0.51383954", "0.5135364", "0.5092184", "0.5062233", "0.50465524", "0.50333387", "0.50333387", "0.50143886", "0.50072753", "0.5000354", "0.499945...
0.8418678
0
Returns a single AddressSet containing the union of all the addressSetViews in the collection.
def DGYa(YKHO) -> RnTg.program.model.address.AddressSet: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b65I(YKHO, *wl6z):\n Npih = [Elif._set if isinstance(Elif, NaFD) else Elif for Elif in wl6z]\n RE7Y = YKHO._set.union(*Npih)\n return NaFD(RE7Y)", "def b65I(YKHO, twyM):\n if not isinstance(twyM, Ly3T):\n raise TypeError('other_set is not a RangeSet')\n return Ly3T(set(YKHO.ranges + twy...
[ "0.61041325", "0.6025397", "0.58140415", "0.5759917", "0.56897205", "0.5639169", "0.5622612", "0.5618792", "0.55913514", "0.5532352", "0.5491538", "0.547615", "0.5475708", "0.5466072", "0.5462989", "0.5458763", "0.5437934", "0.5437161", "0.54173756", "0.54042673", "0.5399024"...
0.6994533
0
Returns the largest address in this collection or null if the collection is empty. the largest address in this collection or null if the collection is empty.
def uAiw(YKHO) -> RnTg.program.model.address.Address: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s3Gx(YKHO):\n if not YKHO._list:\n return None\n return YKHO._list[-1].maximum_address", "def y31D(YKHO):\n if YKHO._sorted_list:\n return YKHO._sorted_list[-1].max_addr\n return None", "def y31D(YKHO) -> int:\n return YKHO.all_objects[-1].max_addr", "def jL7S(YKHO):\n ret...
[ "0.83025086", "0.82255405", "0.71968085", "0.7087493", "0.6750134", "0.67328215", "0.6717025", "0.66810477", "0.66696686", "0.6485324", "0.64783984", "0.6467122", "0.64445096", "0.6380885", "0.637615", "0.6298585", "0.6274833", "0.62527674", "0.6230246", "0.6190382", "0.61664...
0.7156601
3
Returns true if all the AddressSets in this collection are empty. true if all the AddressSets in this collection are empty.
def A4KR(YKHO) -> bool: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n for bGrB in YKHO:\n return True\n else:\n return False", "def FBfn(YKHO) -> bool:\n return len(YKHO._contains) == 0", "def FBfn(YKHO) -> bool:\n return len(YKHO._contains) == 0", "def FBfn(YKHO):\n lsmZ = super(HzOW, YKHO).is_empty()\n return all([lsmZ] + [KM...
[ "0.6930672", "0.687248", "0.687248", "0.6863113", "0.6770024", "0.6743466", "0.6726991", "0.6726006", "0.6713974", "0.6695035", "0.66729975", "0.6636369", "0.66283256", "0.6624803", "0.6620828", "0.6619845", "0.6605309", "0.6574163", "0.65659755", "0.65627474", "0.65615404", ...
0.0
-1
Sets the liveness_probe of this ContainerResp.
def fA9I(YKHO, fA9I): YKHO._liveness_probe = fA9I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fA9I(YKHO):\n return YKHO._liveness_probe", "def KHlP(YKHO, KHlP):\n YKHO._readiness_probe = KHlP", "def OQfx(YKHO) -> l1oh:\n bIwZ = 9216\n Ggta = {'httpGet': {'path': '/api/health', 'port': bIwZ}, 'initialDelaySeconds': 60, 'timeoutSeconds': 30, 'failureThreshold': 10}\n fA9I = DESy._make_...
[ "0.6467597", "0.64628047", "0.6459657", "0.6418248", "0.5681994", "0.5326659", "0.5326659", "0.52928877", "0.5214715", "0.4896534", "0.4896534", "0.48501188", "0.48376855", "0.48118317", "0.47631952", "0.4726057", "0.47233394", "0.47047463", "0.46750087", "0.46750087", "0.460...
0.82575864
0
Gets the readiness_probe of this ContainerResp.
def KHlP(YKHO): return YKHO._readiness_probe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IBj1(YKHO) -> l1oh:\n bIwZ = 9216\n Ggta = {'httpGet': {'path': '/api/health', 'port': bIwZ}, 'initialDelaySeconds': 10, 'periodSeconds': 10, 'timeoutSeconds': 5, 'successThreshold': 1, 'failureThreshold': 3}\n KHlP = DESy._make_readiness_probe(bIwZ)\n YKHO.assertDictEqual(Ggta, KHlP)", "def mUHG...
[ "0.6947608", "0.69459623", "0.64006263", "0.605738", "0.5892244", "0.58070976", "0.5768972", "0.57508177", "0.5735426", "0.5733696", "0.5626652", "0.5568294", "0.55298865", "0.5498283", "0.5492262", "0.5492262", "0.5473725", "0.54594356", "0.54251117", "0.53988606", "0.538389...
0.8083194
0
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Removes all newline characters from elements in a list, but specifically tailored for the headers.
def FxvF(WBPg): return [str(WKvO).strip() for WKvO in WBPg if WKvO != '\n']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def izCP(aqea):\n vFaD = []\n for ZfUD in aqea:\n vFaD.append(ZbWC.sub('\\n', '', ZfUD))\n return vFaD", "def XemR(vU5P):\n return [bGrB.strip() for bGrB in vU5P]", "def b_P3(YKHO, VxuA):\n if '\\n' in VxuA[-1]:\n VxuA[-1] = VxuA[-1][:-1]\n for d6pt, WBPg in enumerate(VxuA):\n ...
[ "0.73390454", "0.6663014", "0.6584757", "0.6576556", "0.6574082", "0.6488844", "0.6475654", "0.64323336", "0.64197886", "0.6319194", "0.62761706", "0.62693715", "0.6259397", "0.62456113", "0.61490405", "0.61380786", "0.6124106", "0.6050545", "0.60466635", "0.6012122", "0.6003...
0.6952892
1
Retrieve all categories available in the FDroid store at the moment. Returns list The categories as a list of Objects.Category class objects.
def LeZt(YKHO): _AKB = kIUb.Category() _AKB.id = _AKB.name = 'F-Droid' _AKB.dataUrl = '' S0MI.info('Initialized Dummy Category "F-Droid"') return [qZuN(_AKB)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YwiI(YKHO):\n return YKHO._dApi.getCategoryList()", "def LH1I(YKHO) -> x1iM[qZuN]:\n return YKHO.categories", "def rNmM():\n return qZuN.objects.all()", "def LQuW(YKHO):\n return YKHO.categories.all()", "def LQuW(YKHO):\n return YKHO.categories.all()", "def LU07(Emd4):\n return LeZt...
[ "0.83329856", "0.8314912", "0.83013177", "0.829777", "0.829777", "0.82536894", "0.82436687", "0.8081855", "0.8062131", "0.8034581", "0.8029267", "0.80055696", "0.800011", "0.7896018", "0.78416246", "0.78105307", "0.77555805", "0.7753142", "0.77129835", "0.7675947", "0.7656135...
0.7077101
76
Given a category, returns a list of its subcategories. Free is only there to ensure PlayStore compatibility.
def puzp(YKHO, Ghho, ftQ2=True): geh0 = NMoC(YXRQ + '/en/packages') if geh0.status_code != 200: raise qAKW(geh0.reason) return YKHO._parse_categories(geh0, Ghho)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vALo():\n LeZt = seu5.browse()\n for Ghho in LeZt.category:\n z1Rg = KVWQ(Ghho.dataUrl)\n xDcj = _Ibt(z1Rg.query)\n CwLm = xDcj['cat'][0]\n puzp = seu5.browse(cat=CwLm)\n if len(puzp.category) > 0:\n for MctT in puzp.category:\n z1Rg = KVWQ(Mct...
[ "0.75824344", "0.7069149", "0.7026922", "0.6954591", "0.6770623", "0.6654946", "0.6613972", "0.66012377", "0.65515643", "0.6506102", "0.6374788", "0.63412917", "0.63212115", "0.62544775", "0.6243621", "0.6192169", "0.6190678", "0.6173169", "0.61721", "0.609604", "0.60762626",...
0.77625656
0
Check that starlettelambda works with CORS middleware.
def pqfE(): tvqc = {'httpMethod': 'GET', 'path': '/', 'headers': {'Origin': 'https://example.com'}, 'requestContext': {}, 'queryStringParameters': {'hello': 'world'}} geh0 = DCgT(event=tvqc, context={}) CgYo(geh0) MOPg = geh0['headers'] assert 'x-hello' in MOPg assert 'access-control-allow-origi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IKQT(eHNT):\n\n @zaGL(eHNT)\n def XIpm(*qIxc, **B2fa):\n YKHO = qIxc[0]\n QePW = qIxc[1]\n hLRM = QePW.getHeader('Origin')\n if hLRM:\n if '*' in YKHO.config['cors_origins']:\n QePW.setHeader('Access-Control-Allow-Origin', '*')\n elif hLRM ...
[ "0.71288234", "0.6935494", "0.6865852", "0.67728096", "0.66801447", "0.66345817", "0.6600749", "0.65947104", "0.65907824", "0.65875053", "0.65241176", "0.6494033", "0.64937043", "0.6464748", "0.64539194", "0.6447868", "0.63829345", "0.6372768", "0.63547724", "0.62845254", "0....
0.7038722
1
Make and return a copy of self.
def jth9(YKHO): LqDO = YKHO.shim_context['shim_stack'].copy() kNmb = YKHO.shim_context['optional_args'] zpc3 = bDVY(LqDO, kNmb) return zpc3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QyFW(YKHO):\n return jth9.deepcopy(YKHO)", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def FzJk(YKHO):\n return YKHO", "def jth9(YKHO):\n return YKHO", "def jth9(YKHO):\n return YKHO._...
[ "0.88175935", "0.86754936", "0.86754936", "0.86754936", "0.86754936", "0.86754936", "0.86748993", "0.8650419", "0.85465634", "0.85465634", "0.85465634", "0.85465634", "0.85465634", "0.8502343", "0.84931475", "0.84702164", "0.84702164", "0.8436671", "0.8436671", "0.8430249", "...
0.0
-1
Stores object values to a json file at a given path
def nFMl(YKHO, object, pmON): VqRE = Hy7s.path.join(YKHO.base_path, pmON) with open(VqRE, 'w+') as _RR0: qQXR.dump(object.__dict__, _RR0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uP8n(YEnM, pmON):\n with open(pmON, 'w') as eHNT:\n qQXR.dump(YEnM, eHNT)", "def uyD2(YEnM, pmON):\n with open(pmON, 'w', encoding='utf-8') as Xz4u:\n qQXR.dump(YEnM, Xz4u, indent=4)\n Xz4u.close()", "def eGRE(YKHO, pmON):\n with open(pmON, 'w') as _RR0:\n qQXR.dump(YKH...
[ "0.80832636", "0.8079393", "0.77777696", "0.7766658", "0.77619755", "0.77562034", "0.7715261", "0.7705216", "0.76984984", "0.7686542", "0.76635396", "0.76398104", "0.7573335", "0.75713885", "0.7537366", "0.753104", "0.75282764", "0.7518862", "0.7514544", "0.7494842", "0.74948...
0.0
-1
initialise the class with a CNV
def FIMM(YKHO, atts): YKHO.cnv = atts
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, atts):\n YKHO.cnv = atts", "def FIMM(YKHO, OeNU):\n YKHO.__dict__['_V'] = OeNU", "def FIMM(YKHO, *qIxc):\n PZpo.TCnComV_swiginit(YKHO, PZpo.new_TCnComV(*qIxc))", "def FIMM(YKHO, Nq1b=1, WZcn='rbf', KMvS='scale'):\n YKHO.classifier = _VRL(C=Nq1b, kernel=WZcn, gamma=KMvS)", "def FI...
[ "0.88553613", "0.7070877", "0.68507195", "0.6790264", "0.6769048", "0.66482687", "0.65863943", "0.65524495", "0.6551015", "0.65277445", "0.64958185", "0.6436012", "0.6387298", "0.6386271", "0.63621545", "0.63385665", "0.630658", "0.6297002", "0.62820864", "0.6279351", "0.6275...
0.8775137
1
Get all entity mask tokens as a list.
def lIXe(): oGem = [] ERD5 = list(si3H.SUBJ_NER_TO_ID.keys())[2:] gCo2 = list(si3H.OBJ_NER_TO_ID.keys())[2:] oGem += ['SUBJ-' + tTpl for tTpl in ERD5] oGem += ['OBJ-' + tTpl for tTpl in gCo2] return oGem
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hOin(YKHO):\n return YKHO.convert_tokens_to_ids(YKHO.mask_token)", "def lIXe():\n oGem = []\n gCo2 = list(si3H.OBJ_NER_TO_ID.keys())[2:]\n oGem += [tTpl.lower() for tTpl in gCo2]\n print(oGem)\n return oGem", "def dP1x(Emd4, BWXx):\n kcsN = []\n try:\n Nqlg = BWXx.split('\\n'...
[ "0.6678801", "0.65037113", "0.6445733", "0.6352774", "0.62243766", "0.6205534", "0.61581326", "0.61397123", "0.6050442", "0.6030248", "0.59706795", "0.59705704", "0.59340954", "0.591038", "0.5882293", "0.5879821", "0.5798032", "0.5792396", "0.57576853", "0.574414", "0.5738908...
0.6536583
1
Get the command name used from the command line.
def zTot(E0cB): return E0cB[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PMSI(YKHO):\n Asoz = None\n asrI = HwRy.argv\n J7Ij = False\n for d7pR in asrI:\n if J7Ij is True:\n Asoz = d7pR\n break\n if d7pR == 'console':\n J7Ij = True\n return Asoz", "def Asoz():\n return Hy7s.path.basename(Hy7s.path.dirname(xAKo)).rep...
[ "0.8034983", "0.8033995", "0.78830194", "0.7779387", "0.76098484", "0.75172555", "0.7481803", "0.74374723", "0.7404965", "0.73621356", "0.7360566", "0.7247849", "0.7209159", "0.71787304", "0.71745735", "0.71108675", "0.69597816", "0.695725", "0.6902979", "0.68768096", "0.6849...
0.73975915
9
Performs gradient descent using the supplied data, learning rate, number of iterations, and LASSO penalty (lambda). The code for this should be structurally the same as gradient_descent, with the exception that after each iteration you will pass the weight vector through the LASSO projection. Start with weights = the z...
def yBi6(nPrm, Cwt5, OnWS, YiU0): blJQ = oyIN.zeros(nPrm.shape[1]) for YRbF in range(OnWS): blJQ = blJQ - Cwt5 * ICX2(nPrm, blJQ) for G1Hx in range(len(blJQ) - 1): if blJQ[G1Hx] > YiU0: blJQ[G1Hx] = blJQ[G1Hx] - YiU0 elif blJQ[G1Hx] < -YiU0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EWqU(Ro40, _mSQ, mVUw, EhIg):\n _mSQ[0] = _mSQ[0] - mVUw * Ro40[0]\n for r845 in range(1, len(_mSQ)):\n _mSQ[r845] -= mVUw * (Ro40[r845] + EhIg * _mSQ[r845])\n return _mSQ", "def EWqU(YKHO, b0Ix):\n aPd6 = YKHO.num_layers\n for vC9B in range(1, aPd6):\n YKHO.params['W%d' % vC9B] ...
[ "0.72930247", "0.7080006", "0.7069288", "0.6988262", "0.69223404", "0.6878862", "0.68274784", "0.67709327", "0.67409176", "0.67367846", "0.6711882", "0.6698487", "0.667878", "0.66783386", "0.66517663", "0.6621252", "0.66171503", "0.6610386", "0.65960866", "0.65959364", "0.659...
0.7899645
0
Basic moving average filter zeta = 1 > ignore prev. vals zeta = 0 > ignore current val
def L5r1(wEf2, sYhB, _gQ_): xZF_ = (1 - _gQ_) * sYhB + _gQ_ * wEf2 return xZF_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(WKvO, exwG=10, type='simple'):\n WKvO = oyIN.asarray(WKvO)\n if type == 'simple':\n yzQ0 = oyIN.ones(exwG)\n yzQ0 /= yzQ0.sum()\n qqgr = oyIN.convolve(WKvO, yzQ0, mode='full')[:len(WKvO)]\n qqgr[:exwG] = qqgr[exwG]\n else:\n qqgr = oyIN.zeros_like(WKvO)\n ...
[ "0.67573905", "0.66723365", "0.66439056", "0.6618998", "0.6609668", "0.65374005", "0.6528271", "0.65154594", "0.6510326", "0.6510326", "0.6510326", "0.6510326", "0.6494949", "0.6494028", "0.64298433", "0.64284587", "0.64257294", "0.6400253", "0.63883704", "0.63765544", "0.637...
0.8641923
0
Get total number of items in order/cart.
def RzzL(YKHO): u1mX = YKHO.orderitem_set.all() wjRY = sum([ZfUD.quantity for ZfUD in u1mX]) return wjRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gdpx(YKHO):\n GADp = 0\n for ZfUD in YKHO.get_items():\n GADp += ZfUD.quantity\n return GADp", "def QEva(YKHO):\n return YKHO._total_item_count", "def QEva(YKHO) -> float:\n return qe4Y.get(YKHO, 'total_item_count')", "def UHFx(YKHO):\n return sum([ZfUD.quantity for ZfUD in YKHO....
[ "0.83419037", "0.7937514", "0.79200053", "0.7912821", "0.7912821", "0.7867389", "0.7781126", "0.7740865", "0.77166915", "0.7665762", "0.7665762", "0.7665762", "0.7665762", "0.7665762", "0.7665762", "0.7665762", "0.7665762", "0.7665762", "0.76375115", "0.7625182", "0.7625182",...
0.77751637
7
Return the total of our order.
def h4aS(YKHO): wjRY = YKHO.product.price * YKHO.quantity return wjRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h4aS(YKHO):\n wjRY = 0\n for T4Wy in YKHO.orders:\n wjRY = wjRY + T4Wy.get_total()\n return wjRY", "def egzR(YKHO):\n wjRY = 0\n for ZfUD in YKHO.basket:\n wjRY += ZfUD.price * YKHO.basket[ZfUD]\n return wjRY", "def h4aS(YKHO):\n return YKHO.orderid.get_total_sum() * (1 +...
[ "0.88145655", "0.8514736", "0.8215068", "0.8066904", "0.8011272", "0.79811394", "0.7864846", "0.78412795", "0.7829481", "0.7825877", "0.7774239", "0.7767677", "0.77552384", "0.77354133", "0.77281415", "0.77281415", "0.77281415", "0.7722703", "0.7710476", "0.7701362", "0.76952...
0.7864335
7
Given a list of kern lines, return a normalized list. All nonmusic lines have been removed; all music lines have been normalized as specified in `normalize_line`.
def KCr5(Nqlg): Nqlg = list(filter(lambda vC9B: vC9B.strip() != '', Nqlg)) i34x = [] for zFiD in Nqlg: exwG = gGi9(zFiD) if exwG is not None: i34x.append(exwG) elif exwG == '': i34x.append('.') return i34x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO, Nqlg):\n D3sb = []\n if YKHO.allow_knn and len(YKHO.knn_orig) == 0:\n Nqlg = YKHO.avg_missing_points(Nqlg)\n for YRbF in range(0, len(Nqlg)):\n if Nqlg[YRbF][0] == '-1' or Nqlg[YRbF][1] == '-1':\n D3sb.append([-1, -1, -1, -1])\n else:\n rFcd = [(fl...
[ "0.6639411", "0.64411986", "0.6300708", "0.6160245", "0.59383035", "0.5905784", "0.5855071", "0.5810723", "0.5679635", "0.56557816", "0.56099385", "0.56041217", "0.5588414", "0.55171335", "0.55108654", "0.5506242", "0.54660785", "0.54263526", "0.5403485", "0.53984594", "0.538...
0.62143743
3