<commit_before>"""
Toggles for Course API.
"""

from __future__ import absolute_import
from openedx.core.djangoapps.waffle_utils import CourseWaffleFlag, WaffleFlag, WaffleFlagNamespace


COURSE_BLOCKS_API_NAMESPACE = WaffleFlagNamespace(name=u'course_blocks_api')

# Waffle flag to hide access denial message.
# .. toggle_name: course_blocks_api.hide_access_denials
# .. toggle_implementation: WaffleFlag
# .. toggle_default: False
# .. toggle_description: ??
# .. toggle_category: course api
# .. toggle_use_cases: incremental_release, open_edx
# .. toggle_creation_date: 2019-04-10
# .. toggle_expiration_date: ??
# .. toggle_warnings: ??
# .. toggle_tickets: ??
# .. toggle_status: ??
HIDE_ACCESS_DENIALS_FLAG = WaffleFlag(
    waffle_namespace=COURSE_BLOCKS_API_NAMESPACE,
    flag_name=u'hide_access_denials',
    flag_undefined_default=False
)

# Waffle course override to rewrite video URLs for videos that have encodings available.
# .. toggle_name: course_blocks_api.enable_video_url_rewrite
# .. toggle_implementation: CourseWaffleFlag
# .. toggle_default: False
# .. toggle_description: Controlled rollout for video URL re-write utility to serve videos from edX CDN.
# .. toggle_category: course api
# .. toggle_use_cases: monitored_rollout
# .. toggle_creation_date: 2019-09-24
# .. toggle_expiration_date: ??
# .. toggle_warnings: None
# .. toggle_tickets: PROD-62
# .. toggle_status: supported
ENABLE_VIDEO_URL_REWRITE = CourseWaffleFlag(
    waffle_namespace=COURSE_BLOCKS_API_NAMESPACE,
    flag_name="enable_video_url_rewrite",
    flag_undefined_default=True
)<commit_msg>Revert "enable video url rewrite flag"<commit_after>"""
Toggles for Course API.
"""

from __future__ import absolute_import
from openedx.core.djangoapps.waffle_utils import CourseWaffleFlag, WaffleFlag, WaffleFlagNamespace


COURSE_BLOCKS_API_NAMESPACE = WaffleFlagNamespace(name=u'course_blocks_api')

# Waffle flag to hide access denial message.
# .. toggle_name: course_blocks_api.hide_access_denials
# .. toggle_implementation: WaffleFlag
# .. toggle_default: False
# .. toggle_description: ??
# .. toggle_category: course api
# .. toggle_use_cases: incremental_release, open_edx
# .. toggle_creation_date: 2019-04-10
# .. toggle_expiration_date: ??
# .. toggle_warnings: ??
# .. toggle_tickets: ??
# .. toggle_status: ??
HIDE_ACCESS_DENIALS_FLAG = WaffleFlag(
    waffle_namespace=COURSE_BLOCKS_API_NAMESPACE,
    flag_name=u'hide_access_denials',
    flag_undefined_default=False
)

# Waffle course override to rewrite video URLs for videos that have encodings available.
# .. toggle_name: course_blocks_api.enable_video_url_rewrite
# .. toggle_implementation: CourseWaffleFlag
# .. toggle_default: False
# .. toggle_description: Controlled rollout for video URL re-write utility to serve videos from edX CDN.
# .. toggle_category: course api
# .. toggle_use_cases: monitored_rollout
# .. toggle_creation_date: 2019-09-24
# .. toggle_expiration_date: ??
# .. toggle_warnings: None
# .. toggle_tickets: PROD-62
# .. toggle_status: supported
ENABLE_VIDEO_URL_REWRITE = CourseWaffleFlag(
    waffle_namespace=COURSE_BLOCKS_API_NAMESPACE,
    flag_name="enable_video_url_rewrite",
    flag_undefined_default=False
)
{'fraction_non_alphanumeric': 0.09725685785536159, 'fraction_numerical': 0.011221945137157107, 'mean_word_length': 5.469758064516129, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7139642', 'n_tokens_mistral': 1095, 'n_tokens_neox': 1050, 'n_words': 205}