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
Initialize the figure, setting up axes, labels, the colorbar, etc.
def lfwe(YKHO, LZpg): YKHO.init_vars() YKHO.xs, YKHO.ys = oyIN.meshgrid(oyIN.arange(0.0, YKHO.max_iter + 0.5) - 0.5, oyIN.arange(0.0, YKHO.n_vars + 0.5) - 0.5) YKHO.cs = oyIN.zeros((YKHO.n_vars, YKHO.max_iter)) YKHO.ax = LZpg.add_subplot(111) YKHO.ax.xaxis.set_major_locator(SYlA.MaxNLocator(integer=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wy33(YKHO):\n YKHO.dpi = 100\n YKHO.fig = QD4e((5.0, 5.0), dpi=YKHO.dpi)\n YKHO.main_plot = YKHO.fig.add_subplot(111)\n YKHO.main_plot.set_axis_bgcolor('black')\n YKHO.main_plot.set_title('Dynamic venous flow view', size=12)\n qjJM.setp(YKHO.main_plot.get_xticklabels(), fontsize=8)\n qjJM....
[ "0.75943357", "0.7511165", "0.7426772", "0.72929573", "0.72190505", "0.71878165", "0.71523213", "0.7133514", "0.7107856", "0.70858306", "0.70858306", "0.7076263", "0.69234425", "0.68722236", "0.6838714", "0.6828186", "0.68142134", "0.67956245", "0.6791702", "0.6785772", "0.66...
0.68371314
15
Follow the ray through a scene. This the highest level raytracing function. It moves the ray through the scene and returns a list of rays a Monte Carlo decision events. Each decision is an interaction which alters one of the rays properties such as position, direction or wavelength. Raises TraceError If an error occurr...
def NTN7(spHt: Ray, F6jf: Scene, ABAq=1000, pFW3=None) -> [AzJI[m1mO, KW3p]]: pmON = [(spHt, KW3p.EMIT)] or8S = 0 L_Hv = spHt while spHt.is_alive: uMII = F6jf.intersections(spHt.position, spHt.direction) LTIa, Ziit = zip(*[(WKvO.point, WKvO.hit) for WKvO in uMII]) for spHt, OiKl ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zgsA(YKHO):\n assert YKHO.scene != None, \"The photon's scene variable is not set.\"\n WB6J, UiDa = YKHO.scene.intersection(YKHO.ray)\n '\\n #DIAGNOSTICS\\n print \"\\nnew\\n\"\\n print self.position, self.direction, \"\\n\"\\n print intersection_points, \"\\n\"\\n f...
[ "0.6096028", "0.5720131", "0.53395605", "0.5280205", "0.52341133", "0.5229237", "0.5210934", "0.51344943", "0.504689", "0.49148622", "0.48444077", "0.48200026", "0.4810558", "0.4774753", "0.4726236", "0.47177863", "0.47170755", "0.46889123", "0.46854603", "0.46630841", "0.466...
0.6562233
0
Renders the home page.
def kZiy(): return TvZl('home.html', title='Home Page', year=qcWV.now().year)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVaH():\n return TvZl('index.html')", "def kZiy():\n return TvZl('home_page.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZ...
[ "0.85574406", "0.853399", "0.8351404", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.82762724", "0.827363", "...
0.82187074
23
Renders the about page.
def vsuQ(): return TvZl('about.html', title='About', year=qcWV.now().year, message='Your application description page.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vsuQ():\n return TvZl('about.html', title='About')", "def vsuQ():\n return TvZl('about_page.html', title='About')", "def vsuQ():\n return TvZl('about.html')", "def wZMb(YKHO):\n LgJI()", "def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"...
[ "0.85651284", "0.85034347", "0.844895", "0.84050864", "0.8394327", "0.82936406", "0.82678735", "0.82434386", "0.8239326", "0.8224289", "0.8208038", "0.820477", "0.81737614", "0.81729555", "0.8096616", "0.8050326", "0.8050326", "0.8050326", "0.8050326", "0.8050326", "0.8050326...
0.827099
15
Takes a string representation of a date compatible with the database and returns a string representing it in a better format.
def n2Ei(ITS7): return qcWV.strptime(ITS7, '%d/%m/%Y %H:%M:%S').strftime('%a, %d/%m/%Y %H:%M:%S')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zntt(k3xj):\n _c1T = k3xj.split('/')\n return f'{_c1T[2]}-{_c1T[0]}-{_c1T[1]}'", "def VGH_(_c1T):\n if type(_c1T) == str:\n return _c1T\n quSE = _c1T.strftime('%d/%m/%Y')\n return quSE", "def Zntt(k3xj):\n x0eS, CjKC, lO87 = k3xj.split('/')\n return f'{lO87}-{x0eS}-{CjKC}'", "...
[ "0.69423914", "0.68834925", "0.68595445", "0.6839644", "0.68103737", "0.67406017", "0.67105925", "0.67086565", "0.66993916", "0.669428", "0.66933423", "0.6690244", "0.66560346", "0.6641878", "0.6640752", "0.6618706", "0.6609199", "0.6604651", "0.6604188", "0.65968853", "0.659...
0.0
-1
1.1 c) For a given set of actions map every action to its corresponding actionclass representation. Assume there are number_of_classes different classes, then every action is represented by a number_of_classesdim vector which has exactly one nonzero entry (onehot encoding). That index corresponds to the class number.
def Bj1i(YKHO, xASv): return [ht2j.Tensor([int(ht2j.prod(XeOP == XiP7)) for XiP7 in ht2j.Tensor(YKHO.classes)]) for XeOP in xASv]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UPru(YeV4, Ybg9):\n x6A0 = oyIN.array(YeV4).reshape(-1)\n return oyIN.eye(Ybg9)[x6A0]", "def UPru(nPrm, Ybg9):\n x6A0 = oyIN.array(nPrm).reshape(-1)\n return oyIN.eye(Ybg9)[x6A0]", "def UPru(nPrm, Ybg9):\n x6A0 = oyIN.array(nPrm).reshape(-1)\n return oyIN.eye(Ybg9)[x6A0]", "def UPru(nPr...
[ "0.7148872", "0.70771503", "0.70771503", "0.70771503", "0.70771503", "0.7029489", "0.7004081", "0.7003882", "0.69442666", "0.688942", "0.6880241", "0.6868653", "0.6807544", "0.67937285", "0.6779048", "0.67430925", "0.6716553", "0.671614", "0.67012924", "0.66908157", "0.669081...
0.72311914
0
Returns the Django field type according to one db_code.
def sdgl(tyby): try: vF49 = UzPC.introspection.get_field_type(tyby, 'django_musicbrainz tests') except KeyError: vF49 = 'TextField' return vF49
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OGUm(YKHO, Jyyj):\n if YKHO.connection.settings_dict.get('STORE_RELATIONS_AS_DB_KEYS'):\n if Jyyj.primary_key or Jyyj.rel is not None:\n return 'key'\n else:\n if Jyyj.primary_key:\n return 'key'\n if Jyyj.rel is not None:\n rPlx = Jyyj.rel.get_relate...
[ "0.7646184", "0.7156243", "0.7134062", "0.7047216", "0.6942776", "0.6633029", "0.6565044", "0.6511266", "0.6343124", "0.63209075", "0.6287278", "0.6273222", "0.62550527", "0.6239935", "0.62092274", "0.6208639", "0.61778575", "0.61667687", "0.61664134", "0.6150721", "0.6126250...
0.8338392
0
Returns a dictionnary presenting all the fk given a model. We return a dictionnary (wich keys are Foreignkey fields and values the related classes) of all foreign keys of the given model. We exclude the Link attribute here because it is specific to musicbrainz database.
def oIBR(YKHO, C3ST): ApQH = {} for Jyyj in C3ST._meta.fields: if Jyyj.get_internal_type() == 'ForeignKey': xkhk = Jyyj.foreign_related_fields[0].model ApQH.update({Jyyj: xkhk}) return ApQH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nmZj(YKHO):\n TK2h = YKHO.execute(YKHO.commands.foreign_keys(YKHO.db.name, YKHO.name))\n return [w4Cq(*SjLr) for SjLr in TK2h]", "def q2j1(YKHO):\n jxGD, ilmF = YKHO._get_model_class_from_table(YKHO.model._meta.db_table)\n UbeE = {YKHO.model._meta.pk.attname: jxGD}\n for SxXI, jxGD in YKHO._ge...
[ "0.6706281", "0.65210557", "0.63893056", "0.6351794", "0.63229346", "0.6299821", "0.6169115", "0.606853", "0.6051908", "0.5925734", "0.5912857", "0.58689386", "0.58285373", "0.5744976", "0.57380694", "0.56495386", "0.5610692", "0.5566528", "0.54720426", "0.5466197", "0.544611...
0.8276735
0
Returns True if the db table is filled.
def inIg(YKHO, C3ST): if C3ST.objects.count() > 1: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAnB(YKHO):\n bFTL = yA8U(YKHO.reader_connection)\n xDcj = f'SELECT * FROM {YKHO.table_name}'\n bFTL.exec(xDcj)\n oVOt = bFTL.first()\n bFTL.finish()\n return not oVOt", "def T0_f(YKHO):\n DpUl = YKHO.conn.execute('SELECT COUNT(*) FROM todo;')\n if DpUl != None:\n rdlD = DpUl.f...
[ "0.7989517", "0.77740866", "0.7401597", "0.73780483", "0.7313501", "0.7149495", "0.7124198", "0.70741206", "0.70411396", "0.70403194", "0.7038719", "0.6972792", "0.69166446", "0.6834175", "0.6828665", "0.68257093", "0.676939", "0.67584777", "0.6750119", "0.6741276", "0.670347...
0.0
-1
Returns the height of the image.
def H2v2(YKHO): return YKHO.__height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bAiv(YKHO):\n return YKHO._image.height()", "def H2v2(YKHO) -> int:\n return YKHO._image_data.height", "def bAiv(YKHO):\n return gmYn(YKHO.image.height)", "def xglF(YKHO):\n H2v2 = oyIN.size(YKHO.img, 1)\n return H2v2", "def H2v2(YKHO):\n return len(YKHO._pixels)", "def BPB8(*qIxc, ...
[ "0.89506096", "0.8874764", "0.8610431", "0.8515619", "0.8030037", "0.7947878", "0.772436", "0.7714758", "0.77123135", "0.77123135", "0.76606", "0.7656363", "0.7645478", "0.76288193", "0.7618401", "0.7608463", "0.7584923", "0.75764847", "0.75716114", "0.7570874", "0.75584275",...
0.74283624
46
Function for aggregation over a given axis with masking. If mask is not given, this reduces to regular tf.reduce_mean. If mask is given, it is assumed that the last dimension is the actual vector dimension. Mask is always expanded in the last dimension.
def Qytw(WKvO, ZHfW=None, jDK_=-2): if ZHfW is None: return ZylS.reduce_mean(WKvO, axis=jDK_) return ZylS.math.divide_no_nan(ZylS.reduce_sum(WKvO * ZylS.expand_dims(ZHfW, axis=-1), axis=jDK_), ZylS.reduce_sum(ZHfW, axis=jDK_ + 1, keepdims=True))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PQIG(hkxX, Mi3O):\n Ialu = ZylS.reduce_sum(Mi3O, axis=1)\n BRiJ = [Ty9i * Mi3O[:, AMqD] for AMqD, Ty9i in enumerate(hkxX)]\n NY8A = sum(BRiJ) / Ialu\n return ZylS.reduce_mean(NY8A)", "def JBMS(vhpA, jDK_=None):\n raise NotImplementedError", "def _8vb(vhpA: TensorLike, ZHfW: TensorLike, JZXy:...
[ "0.66798264", "0.61095035", "0.60616475", "0.59319", "0.5856177", "0.58532727", "0.58380735", "0.5824873", "0.57991207", "0.5764003", "0.57506496", "0.57493556", "0.57463497", "0.5740388", "0.57099557", "0.56825525", "0.56018543", "0.56003636", "0.55803686", "0.5565008", "0.5...
0.85491186
0
Takes in a target sprite and uses that sprite as the center point for offsetting the rest of the sprites
def QdZT(YKHO, pan_): YKHO.state = YKHO.camera_func(YKHO.state, pan_.rect)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h1hi(YKHO):\n hksT = YKHO.rect.center\n YKHO.image = a9eO.transform.rotate(YKHO.current_sprite_alpha, YKHO.rot)\n YKHO.rect = YKHO.image.get_rect()\n YKHO.rect.center = hksT", "def yo55(YKHO, wzql):\n YKHO.player_sprite = wzql['player'][0][0]\n YKHO.center_x += YKHO.change_x\n YKHO.cente...
[ "0.66826797", "0.61527306", "0.6144488", "0.6129389", "0.6125854", "0.61147213", "0.6084067", "0.6084067", "0.60491353", "0.60326695", "0.6012217", "0.598216", "0.5955773", "0.593776", "0.59333295", "0.5928312", "0.59150267", "0.59150267", "0.59150267", "0.59093493", "0.58938...
0.0
-1
Generates a monster sprite
def FIMM(YKHO, YRbF, r845, H46p): a9eO.sprite.Sprite.__init__(YKHO) YKHO.image = a9eO.image.load('mob.png').convert_alpha() YKHO.pos = (YRbF * 30, r845 * 30) YKHO.rect = YKHO.image.get_rect() YKHO.monst = H46p YKHO.rect.topleft = YKHO.pos YKHO._layer = 3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t7Ik(WKvO, LVAh, YRbF):\n Vjhr.blit(jDtJ[YRbF], (WKvO, LVAh))", "def qrn2(Emd4, bseI):\n mSrU = ajWY(1, 3)", "def F9LH():\n E6VQ = QePW.get_json()\n CK9p = [[0, 0, 1] + E6VQ, [1, 0, 0] + E6VQ, [0, 1, 0] + E6VQ]\n Ep8u = oyIN.zeros((len(CK9p), 1))\n Rtnc = oyIN.random.uniform(-1, +1, [len(...
[ "0.7201535", "0.67219", "0.6643753", "0.6526032", "0.638599", "0.6376612", "0.6358753", "0.6304838", "0.62719095", "0.6153691", "0.60829616", "0.6057755", "0.6009992", "0.60093987", "0.60040444", "0.59827334", "0.59744436", "0.59046626", "0.59046394", "0.5895289", "0.5895193"...
0.65510964
3
Updates the position of the monster sprite
def QdZT(YKHO, oeNL): YKHO.rect.topleft = oeNL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JwSu(YKHO, R8mN):\n YKHO.rect.x = R8mN[1] * a8Nu\n YKHO.rect.y = R8mN[0] * a8Nu", "def BZN_(YKHO):\n assert YKHO.is_alive, 'Sprite is dead, and should not be able to move'\n if YKHO.health > 3:\n YKHO.y += tuKI.randint(-1, 1)\n YKHO.x += tuKI.randint(-1, 1)\n print(YKHO.name, 'mo...
[ "0.7158826", "0.6939801", "0.6890657", "0.6862032", "0.6791884", "0.6775478", "0.6716076", "0.6701772", "0.6698885", "0.6688597", "0.6664618", "0.66172695", "0.66150993", "0.66045564", "0.66032183", "0.65995747", "0.65701616", "0.6569943", "0.6532555", "0.651882", "0.65142447...
0.6222876
58
Updates the position of the dagger sprite
def QdZT(YKHO, oeNL): YKHO.rect.topleft = oeNL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JwSu(YKHO, R8mN):\n YKHO.rect.x = R8mN[1] * a8Nu\n YKHO.rect.y = R8mN[0] * a8Nu", "def QdZT(YKHO):\n YKHO.y -= YKHO.settings.bullet_speed\n YKHO.rect.y = YKHO.y", "def QdZT(YKHO):\n YKHO.syncSpriteCoordinates()\n YKHO.moveBasedOnCurrentMomentum()\n YKHO.checkCanvasBoundsAndWrap()", "...
[ "0.70255613", "0.6997788", "0.6976096", "0.69332737", "0.68608904", "0.6810903", "0.6807336", "0.6767474", "0.6750019", "0.6748812", "0.6734572", "0.6725053", "0.6693116", "0.66631544", "0.66401356", "0.663863", "0.66374594", "0.6610101", "0.6608846", "0.6608717", "0.6592875"...
0.6306142
48
Makes sure line edit input is an email address
def zPcc(YKHO, *qIxc, **B2fa): vC92 = YKHO.sender() aBkf = vC92.validator() QTBn = aBkf.validate(vC92.text(), 0)[0] if QTBn == CsJA.QValidator.Acceptable: YKHO.btn_next.setEnabled(True) elif QTBn == CsJA.QValidator.Intermediate: YKHO.btn_next.setEnabled(False) else: YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _W4C(YKHO, D3lj):\n YKHO.selib.input_text(YKHO.locator.email, D3lj)", "def Bt7w(YKHO):\n D3lj = input('Email: ').strip()\n if D3lj is None or D3lj == '':\n print(YKHO.INVALID_INPUT)\n YKHO.display_cust_unlock()\n else:\n return D3lj", "def ozWI(zFiD):\n D3lj = zFiD.o_ema...
[ "0.7289475", "0.7058663", "0.69433063", "0.6903912", "0.6848374", "0.6846386", "0.67948705", "0.67809004", "0.6696055", "0.6694962", "0.6678921", "0.6678921", "0.667121", "0.6644674", "0.66416204", "0.6630371", "0.6609187", "0.66055584", "0.657329", "0.6537217", "0.6515402", ...
0.0
-1
Parse an ImageNet record from `value`.
def j8_j(OMV9, LT6S): yJc9 = {'image/encoded': ZylS.FixedLenFeature((), ZylS.string, default_value=''), 'image/format': ZylS.FixedLenFeature((), ZylS.string, default_value='jpeg'), 'image/class/label': ZylS.FixedLenFeature([], dtype=ZylS.int64, default_value=-1), 'image/class/text': ZylS.FixedLenFeature([], dtype=Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j8_j(AIu6, Y9ns):\n h7gd = AIu6.reshape((3, 32, 32))\n LNo8 = oyIN.transpose(h7gd, [1, 2, 0])\n LNo8 = j9DC(LNo8, Y9ns)\n LNo8 = oyIN.transpose(LNo8, [2, 0, 1])\n return LNo8", "def hCzz(YKHO, BWXx):\n if 'image' in BWXx:\n Yw_3 = BWXx['image']\n elif 'video' in BWXx:\n Yw_...
[ "0.64319015", "0.6157251", "0.6101005", "0.6046558", "0.6025733", "0.6022002", "0.59880024", "0.5860179", "0.5717987", "0.5681111", "0.5634661", "0.5552306", "0.55285656", "0.55222565", "0.5494805", "0.54907966", "0.5465754", "0.53897536", "0.53897536", "0.53804564", "0.53686...
0.61877835
1
Initialize bias variables of a specific shape using a constant
def Y7ph(YKHO, ROpF): G7WF = ZylS.constant(0.1, shape=ROpF) return ZylS.Variable(G7WF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7ph(ROpF):\n RqgG = ZylS.zeros(ROpF)\n return ZylS.Variable(RqgG)", "def KR18(GMOZ, pGMM, wdin):\n return ZylS.Variable(ZylS.constant(wdin, shape=GMOZ, name='bias{}'.format(pGMM)))", "def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG)", "def Y7ph(ROpF):\n...
[ "0.78289545", "0.77637416", "0.77108777", "0.76951355", "0.76951355", "0.76951355", "0.7671462", "0.7671462", "0.7671462", "0.7671462", "0.7671462", "0.7671462", "0.7671462", "0.7671462", "0.7671462", "0.7671462", "0.7583781", "0.75617814", "0.7557539", "0.75549406", "0.75378...
0.71301633
32
Return the value of the tf variable named [var_name] if it exists, None otherwise
def Zmkp(YKHO, XuY2, FBiP): if XuY2 in YKHO.learning_parameters: BWXx = FBiP.run(YKHO.learning_parameters[XuY2]) elif XuY2 in YKHO.layers: BWXx = FBiP.run(YKHO.layers[XuY2]) else: print('Unknown DQN variable: ' + XuY2) assert 0 return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JOc8(mWFP):\n try:\n khtY = ZylS.get_default_graph().get_operation_by_name(mWFP)\n except KeyError:\n return None\n try:\n ROpF = ZylS.TensorShape(khtY.get_attr('shape'))\n except ValueError:\n ROpF = khtY.outputs[0].shape\n with ZylS.variable_scope(ZylS.get_variable_...
[ "0.7715287", "0.75126535", "0.74355227", "0.74193746", "0.69708085", "0.6933095", "0.68128526", "0.6783163", "0.67298526", "0.66808903", "0.6652503", "0.6560626", "0.6557995", "0.65430015", "0.6540453", "0.65257984", "0.6515488", "0.6497716", "0.64893275", "0.64797187", "0.64...
0.69645065
5
Get the full filename for saving
def f7I7(OTY2, l7Sm, Fst3): lR77 = '.'.join([l7Sm, Fst3]) lR77 = '/'.join([OTY2, lR77]) return lR77
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chdI(YKHO):\n return YKHO.save_dir + Hy7s.sep + YKHO.save_file_without_ext + YKHO.save_file_ext", "def VFIc(YKHO):\n pmON, Ux0P = Hy7s.path.split(YKHO.path)\n TCuf = Hy7s.path.join(pmON, Hy7s.path.splitext(Ux0P)[0])\n return TCuf", "def Ux0P(YKHO):\n return '%s%s' % (YKHO.identifier, YKHO.ex...
[ "0.79725504", "0.7824443", "0.77689654", "0.7747547", "0.77316093", "0.76885384", "0.7640925", "0.7538406", "0.753084", "0.7524455", "0.74916315", "0.7485806", "0.74562746", "0.7452422", "0.7436175", "0.7431548", "0.74297124", "0.7412633", "0.7378294", "0.73579824", "0.733451...
0.7154053
33
Gets data object binding for XSD element, creating a new one if it doesn't exist.
def GDGL(YKHO, *gitN, CRvm=False, **o8Kj): if YKHO.binding is None or CRvm: if not gitN: gitN = (qIAq.DataElement,) o8Kj['xsd_element'] = YKHO _2sc = '{}Binding'.format(YKHO.local_name.title().replace('_', '')) YKHO.binding = qIAq.DataBindingMeta(_2sc, gitN, o8Kj) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KcJ0(YKHO):\n nA5M = YKHO.binder.get_bindings(domain=[('id', '=', YKHO.binding_id)])\n assert len(nA5M) <= 1, 'More than one binding record returned!'\n if nA5M:\n assert nA5M.id == YKHO.binding_id, 'Id of returned binding does not match self.binding_id!'\n assert nA5M._name == YKHO.mode...
[ "0.58074105", "0.5553996", "0.51235455", "0.5003926", "0.49915308", "0.4991172", "0.49894753", "0.4913071", "0.48344436", "0.48135903", "0.47758353", "0.47752652", "0.47669658", "0.4742835", "0.47280192", "0.46583763", "0.46161988", "0.46073112", "0.45859587", "0.45729214", "...
0.71188736
0
Gets the calories of this RecipeObjectNutrients.
def BHpE(YKHO) -> x1iM[VVJg]: return YKHO._calories
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H1u3(YKHO) -> x1iM[VVJg]:\n return YKHO._fat", "def Ibef(YKHO) -> x1iM[VVJg]:\n return YKHO._daily_values", "def vzoC(YKHO) -> x1iM[VVJg]:\n return YKHO._carbs", "def BHpE(YKHO, BHpE: List[RecipeObjectNutrientsCalories]):\n YKHO._calories = BHpE", "def rNV6(exwG: list) -> list:\n return ...
[ "0.72750074", "0.70530975", "0.6611966", "0.6518048", "0.6454777", "0.6131532", "0.5854304", "0.5485858", "0.5478278", "0.547796", "0.537675", "0.53610563", "0.53304446", "0.53304446", "0.5317418", "0.53039867", "0.5297933", "0.52955186", "0.52600896", "0.52417797", "0.522668...
0.87976277
0
Gets the daily_values of this RecipeObjectNutrients.
def Ibef(YKHO) -> x1iM[VVJg]: return YKHO._daily_values
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ibef(YKHO, Ibef: List[RecipeObjectNutrientsCalories]):\n YKHO._daily_values = Ibef", "def IYen(YKHO):\n return Z9rn.Daily(YKHO)", "def TSF4(YKHO, YdD0):\n U5bT = []\n for Csk6 in YdD0:\n U5bT.append(YKHO.data[Csk6])\n return U5bT", "def Hglh(YKHO):\n return YKHO._current_daily_da...
[ "0.72305614", "0.65636015", "0.65295464", "0.64923424", "0.64029515", "0.6391832", "0.63654166", "0.6297575", "0.6297493", "0.61941934", "0.6169327", "0.61227626", "0.60183954", "0.59031934", "0.5860954", "0.5802884", "0.5787879", "0.57442445", "0.5687329", "0.5687329", "0.56...
0.89081395
0
Sets the vitamins of this RecipeObjectNutrients.
def pG7I(YKHO, pG7I: List[RecipeObjectNutrientsCalories]): YKHO._vitamins = pG7I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pG7I(YKHO) -> x1iM[VVJg]:\n return YKHO._vitamins", "def _A04(YKHO, _A04: List[IngredientObjectNutrients]):\n YKHO._nutrients = _A04", "def JJBe(YKHO, zKHR: [Ingredient]):\n YKHO.ingredients = zKHR", "def sfsz(YKHO):\n\n def nuvl(dKc3):\n try:\n zYRa = dKc3['rated_power']\n ...
[ "0.64716953", "0.6081736", "0.5574348", "0.53061026", "0.518112", "0.5173321", "0.5160341", "0.51164126", "0.49716756", "0.49086627", "0.4848157", "0.4844874", "0.48358837", "0.48286957", "0.48282793", "0.48134834", "0.47993714", "0.4771006", "0.47662553", "0.4758868", "0.475...
0.8330108
0
Gets next available data (blocks until new datum is received)
def NMoC(YKHO, Hghu, o61b): assert Hghu in YKHO.types, "Unknown type '%s'" % Hghu assert o61b in YKHO.symbols, "Unknown symbol '%s'" % o61b while True: try: return YKHO._get_nowait(Hghu, o61b) except rWmY: ITS7.sleep(1e-06)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wIX3(YKHO):\n while True:\n TK2h = YKHO._parser.find_first_packet(YKHO._dataqueue[:])\n if TK2h:\n YKHO._dataqueue = TK2h[1]\n return TK2h[0]\n else:\n jbXL = YKHO.conn.recv(1024)\n YKHO._dataqueue += jbXL", "def wIX3(YKHO):\n while not (...
[ "0.72683173", "0.71582067", "0.6525473", "0.65112025", "0.648641", "0.6431125", "0.6395619", "0.6376792", "0.6356209", "0.63528657", "0.63524115", "0.6345988", "0.62975043", "0.6263362", "0.62547386", "0.62542653", "0.62379247", "0.62351114", "0.6231469", "0.61916023", "0.618...
0.0
-1
Gets the sortby of this ListIncidentTypesRequest. sort by property, create_time.
def hHsm(YKHO): return YKHO._sortby
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tXd8(YKHO):\n return YKHO.__sort_by", "def tXd8(YKHO) -> k4lL:\n if hasattr(YKHO, 'json') and isinstance(YKHO.json, dict):\n rc64 = YKHO.json.get('sort_by', 'relevance')\n if k4lL.is_sort_field(rc64):\n return k4lL.from_str(rc64)\n return k4lL.relevance", "def aJ2e(Emd4):\...
[ "0.60053205", "0.5642393", "0.5297866", "0.51642686", "0.5159831", "0.51405084", "0.51402473", "0.5120792", "0.49116194", "0.48725325", "0.48479894", "0.4805215", "0.4805215", "0.4805215", "0.4805215", "0.4805215", "0.4805215", "0.48035392", "0.47970736", "0.47963285", "0.477...
0.59303665
1
Sets the sortby of this ListIncidentTypesRequest. sort by property, create_time.
def hHsm(YKHO, hHsm): YKHO._sortby = hHsm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wKry(YKHO, AwKv):\n if AwKv is not None and (not isinstance(AwKv, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: sort_by EXPECTED TYPE: str', None, None)\n YKHO.__sort_by = AwKv\n YKHO.__key_modified['sort_by'] = 1", "def hHsm(YKHO):\n return YKHO._sortby", "def tXd8(YKHO):\n return ...
[ "0.6257638", "0.54993236", "0.5464183", "0.54627854", "0.52495563", "0.50132823", "0.49685574", "0.49542192", "0.484542", "0.48365948", "0.481828", "0.476103", "0.4724908", "0.46929002", "0.46754602", "0.46674332", "0.4666127", "0.46658027", "0.46524018", "0.4646715", "0.4642...
0.63901293
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, c8t5): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8457167", "0.8393036", "0.81455255", "0.8139734", "0.81333447", "0.8094964", "0.8093362", "0.8093362", "0.8093362", "0.80863476", "0.80863476", "0.8077286", "0.8077286", "0.806682" ]
0.0
-1
Find the proportion of states in each promoter window
def bfNv(YKHO): if YKHO.verbose >= 2: print('\r{}\rAssign states to promoters'.format(' ' * 80), end='', file=HwRy.stderr) ZnkO = XTiz.zeros((YKHO.rna.shape[0], 2), dtype=XTiz.int32) for YRbF in range(YKHO.rna_indices.shape[0] - 1): KCHu = YKHO.rna_indices[YRbF] tTpl = YKHO.rna_indic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wwRm(YKHO, wspz, xASv):\n BFeB = oyIN.ones(len(wspz)) / 2\n return BFeB", "def BmyW(YKHO):\n for YRbF in range(YKHO.noOfEmmittingStates):\n YKHO.outputProbabilities[YRbF, 0] = (YKHO.L[YRbF, :] * YKHO.observationSequence).sum() / YKHO.L[YRbF, :].sum()", "def CCcM(YKHO) -> oyIN.ndarray:\n ...
[ "0.64039034", "0.6019975", "0.59359825", "0.58757675", "0.5864005", "0.58565325", "0.58375823", "0.58301383", "0.5823614", "0.57711697", "0.5725307", "0.57216555", "0.5689816", "0.5679271", "0.5659363", "0.5651137", "0.5628288", "0.5626039", "0.5623861", "0.56230336", "0.5600...
0.523898
88
Output the list of neighbors of this vertex.
def zAg0(YKHO): return YKHO.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BTfj(YKHO):\n return YKHO.neighbors.keys()", "def A_IW(YKHO):\n return YKHO.graph.neighbors(YKHO.id)", "def BTfj(YKHO):\n return YKHO.neighbours_names", "def A_IW(YKHO):\n return YKHO._neighbors", "def A_IW(YKHO):\n return [tTpl.name for tTpl in YKHO.edges()]", "def YHRb(YKHO, SLBp):\n...
[ "0.7470605", "0.7389711", "0.7366538", "0.73501927", "0.73265386", "0.7247321", "0.7229244", "0.7229244", "0.7229244", "0.7229244", "0.72231406", "0.7205957", "0.7084476", "0.70685595", "0.69425327", "0.68990344", "0.68850327", "0.68846864", "0.68796855", "0.6870807", "0.6859...
0.0
-1
Return the neighbors of this vertex.
def BTfj(YKHO): return [AAbN for AAbN, bGrB in YKHO.neighbors.items()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_IW(YKHO):\n return YKHO.graph.neighbors(YKHO.id)", "def A_IW(YKHO):\n return YKHO._neighbors", "def A_IW(YKHO):\n return YKHO.mesh.neighbors()", "def BTfj(YKHO):\n return YKHO.neighbors", "def BTfj(YKHO):\n return YKHO.neighbors", "def BTfj(YKHO):\n return YKHO.neighbors", "def ...
[ "0.8577959", "0.85306996", "0.850339", "0.8190792", "0.8190792", "0.8190792", "0.8190792", "0.81690764", "0.8124509", "0.806112", "0.8014107", "0.7952302", "0.7918339", "0.79144543", "0.7856372", "0.78494", "0.78207767", "0.7726381", "0.7726381", "0.76581526", "0.7603187", ...
0.8030858
10
Return the id of this vertex.
def unpH(YKHO): return YKHO.id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b78Z(YKHO):\n vEq1 = YKHO.vid\n YKHO.vid += 1\n return vEq1", "def id(YKHO):\n return YKHO.proto.id", "def f7Xa(YKHO):\n return YKHO._vertex_id_type", "def wfbg(YKHO):\n return YKHO.id", "def Wuck(YKHO):\n return str(YKHO._maxVertexId + 1)", "def unpH(YKHO):\n return YKHO._id"...
[ "0.77895564", "0.7258614", "0.72343844", "0.7207161", "0.71986246", "0.71852297", "0.71852297", "0.71852297", "0.71852297", "0.71852297", "0.71852297", "0.71632475", "0.7162792", "0.71467817", "0.71467817", "0.7135609", "0.71005", "0.70983744", "0.70983744", "0.70983744", "0....
0.7015745
56
Add a new vertex object to the graph with the given key and return the vertex.
def ohmD(YKHO, H5ew): SLBp = Yegm(H5ew) YKHO.vertices += 1 YKHO.graph[H5ew] = SLBp return SLBp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, H5ew):\n if H5ew != None:\n YKHO.num_vertices += 1\n rJkO = Yegm(H5ew)\n YKHO.vert_list[H5ew] = rJkO\n return rJkO\n raise KeyError(\"There's no key here\")", "def ohmD(YKHO, H5ew):\n SLBp = Yegm(H5ew)\n YKHO.vertices[H5ew] = SLBp", "def ohmD(YKHO, H5ew):\...
[ "0.87255126", "0.8722991", "0.87102705", "0.85453755", "0.8475987", "0.84450465", "0.80544", "0.7441455", "0.7307348", "0.7265836", "0.7246054", "0.72402257", "0.7171863", "0.71515185", "0.7146038", "0.71150756", "0.7098152", "0.708601", "0.708601", "0.7083525", "0.70826155",...
0.88643235
0
add an edge from vertex with key `key1` to vertex with key `key2` with a cost.
def rz7z(YKHO, B2hD, gfpw, upAO=0): if B2hD not in YKHO.graph and gfpw not in YKHO.graph: raise ValueError('Both Vertex of keys {} and {} not in Graph'.format(B2hD, gfpw)) elif B2hD not in YKHO.graph or gfpw not in YKHO.graph: raise ValueError('Either Vertex of keys {} and {} not in Graph'.forma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, MxXY, cWFu, upAO=0):\n YKHO.add_node(MxXY)\n YKHO.add_node(cWFu)\n YKHO.dict[MxXY][cWFu] = upAO", "def rz7z(YKHO, IDWK, rdjO, upAO=1):\n YKHO.vertices[IDWK].add_neighbour(YKHO.vertices[rdjO], upAO)", "def rz7z(YKHO, NLYM, kGnj, sSN_=0):\n if NLYM not in YKHO.vert_dict or kGnj not ...
[ "0.717386", "0.7150445", "0.71389425", "0.7071141", "0.705922", "0.70546234", "0.69653225", "0.69523484", "0.68723005", "0.686017", "0.68499327", "0.68399173", "0.682362", "0.6802067", "0.67960435", "0.6749503", "0.6725868", "0.67047805", "0.6678999", "0.6648231", "0.66471577...
0.8022622
0
return all the vertices in the graph
def EBww(YKHO): return YKHO.graph.keys()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXlf(YKHO):\n return list(YKHO._graph)", "def iXlf(YKHO):\n return list(YKHO.__graph.values())", "def iXlf(YKHO):\n return list(YKHO.graph_dict.keys())", "def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())", "def iXlf(YKHO):\n return list(YKHO.__graph_dict.keys())", "def iXlf(YKHO...
[ "0.861594", "0.8598573", "0.84232175", "0.83618134", "0.8358795", "0.8358795", "0.8358795", "0.83203393", "0.8090475", "0.79803914", "0.7959565", "0.79577017", "0.79134774", "0.7899346", "0.78921044", "0.78649145", "0.78386706", "0.78323376", "0.78055906", "0.78055906", "0.77...
0.8461272
2
Returns self._aliens (the 2d list of aliens in the wave).
def A1A9(YKHO): return YKHO._aliens
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Exdo(YKHO):\n return YKHO._aliens", "def OB7G(YKHO):\n oeTy = DzmL\n usx6 = CLlp\n LNo8 = UDnx\n WKvO = BQQC + HcXc\n LVAh = ralU - Y_Qr - (usx6 - 2) * xSE3 + -((usx6 - 1) * huyH)\n YKHO._aliens = []\n if usx6 > 6:\n LNo8 = UDnx * (usx6 // 3)\n for YRbF in LNo8:\n rEp...
[ "0.8104672", "0.6675642", "0.60342413", "0.59115666", "0.5846313", "0.5796346", "0.56792027", "0.5640674", "0.5538137", "0.5538002", "0.5445459", "0.5431286", "0.54290193", "0.5402356", "0.5398832", "0.5376174", "0.53750706", "0.53684664", "0.5362111", "0.53618795", "0.535530...
0.8181624
0
Returns self._bolts (the laser bolts currently on screen).
def A3Qc(YKHO): return YKHO._bolts
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YQRu(YKHO):\n return YKHO._bolts", "def DeuS(YKHO):\n return YKHO._balls", "def Q4_H(YKHO):\n return YKHO.bolsa", "def wkK1(YKHO):\n return YKHO.BOS", "def KS9F(YKHO) -> x1iM[PvyL]:\n return YKHO._bombs", "def ccuC(YKHO):\n return YKHO._bricks", "def n5ns(YKHO):\n return YKHO._...
[ "0.7864393", "0.6928204", "0.6537481", "0.6481848", "0.6389745", "0.6047762", "0.6027601", "0.6027601", "0.58470184", "0.57694155", "0.57388294", "0.5610215", "0.558035", "0.557391", "0.55503374", "0.55272126", "0.5505021", "0.54728293", "0.5454036", "0.5422399", "0.5410548",...
0.77599704
1
Returns self._lives (the number of lives left).
def GDvM(YKHO): return YKHO._lives
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nq9U(YKHO):\n return YKHO.__num_lives", "def Nq9U(YKHO) -> int:\n return YKHO.rstate.lives()", "def ZU6l(YKHO) -> int:\n return YKHO.__state.lives()", "def Nq9U(YKHO):\n return YKHO._lives", "def z6jr(YKHO):\n return YKHO.__lives", "def Nq9U(YKHO):\n return YKHO._lives", "def Nq9U...
[ "0.8581002", "0.8386947", "0.8140961", "0.7681206", "0.7641726", "0.75877464", "0.75668555", "0.74691445", "0.72418535", "0.67007107", "0.6617538", "0.66124153", "0.65348047", "0.6478063", "0.64320886", "0.6335317", "0.6299356", "0.62779075", "0.62498957", "0.61492556", "0.61...
0.7529445
7
Determines if there is a collision between the bolt fired from the aliens and the ship; if so, sets self._ship to None and reduces self._lives by 1
def pXWz(YKHO): for O3ya in YKHO._bolts: if YKHO._ship.collides(O3ya): YKHO._ship = None if not YKHO._shipexplode is None: YKHO._shipexplode.play() YKHO._bolts.remove(O3ya) YKHO._lives -= 1 return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EU6B(YKHO):\n for KCHu in range(YKHO.getLengthAlien()):\n for a1PO in range(len(YKHO._aliens[0])):\n for Fg_i in YKHO._bolts:\n if YKHO._aliens[KCHu][a1PO] != None and +YKHO._aliens[KCHu][a1PO].collides(Fg_i):\n YKHO._aliens[KCHu][a1PO] = None\n ...
[ "0.75226384", "0.7102362", "0.7081749", "0.70346534", "0.6939146", "0.6891531", "0.6854448", "0.68248653", "0.67908275", "0.67530805", "0.62083966", "0.6183217", "0.61296374", "0.611502", "0.60834926", "0.6051603", "0.6049185", "0.60320956", "0.59694666", "0.5944689", "0.5938...
0.7962699
0
Determines if there is a collision between the bolt fired from the ship and the aliens; if so, removes the alien and changes self._alienspeed
def oUv0(YKHO): for O3ya in YKHO._bolts: for rdlD in range(CLlp): for fvDH in range(DzmL): if not YKHO.getAliens()[rdlD][fvDH] is None and YKHO.getAliens()[rdlD][fvDH].collides(O3ya): YKHO._score += 100 * (CLlp - rdlD) YKHO._aliens[rdlD][fv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YeWk(YKHO):\n for Fg_i in YKHO._bolts:\n if YKHO._ship != None and YKHO._ship.collides(Fg_i):\n YKHO._ship = None\n YKHO._bolts = []\n YKHO._key = False\n YKHO._lives -= 1", "def EU6B(YKHO):\n for KCHu in range(YKHO.getLengthAlien()):\n for a1PO...
[ "0.71470374", "0.7134334", "0.6685112", "0.6514891", "0.6440438", "0.6388077", "0.63670146", "0.6318223", "0.6201097", "0.61949414", "0.61874723", "0.61653256", "0.6161717", "0.61557", "0.6117694", "0.60780686", "0.6068851", "0.602897", "0.60229385", "0.60123926", "0.59756607...
0.6995264
2
Updates the URL category for the specified ID
def QdZT(YKHO, VMw8, Ghho): pmON = 'urlCategories/{}'.format(VMw8) return YKHO._session.put(pmON, Ghho)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WLC7(Rn26, Ghho):\n nfqd.logger.debug('Start to modify category of Cost based on the ID.')\n try:\n Gw9E = cuiw.query(paog.Cost).filter(paog.Cost.id == Rn26).one()\n Gw9E.category = Ghho\n cuiw.commit()\n nfqd.logger.info('Modify category of Cost based on the ID.')\n except...
[ "0.6235939", "0.6149964", "0.61333364", "0.60905147", "0.60422516", "0.5987244", "0.5977752", "0.5742203", "0.57387257", "0.56441104", "0.5605335", "0.5561809", "0.5556657", "0.55405533", "0.5529997", "0.5511629", "0.55047536", "0.5498366", "0.54865915", "0.5464903", "0.54453...
0.7331457
0
Creates a WellGrid with a center well (Gupta and King, 2010, Chapter 8) Arguments Rect0 The coordinates of left bottom corner point of the rectangle Rect1 The coordinates of right top corner point of the rectangle Qw Wellbore flow rate, stb/day Qe Outflow edge flow rate, stb/day Qe_int Internal edge flow, stb/day h Wel...
def FIMM(YKHO, ggL3=(0, 0), tQQJ=(1, 1), XpR3=1000, Yf51=(250, 250, 250, 250), MKlR=10, rVnq=0.2): YKHO.Pts = [(ggL3[0], ggL3[1]), (ggL3[0], tQQJ[1]), (tQQJ[0], tQQJ[1]), (tQQJ[0], ggL3[1])] YKHO.Pts.append(((ggL3[0] + tQQJ[0]) / 2, (ggL3[1] + tQQJ[1]) / 2)) YKHO.Qw = XpR3 YKHO.Qe = Yf51 YKHO.Qe_int...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cs6h(YKHO, oEJM, zZ5s, InLe=200):\n Cs6h = []\n rwK9, KDmU = (int(oEJM[0]), int(zZ5s[0]))\n re6M, wBZN = (int(oEJM[1]), int(zZ5s[1]))\n LDIG = []\n for WKvO in range(wBZN, re6M, InLe):\n for LVAh in range(KDmU, rwK9, InLe):\n j5tF = [(WKvO, LVAh), (WKvO, LVAh + InLe), (WKvO + I...
[ "0.57113224", "0.56533", "0.5564657", "0.54844874", "0.53876007", "0.53808355", "0.5348111", "0.53406596", "0.5334034", "0.53150934", "0.53006643", "0.5279142", "0.5273976", "0.52733064", "0.5271755", "0.5266967", "0.5261731", "0.5251025", "0.5250112", "0.5221351", "0.5190285...
0.6307257
0
Init weights for models.
def vB93(YKHO): super().init_weights() PcTE = None if YKHO.init_cfg is None else YKHO.init_cfg.get('type', None) if PcTE != 'Pretrained' and YKHO.with_tsa: for yR_P in [YKHO.fusion.feat_fusion, YKHO.fusion.spatial_attn1, YKHO.fusion.spatial_attn2, YKHO.fusion.spatial_attn3, YKHO.fusion.spatial_attn4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vB93(C3ST):\n ...", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def C0Lv(YKHO):\n pass", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def vJuA(YKHO):\n raise NotImplementedError", "def sTi3(YKHO):\n dIoi.WeightsInitializer.initialize_layer_or...
[ "0.8984091", "0.8641805", "0.86267096", "0.86172", "0.85792875", "0.85725594", "0.84296715", "0.8325935", "0.8232147", "0.8045925", "0.8013931", "0.8010816", "0.79973304", "0.7983617", "0.7977511", "0.7962253", "0.7962253", "0.7962253", "0.7959221", "0.79509515", "0.7947236",...
0.7277725
90
Convert a raw sample (pair of sentences as tokenized strings) into a proper training sample with IDs, LM labels, input_mask, CLS and SEP tokens etc.
def HEhp(PU1l, fkZM, G8d9, b0j5): D56S = PU1l D56S = Ax5C(D56S, G8d9 - 3) ED0T = [] for vC9B in range(5): if D56S[-1] in {'.', ',', "'", '`', "'", '?'}: ED0T.insert(0, D56S[-1]) D56S.pop() else: break SgDo = D56S[-1] SgDo = b0j5.vocab[SgDo] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0de(YKHO, Kg63):\n l5Ny, P3DA, SkC9 = Kg63\n YKHO._logger.debug(f'Preprocessing sample (\"{P3DA}\" vs. \"{SkC9}\")')\n mvm2 = {}\n mvm2['text'] = l5Ny\n mvm2['text_tokenized'] = None\n mvm2['text_attention_mask'] = None\n mvm2['item_name'] = P3DA\n YKHO.add_tokens(mvm2)\n mvm2['text...
[ "0.6765274", "0.6643791", "0.6458343", "0.6222438", "0.6118219", "0.60636324", "0.60636324", "0.6050379", "0.6013293", "0.59984004", "0.59738016", "0.5972772", "0.59354293", "0.5934981", "0.593118", "0.5915184", "0.588585", "0.58808494", "0.58754045", "0.585969", "0.58526886"...
0.60637873
5
Get current time with zone information
def EUP2(): FEXa = rIAI(Hy7s.getenv('TZ', gCuF.TIME_ZONE)) return qcWV.datetime.now(tz=FEXa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7L9(YKHO):\n return qcWV.datetime.now(YKHO.time_zone)", "def wzkt(YKHO):\n Hy7s.environ['TZ'] = Fv2L.timezone\n ITS7.tzset()\n return ITS7.strftime('%B %d %Y %H:%M:%S IST', ITS7.localtime())", "def b8dk():\n lhKE = 'America/Bogota'\n iKxx = qcWV.now(FXGE.timezone(lhKE))\n return iKxx"...
[ "0.7663724", "0.7573994", "0.75403976", "0.74415857", "0.7423715", "0.7367163", "0.7366429", "0.7342091", "0.7241305", "0.7198044", "0.7178488", "0.71328425", "0.7127584", "0.7104764", "0.7051412", "0.7022998", "0.7011191", "0.7004477", "0.69570786", "0.6940542", "0.6920663",...
0.7052575
14
Convert character level spans to IOB coding.
def s4R4(l5Ny: str, DumB: List[Instance]) -> x1iM[str]: jM4x = ['O'] * len(l5Ny) for (KCHu, tTpl), UXqs in DumB: Fg_i = f'B-{UXqs}' YRbF = f'I-{UXqs}' jM4x[KCHu] = Fg_i for WKvO in range(KCHu + 1, tTpl): jM4x[WKvO] = YRbF return jM4x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vxoJ(YKHO, uvMl):\n raise NotImplementedError()", "def DESw(dJ1p):\n mReh = set()\n Q_Az = 0\n u1g6 = 0\n vZyz = None\n for d6pt, yn6w in enumerate(dJ1p):\n wYnh = yn6w[0]\n assert wYnh in ['B', 'I', 'O'], 'Invalid Tag'\n G3zd = yn6w[2:]\n if wYnh == 'O':\n ...
[ "0.5848588", "0.57665783", "0.56697834", "0.5565456", "0.5565406", "0.5565406", "0.54807836", "0.54667664", "0.5433932", "0.52166694", "0.515315", "0.5105048", "0.5051314", "0.5049576", "0.504556", "0.5032722", "0.5010447", "0.49919397", "0.49679488", "0.49568197", "0.4946218...
0.6061965
0
Create and return a gRPC AsyncIO channel object.
def smRa(Emd4, KcEq: str='datastore.googleapis.com', Vt89: Optional[ga_credentials.Credentials]=None, ebKO: Optional[str]=None, uC2a: Optional[Sequence[str]]=None, YueU: Optional[str]=None, **B2fa) -> VlWd.Channel: return cuch.create_channel(KcEq, credentials=Vt89, credentials_file=ebKO, quota_project_id=YueU, defa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D3Dl(YKHO) -> VlWd.Channel:\n return YKHO._grpc_channel", "def D3Dl(YKHO) -> VlWd.Channel:\n return YKHO._grpc_channel", "def smRa(Emd4, KcEq: str='aiplatform.googleapis.com', Vt89: Optional[ga_credentials.Credentials]=None, ebKO: Optional[str]=None, uC2a: Optional[Sequence[str]]=None, YueU: Optional...
[ "0.6003547", "0.6003547", "0.598714", "0.57845247", "0.57349795", "0.54287446", "0.5362631", "0.5361543", "0.53508186", "0.534505", "0.53053015", "0.5278422", "0.5251089", "0.5246306", "0.5203807", "0.5203807", "0.51982075", "0.51729894", "0.51378304", "0.5119932", "0.5104985...
0.54730964
5
r"""Return a callable for the list indexes method over gRPC. Lists the indexes that match the specified filters. Datastore uses an eventually consistent query to fetch the list of indexes and may occasionally return stale results.
def nIf5(YKHO) -> YrBT[[slBm.ListIndexesRequest], ld92[slBm.ListIndexesResponse]]: if 'list_indexes' not in YKHO._stubs: YKHO._stubs['list_indexes'] = YKHO.grpc_channel.unary_unary('/google.datastore.admin.v1.DatastoreAdmin/ListIndexes', request_serializer=slBm.ListIndexesRequest.serialize, response_deseria...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIf5(YKHO):\n return Vt7D(YKHO.headers, YKHO.read_hosts, 'GET', '/1/indexes/', YKHO.timeout)", "def bS0K(YKHO):\n bS0K = YKHO.execute(YKHO.commands.get_indexes(YKHO.name))\n return [tTFA(*SjLr) for SjLr in bS0K]", "def VZS3(*, _ZMm: LoginManager):\n BDNG = _ZMm.get_search_client()\n maPn(BDN...
[ "0.65112144", "0.63108045", "0.61528206", "0.6124728", "0.60733473", "0.6064576", "0.60611725", "0.6015327", "0.59854823", "0.5822483", "0.5798654", "0.57317066", "0.5712299", "0.5712299", "0.5712299", "0.5712299", "0.5712299", "0.5712299", "0.5712299", "0.5712299", "0.560859...
0.7938675
0
get_dataset("testing"), cached for performance X,Y
def AVwI(): EcVT, fuBA = dD7q('training') EcVT = EcVT / 255.0 EcVT -= 0.5 return (EcVT, fuBA) global MNIST_training if FOly is None: if Hy7s.path.exists('./data/MNIST_training.pkl'): FOly = rIin.load(open('./data/MNIST_training.pkl', 'r')) else: FOly = dD7...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QOs0():\n EcVT = oyIN.random.randn(100, Gzv5)\n fuBA = oyIN.random.randn(100, EDoJ)\n CAhe = oyIN.random.randn(100, Gzv5)\n return (EcVT, CAhe, fuBA)", "def QOe9(YKHO) -> ZylS.contrib.data.Dataset:\n return YKHO.__test_dataset", "def dD7q(qIxc):\n if qIxc['experiment']['dataset'] == x3i3....
[ "0.6800313", "0.6752603", "0.6617406", "0.65631133", "0.65523183", "0.647641", "0.64684135", "0.64507365", "0.64411503", "0.6392813", "0.6391876", "0.6386069", "0.63373893", "0.6328032", "0.63069004", "0.63014704", "0.6300861", "0.6297549", "0.62668437", "0.6259683", "0.62514...
0.0
-1
get_dataset("training"), cached for performance X,Y
def abUE(): EcVT, fuBA = dD7q('testing') EcVT /= 255.0 EcVT -= 0.5 return (EcVT, fuBA) global MNIST_testing if pSXc is None: if Hy7s.path.exists('./data/MNIST_testing.pkl'): pSXc = rIin.load(open('./data/MNIST_testing.pkl', 'r')) else: pSXc = dD7q('testing...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aDo7(YKHO):\n return ZylS.data.Dataset.zip((YKHO.conditioned_dataset, YKHO.dataset))", "def bdJp() -> dhSy:\n TN1E()\n return bPNP", "def dD7q(YKHO):\n nIKz = gMbG.KMNIST('datasets/KMNIST/train/', train=True, transform=YKHO.train_transforms, target_transform=None, download=True)\n A7k4 = gMb...
[ "0.74134755", "0.7294511", "0.7046089", "0.68471146", "0.683935", "0.67860866", "0.6774482", "0.67494965", "0.67361504", "0.67207044", "0.6720154", "0.6709356", "0.66598976", "0.6656929", "0.66512144", "0.6643973", "0.6627386", "0.6618423", "0.6606816", "0.6601208", "0.659930...
0.0
-1
Return any of the groups matched by the preceding regular expression. E.g. self.group(1) returns the first matched group.
def uOe2(YKHO, SLbw): if YKHO.rematch is None: return None else: return YKHO.rematch.group(SLbw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kUBT(YKHO):\n Aofo = []\n obhf = yCnv(YKHO.regex)\n if YKHO.rematch:\n nDc9 = obhf.findall(YKHO.data)\n else:\n nDc9 = obhf.search(YKHO.data)\n if YKHO.return_data and nDc9 is not None:\n if YKHO.rematch:\n for nPrm in nDc9:\n if isinstance(nPrm, tu...
[ "0.62626004", "0.59449905", "0.57265604", "0.57265604", "0.5626674", "0.56036365", "0.557852", "0.5534317", "0.551097", "0.54845226", "0.5424557", "0.5387493", "0.5314206", "0.53099436", "0.5282944", "0.52798736", "0.525747", "0.5239471", "0.5184091", "0.51464254", "0.5138452...
0.69259787
0
The reference to the toplevel PhoUIContainer for this menu where references are stored to the ui elements and their actions.
def dDw3(YKHO): return YKHO.root_window.ui.menus.global_window_menus.debug
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lxkz(YKHO):\n return YKHO._menu", "def GD_A(YKHO):\n return YKHO._ui", "def lxkz(YKHO) -> RPcv | None:\n return YKHO._menu", "def IUaF(YKHO, object):\n return YKHO.menu", "def GD_A(YKHO):\n return GD_A", "def sZKV(YKHO):\n return YKHO._menu", "def GUES(YKHO):\n raise NotImpleme...
[ "0.6571456", "0.644158", "0.6439332", "0.6308874", "0.6308201", "0.6180288", "0.6136234", "0.6020653", "0.5883625", "0.5823237", "0.5801054", "0.5743126", "0.5726975", "0.57137626", "0.5712201", "0.5691326", "0.568709", "0.56823146", "0.56808054", "0.567435", "0.5663427", "...
0.5670027
20
Setup test flask app
def fkN9(): xqoZ = {'DEBUG': True, 'TESTING': True} wMcu = LUif(settings_override=xqoZ) OaeV = wMcu.app_context() OaeV.push() yield wMcu OaeV.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n YKHO.app = L2w0(__name__)\n YKHO.app_context = YKHO.app.app_context()\n YKHO.app_context.push()\n YKHO.client = YKHO.app.test_client()", "def P4t4():\n Hy7s.environ['FLASK_ENV'] = 'test'\n return LUif()", "def LUif(zmu8='test_config.py'):\n P4t4 = L2w0(__name__, instance_...
[ "0.81158316", "0.8108076", "0.7822387", "0.7777939", "0.777101", "0.76721895", "0.7640931", "0.76230794", "0.7613913", "0.7588766", "0.7588766", "0.7576101", "0.75739956", "0.75575405", "0.75522625", "0.7542036", "0.75345105", "0.7521277", "0.74859345", "0.74744576", "0.74729...
0.77729565
4
r""" Check if path points to a file inside a python egg file, extract the file from the egg to a cache directory (following pkg_resources convention) and return [(extracted path, egg file path, relative path inside egg file)]. Otherwise, just return [(original path, None, None)]. If path points to an egg file directly,...
def xuTn(SXRB, yawp=None): im04 = [] if Hy7s.path.altsep: SXRB = SXRB.replace(Hy7s.path.altsep, Hy7s.path.sep) AdfU = SXRB.split(Hy7s.path.sep) for YRbF, mWFP in enumerate(AdfU): if mWFP.lower().endswith('.egg'): DPM8 = Hy7s.path.sep.join(AdfU[:YRbF + 1]) if Hy7s....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PIr3(qaEx, Zuu9, sKYw):\n with open(qaEx) as Ga6V:\n tk5Y = jZ4I.parse(Ga6V.read(), qaEx)\n for Q6kx in jZ4I.iter_child_nodes(tk5Y):\n LCet = ''\n if isinstance(Q6kx, jZ4I.ImportFrom):\n if Q6kx.module is not None:\n LCet = Q6kx.module\n if Q6kx.l...
[ "0.6205158", "0.6140259", "0.5979004", "0.5960583", "0.5936674", "0.57813233", "0.5762908", "0.5736331", "0.5655493", "0.5625167", "0.5577619", "0.55727035", "0.5561637", "0.55586225", "0.5543705", "0.5526448", "0.5481361", "0.5479898", "0.5455024", "0.54513395", "0.54462653"...
0.6193302
1
Daysback value is retrieved from session attributes.
def _smJ(YKHO): Y4K1(YKHO.env).grant_permission('user1', 'TIMELINE_VIEW') qv1X = xKPy(YKHO.env, authname='user1') qv1X.session.set('timeline.daysback', '45') nPrm = ohOp(YKHO.env).process_request(qv1X)[1] YKHO.assertEqual(45, nPrm['daysback'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fkNT(YKHO):\n return YKHO._base.decays", "def QCNa(YKHO, Sm0u):\n return YKHO.security['Date', 'Close', 'FinalDecision'][-Sm0u:]", "def KFJT(YKHO):\n ANfV = input('Press return to get entries of past day or input number of days to go back in time: ')\n if ANfV == '':\n Sm0u = 1\n else...
[ "0.5776659", "0.5634785", "0.5420541", "0.52504593", "0.51793265", "0.5147413", "0.5096766", "0.50792265", "0.50773376", "0.50755787", "0.5064925", "0.50591904", "0.50591904", "0.50591904", "0.50591904", "0.50327665", "0.50257593", "0.49778205", "0.49776113", "0.4966822", "0....
0.6655547
0
Daysback minimum value is 1.
def _54N(YKHO): qv1X = xKPy(YKHO.env, args={'daysback': '-1'}) nPrm = ohOp(YKHO.env).process_request(qv1X)[1] YKHO.assertEqual(1, nPrm['daysback'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V6Qh(YKHO):\n aaQr = YKHO.number * 365.24 + YKHO.days\n return int(oyIN.floor(aaQr))", "def F4g0(YKHO):\n return 1", "def TiHu(fvDH: pd.Series) -> int:\n return fvDH.sort_values().diff().max().days - 1", "def V6Qh(YKHO):\n XBWI = [28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31, 31]\n qHe7 =...
[ "0.646854", "0.58640444", "0.58126456", "0.5802112", "0.5758636", "0.5721096", "0.5721096", "0.5688065", "0.5668413", "0.5622553", "0.5591726", "0.5576532", "0.5575973", "0.5495859", "0.5494301", "0.5443471", "0.54378337", "0.5425549", "0.5416584", "0.5401782", "0.53917223", ...
0.62440276
1
Put Slack users into JSON and dump into users.json.
def noi_(Ol8d): DW23 = CVOT.get_users() for CBIr in DW23: if CBIr['id'] == Ol8d._get_user_id(): if CBIr['approval_level'] != 'admin': Ol8d.reply('Insufficient privileges.') return with open(eKPZ) as _RR0: DW23 = qQXR.load(_RR0) ZH3n = [] fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SHug(YKHO):\n DW23 = {}\n qIxc = YKHO._add_user()\n DW23[qIxc['userID']] = {}\n DW23[qIxc['userID']]['name'] = qIxc['name']\n DW23[qIxc['userID']]['webhook_url'] = qIxc['webhook_url']\n DW23[qIxc['userID']]['blacklist'] = qIxc['blacklist']\n DW23[qIxc['userID']]['override_user'] = qIxc.get...
[ "0.70719814", "0.7036615", "0.69473386", "0.6768641", "0.67458874", "0.66404533", "0.66269165", "0.65267056", "0.6502108", "0.6288932", "0.6280963", "0.62153757", "0.6208741", "0.6207539", "0.6201374", "0.61616826", "0.6099214", "0.6097477", "0.60967374", "0.6087949", "0.6085...
0.7201386
0
Hide the subnotebook. Used for hiding Optional displays
def OpJE(YKHO): if YKHO.subnotebook and YKHO.subnotebook.winfo_ismapped(): bo34.debug('Hiding subnotebook') YKHO.subnotebook.pack_forget() YKHO.subnotebook.destroy() YKHO.subnotebook = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TFq6(YKHO):\n if not YKHO.subnotebook:\n bo34.debug('Showing subnotebook')\n YKHO.subnotebook = YKHO.add_subnotebook()", "def n7mp(YKHO):\n if YKHO._displayPjt:\n YKHO._displayPjt.hide()\n if YKHO._displayUsr:\n YKHO._displayUsr.hide()\n if YKHO._displayVtk:\n Y...
[ "0.74942166", "0.7050231", "0.6920742", "0.6824968", "0.682398", "0.68151635", "0.6806537", "0.67921376", "0.67395896", "0.6736704", "0.6700926", "0.66609246", "0.65580887", "0.65409225", "0.65340364", "0.6511675", "0.6505497", "0.6499318", "0.64810354", "0.6477027", "0.64616...
0.8874996
0
Make sure that the password is hashed correctly
def XDcK(): XM25 = '^\\$2[ayb]\\$.{56}$' kg40 = P6bq.password.decode() assert ZbWC.match(XM25, kg40), 'Password was not hashed correctly'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jqmR(YKHO):\n CBIr = mv1M.query.filter_by(username='eschoppik').first()\n YKHO.assertTrue(B8ni.check_password_hash(CBIr.password, 'secret'))\n YKHO.assertFalse(B8ni.check_password_hash(CBIr.password, 'notsecret'))", "def sNjs(YKHO, jTXt):\n return z8jj(YKHO.password_hash, jTXt)", "def yc5G(YKHO...
[ "0.7974097", "0.75901264", "0.7575029", "0.7516875", "0.751061", "0.74560297", "0.7450313", "0.74328417", "0.74039775", "0.73979396", "0.73920727", "0.7386824", "0.73759675", "0.7348452", "0.7287631", "0.7270274", "0.7268711", "0.7255871", "0.72513473", "0.7237343", "0.723734...
0.7503901
5
Make sure that we can verify a plaintext password
def ZEHr(): assert P6bq.verify_password(YPcj['password']), 'Password cannot verify properly'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jqmR():\n assert EvfH('Longpassword') == False\n assert EvfH('123456') == False\n assert EvfH('short') == False\n assert EvfH('C0rect') == False\n assert EvfH('Correct8') == True", "def SqNO(YKHO):\n RnXU = wsY0(''.join(['x' * int(YKHO.app.config['MAX_PWD_LEN'])]))\n UpdD(None, RnXU)", ...
[ "0.79301065", "0.7789788", "0.7731887", "0.77060926", "0.7618398", "0.7607318", "0.7598518", "0.7571751", "0.7566817", "0.75273633", "0.7487129", "0.7465", "0.7409835", "0.74024177", "0.73076963", "0.7299102", "0.7288273", "0.72623914", "0.7251323", "0.7242377", "0.7237286", ...
0.7170948
38
Convert a dataframe with pixel location (height and width) and RGB information to an image.
def Q6jR(jQ3Z, K2ii): jQ3Z[K2ii] = jQ3Z[K2ii].astype(oyIN.uint8) nPrm = oyIN.reshape(jQ3Z[K2ii].values, (jQ3Z.height.max() + 1, jQ3Z.width.max() + 1, 3)) return hnIv.fromarray(nPrm, 'RGB')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bn8W(LNo8):\n TVTK, H2v2 = LNo8.size\n jQ3Z = rLdf.DataFrame(oyIN.vstack(oyIN.array(LNo8)[:, :, :3]), columns=('R', 'G', 'B'))\n jQ3Z['height'] = oyIN.repeat(oyIN.arange(H2v2), TVTK)\n jQ3Z['width'] = oyIN.tile(oyIN.arange(TVTK), H2v2)\n return jQ3Z", "def eW_Z(jQ3Z, LNo8, uZq5=0, DbyF=3, Qg73...
[ "0.64659077", "0.6464889", "0.62659717", "0.5985716", "0.5897487", "0.5824227", "0.57273203", "0.5706351", "0.5695631", "0.5653905", "0.56521446", "0.56217664", "0.5590714", "0.5485873", "0.5471054", "0.54432553", "0.5428131", "0.5425394", "0.5422454", "0.5417311", "0.5415322...
0.80461997
0
Pixelate a larger image by rescaling it to a smaller image.
def UHjC(LNo8, GKv7, jOu6): LNo8 = LNo8.resize((GKv7, jOu6), hnIv.ANTIALIAS) return LNo8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qR5Q(LNo8, NXpY=0.5):\n sTrf = int(LNo8.shape[1] * NXpY)\n JKue = int(LNo8.shape[0] * NXpY)\n e_2d = (sTrf, JKue)\n return jbYn.resize(LNo8, e_2d, interpolation=jbYn.INTER_AREA)", "def qR5Q(LNo8, d86D):\n l5eN = NI4b.gimp_image_height(LNo8)\n Kmi0 = NI4b.gimp_image_width(LNo8)\n EznC = r...
[ "0.65833485", "0.6485271", "0.6471172", "0.6426345", "0.6421628", "0.64137304", "0.6411001", "0.6385056", "0.6356421", "0.6318233", "0.6288993", "0.6277775", "0.62357616", "0.6234547", "0.6186448", "0.61197674", "0.6061309", "0.6047742", "0.6030527", "0.6018693", "0.59924424"...
0.69843644
0
Add lego color columns to DataFrame. There are other ways to do this, but the colors are added based on the closest in Euclidean distance. Does not include Transparent, Metallic or Glow bricks and only uses the 2016 brick palette.
def NHm4(jQ3Z, ItUp): jQ3Z[['R', 'G', 'B']] = jQ3Z[['R', 'G', 'B']].astype('int') Df_s = (ItUp.c_Palette2016 == True) & (ItUp.c_Transparent == False) & (ItUp.c_Glow == False) & (ItUp.c_Metallic == False) for d6pt, rdlD in ItUp[Df_s].iterrows(): if d6pt == ItUp.index[0]: jQ3Z['cvar_min'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WN_K(YKHO):\n return [[0.7, 0.15, 0.1, 0.05], [0.17, 0.6, 0.17, 0.06], [0.06, 0.17, 0.6, 0.17], [0.05, 0.12, 0.23, 0.6], [0.05, 0.1, 0.15, 0.8]]", "def nuod(tspZ, ESjr, Ae2G):\n KUch.myvlt(tspZ, ESjr, Ae2G, len(tspZ))", "def AlDl(jQ3Z):\n return jQ3Z", "def tSl0(XcU5: WorldlineTable) -> None:\n\...
[ "0.59408545", "0.5840702", "0.5795044", "0.5505669", "0.5387429", "0.5231539", "0.52000844", "0.51889634", "0.51861984", "0.50860643", "0.5073239", "0.50353134", "0.5034416", "0.5017803", "0.50017005", "0.49964416", "0.49359882", "0.49269187", "0.4918417", "0.49176708", "0.48...
0.8099222
0
Returns report details (including the reportDocumentId, if available) for the report that you specify.
def dRh_(YKHO, VJS0, **B2fa): return dibs(**YKHO._request(GpIu(B2fa.pop('path'), VJS0), add_marketplace=False).json())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dRh_(YKHO, VJS0: str):\n YKHO.logger.info(f'[INFO] Retrieving OpenVAS report {VJS0}...')\n NArs = {'cmd': 'get_report', 'token': YKHO.token, 'report_id': VJS0, 'filter': 'apply_overrides=0 min_qod=70 autofp=0 levels=hml first=1 rows=0 sort-reverse=severity', 'ignore_pagination': 1, 'report_format_id': YK...
[ "0.7089311", "0.6978201", "0.69638634", "0.684062", "0.68089885", "0.6699905", "0.6539877", "0.6486073", "0.64755267", "0.64168626", "0.6383716", "0.63656604", "0.63188547", "0.6282777", "0.62313056", "0.6223874", "0.61692595", "0.6151564", "0.6104303", "0.6102375", "0.610223...
0.7071482
1
Return current credit limit.
def K3hO(YKHO): return YKHO._limit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K3hO(YKHO):\n return YKHO.limit", "def zxZQ(YKHO, JZXy):\n AByL = getattr(YKHO.get_subscription(), 'commitment', {})\n return YKHO.get_plan().get_price_data(JZXy, AByL)[1]", "def y9Jp(YKHO, qoqK=None):\n if qoqK is None:\n _ins, nPrm = YKHO._request('GH')\n if _ins:\n r...
[ "0.7069158", "0.6973982", "0.6839183", "0.6818849", "0.6815864", "0.6487626", "0.64842916", "0.64700264", "0.6450808", "0.6445396", "0.63999814", "0.635713", "0.635713", "0.6311851", "0.6305982", "0.61837167", "0.61775035", "0.61692756", "0.6121114", "0.6109702", "0.60551584"...
0.69027054
2
Charge given price to the card, assuming sufficient credit limit. Return True if charge was processed; False if charge was denied.
def WJkG(YKHO, hI0L): """try: type(price) == int or type(price) == float except ValueError: print 'Not a number!' if type(price) != int or type(price) != float: raise ValueError("Not a number!") """ if hI0L < 0: return False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJkG(YKHO, hI0L):\n if not isinstance(hI0L, (int, float)):\n raise TypeError('Price must be numeric')\n if hI0L + YKHO._balance > YKHO._limit:\n return False\n YKHO._balance += hI0L\n return True", "def WJkG(YKHO, hI0L):\n if not isinstance(hI0L, (int, float)):\n raise Typ...
[ "0.85520387", "0.84601766", "0.8349793", "0.6463649", "0.6245042", "0.5892579", "0.5885774", "0.5780839", "0.57770324", "0.57604635", "0.56510687", "0.56393975", "0.5617718", "0.55500877", "0.55427504", "0.5533513", "0.5521042", "0.5483467", "0.5452863", "0.54159594", "0.5361...
0.7776878
3
Return dot for graph.
def J0Wn(Oa1e, BcHp=False): def PrrZ(hkS8): if hkS8.HasField('f'): return hkS8.f elif hkS8.HasField('i'): return int(hkS8.i) if jKi7.PY2 else hkS8.i elif hkS8.HasField('s'): return hkS8.s.decode('utf-8') elif hkS8.HasField('t'): return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BJ1H(YKHO) -> str:\n BJ1H = uW2L(YKHO._graph)\n return BJ1H.to_string()", "def BJ1H(YKHO):\n return YKHO.__dot", "def BoO6(YKHO):\n return 'digraph G{\\n%s}' % ('' if YKHO.val is None else '\\t%s;\\n%s\\n' % (YKHO.val, '\\n'.join(YKHO._get_dot())))", "def BoO6(YKHO):\n return 'digraph G{\\...
[ "0.83318657", "0.82540405", "0.75600487", "0.75600487", "0.74491763", "0.7405849", "0.72355574", "0.7068965", "0.68348116", "0.68348116", "0.67568165", "0.67136085", "0.67047656", "0.66952586", "0.66952586", "0.664924", "0.6646575", "0.6645251", "0.6601873", "0.6596667", "0.6...
0.0
-1
Return a new FakedSession object from an HMC definition in a YAML file. The data format of the YAML file is validated using a schema.
def J8Hw(VqRE, n10L=None, jTXt=None): with open(VqRE) as ytgA: ZDrx = b6bO.from_hmc_yaml(ytgA, VqRE, n10L, jTXt) return ZDrx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _BZF(HAT9, VqRE=None, n10L=None, jTXt=None):\n try:\n sPgM = eJb6.load(HAT9, Loader=JWCU.ordereddict.Loader)\n except (eJb6.parser.ParserError, eJb6.scanner.ScannerError) as exc:\n if VqRE:\n sklK = ' in file {f}'.format(f=VqRE)\n else:\n sklK = ''\n Hf3b...
[ "0.82276064", "0.6911682", "0.6088977", "0.5976081", "0.5760002", "0.5716752", "0.56409085", "0.5611956", "0.54702437", "0.5463061", "0.54620636", "0.5410553", "0.5331743", "0.53263074", "0.53030956", "0.52963865", "0.52692974", "0.52608484", "0.5253639", "0.52416426", "0.524...
0.79965574
1
Return a new FakedSession object from an HMC definition dictionary. An HMC definition dictionary can be created using
def J56G(sPgM, VqRE=None, n10L=None, jTXt=None): try: K1W6.validate(sPgM, Xf3h) except K1W6.exceptions.ValidationError as exc: if VqRE: sklK = ' in file {f}'.format(f=VqRE) else: sklK = '' Hf3b = GL0T('Invalid data format in faked HMC definition{fs}: {msg}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _BZF(HAT9, VqRE=None, n10L=None, jTXt=None):\n try:\n sPgM = eJb6.load(HAT9, Loader=JWCU.ordereddict.Loader)\n except (eJb6.parser.ParserError, eJb6.scanner.ScannerError) as exc:\n if VqRE:\n sklK = ' in file {f}'.format(f=VqRE)\n else:\n sklK = ''\n Hf3b...
[ "0.66378766", "0.63375574", "0.5660789", "0.5478047", "0.53681654", "0.529543", "0.5206334", "0.51733655", "0.5162307", "0.51562643", "0.5151216", "0.51190066", "0.5117987", "0.510836", "0.5102242", "0.5102242", "0.50987774", "0.50698274", "0.5057171", "0.5055784", "0.5051591...
0.6836698
0
load config from yaml
def f9B0(REY6): print('training network configuration file is {0}'.format(REY6)) gnPz.check_file_exist(REY6) GPtr = gnPz.load_yaml_file(REY6) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GcDA(YKHO):\n try:\n with open(YKHO.parsed_cfg_path, 'r') as cok8:\n YKHO.from_yaml_cfg_dict = eJb6.load(cok8)\n except Exception as exc:\n print(BQDi)\n wVCK.print_exc()\n YKHO.from_yaml_cfg_dict = {}", "def LgIG(pmON):\n return eJb6.load(open('config.yaml', '...
[ "0.7932778", "0.7905354", "0.7778778", "0.7775529", "0.7703198", "0.76914793", "0.76733524", "0.7668443", "0.7653953", "0.76442325", "0.7618144", "0.7508202", "0.74901235", "0.7482549", "0.7470616", "0.7390995", "0.7380142", "0.7366467", "0.73381823", "0.73311335", "0.7309766...
0.7793939
2
Assign input `x` to an available worker and invoke `parallizable.forward_backward` with x.
def NpNj(YKHO, WKvO): if YKHO._num_serial > 0 or len(YKHO._threads) == 0: YKHO._num_serial -= 1 yvT9 = YKHO._parallizable.forward_backward(WKvO) YKHO._out_queue.put(yvT9) else: YKHO._in_queue.put(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KPMx(YKHO, WKvO):\n raise NotImplementedError()", "def KVH6(YKHO, WKvO):\n raise NotImplementedError", "def KVH6(YKHO, WKvO):\n raise NotImplementedError", "def KVH6(YKHO, WKvO):\n pass", "def KVH6(YKHO, WKvO):\n return YKHO.activation_function(YKHO.backbone_model(WKvO))", "def KVH6(YK...
[ "0.6979647", "0.6505514", "0.6505514", "0.64504945", "0.63404757", "0.6215585", "0.61830115", "0.61830115", "0.6176673", "0.6168372", "0.6159038", "0.61195976", "0.6106797", "0.6101886", "0.6090476", "0.6088728", "0.60350174", "0.6031973", "0.5999682", "0.5995222", "0.5985669...
0.71769464
0
Parallel applying model forward
def wYj1(yR_P, g4y1, CxSb=None, H69_=False): if CxSb is not None: assert len(g4y1) == len(CxSb) else: CxSb = ({},) * len(g4y1) stkY = T6FA.Lock() dixj = {} def Ze0F(YRbF, yR_P, input, B2fa, dixj, bPqk, LT6S, stkY): try: if bPqk: with IoiV.record(L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, g4y1):\n yvT9 = YKHO.fc1(g4y1)\n yvT9 = YKHO.fc2(yvT9)\n YKHO.out = yvT9\n return yvT9", "def ILQa(YKHO, *qIxc, **B2fa):\n pass", "def KVH6(YKHO, WKvO):\n WKvO = YKHO.pool1(vuvg.relu(YKHO.batch1(YKHO.conv1(WKvO))))\n WKvO = YKHO.pool2(vuvg.relu(YKHO.batch2(YKHO.conv2(WKvO)))...
[ "0.68545604", "0.67817986", "0.6745966", "0.6683042", "0.66758007", "0.65857536", "0.65681833", "0.65619177", "0.65139794", "0.65139794", "0.64773625", "0.6462003", "0.6444913", "0.6373643", "0.6371031", "0.63577396", "0.63464874", "0.6345656", "0.63450855", "0.6340966", "0.6...
0.0
-1
return lepton flavour vector [l_e, l_nu, l_tau]
def a09O(YKHO): Ty9i = [0, 0, 0] if YKHO.is_lepton: Ty9i[YKHO.lepton_flavor() - 1] = YKHO.lepton_number() return Ty9i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FkdK(YKHO):\n iB6t = YnkN.TLorentzVector()\n iB6t.SetPtEtaPhiM(YKHO.pt, YKHO.eta, YKHO.phi, YKHO.mass)\n return iB6t", "def zNaF(YKHO):\n if YKHO.is_lepton:\n return YKHO.E // 2 + 1\n return 0", "def aPd6(YKHO, a1PO):\n return 3e-16 * YKHO.pulsar.tau_0 * YKHO.pulsar.L_0 * (a1PO / (...
[ "0.65847385", "0.6450575", "0.59748626", "0.5903857", "0.5883675", "0.5736578", "0.57182205", "0.56847394", "0.5651799", "0.5622394", "0.56138295", "0.5584103", "0.5559427", "0.5529041", "0.55234283", "0.5522512", "0.55127025", "0.55050933", "0.5497215", "0.5461632", "0.54553...
0.6729824
0
Reaction rate function. If only one parameter is given it is interpreted as 'outgoing' If no parameter is provided, just a deep copy of self is returned
def A3Vt(YKHO, pdhd=None, LTX_=None): if LTX_ is None: if pdhd is None: return YKHO() return YKHO(None, pdhd) return YKHO(pdhd, LTX_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zPCH(YKHO):\n raise NotImplementedError('Subclass must implement this method')", "def Xd0Z(YKHO):\n Ylbp = Mkmy.get(YKHO.url + YKHO.current_rate)\n return YKHO.execute(Ylbp)", "def TO8X(YKHO, *qIxc):\n return _VfD.Model_getRateRule(YKHO, *qIxc)", "def bUeO(YKHO, F77G, tMnk):\n bhRE = 'CURR...
[ "0.6718368", "0.5967329", "0.55467165", "0.5362776", "0.53501284", "0.5333011", "0.53263295", "0.53257626", "0.53196603", "0.53163046", "0.52898854", "0.52546877", "0.524962", "0.52332586", "0.52070975", "0.5182573", "0.51674205", "0.51661986", "0.51398706", "0.51279026", "0....
0.0
-1
Random select some elements from the gallery. It seems that Pytorch's implementation is slower than numpy so we use numpy to randperm the indices.
def Q0Ir(pzfY, mLGw): assert len(pzfY) >= mLGw if isinstance(pzfY, list): pzfY = oyIN.array(pzfY) n5J2 = oyIN.arange(len(pzfY)) oyIN.random.shuffle(n5J2) LWg9 = n5J2[:mLGw] if not isinstance(pzfY, oyIN.ndarray): LWg9 = ht2j.from_numpy(LWg9).long().to(pzfY.device) return pzfY[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yRwn(exwG, jzdc):\n return ht2j.as_tensor([jzdc[or8S] for or8S in ht2j.randperm(len(jzdc))[:exwG]])", "def Q0Ir(YKHO, pzfY, mLGw):\n assert len(pzfY) >= mLGw\n o_3q = isinstance(pzfY, ht2j.Tensor)\n if not o_3q:\n pzfY = ht2j.tensor(pzfY, dtype=ht2j.long, device=ht2j.cuda.current_device())...
[ "0.7213743", "0.6996495", "0.67967874", "0.6734458", "0.67288697", "0.6638643", "0.65710235", "0.6519574", "0.65034425", "0.6474734", "0.64719534", "0.6464656", "0.6456014", "0.6454468", "0.64511836", "0.64262396", "0.64008296", "0.63947016", "0.63861275", "0.6360542", "0.635...
0.7314613
0
Compute relative change of two values.
def YonT(Hkam, xfrN): return float((xfrN - Hkam) / Hkam * 100)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3QF(AjzU, _sQW):\n if AjzU is None or _sQW is None:\n return oyIN.NaN\n if rLdf.isnull(AjzU) or rLdf.isnull(_sQW):\n return oyIN.NaN\n try:\n AjzU = float(AjzU)\n _sQW = float(_sQW)\n except ValueError:\n return oyIN.NaN\n if AjzU == 0.0 and _sQW == 0.0:\n ...
[ "0.7273567", "0.7055699", "0.6770683", "0.66939694", "0.658429", "0.65398806", "0.6536458", "0.6536458", "0.6502795", "0.63875437", "0.6384985", "0.63614756", "0.6305158", "0.6296624", "0.62288874", "0.6196708", "0.6192453", "0.6167494", "0.6161568", "0.61473686", "0.6130195"...
0.76584566
0
Get the timestamp of the build of the given job.
def eN2b(PoS_, wxIh, xHUV): E3oo = NJG4(f'wget -qO- {PoS_}/{wxIh}/{xHUV}') return qcWV.fromtimestamp(E3oo / 1000)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v8cE(YKHO):\n return YKHO.nodes[0].get('infos').get('system_info').get('build_time')", "def Bus5(YKHO):\n pass", "def nqg0(pmON):\n return int(nvv3(pmON, 'git log -1 --format=%ct'))", "def DRfR(R5Jy):\n U_dL = 0\n with open(R5Jy, 'r') as B8jK:\n if Hy7s.path.getsize(B8jK.name) > 0:\...
[ "0.6845992", "0.67148995", "0.662013", "0.65567636", "0.6403757", "0.6346527", "0.6230922", "0.61645025", "0.61568576", "0.6145711", "0.61007255", "0.6096101", "0.6073304", "0.6063883", "0.6058449", "0.6051982", "0.605188", "0.60319495", "0.60300505", "0.5987647", "0.5976673"...
0.8144381
0
given a query in the form described in _preprocess_query, return a WHERE clause to be used in the final SPARQL queries
def YJoq(YKHO, xDcj): xDcj = jth9.copy(xDcj) if YKHO.n.sparql.insert in xDcj: del xDcj[YKHO.n.sparql.insert] if YKHO.n.sparql.delete in xDcj: del xDcj[YKHO.n.sparql.delete] return YKHO.python_to_SPARQL_long(xDcj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lqT4(**VUsd):\n woks = []\n NArs = []\n DumB = VUsd.items()\n DumB = sorted(DumB, key=lambda WKvO: WKvO[0])\n for H5ew, wEf2 in DumB:\n if AVNT(wEf2):\n woks.append(H5ew + ' IN (%s)' % ', '.join('?' * len(wEf2)))\n for WKvO in wEf2:\n NArs.append(WKvO)...
[ "0.6663203", "0.6649268", "0.65774363", "0.6338004", "0.61764884", "0.613863", "0.6063489", "0.5993191", "0.59245485", "0.59107035", "0.58890676", "0.58843476", "0.5879872", "0.58626", "0.58278584", "0.5785752", "0.57592607", "0.57225984", "0.5706035", "0.5685944", "0.5680669...
0.74677783
0
Returns the manifests which consist of the Recordings and Supervisions
def eZTS(LnN3: Pathlike, kmfe: Optional[Pathlike]=None, x8f6: Optional[Union[str, Sequence[str]]]='all', BWKP: str='mdm', z4Go: bool=False, QwII: bool=False, KxHc: bool=False, C145: int=1, V4I8: int=1, sOSf: Pathlike='/usr/bin/sox', Xosv: str='kaldi', eOoh: bool=False) -> cuzp[str, cuzp[str, uLKX[bM70, Mvds]]]: imp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kNHN(YKHO, ak84):\n return None", "def kNHN(YKHO, ak84):\n for Kz8N in YKHO._parsed['manifests']:\n ikQi = qQXR.dumps(Kz8N)\n yield Y5sb(Cx_w.for_string_or_unicode(ikQi))", "def Kz8N(YKHO):\n yield YKHO._meta\n for ls2r, e5kH in YKHO._walk_dir_meta():\n yield {'logical_key'...
[ "0.6537372", "0.64466304", "0.62651", "0.6194912", "0.61442757", "0.61442757", "0.6077873", "0.6057794", "0.60380983", "0.5973996", "0.58993614", "0.5888535", "0.58871734", "0.5877311", "0.5748769", "0.5728829", "0.57231575", "0.5655023", "0.5643392", "0.5632166", "0.5599505"...
0.0
-1
Set config values on any apps instantiated while the context manager is active. This is intended to be used with cli tests where the `current_app` in the test will be different from the `current_app` when the CLI command is invoked, making it very difficult to dynamically set app config variables using mock.patch.dict ...
def tiPk(**B2fa): @WOZF.config_complete.connect def lEZe(P4t4): P4t4.config.update(B2fa) yield
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dLQw(**B2fa):\n with TMAJ.patch.dict(WsL5.current_app.config, **B2fa) as cXh4:\n yield cXh4", "def lEZe(P4t4):\n P4t4.config.from_object('config')\n bnep = Hy7s.path.dirname(P4t4.config['ENVPATH'])\n nzyx = Hy7s.path.join(bnep, 'CONFIG_CHAUDIERE')\n SEx7 = 'chaudiere_secret_config.py'\n...
[ "0.7380696", "0.662815", "0.62503123", "0.624189", "0.62402946", "0.6188184", "0.60459214", "0.6006841", "0.5921027", "0.5848537", "0.5824186", "0.58036035", "0.5767799", "0.5746091", "0.5735771", "0.57351166", "0.57296777", "0.57262594", "0.572297", "0.5682838", "0.5643753",...
0.63925433
2
Test that an admin cannot fetch non existing certificate by id.
def F7b0(YKHO): YKHO.client.post('/api/v1/certificates', data=qQXR.dumps(CTbs), content_type='application/json', headers=YKHO.get_registrar_token()) geh0 = YKHO.client.get('/api/v1/certificates/10', content_type='application/json', headers=YKHO.get_token()) Aofo = qQXR.loads(geh0.data.decode()) YKHO.ass...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _39C(YKHO):\n X6M0.objects.create(user=YKHO.student, course_id=YKHO.course.id, status=u'unavailable')\n bD7m = '{}?is_bigcourse=0'.format(gxEw('completion_data_view', kwargs={'course_id': YKHO.course.id}))\n YKHO.response = YKHO.staff_client.get(bD7m)\n nPrm = qQXR.loads(YKHO.response.content.decod...
[ "0.64274144", "0.6318149", "0.62549144", "0.6222371", "0.62162995", "0.619847", "0.615191", "0.6136755", "0.6134825", "0.608852", "0.602813", "0.6027242", "0.60104585", "0.6001789", "0.5969251", "0.5966459", "0.59632045", "0.59540206", "0.58608377", "0.5858643", "0.5841868", ...
0.74964446
0
Test that an admin can update an existing certificate.
def knjQ(YKHO): YKHO.client.post('/api/v1/certificates', data=qQXR.dumps(CTbs), content_type='application/json', headers=YKHO.get_registrar_token()) geh0 = YKHO.client.put('/api/v1/certificates/1', data=qQXR.dumps(Zyho), content_type='application/json', headers=YKHO.get_registrar_token()) Aofo = qQXR.loads(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M3wN(YKHO):\n YKHO.client.post('/api/v1/certificates', data=qQXR.dumps(CTbs), content_type='application/json', headers=YKHO.get_registrar_token())\n geh0 = YKHO.client.put('/api/v1/certificates/1', data=qQXR.dumps(wNtz), content_type='application/json', headers=YKHO.get_registrar_token())\n Aofo = qQX...
[ "0.7054616", "0.7029163", "0.6356074", "0.62936115", "0.6286474", "0.6283409", "0.6253262", "0.6218123", "0.6215605", "0.6193823", "0.6167534", "0.61568356", "0.6129082", "0.61176515", "0.6101566", "0.6039152", "0.603341", "0.6016006", "0.6011785", "0.60063463", "0.5993563", ...
0.7654876
0
An admin cannot update a certificate with invalid json keys.
def M3wN(YKHO): YKHO.client.post('/api/v1/certificates', data=qQXR.dumps(CTbs), content_type='application/json', headers=YKHO.get_registrar_token()) geh0 = YKHO.client.put('/api/v1/certificates/1', data=qQXR.dumps(wNtz), content_type='application/json', headers=YKHO.get_registrar_token()) Aofo = qQXR.loads(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mVD2(YKHO):\n YKHO.client.post('/api/v1/certificates', data=qQXR.dumps(CTbs), content_type='application/json', headers=YKHO.get_registrar_token())\n geh0 = YKHO.client.put('/api/v1/certificates/10', data=qQXR.dumps(Zyho), content_type='application/json', headers=YKHO.get_registrar_token())\n Aofo = qQ...
[ "0.6240814", "0.6011732", "0.5814165", "0.5737645", "0.57368433", "0.5729594", "0.56391555", "0.5591399", "0.5580593", "0.5547237", "0.55115926", "0.5503743", "0.5489525", "0.54853344", "0.5479121", "0.5474182", "0.54696816", "0.5453102", "0.5452225", "0.54473406", "0.543113"...
0.6447251
0
An admin cannot update a certificate with invalid certificate.
def gxM0(YKHO): YKHO.client.post('/api/v1/certificates', data=qQXR.dumps(CTbs), content_type='application/json', headers=YKHO.get_registrar_token()) geh0 = YKHO.client.put('/api/v1/certificates/1', data=qQXR.dumps(h8cI), content_type='application/json', headers=YKHO.get_registrar_token()) Aofo = qQXR.loads(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mVD2(YKHO):\n YKHO.client.post('/api/v1/certificates', data=qQXR.dumps(CTbs), content_type='application/json', headers=YKHO.get_registrar_token())\n geh0 = YKHO.client.put('/api/v1/certificates/10', data=qQXR.dumps(Zyho), content_type='application/json', headers=YKHO.get_registrar_token())\n Aofo = qQ...
[ "0.6251436", "0.59158605", "0.59145105", "0.59098035", "0.59098035", "0.58993655", "0.58977705", "0.58977705", "0.5877514", "0.5877514", "0.5877514", "0.5877514", "0.5877514", "0.5877514", "0.5877514", "0.5877514", "0.5877514", "0.5877514", "0.5877514", "0.5877514", "0.587751...
0.5537594
42
Test that an admin can delete xisting certificate.
def NKax(YKHO): YKHO.client.post('/api/v1/certificates', data=qQXR.dumps(CTbs), content_type='application/json', headers=YKHO.get_registrar_token()) geh0 = YKHO.client.delete('/api/v1/certificates/1', content_type='application/json', headers=YKHO.get_registrar_token()) Aofo = qQXR.loads(geh0.data.decode()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mtKT(YKHO):\n Lx3t = msfn.objects.all()[0]\n bD7m = '/product/xml/%s/' % Lx3t.item_number\n geh0 = YKHO.client.delete(bD7m)\n YKHO.failUnlessEqual(geh0.status_code, 401)", "def ANkb(YKHO):\n pass", "def mYh8(YKHO):\n pass", "def t0KU(YKHO):\n pass", "def IYEy(YKHO):\n YKHO.asser...
[ "0.6972668", "0.66758305", "0.6664955", "0.6595049", "0.6590523", "0.6577611", "0.65708", "0.64988315", "0.64986354", "0.6496917", "0.6457663", "0.64508206", "0.6433555", "0.6426404", "0.6408594", "0.64056116", "0.6403886", "0.6364619", "0.63372344", "0.6331445", "0.6313985",...
0.68777514
1
Test that an admin cannot delete non existing certificate.
def XcmF(YKHO): YKHO.client.post('/api/v1/certificates', data=qQXR.dumps(CTbs), content_type='application/json', headers=YKHO.get_registrar_token()) geh0 = YKHO.client.delete('/api/v1/certificates/10', content_type='application/json', headers=YKHO.get_registrar_token()) Aofo = qQXR.loads(geh0.data.decode())...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sJ_s(YKHO):\n VUF1 = P39m()\n YKHO.assertFailStatus(1, YKHO._makeConfig(VUF1), ['delete', '--port-identifier', '12345'])\n YKHO.assertEqual('12345 does not identify an item.\\n', HwRy.stdout.getvalue())", "def MzmU(YKHO):\n Q1vK = mRIV('course_handler', YKHO.course.id)\n UNf4, bGrB = YKHO.crea...
[ "0.67962366", "0.6723372", "0.6659593", "0.6619923", "0.65972596", "0.657681", "0.65633833", "0.6552259", "0.651213", "0.6509334", "0.6507103", "0.6498473", "0.6415173", "0.6408652", "0.6398811", "0.6370288", "0.6365619", "0.63629717", "0.63573414", "0.63573414", "0.6329691",...
0.70131373
0
Return a dictionary that tabulates the total number of bases associated with each CIGAR operation. cigar_tuples is a list of (op, length) tuples.
def PPNp(_biH): W17h = mBkc() for en92 in _biH: W17h[en92[0]] += en92[1] return W17h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qUmd(en92):\n XS2Y = 0\n for G1Hx, Ty9i in en92:\n if G1Hx in {0, 1, 7, 8}:\n XS2Y += Ty9i\n return XS2Y", "def sW0F(YKHO) -> cuzp[int, cuzp[str, int]]:\n return YKHO._operation_counts", "def ry4F(__n6):\n Olbg = {}\n for aWuw in Rg82.parse(__n6, 'fasta'):\n soPP ...
[ "0.6502365", "0.5866733", "0.57596207", "0.5635876", "0.5561213", "0.53274745", "0.5279731", "0.5266631", "0.5248991", "0.52464724", "0.5245527", "0.5243623", "0.52377224", "0.5230528", "0.52270555", "0.5220275", "0.5216741", "0.5211988", "0.51739013", "0.5160424", "0.5160424...
0.6731021
0
Replace all contiguous linebreaking whitespaces with a single newline and all contiguous nonbreaking whitespaces with a single space, then strip any leading/trailing whitespace.
def ccMH(l5Ny): return CuOI.sub(' ', xlkR.sub('\\n', l5Ny)).strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZUiC(l5Ny):\n return ZbWC.sub('[\\n\\r]', ' ', l5Ny)", "def pRSW(l5Ny, MkWC=False):\n if l5Ny is None:\n return None\n l5Ny = l5Ny.strip()\n if not MkWC:\n return ZbWC.sub('\\\\s+', ' ', l5Ny)\n else:\n l5Ny = ZbWC.sub('\\\\r', '\\n', l5Ny)\n l5Ny = ZbWC.sub('\\\\s*...
[ "0.6854356", "0.6823087", "0.67730033", "0.67649937", "0.6722138", "0.6706264", "0.6665644", "0.6614612", "0.65361094", "0.6527427", "0.6464306", "0.64546555", "0.64450604", "0.64145744", "0.63598585", "0.63453203", "0.6327522", "0.62979907", "0.6285979", "0.6271923", "0.6270...
0.75504297
0
Test default product price being 10.
def MBCD(YKHO): QRFO = msfn('Test Product') YKHO.assertEqual(QRFO.price, 10) YKHO.assertEqual(QRFO.weight, 20) YKHO.assertEqual(QRFO.flammability, 0.5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MBCD(YKHO):\n QRFO = msfn('Test Product')\n YKHO.assertEqual(QRFO.price, 10)", "def MBCD(YKHO):\n QRFO = msfn('Test Product')\n YKHO.assertEqual(QRFO.price, 10)", "def MBCD(YKHO):\n QRFO = msfn('Test Product')\n YKHO.assertEqual(QRFO.price, 10)", "def MBCD(YKHO):\n QRFO = msfn('Test ...
[ "0.8738257", "0.8738257", "0.8738257", "0.8738257", "0.8738257", "0.8738257", "0.8738257", "0.8738257", "0.8738257", "0.8738257", "0.8738257", "0.87333673", "0.8610413", "0.7287374", "0.72686666", "0.72686666", "0.72686666", "0.72686666", "0.72686666", "0.72686666", "0.726349...
0.8580199
13
Returns 1 if gene mutated, 0 otherwise. Calls the mutator.evaluate() function to mutate the gene mutation_rate of the time. Otherwise, it does nothing.
def r3Zb(YKHO): if HTbS.random() < YKHO.mutation_rate: YKHO._value = YKHO.mutator.evaluate(YKHO) return 1 return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r3Zb(YKHO):\n if YKHO.mutator.evaluate(YKHO):\n YKHO.evaluated = 0\n return 1\n return 0", "def b7La(YKHO, LbUl):\n if isinstance(LbUl, EFlg):\n LbUl = LbUl.to_int()\n assert type(LbUl) is int, 'mutation must work out to a int or have an internal representaiton of int'\n f...
[ "0.7566329", "0.63208675", "0.62871164", "0.62117493", "0.573093", "0.57175344", "0.5716445", "0.5573231", "0.5536494", "0.55165726", "0.551499", "0.54927176", "0.54775554", "0.54382527", "0.54232645", "0.5395253", "0.5391917", "0.534778", "0.5339351", "0.53308773", "0.532733...
0.6896737
1
Gets collection export flag.
def g75F(YKHO): return YKHO._export
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lQ5P(YKHO):\n return YKHO.has_label('exportable') and YKHO.provides", "def DFXb(YKHO):\n return f5rt(client=YKHO)", "def A5ou(YKHO):\n return YKHO.export_all_data()", "def lda_(YKHO, QePW):\n VKhi = YKHO.opts\n tonj = lCXT('export', VKhi)\n return QePW.user.has_perm('%s.%s' % (VKhi.app_...
[ "0.6568305", "0.609754", "0.5942965", "0.5855902", "0.5798418", "0.57834804", "0.57816774", "0.57271445", "0.5693246", "0.5640451", "0.5613568", "0.5607582", "0.5590797", "0.5561627", "0.55341643", "0.5484509", "0.5443088", "0.54322183", "0.5383823", "0.53817964", "0.53802633...
0.75006425
0
Gets related articles count.
def UHFx(YKHO): return YKHO._count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jk8k(Emd4):\n return int(Emd4.db.get('article_count'))", "def dlf1(YKHO):\n return len(d6pt)", "def YGJ_(YKHO):\n return YKHO._associated_object_count", "def vbTf(YKHO, PQKY=None, _0F0=()):\n if PQKY is None and (not _0F0):\n return len(YKHO._relationships)\n elif not _0F0:\n ...
[ "0.7154706", "0.663265", "0.6537293", "0.63641524", "0.63513917", "0.62496364", "0.61724013", "0.61484754", "0.614221", "0.60625917", "0.6040069", "0.60235864", "0.6012086", "0.6002876", "0.5956758", "0.59546256", "0.5944007", "0.5923282", "0.59052104", "0.5894721", "0.588828...
0.5464256
67
Generate a random string of letters and digits
def Zfgd(FVpJ: int=4) -> str: PdTY = vIwR.ascii_letters + vIwR.digits return ''.join((tuKI.choice(PdTY) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q_QB():\n yvT9 = ''\n for bGrB in range(24):\n yvT9 += Acvy(C1SZ)\n return yvT9", "def drFW():\n return GLL2(char_choice=vIwR.ascii_letters + vIwR.digits)", "def hcjz(exwG):\n return ''.join((tuKI.choice(vIwR.ascii_letters) for bGrB in range(exwG)))", "def _yz_(gzVs=10):\n U5bT =...
[ "0.86016387", "0.84852463", "0.8366202", "0.83620757", "0.83602", "0.8158604", "0.8123532", "0.81143093", "0.8089975", "0.80873764", "0.8011259", "0.7957295", "0.79525083", "0.794848", "0.7927194", "0.79182523", "0.7897885", "0.788374", "0.787901", "0.7854035", "0.78254104", ...
0.77352375
28
Returns a dictionary of variables to put in the template context for every page in the admin site. For sites running on a subpath, use the SCRIPT_NAME value if site_url hasn't been customized.
def _sNK(YKHO, QePW): HBP2 = QePW.META['SCRIPT_NAME'] yRYc = HBP2 if YKHO.site_url == '/' and HBP2 else YKHO.site_url try: moMn = cQ68.objects.filter(user=QePW.user) if moMn: UYrL = [YRbF.name for YRbF in moMn] elif QePW.user.is_superuser: UYrL = [1] e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tCbc(YKHO) -> dict:\n return {'site': getattr(YKHO, 'site')}", "def fkz_(YKHO):\n from django.conf import settings\n return {'site_name': lambda Mkmy: settings.LEONARDO_SITE_NAME if getattr(settings, 'LEONARDO_SITE_NAME', '') != '' else settings.SITE_NAME, 'debug': lambda Mkmy: settings.TEMPLATE_DEB...
[ "0.7044585", "0.67757916", "0.65934604", "0.64145476", "0.61818314", "0.61569166", "0.6140505", "0.61285424", "0.6073698", "0.6058714", "0.602411", "0.60085976", "0.57847315", "0.57816535", "0.5754466", "0.5743778", "0.5737129", "0.56683666", "0.56512374", "0.56231827", "0.56...
0.60478675
10
Returns an "VG" (voltage generator) object
def Iw99(YKHO, zFiD: str): mWFP, i4Va, rUTj, BWXx = YKHO.parse_two_node_component(zFiD, 'v') return qvQp.VG(i4Va, rUTj, BWXx, mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U4IO(YKHO):\n print('voici le voltage de la batterie')", "def Yhso(YKHO):\n return YKHO.V", "def U4IO(YKHO):\n YKHO._raise_not_implemented()", "def TvwS(YKHO):\n m8jn = (YKHO.data[0] * 256 + YKHO.data[1]) / 65536.0 * 5.0\n return {'v': m8jn}", "def m8jn(YKHO):\n return YKHO._voltage",...
[ "0.6555433", "0.6370294", "0.6279307", "0.6251481", "0.62506336", "0.6182915", "0.6141808", "0.6084164", "0.60806507", "0.60197353", "0.5917127", "0.587498", "0.587498", "0.587498", "0.5848542", "0.58464164", "0.5816219", "0.57617956", "0.57617956", "0.57617956", "0.5754263",...
0.6874309
0
Try to parse "line" as a voltage constant. If successful, the voltage constant is added to "self.voltage_constant". Returns a "success" flag.
def eTVC(YKHO, zFiD: str): s2mk = zFiD.split() if len(s2mk) != 3: return False if s2mk[1] != '=': return False BWXx = s2mk[2] BWXx = YKHO.remove_ending(BWXx, 'v') BWXx = YKHO.parse_float_value(BWXx) YKHO.voltage_constants[s2mk[0]] = BWXx return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SAKt(YKHO, zFiD):\n if YKHO._regex_helper.search_compiled(XcU5._re_v_option, zFiD):\n YKHO.current_ret['RESULT'].append(YKHO._regex_helper.group('V_OPTION'))\n raise NZyt", "def Gzz4(zFiD):\n if isinstance(zFiD, str):\n if zFiD.startswith('#'):\n return None\n Lih...
[ "0.60203934", "0.5824009", "0.57243997", "0.55141276", "0.54185677", "0.53943354", "0.5375406", "0.5338152", "0.52791095", "0.5251537", "0.5244117", "0.5189016", "0.51851827", "0.51705515", "0.5132196", "0.5131979", "0.5088357", "0.50816154", "0.505076", "0.5028643", "0.50242...
0.84792286
0
String representation of a particle.
def wHJl(YKHO): return '<InfectionSim Particle at: x={:.2f}, y={:.2f}>'.format(YKHO._x, YKHO._y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n A07C = '\"particle_id\":' + str(YKHO.particle_id)\n maxY = '\"size\":' + str(YKHO.size)\n EsqB = '\"current_fitness\":' + str(YKHO.current_fitness)\n BcYB = ','.join([str(Ty9i) for Ty9i in YKHO.values])\n T6S7 = '\"values\":[' + BcYB + ']'\n qWMW = '\"best_fitness\":' + str(YKHO...
[ "0.75733525", "0.7243114", "0.7234177", "0.7187854", "0.7007811", "0.6887691", "0.67035365", "0.6658763", "0.6655783", "0.6609124", "0.66043884", "0.65765965", "0.6569645", "0.65584147", "0.6461166", "0.64587766", "0.6458517", "0.64413023", "0.64056456", "0.64028347", "0.6389...
0.6923364
5
Getter for x coordinate of a particle. Returns float The x coordinate of a particle.
def WKvO(YKHO): return YKHO._x
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h1ia(YKHO) -> float:\n return YKHO.x_coord", "def vAgg(YKHO):\n return YKHO.position.x", "def p5xg(YKHO):\n return YKHO.x_coord", "def nIKw(YKHO):\n return YKHO.posX", "def nIKw(YKHO) -> int:\n return YKHO.__x", "def Aco_(YKHO):\n return YKHO.__pos_x", "def nIKw(YKHO):\n return...
[ "0.7762516", "0.7739218", "0.7664077", "0.76350003", "0.75767094", "0.75285286", "0.74838805", "0.7463313", "0.7393887", "0.73738706", "0.73524827", "0.7339402", "0.73068553", "0.7292453", "0.72899973", "0.72432137", "0.7230601", "0.7213645", "0.7204912", "0.7196008", "0.7164...
0.69391704
38
Getter for the y coordinate of a particle. Returns float The y coordinate of a particle.
def LVAh(YKHO): return YKHO._y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n_tS(YKHO) -> float:\n return YKHO.y_coord", "def yDCK(YKHO):\n return YKHO.coords[1]", "def BBTF(YKHO):\n return YKHO.position.y", "def bDS1(YKHO):\n return YKHO.position[1]", "def bDS1(YKHO):\n return YKHO.y", "def bDS1(YKHO):\n return YKHO.y", "def bmPF(YKHO):\n return YKHO....
[ "0.8031172", "0.78316545", "0.7778685", "0.7776736", "0.7775239", "0.7775239", "0.7764286", "0.7754987", "0.77312505", "0.77244896", "0.77064824", "0.7695347", "0.7688174", "0.7672748", "0.76362437", "0.7630527", "0.75724715", "0.75681645", "0.75372285", "0.75372285", "0.7504...
0.72662437
36