query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Return the class of this device, from component DEVICE_CLASSES.
def rM2U(YKHO): return dz92
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n return YKHO._sensor.get(F6ct)", "def rM2U(YKHO):\n return YKHO._handle('device_class')", "def rM2U(YKHO):\n return eeT9", "def rM2U(YKHO) -> str:\n return eeT9", "def rM2U(YKHO) -> str:\n return YKHO._device_class_from_type", "def rM2U(YKHO) -> str:\n return YKHO._dev_...
[ "0.85304403", "0.8427226", "0.83756787", "0.83750737", "0.83277243", "0.8324431", "0.8292755", "0.8292755", "0.8292755", "0.82483685", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754", "0.8244754"...
0.716903
65
Convenience function to evaluate an item with a series of matching functions If matchAll is false, returns true if at least one matching function returns true. If matchAll is true, returns true if all matching functions return true. If matchingFunctions is an empty list, returns False.
def uBUV(ZfUD, prRh, eRjE=False): if len(prRh) == 0: return False hHld = [KIxA(ZfUD) for KIxA in prRh] if eRjE: return all(hHld) else: return True in hHld
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BcXj(YKHO, m2Zb):\n return all([m2Zb(X2PW) for X2PW in YKHO.args])", "def gYp1(YKHO, m2Zb):\n return any([m2Zb(X2PW) for X2PW in YKHO.args])", "def any(eHNT, OxJJ) -> bool:\n for tTpl in OxJJ:\n if eHNT(tTpl):\n return True\n return False", "def any(eHNT, yv6U):\n return ...
[ "0.6298976", "0.62841845", "0.6070484", "0.6050243", "0.60428673", "0.6007575", "0.5970339", "0.59093493", "0.59032094", "0.5879406", "0.5787209", "0.57017636", "0.5699965", "0.5691277", "0.5684383", "0.5648775", "0.5631778", "0.5627293", "0.5626999", "0.5619416", "0.5604601"...
0.85649514
0
Returns True if passed function is present in the call stack.
def txlv(YKHO, m2Zb): return len(list(filter(lambda WKvO: WKvO.function == m2Zb, tq_1.stack()))) > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VBj0(YKHO):\n return hasattr(YKHO.node, '__call__')", "def Jjik(YKHO, mWFP):\n return mWFP in YKHO.func_names", "def zRnM(Fg_i, f4IJ):\n if not Fg_i.funcname:\n if Fg_i.line != f4IJ.f_lineno:\n return False\n return True\n if f4IJ.f_code.co_name != Fg_i.funcname:\n ...
[ "0.6979489", "0.6931179", "0.6848765", "0.6811806", "0.6809302", "0.67958033", "0.67853445", "0.6741491", "0.67334497", "0.6711298", "0.6598688", "0.65643936", "0.6517286", "0.6498044", "0.6494934", "0.64884216", "0.6478028", "0.64770263", "0.6465209", "0.64459556", "0.643804...
0.7900519
0
Add new item to array, increase capacity if not available
def SStx(YKHO, ZfUD): if YKHO.item_count == YKHO.array_capacity: YKHO._enlarge_array(2 * YKHO.array_capacity) YKHO.primary_array[YKHO.item_count] = ZfUD YKHO.item_count += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, ZfUD):\n if YKHO.capacity == YKHO.num_items:\n YKHO.enlarge()\n d6pt = YKHO.num_items\n YKHO.arr[d6pt] = ZfUD\n YKHO.num_items += 1\n return None", "def SStx(YKHO, ZfUD):\n if YKHO._count == YKHO._capacity:\n YKHO._resize(2 * YKHO._capacity)\n YKHO._array[YKHO._c...
[ "0.82343274", "0.79050016", "0.7698367", "0.75981474", "0.7573445", "0.7519784", "0.7511895", "0.75092775", "0.7478941", "0.7478805", "0.7400481", "0.73559934", "0.73418796", "0.7309206", "0.7309195", "0.7307158", "0.72959965", "0.72780865", "0.72721034", "0.7233464", "0.7186...
0.8096258
1
Return True if the agent is in a wall.
def wcIm(YKHO, oeNL): for httR in YKHO.walls: if httR.contains_point(oeNL): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OC7g(YKHO):\n return YKHO.node_type is CvW4.WALL", "def ALhd(YKHO):\n return YKHO.field[YKHO.snake.head] == XuVg.WALL", "def OC7g(YKHO, WKvO, LVAh):\n return (WKvO, LVAh) in YKHO.walls", "def OC7g(YKHO, WKvO, LVAh):\n return YKHO.get_state_kind(WKvO, LVAh) == rRPI.CELL_KIND_WALL", "def OC7g...
[ "0.8001601", "0.7987172", "0.7986912", "0.7672595", "0.7638619", "0.7507734", "0.74988484", "0.7430919", "0.7430919", "0.742735", "0.74025756", "0.73952985", "0.7382244", "0.7372231", "0.73575205", "0.731081", "0.7308832", "0.72150314", "0.71732205", "0.7164721", "0.7117486",...
0.6941122
25
On creation, the Portfolio object contains no positions and all values are "reset" to the initial cash, with no PnL.
def FIMM(YKHO, mGPM: DataHandler, UxaT: float, FusX: Timer): YKHO.initial_cash = UxaT YKHO.data_handler = mGPM YKHO.timer = FusX YKHO.net_liquidation = UxaT ' Cash value includes futures P&L + stock value + securities options value + bond value + fund value. ' YKHO.gross_exposure_of_positions = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.portfolio = {'cash': Ceit}\n YKHO.equity = Ceit\n YKHO.re = float()\n YKHO.tran_cost = float()", "def FIMM(YKHO):\n YKHO.currentBalance = 100000.0\n YKHO.portfolio = {}", "def Tiyw(YKHO):\n HVIF = YKHO._portfolio_store\n HVIF.capital_used = YKHO.period_cash_flow\n...
[ "0.8029241", "0.7101272", "0.70650786", "0.675635", "0.6724266", "0.66114926", "0.6477031", "0.6415", "0.63919044", "0.6350267", "0.632359", "0.6250306", "0.6149145", "0.6026284", "0.5954865", "0.5953766", "0.5951826", "0.5949635", "0.5914195", "0.5907152", "0.5900588", "0....
0.6356634
9
Updates the value of all positions that are currently open by getting the most recent price. The function is called at the end of the day (after market close) and after each executed transaction. If the flag record is set to True, it records the current assets values and the portfolio value (this is performed once per ...
def QdZT(YKHO, AIu6=False): YKHO.net_liquidation = YKHO.current_cash YKHO.gross_exposure_of_positions = 0 xXyj = list(YKHO.open_positions_dict.keys()) LqLv = YKHO.data_handler.get_last_available_price(tickers=xXyj) mOOZ = {} for SYlA, dQgj in YKHO.open_positions_dict.items(): tYo_ = LqLv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b52j(YKHO, SYlA):\n YKHO.unrealised_pnl = 0\n YKHO.equity = YKHO.realised_pnl\n YKHO.equity += YKHO.init_cash\n for cuz7 in YKHO.positions:\n Xf84 = YKHO.positions[cuz7]\n if YKHO.price_handler.istick():\n XJob, QYWI = YKHO.price_handler.get_best_bid_ask(SYlA)\n else...
[ "0.6890904", "0.64580643", "0.62101233", "0.60616285", "0.6045696", "0.5999635", "0.5999635", "0.5946196", "0.5919243", "0.58694303", "0.5828938", "0.58166045", "0.5793029", "0.5773134", "0.5736678", "0.5653905", "0.56437993", "0.5637377", "0.563308", "0.56188697", "0.5611815...
0.7523431
0
Return a string representation of this structure
def zAg0(YKHO): Csk6 = {} Csk6['nodeID'] = YKHO.nodeID Csk6['aveA'] = YKHO.aveA Csk6['wavelengthA'] = YKHO.wavelengthA Csk6['locLongA'] = YKHO.locLongA Csk6['locLatA'] = YKHO.locLatA Csk6['compassA'] = YKHO.compassA Csk6['aoaA'] = YKHO.aoaA return str(Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(YKHO):\n return ddrW(YKHO, type(YKHO).fields)", "def yLCI(YKHO):\n return ddrW(YKHO, type(YKHO).fields)", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def...
[ "0.8272776", "0.8272776", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819...
0.0
-1
Return a string representation of this structure
def zAg0(YKHO): Csk6 = {} Csk6['aveUp1'] = YKHO.aveUp1 Csk6['aveUp2'] = YKHO.aveUp2 Csk6['aveUp3'] = YKHO.aveUp3 Csk6['lobUp1'] = YKHO.lobUp1 Csk6['lobUp2'] = YKHO.lobUp2 Csk6['lobUp3'] = YKHO.lobUp3 Csk6['lat1'] = YKHO.lat1 Csk6['lat2'] = YKHO.lat2 Csk6['lat3'] = YKHO.lat3 C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(YKHO):\n return ddrW(YKHO, type(YKHO).fields)", "def yLCI(YKHO):\n return ddrW(YKHO, type(YKHO).fields)", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def...
[ "0.8272776", "0.8272776", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819...
0.0
-1
Return a string representation of this structure
def zAg0(YKHO): Csk6 = {} Csk6['ave'] = YKHO.ave Csk6['lat'] = YKHO.lat Csk6['long'] = YKHO.long Csk6['freq'] = YKHO.freq Csk6['aoa'] = YKHO.aoa Csk6['node'] = YKHO.node Csk6['wave'] = YKHO.wave Csk6['comp'] = YKHO.comp return str(Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(YKHO):\n return ddrW(YKHO, type(YKHO).fields)", "def yLCI(YKHO):\n return ddrW(YKHO, type(YKHO).fields)", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def...
[ "0.8272776", "0.8272776", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819...
0.0
-1
Return a Playlist object from a YouTube Playlist. The returned Pafy objects are initialised using the arguments to get_playlist() in the manner documented for pafy.new()
def lcjk(FaXB, XNgG=False, HBzi=False, zNig=False, db6b=None): return gfdD(FaXB, XNgG, HBzi, zNig, db6b)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y0MB(YKHO, JqP_, leAC):\n HqKa = gWzr.songs_tracks(JqP_)\n jUWj = YKHO.songs_uris(HqKa)\n NvAR = YKHO.create_playlist(leAC, jUWj)\n return NvAR", "def NvAR(YKHO, JqP_):\n try:\n NvAR = YKHO.ytmusic.get_playlist(JqP_)\n return NvAR\n except:\n raise Exception('Unable to ...
[ "0.7190658", "0.71468174", "0.7146359", "0.69550514", "0.69252795", "0.6720614", "0.661612", "0.66084355", "0.65728956", "0.6567684", "0.64189124", "0.6412004", "0.64098924", "0.6402799", "0.63705784", "0.63157374", "0.6242907", "0.616211", "0.6160524", "0.615528", "0.6098738...
0.69017506
5
Push element x to the back of queue.
def _jXH(YKHO, WKvO): YKHO.st1.append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n YKHO.queue.push(WKvO)\n for YRbF in range(YKHO.queue.size() - 1):\n YKHO.queue.push(YKHO.queue.peek())\n YKHO.queue.pop()", "def _jXH(YKHO, WKvO):\n YKHO.q_.push(WKvO)\n for YRbF in range(YKHO.q_.size() - 1)...
[ "0.8627964", "0.847768", "0.8414127", "0.827978", "0.8259876", "0.82024014", "0.81944746", "0.81445456", "0.81445456", "0.81041193", "0.81004506", "0.80947775", "0.805236", "0.805236", "0.8037114", "0.8033887", "0.79936236", "0.79584146", "0.7948628", "0.7944436", "0.7899758"...
0.6873566
97
Removes the element from in front of queue and returns that element.
def BEuN(YKHO): if not YKHO.st2: while YKHO.st1: YKHO.st2.append(YKHO.st1.pop()) if YKHO.st2: return YKHO.st2.pop() return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()", "def BEuN(YKHO):\n if len(...
[ "0.85555553", "0.8329695", "0.81405824", "0.80353034", "0.791703", "0.78865194", "0.7882125", "0.7802728", "0.77982587", "0.7746587", "0.7715509", "0.77124494", "0.7696993", "0.76691186", "0.76638514", "0.7662351", "0.76441866", "0.7642656", "0.76400787", "0.7635912", "0.7620...
0.0
-1
Get the front element.
def T7C_(YKHO): if not YKHO.st2: while YKHO.st1: YKHO.st2.append(YKHO.st1.pop()) if YKHO.st2: return YKHO.st2[-1] return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VnzS(YKHO):\n return YKHO.frontelem.elem", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._items[0]", "def TA6u(YKHO):\n return YKHO.storage[0]", "def VnzS(YKHO):\n return YKHO.head", "def VnzS(YKHO):\n assert not YKHO.is_empty()\n return YKHO._first[UhXv]", "def qnv...
[ "0.87835056", "0.83788836", "0.82574433", "0.80897844", "0.8012526", "0.7981897", "0.786668", "0.783555", "0.7815892", "0.77942365", "0.7735508", "0.769147", "0.76801795", "0.76465446", "0.7630563", "0.75877416", "0.7572392", "0.75053453", "0.74844474", "0.74813557", "0.74660...
0.0
-1
Return number of messages waiting in this queue
def szAg(YKHO): bGrB, wPDf, bGrB = YKHO.declare() return wPDf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yAGA(YKHO):\n N1p7 = YKHO.q.find({'status': 'waiting'})\n if N1p7:\n return N1p7.count()", "def yAGA(YKHO):\n N1p7 = YKHO.q.find({'status': YKHO.WAITING})\n if N1p7:\n return N1p7.count()", "def UHFx(YKHO):\n return H6Cb.msg_queue_count(YKHO)", "def aWCD(YKHO):\n return le...
[ "0.84293324", "0.8348838", "0.8157338", "0.7779844", "0.7712529", "0.7675653", "0.7605464", "0.7580264", "0.75735104", "0.75525326", "0.7507405", "0.74812406", "0.74562836", "0.7454506", "0.7452699", "0.74316955", "0.7407482", "0.74039793", "0.73830587", "0.7357768", "0.73460...
0.0
-1
Return prime factorization of n as sorted list
def BMro(exwG): Csk6 = 2 Llmz = [] while exwG > 1: if exwG % Csk6 == 0: Llmz.append(Csk6) exwG = exwG / Csk6 else: Csk6 = Csk6 + 1 return Llmz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KX6O(exwG):\n Llmz = []\n return sorted(Llmz)", "def rPed(exwG):\n if exwG <= 0:\n raise ValueError('n must be > 0, because prime number has to be greater than 1')\n OAmt = []\n OAmt.append(1)\n YRbF = 2\n while exwG >= YRbF * YRbF:\n while exwG % YRbF == 0:\n OA...
[ "0.8752695", "0.8303085", "0.82471883", "0.8235139", "0.8223195", "0.82215416", "0.8213891", "0.8194302", "0.8192423", "0.81133056", "0.80826277", "0.8070766", "0.80647635", "0.80304444", "0.80197597", "0.80148125", "0.8004231", "0.7998431", "0.79887974", "0.79787517", "0.795...
0.7762476
38
SignOutputRaw is a method that can be used to generated a signature for a set of inputs/outputs to a transaction. Each request specifies details concerning how the outputs should be signed, which keys they should be signed with, and also any optional tweaks. The return value is a fixed 64byte signature (the same format...
def BeJs(YKHO, QePW, QpfX): QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED) QpfX.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zihr(g4y1, **B2fa):\n if QpfX.executing_eagerly():\n return fwpB.execute('Sign', g4y1)\n return fwpB.add('Sign', g4y1, **B2fa)", "def fvoB():\n if not QePW.json:\n return Yxsy(pz3A(z_7c('Invalid Input Format', g7Vi.badFormat)), 400)\n if 'privateKeys' not in QePW.json:\n retu...
[ "0.5729794", "0.5688701", "0.5533703", "0.55321676", "0.5460112", "0.5412089", "0.5377951", "0.53708833", "0.5369346", "0.53668284", "0.5355264", "0.53447026", "0.5333522", "0.5294481", "0.527369", "0.52723694", "0.5272179", "0.52697694", "0.5262309", "0.5262087", "0.52401227...
0.6820383
0
Checks whether Bitmap is empty or not.
def FBfn(YKHO): GfdN = 0 for YRbF in range(0, len(YKHO.bit_array)): if YKHO.bit_array[YRbF] == 0: GfdN += 1 if GfdN == len(YKHO.bit_array): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return YKHO.w > 0 and YKHO.h > 0", "def FBfn(YKHO):\n return YKHO.get_size() is 0", "def FBfn(YKHO):\n return YKHO.real_size == 0", "def FBfn(YKHO):\n return YKHO._size != 0", "def FBfn(YKHO):\n return YKHO._size == 0", "def FBfn(YKHO):\n return YKHO._size == 0", "de...
[ "0.7371525", "0.7017211", "0.6985567", "0.6951699", "0.69337046", "0.69337046", "0.69337046", "0.69337046", "0.69337046", "0.69337046", "0.69337046", "0.69266117", "0.6922966", "0.6919889", "0.69133216", "0.6910348", "0.6906124", "0.69044936", "0.6899183", "0.6899183", "0.689...
0.0
-1
Returns a string representation of a bit array.
def zAg0(YKHO): YAq3 = '' for YRbF in range(0, YKHO.cardinality): YAq3 = str(YKHO.test_bit(YRbF)) + YAq3 return YAq3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uBHf(UOVU):\n return UOVU.to01()", "def pV47(mRnc):\n IWj_ = ''\n for HkJz in mRnc:\n IWj_ = IWj_ + str(HkJz[0])\n return IWj_", "def eUCL(jzdc):\n K0A_ = len(jzdc) % 8\n if K0A_ != 0:\n jzdc.fromlist([0] * (8 - K0A_))\n KCHu = jzdc.tostring()\n KCHu = MRxC.unhexlify(K...
[ "0.8461389", "0.82354045", "0.7914935", "0.77727914", "0.745195", "0.74053466", "0.73134124", "0.70840687", "0.705275", "0.69617426", "0.6874889", "0.68484664", "0.68426347", "0.6780353", "0.6742767", "0.67324555", "0.6717739", "0.6709949", "0.6709949", "0.6700521", "0.666452...
0.6308503
46
Helper function used when passing filepath arguments with argparse module. Trims all '/' characters from the end of the path string.
def Sd0C(KCHu): while KCHu.endswith('/'): KCHu = KCHu[:-1] return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VCg9(pmON: str):\n if pmON[-1] != '/':\n pmON += '/'\n return pmON", "def B5sD(YKHO, pmON):\n if pmON.startswith('/'):\n pmON = pmON[1:]\n return pmON", "def WskU(Q81v):\n KCHu = Q81v\n for YRbF in range(len(KCHu)):\n if KCHu[YRbF] == '\\\\':\n KCHu = KCHu[...
[ "0.7650641", "0.7551318", "0.7494739", "0.7417773", "0.7390252", "0.7357471", "0.733145", "0.7313119", "0.7158222", "0.710633", "0.7104304", "0.71014786", "0.7065827", "0.70537406", "0.70353526", "0.69567716", "0.6945895", "0.69318986", "0.6909934", "0.6906404", "0.68649554",...
0.67395157
30
Sets the success_rate of this AdvancedSeasonStatDefense.
def WIoV(YKHO, WIoV): YKHO._success_rate = WIoV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KyhM(YKHO, WIoV):\n YKHO._success_rate = WIoV\n YKHO._calculate_ransac_iterations()", "def JpPY(YKHO) -> int:\n return qe4Y.get(YKHO, 'enforcing_success_rate')", "def mteI(YKHO, mteI):\n YKHO._success_count = mteI", "def nyyK(YKHO, nyyK: bool):\n YKHO._success = nyyK", "def nyyK(YKHO, ny...
[ "0.7394881", "0.606321", "0.58722436", "0.54341775", "0.5348887", "0.5348887", "0.5348887", "0.5259854", "0.5247251", "0.5220357", "0.51993376", "0.49804017", "0.473841", "0.46541977", "0.46541977", "0.46541977", "0.46541977", "0.46511686", "0.46075514", "0.4585002", "0.45812...
0.7519169
0
Sets the second_level_yards_total of this AdvancedSeasonStatDefense.
def vuMO(YKHO, vuMO): YKHO._second_level_yards_total = vuMO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZsLY(YKHO, ZsLY):\n YKHO._second_level_yards = ZsLY", "def TDaJ(YKHO, TDaJ):\n YKHO._line_yards_total = TDaJ", "def EueN(YKHO, EueN):\n YKHO._open_field_yards_total = EueN", "def qAls(YKHO, qAls):\n YKHO._second_team = qAls", "def AuVK(YKHO):\n _xYd = YKHO.buildDamageDelegate()\n YKHO...
[ "0.7915605", "0.647151", "0.60286736", "0.5726951", "0.5167857", "0.51095325", "0.5068983", "0.50641066", "0.4987352", "0.49849322", "0.49710515", "0.49547642", "0.49165687", "0.4901785", "0.49000138", "0.48937464", "0.48815617", "0.48271495", "0.48138306", "0.48018515", "0.4...
0.87738144
0
Sets the open_field_yards of this AdvancedSeasonStatDefense.
def YlC9(YKHO, YlC9): YKHO._open_field_yards = YlC9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EueN(YKHO, EueN):\n YKHO._open_field_yards_total = EueN", "def WTQI(YKHO, WTQI):\n YKHO._line_yards = WTQI", "def kLCU(YKHO, r8jI):\n assert YKHO.valid\n ZPVg = max(-50, min(50, YKHO._offset + r8jI))\n return v_mo(ZPVg)", "def kLCU(YKHO, r8jI):\n assert YKHO.valid\n ZPVg = max(-50, m...
[ "0.70077527", "0.5659388", "0.55494463", "0.5511564", "0.5264783", "0.52018684", "0.48773983", "0.46781498", "0.453438", "0.44862896", "0.44761273", "0.44446328", "0.4442584", "0.44283843", "0.4427921", "0.44160095", "0.4410474", "0.43208465", "0.4289309", "0.42585856", "0.42...
0.8139401
0
Sets the open_field_yards_total of this AdvancedSeasonStatDefense.
def EueN(YKHO, EueN): YKHO._open_field_yards_total = EueN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YlC9(YKHO, YlC9):\n YKHO._open_field_yards = YlC9", "def TDaJ(YKHO, TDaJ):\n YKHO._line_yards_total = TDaJ", "def vuMO(YKHO, vuMO):\n YKHO._second_level_yards_total = vuMO", "def kLCU(YKHO, r8jI):\n assert YKHO.valid\n ZPVg = max(-50, min(50, YKHO._offset + r8jI))\n return v_mo(ZPVg)", ...
[ "0.6702103", "0.6654284", "0.62602866", "0.53637564", "0.53512", "0.49884436", "0.49785388", "0.48725748", "0.4840983", "0.4589855", "0.45776054", "0.4568987", "0.4564974", "0.45598108", "0.45404845", "0.45027718", "0.44977975", "0.44541717", "0.4425781", "0.44181976", "0.441...
0.85128474
0
Sets the havoc of this AdvancedSeasonStatDefense.
def vD_h(YKHO, vD_h): YKHO._havoc = vD_h
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VRiF(YKHO, J6uW):\n YKHO.halo.set_hod(J6uW)", "def MKlR(YKHO, MKlR: float):\n YKHO._h = MKlR", "def pKMb(YKHO, BWXx):\n YKHO.rh = BWXx\n return YKHO", "def WlZZ(YKHO, fEpc):\n YKHO.__heroe = fEpc", "def TkaV(YKHO):\n aP7V = [YRbF for YRbF in YKHO.data if YRbF != 'ALL HEROES']\n G9j...
[ "0.56856084", "0.5488934", "0.5441562", "0.53413945", "0.5319228", "0.52987707", "0.51765645", "0.51548976", "0.5119674", "0.5085882", "0.50643474", "0.5046097", "0.5019117", "0.50022376", "0.49861717", "0.49608013", "0.49541295", "0.4925545", "0.49108034", "0.48592958", "0.4...
0.6733942
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
enumerates one or mores sets corresponding to a different random sequence each and return all of them in a single pandas dataframe
def QPzs(YKHO, N3KL, msOQ, b4jU=1, cDK5=1, lhy8=True): jQ3Z = [] for YRbF in range(b4jU): Yo8G, C9U5 = YKHO.enumerate_set(N3KL, msOQ, n_samples=cDK5, seed=YRbF, props=lhy8) wCft = [QWcs[0] for QWcs in C9U5] Y0X_ = [QWcs[1] for QWcs in C9U5] X5Up = [QWcs[2] for QWcs in C9U5] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FI1m(exwG=50):\n iwG2 = []\n for YRbF in range(exwG):\n _U44 = []\n for YRbF in range(98):\n _U44.append(tuKI.randint(1, 4))\n iwG2.append(_U44)\n iwG2 = rLdf.DataFrame(iwG2).T\n return iwG2", "def yJIv(d6pt):\n _0VL = XFhF(d6pt)\n LqlV = []\n YnS4 = []\n ...
[ "0.6913635", "0.6002205", "0.58631855", "0.5795499", "0.57765746", "0.57295555", "0.56969774", "0.5647511", "0.5635949", "0.56348836", "0.5626033", "0.5625757", "0.5615091", "0.5615091", "0.5614127", "0.5614127", "0.56041825", "0.56033915", "0.5593542", "0.55901", "0.55901", ...
0.6068816
1
Adds an Absolute Difference loss to the training procedure. `weights` acts as a coefficient for the loss. If a scalar is provided, then the loss is simply scaled by the given value. If `weights` is a `Tensor` of shape `[batch_size]`, then the total loss for each sample of the batch is rescaled by the corresponding elem...
def NHdC(_mSQ=1.0, mWFP='AbsoluteDifference', rrBf=None, RN67=True): def pNVr(Y8eF, aMgO): N8L0 = qkSJ.abs(qkSJ.subtract(aMgO, Y8eF)) return N8L0 return FYjR(pNVr, _mSQ, mWFP, rrBf, RN67)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OQXl(_mSQ):\n r661 = 0\n DkWr = _mSQ[-1]\n _mSQ = _mSQ[0:len(_mSQ) - 1]\n for upAO, o3Uj in zip(_mSQ, N6Z1):\n r661 += upAO * o3Uj\n return W4jA(EvQg['loss'], r661 + DkWr)", "def e2VI(YKHO, _mSQ, aTLP):\n HBfW = YKHO._normalize(_mSQ)\n return 1.0 - YKHO._weighted_eval(aTLP, HBfW)"...
[ "0.67375386", "0.642183", "0.64158124", "0.6367738", "0.63537717", "0.6310272", "0.62771684", "0.6195362", "0.6181983", "0.61677104", "0.615223", "0.60827696", "0.6040544", "0.6034718", "0.5980215", "0.5975282", "0.5975282", "0.5962635", "0.59450954", "0.59124964", "0.5911969...
0.6944092
0
Adds a cosinedistance loss to the training procedure. Note that the function assumes that `predictions` and `labels` are already unitnormalized.
def NWsc(tpio, _mSQ=1.0, mWFP='CosineDistance', rrBf=None, RN67=True): def pNVr(Y8eF, aMgO): T5qo = qkSJ.multiply(aMgO, Y8eF) N8L0 = 1 - qkSJ.reduce_sum(T5qo, axis=(tpio,), keep_dims=True) return N8L0 return FYjR(pNVr, _mSQ, mWFP, rrBf, RN67)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GT2U(Crrw, N6Z1):\n return ZylS.keras.losses.sparse_categorical_crossentropy(Crrw, N6Z1, from_logits=False)", "def keCE(YKHO, aTLP):\n LVAh = YKHO.labels_placeholder\n return N77f", "def keCE(YKHO, nvEb, Crrw):\n raise NotImplementedError()", "def Lvgp(YKHO, JV1Q, UYmz, **Suyv):\n raise No...
[ "0.67182183", "0.6624907", "0.6549395", "0.63998395", "0.6303401", "0.6300159", "0.62943184", "0.622449", "0.62123936", "0.6188308", "0.61674577", "0.61260736", "0.61234045", "0.61148053", "0.61118644", "0.610929", "0.60993", "0.6061134", "0.60560566", "0.6042899", "0.6042899...
0.0
-1
Initialize with the subjectPair and all the Pairs for the Quiz
def FIMM(YKHO, HdCa, _fxO): super().__init__(HdCa, _fxO, subjectForm=g47t.Foreign, optionsForm=g47t.Native)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, U4ZT, fnv2, Hb5J):\n YKHO.subject = U4ZT\n YKHO.guess_and_answer = fnv2\n YKHO.question_and_answers = Hb5J", "def FIMM(YKHO, LtAY, JRtB, WlEx=None):\n YKHO.questions = WlEx if WlEx else []\n YKHO.teacher = LtAY\n YKHO.classroom = JRtB", "def FIMM(YKHO, HoXq: int, bAls: str, UpZ...
[ "0.69441706", "0.66859984", "0.6589197", "0.65100306", "0.6397699", "0.63270295", "0.6234129", "0.621265", "0.6210506", "0.6126914", "0.6102824", "0.6077765", "0.60629696", "0.60560256", "0.6021858", "0.6014602", "0.5916275", "0.5909992", "0.5897979", "0.58761185", "0.5861719...
0.6914395
1
Make omega > pi+ pi pi0
def uWoJ(YKHO, mWFP, pGn_, GypT): LBsl = YQxR() LBsl.DecayDescriptor = 'omega(782) -> pi+ pi- pi0' LBsl.CombinationCut = "(ADAMASS('omega(782)') < 200 *MeV)" LBsl.MotherCut = "(ADMASS('omega(782)') < 200 *MeV) & (VFASPF(VPCHI2)> 0.00001)" w17_ = LBsl.configurable('Combine_' + mWFP + '_PiPiPi0') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wW3z(Kt_s):\n LTX_ = 125.04 - 1934.136 * Kt_s\n return LTX_", "def wW3z(YKHO) -> float:\n RA_F = YKHO.delta()\n hI0L = YKHO.price()\n return RA_F * YKHO.So / hI0L", "def wW3z(YKHO):\n return P6bq.twopi * YKHO.frequency", "def YOt4(YKHO):\n return YKHO.f_c * 2 * mM0K", "def uZQJ(wW3...
[ "0.7127538", "0.71250486", "0.6995871", "0.6975754", "0.6897789", "0.68734384", "0.6837791", "0.6728966", "0.66462517", "0.6627033", "0.6593312", "0.6576938", "0.6525016", "0.65154094", "0.6465172", "0.64372456", "0.6406508", "0.62656057", "0.6234718", "0.62215525", "0.621863...
0.5595121
99
Display list of images with matplotlib
def cPsg(Yw_3, c9ua='Source', jbYn=False): if not jbYn: PZyS = oyIN.sqrt(len(Yw_3)) TVTK = oyIN.ceil(PZyS) H2v2 = oyIN.ceil(len(Yw_3) / TVTK) for LNo8, YRbF in zip(Yw_3, range(1, len(Yw_3) + 1)): QrM1.subplot(H2v2, TVTK, YRbF) a8Pe = XC5k.cvtColor(LNo8, XC5k.C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U0xK(Khnv, mWFP):\n wK7l = 9\n LZpg, MPlV = QrM1.subplots(wK7l, wK7l)\n LZpg.subplots_adjust(hspace=0.5, wspace=0.5)\n for YRbF, aNZO in enumerate(MPlV.flat):\n if YRbF >= len(Khnv):\n break\n aNZO.imshow(Khnv[YRbF])\n aNZO.set_xticks([])\n aNZO.set_yticks([])...
[ "0.7976926", "0.78643066", "0.7855862", "0.7801174", "0.7767642", "0.7703341", "0.7650747", "0.76500034", "0.76500034", "0.76500034", "0.76500034", "0.7647671", "0.7633957", "0.76112634", "0.7556007", "0.7542482", "0.74892056", "0.7462348", "0.7454973", "0.744483", "0.744448"...
0.0
-1
Return the subset of ids of `objs` that aren't already assigned to this relationship.
def EEa7(YKHO, cfOv, OtzM, NCls, ilYk): T6S7 = YKHO.through._default_manager.using(NCls).values_list(OtzM, flat=True).filter(**{cfOv: YKHO.related_val[0], '%s__in' % OtzM: ilYk}) return ilYk.difference(T6S7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _tIt(YKHO, jEHC: List, ei4T: List) -> x1iM:\n Aofo = []\n if ei4T is not None:\n for ZfUD in ei4T:\n if 'id' in ZfUD and ZfUD['id'] not in jEHC:\n Aofo.append(ZfUD)\n return Aofo", "def _tIt(p9NO, Crrw, aZB5=0):\n yvT9 = p9NO.copy()\n xbui = set(WtP1(yvT9))\n ...
[ "0.59702194", "0.5862228", "0.58579355", "0.5759678", "0.57051057", "0.5693551", "0.5647155", "0.56091267", "0.55990064", "0.5557242", "0.55245435", "0.54807997", "0.5476832", "0.5439661", "0.54018056", "0.5401653", "0.53687435", "0.5360847", "0.52932787", "0.52677846", "0.52...
0.5367179
17
Calculate the FOV needed to get a given frustum height at a given distance.
def zdh9(H2v2, Ayfi): Skzt = oyIN.degrees(2.0 * oyIN.arctan(H2v2 * 0.5 / Ayfi)) return Skzt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C8ha(Skzt, Ayfi):\n H2v2 = 2.0 * Ayfi * oyIN.tan(oyIN.radians(Skzt * 0.5))\n return H2v2", "def HLUY(hBdd: int) -> float:\n pass", "def Xe3M(pAIe, fZkQ, Ayfi):\n BxRI = epAf.radians(fZkQ)\n H2v2 = Ayfi * BxRI\n TVTK = H2v2 * pAIe\n return (TVTK * 2.0, H2v2 * 2.0)", "def Pwt5(YKHO, MW...
[ "0.8024907", "0.6410889", "0.6032378", "0.593662", "0.5886572", "0.56924075", "0.5676579", "0.550214", "0.5469113", "0.5454678", "0.53714186", "0.5352239", "0.5314339", "0.52892816", "0.52456325", "0.5244504", "0.52040535", "0.51472646", "0.5115419", "0.51020414", "0.50380623...
0.7694993
1
copy filter result to image
def oLpi(ThLH): yzQ0 = YKHO.width MKlR = YKHO.height Z9rn = [0, 0, 0] for Ty9i in range(0, r8hN): for P6bq in range(0, exwG): YKHO.get_pixel_rgb(P6bq, Ty9i, Z9rn) Z9rn[0] = YKHO.clamp(int(oyIN.round(ThLH[P6bq][Ty9i][0]))) Z9rn[1] = YKHO.clamp(int(oyIN.round(Th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, LNo8):\n return LNo8", "def Euvd(LNo8, filter):\n assert filter.shape[0] % 2 == 1\n assert filter.shape[1] % 2 == 1\n TVTK = filter.shape[1]\n H2v2 = filter.shape[0]\n TVTK = TVTK // 2\n H2v2 = H2v2 // 2\n if len(LNo8.shape) == 3:\n eger = oyIN.pad(LNo8[:, :, 0], (...
[ "0.7257953", "0.656563", "0.648719", "0.6431014", "0.6424853", "0.64170605", "0.64167213", "0.6410034", "0.64083076", "0.640688", "0.63957167", "0.6384636", "0.634334", "0.63096106", "0.62865704", "0.6283791", "0.6202182", "0.6179823", "0.61788726", "0.61695665", "0.6168231",...
0.6495839
2
copy filter result to image
def hyHz(Mkmy, Oa1e, Fg_i): return 0.299 * Mkmy + 0.587 * Oa1e + 0.114 * Fg_i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, LNo8):\n return LNo8", "def Euvd(LNo8, filter):\n assert filter.shape[0] % 2 == 1\n assert filter.shape[1] % 2 == 1\n TVTK = filter.shape[1]\n H2v2 = filter.shape[0]\n TVTK = TVTK // 2\n H2v2 = H2v2 // 2\n if len(LNo8.shape) == 3:\n eger = oyIN.pad(LNo8[:, :, 0], (...
[ "0.7257953", "0.656563", "0.6495839", "0.648719", "0.6431014", "0.6424853", "0.64170605", "0.64167213", "0.6410034", "0.64083076", "0.640688", "0.63957167", "0.6384636", "0.634334", "0.63096106", "0.62865704", "0.6283791", "0.6202182", "0.6179823", "0.61788726", "0.61695665",...
0.0
-1
Returns a randomly generated password
def Ywt8(): w5bg = C1SZ + BHGE + '!@#$%^&()' jTXt = ''.join((Acvy(w5bg) for YRbF in range(8))) return jTXt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ywt8():\n return GLL2(tuKI.randint(8, 16), 1, 1, 1)", "def ikbr():\n return ''.join((jxbx().choice(tcl1 + BHGE) for bGrB in range(8)))", "def BSw2():\n return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in range(8)))", "def NlX3():\n gLiZ = vIwR.ascii_uppercase + vIwR.as...
[ "0.90697944", "0.8888244", "0.87487507", "0.86742234", "0.86685133", "0.8651888", "0.86497045", "0.86403036", "0.86228937", "0.85914886", "0.8554351", "0.84007454", "0.8364419", "0.83543575", "0.82848406", "0.82549566", "0.8229575", "0.82177603", "0.8217467", "0.82142496", "0...
0.8928001
1
Builds headers for Sirius request, including JWT auth
def nIse(m5r4='application/json'): GikI = Hy7s.environ['ENVIRONMENT'] uIyX = Hy7s.environ['SESSION_DATA'] yTVD = DvJO.encode({'session-data': uIyX, 'iat': qcWV.datetime.utcnow(), 'exp': qcWV.datetime.utcnow() + qcWV.timedelta(seconds=3600)}, xshI(GikI), algorithm='HS256') return {'Content-Type': m5r4, '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zIKO(YKHO, gTi_, XkAi=False):\n MOPg = {}\n if YKHO.user_agent:\n MOPg['User-Agent'] = YKHO.user_agent\n if not XkAi:\n MOPg['Accept'] = 'application/json'\n MOPg['Authorization'] = 'Bearer {0}'.format(YKHO.access_token)\n MOPg['client-request-id'] = gTi_\n MOPg['return-client-r...
[ "0.8057256", "0.7828823", "0.7798738", "0.77396774", "0.7602176", "0.7548397", "0.75403434", "0.74538076", "0.7400731", "0.738613", "0.7295133", "0.72924984", "0.7274983", "0.7247937", "0.7225696", "0.72090685", "0.7147138", "0.70818454", "0.70335925", "0.7029687", "0.7013143...
0.7946151
1
Adds extra kwargs to a claimset class. The claimset must bne uninstantiated, as instantiating also instantiates the claims.
def uCzn(T_oC, B2fa): if isinstance(T_oC, w8bp): raise TypeError('Claimset has already been instantiated.') T_oC.extra_kwargs.update(B2fa) return T_oC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uCzn(YKHO, **B2fa):\n if not B2fa:\n return\n nZ09 = YKHO.kwargs\n if nZ09 is None:\n YKHO.kwargs = B2fa\n else:\n nZ09.update(B2fa)", "def fPRg(Emd4, **cooA):\n\n class ClassWithKwargs(Emd4):\n\n def FIMM(YKHO, *qIxc, **B2fa):\n B2fa.update(cooA)\n ...
[ "0.5995485", "0.5974973", "0.59358627", "0.5909121", "0.5905096", "0.5904111", "0.58810776", "0.5806387", "0.5798985", "0.5795281", "0.57397264", "0.5737605", "0.56756556", "0.5671254", "0.56644315", "0.5662857", "0.5656257", "0.5648308", "0.56388795", "0.5636702", "0.5636702...
0.87210554
0
Return a spacedelimited repr string for a table array.
def dOVJ(YKHO, tyNF, Qgxj='%-4.3f'): FUjE = '' for YRbF in range(0, tyNF.shape[0]): for r845 in range(0, tyNF.shape[1]): FUjE = FUjE + Qgxj % tyNF[YRbF, r845] + ' ' FUjE = FUjE + '\n' return FUjE
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C7HG(tyNF):\n NrWd = ''\n Ikh1 = [max((len(str(wEf2)) for wEf2 in iVRZ)) for iVRZ in zip(*tyNF)]\n for zFiD in tyNF:\n NrWd += '\\n'\n NrWd += ' '.join(('{0:<{1}}'.format(wEf2, Ikh1[YRbF]) for YRbF, wEf2 in enumerate(zFiD)))\n return NrWd", "def wHJl(YKHO):\n hlel = ''\n fo...
[ "0.7184407", "0.7135755", "0.7024089", "0.7020925", "0.69876397", "0.6928793", "0.69078225", "0.6893018", "0.68915683", "0.6883798", "0.68701684", "0.679026", "0.6775272", "0.67594135", "0.67051744", "0.66941637", "0.669374", "0.6690481", "0.6689336", "0.6678432", "0.6677903"...
0.76714045
0
Returns the LOGGER object
def S0MI(YKHO): return YKHO.__LOGGER
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2():\n return S0MI", "def bo34():\n return bo34", "def fZx2():\n return bo34", "def fZx2():\n return vzeF", "def bo34():\n return I45O", "def WmBn(YKHO):\n return YKHO.__logger", "def WmBn(YKHO):\n return YKHO._logger", "def fZx2(YKHO):\n pass", "def RKD7(YKHO):\n ...
[ "0.8647605", "0.8188174", "0.8076253", "0.80729264", "0.8022871", "0.79244757", "0.79048395", "0.7861574", "0.7858582", "0.78300685", "0.77931744", "0.7742705", "0.7742705", "0.76961815", "0.7662558", "0.76587623", "0.7642974", "0.7640346", "0.7603081", "0.7599122", "0.757843...
0.8556727
1
Return the MNIST data as a tuple containing the training data, the validation data, and the test data. The ``training_data`` is returned as a tuple with two entries. The first entry contains the actual training images. This is a numpy ndarray with 50,000 entries. Each entry is, in turn, a numpy ndarray with 784 values,...
def UlWi(): eHNT = lGU7.open('./mnist.pkl.gz', 'rb') bPNP, G91x, Zwka = rIin.load(eHNT, encoding='bytes') eHNT.close() return (bPNP, G91x, Zwka)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi():\n BVu8 = oyIN.asarray(CgcG('./MNIST_data/t10k-images.idx3-ubyte'), dtype='float32')\n PdIf = oyIN.asarray(Tuwg('./MNIST_data/t10k-labels.idx1-ubyte'), dtype='int64')\n O8y7 = oyIN.asarray(CgcG('./MNIST_data/train-images.idx3-ubyte'), dtype='float32')\n GUiw = oyIN.asarray(Tuwg('./MNIST_data...
[ "0.7394925", "0.73826116", "0.72805053", "0.71597946", "0.7084767", "0.6990694", "0.690976", "0.68204165", "0.68192494", "0.67893493", "0.67006224", "0.6696899", "0.66809136", "0.66729015", "0.6606744", "0.65765864", "0.6562627", "0.65522087", "0.65222585", "0.65210915", "0.6...
0.62776554
35
Return a tuple containing ``(training_data, validation_data, test_data)``. Based on ``load_data``, but the format is more convenient for use in our implementation of neural networks. In particular, ``training_data`` is a list containing 50,000 2tuples ``(x, y)``. ``x`` is a 784dimensional numpy.ndarray containing the i...
def algW(): NSsc, NHDr, fNuk = UlWi() GgE5 = [XTiz.reshape(WKvO, (784, 1)) for WKvO in NSsc[0]] lYXe = [GptX(LVAh) for LVAh in NSsc[1]] bPNP = zip(GgE5, lYXe) pvEG = [XTiz.reshape(WKvO, (784, 1)) for WKvO in NHDr[0]] G91x = zip(pvEG, NHDr[1]) PKOo = [XTiz.reshape(WKvO, (784, 1)) for WKvO in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi():\n BVu8 = oyIN.asarray(CgcG('./MNIST_data/t10k-images.idx3-ubyte'), dtype='float32')\n PdIf = oyIN.asarray(Tuwg('./MNIST_data/t10k-labels.idx1-ubyte'), dtype='int64')\n O8y7 = oyIN.asarray(CgcG('./MNIST_data/train-images.idx3-ubyte'), dtype='float32')\n GUiw = oyIN.asarray(Tuwg('./MNIST_data...
[ "0.71881485", "0.71235216", "0.70496583", "0.6982123", "0.6952076", "0.6930577", "0.6930577", "0.6930577", "0.69024515", "0.68298644", "0.6817031", "0.6720196", "0.66801685", "0.666892", "0.66521364", "0.6646074", "0.6629762", "0.6629677", "0.66127735", "0.6583089", "0.658242...
0.65202594
27
Authorize devices using HTTP basic auth.
def L8yJ(QePW): MkeE = QePW.headers.get('Authorization') if MkeE is None: return None try: NtEF, jTXt = cpeP.decode(MkeE) except cpeP.DecodeError: return None try: NtEF = int(NtEF) except ValueError: return None NCls = GGod() try: w2IS = C3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def auth_authorization_basic(QePW: Request, nPrm: str) -> dgrc:\n cGgQ = QePW.client.host\n QTDL = g2fP(T_Uj.decode(Pqze(nPrm), 'base64'))\n if ':' not in QTDL:\n bo34.error('[Authorization|Basic][%s] Denied: Malformed data', cGgQ)\n return dgrc({'status': False}, status_code=401)\n ...
[ "0.70459086", "0.6862527", "0.6857386", "0.6836085", "0.6765298", "0.6721352", "0.66890955", "0.6688013", "0.66670394", "0.66422606", "0.65901566", "0.6571437", "0.65418345", "0.65258497", "0.64801204", "0.6460454", "0.6425247", "0.64036113", "0.6384559", "0.6379164", "0.6371...
0.0
-1
Normalize spectrum by dividing the mean value of continnum at lambda[left,right]
def NkkI(yYC7, GO7k, Pyvv): yfZ3 = 1420 EF8B = 1480 X_ID = GO7k / (yYC7.z_qso + 1) assert yfZ3 <= EF8B, 'No Lymann-alpha forest, Please check this spectra: %i' % yYC7.id Gymh = (X_ID >= yfZ3) & (X_ID <= EF8B) yYC7.flux = yYC7.flux / oyIN.median(Pyvv[Gymh]) yYC7.error = yYC7.error / oyIN.medi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(ezWE):\n return ezWE / oyIN.mean(ezWE)", "def auPM(Ebru, xI_i=HRo0):\n A3Vt, bGrB = d4q7(Ebru)\n return xI_i(A3Vt.y * A3Vt.x, A3Vt.x) / xI_i(A3Vt.y, A3Vt.x)", "def NkkI(VXjJ, JBMS, M1Jx):\n return (VXjJ - JBMS) / M1Jx", "def NkkI(JBMS, ee6l, BWXx):\n return (BWXx - JBMS) / ee6l", "d...
[ "0.6611003", "0.62147313", "0.6180239", "0.61181504", "0.6088519", "0.6048936", "0.6028757", "0.6015922", "0.6012307", "0.6002583", "0.59839106", "0.598336", "0.5957675", "0.59472966", "0.5947013", "0.59448713", "0.59438646", "0.5922344", "0.590941", "0.58902246", "0.58810973...
0.0
-1
remove html tags from text
def aAsi(l5Ny): Z9JV = rKuS(l5Ny, 'html.parser') hvnH = Z9JV.get_text(separator=' ') return hvnH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JZhs(l5Ny):\n x0SS = ZbWC.compile('<.*?>')\n return ZbWC.sub(x0SS, '', l5Ny)", "def DVW7(l5Ny):\n RBfQ = ZbWC.compile('<.*?>')\n return RBfQ.sub('', l5Ny)", "def JZhs(l5Ny):\n import re\n x0SS = re.compile('<.*?>')\n return re.sub(x0SS, ' ', l5Ny)", "def DVW7(l5Ny):\n RBfQ = ZbWC....
[ "0.88434213", "0.8841063", "0.8700331", "0.8673619", "0.86249757", "0.86249757", "0.857366", "0.85637176", "0.8546522", "0.8546522", "0.8546522", "0.8546522", "0.8546522", "0.8546522", "0.8545329", "0.8544507", "0.8529564", "0.8529564", "0.8529564", "0.8528296", "0.84339845",...
0.8253473
25
Returns `True` if the given object is iterable.
def kUz6(YEnM): try: iter(YEnM) return True except TypeError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfZ5(YEnM):\n return isinstance(YEnM, iu5r)", "def GfZ5(YEnM):\n try:\n iter(YEnM)\n return True\n except TypeError:\n return False", "def GfZ5(YEnM):\n try:\n iter(YEnM)\n except TypeError:\n return False\n else:\n return True", "def GfZ5(YEnM:...
[ "0.8797726", "0.87648815", "0.87390345", "0.8689545", "0.8661109", "0.86558867", "0.85206294", "0.85095525", "0.85036176", "0.84912825", "0.8464518", "0.8419009", "0.8398854", "0.83753604", "0.83733886", "0.8360916", "0.8360916", "0.83005893", "0.82713884", "0.825852", "0.824...
0.86490256
6
The size of the object, as calculated from its shape.
def zNig(YKHO): zNig = 1 for lWrn in YKHO.shape: zNig *= lWrn return zNig
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n return YKHO.get_size(YKHO.shape)", "def Usv_(YKHO) -> int:\n return YKHO.observation['obj_size']", "def zNig(YKHO):\n return YKHO._Square__size", "def zNig(YKHO):\n return YKHO._Square__size", "def zNig(YKHO):\n return YKHO._Square__size", "def zNig(YKHO):\n return bWe...
[ "0.85100967", "0.8359381", "0.82880616", "0.82880616", "0.826073", "0.8159279", "0.8087548", "0.80655795", "0.8052729", "0.80230016", "0.8011454", "0.79974896", "0.7981372", "0.7981372", "0.7981372", "0.7981372", "0.7981372", "0.7981372", "0.7981372", "0.7981372", "0.7981372"...
0.8186135
5
Return an instance containing copies of the internal data.
def jth9(YKHO, *qIxc, **B2fa): return YKHO._apply('copy', *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return YKHO.__class__(YKHO.data)", "def jth9(YKHO):\n return YKHO.__class__(YKHO.data.copy(), YKHO.P)", "def AS9H(YKHO):\n nPrm = D8mT()\n nPrm.dict['_data'] = YKHO.dict\n return nPrm", "def jth9(YKHO):\n return YKHO.__class__(YKHO._data.copy(), YKHO._sensitive.copy())", ...
[ "0.8481035", "0.8460136", "0.8385746", "0.81744087", "0.8009488", "0.79869664", "0.7975594", "0.79187834", "0.79168016", "0.7885973", "0.78803664", "0.786449", "0.7852648", "0.7821192", "0.7821192", "0.779351", "0.779351", "0.7789598", "0.77854896", "0.77611697", "0.7758216",...
0.0
-1
Return an instance with the array collapsed into one dimension.
def SgOx(YKHO, *qIxc, **B2fa): return YKHO._apply('ravel', *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qnkS(YKHO):\n return YKHO.reshape((-1, 4))", "def cWjI(YKHO):\n return YKHO.reshape(-1, *YKHO.shape[-2:])", "def Xwve(qw7D):\n if isinstance(qw7D[0], list):\n Fg_i = []\n for YRbF in qw7D:\n Fg_i.append(SZFh.collapse(YRbF))\n return Fg_i\n else:\n return S...
[ "0.668273", "0.6641978", "0.6406313", "0.63943905", "0.63669866", "0.63661325", "0.631386", "0.628927", "0.62791854", "0.6212336", "0.62120324", "0.6178441", "0.61609584", "0.61291724", "0.6103599", "0.60894406", "0.60839766", "0.605543", "0.6036757", "0.60133976", "0.5970365...
0.0
-1
Return a copy with the array collapsed into one dimension.
def PWgb(YKHO, *qIxc, **B2fa): return YKHO._apply('flatten', *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q3V_(ezWE):\n ezWE = oyIN.moveaxis(ezWE, 0, -1)\n ezWE = oyIN.squeeze(ezWE)\n return ezWE", "def qnkS(YKHO):\n return YKHO.reshape((-1, 4))", "def cWjI(YKHO):\n return YKHO.reshape(-1, *YKHO.shape[-2:])", "def ZQcM(YKHO, nPrm):\n return [YRbF.reshape(-1, nPrm[0].shape[-1]) for YRbF in n...
[ "0.69914037", "0.69525737", "0.6898481", "0.68719643", "0.6832185", "0.670968", "0.66950095", "0.66219807", "0.65216416", "0.6450052", "0.63075393", "0.6285592", "0.62729925", "0.624273", "0.62288105", "0.6228268", "0.6223613", "0.6219844", "0.618278", "0.6174802", "0.6174713...
0.0
-1
Return an instance with the given axes interchanged.
def kp_e(YKHO, *qIxc, **B2fa): return YKHO._apply('swapaxes', *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rTkk(Emd4, WKvO=1, LVAh=1, epBp=1, **B2fa) -> 'Tensor':\n return Emd4([[WKvO * WKvO, 0, 0], [0, LVAh * LVAh, 0], [0, 0, epBp * epBp]], **B2fa)", "def RLCl(Emd4, MPlV, bLm4):\n MPlV = kY70(MPlV).unit\n bLm4 = oyIN.array(bLm4)\n ouix = bLm4[..., oyIN.newaxis] * MPlV.data\n return Emd4(ouix)", ...
[ "0.6403849", "0.59648466", "0.5856494", "0.5856494", "0.57895726", "0.56682265", "0.56614655", "0.56610626", "0.5641077", "0.5611459", "0.5510401", "0.55076146", "0.5496058", "0.54033846", "0.5378034", "0.53603166", "0.53408986", "0.5332105", "0.5304557", "0.5286271", "0.5277...
0.58187854
4
Return a new instance formed from the elements at the given indices.
def _iMd(YKHO, _0VL, jDK_=None, Tuqy='raise'): return YKHO._apply('take', _0VL, axis=jDK_, mode=Tuqy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xvIg(YKHO, _0VL):\n BdN0 = YKHO.empty_copy()\n if YKHO.coordinates is None:\n return BdN0\n if YKHO.singular:\n raise KeyError('Cannot retrieve indices for singular coordinates.')\n if isinstance(_0VL, oyIN.ndarray) and _0VL.shape == ():\n _0VL = int(_0VL)\n W0Eb = YKHO.coor...
[ "0.6623706", "0.6601867", "0.65158105", "0.6421807", "0.64107925", "0.6379422", "0.6350955", "0.6312571", "0.6222501", "0.62179554", "0.61516374", "0.6139093", "0.6123712", "0.60741806", "0.6058446", "0.6047752", "0.59824723", "0.5963096", "0.5962974", "0.59261936", "0.592086...
0.0
-1
Determines whether two or more Numpy arrays can be broadcast with each other based on their shape tuple alone.
def KzLx(*N8OZ): if len(N8OZ) == 0: return () elif len(N8OZ) == 1: return N8OZ[0] FhsJ = (reversed(ROpF) for ROpF in N8OZ) RfQ_ = [] for Htse in igF0(*FhsJ, fillvalue=1): kvoN = 1 c2kM = None for or8S, tpio in enumerate(Htse): if tpio == 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzrE(*m3xB):\n N8OZ = (getattr(_odb, 'shape', _odb) for _odb in m3xB)\n for T6S7 in zip(*map(reversed, N8OZ)):\n RsfQ = max(T6S7)\n if any((Ty9i not in (1, RsfQ) for Ty9i in T6S7)):\n return False\n return True", "def KLua(uze5: Union[np.ndarray, List], IQuB: Union[np.ndarra...
[ "0.8211744", "0.7995123", "0.78863627", "0.78863627", "0.7659712", "0.72813755", "0.7117924", "0.7033263", "0.7020065", "0.69516593", "0.679031", "0.66787905", "0.6631318", "0.65910065", "0.65662575", "0.65372366", "0.6456559", "0.64518756", "0.6420331", "0.6399127", "0.63796...
0.69293356
10
returns an inverted dictionary with keys and values swapped.
def NVP6(dict, Lj0k=False): dKc3 = {} if Lj0k: for G1Hx, Ty9i in dict.iteritems(): dKc3[Ty9i] = G1Hx else: for G1Hx, Ty9i in dict.iteritems(): dKc3.setdefault(Ty9i, []).append(G1Hx) return dKc3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tsq2(Csk6):\n Rn8w = {}\n for H5ew, wEf2 in Csk6.items():\n if not Rn8w.has_key(wEf2):\n Rn8w[wEf2] = []\n Rn8w[wEf2].append(H5ew)\n return Rn8w", "def T1r2(Csk6):\n return {Ty9i: G1Hx for G1Hx, Ty9i in Csk6.items()}", "def GOZd(YKHO):\n return {Ty9i: G1Hx for G1Hx, ...
[ "0.79870456", "0.7804901", "0.7657102", "0.76438814", "0.76086944", "0.7506257", "0.749919", "0.7455202", "0.7440081", "0.7433228", "0.74298006", "0.74165547", "0.74162996", "0.73741657", "0.73212326", "0.72993875", "0.7280037", "0.72760975", "0.71638453", "0.7149143", "0.713...
0.7565402
5
Returns a list of primes < n
def rPed(exwG): KwQv = [True] * exwG for YRbF in range(3, int(exwG ** 0.5) + 1, 2): if KwQv[YRbF]: KwQv[YRbF * YRbF::2 * YRbF] = [False] * ((exwG - YRbF * YRbF - 1) // (2 * YRbF) + 1) V6IE[2] = True for YRbF in range(3, exwG, 2): if KwQv[YRbF]: V6IE[YRbF] = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7wK(exwG):\n return [XP5J for XP5J in rPed(exwG)]", "def Nwax(exwG):\n if exwG < 3:\n return []\n k0lF = [True] * exwG\n k0lF[0], k0lF[1] = (False, False)\n for YRbF in range(2, int(exwG ** 0.5) + 1):\n if k0lF[YRbF]:\n r845 = YRbF ** 2\n while r845 < exwG:...
[ "0.86095405", "0.8466241", "0.84047896", "0.83796906", "0.83634984", "0.83148634", "0.8314648", "0.827032", "0.82659215", "0.8210297", "0.819209", "0.8167155", "0.8148454", "0.8147583", "0.81422484", "0.81272244", "0.8117192", "0.8104368", "0.80843806", "0.80402195", "0.80383...
0.75018275
88
Check whether a table is available in the rerun.
def rFPB(YKHO, tyNF): return tyNF.lower().strip() in YKHO.table_list
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PJaC(YKHO):\n Ylbp = VoXU('GET', YKHO.taburl, None)\n return True if Ylbp.status_code == 200 else False", "def cSUO(YKHO, tyNF):\n return YKHO.count('sqlite_master', f\"WHERE type='table' AND name='{tyNF}'\") > 0", "def cSUO(YKHO, tyNF):\n return YKHO.count('sqlite_master', \"WHERE type='table'...
[ "0.79483587", "0.77119774", "0.7647096", "0.7551393", "0.7436485", "0.7433578", "0.7430553", "0.7426105", "0.7425884", "0.73914826", "0.7322599", "0.7285026", "0.7269687", "0.72670484", "0.72434354", "0.7216872", "0.7214277", "0.7206103", "0.7190503", "0.7159226", "0.71423393...
0.70844644
28
Initialize the parameters for the multilayer perceptron
def FIMM(YKHO, xlLU, input, Ya2q, V06R, _LFN): YKHO.hiddenLayer = GFEb(rng=xlLU, input=input, n_in=Ya2q, n_out=V06R, activation=Kt_s.tanh) YKHO.logReressionLayer = T8WO(input=YKHO.hiddenLayer.output, n_in=V06R, n_out=_LFN) YKHO.L1 = abs(YKHO.hiddenLayer.W).sum() + abs(YKHO.logReressionLayer.W).sum() YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K55i(YKHO):\n YKHO.params = {}\n aPd6 = len(YKHO.layer_dims)\n x4xj = 0.1\n for vC9B in range(1, aPd6):\n MY1T = YKHO.layer_dims[vC9B - 1]\n Fmaf = YKHO.layer_dims[vC9B]\n YKHO.params['W%d' % vC9B] = oyIN.random.randn(MY1T, Fmaf) * x4xj\n assert YKHO.params['W%d' % vC9B]...
[ "0.7563101", "0.74202055", "0.7398131", "0.72895753", "0.7242624", "0.7229054", "0.7199435", "0.7182269", "0.7100938", "0.7088025", "0.70841914", "0.7071097", "0.7049927", "0.70496297", "0.7013583", "0.7010965", "0.6990473", "0.69857866", "0.6983007", "0.6979044", "0.6926819"...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Gets the Collector expression, which is a stringified YAML Path.
def lsX7(YKHO) -> str: return YKHO._expression
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n return IPme.ExtractPath(YKHO).to_expr()", "def nE9f(YKHO, *qIxc):\n return J8uC.SBValue_GetExpressionPath(YKHO, *qIxc)", "def aA0c(YKHO) -> str:\n return qe4Y.get(YKHO, 'expression_string')", "def lsX7(YKHO) -> str:\n return YKHO._values.get('expression')", "def zAg0(YKHO):\n ...
[ "0.57529074", "0.5135376", "0.50816435", "0.49930587", "0.49135518", "0.49059618", "0.48902404", "0.4817507", "0.48163068", "0.47614723", "0.47614723", "0.47579926", "0.47503698", "0.47463128", "0.47463128", "0.47463128", "0.47463128", "0.47463128", "0.47463128", "0.47463128", ...
0.4929561
4
Wrapper function to convert unwrapped interferograms into geotiffs for all data types
def b8V_(): e2h5 = 'Usage: gamma.py <config file>' if len(HwRy.argv) == 1 or HwRy.argv[1] == '-h' or HwRy.argv[1] == '--help': print(e2h5) return sEP6 = HwRy.argv[1] ql6C.configuration.LuigiConfigParser.add_config_path(jYNj(sEP6)) ql6C.build([Gfvt()], local_scheduler=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F8aV(IznC, nPrm, fs9Q, O6Ah, yDqo):\n jHsn = nPrm.shape[1]\n pvd3 = nPrm.shape[0]\n BQGg, bYzl, h3cg, Z3uP = [O6Ah[0], O6Ah[1], fs9Q[0], fs9Q[1]]\n Jw7X = (bYzl - BQGg) / float(jHsn)\n eUWA = (Z3uP - h3cg) / float(pvd3)\n aopH = (BQGg, Jw7X, 0, Z3uP, 0, -eUWA)\n zr3f = MDcw.GetDriverByName...
[ "0.59546113", "0.57738936", "0.5430682", "0.5374629", "0.5351922", "0.53108865", "0.5293055", "0.52784026", "0.5273089", "0.52599007", "0.5248897", "0.5239542", "0.523868", "0.5229502", "0.5201049", "0.5195847", "0.5191956", "0.5183354", "0.51821506", "0.5179122", "0.5174496"...
0.0
-1
Function that computes the gradient of the sigmoid function evaluated at z
def c3pE(epBp): Oa1e = 1 / (1 + oyIN.exp(-epBp)) return Oa1e * (1 - Oa1e)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c3pE(epBp):\n return m1Hg(epBp) * (1 - m1Hg(epBp))", "def l3J4(epBp):\n return oyIN.multiply(m1Hg(epBp), 1 - m1Hg(epBp))", "def l5cp(epBp):\n return m1Hg(epBp) * (1 - m1Hg(epBp))", "def l5cp(epBp):\n return m1Hg(epBp) * (1 - m1Hg(epBp))", "def LSdq(YKHO, epBp):\n _sef = YKHO._sigmoid(epB...
[ "0.91730285", "0.9106099", "0.91052556", "0.9087464", "0.8963413", "0.8619245", "0.8415351", "0.83944464", "0.8365458", "0.80396456", "0.7920522", "0.78174573", "0.780975", "0.77877235", "0.7787482", "0.7778428", "0.77779406", "0.7762871", "0.77613986", "0.7758919", "0.773784...
0.9098499
3
Randomly initialize the weights of a layer with L_in incoming connections and L_out outgoing connections Note that W should be set to a matrix of size(L_out, 1 + L_in) as the column row of W handles the "bias" terms
def rIqw(uoUC, qbmY): WKE7 = 0.12 XcU5 = oyIN.random.rand(qbmY, 1 + uoUC) * (2 * WKE7) - WKE7 return XcU5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOsd(uoUC, qbmY):\n WKE7 = oyIN.sqrt(6 / (uoUC + qbmY))\n XcU5 = oyIN.random.rand(qbmY, 1 + uoUC) * 2 * WKE7 - WKE7\n return XcU5", "def sTi3(YKHO):\n for YRbF in range(YKHO.L - 1):\n mmRm = YKHO.init\n zNig = (YKHO.layer[YRbF], YKHO.layer[YRbF + 1])\n YKHO.weights[YRbF] = oy...
[ "0.8244121", "0.7468195", "0.74574906", "0.73735917", "0.73735917", "0.7370066", "0.7370066", "0.7370066", "0.7364649", "0.7350386", "0.7350386", "0.7350386", "0.7350386", "0.7240326", "0.72238916", "0.71384513", "0.71348065", "0.7041838", "0.7023061", "0.70218384", "0.700673...
0.848078
0
Returns a wavefunction representing quantum state produced by a circuit
def G9ww(YKHO, DPNn: Circuit, **B2fa) -> SbS4: YKHO.number_of_circuits_run += 1 YKHO.number_of_jobs_run += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AK7(YKHO, Mkmy):\n try:\n return YKHO.cached_wavefunction(Mkmy)\n except AttributeError:\n YKHO.cached_wavefunction = YKHO.basis.gen_wavefunction(YKHO.eigenvector, YKHO.quantum_numbers)\n return YKHO.cached_wavefunction(Mkmy)", "def qJa9(eHNT):\n lNm8 = 299792458 / eHNT\n re...
[ "0.6637792", "0.64440674", "0.6407452", "0.63732636", "0.6358455", "0.6349079", "0.6330757", "0.63072675", "0.6215675", "0.62004", "0.61070627", "0.6088352", "0.59596753", "0.59303045", "0.5901308", "0.5889297", "0.5889297", "0.584539", "0.5824672", "0.58069277", "0.58032817"...
0.6055196
12
This function build a sql condition string (those used in the 'WHERE' clause) based on given condition
def o6y_(YKHO): XEri = YKHO.condition if XEri: if len(XEri.keys()) > 1: aJtN = [] for H5ew in XEri.keys(): aJtN.append({H5ew: XEri[H5ew]}) return fi2O({'$and': aJtN}).to_sql() else: xoTz, _s6a = XEri.items()[0] if xoTz i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mPZN(QePW):\n woks = ''\n if QePW.args.get('component'):\n woks += \"component='%s' AND \" % QePW.args.get('component')\n if QePW.args.get('owner'):\n woks += \"owner='%s' AND \" % QePW.args.get('owner')\n if QePW.args.get('start_datetime'):\n woks += \"ts>='%s' AND \" % QePW.a...
[ "0.76680934", "0.7661682", "0.74105996", "0.73973954", "0.7328892", "0.7328557", "0.72438735", "0.7070938", "0.7026287", "0.6969581", "0.69598716", "0.6909162", "0.6866277", "0.685502", "0.6801061", "0.67514807", "0.6737092", "0.67081755", "0.67070836", "0.66970414", "0.66773...
0.679153
15
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(m4kf, YKHO).__init__(*qIxc, **c_sp) if YKHO.siloInputDoor is None: YKHO.siloInputDoor = False if YKHO.siloConcreteLevel1 is None: YKHO.siloConcreteLevel1 = 0 if YKHO.siloConcreteLevel2 is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.81645876", "0.77191854", "0.77191854", "0.7651396", "0.75726527", "0.75433314", "0.74847454", "0.7470747", "0.74576455", "0.74444014", "0.744411", "0.74333006", "0.7415277", "0.7408323", "0.7391652", "0.7374395", "0.73626137", "0.7324286", "0.73230547", "0.73230547", "0.73...
0.0
-1
Selects the default location of the lab when location is not provided.
def qtpS(yqOM, _63S): if _63S.location is None: KfDo = OZlc(yqOM, None).labs ogYM = KfDo.get(_63S.resource_group_name, _63S.lab_name) _63S.location = ogYM.location
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sy0r(YKHO, vGaq):\n return None", "def Sy0r(YKHO, vGaq):\n return tuKI.choice([yABQ, Qw1d])", "def Emsn(YKHO):\n Rci7 = YKHO.LOCATION_CLASS()\n for jDK_ in YKHO.axisList:\n Rci7[jDK_.tag] = jDK_.default\n return Rci7", "def bSBy(Emd4):\n return NotImplemented", "def MtGr():\n ...
[ "0.73725754", "0.70449424", "0.69691175", "0.6703979", "0.66057307", "0.6401747", "0.63994795", "0.62874866", "0.6147343", "0.6111733", "0.60196686", "0.589743", "0.5890319", "0.5868862", "0.5788304", "0.5745062", "0.5745062", "0.5729899", "0.5729899", "0.5729899", "0.5729899...
0.6322361
7
Validates expiration date if provided.
def OqKr(_63S): if _63S.expiration_date: import datetime import dateutil.parser if datetime.datetime.utcnow() >= d5IO.parser.parse(_63S.expiration_date): raise SrG1("Expiration date '{}' must be in future.".format(_63S.expiration_date))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aabf(ad72):\n if ad72 is None:\n return\n if not isinstance(ad72, qcWV.datetime):\n raise UAju.InvalidInputError('Lease expiration date must be datetime.datetime')\n WbTE = ad72 - BfDw.utcnow()\n if WbTE <= qcWV.timedelta(0):\n raise UAju.InvalidInputError('Lease expiration dat...
[ "0.79264", "0.79081464", "0.78268665", "0.72553563", "0.7233454", "0.70654905", "0.7049902", "0.6976707", "0.68791187", "0.6865959", "0.68605894", "0.6827386", "0.6827386", "0.6827386", "0.68042564", "0.68042564", "0.65403146", "0.65403146", "0.65403146", "0.65403146", "0.654...
0.82649016
0
Last measured temperature (Celsius)
def ovGo(YKHO): return YKHO.__last_temperature
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ovGo(YKHO):\n YKHO._readdata()\n return YKHO._temp", "def ovGo(YKHO):\n if YKHO._last_read_temp is None or ITS7.monotonic() - YKHO._last_read_time >= aqvu:\n assert YKHO._convert_temp()\n YKHO._last_read_temp = YKHO._read_temp()\n return YKHO._last_read_temp", "def ovGo(YKHO):\n ...
[ "0.7819991", "0.7709928", "0.7668665", "0.76503855", "0.7647155", "0.76108855", "0.76013404", "0.75933164", "0.7573154", "0.75448775", "0.75448775", "0.7540184", "0.7529353", "0.7519472", "0.7516743", "0.7516686", "0.7501132", "0.7488892", "0.7487179", "0.74775356", "0.745871...
0.8422492
0
Normalizes a list/tensor into a list. If a tensor is passed, we return a list of size 1 containing the tensor. Arguments
def _Jar(WKvO): if isinstance(WKvO, (list, tuple)): return WKvO return [WKvO]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e8Jq(aPd6):\n if hasattr(aPd6, 'shape'):\n aPd6 = [aPd6]\n else:\n aPd6 = list(aPd6)\n return aPd6", "def QZoP(Emd4, vC9B: List[float]) -> x1iM[float]:\n if not isinstance(vC9B, iu5r):\n raise Exception('Can only work with iterables')\n if len(vC9B) == 1:\n return [...
[ "0.7179267", "0.70091826", "0.6726387", "0.66850847", "0.6647706", "0.66330916", "0.659716", "0.65318125", "0.6519983", "0.6504428", "0.6446762", "0.642736", "0.64232117", "0.63939273", "0.6377813", "0.635543", "0.6339217", "0.633001", "0.62936324", "0.6283493", "0.6276982", ...
0.5959909
57
Make a SQLAlchemy database engine object
def FEgn(GPtr, CBIr, jTXt): return i48E.create_engine('{}://{}:{}@{}/{}'.format(GPtr['DB_DIALECT'], CBIr, jTXt, GPtr['DB_HOST'], GPtr['DB_NAME']))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHpk() -> RyuO.engine.Engine:\n return RyuO.create_engine('sqlite://')", "def NUw6():\n return eHpk", "def WSwy():\n global engine\n if eHpk is None:\n yIVm.bind = eHpk = _9Kn('sqlalchemy')", "def PWOV():\n bD7m = 'postgresql://{user}:{passwd}@{host}:{port}/{db}'.format(user=Hy7s.en...
[ "0.8366631", "0.8328713", "0.81789804", "0.80063903", "0.7970369", "0.7959887", "0.7949585", "0.7910606", "0.78922546", "0.7877524", "0.7871874", "0.7855907", "0.7838048", "0.7794436", "0.7785253", "0.7757321", "0.7748363", "0.77173424", "0.77173424", "0.77173424", "0.7715907...
0.80686486
3
Checks whether user has access to an analysis
def YG87(CBIr, d4r9): if not d4r9.has_access(CBIr): raise VrQA(403, 'Analysis access denied to %s' % d4r9.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PVSl():\n return CmGq.User().IsAllowed('Rerun Operations STP', 'Application')", "def JL1u(YKHO):\n if Mi51.has_permission('access', YKHO, YKHO.request):\n return True\n else:\n return False", "def grfv(YKHO):\n return YKHO._user_has_access()", "def grfv(YKHO):\n return YKHO._...
[ "0.74878913", "0.74547505", "0.735906", "0.735906", "0.7308157", "0.7204107", "0.70700336", "0.7038748", "0.70245224", "0.6890254", "0.68868405", "0.6886652", "0.6878224", "0.6864131", "0.6843477", "0.68414456", "0.68407094", "0.6813447", "0.68099576", "0.6805671", "0.6798131...
0.8129777
0
Update the access token for the connection
def _JSP(YKHO, eOtH): try: OPDH = yXnH(eOtH, expected_type='access') bGrB = OXvc(OPDH) YKHO.access_token = OPDH YKHO.write_message({'name': 'TOKEN_UPDATED'}) except (H2Wn, kH6N): YKHO.access_token = None YKHO.request_authorization('Access token update message cont...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aP2e(YKHO):\n eOtH = YKHO.__get_token()\n YKHO.vendors.change_access_token(eOtH)\n YKHO.accounts.change_access_token(eOtH)\n YKHO.purchase_invoices.change_access_token(eOtH)\n YKHO.purchase_invoice_line_items.change_access_token(eOtH)\n YKHO.attachments.change_access_token(eOtH)", "def B5TR...
[ "0.81563604", "0.7858754", "0.76182437", "0.7582229", "0.7574196", "0.7535312", "0.7500664", "0.7417712", "0.7417712", "0.73364204", "0.7334149", "0.73027647", "0.73024565", "0.7233174", "0.71749794", "0.7117947", "0.70943195", "0.7088499", "0.7087644", "0.70557714", "0.70552...
0.76773804
2
Initialize a `DiscreteFactor` class. Defined above, we have the following mapping from variable
def FIMM(YKHO, kc1W, SF_z, hkxX, MsVA={}): if isinstance(kc1W, str): raise TypeError('Variables: Expected type list or array like, got string') if GPtr.BACKEND == 'numpy': hkxX = oyIN.array(hkxX, dtype=GPtr.get_dtype()) else: hkxX = ht2j.Tensor(hkxX).type(GPtr.get_dtype()).to(GPtr.ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Llmz):\n YKHO.factors = Llmz", "def PtCT(jQ3Z):\n kc1W = list(jQ3Z.index.names)\n MsVA = {SRYB: list(jQ3Z.index.unique(SRYB)) for SRYB in kc1W}\n SF_z = [len(MsVA[SRYB]) for SRYB in kc1W]\n return MaKo(variables=kc1W, cardinality=SF_z, values=jQ3Z.values, state_names=MsVA)", "def ...
[ "0.7189738", "0.64703315", "0.6386854", "0.6345216", "0.63284093", "0.62253726", "0.6210344", "0.6174937", "0.613254", "0.6122294", "0.6112175", "0.60884285", "0.6078888", "0.6074078", "0.6049757", "0.59278023", "0.5927695", "0.58987087", "0.58848155", "0.58728504", "0.582235...
0.6847712
1
Returns the cardinality/no.of states of each variable in `variables`.
def L9sd(YKHO, kc1W): if isinstance(kc1W, str): raise TypeError('variables: Expected type list or array-like, got type str') if not all([SRYB in YKHO.variables for SRYB in kc1W]): raise ValueError('Variable not in scope') return {SRYB: YKHO.cardinality[YKHO.variables.index(SRYB)] for SRYB in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXzy(YKHO):\n if YKHO.nvar == None:\n YKHO.nvar = YKHO.ndim\n return YKHO.nvar", "def U0wC(Es0b, ACnF):\n if not ACnF:\n sovE = nPrm.loc[:, Es0b].value_counts()\n return sovE.reindex(MsVA[Es0b]).fillna(0).to_frame()\n else:\n xCRP = [MsVA[_AKB] for _AKB in ACnF]\n ...
[ "0.6529866", "0.62349904", "0.61751485", "0.6127051", "0.60994434", "0.60483634", "0.6038688", "0.6030299", "0.6021972", "0.60165006", "0.5951786", "0.5947922", "0.5934372", "0.5907059", "0.5901606", "0.58985335", "0.58983976", "0.58779925", "0.58777183", "0.5848885", "0.5847...
0.7469612
0
Returns the identity factor.
def b30y(YKHO): return MaKo(variables=YKHO.variables, cardinality=YKHO.cardinality, values=prPh.ones(prPh.size(YKHO.values)), state_names=YKHO.state_names)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _E99(Emd4):\n return Emd4.scale(1, 1)", "def wJvD(WKvO):\n return WKvO", "def vVt1(cqOL):\n _E99 = oyIN.zeros([702])\n d6pt = V_9M.index(cqOL)\n print(d6pt)\n _E99[int(d6pt) - 1] = float(1)\n return _E99", "def _E99(YKHO):\n return YKHO.__identity", "def _E99(YKHO, WKvO: int) ->...
[ "0.6802177", "0.65993583", "0.6544089", "0.6398795", "0.63735425", "0.63588744", "0.63588744", "0.63372487", "0.6294357", "0.62482613", "0.6232428", "0.6232428", "0.6232428", "0.6232428", "0.6232428", "0.6232428", "0.6232428", "0.6232428", "0.6232428", "0.6232428", "0.6232428...
0.76103216
0
Normalizes the values of factor so that they sum to 1.
def NkkI(YKHO, LpaZ=True): rVnq = YKHO if LpaZ else YKHO.copy() rVnq.values = rVnq.values / rVnq.values.sum() if not LpaZ: return rVnq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO):\n YKHO.scale(1 / YKHO.sum())", "def NkkI(YKHO):\n CkYf = YKHO.norm()\n YKHO.values /= CkYf", "def KF2g(YKHO):\n i9Rn = 0.0\n for YRbF in range(len(YKHO.val)):\n i9Rn += YKHO.val[YRbF]\n for YRbF in range(len(YKHO.val)):\n if i9Rn == 0:\n YKHO.val[YRbF]...
[ "0.76248676", "0.7412916", "0.7411175", "0.70988595", "0.7086333", "0.7072981", "0.7060266", "0.70481086", "0.676981", "0.6752779", "0.67470616", "0.67413807", "0.6728315", "0.6702515", "0.6681826", "0.66728884", "0.66574085", "0.66568464", "0.6653653", "0.6598577", "0.658824...
0.0
-1
DiscreteFactor sum with `phi1`.
def sum(YKHO, upem, LpaZ=True): rVnq = YKHO if LpaZ else YKHO.copy() if isinstance(upem, (int, float)): rVnq.values += upem else: upem = upem.copy() bc3d = set(upem.variables) - set(rVnq.variables) if bc3d: pKvL = [slice(None)] * len(rVnq.variables) pK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ytbc(cYOn, H3Ax, *Elif):\n if isinstance(H3Ax, FgU1):\n pass\n elif isinstance(H3Ax, m4lX):\n qIxc = tuple(H3Ax) + Elif\n return Ytbc(cYOn, *qIxc)\n B_oB = (cYOn, H3Ax) + Elif\n sdCG = B_oB[0]\n J3uN = B_oB[1:]\n if not isinstance(sdCG, FgU1):\n return NotImplement...
[ "0.6157055", "0.5875803", "0.5796978", "0.5791374", "0.57434297", "0.5717147", "0.5694561", "0.5664613", "0.5659779", "0.5567659", "0.55575603", "0.5533343", "0.5507893", "0.54509", "0.54000866", "0.5398271", "0.5393485", "0.53806925", "0.5372831", "0.53636384", "0.5334172", ...
0.6534527
0
DiscreteFactor division by `phi1`.
def dShr(YKHO, upem, LpaZ=True): rVnq = YKHO if LpaZ else YKHO.copy() upem = upem.copy() if set(upem.variables) - set(rVnq.variables): raise ValueError('Scope of divisor should be a subset of dividend') bc3d = set(rVnq.variables) - set(upem.variables) if bc3d: pKvL = [slice(None)] * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XK3c(upem, WMf6):\n if not isinstance(upem, VSCl) or not isinstance(WMf6, VSCl):\n raise TypeError('phi1 and phi2 should be factors instances')\n elif type(upem) != type(WMf6):\n raise NotImplementedError('All the args are expected to be instances of the same factor class.')\n return upe...
[ "0.6995851", "0.6969073", "0.5883337", "0.57492656", "0.57446176", "0.5742847", "0.5675638", "0.5652531", "0.55674106", "0.5533897", "0.5514548", "0.548108", "0.5456523", "0.54441005", "0.5432674", "0.5417182", "0.5417182", "0.5415167", "0.54141635", "0.53672", "0.53671825", ...
0.66117424
2
Returns a copy of the factor. Returns
def jth9(YKHO): jth9 = MaKo.__new__(YKHO.__class__) jth9.variables = [*YKHO.variables] jth9.cardinality = oyIN.array(YKHO.cardinality) jth9.values = prPh.copy(YKHO.values) jth9.state_names = YKHO.state_names.copy() jth9.no_to_name = YKHO.no_to_name.copy() jth9.name_to_no = YKHO.name_to_no.co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G7iY(YKHO, aM8h):\n import copy\n Ylbp = copy.deepcopy(YKHO)\n Ylbp._factor *= aM8h\n return Ylbp", "def GeyA(YKHO):\n MlcK = dict()\n for Csk6 in range(YKHO.Dimensions):\n MlcK[str(Csk6)] = yKIT.copy(YKHO.Factors[str(Csk6)])\n return MlcK", "def StVD(YKHO):\n return ggep(YKH...
[ "0.75946224", "0.69509304", "0.6750562", "0.6643917", "0.6617948", "0.65317714", "0.64444345", "0.64444345", "0.63873804", "0.6308299", "0.62832755", "0.62832755", "0.6259731", "0.6255057", "0.6248723", "0.6227296", "0.6218154", "0.62124085", "0.62054217", "0.616893", "0.6166...
0.7622026
0
Setup the test driver and create test users
def FCbF(YKHO): print('--------------------------NEXT-TEST----------------------------------------------') uh1m = lE6K() uh1m.binary_location = '/usr/bin/chromium-browser' uh1m.add_argument('--headless') YKHO.driver = cSpz.Chrome(executable_path=f'{AxXv('CHROMEDRIVER_PATH')}/chromedriver', chrome_op...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n NCls.drop_all()\n NCls.create_all()\n P4t4.config['TESTING'] = True\n YKHO.client = P4t4.test_client()", "def FCbF(YKHO):\n YKHO.new_user = YJv1('Judy', 'homeboys123')", "def FCbF(YKHO):\n YKHO.app = YKHO._set_up_test_app(LUif)\n YKHO.client = YKHO._set_up_client(YKHO.app...
[ "0.7922605", "0.7725985", "0.76982677", "0.768224", "0.7672551", "0.7656813", "0.7647313", "0.76445127", "0.7607617", "0.7597351", "0.75630486", "0.7561216", "0.7560582", "0.75542474", "0.75520164", "0.7549644", "0.7548669", "0.751875", "0.7498118", "0.74881333", "0.748017", ...
0.0
-1
Kronecker product of a list of matrices.
def lW4j(INK1, XcIY=None, gxEw=False): if XcIY is not None: INK1 = [INK1[YRbF] for YRbF in range(len(INK1)) if YRbF != XcIY] if gxEw: INK1 = INK1[::-1] Aofo = INK1[0] for SppC in INK1[1:]: Aofo = oyIN.kron(Aofo, SppC) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dBCf(INK1):\n Aofo = [1]\n for SppC in INK1:\n Aofo = oyIN.kron(Aofo, SppC)\n return Aofo", "def kHZH(at2S, CKPS):\n gpRq, MxXY = at2S.get_shape().as_list()\n vOWG = ZylS.reshape(at2S, [1, gpRq, 1, MxXY, 1, 1])\n VeEE, E43s, cWFu, jtyf = CKPS.get_shape().as_list()\n yvwR = ZylS.re...
[ "0.76355875", "0.7014703", "0.6986748", "0.69608265", "0.6916945", "0.6899621", "0.6874723", "0.68641317", "0.68245846", "0.680842", "0.65574694", "0.64969003", "0.6482111", "0.63874626", "0.6384264", "0.63415515", "0.63128126", "0.61942935", "0.6154814", "0.61060196", "0.605...
0.7610985
1
Make folder if it doesn't already exist
def N60n(AGPF): if not Hy7s.path.exists(AGPF): Hy7s.makedirs(AGPF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jStL(pmON):\n if Hy7s.path.exists(pmON):\n return False\n else:\n Hy7s.mkdir(pmON)\n return True", "def mvPD(pmON):\n if not Hy7s.path.exists(pmON):\n Hy7s.mkdir(pmON)\n else:\n print(f'- {pmON} directory already exists')\n return", "def f4UG(pmON):\n if...
[ "0.810615", "0.7948083", "0.78903735", "0.78831077", "0.78275394", "0.78171754", "0.7811091", "0.77634615", "0.77599716", "0.76711977", "0.76396257", "0.76113546", "0.75713974", "0.7562908", "0.7534276", "0.7530557", "0.7519991", "0.7498808", "0.7498511", "0.7470543", "0.7469...
0.74271244
22
L{FacadePermissionMixin.updatePermission} raises a L{TNoSuchUser} error if a L{User} in the exceptions list doesn't exist.
def vpqJ(YKHO): nTnf = AEvz(u'closed', [u'unknown']) with MC83(u'username', kxTZ(), YKHO.transact) as cuiw: uUiN = YKHO.facade.updatePermission(cuiw, u'tags', u'update', u'username/tag', nTnf) P1dF = (yield YKHO.assertFailure(uUiN, m3px)) YKHO.assertEqual('unknown', P1dF.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CC_e(YKHO):\n S_7w().create([(u'otheruser', u'password', u'User', u'user@example.com')])\n hkxX = [(u'otheruser', vk2a.UPDATE_USER)]\n dnVu = f8D4(YKHO.user, hkxX)\n YKHO.assertEqual([(u'otheruser', vk2a.UPDATE_USER)], dnVu)", "def xkzX(YKHO):\n hkxX = [(u'username', vk2a.UPDATE_USER)]\n dn...
[ "0.6329112", "0.61829644", "0.613059", "0.6072257", "0.59112424", "0.58745086", "0.586535", "0.58525825", "0.58432424", "0.58388823", "0.5810667", "0.5810497", "0.57318115", "0.5663957", "0.5646716", "0.5595538", "0.55856794", "0.55488247", "0.5543727", "0.5508958", "0.549342...
0.65296483
0
L{FacadePermissionMixin.updatePermission} raises a L{TInvalidUsername} error if the anonymous user is specified in the exceptions list for nonallowed operations.
def b3sT(YKHO): nTnf = AEvz(u'closed', [u'anon']) with MC83(u'username', kxTZ(), YKHO.transact) as cuiw: uUiN = YKHO.facade.updatePermission(cuiw, u'tags', u'update', u'username/tag', nTnf) yield YKHO.assertFailure(uUiN, a6Up)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vpqJ(YKHO):\n nTnf = AEvz(u'closed', [u'unknown'])\n with MC83(u'username', kxTZ(), YKHO.transact) as cuiw:\n uUiN = YKHO.facade.updatePermission(cuiw, u'tags', u'update', u'username/tag', nTnf)\n P1dF = (yield YKHO.assertFailure(uUiN, m3px))\n YKHO.assertEqual('unknown', P1dF.name)"...
[ "0.65616345", "0.63746303", "0.6114548", "0.6091248", "0.60379314", "0.602621", "0.5957219", "0.5903518", "0.5797325", "0.57971525", "0.5775284", "0.56832254", "0.56629807", "0.56511", "0.5584506", "0.5576895", "0.5522889", "0.55024964", "0.5472615", "0.54383063", "0.5424435"...
0.69900936
0
L{FacadePermissionMixin.updatePermission} raises a L{TNoSuchUser} error if a L{User} in the exceptions list doesn't exist. The username passed to L{TNoSuchUser} is UTF8 encoded.
def ATIe(YKHO): nTnf = AEvz(u'closed', [u'あ']) with MC83(u'username', kxTZ(), YKHO.transact) as cuiw: uUiN = YKHO.facade.updatePermission(cuiw, u'tags', u'update', u'username/tag', nTnf) P1dF = (yield YKHO.assertFailure(uUiN, m3px)) YKHO.assertEqual(u'あ'.encode('utf-8'), P1dF.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vpqJ(YKHO):\n nTnf = AEvz(u'closed', [u'unknown'])\n with MC83(u'username', kxTZ(), YKHO.transact) as cuiw:\n uUiN = YKHO.facade.updatePermission(cuiw, u'tags', u'update', u'username/tag', nTnf)\n P1dF = (yield YKHO.assertFailure(uUiN, m3px))\n YKHO.assertEqual('unknown', P1dF.name)"...
[ "0.6708831", "0.6057481", "0.5966073", "0.59301776", "0.57499653", "0.5713949", "0.5709103", "0.568408", "0.56733084", "0.56360984", "0.5635888", "0.5621938", "0.5608416", "0.5583359", "0.55818534", "0.5576929", "0.5531149", "0.55072415", "0.5501539", "0.54807615", "0.5455988...
0.68895423
0
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, qtWj): global lr oaBv = tspZ * 0.5 ** (qtWj // 8) for Lwm5 in K0do.param_groups: Lwm5['lr'] = oaBv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.7520262
100
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0) Ylbp.append(R2Dg.mul_(100....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003303", "0.7974974", "0.7973838", "0.7941408", "0.78644186", "0.7804143", "0.7707982", "0.76218164", "0.75933", "0.75614214", "0.75204575", "0.74303335", "0.7412347", "0.7376026", "0.7374732", "0.7321644", "0.72547084", "0.72369593", "0.72281915", "0.7204618", "0.7137449...
0.0
-1
An HttpResponse that sends json
def jnRN(nPrm, jGRS=B3z0.OK, m5r4='application/json'): tTpl = Qo3n(nPrm) MnRD = gCuF.DEBUG and 4 or None return igJ6(qQXR.dumps(tTpl.construct(), cls=aEUI, ensure_ascii=False, indent=MnRD), status=jGRS, content_type=m5r4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GtGV(nPrm):\n return igJ6(qQXR.dumps(nPrm), content_type='application/json')", "def w7Rc(QePW):\n YEnM = {'received': True}\n return igJ6(qQXR.dumps(YEnM), content_type='application/json')", "def WHn3(YKHO):\n return igJ6(qQXR.dumps(YKHO.response()), content_type='application/json')", "def Gt...
[ "0.83401054", "0.8247515", "0.79598874", "0.79312336", "0.7916018", "0.7879725", "0.7879725", "0.7879725", "0.7855896", "0.78419226", "0.7755875", "0.7630853", "0.7624558", "0.76103437", "0.7576311", "0.7420279", "0.74197054", "0.7411217", "0.7405242", "0.73888594", "0.738439...
0.7625158
12
Get parameters for ``crop`` for a random sized crop.
def W6RH(VXjJ, NXpY, dMYj): TVTK, H2v2 = VXjJ.size f0tD = H2v2 * TVTK for I2mK in range(10): Cnb1 = tuKI.uniform(*NXpY) * f0tD peYa = (epAf.log(dMYj[0]), epAf.log(dMYj[1])) pAIe = epAf.exp(tuKI.uniform(*peYa)) yzQ0 = int(round(epAf.sqrt(Cnb1 * pAIe))) MKlR = int(round...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nK5W(zi3C=(350, 350), a6Jb=(256, 256)):\n yzQ0, MKlR = zi3C\n idx7, q53Q = a6Jb\n if yzQ0 == q53Q and MKlR == idx7:\n return (0, 0, MKlR, yzQ0)\n YRbF = tuKI.randint(20, MKlR - idx7 - 20)\n r845 = tuKI.randint(20, yzQ0 - q53Q - 20)\n return (YRbF, r845, idx7, q53Q)", "def W6RH(y7GR, ...
[ "0.73399985", "0.727559", "0.7059008", "0.66658247", "0.6654997", "0.66329193", "0.65787727", "0.64154756", "0.6385097", "0.63592046", "0.6333994", "0.62984025", "0.6298232", "0.6249857", "0.62063086", "0.61725736", "0.6170323", "0.6167495", "0.61330414", "0.61317503", "0.606...
0.5987341
22
Get parameters for ``crop`` for a random sized crop.
def W6RH(YKHO, VXjJ, DNwW=None): TVTK, H2v2 = VXjJ.size f0tD = H2v2 * TVTK NXpY = YKHO.scale dMYj = YKHO.ratio for I2mK in range(500): Cnb1 = tuKI.uniform(*NXpY) * f0tD peYa = (epAf.log(dMYj[0]), epAf.log(dMYj[1])) pAIe = epAf.exp(tuKI.uniform(*peYa)) yzQ0 = int(round...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nK5W(zi3C=(350, 350), a6Jb=(256, 256)):\n yzQ0, MKlR = zi3C\n idx7, q53Q = a6Jb\n if yzQ0 == q53Q and MKlR == idx7:\n return (0, 0, MKlR, yzQ0)\n YRbF = tuKI.randint(20, MKlR - idx7 - 20)\n r845 = tuKI.randint(20, yzQ0 - q53Q - 20)\n return (YRbF, r845, idx7, q53Q)", "def W6RH(y7GR, ...
[ "0.7339338", "0.72735906", "0.7058913", "0.6666475", "0.6655995", "0.6632698", "0.65789795", "0.6414273", "0.63862175", "0.63596606", "0.6335039", "0.62992346", "0.62983984", "0.6251008", "0.6206175", "0.6172927", "0.61691016", "0.616787", "0.6135553", "0.61323243", "0.607186...
0.0
-1
Get parameters for ``crop`` for a random sized crop.
def W6RH(YKHO, VXjJ, DNwW=None): TVTK, H2v2 = VXjJ.size f0tD = H2v2 * TVTK NXpY = YKHO.scale dMYj = YKHO.ratio for I2mK in range(500): Cnb1 = tuKI.uniform(*NXpY) * f0tD peYa = (epAf.log(dMYj[0]), epAf.log(dMYj[1])) pAIe = epAf.exp(tuKI.uniform(*peYa)) yzQ0 = int(round...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nK5W(zi3C=(350, 350), a6Jb=(256, 256)):\n yzQ0, MKlR = zi3C\n idx7, q53Q = a6Jb\n if yzQ0 == q53Q and MKlR == idx7:\n return (0, 0, MKlR, yzQ0)\n YRbF = tuKI.randint(20, MKlR - idx7 - 20)\n r845 = tuKI.randint(20, yzQ0 - q53Q - 20)\n return (YRbF, r845, idx7, q53Q)", "def W6RH(y7GR, ...
[ "0.73399985", "0.727559", "0.7059008", "0.66658247", "0.6654997", "0.66329193", "0.65787727", "0.64154756", "0.6385097", "0.63592046", "0.6333994", "0.62984025", "0.6298232", "0.6249857", "0.62063086", "0.61725736", "0.6170323", "0.6167495", "0.61330414", "0.61317503", "0.606...
0.0
-1
Make sure index_ws_client.html is in the templates folder relative to this Python file.
def d6pt(): return TvZl('index_ws_client.html', pin=swNP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fxbk(YKHO):\n poxP = khtY.exists(khtY.join(YKHO.dir, '..', 'cbapp', 'templates', 'index.html'))\n YKHO.assertTrue(poxP)", "def UhR0(YKHO):\n return super().template_path + [Hy7s.path.join(Hy7s.path.dirname(xAKo), 'templates')]", "def d6pt(YKHO):\n return TvZl('{0}/index.html'.format(YKHO.__APP_...
[ "0.6475096", "0.6370184", "0.6358653", "0.6322697", "0.63121086", "0.62871206", "0.6256785", "0.62185454", "0.62180173", "0.6203597", "0.6175931", "0.6113486", "0.6111241", "0.6106742", "0.6098726", "0.60979027", "0.60679334", "0.6062496", "0.60595596", "0.60595596", "0.60595...
0.60557014
26
Returns default [] representing a policy that has no variables.
def B_WG(YKHO): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zpzo():\n return D0fp({'status': {'assigned': 'unused', 'duplicate': 'unused', 'wontfix': 'unused', 'fixed': 'unused', 'verified': 'unused', 'new': 'unused'}, 'labels': {}})", "def BPqO():\n Qabx = {'policy_requestor_name': RMC9.service_name(), 'policy_requestor_type': 'charm', 'blocked_actions': {}}\n...
[ "0.6701036", "0.6601037", "0.60057837", "0.592429", "0.5832386", "0.58008844", "0.57405627", "0.5723018", "0.5703215", "0.5684974", "0.5653681", "0.5648395", "0.5648395", "0.5634795", "0.5634795", "0.56266564", "0.5624265", "0.56041133", "0.5590879", "0.5582299", "0.55792886"...
0.529273
46
Formula f is valid if and only if it has no numbers with leading zero, and evals true.
def deVW(eHNT): try: return not ZbWC.search('\\b0[0-9]', eHNT) and eval(eHNT) is True except ArithmeticError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def deVW(eHNT):\n try:\n return not ZbWC.search('\\\\b0[0-9]', eHNT) and eval(eHNT) is True\n except ArithmeticError:\n return False", "def deVW(eHNT):\n try:\n return not ZbWC.search('\\\\b[0-9]', eHNT) and eval(eHNT) is True\n except ArithmeticError:\n return False", "...
[ "0.7997235", "0.75636905", "0.73113036", "0.68238145", "0.66928524", "0.66928524", "0.6619677", "0.6607024", "0.6554213", "0.6529534", "0.6439995", "0.63295627", "0.6293399", "0.62491196", "0.61908776", "0.6157755", "0.61539423", "0.6118594", "0.61157894", "0.61137044", "0.61...
0.80463547
0
Return the HTML for a home page (convenience page of project links).
def C_QL() -> str: RzRl = {} return TvZl('homepage.html', **RzRl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n _R2e = BLtk.HTML\n return _R2e", "def C_QL():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n ...
[ "0.832758", "0.8284609", "0.819943", "0.81914526", "0.81113243", "0.8091397", "0.8091397", "0.8088201", "0.8077393", "0.8069856", "0.8051588", "0.80436015", "0.80436015", "0.80383945", "0.80053216", "0.7988924", "0.79769325", "0.79710793", "0.7962973", "0.79566693", "0.792461...
0.8101848
5
Return the HTML for the admin side management dashboard.
def Dck1() -> str: RzRl = {} return TvZl('dashboard/dashboard.html', **RzRl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N5hv():\n return TvZl('admin/dashboard.html', title='Admin Dashboard')", "def dp9S():\n return TvZl('admin.html')", "def N5hv():\n return TvZl('home/admin_dashboard.html', title='Your Dashboard')", "def Uro7():\n return TvZl('admin.html')", "def OtZP():\n return TvZl('webadmin.html', tod...
[ "0.8302085", "0.8004057", "0.7913385", "0.76973146", "0.76340175", "0.7307827", "0.72059107", "0.7071386", "0.7030934", "0.69362783", "0.69039553", "0.6901765", "0.68479306", "0.6775777", "0.6682715", "0.6675134", "0.66341996", "0.6617555", "0.6586045", "0.6577469", "0.655561...
0.64765316
29
Read a GRASS GIS vector map containing point geometries into a geopandas GeoDataFrame Currently only Point geometries are supported
def cgf8(zq5a): try: from shapely.geometry import Point import pandas as rLdf import geopandas as quUU except ImportError: i912.fatal('Reading GRASS GIS point data into geopandas requires the ', 'shapely and geopandas python packages to be installed') with zotf(zq5a) as LTIa:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sbDq(YKHO):\n K0Ma = YKHO.file_name\n try:\n Cs6h = rrLg.from_file(K0Ma)\n except Exception as e:\n aQwA.info('Error in reading fiele' + tTpl)\n LbX3 = Cs6h.to_pandas()\n ZLJ_ = ['row', 'col']\n LbX3 = rLdf.DataFrame(LbX3.drop(columns=ZLJ_))\n LbX3.rename(columns={'value': 'e...
[ "0.6977669", "0.6900914", "0.68376416", "0.6828057", "0.6777705", "0.67512923", "0.67086035", "0.6553162", "0.6538075", "0.6517096", "0.6430022", "0.6401868", "0.63859975", "0.63611966", "0.6286966", "0.6262516", "0.62526685", "0.62517214", "0.6239669", "0.62229", "0.62000054...
0.7146633
0