code
stringlengths
3
6.57k
pytest.fixture()
user_id()
pytest.fixture()
aggregate_id()
pytest.fixture()
report_id()
pytest.fixture()
test_url(app)
fn(view)
app.test_request_context()
url_for(view, _external=True)
pytest.fixture(scope='session')
connection()
os.getenv('MYSQL_HOST', '127.0.0.1')
int(os.getenv('MYSQL_PORT', '3306')
connection.commit()
pytest.fixture()
cursor(connection)
connection.rollback()
connection.cursor()
pytest.fixture()
dictcursor(connection)
connection.rollback()
connection.cursor(cursor=pymysql.cursors.DictCursor)
pytest.fixture()
role_id(cursor)
BIN_TO_UUID(id, 1)
cursor.fetchone()
pytest.fixture()
permission_id(cursor, role_id)
BIN_TO_UUID(id, 1)
UUID_TO_BIN(%s, 1)
cursor.fetchone()
pytest.fixture()
permission_object_type(cursor, permission_id)
UUID_TO_BIN(%s, 1)
cursor.fetchone()
pytest.fixture()
pytest.fixture()
site()
pytest.fixture()
site_with_modeling_params()
pytest.fixture()
observation()
pytest.fixture()
forecast()
pytest.fixture()
cdf_forecast()
pytest.fixture()
aggregate()
pytest.fixture()
report()
search(directory, searchElem:list, extension = ".txt")
glob.glob(directory+"*"+extension)
open(file)
sf.read()
files_detected.append(file)
warnings.filterwarnings("ignore")
main()
helpers.data_cleaning(data2019_raw)
open("temp.csv", "w")
file.write("date,state_county,AQI\n")
list(data2019["state_county"].unique()
list(data2019["state_county"].unique()
print("---> Loading model for county {} ...".format(county)
load_model(model_path)
pickle.load(open(scaler_path, "rb")
helpers.load_test_data(data_feature_temp["data"], mm_scaler)
helpers.predict_point_by_point(model, x_test)
helpers.plot_results(predictions, y_test)
print("Predicting ....")
np.append(x_test, predictions.reshape(1, 1, 1)
reshape(1, 39)
mm_scaler.inverse_transform(y_pred)
file.write(predicted_date+","+county+","+str(y_scale)
print(exp)
file.close()
pd.read_csv("temp.csv")
df_result.to_csv("predicted_AQI" + predicted_date + ".csv", index=False)
main()
UserFlowLanguageConfiguration(Entity)
display_name(self)
self.properties.get("displayName", None)
default_pages(self)
ResourcePath("defaultPages", self.resource_path)
overrides_pages(self)
ResourcePath("overridesPages", self.resource_path)
get_property(self, name, default_value=None)
property_mapping.get(name, None)
super(UserFlowLanguageConfiguration, self)
get_property(name, default_value)
SecretsCollection(root=root)
get_files_to_scan(*paths, should_scan_all_files=should_scan_all_files, root=root)
load(baseline: Dict[str, Any], filename: str = '')
upgrade(baseline)
configure_settings_from_baseline(baseline, filename=filename)
SecretsCollection.load_from_baseline(baseline)
load_from_file(filename: str)
open(filename)
cast(Dict[str, Any], json.loads(f.read()