<commit_before>
from angular_flask.core import api_manager

# Removed Schedule from this import
#
from angular_flask.models import Term, Course

# --------------------------------
# API Routing
# --------------------------------

# accessible at http://localhost:5000/api/terms
api_manager.create_api(Term,
                       methods=['GET'],
                       exclude_columns=['courses', 'courses.sections'],
                       collection_name='terms')

# accessible at http://localhost:5000/api/courses
api_manager.create_api(Course,
                       methods=['GET'],
                       exclude_columns=['sections'],
                       collection_name='courses')

api_manager.create_api(Course,
                       methods=['GET'],
                       include_columns=['subject',
                                        'subjectTitle',
                                        'course',
                                        'asString'],
                       results_per_page=500,
                       max_results_per_page=500,
                       collection_name='courses-min')<commit_msg>feat(courses-min): add faculty field to courses-min result set<commit_after>
from angular_flask.core import api_manager

# Removed Schedule from this import
#
from angular_flask.models import Term, Course

# --------------------------------
# API Routing
# --------------------------------

# accessible at http://localhost:5000/api/terms
api_manager.create_api(Term,
                       methods=['GET'],
                       exclude_columns=['courses', 'courses.sections'],
                       collection_name='terms')

# accessible at http://localhost:5000/api/courses
api_manager.create_api(Course,
                       methods=['GET'],
                       exclude_columns=['sections'],
                       collection_name='courses')

api_manager.create_api(Course,
                       methods=['GET'],
                       include_columns=['asString',
                                        'faculty',
                                        'subject',
                                        'subjectTitle',
                                        'course'],
                       results_per_page=500,
                       max_results_per_page=500,
                       collection_name='courses-min')
{'fraction_non_alphanumeric': 0.14201183431952663, 'fraction_numerical': 0.011834319526627219, 'mean_word_length': 1.226716839134525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7516380', 'n_tokens_mistral': 545, 'n_tokens_neox': 494, 'n_words': 89}