<commit_before># coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Stores various configuration options and constants for Oppia."""

import copy
import datetime
import os

from constants import constants  # pylint: disable=relative-import

# Whether to unconditionally log info messages.
DEBUG = False

# When DEV_MODE = true check that we are running in development enviroment.
if (constants.DEV_MODE and<commit_msg>Add check for SERVER_SOFTWARE env variable (#5650)<commit_after># coding: utf-8
#
# Copyright 2014 The Oppia Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS-IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""Stores various configuration options and constants for Oppia."""

import copy
import datetime
import os

from constants import constants  # pylint: disable=relative-import

# Whether to unconditionally log info messages.
DEBUG = False

# When DEV_MODE is true check that we are running in development enviroment.
# The SERVER_SOFTWARE enviroment variable does not exist in Travis thus we need
# to check it.
if (constants.DEV_MODE and os.environ.get('SERVER_SOFTWARE') and
{'fraction_non_alphanumeric': 0.06641895030190433, 'fraction_numerical': 0.010218300046446818, 'mean_word_length': 4.5372750642673525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2159529', 'n_tokens_mistral': 564, 'n_tokens_neox': 548, 'n_words': 283}