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
Returns a list of Custom Reward objects for the Custom Rewards on a channel. Developers only have access to update and delete rewards that the same/calling client_id created.
def _0Kj(YKHO, d0VF: str, _6uB: Optional[Union[str, List[str]]]=None, E3C8: Optional[bool]=False) -> dict: if _6uB is not None and isinstance(_6uB, list) and (len(_6uB) > 50): raise ValueError('reward_id can not contain more than 50 entries') bD7m = jNi7(Dc8S + 'channel_points/custom_rewards', {'broadca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def rewards(YKHO) -> x1iM[XYvR]:\n if YKHO.reward_set_id is None:\n return []\n return await XYvR.get_by_reward_set(YKHO.reward_set_id, client=YKHO._client).flatten()", "def jsPW(YKHO):\n return YKHO._gameRewards", "def jsPW(YKHO):\n return YKHO._gameRewards", "def jsPW(YKHO):\n r...
[ "0.66411394", "0.652505", "0.652505", "0.652505", "0.652505", "0.652505", "0.55239207", "0.53414816", "0.53289187", "0.5328399", "0.5263789", "0.5248752", "0.52475613", "0.5242402", "0.5219287", "0.51771104", "0.5160352", "0.5157027", "0.5089609", "0.5078529", "0.50744385", ...
0.6101591
6
Blocks the specified user on behalf of the authenticated user.
def JCCO(YKHO, Vh9X: str, LxBb: Optional[BlockSourceContext]=None, lo9Y: Optional[BlockReason]=None) -> bool: bD7m = jNi7(Dc8S + 'users/blocks', {'target_user_id': Vh9X, 'source_context': m5sg(LxBb), 'reason': m5sg(lo9Y)}, remove_none=True) Aofo = YKHO.__api_put_request(bD7m, KMqm.USER, [b4ss.USER_MANAGE_BLOCKE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCCO(YKHO):\n if YKHO.context == cFqH.ON_BLOCK_USER:\n dp9S = YKHO.current_admin\n NtEF = YKHO._get_input_data()\n F5og = dp9S.search_user(NtEF)\n if type(F5og) == WhY1:\n YKHO.handle_response(F5og)\n else:\n CBIr = F5og\n if not CBIr.block...
[ "0.7331032", "0.7223485", "0.65966046", "0.6559682", "0.65296084", "0.64091825", "0.63849777", "0.6225898", "0.618095", "0.61654216", "0.60813737", "0.6036065", "0.6024196", "0.59064806", "0.58188856", "0.58118695", "0.5790717", "0.57650304", "0.5663867", "0.56385386", "0.562...
0.61256266
10
return list of tokens
def thS1(YKHO): s2mk = dFss(str(YKHO.sentence)) return s2mk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s2mk(YKHO):\n Aofo = [YRbF for YRbF in YKHO.gettoken()]\n return Aofo", "def thS1(YKHO):\n return YKHO.token_list", "def WEL_(YKHO):\n Nqlg = iter(YKHO._get_source_lines())\n s2mk = wr3U.generate_tokens(xBlr.partial(jKi7.next, Nqlg))\n return list(s2mk)", "def s2mk(YKHO):\n return RM...
[ "0.87376916", "0.84049296", "0.79205704", "0.7855117", "0.781458", "0.7770511", "0.77564466", "0.76259637", "0.7617953", "0.7561752", "0.7555649", "0.75380766", "0.7536222", "0.7507518", "0.749684", "0.74447787", "0.73772967", "0.7376687", "0.7351303", "0.7351303", "0.7349209...
0.7295075
24
Applies a Gaussian Noise kernel
def xsYF(VXjJ, Ot1W): return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W), 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))", "def VU7a(zNig=21, HVUZ=3):\n WKvO = oyIN.linspace(-HVUZ, HVUZ, zNig + 1)\n wpiG = oyIN.diff(aevO.norm.cdf(WKvO))\n KBhd = oyIN.outer(wpiG, w...
[ "0.76052034", "0.7393102", "0.7229189", "0.7221564", "0.70060414", "0.6984168", "0.6950077", "0.69366527", "0.6931964", "0.69261706", "0.691414", "0.6897396", "0.6853296", "0.6851775", "0.68305933", "0.68162876", "0.6814562", "0.6809518", "0.6800442", "0.6788534", "0.677357",...
0.0
-1
Applies an image mask. Only keeps the region of the image defined by the polygon formed from `vertices`. The rest of the image is set to black.
def mWKt(VXjJ, iXlf): ZHfW = oyIN.zeros_like(VXjJ) if len(VXjJ.shape) > 2: M9nc = VXjJ.shape[2] K43N = (255,) * M9nc else: K43N = 255 XC5k.fillPoly(ZHfW, iXlf, K43N) lVtf = XC5k.bitwise_and(VXjJ, ZHfW) return lVtf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWKt(YKHO, VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (255,) * M9nc\n else:\n K43N = 255\n XC5k.fillPoly(ZHfW, iXlf, K43N)\n lVtf = XC5k.bitwise_and(VXjJ, ZHfW)\n return lVtf", "def mWKt(YKHO, VXjJ, iXlf):\n ...
[ "0.75989336", "0.75989336", "0.75989336", "0.75989336", "0.7563103", "0.75258625", "0.7510402", "0.75084704", "0.7502251", "0.75005466", "0.7497312", "0.7445945", "0.74360883", "0.7421955", "0.74050516", "0.74050516", "0.7394158", "0.7394158", "0.7394158", "0.7394158", "0.739...
0.73189265
51
`img` should be the output of a Canny transform. Returns an image with hough lines drawn.
def ukXH(VXjJ, oZuG, q7In, gwAu, vkba, y7AI): Nqlg = XC5k.HoughLinesP(VXjJ, oZuG, q7In, gwAu, oyIN.array([]), minLineLength=vkba, maxLineGap=y7AI) Q0kH = oyIN.zeros((VXjJ.shape[0], VXjJ.shape[1], 3), dtype=oyIN.uint8) return Nqlg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ukXH(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=10, maxLineGap=5)", "def CM3h(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=20, maxLineGap=300)", "def ukXH(LNo8):\n KQs3 = XC5k.HoughLinesP(LNo8, rh...
[ "0.7559508", "0.74826276", "0.7366155", "0.7362659", "0.7347895", "0.72839403", "0.7250591", "0.72374964", "0.7215154", "0.71961856", "0.71932167", "0.7178042", "0.71577847", "0.7152784", "0.71443677", "0.71443677", "0.71443677", "0.71443677", "0.71443677", "0.71443677", "0.7...
0.6914046
45
`img` is the output of the hough_lines(), An image with lines drawn on it. Should be a blank image (all black) with lines drawn on it. `initial_img` should be the image before any processing.
def UyGm(VXjJ, Aob7, vexM=0.8, yzQ0=1.0, tTpl=0.0): return XC5k.addWeighted(Aob7, vexM, VXjJ, yzQ0, tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J4BZ(VXjJ, Nqlg, qfpW):\n s3Vn, PLSm, oM7x = VXjJ.shape\n for YRbF in range(len(Nqlg)):\n oZuG = Nqlg[YRbF][0][0]\n q7In = Nqlg[YRbF][0][1]\n Dmt6 = oyIN.cos(q7In)\n fOhA = oyIN.sin(q7In)\n vgXP = 4000\n WKvO = oZuG * Dmt6\n LVAh = oZuG * fOhA\n o4D...
[ "0.7119253", "0.69268084", "0.6830703", "0.6828238", "0.68033653", "0.6800587", "0.679067", "0.67872405", "0.67872405", "0.6786057", "0.67659175", "0.6755732", "0.6755618", "0.6755618", "0.6755618", "0.6755618", "0.6755618", "0.6755618", "0.6755618", "0.6755618", "0.6749466",...
0.0
-1
Create a new singlylinked list. Takes O(1) time.
def FIMM(YKHO): YKHO.head = None YKHO.tail = None YKHO.length = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S06t():\n from doublelinkedlist import DoubleLinkedList\n o9Ep = DoubleLinkedList()\n return o9Ep", "def IUcN(yv6U):\n if not yv6U:\n return None\n uv6v = Msxl(0)\n Q6kx = uv6v\n for BWXx in yv6U:\n Q6kx.next = Msxl(BWXx)\n Q6kx = Q6kx.next\n return uv6v.next", ...
[ "0.688513", "0.68823016", "0.6881973", "0.68212694", "0.6623952", "0.65495396", "0.6508863", "0.65042275", "0.64368093", "0.64091504", "0.63660794", "0.6336658", "0.62847596", "0.6284164", "0.626642", "0.62420523", "0.6222588", "0.62182975", "0.6211602", "0.6198322", "0.61870...
0.56053907
97
Insert a new element at the end of the list. Takes O(n) time.
def SStx(YKHO, nPrm): Esd_ = Msxl(nPrm) if YKHO.head == None: YKHO.head = Esd_ YKHO.tail = YKHO.head YKHO.length = 1 else: YKHO.tail.next = Esd_ YKHO.tail = YKHO.tail.next YKHO.length += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F1bx(yv6U, LihS):\n \"\"\"*** YOUR CODE HERE ***\"\"\"", "def lSgp(YKHO, BdN0: Item) -> None:\n if YKHO.is_empty():\n YKHO.pointer = BdN0\n elif not YKHO.is_full():\n YKHO.go_to_last()\n n5sN = YKHO.access_actual()\n BdN0.set_previous(n5sN)\n n5sN.set_next(BdN0)\n ...
[ "0.7985341", "0.76534677", "0.7083154", "0.7075191", "0.70545727", "0.70449674", "0.7023475", "0.70191205", "0.70185447", "0.70157164", "0.69912004", "0.69764155", "0.6964883", "0.6894984", "0.6874918", "0.68174726", "0.67831385", "0.67821616", "0.67480695", "0.67074937", "0....
0.0
-1
Search for the first element with `data` matching `key`. Return the element or `None` if not found. Takes O(n) time.
def neBz(YKHO, H5ew): Iuo4 = YKHO.head while Iuo4 != None: if Iuo4 == H5ew: return Iuo4.data Iuo4 = Iuo4.next return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neBz(YKHO, H5ew):\n jvSB = YKHO.head\n while jvSB:\n if jvSB.data == H5ew:\n return H5ew\n jvSB = jvSB.next\n return None", "def TgwQ(YKHO, H5ew):\n jvSB = YKHO.head\n while jvSB:\n if jvSB.data == H5ew:\n return jvSB\n else:\n jvSB ...
[ "0.7799485", "0.75736415", "0.74748725", "0.73862207", "0.73604685", "0.7312228", "0.72645533", "0.7264404", "0.72618675", "0.72574806", "0.7192277", "0.7174794", "0.71447724", "0.7140262", "0.69988245", "0.69732594", "0.6958145", "0.6886028", "0.6884789", "0.6853747", "0.681...
0.77294606
1
Close the KafkaAdminClient connection to the Kafka broker.
async def close(YKHO): if not hasattr(YKHO, '_closed') or YKHO._closed: RKD7.info('KafkaAdminClient already closed.') return await YKHO._client.close() YKHO._closed = True RKD7.debug('AIOKafkaAdminClient is now closed.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tGHW(YKHO) -> None:\n YKHO.connection.stop()\n YKHO.connection.close()", "def fFx9(YKHO):\n YKHO.logger.debug('Closing connection to zookeeper')\n YKHO.zk.stop()", "def JLgZ(YKHO) -> None:\n YKHO._cf.close_link()", "def DDI8(YKHO):\n YKHO.__producer.flush()\n YKHO.__update_partitions...
[ "0.627149", "0.6248606", "0.6031631", "0.5913388", "0.586315", "0.586315", "0.586315", "0.5834534", "0.5834534", "0.5834534", "0.5834534", "0.5828877", "0.5828877", "0.5804405", "0.5804405", "0.57607424", "0.5753661", "0.5743723", "0.57370955", "0.5715931", "0.5700194", "0....
0.8114281
0
Describe a set of consumer groups. Any errors are immediately raised.
async def describe_consumer_groups(YKHO, DVCd: List[str], swoe: Optional[int]=None, cg1C: bool=False) -> x1iM[oGir]: DpZH = YKHO._matching_api_version(FzuZ) if DpZH < 3 and cg1C: raise MlYH('include_authorized_operations requests DescribeGroupsRequest >= v3, which is not supported by Kafka {}'.format(Dp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NhEu(OaeV):\n pass", "def gUG2(YKHO):\n geh0 = YKHO.get_security_groups()\n a1PO = kluY(['GroupName', 'Description'])\n for nPrm in geh0:\n a1PO.add_row([nPrm[0], nPrm[1]])\n RKD7.echo_info(a1PO)", "def MvIi():\n raise jFTU.NotImplemented", "def Yi_P(YKHO, Q6kx=None, SPHT=None):\...
[ "0.6113143", "0.5933359", "0.58994967", "0.5850177", "0.58442414", "0.58416104", "0.5828213", "0.57632244", "0.56641257", "0.5655309", "0.5635242", "0.56346697", "0.5631495", "0.5607498", "0.56031394", "0.55926025", "0.55765593", "0.5566216", "0.5553925", "0.5513009", "0.5462...
0.7258055
0
Find the broker id for a given consumer group
async def find_coordinator(YKHO, hE03: str, Ipyn: int=0) -> int: DpZH = YKHO._matching_api_version(HuN5[:1]) if DpZH == 0 and Ipyn: raise MlYH('Cannot query for transaction id on current broker version') BmYG = HuN5[DpZH] if DpZH == 0: QePW = BmYG(consumer_group=hE03) else: Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ixg4(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'consumer_group')", "def ixg4(YKHO) -> str:\n return qe4Y.get(YKHO, 'consumer_group')", "def ixg4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'consumer_group')", "def ixg4(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'consumer_...
[ "0.68840003", "0.6814058", "0.6702149", "0.668945", "0.66112846", "0.6367339", "0.627349", "0.61957973", "0.5869924", "0.58661395", "0.58141136", "0.5771157", "0.5769358", "0.5765482", "0.573645", "0.56835085", "0.5640015", "0.56135464", "0.5596623", "0.5586041", "0.5571683",...
0.6349472
6
Recursively traverse the tree to get all ancestors
def TMRN(YKHO, JZlq=None): if not JZlq: JZlq = [] if not YKHO.parent: return JZlq JZlq.append(YKHO.parent) return YKHO.parent.get_ancestors(JZlq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TMRN(YKHO):\n\n def hF0A(Q6kx, JZlq):\n JZlq.extend(Q6kx.parents)\n for XP5J in Q6kx.parents:\n hF0A(XP5J, JZlq)\n JZlq = []\n hF0A(YKHO, JZlq)\n return JZlq", "def JZlq(YKHO):\n ZbOB = YKHO\n while ZbOB.parent:\n ZbOB = ZbOB.parent\n yield ZbOB", "d...
[ "0.7971853", "0.7740428", "0.7740228", "0.7674225", "0.7672561", "0.7571654", "0.7562278", "0.7469055", "0.7292234", "0.7254348", "0.7209861", "0.69341546", "0.6914668", "0.6898879", "0.68513465", "0.67760116", "0.6757429", "0.6751262", "0.6725365", "0.6715906", "0.670262", ...
0.7077346
11
Return the name of the stderr output created by bsub run instance of BPRun
def sOh_(iXC1): assert isinstance(iXC1, OWJe) return '%s.err.txt' % iXC1.get_file_name()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wIbz(YKHO):\n return YKHO._stderr_file.name", "def Xd6T(YKHO):\n pass", "def BYef(YKHO):\n raise NotImplementedError", "def RWfg():\n return IBnu", "def uyGj(YKHO):\n with YKHO.lock:\n if YKHO.__stderr_str is None:\n YKHO.__stderr_str = YKHO._get_str_from_bin(YKHO.stder...
[ "0.74408454", "0.7206108", "0.7012866", "0.69093156", "0.6837898", "0.6830034", "0.681119", "0.6781031", "0.67623276", "0.67471826", "0.6695062", "0.6573578", "0.65729314", "0.6556072", "0.6541708", "0.65170056", "0.65038", "0.64953315", "0.6494358", "0.6478358", "0.647515", ...
0.7571935
0
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Returns the word/symbol of the xml token.
def sxpv(YKHO, zFiD): return zFiD[zFiD.find('>') + 2:zFiD.find('<', 2) - 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o61b(YKHO):\n return YKHO.__current_token", "def eOtH() -> str:\n return thS1()[2]", "def wZLS(YKHO):\n if YKHO.token[0] == xsJz:\n return YKHO.token[1]\n raise KR7U('Request for symbol when current token is ' + _JJj[eOtH[0]])", "def eOtH(YKHO):\n return YKHO.lexer.token()", "def ...
[ "0.7510435", "0.7234158", "0.7006035", "0.69918096", "0.69330025", "0.6897763", "0.6799566", "0.6717054", "0.6717054", "0.6679523", "0.6679523", "0.6679523", "0.6679523", "0.6581498", "0.65733635", "0.6572056", "0.6571184", "0.6571184", "0.6571184", "0.6571184", "0.6527058", ...
0.0
-1
Set the random seed for modules torch, numpy and random.
def e3of(yokr: int) -> None: ht2j.manual_seed(yokr) oyIN.random.seed(yokr) tuKI.seed(yokr) if ht2j.cuda.is_available() and ht2j.cuda.device_count() > 0: ht2j.backends.cudnn.deterministic = True ht2j.cuda.manual_seed_all(yokr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e3of():\n ht2j.manual_seed(SGPK.RANDOM_SEED)\n ht2j.cuda.manual_seed_all(SGPK.RANDOM_SEED)\n ht2j.backends.cudnn.deterministic = True\n ht2j.backends.cudnn.benchmark = False\n oyIN.random.seed(SGPK.RANDOM_SEED)\n Hy7s.environ['PYTHONHASHSEED'] = str(SGPK.RANDOM_SEED)", "def igb0():\n oyI...
[ "0.841926", "0.8349147", "0.8341103", "0.8323997", "0.82786393", "0.82786125", "0.82767844", "0.82491297", "0.8234284", "0.8202902", "0.8170378", "0.81670517", "0.81566733", "0.81566733", "0.81566733", "0.81566733", "0.8156143", "0.815276", "0.81412226", "0.8137718", "0.80881...
0.7830352
47
Loads and parses a YAML configuration file.
def LgIG(pmON: Union[Path, str]='configs/default.yaml') -> cuzp: if isinstance(pmON, str): pmON = GkAb(pmON) with pmON.open('r', encoding='utf-8') as c1qH: _Fei = eJb6.safe_load(c1qH) return _Fei
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kfOW():\n with open(Fm4J) as WRxi:\n GPtr = eJb6.load(WRxi)\n return GPtr", "def soIh(SGPW: str) -> cuzp:\n with open(SGPW) as pfPF:\n GPtr = eJb6.load(pfPF, Loader=eJb6.FullLoader)\n return GPtr", "def LgIG(WRxi):\n with open(WRxi, 'r') as wOb_:\n tbx9 = eJb6.safe_load(...
[ "0.81198794", "0.8112232", "0.80511713", "0.7978907", "0.7972469", "0.79684365", "0.7906436", "0.78847754", "0.78464925", "0.7817394", "0.78016096", "0.7796831", "0.77914965", "0.77797544", "0.7732267", "0.77222604", "0.77222604", "0.77149427", "0.7708727", "0.7697263", "0.76...
0.0
-1
Returns the latest checkpoint (by creation time, not the steps number!) from the given directory. If there is no checkpoint in this directory, returns None
def WvV7(hp8U: Path) -> h8nf[GkAb]: zxMN = hp8U.glob('*.ckpt') ZhT8 = None if zxMN: ZhT8 = max(zxMN, key=lambda eHNT: eHNT.stat().st_ctime) if ZhT8 is None: raise FileNotFoundError(f'No checkpoint found in directory {hp8U}.') return ZhT8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvV7(TLI7: str):\n wBvU = Hy7s.path.join(TLI7, 'checkpoint')\n if not qJi5.Exists(wBvU):\n G9jH.info('File %s does not exist', wBvU)\n return None\n bGDx = Hy7s.path.join(TLI7, 'export')\n if not qJi5.Exists(bGDx):\n G9jH.info('Eval export folder %s does not exist', bGDx)\n ...
[ "0.8262571", "0.81413364", "0.79653233", "0.7964147", "0.77679217", "0.7758845", "0.7541046", "0.7498691", "0.7469673", "0.7341189", "0.7287398", "0.72506404", "0.7247766", "0.7235666", "0.7234862", "0.7151021", "0.71179295", "0.71090114", "0.70916355", "0.69828874", "0.69687...
0.82761645
0
apply unicodedata NFKC normalization used in pre_process() in tokenizer.py
def Umhx(KCHu: str) -> str: KCHu = zVCt.normalize('NFKC', KCHu) KCHu = KCHu.replace('’', "'") KCHu = KCHu.replace('“', '"') KCHu = KCHu.replace('”', '"') return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rxXs(l5Ny):\n return zVCt.normalize('NFKC', l5Ny)", "def MXOF(l5Ny):\n Aofo = zVCt.normalize('NFC', l5Ny)\n Aofo = ZbWC.sub(u'\\xad', '', Aofo)\n Aofo = ZbWC.sub(' \\\\((Fotoğraf|Görsel|Grafik|Harita|Resim|Şekil|Şema|Tablo).+?\\\\)', '', Aofo)\n Aofo = ZbWC.sub('(?<=\\\\d)\\\\.(?=\\\\d)', '', ...
[ "0.73947847", "0.71997637", "0.71896034", "0.71896034", "0.7170269", "0.6962367", "0.69121605", "0.6869318", "0.68548924", "0.6846753", "0.6828604", "0.6728971", "0.67051667", "0.66486055", "0.6627896", "0.66165024", "0.65776885", "0.6563536", "0.653856", "0.6526403", "0.6507...
0.6530817
19
Main page with nav showing links to different pages.
def kZiy(QePW, xnPD, Z8j0, r4ca, *qIxc, **B2fa): return _1tc(QePW, 'home.html', dict(pages=Re2a(I0sS.objects.all()), visible_pages=Re2a(xnPD), managed_stores=r4ca, active_store=Z8j0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_():\n aevO.sidebar.title('Navigation')\n SuM2 = aevO.sidebar.radio('Go to', list(Wmpq.keys()))\n B2Dn = Wmpq[SuM2]\n with aevO.spinner(f'Loading {SuM2} ...'):\n jZ4I.shared.components.write_page(B2Dn)\n aevO.sidebar.title('About')\n aevO.sidebar.info('\\n This App is an end-...
[ "0.78273225", "0.74422383", "0.7339407", "0.7171459", "0.7158194", "0.70760715", "0.70472634", "0.7034955", "0.70155895", "0.6973022", "0.69714993", "0.69610804", "0.68145615", "0.67691004", "0.67273444", "0.6655242", "0.6641167", "0.66304004", "0.66071075", "0.6595839", "0.6...
0.0
-1
Creats the input placeholders for the feedfoward neural network.
def mb9f(Ep8u, iQSw): JUOu = ZylS.placeholder(ZylS.float32, shape=(None, iQSw)) OcQY = ZylS.placeholder(ZylS.bool, shape=None) return (JUOu, OcQY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j2tZ(YKHO) -> None:\n YKHO.train_mode = ZylS.placeholder(ZylS.bool, shape=[], name='train_mode')\n YKHO.inputs = ZylS.placeholder(ZylS.float32, shape=[None, None, YKHO.input_size], name='encoder_input')\n YKHO._input_lengths = ZylS.placeholder(ZylS.int32, shape=[None], name='encoder_padding_lengths')"...
[ "0.771589", "0.7578688", "0.7392336", "0.72568506", "0.7254544", "0.72156674", "0.71894854", "0.7159674", "0.7124305", "0.7123528", "0.7105093", "0.7070367", "0.706387", "0.70610076", "0.70463824", "0.7045986", "0.7045986", "0.7045786", "0.7005773", "0.6990121", "0.6987587", ...
0.65642864
57
Get list of (PolarCode, Channel) pairs.
def gIql(RIIc, NNYx, ywwl, HTcU, o1e5, ISIR, Qt2N=None): Qt2N = Qt2N or [{}] E6VQ = [(RIIc(codeword_length=ywwl, info_length=lO1m(ywwl * KBgZ), is_systematic=True, **VqfF), NNYx(snr_db=oKTv, N=ywwl, K=lO1m(ywwl * KBgZ))) for KBgZ in HTcU for oKTv in o1e5 for VqfF in Qt2N] * ISIR hXNa(E6VQ) return E6VQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def imlr(YKHO, mWFP):\n return tuple(map(lambda Z9rn: YKHO.codeC(Z9rn, mWFP + str(Z9rn)), Ni9Y(YKHO.channels())))", "def SS7a(YKHO):\n return YKHO._channel_list", "def list():\n return dk1n", "def XLG4(YKHO):\n Tyny = {}\n yIp6 = YKHO.ticksToSecondsFactor()\n for YRbF in range(YKHO.__channe...
[ "0.65344846", "0.6256908", "0.6057389", "0.6030907", "0.60200727", "0.5992204", "0.59905475", "0.5956576", "0.5952399", "0.59223014", "0.58868724", "0.58243185", "0.5761383", "0.5753506", "0.57505625", "0.5747317", "0.57143384", "0.5705621", "0.57053053", "0.5705141", "0.5695...
0.0
-1
Creates a list of 'colors_num' triples as an RGB color palette. Uses a pseudorandom number generator. Takes as input number of colors in RGB palette.
def ModP(JJW_): tn62 = [] for YRbF in Ni9Y(JJW_): Mkmy, Oa1e, Fg_i = (tuKI.randint(0, 255), tuKI.randint(0, 255), tuKI.randint(0, 255)) tn62.append((Mkmy, Oa1e, Fg_i)) return tn62
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fRt4(ydh_):\n Jw9H = []\n vw9P = []\n for YRbF in XTiz.arange(0.0, 360.0, 360.0 / 256.0):\n Hafq = YRbF / 360.0\n TfMy = (50 + XTiz.random.rand() * 10) / 100.0\n dU3c = (90 + XTiz.random.rand() * 10) / 100.0\n Jw9H.append(h478.hls_to_rgb(Hafq, TfMy, dU3c))\n for YRbF in ...
[ "0.7930518", "0.7927962", "0.79251826", "0.7546825", "0.7545719", "0.7426949", "0.72939456", "0.72691375", "0.71843773", "0.7163112", "0.7116625", "0.7116625", "0.7095173", "0.70645064", "0.70530635", "0.7034637", "0.7024854", "0.7014459", "0.69787925", "0.69618165", "0.68775...
0.86914676
0
Get word by index if its in range. Otherwise return `UNK`.
def eIcJ(YKHO, d6pt): return YKHO.index_to_word[d6pt] if d6pt < YKHO.size and d6pt >= 0 else 'UNK'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eIcJ(d6pt: int) -> h8nf[str]:\n if d6pt < m9b5:\n return None\n if d6pt > tCay:\n return None\n return V22M[d6pt & 4095]", "def ckmf(BH3N, acax):\n assert 0 <= acax < len(BH3N[0]), 'word_index out of range of words'\n return BH3N[0][acax]", "def urj1(YKHO, d6pt):\n if d6pt n...
[ "0.792765", "0.7198762", "0.6981604", "0.6835523", "0.6715853", "0.6692804", "0.6685991", "0.6527656", "0.65247077", "0.65247077", "0.64244497", "0.6419351", "0.6394928", "0.6377698", "0.63675064", "0.6348993", "0.6344677", "0.6302833", "0.6290838", "0.6261167", "0.62597626",...
0.7573956
1
Words (strings) > indices (ints) conversion.
def txtC(YKHO, V22M): return [YKHO.get_index(GIN8) for GIN8 in V22M]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OaWc(YKHO, V22M):\n wb39 = YKHO.word2idx.get('<unk>', None)\n return [YKHO.word2idx.get(yzQ0, wb39) for yzQ0 in V22M]", "def jbxy(z_aV: str) -> x1iM[int]:\n return [aDc2.get(GIN8, 2) for GIN8 in z_aV.split()]", "def ngNG(V22M, cmPJ):\n return [cmPJ[GIN8] if GIN8 in cmPJ else 0 for GIN8 in V22M]...
[ "0.71104926", "0.7100565", "0.70799935", "0.69783753", "0.6973263", "0.6960879", "0.6863578", "0.68556166", "0.68443125", "0.67681444", "0.67681223", "0.67636245", "0.6763011", "0.6595464", "0.6594211", "0.6594211", "0.65787685", "0.65588045", "0.65551716", "0.6552802", "0.65...
0.70870423
2
Modify the email's html body to use entry IDs instead of CIDs and remove the original message body if exists.
def aXwa(Wh9o='', bFRU=None): for _5yy in XMDM: d6pt = Wh9o.find(_5yy) if d6pt != -1: Wh9o = f'{Wh9o[:d6pt]}</body></html>' for C7_O, Br6e in bFRU: Wh9o = ZbWC.sub(f'src="[^>]+"(?=[^>]+alt="{C7_O}")', f'src=entry/download/{Br6e}', Wh9o) return Wh9o
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rKep(_R2e):\n kUBT = g9Pn.search(_R2e)\n if kUBT:\n _R2e = _R2e[kUBT.end():]\n kUBT = gPmh.search(_R2e)\n if kUBT:\n _R2e = _R2e[:kUBT.start()]\n _R2e = RhJD.sub('', _R2e)\n return _R2e", "def R6qC(TtQI):\n KCHu = R3a3.read(TtQI)\n return '\\\\n'.join([eHNT.content for e...
[ "0.6341777", "0.6187803", "0.5963234", "0.5830756", "0.5726552", "0.57069474", "0.56145906", "0.5547228", "0.54909575", "0.54795897", "0.5460989", "0.54440725", "0.5401594", "0.5391617", "0.5323449", "0.5308614", "0.53028303", "0.5296924", "0.5271238", "0.5264878", "0.5259523...
0.5794156
4
Create a 8digit unique random code that should be used to identify new created incidents.
def Eh5j(): vyAn = False while not vyAn: Wxnj = f'{tuKI.randrange(1, 10 ** 8):08}' xDcj = f'emailgeneratedcode: {Wxnj}' Zw6F = x7iy(xDcj) if len(Zw6F) == 0: vyAn = True return Wxnj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LbTm():\n Wxnj = ''\n for bGrB in range(6):\n Wxnj += tuKI.choice('1234567890')\n return Wxnj", "def gkKB():\n return str(ajWY(1000, 9999)).zfill(4)", "def srZh():\n U5bT = ''\n for bGrB in range(40):\n U5bT += chr(tuKI.randint(0, 15) + ord('a'))\n return U5bT", "def Kn...
[ "0.80296355", "0.8005846", "0.79957646", "0.79775155", "0.78537047", "0.7848555", "0.78141403", "0.77576965", "0.77266616", "0.7721962", "0.77010924", "0.76357394", "0.7633328", "0.76170814", "0.7573077", "0.7560294", "0.7556944", "0.7534514", "0.7534514", "0.7519427", "0.751...
0.74241805
28
The number of rows needed to plot the current set of genes. If there is no current set of genes, just return 1 (as we can't take up 0 vertical space).
def snHQ(YKHO): return len(YKHO.gene_rows.rows) or 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWg6(YKHO):\n return len(YKHO.genes)", "def zNig(YKHO):\n return len(YKHO._genes)", "def _1Ox(YKHO):\n return YKHO._grid.get_num_rows()", "def _1Ox(YKHO):\n return YKHO._grid.get_num_rows()", "def l003(YKHO):\n return len(YKHO.cells)", "def vT7v(YKHO):\n return YKHO.shape[0] - 2", ...
[ "0.68857497", "0.6766358", "0.6719113", "0.6719113", "0.66899735", "0.6688439", "0.66849434", "0.6639681", "0.6607402", "0.66062665", "0.6593465", "0.65842485", "0.6574131", "0.6525009", "0.65021545", "0.6498199", "0.6478509", "0.6427652", "0.6415413", "0.6410278", "0.6406413...
0.6877948
1
Test conversion of object attributes to dictionary for json
def Ur0x(YKHO): HPQU = KcDH() HPQU.name = 'Holberton' HPQU.my_number = 89 Csk6 = HPQU.to_dict() _a1P = ['id', 'created_at', 'updated_at', 'name', 'my_number', '__class__'] YKHO.assertCountEqual(Csk6.keys(), _a1P) YKHO.assertEqual(Csk6['__class__'], 'BaseModel') YKHO.assertEqual(Csk6['nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ur0x(YKHO):\n YlGy = YKHO.base.to_dict()\n YKHO.assertEqual(type(YlGy), dict)\n YKHO.assertTrue(hasattr(YlGy, '__class__'))\n YKHO.assertEqual(type(YlGy['created_at']), str)\n YKHO.assertEqual(type(YlGy['updated_at']), str)", "def Ur0x(YKHO):\n YlGy = YKHO.r1.to_dict()\n YKHO.assertEqual...
[ "0.7374051", "0.72415864", "0.7045062", "0.7041735", "0.6990707", "0.6981164", "0.6958267", "0.6884571", "0.68406713", "0.68183804", "0.68105507", "0.6767975", "0.6757447", "0.672367", "0.66878945", "0.66862255", "0.66778237", "0.6621582", "0.6610218", "0.65948063", "0.657080...
0.0
-1
Get the path to the program's config file.
def Nug2(YKHO): PBUt = Hy7s.path.join(Hy7s.path.expanduser('~/Documents/Code/Python/milo'), '.config', 'milo') YKHO.init_dir(PBUt) lqQH = Hy7s.path.join(PBUt, 'config.ini') if not Hy7s.path.isfile(lqQH): with open(lqQH, 'w') as Nu1S: Nu1S.write(YKHO.config_file_skeleton) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RrNC():\n return Hy7s.path.join(vmiX, u8az)", "def S673(YKHO):\n return Hy7s.path.expanduser(YKHO.options.config_file)", "def RrNC():\n return Hy7s.environ.get(str('REVIEWBOT_CONFIG_FILE'), Hy7s.path.join(VWRi.site_config_dir, 'config.py'))", "def lqQH():\n return pmON.join(tgzD('Snap', 'path...
[ "0.8644154", "0.85764223", "0.83116513", "0.83090943", "0.82196957", "0.8218618", "0.82078236", "0.81674325", "0.81454384", "0.8001451", "0.79960674", "0.79536974", "0.79525113", "0.79422176", "0.79417896", "0.791235", "0.78932285", "0.78864306", "0.78482276", "0.78103775", "...
0.0
-1
Normalize loctaion to grid point
def werW(YKHO, hksT, EtM5): if hksT[0] > 180 or hksT[0] < -180: print('Out of range') return None if hksT[1] > 90 or hksT[1] < -90: print('Out of range') return None if hksT[2] < -10: print('Out of range') return None vK_t = [] vK_t.append(YKHO._myroun...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qwL0(bDYe, I8zM=True):\n if bDYe is None:\n return bDYe\n WKvO, LVAh = bDYe\n LVAh[LVAh < _hZ2] = _hZ2\n return (WKvO, LVAh)", "def NkkI(Cs6h):\n MI8X = sum(map(sum, Cs6h))\n for YRbF in range(len(Cs6h)):\n for r845 in range(len(Cs6h[0])):\n Cs6h[YRbF][r845] = Cs6h[...
[ "0.7167638", "0.71359575", "0.7082031", "0.69363123", "0.6837539", "0.68199795", "0.67657834", "0.6709619", "0.66612923", "0.66161203", "0.65973973", "0.65837586", "0.6577912", "0.65480024", "0.6546565", "0.65136045", "0.6487568", "0.648629", "0.64819896", "0.64714116", "0.64...
0.0
-1
Embeds an mp4 file in the notebook.
def iw_V(Ux0P): f6W2 = open(Ux0P, 'rb').read() Hufe = WR89.b64encode(f6W2) TZ9E = '\n <video width="640" height="480" controls>\n <source src="data:video/mp4;base64,{0}" type="video/mp4">\n Your browser does not support the video tag.\n </video>'.format(Hufe.decode()) return x6b6.display.H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iw_V(Ux0P):\n f6W2 = open(Ux0P, 'rb').read()\n Hufe = WR89.b64encode(f6W2)\n TZ9E = '\\n <video width=\"640\" height=\"480\" controls>\\n <source src=\"data:video/mp4;base64,{0}\" type=\"video/mp4\">\\n Your browser does not support the video tag.\\n </video>'.format(Hufe.decode())\n return",...
[ "0.78912795", "0.77573234", "0.71090746", "0.70328724", "0.667731", "0.64875823", "0.5950329", "0.5923516", "0.58591026", "0.5821349", "0.57420534", "0.566749", "0.5615428", "0.5603243", "0.5551963", "0.5522104", "0.54544175", "0.5449621", "0.53766954", "0.5352796", "0.532657...
0.78108114
1
Return the user used to make the connection
def LwqV(YKHO): return zGUs.objects.get(username=YKHO.gh_args.hget('username'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H3ZZ():\n return c5ow", "def TKWP():\n return AOO4.getuser() + '@' + GGmw.gethostname()", "def TKWP(YKHO):\n return 'nobody'", "def CBIr(YKHO):\n return YKHO.get_str(YKHO.forge.get_user())", "def TKWP(YKHO):\n pass", "def qOwg(YKHO):\n return YKHO._usr", "def CBIr(YKHO):\n try:...
[ "0.7993069", "0.78528565", "0.78046376", "0.7694501", "0.7659502", "0.7608076", "0.76005214", "0.75673914", "0.75601923", "0.75449705", "0.7480523", "0.747695", "0.74743235", "0.7457149", "0.7384592", "0.7381687", "0.73625845", "0.7357356", "0.7356254", "0.7334519", "0.730176...
0.0
-1
Call the `get` method of the model's manager with the given filters and return an django model instance
def bU5h(YKHO, **KUnM): return YKHO.model.objects.get(**KUnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxrn(Emd4, **B2fa):\n return Emd4.model.objects(**B2fa).get()", "def NMoC(YKHO, *qIxc, **B2fa):\n if qIxc or B2fa:\n return YKHO.filter(*qIxc, **B2fa).get()\n YKHO._execute_query()\n if len(YKHO._result_cache) == 0:\n raise YKHO.model.DoesNotExist\n elif len(YKHO._result_cache) >...
[ "0.7276285", "0.69633377", "0.6859524", "0.68455833", "0.67796785", "0.66982895", "0.66449785", "0.65746427", "0.6555353", "0.6508779", "0.6475733", "0.6400196", "0.6378005", "0.63776255", "0.6347946", "0.62745845", "0.62671894", "0.6253553", "0.6253553", "0.618561", "0.61461...
0.81757426
0
Denormalize, clip to absolute max and convert to local
def Ucu7(YKHO, XeOP, YylR): UuGP = XeOP[0] * YKHO.max_v J8Nq = XeOP[1] * YKHO.max_v ZiZT = XeOP[2] * YKHO.max_w UuGP, J8Nq = (UuGP * oyIN.cos(YylR) + J8Nq * oyIN.sin(YylR), -UuGP * oyIN.sin(YylR) + J8Nq * oyIN.cos(YylR)) gZcO = oyIN.linalg.norm([UuGP, J8Nq]) Z9rn = gZcO < YKHO.max_v or YKHO.max_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uwZK(YKHO, g5zR, dgIT, bQ6z):\n return (g5zR + 1) / 2 * (bQ6z - dgIT) + dgIT", "def r0lV(BWXx, bQ6z, dgIT):\n return BWXx * (bQ6z - dgIT) + dgIT", "def uI9b(YKHO):\n hkxX = YKHO.intensity\n JCoA = max(hkxX)\n YKHO.intensity = [Ty9i / JCoA for Ty9i in hkxX]", "def pmQu(nPrm):\n return (n...
[ "0.7056837", "0.69188243", "0.6913145", "0.6847621", "0.68193173", "0.6724609", "0.67186946", "0.67040646", "0.67032117", "0.6700383", "0.66999006", "0.66906106", "0.666119", "0.6644496", "0.66067773", "0.6571854", "0.6571854", "0.6564595", "0.6553641", "0.65400624", "0.65300...
0.0
-1
Returns the (ffpga_n,feng_input,start_addr) location for a given antenna. Ant is integer, as are all returns.
def nQJO(YKHO, ZMvH): if ZMvH > YKHO.n_ants: raise RuntimeError('There is no antenna %i in this design (total %i antennas).' % (ZMvH, YKHO.config['n_ants'])) GSyY = int(ZMvH / YKHO.n_ants_per_feng) nW9f = ZMvH % YKHO.n_ants_per_feng return (GSyY, nW9f)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AUVn(hTgx):\n G9jH.info('Finding genomic location of the reference sequence')\n bIJL = ITS7.time()\n Fst3 = Hy7s.path.splitext(hTgx)[1].lower()\n if Fst3 in ('.gtf', '.gff'):\n G9jH.warning('Reading %s as GTF/GFF file', hTgx)\n V_8U, ZU47 = (3, -1)\n elif Fst3 == '.bed':\n G...
[ "0.56770915", "0.5584828", "0.5584486", "0.5574545", "0.55723464", "0.5535583", "0.55066687", "0.5463649", "0.5427793", "0.5427766", "0.5381115", "0.5374726", "0.53404677", "0.53324264", "0.5310467", "0.5275804", "0.52705526", "0.52428097", "0.52385473", "0.52367985", "0.5236...
0.83647627
0
Get command line arguments
def rwTO(): wvEv = j1Jz.ArgumentParser(description='\nA tol to check trace differences for the Nanorv32\n ') wvEv.add_argument('--pysim', action='store', dest='pysim', help='Python Simulator trace') wvEv.add_argument('--rtlsim', action='store', dest='rtlsim', help='Rtl Simulator trace') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jgwn(YKHO):\n return YKHO.argv", "def BV7_():\n qIxc = {}\n for YRbF in range(len(HwRy.argv)):\n if HwRy.argv[YRbF].startswith('-') and YRbF + 1 < len(HwRy.argv):\n H5ew = HwRy.argv[YRbF][1:]\n YRbF += 1\n qIxc[H5ew] = HwRy.argv[YRbF]\n return qIxc", "def...
[ "0.7951355", "0.7823654", "0.7767637", "0.7748007", "0.7703538", "0.7682058", "0.7602751", "0.75961256", "0.75666356", "0.7566169", "0.7537056", "0.7513172", "0.7454253", "0.74497163", "0.7433844", "0.7416988", "0.7415955", "0.7401011", "0.7396132", "0.7385784", "0.73758984",...
0.0
-1
Return the Tags selected for this export.
def Qwli(YEnM): return YEnM.json_tags
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dhwz(YKHO):\n bEVn = YKHO.selection()\n dJ1p = [Fb5o(int(ht7m)) for ht7m in bEVn]\n return dJ1p", "def dJ1p(YKHO):\n return YKHO._get('tags')", "def Qwli(YKHO):\n return YKHO.listafinal", "def Qwli(YKHO):\n return YKHO.get_job().get('tags', [])", "def Qwli(YKHO):\n return YKHO.list...
[ "0.752976", "0.7390982", "0.73790324", "0.7377318", "0.73327297", "0.7311781", "0.73093194", "0.73093194", "0.73052496", "0.73052496", "0.73052496", "0.73052496", "0.73052496", "0.73052496", "0.73052496", "0.73052496", "0.73052496", "0.73052496", "0.73052496", "0.73052496", "...
0.0
-1
Return the username for the owner of this export.
def Fqw8(YEnM): return YEnM.user.username
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ug7a(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'resource_owner_username')", "def Fqw8(YKHO):\n Zr4w = ''\n if YKHO.fdocs != None:\n if YKHO.fdocs.owner != None:\n Zr4w = YKHO.fdocs.owner.username\n return Zr4w", "def yCF_(YKHO):\n return YKHO.__common_info.ow...
[ "0.82113993", "0.8076938", "0.7885816", "0.78435975", "0.78349614", "0.783422", "0.7830598", "0.7830598", "0.7781313", "0.7765629", "0.7763147", "0.7692403", "0.7663538", "0.7662913", "0.76498455", "0.76498455", "0.7639518", "0.7628654", "0.7627487", "0.7627487", "0.7627487",...
0.78693354
3
The current total population of the group.
def RY5J(YKHO): return YKHO._old_men + YKHO._old_women + YKHO._young_men + YKHO._young_women + YKHO._children
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TnHM(YKHO):\n return YKHO._total_population", "def Yq0O(YKHO):\n return YKHO.total_population", "def TnHM():\n return 1000", "def Tczn(YKHO):\n return YKHO._population_total_reference", "def wQZ8(YKHO):\n return YKHO.population", "def CHNM(YKHO):\n return YKHO._population", "def C...
[ "0.84742975", "0.8380271", "0.78512824", "0.77794605", "0.7529633", "0.74590427", "0.74590427", "0.74590427", "0.74590427", "0.73140854", "0.7115483", "0.7088056", "0.7075234", "0.7038843", "0.69916284", "0.68936396", "0.68849826", "0.68849826", "0.6874848", "0.68627733", "0....
0.0
-1
Returns the indice for the given string.
def neBz(vIwR): sZqf, FGW3 = (vIwR[0], int(vIwR[1:])) vIwR = sZqf.upper() + str(FGW3) for d6pt, DStN in enumerate(Yp2b): tTQv = DStN.split('_')[0] if tTQv == vIwR: return d6pt raise ValueError('No cell found for: "' + str(vIwR) + '"')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hy1U(str):\n return (str[0], str[1], str[2], str[3], str[4], str[-1])", "def Hlr2(QOe9, KCHu):\n return KCHu.find(QOe9) + 1", "def JJBR(vIwR, Nqlg):\n d6pt = [YRbF for YRbF, zFiD in enumerate(Nqlg) if zFiD == vIwR]\n return d6pt", "def Vn7Z(mZmz, s_ww):\n for mLGw, rdlD in enumerate(mZmz):...
[ "0.73086333", "0.72778076", "0.7229338", "0.70644265", "0.69096357", "0.6873595", "0.6859292", "0.67450905", "0.6681306", "0.66016436", "0.65851027", "0.6574902", "0.65471876", "0.65406907", "0.6525658", "0.6506568", "0.6442212", "0.63997763", "0.6394623", "0.6393663", "0.638...
0.6497538
16
Updates all children on a domain entity to their current version.
def opN6(YKHO, LEXu): assert isinstance(LEXu, FYrf.Entity) for aUGN in LEXu._get_child_entities(): YKHO._push_events(aUGN, YKHO.event_store.get_events_from_version(aUGN.guid, aUGN._version)) YKHO._update_children(aUGN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IoUr(YKHO) -> None:\n pass", "def IoUr(YKHO):\n wyyA.delete(YKHO._get_parent_name_cache_key(YKHO.pk))\n with UzPC.cursor() as N1p7:\n NArs = {'parent_id': YKHO.pk}\n l633 = [Pe9W.get_update_children_meta_sql(Ry7b), Pe9W.get_insupd_children_offers_sql(Ry7b), Pe9W.get_prune_children_offe...
[ "0.6963037", "0.69441736", "0.64709395", "0.6064251", "0.6035219", "0.59330624", "0.59300363", "0.59115386", "0.5779879", "0.57755226", "0.5773546", "0.57070345", "0.5682511", "0.55927444", "0.5529975", "0.5524268", "0.543479", "0.53927934", "0.5374565", "0.5366201", "0.53373...
0.73620313
0
Return the index of the node which is closest to 'last'.
def UYdI(XVAW, KgZi, lWPh): Qh4y = KgZi[0] uYq_ = lWPh[XVAW, Qh4y] for YRbF in KgZi[1:]: if lWPh[XVAW, YRbF] < uYq_: Qh4y = YRbF uYq_ = lWPh[XVAW, Qh4y] return Qh4y
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jwo1(YKHO):\n if not YKHO.links:\n return YKHO.start\n return YKHO.links[len(YKHO.links) - 1].end", "def pFG5(YKHO):\n return YKHO.solution.last_valid_index()", "def XVAW(YKHO):\n ZbOB = 0\n for YRbF in YKHO:\n XVAW = YRbF.last()\n if XVAW > ZbOB:\n ZbOB = XVA...
[ "0.66295075", "0.6563589", "0.6555903", "0.6503555", "0.6470564", "0.6445944", "0.6437386", "0.6314002", "0.6259545", "0.6236947", "0.6217495", "0.6184889", "0.61162585", "0.6074796", "0.6035874", "0.6004516", "0.5980891", "0.59597695", "0.5953722", "0.5951562", "0.59509856",...
0.5845516
37
Return tour starting from city 'i', using the Nearest Neighbor.
def FLFm(exwG, YRbF, lWPh): KgZi = list(range(exwG)) KgZi.remove(YRbF) XVAW = YRbF N7L4 = [YRbF] while KgZi != []: next = UYdI(XVAW, KgZi, lWPh) N7L4.append(next) KgZi.remove(next) XVAW = next return N7L4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WEDJ(gysO):\n yKcO = cntZ(gysO)\n N7L4 = [yKcO]\n KgZi = set(gysO - {yKcO})\n while KgZi:\n Nq1b = FLFm(N7L4[-1], KgZi)\n N7L4.append(Nq1b)\n KgZi.remove(Nq1b)\n return N7L4", "def FLFm(j5sA, gysO):\n LidV = min(gysO, key=lambda Fg_i: Ayfi(Fg_i, j5sA))\n if str(type(...
[ "0.6400551", "0.6283727", "0.62783945", "0.60808396", "0.6044758", "0.60312796", "0.5943805", "0.58940387", "0.58677924", "0.5858575", "0.5856855", "0.58299756", "0.5669798", "0.56602615", "0.56597877", "0.5647005", "0.5638249", "0.5615219", "0.55897117", "0.55510974", "0.555...
0.65254503
0
Exchange arcs (i,i+1) and (j,j+1) with (i,j) and (i+1,j+1). For the given tour 't', remove the arcs (i,i+1) and (j,j+1) and insert (i,j) and (i+1,j+1). This is done by inverting the sublist of cities between i and j.
def dQgO(N7L4, B6xQ, YRbF, r845): exwG = len(N7L4) if YRbF > r845: YRbF, r845 = (r845, YRbF) assert YRbF >= 0 and YRbF < r845 - 1 and (r845 < exwG) pmON = N7L4[YRbF + 1:r845 + 1] pmON.reverse() N7L4[YRbF + 1:r845 + 1] = pmON for G1Hx in range(YRbF + 1, r845 + 1): B6xQ[N7L4[G1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jjuq(N7L4):\n for YRbF, r845 in MyOv(len(N7L4)):\n if YRbF < r845:\n jth9 = _qLf(N7L4)\n jth9[YRbF], jth9[r845] = (N7L4[r845], N7L4[YRbF])\n yield jth9", "def HTSi(UrUh, V_8U=0):\n N7L4 = [WKvO for WKvO in range(UrUh)]\n N7L4.remove(V_8U)\n N7L4.insert(0, V...
[ "0.6999462", "0.6155935", "0.60898125", "0.5895696", "0.57055104", "0.564569", "0.5622277", "0.55803895", "0.55719864", "0.5557218", "0.5496501", "0.54899657", "0.5451215", "0.54118246", "0.5392872", "0.5332456", "0.53172934", "0.5299016", "0.5297149", "0.5238305", "0.5230734...
0.71969646
0
Parses the serialized form of a type and adds it to the supplied TypeContext
def hidS(mIH9, iboR: typecontext.TypeContext) -> None: gcep = ('name', 'default_type_parser', 'default_object_parser', 'default_type_parser', 'allowed_attributes', 'define_new', 'doc') for H5ew in mIH9.keys(): if H5ew not in gcep: raise ValueError(f'Key {H5ew} not recognized. Options are {gc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dcpc(YKHO, type, ZMzz, QEuY):\n YKHO._types.append((tMMy('>i', 126 - len(YKHO._types))[3:], type, ZMzz, QEuY))", "def Gcz1(YKHO, type):\n pass", "def Gcz1(YKHO, type):\n pass", "def pktP(YKHO, kN9s, nPrm):\n return YKHO.typeconverter.convert(kN9s, nPrm)", "def LFEq(YKHO, YEnM, Hghu):\n Y...
[ "0.5798061", "0.5556177", "0.5556177", "0.54819316", "0.5477222", "0.5429162", "0.5410438", "0.540872", "0.5398785", "0.53535426", "0.53535426", "0.5300173", "0.5277107", "0.5261692", "0.5255221", "0.52207", "0.52142113", "0.51933867", "0.5170281", "0.5151973", "0.50939554", ...
0.5009195
22
Get the fields including the timestamp. If channel_names are not included, all fields will be looked up.
def TnMw(YKHO, fv66=None): if not fv66: fv66 = YKHO.get_channel_names() V_D6 = ['pk', YKHO.get_time_field_name()] V_D6.extend(fv66) return V_D6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jpku(YKHO, DNHh=False):\n if YKHO.date is not None:\n return (int(YKHO.vas_response_raw), float(YKHO.vas_rt_raw), int(YKHO.intense_resp_keys_raw[-1]), float(YKHO.intense_resp_rt_raw), int(YKHO.order))\n else:\n return ('', '', '', '', '')", "def qzFw(YKHO):\n pass", "def zjHB():\n ...
[ "0.59887755", "0.586091", "0.5851049", "0.58070534", "0.5791272", "0.57453465", "0.5734649", "0.56462425", "0.55881315", "0.55840355", "0.55580413", "0.55384994", "0.54799324", "0.5477079", "0.54714817", "0.54570043", "0.5418796", "0.5406192", "0.53452474", "0.5344051", "0.53...
0.78503597
0
This returns a QuerySet including the full model instances for the specified flight ids.
def GTqZ(YKHO, QYTV, myXy=0): Aofo = YKHO.filter(flight_id__in=QYTV) Aofo = vX4h(Aofo, myXy, YKHO.model.get_time_field_name()) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO):\n QyMk = QePW.args.get('id')\n print('Flight id = {}'.format(QyMk))\n if QyMk is not None:\n LM0r = WXfL.query.get(QyMk)\n Aofo = YKHO.flight_schema.dump(LM0r)\n return {'flight': Aofo.data}\n else:\n dc7I = WXfL.query.all()\n print(dc7I)\n Aofo...
[ "0.6255259", "0.616001", "0.6105875", "0.59802043", "0.5940675", "0.5940675", "0.58718204", "0.5862968", "0.58623093", "0.5793505", "0.5728554", "0.5709765", "0.5562271", "0.55113614", "0.5506067", "0.54995245", "0.54817873", "0.5480608", "0.5473534", "0.54553044", "0.5438478...
0.68147135
0
This HITS THE DATABASE to get a QuerySet of dictionaries which includes the timestamps and the values for the specified channels
def Wqvo(YKHO, QYTV, fv66=None, myXy=0): return YKHO.get_flight_data(QYTV, myXy).values(*YKHO.get_fields(fv66))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zjHB():\n bnUP = []\n onUd = UQtd('ChannelsInfo', 'id name accesses time_spent')\n try:\n UzPC.ensure_connection()\n xMux = DQ5P.objects.values('id', 'name')\n TLhW = u647.objects.values('channel_id').annotate(time_spent=zphJ('time_spent'), total=kbH2('channel_id'))\n for Y...
[ "0.63760066", "0.61660933", "0.6160112", "0.6058384", "0.603413", "0.60318255", "0.59451175", "0.58862334", "0.582108", "0.58197653", "0.5779156", "0.5773574", "0.5695867", "0.56483066", "0.559211", "0.55280423", "0.54991984", "0.54840446", "0.5481832", "0.54089504", "0.54025...
0.0
-1
This returns a QuerySet including the full model instances for the specified flight ids and other filters.
def yLtf(YKHO, SWox=None, C7pn=None, QYTV=None, XbYF=None, myXy=0): Aofo = YKHO if QYTV: Aofo = Aofo.filter(flight_id__in=QYTV) if SWox: XbYF = {'%s__gte' % YKHO.get_time_field_name(): SWox} Aofo = Aofo.filter(**XbYF) if C7pn: XbYF = {'%s__lte' % YKHO.get_time_field_name(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GTqZ(YKHO, QYTV, myXy=0):\n Aofo = YKHO.filter(flight_id__in=QYTV)\n Aofo = vX4h(Aofo, myXy, YKHO.model.get_time_field_name())\n return Aofo", "def NMoC(YKHO):\n QyMk = QePW.args.get('id')\n print('Flight id = {}'.format(QyMk))\n if QyMk is not None:\n LM0r = WXfL.query.get(QyMk)\n ...
[ "0.66912746", "0.64755845", "0.62278605", "0.61769783", "0.6021777", "0.59821874", "0.5951773", "0.5938284", "0.5920011", "0.5913721", "0.5913721", "0.5911201", "0.58931625", "0.58656716", "0.58614177", "0.58230954", "0.581086", "0.581086", "0.5809738", "0.57911485", "0.57461...
0.6439571
2
Strip all admin_password, new_pass, rescue_pass keys from a dict.
def KEYS(eJh7): return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in eJh7.iteritems() if not '_pass' in G1Hx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aubn(NArs):\n for H5ew in NArs.keys():\n if 'password' in H5ew:\n del NArs[H5ew]\n return NArs", "def zzZi(_Fei):\n for ERdq in ('readonly', 'admin'):\n if ERdq + '_user' in _Fei and ERdq + '_password' in _Fei:\n _Fei[jfnv.USER_KEY] = _Fei[ERdq + '_user']\n ...
[ "0.6740775", "0.6590304", "0.6453009", "0.629371", "0.6228076", "0.62014174", "0.61796415", "0.61723655", "0.6121445", "0.6053495", "0.5950918", "0.5906676", "0.5887218", "0.5871905", "0.5852463", "0.5808352", "0.5801602", "0.5795557", "0.57647514", "0.57403696", "0.57264584"...
0.6822177
0
View function for home page of site.
def d6pt(QePW): RTwz = QePW.session.get('num_visits', 0) return _1tc(QePW, 'index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def kZiy():\n ...
[ "0.85220593", "0.83808637", "0.8353869", "0.8341923", "0.8341923", "0.8319331", "0.8306594", "0.8300408", "0.8297865", "0.8265691", "0.8226681", "0.82179236", "0.82068473", "0.8191401", "0.8191401", "0.8182987", "0.8178039", "0.81768703", "0.8148833", "0.8134954", "0.8134954"...
0.0
-1
Removes the object from the DB
def PTpj(YKHO): YKHO.mdb_collection.remove({'_id': YKHO._id})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSdD(YKHO, YEnM: Base) -> None:\n YKHO._session.delete(YEnM)\n YKHO._session.commit()", "def ZK6Y(YKHO):\n NCls.session.delete(YKHO)\n NCls.session.commit()", "def ZK6Y(YKHO):\n NCls.session.delete(YKHO)\n NCls.session.commit", "def ZK6Y(YKHO):\n NCls.session.delete(YKHO)\n NCls.s...
[ "0.8206901", "0.81795794", "0.8128076", "0.81212276", "0.81212276", "0.81212276", "0.81212276", "0.8115", "0.81091714", "0.8027097", "0.8024358", "0.79706794", "0.7944301", "0.7928083", "0.7913598", "0.7909931", "0.7909931", "0.7909931", "0.7909931", "0.7909931", "0.7909931",...
0.7395856
63
If error = True then the mock will respond with 404 on all requests.
def gpJ9(YKHO, P1dF=True): YKHO.error = P1dF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(P1dF):\n return Yxsy(pz3A({'error': 'Not found'}), 404)", "def o3cf(P1dF):\n return Yxsy(pz3A({'error': 'Not found'}), 404)", "def o3cf(P1dF):\n return Yxsy(pz3A({'error': 'Not found'}), 404)", "def o3cf(P1dF):\n return Yxsy(pz3A({'error': 'Not found'}, 404))", "def V11i(YKHO):\n o3...
[ "0.7124186", "0.7124186", "0.7124186", "0.71186316", "0.7110487", "0.71084994", "0.71073127", "0.70989895", "0.7075345", "0.7056284", "0.70516175", "0.7051297", "0.7041143", "0.700436", "0.6969983", "0.6960617", "0.69492847", "0.6949106", "0.69275904", "0.6918304", "0.6916565...
0.0
-1
Return the Euclidean norm of the vector x.
def CkYf(WKvO): return oyIN.linalg.norm(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CkYf(WKvO):\n return oyIN.sqrt(oyIN.sum(WKvO ** 2))", "def CkYf(WKvO):\n return epAf.sqrt(oyIN.numerical.sum(WKvO ** 2))", "def CkYf(WKvO):\n return oyIN.sqrt(oyIN.sum(oyIN.square(WKvO)))", "def CNdO(EcVT):\n lBjq = oyIN.square(EcVT)\n RBuv = oyIN.sum(lBjq)\n rxGT = oyIN.sqrt(RBuv)\n ...
[ "0.8422257", "0.8408379", "0.84035647", "0.83902705", "0.83833283", "0.82485884", "0.8200338", "0.8173162", "0.81039387", "0.7987667", "0.79291975", "0.77786034", "0.7760934", "0.7623275", "0.7556214", "0.7497092", "0.740242", "0.7361591", "0.7359593", "0.734684", "0.7343415"...
0.8338668
5
Returns a tuple (key, value) for the item in the dictionary with the lowest value.
def g0yx(lWPh): jvSB = 0 H5ew = '' for G1Hx in lWPh.keys(): jvSB = lWPh[G1Hx] H5ew = G1Hx break for G1Hx in lWPh.keys(): if lWPh[G1Hx] < jvSB: jvSB = lWPh[G1Hx] H5ew = G1Hx return (H5ew, jvSB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yvxx(Csk6):\n return min(Csk6, key=Csk6.get)", "def DQkz(Csk6):\n if len(Csk6) == 0:\n return (OGGq, [])\n else:\n Z23B, kpLf = Csk6.items()[0]\n for G1Hx, Ty9i in Csk6.items():\n if G1Hx < Z23B:\n Z23B, kpLf = (G1Hx, Ty9i)\n return (Z23B, kpLf)"...
[ "0.80350095", "0.7885434", "0.7652435", "0.7637691", "0.75229657", "0.7514416", "0.74607486", "0.74306166", "0.73559284", "0.7260866", "0.7260866", "0.7260866", "0.7177407", "0.71279365", "0.71024036", "0.7063056", "0.6921328", "0.6909264", "0.69026905", "0.69007236", "0.6863...
0.7801605
2
Returns the name of the senator which has the most similarity.
def _h7k(vb0a, rE69): Aofo = O9OT(vb0a, {G1Hx: rE69[G1Hx] for G1Hx in rE69.keys() if G1Hx != vb0a}) return SJaZ(Aofo)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oTh2(YKHO) -> str:\n return YKHO._most_searched_term", "def W0tD(YKHO):\n assert len(YKHO.spelling_counts) > 0\n return YKHO.spelling_counts.most_common(1)[0][0]", "def E3w1():\n pass", "def g33H(YKHO):\n mino = Barp\n qQeT = [yzQ0 for yzQ0 in YKHO.tokens if yzQ0 in mino]\n Gcbu = Rj...
[ "0.63760495", "0.62487555", "0.6239931", "0.6233559", "0.6214151", "0.61786205", "0.6159234", "0.612679", "0.6091198", "0.6071615", "0.60392004", "0.5986993", "0.5979912", "0.59528893", "0.5940846", "0.59258413", "0.59173775", "0.59130615", "0.5874356", "0.5869731", "0.583078...
0.58638906
20
Returns the name of the senator which has the least similarity.
def NGBo(vb0a, rE69): Aofo = O9OT(vb0a, {G1Hx: rE69[G1Hx] for G1Hx in rE69.keys() if G1Hx != vb0a}) return g0yx(Aofo)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3w1():\n pass", "def g33H(YKHO):\n mino = Barp\n qQeT = [yzQ0 for yzQ0 in YKHO.tokens if yzQ0 in mino]\n Gcbu = Rj5r(qQeT)\n return Gcbu.most_common(50)", "def W0tD(YKHO):\n assert len(YKHO.spelling_counts) > 0\n return YKHO.spelling_counts.most_common(1)[0][0]", "def ZtTD(YKHO):\n ...
[ "0.61992586", "0.5938652", "0.5923629", "0.5921053", "0.58896554", "0.5885495", "0.58294296", "0.58294296", "0.5829034", "0.5813089", "0.5745032", "0.57153165", "0.56571615", "0.5651821", "0.5649948", "0.5647747", "0.5596877", "0.5595719", "0.55707574", "0.55620193", "0.55367...
0.5471275
23
Returns the name of the senator that has the greatest average similarity with the set.
def vKTc(Ovsn, rE69): Aofo = {G1Hx: vVuW(G1Hx, Ovsn, rE69) for G1Hx in rE69.keys()} return SJaZ(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y40o(GIN8, MJy5):\n qHX0 = -1.0\n gs5V = ''\n for zo26 in MJy5:\n sg14 = TxoK(GIN8, zo26)\n if sg14 > qHX0:\n qHX0 = sg14\n gs5V = zo26\n return (gs5V, qHX0)", "def q9Pb(YKHO):\n cJU6 = 0\n CQ9D = ''\n for CBIr in YKHO.users.values():\n RrWF = C...
[ "0.6423596", "0.6312495", "0.6284774", "0.6272891", "0.62168777", "0.6157686", "0.6118231", "0.6071664", "0.60193294", "0.5903079", "0.5882519", "0.5847851", "0.5831794", "0.583156", "0.58020955", "0.57938325", "0.57646084", "0.5747301", "0.5745891", "0.5715455", "0.5701056",...
0.67055416
0
Get an existing WindowsFileSystem resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU, id, VKhi=None, Gmcr=None, hMqs=None, k36O=None, RRKo=None, dVJE=None, s7xM=None, Bf5u=None, Y9E6=None, gPmJ=None, TaQy=None, nNJq=None, nqKm=None, M169=None, pAck=None, dJ1p=None, JNYH=None, xOeT=None, NhGb=None): VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id)) r6DL = dict() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, hMqs: Optional[pulumi.Input[str]]=None, ppGz: Optional[pulumi.Input[str]]=None, wqpv: Optional[pulumi.Input[str]]=None, fsnd: Optional[pulumi.Input[str]]=None, VoQp: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, LFM...
[ "0.580767", "0.57925713", "0.5667859", "0.5641915", "0.5628824", "0.56013656", "0.5561734", "0.553366", "0.5531391", "0.54871035", "0.5398164", "0.5385028", "0.53639853", "0.52915484", "0.52739626", "0.5214319", "0.52082944", "0.5207756", "0.51894444", "0.5176395", "0.5173551...
0.5733287
2
calculates the harmonizing color flow of the array 'arr' between the ptvalue 'va_0' left of 'arr' and ptvalue 'va_1' right of 'arr'.
def puFq(gJLT, jUyy, ZpBC, DdjV, ezWE): P_B6 = len(ezWE) * ZpBC pamv = len(ezWE) * DdjV tPTV = mM0K / 2 / (ZpBC * len(ezWE)) if ZpBC > 0 else 0 mJpE = mM0K / 2 / (len(ezWE) - DdjV * len(ezWE)) if DdjV < 1 else 0 CGxI = lambda WKvO: YUNn(tPTV * WKvO) ** 2 uh1p = lambda WKvO: YUNn(mJpE * WKvO) ** ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZVbY(ezWE):\n oSzV = (ezWE.shape[0], ezWE.shape[1], 4)\n Jw7X = oyIN.empty(ezWE.shape, oyIN.int32)\n eUWA = oyIN.empty(ezWE.shape, oyIN.int32)\n Jw7X[:] = bnJw(ezWE)\n eUWA[:] = _GBK(ezWE)\n LVAh = oyIN.empty(oSzV, oyIN.int32)\n LVAh[..., 0] = Jw7X\n LVAh[..., 1] = 0.5 * Jw7X - 0.5 * eU...
[ "0.57919323", "0.56387955", "0.53574103", "0.5289399", "0.52730495", "0.5075718", "0.50571406", "0.5034326", "0.5027698", "0.5014234", "0.50043905", "0.4991895", "0.4981705", "0.49412522", "0.49130756", "0.4910064", "0.488834", "0.4882711", "0.48702922", "0.48551142", "0.4847...
0.617828
0
Get the UTC offset for the current timezone.
def XOyf(): return int((qcWV.datetime.utcnow() - qcWV.datetime.now() + qcWV.timedelta(seconds=1)).total_seconds() / 60 / 60)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UJxm(rIAI: str) -> int:\n _7Up = LgWF.now(rIAI).utcoffset()\n return int(_7Up.days * 24 * 60 + _7Up.seconds / 60)", "def zztL(YKHO):\n return int(round((qcWV.now() - qcWV.utcnow()).total_seconds()))", "def UJxm(YKHO):\n return YKHO._utc_offset", "def ueuK(YKHO):\n exwG = FdZ9(wzkt())\n ...
[ "0.8020345", "0.79873186", "0.7942957", "0.7577563", "0.7449061", "0.74287415", "0.7308454", "0.72559965", "0.72506917", "0.722471", "0.7124715", "0.70128286", "0.7006613", "0.69849366", "0.6851606", "0.6846303", "0.6760185", "0.6727373", "0.6680528", "0.65867716", "0.6562081...
0.6216747
42
Asserts that correct templates were used to render the view.
def jBtu(YKHO, geh0): YKHO.assertGSoCTemplatesUsed(geh0) YKHO.assertTemplateUsed(geh0, 'v2/modules/gsoc/profile_show/base.html') YKHO.assertTemplateUsed(geh0, 'v2/modules/gsoc/_readonly_template.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dRey(YKHO):\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/create_view.html')\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/form.html')\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/search_form.html')\n YKHO.assertTemplateUsed(YKHO.response, 'base.html')", "def dRey(YKHO):\n YKHO.asser...
[ "0.7673474", "0.762127", "0.7464489", "0.74517673", "0.7412712", "0.73580825", "0.73388934", "0.73118484", "0.73070085", "0.73053074", "0.72542953", "0.72440994", "0.7218357", "0.716116", "0.71482104", "0.71395594", "0.7119605", "0.7117197", "0.7113779", "0.7097004", "0.70879...
0.0
-1
Tests that a user who is not logged in and trying to access its profile is redirected to a login page.
def GDzQ(YKHO): import os onA8 = os.environ.get('USER_EMAIL', None) try: os.environ['USER_EMAIL'] = '' bD7m = '/gsoc/profile/show/' + YKHO.gsoc.key().name() geh0 = YKHO.get(bD7m) SjFX = 'https://www.google.com/accounts/Login?' + 'continue=http%3A//Foo%3A8080' + bD7m j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uMgY(YKHO):\n geh0 = YKHO.client.get(gxEw('profile', args=(1,)))\n YKHO.assertEqual(302, geh0.status_code)", "def ivxi(YKHO):\n CBIr = i9zE()\n geh0 = CBIr.get('/accounts/profile/')\n YKHO.assertEqual(geh0.url, '/accounts/login/?next=/accounts/profile/')\n YKHO.assertEqual(geh0.status_code,...
[ "0.8550576", "0.82085437", "0.8197522", "0.8041206", "0.8033563", "0.8012073", "0.795103", "0.79479474", "0.78423417", "0.7814649", "0.77809095", "0.77783906", "0.7775168", "0.77574074", "0.7709988", "0.7703657", "0.7697028", "0.76898825", "0.7677365", "0.76608855", "0.765851...
0.76999885
16
Asserts that correct templates were used to render the view.
def koKv(YKHO, geh0): YKHO.assertGSoCTemplatesUsed(geh0) YKHO.assertTemplateUsed(geh0, 'v2/modules/gsoc/profile_show/base.html') YKHO.assertTemplateUsed(geh0, 'v2/modules/gsoc/_readonly_template.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dRey(YKHO):\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/create_view.html')\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/form.html')\n YKHO.assertTemplateUsed(YKHO.response, 'tweets/search_form.html')\n YKHO.assertTemplateUsed(YKHO.response, 'base.html')", "def dRey(YKHO):\n YKHO.asser...
[ "0.7673474", "0.762127", "0.7464489", "0.74517673", "0.7412712", "0.73580825", "0.73388934", "0.73118484", "0.73070085", "0.73053074", "0.72542953", "0.72440994", "0.7218357", "0.716116", "0.71482104", "0.71395594", "0.7119605", "0.7117197", "0.7113779", "0.7097004", "0.70879...
0.0
-1
Tests that a user who is not logged in and trying to access its profile is redirected to a login page.
def GDzQ(YKHO): NEhN = u0eh(YKHO.gsoc, YKHO.dev_test) NEhN.createOtherUser('notloggedinuser@example.com') NEhN.createProfile() import os onA8 = os.environ.get('USER_EMAIL', None) try: os.environ['USER_EMAIL'] = '' bD7m = '/gsoc/profile/admin/' + NEhN.profile.key().name() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uMgY(YKHO):\n geh0 = YKHO.client.get(gxEw('profile', args=(1,)))\n YKHO.assertEqual(302, geh0.status_code)", "def ivxi(YKHO):\n CBIr = i9zE()\n geh0 = CBIr.get('/accounts/profile/')\n YKHO.assertEqual(geh0.url, '/accounts/login/?next=/accounts/profile/')\n YKHO.assertEqual(geh0.status_code,...
[ "0.8550576", "0.82085437", "0.8197522", "0.8041206", "0.8033563", "0.8012073", "0.795103", "0.78423417", "0.7814649", "0.77809095", "0.77783906", "0.7775168", "0.77574074", "0.7709988", "0.7703657", "0.76999885", "0.7697028", "0.76898825", "0.7677365", "0.76608855", "0.765851...
0.79479474
7
Tests that a normal user can not access the its admin profile url.
def SXkZ(YKHO): YKHO.data.createStudent() bD7m = '/gsoc/profile/admin/' + YKHO.data.profile.key().name() geh0 = YKHO.get(bD7m) YKHO.assertResponseForbidden(geh0) YKHO.data.deleteProfile().createMentor(YKHO.org) geh0 = YKHO.get(bD7m) YKHO.assertResponseForbidden(geh0) YKHO.data.createOrgA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WapE(YKHO):\n geh0 = YKHO.connect_dummy_user_fixture()\n geh0 = YKHO.testapp.get('/tools/user/1/show', status=302)\n vKnz = geh0.follow()\n YKHO.assertEqual(vKnz.status, '200 OK')\n YKHO.assertEqual(vKnz.request.path, '/')\n YKHO.assertTrue('Insufficient permissions!' in vKnz.body)", "def c...
[ "0.7908482", "0.7895036", "0.7574025", "0.753781", "0.75044334", "0.73243344", "0.7295342", "0.7295342", "0.7295342", "0.7276381", "0.72485626", "0.72205025", "0.72205025", "0.72205025", "0.72205025", "0.72205025", "0.72205025", "0.72205025", "0.72205025", "0.72205025", "0.72...
0.7946689
0
Returns the Softmax layer with optional label smoothing.
def z8pf(YKHO, mWFP): return YKHO._Graph(mWFP, ['i'], ['o'], ('->w', YKHO.SharedEncBiasWeights('w')), ('i,w->o', YKHO._Fn('add', lambda WKvO, yzQ0: WKvO + yzQ0)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vPO6(YKHO, o4Jx, jTqs):\n d55Y = FYPu(jTqs, YKHO.prior)\n return d55Y(o4Jx)", "def vPO6(FRUf, Gzv5, EDoJ, mWFP):\n with ZylS.name_scope(mWFP):\n _mSQ = E9N2(Gzv5 + EDoJ)\n HabP = Y7ph(EDoJ)\n with ZylS.name_scope('activation'):\n YDYE = ZylS.matmul(FRUf, _mSQ) + HabP\...
[ "0.69306284", "0.6882976", "0.6754228", "0.6680798", "0.6674676", "0.6605214", "0.6522123", "0.65135086", "0.65001315", "0.6464065", "0.63424706", "0.63360316", "0.6333008", "0.6221824", "0.61383545", "0.6113137", "0.6088805", "0.60880893", "0.6052009", "0.60073215", "0.60065...
0.0
-1
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(R7bL, YKHO).__init__(*qIxc, **c_sp) if YKHO.header is None: YKHO.header = kKAJ.msg.Header() if YKHO.rgb_camera_info is None: YKHO.rgb_camera_info = gXBl.msg.CameraInfo() if YKHO.depth_camera_info 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.81645745", "0.7718656", "0.7718656", "0.76512235", "0.75726247", "0.7542752", "0.7484152", "0.74688715", "0.74572617", "0.7444701", "0.74434286", "0.7432273", "0.741445", "0.740745", "0.73911446", "0.7374251", "0.7361524", "0.7323566", "0.73224604", "0.73224604", "0.732246...
0.0
-1
Convert a pyAV video format into a numpy dtype
def q1AR(format: av.VideoFormat) -> oyIN.dtype: if len(format.components) == 0: raise ValueError(f"Can't determine dtype from format `{format.name}`. It has no channels.") dmhX = '>' if format.is_big_endian else '<' yDqo = 'f' if 'f32' in format.name else 'u' t7YX = [WKvO.bits for WKvO in format...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dBgW(pmON, Aogg='temp_audio.wav'):\n H2b8 = g2zq.VideoFileClip(pmON)\n H2b8.audio.write_audiofile(Aogg)\n Vb5F, nPrm = C7H1.read(Aogg)\n qiYC = nPrm.T[1, :]\n return (Vb5F, qiYC)", "def Mlea(iumf, cM24=None, vZGE=None, GLrY=False):\n assert cM24 in Zh35\n global NUM_CHANNELS_VIDEO\n i...
[ "0.6416002", "0.6406043", "0.62839335", "0.62067205", "0.6130952", "0.61184096", "0.607581", "0.60162437", "0.59700733", "0.5944954", "0.59200996", "0.59058803", "0.58528334", "0.57811844", "0.5766215", "0.5738234", "0.5695915", "0.5676076", "0.56753725", "0.5667327", "0.5658...
0.66112494
0
Add a frame to the video stream. This function appends a new frame to the video. It assumes that the stream previously has been initialized. I.e., ``init_video_stream`` has to be called before calling this function for the write to succeed.
def xKPD(YKHO, f4IJ: np.ndarray, *, QnS2: str='rgb24') -> None: QnS2 = EKeu.VideoFormat(QnS2) fxRE = q1AR(QnS2) TVTK = f4IJ.shape[2 if QnS2.is_planar else 1] H2v2 = f4IJ.shape[1 if QnS2.is_planar else 0] sP8w = EKeu.VideoFrame(TVTK, H2v2, QnS2.name) if QnS2.is_planar: for or8S, kEC0 in e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yt7t(YKHO, f4IJ):\n assert isinstance(f4IJ, Ybws)\n YKHO.frames.append(f4IJ)", "def uuGO(YKHO, f4IJ):\n pNlb = EKeu.VideoFrame(width=f4IJ.width, height=f4IJ.height, format=f4IJ.format.name)\n for YRbF in range(len(f4IJ.planes)):\n pNlb.planes[YRbF].update(f4IJ.planes[YRbF])\n xwUm = Non...
[ "0.71227705", "0.68645877", "0.6627732", "0.6583573", "0.658284", "0.64758205", "0.63386786", "0.6313938", "0.6290356", "0.62350714", "0.6185949", "0.6185237", "0.61347216", "0.6084121", "0.59951097", "0.5962589", "0.5878582", "0.5848113", "0.5738011", "0.5734097", "0.5692528...
0.60095227
14
>>> random.seed(10) >>> Randomlist=[[] for _ in range(random.randrange(5))] >>> Randomlist [[], []]
def b8V_(): _RR0 = open('TestLists.csv', 'wt') WJI9 = m6_J.writer(_RR0, lineterminator='\n') for U6D_ in BQzn: sUu6(U6D_) ot94(U6D_) WJI9.writerow(U6D_) print(BQzn) _RR0.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FZ7D():\n tuKI.seed(70)\n aLwL = []\n for YRbF in range(10):\n aLwL.append(30 + 5 * tuKI.random())\n print(aLwL)", "def KOc2(yokr):\n xlLU = SxBR.UniformDeviate(yokr)\n yvT9 = []\n for YRbF in range(20):\n yvT9.append(xlLU())\n return yvT9", "def KOc2(yokr):\n xlLU ...
[ "0.75919044", "0.7269262", "0.7269262", "0.6964208", "0.68974", "0.67898107", "0.67164755", "0.66097736", "0.65878874", "0.6548336", "0.65366226", "0.6416109", "0.64141345", "0.63309556", "0.6295866", "0.6284642", "0.6281998", "0.6274082", "0.6257688", "0.6250886", "0.6250886...
0.0
-1
Seeds the state of the cuda RNGs (all devices)
def xuKt(yokr): ht2j.cuda.manual_seed_all(yokr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GAJI() -> None:\n\n def BBLH():\n igb0 = 0\n uWUd = False\n for YRbF in range(m0SM()):\n H37k = ht2j.cuda.default_generators[YRbF]\n if not uWUd:\n H37k.seed()\n igb0 = H37k.initial_seed()\n uWUd = True\n else...
[ "0.77798396", "0.76514417", "0.7375153", "0.7367336", "0.72994345", "0.72797143", "0.72677755", "0.72598195", "0.72511417", "0.72097975", "0.7200897", "0.71984476", "0.71373886", "0.71362257", "0.71250516", "0.7095098", "0.7058245", "0.70553595", "0.7042099", "0.70395195", "0...
0.79425216
0
Seeds the state of the cpu RNG alone. This is different from `torch.random.manual_seed`, which also initializes the cuda RNGs.
def PSs1(yokr): H37k.manual_seed(yokr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xuKt(yokr):\n ht2j.cuda.manual_seed_all(yokr)", "def e3of():\n ht2j.manual_seed(SGPK.RANDOM_SEED)\n ht2j.cuda.manual_seed_all(SGPK.RANDOM_SEED)\n ht2j.backends.cudnn.deterministic = True\n ht2j.backends.cudnn.benchmark = False\n oyIN.random.seed(SGPK.RANDOM_SEED)\n Hy7s.environ['PYTHONHA...
[ "0.81672066", "0.7916231", "0.7863487", "0.78032684", "0.78011", "0.7789012", "0.77877545", "0.778243", "0.77743703", "0.77728117", "0.776436", "0.7748962", "0.7746005", "0.77384955", "0.77345103", "0.772763", "0.77249753", "0.7707344", "0.76940596", "0.76890135", "0.76826334...
0.7837463
3
Decay learning rate by a factor of 0.1 every lr_decay_epoch epochs.
def eDsF(K0do, qtWj, DJmW=0.001, jnHZ=7): tspZ = DJmW * 0.1 ** (qtWj // jnHZ) if qtWj % jnHZ == 0: print('LR is set to {}'.format(tspZ)) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ return K0do
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwoX(qtWj, b0Ix):\n return b0Ix / 1.1", "def PjIb(YKHO):\n if YKHO.decay:\n YKHO.lr = YKHO.decay * YKHO.lr", "def PjIb(qtWj):\n assert Nlk2.nn_solver in ('sgd', 'momentum', 'adam')\n if qtWj >= Nlk2.lr_decay_after_epoch:\n gxDU = Nlk2.lr_decay_after_epoch / Nlk2.floatX(qtWj) * Nlk...
[ "0.8291664", "0.8266521", "0.8234404", "0.82235026", "0.80433357", "0.78540355", "0.780998", "0.7805587", "0.7780508", "0.7773197", "0.7765782", "0.7732937", "0.7708644", "0.76925606", "0.76925606", "0.76925606", "0.7642324", "0.7628484", "0.76168543", "0.7587379", "0.7557118...
0.0
-1
Get an authenticated cups instance.
def MNBQ(): return cTlr.CUPS(url='https://{}:{}'.format(Hy7s.environ['CUPS_PORT_631_TCP_ADDR'], Hy7s.environ['CUPS_PORT_631_TCP_PORT']), username=Hy7s.environ['CUPS_ENV_CUPS_USER_ADMIN'], password=Hy7s.environ['CUPS_ENV_CUPS_USER_PASSWORD'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iSDi(Emd4):\n if Emd4.INSTANCE is None:\n Emd4.INSTANCE = Rx9P()\n return Emd4.INSTANCE", "def iSDi(NtEF, rJDA, bD7m, AU45=None, rxBR=None):\n E_qD = aDzh(uBwj.RACKSPACE)\n B2fa = {'ex_force_base_url': bD7m, 'ex_force_auth_url': AU45, 'ex_force_auth_token': rxBR}\n return E_qD(NtEF, rJD...
[ "0.5929819", "0.58682555", "0.5849972", "0.5842788", "0.57155985", "0.5625744", "0.5571229", "0.5570731", "0.5547306", "0.5468167", "0.5428109", "0.54118186", "0.540679", "0.54003066", "0.54003066", "0.54003066", "0.5358135", "0.5313405", "0.5308945", "0.5269365", "0.5266794"...
0.5939769
0
Updates the position of the player and updates player movement
def VDGG(YKHO): YKHO.x, YKHO.y = (YKHO.rect.x, YKHO.rect.y) YKHO.handle_movement()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def chpw(YKHO):\n YKHO.player.move()", "def uDva(YKHO):\n Jw7X = YKHO.get_dx()\n eUWA = YKHO.get_dy()\n YKHO.player_sprite.center_x += Jw7X\n YKHO.player_sprite.center_y += eUWA\n if YKHO.player_sprite.center_x > zMH2:\n YKHO.player_sprite.center_x = zMH2\n elif YKHO.player_sprite.cen...
[ "0.8274957", "0.79182", "0.7773292", "0.7659804", "0.75699764", "0.75652957", "0.7462936", "0.7335072", "0.7300143", "0.72547174", "0.72292817", "0.72233695", "0.7185002", "0.717878", "0.7139792", "0.70914394", "0.7088469", "0.7071722", "0.70630586", "0.70620096", "0.7054383"...
0.82484883
1
Draws multiple players Draws a border around each player
def Xjxi(YKHO, Bwa6): for oyg0 in Bwa6: oyg0.draw() g74T.draw.rect(YKHO.WIN, oyg0.color, (oyg0.x, oyg0.y, oyg0.width, oyg0.height), 3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rrWi(YKHO):\n for YRbF in range(len(YKHO.players)):\n VmwA = YKHO.players[YRbF].pos\n mrj1 = a9eO.image.load(YKHO.players[YRbF].icon).convert()\n mrj1 = a9eO.transform.scale(mrj1, (YKHO.boardsize / 12, YKHO.boardsize / 12))\n J9_C = abs(YKHO.spaces[VmwA].edge3 - YKHO.spaces[VmwA]...
[ "0.7533793", "0.7467896", "0.70632637", "0.70224345", "0.70067847", "0.6952125", "0.69405824", "0.69057477", "0.6873408", "0.68095213", "0.68011534", "0.67924434", "0.67619085", "0.6748688", "0.6742852", "0.6713612", "0.66416085", "0.6632224", "0.6619112", "0.66079617", "0.65...
0.8248831
0
Calculates the x value and returns it.
def EUQT(YKHO): YKHO.xValue = int(YKHO.cursorX * YKHO.xMax / (YKHO.width * YKHO.zoomX)) return YKHO.xValue
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIKw(YKHO):\n return YKHO.x", "def vAgg(YKHO):\n return YKHO._x", "def nIKw(YKHO):\n return YKHO.x", "def WKvO(YKHO) -> float:\n return YKHO.__x", "def nIKw(YKHO):\n cLdk = None\n with YKHO.lock:\n cLdk = YKHO.__get_x__()\n return cLdk", "def nIKw(YKHO):\n return YKHO.x...
[ "0.8094193", "0.8045239", "0.803762", "0.8029552", "0.7999199", "0.799413", "0.7985281", "0.7982274", "0.79788405", "0.79788405", "0.79675025", "0.7953087", "0.7924868", "0.7880205", "0.7877765", "0.7875118", "0.7861172", "0.7797983", "0.7797983", "0.7747918", "0.7724783", ...
0.70749557
84
Decay learning rate by a factor of 0.1 every lr_decay_epoch epochs.
def eDsF(K0do, qtWj, DJmW=0.001, jnHZ=20): tspZ = DJmW * 0.5 ** (qtWj // jnHZ) if qtWj % jnHZ == 0: print('LR is set to {}'.format(tspZ)) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ return K0do
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwoX(qtWj, b0Ix):\n return b0Ix / 1.1", "def PjIb(YKHO):\n if YKHO.decay:\n YKHO.lr = YKHO.decay * YKHO.lr", "def PjIb(qtWj):\n assert Nlk2.nn_solver in ('sgd', 'momentum', 'adam')\n if qtWj >= Nlk2.lr_decay_after_epoch:\n gxDU = Nlk2.lr_decay_after_epoch / Nlk2.floatX(qtWj) * Nlk...
[ "0.8291664", "0.8266521", "0.8234404", "0.82235026", "0.80433357", "0.78540355", "0.780998", "0.7805587", "0.7780508", "0.7773197", "0.7765782", "0.7732937", "0.7708644", "0.76925606", "0.76925606", "0.76925606", "0.7642324", "0.7628484", "0.76168543", "0.7587379", "0.7557118...
0.0
-1
Copy the weights of the policy network into the target network
def GIFa(KGIH, qmNW, YRbF, jmzt): if YRbF % jmzt == 0: KGIH.set_weights(qmNW.get_weights())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j7s1(YKHO, pan_, JZXy):\n for SIgb, xqoZ in zip(pan_.parameters(), JZXy.parameters()):\n SIgb.data.copy_(xqoZ.data)", "def gByt(YKHO) -> None:\n YKHO.target_model.set_weights(YKHO.online_model.get_weights())", "def gByt(YKHO):\n YKHO.target_q_net.set_weights(YKHO.q_net.get_weights())", "d...
[ "0.737123", "0.73355955", "0.72857463", "0.72657967", "0.7220668", "0.70832837", "0.702535", "0.7013987", "0.6921068", "0.6907355", "0.6907127", "0.69004697", "0.6896976", "0.68879634", "0.68504673", "0.68347424", "0.68347424", "0.6823329", "0.67545074", "0.6732099", "0.66909...
0.0
-1
Instead of using the sparse reward signal given by the environment Mountaincarv0 (the episodes' rewards are always the same until you reach the flag once), I use this signal that rewards getting closer to the flag, and penalize being to far, in particular staying in the middle
def dLqk(oeNL, _ins, NXAT): vOGg = -1 if _ins: if oeNL >= 0.5: vOGg += 1 NXAT += 1 return (vOGg, NXAT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xyVK(YKHO):\n \"\"\"distance = np.sqrt(sum((self.target_pose - self.sim.pose[:3]) ** 2))\n reward = (1 / distance) * 5\n reward -= np.tanh(abs(self.sim.pose[0])) + np.tanh(abs(self.sim.pose[1]))\n \n return reward\"\"\"\n 'reward = 1.-.3*(abs(self.sim.pose[:3] - self.target_po...
[ "0.70339376", "0.68303096", "0.6713627", "0.6552519", "0.649135", "0.64870006", "0.6475581", "0.64693886", "0.64237815", "0.6398698", "0.63812184", "0.63669795", "0.63297343", "0.6313208", "0.631018", "0.6294581", "0.62928045", "0.628714", "0.6271041", "0.6265518", "0.6262297...
0.0
-1
Returns True if the user has each of the specified permissions. If object is passed, it checks if the user has all required perms for this object.
def lvZ3(YKHO, zSgV, YEnM=None): for IuXB in zSgV: if not YKHO.has_perm(IuXB, YEnM): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lgjl(CBIr, YEnM, awnO, moMn=True):\n KAOR = isinstance(YEnM, (wOed,))\n C3ST = YEnM.__class__ if KAOR else YEnM\n try:\n w0rQ = VJ23[C3ST]\n except KeyError:\n return False\n q5Eb = {}\n for IuXB in awnO:\n q5Eb[IuXB] = True\n P8oC = w0rQ.objects.filter(**q5Eb)\n if...
[ "0.7823377", "0.7746325", "0.7746325", "0.76943403", "0.74512684", "0.7420842", "0.7388652", "0.7350591", "0.725953", "0.72404486", "0.7231571", "0.7214166", "0.71581453", "0.71472657", "0.71011066", "0.7070456", "0.7062795", "0.70340943", "0.7034029", "0.7016703", "0.699428"...
0.7573424
4
Returns True if the user has any permissions in the given app label. Uses pretty much the same logic as has_perm, above.
def spO2(YKHO, tKz9): if YKHO.is_active and YKHO.is_superuser: return True for DDLl in Jpbe.get_backends(): if not hasattr(DDLl, 'has_module_perms'): continue try: if DDLl.has_module_perms(YKHO, tKz9): return True except wPvU: r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def spO2(YKHO, tKz9):\n if YKHO.is_active and YKHO.is_superuser:\n return True\n return Sd76(YKHO, tKz9)", "def spO2(YKHO, tKz9):\n if YKHO.is_active and YKHO.is_superuser:\n return True\n return Sd76(YKHO, tKz9)", "def spO2(YKHO, tKz9):\n if YKHO.is_active and YKHO.is_superuser:\n...
[ "0.7720108", "0.7720108", "0.7720108", "0.7683401", "0.765229", "0.7603845", "0.75351256", "0.75351256", "0.75351256", "0.75351256", "0.74995625", "0.74920505", "0.7450253", "0.7450253", "0.7450253", "0.7450253", "0.7450253", "0.7439992", "0.73848987", "0.7378349", "0.7354336...
0.74089354
18
Returns a list with the labels that appear in self, sorted in lexicographical order. Repetitions may arise if the user enters trees which are not phylogenetic.
def Crrw(YKHO): return sorted(list(YKHO.leaves()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oe8U(YKHO):\n u8mD = reversed([WKvO for WKvO in YKHO.yield_reversed_preterminals()])\n V22M = [WKvO.children[0].label for WKvO in u8mD]\n return V22M", "def Crrw(YKHO):\n aS8s = U8Lr()\n for J_Es in YKHO:\n for UXqs, zFiD in J_Es.to_labeled_lines():\n aS8s[zFiD] = UXqs\n r...
[ "0.7407958", "0.7373095", "0.7243264", "0.68220454", "0.6801041", "0.6795378", "0.6792425", "0.6665413", "0.6638895", "0.6638895", "0.6606707", "0.660659", "0.65659606", "0.65515393", "0.6442674", "0.64379835", "0.6432107", "0.64195067", "0.6375702", "0.6373968", "0.63658434"...
0.83914715
0
Returns True if self is phylogenetic (namely, if it has no repeated leaves). Returns False otherwise.
def FQrJ(YKHO): aPd6 = YKHO.labels() for YRbF in range(1, len(aPd6)): if aPd6[YRbF] == aPd6[YRbF - 1]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y8Td(YKHO):\n return len(YKHO.get_all_node()) - 1 == YKHO.get_nb_linck()", "def loae(YKHO) -> bool:\n return YKHO.weight > 0 and YKHO.subtrees == []", "def loae(YKHO) -> bool:\n return YKHO.weight > 0 and YKHO.subtrees == []", "def loae(YKHO) -> bool:\n return YKHO.weight > 0 and YKHO.subtree...
[ "0.68720424", "0.67696786", "0.67696786", "0.67696786", "0.67696786", "0.6717962", "0.669563", "0.668832", "0.66802657", "0.66338223", "0.6630698", "0.6627816", "0.6613045", "0.65773445", "0.6577206", "0.65770984", "0.6566967", "0.6558013", "0.65351075", "0.65185666", "0.6502...
0.78914106
0
Authenticates a user and returns a json web token In the response body, refresh_token is the refresh token and jwt is the access token
def kDl0(): if not QePW.json: geh0 = {'message': 'no post body'} return (pz3A(geh0), 400) ly37 = QePW.json if 'username' not in ly37 or 'password' not in ly37: geh0 = {'message': 'missing key in post body'} return (pz3A(geh0), 400) NtEF = ly37['username'] jTXt = ly37[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8z6(YKHO):\n uJjO = Zul5()\n RKD7.info(f'Refreshing token for user_id {uJjO}')\n CBIr = NCls.User.get(uJjO)\n U5bT = {'access_token': VuvO(CBIr)}\n return (U5bT, qed_.OK)", "def iPse():\n c5ow = Zul5()\n NT__ = VuvO(identity=c5ow)\n HWsS(NT__, P4t4.config['JWT_IDENTITY_CLAIM'])\n ...
[ "0.74088746", "0.7326116", "0.72872674", "0.71933955", "0.7190333", "0.70783484", "0.7048357", "0.70267737", "0.702432", "0.6962802", "0.6904255", "0.68768466", "0.68746465", "0.68360907", "0.6819237", "0.6813909", "0.67864424", "0.67864424", "0.678175", "0.6729906", "0.67214...
0.6365136
50
Updates the password for the user
def faAE(): if not QePW.json: geh0 = {'message': 'no post body'} return (pz3A(geh0), 400) else: if 'old_password' not in QePW.json: geh0 = {'message': 'old_password missing in post body'} return (pz3A(geh0), 400) if 'new_password' not in QePW.json: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cDCx(YKHO):\n p9bx.update(f'UPDATE {gCuF.users_table} SET password==\"{YKHO.new_password.text()}\" WHERE user = \"{YKHO.username.text()}\"')", "def ZfHT(YKHO):\n YKHO.password = input('Enter your new password :')\n if YKHO.data.update_password(YKHO.user_name, YKHO.password):\n print('Password...
[ "0.8517745", "0.847304", "0.8196613", "0.81452066", "0.79918855", "0.7982948", "0.79573405", "0.79489183", "0.79438233", "0.79329026", "0.79303753", "0.79211444", "0.79057", "0.7879981", "0.7857844", "0.7843948", "0.7827985", "0.7777605", "0.7761231", "0.77608174", "0.7752645...
0.0
-1
Iterate on the raw PTB data. This chunks up raw_data into batches of examples and returns Tensors that are drawn from these batches.
def cI2v(WPdU, Ep8u, AIZ9, mWFP=None): with ZylS.name_scope(mWFP, 'PTBProducer', [WPdU, Ep8u, AIZ9]): WPdU = ZylS.convert_to_tensor(WPdU, name='raw_data', dtype=ZylS.int32) j8Af = ZylS.size(WPdU) J2wu = j8Af // Ep8u nPrm = ZylS.reshape(WPdU[0:Ep8u * J2wu], [Ep8u, J2wu]) LIcp ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yRFS(WPdU, Ep8u, AIZ9, AnGx=1):\n WPdU = oyIN.array(WPdU, dtype=oyIN.int32)\n j8Af = len(WPdU)\n J2wu = j8Af // Ep8u\n nPrm = oyIN.zeros([Ep8u, J2wu], dtype=oyIN.int32)\n vgXP = 0\n if j8Af % Ep8u:\n vgXP = oyIN.random.randint(0, j8Af % Ep8u)\n for YRbF in range(Ep8u):\n nPrm...
[ "0.66500264", "0.6618745", "0.65939415", "0.6463117", "0.6456298", "0.63926286", "0.63280404", "0.6304426", "0.6272877", "0.6191399", "0.6184399", "0.6181933", "0.61638", "0.61619514", "0.61575145", "0.61493504", "0.61387205", "0.6123609", "0.6113284", "0.60684276", "0.605509...
0.0
-1
Make the required DataLoaders and datasets.
def lpwo(Ep8u, I7Gy, HXw9, begE, PurT): if isinstance(begE, list): begE = begE[0] tgCD = tGKa('data', download=True, device=begE) aICo = tGKa('data', download=True, train=False, device=begE) PurT.info(f'Loaded dataset on {begE}') wjRY = len(tgCD) d1qL = int(wjRY * (1 - HXw9)) XTsY = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eCGt(YKHO):\n YKHO.data = YKHO.dataclass(*[oxOY.shared_instance(default_refclass=YKHO.dataclass) for oxOY in iter(YKHO.datasets)])\n YKHO.loader.load(YKHO.data)", "def YSfv(YKHO):\n _Fei = sHyf\n geJW = jeFo([_J6p(), NBqJ((_Fei.mean,), (_Fei.std,))])\n nyaT = {'root': _Fei.root, 'transform': g...
[ "0.7894159", "0.75569624", "0.72563404", "0.7253652", "0.71707183", "0.714811", "0.71467143", "0.70884365", "0.7086438", "0.70653343", "0.7037081", "0.7009919", "0.70044", "0.6990224", "0.69609016", "0.69604456", "0.69456387", "0.69419825", "0.69207484", "0.6920185", "0.69103...
0.0
-1
Now we will use self attention mechanism to produce a matrix embedding of the input sentence in which every row represents an encoding of the input sentence but giving an attention to a specific part of the sentence. We will use 30 such embedding of the input sentence and then finally we will concatenate all the 30 sen...
def eyGP(YKHO, x90S): lyL1 = YKHO.W_s2(vuvg.tanh(YKHO.W_s1(x90S))) lyL1 = lyL1.permute(0, 2, 1) lyL1 = vuvg.softmax(lyL1, dim=2) return lyL1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, hAgN, Ep8u=None):\n input = YKHO.word_embeddings(hAgN)\n input = input.permute(1, 0, 2)\n if Ep8u is None:\n NgLN = iQnE(ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size))\n K5j2 = iQnE(ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size))\n else:\n NgLN = iQnE(ht2j.zeros...
[ "0.7575796", "0.728328", "0.72800964", "0.7185046", "0.7162009", "0.7132677", "0.71080536", "0.7103009", "0.70675707", "0.7061028", "0.7040823", "0.7037984", "0.6999938", "0.69737804", "0.69512475", "0.69493496", "0.69308937", "0.6926109", "0.6922295", "0.69215417", "0.689255...
0.0
-1
Extend the contribution WTForm to add the extra fields. Each extra field will use a field named ``custom_ID``.
def _Y0L(tvqc, *, fwgw=True, _7Ll=False): from indico.modules.events.contributions.forms import ContributionForm OWw8 = OGgO if _7Ll else ContributionForm V002 = type('_ContributionForm', (OWw8,), {}) for dCAY in tvqc.contribution_fields: tMal = dCAY.mgmt_field if fwgw else dCAY.field if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Mhh(Zi1j):\n\n def r69t(YKHO, *qIxc, **B2fa):\n if 'extra_fields' in B2fa:\n YKHO.extra_fields = B2fa.pop('extra_fields')\n super(Zi1j, YKHO).__init__(*qIxc, **B2fa)\n for o2Aq in YKHO.extra_fields:\n vF49 = o2Aq.field_type\n if vF49 == ...
[ "0.64774543", "0.64772946", "0.6464888", "0.63290024", "0.63290024", "0.63290024", "0.63290024", "0.63290024", "0.63290024", "0.63164955", "0.6014147", "0.598401", "0.5978796", "0.5968274", "0.5935409", "0.5886319", "0.58766866", "0.58766866", "0.58766866", "0.5767475", "0.57...
0.56592184
24
Retrieve JSON report of a scan.
def HPmh(YKHO, B5en): bo34.debug(f'Requesting JSON report for scan {B5en}') MOPg = {'Authorization': YKHO.__apikey} nPrm = {'hash': B5en} Mkmy = G4JS.post(f'{YKHO.__server}/api/v1/report_json', data=nPrm, headers=MOPg) return Mkmy.json()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W1eO(YKHO, qpft, NKcE='GET'):\n j8eK = 'scans/{scan_id}'.format(scan_id=qpft)\n nPrm = {}\n v9Lt = YKHO.json_request(NKcE, j8eK, nPrm)\n return v9Lt", "def SPWM(YKHO, **B2fa):\n return YKHO.scantron_api_query('/api/scans').json()", "def tRBe(YKHO, bD7m, Eorv, QxIo=False):\n nPrm = dict(re...
[ "0.7093554", "0.7043133", "0.7015192", "0.7000905", "0.67538875", "0.6669286", "0.65920746", "0.6518352", "0.6501532", "0.6470175", "0.6463313", "0.6377239", "0.63553536", "0.63091844", "0.6290547", "0.62277424", "0.6187965", "0.6172152", "0.61656725", "0.61582893", "0.615399...
0.78201693
0
Calculates the percentage of each character in a given text file. Returns the data in a dictionary.
def U7MR(Ybr5, nPrm: dict) -> dict: NJn1: int = FNNQ(Ybr5) eywR: dict = {} for y6Fq in nPrm: eywR[y6Fq] = nPrm[y6Fq] / NJn1 * 100 return eywR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4pn(l5Ny):\n f8a3 = {}\n UHFx = 0\n for Z9rn in l5Ny:\n Z9rn = Z9rn.lower()\n if Z9rn in f8a3:\n f8a3[Z9rn] += 1\n else:\n f8a3[Z9rn] = 1\n UHFx += 1\n return {hcXw: wEf2 / UHFx for hcXw, wEf2 in f8a3.items()}", "def C_2z():\n dict = SyBB(4022...
[ "0.692246", "0.6808696", "0.65348375", "0.6389653", "0.6378291", "0.61913145", "0.6158857", "0.6135568", "0.61103207", "0.6051259", "0.6048542", "0.6027889", "0.6017566", "0.6003138", "0.59889805", "0.596911", "0.5966054", "0.59493583", "0.5938222", "0.59287846", "0.59270495"...
0.84274
0
Transforms lattice by a random matrix starting from random position.
def I0qU(YKHO, QnmL, _fqP): vb7U = _fqP.generate_random() iLdm = len(QnmL.coors_list) aqFJ = tuKI.choice(range(iLdm - 1)) return YKHO.transform_coors(QnmL.coors_list, vb7U, aqFJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7I3():\n return bULF(tuKI(), axis=oyIN.random.random((3,)))", "def A3Ab(YKHO):\n YKHO.config = oyIN.random.choice([-1, 1], size=tuple([YKHO.L] * YKHO.dim))", "def B9iM():\n return oyIN.array([[int(2 * (tuKI.randint(0, 1) - 0.5)) for WKvO in range(SYHL)] for LVAh in range(SYHL)])", "def fcZx(YKH...
[ "0.695668", "0.653237", "0.6338252", "0.6252614", "0.61807364", "0.61585176", "0.6069653", "0.60457665", "0.6022091", "0.596884", "0.5960939", "0.59424627", "0.59354746", "0.5931203", "0.59227264", "0.5905184", "0.5905184", "0.58677894", "0.58544236", "0.58342004", "0.5832779...
0.56817865
32
Reshape a model's output layers for the given number of classes
def ntV7(C3ST, JACg, jTqs): if JACg.startswith('resnet'): C3ST.fc = ht2j.nn.Linear(C3ST.fc.in_features, jTqs) print('=> reshaped ResNet fully-connected layer with: ' + str(C3ST.fc)) elif JACg.startswith('alexnet'): C3ST.classifier[6] = ht2j.nn.Linear(C3ST.classifier[6].in_features, jTqs)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vb7L(YKHO, FGW3, hlel):\n hlel = hlel.reshape(YKHO.output_shapes[FGW3])\n hlel = hlel.permute(0, 2, 3, 1)\n Ep8u, H2v2, TVTK, bGrB = hlel.shape\n qNoP = Ep8u\n MFrU, fRuM = (H2v2, TVTK)\n nSKI = 3\n vsbj = 4 + 1 + YKHO.classes_num\n return ht2j.reshape(hlel, (qNoP, MFrU, fRuM, nSKI, vsb...
[ "0.7210271", "0.6615323", "0.6605068", "0.6604477", "0.6316236", "0.62387645", "0.6235709", "0.62164", "0.6158754", "0.60684675", "0.60271114", "0.59955347", "0.598287", "0.5980894", "0.5937471", "0.5901918", "0.59000856", "0.58956754", "0.5851902", "0.58473384", "0.584324", ...
0.68765104
1
Set up this integration using UI.
async def async_setup_entry(ajET, PhL6): PhL6.add_update_listener(DHFL) ll2q = await xMks(ajET) if not ll2q: return False PhL6.options = PhL6.data ajET.async_add_job(ajET.config_entries.async_forward_entry_setup(PhL6, 'sensor')) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def setup(YKHO):\n hENg = YKHO.services['launcher']\n if QTw_ is None:\n raise ValueError(\"bui isn't installed, can't create the graphical launcher\")\n YKHO.window = QTw_.parse_layout(QTw_, process=YKHO, service=hENg)\n YKHO.window_task = V7ok.create_task(YKHO.start_window())", "def S4...
[ "0.7019831", "0.67868066", "0.67009586", "0.66922796", "0.6620181", "0.6615795", "0.66041917", "0.6604052", "0.65823936", "0.65612704", "0.6550754", "0.6541285", "0.6540261", "0.65277576", "0.65092325", "0.6506318", "0.64997274", "0.6493372", "0.6476091", "0.6465408", "0.6465...
0.0
-1