body_hash stringlengths 64 64 | body stringlengths 23 109k | docstring stringlengths 1 57k | path stringlengths 4 198 | name stringlengths 1 115 | repository_name stringlengths 7 111 | repository_stars float64 0 191k | lang stringclasses 1
value | body_without_docstring stringlengths 14 108k | unified stringlengths 45 133k |
|---|---|---|---|---|---|---|---|---|---|
8860e188554203beabc2e92904b07383ced04bc27175a2b983a3d2428e08dca6 | def updateMetaData(self):
'Override.'
return True | Override. | extra_foam/gui/ctrl_widgets/image_ctrl_widget.py | updateMetaData | zhujun98/EXtra-foam | 0 | python | def updateMetaData(self):
return True | def updateMetaData(self):
return True<|docstring|>Override.<|endoftext|> |
92c5bc7bf6fd086acf6ef6f428392d4aa0fbeff2f2b1b68343f9c9c58a9c179e | def loadMetaData(self):
'Override.'
pass | Override. | extra_foam/gui/ctrl_widgets/image_ctrl_widget.py | loadMetaData | zhujun98/EXtra-foam | 0 | python | def loadMetaData(self):
pass | def loadMetaData(self):
pass<|docstring|>Override.<|endoftext|> |
8bcaf35aad18c205c8843a7c974d0ec495dc273122840b869593f7b0245509ff | def is_new_to_wildlifelicensing(request=None):
'\n Verify request user holds minimum details to use Wildlife Licensing.\n '
from wildlifecompliance.management.securebase_manager import SecureBaseUtils
has_user_details = (True if (request.user.first_name and request.user.last_name and request.user.dob ... | Verify request user holds minimum details to use Wildlife Licensing. | wildlifecompliance/helpers.py | is_new_to_wildlifelicensing | jawaidm/wildlifecompliance | 1 | python | def is_new_to_wildlifelicensing(request=None):
'\n \n '
from wildlifecompliance.management.securebase_manager import SecureBaseUtils
has_user_details = (True if (request.user.first_name and request.user.last_name and request.user.dob and request.user.residential_address and (request.user.phone_number ... | def is_new_to_wildlifelicensing(request=None):
'\n \n '
from wildlifecompliance.management.securebase_manager import SecureBaseUtils
has_user_details = (True if (request.user.first_name and request.user.last_name and request.user.dob and request.user.residential_address and (request.user.phone_number ... |
52148cf684ca840ea83ead84c79c3d3ab1d734bd763c0d2c8b93b0145e76ef5d | def belongs_to(user, group_name):
'\n Check if the user belongs to the given group.\n :param user:\n :param group_name:\n :return:\n '
return user.groups.filter(name=group_name).exists() | Check if the user belongs to the given group.
:param user:
:param group_name:
:return: | wildlifecompliance/helpers.py | belongs_to | jawaidm/wildlifecompliance | 1 | python | def belongs_to(user, group_name):
'\n Check if the user belongs to the given group.\n :param user:\n :param group_name:\n :return:\n '
return user.groups.filter(name=group_name).exists() | def belongs_to(user, group_name):
'\n Check if the user belongs to the given group.\n :param user:\n :param group_name:\n :return:\n '
return user.groups.filter(name=group_name).exists()<|docstring|>Check if the user belongs to the given group.
:param user:
:param group_name:
:return:<|endoftext|... |
67228f2c2cf5d3d75a60644f25e7aa3d4e1a6cde496305efc5873b8ceb993a8d | def belongs_to_list(user, group_names):
'\n Check if the user belongs to the given list of groups.\n :param user:\n :param list_of_group_names:\n :return:\n '
return user.groups.filter(name__in=group_names).exists() | Check if the user belongs to the given list of groups.
:param user:
:param list_of_group_names:
:return: | wildlifecompliance/helpers.py | belongs_to_list | jawaidm/wildlifecompliance | 1 | python | def belongs_to_list(user, group_names):
'\n Check if the user belongs to the given list of groups.\n :param user:\n :param list_of_group_names:\n :return:\n '
return user.groups.filter(name__in=group_names).exists() | def belongs_to_list(user, group_names):
'\n Check if the user belongs to the given list of groups.\n :param user:\n :param list_of_group_names:\n :return:\n '
return user.groups.filter(name__in=group_names).exists()<|docstring|>Check if the user belongs to the given list of groups.
:param user:
:... |
84c23ecefe1a55b3030292926b89f5cf62b3ee0842180b48a6c48ea0769c347c | def is_wildlifecompliance_payment_officer(request):
'\n Check user for request has payment officer permissions.\n\n :return: boolean\n '
PAYMENTS_GROUP_NAME = 'Wildlife Compliance - Payment Officers'
is_payment_officer = (request.user.is_authenticated() and is_model_backend(request) and in_dbca_dom... | Check user for request has payment officer permissions.
:return: boolean | wildlifecompliance/helpers.py | is_wildlifecompliance_payment_officer | jawaidm/wildlifecompliance | 1 | python | def is_wildlifecompliance_payment_officer(request):
'\n Check user for request has payment officer permissions.\n\n :return: boolean\n '
PAYMENTS_GROUP_NAME = 'Wildlife Compliance - Payment Officers'
is_payment_officer = (request.user.is_authenticated() and is_model_backend(request) and in_dbca_dom... | def is_wildlifecompliance_payment_officer(request):
'\n Check user for request has payment officer permissions.\n\n :return: boolean\n '
PAYMENTS_GROUP_NAME = 'Wildlife Compliance - Payment Officers'
is_payment_officer = (request.user.is_authenticated() and is_model_backend(request) and in_dbca_dom... |
5d63dda6a1f505007a827594d95179399bc008d45a36a9e320856d424bb62584 | def is_reception(request):
'\n A check whether request is performed by Wildlife Licensing Reception.\n '
from wildlifecompliance.components.licences.models import WildlifeLicenceReceptionEmail
is_reception_email = WildlifeLicenceReceptionEmail.objects.filter(email=request.user.email).exists()
retu... | A check whether request is performed by Wildlife Licensing Reception. | wildlifecompliance/helpers.py | is_reception | jawaidm/wildlifecompliance | 1 | python | def is_reception(request):
'\n \n '
from wildlifecompliance.components.licences.models import WildlifeLicenceReceptionEmail
is_reception_email = WildlifeLicenceReceptionEmail.objects.filter(email=request.user.email).exists()
return (request.user.is_authenticated() and is_reception_email) | def is_reception(request):
'\n \n '
from wildlifecompliance.components.licences.models import WildlifeLicenceReceptionEmail
is_reception_email = WildlifeLicenceReceptionEmail.objects.filter(email=request.user.email).exists()
return (request.user.is_authenticated() and is_reception_email)<|docstrin... |
24f7f1ffebd025f015802b0541452979802efba5d2d64f4d89b43fa06ee64677 | @cli.group('replicas')
@click.option('--count', type=int, expose_value=True, help='Number of replicas the indices should have.')
@click.pass_context
def replicas(ctx, count):
'Replica Count Per-shard'
if (count == None):
click.echo('{0}'.format(ctx.get_help()))
click.echo(click.style('Missing re... | Replica Count Per-shard | curator/cli/replicas.py | replicas | ferki/curator | 0 | python | @cli.group('replicas')
@click.option('--count', type=int, expose_value=True, help='Number of replicas the indices should have.')
@click.pass_context
def replicas(ctx, count):
if (count == None):
click.echo('{0}'.format(ctx.get_help()))
click.echo(click.style('Missing required parameter --count'... | @cli.group('replicas')
@click.option('--count', type=int, expose_value=True, help='Number of replicas the indices should have.')
@click.pass_context
def replicas(ctx, count):
if (count == None):
click.echo('{0}'.format(ctx.get_help()))
click.echo(click.style('Missing required parameter --count'... |
1e5bd9f5db73e705ee70c161737987ecec4b2c05ec2a4ca141c7074710a085a5 | def __init__(__self__, *, family: pulumi.Input[str], description: Optional[pulumi.Input[str]]=None, name: Optional[pulumi.Input[str]]=None, name_prefix: Optional[pulumi.Input[str]]=None, parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterParameterGroupParameterArgs']]]]=None, tags: Optional[pulumi.Input[Ma... | The set of arguments for constructing a ClusterParameterGroup resource.
:param pulumi.Input[str] family: The family of the documentDB cluster parameter group.
:param pulumi.Input[str] description: The description of the documentDB cluster parameter group. Defaults to "Managed by Pulumi".
:param pulumi.Input[str] name: ... | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | __init__ | jen20/pulumi-aws | 0 | python | def __init__(__self__, *, family: pulumi.Input[str], description: Optional[pulumi.Input[str]]=None, name: Optional[pulumi.Input[str]]=None, name_prefix: Optional[pulumi.Input[str]]=None, parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterParameterGroupParameterArgs']]]]=None, tags: Optional[pulumi.Input[Ma... | def __init__(__self__, *, family: pulumi.Input[str], description: Optional[pulumi.Input[str]]=None, name: Optional[pulumi.Input[str]]=None, name_prefix: Optional[pulumi.Input[str]]=None, parameters: Optional[pulumi.Input[Sequence[pulumi.Input['ClusterParameterGroupParameterArgs']]]]=None, tags: Optional[pulumi.Input[Ma... |
fcebe3e5868e3971f8220d829c52637b53042fccdf9a1c0bd3495f5f15ce642d | @property
@pulumi.getter
def family(self) -> pulumi.Input[str]:
'\n The family of the documentDB cluster parameter group.\n '
return pulumi.get(self, 'family') | The family of the documentDB cluster parameter group. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | family | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def family(self) -> pulumi.Input[str]:
'\n \n '
return pulumi.get(self, 'family') | @property
@pulumi.getter
def family(self) -> pulumi.Input[str]:
'\n \n '
return pulumi.get(self, 'family')<|docstring|>The family of the documentDB cluster parameter group.<|endoftext|> |
dc3888658fdd6360c92bae24f944e137469b0c94d211e25a7e6ddee476dc142c | @property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
'\n The description of the documentDB cluster parameter group. Defaults to "Managed by Pulumi".\n '
return pulumi.get(self, 'description') | The description of the documentDB cluster parameter group. Defaults to "Managed by Pulumi". | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | description | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'description') | @property
@pulumi.getter
def description(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'description')<|docstring|>The description of the documentDB cluster parameter group. Defaults to "Managed by Pulumi".<|endoftext|> |
beb351adfc8efcbd2dd2b6955740f14de3409cdcc537231abc06ae8154b219ce | @property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
'\n The name of the documentDB parameter.\n '
return pulumi.get(self, 'name') | The name of the documentDB parameter. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | name | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'name') | @property
@pulumi.getter
def name(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'name')<|docstring|>The name of the documentDB parameter.<|endoftext|> |
f1b492a53529f0cb4485884fa763ebcbf854a87cd8b4f10afa7904a89fe340d5 | @property
@pulumi.getter(name='namePrefix')
def name_prefix(self) -> Optional[pulumi.Input[str]]:
'\n Creates a unique name beginning with the specified prefix. Conflicts with `name`.\n '
return pulumi.get(self, 'name_prefix') | Creates a unique name beginning with the specified prefix. Conflicts with `name`. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | name_prefix | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter(name='namePrefix')
def name_prefix(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'name_prefix') | @property
@pulumi.getter(name='namePrefix')
def name_prefix(self) -> Optional[pulumi.Input[str]]:
'\n \n '
return pulumi.get(self, 'name_prefix')<|docstring|>Creates a unique name beginning with the specified prefix. Conflicts with `name`.<|endoftext|> |
4c9a40aa5e3fdc2b064cf484395734e9ca2c9ca62655aa4b8e19fd755d430757 | @property
@pulumi.getter
def parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterParameterGroupParameterArgs']]]]:
'\n A list of documentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.\n '
return pulumi.get(self, ... | A list of documentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | parameters | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterParameterGroupParameterArgs']]]]:
'\n \n '
return pulumi.get(self, 'parameters') | @property
@pulumi.getter
def parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['ClusterParameterGroupParameterArgs']]]]:
'\n \n '
return pulumi.get(self, 'parameters')<|docstring|>A list of documentDB parameters to apply. Setting parameters to system default values may show a differe... |
93f559ff90e2f960b3004f862bd462633ee849c089398c8d34d32d46319efd91 | @property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n A map of tags to assign to the resource.\n '
return pulumi.get(self, 'tags') | A map of tags to assign to the resource. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | tags | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n \n '
return pulumi.get(self, 'tags') | @property
@pulumi.getter
def tags(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]:
'\n \n '
return pulumi.get(self, 'tags')<|docstring|>A map of tags to assign to the resource.<|endoftext|> |
f9f16ac3d72edba6e07a8bfd68aa3efa902555d1dfa42040453f18738b2bd0d1 | @overload
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, description: Optional[pulumi.Input[str]]=None, family: Optional[pulumi.Input[str]]=None, name: Optional[pulumi.Input[str]]=None, name_prefix: Optional[pulumi.Input[str]]=None, parameters: Optional[pulumi.Input[Sequence[pul... | Manages a DocumentDB Cluster Parameter Group
## Example Usage
```python
import pulumi
import pulumi_aws as aws
example = aws.docdb.ClusterParameterGroup("example",
description="docdb cluster parameter group",
family="docdb3.6",
parameters=[aws.docdb.ClusterParameterGroupParameterArgs(
name="tls",... | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | __init__ | jen20/pulumi-aws | 0 | python | @overload
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, description: Optional[pulumi.Input[str]]=None, family: Optional[pulumi.Input[str]]=None, name: Optional[pulumi.Input[str]]=None, name_prefix: Optional[pulumi.Input[str]]=None, parameters: Optional[pulumi.Input[Sequence[pul... | @overload
def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, description: Optional[pulumi.Input[str]]=None, family: Optional[pulumi.Input[str]]=None, name: Optional[pulumi.Input[str]]=None, name_prefix: Optional[pulumi.Input[str]]=None, parameters: Optional[pulumi.Input[Sequence[pul... |
d608c30d22baac5fd65395c0c9bd56f561be79e52eefc991080e6043499cb439 | @overload
def __init__(__self__, resource_name: str, args: ClusterParameterGroupArgs, opts: Optional[pulumi.ResourceOptions]=None):
'\n Manages a DocumentDB Cluster Parameter Group\n\n ## Example Usage\n\n ```python\n import pulumi\n import pulumi_aws as aws\n\n example = a... | Manages a DocumentDB Cluster Parameter Group
## Example Usage
```python
import pulumi
import pulumi_aws as aws
example = aws.docdb.ClusterParameterGroup("example",
description="docdb cluster parameter group",
family="docdb3.6",
parameters=[aws.docdb.ClusterParameterGroupParameterArgs(
name="tls",... | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | __init__ | jen20/pulumi-aws | 0 | python | @overload
def __init__(__self__, resource_name: str, args: ClusterParameterGroupArgs, opts: Optional[pulumi.ResourceOptions]=None):
'\n Manages a DocumentDB Cluster Parameter Group\n\n ## Example Usage\n\n ```python\n import pulumi\n import pulumi_aws as aws\n\n example = a... | @overload
def __init__(__self__, resource_name: str, args: ClusterParameterGroupArgs, opts: Optional[pulumi.ResourceOptions]=None):
'\n Manages a DocumentDB Cluster Parameter Group\n\n ## Example Usage\n\n ```python\n import pulumi\n import pulumi_aws as aws\n\n example = a... |
a05fe3eeb243687e88e4101e0d6e83409eeb70b640c9d98c9ada5ed2b226d088 | @staticmethod
def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None, arn: Optional[pulumi.Input[str]]=None, description: Optional[pulumi.Input[str]]=None, family: Optional[pulumi.Input[str]]=None, name: Optional[pulumi.Input[str]]=None, name_prefix: Optional[pulumi.Input[str]]=N... | Get an existing ClusterParameterGroup resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opt... | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | get | jen20/pulumi-aws | 0 | python | @staticmethod
def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None, arn: Optional[pulumi.Input[str]]=None, description: Optional[pulumi.Input[str]]=None, family: Optional[pulumi.Input[str]]=None, name: Optional[pulumi.Input[str]]=None, name_prefix: Optional[pulumi.Input[str]]=N... | @staticmethod
def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None, arn: Optional[pulumi.Input[str]]=None, description: Optional[pulumi.Input[str]]=None, family: Optional[pulumi.Input[str]]=None, name: Optional[pulumi.Input[str]]=None, name_prefix: Optional[pulumi.Input[str]]=N... |
9659c08d4406d0d16c7b4155b88ad71bc71e6de666cb74ccbf8db484bf1f33af | @property
@pulumi.getter
def arn(self) -> pulumi.Output[str]:
'\n The ARN of the documentDB cluster parameter group.\n '
return pulumi.get(self, 'arn') | The ARN of the documentDB cluster parameter group. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | arn | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def arn(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'arn') | @property
@pulumi.getter
def arn(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'arn')<|docstring|>The ARN of the documentDB cluster parameter group.<|endoftext|> |
46c44c2c1e15ef5bc8d2772ca06c909cfd9474f090a1b61b67a3d952258a22b6 | @property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
'\n The description of the documentDB cluster parameter group. Defaults to "Managed by Pulumi".\n '
return pulumi.get(self, 'description') | The description of the documentDB cluster parameter group. Defaults to "Managed by Pulumi". | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | description | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
'\n \n '
return pulumi.get(self, 'description') | @property
@pulumi.getter
def description(self) -> pulumi.Output[Optional[str]]:
'\n \n '
return pulumi.get(self, 'description')<|docstring|>The description of the documentDB cluster parameter group. Defaults to "Managed by Pulumi".<|endoftext|> |
a614c72469d84521879d8754a8a13f0373741eaeae2b57851425eaca3dfa5d06 | @property
@pulumi.getter
def family(self) -> pulumi.Output[str]:
'\n The family of the documentDB cluster parameter group.\n '
return pulumi.get(self, 'family') | The family of the documentDB cluster parameter group. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | family | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def family(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'family') | @property
@pulumi.getter
def family(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'family')<|docstring|>The family of the documentDB cluster parameter group.<|endoftext|> |
5d92bbb764d6f52e07844ffc9205465a5dd29ed3e442c23b6b424efb3e689547 | @property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
'\n The name of the documentDB parameter.\n '
return pulumi.get(self, 'name') | The name of the documentDB parameter. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | name | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'name') | @property
@pulumi.getter
def name(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'name')<|docstring|>The name of the documentDB parameter.<|endoftext|> |
5ea02d2cfd78240c2047d5e469988b82276474d9b14bac6004d7a098437918c5 | @property
@pulumi.getter(name='namePrefix')
def name_prefix(self) -> pulumi.Output[str]:
'\n Creates a unique name beginning with the specified prefix. Conflicts with `name`.\n '
return pulumi.get(self, 'name_prefix') | Creates a unique name beginning with the specified prefix. Conflicts with `name`. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | name_prefix | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter(name='namePrefix')
def name_prefix(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'name_prefix') | @property
@pulumi.getter(name='namePrefix')
def name_prefix(self) -> pulumi.Output[str]:
'\n \n '
return pulumi.get(self, 'name_prefix')<|docstring|>Creates a unique name beginning with the specified prefix. Conflicts with `name`.<|endoftext|> |
c05c9de4e1e4495324612c6e776008dfd69ffdb111db17076763f3bf5e29d492 | @property
@pulumi.getter
def parameters(self) -> pulumi.Output[Optional[Sequence['outputs.ClusterParameterGroupParameter']]]:
'\n A list of documentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources.\n '
return pulumi.get(self, 'paramete... | A list of documentDB parameters to apply. Setting parameters to system default values may show a difference on imported resources. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | parameters | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def parameters(self) -> pulumi.Output[Optional[Sequence['outputs.ClusterParameterGroupParameter']]]:
'\n \n '
return pulumi.get(self, 'parameters') | @property
@pulumi.getter
def parameters(self) -> pulumi.Output[Optional[Sequence['outputs.ClusterParameterGroupParameter']]]:
'\n \n '
return pulumi.get(self, 'parameters')<|docstring|>A list of documentDB parameters to apply. Setting parameters to system default values may show a difference on im... |
f00e5ea8a558dd35375d601d76efbd8ba3270f53689afc47a3b121fae9db0f54 | @property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[(str, str)]]]:
'\n A map of tags to assign to the resource.\n '
return pulumi.get(self, 'tags') | A map of tags to assign to the resource. | sdk/python/pulumi_aws/docdb/cluster_parameter_group.py | tags | jen20/pulumi-aws | 0 | python | @property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[(str, str)]]]:
'\n \n '
return pulumi.get(self, 'tags') | @property
@pulumi.getter
def tags(self) -> pulumi.Output[Optional[Mapping[(str, str)]]]:
'\n \n '
return pulumi.get(self, 'tags')<|docstring|>A map of tags to assign to the resource.<|endoftext|> |
4f59022283ca279ed2a32c8100aa6a503878e2138654fe687fbe4d7b41ff4c22 | def get_row(m, i):
' Returns array of 9 SudokuSets. '
return m[(i * 9):((i * 9) + 9)] | Returns array of 9 SudokuSets. | solver.py | get_row | joneser005/sudoku | 0 | python | def get_row(m, i):
' '
return m[(i * 9):((i * 9) + 9)] | def get_row(m, i):
' '
return m[(i * 9):((i * 9) + 9)]<|docstring|>Returns array of 9 SudokuSets.<|endoftext|> |
ac418a6db96f161c95a71d00f90de96eb7a1326b96ac6a96ff8d401a3f7fbf71 | def get_col(m, i):
' Returns array of 9 SudokuSets. '
result = []
for j in range(9):
result.append(m[((j * 9) + i)])
return result | Returns array of 9 SudokuSets. | solver.py | get_col | joneser005/sudoku | 0 | python | def get_col(m, i):
' '
result = []
for j in range(9):
result.append(m[((j * 9) + i)])
return result | def get_col(m, i):
' '
result = []
for j in range(9):
result.append(m[((j * 9) + i)])
return result<|docstring|>Returns array of 9 SudokuSets.<|endoftext|> |
27d3a49a46f215562ab9ddf953379e5a3df889f2c523e13160abe61afec6d94f | def get_box(m, bi):
' \n Returns array of 9 SudokuSets.\n \n 0 1 2\n 3 4 5\n 6 7 8\n x offset = (i%3)*3\n y offset = int(i/3) # possible values are 0,1,2\n m[0] => (0-2)+0 + (0-2)+9 + (0-2)+18\n m[2] => (0-2)+6+(0*9) + (0-2)+6+9 + (0-2)+6+18\n m[4] => (0-2)+0 + (0-2)+9 + (0-2)+18\n ... | Returns array of 9 SudokuSets.
0 1 2
3 4 5
6 7 8
x offset = (i%3)*3
y offset = int(i/3) # possible values are 0,1,2
m[0] => (0-2)+0 + (0-2)+9 + (0-2)+18
m[2] => (0-2)+6+(0*9) + (0-2)+6+9 + (0-2)+6+18
m[4] => (0-2)+0 + (0-2)+9 + (0-2)+18
m[i] => | solver.py | get_box | joneser005/sudoku | 0 | python | def get_box(m, bi):
' \n Returns array of 9 SudokuSets.\n \n 0 1 2\n 3 4 5\n 6 7 8\n x offset = (i%3)*3\n y offset = int(i/3) # possible values are 0,1,2\n m[0] => (0-2)+0 + (0-2)+9 + (0-2)+18\n m[2] => (0-2)+6+(0*9) + (0-2)+6+9 + (0-2)+6+18\n m[4] => (0-2)+0 + (0-2)+9 + (0-2)+18\n ... | def get_box(m, bi):
' \n Returns array of 9 SudokuSets.\n \n 0 1 2\n 3 4 5\n 6 7 8\n x offset = (i%3)*3\n y offset = int(i/3) # possible values are 0,1,2\n m[0] => (0-2)+0 + (0-2)+9 + (0-2)+18\n m[2] => (0-2)+6+(0*9) + (0-2)+6+9 + (0-2)+6+18\n m[4] => (0-2)+0 + (0-2)+9 + (0-2)+18\n ... |
3b83cd183d9e81ca404d720c23278dbb385955e4ccbdd7ab055d8460e5905cfc | def makekey(s):
" Returns string from set of ints, ordered low to high.\n Example: if set is (5,2,6), result will be '256'. "
so = sorted(s)
s = ''
for x in so:
s += str(x)
return s | Returns string from set of ints, ordered low to high.
Example: if set is (5,2,6), result will be '256'. | solver.py | makekey | joneser005/sudoku | 0 | python | def makekey(s):
" Returns string from set of ints, ordered low to high.\n Example: if set is (5,2,6), result will be '256'. "
so = sorted(s)
s =
for x in so:
s += str(x)
return s | def makekey(s):
" Returns string from set of ints, ordered low to high.\n Example: if set is (5,2,6), result will be '256'. "
so = sorted(s)
s =
for x in so:
s += str(x)
return s<|docstring|>Returns string from set of ints, ordered low to high.
Example: if set is (5,2,6), result will be ... |
76e4d4d59165acf313a12f565719305d52d189bd638976a7354d88f52130a7c8 | def get_symcc_build_dir(target_directory):
'Return path to uninstrumented target directory.'
return os.path.join(target_directory, 'uninstrumented') | Return path to uninstrumented target directory. | fuzzers/symcc_aflplusplus_single/fuzzer.py | get_symcc_build_dir | andreafioraldi/fuzzbench | 800 | python | def get_symcc_build_dir(target_directory):
return os.path.join(target_directory, 'uninstrumented') | def get_symcc_build_dir(target_directory):
return os.path.join(target_directory, 'uninstrumented')<|docstring|>Return path to uninstrumented target directory.<|endoftext|> |
97847e273ab9e3f0ad29bf400930f1cb27b4055fb1e98437468e6f7dc5b3975d | def build():
'Build an AFL version and SymCC version of the benchmark'
print('Step 1: Building with AFL and SymCC')
build_directory = os.environ['OUT']
src = os.getenv('SRC')
work = os.getenv('WORK')
with utils.restore_directory(src), utils.restore_directory(work):
aflplusplus_fuzzer.bui... | Build an AFL version and SymCC version of the benchmark | fuzzers/symcc_aflplusplus_single/fuzzer.py | build | andreafioraldi/fuzzbench | 800 | python | def build():
print('Step 1: Building with AFL and SymCC')
build_directory = os.environ['OUT']
src = os.getenv('SRC')
work = os.getenv('WORK')
with utils.restore_directory(src), utils.restore_directory(work):
aflplusplus_fuzzer.build('tracepc', 'symcc')
print('Step 2: Completed AFL b... | def build():
print('Step 1: Building with AFL and SymCC')
build_directory = os.environ['OUT']
src = os.getenv('SRC')
work = os.getenv('WORK')
with utils.restore_directory(src), utils.restore_directory(work):
aflplusplus_fuzzer.build('tracepc', 'symcc')
print('Step 2: Completed AFL b... |
d71050f363eb32dfa93ede9a74fcf180c04bf61582e54ad3374392c1662fd497 | def launch_afl_thread(input_corpus, output_corpus, target_binary, additional_flags):
' Simple wrapper for running AFL. '
afl_thread = threading.Thread(target=afl_fuzzer.run_afl_fuzz, args=(input_corpus, output_corpus, target_binary, additional_flags))
afl_thread.start()
return afl_thread | Simple wrapper for running AFL. | fuzzers/symcc_aflplusplus_single/fuzzer.py | launch_afl_thread | andreafioraldi/fuzzbench | 800 | python | def launch_afl_thread(input_corpus, output_corpus, target_binary, additional_flags):
' '
afl_thread = threading.Thread(target=afl_fuzzer.run_afl_fuzz, args=(input_corpus, output_corpus, target_binary, additional_flags))
afl_thread.start()
return afl_thread | def launch_afl_thread(input_corpus, output_corpus, target_binary, additional_flags):
' '
afl_thread = threading.Thread(target=afl_fuzzer.run_afl_fuzz, args=(input_corpus, output_corpus, target_binary, additional_flags))
afl_thread.start()
return afl_thread<|docstring|>Simple wrapper for running AFL.<|e... |
246ea4c68e6915b834fb2e3bfdb24a785d7f837959131c33cb1d2c4228cc408d | def fuzz(input_corpus, output_corpus, target_binary):
'\n Launches a master and a secondary instance of AFL, as well as\n the symcc helper.\n '
target_binary_dir = os.path.dirname(target_binary)
symcc_workdir = get_symcc_build_dir(target_binary_dir)
target_binary_name = os.path.basename(target_... | Launches a master and a secondary instance of AFL, as well as
the symcc helper. | fuzzers/symcc_aflplusplus_single/fuzzer.py | fuzz | andreafioraldi/fuzzbench | 800 | python | def fuzz(input_corpus, output_corpus, target_binary):
'\n Launches a master and a secondary instance of AFL, as well as\n the symcc helper.\n '
target_binary_dir = os.path.dirname(target_binary)
symcc_workdir = get_symcc_build_dir(target_binary_dir)
target_binary_name = os.path.basename(target_... | def fuzz(input_corpus, output_corpus, target_binary):
'\n Launches a master and a secondary instance of AFL, as well as\n the symcc helper.\n '
target_binary_dir = os.path.dirname(target_binary)
symcc_workdir = get_symcc_build_dir(target_binary_dir)
target_binary_name = os.path.basename(target_... |
9c5dac2aa26ae2b03d437be07836f5e28905597f352ac1fbaa4977a803735547 | def __init__(self, jsondict=None, strict=True):
' Initialize all valid properties.\n\n :raises: FHIRValidationError on validation errors, unless strict is False\n :param dict jsondict: A JSON dictionary to use for initialization\n :param bool strict: If True (the default), invalid variables wil... | Initialize all valid properties.
:raises: FHIRValidationError on validation errors, unless strict is False
:param dict jsondict: A JSON dictionary to use for initialization
:param bool strict: If True (the default), invalid variables will raise a TypeError | fhir/resources/STU3/coverage.py | __init__ | mmabey/fhir.resources | 0 | python | def __init__(self, jsondict=None, strict=True):
' Initialize all valid properties.\n\n :raises: FHIRValidationError on validation errors, unless strict is False\n :param dict jsondict: A JSON dictionary to use for initialization\n :param bool strict: If True (the default), invalid variables wil... | def __init__(self, jsondict=None, strict=True):
' Initialize all valid properties.\n\n :raises: FHIRValidationError on validation errors, unless strict is False\n :param dict jsondict: A JSON dictionary to use for initialization\n :param bool strict: If True (the default), invalid variables wil... |
29e33034240a75ad2541d2a3a690949c9fcae485e7f11011e6b4af1c304c74ef | def __init__(self, jsondict=None, strict=True):
' Initialize all valid properties.\n\n :raises: FHIRValidationError on validation errors, unless strict is False\n :param dict jsondict: A JSON dictionary to use for initialization\n :param bool strict: If True (the default), invalid variables wil... | Initialize all valid properties.
:raises: FHIRValidationError on validation errors, unless strict is False
:param dict jsondict: A JSON dictionary to use for initialization
:param bool strict: If True (the default), invalid variables will raise a TypeError | fhir/resources/STU3/coverage.py | __init__ | mmabey/fhir.resources | 0 | python | def __init__(self, jsondict=None, strict=True):
' Initialize all valid properties.\n\n :raises: FHIRValidationError on validation errors, unless strict is False\n :param dict jsondict: A JSON dictionary to use for initialization\n :param bool strict: If True (the default), invalid variables wil... | def __init__(self, jsondict=None, strict=True):
' Initialize all valid properties.\n\n :raises: FHIRValidationError on validation errors, unless strict is False\n :param dict jsondict: A JSON dictionary to use for initialization\n :param bool strict: If True (the default), invalid variables wil... |
90958978df33d7f3cca144d265757f2d604beca30ccbb11154ab77cfab1f3af0 | def register_message(pt_type, parser):
'Register new message and a new handler.'
if (pt_type not in PT_TYPES):
PT_TYPES[pt_type] = parser
if (pt_type not in PT_TYPES_HANDLERS):
PT_TYPES_HANDLERS[pt_type] = [] | Register new message and a new handler. | empower/managers/ranmanager/vbsp/__init__.py | register_message | 5g-empower/empower-runtime | 52 | python | def register_message(pt_type, parser):
if (pt_type not in PT_TYPES):
PT_TYPES[pt_type] = parser
if (pt_type not in PT_TYPES_HANDLERS):
PT_TYPES_HANDLERS[pt_type] = [] | def register_message(pt_type, parser):
if (pt_type not in PT_TYPES):
PT_TYPES[pt_type] = parser
if (pt_type not in PT_TYPES_HANDLERS):
PT_TYPES_HANDLERS[pt_type] = []<|docstring|>Register new message and a new handler.<|endoftext|> |
ee675e1549b029b1d5c3b4a52fc8754a83380a6fc62ac1bca288acb1761fb91f | def register_callbacks(app, callback_str='handle_'):
'Register callbacks.'
for pt_type in PT_TYPES_HANDLERS:
if (not PT_TYPES[pt_type]):
handler_name = (callback_str + pt_type)
else:
handler_name = (callback_str + PT_TYPES[pt_type][1])
if hasattr(app, handler_name... | Register callbacks. | empower/managers/ranmanager/vbsp/__init__.py | register_callbacks | 5g-empower/empower-runtime | 52 | python | def register_callbacks(app, callback_str='handle_'):
for pt_type in PT_TYPES_HANDLERS:
if (not PT_TYPES[pt_type]):
handler_name = (callback_str + pt_type)
else:
handler_name = (callback_str + PT_TYPES[pt_type][1])
if hasattr(app, handler_name):
handle... | def register_callbacks(app, callback_str='handle_'):
for pt_type in PT_TYPES_HANDLERS:
if (not PT_TYPES[pt_type]):
handler_name = (callback_str + pt_type)
else:
handler_name = (callback_str + PT_TYPES[pt_type][1])
if hasattr(app, handler_name):
handle... |
253505f077c237184df5ca33d3a201b83a6a5a31368e24d1dd90f192a09dc8ec | def unregister_callbacks(app, callback_str='handle_'):
'Unregister callbacks.'
for pt_type in PT_TYPES_HANDLERS:
if (not PT_TYPES[pt_type]):
handler_name = (callback_str + pt_type)
else:
handler_name = (callback_str + PT_TYPES[pt_type][1])
if hasattr(app, handler_... | Unregister callbacks. | empower/managers/ranmanager/vbsp/__init__.py | unregister_callbacks | 5g-empower/empower-runtime | 52 | python | def unregister_callbacks(app, callback_str='handle_'):
for pt_type in PT_TYPES_HANDLERS:
if (not PT_TYPES[pt_type]):
handler_name = (callback_str + pt_type)
else:
handler_name = (callback_str + PT_TYPES[pt_type][1])
if hasattr(app, handler_name):
hand... | def unregister_callbacks(app, callback_str='handle_'):
for pt_type in PT_TYPES_HANDLERS:
if (not PT_TYPES[pt_type]):
handler_name = (callback_str + pt_type)
else:
handler_name = (callback_str + PT_TYPES[pt_type][1])
if hasattr(app, handler_name):
hand... |
6793f447409330a962753f9f90e5a95e8dd6553e168087ef39499a540b87042c | def register_callback(pt_type, handler):
'Register new message and a new handler.'
if (pt_type not in PT_TYPES):
raise KeyError('Packet type %u undefined')
if (pt_type not in PT_TYPES_HANDLERS):
PT_TYPES_HANDLERS[pt_type] = []
PT_TYPES_HANDLERS[pt_type].append(handler) | Register new message and a new handler. | empower/managers/ranmanager/vbsp/__init__.py | register_callback | 5g-empower/empower-runtime | 52 | python | def register_callback(pt_type, handler):
if (pt_type not in PT_TYPES):
raise KeyError('Packet type %u undefined')
if (pt_type not in PT_TYPES_HANDLERS):
PT_TYPES_HANDLERS[pt_type] = []
PT_TYPES_HANDLERS[pt_type].append(handler) | def register_callback(pt_type, handler):
if (pt_type not in PT_TYPES):
raise KeyError('Packet type %u undefined')
if (pt_type not in PT_TYPES_HANDLERS):
PT_TYPES_HANDLERS[pt_type] = []
PT_TYPES_HANDLERS[pt_type].append(handler)<|docstring|>Register new message and a new handler.<|endoft... |
438afff592d6b53d8569d7bed60150716583f93b7e9c96a9779f7d25fce429ba | def unregister_callback(pt_type, handler):
'Register new message and a new handler.'
if (pt_type not in PT_TYPES):
raise KeyError('Packet type %u undefined')
if (pt_type not in PT_TYPES_HANDLERS):
return
PT_TYPES_HANDLERS[pt_type].remove(handler) | Register new message and a new handler. | empower/managers/ranmanager/vbsp/__init__.py | unregister_callback | 5g-empower/empower-runtime | 52 | python | def unregister_callback(pt_type, handler):
if (pt_type not in PT_TYPES):
raise KeyError('Packet type %u undefined')
if (pt_type not in PT_TYPES_HANDLERS):
return
PT_TYPES_HANDLERS[pt_type].remove(handler) | def unregister_callback(pt_type, handler):
if (pt_type not in PT_TYPES):
raise KeyError('Packet type %u undefined')
if (pt_type not in PT_TYPES_HANDLERS):
return
PT_TYPES_HANDLERS[pt_type].remove(handler)<|docstring|>Register new message and a new handler.<|endoftext|> |
e11fcb0bb1f0d8f62795221aea4939f547a4156a24cdba60d412c2444033fe0d | def decode_msg(msg_type, crud_result):
'Return the tuple (msg_type, crud_result).'
if (int(msg_type) == MSG_TYPE_REQUEST):
msg_type_str = 'request'
if (crud_result == OP_UNDEFINED):
crud_result_str = 'undefined'
elif (crud_result == OP_CREATE):
crud_result_str = '... | Return the tuple (msg_type, crud_result). | empower/managers/ranmanager/vbsp/__init__.py | decode_msg | 5g-empower/empower-runtime | 52 | python | def decode_msg(msg_type, crud_result):
if (int(msg_type) == MSG_TYPE_REQUEST):
msg_type_str = 'request'
if (crud_result == OP_UNDEFINED):
crud_result_str = 'undefined'
elif (crud_result == OP_CREATE):
crud_result_str = 'create'
elif (crud_result == OP_UPD... | def decode_msg(msg_type, crud_result):
if (int(msg_type) == MSG_TYPE_REQUEST):
msg_type_str = 'request'
if (crud_result == OP_UNDEFINED):
crud_result_str = 'undefined'
elif (crud_result == OP_CREATE):
crud_result_str = 'create'
elif (crud_result == OP_UPD... |
ee608ebada079a6962348733cbe7bef52527145b6ce8aaa884d9ed4cdd5afca3 | @cli.command()
def status():
'Show status information for all available devices.' | Show status information for all available devices. | projects/clusterctrl/src/python/clusterctrl/__main__.py | status | arrdem/source | 4 | python | @cli.command()
def status():
| @cli.command()
def status():
<|docstring|>Show status information for all available devices.<|endoftext|> |
0ec8ac587de3e93f8c24706514d968d103c2ff8df68e0d76c6eb5f7260580bb2 | @cli.command()
def maxpi():
'Show the number of available/attached Pis.' | Show the number of available/attached Pis. | projects/clusterctrl/src/python/clusterctrl/__main__.py | maxpi | arrdem/source | 4 | python | @cli.command()
def maxpi():
| @cli.command()
def maxpi():
<|docstring|>Show the number of available/attached Pis.<|endoftext|> |
bb531def3c5caec36fb304731b5ed08ca47608ed5ea5598c2f2d39c286042dbb | @cli.command()
def init():
'Init ClusterHAT' | Init ClusterHAT | projects/clusterctrl/src/python/clusterctrl/__main__.py | init | arrdem/source | 4 | python | @cli.command()
def init():
| @cli.command()
def init():
<|docstring|>Init ClusterHAT<|endoftext|> |
d6fbb6b78a33dc076f9a2ee8798144e08ca31e30bf9d9a4658ccae08785dad2d | def recommend(self, full_graph, K, h_user, h_item):
'\n Return a (n_user, K) matrix of recommended items for each user\n '
graph_slice = full_graph.edge_type_subgraph([self.user_to_item_etype])
n_users = full_graph.number_of_nodes(self.user_ntype)
latest_interactions = dgl.sampling.select_... | Return a (n_user, K) matrix of recommended items for each user | examples/pytorch/pinsage/evaluation.py | recommend | alexpod1000/dgl | 9,516 | python | def recommend(self, full_graph, K, h_user, h_item):
'\n \n '
graph_slice = full_graph.edge_type_subgraph([self.user_to_item_etype])
n_users = full_graph.number_of_nodes(self.user_ntype)
latest_interactions = dgl.sampling.select_topk(graph_slice, 1, self.timestamp, edge_dir='out')
(user... | def recommend(self, full_graph, K, h_user, h_item):
'\n \n '
graph_slice = full_graph.edge_type_subgraph([self.user_to_item_etype])
n_users = full_graph.number_of_nodes(self.user_ntype)
latest_interactions = dgl.sampling.select_topk(graph_slice, 1, self.timestamp, edge_dir='out')
(user... |
69b0b44ef2013d55d20f35b3326cc92ffe4276da98f0ea1310fa7068b49e3e4b | def is_only_embed(maybe_embeds):
'\n Checks whether the given value is a `tuple` or `list` containing only `embed-like`-s.\n \n Parameters\n ----------\n maybe_embeds : (`tuple` or `list`) of `EmbedBase` or `Any`\n The value to check whether is a `tuple` or `list` containing only `embed-like`-... | Checks whether the given value is a `tuple` or `list` containing only `embed-like`-s.
Parameters
----------
maybe_embeds : (`tuple` or `list`) of `EmbedBase` or `Any`
The value to check whether is a `tuple` or `list` containing only `embed-like`-s.
Returns
-------
is_only_embed : `bool` | hata/ext/slash/responding.py | is_only_embed | asleep-cult/hata | 0 | python | def is_only_embed(maybe_embeds):
'\n Checks whether the given value is a `tuple` or `list` containing only `embed-like`-s.\n \n Parameters\n ----------\n maybe_embeds : (`tuple` or `list`) of `EmbedBase` or `Any`\n The value to check whether is a `tuple` or `list` containing only `embed-like`-... | def is_only_embed(maybe_embeds):
'\n Checks whether the given value is a `tuple` or `list` containing only `embed-like`-s.\n \n Parameters\n ----------\n maybe_embeds : (`tuple` or `list`) of `EmbedBase` or `Any`\n The value to check whether is a `tuple` or `list` containing only `embed-like`-... |
8026955ea6a04042dfeb0edb9559c9a118a3706c22935a7f70718f072806b055 | async def get_request_coros(client, interaction_event, show_for_invoking_user_only, response):
'\n Gets request coroutine after an output from a command coroutine. Might return `None` if there is nothing to send.\n \n This function is a coroutine generator, which should be ued inside of an async for loop.\... | Gets request coroutine after an output from a command coroutine. Might return `None` if there is nothing to send.
This function is a coroutine generator, which should be ued inside of an async for loop.
Parameters
----------
client : ``Client``
The client who will send the responses if applicable.
interaction_eve... | hata/ext/slash/responding.py | get_request_coros | asleep-cult/hata | 0 | python | async def get_request_coros(client, interaction_event, show_for_invoking_user_only, response):
'\n Gets request coroutine after an output from a command coroutine. Might return `None` if there is nothing to send.\n \n This function is a coroutine generator, which should be ued inside of an async for loop.\... | async def get_request_coros(client, interaction_event, show_for_invoking_user_only, response):
'\n Gets request coroutine after an output from a command coroutine. Might return `None` if there is nothing to send.\n \n This function is a coroutine generator, which should be ued inside of an async for loop.\... |
b7852d26b14371506267a71a59cf8291cf88a10231cb429d1ffca9677fd44d6c | async def process_command_gen(client, interaction_event, show_for_invoking_user_only, coro):
'\n Processes a slash command coroutine generator.\n \n This function os a coroutine.\n \n Parameters\n ----------\n client : ``Client``\n The client who will send the responses if applicable.\n ... | Processes a slash command coroutine generator.
This function os a coroutine.
Parameters
----------
client : ``Client``
The client who will send the responses if applicable.
interaction_event : ``InteractionEvent``
The respective event to respond on.
show_for_invoking_user_only : `bool`
Whether the respons... | hata/ext/slash/responding.py | process_command_gen | asleep-cult/hata | 0 | python | async def process_command_gen(client, interaction_event, show_for_invoking_user_only, coro):
'\n Processes a slash command coroutine generator.\n \n This function os a coroutine.\n \n Parameters\n ----------\n client : ``Client``\n The client who will send the responses if applicable.\n ... | async def process_command_gen(client, interaction_event, show_for_invoking_user_only, coro):
'\n Processes a slash command coroutine generator.\n \n This function os a coroutine.\n \n Parameters\n ----------\n client : ``Client``\n The client who will send the responses if applicable.\n ... |
d0af751f5df58ec44f1dffaad1a78d452d9f52fc0162e36ffc55af77a796ca26 | async def process_command_coro(client, interaction_event, show_for_invoking_user_only, coro):
'\n Processes a slash command coroutine.\n \n If the coroutine returns or yields a string or an embed like then sends it to the respective channel.\n \n This function is a coroutine.\n \n Parameters\n ... | Processes a slash command coroutine.
If the coroutine returns or yields a string or an embed like then sends it to the respective channel.
This function is a coroutine.
Parameters
----------
client : ``Client``
The client who will send the responses if applicable.
interaction_event : ``InteractionEvent``
The... | hata/ext/slash/responding.py | process_command_coro | asleep-cult/hata | 0 | python | async def process_command_coro(client, interaction_event, show_for_invoking_user_only, coro):
'\n Processes a slash command coroutine.\n \n If the coroutine returns or yields a string or an embed like then sends it to the respective channel.\n \n This function is a coroutine.\n \n Parameters\n ... | async def process_command_coro(client, interaction_event, show_for_invoking_user_only, coro):
'\n Processes a slash command coroutine.\n \n If the coroutine returns or yields a string or an embed like then sends it to the respective channel.\n \n This function is a coroutine.\n \n Parameters\n ... |
a121bc00c1b42f36f4a2bc3fd987c8774abd4f0a71f22efae7d474a2762ee28c | def abort(content=..., *, embed=..., file=..., allowed_mentions=..., tts=..., show_for_invoking_user_only=...):
"\n Aborts the slash response with sending the passed parameters as a response.\n \n The abortion auto detects `show_for_invoking_user_only` if not given. Not follows the command's preference.\n ... | Aborts the slash response with sending the passed parameters as a response.
The abortion auto detects `show_for_invoking_user_only` if not given. Not follows the command's preference.
If only a string `content` is given, `show_for_invoking_user_only` will become `True`, else `False`. The reason of
becoming `False` at ... | hata/ext/slash/responding.py | abort | asleep-cult/hata | 0 | python | def abort(content=..., *, embed=..., file=..., allowed_mentions=..., tts=..., show_for_invoking_user_only=...):
"\n Aborts the slash response with sending the passed parameters as a response.\n \n The abortion auto detects `show_for_invoking_user_only` if not given. Not follows the command's preference.\n ... | def abort(content=..., *, embed=..., file=..., allowed_mentions=..., tts=..., show_for_invoking_user_only=...):
"\n Aborts the slash response with sending the passed parameters as a response.\n \n The abortion auto detects `show_for_invoking_user_only` if not given. Not follows the command's preference.\n ... |
b6cdb732ce13e8beaa293d483cc90b1d38e23d421335269d3a7b12ae0251e588 | def __init__(self, content=..., *, embed=..., file=..., allowed_mentions=..., tts=..., show_for_invoking_user_only=..., force_new_message=False):
"\n Creates a new ``SlashResponse`` instance with the given parameters.\n \n Parameters\n ----------\n content : `str`, ``EmbedBase``, ... | Creates a new ``SlashResponse`` instance with the given parameters.
Parameters
----------
content : `str`, ``EmbedBase``, `Any`, Optional
The message's content if given. If given as `str` or empty string, then no content will be sent, meanwhile
if any other non `str` or ``EmbedBase`` instance is given, then wi... | hata/ext/slash/responding.py | __init__ | asleep-cult/hata | 0 | python | def __init__(self, content=..., *, embed=..., file=..., allowed_mentions=..., tts=..., show_for_invoking_user_only=..., force_new_message=False):
"\n Creates a new ``SlashResponse`` instance with the given parameters.\n \n Parameters\n ----------\n content : `str`, ``EmbedBase``, ... | def __init__(self, content=..., *, embed=..., file=..., allowed_mentions=..., tts=..., show_for_invoking_user_only=..., force_new_message=False):
"\n Creates a new ``SlashResponse`` instance with the given parameters.\n \n Parameters\n ----------\n content : `str`, ``EmbedBase``, ... |
818aca27430876f05a36fe73805c3a9f17dba19cf32d5f0d576bde09fd070516 | def _get_response_parameters(self, allowed_parameters):
'\n Gets response parameters to pass to a ``Client`` method.\n \n Parameters\n ----------\n allowed_parameters : `tuple` of `str`\n Allowed parameters to be passed to the respective client method.\n \n ... | Gets response parameters to pass to a ``Client`` method.
Parameters
----------
allowed_parameters : `tuple` of `str`
Allowed parameters to be passed to the respective client method.
Returns
-------
response_parameters : `dict` of (`str`, `Any`) items
Parameters to pass the the respective client method. | hata/ext/slash/responding.py | _get_response_parameters | asleep-cult/hata | 0 | python | def _get_response_parameters(self, allowed_parameters):
'\n Gets response parameters to pass to a ``Client`` method.\n \n Parameters\n ----------\n allowed_parameters : `tuple` of `str`\n Allowed parameters to be passed to the respective client method.\n \n ... | def _get_response_parameters(self, allowed_parameters):
'\n Gets response parameters to pass to a ``Client`` method.\n \n Parameters\n ----------\n allowed_parameters : `tuple` of `str`\n Allowed parameters to be passed to the respective client method.\n \n ... |
d6809d4ffc276cde9eff8bdf3c626fece8e60d7c2503954370f90329c667101f | def get_request_coros(self, client, interaction_event, show_for_invoking_user_only):
'\n Gets request coroutine buildable from the ``SlashResponse``.\n \n This method is a generator, which should be used inside of a `for` loop.\n \n client : ``Client``\n The client who ... | Gets request coroutine buildable from the ``SlashResponse``.
This method is a generator, which should be used inside of a `for` loop.
client : ``Client``
The client who will send the responses if applicable.
interaction_event : ``InteractionEvent``
The respective event to respond on.
show_for_invoking_user_on... | hata/ext/slash/responding.py | get_request_coros | asleep-cult/hata | 0 | python | def get_request_coros(self, client, interaction_event, show_for_invoking_user_only):
'\n Gets request coroutine buildable from the ``SlashResponse``.\n \n This method is a generator, which should be used inside of a `for` loop.\n \n client : ``Client``\n The client who ... | def get_request_coros(self, client, interaction_event, show_for_invoking_user_only):
'\n Gets request coroutine buildable from the ``SlashResponse``.\n \n This method is a generator, which should be used inside of a `for` loop.\n \n client : ``Client``\n The client who ... |
8f18684ad28fd31b242696a04f7b4b1b5e9b1059cfee0e0169fbc220cd76f35e | def __repr__(self):
"Returns the slash response's representation."
result = ['<', self.__class__.__name__, ' ']
if self._force_new_message:
result.append('(force new message) ')
parameters = self._parameters
if parameters:
for (key, value) in parameters.items():
result.ap... | Returns the slash response's representation. | hata/ext/slash/responding.py | __repr__ | asleep-cult/hata | 0 | python | def __repr__(self):
result = ['<', self.__class__.__name__, ' ']
if self._force_new_message:
result.append('(force new message) ')
parameters = self._parameters
if parameters:
for (key, value) in parameters.items():
result.append(key)
result.append('=')
... | def __repr__(self):
result = ['<', self.__class__.__name__, ' ']
if self._force_new_message:
result.append('(force new message) ')
parameters = self._parameters
if parameters:
for (key, value) in parameters.items():
result.append(key)
result.append('=')
... |
51855473bed46c50be89308644d4f0bb093b925895ce2f58ab32e488b87a741c | def __init__(self, response):
'\n Creates a new ``InteractionAbortedError`` instance with the given response.\n \n Parameters\n ----------\n response : ``SlashResponse``\n The response to send.\n '
self.response = response
BaseException.__init__(self, res... | Creates a new ``InteractionAbortedError`` instance with the given response.
Parameters
----------
response : ``SlashResponse``
The response to send. | hata/ext/slash/responding.py | __init__ | asleep-cult/hata | 0 | python | def __init__(self, response):
'\n Creates a new ``InteractionAbortedError`` instance with the given response.\n \n Parameters\n ----------\n response : ``SlashResponse``\n The response to send.\n '
self.response = response
BaseException.__init__(self, res... | def __init__(self, response):
'\n Creates a new ``InteractionAbortedError`` instance with the given response.\n \n Parameters\n ----------\n response : ``SlashResponse``\n The response to send.\n '
self.response = response
BaseException.__init__(self, res... |
df21c598289e9404ea4abded861b3300f2c1f6fb2bc43579bcedd92a59816026 | def __repr__(self):
"Returns the exception's representation."
return f'{self.__class__.__name__}({self.response!r})' | Returns the exception's representation. | hata/ext/slash/responding.py | __repr__ | asleep-cult/hata | 0 | python | def __repr__(self):
return f'{self.__class__.__name__}({self.response!r})' | def __repr__(self):
return f'{self.__class__.__name__}({self.response!r})'<|docstring|>Returns the exception's representation.<|endoftext|> |
ebd30a773a9ee97aef335333e13e05bf269a4b2c35870ffb6dd02c98e5011f44 | def test_write_jpeg():
'See if Pillow can write JPEG (tests linkage against mozjpeg)'
im = Image.new('RGB', (10, 10))
buffer = BytesIO()
im.save(buffer, format='JPEG')
if (sys.version_info[0] == 2):
buffer.seek(0)
size = len(buffer.read())
else:
size = buffer.getbuffer().... | See if Pillow can write JPEG (tests linkage against mozjpeg) | src/tests/test_jpeg.py | test_write_jpeg | edoburu/demo.django-fluent.org | 24 | python | def test_write_jpeg():
im = Image.new('RGB', (10, 10))
buffer = BytesIO()
im.save(buffer, format='JPEG')
if (sys.version_info[0] == 2):
buffer.seek(0)
size = len(buffer.read())
else:
size = buffer.getbuffer().nbytes
if (size != 375):
logger.error('JPEG optimi... | def test_write_jpeg():
im = Image.new('RGB', (10, 10))
buffer = BytesIO()
im.save(buffer, format='JPEG')
if (sys.version_info[0] == 2):
buffer.seek(0)
size = len(buffer.read())
else:
size = buffer.getbuffer().nbytes
if (size != 375):
logger.error('JPEG optimi... |
70664de1827930684106fc23b9e6950944a1ff3266b656b51c8b348d4a5de8e2 | def _astroid_interface_for_visitor(visitor_function):
'Turn codewatch visitors into astroid-compatible transform functions\n\n codewatch visitors can make use of 3 args, the node, stats, and the\n relative file path you were visited for\n\n astroid transforms must take only the node\n\n By annotating th... | Turn codewatch visitors into astroid-compatible transform functions
codewatch visitors can make use of 3 args, the node, stats, and the
relative file path you were visited for
astroid transforms must take only the node
By annotating the node with stats and relative file path, we can make our
codewatch visitors compa... | codewatch/node_visitor.py | _astroid_interface_for_visitor | kazu9su/codewatch | 39 | python | def _astroid_interface_for_visitor(visitor_function):
'Turn codewatch visitors into astroid-compatible transform functions\n\n codewatch visitors can make use of 3 args, the node, stats, and the\n relative file path you were visited for\n\n astroid transforms must take only the node\n\n By annotating th... | def _astroid_interface_for_visitor(visitor_function):
'Turn codewatch visitors into astroid-compatible transform functions\n\n codewatch visitors can make use of 3 args, the node, stats, and the\n relative file path you were visited for\n\n astroid transforms must take only the node\n\n By annotating th... |
35512da6b5b991b297cc54f739d2189e1c8d83e68a8e83aae139ccfb7143886c | def __init__(self, type=None, is_active=None, percentage=None, fixed_cost=None, field=None, projects=None, portfolio=None, valid_values=None, _configuration=None):
'Constraint - a model defined in Swagger'
if (_configuration is None):
_configuration = Configuration()
self._configuration = _configura... | Constraint - a model defined in Swagger | python/dlxapi/models/constraint.py | __init__ | dlens/dlxapi | 0 | python | def __init__(self, type=None, is_active=None, percentage=None, fixed_cost=None, field=None, projects=None, portfolio=None, valid_values=None, _configuration=None):
if (_configuration is None):
_configuration = Configuration()
self._configuration = _configuration
self._type = None
self._is_a... | def __init__(self, type=None, is_active=None, percentage=None, fixed_cost=None, field=None, projects=None, portfolio=None, valid_values=None, _configuration=None):
if (_configuration is None):
_configuration = Configuration()
self._configuration = _configuration
self._type = None
self._is_a... |
fc807628e93915f20cae05e4317c83b52fbf6ec812bcbcdea7004e2158311d62 | @property
def type(self):
'Gets the type of this Constraint. # noqa: E501\n\n\n :return: The type of this Constraint. # noqa: E501\n :rtype: ConstraintType\n '
return self._type | Gets the type of this Constraint. # noqa: E501
:return: The type of this Constraint. # noqa: E501
:rtype: ConstraintType | python/dlxapi/models/constraint.py | type | dlens/dlxapi | 0 | python | @property
def type(self):
'Gets the type of this Constraint. # noqa: E501\n\n\n :return: The type of this Constraint. # noqa: E501\n :rtype: ConstraintType\n '
return self._type | @property
def type(self):
'Gets the type of this Constraint. # noqa: E501\n\n\n :return: The type of this Constraint. # noqa: E501\n :rtype: ConstraintType\n '
return self._type<|docstring|>Gets the type of this Constraint. # noqa: E501
:return: The type of this Constraint. # noqa: E5... |
9133ab96c666415eaaf3f3ee071f844352968f295f58fdc0caa2b2e3cdfc7715 | @type.setter
def type(self, type):
'Sets the type of this Constraint.\n\n\n :param type: The type of this Constraint. # noqa: E501\n :type: ConstraintType\n '
self._type = type | Sets the type of this Constraint.
:param type: The type of this Constraint. # noqa: E501
:type: ConstraintType | python/dlxapi/models/constraint.py | type | dlens/dlxapi | 0 | python | @type.setter
def type(self, type):
'Sets the type of this Constraint.\n\n\n :param type: The type of this Constraint. # noqa: E501\n :type: ConstraintType\n '
self._type = type | @type.setter
def type(self, type):
'Sets the type of this Constraint.\n\n\n :param type: The type of this Constraint. # noqa: E501\n :type: ConstraintType\n '
self._type = type<|docstring|>Sets the type of this Constraint.
:param type: The type of this Constraint. # noqa: E501
:type: Co... |
fa2489278b76094bd36939f95741e13528ceb54c839bc8e21dc0b9306e7d43e1 | @property
def is_active(self):
'Gets the is_active of this Constraint. # noqa: E501\n\n\n :return: The is_active of this Constraint. # noqa: E501\n :rtype: bool\n '
return self._is_active | Gets the is_active of this Constraint. # noqa: E501
:return: The is_active of this Constraint. # noqa: E501
:rtype: bool | python/dlxapi/models/constraint.py | is_active | dlens/dlxapi | 0 | python | @property
def is_active(self):
'Gets the is_active of this Constraint. # noqa: E501\n\n\n :return: The is_active of this Constraint. # noqa: E501\n :rtype: bool\n '
return self._is_active | @property
def is_active(self):
'Gets the is_active of this Constraint. # noqa: E501\n\n\n :return: The is_active of this Constraint. # noqa: E501\n :rtype: bool\n '
return self._is_active<|docstring|>Gets the is_active of this Constraint. # noqa: E501
:return: The is_active of this Con... |
06e5879e277b90abd0189af7574ed864b5ead9c140e7fd1cd27a9493b551eb60 | @is_active.setter
def is_active(self, is_active):
'Sets the is_active of this Constraint.\n\n\n :param is_active: The is_active of this Constraint. # noqa: E501\n :type: bool\n '
self._is_active = is_active | Sets the is_active of this Constraint.
:param is_active: The is_active of this Constraint. # noqa: E501
:type: bool | python/dlxapi/models/constraint.py | is_active | dlens/dlxapi | 0 | python | @is_active.setter
def is_active(self, is_active):
'Sets the is_active of this Constraint.\n\n\n :param is_active: The is_active of this Constraint. # noqa: E501\n :type: bool\n '
self._is_active = is_active | @is_active.setter
def is_active(self, is_active):
'Sets the is_active of this Constraint.\n\n\n :param is_active: The is_active of this Constraint. # noqa: E501\n :type: bool\n '
self._is_active = is_active<|docstring|>Sets the is_active of this Constraint.
:param is_active: The is_activ... |
84e71e6d4423f2083e04084512574609ec165c5265f30f2c5180473ff802c7b4 | @property
def percentage(self):
'Gets the percentage of this Constraint. # noqa: E501\n\n\n :return: The percentage of this Constraint. # noqa: E501\n :rtype: float\n '
return self._percentage | Gets the percentage of this Constraint. # noqa: E501
:return: The percentage of this Constraint. # noqa: E501
:rtype: float | python/dlxapi/models/constraint.py | percentage | dlens/dlxapi | 0 | python | @property
def percentage(self):
'Gets the percentage of this Constraint. # noqa: E501\n\n\n :return: The percentage of this Constraint. # noqa: E501\n :rtype: float\n '
return self._percentage | @property
def percentage(self):
'Gets the percentage of this Constraint. # noqa: E501\n\n\n :return: The percentage of this Constraint. # noqa: E501\n :rtype: float\n '
return self._percentage<|docstring|>Gets the percentage of this Constraint. # noqa: E501
:return: The percentage of t... |
6be4da2b3ccdc09c3e68e49af5956ee04ecc3b79a7a9b71a40a67ca91835c5b1 | @percentage.setter
def percentage(self, percentage):
'Sets the percentage of this Constraint.\n\n\n :param percentage: The percentage of this Constraint. # noqa: E501\n :type: float\n '
self._percentage = percentage | Sets the percentage of this Constraint.
:param percentage: The percentage of this Constraint. # noqa: E501
:type: float | python/dlxapi/models/constraint.py | percentage | dlens/dlxapi | 0 | python | @percentage.setter
def percentage(self, percentage):
'Sets the percentage of this Constraint.\n\n\n :param percentage: The percentage of this Constraint. # noqa: E501\n :type: float\n '
self._percentage = percentage | @percentage.setter
def percentage(self, percentage):
'Sets the percentage of this Constraint.\n\n\n :param percentage: The percentage of this Constraint. # noqa: E501\n :type: float\n '
self._percentage = percentage<|docstring|>Sets the percentage of this Constraint.
:param percentage: T... |
43ebdf82c14f12601a76d8018c4aa78ddc5e84ce17ec1d353fc415a628287d12 | @property
def fixed_cost(self):
'Gets the fixed_cost of this Constraint. # noqa: E501\n\n\n :return: The fixed_cost of this Constraint. # noqa: E501\n :rtype: float\n '
return self._fixed_cost | Gets the fixed_cost of this Constraint. # noqa: E501
:return: The fixed_cost of this Constraint. # noqa: E501
:rtype: float | python/dlxapi/models/constraint.py | fixed_cost | dlens/dlxapi | 0 | python | @property
def fixed_cost(self):
'Gets the fixed_cost of this Constraint. # noqa: E501\n\n\n :return: The fixed_cost of this Constraint. # noqa: E501\n :rtype: float\n '
return self._fixed_cost | @property
def fixed_cost(self):
'Gets the fixed_cost of this Constraint. # noqa: E501\n\n\n :return: The fixed_cost of this Constraint. # noqa: E501\n :rtype: float\n '
return self._fixed_cost<|docstring|>Gets the fixed_cost of this Constraint. # noqa: E501
:return: The fixed_cost of t... |
74fb38c7a55112950132de3e40ddd27580d3f39caaaff052ad8c540491f546d5 | @fixed_cost.setter
def fixed_cost(self, fixed_cost):
'Sets the fixed_cost of this Constraint.\n\n\n :param fixed_cost: The fixed_cost of this Constraint. # noqa: E501\n :type: float\n '
self._fixed_cost = fixed_cost | Sets the fixed_cost of this Constraint.
:param fixed_cost: The fixed_cost of this Constraint. # noqa: E501
:type: float | python/dlxapi/models/constraint.py | fixed_cost | dlens/dlxapi | 0 | python | @fixed_cost.setter
def fixed_cost(self, fixed_cost):
'Sets the fixed_cost of this Constraint.\n\n\n :param fixed_cost: The fixed_cost of this Constraint. # noqa: E501\n :type: float\n '
self._fixed_cost = fixed_cost | @fixed_cost.setter
def fixed_cost(self, fixed_cost):
'Sets the fixed_cost of this Constraint.\n\n\n :param fixed_cost: The fixed_cost of this Constraint. # noqa: E501\n :type: float\n '
self._fixed_cost = fixed_cost<|docstring|>Sets the fixed_cost of this Constraint.
:param fixed_cost: T... |
ffe86f296d59c908803c4f6c6f1b10464ac407c7a6f37f38f654905e8385ac0d | @property
def field(self):
'Gets the field of this Constraint. # noqa: E501\n\n\n :return: The field of this Constraint. # noqa: E501\n :rtype: Field\n '
return self._field | Gets the field of this Constraint. # noqa: E501
:return: The field of this Constraint. # noqa: E501
:rtype: Field | python/dlxapi/models/constraint.py | field | dlens/dlxapi | 0 | python | @property
def field(self):
'Gets the field of this Constraint. # noqa: E501\n\n\n :return: The field of this Constraint. # noqa: E501\n :rtype: Field\n '
return self._field | @property
def field(self):
'Gets the field of this Constraint. # noqa: E501\n\n\n :return: The field of this Constraint. # noqa: E501\n :rtype: Field\n '
return self._field<|docstring|>Gets the field of this Constraint. # noqa: E501
:return: The field of this Constraint. # noqa: E501
... |
452f22a911818c19f61ae2b852d8a50f18fc4ac9c07cf22825bf32fb77354cee | @field.setter
def field(self, field):
'Sets the field of this Constraint.\n\n\n :param field: The field of this Constraint. # noqa: E501\n :type: Field\n '
self._field = field | Sets the field of this Constraint.
:param field: The field of this Constraint. # noqa: E501
:type: Field | python/dlxapi/models/constraint.py | field | dlens/dlxapi | 0 | python | @field.setter
def field(self, field):
'Sets the field of this Constraint.\n\n\n :param field: The field of this Constraint. # noqa: E501\n :type: Field\n '
self._field = field | @field.setter
def field(self, field):
'Sets the field of this Constraint.\n\n\n :param field: The field of this Constraint. # noqa: E501\n :type: Field\n '
self._field = field<|docstring|>Sets the field of this Constraint.
:param field: The field of this Constraint. # noqa: E501
:type: ... |
6efe63fafc41c16a29d1858364af93ce26dd9bc029b6c6c876d565d4b1de7435 | @property
def projects(self):
'Gets the projects of this Constraint. # noqa: E501\n\n\n :return: The projects of this Constraint. # noqa: E501\n :rtype: Projects\n '
return self._projects | Gets the projects of this Constraint. # noqa: E501
:return: The projects of this Constraint. # noqa: E501
:rtype: Projects | python/dlxapi/models/constraint.py | projects | dlens/dlxapi | 0 | python | @property
def projects(self):
'Gets the projects of this Constraint. # noqa: E501\n\n\n :return: The projects of this Constraint. # noqa: E501\n :rtype: Projects\n '
return self._projects | @property
def projects(self):
'Gets the projects of this Constraint. # noqa: E501\n\n\n :return: The projects of this Constraint. # noqa: E501\n :rtype: Projects\n '
return self._projects<|docstring|>Gets the projects of this Constraint. # noqa: E501
:return: The projects of this Const... |
a110b31b915c6ed70eb6de1056824c8266262a40c4a98944317abb48ccac6fda | @projects.setter
def projects(self, projects):
'Sets the projects of this Constraint.\n\n\n :param projects: The projects of this Constraint. # noqa: E501\n :type: Projects\n '
self._projects = projects | Sets the projects of this Constraint.
:param projects: The projects of this Constraint. # noqa: E501
:type: Projects | python/dlxapi/models/constraint.py | projects | dlens/dlxapi | 0 | python | @projects.setter
def projects(self, projects):
'Sets the projects of this Constraint.\n\n\n :param projects: The projects of this Constraint. # noqa: E501\n :type: Projects\n '
self._projects = projects | @projects.setter
def projects(self, projects):
'Sets the projects of this Constraint.\n\n\n :param projects: The projects of this Constraint. # noqa: E501\n :type: Projects\n '
self._projects = projects<|docstring|>Sets the projects of this Constraint.
:param projects: The projects of th... |
13b2128957c2283404a0a5f7ba60d91782c9e7fdf1c1cb816b0fb0c10efc9551 | @property
def portfolio(self):
'Gets the portfolio of this Constraint. # noqa: E501\n\n\n :return: The portfolio of this Constraint. # noqa: E501\n :rtype: Portfolio\n '
return self._portfolio | Gets the portfolio of this Constraint. # noqa: E501
:return: The portfolio of this Constraint. # noqa: E501
:rtype: Portfolio | python/dlxapi/models/constraint.py | portfolio | dlens/dlxapi | 0 | python | @property
def portfolio(self):
'Gets the portfolio of this Constraint. # noqa: E501\n\n\n :return: The portfolio of this Constraint. # noqa: E501\n :rtype: Portfolio\n '
return self._portfolio | @property
def portfolio(self):
'Gets the portfolio of this Constraint. # noqa: E501\n\n\n :return: The portfolio of this Constraint. # noqa: E501\n :rtype: Portfolio\n '
return self._portfolio<|docstring|>Gets the portfolio of this Constraint. # noqa: E501
:return: The portfolio of thi... |
0c0691230bb3ec87226e45039c7f66e4d0463b0764140081d96dbc1dcccb927f | @portfolio.setter
def portfolio(self, portfolio):
'Sets the portfolio of this Constraint.\n\n\n :param portfolio: The portfolio of this Constraint. # noqa: E501\n :type: Portfolio\n '
self._portfolio = portfolio | Sets the portfolio of this Constraint.
:param portfolio: The portfolio of this Constraint. # noqa: E501
:type: Portfolio | python/dlxapi/models/constraint.py | portfolio | dlens/dlxapi | 0 | python | @portfolio.setter
def portfolio(self, portfolio):
'Sets the portfolio of this Constraint.\n\n\n :param portfolio: The portfolio of this Constraint. # noqa: E501\n :type: Portfolio\n '
self._portfolio = portfolio | @portfolio.setter
def portfolio(self, portfolio):
'Sets the portfolio of this Constraint.\n\n\n :param portfolio: The portfolio of this Constraint. # noqa: E501\n :type: Portfolio\n '
self._portfolio = portfolio<|docstring|>Sets the portfolio of this Constraint.
:param portfolio: The por... |
1ba93649db21123f3ae18e33f1da8b610196240903d8faca241fdf277e946d72 | @property
def valid_values(self):
'Gets the valid_values of this Constraint. # noqa: E501\n\n\n :return: The valid_values of this Constraint. # noqa: E501\n :rtype: list[ValidConstraintValue]\n '
return self._valid_values | Gets the valid_values of this Constraint. # noqa: E501
:return: The valid_values of this Constraint. # noqa: E501
:rtype: list[ValidConstraintValue] | python/dlxapi/models/constraint.py | valid_values | dlens/dlxapi | 0 | python | @property
def valid_values(self):
'Gets the valid_values of this Constraint. # noqa: E501\n\n\n :return: The valid_values of this Constraint. # noqa: E501\n :rtype: list[ValidConstraintValue]\n '
return self._valid_values | @property
def valid_values(self):
'Gets the valid_values of this Constraint. # noqa: E501\n\n\n :return: The valid_values of this Constraint. # noqa: E501\n :rtype: list[ValidConstraintValue]\n '
return self._valid_values<|docstring|>Gets the valid_values of this Constraint. # noqa: E501... |
21b62786d7e3fb8f1f3ce841d3f729bd64f50556d05bc77e5945bebc0a2028fc | @valid_values.setter
def valid_values(self, valid_values):
'Sets the valid_values of this Constraint.\n\n\n :param valid_values: The valid_values of this Constraint. # noqa: E501\n :type: list[ValidConstraintValue]\n '
self._valid_values = valid_values | Sets the valid_values of this Constraint.
:param valid_values: The valid_values of this Constraint. # noqa: E501
:type: list[ValidConstraintValue] | python/dlxapi/models/constraint.py | valid_values | dlens/dlxapi | 0 | python | @valid_values.setter
def valid_values(self, valid_values):
'Sets the valid_values of this Constraint.\n\n\n :param valid_values: The valid_values of this Constraint. # noqa: E501\n :type: list[ValidConstraintValue]\n '
self._valid_values = valid_values | @valid_values.setter
def valid_values(self, valid_values):
'Sets the valid_values of this Constraint.\n\n\n :param valid_values: The valid_values of this Constraint. # noqa: E501\n :type: list[ValidConstraintValue]\n '
self._valid_values = valid_values<|docstring|>Sets the valid_values of ... |
c01b5d5247cf6cce880ba7f715edc961da5cf04c0d485b9a39ba333b391d1da7 | def to_dict(self):
'Returns the model properties as a dict'
result = {}
for (attr, _) in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value))
e... | Returns the model properties as a dict | python/dlxapi/models/constraint.py | to_dict | dlens/dlxapi | 0 | python | def to_dict(self):
result = {}
for (attr, _) in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value))
elif hasattr(value, 'to_dict'):
... | def to_dict(self):
result = {}
for (attr, _) in six.iteritems(self.swagger_types):
value = getattr(self, attr)
if isinstance(value, list):
result[attr] = list(map((lambda x: (x.to_dict() if hasattr(x, 'to_dict') else x)), value))
elif hasattr(value, 'to_dict'):
... |
cbb19eaa2fc8a113d9e32f924ef280a7e97563f8915f94f65dab438997af2e99 | def to_str(self):
'Returns the string representation of the model'
return pprint.pformat(self.to_dict()) | Returns the string representation of the model | python/dlxapi/models/constraint.py | to_str | dlens/dlxapi | 0 | python | def to_str(self):
return pprint.pformat(self.to_dict()) | def to_str(self):
return pprint.pformat(self.to_dict())<|docstring|>Returns the string representation of the model<|endoftext|> |
772243a2c2b3261a9b954d07aaf295e3c1242a579a495e2d6a5679c677861703 | def __repr__(self):
'For `print` and `pprint`'
return self.to_str() | For `print` and `pprint` | python/dlxapi/models/constraint.py | __repr__ | dlens/dlxapi | 0 | python | def __repr__(self):
return self.to_str() | def __repr__(self):
return self.to_str()<|docstring|>For `print` and `pprint`<|endoftext|> |
c76e1b60ca72c2286bd4f6c997206257a140b9c7e2561a29b704fdc25747898f | def __eq__(self, other):
'Returns true if both objects are equal'
if (not isinstance(other, Constraint)):
return False
return (self.to_dict() == other.to_dict()) | Returns true if both objects are equal | python/dlxapi/models/constraint.py | __eq__ | dlens/dlxapi | 0 | python | def __eq__(self, other):
if (not isinstance(other, Constraint)):
return False
return (self.to_dict() == other.to_dict()) | def __eq__(self, other):
if (not isinstance(other, Constraint)):
return False
return (self.to_dict() == other.to_dict())<|docstring|>Returns true if both objects are equal<|endoftext|> |
779b09800607cc29a60dc6a61f6a4267875a6bf47b755c2afb89b4abe12b628e | def __ne__(self, other):
'Returns true if both objects are not equal'
if (not isinstance(other, Constraint)):
return True
return (self.to_dict() != other.to_dict()) | Returns true if both objects are not equal | python/dlxapi/models/constraint.py | __ne__ | dlens/dlxapi | 0 | python | def __ne__(self, other):
if (not isinstance(other, Constraint)):
return True
return (self.to_dict() != other.to_dict()) | def __ne__(self, other):
if (not isinstance(other, Constraint)):
return True
return (self.to_dict() != other.to_dict())<|docstring|>Returns true if both objects are not equal<|endoftext|> |
11d719f9fca2ac8a775c85ef6cde28ca44820d7db0919b49b3bac0f9e62fdded | def repeat(func, args=(), kwargs={}, n_repeat=10000, *, name=None, n_warmup=10, max_duration=_math.inf, devices=None):
" Timing utility for measuring time spent by both CPU and GPU.\n\n This function is a very convenient helper for setting up a timing test. The\n GPU time is properly recorded by synchronizing... | Timing utility for measuring time spent by both CPU and GPU.
This function is a very convenient helper for setting up a timing test. The
GPU time is properly recorded by synchronizing internal streams. As a
result, to time a multi-GPU function all participating devices must be
passed as the ``devices`` argument so tha... | demo/_time_gpu.py | repeat | grlee77/uskimage-demo | 0 | python | def repeat(func, args=(), kwargs={}, n_repeat=10000, *, name=None, n_warmup=10, max_duration=_math.inf, devices=None):
" Timing utility for measuring time spent by both CPU and GPU.\n\n This function is a very convenient helper for setting up a timing test. The\n GPU time is properly recorded by synchronizing... | def repeat(func, args=(), kwargs={}, n_repeat=10000, *, name=None, n_warmup=10, max_duration=_math.inf, devices=None):
" Timing utility for measuring time spent by both CPU and GPU.\n\n This function is a very convenient helper for setting up a timing test. The\n GPU time is properly recorded by synchronizing... |
3a514804a8ae59a3c3566f458afb1107d8df247ee1e2069bd7bc1ab4e8a6796c | def repeat_dask(func, args=(), kwargs={}, n_repeat=10000, *, name=None, n_warmup=10, max_duration=_math.inf, devices=None):
" Timing utility for measuring time spent by both CPU and GPU.\n\n This function is a very convenient helper for setting up a timing test. The\n GPU time is properly recorded by synchron... | Timing utility for measuring time spent by both CPU and GPU.
This function is a very convenient helper for setting up a timing test. The
GPU time is properly recorded by synchronizing internal streams. As a
result, to time a multi-GPU function all participating devices must be
passed as the ``devices`` argument so tha... | demo/_time_gpu.py | repeat_dask | grlee77/uskimage-demo | 0 | python | def repeat_dask(func, args=(), kwargs={}, n_repeat=10000, *, name=None, n_warmup=10, max_duration=_math.inf, devices=None):
" Timing utility for measuring time spent by both CPU and GPU.\n\n This function is a very convenient helper for setting up a timing test. The\n GPU time is properly recorded by synchron... | def repeat_dask(func, args=(), kwargs={}, n_repeat=10000, *, name=None, n_warmup=10, max_duration=_math.inf, devices=None):
" Timing utility for measuring time spent by both CPU and GPU.\n\n This function is a very convenient helper for setting up a timing test. The\n GPU time is properly recorded by synchron... |
d12cebf3f46a863a2376eeb58f6bbee0119c84c82d6ace347911985249553cc0 | @property
def cpu_times(self):
' Returns an array of CPU times of size ``n_repeat``. '
return self._ts[0] | Returns an array of CPU times of size ``n_repeat``. | demo/_time_gpu.py | cpu_times | grlee77/uskimage-demo | 0 | python | @property
def cpu_times(self):
' '
return self._ts[0] | @property
def cpu_times(self):
' '
return self._ts[0]<|docstring|>Returns an array of CPU times of size ``n_repeat``.<|endoftext|> |
635d2531ed6622d7a6ec5b6531c7d5a1be431687dac47522fdb21c1a0d6ca47e | @property
def gpu_times(self):
' Returns an array of GPU times of size ``n_repeat``. '
return self._ts[1:] | Returns an array of GPU times of size ``n_repeat``. | demo/_time_gpu.py | gpu_times | grlee77/uskimage-demo | 0 | python | @property
def gpu_times(self):
' '
return self._ts[1:] | @property
def gpu_times(self):
' '
return self._ts[1:]<|docstring|>Returns an array of GPU times of size ``n_repeat``.<|endoftext|> |
7fe0425551e51f12beee55e0897829ef58cab9f85df2128a737b7cd2ffd52f78 | def infix_to_postfix(infix_expr):
'\n 中缀表达式 -> 后缀表达式\n :param infix_expr: 这里的中缀表达式是一个由空格分隔的标记字符串\n '
prec = {}
prec['*'] = 3
prec['/'] = 3
prec['+'] = 2
prec['-'] = 2
prec['('] = 1
tokens = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
op_stack = Stack()
postfix_list = []
i... | 中缀表达式 -> 后缀表达式
:param infix_expr: 这里的中缀表达式是一个由空格分隔的标记字符串 | chapter_3/py_3_9_postfix_expressions.py | infix_to_postfix | kfrime/algo-in-python | 0 | python | def infix_to_postfix(infix_expr):
'\n 中缀表达式 -> 后缀表达式\n :param infix_expr: 这里的中缀表达式是一个由空格分隔的标记字符串\n '
prec = {}
prec['*'] = 3
prec['/'] = 3
prec['+'] = 2
prec['-'] = 2
prec['('] = 1
tokens = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
op_stack = Stack()
postfix_list = []
i... | def infix_to_postfix(infix_expr):
'\n 中缀表达式 -> 后缀表达式\n :param infix_expr: 这里的中缀表达式是一个由空格分隔的标记字符串\n '
prec = {}
prec['*'] = 3
prec['/'] = 3
prec['+'] = 2
prec['-'] = 2
prec['('] = 1
tokens = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
op_stack = Stack()
postfix_list = []
i... |
af33f857f39b994cda6cfc1460e26eecd283dbe86ac04c831a98a4b11f7f1659 | def do_math(op, op1, op2):
'\n 执行数学运算\n :param op: 操作符\n :param op1: 操作数1\n :param op2: 操作数2\n '
if (op == '+'):
return (op1 + op2)
elif (op == '-'):
return (op1 - op2)
elif (op == '*'):
return (op1 * op2)
elif (op == '/'):
return (op1 / op2) | 执行数学运算
:param op: 操作符
:param op1: 操作数1
:param op2: 操作数2 | chapter_3/py_3_9_postfix_expressions.py | do_math | kfrime/algo-in-python | 0 | python | def do_math(op, op1, op2):
'\n 执行数学运算\n :param op: 操作符\n :param op1: 操作数1\n :param op2: 操作数2\n '
if (op == '+'):
return (op1 + op2)
elif (op == '-'):
return (op1 - op2)
elif (op == '*'):
return (op1 * op2)
elif (op == '/'):
return (op1 / op2) | def do_math(op, op1, op2):
'\n 执行数学运算\n :param op: 操作符\n :param op1: 操作数1\n :param op2: 操作数2\n '
if (op == '+'):
return (op1 + op2)
elif (op == '-'):
return (op1 - op2)
elif (op == '*'):
return (op1 * op2)
elif (op == '/'):
return (op1 / op2)<|docstrin... |
e9f1478b095c8a80b40462cd4fd62dffd091ff5fb9e28ca1fe5ba4e2adf4ab4d | def postfix_eval(postfix_expr):
'\n 后缀表达式求值\n\n 如果 token 是操作数,将其从字符串转换为整数,并将值压到operandStack。\n\n 如果 token 是运算符*,/,+或-,它将需要两个操作数。弹出operandStack 两次。\n 第一个弹出的是第二个操作数,第二个弹出的是第一个操作数。执行算术运算后,\n 将结果压到操作数栈中。\n\n :param postfix_expr: 这里的后缀表达式是一个由空格分隔的标记(token)字符串\n '
operand_stack = Stack()
toke... | 后缀表达式求值
如果 token 是操作数,将其从字符串转换为整数,并将值压到operandStack。
如果 token 是运算符*,/,+或-,它将需要两个操作数。弹出operandStack 两次。
第一个弹出的是第二个操作数,第二个弹出的是第一个操作数。执行算术运算后,
将结果压到操作数栈中。
:param postfix_expr: 这里的后缀表达式是一个由空格分隔的标记(token)字符串 | chapter_3/py_3_9_postfix_expressions.py | postfix_eval | kfrime/algo-in-python | 0 | python | def postfix_eval(postfix_expr):
'\n 后缀表达式求值\n\n 如果 token 是操作数,将其从字符串转换为整数,并将值压到operandStack。\n\n 如果 token 是运算符*,/,+或-,它将需要两个操作数。弹出operandStack 两次。\n 第一个弹出的是第二个操作数,第二个弹出的是第一个操作数。执行算术运算后,\n 将结果压到操作数栈中。\n\n :param postfix_expr: 这里的后缀表达式是一个由空格分隔的标记(token)字符串\n '
operand_stack = Stack()
toke... | def postfix_eval(postfix_expr):
'\n 后缀表达式求值\n\n 如果 token 是操作数,将其从字符串转换为整数,并将值压到operandStack。\n\n 如果 token 是运算符*,/,+或-,它将需要两个操作数。弹出operandStack 两次。\n 第一个弹出的是第二个操作数,第二个弹出的是第一个操作数。执行算术运算后,\n 将结果压到操作数栈中。\n\n :param postfix_expr: 这里的后缀表达式是一个由空格分隔的标记(token)字符串\n '
operand_stack = Stack()
toke... |
2d02ef1e499ab61e92b078dcead5c0d1fdb4eb576d734ea89375ecd1bf4b3847 | def get_regnet(channels_init, channels_slope, channels_mult, depth, groups, use_se=False, model_name=None, pretrained=False, root=os.path.join('~', '.torch', 'models'), **kwargs):
"\n Create RegNet model with specific parameters.\n\n Parameters:\n ----------\n channels_init : float\n Initial valu... | Create RegNet model with specific parameters.
Parameters:
----------
channels_init : float
Initial value for channels/widths.
channels_slope : float
Slope value for channels/widths.
width_mult : float
Width multiplier value.
groups : int
Number of groups.
depth : int
Depth value.
use_se : bool, def... | pytorch/pytorchcv/models/regnet.py | get_regnet | JacobARose/imgclsmob | 2,649 | python | def get_regnet(channels_init, channels_slope, channels_mult, depth, groups, use_se=False, model_name=None, pretrained=False, root=os.path.join('~', '.torch', 'models'), **kwargs):
"\n Create RegNet model with specific parameters.\n\n Parameters:\n ----------\n channels_init : float\n Initial valu... | def get_regnet(channels_init, channels_slope, channels_mult, depth, groups, use_se=False, model_name=None, pretrained=False, root=os.path.join('~', '.torch', 'models'), **kwargs):
"\n Create RegNet model with specific parameters.\n\n Parameters:\n ----------\n channels_init : float\n Initial valu... |
7207c26b47d35375182b60f1c4e798376c12fe0380095df05373b3857d6eb546 | def regnetx002(**kwargs):
"\n RegNetX-200MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | RegNetX-200MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx002 | JacobARose/imgclsmob | 2,649 | python | def regnetx002(**kwargs):
"\n RegNetX-200MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | def regnetx002(**kwargs):
"\n RegNetX-200MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... |
6b631ac0da3798e38dd79e44d9bf53d3d2fda3f22e6fc041d44562bdd3c26cf3 | def regnetx004(**kwargs):
"\n RegNetX-400MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | RegNetX-400MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx004 | JacobARose/imgclsmob | 2,649 | python | def regnetx004(**kwargs):
"\n RegNetX-400MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | def regnetx004(**kwargs):
"\n RegNetX-400MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... |
3ca93c2816f268d505433fcc4e406736cb37c1075b0c014dfb0488629cf9e1cf | def regnetx006(**kwargs):
"\n RegNetX-600MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | RegNetX-600MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx006 | JacobARose/imgclsmob | 2,649 | python | def regnetx006(**kwargs):
"\n RegNetX-600MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | def regnetx006(**kwargs):
"\n RegNetX-600MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... |
8623831404d6f757658d5f5e8ed650b081d7aaea1615ebbd13eba15956808f2f | def regnetx008(**kwargs):
"\n RegNetX-800MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | RegNetX-800MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx008 | JacobARose/imgclsmob | 2,649 | python | def regnetx008(**kwargs):
"\n RegNetX-800MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | def regnetx008(**kwargs):
"\n RegNetX-800MF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... |
688d2de6dddfda89a4be29da91bd9168f4d743a3708f3ace803af63e91563a4b | def regnetx016(**kwargs):
"\n RegNetX-1.6GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | RegNetX-1.6GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx016 | JacobARose/imgclsmob | 2,649 | python | def regnetx016(**kwargs):
"\n RegNetX-1.6GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | def regnetx016(**kwargs):
"\n RegNetX-1.6GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... |
3f59319a5e1eeee45b18e4f72e295fb8d71e17b98e17551f5f34cfcbfad4bbf9 | def regnetx032(**kwargs):
"\n RegNetX-3.2GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | RegNetX-3.2GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx032 | JacobARose/imgclsmob | 2,649 | python | def regnetx032(**kwargs):
"\n RegNetX-3.2GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | def regnetx032(**kwargs):
"\n RegNetX-3.2GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... |
26c4105e9b585b7103ebbea8b2c49df29417a9f91f477749a84a71a79c9ffebe | def regnetx040(**kwargs):
"\n RegNetX-4.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | RegNetX-4.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx040 | JacobARose/imgclsmob | 2,649 | python | def regnetx040(**kwargs):
"\n RegNetX-4.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | def regnetx040(**kwargs):
"\n RegNetX-4.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... |
5bcd82bd068f0e2913a6a6cf42a44fac009bb8273c89b033a93221aecac576c1 | def regnetx064(**kwargs):
"\n RegNetX-6.4GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | RegNetX-6.4GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx064 | JacobARose/imgclsmob | 2,649 | python | def regnetx064(**kwargs):
"\n RegNetX-6.4GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | def regnetx064(**kwargs):
"\n RegNetX-6.4GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... |
42e229899fb67e2d8567717bc8c538ee6e760c9891c9ef217d5fc57de46ec807 | def regnetx080(**kwargs):
"\n RegNetX-8.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | RegNetX-8.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx080 | JacobARose/imgclsmob | 2,649 | python | def regnetx080(**kwargs):
"\n RegNetX-8.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... | def regnetx080(**kwargs):
"\n RegNetX-8.0GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locat... |
3b7e26d0c0acf7fb26fd638abff430674530e8fcc35dfb70cdc5883ff50ab38e | def regnetx120(**kwargs):
"\n RegNetX-12GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locati... | RegNetX-12GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx120 | JacobARose/imgclsmob | 2,649 | python | def regnetx120(**kwargs):
"\n RegNetX-12GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locati... | def regnetx120(**kwargs):
"\n RegNetX-12GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locati... |
1709961543514d99ec238ec35d5579ae72e684989fe9ef55e8bd8c89894b919d | def regnetx160(**kwargs):
"\n RegNetX-16GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locati... | RegNetX-16GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx160 | JacobARose/imgclsmob | 2,649 | python | def regnetx160(**kwargs):
"\n RegNetX-16GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locati... | def regnetx160(**kwargs):
"\n RegNetX-16GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locati... |
2f43aaa30f0215fea1e9dd59e4c4e39558f4c5cd821acac812adc1e84b70519a | def regnetx320(**kwargs):
"\n RegNetX-32GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locati... | RegNetX-32GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.
Parameters:
----------
pretrained : bool, default False
Whether to load the pretrained weights for model.
root : str, default '~/.torch/models'
Location for keeping the model parameters. | pytorch/pytorchcv/models/regnet.py | regnetx320 | JacobARose/imgclsmob | 2,649 | python | def regnetx320(**kwargs):
"\n RegNetX-32GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locati... | def regnetx320(**kwargs):
"\n RegNetX-32GF model from 'Designing Network Design Spaces,' https://arxiv.org/abs/2003.13678.\n\n Parameters:\n ----------\n pretrained : bool, default False\n Whether to load the pretrained weights for model.\n root : str, default '~/.torch/models'\n Locati... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.