body
stringlengths
26
98.2k
body_hash
int64
-9,222,864,604,528,158,000
9,221,803,474B
docstring
stringlengths
1
16.8k
path
stringlengths
5
230
name
stringlengths
1
96
repository_name
stringlengths
7
89
lang
stringclasses
1 value
body_without_docstring
stringlengths
20
98.2k
def share_entity_group_using_post_with_http_info(self, entity_group_id, **kwargs): "Share the Entity Group (shareEntityGroup) # noqa: E501\n\n Share the entity group with certain user group based on the provided Share Group Request. The request is quite flexible and processing of the request involves multip...
4,922,334,354,604,789,000
Share the Entity Group (shareEntityGroup) # noqa: E501 Share the entity group with certain user group based on the provided Share Group Request. The request is quite flexible and processing of the request involves multiple security checks using platform RBAC feature. Available for users with 'TENANT_ADMIN' or 'CUSTO...
tb_rest_client/api/api_pe/entity_group_controller_api.py
share_entity_group_using_post_with_http_info
D34DPlayer/thingsboard-python-rest-client
python
def share_entity_group_using_post_with_http_info(self, entity_group_id, **kwargs): "Share the Entity Group (shareEntityGroup) # noqa: E501\n\n Share the entity group with certain user group based on the provided Share Group Request. The request is quite flexible and processing of the request involves multip...
def unassign_entity_group_from_edge_using_delete(self, edge_id, group_type, entity_group_id, **kwargs): "Unassign entity group from edge (unassignEntityGroupFromEdge) # noqa: E501\n\n Clears assignment of the entity group to the edge. Unassignment works in async way - first, 'unassign' notification event pu...
-3,184,272,104,746,827,300
Unassign entity group from edge (unassignEntityGroupFromEdge) # noqa: E501 Clears assignment of the entity group to the edge. Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. Second, remote edge service will receive an 'unassign' command to remove entity group (...
tb_rest_client/api/api_pe/entity_group_controller_api.py
unassign_entity_group_from_edge_using_delete
D34DPlayer/thingsboard-python-rest-client
python
def unassign_entity_group_from_edge_using_delete(self, edge_id, group_type, entity_group_id, **kwargs): "Unassign entity group from edge (unassignEntityGroupFromEdge) # noqa: E501\n\n Clears assignment of the entity group to the edge. Unassignment works in async way - first, 'unassign' notification event pu...
def unassign_entity_group_from_edge_using_delete_with_http_info(self, edge_id, group_type, entity_group_id, **kwargs): "Unassign entity group from edge (unassignEntityGroupFromEdge) # noqa: E501\n\n Clears assignment of the entity group to the edge. Unassignment works in async way - first, 'unassign' notifi...
-8,425,441,640,010,802,000
Unassign entity group from edge (unassignEntityGroupFromEdge) # noqa: E501 Clears assignment of the entity group to the edge. Unassignment works in async way - first, 'unassign' notification event pushed to edge queue on platform. Second, remote edge service will receive an 'unassign' command to remove entity group (...
tb_rest_client/api/api_pe/entity_group_controller_api.py
unassign_entity_group_from_edge_using_delete_with_http_info
D34DPlayer/thingsboard-python-rest-client
python
def unassign_entity_group_from_edge_using_delete_with_http_info(self, edge_id, group_type, entity_group_id, **kwargs): "Unassign entity group from edge (unassignEntityGroupFromEdge) # noqa: E501\n\n Clears assignment of the entity group to the edge. Unassignment works in async way - first, 'unassign' notifi...
def _third_octave_levels(sig, fs): '3rd octave filtering, squaring, smoothing, level calculation and\n downsampling to temporal resolution: 0,5 ms, i.e. sampling rate: 2 kHz\n\n See ISO 532-1 section 6.3\n\n Parameters\n ----------\n sig : numpy.ndarray\n time signal sampled at 48 kHz[pa]\n ...
4,043,975,176,146,884,000
3rd octave filtering, squaring, smoothing, level calculation and downsampling to temporal resolution: 0,5 ms, i.e. sampling rate: 2 kHz See ISO 532-1 section 6.3 Parameters ---------- sig : numpy.ndarray time signal sampled at 48 kHz[pa] fs : int time signal sampling frequency Outputs ------- third_octave_le...
mosqito/sq_metrics/loudness/loudness_zwtv/_third_octave_levels.py
_third_octave_levels
Igarciac117/MoSQITo
python
def _third_octave_levels(sig, fs): '3rd octave filtering, squaring, smoothing, level calculation and\n downsampling to temporal resolution: 0,5 ms, i.e. sampling rate: 2 kHz\n\n See ISO 532-1 section 6.3\n\n Parameters\n ----------\n sig : numpy.ndarray\n time signal sampled at 48 kHz[pa]\n ...
def vap(x, a, b, c): 'Vapor pressure model\n\n Parameters\n ----------\n x : int\n a : float\n b : float\n c : float\n\n Returns\n -------\n float\n np.exp(a+b/x+c*np.log(x))\n ' return np.exp(((a + (b / x)) + (c * np.log(x))))
-7,761,664,097,999,010,000
Vapor pressure model Parameters ---------- x : int a : float b : float c : float Returns ------- float np.exp(a+b/x+c*np.log(x))
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
vap
Ascarshen/nni
python
def vap(x, a, b, c): 'Vapor pressure model\n\n Parameters\n ----------\n x : int\n a : float\n b : float\n c : float\n\n Returns\n -------\n float\n np.exp(a+b/x+c*np.log(x))\n ' return np.exp(((a + (b / x)) + (c * np.log(x))))
def pow3(x, c, a, alpha): 'pow3\n\n Parameters\n ----------\n x : int\n c : float\n a : float\n alpha : float\n\n Returns\n -------\n float\n c - a * x**(-alpha)\n ' return (c - (a * (x ** (- alpha))))
-4,558,576,408,274,066,400
pow3 Parameters ---------- x : int c : float a : float alpha : float Returns ------- float c - a * x**(-alpha)
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
pow3
Ascarshen/nni
python
def pow3(x, c, a, alpha): 'pow3\n\n Parameters\n ----------\n x : int\n c : float\n a : float\n alpha : float\n\n Returns\n -------\n float\n c - a * x**(-alpha)\n ' return (c - (a * (x ** (- alpha))))
def linear(x, a, b): 'linear\n\n Parameters\n ----------\n x : int\n a : float\n b : float\n\n Returns\n -------\n float\n a*x + b\n ' return ((a * x) + b)
-1,092,216,930,129,213,400
linear Parameters ---------- x : int a : float b : float Returns ------- float a*x + b
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
linear
Ascarshen/nni
python
def linear(x, a, b): 'linear\n\n Parameters\n ----------\n x : int\n a : float\n b : float\n\n Returns\n -------\n float\n a*x + b\n ' return ((a * x) + b)
def logx_linear(x, a, b): 'logx linear\n\n Parameters\n ----------\n x : int\n a : float\n b : float\n\n Returns\n -------\n float\n a * np.log(x) + b\n ' x = np.log(x) return ((a * x) + b)
4,003,974,454,394,717
logx linear Parameters ---------- x : int a : float b : float Returns ------- float a * np.log(x) + b
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
logx_linear
Ascarshen/nni
python
def logx_linear(x, a, b): 'logx linear\n\n Parameters\n ----------\n x : int\n a : float\n b : float\n\n Returns\n -------\n float\n a * np.log(x) + b\n ' x = np.log(x) return ((a * x) + b)
def dr_hill_zero_background(x, theta, eta, kappa): 'dr hill zero background\n\n Parameters\n ----------\n x : int\n theta : float\n eta : float\n kappa : float\n\n Returns\n -------\n float\n (theta* x**eta) / (kappa**eta + x**eta)\n ' return ((theta * (x ** eta)) / ((kappa ...
-2,401,082,026,529,337,300
dr hill zero background Parameters ---------- x : int theta : float eta : float kappa : float Returns ------- float (theta* x**eta) / (kappa**eta + x**eta)
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
dr_hill_zero_background
Ascarshen/nni
python
def dr_hill_zero_background(x, theta, eta, kappa): 'dr hill zero background\n\n Parameters\n ----------\n x : int\n theta : float\n eta : float\n kappa : float\n\n Returns\n -------\n float\n (theta* x**eta) / (kappa**eta + x**eta)\n ' return ((theta * (x ** eta)) / ((kappa ...
def log_power(x, a, b, c): '"logistic power\n\n Parameters\n ----------\n x : int\n a : float\n b : float\n c : float\n\n Returns\n -------\n float\n a/(1.+(x/np.exp(b))**c)\n ' return (a / (1.0 + ((x / np.exp(b)) ** c)))
8,904,214,296,093,443,000
"logistic power Parameters ---------- x : int a : float b : float c : float Returns ------- float a/(1.+(x/np.exp(b))**c)
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
log_power
Ascarshen/nni
python
def log_power(x, a, b, c): '"logistic power\n\n Parameters\n ----------\n x : int\n a : float\n b : float\n c : float\n\n Returns\n -------\n float\n a/(1.+(x/np.exp(b))**c)\n ' return (a / (1.0 + ((x / np.exp(b)) ** c)))
def pow4(x, alpha, a, b, c): 'pow4\n\n Parameters\n ----------\n x : int\n alpha : float\n a : float\n b : float\n c : float\n\n Returns\n -------\n float\n c - (a*x+b)**-alpha\n ' return (c - (((a * x) + b) ** (- alpha)))
1,150,530,309,531,869,000
pow4 Parameters ---------- x : int alpha : float a : float b : float c : float Returns ------- float c - (a*x+b)**-alpha
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
pow4
Ascarshen/nni
python
def pow4(x, alpha, a, b, c): 'pow4\n\n Parameters\n ----------\n x : int\n alpha : float\n a : float\n b : float\n c : float\n\n Returns\n -------\n float\n c - (a*x+b)**-alpha\n ' return (c - (((a * x) + b) ** (- alpha)))
def mmf(x, alpha, beta, kappa, delta): 'Morgan-Mercer-Flodin\n http://www.pisces-conservation.com/growthhelp/index.html?morgan_mercer_floden.htm\n\n Parameters\n ----------\n x : int\n alpha : float\n beta : float\n kappa : float\n delta : float\n\n Returns\n -------\n float\n ...
-5,394,674,920,945,372,000
Morgan-Mercer-Flodin http://www.pisces-conservation.com/growthhelp/index.html?morgan_mercer_floden.htm Parameters ---------- x : int alpha : float beta : float kappa : float delta : float Returns ------- float alpha - (alpha - beta) / (1. + (kappa * x)**delta)
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
mmf
Ascarshen/nni
python
def mmf(x, alpha, beta, kappa, delta): 'Morgan-Mercer-Flodin\n http://www.pisces-conservation.com/growthhelp/index.html?morgan_mercer_floden.htm\n\n Parameters\n ----------\n x : int\n alpha : float\n beta : float\n kappa : float\n delta : float\n\n Returns\n -------\n float\n ...
def exp4(x, c, a, b, alpha): 'exp4\n\n Parameters\n ----------\n x : int\n c : float\n a : float\n b : float\n alpha : float\n\n Returns\n -------\n float\n c - np.exp(-a*(x**alpha)+b)\n ' return (c - np.exp((((- a) * (x ** alpha)) + b)))
7,751,033,301,510,852,000
exp4 Parameters ---------- x : int c : float a : float b : float alpha : float Returns ------- float c - np.exp(-a*(x**alpha)+b)
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
exp4
Ascarshen/nni
python
def exp4(x, c, a, b, alpha): 'exp4\n\n Parameters\n ----------\n x : int\n c : float\n a : float\n b : float\n alpha : float\n\n Returns\n -------\n float\n c - np.exp(-a*(x**alpha)+b)\n ' return (c - np.exp((((- a) * (x ** alpha)) + b)))
def ilog2(x, c, a): 'ilog2\n\n Parameters\n ----------\n x : int\n c : float\n a : float\n\n Returns\n -------\n float\n c - a / np.log(x)\n ' return (c - (a / np.log(x)))
-1,638,633,845,434,928,600
ilog2 Parameters ---------- x : int c : float a : float Returns ------- float c - a / np.log(x)
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
ilog2
Ascarshen/nni
python
def ilog2(x, c, a): 'ilog2\n\n Parameters\n ----------\n x : int\n c : float\n a : float\n\n Returns\n -------\n float\n c - a / np.log(x)\n ' return (c - (a / np.log(x)))
def weibull(x, alpha, beta, kappa, delta): 'Weibull model\n http://www.pisces-conservation.com/growthhelp/index.html?morgan_mercer_floden.htm\n\n Parameters\n ----------\n x : int\n alpha : float\n beta : float\n kappa : float\n delta : float\n\n Returns\n -------\n float\n a...
6,887,383,915,405,984,000
Weibull model http://www.pisces-conservation.com/growthhelp/index.html?morgan_mercer_floden.htm Parameters ---------- x : int alpha : float beta : float kappa : float delta : float Returns ------- float alpha - (alpha - beta) * np.exp(-(kappa * x)**delta)
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
weibull
Ascarshen/nni
python
def weibull(x, alpha, beta, kappa, delta): 'Weibull model\n http://www.pisces-conservation.com/growthhelp/index.html?morgan_mercer_floden.htm\n\n Parameters\n ----------\n x : int\n alpha : float\n beta : float\n kappa : float\n delta : float\n\n Returns\n -------\n float\n a...
def janoschek(x, a, beta, k, delta): 'http://www.pisces-conservation.com/growthhelp/janoschek.htm\n\n Parameters\n ----------\n x : int\n a : float\n beta : float\n k : float\n delta : float\n\n Returns\n -------\n float\n a - (a - beta) * np.exp(-k*x**delta)\n ' return (...
-8,035,998,551,225,298,000
http://www.pisces-conservation.com/growthhelp/janoschek.htm Parameters ---------- x : int a : float beta : float k : float delta : float Returns ------- float a - (a - beta) * np.exp(-k*x**delta)
src/sdk/pynni/nni/curvefitting_assessor/curvefunctions.py
janoschek
Ascarshen/nni
python
def janoschek(x, a, beta, k, delta): 'http://www.pisces-conservation.com/growthhelp/janoschek.htm\n\n Parameters\n ----------\n x : int\n a : float\n beta : float\n k : float\n delta : float\n\n Returns\n -------\n float\n a - (a - beta) * np.exp(-k*x**delta)\n ' return (...
def our_colours(colours=[]): "\n Extract hexcodes for our colours\n If passed a sting, returns the matching hexcode.\n If passed a list, returns a list of hexcodes.\n Method from https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2.\n - colours, list of strings\n\n Examples:\...
-2,128,949,553,459,649,800
Extract hexcodes for our colours If passed a sting, returns the matching hexcode. If passed a list, returns a list of hexcodes. Method from https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2. - colours, list of strings Examples: data.our_colours_raw our_colours() our_colours('green', 'blue', 'g...
ourstylePy/our_colours.py
our_colours
PeterGrahamJersey/ourstylePy
python
def our_colours(colours=[]): "\n Extract hexcodes for our colours\n If passed a sting, returns the matching hexcode.\n If passed a list, returns a list of hexcodes.\n Method from https://drsimonj.svbtle.com/creating-corporate-colour-palettes-for-ggplot2.\n - colours, list of strings\n\n Examples:\...
def our_colors(colours=[]): '\n Alias for our_colours()\n ' return our_colours(colours)
-1,348,029,345,276,553,000
Alias for our_colours()
ourstylePy/our_colours.py
our_colors
PeterGrahamJersey/ourstylePy
python
def our_colors(colours=[]): '\n \n ' return our_colours(colours)
@property def access_control_allow_credentials(self): 'Whether credentials can be shared by the browser to\n JavaScript code. As part of the preflight request it indicates\n whether credentials can be used on the cross origin request.\n ' return ('Access-Control-Allow-Credentials' in self.h...
-2,807,124,438,663,061,000
Whether credentials can be shared by the browser to JavaScript code. As part of the preflight request it indicates whether credentials can be used on the cross origin request.
venv/Lib/site-packages/werkzeug/wrappers/cors.py
access_control_allow_credentials
997Yi/Flask-web
python
@property def access_control_allow_credentials(self): 'Whether credentials can be shared by the browser to\n JavaScript code. As part of the preflight request it indicates\n whether credentials can be used on the cross origin request.\n ' return ('Access-Control-Allow-Credentials' in self.h...
def __init__(__self__, *, resource_group_name: pulumi.Input[str], storage_account: pulumi.Input['StorageAccountArgs'], workspace_name: pulumi.Input[str], containers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, e_tag: Optional[pulumi.Input[str]]=None, storage_insight_name: Optional[pulumi.Input[str]]=None,...
-41,640,019,047,830,790
The set of arguments for constructing a StorageInsightConfig resource. :param pulumi.Input[str] resource_group_name: The name of the resource group. The name is case insensitive. :param pulumi.Input['StorageAccountArgs'] storage_account: The storage account connection details :param pulumi.Input[str] workspace_name: Th...
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
__init__
polivbr/pulumi-azure-native
python
def __init__(__self__, *, resource_group_name: pulumi.Input[str], storage_account: pulumi.Input['StorageAccountArgs'], workspace_name: pulumi.Input[str], containers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, e_tag: Optional[pulumi.Input[str]]=None, storage_insight_name: Optional[pulumi.Input[str]]=None,...
@property @pulumi.getter(name='resourceGroupName') def resource_group_name(self) -> pulumi.Input[str]: '\n The name of the resource group. The name is case insensitive.\n ' return pulumi.get(self, 'resource_group_name')
9,099,428,823,929,783,000
The name of the resource group. The name is case insensitive.
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
resource_group_name
polivbr/pulumi-azure-native
python
@property @pulumi.getter(name='resourceGroupName') def resource_group_name(self) -> pulumi.Input[str]: '\n \n ' return pulumi.get(self, 'resource_group_name')
@property @pulumi.getter(name='storageAccount') def storage_account(self) -> pulumi.Input['StorageAccountArgs']: '\n The storage account connection details\n ' return pulumi.get(self, 'storage_account')
507,877,174,712,349,700
The storage account connection details
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
storage_account
polivbr/pulumi-azure-native
python
@property @pulumi.getter(name='storageAccount') def storage_account(self) -> pulumi.Input['StorageAccountArgs']: '\n \n ' return pulumi.get(self, 'storage_account')
@property @pulumi.getter(name='workspaceName') def workspace_name(self) -> pulumi.Input[str]: '\n The name of the workspace.\n ' return pulumi.get(self, 'workspace_name')
-6,043,356,629,165,876,000
The name of the workspace.
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
workspace_name
polivbr/pulumi-azure-native
python
@property @pulumi.getter(name='workspaceName') def workspace_name(self) -> pulumi.Input[str]: '\n \n ' return pulumi.get(self, 'workspace_name')
@property @pulumi.getter def containers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: '\n The names of the blob containers that the workspace should read\n ' return pulumi.get(self, 'containers')
2,516,808,853,289,985,000
The names of the blob containers that the workspace should read
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
containers
polivbr/pulumi-azure-native
python
@property @pulumi.getter def containers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: '\n \n ' return pulumi.get(self, 'containers')
@property @pulumi.getter(name='eTag') def e_tag(self) -> Optional[pulumi.Input[str]]: '\n The ETag of the storage insight.\n ' return pulumi.get(self, 'e_tag')
5,386,400,399,290,158,000
The ETag of the storage insight.
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
e_tag
polivbr/pulumi-azure-native
python
@property @pulumi.getter(name='eTag') def e_tag(self) -> Optional[pulumi.Input[str]]: '\n \n ' return pulumi.get(self, 'e_tag')
@property @pulumi.getter(name='storageInsightName') def storage_insight_name(self) -> Optional[pulumi.Input[str]]: '\n Name of the storageInsightsConfigs resource\n ' return pulumi.get(self, 'storage_insight_name')
-9,068,494,032,015,256,000
Name of the storageInsightsConfigs resource
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
storage_insight_name
polivbr/pulumi-azure-native
python
@property @pulumi.getter(name='storageInsightName') def storage_insight_name(self) -> Optional[pulumi.Input[str]]: '\n \n ' return pulumi.get(self, 'storage_insight_name')
@property @pulumi.getter def tables(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: '\n The names of the Azure tables that the workspace should read\n ' return pulumi.get(self, 'tables')
-5,734,022,118,253,810,000
The names of the Azure tables that the workspace should read
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
tables
polivbr/pulumi-azure-native
python
@property @pulumi.getter def tables(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: '\n \n ' return pulumi.get(self, 'tables')
@property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]: '\n Resource tags.\n ' return pulumi.get(self, 'tags')
-2,047,115,851,061,118,500
Resource tags.
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
tags
polivbr/pulumi-azure-native
python
@property @pulumi.getter def tags(self) -> Optional[pulumi.Input[Mapping[(str, pulumi.Input[str])]]]: '\n \n ' return pulumi.get(self, 'tags')
@overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, containers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, e_tag: Optional[pulumi.Input[str]]=None, resource_group_name: Optional[pulumi.Input[str]]=None, storage_account: Optional[pulumi.Input[pulumi.InputType[...
8,636,932,789,713,882,000
The top level storage insight resource container. API Version: 2020-08-01. :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] containers: The names of the blob containers that the workspace should read :para...
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
__init__
polivbr/pulumi-azure-native
python
@overload def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions]=None, containers: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, e_tag: Optional[pulumi.Input[str]]=None, resource_group_name: Optional[pulumi.Input[str]]=None, storage_account: Optional[pulumi.Input[pulumi.InputType[...
@overload def __init__(__self__, resource_name: str, args: StorageInsightConfigArgs, opts: Optional[pulumi.ResourceOptions]=None): "\n The top level storage insight resource container.\n API Version: 2020-08-01.\n\n :param str resource_name: The name of the resource.\n :param StorageInsi...
3,297,964,980,969,051,000
The top level storage insight resource container. API Version: 2020-08-01. :param str resource_name: The name of the resource. :param StorageInsightConfigArgs args: The arguments to use to populate this resource's properties. :param pulumi.ResourceOptions opts: Options for the resource.
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
__init__
polivbr/pulumi-azure-native
python
@overload def __init__(__self__, resource_name: str, args: StorageInsightConfigArgs, opts: Optional[pulumi.ResourceOptions]=None): "\n The top level storage insight resource container.\n API Version: 2020-08-01.\n\n :param str resource_name: The name of the resource.\n :param StorageInsi...
@staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None) -> 'StorageInsightConfig': "\n Get an existing StorageInsightConfig resource's state with the given name, id, and optional extra\n properties used to qualify the lookup.\n\n :param str ...
4,728,537,262,257,571,000
Get an existing StorageInsightConfig 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 opts...
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
get
polivbr/pulumi-azure-native
python
@staticmethod def get(resource_name: str, id: pulumi.Input[str], opts: Optional[pulumi.ResourceOptions]=None) -> 'StorageInsightConfig': "\n Get an existing StorageInsightConfig resource's state with the given name, id, and optional extra\n properties used to qualify the lookup.\n\n :param str ...
@property @pulumi.getter def containers(self) -> pulumi.Output[Optional[Sequence[str]]]: '\n The names of the blob containers that the workspace should read\n ' return pulumi.get(self, 'containers')
5,895,872,450,965,376,000
The names of the blob containers that the workspace should read
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
containers
polivbr/pulumi-azure-native
python
@property @pulumi.getter def containers(self) -> pulumi.Output[Optional[Sequence[str]]]: '\n \n ' return pulumi.get(self, 'containers')
@property @pulumi.getter(name='eTag') def e_tag(self) -> pulumi.Output[Optional[str]]: '\n The ETag of the storage insight.\n ' return pulumi.get(self, 'e_tag')
6,580,174,356,673,608,000
The ETag of the storage insight.
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
e_tag
polivbr/pulumi-azure-native
python
@property @pulumi.getter(name='eTag') def e_tag(self) -> pulumi.Output[Optional[str]]: '\n \n ' return pulumi.get(self, 'e_tag')
@property @pulumi.getter def name(self) -> pulumi.Output[str]: '\n The name of the resource\n ' return pulumi.get(self, 'name')
2,231,345,607,626,165,800
The name of the resource
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
name
polivbr/pulumi-azure-native
python
@property @pulumi.getter def name(self) -> pulumi.Output[str]: '\n \n ' return pulumi.get(self, 'name')
@property @pulumi.getter def status(self) -> pulumi.Output['outputs.StorageInsightStatusResponse']: '\n The status of the storage insight\n ' return pulumi.get(self, 'status')
-5,288,598,013,457,447,000
The status of the storage insight
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
status
polivbr/pulumi-azure-native
python
@property @pulumi.getter def status(self) -> pulumi.Output['outputs.StorageInsightStatusResponse']: '\n \n ' return pulumi.get(self, 'status')
@property @pulumi.getter(name='storageAccount') def storage_account(self) -> pulumi.Output['outputs.StorageAccountResponse']: '\n The storage account connection details\n ' return pulumi.get(self, 'storage_account')
-4,159,935,955,763,377,000
The storage account connection details
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
storage_account
polivbr/pulumi-azure-native
python
@property @pulumi.getter(name='storageAccount') def storage_account(self) -> pulumi.Output['outputs.StorageAccountResponse']: '\n \n ' return pulumi.get(self, 'storage_account')
@property @pulumi.getter def tables(self) -> pulumi.Output[Optional[Sequence[str]]]: '\n The names of the Azure tables that the workspace should read\n ' return pulumi.get(self, 'tables')
6,806,337,111,924,012,000
The names of the Azure tables that the workspace should read
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
tables
polivbr/pulumi-azure-native
python
@property @pulumi.getter def tables(self) -> pulumi.Output[Optional[Sequence[str]]]: '\n \n ' return pulumi.get(self, 'tables')
@property @pulumi.getter def tags(self) -> pulumi.Output[Optional[Mapping[(str, str)]]]: '\n Resource tags.\n ' return pulumi.get(self, 'tags')
-2,929,197,049,816,896,000
Resource tags.
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
tags
polivbr/pulumi-azure-native
python
@property @pulumi.getter def tags(self) -> pulumi.Output[Optional[Mapping[(str, str)]]]: '\n \n ' return pulumi.get(self, 'tags')
@property @pulumi.getter def type(self) -> pulumi.Output[str]: '\n The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"\n ' return pulumi.get(self, 'type')
-5,449,551,391,296,740,000
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
sdk/python/pulumi_azure_native/operationalinsights/storage_insight_config.py
type
polivbr/pulumi-azure-native
python
@property @pulumi.getter def type(self) -> pulumi.Output[str]: '\n \n ' return pulumi.get(self, 'type')
def interpolate1d(x, values, tangents): 'Perform cubic hermite spline interpolation on a 1D spline.\n\n The x coordinates of the spline knots are at [0 : 1 : len(values)-1].\n Queries outside of the range of the spline are computed using linear\n extrapolation. See https://en.wikipedia.org/wiki/Cubic_Hermite_spl...
-6,282,021,684,821,428,000
Perform cubic hermite spline interpolation on a 1D spline. The x coordinates of the spline knots are at [0 : 1 : len(values)-1]. Queries outside of the range of the spline are computed using linear extrapolation. See https://en.wikipedia.org/wiki/Cubic_Hermite_spline for details, where "x" corresponds to `x`, "p" corr...
pioneer/robust_loss_pytorch/cubic_spline.py
interpolate1d
AaltoVision/automodulator
python
def interpolate1d(x, values, tangents): 'Perform cubic hermite spline interpolation on a 1D spline.\n\n The x coordinates of the spline knots are at [0 : 1 : len(values)-1].\n Queries outside of the range of the spline are computed using linear\n extrapolation. See https://en.wikipedia.org/wiki/Cubic_Hermite_spl...
def print_data(data: list) -> None: '\n 2차원 리스트의 내용을 출력\n 1 10 20 30 40\n 2 11 21 31 41\n ...\n\n\n :param data: 2차원 행렬 형태의 리스트\n :return: None\n ' readcsv = open('data/exam.csv', mode='r', encoding='utf-8') line = readcsv.readline() while line: print(line.strip()) l...
-3,626,549,826,081,273,000
2차원 리스트의 내용을 출력 1 10 20 30 40 2 11 21 31 41 ... :param data: 2차원 행렬 형태의 리스트 :return: None
lec07_file/file07.py
print_data
SOOIN-KIM/lab-python
python
def print_data(data: list) -> None: '\n 2차원 리스트의 내용을 출력\n 1 10 20 30 40\n 2 11 21 31 41\n ...\n\n\n :param data: 2차원 행렬 형태의 리스트\n :return: None\n ' readcsv = open('data/exam.csv', mode='r', encoding='utf-8') line = readcsv.readline() while line: print(line.strip()) l...
def construct_k_colored_graph(k, n, p): '\n Constructs a k colored graph of n nodes in which a pair\n of nodes shares an edge with probability 0 <= p <= 1.\n\n Note: this code is for demonstrative purposes only; the\n solution for such a problem will not necessarily exist,\n in which case the concret...
8,291,928,439,992,019,000
Constructs a k colored graph of n nodes in which a pair of nodes shares an edge with probability 0 <= p <= 1. Note: this code is for demonstrative purposes only; the solution for such a problem will not necessarily exist, in which case the concretization process will throw an exception.
examples/example-5.py
construct_k_colored_graph
abarreal/coopy
python
def construct_k_colored_graph(k, n, p): '\n Constructs a k colored graph of n nodes in which a pair\n of nodes shares an edge with probability 0 <= p <= 1.\n\n Note: this code is for demonstrative purposes only; the\n solution for such a problem will not necessarily exist,\n in which case the concret...
def close(self): '\n Close the socket.\n ' self.sock.close()
4,806,724,708,709,453,000
Close the socket.
python/lib/socket.py
close
TpmKranz/netsec-scion
python
def close(self): '\n \n ' self.sock.close()
def __init__(self, bind=None, addr_type=AddrType.IPV6, reuse=False): '\n Initialize a UDP socket, then call superclass init for socket options\n and binding.\n\n :param tuple bind:\n Optional tuple of (`str`, `int`, `str`) describing respectively the\n address and port to ...
-3,654,269,377,549,289,000
Initialize a UDP socket, then call superclass init for socket options and binding. :param tuple bind: Optional tuple of (`str`, `int`, `str`) describing respectively the address and port to bind to, and an optional description. :param addr_type: Socket domain. Must be one of :const:`~lib.types.AddrType.IPV...
python/lib/socket.py
__init__
TpmKranz/netsec-scion
python
def __init__(self, bind=None, addr_type=AddrType.IPV6, reuse=False): '\n Initialize a UDP socket, then call superclass init for socket options\n and binding.\n\n :param tuple bind:\n Optional tuple of (`str`, `int`, `str`) describing respectively the\n address and port to ...
def bind(self, addr, port=0, desc=None): '\n Bind socket to the specified address & port. If `addr` is ``None``, the\n socket will bind to all interfaces.\n\n :param str addr: Address to bind to (can be ``None``, see above).\n :param int port: Port to bind to.\n :param str desc: O...
6,334,852,750,349,397,000
Bind socket to the specified address & port. If `addr` is ``None``, the socket will bind to all interfaces. :param str addr: Address to bind to (can be ``None``, see above). :param int port: Port to bind to. :param str desc: Optional purpose of the port.
python/lib/socket.py
bind
TpmKranz/netsec-scion
python
def bind(self, addr, port=0, desc=None): '\n Bind socket to the specified address & port. If `addr` is ``None``, the\n socket will bind to all interfaces.\n\n :param str addr: Address to bind to (can be ``None``, see above).\n :param int port: Port to bind to.\n :param str desc: O...
def send(self, data, dst=None): '\n Send data to a specified destination.\n\n :param bytes data: Data to send.\n :param tuple dst:\n Tuple of (`str`, `int`) describing the destination address and port,\n respectively.\n ' try: ret = self.sock.sendto(data...
-7,940,587,675,143,595,000
Send data to a specified destination. :param bytes data: Data to send. :param tuple dst: Tuple of (`str`, `int`) describing the destination address and port, respectively.
python/lib/socket.py
send
TpmKranz/netsec-scion
python
def send(self, data, dst=None): '\n Send data to a specified destination.\n\n :param bytes data: Data to send.\n :param tuple dst:\n Tuple of (`str`, `int`) describing the destination address and port,\n respectively.\n ' try: ret = self.sock.sendto(data...
def recv(self, block=True): '\n Read data from socket.\n\n :returns:\n Tuple of (`bytes`, (`str`, `int`) containing the data, and remote\n host/port respectively.\n ' flags = 0 if (not block): flags = MSG_DONTWAIT while True: try: re...
-3,302,182,164,630,096,400
Read data from socket. :returns: Tuple of (`bytes`, (`str`, `int`) containing the data, and remote host/port respectively.
python/lib/socket.py
recv
TpmKranz/netsec-scion
python
def recv(self, block=True): '\n Read data from socket.\n\n :returns:\n Tuple of (`bytes`, (`str`, `int`) containing the data, and remote\n host/port respectively.\n ' flags = 0 if (not block): flags = MSG_DONTWAIT while True: try: re...
def __init__(self, reg=None, bind_ip=(), bind_unix=None, sock=None): '\n Initialise a socket of the specified type, and optionally bind it to an\n address/port.\n\n :param tuple reg:\n Optional tuple of (`SCIONAddr`, `int`, `SVCType`, `bool`)\n describing respectively the ...
6,635,898,148,288,106,000
Initialise a socket of the specified type, and optionally bind it to an address/port. :param tuple reg: Optional tuple of (`SCIONAddr`, `int`, `SVCType`, `bool`) describing respectively the address, port, SVC type, and init value to register with the dispatcher. In sockets that do not connect to the di...
python/lib/socket.py
__init__
TpmKranz/netsec-scion
python
def __init__(self, reg=None, bind_ip=(), bind_unix=None, sock=None): '\n Initialise a socket of the specified type, and optionally bind it to an\n address/port.\n\n :param tuple reg:\n Optional tuple of (`SCIONAddr`, `int`, `SVCType`, `bool`)\n describing respectively the ...
def send(self, data, dst=None): '\n Send data through the socket.\n\n :param bytes data: Data to send.\n ' if dst: (dst_addr, dst_port) = dst if isinstance(dst_addr, str): dst_addr = haddr_parse_interface(dst_addr) addr_type = struct.pack('B', dst_addr.TY...
1,264,137,445,995,965,200
Send data through the socket. :param bytes data: Data to send.
python/lib/socket.py
send
TpmKranz/netsec-scion
python
def send(self, data, dst=None): '\n Send data through the socket.\n\n :param bytes data: Data to send.\n ' if dst: (dst_addr, dst_port) = dst if isinstance(dst_addr, str): dst_addr = haddr_parse_interface(dst_addr) addr_type = struct.pack('B', dst_addr.TY...
def recv(self, block=True): '\n Read data from socket.\n\n :returns: bytestring containing received data.\n ' flags = 0 if (not block): flags = MSG_DONTWAIT buf = recv_all(self.sock, (self.COOKIE_LEN + 5), flags) if (not buf): return (None, None) (cookie, add...
334,733,081,014,915,200
Read data from socket. :returns: bytestring containing received data.
python/lib/socket.py
recv
TpmKranz/netsec-scion
python
def recv(self, block=True): '\n Read data from socket.\n\n :returns: bytestring containing received data.\n ' flags = 0 if (not block): flags = MSG_DONTWAIT buf = recv_all(self.sock, (self.COOKIE_LEN + 5), flags) if (not buf): return (None, None) (cookie, add...
def add(self, sock, callback): '\n Add new socket.\n\n :param UDPSocket sock: UDPSocket to add.\n ' if (not sock.is_active()): return self._sel.register(sock.sock, selectors.EVENT_READ, (sock, callback))
558,938,295,974,006,900
Add new socket. :param UDPSocket sock: UDPSocket to add.
python/lib/socket.py
add
TpmKranz/netsec-scion
python
def add(self, sock, callback): '\n Add new socket.\n\n :param UDPSocket sock: UDPSocket to add.\n ' if (not sock.is_active()): return self._sel.register(sock.sock, selectors.EVENT_READ, (sock, callback))
def remove(self, sock): '\n Remove socket.\n\n :param UDPSocket sock: UDPSocket to remove.\n ' self._sel.unregister(sock.sock)
-9,222,864,604,528,158,000
Remove socket. :param UDPSocket sock: UDPSocket to remove.
python/lib/socket.py
remove
TpmKranz/netsec-scion
python
def remove(self, sock): '\n Remove socket.\n\n :param UDPSocket sock: UDPSocket to remove.\n ' self._sel.unregister(sock.sock)
def select_(self, timeout=None): '\n Return the set of UDPSockets that have data pending.\n\n :param float timeout:\n Number of seconds to wait for at least one UDPSocket to become\n ready. ``None`` means wait forever.\n ' for (key, _) in self._sel.select(timeout=timeo...
-1,330,899,738,019,222,300
Return the set of UDPSockets that have data pending. :param float timeout: Number of seconds to wait for at least one UDPSocket to become ready. ``None`` means wait forever.
python/lib/socket.py
select_
TpmKranz/netsec-scion
python
def select_(self, timeout=None): '\n Return the set of UDPSockets that have data pending.\n\n :param float timeout:\n Number of seconds to wait for at least one UDPSocket to become\n ready. ``None`` means wait forever.\n ' for (key, _) in self._sel.select(timeout=timeo...
def close(self): '\n Close all sockets.\n ' mapping = self._sel.get_map() if mapping: for entry in list(mapping.values()): sock = entry.data[0] self.remove(sock) sock.close() self._sel.close()
5,736,516,918,493,458,000
Close all sockets.
python/lib/socket.py
close
TpmKranz/netsec-scion
python
def close(self): '\n \n ' mapping = self._sel.get_map() if mapping: for entry in list(mapping.values()): sock = entry.data[0] self.remove(sock) sock.close() self._sel.close()
@classmethod def ReceivePayload(cls, socket): '\n Return only payload, not the raw message, None if failed.\n socket: a blocking socket for read data.\n ' rbufsize = 0 rfile = socket.makefile('rb', rbufsize) _L.debug('read raw_magic %s', threading.current_thread().name) try: ...
4,808,921,762,618,945,000
Return only payload, not the raw message, None if failed. socket: a blocking socket for read data.
client/python/unrealcv/__init__.py
ReceivePayload
AI-cecream/unrealcv
python
@classmethod def ReceivePayload(cls, socket): '\n Return only payload, not the raw message, None if failed.\n socket: a blocking socket for read data.\n ' rbufsize = 0 rfile = socket.makefile('rb', rbufsize) _L.debug('read raw_magic %s', threading.current_thread().name) try: ...
@classmethod def WrapAndSendPayload(cls, socket, payload): '\n Send payload, true if success, false if failed\n ' try: wbufsize = (- 1) socket_message = SocketMessage(payload) wfile = socket.makefile('wb', wbufsize) wfile.write(struct.pack(fmt, socket_message.magic)...
-1,074,405,196,215,218,600
Send payload, true if success, false if failed
client/python/unrealcv/__init__.py
WrapAndSendPayload
AI-cecream/unrealcv
python
@classmethod def WrapAndSendPayload(cls, socket, payload): '\n \n ' try: wbufsize = (- 1) socket_message = SocketMessage(payload) wfile = socket.makefile('wb', wbufsize) wfile.write(struct.pack(fmt, socket_message.magic)) wfile.write(struct.pack(fmt, socket_...
def __init__(self, endpoint, raw_message_handler): '\n Parameters:\n endpoint: a tuple (ip, port)\n message_handler: a function defined as `def message_handler(msg)` to handle incoming message, msg is a string\n ' self.endpoint = endpoint self.raw_message_handler = raw_message_ha...
-1,795,471,374,995,031,600
Parameters: endpoint: a tuple (ip, port) message_handler: a function defined as `def message_handler(msg)` to handle incoming message, msg is a string
client/python/unrealcv/__init__.py
__init__
AI-cecream/unrealcv
python
def __init__(self, endpoint, raw_message_handler): '\n Parameters:\n endpoint: a tuple (ip, port)\n message_handler: a function defined as `def message_handler(msg)` to handle incoming message, msg is a string\n ' self.endpoint = endpoint self.raw_message_handler = raw_message_ha...
def connect(self, timeout=1): '\n Try to connect to server, return whether connection successful\n ' if self.isconnected(): return True try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(self.endpoint) self.socket = s _L.debug('BaseClie...
-721,923,439,331,663,600
Try to connect to server, return whether connection successful
client/python/unrealcv/__init__.py
connect
AI-cecream/unrealcv
python
def connect(self, timeout=1): '\n \n ' if self.isconnected(): return True try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect(self.endpoint) self.socket = s _L.debug('BaseClient: wait for connection confirm') self.wait_connected....
def __receiving(self): '\n Receive packages, Extract message from packages\n Call self.message_handler if got a message\n Also check whether client is still connected\n ' _L.debug('BaseClient start receiving in %s', threading.current_thread().name) while True: if self.isc...
-5,815,084,445,951,740,000
Receive packages, Extract message from packages Call self.message_handler if got a message Also check whether client is still connected
client/python/unrealcv/__init__.py
__receiving
AI-cecream/unrealcv
python
def __receiving(self): '\n Receive packages, Extract message from packages\n Call self.message_handler if got a message\n Also check whether client is still connected\n ' _L.debug('BaseClient start receiving in %s', threading.current_thread().name) while True: if self.isc...
def send(self, message): '\n Send message out, return whether the message was successfully sent\n ' if self.isconnected(): _L.debug('BaseClient: Send message %s', self.socket) SocketMessage.WrapAndSendPayload(self.socket, message) return True else: _L.error('Fai...
4,428,672,945,703,160,000
Send message out, return whether the message was successfully sent
client/python/unrealcv/__init__.py
send
AI-cecream/unrealcv
python
def send(self, message): '\n \n ' if self.isconnected(): _L.debug('BaseClient: Send message %s', self.socket) SocketMessage.WrapAndSendPayload(self.socket, message) return True else: _L.error('Fail to send message, client is not connected') return False
def request(self, message, timeout=5): "\n Send a request to server and wait util get a response from server or timeout.\n\n Parameters\n ----------\n cmd : str\n command to control the game. More info can be seen from http://docs.unrealcv.org/en/master/reference/commands.html...
-3,716,979,843,409,303,000
Send a request to server and wait util get a response from server or timeout. Parameters ---------- cmd : str command to control the game. More info can be seen from http://docs.unrealcv.org/en/master/reference/commands.html Returns ------- str plain text message from server Examples -------- >>> client = Cl...
client/python/unrealcv/__init__.py
request
AI-cecream/unrealcv
python
def request(self, message, timeout=5): "\n Send a request to server and wait util get a response from server or timeout.\n\n Parameters\n ----------\n cmd : str\n command to control the game. More info can be seen from http://docs.unrealcv.org/en/master/reference/commands.html...
def get_listener(arn: Optional[str]=None, load_balancer_arn: Optional[str]=None, port: Optional[int]=None, tags: Optional[Mapping[(str, str)]]=None, opts: Optional[pulumi.InvokeOptions]=None) -> AwaitableGetListenerResult: '\n > **Note:** `alb.Listener` is known as `lb.Listener`. The functionality is identical.\...
3,149,790,035,484,996,000
> **Note:** `alb.Listener` is known as `lb.Listener`. The functionality is identical. Provides information about a Load Balancer Listener. This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listen...
sdk/python/pulumi_aws/elasticloadbalancingv2/get_listener.py
get_listener
RafalSumislawski/pulumi-aws
python
def get_listener(arn: Optional[str]=None, load_balancer_arn: Optional[str]=None, port: Optional[int]=None, tags: Optional[Mapping[(str, str)]]=None, opts: Optional[pulumi.InvokeOptions]=None) -> AwaitableGetListenerResult: '\n > **Note:** `alb.Listener` is known as `lb.Listener`. The functionality is identical.\...
@_utilities.lift_output_func(get_listener) def get_listener_output(arn: Optional[pulumi.Input[Optional[str]]]=None, load_balancer_arn: Optional[pulumi.Input[Optional[str]]]=None, port: Optional[pulumi.Input[Optional[int]]]=None, tags: Optional[pulumi.Input[Optional[Mapping[(str, str)]]]]=None, opts: Optional[pulumi.Inv...
1,704,198,829,280,914,400
> **Note:** `alb.Listener` is known as `lb.Listener`. The functionality is identical. Provides information about a Load Balancer Listener. This data source can prove useful when a module accepts an LB Listener as an input variable and needs to know the LB it is attached to, or other information specific to the listen...
sdk/python/pulumi_aws/elasticloadbalancingv2/get_listener.py
get_listener_output
RafalSumislawski/pulumi-aws
python
@_utilities.lift_output_func(get_listener) def get_listener_output(arn: Optional[pulumi.Input[Optional[str]]]=None, load_balancer_arn: Optional[pulumi.Input[Optional[str]]]=None, port: Optional[pulumi.Input[Optional[int]]]=None, tags: Optional[pulumi.Input[Optional[Mapping[(str, str)]]]]=None, opts: Optional[pulumi.Inv...
@property @pulumi.getter def id(self) -> str: '\n The provider-assigned unique ID for this managed resource.\n ' return pulumi.get(self, 'id')
3,214,403,723,836,065,300
The provider-assigned unique ID for this managed resource.
sdk/python/pulumi_aws/elasticloadbalancingv2/get_listener.py
id
RafalSumislawski/pulumi-aws
python
@property @pulumi.getter def id(self) -> str: '\n \n ' return pulumi.get(self, 'id')
def get_ami_ids(executable_users: Optional[Sequence[str]]=None, filters: Optional[Sequence[pulumi.InputType['GetAmiIdsFilterArgs']]]=None, name_regex: Optional[str]=None, owners: Optional[Sequence[str]]=None, sort_ascending: Optional[bool]=None, opts: Optional[pulumi.InvokeOptions]=None) -> AwaitableGetAmiIdsResult: ...
7,074,052,594,644,177,000
Use this data source to get a list of AMI IDs matching the specified criteria. ## Example Usage ```python import pulumi import pulumi_aws as aws ubuntu = aws.ec2.get_ami_ids(filters=[aws.ec2.GetAmiIdsFilterArgs( name="name", values=["ubuntu/images/ubuntu-*-*-amd64-server-*"], )], owners=["099...
sdk/python/pulumi_aws/get_ami_ids.py
get_ami_ids
elad-snyk/pulumi-aws
python
def get_ami_ids(executable_users: Optional[Sequence[str]]=None, filters: Optional[Sequence[pulumi.InputType['GetAmiIdsFilterArgs']]]=None, name_regex: Optional[str]=None, owners: Optional[Sequence[str]]=None, sort_ascending: Optional[bool]=None, opts: Optional[pulumi.InvokeOptions]=None) -> AwaitableGetAmiIdsResult: ...
@property @pulumi.getter def id(self) -> str: '\n The provider-assigned unique ID for this managed resource.\n ' return pulumi.get(self, 'id')
3,214,403,723,836,065,300
The provider-assigned unique ID for this managed resource.
sdk/python/pulumi_aws/get_ami_ids.py
id
elad-snyk/pulumi-aws
python
@property @pulumi.getter def id(self) -> str: '\n \n ' return pulumi.get(self, 'id')
def __init__(self, path_name, surffix, path_surffix): '\n parameters set\n ' self.NUM_NODES = params['number of nodes in the cluster'] self.env = LraClusterEnv(num_nodes=self.NUM_NODES) ckpt_path_1 = (((path_surffix + path_name) + '1') + '/model.ckpt') ckpt_path_2 = (((path_surffix + p...
4,691,257,712,958,490,000
parameters set
testbed/SubScheduler.py
__init__
George-RL-based-container-sche/George
python
def __init__(self, path_name, surffix, path_surffix): '\n \n ' self.NUM_NODES = params['number of nodes in the cluster'] self.env = LraClusterEnv(num_nodes=self.NUM_NODES) ckpt_path_1 = (((path_surffix + path_name) + '1') + '/model.ckpt') ckpt_path_2 = (((path_surffix + path_name) + '2...
def create_passmanager(self, coupling_map, initial_layout=None): 'Returns a PassManager using self.pass_class(coupling_map, initial_layout)' passmanager = PassManager() if initial_layout: passmanager.append(SetLayout(Layout(initial_layout))) passmanager.append(self.pass_class(CouplingMap(couplin...
9,120,436,214,806,114,000
Returns a PassManager using self.pass_class(coupling_map, initial_layout)
test/python/transpiler/test_mappers.py
create_passmanager
7338/qiskit-terra
python
def create_passmanager(self, coupling_map, initial_layout=None): passmanager = PassManager() if initial_layout: passmanager.append(SetLayout(Layout(initial_layout))) passmanager.append(self.pass_class(CouplingMap(coupling_map), **self.additional_args)) return passmanager
def create_backend(self): 'Returns a Backend.' return BasicAer.get_backend('qasm_simulator')
4,351,215,274,467,167,700
Returns a Backend.
test/python/transpiler/test_mappers.py
create_backend
7338/qiskit-terra
python
def create_backend(self): return BasicAer.get_backend('qasm_simulator')
def generate_ground_truth(self, transpiled_result, filename): "Generates the expected result into a file.\n\n Checks if transpiled_result matches self.counts by running in a backend\n (self.create_backend()). That's saved in a QASM in filename.\n\n Args:\n transpiled_result (DAGCircu...
-8,147,350,874,310,590,000
Generates the expected result into a file. Checks if transpiled_result matches self.counts by running in a backend (self.create_backend()). That's saved in a QASM in filename. Args: transpiled_result (DAGCircuit): The DAGCircuit to execute. filename (string): Where the QASM is saved.
test/python/transpiler/test_mappers.py
generate_ground_truth
7338/qiskit-terra
python
def generate_ground_truth(self, transpiled_result, filename): "Generates the expected result into a file.\n\n Checks if transpiled_result matches self.counts by running in a backend\n (self.create_backend()). That's saved in a QASM in filename.\n\n Args:\n transpiled_result (DAGCircu...
def assertResult(self, result, circuit): 'Fetches the QASM in circuit.name file and compares it with result.' qasm_name = ('%s_%s.qasm' % (type(self).__name__, circuit.name)) filename = os.path.join(DIRNAME, qasm_name) if self.regenerate_expected: self.generate_ground_truth(result, filename) ...
5,088,906,843,568,885,000
Fetches the QASM in circuit.name file and compares it with result.
test/python/transpiler/test_mappers.py
assertResult
7338/qiskit-terra
python
def assertResult(self, result, circuit): qasm_name = ('%s_%s.qasm' % (type(self).__name__, circuit.name)) filename = os.path.join(DIRNAME, qasm_name) if self.regenerate_expected: self.generate_ground_truth(result, filename) expected = QuantumCircuit.from_qasm_file(filename) self.assertE...
def test_a_cx_to_map(self): "A single CX needs to be remapped.\n\n q0:----------m-----\n |\n q1:-[H]-(+)--|-m---\n | | |\n q2:------.---|-|-m-\n | | |\n c0:----------.-|-|-\n c1:------------.-|-\n c2:-------...
-8,152,201,310,096,919,000
A single CX needs to be remapped. q0:----------m----- | q1:-[H]-(+)--|-m--- | | | q2:------.---|-|-m- | | | c0:----------.-|-|- c1:------------.-|- c2:--------------.- CouplingMap map: [1]<-[0]->[2] expected count: '000': 50% '110': 50%
test/python/transpiler/test_mappers.py
test_a_cx_to_map
7338/qiskit-terra
python
def test_a_cx_to_map(self): "A single CX needs to be remapped.\n\n q0:----------m-----\n |\n q1:-[H]-(+)--|-m---\n | | |\n q2:------.---|-|-m-\n | | |\n c0:----------.-|-|-\n c1:------------.-|-\n c2:-------...
def test_initial_layout(self): "Using a non-trivial initial_layout.\n\n q3:----------------m--\n q0:----------m-----|--\n | |\n q1:-[H]-(+)--|-m---|--\n | | | |\n q2:------.---|-|-m-|--\n | | | |\n c0:--------...
-6,708,405,234,380,215,000
Using a non-trivial initial_layout. q3:----------------m-- q0:----------m-----|-- | | q1:-[H]-(+)--|-m---|-- | | | | q2:------.---|-|-m-|-- | | | | c0:----------.-|-|-|-- c1:------------.-|-|-- c2:--------------.-|-- c3:----------------.-- CouplingMap map: [1]<-[0...
test/python/transpiler/test_mappers.py
test_initial_layout
7338/qiskit-terra
python
def test_initial_layout(self): "Using a non-trivial initial_layout.\n\n q3:----------------m--\n q0:----------m-----|--\n | |\n q1:-[H]-(+)--|-m---|--\n | | | |\n q2:------.---|-|-m-|--\n | | | |\n c0:--------...
def test_handle_measurement(self): "Handle measurement correctly.\n\n q0:--.-----(+)-m-------\n | | |\n q1:-(+)-(+)-|--|-m-----\n | | | |\n q2:------|--|--|-|-m---\n | | | | |\n q3:-[H]--.--.--|-|-|-m-\n ...
1,909,281,407,744,232,700
Handle measurement correctly. q0:--.-----(+)-m------- | | | q1:-(+)-(+)-|--|-m----- | | | | q2:------|--|--|-|-m--- | | | | | q3:-[H]--.--.--|-|-|-m- | | | | c0:------------.-|-|-|- c1:--------------.-|-|- c2:----------------.-|- c3:------------------.- Cou...
test/python/transpiler/test_mappers.py
test_handle_measurement
7338/qiskit-terra
python
def test_handle_measurement(self): "Handle measurement correctly.\n\n q0:--.-----(+)-m-------\n | | |\n q1:-(+)-(+)-|--|-m-----\n | | | |\n q2:------|--|--|-|-m---\n | | | | |\n q3:-[H]--.--.--|-|-|-m-\n ...
def build_holder_map(self) -> None: '\n Build a mapping of `HoldableObject` types to their corresponding\n `ObjectHolder`s. This mapping is used in `InterpreterBase` to automatically\n holderify all returned values from methods and functions.\n ' self.holder_map.update({l...
2,333,314,712,237,210,600
Build a mapping of `HoldableObject` types to their corresponding `ObjectHolder`s. This mapping is used in `InterpreterBase` to automatically holderify all returned values from methods and functions.
mesonbuild/interpreter/interpreter.py
build_holder_map
val-verde/python-meson
python
def build_holder_map(self) -> None: '\n Build a mapping of `HoldableObject` types to their corresponding\n `ObjectHolder`s. This mapping is used in `InterpreterBase` to automatically\n holderify all returned values from methods and functions.\n ' self.holder_map.update({l...
def append_holder_map(self, held_type: T.Type[mesonlib.HoldableObject], holder_type: T.Type[ObjectHolder]) -> None: '\n Adds one additional mapping to the `holder_map`.\n\n The intended use for this function is in the `initialize` method of\n modules to register custom object holder...
2,906,162,101,009,650,700
Adds one additional mapping to the `holder_map`. The intended use for this function is in the `initialize` method of modules to register custom object holders.
mesonbuild/interpreter/interpreter.py
append_holder_map
val-verde/python-meson
python
def append_holder_map(self, held_type: T.Type[mesonlib.HoldableObject], holder_type: T.Type[ObjectHolder]) -> None: '\n Adds one additional mapping to the `holder_map`.\n\n The intended use for this function is in the `initialize` method of\n modules to register custom object holder...
@staticmethod def _validate_custom_target_outputs(has_multi_in: bool, outputs: T.Iterable[str], name: str) -> None: 'Checks for additional invalid values in a custom_target output.\n\n This cannot be done with typed_kwargs because it requires the number of\n inputs.\n ' for out in outputs: ...
215,060,965,166,665,920
Checks for additional invalid values in a custom_target output. This cannot be done with typed_kwargs because it requires the number of inputs.
mesonbuild/interpreter/interpreter.py
_validate_custom_target_outputs
val-verde/python-meson
python
@staticmethod def _validate_custom_target_outputs(has_multi_in: bool, outputs: T.Iterable[str], name: str) -> None: 'Checks for additional invalid values in a custom_target output.\n\n This cannot be done with typed_kwargs because it requires the number of\n inputs.\n ' for out in outputs: ...
def install_data_impl(self, sources: T.List[mesonlib.File], install_dir: str, install_mode: FileMode, rename: T.Optional[str], tag: T.Optional[str], install_dir_name: T.Optional[str]=None, install_data_type: T.Optional[str]=None) -> build.Data: 'Just the implementation with no validation.' data = build.Data(sou...
7,161,431,886,592,338,000
Just the implementation with no validation.
mesonbuild/interpreter/interpreter.py
install_data_impl
val-verde/python-meson
python
def install_data_impl(self, sources: T.List[mesonlib.File], install_dir: str, install_mode: FileMode, rename: T.Optional[str], tag: T.Optional[str], install_dir_name: T.Optional[str]=None, install_data_type: T.Optional[str]=None) -> build.Data: data = build.Data(sources, install_dir, (install_dir_name or insta...
def source_strings_to_files(self, sources: T.List['SourceInputs'], strict: bool=True) -> T.List['SourceOutputs']: 'Lower inputs to a list of Targets and Files, replacing any strings.\n\n :param sources: A raw (Meson DSL) list of inputs (targets, files, and\n strings)\n :raises InterpreterEx...
-1,622,654,216,923,596,800
Lower inputs to a list of Targets and Files, replacing any strings. :param sources: A raw (Meson DSL) list of inputs (targets, files, and strings) :raises InterpreterException: if any of the inputs are of an invalid type :return: A list of Targets and Files
mesonbuild/interpreter/interpreter.py
source_strings_to_files
val-verde/python-meson
python
def source_strings_to_files(self, sources: T.List['SourceInputs'], strict: bool=True) -> T.List['SourceOutputs']: 'Lower inputs to a list of Targets and Files, replacing any strings.\n\n :param sources: A raw (Meson DSL) list of inputs (targets, files, and\n strings)\n :raises InterpreterEx...
def is_locked(hass, entity_id=None): 'Return if the lock is locked based on the statemachine.' entity_id = (entity_id or ENTITY_ID_ALL_LOCKS) return hass.states.is_state(entity_id, STATE_LOCKED)
5,302,125,805,284,089,000
Return if the lock is locked based on the statemachine.
homeassistant/components/lock/__init__.py
is_locked
Norien/Home-Assistant
python
def is_locked(hass, entity_id=None): entity_id = (entity_id or ENTITY_ID_ALL_LOCKS) return hass.states.is_state(entity_id, STATE_LOCKED)
def lock(hass, entity_id=None, code=None): 'Lock all or specified locks.' data = {} if code: data[ATTR_CODE] = code if entity_id: data[ATTR_ENTITY_ID] = entity_id hass.services.call(DOMAIN, SERVICE_LOCK, data)
4,340,812,531,294,071,300
Lock all or specified locks.
homeassistant/components/lock/__init__.py
lock
Norien/Home-Assistant
python
def lock(hass, entity_id=None, code=None): data = {} if code: data[ATTR_CODE] = code if entity_id: data[ATTR_ENTITY_ID] = entity_id hass.services.call(DOMAIN, SERVICE_LOCK, data)
def unlock(hass, entity_id=None, code=None): 'Unlock all or specified locks.' data = {} if code: data[ATTR_CODE] = code if entity_id: data[ATTR_ENTITY_ID] = entity_id hass.services.call(DOMAIN, SERVICE_UNLOCK, data)
-934,216,263,176,914,000
Unlock all or specified locks.
homeassistant/components/lock/__init__.py
unlock
Norien/Home-Assistant
python
def unlock(hass, entity_id=None, code=None): data = {} if code: data[ATTR_CODE] = code if entity_id: data[ATTR_ENTITY_ID] = entity_id hass.services.call(DOMAIN, SERVICE_UNLOCK, data)
@asyncio.coroutine def async_setup(hass, config): 'Track states and offer events for locks.' component = EntityComponent(_LOGGER, DOMAIN, hass, SCAN_INTERVAL, GROUP_NAME_ALL_LOCKS) (yield from component.async_setup(config)) @asyncio.coroutine def async_handle_lock_service(service): 'Handle ...
6,413,752,585,001,510,000
Track states and offer events for locks.
homeassistant/components/lock/__init__.py
async_setup
Norien/Home-Assistant
python
@asyncio.coroutine def async_setup(hass, config): component = EntityComponent(_LOGGER, DOMAIN, hass, SCAN_INTERVAL, GROUP_NAME_ALL_LOCKS) (yield from component.async_setup(config)) @asyncio.coroutine def async_handle_lock_service(service): 'Handle calls to the lock services.' targe...
@asyncio.coroutine def async_handle_lock_service(service): 'Handle calls to the lock services.' target_locks = component.async_extract_from_service(service) code = service.data.get(ATTR_CODE) for entity in target_locks: if (service.service == SERVICE_LOCK): (yield from entity.async_l...
2,997,979,547,901,405,700
Handle calls to the lock services.
homeassistant/components/lock/__init__.py
async_handle_lock_service
Norien/Home-Assistant
python
@asyncio.coroutine def async_handle_lock_service(service): target_locks = component.async_extract_from_service(service) code = service.data.get(ATTR_CODE) for entity in target_locks: if (service.service == SERVICE_LOCK): (yield from entity.async_lock(code=code)) else: ...
@property def changed_by(self): 'Last change triggered by.' return None
-9,118,920,222,303,797,000
Last change triggered by.
homeassistant/components/lock/__init__.py
changed_by
Norien/Home-Assistant
python
@property def changed_by(self): return None
@property def code_format(self): 'Regex for code format or None if no code is required.' return None
-1,164,223,299,001,269,500
Regex for code format or None if no code is required.
homeassistant/components/lock/__init__.py
code_format
Norien/Home-Assistant
python
@property def code_format(self): return None
@property def is_locked(self): 'Return true if the lock is locked.' return None
2,237,670,600,384,488,200
Return true if the lock is locked.
homeassistant/components/lock/__init__.py
is_locked
Norien/Home-Assistant
python
@property def is_locked(self): return None
def lock(self, **kwargs): 'Lock the lock.' raise NotImplementedError()
8,987,824,800,343,890,000
Lock the lock.
homeassistant/components/lock/__init__.py
lock
Norien/Home-Assistant
python
def lock(self, **kwargs): raise NotImplementedError()
def async_lock(self, **kwargs): 'Lock the lock.\n\n This method must be run in the event loop and returns a coroutine.\n ' return self.hass.loop.run_in_executor(None, ft.partial(self.lock, **kwargs))
-7,589,919,978,103,788,000
Lock the lock. This method must be run in the event loop and returns a coroutine.
homeassistant/components/lock/__init__.py
async_lock
Norien/Home-Assistant
python
def async_lock(self, **kwargs): 'Lock the lock.\n\n This method must be run in the event loop and returns a coroutine.\n ' return self.hass.loop.run_in_executor(None, ft.partial(self.lock, **kwargs))
def unlock(self, **kwargs): 'Unlock the lock.' raise NotImplementedError()
-4,919,582,497,115,918,000
Unlock the lock.
homeassistant/components/lock/__init__.py
unlock
Norien/Home-Assistant
python
def unlock(self, **kwargs): raise NotImplementedError()
def async_unlock(self, **kwargs): 'Unlock the lock.\n\n This method must be run in the event loop and returns a coroutine.\n ' return self.hass.loop.run_in_executor(None, ft.partial(self.unlock, **kwargs))
-4,903,250,694,778,949,000
Unlock the lock. This method must be run in the event loop and returns a coroutine.
homeassistant/components/lock/__init__.py
async_unlock
Norien/Home-Assistant
python
def async_unlock(self, **kwargs): 'Unlock the lock.\n\n This method must be run in the event loop and returns a coroutine.\n ' return self.hass.loop.run_in_executor(None, ft.partial(self.unlock, **kwargs))
@property def state_attributes(self): 'Return the state attributes.' if (self.code_format is None): return None state_attr = {ATTR_CODE_FORMAT: self.code_format, ATTR_CHANGED_BY: self.changed_by} return state_attr
-6,797,728,062,003,370,000
Return the state attributes.
homeassistant/components/lock/__init__.py
state_attributes
Norien/Home-Assistant
python
@property def state_attributes(self): if (self.code_format is None): return None state_attr = {ATTR_CODE_FORMAT: self.code_format, ATTR_CHANGED_BY: self.changed_by} return state_attr
@property def state(self): 'Return the state.' locked = self.is_locked if (locked is None): return STATE_UNKNOWN return (STATE_LOCKED if locked else STATE_UNLOCKED)
7,724,984,683,789,897,000
Return the state.
homeassistant/components/lock/__init__.py
state
Norien/Home-Assistant
python
@property def state(self): locked = self.is_locked if (locked is None): return STATE_UNKNOWN return (STATE_LOCKED if locked else STATE_UNLOCKED)
@computed_property def system_wide_role(self): 'For choosing the role string to show to the user; of all the roles in\n the system-wide context, it shows the highest ranked one (if there are\n multiple) or "No Access" if there are none.\n ' if (self.email in getattr(settings, 'BOOTSTRAP_ADMIN_USERS', [...
2,767,158,828,240,276,000
For choosing the role string to show to the user; of all the roles in the system-wide context, it shows the highest ranked one (if there are multiple) or "No Access" if there are none.
src/ggrc/models/person.py
system_wide_role
mikecb/ggrc-core
python
@computed_property def system_wide_role(self): 'For choosing the role string to show to the user; of all the roles in\n the system-wide context, it shows the highest ranked one (if there are\n multiple) or "No Access" if there are none.\n ' if (self.email in getattr(settings, 'BOOTSTRAP_ADMIN_USERS', [...
def _get_column_by_index(tensor, indices): 'Returns columns from a 2-D tensor by index.' shape = array_ops.shape(tensor) p_flat = array_ops.reshape(tensor, [(- 1)]) i_flat = array_ops.reshape((array_ops.reshape((math_ops.range(0, shape[0]) * shape[1]), [(- 1), 1]) + indices), [(- 1)]) return array_o...
5,450,827,665,698,653,000
Returns columns from a 2-D tensor by index.
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch.py
_get_column_by_index
JustinACoder/H22-GR3-UnrealAI
python
def _get_column_by_index(tensor, indices): shape = array_ops.shape(tensor) p_flat = array_ops.reshape(tensor, [(- 1)]) i_flat = array_ops.reshape((array_ops.reshape((math_ops.range(0, shape[0]) * shape[1]), [(- 1), 1]) + indices), [(- 1)]) return array_ops.reshape(array_ops.gather(p_flat, i_flat), ...
def _make_predictions_dict(stamp, logits, partition_ids, ensemble_stats, used_handlers, leaf_index=None): 'Returns predictions for the given logits and n_classes.\n\n Args:\n stamp: The ensemble stamp.\n logits: A rank 2 `Tensor` with shape [batch_size, n_classes - 1]. that\n contains predictions when n...
-2,629,575,622,720,228,000
Returns predictions for the given logits and n_classes. Args: stamp: The ensemble stamp. logits: A rank 2 `Tensor` with shape [batch_size, n_classes - 1]. that contains predictions when no dropout was applied. partition_ids: A rank 1 `Tensor` with shape [batch_size]. ensemble_stats: A TreeEnsembleStatsOp r...
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch.py
_make_predictions_dict
JustinACoder/H22-GR3-UnrealAI
python
def _make_predictions_dict(stamp, logits, partition_ids, ensemble_stats, used_handlers, leaf_index=None): 'Returns predictions for the given logits and n_classes.\n\n Args:\n stamp: The ensemble stamp.\n logits: A rank 2 `Tensor` with shape [batch_size, n_classes - 1]. that\n contains predictions when n...
def extract_features(features, feature_columns, use_core_columns): 'Extracts columns from a dictionary of features.\n\n Args:\n features: `dict` of `Tensor` objects.\n feature_columns: A list of feature_columns.\n\n Returns:\n Seven values:\n - A list of all feature column names.\n - A list of ...
-7,117,044,286,999,141,000
Extracts columns from a dictionary of features. Args: features: `dict` of `Tensor` objects. feature_columns: A list of feature_columns. Returns: Seven values: - A list of all feature column names. - A list of dense floats. - A list of sparse float feature indices. - A list of sparse float featur...
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch.py
extract_features
JustinACoder/H22-GR3-UnrealAI
python
def extract_features(features, feature_columns, use_core_columns): 'Extracts columns from a dictionary of features.\n\n Args:\n features: `dict` of `Tensor` objects.\n feature_columns: A list of feature_columns.\n\n Returns:\n Seven values:\n - A list of all feature column names.\n - A list of ...
def _dropout_params(mode, ensemble_stats): 'Returns parameters relevant for dropout.\n\n Args:\n mode: Train/Eval/Infer\n ensemble_stats: A TreeEnsembleStatsOp result tuple.\n\n Returns:\n Whether to apply dropout and a dropout seed.\n ' if (mode == learn.ModeKeys.TRAIN): apply_dropout = Tru...
6,727,304,262,766,258,000
Returns parameters relevant for dropout. Args: mode: Train/Eval/Infer ensemble_stats: A TreeEnsembleStatsOp result tuple. Returns: Whether to apply dropout and a dropout seed.
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch.py
_dropout_params
JustinACoder/H22-GR3-UnrealAI
python
def _dropout_params(mode, ensemble_stats): 'Returns parameters relevant for dropout.\n\n Args:\n mode: Train/Eval/Infer\n ensemble_stats: A TreeEnsembleStatsOp result tuple.\n\n Returns:\n Whether to apply dropout and a dropout seed.\n ' if (mode == learn.ModeKeys.TRAIN): apply_dropout = Tru...
def __init__(self, ps_ops, num_tasks): 'Create a new `_RoundRobinStrategy`.\n\n Args:\n ps_ops: List of Op types to place on PS.\n num_tasks: Number of ps tasks to cycle among.\n ' next_task = 0 self._next_task_per_op = {} for op in ps_ops: self._next_task_per_op[op] = next_task ...
-2,634,130,208,861,780,500
Create a new `_RoundRobinStrategy`. Args: ps_ops: List of Op types to place on PS. num_tasks: Number of ps tasks to cycle among.
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch.py
__init__
JustinACoder/H22-GR3-UnrealAI
python
def __init__(self, ps_ops, num_tasks): 'Create a new `_RoundRobinStrategy`.\n\n Args:\n ps_ops: List of Op types to place on PS.\n num_tasks: Number of ps tasks to cycle among.\n ' next_task = 0 self._next_task_per_op = {} for op in ps_ops: self._next_task_per_op[op] = next_task ...
def __call__(self, op): 'Choose a ps task index for the given `Operation`.\n\n Args:\n op: An `Operation` to be placed on ps.\n\n Returns:\n The next ps task index to use for the `Operation`. Returns the next\n index, in the range `[offset, offset + num_tasks)`.\n\n Raises:\n ValueError...
-5,665,164,402,685,172,000
Choose a ps task index for the given `Operation`. Args: op: An `Operation` to be placed on ps. Returns: The next ps task index to use for the `Operation`. Returns the next index, in the range `[offset, offset + num_tasks)`. Raises: ValueError: If attempting to place non-PS Op.
Plugins/UnrealEnginePython/Binaries/Win64/Lib/site-packages/tensorflow/contrib/boosted_trees/python/training/functions/gbdt_batch.py
__call__
JustinACoder/H22-GR3-UnrealAI
python
def __call__(self, op): 'Choose a ps task index for the given `Operation`.\n\n Args:\n op: An `Operation` to be placed on ps.\n\n Returns:\n The next ps task index to use for the `Operation`. Returns the next\n index, in the range `[offset, offset + num_tasks)`.\n\n Raises:\n ValueError...