# Path: gitmostwanted/app.py

# 
# Path: gitmostwanted/blueprints/repo_rating.py
# def top(page, sort_by, filter_worth_by):
# 
# Path: gitmostwanted/blueprints/repo_trending.py
# def list_by_range(rng):
# 
# Path: gitmostwanted/blueprints/repo_information.py
# def details(repo_id):
# 
# Path: gitmostwanted/blueprints/static_content.py
# def sponsorship():
# 
# Path: gitmostwanted/blueprints/user_attitude.py
# def verify_attitude(attitude):
# def verify_user():
# def change(repo_id, attitude):
# def list_unchecked(page):
# def list_attitude(attitude, page):
# def list_by_attitude(attitude, page):
# 
# Path: gitmostwanted/blueprints/user_oauth.py
# def load_user_from_session():
# def browser_cache_flush(response):
# def logout():
# def login():
# def authorized():
# def user_get_or_create(uid: int, user_email: str, user_name: str):
# def url_next():
# 
# Path: gitmostwanted/blueprints/user_profile.py
# def overview(name):
# def github_sync():
# def remove():
# 
# Path: gitmostwanted/lib/filter.py
# def number_humanize(n):
#     return n if n < 1000 else '{}k'.format(round(n / 1000, 1)).replace('.0', '')


from gitmostwanted.app import app
from gitmostwanted.blueprints import \
    repo_rating, repo_trending, repo_information, static_content, user_attitude, user_oauth, \
    user_profile
from gitmostwanted.lib.filter import number_humanize

app.register_blueprint(repo_information.repo_information)
app.register_blueprint(repo_rating.repo_rating)
app.register_blueprint(repo_trending.repo_trending)
app.register_blueprint(static_content.static_content)
app.register_blueprint(user_attitude.user_attitude)
app.register_blueprint(user_oauth.user_oauth)
app.register_blueprint(user_profile.user_profile)


# Path: gitmostwanted/app.py

# 
# Path: gitmostwanted/blueprints/repo_rating.py
# def top(page, sort_by, filter_worth_by):
# 
# Path: gitmostwanted/blueprints/repo_trending.py
# def list_by_range(rng):
# 
# Path: gitmostwanted/blueprints/repo_information.py
# def details(repo_id):
# 
# Path: gitmostwanted/blueprints/static_content.py
# def sponsorship():
# 
# Path: gitmostwanted/blueprints/user_attitude.py
# def verify_attitude(attitude):
# def verify_user():
# def change(repo_id, attitude):
# def list_unchecked(page):
# def list_attitude(attitude, page):
# def list_by_attitude(attitude, page):
# 
# Path: gitmostwanted/blueprints/user_oauth.py
# def load_user_from_session():
# def browser_cache_flush(response):
# def logout():
# def login():
# def authorized():
# def user_get_or_create(uid: int, user_email: str, user_name: str):
# def url_next():
# 
# Path: gitmostwanted/blueprints/user_profile.py
# def overview(name):
# def github_sync():
# def remove():
# 
# Path: gitmostwanted/lib/filter.py
# def number_humanize(n):
#     return n if n < 1000 else '{}k'.format(round(n / 1000, 1)).replace('.0', '')


# Path: gitmostwanted/web.py
from gitmostwanted.app import app
from gitmostwanted.blueprints import \
    repo_rating, repo_trending, repo_information, static_content, user_attitude, user_oauth, \
    user_profile
from gitmostwanted.lib.filter import number_humanize


app.register_blueprint(repo_information.repo_information)
app.register_blueprint(repo_rating.repo_rating)
app.register_blueprint(repo_trending.repo_trending)
app.register_blueprint(static_content.static_content)
app.register_blueprint(user_attitude.user_attitude)
app.register_blueprint(user_oauth.user_oauth)
app.register_blueprint(user_profile.user_profile)


app.jinja_env.filters['number_humanize'] = number_humanize