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
Name of the config.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._config_name", "def mWFP(YKHO):\n return YKHO.config['name']", "def mWFP(YKHO):\n return YKHO._config.get(BiEj)", "def Ks8p(YKHO):\n pass", "def mWFP(YKHO) -> str:\n mWFP = YKHO._config['name']\n assert isinstance(mWFP, str)\n return mWFP", "def Ejoh(YKH...
[ "0.9289307", "0.900103", "0.888", "0.8742741", "0.86302376", "0.8557848", "0.83610666", "0.82853526", "0.81036574", "0.81036574", "0.8088234", "0.80755204", "0.7850279", "0.7764134", "0.7735627", "0.7684191", "0.7607658", "0.75998235", "0.7466778", "0.7379221", "0.73428404", ...
0.0
-1
(Optional) List of environment variables to set in the container.
def sEAN(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['EnvVarArgs']]]]: return qe4Y.get(YKHO, 'env')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zKTY(YKHO):\n if YKHO._m.spec and YKHO._m.spec.container:\n return W2wd.ListAsDictionaryWrapper(YKHO._m.spec.container.env, YKHO._messages.EnvVar)", "def H4Hb(YKHO) -> list['EnvVariable']:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('envVariables', M56f)\n GSuR = MqlI(GSuR)._select_multi...
[ "0.7302399", "0.7151558", "0.70579696", "0.70315427", "0.6932195", "0.6889495", "0.68694764", "0.68694764", "0.68694764", "0.68694764", "0.6863467", "0.68545204", "0.6790581", "0.6783857", "0.6770842", "0.67686325", "0.6753671", "0.6731841", "0.67308897", "0.6708214", "0.6680...
0.0
-1
(Optional) List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Val...
def aRjW(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['EnvFromSourceArgs']]]]: return qe4Y.get(YKHO, 'env_from')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v4nP(eNNA: Set[str]) -> P39m:\n wH3v = {}\n for i2I_, sadl in PNq_.items():\n if i2I_ not in eNNA:\n continue\n wH3v[i2I_] = sadl\n return wH3v", "def HVP3(YKHO, z34O, c_tK, Qf6D=None):\n sEAN = super(fzzj, YKHO).build_env(z34O, c_tK, private_data_files=Qf6D)\n if Qf6D...
[ "0.6108377", "0.6104904", "0.60834855", "0.5912744", "0.56587666", "0.5644212", "0.5485045", "0.54761356", "0.54761356", "0.54761356", "0.54761356", "0.54761356", "0.54761356", "0.5468026", "0.5418465", "0.53926504", "0.53569186", "0.5345714", "0.5327594", "0.5305151", "0.530...
0.5508455
6
Not supported by Cloud Run EnvFromSource represents the source of a set of ConfigMaps
def FIMM(Ro_8, *, wacl: Optional[pulumi.Input['ConfigMapEnvSourceArgs']]=None, y0cW: Optional[pulumi.Input[str]]=None, ByW7: Optional[pulumi.Input['SecretEnvSourceArgs']]=None): if wacl is not None: qe4Y.set(Ro_8, 'config_map_ref', wacl) if y0cW is not None: qe4Y.set(Ro_8, 'prefix', y0cW) if...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aRjW(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['EnvFromSourceArgs']]]]:\n return qe4Y.get(YKHO, 'env_from')", "def wacl(YKHO) -> h8nf[qe4Y.Input['ConfigMapEnvSourceArgs']]:\n return qe4Y.get(YKHO, 'config_map_ref')", "def Lp_r():\n sEAN = {'ELB_GCP_PROJECT': 'expected-gcp-project', 'ELB_RESULTS': '...
[ "0.6126733", "0.5973674", "0.59183353", "0.585044", "0.58343333", "0.5737358", "0.57323873", "0.5708686", "0.5535899", "0.5425758", "0.5420068", "0.5374865", "0.5370628", "0.5357769", "0.52698195", "0.5266888", "0.52651215", "0.52415097", "0.52259463", "0.5212608", "0.5211623...
0.53835005
11
EnvVar represents an environment variable present in a Container.
def FIMM(Ro_8, *, mWFP: Optional[pulumi.Input[str]]=None, BWXx: Optional[pulumi.Input[str]]=None, nvss: Optional[pulumi.Input['EnvVarSourceArgs']]=None): if mWFP is not None: qe4Y.set(Ro_8, 'name', mWFP) if BWXx is not None: qe4Y.set(Ro_8, 'value', BWXx) if nvss is not None: qe4Y.set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sEAN(SRYB):\n return Hy7s.environ[SRYB]", "def Rhg4(YKHO, mWFP: str, BWXx: str, lHli: Optional[bool]=None) -> 'Container':\n M56f = [kDLT('name', mWFP), kDLT('value', BWXx), kDLT('expand', lHli, None)]\n GSuR = YKHO._select('withEnvVariable', M56f)\n return pa4n(GSuR)", "def AxXv(YKHO, SRYB):\n...
[ "0.6759011", "0.64400876", "0.6365067", "0.6353957", "0.6332777", "0.63078386", "0.6261371", "0.61820585", "0.60630727", "0.6052506", "0.6047019", "0.6040598", "0.6039395", "0.6014736", "0.5986097", "0.59742486", "0.5959875", "0.59374666", "0.5901712", "0.58948684", "0.585241...
0.0
-1
Name of the environment variable. Must be a C_IDENTIFIER.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._env_name", "def kRLt(YKHO, mWFP):\n return '$(' + mWFP + ')'", "def TYk2(XuY2: str) -> str:\n if XuY2 in Hy7s.environ.keys():\n return Hy7s.environ[XuY2]", "def mWFP(YKHO):\n return Ynut(YKHO.tool_name, YKHO._python, YKHO._requirements, YKHO._tagged_env_vars)...
[ "0.70802695", "0.7018171", "0.6868062", "0.6834877", "0.67369395", "0.66342175", "0.66094714", "0.6516576", "0.64875805", "0.64858514", "0.64271265", "0.6414439", "0.63760257", "0.6328405", "0.6301504", "0.6299338", "0.62456506", "0.6227602", "0.62041265", "0.6174423", "0.615...
0.0
-1
(Optional) Source for the environment variable's value. Only supports secret_key_ref. Source for the environment variable's value. Cannot be used if value is not empty.
def nvss(YKHO) -> h8nf[qe4Y.Input['EnvVarSourceArgs']]: return qe4Y.get(YKHO, 'value_from')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ByW7(YKHO) -> h8nf[qe4Y.Input['SecretEnvSourceArgs']]:\n return qe4Y.get(YKHO, 'secret_ref')", "def sEAN(H5ew, WmM4=None, jeGQ=False):\n try:\n BWXx = Hy7s.environ[H5ew]\n return jZ4I.literal_eval(BWXx)\n except (SyntaxError, ValueError):\n return BWXx\n except KeyError:\n ...
[ "0.71934897", "0.63627815", "0.6333269", "0.62673974", "0.62057745", "0.61730945", "0.6144166", "0.6106853", "0.6016373", "0.5989732", "0.5941679", "0.5933719", "0.593046", "0.5930429", "0.59206", "0.59052", "0.5904231", "0.5878072", "0.5872714", "0.5862441", "0.582083", "0...
0.6126485
7
Instance represents the status of an instance of a Job.
def FIMM(Ro_8, *, d6pt: pulumi.Input[int], pARd: Optional[pulumi.Input[str]]=None, _j4m: Optional[pulumi.Input[int]]=None, W4JT: Optional[pulumi.Input['InstanceAttemptResultArgs']]=None, NlDI: Optional[pulumi.Input[int]]=None, eqU_: Optional[pulumi.Input[int]]=None, SWox: Optional[pulumi.Input[str]]=None, LbSa: Optiona...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO):\n return YKHO.job_proto.status", "def FIMM(YKHO, rjee=None, DpZH=None, jGRS=None, ltXJ=None, COgv=None, x7vo=None, SWox=None, C7pn=None, mn17=None):\n YKHO.swagger_types = {'job_id': str, 'version': str, 'status': str, 'exit_status': str, 'exit_message': str, 'create_time': qcWV, 'start_tim...
[ "0.6462175", "0.61865467", "0.60609454", "0.6053399", "0.6006992", "0.593759", "0.5928221", "0.5908596", "0.58781046", "0.58457166", "0.5824061", "0.57867974", "0.5785409", "0.5780187", "0.5755853", "0.5748484", "0.5725299", "0.56765926", "0.5662594", "0.5618687", "0.561749",...
0.0
-1
JobSpec describes how the job execution will look like.
def FIMM(Ro_8, *, zjWD: Optional[pulumi.Input[str]]=None, plaf: Optional[pulumi.Input[int]]=None, m8fs: Optional[pulumi.Input[int]]=None, QMHl: Optional[pulumi.Input[int]]=None, rPXJ: Optional[pulumi.Input['InstanceTemplateSpecArgs']]=None, WlHd: Optional[pulumi.Input[int]]=None): if zjWD is not None: qe4Y....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ODe_():\n return RvYX.ResourceSpec('transcoder.projects.locations.jobs', resource_name='job', jobsId=gov5(), projectsId=RvYX.DEFAULT_PROJECT_ATTRIBUTE_CONFIG, locationsId=haZm(), disable_auto_completers=False)", "def pcXv(Cqok):\n return yqe2.getStub('job').LaunchSpec(NjWn.JobLaunchSpecRequest(spec=Cqo...
[ "0.6773472", "0.67653096", "0.66373944", "0.6469954", "0.6371339", "0.6026661", "0.5847633", "0.5825256", "0.5799035", "0.568238", "0.568238", "0.56763136", "0.5635657", "0.5591291", "0.55634", "0.5554076", "0.5549275", "0.5539543", "0.5536857", "0.55347055", "0.54636157", ...
0.0
-1
JobStatus represents the current state of a Job.
def FIMM(Ro_8, *, WZHJ: Optional[pulumi.Input[int]]=None, pARd: Optional[pulumi.Input[str]]=None, iPqd: Optional[pulumi.Input[Sequence[pulumi.Input['JobConditionArgs']]]]=None, _j4m: Optional[pulumi.Input[int]]=None, W29x: Optional[pulumi.Input[str]]=None, bUWH: Optional[pulumi.Input[Sequence[pulumi.Input['InstanceStat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO):\n return YKHO.job_proto.status", "def lGar(YKHO) -> rKxn:\n kL40 = set()\n with YKHO._jobs.lock:\n if not YKHO._jobs:\n return rKxn.DONE\n kL40 = set()\n for oCfW in YKHO._jobs.values():\n if oCfW:\n kL40.add(oCfW.status())\n f...
[ "0.7864789", "0.7610603", "0.75128347", "0.74057335", "0.73458374", "0.73195654", "0.72146606", "0.70527756", "0.70513207", "0.7020673", "0.6944766", "0.6921074", "0.69032824", "0.6850882", "0.67401177", "0.66968894", "0.6669855", "0.6602117", "0.6587272", "0.65768135", "0.65...
0.0
-1
Optional. ImageDigest holds the resolved digest for the image specified within .Spec.Template.Spec.Container.Image. The digest is resolved during the creation of the Job. This field holds the digest value regardless of whether a tag or digest was originally specified in the Container object.
def W29x(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'image_digest')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iAEb(LNo8: Image) -> h8nf[str]:\n _6Dd = LNo8.attrs.get('RepoDigests')\n if _6Dd:\n TZ9E, dKPB = XSLc(_6Dd[0])\n return dKPB\n return None", "def W29x(YKHO):\n return YKHO.status.imageDigest", "def iAEb(LNo8):\n _63S, mWFP, TZ9E = YA5l(LNo8)\n EZMt = '/v2/%s/%s/manifests/%s'...
[ "0.6867021", "0.65372026", "0.64070755", "0.6134416", "0.59073645", "0.57376146", "0.56289667", "0.56052023", "0.55419403", "0.5459043", "0.53803617", "0.53643703", "0.53504753", "0.531144", "0.5309617", "0.5270141", "0.526638", "0.5261127", "0.52579725", "0.5254731", "0.5250...
0.71737665
0
The Cloud Secret Manager secret version. Can be 'latest' for the latest value or an integer for a specific version. The key to project.
def H5ew(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'key')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z6lS(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'key_version')", "def _W3t(rTi7, mljj):\n ekCf = Hy7s.getenv('PROJECT_ID')\n mWFP = f'projects/{ekCf}/secrets/{rTi7}/versions/{mljj}'\n x0hE = GeiM.SecretManagerServiceClient()\n geh0 = x0hE.access_secret_version(request={'name': mWFP})\n ret...
[ "0.7122168", "0.6991335", "0.68964076", "0.68803936", "0.6506205", "0.6445297", "0.6393099", "0.63741", "0.63544875", "0.63544875", "0.63544875", "0.63544875", "0.63544875", "0.63496536", "0.63380927", "0.62975067", "0.62853646", "0.62816596", "0.6273459", "0.6271435", "0.626...
0.0
-1
(Optional) Not supported by Cloud Run The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.
def c0yN(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'cluster_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0yN(YKHO):\n return YKHO.name", "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')", "def c0yN(YKHO):\n return YKHO._data['cluster_name']", "def Qjbs(YKHO):\n return 'cluster'", "def c0yN(YKHO) -> qe4Y.Inpu...
[ "0.73518974", "0.71606237", "0.71606237", "0.70352846", "0.6963688", "0.6864017", "0.6864017", "0.6813997", "0.67043173", "0.6400719", "0.633979", "0.631315", "0.6309727", "0.62140137", "0.62140137", "0.62140137", "0.62140137", "0.62140137", "0.61818075", "0.6089117", "0.6067...
0.6966826
8
OwnerReference contains enough information to let you identify an owning object. Currently, an owning object must be in the same namespace, so there is no namespace field.
def FIMM(Ro_8, *, clva: Optional[pulumi.Input[str]]=None, g2eN: Optional[pulumi.Input[bool]]=None, Z7L0: Optional[pulumi.Input[bool]]=None, eJTR: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, PObu: Optional[pulumi.Input[str]]=None): if clva is not None: qe4Y.set(Ro_8, 'api_versio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gCH0(YKHO):\n return None", "def gCH0(YKHO):\n return None", "def gCH0(YKHO):\n return None", "def qsJ6(YKHO):\n return YKHO.__owner", "def qsJ6(YKHO):\n return YKHO._owner", "def qsJ6(YKHO):\n return YKHO._owner", "def qsJ6(YKHO):\n return YKHO._owner", "def qsJ6(YKHO):\n ...
[ "0.7421275", "0.7421275", "0.7421275", "0.7263003", "0.7230314", "0.7230314", "0.7230314", "0.7230314", "0.7230314", "0.71073496", "0.7103023", "0.70496035", "0.704022", "0.69802237", "0.69325036", "0.6929792", "0.6929792", "0.6929792", "0.6929792", "0.692424", "0.692424", ...
0.0
-1
Not supported by Cloud Run SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the keyvalue pairs as environment variables.
def FIMM(Ro_8, *, hzVz: Optional[pulumi.Input['LocalObjectReferenceArgs']]=None, mWFP: Optional[pulumi.Input[str]]=None, CYSX: Optional[pulumi.Input[bool]]=None): if hzVz is not None: qe4Y.set(Ro_8, 'local_object_reference', hzVz) if mWFP is not None: qe4Y.set(Ro_8, 'name', mWFP) if CYSX is ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eWsI():\n for mWFP, BWXx in e4GQ.__dict__.items():\n if mWFP[0] != '_':\n Hy7s.environ[mWFP] = BWXx", "def liE5(QDug: str) -> str:\n P1lZ = Hy7s.getenv('KEY_ID')\n Q7HW = Hy7s.getenv(QDug)\n x0hE = GNDW.KeyManagementServiceClient()\n a6oL = x0hE.decrypt(request={'name': P1lZ,...
[ "0.60752493", "0.601176", "0.59430647", "0.59132504", "0.58095104", "0.56137127", "0.5593729", "0.5570865", "0.54740936", "0.53899324", "0.53886354", "0.53873754", "0.5317123", "0.5278417", "0.5257236", "0.523228", "0.52037525", "0.5201968", "0.5192194", "0.5165596", "0.51655...
0.0
-1
A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version. The key of the secret to select from. Must be a valid secret key.
def H5ew(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'key')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MjF7(ekCf, rTi7, mljj):\n from google.cloud import secretmanager\n x0hE = secretmanager.SecretManagerServiceClient()\n mWFP = f'projects/{ekCf}/secrets/{rTi7}/versions/{mljj}'\n geh0 = x0hE.access_secret_version(request={'name': mWFP})\n return geh0.payload.data.decode('UTF-8')", "def _W3t(rTi...
[ "0.71157587", "0.6968846", "0.6624672", "0.6571224", "0.633893", "0.62523496", "0.62523496", "0.62177235", "0.61889213", "0.61774534", "0.61278814", "0.6090768", "0.6090768", "0.60588276", "0.60588276", "0.60466135", "0.60466135", "0.59829944", "0.5980519", "0.5966618", "0.59...
0.0
-1
(Optional) The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
def D7so(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'run_as_user')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D7so(YKHO) -> h8nf[qe4Y.Input['RunAsUserStrategyOptionsPatchArgs']]:\n return qe4Y.get(YKHO, 'run_as_user')", "def D7so(YKHO) -> qe4Y.Input['RunAsUserStrategyOptionsArgs']:\n return qe4Y.get(YKHO, 'run_as_user')", "def FIMM(Ro_8, *, D7so: Optional[pulumi.Input[int]]=None):\n if D7so is not None:\n...
[ "0.5694958", "0.5582308", "0.55699027", "0.55025446", "0.55025446", "0.55025446", "0.5383794", "0.53576416", "0.532736", "0.5301375", "0.5252773", "0.51381266", "0.51381266", "0.51381266", "0.5128512", "0.5105636", "0.50889754", "0.50889754", "0.5068004", "0.5068004", "0.5068...
0.5748138
0
Converts CamelCase to camel/case
def K81K(mWFP): j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\1/\\2', mWFP) return ZbWC.sub('([a-z0-9])([A-Z])', '\\1/\\2', j93S).lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O3vd(mWFP):\n j93S = ZbWC.sub('(.)([A-Z][a-z]+)', '\\\\1_\\\\2', mWFP)\n return ZbWC.sub('([a-z0-9])([A-Z])', '\\\\1_\\\\2', j93S).lower()", "def J8xc(l5Ny: str) -> str:\n return ''.join((GIN8.title() for GIN8 in l5Ny.split('_')))", "def bUDG(wEf2):\n hLSf = wEf2.title()\n return ZbWC.sub('[...
[ "0.7911187", "0.78807104", "0.78780276", "0.7830923", "0.7808882", "0.7789713", "0.77685255", "0.76968247", "0.7567583", "0.7567583", "0.7561699", "0.7445506", "0.7436963", "0.742293", "0.7415548", "0.740523", "0.73967075", "0.73182094", "0.7305003", "0.7273591", "0.7261134",...
0.0
-1
Construct the CNN model. Please add your model implementation here, and don't forget compile the model E.g., model.compile(loss='categorical_crossentropy', optimizer='sgd', metrics=['accuracy']) NOTE, You must include 'accuracy' in as one of your metrics, which will be used for marking later.
def YZe9(): C3ST = ileL() C3ST.add(yHwh(64, 3, data_format='channels_last', activation='relu', padding='same', input_shape=(PLSm, s3Vn, 3))) C3ST.add(YMbS(pool_size=2, strides=2)) C3ST.add(yHwh(64, 3, activation='relu', padding='same')) C3ST.add(YMbS(pool_size=2, strides=2)) C3ST.add(yHwh(128, 3...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8cN(YKHO):\n YKHO.model = FYrf.Sequential()\n YKHO.model.add(fhcK.Conv2D(32, (3, 3), activation='relu', input_shape=(28, 28, 1)))\n YKHO.model.add(fhcK.MaxPooling2D((2, 2)))\n YKHO.model.add(fhcK.Conv2D(64, (3, 3), activation='relu'))\n YKHO.model.add(fhcK.MaxPooling2D((2, 2)))\n YKHO.model....
[ "0.79456466", "0.79212743", "0.7686114", "0.76486915", "0.76392126", "0.7635981", "0.75947803", "0.7569121", "0.75226474", "0.75211334", "0.7417097", "0.73896503", "0.7346301", "0.73286694", "0.73157644", "0.7301205", "0.72698367", "0.7245011", "0.7114825", "0.7064717", "0.70...
0.76434857
4
Combine the terminal with another object to form production alternatives (use |). Examples Create two productions the first of which consist of the terminal 'A' and second of the terminals 'B' and 'C'. >>> productions = Terminal('A') | Terminal('B') + Terminal('C')
def gN4g(YKHO, Elif): if isinstance(Elif, (r1MW, w31Y, qGyE)): return Qc8p(mrS8(YKHO), mrS8(Elif)) elif isinstance(Elif, mrS8): return Qc8p(mrS8(YKHO), Elif) else: raise TypeError('Unexpected type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gN4g(YKHO, cmJd):\n return YKHO + cmJd", "def BTTw(k0lF, tjUW):\n return fq0T(tjUW, k0lF)", "def pi8U(YKHO, yLHq, RKYb):\n NF4V = RKYb.split('|')\n for QRFO in NF4V:\n YKHO.prod[yLHq].append(tuple(QRFO.split()))", "def pi8U(YKHO, yLHq, RKYb):\n NF4V = RKYb.split('|')\n for QRFO i...
[ "0.55170304", "0.544974", "0.54385304", "0.54385304", "0.53720623", "0.53319055", "0.531151", "0.52737933", "0.52634203", "0.5247733", "0.51643527", "0.5116959", "0.5114968", "0.50224495", "0.5021469", "0.5017608", "0.500951", "0.50039524", "0.5002328", "0.49903506", "0.49730...
0.6681073
0
Rotate vector(s) v about the rotation described by quaternion(s) q. Expects a tensor of shape (, 4) for q and a tensor of shape (, 3) for v, where denotes any number of dimensions. Returns a tensor of shape (, 3).
def nTr0(vexM, Ty9i): assert vexM.shape[-1] == 4 assert Ty9i.shape[-1] == 3 assert vexM.shape[:-1] == Ty9i.shape[:-1] Wve5 = Ty9i.shape vexM = vexM.view(-1, 4) Ty9i = Ty9i.view(-1, 3) V2Fb = vexM[:, 1:] NFIp = ht2j.cross(V2Fb, Ty9i, dim=1) c_iR = ht2j.cross(V2Fb, NFIp, dim=1) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nTr0(vexM, Ty9i):\n assert vexM.shape[-1] == 4\n assert Ty9i.shape[-1] == 3\n assert vexM.shape[:-1] == Ty9i.shape[:-1]\n V2Fb = vexM[..., 1:]\n NFIp = ht2j.cross(V2Fb.double(), Ty9i.double(), dim=len(vexM.shape) - 1)\n c_iR = ht2j.cross(V2Fb.double(), NFIp.double(), dim=len(vexM.shape) - 1)\...
[ "0.8551022", "0.78475237", "0.7787734", "0.77644026", "0.77644026", "0.7758607", "0.77115434", "0.7691528", "0.7535044", "0.72164655", "0.7015739", "0.69000125", "0.6890444", "0.68645215", "0.68507963", "0.68471056", "0.6750162", "0.67375624", "0.6702305", "0.6638015", "0.662...
0.8495022
1
The identity block is the block that has no conv layer at shortcut. Arguments
def aP6R(FRUf, Ot1W, KUnM, EtM5, XkN1, e5sz=True, fiu3=(1, 1), HVS_=None): DZWo, MXwb, wMAF = KUnM if nMvt.image_data_format() == 'channels_last': z5f9 = 3 else: z5f9 = 1 RmTP = 'res' + str(EtM5) + XkN1 + '_branch' lPXw = 'bn' + str(EtM5) + XkN1 + '_branch' WKvO = yHwh(DZWo, (1, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aP6R(YKHO, FRUf, KUnM, YDYE, EtM5, XkN1, AkBB=True):\n RmTP = 'res' + str(EtM5) + XkN1 + '_branch'\n uFbb = 'batch_norm' + str(EtM5) + XkN1 + '_branch'\n T9jN = FRUf\n WKvO = None\n if AkBB:\n WKvO = GVKG(axis=3, name=uFbb + '_1')(FRUf)\n WKvO = MroH(YDYE)(WKvO)\n else:\n ...
[ "0.71272004", "0.7022438", "0.6910338", "0.68836653", "0.68505627", "0.6847176", "0.68221945", "0.6821999", "0.680346", "0.67849326", "0.67714536", "0.67158884", "0.67146987", "0.67137283", "0.6664201", "0.6624224", "0.662218", "0.662218", "0.66078824", "0.65984523", "0.65485...
0.6799615
9
A block that has a conv layer at shortcut. Arguments
def mQG_(FRUf, Ot1W, KUnM, EtM5, XkN1, e5sz=True, FEri=(2, 2), fiu3=(1, 1), HVS_=None): DZWo, MXwb, wMAF = KUnM if nMvt.image_data_format() == 'channels_last': z5f9 = 3 else: z5f9 = 1 RmTP = 'res' + str(EtM5) + XkN1 + '_branch' lPXw = 'bn' + str(EtM5) + XkN1 + '_branch' WKvO = yH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mQG_(YKHO, DVMO, UU6M, b27A):\n return YKHO.add_layer(mQG_, DVMO, UU6M, b27A)", "def mjQN(YKHO, EcVT, KUnM, eHNT, KCHu, EtM5, XkN1):\n jZbr = 'res' + str(EtM5) + XkN1 + '_branch'\n tagR = 'bn' + str(EtM5) + XkN1 + '_branch'\n LedO = EcVT\n nK5p, Xf5Z, uN8x = KUnM\n EcVT = yHwh(filters=nK5p,...
[ "0.7221446", "0.6798087", "0.6750911", "0.67348516", "0.6702807", "0.6671218", "0.667007", "0.6638267", "0.6601988", "0.6601988", "0.65986586", "0.6559304", "0.65571326", "0.6553661", "0.6532663", "0.65105", "0.6508215", "0.6479328", "0.6422139", "0.641241", "0.6390166", "0...
0.6258997
38
Mutate the matrix by perturbing one weight by a standard normal
def I7ZB(SppC): aPd6 = len(SppC) j1X4 = tuKI.randrange(aPd6) piRa = tuKI.randrange(4) Mkmy = tuKI.gauss(0, 1) return [[SppC[YRbF][r845] + Mkmy * (YRbF == j1X4) * (r845 == piRa) for r845 in range(4)] for YRbF in range(aPd6)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TPEd(YKHO, _mSQ):\n return _mSQ + mhAC(loc=0, scale=YKHO.standard_deviation, size=_mSQ.shape[0])", "def r3Zb(_mSQ, eK5b):\n AApR = []\n for upAO in _mSQ:\n hSYI = oyIN.random.normal(loc=upAO, scale=0.5 / (eK5b + 1))\n if hSYI >= -1 and hSYI <= 1:\n AApR.append(hSYI)\n ...
[ "0.7454254", "0.64523524", "0.64157224", "0.63913834", "0.63850635", "0.6366946", "0.6336361", "0.63063294", "0.62522304", "0.6220063", "0.62049687", "0.614735", "0.6080485", "0.606653", "0.6050566", "0.604115", "0.60385996", "0.6024655", "0.60095763", "0.6003709", "0.5958575...
0.0
-1
Shows detailed information about the guild
async def _server(YKHO, OaeV: commands.Context) -> None: lSCo = OaeV.guild Q1PJ = S8ul(author_image=lSCo.icon_url, author_text=lSCo.name, thumbnail_url=lSCo.icon_url, fields=[{'name': 'Owner', 'value': f'{lSCo.owner.name}#{lSCo.owner.discriminator}', 'inline': True}, {'name': 'ID', 'value': lSCo.id, 'inline': T...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def server_info(YKHO, OaeV):\n lSCo = OaeV.guild\n id = lSCo.id\n Fh8F = lSCo.premium_subscription_count\n zn0c = str(lSCo.region)\n xMux = len(lSCo.channels)\n dIT4 = len(lSCo.voice_channels)\n zNrl = len(lSCo.text_channels)\n bkDO = lSCo.emoji_limit\n kpVu = lSCo.bitrate_limit\n ...
[ "0.7573736", "0.75052017", "0.74754894", "0.7311987", "0.7265787", "0.7236074", "0.7154301", "0.7087745", "0.69484943", "0.6918941", "0.6815126", "0.6812217", "0.6763733", "0.67358017", "0.673238", "0.66851336", "0.6648527", "0.66124135", "0.6604795", "0.657943", "0.6524669",...
0.6849063
10
Get the state of this virus particle's resistance to a drug. This method is called by getResistPop() in Patient to determine how many virus particles have resistance to a drug.
def dZQV(YKHO, Sg6F): return YKHO.resistances.get(Sg6F, True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bRed(YKHO, UB2V):\n FNKX = 0\n for lqcW in YKHO.viruses:\n Xf3j = 0\n for Sg6F in UB2V:\n if lqcW.isResistantTo(Sg6F):\n Xf3j += 1\n if len(UB2V) != 0 and Xf3j == len(UB2V):\n FNKX += 1\n return FNKX", "def bRed(YKHO, UB2V):\n sGr0 = 0\n ...
[ "0.6919469", "0.6856316", "0.67024064", "0.65478116", "0.58350253", "0.5780054", "0.5780054", "0.5584333", "0.5423803", "0.5413626", "0.53796405", "0.5349921", "0.5327192", "0.5321123", "0.5294998", "0.5290551", "0.52852607", "0.5264033", "0.524149", "0.52350664", "0.52097785...
0.5442036
8
Administer a drug to this patient. After a prescription is added, the drug acts on the virus population for all subsequent time steps. If the newDrug is already prescribed to this patient, the method has no effect.
def Lu0i(YKHO, grr_): YKHO.administeredDrugs.append(grr_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lu0i(YKHO, grr_):\n if grr_ not in YKHO.Prescriptions:\n YKHO.Prescriptions.append(grr_)", "def Lu0i(YKHO, grr_):\n if YKHO.prescriptions.count(grr_) == 0:\n YKHO.prescriptions.append(grr_)", "def yq8k(YKHO, yq8k):\n YKHO.logger.debug(\"In 'illicit_drug' setter.\")\n YKHO._illicit...
[ "0.70781976", "0.66606057", "0.5629379", "0.53475857", "0.49276462", "0.47996816", "0.45724362", "0.4522651", "0.44906902", "0.44906253", "0.44545615", "0.44016516", "0.43617645", "0.43501145", "0.43469536", "0.4337187", "0.4316035", "0.43119177", "0.43059728", "0.43037888", ...
0.8208984
0
Assert that an Invitation can be stored in the service.
def T1h5(cuiw): _yLb = E6kZ(session=cuiw, status='PENDING') cuiw.add(_yLb) cuiw.commit() assert _yLb.id is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fc7w(YKHO) -> None:\n YKHO._perform_background_initial_update()\n IrOQ = YKHO.register_user('u1', 'pass')\n EMGz = YKHO.login('u1', 'pass')\n J1b4 = YKHO.helper.create_room_as(IrOQ, tok=EMGz)\n KoVS = YKHO.register_user('u2', 'pass')\n JgsY = YKHO._get_current_stats('room', J1b4)\n assert ...
[ "0.6598242", "0.6533879", "0.63761723", "0.628309", "0.61816716", "0.60996914", "0.60878426", "0.6076657", "0.60712063", "0.6062772", "0.60414684", "0.60027367", "0.5993242", "0.5974805", "0.59531873", "0.5927374", "0.5924788", "0.5893914", "0.5880523", "0.5855782", "0.580468...
0.68093157
0
Assert that an Invitation can retrieved by the user id.
def mnj5(cuiw): _yLb = E6kZ(session=cuiw, status='PENDING') cuiw.add(_yLb) cuiw.commit() iPW2 = gMDz.find_invitations_by_user(_yLb.sender_id) assert len(iPW2) > 0 assert iPW2[0].recipient_email == _yLb.recipient_email assert iPW2[0].token == _yLb.token
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J65d(cuiw):\n _yLb = E6kZ(session=cuiw, status='PENDING')\n cuiw.add(_yLb)\n cuiw.commit()\n iPW2 = gMDz.find_invitation_by_id(_yLb.id)\n assert iPW2\n assert iPW2.id == _yLb.id", "def fc7w(YKHO) -> None:\n YKHO._perform_background_initial_update()\n IrOQ = YKHO.register_user('u1', 'p...
[ "0.6765188", "0.65797085", "0.6473937", "0.6466358", "0.64187866", "0.62600297", "0.6247256", "0.6247256", "0.62020624", "0.6161826", "0.6155115", "0.6147737", "0.6113573", "0.60275775", "0.6025673", "0.60181934", "0.6015921", "0.59284234", "0.5925579", "0.5917897", "0.591280...
0.7005724
0
Assert that an Invitation can be updated.
def MzYo(cuiw): _yLb = E6kZ(session=cuiw, status='FAILED') cuiw.add(_yLb) cuiw.commit() _yLb.update_invitation_as_retried() assert _yLb assert _yLb.invitation_status_code == 'PENDING'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x5h2(YKHO):\n _yLb = YKHO.project.invitations.create(email='jane.doe@example.com')\n YKHO.project.invitations.create(email='Joe.Bloggs@example.com')\n _yLb.email = 'joe.bloggs@example.com'\n QqTd = {'email': ['Email address already has an invitation for this project.']}\n with YKHO.assertValidat...
[ "0.6871184", "0.6724529", "0.6522729", "0.63894767", "0.61892426", "0.60847694", "0.6081069", "0.6066777", "0.60447204", "0.6042557", "0.60149854", "0.60050905", "0.59994316", "0.59979796", "0.59979796", "0.59979796", "0.599347", "0.59689885", "0.5965268", "0.5937042", "0.593...
0.641412
3
Assert that Invitations for a specified org can be retrieved.
def rLyO(cuiw): _yLb = E6kZ(session=cuiw, status='PENDING') cuiw.add(_yLb) cuiw.commit() JJst = gMDz.find_invitations_by_org(_yLb.membership[0].org_id) assert JJst assert len(JJst) == 1 assert JJst[0].membership[0].org_id == _yLb.membership[0].org_id assert _yLb.invitation_status_code ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vt9s(cuiw):\n _yLb = E6kZ(session=cuiw, status='PENDING')\n cuiw.add(_yLb)\n cuiw.commit()\n iPW2 = gMDz.find_pending_invitations_by_org(_yLb.membership[0].org_id)\n assert len(iPW2) == 1\n assert iPW2[0].recipient_email == _yLb.recipient_email", "def hKnV(cuiw, OU6e):\n with Po4F.object...
[ "0.7499905", "0.7057651", "0.6044612", "0.5954999", "0.5946406", "0.5893454", "0.58842784", "0.58737093", "0.58502394", "0.58146435", "0.5813813", "0.580076", "0.5800233", "0.57933205", "0.5791429", "0.5761049", "0.5753965", "0.5733868", "0.5678464", "0.5670789", "0.56496835"...
0.79871935
0
Assert that an Invitation can retrieved by the user id.
def B8Bg(cuiw): _yLb = E6kZ(session=cuiw, status='PENDING') cuiw.add(_yLb) cuiw.commit() iPW2 = gMDz.find_pending_invitations_by_user(_yLb.sender_id) assert len(iPW2) == 1 assert iPW2[0].recipient_email == _yLb.recipient_email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mnj5(cuiw):\n _yLb = E6kZ(session=cuiw, status='PENDING')\n cuiw.add(_yLb)\n cuiw.commit()\n iPW2 = gMDz.find_invitations_by_user(_yLb.sender_id)\n assert len(iPW2) > 0\n assert iPW2[0].recipient_email == _yLb.recipient_email\n assert iPW2[0].token == _yLb.token", "def J65d(cuiw):\n _...
[ "0.70082533", "0.6768077", "0.6583369", "0.64745814", "0.64220476", "0.6260719", "0.6245635", "0.6245635", "0.620534", "0.6164501", "0.61578953", "0.6150711", "0.6113398", "0.60269326", "0.6026292", "0.601953", "0.6014456", "0.5927966", "0.592738", "0.5914951", "0.59128845", ...
0.646825
4
Assert that an Invitation can retrieved by the org id.
def Vt9s(cuiw): _yLb = E6kZ(session=cuiw, status='PENDING') cuiw.add(_yLb) cuiw.commit() iPW2 = gMDz.find_pending_invitations_by_org(_yLb.membership[0].org_id) assert len(iPW2) == 1 assert iPW2[0].recipient_email == _yLb.recipient_email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLyO(cuiw):\n _yLb = E6kZ(session=cuiw, status='PENDING')\n cuiw.add(_yLb)\n cuiw.commit()\n JJst = gMDz.find_invitations_by_org(_yLb.membership[0].org_id)\n assert JJst\n assert len(JJst) == 1\n assert JJst[0].membership[0].org_id == _yLb.membership[0].org_id\n assert _yLb.invitation_s...
[ "0.7058797", "0.6586798", "0.63994974", "0.6220015", "0.61890185", "0.61088693", "0.60194165", "0.5968376", "0.59523827", "0.5920788", "0.59006757", "0.58994067", "0.58802795", "0.5838587", "0.5804246", "0.5768285", "0.5747542", "0.572735", "0.5672087", "0.56679237", "0.56579...
0.6571146
2
Assert that an Invitation can retrieved by the user id.
def OHsl(cuiw): _yLb = E6kZ(session=cuiw, status='PENDING') cuiw.add(_yLb) cuiw.commit() iPW2 = gMDz.find_invitations_by_status(_yLb.sender_id, 'FAILED') assert len(iPW2) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mnj5(cuiw):\n _yLb = E6kZ(session=cuiw, status='PENDING')\n cuiw.add(_yLb)\n cuiw.commit()\n iPW2 = gMDz.find_invitations_by_user(_yLb.sender_id)\n assert len(iPW2) > 0\n assert iPW2[0].recipient_email == _yLb.recipient_email\n assert iPW2[0].token == _yLb.token", "def J65d(cuiw):\n _...
[ "0.7005724", "0.6765188", "0.65797085", "0.6473937", "0.6466358", "0.64187866", "0.62600297", "0.6247256", "0.6247256", "0.62020624", "0.6161826", "0.6155115", "0.6147737", "0.6113573", "0.60275775", "0.6025673", "0.60181934", "0.6015921", "0.59284234", "0.5925579", "0.591789...
0.56685525
47
Hashes a users password. >>> hash_password('123456') 'f8cdb04495ded4761525'
def qzFd(jTXt): return HBct.sha224(jTXt).hexdigest()[:20]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnut(jTXt, NTzC='sha256'):\n return vT87(jTXt, NTzC)", "def qzFd(jTXt):\n return HBct.md5(jTXt).hexdigest()", "def qzFd(jTXt):\n NTfD = HBct.md5(jTXt.encode())\n return NTfD.hexdigest()", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)", "def GPjS(YKHO, jTXt):\n hmgX = B8ni.h...
[ "0.8334604", "0.8276079", "0.81635815", "0.8052726", "0.8037033", "0.7965848", "0.79459155", "0.79436976", "0.79416233", "0.7922091", "0.7913242", "0.78741276", "0.78449845", "0.78449845", "0.78449845", "0.7844944", "0.7838986", "0.7825187", "0.7810522", "0.78016955", "0.7769...
0.792101
10
Converts a list of trip entities into a modified dictionary. >>> e1 = Event(event_name = 'Hackbright', starts_at = datetime(2016, 9, 14, 0, 0, 0)) >>> m1 = Meeting(meeting_subject = 'Go Karting', starts_at = datetime(2016, 9, 14, 5, 0, 0)) >>> trip_entities = [e1, m1] >>> create_trip_entities_dict(trip_entities)
def IjnN(R_JS): R_JS = [LEXu.__dict__ for LEXu in R_JS] for LEXu in R_JS: if '_sa_instance_state' in LEXu: del LEXu['_sa_instance_state'] if 'starts_at' in LEXu: LEXu['start_time'] = LEXu['starts_at'].strftime('%H:%M') LEXu['starts_at'] = LEXu['starts_at'].str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rvm6(YKHO, nPrm):\n Oi6D = {}\n for rdlD in nPrm.itertuples():\n A97Q = YKHO.nlp(rdlD.keywords)\n for ShoO in A97Q.ents:\n H5ew = str(ShoO.label_) + ''\n if ShoO.label_ in Oi6D:\n Oi6D[H5ew].append(str(ShoO)) if not str(ShoO) in Oi6D[H5ew] else print(f'T...
[ "0.59330904", "0.5796995", "0.5477478", "0.51371986", "0.50450075", "0.50368917", "0.49683827", "0.49615437", "0.49365598", "0.4935318", "0.49269828", "0.48732376", "0.48430148", "0.4833741", "0.48173618", "0.48017114", "0.47893798", "0.47883683", "0.475298", "0.4722285", "0....
0.83001906
0
config vem do pytestflask
def Y3uZ(GPtr): assert GPtr['DEBUG'] is False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zmu8():\n assert LUif('testing', settings={'TESTING': True, 'SQLALCHEMY_TRACK_MODIFICATIONS': False}).testing", "def zmu8(P4t4):\n assert P4t4.testing", "def zmu8():\n assert not mvm2.create_app().testing\n assert mvm2.create_app({'TESTING': True}).testing", "def uKtC(GPtr):\n nJDW = ['/bo...
[ "0.7066745", "0.7031013", "0.68879503", "0.6688816", "0.66499424", "0.65846634", "0.6523696", "0.64806455", "0.64796376", "0.6459144", "0.6379308", "0.6346656", "0.63368934", "0.63285035", "0.6237353", "0.6199135", "0.6186742", "0.6165036", "0.6155194", "0.6142941", "0.608641...
0.0
-1
Chooses a random mutation type based on mutation probabilities.
def WG_w(YKHO): return YKHO.random_state.choice(YKHO.mutation_types, p=YKHO.mutation_probabilities)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r3Zb(YKHO):\n lwBU = max(1, int(round(tuKI.gauss(15, 4)))) / 100\n '\\n Changed the mutation by using random.randint rather than the gaussian one \\n after observing that the gaussian random never really gave an output of more than 0.25\\n '\n VbMK = tuKI.choice(YKHO.params)\n ...
[ "0.6571593", "0.6339093", "0.6234432", "0.62333727", "0.6213886", "0.62068486", "0.61974835", "0.6156622", "0.61490154", "0.61143494", "0.6077504", "0.60190576", "0.6011488", "0.599087", "0.5955219", "0.59421235", "0.59073347", "0.5903635", "0.58468455", "0.58281", "0.5826249...
0.82146
0
Get area in km^2 after reprojection.
def IxtP(UT57): tOS4 = [o2ts(XP5J) for XP5J in UT57] return IPme.cascaded_union(tOS4).area * 1e-06
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n mM0K = XTiz.pi\n pbNT = 4.0 * mM0K / 8.0\n KA7m = 4.0 ** YKHO.depth\n f0tD = pbNT / KA7m * (180.0 / mM0K) ** 2\n return f0tD", "def f0tD(YKHO):\n f0tD = 0\n XVAW = YKHO._coordinates[-1]\n for Z9rn in YKHO._coordinates:\n f0tD += XVAW[0] * Z9rn[1] - XVAW[1] * Z9rn[...
[ "0.6812882", "0.67852825", "0.6729171", "0.6721389", "0.6671579", "0.6569876", "0.6498827", "0.6494643", "0.64915043", "0.6472188", "0.6450688", "0.645012", "0.64472353", "0.64361376", "0.6434617", "0.6430422", "0.6392026", "0.63885665", "0.6385873", "0.6363714", "0.63558227"...
0.71593785
0
Plot image with subplot. Requires image and subplot location (ie. (1,2,1)). You can also set title.
def gpg2(qw7D, sfhS, leAC='', hhRS=18, iMGt=None): H4yH = QrM1.subplot(*sfhS) H4yH.set_title(leAC, fontsize=hhRS) QrM1.axis('off') QrM1.imshow(qw7D, cmap=iMGt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DM2M(VXjJ, UXqs=''):\n if VXjJ.shape[0] == 3:\n VXjJ = VXjJ.transpose(1, 2, 0)\n LZpg, aNZO = QrM1.subplots(1)\n uuEx.set_style('white')\n aNZO.imshow(oyIN.asarray(VXjJ))\n if UXqs != '':\n QrM1.title(fJgQ[UXqs])\n return (LZpg, aNZO)", "def pGQt(YKHO, LNo8: Array2D, z0cN: boo...
[ "0.7116965", "0.6945312", "0.6673151", "0.6663349", "0.66338056", "0.65664774", "0.64825416", "0.6429361", "0.6358112", "0.63123095", "0.63123095", "0.63123095", "0.627812", "0.6262092", "0.6225436", "0.62118477", "0.62042576", "0.6193083", "0.61527634", "0.61469394", "0.6135...
0.62779784
13
Verify that the response code for the create chassis request is correct.
def bksN(YKHO): YKHO.assertEqual(YKHO.create_chassis_resp.status_code, 201)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jgvV(YKHO, Wxnj):\n if Wxnj == uwaB.response.SSH_AGENT_FAILURE:\n raise kM2p()\n elif Wxnj != uwaB.response.SSH_AGENT_SUCCESS:\n raise ValueError('The SSH agent responded using an unknown result code ({})'.format(Wxnj))", "def thZk(YKHO):\n xmW6 = QePW('get', '/chassis')\n YKHO.asse...
[ "0.6570777", "0.6245206", "0.6229654", "0.61239636", "0.603671", "0.6023078", "0.6004484", "0.5999776", "0.5994532", "0.5975004", "0.5970505", "0.59513444", "0.5934519", "0.5894403", "0.5890529", "0.5873654", "0.5844321", "0.5844321", "0.5841847", "0.5836892", "0.5807992", ...
0.8938018
0
The initializer for the linear deparator class (neural network with diagonal weight matrices)
def FIMM(YKHO, Csk6, DbxN, rb7a, **B2fa): YKHO.d = Csk6 YKHO.init = DbxN YKHO.depth = rb7a super(MnMC, YKHO).__init__(**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Zt8E, dIM5, yB6h=None, NCJH=None, prGP=None):\n assert len(Zt8E) > 1, 'At least one input layer and one output layer is needed'\n uPrp = IT1r.getSizeOfWeightVector(Zt8E) * dIM5\n if yB6h is None:\n if NCJH is None:\n NCJH = -1 / oyIN.sqrt(Zt8E[0])\n if prGP is None:...
[ "0.70310944", "0.6938409", "0.6912774", "0.68544775", "0.6759965", "0.67232704", "0.6702559", "0.6669329", "0.66547585", "0.66215545", "0.6611091", "0.6600073", "0.65947676", "0.65913355", "0.6572858", "0.6548509", "0.6537771", "0.65328485", "0.6520625", "0.65043694", "0.6499...
0.0
-1
Checks if current user is valid, if signed out, it returns False, if user object is None it returns False
def Baes(YKHO): if YKHO.state == Wa7E.LOGGED_OUT: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SGVO(YKHO):\n return YKHO.user.is_authenticated", "def Y8Sy(YKHO):\n return YKHO.auth.get_user_by_session() is not None", "def GfdN(YKHO):\n bypm = aXTx.resolve(aXTx.USERS)\n Esbi = YKHO.get()\n CBIr = YKHO.get_user()\n return CBIr is not None and bypm.verify_auth_token(Esbi.token, GPtr.S...
[ "0.7327295", "0.7115255", "0.70264876", "0.7008974", "0.69679374", "0.6918204", "0.6809665", "0.6788192", "0.6776219", "0.6730842", "0.6693477", "0.66762197", "0.66742283", "0.65988153", "0.6539529", "0.6508916", "0.64799225", "0.64781046", "0.6462319", "0.64581794", "0.64479...
0.8459481
0
Hash a password for storing.
def qzFd(jTXt): NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii') mNdd = HBct.pbkdf2_hmac('sha512', jTXt.encode('utf-8'), NTfD, 100000) mNdd = MRxC.hexlify(mNdd) return (NTfD + mNdd).decode('ascii')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(YKHO):\n YKHO.__password = YKHO.str_to_hash(YKHO.__password)", "def qzFd(YKHO, jTXt):\n YKHO.password = jf1V.encrypt(jTXt)", "def qzFd(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)", "def wnut(jTXt, NTzC='sha256'):\n return vT87(jTXt, NTzC)", "def GPjS(YKHO, jTXt):\n hmgX = B8ni.ha...
[ "0.847967", "0.8346137", "0.82644516", "0.80417943", "0.7999399", "0.7979167", "0.7971465", "0.7947968", "0.7919728", "0.78821445", "0.78162515", "0.77545875", "0.77411246", "0.766462", "0.76507545", "0.76267356", "0.75862885", "0.75638247", "0.755944", "0.7549114", "0.754458...
0.7510138
24
Gets the network topology as a dict.
def rebn(x0hE): JJQ9 = {} yqYz = map(str, SdLT(x0hE)) for zGKt in yqYz: JJQ9[zGKt] = [] for D8Ke, dqHE in tzCU(x0hE, zGKt): KWO7 = QOTX(x0hE, D8Ke) JJQ9[zGKt].append((KWO7, dqHE)) return JJQ9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MI5e(YKHO):\n Aofo = dict()\n Aofo['result'] = YKHO._topology\n return qQXR.dumps(Aofo)", "def zLC2(YKHO):\n return YKHO._topology", "def uHlL(YKHO):\n fhLP = {}\n fhLP['hosts'] = set()\n fhLP['switches'] = set()\n fhLP['links'] = list()\n fhLP['L'] = {}\n AKQs = YKHO.configSe...
[ "0.7275952", "0.69781256", "0.6929286", "0.66357285", "0.6523112", "0.6522756", "0.6461006", "0.64406073", "0.6427195", "0.6323752", "0.6315597", "0.6241414", "0.62313753", "0.6187923", "0.61743337", "0.61743337", "0.61632967", "0.60908616", "0.60351557", "0.60266066", "0.600...
0.5908165
31
Get the front element.
def T7C_(YKHO) -> int: if len(YKHO.stackOut) == 0: while len(YKHO.stackIn) != 0: LVAh = YKHO.stackIn.pop() YKHO.stackOut.append(LVAh) return YKHO.stackOut[-1] else: return YKHO.stackOut[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n VnzS = YKHO.queue[YKHO.front]\n return VnzS\n pass", "def uW34(YKHO):\n if not YKHO.isEmpty():\n return YKHO._data[0]\n else:\n return -1", "def VnzS(YKHO):\n return YKHO.queue[0] if not YKHO.empty() else None", "def vYJ5(YKHO):\n if YKHO.items:\n r...
[ "0.82009244", "0.79261875", "0.7852642", "0.7791182", "0.77886623", "0.75723046", "0.752337", "0.7510604", "0.7478953", "0.7379256", "0.7379256", "0.734284", "0.7323573", "0.7320296", "0.7291721", "0.72772557", "0.7269801", "0.72657627", "0.7253295", "0.72355044", "0.72213495...
0.0
-1
Returns whether the queue is empty.
def lsmZ(YKHO) -> bool: if len(YKHO.stackOut) == 0 and len(YKHO.stackIn) == 0: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.the_queue) == 0", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return not YKHO._queue"...
[ "0.9270249", "0.92506766", "0.923635", "0.923635", "0.9155843", "0.9098441", "0.9095006", "0.90922606", "0.90731245", "0.9053733", "0.89205354", "0.89137155", "0.8877591", "0.88436323", "0.88436323", "0.8835949", "0.88038146", "0.8758203", "0.87577534", "0.87310195", "0.86462...
0.0
-1
Testing if each side has only 4 stickers of each color.
def LHQ3(YKHO): DWJ0, bGrB = list(YKHO.cube.scramble_cube(15)) kcwm, BWz1 = oyIN.unique(DWJ0, return_counts=True) cmPJ = dict(zip(kcwm, BWz1)) YKHO.assertEqual(all((BWXx == 4 for BWXx in cmPJ.values())), True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUMO(YKHO):\n for XP5J in YKHO.pieces:\n if [XP5J.x, XP5J.y, XP5J.z].count(0) < 2:\n for YRbF, KCHu in enumerate(XP5J.stickers):\n HPHZ = YKHO.getpiece(KCHu.x, KCHu.y, KCHu.z).getsticker(KCHu.x, KCHu.y, KCHu.z)\n if KCHu.c != HPHZ.c:\n retur...
[ "0.65600514", "0.64024806", "0.6111622", "0.6092814", "0.60618186", "0.6050172", "0.6020332", "0.6009627", "0.59965485", "0.5994018", "0.59735286", "0.5966397", "0.5946132", "0.59352934", "0.5933959", "0.59049577", "0.58730775", "0.5872805", "0.5777192", "0.57741284", "0.5759...
0.6140139
2
Create a dataframe containing some fake data
def Tm6N(ujem: SQLContext, UHFx=1000): usx6 = [(str(qxeD.uuid4()), tuKI.choice(['a', 'b', 'c', 'd']), tuKI.randint(10000000, 99999999)) for YRbF in range(UHFx)] return ujem.createDataFrame(usx6, aO5t())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yRdj() -> rLdf.DataFrame:\n jQ3Z = rLdf.DataFrame(oyIN.random.randint(0, 1000, size=(1000, 6)), columns=list('ABCDEF'))\n return jQ3Z", "def fIqG():\n jQ3Z = rLdf.read_csv('data/data.csv', header=0)\n return jQ3Z", "def R8y5():\n return rLdf.DataFrame({'growth': [0.873922, 0.814298, 0.0], 'g...
[ "0.79559106", "0.7656441", "0.7243437", "0.716989", "0.71392787", "0.7137078", "0.70885706", "0.70704633", "0.70191056", "0.7008791", "0.700453", "0.6969396", "0.69682574", "0.69653404", "0.6940493", "0.69370687", "0.68665665", "0.6853467", "0.6845845", "0.681318", "0.680513"...
0.73146576
2
Applies OWLRL reasoning from the Python owlrl library to the graph
def lHli(YKHO, pNZh): f3NW.DeductiveClosure(f3NW.OWLRL_Semantics).expand(pNZh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YIFC(YKHO):\n xDcj = '\\n SELECT DISTINCT ?incident ?incident_type_label\\n WHERE {\\n ?incident rdf:type baw:Incident .\\n ?incident baw:isOfIncidentType ?incident_type .\\n ?incident_type rdfs:label ?incident_type_label...
[ "0.5654984", "0.5642644", "0.5233853", "0.5190085", "0.51086634", "0.50949734", "0.5061123", "0.50500965", "0.50432307", "0.50018555", "0.49926707", "0.495828", "0.4942225", "0.49339157", "0.48538932", "0.48476878", "0.47962856", "0.4773984", "0.47489735", "0.47416294", "0.47...
0.45487526
45
Applies OWLRL reasoning from the Python owlrl library to the graph
def lHli(YKHO, pNZh): def jbZy(Ylbp): muOw, Ol8d = Ylbp muOw == int(muOw) if muOw == 0: return elif muOw == 1: raise Exception(f'Non-zero exit code {muOw} with message {Ol8d}') elif muOw == 2: G9jH.error(f'Non-zero exit code {muOw} with me...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YIFC(YKHO):\n xDcj = '\\n SELECT DISTINCT ?incident ?incident_type_label\\n WHERE {\\n ?incident rdf:type baw:Incident .\\n ?incident baw:isOfIncidentType ?incident_type .\\n ?incident_type rdfs:label ?incident_type_label...
[ "0.5655563", "0.56436276", "0.52339625", "0.5189624", "0.5107786", "0.5096615", "0.50607306", "0.5050002", "0.5043964", "0.5003191", "0.49921823", "0.49579373", "0.49426347", "0.4933147", "0.48545262", "0.4847491", "0.4795626", "0.47747505", "0.47505456", "0.47422296", "0.473...
0.0
-1
Creates a new HaystackInferenceSession that infers entities into the given namespace
def FIMM(YKHO, _63S): super(PRW8, YKHO).__init__(approximate=True, load_brick=True) YKHO._generated_triples = [] YKHO._BLDG = E5Ed.Namespace(_63S) YKHO._filters = [lambda WKvO: not WKvO.startswith('his'), lambda WKvO: not WKvO.endswith('Ref'), lambda WKvO: not WKvO.startswith('cur'), lambda WKvO: WKvO !...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P7rU(YKHO):\n xPXn = Ipp5.SessionOptions()\n xPXn.graph_optimization_level = Ipp5.GraphOptimizationLevel.ORT_DISABLE_ALL\n YKHO.infer_session = Ipp5.InferenceSession(YKHO.augmented_model_path, sess_options=xPXn, providers=YKHO.execution_providers)", "def b2Ab(YKHO):\n BQrz = tfQO.Model()\n BQr...
[ "0.57719624", "0.5458142", "0.5415007", "0.5292964", "0.46993527", "0.46957853", "0.46467748", "0.46252346", "0.45870125", "0.45230237", "0.45090255", "0.45024183", "0.4490142", "0.44655213", "0.44575697", "0.44102156", "0.44082698", "0.4399267", "0.43581992", "0.4357093", "0...
0.618797
0
Tokenize and preprocesses input word lists, involving the following steps 0. WordPiece tokenization. 1. Convert string tokens to token ids. 2. Convert input labels to label ids, if labels and label_map are provided. 3. If a word is tokenized into multiple pieces of tokens by the WordPiece tokenizer, label the extra tok...
def Byrm(YKHO, l5Ny, wzH_=Nqum, Crrw=None, ecF5=None, wC5M='X'): def Ikbk(YEnM): return isinstance(YEnM, iu5r) and (not isinstance(YEnM, str)) if wzH_ > Nqum: G9jH.warning('Setting max_len to max allowed sequence length: {}'.format(Nqum)) wzH_ = Nqum if not Ikbk(l5Ny): raise...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x_Qq(YKHO, g4y1):\n AfpW = ndK1([g4y1], YKHO.tokenizer_ltp, YKHO.tokenizer_cn)\n s2mk = YKHO.tokenizer_cn.tokenize(g4y1)\n if len(s2mk) > YKHO.max_seq_length - 2:\n s2mk = s2mk[:YKHO.max_seq_length - 2]\n AfpW = AfpW[:YKHO.max_seq_length - 2]\n AfpW = tHxK(s2mk, AfpW[0])\n s2mk, Cr...
[ "0.6883363", "0.6696494", "0.6695678", "0.6506391", "0.65052533", "0.6501796", "0.65004593", "0.64904433", "0.64697456", "0.6456079", "0.64348155", "0.64327294", "0.6419248", "0.6408841", "0.6399539", "0.6332851", "0.6332851", "0.63271964", "0.628218", "0.61245924", "0.612179...
0.71329325
0
Get absolute path to resource, works for dev and for PyInstaller
def JFat(t_yv): try: XSj5 = HwRy._MEIPASS except Exception: XSj5 = Hy7s.path.abspath('.') return Hy7s.path.join(XSj5, t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG():\n return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'resources') + Hy7s.path.sep", "def Q63V(Qth0):\n try:\n XSj5 = HwRy._MEIPASS\n except Exception:\n XSj5 = Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(HwRy.modules[__name__].__file__), 'assets'))\n return Hy7s.path.join...
[ "0.83695436", "0.8280479", "0.82485795", "0.8139178", "0.8114118", "0.80985415", "0.80940944", "0.80797124", "0.80677074", "0.80673695", "0.80569947", "0.80545217", "0.80448323", "0.80448323", "0.80448323", "0.80448323", "0.80448323", "0.80448323", "0.80448323", "0.80448323", ...
0.8062465
14
Returns the data in the form of a DataFrame. Supplying a list of dimensions filters the dataframe. If the data is already a DataFrame a copy is returned.
def WafH(YKHO, DbyF=None): if DbyF: DbyF = [YKHO.get_dimension(Csk6, strict=True) for Csk6 in DbyF] else: DbyF = DbyF.kdims tpio = [tpio.name for tpio in Htse if tpio in DbyF.kdims] return YKHO.interface.dframe(YKHO, DbyF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bOBl(YKHO, *qIxc, **B2fa):\n from pandas import DataFrame\n MOPg = next(uOgj(YKHO, 0, 1))\n nPrm = uOgj(YKHO, 1, None)\n return DataFrame(list(nPrm), columns=MOPg)", "def vXOu(YKHO, NArs=None, ym_X=None):\n if ym_X:\n raise NotImplementedError('Buffered reading not supported yet')\n ...
[ "0.61001545", "0.60947555", "0.6092169", "0.60852474", "0.60683244", "0.6057508", "0.602932", "0.60190564", "0.5878718", "0.581386", "0.57946086", "0.57871914", "0.57718825", "0.57689756", "0.5766065", "0.5750916", "0.5747028", "0.5723522", "0.57109016", "0.5708923", "0.56938...
0.5777129
12
Restricts the queryset so users can only see their current question
def k66M(YKHO): wzkt = rIAI.localtime(rIAI.now()) lyDC = RoxL.objects.filter(begin_timestamp__lte=wzkt, end_timestamp__gt=wzkt) wNzF = HE1e.objects.filter(exam__in=lyDC, user=YKHO.request.user, current_question__isnull=False) SR0I = super(l9DB, YKHO).get_queryset() SR0I = SR0I.filter(pk__in=list(map...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n return super().get_queryset().filter(user=YKHO.request.user)", "def k66M(YKHO, QePW):\n umWR = super().get_queryset(QePW)\n return umWR.filter(user=QePW.user)", "def k66M(YKHO: 'AnswerViewSet'):\n SR0I = super().get_queryset()\n X4T8 = YKHO.request.user.user_type.create_questio...
[ "0.70713353", "0.7008343", "0.6999726", "0.697823", "0.69214356", "0.6900586", "0.68676925", "0.68405104", "0.6826592", "0.6765974", "0.6763542", "0.67396015", "0.6698831", "0.66393846", "0.66212827", "0.6611483", "0.6607469", "0.65282714", "0.65282714", "0.65088904", "0.6496...
0.61864954
55
Assigns an exercise from active exam to user if they haven't been assigned one yet; returns that exercise Only students can access this (access from teachers returns 403)
def r7Y4(YKHO, QePW, **B2fa): wzkt = rIAI.localtime(rIAI.now()) rXk1 = Iofl(RoxL, pk=B2fa.pop('pk')) if rXk1.begin_timestamp > wzkt: return oGir(status=jGRS.HTTP_404_NOT_FOUND, data={'message': "L'esame non è ancora iniziato"}) if rXk1.end_timestamp <= wzkt: return oGir(status=jGRS.HTTP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TREE(Emd4, CBIr, YEnM):\n if not YEnM.assignment_group.is_examiner(CBIr):\n raise wPvU()", "def ueGd(YKHO):\n LbbW = Q6xf.AssessmentsApi(Q6xf.ApiClient())\n Aofo = LbbW.get_user_assignable_assessments('test@dka.im')\n YKHO.assertEqual(Aofo.total_count, 255)", "def oUnV(CBIr, dZ4Q, z3h9):...
[ "0.57704204", "0.5718873", "0.5717288", "0.56339175", "0.5597515", "0.5559141", "0.55335253", "0.55162555", "0.5498489", "0.54706067", "0.5452193", "0.5439074", "0.5438833", "0.5436084", "0.542471", "0.5421913", "0.54159087", "0.5411965", "0.5402812", "0.5350158", "0.5349037"...
0.5706972
3
Restricts the queryset so users can only see their current exercise
def k66M(YKHO): wzkt = rIAI.localtime(rIAI.now()) lyDC = RoxL.objects.filter(begin_timestamp__lte=wzkt, end_timestamp__gt=wzkt) wNzF = HE1e.objects.filter(exam__in=lyDC, user=YKHO.request.user, current_exercise__isnull=False) SR0I = super(RAcr, YKHO).get_queryset() SR0I = SR0I.filter(pk__in=list(map...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO, QePW):\n umWR = super(xrQx, YKHO).get_queryset(QePW)\n if QePW.user.is_superuser:\n return umWR.filter(content_type__lt=3)\n return umWR.filter(topic_id__in=QePW.user.profile.topics.all(), content_type__lt=3)", "def y6FT(Emd4, CBIr, YEnM):\n if not Emd4._meta.model.published_whe...
[ "0.65524936", "0.6401311", "0.6396814", "0.63729113", "0.6321733", "0.6306441", "0.62962556", "0.62887096", "0.6282846", "0.6266675", "0.62088287", "0.6148949", "0.61326647", "0.6127173", "0.61150676", "0.6098137", "0.6093078", "0.60561955", "0.6012393", "0.59932035", "0.5990...
0.6211743
10
1ranges Gaussian + one Yukawa
def Rekw(PiiY, hZk1, hF6E, YUs7, R2M7, d6f6): if True: return hZk1 * kLQb(-pow(PiiY / hF6E, 2)) + YUs7 * (1.0 - kLQb(-R2M7 * PiiY ** 2)) * kLQb(-d6f6 * PiiY) / PiiY else: return hZk1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9ml(YKHO, WKvO=oyIN.array([]), yGTL=0.0, wEsz=1.0):\n rpWh = -0.5 * oyIN.log(2.0 * oyIN.pi)\n Xl5S = -oyIN.log(wEsz)\n Hqt2 = -0.5 * ((WKvO - yGTL) / wEsz) ** 2\n return rpWh + Xl5S + Hqt2", "def Gkmu(WKvO, yGTL=0, WTkW=26.4, k0lF=1, nxyw=0):\n Fg_i = 1 / (WTkW * oyIN.sqrt(2 * oyIN.pi))\n ...
[ "0.6543564", "0.6533004", "0.65009606", "0.64741063", "0.64735866", "0.64680195", "0.63761353", "0.63755226", "0.63641816", "0.63604337", "0.6338307", "0.63291985", "0.631506", "0.62789863", "0.62495375", "0.62054586", "0.6194136", "0.6177896", "0.6175907", "0.6159172", "0.61...
0.5926634
60
2ranges Gaussian + one Yukawa
def lQnA(PiiY, hZk1, hF6E, YUs7, R2M7, d6f6, tjAZ, a4SS): if True: return hZk1 * kLQb(-pow(PiiY / hF6E, 2)) + YUs7 * kLQb(-pow(PiiY / R2M7, 2)) + d6f6 * (1.0 - kLQb(-tjAZ * PiiY ** 2)) * kLQb(-a4SS * PiiY) / PiiY else: return hZk1 * kLQb(-pow(PiiY / hF6E, 2)) + YUs7 * kLQb(-pow(PiiY / R2M7, 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re9E(WKvO, XOOk, dg7v, s1k6, pHXX, iYf1, xMw6):\n return IAWS(WKvO, XOOk, dg7v, s1k6) + IAWS(WKvO, pHXX, iYf1, xMw6)", "def S333(WKvO, gpRq, j93S, XOOk, E43s, Nqp_, pHXX):\n IZ6w = oyIN.exp(-0.5 * ((WKvO - gpRq) / j93S) ** 2)\n E0Gw = oyIN.exp(-0.5 * ((WKvO - E43s) / Nqp_) ** 2)\n akK9 = 1 - XOOk...
[ "0.69036436", "0.6521418", "0.6508367", "0.64123213", "0.63902074", "0.6347984", "0.6335562", "0.6270491", "0.62202364", "0.6212555", "0.62045145", "0.6202212", "0.6202135", "0.6168955", "0.616852", "0.6159925", "0.61389804", "0.61102456", "0.6086743", "0.60846287", "0.606317...
0.0
-1
2ranges Gaussian + one Yukawa square
def JyAb(PiiY, hZk1, hF6E, YUs7, R2M7, d6f6, tjAZ, a4SS): if True: return hZk1 * kLQb(-pow(PiiY / hF6E, 2)) + YUs7 * kLQb(-pow(PiiY / R2M7, 2)) + d6f6 * (1.0 - kLQb(-tjAZ * PiiY ** 2)) ** 2 * kLQb(-2.0 * a4SS * PiiY) / PiiY ** 2 else: return hZk1 * kLQb(-pow(PiiY / hF6E, 2)) + YUs7 * kLQb(-pow(P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re9E(WKvO, XOOk, dg7v, s1k6, pHXX, iYf1, xMw6):\n return IAWS(WKvO, XOOk, dg7v, s1k6) + IAWS(WKvO, pHXX, iYf1, xMw6)", "def vVtU(EcVT, yGTL, UkX0):\n XP5J = 1 / PZyS(2 * mM0K * UkX0)\n XP5J = XP5J * kLQb(-naF9(EcVT - yGTL, 2) / (2 * UkX0))\n\n def QRFO(WKvO, LVAh):\n return WKvO * LVAh\n ...
[ "0.68471813", "0.6463747", "0.63247275", "0.6313288", "0.6313288", "0.6313288", "0.6287984", "0.6252233", "0.62373304", "0.6233909", "0.6233909", "0.62324554", "0.62164015", "0.6213933", "0.6183132", "0.61724454", "0.61691517", "0.6145393", "0.61321616", "0.6124371", "0.61214...
0.0
-1
2ranges Gaussian + one Yukawa + one Yukawa square
def Qy0E(PiiY, hZk1, hF6E, YUs7, R2M7, d6f6, tjAZ, a4SS, sn1i, z7az, XS3E): if True: return hZk1 * kLQb(-pow(PiiY / hF6E, 2)) + YUs7 * kLQb(-pow(PiiY / R2M7, 2)) + d6f6 * (1.0 - kLQb(-tjAZ * PiiY ** 2)) * kLQb(-a4SS * PiiY) / PiiY + sn1i * (1.0 - kLQb(-z7az * PiiY ** 2)) ** 2 * kLQb(-2.0 * XS3E * PiiY) / Pi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Re9E(WKvO, XOOk, dg7v, s1k6, pHXX, iYf1, xMw6):\n return IAWS(WKvO, XOOk, dg7v, s1k6) + IAWS(WKvO, pHXX, iYf1, xMw6)", "def vVtU(EcVT, yGTL, UkX0):\n XP5J = 1 / PZyS(2 * mM0K * UkX0)\n XP5J = XP5J * kLQb(-naF9(EcVT - yGTL, 2) / (2 * UkX0))\n\n def QRFO(WKvO, LVAh):\n return WKvO * LVAh\n ...
[ "0.683054", "0.6156113", "0.61057544", "0.6097299", "0.6089542", "0.6089542", "0.6089542", "0.60753906", "0.60615045", "0.60557014", "0.60443085", "0.60270274", "0.60207975", "0.5996791", "0.5976392", "0.5968411", "0.5961397", "0.595475", "0.59492165", "0.5943827", "0.5907911...
0.0
-1
Save learnable model's parameters of each agent.
def lac1(YKHO): for d6pt, YWSi in enumerate(YKHO.agents): ht2j.save(YWSi.actor_local.state_dict(), 'agent{}_checkpoint_actor.pth'.format(d6pt + 1)) ht2j.save(YWSi.critic_local.state_dict(), 'agent{}_checkpoint_critic.pth'.format(d6pt + 1))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dHQp(YKHO):\n YKHO.trained_model_params = YKHO.sess_train.run([YKHO.ent_emb, YKHO.rel_emb])", "def Dyuv(YKHO):\n YKHO.last_grads = [xqoZ.grad for xqoZ in YKHO.agent.model.parameters()]\n YKHO.optimizer.pytorch_step()", "def kf2Z(YKHO, cb_Q, rdWj):\n QTBn = getattr(YKHO, 'state', {})\n BfDw.t...
[ "0.75264573", "0.69864136", "0.6825882", "0.6600375", "0.6543963", "0.65004605", "0.6480151", "0.63637465", "0.634861", "0.6336625", "0.63065845", "0.6301562", "0.62970734", "0.625989", "0.6254696", "0.62538546", "0.6244833", "0.6241226", "0.6192339", "0.61900115", "0.6181057...
0.7500514
1
Load learnable model's parameters of each agent.
def uyMl(YKHO): if ht2j.cuda.is_available(): O6p0 = lambda S8SU, hksT: S8SU.cuda() else: O6p0 = 'cpu' for d6pt, YWSi in enumerate(YKHO.agents): YWSi.actor_local.load_state_dict(ht2j.load('agent{}_checkpoint_actor.pth'.format(d6pt + 1), map_location=O6p0)) YWSi.critic_local.lo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IkbX(YKHO, pmON: str):\n mXQI.load_params(YKHO, pmON)\n NArs = ht2j.load(pmON)\n YKHO.dqn.load_state_dict(NArs['dqn_state_dict'])\n print('[INFO] loaded the model and optimizer from', pmON)", "def uC6t(YKHO, qIxc):\n YKHO.actors_cur = [None for bGrB in range(YKHO.num_agents)]\n YKHO.critics...
[ "0.6528969", "0.64266413", "0.6420081", "0.6385691", "0.6348845", "0.6311207", "0.6303016", "0.62518764", "0.6248974", "0.62411684", "0.62096554", "0.6199747", "0.61351556", "0.6115504", "0.61066806", "0.6096269", "0.60911316", "0.60587204", "0.6025436", "0.60167336", "0.6008...
0.6902219
0
Start the GUI and the asynchronous threads. We are in the main (original) thread of the application, which will later be used by the GUI as well. We spawn a new thread for the worker (I/O).
def FIMM(YKHO, LDIG, CBIr, i34x, l0A7, bjio): YKHO.master = LDIG YKHO.w = YKHO.master.winfo_screenwidth() YKHO.h = YKHO.master.winfo_screenheight() YKHO.guiVisible = 1 YKHO.GUIhide() YKHO.shotsFired = 0 YKHO.flashed = 0 YKHO.flashed2 = 0 YKHO.count = 0 YKHO.song = i34x YKHO.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HzsP(YKHO):\n YKHO.thread.start()\n YKHO.theMainLoop.emit(wDYU.SIGNAL('step()'))\n YKHO.app.exec_()", "def Kul5(YKHO):\n mR8S = ag6F(control=YKHO.control)\n YKHO.worker = OaWq(mR8S, parent=YKHO)\n YKHO.worker.signal_screening_output_to_gui.connect(YKHO.set_screening_output_to_gui)\n YKHO...
[ "0.6739887", "0.65283984", "0.6500797", "0.64503914", "0.64231384", "0.6405339", "0.63747615", "0.637361", "0.63591135", "0.63198584", "0.63198584", "0.6318967", "0.62888855", "0.62473863", "0.6235212", "0.6228425", "0.6191777", "0.6163265", "0.6147396", "0.6085522", "0.60722...
0.0
-1
randomly sample an action uniformly from the action space
def AMEM(YKHO, QTBn): return YKHO.env.action_space.sample()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xOhV(sEAN):\n return sEAN.action_space.sample()", "def hFZj(YKHO):\n return oyIN.random.choice(YKHO.possible_actions)", "def RcWY(YKHO, rNYq):\n return YKHO.env.action_space.sample()", "def Gjqr():\n return oyIN.random.randint(0, hJ4l)", "def su1c(YKHO, QTBn):\n XeOP = oyIN.random.choice...
[ "0.8401684", "0.8337434", "0.8238592", "0.81891686", "0.81752527", "0.77952963", "0.7733447", "0.76610124", "0.7614549", "0.7585453", "0.75688475", "0.75468457", "0.7543422", "0.7504272", "0.74674034", "0.7451388", "0.74320966", "0.74134237", "0.7404632", "0.73975825", "0.739...
0.7074232
37
Returns whether the given mismatch item is for a GitHub URL.
def dgQS(NsNG: Tuple[str, ValidatedMismatchType]) -> bool: bGrB, (jeGQ, bGrB) = NsNG return jeGQ.startswith('git')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v1bs(YGfp):\n pmON, aj52 = Hy7s.path.split(YGfp)\n pmON, rfQU = Hy7s.path.split(pmON)\n pmON, p31B = Hy7s.path.split(pmON)\n if _FIc.url(YGfp) and aj52.isdigit() and (rfQU == 'issues') and (p31B == 'redmine'):\n l1O6(f'url for redmine issue : {YGfp}')\n return True\n ...
[ "0.63885933", "0.6138137", "0.6082988", "0.60739523", "0.5967309", "0.5939359", "0.593493", "0.58723974", "0.5869958", "0.58176976", "0.5775038", "0.57686484", "0.57686317", "0.5747836", "0.5726105", "0.5704212", "0.56945777", "0.5676894", "0.56633955", "0.5645437", "0.560099...
0.8174016
0
Return the diagonal part of each matrix in a batch
def pKxH(UBMT, Ep8u): kdmR = ZylS.split(split_dim=0, num_split=Ep8u, value=UBMT) kdmR = [ZylS.expand_dims(ZylS.diag_part(ZylS.squeeze(a1PO, [0])), 0) for a1PO in kdmR] return ZylS.concat(0, kdmR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RbGg(YKHO):\n yvT9 = []\n for WKvO in Ni9Y(0, YKHO.lendiag()):\n yvT9.append(YKHO.retrieve(WKvO))\n return yvT9", "def IjIm(YKHO):\n E3D9 = YKHO.rep\n r8hN, exwG = YKHO.shape\n return [E3D9[YRbF, YRbF] for YRbF in range(min(r8hN, exwG))]", "def Cq4u(FNxs):\n Z9Mn = {}\n for Y...
[ "0.712944", "0.70870024", "0.70824987", "0.69518024", "0.68496966", "0.6773829", "0.66317725", "0.6620829", "0.6533222", "0.6505117", "0.6353034", "0.6351915", "0.6349437", "0.63441616", "0.63414663", "0.633113", "0.6246064", "0.62307507", "0.6208503", "0.6166812", "0.6122159...
0.6634581
6
Get rnn given input data. Note that if use bidirectional RNN, the outputs contains only h rather than (h, c)
def Xr8g(EcVT, wggQ, tsWk, Ep8u, CLda=1, jcva=1.0, ETkv=1.0, LT6S=False, tRfS='BasicLSTM', Q1b5=False): with ZylS.device('/cpu:0'): ZO3Q = ZylS.split(1, tsWk, EcVT) ZO3Q = [ZylS.squeeze(Z_xY, [1]) for Z_xY in ZO3Q] def bwbz(): if tRfS == 'GRU': VmPb = bLAM.GRUCell(wggQ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unC1(zi3C, wggQ, ustr):\n KCPh = ustr\n assert KCPh >= 1\n wjbX = wggQ\n egZz = U78l.GRU(input_size=zi3C, hidden_size=wjbX, num_layers=KCPh, bias=True, batch_first=True, dropout=0, bidirectional=False)\n return egZz", "def Xsrs(WbAn, bLAM, unDk, rZh3, cB3_, JIOk, heai):\n if JIOk:\n ...
[ "0.6563839", "0.64294267", "0.635171", "0.60921955", "0.6069791", "0.60392123", "0.59482735", "0.5892745", "0.58788294", "0.5873971", "0.58506", "0.5846425", "0.5798542", "0.5788454", "0.577733", "0.5761426", "0.57383144", "0.5687918", "0.568393", "0.5680258", "0.5659818", ...
0.5307832
42
Get rnn given input data. Note that if use bidirectional RNN, the outputs contains only h rather than (h, c)
def b59Q(EcVT, wggQ, tsWk, CLda=1, jcva=1.0, ETkv=1.0, LT6S=False, tRfS='GRU', Q1b5=False, F8Rb=False): Ep8u = ZylS.shape(EcVT)[0] if Q1b5: wggQ /= 2 def bwbz(): if tRfS == 'GRU': ECr0 = bLAM.GRUCell(wggQ) elif tRfS == 'LSTM': ECr0 = bLAM.LSTMCell(wggQ, ZylS....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unC1(zi3C, wggQ, ustr):\n KCPh = ustr\n assert KCPh >= 1\n wjbX = wggQ\n egZz = U78l.GRU(input_size=zi3C, hidden_size=wjbX, num_layers=KCPh, bias=True, batch_first=True, dropout=0, bidirectional=False)\n return egZz", "def Xsrs(WbAn, bLAM, unDk, rZh3, cB3_, JIOk, heai):\n if JIOk:\n ...
[ "0.6565104", "0.6430089", "0.6353251", "0.60938233", "0.60706764", "0.603923", "0.59495604", "0.58935905", "0.58809227", "0.5874694", "0.58512634", "0.5846865", "0.579937", "0.57900316", "0.5779321", "0.57628334", "0.57394516", "0.56898236", "0.5683491", "0.5680625", "0.56623...
0.5409995
35
Get a CNN model for text data
def UzWE(WbAn, pxXT, JPZV, zxl_, _Ycl=ZylS.nn.relu, kxP7=None, SOyF=False, wdin=ZylS.zeros_initializer, sMyr=1, LT6S=False): GhuM = ZylS.shape(WbAn) if kxP7 is not None: cNFu = ZylS.expand_dims(ZylS.expand_dims(kxP7, 0), 0) cNFu = ZylS.tile(cNFu, Jo7M([GhuM[0], int(epAf.floor(pxXT[0] / 2)), 1]))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrZb(ZGE9):\n C3ST = KYEi().get_model(model_name=ZGE9)\n return C3ST", "def xeR6(qXlM=None, PJWX=None):\n if qXlM is None:\n qXlM = EDpA.load_dictionary('model_hyperparameters.json')\n '\\n Load hyperparameter-specific values from JSON file.\\n '\n bV1g = qXlM.get('vocabulary_...
[ "0.65661967", "0.6355214", "0.63423324", "0.6334055", "0.62309915", "0.62224823", "0.61349905", "0.61244357", "0.6115915", "0.61096096", "0.610881", "0.60926867", "0.60906357", "0.6082066", "0.602661", "0.60257286", "0.60216564", "0.59937465", "0.5991809", "0.598112", "0.5952...
0.6337459
3
Sigmoid cross entropy loss function
def M247(UCRp, PZ7B, SGf8=1e-06, Z6T9=None, mWFP=None): with ZylS.name_scope(mWFP, 'SigmoidCrossEntropyWithProb', [UCRp, PZ7B]): UCRp = ZylS.minimum(UCRp, 1) I3ZC = PZ7B * -ZylS.log(ZylS.maximum(UCRp, SGf8)) + (1 - PZ7B) * -ZylS.log(ZylS.maximum(1 - UCRp, SGf8)) return I3ZC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ExI1(YKHO):\n tEbt = iXxX.SigmoidCrossEntropy()\n aMgO = tEbt.final_activation_op({'logits': YKHO.logits, 'metadata': {'mask': YKHO.mask}})\n assert oyIN.isclose(aMgO[0][0].numpy(), 0.54905695, atol=1e-05)\n assert oyIN.isclose(aMgO[2][4].numpy(), 0.0, atol=1e-05)\n N77f = tEbt({'mask': YKHO.mas...
[ "0.7751491", "0.7551262", "0.75343907", "0.75051636", "0.75051636", "0.7444408", "0.7444408", "0.7425999", "0.7405113", "0.74050504", "0.74008167", "0.74008167", "0.74008167", "0.74008167", "0.74008167", "0.74008167", "0.7392445", "0.73857886", "0.7383032", "0.7367221", "0.73...
0.0
-1
Retrieve variables from Variables section of Robot test yaml file content
def H_QB(hGN5): kc1W = [] z3_w = False for zFiD in hGN5.splitlines(): if z3_w: VVmi = ZbWC.split(' +', zFiD) if len(VVmi) > 1: XuY2 = VVmi[0] IXe0 = VVmi[1] if not IXe0.startswith('%'): kc1W.append([XuY2.str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zHeN(AtIy):\n try:\n with open(AtIy, 'r') as eHNT:\n PZgH = eJb6.load(eHNT)\n except:\n print(\"Can't read variables file %s\" % AtIy)\n HwRy.exit(1)\n return PZgH", "def vo4o(YKHO):\n OEgS = Y9oK(YKHO.correct_yaml)\n YKHO.assertIsNotNone(OEgS)\n YKHO.assertI...
[ "0.6942721", "0.67111003", "0.63479877", "0.61746496", "0.6149548", "0.6149451", "0.6136662", "0.5987612", "0.59549636", "0.590303", "0.58544385", "0.58243316", "0.58085585", "0.58006", "0.5738841", "0.57314175", "0.57119524", "0.57064676", "0.5685456", "0.5677424", "0.567386...
0.7670801
0
Set the functional form's expression.
def lsX7(YKHO, VN2L): YKHO.set(expression=VN2L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, lsX7):\n YKHO.set_expression(lsX7)", "def lsX7(YKHO, lsX7):\n YKHO._expression = lsX7", "def dJXX(YKHO, VN2L: Expr):\n YKHO.expr = EWKA.cnf(VN2L)", "def E7kz(YKHO, lsX7):\n YKHO.raw_expression = lsX7\n Beie = YKHO.raw_expression.split(':')\n if len(Beie) == 1:\n YKHO.c...
[ "0.6996593", "0.6932032", "0.63428557", "0.61447763", "0.59326226", "0.59325033", "0.59310293", "0.59310293", "0.59310293", "0.5665593", "0.55296236", "0.55026495", "0.5471867", "0.5461301", "0.5441167", "0.54367834", "0.54367834", "0.54300874", "0.54300874", "0.5412352", "0....
0.7309148
0
Return the independent variables involved in the expression.
def cjU4(YKHO): return YKHO._independent_variables
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jbKh(YKHO) -> oyIN.array:\n pass", "def TxP0(YKHO):\n return YKHO.x", "def Sq9r(YKHO):\n return YKHO._independent_variable", "def jbKh(YKHO) -> oyIN.array:\n return oyIN.array([YKHO.a, YKHO.b, YKHO.c])", "def kc1W(YKHO, *qIxc, **B2fa):\n return YKHO._optimizer.variables(*qIxc, **B2fa)", ...
[ "0.69342124", "0.6851764", "0.68462193", "0.6721704", "0.6716456", "0.6642885", "0.6637627", "0.65888846", "0.658444", "0.6566627", "0.6558127", "0.6558127", "0.65283096", "0.6495484", "0.6414297", "0.6411028", "0.6374305", "0.63611335", "0.6346324", "0.63318974", "0.62679744...
0.81513494
0
Check to see that independent_variables is a set of valid sympy symbols.
def isdE(hrcg): if isinstance(hrcg, str): hrcg = {FCE9.symbols(hrcg)} elif isinstance(hrcg, FCE9.Symbol): hrcg = {hrcg} elif isinstance(hrcg, (list, set)): if all([isinstance(wEf2, FCE9.Symbol) for wEf2 in hrcg]): pass elif all([isinstance(wEf2, str) for wEf2 in h...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNvs(lsX7, SUsj, SGPK=None):\n for aDi_ in SUsj:\n if aDi_ not in lsX7.free_symbols:\n raise ValueError(f\"symbol {aDi_} is not in expression's free symbols. Cannot use an independent variable which doesn't exist in the expression's free symbols {lsX7.free_symbols}\")\n if SGPK is not N...
[ "0.779202", "0.64148474", "0.63524044", "0.62356436", "0.6202438", "0.61021644", "0.6021484", "0.58973783", "0.5840786", "0.57279545", "0.5701512", "0.5695323", "0.56408083", "0.5625691", "0.56108725", "0.56052905", "0.560317", "0.5584926", "0.55055", "0.5470335", "0.54080087...
0.8080713
0
``dictionary`` A hilbert.dictionary.Dictionary instance mapping token strings from/to integer IDs; ``Nx`` A 1D arraylike instance (e.g. numpy.ndarray, scipy.sparse.csr_matrix, or list), in which the ith element contains the number of cooccurrences for token with ID i. Unigram Keeps track of token occurrence counts, and...
def FIMM(YKHO, cmPJ=None, jWa5=None, PJWX=True): YKHO.validate_args(cmPJ, jWa5) YKHO.dictionary = cmPJ or MKlR.dictionary.Dictionary() if jWa5 is None: YKHO.Nx = list() YKHO.N = 0 else: YKHO.Nx = list(jWa5) YKHO.N = sum(YKHO.Nx) YKHO.verbose = PJWX YKHO.check_sort...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(pmON, PJWX=True):\n cmPJ = MKlR.dictionary.Dictionary.load(Hy7s.path.join(pmON, 'dictionary'))\n with open(Hy7s.path.join(pmON, 'Nx.txt')) as VfMh:\n jWa5 = [int(UHFx) for UHFx in VfMh]\n return Slsr(dictionary=cmPJ, Nx=jWa5, verbose=PJWX)", "def ic3Z(YKHO):\n BWz1 = {eOtH: sum(Gstr.v...
[ "0.63577783", "0.6301986", "0.6040144", "0.591081", "0.57682973", "0.5737164", "0.56832945", "0.5651892", "0.5649262", "0.56411046", "0.5635786", "0.56348616", "0.5628582", "0.55958813", "0.5567158", "0.5559066", "0.5546402", "0.5522636", "0.5476858", "0.5476176", "0.54756427...
0.0
-1
Add counts from `other` to `self`, in place.
def CaoY(YKHO, Elif): if not isinstance(Elif, Slsr): return NotImplemented YKHO.sort_by_tokens(Elif.dictionary.tokens) for YRbF in range(len(Elif.dictionary)): pFS8 = Elif.Nx[YRbF] YKHO.Nx[YRbF] += pFS8 YKHO.N = sum(YKHO.Nx) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T7MU(YKHO, Elif) -> None:\n assert YKHO.id_ == Elif.id_\n assert YKHO.type_ == Elif.type_\n YKHO.count += Elif.count", "def Gq1f(YKHO, Elif):\n YKHO[1] += Elif[1]\n YKHO[2] += Elif[2]\n YKHO[3] = YKHO[0] and min(YKHO[3], Elif[3]) or Elif[3]\n YKHO[4] = max(YKHO[4], Elif[4])\n YKHO[5] ...
[ "0.78719115", "0.7291186", "0.7206332", "0.7085738", "0.6965994", "0.68076396", "0.6759624", "0.6721419", "0.67208", "0.66828096", "0.6660367", "0.6657896", "0.66390276", "0.6618846", "0.66137266", "0.6549241", "0.654614", "0.6533654", "0.65335256", "0.6517147", "0.64845985",...
0.7527159
1
Load the tokenID mapping and cooccurrence data previously saved in the directory at `path`.
def tyeH(pmON, PJWX=True): cmPJ = MKlR.dictionary.Dictionary.load(Hy7s.path.join(pmON, 'dictionary')) with open(Hy7s.path.join(pmON, 'Nx.txt')) as VfMh: jWa5 = [int(UHFx) for UHFx in VfMh] return Slsr(dictionary=cmPJ, Nx=jWa5, verbose=PJWX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tUsY(YKHO, pmON):\n YKHO._token2id_feq = YKHO._init_dict()\n ywwl = len(YKHO._token2id_feq)\n if pmON.endswith('.json'):\n with open(pmON, encoding='utf-8') as eHNT:\n tbx9 = qQXR.load(eHNT)\n for Rs4w, MHxz in tbx9.items():\n if isinstance(MHxz, int):\n ...
[ "0.6888017", "0.684878", "0.6761172", "0.6758128", "0.6750707", "0.67440856", "0.67440856", "0.67349714", "0.6616209", "0.6512348", "0.64929265", "0.62654686", "0.6200185", "0.6197975", "0.61570126", "0.6131554", "0.60154146", "0.60032016", "0.59774774", "0.5971658", "0.59609...
0.5366073
83
Return a categorical accuracy tensor for label and prediction tensors.
def KtPL(Y8eF, aMgO): jTqs = nMvt.int_shape(aMgO)[-1] TqsC = oyIN.ones(jTqs) if _mSQ is None else _mSQ Y8eF = nMvt.flatten(nMvt.argmax(Y8eF, axis=-1)) aMgO = nMvt.flatten(nMvt.argmax(aMgO, axis=-1)) wArC = YsYU(Y8eF, aMgO, num_classes=jTqs) wArC = nMvt.cast(wArC, nMvt.floatx()) gXXc = TqsC *...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h4ID(_mSQ=None):\n\n def KtPL(Y8eF, aMgO):\n \"\"\"\n Return a categorical accuracy tensor for label and prediction tensors.\n\n Args:\n y_true: the ground truth labels to compare against\n y_pred: the predicted labels from a loss network\n\n Returns:\n ...
[ "0.74594647", "0.7364117", "0.7302737", "0.7280148", "0.71904767", "0.71232694", "0.71155643", "0.70868564", "0.70617795", "0.7047447", "0.7013569", "0.6998929", "0.6994748", "0.6990108", "0.69784826", "0.6967084", "0.6963247", "0.6958624", "0.6918833", "0.68709403", "0.68655...
0.7392989
1
Get device_class from uiid (from eWeLink Servers) or from zeroconf type. Sonoff iFan02 and iFan03 both have uiid 34. But different types (strip and fan_light) and different local API for each type. Without uiid iFan02 will be displayed as 4 switches.
def hLiW(GPtr: dict): qpJ3 = GPtr.get('uiid') if qpJ3 == 126 and GPtr.get('params', {}).get('workMode') == 2: return 'cover' return W80_.get(qpJ3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rM2U(YKHO):\n if YKHO.values.primary.command_class == ed9g.BATTERY:\n return OJnG\n if YKHO.values.primary.command_class == ed9g.METER:\n return owsG\n if 'Temperature' in YKHO.values.primary.label:\n return BLo6\n if 'Illuminance' in YKHO.values.primary.label:\n return ...
[ "0.63209945", "0.62513936", "0.61521", "0.61028683", "0.60961854", "0.60473025", "0.60418415", "0.60231614", "0.60231614", "0.6018687", "0.59986573", "0.5937197", "0.58883446", "0.5880689", "0.5864063", "0.5807816", "0.5774061", "0.57536495", "0.57483846", "0.57402045", "0.57...
0.71670026
0
Generate gaussian kernel of given given size and dims (sizexsize)
def absm(YKHO, zNig: int, WTkW: float=1.0, yGTL: float=0.0) -> gyIm: YKHO.kernel_1d = oyIN.linspace(-(zNig // 2), zNig // 2, zNig) YKHO.kernel_1d = YKHO._gaussian_distribution(YKHO.kernel_1d, yGTL, WTkW) YKHO.kernel_2d = oyIN.outer(YKHO.kernel_1d.T, YKHO.kernel_1d) YKHO.kernel_2d *= 1.0 / YKHO.kernel_2d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Folk(zNig, WTkW=1.0):\n if zNig < 3:\n zNig = 3\n r8hN = zNig / 2\n WKvO, LVAh = oyIN.mgrid[-r8hN:r8hN + 1, -r8hN:r8hN + 1]\n WZcn = oyIN.exp(-(WKvO * WKvO + LVAh * LVAh) / (2 * WTkW * WTkW))\n fF13 = WZcn.sum()\n if not sum == 0:\n WZcn = WZcn / fF13\n return WZcn", "def h...
[ "0.7902869", "0.786879", "0.7847072", "0.77661806", "0.77438474", "0.7712658", "0.7674218", "0.7618137", "0.7394118", "0.73418796", "0.7264643", "0.7186383", "0.7143893", "0.7120836", "0.70702666", "0.7064734", "0.705532", "0.7051436", "0.70091546", "0.6969807", "0.6957415", ...
0.7456567
8
creates a table/grid showing days, activities and checkboxes
def Xkzj(YKHO, Vzk6, Xg1X): Sm0u = YKHO.t.get_days_names(Vzk6) dCYV = YKHO.t.get_activities_names(Vzk6) YKHO.e = {} YKHO.n = 0 YKHO.s = {} YKHO.n2 = 0 uakN = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] for YRbF in range(len(dCYV) + 2): for r845 in range(len(Sm0u) + 1): if YRbF ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k8en(YKHO):\n Qr9G = ['No Students in Section', 0, 0, 0, 0, 0, 0, ' ']\n abcX, K6P5 = qtqO(YKHO.start_date, YKHO.total_days, YKHO.section, YKHO.total_days)\n He_U = 0\n q5rg = []\n for CjKC in abcX:\n WZHJ = CjKC[0] & idMZ.models.StudentAttendanceRecord.school_day or CjKC[1]...
[ "0.60977846", "0.60459197", "0.5992083", "0.5974194", "0.5915584", "0.5894256", "0.58005345", "0.58005345", "0.57479286", "0.57234156", "0.56366456", "0.55605006", "0.55464846", "0.55322146", "0.5526016", "0.55224824", "0.5513997", "0.54925054", "0.5473437", "0.5459966", "0.5...
0.62570053
0
The getter for the _current_player attribute.
def mCd_(YKHO): return YKHO._current_player
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mCd_(YKHO):\n return YKHO.current_player", "def mCd_(YKHO):\n return YKHO.current_player", "def vevC(YKHO):\n return YKHO.currentPlayer", "def tRnr(YKHO) -> mVZ4:\n return YKHO.players[YKHO.player]", "def mCd_(YKHO):\n return YKHO.in_game_players[YKHO.curr_player_index]", "def GFCh(YKH...
[ "0.9196371", "0.9167629", "0.8987412", "0.88097066", "0.8781464", "0.8640522", "0.8623316", "0.8458299", "0.8148247", "0.8148247", "0.81295174", "0.80383986", "0.8036016", "0.8012114", "0.7962703", "0.79567903", "0.7695038", "0.76337355", "0.7379973", "0.70655584", "0.7051936...
0.8894675
3
The getter for the _players attribute.
def dPXt(YKHO): eZfC = list(YKHO._players.queue) eZfC.append(YKHO._current_player) return eZfC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dPXt(YKHO):\n return YKHO.players.values()", "def Bwa6(YKHO):\n return YKHO._get('players')", "def Bwa6(YKHO):\n return YKHO._get_by_class(mVZ4)", "def V6BG(YKHO):\n return iter(YKHO.players)", "def Bwa6(YKHO):\n return YKHO.currents.player", "def Bwa6(YKHO):\n return mVZ4.objects.f...
[ "0.8530375", "0.85068864", "0.7949154", "0.79324985", "0.7878253", "0.7776289", "0.77181107", "0.76457036", "0.76055986", "0.74832904", "0.7454246", "0.71900433", "0.715939", "0.71429646", "0.71379983", "0.71379983", "0.7125651", "0.7122962", "0.711865", "0.708791", "0.706007...
0.73835987
11
The constructor for Player class.
def FIMM(YKHO, mWFP): YKHO._name = mWFP.strip() YKHO._total_score = 0 YKHO._current_score = 0 YKHO._total_rolls = 0 YKHO._last_roll = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, oyg0):\n YKHO.player = oyg0", "def FIMM(YKHO, oyg0):\n YKHO.player = oyg0", "def FIMM(YKHO, *qIxc, **B2fa):\n super(mVZ4, YKHO).__init__(*qIxc, **B2fa)", "def FIMM(YKHO, u46J, pbPD, Rdq2):\n YKHO.name = u46J\n YKHO.number = pbPD\n YKHO.position = Rdq2", "def FIMM(YKHO, oyg0...
[ "0.8325796", "0.8283512", "0.82757884", "0.7873427", "0.76910484", "0.74152905", "0.73407257", "0.7339989", "0.73080474", "0.72154605", "0.7187213", "0.71855015", "0.7162278", "0.71577734", "0.7147525", "0.711649", "0.70886296", "0.7008489", "0.6954792", "0.69382685", "0.6898...
0.0
-1
The getter for the _name attribute.
def W0tD(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n return YKHO.attributes['name']", "def W0tD(YKHO):\n return YKHO._name", "def W0tD(YKHO):\n return YKHO._name", "def W0tD(YKHO):\n return YKHO._name", "def W0tD(YKHO):\n return YKHO._name", "def W0tD(YKHO):\n return YKHO._name", "def W0tD(YKHO):\n return YKHO._name...
[ "0.87166685", "0.87101245", "0.87101245", "0.86021405", "0.86021405", "0.86021405", "0.86021405", "0.86021405", "0.86021405", "0.86021405", "0.86021405", "0.86021405", "0.86021405", "0.8585303", "0.8585303", "0.85834324", "0.85834324", "0.8581335", "0.8576711", "0.8576711", "...
0.0
-1
The getter for the _total_score attribute.
def pHjC(YKHO): return YKHO._total_score
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zVrk(YKHO):\n return wz8S(YKHO)", "def vNP6(YKHO):\n return sum(YKHO.field)", "def hckV(YKHO):\n return YKHO._score", "def hckV(YKHO):\n return YKHO._score", "def hckV(YKHO):\n return YKHO._score", "def hckV(YKHO):\n return YKHO._score", "def hckV(YKHO):\n return float(YKHO._sc...
[ "0.7986217", "0.79395485", "0.78863955", "0.78863955", "0.78863955", "0.78604555", "0.7857501", "0.78363925", "0.7831491", "0.7831491", "0.7831491", "0.779419", "0.7793208", "0.76125747", "0.76040375", "0.7350401", "0.7289506", "0.72691095", "0.72604847", "0.72384334", "0.716...
0.850022
0
The getter for the _current_score attribute.
def LOOi(YKHO): return YKHO._current_score
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hckV(YKHO):\n return YKHO.score", "def hckV(YKHO):\n return YKHO.score", "def hckV(YKHO):\n return YKHO.score", "def hckV(YKHO):\n return YKHO._score", "def hckV(YKHO):\n return YKHO._score", "def hckV(YKHO):\n return YKHO._score", "def vNP6(YKHO):\n return YKHO._score", "def...
[ "0.8048643", "0.8048643", "0.8048643", "0.803927", "0.803927", "0.803927", "0.8021984", "0.79949594", "0.7967731", "0.7930169", "0.7715467", "0.7490199", "0.74467254", "0.7411087", "0.7303938", "0.72761375", "0.72663015", "0.72537977", "0.7222566", "0.71809137", "0.7131872", ...
0.8298104
0
The getter for the _total_rolls attribute.
def SP4V(YKHO): return YKHO._total_rolls
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def susA(YKHO):\n return YKHO._rollCount", "def uEgi(YKHO):\n YKHO._total_rolls += 1", "def rKSe(YKHO):\n return YKHO._roll", "def rKSe(YKHO):\n return YKHO._roll", "def W8OY(fF1T):\n return rKSe(fF1T).total", "def IVhU(YKHO):\n if YKHO.dice_array is None:\n return YKHO.number * ...
[ "0.7400069", "0.7167874", "0.6841755", "0.6841755", "0.68310744", "0.670044", "0.6561508", "0.6530778", "0.6493408", "0.6451612", "0.63602394", "0.6330336", "0.63166887", "0.625605", "0.62324303", "0.6180449", "0.61065423", "0.6100029", "0.6090371", "0.60813016", "0.6067108",...
0.8589699
0
Rotation about the yaxis.
def A9Me(a1PO): Z9rn = oyIN.cos(a1PO) KCHu = oyIN.sin(a1PO) return oyIN.array([[Z9rn, 0, KCHu], [0, 1, 0], [-KCHu, 0, Z9rn]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CSjm(YKHO):\n return epAf.degrees(YKHO._rot_y_rad)", "def VFbY(YKHO):\n return YKHO._rot_y_rad", "def PQG0(YKHO, *qIxc, **B2fa) -> ImMB:\n pass", "def a60O(YKHO, YylR):\n YylR *= oyIN.pi / 180\n return YKHO.transform(oyIN.matrix([[oyIN.cos(YylR), 0, oyIN.sin(YylR)], [0, 1, 0], [-oyIN.sin(Y...
[ "0.75396633", "0.7354722", "0.7102622", "0.7064357", "0.7036538", "0.6986756", "0.6895528", "0.6895528", "0.68484044", "0.68028474", "0.6717387", "0.66640604", "0.66279566", "0.6614649", "0.658053", "0.6575346", "0.6554816", "0.6505504", "0.63935125", "0.6393029", "0.63855916...
0.0
-1
Transformation matrix from rotation matrix and translation vector.
def f30r(A3Vt, a1PO): A3Vt = A3Vt.reshape(3, 3) a1PO = a1PO.reshape(3, 1) return oyIN.vstack((oyIN.hstack([A3Vt, a1PO]), [0, 0, 0, 1]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cFTJ(YKHO):\n a1PO = oyIN.array([[0.0], [0.0], [0.0]])\n h4Tb = oyIN.hstack([YKHO.rotation_matrix, a1PO])\n return oyIN.vstack([h4Tb, oyIN.array([0.0, 0.0, 0.0, 1.0])])", "def GBH6(A3Vt):\n A3Vt = aLMY(A3Vt)\n Kt_s = A3Vt.col_insert(3, aLMY([0.0, 0.0, 0.0]))\n Kt_s = Kt_s.row_insert(3, aLMY...
[ "0.79315966", "0.75733316", "0.73280466", "0.71130884", "0.70770854", "0.70018923", "0.6995183", "0.6988624", "0.692278", "0.69205934", "0.6901036", "0.68665427", "0.68665427", "0.686329", "0.6860585", "0.68528104", "0.6841857", "0.6838954", "0.6835493", "0.6825314", "0.68218...
0.6620702
38
Initialize a user with a first and last name, and age
def FIMM(YKHO, c9ua, zp3f, ZJe_): YKHO.first_name = c9ua YKHO.last_name = zp3f YKHO.age = ZJe_ YKHO.login_attempts = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, c9ua, zp3f, Kb0M, NtEF):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f\n YKHO.birthday = Kb0M\n YKHO.username = NtEF\n YKHO.login_attempts = 0\n YKHO.age = YKHO.set_birthday()", "def FIMM(YKHO, c9ua, zp3f, ZJe_):\n YKHO.first_name = c9ua\n YKHO.last_name = zp3f\n YKHO...
[ "0.76932657", "0.72238356", "0.72238356", "0.72238356", "0.72238356", "0.72238356", "0.72238356", "0.72238356", "0.72238356", "0.71969366", "0.7194928", "0.71771306", "0.7076065", "0.6950117", "0.6857025", "0.6814328", "0.6793207", "0.67545223", "0.67545223", "0.65966964", "0...
0.74646187
1
Get all transactions for a specific rule id.
def g0_o(id, yKcO=None, Os4s=None): gQVK = None if yKcO is not None and Os4s is not None: gQVK = GGod().execute('SELECT * FROM transactions WHERE rule_id = ? AND days >= ? AND days <= ? ORDER BY days DESC', (id, yKcO, Os4s)).fetchall() elif yKcO is None and Os4s is not None: gQVK = GGod().ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AFPB(id, yKcO=None):\n if yKcO is None:\n yKcO = BfDw.get_first_day_of_month()\n Kh6j = GGod().execute('SELECT * FROM transactions WHERE rule_id = ? AND days < ? ORDER BY id DESC LIMIT 1', (id, yKcO)).fetchone()\n return Kh6j", "def X5HN(id, yKcO=None):\n if yKcO is None:\n yKcO = B...
[ "0.618485", "0.5856459", "0.58338904", "0.5738404", "0.5664297", "0.55717075", "0.55712694", "0.5543796", "0.55017984", "0.54876316", "0.53108495", "0.5232205", "0.5228999", "0.5228067", "0.52164614", "0.5154982", "0.51244783", "0.5107215", "0.50622654", "0.50382036", "0.4998...
0.7125169
0
Get all transactions for a specific rule id.
def SClQ(id, Os4s=None): Kh6j = None if Os4s is not None: Kh6j = GGod().execute('SELECT * FROM transactions WHERE rule_id = ? AND days < ? ORDER BY days DESC LIMIT 1', (id, BfDw.get_days_from_date(Os4s))).fetchone() else: Kh6j = GGod().execute('SELECT * FROM transactions WHERE rule_id = ? OR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g0_o(id, yKcO=None, Os4s=None):\n gQVK = None\n if yKcO is not None and Os4s is not None:\n gQVK = GGod().execute('SELECT * FROM transactions WHERE rule_id = ? AND days >= ? AND days <= ? ORDER BY days DESC', (id, yKcO, Os4s)).fetchall()\n elif yKcO is None and Os4s is not None:\n gQVK =...
[ "0.7125169", "0.618485", "0.5856459", "0.58338904", "0.5738404", "0.5664297", "0.55712694", "0.5543796", "0.55017984", "0.54876316", "0.53108495", "0.5232205", "0.5228999", "0.5228067", "0.52164614", "0.5154982", "0.51244783", "0.5107215", "0.50622654", "0.50382036", "0.49982...
0.55717075
6
Create variables for iteratively slicing a dense gradients tensor.
def HQSS(maxY, jiVp): Q9mc = _WqI.shape(maxY[0]) ZHfW = _WqI.concat([_WqI.zeros(_WqI.expand_dims(jiVp, 0), dtype=m1c7.int32), [1], _WqI.zeros(Q9mc - jiVp - 1, dtype=m1c7.int32)], 0) _9an = _WqI.zeros(Q9mc, dtype=m1c7.int32) return (ZHfW, _9an)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iy2S(YKHO):\n with ZylS.variable_scope('Gradient_Variables'):\n YKHO.step_direction_variables = []\n for nl5W in YKHO._train_vars:\n guMW = ZylS.Variable(ZylS.zeros(nl5W.shape), trainable=False, name=nl5W.name[0:-2])\n YKHO.step_direction_variables.append(guMW)", "def R...
[ "0.6483938", "0.60966635", "0.59462374", "0.59323287", "0.592873", "0.58915526", "0.57863456", "0.5717927", "0.56802225", "0.5652927", "0.56248575", "0.5602806", "0.55170155", "0.55131286", "0.5510281", "0.55026764", "0.54862034", "0.54654866", "0.5454369", "0.5446214", "0.54...
0.0
-1
Extract the shapes of a set of input tensors.
def LD55(g4y1): if QpfX.executing_eagerly(): return _WqI.shape_n(g4y1) maxY = [] JqR0 = True for WKvO in g4y1: GhuM = _WqI.shape(WKvO) if not isinstance(GhuM, vhpA.Tensor) or GhuM.op.type != 'Const': JqR0 = False break maxY.append(GhuM) if JqR0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W3RU(wRXp):\n wRXp = mFWN(wRXp)\n N8OZ = []\n for WKvO in wRXp:\n try:\n N8OZ.append(nMvt.int_shape(WKvO))\n except TypeError:\n N8OZ.append(None)\n return TATb(N8OZ)", "def DBDo(gMbG: Dict[str, tf.data.Dataset]) -> cuzp[str, AzJI[int]]:\n hB0Y = dict()\n ...
[ "0.74132705", "0.6673124", "0.65679866", "0.64666915", "0.63785607", "0.63148874", "0.62439173", "0.6211715", "0.6206442", "0.614795", "0.6132616", "0.61141354", "0.61008304", "0.60622054", "0.60212153", "0.60059935", "0.6002112", "0.59969956", "0.5990736", "0.5973119", "0.59...
0.7791871
0
Converts an IndexedSlices to a Tensor without sparse>dense warnings.
def yhBe(xulL): if not isinstance(xulL, _TID.IndexedSlices): return xulL if xulL.dense_shape is None: raise ValueError('Tensor conversion requested for IndexedSlices without dense_shape: %s' % str(xulL)) return qkSJ.unsorted_segment_sum(xulL.values, xulL.indices, xulL.dense_shape[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1eO(YKHO, vhpA: tf.Tensor) -> ZylS.Tensor:\n qiip = vhpA.shape\n wmvz = len(qiip) == 3\n vhpA = ZylS.gather_nd(ZylS.reshape(vhpA, (-1, 1)), YKHO.observations_index)\n if wmvz:\n vhpA = ZylS.expand_dims(vhpA, axis=-1)\n return vhpA", "def jxLV(_0VL, hkxX, thZl, yvT9, zYcP):\n return ...
[ "0.6567097", "0.6440365", "0.6411281", "0.6373754", "0.61441654", "0.604684", "0.5930216", "0.5930216", "0.58366287", "0.5814576", "0.5810296", "0.5748112", "0.56882304", "0.56208664", "0.5564672", "0.55552876", "0.5476606", "0.54677033", "0.5425513", "0.5420317", "0.54176897...
0.76017696
0
Addds the batch offsets to the given indices and returns the results.
def pxjx(D_OF, _0VL, Xng_): ITSp = _0VL VcsL = _0VL.dtype.base_dtype UrKF = qkSJ.cast(D_OF, VcsL) ilkB = _WqI.ones((), dtype=VcsL) for tpio in range(Xng_, 0, -1): RpOH = UrKF[tpio - 1] ilkB *= UrKF[tpio] yKcO = _WqI.zeros((), dtype=VcsL) YPaw = _WqI.ones((), dtype=Vcs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gGSd(nPrm, _0VL):\n assert isinstance(_0VL, (tuple, list)) or (MjSz(_0VL) and len(_0VL.shape) == 1)\n if MjSz(nPrm):\n return nPrm[_0VL]\n assert len(nPrm) > 0 and len(_0VL) > 0\n mvm2 = oyIN.array(nPrm[0])\n hlel = oyIN.empty((len(_0VL),) + mvm2.shape, dtype=mvm2.dtype)\n for YRbF, r8...
[ "0.6309029", "0.6268375", "0.61764604", "0.61056674", "0.6072039", "0.60164624", "0.5971099", "0.5971099", "0.5854358", "0.5816032", "0.58129656", "0.5738201", "0.57165", "0.5703611", "0.5616374", "0.5616147", "0.56005853", "0.55351055", "0.55333155", "0.5527195", "0.5527195"...
0.5806067
11
Reshapes the gradient to the shape of the original input.
def mqs3(khtY: ops.Operation, Ro40): return _WqI.reshape(yhBe(Ro40), _WqI.shape(khtY.inputs[0]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ICX2(YKHO, Q6kx, kaGj):\n return [FPhJ(kaGj, ZG6q(Q6kx.inputs[0]))]", "def ICX2(VXjJ):\n jHsn, pvd3 = oyIN.gradient(myY5(VXjJ))\n return (q3V_(jHsn), q3V_(pvd3))", "def ICX2(YKHO, Q6kx, kaGj):\n return [FPhJ(kaGj, ZG6q(Q6kx.inputs[0])), ce2p(Q6kx.inputs[1])]", "def q3V_(input):\n input = i...
[ "0.6685799", "0.63980293", "0.6297269", "0.62688", "0.6247093", "0.6159095", "0.60085064", "0.598209", "0.5958538", "0.586819", "0.5824665", "0.58166194", "0.5813783", "0.57987344", "0.57870144", "0.5776992", "0.5776424", "0.577207", "0.577207", "0.5748852", "0.57384676", "...
0.69913846
0