40a882d47b80ca9c8743510320288477445a14a2,floydker/src/floydker/render.py,,render_matrix,#Any#Any#,66
Before Change
target_env_cfg = populate_target_env_cfg(target_cfg, target_env)
logger.debug("[%s] Rendering template with context %s",
project_name, target_env_cfg)
with open(dockerfile_path, "w") as f:
f.write(template.render(**target_env_cfg))
logger.debug("[%s] after wrote matrix: %s", project_name, matrix)
After Change
// target_cfg here describes how to render multiple images for a given
// version of a project
target_cfg = matrix.get(target)
if not target_cfg:
logger.error("[%s] target (%s) configuration not found!",
project_name, target)
continue
// create target directory for Dockerfiles
target_dir = os.path.join(matrix_dir, target)
if not os.path.isdir(target_dir):
os.mkdir(target_dir)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: floydhub/dockerfiles
Commit Name: 40a882d47b80ca9c8743510320288477445a14a2
Time: 2017-05-14
Author: dave2008713@gmail.com
File Name: floydker/src/floydker/render.py
Class Name:
Method Name: render_matrix
Project Name: studioml/studio
Commit Name: bb6b2d059ad7b8a231d9f8015b41e60f033eaf76
Time: 2017-08-04
Author: peter.zhokhov@sentient.ai
File Name: studio/model.py
Class Name:
Method Name: get_config
Project Name: commonsense/conceptnet5
Commit Name: 322d70ddf4964e7eb85334d695038ff0db7514a8
Time: 2014-02-28
Author: rob@luminoso.com
File Name: conceptnet5/builders/combine_assertions.py
Class Name:
Method Name: combine_assertions