df7332c3ba49e782f14414639e537f37a19133a8,catalyst/utils/plotly.py,,get_tensorboard_scalars,#Any#Any#Any#,18

Before Change


            if step in n and any(m in n for m in metrics)
        ]
    else:
        scalar_names = [n for n in event_acc.Tags()["scalars"] if step in n]

    scalars = {sn: event_acc.Scalars(sn) for sn in scalar_names}
    return scalars


def get_scatter(scalars: List[ScalarEvent], name: str) -> go.Scatter:

After Change


) -> Dict[str, List]:
    summary_reader = SummaryReader(logdir, type_filter="scalar")

    items = defaultdict(list)
    for item in summary_reader:
        if step in item.tag and (metrics is None or any(m in item.tag for m in metrics)):
            items[item.tag].append(item.value)
    return items

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: catalyst-team/catalyst
Commit Name: df7332c3ba49e782f14414639e537f37a19133a8
Time: 2019-05-13
Author: vvelicodnii@snapchat.com
File Name: catalyst/utils/plotly.py
Class Name:
Method Name: get_tensorboard_scalars


Project Name: microsoft/nni
Commit Name: f7b7edac5b9e329ffdda30d710f68db71d08e065
Time: 2020-11-22
Author: 38930155+chicm-ms@users.noreply.github.com
File Name: nni/common/graph_utils.py
Class Name: TorchModuleGraph
Method Name: _build_graph


Project Name: dmlc/gluon-nlp
Commit Name: f19ace982075ea009af81f5e9f687cc2276f50ea
Time: 2020-01-20
Author: 50716238+MoisesHer@users.noreply.github.com
File Name: scripts/bert/fp16_utils.py
Class Name:
Method Name: grad_global_norm