678df94206b2a4b23d022999152c0dd272ff2e98,utils/cache.py,,get_template_cache_key,#Any#,28
Before Change
def get_template_cache_key(fragment_name, *variables):
args = md5(u":".join(map(compose(urlquote, unicode), variables)))
old = "template.cache.%s.%s" % (fragment_name, args.hexdigest())
new = make_template_fragment_key(fragment_name, variables)
// TODO: check that it works for multiple variables
return old
def invalidate_template_cache(fragment_name, *variables):
cache_key = get_template_cache_key(fragment_name, *variables)
After Change
def get_template_cache_key(fragment_name, *variables):
return make_template_fragment_key(fragment_name, variables)
def invalidate_template_cache(fragment_name, *variables):
cache_key = get_template_cache_key(fragment_name, *variables)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: MTG/freesound
Commit Name: 678df94206b2a4b23d022999152c0dd272ff2e98
Time: 2018-04-20
Author: phil.tgun@gmail.com
File Name: utils/cache.py
Class Name:
Method Name: get_template_cache_key
Project Name: Qiskit/qiskit-aqua
Commit Name: 008337ec340946f5ef5872a60b5975096a6ec9bc
Time: 2020-09-25
Author: mirotomasik@gmail.com
File Name: qiskit/aqua/operators/state_fns/circuit_state_fn.py
Class Name: CircuitStateFn
Method Name: tensor
Project Name: geomstats/geomstats
Commit Name: aba65f959fb114e67103a061e92ab5596c557d3d
Time: 2018-12-27
Author: ninamio78@gmail.com
File Name: geomstats/lie_group.py
Class Name: LieGroup
Method Name: group_exp