57a90c815b43fdfa6031597bbafa9fbcbfc00fe6,polyaxon_cli/cli/cluster.py,,get_node_info,#Any#,34
Before Change
click.secho("Node GPUs:", fg="yellow")
gpus_items = OrderedDict()
for gpu in gpus:
for k, v in six.iteritems(gpu):
if k in gpus_items:
gpus_items[k].append(v)
else:
gpus_items[k] = [v]
if gpus_items:
headers = six.iterkeys(gpu)
// remove the cluster_node uuid
gpus_items.pop("cluster_node")
After Change
def get_node_info(node_config):
if not node_config:
Printer.print_error("No node was found.")
sys.exit(0)
node = node_config.to_dict()
gpus = node.pop("gpus", [])
Printer.print_header("Node info:")
dict_tabulate(node)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: polyaxon/polyaxon
Commit Name: 57a90c815b43fdfa6031597bbafa9fbcbfc00fe6
Time: 2017-12-13
Author: mouradmourafiq@gmail.com
File Name: polyaxon_cli/cli/cluster.py
Class Name:
Method Name: get_node_info
Project Name: automl/SMAC3
Commit Name: 8b93c479bdd284b6377bea771c0f8d1495a58f42
Time: 2016-01-08
Author: lindauer@informatik.uni-freiburg.de
File Name: smac/smbo/smbo.py
Class Name: SMBO
Method Name: run
Project Name: xinntao/BasicSR
Commit Name: 29ab5e1965503be3ffe87462e973edf1d457af6e
Time: 2018-09-06
Author: wxt1994@126.com
File Name: codes/scripts/extract_subimgs_single.py
Class Name:
Method Name: main
Project Name: gooofy/zamia-speech
Commit Name: 79aebeb14bf19333e61ee305b99f91dd191942d7
Time: 2018-12-10
Author: guenter@zamia.org
File Name: speech_editor.py
Class Name:
Method Name: