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
The maximum MSLP in inches mercury. Null if not available.
def Nwom(YKHO) -> float: return YKHO.pressure['maxIN']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JsHp(YKHO) -> float:\n return YKHO.wind['maxMPH']", "def seGW(YKHO):\n return YKHO._get_attribute('maxSlMsd')", "def JYT9(YKHO) -> float:\n return YKHO.wind['maxKPH']", "def w3IF(YKHO):\n return float(YKHO.doubleSpinBox_6.value()) * 1000.0", "def HGBm(YKHO):\n return YKHO._get_attribute(...
[ "0.74278957", "0.72836316", "0.7138994", "0.70104855", "0.69720054", "0.6965601", "0.6946506", "0.6924327", "0.6908973", "0.68774354", "0.6860003", "0.6797569", "0.6785147", "0.67728686", "0.67668456", "0.6756901", "0.6756021", "0.6741856", "0.67258227", "0.6724854", "0.67248...
0.68769646
10
The average MSLP in millibars. Null if not available.
def b39G(YKHO) -> int: return YKHO.pressure['avgMB']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZnOo(YKHO) -> float:\n return YKHO.wind['avgMPH']", "def JBMS(YKHO):\n return 0.576", "def JBMS(YKHO):\n return 0.072", "def PTXp(YKHO):\n LZAO = jQ3Z.assemble(YKHO._Ms_dg * jQ3Z.dx)\n akib = jQ3Z.assemble(YKHO._Ms_dg * jQ3Z.dx)\n return YKHO.m_average * LZAO / akib", "def JBMS(YKHO):...
[ "0.69586575", "0.6896048", "0.6888119", "0.68695", "0.67798597", "0.67263675", "0.6590945", "0.6577641", "0.6565928", "0.65443707", "0.6540683", "0.6533314", "0.6533314", "0.65270466", "0.6500453", "0.648763", "0.647939", "0.64726925", "0.6470141", "0.6467698", "0.6460332", ...
0.6993857
0
The average MSLP in inches mercury. Null if not available.
def Eg6Q(YKHO) -> float: return YKHO.pressure['avgIN']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZnOo(YKHO) -> float:\n return YKHO.wind['avgMPH']", "def G0dt(YKHO) -> float:\n return YKHO.wind['avgKPH']", "def JBMS(YKHO):\n return 0.072", "def _77f(YKHO) -> float:\n return YKHO.wind['avgKTS']", "def JBMS(YKHO):\n return 0.06748", "def DH4Z(YKHO):\n return YKHO.sum_of_temps / Y...
[ "0.7427372", "0.719483", "0.6959096", "0.6911901", "0.68294585", "0.68089044", "0.6778553", "0.6629398", "0.6624813", "0.6608558", "0.66019094", "0.65759", "0.6567989", "0.6560617", "0.6517432", "0.64997685", "0.64806163", "0.6467898", "0.6463199", "0.6452427", "0.6444814", ...
0.666976
7
The total number of observations that included pressure information.
def UHFx(YKHO) -> int: return YKHO.pressure['count']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BFSp(YKHO):\n return YKHO.data.sum()", "def UHFx(YKHO):\n UHFx = 0\n for WKvO in YKHO.particles:\n UHFx += len(YKHO.particles[WKvO])\n return UHFx", "def Tsp0(YKHO):\n return sum([BWXx * 1.0 for BWXx in YKHO.getCounts().values()])", "def UHFx(YKHO):\n return YKHO.total", "def U...
[ "0.75871664", "0.74455595", "0.7384205", "0.7275122", "0.7248963", "0.7221268", "0.7204633", "0.7199921", "0.7146464", "0.71421087", "0.71266526", "0.7118432", "0.71124715", "0.7093798", "0.70926726", "0.7035744", "0.702558", "0.7024839", "0.7020724", "0.70091563", "0.7001343...
0.8096005
0
Remove and return the first Element.
def BEuN(YKHO): return YKHO._queue.popleft()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hxuq(YKHO):\n if YKHO.size == 0:\n return None\n elif YKHO.size == 1:\n YKHO.last = None\n LihS = YKHO.first\n YKHO.first = YKHO.first.next\n YKHO.size -= 1\n return LihS.data", "def Hxuq(YKHO):\n if YKHO.is_empty():\n raise ValueError('List is empty')\n Q6kx = YK...
[ "0.847987", "0.78595066", "0.7726919", "0.76563346", "0.7634623", "0.7562681", "0.75500095", "0.75133324", "0.74662393", "0.74337375", "0.7397196", "0.736089", "0.7357843", "0.7350613", "0.7342673", "0.73394775", "0.7324821", "0.7321266", "0.7305241", "0.7305241", "0.7304107"...
0.0
-1
A query string fragment that propagates all active facet settings.
def R7S5(YKHO): return '&'.join(('='.join(WKvO) for WKvO in sorted(YKHO.items())))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sYT1(YKHO) -> str:\n R7S5 = super().get_query_string()\n if YKHO.auth_qs_param_name:\n R7S5 = f'{YKHO.auth_qs_param_name}={YKHO.query_string}'\n return R7S5", "def R7S5(YKHO):\n if YKHO.pass_query_string:\n return YKHO.request.META['QUERY_STRING']\n return ''", "def sYT1(YKHO, ...
[ "0.6204256", "0.5934127", "0.58687294", "0.5846593", "0.57992536", "0.57004255", "0.56871647", "0.55264455", "0.5522839", "0.5520733", "0.55101806", "0.5496452", "0.54638195", "0.53975827", "0.53965837", "0.53939545", "0.5298801", "0.5289433", "0.52725756", "0.52604103", "0.5...
0.6031829
1
Load a faceting object from an HTTP request. Subclasses of FacetsWithEntryPoint can override `from_request`, but call this method to load the EntryPoint and actually instantiate the faceting class.
def j36e(Emd4, SpNP, r1C6, _cyv, T8uQ, MD2_=None, **YXyZ): p8X7 = r1C6(fYEx.ENTRY_POINT_FACET_GROUP_NAME, None) k5x_ = list(Emd4.selectable_entrypoints(SpNP)) b7JE = Emd4.load_entrypoint(p8X7, k5x_, default=MD2_) if isinstance(b7JE, RD0c): return b7JE b7JE, eoCS = b7JE R17X = r1C6(fYEx.M...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cXCF(Emd4, xuBC, SpNP, r1C6, _cyv, T8uQ, MD2_=None, **YXyZ):\n return Emd4._from_request(SpNP, r1C6, _cyv, T8uQ, MD2_, **YXyZ)", "def FIMM(YKHO, QePW=None, CDCX=None, CLz1=None):\n if QePW:\n YKHO.slug = QePW.GET.get('facet_slug', '')\n YKHO.value = QePW.GET.get('facet_value', '')\n if...
[ "0.6576029", "0.49753675", "0.49635565", "0.49267605", "0.4917264", "0.4893513", "0.48235324", "0.47366396", "0.472183", "0.4676837", "0.46724355", "0.4638498", "0.46014667", "0.4562077", "0.45550796", "0.45393446", "0.4512366", "0.45089266", "0.4499876", "0.44998497", "0.448...
0.69423175
0
Convert a value for the MAX_CACHE_AGE_NAME parameter to a value that CachedFeed will understand.
def cda_(Emd4, BWXx): if BWXx is None: return BWXx try: BWXx = int(BWXx) except ValueError as e: BWXx = None if BWXx == 0: BWXx = Ke1_.IGNORE_CACHE else: BWXx = None return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R17X(YKHO, type):\n return YKHO.MAX_CACHE_AGE", "def e0AN(Wave):\n C6wh = Wave * 60 * 60\n return 'max-age=' + str(C6wh)", "def uqEL(YKHO):\n return YKHO._max_age", "def Vfmd(qIxc):\n if not qIxc.IsSpecified('maximum_lifetime'):\n return None\n return WXkz.FormatDurationForJson(W...
[ "0.6418324", "0.64128864", "0.59846556", "0.5930524", "0.59118235", "0.58041286", "0.57741576", "0.5743833", "0.5723285", "0.5657395", "0.5604721", "0.5586087", "0.55819756", "0.5557421", "0.5540044", "0.5540044", "0.5540044", "0.5540044", "0.551996", "0.55028397", "0.550169"...
0.7113612
0
Which facets are enabled for the given facet group? You can override this to forcible enable or disable facets that might not be enabled in library configuration, but you can't make up totally new facets.
def Ug6A(Emd4, GPtr, ml0I): yWbd = GPtr.enabled_facets(ml0I) WmM4 = Emd4.default_facet(GPtr, ml0I) if WmM4 not in yWbd: yWbd = [WmM4] + yWbd return yWbd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ug6A(Emd4, GPtr, ml0I):\n Iyvg = GPtr.enabled_facets(ml0I)\n if ml0I != Emd4.ORDER_FACET_GROUP_NAME:\n return Iyvg\n return [T4Wy for T4Wy in Iyvg if T4Wy in Emd4.ORDER_FACET_TO_DATABASE_FIELD]", "def k1xc(YKHO):\n if YKHO.facets_enabled_at_init:\n fY0Y = [YKHO.ORDER_FACET_GROUP_NAM...
[ "0.7070128", "0.6780878", "0.6670508", "0.6613223", "0.63543403", "0.62643635", "0.60782415", "0.60325855", "0.5965339", "0.56843626", "0.5653707", "0.5629078", "0.5613713", "0.5608093", "0.5541754", "0.54800814", "0.5430225", "0.5272284", "0.52710783", "0.5257719", "0.522740...
0.73522866
0
The default value for the given facet group. The default value must be one of the values returned by available_facets() above.
def VU6F(Emd4, GPtr, ml0I): return GPtr.default_facet(ml0I)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VU6F(Emd4, PrmE, IXKo):\n if IXKo == Emd4.COLLECTION_FACET_GROUP_NAME:\n return Emd4.COLLECTION_FULL\n if IXKo == Emd4.AVAILABILITY_FACET_GROUP_NAME:\n return Emd4.AVAILABLE_ALL\n if IXKo == Emd4.ORDER_FACET_GROUP_NAME:\n return Emd4.ORDER_BY_RELEVANCE\n return None", "def YN...
[ "0.7453421", "0.6844852", "0.6772553", "0.67216814", "0.67182386", "0.65806025", "0.65738183", "0.6554571", "0.6554571", "0.6370243", "0.6140121", "0.6131667", "0.6120312", "0.60461444", "0.601704", "0.60019153", "0.59328604", "0.5929603", "0.59102017", "0.58900934", "0.58832...
0.78681064
0
Instantiate a Pagination object from a Flask request.
def cXCF(Emd4, yxfR, YA0A=None): YA0A = YA0A or Emd4.DEFAULT_SIZE zNig = Emd4.size_from_request(yxfR, YA0A) if isinstance(zNig, RD0c): return zNig vgXP = Emd4._int_from_request('after', yxfR, lambda vgXP: bGrB('Invalid offset: %(offset)s', offset=vgXP), 0) if isinstance(vgXP, RD0c): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DbxN(qv1X, C3ST):\n qoqK = qv1X.get_param('page[limit]') or auGi.config.PAGE_LIMIT\n vgXP = qv1X.get_param('page[offset]') or 0\n try:\n return NIbP(qoqK, vgXP)\n except ValueError:\n raise osbX(**{'detail': \"The page['limit'] & page['offset'] query params may only be specified once ...
[ "0.78414834", "0.64086866", "0.64014596", "0.6341359", "0.6324202", "0.63045603", "0.6263019", "0.6195838", "0.6171408", "0.6167567", "0.6138452", "0.60883766", "0.60853636", "0.6040943", "0.60253114", "0.59306276", "0.5884129", "0.5832538", "0.5819157", "0.5807254", "0.57901...
0.0
-1
Find the Library object associated with this WorkList.
def B9mB(YKHO, xyue): return YEPB.by_id(xyue, YKHO.library_id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SKiX(YKHO, yHil):\n if yHil in YKHO._holdings:\n return YKHO._holdings[yHil]\n else:\n return None", "def abaO(YKHO, Awhg, UL9z):\n try:\n return Awhg.libraries.get(id=UL9z)\n except YEPB.DoesNotExist:\n raise Bx6I.NotFound(detail=f\"organisation doesn't have a library...
[ "0.64068073", "0.62779033", "0.6273025", "0.61941016", "0.60166115", "0.59352374", "0.5780877", "0.57729745", "0.5760442", "0.5721387", "0.5690483", "0.56298333", "0.5572517", "0.5559774", "0.5552785", "0.55172104", "0.5492816", "0.54888135", "0.54803526", "0.5478285", "0.541...
0.69972813
0
A string key that uniquely describes this WorkList within its Library. This is used when caching feeds for this WorkList. For Lanes, the lane_id is used instead.
def mZfZ(YKHO): return '%s-%s-%s' % (YKHO.display_name, YKHO.language_key, YKHO.audience_key)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ibDM(YKHO):\n return '%s:%s' % (YKHO.__class__.__name__, YKHO.id)", "def H5ew(YKHO):\n return YTAu(YKHO.name)", "def irHL(AbYv=qJxB):\n return rtVo.Key('BeerList', AbYv)", "def id(YKHO):\n return YKHO.key.string_id()", "def P1lZ(YKHO) -> str:\n return YKHO._key_id", "def id(YKHO):\n ...
[ "0.6429688", "0.63333625", "0.63119763", "0.6297606", "0.62848383", "0.619555", "0.6161599", "0.6156857", "0.6103543", "0.6103543", "0.6103543", "0.6103543", "0.60774946", "0.6074603", "0.6074603", "0.6032652", "0.60313535", "0.600598", "0.5994752", "0.59615165", "0.59585613"...
0.62447935
5
Convert a list of lists of Hit objects into a list of lists of Work objects.
def X_88(YKHO, xyue, EBAV, E3Ky=None): from .external_search import Filter, WorkSearchResult SGpT = None Yy_2 = set() for frAc in EBAV: for Aofo in frAc: Yy_2.add(Aofo.work_id) if SGpT is None: SGpT = any((WKvO in Aofo for WKvO in Filter.KNOWN_SCRIPT_FIELD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jn4o(YKHO, i7IT: HitID, olN2: Mapping[HitID, DBHit], A9Kp: Mapping[Tuple[str, HitID], MassShift], Sqrl: Mapping[HitID, List[str]]) -> qz4K:\n return (olN2[i7IT], [(KCHu, A9Kp[KCHu, i7IT]) for KCHu in Sqrl[i7IT]])", "def qK5G(yht1):\n if not yht1:\n return []\n return oLdq.map(yOPH.create_from...
[ "0.5438235", "0.54316175", "0.5431026", "0.5365835", "0.53442645", "0.5172303", "0.51703614", "0.5168682", "0.5069165", "0.50410753", "0.50398433", "0.5036602", "0.5031369", "0.501071", "0.5007589", "0.49932966", "0.49430355", "0.493543", "0.49347317", "0.49274743", "0.491284...
0.48940504
21
Returns the stochastic ID list. This method is used to check that same stochastic nodes are not direct parents of a node several times. It is only valid if there are intermediate stochastic nodes.
def Gk0G(YKHO): return []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzLY(YKHO, Sn9t: str, FJhP: str) -> x1iM[str]:\n pass", "def pMwj(Q6kx) -> list:\n tpAv = []\n while Q6kx.parent:\n tpAv.insert(0, Q6kx.id)\n Q6kx = Q6kx.parent\n tpAv.insert(0, Q6kx.id)\n return tpAv", "def Ym5H(YKHO):\n return YKHO._parent_ids", "def Jozi(YKHO):\n XP5...
[ "0.6126516", "0.59792703", "0.58789897", "0.58725566", "0.5850558", "0.58340085", "0.57909924", "0.57424253", "0.5736512", "0.573125", "0.5719783", "0.57175", "0.5710196", "0.5707831", "0.5704356", "0.57026494", "0.57009596", "0.5690528", "0.56896514", "0.5647306", "0.5643467...
0.5248199
98
initializels the GUI creates the reactor and empty dictionary for channel widgets to be stored for iteration. also grabs chan info from multiplexer_config
def FIMM(YKHO, PPGD, _AKB=None): super(bvtG, YKHO).__init__() YKHO.password = Hy7s.environ['LABRADPASSWORD'] YKHO.setSizePolicy(CsJA.QSizePolicy.Minimum, CsJA.QSizePolicy.Fixed) YKHO.reactor = PPGD YKHO.name = GGmw.gethostname() + ' Bristol Client' YKHO.d = {} YKHO.connect() YKHO._check_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super(rirZ, YKHO).__init__()\n YKHO.initConfiguration()\n YKHO.initUI()", "def DmqA(YKHO):\n GPtr = YKHO._controller.get_settings()\n if GPtr:\n pass\n else:\n YKHO._ui.typeComboBox.addItem('Select a device type')\n for pPTc in sorted(uwaB.USB_MUX_TYPES, k...
[ "0.6842058", "0.66080874", "0.65772927", "0.65546817", "0.6515637", "0.6507859", "0.6477854", "0.6474655", "0.6468663", "0.64672315", "0.641764", "0.6397174", "0.6386969", "0.6355627", "0.63536423", "0.6315148", "0.6300708", "0.629637", "0.6296189", "0.6289516", "0.62755716",...
0.6091748
52
Find a ModelVersion on the cluster by model name and a version.
def neBz(hKn5: Cluster, mWFP: str, DpZH: int) -> 'ModelVersion': _hkX = hKn5.request('GET', f'{XGYH._BASE_URL}/version/{mWFP}/{DpZH}') xGJy(_hkX, f'Failed to find model_version for name={mWFP}, version={DpZH}. {_hkX.status_code} {_hkX.text}') return XGYH._from_json(hKn5, _hkX.json())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ggdo(hKn5: Cluster, id: int) -> 'ModelVersion':\n _hkX = hKn5.request('GET', f'{XGYH._BASE_URL}/version')\n xGJy(_hkX, f'Failed to retrieve model_version by id={id}. {_hkX.status_code} {_hkX.text}')\n for YUMq in _hkX.json():\n if YUMq['id'] == id:\n return XGYH._from_json(hKn5, YUMq...
[ "0.7242315", "0.7189283", "0.6909536", "0.6894766", "0.66563165", "0.664617", "0.65672994", "0.6448155", "0.642367", "0.64011115", "0.63390505", "0.6312439", "0.62451327", "0.6101993", "0.6082852", "0.596725", "0.5938324", "0.59071463", "0.5884144", "0.5848596", "0.5806117", ...
0.85484993
0
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month sve5 = jQ3Z.groupby(['month'])['month'].count().idxmax() print('The most common month is {}'.form...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.79996175", "0.7920857", "0.7891767", "0.78612196", "0.785926", "0.7838814", "0.779974", "0.77848285", "0.7735119", "0.7723049", "0.771342", "0.7708436", "0.770453", "0.77017164", "0.7689714", "0.7685842", "0.7680146", "0.76788265", "0.76721054", "0.7661351", "0.7660023", ...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() _8rG = jQ3Z['Start Station'].mode()[0] print('The Most Popular Start Stations is:\n {}'.format(_8rG)) oFx8 = jQ3Z['End Station'].mode()[0] print('The Most Popular End Stations is:\n {}...
{ "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 v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['End Time'] = rLdf.to_datetime(jQ3Z['End Time']) jQ3Z['Travel Time'] = jQ3Z['End Time'] - jQ3Z['Start Time'] UGNE = jQ3Z['Travel Time'].sum() print('The...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.0
-1
Get the name of the variable.
def wGWt(*qIxc: str) -> str: return '_'.join(qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RZu0(YKHO):\n return YKHO.variable", "def XuY2(YKHO):\n return YKHO._var_name", "def W0tD(YKHO):\n return YKHO.variable", "def RZu0(YRbF):\n KCHu = CaG2.get_variable(YRbF)\n mWFP = KCHu.name.decode('utf8')\n return mWFP", "def Es0b(YKHO) -> str:\n return YKHO._variable", "def Es0...
[ "0.87322676", "0.84474844", "0.83742875", "0.81532454", "0.7919192", "0.7859037", "0.7787167", "0.7693568", "0.76870775", "0.75691926", "0.7499404", "0.74651", "0.74625456", "0.7434264", "0.74322814", "0.74114555", "0.7408001", "0.7327955", "0.7326865", "0.72895736", "0.72866...
0.0
-1
Return a version of this context with admin flag set.
def MRKc(YKHO, mK4e=None, f2Tp=False): QpfX = jth9.copy(YKHO) QpfX.is_admin = True if 'admin' not in QpfX.roles: QpfX.roles.append('admin') if mK4e is not None: QpfX.read_deleted = mK4e return QpfX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rdLF(gaZx=False):\n QpfX = K1Ja(None, project=None, is_admin=True, show_deleted=gaZx, overwrite=False)\n return QpfX", "def dp9S(YKHO):\n return YKHO._admin", "def dp9S(YKHO):\n return YKHO._admin", "def zy8Y(gaZx=False, tvN0=False):\n QpfX = K1Ja(user_id=None, project=None, is_admin=True,...
[ "0.768672", "0.7685361", "0.76731634", "0.7217049", "0.7091192", "0.7048387", "0.7003764", "0.69737977", "0.69119495", "0.6684111", "0.6684111", "0.6684111", "0.6684111", "0.6684111", "0.6642681", "0.6597024", "0.6579088", "0.6511053", "0.65077657", "0.6490477", "0.6474092", ...
0.6079186
57
Raise exception.NotAuthorized() if context is not a user or an admin context.
def bJlZ(bp_0): if not bp_0.is_admin and (not YNIk(bp_0)): raise AJ5d.NotAuthorized()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def l4un():\n if not c5ow.is_admin:\n eTsH(403)", "def l4un():\n if not c5ow.username == 'admin':\n eTsH(403)", "def nBAk(QpfX, uJjO):\n if YNIk(QpfX):\n i...
[ "0.70267296", "0.70267296", "0.70267296", "0.68885154", "0.6794679", "0.6788232", "0.6786972", "0.6757628", "0.67086923", "0.67066026", "0.6611188", "0.66108996", "0.65825737", "0.6560845", "0.653599", "0.6493688", "0.6478433", "0.6473751", "0.64504546", "0.643486", "0.637965...
0.82097733
0
Age of object since successful verification.
def DJSN(YKHO): assert YKHO._init_timestamp return YKHO._init_timestamp - ITS7.time()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N_N1(YKHO):\n return (YKHO.created_on - qcWV.datetime(1970, 1, 1)).total_seconds()", "def N_N1(YKHO):\n return (YKHO.created_on - qcWV.datetime(1970, 1, 1)).total_seconds()", "def N_N1(YKHO):\n return (YKHO.created_on - qcWV.datetime(1970, 1, 1)).total_seconds()", "def ZJe_(YKHO):\n return IT...
[ "0.78759503", "0.78610015", "0.78610015", "0.77586836", "0.76795113", "0.767485", "0.76680106", "0.7646147", "0.76189727", "0.75663644", "0.7553716", "0.75438386", "0.7456102", "0.74168414", "0.73979056", "0.739183", "0.73388004", "0.7331997", "0.73241377", "0.73139066", "0.7...
0.79779106
0
Stop listening for events
def JCyR(YKHO): YKHO.sensor.stop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JCyR(YKHO):\n YKHO.__listening = False", "def JCyR(YKHO):\n YKHO.__listening = False", "def JCyR(YKHO):\n YKHO.event.clear()", "def kKEt(YKHO):\n for finE in YKHO._event_subscribers:\n finE.deactivate()", "def kKEt(YKHO):\n for finE in YKHO._event_subscribers:\n finE.deacti...
[ "0.8059267", "0.8059267", "0.7860657", "0.78271466", "0.78271466", "0.78158724", "0.78125954", "0.78081155", "0.7737051", "0.7578901", "0.75685465", "0.753536", "0.74641", "0.7458621", "0.7424062", "0.74006253", "0.739947", "0.7352882", "0.72950286", "0.72950286", "0.728245",...
0.0
-1
Prints five rows from the filtered DataFrame based on the return value from 'get_fivechoice()' function. This function loops until the returned choice from the 'get_fivechoice()' function is False.
def PKnJ(jQ3Z): YRbF = 0 Acvy = True while Acvy == True: Acvy = FrIm() if Acvy == True: for YRbF in range(YRbF, YRbF + 5): print('-' * 40) print(jQ3Z.iloc[YRbF]) print('-' * 40) YRbF += 1 elif Acvy == False: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xliw(jQ3Z):\n UHFx = 0\n yKcO = 0\n Os4s = 5\n while True:\n if UHFx == 0:\n GKcZ = input('\\nWould you like to see 5 lines of the raw data based on the given filters? Please enter Yes or No.\\n').lower()\n if GKcZ not in ('yes', 'no'):\n print('Please en...
[ "0.75615734", "0.7553429", "0.7229187", "0.7092052", "0.7022064", "0.690402", "0.6859119", "0.685789", "0.6847726", "0.68449944", "0.68433094", "0.68429524", "0.68385756", "0.6758218", "0.67449373", "0.6724645", "0.67206085", "0.6701984", "0.6682562", "0.66555405", "0.6652728...
0.7398268
2
Asks user to specify if they would like to see five lines of raw data from filtered DataFrame. This function loops until the input by the user is verified to exist in the list of allowed inputs. The input is then used to set the return value of True or False.
def FrIm(): rtth = False while rtth == False: iWRl = ['yes', 'no'] ogAa = input('Would you like to see five lines of raw data? Yes or No?\n').lower() if ogAa in iWRl: rtth = True if ogAa == 'yes': print('You have selected: Yes') Dbu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xliw(jQ3Z):\n UHFx = 0\n yKcO = 0\n Os4s = 5\n while True:\n if UHFx == 0:\n GKcZ = input('\\nWould you like to see 5 lines of the raw data based on the given filters? Please enter Yes or No.\\n').lower()\n if GKcZ not in ('yes', 'no'):\n print('Please en...
[ "0.77417004", "0.7711262", "0.7402927", "0.72947794", "0.724826", "0.7146994", "0.7135379", "0.71059024", "0.70991194", "0.7074695", "0.70617443", "0.70276767", "0.7017831", "0.70177263", "0.6960857", "0.6951736", "0.6932685", "0.69123137", "0.69093156", "0.68945926", "0.6869...
0.5722516
81
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() if jQ3Z['Month'].value_counts().count() != 1: XYie = jQ3Z['Month'].mode()[0] XMbm = jQ3Z['Month'][jQ3Z['Month'] == XYie].count() print('The most common month is: {}. Count: {}'.format(XYi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.8001135", "0.7922667", "0.7892501", "0.786295", "0.7860047", "0.7840831", "0.7801381", "0.7785867", "0.7736821", "0.77246106", "0.77151954", "0.7710127", "0.7705659", "0.77033156", "0.7691183", "0.7687095", "0.7681752", "0.7680381", "0.76739514", "0.7663132", "0.76616323",...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() bTuL = jQ3Z['Start Station'].mode()[0] lUmU = jQ3Z['Start Station'][jQ3Z['Start Station'] == bTuL].count() print('The most commonly used start station is: {}. Count: {}'.format(bTuL, lUmU)) Nj0t = j...
{ "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 v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() bJiw = jQ3Z['Trip Duration'].sum() w5TG = jQ3Z['Trip Duration'].count() print('Total travel time is: {} seconds. Count: {}'.format(bJiw, w5TG)) RB_u = jQ3Z['Trip Duration'].mean() print('The mean travel time is: {} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.0
-1
Find the place at which aValue would normally be inserted into the array. If that place is already occupied by aValue, do nothing, and return undef. If the place does not exist (i.e., it is off the end of the array), add it to the end, otherwise replace the element at that point with aValue. It is assumed that the arra...
def gqzY(qw7D, _Po7, ODP9=0): MTtN = KxRG() gqRb = 0 try: ODP9 = ODP9 or len(qw7D) - 1 iV3I = 0 if len(qw7D) == 0 else qw7D[-1] if ODP9 == -1 or _Po7 > iV3I: qw7D.append(_Po7) return ODP9 + 1 if not isinstance(gqRb, int) or not isinstance(ODP9, int): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, wEf2):\n U5bT = False\n if wEf2 not in YKHO.locs:\n U5bT = True\n YKHO.locs[wEf2] = []\n YKHO.nums.append(wEf2)\n YKHO.locs[wEf2].append(len(YKHO.nums) - 1)\n YKHO.indices[len(YKHO.nums) - 1] = len(YKHO.locs[wEf2]) - 1\n return U5bT", "def JPHp(YKHO, wEf2):\n if ...
[ "0.60491204", "0.6044322", "0.59980506", "0.5952442", "0.5937165", "0.5934814", "0.5912391", "0.58958733", "0.5854816", "0.5828802", "0.5824271", "0.5798418", "0.5780252", "0.574549", "0.5718139", "0.5699259", "0.5693283", "0.56815803", "0.56671506", "0.56528336", "0.56121683...
0.67573875
0
Get client properties. This call sometimes replies in XML, because who cares about Accept headers right. So, we must take the reply in XML and convert it to JSON to maintain sanity.
def TAow(YKHO, zb3C): if isinstance(zb3C, int): RKD7.warning('deprecated: client_id support for int for backward compatibility only') zb3C = str(zb3C) pmON = 'Client/{}'.format(zb3C) Ylbp = YKHO.request('GET', pmON) if not Ylbp.json(): nPrm = zFDm.parse(Ylbp.text) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C9U5(YKHO):\n \"\"\" {\"nessus_type\":\"Nessus Home\",\"server_version\":\"6.9.3\",\"nessus_ui_build\":\"76\",\"nessus_ui_version\":\"6.9.3\",\"server_build\":\"M20076\"} \"\"\"\n pmON = YKHO.url + '/server/properties'\n geh0 = G4JS.get(pmON, verify=YKHO.sslVerify)\n if geh0.status_code == 200:\n ...
[ "0.69122356", "0.6847292", "0.6657372", "0.65886027", "0.6534864", "0.65162206", "0.6449914", "0.6381891", "0.6368956", "0.63387173", "0.630468", "0.63020945", "0.6243165", "0.62322515", "0.6063651", "0.6041605", "0.6030955", "0.60092795", "0.5968964", "0.5905328", "0.5905091...
0.75889874
0
Search for value x in the list. Return a reference to the first node with value x; return None if no such node is found.
def TgwQ(YKHO, WKvO): YKHO.temp = Msxl('a') YKHO.temp = YKHO.head Z9rn = -1 while YKHO.temp.next != None: YKHO.temp = YKHO.temp.next Z9rn = Z9rn + 1 if YKHO.temp.s == WKvO: return Z9rn return Z9rn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgwQ(YKHO, WKvO):\n XP5J = YKHO.head\n while XP5J:\n if WKvO == XP5J.val:\n return XP5J\n else:\n XP5J = XP5J.next\n return None", "def TgwQ(YKHO, WKvO):\n YRbF = YKHO.head\n while YRbF.next != None and YRbF.value != WKvO:\n YRbF = YRbF.next\n if Y...
[ "0.84561235", "0.77711785", "0.76319396", "0.74499273", "0.7428104", "0.74074924", "0.73932695", "0.73798645", "0.7375389", "0.7374737", "0.7320569", "0.7254815", "0.72004235", "0.7180821", "0.7145512", "0.71424156", "0.7111899", "0.7063707", "0.7039075", "0.69942987", "0.698...
0.6568709
38
Search for value x in the list. Return a reference to the first node with value x; return None if no such node is found.
def pxjm(YKHO, WKvO): YKHO.temp = Msxl('a') YKHO.temp = YKHO.head while YKHO.temp.next != None: if YKHO.temp.next.s == WKvO: return YKHO.temp YKHO.temp = YKHO.temp.next return YKHO.head
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgwQ(YKHO, WKvO):\n XP5J = YKHO.head\n while XP5J:\n if WKvO == XP5J.val:\n return XP5J\n else:\n XP5J = XP5J.next\n return None", "def TgwQ(YKHO, WKvO):\n YRbF = YKHO.head\n while YRbF.next != None and YRbF.value != WKvO:\n YRbF = YRbF.next\n if Y...
[ "0.8456459", "0.7771614", "0.7630854", "0.74512887", "0.7427475", "0.7407554", "0.73927665", "0.7379469", "0.7375802", "0.7374717", "0.7318691", "0.7254793", "0.7200016", "0.71804404", "0.71447134", "0.7141391", "0.71108276", "0.7063655", "0.703985", "0.69959486", "0.69863915...
0.6117552
84
Return the length (the number of elements) in the Linked List.
def len(YKHO): YKHO.temp = Msxl('a') YKHO.temp = YKHO.head.next YKHO.count = 0 while YKHO.temp != None: YKHO.count = YKHO.count + 1 YKHO.temp = YKHO.temp.next return YKHO.count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n return YKHO.size", "def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1\n while aCLL.pointer_next is not None:\n u54L += 1\n aCLL = aCLL.pointer_next\n return u54L", "def u54L(YKHO):\n exwG = 0\n AsC...
[ "0.8977313", "0.8801992", "0.87987375", "0.8722928", "0.8697579", "0.86482424", "0.86362255", "0.8628725", "0.8607765", "0.8601588", "0.857717", "0.8572906", "0.8564437", "0.85591525", "0.8554604", "0.8536527", "0.8510746", "0.8497875", "0.84952384", "0.846713", "0.8444672", ...
0.7936033
75
Function to plot grid with several examples of cloud images from train set.
def el5Y(TVTK=5, H2v2=2): Yw_3 = sorted(SC2F(sqLj + '*.jpg')) LZpg, FgGO = QrM1.subplots(H2v2, TVTK, figsize=(TVTK * 3, H2v2 * 3)) Vw6Y = Vw6Y = [oyIN.random.choice(range(0, len(Yw_3))) for YRbF in range(H2v2 * TVTK)] for Xn71 in range(0, H2v2 * TVTK): LNo8 = hnIv.open(Yw_3[Vw6Y[Xn71]]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U0xK(YKHO, Yw_3, leAC, ZXYK):\n if len(Yw_3.shape) == 4:\n KCHu, Fg_i, MKlR, yzQ0 = Yw_3.shape\n Yw_3 = Yw_3.view(KCHu, Fg_i, 1, MKlR, yzQ0)\n KCHu, Fg_i, Z9rn, MKlR, yzQ0 = Yw_3.shape\n if Fg_i > 10:\n Yw_3 = Yw_3[:, :10]\n Yw_3 = Yw_3.transpose(0, 1).contiguous()\n Yw_3 = ...
[ "0.723662", "0.70887613", "0.6998009", "0.6810374", "0.68058634", "0.6802214", "0.67902756", "0.66930586", "0.66408587", "0.6636045", "0.6632065", "0.66271985", "0.66177875", "0.6597993", "0.65794593", "0.65422964", "0.65235025", "0.6519602", "0.651575", "0.651575", "0.651575...
0.61785764
60
Show an index page.
def t7ng(): return "<html><body>This is the homepage. It's a good one.</body></html>"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EJFY():\n return oUsX(fOLk)", "def WqOD(YKHO, *qIxc):\n YKHO.print_head()\n YKHO.write_footer()", "def d6pt():\n return TvZl('index.html')", "def WqOD():\n return WsL5.render_template('index.html', **QpfX)", "def d6pt():\n return TvZl('index.html', short_url='')", "def d6pt():\n ...
[ "0.8860054", "0.7955538", "0.79429555", "0.7921236", "0.78184676", "0.7810441", "0.77827615", "0.77827615", "0.7755276", "0.77354825", "0.7716974", "0.77037185", "0.76709986", "0.76709986", "0.76709986", "0.76709986", "0.76709986", "0.76709986", "0.766807", "0.766807", "0.766...
0.0
-1
Show an application form page.
def FKcF(): """ grab name, salary, title information.""" return TvZl('application-form.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KbMd():\n return TvZl('application-form.html')", "def _UGW():\n return TvZl('application-form.html')", "def fmRQ():\n return TvZl('application-form.html')", "def SCWY():\n return TvZl('application-form.html')", "def fmRQ():\n return TvZl('application-form.html')", "def yi_d():\n ret...
[ "0.82705826", "0.7979929", "0.7716062", "0.7457326", "0.7426228", "0.7300446", "0.6990347", "0.6959954", "0.6914573", "0.6864433", "0.6749871", "0.671243", "0.671243", "0.661893", "0.6535686", "0.6521656", "0.64746964", "0.64279705", "0.6426042", "0.6407517", "0.639951", "0...
0.6826063
10
Check the estimator and set the base_estimator_ attribute.
def VNw3(YKHO): super(wjFt, YKHO)._validate_estimator(default=i4jW(max_depth=3))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VNw3(YKHO, WmM4=None):\n if not isinstance(YKHO.n_estimators, (mSrU.Integral, oyIN.integer)):\n raise ValueError('n_estimators must be an integer, got {0}.'.format(type(YKHO.n_estimators)))\n if YKHO.n_estimators <= 0:\n raise ValueError('n_estimators must be greater than zero, got {0}.'.fo...
[ "0.7602161", "0.74977183", "0.7252878", "0.71218354", "0.70504636", "0.69928014", "0.696425", "0.6881257", "0.6657893", "0.65871507", "0.6562409", "0.6343402", "0.6256808", "0.62079865", "0.62047637", "0.61758965", "0.6152037", "0.6142115", "0.6112648", "0.6091233", "0.607099...
0.6108461
19
Accepts a list of points, each with the same number of dimensions. (points can have more dimensions than 2) Returns a new point which is the center of all the points.
def eNJD(LTIa): WKvO = 0 LVAh = 0 for YRbF in range(len(LTIa)): WKvO += LTIa[YRbF][0] LVAh += LTIa[YRbF][1] WKvO /= len(LTIa) LVAh /= len(LTIa) return [WKvO, LVAh]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e6ux(LTIa):\n EZRN = [XP5J[0] for XP5J in LTIa]\n xKOr = [XP5J[1] for XP5J in LTIa]\n luey = len(LTIa)\n BicQ = sum(EZRN) / luey\n papj = sum(xKOr) / luey\n return [BicQ, papj]", "def bbfq(LTIa):\n XP5J = float(len(LTIa))\n WKvO, LVAh = zip(*LTIa)[:2]\n return (sum(WKvO) / XP5J, su...
[ "0.7371178", "0.73267186", "0.7274127", "0.7197869", "0.7076414", "0.69793254", "0.6957976", "0.68606406", "0.6756388", "0.6686276", "0.6677982", "0.6631482", "0.6602258", "0.6585013", "0.65209365", "0.65106326", "0.6479306", "0.64525265", "0.64382476", "0.64259654", "0.64224...
0.0
-1
Raise ValueError i no diffractometer is selected.
def Dztm(*qIxc, **B2fa): if nAxN is None: raise ValueError("No diffractometer selected. Call 'selectDiffractometer(diffr)' where 'diffr' is a diffractometer instance.")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dUDP():\n with trZe.raises(NotImplementedError):\n IXCZ.M(0).controlled_by(1)", "def WZdr(YKHO):\n BJKU = XW6u.Toplevel(YKHO)\n BJKU.title('Error: Bad Input!')\n YacF = \"Either a value isn't a number, or the minimum is greater than the maximum.\"\n cCpq = XW6u.Label(BJKU, text=YacF)\n ...
[ "0.60341424", "0.59934795", "0.5991322", "0.57932377", "0.57163644", "0.571567", "0.5624896", "0.5605768", "0.56047183", "0.55980617", "0.55980617", "0.55795693", "0.5565478", "0.55578226", "0.5548562", "0.5545165", "0.5541103", "0.5501112", "0.54992914", "0.5496379", "0.5492...
0.6976058
0
Format a number of bytes in a more readable unit.
def miEm(mLGw: int) -> str: mLGw = abs(mLGw) for PXGI in ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB']: if mLGw < 1024.0: return '{0:.1f} {1}'.format(mLGw, PXGI) mLGw /= 1024.0 return '{0:.1f} YiB'.format(mLGw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iTQC(mLGw):\n if mLGw > 1:\n w520 = min(int(RKD7(mLGw, 1024)), len(Nv3Z) - 1)\n VLzE = float(mLGw) / 1024 ** w520\n PXGI, Zjk2 = Nv3Z[w520]\n sI3h = '{:>5.%sf} {}' % Zjk2\n return sI3h.format(VLzE, PXGI)\n elif mLGw == 1:\n return '1 byte'\n else:\n ret...
[ "0.7753244", "0.7742851", "0.7685613", "0.7657495", "0.7627771", "0.7614255", "0.7560841", "0.7551863", "0.75308233", "0.7530286", "0.7509698", "0.7485188", "0.74737906", "0.7465395", "0.7465395", "0.7447633", "0.74123585", "0.7403819", "0.7401851", "0.7382766", "0.7366935", ...
0.7576851
6
return the path that join the project root dir
def qo5Z(*pmON): Aofo = jNha for RMwT in pmON: Aofo = gzes(Aofo, RMwT) return WQbV(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L59w() -> GkAb:\n return GkAb(Hy7s.path.dirname(xAKo)).parent", "def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)", "def phdL():\n return GkAb(xAKo).parent.parent.__str__()", "def L59w():\n return Hy7s.path.dirname(Hy7s.path.dirname(xAKo))", "def mSqg(YKHO):\n return YKHO._project_dir", ...
[ "0.82606363", "0.82601345", "0.81441903", "0.8137769", "0.80951095", "0.80798835", "0.80798835", "0.80798835", "0.80798835", "0.80736816", "0.80619437", "0.80619437", "0.8043118", "0.80393106", "0.8021865", "0.8004982", "0.8004982", "0.79801404", "0.7979475", "0.7954492", "0....
0.0
-1
Return the intersection of two sorted arrays.
def ZoiH(jzdc, Fg_i): oUw_, ZWbb = (iter(jzdc), iter(Fg_i)) wNuL, Mlb1 = (next(oUw_, None), next(ZWbb, None)) Ylbp = [] while wNuL and Mlb1: if wNuL == Mlb1: if not Ylbp or Ylbp[-1] < wNuL: Ylbp.append(wNuL) wNuL = next(oUw_, None) Mlb1 = next(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FqcD(jzdc, Fg_i):\n h16r = 0\n YV7q = 0\n khtY = []\n while h16r < len(jzdc) and YV7q < len(Fg_i):\n if jzdc[h16r] < Fg_i[YV7q]:\n h16r += 1\n elif jzdc[h16r] > Fg_i[YV7q]:\n YV7q += 1\n else:\n khtY.append(jzdc[h16r])\n h16r += 1\n ...
[ "0.8449999", "0.7442474", "0.73737526", "0.7267061", "0.72513014", "0.7217889", "0.7205044", "0.7203523", "0.7198316", "0.7190624", "0.7186605", "0.71851826", "0.71608293", "0.7156813", "0.71515715", "0.7143541", "0.7136364", "0.7136364", "0.7123367", "0.71048725", "0.7091986...
0.81649387
1
Locate a user in the userdb given the user's _id.
def dcmq(YKHO, ZcVd): if not isinstance(ZcVd, aA6B): ZcVd = aA6B(ZcVd) return YKHO.get_user_by_attr('_id', ZcVd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ggdo(YKHO, uJjO):\n YKHO.cur.execute('SELECT * FROM users WHERE id=%s', (uJjO,))\n CBIr = YKHO.fetch_one()\n YKHO.save()\n if CBIr:\n return YKHO.mapping(CBIr)\n return None", "def UH_v(YKHO, uJjO):\n xDcj = f'SELECT * FROM users WHERE user_id = {uJjO}'\n DpUl = YKHO.conn.cursor()...
[ "0.76685345", "0.7563272", "0.75528336", "0.75528336", "0.73274827", "0.7254424", "0.7199239", "0.7189784", "0.7178711", "0.71427315", "0.712022", "0.7101013", "0.7085132", "0.7085132", "0.7072895", "0.706379", "0.7059209", "0.7059209", "0.7048408", "0.70321256", "0.70321256"...
0.0
-1
This method sets the job optimizer chain, in principle only needed by one of the optimizers.
def UFaI(YKHO, oCfW, BWXx): YKHO.log.verbose('self.jobDB.setOptimizerChain(%s,%s)' % (oCfW, BWXx)) if not YKHO.am_Enabled(): return Qn5X() return YKHO.jobDB.setOptimizerChain(oCfW, BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qesp(YKHO, K0do, *qIxc, **B2fa):\n YKHO.optimizer = K0do\n YKHO.opt_args = qIxc\n YKHO.opt_kwargs = B2fa\n YKHO._print_debug(f'Master set optimizer={YKHO.optimizer}, args={qIxc}, kwargs={B2fa}', 3)\n return YKHO", "def LcDV(YKHO, oCfW):\n Aofo = YKHO.logDB.addLoggingRecord(oCfW, status=YKHO...
[ "0.6988691", "0.66222805", "0.6556912", "0.64915144", "0.6392801", "0.6361319", "0.63231397", "0.63153154", "0.6286199", "0.6195128", "0.6153549", "0.61275136", "0.6054132", "0.605118", "0.60357916", "0.6034612", "0.6030208", "0.602353", "0.59293544", "0.5897668", "0.58943254...
0.7698946
0
Convert pixel coordinate system to camera coordinate system
def dCTY(w1Ip, usx6, WfCS, Y7KK, DDOk): KBhi = oyIN.empty(shape=(3, w1Ip.shape[1])) KBhi[0, :] = (w1Ip[0, :] - WfCS / 2) * Y7KK KBhi[1, :] = -(w1Ip[1, :] - usx6 / 2) * Y7KK KBhi[2, :] = -DDOk return KBhi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPUI(WKvO, LVAh):\n lZ9I = oyIN.squeeze(nM4v)\n Zbvg = z424.dot(oyIN.array([WKvO, LVAh, 0]).T) + lZ9I\n Xf84 = U1HM.dot(Zbvg)\n return [Xf84[0] / Xf84[2], Xf84[1] / Xf84[2]]", "def f9N9(YKHO, EcVT):\n raise NotImplementedError", "def hdpW(YKHO, WKvO, LVAh=None, epBp=None):\n if LVAh is No...
[ "0.71816695", "0.71245146", "0.6934856", "0.69131774", "0.68953085", "0.68643636", "0.681332", "0.68113637", "0.68040943", "0.66936964", "0.6634355", "0.6629823", "0.6600557", "0.65958905", "0.65861166", "0.6560871", "0.6543794", "0.6523068", "0.64631414", "0.6456501", "0.642...
0.6118917
57
Constuct the cost function op for the negative sampling cost
def sSN_(YKHO): wjQX, i_Or = YKHO.network pdhd = ZylS.expand_dims(YKHO.I, axis=2) if YKHO.normalize: bMhd = ZylS.nn.l2_normalize(YKHO.speaker_vectors, 1) else: bMhd = YKHO.speaker_vectors FdIy = ZylS.gather_nd(bMhd, pdhd) xdCg = ZylS.expand_dims(FdIy, 1) xdCg = ZylS.expand_di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rf4O(YKHO):\n return 1 - YKHO.pred[YKHO.label == 1].mean()", "def jBmV(YKHO) -> paog:\n return 0.0", "def Rf4O(YKHO):\n return 1 - YKHO.pred[YKHO.label == 1].mean()", "def FhXK(JZXy, pan_):\n return 0 if JZXy == pan_ else 2", "def tbib(g4y1, **B2fa):\n if QpfX.executing_eagerly():\n ...
[ "0.66197586", "0.6613583", "0.6588162", "0.64651126", "0.64341754", "0.6414846", "0.63897526", "0.63862944", "0.6376251", "0.63010377", "0.6290026", "0.628918", "0.627222", "0.62384176", "0.6234972", "0.62211007", "0.61923736", "0.6190605", "0.61781776", "0.6171436", "0.61291...
0.0
-1
Load the model from the specified path.
def tyeH(YKHO, pmON): YKHO.saver.restore(YKHO.sess, pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)", "def O5RJ(YKHO, uqvc: str):\n pass", "def O5RJ(Emd4, uqvc):\n pass", "def J2u4(YKHO, pmON):\n YKHO._model = uyMl(pmON)\n print('Loaded model from file.')", "def uyMl(YKHO, pmON):\n pmON = oAb3.Path(pmON)\n with pmON.open('rb') as eHNT:\...
[ "0.91083056", "0.8781142", "0.8733402", "0.86394334", "0.8573414", "0.85530025", "0.8400791", "0.8396914", "0.8391477", "0.838522", "0.8326086", "0.8325666", "0.83153903", "0.83072764", "0.824646", "0.8200375", "0.8164235", "0.81522447", "0.81324804", "0.813075", "0.8119758",...
0.0
-1
function that returns the transpose of a 2D matrix
def H2DR(SppC): t2_1 = [[SppC[r845][YRbF] for r845 in range(len(SppC))] for YRbF in range(len(SppC[0]))] return t2_1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l7uB(vb7U):\n return vb7U.T", "def l7uB(jzdc):\n return kp_e(jzdc, -1, -2)", "def l7uB(SppC):\n f2_B = [[SppC[r845][YRbF] for r845 in range(len(SppC))] for YRbF in range(len(SppC[0]))]\n return f2_B", "def H2DR(r8hN):\n if not r8hN:\n vb7U = []\n return vb7U\n else:\n ...
[ "0.8512167", "0.81110936", "0.7978351", "0.7884137", "0.7837015", "0.78162664", "0.7812442", "0.78022355", "0.78022355", "0.78005683", "0.7800547", "0.7800547", "0.7783086", "0.7783086", "0.7753904", "0.7729726", "0.7695038", "0.7683637", "0.76756227", "0.76635873", "0.76605"...
0.767649
18
Return the remote backends available for this provider.
def rsZu(YKHO, vYBr: Optional[float]=None) -> cuzp[str, Ap9Y]: U5bT = U8Lr() PINB = YKHO._api_client.list_backends(timeout=vYBr) for asFK in PINB: if not isinstance(asFK, dict): bo34.warning('An error occurred when retrieving backend information. Some backends might not be available.') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tHu7(YKHO):\n return list(YKHO.backends.values())", "def aJc6(YKHO):\n return YKHO._request('GET', 'rest/remoteprovider/list')", "def bAeW():\n return gCuF.BACKENDS.keys()", "def p7fD(YKHO) -> cuzp[str, Ap9Y]:\n if not YKHO.__backends:\n YKHO.__backends = YKHO._discover_remote_backends...
[ "0.7886951", "0.7873729", "0.76858306", "0.7658354", "0.7572442", "0.7541198", "0.7435578", "0.7267024", "0.7095429", "0.70902425", "0.70902425", "0.69712406", "0.69321454", "0.6918786", "0.68260753", "0.68226796", "0.6819485", "0.6722797", "0.66984737", "0.6673485", "0.66177...
0.6858978
14
Return the specified service.
def zVa7(YKHO, mWFP: str) -> ImMB: if mWFP not in YKHO._services: raise kSg0(f'Unknown service {mWFP} specified.') if YKHO._services[mWFP] is None: raise TDml('You are not authorized to use this service.') return YKHO._services[mWFP]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zVa7(YKHO):\n return YKHO.project.get_service(YKHO.name)", "def TbFb(YKHO, zVa7: Union[str, BaseService]):\n if not isinstance(zVa7, (str, bugO)):\n raise ValueError('given parameter not string or service.')\n if not isinstance(zVa7, bugO):\n zVa7 = bugO(servicename=zVa7, implements=['...
[ "0.7987749", "0.78955203", "0.7851495", "0.7850263", "0.7846715", "0.7846715", "0.7846715", "0.7846715", "0.7846715", "0.7846715", "0.7840295", "0.7796704", "0.77938235", "0.7760063", "0.7760063", "0.77353233", "0.7720418", "0.77002996", "0.7688863", "0.7686264", "0.7686264",...
0.69764805
72
Return the runtime service.
def Qvn0(YKHO) -> ZIYi: if YKHO._runtime: return YKHO._runtime else: raise TDml('You are not authorized to use the runtime service.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVwF(YKHO):\n QWcs = '{env}.service'.format(env=YKHO.env)\n dGb5 = NMoC(YKHO.deploy_json, QWcs, False)\n return dGb5", "def zVa7(YKHO):\n return YKHO.project.get_service(YKHO.name)", "def Qvn0(YKHO) -> 'Runtime':\n return HEOD.get(YKHO, 'runtime')", "def zVa7(YKHO):\n try:\n retu...
[ "0.7257017", "0.70029837", "0.69616663", "0.6868073", "0.6868073", "0.6774298", "0.6774298", "0.67645055", "0.6705267", "0.6705267", "0.6705267", "0.6705267", "0.66742146", "0.6663325", "0.6597908", "0.6597908", "0.6597908", "0.6597908", "0.65948594", "0.6531491", "0.6472905"...
0.7603327
0
generate a 1D grid from dx to X with spacing dx
def Q67m(EcVT, Jw7X): nJ9F = Jw7X WKvO = [] while nJ9F < EcVT: WKvO.append(nJ9F) nJ9F += Jw7X return qw7D(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0O3(YKHO):\n YKHO.y_grid, YKHO.x_grid = Zxt2.meshgrid(YKHO.y[:], YKHO.x[:], indexing='ij')\n YKHO.dims = (YKHO.ny, YKHO.nx)\n YKHO.dy = YKHO.y[1] - YKHO.y[0]\n YKHO.dx = YKHO.x[1] - YKHO.x[0]", "def kt1c(jHsn: int=20, pvd3: int=20) -> ht2j.Tensor:\n yqRF, MZBS = ht2j.meshgrid([ht2j.arange(pvd...
[ "0.7159343", "0.7056869", "0.6936981", "0.691066", "0.6906689", "0.6906689", "0.6874572", "0.6874572", "0.6874572", "0.68267775", "0.67865515", "0.67622036", "0.67505133", "0.6710953", "0.66854405", "0.6667478", "0.6654174", "0.65985334", "0.65920097", "0.65835774", "0.657595...
0.0
-1
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key
def NMoC(YKHO, H5ew): d6pt = H5ew % YKHO.size Iuo4 = YKHO.hash_table[d6pt] while Iuo4: if Iuo4.key == H5ew: return Iuo4.value else: Iuo4 = Iuo4.next return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap:\n return YKHO.hashmap[H5ew]\n else:\n return -1", "def NMoC(YKHO, H5ew: int) -> int:\n return YKHO.hash_map.get(H5ew, -1)", "def NMoC(YKHO, H5ew: int) -> int:\n or8S = YKHO.hashf(H5ew)\n DpUl = YKHO.map[or8S]\n while D...
[ "0.7847906", "0.7573212", "0.75311625", "0.7468432", "0.74597526", "0.7427548", "0.74009144", "0.73951495", "0.7341652", "0.7307585", "0.7252175", "0.7242039", "0.7225773", "0.71834993", "0.7172031", "0.71694845", "0.7141172", "0.7086278", "0.70378774", "0.69592535", "0.68344...
0.63470423
45
The set of arguments for constructing a VpcEndpoint resource.
def FIMM(Ro_8, *, TaQy: pulumi.Input[Sequence[pulumi.Input[str]]], xOeT: pulumi.Input[str], TJ_E: Optional[pulumi.Input[bool]]=None, Fdba: Optional[pulumi.Input[str]]=None, liCf: Optional[pulumi.Input[str]]=None, bSEa: Optional[pulumi.Input[str]]=None, FHNN: Optional[pulumi.Input[str]]=None): qe4Y.set(Ro_8, 'securi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: VpcEndpointArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, qIxc: VpcEndpointArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, qIxc: EndpointArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...
[ "0.73799", "0.73799", "0.64388967", "0.6358222", "0.63553834", "0.6291882", "0.61013854", "0.6049575", "0.6029231", "0.6023815", "0.6022762", "0.59747565", "0.59389246", "0.59246105", "0.5916683", "0.58979034", "0.58933514", "0.5884914", "0.58706844", "0.5850687", "0.5850687"...
0.0
-1
The security group associated with the terminal node network card.
def TaQy(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]: return qe4Y.get(YKHO, 'security_group_ids')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ANtU(YKHO):\n return YKHO._security_group", "def ANtU(YKHO) -> laHg.Optional[lTJ4.aws_ec2.ISecurityGroup]:\n return YKHO._values.get('security_group')", "def ANtU(YKHO) -> laHg.Optional[lTJ4.aws_ec2.ISecurityGroup]:\n return YKHO._values.get('security_group')", "def ANtU(YKHO) -> laHg.Optional[l...
[ "0.76361036", "0.73824257", "0.73824257", "0.73824257", "0.73824257", "0.73824257", "0.71988183", "0.71988183", "0.7176491", "0.71110356", "0.70296603", "0.69138855", "0.6907112", "0.68224084", "0.67216855", "0.6696587", "0.66686976", "0.6576753", "0.65714103", "0.65714103", ...
0.0
-1
The private network to which the terminal node belongs.
def xOeT(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'vpc_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVVj(YKHO):\n return YKHO._network", "def eVVj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'network')", "def eVVj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'network')", "def qGac(YKHO):\n return YKHO.__network", "def eVVj(YKHO) -> 'outputs.NetworkInfoResponse':\n...
[ "0.7621555", "0.74680334", "0.74680334", "0.74547565", "0.7440994", "0.7438677", "0.7438677", "0.7438677", "0.7438677", "0.7438677", "0.7438677", "0.74219847", "0.74219847", "0.7392932", "0.7283115", "0.71812624", "0.7169733", "0.7112061", "0.70859694", "0.7051903", "0.705190...
0.0
-1
The terminal node service associated with the terminal node.
def liCf(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'service_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXA4(YKHO):\n return YKHO._Terminal", "def aXA4(YKHO):\n return YKHO._Terminal", "def V3Ac():\n return g_PL().terminal", "def f9TP(YKHO):\n return YKHO._terminal", "def f9TP(YKHO):\n return YKHO._term", "def f9TP(YKHO):\n return YKHO._term", "def oDXw(YKHO, mWFP):\n return YKHO...
[ "0.66373515", "0.66373515", "0.65600747", "0.65587986", "0.6552625", "0.6552625", "0.609061", "0.59440756", "0.5880489", "0.58615714", "0.5848255", "0.5835989", "0.5763554", "0.5669657", "0.5591493", "0.5580828", "0.55457395", "0.55126494", "0.5509314", "0.54976743", "0.54919...
0.0
-1
The name of the terminal node service associated with the terminal node.
def bSEa(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'service_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AwDt(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'node_name')", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'se...
[ "0.6783067", "0.6775292", "0.6775292", "0.6775292", "0.6775292", "0.67206264", "0.67206264", "0.67206264", "0.67206264", "0.66691107", "0.6576865", "0.65460676", "0.6499546", "0.6487746", "0.6487746", "0.64213765", "0.641589", "0.641589", "0.641589", "0.641589", "0.6415774", ...
0.6191578
54
The security group associated with the terminal node network card.
def TaQy(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]: return qe4Y.get(YKHO, 'security_group_ids')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ANtU(YKHO):\n return YKHO._security_group", "def ANtU(YKHO) -> laHg.Optional[lTJ4.aws_ec2.ISecurityGroup]:\n return YKHO._values.get('security_group')", "def ANtU(YKHO) -> laHg.Optional[lTJ4.aws_ec2.ISecurityGroup]:\n return YKHO._values.get('security_group')", "def ANtU(YKHO) -> laHg.Optional[l...
[ "0.76361036", "0.73824257", "0.73824257", "0.73824257", "0.73824257", "0.73824257", "0.71988183", "0.71988183", "0.7176491", "0.71110356", "0.70296603", "0.69138855", "0.6907112", "0.68224084", "0.67216855", "0.6696587", "0.66686976", "0.6576753", "0.65714103", "0.65714103", ...
0.0
-1
The terminal node service associated with the terminal node.
def liCf(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'service_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXA4(YKHO):\n return YKHO._Terminal", "def aXA4(YKHO):\n return YKHO._Terminal", "def V3Ac():\n return g_PL().terminal", "def f9TP(YKHO):\n return YKHO._terminal", "def f9TP(YKHO):\n return YKHO._term", "def f9TP(YKHO):\n return YKHO._term", "def oDXw(YKHO, mWFP):\n return YKHO...
[ "0.66373515", "0.66373515", "0.65600747", "0.65587986", "0.6552625", "0.6552625", "0.609061", "0.59440756", "0.5880489", "0.58615714", "0.5848255", "0.5835989", "0.5763554", "0.5669657", "0.5591493", "0.5580828", "0.55457395", "0.55126494", "0.5509314", "0.54976743", "0.54919...
0.0
-1
The name of the terminal node service associated with the terminal node.
def bSEa(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'service_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AwDt(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'node_name')", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'se...
[ "0.6783067", "0.6775292", "0.6775292", "0.6775292", "0.6775292", "0.67206264", "0.67206264", "0.67206264", "0.67206264", "0.66691107", "0.6576865", "0.65460676", "0.6499546", "0.6487746", "0.6487746", "0.64213765", "0.641589", "0.641589", "0.641589", "0.641589", "0.6415774", ...
0.6191578
55
The private network to which the terminal node belongs.
def xOeT(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'vpc_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVVj(YKHO):\n return YKHO._network", "def eVVj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'network')", "def eVVj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'network')", "def qGac(YKHO):\n return YKHO.__network", "def eVVj(YKHO) -> 'outputs.NetworkInfoResponse':\n...
[ "0.7621555", "0.74680334", "0.74680334", "0.74547565", "0.7440994", "0.7438677", "0.7438677", "0.7438677", "0.7438677", "0.7438677", "0.7438677", "0.74219847", "0.74219847", "0.7392932", "0.7283115", "0.71812624", "0.7169733", "0.7112061", "0.70859694", "0.7051903", "0.705190...
0.0
-1
The security group associated with the terminal node network card.
def TaQy(YKHO) -> qe4Y.Output[bdIy[str]]: return qe4Y.get(YKHO, 'security_group_ids')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ANtU(YKHO):\n return YKHO._security_group", "def ANtU(YKHO) -> laHg.Optional[lTJ4.aws_ec2.ISecurityGroup]:\n return YKHO._values.get('security_group')", "def ANtU(YKHO) -> laHg.Optional[lTJ4.aws_ec2.ISecurityGroup]:\n return YKHO._values.get('security_group')", "def ANtU(YKHO) -> laHg.Optional[l...
[ "0.76361036", "0.73824257", "0.73824257", "0.73824257", "0.73824257", "0.73824257", "0.71988183", "0.71988183", "0.7176491", "0.71110356", "0.70296603", "0.69138855", "0.6907112", "0.68224084", "0.67216855", "0.6696587", "0.66686976", "0.6576753", "0.65714103", "0.65714103", ...
0.0
-1
The terminal node service associated with the terminal node.
def liCf(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'service_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aXA4(YKHO):\n return YKHO._Terminal", "def aXA4(YKHO):\n return YKHO._Terminal", "def V3Ac():\n return g_PL().terminal", "def f9TP(YKHO):\n return YKHO._terminal", "def f9TP(YKHO):\n return YKHO._term", "def f9TP(YKHO):\n return YKHO._term", "def oDXw(YKHO, mWFP):\n return YKHO...
[ "0.66373515", "0.66373515", "0.65600747", "0.65587986", "0.6552625", "0.6552625", "0.609061", "0.59440756", "0.5880489", "0.58615714", "0.5848255", "0.5835989", "0.5763554", "0.5669657", "0.5591493", "0.5580828", "0.55457395", "0.55126494", "0.5509314", "0.54976743", "0.54919...
0.0
-1
The name of the terminal node service associated with the terminal node.
def bSEa(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'service_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AwDt(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'node_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str...
[ "0.6783067", "0.67206264", "0.67206264", "0.67206264", "0.67206264", "0.66691107", "0.6576865", "0.65460676", "0.6499546", "0.6487746", "0.6487746", "0.64213765", "0.641589", "0.641589", "0.641589", "0.641589", "0.6415774", "0.64135635", "0.6361593", "0.6357583", "0.63539875"...
0.6775292
1
The private network to which the terminal node belongs.
def xOeT(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'vpc_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVVj(YKHO):\n return YKHO._network", "def eVVj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'network')", "def eVVj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'network')", "def qGac(YKHO):\n return YKHO.__network", "def eVVj(YKHO) -> 'outputs.NetworkInfoResponse':\n...
[ "0.7621555", "0.74680334", "0.74680334", "0.74547565", "0.7440994", "0.7438677", "0.7438677", "0.7438677", "0.7438677", "0.7438677", "0.7438677", "0.74219847", "0.74219847", "0.7392932", "0.7283115", "0.71812624", "0.7169733", "0.7112061", "0.70859694", "0.7051903", "0.705190...
0.0
-1
Normalize angle to [pi, pi]
def qUQm(YylR): LVAh = YylR LVAh = LVAh % (2 * oyIN.pi) if LVAh > oyIN.pi: LVAh -= 2 * oyIN.pi return LVAh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zeLp(YylR):\n return (YylR % (2.0 * epAf.pi) + 2.0 * epAf.pi) % (2.0 * epAf.pi)", "def NkkI(YylR):\n HBfW = epAf.fmod(YylR, epAf.pi)\n if HBfW < 0.0:\n HBfW += epAf.pi\n return HBfW", "def qUQm(YylR):\n YylR %= oyIN.pi * 2\n if YylR > oyIN.pi:\n YylR -= oyIN.pi * 2\n retu...
[ "0.892288", "0.8630813", "0.85715663", "0.8511134", "0.8511134", "0.8441518", "0.8379085", "0.8379085", "0.8361196", "0.8361196", "0.83573097", "0.83573097", "0.83525026", "0.8341656", "0.82375693", "0.81862867", "0.8156247", "0.8083423", "0.8049158", "0.79670393", "0.7966895...
0.82566
14
f = Matrix([[x + v T cos(theta + omega T)], [y + v T sin(theta + omega T)], [theta + omega T], [v], [omega]])
def YEmv(YKHO, Kt_s, eAyE, bp8m): YKHO.predicted_x[2, 0] = YKHO.estimated_x[2, 0] + YKHO.estimated_x[4, 0] * Kt_s YKHO.predicted_x[2, 0] = qUQm(YKHO.predicted_x[2, 0]) YKHO.predicted_x[0, 0] = YKHO.estimated_x[0, 0] + YKHO.estimated_x[3, 0] * Kt_s * oyIN.cos(YKHO.predicted_x[2, 0]) YKHO.predicted_x[1, 0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(P6bq):\n Ty9i = P6bq[0]\n q7In = P6bq[1]\n WKvO = P6bq[2]\n LVAh = P6bq[3]\n return oyIN.array([-Oa1e * YUNn(q7In) - NZVw / c6hb * (Oa1e / DxNS ** 2) * Ty9i ** 2, -Oa1e * YhSR(q7In) / Ty9i + Oa1e / DxNS ** 2 * Ty9i, Ty9i * YhSR(q7In), Ty9i * YUNn(q7In)])", "def eHNT(P6bq):\n Ty9i = P6b...
[ "0.70180565", "0.68904227", "0.68713707", "0.6704701", "0.6608262", "0.6607471", "0.6597711", "0.6516319", "0.65059024", "0.6499567", "0.64663446", "0.6267246", "0.6245189", "0.6228984", "0.6222025", "0.6208638", "0.6208638", "0.6184129", "0.61603516", "0.6112657", "0.607318"...
0.57969886
51
Projecting to a subspace given by orthonormal rows of a matrix Q
def BZ91(T8ck, EcVT): V6IE = oyIN.dot(T8ck.T, T8ck) return oyIN.dot(V6IE, EcVT.T).T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iW0m(T8ck):\n Ylbp = oyIN.zeros((4, 4))\n zuVY, wx6A, WoMQ, q9mE = (T8ck[0], T8ck[1], T8ck[2], T8ck[3])\n Jgwa, NsEU, dfjV, TI1B = (T8ck[4], T8ck[5], T8ck[6], T8ck[7])\n Ylbp[0, 0] = q9mE * q9mE + zuVY * zuVY - wx6A * wx6A - WoMQ * WoMQ\n Ylbp[1, 1] = q9mE * q9mE - zuVY * zuVY + wx6A * wx6A - Wo...
[ "0.6411681", "0.6300334", "0.6279793", "0.6192632", "0.61164135", "0.61040115", "0.60885704", "0.6016463", "0.5957142", "0.5953061", "0.5937956", "0.59292793", "0.59046525", "0.58960307", "0.5891848", "0.5850779", "0.5835225", "0.58312744", "0.5831022", "0.5794386", "0.579312...
0.62902445
2
MARTIN Same as set_it_up but uses A = id Also "spreads" the nonzero elements of the covariance matrix
def swNq(exwG, MKlR=5, lJCJ=50, bJAV=1, WTkW=0.05): epgz = oyIN.zeros(exwG) pSfY = oyIN.zeros(exwG) pSfY[range(MKlR)] = 1.0 A2lD = oyIN.random.choice(pSfY, exwG, False) cLq2 = oyIN.diag(A2lD) Lcqa = XTiz.random.multivariate_normal(epgz, cLq2, lJCJ) _ZLR = oyIN.zeros(exwG) pSfY = oyIN.one...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p4il(YKHO, zNig=-1, tk5Y=False):\n if zNig <= 0:\n zNig = len(YKHO)\n zNig = min(zNig, len(YKHO))\n from array import array\n SppC = array('d', [0 for YRbF in range(0, zNig * zNig)])\n YKHO.mnemat(SppC, zNig)\n import ostap.math.linalg\n from ostap.core.core import Ostap\n kChg =...
[ "0.5932063", "0.58097565", "0.5716081", "0.5678334", "0.55853367", "0.55772156", "0.55629575", "0.5561679", "0.55326957", "0.5494673", "0.54810494", "0.5440822", "0.5432798", "0.5396888", "0.5384252", "0.5367265", "0.53588104", "0.5333356", "0.5247219", "0.5234395", "0.521384...
0.0
-1
Calculates divergence of image f of size 2,n,m returns divergence of size n,m
def hFiK(eHNT): yvT9 = oyIN.zeros_like(eHNT) yvT9[0, 0, :] = eHNT[0, 0, :] yvT9[0, -1, :] = -eHNT[0, -2, :] yvT9[0, 1:-1, :] = eHNT[0, 1:-1, :] - eHNT[0, :-2, :] yvT9[1, :, 0] = eHNT[1, :, 0] yvT9[1, :, -1] = -eHNT[1, :, -2] yvT9[1, :, 1:-1] = eHNT[1, :, 1:-1] - eHNT[1, :, :-2] return oy...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xMiz(vuvg):\n Csf6 = vuvg[:, :, :, 0, :]\n zklo = vuvg[:, :, :, 1, :]\n NjSW = vuvg[:, :, :, 2, :]\n HySl = [0] + list(range(vuvg.shape[0] - 1))\n BivE = [0] + list(range(vuvg.shape[1] - 1))\n NwM8 = [0] + list(range(vuvg.shape[2] - 1))\n AOlJ = Csf6 - Csf6[HySl, :, :, :]\n AOlJ[0, :, :...
[ "0.78583306", "0.70157045", "0.6714409", "0.64802325", "0.64800596", "0.6379771", "0.63574666", "0.63574666", "0.6270136", "0.6143707", "0.61309296", "0.6123205", "0.6081431", "0.60086834", "0.5995563", "0.59801185", "0.5973473", "0.5968921", "0.5898705", "0.5869951", "0.5864...
0.6336657
8
returns 1norm of image f of size n,m returns number
def cZIU(eHNT, jDK_=0, JsoO=False): return oyIN.sqrt(oyIN.sum(eHNT ** 2, axis=jDK_, keepdims=JsoO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PgjJ(XP5J: 'float const *', exwG: 'unsigned int') -> 'float':\n return QZnQ.vnl_c_vectorF_one_norm(XP5J, exwG)", "def nfjS(XP5J: 'float const *', exwG: 'unsigned int') -> 'float':\n return QZnQ.vnl_c_vectorF_one_norm(XP5J, exwG)", "def PgjJ(XP5J: 'stdcomplexF', exwG: 'unsigned int') -> 'float':\n ...
[ "0.7003532", "0.6824929", "0.6765056", "0.67330086", "0.6669105", "0.6639704", "0.6630278", "0.6617272", "0.6600046", "0.65445614", "0.65232", "0.64819556", "0.6444899", "0.6425783", "0.6396665", "0.63729894", "0.636149", "0.63370866", "0.6325606", "0.6311164", "0.6311136", ...
0.68991137
1
Convert a list of keyvalue pairs to a dictionary.
def DFBw(aa65): if aa65: return dict((ILUx(Ty9i) for Ty9i in aa65)) return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BOen(vC9B, dln7, rAxx):\n return {ATUZ[dln7]: ATUZ[rAxx] for ATUZ in vC9B}", "def js81(vC9B):\n return {G1Hx: Ty9i for Ty9i, G1Hx in vC9B}", "def BOen(YKHO, IqQl):\n m4Nl = {}\n for ZfUD in IqQl:\n m4Nl[ZfUD[0]] = ZfUD[1]\n return m4Nl", "def Y_Bi(aPd6, BWXx=None):\n return dict(...
[ "0.8036242", "0.78994083", "0.7890308", "0.7732785", "0.76237166", "0.7403674", "0.73513156", "0.7344863", "0.73276854", "0.72648144", "0.72415173", "0.72386193", "0.714108", "0.71022797", "0.7037325", "0.70250094", "0.6973114", "0.6970807", "0.6950508", "0.6921134", "0.69094...
0.6427852
48
Convert the value in a dictionary entry to a dictionary. From the kwargs dictionary, converts the value of the key_to_convert entry from a list of keyvalue pairs to a dictionary.
def ioIH(B2fa, xmA3): ERiY = B2fa.get(xmA3) if ERiY: B2fa[xmA3] = DFBw(ERiY) return B2fa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f3Xd(Emd4, Ty9i: Union[List[str], Dict[str, List[str]]]) -> cuzp[str, x1iM[str]]:\n if isinstance(Ty9i, list):\n return {'apply': Ty9i}\n return Ty9i", "def a8Pe(YKHO, bTKY: Dict[str, str]) -> cuzp[str, str]:\n bTKY = dict(bTKY)\n YKHO._convert(bTKY)\n return bTKY", "def yMVT(IqQl, i9...
[ "0.6686947", "0.6249247", "0.6191964", "0.6166873", "0.6022527", "0.59783137", "0.5908615", "0.59048986", "0.5836129", "0.5823519", "0.5750036", "0.5640077", "0.5639219", "0.55591583", "0.55519986", "0.55415034", "0.55326784", "0.5489107", "0.54878825", "0.53990805", "0.53953...
0.72971654
0
Returns the Boolean represented by bool_str. Returns the Boolean value for the argument named arg_name. The value is represented by the string bool_str. If the string is an invalid Boolean
def E0xc(WLRG, VYWp, U3Fm=True, WmM4=False): try: wEf2 = RZBP.bool_from_string(VYWp, U3Fm, WmM4) except ValueError as e: raise BQDi.CommandError(bGrB('argument %(arg)s: %(err)s.') % {'arg': WLRG, 'err': tTpl}) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DBap(VYWp):\n if VYWp.lower() == 'true':\n return True\n elif VYWp.lower() == 'false':\n return False\n else:\n raise Exception(\"argument for strBool must be string either 'True' or 'False'.\")", "def FLBk(d7pR):\n if isinstance(d7pR, bool):\n return d7pR\n elif is...
[ "0.7943851", "0.7832742", "0.7564784", "0.7505815", "0.74726015", "0.7412153", "0.7384", "0.73568654", "0.72954446", "0.7277054", "0.7276573", "0.72621375", "0.72335136", "0.72335136", "0.71994126", "0.7181094", "0.7181094", "0.7181094", "0.7181094", "0.71793157", "0.7170261"...
0.859189
0
Tests that User class inherits from BaseModel
def Tgaj(YKHO): BdN0 = mv1M() YKHO.assertIsInstance(BdN0, KcDH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PFh0(YKHO):\n YKHO.assertTrue(issubclass(mv1M, KcDH))", "def nzcy(YKHO):\n YKHO.assertTrue(issubclass(mv1M, KcDH))\n YKHO.assertIsInstance(YKHO.my_user, mv1M)", "def I_4h(YKHO):\n raTX = mv1M()\n YKHO.assertEqual(issubclass(type(raTX), KcDH), True)", "def TRsO(YKHO):\n YKHO.assertIsInst...
[ "0.89669585", "0.8342826", "0.81351405", "0.8030344", "0.7363314", "0.7363314", "0.7363314", "0.7337324", "0.7252197", "0.7103496", "0.7013572", "0.70127106", "0.69856256", "0.6985081", "0.69792974", "0.69626224", "0.69033664", "0.69033664", "0.6880469", "0.6868018", "0.68593...
0.86650467
1
Resolve all the ads of a category. Note that if the category is a parent category, there is no direct relation between the ads and the category in DB. The relation is through de subcategories.
def R0bU(YKHO, U34r, **B2fa): if YKHO.parent_category is None: return BZFG.objects.filter(subcategory__in=YKHO.category_set.all()) return YKHO.ad_set.all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XvSz(YKHO, U34r):\n return YKHO.category_set.all()", "def rFRb(YKHO, Ghho):\n if YKHO.parent_scope:\n Aofo = YKHO.parent_scope.find_all(Ghho)\n else:\n Aofo = {}\n Aofo.update(YKHO._locals[Ghho])\n return Aofo", "def Fk2V(YKHO) -> x1iM[qZuN]:\n LeZt = NCls.fetch_all('categor...
[ "0.59188837", "0.58698285", "0.5818841", "0.56965643", "0.5681202", "0.5668511", "0.54435986", "0.52779907", "0.5253217", "0.5234883", "0.5191136", "0.5168521", "0.5118837", "0.51048124", "0.50891876", "0.5031555", "0.5028546", "0.5017608", "0.5017608", "0.50142115", "0.49927...
0.8030372
0
Convert bit string to bit list of integers
def bLa5(aevO): return list(map(lambda WKvO: ord(WKvO) - ord('0'), aevO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F9MH(BB68):\n return [int(YRbF, 10) for YRbF in list(BB68)]", "def z33m(_4TW):\n return list((int(_4TW[YRbF:YRbF + 8], 2) for YRbF in range(0, len(_4TW), 8)))", "def OKxX(KCHu):\n Aofo = []\n for Z9rn in KCHu:\n UOVU = bin(ord(Z9rn))[2:]\n UOVU = '00000000'[len(UOVU):] + UOVU\n ...
[ "0.8477265", "0.8290624", "0.7912084", "0.7900672", "0.76636183", "0.76473576", "0.7564342", "0.75159216", "0.7485496", "0.73033273", "0.72401243", "0.72108227", "0.71798044", "0.71552426", "0.7132184", "0.70910114", "0.7066445", "0.7036043", "0.70350784", "0.7023629", "0.696...
0.7926554
2
Return adjacency representation of graph as a dictionary of lists.
def IE5L(yvY1, Qubi=None): if Qubi is None: Qubi = yvY1 Csk6 = {} for exwG in Qubi: Csk6[exwG] = [cHk7 for cHk7 in yvY1.neighbors(exwG) if cHk7 in Qubi] return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DkjJ(NhA2):\n QC1q = {}\n for D70y in NhA2:\n uFPI, aUWu = D70y\n Wg9y = QC1q.get(uFPI, [])\n Wg9y.append(aUWu)\n QC1q[uFPI] = Wg9y\n return QC1q", "def PAXp(pNZh: tp.Dict[str, tp.Dict[str, tp.Any]]) -> HRJ_.Dict[str, HRJ_.List[str]]:\n pIsY: HRJ_.Dict[str, HRJ_.List[s...
[ "0.789032", "0.7374506", "0.7219585", "0.7215614", "0.71996474", "0.7113574", "0.7061165", "0.696691", "0.6914402", "0.6864792", "0.6838932", "0.68324596", "0.6807995", "0.6805348", "0.67274547", "0.6716864", "0.66648245", "0.66310984", "0.658038", "0.655471", "0.6546228", ...
0.68567574
10
Takes a queue of numbers and returns the average of all the numbers not including the first and the last
def S028(vexM): J9Sm = [] for YRbF in range(RuXZ.qsize()): J9Sm.append(vexM.get_nowait()) J9Sm = map(float, J9Sm) if len(J9Sm) > 2: qqgr = sum(J9Sm[1:-1]) / float(len(J9Sm[1:-1])) elif len(J9Sm) > 1: qqgr = float(J9Sm[0]) else: qqgr = 0 return qqgr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S8vG(mSrU):\n return None", "def S8vG(mSrU):\n return sum(mSrU) / float(len(mSrU))", "def WUEZ(BDwY):\n return float(sTKP(BDwY)) / len(BDwY)", "def S8vG(fUYa):\n return sum(fUYa) / float(len(fUYa))", "def qqgr(BDwY):\n return sum(BDwY) / float(len(BDwY))", "def WUEZ(aO51):\n return ...
[ "0.7031005", "0.70245826", "0.69969726", "0.69623214", "0.6920341", "0.6848896", "0.68184566", "0.67577034", "0.674024", "0.6666778", "0.66285", "0.6609769", "0.6595205", "0.65946543", "0.65940243", "0.658109", "0.65713274", "0.6530924", "0.6530084", "0.651949", "0.6516888", ...
0.64962786
25
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Recursively merge two nested dictionaries, with any given subtree in b recursively taking priority over a.
def gYBZ(jzdc, Fg_i): if not isinstance(jzdc, dict) or not isinstance(Fg_i, dict): return Fg_i if 'DEFAULT' in Fg_i: jzdc.clear() for H5ew in Fg_i.keys(): jzdc[H5ew] = gYBZ(jzdc[H5ew], Fg_i[H5ew]) if H5ew in jzdc else Fg_i[H5ew] return jzdc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kzq2(jzdc: dict, Fg_i: dict) -> dict:\n for H5ew in Fg_i:\n if H5ew in jzdc:\n if isinstance(jzdc[H5ew], dict) and isinstance(Fg_i[H5ew], dict):\n Kzq2(jzdc[H5ew], Fg_i[H5ew])\n elif jzdc[H5ew] != Fg_i[H5ew]:\n jzdc[H5ew] = Fg_i[H5ew]\n else:...
[ "0.85352325", "0.8382022", "0.8376677", "0.83719254", "0.8317764", "0.82872", "0.825377", "0.8239678", "0.81993824", "0.81855696", "0.81513387", "0.8146417", "0.81412053", "0.81378174", "0.8095448", "0.80826545", "0.8007393", "0.7999604", "0.7997325", "0.7943934", "0.7931359"...
0.82971704
5
Test the geodesic method of L2Metric.
def szZz(YKHO, ZMXO, WXkz, eLnv, Sjj3, VcXK): IAeW = ZMXO.geodesic(Sjj3, VcXK) IAeW = IAeW(WXkz) Aofo = IAeW aEqx = [] for G1Hx in range(eLnv): pTny = ZMXO.ambient_metric.geodesic(initial_point=Sjj3[G1Hx, :], end_point=VcXK[G1Hx, :]) aEqx.append(pTny(WXkz)) aEqx = i912.stack(aEqx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szZz(YKHO):\n IAeW = YKHO.l2_metric_s2.geodesic(YKHO.landmarks_a, YKHO.landmarks_b)\n IAeW = IAeW(YKHO.times)\n Aofo = IAeW\n aEqx = []\n for G1Hx in range(YKHO.n_sampling_points):\n pTny = YKHO.l2_metric_s2.ambient_metric.geodesic(initial_point=YKHO.landmarks_a[G1Hx, :], end_point=YKHO.l...
[ "0.79122174", "0.648642", "0.63345754", "0.63201916", "0.62132376", "0.6205366", "0.6165322", "0.61252636", "0.61184806", "0.6086638", "0.5985937", "0.5934869", "0.5914636", "0.5890794", "0.58904314", "0.584844", "0.5815842", "0.5800936", "0.5786491", "0.5771459", "0.5766412"...
0.7368609
1
Renders the home page.
def MC83(): Ol8d = '' jGRS = QePW.args.get('status') if jGRS != None: jGRS = int(jGRS) if jGRS == 1: Ol8d = 'Invalid Credentials' return TvZl('login.html', message=Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86085397", "0.85661966", "0.8562984", "0.84564984", "0.8353822", "0.8353445", "0.832796", "0.83265287", "0.83265287", "0.8311966", "0.83088946", "0.83046836", "0.8296962", "0.82942903", "0.82942903", "0.82872546", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.8279...
0.0
-1
Renders the contact page.
def kZiy(): if not cuiw.get('logged_in'): return TvZl('login.html', message='Logged out due to inactivity.') return TvZl('home.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85942996", "0.856412", "0.856412", "0.8553042", "0.84771496", "0.84180754", "0.84098697", "0.8347894", "0.8342256", "0.8328687", "0.82468224", "0.82289207", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.81830716", "0.8...
0.0
-1
Renders the register new user page.
def gr_i(): return TvZl('register.html', title='Register')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQ7K():\n return TvZl('registration-form.html')", "def KFdV():\n return TvZl('register.html')", "def ONVH():\n return TvZl('new_user_form.html')", "def ONVH():\n return TvZl('register.html')", "def kI0b():\n return TvZl('new_user.html')", "def ZMOG():\n return TvZl('new_user.html')"...
[ "0.85744137", "0.84321666", "0.83051056", "0.79994637", "0.7962091", "0.79074347", "0.78998935", "0.7876895", "0.7848039", "0.7844582", "0.78338194", "0.78191596", "0.78128934", "0.7789345", "0.776183", "0.7754201", "0.77529466", "0.7729716", "0.7725057", "0.7721799", "0.7701...
0.79279876
5
Renders the register new user page.
def s7ch(): return TvZl('checkout.html', title='Checkout')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQ7K():\n return TvZl('registration-form.html')", "def KFdV():\n return TvZl('register.html')", "def ONVH():\n return TvZl('new_user_form.html')", "def ONVH():\n return TvZl('register.html')", "def kI0b():\n return TvZl('new_user.html')", "def gr_i():\n return TvZl('register.html', ...
[ "0.85744137", "0.84321666", "0.83051056", "0.79994637", "0.7962091", "0.79279876", "0.79074347", "0.78998935", "0.7876895", "0.7848039", "0.7844582", "0.78338194", "0.78191596", "0.78128934", "0.7789345", "0.776183", "0.7754201", "0.77529466", "0.7729716", "0.7725057", "0.772...
0.0
-1
UserProfile should be created on user creation.
def VTY1(YKHO): CBIr = NqOl() BFpK.objects.get(user=CBIr) CBIr.delete()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def euOS(YKHO):\n zR3h = BFpK.objects.create(user=YKHO, biography='')", "def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n z39Z = BFpK()\n z39Z.user = KAOR\n z39Z.save()", "def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n z39Z = BFpK()\n z39Z.user = KAOR\n z39Z...
[ "0.789703", "0.7773435", "0.7773435", "0.77047133", "0.77047133", "0.7696712", "0.7686402", "0.76819223", "0.7677264", "0.76573455", "0.765345", "0.7649586", "0.7584451", "0.75788456", "0.75788456", "0.7565139", "0.7482627", "0.746823", "0.7436302", "0.74201846", "0.7419708",...
0.6748752
92
Find the user with this email address.
def TKWP(YKHO, D3lj): try: return mv1M.objects.get(email=D3lj) except mv1M.DoesNotExist: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TKWP(Emd4, D3lj: str):\n for CBIr in Emd4.users:\n if CBIr.email == D3lj:\n return CBIr", "def jGEQ(YKHO):\n return NCls.session.query(mv1M).filter_by(email=YKHO._email).first()", "def CYTf(Emd4, D3lj):\n for hbFX in NCls.users:\n CBIr = NCls.users.get(hbFX)\n if CB...
[ "0.8171242", "0.8165088", "0.8143984", "0.8067041", "0.7977894", "0.7901728", "0.7878407", "0.78119975", "0.77910995", "0.77385443", "0.76981246", "0.7690969", "0.76830184", "0.76752466", "0.7661578", "0.7660885", "0.76345396", "0.76160747", "0.7603892", "0.75978667", "0.7566...
0.75699985
20
This is our input function that will pass data into the tensorflow DNN class we'll create. It takes in a pandas dataframe. It outputs a tensorflow dataset one_shot_iterator
def hbsH(bySB, x6A0, Ep8u=1, hXNa=True, Zbwy=None): bySB = {H5ew: oyIN.array(BWXx) for H5ew, BWXx in dict(bySB).items()} __n6 = x3i3.from_tensor_slices((bySB, x6A0)) __n6 = __n6.batch(Ep8u).repeat(Zbwy) if hXNa: __n6 = __n6.shuffle(buffer_size=20000) bySB, Crrw = __n6.make_one_shot_iterator(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N9Qs(bySB, UXqs, Zbwy, hXNa, Ep8u):\n\n def hbsH():\n __n6 = ZylS.data.Dataset.from_tensor_slices((dict(bySB), UXqs))\n if hXNa:\n __n6 = __n6.shuffle(buffer_size=len(bySB))\n __n6 = __n6.repeat(Zbwy)\n __n6 = __n6.batch(Ep8u)\n oHE7 = __n6.make_one_shot_iterato...
[ "0.7464641", "0.7269961", "0.7133706", "0.7015601", "0.7007397", "0.7001482", "0.69858277", "0.68980134", "0.6869277", "0.68369615", "0.6830673", "0.67809236", "0.67752457", "0.67457896", "0.6724287", "0.6686179", "0.66657615", "0.66622514", "0.6645851", "0.6596597", "0.65921...
0.6300541
82
Takes the fields and puts them in place of the strings in the partition template. >>> replace_fields([H('i0_'), H('i1_'), L('u0_ i2_'), L('u1_ i3_')], (('F', 18), ('S', 162), (('F', 6), ('S', 54)))) ((L(u0_, i2_), 18), (H(i0_), 162), ((L(u1_, i3_), 6), (H(i1_), 54)))
def G6Ll(V_D6: List[IndexedField], Qrt_): for Jyyj in V_D6: hcXw = 'S' if Jyyj.is_boson else 'F' Qrt_, bGrB = qx_G(data=Qrt_, to_replace=hcXw, replace_with=Jyyj) return Qrt_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HWpx(V_D6, Qrt_):\n awnO = p2Oz(V_D6)\n SQ3m = [G6Ll(V_D6, Qrt_) for V_D6 in awnO]\n return iAVl(SQ3m)", "def gj6i(m8mP, E6sh):\n ycBG = list(m8mP)\n for ZfUD in E6sh:\n ycBG.remove(str(ZfUD))\n return tuple(ycBG)", "def gj6i(m8mP, E6sh):\n ycBG = list(m8mP)\n for ZfUD in E6s...
[ "0.64368856", "0.6328036", "0.62852395", "0.5834918", "0.57102007", "0.56250435", "0.5535232", "0.5529398", "0.5522208", "0.5472869", "0.5443898", "0.5425345", "0.5389562", "0.53855497", "0.53477037", "0.53433084", "0.53276473", "0.5307276", "0.5296529", "0.5278015", "0.52718...
0.8002262
0
Checks if all fields are scalars.
def oPkQ(V_D6: List[Field]) -> bool: _J6_ = True for eHNT in V_D6: _J6_ = _J6_ and eHNT.is_boson return _J6_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZSkw(hAEw):\n if type(hAEw) is int or float:\n return True\n else:\n return False", "def OjXW(YKHO):\n return YKHO.data_type == 'Scalar'", "def pj4T(object):\n ythi = isJo(object)\n for JZXy in ythi:\n if JZXy.point_data.scalars is not None:\n return True\n ...
[ "0.6908298", "0.68091416", "0.67704755", "0.6737673", "0.67075104", "0.66763157", "0.660545", "0.6573832", "0.6485334", "0.6475328", "0.64740133", "0.6454277", "0.64333475", "0.6325417", "0.6292779", "0.62751937", "0.625816", "0.6247814", "0.61884624", "0.6156258", "0.6144100...
0.6410467
13
Ascribe a unique prime number to each exotic appearing in `sieve`. `sieve` is a dictionary mapping a tuple of field information to a list of completions.
def S1AL(KwQv: Dict[tuple, List[Completion]]) -> cuzp[tuple, int]: lQ3t = {} ewCu = 1 for G1Hx, Ty9i in KwQv.items(): for Jyyj in G1Hx: if Jyyj not in lQ3t: lQ3t[Jyyj] = ffYW(ewCu) ewCu += 1 return lQ3t
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dRbQ(KwQv, max, XP5J):\n pSDG = 2\n YRbF = XP5J * pSDG\n if YRbF <= max:\n while YRbF <= max:\n KwQv[YRbF] = False\n pSDG += 1\n YRbF = XP5J * pSDG", "def oe9S(mLGw):\n Yn7t = []\n Reu8 = [1 for a0GJ in range(0, mLGw)]\n WKvO = 2\n LVAh = 2\n wh...
[ "0.68534607", "0.6634564", "0.6580875", "0.6572258", "0.65472114", "0.65424305", "0.6524396", "0.6524396", "0.64940053", "0.6491137", "0.64600533", "0.6440243", "0.6434706", "0.64253336", "0.64253336", "0.6419667", "0.63942677", "0.63904935", "0.63561785", "0.6337786", "0.633...
0.75075763
0
Converts a string to an aware datetime object.
def ZtB7(BWXx: str) -> qcWV.datetime: return d5IO.parser.isoparse(BWXx).replace(tzinfo=d5IO.tz.tzutc())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m89t(YKHO, vIwR):\n try:\n from dateutil.parser import parse\n return parse(vIwR)\n except ImportError:\n return vIwR", "def WPto(YKHO, Dhyu):\n return qcWV.datetime.strptime(Dhyu, '%Y-%m-%dT%H:%M:%S')", "def DSF0(vIwR):\n U5Jc = wvEv.parse(vIwR)\n if qbNx:\n U5Jc...
[ "0.7460606", "0.7332735", "0.7220601", "0.7190604", "0.71870327", "0.7094604", "0.7086621", "0.70541245", "0.70164764", "0.70160544", "0.70051634", "0.6977106", "0.69585556", "0.69568175", "0.69149446", "0.69139045", "0.6867755", "0.68544555", "0.6854002", "0.6845936", "0.683...
0.64623845
64
Return the pass_hash as if it were the password.
def jTXt(YKHO): return YKHO.pass_hash
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaVN(Emd4, jTXt: str) -> str:\n return jf1V.hash(jTXt)", "def kaVN(YKHO, jTXt) -> str:\n return YKHO.pwd_context.hash(jTXt)", "def kaVN(jTXt: str):\n return jf1V.hash(jTXt)", "def kaVN(jTXt):\n return jf1V.hash(jTXt)", "def kaVN(jTXt: str) -> str:\n return YSi4.hash(jTXt)", "def kaVN(j...
[ "0.78193897", "0.7816706", "0.7815597", "0.7796602", "0.77190596", "0.76914656", "0.7592551", "0.757867", "0.7473202", "0.74579966", "0.7443312", "0.7439589", "0.7400149", "0.7376083", "0.7376083", "0.7376083", "0.7372088", "0.7368226", "0.733844", "0.73234254", "0.7288483", ...
0.8324988
0
Automatically salt and hash the provided password.
def jTXt(YKHO, uGpu): YKHO.pass_hash = B8ni.encrypt(uGpu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPjS(YKHO, jTXt, NTfD):\n vhgk = HBct.md5()\n vhgk.update((jTXt + NTfD).encode('UTF-8'))\n return vhgk.hexdigest()", "def HKzU(YKHO, NTfD, jTXt):\n kg40 = HBct.md5(NTfD + jTXt).hexdigest()\n return kg40", "def qzFd(jTXt, NTfD=None):\n if NTfD is None:\n NTfD = qxeD.uuid4().hex\n ...
[ "0.75198185", "0.7516719", "0.75047505", "0.74577415", "0.7408751", "0.73915523", "0.7366587", "0.7323812", "0.7323812", "0.7278376", "0.72414505", "0.72321224", "0.72282046", "0.7218942", "0.7217851", "0.7216497", "0.7177543", "0.7174742", "0.7114893", "0.7100318", "0.710031...
0.0
-1
Removes in angled brackets from text.
def as8h(l5Ny): import re dJ1p = {YRbF: ' ' for YRbF in re.findall('(<[^>\n]*>)', l5Ny.strip())} ZFaF = Pusg(lambda WKvO, aoD7: WKvO.replace(*aoD7), dJ1p.iteritems(), l5Ny) return ' '.join(ZFaF.split())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u_Mt(l5Ny):\n l5Ny = ZbWC.sub('\\\\{[^}]{,40}\\\\}', '', l5Ny)\n l5Ny = ZbWC.sub('⟦[^⟧]*⟧', '', l5Ny)\n return l5Ny", "def t5Yq(l5Ny):\n return ZbWC.sub('\\\\[[^\\\\]]+\\\\]', '', l5Ny)", "def k58G(YKHO, l5Ny):\n if l5Ny.startswith('<') and l5Ny.endswith('>.'):\n return l5Ny\n if '...
[ "0.71516144", "0.7090854", "0.70856637", "0.6820641", "0.65339416", "0.64786816", "0.6376319", "0.63643736", "0.63104415", "0.63048273", "0.6290526", "0.6274801", "0.6214527", "0.62038076", "0.61824524", "0.61452824", "0.61316705", "0.61157244", "0.6101748", "0.6086538", "0.6...
0.6122483
17