query
stringlengths
10
2k
document
stringlengths
20
51.2k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
cidr_block must be specified in CIDR notation.
def cidr_block(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "cidr_block")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cidr_block(self, cidr_block):\n self._cidr_block = cidr_block", "def validate_network_cidr(network_cidr):\n compressed_network_cidr = ''\n while True:\n try:\n compressed_network_cidr = ipaddress.ip_network(network_cidr)\n break\n except ValueError:\n ...
[ "0.7295626", "0.71386415", "0.69279796", "0.67995924", "0.67856276", "0.67648405", "0.6729557", "0.66999584", "0.6649946", "0.6649946", "0.6598423", "0.65897006", "0.65545976", "0.65545976", "0.65165895", "0.6469174", "0.6463293", "0.64566743", "0.64337647", "0.6398839", "0.6...
0.7315977
0
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
def autoprovisioning_node_pool_defaults(self) -> Optional[pulumi.Input['AutoprovisioningNodePoolDefaultsArgs']]: return pulumi.get(self, "autoprovisioning_node_pool_defaults")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def node_config_defaults(self) -> Optional[pulumi.Input['NodeConfigDefaultsArgs']]:\n return pulumi.get(self, \"node_config_defaults\")", "def __init__(__self__, *,\n node_config_defaults: Optional[pulumi.Input['NodeConfigDefaultsArgs']] = None):\n if node_config_defaults is not Non...
[ "0.6978928", "0.5996873", "0.58604527", "0.5760055", "0.5733892", "0.56809855", "0.5672053", "0.5611068", "0.5603442", "0.5583039", "0.5562379", "0.5509688", "0.54714257", "0.54708904", "0.54292977", "0.5423023", "0.5422067", "0.54193115", "0.54193115", "0.5392284", "0.539061...
0.8698095
0
Type of the integration.
def type(self) -> Optional[pulumi.Input['ClusterTelemetryType']]: return pulumi.get(self, "type")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def integration_type(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"integration_type\")", "def integration_type(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"integration_type\")", "def integration_type(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"integration_t...
[ "0.820422", "0.820422", "0.820422", "0.820422", "0.820422", "0.820422", "0.820422", "0.7156329", "0.7156329", "0.7156329", "0.70545596", "0.69629854", "0.69293", "0.69293", "0.69293", "0.69293", "0.69293", "0.69293", "0.69293", "0.69293", "0.69293", "0.69293", "0.69293", ...
0.0
-1
cluster_dns_domain is the suffix used for all cluster service records.
def cluster_dns_domain(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "cluster_dns_domain")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cluster_dns(self) -> Optional[pulumi.Input['DNSConfigClusterDns']]:\n return pulumi.get(self, \"cluster_dns\")", "def domain_dns_name(self):\n domain_dn = self.get_default_basedn()\n return domain_dn.canonical_str().split('/')[0]", "def service_dns_name(self) -> pulumi.Output[Optional[...
[ "0.7295676", "0.625287", "0.62052584", "0.61904615", "0.61464804", "0.60983056", "0.5964761", "0.59194505", "0.5895485", "0.5850565", "0.583463", "0.583463", "0.58300406", "0.57045186", "0.57045186", "0.5674422", "0.5674422", "0.5674422", "0.5646531", "0.564578", "0.56078637"...
0.78019845
0
cluster_dns_scope indicates the scope of access to cluster DNS records.
def cluster_dns_scope(self) -> Optional[pulumi.Input['DNSConfigClusterDnsScope']]: return pulumi.get(self, "cluster_dns_scope")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cluster_dns(self) -> Optional[pulumi.Input['DNSConfigClusterDns']]:\n return pulumi.get(self, \"cluster_dns\")", "def include_cluster_scope_resources(self) -> pulumi.Input[bool]:\n return pulumi.get(self, \"include_cluster_scope_resources\")", "def cluster_dns_domain(self) -> Optional[pulumi....
[ "0.68668354", "0.61741817", "0.6145002", "0.60903955", "0.604395", "0.51137537", "0.48803207", "0.4832394", "0.47417116", "0.47415844", "0.46907976", "0.46617272", "0.46266314", "0.46149784", "0.45979777", "0.45791462", "0.45702174", "0.4556661", "0.4556661", "0.4531862", "0....
0.8186223
0
Name of CloudKMS key to use for the encryption of secrets in etcd. Ex. projects/myproject/locations/global/keyRings/myring/cryptoKeys/mykey
def key_name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "key_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kms_key_name(self) -> str:\n return pulumi.get(self, \"kms_key_name\")", "def kms_key_name(self) -> str:\n return pulumi.get(self, \"kms_key_name\")", "def kms_key_name(self) -> str:\n return pulumi.get(self, \"kms_key_name\")", "def key_name(self) -> str:\n return pulumi.get(...
[ "0.6932036", "0.6932036", "0.6932036", "0.6581766", "0.6576441", "0.6507922", "0.6490888", "0.64759994", "0.64527553", "0.64527553", "0.6402277", "0.63319826", "0.62615174", "0.62352186", "0.622014", "0.62171024", "0.620342", "0.6186444", "0.61841846", "0.61773026", "0.616961...
0.0
-1
DefaultSnatStatus contains the desired state of whether default sNAT should be disabled on the cluster.
def __init__(__self__, *, disabled: Optional[pulumi.Input[bool]] = None): if disabled is not None: pulumi.set(__self__, "disabled", disabled)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def default_snat_status(self) -> Optional[pulumi.Input['DefaultSnatStatusArgs']]:\n return pulumi.get(self, \"default_snat_status\")", "def defaultStatus(self):\n raise NotImplementedError", "def get_default_status(self):\n return self.bot_data_file[\"bot_status\"][\"defaultStatus\"]", "...
[ "0.7937503", "0.6139908", "0.6020143", "0.5659079", "0.5649025", "0.5597702", "0.55534506", "0.5534256", "0.5468412", "0.5392804", "0.5317269", "0.5256101", "0.5233359", "0.5165919", "0.5137525", "0.51078", "0.51078", "0.51078", "0.51078", "0.51078", "0.51025236", "0.506572...
0.0
-1
Whether NodeLocal DNSCache is enabled for this cluster.
def enabled(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "enabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def local_network_check():\n return (\n network.show_active() in LOCAL_BLOCKCHAIN_ENVINROMENTS\n or network.show_active() in FORKED_LOCAL_ENVIRONMENTS\n )", "def local(self) -> pulumi.Output[Optional[bool]]:\n return pulumi.get(self, \"local\")", "def local(self):\n return sel...
[ "0.63919705", "0.6305704", "0.6203176", "0.6137653", "0.6136169", "0.6033478", "0.59937406", "0.59478545", "0.59440804", "0.5943962", "0.59403205", "0.5940139", "0.5940139", "0.589199", "0.58551335", "0.5765214", "0.57427824", "0.56952626", "0.56844896", "0.568168", "0.567379...
0.0
-1
The type of GPU sharing strategy to enable on the GPU node.
def gpu_sharing_strategy(self) -> Optional[pulumi.Input['GPUSharingConfigGpuSharingStrategy']]: return pulumi.get(self, "gpu_sharing_strategy")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gpu_sharing_config(self) -> Optional[pulumi.Input['GPUSharingConfigArgs']]:\n return pulumi.get(self, \"gpu_sharing_config\")", "def __init__(__self__, *,\n gpu_sharing_strategy: Optional[pulumi.Input['GPUSharingConfigGpuSharingStrategy']] = None,\n max_shared_clients_p...
[ "0.6999585", "0.638387", "0.60468626", "0.5714503", "0.5630761", "0.5605401", "0.5499358", "0.549488", "0.5492516", "0.5491615", "0.53924274", "0.5367299", "0.5322339", "0.5223662", "0.5223662", "0.5223662", "0.5215853", "0.5215853", "0.5215853", "0.51996523", "0.5180973", ...
0.83235633
0
GatewayAPIConfig contains the desired config of Gateway API on this cluster.
def __init__(__self__, *, channel: Optional[pulumi.Input['GatewayAPIConfigChannel']] = None): if channel is not None: pulumi.set(__self__, "channel", channel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gateway_api_config(self) -> Optional[pulumi.Input['GatewayAPIConfigArgs']]:\n return pulumi.get(self, \"gateway_api_config\")", "def gateway_config(self) -> 'outputs.GatewayConfigResponse':\n return pulumi.get(self, \"gateway_config\")", "def customer_gateway_configuration(self) -> pulumi.Out...
[ "0.81261253", "0.7781281", "0.6295483", "0.6138583", "0.5956339", "0.5954815", "0.5751265", "0.56417614", "0.5631036", "0.55987793", "0.5577658", "0.5458994", "0.54358375", "0.5433069", "0.54186434", "0.5413947", "0.5400312", "0.53799933", "0.53232485", "0.5305247", "0.528442...
0.0
-1
A custom subnetwork name to be used if `create_subnetwork` is true. If this field is empty, then an automatic name will be chosen for the new subnetwork.
def subnetwork_name(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "subnetwork_name")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_subnetwork(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"create_subnetwork\")", "def get_aci_subnet_name(self) -> Union[str, None]:\n # determine the value of constants\n addon_consts = self.get_addon_consts()\n CONST_VIRTUAL_NODE_ADDON_NAME = addon_con...
[ "0.6260969", "0.6124655", "0.6038582", "0.5982194", "0.5891447", "0.5881921", "0.5828037", "0.5732791", "0.570145", "0.5689192", "0.5689192", "0.5622383", "0.5620678", "0.560584", "0.560584", "0.5547489", "0.5517213", "0.54902077", "0.5339464", "0.5326262", "0.5301336", "0....
0.79209423
0
Whether Istio is enabled for this cluster.
def disabled(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "disabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cluster_enabled(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"cluster_enabled\")", "def cluster_enabled(self) -> pulumi.Output[bool]:\n return pulumi.get(self, \"cluster_enabled\")", "def sso_enabled(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, ...
[ "0.67608637", "0.6659078", "0.65709406", "0.6424367", "0.6424367", "0.6424367", "0.6424367", "0.6424367", "0.6424367", "0.62932706", "0.62932706", "0.62932706", "0.62932706", "0.62932706", "0.62932706", "0.62932706", "0.62932706", "0.62438023", "0.6226395", "0.6198195", "0.60...
0.0
-1
Whether the Kubernetes Dashboard is enabled for this cluster.
def disabled(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "disabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cluster_enabled(self) -> pulumi.Output[bool]:\n return pulumi.get(self, \"cluster_enabled\")", "def cluster_enabled(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"cluster_enabled\")", "def enable_kubernetes_alpha(self) -> bool:\n return pulumi.get(self, \"enable_kub...
[ "0.73914987", "0.7033705", "0.70277447", "0.67877203", "0.67877203", "0.67877203", "0.67877203", "0.67877203", "0.67877203", "0.6573913", "0.6570854", "0.65403694", "0.65403694", "0.65403694", "0.65403694", "0.65403694", "0.65403694", "0.65403694", "0.65403694", "0.6538891", ...
0.0
-1
Whether the ABAC authorizer is enabled for this cluster. When enabled, identities in the system, including service accounts, nodes, and controllers, will have statically granted permissions beyond those provided by the RBAC configuration or IAM.
def enabled(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "enabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def enable_rbac(self) -> bool:\n return pulumi.get(self, \"enable_rbac\")", "def enable_rbac(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"enable_rbac\")", "def fine_grained_authorization_enabled(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"fine_g...
[ "0.70664895", "0.6860153", "0.67973214", "0.66915077", "0.66915077", "0.65277165", "0.6470877", "0.6463241", "0.63910085", "0.63910085", "0.6218458", "0.6198574", "0.6194914", "0.61882865", "0.61882865", "0.6181241", "0.6134774", "0.61231315", "0.61144155", "0.61085075", "0.6...
0.0
-1
The desired datapath provider for this cluster. By default, uses the IPTablesbased kubeproxy implementation.
def datapath_provider(self) -> Optional[pulumi.Input['NetworkConfigDatapathProvider']]: return pulumi.get(self, "datapath_provider")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def provider(self) -> Optional[pulumi.Input['NetworkPolicyProvider']]:\n return pulumi.get(self, \"provider\")", "def get_data_provider_by_path(path, train_params):\n return DataProvider(path, **train_params)", "def get_configured_provider():\n return config.is_provider_configured(\n __opts...
[ "0.54103315", "0.5221272", "0.51500076", "0.51230955", "0.51168764", "0.50879043", "0.50691324", "0.5004161", "0.5004161", "0.5002644", "0.49752817", "0.49433085", "0.49302122", "0.49262226", "0.48969758", "0.48957744", "0.48865584", "0.48831013", "0.48748106", "0.48683456", ...
0.7482096
0
Whether the cluster disables default innode sNAT rules. Innode sNAT rules will be disabled when default_snat_status is disabled. When disabled is set to false, default IP masquerade rules will be applied to the nodes to prevent sNAT on cluster internal traffic.
def default_snat_status(self) -> Optional[pulumi.Input['DefaultSnatStatusArgs']]: return pulumi.get(self, "default_snat_status")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def disable_outbound_nat(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"disable_outbound_nat\")", "def enable_snat(self) -> bool:\n return pulumi.get(self, \"enable_snat\")", "def is_natserver_enabled(self):\n\t\treturn bool(call_sdk_function('PrlVirtNet_IsNATServerEnabled', s...
[ "0.62285113", "0.5977062", "0.5686566", "0.5519526", "0.541283", "0.5300859", "0.52133054", "0.51941633", "0.51747686", "0.51368445", "0.51206094", "0.51206094", "0.5099738", "0.5077079", "0.50509566", "0.50274336", "0.50193423", "0.49629778", "0.49535996", "0.4918284", "0.48...
0.5033793
15
Whether Intranode visibility is enabled for this cluster. This makes same node pod to pod traffic visible for VPC network.
def enable_intra_node_visibility(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "enable_intra_node_visibility")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def public_network_access_enabled(self) -> pulumi.Output[bool]:\n return pulumi.get(self, \"public_network_access_enabled\")", "def public_network_access_enabled(self) -> pulumi.Output[Optional[bool]]:\n return pulumi.get(self, \"public_network_access_enabled\")", "def public_network_access_enabl...
[ "0.6564068", "0.6482874", "0.6482874", "0.6447415", "0.64361393", "0.64361393", "0.64361393", "0.64361393", "0.64361393", "0.64361393", "0.63285637", "0.6265052", "0.6265052", "0.6146247", "0.5980453", "0.5931495", "0.58822626", "0.5860827", "0.57838607", "0.57838607", "0.572...
0.6743872
0
GatewayAPIConfig contains the desired config of Gateway API on this cluster.
def gateway_api_config(self) -> Optional[pulumi.Input['GatewayAPIConfigArgs']]: return pulumi.get(self, "gateway_api_config")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gateway_config(self) -> 'outputs.GatewayConfigResponse':\n return pulumi.get(self, \"gateway_config\")", "def customer_gateway_configuration(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"customer_gateway_configuration\")", "def customer_gateway_configuration(self) -> Optional[pulum...
[ "0.77795833", "0.6293454", "0.6136225", "0.5955239", "0.5954035", "0.5751422", "0.5641369", "0.56298286", "0.55986744", "0.55757254", "0.5459863", "0.54363066", "0.54303056", "0.5418938", "0.54141563", "0.5400779", "0.5380245", "0.53241175", "0.5305148", "0.5284446", "0.52706...
0.8124538
0
Whether NetworkPolicy is enabled for this cluster.
def disabled(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "disabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def policy_net(self) -> bool:\n raise NotImplementedError()", "def public_network_access_enabled(self) -> pulumi.Output[bool]:\n return pulumi.get(self, \"public_network_access_enabled\")", "def public_network_access_enabled(self) -> pulumi.Output[Optional[bool]]:\n return pulumi.get(self,...
[ "0.7266432", "0.69333047", "0.6893729", "0.6893729", "0.68932956", "0.6761255", "0.6761255", "0.6761255", "0.6761255", "0.6761255", "0.6761255", "0.6759527", "0.65796417", "0.6569208", "0.65581715", "0.6517087", "0.65022135", "0.6378716", "0.6376428", "0.63485444", "0.6348544...
0.0
-1
Whether network policy is enabled on the cluster.
def enabled(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "enabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def policy_net(self) -> bool:\n raise NotImplementedError()", "def public_network_access_enabled(self) -> pulumi.Output[bool]:\n return pulumi.get(self, \"public_network_access_enabled\")", "def public_network_access_enabled(self) -> pulumi.Output[Optional[bool]]:\n return pulumi.get(self,...
[ "0.7554819", "0.71290195", "0.70475495", "0.70475495", "0.6935605", "0.6935605", "0.6935605", "0.6935605", "0.6935605", "0.6935605", "0.68741465", "0.6719715", "0.6702971", "0.66139084", "0.6601564", "0.6563634", "0.6458812", "0.6445642", "0.64239156", "0.6392966", "0.6376011...
0.0
-1
The selected network policy provider.
def provider(self) -> Optional[pulumi.Input['NetworkPolicyProvider']]: return pulumi.get(self, "provider")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def network_policy(self) -> Optional[pulumi.Input[Union[str, 'NetworkPolicy']]]:\n return pulumi.get(self, \"network_policy\")", "def network_policy(self) -> 'outputs.NetworkPolicyResponse':\n return pulumi.get(self, \"network_policy\")", "def network_access_policy(self) -> Optional[str]:\n ...
[ "0.7337268", "0.6917178", "0.6874204", "0.6590294", "0.6575362", "0.6445077", "0.6445077", "0.6373922", "0.6356771", "0.62200534", "0.6214015", "0.6198692", "0.61460936", "0.61300784", "0.6080133", "0.6034522", "0.6034522", "0.6034522", "0.5976777", "0.5931664", "0.5920637", ...
0.83899355
0
Collection of Compute Engine network tags that can be applied to a node's underlying VM instance. (See `tags` field in [`NodeConfig`](/kubernetesengine/docs/reference/rest/v1/NodeConfig)).
def __init__(__self__, *, tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None): if tags is not None: pulumi.set(__self__, "tags", tags)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def network_tags(self) -> Optional[pulumi.Input['NetworkTagsArgs']]:\n return pulumi.get(self, \"network_tags\")", "def get_node_tags(self):\n\n return loads(self.scala_features.getNodeTags())", "def tags(self) -> Mapping[str, Any]:\n return pulumi.get(self, \"tags\")", "def tags(self) -...
[ "0.7755168", "0.67744327", "0.6527533", "0.6527533", "0.64996475", "0.64996475", "0.64996475", "0.64996475", "0.6439683", "0.6412134", "0.63743937", "0.63743937", "0.63743937", "0.63743937", "0.63743937", "0.63743937", "0.63743937", "0.63743937", "0.63691795", "0.63524586", "...
0.0
-1
Subset of NodeConfig message that has defaults.
def __init__(__self__, *, gcfs_config: Optional[pulumi.Input['GcfsConfigArgs']] = None, logging_config: Optional[pulumi.Input['NodePoolLoggingConfigArgs']] = None): if gcfs_config is not None: pulumi.set(__self__, "gcfs_config", gcfs_config) if logging_confi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def node_config_defaults(self) -> Optional[pulumi.Input['NodeConfigDefaultsArgs']]:\n return pulumi.get(self, \"node_config_defaults\")", "def defaults(self):\n return self.conf.get(\"defaults\", [])", "def get_config_defaults(self): # pylint: disable=R0201\n return {}", "def defaults(self)...
[ "0.7073126", "0.64167774", "0.6226875", "0.6195168", "0.61647373", "0.606503", "0.60111064", "0.5998546", "0.5993809", "0.5940828", "0.59369713", "0.5914106", "0.5913878", "0.59038645", "0.58400184", "0.58025664", "0.5765187", "0.5757522", "0.5752747", "0.5752747", "0.5713869...
0.0
-1
Whether the nodes will be automatically repaired.
def auto_repair(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "auto_repair")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsWiredUp(self):\n return self.wired.IsUp()", "def auto_renew(self) -> Optional[bool]:\n return pulumi.get(self, \"auto_renew\")", "def auto_renew(self) -> Optional[bool]:\n return pulumi.get(self, \"auto_renew\")", "def recurrent(self):\n return False", "def is_replicated()...
[ "0.6156946", "0.6108313", "0.6108313", "0.6089827", "0.6023065", "0.59465474", "0.59455496", "0.5914087", "0.58855116", "0.5882146", "0.5878512", "0.5878512", "0.58326775", "0.5818308", "0.5795808", "0.5794373", "0.57785326", "0.5762452", "0.5740944", "0.567282", "0.5671106",...
0.5586002
32
Whether nodes have internal IP addresses only. If enable_private_nodes is not specified, then the value is derived from cluster.privateClusterConfig.enablePrivateNodes
def enable_private_nodes(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "enable_private_nodes")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_enable_private_cluster(self) -> bool:\n\n return self._get_enable_private_cluster(enable_validation=True)", "def is_network_node():\n return config.NODE_IP == config.NETWORK_NODE_IP", "def isInternal(self):\n\n\t\t# TODO optimization do we really need to look at the host attributes?\n\t\t# ma...
[ "0.67511094", "0.6661181", "0.6615243", "0.6589222", "0.65633595", "0.6463869", "0.6463869", "0.6462801", "0.6456042", "0.6456042", "0.6456042", "0.6456042", "0.6456042", "0.6456042", "0.6442103", "0.6331621", "0.6217448", "0.61817676", "0.6134497", "0.6058345", "0.60217553",...
0.786271
0
Is autoscaling enabled for this node pool.
def enabled(self) -> Optional[pulumi.Input[bool]]: return pulumi.get(self, "enabled")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def auto_scaling_enabled(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"auto_scaling_enabled\")", "def enable_auto_scaling(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"enable_auto_scaling\")", "def autoscale_is_enabled(self) -> Optional[pulumi.Input[bool]...
[ "0.8075636", "0.78961545", "0.7873195", "0.7873195", "0.7873195", "0.7873195", "0.7873195", "0.7338757", "0.7095655", "0.7012285", "0.68350685", "0.65714663", "0.65284944", "0.6241209", "0.6200853", "0.6083066", "0.59770083", "0.5834976", "0.5825914", "0.58231443", "0.5730417...
0.0
-1
Minimum number of nodes for one location in the NodePool. Must be >= 1 and <= max_node_count.
def min_node_count(self) -> Optional[pulumi.Input[int]]: return pulumi.get(self, "min_node_count")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def min_node_count(self) -> int:\n return pulumi.get(self, \"min_node_count\")", "def min_nodes(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"min_nodes\")", "def max_nodes(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"max_nodes\")", "def max_node_count(self) -> int:\n...
[ "0.77004045", "0.72532815", "0.6987585", "0.69551116", "0.68049365", "0.6797192", "0.6791436", "0.6584672", "0.658003", "0.6536699", "0.6536139", "0.65107656", "0.64876086", "0.64418083", "0.6426835", "0.6423882", "0.63656336", "0.63364476", "0.6299788", "0.6280075", "0.62227...
0.73566484
1
Minimum number of nodes in the node pool. Must be greater than 1 less than total_max_node_count. The total__node_count fields are mutually exclusive with the _node_count fields.
def total_min_node_count(self) -> Optional[pulumi.Input[int]]: return pulumi.get(self, "total_min_node_count")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def min_node_count(self) -> int:\n return pulumi.get(self, \"min_node_count\")", "def min_node_count(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"min_node_count\")", "def min_nodes(self) -> pulumi.Input[int]:\n return pulumi.get(self, \"min_nodes\")", "def data_flow_...
[ "0.82588077", "0.7790541", "0.7729704", "0.70056033", "0.683275", "0.6782293", "0.6772673", "0.6675165", "0.666484", "0.66255903", "0.6602754", "0.65933985", "0.65109295", "0.6489438", "0.64606667", "0.6454202", "0.6448497", "0.64022034", "0.63857496", "0.637753", "0.63641375...
0.76679355
3
Subset of NodeConfig message that has defaults.
def node_config_defaults(self) -> Optional[pulumi.Input['NodeConfigDefaultsArgs']]: return pulumi.get(self, "node_config_defaults")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def defaults(self):\n return self.conf.get(\"defaults\", [])", "def get_config_defaults(self): # pylint: disable=R0201\n return {}", "def defaults(self):\n return self._config_parser.defaults()", "def default_configs(cls):\n return {\n 'redirect_path': None,\n '...
[ "0.64167774", "0.6226875", "0.6195168", "0.61647373", "0.606503", "0.60111064", "0.5998546", "0.5993809", "0.5940828", "0.59369713", "0.5914106", "0.5913878", "0.59038645", "0.58400184", "0.58025664", "0.5765187", "0.5757522", "0.5752747", "0.5752747", "0.5713869", "0.5707221...
0.7073126
0
Autoscaler configuration for this NodePool. Autoscaler is enabled only if a valid configuration is present.
def autoscaling(self) -> Optional[pulumi.Input['NodePoolAutoscalingArgs']]: return pulumi.get(self, "autoscaling")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def auto_scaling(self, auto_scaling):\n\n self.container['auto_scaling'] = auto_scaling", "def auto_scaling_enabled(self) -> Optional[pulumi.Input[bool]]:\n return pulumi.get(self, \"auto_scaling_enabled\")", "def auto_scaling(self):\n return self.container['auto_scaling']", "def enable_...
[ "0.62509847", "0.6054111", "0.59955", "0.5949852", "0.59390616", "0.5787928", "0.57219857", "0.57028383", "0.56694376", "0.56694376", "0.5578466", "0.55406183", "0.55182606", "0.5411335", "0.5387907", "0.53743875", "0.5372177", "0.5372177", "0.5372177", "0.5372177", "0.537217...
0.7146177
0
The IP range in CIDR notation to use for the hosted master network. This range will be used for assigning internal IP addresses to the master or set of masters, as well as the ILB VIP. This range must not overlap with any other ranges in use within the cluster's network.
def master_ipv4_cidr_block(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "master_ipv4_cidr_block")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_ip_range(self):\n return self._ip_range", "def get_network_ip_range():\n ip_set = set()\n default_route = get_default_route()\n\n assert default_route[1] == sc.conf.iface, \"incorrect sc.conf.iface\"\n\n iface_str = ''\n if sys.platform.startswith('win'):\n iface_info = sc.co...
[ "0.65949136", "0.6376697", "0.6362579", "0.6070472", "0.59038234", "0.59038234", "0.5867433", "0.5852379", "0.5790832", "0.57791513", "0.5760561", "0.5759931", "0.56949407", "0.56928706", "0.56928706", "0.56820977", "0.56820977", "0.56688267", "0.56684494", "0.56684494", "0.5...
0.590392
4
The desired Pub/Sub topic to which notifications will be sent by GKE. Format is `projects/{project}/topics/{topic}`.
def topic(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "topic")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pubsub_topic(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"pubsub_topic\")", "def pubsub_topic(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"pubsub_topic\")", "def topic(self):\n return self.config.get('topic', f'{NAMESPACE}/{self.id}')", "def __get_top...
[ "0.7441339", "0.7326441", "0.70667523", "0.702062", "0.68864673", "0.6836166", "0.68026054", "0.67033464", "0.662719", "0.659421", "0.65444887", "0.6524573", "0.6471048", "0.64360195", "0.6408398", "0.6354188", "0.63113815", "0.62181896", "0.62092686", "0.6190859", "0.6188981...
0.66700894
8
Corresponds to the type of reservation consumption.
def consume_reservation_type(self) -> Optional[pulumi.Input['ReservationAffinityConsumeReservationType']]: return pulumi.get(self, "consume_reservation_type")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reservation(self):\n return self._reservation", "def reservation(self):\n return self.request.get('reservation', None)", "def resource_type(self):\n return 'qos'", "def customer_usage_type(self):\n return self._customer_usage_type", "def type(self, type):\n allowed_va...
[ "0.6162628", "0.5942025", "0.5848099", "0.5794979", "0.5665111", "0.5359222", "0.52776504", "0.52776504", "0.5266713", "0.5255489", "0.5253087", "0.5238333", "0.5206946", "0.52025956", "0.5183962", "0.51074207", "0.50789523", "0.50531906", "0.5045854", "0.5041065", "0.5037935...
0.714684
0
Corresponds to the label value(s) of reservation resource(s).
def values(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: return pulumi.get(self, "values")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def build_resource_labels(self):\n response = [ \n {\n \"key\": \"instance_id\", \n \"value\": \"9113659852587170607\"\n }, \n {\n \"key\": \"project_id\", \n \"value\": \"YOUR_PROJECT_ID\"\n }, \n ...
[ "0.6520827", "0.6366956", "0.6178292", "0.6085227", "0.6031972", "0.5922366", "0.5887062", "0.5836875", "0.5836875", "0.5836875", "0.5836875", "0.5836875", "0.5836875", "0.5836875", "0.5836875", "0.5794713", "0.5767923", "0.56738096", "0.56718594", "0.5662039", "0.5648175", ...
0.0
-1
Minimum amount of the resource in the cluster.
def minimum(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "minimum")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def min_node_count(self) -> int:\n return pulumi.get(self, \"min_node_count\")", "def minimum_health_capacity(self):\n return self._minimum_health_capacity", "def min_capacity(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"min_capacity\")", "def min_capacity(self) -> O...
[ "0.7522344", "0.7493416", "0.7300508", "0.7300508", "0.7300508", "0.7246081", "0.72237337", "0.7178109", "0.717121", "0.7146322", "0.7112322", "0.7054269", "0.7008436", "0.6950583", "0.6929269", "0.6849827", "0.6824205", "0.6814833", "0.6805849", "0.67539763", "0.6743222", ...
0.61986476
100
Resource name "cpu", "memory" or gpuspecific string.
def resource_type(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "resource_type")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def generate_cpu():\n kind = constants['config_cpu_type']['value']\n\n if kind == 'VEXRISCV':\n return \"\"\"\ncpu: CPU.VexRiscv @ sysbus\n\"\"\"\n elif kind == 'PICORV32':\n return \"\"\"\ncpu: CPU.PicoRV32 @ sysbus\n cpuType: \"rv32imc\"\n\"\"\"\n else:\n raise Exception('Unsu...
[ "0.6506606", "0.62446934", "0.60802096", "0.58635247", "0.58635247", "0.58635247", "0.5812008", "0.5812008", "0.5812008", "0.5812008", "0.5812008", "0.57231283", "0.5708041", "0.56818324", "0.5658565", "0.5651884", "0.5651884", "0.56289166", "0.56103104", "0.559259", "0.55867...
0.5308715
50
StatusCondition describes why a cluster or a node pool has a certain status (e.g., ERROR or DEGRADED).
def __init__(__self__, *, canonical_code: Optional[pulumi.Input['StatusConditionCanonicalCode']] = None, code: Optional[pulumi.Input['StatusConditionCode']] = None, message: Optional[pulumi.Input[str]] = None): if canonical_code is not None: pulumi....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Condition(condition_type,\n status=\"Unknown\",\n severity=\"\",\n msg=\"\",\n reason=\"\",\n last_transition_time=\"\"):\n condition = run_v1_messages.GoogleCloudRunV1Condition()\n condition.type = condition_type\n condition.status = status\n...
[ "0.60336673", "0.5985326", "0.5916754", "0.588717", "0.5774369", "0.5767816", "0.5684553", "0.5604704", "0.5588102", "0.55840176", "0.55648154", "0.5557574", "0.5528007", "0.55232215", "0.5521568", "0.5505505", "0.55050397", "0.55043894", "0.55011684", "0.5488868", "0.5473027...
0.0
-1
Machinefriendly representation of the condition Deprecated. Use canonical_code instead.
def code(self) -> Optional[pulumi.Input['StatusConditionCode']]: warnings.warn("""Machine-friendly representation of the condition Deprecated. Use canonical_code instead.""", DeprecationWarning) pulumi.log.warn("""code is deprecated: Machine-friendly representation of the condition Deprecated. Use canon...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(__self__, *,\n canonical_code: Optional[pulumi.Input['StatusConditionCanonicalCode']] = None,\n code: Optional[pulumi.Input['StatusConditionCode']] = None,\n message: Optional[pulumi.Input[str]] = None):\n if canonical_code is not None:\n ...
[ "0.62545115", "0.62524307", "0.57176673", "0.5665842", "0.5643358", "0.56283134", "0.55023724", "0.54451126", "0.54451126", "0.54451126", "0.54451126", "0.54451126", "0.54451126", "0.5442168", "0.5442168", "0.5420973", "0.5402998", "0.53414404", "0.5337728", "0.53249556", "0....
0.78094393
0
The time that the window ends. The end time should take place after the start time.
def end_time(self) -> Optional[pulumi.Input[str]]: return pulumi.get(self, "end_time")
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def end_time(self) -> float:\r\n ...", "def ends(self):\n return self.time_end", "def end_time(self):\n pass", "def end_time(self):\n return self._end_time", "def end_time(self):\n return self._end_time", "def end_time(self):\n return self._end_time", "def end_...
[ "0.7941849", "0.7646481", "0.7608126", "0.74853957", "0.74853957", "0.74853957", "0.74853957", "0.74853957", "0.74853957", "0.7427816", "0.7358816", "0.7352989", "0.7247971", "0.72371536", "0.7175869", "0.71304977", "0.7080278", "0.7076917", "0.7041326", "0.7012669", "0.70041...
0.63068503
63
VerticalPodAutoscaling contains global, percluster information required by Vertical Pod Autoscaler to automatically adjust the resources of pods controlled by it.
def __init__(__self__, *, enabled: Optional[pulumi.Input[bool]] = None): if enabled is not None: pulumi.set(__self__, "enabled", enabled)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vertical_pod_autoscaling(self) -> 'outputs.VerticalPodAutoscalingResponse':\n return pulumi.get(self, \"vertical_pod_autoscaling\")", "def auto_scaling(self):\n return self.container['auto_scaling']", "def __init__(__self__, *,\n keda: Optional[pulumi.Input['ManagedClusterWork...
[ "0.7540712", "0.58710134", "0.58135444", "0.5670028", "0.56098026", "0.5492663", "0.54112417", "0.533014", "0.5188553", "0.4992742", "0.49906728", "0.49198171", "0.4902832", "0.48349452", "0.4832719", "0.48124385", "0.47231627", "0.47057888", "0.47014657", "0.4699134", "0.460...
0.0
-1
Assemble the default production cost bids.
def _assemble_default_cost_bids(self, production_cost_bid_pairs): self._check_empty_and_sort_cost_pairs( pair_description="production cost pairs", pairs=production_cost_bid_pairs ) if production_cost_bid_pairs[0][0] != self.p_min: raise ValueError( f"The...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _set_costs(self):\n plant_size_kw = (self.sam_sys_inputs[\"resource_potential\"]\n / self._RESOURCE_POTENTIAL_MULT) * 1000\n\n cc_per_kw = self.sam_sys_inputs.pop(\"capital_cost_per_kw\", None)\n if cc_per_kw is not None:\n capital_cost = cc_per_kw * plan...
[ "0.5811237", "0.5535839", "0.5493378", "0.5450576", "0.5359347", "0.5323756", "0.5323632", "0.526767", "0.5243441", "0.5234343", "0.5202831", "0.5197086", "0.51873165", "0.5180124", "0.51746184", "0.51744854", "0.5159871", "0.5118094", "0.51059246", "0.5090434", "0.5043174", ...
0.6376479
0
Set up the membership folder at /membership. This will act as a members folder. Set Member Area Creation On
def turn_on_member_workspaces(context): portal = context.getSite() if "Members" in portal.objectIds(): portal.manage_delObjects(ids=["Members"]) if "membership" not in portal.objectIds(): # create members container folder and set default properties pt = portal["portal_types"]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def configure_extra(context):\n portal_url = getToolByName(context, 'portal_url')\n pm = getToolByName(context, 'portal_membership')\n portal = portal_url.getPortalObject()\n security = ISecuritySchema(portal)\n\n if not security.enable_self_reg:\n security.enable_self_reg = True\n\n if no...
[ "0.61209947", "0.60937643", "0.60837805", "0.57825136", "0.5724412", "0.56348443", "0.54951835", "0.5422082", "0.53825474", "0.53743386", "0.53285605", "0.5295674", "0.5293252", "0.52816916", "0.5264413", "0.52382934", "0.52372843", "0.52315086", "0.52312267", "0.51985276", "...
0.6894312
0
Convert class labels from scalars to onehot vectors.
def dense_to_one_hot(labels, n_classes=2): labels = np.array(labels) n_labels = labels.shape[0] index_offset = np.arange(n_labels) * n_classes labels_one_hot = np.zeros((n_labels, n_classes), dtype=np.float32) labels_one_hot.flat[index_offset + labels.ravel()] = 1 return labels_one_hot
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def one_hot(labels, classes=None):\n return K.utils.to_categorical(labels, classes)", "def one_hot(labels, classes=None):\n\n one_hot_ = K.utils.to_categorical(labels, classes)\n return(one_hot_)", "def to_onehot(labels: torch.Tensor, num_classes: int) -> torch.Tensor:\n if len(labels.size()) == 1:...
[ "0.8250402", "0.807683", "0.80523187", "0.7977843", "0.7908335", "0.7900327", "0.7892233", "0.7869711", "0.7849721", "0.7849721", "0.7826951", "0.77677035", "0.7765413", "0.77540547", "0.77540547", "0.77540547", "0.77489346", "0.7742955", "0.7737176", "0.77226317", "0.7712328...
0.7826122
11
Returns the CSV file with the naming nomenclature as 'ProductDate_Time'
def write_csv(arr, product, file_path): os.chdir(file_path) keys = arr[0].keys() now = datetime.now() file_name = product + now.strftime("%m%d%y_%H%M") + '.csv' try: with open(file_name, "w", newline='', encoding='utf-8') as a_file: dict_writer = csv.DictWriter(a_file, keys) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _write_csv(self):\n\n # add the label to the header\n if self.input_data.get_value(InputType.TIME_PERIOD) == 'all':\n self.header.append('Date')\n else:\n self.header.append('sample id')\n\n key_list = []\n\n for i, cube in enumerate(self.cube_list):\n ...
[ "0.6323092", "0.6281912", "0.6188659", "0.59822613", "0.5857768", "0.5786459", "0.57854974", "0.5757041", "0.5657301", "0.56520957", "0.5636868", "0.55871224", "0.55706984", "0.55336624", "0.553065", "0.5500234", "0.54541", "0.54429966", "0.5432142", "0.541665", "0.5409488", ...
0.6739735
0
Get the first nonempty items in a list of strings.
def get_first_non_empty(inputList, num): i = num outputList = [] for item in inputList: if item.strip() == '': continue outputList.append(item.strip()) i -= 1 if i <= 0: break return outputList
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def first(items):\n return next(iter(items or []), None)", "def getfirst(s):\n return s[0] if isinstance(s, list) else s", "def remove_empty_string(str_list):\n return list(filter(None, str_list))", "def first(l):\n return next(iter(l), None)", "def first(items):\r\n return items[0]", "def...
[ "0.72678226", "0.67707294", "0.67652196", "0.66635954", "0.6636204", "0.6632901", "0.6512021", "0.6353351", "0.6353351", "0.61568373", "0.60235894", "0.59980136", "0.5970744", "0.5958725", "0.5933259", "0.58823574", "0.58787525", "0.5857146", "0.58520406", "0.58349895", "0.57...
0.729319
0
Fetch the currently playing song for Antenne Bayern.
def scrape_antenne_bayern(): url = 'http://www.antenne.de/musik/song-suche.html' result = get_multiple_tags(url, ['//p[@class="artist"]/a/text()', '//h2[@class="song_title"]/a/text()']) artistRaw = result[0] titleRaw = result[1] artist = None title = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def banshee_playing(self):\n try:\n self.banshee = self.bus.get_object(\"org.bansheeproject.Banshee\",\"/org/bansheeproject/Banshee/PlayerEngine\")\n status = self.banshee.GetCurrentState()\n \n if status == \"playing\":\n currentTrack = self.banshe...
[ "0.68734956", "0.64680195", "0.6408068", "0.6323687", "0.6308539", "0.62792975", "0.6220141", "0.6046095", "0.6004114", "0.60015535", "0.59757173", "0.59426033", "0.5937735", "0.59368736", "0.5911503", "0.5898778", "0.5838634", "0.5826527", "0.5762154", "0.57288355", "0.57139...
0.62595147
6
Fetch the currently playing song for Fritz.de radio.
def scrape_fritz(): url = 'http://www.fritz.de/musik/playlists/index.html' tag = get_tag(url, '//table[@class="playlist_aktueller_tag"]') if tag: tag = tag[0] else: return None title = tag.xpath('.//td[@class="tracktitle"]/text()') artist = tag.xpath('.//td[@class="trackinterpret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cur_song(self):\n if self._cur_song is None:\n self.restart()\n return self._cur_song", "def scrape_radio7():\n url = 'http://radio7.de/content/html/shared/playlist/index.html'\n div = get_tag(url, '//div[@class=\"win-pls-track-rgt\"]')[0]\n title = div.xpath('//h1/text()')[...
[ "0.6562394", "0.6334064", "0.6089743", "0.60274947", "0.5994308", "0.5986443", "0.59818274", "0.5938328", "0.5934662", "0.59129894", "0.590416", "0.5823662", "0.58163756", "0.57598454", "0.5741202", "0.57139546", "0.57138497", "0.5691966", "0.567474", "0.56690717", "0.5644001...
0.6004528
4
Returns True if the claimed identity can be verified. Look in the database to verify the identity, or in case of auth tokens, always consider known identities to be correct.
def verify_identity(identity): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_verified_identity(self):\n is_verified = False\n try:\n is_verified = self.user.identity.status\n except ObjectDoesNotExist:\n pass\n return is_verified", "def is_correctly_identified(self, identity = None):\n if identity is None:\n identity = sel...
[ "0.7348375", "0.6245775", "0.61648947", "0.6019919", "0.5988833", "0.58842", "0.58821887", "0.588157", "0.58741486", "0.58534205", "0.58532137", "0.58125836", "0.57956105", "0.5747296", "0.57020766", "0.5696635", "0.5678811", "0.5663328", "0.56233156", "0.5561124", "0.5556147...
0.6828669
1
Returns ``True`` if identity has permission for model object.
def permits(identity, obj, permission): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def has_object_permission(self, request, view, obj):\n return request.user == obj", "def has_object_permission(self, request, view, obj):\n if request.method in permissions.SAFE_METHODS:\n return True\n \n return obj.id == request.user.id", "def has_object_permission(self...
[ "0.8151391", "0.81408805", "0.81330055", "0.8127726", "0.8077253", "0.80448496", "0.8027977", "0.793677", "0.79201186", "0.7916054", "0.79069555", "0.78874046", "0.7885892", "0.78838664", "0.78654647", "0.7865023", "0.7803472", "0.77990925", "0.77665573", "0.7756092", "0.7724...
0.0
-1
Load JSON as some object. By default JSON is loaded as itself.
def load_json(request, json): return json
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load_json(self):\n\n self.load_json_str(self.get_json_str())", "def read_json(self, *args, **kwargs):\n with self.open('rb') as f:\n return json.load(f, *args, **kwargs)", "def load_json(json_str):\n return _api_internal._load_json(json_str)", "def json_load(self, json):\n ...
[ "0.7607119", "0.70865476", "0.7061669", "0.7021345", "0.6995318", "0.6982596", "0.6979617", "0.69532764", "0.6945583", "0.6921491", "0.68822044", "0.68773896", "0.68662566", "0.6865015", "0.6796446", "0.6790517", "0.677726", "0.6758949", "0.6733778", "0.67233264", "0.6715633"...
0.711831
1
Dump an object as JSON. ``obj`` is any Python object, try to interpret it as JSON.
def dump_json(request, obj): return obj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def to_json(obj):\n\n return json.dumps(obj, indent=2, default=_generated_class_serializer)", "def json_dumper(obj):\n try:\n return obj.to_dict()\n except AttributeError:\n return obj.__dict__", "def toJSON(cls, obj):\n return json.dumps(obj)", "def dumps(obj):\n return json...
[ "0.76828164", "0.75965375", "0.75252146", "0.74907905", "0.74203354", "0.73713136", "0.73232585", "0.72139806", "0.7191011", "0.7153364", "0.71094674", "0.7109327", "0.7097079", "0.70432997", "0.7032997", "0.6956284", "0.6953725", "0.69406635", "0.6914193", "0.68136984", "0.6...
0.64809984
49
Explicitly returns a string with this object's data
def to_string(self): return self.__str__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __str__(self):\n return str(self.get_data())", "def __str__(self):\n return str(self.__data)", "def __str__(self) -> str:\n return str(self.data)", "def __str__(self):\n return str(self.data)", "def __str__(self):\n return str(self.data)", "def __str__(self):\n ...
[ "0.8379221", "0.8337427", "0.83216596", "0.82313025", "0.82313025", "0.82313025", "0.82313025", "0.82313025", "0.8218816", "0.8218816", "0.82156986", "0.8124723", "0.8035977", "0.78890646", "0.786277", "0.7858178", "0.7858178", "0.7858178", "0.77801687", "0.77131647", "0.7604...
0.7351186
33
Implicitly returns a string with this object's data
def __str__(self): return self.first_name + ',' + self.last_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __str__(self):\n return str(self.get_data())", "def __str__(self):\n return str(self.__data)", "def __str__(self) -> str:\n return str(self.data)", "def __str__(self):\n return str(self.data)", "def __str__(self):\n return str(self.data)", "def __str__(self):\n ...
[ "0.84877676", "0.84202945", "0.8403753", "0.83042115", "0.83042115", "0.83042115", "0.83042115", "0.83042115", "0.82920665", "0.8265946", "0.8265946", "0.8163915", "0.81554", "0.8034625", "0.79968107", "0.79264444", "0.79264444", "0.79264444", "0.7842586", "0.7806085", "0.768...
0.0
-1
Returns two random test dates per month within the given year.
def get_random_test_dates(seed, year, hour_range, num_days_per_month): np.random.seed(seed) test_dates = [] for month in range(1, 13): num_days = calendar.monthrange(year, month)[1] start_date = f"{year}-{month}-01" end_date = f"{year}-{month}-{num_days}" days = pd.date_range...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_retail_year_2006(self):\n mock_todays = [date(2005, 10, 1), # random earlier half\n date(2006, 2, 1), # random later half\n date(2005, 12, 31), # start of calendar year\n date(2006, 1, 1), # end of calendar year\n ...
[ "0.6425", "0.6368168", "0.6344846", "0.61866045", "0.60568804", "0.60235703", "0.5988138", "0.5954891", "0.5949153", "0.5939783", "0.58578753", "0.5822354", "0.58097774", "0.5809117", "0.57929504", "0.57760584", "0.5751829", "0.5730742", "0.57302076", "0.56895727", "0.5669299...
0.72920305
0
Convert date string to a Python date.
def parse_date_str(self, date_str, date_format=DATE_FORMAT): try: return self.adjust_year(datetime.strptime(date_str, date_format).date()) except ValueError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def string_to_date(string):\n params = string.strip().split('-')\n year = int(params[0])\n month = int(params[1])\n day = int(params[2])\n d = date(year, month, day)\n return d", "def _str_to_date(self, date):\n return datetools.date_parser(date)", "def string_t...
[ "0.8399113", "0.8250649", "0.81035346", "0.789119", "0.78212744", "0.7818843", "0.7759304", "0.7706994", "0.77047336", "0.77017677", "0.7692811", "0.7673213", "0.7643173", "0.7634037", "0.7628965", "0.7601983", "0.75894636", "0.7575628", "0.75698644", "0.7510042", "0.7508729"...
0.0
-1
Return the number of CVSPaths within this node.
def __len__(self): return len(self._entries)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def numPaths(self):\n if self.numpaths > -1:\n return self.numpaths\n\n if self.jolt == 0:\n return 1\n\n paths = 0\n for parent in self.parents:\n paths += parent.numPaths()\n \n return paths", "def __len__(self):\n return len(sel...
[ "0.7217805", "0.6484051", "0.6484051", "0.6350378", "0.6272426", "0.6239184", "0.62368536", "0.6219637", "0.6194105", "0.61690235", "0.61459404", "0.61290383", "0.60553133", "0.6044992", "0.6030026", "0.6030026", "0.6030026", "0.6030026", "0.6007277", "0.59809005", "0.5949476...
0.0
-1
Indicate that the root node of this LOD changed to ID at REVNUM. REVNUM is a revision number that must be the same as that of the previous recorded change (in which case the previous change is overwritten) or later (in which the new change is appended). ID can be a node ID, or it can be None to indicate that this LOD c...
def update(self, revnum, id): if revnum < self.revnums[-1]: raise KeyError(revnum) elif revnum == self.revnums[-1]: # This is an attempt to overwrite an entry that was already # updated during this revision. Don't allow the replacement # None -> None or allow one new id to be replaced ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def setNodeId(self, recId):\n if self.cursor:\n self.cursor.nodeId = recId", "def set_root(self):\n try:\n _check_call(_LIB.TreeliteTreeBuilderSetRootNode(\n self.tree.handle,\n ctypes.c_int(self.node_key)))\n except AttributeError:\n raise Treelite...
[ "0.5314924", "0.52909905", "0.5260026", "0.5219419", "0.5209893", "0.51940745", "0.51852316", "0.51435435", "0.5081408", "0.5066978", "0.49637446", "0.49560678", "0.4940765", "0.49264124", "0.49045444", "0.48784593", "0.4876027", "0.4873331", "0.48263577", "0.48257935", "0.48...
0.4816355
22
Return the index of the record holding the node with ID.
def _determine_index(self, id): return bisect.bisect_left(self._max_node_ids, id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_index_by_id(self, id):\r\n for i in range(len(self.vertices)):\r\n if self.vertices[i].id == id:\r\n return i\r\n raise ValueError('Reverse look up of id failed.')", "def node_id_to_idx(self, node_id: int) -> (int, int):\n\n node_idx = None\n for tree...
[ "0.7146465", "0.7024147", "0.6831022", "0.68062985", "0.6732777", "0.66483134", "0.6576368", "0.6558288", "0.645913", "0.64367205", "0.64337295", "0.64337295", "0.63834023", "0.63751906", "0.6347651", "0.6341769", "0.6335101", "0.6330075", "0.6327257", "0.62765115", "0.626237...
0.7251529
0
Return the directory for the root path of LOD at revision REVNUM. Return an instance of MirrorDirectory if the path exists; otherwise, raise KeyError.
def get_old_lod_directory(self, lod, revnum): lod_history = self._get_lod_history(lod) id = lod_history.get_id(revnum) return OldMirrorDirectory(self, id, self._node_db[id])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_current_lod_directory(self, lod):\n\n lod_history = self._get_lod_history(lod)\n id = lod_history.get_current_id()\n try:\n return self._new_nodes[id]\n except KeyError:\n return _CurrentMirrorReadOnlyLODDirectory(\n self, id, lod, self._node_db[id]\n )", "def get_...
[ "0.5746843", "0.53681284", "0.5339582", "0.5292972", "0.5288719", "0.52664", "0.5261619", "0.5257625", "0.5241486", "0.51570344", "0.5142627", "0.50513554", "0.50311685", "0.4987959", "0.4968479", "0.49613282", "0.49164632", "0.4910915", "0.4890781", "0.48769155", "0.4871254"...
0.60974514
0
Return the directory for the root path of LOD in the current revision. Return an instance of CurrentMirrorDirectory. Raise KeyError if the path doesn't already exist.
def get_current_lod_directory(self, lod): lod_history = self._get_lod_history(lod) id = lod_history.get_current_id() try: return self._new_nodes[id] except KeyError: return _CurrentMirrorReadOnlyLODDirectory( self, id, lod, self._node_db[id] )
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def root_dir(self):\n path = self.config_path()\n if path:\n root_dir = os.path.dirname(path)\n if not root_dir.endswith(\"/\"):\n root_dir += \"/\"\n return root_dir\n return None", "def root_path(self) -> Path:\n return ARCHIVES_ROOT /...
[ "0.64090633", "0.63059235", "0.6119998", "0.60000086", "0.5950342", "0.58965826", "0.58609897", "0.585746", "0.58245414", "0.58148813", "0.5814057", "0.58120626", "0.5806541", "0.5803949", "0.5802826", "0.5798873", "0.5787527", "0.5738714", "0.56942564", "0.56876695", "0.5678...
0.68375707
0
Free resources and close databases.
def close(self): self._lod_histories = None self._node_db.close() self._node_db = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def close_db_connections():\n for db in db_connections.values():\n db.close()", "def cleanup(_):\n self.db.close()", "def close(self):\n\t\tself.db.close()", "def close(self):\n self.clean()\n\n for conn in self.conn__.values():\n try:\n conn.c...
[ "0.7978829", "0.78924674", "0.7891401", "0.78881174", "0.7832651", "0.7792621", "0.7706712", "0.76760715", "0.76034856", "0.75894135", "0.75853467", "0.7567483", "0.7520194", "0.75141776", "0.7509043", "0.7493203", "0.74729204", "0.7457561", "0.7429625", "0.7428259", "0.74282...
0.0
-1
Stops the dauth service if it is not stopped already.
def stop_service(dauth_directory: DauthDirectoryConnection) -> None: print(dauth_directory.stop_service())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reset_service(dauth_directory: DauthDirectoryConnection) -> None:\n stop_service(dauth_directory)\n remove_state(dauth_directory)\n start_service(dauth_directory)", "def stop_service(self):\n\n logger = logging.getLogger(self.dkr_name)\n logger.info(\"Tearing down service\")\n\n ...
[ "0.6493944", "0.64865303", "0.63658106", "0.6164518", "0.612416", "0.60982394", "0.60358137", "0.5888119", "0.5849566", "0.5846709", "0.5835957", "0.5815378", "0.5796972", "0.5795357", "0.5771227", "0.5770473", "0.5753455", "0.5738722", "0.5738626", "0.57373166", "0.5728138",...
0.7705014
0
Converts seconds (realtime) to timedelta (ingame).
def realtime_to_ingame_delta(sec: float) -> timedelta: return timedelta(days=SECONDS_TO_DAYS * sec)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _convert_to_timedelta(time_diff):\n return timedelta(seconds=time_diff)", "def _convert_to_timedelta(time_diff):\n return timedelta(microseconds=time_diff / _NANO_TO_MICRO)", "def seconds_calc(delta):\n return (delta.hours * 3600) + (delta.minutes * 60) + delta.seconds", "def timedeltaTo...
[ "0.72520936", "0.71323544", "0.6941588", "0.68095666", "0.6663136", "0.66484267", "0.66366243", "0.66150427", "0.66004837", "0.65783864", "0.65614283", "0.650139", "0.6483869", "0.64749306", "0.64743865", "0.6470453", "0.6468094", "0.64537436", "0.6447788", "0.64474154", "0.6...
0.78938496
0
Returns formatted ingame duration survived (text).
def ingame_delta_formatted(dt: timedelta) -> str: return f"{dt.days // 365} years {dt.days % 365} days"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_duration_string(duration):\n\n minutes = duration // 60\n seconds = duration % 60\n return \"the game took {} minutes and {} seconds\".format(minutes, seconds)", "def pretty_str(self, unit_time):\n return \"{}: {} left and {}% done\".format(self.name, get_time_str(self.time * unit_time), ...
[ "0.69253814", "0.6719739", "0.66788304", "0.6450496", "0.64305735", "0.6412167", "0.61711544", "0.61484843", "0.6071423", "0.6037006", "0.6036901", "0.6036531", "0.6031723", "0.6029158", "0.60190696", "0.5992422", "0.5969754", "0.59681386", "0.5961543", "0.5954785", "0.595178...
0.5811792
30
The max height of the screen (The number of rows).
def height(self) -> int: return self.screen.getmaxyx()[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def max_height(self) -> int:\n return UIMetric.parse(self.props.max_height).to_pixels(self.parent.height)", "def height(self):\n return(self.SCREEN_H)", "def height(self):\n return self.maxy - self.miny", "def get_grid_height(self):\r\n return self.height", "def is_max_height(se...
[ "0.8072285", "0.7627271", "0.7430995", "0.74152577", "0.74073523", "0.7385308", "0.73630816", "0.73630816", "0.7333944", "0.72966576", "0.72835124", "0.72835124", "0.72650194", "0.7263829", "0.724091", "0.724091", "0.724091", "0.72194284", "0.7189045", "0.7164657", "0.7154224...
0.7893309
1
Sets wether or not to display the blinking cursor at cursor position.
def cursor_set(self, yes: bool = True) -> None: unicurses.curs_set(False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def blink_cursors(self):\n\n self.cursor_state = not self.cursor_state\n self.update_cursors()", "def cursor( self, value=True ):\n\t\tif value:\n\t\t\tself._displaycontrol |= LCD_CURSORON\n\t\telse:\n\t\t\tself._displaycontrol &= (0xFF^LCD_CURSORON)\n\t\tself.command( LCD_DISPLAYCONTROL | self._di...
[ "0.77710843", "0.7687006", "0.74363667", "0.67530406", "0.6704451", "0.65793765", "0.6541957", "0.6541302", "0.6533275", "0.6472394", "0.64294934", "0.6304947", "0.62657756", "0.6224126", "0.62174046", "0.6181385", "0.6152531", "0.6076271", "0.60486376", "0.6036746", "0.60303...
0.6667331
5
Sets this window to the top of the drawing buffer (In other words, it will be drawn above everything else).
def top(self) -> None: # We remove ourselves from the list then insert ourselves to the end of the list current_index = ALL_WINDOWS.index(self) ALL_WINDOWS.pop(current_index) ALL_WINDOWS.append(self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def page_top(self):\n self._pos = 0\n self._display()", "def bring_window_to_top(hwnd):\n\n win32gui.ShowWindow(hwnd, win32con.SW_MINIMIZE)\n win32gui.ShowWindow(hwnd, win32con.SW_RESTORE)", "def clear_top(self):\n background = pygame.Surface((720, 77))\n background.fill((255,...
[ "0.6410116", "0.6388918", "0.62831134", "0.61725646", "0.61584353", "0.6102733", "0.6102733", "0.60489625", "0.6016738", "0.60121715", "0.6002696", "0.59587854", "0.5924379", "0.58672625", "0.5816531", "0.5808788", "0.5797129", "0.5727804", "0.5717245", "0.57111865", "0.57011...
0.6123448
5
Sets this window to the bottom of the drawing buffer (In other words, it will be drawn under everything else).
def bottom(self) -> None: # We remove ourselves from the list then insert ourselves to the beggining of the list current_index = ALL_WINDOWS.index(self) ALL_WINDOWS.pop(current_index) ALL_WINDOWS.insert(0, self)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bottom(self, bottom):\n\n self._bottom = bottom", "def bottom_option():\n active = get_active_window()\n Width= get_middle_Width(active)\n Height=get_bottom_Height()\n PosX = get_middle_PosX(active,Width)\n PosY=get_bottom_PosY()\n move_window(active,PosX,PosY,Width,Height)\n rais...
[ "0.64352286", "0.62571895", "0.61764574", "0.61764574", "0.6102559", "0.5984697", "0.5923956", "0.574016", "0.57140934", "0.56905156", "0.564332", "0.56369406", "0.56281227", "0.5605544", "0.5586855", "0.55607873", "0.55374116", "0.54537386", "0.5449912", "0.5448108", "0.5446...
0.6376207
1
Updates the weights according to the gradient. Implementing both learning rate decay and momentum
def update_weights(self, gradient, n): lr_decay = self.learning_rate*(1/2)*(n/100) self.delta_weights = lr_decay * gradient + self.momentum*self.delta_weights self.weights += self.delta_weights
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __update_weights_grad_desc(self, x_train, y_train):\n\n predictions = self.__compute_prediction(x_train)\n weights_delta = np.dot(x_train.T, y_train - predictions)\n\n m = y_train.shape[0]\n self.__weights += self.__learning_rate / float(m) * weights_delta", "def update_weights(se...
[ "0.80490565", "0.80165136", "0.78342545", "0.7786482", "0.7763479", "0.77521455", "0.76436037", "0.7610877", "0.7597804", "0.7526", "0.7516594", "0.7503628", "0.7497012", "0.7473583", "0.7465812", "0.74190867", "0.741463", "0.7377316", "0.7323953", "0.731874", "0.73003805", ...
0.80290484
1
Gets the shape required for the input tensor. For models trained for image classification / detection, the shape is always
def get_input_tensor_shape(self): return self._engine.get_input_tensor_shape()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_shape(input_tensor):\n return input_tensor.get_shape().as_list()", "def get_input_shape(self):\n return self.network.inputs[self.input_blob].shape", "def shape(tensor):\n raise NotImplementedError", "def get_shape(tensor):\n return tensor.get_shape().as_list()", "def input_s...
[ "0.83801675", "0.8109853", "0.80352217", "0.7956489", "0.7877556", "0.78220457", "0.77938324", "0.7765017", "0.7634407", "0.76203096", "0.760819", "0.760376", "0.7602313", "0.75819206", "0.753173", "0.7520848", "0.74627274", "0.74620754", "0.7404986", "0.7404986", "0.7404986"...
0.8497244
0
Gets the file path for model loaded by this inference engine.
def model_path(self): return self._engine.model_path()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def model_path(self) -> str:\n return self._model.file_path", "def get_model_path():\n misc_path = pkg_resources.resource_filename('sst', 'misc/')\n return os.path.abspath(os.path.join(misc_path, 'model.pickle'))", "def get_model_filepath(config: configs.Config) -> str:\n return os.path.join(co...
[ "0.82222515", "0.7445278", "0.74227077", "0.7349556", "0.72680336", "0.713459", "0.68214643", "0.67498964", "0.67252", "0.6719196", "0.6687669", "0.66500217", "0.6631757", "0.66260964", "0.6620296", "0.65612715", "0.65428257", "0.654095", "0.6516653", "0.64350003", "0.6405400...
0.7346441
4
make an image with a realisation of linear parameter values "param"
def image(self, kwargs_lens=None, kwargs_source=None, kwargs_lens_light=None, kwargs_ps=None, kwargs_extinction=None, kwargs_special=None, unconvolved=False, source_add=True, lens_light_add=True, point_source_add=True): kwargs_lens_i, kwargs_source_i, kwargs_lens_light_i, kwargs_ps_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _create_image(paramList, width, height):\n \n img = np.zeros( (height,width) )\n\n spot = 0\n for param in paramList:\n spot = spot + 1\n v = param\n img[ spot ][ spot ] += v\n \n return img", "def topo_plane_paramEval(self, param):\n # Create an empty numpy ...
[ "0.6185422", "0.6072258", "0.5937533", "0.581404", "0.5803182", "0.5767609", "0.5569235", "0.5564491", "0.5525433", "0.5525031", "0.5515145", "0.55138695", "0.55030715", "0.5471419", "0.5469357", "0.54381657", "0.54093474", "0.53633076", "0.5343912", "0.53255886", "0.5325272"...
0.0
-1
Given a string returns True if the string represents a number. Returns False otherwise.
def is_number(string): try: float(string) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_number(string):\r\n try:\r\n float(string)\r\n return True\r\n except ValueError: return False", "def is_number(s):\r\n try:\r\n int(s)\r\n return True\r\n except ValueError:\r\n return False", "def is_number(s):\n try:\n int(s)\n return Tr...
[ "0.88862556", "0.8841634", "0.87992465", "0.8638227", "0.8613014", "0.85911804", "0.85911804", "0.85911804", "0.85048777", "0.849611", "0.8489931", "0.8481231", "0.84664446", "0.84631115", "0.8333123", "0.8292645", "0.82401824", "0.82185715", "0.8179664", "0.817205", "0.80581...
0.8832949
2
Return a list of 'TaskNode' objects whose _has_parent_task root is this task If include_root is True, include this node in the list. Tasks are returned in the order they were finished.
def all_descendent_tasks(self, include_root=False) -> List["TaskNode"]: descendents = [] q = [self] while q: task = q.pop() children = task.get_child_tasks() descendents.extend(children) q.extend(children) if include_root: desce...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_all_tasks_in_tree(self, key_main_task=None):\n queue_for_bfs = deque()\n\n task = self.get_task(key_main_task)\n if not task:\n return None\n\n queue_for_bfs.append(task)\n list_tasks_project = [task]\n self.queue_on_project(queue_for_bfs, list_tasks_pro...
[ "0.6246284", "0.61003405", "0.56980574", "0.5672493", "0.5629829", "0.5410073", "0.5396746", "0.538673", "0.53113896", "0.5305643", "0.5263628", "0.52432215", "0.51700944", "0.5140016", "0.50045323", "0.49361742", "0.49293563", "0.49288815", "0.48777935", "0.4849743", "0.4846...
0.6540416
0
Test case for team_builder_config_product_size_materials_find_one_get Find first instance of the model matched by filter from the data source.
def test_team_builder_config_product_size_materials_find_one_get(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_team_builder_config_product_size_materials_id_product_size_material_get(self):\n pass", "def test_team_builder_config_product_size_materials_id_exists_get(self):\n pass", "def test_team_builder_config_product_size_materials_id_get(self):\n pass", "def test_team_builder_config_pr...
[ "0.7219705", "0.7150344", "0.7146611", "0.6989521", "0.66432196", "0.6552999", "0.63436455", "0.6299402", "0.6172716", "0.60447896", "0.5920749", "0.58084774", "0.5797973", "0.56598884", "0.5650701", "0.55570465", "0.55304736", "0.54965323", "0.5446977", "0.54020154", "0.5362...
0.877674
0
Test case for team_builder_config_product_size_materials_get Find all instances of the model matched by filter from the data source.
def test_team_builder_config_product_size_materials_get(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_team_builder_config_product_size_materials_find_one_get(self):\n pass", "def test_team_builder_config_product_size_materials_id_product_size_material_get(self):\n pass", "def test_team_builder_config_product_size_materials_id_get(self):\n pass", "def test_team_builder_config_pro...
[ "0.8190486", "0.8168711", "0.8041614", "0.76638424", "0.7584455", "0.7549949", "0.7469326", "0.73715967", "0.7342346", "0.7306931", "0.70870215", "0.682611", "0.6800385", "0.6680882", "0.6478183", "0.6405044", "0.64020544", "0.61890745", "0.60473114", "0.59554803", "0.5899695...
0.83936113
0
Test case for team_builder_config_product_size_materials_id_patch Patch attributes for a model instance and persist it into the data source.
def test_team_builder_config_product_size_materials_id_patch(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_team_builder_config_product_size_materials_id_put(self):\n pass", "def test_team_builder_config_product_size_materials_id_replace_post(self):\n pass", "def test_team_builder_config_product_size_materials_post(self):\n pass", "def test_team_builder_config_product_size_materials_i...
[ "0.758564", "0.7502319", "0.72735506", "0.69245946", "0.692314", "0.6873298", "0.68673456", "0.6770236", "0.65725815", "0.6428236", "0.6198153", "0.6184761", "0.6051097", "0.5797997", "0.5751913", "0.5576126", "0.55642486", "0.5500916", "0.53614426", "0.526585", "0.52522296",...
0.7635139
0
Test case for team_builder_config_product_size_materials_id_product_size_material_get Fetches belongsTo relation productSizeMaterial.
def test_team_builder_config_product_size_materials_id_product_size_material_get(self): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_team_builder_config_product_size_materials_id_get(self):\n pass", "def test_team_builder_config_product_size_materials_find_one_get(self):\n pass", "def test_team_builder_config_product_size_materials_get(self):\n pass", "def test_team_builder_config_product_size_materials_id_ex...
[ "0.78846556", "0.7876838", "0.7511752", "0.7303035", "0.69825536", "0.6820941", "0.67879236", "0.65257776", "0.6454095", "0.6409163", "0.639194", "0.6360501", "0.61076874", "0.6086772", "0.6080113", "0.5930173", "0.59206843", "0.5715521", "0.56763643", "0.5551936", "0.5551598...
0.81440246
0
Convenience function returning the device the model is located on.
def device(self): return next(self.parameters()).device
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_device(model):\n p = next(model.parameters())\n return p.device", "def device(self):\n hw = self.hw()\n if hw: return hw.device()", "def device(self):\n return self._vars[0].device", "def get_device(model):\n\tif next(model.parameters()).is_cuda:\n\t\treturn 'cuda:{}'.format(to...
[ "0.86516154", "0.8316542", "0.8115748", "0.8112432", "0.79455346", "0.79361427", "0.7771778", "0.7753793", "0.77201676", "0.76946616", "0.7675412", "0.76709926", "0.7656671", "0.7655424", "0.7556291", "0.7489082", "0.74549663", "0.7431325", "0.74286205", "0.7329006", "0.73025...
0.80335236
8
Return the other settings
def other_settings(): return OTHER_SETTINGS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def settings():\n return _get_settings()[1]", "def get_common_settings(self):\n # TODO: Assuming first server is good - need to make fallback logic\n return self.session.get_any(\"{base}{request_url}\".format(base=self.servers[0],\n r...
[ "0.71923894", "0.711417", "0.6858755", "0.6753653", "0.66691446", "0.66016155", "0.6518016", "0.6491571", "0.64894944", "0.6467795", "0.6467795", "0.63944316", "0.63944316", "0.6379311", "0.6370391", "0.6351506", "0.6304517", "0.6281694", "0.6279899", "0.6223388", "0.62200016...
0.78355753
0
Method removing a widget from the vertical scroll area according to its position.
def remove_widget(self, widget_position): # Remove the specified widget self.widgets_list.pop(widget_position) # Refresh the scroll area self._refresh()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove(self, widget):\n self.widgets.remove(widget)\n widget.destroy()", "def removeExistWidget(self, layout):\n for index in range(layout.count()):\n if layout.itemAt(index).widget():\n layout.itemAt(index).widget().deleteLater()", "def _remove_child(self, wi...
[ "0.6769379", "0.6516565", "0.6363287", "0.63554204", "0.61825824", "0.6164252", "0.6107337", "0.6038369", "0.598409", "0.59712476", "0.5964173", "0.59547067", "0.59547067", "0.59037864", "0.5882034", "0.58168423", "0.581486", "0.5799429", "0.5792709", "0.5791748", "0.5733957"...
0.7574232
0
Return an orderedset of atoms.
def atoms(self): return self._atoms
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def atoms(self):\n return set(self.array_form)", "def get_atoms(self):\n\n return sorted(self.atoms, key=lambda atom: atom.get_symmetry_class())", "def iter_all_atoms(self):\n for atm in self.atom_order_list:\n if isinstance(atm, Atom):\n yield atm\n el...
[ "0.7081815", "0.70422894", "0.64413524", "0.63919544", "0.62494767", "0.6235832", "0.62354136", "0.615111", "0.6107586", "0.6075771", "0.60124356", "0.60093606", "0.59463483", "0.5900034", "0.58806443", "0.5860522", "0.583224", "0.5793018", "0.5782057", "0.5751988", "0.574545...
0.6505772
2
Plot an image along with its histogram and cumulative histogram.
def plot_img_and_hist(image, axes, bins=256): image = img_as_float(image) ax_img, ax_hist = axes ax_cdf = ax_hist.twinx() # Display image ax_img.imshow(image, cmap=plt.cm.gray) ax_img.set_axis_off() # Display histogram ax_hist.hist(image.ravel(), bins=bins, histtype='step', color='black') ax_hist.ti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def plot_img_and_hist(image, axes, bins=256):\n# image = img_as_float(image)\n ax_img, ax_hist = axes\n ax_cdf = ax_hist.twinx()\n\n # Display image\n ax_img.imshow(image, cmap=plt.cm.gray);\n ax_img.set_axis_off()\n\n # Display histogram\n ax_hist.hist(image.ravel(), bins=bins, histtype='...
[ "0.7969631", "0.78266644", "0.7809336", "0.7809336", "0.74996084", "0.7412575", "0.72977114", "0.68852156", "0.6873014", "0.6869999", "0.668876", "0.66544735", "0.66544735", "0.66544735", "0.66200167", "0.652162", "0.6493563", "0.64923745", "0.6483739", "0.64781225", "0.64132...
0.7776819
4
Returns a single LcResource loaded from a dict. only required field is 'dataSourceType'. other fields are passed to the constructor and either interpreted directly or added as supplemental args If 'dataSource' is not present
def from_dict(cls, ref, d): source = d.pop('dataSource', None) ds_type = d.pop('dataSourceType') # patch to deal with changing Background extension handling filetype = d.pop('filetype', None) if filetype is not None: if not source.endswith(filetype): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(__self__, *,\n resource_id: str,\n datasource_type: Optional[str] = None,\n object_type: Optional[str] = None,\n resource_location: Optional[str] = None,\n resource_name: Optional[str] = None,\n resource_ty...
[ "0.58856434", "0.58856434", "0.5878043", "0.583658", "0.583658", "0.583658", "0.583658", "0.5720132", "0.5633277", "0.55250573", "0.54847354", "0.5409228", "0.5346774", "0.53260684", "0.53113294", "0.53003925", "0.52429646", "0.5213951", "0.517519", "0.5142728", "0.51362544",...
0.64347255
0
Adds the resource to a file whose name is the resource's semantic reference. If the same datasource is already present in the file, replace it with the current resource. otherwise append.
def write_to_file(self, path, assign_ref=None, apply_config=None): if assign_ref is None: assign_ref = self.reference if apply_config is not None: self.config = apply_config # tests configuration before storing it if not os.path.isdir(path): if os.path.exists...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_resource(self, resource_name, resource):\n self.resources[resource_name] = resource", "def add_resource(self, resource, parents=[]):\r\n self._resources.setdefault(resource, set())\r\n self._resources[resource].update(parents)", "def addLinkToResource(link):\n\n\tif link not in var...
[ "0.66378015", "0.64946055", "0.63223565", "0.5926008", "0.5906732", "0.5865063", "0.58630604", "0.5792744", "0.5761426", "0.5726965", "0.5726345", "0.5695364", "0.56686586", "0.56658095", "0.5592048", "0.5579024", "0.5556073", "0.5483993", "0.54461765", "0.5423629", "0.542083...
0.49110466
78
Return a imagesized binary file in which 1 represents the gradient at specific pixel location is greater than threshold. Taking "x" or "y" direction as input.
def filter_gradient_threshold(image, direction="x", threshold=(50,150),ksize=3): assert image.ndim==2 # Sobel x on L channel if direction=="x": # Take the derivative in x dir sobel = cv2.Sobel(image, cv2.CV_64F, 1, 0, ksize) else: # Take the derivative in y dir sobel = cv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dir_threshold(self,sobel_kernel=3, thresh=(0, np.pi/2)): \n\t\t# 1) Convert to grayscale\n\t\tgray = cv2.cvtColor(self.img, cv2.COLOR_RGB2GRAY)\n\t\t# 2) Take the gradient in x and y separately\n\t\tsobelx = cv2.Sobel(gray, cv2.CV_64F, 1, 0, ksize = sobel_kernel)\n\t\tsobely = cv2.Sobel(gray, cv2.CV_64F, 0, 1,...
[ "0.5881405", "0.5781179", "0.57600874", "0.57375133", "0.56931233", "0.5597754", "0.55579853", "0.55015296", "0.5492063", "0.5468652", "0.5449165", "0.54381424", "0.54338634", "0.53822446", "0.5222114", "0.5175658", "0.51607466", "0.5149989", "0.51428837", "0.51387155", "0.51...
0.6581124
0
Snap an image with the camera and return the recognized faces.
def detect_faces(self, image=None, stamp=False): if not image: image = self.get_image() if stamp: return self._get_faces(image).recognitions, image.header.stamp else: return self._get_faces(image).recognitions
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def detect_face(self, img):\n #convert the test image to gray image as opencv face detector expects gray images\n gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\n\n #let's detect multiscale (some images may be closer to camera than others) images\n #result is a list of faces\n face...
[ "0.67968726", "0.67432016", "0.67034453", "0.66716367", "0.66398877", "0.65701795", "0.6553965", "0.6441205", "0.6426534", "0.6422149", "0.6405296", "0.6307856", "0.62759805", "0.6258027", "0.62553155", "0.6227133", "0.62080765", "0.6164246", "0.61547244", "0.61217767", "0.61...
0.6137875
19
Return the atom indices of a proper torsion after "flipping" the order so that the first atom is the smallest index.
def reorder_proper_torsions(i0, i1, i2, i3): if i0 < i3: j0, j1, j2, j3 = i0, i1, i2, i3 else: j0, j1, j2, j3 = i3, i2, i1, i0 return j0, j1, j2, j3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def first_in_first_out(table):\n min_order = table[0].fifo_order\n min_index = 0\n for index, table_line in enumerate(table):\n if table_line.fifo_order < min_order:\n min_order = table_line.fifo_order\n min_index = index\n\n return min_index", ...
[ "0.6400429", "0.61860085", "0.61219925", "0.59483093", "0.587723", "0.5873993", "0.58515024", "0.58366424", "0.579955", "0.57828104", "0.57649726", "0.57024276", "0.5665669", "0.56431854", "0.56301826", "0.56119585", "0.5601099", "0.55916977", "0.5587183", "0.5579915", "0.555...
0.0
-1
Get the OBO Foundry registry.
def get_obofoundry( cache_path: Optional[str] = OBOFOUNDRY_CACHE_PATH, mappify: bool = False, force_download: bool = False, ): if not force_download and cache_path is not None and os.path.exists(cache_path): with open(cache_path) as file: rv = json.load(file) if mappify: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def registry(self):\n return self._registry", "def oaas_registry() -> OaasRegistryStub:\n global _oaas_registry\n\n if _oaas_registry:\n LOG.debug(\"oaas_registry() Using cached registry client\")\n return _oaas_registry\n\n LOG.debug(\"oaas_registry() Using new registry client\")\n...
[ "0.7096497", "0.7046108", "0.70455444", "0.6757422", "0.6647232", "0.6634559", "0.6597221", "0.63514894", "0.6233238", "0.60268694", "0.59639585", "0.59150755", "0.59114224", "0.5882572", "0.58114886", "0.5720419", "0.57090926", "0.56778115", "0.5616687", "0.55985504", "0.559...
0.49295872
71
Reslice grayscalce slice of the index `slice_number`.
def _reslice_grayscale(self, slice_number): # Define all the filenames required by the reslice command moving_image_filename = self.f['src_gray'](idx=slice_number) resliced_image_filename = self.f['resliced_gray'](idx=slice_number) reference_image_filename = self.f['src_gray']( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _reslice_color(self, slice_number):\n\n # Define all the filenames required by the reslice command\n moving_image_filename = self.f['src_color'](idx=slice_number)\n resliced_image_filename = self.f['resliced_color'](idx=slice_number)\n reference_image_filename = self.f['src_gray'](\...
[ "0.68795866", "0.63165766", "0.62099284", "0.5905384", "0.58425975", "0.5692535", "0.5661779", "0.5608254", "0.5558799", "0.55579704", "0.54314625", "0.54135424", "0.5389749", "0.5349124", "0.53292507", "0.5273272", "0.526958", "0.52590615", "0.51769185", "0.51748765", "0.517...
0.75933045
0
Reslice multichannel image with the given `slice_number`.
def _reslice_color(self, slice_number): # Define all the filenames required by the reslice command moving_image_filename = self.f['src_color'](idx=slice_number) resliced_image_filename = self.f['resliced_color'](idx=slice_number) reference_image_filename = self.f['src_gray']( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _reslice_grayscale(self, slice_number):\n\n # Define all the filenames required by the reslice command\n moving_image_filename = self.f['src_gray'](idx=slice_number)\n resliced_image_filename = self.f['resliced_gray'](idx=slice_number)\n reference_image_filename = self.f['src_gray']...
[ "0.7103268", "0.6587173", "0.63459605", "0.61796075", "0.60777056", "0.603885", "0.5909077", "0.5797187", "0.57836425", "0.57532907", "0.5743427", "0.5716221", "0.57015526", "0.56475013", "0.56153387", "0.55939454", "0.55814517", "0.55725545", "0.55725545", "0.55388844", "0.5...
0.6984248
1
Sets the subject_uuid of this MessageConsumeResp.
def subject_uuid(self, subject_uuid): self._subject_uuid = subject_uuid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def subject_id(self, subject_id):\n\n self._subject_id = subject_id", "def set_subject(self, subject):\n self._subject = subject", "def subject_identifier(self, subject_identifier):\n\n self._subject_identifier = subject_identifier", "def subject(self, subject):\n\n self._subject ...
[ "0.6060398", "0.60158783", "0.58516705", "0.5689312", "0.5689312", "0.5689312", "0.56299204", "0.56299204", "0.5511444", "0.5511444", "0.5490915", "0.5473287", "0.5277575", "0.5206669", "0.5158936", "0.50511867", "0.5029226", "0.5029226", "0.47689378", "0.47123316", "0.463099...
0.73640627
0
Sets the message_count of this MessageConsumeResp.
def message_count(self, message_count): self._message_count = message_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def message_count_limit(self, message_count_limit: ConfigNodePropertyInteger):\n\n self._message_count_limit = message_count_limit", "def read_count(self, read_count):\n\n self._read_count = read_count", "def message_count(self):\n return self._message_count", "def message_count(self):\n...
[ "0.7352247", "0.6393188", "0.6197709", "0.5986728", "0.5965454", "0.5866728", "0.58086354", "0.57451785", "0.57451785", "0.57451785", "0.57451785", "0.5717312", "0.5699328", "0.5674319", "0.5671497", "0.56558174", "0.564114", "0.5614765", "0.55828923", "0.5566808", "0.5540343...
0.7897736
0
Sets the messages of this MessageConsumeResp.
def messages(self, messages): self._messages = messages
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def messages(self, messages):\n\n self._messages = messages", "def messages(self, messages):\n\n self._messages = messages", "def messages(self, messages):\n\n self._messages = messages", "def messages(self, messages):\n self._messages = messages", "def unread_messages(self, unr...
[ "0.7356575", "0.7356575", "0.7356575", "0.72938156", "0.6279805", "0.57603914", "0.5482518", "0.5361829", "0.535708", "0.53254426", "0.5288268", "0.5233783", "0.5233783", "0.5233783", "0.5223655", "0.5183181", "0.5183181", "0.5183181", "0.5183181", "0.5183181", "0.5183181", ...
0.71761113
4
Returns true if both objects are equal
def __eq__(self, other): if not isinstance(other, MessageConsumeResp): return False return self.__dict__ == other.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self, other):\n return are_equal(self, other)", "def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False", "def __eq__(self, other):\n if i...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def __ne__(self, other): return not self == other
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True", "def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)", "def __ne__(self, other) -> bool:\n return not self.__eq__(other)", "def __eq__(self, other):\n ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.8085325
10
Check if the resource is a reference
def is_reference(self): return self.resource.is_reference()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isReference(node):\n return bool(isinstance(node, nodes.Referential)\n and node.get(DuAttrRefid, None))", "def is_reference(self):\r\n return conf.lib.clang_isReference(self)", "def is_ref_known(self):\r\n \r\n if \"N\" in self.ref:\r\n return F...
[ "0.75729", "0.7337837", "0.72463995", "0.7163818", "0.7137435", "0.71037275", "0.70753473", "0.7043012", "0.68337846", "0.6812514", "0.67644197", "0.67574316", "0.6716234", "0.6579639", "0.655869", "0.6519231", "0.6501288", "0.6490945", "0.6480729", "0.6424509", "0.64104325",...
0.8692843
0
r"""Negotiated Minimum Transmit Interval. This is the interval at which the local node will be sending out BFD control packets.
def negotiatedminimumtransmitinterval(self) : try : return self._negotiatedminimumtransmitinterval except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def minimumtransmitinterval(self) :\n\t\ttry :\n\t\t\treturn self._minimumtransmitinterval\n\t\texcept Exception as e:\n\t\t\traise e", "def negotiatedminimumreceiveinterval(self) :\n\t\ttry :\n\t\t\treturn self._negotiatedminimumreceiveinterval\n\t\texcept Exception as e:\n\t\t\traise e", "def minimumreceivei...
[ "0.82543564", "0.7670931", "0.7342941", "0.7010384", "0.66952974", "0.65590626", "0.64697087", "0.6344516", "0.6328509", "0.60397124", "0.59206027", "0.59121925", "0.58627015", "0.5823848", "0.58024615", "0.57802176", "0.5776909", "0.5755286", "0.57272065", "0.5726383", "0.56...
0.852095
0
r"""Negotiated Minimum Receive Interval. This is the interval at which the local node will be expecting BFD control packets.
def negotiatedminimumreceiveinterval(self) : try : return self._negotiatedminimumreceiveinterval except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def negotiatedminimumtransmitinterval(self) :\n\t\ttry :\n\t\t\treturn self._negotiatedminimumtransmitinterval\n\t\texcept Exception as e:\n\t\t\traise e", "def minimumreceiveinterval(self) :\n\t\ttry :\n\t\t\treturn self._minimumreceiveinterval\n\t\texcept Exception as e:\n\t\t\traise e", "def minimumtransmit...
[ "0.81519747", "0.81221694", "0.76299775", "0.6965831", "0.6751805", "0.6511525", "0.6475688", "0.62189424", "0.61901903", "0.61901903", "0.6162735", "0.6142912", "0.610305", "0.6045926", "0.5988376", "0.59796786", "0.5927892", "0.5914315", "0.59066254", "0.58635896", "0.58635...
0.8608491
0
r"""Original Owner PE of the BFD session.
def originalownerpe(self) : try : return self._originalownerpe except Exception as e: raise e
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def owner(self):\n answer = self._call('owner')\n return answer.owner", "def owner(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"owner\")", "def owner(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"owner\")", "def get_name_owner(self): # real signature unknown...
[ "0.64701116", "0.6470051", "0.6470051", "0.63489974", "0.6314906", "0.630567", "0.630567", "0.630567", "0.630567", "0.630567", "0.6297583", "0.62707186", "0.6270617", "0.62474614", "0.62474614", "0.62057024", "0.60670984", "0.6015782", "0.59962785", "0.5989576", "0.59559476",...
0.7739725
0