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
Opens the init editor.
def ZCA5(YKHO): Uola(YKHO.root, YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SxXT(tvqc):\n tvqc.current_buffer.open_in_editor(tvqc.cli)", "def cIx9(YKHO, i9LK):\n Yn3K.Popen(i9LK, shell=True).communicate()", "def open(YKHO):\n YKHO._command = 'open'", "def SxXT(YKHO, aS9G):\n YKHO.choose_frame.destroy()\n YKHO.master.geometry(YKHO.resize())\n YKHO.session = on8l...
[ "0.73635787", "0.6530124", "0.6349999", "0.63228106", "0.6290048", "0.6197694", "0.6036526", "0.60243505", "0.60178286", "0.5965472", "0.5890049", "0.5883924", "0.58773047", "0.58766025", "0.5871069", "0.58137065", "0.578294", "0.5776598", "0.57764345", "0.57478744", "0.57364...
0.74665225
0
Performs a safe division, returning the provided value if the denominator is 0 to avoid a divide by 0 error
def wrH4(mLGw, ciZM, bKMT=0.0): return bKMT if ciZM == 0 else mLGw / ciZM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cmwc(M6pt, UUZ1):\n try:\n return M6pt / UUZ1\n except ZeroDivisionError:\n G9jH.getLogger().error('Divide by zero!')\n G9jH.getLogger().error('It is really not a good idea.')\n raise", "def rAjW(jzdc, Fg_i):\n if Fg_i != 0:\n return jzdc // Fg_i", "def pN7q(M6pt...
[ "0.8196114", "0.8113722", "0.8066289", "0.8054077", "0.8015267", "0.79199505", "0.78153396", "0.78012794", "0.76436037", "0.7625815", "0.7607134", "0.7583292", "0.7565087", "0.73328966", "0.73079956", "0.72760665", "0.7256246", "0.72155493", "0.719444", "0.719322", "0.7181476...
0.8154627
1
Yield successive nsized chunks from l.
def AyNP(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.76458347", "0.76...
0.7815877
5
Update the canvas from a numpy array.
def bf5E(YKHO, UiEM): if len(YKHO.drop_bands) > 0: NFSP = XTiz.zeros_like(UiEM[:, :, 0]) for ZdTt in YKHO.drop_bands: UiEM[:, :, ZdTt] = NFSP YKHO.canvas_decimated_image = UiEM if YKHO.scale_to_fit_canvas: SnCn = YKHO.compute_display_scale_factor(UiEM) YKHO.displa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x6um(YKHO):\n YKHO.arrayPlotData.set_data('channel0', YKHO.array0)\n YKHO.arrayPlotData.set_data('channel1', YKHO.array1)\n YKHO.arrayPlotData.set_data('channel2', YKHO.array2)\n YKHO.arrayPlotData.set_data('channel3', YKHO.array3)\n YKHO.arrayPlotData.set_data('channel4', YKHO.array4)\n YKHO...
[ "0.692149", "0.6438751", "0.6347368", "0.6284326", "0.60679287", "0.60043323", "0.5963867", "0.5816997", "0.5806493", "0.5796366", "0.5793636", "0.5780118", "0.5765778", "0.5755655", "0.5727287", "0.5673312", "0.5608756", "0.5606167", "0.5573033", "0.5538582", "0.5529109", ...
0.6940358
0
Get the decimation factor from the canvas rectangle size.
def F3dX(YKHO, jFuk): cKLG = YKHO.canvas_rect_to_full_image_rect(jFuk) return YKHO.get_decimation_factor_from_full_image_rect(cKLG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZWX5(YKHO, cKLG):\n pvd3 = cKLG[2] - cKLG[0]\n jHsn = cKLG[3] - cKLG[1]\n CmSl = pvd3 / YKHO.canvas_ny\n UbuD = jHsn / YKHO.canvas_nx\n GbXA = max(CmSl, UbuD)\n GbXA = int(GbXA)\n if GbXA < 1:\n GbXA = 1\n return GbXA", "def D96W(YKHO, cu3H):\n KuIj = cu3H.shape[1]\n a6w6...
[ "0.6785282", "0.6428618", "0.6286547", "0.6250641", "0.6061898", "0.6061898", "0.6061898", "0.6030123", "0.59987795", "0.5946437", "0.5824077", "0.5812407", "0.5800032", "0.5795698", "0.5789064", "0.57487595", "0.5748321", "0.56569993", "0.56409323", "0.562279", "0.5616516", ...
0.74476343
0
Gets the canvas coordinates from full image coordinates in yx order.
def BkHf(YKHO, PaOP): GbXA = YKHO.decimation_factor if YKHO.scale_to_fit_canvas: GbXA = GbXA / YKHO.display_rescaling_factor Sdjd = int(len(PaOP) / 2) yvT9 = [] for YRbF in range(Sdjd): yvT9.extend((float(PaOP[2 * YRbF + 1] - YKHO.canvas_full_image_upper_left_yx[1]) / GbXA, float(PaO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8k8(YKHO, sD1m):\n return YKHO.variables.canvas_image_object.full_image_yx_to_canvas_coords(sD1m)", "def ePs5(eskh):\n return [(fxo8[1], fxo8[0]) for fxo8 in eskh]", "def eUSa(YKHO, LDcZ):\n return YKHO.variables.canvas_image_object.canvas_coords_to_full_image_yx(LDcZ)", "def Rdmq(YKHO, fi6e):\...
[ "0.7808287", "0.75504386", "0.7488789", "0.70280904", "0.7026112", "0.70233524", "0.6950263", "0.6885934", "0.68220663", "0.6816514", "0.6662937", "0.65611416", "0.6548652", "0.65472275", "0.64510536", "0.64381576", "0.6415152", "0.63798326", "0.63271713", "0.6325277", "0.629...
0.80788845
0
Sets the tool to the closest shape. Returns None
def wWla(YKHO): YKHO.variables.active_tool = CmUS.SELECT_CLOSEST_SHAPE_TOOL YKHO.variables.current_tool = CmUS.SELECT_CLOSEST_SHAPE_TOOL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WPTq(YKHO):\n YKHO.variables.active_tool = CmUS.EDIT_SHAPE_TOOL\n YKHO.variables.current_tool = CmUS.EDIT_SHAPE_TOOL", "def bOtg(YKHO):\n YKHO.variables.active_tool = CmUS.TRANSLATE_SHAPE_TOOL\n YKHO.variables.current_tool = CmUS.TRANSLATE_SHAPE_TOOL", "def dsHC(YKHO):\n YKHO.canvas().setMap...
[ "0.66435635", "0.6610835", "0.64871246", "0.648464", "0.6091421", "0.5831092", "0.5660819", "0.5590695", "0.55692357", "0.5445306", "0.54200065", "0.5410245", "0.5401045", "0.53517497", "0.5350428", "0.5342853", "0.532975", "0.5314802", "0.530485", "0.522619", "0.5204754", ...
0.8016262
0
Sets the current tool to draw arrow by clicking.
def spoA(YKHO, FtlA=None): YKHO.variables.current_shape_id = FtlA YKHO.show_shape(FtlA) YKHO.variables.active_tool = CmUS.DRAW_ARROW_BY_CLICKING YKHO.variables.current_tool = CmUS.DRAW_ARROW_BY_CLICKING
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tpTl(YKHO, FtlA=None):\n YKHO.variables.current_shape_id = FtlA\n YKHO.show_shape(FtlA)\n YKHO.variables.active_tool = CmUS.DRAW_ARROW_BY_DRAGGING\n YKHO.variables.current_tool = CmUS.DRAW_ARROW_BY_DRAGGING", "def rMxS(YKHO, eTPk=None):\n YKHO.variables.current_shape_id = eTPk\n YKHO.show_s...
[ "0.76578206", "0.6712354", "0.6681209", "0.65750676", "0.63660246", "0.6351923", "0.63361716", "0.6260625", "0.6195327", "0.6169218", "0.6162129", "0.60545754", "0.6021671", "0.59788436", "0.5970578", "0.59543896", "0.5952122", "0.5942005", "0.5898964", "0.5868352", "0.580271...
0.82416916
0
Extract list of parameters to be optimized. This function can utilize the native functions of the networks that directly provide the list of parameters, but here we additionally look at the command line arguments and see whether some options freeze certain of those parameters. By default, a list of the parameters to be...
def wOPk(Zxma, GPtr, KqpV, vNYJ='forward', XZLu=False): if KqpV == 'BP': NArs = Zxma.params if XZLu: for YRbF, XP5J in enumerate(NArs): if YRbF != 0 and GPtr.only_train_first_layer or GPtr.freeze_fw_weights or (YRbF != len(NArs) - 1 and GPtr.only_train_last_layer): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W6RH():\n wvEv = Q94u()\n qIxc = wvEv.parse_args()\n xCjU = [qIxc.raw, qIxc.enrich, qIxc.identities_load, qIxc.identities_merge, qIxc.panels]\n if not any(xCjU):\n print('No tasks enabled')\n HwRy.exit(1)\n return qIxc", "def RxR3(YKHO) -> AzJI[h8nf[str], cuzp]:\n JrTb = YKHO....
[ "0.62497723", "0.61346924", "0.6015578", "0.59578526", "0.57578444", "0.57184285", "0.5636824", "0.5628322", "0.5607508", "0.55803627", "0.55803627", "0.55803627", "0.5560631", "0.5549079", "0.5549079", "0.55214", "0.55186254", "0.54982835", "0.5481093", "0.5466355", "0.54486...
0.6359094
0
Set all the gradients to zero.
def frhb(YKHO): for K0do in YKHO._optimizer_list: K0do.zero_grad()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frhb(YKHO):\n for XP5J, TifC in YKHO.params:\n TifC.zero_()", "def frhb(YKHO):\n for xqoZ in YKHO.params:\n xqoZ.grad = None", "def frhb(YKHO):\n for XP5J, Ro40, Ty9i, EbwU, KOtB in YKHO.params:\n Ro40.zero_()", "def frhb(YKHO):\n for XP5J, Ro40, Ty9i, EbwU, KOtB in YKHO....
[ "0.8343319", "0.83069706", "0.8235486", "0.8235486", "0.82018554", "0.81880325", "0.8158045", "0.8119923", "0.79095554", "0.78224814", "0.78083587", "0.77896386", "0.77660763", "0.7739554", "0.77107763", "0.77107763", "0.77107763", "0.77089274", "0.7689539", "0.7597957", "0.7...
0.8056257
8
Get the front element.
def T7C_(YKHO): YKHO._a_to_b() return YKHO.b[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1", "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def vYJ5(YKHO):\n if YKHO.items:\n r...
[ "0.82009244", "0.79261875", "0.7852642", "0.7791182", "0.77886623", "0.75723046", "0.752337", "0.7510604", "0.7478953", "0.7379256", "0.7379256", "0.734284", "0.7323573", "0.7320296", "0.7291721", "0.72772557", "0.7269801", "0.72657627", "0.7253295", "0.72355044", "0.72213495...
0.0
-1
Returns whether the queue is empty.
def lsmZ(YKHO): return len(YKHO.a) + len(YKHO.b) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return not YKHO._queue"...
[ "0.926939", "0.92500085", "0.92354494", "0.92354494", "0.915512", "0.9097911", "0.9094347", "0.9091846", "0.9072278", "0.9053046", "0.8920022", "0.8913165", "0.8877088", "0.8843175", "0.8843175", "0.8835378", "0.88035154", "0.87576264", "0.8756864", "0.8730981", "0.8645161", ...
0.0
-1
Return the number of rejected lines
def Ge0t(YKHO): return YKHO._rejectedlines
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def btY8(YKHO) -> int:\n with YKHO.lock:\n return YKHO._lines_errored", "def b2i3(YKHO):\n jYcH = 0\n for zFiD in YKHO.body.splitlines():\n if not zFiD.startswith('-'):\n jYcH += 1\n return jYcH", "def mYql(YKHO):\n return len(YKHO._ballots) - len(YKHO._exhausted_ballots...
[ "0.66977626", "0.5955652", "0.59393525", "0.5884256", "0.58836186", "0.58721435", "0.5868433", "0.5835917", "0.5835729", "0.58338916", "0.58338916", "0.58326274", "0.58291185", "0.58124226", "0.5801271", "0.577677", "0.5728164", "0.57231474", "0.57189643", "0.57153", "0.57129...
0.71122307
0
Test the email for a new user is normalized
def saHt(YKHO): D3lj = 'scottakirschner@GMAIL.COM' CBIr = egNl().objects.create_user(D3lj, 'test123') YKHO.assertEqual(CBIr.email, D3lj.lower())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def saHt(YKHO):\n D3lj = 'test@GOOGLE.COM'\n CBIr = egNl().objects.create_user(D3lj, '212ds')\n YKHO.assertEqual(CBIr.email, D3lj.lower())", "def H6gL(YKHO):\n D3lj = 'test@RANDOMEMAIL.org'\n CBIr = egNl().objects.create_user(D3lj, password='password')\n YKHO.assertEqual(CBIr.email, D3lj.lower(...
[ "0.79984254", "0.7997281", "0.79201037", "0.78920823", "0.78920823", "0.78920823", "0.7871696", "0.78619236", "0.7858499", "0.7853585", "0.7844939", "0.7773778", "0.7771046", "0.7745209", "0.7744957", "0.7702127", "0.75698525", "0.75344014", "0.74174696", "0.7257744", "0.7147...
0.785927
8
Test creating user with no email raises error
def V97d(YKHO): with YKHO.assertRaises(ValueError): egNl().objects.create_user(None, 'test123')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q5xs(YKHO):\n with trZe.raises(ValueError) as wrFM:\n biYH.objects._create_user(None, None, False, False)\n YKHO.assertIn('email must be set', str(wrFM.value))", "def hhyC(YKHO):\n with YKHO.assertRaises(ValueError):\n egNl().objects.create_user(None, 'Test1234')", "def FfRJ(YKHO):\n...
[ "0.90313256", "0.8963383", "0.8736711", "0.8736247", "0.87256855", "0.8717645", "0.87053293", "0.87032956", "0.8700956", "0.869592", "0.86902976", "0.8681168", "0.86709315", "0.8597593", "0.85930586", "0.85868686", "0.8557775", "0.85267687", "0.8396068", "0.83576405", "0.8287...
0.87146974
10
Transform bounding boxes to be more like true bounding boxes. 'offsets' is one of the outputs of the nets.
def zAFR(YKHO, c8oy, gQVb): o4D3, si3g, ajwV, skBL = [c8oy[:, YRbF] for YRbF in range(4)] yzQ0 = ajwV - o4D3 + 1.0 MKlR = skBL - si3g + 1.0 yzQ0 = ht2j.unsqueeze(yzQ0, 1) MKlR = ht2j.unsqueeze(MKlR, 1) y_o0 = ht2j.cat([yzQ0, MKlR, yzQ0, MKlR], 1).float() * gQVb c8oy += ht2j.round(y_o0).int()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPN3(c8oy, iPPn, EZd9):\n c8oy = oyIN.array(c8oy, oyIN.float32)\n if c8oy.shape[0] == 0:\n return c8oy\n QYSp, xvJ_ = iPPn\n Jzz1, IVJu = EZd9\n c8oy[:, 0] = c8oy[:, 0] * Jzz1 / QYSp\n c8oy[:, 1] = c8oy[:, 1] * IVJu / xvJ_\n c8oy[:, 2] = c8oy[:, 2] * Jzz1 / QYSp\n c8oy[:, 3] = c8...
[ "0.6294375", "0.62389016", "0.6235039", "0.6143996", "0.6119098", "0.6060419", "0.60598797", "0.6048341", "0.60462654", "0.6044357", "0.60333943", "0.6030084", "0.59891045", "0.5913514", "0.58497196", "0.58483124", "0.58224756", "0.58200276", "0.58145607", "0.5806389", "0.577...
0.6836411
0
SETUP funcion for TestUser class, this function is executed for each function in this TestClass
def eCGt(YKHO, cuiw): RVpq = [] RVpq.append(aBDc('ADMIN', 2)) RVpq.append(aBDc('GUEST', 0)) RVpq.append(aBDc('USER', 1)) TZQP = aBDc.query.all() for CBIr in TZQP: for _bKC in RVpq: if CBIr.name == _bKC.name: RVpq.remove(_bKC) for ZP0S in RVpq: cuiw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.user_1 = mv1M()", "def Baw8(Emd4):\n Emd4.ins = mv1M()", "def Baw8(Emd4):\n Emd4.user = mv1M()\n Emd4.user.first_name = 'Kev'\n Emd4.user.last_name = 'Yo'\n Emd4.user.email = '1234@yahoo.com'\n Emd4.storage = zN1B()", "def Baw8(Emd4):\n Emd4.user_info = dict(ema...
[ "0.8078728", "0.80658495", "0.80610627", "0.7916541", "0.7902837", "0.789154", "0.78752875", "0.78639704", "0.7848155", "0.7830282", "0.78217167", "0.7819956", "0.7800205", "0.7772404", "0.7753675", "0.7753675", "0.7744824", "0.7694", "0.7690794", "0.7676174", "0.7667984", ...
0.0
-1
Return all categories in the database
def AVZI(QePW: HttpRequest) -> jnRN: Aofo = {'categories': []} LeZt = qZuN.objects.all().order_by('name') for Ghho in LeZt: c7pe = Ghho.source_set.all().order_by('name') Aofo['categories'].append({'name': Ghho.name, 'sources': []}) for JZXy in c7pe: ydkh = JZXy.feed_set.f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g02Q() -> dict:\n LeZt = p9bx.fetchall('Categories', 'id', 'name_ua')\n return LeZt", "def LQuW():\n return cuiw.query(qZuN)", "def YwiI():\n return cuiw.query(qZuN).all()", "def LQuW(YKHO):\n LeZt = YKHO.session.query(qZuN).all()\n return LeZt", "def NMoC(YKHO):\n LeZt = NCls.cate...
[ "0.8455899", "0.83973366", "0.8378107", "0.8281607", "0.8234351", "0.8036251", "0.8033548", "0.7879338", "0.78517056", "0.77666473", "0.7764305", "0.7708117", "0.7651857", "0.760926", "0.75509065", "0.7546427", "0.75412583", "0.7525386", "0.7446411", "0.73874843", "0.73716474...
0.0
-1
Extract all legal words given a piece of text
def JRK4(FUjE): V22M = [] eXeU = ZbWC.compile('\\s+') mLGw = ZbWC.compile('[0-9]') pJfd = ZbWC.compile('[^a-z]') for a1PO in eXeU.split(FUjE.lower()): if mLGw.match(a1PO): continue a1PO = pJfd.sub('', a1PO) if a1PO == '' or a1PO in NibK(): continue ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4Z4(l5Ny):\n return ZbWC.compile('\\\\w+').findall(l5Ny)", "def xqzg(l5Ny):\n return ZbWC.findall('\\\\w+', l5Ny)", "def V22M(YKHO, l5Ny):\n return ZbWC.findall('\\\\w+', l5Ny)", "def QjBH(A0cm):\n njyT = ZbWC.compile('([^\\\\d\\\\`\\\\~\\\\!\\\\@\\\\#\\\\$\\\\%\\\\^\\\\&\\\\*\\\\(\\\\)\\\\+...
[ "0.7728435", "0.74818975", "0.7397873", "0.7345839", "0.7314803", "0.7187901", "0.71779233", "0.71677214", "0.6951405", "0.6951405", "0.6918817", "0.6870601", "0.6860676", "0.68537277", "0.68344176", "0.6820462", "0.677903", "0.6751708", "0.6726445", "0.6718961", "0.66805625"...
0.7209557
5
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=45) QrM1.yticks(wIWT, KndY) if NkkI: Bcwd = Bcwd.astype...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.81936234", "0.80946803", "0.80283314", "0.80186", "0.7993046", "0.7990442", "0.79801315", "0.7974616", "0.7960565", "0.79567033", "0.7936678", "0.7933718", "0.7933456", "0.7930259", "0.79256636", "0.79236794", "0.79229367", "0.792244", "0.7922048", "0.79213953", "0.7916868...
0.0
-1
Returns the number of vertices in the graph
def WoST(YKHO): return len(YKHO.vertices)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def poMF(YKHO):\n return len(YKHO.__graph_dict.keys())", "def X7h0(YKHO):\n return YKHO._graph_state.get_num_vertices()", "def poMF(YKHO):\n return YKHO._top_exp.number_of_vertices()", "def nAk3(YKHO):\n return YKHO._nVertices", "def poMF(YKHO):\n return len(YKHO.vertices)", "def poMF(YKHO...
[ "0.88369066", "0.8754063", "0.8631447", "0.85409254", "0.849603", "0.849603", "0.8460473", "0.8460104", "0.8443322", "0.836717", "0.8364454", "0.8279424", "0.8264743", "0.82531357", "0.8013647", "0.7967211", "0.7742567", "0.7563631", "0.7554066", "0.75512934", "0.75006753", ...
0.6505012
97
returns a dictionary containing all keys/values of __dict__ of the instance
def MNRr(YKHO): Op6c = dict(**YKHO.__dict__) Op6c['__class__'] = str(type(YKHO).__name__) Op6c['created_at'] = YKHO.created_at.isoformat() Op6c['updated_at'] = YKHO.updated_at.isoformat() return Op6c
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fYl(YKHO):\n return {G1Hx: Ty9i for G1Hx, Ty9i in vars(YKHO).items()}", "def dict(Emd4):\n if Emd4._dict is None:\n Emd4._dict = {hkS8: getattr(Emd4, hkS8) for hkS8 in Emd4.keys()}\n return Emd4._dict", "def _fYl(YKHO):\n return YKHO.__dict__", "def azoT(YKHO):\n return dict(YKHO._...
[ "0.80738515", "0.8041221", "0.80328816", "0.8028484", "0.8012917", "0.8012917", "0.8012917", "0.8012917", "0.8012917", "0.8012917", "0.8012917", "0.7944696", "0.78569216", "0.7856564", "0.7816041", "0.7798094", "0.7794507", "0.77701664", "0.77198035", "0.77039766", "0.7703787...
0.0
-1
Makes a base dataframe containing the point id's, OC values, landcodes and OC range. Returns A pandas dataframe.
def C5pR(): eF7y = 'C:\\Users\\User\\Documents\\LUCAS2015_topsoildata_20200323\\LUCAS_Topsoil_2015_20200323.csv' A8fR = ['Point_ID', 'NUTS_0', 'OC'] jQ3Z = rLdf.read_csv(eF7y, usecols=A8fR) bQ6z = jQ3Z['OC'].max() for YRbF in range(20, int(bQ6z) + 1, 20): jQ3Z.loc[(jQ3Z['OC'] < YRbF) & (jQ3Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yRdj() -> rLdf.DataFrame:\n jQ3Z = rLdf.DataFrame(oyIN.random.randint(0, 1000, size=(1000, 6)), columns=list('ABCDEF'))\n return jQ3Z", "def o4pG(YKHO):\n return rLdf.DataFrame(YKHO.points)", "def phc6(efFY, JxoE, haxR, Kt_s, Tuqy):\n jQ3Z = rLdf.DataFrame()\n jQ3Z['voltage'] = efFY\n jQ3...
[ "0.636651", "0.6311015", "0.6302924", "0.622166", "0.6221641", "0.6209314", "0.604936", "0.6028788", "0.6028675", "0.60114753", "0.6004612", "0.59870476", "0.5966523", "0.5956284", "0.5955453", "0.59131944", "0.5909941", "0.59095573", "0.59094304", "0.590485", "0.5901939", ...
0.7467725
0
Returns the states that are considered neighbors.
def gN7p(_2J8, KCHu): odbI = set() for jzdc in _2J8.actions(KCHu): for Nqp_ in _2J8.transition(KCHu, jzdc): if not KCHu == Nqp_: odbI.add(Nqp_) return odbI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BTfj(YKHO):\n return YKHO.adjacent.keys()", "def A_IW(YKHO):\n return YKHO._neighbors", "def va9E(YKHO):\n d6pt = YKHO.state.index(0)\n if d6pt == 0:\n return [YKHO.move(lWrY) for lWrY in ['down', 'right']]\n elif d6pt == 1:\n return [YKHO.move(lWrY) for lWrY in ['down', 'left'...
[ "0.76460135", "0.7629951", "0.760599", "0.7536056", "0.75355035", "0.7527532", "0.7516274", "0.7495805", "0.7495805", "0.7495805", "0.7495805", "0.7463641", "0.739425", "0.7392943", "0.73888713", "0.7316986", "0.73044676", "0.72549134", "0.7163624", "0.7148069", "0.71065813",...
0.6970356
25
This function performs a POST request and returns the json body to the caller for any further processing or validation
def O1X5(bD7m, Z7D_, ijJV=None, vYBr=2.0, qutR=True, Rci7=True, Jpbe=None, MOPg=TG5T): with G4JS.Session() as cuiw: fhCF = cuiw.post(bD7m, verify=qutR, data=Z7D_, headers=MOPg, stream=False, timeout=vYBr, auth=Jpbe) fhCF.raise_for_status() if Rci7 and 'Location' not in fhCF.headers: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fDnG():\n try:\n gf_J = QePW.get_json()\n Aofo = qQXR.dumps([])\n geh0 = P4t4.response_class(response=Aofo, status=200, mimetype='application/json')\n except ValueError as e:\n geh0 = P4t4.response_class(status=400, response=str(tTpl))\n return geh0", "def m8z6(YKHO):\n ...
[ "0.73959416", "0.7187669", "0.7021658", "0.6934144", "0.69264513", "0.6893316", "0.6893117", "0.6800202", "0.67583805", "0.6754931", "0.67535293", "0.6747588", "0.6743242", "0.67350113", "0.67350113", "0.67350113", "0.6717103", "0.67164874", "0.6691029", "0.6685849", "0.66837...
0.0
-1
This function performs a POST request and returns the json body to the caller for any further processing or validation
def HORP(bD7m, Z7D_, ijJV=None, vYBr=2.0, qutR=True, Jpbe=None, MOPg=TG5T): with G4JS.Session() as cuiw: fhCF = cuiw.patch(bD7m, verify=qutR, data=Z7D_, headers=MOPg, stream=False, timeout=vYBr, auth=Jpbe) fhCF.raise_for_status() if fhCF.status_code != qed_.NO_CONTENT and fhCF.text: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fDnG():\n try:\n gf_J = QePW.get_json()\n Aofo = qQXR.dumps([])\n geh0 = P4t4.response_class(response=Aofo, status=200, mimetype='application/json')\n except ValueError as e:\n geh0 = P4t4.response_class(status=400, response=str(tTpl))\n return geh0", "def m8z6(YKHO):\n ...
[ "0.73959416", "0.7187669", "0.7021658", "0.6934144", "0.69264513", "0.6893316", "0.6893117", "0.6800202", "0.67583805", "0.6754931", "0.67535293", "0.6747588", "0.6743242", "0.67350113", "0.67350113", "0.67350113", "0.6717103", "0.67164874", "0.6691029", "0.6685849", "0.66837...
0.0
-1
This also tests the situation when Pillow doesn't detect the MIME type of the image (24948).
def _vXU(YKHO): from PIL.BmpImagePlugin import BmpImageFile try: hnIv.register_mime(BmpImageFile.format, None) eHNT = Jons() p4m8 = CFNJ('filepath_test_files/1x1.bmp') with open(p4m8, 'rb') as pD6d: ThLH = pD6d.read() pD6d = IXDF('1x1.bmp', ThLH) pD6d....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ETKF(m5r4):\n return m5r4 == 'image/jpeg' or m5r4 == 'image/png'", "def TSw_(Ux0P):\n try:\n Xn71 = hnIv.read(Ux0P)\n except IYeI:\n return False\n else:\n return Xn71.original_format in [b'JPEG', b'PNG', b'GIF']", "def dcxg(LNo8):\n Eorv = FYrf.MediaResource(image=LNo8)...
[ "0.74139035", "0.73247075", "0.70119476", "0.6962488", "0.68712837", "0.6865752", "0.6850061", "0.6809697", "0.6764392", "0.67558867", "0.6731332", "0.66869634", "0.6677816", "0.6668011", "0.66659975", "0.6643656", "0.66390574", "0.6595373", "0.65787905", "0.6573083", "0.6572...
0.67432934
10
Set the maximum severity level.
def N3Az(YKHO, N3Az=None): if N3Az is not None: if N3Az > YKHO.max_severity_level(): YKHO._max_severity_level = N3Az return YKHO._max_severity_level
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gtbb(YKHO, ABDL, BWXx):\n if BWXx < 0:\n raise AttributeError('max value should be greater than zero')\n if ABDL in YKHO.progress_maxes:\n YKHO.progress_maxes[ABDL] = BWXx", "def Bu0a(YKHO, bQ6z):\n YKHO.MaxValue = bQ6z", "def Bu0a(YKHO, bQ6z):\n YKHO.MaxValue = bQ6z", "def wgh3...
[ "0.7235557", "0.68648046", "0.68648046", "0.6813005", "0.6617635", "0.65027475", "0.64903605", "0.64765996", "0.64438653", "0.6408605", "0.6381757", "0.6338733", "0.6337771", "0.63131875", "0.63119334", "0.6222275", "0.6215984", "0.6194721", "0.61798424", "0.6151164", "0.6145...
0.7466015
0
Get or set the tolerance level.
def TNOY(YKHO, TNOY=None): if TNOY is not None: YKHO._tolerance_level = TNOY return YKHO._tolerance_level
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D1sU(YKHO):\n return YKHO._tolerance", "def D1sU(YKHO):\n return YKHO.params['tolerance']", "def D1sU(YKHO) -> float:\n return YKHO._tolerance", "def PE3V(YKHO):\n return YKHO.tolerance", "def jN_p(YKHO):\n return YKHO._get_attribute('tolerance')", "def PE3V(YKHO):\n if STnF.global_...
[ "0.6943355", "0.6937423", "0.68822503", "0.68466914", "0.66368365", "0.6609316", "0.65242106", "0.6413579", "0.62840825", "0.62409395", "0.620766", "0.61840343", "0.61502874", "0.61362535", "0.6076219", "0.60392714", "0.59328306", "0.58501434", "0.58142495", "0.5794941", "0.5...
0.87005484
0
Returns the list of valid actions that can be performed on this node.
def xASv(YKHO) -> list: if YKHO.debug: print(f'AState.actions()') if not YKHO._examined: if YKHO.debug: print(f'\tExamining...') YKHO._actions = YKHO._generate_actions() YKHO._examined = True return YKHO._actions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hOfQ(YKHO) -> x1iM[str]:\n return list(YKHO.action_map().keys())", "def eqLF(YKHO):\n return YKHO.actions", "def ovgf(YKHO):\n return YKHO.env.legal_actions()", "def CA6v(YKHO):\n return YKHO.actions", "def Q6sW(YKHO):\n return []", "def xASv(YKHO):\n return YKHO._action_list", "d...
[ "0.8495818", "0.7829729", "0.7787893", "0.77221763", "0.7660051", "0.76411813", "0.7630721", "0.75045687", "0.7444823", "0.7402748", "0.73896617", "0.7386115", "0.73518205", "0.7298488", "0.7290686", "0.72723997", "0.7265532", "0.7221811", "0.7201356", "0.7195508", "0.7195508...
0.7580352
7
This method must be overridden by any subclasses. It must return a list of all valid actions that can be performed.
def mdhT(YKHO) -> list: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hOfQ(YKHO) -> x1iM[str]:\n return list(YKHO.action_map().keys())", "def Q6sW(YKHO):\n return []", "def ovgf(YKHO):\n raise NotImplementedError", "def eqLF(YKHO):\n return YKHO.actions", "def xASv(YKHO) -> list:\n if YKHO.debug:\n print(f'AState.actions()')\n if not YKHO._examin...
[ "0.84408236", "0.8198646", "0.8012733", "0.7960869", "0.78978986", "0.7881059", "0.78804106", "0.7721662", "0.765515", "0.7653476", "0.7629059", "0.75906795", "0.75733024", "0.75540054", "0.7512063", "0.7512063", "0.7512063", "0.74996406", "0.7451246", "0.7439315", "0.7425061...
0.75501394
14
Returns the list of valid actions that can be performed on this node.
def xASv(YKHO) -> list: if YKHO.debug: print(f'StateNode.actions()') if not YKHO._examined: if YKHO.debug: print(f'\tExamining...') YKHO._edges = YKHO.state.actions() for tTpl in YKHO._edges: tTpl: eax5 tTpl.source = YKHO tTpl.cost ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hOfQ(YKHO) -> x1iM[str]:\n return list(YKHO.action_map().keys())", "def eqLF(YKHO):\n return YKHO.actions", "def ovgf(YKHO):\n return YKHO.env.legal_actions()", "def CA6v(YKHO):\n return YKHO.actions", "def Q6sW(YKHO):\n return []", "def xASv(YKHO):\n return YKHO._action_list", "d...
[ "0.8495818", "0.7829729", "0.7787893", "0.77221763", "0.7660051", "0.76411813", "0.7630721", "0.7580352", "0.75045687", "0.7444823", "0.7402748", "0.73896617", "0.7386115", "0.73518205", "0.7298488", "0.7290686", "0.72723997", "0.7265532", "0.7221811", "0.7201356", "0.7195508...
0.68325996
50
This method must be overridden by any subclasses. It must return a list of all valid actions that can be performed.
def kXRY(YKHO, XeOP: Action) -> ywwl: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hOfQ(YKHO) -> x1iM[str]:\n return list(YKHO.action_map().keys())", "def Q6sW(YKHO):\n return []", "def ovgf(YKHO):\n raise NotImplementedError", "def eqLF(YKHO):\n return YKHO.actions", "def xASv(YKHO) -> list:\n if YKHO.debug:\n print(f'AState.actions()')\n if not YKHO._examin...
[ "0.8440921", "0.8199113", "0.8013199", "0.796074", "0.789812", "0.7880795", "0.78800946", "0.7721959", "0.765502", "0.76534194", "0.7629213", "0.75921136", "0.75746316", "0.7553965", "0.7550985", "0.7511804", "0.7511804", "0.7511804", "0.75003636", "0.74517626", "0.7438982", ...
0.0
-1
Returns whether the stack is empty.
def lsmZ(YKHO) -> bool: return not YKHO.queue
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO) -> bool:\n return len(YKHO.stack) == 0", "def A4KR(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(Y...
[ "0.9207258", "0.91276956", "0.90185934", "0.9000551", "0.89481044", "0.89481044", "0.8914844", "0.8904091", "0.8881541", "0.88791907", "0.8867761", "0.87955654", "0.8768181", "0.8748518", "0.87393755", "0.8728073", "0.8719241", "0.87090814", "0.87090814", "0.85431594", "0.850...
0.0
-1
Returns whether the stack is empty.
def lsmZ(YKHO) -> bool: return len(YKHO.q) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO) -> bool:\n return len(YKHO.stack) == 0", "def A4KR(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(YKHO.stack) == 0", "def lsmZ(YKHO):\n return len(Y...
[ "0.9207349", "0.9127756", "0.90184367", "0.8999902", "0.8948574", "0.8948574", "0.89155793", "0.8903433", "0.888211", "0.88793427", "0.88675356", "0.8796078", "0.8768976", "0.8748719", "0.87394613", "0.8728192", "0.87192214", "0.87091523", "0.87091523", "0.8544101", "0.850963...
0.0
-1
Return a list of dicts representing the access points that are linked to this source.
def chlu(YKHO): chlu = [] for AU8u in YKHO.accesspoint_set.all(): chlu.append({'name': str(AU8u), 'archive_url': AU8u.archive_url, 'page_number': AU8u.trigger, 'accessed_on': AU8u.accessed_on, 'url': Rmd_('update-access-point', kwargs={'source_id': YKHO.uuid, 'pk': AU8u.uuid})}) return chlu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ruiB(YKHO):\n return YKHO.manager.get_access_list(YKHO)", "def cgVb(YKHO):\n ROjB = {}\n for nGOR, Xtuq in YKHO._seqdict.iteritems():\n for Q6uT, tXul in Xtuq.iteritems():\n ROjB[tXul['name']] = tXul['accessions']\n return ROjB", "def pV8T(YKHO) -> qe4Y.Output[h8nf[bdIy['outpu...
[ "0.67947996", "0.6453751", "0.63430655", "0.6246719", "0.6231397", "0.61666477", "0.6158926", "0.61223733", "0.610027", "0.610027", "0.610027", "0.610027", "0.610027", "0.60867274", "0.60544324", "0.60161954", "0.6012481", "0.59774995", "0.5961584", "0.5961584", "0.5936684", ...
0.63177997
3
Get user by user_id
def bt8D(YKHO, uJjO: int, MNRr: bool=False): try: if MNRr: return FZ5p(mv1M.get_by_id(uJjO)) return mv1M.get_by_id(uJjO) except ws9Q: raise ValueError(qed_.NOT_FOUND, 'User with id {} does not exist'.format(uJjO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def TKWP(YKHO, uJjO):\n j8eK = 'users/' + ...
[ "0.8692944", "0.8635324", "0.8635324", "0.8635324", "0.8635324", "0.86033064", "0.8576779", "0.8551142", "0.8487326", "0.8476727", "0.83735126", "0.8331313", "0.832427", "0.83178955", "0.82688314", "0.82562625", "0.82310873", "0.8214999", "0.8210606", "0.8189807", "0.81877637...
0.0
-1
Return the correct 'key' for an item. This is mainly a helper method for other methods in this class. It is used to shorten code repitition
def sBrm(YKHO, vcaS, I8Xd=None): if not I8Xd and (not YKHO.object_type_keys.has_key(vcaS)): raise OgoS('Unknown key for object type: %s\n' % vcaS) if not I8Xd: I8Xd = YKHO.object_type_keys[vcaS] return I8Xd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mexE(YKHO, ZfUD):\n return ZfUD[0]", "def SbY0(YKHO, ZfUD):\n return (2, ZfUD)", "def qwTg(ZfUD):\n return NTRO['key', ZfUD]", "def OP2O(YKHO, ZfUD: int) -> int:\n return YKHO.root[ZfUD].key", "def T1pU(YKHO, ZfUD):\n return (1, ZfUD)", "def Dn9U(ZfUD):\n return ZfUD.get_router()", ...
[ "0.854846", "0.73755544", "0.71965224", "0.7163481", "0.7145576", "0.7041787", "0.6785135", "0.6781645", "0.6740919", "0.6627226", "0.6591268", "0.6586165", "0.6549658", "0.65049577", "0.6501452", "0.64911336", "0.6421972", "0.6419695", "0.6392654", "0.6390866", "0.6390866", ...
0.0
-1
Given an object, return a list of active hosts. This will exclude hosts that ar negated with a "!"
def h54K(YKHO, object): RTX9 = [] if object.has_key('hostgroup_name'): for cS32 in YKHO._get_list(object, 'hostgroup_name'): if cS32[0] == '!': VhbT = YKHO.get_hostgroup(cS32[1:]) RTX9.extend(YKHO._get_list(VhbT, 'members')) if object.has_key('host_name'):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GEVg(YKHO, Of0F, i1hb):\n HG3t = i1hb.ignore_hosts or []\n Of0F = [KcEq for KcEq in Of0F if KcEq not in HG3t]\n return Of0F", "def Tjf6():\n return gJE7.select_inactive_hosts()", "def VMfI(GPtr, DNHh=True, Tjqg=True):\n hkE7 = set([YRbF.strip() for YRbF in GPtr.get('EXCLUDE_SERVERS', '').spl...
[ "0.76322234", "0.6263666", "0.6062381", "0.5986657", "0.5977842", "0.5931571", "0.5867927", "0.57435375", "0.5739992", "0.5739992", "0.56967884", "0.5639056", "0.5625297", "0.55925924", "0.5588255", "0.55773956", "0.55773956", "0.55477285", "0.55461586", "0.55311257", "0.5474...
0.7992435
0
Test that hyperlinks are not containing prohibited characters (such as '<').
def Cx0P(YKHO): for MKlR in YKHO.hyperlinks: YKHO.assertTrue(ZbWC.search('[<>]', MKlR['name']) is None, msg='Hyperlink "%s" contains forbidden characters in "%s".' % (MKlR['md'], MKlR['file']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def higA(YKHO):\n for MKlR in YKHO.hyperlinks:\n YKHO.assertTrue(ZbWC.search('[^\\\\\\\\]_', MKlR['name']) is None, msg='Hyperlink \"%s\" contains unprotected underscore(s) in \"%s\".' % (MKlR['md'], MKlR['file']))", "def NJR0(YKHO):\n Zliu = (('javascript:alert`1`', ''), ('jAvAsCrIpT:alert`1`', '')...
[ "0.71357393", "0.7015268", "0.6583877", "0.6451514", "0.63255537", "0.62772864", "0.6240678", "0.61405253", "0.6110742", "0.60730356", "0.6048724", "0.6032845", "0.6017508", "0.60169834", "0.5982169", "0.59466296", "0.59213877", "0.59208995", "0.5905111", "0.5897356", "0.5882...
0.8876726
0
Load all path of image, there is two case in this code if train == True then load training image training image calculate there all size and calculate it's validation size if train == False then load test image doesn't calculate anythings
def EW3D(QMAG, LnAU, Ep8u, EvQg=True): if EvQg: print('Image Load Started..') BTLB = Hy7s.listdir(LnAU) N0ky = len(BTLB) VZ4v = N0ky // Ep8u * Ep8u F21Z = N0ky - VZ4v if F21Z < 10: VZ4v -= Ep8u F21Z += Ep8u print('Train data size : ', V...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fPcm(YKHO, pan_='standard', pmON=gwfh):\n EcVT = []\n fuBA = []\n SRgP = {}\n if pan_ == 'standard':\n KtiP = ['images_background']\n bOkJ = ['images_evaluation']\n elif pan_ == 'minimal':\n KtiP = ['images_background_small1', 'images_background_small2']\n bOkJ = ['im...
[ "0.6684847", "0.6683883", "0.6589205", "0.65625405", "0.63765746", "0.6363556", "0.6348563", "0.63388854", "0.6337652", "0.6327962", "0.63201123", "0.6295828", "0.62614954", "0.6249649", "0.6240495", "0.6205724", "0.6201576", "0.61920756", "0.61781734", "0.6170997", "0.615963...
0.7551948
0
open clicked on file menu.
def VI4t(YKHO, TEdI, nPrm=None): YKHO.open_chooser.show()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ia8E(YKHO, tvqc=None):\n YKHO.parentPanel.open(tvqc)", "def bArS(YKHO):\n fEM0 = YKHO.findList.selectedItems()[0]\n YKHO.on_findList_itemDoubleClicked(fEM0, 0)", "def J5ga(nUeQ) -> str:\n LAOT = [[_sef.Text(f'Select the action to perform on\\n\\n{nUeQ}')], [_sef.Button('Open File', key='-APP-')...
[ "0.8423974", "0.779811", "0.7624728", "0.76005363", "0.75563484", "0.7550147", "0.7521476", "0.7437061", "0.7421713", "0.7379829", "0.73560226", "0.73347485", "0.73239565", "0.7281468", "0.7255037", "0.7157373", "0.71333176", "0.71062523", "0.70238024", "0.6990758", "0.6972",...
0.8123093
1
Return chrome webdriver and open the initial webpage.
def FIMM(YKHO, dndc, type='Chrome'): from webdriverwrapper import Chrome from selenium import webdriver xAU6 = webdriver.ChromeOptions() xAU6.add_experimental_option('excludeSwitches', ['enable-automation']) xAU6.add_experimental_option('useAutomationExtension', False) YKHO.driver = Chrome(optio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cjTK():\n QM8_ = '/Users/User/Downloads/chromedriver_win32/chromedriver'\n uh1m = cSpz.ChromeOptions()\n uh1m.add_argument('--disable-blink-features=AutomationControlled')\n E_qD = cSpz.Chrome(QM8_, options=uh1m)\n return E_qD", "def w1oU():\n E_qD = jJDz()\n E_qD.browser = 'chrome'\n ...
[ "0.7316955", "0.718539", "0.7122876", "0.7033356", "0.6990807", "0.6926203", "0.6921011", "0.68284255", "0.6765437", "0.67419064", "0.6728078", "0.6710789", "0.66934687", "0.6682299", "0.66609067", "0.66576225", "0.6647915", "0.66431236", "0.6640616", "0.66310877", "0.6617421...
0.70143574
4
Get the current state of a submission from the database. In the medium term, services that use this package will need to play well with legacy services that integrate with the classic database. For example, the moderation system does not use the event model implemented here, and will therefore cause direct changes to t...
def nZ_U(K7Em: int, XDdn: bool=False) -> AzJI[RitE, x1iM[QRWf]]: cuiw = USyX() yims = cuiw.query(FYrf.Submission).filter(FYrf.Submission.submission_id == K7Em).join(j2_4) if XDdn: yims = yims.with_for_update(read=True) try: yims = yims.one() bo34.debug('Got row %s', yims) exc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n YKHO.request_state()\n tTpl = YKHO.get_event()\n if tTpl.id != q3DE:\n raise Mmqs(tTpl)\n return tTpl.data", "def c0mt(YKHO):\n iWQu = YKHO.candidates.all().select_related('relatedstudent')\n kbGe = [SkC9.relatedstudent.user_id for SkC9 in iWQu]\n xK_T = YKHO.examine...
[ "0.57558817", "0.5480453", "0.54673463", "0.54232943", "0.52968585", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104", "0.52679104",...
0.55585825
1
Overwrite defaults specified in '__init__' and 'SetDefaults'. Object '__dict__' contains all variables of instance self
def Ttuz(YKHO, mpaw={}): for H5ew in mpaw: YKHO.__dict__[H5ew] = mpaw[H5ew]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kRB_(YKHO):\n YKHO.__dict__.update(YKHO._defDict)", "def xHHo(YKHO, B2fa):\n for G1Hx, Ty9i in YKHO.defaults.iteritems():\n if G1Hx in B2fa:\n setattr(YKHO, G1Hx, B2fa[G1Hx])\n else:\n setattr(YKHO, G1Hx, Ty9i)\n for G1Hx, Ty9i in B2fa.iteritems():\n if G1H...
[ "0.7940795", "0.7539371", "0.7492947", "0.693514", "0.6757059", "0.6753493", "0.673478", "0.6709375", "0.6708611", "0.6700697", "0.66967845", "0.6664016", "0.6662019", "0.6651407", "0.6651407", "0.66419864", "0.66419864", "0.6608379", "0.65787584", "0.6565681", "0.6537741", ...
0.0
-1
Sends a PATCH request.
def Po4F(bD7m, nPrm=None, **B2fa): return QePW('patch', bD7m, data=nPrm, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def irEl(YKHO, bD7m='', nPrm='', NArs={}, MOPg={}):\n return YKHO.httpRequest('PATCH', bD7m, nPrm, NArs, MOPg)", "def Po4F(YKHO, *qIxc, **B2fa):\n YKHO.request('patch', *qIxc, **B2fa)", "def fYra(YKHO):\n geh0 = YKHO.httpbin_4.test_requests_patch_method()\n YKHO.assertEqual(geh0.request.method, 'PA...
[ "0.78879285", "0.78840005", "0.75265086", "0.7525407", "0.7426763", "0.7426763", "0.7426763", "0.73790526", "0.734557", "0.7331408", "0.7325037", "0.7317369", "0.72989714", "0.7292885", "0.7249458", "0.7243931", "0.7208896", "0.7208896", "0.7208896", "0.7208896", "0.7208896",...
0.7294469
13
Create pie graph PNG of the current account holdings. Currently does not correctly format negative USD Cash
def DVci(YKHO, ZrNc=None, PJWX=False): if ZrNc == None: ZrNc = YKHO.params['account'] ZrNc = int(ZrNc) bD7m = YKHO.endpoints['base'] + 'accounts/' + str(ZrNc) + '/holdings.json' cuiw = G4JS.Session() Jpbe = YKHO.create_auth() qv1X = G4JS.Request('GET', bD7m, auth=Jpbe).prepare() YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mz1p():\n exwG = 4\n Nk6w = oyIN.ones(exwG)\n Nk6w[-1] *= 2\n Crrw = ('A', 'B', 'C', 'D')\n QrM1.axes([0.025, 0.025, 0.95, 0.95])\n QrM1.pie(Nk6w, explode=Nk6w * 0.05, labels=Crrw, autopct='%1.1f%%', shadow=True, startangle=90)\n QrM1.gca().set_aspect('equal')\n (QrM1.xticks([]), QrM1.y...
[ "0.6193845", "0.616957", "0.6084392", "0.605223", "0.5889984", "0.58671457", "0.57516307", "0.5747374", "0.5724388", "0.57022136", "0.56929004", "0.56882465", "0.5684931", "0.5679587", "0.56759244", "0.5625633", "0.5602881", "0.5584019", "0.55832577", "0.5550525", "0.5536903"...
0.0
-1
Binary search of given element inside of list
def jUbz(U6D_: int, aqea: list) -> int: print(U6D_, aqea) return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jUbz(list, U6D_):\n if list is None:\n raise TypeError('Search element must not be none')\n cntZ = 0\n XVAW = len(list) - 1\n while cntZ <= XVAW:\n x1fj = (cntZ + XVAW) // 2\n if list[x1fj] == U6D_:\n return x1fj\n if list[x1fj] < U6D_:\n cntZ = x1f...
[ "0.7931916", "0.77473366", "0.77315646", "0.7651623", "0.7588846", "0.7556174", "0.75301266", "0.75105256", "0.74625707", "0.74452853", "0.742219", "0.73762274", "0.73674095", "0.7353753", "0.7327274", "0.7322763", "0.7321466", "0.7320891", "0.7256662", "0.7240929", "0.723875...
0.83601695
0
lower case the words in the sentence and remove all punctuation.
def zexO(YKHO): tyNF = str.maketrans('', '', pC3l) return YKHO.words.lower().translate(tyNF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WasB(YKHO, KCHu):\n KCHu = KCHu.lower()\n for WKvO in KCHu:\n if WKvO in pC3l:\n KCHu = KCHu.replace(WKvO, '')\n return KCHu", "def Mm5d(yAmx):\n return ZbWC.sub(f'[{juOp}]', ' ', aUcs(yAmx).strip().lower()).replace(' ', ' ')", "def MXOF(KCHu: str) -> str:\n KCHu = KCHu.tr...
[ "0.7645257", "0.76285577", "0.7508894", "0.7458962", "0.74356705", "0.74272287", "0.74272287", "0.74133277", "0.7302705", "0.72894204", "0.72452253", "0.7183777", "0.7166164", "0.7145225", "0.7131206", "0.71078736", "0.70258874", "0.70026433", "0.7002412", "0.70003295", "0.69...
0.7731092
0
convert the words in the sentence to tokens for NLP.
def wr3U(YKHO): return dFss(YKHO.lower_and_remove_punc())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(yAmx):\n s2mk = Dhdw.word_tokenize(yAmx)\n return s2mk", "def wr3U(yAmx):\n return Dhdw.word_tokenize(yAmx)", "def thS1(_dZy):\n return dFss(_dZy)", "def Yvzw(_dZy):\n b0j5 = H6bL()\n jWWN = b0j5.tokenize(_dZy.lower())\n return jWWN", "def wr3U(yAmx):\n b5Tf = yAmx.lower()\...
[ "0.7810328", "0.770068", "0.76580137", "0.75562793", "0.7543098", "0.7535698", "0.7361383", "0.7337554", "0.7313579", "0.72543323", "0.72319746", "0.7166653", "0.7163248", "0.71368897", "0.713624", "0.71198577", "0.7099754", "0.7083242", "0.7070837", "0.70471907", "0.7044818"...
0.0
-1
Move geometric center to the origin.
def hgjH(YKHO, CNRc=False): if CNRc: zJeG = YKHO.center_of_mass YKHO.xyz -= zJeG else: YKHO.xyz -= YKHO.xyz.mean(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ta5v(YKHO, WKvO, LVAh):\n nJ9F, nxyw, yzQ0, MKlR = YKHO.currentBox\n ajwV, skBL = (WKvO - yzQ0 / 2, LVAh - MKlR / 2)\n YKHO.__moveTo(ajwV, skBL)", "def hgjH(YKHO, yFgu):\n YKHO.move(destination=yFgu, origin=YKHO.center)", "def NL_S(YKHO):\n YKHO.grfx[0].center = YKHO.center\n YKHO.update_...
[ "0.78163993", "0.75914127", "0.7403669", "0.735991", "0.7359592", "0.7182882", "0.7052156", "0.69846237", "0.69846237", "0.69418406", "0.69418406", "0.69418406", "0.69329315", "0.6921042", "0.69180006", "0.6853134", "0.68307066", "0.68179923", "0.6800726", "0.6798228", "0.677...
0.63200104
59
Returns the total mass of the molecule
def YhpA(YKHO): return oyIN.sum(YKHO.atomic_mass)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MLew(YKHO):\n N8fB = YKHO.__dict__\n I1iR = {}\n for ZLSD in YKHO.chemAtoms:\n if isinstance(ZLSD, pE7s):\n KG9w = ZLSD.elementSymbol\n P2GO = I1iR.get(KG9w)\n if P2GO is None:\n I1iR[KG9w] = 1\n else:\n I1iR[KG9w] = P2GO...
[ "0.83596945", "0.8314517", "0.8314517", "0.79538095", "0.78342354", "0.77976984", "0.77976984", "0.77586347", "0.7587848", "0.7557238", "0.7537609", "0.7527791", "0.74724925", "0.7412962", "0.73552054", "0.7346823", "0.7306098", "0.7297594", "0.7225232", "0.72096926", "0.7202...
0.74693066
13
Returns the total mass of the molecule
def kst6(YKHO): return oyIN.sum(YKHO.mass_amu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MLew(YKHO):\n N8fB = YKHO.__dict__\n I1iR = {}\n for ZLSD in YKHO.chemAtoms:\n if isinstance(ZLSD, pE7s):\n KG9w = ZLSD.elementSymbol\n P2GO = I1iR.get(KG9w)\n if P2GO is None:\n I1iR[KG9w] = 1\n else:\n I1iR[KG9w] = P2GO...
[ "0.83597964", "0.83134925", "0.83134925", "0.79526806", "0.7833864", "0.7796884", "0.7796884", "0.7758695", "0.75869536", "0.7536331", "0.75273913", "0.7471608", "0.746852", "0.7411881", "0.7353714", "0.73456705", "0.7305258", "0.7297647", "0.722441", "0.7209111", "0.72010857...
0.75565916
9
Increade/decrease the current font size.
def tInZ(YKHO, aM8h): def bLVg(LihS): YKHO._font_size += aM8h return bLVg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b1pC(KnxT, RA_F=2):\n S5n6(KnxT, delta=-2)\n return", "def hhRS(YKHO, hhRS):\n YKHO._font_size = hhRS", "def sDGT(KnxT, zNig):\n o9av = KnxT.GetFont()\n i3ak = C_de(o9av)\n i3ak.SetPointSize(zNig)\n KnxT.SetFont(i3ak)\n lriN = KnxT.GetSizer()\n if lriN is not None:\n lriN....
[ "0.74035764", "0.73222786", "0.70873827", "0.7055369", "0.702756", "0.6958784", "0.6914409", "0.68324214", "0.6657606", "0.6578601", "0.6577812", "0.65090543", "0.6429592", "0.6426329", "0.62679404", "0.62627876", "0.6245753", "0.61494917", "0.61240613", "0.6014274", "0.60048...
0.6354234
15
\n Turns list of lists into one list.
def uZ90(IqQl): return [ZfUD for XuXy in IqQl for ZfUD in XuXy]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GzGF(qgK3):\n rIkN = ''\n for ZfUD in qgK3:\n rIkN += str(ZfUD) + '\\n'\n return rIkN[:-1]", "def wRZy(BWXx):\n return BWXx.strip().splitlines()", "def t1S4(yv6U):\n S06t = []\n for U6D_ in range(len(yv6U)):\n S06t.extend(yv6U[U6D_].split(' '))\n return S06t", "def zAMR...
[ "0.7095406", "0.7080337", "0.66550046", "0.6487162", "0.6454435", "0.6406992", "0.6371681", "0.6357522", "0.6311943", "0.62907904", "0.6286506", "0.6254553", "0.62306833", "0.622188", "0.61776507", "0.61495394", "0.6145371", "0.6134439", "0.6092544", "0.60797864", "0.6071438"...
0.56327057
73
\n Returns normal distribution, calculated by numbers in range of x.
def m4f2(mSrU, WKvO): r8hN = oyIN.mean(oyIN.array(mSrU)) KCHu = oyIN.std(oyIN.array(mSrU)) if KCHu < 1e-05: KCHu = 1e-05 return oyIN.array(CkYf.pdf(WKvO, loc=r8hN, scale=KCHu))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AIW8(WKvO):\n return cf_P * kLQb(-0.5 * WKvO * WKvO)", "def GZvc(WKvO, yGTL, WTkW, KCHu=1):\n return KCHu * 1 / (WTkW * ht2j.sqrt(ht2j.tensor(2 * oyIN.pi))) * ht2j.exp(-1 / 2 * ((WKvO - yGTL) / WTkW) ** 2)", "def A9Yc(WKvO):\n return 0.5 * (1.0 + ht2j.tanh(oyIN.sqrt(2.0 / oyIN.pi) * (WKvO + 0.0447...
[ "0.7399116", "0.7196172", "0.71247387", "0.7018298", "0.6908695", "0.6873358", "0.68045354", "0.67952704", "0.67829573", "0.6746419", "0.67423326", "0.6677611", "0.66493416", "0.6598005", "0.6593824", "0.6590863", "0.6589196", "0.6543085", "0.6537728", "0.652842", "0.6525309"...
0.71904427
2
Replaces current subtree with given tree instead. Returns self.
def VO8W(YKHO, J_Es, hnjd=True): if YKHO.parent is None: YKHO.__dict__ = J_Es.__dict__ else: if YKHO is YKHO.parent.left_subtree: YKHO.parent.left_subtree = J_Es else: YKHO.parent.right_subtree = J_Es if hnjd: YKHO.update_tree() return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fXiu(YKHO, WKvO, LVAh):\n LVAh.parent = WKvO.parent\n if WKvO is YKHO.root:\n YKHO.root = LVAh\n return\n elif WKvO is WKvO.parent.left:\n WKvO.parent.left = LVAh\n else:\n WKvO.parent.right = LVAh\n YKHO.update(LVAh, -1)", "def HN1N(YKHO, hnjd=True):\n YKHO.left...
[ "0.6778925", "0.66760296", "0.66235435", "0.6492744", "0.6433623", "0.63925683", "0.62912023", "0.62774307", "0.62560153", "0.61011475", "0.60803413", "0.6075068", "0.6023766", "0.60049546", "0.599877", "0.5997293", "0.58921736", "0.58870226", "0.58870226", "0.58870226", "0.5...
0.7889773
0
Makes a leaf into a node with two leaves as children. Returns self.
def kKS6(YKHO, hnjd=True): if not YKHO.is_leaf(): raise RuntimeError('Cannot split internal node.') return YKHO.replace_subtree(UD_O(UD_O(), UD_O()), update_tree=hnjd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dqmT(YKHO):\n B5Yq = YKHO.root\n YRbF = 1\n while YRbF < YKHO.length:\n SSpN = E1bu(B5Yq.val + 1)\n B5Yq.next = SSpN\n B5Yq = SSpN\n YRbF += 1", "def Cc7Y(YKHO):\n H2v2, gEmA = (0, YKHO.leaves[:])\n while len(gEmA) != 1:\n gEmA = YKHO._build(gEmA, H2v2)\n ...
[ "0.75188047", "0.64780974", "0.63124007", "0.6301707", "0.61849195", "0.6159218", "0.6136615", "0.6005124", "0.59842896", "0.594435", "0.5901951", "0.589319", "0.58922935", "0.58495337", "0.5843481", "0.5780015", "0.5748967", "0.5743258", "0.57151645", "0.57077676", "0.567623...
0.6344364
2
Transforms the subtree into a leaf. Returns self.
def HN1N(YKHO, hnjd=True): YKHO.left_subtree = None YKHO.right_subtree = None if hnjd: YKHO.update_tree() return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kET1(YKHO, ZrzX):\n Q6kx = YKHO.tree[0]\n while True:\n if Q6kx.is_leaf:\n return Q6kx\n wEf2 = ZrzX[Q6kx.label]\n if oyIN.isnan(wEf2):\n Q6kx = YKHO.tree[Q6kx.id_null]\n elif wEf2 <= Q6kx.cutoff:\n Q6kx = YKHO.tree[Q6kx.id_lower]\n elif...
[ "0.6589667", "0.6550329", "0.65204364", "0.64739823", "0.64493686", "0.62524825", "0.62228703", "0.6063728", "0.6018339", "0.60074323", "0.58630705", "0.57938564", "0.5775554", "0.5767596", "0.5722958", "0.5706055", "0.5698407", "0.56911445", "0.5673534", "0.5669684", "0.5655...
0.0
-1
Returns a list of strings indicating to go 'left' or 'right' for each node starting from the root node.
def g19v(YKHO): pmON = [] _AKB = YKHO.parent aUGN = YKHO while _AKB is not None: if aUGN is _AKB.left_subtree: pmON.append('left') else: pmON.append('right') aUGN = _AKB _AKB = _AKB.parent pmON.reverse() return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def urqV(Q6kx):\n return 2 * Q6kx + 1", "def HnL_(YKHO):\n iuJj = 0\n BtbZ = 0\n _l3X = 0\n DVfU = 0\n YKHO.scan()\n for lbHk, pImw in YKHO.scan_data.items():\n if lbHk < YKHO.MIDPOINT:\n _l3X += pImw\n DVfU += 1\n print('Angle: %d // dist: %d // right...
[ "0.66583073", "0.6358492", "0.6301865", "0.6289936", "0.62477595", "0.6131885", "0.6047884", "0.6009457", "0.6002277", "0.59954333", "0.594818", "0.5914742", "0.59126085", "0.59014595", "0.5872872", "0.58644366", "0.5840676", "0.58316004", "0.5812415", "0.57903665", "0.579036...
0.61300224
6
Return fiscalyear id for the period_id given. If period_id is nor given then return the current fiscalyear
def JvfM(YKHO, KBgZ, PObu, QpfX={}, i0g9=False): if i0g9: P5uT = YKHO.pool.get('account.period').browse(KBgZ, PObu, i0g9) YWir = P5uT.fiscalyear_id.id else: t4i3 = YKHO.pool.get('account.fiscalyear') A07C = t4i3.find(KBgZ, PObu, ITS7.strftime('%Y-%m-%d'), context=QpfX) YW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jKiL(YKHO):\n rg4j = qcWV.today().date()\n for lO87 in YKHO.fiscal_years.all():\n if lO87.begin_date < rg4j < lO87.end_date:\n return lO87\n return None", "def kId3(YKHO):\n j_H7 = [10, 11, 12]\n if YKHO.start_date.month in j_H7:\n PR0T = YKHO.start_date.year + 1\n ...
[ "0.661104", "0.62281126", "0.616947", "0.6147302", "0.6038177", "0.5954263", "0.57524735", "0.56770015", "0.5676597", "0.5634972", "0.547138", "0.5410897", "0.52582526", "0.52322894", "0.51365054", "0.5108958", "0.5067987", "0.5064246", "0.5036398", "0.502765", "0.49607745", ...
0.8616426
0
Return a nice string representing a future datetime in english. If you need to explicitely set the reference that the future is relative to, just pass it in as a second datetime object.
def lYHg(KS9L, bf9h=None): if not bf9h: bf9h = qcWV.now() RA_F = KS9L - bf9h C6wh = RA_F.seconds Sm0u = RA_F.days ChQD = Sm0u * 24 * 60 * 60 + C6wh O66n = int(round(C6wh / 60.0) % 60) XKxj = (KS9L - qcWV(*bf9h.timetuple()[:3])).days if Sm0u < 0: raise CN6J('Negative timed...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I0Z9(BWXx, KS9L=False, X_bn=True):\n wzkt = WmcE()\n _c1T, RA_F = XVRH(BWXx)\n if _c1T is None:\n return BWXx\n if isinstance(BWXx, (qcWV, fCoM)):\n KS9L = _c1T > wzkt\n Os8H = bGrB('%s from now') if KS9L else bGrB('%s ago')\n RA_F = qw1A(RA_F)\n if RA_F == bGrB('a moment'):\...
[ "0.65318906", "0.6507618", "0.6094985", "0.598095", "0.59121704", "0.5879496", "0.583347", "0.5825895", "0.57973194", "0.579467", "0.5787746", "0.57675374", "0.57622373", "0.57164645", "0.5706053", "0.5695605", "0.56943506", "0.5693548", "0.567792", "0.567708", "0.56463844", ...
0.71599245
0
Compute gradient for logistic regression w.r.t. to the parameters theta.
def jctK(q7In, EcVT, LVAh): Ro40 = None q7In = q7In[:, oyIN.newaxis] BzCW = q7In.T KDxH = EcVT.T brwl = oyIN.dot(BzCW, KDxH) MKlR = m1Hg(brwl) Ro40 = (LVAh - MKlR) * KDxH return Ro40
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hWZO(YKHO, q7In, EcVT, LVAh):\n Ro40 = oyIN.zeros(len(q7In))\n wEsz = BfDw.sigmoid(q7In)\n wEsz = wEsz - LVAh\n Ro40 = oyIN.dot(EcVT.T, wEsz) + 2 * YKHO.params['lamb'] * YKHO.regularizer[1](YKHO.weights)\n return Ro40", "def ICX2(YKHO, q7In):\n pass", "def ICX2(YKHO, q7In):\n pass", ...
[ "0.8392964", "0.8262841", "0.8262841", "0.8215227", "0.8010951", "0.79753923", "0.7866205", "0.77759385", "0.7620895", "0.76000303", "0.75743663", "0.75418186", "0.74505186", "0.7448143", "0.74479556", "0.7445852", "0.74144214", "0.7402403", "0.73875386", "0.73441905", "0.728...
0.7903927
6
find a dict in a list with selected key
def wNya(hNM4: List[Dict[str, Any]], H5ew: str) -> cuzp[str, ImMB]: for Csk6 in hNM4: if isinstance(Csk6, dict) and H5ew in Csk6.keys(): return Csk6 return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FY2S(H5ew, BWXx, oHnD):\n for U6D_ in oHnD:\n if U6D_.get(H5ew) == BWXx:\n return U6D_\n return None", "def uJJ9(m3Fx, H5ew, wEf2, bx_u=False):\n for Csk6 in m3Fx:\n if isinstance(Csk6, dict) and Csk6[H5ew] == wEf2:\n return Csk6\n return bx_u", "def NMoC(m3F...
[ "0.79354215", "0.78502715", "0.7590244", "0.7587258", "0.738128", "0.7196137", "0.7124431", "0.7120418", "0.7061513", "0.7039346", "0.69954956", "0.6924875", "0.6922326", "0.6838041", "0.6825961", "0.68152934", "0.67847294", "0.67472875", "0.67423767", "0.6678004", "0.6665119...
0.6772131
17
find all dicts in a list with selected key
def eKQq(hNM4: List[Dict[str, Any]], H5ew: str) -> x1iM[cuzp[str, ImMB]]: Ylbp: x1iM[cuzp[str, ImMB]] = list() for Csk6 in hNM4: if isinstance(Csk6, dict) and H5ew in Csk6.keys(): Ylbp.append(Csk6) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(m3Fx, H5ew, BWXx):\n return filter(lambda cmPJ: cmPJ[H5ew] == BWXx, m3Fx)", "def dhqL(nPrm, ZVgY):\n return Pusg(lambda Csk6, G1Hx: Csk6[G1Hx], ZVgY, nPrm)", "def FY2S(H5ew, BWXx, oHnD):\n for U6D_ in oHnD:\n if U6D_.get(H5ew) == BWXx:\n return U6D_\n return None", "def...
[ "0.69870794", "0.6884246", "0.68107665", "0.675177", "0.6649578", "0.65573174", "0.6433821", "0.6417574", "0.64085335", "0.639808", "0.6333439", "0.62540406", "0.6217448", "0.6160826", "0.61500376", "0.611203", "0.60861236", "0.60631925", "0.6056125", "0.6053219", "0.6031015"...
0.7284967
0
converts str layer data to layer list
def Xdvg(mSn8: Union[List[str], str]) -> x1iM[FNYZ]: if not isinstance(mSn8, x1iM): mSn8 = [mSn8] eUYe = [gEmA for gEmA in mSn8 if '*.' in gEmA] UCJl = [gEmA.replace('*', 'B') for gEmA in eUYe] XHHX = [gEmA.replace('*', 'F') for gEmA in eUYe] mSn8 = [gEmA for gEmA in mSn8 if '*.' not in gEmA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jn2h(mSn8: Dict[str, Any]) -> x1iM[FNYZ]:\n try:\n qsO2 = mSn8['kicad_pcb']\n qsO2 = wNya(qsO2, 'layers')\n Ylbp: x1iM[FNYZ] = list()\n for gEmA in qsO2['layers']:\n mSn8 = list(gEmA.values())[0]\n mk8e = FNYZ(name=mSn8[0], layer_type=mSn8[1])\n Y...
[ "0.63018376", "0.5687101", "0.5587705", "0.5571014", "0.5571014", "0.55506665", "0.5520212", "0.5445227", "0.5434911", "0.5379239", "0.5352752", "0.534245", "0.53060395", "0.5295245", "0.52930194", "0.52864754", "0.5273486", "0.5265711", "0.525985", "0.5258553", "0.52038413",...
0.75141305
0
create FpArc object from dict with arc data
def bLGh(YrVN: Dict[str, Any], R9M6: str) -> CAD7: DFpO = YrVN[R9M6] yKcO: kmiI = [wNya(DFpO, 'end')['end'][0], wNya(DFpO, 'end')['end'][1]] yKcO[1] = str(-1 * float(yKcO[1])) Os4s: kmiI = [wNya(DFpO, 'start')['start'][0], wNya(DFpO, 'start')['start'][1]] Os4s[1] = str(-1 * float(Os4s[1])) YylR:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iv4D(c5Em: List[Dict[str, Any]], R9M6: str) -> x1iM[CAD7]:\n cp5e: x1iM[CAD7] = list()\n for Io6r in eKQq(c5Em, R9M6):\n cp5e.append(bLGh(Io6r, R9M6))\n return cp5e", "def jG8h(Emd4, kGie):\n raise NotImplementedError", "def hk4z(YKHO, jzdc, Fg_i, Z9rn):\n Io6r = VT7w.PCB_SHAPE()\n ...
[ "0.62380487", "0.614932", "0.57996434", "0.5745884", "0.56286424", "0.56075275", "0.54422045", "0.53187793", "0.5306953", "0.5294561", "0.5269495", "0.5261099", "0.5252609", "0.52030796", "0.5179838", "0.5174468", "0.51514643", "0.5120931", "0.5117117", "0.51157475", "0.50510...
0.73983
0
Convert a dlib 'rect' object to a plain tuple in (top, right, bottom, left) order
def pBGT(mawX): return (mawX.top(), mawX.right(), mawX.bottom(), mawX.left())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pBGT(mawX):\n return (mawX.top(), mawX.right(), mawX.bottom(), mawX.left())", "def mawX(jNOo: Tuple[int, int]) -> AzJI[int, int, int, int]:\n JRC0 = min([WKvO for WKvO, bGrB in jNOo])\n IA3S = max([WKvO for WKvO, bGrB in jNOo])\n LChT = min([LVAh for bGrB, LVAh in jNOo])\n dCLF = max([LVAh for...
[ "0.72214955", "0.70028174", "0.67907625", "0.67628485", "0.6730566", "0.6714316", "0.6632175", "0.66262114", "0.6562478", "0.65450835", "0.6453258", "0.6412691", "0.639422", "0.63780206", "0.6309268", "0.6277681", "0.6265826", "0.6254038", "0.623716", "0.6233299", "0.621297",...
0.7129482
1
Divide a cell, roughly in the middle. The division plane is perpendicular to the longest axis and goes through the barycenter of the cell.
def Ykm3(rR8k, oeNL, iIih): SLdk.check_pos(oeNL) Q6A1, it9q, suoh, GY2c = GrG1(rR8k, oeNL, iIih) return (Q6A1, it9q)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S0Y9(YKHO):\n if getattr(YKHO, '_faceDiv', None) is None:\n exwG = YKHO.vnC\n if YKHO.dim == 1:\n lWPh = Gs82(exwG[0])\n elif YKHO.dim == 2:\n UKqa = H4yH.kron(iOWQ(exwG[1]), Gs82(exwG[0]))\n Hu0o = H4yH.kron(Gs82(exwG[1]), iOWQ(exwG[0]))\n lW...
[ "0.6128121", "0.6005141", "0.58989793", "0.5668021", "0.56665295", "0.5634569", "0.5592361", "0.55875325", "0.55348337", "0.5523731", "0.5398349", "0.53934675", "0.53934675", "0.53934675", "0.5323978", "0.5295961", "0.5261789", "0.52594334", "0.52530235", "0.5231543", "0.5213...
0.55641395
8
Indicates if the volume of a cell is above the threshold.
def gfG7(rR8k, oeNL, iIih, Ddce): SLdk.check_pos(oeNL) akib = CROq(rR8k, oeNL, iIih) return akib > Ddce
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lTx9(YKHO) -> bool:\n if YKHO.lux_sensor:\n BWXx = YKHO.hass.get_state(YKHO.lux_sensor)\n if BWXx not in ['unavailable', 'unknown']:\n return float(BWXx) > YKHO.lux_threshold\n return False", "def gwAu(YKHO) -> float:\n return qe4Y.get(YKHO, 'threshold')", "def gwAu(YKHO):...
[ "0.6840039", "0.6777767", "0.656647", "0.656647", "0.6548233", "0.6548233", "0.6548233", "0.65045065", "0.65045065", "0.65045065", "0.65045065", "0.65045065", "0.64508253", "0.6418231", "0.6316565", "0.62815434", "0.62511706", "0.62507015", "0.623199", "0.62292427", "0.618099...
0.6970466
0
Information about the mute status of this finding.
def FIMM(dMHm, JBZA: Union[str, UnsetType]=VplZ, ad72: Union[int, UnsetType]=VplZ, UGFg: Union[bool, UnsetType]=VplZ, lo9Y: Union[FindingMuteReason, UnsetType]=VplZ, kepv: Union[int, UnsetType]=VplZ, qxeD: Union[str, UnsetType]=VplZ, **B2fa): if JBZA is not VplZ: B2fa['description'] = JBZA if ad72 is no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KiJy(YKHO):\n return sqQp(YKHO.get(J1jo, 'GetMute')['mute'])", "def jGRS(YKHO) -> dict:\n return {'volume': YKHO.volume, 'mute': YKHO.mute}", "def qHHI(YKHO):\n return YKHO._mute", "def qHHI(YKHO):\n return YKHO._state.get('mute', None)", "def qHHI(YKHO) -> str | None:\n return YKHO.zone...
[ "0.72563213", "0.71111053", "0.65735465", "0.6537731", "0.64941686", "0.64393294", "0.6419801", "0.6409305", "0.6409305", "0.6409305", "0.637407", "0.6371873", "0.629078", "0.6245062", "0.6142726", "0.6089631", "0.6038584", "0.6028381", "0.6007166", "0.5962199", "0.592295", ...
0.0
-1
Create a list of random products with 3letter alphanumeric name.
def zm29(mLGw): return [''.join(tuKI.choices('ABCDEFG123', k=3)) for bGrB in range(mLGw)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f3WB(derQ=30):\n Ldyl = []\n for ZfUD in range(0, derQ):\n uf3V = str(tuKI.choice(UBS5) + ' ' + tuKI.choice(PeSP))\n hI0L = tuKI.uniform(5, 100)\n upAO = tuKI.uniform(5, 100)\n qoBC = tuKI.uniform(0.0, 2.5)\n Ldyl.append(msfn(name=uf3V, price=hI0L, weight=upAO, flammabi...
[ "0.71001995", "0.7048964", "0.6962363", "0.6810837", "0.6734993", "0.6579453", "0.6428112", "0.64103675", "0.6364157", "0.63393706", "0.6315789", "0.63092375", "0.629463", "0.6258441", "0.6202982", "0.6200593", "0.61515754", "0.6087428", "0.60668504", "0.6066595", "0.6047842"...
0.75126034
0
This loss function returns the root mean square error between the predictions and the true interactions.
def PqrM(kVKJ, Ki_L, **B2fa): return ZylS.sqrt(ZylS.reduce_mean(ZylS.square(Ki_L - kVKJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(YKHO, Y8eF, aMgO):\n return SDab(Y8eF, aMgO)", "def SDab(Y8eF, aMgO):\n aMgO = ui9o.convert_to_tensor_v2_with_dispatch(aMgO)\n Y8eF = qkSJ.cast(Y8eF, aMgO.dtype)\n return DDLl.mean(qkSJ.squared_difference(aMgO, Y8eF), axis=-1)", "def sjTf(N6Z1, Crrw):\n return oyIN.mean(oyIN.square(N6Z1...
[ "0.780547", "0.76440257", "0.7545025", "0.7511193", "0.7457148", "0.7373135", "0.7373135", "0.7322414", "0.72588664", "0.722694", "0.7198003", "0.71463513", "0.71382177", "0.71054095", "0.71042794", "0.710106", "0.70928645", "0.709", "0.70337737", "0.7022063", "0.70171636", ...
0.67162883
56
Implodes delim Str items List Str
def M_uq(SAEY, DumB): return SAEY.join(DumB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHYk(DumB, hVLt=\"'\", VWe_=', ', fEcm=' and '):\n Aofo = ''\n DumB = [hVLt + ZfUD + hVLt for ZfUD in DumB]\n if DumB:\n if len(DumB) != 1:\n Aofo = VWe_.join(DumB[:-1]) + fEcm + DumB[-1]\n else:\n Aofo = DumB[0]\n return Aofo", "def JbwW(DumB: Iterable[str]) -...
[ "0.7118994", "0.69800484", "0.64462245", "0.6334126", "0.6270062", "0.6262962", "0.6188824", "0.6137539", "0.6108553", "0.60889477", "0.6053968", "0.59600025", "0.5946044", "0.59383106", "0.5923106", "0.5913039", "0.58841497", "0.5848218", "0.58111036", "0.57968915", "0.57856...
0.764565
0
GMT date format Str stamp Int Str
def CaqI(format, VwNh=None): if VwNh is None: VwNh = ITS7.time() JRYC = qcWV.datetime.utcfromtimestamp(VwNh) return JRYC.strftime(format)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3Yb():\n return 'Zun, 99 Zun 9999 99:61:61'", "def p0rV(YKHO):\n return F803('%a, %d %b %Y %H:%M:%S GMT', WPt4())", "def YLTo():\n return qcWV.now().strftime('%Y-%m-%d-%H-%M-%S')", "def JANu(doIl):\n return doIl.strftime('%a, %d %b %Y %H:%M:%S GMT')", "def IJ8b():\n return F803('%Y%m%dT...
[ "0.66509706", "0.66062546", "0.6522119", "0.6462181", "0.6375269", "0.6327647", "0.6313485", "0.6309325", "0.62253547", "0.61967427", "0.6189698", "0.6163785", "0.615566", "0.6144489", "0.6135446", "0.6116611", "0.61095333", "0.60844314", "0.60729134", "0.60644346", "0.605989...
0.65110546
3
Creates the Inception Resnet V1 model.
def TQDD(g4y1, LT6S=True, xKmh=0.8, NSfF=128, CJGY=None, rrBf='LeNet'): roD5 = {} with ZylS.variable_scope(rrBf, 'LeNet', [g4y1], reuse=CJGY): with Fz20.arg_scope([Fz20.batch_norm, Fz20.dropout], is_training=LT6S): with Fz20.arg_scope([Fz20.conv2d, Fz20.max_pool2d, Fz20.avg_pool2d], stride=1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YICX():\n rvDU = ZylS.keras.applications.InceptionV3(include_top=False, input_shape=(sAQH, sAQH, PRqi))\n C3ST = ZylS.keras.models.Sequential([rvDU, ZylS.keras.layers.GlobalAveragePooling2D(), ZylS.keras.layers.Dense(VPqX, activation='softmax')])\n C3ST.compile(optimizer='adam', loss='categorical_cros...
[ "0.6873107", "0.674192", "0.6490674", "0.643851", "0.6358225", "0.62815815", "0.62722355", "0.6250022", "0.62305635", "0.6203257", "0.6203257", "0.6203257", "0.6203257", "0.6203257", "0.6198921", "0.617983", "0.6169398", "0.61628735", "0.614066", "0.61383784", "0.6129245", ...
0.0
-1
opens a text file, converts each line into a list of strings of each element in line
def yc7V(u3tA): fS4T = open(u3tA) for zFiD in fS4T: T4Wy = YHih(zFiD) T4Wy[0:1] = [] mWFP = T4Wy.pop(0) e7fL = d3VR(T4Wy) nvBP, yJhk = e7fL Ljtj = jZLK(hW4v, nvBP) print(f'{mWFP} paid ${yJhk:.2f}, expected ${Ljtj:.2f}') Oxw_(mWFP, Ljtj, yJhk) f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HTzx(gIsw):\n aF0O = open(gIsw, encoding='utf-8')\n vC9B = [zFiD.strip() for zFiD in aF0O]\n aF0O.close()\n return vC9B", "def ddJY(Ux0P):\n Ws93 = []\n eHNT = open(Ux0P)\n for zFiD in eHNT.readlines():\n Ws93.extend(zFiD.split())\n return Ws93", "def UMnH(gIsw):\n with op...
[ "0.7652507", "0.7537436", "0.75141644", "0.74525636", "0.73815095", "0.7366669", "0.7358465", "0.7287714", "0.7153505", "0.71310204", "0.710965", "0.7108428", "0.71054256", "0.7017043", "0.699118", "0.69901913", "0.6956131", "0.6948919", "0.693207", "0.6916772", "0.6913105", ...
0.0
-1
Determines output length of a transposed convolution given input length.
def K5jc(zk33, QJWG, dvgN, EJc2=None, _0fC=0, ivFb=1): assert dvgN in {'same', 'valid', 'full'} if zk33 is None: return None QJWG = QJWG + (QJWG - 1) * (ivFb - 1) if EJc2 is None: if dvgN == 'valid': u54L = zk33 * _0fC + max(QJWG - _0fC, 0) elif dvgN == 'full': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FDZG(zi3C, Ot1W, _0fC):\n return (zi3C - Ot1W) // _0fC + 1", "def FDZG(zi3C, Ot1W, _0fC):\n return (zi3C - Ot1W) // _0fC + 1", "def FSZV(PA20, vLJr, AGxL):\n aM8h = AGxL / PA20\n dUhV = ZylS.math.ceil(ZylS.cast(vLJr, ZylS.float32) * ZylS.cast(aM8h, ZylS.float32))\n return ZylS.cast(dUhV, Zyl...
[ "0.6587841", "0.6587841", "0.6444032", "0.6378278", "0.6366401", "0.62707245", "0.62707245", "0.62707245", "0.613198", "0.6109229", "0.6097532", "0.6052339", "0.6032256", "0.59874773", "0.589819", "0.57942617", "0.56916547", "0.56909186", "0.5669995", "0.5658779", "0.5646712"...
0.6462485
2
Tensorflow placeholders to manage cumulants data
def QciH(YKHO): ZylS = YKHO.tf Csk6 = YKHO.n_nodes if YKHO._tf_feed_dict is None: with YKHO._tf_graph.as_default(): aPd6 = ZylS.placeholder(ZylS.float64, Csk6, name='L') Nq1b = ZylS.placeholder(ZylS.float64, (Csk6, Csk6), name='C') N2Hf = ZylS.placeholder(ZylS.flo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q5nL(YKHO):\n with ZylS.name_scope('data'):\n YKHO.X = ZylS.placeholder(ZylS.float32, shape=[None, YKHO.dim_inputs], name='X')\n YKHO.value = ZylS.placeholder(ZylS.float32, shape=[None], name='value')\n YKHO.cost = ZylS.placeholder(ZylS.float32, shape=[None], name='cost')\n YKHO....
[ "0.70749587", "0.70651793", "0.68327427", "0.6712424", "0.66559345", "0.66182685", "0.6566491", "0.6509345", "0.6503262", "0.64547104", "0.6433345", "0.6393248", "0.6377645", "0.6313418", "0.6310495", "0.6297564", "0.6296928", "0.6289214", "0.62239736", "0.61954826", "0.61737...
0.6019122
41
Inverted Residual Block This function defines a sequence of 1 or more identical layers. Arguments
def h1jk(g4y1, KUnM, WZcn, a1PO, FEri, exwG, Cwt5, yetk, HVS_=False): WKvO = RzcG(g4y1, KUnM, WZcn, a1PO, FEri, False, Cwt5, yetk, HVS_) for YRbF in range(1, exwG): yetk += 1 WKvO = RzcG(WKvO, KUnM, WZcn, a1PO, 1, True, Cwt5, yetk, HVS_) return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OxUo(YKHO, tYiq, YIPF):\n fhcK = []\n for YRbF in range(YIPF):\n _0fC = 2 if YRbF == 0 else 1\n fhcK.append(Ywl1(in_channels=YKHO.in_channels, out_channels=tYiq, stride=_0fC, conv_cfg=YKHO.conv_cfg, norm_cfg=YKHO.norm_cfg, act_cfg=YKHO.act_cfg, with_cp=YKHO.with_cp))\n YKHO.in_channe...
[ "0.6717466", "0.6475339", "0.63575125", "0.6192982", "0.61108077", "0.60318065", "0.58997923", "0.58931625", "0.5851161", "0.5827282", "0.5768704", "0.57652074", "0.5761624", "0.5755392", "0.57512003", "0.57388943", "0.5733231", "0.573243", "0.5662537", "0.56578296", "0.56480...
0.6434296
2
split texts to sentences
def x3BO(veV6): veV6 = ZbWC.sub('\\s+', ' ', veV6) return N3rN(veV6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(l5Ny):\n A97Q = K9NE(l5Ny)\n Rhv4 = [WKvO.text_with_ws for WKvO in A97Q.sents]\n return Rhv4", "def Y2KJ(l5Ny):\n return l5Ny.split('.')", "def JHW8(YKHO, l5Ny):\n return UQZR(l5Ny)", "def c0FK(l5Ny):\n Rhv4 = Dhdw.sent_tokenize(l5Ny)\n return Rhv4", "def bI8b(YKHO, l5Ny):\n ...
[ "0.83710414", "0.8329", "0.8225964", "0.8067661", "0.7961425", "0.77993125", "0.7655894", "0.75687385", "0.75445944", "0.7494124", "0.7491019", "0.7440767", "0.74174595", "0.73331475", "0.73321724", "0.7322262", "0.7224225", "0.7171182", "0.7153319", "0.71324617", "0.7129685"...
0.65137774
54
Check created article in the database
def DM1E(YKHO): geh0 = YKHO.client.post(gxEw('add_article'), {'title': 'Test title', 'description': 'Some description', 'author': 'Roman'}) YKHO.assertEqual(geh0.status_code, 302)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LX7E(l3QS):\n xUwc = VPhC()\n xeg0(xUwc, l3QS)", "def esSc(YKHO):\n l3QS = wHLq.objects.get(title='Test title')\n YKHO.assertEqual(l3QS.author, 'Roman')", "def DUMZ(YKHO, l3QS):\n try:\n return YKHO.dataHelper.NewArticleCheck(l3QS)\n except Exception:\n return False", "def...
[ "0.767113", "0.7255894", "0.70880735", "0.67282665", "0.6630522", "0.6486169", "0.6451488", "0.63115585", "0.6127866", "0.60886985", "0.6054756", "0.6035617", "0.6029565", "0.59948635", "0.59824014", "0.59824014", "0.5979267", "0.5933839", "0.5921532", "0.59165037", "0.590937...
0.6934458
3
From the given options and style number create a sku sku starts with the style number
def t3qc(YKHO): xAU6 = dict() for MTKo in YKHO.option_combo: for G1Hx, Ty9i in MTKo.items(): xAU6[G1Hx] = Ty9i if YKHO.style_number != None and 'Size' in xAU6 and ('Color' in xAU6): YKHO.sku = F0Cr(YKHO.style_number, xAU6['Size'], xAU6['Color']) else: YKHO.sku = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXIM(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sku')", "def PXIM(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sku')", "def fEWs(oQ6W, Zvvl):\n if oQ6W == 'Fast':\n return [{'text': 'Pizza', 'value': 'Pizza'}, {'text': 'Fries', 'value': 'Fries'}, {'text': 'Franky',...
[ "0.5323145", "0.5323145", "0.5223577", "0.50608057", "0.49972093", "0.49972093", "0.49972093", "0.49828446", "0.49502248", "0.49136004", "0.4891539", "0.48842356", "0.48835248", "0.48835248", "0.4862627", "0.4859636", "0.48177874", "0.48041248", "0.47956222", "0.47931084", "0...
0.69283646
0
Returns list of distributed objects with matching str in value.
def n02H(YKHO, str): for BWXx in YKHO.doId2do.values(): if repr(BWXx).find(str) >= 0: return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eiot(YKHO, str):\n hHld = []\n for BWXx in YKHO.doId2do.values():\n if ZbWC.search(str, repr(BWXx)):\n hHld.append(BWXx)\n return hHld", "def TSF4(YKHO, BWXx):\n return [YEnM for YEnM in YKHO if YEnM == BWXx]", "def VpZS(YKHO, BWXx: str) -> P18b:\n return {G1Hx: Ty9i for G1...
[ "0.5921968", "0.58979887", "0.5833267", "0.57318395", "0.57160556", "0.5702525", "0.56580293", "0.5366401", "0.53330785", "0.5303784", "0.5288114", "0.5242727", "0.52316344", "0.52217627", "0.52116925", "0.51828766", "0.51767546", "0.5142366", "0.5108283", "0.5072347", "0.506...
0.49383354
28
Returns list of distributed objects with matching str in value.
def RGag(YKHO, str): hHld = [] for BWXx in YKHO.doId2do.values(): if repr(BWXx).find(str) >= 0: hHld.append(BWXx) return hHld
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Eiot(YKHO, str):\n hHld = []\n for BWXx in YKHO.doId2do.values():\n if ZbWC.search(str, repr(BWXx)):\n hHld.append(BWXx)\n return hHld", "def TSF4(YKHO, BWXx):\n return [YEnM for YEnM in YKHO if YEnM == BWXx]", "def VpZS(YKHO, BWXx: str) -> P18b:\n return {G1Hx: Ty9i for G1...
[ "0.59227085", "0.58972275", "0.5833337", "0.5716301", "0.5701346", "0.56586784", "0.5368005", "0.53320444", "0.5304357", "0.52873915", "0.52421695", "0.52314204", "0.5221849", "0.5211868", "0.5184318", "0.51766294", "0.51435876", "0.51078254", "0.5072023", "0.50649804", "0.50...
0.5732173
3
Returns list of distributed objects with matching str in value.
def Eiot(YKHO, str): hHld = [] for BWXx in YKHO.doId2do.values(): if ZbWC.search(str, repr(BWXx)): hHld.append(BWXx) return hHld
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TSF4(YKHO, BWXx):\n return [YEnM for YEnM in YKHO if YEnM == BWXx]", "def VpZS(YKHO, BWXx: str) -> P18b:\n return {G1Hx: Ty9i for G1Hx, Ty9i in YKHO.items() if BWXx in G1Hx}", "def RGag(YKHO, str):\n hHld = []\n for BWXx in YKHO.doId2do.values():\n if repr(BWXx).find(str) >= 0:\n ...
[ "0.58972275", "0.5833337", "0.5732173", "0.5716301", "0.5701346", "0.56586784", "0.5368005", "0.53320444", "0.5304357", "0.52873915", "0.52421695", "0.52314204", "0.5221849", "0.5211868", "0.5184318", "0.51766294", "0.51435876", "0.51078254", "0.5072023", "0.50649804", "0.504...
0.59227085
0
Getter method for returning dragon's name.
def W0tD(YKHO) -> str: return YKHO.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wGWt(YKHO):\n return YKHO.name", "def W0tD(YKHO):\n return YKHO.name", "def W0tD(YKHO):\n return YKHO.name", "def W0tD(YKHO):\n return YKHO.name", "def W0tD(YKHO):\n return YKHO._name", "def W0tD(YKHO) -> str:\n return YKHO.__name", "def W0tD(YKHO) -> str:\n return YKHO.name", ...
[ "0.7468487", "0.7427669", "0.7427669", "0.7427669", "0.74273026", "0.73620844", "0.73572934", "0.7353043", "0.7338089", "0.73084176", "0.7304532", "0.7282159", "0.7282159", "0.7282159", "0.7282159", "0.7282159", "0.7282159", "0.7282159", "0.7282159", "0.7282159", "0.7282159",...
0.7338208
10
Getter method for returning dragon's color.
def PICn(YKHO) -> str: return YKHO.color
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PICn(YKHO):\n return YKHO.color", "def PICn(YKHO):\n return YKHO.__color", "def PICn(YKHO):\n return YKHO._color", "def PICn(YKHO):\n return YKHO._color", "def PICn(YKHO):\n return YKHO._color", "def mvpM(YKHO):\n return YKHO.__color", "def mvpM(YKHO):\n return YKHO.__color", ...
[ "0.8203044", "0.81861544", "0.81617385", "0.8095049", "0.8095049", "0.8074423", "0.8074423", "0.8074423", "0.8074423", "0.80591226", "0.8045481", "0.8027125", "0.791138", "0.791138", "0.791138", "0.7891775", "0.78662777", "0.78417546", "0.7818662", "0.7818662", "0.7794021", ...
0.7817898
20
Getter method for returning dragon's rider name.
def v7ll(YKHO) -> str: return YKHO.rider
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wGWt(YKHO):\n return YKHO.name", "def W0tD(YKHO) -> str:\n return YKHO.__name", "def sxpv(YKHO):\n return YKHO.id().split('.')[-2]", "def W0tD(YKHO):\n return YKHO.name", "def W0tD(YKHO):\n return YKHO.name", "def W0tD(YKHO):\n return YKHO.name", "def W0tD(YKHO):\n return YKHO....
[ "0.634643", "0.63225734", "0.62924564", "0.62777346", "0.62777346", "0.62777346", "0.62722576", "0.6261951", "0.6261685", "0.6261685", "0.6261685", "0.6254772", "0.6216818", "0.6207773", "0.6207773", "0.6207773", "0.6207773", "0.6207773", "0.6207773", "0.6207773", "0.6207773"...
0.76943666
0
Convert a MAC address to a readable/printable string
def Z2MB(UTX6): return ':'.join(('%02x' % PDy8(Fg_i) for Fg_i in UTX6))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b78J(Pp4r):\n return '%.2x:%.2x:%.2x:%.2x:%.2x:%.2x' % tuple(map(ord, list(Pp4r)))", "def wMkj(UTX6):\n return ':'.join(('%02x' % ord(Fg_i) for Fg_i in UTX6))", "def Z2MB(UTX6):\n print(':'.join(('%02x' % PDy8(Fg_i) for Fg_i in UTX6)))\n return ':'.join(('%s' % format(PDy8(Fg_i), '0>8b') for Fg...
[ "0.8273255", "0.78195935", "0.7803563", "0.77997285", "0.73939216", "0.72593844", "0.7243189", "0.7214005", "0.71748275", "0.7039925", "0.6994018", "0.698195", "0.69813216", "0.69136333", "0.6732875", "0.67174894", "0.6641035", "0.6640394", "0.6631645", "0.66150683", "0.65944...
0.7411975
7
List all neutron agents. This simple scenario tests the "neutron agentlist" command by listing all the neutron agents.
def iXC1(YKHO, MNB9=None): MNB9 = MNB9 or {} YKHO.neutron.list_agents(**MNB9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sqZi(YKHO):\n Hk1x = YKHO.agent['id']\n with YKHO.override_role_and_validate_list(admin_resource_id=Hk1x) as OaeV:\n OaeV.resources = YKHO.agents_client.list_agents(id=Hk1x)['agents']", "def list(YKHO):\n geh0 = YKHO._client.get('scanners/1/agents')\n return DASs.from_json(geh0.text)", "...
[ "0.73231936", "0.6868263", "0.6479189", "0.63822645", "0.63694865", "0.63333315", "0.6229072", "0.6179095", "0.61598563", "0.60768783", "0.5998408", "0.59750897", "0.5962263", "0.59334254", "0.5910436", "0.58926314", "0.5876416", "0.5760547", "0.5751562", "0.5736388", "0.5698...
0.75959206
0
Transform a string underscore separated words to concatenated camel case.
def fbg1(H5ew): return OkUS.lower_first(''.join((Z9rn.capitalize() or '_' for Z9rn in H5ew.split('_'))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def snJ5(l5Ny):\n V22M = l5Ny.split('_')\n V22M = [GIN8.capitalize() for GIN8 in V22M]\n return ''.join(V22M)", "def K1u_(rwHg):\n NCd0 = ZbWC.search('[^_]', rwHg)\n if NCd0 is None:\n return rwHg\n NCd0 = NCd0.start()\n IYbO = ZbWC.search('[^_]', rwHg[::-1]).start()\n V22M = rwHg....
[ "0.83221126", "0.793683", "0.7901321", "0.7747062", "0.7615975", "0.7602556", "0.7595627", "0.7590738", "0.7586403", "0.75348145", "0.75092083", "0.75092083", "0.74697006", "0.74586874", "0.7444299", "0.74422896", "0.74323833", "0.7342745", "0.72943294", "0.72865486", "0.7271...
0.70812744
28
Tranform a string from concatenated camel case to underscore separated words.
def ZahI(H5ew): j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\1_\\2', H5ew) return ZbWC.sub('([a-z0-9])([A-Z])', '\\1_\\2', j93S).lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def snJ5(l5Ny):\n V22M = l5Ny.split('_')\n V22M = [GIN8.capitalize() for GIN8 in V22M]\n return ''.join(V22M)", "def tIzY(l5Ny):\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1_\\\\2', l5Ny)\n return ZbWC.sub('([a-z0-9])([A-Z])', '\\\\1_\\\\2', j93S).lower()", "def wFtU(mWFP):\n j93S = ZbWC.sub(...
[ "0.7848101", "0.7803973", "0.7521705", "0.75214237", "0.7491522", "0.74801034", "0.74511695", "0.7441275", "0.74139977", "0.73979986", "0.7327715", "0.7319531", "0.72812897", "0.72614264", "0.720159", "0.7151142", "0.71477616", "0.71005505", "0.708255", "0.7053543", "0.702367...
0.66668075
36
Returns a JSON string of the properties of this object.
def oD7C(YKHO): C9U5 = YKHO.to_dict() if isinstance(YKHO, NCls.Model): C9U5['id'] = QMSQ(YKHO.key().id()) return qQXR.dumps(C9U5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oD7C(YKHO):\n return y1pY(YKHO.properties)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO, default=lambda z1Rg: z1Rg.__dict__, sort_keys=True, indent=4)", "def oD7C(YKHO) -> str:\n return feCR().encode(vars(YKHO))", "def oD7C(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def oD7C(YKHO) -> str:\...
[ "0.801932", "0.78940535", "0.78693193", "0.7828171", "0.7798398", "0.776443", "0.77122074", "0.77122074", "0.77122074", "0.77122074", "0.77122074", "0.77122074", "0.77122074", "0.77122074", "0.77122074", "0.77108085", "0.77108085", "0.77108085", "0.768942", "0.768942", "0.765...
0.77808
5
Reads requirements.txt and preprocess it to be feed into setuptools. This is the only possible way (we found) how requirements.txt can be reused in setup.py using dependencies from private github repositories. Links must be appendend by `{StringWithAtLeastOneNumber}` or something like that, so e.g. `9231` works as well...
def tz_l(): with open('requirements.txt', 'r') as eHNT: cEzT = eHNT.readlines() TKON = [] for Eorv in cEzT: TKON.append(Eorv.strip()) return TKON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tz_l():\n WmM4 = open('requirements.txt', 'r').readlines()\n TKON = []\n wPdp = []\n for Eorv in WmM4:\n if 'git+https' in Eorv:\n sKYw = Eorv.split('#')[-1]\n wPdp.append(Eorv.strip())\n TKON.append(sKYw.replace('egg=', '').rstrip())\n else:\n ...
[ "0.69384056", "0.68714464", "0.67864317", "0.67318934", "0.6722779", "0.66511077", "0.662555", "0.6607011", "0.65807784", "0.6577082", "0.648006", "0.64291275", "0.6373021", "0.6369665", "0.636897", "0.63055646", "0.6283874", "0.6283131", "0.62589055", "0.62418413", "0.621587...
0.6527681
10
Find the unique elements of an array. Returns the unique elements of an array, sorted if the values are integers.
def kcwm(hkhn: groupable, yrXT: bool=False, FJSc: bool=False, zP3h: bool=False) -> uLKX[JMxE, AzJI[JMxE, mmG0, mmG0, int]]: from arkouda.categorical import Categorical as Mfsh if not yrXT and hasattr(hkhn, 'unique'): return YWvJ(Mfsh, hkhn).unique() Kvwx, NrNq = KYDK(hkhn) THMt = [G1Hx.name for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gat1(qw7D):\n SUko = []\n for U6D_ in qw7D:\n if U6D_ not in SUko:\n SUko.append(U6D_)\n return SUko", "def XcUH(VosJ):\n yp4p = VosJ.copy()\n P6bq = []\n for YRbF in range(yp4p.shape[0]):\n for r845 in range(yp4p.shape[1]):\n if yp4p[YRbF][r845] not in P...
[ "0.8038059", "0.7883416", "0.7624046", "0.7316546", "0.70729923", "0.70690817", "0.694963", "0.6932527", "0.654732", "0.65094984", "0.6479904", "0.64608985", "0.6433607", "0.63479453", "0.6322649", "0.6317957", "0.6312079", "0.6294689", "0.62838095", "0.6250893", "0.6221376",...
0.0
-1
Using the permutation stored in the GroupBy instance, group another array of values and return the location of the first minimum of each group's values.
def WHwV(YKHO, hkxX: pdarray) -> AzJI[JMxE, mmG0]: G1Hx, Ty9i = YKHO.aggregate(hkxX, 'argmin') return (G1Hx, YWvJ(mmG0, Ty9i))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def min(YKHO, hkxX: pdarray, nLK1: bool=True) -> AzJI[JMxE, mmG0]:\n if hkxX.dtype == bool:\n raise TypeError('min is only supported for pdarrays of dtype float64, uint64, and int64')\n G1Hx, Ty9i = YKHO.aggregate(hkxX, 'min', nLK1)\n return (G1Hx, YWvJ(mmG0, Ty9i))", "def min(YKHO, hkxX):\n r...
[ "0.64385456", "0.6347722", "0.62624", "0.6164361", "0.6151797", "0.61464036", "0.60271263", "0.59045887", "0.59003156", "0.5885844", "0.5872609", "0.5853685", "0.57962614", "0.5745266", "0.57272196", "0.5690612", "0.56418973", "0.5636432", "0.562964", "0.5610488", "0.5603355"...
0.69330215
0
Using the permutation stored in the GroupBy instance, group another array of values and return the number of unique values in each group.
def HZ_h(YKHO, hkxX: groupable) -> AzJI[JMxE, mmG0]: cNdD = YKHO._nested_grouping_helper(hkxX) Oa1e = fd_b(cNdD) E0Gw = fd_b(Oa1e.unique_keys[0], assume_sorted=False) tUwT, gH63 = E0Gw.count() if not mwCj(tUwT): IuXB = hj4Q(tUwT) gH63 = gH63[IuXB] return (YKHO.unique_keys, gH63)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e89n(ezWE):\n wjRY = 0\n for uOe2 in ezWE:\n ga5z = []\n for a70H in uOe2:\n ga5z = ga5z + a70H\n sgpc = mBkc(''.join(ga5z))\n for G1Hx, Ty9i in sgpc.items():\n if Ty9i == len(uOe2):\n wjRY += 1\n return wjRY", "def tpjX(ezWE):\n re...
[ "0.6692056", "0.6514736", "0.6279726", "0.60444146", "0.6031069", "0.5973661", "0.5922462", "0.5840128", "0.57812256", "0.5724044", "0.57236016", "0.57113916", "0.5701299", "0.56983083", "0.56564033", "0.5594766", "0.5575654", "0.5517981", "0.5427025", "0.5399754", "0.5363425...
0.6545248
1
Broadcast a dense column vector to the rows of a sparse matrix or grouped array.
def iJtT(PXIy: pdarray, hkxX: Union[pdarray, Strings], zNig: Union[int, np.int64, np.uint64]=-1, cZDQ: Union[pdarray, None]=None): if PXIy.size != hkxX.size: raise ValueError('segments and values arrays must be same size') if PXIy.size == 0: raise ValueError('cannot broadcast empty array') i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tici(WKvO):\n return pywP(WKvO).transpose()", "def pywP(WKvO):\n WKvO = oyIN.atleast_1d(WKvO)\n return WKvO[:, None]", "def r6oa(WKvO):\n assert WKvO.ndim == 1\n return oLG2.expand_dims(WKvO, 0)", "def _Eet(YKHO):\n return _Eet(YKHO)", "def U14a(YKHO, WKvO):\n return YKHO * WKvO", ...
[ "0.5757964", "0.5752052", "0.54606235", "0.537277", "0.5359915", "0.5346009", "0.53247625", "0.531777", "0.5277394", "0.52340806", "0.52258193", "0.522147", "0.5201537", "0.5190513", "0.5175882", "0.51431966", "0.514184", "0.5111938", "0.50977606", "0.5071325", "0.50695527", ...
0.0
-1
Return today's datetime, just here for easier mocking.
def gVTZ(): return qcWV.today()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gVTZ() -> qcWV.date:\n return qcWV.date.today()", "def yo7_():\n return qcWV.today()", "def yo7_():\n yo7_ = qcWV.utcnow()\n return qcWV(yo7_.year, yo7_.month, yo7_.day)", "def kKWq() -> qcWV.date:\n return qcWV.today().date()", "def yFTO():\n return _c1T.today()", "def yo7_(Emd4):\...
[ "0.8491076", "0.8480861", "0.8419845", "0.8414558", "0.83412594", "0.79689896", "0.7936523", "0.78593624", "0.7788308", "0.7763568", "0.7742245", "0.7731458", "0.7717004", "0.7698055", "0.76805043", "0.7675574", "0.76437294", "0.7593918", "0.74716413", "0.74687356", "0.745812...
0.8706547
0