

def put(key, data):
    '\n    Store an object in S3.  This function makes one billable request.\n    '
    librato.count('blueprint-io-server.requests.put')
    statsd.increment('blueprint-io-server.requests.put')
    statsd.update('blueprint-io-server.storage', len(data))
    c = boto.connect_s3(access_key, secret_key)
    b = c.get_bucket(bucket, validate=False)
    k = b.new_key(key)
    try:
        k.set_contents_from_string(b, policy='public-read', reduced_redundancy=True)
        return True
    except (boto.exception.BotoClientError, boto.exception.BotoServerError, httplib.HTTPException, socket.error, socket.gaierror):
        return False

dataset/ETHPy150Open devstructure/blueprint/blueprint/io/server/backend.py put/VarMisuse@81/156 `data`->`b`