<commit_before>"""
For CommonsCloud copyright information please see the LICENSE document
(the "License") included with this software package. This file may not
be used in any manner except in compliance with the License

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.
"""


"""
These configuration variables are not tied to a specific enviornment, we can
consider these the default variables. They can be overriden later on in this
configuration file by any of the other enviornments, these just give us a jump
start on the rest, and ensuring we're being as DRY as possible.
"""

# Generic settings
DEBUG = False
SECRET_KEY = '<KEY>'

# Flask-Security
SECURITY_PASSWORD_HASH = '<PASSWORD>'
SECURITY_PASSWORD_SALT = '<PASSWORD>'

SECURITY_CONFIRMABLE = True
SECURITY_REGISTERABLE = True
SECURITY_RECOVERABLE = True
SECURITY_CHANGEABLE = True

SECURITY_CHANGE_URL = '/user/password'

SECURITY_REGISTER_USER_TEMPLATE = 'security/register.html'
SECURITY_REGISTER_URL = '/account/create'
SECURITY_POST_REGISTER_VIEW = '/account/create/success'

SECURITY_FORGOT_PASSWORD_TEMPLATE = 'security/password_forgot.html'

SECURITY_EMAIL_SENDER = 'CommonsCloud Support <<EMAIL>>'
SECURITY_EMAIL_SUBJECT_REGISTER = 'Welcome! CommonsCloud needs you to confirm your email address'
SECURITY_EMAIL_SUBJECT_CONFIRM = 'CommonsCloud needs you to confirm your email address'

SECURITY_FLASH_MESSAGES = True


# OAUTH 1
OAUTH1_PROVIDER_ENFORCE_SSL = True
OAUTH1_PROVIDER_KEY_LENGTH = (10, 100)

# File Attachments
FILE_ATTACHMENTS_ALLOWED_EXTENSIONS = set([
  'txt',
  'rtf'
  'doc',
  'docx',

  'csv',
  'xls',
  'xlsx',

  'pdf',

  'tiff',
  'png',<commit_msg>Updated profile and change password page to give more complete on screen feedback based on user interaction;<commit_after>"""
For CommonsCloud copyright information please see the LICENSE document
(the "License") included with this software package. This file may not
be used in any manner except in compliance with the License

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.
"""


"""
These configuration variables are not tied to a specific enviornment, we can
consider these the default variables. They can be overriden later on in this
configuration file by any of the other enviornments, these just give us a jump
start on the rest, and ensuring we're being as DRY as possible.
"""

# Generic settings
DEBUG = False
SECRET_KEY = 'n@11%?-^j!v`oe7MPxM7sx41bqL=QDmfg+U5Ef6@.oYefGUu@`]&bAD5X&U7!B>G'

# Flask-Security
SECURITY_PASSWORD_HASH = '<PASSWORD>'
SECURITY_PASSWORD_SALT = '<PASSWORD>(3%&go8JD#b2yFEhT6QpA6Ke+{VaR+n3X4xaHdB734'

SECURITY_CONFIRMABLE = True
SECURITY_REGISTERABLE = True
SECURITY_RECOVERABLE = True
SECURITY_CHANGEABLE = True

SECURITY_CHANGE_URL = '/user/password'

SECURITY_REGISTER_USER_TEMPLATE = 'security/register.html'
SECURITY_REGISTER_URL = '/account/create'
SECURITY_POST_REGISTER_VIEW = '/account/create/success'

SECURITY_FORGOT_PASSWORD_TEMPLATE = 'security/password_forgot.html'

SECURITY_EMAIL_SENDER = 'CommonsCloud Support <<EMAIL>>'
SECURITY_EMAIL_SUBJECT_REGISTER = 'Welcome! CommonsCloud needs you to confirm your email address'
SECURITY_EMAIL_SUBJECT_CONFIRM = 'CommonsCloud needs you to confirm your email address'

SECURITY_FLASH_MESSAGES = True

SECURITY_MSG_LOGIN = ("Please login to continue", "error")


# OAUTH 1
OAUTH1_PROVIDER_ENFORCE_SSL = True
OAUTH1_PROVIDER_KEY_LENGTH = (10, 100)

# File Attachments
FILE_ATTACHMENTS_ALLOWED_EXTENSIONS = set([
  'txt',
  'rtf'
  'doc',
  'docx',

  'csv',
  'xls',
  'xlsx',

  'pdf',

  'tiff',
  'png',
{'fraction_non_alphanumeric': 0.07495069033530571, 'fraction_numerical': 0.008875739644970414, 'mean_word_length': 5.795644891122278, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 13, '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': '515471', 'n_tokens_mistral': 1363, 'n_tokens_neox': 1310, 'n_words': 431}