09d092ec058f3a4df8884e12b1144616d66ca264,QUANTAXIS/QAFetch/QAQuery.py,,QA_fetch_quotations,#Any#Any#,334

Before Change


    try:
        collections = db.get_collection(
            "realtime_{}".format(datetime.date.today()))
        times = collections.find({"code": "000001"}).sort(
            "datetime", QA_util_sql_mongo_sort_DESCENDING)[0]["datetime"]

        return pd.DataFrame([item for item in collections.find({"datetime": times})]).drop(["_id"], axis=1)
    except Exception as e:
        raise e

After Change


    try:
        collections = db.get_collection(
            "realtime_{}".format(date))
        return pd.DataFrame([item for item in collections.find(
            {})]).drop(["_id"], axis=1).set_index("datetime", drop=False).sort_index()
    except Exception as e:
        raise e

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 09d092ec058f3a4df8884e12b1144616d66ca264
Time: 2018-02-01
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QAQuery.py
Class Name:
Method Name: QA_fetch_quotations


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 1726d1c69ec0fede6b8fea7e1fa4755ef633577c
Time: 2018-03-02
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAARP/QAAccount.py
Class Name: QA_Account
Method Name: cash_table


Project Name: nilmtk/nilmtk
Commit Name: 5641405989025614d4654f752f37dbf66c548da5
Time: 2014-05-05
Author: jack-list@xlk.org.uk
File Name: nilmtk/pipeline/results.py
Class Name: Results
Method Name: update


Project Name: QUANTAXIS/QUANTAXIS
Commit Name: f083111608442549981060baf35e521be8d61af9
Time: 2017-06-15
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAFetch/QATushare.py
Class Name:
Method Name: QA_fetch_get_stock_day