f848dc883d6ed4d2de8609d614b8454f173b6dae,analysis.py,,run_analysis,#Any#Any#Any#Any#,102

Before Change


            if len(new_test_frame) > 0:
                test_frame = test_frame.append(new_test_frame)
            else:
                logger.info("Test frame has length 0")
        // write out the training and test files
        write_frame(train_frame, directory, train_file, extension, separator)
        write_frame(test_frame, directory, test_file, extension, separator)
        // run the model pipeline

After Change


            if len(new_train_frame) > 0:
                train_frame = train_frame.append(new_train_frame)
            else:
                raise Exception("Training frame has length 0. Adjust training date.")
            new_test_frame = df.loc[df.date >= predict_date]
            if len(new_test_frame) > 0:
                test_frame = test_frame.append(new_test_frame)
            else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ScottfreeLLC/AlphaPy
Commit Name: f848dc883d6ed4d2de8609d614b8454f173b6dae
Time: 2016-04-03
Author: Mark.R.Conway@gmail.com
File Name: analysis.py
Class Name:
Method Name: run_analysis


Project Name: yahoo/TensorFlowOnSpark
Commit Name: e3caa24a93210c2fd6bf68ae8a9d510e3c58a59d
Time: 2019-08-16
Author: leewyang@verizonmedia.com
File Name: tensorflowonspark/pipeline.py
Class Name: TFEstimator
Method Name: _fit


Project Name: CyberReboot/poseidon
Commit Name: 08b7bf0f4cd38dae71dbdd2d7ec8ccc0016d7cd4
Time: 2017-10-11
Author: danielpops@gmail.com
File Name: poseidon/poseidonMonitor/Config/Config.py
Class Name: Config
Method Name: __init__