93fc87ef4a966d6667a5f9dc6826555e994988c8,web/dataIndicatorsHandler.py,GetDataIndicatorsHandler,get,#GetDataIndicatorsHandler#,16
Before Change
comp_list = []
// prepare some data
x = [1, 2, 3, 4, 5]
y = [6, 7, 2, 4, 5]
// create a new plot with a title and axis labels
p = figure(
plot_width=400, plot_height=300,
After Change
comp_list = []
try:
date_now = datetime.datetime.now()
date_end = date_now.strftime("%Y-%m-%d")
date_start = (date_now + datetime.timedelta(days=-300)) .strftime("%Y-%m-%d")
print(code, date_start, date_end)
// open, high, close, low, volume, price_change, p_change, ma5, ma10, ma20, v_ma5, v_ma10, v_ma20, turnover
// 使用缓存方法。加快计算速度。
stock = common.get_hist_data_cache(code, date_start, date_end)
logging.info(stock.head(1))
// print(stock) [186 rows x 14 columns]
// 初始化统计类
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: pythonstock/stock
Commit Name: 93fc87ef4a966d6667a5f9dc6826555e994988c8
Time: 2017-12-07
Author: yhy
File Name: web/dataIndicatorsHandler.py
Class Name: GetDataIndicatorsHandler
Method Name: get
Project Name: mozilla/mozregression
Commit Name: 3d71f7f5e9f9bf4b0a390e601842ed8060209ed7
Time: 2020-08-20
Author: wlachance@mozilla.com
File Name: tests/unit/test_cli.py
Class Name:
Method Name:
Project Name: home-assistant/home-assistant
Commit Name: c70722dbaef64cb00dbf6793d84b5530856a35cb
Time: 2016-10-20
Author: kellerza@gmail.com
File Name: homeassistant/components/updater.py
Class Name:
Method Name: setup