70fcd3094baba3139afcda727683d58c2928261f,lexos/processors/analyze/similarity.py,,similarity_maker,#,8

Before Change



    docs_np = np.column_stack((docs_np_name, docs_np_score))
    // sort by score
    sorted_docs_np = docs_np[docs_np[:, 1].argsort()]

    // extract the array of name and score out from sorted_docs_list
    docs_name = sorted_docs_np[:, 0]
    docs_score = np.round(sorted_docs_np[:, 1].astype(float), decimals=4)

    // pack the scores and names in data_frame
    score_name_data_frame = pd.DataFrame(docs_score.reshape(

After Change


    final_score_array = np.round(sorted_score_array, decimals=4)

    // sort the
    final_name_array = docs_name_array[docs_score_array.argsort()]

    // pack the scores and names in data_frame
    score_name_data_frame = pd.DataFrame(final_score_array,
                                         index=final_name_array,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: WheatonCS/Lexos
Commit Name: 70fcd3094baba3139afcda727683d58c2928261f
Time: 2017-08-04
Author: liu_xinru@wheatoncollege.edu
File Name: lexos/processors/analyze/similarity.py
Class Name:
Method Name: similarity_maker


Project Name: scikit-optimize/scikit-optimize
Commit Name: f3cdb3e031b20e246aaf17d631decd87d2a38db3
Time: 2017-01-10
Author: betatim@gmail.com
File Name: skopt/optimizer/optimizer.py
Class Name: Optimizer
Method Name: tell


Project Name: scikit-optimize/scikit-optimize
Commit Name: e35fde3696c0c158f67dd125ac512ea6d67b889c
Time: 2017-01-03
Author: mks542@nyu.edu
File Name: skopt/optimizer/base.py
Class Name:
Method Name: base_minimize


Project Name: WheatonCS/Lexos
Commit Name: ce5da48b8586d7cfdb392b8cad1988e6bfdd17d5
Time: 2017-08-03
Author: liu_xinru@wheatoncollege.edu
File Name: lexos/processors/analyze/similarity.py
Class Name:
Method Name: similarity_maker