3feed06829dbf98f9eb92c753da5d659457cf77a,lib/prody/sequence/msa.py,MSA,__init__,#MSA#Any#Any#Any#,112

Before Change


        if mapping is None:
            if labels is not None:
                // map labels to sequence index
                self._mapping = mapping = {
                splitSeqLabel(label)[0]: i for i, label in enumerate(labels)
                }
        elif mapping:
            try:
                mapping["isdict"]
            except KeyError:

After Change


            if labels is not None:
                // map labels to sequence index
                self._mapping = mapping = {}
                for index, label in enumerate(labels):
                    label = splitSeqLabel(label)[0]
                    try:
                        value = mapping[label]
                    except KeyError:
                        mapping[label] = index
                    else:
                        try:
                            value.append(index)
                        except AttributeError:
                            mapping[label] = [value, index] 
                
        elif mapping:
            try:
                mapping["isdict"]
            except KeyError:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 8

Instances


Project Name: prody/ProDy
Commit Name: 3feed06829dbf98f9eb92c753da5d659457cf77a
Time: 2012-12-11
Author: lordnapi@gmail.com
File Name: lib/prody/sequence/msa.py
Class Name: MSA
Method Name: __init__


Project Name: tensorflow/transform
Commit Name: 707061dd0a0ba414abf92c0c1fb1641b25b06e71
Time: 2017-09-29
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/saved/input_fn_maker.py
Class Name:
Method Name: build_transforming_training_input_fn


Project Name: snipsco/snips-nlu
Commit Name: 11778465b87dcacdf2ed4eb9eebc1e5257d6467d
Time: 2017-09-20
Author: adrien.ball@snips.net
File Name: snips_nlu/builtin_entities.py
Class Name:
Method Name:


Project Name: descarteslabs/descarteslabs-python
Commit Name: e6211ba0f59e0bd6c71459e9dfbc043d13eb24a8
Time: 2020-12-08
Author: gabe@descarteslabs.com
File Name: descarteslabs/workflows/interactive/parameters.py
Class Name: ParameterSet
Method Name: to_dict


Project Name: tensorflow/datasets
Commit Name: d867411ea3f30971f4b532f68c48e48d1e4f30ff
Time: 2021-03-16
Author: klausg@google.com
File Name: tensorflow_datasets/core/features/features_dict.py
Class Name: FeaturesDict
Method Name: encode_example