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
Computes the forward pass for an affine (fullyconnected) layer. The input x has shape (N, d_1, ..., d_k) and contains a minibatch of N examples, where each example x[i] has shape (d_1, ..., d_k). We will reshape each input into a vector of dimension D = d_1 ... d_k, and then transform it to an output vector of dimensio...
def Fav1(WKvO, yzQ0, Fg_i): yvT9 = oyIN.dot(WKvO, yzQ0) + Fg_i wyyA = (WKvO, yzQ0, Fg_i) return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fav1(WKvO, yzQ0, Fg_i):\n yvT9 = None\n GhuM = WKvO.shape\n QRFO = 1\n for YRbF in range(1, len(GhuM)):\n QRFO *= GhuM[YRbF]\n jzdc = WKvO.reshape(WKvO.shape[0], QRFO)\n yvT9 = oyIN.dot(jzdc, yzQ0) + Fg_i\n wyyA = (WKvO, yzQ0, Fg_i)\n return (yvT9, wyyA)", "def KVH6(YKHO, WKvO)...
[ "0.6997446", "0.68818486", "0.6687843", "0.6508727", "0.6505531", "0.64564824", "0.644714", "0.64125097", "0.6408686", "0.63552046", "0.63551813", "0.634814", "0.63433015", "0.6333991", "0.63222986", "0.6308687", "0.63032967", "0.62968314", "0.6296366", "0.62950695", "0.62901...
0.6135907
39
Computes the backward pass for an affine layer.
def Kt1o(zYcP, wyyA): WKvO, yzQ0, Fg_i = wyyA Jw7X = oyIN.dot(zYcP, yzQ0.transpose()) lWPh = yzQ0.shape[0] ywwl = WKvO.shape[0] ncXl = oyIN.dot(WKvO.transpose(), zYcP) NCls = oyIN.dot(zYcP.transpose(), oyIN.ones(ywwl)) return (Jw7X, ncXl, NCls)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wxmU(zYcP, wyyA):\n A45l, GhMp = wyyA\n SG6Y = fhcK.relu_backward(zYcP, GhMp)\n Jw7X, ncXl, NCls = fhcK.affine_backward(SG6Y, A45l)\n return (Jw7X, ncXl, NCls)", "def Kt1o(zYcP, wyyA):\n WKvO, yzQ0, Fg_i = wyyA\n Jw7X, ncXl, NCls = (None, None, None)\n aWf9 = oyIN.prod(WKvO[0].shape)\n ...
[ "0.7518896", "0.751513", "0.7310849", "0.73015374", "0.73015374", "0.73015374", "0.73015374", "0.7243401", "0.7177609", "0.7174102", "0.71661735", "0.71319", "0.7106919", "0.70978165", "0.708432", "0.7068546", "0.70449376", "0.70409757", "0.6993727", "0.6986414", "0.6983679",...
0.7173503
10
Computes the forward pass for a layer of rectified linear units (ReLUs).
def wN5Y(WKvO): yvT9 = oyIN.maximum(0, WKvO) wyyA = WKvO return (yvT9, wyyA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drfk(YKHO):\n\n def XVC9(yR_P, g6LF, EYyA):\n \"\"\"\n If there is a negative gradient, change it to zero\n \"\"\"\n nWP1 = YKHO.forward_relu_outputs[-1]\n nWP1[nWP1 > 0] = 1\n e1d4 = nWP1 * ht2j.clamp(g6LF[0], min=0.0)\n del YKHO.forward_relu_outputs...
[ "0.6776496", "0.6630567", "0.66034645", "0.6524613", "0.65097547", "0.64478225", "0.63858074", "0.62696755", "0.620592", "0.6181689", "0.61548615", "0.6139935", "0.6063423", "0.6056323", "0.6049887", "0.60487914", "0.60198", "0.5997235", "0.59914005", "0.59708583", "0.5964868...
0.0
-1
Computes the backward pass for a layer of rectified linear units (ReLUs).
def PPFh(zYcP, wyyA): WKvO = wyyA zYcP[WKvO <= 0] = 0 Jw7X = zYcP return Jw7X
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PPFh(YKHO, gEpz, wyyA):\n WKvO = wyyA\n WKvO = oyIN.array(WKvO, copy=True)\n WKvO[WKvO <= 0] = 0\n WKvO[WKvO > 0] = 1\n cf5c = gEpz * WKvO\n return cf5c", "def ZD5u(OaeV, pwN3):\n N77f, lQ3t, P6bq, OCi3 = OaeV.saved_tensors\n begE = P6bq.device\n SGf8 = 1e-10\n Ro40, = ht2j.auto...
[ "0.70412636", "0.694716", "0.6897693", "0.6847592", "0.6847592", "0.6846935", "0.6841099", "0.68178034", "0.6766849", "0.6754919", "0.67536426", "0.67530656", "0.67419785", "0.6739244", "0.6713423", "0.6708748", "0.6699276", "0.6696307", "0.6696307", "0.66860896", "0.6665928"...
0.6597477
31
The actual executing function for predicting the disorder of a sequence using metapredict. Returns a list containing predicted disorder values for the input sequence. Arguments sequence the amino acid sequence to be predicted network the network used by the predictor. See brnn_architecture BRNN_MtO for more info. devic...
def qlTX(aWuw, eVVj=Tbzl, begE=begE, NQex=NQex): aWuw = CLON(aWuw) laMx = T__e.one_hot(aWuw) laMx = laMx.view(1, len(laMx), -1) hlel = round(float(eVVj(laMx.float()).detach().numpy()[0]), 6) if hlel < 0: hlel = 0 return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, kZla):\n return YKHO.session.run(YKHO.prediction, feed_dict={YKHO.input_placeholder: kZla})", "def x8I_(YKHO, DEke):\n return YKHO.decode_node(DEke).input_history()", "def ThzS(YKHO, aWuw=list) -> str:\n try:\n yvT9 = []\n for GIN8 in aWuw:\n yvT9.append(YKHO.de...
[ "0.55787903", "0.5394409", "0.5368819", "0.53248674", "0.5210656", "0.50722724", "0.50478786", "0.49213985", "0.48744547", "0.48431647", "0.4834561", "0.48193526", "0.4797648", "0.47840875", "0.4676878", "0.46718803", "0.46663803", "0.46406817", "0.46259552", "0.45872033", "0...
0.5765658
0
Set the value of the current marker.
def ub_b(YKHO, wEf2: int) -> None: if (wEf2 - YKHO._offset) % YKHO._step != 0: raise ValueError(f'value {wEf2} is not multiple of step size.') YKHO._current = (wEf2 - YKHO._offset) // YKHO._step
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _6g1(YKHO, BWXx):\n YKHO._current = YKHO._setpoint - BWXx", "def Bc7X(YKHO):\n YKHO._marker = YKHO._idx", "def j6Nn(YKHO, BWXx: float):\n YKHO.points[0, 0] = BWXx\n return YKHO", "def BWXx(YKHO, BWXx):\n YKHO.set_data(BWXx)", "def j6Nn(YKHO):\n raise NotImplementedError", "def CTe4(...
[ "0.69956017", "0.6694013", "0.6688986", "0.6672211", "0.6670149", "0.66624993", "0.6584124", "0.6569158", "0.65394557", "0.65394557", "0.64922523", "0.6487138", "0.6477574", "0.64572304", "0.64237803", "0.6406157", "0.640175", "0.6390843", "0.6386253", "0.6386253", "0.6337263...
0.6150167
51
Returns the last saved index.
def GXwK(YKHO) -> h8nf[int]: return YKHO._save_marker
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHeM(YKHO) -> int:\n return YKHO._last_index", "def YX7w(YKHO):\n return YKHO.index.get_index_revision(YKHO.name)", "def GXwK(YKHO) -> h8nf[int]:\n return YKHO._bin_iter.get_last_save()", "def GUPV(YKHO):\n return ul7n.register(CwDs.DataFrame.last_valid_index)(YKHO).to_pandas().squeeze()", ...
[ "0.8059884", "0.7504637", "0.73891056", "0.7325026", "0.7233485", "0.72185564", "0.7170764", "0.7019229", "0.7019229", "0.6925926", "0.6909408", "0.6882913", "0.6869769", "0.6817334", "0.6810632", "0.67963475", "0.677237", "0.6765704", "0.67527777", "0.67416215", "0.67329866"...
0.6975678
9
Return last save information.
def kvUa(YKHO) -> ImMB: return YKHO._save_info
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvUa(YKHO) -> ImMB:\n return YKHO._bin_iter.get_last_save_info()", "def H0sy(YKHO):\n YKHO.connect()\n YKHO._write('LASTSAVE\\r\\n')\n return YKHO._get_numeric_response()", "def H0sy(YKHO):\n return YKHO.format_inline('LASTSAVE')", "def GXwK(YKHO) -> h8nf[int]:\n return YKHO._save_marke...
[ "0.89722526", "0.85279757", "0.82430357", "0.8007399", "0.788004", "0.7610971", "0.7330726", "0.70822066", "0.6998658", "0.6928949", "0.6914646", "0.6795354", "0.67539304", "0.6748196", "0.6700925", "0.6682189", "0.66325873", "0.66325873", "0.6614579", "0.6598687", "0.6595880...
0.9172279
0
Set the value of the current marker.
def ub_b(YKHO, wEf2: int) -> None: YKHO._bin_iter.set_current(wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _6g1(YKHO, BWXx):\n YKHO._current = YKHO._setpoint - BWXx", "def Bc7X(YKHO):\n YKHO._marker = YKHO._idx", "def j6Nn(YKHO, BWXx: float):\n YKHO.points[0, 0] = BWXx\n return YKHO", "def BWXx(YKHO, BWXx):\n YKHO.set_data(BWXx)", "def j6Nn(YKHO):\n raise NotImplementedError", "def CTe4(...
[ "0.6996747", "0.6696348", "0.6691076", "0.66716844", "0.6670308", "0.66627103", "0.65853775", "0.65715915", "0.6540106", "0.6540106", "0.6494586", "0.64868546", "0.64778334", "0.64574546", "0.6426425", "0.6408616", "0.64056075", "0.6390868", "0.6388772", "0.6388772", "0.63374...
0.5998851
71
Returns the last saved index.
def GXwK(YKHO) -> h8nf[int]: return YKHO._bin_iter.get_last_save()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHeM(YKHO) -> int:\n return YKHO._last_index", "def YX7w(YKHO):\n return YKHO.index.get_index_revision(YKHO.name)", "def GUPV(YKHO):\n return ul7n.register(CwDs.DataFrame.last_valid_index)(YKHO).to_pandas().squeeze()", "def HFkI(YKHO):\n oCfW = YKHO.client.query('SELECT MAX(ID) FROM {}.{};'.f...
[ "0.8059884", "0.7504637", "0.7325026", "0.7233485", "0.72185564", "0.7170764", "0.7019229", "0.7019229", "0.6975678", "0.6925926", "0.6909408", "0.6882913", "0.6869769", "0.6817334", "0.6810632", "0.67963475", "0.677237", "0.6765704", "0.67527777", "0.67416215", "0.67329866",...
0.73891056
2
Return last save information.
def kvUa(YKHO) -> ImMB: return YKHO._bin_iter.get_last_save_info()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvUa(YKHO) -> ImMB:\n return YKHO._save_info", "def kvUa(YKHO) -> ImMB:\n return YKHO._save_info", "def H0sy(YKHO):\n YKHO.connect()\n YKHO._write('LASTSAVE\\r\\n')\n return YKHO._get_numeric_response()", "def H0sy(YKHO):\n return YKHO.format_inline('LASTSAVE')", "def GXwK(YKHO) -> h8...
[ "0.9172279", "0.9172279", "0.85279757", "0.82430357", "0.8007399", "0.788004", "0.7610971", "0.7330726", "0.70822066", "0.6998658", "0.6928949", "0.6914646", "0.6795354", "0.67539304", "0.6748196", "0.6700925", "0.6682189", "0.66325873", "0.66325873", "0.6614579", "0.6598687"...
0.89722526
2
Returns the last saved index.
def GXwK(YKHO) -> h8nf[float]: return None if YKHO._save_marker is None else YKHO._save_marker + YKHO._offset
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHeM(YKHO) -> int:\n return YKHO._last_index", "def YX7w(YKHO):\n return YKHO.index.get_index_revision(YKHO.name)", "def GXwK(YKHO) -> h8nf[int]:\n return YKHO._bin_iter.get_last_save()", "def GUPV(YKHO):\n return ul7n.register(CwDs.DataFrame.last_valid_index)(YKHO).to_pandas().squeeze()", ...
[ "0.80640113", "0.7507082", "0.7391751", "0.73269564", "0.7233087", "0.72226304", "0.7174905", "0.70141697", "0.70141697", "0.6978358", "0.69229746", "0.69128305", "0.68870735", "0.6866033", "0.6821348", "0.6815645", "0.67906594", "0.67749774", "0.67693985", "0.67573273", "0.6...
0.62504005
74
Return last save information.
def kvUa(YKHO) -> ImMB: return YKHO._save_info
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvUa(YKHO) -> ImMB:\n return YKHO._bin_iter.get_last_save_info()", "def H0sy(YKHO):\n YKHO.connect()\n YKHO._write('LASTSAVE\\r\\n')\n return YKHO._get_numeric_response()", "def H0sy(YKHO):\n return YKHO.format_inline('LASTSAVE')", "def GXwK(YKHO) -> h8nf[int]:\n return YKHO._save_marke...
[ "0.89722526", "0.85279757", "0.82430357", "0.8007399", "0.788004", "0.7610971", "0.7330726", "0.70822066", "0.6998658", "0.6928949", "0.6914646", "0.6795354", "0.67539304", "0.6748196", "0.6700925", "0.6682189", "0.66325873", "0.66325873", "0.6614579", "0.6598687", "0.6595880...
0.9172279
1
Initialize a TestWithServers object.
def FIMM(YKHO, *qIxc, **B2fa): super().__init__(*qIxc, **B2fa) YKHO.start_agents_once = False YKHO.start_servers_once = False YKHO.skip_teardown = False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **B2fa):\n super().__init__(*qIxc, **B2fa)\n YKHO.start_servers_once = False\n YKHO.setup_start_agents = False\n YKHO._Test__status = 'PASS'", "def FIMM(YKHO, s3ol):\n YKHO.info = None\n YKHO.is_mock = False\n YKHO.cluster = None\n YKHO.bucket = None\n YKHO.bucket...
[ "0.6888252", "0.660209", "0.648664", "0.6449894", "0.6417553", "0.64153713", "0.63708556", "0.6364088", "0.63633144", "0.63631713", "0.6316102", "0.6260956", "0.6257777", "0.624245", "0.6212352", "0.6185544", "0.6158926", "0.6158916", "0.611455", "0.610989", "0.6097735", "0...
0.7187639
0
Expect that an object can be instantiated with the right attributes.
def as4H(azoT): _63S = jFQi(miriam_id='MIR:00000022', prefix='go', pattern='^GO:\\d{7}$') KAOR = A5jY(namespace=_63S, **azoT) for hkS8, BWXx in azoT.items(): assert getattr(KAOR, hkS8) == BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kpyl(YKHO, mWFP, YEnM):\n assert getattr(Radr, mWFP) == YEnM", "def Kpyl(YKHO, mWFP, YEnM):\n assert getattr(Radr, mWFP) == YEnM", "def PDJx(YKHO):\n\n class InvalidClass(object):\n pass\n ju84 = cKRo()\n with YKHO.assertRaises(TypeError):\n HyUK.from_object(ju84)", "def U6sw...
[ "0.71503836", "0.71503836", "0.6796081", "0.67125994", "0.668577", "0.66723245", "0.6597072", "0.6565062", "0.6543619", "0.65400124", "0.6530825", "0.6482194", "0.64496", "0.6442326", "0.6433054", "0.6426752", "0.6417383", "0.6406627", "0.6394254", "0.6380104", "0.63665533", ...
0.0
-1
Returns all undirected arcs in graph. get_arcs() > arcs_list
def Iv4D(YKHO): cp5e = [] for bEc9 in YKHO._inc.values(): AIu6 = bEc9.get_first_record() while AIu6 is not None: Io6r = AIu6.element cp5e.append(Io6r) AIu6 = AIu6._next return cp5e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iv4D(YKHO):\n cp5e = []\n for qubV in YKHO._inc.values():\n for Io6r in qubV:\n cp5e.append(Io6r)\n return cp5e", "def fkSB(YKHO):\n return [Io6r for Io6r in sorted(YKHO._arcs)]", "def Cm5h(YKHO):\n return [Io6r for Io6r in sorted(YKHO._arcsFrom)]", "def Pd7B(YKHO):\n ...
[ "0.7499071", "0.74306184", "0.7165414", "0.7127766", "0.71054125", "0.681787", "0.65847176", "0.6429544", "0.59809476", "0.59109604", "0.5893879", "0.5625166", "0.5591395", "0.55446804", "0.55156904", "0.5458692", "0.5416836", "0.53254515", "0.52808005", "0.52786505", "0.5278...
0.7357747
2
Returns the number of undirected arcs in graph. get_num_arcs() > number_of_arcs
def nDhZ(YKHO): lLkj = 0 for Q6kx in YKHO._nodes.values(): lLkj += Q6kx._deg return lLkj / 2 + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lLkj(YKHO):\n return len(YKHO.arcs)", "def lLkj(YKHO):\n return sum((len(QTBn) for QTBn in YKHO))", "def epQE(YKHO):\n return sum(map(lambda WKvO: len(WKvO), YKHO.__adj))", "def ovND(YKHO):\n if YKHO._edges is None:\n return 0\n return len(YKHO._edges)", "def QCuF(YKHO):\n exwG...
[ "0.80341387", "0.76588017", "0.6912911", "0.6762265", "0.66221523", "0.6603356", "0.6560245", "0.6498628", "0.64569664", "0.64034027", "0.6391387", "0.63166565", "0.6271878", "0.6262268", "0.6259048", "0.62554514", "0.6233253", "0.62108713", "0.6203938", "0.61763436", "0.6172...
0.79111135
2
Returns all undirected arcs in graph. get_arcs() > arcs_list
def Iv4D(YKHO): cp5e = [] for qubV in YKHO._inc.values(): for Io6r in qubV: cp5e.append(Io6r) return cp5e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fkSB(YKHO):\n return [Io6r for Io6r in sorted(YKHO._arcs)]", "def Iv4D(YKHO):\n cp5e = []\n for bEc9 in YKHO._inc.values():\n AIu6 = bEc9.get_first_record()\n while AIu6 is not None:\n Io6r = AIu6.element\n cp5e.append(Io6r)\n AIu6 = AIu6._next\n ret...
[ "0.74303085", "0.7357441", "0.7165093", "0.71280026", "0.7106027", "0.68184125", "0.6584792", "0.6429587", "0.59820795", "0.5911749", "0.58946306", "0.5624975", "0.55916166", "0.5544698", "0.5516112", "0.54596144", "0.54168606", "0.532552", "0.52816194", "0.5279009", "0.52790...
0.7498992
0
Returns the number of undirected arcs in graph. get_num_arcs() > number_of_arcs
def nDhZ(YKHO): lLkj = 0 for Q6kx in YKHO._nodes.values(): lLkj += Q6kx._deg return lLkj / 2 + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lLkj(YKHO):\n return len(YKHO.arcs)", "def lLkj(YKHO):\n return sum((len(QTBn) for QTBn in YKHO))", "def epQE(YKHO):\n return sum(map(lambda WKvO: len(WKvO), YKHO.__adj))", "def ovND(YKHO):\n if YKHO._edges is None:\n return 0\n return len(YKHO._edges)", "def QCuF(YKHO):\n exwG...
[ "0.80372286", "0.7661691", "0.6913476", "0.6761787", "0.66245705", "0.6602966", "0.6559722", "0.64979243", "0.6455858", "0.6402722", "0.63918346", "0.63142896", "0.6270248", "0.62627816", "0.62591267", "0.6256276", "0.6234838", "0.6211756", "0.6204173", "0.61757195", "0.61711...
0.79136765
1
Sets the cluster_uuid of this HyperflexClusterAllOf.
def sP8F(YKHO, sP8F): YKHO._cluster_uuid = sP8F
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", "def hKn5(YKHO, hKn5):\n YKHO._cluster = hKn5", ...
[ "0.6429439", "0.6429439", "0.6429439", "0.6429439", "0.6429439", "0.6429439", "0.6402282", "0.62209904", "0.6195924", "0.5773054", "0.5749447", "0.563489", "0.56327045", "0.5582954", "0.54076076", "0.5392397", "0.5392397", "0.5392397", "0.5263759", "0.51589984", "0.5158502", ...
0.76086754
0
Sets the deployment_type of this HyperflexClusterAllOf.
def sO7t(YKHO, sO7t): BbPm = ['NA', 'Datacenter', 'Stretched Cluster', 'Edge'] if YKHO.local_vars_configuration.client_side_validation and sO7t not in BbPm: raise ValueError('Invalid value for `deployment_type` ({0}), must be one of {1}'.format(sO7t, BbPm)) YKHO._deployment_type = sO7t
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc0P(YKHO, lc0P):\n YKHO._cluster_type = lc0P", "def ds0v(YKHO, ds0v):\n YKHO._execution_type = ds0v", "def PHUN(YKHO, type):\n YKHO.execution_type = type", "def plaN(YKHO, plaN):\n if YKHO.local_vars_configuration.client_side_validation and plaN is None:\n raise ValueError('Invalid va...
[ "0.60431296", "0.5086802", "0.5064511", "0.5031363", "0.49843484", "0.49203134", "0.48616284", "0.48574537", "0.47959578", "0.47540614", "0.47528192", "0.47440833", "0.4703899", "0.4646632", "0.46301425", "0.4621747", "0.45647252", "0.45608556", "0.4549358", "0.45373568", "0....
0.7309751
0
Sets the hypervisor_type of this HyperflexClusterAllOf.
def ZZ7k(YKHO, ZZ7k): BbPm = ['Unknown', 'Hyper-V', 'ESXi'] if YKHO.local_vars_configuration.client_side_validation and ZZ7k not in BbPm: raise ValueError('Invalid value for `hypervisor_type` ({0}), must be one of {1}'.format(ZZ7k, BbPm)) YKHO._hypervisor_type = ZZ7k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc0P(YKHO, lc0P):\n YKHO._cluster_type = lc0P", "def auGu(YKHO, auGu):\n if auGu is None:\n raise ValueError('Invalid value for `host_type`, must not be `None`')\n BbPm = ['ESXI', 'RHELKVM', 'UBUNTUKVM']\n if auGu not in BbPm:\n raise ValueError('Invalid value for `host_type` ({0}),...
[ "0.55367905", "0.5317164", "0.5315374", "0.50082", "0.49498853", "0.49016467", "0.46648487", "0.46638283", "0.46264988", "0.45733088", "0.4504203", "0.44881976", "0.44741535", "0.44719192", "0.4442753", "0.44245493", "0.4424139", "0.43838647", "0.43795475", "0.43447226", "0.4...
0.6603614
0
Sets the vm_count of this HyperflexClusterAllOf.
def FGRK(YKHO, FGRK): YKHO._vm_count = FGRK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jcKm(YKHO, jcKm):\n YKHO._hyperv_host_count = jcKm", "def tquZ(YKHO, tquZ):\n YKHO._vms_every = tquZ", "def kRap(YKHO, kRap):\n YKHO._node_count = kRap", "def M5b0(YKHO, M5b0):\n YKHO._vlans_every = M5b0", "def DqKU(YKHO, DqKU):\n YKHO._vcpus = DqKU", "def OtzW(YKHO, OtzW):\n YKHO._...
[ "0.6480355", "0.6073736", "0.6024782", "0.5824801", "0.58180416", "0.5770712", "0.57170534", "0.56994927", "0.56954896", "0.56296235", "0.55417037", "0.5516289", "0.54838496", "0.54283017", "0.5389219", "0.53383934", "0.5328772", "0.53028303", "0.5276403", "0.5249321", "0.524...
0.7467594
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, SvX8): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, SvX8): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
Converts span_info string into a list of (class_id, start, end) where start, end are coordinates of starting and ending(exclusive) tokens in input_ids of BertExample
def Bg8K(YKHO, zWFh: List[str]) -> x1iM[AzJI[int, int, int]]: Cwyg = [] for XP5J in zWFh: if XP5J == '': break Z9rn, yKcO, Os4s = XP5J.split(' ') if Z9rn not in YKHO._semiotic_classes: raise KeyError('class=' + Z9rn + ' not found in self._semiotic_classes') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNWz(aKnq):\n mReh = []\n for uvMl in aKnq.split(';'):\n yKcO, Os4s = uvMl.split(' ')\n mReh.append((int(yKcO), int(Os4s)))\n return mReh", "def zNWz(aKnq):\n mReh = []\n for uvMl in aKnq.split(';'):\n yKcO, Os4s = uvMl.split(' ')\n mReh.append((int(yKcO), int(Os4s)...
[ "0.6694162", "0.6694162", "0.59442824", "0.56873554", "0.56584054", "0.5445474", "0.5369233", "0.5335527", "0.5329429", "0.530567", "0.52593035", "0.52254045", "0.51691306", "0.51481", "0.5081967", "0.50652266", "0.5064506", "0.5049527", "0.5025644", "0.5018323", "0.49570754"...
0.7336412
0
Splits tokens to WordPieces.
def FsSq(YKHO, s2mk: List[str]) -> AzJI[x1iM[str], x1iM[int]]: WAZf = [] hPPC = [] for YRbF, eOtH in enumerate(s2mk): hPPC.append(len(WAZf) + 1) Zoh6 = YKHO._tokenizer.tokenize(eOtH) WAZf.extend(Zoh6) return (WAZf, hPPC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I0dp(YKHO, s2mk: List[str]) -> AzJI[x1iM[str], x1iM[int], x1iM[int]]:\n Gv1d: x1iM[str] = []\n IENd = []\n XB2B = []\n SCAk = 0\n for eOtH in s2mk:\n if YKHO.lowercase_input:\n eOtH = eOtH.lower()\n Q30W = YKHO.bert_tokenizer.wordpiece_tokenizer.tokenize(eOtH)\n X...
[ "0.7718129", "0.77164775", "0.7153895", "0.7032158", "0.6962991", "0.66200703", "0.6474708", "0.6467611", "0.6329463", "0.6323796", "0.6319143", "0.6304826", "0.6293882", "0.62516576", "0.62516576", "0.62516576", "0.62516576", "0.62516576", "0.6248654", "0.6247854", "0.624779...
0.84632087
0
Get a data loader created from a given set of data.
def nS26(Emd4, Ep8u, EcVT, fuBA, **B2fa): fWMI = ht2j.from_numpy(EcVT).float() if 'classification_problem' in B2fa and B2fa['classification_problem'] == False: ce5K = ht2j.from_numpy(fuBA).float() else: ce5K = ht2j.from_numpy(fuBA).long() __n6 = sAMW(fWMI, ce5K) B2fa.pop('classificat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RuZU(nPrm, qQXR, Ep8u, hXNa, I7Gy):\n __n6 = uUr5(nPrm, qQXR)\n zQKy = ht2j.utils.data.DataLoader(dataset=__n6, batch_size=Ep8u, shuffle=hXNa, num_workers=I7Gy, collate_fn=QxcP)\n return zQKy", "def JWbQ(mWFP: str, **B2fa) -> zQKy.DataLoader:\n if mWFP == 'synthetic_images':\n G9jH.info('C...
[ "0.7418241", "0.7164697", "0.70335335", "0.69989353", "0.6958592", "0.6948308", "0.69271505", "0.69046247", "0.68932927", "0.68793124", "0.6853601", "0.68313813", "0.68218905", "0.6807754", "0.6802762", "0.68013585", "0.6791337", "0.678437", "0.6720881", "0.66964626", "0.6679...
0.6525021
37
Return True if n is a power of two.
def z0fB(exwG): if exwG <= 0: return False else: return exwG & exwG - 1 == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gEah(YKHO, exwG: int) -> bool:\n if exwG <= 0:\n return False\n return bin(exwG).count('1') == 1", "def z0fB(exwG):\n if exwG < 0:\n return False\n else:\n return exwG & exwG - 1 == 0", "def z0fB(exwG: Union[int, float]):\n if exwG > 1:\n if exwG != int(exwG):\n ...
[ "0.9018986", "0.8857611", "0.86676097", "0.84409565", "0.8168425", "0.81002796", "0.81002796", "0.79719347", "0.78607", "0.7523444", "0.75003964", "0.74941194", "0.7263389", "0.7162678", "0.7140002", "0.70655465", "0.70607436", "0.69604325", "0.6865322", "0.6846204", "0.68415...
0.88537836
2
Test that the mealname details are valid characters when sending request
def c4eZ(YKHO): with YKHO.client: geh0 = YKHO.add_meal('@#$%&*', 15000) nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertEqual(nPrm.get('message'), 'Invalid characters not allowed') YKHO.assertEqual(geh0.status_code, 400)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ywPi(YKHO):\n with YKHO.client:\n geh0 = YKHO.add_meal('qwertyuioplkjhgfdsazxcvbnmqwertyu', 15000)\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertEqual(nPrm.get('message'), 'Meal name must be between 3 to 25 characters long')\n YKHO.assertEqual(geh0.status_code, 400)", "d...
[ "0.76297855", "0.752459", "0.7474777", "0.68675774", "0.67901903", "0.6785424", "0.66192967", "0.6551511", "0.63857937", "0.6332464", "0.63204396", "0.6261282", "0.62425226", "0.6226742", "0.62000394", "0.6187489", "0.6164175", "0.6141783", "0.6141425", "0.6088481", "0.606342...
0.82743394
0
Test that the meal name already exists.
def GzMp(YKHO): with YKHO.client: YKHO.add_meal('fries', 10000) geh0 = YKHO.add_meal('fries', 10000) nPrm = qQXR.loads(geh0.data.decode()) YKHO.assertEqual(nPrm.get('message'), 'Meal name already exists') YKHO.assertEqual(geh0.status_code, 409)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z7_f(YKHO):\n with YKHO.client:\n geh0 = YKHO.add_meal('', 15000)\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertEqual(nPrm.get('message'), 'Meal name must be between 3 to 25 characters long')\n YKHO.assertEqual(geh0.status_code, 400)", "def L9m8(YKHO):\n YKHO.business...
[ "0.6780348", "0.667173", "0.65495557", "0.6524667", "0.63617384", "0.6304246", "0.6284538", "0.6279259", "0.62737167", "0.62415534", "0.6238222", "0.60730106", "0.6058156", "0.6053416", "0.6039715", "0.6024508", "0.6006363", "0.5971962", "0.59654087", "0.59534395", "0.5948781...
0.8401512
0
Test that the mealname details are valid characters on put request
def yj3K(YKHO): with YKHO.client: eOtH = YKHO.get_token() id = YKHO.get_id() geh0 = YKHO.client.put('api/v1/meals/{}'.format(id), data=qQXR.dumps(dict(meal_name='@#$%', price=15000)), content_type='application/json', headers={'token': eOtH}) nPrm = qQXR.loads(geh0.data.decode()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c4eZ(YKHO):\n with YKHO.client:\n geh0 = YKHO.add_meal('@#$%&*', 15000)\n nPrm = qQXR.loads(geh0.data.decode())\n YKHO.assertEqual(nPrm.get('message'), 'Invalid characters not allowed')\n YKHO.assertEqual(geh0.status_code, 400)", "def ywPi(YKHO):\n with YKHO.client:\n ...
[ "0.742772", "0.69959277", "0.6857145", "0.6852675", "0.6788875", "0.67586106", "0.6739723", "0.6688951", "0.6517848", "0.6350542", "0.63475436", "0.6342937", "0.6299844", "0.62980103", "0.62492305", "0.6225188", "0.61846375", "0.61774576", "0.61622924", "0.61357594", "0.61313...
0.8544771
0
Compute the pressure of the current particle configuration
def FYja(BZ33): IhAV = 16 / 3 * oyIN.pi * InLe ** 2 * (2 - RBVb ** (-9) / 3 - RBVb ** (-3)) CJ2p = IhAV + InLe / UqYS for YRbF in range(QzvI): Jw7X = mSFl(BZ33, YRbF) for r845 in range(YRbF + 1, QzvI): FbT9 = oyIN.dot(Jw7X[r845, :], Jw7X[r845, :]) CJ2p += TmT_(FbT9, R...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CJ2p(YKHO):\n YKHO._read_temperature()\n Yh3e = YKHO._read24(S7ov) / 16\n CIn9 = float(YKHO._t_fine) / 2.0 - 64000.0\n AhCl = CIn9 * CIn9 * YKHO._pressure_calib[5] / 32768.0\n AhCl = AhCl + CIn9 * YKHO._pressure_calib[4] * 2.0\n AhCl = AhCl / 4.0 + YKHO._pressure_calib[3] * 65536.0\n ExCh ...
[ "0.73936445", "0.7337461", "0.71730494", "0.70827323", "0.7049176", "0.6989879", "0.69646585", "0.6908126", "0.6890221", "0.6882728", "0.6871883", "0.67027974", "0.6697975", "0.6679239", "0.6679239", "0.6679239", "0.6572112", "0.6558551", "0.6558551", "0.6558551", "0.64772576...
0.747002
0
draw a rectangle with a given width, height, penColor and fillColor, with the current location of the turtle being the lower left corner, and the bottom side tilted by an angle tilt (specified in degrees) relative to the horizontal axis. After the rectangle is drawn, the turtle should return to its original position wi...
def L0yp(TVTK, H2v2, paov, sq7Y, aOX1): EuKi.color(sq7Y, aOX1) EuKi.seth(paov) EuKi.begin_fill() for YRbF in range(2): EuKi.forward(TVTK) EuKi.left(90) EuKi.forward(H2v2) EuKi.left(90) EuKi.end_fill()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tIaV():\n EuKi.color('green', 'yellow')\n EuKi.seth(90)\n EuKi.begin_fill()\n EuKi.forward(50)\n EuKi.left(90)\n EuKi.forward(100)\n EuKi.left(90)\n EuKi.forward(50)\n EuKi.left(90)\n EuKi.forward(100)\n EuKi.left(90)\n EuKi.end_fill()", "def fnPg(a1PO, mawX):\n a1PO.pu...
[ "0.7304146", "0.7190478", "0.71585023", "0.7068305", "0.7068305", "0.69947356", "0.6928198", "0.6604455", "0.6480822", "0.6426968", "0.6412329", "0.63512874", "0.6303055", "0.62805146", "0.62341964", "0.6198877", "0.6169091", "0.61562616", "0.6046428", "0.60213184", "0.601331...
0.7976209
0
Returns the transport used by the client instance.
def PdI0(YKHO) -> zI3Y: return YKHO._client.transport
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PdI0(YKHO):\n return YKHO._transport", "def PdI0(YKHO) -> XLc3:\n return YKHO._client.transport", "def PdI0(YKHO) -> WYqF:\n return YKHO._client.transport", "def PdI0(YKHO) -> PaEF:\n return YKHO._client.transport", "def PdI0(YKHO) -> JKRZ:\n return YKHO._client.transport", "def PdI0(Y...
[ "0.82946277", "0.7887542", "0.773594", "0.773068", "0.76806635", "0.7674273", "0.7558095", "0.7551682", "0.75303864", "0.74958986", "0.7488142", "0.7436853", "0.7423566", "0.7368433", "0.73340607", "0.721926", "0.7109823", "0.7102308", "0.68808985", "0.68144", "0.6671675", ...
0.76357967
6
r"""Gets the IAM access control policy for a function. Returns an empty policy if the function exists and does not have a policy set.
async def get_iam_policy(YKHO, QePW: Optional[iam_policy_pb2.GetIamPolicyRequest]=None, *, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Union[float, object]=uMLX.method.DEFAULT, yIVm: Sequence[Tuple[str, str]]=()) -> u0K_.Policy: if isinstance(QePW, dict): QePW = N1Ai.GetIamPolicyRequest(**QePW) lTaB ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LWdt(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'network_access_policy')", "def aesk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'client_access_policy')", "def qFaa(IBYC):\n return Qabx.get(TdCj(IBYC), {})", "def Qabx(YKHO) -> h8nf[qe4Y.Input['ServicePolicyArgs']]:\n return qe4Y....
[ "0.6179221", "0.6158454", "0.6112438", "0.61038685", "0.61038685", "0.60069275", "0.5966878", "0.5966878", "0.59451264", "0.59451264", "0.59343827", "0.5903599", "0.588349", "0.5872577", "0.5869546", "0.5866386", "0.58580077", "0.5834978", "0.5834978", "0.5834978", "0.5778721...
0.0
-1
Update Kubernetes config file with new image version
def V29g(qaEx, Ilxn, DpZH): with open(qaEx) as ytgA: Nqlg = ytgA.readlines() AHFD = [] for zFiD in Nqlg: if zFiD.find(Ilxn) > -1: SQ3m = zFiD.split(Ilxn) SQ3m[-1] = DpZH + '\n' b_bB = Ilxn.join(SQ3m) AHFD.append(b_bB) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XyC0(YKHO):\n if not YKHO.spec.get('image'):\n try:\n YKHO.spec['image'] = YKHO._get_image_from_artifact()\n except (AttributeError, KeyError) as err:\n raise LookupError(f'Could not get {YKHO.name} container image: {XObx}') from XObx\n try:\n DpZH = YKHO.spec['...
[ "0.636528", "0.5963231", "0.588698", "0.5866082", "0.5853383", "0.5832107", "0.5717316", "0.5706842", "0.5698264", "0.5686603", "0.5670921", "0.5659763", "0.5652932", "0.56305796", "0.5627882", "0.5621333", "0.5578423", "0.5575629", "0.55399454", "0.5518833", "0.5511859", "...
0.0
-1
The output shape of the batchnorm should be (None, nr_timesteps, nr_filters)
def AFEt(YKHO): DMw4 = KYEi((None, 20, 3), 2) C3ST = DMw4.create_model(**{'filters': [32, 32], 'fc_hidden_nodes': 100}) AoAz = C3ST.layers[2] assert AoAz.output_shape == (None, 20, 32)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def idFg(YKHO, g4y1):\n WKvO = g4y1\n WKvO = YKHO.bn(WKvO)\n return WKvO", "def AFEt(YKHO):\n C3ST = BzCN.generate_CNN_model((None, 20, 3), 2, [32, 32], 100)\n AoAz = C3ST.layers[2]\n assert AoAz.output_shape == (None, 20, 32)", "def idFg(g4y1, Y9ns, wH3T):\n return ZylS.compat.v1.layers.b...
[ "0.70630753", "0.7031779", "0.64930296", "0.6474249", "0.64451873", "0.64271545", "0.6374522", "0.6368659", "0.6357454", "0.63463193", "0.63236684", "0.63129306", "0.63121563", "0.63046867", "0.63026893", "0.6271101", "0.6255141", "0.6212837", "0.62011766", "0.6142625", "0.61...
0.71714324
0
Layer normalize the tensor x, averaging over the last dimension.
def vUJ3(WKvO, KUnM=None, _hZ2=1e-06, mWFP=None, CJGY=None): if KUnM is None: KUnM = TmOq.shape_list(WKvO)[-1] with ZylS.variable_scope(mWFP, default_name='layer_norm', values=[WKvO], reuse=CJGY): NXpY, oug5 = f84_(KUnM) return BJAT(WKvO, _hZ2, NXpY, oug5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO, WKvO, EvQg=True):\n if EvQg is not None:\n JBMS, I8JS = ZylS.nn.moments(WKvO, [0, 1, 2])\n ghdg = YKHO.mean.assign(JBMS)\n RPPm = YKHO.variance.assign(I8JS)\n with ZylS.control_dependencies([ghdg, RPPm]):\n return ZylS.nn.batch_norm_with_global_normalization...
[ "0.7025246", "0.7000931", "0.69984037", "0.6946193", "0.6926463", "0.6913268", "0.6907985", "0.68715054", "0.6863467", "0.6787572", "0.6776529", "0.67483455", "0.6723166", "0.6712802", "0.6702004", "0.66976094", "0.6691674", "0.66691875", "0.6619964", "0.6619837", "0.65780723...
0.0
-1
Convert a number into the GDSII 8 byte real format.
def ogHH(BWXx): if BWXx == 0: return b'\x00\x00\x00\x00\x00\x00\x00\x00' if BWXx < 0: xTfc = 128 BWXx = -BWXx else: xTfc = 0 nX3R = XTiz.log2(BWXx) / 4 w520 = int(XTiz.ceil(nX3R)) if nX3R == w520: w520 += 1 vJbO = int(BWXx * 16.0 ** (14 - w520)) xT...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ogHH(BWXx):\n if BWXx == 0:\n return b'\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00'\n if BWXx < 0:\n xTfc = 128\n BWXx = -BWXx\n else:\n xTfc = 0\n nX3R = XTiz.log2(BWXx) / 4\n w520 = int(XTiz.ceil(nX3R))\n if nX3R == w520:\n w520 += 1\n vJbO = int(BWXx * 16...
[ "0.6979643", "0.6864766", "0.58973575", "0.5896776", "0.58232516", "0.5792698", "0.57434374", "0.56907225", "0.5621632", "0.5616022", "0.5605519", "0.5580687", "0.5539226", "0.5517988", "0.5507881", "0.54723024", "0.5425649", "0.5422295", "0.54033047", "0.54002154", "0.539832...
0.7045766
0
Return True if the queen at column c clashes with any queen to its left.
def nERh(lHmx, Z9rn): for YRbF in range(Z9rn): if C7r_(YRbF, lHmx[YRbF], Z9rn, lHmx[Z9rn]): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQiv(fvDH, OHLN):\n if fvDH in OHLN:\n return False\n elif any([abs(fvDH - iIDh) == len(OHLN) - d6pt for d6pt, iIDh in enumerate(OHLN)]):\n return False\n else:\n return True", "def SGVO(OHLN):\n exwG = len(OHLN)\n WfCS = range(exwG)\n return exwG == len(set((OHLN[YRbF]...
[ "0.7706922", "0.7293217", "0.7145031", "0.7017852", "0.6986524", "0.69041854", "0.66964936", "0.65575945", "0.6549814", "0.65225124", "0.65224487", "0.65224487", "0.65204614", "0.65154654", "0.651165", "0.651165", "0.65029234", "0.6499915", "0.6498407", "0.64938885", "0.64930...
0.6549823
8
Create a new instance of DatabaseManager. path is the path to the location where the databases should be stored. It may be a path to a physical disk location or a URI pointing to a network resource. engine is the class of the DatabaseEngine to use.
def FIMM(YKHO, pmON: Union[Path, str], eHpk: DatabaseEngine=a2Do): YKHO._path = pmON YKHO._cache = reoY() YKHO._engine = eHpk YKHO._registered_models = set() if isinstance(YKHO._path, GkAb) and (not YKHO._path.exists()): Hy7s.makedirs(YKHO._path, exist_ok=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, pmON: Union[str, Path]):\n if isinstance(pmON, str):\n pmON = GkAb(pmON)\n YKHO.path = pmON\n na1r.debug(f'Creating an engine at {pmON.absolute()}.')\n YKHO.engine = PWOV(pmON)\n YKHO._metadata = _qLf(i_Aq.metadata)\n YKHO._table_definitions = YKHO._metadata.tables\n na1r...
[ "0.662756", "0.6251338", "0.6063999", "0.59831834", "0.59511465", "0.5857252", "0.57939076", "0.5696416", "0.56038505", "0.55776995", "0.5554342", "0.55351424", "0.5415121", "0.54097456", "0.5406303", "0.53913856", "0.5385", "0.5383769", "0.53420824", "0.5324332", "0.53159714...
0.6682711
0
Like get_db(), but accepts discord.Message objects instead of strings. This method will load and return the database corresponding to the server the message was posted in. If the message was posted in a private/group channel instead, or wasn't specified at all, this method will return the "global" database instead for ...
def yqA4(YKHO, tO9_: Message=None) -> VQCX: if tO9_ is not None: if tO9_.guild: return YKHO.get_db(tO9_.guild.id) return YKHO.get_db('global')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GGod():\n if not hasattr(Oa1e, 'mongo_db'):\n Oa1e.db = z22G()\n return Oa1e.db", "def GGod(YKHO):\n YKHO.logger.info('in get_db()')\n try:\n return YKHO.client[YKHO.db_name]\n except Exception as e:\n YKHO.logger.error(f'Error occurred while getting client {tTpl}')", "d...
[ "0.60387623", "0.6007621", "0.60039407", "0.59741694", "0.59647924", "0.5954887", "0.5894861", "0.5861517", "0.5801435", "0.5800954", "0.5796669", "0.57623184", "0.57239234", "0.5721493", "0.5661909", "0.5623637", "0.56154066", "0.5609385", "0.56032556", "0.55729735", "0.5568...
0.80646133
0
Assert a user can read attendances with a POST request.
def LgSn(YKHO, CBIr, f6W2): r9m2 = Qi6a(email=CBIr.email, is_registered=True, user=CBIr, video=f6W2) KAOn = 1620800000 GoJb = geb4(email=None, is_registered=False, live_attendance={str(KAOn + 30): {'muted': 1, 'timestamp': str(KAOn + 30)}, str(KAOn + 1030): {'data': 0}, str(KAOn + 2230): {'volume': 0.15, 't...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qFF8(x0hE, BgA2, hg2S, M_2s, InOD):\n Ylbp = x0hE.post('/api/v1/schools', json=hg2S, headers=BgA2)\n assert Ylbp.status_code == 200\n Ylbp = x0hE.post('/api/v1/students', json=InOD, headers=BgA2)\n assert Ylbp.status_code == 200\n Ylbp = x0hE.post('/api/v1/attendances', json=M_2s, headers=BgA2)\...
[ "0.6773185", "0.6748962", "0.64997226", "0.6459053", "0.6109127", "0.60938007", "0.60767794", "0.6041294", "0.603253", "0.59640026", "0.5923378", "0.5914851", "0.5911544", "0.5881073", "0.5875813", "0.586984", "0.5866064", "0.5818814", "0.5817077", "0.57602245", "0.5735159", ...
0.6138403
4
Playlist instructors cannot read attendances.
def p2Y7(YKHO): DKxf = LdX7(role=ZCV6, playlist=YKHO.live.playlist) YKHO.assert_user_cannot_read_attendances(DKxf.user, YKHO.live)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PkCL(YKHO):\n DKxf = LdX7(role=rFtz, playlist=YKHO.live.playlist)\n YKHO.assert_user_can_read_attendances(DKxf.user, YKHO.live)", "def _ntQ(YKHO):\n f6W2 = RAVR(live_state=pO9U, live_info={'started_at': '1533686400'}, live_type=Bd_j)\n FXSj = Qi6a(consumer_site=f6W2.playlist.consumer_site, email=...
[ "0.71261066", "0.67814064", "0.65924937", "0.6538756", "0.63530916", "0.62338233", "0.62256163", "0.6147952", "0.6092726", "0.6037907", "0.5950574", "0.59284323", "0.59220904", "0.5850012", "0.577761", "0.571438", "0.5711754", "0.56460685", "0.5636679", "0.5573166", "0.555819...
0.69625235
1
Check if timestamps exist before the list of timestamp of the video they get ignored
def Bqnl(YKHO): KAOn = 1620800000 CiFP = KAOn + 3600 f6W2 = RAVR(live_state=wHqZ, live_info={'started_at': str(KAOn), 'stopped_at': str(CiFP)}, live_type=Bd_j) r9m2 = Qi6a(consumer_site=f6W2.playlist.consumer_site, email='samia@test-fun-mooc.fr', is_registered=True, live_attendance={str(KAOn - 1000): {'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G2u6(YKHO):\n M_Ra = ('XsyRkw', 'Xrim9Q', 'XsyR-w', 'XsySD_', 'Dn9r_A')\n for E3oo in M_Ra:\n with YKHO.subTest(timestamp=E3oo):\n Aofo = OG1j.is_valid_timestamp(E3oo)\n YKHO.assertTrue(Aofo)", "def WM0f(SFIC):\n return [f6W2 for f6W2 in SFIC if lr1q(f6W2.duration) > 60 ...
[ "0.6443534", "0.63065255", "0.6281298", "0.6047148", "0.6040499", "0.60060203", "0.5967887", "0.5943085", "0.585166", "0.57882375", "0.57427007", "0.57385916", "0.56402516", "0.5624533", "0.5616949", "0.55730563", "0.55486447", "0.5546568", "0.5535536", "0.55115545", "0.55047...
0.0
-1
This method returns if a vertex is a sink vertex as vector. The method generates a 1D Tensor containing the boolean values that indicates if the vertex at position `i` is a sink vertex.
def vquC(YKHO) -> ZylS.Tensor: return ZylS.not_equal(YKHO.out_degrees_tf_vector, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mXBz(YKHO, SLBp: int) -> gK8b:\n return ZylS.not_equal(ZylS.reshape([YKHO.out_degrees_tf_vertex(SLBp)], [1]), 0)", "def kQ22() -> bool:\n\n def Kr8v(exwG: Node):\n \"\"\"Get the inplace argument from ``torch.fx.Node``\n \"\"\"\n LpaZ = False\n if exwG.op == 'call_fun...
[ "0.71272177", "0.6080905", "0.60520786", "0.60015965", "0.60015965", "0.593374", "0.5583146", "0.5548035", "0.5546088", "0.5544098", "0.53978246", "0.52435184", "0.52233607", "0.5193353", "0.51919174", "0.518141", "0.5158784", "0.5143257", "0.51302934", "0.51260173", "0.51192...
0.6046263
3
This method returns if a vertex is a sink vertex as vector. The method generates a 1D Tensor containing the boolean values that indicates if the vertex at position `i` is a sink vertex.
def mXBz(YKHO, SLBp: int) -> gK8b: return ZylS.not_equal(ZylS.reshape([YKHO.out_degrees_tf_vertex(SLBp)], [1]), 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kQ22() -> bool:\n\n def Kr8v(exwG: Node):\n \"\"\"Get the inplace argument from ``torch.fx.Node``\n \"\"\"\n LpaZ = False\n if exwG.op == 'call_function':\n LpaZ = exwG.kwargs.get('inplace', False)\n elif exwG.op == 'call_module':\n LpaZ = get...
[ "0.6081741", "0.60543114", "0.6045907", "0.6003684", "0.6003684", "0.59358406", "0.55857277", "0.55483806", "0.5546105", "0.55444264", "0.540036", "0.524461", "0.5220987", "0.5194642", "0.51933354", "0.5182617", "0.5159223", "0.51437396", "0.5129145", "0.5127039", "0.51205236...
0.71280795
0
This method returns the degree of all vertex as vector. The method generates a 0D Array containing the outdegree of the vertex i.
def PYw1(YKHO, SLBp: int) -> ZylS.Tensor: return ZylS.gather(YKHO.out_degrees_tf, [SLBp])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tURI(YKHO, SLBp: np.int_):\n return len(YKHO.__adj[SLBp])", "def Mu_a(YKHO):\n return YKHO._degree_v", "def lJiv(YKHO, SLBp: np.int_):\n return sum(map(lambda WKvO: WKvO > 0, YKHO.__mat[:, SLBp]))", "def tjON(YKHO, Ty9i):\n YKHO._validateVertex(Ty9i)\n return YKHO._adj[Ty9i].size()", "de...
[ "0.734286", "0.7002177", "0.69189197", "0.6837811", "0.6617623", "0.65978247", "0.65728825", "0.64671457", "0.63548636", "0.6339309", "0.6277822", "0.6169775", "0.6081024", "0.60603887", "0.6054803", "0.6033193", "0.6009052", "0.5983941", "0.59818685", "0.5956546", "0.5947304...
0.5929953
24
Method that returns the edge set of the graph as list. This method return all the edges of the graph codified as 2D matrix in which the first dimension represents each edge and second dimension the source and destination vertices of each edge.
def QrBW(YKHO) -> ZylS.Tensor: return ZylS.cast(ZylS.where(ZylS.not_equal(YKHO.A_tf, 0)), ZylS.int64)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mC4V(YKHO):\n kXUa = []\n for CBRg in YKHO.vertices():\n for j9ly in YKHO.out_vertices(CBRg):\n kXUa.append(YKHO[CBRg][j9ly])\n return kXUa", "def xC8f(YKHO):\n HgP8 = []\n for Ty9i in YKHO.adjList:\n for YRbF in range(len(YKHO.adjList[Ty9i])):\n HgP8.append...
[ "0.8006193", "0.791543", "0.77964914", "0.7778343", "0.77041215", "0.7634973", "0.76320714", "0.7575193", "0.7556009", "0.7491028", "0.7467783", "0.74677205", "0.74677205", "0.74677205", "0.74566627", "0.7448589", "0.74090827", "0.7402998", "0.7304477", "0.7300385", "0.727743...
0.0
-1
Method that returns the edge set of the graph as list. This method return all the edges of the graph codified as 2D matrix in which the first dimension represents each edge and second dimension the source and destination vertices of each edge.
def dOM8(YKHO) -> oyIN.ndarray: return YKHO.run_tf(YKHO.edge_list_tf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mC4V(YKHO):\n kXUa = []\n for CBRg in YKHO.vertices():\n for j9ly in YKHO.out_vertices(CBRg):\n kXUa.append(YKHO[CBRg][j9ly])\n return kXUa", "def xC8f(YKHO):\n HgP8 = []\n for Ty9i in YKHO.adjList:\n for YRbF in range(len(YKHO.adjList[Ty9i])):\n HgP8.append...
[ "0.8008677", "0.7918403", "0.7799045", "0.77806884", "0.7705983", "0.76370907", "0.7634346", "0.75773376", "0.7558921", "0.7493058", "0.7470372", "0.74698174", "0.74698174", "0.74698174", "0.7458055", "0.74505377", "0.74115855", "0.74056315", "0.73063046", "0.73030066", "0.72...
0.0
-1
This method returns the indegree of all vertex as vector. The method generates a 1D Array containing the indegree of the vertex `i` at position `i`
def lG_t(YKHO) -> oyIN.ndarray: return YKHO.run_tf(YKHO.in_degrees_tf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lJiv(YKHO, SLBp: np.int_):\n return sum(map(lambda WKvO: WKvO > 0, YKHO.__mat[:, SLBp]))", "def tURI(YKHO, SLBp: np.int_):\n return len(YKHO.__adj[SLBp])", "def KQr6(YKHO):\n if YKHO.is_empty():\n raise ValueError('Graph is empty.')\n elif YKHO.__directed:\n _IXK = {}\n vC9...
[ "0.6871607", "0.6651398", "0.6635549", "0.6602062", "0.6527948", "0.631883", "0.62901586", "0.62744987", "0.62585884", "0.62435406", "0.62316656", "0.6226531", "0.62161696", "0.6129373", "0.6126891", "0.6118143", "0.6108225", "0.6068903", "0.60610425", "0.6059564", "0.6037401...
0.5940664
29
Return the server's URL.
def bD7m(YKHO): return YKHO._client.url
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QaO6(YKHO):\n return YKHO._server_url", "def QaO6(YKHO):\n return YKHO._server_url", "def QaO6(YKHO):\n return YKHO._session.server_url", "def N5z6(YKHO) -> str:\n return YKHO._server_url", "def QaO6(YKHO):\n return YKHO._session_coords.server_url", "def isao(YKHO):\n YPyk = {'http'...
[ "0.90213203", "0.88681793", "0.8799355", "0.87774223", "0.83925575", "0.83896595", "0.83667916", "0.82467043", "0.790751", "0.7790982", "0.7718455", "0.76628506", "0.76593727", "0.7631619", "0.7603425", "0.7505372", "0.74774563", "0.7406021", "0.73974097", "0.73577845", "0.73...
0.7415998
17
Return the server's version as a string.
def DpZH(YKHO): return YKHO._client.getVersion()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IexU(YKHO):\n return YKHO.server_version", "def Ka_p(YKHO):\n return YKHO.client.getServerVersion().decode('utf-8')\n return YKHO.client.getServerVersion().decode('utf-8')", "def kaPv(YKHO) -> str:\n return fsDn.get_version()", "async def version(YKHO) -> str:\n geh0 = await YKHO._request(...
[ "0.9022919", "0.8375982", "0.81187874", "0.79733884", "0.7866681", "0.77831835", "0.77712953", "0.77712953", "0.77712953", "0.77712953", "0.7757843", "0.77556884", "0.77282596", "0.76880026", "0.7666072", "0.7661008", "0.76532197", "0.76532197", "0.7648751", "0.76215917", "0....
0.7092939
78
Open a session that federates several repositories. The repositories argument should be an array containing store designators, which can be Repository or RepositoryConnection objects, strings (naming a store in the root catalog, or the URL of a store), or (storename, catalogname) tuples.
def pplB(YKHO, v2wx, kvdF=False, sTns=None, epCy=False): def EyRe(WKvO): if isinstance(WKvO, str): return Cqok.local(WKvO) elif isinstance(WKvO, tuple): return Cqok.local(WKvO[0], WKvO[1]) elif isinstance(WKvO, mY2R): return WKvO.getSpec() elif is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v2wx(NCls):\n i8gh = list()\n i8gh.append(bvV2(full_name='python', language='Python'))\n i8gh.append(bvV2(full_name='ruby', language='Ruby'))\n i8gh.append(bvV2(full_name='java', language='Java'))\n NCls.session.commit()\n return i8gh", "def NT94(YKHO, Cqok, kvdF=False, sTns=None, epCy=Fals...
[ "0.5393022", "0.5358068", "0.51316196", "0.49571633", "0.49550796", "0.48791245", "0.4821798", "0.46716613", "0.46535861", "0.4648002", "0.46318117", "0.45726812", "0.4563642", "0.4509024", "0.44905466", "0.44007406", "0.43882567", "0.43508264", "0.43429133", "0.42945763", "0...
0.75047016
0
Generate a random client token.
def nl0r(**bGrB): return str(qxeD.uuid4())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JAij():\n return str(qxeD.uuid4())", "def JAij():\n return str(qxeD.uuid4())", "def LQUb():\n return kxTZ()", "def LQUb():\n gLiZ = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'\n ADdS = tuKI.SystemRandom()\n BWvy = ''.join((ADdS.choice(gLiZ) for bGrB in range(40)))\n...
[ "0.78147936", "0.78147936", "0.7751316", "0.7609233", "0.75524956", "0.7216405", "0.7140577", "0.70882004", "0.7029221", "0.6971429", "0.69533265", "0.6919694", "0.6835889", "0.6812662", "0.66613466", "0.66605544", "0.6571486", "0.65170556", "0.6505653", "0.64958465", "0.6456...
0.7800907
2
Returns x, y, z array of points comprising shells extending from r to r_dr. n determines the number of points in the ring. Rings are generated by constructing a unit sphere and projecting every point onto a shell of thickness dr
def c57r(Axoz, HGCR, exwG): p6ZG, j3sD, CM0h = ([], [], []) for Mkmy in Axoz: bf9h = 2 * oyIN.random.random(size=(exwG, 3)) - 1 bf9h /= oyIN.linalg.norm(bf9h, axis=1).repeat(3).reshape((len(bf9h), 3)) bf9h *= HGCR * oyIN.random.random(size=(len(bf9h), 3)) + Mkmy WKvO, LVAh, epBp ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XM52(exwG, fpsf, yTUV, hVLt):\n exwG = float(exwG)\n Jw7X = GN0K / exwG\n wJb3 = 0.5 * epAf.pi / float(yTUV)\n HHhI = u0oW + float(hVLt) * Jw7X\n ehfv = (1.0 + 1e-08) * GN0K / float(fpsf)\n J_tn = epAf.asin(ehfv / HHhI / epAf.sqrt(2.0))\n wnzW = epAf.acos(0.5 * ehfv / HHhI)\n LTIa = []\...
[ "0.7019731", "0.6351343", "0.6326232", "0.61467665", "0.60799944", "0.6079614", "0.60193473", "0.60178465", "0.5951989", "0.58725977", "0.5834473", "0.5817987", "0.57922435", "0.57543504", "0.5725783", "0.57158905", "0.56901014", "0.5666954", "0.5609906", "0.5596919", "0.5576...
0.6834648
1
Generate a random string to use as a database object name. It handles letter case according to the database type, forcing uppercase (e.g. Oracle) or lowercase (e.g. Postgres).
def CnXH(p9bx, y0cW='', u54L=5): if isinstance(p9bx, kSw3): mWFP = '{}{}'.format(y0cW.upper(), GLL2(vIwR.ascii_uppercase)) else: mWFP = '{}{}'.format(y0cW.lower(), GLL2(vIwR.ascii_lowercase)) return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HvHm(YKHO):\n KoG3 = vIwR.ascii_letters\n TweX = ''.join((tuKI.choice(KoG3) for bGrB in range(10)))\n assert isinstance(TweX, str)\n return TweX", "def tEgU():\n return kxTZ().hex[:6].upper()", "def CnXH(YKHO, a2jN):\n return a2jN + '_' + YKHO.__id_generator()", "def _606(p9bx, y0cW='',...
[ "0.75175905", "0.72178024", "0.71494067", "0.71021354", "0.7045532", "0.7039897", "0.6983421", "0.6981178", "0.6954214", "0.69175845", "0.67740923", "0.6757927", "0.67320347", "0.6718049", "0.66870725", "0.66845155", "0.6639657", "0.66349417", "0.6588731", "0.65749294", "0.65...
0.7868905
0
Generate a random string to use as a database schema name. It handles letter case according to the database type, forcing uppercase (e.g. Oracle) or lowercase (e.g. Postgres). For Oracle databases 'C' is prepended to the final name. This is a workaround needed to work against Oracle multitenant databases (e.g. our Orac...
def _606(p9bx, y0cW='', u54L=5): y0cW = f'C##{y0cW}' if isinstance(p9bx, kSw3) else y0cW return CnXH(p9bx, prefix=y0cW, length=u54L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CnXH(p9bx, y0cW='', u54L=5):\n if isinstance(p9bx, kSw3):\n mWFP = '{}{}'.format(y0cW.upper(), GLL2(vIwR.ascii_uppercase))\n else:\n mWFP = '{}{}'.format(y0cW.lower(), GLL2(vIwR.ascii_lowercase))\n return mWFP", "def yhzQ(YKHO):\n sEAN = ql6C.configuration.get_config().get('domain',...
[ "0.7421243", "0.6587565", "0.6463557", "0.6456254", "0.6320984", "0.6094259", "0.6092533", "0.60563993", "0.60467917", "0.6025921", "0.59806955", "0.5976732", "0.59549415", "0.59336054", "0.5904449", "0.58913636", "0.58862597", "0.58698773", "0.5823605", "0.57835186", "0.5777...
0.8465398
0
Return the channel that matches channel, or the channel that has channel (a nick) in its list of people. Otherwise, return the defaultSession, usually indicating that someone has /msg'd the bot and that person is not in a channel with the bot.
def K4ju(YKHO, YwkQ): EmMj = [] for KG9w in YKHO.sessions: try: dnrc = YwkQ.decode(KG9w.encoding) if dnrc == KG9w.name: EmMj.append(KG9w) if KG9w.matchNick(dnrc): EmMj.append(KG9w) except UnicodeDecodeError: continue...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ijoq(lSCo: discord.Guild) -> ZOrr.TextChannel | None:\n if lSCo.system_channel is not None:\n return lSCo.system_channel\n for mIh6 in lSCo.channels:\n if isinstance(mIh6, ZOrr.TextChannel) and mIh6.permissions_for(lSCo.me).send_messages:\n return mIh6\n return None", "def z...
[ "0.6263049", "0.6239907", "0.6228334", "0.6165339", "0.612316", "0.6022597", "0.5884877", "0.58385336", "0.58209574", "0.57453436", "0.57453436", "0.56833625", "0.5672105", "0.5651763", "0.56473887", "0.56467044", "0.564453", "0.56347585", "0.56162", "0.5611115", "0.5569932",...
0.5710257
11
tearDown method called after each unittest to cleanup the working directory
def tBIc(YKHO): if YKHO.workdir and Hy7s.path.exists(YKHO.workdir): RDuA.rmtree(YKHO.workdir)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n RDuA.rmtree(YKHO.working_directory)", "def tBIc(YKHO):\n RDuA.rmtree(YKHO.working_directory)", "def tBIc(YKHO) -> None:\n YKHO.directory.cleanup()", "def tBIc(YKHO):\n YKHO.remove_test_files()", "def tBIc(YKHO):\n print('\\nDeleting temporary files...\\n')\n try:\n ...
[ "0.86926925", "0.8684253", "0.8664246", "0.86497486", "0.86089116", "0.8602593", "0.8588878", "0.85206574", "0.8495308", "0.8495308", "0.8469177", "0.846661", "0.84641296", "0.8372656", "0.8362313", "0.83570266", "0.835563", "0.8325194", "0.8319614", "0.83031386", "0.82953215...
0.82481515
22
Gets the argmax sequence from a set of scores.
def uMz2(cCrA, MimR): Q6uT = [] for p1kx, ccUs in zip(cCrA, MimR): aMH2 = p1kx.cpu().data.numpy() assert p1kx.size()[0] == len(ccUs) == len(list(aMH2)) Q6uT.append(ccUs[oyIN.argmax(aMH2)]) return Q6uT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q1NN(YKHO, hkxX):\n return YKHO.aggregate(hkxX, 'argmax')", "def max(cCrA):\n return ONrU.max(cCrA) if len(cCrA) else 0", "def jB5X(wc14, HjDq: Optional[topk_scorer]=None):\n assert len(wc14) > 0, 'dc.max_score is not defined for empty arrays'\n if HjDq is None:\n HjDq = nB0K()\n\n de...
[ "0.7049773", "0.7022899", "0.67072296", "0.6603623", "0.64888203", "0.6487211", "0.6440832", "0.6430841", "0.64068246", "0.6387648", "0.6337737", "0.6318445", "0.62983274", "0.6228442", "0.61723423", "0.6170085", "0.6128584", "0.6112824", "0.6099138", "0.6076264", "0.6063714"...
0.6622809
3
Get the home page with an empty WordCounterForm
def NMoC(YKHO, QePW): L03z = kJP7() return _1tc(QePW, 'words/home.html', {'form': L03z})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C_QL():\n V22M = A0Gq.prompts\n return TvZl('homepage.html', words=V22M)", "def kZiy():\n return TvZl('home.html', form=None)", "def kZiy():\n L03z = Pv1I()\n if L03z.validate_on_submit():\n return vKnz(nKyW('character'))\n return TvZl('index.html', form=L03z)", "def C_QL():\n ...
[ "0.66058785", "0.6598429", "0.64883244", "0.6343826", "0.6315902", "0.6238743", "0.61718684", "0.6123837", "0.61218464", "0.6061796", "0.5965022", "0.594235", "0.590501", "0.5843363", "0.58431953", "0.5835203", "0.58242947", "0.58215296", "0.5815156", "0.5813465", "0.5792794"...
0.75413454
0
r"""Dot product between a vector and a set of vectors.
def QLUs(UqpO, iArr): if len(iArr) != 3: raise Exception('vector should be length 3, the provided length is {}'.format(len(iArr))) return iArr[0] * UqpO[:, 0] + iArr[1] * UqpO[:, 1] + iArr[2] * UqpO[:, 2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yYJc(WKvO, LVAh):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(WKvO, LVAh)))", "def yYJc(hQHm, jlSq):\n return oyIN.dot(hQHm, jlSq)", "def BJ1H(YKHO, he6J):\n pass", "def pxL1(lSjb, v8Fa):\n import operator\n return sum(map(operator.mul, lSjb, v8Fa))", "def s2vS(P6bq, Ty9i):\n retu...
[ "0.8274346", "0.81259906", "0.80873716", "0.80652696", "0.80491614", "0.8016558", "0.79929364", "0.7984816", "0.79688996", "0.7958692", "0.7934172", "0.7907916", "0.79039073", "0.77992296", "0.775462", "0.7744759", "0.7730695", "0.77125186", "0.7710873", "0.7709191", "0.77028...
0.755198
25
Stack spatially distributed scalar values to simplify multiplication with a vector. Where the input argument `scalar` defines a set of n spatially distributed scalar values, ``repeat_scalar`` repeats and stacks the input array to produce an (`n`, `dim`) array which is better for multiplying the scalar values with vecto...
def tpsg(hAEw, tpio=3): assert len(hAEw) in hAEw.shape, 'input must be a scalar. The shape you provided is {}'.format(hAEw.shape) return oyIN.kron(oyIN.ones((1, tpio)), oyIN.atleast_2d(hAEw).T)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iNlI(iArr, hAEw):\n VMbZ = []\n d6pt = 0\n while d6pt < iArr.dimension:\n Qj8D = iArr.coordinates[d6pt] * hAEw\n VMbZ.append(Qj8D)\n d6pt += 1\n UDvL = lNLu(VMbZ)\n return UDvL", "def IQxC(WKvO, hAEw):\n KCHu = ZylS.shape(WKvO)\n return ZylS.concat([WKvO, ZylS.ones([...
[ "0.61775327", "0.60803413", "0.5713232", "0.5592595", "0.55184263", "0.5494519", "0.54570186", "0.5455352", "0.5435718", "0.53619325", "0.53513414", "0.5258329", "0.5229403", "0.5215132", "0.5181318", "0.5154122", "0.51192546", "0.5076171", "0.5076171", "0.5042005", "0.503792...
0.7614667
0
Split a string into a list of equal Nsized fragments. >>> fragmentize_str("foo12bar34baz", 3) ['foo', '12b', 'ar3', '4ba', 'z']
def zDon(KCHu, mlv2): return [KCHu[YRbF:YRbF + mlv2] for YRbF in range(0, len(KCHu), mlv2)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W78r(YKHO, vIwR, exwG):\n if len(vIwR) == 0:\n return ['']\n rmyT = []\n while len(vIwR) > 0:\n rmyT.append(vIwR[:exwG])\n vIwR = vIwR[exwG:]\n return rmyT", "def tFpc(vIwR: str, exwG: int):\n return [vIwR[yKcO:yKcO + exwG] for yKcO in range(0, len(vIwR), exwG)]", "def Y...
[ "0.7084863", "0.67792594", "0.6616489", "0.6232007", "0.6232007", "0.6228307", "0.5958785", "0.5924137", "0.5913661", "0.58302677", "0.5805044", "0.5793416", "0.5677134", "0.56723195", "0.56589454", "0.5651932", "0.56474006", "0.5619297", "0.56044185", "0.5601226", "0.5595836...
0.7892952
0
Get the point closest to the intersection of two lines. The lines are given by one point (p1 and p2) and a direction vector v (v1 and v2). If a batch should be processed, the multiple direction vectors can be given.
def zBqd(EBgd, hQHm, HpuQ, jlSq): if len(hQHm.shape) == 2: XOOk = oyIN.einsum('ij,ij->i', hQHm, hQHm) pHXX = oyIN.einsum('ij,ij->i', hQHm, jlSq) kYGz = -oyIN.einsum('ij,ij->i', jlSq, hQHm) ftz7 = -oyIN.einsum('ij,ij->i', jlSq, jlSq) dg7v = -oyIN.einsum('ij,j->i', hQHm, EBgd -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hy8E(cnXz, Ijzj):\n kYGz = (cnXz[1][1] - cnXz[0][1]) / (cnXz[1][0] - cnXz[0][0])\n ftz7 = (Ijzj[1][1] - Ijzj[0][1]) / (Ijzj[1][0] - Ijzj[0][0])\n XOOk = cnXz[0][1] - kYGz * cnXz[0][0]\n pHXX = Ijzj[0][1] - ftz7 * Ijzj[0][0]\n if XOOk == pHXX and kYGz == ftz7:\n return cnXz\n Y7fn = -(X...
[ "0.7182244", "0.71811354", "0.69980645", "0.69146985", "0.68665415", "0.684552", "0.684109", "0.6834031", "0.6814379", "0.6782095", "0.6729366", "0.67263013", "0.6720048", "0.67169183", "0.66890395", "0.6676878", "0.66481364", "0.66456693", "0.6629493", "0.66291946", "0.66062...
0.7221954
0
The area of a 2D or 3D triangle.
def RcLR(tXIo): jzdc = oyIN.linalg.norm(tXIo[..., 0, :] - tXIo[..., 1, :]) Fg_i = oyIN.linalg.norm(tXIo[..., 1, :] - tXIo[..., 2, :]) Z9rn = oyIN.linalg.norm(tXIo[..., 2, :] - tXIo[..., 0, :]) KCHu = (jzdc + Fg_i + Z9rn) / 2 return oyIN.sqrt(KCHu * (KCHu - jzdc) * (KCHu - Fg_i) * (KCHu - Z9rn))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x5JU(yzQ0, MKlR):\n return yzQ0 * MKlR / 2", "def x5JU(tXIo):\n return 0.5 * L3jt(En6R(tXIo, False))", "def cGOR(P8oC, H2v2):\n return P8oC * H2v2 / 2", "def cGOR(P8oC, H2v2):\n f0tD = 1.0 / 2 * P8oC * H2v2\n return f0tD", "def cGOR(tXIo):\n jzdc = T97B(tXIo[0], tXIo[1])\n Fg_i = T...
[ "0.83226854", "0.83001643", "0.8258442", "0.817723", "0.80964535", "0.8047085", "0.78970724", "0.7874705", "0.78744954", "0.78029585", "0.77761316", "0.7723496", "0.7700167", "0.7670194", "0.76321775", "0.76320404", "0.7486235", "0.7436879", "0.7393189", "0.7361736", "0.73502...
0.77020085
12
The area of a quadrilateral.
def F3YD(mawX): mawX = oyIN.array(mawX) k0lF = mawX[..., 0, :] tjUW = mawX[..., 1, :] Nq1b = mawX[..., 2, :] lWPh = mawX[..., 3, :] return 0.5 * oyIN.abs((k0lF[..., 1] - Nq1b[..., 1]) * (lWPh[..., 0] - tjUW[..., 0]) + (tjUW[..., 1] - lWPh[..., 1]) * (k0lF[..., 0] - Nq1b[..., 0]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def drdQ(YKHO):\n vZBV = 0.0\n for gmTb in YKHO._quadrilaterals:\n yzQ0 = DWao(gmTb)\n vC9B = zqpF(gmTb)\n vZBV = vZBV + yzQ0 * vC9B\n return vZBV", "def f0tD(YKHO):\n NwL4 = YKHO.row_end - YKHO.row_start\n ulBT = YKHO.col_end - YKHO.col_start\n f0tD = NwL4 * ulBT\n retu...
[ "0.8185782", "0.7899902", "0.78384155", "0.78049433", "0.7802765", "0.7776387", "0.77561986", "0.77195746", "0.77159894", "0.7704854", "0.7687631", "0.7674731", "0.76237154", "0.7617555", "0.7601126", "0.75900596", "0.758878", "0.758878", "0.7566808", "0.7565095", "0.75648874...
0.7255075
74
return current delay for highwire, depending on current time at east coast can be overriden in pubConf per hostkeyword
def fckl(YKHO, bD7m): ayrW = KVWQ.urlsplit(bD7m)[1] for BcZH, glXp in l7Me.highwireDelayOverride.iteritems(): if BcZH in ayrW: G9jH.debug('Overriding normal Highwire delay with %d secs as specified in conf' % glXp) return glXp Hy7s.environ['TZ'] = 'US/Eastern' if hasattr(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h7D2(YKHO):\n oqwk = YKHO.config.get('delay', {'hours': 0, 'minutes': 10, 'seconds': 0})\n return qcWV.timedelta(hours=oqwk.get('hours', 0), minutes=oqwk.get('minutes', 0), seconds=oqwk.get('seconds', 0))", "def i72q(YKHO):\n return YKHO._read(S_Wd)", "def h1DI(*qIxc):\n return qIxc[0].TimeStat...
[ "0.6808034", "0.66652256", "0.66486937", "0.65763766", "0.65528965", "0.6431415", "0.64194804", "0.64194804", "0.62824833", "0.6269982", "0.62674767", "0.6256657", "0.624951", "0.624951", "0.62222135", "0.61849374", "0.61430824", "0.60847574", "0.60685503", "0.60454494", "0.6...
0.7952539
0
Initialize the transition parameters. The parameters will be initialized randomly from a uniform distribution between 0.1 and 0.1.
def Q0Ko(YKHO) -> None: U78l.init.uniform_(YKHO.start_transitions, -0.1, 0.1) U78l.init.uniform_(YKHO.end_transitions, -0.1, 0.1) U78l.init.uniform_(YKHO.transitions, -0.1, 0.1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0Ko(YKHO, Qr_E) -> None:\n U78l.init.uniform_(YKHO.start_transitions, -0.1, 0.1)\n U78l.init.uniform_(YKHO.end_transitions, -0.1, 0.1)\n if not Qr_E:\n U78l.init.uniform_(YKHO.transitions, -0.1, 0.1)", "def FIMM(YKHO, OZkM, YUjG):\n YKHO.time_steps = YUjG\n YKHO.transition = OZkM\n ...
[ "0.73451084", "0.7069381", "0.69564855", "0.6894689", "0.68848574", "0.68810326", "0.6771471", "0.67523175", "0.66436225", "0.65703744", "0.6535196", "0.6523617", "0.64791125", "0.647577", "0.64482796", "0.6446289", "0.6442313", "0.6434945", "0.6431381", "0.64138424", "0.6407...
0.73760986
1
Returns iterator of messages grouped by the measurement cycles and optionally filtered only to message types contained in msg_type_filter.
def orXs(YKHO, NDsX=None, s2Ni=0.5): A07C = {Dfxc.get_message_id() for Dfxc in NDsX} if not len(A07C): class _Everything: def FYXB(YKHO, WKvO): return True A07C = EgUP() yvT9 = [] wIV7 = float('nan') while True: nPrm = YKHO._read_binary_sirf_msg(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def srXS(YKHO, hNyj):\n A07C = {Dfxc.get_message_id() for Dfxc in hNyj}\n while True:\n nPrm = YKHO._read_binary_sirf_msg()\n if AoF0.bytes_to_message_id(nPrm) in A07C:\n yield AoF0.from_bytes(nPrm)", "def LnrL(YKHO, Dfxc):\n with YKHO.message_lock:\n YKHO._processed_mess...
[ "0.6737803", "0.6204259", "0.6064057", "0.5966157", "0.53918743", "0.5379674", "0.5314918", "0.5045594", "0.50421774", "0.50251156", "0.5012376", "0.49756777", "0.49635535", "0.49518022", "0.4921953", "0.48644638", "0.47993279", "0.47966844", "0.4779402", "0.47647852", "0.476...
0.66525537
1
Return ``where.what`` if what is a string, otherwise what. If not found return ``default``.
def ccBJ(RcQu, qJWj, WmM4=None): if isinstance(RcQu, (str, QMSQ)): Ylbp = getattr(qJWj, RcQu, WmM4) else: Ylbp = RcQu return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qJWj(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'where')", "def qJWj(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'where')", "def qJWj(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'where')", "def AlD1(RcQu, qJWj, WmM4=None):\n for yzQ0 in RcQu:\n try:...
[ "0.6415061", "0.6415061", "0.6415061", "0.6336832", "0.543057", "0.5341372", "0.511425", "0.50902086", "0.50859106", "0.5032432", "0.50301087", "0.49420592", "0.49362037", "0.49033552", "0.48405737", "0.4834364", "0.48031318", "0.48022807", "0.4783544", "0.47298265", "0.46809...
0.75953984
0
Return True iff no random number generator is in the expression graph.
def G4zh(VN2L): return all((not hasattr(YRbF, 'rng') for YRbF in rxQm(VN2L)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hCbx(YKHO):\n return YKHO.G is not None", "def hLg6(YKHO):\n assert p11e(None) is oyIN.random.mtrand._rand", "def va79(YKHO):\n if YKHO._is_nilpotent is None:\n FOO1 = YKHO.lower_central_series()\n H0Xx = FOO1[len(FOO1) - 1]\n i9El = H0Xx.generators\n tjON = YKHO.degree...
[ "0.71576804", "0.6580397", "0.6067666", "0.60196996", "0.601217", "0.6007414", "0.60046226", "0.5999951", "0.5946895", "0.5847713", "0.5829946", "0.58241254", "0.582219", "0.5817676", "0.5757262", "0.5743055", "0.5704075", "0.5674279", "0.5643369", "0.5616959", "0.5601564", ...
0.64591485
2
Tell whether the GPU is used the expressions contain a random number generator.
def tXI3(YKHO, t6m2): if not EYoQ: return False if not all((G4zh(YRbF) for YRbF in t6m2)): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnO8(YKHO, ADdS):\n return ADdS > 0", "def K7PS(YKHO):\n return YKHO.np_random.randint(0, 2) == 0", "def eRwN(YKHO) -> bool:\n return bool(hBH4.rand() < YKHO.p)", "def hCbx(YKHO):\n return YKHO.G is not None", "def kAvr(FxtY: DeviceMesh) -> bool:\n dKpx = RfCf(FxtY.device_type)\n if d...
[ "0.6627339", "0.64854485", "0.6369258", "0.63469464", "0.63330257", "0.6227965", "0.6219852", "0.61940414", "0.61727303", "0.6166643", "0.6158665", "0.60086614", "0.60005575", "0.59789973", "0.59789973", "0.5976261", "0.59707564", "0.5950311", "0.594951", "0.5921565", "0.5910...
0.72048575
0
Returns a list of all event attributes contained in the event log.
def PnDh(RKD7): StIY = set() for zgsA in RKD7: for tvqc in zgsA: StIY = StIY.union(set(tvqc.keys())) if cQSH.DEFAULT_TRANSITION_KEY in StIY: StIY.remove(cQSH.DEFAULT_TRANSITION_KEY) return StIY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h6gc(YKHO):\n kGys = YKHO.archive.read_file('replay.attributes.events')\n return YKHO.protocol.decode_replay_attributes_events(kGys)", "def OZOw(YKHO):\n azoT = [hkS8 for hkS8 in vars(YKHO.entries[0]) if not hkS8.startswith('__')]\n return azoT", "def yNPn(YKHO):\n o8Kj = []\n for xC3W in...
[ "0.746077", "0.72133046", "0.7004512", "0.69490683", "0.6913372", "0.6901872", "0.67657006", "0.66290164", "0.66094077", "0.6592866", "0.6589549", "0.6574144", "0.64446974", "0.6431033", "0.64172983", "0.64172983", "0.63521177", "0.6327336", "0.63147974", "0.6306192", "0.6301...
0.7417443
1
Creates a dictionary containing the vertex as key and the community as value
def kuCZ(Qrt_, pNZh): WhY1 = 0 _49d = dict() for Q7me in Qrt_: for SLBp in Q7me: _49d[pNZh.vs[SLBp]['name']] = WhY1 WhY1 += 1 return _49d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MH3V(X1CD):\n JZ1r = v7nJ.best_partition(X1CD)\n qC6E = {}\n for G1Hx in JZ1r.keys():\n if qC6E.has_key(JZ1r[G1Hx]) == False:\n qC6E[JZ1r[G1Hx]] = []\n qC6E[JZ1r[G1Hx]].append(G1Hx)\n return qC6E", "def PwKp(yvY1, sR9N):\n U3Gg = yvY1.copy()\n MIk3(U3Gg, attr_name='...
[ "0.65812737", "0.62105423", "0.6099021", "0.60787535", "0.6006192", "0.6005821", "0.59781283", "0.5938694", "0.59242696", "0.59075904", "0.5843778", "0.5787999", "0.5787999", "0.5781617", "0.577084", "0.5768384", "0.572773", "0.57173073", "0.5709551", "0.5671555", "0.56556576...
0.7483303
0
Returns the indexes of the given vertices from the given graph.
def SwAy(lgI3, pNZh): CIH_ = list() for SLBp in lgI3: CIH_.append(pNZh.vs.find(name=SLBp).index) return CIH_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A69S(YKHO):\n return YKHO.vertexIndex.keys()", "def EBww(YKHO):\n return YKHO.graph.keys()", "def iXlf(YKHO):\n return list(YKHO.graph_dict.keys())", "def m0zI(pNZh: Graph):\n l7uB = sM7U(pNZh)\n return {Q6kx: len(eJui) for Q6kx, eJui in l7uB.items()}", "def iXlf(YKHO):\n return list(...
[ "0.6446575", "0.6367212", "0.6239323", "0.6229624", "0.61724275", "0.61724275", "0.61724275", "0.61515236", "0.61401576", "0.61344594", "0.6110107", "0.61056256", "0.608297", "0.6053884", "0.60248345", "0.60184854", "0.5995186", "0.59604424", "0.59458923", "0.58988535", "0.58...
0.7804827
0
Returns the predecessors of a given vertex in a given graph.
def vOPp(SLBp, pNZh): SoZd = list() SoZd.extend(pNZh.predecessors(SLBp)) return SoZd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FLaO(SLBp, pNZh):\n PZIW = list()\n uv6v = pf5b(SLBp, pNZh)\n f2c8 = kOiG(SLBp, pNZh)\n PZIW.extend(uv6v)\n PZIW.extend(f2c8)\n return PZIW", "def pf5b(SLBp, pNZh):\n eWqa = vOPp(SLBp, pNZh)\n return dDv2(eWqa)", "def SoZd(YKHO, Q6kx, pNZh=None):\n if pNZh is None:\n pNZh ...
[ "0.806123", "0.77842414", "0.74437", "0.73195046", "0.65637344", "0.6540712", "0.6446052", "0.6390165", "0.6365159", "0.6259706", "0.61728483", "0.6120901", "0.6120901", "0.61105984", "0.61001766", "0.5786239", "0.5751069", "0.5725038", "0.57102966", "0.5709853", "0.56923467"...
0.9146434
0
Returns predecessors of the given vertex in the given graph without duplicates.
def pf5b(SLBp, pNZh): eWqa = vOPp(SLBp, pNZh) return dDv2(eWqa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOPp(SLBp, pNZh):\n SoZd = list()\n SoZd.extend(pNZh.predecessors(SLBp))\n return SoZd", "def L5mz(SLBp, pNZh):\n PZIW = FLaO(SLBp, pNZh)\n zU_I = dDv2(PZIW)\n return zU_I", "def FLaO(SLBp, pNZh):\n PZIW = list()\n uv6v = pf5b(SLBp, pNZh)\n f2c8 = kOiG(SLBp, pNZh)\n PZIW.exten...
[ "0.87187177", "0.8165456", "0.8149547", "0.7427294", "0.6508126", "0.6421867", "0.6364554", "0.6330967", "0.6316748", "0.62334824", "0.6086964", "0.60284495", "0.59789884", "0.5977539", "0.5917957", "0.5909005", "0.5909005", "0.5879948", "0.582027", "0.58033466", "0.57526076"...
0.8658347
1
Returns successors of the given vertex in the given graph without duplicates.
def kOiG(SLBp, pNZh): wfdU = shyx(SLBp, pNZh) return dDv2(wfdU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L5mz(SLBp, pNZh):\n PZIW = FLaO(SLBp, pNZh)\n zU_I = dDv2(PZIW)\n return zU_I", "def shyx(SLBp, pNZh):\n bzfn = list()\n bzfn.extend(pNZh.successors(SLBp))\n return bzfn", "def pf5b(SLBp, pNZh):\n eWqa = vOPp(SLBp, pNZh)\n return dDv2(eWqa)", "def FLaO(SLBp, pNZh):\n PZIW = lis...
[ "0.8226712", "0.7994284", "0.7959788", "0.75695074", "0.68749374", "0.63759154", "0.6168715", "0.5944003", "0.5920547", "0.5785456", "0.5785456", "0.5768317", "0.5761811", "0.57175255", "0.5677555", "0.565443", "0.56330574", "0.56279504", "0.5600078", "0.5592701", "0.55904555...
0.8220229
1
Returns number of predecessors without duplicates of a list of vertices.
def i0bt(Qrt_, pNZh): rnG7 = pf5b(Qrt_, pNZh) return len(rnG7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pf5b(SLBp, pNZh):\n eWqa = vOPp(SLBp, pNZh)\n return dDv2(eWqa)", "def L5mz(SLBp, pNZh):\n PZIW = FLaO(SLBp, pNZh)\n zU_I = dDv2(PZIW)\n return zU_I", "def YCnD(BLg0):\n kRap = {}\n for O8Y4 in BLg0:\n BVKq = O8Y4.vertices\n for Q6kx in BVKq:\n if Q6kx not in k...
[ "0.71033764", "0.7049059", "0.66558254", "0.6518772", "0.61019313", "0.6039541", "0.5931119", "0.58703786", "0.5694572", "0.56722516", "0.5659231", "0.5638852", "0.55846834", "0.5548406", "0.55438334", "0.5535065", "0.55244005", "0.55197936", "0.55078554", "0.5486019", "0.548...
0.7379798
0
Returns number of successors without duplicates of a list of vertices.
def xIXB(Qrt_, pNZh): n7av = kOiG(Qrt_, pNZh) return len(n7av)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L5mz(SLBp, pNZh):\n PZIW = FLaO(SLBp, pNZh)\n zU_I = dDv2(PZIW)\n return zU_I", "def YCnD(BLg0):\n kRap = {}\n for O8Y4 in BLg0:\n BVKq = O8Y4.vertices\n for Q6kx in BVKq:\n if Q6kx not in kRap:\n kRap[Q6kx] = 0\n kRap[Q6kx] += 1\n kRap...
[ "0.6819421", "0.6795083", "0.6782132", "0.6543408", "0.6223553", "0.6134625", "0.6132226", "0.6061797", "0.5908543", "0.58610505", "0.5837381", "0.5828296", "0.57509124", "0.5745887", "0.57270896", "0.56933117", "0.56714433", "0.56582665", "0.5652493", "0.56388247", "0.561313...
0.6632147
3
Returns the ground truth which was previously stored in the event log in form of a list.
def qRXa(iXlf, pNZh, RKD7): iXlf = SwAy(iXlf, pNZh) iXlf.sort() hKn5 = 0 yLaY = list() for SLBp in iXlf: Bb6q = pNZh.vs[SLBp]['name'] for zgsA in RKD7: for tvqc in zgsA: if Bb6q == tvqc['concept:name']: hKn5 = tvqc['truth'] yLaY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GpqH():\n YH1X, snFM = gnPz.io.load(Hy7s.path.join(LIOs(), 'observed_data'))\n return (YH1X, snFM)", "def J9OU(RKD7, b9xm):\n if 'BPI2015' in b9xm:\n for zgsA in RKD7:\n for tvqc in zgsA:\n if 'AH_I' in str(tvqc['concept:name']):\n tvqc['truth'] = ...
[ "0.604325", "0.59866893", "0.57737994", "0.5587313", "0.5451896", "0.5451896", "0.53235906", "0.52571344", "0.52475417", "0.52147037", "0.51765037", "0.51684606", "0.5151448", "0.5106017", "0.5090211", "0.5087137", "0.50747967", "0.507089", "0.50303286", "0.5025124", "0.50148...
0.5524604
4
Removes all duplicate values from a given list.
def dDv2(IqQl): return list(dict.fromkeys(IqQl))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uY6T(list):\n return set((ZfUD for ZfUD in list))", "def uY6T(list):\n return fHNa((ZfUD for ZfUD in list))", "def MbwG(list):\n PwWw = set()\n aygV = PwWw.add\n return [WKvO for WKvO in list if not (WKvO in PwWw or aygV(WKvO))]", "def dDv2(YKHO, bCES):\n U5bT = []\n for ZfUD in bCES...
[ "0.8336709", "0.826821", "0.8150454", "0.80406576", "0.802781", "0.80032706", "0.79544246", "0.7945618", "0.7895204", "0.78379214", "0.76465863", "0.7623023", "0.7575355", "0.7561104", "0.7540737", "0.75282013", "0.7494512", "0.74540263", "0.7428581", "0.74073255", "0.7360262...
0.7505978
16
Calculates the number of duplicates in a list.
def QiC7(IqQl): return len(QVYe(IqQl))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nnjY(yv6U):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n return len(set(yv6U)) != len(yv6U)", "def Fzy1(list):\n P6bq, Z9rn = oyIN.unique(list, return_counts=True)\n h4H7 = P6bq[Z9rn > 1]\n return h4H7", "def z1Pe(list):\n if len(list) == 0:\n return 0\n list.sort()\n GfdN = list[0...
[ "0.7252366", "0.713093", "0.7118927", "0.69232243", "0.69068164", "0.6904737", "0.68823004", "0.66992265", "0.6589638", "0.6568231", "0.6567865", "0.6489665", "0.6489665", "0.64618355", "0.6451086", "0.64076555", "0.64052474", "0.6326561", "0.6325014", "0.63164437", "0.630132...
0.8687196
0
Returns the number of overlaps of all nodes of a list of vertices. If a vertex shares a successor or a predecessor with an other vertex. This is referred to as overlap.
def qJBC(Qrt_, pNZh): YGWJ = 0 for SLBp in Qrt_: Caqm = L5mz(SLBp, pNZh) for Ty9i in Qrt_: if not Ty9i == SLBp: KhyM = L5mz(Ty9i, pNZh) yHH9 = set(Caqm).intersection(KhyM) if not len(yHH9) == 0: YGWJ = YGWJ + 1 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VCxu(yvY1=None, IwdH=2):\n dsvf = PtlQ(yvY1)\n r3r7 = set(yvY1.nodes)\n return sum((UHFx >= IwdH and Q6kx in r3r7 for Q6kx, UHFx in dsvf.items()))", "def yHH9(Oa1e, gtqQ, GFxT):\n C7_8 = len(set(jHsn.neighbors(Oa1e, gtqQ)).intersection(set(jHsn.neighbors(Oa1e, GFxT))))\n return float(C7_8)", ...
[ "0.632698", "0.6192305", "0.5782844", "0.57001", "0.5686309", "0.5595151", "0.54400545", "0.5407103", "0.5383124", "0.5378499", "0.53691816", "0.5365793", "0.5354652", "0.5290653", "0.52573913", "0.5256262", "0.5251728", "0.52229923", "0.52115047", "0.52058464", "0.51884466",...
0.6774935
0
Test a property without a valid config
def ylq6(): WyHD.deploy_config_raw('') assert QWcs.test_prop('info', 'sdk') == 0 WyHD.undeploy() return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def miRR(YKHO):\n try:\n BWXx = YKHO.config.option2\n assert BWXx\n except Exception as e:\n YKHO.assertIsInstance(tTpl, IDml)\n YKHO.assertNotIn('option2', YKHO.config.values)", "def BtSB(YKHO, jXCX):\n raise G8rZ('check_property not defined')", "def ogHT(YKHO):\n YKHO....
[ "0.76737714", "0.74934083", "0.7118994", "0.7084105", "0.6979936", "0.6879754", "0.6873085", "0.6637735", "0.65712166", "0.6535024", "0.65199155", "0.6511954", "0.65031713", "0.6457611", "0.6447513", "0.64017653", "0.6392188", "0.6386049", "0.6334654", "0.63151515", "0.631198...
0.0
-1
Convenience method to compute the model end to end.
def C3ST(YKHO, mhZS, RjVX): with YKHO.graph.as_default(): otyg = YKHO.conjecture_embedding(mhZS) mWLr = YKHO.axiom_embedding(RjVX) N6Z1 = YKHO.classifier(otyg, mWLr) return N6Z1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def An_P(YKHO):\n return YKHO._model_end_date", "def czHI(YKHO):\n aPd6 = YKHO.level\n V6IE = aPd6.prob\n if YKHO.coll.right_is_node and (not YKHO.params.do_coll_update):\n aPd6.uend = V6IE.dtype_u(aPd6.u[-1])\n else:\n aPd6.uend = V6IE.dtype_u(aPd6.u[0])\n for r8hN in range(Y...
[ "0.58199894", "0.57721406", "0.56079286", "0.5605094", "0.5569777", "0.5565", "0.5546848", "0.5497238", "0.5478168", "0.54534566", "0.5451045", "0.5449872", "0.54350275", "0.5426526", "0.5400152", "0.5370089", "0.53650665", "0.53181344", "0.53021705", "0.5294778", "0.526827",...
0.0
-1
Reshape N > 2 rank tensor to rank 2 tensor for performance.
def _4I8(YKHO, FRUf): kvqa = FRUf.shape.ndims if kvqa < 2: raise ValueError('Input tensor must have at least rank 2.Shape = %s' % FRUf.shape) if kvqa == 2: return FRUf TVTK = FRUf.shape[-1] aIXl = ZylS.reshape(FRUf, [-1, TVTK]) return aIXl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VjTS(WKvO, exwG):\n iPPn = WKvO.get_shape().dims\n XVAW = iPPn[-1]\n EZd9 = iPPn[:-1] + [exwG] + [XVAW // exwG if XVAW else None]\n U5bT = ZylS.reshape(WKvO, ZylS.concat([ZylS.shape(WKvO)[:-1], [exwG, -1]], 0))\n U5bT.set_shape(EZd9)\n return ZylS.transpose(U5bT, [0, 2, 1, 3])", "def VjTS(W...
[ "0.6565812", "0.6553982", "0.64864945", "0.638766", "0.6327924", "0.61469126", "0.61469126", "0.61153495", "0.61153495", "0.61153495", "0.61077964", "0.6072167", "0.6071448", "0.605981", "0.6039191", "0.5978247", "0.5950206", "0.5903502", "0.5839912", "0.5833875", "0.5832991"...
0.5451794
57
Creates an optimizer with learning rate schedule.
def Z2AK(DJmW, H0j9, USzt): jsQ2 = ZylS.keras.optimizers.schedules.PolynomialDecay(initial_learning_rate=DJmW, decay_steps=H0j9, end_learning_rate=0.0) if USzt: jsQ2 = ySYF(initial_learning_rate=DJmW, decay_schedule_fn=jsQ2, warmup_steps=USzt) K0do = vTRW(learning_rate=jsQ2, weight_decay_rate=0.01, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GeJA(YKHO):\n K0do = O_6i(YKHO.m_cfg['configs']['lr_politics']['optimizer']).value\n ZT_s = YKHO.m_cfg['configs']['lr_politics']['lr']\n y7GR = K0do(learning_rate=ZT_s)\n return y7GR", "def mHsN(YKHO, tspZ: Union[tf.keras.optimizers.schedules.LearningRateSchedule, float]):\n eI4D = YKHO._optim...
[ "0.7830851", "0.7798416", "0.76002425", "0.730958", "0.7308127", "0.7271429", "0.7257552", "0.72381526", "0.72161627", "0.7169744", "0.71036613", "0.7084344", "0.7020992", "0.7002498", "0.69841987", "0.6983344", "0.69699043", "0.6965906", "0.69600046", "0.69541574", "0.693480...
0.817968
0
Overrides the default .create() method so that if no user is specified in kwargs, this factory will create a user with an associated profile without relying on signals.
def eLpg(Emd4, **B2fa): if 'user' not in B2fa: with KTkq(MzrB): z39Z = uYd6.create() B2fa['user'] = z39Z.user return super().create(**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYUQ(YKHO, *qIxc, **B2fa):\n CBIr = mv1M.objects.create_user(*qIxc, **B2fa)\n return Bgf_(CBIr)", "def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n SYRW.objects.create(user=KAOR)", "def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n SYRW.objects.create(user=KAOR)", "def sxXS(vC92,...
[ "0.8089046", "0.7710158", "0.7710158", "0.7710158", "0.7702299", "0.7666457", "0.76453215", "0.7593763", "0.7584913", "0.75170654", "0.75133276", "0.7486732", "0.7446116", "0.74153763", "0.73974293", "0.73523927", "0.73032916", "0.7286282", "0.7260729", "0.7249335", "0.723386...
0.89510345
0
Get the action that was taken to get from parent to the state represented by this node.
def XeOP(YKHO): return YKHO._action
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMEM(YKHO):\n return YKHO.current_action", "def NjKL(YKHO):\n return YKHO.previous_action", "def AMEM(YKHO):\n return YKHO.__action", "def gx7D(YKHO):\n return YKHO.__action", "def AMEM(YKHO, QTBn):\n if YKHO.path:\n return YKHO.path.pop(0)\n else:\n YKHO.path = YKHO.get...
[ "0.7150034", "0.7073005", "0.6951777", "0.6825375", "0.67453027", "0.66584265", "0.65716916", "0.6516871", "0.64894974", "0.6410784", "0.63846713", "0.63638216", "0.63428116", "0.63428116", "0.63428116", "0.6283183", "0.6236764", "0.6200211", "0.61490446", "0.6146224", "0.614...
0.68239194
9
Get the action that was taken to get from parent to the state represented by this node.
def C3ap(YKHO): return YKHO._orientation
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMEM(YKHO):\n return YKHO.current_action", "def NjKL(YKHO):\n return YKHO.previous_action", "def AMEM(YKHO):\n return YKHO.__action", "def gx7D(YKHO):\n return YKHO.__action", "def XeOP(YKHO):\n return YKHO._action", "def XeOP(YKHO):\n return YKHO._action", "def XeOP(YKHO):\n r...
[ "0.7148122", "0.70727295", "0.69499516", "0.6823255", "0.6822342", "0.6822342", "0.6822342", "0.6822342", "0.6822342", "0.6822342", "0.67445385", "0.6658467", "0.6570484", "0.6515366", "0.648802", "0.6409777", "0.63824695", "0.6362123", "0.6341662", "0.6341662", "0.6341662", ...
0.0
-1
Get the action that was taken to get from parent to the state represented by this node.
def p8Jz(YKHO): return YKHO._velocity
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMEM(YKHO):\n return YKHO.current_action", "def NjKL(YKHO):\n return YKHO.previous_action", "def AMEM(YKHO):\n return YKHO.__action", "def gx7D(YKHO):\n return YKHO.__action", "def XeOP(YKHO):\n return YKHO._action", "def XeOP(YKHO):\n return YKHO._action", "def XeOP(YKHO):\n r...
[ "0.7149977", "0.7072268", "0.69514626", "0.6824404", "0.68235594", "0.68235594", "0.68235594", "0.68235594", "0.68235594", "0.68235594", "0.6745303", "0.66578853", "0.6571686", "0.65160394", "0.6487337", "0.6412602", "0.63837594", "0.63625973", "0.63427436", "0.63427436", "0....
0.0
-1
Adds an edge between node1 and node2. Adds the nodes to the graph first if they don't exist.
def rz7z(YKHO, i4Va, rUTj, upAO=1.0, Q1b5=True): YKHO.add_node(i4Va) YKHO.add_node(rUTj) LrkF = YKHO._edges.get(i4Va, set()) LrkF.add(ndC_(i4Va, rUTj, upAO)) YKHO._edges[i4Va] = LrkF if Q1b5: z7RJ = YKHO._edges.get(rUTj, set()) z7RJ.add(ndC_(rUTj, i4Va, upAO)) YKHO._edges...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, i4Va, rUTj):\n if i4Va not in YKHO.nodes():\n YKHO.add_node(i4Va)\n if rUTj not in YKHO.nodes():\n YKHO.add_node(rUTj)\n YKHO.__graph[i4Va].append(rUTj)\n YKHO.__graph[rUTj].append(i4Va)", "def rz7z(YKHO, i4Va: Node, rUTj: Node):\n YKHO.__add_edge(i4Va, rUTj)\n YKHO...
[ "0.8775052", "0.8575885", "0.84401256", "0.8258184", "0.8166692", "0.81011534", "0.80282617", "0.8022696", "0.79394007", "0.78549004", "0.78378713", "0.7791494", "0.776768", "0.77168965", "0.7703608", "0.7693623", "0.7670848", "0.76523453", "0.76485234", "0.7638099", "0.76251...
0.7675281
16
Return the filter query.
def uJaw(YKHO, QePW, xDcj, tTee): raise NotImplementedError('.filter_query() must be implemented.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OPRw(YKHO):\n vexM = NCls.Query(YKHO.KIND, keys_only=YKHO.KEYS_ONLY)\n for QWcs, BWXx in YKHO.FILTERS:\n vexM.filter('%s =' % QWcs, BWXx)\n if YKHO.ancestor:\n vexM.ancestor(YKHO.ancestor)\n vexM.order(YKHO.ORDER_BY)\n return vexM", "def Qre7(YKHO):\n Gylx = [p_z1 for p_z1 in ...
[ "0.76254714", "0.7192404", "0.7117082", "0.7113892", "0.70915204", "0.70519936", "0.6998001", "0.6946083", "0.69361687", "0.68097425", "0.6783083", "0.6775405", "0.6770303", "0.673803", "0.6714327", "0.6711792", "0.664973", "0.66460294", "0.6571933", "0.65532225", "0.65404326...
0.6138882
63
Given the model field and the value to be filtered, this should return the statement to be appended as a filter to the final query.
def WHaI(YKHO, Jyyj, BWXx): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rbbw(YKHO, xDcj):\n return xDcj", "def TpRV(YKHO, Jyyj, vh8d, GKL8, BWXx):\n if vh8d not in jUak:\n raise A5pJ(\"Lookup type %r isn't supported.\" % vh8d)\n if BWXx in ([], ()):\n YKHO.included_pks = []\n return\n if Jyyj.primary_key and vh8d in ('exact', 'in'):\n if Y...
[ "0.66924316", "0.6337971", "0.62232834", "0.6157193", "0.61209303", "0.60536784", "0.60453886", "0.59232634", "0.5861579", "0.5849911", "0.5813545", "0.5809807", "0.5787079", "0.57768816", "0.57611936", "0.5749356", "0.5735346", "0.57132673", "0.57088786", "0.57050323", "0.56...
0.0
-1
There are 2 holidays in the span 1317th of April 2022, so we expect the function to adjust the timedelta by 2 days.
def rmPG(): assert yzuC(TbFT) == (TbFT + fCoM(days=6)).date()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n09U(_c1T):\n WYiC = ['09/08/2019', '10/08/2019', '11/08/2019', '12/08/2019', '13/08/2019', '14/08/2019', '15/08/2019', '16/08/2019', '17/08/2019', '18/08/2019', '19/08/2019', '20/08/2019', '21/08/2019', '22/08/2019', '23/08/2019', '24/08/2019', '25/08/2019', '26/08/2019', '27/08/2019', '28/08/2019', '29/08...
[ "0.6736093", "0.61784166", "0.5999844", "0.59617156", "0.59238225", "0.578024", "0.5735175", "0.5718821", "0.56845367", "0.56802404", "0.5663145", "0.56397706", "0.5636869", "0.5608559", "0.5603336", "0.5529013", "0.5503755", "0.5474438", "0.54700947", "0.54691315", "0.544822...
0.5048655
60
Find all the subclasses of a class given its name
def TPXT(YKHO, _2sc): return _2sc.__subclasses__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wlg_(Emd4):\n Hh7E = []\n for dm7U in Emd4.__subclasses__():\n Hh7E.append(dm7U)\n Hh7E.extend(Wlg_(dm7U))\n Pfad = []\n for YRbF in range(len(Hh7E)):\n KAOR = Hh7E[YRbF]()\n Pfad.append(KAOR.kind)\n return Pfad", "def vKyy(Emd4, mWFP) -> rdVY:\n return [dm7U for...
[ "0.7822941", "0.76084644", "0.7541864", "0.73579955", "0.7304116", "0.7218669", "0.7112324", "0.69290173", "0.6900942", "0.6872188", "0.6872188", "0.68304044", "0.6828921", "0.6817411", "0.68095064", "0.678769", "0.6765754", "0.6760897", "0.6754078", "0.6728999", "0.66450757"...
0.7820441
1