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
Depending on "attr", return either an AbstractExpression or an AbstractExpression constructor.
def JgjC(YKHO, hkS8): from langkit.expressions.structs import FieldAccess try: return df1H.attrs_dict[hkS8].build(YKHO) except KeyError: return YKHO.composed_attrs().get(hkS8, FieldAccess(YKHO, hkS8))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, xC3W, khtY):\n tPEx.__init__(YKHO)\n YKHO.attribute = xC3W\n YKHO.op = khtY", "def l_xx(YKHO):\n return G8lN(kGSl(YKHO.expr_type), abstract_expr=YKHO)", "def zs3O(mWFP: str, *qIxc: _Any, **B2fa: _Any) -> r8rT:\n return ltxT(mWFP, qIxc, B2fa, parameterless=True)", "def hP3Q(fyZE,...
[ "0.6024874", "0.59839624", "0.5965913", "0.5597111", "0.55938065", "0.5529476", "0.5528231", "0.5372302", "0.5357791", "0.53352785", "0.5333662", "0.53158504", "0.53136504", "0.53103477", "0.528898", "0.5285284", "0.52608377", "0.5252843", "0.5222824", "0.51242006", "0.511353...
0.615165
0
Return an Arithmetic expression to add two values.
def FOdN(YKHO, Elif): return sH7s(YKHO, Elif, '+')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzm0(nRMF, wIPY):\n return nRMF + wIPY", "def hzm0(nRMF, wIPY):\n return nRMF + wIPY", "def hzm0(nRMF, wIPY):\n return nRMF + wIPY", "def H2v5(LFlW: ValueOrExpression, _tIi: ValueOrExpression) -> tPEx:\n return dquE(Maem.ArithmeticBinaryOperator.ADD, dFme(LFlW), dFme(_tIi))", "def H2v5(E_TU...
[ "0.7798927", "0.7798927", "0.7798927", "0.7633403", "0.76155007", "0.7579257", "0.7536118", "0.75283027", "0.74878985", "0.7378806", "0.7362332", "0.7325609", "0.72848105", "0.72770816", "0.72288865", "0.72288865", "0.7186958", "0.71858305", "0.7175158", "0.7172619", "0.71705...
0.7390276
9
Decorator to create an expression accessible through an attribute call on an AbstractExpression instance, from an abstract expression class. See attr_expr_impl for more details.
def Tigb(mWFP: str, *qIxc: _Any, **B2fa: _Any) -> r8rT: return ltxT(mWFP, qIxc, B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zs3O(mWFP: str, *qIxc: _Any, **B2fa: _Any) -> r8rT:\n return ltxT(mWFP, qIxc, B2fa, parameterless=True)", "def ltxT(mWFP: str, qIxc: Sequence[_Any], B2fa: Dict[str, _Any], WGAD: bool=False) -> r8rT:\n\n def dHlK(eR5c: Callable[..., _Any]) -> YrBT[..., a89r]:\n df1H.attrs_dict[mWFP] = K1tc(True, ...
[ "0.7609607", "0.7295117", "0.67975163", "0.63653725", "0.62947994", "0.62106055", "0.605291", "0.60204196", "0.60081565", "0.59403837", "0.5816994", "0.5764633", "0.5738689", "0.57291347", "0.57128334", "0.5690792", "0.5664763", "0.56036365", "0.5585344", "0.5573067", "0.5559...
0.73456526
1
Decorator to create an expression accessible through a parameterless attribute on an AbstractExpression instance, from an abstract expression class. See attr_expr_impl for more details.
def zs3O(mWFP: str, *qIxc: _Any, **B2fa: _Any) -> r8rT: return ltxT(mWFP, qIxc, B2fa, parameterless=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ltxT(mWFP: str, qIxc: Sequence[_Any], B2fa: Dict[str, _Any], WGAD: bool=False) -> r8rT:\n\n def dHlK(eR5c: Callable[..., _Any]) -> YrBT[..., a89r]:\n df1H.attrs_dict[mWFP] = K1tc(True, mWFP, eR5c, qIxc, B2fa, WGAD, B2fa.pop('doc', None))\n return eR5c\n return dHlK", "def Tigb(mWFP: str, ...
[ "0.75449765", "0.692876", "0.65848905", "0.62537843", "0.6236491", "0.60667104", "0.5948828", "0.57792526", "0.57221484", "0.56036603", "0.5599291", "0.5544417", "0.55149657", "0.5503317", "0.5473401", "0.545309", "0.5434818", "0.54244846", "0.5421973", "0.53757834", "0.53711...
0.78392255
0
Returns the type of the resolved expression.
def type(YKHO): if not YKHO.static_type: raise NotImplementedError('{} must redefine the type property, or to fill the static_type class field'.format(YKHO)) return kGSl(YKHO.static_type)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def type(YKHO):\n if YKHO.expected_type:\n return kGSl(YKHO.expected_type)\n if not YKHO.constructed_expr:\n with YKHO.diagnostic_context:\n YKHO.construct_and_type_expression(G_wZ())\n return kGSl(YKHO.constructed_expr.type)", "def RpnH(YKHO, VN2L):\n _hkX = YKHO.__tag_expr(...
[ "0.7302683", "0.65744", "0.63853204", "0.635052", "0.62318873", "0.6209479", "0.6149497", "0.6106115", "0.60128284", "0.60100394", "0.6002504", "0.5992984", "0.5947766", "0.59427065", "0.59389514", "0.5926259", "0.592299", "0.59054273", "0.58904743", "0.58817387", "0.5877684"...
0.0
-1
Helper for "ir_dump". Return text representation as a list of lines.
def WvGy(Emd4, qDUE): avru = 72 Aofo = [] def ltIM(s6Vu): """ Return whether all dumps in "subdumps" are one-line long. """ return all((len(Csk6) == 1 for Csk6 in s6Vu)) if isinstance(qDUE, list): s6Vu = [Emd4._ir_dump(ATUZ) for ATUZ in qDUE] if l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j2Yu(XP5J):\n return repr(XP5J).split('\\n')", "def Nqlg(YKHO):\n Nqlg = []\n for Q7me in YKHO.parts:\n Nqlg.extend(Q7me.split('\\n'))\n return Nqlg", "def Nqlg(YKHO):\n Nqlg = []\n for Q7me in YKHO.parts:\n Nqlg.extend(Q7me.split('\\n'))\n return Nqlg", "def Nqlg(YKHO)...
[ "0.67346084", "0.6716277", "0.6716277", "0.6588976", "0.6555032", "0.64418447", "0.6440856", "0.64147943", "0.6407277", "0.63991916", "0.63894755", "0.6344569", "0.63205373", "0.63196963", "0.6317642", "0.6310638", "0.62531763", "0.62275755", "0.62266886", "0.6214207", "0.620...
0.0
-1
Subclasses must override this to return the name of the exception to raise.
def AUO_(YKHO) -> ZWCE.Name: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MLvv(AJ5d: Exception) -> str:\n return AJ5d.__class__.__name__", "def FtrE(YKHO):\n p9K5 = 'SelfHandlingExc was raised'\n return p9K5", "def mWFP(YKHO):\n if YKHO.__name is None:\n try:\n YKHO.__name = xdVc[YKHO.address]['name']\n except:\n HTFH = obSV()\n ...
[ "0.73895", "0.7340985", "0.7314813", "0.73119324", "0.73119324", "0.7237369", "0.71281135", "0.71281135", "0.70715636", "0.6994994", "0.6924359", "0.6893239", "0.6791269", "0.6779146", "0.67548335", "0.6751575", "0.672377", "0.663921", "0.66257036", "0.66257036", "0.6608861",...
0.8402447
0
Create a local variable to correspond to this variable reference. Update its name, if needed. This must not be called if a local variable was already created for `self`.
def yaLQ(YKHO, rrBf=None): assert YKHO.local_var is None YKHO.local_var = dIi4.get().vars.create_scopeless(YKHO._name, YKHO._type) YKHO._name = YKHO.local_var.name if rrBf: rrBf.add(YKHO.local_var)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zvku(YKHO, mWFP, type):\n mWFP = ZWCE.Name.get(mWFP)\n YRbF = 0\n v7hv = mWFP.base_name\n while mWFP in YKHO.local_vars:\n YRbF += 1\n mWFP = ZWCE.Name(f'{v7hv}_{YRbF}')\n U5bT = xocV.LocalVar(YKHO, mWFP, type)\n YKHO.local_vars[mWFP] = U5bT\n return U5bT", "def y893(YKHO, ...
[ "0.66876817", "0.66587025", "0.6594348", "0.65651006", "0.6546624", "0.6357971", "0.63396454", "0.63041246", "0.62519276", "0.6222443", "0.6150883", "0.603564", "0.60133106", "0.5993957", "0.5985053", "0.59792495", "0.5974567", "0.5963508", "0.59268457", "0.59056336", "0.5903...
0.7059016
0
Return the name for this property to use in debug info.
def lDck(YKHO): return '[dispatcher]{}'.format(YKHO.qualname) if YKHO.is_dispatcher else YKHO.qualname
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZgoD(YKHO) -> str:\n return YKHO._property_name", "def ZgoD(YKHO):\n return YKHO.__property_name", "def ZgoD(YKHO):\n return YKHO._property_name", "def ZgoD(YKHO):\n return YKHO.key_to_property(YKHO.key)", "def vDCm(YKHO):\n return YKHO._property_display_name", "def mWFP(YKHO) -> str:\...
[ "0.81752694", "0.81609195", "0.80864394", "0.7923939", "0.792199", "0.7910387", "0.7910387", "0.7910387", "0.7910387", "0.7910387", "0.7910387", "0.7910387", "0.7910387", "0.7910387", "0.7910387", "0.7893046", "0.78490025", "0.78490025", "0.78490025", "0.7846704", "0.78450626...
0.0
-1
Return all properties associated with this property in terms of overriding hierarchy.
def yCGA(YKHO): return YKHO.base_property.property_set() if YKHO.base_property else [YKHO] + YKHO.all_overriding_properties
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QA5_(YKHO):\n\n def B0gN(QWcs, ukeR=False):\n return sum((B0gN(XP5J) for XP5J in QWcs.overriding_properties), [] if ukeR else [QWcs])\n return B0gN(YKHO, except_self=True)", "def YUNs(YKHO):\n return Pusg(lambda WKvO, LVAh: WKvO.union(LVAh), [{G1Hx for G1Hx, Ty9i in jKi7.iteritems(Fg_i.__dict...
[ "0.8429133", "0.7669151", "0.7516685", "0.73777914", "0.7370776", "0.7186581", "0.69173926", "0.6905311", "0.6739067", "0.6732542", "0.66801935", "0.663915", "0.6622652", "0.65916544", "0.6566865", "0.6535204", "0.6462643", "0.64490837", "0.6424129", "0.64236253", "0.64129555...
0.7785801
1
Whether this property is dispatching or not. This is True as soon as the property is abstract or the property is overriden in AST node subclasses or the property overrides another one. This is inferred during the "compute" pass.
def sGUG(YKHO): return YKHO.abstract or YKHO.base_property or YKHO.overriding_properties
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _R92(YKHO) -> bool:\n return False", "def XFbl(YKHO):\n return YKHO.base_property is not None", "def _R92(YKHO) -> bool:\n return isinstance(YKHO.obj, property)", "def PtDO(YKHO, QpfX):\n if YKHO.struct.is_ast_node and YKHO.struct.base:\n Aofo = YKHO.struct.base.get_abstract_node_data_...
[ "0.66181296", "0.6538849", "0.6358842", "0.6156951", "0.60834575", "0.59238327", "0.5922847", "0.5761471", "0.57372946", "0.5679915", "0.5633969", "0.5590383", "0.5586915", "0.5569076", "0.5568008", "0.5562859", "0.5528026", "0.5528026", "0.5528026", "0.5528026", "0.5495463",...
0.8289675
0
Returns a string that uniquely identifies this property.
def PObu(YKHO): return str(YKHO._serial)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO) -> str:\n return f'{YKHO.vin}-{YKHO.component}-{YKHO.attribute}'", "def W2a_(YKHO) -> str:\n return str(YKHO) + '(' + str(id(YKHO)) + ')'", "def febJ(YKHO):\n Z1CY = YKHO.getObjValue().strId()\n if YKHO.hasExtended():\n Z1CY += '.%s' % YKHO.getExtended()\n return Z1CY", "...
[ "0.7689869", "0.7598108", "0.7586792", "0.75565183", "0.75486726", "0.7530293", "0.7513494", "0.7426629", "0.74051774", "0.7402926", "0.7394991", "0.7394991", "0.7394991", "0.7394991", "0.7394991", "0.7394991", "0.7394991", "0.7394991", "0.7394991", "0.73848975", "0.7325627",...
0.0
-1
Return the type of the underlying expression after resolution.
def type(YKHO): if YKHO.expected_type: return kGSl(YKHO.expected_type) if not YKHO.constructed_expr: with YKHO.diagnostic_context: YKHO.construct_and_type_expression(G_wZ()) return kGSl(YKHO.constructed_expr.type)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OItp(VN2L: Expression) -> h8nf[eBH2]:\n if isinstance(VN2L, MygN):\n if isinstance(VN2L.node, CgdH):\n cM24 = VN2L.node.type\n if cM24 is None:\n return DoLi(Xedx.unannotated)\n if isinstance(cM24, _Ss9):\n return cM24.ret_type\n ...
[ "0.66353697", "0.63506055", "0.6297495", "0.62098134", "0.61837465", "0.6067309", "0.5958943", "0.59533304", "0.5940766", "0.5913272", "0.58284485", "0.5821429", "0.5804668", "0.5804206", "0.57997763", "0.5775876", "0.56967866", "0.5695628", "0.5682188", "0.5680827", "0.56785...
0.727776
0
Reset memoization caches inheritancerelated information. Must be called when modifying a tree of inherited properties.
def _ba0(YKHO): for QWcs in (dIi4.root_property, dIi4.all_overriding_properties): QWcs.fget.reset(YKHO) YKHO._base_property = None YKHO.overriding_properties = set()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pa5c(YKHO):\n pass", "def ka5c(YKHO):\n YKHO.current_depth = 0\n YKHO.max_depth = None\n YKHO.max_depth_exceeded = False", "def Bwn8(YKHO) -> None:\n bYCt = ['nulls_mask', 'have_nulls', 'begin', 'end']\n for exwG in bYCt:\n hGI9 = '_{0}'.format(exwG)\n if hasattr(YKHO, hGI9)...
[ "0.6672189", "0.65811175", "0.6521948", "0.63829917", "0.63829917", "0.62830496", "0.6249127", "0.62371415", "0.6208338", "0.61915773", "0.6156545", "0.59809804", "0.5964861", "0.59480524", "0.5934811", "0.5928376", "0.5909834", "0.5902925", "0.58437896", "0.584328", "0.58054...
0.72593087
0
Return the default value associated to a dynamic variable in this prop. This returns None if this property associates no default value to the given dynamic variable, and this raises a ``KeyError`` exception if ``dyn_var`` is not a dynamic variable for this property.
def L73v(YKHO, d4RS: DynamicVariable) -> UNxv[df1H]: for YRbF, rDXN in enumerate(YKHO.dynamic_vars): if rDXN is d4RS: return YKHO._dynamic_vars_default_values[YRbF] raise KeyError('no such dynamic variable for this property')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DpmZ(YKHO, T3PT, QpfX=None):\n if YKHO.has_default_func:\n return YKHO._default_fn(T3PT, QpfX)\n if YKHO._default is not None:\n return YKHO._default\n bp_0 = zv_n(QpfX)\n K1k_ = 'No default for variable property {}{}'\n raise lCv5(K1k_.format(YKHO.name, bp_0))", "def q4YK(Emd4, ...
[ "0.6694148", "0.62149537", "0.61502594", "0.61502594", "0.60046464", "0.59764534", "0.597428", "0.5946701", "0.5904621", "0.58943206", "0.5872168", "0.5863528", "0.58607584", "0.5770112", "0.5769408", "0.572632", "0.5724259", "0.5723291", "0.56831855", "0.5664343", "0.5636560...
0.90015215
0
Return whether this property is considered reachable.
def eVgV(YKHO) -> bool: assert YKHO._is_reachable is not None return YKHO._is_reachable
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUIX(YKHO):\n return YKHO._reachable", "def yWbd(YKHO):\n return YKHO._innogy_device.device_state_dict['isReachable']['value']['value']", "async def evaluate(YKHO) -> bool:\n return YKHO.sys_dbus.network.connectivity_enabled is False", "def eVgV(YKHO):\n return YKHO.run_expect([0, 1, 2], 'pin...
[ "0.7689448", "0.68771094", "0.6877083", "0.6802082", "0.6622269", "0.6563907", "0.6544549", "0.6495963", "0.647647", "0.6349275", "0.6309265", "0.6307387", "0.62961346", "0.6288133", "0.6264256", "0.6252778", "0.62500405", "0.62111825", "0.6197727", "0.61916155", "0.6188507",...
0.80110604
0
Assuming this property requires an untyped wrapper, return the return type of this wrapper.
def rjN_(YKHO): assert YKHO.requires_untyped_wrapper if YKHO.type.is_entity_type: return Kt_s.entity elif YKHO.type.is_ast_node: return Kt_s.root_node else: return YKHO.type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def abG0(YKHO):\n return YKHO._wrappingType", "def AiW5(YKHO) -> type:\n raise NotImplementedError", "def NMoC(YKHO):\n return YKHO._pytype(YKHO.value)", "def type(YKHO):\n if YKHO.expected_type:\n return kGSl(YKHO.expected_type)\n if not YKHO.constructed_expr:\n with YKHO.diagno...
[ "0.68042386", "0.64861864", "0.642463", "0.63242406", "0.63130903", "0.6306422", "0.62545836", "0.62545836", "0.62545836", "0.62545836", "0.62545836", "0.62545836", "0.62545836", "0.62545836", "0.62545836", "0.62545836", "0.62545836", "0.62545836", "0.62545836", "0.62545836", ...
0.7703734
0
Determine if there is a reason that this property cannot be memoized. If so, this reason is considered to be transitive and will propagate to properties that all this one. If there is no such reason (i.e. if this property can be memoized, assuming that `self.reason_for_no_memoization` returns True), return None. Otherw...
def RYyQ(YKHO): if YKHO._call_non_memoizable_because: return YKHO._call_non_memoizable_because elif YKHO._solves_equation: return 'Cannot memoize equation solving' elif YKHO._gets_logic_var_value: return 'Cannot memoize extracting the value of a logic variable' else: retu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g4P8(YKHO):\n if YKHO.abstract:\n return 'A memoized property cannot be abstract: memoization is not an inherited behavior'\n if YKHO.external:\n return 'An external property cannot be memoized'\n return None", "def lo9Y(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('re...
[ "0.8383589", "0.5630019", "0.5630019", "0.5630019", "0.5630019", "0.5630019", "0.5630019", "0.5616014", "0.5472503", "0.5472503", "0.5472503", "0.5472503", "0.5472503", "0.5472503", "0.5472503", "0.5472503", "0.5472503", "0.5472503", "0.5472503", "0.5472503", "0.5472503", "...
0.78901327
1
Public constructor for properties whose implementation is provided by the language specification. See PropertyDef for further documentation.
def z196(type=None, A97Q='', **B2fa): return dIi4(expr=None, prefix=d5iS.PREFIX_PROPERTY, type=type, doc=A97Q, external=True, lazy_field=False, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, mWFP, xcqo='', **fk_O):\n assert isinstance(mWFP, (str, QMSQ)), 'Property name is not a string or unicode value, was a %s' % type(mWFP)\n YKHO.name = mWFP\n assert isinstance(xcqo, (str, QMSQ)), 'Property documentation is not a string or unicode value, was a %s' % type(xcqo)\n YKHO.__doc...
[ "0.72081643", "0.69616616", "0.69451463", "0.6838869", "0.6838869", "0.681698", "0.6784104", "0.67717224", "0.6680678", "0.6591933", "0.6550588", "0.65317905", "0.6510725", "0.6444048", "0.64111656", "0.63969606", "0.6357171", "0.63527113", "0.63479835", "0.6343855", "0.63275...
0.5990259
40
Public constructor for abstract properties, where you can pass no expression but must pass a type. See PropertyDef for further documentation.
def Cp6M(type, A97Q='', D0Me=False, **B2fa): return dIi4(expr=None, prefix=d5iS.PREFIX_PROPERTY, type=type, doc=A97Q, abstract=True, abstract_runtime_check=D0Me, lazy_field=False, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, JfyU=None, **B2fa):\n pPTc = B2fa.pop('variant', None)\n if pPTc is not None:\n YKHO._variant = pPTc\n xAdv = B2fa.pop('property_type', obje)\n BfDw.CheckValidPropertyType(xAdv)\n YKHO.property_type = xAdv\n if JfyU is None:\n YKHO.__initialized = False\n YKHO....
[ "0.6736451", "0.6625547", "0.6474985", "0.64562285", "0.6322637", "0.6316379", "0.6254421", "0.6254421", "0.6246459", "0.62291527", "0.62199926", "0.6177504", "0.6176201", "0.6162219", "0.6156517", "0.6150249", "0.6140511", "0.6100199", "0.60691965", "0.6054745", "0.6021071",...
0.74027914
0
Public constructor for concrete properties. You can declare your properties
def KG2U(VN2L, A97Q=None, n52x=None, type=None, akUf=None, jEIa=False, Av1h=None, iDyP=None, w796=None, HRp_=None, lXgg=False): return dIi4(VN2L, d5iS.PREFIX_PROPERTY, doc=A97Q, public=n52x, type=type, dynamic_vars=akUf, memoized=jEIa, warn_on_unused=Av1h, ignore_warn_on_node=w796, uses_entity_info=iDyP, call_non_m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, **bYCt):\n YKHO.__property_names = bYCt", "def FIMM(YKHO, C9U5: Dict[str, PropertyGenerator]):\n YKHO.properties = C9U5", "def FIMM(YKHO) -> None:\n YKHO._valid_properties: cuzp[str, ImMB] = {}", "def FIMM(YKHO, AYZY: Any, k53c: Any=None):\n YKHO.prop_get: ImMB = AYZY\n YKHO.pro...
[ "0.7696445", "0.7503134", "0.74937385", "0.7416678", "0.73766285", "0.7362903", "0.7341813", "0.72353745", "0.7219128", "0.7175263", "0.71652335", "0.7141713", "0.7141713", "0.7138774", "0.7138774", "0.7104407", "0.7104407", "0.70978785", "0.7020739", "0.70142794", "0.6998210...
0.0
-1
Return a decorator to create a lazy field. A lazy field is a node field that is initialized on demand, using a property expression. The result of that property is stored in the node itself, and reused later on, whenever the field is used. Unlike with memoized properties, the cache for the property result is not reset w...
def jXZV(n52x: Opt[bool]=None, _h7H: Opt[CompiledType]=None, eJTR: AbstractKind=RKr4.concrete, Av1h: Opt[bool]=None, w796: Opt[bool]=None, QU9R: bool=False, p2QJ: bool=False): def mrMx(HgVF): return f23u(HgVF, HgVF.__doc__, n52x, _h7H, eJTR, Av1h, w796, QU9R, p2QJ) return mrMx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t8jp(JfyU):\n hGI9 = '_lazy_' + JfyU.__name__\n\n @property\n def VjgO(YKHO):\n \"\"\"\n Function to calculate the property if not already done\n :param self: instance\n :return: value of the property\n \"\"\"\n if not hasattr(YKHO, hGI9):\n setattr...
[ "0.7287858", "0.7180148", "0.70323676", "0.6994461", "0.6992362", "0.6918429", "0.6900218", "0.6789053", "0.6789053", "0.6735386", "0.66762847", "0.66464865", "0.6554916", "0.653487", "0.6464919", "0.6464919", "0.63277215", "0.6305817", "0.62843055", "0.6283756", "0.6274526",...
0.75750643
0
Return whether this scope contains at least one variable that matters for reference counting.
def qXjy(YKHO, Itz3=False): for SRYB in YKHO.variables: if SRYB.type.is_refcounted: return True return Itz3 and any((KCHu.has_refcounted_vars(True) for KCHu in YKHO.sub_scopes))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXaI(YKHO):\n return YKHO.global_var_count > 0", "def lZCI(YKHO):\n return bool(YKHO.names)", "def AlZS(YKHO):\n return True", "def s2ni(YKHO):\n return len(YKHO.refs) == 0", "def Iifd(YKHO, *vars):\n ZWCE = nxUh(vars)\n if not ZWCE:\n return YKHO.global_var_count > 0\n retu...
[ "0.714008", "0.7091825", "0.6903839", "0.68998796", "0.6869286", "0.67011434", "0.66838574", "0.6653261", "0.66468626", "0.6596833", "0.6579665", "0.656997", "0.6567388", "0.6533274", "0.65028703", "0.647971", "0.6477663", "0.646041", "0.64515954", "0.6434466", "0.6394592", ...
0.7872215
0
Create a child scope for this block and return a context manager to make it the current scope temporarily.
def CJQ4(YKHO): yield YKHO.push() YKHO.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDvL(YKHO, mWFP: str):\n YKHO.push_scope(mWFP)\n yield YKHO\n YKHO.pop_scope()", "def kI2V(YKHO):\n H1NV = YWRJ(decorators=YKHO.decorators, is_loop=True, parent_scope=YKHO)\n YKHO.add_loop(H1NV)\n return H1NV", "def DMw_(YKHO):\n if YKHO._scope is not None:\n raise Exception('Ca...
[ "0.69102895", "0.6868774", "0.6826669", "0.67865425", "0.6765283", "0.67560107", "0.66250503", "0.65605414", "0.65077215", "0.64705884", "0.64457566", "0.6288967", "0.6227147", "0.6168405", "0.61649865", "0.61375207", "0.61358136", "0.61053723", "0.60744977", "0.6034735", "0....
0.0
-1
Check that all variables are associated to a scope. Raise an AssertionError if it is not the case.
def ij3d(YKHO): for SRYB in YKHO.local_vars.values(): assert SRYB._scope, '{} has no scope'.format(SRYB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uC2a():\n assert False", "def CBCf(YKHO):\n assert len(YKHO.support_vars) == YKHO.n_support_vars\n if YKHO.ordered_vars is not None:\n assert len(YKHO.ordered_vars) == YKHO.n_vars\n assert len(YKHO.var_ids) == YKHO.n_support_vars\n assert len(YKHO.permuted_var_ids) == YKHO.n_support_var...
[ "0.68322533", "0.68242484", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136", "0.64830136"...
0.8258084
0
Return the list of all scopes in this repository.
def JBOc(YKHO): def afYC(KCHu): return KCHu.sub_scopes return N4sZ.ltree_nodes(YKHO.root_scope, afYC, afYC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uC2a(YKHO):\n return YKHO._scopes", "def uC2a(YKHO):\n return YKHO.__scopes", "def GKWL(YKHO):\n return YKHO._create_scopes()", "def GKWL(YKHO):\n return YKHO._create_scopes()", "def uC2a(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'scopes')", "def uC2a(YKHO) -> bdIy[str]:\n return ...
[ "0.8362179", "0.82096887", "0.8090461", "0.8090461", "0.8048065", "0.8048065", "0.8048065", "0.80375636", "0.7988569", "0.79072404", "0.77805424", "0.7735276", "0.75102293", "0.7509019", "0.73025465", "0.7293126", "0.7230557", "0.721058", "0.71798813", "0.700808", "0.6986072"...
0.743078
14
Finds the [R|t] camera matrix
def tUqt(YKHO): KkY2, o4sw, UNkU = oyIN.linalg.svd(YKHO.E) XcU5 = oyIN.array([0.0, -1.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0]).reshape(3, 3) XSps = [] G9QF = [] for YRbF in range(len(YKHO.Fmask)): XSps.append(YKHO.K_inv.dot([YKHO.match_pts1[YRbF][0], YKHO.match_pts1[YRbF][1], 1.0])) G9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wU6K(A3Vt, a1PO, nMvt):\n if isinstance(A3Vt, oyIN.ndarray):\n return nMvt @ A3Vt.T @ oyIN.concatenate((oyIN.eye(3), -a1PO.reshape(3, 1)), axis=1)\n else:\n return nMvt @ A3Vt.T @ ht2j.cat((ht2j.eye(3), -a1PO.view(3, 1)), dim=1)", "def LLZN(cQpd, lZ9I, nMvt):\n Ylbp = XC5k.Rodrigues(cQ...
[ "0.73276407", "0.694639", "0.68568903", "0.6845069", "0.68200284", "0.6783997", "0.673407", "0.6728407", "0.6628466", "0.6496827", "0.64899486", "0.6481625", "0.64262414", "0.63571376", "0.62275803", "0.6220898", "0.61781836", "0.61588395", "0.61012363", "0.6099758", "0.60971...
0.7507416
0
View function for home page of site
def d6pt(QePW): return _1tc(QePW, 'index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'welcome.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "d...
[ "0.8553112", "0.8394067", "0.8377579", "0.83610994", "0.83610994", "0.82983655", "0.82936215", "0.82816446", "0.82586265", "0.8258097", "0.82552826", "0.8253744", "0.82336736", "0.81822497", "0.81822497", "0.8180565", "0.8166844", "0.8166844", "0.8166844", "0.81657726", "0.81...
0.0
-1
Returns the absolute path of a file
def DMrX(uRP3): return a9eO.image.load(pmON.join(pmON.dirname(xAKo), uRP3))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUeQ(pmON):\n return Hy7s.path.abspath(pmON)", "def ibch(YKHO, pmON):\n return Hy7s.path.join(YKHO.root_dir, pmON)", "def BpbB(nUeQ):\n SOoY = Hy7s.path.abspath(Hy7s.path.expanduser(str(nUeQ)))\n return oAb3.Path(SOoY)", "def _cEU(YKHO, nUeQ):\n return Hy7s.path.join(YKHO._path, nUeQ)", ...
[ "0.82685506", "0.8158124", "0.81216085", "0.8096069", "0.80884326", "0.80837905", "0.804579", "0.79453385", "0.79445684", "0.78764427", "0.78337073", "0.78192586", "0.7805268", "0.77987355", "0.77807677", "0.7764872", "0.7753881", "0.7737618", "0.7726394", "0.7724446", "0.772...
0.0
-1
Generate a product URI based on its ID.
def zFlQ(Mc9N): return nKyW('route_get_product', pid=Mc9N, _external=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hKhs(YKHO, Mc9N: str):\n return YKHO.url_template.format(YKHO.database, Mc9N)", "def CBzR(YKHO, Mc9N):\n return gxEw('product:product-detail', args=[Mc9N])", "def CBzR(YKHO, Mc9N):\n return gxEw('product:product-detail', args=[Mc9N])", "def nzBm(YKHO, KmYg=None):\n if KmYg is None:\n K...
[ "0.7396551", "0.70198464", "0.70198464", "0.6472607", "0.63860285", "0.633616", "0.6287968", "0.6284981", "0.62289107", "0.6167652", "0.6114907", "0.61070085", "0.61008734", "0.60833013", "0.6074247", "0.60686296", "0.6028418", "0.6028418", "0.6028418", "0.59980834", "0.59674...
0.857568
0
Returns a slim view all the descendants of a set of content nodes (as designated by the passed in ids). In addition to id, title, kind, and content_id, each node is also annotated with the ancestor_id of one of the ids that are passed into the request. In the case where a node has more than one ancestor in the set of c...
def B5QF(YKHO, QePW): A07C = YKHO.request.query_params.get('ids', None) if not A07C: return oGir([]) A07C = A07C.split(',') eJTR = YKHO.request.query_params.get('descendant_kind', None) Ziit = FYrf.ContentNode.objects.filter_by_uuids(A07C).filter(available=True) nPrm = [] for Q6kx in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gEYm(A07C):\n z2V1 = ['ScientificName', 'Rank', 'TaxId']\n H5ew = Hy7s.environ.get('ENTREZ_KEY')\n if H5ew is None:\n raise Exception('ENTREZ_KEY is not defined')\n if not isinstance(A07C, list):\n A07C = [A07C]\n Cwtl = ','.join([str(WKvO) for WKvO in A07C])\n qIxc = {'db': 'ta...
[ "0.5865982", "0.55773395", "0.5458027", "0.5337661", "0.53375953", "0.52600384", "0.5178158", "0.51776606", "0.5167369", "0.51654905", "0.5160304", "0.5116634", "0.50827485", "0.5074813", "0.50622743", "0.50273764", "0.5024404", "0.500924", "0.49986824", "0.49902722", "0.4968...
0.7335385
0
Reduce the loss dictionary from all processes so that process with rank 0 has the averaged results. Returns a dict with the same fields as loss_dict, after reduction.
def zD6D(WdtA): aDYX = OZRt() if aDYX < 2: return WdtA with ht2j.no_grad(): ZDdy = [] s_xK = [] for G1Hx in sorted(WdtA.keys()): ZDdy.append(G1Hx) s_xK.append(WdtA[G1Hx]) s_xK = ht2j.stack(s_xK, dim=0) pImw.reduce(s_xK, dst=0) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zD6D(WdtA: dict) -> dict:\n aDYX = VVSc()\n if aDYX < 2:\n return WdtA\n with ht2j.no_grad():\n ZDdy = []\n s_xK = []\n for G1Hx in sorted(WdtA.keys()):\n ZDdy.append(G1Hx)\n s_xK.append(WdtA[G1Hx])\n s_xK = ht2j.stack(s_xK, dim=0)\n pImw...
[ "0.68155795", "0.6769588", "0.6205399", "0.5919144", "0.5774359", "0.5768399", "0.57341856", "0.5716685", "0.5600858", "0.5593623", "0.5582559", "0.5570074", "0.55043256", "0.55039597", "0.5503266", "0.54925424", "0.54820806", "0.54549646", "0.54537463", "0.5412791", "0.53925...
0.6788641
2
Loads a saved compiled model.
def uyMl(YKHO, gXgy): if YKHO.model == None: YKHO.model = uyMl(gXgy) return print('errs') return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n return", "def uyMl(YKHO, pmON):\n YKHO.model = uyMl(pmON)\n YKHO.compiled = True\n YKHO.fitted = True", "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl():\n with open(GPtr.root + '/main/model.bin', 'rb') as vJOV:\n C3ST = t2lc.load(vJOV)\n return C3ST", ...
[ "0.78149784", "0.7789671", "0.76839465", "0.76839465", "0.7660442", "0.75227416", "0.7497233", "0.7497233", "0.7497233", "0.7497233", "0.7469262", "0.74525666", "0.74459195", "0.7410877", "0.7410877", "0.7410877", "0.7403464", "0.739611", "0.73832715", "0.733963", "0.7335951"...
0.75863147
5
Resets the current model in memory.
def OWfQ(YKHO): if YKHO.model != None: YKHO.model = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.model.reset()", "def OWfQ(YKHO):\n raise NotImplementedError", "def OWfQ(YKHO):\n raise NotImplementedError", "def SiRx(YKHO):\n YKHO.model = None\n YKHO.iter_info = {}", "def OWfQ(YKHO):\n YKHO.Model = jth9.deepcopy(YKHO.OriginalModel)", "def SiRx(YKHO):\n YKH...
[ "0.85787076", "0.84402233", "0.84402233", "0.82226723", "0.80893725", "0.79208827", "0.7915937", "0.7745007", "0.7630852", "0.7624136", "0.7608309", "0.75183254", "0.74786544", "0.74585575", "0.74378586", "0.7426817", "0.7421493", "0.7407535", "0.74041337", "0.74033916", "0.7...
0.8378411
3
Set the script hash to the specified value.
def _dp7(YKHO, WJZZ): YKHO._scriptHash = WJZZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DgH4(YKHO, PCTN):\n YKHO.hash = PCTN", "def DCza(YKHO):\n pass", "def Tyjm(YKHO, BWXx):\n if YKHO._bin_hash:\n raise RuntimeError('attempt to set non-null hash')\n YKHO._bin_hash = bytes(MRxC.a2b_hex(BWXx))", "def hash(YKHO, hash):\n YKHO._hash = hash", "def hash(YKHO, hash):\n ...
[ "0.70753425", "0.70237076", "0.6581283", "0.64539987", "0.64539987", "0.64539987", "0.64539987", "0.63961995", "0.6337478", "0.6071653", "0.5959423", "0.5897467", "0.5896915", "0.5877787", "0.5863271", "0.5784076", "0.5778786", "0.57773894", "0.57275665", "0.57029593", "0.570...
0.7663135
0
The delta health policy used by default to evaluate the health of a service type when upgrading the cluster.
def pw_T(YKHO) -> h8nf[qe4Y.Input['ServiceTypeDeltaHealthPolicyArgs']]: return qe4Y.get(YKHO, 'default_service_type_delta_health_policy')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ji8o(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input['ServiceTypeDeltaHealthPolicyArgs']]]]:\n return qe4Y.get(YKHO, 'service_type_delta_health_policies')", "def GuL2(YKHO) -> h8nf[qe4Y.Input['ClusterUpgradeDeltaHealthPolicyArgs']]:\n return qe4Y.get(YKHO, 'delta_health_policy')", "def Cy0s(YKHO) -> h8...
[ "0.78002816", "0.7559906", "0.6603104", "0.65633243", "0.6389096", "0.5964716", "0.5843527", "0.58430505", "0.5684107", "0.54721403", "0.5448213", "0.5412733", "0.5057637", "0.5020668", "0.50168395", "0.4982295", "0.4982295", "0.4982295", "0.4982295", "0.4966895", "0.49652362...
0.79876363
0
The name of the metric.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pO5v(YKHO) -> str:\n return YKHO.__metric_name", "def pO5v(YKHO) -> str:\n return YKHO.__metric_name", "def pO5v(YKHO) -> str:\n return YKHO.__metric_name", "def pO5v(YKHO) -> str:\n return qe4Y.get(YKHO, 'metric_name')", "def pO5v(YKHO) -> str:\n return qe4Y.get(YKHO, 'metric_name')", ...
[ "0.920749", "0.920749", "0.920749", "0.91938037", "0.91938037", "0.91938037", "0.91938037", "0.91938037", "0.91938037", "0.91938037", "0.91938037", "0.91938037", "0.91938037", "0.91938037", "0.905843", "0.90330344", "0.8787051", "0.8745325", "0.86957556", "0.86957556", "0.869...
0.0
-1
The mode used to monitor health during a rolling upgrade. The values are UnmonitoredAuto, UnmonitoredManual, and Monitored.
def rh3D(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'RollingUpgradeMode']]]: return qe4Y.get(YKHO, 'upgrade_mode')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vEk7(YKHO):\n return YKHO._config[lyWs].value", "def yQBk(YKHO):\n return YKHO.pscu.get_humidity_mode(YKHO.sensor_idx)", "def iEAQ(YKHO):\n return YKHO.ask(':MEAS:STAT:MODE?')", "def Tuqy(YKHO):\n return YKHO.status()['state']", "def rh3D(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.ge...
[ "0.71269846", "0.665911", "0.6478704", "0.64627755", "0.6414927", "0.6409427", "0.6409427", "0.6389659", "0.62627524", "0.6256599", "0.62215924", "0.62119985", "0.61450046", "0.6143903", "0.6142184", "0.6142184", "0.6142184", "0.6142184", "0.6125805", "0.610774", "0.6101752",...
0.63062596
8
The principal id of user assigned identity.
def UENi(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'principal_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UENi(YKHO) -> str:\n return qe4Y.get(YKHO, 'principal_id')", "def UENi(YKHO) -> str:\n return qe4Y.get(YKHO, 'principal_id')", "def UENi(YKHO) -> str:\n return qe4Y.get(YKHO, 'principal_id')", "def UENi(YKHO) -> str:\n return qe4Y.get(YKHO, 'principal_id')", "def UENi(YKHO) -> str:\n ret...
[ "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "0.8872766", "...
0.824041
41
The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.
def x0BL(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'health_check_retry_timeout')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RC2Z(YKHO) -> int:\n return qe4Y.get(YKHO, 'retry_duration_sec')", "def pS9K(YKHO):\n vYBr = min(YKHO.failures * 10, 300)\n N8Pq = (qcWV.utcnow() - YKHO.failure_time).total_seconds()\n return int(max(vYBr - N8Pq, 0))", "def deW2(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'health_check_timeo...
[ "0.72216547", "0.70773315", "0.69751275", "0.6913636", "0.6890039", "0.67391187", "0.6691502", "0.66875154", "0.65815556", "0.65815556", "0.65815556", "0.6553876", "0.64507633", "0.63482594", "0.63268703", "0.6283059", "0.62712294", "0.62712294", "0.6231698", "0.62114096", "0...
0.726673
0
Azure active directory client application id.
def UioI(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'client_application')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QG3V(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'client_app_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def Emo9(YKHO) -> ...
[ "0.8161791", "0.78346515", "0.78346515", "0.78346515", "0.7829061", "0.77080655", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509", "0.7503509",...
0.0
-1
Azure active directory cluster application id.
def ajch(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'cluster_application')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def B7c0(YKHO) -> str:\n return qe4Y.get(YKHO, 'app_id')", "def gA4F(YKHO):\n return '49...
[ "0.78472584", "0.78472584", "0.78472584", "0.75916356", "0.75148404", "0.74084926", "0.7332275", "0.7302441", "0.7268887", "0.72544914", "0.72544914", "0.72544914", "0.72544914", "0.72544914", "0.72544914", "0.71858865", "0.7177534", "0.7172141", "0.71658754", "0.71658754", "...
0.6561288
80
Azure active directory tenant id.
def mLXZ(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'tenant_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'tenant_id')", "def mLXZ(YKHO) -> str:\n return qe4Y.get...
[ "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8606273", "0.8275568", "0.8275568", "0.8275568", "...
0.80094784
45
The common name of the client certificate.
def pHEu(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'certificate_common_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MN3X(YKHO):\n return YKHO._certificate_name", "def Hotb(YKHO) -> h8nf[str]:\n if not YKHO._x509:\n return None\n return YKHO._x509.subject.get_attributes_for_oid(ci5q.COMMON_NAME)[0].value", "def jIPd(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'cert_name')", "def wy4N(YKHO) -> ...
[ "0.77255213", "0.7553624", "0.75084335", "0.7461886", "0.7452624", "0.74308455", "0.74308455", "0.7403788", "0.73811567", "0.737768", "0.737768", "0.7349003", "0.73156494", "0.72552484", "0.71712506", "0.7153484", "0.7092814", "0.70666313", "0.70419544", "0.70236826", "0.7018...
0.83881193
0
The cluster delta health policy used when upgrading the cluster.
def GuL2(YKHO) -> h8nf[qe4Y.Input['ClusterUpgradeDeltaHealthPolicyArgs']]: return qe4Y.get(YKHO, 'delta_health_policy')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KEzK(YKHO) -> qe4Y.Input['ClusterHealthPolicyArgs']:\n return qe4Y.get(YKHO, 'health_policy')", "def Ji8o(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input['ServiceTypeDeltaHealthPolicyArgs']]]]:\n return qe4Y.get(YKHO, 'service_type_delta_health_policies')", "def N4RC(YKHO) -> h8nf[qe4Y.Input[GySg[str, ...
[ "0.6640447", "0.62932795", "0.6020576", "0.5992258", "0.57071954", "0.5654498", "0.5410022", "0.5320092", "0.53114754", "0.53084207", "0.51995146", "0.5195502", "0.505837", "0.505837", "0.5025146", "0.50062865", "0.5003841", "0.49529478", "0.49464098", "0.49454188", "0.494541...
0.8178392
0
The Azure storage account name.
def I7Gx(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'storage_account_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I7Gx(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'storage_account_name')", "def I7Gx(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'storage_account_name')", "def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_name')", "def n8Ek(YKHO) -> str:\n return qe4Y.get(YKHO, 'acco...
[ "0.8697351", "0.8315058", "0.7786497", "0.7786497", "0.77129173", "0.754775", "0.7506518", "0.74384445", "0.74384445", "0.7286309", "0.7286309", "0.7286309", "0.7286309", "0.7267558", "0.7239336", "0.7230652", "0.7230652", "0.72176206", "0.71961236", "0.71920013", "0.71879524...
0.8415122
1
The type of managed identity for the resource.
def type(YKHO) -> h8nf[qe4Y.Input['ManagedIdentityType']]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MUAt(YKHO) -> str:\n return qe4Y.get(YKHO, 'identity_management_type')", "def H_dn(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'identity_type')", "def type(YKHO) -> qe4Y.Input[uLKX[str, 'ManagedServiceIdentityType']]:\n return qe4Y.get(YKHO, 'type')", "def type(YKHO) -> qe4Y.Input[uLKX[str, 'Man...
[ "0.8060223", "0.801257", "0.77213925", "0.77213925", "0.7412244", "0.7313696", "0.72228557", "0.7219258", "0.71465135", "0.7138093", "0.71177757", "0.70225006", "0.7021261", "0.7021097", "0.7018301", "0.6937199", "0.6825227", "0.6782672", "0.6760092", "0.6699919", "0.6695912"...
0.82827616
0
Indicates if the node type can only host Stateless workloads.
def lipe(YKHO) -> h8nf[qe4Y.Input[bool]]: return qe4Y.get(YKHO, 'is_stateless')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kUxi(YKHO):\n return True", "def Rr2J(YKHO) -> bool:\n return laHg.cast(bool, YKHO._properties.get('hostNetwork'))", "def kUxi(YKHO):\n if YKHO.is_directory:\n return True\n if YKHO.is_text or YKHO.is_binary:\n return True\n return False", "def nq6E(YKHO):\n if YKHO._check...
[ "0.6480121", "0.6175974", "0.60230684", "0.5971159", "0.58690196", "0.5759849", "0.57390577", "0.5579355", "0.555095", "0.55211174", "0.5503349", "0.55022854", "0.5472897", "0.5464825", "0.54591155", "0.54370344", "0.54280424", "0.5400275", "0.54002506", "0.53911877", "0.5387...
0.59291637
4
List of targets that subscribe to the notification.
def Ds1G(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]: return qe4Y.get(YKHO, 'receivers')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RH8N(Fv2L):\n return [G5ma.messaging.Target(topic=rlUa, exchange=Fv2L.glance_control_exchange) for rlUa in Fv2L.notification_topics]", "def RH8N(Fv2L):\n return [G5ma.messaging.Target(topic=rlUa, exchange=Fv2L.cinder_control_exchange) for rlUa in Fv2L.notification_topics]", "def RH8N(Fv2L):\n retu...
[ "0.7656826", "0.76093584", "0.7479451", "0.7479451", "0.74680084", "0.74466026", "0.7284164", "0.7277961", "0.71170723", "0.7051302", "0.685623", "0.67979354", "0.6784708", "0.6770071", "0.6769647", "0.67642283", "0.67642283", "0.67642283", "0.67417496", "0.67116785", "0.6691...
0.0
-1
Indicates if the notification is enabled.
def n30Z(YKHO) -> qe4Y.Input[bool]: return qe4Y.get(YKHO, 'is_enabled')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNrN(YKHO) -> qe4Y.Output[h8nf[bool]]:\n return qe4Y.get(YKHO, 'notifications_enabled')", "def rNrN(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'notifications_enabled')", "def rNrN(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'notifications_enabled')", "def etR_(YKHO) ->...
[ "0.78955483", "0.77642936", "0.77642936", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.765133", "0.75568336", ...
0.0
-1
List of targets that subscribe to the notification.
def SUqo(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input['NotificationTargetArgs']]]: return qe4Y.get(YKHO, 'notification_targets')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RH8N(Fv2L):\n return [G5ma.messaging.Target(topic=rlUa, exchange=Fv2L.glance_control_exchange) for rlUa in Fv2L.notification_topics]", "def RH8N(Fv2L):\n return [G5ma.messaging.Target(topic=rlUa, exchange=Fv2L.cinder_control_exchange) for rlUa in Fv2L.notification_topics]", "def RH8N(Fv2L):\n retu...
[ "0.7656826", "0.76093584", "0.7479451", "0.7479451", "0.74680084", "0.74466026", "0.7277961", "0.71170723", "0.7051302", "0.685623", "0.67979354", "0.6784708", "0.6770071", "0.6769647", "0.67642283", "0.67642283", "0.67642283", "0.67417496", "0.67116785", "0.6691937", "0.6691...
0.7284164
6
The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName.
def ht58(YKHO) -> qe4Y.Input[uLKX[str, 'ServiceCorrelationScheme']]: return qe4Y.get(YKHO, 'scheme')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, *, ht58: pulumi.Input[Union[str, 'ServiceCorrelationScheme']], bSEa: pulumi.Input[str]):\n qe4Y.set(Ro_8, 'scheme', ht58)\n qe4Y.set(Ro_8, 'service_name', bSEa)", "def TtcU(YKHO):\n return YKHO.__reference", "def TMDr(YKHO, S1R7, zuPL):\n EBgd = YKHO.parameters()[S1R7]\n HpuQ = YK...
[ "0.66646075", "0.50347257", "0.49511394", "0.49316156", "0.48776805", "0.48758215", "0.48663148", "0.4857119", "0.480975", "0.480975", "0.4740915", "0.47380173", "0.47263265", "0.4721625", "0.47164673", "0.47047982", "0.4689393", "0.46813807", "0.46721628", "0.4632317", "0.46...
0.7285481
0
The name of the service that the correlation relationship is established with.
def bSEa(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'service_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return 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:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, ...
[ "0.7979678", "0.7882828", "0.7882828", "0.7882828", "0.7882828", "0.7723426", "0.76136905", "0.76136905", "0.76136905", "0.76136905", "0.7596288", "0.7596288", "0.74777806", "0.74777806", "0.745178", "0.74387634", "0.7433717", "0.72608", "0.7183217", "0.7183217", "0.71637726"...
0.7290757
18
The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive.
def mWFP(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pO5v(YKHO) -> str:\n return qe4Y.get(YKHO, 'metric_name')", "def pO5v(YKHO) -> str:\n return qe4Y.get(YKHO, 'metric_name')", "def pO5v(YKHO) -> str:\n return qe4Y.get(YKHO, 'metric_name')", "def pO5v(YKHO) -> str:\n return qe4Y.get(YKHO, 'metric_name')", "def pO5v(YKHO) -> str:\n return ...
[ "0.75707775", "0.75707775", "0.75707775", "0.75707775", "0.75707775", "0.75707775", "0.75707775", "0.75707775", "0.75707775", "0.75707775", "0.75707775", "0.75424147", "0.75424147", "0.75424147", "0.74366397", "0.73085696", "0.7288752", "0.7288752", "0.7288752", "0.72731304", ...
0.0
-1
Cummulative Distribution Function, which gives the cummulative probability (area under the probability curve) from infinity or 0 to a give xvalue on the xaxis where yaxis is the probability.
def NFei(YKHO, WKvO): a1PO = (WKvO - YKHO._mean) / YKHO.stdev jzdc = m6J4(YKHO.df / 2.0, 0.5, YKHO.df / (YKHO.df + a1PO * a1PO)) if a1PO > 0: return 1 - 0.5 * jzdc else: return 0.5 * jzdc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SCAk(YKHO, *EcVT):\n if not isinstance(EcVT, oyIN.ndarray):\n EcVT = oyIN.squeeze(EcVT).astype(float)\n oWYY = EcVT < YKHO.low\n dJjA = oyIN.logical_and(EcVT >= YKHO.low, EcVT <= YKHO.high)\n mDkn = EcVT > YKHO.high\n aeII = 0\n\n def o8m8(WKvO):\n return (WKvO - YKHO.low) / (YK...
[ "0.72023964", "0.71427673", "0.6873148", "0.6865903", "0.675914", "0.66890746", "0.66867226", "0.6683346", "0.6678745", "0.66661334", "0.6638682", "0.65186685", "0.6484184", "0.6482481", "0.64799976", "0.6454782", "0.6432026", "0.64054865", "0.6369545", "0.63669735", "0.63456...
0.5952765
62
It does the reverse of CDF() method, it takes a probability value and returns the corresponding value on the xaxis, together with the cumulative probability.
def s1CB(YKHO, Q7Be, yKcO=-10.0, Os4s=10.0, P1dF=1e-07): if abs(YKHO.CDF(yKcO) - Q7Be) < P1dF: return (yKcO, YKHO.CDF(yKcO)) if Q7Be < YKHO.CDF(yKcO): return YKHO.inverseCDF(Q7Be, yKcO - 10, yKcO, P1dF) if Q7Be > YKHO.CDF(yKcO) and Q7Be < YKHO.CDF((yKcO + Os4s) / 2): return YKHO.inve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzER(YKHO, WKvO):\n return YKHO.distr.cdf(WKvO)", "def YzER(YKHO, BWXx):\n return YKHO._normal.cdf(BWXx)", "def LPXN(YKHO, WKvO):\n MsVA = [mWFP for mWFP, QTBn in YKHO.states()]\n KDR1 = rLdf.DataFrame(index=WKvO.index, columns=MsVA)\n for U6D_ in KDR1.index:\n for rlcK, QTBn in YKHO....
[ "0.72509724", "0.7201042", "0.6974462", "0.6963937", "0.6924936", "0.68882304", "0.6873599", "0.68540496", "0.67685", "0.6701299", "0.6701246", "0.6667059", "0.6611389", "0.65868795", "0.658632", "0.65764695", "0.6575589", "0.65743214", "0.6553336", "0.65281355", "0.65261805"...
0.0
-1
computes the sum of squared elements in v
def Lzxs(Ty9i): return sum((nFf2 ** 2 for nFf2 in Ty9i))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lzxs(Ty9i):\n return BJ1H(Ty9i, Ty9i)", "def Lzxs(Ty9i):\n return BJ1H(Ty9i, Ty9i)", "def Lzxs(Ty9i):\n return BJ1H(Ty9i, Ty9i)", "def Lzxs(Ty9i):\n return BJ1H(Ty9i, Ty9i)", "def Lzxs(Ty9i):\n return BJ1H(Ty9i, Ty9i)", "def Lzxs(Ty9i):\n return BJ1H(Ty9i, Ty9i)", "def Lzxs(Ty9i):...
[ "0.8776641", "0.8731277", "0.8731277", "0.8731277", "0.8731277", "0.8731277", "0.8698611", "0.86918205", "0.86701304", "0.8660179", "0.86595786", "0.864459", "0.8633228", "0.86024225", "0.7922015", "0.7595223", "0.7329645", "0.7270708", "0.7186856", "0.71435684", "0.71435684"...
0.8558148
14
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
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses.
def kblH(*qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_(YKHO):\n print('Subclass and over-ride this method.')", "def FIMM(YKHO):\n super().__init__(None)", "def FIMM(YKHO):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2...
[ "0.7978994", "0.7120676", "0.7114939", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", "0.70904213", ...
0.0
-1
Get a normalized result for the specified class. Get a normalized result for the specified class. Currently supported classes are only one, 'status'. This returns a single value which defines the class the example belongs to.
def ZvYj(Aofo, vyBi='status'): if vyBi == 'status': jGRS = Aofo['status'] TE3b = [0, 'Success'] jGRS = 0 if jGRS in TE3b else 1 return jGRS else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NhJA(Aofo, mZy_=5500, Crrw=None, vyBi='status'):\n PU1l = rm3u(Aofo, mZy_)\n jGRS = ZvYj(Aofo, vyBi)\n iArr, Crrw = c0SB(PU1l, mZy_, Crrw)\n return (iArr, jGRS, Crrw)", "def iiCv(YKHO, PU1l):\n return YKHO.__get_classification(YKHO.__root, PU1l)", "def P5Kx(YKHO, _2sc):\n wXuO = YKHO.metr...
[ "0.6040157", "0.551896", "0.54955465", "0.53776664", "0.5371579", "0.53472155", "0.525591", "0.5254471", "0.5249211", "0.5240008", "0.52381736", "0.5174421", "0.51681715", "0.51094764", "0.50974935", "0.50542784", "0.5045098", "0.5040378", "0.5036795", "0.4999959", "0.4997812...
0.6553335
0
Normalize features in a dataset Normalize each feature in a dataset. If e is the number of examples we have in the dataset, and f is the number of features, this takes as input a np ndarray with shape (e, f). The output is an np ndarray with shape (e, f) where data for each feature is normalized based on values across ...
def XsvO(_73Q, Crrw, NArs=None): UkMO = oyIN.ndarray(shape=(_73Q.shape[1], _73Q.shape[0])) NArs = NArs or {} for exwG in range(len(Crrw)): print('Normalizing feature %d of %d' % (exwG + 1, len(Crrw)), end='\r', flush=True) ZhkN = _73Q[:, exwG] if Crrw[exwG] in NArs: sJTg,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FvYh(__n6, bySB):\n for eHNT in bySB:\n Y5YY = txNa()\n Y5YY.fit(__n6[eHNT].values.reshape(-1, 1))\n __n6[eHNT] = Y5YY.transform(__n6[eHNT].values.reshape(-1, 1))\n return __n6", "def ydI2(g4y1):\n for YRbF in range(g4y1.shape[1]):\n g4y1[:, YRbF] -= oyIN.mean(g4y1[:, YRb...
[ "0.78474617", "0.7683086", "0.7500416", "0.74644613", "0.74489874", "0.7398855", "0.7340006", "0.7329268", "0.72877216", "0.72324896", "0.72071", "0.7195591", "0.7175437", "0.7164206", "0.71599907", "0.7114275", "0.7113806", "0.7112436", "0.7062652", "0.7036033", "0.7032195",...
0.7416819
5
Checks whether the scope of the JWT token in req has access to this view.
def P3Bs(Emd4, qv1X, Ydxt): KkxT = Emd4._extract_token(qv1X) rrBf = Emd4._get_scope(KkxT) if rrBf == Ydxt: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHTF(YKHO, QePW, tTee):\n if isinstance(QePW.user, PgX7):\n return True\n return super().has_permission(QePW, tTee)", "def qHTF(YKHO, QePW, tTee):\n eOtH = QePW.META.get(rLF8, '')\n if not eOtH or not E4Up:\n return False\n rJDA = QGEN.objects.filter(token=eOtH, revoked=False).fi...
[ "0.7391194", "0.7306747", "0.7287862", "0.7203113", "0.7181693", "0.71378046", "0.7083402", "0.7058641", "0.7057991", "0.7054326", "0.704525", "0.69936055", "0.6978709", "0.69741285", "0.69718045", "0.69718045", "0.69681", "0.69658655", "0.6963453", "0.6963453", "0.6961729", ...
0.75211746
0
Standard 401 response for invalid token
def l5cG(Emd4): return oGir(data={'error': 'Invalid token provided. Token lacks required scope.'}, status=jGRS.HTTP_401_UNAUTHORIZED)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p_Hn():\n return ({'errors': ['Unauthorized']}, 401)", "def p_Hn():\n return ({'errors': ['Unauthorized']}, 401)", "def ylVm():\n return p_Hn('Invalid credentials')", "def FSPR():\n return p5oO()", "def Euyv():\n return oGir('This TOken is no longer valid\\nPlease Re login', 409, {'WWW-A...
[ "0.78919125", "0.78919125", "0.78345424", "0.7827084", "0.78185546", "0.78185546", "0.7770473", "0.77335894", "0.76815885", "0.7633253", "0.7619703", "0.7602643", "0.7600006", "0.75900453", "0.756497", "0.75611037", "0.7542075", "0.7506186", "0.7503553", "0.7503553", "0.75013...
0.7986205
0
Post endpoint to check if email has an associated EndUser Account. Email should be in the body of the post with an "email" key.
def eLpg(YKHO, qv1X, *qIxc, **B2fa): TBsA = qQXR.loads(str(qv1X.body, encoding='utf-8')) try: sIzh = hRiQ.objects.get(email=TBsA['email']) except rIt9: return oGir(status=jGRS.HTTP_204_NO_CONTENT) if sIzh is None: return oGir(status=jGRS.HTTP_204_NO_CONTENT) return oGir(statu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lvg3(YKHO):\n geh0 = YKHO.client.post(YKHO.checkEmailURL, qQXR.dumps(YKHO.data), content_type='application/json', HTTP_X_REQUESTED_WITH='XMLHttpRequest')\n YKHO.assertEqual(geh0.status_code, 200)", "def sgGf():\n D3lj = BfDw.sanitize_user_input(QePW.form.get('email'))\n PObu = BfDw.sanitize_user_...
[ "0.7033913", "0.6991749", "0.69285965", "0.6860185", "0.6717839", "0.6612811", "0.6607033", "0.6535474", "0.64900434", "0.6486156", "0.64788985", "0.64694387", "0.64311045", "0.6421926", "0.63989735", "0.63772535", "0.63712204", "0.6305261", "0.62943053", "0.6276319", "0.6270...
0.6663264
5
Returns True if obj children are all views sharing self data.
def I1TS(Emd4, YEnM, *, gQvp=None): for IPme, Npgh in YEnM.child.items(): for khtY in IPme: if not khtY[0].__name__ in Emd4.AUTOUPDATE: if not Npgh is gQvp: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PEcO(YKHO):\n return YKHO.other != []", "def fHyf(YKHO, YEnM):\n if isinstance(YEnM, (YZpu.RenderWindow, YZpu.Renderer, YZpu.Collection)):\n return True\n for xC3W in ['source', 'get_input', 'input', 'mapper', 'property', 'texture', 'text_property', 'volume_property', 'lookup_table', 'produce...
[ "0.685671", "0.68456954", "0.6832361", "0.682969", "0.67780167", "0.67557776", "0.6746412", "0.67427546", "0.6676954", "0.6651838", "0.6648911", "0.66356766", "0.6621148", "0.65929735", "0.65631723", "0.6550367", "0.65318096", "0.6529043", "0.6506182", "0.6491494", "0.6480874...
0.59728277
71
Tells if an image is encoded as grayscale
def E4ec(Emd4, VXjJ): if issubclass(type(VXjJ), ysAg): return VXjJ.colorspace == 'GRAY' if not issubclass(type(VXjJ), oyIN.ndarray): raise ValueError('is_grayscale: img must be a numpy array or an instance of a derivative class.') zNig = VXjJ.shape if zNig[-1] == 3: return False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fin2(LNo8):\n try:\n LNo8.getchannel(1)\n return False\n except ValueError:\n return True", "def Z4dW(LNo8):\n jzdc = LNo8[:, :, 0] == LNo8[:, :, 1]\n Fg_i = LNo8[:, :, 1] == LNo8[:, :, 2]\n Z9rn = jzdc == Fg_i\n if Z9rn.all():\n return 'GRAY'\n else:\n ...
[ "0.83043474", "0.8163241", "0.7827192", "0.7692514", "0.75459254", "0.7516657", "0.7302218", "0.7302218", "0.7297168", "0.7297168", "0.7297168", "0.7297168", "0.7297168", "0.72563463", "0.7207559", "0.7198216", "0.7164754", "0.713415", "0.713415", "0.713415", "0.713415", "0...
0.7606698
4
Takes a list of RoadImage objects and returns a collection. It also accepts a list of collections, but they must have the same structure. In this case, a one dimension higher collection is returned, unless concat is True, in which case make_collection accepts collections having axis 0 of different lengths (they are con...
def VCZR(Emd4, yv6U, zNig=None, yDqo=None, ENFq=False): if len(yv6U) == 0: raise ValueError('RoadImage.make_collection: List lst must not be an empty list.') for YRbF, VXjJ in enumerate(yv6U): if not issubclass(type(VXjJ), ysAg): raise ValueError('RoadImage.make_collection: List elem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzEN(xUwc):\n return xUwc.toList(xUwc.size())", "def ENFq(*xkjI):\n if len(xkjI) < 2:\n raise ValueError('Must pass at least 2 imagery objects to concat() not {}.'.format(len(xkjI)))\n for VXjJ in xkjI:\n if not isinstance(VXjJ, (hnIv, MksB)):\n raise TypeError(\"Argument 'i...
[ "0.6407235", "0.571243", "0.56692815", "0.5622943", "0.5622686", "0.55796576", "0.5493672", "0.54474753", "0.5384855", "0.5380228", "0.5366035", "0.523703", "0.519801", "0.5164754", "0.5164546", "0.5146764", "0.5135222", "0.50994927", "0.5048149", "0.504348", "0.50232005", ...
0.87536883
0
In case of crop of crop, the crop_area variable only contains the crop relative to the immediate parent. This utility method computes the crop area relative to any parent.
def qUK6(YKHO, _AKB): if YKHO.ndim < 3: raise ValueError('RoadImage.get_crop: image must have shape (height,width,channels).') XP5J = YKHO o4D3 = 0 si3g = 0 ajwV = YKHO.shape[-2] skBL = YKHO.shape[-3] while not XP5J is None and (not XP5J is _AKB): if not XP5J.crop_area is Non...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n if ML2l(YKHO.height, YKHO.width) == 1:\n return (YKHO.height - 1) * (YKHO.width - 1) / 2 - sum(YKHO.path)\n else:\n return YKHO.max_area() - sum(YKHO.path)", "def sAdl(YKHO):\n return YKHO._area", "def f0tD(YKHO):\n return (YKHO.xmax - YKHO.xmin) * (YKHO.ymax - YKHO....
[ "0.61699307", "0.60476744", "0.60169953", "0.5991651", "0.59874517", "0.5987222", "0.5987222", "0.5968707", "0.59575766", "0.59524405", "0.58873534", "0.58873534", "0.5871784", "0.58664984", "0.58628833", "0.58538514", "0.583317", "0.5797165", "0.57832944", "0.5779443", "0.57...
0.7024996
0
Display image using matplotlib.pyplot. cmap is a colormap from matplotlib library. It is used only for single channel images and sensible defaults are provided.
def nUHY(YKHO, jDK_, *, iMGt=None, Cwt5=True, leAC=None): m7Jc = ysAg.image_channels(YKHO) if not m7Jc in [1, 3, 4]: raise ValueError('RoadImage.show: Can only display single channel, RGB or RGBA images.') TLbF = YKHO.flatten() if TLbF.shape[0] != 1: raise ValueError('RoadImage.show: Can...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUHY(LNo8, iMGt='gray'):\n LZpg, aNZO = QrM1.subplots()\n aNZO.imshow(LNo8, cmap=iMGt)\n QrM1.show()\n QrM1.close()", "def nUHY(YKHO, **B2fa):\n iMGt = B2fa.pop('cmap', 'gray')\n LZpg, aNZO = QrM1.subplots()\n aNZO.imshow(YKHO.data, cmap=iMGt, **B2fa)\n QrM1.show()", "def p1dx(LNo8)...
[ "0.8163397", "0.7579909", "0.7427342", "0.7419117", "0.7334344", "0.73050356", "0.7171228", "0.71653044", "0.7159827", "0.6950868", "0.69445205", "0.68371916", "0.68212986", "0.6796824", "0.6788167", "0.6712893", "0.6708299", "0.6697331", "0.6692574", "0.6692574", "0.66807485...
0.6631758
31
Return a RoadImage with the same shape as self, but only one channel. The returned RoadImage shares its underlying data with self. channel() is recorded as a channels() operation.
def YwkQ(YKHO, exwG): return YKHO.channels(range(exwG, exwG + 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n U5bT = oyIN.copy(YKHO).view(ysAg)\n U5bT.__array_finalize__(YKHO)\n U5bT.binary = YKHO.binary\n return U5bT", "def UZGQ(YKHO) -> YBa6.Road:\n return YKHO", "def NFjP(YKHO):\n fUYa, mKKX = (YKHO._quant(YKHO._extent.xmin), YKHO._quant(YKHO._extent.xmax))\n bEXe, zHpD = (YKH...
[ "0.645111", "0.6156437", "0.61423665", "0.6112362", "0.58767194", "0.5856012", "0.57869864", "0.57434535", "0.56835383", "0.56169134", "0.5613251", "0.55570483", "0.5518356", "0.54947805", "0.5442884", "0.5411755", "0.5360962", "0.53557557", "0.53458023", "0.534219", "0.52959...
0.0
-1
Returns a RoadImage with the same shape as self, but only channels n to m. If m is larger than the number of channels in self, zeroed channels are added. For instance on a RGB image, channels(2,5) will place the blue channel of the source image in the red channel of the destination image, and will add two zeroed channe...
def xMux(YKHO, exwG, r8hN=None, *, ev29=True): try: xlLU = exwG exwG = xlLU.start r8hN = xlLU.stop YPaw = xlLU.step except AttributeError as e: try: if r8hN is None: r8hN = exwG + 1 YPaw = 1 xlLU = range(exwG, r8hN, YPaw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OxUo(YKHO, rFXh, DYuh, tYiq, ivFb=1, ipte=True):\n gEmA = []\n for YRbF in range(rFXh):\n gEmA.append(U78l.Conv2d(DYuh, tYiq, kernel_size=3, dilation=ivFb, padding=ivFb))\n if YRbF != rFXh - 1 or ipte:\n gEmA.append(U78l.ReLU(inplace=True))\n DYuh = tYiq\n return U78l.S...
[ "0.594894", "0.58328885", "0.5776689", "0.5757387", "0.5737485", "0.570263", "0.5607552", "0.5573824", "0.55557525", "0.5530608", "0.5476832", "0.54674125", "0.54607815", "0.539916", "0.53304565", "0.5323427", "0.5321566", "0.5311168", "0.5303918", "0.5297748", "0.5282902", ...
0.7851392
0
Convert to integer. Gradient images are converted to [127;+127] in int8 format.
def UnH3(YKHO): if YKHO.dtype == oyIN.uint8 or YKHO.dtype == oyIN.uint8: return YKHO if oyIN.max(YKHO) > 1.00196: raise ValueError('RoadImage.to_int: maximum value of input is greater than one.') if YKHO.gradient: if oyIN.min(YKHO) < -1.011: raise ValueError('RoadImage.to...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oVG5(LNo8):\n LNo8 = (LNo8 - LNo8.min()) * 255 / (LNo8.max() - LNo8.min())\n return oyIN.uint8(LNo8)", "def b1y8(VXjJ):\n jvuA = ZylS.reduce_max(VXjJ, axis=[1, 2, 3], keepdims=True)\n xYNz = ZylS.reduce_min(VXjJ, axis=[1, 2, 3], keepdims=True)\n y5FN = ZylS.cast(255.0 * (VXjJ - xYNz) / (jvuA -...
[ "0.7653305", "0.7644968", "0.68755716", "0.66599107", "0.6547149", "0.65297294", "0.6453003", "0.63939893", "0.63803345", "0.6255411", "0.62423825", "0.6220323", "0.6215448", "0.62142146", "0.6198109", "0.6166466", "0.61531186", "0.61524457", "0.61450684", "0.6109382", "0.610...
0.7504098
2
Convert to floating point format (occurs automatically when taking gradients). Conversion to float assumes input integer values in range 128 to 127 for gradients, or else 0 to 255. Absolute value of gradients are converted like gradient, and will fit in [0;127] as integers, and [0;1] as fp.
def jhGN(YKHO): if YKHO.dtype == oyIN.float32 or YKHO.dtype == oyIN.float64: return YKHO if YKHO.gradient: if YKHO.dtype == oyIN.uint8 and oyIN.max(YKHO) > 127: qmLP.warn('Warning: RoadImage.to_float: maximum value of gradient input is greater than 127.', RuntimeWarning) X6rE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gBe3(LNo8):\n return LNo8.astype('float64') / 255.0", "def jhGN(WKvO: Tensor) -> llWB:\n return xiuA(WKvO, C6NV.to_float)", "def A2cu(YKHO, LNo8):\n LNo8 = ZylS.image.convert_image_dtype(LNo8, dtype=ZylS.float32)\n return LNo8 / 127.5 - 1.0\n pass", "def jhGN(WKvO):\n return ZylS.cast(W...
[ "0.70189255", "0.6958987", "0.68055296", "0.6708105", "0.6708105", "0.6576136", "0.65675974", "0.65610033", "0.6543395", "0.65216124", "0.6496352", "0.6489048", "0.6482004", "0.6478046", "0.6465783", "0.64637023", "0.6454287", "0.6425529", "0.642334", "0.6421247", "0.64092886...
0.7507799
0
Normalize amplitude of self so that the maximum pixel value is 1.0 (255 for uint8 encoded images). Gradients are normalized taking into account the absolute value of the gradient magnitude. The scaling factor is chosen so that the minimum gradient (negative) scales to 1, or the maximum gradient (positive) scales to 1. ...
def NkkI(YKHO, *, LpaZ=False, cm5m=False, zUny=False): if YKHO.binary: raise ValueError('RoadImage.normalize: Cannot apply normalize() to binary images.') wmQo = oyIN.maximum(YKHO, 0 - YKHO) if cm5m: if zUny: hfRT = wmQo.max(axis=2, keepdims=True) else: hfRT =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e5he(YKHO, inhh, JBMS, M1Jx):\n inhh.data += 1\n inhh.data *= 0.5\n for Z9rn in range(YKHO.ncInput):\n inhh.data[:, Z9rn, :, :] = (inhh.data[:, Z9rn, :, :] - JBMS[Z9rn]) / M1Jx[Z9rn]\n lHmx = inhh.size(0)\n for YRbF in range(lHmx):\n for yuVB in range(YKHO.ncInput):\n wB...
[ "0.6916853", "0.65648186", "0.6514745", "0.65044177", "0.6340647", "0.63353646", "0.63261503", "0.6302826", "0.6287528", "0.62851864", "0.6263129", "0.625386", "0.6250528", "0.62491816", "0.62295496", "0.6214399", "0.61972284", "0.61469686", "0.61237264", "0.61060506", "0.609...
0.73310596
0
Generate a binary mask in uint8 format, or in the format of self if inplace is True. If symgrad is True and self.gradient is True, the mask will also include pixels with values between maxi and mini, of course assuming int8 or float dtype. mini and maxi are the thresholds. They are always expressed as a percentage of f...
def gwAu(YKHO, *, TKGt=None, wmQo=None, Jvdr=True, LpaZ=False): if YKHO.binary: raise ValueError('RoadImage.threshold: Trying to threshold again a binary image.') if TKGt is None and wmQo is None: raise ValueError('RoadImage.treshold: Specify mini=, maxi= or both.') if isinstance(TKGt, float...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z492(YKHO):\n if (YKHO.max_shape[0] or YKHO.max_shape[1]) is None:\n raise NotImplementedError('Generic Pilatus detector does not knowthe max size ...')\n ZHfW = XTiz.zeros(YKHO.max_shape, dtype=XTiz.int8)\n for YRbF in range(YKHO.MODULE_SIZE[0], YKHO.max_shape[0], YKHO.MODULE_SIZE[0] + YKHO.MO...
[ "0.5744795", "0.5744795", "0.5692001", "0.56895095", "0.56002295", "0.5591938", "0.5557553", "0.5385367", "0.53831977", "0.53831977", "0.53348416", "0.53348416", "0.531446", "0.5261302", "0.5260929", "0.5260871", "0.52493477", "0.52238864", "0.5222079", "0.5186048", "0.516815...
0.64782876
0
Differential A' rate per p.o.t. as a function of P and theta
def luaF(XP5J, q7In, ezeG, _hZ2): D5kr = tX1O(XP5J, ezeG, q7In, _hZ2) * eCYx(XP5J, q7In) * wDug(XP5J, q7In) return epAf.fabs(D5kr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xfaL(q7In):\n return -1.0 * oyIN.log(oyIN.tan(q7In / 2.0))", "def qZhL(a1PO, XP5J):\n kXUa = 611.2 * oyIN.exp(17.67 * (a1PO - 273.15) / (a1PO - 29.65))\n umWR = 0.622 * kXUa / (XP5J * 100 - 0.378 * kXUa)\n mLGw = 1 + iB6t * umWR / (lnQQ * a1PO)\n ciZM = 1 + iB6t ** 2 * umWR / (U7YL * QgCr * a1...
[ "0.63777035", "0.6376239", "0.6347701", "0.6332213", "0.6331506", "0.62162757", "0.6182822", "0.6134065", "0.6113459", "0.6110167", "0.6092777", "0.60816723", "0.6037271", "0.60337496", "0.60224223", "0.59736", "0.5950564", "0.5940193", "0.59260154", "0.59182096", "0.5900057"...
0.6082167
11
dNdPdTheta integrated over p and theta
def oXL9(ezeG, _hZ2, m3B5=-0.5 * epAf.pi, RfSx=0.5 * epAf.pi): eAkl = gw3y(luaF, m3B5, RfSx, lambda WKvO: xjPt(ezeG), lambda WKvO: NZz2(ezeG), args=(ezeG, _hZ2)) return eAkl[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def luaF(XP5J, q7In, ezeG, _hZ2):\n D5kr = tX1O(XP5J, ezeG, q7In, _hZ2) * eCYx(XP5J, q7In) * wDug(XP5J, q7In)\n return epAf.fabs(D5kr)", "def q7In(Kt_s, XP5J, y4fz=1000.0):\n return Kt_s * (y4fz / XP5J) ** 0.286", "def xIST(Cwt5):\n gb7z = WKvO.copy()\n gb7z.axpy(Cwt5, XP5J)\n eHNT = Oa10(gb7...
[ "0.7943109", "0.6938134", "0.6531386", "0.65165746", "0.6478382", "0.6381079", "0.6361525", "0.63248354", "0.6269862", "0.6247163", "0.62231666", "0.62187755", "0.6174428", "0.6171133", "0.6139062", "0.613575", "0.61279356", "0.6092101", "0.60364985", "0.5997384", "0.5989765"...
0.0
-1
Tests that a new profile is created.
def SFmy(YKHO): uPxI = 'https://testprofile.example.com/' r7tU = {'data': 'test'} _hkX = YKHO.client.put('{}/profile/{}'.format(YKHO.name, uPxI), data=PjZe(r7tU)) YKHO.assertStatus(_hkX, 200) z39Z = YKHO.entity.profiles.get(schema=uPxI) YKHO.assertEquals(z39Z.to_json()['data'], r7tU['data']) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S7G8(YKHO):\n YKHO.assertTrue(SYRW.objects.exists())", "def ITzg(YKHO):\n nNXP.create_profile(uwaB.PROFILE_DESKTOP)\n QhXp = list(SYRW.objects.all())\n YKHO.assertEqual(len(QhXp), 6)\n YKHO.assertIn(uwaB.PROFILE_DESKTOP, [QMSQ(z39Z) for z39Z in QhXp])\n YKHO.assertEqual(len(QhXp), 6)", "d...
[ "0.8429268", "0.8047201", "0.794817", "0.7923524", "0.7920204", "0.7882164", "0.78711766", "0.7778093", "0.7750501", "0.7712282", "0.77027875", "0.7615161", "0.7591228", "0.75640094", "0.7524763", "0.75225735", "0.7489346", "0.74692357", "0.7455564", "0.74031836", "0.7380626"...
0.71590966
28
Tests that updating a profile with invalid data fails.
def VfWk(YKHO): _hkX = YKHO.client.put('{}/profile/{}'.format(YKHO.name, rCar.__schema__)) YKHO.assertJSONError(_hkX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KEyg(YKHO):\n _hkX = YKHO.client.put('{}/profile/<invalid>'.format(YKHO.name), data=PjZe({}))\n YKHO.assertStatus(_hkX, 400)\n YKHO.assertIn(\"Invalid profile type '<invalid>'.\", _hkX.json()['error'])", "def gb2F():\n ctNS = ['bio', 'bio', 'bio', 'biobiobiobiobiobiobiobiobiobiobiobiobiobiobiobio...
[ "0.8255387", "0.7802144", "0.7326977", "0.72491187", "0.7123317", "0.6957184", "0.6942448", "0.6915315", "0.6895705", "0.6892893", "0.6891912", "0.68526465", "0.6791052", "0.67875576", "0.67868024", "0.6768177", "0.672383", "0.6721718", "0.66713715", "0.663942", "0.6635576", ...
0.8553092
0
Get the mean and std from the batch of the imgs
def MMCQ(YKHO, xkjI, Fg_i=1, Z9rn=3): M1Jx, JBMS = ht2j.std_mean(xkjI.view(Fg_i, Z9rn, -1), 2) return (M1Jx, JBMS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kvQA(Rhf7):\n AHI0 = KgqZ(data_file=Rhf7, img_size=224, batch_size=128)\n ukNn = 0\n JBMS = 0.0\n SRYB = 0.0\n for Wc9F in i2Ac(AHI0):\n Wc9F = Wc9F.view(Wc9F.size(0), Wc9F.size(1), -1)\n ukNn += Wc9F.size(0)\n JBMS += Wc9F.mean(2).sum(0)\n SRYB += Wc9F.var(2).sum(0)\...
[ "0.81084126", "0.8006648", "0.77349186", "0.7533485", "0.74501526", "0.7344707", "0.73443043", "0.7320457", "0.7313208", "0.7294602", "0.7268667", "0.72356385", "0.7233809", "0.7185206", "0.7099585", "0.7005603", "0.70051426", "0.6968314", "0.69643444", "0.6926129", "0.690313...
0.7587203
3
recognizes text from images that might be contained in street signs, sign boards, items and etc. it returns the extracted text from the image which goes through a preprocessor to clean the extracted text
def Bolb(E41I): try: SZry = WR89.b64decode(E41I) LNo8 = SnBA.Image(content=SZry) geh0 = x0hE.text_detection(image=LNo8) pnw9 = geh0.text_annotations EfEB = pnw9[0].description if geh0.error.message: raise Exception(geh0.error.message) return EfEB ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mOTf(QMAG):\n VXjJ = XC5k.imread(QMAG)\n wT6a = '--oem 3 --psm 6 outputbase digits'\n Pzum = '--oem 3 --psm 6'\n b8az = '--oem 3 --psm 1'\n fCm6 = '--oem 3 --psm 4'\n PRNC = Z537.image_to_string(VXjJ, config=b8az)\n l5Ny = Z537.image_to_string(VXjJ, config=Pzum)\n Csk6 = Z537.image_to_d...
[ "0.7530917", "0.72265095", "0.69876134", "0.6881495", "0.6870501", "0.6866866", "0.6859255", "0.6847562", "0.6834643", "0.67529374", "0.6743635", "0.6705451", "0.66941136", "0.6692581", "0.6687612", "0.66840476", "0.66820973", "0.66696036", "0.66497535", "0.6648629", "0.66259...
0.682327
9
optimized to recognize text from document images and also handwritten images. It returns an extracted text which goes through a preprocessor to clean the extracted text
def diT8(E41I): try: SZry = WR89.b64decode(E41I) LNo8 = SnBA.Image(content=SZry) geh0 = x0hE.document_text_detection(image=LNo8) pnw9 = geh0.text_annotations if geh0.error.message: raise Exception('Error occured '.format(geh0.error.message)) EfEB = pnw9[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t9Zt(YKHO, VXjJ, Yyxh):\n Z537.pytesseract.tesseract_cmd = 'C:\\\\Users\\\\marti\\\\AppData\\\\Local\\\\Programs\\\\Tesseract-OCR\\\\tesseract.exe'\n Iowl, gEYm = XC5k.findContours(Yyxh, XC5k.RETR_EXTERNAL, XC5k.CHAIN_APPROX_NONE)\n BY1z = ''\n for r9Hf in Iowl:\n WKvO, LVAh, yzQ0, MKlR = XC...
[ "0.67794067", "0.6704486", "0.6603231", "0.6507688", "0.65000474", "0.6458007", "0.64305866", "0.642892", "0.6411412", "0.63959396", "0.6384258", "0.63360864", "0.63354045", "0.6334407", "0.6334407", "0.62891996", "0.62721837", "0.62716305", "0.6245515", "0.62454915", "0.6235...
0.5810758
82
Return extracted amount ($) for the current bill.
def kT4q(YKHO): return YKHO._scraped_data['bill']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZXl_(YKHO):\n return YKHO.cf_amount", "def mz56():\n global amt_found\n if Fttq == 1:\n return\n if ZbWC.search('[\\\\$]', str(_dZy)) is not None:\n global amt\n GTZT = ZbWC.findall(\"\\\\$', '(.*)', '\\\\(', 'Estimated'\", str(_dZy))\n Fttq = 1", "def Z5kt(YKHO) -> ...
[ "0.7127109", "0.6973642", "0.6848745", "0.68326974", "0.68326974", "0.6826391", "0.67931426", "0.6765935", "0.67516905", "0.6717205", "0.6695757", "0.6694636", "0.6667866", "0.66297376", "0.66198015", "0.65722185", "0.65274125", "0.6527291", "0.646197", "0.6459974", "0.645664...
0.66041225
15
Takes in dictionary (or JSON) and returns a list with the first three concepts for an item.
def VBr3(tbx9): ewCu = 0 W_WZ = {} W_WZ['piece_url'] = tbx9['input']['data']['image']['url'] W_WZ['c_id'] = tbx9['id'] W_WZ['concepts'] = [] while ewCu <= 2: Kg5g = tbx9['data']['concepts'][ewCu]['name'] W_WZ['concepts'].append(Kg5g) ewCu += 1 return W_WZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IL64(Dmnl: HTTPRequestHandler, ekCf: int, NCqB: str, eWmj: bool=False) -> uLKX[x1iM[cuzp], x1iM[str]]:\n \"\"\"\n Example payload json:\n { 'data':\n [\n {\n \"name\": \"CHECKIN_DATE\", \n \"links\": [{\"linkedNodeName\": \"nuance_CALENDARX\", \"boltLinkName\": \"...
[ "0.6042028", "0.5998218", "0.5873177", "0.580534", "0.57184213", "0.55985564", "0.55985564", "0.5546799", "0.54852855", "0.53808236", "0.5365196", "0.52333885", "0.5224511", "0.522213", "0.52097785", "0.519627", "0.5190322", "0.5190322", "0.5167268", "0.51596385", "0.5062554"...
0.69103634
0
Return a relative path from the workingDir.
def C3IS(YKHO, *pmON): return Hy7s.path.relpath(YKHO._getPath(*pmON), YKHO.workingDir.get())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qth0(YKHO):\n return YKHO.cwd().rel_path_to(YKHO)", "def t_yv(YKHO):\n qaEx = YKHO.absolute_path()\n qaEx = Hy7s.path.relpath(qaEx, U34r.CWD)\n return qaEx", "def OyQC(YKHO):\n t_yv = YKHO.path.lstrip('/')\n SOoY = Hy7s.path.join(Hy7s.getcwd(), t_yv)\n return SOoY", "def ZfdX(YKHO):\...
[ "0.79164684", "0.78305924", "0.75646895", "0.75460446", "0.7516257", "0.7438914", "0.7394027", "0.73615694", "0.73104525", "0.7306625", "0.7290935", "0.72836894", "0.72801125", "0.72566617", "0.71836424", "0.71635944", "0.7160541", "0.7103937", "0.7099907", "0.70256335", "0.7...
0.6961926
26
Return a relative path from the projdir.
def YpVG(YKHO, *pmON): return Hy7s.path.relpath(YKHO._getPath(*pmON), Hy7s.path.dirname(Hy7s.path.dirname(YKHO.workingDir.get())))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O0al(IDBL, Qth0=False):\n pmON = Hy7s.path.realpath(Hy7s.path.abspath(Hy7s.path.join(IDBL['container'], IDBL['name'])))\n if Qth0:\n KvrH = len(Hy7s.path.commonprefix([Hy7s.path.realpath(Hy7s.getcwd()), pmON])) + 1\n pmON = pmON[KvrH:]\n return pmON", "def Y0TB(pmON):\n if juj8(pmON...
[ "0.7666237", "0.76068664", "0.73661965", "0.71996254", "0.71776843", "0.7157412", "0.7130666", "0.7071331", "0.6967251", "0.69616973", "0.6892176", "0.6883668", "0.6860268", "0.68597394", "0.680953", "0.6789568", "0.67729855", "0.67628217", "0.6750425", "0.67010033", "0.66918...
0.0
-1
Insert a new relation in the mapper using self as creator.
def q1CO(YKHO, ZHHW, MdzC, ADXm): dxh3 = None AKrk = None if MdzC.isPointer(): dxh3 = MdzC.getExtended() MdzC = MdzC.getObjValue() if ADXm.isPointer(): AKrk = ADXm.getExtended() ADXm = ADXm.getObjValue() YKHO.mapper.insertRelation(ZHHW, YKHO, MdzC, ADXm, dxh3, AKrk)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KFqR(YKHO, koMu):\n if koMu.rid not in YKHO.rid2relation_cache:\n return YKHO._insert_relation(koMu)\n else:\n return YKHO._update_relation(koMu)", "def KFqR(YKHO, koMu):\n if koMu.rid not in YKHO.rid2relation_cache:\n return YKHO._insert_relation(koMu)\n else:\n retur...
[ "0.6910575", "0.6910575", "0.664868", "0.66114473", "0.6511145", "0.6511145", "0.6511145", "0.6254856", "0.6120581", "0.6120581", "0.6115293", "0.60853875", "0.60215104", "0.6004637", "0.5924556", "0.591897", "0.59159505", "0.5908539", "0.5908539", "0.5908539", "0.58556783", ...
0.5725808
25
Return the package module to which this protocol belongs
def Ku3P(Emd4): import pyworkflow.em as r50I r50I.getProtocols() return getattr(Emd4, '_package', _MIK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JEuV(YKHO):\n return YKHO.__module", "def JEuV(YKHO):\n return YKHO.module", "def JEuV(YKHO):\n return YKHO.module", "def JEuV(YKHO) -> str:\n return YKHO.module", "def JEuV(YKHO):\n return YKHO._module", "def JEuV(YKHO):\n return YKHO.__module", "def JEuV(YKHO):\n return YKHO....
[ "0.76626045", "0.7641145", "0.7641145", "0.7580273", "0.7577133", "0.75500464", "0.75500464", "0.7471302", "0.74564785", "0.7446263", "0.74289626", "0.7361247", "0.73281425", "0.73087114", "0.7302699", "0.7299153", "0.72644067", "0.72416383", "0.7176405", "0.715676", "0.71567...
0.7102012
22
Return True if this Protocol is a base class. Base classes should be marked with _label = None.
def VPiy(Emd4): return Emd4.__dict__.get('_label', None) is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fkjw(YKHO, AmnI):\n return AmnI in YKHO.get_all_superclasses_()", "def qbTQ(Sxgl):\n if Sxgl.category == 'base_classes':\n return True\n elif Sxgl.category == 'applications':\n return False\n elif Sxgl.category == 'contributed_definitions':\n mzEn = Sxgl.groups.get('entry')\n...
[ "0.6914623", "0.6672541", "0.6669294", "0.66556853", "0.6617968", "0.660269", "0.6540686", "0.65046126", "0.64113826", "0.63647246", "0.635447", "0.6352471", "0.6335646", "0.63279724", "0.6324435", "0.6324435", "0.63200825", "0.63110894", "0.6271826", "0.6269558", "0.6265282"...
0.8499558
0
Set up response for home page test case.
def FCbF(YKHO): YKHO.response = YKHO.client.get(gxEw('homepage'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jA0P(YKHO):\n geh0 = YKHO.get('home')\n YKHO.response_200(geh0)", "def FCbF(YKHO):\n YKHO.response = YKHO.client.get(gxEw('home'))", "def rKWs(YKHO):\n geh0 = YKHO.testapp.get('/', status=200)\n YKHO.assertTrue('<title>Home' in geh0.body.replace('\\n', ''))", "def GvGQ(YKHO, x0hE):\n ge...
[ "0.78573865", "0.76006347", "0.7193546", "0.71931124", "0.7143469", "0.71162397", "0.70380926", "0.70354617", "0.70264345", "0.7022302", "0.70096475", "0.69676334", "0.6924759", "0.6901533", "0.6900731", "0.6896038", "0.68885744", "0.68545717", "0.6834216", "0.68314093", "0.6...
0.7615328
1
Assert that the response contains a link to the login page
def ep6A(YKHO): XKMW = gxEw('auth_login') aEqx = 'href="{}"'.format(XKMW) YKHO.assertContains(YKHO.response, aEqx, status_code=200)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DWk6(YKHO):\n geh0 = YKHO.client.get(gxEw('login'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'Login')", "def UHFF(YKHO):\n Aofo = YKHO.client.get('/login', follow_redirects=True)\n YKHO.assertIn('your breeder spots', Aofo.data)", "def hhb7(YKHO):\n geh0 = YKHO...
[ "0.7942251", "0.769084", "0.7642748", "0.7608209", "0.75911117", "0.7576335", "0.757068", "0.75611746", "0.75578946", "0.7537972", "0.7533489", "0.75326926", "0.7529753", "0.7474826", "0.7465895", "0.74381304", "0.7419314", "0.7414676", "0.7413744", "0.73900443", "0.73864937"...
0.8261899
0
Assert that the home page view is rendered with our view.
def TE8s(YKHO): for qm1k in ['imagersite/home.html', 'imagersite/base.html']: YKHO.assertTemplateUsed(YKHO.response, qm1k)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xpv5(YKHO):\n geh0 = YKHO.client.get(gxEw('home'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'pages/home.html')", "def gk60(YKHO):\n geh0 = YKHO.client.get(nKyW('home'))\n YKHO.assertEqual(geh0.status_code, 200)", "def gk60(YKHO):\n geh0 = YKHO.client.get(n...
[ "0.83052003", "0.81779075", "0.8146319", "0.80761397", "0.8026981", "0.7984503", "0.7970069", "0.78905386", "0.7809209", "0.7806213", "0.77791095", "0.7739579", "0.7736673", "0.77114475", "0.77058834", "0.7694471", "0.76929456", "0.7656616", "0.764282", "0.76390845", "0.76344...
0.0
-1
Assert that the context used to render the home page is right.
def lyh_(YKHO): YKHO.assertTrue('cover_path' in YKHO.response.context)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dpqw(YKHO):\n Mkmy = YKHO.client.get('/')\n YKHO.assertEqual(Mkmy.status_code, 200)\n YKHO.assertTemplateUsed(Mkmy, 'home.html')", "def Xpv5(YKHO):\n geh0 = YKHO.client.get(gxEw('home'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'pages/home.html')", "def zS...
[ "0.76709986", "0.7533504", "0.7454851", "0.7453581", "0.7431665", "0.7431505", "0.743045", "0.7410283", "0.73940533", "0.73428184", "0.73272294", "0.7324343", "0.73069173", "0.73057663", "0.7278928", "0.727226", "0.7271557", "0.7253477", "0.72511226", "0.724769", "0.7217428",...
0.72137296
21
Set up response for registration test case.
def FCbF(YKHO): YKHO.response = YKHO.client.post('/accounts/register/', {'username': 't', 'email': 't@t.com', 'password1': 'fseIJE#*$83', 'password2': 'fseIJE#*$83'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NNr8(YKHO):\n RFT9 = {'email': 'email@gmail.com', 'username': 'theboss', 'password': '123'}\n geh0 = YKHO.mock_auth_server.register(RFT9)\n qQXR = _1kr(geh0.get_data())\n assert qQXR['id'] == 5\n assert geh0.status_code == 200", "def IVUY(YKHO):\n ZS9h = YKHO.register_response.status_code\n...
[ "0.7151412", "0.68089443", "0.67380124", "0.6715708", "0.6682744", "0.6672717", "0.6657126", "0.665286", "0.665221", "0.66437197", "0.66053355", "0.6601061", "0.65952575", "0.65776265", "0.6569609", "0.6559416", "0.655533", "0.6541435", "0.65239584", "0.6496373", "0.64791775"...
0.67633355
2
Assert that registration page view is rendered with our template.
def VaG3(YKHO): for qm1k in ['registration/activation_email_subject.txt', 'registration/activation_email.txt']: YKHO.assertTemplateUsed(YKHO.response, qm1k)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jKDB(YKHO):\n geh0 = YKHO.client.get(gxEw('account_signup'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertTemplateUsed(geh0, 'account/signup.html')", "def iHQA(YKHO):\n YKHO.client\n geh0 = YKHO.client.get('/accounts/register/')\n YKHO.assertEqual(geh0.template_name[0], 'registrat...
[ "0.8691612", "0.8590057", "0.8560701", "0.8491517", "0.8453219", "0.83689034", "0.82301867", "0.8201965", "0.8150329", "0.81296843", "0.8116068", "0.80035394", "0.797656", "0.7866356", "0.77819806", "0.7744931", "0.7712183", "0.7656038", "0.764304", "0.7596804", "0.7556148", ...
0.67901796
81
Test successful login redirection.
def TJ_q(YKHO): YKHO.assertEqual(YKHO.login_response.status_code, 302)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jug3(YKHO):\n aqR5 = {'username': YKHO.username, 'password': YKHO.password}\n geh0 = YKHO.client.post(gxEw('login'), aqR5)\n YKHO.assertEqual(302, geh0.status_code)\n YKHO.assertEqual(gxEw('overview'), geh0.url)", "def dOuZ(YKHO):\n geh0 = YKHO.client.post(YKHO.login_url, {'username': 'ap', 'p...
[ "0.85510314", "0.8483472", "0.84800124", "0.8395724", "0.8395724", "0.8364837", "0.8310984", "0.82118714", "0.818618", "0.8153599", "0.81172085", "0.8110164", "0.80897796", "0.80883396", "0.8088252", "0.8086599", "0.8061663", "0.8058319", "0.80388945", "0.80328286", "0.800958...
0.88686913
0
Test auth user has logout button on profile page and right url.
def XLMQ(YKHO): Gvia = gxEw('auth_logout') aEqx = 'href="{}"'.format(Gvia) YKHO.assertContains(YKHO.profile_login_response, aEqx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wcVf(YKHO):\n YKHO.client.login(username='test_user', password='test.test.test')\n YKHO.assertIn('_auth_user_id', YKHO.client.session)\n geh0 = YKHO.client.get(gxEw('sign_out'))\n YKHO.assertRedirects(geh0, gxEw('main_page'))\n YKHO.assertNotIn('_auth_user_id', YKHO.client.session)", "def fF4T...
[ "0.8271306", "0.8205149", "0.8102279", "0.8028", "0.8015621", "0.7967294", "0.7967294", "0.7955181", "0.79459256", "0.79247", "0.79052234", "0.789311", "0.7878654", "0.78783983", "0.7860483", "0.78384066", "0.7822384", "0.7801774", "0.779584", "0.77947813", "0.77909756", "0...
0.807777
3
Split a pathname into components (the opposite of os.path.join) in a platformneutral way.
def M3cx(pmON, Aofo=None): if Aofo is None: Aofo = [] sdCG, J3uN = Hy7s.path.split(pmON) if sdCG == '': return [J3uN] + Aofo if sdCG == pmON: return Aofo return M3cx(sdCG, [J3uN] + Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(YKHO, pmON):\n raise NotImplementedError", "def eQ8x(pmON):\n return Hy7s.path.split(pmON)", "def KkWy(pmON):\n return Hy7s.path.normpath(pmON).strip('/').split('/')", "def eQ8x(pmON):\n return pmON.lstrip(Hy7s.sep).rstrip(Hy7s.sep).split(Hy7s.sep)", "def KkWy(pmON):\n pmON = Hy7s.p...
[ "0.73183995", "0.72799623", "0.7227677", "0.72029763", "0.7159206", "0.71533674", "0.704754", "0.704122", "0.6968336", "0.6959897", "0.69108325", "0.69107616", "0.6884344", "0.6875491", "0.68527204", "0.68527204", "0.6816571", "0.67811465", "0.6760932", "0.67365485", "0.67144...
0.61403954
61
test if it is a list or tuple
def JFjS(WKvO): return isinstance(WKvO, (list, tuple))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y3sO(KAOR):\n return isinstance(KAOR, (list, tuple))", "def lgHf(ZfUD):\n if isinstance(ZfUD, type(())) or isinstance(ZfUD, list):\n return True\n return False", "def sR9p(Q6kx):\n return isinstance(Q6kx, jZ4I.Tuple) or isinstance(Q6kx, jZ4I.List)", "def c6m7(YEnM):\n return not isi...
[ "0.87065446", "0.863701", "0.8498829", "0.799463", "0.7895838", "0.7895838", "0.7756909", "0.77472466", "0.7702351", "0.7701999", "0.770115", "0.7691619", "0.7628932", "0.7591306", "0.74092364", "0.73368293", "0.73233265", "0.7247166", "0.72323626", "0.7188471", "0.71854824",...
0.8743893
0