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
Constructs a deck from scratch Uno decks have two sets of every standard card except for 0s, which have one, and the wild types, which have 4 each
def o8Yu(YKHO): for YRbF in ['Red', 'Green', 'Yellow', 'Blue']: for r845 in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'Draw 2', 'Reverse', 'Skip']: YKHO.deckList.append(F1Hz(r845, YRbF)) if r845 != '0': YKHO.deckList.append(F1Hz(r845, YRbF)) for r845 in [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nb33(YKHO):\n KCHu = 8\n MKlR = 0\n Z9rn = 0\n Csk6 = 0\n if YKHO.suits == 2:\n KCHu = 4\n MKlR = 4\n elif YKHO.suits == 4:\n KCHu = 2\n MKlR = 2\n Z9rn = 2\n Csk6 = 2\n for YRbF in Ni9Y(KCHu):\n for r845 in Ni9Y(1, 14):\n YKHO._d...
[ "0.75811815", "0.74451095", "0.7434828", "0.73565197", "0.73408115", "0.7310122", "0.7288083", "0.72526306", "0.7187655", "0.7129599", "0.7117847", "0.7102172", "0.70985806", "0.7096169", "0.70620364", "0.7058029", "0.7040795", "0.7024654", "0.7018939", "0.70052433", "0.69910...
0.81665397
0
Runs on bot startup. Creates a Game object and defines the mainChannel
async def on_ready(): global game, mainChannel, guild VGEj = JyK9.get_channel(HmK8) BH3N = _apf() lSCo = JyK9.guilds[0] print('-------------\nLogged in as {0.user}\n-------------\n'.format(JyK9))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DbxN():\n x0hE = ZOrr.Client()\n lGbz = V7ok.get_event_loop()\n qIxc = Xt1H(HwRy.argv[1:])\n w0rQ = BNML()\n GPtr = PSrQ(qIxc, w0rQ)\n VUF1 = P39m()\n Q1PJ = tNAa(x0hE, GPtr, qIxc)\n JyK9 = z1pK(x0hE, VUF1, GPtr, Q1PJ, w0rQ, qIxc)\n N5z6 = NnkB(lGbz, VUF1, GPtr, JyK9)\n if not qIx...
[ "0.70766586", "0.6929008", "0.68279237", "0.6755383", "0.6744448", "0.6643443", "0.6587025", "0.64928305", "0.64300793", "0.64290565", "0.6427477", "0.6417847", "0.64096445", "0.6396469", "0.637625", "0.63653606", "0.6336154", "0.6334193", "0.63337296", "0.6331641", "0.631101...
0.80096453
0
Decorate routes to require login.
def uKii(eHNT): @zaGL(eHNT) def SzLu(*qIxc, **B2fa): if cuiw.get('user_id') is None: return vKnz('/login') return eHNT(*qIxc, **B2fa) return SzLu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if not 'logged_in' in cuiw:\n return vKnz(nKyW('index', next=QePW.url))\n return JfyU(*qIxc, **B2fa)\n return WS4m", "def uKii(JfyU):\n\n @xBlr.wraps(JfyU)\n def WS4m(*qIxc, **B2fa):\n if Oa1e.user i...
[ "0.7088456", "0.69661", "0.69525415", "0.6949141", "0.6931404", "0.69277924", "0.69114035", "0.6908829", "0.68492377", "0.68424016", "0.68367666", "0.68357086", "0.6820801", "0.6820801", "0.6820801", "0.6820801", "0.6806658", "0.68059635", "0.67959154", "0.6781016", "0.677388...
0.656372
59
A test client for the app.
def x0hE(P4t4): P4t4.testing = True return P4t4.test_client()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0hE(P4t4):\n return NxUR(P4t4)", "def x0hE(P4t4):\n return kO5c.TestClient(P4t4)", "def x0hE(P4t4):\n return kO5c.TestClient(P4t4)", "def x0hE(P4t4):\n udfG = NxUR(P4t4)\n return udfG", "def x0hE():\n return P4t4.test_client()", "def x0hE(P4t4):\n return P4t4.test_client()", "...
[ "0.9008056", "0.8998176", "0.8998176", "0.8908726", "0.8823943", "0.88087857", "0.88087857", "0.88087857", "0.88087857", "0.88087857", "0.88087857", "0.88087857", "0.88087857", "0.88087857", "0.88087857", "0.88087857", "0.88087857", "0.88087857", "0.86871785", "0.8667237", "0...
0.87936103
18
Turn message into rendered image and center onto screen
def gaDc(YKHO, tO9_, S4LC, hGm8, Orik, R3BD): YKHO.msg_image = YKHO.font.render(tO9_, True, YKHO.text_color, YKHO.button_color) YKHO.msg_image_rect = YKHO.msg_image.get_rect() YKHO.msg_image_rect.center = YKHO.rect.center YKHO.msg_image1 = YKHO.font.render(S4LC, True, YKHO.text_color1, YKHO.button_color...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gaDc(YKHO):\n YKHO.msg_image = YKHO.font.render(YKHO.msg, True, YKHO.text_color, YKHO.button_color)\n YKHO.msg_image_rect = YKHO.msg_image.get_rect()\n YKHO.msg_image_rect.center = YKHO.rect.center", "def gaDc(YKHO, tO9_):\n YKHO.msg_image = YKHO.font.render(tO9_, True, YKHO.text_color, YKHO.butt...
[ "0.8056731", "0.78664404", "0.7858907", "0.7855894", "0.7855894", "0.7707993", "0.7702027", "0.76764566", "0.76548123", "0.76201355", "0.75822026", "0.72274727", "0.72253746", "0.7212315", "0.71228105", "0.6971039", "0.68564737", "0.68231034", "0.6729812", "0.6669409", "0.661...
0.0
-1
Test that the correct exception is raised when the metadata file is missing
def c0MP(TSV6): with trZe.raises(FileNotFoundError): CnNw('s3://some-bucket/non-existent-db', wwu2.NUCLEOTIDE, lA4C.AWS) with trZe.raises(FileNotFoundError): CnNw('this-db-does-not-exist', wwu2.PROTEIN, lA4C.GCP, gcp_prj=ovnj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yeyJ(ZqHk):\n with trZe.raises(OSError):\n lD5Z(ZqHk)", "def Cxpc(YKHO):\n i34x = jwfB(foZf)\n with YKHO.assertRaises(KeyError) as OaeV:\n i34x['I do not exist']\n YKHO.assertEqual(OaeV.exception.args[0], 'Metadata not found')", "def uh83(ZqHk):\n Oieu = KDKa()\n Aofo = Oieu...
[ "0.7833121", "0.78098756", "0.770777", "0.76103145", "0.7579401", "0.7576234", "0.7518899", "0.74591905", "0.7418513", "0.73341066", "0.73122966", "0.72223383", "0.7200752", "0.71730334", "0.71729195", "0.71635395", "0.7142053", "0.71306103", "0.7123766", "0.71209973", "0.708...
0.8400219
0
Test that malformed metadata file is properly reported
def UWEU(TSV6): pths = 'gs://bucket/somedb' TSV6.cloud.storage[f'{pths}-prot-metadata.json'] = 'abc' with trZe.raises(CLuU) as XObx: NCls = CnNw(pths, wwu2.PROTEIN, lA4C.GCP, gcp_prj=ovnj) assert XObx.value.returncode == sNn8 assert 'is not a proper JSON file' in XObx.value.message
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ikR4(ZqHk):\n PHkY = ZqHk / 'metadata.yaml'\n PHkY.write_text('- whatever')\n yIVm = lD5Z(ZqHk)\n assert yIVm == ['whatever']", "def D8Gk(ZqHk):\n PHkY = ZqHk / 'metadata.yaml'\n PHkY.write_text(' - \\n-')\n Oieu = KDKa()\n Aofo = Oieu.run(ZqHk)\n assert Aofo == KDKa.Result.errors\...
[ "0.77958864", "0.7749238", "0.751969", "0.74815303", "0.74723065", "0.7185152", "0.71467984", "0.7084379", "0.7025385", "0.7018403", "0.6975713", "0.6938447", "0.6921145", "0.6883929", "0.68689317", "0.6861602", "0.68193114", "0.6786017", "0.6780468", "0.6779546", "0.6755007"...
0.6454683
60
Creates and returns the pyamqp SendClient.
def gzMD(*, GPtr, **B2fa): pan_ = B2fa.pop('target') KBnb = B2fa.pop('msg_timeout') return H0o9(GPtr.hostname, pan_, custom_endpoint_address=GPtr.custom_endpoint_address, connection_verify=GPtr.connection_verify, transport_type=GPtr.transport_type, http_proxy=GPtr.http_proxy, socket_timeout=GPtr.socket_time...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gzMD(*, GPtr, **B2fa):\n pan_ = B2fa.pop('target')\n KBnb = B2fa.pop('msg_timeout')\n return DBt6(GPtr.hostname, pan_, custom_endpoint_address=GPtr.custom_endpoint_address, connection_verify=GPtr.connection_verify, transport_type=GPtr.transport_type, http_proxy=GPtr.http_proxy, socket_timeout=GPtr.soc...
[ "0.68366015", "0.65063244", "0.63316214", "0.6177181", "0.6059851", "0.60063785", "0.59719586", "0.59705013", "0.59566617", "0.5951119", "0.59073925", "0.5905246", "0.58947814", "0.58514005", "0.58192056", "0.5796421", "0.57932436", "0.575987", "0.5743153", "0.57425433", "0.5...
0.6874214
0
Return updated auth token.
async def get_updated_token_async(yBtB): return (await yBtB.get_token()).token
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MRZM(yBtB):\n return yBtB.get_token().token", "def Vu5X(YKHO):\n YKHO.generate_auth_tokens()\n YKHO.save()\n return YKHO.auth_token", "def iPse():\n c5ow = Zul5()\n NT__ = VuvO(identity=c5ow)\n HWsS(NT__, P4t4.config['JWT_IDENTITY_CLAIM'])\n eOtH = {'access_token': NT__}\n return...
[ "0.80434483", "0.79131687", "0.78178537", "0.7633561", "0.7577683", "0.7438247", "0.7426816", "0.7403738", "0.7390787", "0.7386636", "0.7271425", "0.72492886", "0.71484643", "0.71180576", "0.71180576", "0.7115961", "0.7115529", "0.7097308", "0.7090619", "0.7088193", "0.708690...
0.75993955
4
A callable accepting a client ID and returning a `tf.data.Dataset`. Note that this callable must be traceable by TF, as it will be used in the context of a `tf.function`.
def Xfzg(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u2fU(YKHO, zb3C: str) -> ZylS.data.Dataset:\n if zb3C not in YKHO.client_ids:\n raise ValueError('ID [{i}] is not a client in this ClientData. See property `client_ids` for the list of valid ids.'.format(i=zb3C))\n return YKHO.serializable_dataset_fn(zb3C)", "def u2fU(YKHO, zb3C: str):\n if z...
[ "0.802488", "0.72448426", "0.7197445", "0.7172362", "0.71654874", "0.71463585", "0.70315355", "0.7019054", "0.69652325", "0.688793", "0.65702593", "0.6559742", "0.6418317", "0.62669665", "0.61808115", "0.6170089", "0.61620855", "0.6139162", "0.6131346", "0.6095233", "0.609019...
0.57007045
36
Creates a new `tf.data.Dataset` containing the client training examples. This function will create a dataset for a given client, given that `client_id` is contained in the `client_ids` property of the `ClientData`. Unlike `create_dataset`, this method need not be serializable.
def u2fU(YKHO, zb3C: str) -> ZylS.data.Dataset: if zb3C not in YKHO.client_ids: raise ValueError('ID [{i}] is not a client in this ClientData. See property `client_ids` for the list of valid ids.'.format(i=zb3C)) return YKHO.serializable_dataset_fn(zb3C)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u2fU(YKHO, zb3C: str):\n if zb3C not in YKHO.client_ids:\n raise ValueError('ID [{i}] is not a client in this ClientData. See property `client_ids` for the list of valid ids.'.format(i=zb3C))\n return YKHO._create_dataset(zb3C)", "def ZRjb(YKHO, zb3C):\n aDsD = [\"SELECT serialized_example_pr...
[ "0.86230683", "0.8128861", "0.7911389", "0.78143364", "0.74358135", "0.72918546", "0.68334585", "0.657189", "0.6488617", "0.6376967", "0.63249695", "0.6324355", "0.63098186", "0.6299983", "0.6282624", "0.62250733", "0.6197337", "0.6178988", "0.6171302", "0.60745394", "0.60611...
0.8615078
1
A `tff.Computation` accepting a client ID, returning a dataset.
def qn5h(YKHO): if not hasattr(YKHO, '_cached_dataset_computation') or YKHO._cached_dataset_computation is None: @cFSE.tf_computation(ZylS.string) def qn5h(zb3C): return YKHO.serializable_dataset_fn(zb3C) YKHO._cached_dataset_computation = qn5h return YKHO._cached_dataset_co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u2fU(YKHO, zb3C: str) -> ZylS.data.Dataset:\n if zb3C not in YKHO.client_ids:\n raise ValueError('ID [{i}] is not a client in this ClientData. See property `client_ids` for the list of valid ids.'.format(i=zb3C))\n return YKHO.serializable_dataset_fn(zb3C)", "def u2fU(YKHO, zb3C: str):\n if z...
[ "0.7640595", "0.71485406", "0.69268405", "0.68271774", "0.678847", "0.6668324", "0.66236997", "0.64702797", "0.6417226", "0.633879", "0.62378734", "0.6219615", "0.61765796", "0.6094557", "0.5987129", "0.59634054", "0.59192085", "0.59097326", "0.59024584", "0.58750993", "0.584...
0.6662804
6
Creates a new `tf.data.Dataset` containing _all_ client examples. This function is intended for use training centralized, nondistributed models (num_clients=1). This can be useful as a point of comparison against federated models. Currently, the implementation produces a dataset that contains all examples from a single...
def XCRC(YKHO, yokr: Optional[int]=None) -> ZylS.data.Dataset: zsrT = YKHO.client_ids.copy() oyIN.random.RandomState(seed=yokr).shuffle(zsrT) V1uN = ZylS.data.Dataset.from_tensor_slices(zsrT) E6oy = V1uN.flat_map(YKHO.serializable_dataset_fn) return E6oy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mgEh(qqo8):\n del qqo8\n FQX4 = tuKI.sample(population=XAtD.client_ids, k=vPBo.train_clients_per_round)\n return [XAtD.create_tf_dataset_for_client(x0hE) for x0hE in FQX4]", "def mgEh(qqo8):\n YlZl = min(qqo8, ldZz - 1) // Iklw\n FQX4 = oyIN.random.choice(EPL3.client_ids, size=eGe7, replace=Fa...
[ "0.7773578", "0.6958798", "0.6840031", "0.6810249", "0.67714375", "0.64919907", "0.6463966", "0.6391698", "0.63597167", "0.6355708", "0.6263437", "0.6189603", "0.6135732", "0.6132235", "0.60319227", "0.599762", "0.59937733", "0.59703326", "0.59567213", "0.5924802", "0.5918493...
0.83884215
0
Create a Java array of given java_class type. Useful for calling a method with a Scala Array from Python with Py4J. If the param pylist is a 2D array, then a 2D java array will be returned. The returned 2D java array is a square, nonjagged 2D array that is big enough for all elements. The empty slots in the inner Java ...
def TyHO(LTYm: List[Any], XriF: 'JavaClass') -> 'JavaObject': Sa_m = XYQe._active_spark_context assert Sa_m is not None assert Sa_m._gateway is not None iQKb = None if len(LTYm) > 0 and isinstance(LTYm[0], list): PaTx = 0 for YRbF in range(len(LTYm)): PaTx = max(PaTx, len...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pgPk(dfHT, mLGw, DumB):\n\n def zKyu(yv6U):\n cyQ8 = 0\n while isinstance(yv6U, (list, tuple)):\n cyQ8 += 1\n if len(yv6U) == 0:\n break\n yv6U = yv6U[0]\n return cyQ8\n return NcbG(dfHT, mLGw, DumB, zKyu(DumB))", "def KGm9(YKHO, Z9rn...
[ "0.686308", "0.55248857", "0.55030894", "0.5463983", "0.54240036", "0.54240036", "0.5417903", "0.5413217", "0.5397458", "0.5356077", "0.53335434", "0.53297716", "0.529365", "0.5273333", "0.5242695", "0.52224994", "0.52215594", "0.5216301", "0.5213817", "0.52109134", "0.518972...
0.8613089
0
Creates a copy of this instance with the same uid and some extra params. This implementation first calls Params.copy and then make a copy of the companion Java pipeline component with extra params. So both the Python wrapper and the Java pipeline component get copied.
def jth9(YKHO: 'JP', dDGN: Optional['ParamMap']=None) -> 'JP': if dDGN is None: dDGN = dict() fh3O = super(LNRn, YKHO).copy(dDGN) if YKHO._java_obj is not None: fh3O._java_obj = YKHO._java_obj.copy(YKHO._empty_java_param_map()) fh3O._transfer_params_to_java() return fh3O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO, dDGN: Optional['ParamMap']=None) -> 'Pipeline':\n if dDGN is None:\n dDGN = dict()\n fh3O = FD5x.copy(YKHO, dDGN)\n EuXk = [EtM5.copy(dDGN) for EtM5 in fh3O.getStages()]\n return fh3O.setStages(EuXk)", "def jth9(YKHO, dDGN: Optional['ParamMap']=None) -> 'PipelineModel':\n if ...
[ "0.637444", "0.6041977", "0.5772732", "0.5769834", "0.57510066", "0.57297736", "0.57028174", "0.5589464", "0.5578382", "0.5511997", "0.54863393", "0.5475251", "0.5475096", "0.54694766", "0.5461269", "0.5442735", "0.54127455", "0.54127455", "0.54127455", "0.54127455", "0.54127...
0.69066846
0
Initialize this instance with a Java model object. Subclasses should call this constructor, initialize params, and then call _transfer_params_from_java. This instance can be instantiated without specifying java_model, it will be assigned after that, but this scenario only used by
def FIMM(YKHO, lIvB: Optional['JavaObject']=None): super(E1pI, YKHO).__init__(lIvB) if lIvB is not None: YKHO._create_params_from_java() YKHO._resetUid(lIvB.uid())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fkCJ(YKHO, lIvB: 'JavaObject') -> hgQc:\n raise NotImplementedError()", "def VeY8(YKHO) -> None:\n Sa_m = XYQe._active_spark_context\n assert Sa_m is not None and YKHO._java_obj is not None\n for xqoZ in YKHO.params:\n if YKHO._java_obj.hasParam(xqoZ.name):\n UOIO = YKHO._java_o...
[ "0.759986", "0.6887056", "0.66244864", "0.6507695", "0.6446448", "0.6400166", "0.6237752", "0.62181336", "0.6184853", "0.6172779", "0.61560315", "0.6128205", "0.6124603", "0.6086753", "0.6086753", "0.6086753", "0.6044376", "0.6032404", "0.60322565", "0.6005222", "0.5996547", ...
0.8791303
0
Returns the number of features the model was trained on. If unknown, returns 1
def HkL2(YKHO) -> int: return YKHO._call_java('numFeatures')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HhVR(YKHO):\n return len(YKHO.feature_importances.index)", "def HkL2(YKHO) -> int:\n raise NotImplementedError()", "def YnH_(YKHO):\n ROaS = 0\n for ai9l in YKHO.feature_transformers:\n ROaS += ai9l.get_n_features() - 1\n ROaS += 1\n return ROaS", "def HkL2(YKHO):\n raise NotI...
[ "0.8030877", "0.78802675", "0.7759591", "0.7747996", "0.7742107", "0.76493996", "0.7588506", "0.7562693", "0.7553259", "0.75410736", "0.75279623", "0.7516408", "0.7507057", "0.7491558", "0.7352233", "0.7327853", "0.7307947", "0.730762", "0.7300597", "0.7286461", "0.72459614",...
0.77262574
5
Test the get_latest_price() method
def b_uf(YKHO): YKHO.assertEqual(24, gxV2('SECTIONAL'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cm_b(YKHO):\n AVpI = CgxO.get_latest_price('550')\n YKHO.assertEqual(AVpI, 24)", "def b_uf(Emd4):\n XXon = CgxO.get_latest_price('CORN')\n assert XXon == 24", "def z17R(YKHO):\n pass", "def k71e(YKHO):\n CgxO.get_latest_price = CFMy(return_value=24)\n VFgN = CgxO.get_latest_price(1)\...
[ "0.8407576", "0.82665354", "0.79819036", "0.78664696", "0.76759434", "0.76369506", "0.76369506", "0.7508726", "0.7371838", "0.73658097", "0.73500025", "0.7284026", "0.7252513", "0.7214618", "0.7063156", "0.70113933", "0.6971944", "0.69258314", "0.6851366", "0.6835962", "0.683...
0.8105721
2
If ``resource`` has a CommCare case ID identifier, return its value, otherwise return None.
def pIS8(Eorv): if 'identifier' in Eorv: rIu1 = [hbFX for hbFX in Eorv['identifier'] if hbFX.get('system') == rUYh] if rIu1: return rIu1[0]['value'] return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Thon(YKHO, PcW4):\n Eorv = YKHO.__db__.session.query(YKHO.__model__).get(PcW4)\n if not Eorv:\n return None\n return Eorv", "def HeD1(YKHO, PcW4):\n return", "def v8iV(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'compliance_resource_id')", "def PcW4(YKHO) -> h8nf[str]:\n return q...
[ "0.6310835", "0.6293232", "0.6225606", "0.6142448", "0.6142448", "0.6142448", "0.6142448", "0.6142448", "0.6142448", "0.6018527", "0.60093945", "0.5980046", "0.59724516", "0.59724516", "0.59724516", "0.59724516", "0.59724516", "0.59724516", "0.59724516", "0.59724516", "0.5972...
0.8516611
0
Returns an identifier for the requesting client, the can either be a unique identifier per user for APIs that can't identify logged in users or IP addresses, or via a cookie, refer to rest.handler.handler_will_run for the opportunity to use Cookies
def UJQp(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')", "def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')", "def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')", "def zb3C(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_id')", "def zb3C(YKHO) -> str:\n return qe4Y.get...
[ "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7354004", "0.7275631", "0.72706497", "0.72347915", "0.71882313", ...
0.0
-1
Returns the result of applying a function to each GreensTensor in the list. Similar to the behavior of the python builtin "apply".
def dRO0(YKHO, m2Zb, *qIxc, **B2fa): Mol0 = yneN() for oa_C in YKHO.__list__: Mol0 += oa_C.apply(m2Zb, *qIxc, **B2fa) return Mol0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def map(YKHO, m2Zb, *jWe2):\n Mol0 = yneN()\n for WFmf, oa_C in enumerate(YKHO.__list__):\n qIxc = [aWuw[WFmf] for aWuw in jWe2]\n Mol0 += oa_C.apply(m2Zb, *qIxc)\n return Mol0", "def dRO0(YKHO, m2Zb, *qIxc, **B2fa):\n Mol0 = []\n for vhpA in YKHO:\n Mol0 += [m2Zb(vhpA, *qIxc,...
[ "0.7179041", "0.70902", "0.63388777", "0.6278788", "0.6241173", "0.61578476", "0.6114827", "0.60501397", "0.60422057", "0.6016015", "0.6001631", "0.6001631", "0.59812474", "0.59437233", "0.58451164", "0.5836441", "0.5820746", "0.5775589", "0.57722074", "0.5768112", "0.5744265...
0.8566138
0
Get the list of Categories.
def KQbM(YKHO, dfxN): LeZt = [] _R2e = G4JS.get(dfxN, headers=YKHO.hdr).text WeM5 = ZbWC.findall('var chObj = (.*)', _R2e)[0] DumB = qQXR.loads(WeM5) for ZfUD in DumB: leAC = ZfUD['name'] _G4g = ZfUD['img'] bD7m = dfxN + 'ZZZZ%sZZZZ%s' % (ZfUD['tag'], leAC.replace(' ', '%20')...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQuW(YKHO):\n bD7m = TDhU(YKHO.url, 'categories')\n return i9zE._get(YKHO, url=bD7m)", "def LQuW(YKHO):\n return YKHO.categories.all()", "def LQuW(YKHO):\n return YKHO.categories.all()", "def rNmM():\n return qZuN.objects.all()", "def NMoC(YKHO):\n return LeZt", "def N3tc(YKHO):\n ...
[ "0.8838435", "0.8738493", "0.8738493", "0.85479456", "0.853905", "0.84008825", "0.8395336", "0.83865625", "0.82326543", "0.82290775", "0.82143867", "0.81997544", "0.8186584", "0.81674826", "0.8143438", "0.8114818", "0.8083122", "0.8079114", "0.80182606", "0.79582816", "0.7935...
0.0
-1
Get the list of categories.
def RpJm(YKHO, dfxN): LeZt = [] bD7m = dfxN.split('ZZZZ')[0] piek = dfxN.split('ZZZZ')[1] FLlb = dfxN.split('ZZZZ')[2] _R2e = G4JS.get(bD7m, headers=YKHO.hdr).text tUMc = ZbWC.findall('var dateObj = (.*)', _R2e)[0] DumB = qQXR.loads(tUMc) for ZfUD in DumB: leAC = ZfUD _G4...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQuW(YKHO):\n bD7m = TDhU(YKHO.url, 'categories')\n return i9zE._get(YKHO, url=bD7m)", "def LQuW(YKHO):\n return YKHO.categories.all()", "def LQuW(YKHO):\n return YKHO.categories.all()", "def NMoC(YKHO):\n return LeZt", "def rNmM():\n return qZuN.objects.all()", "def zG33(YKHO):\n ...
[ "0.8782804", "0.8763894", "0.8763894", "0.8722681", "0.85640436", "0.8538539", "0.8383803", "0.8363813", "0.8344172", "0.83401066", "0.8300555", "0.8295217", "0.82806236", "0.82791173", "0.82425845", "0.82240665", "0.8182952", "0.81706595", "0.8111234", "0.8106739", "0.809378...
0.0
-1
Extract A, b from an expression that is reducable to Ax + b.
def rnv5(YKHO, VN2L): if not VN2L.is_affine(): raise ValueError('Expression is not affine') KCHu, bGrB = VN2L.canonical_form cAlv, pdhd, Oa10, Fg_i = rIkd.get_problem_matrix([Yh4i.create_eq(KCHu)], YKHO.id_map) k0lF = H4yH.csr_matrix((cAlv, (pdhd, Oa10)), shape=(VN2L.size, YKHO.N)) return (k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EAP8(VN2L):\n return i6QF(VN2L, transformations=HQ4j + (DvLQ,))", "def EAP8(VN2L):\n SQ3m = [Q7me.strip() for Q7me in VN2L.split('*')]\n pSDG = SQ3m[0]\n SqIz = [Q7me[Q7me.find('(') + 1:Q7me.find(')')] for Q7me in SQ3m[1:]]\n return (pSDG, SqIz)", "def pTqO(suV4):\n import re\n suV4 = ...
[ "0.5961702", "0.57972753", "0.56375605", "0.5588918", "0.55133617", "0.5476916", "0.54169047", "0.5376214", "0.5330993", "0.53227764", "0.53145355", "0.5299221", "0.52972806", "0.5269769", "0.52676237", "0.52676237", "0.52631116", "0.52435875", "0.52259374", "0.5188666", "0.5...
0.0
-1
Sets the created_at of this DeveloperCertificateResponseData. Creation UTC time RFC3339.
def aJ2e(YKHO, aJ2e): YKHO._created_at = aJ2e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kpUr(YKHO, BWXx):\n setattr(YKHO, YKHO.CREATED_AT, BWXx)", "def aJ2e(YKHO, aJ2e):\n if aJ2e is not None:\n if not isinstance(aJ2e, qcWV):\n raise TypeError('Invalid type for `created_at`, type has to be `datetime`')\n YKHO._created_at = aJ2e", "def aJ2e(YKHO, aJ2e):\n if YKHO....
[ "0.71608955", "0.70858586", "0.7085786", "0.6918782", "0.6918782", "0.6918782", "0.6906622", "0.6906622", "0.6906622", "0.6906622", "0.6906622", "0.6896218", "0.6896218", "0.6864826", "0.67243737", "0.6470702", "0.6470702", "0.6470702", "0.6470702", "0.6470702", "0.6443828", ...
0.7286448
0
Gets the description of this DeveloperCertificateResponseData. Description for the developer certificate.
def JBZA(YKHO): return YKHO._description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P91P(YKHO):\n return YKHO._developer_certificate", "def VQa0(YKHO) -> qe4Y.Output[h8nf['outputs.CertificateDescriptionResponse']]:\n return qe4Y.get(YKHO, 'certificate')", "def sDdg(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'certificate_data')", "def JBZA(YKHO):\n if YKHO._description is no...
[ "0.73555756", "0.69544023", "0.6610001", "0.6503331", "0.6499031", "0.64892584", "0.64892584", "0.64892584", "0.64892584", "0.64892584", "0.64511454", "0.6439735", "0.6310261", "0.63087994", "0.62812155", "0.625731", "0.61865187", "0.61657494", "0.6164506", "0.6164506", "0.61...
0.604503
41
Sets the description of this DeveloperCertificateResponseData. Description for the developer certificate.
def JBZA(YKHO, JBZA): YKHO._description = JBZA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P91P(YKHO, P91P):\n YKHO._developer_certificate = P91P", "def JBZA(YKHO, JBZA):\n YKHO.spec.description.metadata.shortDescription = JBZA", "def AqxA(YKHO, JBZA):\n if JBZA is not None and (not isinstance(JBZA, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: description EXPECTED TYPE: str', ...
[ "0.68188024", "0.6301497", "0.6300402", "0.6300402", "0.6231871", "0.62223154", "0.62223154", "0.62223154", "0.62223154", "0.62223154", "0.62223154", "0.62223154", "0.62223154", "0.62223154", "0.62223154" ]
0.6219478
16
Gets the id of this DeveloperCertificateResponseData. mUUID that uniquely identifies the developer certificate.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MSpN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_id')", "def MSpN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_id')", "def MSpN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_id')", "def ShR8(YKHO):\n return YKHO._device.device_uuid", ...
[ "0.6421294", "0.6421294", "0.6421294", "0.6337768", "0.61895925", "0.6167897", "0.6167897", "0.6137688", "0.61150193", "0.61004186", "0.61004186", "0.60935575", "0.60935575", "0.609047", "0.6022648", "0.6020659", "0.6007911", "0.6002058", "0.5986086", "0.59799075", "0.5967844...
0.0
-1
Sets the id of this DeveloperCertificateResponseData. mUUID that uniquely identifies the developer certificate.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y0y5(YKHO, GtGV):\n YKHO.unique_id = GtGV.get('id')", "def Y0y5(YKHO, GtGV):\n YKHO.unique_id = GtGV.get('id', '')", "def gKXt(YKHO, id):\n YKHO._id = id", "def BbF2(YKHO, BbF2):\n YKHO._developer_id = BbF2", "def dVGB(YKHO, dVGB: str):\n YKHO._response_id = dVGB", "def V_9M(YKHO, PObu...
[ "0.5998449", "0.5937792", "0.56682664", "0.565468", "0.5464058", "0.5433673", "0.5298607", "0.52542293", "0.52542293", "0.52542293", "0.52542293", "0.52542293", "0.52542293", "0.52542293", "0.524339", "0.52340925", "0.52181023", "0.51939225", "0.51939225", "0.51939225", "0.51...
0.0
-1
Gets the name of this DeveloperCertificateResponseData. Name of the developer certificate.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MN3X(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "def MN3X(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "def MN3X(YKHO):\n return YKHO._certificate_name", "def MN3X(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'certificate_name')", "de...
[ "0.7784153", "0.7784153", "0.7783814", "0.7610358", "0.7287811", "0.71978647", "0.71978647", "0.71978647", "0.68130726", "0.6750826", "0.6596356", "0.6554603", "0.6510635", "0.6507519", "0.64961314", "0.64961314", "0.64961314", "0.64961314", "0.64961314", "0.64961314", "0.649...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83939064", "0.83558416", "0.8296191", "0.8133439", "0.81156427", "0.810097", "0.81001526", "0.8099001", "0.8099001", "0.80936444", "0.80936444", "0.80936444", "0.80936444", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80677134", "0.80598736", "0...
0.0
-1
Statistical variance of all values entered into histogram. This number is precise, because we keep the necessary data separate from bin contents.
def I8JS(YKHO) -> float: if YKHO.weight > 0: return (YKHO.sum2 - YKHO.sum ** 2 / YKHO.weight) / YKHO.weight return oyIN.nan
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SRYB(YKHO):\n if YKHO.total < 2:\n return None\n KCHu = 0.0\n r8hN = YKHO.mean()\n for Fg_i in YKHO.bins:\n KCHu += Fg_i.count * (Fg_i.value - r8hN) ** 2\n return KCHu / float(YKHO.total)", "def I8JS(nPrm):\n UU3d = len(nPrm)\n if UU3d == 0:\n return 0\n p1kx = [f...
[ "0.7623878", "0.7613205", "0.7356624", "0.73376054", "0.73206896", "0.7266168", "0.7263919", "0.72389805", "0.72221893", "0.7218044", "0.72006637", "0.7188983", "0.7152577", "0.71279496", "0.70878357", "0.70484895", "0.70187134", "0.7011036", "0.700028", "0.6982334", "0.69734...
0.6668502
44
Function that converts datetime object to string
def X0tj(JRYC): return JRYC.isoformat()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pTGH(qSq0):\n return qSq0.strftime('%Y/%m/%d %H:%M')", "def _RwM(eGVy):\n return eGVy.strftime(EHRT)", "def ab7L(Ty9i):\n if isinstance(Ty9i, qcWV):\n return Ty9i.strftime('%Y-%m-%dT%H:%M:%S')\n return Ty9i", "def oKfy(JRYC: datetime) -> str:\n return str(JRYC)", "def BjmT(eGVy, f...
[ "0.8417059", "0.8165351", "0.8150319", "0.8086904", "0.7908266", "0.78644633", "0.7726359", "0.76867956", "0.7672385", "0.76640975", "0.7615623", "0.7593997", "0.753114", "0.75286734", "0.75158364", "0.7489788", "0.7471073", "0.7456402", "0.7425276", "0.7384803", "0.7366587",...
0.768353
8
Function that converts string to datetime object
def gTxn(KrcE): return qcWV.datetime.strptime(KrcE, '%Y-%m-%dT%H:%M:%S.%f')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DSF0(vIwR):\n from datetime import datetime\n from dateutil.parser import parse\n U5Jc = parse(vIwR, default=datetime(1, 1, 1))\n return U5Jc", "def m89t(YKHO, vIwR):\n try:\n from dateutil.parser import parse\n return parse(vIwR)\n except ImportError:\n return vIwR", ...
[ "0.8044816", "0.78476816", "0.784753", "0.7817143", "0.78156877", "0.77751476", "0.7771724", "0.776315", "0.7762661", "0.77572453", "0.77498686", "0.7748863", "0.7748775", "0.7707087", "0.7685429", "0.76816523", "0.76789916", "0.7658451", "0.76133895", "0.75820905", "0.750077...
0.0
-1
Return a deep copy of self.
def _qLf(YKHO): return jth9.deepcopy(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _qLf(YKHO):\n return _qLf(YKHO)", "def jth9(YKHO):\n return jth9.deepcopy(YKHO)", "def jth9(YKHO):\n return jth9.deepcopy(YKHO)", "def jth9(YKHO):\n return jth9.deepcopy(YKHO)", "def jth9(YKHO):\n return jth9.deepcopy(YKHO)", "def jth9(YKHO):\n return jth9.deepcopy(YKHO)", "def jt...
[ "0.89972615", "0.8936659", "0.8936659", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89321774", "0.89116234", "0.89116234", ...
0.9054163
0
Check the values of a list of (qu)bit arguments. For each element A of args, check that amap contains A and self.wire_type[A] equals bval. args is a list of (regname,idx) tuples amap is a dictionary keyed on (regname,idx) tuples bval is boolean
def yN5d(YKHO, qIxc, e9g_, v7uq): for vexM in qIxc: if vexM not in e9g_: raise JdOQ('(qu)bit %s not found' % vexM) if YKHO.wire_type[vexM] != v7uq: raise JdOQ('expected wire type %s for %s' % (v7uq, vexM))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mkqZ(qIxc, qgK3):\n for H5ew in qgK3:\n if not qIxc.has_key(H5ew):\n return False\n return True", "def GfdN(YKHO, LU8G, S4M2, CRsh):\n if not LU8G:\n return True\n for WiO8 in LU8G:\n if isinstance(WiO8, exCv):\n WiO8 = (WiO8,)\n if all([YKHO._che...
[ "0.59317595", "0.5808441", "0.5808106", "0.58031636", "0.5716735", "0.5668659", "0.56594634", "0.5653755", "0.5650587", "0.56310093", "0.5554592", "0.5552799", "0.551223", "0.5465266", "0.54532444", "0.54530483", "0.5449378", "0.5448759", "0.5440526", "0.54385734", "0.5436619...
0.82383376
0
Apply the input circuit to the input of this circuit. The two bases must be "compatible" or an exception occurs. A subset of output qubits of the input circuit are mapped to a subset of input qubits of this circuit.
def G1NC(YKHO, PZLY, Vo3x={}): qCaW = YKHO._make_union_basis(PZLY) MV_7 = YKHO._make_union_gates(PZLY) if len(set(Vo3x.values())) != len(Vo3x): raise JdOQ('duplicates in wire_map') E78V = YKHO._check_wiremap_registers(Vo3x, PZLY.qregs, YKHO.qregs) for Mkmy in E78V: YKHO.add_qreg(Mkmy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KDvL(YKHO, PZLY, Vo3x={}):\n qCaW = YKHO._make_union_basis(PZLY)\n MV_7 = YKHO._make_union_gates(PZLY)\n if len(set(Vo3x.values())) != len(Vo3x):\n raise JdOQ('duplicates in wire_map')\n E78V = YKHO._check_wiremap_registers(Vo3x, PZLY.qregs, YKHO.qregs)\n for gr_i in E78V:\n YKHO.a...
[ "0.6327041", "0.5930629", "0.59119284", "0.59094715", "0.58849484", "0.58551836", "0.57214797", "0.56843907", "0.56832826", "0.56734055", "0.56206256", "0.55844635", "0.5553371", "0.55533636", "0.5527363", "0.5521647", "0.54878455", "0.5368075", "0.5362848", "0.5360235", "0.5...
0.61898965
1
Updates the weights of the neural network, based on its targets, its predictions, its loss and its optimizer.
def QdZT(YKHO, cb_Q, KCHu, jzdc, LVAh): kdJa = {YKHO.states_pl: [KCHu], YKHO.targets_pl: [LVAh], YKHO.actions_pl: [jzdc]} cb_Q.run(YKHO.train_op, kdJa) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d_j7(YKHO):\n return ZylS.get_default_session().run(YKHO.update_weights_op)", "def QdZT(YKHO):\n for G1Hx in range(YKHO.__numOfLayers):\n YKHO._layer[G1Hx].updateWeights()", "def NPKv(YKHO):\n for YRbF, bGrB in enumerate(YKHO.layers, start=1):\n vBj5 = YKHO.grad_values['dcost_w' + st...
[ "0.74785423", "0.74664325", "0.7395021", "0.72666585", "0.7259708", "0.7240995", "0.7203638", "0.72012633", "0.71913004", "0.71872365", "0.7148962", "0.7144125", "0.7124288", "0.7123157", "0.71037066", "0.7057968", "0.7033625", "0.7032205", "0.6964204", "0.696197", "0.6961712...
0.0
-1
Update the list of resources with a new
def zThI(JKCy, QrGl, CBIr=None, vkmJ=None, n3T8=False, kELS=True, XeOP='append'): dixj = [] for Eorv in JKCy: a4ZY = Qumu.basename(Eorv) Mkmy = GhOX.query(EAST).filter_by(resource_uniq=a4ZY).first() if Mkmy is None: RKD7.warn('uniq %s was not a shareable resource', Mkmy) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ax1F(YKHO, JKCy):\n if not isinstance(JKCy, list):\n raise dhz6('Resources should be a list!')\n for Eorv in JKCy:\n YKHO.add_update_resource(Eorv)", "def ax1F(YKHO, JKCy: List[Any]) -> None:\n if not isinstance(JKCy, list):\n raise dhz6('Resources should be a list!')\n for E...
[ "0.72271866", "0.721628", "0.7095089", "0.7007508", "0.6792177", "0.67657834", "0.6725549", "0.6703385", "0.6703385", "0.6669185", "0.6668384", "0.6668384", "0.6668384", "0.6668384", "0.65967077", "0.6571868", "0.65492797", "0.6490011", "0.63889897", "0.6368077", "0.6317103",...
0.0
-1
Return a kojiweb URL for this resource.
def bD7m(YKHO): w2IS = 'packageinfo?packageID=%d' % YKHO.id return Qumu.join(YKHO.connection.weburl, w2IS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PKrO(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_url')", "def bD7m(YKHO):\n return uwaB.URL", "def bD7m(YKHO):\n bD7m = YKHO.name.encode('utf-8')\n return SbF3(bD7m) + '/' + YKHO.url_ext", "def bD7m(YKHO) -> str:\n raise NotImplementedError", "def bD7m(YKHO) -> str:\n return qe4Y....
[ "0.78438056", "0.76834756", "0.76179755", "0.7541587", "0.7516624", "0.7516624", "0.7516624", "0.7516624", "0.7516624", "0.7516624", "0.7516624", "0.7516624", "0.7516624", "0.7516624", "0.7516624", "0.7516624", "0.7453672", "0.74482286", "0.74482286", "0.74482286", "0.7448228...
0.0
-1
Returns true if the straight is valid under Ace LowHigh rules.
def QNuR(nv2B): return SUYH(nv2B) or Cotw(nv2B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WqHK(YKHO):\n YKHO.face_hist()\n khoC = YKHO.faces.keys()\n if YKHO.faces.get(1):\n khoC.append(14)\n for YRbF in range(0, len(khoC) - 4):\n if YKHO.isStraight(khoC[YRbF:YRbF + 5]):\n return True\n return False", "def PLAC(YKHO):\n return YKHO.highest_card - YKHO.lo...
[ "0.6233519", "0.618916", "0.6129895", "0.6041819", "0.6039389", "0.59188473", "0.5913598", "0.59127414", "0.5907542", "0.587483", "0.5874672", "0.5851198", "0.58337474", "0.5832482", "0.5831327", "0.58288115", "0.5805974", "0.5802109", "0.57851684", "0.57849383", "0.5783731",...
0.677127
0
Return true if the hand is a flush.
def PN3e(nv2B): for iCfd, lq8E in nv2B.suit_counts.items(): if lq8E == 5: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PN3e(RZ8t):\n return ac8g(mwXN(RZ8t))", "def PN3e(RZ8t):\n return len(set((iCfd for fdMZ, iCfd in RZ8t))) == 1", "def XZN_(RZ8t):\n if PN3e(RZ8t) and PLAC(RZ8t):\n return True\n else:\n return False", "def XZN_(RZ8t):\n return PN3e(RZ8t) and PLAC(RZ8t)", "def PN3e(RZ8t):\n ...
[ "0.8712626", "0.846816", "0.84039736", "0.8347476", "0.8131056", "0.8093724", "0.79075587", "0.78348786", "0.77530676", "0.76922107", "0.7643708", "0.7537473", "0.7527039", "0.7432582", "0.7392859", "0.73644465", "0.73447824", "0.73447824", "0.73447824", "0.73447824", "0.7344...
0.71575886
24
Loads a given csv file dataset (with Netflix Prize format) as a Pandas DataFrame.
def k6xg(mC1D): jQ3Z = rLdf.read_csv(mC1D) jQ3Z['User'] = jQ3Z['Id'].apply(lambda id: int(id.split('_')[0][1:])) jQ3Z['Item'] = jQ3Z['Id'].apply(lambda id: int(id.split('_')[1][1:])) jQ3Z['Rating'] = jQ3Z['Prediction'].astype('float') jQ3Z = jQ3Z.drop(columns=['Id', 'Prediction']) return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(bD7m: str='https://www.dropbox.com/s/l9ihi4w0u7mu9h2/train.csv?dl=1') -> rLdf.DataFrame:\n jQ3Z = SSxX.from_delimited_files(bD7m).to_pandas_dataframe()\n return jQ3Z", "def aD4O(Ux0P):\n A8fR = ['company_profile', 'description', 'requirements', 'fraudulent']\n jQ3Z = CwDs.read_csv(Ux0P, usec...
[ "0.7227282", "0.7178178", "0.70082486", "0.6986592", "0.69641626", "0.6893723", "0.6883362", "0.6872615", "0.6857006", "0.683678", "0.68304205", "0.6810713", "0.6802436", "0.6796311", "0.67880744", "0.6782126", "0.67619824", "0.6726535", "0.667832", "0.667243", "0.6665852", ...
0.67847365
15
Loads a given csv file dataset (with Netflix Prize format) as two dictionaries of dictionaries, one with user keys and the other with item keys.
def p0tm(mC1D): with open(mC1D) as nUeQ: Nqlg = nUeQ.read().splitlines() Nqlg = Nqlg[1:] def ZOi3(zFiD): dQgj, RrWF = zFiD.split(',') rdlD, fvDH = dQgj.split('_') rdlD = rdlD[1:] fvDH = fvDH[1:] return (int(rdlD), int(fvDH), float(RrWF)) DMkI = [ZOi3(zFiD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AyYN(apum):\n nPrm = {}\n with open(apum, 'r') as apum:\n for zFiD in apum:\n zFiD = zFiD.strip()\n if 'user' in zFiD and 'item' in zFiD:\n pass\n else:\n psRH = zFiD.split('\\t')\n if psRH[0] not in nPrm:\n ...
[ "0.70427334", "0.6585532", "0.64893407", "0.6289234", "0.62545455", "0.62439114", "0.6180227", "0.6157266", "0.6150036", "0.6126815", "0.6109319", "0.61074907", "0.6104465", "0.6094394", "0.6093293", "0.60793436", "0.6075719", "0.6040016", "0.6035743", "0.6023335", "0.6009569...
0.6904001
1
Builds and returns two dictionaries of dictionaries, one with user keys and the other with item keys using a Pandas Data Frame representing the dataset.
def rPLs(jQ3Z): Lk9U, lPOa = (oRi_(dict), oRi_(dict)) for bGrB, rdlD in jQ3Z.iterrows(): CBIr, ZfUD, RrWF = (rdlD['User'], rdlD['Item'], rdlD['Rating']) Lk9U[CBIr - 1][ZfUD - 1] = RrWF lPOa[ZfUD - 1][CBIr - 1] = RrWF return (Lk9U, lPOa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JfWm():\n nSE6 = rLdf.DataFrame({'user_id': [1, 2, 3, 4, 5], 'user_age': [23, 24, 25, 26, 27]})\n Rw1N = rLdf.DataFrame({'item_id': [6, 7, 8], 'item_feat': [[0.1, 0.1], [0.2, 0.2], [0.3, 0.3]]})\n return (nSE6, Rw1N)", "def uviz(YKHO):\n for O6mq in range(len(YKHO._item_user_dic)):\n for R...
[ "0.691926", "0.6812569", "0.6713563", "0.6510311", "0.63168234", "0.61711675", "0.6162977", "0.60642374", "0.5994609", "0.5990601", "0.59498113", "0.5917551", "0.58861524", "0.5873329", "0.5861988", "0.5855035", "0.58453006", "0.58079094", "0.57780033", "0.57716215", "0.57382...
0.66334087
3
r""" Returns a list of the angles in the path. Each element of the list is the angle between the adjacent vectors in the path. The length of the list is equal to the length of speeds minus 2.
def RqlO(j7TG, faou=False): if not isinstance(j7TG, rLdf.core.frame.DataFrame): raise TypeError('path_obj must be pandas DataFrame') if not set(j7TG.keys()).issuperset(['x', 'y']): raise ValueError("the keys of path_obj must contain 'x', 'y'") if len(j7TG) <= 2: raise ValueError('pat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bLm4(zFiD):\n WKvO = zFiD[:, 0]\n LVAh = zFiD[:, 1]\n lbHk = oyIN.arctan2(oyIN.diff(WKvO), oyIN.diff(LVAh))\n mmr6 = oyIN.unwrap(lbHk)\n return oyIN.array(mmr6)", "def bLm4(zFiD):\n WKvO = zFiD[:, 0]\n LVAh = zFiD[:, 1]\n lbHk = oyIN.arctan2(oyIN.diff(WKvO), oyIN.diff(LVAh))\n mmr6...
[ "0.6634349", "0.6608788", "0.66084665", "0.6431303", "0.63985944", "0.6348609", "0.6261605", "0.6184423", "0.6184423", "0.6178404", "0.6135798", "0.6132888", "0.6075351", "0.6047438", "0.6043577", "0.6028999", "0.59902436", "0.5961168", "0.59242386", "0.5908189", "0.5897504",...
0.57650465
25
Returns darcy friction coefficient (dfc) for turbulent flow.
def q8xZ(gW2q, gnbz): def R7f8(xOd8): return 1 / epAf.sqrt(xOd8) def _s5K(xOd8, gW2q, gnbz): return -2 * epAf.log10(2.51 / (gW2q * epAf.sqrt(xOd8)) + gnbz / 3.71) xOd8 = 20 hsxC = 0 while True: g99s = R7f8(xOd8) nQoX = _s5K(xOd8, gW2q, gnbz) yk4i = abs(xOd8 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QwGq(YKHO):\n SXFr = YKHO.spoiler.wetted_area\n G_3Z = YKHO.spoiler.spoiler_chord * YKHO.spoiler.spoiler_span * YUNn(Y_1E(YKHO.spoiler.spoiler_angle)) * YKHO.spoiler.plate_amount\n rVnq = 1 + 5 * (G_3Z / SXFr)\n EzjL = 0.455 / oyIN.log10(YKHO.reynolds_number) ** 2.58\n o1Kh = rVnq * EzjL * SXFr ...
[ "0.6758885", "0.6707607", "0.6685081", "0.66523004", "0.65819585", "0.65706193", "0.64972687", "0.64915353", "0.6483116", "0.64092875", "0.6347513", "0.6345587", "0.6337209", "0.63141525", "0.6310939", "0.63070047", "0.62805974", "0.6251021", "0.6243468", "0.6232373", "0.6223...
0.0
-1
Returns darcy friction coefficient for laminar flow.
def DX26(gW2q): return round(64 / gW2q, 3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O96n(YylR):\n return NArs['rolling_friction']", "def _CpG(ukzv, tbpv, td3Y):\n if ukzv > 2100:\n gnbz = t1v9(td3Y, tbpv)\n return q8xZ(ukzv, gnbz)\n elif ukzv > 0:\n return DX26(ukzv)\n return 0", "def QwGq(YKHO):\n SXFr = YKHO.spoiler.wetted_area\n G_3Z = YKHO.spoile...
[ "0.70494336", "0.6947167", "0.68225944", "0.66990936", "0.6633735", "0.6624502", "0.66205454", "0.65872186", "0.6577059", "0.6554433", "0.65496117", "0.64433265", "0.63317394", "0.6297392", "0.62925965", "0.628558", "0.6270379", "0.6248677", "0.62283206", "0.6223226", "0.6180...
0.0
-1
Test that the sparse values are identical to the dense ones.
def PQRA(YKHO): FBNX = nlJ7.get_positions() ebxf = bjR0(species=['H', 'O'], rcut=3, nmax=1, lmax=1, sparse=False, crossover=False) M2a7, BClp = ebxf.derivatives(nlJ7, positions=FBNX, method='analytical') ebxf.sparse = True FNPz, kgj5 = ebxf.derivatives(nlJ7, positions=FBNX, method='analytical') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYt6(YKHO, jzdc, Fg_i):\n YKHO.assertAllEqual(jzdc.indices, Fg_i.indices)\n YKHO.assertAllEqual(jzdc.values, Fg_i.values)\n YKHO.assertAllEqual(jzdc.dense_shape, Fg_i.dense_shape)", "def wzQw(YKHO):\n YKHO.a[1, 1] = 11\n YKHO.a[2, 2] = 22\n YKHO.a[1, 2] = 12\n YKHO.a[2, 1] = 21\n YKHO...
[ "0.82201815", "0.73527503", "0.73527503", "0.70127404", "0.6867751", "0.6837231", "0.68178064", "0.68178064", "0.6770022", "0.6658748", "0.6596455", "0.65338886", "0.6507398", "0.6461119", "0.6401343", "0.63890964", "0.63818604", "0.635775", "0.6250077", "0.6199253", "0.61743...
0.575076
54
Test constant initializer with float16
def eJOZ(YKHO): XkN1 = YKHO.test_constant_initializer_default_value_static('float16') XkN1 = YKHO.test_constant_initializer_static('float16') YKHO.test_constant_initializer_default_value_dygraph('float16') YKHO.test_constant_initializer_dygraph('float16')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MgBh(YKHO):\n XkN1 = YKHO.test_normal_initializer('float16')", "def k8Ng(YKHO):\n XkN1 = YKHO.test_assign_initializer('float16')\n YKHO.assertTrue(XkN1.ops[1])", "def hOpP(YKHO):\n YKHO.test_constant_initializer_default_value_static('uint16')\n YKHO.test_constant_initializer_static('uint16')...
[ "0.82024926", "0.81512326", "0.7833032", "0.78059536", "0.7745166", "0.7733917", "0.75019306", "0.7297484", "0.7198579", "0.6454956", "0.64082867", "0.62433195", "0.62433195", "0.6110505", "0.59963876", "0.5974456", "0.5961803", "0.59516776", "0.58818644", "0.5860695", "0.585...
0.8231653
0
Test Kaiming normal initializer for convolutions.
def IllO(YKHO): YKHO.static_test_kaiming_initializer_common(init_inst=MuED.KaimingNormal(), dtype='float32', uniform=False, is_conv=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j8mR(YKHO):\n YKHO.static_test_kaiming_initializer_common(init_inst=MuED.KaimingNormal(), dtype='float32', uniform=False, is_conv=False)", "def bLVf(YKHO):\n YKHO.static_test_kaiming_initializer_common(init_inst=MuED.KaimingUniform(), dtype='float32', uniform=True, is_conv=True)", "def NAv1(YKHO):\n ...
[ "0.7305735", "0.7011226", "0.65585047", "0.6147989", "0.61376846", "0.6115103", "0.6079702", "0.59518206", "0.5943513", "0.592568", "0.5903299", "0.589269", "0.58822083", "0.58803755", "0.58730763", "0.5851182", "0.58337015", "0.58337015", "0.58085793", "0.5792708", "0.578189...
0.7635925
0
Test normal initializer with float16
def MgBh(YKHO): XkN1 = YKHO.test_normal_initializer('float16')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fl5M(YKHO):\n XkN1 = YKHO.test_normal_initializer('uint16')", "def toU7(YKHO):\n CbyH.enable_static()\n XkN1 = YKHO.test_truncated_normal_initializer('float16')\n YKHO.assertTrue(iAof(XkN1.ops[1]))", "def DRug(YKHO):\n CbyH.enable_static()\n XkN1 = YKHO.test_truncated_normal_initializer('...
[ "0.83097583", "0.8217459", "0.7919017", "0.7630314", "0.7422827", "0.7202075", "0.71484846", "0.70573133", "0.6678783", "0.62674725", "0.58909667", "0.5848897", "0.583965", "0.5752393", "0.5724646", "0.5718641", "0.5699333", "0.5699084", "0.5699084", "0.56963617", "0.5658586"...
0.88195324
0
Test truncated normal initializer in dygraph model.
def T7HI(YKHO): CbyH.disable_static() OGRA = CbyH.framework.ParamAttr(name='linear_weight', initializer=CbyH.nn.initializer.TruncatedNormal(mean=0.0, std=2.0)) z8o0 = CbyH.nn.Linear(2, 2, weight_attr=OGRA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lAly(YKHO):\n CbyH.disable_static()\n OGRA = CbyH.framework.ParamAttr(name='linear_weight', initializer=CbyH.nn.initializer.Normal(mean=0.0, std=2.0))\n z8o0 = CbyH.nn.Linear(2, 2, weight_attr=OGRA)", "def Sttx(YKHO, yDqo='float32'):\n CbyH.enable_static()\n YPqY = lBC3.Program()\n XkN1 = Y...
[ "0.73041004", "0.72237986", "0.7219708", "0.6640124", "0.6424948", "0.64190096", "0.6401665", "0.63537437", "0.63272846", "0.6312898", "0.6312898", "0.6299098", "0.6298672", "0.62792885", "0.6264452", "0.6217864", "0.61861306", "0.6164723", "0.61581624", "0.61536354", "0.6152...
0.79652053
0
Test Xavier initializer with normal distribution on for convolutions.
def cq1N(YKHO): CbyH.enable_static() YPqY = lBC3.Program() XkN1 = YPqY.global_block() for bGrB in range(2): xqoZ = XkN1.create_parameter(dtype='float32', shape=[5, 10, 15, 20], lod_level=0, name='param', initializer=MuED.XavierNormal()) YKHO.assertEqual(len(XkN1.ops), 1) ZCRR = XkN1.ops[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eBvf(YKHO):\n CbyH.enable_static()\n YPqY = lBC3.Program()\n XkN1 = YPqY.global_block()\n for bGrB in range(2):\n xqoZ = XkN1.create_parameter(dtype='float32', shape=[5, 10], lod_level=0, name='param', initializer=MuED.XavierNormal())\n YKHO.assertEqual(len(XkN1.ops), 1)\n ZCRR = XkN1....
[ "0.7791985", "0.68158203", "0.68127644", "0.67780757", "0.67485046", "0.66803116", "0.6564367", "0.64329195", "0.6346661", "0.62946093", "0.61584413", "0.61542493", "0.61522466", "0.61522466", "0.6124601", "0.6098015", "0.60466", "0.6023987", "0.60014665", "0.5986729", "0.598...
0.79593515
0
Test the numpy array initializer with float16
def k8Ng(YKHO): XkN1 = YKHO.test_assign_initializer('float16') YKHO.assertTrue(XkN1.ops[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MgBh(YKHO):\n XkN1 = YKHO.test_normal_initializer('float16')", "def Fl5M(YKHO):\n XkN1 = YKHO.test_normal_initializer('uint16')", "def pjL4(YKHO):\n XkN1 = YKHO.test_assign_initializer('uint16')\n YKHO.assertTrue(XkN1.ops[1])", "def eJOZ(YKHO):\n XkN1 = YKHO.test_constant_initializer_defau...
[ "0.78017044", "0.74366796", "0.73967427", "0.71905386", "0.7137351", "0.70207125", "0.6865345", "0.67720014", "0.6768654", "0.6323903", "0.6215375", "0.6188594", "0.6188594", "0.611075", "0.60898876", "0.6088794", "0.60012656", "0.5953", "0.59316945", "0.5915081", "0.5894678"...
0.7654192
1
Test the numpy array initializer with bfloat16
def pjL4(YKHO): XkN1 = YKHO.test_assign_initializer('uint16') YKHO.assertTrue(XkN1.ops[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fl5M(YKHO):\n XkN1 = YKHO.test_normal_initializer('uint16')", "def MgBh(YKHO):\n XkN1 = YKHO.test_normal_initializer('float16')", "def k8Ng(YKHO):\n XkN1 = YKHO.test_assign_initializer('float16')\n YKHO.assertTrue(XkN1.ops[1])", "def hOpP(YKHO):\n YKHO.test_constant_initializer_default_val...
[ "0.78134185", "0.752932", "0.72519493", "0.7226382", "0.71275234", "0.6976978", "0.69444215", "0.68052435", "0.65875053", "0.65240896", "0.6522082", "0.63933253", "0.6374746", "0.63384736", "0.6260068", "0.60869277", "0.60696936", "0.60696936", "0.6030592", "0.5829311", "0.58...
0.77430785
1
Get the json schema file for model model_name. view_file is a __file__ variable
def cidW(X3_l, ZGE9): with open(pmON.dirname(X3_l) + '/../schemas/json_schema_%s.json' % ZGE9, encoding='utf-8') as eHNT: return WEhu(eHNT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _OSd(C3ST):\n if XGnU(C3ST):\n with open(C3ST) as ukzC:\n return qQXR.load(ukzC)\n else:\n return qQXR.loads(C3ST)", "def IHWT(QF7s=None):\n from . import locate\n N3Zr = locate.get_datamodels()\n C3ST = N3Zr.JwstDataModel(schema=QF7s)\n return C3ST.schema", "def ...
[ "0.65406287", "0.61990404", "0.6140042", "0.6123467", "0.60593694", "0.6000906", "0.5932573", "0.5919325", "0.59106046", "0.5898413", "0.5888397", "0.58648646", "0.5864224", "0.5848767", "0.58455986", "0.58143073", "0.581092", "0.5802174", "0.57979655", "0.5797409", "0.579740...
0.81014687
0
x uniform grid (array of floats)
def FIMM(YKHO, WKvO, qC1Y=1): YKHO.ndim = qC1Y if YKHO.ndim == 1: YKHO.N = [len(WKvO)] YKHO.dx = [WKvO[1] - WKvO[0]] YKHO.x = [WKvO] YKHO.Dx, YKHO.Dxx = Enb5.derivs1d(WKvO) YKHO.precompute_operator = YKHO.operator1d else: YKHO.x = WKvO YKHO.N = [len(WK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kt1c(jHsn: int=20, pvd3: int=20) -> ht2j.Tensor:\n yqRF, MZBS = ht2j.meshgrid([ht2j.arange(pvd3), ht2j.arange(jHsn)])\n return ht2j.stack((MZBS, yqRF), 2).view(1, 1, pvd3, jHsn, 2).float()", "def Cs6h(YKHO):\n pvd3, jHsn = YKHO.size\n WKvO = oyIN.arange(jHsn) / jHsn * 2 * mM0K * YKHO.scales[1]\n ...
[ "0.71948314", "0.6892712", "0.6727928", "0.66505945", "0.6594614", "0.65635234", "0.6541608", "0.6541608", "0.646404", "0.6398017", "0.63767374", "0.63767374", "0.63767374", "0.63113", "0.6266983", "0.62646693", "0.62239957", "0.62239957", "0.6186988", "0.61628383", "0.616283...
0.0
-1
Deserializes the JSON file to __objects
def U3hF(YKHO): if Hy7s.path.isfile(YKHO.__file_path): with open(YKHO.__file_path, encoding='utf-8') as wM3v: zEKB = wM3v.read() IZ_3 = qQXR.loads(zEKB) for H5ew in IZ_3: qJgb = IZ_3.get(H5ew) kcns = qJgb.get('__class__') M_Yt = eval(kcns)(**qJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ddor(YKHO, TLbt):\n pass", "def ffSL(YKHO, Ux0P):\n with open(Ux0P, 'r') as G6EG:\n YKHO.sensors = qQXR.load(G6EG, cls=Ajxs)", "def Ueki(YKHO):\n if not Hy7s.path.exists(YKHO.filename):\n return\n with open(YKHO.filename, 'r') as ytgA:\n YKHO._object = HjBM.load(ytgA)", "...
[ "0.7162121", "0.7069028", "0.7061301", "0.70224226", "0.7001058", "0.6959057", "0.6941609", "0.68927723", "0.68856627", "0.687721", "0.6866052", "0.68632406", "0.68623567", "0.6820892", "0.67775995", "0.67696184", "0.67615616", "0.6741738", "0.673976", "0.6728507", "0.6728315...
0.0
-1
If no questions exist, an appropriate message is displayed.
def oK9x(YKHO): geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertContains(geh0, 'No polls are available.') YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bAls():\n return 'Sure.'", "def oK9x(YKHO):\n geh0 = YKHO.client.get('/polls/')\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, '등록된 설문조사가 없습니다.')\n YKHO.assertQuerysetEqual(geh0.context['question_list'], [])", "def oK9x(YKHO):\n geh0 = YKHO.client.get(gxEw('polls:in...
[ "0.70968", "0.6961695", "0.6906153", "0.68853587", "0.68753886", "0.68397427", "0.68052185", "0.6790371", "0.675324", "0.6674977", "0.6672006", "0.65892637", "0.6539892", "0.65218174", "0.6503947", "0.65029293", "0.64880466", "0.6478606", "0.64708424", "0.64616615", "0.643705...
0.682135
7
Questions with a pub_date in the past are displayed on the index page.
def MULS(YKHO): II0Q(question_text='Past question.', days=-30) geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question.>'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lrPw(YKHO):\n II0Q(question_text='Past question.', days=-1)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question.>'])", "def hOEG(YKHO):\n II0Q(question_text='Past question.', days=-1)\n II0Q(question_text='Fu...
[ "0.7111651", "0.7096923", "0.7055705", "0.70429885", "0.7034033", "0.7000487", "0.69339925", "0.6872151", "0.6857239", "0.6852442", "0.6820576", "0.67842954", "0.6783682", "0.6761873", "0.6761184", "0.6759549", "0.6741265", "0.673391", "0.67238563", "0.6699716", "0.66741055",...
0.6466408
48
Questions with a pub_date in the future aren't displayed on the index page.
def ALCE(YKHO): II0Q(question_text='Future question.', days=30) geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertContains(geh0, 'No polls are available.') YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t9CC(YKHO):\n II0Q(question_text='Test future question?', days=25)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertContains(geh0, 'No polls are available.')\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], [])", "def t9CC(YKHO):\n II0Q(question_text='Future Question....
[ "0.7142307", "0.69927174", "0.69902927", "0.6986264", "0.6980014", "0.6957755", "0.6933872", "0.6926376", "0.6908812", "0.68898296", "0.6872334", "0.68657446", "0.6853464", "0.6849034", "0.6846833", "0.6845277", "0.6845277", "0.6830693", "0.6830279", "0.682106", "0.6820043", ...
0.6768151
31
Even if both past and future questions exist, only past questions are displayed.
def fV9N(YKHO): II0Q(question_text='Past question.', days=-30) II0Q(question_text='Future question.', days=30) geh0 = YKHO.client.get(gxEw('polls:index')) YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past question.>'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tDUO(YKHO):\n II0Q(question_text='Future Question Example', days=30)\n II0Q(question_text='Past Question Example', days=-30)\n geh0 = YKHO.client.get(gxEw('polls:index'))\n YKHO.assertQuerysetEqual(geh0.context['latest_question_list'], ['<Question: Past Question Example>'])", "def Xb9Y(YKHO):\n ...
[ "0.7782276", "0.77200913", "0.75843865", "0.7583415", "0.7579686", "0.75701195", "0.7549289", "0.7543259", "0.7519421", "0.7504886", "0.7474245", "0.745846", "0.7433226", "0.73859805", "0.73778677", "0.7377652", "0.7357524", "0.73448354", "0.7342203", "0.7333296", "0.73202926...
0.75163263
9
Coverting array of tokens to array of ids, with a fixed max length and zero padding
def _Eet(YKHO, Wc9F): if not YKHO.max_len: wzH_ = max([len(mvm2) for mvm2 in Wc9F]) else: wzH_ = YKHO.max_len V22M = ht2j.zeros((len(Wc9F), wzH_), dtype=ht2j.long).to(begE) ZHfW = ht2j.zeros((len(Wc9F), wzH_), dtype=ht2j.long).to(begE) for YRbF, mvm2 in enumerate(Wc9F): for r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZzRC(s2mk, b0j5, G8d9):\n juz4 = b0j5.encode(s2mk)\n Pha6 = juz4 + [0] * (G8d9 - len(juz4))\n return Pha6", "def pD6a(s2mk, b0j5, G8d9):\n juz4 = b0j5.convert_tokens_to_ids(s2mk)\n Pha6 = juz4 + [0] * (G8d9 - len(juz4))\n return Pha6", "def pD6a(s2mk, b0j5, G8d9):\n juz4 = b0j5.convert...
[ "0.83546007", "0.82085615", "0.81910527", "0.81500494", "0.81309426", "0.8124816", "0.8124816", "0.80904996", "0.7557942", "0.7448827", "0.7099061", "0.7079078", "0.7031115", "0.7006852", "0.6932497", "0.6932497", "0.69316256", "0.6830614", "0.67646587", "0.67517394", "0.6748...
0.0
-1
Return the full path for the passed filename. This works crossplatform and uses AppKit to refer to the path when used on macOS.
def OyQC(Ux0P): mWFP = Hy7s.path.splitext(Ux0P)[0] YBcr = Hy7s.path.splitext(Ux0P)[1] if a9EH.system() == 'Darwin': from AppKit import NSBundle nUeQ = NSBundle.mainBundle().pathForResource_ofType_(mWFP, YBcr) return nUeQ or Hy7s.path.realpath(Ux0P) else: return Hy7s.path....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _91M(Ux0P: str):\n return str(GkAb(xAKo).parent / GkAb(Ux0P))", "def E0XI(Ux0P):\n return '{}/{}'.format(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), Ux0P)", "def qaEx(YKHO, Ux0P):\n YKHO._ensure_and_check_direct_access()\n mSqg = YKHO.get_info().get('path', '')\n if Ux0P is None or len(Ux0P)...
[ "0.79435015", "0.7826338", "0.7672329", "0.7528012", "0.7528012", "0.7491393", "0.7463056", "0.7435303", "0.73844355", "0.735047", "0.7348374", "0.730915", "0.72852653", "0.7274325", "0.7272989", "0.726933", "0.7264121", "0.7244867", "0.72126085", "0.7201398", "0.7200044", ...
0.84740126
0
Get the keyCredentials associated with an application.
def sxbq(YKHO, LNwz, xSC3=None, m6Me=False, **PK7a): def xkjx(_X_U=None, m6Me=False): if not _X_U: bD7m = YKHO.list_key_credentials.metadata['url'] wiSa = {'applicationObjectId': YKHO._serialize.url('application_object_id', LNwz, 'str'), 'tenantID': YKHO._serialize.url('self.config....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNQQ():\n with open('app_keys.json') as Vt89:\n sjXb = qQXR.load(Vt89)\n return sjXb", "def LOgT(YKHO):\n return YKHO.properties.setdefault('keyCredentials', UyMX(Ua0v))", "def TNQQ():\n Vt89 = edEe.AppAssertionCredentials(scope=nUMN)\n return Vt89", "def jtyk(YKHO, kvcN):\n retu...
[ "0.7389188", "0.67137396", "0.664194", "0.65835756", "0.6505301", "0.64134616", "0.6237633", "0.6234808", "0.6218941", "0.6214148", "0.6205907", "0.61666524", "0.6113881", "0.60790443", "0.60530996", "0.60490793", "0.60475767", "0.60406905", "0.6040203", "0.6037555", "0.60373...
0.63912827
6
Get the passwordCredentials associated with an application.
def sYWt(YKHO, LNwz, xSC3=None, m6Me=False, **PK7a): def xkjx(_X_U=None, m6Me=False): if not _X_U: bD7m = YKHO.list_password_credentials.metadata['url'] wiSa = {'applicationObjectId': YKHO._serialize.url('application_object_id', LNwz, 'str'), 'tenantID': YKHO._serialize.url('self.co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QDQA(w2B8: dict) -> dict:\n return NMoC(w2B8, pB1J)", "def yU8n(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'application_credential_secret')", "def yU8n(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'application_credential_secret')", "def TNQQ():\n ycms = Hy7s.path.expan...
[ "0.67613626", "0.6398098", "0.6398098", "0.62579525", "0.6203661", "0.6199183", "0.61785644", "0.6165743", "0.6138706", "0.61352766", "0.6130794", "0.6130794", "0.6130794", "0.6113373", "0.60538286", "0.60538286", "0.60379213", "0.60063434", "0.5976828", "0.5966981", "0.59583...
0.6235815
4
Gets an object id for a given application id from the current tenant.
def r7i3(YKHO, K6wN, xSC3=None, m6Me=False, **PK7a): bD7m = YKHO.get_service_principals_id_by_app_id.metadata['url'] wiSa = {'tenantID': YKHO._serialize.url('self.config.tenant_id', YKHO.config.tenant_id, 'str'), 'applicationID': YKHO._serialize.url('application_id', K6wN, 'str')} bD7m = YKHO._client.format...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(object):\n return object.id", "def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')", "def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')", "def NBcv(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'object_id')", "def NBcv(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'obj...
[ "0.7237837", "0.6833753", "0.6833753", "0.6698816", "0.6698816", "0.6698816", "0.6698816", "0.668981", "0.66197544", "0.66197544", "0.65722865", "0.65646714", "0.6553164", "0.65518236", "0.65374994", "0.6500957", "0.64724374", "0.6468037", "0.6468037", "0.6468037", "0.6468037...
0.0
-1
Getter for client's credentials.
def Vt89(YKHO): return YKHO._credentials
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCh8(YKHO, zb3C):\n return YKHO.db.clients.find_one({'_id': zb3C})", "def PZHO(YKHO):\n if YKHO.client_id == None or YKHO.client_secret == None:\n raise Exception('No client ID or secret found.')\n Ck5W = f'{YKHO.client_id}:{YKHO.client_secret}'\n AKhz = WR89.b64encode(Ck5W.encode())\n ...
[ "0.803565", "0.79169774", "0.7904744", "0.7836846", "0.78201675", "0.7817686", "0.76879555", "0.7663114", "0.76303494", "0.7570213", "0.7505619", "0.74541986", "0.7432133", "0.74015355", "0.7365727", "0.73457587", "0.7340117", "0.7323105", "0.72523165", "0.7223227", "0.721683...
0.7670383
7
Override this func to get a new reward function
def wctP(YKHO, DDJ9: str) -> AzJI[float, cuzp]: raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO):\n pass", "def DDs_(YKHO, Xsoz, AJEJ):\n return YKHO.reward_dictionary[0](Xsoz, AJEJ, YKHO.limbs_dict, YKHO.joint_dict, **YKHO.reward_kwargs)", "def DDs_(YKHO, Xsoz, AJEJ):\n return YKHO.reward_dictionary[4](Xsoz, AJEJ, YKHO.limbs_dict, YKHO.joint_dict, **YKHO.reward_kwargs)", "def DD...
[ "0.8298597", "0.8067755", "0.80037105", "0.7979058", "0.79762536", "0.7965135", "0.7940157", "0.7915263", "0.7744105", "0.7744105", "0.76388085", "0.76371646", "0.7616274", "0.76122296", "0.7547497", "0.7537746", "0.7519107", "0.7519107", "0.7519107", "0.7503176", "0.74528736...
0.68244064
50
Reset the env, scene can be restored and replayed by giving episode_data Reset the environment or load an episode from episode data to recover is
def SiRx(YKHO, l28y: dict=None, we6V: Union[None, int]=None): YKHO.lazy_init() YKHO._reset_global_seed(we6V) YKHO._update_map(episode_data=l28y) YKHO.engine.reset() if YKHO._top_down_renderer is not None: YKHO._top_down_renderer.reset(YKHO.current_map) YKHO.dones = {ILdH: False for ILdH ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n Cyum = YKHO.config.scenes\n YKHO.client.setup_scene(Cyum[0])", "def SiRx(YKHO):\n sQC5.loginfo('Resetting environment...')\n YKHO._pre_reset()\n YKHO.sim_handler.pause()\n YKHO.sim_handler.reset()\n YKHO._set_init_pose()\n YKHO._init_env_variables()\n YKHO._update_epi...
[ "0.74611205", "0.7454808", "0.7278975", "0.7120789", "0.70555377", "0.69869226", "0.6899308", "0.6889626", "0.6873698", "0.6824509", "0.6741691", "0.67271495", "0.6707574", "0.66589385", "0.6648769", "0.6612817", "0.6594804", "0.6591504", "0.6589895", "0.6565341", "0.6558649"...
0.6964444
6
Return all active vehicles
def wdIo(YKHO): return YKHO.agent_manager.active_agents
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def up0O(YKHO):\n YKHO._request('vehicles/')", "def wdIo(YKHO):\n return YKHO._vehicles", "def wdIo(YKHO):\n return YKHO._vehicles", "def CSB6(Emd4):\n wdIo = []\n for FMwV in fC1M.objects.all():\n wdIo.append(FMwV)\n return wdIo", "def OBp9(YKHO, wdIo):\n wdIo = list(filter(lam...
[ "0.8033838", "0.73442596", "0.73442596", "0.7163313", "0.6945469", "0.64052373", "0.63726366", "0.6344567", "0.62993956", "0.6234937", "0.6234937", "0.617736", "0.6161785", "0.6092385", "0.6084644", "0.6071341", "0.60159445", "0.6014474", "0.6013236", "0.5927732", "0.5895899"...
0.7470123
1
Calculates the reliability rating of the smartcab during testing.
def eKC7(nPrm): HIte = nPrm['success'].sum() * 1.0 / len(nPrm) if HIte == 1: return ('A+', 'green') elif HIte >= 0.9: return ('A', 'green') elif HIte >= 0.8: return ('B', 'green') elif HIte >= 0.7: return ('C', '#EEC700') elif HIte >= 0.6: return ('D', '#E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jyhc(YKHO):\n pass", "def Ywu4(YKHO):\n lMjC = wzmN(how_much_runs=3)\n VUP6(monitoring_run=lMjC[0], metadata=YKHO.wms_services[0], duration=rIAI.timedelta(milliseconds=100))\n ij0i = Z6sY(monitoring_run=lMjC[0], metadata=YKHO.wms_services[0])\n ij0i.run_health_state()\n VUP6(monitoring_run=...
[ "0.65704364", "0.63139206", "0.61400557", "0.612957", "0.6111299", "0.607633", "0.60552794", "0.60340446", "0.60090667", "0.60052234", "0.59449214", "0.59282094", "0.5880064", "0.5841842", "0.58362216", "0.5834442", "0.58288616", "0.58219516", "0.5808324", "0.58056444", "0.58...
0.0
-1
Parses the string as if it were a query URL.
def W1AW(YKHO, r9Q8, un1H=False): AkCj = '?%s' % r9Q8.replace(',', '&') lfmD = _Ibt(KVWQ(AkCj).query) if 'user' in lfmD.keys(): YKHO.user = lfmD['user'][0] if un1H: YKHO.user = YKHO.user.translate(None, '\'"') if 'hash' in lfmD.keys(): YKHO.hash = lfmD['hash'][0] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WdQa(YKHO, hPvN):\n pass", "def NPz1():\n if rIxU:\n import urllib.parse as KVWQ\n else:\n import KVWQ\n\n def _Ibt(nPrm):\n cK_b = {}\n for H5ew, wEf2 in KVWQ.parse_qs(nPrm).items():\n if not hasattr(wEf2, '__iter__'):\n wEf2 = [wEf2]\n ...
[ "0.74549365", "0.7148845", "0.709158", "0.68690735", "0.6838397", "0.6809224", "0.6809224", "0.679096", "0.6633787", "0.65975374", "0.65329456", "0.6488377", "0.6452605", "0.6389944", "0.6348884", "0.6285985", "0.6281697", "0.62677866", "0.62677735", "0.62298113", "0.6192945"...
0.5754585
62
Normalise all data to the range of [0, 1]
def kwsU(YKHO, nPrm): SUNP = {} for FMwV, L2MH in nPrm.items(): SUNP[FMwV] = {} for n2fR, oB5g in L2MH.items(): for XtFw in oB5g: SUNP[FMwV][XtFw] = {} SUNP[FMwV][XtFw]['min'] = None SUNP[FMwV][XtFw]['max'] = None for FMwV, L2MH in ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(YKHO, nPrm):\n if YKHO.clip:\n return nPrm.clip(0, 1)\n return oyIN.mod(nPrm, 1)", "def NkkI(YKHO, nPrm):\n try:\n Ytix = oyIN.array(kqFv)\n qoiF = oyIN.array(MrRg)\n ezF6 = Ytix - qoiF\n for YRbF in oyIN.arange(nPrm.shape[1]):\n nPrm[:, YRbF] = (nP...
[ "0.82128876", "0.8067941", "0.79524744", "0.79489577", "0.79292846", "0.78690183", "0.7779946", "0.7705467", "0.76642644", "0.76550037", "0.76374376", "0.76292557", "0.7624298", "0.7583263", "0.75827724", "0.75789356", "0.75602525", "0.7555643", "0.7538552", "0.74821085", "0....
0.0
-1
Remove numeric characters from a string
def z8W7(NPoT): return ''.join([YRbF for YRbF in NPoT if not YRbF.isdigit()])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HPRY(l5Ny: str) -> str:\n Aofo = ''\n for chr in l5Ny:\n if chr.isdigit():\n Aofo += chr\n return Aofo", "def ev3m(l5Ny):\n return ''.join((hcXw for hcXw in l5Ny if not hcXw.isdigit()))", "def mQGg(vIwR):\n return ZbWC.sub('\\\\D', '', vIwR)", "def ev3m(YKHO, l5Ny):\n ...
[ "0.81417966", "0.8138218", "0.80551875", "0.80293185", "0.79600316", "0.79392624", "0.7867696", "0.76968044", "0.7606288", "0.7566429", "0.75609845", "0.74789834", "0.7471895", "0.7412187", "0.7389223", "0.7346727", "0.73419374", "0.73278356", "0.72960305", "0.72864103", "0.7...
0.81366104
2
Apply sequential text cleaning functions to a list of strings
def QrZ9(kcsq, VkHn=GPtr.config_contraction_dict, u4Hd=' ', pC3l='!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~', Awav=' ', uSor=True): hlel = [] gLoo = len(kcsq) fI7g(f'Cleaning {gLoo} strings') for YRbF, KCHu in enumerate(kcsq): o0ZM = GEl4(KCHu.lower().strip(), VkHn, Awav) o0ZM = tYht(o0ZM) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pWYL(wuNX):\n iFsT = map(xRwb, wuNX)\n iFsT = UokU(iFsT)\n iFsT = Ur_2(iFsT)\n return iFsT", "def x0SS(eKnq, qnWP, JUcZ):\n for bTKY in eKnq:\n KCHu = bTKY.lower()\n KCHu = kyCi(KCHu)\n KCHu = _2XT(KCHu, qnWP)\n KCHu = nFq5(KCHu)\n KCHu = i8Xo(KCHu)\n ...
[ "0.6928448", "0.67703736", "0.66257054", "0.662255", "0.65655875", "0.65514046", "0.6475808", "0.64732033", "0.64704365", "0.64687705", "0.6455442", "0.64432424", "0.643786", "0.643575", "0.64184177", "0.64130366", "0.64115435", "0.6359278", "0.6357457", "0.634272", "0.634247...
0.726871
0
Testing SpyOpMatchAny with classmethod and op
def MrTl(YKHO): YKHO.agency.spy_on(uq0N.class_do_math, owner=uq0N, op=hzlz([{'kwargs': {'a': 5, 'b': 3}, 'op': KpeH([{'kwargs': {'a': 5, 'b': 3, 'x': 1}, 'op': Ni3t(123)}, {'kwargs': {'a': 5, 'b': 3, 'x': 2}, 'op': Ni3t(456)}])}])) YKHO.assertEqual(uq0N.class_do_math(a=5, b=3, x=1), 123) YKHO.assertEqual(uq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MrTl(YKHO):\n YKHO.agency.spy_on(uq0N.class_do_math, owner=uq0N, op=KpeH([{'kwargs': {'a': 5, 'b': 3}, 'op': Ni3t(123)}]))\n YKHO.assertEqual(uq0N.class_do_math(a=5, b=3), 123)", "def OqoT(YKHO):\n YKHO.agency.spy_on(uq0N.class_do_math, owner=uq0N, op=hzlz([{'kwargs': {'a': 5, 'b': 3}, 'call_fake': ...
[ "0.721421", "0.6858696", "0.67414176", "0.6535518", "0.6524981", "0.6483629", "0.64446586", "0.63656515", "0.63441676", "0.63206196", "0.6294769", "0.6283687", "0.6283687", "0.6283687", "0.6283687", "0.6283687", "0.6283687", "0.6283687", "0.6283687", "0.6283687", "0.6283687",...
0.73089254
0
Testing SpyOpMatchAny with unbound method
def EMNq(YKHO): YKHO.agency.spy_on(uq0N.do_math, owner=uq0N, op=hzlz([{'kwargs': {'a': 4, 'b': 3}}])) YEnM = uq0N() YKHO.assertEqual(YEnM.do_math(a=4, b=3), 7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AucH(YKHO):\n YKHO.agency.spy_on(uq0N.do_math, owner=uq0N, op=hzlz([{'kwargs': {'a': 4, 'b': 3}, 'op': KpeH([{'kwargs': {'a': 4, 'b': 3, 'x': 1}, 'op': Ni3t(123)}, {'kwargs': {'a': 4, 'b': 3, 'x': 2}, 'op': Ni3t(456)}])}]))\n YEnM = uq0N()\n YKHO.assertEqual(YEnM.do_math(a=4, b=3, x=1), 123)\n YKHO...
[ "0.68035924", "0.66565686", "0.6630578", "0.65858513", "0.6519356", "0.63936317", "0.6376334", "0.63703024", "0.6341372", "0.6334534", "0.63059723", "0.62408465", "0.62379444", "0.6206592", "0.6197058", "0.6197058", "0.6197058", "0.6197058", "0.6197058", "0.6197058", "0.61970...
0.709609
0
Returns the full hierarchical name of this object. The default implementation concatenates the hierarchical name of the parent, if any, with the leaf name of this object, as given by `UVMObject.get_name`.
def xpqj(YKHO) -> str: if YKHO.m_name == '': return YKHO.get_name() else: return YKHO.m_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jeLr(YKHO):\n if YKHO._hierarchy:\n return f'{YKHO._hierarchy}.{YKHO.name}'\n return YKHO.name", "def dCSO(YKHO):\n if YKHO.parent is not None:\n return YKHO.parent.getFullName() + '.' + YKHO.getName()\n return YKHO.getName()", "def mWFP(YKHO) -> str:\n _AKB = ''\n if YKHO._...
[ "0.7898252", "0.78579736", "0.7810673", "0.77896947", "0.75436884", "0.75436884", "0.7423735", "0.7372159", "0.71613127", "0.7067069", "0.703747", "0.7012261", "0.6840531", "0.6788904", "0.67852104", "0.6779386", "0.67559737", "0.67522985", "0.6692727", "0.6667347", "0.661163...
0.638633
66
Make columns orthogonal, to use Ganguli's initial conditions
def YIAH(r8hN): return oyIN.real(r8hN.dot(dKc3(HGSk(r8hN.T.dot(r8hN)))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YIAH(r8hN):\n dg7v = r8hN.column(0)\n iYf1 = r8hN.column(1)\n NsEr = r8hN.column(2)\n dg7v.normalize()\n iYf1 += dg7v * -lNLu.dot(iYf1, dg7v)\n iYf1.normalize()\n NsEr += dg7v * -lNLu.dot(NsEr, dg7v)\n NsEr += iYf1 * -lNLu.dot(NsEr, iYf1)\n NsEr.normalize()\n r8hN._e = dg7v._e + i...
[ "0.6625401", "0.63896704", "0.6232415", "0.6171123", "0.60975015", "0.60558397", "0.6050643", "0.6009296", "0.59966296", "0.59724677", "0.5910895", "0.5845025", "0.5809897", "0.5804673", "0.5753001", "0.57018596", "0.5682298", "0.5682298", "0.5675694", "0.56641346", "0.564797...
0.58279866
12
Used to set grad parameter accumulation to zero
def bkbQ(YKHO): XP5J, U_NH = YKHO.parameters() for Oa1e in U_NH: Oa1e.fill(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frhb(YKHO):\n for xqoZ in YKHO.params:\n xqoZ.grad = None", "def sbx9(YKHO):\n for xqoZ in YKHO.parameters():\n if xqoZ.grad is None:\n xqoZ.grad = xqoZ.new(*xqoZ.shape)\n xqoZ.grad.zero_()", "def frhb(YKHO):\n pass", "def frhb(YKHO):\n for k78t in YKHO.paramet...
[ "0.7990307", "0.7871455", "0.7841265", "0.7811179", "0.7697871", "0.7684987", "0.7684987", "0.76469773", "0.7593302", "0.7592144", "0.7592144", "0.7526387", "0.7526387", "0.75135964", "0.75135964", "0.7499542", "0.7459025", "0.7459025", "0.7459025", "0.7459025", "0.74478143",...
0.78361577
3
Root page view. This is essentially a singlepage app, if you ignore the login and admin parts.
def d6pt(QePW): TJWK = uHxD.objects.order_by('title') return _1tc(QePW, 'index.html', {'rooms': TJWK})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tk5Y():\n CBIr = TKWP()\n return TvZl('index.html', homepage=True, user=CBIr)", "def _fof(QePW):\n return _1tc(QePW, template_name='website/index.html')", "def Ev1b():\n bo34.info('At main app page.')\n return TvZl('index.html')", "def tk5Y():\n return TvZl('home.html')", "def kZiy(Qe...
[ "0.8158468", "0.77035934", "0.76191354", "0.75428396", "0.7493715", "0.73536134", "0.7314526", "0.72974", "0.7296653", "0.7257943", "0.7254751", "0.72336", "0.7230346", "0.7201111", "0.7156257", "0.7152482", "0.71295834", "0.71214056", "0.711845", "0.70985585", "0.7072113", ...
0.0
-1
Take a list of three tuples containing pairs of Fraction objects representing the (x, y) coordinates of noncolinear points, and return a 3 by 4 augmented matrix (a list of length 3 containing lists of length 4 of Fraction objects) with the coefficients for a, b, and c and the y value for ax^2 + bx + c with the given x....
def kgHu(LTIa): D1z_ = [] for AU8u in LTIa: D1z_.append([AU8u[0] ** 2, AU8u[0], kteF(1, 1), AU8u[1]]) return D1z_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FN88(YKHO):\n o4D3, si3g, Rtnc, ajwV, skBL, mPai = FCE9.symbols('x1, y1, z1, x2, y2, z2')\n Xlvp, nfKA, k19e = YKHO.point_symbols\n if YKHO.grid.dim == 2:\n k0lF = FCE9.Matrix([[1, o4D3, si3g, o4D3 * si3g], [1, o4D3, skBL, o4D3 * skBL], [1, ajwV, si3g, ajwV * si3g], [1, ajwV, skBL, ajwV * skBL]...
[ "0.61788934", "0.61430717", "0.60505736", "0.6026084", "0.598737", "0.5911941", "0.58519626", "0.5729091", "0.5690294", "0.5658237", "0.5563478", "0.5552352", "0.5529689", "0.54782116", "0.5468702", "0.54684365", "0.5468185", "0.5466811", "0.5452739", "0.54483736", "0.5445595...
0.77616304
0
Find "value" from list of tuples by using the other value in tuple as a search key and other as a returned value
def ZcVW(OlsH, I4p_, FZpk): for YRbF, Ty9i in enumerate(OlsH): if Ty9i[FZpk ^ 1] == I4p_: return Ty9i[FZpk]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def neBz(YKHO, G1Hx):\n jlF5 = YKHO._map[G1Hx]\n return (G1Hx, jlF5[0])", "def Kj3u(yv6U, BWXx):\n for or8S, geyT in enumerate(yv6U):\n if geyT[0] == BWXx:\n return (geyT, or8S)", "def yBzy(qnba, v2qf):\n tu39 = qnba[:]\n Qdf1(tu39, 0, len(tu39) - 1)\n for ZfUD in tu39:\n ...
[ "0.67902875", "0.67527634", "0.67009896", "0.6622639", "0.6491618", "0.64833236", "0.6457926", "0.6416719", "0.6403197", "0.6393009", "0.63486034", "0.62753975", "0.62610275", "0.6232328", "0.6225364", "0.6225144", "0.6199978", "0.617563", "0.6072314", "0.6014049", "0.6006858...
0.80264705
0
Recursively update dict d with values at all levels of dict u
def QdZT(Csk6, P6bq): for G1Hx, Ty9i in P6bq.items(): if isinstance(Ty9i, g760.Mapping): Mkmy = QdZT(Csk6.get(G1Hx, {}), Ty9i) Csk6[G1Hx] = Mkmy else: Csk6[G1Hx] = P6bq[G1Hx] return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jc8_(Csk6: collections.abc.Mapping, P6bq: collections.abc.Mapping):\n for G1Hx, Ty9i in P6bq.items():\n if isinstance(Ty9i, g760.abc.Mapping):\n Csk6[G1Hx] = Jc8_(Csk6.get(G1Hx, {}), Ty9i)\n else:\n Csk6[G1Hx] = Ty9i\n return Csk6", "def uMS1(Csk6, P6bq):\n for G1...
[ "0.87685925", "0.8637167", "0.8552593", "0.85338", "0.839775", "0.8361276", "0.82076365", "0.80507493", "0.7869298", "0.77147174", "0.7706959", "0.75998354", "0.75738925", "0.7508938", "0.74500686", "0.740977", "0.7373433", "0.7348277", "0.7346516", "0.7331076", "0.7296187", ...
0.7707516
10
Function to save into a file .json
def AHFl(Emd4, Nkld): aDlp = [] if Nkld is not None: for YRbF in Nkld: aDlp.append(YRbF.to_dictionary()) with open('{}.json'.format(Emd4.__name__), 'w') as fnT7: fnT7.write(Emd4.to_json_string(aDlp))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1ai(VqRE, nPrm):\n with open(VqRE, 'w') as ynmQ:\n qQXR.dump(nPrm, ynmQ)", "def ncJT(object, nUeQ):\n with open(nUeQ, 'wb') as hlel:\n qQXR.dump(object, hlel)", "def QN9E(gIsw, TLbt):\n with open(gIsw, 'w') as nUeQ:\n qQXR.dump(TLbt, nUeQ)", "def eGRE(YKHO, pmON):\n with...
[ "0.8157197", "0.815281", "0.81467676", "0.8142839", "0.81375563", "0.81251186", "0.8103799", "0.8099409", "0.8065318", "0.8043034", "0.80419326", "0.80395985", "0.80262554", "0.80250055", "0.80238765", "0.8013148", "0.80129546", "0.8011181", "0.7990416", "0.7990261", "0.79902...
0.0
-1
Initializes a sorted list node.
def FIMM(YKHO, BWXx, wkpI): YKHO._value = _qLf(BWXx) YKHO._next = wkpI return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, qm0x):\n YKHO.sorted_list = qm0x", "def FIMM(YKHO):\n YKHO._head = o7DN(None, None)\n YKHO._last = YKHO._head\n YKHO._itemCount = 0\n YKHO._depth = 0", "def FIMM(YKHO, V52X, eJTR=None):\n YKHO.llist = {}\n YKHO.kind = eJTR\n YKHO.kinds = {None, 'doublylinked', 'circular'}...
[ "0.7382483", "0.70341396", "0.6975081", "0.69608", "0.6939027", "0.6875137", "0.68028665", "0.6792202", "0.67738086", "0.67360336", "0.67360336", "0.67360336", "0.6724493", "0.6706872", "0.6699513", "0.66920525", "0.6685539", "0.66806704", "0.66703445", "0.66703445", "0.66703...
0.0
-1
Returns the size of the list.
def szAg(YKHO): return YKHO._count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n vIOz = len(YKHO._list)\n return vIOz", "def zNig(YKHO):\n return len(YKHO.list)", "def u54L(YKHO):\n return YKHO.list.size", "def u54L(YKHO):\n return YKHO.list.size", "def u54L(YKHO):\n return YKHO.list.size", "def szAg(YKHO) -> int:\n zNig = 0\n for Csk6 in YKH...
[ "0.90926903", "0.89035106", "0.86221087", "0.86221087", "0.86221087", "0.85561603", "0.8512053", "0.85050356", "0.8456314", "0.84277785", "0.84049577", "0.8336877", "0.8327291", "0.82900226", "0.827998", "0.8256693", "0.8248886", "0.82364076", "0.81752723", "0.8168517", "0.81...
0.0
-1
Cannot do a (simple) binary search on a linked structure. Searches for the first occurrence of key in the sorted list. Performs a stable search. Private helper method used only by other ADT methods.
def _7iH(YKHO, H5ew): AOBR = None jvSB = YKHO._front d6pt = 0 while jvSB is not None and jvSB._value < H5ew: AOBR = jvSB jvSB = jvSB._next d6pt += 1 if jvSB is None or jvSB._value != H5ew: d6pt = -1 return (AOBR, jvSB, d6pt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jUbz(jzdc, H5ew):\n raTX = -1\n SMR4 = len(jzdc)\n\n def WTjz(jzdc, H5ew, or8S):\n if jzdc[or8S] < H5ew:\n return True\n else:\n return False\n while abs(raTX - SMR4) > 1:\n x1fj = (raTX + SMR4) // 2\n if WTjz(jzdc, H5ew, x1fj):\n raTX = ...
[ "0.7278367", "0.7212211", "0.7193963", "0.71186686", "0.7115887", "0.7114122", "0.70955175", "0.70925426", "0.70688224", "0.70602447", "0.70520663", "0.70187765", "0.7007865", "0.6997767", "0.6983195", "0.69709754", "0.696885", "0.6930525", "0.6918954", "0.6911841", "0.683215...
0.6855241
20
Removes the first node in the list and returns its value.
def WvVJ(YKHO): assert YKHO._front is not None, 'Cannot remove from an empty list' BWXx = YKHO._front._value YKHO._front = YKHO._front._next YKHO._count -= 1 if YKHO._front is None: YKHO._rear = None return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ksvm(YKHO):\n if YKHO.head is None:\n raise Exception('Empty list')\n BWXx = YKHO.head.value\n YKHO.head = YKHO.head.next\n YKHO.size -= 1\n return BWXx", "def Hxuq(YKHO):\n if YKHO.is_empty():\n raise ValueError('List is empty')\n Q6kx = YKHO._head\n YKHO._head = YKHO._...
[ "0.8041958", "0.7999286", "0.7784463", "0.7746732", "0.76814854", "0.7645399", "0.7618948", "0.7597836", "0.7576921", "0.75468206", "0.75296813", "0.75240386", "0.7477373", "0.74752086", "0.74621093", "0.742305", "0.73616856", "0.7338139", "0.73153996", "0.731116", "0.7298765...
0.7405606
16
Finds and returns a copy of value in list that matches key.
def neBz(YKHO, H5ew): bGrB, jvSB, YRbF = YKHO._linear_search(H5ew) if YRbF != -1: BWXx = _qLf(jvSB._value) else: BWXx = None return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r582(Uqbu, H5ew, BWXx):\n for Csk6 in Uqbu:\n if H5ew in Csk6 and Csk6[H5ew] == BWXx:\n return Csk6", "def TgwQ(YKHO, H5ew, BWXx):\n for U6D_ in YKHO:\n if U6D_.get(H5ew) == BWXx:\n return U6D_\n return None", "def kXUv(aPd6, H5ew, BWXx):\n return [kRsb for k...
[ "0.72324944", "0.72025377", "0.7168818", "0.7035794", "0.69517434", "0.69472873", "0.6938555", "0.6888051", "0.6876405", "0.686847", "0.6845365", "0.68202835", "0.6817503", "0.6810544", "0.67827666", "0.67343223", "0.6731019", "0.6706633", "0.67033815", "0.6695868", "0.668542...
0.7284572
0
Finds location of a value by key in list.
def d6pt(YKHO, H5ew): bGrB, bGrB, YRbF = YKHO._linear_search(H5ew) return YRbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWIM(yv6U, H5ew, BWXx):\n try:\n return next((d6pt for d6pt, WKvO in enumerate(yv6U) if WKvO[H5ew] == BWXx))\n except:\n return None", "def TrX4(list, H5ew):\n for YRbF, ZfUD in enumerate(list):\n if ZfUD == H5ew:\n return YRbF\n return -1", "def neBz(yv6U, H5ew,...
[ "0.7877487", "0.77747613", "0.76439035", "0.75873345", "0.7542263", "0.74918324", "0.7375646", "0.7354311", "0.7280478", "0.7121495", "0.7082962", "0.70379865", "0.7029491", "0.7003715", "0.6971575", "0.6950923", "0.6949096", "0.6926266", "0.6915864", "0.686809", "0.6846177",...
0.0
-1
Finds the minimum value in the sorted list.
def min(YKHO): assert YKHO._front is not None, 'Cannot find minimum of an empty list' BWXx = _qLf(YKHO._front._value) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XcNI(aPd6):\n Aofo = aPd6[0]\n for WKvO in aPd6:\n if WKvO < Aofo:\n Aofo = WKvO\n return Aofo", "def hb6I(YKHO):\n jQgd = YKHO.__my_list.copy()\n jQgd.sort()\n return jQgd[0]", "def vELP(vC9B):\n TKGt = vC9B[0]\n for YRbF in vC9B:\n if YRbF < TKGt:\n ...
[ "0.8341104", "0.8247612", "0.81463563", "0.8114207", "0.8100819", "0.80460906", "0.7982086", "0.7952007", "0.795062", "0.7946261", "0.7880057", "0.7877637", "0.78422433", "0.78332204", "0.7744255", "0.77255154", "0.77249664", "0.7720926", "0.7712245", "0.76864594", "0.7662061...
0.7182195
53
Determines the number of times key appears in the sorted list.
def UHFx(YKHO, H5ew): FGW3 = 0 bGrB, jvSB, YRbF = YKHO._linear_search(H5ew) if YRbF > -1: while jvSB is not None and jvSB._value == H5ew: FGW3 += 1 jvSB = jvSB._next return FGW3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO, H5ew):\n FGW3 = 0\n jvSB = YKHO._front\n while jvSB is not None:\n if jvSB._value == H5ew:\n FGW3 += 1\n jvSB = jvSB._next\n return FGW3", "def UHFx(H5ew):\n FGW3 = Pgpp.get(H5ew, 0)\n return FGW3", "def UHFx(YKHO, H5ew):\n try:\n return len(Y...
[ "0.7661404", "0.73619705", "0.7294173", "0.6767038", "0.67279303", "0.6700795", "0.6686104", "0.6653721", "0.6648762", "0.6623248", "0.66089576", "0.6600102", "0.6558992", "0.65483075", "0.65404975", "0.64928865", "0.6486917", "0.648409", "0.64797926", "0.63942486", "0.638885...
0.77849984
0
Removes duplicates from the sorted list. The list contains one and only one of each value formerly present in the list. The first occurrence of each value is preserved.
def x0SS(YKHO): sxdw = YKHO._front while sxdw is not None: jvSB = sxdw._next while jvSB is not None and jvSB._value == sxdw._value: sxdw._next = jvSB._next YKHO._count -= 1 jvSB = jvSB._next if jvSB is None: YKHO._rear = sxdw sxdw =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sHC1(YKHO, list):\n return set((ZfUD for ZfUD in list))", "def uY6T(list):\n return set((ZfUD for ZfUD in list))", "def dDv2(yv6U):\n PwWw = set()\n aygV = PwWw.add\n return [ZfUD for ZfUD in yv6U if ZfUD not in PwWw and (not aygV(ZfUD))]", "def uY6T(yv6U):\n return list(set([YRbF for Y...
[ "0.81525886", "0.7961487", "0.7916916", "0.7827531", "0.77666175", "0.773062", "0.7716551", "0.77109414", "0.77054846", "0.76818097", "0.76643616", "0.76500654", "0.7631729", "0.7624508", "0.7542548", "0.7524303", "0.7517789", "0.7513127", "0.7469286", "0.7460416", "0.7445549...
0.0
-1
Determines whether two lists are identical. (iterative version)
def hHbZ(YKHO, pan_): if YKHO._count != pan_._count: H0BN = False else: LbnQ = YKHO._front PZ9o = pan_._front while LbnQ is not None and LbnQ._value == PZ9o._value: LbnQ = LbnQ._next PZ9o = PZ9o._next H0BN = LbnQ is None return H0BN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YqE1(jtyf, V70B):\n if len(jtyf) != len(V70B):\n return False\n for YRbF in range(len(jtyf)):\n if jtyf[YRbF] != V70B[YRbF]:\n return False\n return True", "def KrEN(iHrl, X1zw):\n return g760.Counter(iHrl) == g760.Counter(X1zw)", "def OFYF(jzdc, Fg_i) -> bool:\n if ...
[ "0.83546525", "0.81563455", "0.8087343", "0.8056587", "0.80205417", "0.79046756", "0.78761303", "0.78304046", "0.7825504", "0.77877575", "0.7784111", "0.7772451", "0.7582352", "0.7561796", "0.7541561", "0.7498714", "0.7457402", "0.7412367", "0.74115753", "0.7397694", "0.73829...
0.6890757
48
Return device specific state attributes.
def TzCU(YKHO): hkS8 = {'valve': YKHO.current_actuator, 'temperature_correction': YKHO.temperature_correction} return hkS8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._state_at...
[ "0.88108975", "0.8712805", "0.8712805", "0.8712805", "0.8712805", "0.86934614", "0.8681972", "0.8663977", "0.86243933", "0.86243933", "0.86243933", "0.86243933", "0.86243933", "0.86159307", "0.86159307", "0.85891783", "0.85891783", "0.85891783", "0.85788935", "0.8571439", "0....
0.0
-1
Return the display name of this thermostat.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y0hN(YKHO) -> str:\n return YKHO.get_hardware_state()['display_name']", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> st...
[ "0.84989077", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986", "0.80286986"...
0.0
-1