9703fbfccc01c0a1d0f9ed5500c0d1c134d5d8be,dlpy/model_conversion/sas_keras_parse.py,,make_source_str,#Any#,666

Before Change


    source_str = "["
    for ii in range(len(layer_name)):
        source_str = source_str + """ + layer_name[ii] + "", "
    source_str = source_str[:-2] + "]"

    return source_str

After Change


    source_str = []
    for ii in range(len(layer_name)):
        source_str.append(layer_name[ii])
    return repr(source_str)


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
if __name__ == "__main__":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: sassoftware/python-dlpy
Commit Name: 9703fbfccc01c0a1d0f9ed5500c0d1c134d5d8be
Time: 2018-02-22
Author: leo.liu@sas.com
File Name: dlpy/model_conversion/sas_keras_parse.py
Class Name:
Method Name: make_source_str


Project Name: facebookresearch/ParlAI
Commit Name: 9ad1d2da68aa4acf817562502340bf319276b283
Time: 2019-05-14
Author: jju@fb.com
File Name: parlai/mturk/core/dev/socket_manager.py
Class Name: Packet
Method Name: from_dict


Project Name: IndicoDataSolutions/finetune
Commit Name: 33c251236cc384adae76ed4b20f7d8c200ca5c86
Time: 2020-05-14
Author: benlt@hotmail.co.uk
File Name: finetune/encoding/target_encoders.py
Class Name: SequenceLabelingEncoder
Method Name: overlaps


Project Name: sassoftware/python-dlpy
Commit Name: 9703fbfccc01c0a1d0f9ed5500c0d1c134d5d8be
Time: 2018-02-22
Author: leo.liu@sas.com
File Name: dlpy/model_conversion/sas_caffe_parse.py
Class Name:
Method Name: extract_source_layers