code string | signature string | docstring string | loss_without_docstring float64 | loss_with_docstring float64 | factor float64 |
|---|---|---|---|---|---|
if isinstance(s, unicode):
s = s.encode("utf-8")
fp = StringIO.StringIO(s)
r = self.set_contents_from_file(fp, headers, replace, cb, num_cb,
policy, md5)
fp.close()
return r | def set_contents_from_string(self, s, headers=None, replace=True,
cb=None, num_cb=10, policy=None, md5=None) | Store an object in S3 using the name of the Key object as the
key in S3 and the string 's' as the contents.
See set_contents_from_file method for details about the
parameters.
:type headers: dict
:param headers: Additional headers to pass along with the
r... | 1.996323 | 2.52993 | 0.789082 |
jobflows = self.describe_jobflows(jobflow_ids=[jobflow_id])
if jobflows:
return jobflows[0] | def describe_jobflow(self, jobflow_id) | Describes a single Elastic MapReduce job flow
:type jobflow_id: str
:param jobflow_id: The job flow id of interest | 2.500422 | 4.72185 | 0.529543 |
params = {}
if states:
self.build_list_params(params, states, 'JobFlowStates.member')
if jobflow_ids:
self.build_list_params(params, jobflow_ids, 'JobFlowIds.member')
if created_after:
params['CreatedAfter'] = created_after.strftime(
... | def describe_jobflows(self, states=None, jobflow_ids=None,
created_after=None, created_before=None) | Retrieve all the Elastic MapReduce job flows on your account
:type states: list
:param states: A list of strings with job flow states wanted
:type jobflow_ids: list
:param jobflow_ids: A list of job flow IDs
:type created_after: datetime
:param created_after: Bound on j... | 1.861966 | 1.993999 | 0.933785 |
params = {}
self.build_list_params(params, jobflow_ids, 'JobFlowIds.member')
return self.get_status('TerminateJobFlows', params, verb='POST') | def terminate_jobflows(self, jobflow_ids) | Terminate an Elastic MapReduce job flow
:type jobflow_ids: list
:param jobflow_ids: A list of job flow IDs | 3.05165 | 4.12426 | 0.739927 |
if type(steps) != types.ListType:
steps = [steps]
params = {}
params['JobFlowId'] = jobflow_id
# Step args
step_args = [self._build_step_args(step) for step in steps]
params.update(self._build_step_list(step_args))
return self.get_object(
... | def add_jobflow_steps(self, jobflow_id, steps) | Adds steps to a jobflow
:type jobflow_id: str
:param jobflow_id: The job flow id
:type steps: list(boto.emr.Step)
:param steps: A list of steps to add to the job | 3.234199 | 3.626924 | 0.891719 |
if type(instance_groups) != types.ListType:
instance_groups = [instance_groups]
params = {}
params['JobFlowId'] = jobflow_id
params.update(self._build_instance_group_list_args(instance_groups))
return self.get_object('AddInstanceGroups', params,
... | def add_instance_groups(self, jobflow_id, instance_groups) | Adds instance groups to a running cluster.
:type jobflow_id: str
:param jobflow_id: The id of the jobflow which will take the
new instance groups
:type instance_groups: list(boto.emr.InstanceGroup)
:param instance_groups: A list of instance groups to add to the ... | 2.69573 | 3.254141 | 0.8284 |
if type(instance_group_ids) != types.ListType:
instance_group_ids = [instance_group_ids]
if type(new_sizes) != types.ListType:
new_sizes = [new_sizes]
instance_groups = zip(instance_group_ids, new_sizes)
params = {}
for k, ig in enumerate(instan... | def modify_instance_groups(self, instance_group_ids, new_sizes) | Modify the number of nodes and configuration settings in an
instance group.
:type instance_group_ids: list(str)
:param instance_group_ids: A list of the ID's of the instance
groups to be modified
:type new_sizes: list(int)
:param new_sizes: A list of the... | 3.50288 | 3.894917 | 0.899346 |
assert termination_protection_status in (True, False)
params = {}
params['TerminationProtected'] = (termination_protection_status and "true") or "false"
self.build_list_params(params, [jobflow_id], 'JobFlowIds.member')
return self.get_status('SetTerminationProtection',... | def set_termination_protection(self, jobflow_id,
termination_protection_status) | Set termination protection on specified Elastic MapReduce job flows
:type jobflow_ids: list or str
:param jobflow_ids: A list of job flow IDs
:type termination_protection_status: bool
:param termination_protection_status: Termination protection status | 2.957108 | 3.5753 | 0.827094 |
params = {
'Instances.KeepJobFlowAliveWhenNoSteps' : str(keep_alive).lower(),
}
if hadoop_version:
params['Instances.HadoopVersion'] = hadoop_version
if ec2_keyname:
params['Instances.Ec2KeyName'] = ec2_keyname
if availability_zone:
... | def _build_instance_common_args(self, ec2_keyname, availability_zone,
keep_alive, hadoop_version) | Takes a number of parameters used when starting a jobflow (as
specified in run_jobflow() above). Returns a comparable dict for
use in making a RunJobFlow request. | 2.00247 | 1.853207 | 1.080543 |
params = {
'Instances.MasterInstanceType' : master_instance_type,
'Instances.SlaveInstanceType' : slave_instance_type,
'Instances.InstanceCount' : num_instances,
}
return params | def _build_instance_count_and_type_args(self, master_instance_type,
slave_instance_type, num_instances) | Takes a master instance type (string), a slave instance type
(string), and a number of instances. Returns a comparable dict
for use in making a RunJobFlow request. | 2.271667 | 2.197439 | 1.033779 |
params = {
'InstanceCount' : instance_group.num_instances,
'InstanceRole' : instance_group.role,
'InstanceType' : instance_group.type,
'Name' : instance_group.name,
'Market' : instance_group.market
}
if instance_group.market ==... | def _build_instance_group_args(self, instance_group) | Takes an InstanceGroup; returns a dict that, when its keys are
properly prefixed, can be used for describing InstanceGroups in
RunJobFlow or AddInstanceGroups requests. | 2.394175 | 2.033941 | 1.177111 |
if type(instance_groups) != types.ListType:
instance_groups = [instance_groups]
params = {}
for i, instance_group in enumerate(instance_groups):
ig_dict = self._build_instance_group_args(instance_group)
for key, value in ig_dict.iteritems():
... | def _build_instance_group_list_args(self, instance_groups) | Takes a list of InstanceGroups, or a single InstanceGroup. Returns
a comparable dict for use in making a RunJobFlow or AddInstanceGroups
request. | 2.349078 | 2.293713 | 1.024138 |
params = {}
if start_marker:
params = {'marker': start_marker}
response = self.make_request('GET', '/%s/hostedzone' % self.Version,
params=params)
body = response.read()
boto.log.debug(body)
if response.status >= 300:
raise... | def get_all_hosted_zones(self, start_marker=None, zone_list=None) | Returns a Python data structure with information about all
Hosted Zones defined for the AWS account.
:param int start_marker: start marker to pass when fetching additional
results after a truncated list
:param list zone_list: a HostedZones list to prepend to results | 2.788828 | 2.949033 | 0.945675 |
if caller_ref is None:
caller_ref = str(uuid.uuid4())
params = {'name' : domain_name,
'caller_ref' : caller_ref,
'comment' : comment,
'xmlns' : self.XMLNameSpace}
xml = HZXML % params
uri = '/%s/hostedzone' % self... | def create_hosted_zone(self, domain_name, caller_ref=None, comment='') | Create a new Hosted Zone. Returns a Python data structure with
information about the newly created Hosted Zone.
:type domain_name: str
:param domain_name: The name of the domain. This should be a
fully-specified domain, and should end with a final period
as the ... | 3.637899 | 3.944746 | 0.922214 |
from boto.route53.record import ResourceRecordSets
params = {'type': type, 'name': name,
'Identifier': identifier, 'maxitems': maxitems}
uri = '/%s/hostedzone/%s/rrset' % (self.Version, hosted_zone_id)
response = self.make_request('GET', uri, params=params)
... | def get_all_rrsets(self, hosted_zone_id, type=None,
name=None, identifier=None, maxitems=None) | Retrieve the Resource Record Sets defined for this Hosted Zone.
Returns the raw XML data returned by the Route53 call.
:type hosted_zone_id: str
:param hosted_zone_id: The unique identifier for the Hosted Zone
:type type: str
:param type: The type of resource record set... | 2.484147 | 2.976825 | 0.834496 |
uri = '/%s/change/%s' % (self.Version, change_id)
response = self.make_request('GET', uri)
body = response.read()
boto.log.debug(body)
if response.status >= 300:
raise exception.DNSServerError(response.status,
respon... | def get_change(self, change_id) | Get information about a proposed set of changes, as submitted
by the change_rrsets method.
Returns a Python data structure with status information about the
changes.
:type change_id: str
:param change_id: The unique identifier for the set of changes.
This ID is retur... | 3.221296 | 3.242103 | 0.993582 |
addr = rv = parse_addr(addr)
# In case we're not on the crashing frame we apply a simple heuristic:
# since we're most likely dealing with return addresses we just assume
# that the call is one instruction behind the current one.
if not meta or meta.get('frame_number') != 0:
rv = get_p... | def find_best_instruction(addr, cpu_name, meta=None) | Given an instruction and meta information this attempts to find
the best instruction for the frame. In some circumstances we can
fix it up a bit to improve the accuracy. For more information see
`symbolize_frame`. | 7.971181 | 8.033233 | 0.992276 |
return BucketListResultSet(self, prefix, delimiter, marker, headers) | def list(self, prefix='', delimiter='', marker='', headers=None) | List key objects within a bucket. This returns an instance of an
BucketListResultSet that automatically handles all of the result
paging, etc. from S3. You just need to keep iterating until
there are no more results.
Called with no arguments, this will return an iterator objec... | 8.114364 | 8.864703 | 0.915356 |
return VersionedBucketListResultSet(self, prefix, delimiter, key_marker,
version_id_marker, headers) | def list_versions(self, prefix='', delimiter='', key_marker='',
version_id_marker='', headers=None) | List version objects within a bucket. This returns an instance of an
VersionedBucketListResultSet that automatically handles all of the result
paging, etc. from S3. You just need to keep iterating until
there are no more results.
Called with no arguments, this will return an iterator o... | 5.614851 | 4.787392 | 1.172841 |
return MultiPartUploadListResultSet(self, key_marker,
upload_id_marker,
headers) | def list_multipart_uploads(self, key_marker='',
upload_id_marker='',
headers=None) | List multipart upload objects within a bucket. This returns an
instance of an MultiPartUploadListResultSet that automatically
handles all of the result paging, etc. from S3. You just need
to keep iterating until there are no more results.
:type marker: string
:param ma... | 5.752094 | 5.731414 | 1.003608 |
return self._get_all([('Contents', self.key_class),
('CommonPrefixes', Prefix)],
'', headers, **params) | def get_all_keys(self, headers=None, **params) | A lower-level method for listing contents of a bucket.
This closely models the actual S3 API and requires you to manually
handle the paging of results. For a higher-level method
that handles the details of paging for you, you can use the list method.
:type max_keys: int
... | 11.957829 | 12.303413 | 0.971912 |
return self._get_all([('Version', self.key_class),
('CommonPrefixes', Prefix),
('DeleteMarker', DeleteMarker)],
'versions', headers, **params) | def get_all_versions(self, headers=None, **params) | A lower-level, version-aware method for listing contents of a bucket.
This closely models the actual S3 API and requires you to manually
handle the paging of results. For a higher-level method
that handles the details of paging for you, you can use the list method.
:type max_ke... | 12.388147 | 10.095393 | 1.227109 |
ikeys = iter(keys)
result = MultiDeleteResult(self)
provider = self.connection.provider
query_args = 'delete'
def delete_keys2(hdrs):
hdrs = hdrs or {}
data = u
data += u"<Delete>"
if quiet:
data += u"<Quiet... | def delete_keys(self, keys, quiet=False, mfa_token=None, headers=None) | Deletes a set of keys using S3's Multi-object delete API. If a
VersionID is specified for that key then that version is removed.
Returns a MultiDeleteResult Object, which contains Deleted
and Error elements for each key you ask to delete.
:type keys: list
:param keys: A ... | 2.958347 | 2.847671 | 1.038866 |
if not subresource:
raise TypeError('set_subresource called with subresource=None')
query_args = subresource
if version_id:
query_args += '&versionId=%s' % version_id
response = self.connection.make_request('PUT', self.name, key_name,
... | def set_subresource(self, subresource, value, key_name = '', headers=None,
version_id=None) | Set a subresource for a bucket or key.
:type subresource: string
:param subresource: The subresource to set.
:type value: string
:param value: The value of the subresource.
:type key_name: string
:param key_name: The key to operate on, or None to operate on the
... | 2.397076 | 2.507876 | 0.955819 |
if not subresource:
raise TypeError('get_subresource called with subresource=None')
query_args = subresource
if version_id:
query_args += '&versionId=%s' % version_id
response = self.connection.make_request('GET', self.name, key_name,
... | def get_subresource(self, subresource, key_name='', headers=None,
version_id=None) | Get a subresource for a bucket or key.
:type subresource: string
:param subresource: The subresource to get.
:type key_name: string
:param key_name: The key to operate on, or None to operate on the
bucket.
:type headers: dict
:param headers: Ad... | 2.224479 | 2.227412 | 0.998683 |
if permission not in S3Permissions:
raise self.connection.provider.storage_permissions_error(
'Unknown Permission: %s' % permission)
policy = self.get_acl(headers=headers)
policy.acl.add_email_grant(permission, email_address)
self.set_acl(policy, head... | def add_email_grant(self, permission, email_address,
recursive=False, headers=None) | Convenience method that provides a quick way to add an email grant
to a bucket. This method retrieves the current ACL, creates a new
grant based on the parameters passed in, adds that grant to the ACL
and then PUT's the new ACL back to S3.
:type permission: string
:param... | 3.157347 | 3.344241 | 0.944114 |
if permission not in S3Permissions:
raise self.connection.provider.storage_permissions_error(
'Unknown Permission: %s' % permission)
policy = self.get_acl(headers=headers)
policy.acl.add_user_grant(permission, user_id,
displa... | def add_user_grant(self, permission, user_id, recursive=False,
headers=None, display_name=None) | Convenience method that provides a quick way to add a canonical
user grant to a bucket. This method retrieves the current ACL,
creates a new grant based on the parameters passed in, adds that
grant to the ACL and then PUT's the new ACL back to S3.
:type permission: string
... | 2.915757 | 2.941234 | 0.991338 |
response = self.connection.make_request('GET', self.name,
query_args='location')
body = response.read()
if response.status == 200:
rs = ResultSet(self)
h = handler.XmlHandler(rs, self)
xml.sax.parseStrin... | def get_location(self) | Returns the LocationConstraint for the bucket.
:rtype: str
:return: The LocationConstraint for the bucket or the empty
string if no constraint was specified when bucket
was created. | 3.485741 | 2.806569 | 1.241994 |
if versioning:
ver = 'Enabled'
else:
ver = 'Suspended'
if mfa_delete:
mfa = 'Enabled'
else:
mfa = 'Disabled'
body = self.VersioningBody % (ver, mfa)
if mfa_token:
if not headers:
headers ... | def configure_versioning(self, versioning, mfa_delete=False,
mfa_token=None, headers=None) | Configure versioning for this bucket.
..note:: This feature is currently in beta.
:type versioning: bool
:param versioning: A boolean indicating whether version is
enabled (True) or disabled (False).
:type mfa_delete: bool
:p... | 2.761923 | 2.729446 | 1.011899 |
response = self.connection.make_request('GET', self.name,
query_args='versioning', headers=headers)
body = response.read()
boto.log.debug(body)
if response.status == 200:
d = {}
ver = re.search(self.VersionRE, body)
if ver:
... | def get_versioning_status(self, headers=None) | Returns the current status of versioning on the bucket.
:rtype: dict
:returns: A dictionary containing a key named 'Versioning'
that can have a value of either Enabled, Disabled,
or Suspended. Also, if MFADelete has ever been enabled
on the bucket, ... | 2.411744 | 2.067746 | 1.166364 |
fp = StringIO.StringIO(lifecycle_config.to_xml())
md5 = boto.utils.compute_md5(fp)
if headers is None:
headers = {}
headers['Content-MD5'] = md5[1]
headers['Content-Type'] = 'text/xml'
response = self.connection.make_request('PUT', self.name,
... | def configure_lifecycle(self, lifecycle_config, headers=None) | Configure lifecycle for this bucket.
:type lifecycle_config: :class:`boto.s3.lifecycle.Lifecycle`
:param lifecycle_config: The lifecycle configuration you want
to configure for this bucket. | 2.426025 | 2.257831 | 1.074493 |
response = self.connection.make_request('GET', self.name,
query_args='lifecycle', headers=headers)
body = response.read()
boto.log.debug(body)
if response.status == 200:
lifecycle = Lifecycle(self)
h = handler.XmlHandler(lifecycle, self)
... | def get_lifecycle_config(self, headers=None) | Returns the current lifecycle configuration on the bucket.
:rtype: :class:`boto.s3.lifecycle.Lifecycle`
:returns: A LifecycleConfig object that describes all current
lifecycle rules in effect for the bucket. | 2.566445 | 2.272897 | 1.129151 |
if error_key:
error_frag = self.WebsiteErrorFragment % error_key
else:
error_frag = ''
body = self.WebsiteBody % (suffix, error_frag)
response = self.connection.make_request('PUT', self.name, data=body,
quer... | def configure_website(self, suffix, error_key='', headers=None) | Configure this bucket to act as a website
:type suffix: str
:param suffix: Suffix that is appended to a request that is for a
"directory" on the website endpoint (e.g. if the suffix
is index.html and you make a request to
samplebucket... | 2.879131 | 2.792866 | 1.030888 |
response = self.connection.make_request('GET', self.name,
query_args='website', headers=headers)
body = response.read()
boto.log.debug(body)
if response.status == 200:
e = boto.jsonresponse.Element()
h = boto.jsonresponse.XmlHandler(e, Non... | def get_website_configuration(self, headers=None) | Returns the current status of website configuration on the bucket.
:rtype: dict
:returns: A dictionary containing a Python representation
of the XML response from S3. The overall structure is:
* WebsiteConfiguration
* IndexDocument
* Suffix : suffix th... | 2.730189 | 3.133069 | 0.87141 |
response = self.connection.make_request('DELETE', self.name,
query_args='website', headers=headers)
body = response.read()
boto.log.debug(body)
if response.status == 204:
return True
else:
raise self.connection.provider.storage_res... | def delete_website_configuration(self, headers=None) | Removes all website configuration from the bucket. | 2.573035 | 2.224619 | 1.156618 |
l = [self.name]
l.append(S3WebsiteEndpointTranslate.translate_region(self.get_location()))
l.append('.'.join(self.connection.host.split('.')[-2:]))
return '.'.join(l) | def get_website_endpoint(self) | Returns the fully qualified hostname to use is you want to access this
bucket as a website. This doesn't validate whether the bucket has
been correctly configured as a website or not. | 7.867753 | 5.644107 | 1.393977 |
response = self.connection.make_request('PUT', self.name,
data=policy,
query_args='policy',
headers=headers)
body = response.read()
if response... | def set_policy(self, policy, headers=None) | Add or replace the JSON policy associated with the bucket.
:type policy: str
:param policy: The JSON policy as a string. | 2.54338 | 2.800922 | 0.908051 |
query_args = 'uploads'
provider = self.connection.provider
if headers is None:
headers = {}
if reduced_redundancy:
storage_class_header = provider.storage_class_header
if storage_class_header:
headers[storage_class_header] = 'R... | def initiate_multipart_upload(self, key_name, headers=None,
reduced_redundancy=False,
metadata=None, encrypt_key=False) | Start a multipart upload operation.
:type key_name: string
:param key_name: The name of the key that will ultimately result from
this multipart upload operation. This will be exactly
as the key appears in the bucket after the upload
... | 2.393238 | 2.497211 | 0.958364 |
query_args = 'uploadId=%s' % upload_id
if headers is None:
headers = {}
headers['Content-Type'] = 'text/xml'
response = self.connection.make_request('POST', self.name, key_name,
query_args=query_args,
... | def complete_multipart_upload(self, key_name, upload_id,
xml_body, headers=None) | Complete a multipart upload operation. | 2.789957 | 2.778183 | 1.004238 |
if is_secure:
return AsyncHTTPSConnection(host, http_client=self._httpclient)
else:
return AsyncHTTPConnection(host, http_client=self._httpclient) | def get_http_connection(self, host, is_secure) | Gets a connection from the pool for the named host. Returns
None if there is no connection that can be reused. | 3.213635 | 3.167043 | 1.014711 |
verification_input = NotificationMessage.SERVICE_NAME
verification_input += NotificationMessage.OPERATION_NAME
verification_input += self.timestamp
h = hmac.new(key=secret_key, digestmod=sha)
h.update(verification_input)
signature_calc = base64.b64encode(h.digest... | def verify(self, secret_key) | Verifies the authenticity of a notification message.
TODO: This is doing a form of authentication and
this functionality should really be merged
with the pluggable authentication mechanism
at some point. | 4.121358 | 3.851444 | 1.070081 |
rs = self.connection.get_all_images([self.id])
if len(rs) > 0:
img = rs[0]
if img.id == self.id:
self._update(img)
elif validate:
raise ValueError('%s is not a valid Image ID' % self.id)
return self.state | def update(self, validate=False) | Update the image's state information by making a call to fetch
the current image attributes from the service.
:type validate: bool
:param validate: By default, if EC2 returns no data about the
image the update method returns quietly. If
the val... | 4.324175 | 3.140546 | 1.376887 |
return self.connection.run_instances(self.id, min_count, max_count,
key_name, security_groups,
user_data, addressing_type,
instance_type, placement,
... | def run(self, min_count=1, max_count=1, key_name=None,
security_groups=None, user_data=None,
addressing_type=None, instance_type='m1.small', placement=None,
kernel_id=None, ramdisk_id=None,
monitoring_enabled=False, subnet_id=None,
block_device_map=None,
... | Runs this instance.
:type min_count: int
:param min_count: The minimum number of instances to start
:type max_count: int
:param max_count: The maximum number of instances to start
:type key_name: string
:param key_name: The name of the keypair t... | 1.542837 | 1.750874 | 0.881181 |
s = '<LifecycleConfiguration>'
for rule in self:
s += rule.to_xml()
s += '</LifecycleConfiguration>'
return s | def to_xml(self) | Returns a string containing the XML version of the Lifecycle
configuration as defined by S3. | 4.652341 | 2.795562 | 1.664188 |
rule = Rule(id, prefix, status, expiration)
self.append(rule) | def add_rule(self, id, prefix, status, expiration) | Add a rule to this Lifecycle configuration. This only adds
the rule to the local copy. To install the new rule(s) on
the bucket, you need to pass this Lifecycle config object
to the configure_lifecycle method of the Bucket object.
:type id: str
:param id: Unique identifier for... | 4.1027 | 9.163482 | 0.447723 |
if config_file:
cfg = Config(path=config_file)
if cfg.has_section('EC2'):
# include any EC2 configuration values that aren't specified in params:
for option in cfg.options('EC2'):
if option not in params:
params[option] = c... | def create(cls, config_file=None, logical_volume = None, cfg = None, **params) | Create a new instance based on the specified configuration file or the specified
configuration and the passed in parameters.
If the config_file argument is not None, the configuration is read from there.
Otherwise, the cfg argument is used.
The config file may include ... | 3.594957 | 3.620964 | 0.992818 |
'''Saves image from URL and returns ID for use with AJAX script'''
f = FileUpload()
f.title = request.GET['title'] or 'untitled'
f.description = request.GET['description']
url = urllib.unquote(request.GET['photo'])
file_content = urllib.urlopen(url).read()
file_name = url.split('/')[-1]
... | def download(request) | Saves image from URL and returns ID for use with AJAX script | 4.170554 | 2.912897 | 1.431755 |
global _enabled_browsers_cache
if _enabled_browsers_cache is not None:
return _enabled_browsers_cache
enabled = []
for browser_path in settings.ADMINFILES_BROWSER_VIEWS:
try:
view_class = import_browser(browser_path)
except ImportError:
continue
... | def get_enabled_browsers() | Check the ADMINFILES_BROWSER_VIEWS setting and return a list of
instantiated browser views that have the necessary
dependencies/configuration to run. | 2.98044 | 2.327729 | 1.280406 |
slug = cls.__name__.lower()
if slug.endswith('view'):
slug = slug[:-4]
return slug | def slug(cls) | Return slug suitable for accessing this view in a URLconf. | 3.844085 | 2.85466 | 1.3466 |
link = cls.__name__
if link.endswith('View'):
link = link[:-4]
return link | def link_text(cls) | Return link text for this view. | 4.709277 | 3.62175 | 1.300277 |
return self.table.layer2.update_item(self, expected_value,
return_values) | def save(self, expected_value=None, return_values=None) | Commits pending updates to Amazon DynamoDB.
:type expected_value: dict
:param expected_value: A dictionary of name/value pairs that
you expect. This dictionary should have name/value pairs
where the name is the name of the attribute and the value is
either the value... | 14.313835 | 12.851517 | 1.113786 |
return self.table.layer2.delete_item(self, expected_value,
return_values) | def delete(self, expected_value=None, return_values=None) | Delete the item from DynamoDB.
:type expected_value: dict
:param expected_value: A dictionary of name/value pairs that you expect.
This dictionary should have name/value pairs where the name
is the name of the attribute and the value is either the value
you are expec... | 10.610778 | 11.086079 | 0.957126 |
return self.table.layer2.put_item(self, expected_value, return_values) | def put(self, expected_value=None, return_values=None) | Store a new item or completely replace an existing item
in Amazon DynamoDB.
:type expected_value: dict
:param expected_value: A dictionary of name/value pairs that you expect.
This dictionary should have name/value pairs where the name
is the name of the attribute and th... | 10.812478 | 12.226256 | 0.884365 |
'''Extract the text from a PDF document, e.g. to add PDF text
content to an index for searching.
To use on a file, the syntax is:
text = pdf_to_text(open(pdf_filepath, 'rb'))
To use on a datastream from EULFedora, the syntax is:
pdfobj = repository.get_object(pid)
text = pdf_to... | def pdf_to_text(pdfstream) | Extract the text from a PDF document, e.g. to add PDF text
content to an index for searching.
To use on a file, the syntax is:
text = pdf_to_text(open(pdf_filepath, 'rb'))
To use on a datastream from EULFedora, the syntax is:
pdfobj = repository.get_object(pid)
text = pdf_to_text(p... | 5.192322 | 1.534809 | 3.383041 |
from boto.sqs.connection import SQSConnection
return SQSConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_sqs(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.sqs.connection.SQSConnection`
:return: A connection to Amazon's SQS | 2.064291 | 3.200756 | 0.644939 |
from boto.s3.connection import S3Connection
return S3Connection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_s3(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.s3.connection.S3Connection`
:return: A connection to Amazon's S3 | 1.93712 | 2.894021 | 0.669352 |
from boto.gs.connection import GSConnection
return GSConnection(gs_access_key_id, gs_secret_access_key, **kwargs) | def connect_gs(gs_access_key_id=None, gs_secret_access_key=None, **kwargs) | @type gs_access_key_id: string
@param gs_access_key_id: Your Google Cloud Storage Access Key ID
@type gs_secret_access_key: string
@param gs_secret_access_key: Your Google Cloud Storage Secret Access Key
@rtype: L{GSConnection<boto.gs.connection.GSConnection>}
@return: A connection to Google's Sto... | 2.11048 | 3.58019 | 0.589488 |
from boto.ec2.connection import EC2Connection
return EC2Connection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_ec2(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.ec2.connection.EC2Connection`
:return: A connection to Amazon's EC2 | 2.025271 | 3.280685 | 0.617332 |
from boto.ec2.elb import ELBConnection
return ELBConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_elb(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.ec2.elb.ELBConnection`
:return: A connection to Amazon's Load Balancing Service | 2.060154 | 3.598698 | 0.572472 |
from boto.ec2.autoscale import AutoScaleConnection
return AutoScaleConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_autoscale(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.ec2.autoscale.AutoScaleConnection`
:return: A connection to Amazon's Auto Scaling Service | 2.074254 | 3.524379 | 0.588544 |
from boto.ec2.cloudwatch import CloudWatchConnection
return CloudWatchConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_cloudwatch(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.ec2.cloudwatch.CloudWatchConnection`
:return: A connection to Amazon's EC2 Monitoring service | 2.188335 | 3.309695 | 0.66119 |
from boto.sdb.connection import SDBConnection
return SDBConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_sdb(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.sdb.connection.SDBConnection`
:return: A connection to Amazon's SDB | 2.006288 | 3.302188 | 0.607563 |
from boto.fps.connection import FPSConnection
return FPSConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_fps(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.fps.connection.FPSConnection`
:return: A connection to FPS | 2.324455 | 3.319321 | 0.70028 |
from boto.mturk.connection import MTurkConnection
return MTurkConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_mturk(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.mturk.connection.MTurkConnection`
:return: A connection to MTurk | 1.870094 | 2.556909 | 0.731388 |
from boto.cloudfront import CloudFrontConnection
return CloudFrontConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_cloudfront(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.fps.connection.FPSConnection`
:return: A connection to FPS | 2.181824 | 4.065784 | 0.536631 |
from boto.vpc import VPCConnection
return VPCConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_vpc(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.vpc.VPCConnection`
:return: A connection to VPC | 2.485011 | 3.901752 | 0.636896 |
from boto.rds import RDSConnection
return RDSConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_rds(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.rds.RDSConnection`
:return: A connection to RDS | 2.474422 | 3.310013 | 0.747556 |
from boto.emr import EmrConnection
return EmrConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_emr(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.emr.EmrConnection`
:return: A connection to Elastic mapreduce | 2.503991 | 3.325948 | 0.752865 |
from boto.sns import SNSConnection
return SNSConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_sns(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.sns.SNSConnection`
:return: A connection to Amazon's SNS | 2.365041 | 3.252976 | 0.727039 |
from boto.iam import IAMConnection
return IAMConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_iam(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.iam.IAMConnection`
:return: A connection to Amazon's IAM | 2.354737 | 3.625122 | 0.649561 |
from boto.route53 import Route53Connection
return Route53Connection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_route53(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.dns.Route53Connection`
:return: A connection to Amazon's Route53 DNS Service | 2.089872 | 3.386473 | 0.617123 |
from boto.cloudformation import CloudFormationConnection
return CloudFormationConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_cloudformation(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.cloudformation.CloudFormationConnection`
:return: A connection to Amazon's CloudFormation Service | 2.400912 | 4.142625 | 0.579563 |
from boto.ec2 import EC2Connection
from boto.ec2.regioninfo import RegionInfo
# Check for values in boto config, if not supplied as args
if not aws_access_key_id:
aws_access_key_id = config.get('Credentials',
'euca_access_key_id',
... | def connect_euca(host=None, aws_access_key_id=None, aws_secret_access_key=None,
port=8773, path='/services/Eucalyptus', is_secure=False,
**kwargs) | Connect to a Eucalyptus service.
:type host: string
:param host: the host name or ip address of the Eucalyptus server
:type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
... | 1.960048 | 2.143565 | 0.914387 |
from boto.ec2.regioninfo import RegionInfo
purl = urlparse.urlparse(url)
kwargs['port'] = purl.port
kwargs['host'] = purl.hostname
kwargs['path'] = purl.path
if not 'is_secure' in kwargs:
kwargs['is_secure'] = (purl.scheme == "https")
kwargs['region'] = RegionInfo(name = purl.... | def connect_ec2_endpoint(url, aws_access_key_id=None, aws_secret_access_key=None,
**kwargs) | Connect to an EC2 Api endpoint. Additional arguments are passed
through to connect_ec2.
:type url: string
:param url: A url for the ec2 api endpoint to connect to
:type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param a... | 2.2018 | 2.321764 | 0.948331 |
from boto.s3.connection import S3Connection
from boto.s3.connection import OrdinaryCallingFormat
# Check for values in boto config, if not supplied as args
if not aws_access_key_id:
aws_access_key_id = config.get('Credentials',
'euca_access_key_id',
... | def connect_walrus(host=None, aws_access_key_id=None, aws_secret_access_key=None,
port=8773, path='/services/Walrus', is_secure=False,
**kwargs) | Connect to a Walrus service.
:type host: string
:param host: the host name or ip address of the Walrus server
:type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rty... | 2.023103 | 2.188533 | 0.92441 |
from boto.ses import SESConnection
return SESConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_ses(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.ses.SESConnection`
:return: A connection to Amazon's SES | 2.11647 | 3.340425 | 0.633593 |
from boto.sts import STSConnection
return STSConnection(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_sts(aws_access_key_id=None, aws_secret_access_key=None, **kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.sts.STSConnection`
:return: A connection to Amazon's STS | 2.156402 | 3.374979 | 0.638938 |
from boto.s3.connection import S3Connection
from boto.s3.connection import OrdinaryCallingFormat
access_key = config.get('Credentials', 'ia_access_key_id',
ia_access_key_id)
secret_key = config.get('Credentials', 'ia_secret_access_key',
ia_se... | def connect_ia(ia_access_key_id=None, ia_secret_access_key=None,
is_secure=False, **kwargs) | Connect to the Internet Archive via their S3-like API.
:type ia_access_key_id: string
:param ia_access_key_id: Your IA Access Key ID. This will also look in your
boto config file for an entry in the Credentials
section called "ia_access_key_id"
:t... | 1.846069 | 1.985306 | 0.929866 |
from boto.dynamodb.layer2 import Layer2
return Layer2(aws_access_key_id, aws_secret_access_key, **kwargs) | def connect_dynamodb(aws_access_key_id=None,
aws_secret_access_key=None,
**kwargs) | :type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.dynamodb.layer2.Layer2`
:return: A connection to the Layer2 interface for DynamoDB. | 2.816461 | 2.642202 | 1.065952 |
option_name = '%s_extend' % module_name
version = config.get('Boto', option_name, None)
if version:
dirname = module_path[0]
path = os.path.join(dirname, version)
if os.path.isdir(path):
log.info('extending module %s with: %s' % (module_name, path))
modul... | def check_extensions(module_name, module_path) | This function checks for extensions to boto modules. It should be called in the
__init__.py file of all boto modules. See:
http://code.google.com/p/boto/wiki/ExtendModules
for details. | 3.592739 | 3.363377 | 1.068194 |
# Manually parse URI components instead of using urlparse.urlparse because
# what we're calling URIs don't really fit the standard syntax for URIs
# (the latter includes an optional host/net location part).
end_scheme_idx = uri_str.find('://')
if end_scheme_idx == -1:
# Check for commo... | def storage_uri(uri_str, default_scheme='file', debug=0, validate=True,
bucket_storage_uri_class=BucketStorageUri,
suppress_consec_slashes=True) | Instantiate a StorageUri from a URI string.
:type uri_str: string
:param uri_str: URI naming bucket + optional object.
:type default_scheme: string
:param default_scheme: default scheme for scheme-less URIs.
:type debug: int
:param debug: debug level to pass in to boto connection (range 0..2).
... | 4.373815 | 4.359868 | 1.003199 |
if not isinstance(key, boto.s3.key.Key):
raise InvalidUriError('Requested key (%s) is not a subclass of '
'boto.s3.key.Key' % str(type(key)))
prov_name = key.bucket.connection.provider.get_provider_name()
uri_str = '%s://%s/%s' % (prov_name, key.bucket.name, key.na... | def storage_uri_for_key(key) | Returns a StorageUri for the given key.
:type key: :class:`boto.s3.key.Key` or subclass
:param key: URI naming bucket + optional object. | 3.018956 | 3.034027 | 0.995033 |
return _get_request(_COM.format(c_api=_C_API_BEGINNING,
ct=commentable_type,
id_=id_,
api=_API_VERSION,
at=self.access_token)) | def get_comments(self, commentable_type, id_) | commentable_type: 'Press', 'Review', 'Startup', 'StartupRole', 'StatusUpdate' | 11.548881 | 10.502193 | 1.099664 |
return _get_request(_LIKES.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
lt=likable_type,
li=likable_id,
at=self.access_toke... | def get_likes(self, likable_type, likable_id) | likable_type: 'Comment', 'Press', 'Review', 'StartupRole', 'StatusUpdate'
likable_id: id of the object that the likes of it you are interested | 8.448674 | 8.931797 | 0.94591 |
if user_ids is None and startup_ids is None and direction is None:
raise Exception('At least one input argument should be different than None')
if isinstance(user_ids, list):
user_ids = ','.join(list(map(lambda k: str(k), user_ids)))
if isinstance(startup_ids, list):
startup_ids = ','... | def get_paths(self, user_ids=None, startup_ids=None, direction=None) | user_ids: paths between you and these users
startup_ids: paths between you and these startups
direction: 'following' or 'followed' | 2.594579 | 2.573332 | 1.008257 |
# Allowed maximum number of ids is 50
assert len(ids) <= 50
ids_ = ','.join(ids)
url = _USERS_BATCH.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
ids=ids_,
at=self.access_token)
return _get... | def get_users_batch(self, ids) | Ids: a list of ids that we want to return | 8.569863 | 8.375197 | 1.023243 |
return _get_request(_TAGS_USERS.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
id_=id_,
at=self.acc... | def get_tags_users(self, id_) | Get a particular user which are tagged based on the id_ | 12.114614 | 11.081273 | 1.093251 |
return _get_request(_STARTUP.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
id_=id_,
at=self.access_token)) | def get_startup(self, id_) | Get startup based on id | 12.167342 | 11.093495 | 1.0968 |
if user_id is None and startup_id is None:
raise Exception("You need to provide at least one parameter")
url = _STARTUP_R.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
at=self.access_token)
if user_id is not N... | def get_startup_roles(self, user_id=None, startup_id=None, role=None, direction='incoming') | user_id ->The user role you want to view
startup_id -> The startup whose roles you want to view
role -> The specific role, you'd like to filter ('founder', 'past investor', 'advisor')
direction ->Either incoming or outgoing | 3.389983 | 3.315292 | 1.022529 |
return _get_request(_STARTUP_C.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
id_=id_,
at=self.access_token)) | def get_startup_comments(self, id_) | Retrieve the comments of a particular startup | 15.313101 | 13.474731 | 1.136431 |
url = _STARTUP_RAISING.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
filter_=filter_,
at=... | def get_startups_filtered_by(self, filter_='raising') | Get startups based on which companies are raising funding | 11.598564 | 9.937502 | 1.167151 |
return _get_request(_STATUS_U.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
startup_id=startup_id,
at=self.access_token)) | def get_status_updates(self, startup_id) | Get status updates of a startup | 14.234946 | 13.738294 | 1.036151 |
return _get_request(_SLUG_SEARCH.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
slug=_format_query(slug),
at=self.access_token)) | def get_search_for_slugs(self, slug) | Search for a particular slug | 13.298786 | 11.873523 | 1.120037 |
search_url = _S_SEARCH.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
query=_format_query(query),
at=self.access_token)
if type_ is not None:
search_url + _TYPE_SUFFIX.format(type_=type_)
retur... | def get_search(self, query, type_=None) | Search for query, type_ is optional.
type_: 'User', 'Startup', 'MarketTag', 'LocationTag' | 5.933959 | 5.335838 | 1.112095 |
url = _REVIEWS_USER.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
user_id=user_id,
at=self.access_token)
return _get_request(url) | def get_reviews(self, user_id) | Get reviews for a particular user | 9.263952 | 7.995973 | 1.158577 |
return _get_request(_REVIEW_ID.format(c_api=_C_API_BEGINNING,
api=_API_VERSION,
id_=id_,
at=self.access_token)) | def get_review_id(self, id_) | Get a particular review id, independent from the user_id and
startup_id | 14.650147 | 12.806444 | 1.143967 |
return [SDBRegionInfo(name='us-east-1',
endpoint='sdb.amazonaws.com'),
SDBRegionInfo(name='eu-west-1',
endpoint='sdb.eu-west-1.amazonaws.com'),
SDBRegionInfo(name='us-west-1',
endpoint='sdb.us-west-1.amazonaws... | def regions() | Get all available regions for the SDB service.
:rtype: list
:return: A list of :class:`boto.sdb.regioninfo.RegionInfo` instances | 1.555978 | 1.444406 | 1.077244 |
if minute == 'random':
minute = str(random.randrange(60))
if hour == 'random':
hour = str(random.randrange(24))
fp = open('/etc/cron.d/%s' % name, "w")
if env:
for key, value in env.items():
fp.write('%s=%s\n' % (key, value))
... | def add_cron(self, name, command, minute="*", hour="*", mday="*", month="*", wday="*", who="root", env=None) | Write a file to /etc/cron.d to schedule a command
env is a dict containing environment variables you want to set in the file
name will be used as the name of the file | 1.938544 | 1.91314 | 1.013278 |
f_path = os.path.join("/etc/init.d", name)
f = open(f_path, "w")
f.write(file)
f.close()
os.chmod(f_path, stat.S_IREAD| stat.S_IWRITE | stat.S_IEXEC)
self.run("/usr/sbin/update-rc.d %s defaults" % name) | def add_init_script(self, file, name) | Add this file to the init.d directory | 2.185057 | 2.125902 | 1.027826 |
boto.log.info('Adding env variable: %s=%s' % (key, value))
if not os.path.exists("/etc/environment.orig"):
self.run('cp /etc/environment /etc/environment.orig', notify=False, exit_on_error=False)
fp = open('/etc/environment', 'a')
fp.write('\n%s="%s"' % (key, value))... | def add_env(self, key, value) | Add an environemnt variable
For Ubuntu, the best place is /etc/environment. Values placed here do
not need to be exported. | 3.077849 | 2.828563 | 1.088132 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.