Did I find the right examples for you? yes no

All Samples(8)  |  Call(8)  |  Derive(0)  |  Import(0)

        hashDigest = lambda s: hashlib.md5(s).hexdigest()
        


src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Monkey-Patch/alfred/storage.py   AlfredWorkflow.com(Download)
def getLocalPath(source_link):
    if not os.path.exists(_storage_dir):
        os.makedirs(_storage_dir)
    _, ext = os.path.splitext(source_link)
    filename = '{}{}'.format(util.hashDigest(source_link), ext)

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Monkey-Patch/alfred/core.py   AlfredWorkflow.com(Download)
        name = pref.get('name', '')
        if not _bundle_id and name:
            name_hash = util.hashDigest(name)
            _bundle_id = 'com.alfredapp.workflow.{}'.format(name_hash)
    except:

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/Monkey-Patch/alfred/cache.py   AlfredWorkflow.com(Download)
def _getFilepath(name):
    if not os.path.exists(_cache_dir):
        os.makedirs(_cache_dir)
    # convert to md5, more safe for file name
    return os.path.join(_cache_dir, '{}.json'.format(util.hashDigest(name)))

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/AlfredWorkflow.com-Search/alfred/storage.py   AlfredWorkflow.com(Download)
def getLocalPath(source_link):
    if not os.path.exists(_storage_dir):
        os.makedirs(_storage_dir)
    _, ext = os.path.splitext(source_link)
    filename = '{}{}'.format(util.hashDigest(source_link), ext)

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/AlfredWorkflow.com-Search/alfred/core.py   AlfredWorkflow.com(Download)
        name = pref.get('name', '')
        if not _bundle_id and name:
            name_hash = util.hashDigest(name)
            _bundle_id = 'com.alfredapp.workflow.{}'.format(name_hash)
    except:

src/a/l/AlfredWorkflow.com-HEAD/Sources/Workflows/AlfredWorkflow.com-Search/alfred/cache.py   AlfredWorkflow.com(Download)
def _getFilepath(name):
    if not os.path.exists(_cache_dir):
        os.makedirs(_cache_dir)
    # convert to md5, more safe for file name
    return os.path.join(_cache_dir, '{}.json'.format(util.hashDigest(name)))

src/s/m/SmartThings-Alfred-HEAD/alfredworkflow/alfred/storage.py   SmartThings-Alfred(Download)
        os.makedirs(storage_dir)
    _, ext = os.path.splitext(source_link)
    filename = '{}{}'.format(util.hashDigest(source_link), ext)
    return os.path.join(storage_dir, filename)
 

src/s/m/SmartThings-Alfred-HEAD/alfredworkflow/alfred/cache.py   SmartThings-Alfred(Download)
        os.makedirs(cache_dir)
    # convert to md5, more safe for file name
    return os.path.join(cache_dir, '{}.json'.format(util.hashDigest(name)))
 
def _getContent(name):