3c8509c5711bf3e3edef1cd0bfd3a767ab426ab0,QUANTAXIS/QACmd/__init__.py,CLI,do_examples,#CLI#Any#,66

Before Change



        if platform.system() == "Windows":
            file_dir = project_dir + "\\backtest.py"
        elif platform.system() in ["Linux", "Darwin"]:
            file_dir = project_dir + "/backtest.py"

        shutil.copy(file_dir, now_path)

After Change


        with open("{}{}QADEMO.zip".format(now_path,os.sep), "wb") as code:
            code.write(data.content)

        QA_util_log_info(
            "Successfully generate QADEMO in : {}, for more examples, please visit https://github.com/yutiansut/qademo".format(now_path))

    def help_examples(self):
        print("make a sample backtest framework")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 3c8509c5711bf3e3edef1cd0bfd3a767ab426ab0
Time: 2018-04-22
Author: yutiansut@qq.com
File Name: QUANTAXIS/QACmd/__init__.py
Class Name: CLI
Method Name: do_examples


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 18206533b01be17b4e4219f1000cca1802e12785
Time: 2017-08-31
Author: yutiansut@qq.com
File Name: QUANTAXIS/QABacktest/QABacktest.py
Class Name: QA_Backtest
Method Name: load_strategy


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 4113a6a3be19167a8c551f8ae20e849ac851e52c
Time: 2019-03-25
Author: zhongjy1992@outlook.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_index_day