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
A humanreadable version of the elapsed time for the last execution of the step. The value is derived from the `ProjectStep.elapsed_time` property.
def DvFO(YKHO) -> str: a1PO = YKHO.elapsed_time O66n = int(a1PO / 60) C6wh = int(a1PO - 60 * O66n) MaIc = int(100 * (a1PO - int(a1PO))) return '{:>02d}:{:>02d}.{:<02d}'.format(O66n, C6wh, MaIc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N8Pq(YKHO):\n return str(qcWV.datetime.now() - YKHO.start).split('.')[0]", "def LLqQ(YKHO):\n return YKHO.__time_elapsed", "def JRmW(YKHO):\n return YKHO.__elapsed_time", "def zAg0(YKHO):\n return str(YKHO.elapsed) + ' sec'", "def RnSk(YKHO):\n N8Pq = YKHO.__end_time - YKHO.__start_time\...
[ "0.74348295", "0.7341026", "0.71488404", "0.71327865", "0.7075832", "0.68811524", "0.68706244", "0.6833403", "0.68153375", "0.680169", "0.67919904", "0.6724556", "0.67207795", "0.666062", "0.66344434", "0.6619493", "0.6612993", "0.6610164", "0.65931654", "0.6574453", "0.65721...
0.7340715
2
The creation timestamp of the sink.This field may not be present for older sinks.
def x7vo(YKHO) -> str: return qe4Y.get(YKHO, 'create_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OhEq(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_timestamp')", "def OhEq(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_timestamp')", "def OhEq(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_timestamp')", "def OhEq(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'creation_timestamp')...
[ "0.76058096", "0.76058096", "0.76058096", "0.7508474", "0.7460193", "0.74237835", "0.73722935", "0.7352411", "0.7214987", "0.72008866", "0.7140401", "0.6901553", "0.6901553", "0.6901553", "0.68743926", "0.68743926", "0.6860949", "0.67897165", "0.6770373", "0.6754774", "0.6754...
0.6487352
48
The last update timestamp of the sink.This field may not be present for older sinks.
def nP7s(YKHO) -> str: return qe4Y.get(YKHO, 'update_time')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SDfl(YKHO):\n return YKHO.last_update_time", "def Vit6(YKHO):\n return YKHO._last_update_time", "def GACJ(YKHO):\n return qcWV.strptime(YKHO.last_update, '%Y-%m-%d %H:%M:%S.%f')", "def GACJ(YKHO):\n return qcWV.strptime(YKHO.last_update, '%Y-%m-%d %H:%M:%S.%f')", "def nFRz(YKHO):\n retur...
[ "0.7420381", "0.7400893", "0.7301744", "0.7301744", "0.7283081", "0.7251563", "0.7251563", "0.71741444", "0.71671265", "0.7112806", "0.70771015", "0.70703256", "0.70314467", "0.69901365", "0.69297767", "0.69297767", "0.68884665", "0.6873872", "0.68640715", "0.67941", "0.67562...
0.6522177
37
Optimized queryset for changelist view.
def k66M(YKHO, QePW): umWR = super().get_queryset(QePW) umWR = umWR.annotate(FYrf.Count('work', distinct=True)) umWR = umWR.annotate(FYrf.Count('recording', distinct=True)) return umWR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO, QePW, SR0I):\n return SR0I", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n filter = {YKHO.kwargs.get('field'): YKHO.kwargs.get('constraint')}\n return YKHO.get_model_obj().history.filter(**filter).ord...
[ "0.70606595", "0.69933677", "0.6967507", "0.69492984", "0.67478234", "0.6718268", "0.6718268", "0.66655964", "0.6621231", "0.65900636", "0.6575608", "0.6543804", "0.6543446", "0.65210843", "0.6512028", "0.6469871", "0.6452944", "0.64510924", "0.6393163", "0.6378914", "0.63767...
0.0
-1
Optimized queryset for changelist view.
def k66M(YKHO, QePW): umWR = super().get_queryset(QePW) umWR = umWR.annotate(libraryrelease__count=FYrf.Count('release', distinct=True, filter=FYrf.Q(release__cd_identifier__isnull=False))) umWR = umWR.annotate(commercialrelease__count=FYrf.Count('release', distinct=True, filter=FYrf.Q(release__cd_identifie...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO, QePW, SR0I):\n return SR0I", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n filter = {YKHO.kwargs.get('field'): YKHO.kwargs.get('constraint')}\n return YKHO.get_model_obj().history.filter(**filter).ord...
[ "0.70606595", "0.69933677", "0.6967507", "0.69492984", "0.67478234", "0.6718268", "0.6718268", "0.66655964", "0.6621231", "0.65900636", "0.6575608", "0.6543804", "0.6543446", "0.65210843", "0.6512028", "0.6469871", "0.6452944", "0.64510924", "0.6393163", "0.6378914", "0.63767...
0.0
-1
Optimized queryset for changelist view.
def k66M(YKHO, QePW): umWR = super().get_queryset(QePW) umWR = umWR.annotate(work__count=FYrf.Count('release__works', distinct=True)) umWR = umWR.annotate(release__count=FYrf.Count('release__id', distinct=True)) return umWR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO, QePW, SR0I):\n return SR0I", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n filter = {YKHO.kwargs.get('field'): YKHO.kwargs.get('constraint')}\n return YKHO.get_model_obj().history.filter(**filter).ord...
[ "0.70606595", "0.69933677", "0.6967507", "0.69492984", "0.67478234", "0.6718268", "0.6718268", "0.66655964", "0.6621231", "0.65900636", "0.6575608", "0.6543804", "0.6543446", "0.65210843", "0.6512028", "0.6469871", "0.6452944", "0.64510924", "0.6393163", "0.6378914", "0.63767...
0.0
-1
Optimized queryset for changelist view.
def k66M(YKHO, QePW): umWR = super().get_queryset(QePW) umWR = umWR.annotate(FYrf.Count('tracks', distinct=True)) umWR = umWR.annotate(FYrf.Count('works', distinct=True)) return umWR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO, QePW, SR0I):\n return SR0I", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n filter = {YKHO.kwargs.get('field'): YKHO.kwargs.get('constraint')}\n return YKHO.get_model_obj().history.filter(**filter).ord...
[ "0.70606595", "0.69933677", "0.6967507", "0.69492984", "0.67478234", "0.6718268", "0.6718268", "0.66655964", "0.6621231", "0.65900636", "0.6575608", "0.6543804", "0.6543446", "0.65210843", "0.6512028", "0.6469871", "0.6452944", "0.64510924", "0.6393163", "0.6378914", "0.63767...
0.0
-1
Optimized queryset for changelist view.
def k66M(YKHO, QePW): umWR = super().get_queryset(QePW) umWR = umWR.annotate(FYrf.Count('tracks', distinct=True)) return umWR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO, QePW, SR0I):\n return SR0I", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n filter = {YKHO.kwargs.get('field'): YKHO.kwargs.get('constraint')}\n return YKHO.get_model_obj().history.filter(**filter).ord...
[ "0.70606595", "0.69933677", "0.6967507", "0.69492984", "0.67478234", "0.6718268", "0.6718268", "0.66655964", "0.6621231", "0.65900636", "0.6575608", "0.6543804", "0.6543446", "0.65210843", "0.6512028", "0.6469871", "0.6452944", "0.64510924", "0.6393163", "0.6378914", "0.63767...
0.0
-1
Optimized queryset for changelist view.
def k66M(YKHO, QePW): umWR = super().get_queryset(QePW) umWR = umWR.annotate(FYrf.Count('work', distinct=True)) return umWR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO, QePW, SR0I):\n return SR0I", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n filter = {YKHO.kwargs.get('field'): YKHO.kwargs.get('constraint')}\n return YKHO.get_model_obj().history.filter(**filter).ord...
[ "0.70606595", "0.69933677", "0.6967507", "0.69492984", "0.67478234", "0.6718268", "0.6718268", "0.66655964", "0.6621231", "0.65900636", "0.6575608", "0.6543804", "0.6543446", "0.65210843", "0.6512028", "0.6469871", "0.6452944", "0.64510924", "0.6393163", "0.6378914", "0.63767...
0.0
-1
Optimized queryset for changelist view.
def k66M(YKHO, QePW): umWR = super().get_queryset(QePW) umWR = umWR.prefetch_related('writerinwork_set') umWR = umWR.prefetch_related('writers') umWR = umWR.prefetch_related('library_release__library') umWR = umWR.annotate(FYrf.Count('cwr_exports', distinct=True)) umWR = umWR.annotate(FYrf.Count...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO, QePW, SR0I):\n return SR0I", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO):\n filter = {YKHO.kwargs.get('field'): YKHO.kwargs.get('constraint')}\n return YKHO.get_model_obj().history.filter(**filter).ord...
[ "0.70606595", "0.69933677", "0.6967507", "0.69492984", "0.67478234", "0.6718268", "0.6718268", "0.66655964", "0.6621231", "0.65900636", "0.6575608", "0.6543804", "0.6543446", "0.65210843", "0.6512028", "0.6469871", "0.6452944", "0.64510924", "0.6393163", "0.6378914", "0.63767...
0.0
-1
Set initial values for work IDs.
def ON6q(YKHO, QePW, YEnM=None, **B2fa): L03z = super().get_form(QePW, YEnM, **B2fa) if hasattr(YKHO, 'work_ids'): L03z.base_fields['works'].initial = YKHO.work_ids return L03z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XftE(YKHO):\n pass", "def f6Qh(YKHO, BWXx):\n pass", "def f6Qh(YKHO):\n raise NotImplementedError()", "def TUZL(YKHO, k4Wo=0):\n YKHO.qubit_id = k4Wo", "def TUZL(YKHO, opl2: int=0) -> None:\n YKHO.ref_id = opl2", "def uIcm(YKHO):\n for I1Pn, BWXx in YKHO.initial_values.items():\n ...
[ "0.63838756", "0.5626983", "0.55985147", "0.55754405", "0.55573905", "0.5549936", "0.5549916", "0.55236214", "0.5470408", "0.5464957", "0.54609644", "0.53837353", "0.5364111", "0.5325926", "0.52752525", "0.52721184", "0.52686673", "0.52520066", "0.52504444", "0.5247788", "0.5...
0.61217713
1
Return package version as listed in `__version__` in `init.py`.
def kaPv(B5hb): Eosz = open(Hy7s.path.join(B5hb, '__init__.py')).read() return ZbWC.search('__version__ = [\'"]([^\'"]+)[\'"]', Eosz).group(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oRea() -> str:\n pmON = gzes(TLI7(xAKo), '__init__.py')\n pmON = ENtY(WQbV(pmON))\n with open(pmON) as eHNT:\n for zFiD in eHNT:\n if zFiD.startswith('__version__'):\n eOtH, DpZH = zFiD.split(' = ', 1)\n DpZH = DpZH.replace(\"'\", '').strip()\n ...
[ "0.8488895", "0.83906066", "0.8386243", "0.8380057", "0.8378992", "0.83693045", "0.8357915", "0.83578175", "0.83562696", "0.8076947", "0.79735863", "0.7939292", "0.7892811", "0.7892811", "0.7892811", "0.7802969", "0.772123", "0.7697026", "0.76941913", "0.7688442", "0.76599205...
0.8370639
10
test that city is a subclass of basemodel
def c2RT(YKHO): YKHO.assertIsInstance(YKHO.city, KcDH) YKHO.assertTrue(hasattr(YKHO.city, 'id')) YKHO.assertTrue(hasattr(YKHO.city, 'created_at')) YKHO.assertTrue(hasattr(YKHO.city, 'updated_at'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J6Gg(YKHO):\n YKHO.assertTrue(issubclass(cKBo, KcDH))", "def PFh0(YKHO):\n oboa = cKBo()\n YKHO.assertIsInstance(oboa, KcDH)\n YKHO.assertIsInstance(oboa, cKBo)", "def I_4h(YKHO):\n Z9rn = cKBo()\n YKHO.assertIsInstance(Z9rn, KcDH)\n YKHO.assertTrue(hasattr(Z9rn, 'id'))\n YKHO.asser...
[ "0.8854508", "0.8677629", "0.84322345", "0.83302236", "0.77094585", "0.7189997", "0.7145998", "0.70157367", "0.69717264", "0.6920326", "0.68921465", "0.68817616", "0.6878152", "0.6832497", "0.67862713", "0.6707529", "0.67006713", "0.6682659", "0.66786814", "0.6633037", "0.655...
0.8228105
4
Mehtod to create deep equality
def xa14(YKHO, Elif): kTfw = YKHO.num * Elif.den L6KN = YKHO.den * Elif.num return kTfw == L6KN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EesT(TZWW, hw5c, Viqq):\n Hp8u = k_D4.typedtree(TZWW)\n gPdF = k_D4.typedtree(hw5c)\n kUBT = Hp8u == gPdF\n raTX = kUBT == Viqq\n if raTX:\n KCHu = 'pass'\n else:\n KCHu = 'fail'\n print(f'{TZWW} == {hw5c} is {kUBT} : {KCHu}')\n return raTX", "def whu6(YKHO):\n pass",...
[ "0.7669497", "0.7594508", "0.728683", "0.7247459", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0.7200209", "0...
0.0
-1
Returns the Value of the Node at certain index
def jI2q(YKHO, d6pt): if YKHO.empty(): return 'Linked List Empty' or8S = 1 vC9B = YKHO.head while vC9B.next is not None: if or8S is d6pt: break vC9B = vC9B.next or8S += 1 return vC9B.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIQF(YKHO, d6pt):\n Q6kx = YKHO._get_node_at(d6pt)\n if Q6kx is None:\n raise IndexError('List index out of range.')\n return Q6kx.value", "def vIQF(YKHO, d6pt):\n Q6kx = YKHO._get_node_at(d6pt)\n if Q6kx is None:\n raise IndexError('List index out of range.')\n return Q6kx.va...
[ "0.8760695", "0.8760695", "0.8411536", "0.8410069", "0.8038799", "0.7710551", "0.7693732", "0.75457287", "0.7523973", "0.7519126", "0.74544835", "0.74464095", "0.74409634", "0.7427687", "0.73091924", "0.7298157", "0.72241414", "0.7212669", "0.7212669", "0.71528834", "0.713793...
0.7689592
7
adds a node in the front of the linked list
def byB9(YKHO, nPrm): exwG = o7DN(nPrm) if YKHO.empty(): YKHO.head = exwG return vC9B = YKHO.head YKHO.head = exwG exwG.next = vC9B return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LYLL(YKHO, nPrm):\n S06t = NSB4(nPrm)\n ycBG = YKHO._head\n if YKHO._head is None:\n YKHO._head = S06t\n YKHO._tail = S06t\n else:\n S06t.next = ycBG\n S06t.next.prev = S06t\n YKHO._head = S06t\n YKHO._size += 1", "def byB9(YKHO, ZfUD):\n Esd_ = o7DN(ZfUD)...
[ "0.79435956", "0.79062754", "0.79018503", "0.770904", "0.770904", "0.7680617", "0.76622814", "0.7533677", "0.745268", "0.7434043", "0.7414779", "0.7377841", "0.73685306", "0.73620886", "0.73380136", "0.73015785", "0.7222717", "0.717256", "0.71706766", "0.71247196", "0.7087387...
0.7690084
5
Returns head of the Linked List
def VnzS(YKHO): if YKHO.empty(): return 'Linked List is Empty' return YKHO.head.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdCG(YKHO) -> object:\n if not YKHO._head:\n raise mrLH('The list is empty.')\n return YKHO._head", "def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('list is empty')\n return YKHO._head._next._element", "def sdCG(YKHO):\n return YKHO._head", "def sdCG(YKHO):\n return YK...
[ "0.78142667", "0.7570546", "0.7401346", "0.7401346", "0.728126", "0.7280486", "0.7277227", "0.725226", "0.71798074", "0.70358026", "0.7009618", "0.6936419", "0.69164675", "0.69055516", "0.6893666", "0.6869632", "0.6853931", "0.68439776", "0.68323934", "0.6828792", "0.68156487...
0.6821777
20
Computes partial xderivative of input img.
def Jqe0(VXjJ): yvT9 = None WZcn = 0.5 * oyIN.array([[1, 0, -1]]) yvT9 = yIp6(VXjJ, WZcn) return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EFD8(eHNT, WKvO, YRbF, _hZ2=1e-10):\n A3mO = oyIN.copy(WKvO).astype(oyIN.float64)\n A3mO[YRbF] = A3mO[YRbF] + _hZ2\n BWXx = (eHNT(A3mO) - eHNT(WKvO)) / _hZ2\n return BWXx", "def lIt1(YKHO, WKvO: np.array) -> oyIN.array:\n pass", "def ukqY(WKvO, QhHk):\n return oyIN.array(-1 * QhHk / WKvO ...
[ "0.67712903", "0.6501167", "0.6485898", "0.64442617", "0.6436161", "0.63960797", "0.62391645", "0.61663836", "0.61452615", "0.6144807", "0.60673076", "0.6062778", "0.6030098", "0.6023732", "0.6019578", "0.5996646", "0.5991342", "0.5978751", "0.59690577", "0.59690577", "0.5946...
0.60531056
12
Test random insert and delete.
def fNf6(): for bGrB in range(0, 10): Ca1L = tuKI.sample(range(1, 2000), 1000) ktg_ = tuKI.sample(Ca1L, 500) J_Es = a7Dp.RBTree() for H5ew in Ca1L: J_Es.insert(key=H5ew, data=str(H5ew)) for H5ew in ktg_: J_Es.delete(key=H5ew) Aofo = [ZfUD for Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _4cr(YKHO):\n pass", "def Umrv(YKHO):\n pass", "async def test_delete_invalid(p9bx, YWw8):\n _e8u(p9bx, YWw8)\n ywwl = 10\n for or8S in range(ywwl + 1, ywwl * 2):\n try:\n await p9bx.delete(_id=or8S, user_id=or8S)\n assert False\n except:\n asse...
[ "0.68421745", "0.6814112", "0.6787218", "0.6741631", "0.67338127", "0.66408277", "0.6588561", "0.6566808", "0.6511061", "0.64413196", "0.64139", "0.6405201", "0.6377499", "0.6376437", "0.6349136", "0.63420004", "0.62856805", "0.62655014", "0.62583804", "0.622033", "0.6215004"...
0.75990003
0
Asks user to specify a city, month, and a day to analyze.
def RxGd(): print("Hello! My name is Damir. Let's explore some US bikeshare data!") try: j5sA = input('Which city would you like to analyze data from? chicago, new york city or washington?').lower() while j5sA not in OerS: print('No results found, please check your spelling.').lower(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.66179204", "0.64608276", "0.63908345", "0.63495", "0.63061595", "0.62379", "0.62069833", "0.61961794", "0.6171032", "0.6130573", "0.6113631", "0.6099385", "0.60975987", "0.60892045", "0.60516274", "0.6042802", "0.60328114", "0.60287476", "0.60271525", "0.6025436", "0.59918...
0.5670383
85
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): try: jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'], errors='coerce') jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month jQ3Z['day_of_week'] = jQ3Z['Start Tim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.8132439", "0.81092066", "0.80460113", "0.80428666", "0.80092704", "0.80078983", "0.79997176", "0.7999047", "0.7989329", "0.7979842", "0.7973761", "0.79617316", "0.7956702", "0.79477483", "0.7946521", "0.7908704", "0.79049814", "0.7901444", "0.7893375", "0.78896016", "0.788...
0.7908281
16
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() try: FWIz = jQ3Z['Start Time'].dt.month.mode()[0] sve5 = xoS0[FWIz - 1].title() print('The most popular travel month', 'is:', sve5) except Exception as e: print("Couldn't calc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80235124", "0.80223495", "0.7914819", "0.78260994", "0.7821642", "0.78139323", "0.77653635", "0.7739615", "0.77358055", "0.7733576", "0.7686211", "0.7667902", "0.76510555", "0.76440334", "0.76391727", "0.7636328", "0.7624661", "0.7622607", "0.76119757", "0.7599401", "0.758...
0.7234768
66
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z, j5sA): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() try: _8rG = jQ3Z['Start Station'].mode()[0] heJ0 = jQ3Z['Start Station'].value_counts()[0] print('The most popular start station in', j5sA, 'is:', _8rG, 'and was used', heJ0, 'time...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7815675", "0.7662213", "0.7553417", "0.74914914", "0.74748665", "0.7446617", "0.7428588", "0.74237514", "0.74177027", "0.7400495", "0.7387161", "0.7385634", "0.73647535", "0.735934", "0.73566747", "0.73548365", "0.7351854", "0.7351274", "0.735057", "0.73421645", "0.7340198...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z, j5sA): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() try: jQ3Z['Time Delta'] = jQ3Z['End Time'] - jQ3Z['Start Time'] vcX7 = jQ3Z['Time Delta'].sum() print('the total travel time was:', vcX7) except n19L as e: print("Couldn't calculate the tot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.0
-1
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! My name is Damir. Let's explore some US bikeshare data!") try: j5sA = input('Which city would you like to analyze data from? chicago, new york city or washington?').lower() while j5sA not in OerS: print('No results found, please check your spelling.').lower(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.66718096", "0.6536446", "0.64608175", "0.63732874", "0.6349621", "0.6310782", "0.62876326", "0.6260145", "0.6230216", "0.62113076", "0.62061083", "0.61823773", "0.61707395", "0.6170415", "0.6160548", "0.6158978", "0.6154724", "0.61454946", "0.6130887", "0.61055917", "0.610...
0.58548677
49
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): try: jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'], errors='coerce') jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month jQ3Z['day_of_week'] = jQ3Z['Start Tim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.797905", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.788921...
0.7780334
39
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() try: FWIz = jQ3Z['Start Time'].dt.month.mode()[0] sve5 = xoS0[FWIz - 1].title() print('The most popular travel month', 'is:', sve5) except Exception as e: print("Couldn't calc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80235124", "0.80223495", "0.7914819", "0.78260994", "0.7821642", "0.78139323", "0.77653635", "0.7739615", "0.77358055", "0.7733576", "0.7686211", "0.7667902", "0.76510555", "0.76440334", "0.76391727", "0.7636328", "0.7624661", "0.7622607", "0.76119757", "0.7599401", "0.758...
0.7234768
65
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z, j5sA): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() try: _8rG = jQ3Z['Start Station'].mode()[0] heJ0 = jQ3Z['Start Station'].value_counts()[0] print('The most popular start station in', j5sA, 'is:', _8rG, 'and was used', heJ0, 'time...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7816157", "0.7662524", "0.7554042", "0.7492024", "0.7475423", "0.74471235", "0.7430301", "0.74246186", "0.741813", "0.7400704", "0.7387859", "0.73857087", "0.7365416", "0.73599696", "0.73571277", "0.73555714", "0.73525584", "0.7351796", "0.735084", "0.7342505", "0.734093",...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z, j5sA): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() try: jQ3Z['Time Delta'] = jQ3Z['End Time'] - jQ3Z['Start Time'] vcX7 = jQ3Z['Time Delta'].sum() print('the total travel time was:', vcX7) except n19L as e: print("Couldn't calculate the tot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.0
-1
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! My name is Damir. Let's explore some US bikeshare data!") try: j5sA = input('Which city would you like to analyze data from? chicago, new york city or washington?').lower() while j5sA not in OerS: print('No results found, please check your spelling.').lower(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.6670955", "0.65355206", "0.64598334", "0.6373697", "0.63487226", "0.6310236", "0.6287051", "0.6259993", "0.62314963", "0.62125754", "0.62053525", "0.61813915", "0.6171331", "0.6169096", "0.61588687", "0.6158631", "0.6153347", "0.6144922", "0.6131542", "0.6105515", "0.61029...
0.5804608
60
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): try: jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'], errors='coerce') jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month jQ3Z['day_of_week'] = jQ3Z['Start Tim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81319666", "0.81089365", "0.8045794", "0.80421233", "0.8009013", "0.8006819", "0.79993606", "0.799815", "0.7988398", "0.7978816", "0.7973185", "0.79605204", "0.79559934", "0.7946578", "0.79459554", "0.79077595", "0.79076785", "0.7903725", "0.79003966", "0.7892789", "0.7888...
0.77798367
38
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() try: FWIz = jQ3Z['Start Time'].dt.month.mode()[0] sve5 = xoS0[FWIz - 1].title() print('The most popular travel month', 'is:', sve5) except Exception as e: print("Couldn't calc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80247396", "0.80233026", "0.7915788", "0.78266186", "0.7822246", "0.78143597", "0.77659196", "0.7740343", "0.773628", "0.77344066", "0.76867086", "0.7668633", "0.7651731", "0.7644636", "0.76399267", "0.76367253", "0.7625196", "0.7623158", "0.7612803", "0.76002145", "0.7583...
0.72357357
64
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z, j5sA): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() try: _8rG = jQ3Z['Start Station'].mode()[0] heJ0 = jQ3Z['Start Station'].value_counts()[0] print('The most popular start station in', j5sA, 'is:', _8rG, 'and was used', heJ0, 'time...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.7816157", "0.7662524", "0.7554042", "0.7492024", "0.7475423", "0.74471235", "0.7430301", "0.74246186", "0.741813", "0.7400704", "0.7387859", "0.73857087", "0.7365416", "0.73599696", "0.73571277", "0.73555714", "0.73525584", "0.7351796", "0.735084", "0.7342505", "0.734093",...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z, j5sA): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() try: jQ3Z['Time Delta'] = jQ3Z['End Time'] - jQ3Z['Start Time'] vcX7 = jQ3Z['Time Delta'].sum() print('the total travel time was:', vcX7) except n19L as e: print("Couldn't calculate the tot...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.8144002", "0.8025936", "0.80051756", "0.7950414", "0.7938244", "0.7932019", "0.7927543", "0.79160506", "0.7915316", "0.79089457", "0.79064983", "0.7901538", "0.7892409", "0.7890379", "0.7887529", "0.78859615", "0.78849727", "0.7883412", "0.78750104", "0.7869431", "0.786734...
0.0
-1
Get basket from request or create a new one. If user is logged in session basket gets merged into a user basket.
def CWaD(YKHO, QePW: HttpRequest) -> AzJI['Basket', bool]: if not hasattr(QePW, 'session'): QePW.session = {} try: daxS = QePW.session[P1X3] CuZc = YKHO.get(id=daxS, owner=None) except (KeyError, cGTY.DoesNotExist): CuZc = None if hasattr(QePW, 'user') and QePW.user.is_au...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gru7(YKHO, QePW):\n if QePW._basket_cache is not None:\n return QePW._basket_cache\n G8xt = YKHO.get_cookie_basket(QePW)\n if G8xt:\n Ylqb = G8xt\n else:\n Ylqb = cGTY()\n Ylqb.save()\n QePW._basket_cache = Ylqb\n return Ylqb", "def Ylqb(QePW):\n return {'bask...
[ "0.77207947", "0.7372341", "0.67973304", "0.6527075", "0.61940205", "0.6074896", "0.6070478", "0.6034448", "0.60055405", "0.59059364", "0.5697016", "0.5638296", "0.5628024", "0.5599381", "0.5578504", "0.55452347", "0.55352515", "0.5526266", "0.55127966", "0.55110615", "0.5456...
0.815834
0
Returns basket item count.
def UHFx(YKHO) -> int: if YKHO._cached_items is not None: return len(YKHO._cached_items) return YKHO.items.count()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DwOe(YKHO):\n _hkX = YKHO.app.get('/items')\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_200_OK)\n nPrm = qQXR.loads(_hkX.data)\n return len(nPrm)", "def szAg(YKHO):\n return sum((ZfUD['qty'] for ZfUD in YKHO.basket.values()))", "def OGwl(YKHO):\n return YKHO.num_items", "def Jm1s(YKH...
[ "0.7626551", "0.7533444", "0.7331775", "0.7326534", "0.72976536", "0.7268994", "0.715991", "0.70996845", "0.7023512", "0.6998778", "0.6987219", "0.6987219", "0.6962023", "0.6926958", "0.6925463", "0.69103056", "0.68875307", "0.6878682", "0.68532354", "0.6851633", "0.68428713"...
0.6815846
23
Returns the total quantity of all items in a basket.
def cTRz(YKHO) -> int: if YKHO._cached_items is not None: return sum([ZfUD.quantity for ZfUD in YKHO._cached_items]) WVR4 = YKHO.items.aggregate(quantity=FYrf.Sum('quantity')) return WVR4['quantity'] or 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U8e2(YKHO) -> int:\n wjRY = 0\n for YRbF in YKHO.order_items:\n wjRY += YRbF.quantity\n return wjRY", "def KdRe(YKHO):\n return sum(YKHO.quantities)", "def szAg(YKHO):\n return sum((ZfUD['qty'] for ZfUD in YKHO.basket.values()))", "def KpBD(YKHO):\n KpBD = 0\n for hHJw in YKHO...
[ "0.7919851", "0.76263994", "0.71842575", "0.7174423", "0.7167888", "0.7110817", "0.7033801", "0.69301176", "0.6889082", "0.6684862", "0.6590007", "0.65273595", "0.652153", "0.6515659", "0.65067196", "0.6497118", "0.6453592", "0.6393087", "0.620499", "0.6198273", "0.6177245", ...
0.71383715
5
This will return all the active models with an easy to consume JSON
def YuL8(YKHO, UXqs=None): gEC_ = YKHO.active_models(UXqs) if 'response' in gEC_.keys(): d_GX = {} for geh0 in gEC_['response']: MOPg = {'content-type': 'application/json'} Mkmy = G4JS.get(YKHO.url + '/active_model/' + geh0['@uuid'], headers=MOPg) ipaI = qQXR....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYrf(YKHO):\n MOPg = {'content-type': 'application/json'}\n Mkmy = G4JS.get(YKHO.url + '/model', headers=MOPg)\n if Mkmy.status_code == 200:\n return qQXR.loads(Mkmy.content)\n else:\n return 'Error in request, exited with status code:' + str(Mkmy.status_code)", "def WCHh():\n re...
[ "0.76252496", "0.75904197", "0.6954012", "0.6900618", "0.68392795", "0.6818335", "0.6784167", "0.67314005", "0.662959", "0.659793", "0.6573254", "0.65546614", "0.65488756", "0.6543924", "0.65324396", "0.650513", "0.6478326", "0.6421939", "0.6421939", "0.6415112", "0.6404571",...
0.7398353
2
This method will return all the online broker complete servers
def lxl8(YKHO, oSm3): HwSA = [] for ZfUD in oSm3: if 'broker_success' in oSm3[ZfUD]['current_state']: a2iU = {'description': oSm3[ZfUD]['description'], 'node_uuid': oSm3[ZfUD]['node_uuid'], 'am_uuid': oSm3[ZfUD]['am_uuid'], 'root_passwd': oSm3[ZfUD]['root_password'], 'broker': oSm3[ZfUD]['br...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZobO(YKHO) -> x1iM[NnkB]:\n pass", "def FzsH(YKHO):\n return YKHO.__servers", "def FBYc(YKHO) -> x1iM[NnkB]:\n pass", "def FzsH():\n DISy = []\n yKcO = 0\n zNig = 100\n while True:\n NArs = {'start': yKcO, 'size': zNig, 'names': 1, 'cdata': 1}\n TV_W = gc42(enTJ + 'get_...
[ "0.72184527", "0.7165914", "0.70691454", "0.70602417", "0.69249266", "0.65485126", "0.650072", "0.645317", "0.644556", "0.64343196", "0.64037097", "0.63703746", "0.63267624", "0.6279317", "0.62622035", "0.6247003", "0.62450415", "0.6237214", "0.61978495", "0.61966014", "0.619...
0.5939073
45
For cleaning the space replace space by _
def mQfL(YKHO, KCHu): KCHu = str(ZbWC.sub('\\([^)]*\\)', '', KCHu)) bBb2 = str.maketrans('', '', vIwR.punctuation) KCHu = KCHu.translate(bBb2) return KCHu.strip().replace(' ', '_').lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bOQt(KCHu):\n return KCHu.replace(' ', '_')", "def QoZA(l5Ny):\n return l5Ny.replace(' ', '__')", "def WjwS(YKHO):\n vQ3k = aSeI(' a b c d ', '_')\n YKHO.assertEqual(vQ3k, '__a_b_c_d___')", "def aSeI(KCHu):\n KCHu = KCHu.replace('_', '\\\\_')\n return KCHu", "def QTiK(KCHu):\n r...
[ "0.80242676", "0.7783524", "0.76967204", "0.7673874", "0.75371486", "0.7525557", "0.7446191", "0.74362135", "0.73351026", "0.73031664", "0.71846277", "0.71567565", "0.71446306", "0.7104345", "0.70976096", "0.7094494", "0.7056341", "0.70322686", "0.7003794", "0.6991272", "0.69...
0.0
-1
A prepopulated store with a uniquekey requirement on the field "name".
def PaVJ(B6iH, TKnD, te2v): VJJZ = mRT4[nj3W](unique_keys={'name'}) VJJZ.add(B6iH) VJJZ.add(TKnD) VJJZ.add(te2v) yield VJJZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO, VUF1):\n YKHO.db.query(f'\\n INSERT INTO {YKHO.table} (id, name)\\n VALUES (:id, :name)\\n ON DUPLICATE KEY UPDATE name = :name\\n ', **vars(VUF1))\n if not VUF1.id:\n VUF1.id = YKHO.get(name=VUF1.name).id\n return VUF1", "def QCFn(YKHO, DTs...
[ "0.6332145", "0.5996839", "0.59523803", "0.5839743", "0.5765455", "0.57481533", "0.56834847", "0.56767225", "0.5674454", "0.56721956", "0.56685156", "0.55962837", "0.55038404", "0.5485419", "0.5471714", "0.5457102", "0.5455449", "0.5438032", "0.54286665", "0.54048485", "0.538...
0.5119244
90
Assert that saving an item that the store did not create raises a `NotFromStoreException`.
def vnvC(Wdsz): hw3f = nj3W('Sugar', age=15) with trZe.raises(HHpx): Wdsz.save(hw3f)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IpSa():\n rmKz = mRT4[nj3W]()\n Pm3r = rmKz.add(nj3W('Carl', age=22))\n Pm3r.age = 23\n NB_G = mRT4[nj3W]()\n with trZe.raises(HHpx):\n NB_G.save(Pm3r)\n rmKz.save(Pm3r)", "def rxl6():\n E_fH = {'bad': 'yes'}\n D82u = {'wrong': True}\n DQkc(uPxI.SchemaError, CS5l.save, name=...
[ "0.80932206", "0.6693182", "0.66549426", "0.6493662", "0.6473891", "0.63646144", "0.63614845", "0.6285036", "0.6268964", "0.6261587", "0.6230347", "0.6203305", "0.62021", "0.6171741", "0.61620104", "0.61587864", "0.6141526", "0.6131728", "0.6120135", "0.60960543", "0.60855055...
0.8773912
0
exclude any questions that aren't published yet
def k66M(YKHO): return Y4Gy.objects.filter(pub_date__lte=rIAI.now())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n WlEx = Y4Gy.objects.filter(pub_date__lte=rIAI.now()).order_by('-pub_date')\n j28w = []\n for bAls in WlEx:\n if not bAls.choice_set.all().exists():\n j28w.append(bAls.id)\n return Y4Gy.objects.exclude(pk__in=j28w).filter(pub_date__lte=rIAI.now()).order_by('-pub_date'...
[ "0.65009534", "0.6449258", "0.6294944", "0.6294944", "0.6282573", "0.62779695", "0.6173223", "0.6164126", "0.6136216", "0.60906893", "0.60184664", "0.6007451", "0.59934664", "0.5976536", "0.59524435", "0.5937415", "0.5935725", "0.5935725", "0.5913496", "0.5904687", "0.5903289...
0.6312912
14
Helper function for merging dicts. This functino is called in
def W0j7(AjzU, _sQW): for H5ew, BWXx in _sQW.items(): if H5ew in AjzU: if isinstance(AjzU[H5ew], dict) and isinstance(BWXx, dict): W0j7(AjzU[H5ew], BWXx) continue AjzU[H5ew] = BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSKQ(WbPA, S69B):\n TTm1 = dict(WbPA)\n TTm1.update(S69B)\n return TTm1", "def RSKQ(WbPA, S69B):\n TTm1 = dict(WbPA)\n TTm1.update(S69B)\n return TTm1", "def vGZu(jzdc: dict, Fg_i: dict) -> dict:\n return kvsE(jzdc, Fg_i)", "def hOKH(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.upd...
[ "0.7988987", "0.7988987", "0.7951268", "0.7693137", "0.7673867", "0.76137185", "0.755312", "0.75056833", "0.74898887", "0.74727017", "0.74454707", "0.74454707", "0.74454707", "0.7436341", "0.74020827", "0.7392748", "0.73777413", "0.7370744", "0.7369641", "0.73585963", "0.7323...
0.7442475
13
a PUT requires /id
def PMYn(YKHO): TBsA = '{ "id": 400, "name": "item_new", "content": "after test update" }' sEAN = YKHO.get_env('PUT', '/item', body=TBsA) Jciw(sEAN, lambda jGRS, CeMw: YKHO.assertEqual(jGRS, '501'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NpNj(YKHO, id):\n nPrm = QePW.json\n return QdZT(id=id, data=nPrm)", "def NpNj(YKHO, id):\n return (None, 204)", "def NpNj(YKHO, QePW, _sei=None):\n return oGir({'method': 'PUT'})", "def NpNj(YKHO, QePW, _sei=None):\n return oGir({'method': 'put'})", "def NpNj(YKHO, QePW, _sei=None):\n ...
[ "0.80548733", "0.77627206", "0.7701576", "0.76444036", "0.76142126", "0.76142126", "0.76142126", "0.75734186", "0.7570122", "0.7433508", "0.7431656", "0.7404354", "0.7281861", "0.7273932", "0.72267747", "0.71881646", "0.71337616", "0.7053422", "0.703184", "0.7013526", "0.6992...
0.7010135
20
Construct the instance of the image viewer
def FIMM(YKHO, _AKB, knSv, GWE6): YKHO._photo = GWE6 d0Km.__init__(YKHO, _AKB, knSv, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AII1(YKHO):\n if not YKHO._viewer is None:\n if not YKHO._input_image is None:\n YKHO._viewer.SetInput(YKHO._input_image)\n else:\n YKHO._viewer.SetInput(YKHO._dummy_image_source.GetOutput())\n P2GO = YKHO._viewer.GetInput()\n P2GO.UpdateInformation()\n ...
[ "0.70403004", "0.69003624", "0.6859897", "0.6769518", "0.67200553", "0.6668673", "0.6649628", "0.65699136", "0.65699136", "0.65683323", "0.65444237", "0.65320826", "0.6433436", "0.64147496", "0.63743156", "0.630725", "0.6302998", "0.62894464", "0.62827396", "0.6276683", "0.62...
0.0
-1
Starts the secondary thread, that handle computation loop, and the main Qt application.
def HzsP(YKHO): YKHO.thread.start() YKHO.theMainLoop.emit(wDYU.SIGNAL('step()')) YKHO.app.exec_()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXC1(YKHO):\n YKHO.thread = T6FA.Thread(target=YKHO._main)\n YKHO.thread.start()\n YKHO.running = True", "def D8LQ(YKHO):\n YKHO.worker = dbwk.CalculationRunner(YKHO.params_dict)\n YKHO.thread = OOPR()\n YKHO.worker.labelUpdate.connect(YKHO.labelUpdate)\n YKHO.worker.update.connect(YKHO....
[ "0.6832564", "0.6815719", "0.64975053", "0.63709384", "0.63709384", "0.635549", "0.63434714", "0.6249844", "0.6210289", "0.6145674", "0.61144584", "0.61032456", "0.610298", "0.60843456", "0.60604566", "0.60121226", "0.6004468", "0.5997522", "0.5988918", "0.5967154", "0.596267...
0.75369143
0
Clone(itkReinitializeLevelSetImageFilterIF2 self) > itkReinitializeLevelSetImageFilterIF2_Pointer
def B29l(YKHO) -> 'itkReinitializeLevelSetImageFilterIF2_Pointer': return bf0C.itkReinitializeLevelSetImageFilterIF2_Clone(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B29l(YKHO) -> 'itkReinitializeLevelSetImageFilterIF3_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_Clone(YKHO)", "def t2Xf(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF2 *':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_cast(YEnM)", "def oW_4(*qIxc, **PECO):\n...
[ "0.81310004", "0.7620578", "0.72376424", "0.71736556", "0.71703905", "0.71452385", "0.7109639", "0.7104944", "0.7101841", "0.7068015", "0.7049284", "0.7027689", "0.69853425", "0.6971807", "0.6945865", "0.69312", "0.6928766", "0.69043064", "0.6900146", "0.68850875", "0.6859674...
0.9041241
0
SetInputNarrowBand(itkReinitializeLevelSetImageFilterIF2 self, itkVectorContainerUILSNF2 ptr)
def J3og(YKHO, AsCw: 'itkVectorContainerUILSNF2') -> 'void': return bf0C.itkReinitializeLevelSetImageFilterIF2_SetInputNarrowBand(YKHO, AsCw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J3og(YKHO, AsCw: 'itkVectorContainerUILSNF3') -> 'void':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_SetInputNarrowBand(YKHO, AsCw)", "def aPy2(YKHO) -> 'itkVectorContainerUILSNF2_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_GetInputNarrowBand(YKHO)", "def RHhl(YKHO) -> 'itkV...
[ "0.8172381", "0.810484", "0.78519475", "0.7597947", "0.7532998", "0.74397814", "0.7280423", "0.6992604", "0.67985135", "0.6665957", "0.6468578", "0.6441368", "0.63854927", "0.62770337", "0.61883247", "0.603406", "0.5827909", "0.58012456", "0.5638025", "0.54787445", "0.5457276...
0.8630356
0
GetInputNarrowBand(itkReinitializeLevelSetImageFilterIF2 self) > itkVectorContainerUILSNF2_Pointer
def aPy2(YKHO) -> 'itkVectorContainerUILSNF2_Pointer': return bf0C.itkReinitializeLevelSetImageFilterIF2_GetInputNarrowBand(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RHhl(YKHO) -> 'itkVectorContainerUILSNF2_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_GetOutputNarrowBand(YKHO)", "def aPy2(YKHO) -> 'itkVectorContainerUILSNF3_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_GetInputNarrowBand(YKHO)", "def RHhl(YKHO) -> 'itkVectorContai...
[ "0.85862976", "0.84427804", "0.8129653", "0.7436144", "0.7171351", "0.69010496", "0.68983585", "0.68775016", "0.66617805", "0.65401244", "0.63553315", "0.6334567", "0.6186372", "0.61666286", "0.6124641", "0.6083727", "0.6073575", "0.60154986", "0.5987644", "0.5963946", "0.588...
0.89897615
0
GetOutputNarrowBand(itkReinitializeLevelSetImageFilterIF2 self) > itkVectorContainerUILSNF2_Pointer
def RHhl(YKHO) -> 'itkVectorContainerUILSNF2_Pointer': return bf0C.itkReinitializeLevelSetImageFilterIF2_GetOutputNarrowBand(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPy2(YKHO) -> 'itkVectorContainerUILSNF2_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_GetInputNarrowBand(YKHO)", "def RHhl(YKHO) -> 'itkVectorContainerUILSNF3_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_GetOutputNarrowBand(YKHO)", "def aPy2(YKHO) -> 'itkVectorContai...
[ "0.8336865", "0.8227266", "0.7664794", "0.74500453", "0.74274737", "0.70477927", "0.7042599", "0.6907091", "0.6771434", "0.66338813", "0.6609276", "0.65812236", "0.62964004", "0.6248714", "0.61686885", "0.59798944", "0.59084666", "0.58854914", "0.5812658", "0.5785425", "0.577...
0.87876487
0
cast(itkLightObject obj) > itkReinitializeLevelSetImageFilterIF2
def YWvJ(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF2 *': return bf0C.itkReinitializeLevelSetImageFilterIF2_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t2Xf(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF2 *':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_cast(YEnM)", "def luOg(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF3 *':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_cast(YEnM)", "def YWvJ(YEnM: ...
[ "0.88683945", "0.83325565", "0.82109284", "0.7359575", "0.6702624", "0.6699617", "0.66807866", "0.6646173", "0.6645955", "0.66010267", "0.65182686", "0.6517151", "0.6501183", "0.64915985", "0.64889723", "0.64868265", "0.64853907", "0.6484859", "0.6477749", "0.6473312", "0.646...
0.864554
1
New() > itkReinitializeLevelSetImageFilterIF2 Create a new object of the class itkReinitializeLevelSetImageFilterIF2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named ...
def oW_4(*qIxc, **PECO): YEnM = ZrYb.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = PqKi.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = XUJG.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.75790936", "0.73920316", "0.7080354", "0.7060129", "0.691442", "0.68383986", "0.6817234", "0.6810961", "0.68058556", "0.67777133", "0.6776686", "0.6723673", "0.67225397", "0.6715549", "0.6715213", "0.67096895", "0.6690938", "0.66578287", "0.66541165", "0.6645178", "0.66202...
0.8290131
0
itkReinitializeLevelSetImageFilterIF2_cast(itkLightObject obj) > itkReinitializeLevelSetImageFilterIF2
def t2Xf(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF2 *': return bf0C.itkReinitializeLevelSetImageFilterIF2_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF2 *':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_cast(YEnM)", "def luOg(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF3 *':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_cast(YEnM)", "def YWvJ(YEnM: ...
[ "0.8591876", "0.8361778", "0.79762316", "0.76367205", "0.66559196", "0.6645274", "0.6391496", "0.63833135", "0.6334912", "0.6306206", "0.63007915", "0.62973344", "0.62777907", "0.6265508", "0.62615156", "0.62590843", "0.62583506", "0.6250271", "0.61985767", "0.6191709", "0.61...
0.9163907
0
Clone(itkReinitializeLevelSetImageFilterIF3 self) > itkReinitializeLevelSetImageFilterIF3_Pointer
def B29l(YKHO) -> 'itkReinitializeLevelSetImageFilterIF3_Pointer': return bf0C.itkReinitializeLevelSetImageFilterIF3_Clone(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B29l(YKHO) -> 'itkReinitializeLevelSetImageFilterIF2_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_Clone(YKHO)", "def luOg(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF3 *':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_cast(YEnM)", "def B29l(YKHO) -> 'itkHuan...
[ "0.81057507", "0.7605875", "0.7320521", "0.7295074", "0.7271611", "0.7251861", "0.7184143", "0.71639794", "0.7142553", "0.714041", "0.7139541", "0.71378195", "0.71240383", "0.7107056", "0.7100625", "0.7100489", "0.7094122", "0.7089931", "0.70870805", "0.7055594", "0.6980442",...
0.9018052
0
SetInputNarrowBand(itkReinitializeLevelSetImageFilterIF3 self, itkVectorContainerUILSNF3 ptr)
def J3og(YKHO, AsCw: 'itkVectorContainerUILSNF3') -> 'void': return bf0C.itkReinitializeLevelSetImageFilterIF3_SetInputNarrowBand(YKHO, AsCw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J3og(YKHO, AsCw: 'itkVectorContainerUILSNF2') -> 'void':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_SetInputNarrowBand(YKHO, AsCw)", "def aPy2(YKHO) -> 'itkVectorContainerUILSNF3_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_GetInputNarrowBand(YKHO)", "def RHhl(YKHO) -> 'itkV...
[ "0.8157996", "0.8040278", "0.7829262", "0.77318454", "0.7562225", "0.7431842", "0.7117852", "0.7008333", "0.67354673", "0.65398425", "0.6421841", "0.6375222", "0.63027555", "0.5955441", "0.5954117", "0.5928524", "0.5767065", "0.56523246", "0.553945", "0.5445778", "0.5388296",...
0.8520884
0
GetInputNarrowBand(itkReinitializeLevelSetImageFilterIF3 self) > itkVectorContainerUILSNF3_Pointer
def aPy2(YKHO) -> 'itkVectorContainerUILSNF3_Pointer': return bf0C.itkReinitializeLevelSetImageFilterIF3_GetInputNarrowBand(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RHhl(YKHO) -> 'itkVectorContainerUILSNF3_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_GetOutputNarrowBand(YKHO)", "def aPy2(YKHO) -> 'itkVectorContainerUILSNF2_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_GetInputNarrowBand(YKHO)", "def RHhl(YKHO) -> 'itkVectorContai...
[ "0.8573996", "0.85304207", "0.8047498", "0.7382054", "0.71949154", "0.69587076", "0.68173194", "0.66712743", "0.6442476", "0.6409474", "0.6316833", "0.61697733", "0.60869575", "0.6070615", "0.603338", "0.60281515", "0.5991409", "0.59263265", "0.59079105", "0.5903094", "0.5836...
0.89770633
0
GetOutputNarrowBand(itkReinitializeLevelSetImageFilterIF3 self) > itkVectorContainerUILSNF3_Pointer
def RHhl(YKHO) -> 'itkVectorContainerUILSNF3_Pointer': return bf0C.itkReinitializeLevelSetImageFilterIF3_GetOutputNarrowBand(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RHhl(YKHO) -> 'itkVectorContainerUILSNF2_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_GetOutputNarrowBand(YKHO)", "def aPy2(YKHO) -> 'itkVectorContainerUILSNF3_Pointer':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_GetInputNarrowBand(YKHO)", "def aPy2(YKHO) -> 'itkVectorContai...
[ "0.8297296", "0.82392144", "0.7911563", "0.73784393", "0.7352486", "0.7036863", "0.6982081", "0.6953438", "0.67838436", "0.65791035", "0.6432079", "0.6430458", "0.62393945", "0.61106807", "0.6078845", "0.58068776", "0.5782435", "0.5728526", "0.56667805", "0.565929", "0.565734...
0.87311405
0
cast(itkLightObject obj) > itkReinitializeLevelSetImageFilterIF3
def YWvJ(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF3 *': return bf0C.itkReinitializeLevelSetImageFilterIF3_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def luOg(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF3 *':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_cast(YEnM)", "def t2Xf(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF2 *':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_cast(YEnM)", "def YWvJ(YEnM: ...
[ "0.8745353", "0.8514437", "0.8390394", "0.72464603", "0.6802846", "0.67776483", "0.67627", "0.67442054", "0.6735106", "0.6709572", "0.6671138", "0.6645334", "0.6644711", "0.6641805", "0.66363347", "0.66353405", "0.66305983", "0.6619549", "0.6568702", "0.65583783", "0.6550898"...
0.85283536
1
New() > itkReinitializeLevelSetImageFilterIF3 Create a new object of the class itkReinitializeLevelSetImageFilterIF3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named ...
def oW_4(*qIxc, **PECO): YEnM = PqKi.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = ZrYb.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = FBk8.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.75729614", "0.7507613", "0.7226922", "0.7035201", "0.6944786", "0.694253", "0.6932411", "0.6914296", "0.69128275", "0.6905332", "0.68879944", "0.68714076", "0.6856535", "0.68443274", "0.6840504", "0.681927", "0.6817391", "0.68036586", "0.67989045", "0.6797171", "0.6791684"...
0.8327367
0
itkReinitializeLevelSetImageFilterIF3_cast(itkLightObject obj) > itkReinitializeLevelSetImageFilterIF3
def luOg(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF3 *': return bf0C.itkReinitializeLevelSetImageFilterIF3_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF3 *':\n return bf0C.itkReinitializeLevelSetImageFilterIF3_cast(YEnM)", "def t2Xf(YEnM: 'itkLightObject') -> 'itkReinitializeLevelSetImageFilterIF2 *':\n return bf0C.itkReinitializeLevelSetImageFilterIF2_cast(YEnM)", "def YWvJ(YEnM: ...
[ "0.85434616", "0.8289704", "0.78988945", "0.7369019", "0.66965896", "0.66448367", "0.6585392", "0.656342", "0.6551144", "0.6550462", "0.6547172", "0.65390426", "0.6537412", "0.65050596", "0.6498455", "0.64956546", "0.64773506", "0.64720845", "0.6471433", "0.6468564", "0.64596...
0.9179431
0
Generate a string of random lower ascii characters.
def TmxE(exwG: int=10) -> I2jr: if exwG < 1: raise Exception('Number of random chars to generate has to be > 0') return ''.join((Acvy(JSRc + '-_') for YRbF in range(exwG)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q_QB():\n yvT9 = ''\n for bGrB in range(24):\n yvT9 += Acvy(C1SZ)\n return yvT9", "def ORaO():\n return GLL2(char_choice=vIwR.ascii_letters)", "def uAxD() -> str:\n w7kn = tuKI.randint(8, 20)\n YRbF = 0\n KCHu = ''\n for exwG in range(w7kn):\n if YRbF == w7kn:\n ...
[ "0.7819435", "0.7741339", "0.77341014", "0.773297", "0.7717065", "0.7610039", "0.75496924", "0.74644053", "0.74217993", "0.73744494", "0.7338954", "0.73345727", "0.73005676", "0.7292493", "0.7282727", "0.72644925", "0.7249076", "0.72439766", "0.72437125", "0.7213209", "0.7181...
0.0
-1
Get outer Message definition that contains this definition.
def WJrD(Emd4): try: return Emd4._message_definition() except AttributeError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def twK5(Emd4):\n JZsY = Emd4.message_definition()\n if not JZsY:\n return gnPz.get_package_for_module(Emd4.__module__)\n return JZsY.definition_name()", "def WJrD(YKHO):\n try:\n return YKHO._message_definition()\n except AttributeError:\n return None", "def WJrD(YKHO):\n ...
[ "0.7393247", "0.7251471", "0.7142186", "0.7092184", "0.67437494", "0.6631199", "0.6223269", "0.60765886", "0.59931433", "0.59931433", "0.5989876", "0.59590805", "0.5945171", "0.5915424", "0.5869435", "0.5868394", "0.5868394", "0.5868394", "0.5867523", "0.586039", "0.586039", ...
0.7007202
4
Get the names of all unrecognized fields in this message.
def nh1F(YKHO): return list(YKHO.__unrecognized_fields.keys())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _y7j(YKHO):\n return [YKHO._sanitize_field_name(vXX7) for vXX7 in YKHO._all_fields]", "def sPVJ(YKHO):\n Wq02 = YKHO._fields.keys()\n Wq02.remove('time')\n Wq02.remove('lon')\n Wq02.remove('lat')\n return Wq02", "def zJN_(YKHO):\n return {im04[0] for im04 in YKHO.iter_fields()}", "de...
[ "0.6795038", "0.6793042", "0.66152936", "0.6602575", "0.65783834", "0.65368545", "0.65317863", "0.650827", "0.64828384", "0.63843095", "0.62309283", "0.6070114", "0.6069957", "0.6059616", "0.6026148", "0.5999183", "0.59974265", "0.5997008", "0.595233", "0.5948969", "0.5946761...
0.840563
0
Equality operator. Does field by field comparison with other message. For equality, must be same type and values of all fields must be equal. Messages not required to be initialized for comparison. Does not attempt to determine equality for values that have
def xa14(YKHO, Elif): if YKHO is Elif: return True if type(YKHO) is not type(Elif): return False return YKHO.__tags == Elif.__tags
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def whu6(YKHO):\n\n class MyEnum(yEHD.Enum):\n wNuL = 1\n Mlb1 = 2\n\n class AnotherMessage(yEHD.Message):\n vIwR = yEHD.StringField(1)\n\n class MyMessage(yEHD.Message):\n GvJb = yEHD.IntegerField(1)\n ve0q = yEHD.EnumField(AjiK, 2)\n YK7X = yEHD.MessageField(E9w...
[ "0.7528329", "0.68549", "0.6750522", "0.6670198", "0.66071177", "0.64520633", "0.642799", "0.6425967", "0.6374244", "0.63637054", "0.6341785", "0.6339357", "0.6334515", "0.6309764", "0.6281028", "0.6265713", "0.61949754", "0.6194041", "0.61587906", "0.6155244", "0.6137482", ...
0.0
-1
Not equals operator. Does field by field comparison with other message. For nonequality, must be different type or any value of a field must be nonequal to the same field in the other instance. Messages not required to be initialized for comparison.
def Vdqg(YKHO, Elif): return not YKHO.__eq__(Elif)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif):\n return not YKHO._field1 == Elif._field1", "def Vdqg(YKHO, Elif):\n return kUu4(YKHO, Elif)", "def Vdqg(YKHO, Elif):\n return YKHO.type != Elif.type or YKHO.value != Elif.value", "def d_5N(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if not isinsta...
[ "0.73920363", "0.6953331", "0.6952419", "0.688471", "0.6874409", "0.68594265", "0.68367547", "0.681067", "0.67902994", "0.6788979", "0.67884564", "0.6788185", "0.6788185", "0.6788185", "0.6788185", "0.6785564", "0.67821234", "0.6779233", "0.6778848", "0.67762107", "0.6775098"...
0.67792714
31
Set value on message.
def wkZW(YKHO, VGWH, BWXx): if BWXx is None: if YKHO.repeated: raise sUXu('May not assign None to repeated field %s' % YKHO.name) else: VGWH._Message__tags.pop(YKHO.number, None) else: if YKHO.repeated: BWXx = CtH8(YKHO, BWXx) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzQR(YKHO, BWXx):\n YKHO.__message = BWXx", "def BWXx(YKHO, BWXx):\n YKHO.set_data(BWXx)", "def j6Nn(YKHO, BWXx):\n YKHO.value = str(BWXx)", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def ...
[ "0.7928963", "0.734428", "0.7116324", "0.7107831", "0.7107831", "0.7107831", "0.71054506", "0.7034611", "0.70327044", "0.6990884", "0.6974681", "0.6974681", "0.6974681", "0.6974681", "0.6974681", "0.6974681", "0.6969228", "0.6961439", "0.6943658", "0.6897801", "0.6848779", ...
0.6578218
56
Validate value as assigned to field default field. Some fields may allow for delayed resolution of default types necessary in the case of circular definition references. In this case, the default value might be a place holder that is resolved when needed after all the message classes are defined.
def zksZ(YKHO, BWXx): return YKHO.validate_element(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wobO(YKHO):\n if YKHO.has_default_value:\n if not YKHO.is_valid_value(YKHO.default):\n raise nAe7(\"Default value '%s' is not compliant with the schema\")", "def WvXi(YKHO, BWXx):\n return YKHO.__validate(BWXx, YKHO.validate_default_element)", "def lTBL(YKHO):\n muwo = {yEHD.Inte...
[ "0.69995", "0.6989705", "0.6926852", "0.689136", "0.6633943", "0.6613437", "0.6553126", "0.6496466", "0.648919", "0.6488628", "0.64637613", "0.644795", "0.6436274", "0.63763326", "0.62815917", "0.6260841", "0.6260841", "0.6222233", "0.6216768", "0.620341", "0.6200761", "0.6...
0.60134435
31
Validate default value assigned to field.
def WvXi(YKHO, BWXx): return YKHO.__validate(BWXx, YKHO.validate_default_element)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wobO(YKHO):\n if YKHO.has_default_value:\n if not YKHO.is_valid_value(YKHO.default):\n raise nAe7(\"Default value '%s' is not compliant with the schema\")", "def WvXi(YKHO, BWXx):\n return YKHO.__validate(BWXx, YKHO.validate_default_element)", "def xzCw(YKHO, BWXx):\n if BWXx is ...
[ "0.81868947", "0.79932135", "0.7230786", "0.7230786", "0.7109969", "0.69292593", "0.69249916", "0.68446213", "0.67579883", "0.6724588", "0.6722898", "0.672073", "0.6611115", "0.6544696", "0.6541936", "0.65011966", "0.6474088", "0.6422759", "0.6381658", "0.63445455", "0.631911...
0.78467256
2
Get Message definition that contains this Field definition.
def WJrD(YKHO): try: return YKHO._message_definition() except AttributeError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJrD(Emd4):\n try:\n return Emd4._message_definition()\n except AttributeError:\n return None", "def WJrD(YKHO):\n try:\n return YKHO._message_definition()\n except AttributeError:\n return None", "def S1H8(YKHO):\n return YKHO._custom_fields_definition", "def M...
[ "0.80506986", "0.7940214", "0.66261214", "0.644501", "0.64029247", "0.633313", "0.6328373", "0.6266494", "0.62495345", "0.6234803", "0.6221234", "0.621367", "0.621367", "0.6174645", "0.61230236", "0.61172944", "0.61172944", "0.6086213", "0.6049226", "0.60257727", "0.593182", ...
0.81259733
0
Set value on message.
def wkZW(YKHO, VGWH, BWXx): a1PO = YKHO.type if isinstance(a1PO, type) and issubclass(a1PO, LuKW): if YKHO.repeated: if BWXx and isinstance(BWXx, (list, tuple)): BWXx = [a1PO(**Ty9i) if isinstance(Ty9i, dict) else Ty9i for Ty9i in BWXx] elif isinstance(BWXx, dict): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IzQR(YKHO, BWXx):\n YKHO.__message = BWXx", "def BWXx(YKHO, BWXx):\n YKHO.set_data(BWXx)", "def j6Nn(YKHO, BWXx):\n YKHO.value = str(BWXx)", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def j6Nn(YKHO, BWXx):\n YKHO.value = BWXx", "def ...
[ "0.7928963", "0.734428", "0.7116324", "0.7107831", "0.7107831", "0.7107831", "0.71054506", "0.7034611", "0.70327044", "0.6990884", "0.6974681", "0.6974681", "0.6974681", "0.6974681", "0.6974681", "0.6974681", "0.6969228", "0.6961439", "0.6943658", "0.6897801", "0.68432355", ...
0.6848779
20
Underlying message type used for serialization. Will always be a subclass of Message. This is different from type which represents the python value that message_type is mapped to for use by the user.
def Logs(YKHO): return YKHO.type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Logs(YKHO):\n return YKHO._message_type", "def Logs(YKHO):\n return YKHO._message_type", "def type(YKHO):\n if YKHO.__type is None:\n Logs = Ncah(YKHO.__type_name, YKHO.message_definition())\n if not (Logs is not LuKW and isinstance(Logs, type) and issubclass(Logs, LuKW)):\n ...
[ "0.8226121", "0.8226121", "0.8218005", "0.80171233", "0.8002418", "0.7743481", "0.76956356", "0.7551482", "0.7444048", "0.74251866", "0.7390952", "0.7390952", "0.732974", "0.73008704", "0.7287583", "0.72594357", "0.7248621", "0.71580803", "0.6983605", "0.679467", "0.64528465"...
0.831504
0
Validate default element of Enum field. Enum fields allow for delayed resolution of default values when the type of the field has not been resolved. The default value of a field may be a string or an integer. If the Enum type of the field has been resolved, the default value is validated against that type.
def zksZ(YKHO, BWXx): if isinstance(BWXx, (jKi7.string_types, jKi7.integer_types)): if YKHO.__type: YKHO.__type(BWXx) return BWXx return super(x9je, YKHO).validate_default_element(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d1rd(YKHO):\n Jyyj = yEHD.EnumField('apitools.base.protorpclite.descriptor.FieldDescriptor.Label', 1, default=2)\n YKHO.assertEquals(jXCX.FieldDescriptor.Label.REQUIRED, Jyyj.default)", "def rmNj(YKHO):\n Jyyj = yEHD.EnumField('apitools.base.protorpclite.descriptor.FieldDescriptor.Label', 1, default...
[ "0.77653104", "0.7725556", "0.75786275", "0.7506559", "0.7169045", "0.71323603", "0.7012498", "0.7012498", "0.6973622", "0.69089925", "0.6461298", "0.6391953", "0.6351793", "0.63068247", "0.6283055", "0.62232494", "0.61506903", "0.6019939", "0.5874156", "0.580933", "0.5715174...
0.77598834
1
Precision metric. Only computes a batchwise average of precision. Computes the precision, a metric for multilabel classification of how many selected items are relevant.
def rhd_(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMgO, 0, 1))) rhd_ = COti / (ftZB + nMvt.epsilon()) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO):\n YKHO.overall_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=YKHO.average_type).round(YKHO.digits_count_fp)\n YKHO.classes_precision = Rrc1(YKHO.y_true, YKHO.y_pred, average=None).round(YKHO.digits_count_fp)", "def lGpo(nPrm, svPB=4):\n gCUM = []\n for KAOR in nPrm:\n RDeU...
[ "0.7490801", "0.7288073", "0.71588075", "0.7153132", "0.7066247", "0.6985392", "0.6966561", "0.6955553", "0.69132614", "0.6832886", "0.6818762", "0.68100244", "0.680567", "0.680567", "0.680567", "0.680567", "0.680567", "0.680567", "0.6786287", "0.67557174", "0.67557174", "0...
0.67582464
22
Recall metric. Only computes a batchwise average of recall. Computes the recall, a metric for multilabel classification of how many relevant items are selected.
def AOzf(Y8eF, aMgO): COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1))) z5jX = nMvt.sum(nMvt.round(nMvt.clip(Y8eF, 0, 1))) AOzf = COti / (z5jX + nMvt.epsilon()) return AOzf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOzf(Y8eF, aMgO, S8vG, Crrw):\n Y8eF, aMgO = eN6f(Y8eF, aMgO, S8vG, Crrw)\n Aofo = None\n r8hN = len(Y8eF)\n exwG = len(Crrw)\n YsYU = A3YK(Y8eF, aMgO, Crrw).T\n if S8vG == 'micro':\n M6pt = oyIN.trace(YsYU)\n UUZ1 = oyIN.sum(YsYU)\n Aofo = M6pt / UUZ1\n elif S8vG == '...
[ "0.7605249", "0.74491084", "0.7405392", "0.7281231", "0.72096574", "0.716614", "0.71576375", "0.7145557", "0.7145557", "0.7145557", "0.7145557", "0.7145557", "0.7145557", "0.71319014", "0.7101232", "0.70974207", "0.70974207", "0.70974207", "0.70974207", "0.70974207", "0.70974...
0.70628613
40
Create queryset to model objects, can be used for filtering.
def k66M(YKHO): return YKHO.model.objects.all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n return YKHO._queryset_class(model=YKHO.model, using=YKHO._db, hints=YKHO._hints, query=iFpJ(YKHO.model))", "def SR0I(YKHO, QePW):\n umWR = YKHO.model.all_objects.get_query_set()\n mJZc = YKHO.ordering or ()\n if mJZc:\n umWR = umWR.order_by(*mJZc)\n return umWR", "def k6...
[ "0.6766984", "0.66717756", "0.6502685", "0.65009546", "0.6391257", "0.62863934", "0.6218703", "0.6194865", "0.61748636", "0.6168507", "0.6156925", "0.6152832", "0.61375487", "0.6103472", "0.60991985", "0.60978", "0.6089032", "0.6083095", "0.60637826", "0.60590583", "0.6056135...
0.6205981
7
Filter out passing rows if `failing_tests` is `True`.
def L2oq(YKHO, JZXy: TestGroupReport) -> bool: _Cnz = YKHO.get_style(JZXy) if JZXy.category == mx4l.TESTSUITE: return _Cnz.display_testsuite elif JZXy.category == mx4l.PARAMETRIZATION: return _Cnz.display_testcase return _Cnz.display_test
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MklO(jQ3Z):\n bNiP = jQ3Z.group_uuid.unique()\n fvue = []\n for f2Vk in bNiP:\n Ysbf = jQ3Z[(jQ3Z.group_uuid == f2Vk) & ~roXy(jQ3Z)]\n if not len(Ysbf):\n jQ3Z = jQ3Z[jQ3Z.group_uuid != f2Vk]\n fvue.append(f2Vk)\n return (jQ3Z, fvue)", "def PjV2(YKHO):\n ret...
[ "0.67074096", "0.60216844", "0.59125733", "0.5762062", "0.575366", "0.5750559", "0.57048166", "0.5681357", "0.5672835", "0.5654499", "0.5652389", "0.5587599", "0.55673957", "0.55050063", "0.5494197", "0.5487263", "0.54712754", "0.54211193", "0.540032", "0.53880554", "0.538411...
0.0
-1
i, j = random.randint(0,2), random.randint(0, 2)
def B5iM(iBIi): YRbF, r845 = XdJI(iBIi) iBIi[YRbF][r845] = sLVX a9eO.time.delay(500) jDVf(YRbF, r845, sLVX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b3I0():\n return (tuKI.randint(0, 9), tuKI.randint(0, 9))", "def BUc5():\n return int(round(tuKI.random() * 1))", "def pph3() -> AzJI[int, int, int]:\n return (qukk(0, 255), qukk(0, 255), qukk(0, 255))", "def kGMS(exwG):\n WKvO = tuKI.randint(0, exwG - 1)\n LVAh = tuKI.randint(0, exwG - 1)...
[ "0.66288686", "0.66178435", "0.6505425", "0.6408735", "0.6402151", "0.6313235", "0.62942284", "0.62725234", "0.6269347", "0.6257592", "0.624643", "0.6211064", "0.6082181", "0.6059201", "0.60437405", "0.6038521", "0.59937686", "0.59854525", "0.59845704", "0.59568757", "0.59380...
0.0
-1
Add a fragment and/or query paramaters to a URL. New query params will be appended to exising parameters, except duplicate names, which will be replaced.
def DCBk(Dy7n, hash=None, **xDcj): bD7m = KVWQ.urlparse(Dy7n) vBtp = hash if hash is not None else bD7m.fragment vexM = bD7m.query ChdF = dict(KVWQ.parse_qsl(cJ_x(vexM))) if vexM else {} ChdF.update(((G1Hx, Ty9i) for G1Hx, Ty9i in xDcj.items())) R7S5 = Ff6Y([(G1Hx, Ty9i) for G1Hx, Ty9i in ChdF.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hxvq(puIl, **B2fa):\n ht58, RYr6, pmON, R7S5, vBtp = NoPH(puIl)\n o2VW = _Ibt(R7S5)\n if B2fa is not None:\n for H5ew, BWXx in B2fa.items():\n o2VW[H5ew] = [BWXx]\n G7Vf = QIYp(o2VW, doseq=True)\n IBRk = izOI((ht58, RYr6, pmON, G7Vf, vBtp))\n return IBRk", "def Hxvq(puIl, ...
[ "0.75657976", "0.75657976", "0.75255597", "0.7269544", "0.7214137", "0.7206239", "0.70351887", "0.698488", "0.6747803", "0.671993", "0.6712001", "0.66434073", "0.66264796", "0.6577256", "0.65166324", "0.6464911", "0.6422556", "0.6412772", "0.6399129", "0.63230646", "0.6307314...
0.60963017
25
Url encode a path.
def QIYp(FUjE): return uRlK.quote_plus(FUjE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QIYp(pmON):\n return uRlK.quote_plus(pmON)", "def OJc6(D3T3):\n return uRlK.parse.quote(D3T3, safe=\"%/:=&?~#+!$,;'@()*[]|\")", "def PG2p(bD7m):\n return bD7m.replace(' ', '_')", "def OJc6(nPrm: str) -> str:\n return uRlK.parse.quote(nPrm, safe='')", "def hLQ7(YKHO, l5Ny):\n try:\n ...
[ "0.80897945", "0.69705486", "0.6837121", "0.6761978", "0.6461472", "0.64534646", "0.6436285", "0.63333744", "0.62817276", "0.6266158", "0.6237047", "0.6217817", "0.6209671", "0.6200537", "0.6195326", "0.6180972", "0.61767447", "0.61711365", "0.6168379", "0.61392534", "0.61382...
0.602089
30
Convert a month's numeric value into its Estonian name as a string.
def yZ3l(TMqc): NCqB.setlocale(NCqB.LC_TIME, 'et-EE') return GRk0.month_name[TMqc]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x9ru(x0eS):\n ZJB9 = {'JAN': '01', 'FEV': '02', 'FEB': '02', 'MAR': '03', 'ABR': '04', 'APR': '04', 'MAI': '05', 'MAY': '05', 'JUN': '06', 'JUL': '07', 'AGO': '08', 'AUG': '08', 'SET': '09', 'SEP': '09', 'OUT': '10', 'OCT': '10', 'NOV': '11', 'DEZ': '12', 'DEC': '12'}\n try:\n return ZJB9[x0eS.upp...
[ "0.594064", "0.58418053", "0.5767026", "0.5691344", "0.5678527", "0.56366116", "0.56232446", "0.5621094", "0.5600749", "0.5537039", "0.5522226", "0.5492537", "0.5469423", "0.5446329", "0.5414069", "0.5366334", "0.52934396", "0.5266259", "0.51585954", "0.51318014", "0.5126667"...
0.61782634
0
Drops fields from a dictionary where value is None.
def Yylp(cmPJ: Dict) -> cuzp: return {H5ew: BWXx for H5ew, BWXx in cmPJ.items() if BWXx is not None}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iTqW(rV9y, Csk6):\n return dict(((G1Hx, Ty9i) for G1Hx, Ty9i in Csk6.iteritems() if Ty9i is not None))", "def L2On(YKHO, nPrm):\n for H5ew, BWXx in nPrm.items():\n if BWXx is None or isinstance(BWXx, H6V6.Field):\n del nPrm[H5ew]\n if isinstance(BWXx, dict):\n YKHO._...
[ "0.82623404", "0.8083525", "0.78917056", "0.78674465", "0.77446145", "0.7578105", "0.74640435", "0.7463003", "0.7361065", "0.7318768", "0.7155536", "0.7145769", "0.70666915", "0.70599705", "0.7056038", "0.7021383", "0.7008916", "0.69078904", "0.6845735", "0.6836179", "0.68120...
0.7642924
5
Returns the Selenium Remote webdriver instance
def aDzh(YKHO): return YKHO.driver
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DzFt():\n return ynfG._current_browser()", "def E_qD(YKHO):\n from dallinger.config import get_config\n GPtr = get_config()\n if not GPtr.ready:\n GPtr.load()\n hNq7 = GPtr.get('webdriver_url', None)\n jX_P = GPtr.get('webdriver_type')\n E_qD = None\n if hNq7:\n AViC = k...
[ "0.7904503", "0.7510589", "0.7471657", "0.7294036", "0.7196879", "0.71936786", "0.71020335", "0.70239586", "0.69415206", "0.6870139", "0.68574595", "0.6839029", "0.6636327", "0.66309476", "0.6587739", "0.6566226", "0.65473604", "0.65168244", "0.6482482", "0.6470723", "0.64423...
0.67346615
12
Instantiate a falcon.API instance.
def n4E9(YKHO): return xT16(djenkins=YKHO.dj, pipeline_results=YKHO.db)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, HrYv=False):\n YKHO.api_use = HrYv", "def FIMM(YKHO):\n YKHO.config = tgzD()\n YKHO.log = fZx2(YKHO)\n YKHO.factory = rsrg('wss://*:5505')\n YKHO.factory.protocol = YWdy\n YKHO.console_factory = pRwu('wss://localhost:5507')\n YKHO.console_factory.protocol = gbLV\n YKHO.api ...
[ "0.6643709", "0.6594889", "0.65727437", "0.6571483", "0.65524846", "0.64856195", "0.64292306", "0.64088535", "0.63738346", "0.6365373", "0.6350153", "0.6307253", "0.62830144", "0.62576264", "0.62507015", "0.624698", "0.624698", "0.6240552", "0.6223257", "0.6218115", "0.620379...
0.6158116
23
return True if any InstanceStates present have been marked as 'modified'.
def hfbc(YKHO) -> bool: return bool(YKHO._modified)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tMYZ(YKHO):\n return YKHO._has_been_modified", "def w3PF(YKHO, KAOR: object, z01Z: bool=True) -> bool:\n QTBn = EIp9(KAOR)\n if not QTBn.modified:\n return False\n fGC9 = QTBn.dict\n for hkS8 in QTBn.manager.attributes:\n if not z01Z and hasattr(hkS8.impl, 'get_collection') or no...
[ "0.74784887", "0.735443", "0.7348484", "0.7015803", "0.69632894", "0.6953965", "0.6924642", "0.68859047", "0.68464684", "0.6842415", "0.6832818", "0.6745052", "0.67189074", "0.6706047", "0.66794306", "0.66794306", "0.6657477", "0.6639282", "0.66309035", "0.66132003", "0.66059...
0.72242
3
Return a color palette with hex codes instead of RGB values.
def bVlv(YKHO): hex = [x5MY.colors.rgb2hex(d7Eb) for d7Eb in YKHO] return l4Tc(hex)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pLK7(YKHO, dVUq=True):\n if dVUq:\n return YKHO._colors\n return (YKHO._colors * 255).round().clip(0, 255).astype(oyIN.uint8)", "def JTXs(Emd4):\n return ['#{:02x}{:02x}{:02x}'.format(*Emd4._COLORS[KCHu]) for KCHu in Emd4._STATES]", "def pLK7(GbcQ):\n exwG = GbcQ\n tn62 = [0] * (exwG ...
[ "0.741834", "0.71717864", "0.7051476", "0.70132935", "0.69927025", "0.6905208", "0.6840367", "0.67468154", "0.6738194", "0.6695964", "0.6641201", "0.6631731", "0.66242725", "0.661875", "0.6594972", "0.6556972", "0.6502868", "0.6488086", "0.64795166", "0.6437992", "0.64379734"...
0.7870899
0
Return a list of colors defining a color palette.
def _Igo(tn62=None, QR6r=None, GpAS=None): if tn62 is None: tn62 = BfDw.get_color_cycle() if QR6r is None: QR6r = len(tn62) elif isinstance(tn62, Jw9H.ColorGroup): tn62 = tn62.colors if QR6r is None: QR6r = len(tn62) elif not isinstance(tn62, str): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kt7N():\n return ['#8c99fc', '#cacefd', '#fff1d7', '#feda98', '#fda85a', '#fc6647']", "def RMor(YKHO, tn62, Jw9H):\n return [tn62[YRbF:YRbF + 3] for YRbF in range(0, Jw9H * 3, 3)]", "def Kt7N():\n Jw9H = ['#d53e4f', '#fc8d59', '#fee08b', '#ffffbf', '#e6f598', '#99d594', '#3288bd']\n return Jw9H...
[ "0.81427073", "0.8061346", "0.793248", "0.7537337", "0.7430485", "0.7430485", "0.7409167", "0.73690796", "0.7365027", "0.7271981", "0.72279984", "0.7191525", "0.7191485", "0.70682174", "0.7057603", "0.7051628", "0.7048697", "0.70431286", "0.7040537", "0.70391357", "0.6935029"...
0.6295705
64
Return discrete colors from a matplotlib palette. Note that this handles the qualitative colorbrewer palettes properly, although if you ask for more colors than a particular qualitative palette can provide you will get fewer than you are expecting. In contrast, asking for qualitative color brewer palettes
def LJmN(mWFP, QR6r=6): SWqm = {'Accent': 8, 'Dark2': 8, 'Paired': 12, 'Pastel1': 9, 'Pastel2': 8, 'Set1': 9, 'Set2': 8, 'Set3': 12} if mWFP.endswith('_d'): LuXF = ['#333333'] LuXF.extend(_Igo(mWFP.replace('_d', '_r'), 2)) iMGt = ThOT(LuXF, QR6r, as_cmap=True) else: iMGt = ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BPkW(QR6r=4, iMGt='viridis', ssDt=False):\n if ssDt:\n Pyrc = oyIN.linspace(0, 1, QR6r)\n else:\n Pyrc = oyIN.linspace(0, 1, QR6r * 2 - 1 + 2)[1:-1:2]\n iMGt = QrM1.get_cmap(iMGt)\n tn62 = list(map(tuple, iMGt(Pyrc)[:, :3]))\n return tn62", "def _Igo(tn62=None, QR6r=None, GpAS=No...
[ "0.7125829", "0.70830077", "0.69214034", "0.6870049", "0.66827005", "0.66825163", "0.667896", "0.6649318", "0.6523774", "0.6494016", "0.6461066", "0.64523244", "0.6435633", "0.6433696", "0.6406274", "0.6402879", "0.6402879", "0.6402879", "0.6368967", "0.63515294", "0.63469756...
0.6913835
3
Make a diverging palette between two HUSL colors. If you are using the IPython notebook, you can also choose this palette
def awM0(NVgo, jcTZ, KCHu=75, vC9B=50, VWe_=10, exwG=6, hgjH='light', Hoe1=False): pMCG = u_da if hgjH == 'dark' else pdEg V3hn = pMCG((NVgo, KCHu, vC9B), 128 - VWe_ / 2, reverse=True, input='husl') oeNL = pMCG((jcTZ, KCHu, vC9B), 128 - VWe_ / 2, input='husl') lKXT = dict(light=[(0.95, 0.95, 0.95, 1.0)]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AsOb(zhMh, WL4f, Hoe1=True):\n XLMJ, FUKs, qvXZ = zip(*[tw4U.hex_to_husl(YRbF) for YRbF in [zhMh, WL4f]])\n tn62 = awM0(*XLMJ, s=oyIN.mean(FUKs), l=oyIN.mean(qvXZ), as_cmap=Hoe1)\n return tn62", "def cNdb(yfUf, gqRb=32, ODP9=255, pKYF=1.0):\n if len(yfUf) == 1:\n YPaw = 0\n else:\n ...
[ "0.70272684", "0.66463876", "0.6643286", "0.6452525", "0.6345009", "0.62776756", "0.62233025", "0.614152", "0.60752875", "0.6068269", "0.60671175", "0.6037921", "0.5989304", "0.59642303", "0.59634507", "0.59556246", "0.59531504", "0.5947089", "0.5939619", "0.59345263", "0.591...
0.7072908
0
Make a palette that blends between a list of colors.
def ThOT(Jw9H, QR6r=6, Hoe1=False, input='rgb'): Jw9H = [Zou3(qfpW, input) for qfpW in Jw9H] mWFP = 'blend' LuXF = x5MY.colors.LinearSegmentedColormap.from_list(mWFP, Jw9H) if not Hoe1: LuXF = l4Tc(LuXF(oyIN.linspace(0, 1, QR6r))) return LuXF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S4UB(TZqf, s8jX, Wr3E=(1, 0.3), Z0EI=(1, 1.3), BWoA=False):\n\n def vJPk(wEf2, mZ1z):\n if wEf2 < 0:\n wEf2 = 0\n bo34.warning('[monochrome_palette]: ' + mZ1z + ' was smaller than 0 and was clipped.')\n elif wEf2 > 1:\n wEf2 = 1\n bo34.warning('[mono...
[ "0.6519797", "0.6426455", "0.62618047", "0.6237339", "0.613288", "0.60629743", "0.6031891", "0.59472585", "0.58904153", "0.5873573", "0.5859708", "0.5857991", "0.58430666", "0.5840298", "0.58237314", "0.58064586", "0.58032566", "0.5771572", "0.5762511", "0.57531166", "0.57261...
0.76429754
0
Separate multiple consecutive emojis with spaces. In mobile chat applications, emojis are often typed consecutively without spaces inbetween.
def C3pQ(l5Ny): E1OP = ZbWC.compile('(\\S*?)([𐀀-\U0010ffff(❤️)])') l5Ny = ZbWC.sub(E1OP, '\\1 \\2', l5Ny) E1OP = ZbWC.compile(u'([𐀀-\U0010ffff(❤️)])(\\S+)') l5Ny = ZbWC.sub(E1OP, '\\1 \\2', l5Ny) return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def emoji(YKHO, OaeV, *, l5Ny):\n await OaeV.message.delete()\n Rf7M = ''\n for hcXw in l5Ny:\n if hcXw.isalpha():\n Rf7M += sV1W(hcXw) + ' '\n elif hcXw == ' ':\n Rf7M += ' '\n elif hcXw.isspace():\n Rf7M += hcXw\n if len(Rf7M):\n awa...
[ "0.66259325", "0.6233596", "0.6142513", "0.6027643", "0.59887516", "0.5935049", "0.58666897", "0.5702979", "0.5676926", "0.55605567", "0.55302507", "0.55270886", "0.5518663", "0.55167365", "0.5491154", "0.5453783", "0.5433883", "0.53785026", "0.53666294", "0.535553", "0.53381...
0.76290476
0
Check if this board is existing and valid.
async def check_board(YKHO): QePW = await YKHO.api.request(cN1Q) if QePW is False: return False tk5Y = QGpr.XML(bytes(QePW, encoding='utf-8')) lCNJ = tk5Y.xpath("//*[starts-with(local-name(), 'led')]") uGDS = tk5Y.xpath("//*[starts-with(local-name(), 'btn')]") miuw = tk5Y.xpath("//*[star...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tlst(YKHO):\n for (rdlD, fvDH), BWXx in oyIN.ndenumerate(YKHO.final_values):\n if not YKHO.__is_valid_value(rdlD, fvDH, BWXx):\n return False\n return True", "def DmGW(cuUy):\n return TTrU(cuUy) and iG05(cuUy) and oCju(cuUy)", "def yI_u(YKHO):\n for YRbF in range(9):\n ...
[ "0.7520778", "0.74383986", "0.74174076", "0.73917204", "0.7312137", "0.7196038", "0.7191761", "0.70423937", "0.7028523", "0.698455", "0.6977753", "0.6910683", "0.6908011", "0.68641967", "0.6811573", "0.68098134", "0.68013924", "0.6775926", "0.6764357", "0.6717336", "0.6715197...
0.0
-1
Return all temperature states.
async def get_temps(YKHO): return await YKHO.get_states_by_tag_prefix('temp', True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fqm3(YKHO):\n return YKHO._states", "def K43E(YKHO):\n return YKHO._states", "def n0G3(YKHO):\n return YKHO._thermal_list", "def q4Ln(YKHO):\n return list(Hs6x.product(YKHO.getAllWorldStates(), YKHO.getAllTheta()))", "def aoB2(YKHO):\n return YKHO._arm.temperatures", "def K43E(YKHO) ->...
[ "0.7140723", "0.69381505", "0.6918242", "0.67882574", "0.673616", "0.66808236", "0.6652125", "0.64504987", "0.6414524", "0.63867664", "0.6315103", "0.6293342", "0.6254123", "0.62420917", "0.6234737", "0.62326705", "0.62257135", "0.619305", "0.6153609", "0.6151319", "0.6136814...
0.7892062
0
Initializing the model parameters including weights and bias
def Uu_y(YKHO): _rau = oyIN.sqrt(2.0 / (YKHO.num_h + YKHO.num_v)) XcU5 = ZylS.get_variable('weights', shape=(YKHO.num_v, YKHO.num_h), initializer=ZylS.random_uniform_initializer(minval=-_rau, maxval=_rau)) jzdc = ZylS.get_variable('visible_bias', shape=YKHO.num_v, initializer=ZylS.zeros_initializer()) F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8Xp(YKHO):\n nIVP = 1.0 / epAf.sqrt(YKHO.weight.data.size(1))\n YKHO.weight.data.uniform_(-nIVP, nIVP)\n if YKHO.bias is not None:\n YKHO.bias.data.uniform_(-nIVP, nIVP)", "def sIHF(YKHO):\n DbxN = TPe2(YKHO.w_init)\n if YKHO.w_gain:\n mb4J = U78l.init.calculate_gain('relu')\n ...
[ "0.82835186", "0.8104326", "0.8008608", "0.7850191", "0.7832912", "0.7787066", "0.7745763", "0.76261204", "0.7584754", "0.7540992", "0.74680245", "0.74427086", "0.7430089", "0.7428573", "0.738817", "0.738817", "0.7380688", "0.73416543", "0.73391044", "0.73323846", "0.7321426"...
0.7255839
24
Computing conditional probability P(v|h)
def trdh(YKHO, MKlR): return ZylS.sigmoid(ZylS.add(YKHO.a, ZylS.matmul(MKlR, ZylS.transpose(YKHO.W))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def moJd(YKHO, Ty9i):\n return ZylS.sigmoid(ZylS.add(YKHO.b, ZylS.matmul(Ty9i, YKHO.W)))", "def kR8j():\n MKlR = lambda WKvO: WKvO[0] < -1 and WKvO[1] > 1\n eHNT = lambda WKvO: eQSh.multivariate_normal.pdf(WKvO, mean=oyIN.array([0, 0]), cov=oyIN.eye(2))\n Oa1e = lambda WKvO: eQSh.multivariate_normal....
[ "0.69560045", "0.6774935", "0.66855866", "0.65892315", "0.6547395", "0.6455749", "0.64552754", "0.6444555", "0.64226663", "0.6307906", "0.62906694", "0.62361306", "0.6229128", "0.6164281", "0.61615676", "0.61435294", "0.611868", "0.6103009", "0.6098756", "0.60985565", "0.6090...
0.7029824
0
Computing conditional probability P(h|v)
def moJd(YKHO, Ty9i): return ZylS.sigmoid(ZylS.add(YKHO.b, ZylS.matmul(Ty9i, YKHO.W)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def trdh(YKHO, MKlR):\n return ZylS.sigmoid(ZylS.add(YKHO.a, ZylS.matmul(MKlR, ZylS.transpose(YKHO.W))))", "def XtOm(YKHO, Csk6, Ty9i):\n GyPx = oyIN.ones((YKHO.n_topic_components, YKHO.n_sentiment_components))\n rCEN = (YKHO.n_ds[Csk6] + YKHO.alphaVec) / (YKHO.n_d[Csk6] + oyIN.sum(YKHO.alphaVec))\n ...
[ "0.6957641", "0.68463737", "0.680359", "0.6615206", "0.6534881", "0.65325207", "0.65101624", "0.645788", "0.63940054", "0.6388646", "0.63539547", "0.6344394", "0.6341369", "0.6318663", "0.63144743", "0.6220643", "0.61792874", "0.61719596", "0.6171703", "0.6158666", "0.6156587...
0.71246815
0
Return a dash definition of an HTML table for a Pandas dataframe
def BJgQ(jQ3Z): tyNF = [] for d6pt, rdlD in jQ3Z.iterrows(): WmiI = [] for YRbF in range(len(rdlD)): WmiI.append(_R2e.Td([rdlD[YRbF]])) tyNF.append(_R2e.Tr(WmiI)) return tyNF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BJgQ(SuM2, jQ3Z):\n FHnm = jQ3Z.loc[jQ3Z['NAME'].isin(SuM2)]\n tyNF = []\n for d6pt, rdlD in FHnm.iterrows():\n usx6 = []\n usx6.append(_R2e.Td([rdlD['NAME']]))\n usx6.append(_R2e.Td([_R2e.Img(src=rdlD['IMG_URL'])]))\n usx6.append(_R2e.Td([rdlD['FORM']]))\n usx6.appe...
[ "0.73028404", "0.71504134", "0.71464837", "0.7117", "0.6868069", "0.6781153", "0.67628866", "0.6703846", "0.67008024", "0.6673999", "0.66340435", "0.66117126", "0.65981025", "0.64622086", "0.6456938", "0.6449743", "0.64447176", "0.6416085", "0.63830405", "0.6372037", "0.63682...
0.7628702
2
Makes an html string from the JSON formatted sheet
def HUnt(OGYo): _R2e = '' leAC = QMSQ(OGYo.get('title', '')).strip() _R2e += '{}<br>'.format(leAC) for JZXy in OGYo['sources']: if 'text' in JZXy: F79M = QMSQ(JZXy['text'].get('en', '')).strip() IU5w = QMSQ(JZXy['text'].get('he', '')).strip() _R2e += '{}<br>{}...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J5QQ(YEnM):\n return ZUDr('json', qQXR.dumps(YEnM, sort_keys=False, indent=4))", "def J5QQ(hGN5):\n MOPg = hGN5[0].keys()\n usx6 = (Mkmy.values() for Mkmy in hGN5)\n return nXPU(MOPg, usx6)", "def ioHC(YKHO):\n usx6 = YKHO.check()\n zzKE = ''\n for rdlD in usx6:\n nPrm = YKHO._f...
[ "0.66835284", "0.62767017", "0.6134372", "0.60997975", "0.6016377", "0.59954476", "0.59345", "0.59041566", "0.5867901", "0.5860437", "0.58298653", "0.5826802", "0.5725759", "0.56628203", "0.5654219", "0.56412256", "0.563846", "0.5623464", "0.5617242", "0.56169736", "0.5570859...
0.70021343
0
I'm the 'mandatory' property.
def zIV1(YKHO): return YKHO._mandatory
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zIV1(YKHO, zIV1):\n YKHO._mandatory = zIV1", "def zIV1(YKHO, zIV1):\n YKHO._mandatory = zIV1", "def glsA(YKHO):\n return YKHO.default == YKHO.NotSpecified", "def q7VK(YKHO, bIdP, Zmkp):\n if YKHO._mandatory and (not bIdP(YKHO.name)):\n return True\n return False", "def g3RX(YKHO):...
[ "0.75506604", "0.75506604", "0.7203042", "0.7185858", "0.71747315", "0.70269483", "0.7014198", "0.6909687", "0.688413", "0.6788407", "0.6738173", "0.6713245", "0.6699305", "0.6673248", "0.6659847", "0.66435295", "0.66435295", "0.66318053", "0.66311187", "0.6617063", "0.658007...
0.8318567
0
I'm the 'opt_value' property.
def hmBa(YKHO): return YKHO._opt_value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmkp(YKHO):\n return YKHO._get_value(YKHO.optionType, YKHO.value, YKHO.defaultValue)", "def VBzb(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('OptionValue')\n return YKHO._OptionValue", "def seUn(YKHO, H5ew):\n YKHO.__assert_option(H5ew)\n return YKHO.__opt[H5ew]", "def vNsZ(YKHO, Q...
[ "0.7695498", "0.75160086", "0.693515", "0.6907238", "0.6876313", "0.68060356", "0.6750063", "0.673023", "0.66447", "0.6594422", "0.65721446", "0.65721446", "0.65721446", "0.6558912", "0.655406", "0.6546801", "0.65446997", "0.65446997", "0.65446997", "0.65446997", "0.65446997"...
0.85266
0