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: 5
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: pfnet/optuna
Commit Name: ca16e0d689307facfc8682647361ca724f9e1760
Time: 2018-05-01
Author: sano@preferred.jp
File Name: tests/storages_tests/test_storages.py
Class Name:
Method Name: test_get_all_study_summaries
Project Name: OpenMined/Grid
Commit Name: 0bce5765b02513a167e454f112a61bd70d47d6ff
Time: 2020-03-02
Author: ionesiojr@gmail.com
File Name: gateway/app/main/processes/controller.py
Class Name: FLController
Method Name: create_cycle
Project Name: dickreuter/Poker
Commit Name: ccd5394d688a3eadfcae0ce9e59a395537d6317e
Time: 2016-09-04
Author: dickreuter@yahoo.com
File Name: log_manager.py
Class Name: Logging
Method Name: write_log_file
Project Name: home-assistant/home-assistant
Commit Name: bfb5089ed59f1df8cf53a3b517ac6b091f539a26
Time: 2015-03-08
Author: andyt05@gmail.com
File Name: homeassistant/components/device_tracker/nmap_tracker.py
Class Name: NmapDeviceScanner
Method Name: _update_info