<commit_before># -*- coding: utf-8 -*-
"""
Copyright 2016 Dispel, LLC
Apache 2.0 License, see https://github.com/dispel/jak/blob/master/LICENSE for details.
"""

FRESH_JAKFILE = u'''// For more information visit https://github.com/dispel/jak/
// Protip: Set your syntax highlighting to JavaScript.
{{
  // RECOMMENDED
  // List files to encrypt here so you can quickly encrypt/decrypt them all
  // using the "$> jak encrypt/decrypt all" commands.
  "files_to_encrypt": ["path/to/file"],

  // You can store your key in a file INSTEAD of having a "key" value.
  // This allows you to commit the jakfile. (never commit your key!)
  "keyfile": "{keyfile_path}"
}}'''

KEYGEN_RESPONSE = '''Here is your shiny new key.

{key}

Remember to keep this password secret and save it. Without it you will NOT be able
to decrypt any file(s) you encrypt using it.'''

PRE_COMMIT_CALL = '''#!/bin/sh
# ---- Begin jak Block ----

PURPLE='\\033[1;35m'
NC='\\033[0m' # No Color

printf "🌰  ${PURPLE}jak: pre-commit > Encrypting files listed in jakfile.${NC}\\n"

# See http://click.pocoo.org/6/python3/ for more info
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8


# Encrypt any staged files that are protected by jak
python .git/hooks/jak.pre-commit.py

# ---- End jak Block ----

# Place your custom pre-commit code here
'''

PRE_COMMIT_EXISTS = '''

jak says: EXISTING PRE-COMMIT HOOK, I DON'T WANT TO OVERRIDE IT WILLY NILLY
SEE .git/hooks/jak.pre-commit.py for further installation instructions.'''

PRE_COMMIT_ENCRYPT = '''#!/usr/bin/env python

"""
Copyright 2016 Dispel, LLC
Apache 2.0 License, see https://github.com/dispel/jak/blob/master/LICENSE for details.

INSTALLATION
To enable the pre-commit hook,
Please add the following block into your .git/hooks/pre-commit script manually:

#----Begin jak Block ----

PURPLE='\033[1;35m'<commit_msg>added encoding for jak pre-commit hook<commit_after># -*- coding: utf-8 -*-
"""
Copyright 2016 Dispel, LLC
Apache 2.0 License, see https://github.com/dispel/jak/blob/master/LICENSE for details.
"""

FRESH_JAKFILE = u'''// For more information visit https://github.com/dispel/jak/
// Protip: Set your syntax highlighting to JavaScript.
{{
  // RECOMMENDED
  // List files to encrypt here so you can quickly encrypt/decrypt them all
  // using the "$> jak encrypt/decrypt all" commands.
  "files_to_encrypt": ["path/to/file"],

  // You can store your key in a file INSTEAD of having a "key" value.
  // This allows you to commit the jakfile. (never commit your key!)
  "keyfile": "{keyfile_path}"
}}'''

KEYGEN_RESPONSE = '''Here is your shiny new key.

{key}

Remember to keep this password secret and save it. Without it you will NOT be able
to decrypt any file(s) you encrypt using it.'''

PRE_COMMIT_CALL = '''#!/bin/sh
# ---- Begin jak Block ----

PURPLE='\\033[1;35m'
NC='\\033[0m' # No Color

printf "🌰  ${PURPLE}jak: pre-commit > Encrypting files listed in jakfile.${NC}\\n"

# See http://click.pocoo.org/6/python3/ for more info
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8


# Encrypt any staged files that are protected by jak
python .git/hooks/jak.pre-commit.py

# ---- End jak Block ----

# Place your custom pre-commit code here
'''

PRE_COMMIT_EXISTS = '''

jak says: EXISTING PRE-COMMIT HOOK, I DON'T WANT TO OVERRIDE IT WILLY NILLY
SEE .git/hooks/jak.pre-commit.py for further installation instructions.'''

PRE_COMMIT_ENCRYPT = '''#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
Copyright 2016 Dispel, LLC
Apache 2.0 License, see https://github.com/dispel/jak/blob/master/LICENSE for details.

INSTALLATION
To enable the pre-commit hook,
Please add the following block into your .git/hooks/pre-commit script manually:

#----Begin jak Block ----

PURPLE='\033[1;35m'
{'fraction_non_alphanumeric': 0.14044492093272581, 'fraction_numerical': 0.017957652103993568, 'mean_word_length': 3.5567765567765566, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 6, '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': '1946360', 'n_tokens_mistral': 1359, 'n_tokens_neox': 1266, 'n_words': 424}