57a90c815b43fdfa6031597bbafa9fbcbfc00fe6,polyaxon_cli/cli/cluster.py,,get_cluster_info,#Any#,14
Before Change
nodes = OrderedDict()
for node in cluster_config.nodes:
node = node.to_dict()
for k, v in six.iteritems(node):
if k in nodes:
nodes[k].append(v)
else:
nodes[k] = [v]
if nodes:
click.secho("Cluster Nodes:", fg="yellow")
click.echo(tabulate(nodes, headers="keys"))
After Change
def get_cluster_info(cluster_config):
Printer.print_header("Cluster info:")
cluster_dict = cluster_config.to_dict()
cluster_info = cluster_dict["version_api"]
dict_tabulate(cluster_info)
nodes = list_dicts_to_tabulate(cluster_dict["nodes"])
if nodes:
Printer.print_header("Cluster Nodes:")
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
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_cluster_info
Project Name: brian-team/brian2
Commit Name: b19d0834272dbe109dbc38045f4fe02ed92c8b85
Time: 2015-07-22
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/group.py
Class Name: Group
Method Name: get_states
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_cluster_info
Project Name: Theano/Theano
Commit Name: 24e7ed3b8f62fd702b2fea624189f93d145ad8b5
Time: 2017-05-30
Author: nouiz@nouiz.org
File Name: theano/gof/fg.py
Class Name: FunctionGraph
Method Name: orderings
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 86f4be110ff6bf7301ea97d0a8afd3626ad1b80c
Time: 2016-12-06
Author: tedsta@google.com
File Name: perfkitbenchmarker/linux_benchmarks/netperf_benchmark.py
Class Name:
Method Name: Run