query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
The SPDX licence identifier or URL to the license file for this layer. default | def license(YKHO) -> laHg.Optional[str]:
return YKHO._values.get('license') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def license(YKHO) -> str:\n return qe4Y.get(YKHO, 'license')",
"def license(YKHO) -> h8nf[str]:\n return getattr(YKHO.args, 'license', None)",
"def license(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'license')",
"def rfHX(YKHO):\n if YKHO._licenseFile:\n return YKHO._licenseF... | [
"0.74400747",
"0.73951006",
"0.73112977",
"0.72962236",
"0.72376096",
"0.72315526",
"0.7230975",
"0.7230975",
"0.7230975",
"0.72162896",
"0.7183248",
"0.7152355",
"0.7147497",
"0.7147497",
"0.7140399",
"0.71399117",
"0.7134509",
"0.7091837",
"0.70797306",
"0.7055298",
"0.7000... | 0.74238366 | 1 |
Construction properties for a LogRetention. | def FIMM(YKHO, *, DWvF: str, oC4a: aws_cdk.aws_logs.RetentionDays, LmAn: typing.Optional[aws_cdk.aws_iam.IRole]=None):
YKHO._values = {'log_group_name': DWvF, 'retention': oC4a}
if LmAn is not None:
YKHO._values['role'] = LmAn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, **B2fa):\n YKHO.__dict__['_property_values'] = dict()\n YKHO.__dict__['log'] = G9jH.getLogger(YKHO.__class__.__name__)\n YKHO._set(**B2fa)",
"def FIMM(Ro_8, *, etR_: Optional[bool]=None, RAiD: Optional[int]=None):\n if etR_ is not None:\n qe4Y.set(Ro_8, 'enabled', etR_)\n if ... | [
"0.5568711",
"0.55608875",
"0.5408628",
"0.54043454",
"0.5369128",
"0.53495294",
"0.529124",
"0.5235879",
"0.5223281",
"0.5197227",
"0.51218355",
"0.51213795",
"0.5118214",
"0.5102661",
"0.5102661",
"0.5076216",
"0.507433",
"0.50579655",
"0.5056944",
"0.50519884",
"0.50498486... | 0.65345085 | 0 |
The IAM role for the Lambda function associated with the custom resource. default | def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:
return YKHO._values.get('role') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n ...",
"def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n ...",
"def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n return HEOD.get(YKHO, 'role')",
"def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n return HEOD.get(YKHO, 'role')"... | [
"0.7138519",
"0.7138519",
"0.7119009",
"0.7119009",
"0.7119009",
"0.7119009",
"0.7119009",
"0.7119009",
"0.7089769",
"0.70632213",
"0.70632213",
"0.70551085",
"0.70551085",
"0.7033218",
"0.69562924",
"0.6950604",
"0.6898495",
"0.6898495",
"0.6898495",
"0.6898495",
"0.6824458"... | 0.6820772 | 24 |
The AWS account ID (without hyphens) of the source owner. For example, if you specify an S3 bucket in the SourceArn property, this value is the bucket owner's account ID. You can use this property to ensure that all source principals are owned by a specific account. | def Wt8O(YKHO) -> laHg.Optional[str]:
return YKHO._values.get('source_account') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k4C1(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'owner_account_id')",
"def k4C1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'owner_account_id')",
"def k4C1(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'owner_account_id')",
"def RQV1(YKHO) -> str:\n return qe4Y.get(YKH... | [
"0.73848397",
"0.7142809",
"0.71358174",
"0.67612916",
"0.6700873",
"0.6630911",
"0.65869176",
"0.65869176",
"0.65366894",
"0.65366894",
"0.65347904",
"0.64874816",
"0.64874816",
"0.64874816",
"0.64874816",
"0.64874816",
"0.6485951",
"0.6460421",
"0.6460421",
"0.6460421",
"0.... | 0.716362 | 1 |
Name of this alias. | def Fm0u(YKHO) -> str:
return HEOD.get(YKHO, 'aliasName') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return f'{YKHO.alias}'",
"def mWFP(YKHO):\n return YKHO._alias",
"def mWFP(YKHO) -> str:\n if YKHO.alias is not None:\n return YKHO.alias\n return YKHO.original_name",
"def Fm0u(YKHO):\n return YKHO._alias_name",
"def Fm0u(YKHO) -> str:\n ...",
"def W0tD(YKHO) -... | [
"0.92101455",
"0.9004251",
"0.87988484",
"0.8652299",
"0.8619391",
"0.8607273",
"0.8555997",
"0.85002553",
"0.84071213",
"0.82650656",
"0.82650656",
"0.813746",
"0.81064683",
"0.8105691",
"0.80833113",
"0.80833113",
"0.8054287",
"0.8054287",
"0.8054287",
"0.8054287",
"0.80542... | 0.8639627 | 5 |
Whether the addPermission() call adds any permissions. True for new Lambdas, false for imported Lambdas (they might live in different accounts). | def stwf(YKHO) -> bool:
return HEOD.get(YKHO, 'canCreatePermissions') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MJFy(YKHO, OQzj: commands.CheckPredicate) -> None:\n YKHO._permissions_hooks.append(OQzj)",
"def qHTF(YKHO):\n pass",
"def stwf(YKHO) -> bool:\n ...",
"def Cb6P(YKHO, QePW):\n return False",
"def Cb6P(YKHO, QePW):\n return False",
"def Cb6P(YKHO, QePW):\n return False",
"def Cb6P(... | [
"0.6438281",
"0.6405534",
"0.637154",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.628863",
"0.62168837",
"0.6... | 0.61880267 | 32 |
ARN of this alias. Used to be able to use Alias in place of a regular Lambda. Lambda accepts ARNs everywhere it accepts function names. | def y7eY(YKHO) -> str:
return HEOD.get(YKHO, 'functionArn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B2NQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'lambda_arn')",
"def B2NQ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'lambda_arn')",
"def Fm0u(YKHO) -> str:\n ...",
"def vbQv(YKHO) -> str:\n return YKHO._str_representation_for('alias')",
"def y7eY(YKHO) -> str:\n ...",
"def y7eY(YKHO... | [
"0.73936135",
"0.717098",
"0.70766747",
"0.6959483",
"0.68013877",
"0.68013877",
"0.6763925",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
... | 0.6465087 | 76 |
ARN of this alias. Used to be able to use Alias in place of a regular Lambda. Lambda accepts ARNs everywhere it accepts function names. | def mkPq(YKHO) -> str:
return HEOD.get(YKHO, 'functionName') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B2NQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'lambda_arn')",
"def B2NQ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'lambda_arn')",
"def Fm0u(YKHO) -> str:\n ...",
"def vbQv(YKHO) -> str:\n return YKHO._str_representation_for('alias')",
"def y7eY(YKHO) -> str:\n ...",
"def y7eY(YKHO... | [
"0.73936135",
"0.717098",
"0.70766747",
"0.6959483",
"0.68013877",
"0.68013877",
"0.6763925",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
"0.67433566",
... | 0.0 | -1 |
The underlying Lambda function version. | def DpZH(YKHO) -> 'IVersion':
return HEOD.get(YKHO, 'version') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w4rS(YKHO) -> 'IFunction':\n ...",
"def w4rS(YKHO) -> 'IFunction':\n return HEOD.get(YKHO, 'lambda')",
"def w4rS(YKHO) -> 'IFunction':\n return HEOD.get(YKHO, 'lambda')",
"def Zlsf(YKHO):\n return YKHO._Lambda",
"def EVkO(YKHO):\n return YKHO._lambda_c",
"def w4rS(YKHO) -> 'IFunction':... | [
"0.7280796",
"0.7221019",
"0.7221019",
"0.71869826",
"0.7154984",
"0.7021123",
"0.6896246",
"0.66623986",
"0.6423123",
"0.6377374",
"0.6355121",
"0.61973417",
"0.6193999",
"0.603101",
"0.5993243",
"0.59632856",
"0.5944508",
"0.59315526",
"0.5927897",
"0.59088045",
"0.5903565"... | 0.0 | -1 |
The IAM role associated with this function. Undefined if the function was imported without a role. | def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:
return HEOD.get(YKHO, 'role') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')",
"def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')",
"def LmAn(YKHO):\n if YKHO._role_present:\n return YKHO._role_value\n else:\n raise AttributeError(\"missing required field 'role'\")",
"d... | [
"0.73422194",
"0.73422194",
"0.73058164",
"0.73058164",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72805756",
"0.72805756",
"0.7267696",
"0.7262524",
"0.7262524",
"0.7216988",
"0.7216988",
"0.7216988",
"0.7216988",
"0.71504617",
"0.... | 0.74108016 | 0 |
The name of this runtime, as expected by the Lambda resource. | def mWFP(YKHO) -> str:
return HEOD.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO) -> str:\n return YKHO._run_name",
"def mWFP(YKHO):\n mWFP = YKHO._read_from_global_attr('name')\n return mWFP",
"def mWFP(YKHO):\n return YKHO.python.name",
"def W0tD():\n return __name__",
"def W0tD():\n return __name__",
"def W0tD():\n return __name__",
"def mWFP(Y... | [
"0.7278844",
"0.7219615",
"0.71375775",
"0.70447826",
"0.70447826",
"0.70447826",
"0.7039854",
"0.7016171",
"0.7002019",
"0.7002019",
"0.7002019",
"0.7002019",
"0.7002019",
"0.7002019",
"0.7002019",
"0.7002019",
"0.7002019",
"0.7002019",
"0.7002019",
"0.7002019",
"0.7002019",... | 0.0 | -1 |
Whether the addPermission() call adds any permissions. True for new Lambdas, false for imported Lambdas (they might live in different accounts). | def stwf(YKHO) -> bool:
return HEOD.get(YKHO, 'canCreatePermissions') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MJFy(YKHO, OQzj: commands.CheckPredicate) -> None:\n YKHO._permissions_hooks.append(OQzj)",
"def qHTF(YKHO):\n pass",
"def stwf(YKHO) -> bool:\n ...",
"def Cb6P(YKHO, QePW):\n return False",
"def Cb6P(YKHO, QePW):\n return False",
"def Cb6P(YKHO, QePW):\n return False",
"def Cb6P(... | [
"0.64359015",
"0.64050674",
"0.6370947",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
... | 0.6186907 | 34 |
The ARN fo the function. | def y7eY(YKHO) -> str:
return HEOD.get(YKHO, 'functionArn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y7eY(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'function_arn')",
"def y7eY(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'function_arn')",
"def y7eY(YKHO) -> str:\n ...",
"def y7eY(YKHO) -> str:\n ...",
"def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')",
"... | [
"0.7570522",
"0.7570522",
"0.7448104",
"0.7448104",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
... | 0.80073035 | 0 |
The IAM role associated with this function. Undefined if the function was imported without a role. | def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:
return HEOD.get(YKHO, 'role') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')",
"def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')",
"def LmAn(YKHO):\n if YKHO._role_present:\n return YKHO._role_value\n else:\n raise AttributeError(\"missing required field 'role'\")",
"d... | [
"0.73422194",
"0.73422194",
"0.73058164",
"0.73058164",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72805756",
"0.72805756",
"0.7267696",
"0.7262524",
"0.7262524",
"0.7216988",
"0.7216988",
"0.7216988",
"0.7216988",
"0.71504617",
"0.... | 0.74108016 | 2 |
The name of the function (within your source code) that Lambda calls to start running your code. For more information, see the Handler property in the AWS Lambda Developer Guide. | def DCgT(YKHO) -> str:
return YKHO._values.get('handler') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cfQO(tvqc, QpfX):\n return",
"def cfQO(tvqc, QpfX):\n bo34.debug('event.bot.name={}'.format(tvqc['bot']['name']))\n return ypeQ(tvqc)",
"def mkPq(YKHO) -> str:\n return HEOD.get(YKHO, 'functionName')",
"def mkPq(YKHO) -> str:\n return HEOD.get(YKHO, 'functionName')",
"def mkPq(YKHO) -> s... | [
"0.65408146",
"0.6503498",
"0.64325005",
"0.64325005",
"0.64325005",
"0.64325005",
"0.64325005",
"0.64325005",
"0.6408752",
"0.6408752",
"0.6393417",
"0.63420844",
"0.6340573",
"0.6340573",
"0.63109285",
"0.6290123",
"0.6290123",
"0.6244674",
"0.62022704",
"0.61824465",
"0.61... | 0.5949838 | 33 |
The runtime environment for the Lambda function that you are uploading. For valid values, see the Runtime property in the AWS Lambda Developer Guide. | def Qvn0(YKHO) -> 'Runtime':
return YKHO._values.get('runtime') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qvn0(YKHO):\n return YKHO.conf['aws']['runtime']",
"def Qvn0(YKHO) -> laHg.Optional[lTJ4.aws_lambda.Runtime]:\n return YKHO._values.get('runtime')",
"def uDN8(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'runtime_environment_variables')",
"def uDN8(YKHO) -> h8nf... | [
"0.6647737",
"0.6521432",
"0.65123665",
"0.65123665",
"0.6107872",
"0.6016245",
"0.59957516",
"0.59329283",
"0.5872031",
"0.5859834",
"0.58479595",
"0.58027995",
"0.5790881",
"0.5790881",
"0.5790881",
"0.5767561",
"0.574517",
"0.5735997",
"0.5735997",
"0.5735997",
"0.57346964... | 0.5686197 | 24 |
The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``Infinity``. default | def oP16(YKHO) -> laHg.Optional[lTJ4.aws_logs.RetentionDays]:
return YKHO._values.get('log_retention') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RAiD(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'retention_in_days')",
"def oC4a(YKHO) -> lTJ4.aws_logs.RetentionDays:\n return YKHO._values.get('retention')",
"def zA8O(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_retention_days')",
"def RAiD(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(... | [
"0.7181913",
"0.7173754",
"0.7070036",
"0.7048912",
"0.7048912",
"0.7048912",
"0.70201176",
"0.6989608",
"0.6989608",
"0.6927551",
"0.6925235",
"0.6921993",
"0.6842112",
"0.68315685",
"0.67935723",
"0.6555688",
"0.6555688",
"0.65178263",
"0.65178263",
"0.64429814",
"0.6442981... | 0.7322649 | 0 |
The IAM role for the Lambda function associated with the custom resource that sets the retention policy. default | def UfsQ(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:
return YKHO._values.get('log_retention_role') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ngPz(YKHO) -> str:\n return 'arn:aws:iam::%s:role/sfiniGenerated' % YKHO.session.account_id",
"def lU21(YKHO) -> str:\n return qe4Y.get(YKHO, 'default_iam_role_arn')",
"def cuh1(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'assume_role_policy')",
"def cuh1(YKHO) -> qe4Y.Output[str]:\n re... | [
"0.6990737",
"0.64974725",
"0.6442524",
"0.63922447",
"0.6368896",
"0.62879014",
"0.62879014",
"0.6188232",
"0.61862177",
"0.61862177",
"0.61133265",
"0.61133265",
"0.61133265",
"0.61122274",
"0.61122274",
"0.61122274",
"0.61122274",
"0.61122274",
"0.61122274",
"0.61122274",
... | 0.65866745 | 1 |
The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. default | def f0f2(YKHO) -> laHg.Optional[HEOD.Number]:
return YKHO._values.get('memory_size') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLFJ(YKHO):\n return 2500",
"def oLFJ(YKHO):\n return 2500",
"def oLFJ(YKHO):\n return 2500",
"def oLFJ(YKHO):\n return 2500",
"def D42v(YKHO) -> float:\n return qe4Y.get(YKHO, 'memory_in_mb')",
"def Nzcp(YKHO) -> float:\n return qe4Y.get(YKHO, 'memory_in_gb')",
"def D42v(YKHO) ->... | [
"0.75902563",
"0.75902563",
"0.75902563",
"0.75902563",
"0.73473626",
"0.7212304",
"0.71810216",
"0.7138854",
"0.7044556",
"0.7036316",
"0.69977653",
"0.6983063",
"0.6948949",
"0.6947899",
"0.6887969",
"0.6887969",
"0.6872689",
"0.6872689",
"0.6872689",
"0.6834438",
"0.681794... | 0.61896783 | 96 |
What security group to associate with the Lambda's network interfaces. Only used if 'vpc' is supplied. default | def ANtU(YKHO) -> laHg.Optional[lTJ4.aws_ec2.ISecurityGroup]:
return YKHO._values.get('security_group') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fEOc(YKHO):\n return YKHO.network.regional_network.vpc.default_security_group_id",
"def gLpe(YKHO) -> h8nf[qe4Y.Input['NetworkSecurityGroupArgs']]:\n return qe4Y.get(YKHO, 'network_security_group')",
"def gLpe(YKHO) -> h8nf[qe4Y.Input['NsgReferenceArgs']]:\n return qe4Y.get(YKHO, 'network_security... | [
"0.74495184",
"0.684",
"0.66757077",
"0.643095",
"0.6399442",
"0.631541",
"0.631541",
"0.6089278",
"0.6053977",
"0.5982362",
"0.595017",
"0.5834967",
"0.5834484",
"0.58297354",
"0.58114684",
"0.58114684",
"0.5774026",
"0.5746744",
"0.5699481",
"0.56892574",
"0.5667969",
"0.... | 0.63202035 | 6 |
VPC network to place Lambda network interfaces. Specify this if the Lambda function needs to access resources in a VPC. default | def VgIM(YKHO) -> laHg.Optional[lTJ4.aws_ec2.IVpc]:
return YKHO._values.get('vpc') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vm5L(GPtr, dJ1p):\n global VPC_CONN\n if not fHAc:\n fHAc = gP7g.vpc.connect_to_region(region_name=SJlP, aws_access_key_id=emKQ, aws_secret_access_key=E4Up)\n VgIM = fHAc.create_vpc(GPtr['vpc-options']['cidr'])\n E3t1(taggable=VgIM, tags=dJ1p)\n while VgIM.state != 'available':\n t... | [
"0.5884852",
"0.5874878",
"0.56292576",
"0.5621619",
"0.5621619",
"0.5577155",
"0.5518663",
"0.5517949",
"0.5487224",
"0.54393387",
"0.54013103",
"0.5390482",
"0.53867453",
"0.53867453",
"0.53504795",
"0.53504795",
"0.53416675",
"0.5322975",
"0.53120106",
"0.53120106",
"0.530... | 0.0 | -1 |
A descriptive name for the purpose of this Lambda. If the Lambda does not have a physical name, this string will be reflected its generated name. The combination of lambdaPurpose and uuid must be unique. default | def Cafi(YKHO) -> laHg.Optional[str]:
return YKHO._values.get('lambda_purpose') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hqyb(YKHO) -> str:\n return qe4Y.get(YKHO, 'purpose')",
"def Hqyb(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'purpose')",
"def Hqyb(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'purpose')",
"def Hqyb(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'purpose')",
"def Hqyb(YKHO) -> h8... | [
"0.62846994",
"0.61874616",
"0.6117764",
"0.6117764",
"0.6117764",
"0.6117764",
"0.5944288",
"0.5933752",
"0.5875582",
"0.5875582",
"0.5875582",
"0.5875582",
"0.5875582",
"0.5875582",
"0.58624446",
"0.57957953",
"0.57398015",
"0.5669702",
"0.5669702",
"0.56599873",
"0.565786"... | 0.6890194 | 0 |
Whether the addPermission() call adds any permissions. True for new Lambdas, false for imported Lambdas (they might live in different accounts). | def stwf(YKHO) -> bool:
return HEOD.get(YKHO, 'canCreatePermissions') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MJFy(YKHO, OQzj: commands.CheckPredicate) -> None:\n YKHO._permissions_hooks.append(OQzj)",
"def qHTF(YKHO):\n pass",
"def stwf(YKHO) -> bool:\n ...",
"def Cb6P(YKHO, QePW):\n return False",
"def Cb6P(YKHO, QePW):\n return False",
"def Cb6P(YKHO, QePW):\n return False",
"def Cb6P(... | [
"0.64359015",
"0.64050674",
"0.6370947",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
"0.6288244",
... | 0.6186907 | 35 |
The ARN fo the function. | def y7eY(YKHO) -> str:
return HEOD.get(YKHO, 'functionArn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y7eY(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'function_arn')",
"def y7eY(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'function_arn')",
"def y7eY(YKHO) -> str:\n ...",
"def y7eY(YKHO) -> str:\n ...",
"def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')",
"... | [
"0.7570522",
"0.7570522",
"0.7448104",
"0.7448104",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
"0.74353015",
... | 0.80073035 | 4 |
The IAM role associated with this function. Undefined if the function was imported without a role. | def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:
return HEOD.get(YKHO, 'role') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')",
"def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')",
"def LmAn(YKHO):\n if YKHO._role_present:\n return YKHO._role_value\n else:\n raise AttributeError(\"missing required field 'role'\")",
"d... | [
"0.73422194",
"0.73422194",
"0.73058164",
"0.73058164",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72920525",
"0.72805756",
"0.72805756",
"0.7267696",
"0.7262524",
"0.7262524",
"0.7216988",
"0.7216988",
"0.7216988",
"0.7216988",
"0.71504617",
"0.... | 0.74108016 | 3 |
String representation of Tag. | def zAg0(YKHO) -> str:
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return '{}'.format(YKHO.tag)",
"def zAg0(YKHO):\n return '{}'.format(YKHO.tag)",
"def AbAo(TZ9E):\n return TZ9E.string",
"def wHJl(YKHO):\n return f'<Tag tag_id={YKHO.tag_id}, name={YKHO.name}>'",
"def zAg0(YKHO):\n return str(YKHO.tagpack)",
"def zAg0(YKHO):\n return ... | [
"0.80844975",
"0.80844975",
"0.80164593",
"0.7565485",
"0.7539019",
"0.751721",
"0.7489219",
"0.74453753",
"0.7440229",
"0.7420326",
"0.739792",
"0.7341674",
"0.7330176",
"0.73230463",
"0.7300052",
"0.72960436",
"0.7291216",
"0.7289681",
"0.7282873",
"0.7226285",
"0.7206666",... | 0.0 | -1 |
Restore a Launcher from a dict Subclasses should always call `launcher = super().from_dict(args, kwargs)` and finish initialization after that. After calling from_dict(), the launcher should be in the same state as after `.start()` (i.e. monitoring for exit, etc.) | def jG8h(Emd4, Csk6, *, GPtr=None, _AKB=None, **B2fa):
hENg = Emd4(config=GPtr, parent=_AKB, **B2fa)
for hkS8 in hENg.traits(to_dict=True):
if hkS8 in Csk6:
setattr(hENg, hkS8, Csk6[hkS8])
return hENg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jG8h(Emd4, Csk6: dict) -> 'Application':\n return Emd4(**Csk6)",
"def CCiu(Emd4, tbx9):\n qIxc = {}\n return Emd4(**qIxc)",
"def jG8h(Emd4, fGC9):\n ...",
"def jG8h(Emd4, qHj0) -> 'Tool':\n return gnPz.deserialize_model(qHj0, Emd4)",
"def CCiu(Emd4, tbx9):\n return Emd4.from_dict(tbx9... | [
"0.58384615",
"0.5773813",
"0.5718873",
"0.5707531",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
"0.5654634",
... | 0.688069 | 0 |
Get the full environment for the process merges different sources for environment variables | def wJxA(YKHO):
sEAN = {}
sEAN.update(YKHO.cluster_env)
sEAN.update(YKHO.environment)
return sEAN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XyWn(YKHO, NzV5=False):\n sEAN = {}\n if NzV5:\n sEAN.update(Hy7s.environ.copy())\n for ABDL in range(3):\n sEAN.update(YKHO.pipeline.data.env_list[ABDL].copy())\n return sEAN",
"def WrUP():\n NBjn = Yn3K.Popen('source /home/mopspipe/mops_env psmops_ps1_mdrm152; env', stdout=Yn3K... | [
"0.7598103",
"0.745001",
"0.7412813",
"0.7147354",
"0.71246797",
"0.7119233",
"0.7034674",
"0.70235187",
"0.69804394",
"0.68880814",
"0.6885597",
"0.68718743",
"0.6829119",
"0.6823081",
"0.6809141",
"0.67462975",
"0.67408836",
"0.6732933",
"0.6731855",
"0.67265135",
"0.671933... | 0.67161214 | 23 |
Update dtypes of specific columns from float to int. Updates dtypes of candidate_model so that columns representing integer are set to integers. | def QYX4(fWQ1):
GyVB = ['left_child', 'right_child', 'level', 'split_feat']
Gjj5 = fWQ1.copy()
Gjj5[GyVB] = Gjj5[GyVB].astype('Int64')
return Gjj5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOOY(tei0, PjZ9, jQ3Z):\n jQ3Z[tei0] = jQ3Z[tei0].astype('int32')\n jQ3Z[PjZ9] = jQ3Z[PjZ9].astype('float32')",
"def RW9U(YKHO):\n WfCS = ['kms_driven', 'price', 'mileage', 'power']\n for fvDH in WfCS:\n YKHO.df[fvDH] = rLdf.to_numeric(YKHO.df[fvDH], errors='coerce', downcast='integer')\n ... | [
"0.71768653",
"0.6899251",
"0.66847974",
"0.64030135",
"0.6365343",
"0.634772",
"0.62908226",
"0.62895805",
"0.61488616",
"0.61465335",
"0.5991896",
"0.5962612",
"0.5885438",
"0.5875495",
"0.5875318",
"0.5874106",
"0.58445185",
"0.5831781",
"0.58023787",
"0.57911325",
"0.5778... | 0.82065463 | 0 |
Get the loss for the discriminator and generator. | def FE_f(YKHO, S9On, G2f1, EDoJ, Cwt5):
U78Y = YKHO._cnn_generator(G2f1, EDoJ, alpha=Cwt5)
ugC2, lWvl = YKHO._cnn_discriminator(S9On, alpha=Cwt5)
GBzM, g7PT = YKHO._cnn_discriminator(U78Y, reuse=True, alpha=Cwt5)
KUQR = ZylS.reduce_mean(ZylS.nn.sigmoid_cross_entropy_with_logits(logits=lWvl, labels=ZylS.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AOC4(YKHO):\n return YKHO._discriminator_loss",
"def L8kW(YKHO):\n raise NotImplementedError",
"def QDOO(Yw_3):\n yJgu = c2Yh(ARTs, training=False)\n SZIZ = nfgB(Yw_3, training=False)\n JQTb = nfgB(yJgu, training=False)\n v2T8 = qxwG(JQTb)\n ysqc = AOC4(SZIZ, JQTb)\n print(f'Loss G ... | [
"0.77008057",
"0.7410733",
"0.7343268",
"0.7339881",
"0.7327071",
"0.7202098",
"0.7094543",
"0.707509",
"0.7067446",
"0.7053389",
"0.7053389",
"0.7053389",
"0.7053389",
"0.7009775",
"0.6997313",
"0.69893694",
"0.6936578",
"0.6926965",
"0.6911012",
"0.6902069",
"0.68667006",
... | 0.66479445 | 42 |
Returns log determinant of Jacobian for forward transformation from standard normal samples `z` and parameters `theta` to paths For this model the Jacobian is constant, so this can be done very quickly | def hUrD(YKHO, epBp, q7In):
ssxF = epBp.shape[0]
LBLJ = YKHO.T * 3.0 * oyIN.log(YKHO.root_dt * YKHO.diff_scale)
return LBLJ * ZylS.ones(ssxF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hUrD(YKHO, epBp, q7In):\n ssxF = epBp.shape[0]\n d07F = ZylS.tile(ZylS.expand_dims(YKHO.x0, axis=0), [ssxF, 1])\n WH5I = ZylS.fill([ssxF], 0)\n dsX0, qPyY = YKHO._get_coefs(d07F, q7In, WH5I)\n KtZs = YKHO.x0 + YKHO.dt * dsX0\n KtZs += YKHO.root_dt * ZylS.linalg.matvec(qPyY, epBp[:, 0, :])\n ... | [
"0.81388944",
"0.66860807",
"0.6422033",
"0.6360075",
"0.6308365",
"0.61753505",
"0.6157293",
"0.61266756",
"0.61057633",
"0.60980153",
"0.6081342",
"0.6064062",
"0.6056154",
"0.60321885",
"0.6004293",
"0.59727764",
"0.59669685",
"0.59427106",
"0.59274584",
"0.59191966",
"0.5... | 0.81808686 | 0 |
Reads JPG bytes as RGB | def uEOY(UiEM: bytes) -> oyIN.ndarray:
from PIL import Image
import io
Xn71 = Image.open(io.BytesIO(UiEM))
Xn71 = Xn71.convert('RGB')
nPrm = oyIN.array(Xn71)
assert nPrm.ndim == 3
assert nPrm.dtype == oyIN.uint8
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uEOY(UiEM: bytes) -> oyIN.ndarray:\n Xn71 = hnIv.open(xDSY.BytesIO(UiEM))\n Xn71 = Xn71.convert('RGB')\n nPrm = oyIN.array(Xn71)\n assert nPrm.ndim == 3\n assert nPrm.dtype == oyIN.uint8\n return nPrm",
"def tsdv(Ux0P):\n j3Lh = XC5k.imread(Ux0P)\n d7Eb = j3Lh[:, :, ::-1]\n return ... | [
"0.718034",
"0.6840111",
"0.67984986",
"0.6793559",
"0.67203134",
"0.6655036",
"0.6636303",
"0.660968",
"0.6505361",
"0.6490104",
"0.6471704",
"0.64472663",
"0.64396554",
"0.6420983",
"0.64177066",
"0.6407945",
"0.6396092",
"0.6396092",
"0.639572",
"0.6393364",
"0.63842106",
... | 0.7187212 | 0 |
Return all joint angles. | def GJtA(YKHO):
return _qLf(YKHO._joint_angle) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GJtA(YKHO):\n return YKHO.arm.joint_angles()",
"def GJtA(YKHO):\n return YKHO.named.data.qpos[YiVI]",
"def _hOb(YKHO):\n return [YKHO._joint_angle[mWFP] for mWFP in YKHO._joint_names]",
"def Rcof(ytH6):\n bLm4 = {'elbow_sx': (5, 6, 7), 'elbow_dx': (2, 3, 4), 'armpit_sx': (6, 5, 11), 'armpit_d... | [
"0.823839",
"0.7737154",
"0.76263696",
"0.7514347",
"0.7170249",
"0.7129824",
"0.7125545",
"0.711779",
"0.70948005",
"0.7084055",
"0.7009765",
"0.7009765",
"0.69618154",
"0.6849104",
"0.6831735",
"0.6831735",
"0.6749695",
"0.6717206",
"0.67089224",
"0.66717225",
"0.6635102",
... | 0.8075129 | 1 |
home route to deliver react frontend app to client | def d6pt():
return 'Hello world!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return P4t4.send_static_file('index.html')",
"def kZiy():\n return P4t4.send_static_file('home.html')",
"def Okfw():\n print(nNXP.static_folder)\n return cs4A(nNXP.static_folder, 'index.html')",
"def d6pt():\n P4t4.logger.info('Request for home page')\n return P4t4.send_static... | [
"0.7461874",
"0.7380422",
"0.718608",
"0.71782863",
"0.70017266",
"0.69950193",
"0.69766426",
"0.6951994",
"0.6946661",
"0.6903545",
"0.69023424",
"0.6897169",
"0.6883845",
"0.6883845",
"0.6883845",
"0.68825173",
"0.68653905",
"0.6855183",
"0.6855183",
"0.6855183",
"0.6855183... | 0.0 | -1 |
Get the value of the button. | def NMoC(YKHO) -> bool:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zmkp(YKHO, oD_N):\n pass",
"def Zmkp(YKHO):\n return YKHO.widget.get_value()",
"def Zmkp(YKHO) -> str:\n return YKHO.get().text",
"def UbqS(YKHO):\n return YKHO.board.GPIO.input(YKHO.btn_pin)",
"def oD_N(YKHO):\n return YKHO.button_list[YKHO.sensor.value]",
"def BWXx(YKHO):\n return... | [
"0.8950406",
"0.7961438",
"0.75432837",
"0.7324595",
"0.72909135",
"0.7185247",
"0.7185247",
"0.7114999",
"0.7078858",
"0.70604396",
"0.7046979",
"0.7031041",
"0.70176554",
"0.69885355",
"0.6983708",
"0.6969863",
"0.6969863",
"0.6959027",
"0.6959027",
"0.6959027",
"0.6959027"... | 0.0 | -1 |
seq_k of shape (batch, k_len, k_feat) and seq_q (batch, q_len, q_feat). q and k are padded with 0. pad_mask is (batch, q_len, k_len). | def dt_S(WXtj, OlNU):
uTYD = ht2j.ones_like(WXtj)
b7De = ht2j.bmm(uTYD, OlNU.transpose(1, 2))
b7De = b7De.eq(0)
return b7De | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mi3O(WXtj, OlNU):\n vexM = nMvt.expand_dims(nMvt.ones_like(WXtj, dtype='float32'), axis=-1)\n G1Hx = nMvt.cast(nMvt.expand_dims(nMvt.not_equal(OlNU, 0), axis=1), dtype='float32')\n return nMvt.batch_dot(vexM, G1Hx, axes=[2, 1])",
"def uTph(OlNU, WXtj):\n qrRo = WXtj.size(1)\n Mi3O = ht2j.abs(O... | [
"0.8294732",
"0.81762713",
"0.81637436",
"0.79842097",
"0.79732823",
"0.79389143",
"0.78134286",
"0.6226674",
"0.59384453",
"0.57836664",
"0.5681862",
"0.563912",
"0.5633587",
"0.56079626",
"0.5595261",
"0.55746144",
"0.5505365",
"0.548759",
"0.5459335",
"0.5438968",
"0.54237... | 0.8119026 | 3 |
seq_k of shape (batch, k_len, k_feat) and seq_q (batch, q_len, q_feat). q and k are padded with 0. pad_mask is (batch, q_len, k_len). | def e9gP(WXtj, OlNU):
GCJP = ht2j.ones_like(OlNU)
b7De = ht2j.bmm(WXtj, GCJP.transpose(1, 2))
b7De = b7De.eq(0)
return b7De | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mi3O(WXtj, OlNU):\n vexM = nMvt.expand_dims(nMvt.ones_like(WXtj, dtype='float32'), axis=-1)\n G1Hx = nMvt.cast(nMvt.expand_dims(nMvt.not_equal(OlNU, 0), axis=1), dtype='float32')\n return nMvt.batch_dot(vexM, G1Hx, axes=[2, 1])",
"def uTph(OlNU, WXtj):\n qrRo = WXtj.size(1)\n Mi3O = ht2j.abs(O... | [
"0.8294925",
"0.81766766",
"0.81641877",
"0.81194156",
"0.7974077",
"0.793976",
"0.7814191",
"0.62274677",
"0.59397",
"0.5783426",
"0.5680177",
"0.5638377",
"0.56349945",
"0.5608487",
"0.5595188",
"0.5574392",
"0.55063397",
"0.5487376",
"0.5460194",
"0.5439129",
"0.5422216",
... | 0.79843605 | 4 |
Lookup a list of musicbrainz tracks by PUID. Returns a list of Track objects. | def VPca(o7aX):
vexM = VTcd.Query(clientId=NOYM)
filter = VTcd.TrackFilter(puid=o7aX)
dixj = []
H0q3 = vexM.getTracks(filter=filter)
for Mkmy in H0q3:
dixj.append(Mkmy.getTrack())
return dixj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qs2C(YKHO):\n CVyq = YKHO.getUidList()\n HqKa = []\n for PObu in CVyq:\n HqKa.append(YKHO.getTrackByUid(PObu))\n YKHO.closeSession()\n return HqKa if len(HqKa) > 0 else None",
"def XCkF(l1sc):\n fwTd = Vmia.album_tracks(l1sc)\n fwTd = fwTd['items']\n A07C = [A6b2['id'] for A6b2... | [
"0.6661879",
"0.65006816",
"0.645491",
"0.6425621",
"0.6415176",
"0.6405316",
"0.6370722",
"0.63541156",
"0.63351285",
"0.63338804",
"0.63042665",
"0.6254479",
"0.6242237",
"0.62400013",
"0.6208988",
"0.6182881",
"0.6145585",
"0.61388123",
"0.6117701",
"0.61116004",
"0.609585... | 0.7511949 | 0 |
Lookup trackname in a list of tracks and return the track number (indexed starting at 1) | def ViWZ(HqKa, A6b2):
vLZ5 = 1
for a1PO in HqKa:
if a1PO.id == A6b2.id:
return vLZ5
vLZ5 += 1
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZytT(YKHO, mWFP):\n for A6b2 in YKHO.live_set.tracks:\n if A6b2.name == mWFP:\n return A6b2\n raise KeyError(mWFP)",
"def NaSh(YKHO, bSWA):\n gt5k = {'track': bSWA}\n A6b2 = YKHO.search(search_parameters=gt5k, content_type='track', limit=1)\n return A6b2['tracks']['items'][0]... | [
"0.66285557",
"0.65375894",
"0.64699155",
"0.6365504",
"0.6331132",
"0.60619843",
"0.60569066",
"0.60372925",
"0.59722936",
"0.5929751",
"0.58639586",
"0.58639586",
"0.58473945",
"0.5817007",
"0.58064055",
"0.578599",
"0.5760897",
"0.57279843",
"0.56890273",
"0.5655422",
"0.5... | 0.7582187 | 0 |
Returns the DynamoDB table named 'constants.TABLE_NAME' | def cry4(YKHO):
return YKHO.resource.Table(uwaB.TABLE_NAME) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GoK6():\n nEDl = iVGz.resource('dynamodb')\n tyNF = nEDl.Table(tp0w)\n return tyNF",
"def ZAkC():\n w2B8 = gP7g.connect_dynamodb()\n return w2B8.get_table(Hy7s.environ['DYNAMODB_TABLE'])",
"def G55O():\n nEDl = iVGz.resource('dynamodb')\n tyNF = nEDl.Table('url-shortener-table')\n r... | [
"0.81200486",
"0.79471606",
"0.75695306",
"0.7385429",
"0.735104",
"0.7303971",
"0.71352434",
"0.71163833",
"0.70165193",
"0.70165193",
"0.69664073",
"0.6889365",
"0.68858045",
"0.68670183",
"0.6859026",
"0.6817846",
"0.677386",
"0.6720202",
"0.6690597",
"0.666872",
"0.665922... | 0.0 | -1 |
Returns true if the table name 'table_name' exists within the AWS client's DynamoDB. | def b9CE(YKHO, GTA_):
return uwaB.TABLE_NAME in YKHO.client.list_tables() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PJaC(x0hE: AitoClient, GTA_: str) -> bool:\n qDY4 = pShI(x0hE)\n return GTA_ in qDY4",
"def mK_B(YKHO, mWFP: str) -> bool:\n if mWFP in YKHO._ddb_client.list_tables()['TableNames']:\n return True\n return False",
"def Vzzz(YKHO, __n6, GTA_):\n MfgE = YKHO.get_table_name(__n6)\n ret... | [
"0.8666257",
"0.8635108",
"0.848716",
"0.8392335",
"0.82916856",
"0.8231541",
"0.82312",
"0.82096964",
"0.81847274",
"0.8159658",
"0.8156942",
"0.81564385",
"0.8105985",
"0.80913997",
"0.80605936",
"0.8055932",
"0.80472165",
"0.80430853",
"0.80333",
"0.80171764",
"0.8013994",... | 0.8262251 | 5 |
Return list of lists of cases sorted into partial implication order Each list within the returned list contains cases whose signatures are overlapping, equivalent, or disjoint with one another, but are more specific than any other case in the lists that follow. | def O_sx(ajHT):
wOmD = list(ajHT)
while wOmD:
P6Dd = b6U0(wOmD)
map(wOmD.remove, P6Dd)
yield P6Dd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I4hY(ajHT):\n Ydrk = []\n for RhGk in ajHT:\n try:\n Ydrk.index(RhGk)\n except ValueError:\n Ydrk.append(RhGk)\n return Ydrk",
"def b6U0(ajHT):\n if len(ajHT) == 1:\n return list(ajHT)\n P6Dd, wOmD = (list(ajHT[:1]), list(ajHT[1:]))\n for nxCv, vH7... | [
"0.5625442",
"0.55096",
"0.54150724",
"0.5408941",
"0.5398077",
"0.53909767",
"0.5363165",
"0.5235629",
"0.522213",
"0.51906973",
"0.51407",
"0.511031",
"0.50838965",
"0.50551736",
"0.5052273",
"0.5015006",
"0.5011596",
"0.5011557",
"0.5007945",
"0.49608374",
"0.49296823",
... | 0.5892708 | 0 |
Returns True if elements of `iterable` are monotonic otherwise false. For `dirn` >= 0 the sequence is strictly increasing i.e. | def Alt5(OxJJ, mlSR, U3Fm=True, H5ew=None):
if H5ew is None:
H5ew = PFXa
if mlSR >= 0:
eHkp = khtY.gt if U3Fm else khtY.ge
else:
eHkp = khtY.lt if U3Fm else khtY.le
return all([eHkp(H5ew(LVAh), H5ew(WKvO)) for WKvO, LVAh in zip(OxJJ, OxJJ[1:])]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hcel(OxJJ):\n kgDL = Zu14(OxJJ)\n while True:\n WKvO, LVAh = next(kgDL, (zX5L, zX5L))\n if WKvO is zX5L:\n return True\n elif WKvO != LVAh:\n break\n if WKvO < LVAh:\n return all((WKvO <= LVAh for WKvO, LVAh in kgDL))\n else:\n return all((WK... | [
"0.7413647",
"0.7051712",
"0.68169695",
"0.67786485",
"0.67551994",
"0.66780627",
"0.6643154",
"0.6591939",
"0.65519994",
"0.6346494",
"0.62901485",
"0.60940844",
"0.6020505",
"0.59808147",
"0.59024656",
"0.5886935",
"0.5816719",
"0.5816719",
"0.5808681",
"0.5723233",
"0.5669... | 0.8154787 | 0 |
Shorthand for ``monotonic(iterable, 1, strict=True, key=key)``. | def PZbv(OxJJ, H5ew=None):
return Alt5(OxJJ, -1, strict=True, key=H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vXzs(OxJJ, H5ew=None):\n return Alt5(OxJJ, +1, strict=True, key=H5ew)",
"def Alt5(OxJJ, mlSR, U3Fm=True, H5ew=None):\n if H5ew is None:\n H5ew = PFXa\n if mlSR >= 0:\n eHkp = khtY.gt if U3Fm else khtY.ge\n else:\n eHkp = khtY.lt if U3Fm else khtY.le\n return all([eHkp(H5ew... | [
"0.76571906",
"0.7203168",
"0.61658",
"0.6102234",
"0.5776153",
"0.56717795",
"0.5603864",
"0.5594276",
"0.5580335",
"0.5530935",
"0.5389892",
"0.53861153",
"0.5381787",
"0.534544",
"0.5337753",
"0.53377265",
"0.5318554",
"0.5309009",
"0.5298066",
"0.51918846",
"0.5181245",
... | 0.6881754 | 2 |
Applies function ``func`` to one or more ``values`` that can be either scalar or vector. The function must take the same number of | def saWV(JfyU: Callable, *hkxX) -> uLKX[list, ImMB]:
if all([BTdT(WKvO) for WKvO in hkxX]):
return list(map(JfyU, *hkxX))
return JfyU(*hkxX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def byDn(m2Zb, *hkxX: Tensor) -> llWB:\n ROpF = K3kV(*[Ty9i.shape for Ty9i in hkxX])\n YELX = [yU4B(Ty9i, ROpF) for Ty9i in hkxX]\n TLbF = [PWgb(Ty9i) for Ty9i in YELX]\n Aofo = []\n for DumB in zip(*TLbF):\n Aofo.append(m2Zb(*DumB))\n return GDMi(Aofo).vector.split(ROpF)",
"def J8pF(Jfy... | [
"0.64242005",
"0.63993895",
"0.6246046",
"0.6066481",
"0.6024587",
"0.5992191",
"0.59189415",
"0.5907771",
"0.5862898",
"0.5815128",
"0.5786058",
"0.5785286",
"0.57627165",
"0.5659685",
"0.5641386",
"0.5640084",
"0.56280386",
"0.56229293",
"0.5619143",
"0.56173944",
"0.556829... | 0.72351176 | 0 |
Ensures private fields are not present in serializer data | def opJF(YKHO):
swgq = ('private_field',)
nPrm = {'public_field': 'foo', 'private_field': 'bar'}
B2fa = {'private_fields': swgq}
ZMzz = _2Qs(data=nPrm, **B2fa)
ZMzz.is_valid()
nPrm.pop('private_field')
YKHO.assertEqual(nPrm, ZMzz.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KN5P(YKHO):\n swgq = ()\n nPrm = {'public_field': 'foo', 'private_field': 'bar'}\n B2fa = {'private_fields': swgq}\n ZMzz = _2Qs(data=nPrm, **B2fa)\n ZMzz.is_valid()\n YKHO.assertEqual(nPrm, ZMzz.data)",
"def q_aU(YKHO):\n XP5J = YKHO.get_person()\n vC9B = qvOq(owner=XP5J)\n vC9B.s... | [
"0.7658817",
"0.7137587",
"0.6903549",
"0.6897491",
"0.67137605",
"0.6653324",
"0.6643939",
"0.66028774",
"0.64463145",
"0.64400196",
"0.642073",
"0.63922274",
"0.6374685",
"0.63694257",
"0.633598",
"0.62937534",
"0.6292963",
"0.62815964",
"0.6228372",
"0.61925834",
"0.617855... | 0.8009711 | 0 |
Initializes the object and prepares all dimensions of the board according to the options. | def FIMM(YKHO, y7GR):
YKHO.__dict__.update(y7GR)
if YKHO.margin < YKHO.rounded_corners:
qmLP.warn('The margin is smaller than the rounded corners radius, which might result in strange boards. Increase the margin with --margin.')
YKHO.width = (YKHO.lines_horizontal - 1) * YKHO.spacing... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, BrEt):\n YKHO.board = yELo(BrEt)",
"def yqe1(YKHO):\n YKHO.board = [[None] * YKHO.board_size for bGrB in range(YKHO.board_size)]",
"def YQgq(YKHO):\n BrEt = int(input('What size board would you like to play on today? '))\n YKHO.board = yELo(BrEt)",
"def FIMM(YKHO, B_yZ=540, BrEt=3)... | [
"0.72876495",
"0.7203786",
"0.719188",
"0.7187588",
"0.69788903",
"0.6889979",
"0.68845624",
"0.68362117",
"0.68134815",
"0.6808172",
"0.68061775",
"0.67950153",
"0.67933154",
"0.6728914",
"0.6710391",
"0.66911215",
"0.66884017",
"0.6681661",
"0.6681661",
"0.66776955",
"0.667... | 0.6611525 | 24 |
True if x is free variable in e, else False | def ftQ2(WKvO, tTpl):
def mcUg(WKvO):
if isinstance(WKvO, RELP):
return {WKvO}
if isinstance(WKvO, XyCi):
return mcUg(WKvO.target) | mcUg(WKvO.expr)
if isinstance(WKvO, Zlsf):
return mcUg(WKvO.expr) - {RELP(WKvO.arg)}
return set()
return RELP(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k121(YKHO, WKvO: str) -> bool:\n for Nb6n, Z1Vh in YKHO.val:\n if Nb6n == WKvO:\n return True\n if type(Nb6n) == mLGw.Numeric:\n if Nb6n.has_variable_in(WKvO):\n return True\n if type(Z1Vh) == mLGw.Numeric:\n if Z1Vh.has_variable_in(WKvO):... | [
"0.6958608",
"0.670914",
"0.6705122",
"0.6705122",
"0.6705122",
"0.6705122",
"0.6705122",
"0.6705122",
"0.6705122",
"0.66693926",
"0.66586",
"0.6556597",
"0.65465045",
"0.6535491",
"0.6502717",
"0.6398569",
"0.63090163",
"0.62940425",
"0.62940425",
"0.62260026",
"0.62110245",... | 0.73845714 | 0 |
Get the root folder of the current git repository. | def KxHx(mZOu='./'):
return CAbn('git rev-parse --show-toplevel', mZOu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KZXb(YKHO):\n bCYe = fGmS(['git', 'rev-parse', '--show-toplevel'], stdout=h5ye, stderr=h5ye)\n yvT9, XObx = bCYe.communicate()\n if XObx:\n raise wOE_('Not a git repository.')\n tk5Y = yvT9.decode('utf-8')[:-1]\n mSqg = pmON.abspath(tk5Y)\n return mSqg",
"def J1KI(pmON):\n FCN7 = ... | [
"0.83758813",
"0.8241973",
"0.8241973",
"0.8241973",
"0.8238142",
"0.800458",
"0.7940222",
"0.7928727",
"0.79130965",
"0.78710765",
"0.7861315",
"0.7840134",
"0.7796023",
"0.77417976",
"0.77064544",
"0.77036506",
"0.7670644",
"0.764335",
"0.75952864",
"0.75907606",
"0.7577488... | 0.78805906 | 9 |
Returns the n largest indices from a numpy array. | def rxW9(FUTK, exwG):
TLbF = FUTK.flatten()
_0VL = oyIN.argpartition(TLbF, -exwG)[-exwG:]
_0VL = _0VL[oyIN.argsort(-TLbF[_0VL])]
return oyIN.unravel_index(_0VL, FUTK.shape) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rxW9(ezWE, exwG):\n return oyIN.fliplr(ezWE.argsort()[:, -exwG:])",
"def rxW9(YKHO, FUTK, exwG):\n TLbF = FUTK.flatten()\n _0VL = oyIN.argpartition(TLbF, -exwG)[-exwG:]\n return oyIN.unravel_index(_0VL, FUTK.shape)",
"def rxW9(FUTK, exwG):\n TLbF = FUTK.flatten()\n _0VL = oyIN.argpartitio... | [
"0.90606236",
"0.8583831",
"0.85673624",
"0.83151364",
"0.8032678",
"0.7843633",
"0.77898335",
"0.75814205",
"0.751236",
"0.7298185",
"0.7281386",
"0.7004382",
"0.69804895",
"0.6824746",
"0.6760552",
"0.671953",
"0.6566398",
"0.6514194",
"0.65045244",
"0.6497503",
"0.6453498"... | 0.85597223 | 4 |
Get a random element from the set. | def UIrZ(YKHO):
if YKHO.num:
PEsC = tuKI.randint(0, len(YKHO.num) - 1)
return YKHO.num[PEsC]
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8Zf(YKHO):\n try:\n return YKHO.object().random_element()\n except AttributeError:\n return Acvy(YKHO.list())",
"def UIrZ(YKHO) -> int:\n IZL_ = YKHO.randomizedSet.pop()\n YKHO.randomizedSet.add(IZL_)\n return IZL_",
"def UIrZ(YKHO):\n or8S = tuKI.randint(0, YKHO.length - 1... | [
"0.78055954",
"0.77602583",
"0.76503676",
"0.69756",
"0.6970386",
"0.69696873",
"0.69170576",
"0.6903906",
"0.68794334",
"0.6843657",
"0.68179744",
"0.68171364",
"0.6815859",
"0.6779796",
"0.6774275",
"0.6763151",
"0.6747374",
"0.67292315",
"0.6693236",
"0.6683133",
"0.666994... | 0.0 | -1 |
Return a list containing a path from starting_vertex to destination_vertex in depthfirst order. | def K2kF(YKHO, mmUT, RVDX):
E5BI = S9Ut()
E5BI.push([mmUT])
azXi = set()
while E5BI.size() > 0:
pmON = E5BI.pop()
SLBp = pmON[-1]
if SLBp == RVDX:
return pmON
if SLBp not in azXi:
azXi.add(SLBp)
for WHgD in YKHO.get_neighbors(SLBp):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K2kF(YKHO, mmUT, RVDX):\n c7pe = {mmUT: None}\n azXi = {mmUT}\n E5BI = S9Ut()\n E5BI.push(mmUT)\n while E5BI.size() > 0:\n jvSB = E5BI.pop()\n if jvSB == RVDX:\n break\n for Ty9i in YKHO.get_neighbors(jvSB):\n if Ty9i not in azXi:\n c7pe[... | [
"0.78847337",
"0.7783784",
"0.7404306",
"0.73785645",
"0.7354188",
"0.7340596",
"0.73011875",
"0.72949994",
"0.72733784",
"0.7263815",
"0.7223911",
"0.7188659",
"0.7181115",
"0.71477175",
"0.71432954",
"0.71327394",
"0.71116",
"0.7075222",
"0.70627594",
"0.70490324",
"0.70470... | 0.71055573 | 17 |
Get the valid codes. | def RnrX(YKHO) -> a1PO.Set[str]:
return set(YKHO._codes) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RnrX(YKHO):\n if YKHO._valid_codes is None:\n YKHO._valid_codes = list(set(YKHO.codes))\n return YKHO._valid_codes",
"def cwhV(YKHO):\n return YKHO._codes",
"def w7vd(YKHO, SkKD):\n if SkKD == 'na':\n cwhV = YKHO.residue_codes['dna'] + YKHO.residue_codes['rna']\n else:\n ... | [
"0.8423927",
"0.7746984",
"0.7540427",
"0.7495489",
"0.73920393",
"0.7170332",
"0.6840919",
"0.6790929",
"0.67010814",
"0.66951126",
"0.6645273",
"0.66088635",
"0.65505755",
"0.6482112",
"0.64708865",
"0.645327",
"0.6430235",
"0.64188784",
"0.6387161",
"0.6386986",
"0.6386986... | 0.78252596 | 1 |
Method to create a new request | def gQLE():
phGJ = str(qxeD.uuid4())[:8]
cSZI = 'On going'
wXV8 = DEf7(key_name=phGJ, reqid=phGJ, reqstatus=cSZI)
wXV8.put()
return phGJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d9vn(YKHO, MgI3, *qIxc, **B2fa):\n return wcXs(MgI3, *qIxc, **B2fa)",
"def pXPL(YKHO, NKcE, *NArs):\n return YKHO._send('createRequest', NKcE, NArs)",
"def d9vn(YKHO):\n YKHO.init_request()\n try:\n YKHO.__connection.request(YKHO._request_params['method'], YKHO._request_params['path'], Y... | [
"0.7972329",
"0.7819201",
"0.77433383",
"0.7664055",
"0.7630702",
"0.7442305",
"0.7416547",
"0.74138784",
"0.74097484",
"0.73335236",
"0.73018503",
"0.73018503",
"0.73018503",
"0.73018503",
"0.73018503",
"0.73018503",
"0.73018503",
"0.73018503",
"0.73018503",
"0.73018503",
"0... | 0.8017493 | 0 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(QfKB, YKHO).__init__(*qIxc, **c_sp)
if YKHO.motors_halted is None:
YKHO.motors_halted = kKAJ.msg.Bool()
if YKHO.motors_halted_valid is None:
YKHO.motors_halted_valid = False
if YKHO.power_board_state is Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.8167204",
"0.7721733",
"0.7721733",
"0.7654095",
"0.757258",
"0.75457156",
"0.74854344",
"0.7470224",
"0.74580795",
"0.7447476",
"0.7445203",
"0.7433716",
"0.74151665",
"0.74079406",
"0.739237",
"0.737509",
"0.73640925",
"0.73265964",
"0.7324066",
"0.7324066",
"0.7324066",... | 0.0 | -1 |
Return the current state of the game as a GameState object. | def QTBn(YKHO):
return Cu_3(YKHO.word, YKHO.guesses, YKHO.guessed_words, YKHO.score, YKHO.max_bad_guesses) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0mt(YKHO) -> Cu_3:\n return Cu_3(YKHO.current_position, YKHO.velocity)",
"def ja6o(YKHO):\n return YKHO.game.get_state()",
"def j3Sc(YKHO):\n return YKHO._game_state",
"def j3Sc(YKHO):\n return YKHO._game_state",
"def j3Sc(YKHO):\n return YKHO._game_state",
"def j3Sc(YKHO):\n retur... | [
"0.8489076",
"0.84196985",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82970744",
"0.82341075",
"0.7989702",
"0.77205515",
"0.769242",
"0.74717647",
... | 0.7688135 | 19 |
Check that the container has no objects and no pack files. | def oze_(zGKt):
BWz1 = zGKt.count_objects()
assert BWz1['packed'] == 0, 'The container should be empty at the beginning (but there are {} packed objects)'.format(BWz1['packed'])
assert BWz1['loose'] == 0, 'The container should be empty at the beginning (but there are {} loose objects)'.format(BWz1['loose'])... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JbT0(YKHO) -> None:\n if YKHO.start != 0:\n raise ValueError(f'for empty containers, start must be 0 but is {YKHO.start}')\n if YKHO.stop != 0:\n raise ValueError(f'for empty containers, stop must be 0 but is {YKHO.stop}')\n if YKHO.step != 1:\n raise ValueError(f'for empty contai... | [
"0.71254253",
"0.676261",
"0.6757139",
"0.6582822",
"0.6549184",
"0.6546288",
"0.6455989",
"0.6444653",
"0.643648",
"0.6375386",
"0.6330799",
"0.62059563",
"0.619317",
"0.6168222",
"0.6151823",
"0.6149547",
"0.6149276",
"0.6118651",
"0.607966",
"0.6054293",
"0.60502255",
"0... | 0.7091077 | 1 |
Put some data in the container, then check that unknown UUIDs raise the correct error. | def bT4v(jEJm, dAf7, WFH9, pIKb):
nPrm = dAf7()
zde9 = GhWu(jEJm, nPrm)
if WFH9:
jEJm.pack_all_loose(compress=pIKb)
XPeN = list(zde9.keys())
U8Ec = [qxeD.uuid4().hex for bGrB in range(5)] + ['invalid-uuid-string']
for Lw2G in U8Ec:
with trZe.raises(BQDi.NotExistent):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J361(YKHO):\n nNXP.add_identity(YKHO.ctx, 'scm', email='jsmith@example.com')\n nNXP.add_identity(YKHO.ctx, 'scm', email='jdoe@example.com')\n dy9e = E0PF()\n with YKHO.assertRaises(mgaz):\n nNXP.add_identity(YKHO.ctx, 'mls', name=None, email='jsmith@example.com', username=None, uuid='FFFFFFF... | [
"0.5798891",
"0.57876575",
"0.57729083",
"0.5744469",
"0.5679881",
"0.567533",
"0.567484",
"0.56747323",
"0.5632883",
"0.55854005",
"0.5576706",
"0.55736667",
"0.5553867",
"0.5552683",
"0.5527185",
"0.55038226",
"0.5500507",
"0.5489277",
"0.5488574",
"0.5478353",
"0.54662925"... | 0.6664837 | 0 |
Pad a tensor, given by the max length | def Bh8h(vhpA, u54L):
if vhpA.size(0) == u54L:
return vhpA
return ht2j.cat([vhpA, ht2j.zeros([u54L - vhpA.size(0), vhpA.size(1)])]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojLL(vhpA, ZM6q, jDK_=0):\n ROpF = jPbk.get_shape_list(vhpA)\n PjCD = ZM6q - ROpF[jDK_]\n PjCD = ZylS.convert_to_tensor([PjCD])\n _0VL = ZylS.constant([[jDK_]])\n Vhxs = ZylS.pad(PjCD, paddings=[[1, 0]])\n Vhxs = ZylS.expand_dims(Vhxs, axis=0)\n ROpF = ZylS.constant([len(ROpF), 2])\n Lk... | [
"0.7898251",
"0.7892798",
"0.7892798",
"0.7882838",
"0.7748297",
"0.7614492",
"0.7589571",
"0.7500545",
"0.7437125",
"0.74314946",
"0.73190856",
"0.71675265",
"0.71379316",
"0.71280265",
"0.7116904",
"0.7107356",
"0.7084617",
"0.7044876",
"0.695988",
"0.6929823",
"0.6923425",... | 0.8053403 | 0 |
Given the length create a mask given a padded tensor | def z25C(f65o, BcCR, sA8p, u54L):
YvV5 = ht2j.zeros(f65o, BcCR)
for or8S, rdlD in enumerate(YvV5):
rdlD[:max(sA8p, u54L[or8S])] = 1
return YvV5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ct0h(vhpA, NXmX):\n ZHfW = ZylS.sequence_mask(ZylS.to_int32(NXmX), ZylS.to_int32(ZylS.shape(vhpA)[0]))\n return vhpA * ZylS.transpose(ZylS.to_float(ZHfW), [1, 0])",
"def saPS(Fbjb):\n lHmx = int(len(Fbjb))\n KLk8 = int(max(Fbjb))\n ZHfW = ht2j.zeros(lHmx, KLk8, dtype=ht2j.uint8)\n for YRbF,... | [
"0.80618376",
"0.77536905",
"0.77235913",
"0.7696685",
"0.7547437",
"0.7387684",
"0.73306304",
"0.7279986",
"0.71838236",
"0.7171727",
"0.71635896",
"0.71331936",
"0.7051619",
"0.70163417",
"0.70163417",
"0.69767106",
"0.69767106",
"0.6970403",
"0.6934899",
"0.6934899",
"0.69... | 0.785417 | 1 |
Create and return the ``ArgumentParser`` which will be used to parse the arguments to this command. | def yl6v(YKHO, qP5v, V0Dt):
wvEv = _QyN(YKHO, prog='%s %s' % (Hy7s.path.basename(qP5v), V0Dt), description=YKHO.help or None)
wvEv.add_argument('--version', action='version', version=YKHO.get_version())
wvEv.add_argument('-v', '--verbosity', action='store', dest='verbosity', default=1, type=int, choices=[0,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C5D6(YKHO):\n wvEv = j1Jz.ArgumentParser()\n return wvEv",
"def TOpa(YKHO):\n wvEv = YKHO._new_argument_parser()\n YKHO._add_base_arguments(wvEv)\n YKHO._add_required_arguments(wvEv)\n return wvEv",
"def z0ba(YKHO, **B2fa):\n import argparse\n VqfF = argparse.ArgumentParser(prog=B2f... | [
"0.8303726",
"0.81956893",
"0.7950483",
"0.7846996",
"0.7816043",
"0.77786005",
"0.76513803",
"0.76209974",
"0.76112634",
"0.75585437",
"0.7536419",
"0.73876673",
"0.73839295",
"0.73829585",
"0.7382836",
"0.73787254",
"0.7376096",
"0.7367123",
"0.73586094",
"0.7352744",
"0.73... | 0.0 | -1 |
Build index.html for cherrypy Render the template and return the html file to be delivered to the browser | def d6pt(YKHO, U3hF=None):
TCZ_ = YKHO.tplenv.get_template('index.html')
return TCZ_.render(p=YKHO.plugin) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_():\n return TvZl('index.html')",
"def iDOr(YKHO):\n YKHO.response.headers['Content-Type'] = 'text/html'\n YKHO.response.out.write(sEMF)",
"def _1tc():\n return TvZl('index.html')",
"def b8V_():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt()... | [
"0.78033787",
"0.7729381",
"0.77049726",
"0.7692441",
"0.76820636",
"0.7662419",
"0.7659384",
"0.7648897",
"0.76407534",
"0.76407534",
"0.76407534",
"0.76407534",
"0.76407534",
"0.76407534",
"0.76407534",
"0.76407534",
"0.76407534",
"0.76407534",
"0.76407534",
"0.76407534",
"... | 0.0 | -1 |
Creates and returns a deep copy of the internal cumulative distribution of value > fraction | def SCAk(YKHO) -> {}:
return jth9.deepcopy(YKHO.__cumulative) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E1xV(YKHO):\n exwG = len(YKHO._cdf)\n XP5J = VNqG(exwG)\n XP5J[0] = YKHO._cdf[0]\n XP5J[1:] = YKHO._cdf[1:] - YKHO._cdf[:-1]\n return XP5J",
"def EE2Q(XP5J: list) -> list:\n wjRY = sum(XP5J)\n XP5J = [ZfUD / wjRY for ZfUD in XP5J]\n return UN9F(XP5J)",
"def SCAk(YKHO, *EcVT):\n i... | [
"0.6341689",
"0.61558235",
"0.6016847",
"0.5976016",
"0.5966249",
"0.5906149",
"0.5763096",
"0.5742732",
"0.57196784",
"0.57093585",
"0.56692356",
"0.564783",
"0.56326383",
"0.5631822",
"0.5586426",
"0.5571783",
"0.55572444",
"0.55388147",
"0.55049706",
"0.5490861",
"0.548995... | 0.53385437 | 34 |
Add two distributions to create a new one representing the distribution created by independently 'rolling' each of the inputs and adding the values together. This is used by the __add__ and __radd__ as well as __mul__ and __rmul__ | def H2v5(jzdc: 'D', Fg_i: 'D') -> 'D':
Csk6 = {}
for b4lR, Xugt in jzdc.__dict.items():
for I8zM, TRdr in Fg_i.__dict.items():
BWXx = b4lR + I8zM
JxU2 = Xugt * TRdr
if BWXx in Csk6:
Csk6[BWXx] = Csk6[BWXx] + JxU2
else:
Csk6[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kwLP(vC9B, Mkmy, _hZ2=0.01):\n if vC9B == g5bv:\n return Mkmy\n if Mkmy == g5bv:\n return vC9B\n yg_D = int(epAf.floor(vC9B.quantile(_hZ2)))\n Bmzm = int(epAf.ceil(vC9B.quantile(1 - _hZ2)))\n MyAL = int(epAf.floor(Mkmy.quantile(_hZ2)))\n jjO6 = int(epAf.ceil(Mkmy.quantile(1 - _h... | [
"0.58988255",
"0.58738714",
"0.58221245",
"0.5809839",
"0.5737475",
"0.5628559",
"0.5605751",
"0.5576697",
"0.5567067",
"0.55371875",
"0.55315316",
"0.55261016",
"0.5500441",
"0.549739",
"0.548475",
"0.5427626",
"0.5423022",
"0.5422612",
"0.5422575",
"0.5419509",
"0.5401001",... | 0.57758087 | 4 |
Calculate the mean, defined as the sum of products of values and probabilities for all values in the dict. As all probabilities are expressed as fractions this is a fraction. | def JBMS(YKHO) -> nN76.Fraction:
return sum([H5ew * YKHO.__dict[H5ew] for H5ew in YKHO.__dict]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JBMS(YKHO) -> ImMB:\n return {G1Hx: Ty9i / YKHO.count for G1Hx, Ty9i in YKHO.data.items()}",
"def wD5T(ztjo):\n WF_E = []\n for H5ew in ztjo:\n hkxX = ztjo[H5ew]\n UbIJ = oyIN.std(hkxX) / oyIN.mean(hkxX)\n WF_E.append(UbIJ)\n UNfB = oyIN.mean(WF_E)\n if oyIN.isnan(UNfB):\n... | [
"0.7174937",
"0.71373206",
"0.7083121",
"0.7083121",
"0.70538837",
"0.6977534",
"0.68922025",
"0.6891279",
"0.68838453",
"0.68552214",
"0.6801408",
"0.6794592",
"0.67750376",
"0.67687225",
"0.67669076",
"0.675637",
"0.67516625",
"0.6707284",
"0.6689744",
"0.6683923",
"0.66716... | 0.79756606 | 0 |
Return the probability, as a Fraction, of a given range of values. | def XP5J(YKHO, min=None, max=None) -> nN76.Fraction:
def GfdN(BWXx):
if min is not None and BWXx < min:
return False
if max is not None and BWXx > max:
return False
return True
return sum([YKHO.__dict[BWXx] for BWXx in YKHO.__dict if GfdN(BWXx)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GGRV(DQWx, CpV_, WnaT):\n return (WnaT - DQWx) / (CpV_ - DQWx)",
"def JxU2(YKHO, wEf2):\n return ((wEf2 >= YKHO.minimum) & (wEf2 <= YKHO.maximum)) / (YKHO.maximum - YKHO.minimum)",
"def wdcJ(yKcO, Os4s):\n im04 = js4S()\n XP5J = im04.cdf(Os4s) - im04.cdf(yKcO)\n return XP5J",
"def JxU2(Kt9... | [
"0.69874334",
"0.6726553",
"0.6638988",
"0.6617612",
"0.6607201",
"0.6499358",
"0.6417172",
"0.6413762",
"0.636081",
"0.63588005",
"0.63152504",
"0.6277095",
"0.622711",
"0.6226594",
"0.62245417",
"0.6214006",
"0.6210887",
"0.619892",
"0.6165947",
"0.61011666",
"0.6088851",
... | 0.5946067 | 32 |
Returns `True` when given HDUList contains more than 1 HDU. | def wPum(n8OE):
return len(n8OE) > 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YHVU(OxJJ):\n jeDP = len(OxJJ)\n return False if jeDP == 0 else jeDP != len(set(OxJJ))",
"def FYXB(YKHO, FxNH):\n return FxNH in YKHO._fits",
"def ckk1(vC9B):\n return not vC9B or vC9B.count(vC9B[0]) == len(vC9B)",
"def DQ4x(yv6U):\n return len(set(yv6U)) == len(yv6U)",
"def bPYL(BWXx):\... | [
"0.630564",
"0.6162335",
"0.6090125",
"0.6052933",
"0.6016463",
"0.5916501",
"0.5865029",
"0.5852676",
"0.58350503",
"0.5823653",
"0.5818679",
"0.580461",
"0.5774009",
"0.5762078",
"0.573491",
"0.57190055",
"0.56564957",
"0.56317675",
"0.56265575",
"0.5621092",
"0.55962384",
... | 0.70027953 | 0 |
Normalizes the image data to the [0,1] domain, using histogram equalization. | def CPun(Emd4, LNo8):
rHUV = E3Mn.HistEqStretch(LNo8)
CkYf = E3Mn.ImageNormalize(LNo8, stretch=rHUV, clip=True)
return CkYf(LNo8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jnV4(YKHO):\n for MKlR in YKHO._histograms:\n if MKlR is None:\n continue\n YRbF = MKlR.Integral()\n if YRbF == 0:\n continue\n MKlR.Scale(1.0 / YRbF)",
"def Ku21(nPrm):\n for YRbF in range(0, len(nPrm)):\n nPrm[YRbF] = oyIN.true_divide(nPrm[YRbF... | [
"0.7916601",
"0.7445019",
"0.7085772",
"0.7029034",
"0.69304764",
"0.6919664",
"0.6883423",
"0.6864584",
"0.6861631",
"0.6806141",
"0.6763243",
"0.6753017",
"0.6723082",
"0.6705507",
"0.66750044",
"0.6674488",
"0.66697127",
"0.66697127",
"0.6656299",
"0.66500664",
"0.6643972"... | 0.6685821 | 14 |
When passing a real template UID, get_pod_template() should return this template. | def i56k(YKHO):
rLSn = YKHO.test_podtemplate
V8Z2 = rLSn.UID()
tTee = YKHO.portal.restrictedTraverse('@@document-generation')
YKHO.assertTrue(tTee.get_pod_template(V8Z2) == rLSn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _RrP(YKHO):\n ujhk = '12345'\n tTee = YKHO.portal.restrictedTraverse('@@document-generation')\n tTee.request.set('template_uid', ujhk)\n YKHO.assertTrue(tTee.get_pod_template_uid() == ujhk)",
"def rPXJ(YKHO) -> '_core.v1.outputs.PodTemplateSpec':\n return qe4Y.get(YKHO, 'template')",
"def rP... | [
"0.7576401",
"0.74447525",
"0.74447525",
"0.72351027",
"0.72351027",
"0.716671",
"0.70488054",
"0.70488054",
"0.70488054",
"0.65758294",
"0.6513766",
"0.6455312",
"0.6444489",
"0.6396021",
"0.63346493",
"0.627564",
"0.62359554",
"0.61999613",
"0.61956066",
"0.61901706",
"0.61... | 0.759643 | 0 |
Return the numpy error rate | def dYlE(si3g, skBL):
return oyIN.mean(si3g != skBL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(qw7D):\n return oyIN.var(qw7D) / len(qw7D)",
"def P1dF(YKHO):\n if isinstance(YKHO.kernel, i_Or.ConstKernel):\n Csk6 = YKHO.data\n return min(Csk6.getClass(0).shape[0], Csk6.getClass(1).shape[0]) / float(Csk6.getNum())\n if not hasattr(YKHO, 'errorRate') or YKHO.errorRate is None:... | [
"0.77260447",
"0.758313",
"0.7116438",
"0.69431394",
"0.6927679",
"0.6888971",
"0.6879684",
"0.68639636",
"0.6862989",
"0.6801457",
"0.6759239",
"0.6745452",
"0.6652535",
"0.6648761",
"0.6634657",
"0.6614999",
"0.6609519",
"0.65867037",
"0.65370923",
"0.6520576",
"0.65184605"... | 0.6558323 | 18 |
Return the numpy error rate | def rcDP(si3g, skBL):
return oyIN.mean(oyIN.argmax(si3g, axis=1) != oyIN.argmax(skBL, axis=1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(qw7D):\n return oyIN.var(qw7D) / len(qw7D)",
"def P1dF(YKHO):\n if isinstance(YKHO.kernel, i_Or.ConstKernel):\n Csk6 = YKHO.data\n return min(Csk6.getClass(0).shape[0], Csk6.getClass(1).shape[0]) / float(Csk6.getNum())\n if not hasattr(YKHO, 'errorRate') or YKHO.errorRate is None:... | [
"0.77260447",
"0.758313",
"0.7116438",
"0.69431394",
"0.6927679",
"0.6888971",
"0.6879684",
"0.68639636",
"0.6862989",
"0.6801457",
"0.6759239",
"0.6745452",
"0.6652535",
"0.6648761",
"0.6634657",
"0.6614999",
"0.6609519",
"0.65867037",
"0.6558323",
"0.65370923",
"0.6520576",... | 0.0 | -1 |
This function modifies the exogenous target temperature range, so that 1. the building will not be preheated (or precooled) to toohigh (or toolow) temperature; 2. the optimization will not be infeasible if the building is heated above maximum temperature by radiation. | def e8LI(YKHO, IJn0: Union[int, float]) -> (oyIN.array, oyIN.array):
UUPR = []
dsuR = []
for YRbF, ZgHd in enumerate(YKHO.T_Room):
zWsn = YKHO.scenario.behavior.target_temperature_array_min[YRbF] + IJn0
if ZgHd < zWsn:
dsuR.append(YKHO.scenario.behavior.target_temperature_array_m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LWog(YKHO):\n for NXpY, BWXx in zip(YKHO._scales, YKHO._values):\n YKHO.default_constructor.set_temperature_scale(NXpY)\n YKHO.default_constructor.set_eco_temperature_low(BWXx)\n tDkU(YKHO.default_constructor.eco_temperature_low, Tfrw(PXeq(BWXx, YKHO._tolerance)))",
"def orCF(YKHO):\n... | [
"0.6080941",
"0.605971",
"0.59265316",
"0.5877555",
"0.5781312",
"0.57455045",
"0.56771344",
"0.5668225",
"0.56042844",
"0.5589195",
"0.5534441",
"0.5492084",
"0.54657",
"0.54581434",
"0.5416326",
"0.53907305",
"0.5372839",
"0.53376496",
"0.5334993",
"0.5333526",
"0.53257537"... | 0.49828056 | 67 |
A function that resets the data to the initial values read in from the three .csv files. Note that the GUI map display does not change when using the associated button, however, by adjusting the sliders a new map output will be produced. The global variables are used here as these will be reset to initial values after ... | def ji3u():
global geo_array
global pop_array
global trans_array
uAz2 = XTiz.array(JRBX)
vvPH = XTiz.array(oTye)
JQDe = XTiz.array(kipb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Y1N(YKHO):\n YKHO.initial_litter = []\n YKHO.steady_state = []\n YKHO.constant_litter = []\n YKHO.monthly_litter = []\n YKHO.yearly_litter = []\n YKHO.area_change = []\n YKHO.constant_climate.mean_temperature = 0\n YKHO.constant_climate.annual_rainfall = 0\n YKHO.constant_climate.va... | [
"0.6516719",
"0.63619566",
"0.62601894",
"0.6201051",
"0.6170758",
"0.6138152",
"0.6107275",
"0.6083183",
"0.6083129",
"0.6049485",
"0.6000026",
"0.59528476",
"0.59000355",
"0.58860034",
"0.5875287",
"0.58530384",
"0.5826875",
"0.58063257",
"0.57958037",
"0.5781285",
"0.57518... | 0.71505344 | 0 |
inverse covariance of observations (nobs_i, nobs_i) (JP check) Display (3.2) from Laird, Lange, Stram (see help(Unit)) | def qOEO(YKHO):
YKHO.W = aPd6.inv(YKHO.S) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Fr7K(YKHO):\n return oyIN.linalg.inv(YKHO.cov)",
"def wJ2d(YKHO) -> oyIN.ndarray:\n GvHN = YKHO.covariance_matrix()\n return Zxt2.linalg.inv(GvHN + 1e-06 * oyIN.eye(GvHN.shape[0]))",
"def _IBo(YKHO):\n Z9rn, Mkmy = YKHO.size()\n float(Z9rn)\n float(Mkmy)\n Sfqw = YKHO.mean()\n rS_H ... | [
"0.789083",
"0.72305924",
"0.66692823",
"0.66014105",
"0.65307313",
"0.65307313",
"0.65179944",
"0.6514954",
"0.6506338",
"0.64585227",
"0.64548635",
"0.6416411",
"0.64046496",
"0.6401966",
"0.6393356",
"0.63665885",
"0.63605034",
"0.6338143",
"0.6306842",
"0.6304659",
"0.626... | 0.0 | -1 |
Estimate sigma. If ML is True, return the ML estimate of sigma, else return the REML estimate. If ML, this is (3.6) in Laird, Lange, Stram (see help(Mixed)), otherwise it corresponds to (3.8). sigma is the standard deviation of the noise (residual) | def ma0c(YKHO, D0Ff=False):
BnFt = 0.0
for PXGI in YKHO.units:
if D0Ff:
XcU5 = PXGI.W
else:
PXGI.compute_P(YKHO.Sinv)
XcU5 = PXGI.P
a1PO = PXGI.r - oyIN.dot(PXGI.Z, PXGI.b)
BnFt += oyIN.power(a1PO, 2).sum()
BnFt += YKHO.sigma ** 2 * oyI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GBBF(YKHO):\n pxtC(YKHO.records['ll']['sigma'], XTiz.array([0.4736068]), 0.0001)",
"def GBBF(YKHO):\n pxtC(YKHO.records['ll']['sigma'], XTiz.array([0.00194404]), 0.0001)",
"def GBBF(YKHO):\n pxtC(YKHO.records['ll']['sigma'], XTiz.array([0.60978937]), 0.0001)",
"def cPyA(YKHO):\n Dwvl = ht2j.s... | [
"0.6479717",
"0.6296489",
"0.6258245",
"0.62410545",
"0.61770207",
"0.6165771",
"0.6154564",
"0.6146963",
"0.61017877",
"0.6076287",
"0.6076287",
"0.6071642",
"0.6056932",
"0.60546875",
"0.6049104",
"0.6026267",
"0.602529",
"0.6022529",
"0.5977947",
"0.5949246",
"0.5947443",
... | 0.7253722 | 0 |
Returns the value of the highest card. | def Sa_J(YKHO):
return YKHO.cards_high_to_low[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MOB3(RZ8t):\n bF9_ = max(RZ8t)\n return bF9_",
"def yw7D(nf_0):\n return max(nf_0)",
"def Sa_J(Bwa6):\n sSaq = 0\n for XP5J in Bwa6:\n sSaq = max(sSaq, max(XP5J.get_cards())[0])\n return [XP5J for XP5J in Bwa6 if max(XP5J.get_cards())[0] == sSaq]",
"def pUNG(YKHO):\n a6_x = -1... | [
"0.8023671",
"0.78216815",
"0.7464676",
"0.7353562",
"0.72971284",
"0.72931373",
"0.72794807",
"0.7208119",
"0.71706",
"0.71641374",
"0.7082453",
"0.7069198",
"0.706751",
"0.705888",
"0.7039043",
"0.70059115",
"0.69941413",
"0.69878316",
"0.69859236",
"0.69819957",
"0.6967488... | 0.8780123 | 0 |
Determines if there is only one type of suit in the hand. | def PN3e(YKHO):
return len(set(YKHO.card_suits)) == 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PN3e(RZ8t):\n SOXX = [dxhl.suit for dxhl in RZ8t]\n if len(set(SOXX)) == 1:\n return True\n else:\n return False",
"def RFOL(RZ8t):\n return len(set([iCfd for bGrB, iCfd in RZ8t])) == 1",
"def gxfh(RZ8t):\n return True",
"def PN3e(RZ8t):\n return len(set((iCfd for fdMZ, iC... | [
"0.7290746",
"0.70488155",
"0.689266",
"0.6892425",
"0.67300415",
"0.6715975",
"0.65777636",
"0.64477444",
"0.6437836",
"0.64088106",
"0.6347839",
"0.6309935",
"0.6283361",
"0.6227908",
"0.62086785",
"0.61889005",
"0.618867",
"0.6181219",
"0.6166674",
"0.6152848",
"0.6117005"... | 0.6051823 | 24 |
Hydrate the pivot table relationship on the models. | def BaMs(YKHO, FYrf):
for C3ST in FYrf:
csQL = YKHO.new_existing_pivot(YKHO._clean_pivot_attributes(C3ST))
C3ST.set_relation('pivot', csQL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZTYD(YKHO, FYrf, koMu):\n for C3ST in FYrf:\n C3ST.set_relation(koMu, YKHO._related.new_collection())\n return FYrf",
"def kYFD(YKHO):\n uPxI = super().to_schema()\n koMu = YKHO._generate_relation(YKHO.relation_type, YKHO.relation_npartitions)\n uPxI.update(koMu)\n return uPxI",
"d... | [
"0.59330314",
"0.5902926",
"0.56166327",
"0.5609414",
"0.5551006",
"0.5499778",
"0.54109746",
"0.5327466",
"0.5198026",
"0.5180561",
"0.5147702",
"0.51115656",
"0.5105906",
"0.5104956",
"0.5086314",
"0.5082611",
"0.50484574",
"0.50070214",
"0.5001895",
"0.49665496",
"0.496377... | 0.83384484 | 0 |
Test case for update_entity_bundle | def jc3s(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oZWf(YKHO):\n pass",
"def rVn4(YKHO):\n pass",
"def NsjJ(YKHO):\n pass",
"def Q4vE(YKHO):\n pass",
"def zUDI(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def j_w7(YKHO):\n pass",
"def IsIF(YKHO, qIxc):\n pass",
"def fEtD(YKHO):\n YAq3 = BJ... | [
"0.7575815",
"0.72299683",
"0.7203162",
"0.68922824",
"0.6839098",
"0.6791011",
"0.6791011",
"0.67466897",
"0.6684707",
"0.66297925",
"0.6574916",
"0.6444984",
"0.6405077",
"0.63996303",
"0.63240254",
"0.63224226",
"0.6301255",
"0.62970054",
"0.62749654",
"0.62578326",
"0.623... | 0.9546494 | 0 |
This function can be used to change the address of the pump currently connected to the computer. Before trying to change the address of the pump ensure that the intended pump is the only pump connected to your computer. The default address assigned is 0. This function should not be necessary unless you have more than o... | def PCmf(YKHO, PCmf=0):
sIeh = YKHO.serwrite('*ADR%i\r' % PCmf)
return sIeh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t3_8(I1mm):\n return",
"def t3_8(YKHO, UTX6):\n YKHO._device.set_adr(UTX6)",
"def r5Fz(YKHO):\n YKHO.sendCmd('++addr ' + YKHO.addr + '\\n')",
"def UTX6(YKHO, BWXx):\n YKHO.logger.warn('Setting values on address will NOT update the remote Canvas instance.')\n YKHO._address = BWXx",
"def M... | [
"0.6743003",
"0.65933895",
"0.6021119",
"0.5994104",
"0.59643924",
"0.59385514",
"0.5927061",
"0.57824785",
"0.5685547",
"0.56676424",
"0.5643228",
"0.5591975",
"0.5553663",
"0.5493708",
"0.5489248",
"0.54675823",
"0.54497445",
"0.5411995",
"0.53797084",
"0.53797084",
"0.5379... | 0.7493476 | 0 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))
return uw5A / uw5A.sum(axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye",
"def N93T(WKvO):\n j1LR = oyIN.exp(o... | [
"0.80122787",
"0.77614385",
"0.77614385",
"0.76873195",
"0.7670498",
"0.7660352",
"0.76569563",
"0.76569563",
"0.76569563",
"0.76569563",
"0.76569563",
"0.76569563",
"0.76569563",
"0.7639556",
"0.7627401",
"0.7552596",
"0.7532612",
"0.7456632",
"0.73255384",
"0.73181695",
"0.... | 0.7134925 | 42 |
Computes distance from one corner of the cuboid to the opposite one while travelling only on the surfaces. | def G4D4(jzdc, Fg_i, Z9rn):
return (Z9rn * Z9rn + (jzdc + Fg_i) * (jzdc + Fg_i)) ** 0.5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qh1l(ObcB: Cube, unXY: Cube) -> int:\n return max(abs(ObcB.x - unXY.x), abs(ObcB.y - unXY.y), abs(ObcB.z - unXY.z))",
"def JpbV(YKHO):\n return (abs(YKHO.x) + abs(YKHO.y) + abs(YKHO.z)) // 2",
"def Ayfi(YKHO):\n return abs(YKHO.x) + abs(YKHO.y) + abs(YKHO.z)",
"def BqbF(YKHO, EBgd, HpuQ):\n j... | [
"0.67246914",
"0.6542376",
"0.64022166",
"0.62982833",
"0.6205762",
"0.61923754",
"0.61624587",
"0.6158687",
"0.61130434",
"0.6099583",
"0.6087496",
"0.60873693",
"0.60588723",
"0.6039326",
"0.6017355",
"0.60124046",
"0.59897643",
"0.5987794",
"0.5987794",
"0.5960811",
"0.595... | 0.58325505 | 36 |
Return vector of rewards for the given samples. mode=='greedy' just uses the actual_ap of the taken action mode=='rl_half', 'rl_regression' or 'rl_lspi' uses discounted sum of actual_aps to the end of the episode attr can be ['det_actual_ap', 'entropy', 'auc_ap_raw', 'auc_ap', 'auc_entropy'] | def jRVq(YKHO, gGnb, Tuqy='greedy', FMQW=0.4, hkS8=None):
if not hkS8:
hkS8 = YKHO.rewards_mode
LVAh = oyIN.array([getattr(mvm2, hkS8) for mvm2 in gGnb])
if Tuqy == 'greedy':
return LVAh
elif Tuqy == 'rl_regression' or Tuqy == 'rl_half':
if Tuqy == 'rl_half':
FMQW = 0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h43g(rRTz, N6Z1):\n vwlo = []\n qIxc = oyIN.argmax(rRTz, axis=1)\n aMgO = N6Z1\n for YRbF in range(0, len(aMgO)):\n Fgkl = aMgO[YRbF] >= aMgO[YRbF][qIxc[YRbF]]\n KCHu = oyIN.sum(Fgkl)\n vwlo.append(1.0 / KCHu)\n jFFD = oyIN.array(vwlo)\n return jFFD",
"def TO6T(YKHO, by... | [
"0.6023194",
"0.58882916",
"0.58140886",
"0.5780024",
"0.5598586",
"0.5588092",
"0.5552906",
"0.5551871",
"0.55284095",
"0.5516944",
"0.5465605",
"0.546016",
"0.5459356",
"0.5453991",
"0.5432099",
"0.5431611",
"0.5421893",
"0.54042053",
"0.54017943",
"0.53984916",
"0.5395804"... | 0.7994643 | 0 |
Return the index of the untaken action with the max value. Return 1 if all actions have been taken. | def GHEz(YKHO, Fg_i, _hZ2=0.05):
gYAw = jth9.deepcopy(Fg_i.taken)
if oyIN.all(gYAw):
return -1
IzZK = oyIN.flatnonzero(gYAw == 0)
if oyIN.random.rand() > _hZ2:
tT5J = YKHO.action_values[IzZK].argmax()
return IzZK[tT5J]
else:
return oyIN.random.randint(len(YKHO.actions... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gOEh(YKHO) -> int:\n return oyIN.argmax(YKHO.true_action_values)",
"def bA9S(YKHO, xASv, QTBn):\n z1t8 = -oyIN.inf\n TmFF = None\n for jzdc in xASv:\n if YKHO.getQValue(QTBn, jzdc) > z1t8:\n z1t8 = YKHO.getQValue(QTBn, jzdc)\n TmFF = jzdc\n return TmFF",
"def GUn... | [
"0.7631254",
"0.73708445",
"0.72889346",
"0.723852",
"0.7223733",
"0.7210139",
"0.7210139",
"0.7210139",
"0.7173548",
"0.7148419",
"0.7098288",
"0.70691985",
"0.70682085",
"0.70682085",
"0.6966373",
"0.69594085",
"0.69187903",
"0.69187903",
"0.6911208",
"0.69067824",
"0.68860... | 0.0 | -1 |
Convert list of lists into flat list | def PWgb(aPd6):
return [ZfUD for XuXy in aPd6 for ZfUD in XuXy] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Iwtg(IqQl):\n WKvO = IqQl\n if isinstance(WKvO, list):\n return [jzdc for YRbF in WKvO for jzdc in Iwtg(YRbF)]\n return [WKvO]",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]",
"def PWgb(vC9B):... | [
"0.80386347",
"0.80187994",
"0.80187994",
"0.80187994",
"0.79932564",
"0.7978897",
"0.7978897",
"0.79680246",
"0.7964401",
"0.795569",
"0.79539204",
"0.79345095",
"0.7919927",
"0.7914991",
"0.7874279",
"0.78741306",
"0.78721833",
"0.785172",
"0.7848839",
"0.7844836",
"0.78365... | 0.79854864 | 5 |
Unpack a comma separated list of values into a flat list | def MZ6z(EcVT):
return PWgb([WKvO.split(',') for WKvO in list(EcVT)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _vyC(JF3C, yDqo=float):\n if hasattr(JF3C, 'split'):\n yvT9 = [WKvO for WKvO in JF3C.split(',')]\n elif hasattr(JF3C, '__iter__'):\n yvT9 = JF3C\n else:\n yvT9 = [JF3C]\n yvT9 = tuple((yDqo(WKvO) for WKvO in yvT9))\n return yvT9",
"def n0SL(BWXx):\n return BWXx.split(',... | [
"0.6852653",
"0.6665683",
"0.65059155",
"0.65059155",
"0.65059155",
"0.65024924",
"0.6500817",
"0.64623326",
"0.63559943",
"0.6353414",
"0.63409597",
"0.62700146",
"0.623501",
"0.6228198",
"0.6188983",
"0.6183592",
"0.6157248",
"0.6146499",
"0.61219037",
"0.6113744",
"0.61018... | 0.74375904 | 0 |
Convert the float value to Tensorflow Feature | def bPiq(BWXx):
return ZylS.train.Feature(float_list=ZylS.train.FloatList(value=BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bPiq(BWXx):\n BWXx = float(BWXx)\n return ZylS.train.Feature(float_list=ZylS.train.FloatList(value=[BWXx]))",
"def bPiq(BWXx):\n return ZylS.train.Feature(float_list=ZylS.train.FloatList(value=BWXx))",
"def bPiq(BWXx):\n return ZylS.train.Feature(float_list=ZylS.train.FloatList(value=[BWXx]))",... | [
"0.8828417",
"0.87515074",
"0.8751056",
"0.8747284",
"0.8740921",
"0.8740921",
"0.87273943",
"0.8716469",
"0.87115055",
"0.8698386",
"0.8698386",
"0.8698386",
"0.8698386",
"0.8698386",
"0.8698386",
"0.8698386",
"0.8698386",
"0.8698386",
"0.8698386",
"0.8698386",
"0.8683603",
... | 0.87582654 | 2 |
Initialize instance object. 1) The instance's coverage area is region. 2) An actual set of rectangles is assinged to 'self._data'. 3) The value name "self._data" would be changed in each subclass, such as _tree, _rectangle_list, _board. Reason 1) "self._data" is not readable. 2) There would be no common codes for self.... | def FIMM(YKHO, zn0c):
YKHO.region = zn0c
YKHO._data = None
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zn0c):\n YKHO.root = None\n YKHO.region = zn0c.copy()\n UXRe = rUUJ(YKHO.region.x_min)\n DDGL = rUUJ(YKHO.region.y_min)\n bYnd = EiaI(YKHO.region.x_max)\n p6Fk = EiaI(YKHO.region.y_max)\n YKHO.region.x_min = YKHO.region.y_min = min(UXRe, DDGL)\n YKHO.region.x_max = YKHO.regio... | [
"0.6800784",
"0.66660243",
"0.65884984",
"0.6554633",
"0.6541441",
"0.6521572",
"0.64518005",
"0.64479387",
"0.64346504",
"0.6415138",
"0.6382194",
"0.6370789",
"0.6365733",
"0.6322533",
"0.6318559",
"0.6301332",
"0.62813413",
"0.6265975",
"0.62472063",
"0.6246394",
"0.622964... | 0.66875434 | 1 |
Make this set iterable for each rectangle contained by this. | def Vs4Q(YKHO):
return iter(YKHO.list()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n for YRbF in (YKHO.x, YKHO.y):\n yield YRbF",
"def Vs4Q(YKHO):\n for LVAh in range(int(YKHO.min.y), int(YKHO.max.y) + 1):\n for WKvO in range(int(YKHO.min.x), int(YKHO.max.x) + 1):\n yield PvyL(WKvO, LVAh)",
"def Vs4Q(YKHO) -> iu5r[q8RS]:\n for MuIv in _UKz:\n... | [
"0.6882625",
"0.6777151",
"0.6728474",
"0.6717836",
"0.6717836",
"0.67073387",
"0.67073387",
"0.6688724",
"0.665121",
"0.6645846",
"0.6612405",
"0.6569877",
"0.6513265",
"0.65080076",
"0.65080076",
"0.6486259",
"0.6479738",
"0.64595026",
"0.64457345",
"0.6442949",
"0.6437347"... | 0.0 | -1 |
Return the number of rectangles in this set. | def szAg(YKHO):
return len(YKHO.list()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GtWn(YKHO):\n Y9v4 = [(2, 8), (2, 6), (4, 4), (3, 4), (4, 3), (2, 3), (8, 2), (6, 2), (3, 2), (2, 2)]\n return aLMY.count(YKHO.find_rectangles(Y9v4))",
"def zNig(YKHO) -> int:\n return len(YKHO.squares)",
"def OAE2(YKHO):\n return (YKHO.rect.get_points()[1] - YKHO.rect.get_points()[0]).length()... | [
"0.84170324",
"0.70287126",
"0.68217003",
"0.6728255",
"0.6643356",
"0.6641444",
"0.661544",
"0.659664",
"0.65914834",
"0.6527144",
"0.6468239",
"0.64651877",
"0.64515615",
"0.64360565",
"0.641419",
"0.6411916",
"0.6394683",
"0.63767254",
"0.6365792",
"0.6358347",
"0.63392353... | 0.0 | -1 |
Return sub set of self and other. | def qjfR(YKHO, Elif):
A1bq = f0LM(YKHO.list(), Elif.list())
W07e = YKHO._copy_empty()
W07e.extend(A1bq)
return W07e | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qjfR(YKHO, Elif):\n if not isinstance(Elif, fHNa):\n K1k_ = 'unsupported operand type for -: %s and %s'\n raise TypeError(K1k_ % (type(YKHO), type(Elif)))\n BdN0 = YKHO.copy()\n return fHNa.__sub(BdN0, Elif)",
"def qjfR(YKHO, Elif=set):\n return YKHO.__xor__(Elif)",
"def by6d(YKHO... | [
"0.82605857",
"0.8080073",
"0.8006083",
"0.7912105",
"0.7759586",
"0.7714986",
"0.7657559",
"0.7621579",
"0.76069355",
"0.756679",
"0.7554829",
"0.738425",
"0.7367043",
"0.7352613",
"0.7334024",
"0.73191065",
"0.72205913",
"0.7211",
"0.7210497",
"0.7201358",
"0.719274",
"0.... | 0.82296443 | 1 |
Get index list of self.linear_quad_tree. | def Zlje(YKHO, lued):
N6VI = []
pxG4, kqlM = YKHO._calc_morton_number(lued)
for rb7a in range(0, kqlM + 1):
H2v2 = kqlM - rb7a
rCfn = pxG4 >> H2v2 * 2
d6pt = type(YKHO)._index(rb7a, rCfn)
N6VI.append(d6pt)
qi10 = YKHO.height
for rb7a in range(kqlM + 1, qi10 + 1):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nfdH(YKHO):\n pmON = []\n vKYL = []\n gBcz = [YKHO]\n YKHO._deepIndex(pmON, vKYL, gBcz)\n return vKYL",
"def oxAj(YKHO):\n raise NotImplementedError",
"def Qubi(YKHO):\n return YKHO._inverted_index",
"def _0VL(YKHO):\n return list(YKHO.values.index)",
"def xvIg(YKHO) -> x1iM[int... | [
"0.6966773",
"0.6885227",
"0.6760641",
"0.67510337",
"0.6626911",
"0.66024965",
"0.6592218",
"0.6588569",
"0.6561528",
"0.64868623",
"0.64503855",
"0.64331865",
"0.63995874",
"0.63995874",
"0.63703585",
"0.6367069",
"0.63418996",
"0.6332801",
"0.63313615",
"0.63241863",
"0.63... | 0.6143241 | 30 |
Represent n in scientific notation, with the specified precision. >>> sci_notation(1234 101000) '1.234e+1003' >>> sci_notation(101000 // 2, prec=1) '5.0e+999' | def eAig(exwG, eRdl=3):
P8oC = 10
w520 = diMM(exwG, P8oC)
vJbO = exwG / P8oC ** w520
return '{0:.{1}f}e{2:+d}'.format(vJbO, eRdl, w520) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eAig(mLGw, oNPj=1, rhd_=0, w520=None):\n if w520 is None:\n w520 = int(epAf.floor(epAf.log10(abs(mLGw))))\n lk9W = round(mLGw / float(10 ** w520), oNPj)\n if rhd_ is None:\n rhd_ = oNPj\n return '${0:.{2}f}\\\\times 10^{{{1:d}}}$'.format(lk9W, w520, rhd_)",
"def PYh4(FGW3, rhd_, vIw... | [
"0.7797885",
"0.73872185",
"0.7384337",
"0.73617494",
"0.673258",
"0.6642331",
"0.66401833",
"0.6619537",
"0.66051817",
"0.6539816",
"0.65334916",
"0.65016544",
"0.6488741",
"0.6470301",
"0.64074904",
"0.6331115",
"0.6296998",
"0.6230531",
"0.6224196",
"0.6184535",
"0.6127765... | 0.86196184 | 0 |
Retrieve the number of seconds this process has been executing for. If process was instantiated with objective=True, then the wallclock value is returned. Otherwise the usertime is returned. If recursive=True is given, recursively finds all childprocessed, if any, and includes their usertime in the total calculation. | def SDBO(YKHO, znBS=None, rV9r=None):
class Skip(Exception):
pass
rV9r = YKHO.objective if rV9r is None else rV9r
znBS = YKHO.recursive if znBS is None else znBS
U5bT = None
try:
if YKHO.is_alive():
if rV9r:
if YKHO.t1_objective is not None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WGHQ(YKHO):\n if hay0:\n r8hN = YKHO.process.get_cpu_times()\n return r8hN.user + r8hN.system\n return ITS7()",
"def qR4o(YKHO):\n return H6Cb.block_pc_work_time_total(YKHO)",
"def qR4o(YKHO):\n return tE_f.viterbi_i_sptr_pc_work_time_total(YKHO)",
"def qR4o(YKHO):\n return t... | [
"0.6147343",
"0.61136395",
"0.6028858",
"0.6023757",
"0.6010414",
"0.6000725",
"0.59908324",
"0.5988108",
"0.59779704",
"0.59751964",
"0.59724575",
"0.59670496",
"0.5963059",
"0.5959952",
"0.5956808",
"0.59561765",
"0.5954892",
"0.5952946",
"0.5949066",
"0.5945757",
"0.594147... | 0.77813196 | 0 |
Returns 1 if pid1 is parent of pid2. Returns +1 if pid2 is parent of pid1. Return 0 if pids are not directly related. | def uQRF(UH9D, mnGC):
if UH9D == YKHO.to_parent.get(mnGC):
return -1
elif mnGC == YKHO.to_parent.get(UH9D):
return +1
return eHkp(UH9D, mnGC) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g2qA(YKHO, Ii1o):\n return Ii1o in YKHO._parent_ids",
"def ACnF(YKHO, Elif):\n return Elif.nodes[:len(YKHO.nodes)] == YKHO.nodes",
"def r6_X(HQL0, K70m):\n return HQL0['id'] == K70m['previous_block']",
"def ACnF(YKHO):\n return YKHO._connected_pids(from_parent=False)",
"def Hppm(YKHO):\n ... | [
"0.661947",
"0.6573718",
"0.63054657",
"0.58354986",
"0.5818785",
"0.57913375",
"0.57611775",
"0.5679717",
"0.5645205",
"0.5632238",
"0.5583079",
"0.5582564",
"0.5575569",
"0.5561932",
"0.5554033",
"0.5511346",
"0.54888016",
"0.5460549",
"0.5460222",
"0.5445477",
"0.5435622",... | 0.7468898 | 0 |
Thresholding with optional erosion | def Bwqs(YKHO, aM8h=1.0, Tait=True):
if not hasattr(YKHO, 'filtered'):
YKHO.filterimage()
if YKHO.load_archive('threshold'):
return
qoqK = aM8h * W1Sd.otsu(YKHO.filtered)
YKHO.threshold = YKHO.filtered > qoqK
if Tait:
YKHO.threshold = uGfj.erode(YKHO.threshold) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jfm3(knl1):\n hFbD = oyIN.ones((3, 3), oyIN.uint8)\n LJYB = oyIN.ones((8, 8), oyIN.uint8)\n knl1 = XC5k.erode(knl1, hFbD, knl1, iterations=2)\n knl1 = XC5k.dilate(knl1, LJYB, knl1, iterations=2)\n return knl1",
"def gwAu(YKHO):\n MpGA = YKHO.dreader.get_max_im(YKHO.iminfo, 'dna')\n gH_m ... | [
"0.6950594",
"0.6884725",
"0.67950684",
"0.6784862",
"0.6643705",
"0.65893495",
"0.658661",
"0.65544844",
"0.6540629",
"0.65355134",
"0.64787364",
"0.64600426",
"0.64507973",
"0.64340377",
"0.6419851",
"0.6364006",
"0.635712",
"0.6347027",
"0.6313941",
"0.6311462",
"0.6290971... | 0.6593305 | 5 |
Strips extension string, adds a dot if not already there and lowercases the extension. | def hGfQ(YKHO, z4WE):
def _wIJ(Fst3):
YBcr = Fst3.strip()
if YBcr[0] == '.':
return YBcr.lower()
return f'.{YBcr}'.lower()
return [_wIJ(YBcr) for YBcr in z4WE] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f6KN(KCHu):\n BJ1H = '.'\n if KCHu.startswith(BJ1H) is False:\n KCHu = BJ1H + KCHu\n return KCHu",
"def QTwE(CBZq):\n if isinstance(CBZq, str):\n YBcr: str = CBZq\n CBZq = YBcr.replace('.', '')\n return CBZq",
"def eAlr(YBcr):\n if YBcr is None or YBcr == '' or YBcr.s... | [
"0.76265097",
"0.75052184",
"0.7479111",
"0.7329119",
"0.7206732",
"0.6995671",
"0.69685334",
"0.69365925",
"0.6918885",
"0.69134647",
"0.6907314",
"0.68448865",
"0.6809811",
"0.67784643",
"0.6771103",
"0.6758322",
"0.6730896",
"0.67204136",
"0.6709176",
"0.66851443",
"0.6670... | 0.6057359 | 88 |
Initialize a SonarQube API wrapper with logging, URL information, and other necessary variables to track state | def FIMM(YKHO, NKRf: str=None, NtEF: str=None, jTXt: str=None, wp5n: int=0, uGpu: str=None) -> None:
super().__init__(service_name='SonarQube', base_url=NKRf, base_endpoint='api', username=NtEF, password=jTXt, verbosity=wp5n, auth=True, kwarg_type='params')
YKHO.new_password = uGpu
YKHO.old_password = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, bo34):\n YKHO.logger = bo34\n YKHO.api_key = None",
"def FIMM(YKHO, NrzF: str, or2Z: str):\n YKHO.apiurl = NrzF\n YKHO.apidata = {'session': or2Z}\n YKHO.logger = G9jH.getLogger('JelasticAPIConnector')",
"def FIMM(YKHO, NrzF: str, or2Z: str) -> None:\n YKHO.japic = FfZb(apiurl=... | [
"0.692958",
"0.6923238",
"0.65970165",
"0.6545513",
"0.6508891",
"0.6506029",
"0.6503968",
"0.6501763",
"0.64685917",
"0.6459223",
"0.642725",
"0.6412494",
"0.6407641",
"0.6399998",
"0.6395515",
"0.63793707",
"0.637572",
"0.6371549",
"0.63694733",
"0.63364136",
"0.63325477",
... | 0.6479688 | 8 |
Returns the url to redirect the user to for user consent | def WjOp(YKHO, LfXz):
SZIX = {'redirect_uri': YKHO.loginUri, 'client_id': YKHO.clientId, 'response_type': 'code'}
if LfXz is not None:
SZIX['state'] = QIYp(dict(redirect=LfXz))
SZIX.update(YKHO.authUriAdditionalParams)
kXLH = sorted(SZIX.items(), key=lambda wEf2: wEf2[0])
return ntd0.succeed... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PMx9():\n _uqo = iCMW()\n AU45, bGrB = _uqo.authorization_url(prompt='consent')\n return AU45",
"def B1ZE():\n _uqo = i2pj.from_client_config(Yyrl, nUMN, redirect_uri='urn:ietf:wg:oauth:2.0:oob')\n AU45, bGrB = _uqo.authorization_url(prompt='consent')\n return AU45",
"def rbaP(YKHO):\n ... | [
"0.7646728",
"0.75925624",
"0.7170185",
"0.70468277",
"0.7004361",
"0.69389504",
"0.69258595",
"0.69148505",
"0.69010925",
"0.6896717",
"0.68901324",
"0.68833625",
"0.6882776",
"0.6867559",
"0.686157",
"0.6843916",
"0.6838331",
"0.68289477",
"0.68249255",
"0.6823097",
"0.6807... | 0.6273058 | 76 |
Read image file into numpy array (RGB) | def DZ0a(VfIt):
return QrM1.imread(VfIt) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5aE(Ux0P):\n from PIL import Image\n from matplotlib.image import pil_to_array\n with Image.open(Ux0P) as LNo8:\n return pil_to_array(LNo8)",
"def tsdv(Ux0P):\n j3Lh = XC5k.imread(Ux0P)\n d7Eb = j3Lh[:, :, ::-1]\n return d7Eb",
"def P4eI(Ux0P, neC1='RGB'):\n return oyIN.array(q... | [
"0.77728593",
"0.77717525",
"0.77632225",
"0.77466434",
"0.77445614",
"0.77364314",
"0.77172893",
"0.76899546",
"0.76338804",
"0.75901276",
"0.75770724",
"0.7574462",
"0.75532776",
"0.75021493",
"0.7487425",
"0.746403",
"0.746279",
"0.7430009",
"0.7430009",
"0.7425214",
"0.74... | 0.0 | -1 |