4f51a511dd924f89fe9ec9ee3da944779cc0876f,QUANTAXIS/QAWeb/fetch_block.py,,get_block,#Any#,10
Before Change
codelist = QA.QA_fetch_stock_list_adv()
block = [block] if isinstance(block, str) else block
code_tdx = pd.DataFrame(
[item for item in block_tdx.find({"blockname": {"$in": block}})])
code_ths = pd.DataFrame(
[item for item in block_ths.find({"blockname": {"$in": block}})])
return pd.concat([code_tdx, code_ths], axis=0).code.drop_duplicates().tolist()
def get_name(code):
After Change
block = [block] if isinstance(block, str) else block
block_df = pd.DataFrame(
[item for item in block_db.find({"blockname": {"$in": block}})])
return block_df.code.drop_duplicates().tolist()
def get_name(code):
codelist = QA.QA_fetch_stock_list_adv()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: QUANTAXIS/QUANTAXIS
Commit Name: 4f51a511dd924f89fe9ec9ee3da944779cc0876f
Time: 2018-09-13
Author: yutiansut@qq.com
File Name: QUANTAXIS/QAWeb/fetch_block.py
Class Name:
Method Name: get_block
Project Name: has2k1/plotnine
Commit Name: 95c2a29c7f1992f78d11acfe9cdfee83a7516af2
Time: 2016-03-16
Author: has2k1@gmail.com
File Name: ggplot/geoms/geom_path.py
Class Name:
Method Name: _draw_segments
Project Name: instacart/lore
Commit Name: 8d8d007fa2ffdf2a7f8f0a5ea596db84f942339e
Time: 2017-12-12
Author: montanalow@users.noreply.github.com
File Name: lore/encoders.py
Class Name: Token
Method Name: transform