We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Change default_coafile naming convention.
Should we change the name of `default_coafile` in `coalib` to `system_coafile`?
It will avoid confusion due to the following lines in `Constants.py`
```
system_coafile = os.path.join(coalib_root, 'default_coafile')

user_coafile = os.path.join(os.path.expanduser('~'), '.coarc')

default_coafile = '.coafile'
```

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `coalib/misc/Constants.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 
3 import appdirs
4 import os
5 import re
6 
7 from coalib import VERSION
8 
9 
10 THIS_IS_A_BUG = ('This is a bug. We are sorry for the inconvenience. '
11                  'Please contact the developers for assistance.')
12 
13 CRASH_MESSAGE = ('An unknown error occurred. This is a bug. We are '
14                  'sorry for the inconvenience. Please contact the '
15                  'developers for assistance. During execution of '
16                  'coala an exception was raised. This should never '
17                  'happen. When asked for, the following information '
18                  'may help investigating:')
19 
20 VERSION_CONFLICT_MESSAGE = ('There is a conflict in the version of a '
21                             'dependency you have installed and the '
22                             'requirements of coala. This may be resolved by '
23                             'creating a separate virtual environment for '
24                             'coala or running `pip3 install "%s"`. Be aware '
25                             'that the latter solution might break other '
26                             'python packages that depend on the currently '
27                             'installed version.')
28 
29 OBJ_NOT_ACCESSIBLE = '{} is not accessible and will be ignored!'
30 
31 TRUE_STRINGS = ['1',
32                 'on',
33                 'okay',
34                 'ok',
35                 'okey-dokey',
36                 'y',
37                 'yes',
38                 'yeah',
39                 'yea',
40                 'ya',
41                 'ye',
42                 'yessir',
43                 'sure',
44                 'true',
45                 'tru',
46                 'uh-huh',
47                 'definitely',
48                 'yup',
49                 'yep',
50                 'right',
51                 'aye',
52                 'alright',
53                 'alrighty',
54                 'hell yeah',
55                 'affirmative',
56                 'certainly',
57                 'definitely',
58                 'absolutely',
59                 'roger',
60                 'righto',
61                 'ja',
62                 'da',
63                 'si',
64                 'oui',
65                 'amen',
66                 'totally',
67                 '10-4',
68                 'positive']
69 
70 FALSE_STRINGS = ['0',
71                  'off',
72                  'n',
73                  'no',
74                  'nix',
75                  'nope',
76                  'nop',
77                  'nah',
78                  'nay',
79                  'false',
80                  'uh-uh',
81                  'wrong',
82                  'none',
83                  'nay',
84                  'hell no',
85                  'fat chance',
86                  'not a chance in hell',
87                  'not in a million years',
88                  'out of the question',
89                  'no siree',
90                  'no way',
91                  'nein',
92                  'njet',
93                  'nee',
94                  'non',
95                  'hakuna',
96                  'negative']
97 
98 # This string contains many unicode characters to challenge tests.
99 COMPLEX_TEST_STRING = ('4 r34l ch4ll3n63: 123 ÄÖü ABc @€¥ §&% {[( ←↓→↑ '
100                        'ĦŊħ ß°^ \\\n\u2192')
101 
102 # Path to the coalib directory
103 coalib_root = os.path.join(os.path.dirname(__file__),
104                            os.path.pardir)
105 
106 # Path to the language definition files
107 language_definitions = os.path.join(coalib_root,
108                                     'bearlib',
109                                     'languages',
110                                     'definitions')
111 
112 system_coafile = os.path.join(coalib_root, 'default_coafile')
113 
114 user_coafile = os.path.join(os.path.expanduser('~'), '.coarc')
115 
116 default_coafile = '.coafile'
117 
118 USER_DATA_DIR = appdirs.user_data_dir('coala', version=VERSION)
119 
120 GLOBBING_SPECIAL_CHARS = '()[]|?*'
121 
122 URL_REGEX = re.compile(
123     r'^(?:(?:http|ftp)[s]?://)?'  # scheme
124     r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+'  # domain name
125     r'(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|'
126     r'localhost|'  # OR localhost
127     r'(?:\d{1,3}\.){3}\d{1,3})'  # OR an ip
128     r'(?::\d+)?'  # optional port number
129     r'(?:/?|[/?]\S+)$',  # path
130     re.IGNORECASE)
131
```

Path: `setup.py`
Content:
```
1 #!/usr/bin/env python3
2 
3 import datetime
4 import locale
5 import platform
6 import sys
7 from os import getenv
8 from subprocess import call
9 
10 import setuptools.command.build_py
11 from setuptools import find_packages, setup
12 from setuptools.command.test import test as TestCommand
13 
14 from coalib import VERSION, assert_supported_version, get_version
15 from coalib.misc.BuildManPage import BuildManPage
16 
17 try:
18     lc = locale.getlocale()
19     pf = platform.system()
20     if pf != 'Windows' and lc == (None, None):
21         locale.setlocale(locale.LC_ALL, 'C.UTF-8')
22 except (ValueError, UnicodeError):
23     locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')
24 
25 
26 assert_supported_version()
27 
28 
29 class BuildPyCommand(setuptools.command.build_py.build_py):
30 
31     def run(self):
32         if platform.system() != 'Windows':
33             self.run_command('build_manpage')
34         setuptools.command.build_py.build_py.run(self)
35 
36 
37 class PyTestCommand(TestCommand):
38 
39     def run_tests(self):
40         # import here, cause outside the eggs aren't loaded
41         import pytest
42         errno = pytest.main([])
43         sys.exit(errno)
44 
45 
46 class BuildDocsCommand(setuptools.command.build_py.build_py):
47     apidoc_command = (
48         'sphinx-apidoc', '-f', '-o', 'docs', '--no-toc', 'coalib'
49     )
50     doc_command = ('make', '-C', 'docs', 'html', 'SPHINXOPTS=-W')
51 
52     def run(self):
53         errOne = call(self.apidoc_command)
54         errTwo = call(self.doc_command)
55         sys.exit(errOne or errTwo)
56 
57 
58 # Generate API documentation only if we are running on readthedocs.io
59 on_rtd = getenv('READTHEDOCS', None) is not None
60 if on_rtd:
61     call(BuildDocsCommand.apidoc_command)
62     if 'dev' in VERSION:
63         current_version = datetime.datetime.now().strftime('%Y%m%d%H%M%S')
64         call(['python3', '.misc/adjust_version_number.py', 'coalib/VERSION',
65               '-b {}'.format(current_version)])
66         VERSION = get_version()
67 
68 with open('requirements.txt') as requirements:
69     required = requirements.read().splitlines()
70 
71 with open('test-requirements.txt') as requirements:
72     test_required = requirements.read().splitlines()
73 
74 with open('README.rst') as readme:
75     long_description = readme.read()
76 
77 
78 if __name__ == '__main__':
79     if platform.system() != 'Windows':
80         data_files = [('.', ['coala.1'])]
81     else:
82         data_files = [('.', [])]
83 
84     setup(name='coala',
85           version=VERSION,
86           description='Linting and Fixing Code for All Languages',
87           author='The coala developers',
88           author_email='coala.analyzer@gmail.com',
89           maintainer='Lasse Schuirmann, Fabian Neuschmidt, Mischa Kr\xfcger'
90                      if not on_rtd else 'L.S., F.N., M.K.',
91           maintainer_email=('lasse.schuirmann@gmail.com, '
92                             'fabian@neuschmidt.de, '
93                             'makman@alice.de'),
94           url='http://coala.io/',
95           platforms='any',
96           packages=find_packages(exclude=['build.*', 'tests', 'tests.*']),
97           install_requires=required,
98           tests_require=test_required,
99           package_data={'coalib': ['default_coafile', 'VERSION',
100                                    'bearlib/languages/documentation/*.coalang']
101                         },
102           license='AGPL-3.0',
103           data_files=data_files,
104           long_description=long_description,
105           entry_points={
106               'console_scripts': [
107                   'coala = coalib.coala:main',
108                   'coala-ci = coalib.coala_ci:main',
109                   'coala-json = coalib.coala_json:main',
110                   'coala-format = coalib.coala_format:main',
111                   'coala-delete-orig = coalib.coala_delete_orig:main']},
112           # from http://pypi.python.org/pypi?%3Aaction=list_classifiers
113           classifiers=[
114               'Development Status :: 4 - Beta',
115 
116               'Environment :: Console',
117               'Environment :: MacOS X',
118               'Environment :: Win32 (MS Windows)',
119               'Environment :: X11 Applications :: Gnome',
120 
121               'Intended Audience :: Science/Research',
122               'Intended Audience :: Developers',
123 
124               'License :: OSI Approved :: GNU Affero General Public License '
125               'v3 or later (AGPLv3+)',
126 
127               'Operating System :: OS Independent',
128 
129               'Programming Language :: Python :: Implementation :: CPython',
130               'Programming Language :: Python :: 3.4',
131               'Programming Language :: Python :: 3.5',
132               'Programming Language :: Python :: 3 :: Only',
133 
134               'Topic :: Scientific/Engineering :: Information Analysis',
135               'Topic :: Software Development :: Quality Assurance',
136               'Topic :: Text Processing :: Linguistic'],
137           cmdclass={'build_manpage': BuildManPage,
138                     'build_py': BuildPyCommand,
139                     'docs': BuildDocsCommand,
140                     'test': PyTestCommand})
141
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/coalib/misc/Constants.py b/coalib/misc/Constants.py
--- a/coalib/misc/Constants.py
+++ b/coalib/misc/Constants.py
@@ -3,6 +3,7 @@
 import appdirs
 import os
 import re
+import logging
 
 from coalib import VERSION
 
@@ -109,7 +110,17 @@
                                     'languages',
                                     'definitions')
 
-system_coafile = os.path.join(coalib_root, 'default_coafile')
+
+def get_system_coafile(coalib_root):
+    if os.path.isfile(os.path.join(coalib_root, 'system_coafile')):
+        return os.path.join(coalib_root, 'system_coafile')
+    else:
+        logging.warning('Filename deafult_coafile has been deprecated. '
+                        'Please use system_coafile instead.')
+        return os.path.join(coalib_root, 'default_coafile')
+
+
+system_coafile = get_system_coafile(coalib_root)
 
 user_coafile = os.path.join(os.path.expanduser('~'), '.coarc')
 
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -96,7 +96,7 @@
           packages=find_packages(exclude=['build.*', 'tests', 'tests.*']),
           install_requires=required,
           tests_require=test_required,
-          package_data={'coalib': ['default_coafile', 'VERSION',
+          package_data={'coalib': ['system_coafile', 'VERSION',
                                    'bearlib/languages/documentation/*.coalang']
                         },
           license='AGPL-3.0',

{"golden_diff": "diff --git a/coalib/misc/Constants.py b/coalib/misc/Constants.py\n--- a/coalib/misc/Constants.py\n+++ b/coalib/misc/Constants.py\n@@ -3,6 +3,7 @@\n import appdirs\n import os\n import re\n+import logging\n \n from coalib import VERSION\n \n@@ -109,7 +110,17 @@\n                                     'languages',\n                                     'definitions')\n \n-system_coafile = os.path.join(coalib_root, 'default_coafile')\n+\n+def get_system_coafile(coalib_root):\n+    if os.path.isfile(os.path.join(coalib_root, 'system_coafile')):\n+        return os.path.join(coalib_root, 'system_coafile')\n+    else:\n+        logging.warning('Filename deafult_coafile has been deprecated. '\n+                        'Please use system_coafile instead.')\n+        return os.path.join(coalib_root, 'default_coafile')\n+\n+\n+system_coafile = get_system_coafile(coalib_root)\n \n user_coafile = os.path.join(os.path.expanduser('~'), '.coarc')\n \ndiff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -96,7 +96,7 @@\n           packages=find_packages(exclude=['build.*', 'tests', 'tests.*']),\n           install_requires=required,\n           tests_require=test_required,\n-          package_data={'coalib': ['default_coafile', 'VERSION',\n+          package_data={'coalib': ['system_coafile', 'VERSION',\n                                    'bearlib/languages/documentation/*.coalang']\n                         },\n           license='AGPL-3.0',\n", "issue": "Change default_coafile naming convention.\nShould we change the name of `default_coafile` in `coalib` to `system_coafile`?\r\nIt will avoid confusion due to the following lines in `Constants.py`\r\n```\r\nsystem_coafile = os.path.join(coalib_root, 'default_coafile')\r\n\r\nuser_coafile = os.path.join(os.path.expanduser('~'), '.coarc')\r\n\r\ndefault_coafile = '.coafile'\r\n```\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\nimport appdirs\nimport os\nimport re\n\nfrom coalib import VERSION\n\n\nTHIS_IS_A_BUG = ('This is a bug. We are sorry for the inconvenience. '\n                 'Please contact the developers for assistance.')\n\nCRASH_MESSAGE = ('An unknown error occurred. This is a bug. We are '\n                 'sorry for the inconvenience. Please contact the '\n                 'developers for assistance. During execution of '\n                 'coala an exception was raised. This should never '\n                 'happen. When asked for, the following information '\n                 'may help investigating:')\n\nVERSION_CONFLICT_MESSAGE = ('There is a conflict in the version of a '\n                            'dependency you have installed and the '\n                            'requirements of coala. This may be resolved by '\n                            'creating a separate virtual environment for '\n                            'coala or running `pip3 install \"%s\"`. Be aware '\n                            'that the latter solution might break other '\n                            'python packages that depend on the currently '\n                            'installed version.')\n\nOBJ_NOT_ACCESSIBLE = '{} is not accessible and will be ignored!'\n\nTRUE_STRINGS = ['1',\n                'on',\n                'okay',\n                'ok',\n                'okey-dokey',\n                'y',\n                'yes',\n                'yeah',\n                'yea',\n                'ya',\n                'ye',\n                'yessir',\n                'sure',\n                'true',\n                'tru',\n                'uh-huh',\n                'definitely',\n                'yup',\n                'yep',\n                'right',\n                'aye',\n                'alright',\n                'alrighty',\n                'hell yeah',\n                'affirmative',\n                'certainly',\n                'definitely',\n                'absolutely',\n                'roger',\n                'righto',\n                'ja',\n                'da',\n                'si',\n                'oui',\n                'amen',\n                'totally',\n                '10-4',\n                'positive']\n\nFALSE_STRINGS = ['0',\n                 'off',\n                 'n',\n                 'no',\n                 'nix',\n                 'nope',\n                 'nop',\n                 'nah',\n                 'nay',\n                 'false',\n                 'uh-uh',\n                 'wrong',\n                 'none',\n                 'nay',\n                 'hell no',\n                 'fat chance',\n                 'not a chance in hell',\n                 'not in a million years',\n                 'out of the question',\n                 'no siree',\n                 'no way',\n                 'nein',\n                 'njet',\n                 'nee',\n                 'non',\n                 'hakuna',\n                 'negative']\n\n# This string contains many unicode characters to challenge tests.\nCOMPLEX_TEST_STRING = ('4 r34l ch4ll3n63: 123 \u00c4\u00d6\u00fc ABc @\u20ac\u00a5 \u00a7&% {[( \u2190\u2193\u2192\u2191 '\n                       '\u0126\u014a\u0127 \u00df\u00b0^ \\\\\\n\\u2192')\n\n# Path to the coalib directory\ncoalib_root = os.path.join(os.path.dirname(__file__),\n                           os.path.pardir)\n\n# Path to the language definition files\nlanguage_definitions = os.path.join(coalib_root,\n                                    'bearlib',\n                                    'languages',\n                                    'definitions')\n\nsystem_coafile = os.path.join(coalib_root, 'default_coafile')\n\nuser_coafile = os.path.join(os.path.expanduser('~'), '.coarc')\n\ndefault_coafile = '.coafile'\n\nUSER_DATA_DIR = appdirs.user_data_dir('coala', version=VERSION)\n\nGLOBBING_SPECIAL_CHARS = '()[]|?*'\n\nURL_REGEX = re.compile(\n    r'^(?:(?:http|ftp)[s]?://)?'  # scheme\n    r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\.)+'  # domain name\n    r'(?:[A-Z]{2,6}\\.?|[A-Z0-9-]{2,}\\.?)|'\n    r'localhost|'  # OR localhost\n    r'(?:\\d{1,3}\\.){3}\\d{1,3})'  # OR an ip\n    r'(?::\\d+)?'  # optional port number\n    r'(?:/?|[/?]\\S+)$',  # path\n    re.IGNORECASE)\n", "path": "coalib/misc/Constants.py"}, {"content": "#!/usr/bin/env python3\n\nimport datetime\nimport locale\nimport platform\nimport sys\nfrom os import getenv\nfrom subprocess import call\n\nimport setuptools.command.build_py\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestCommand\n\nfrom coalib import VERSION, assert_supported_version, get_version\nfrom coalib.misc.BuildManPage import BuildManPage\n\ntry:\n    lc = locale.getlocale()\n    pf = platform.system()\n    if pf != 'Windows' and lc == (None, None):\n        locale.setlocale(locale.LC_ALL, 'C.UTF-8')\nexcept (ValueError, UnicodeError):\n    locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')\n\n\nassert_supported_version()\n\n\nclass BuildPyCommand(setuptools.command.build_py.build_py):\n\n    def run(self):\n        if platform.system() != 'Windows':\n            self.run_command('build_manpage')\n        setuptools.command.build_py.build_py.run(self)\n\n\nclass PyTestCommand(TestCommand):\n\n    def run_tests(self):\n        # import here, cause outside the eggs aren't loaded\n        import pytest\n        errno = pytest.main([])\n        sys.exit(errno)\n\n\nclass BuildDocsCommand(setuptools.command.build_py.build_py):\n    apidoc_command = (\n        'sphinx-apidoc', '-f', '-o', 'docs', '--no-toc', 'coalib'\n    )\n    doc_command = ('make', '-C', 'docs', 'html', 'SPHINXOPTS=-W')\n\n    def run(self):\n        errOne = call(self.apidoc_command)\n        errTwo = call(self.doc_command)\n        sys.exit(errOne or errTwo)\n\n\n# Generate API documentation only if we are running on readthedocs.io\non_rtd = getenv('READTHEDOCS', None) is not None\nif on_rtd:\n    call(BuildDocsCommand.apidoc_command)\n    if 'dev' in VERSION:\n        current_version = datetime.datetime.now().strftime('%Y%m%d%H%M%S')\n        call(['python3', '.misc/adjust_version_number.py', 'coalib/VERSION',\n              '-b {}'.format(current_version)])\n        VERSION = get_version()\n\nwith open('requirements.txt') as requirements:\n    required = requirements.read().splitlines()\n\nwith open('test-requirements.txt') as requirements:\n    test_required = requirements.read().splitlines()\n\nwith open('README.rst') as readme:\n    long_description = readme.read()\n\n\nif __name__ == '__main__':\n    if platform.system() != 'Windows':\n        data_files = [('.', ['coala.1'])]\n    else:\n        data_files = [('.', [])]\n\n    setup(name='coala',\n          version=VERSION,\n          description='Linting and Fixing Code for All Languages',\n          author='The coala developers',\n          author_email='coala.analyzer@gmail.com',\n          maintainer='Lasse Schuirmann, Fabian Neuschmidt, Mischa Kr\\xfcger'\n                     if not on_rtd else 'L.S., F.N., M.K.',\n          maintainer_email=('lasse.schuirmann@gmail.com, '\n                            'fabian@neuschmidt.de, '\n                            'makman@alice.de'),\n          url='http://coala.io/',\n          platforms='any',\n          packages=find_packages(exclude=['build.*', 'tests', 'tests.*']),\n          install_requires=required,\n          tests_require=test_required,\n          package_data={'coalib': ['default_coafile', 'VERSION',\n                                   'bearlib/languages/documentation/*.coalang']\n                        },\n          license='AGPL-3.0',\n          data_files=data_files,\n          long_description=long_description,\n          entry_points={\n              'console_scripts': [\n                  'coala = coalib.coala:main',\n                  'coala-ci = coalib.coala_ci:main',\n                  'coala-json = coalib.coala_json:main',\n                  'coala-format = coalib.coala_format:main',\n                  'coala-delete-orig = coalib.coala_delete_orig:main']},\n          # from http://pypi.python.org/pypi?%3Aaction=list_classifiers\n          classifiers=[\n              'Development Status :: 4 - Beta',\n\n              'Environment :: Console',\n              'Environment :: MacOS X',\n              'Environment :: Win32 (MS Windows)',\n              'Environment :: X11 Applications :: Gnome',\n\n              'Intended Audience :: Science/Research',\n              'Intended Audience :: Developers',\n\n              'License :: OSI Approved :: GNU Affero General Public License '\n              'v3 or later (AGPLv3+)',\n\n              'Operating System :: OS Independent',\n\n              'Programming Language :: Python :: Implementation :: CPython',\n              'Programming Language :: Python :: 3.4',\n              'Programming Language :: Python :: 3.5',\n              'Programming Language :: Python :: 3 :: Only',\n\n              'Topic :: Scientific/Engineering :: Information Analysis',\n              'Topic :: Software Development :: Quality Assurance',\n              'Topic :: Text Processing :: Linguistic'],\n          cmdclass={'build_manpage': BuildManPage,\n                    'build_py': BuildPyCommand,\n                    'docs': BuildDocsCommand,\n                    'test': PyTestCommand})\n", "path": "setup.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\nimport appdirs\nimport os\nimport re\nimport logging\n\nfrom coalib import VERSION\n\n\nTHIS_IS_A_BUG = ('This is a bug. We are sorry for the inconvenience. '\n                 'Please contact the developers for assistance.')\n\nCRASH_MESSAGE = ('An unknown error occurred. This is a bug. We are '\n                 'sorry for the inconvenience. Please contact the '\n                 'developers for assistance. During execution of '\n                 'coala an exception was raised. This should never '\n                 'happen. When asked for, the following information '\n                 'may help investigating:')\n\nVERSION_CONFLICT_MESSAGE = ('There is a conflict in the version of a '\n                            'dependency you have installed and the '\n                            'requirements of coala. This may be resolved by '\n                            'creating a separate virtual environment for '\n                            'coala or running `pip3 install \"%s\"`. Be aware '\n                            'that the latter solution might break other '\n                            'python packages that depend on the currently '\n                            'installed version.')\n\nOBJ_NOT_ACCESSIBLE = '{} is not accessible and will be ignored!'\n\nTRUE_STRINGS = ['1',\n                'on',\n                'okay',\n                'ok',\n                'okey-dokey',\n                'y',\n                'yes',\n                'yeah',\n                'yea',\n                'ya',\n                'ye',\n                'yessir',\n                'sure',\n                'true',\n                'tru',\n                'uh-huh',\n                'definitely',\n                'yup',\n                'yep',\n                'right',\n                'aye',\n                'alright',\n                'alrighty',\n                'hell yeah',\n                'affirmative',\n                'certainly',\n                'definitely',\n                'absolutely',\n                'roger',\n                'righto',\n                'ja',\n                'da',\n                'si',\n                'oui',\n                'amen',\n                'totally',\n                '10-4',\n                'positive']\n\nFALSE_STRINGS = ['0',\n                 'off',\n                 'n',\n                 'no',\n                 'nix',\n                 'nope',\n                 'nop',\n                 'nah',\n                 'nay',\n                 'false',\n                 'uh-uh',\n                 'wrong',\n                 'none',\n                 'nay',\n                 'hell no',\n                 'fat chance',\n                 'not a chance in hell',\n                 'not in a million years',\n                 'out of the question',\n                 'no siree',\n                 'no way',\n                 'nein',\n                 'njet',\n                 'nee',\n                 'non',\n                 'hakuna',\n                 'negative']\n\n# This string contains many unicode characters to challenge tests.\nCOMPLEX_TEST_STRING = ('4 r34l ch4ll3n63: 123 \u00c4\u00d6\u00fc ABc @\u20ac\u00a5 \u00a7&% {[( \u2190\u2193\u2192\u2191 '\n                       '\u0126\u014a\u0127 \u00df\u00b0^ \\\\\\n\\u2192')\n\n# Path to the coalib directory\ncoalib_root = os.path.join(os.path.dirname(__file__),\n                           os.path.pardir)\n\n# Path to the language definition files\nlanguage_definitions = os.path.join(coalib_root,\n                                    'bearlib',\n                                    'languages',\n                                    'definitions')\n\n\ndef get_system_coafile(coalib_root):\n    if os.path.isfile(os.path.join(coalib_root, 'system_coafile')):\n        return os.path.join(coalib_root, 'system_coafile')\n    else:\n        logging.warning('Filename deafult_coafile has been deprecated. '\n                        'Please use system_coafile instead.')\n        return os.path.join(coalib_root, 'default_coafile')\n\n\nsystem_coafile = get_system_coafile(coalib_root)\n\nuser_coafile = os.path.join(os.path.expanduser('~'), '.coarc')\n\ndefault_coafile = '.coafile'\n\nUSER_DATA_DIR = appdirs.user_data_dir('coala', version=VERSION)\n\nGLOBBING_SPECIAL_CHARS = '()[]|?*'\n\nURL_REGEX = re.compile(\n    r'^(?:(?:http|ftp)[s]?://)?'  # scheme\n    r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\\.)+'  # domain name\n    r'(?:[A-Z]{2,6}\\.?|[A-Z0-9-]{2,}\\.?)|'\n    r'localhost|'  # OR localhost\n    r'(?:\\d{1,3}\\.){3}\\d{1,3})'  # OR an ip\n    r'(?::\\d+)?'  # optional port number\n    r'(?:/?|[/?]\\S+)$',  # path\n    re.IGNORECASE)\n", "path": "coalib/misc/Constants.py"}, {"content": "#!/usr/bin/env python3\n\nimport datetime\nimport locale\nimport platform\nimport sys\nfrom os import getenv\nfrom subprocess import call\n\nimport setuptools.command.build_py\nfrom setuptools import find_packages, setup\nfrom setuptools.command.test import test as TestCommand\n\nfrom coalib import VERSION, assert_supported_version, get_version\nfrom coalib.misc.BuildManPage import BuildManPage\n\ntry:\n    lc = locale.getlocale()\n    pf = platform.system()\n    if pf != 'Windows' and lc == (None, None):\n        locale.setlocale(locale.LC_ALL, 'C.UTF-8')\nexcept (ValueError, UnicodeError):\n    locale.setlocale(locale.LC_ALL, 'en_US.UTF-8')\n\n\nassert_supported_version()\n\n\nclass BuildPyCommand(setuptools.command.build_py.build_py):\n\n    def run(self):\n        if platform.system() != 'Windows':\n            self.run_command('build_manpage')\n        setuptools.command.build_py.build_py.run(self)\n\n\nclass PyTestCommand(TestCommand):\n\n    def run_tests(self):\n        # import here, cause outside the eggs aren't loaded\n        import pytest\n        errno = pytest.main([])\n        sys.exit(errno)\n\n\nclass BuildDocsCommand(setuptools.command.build_py.build_py):\n    apidoc_command = (\n        'sphinx-apidoc', '-f', '-o', 'docs', '--no-toc', 'coalib'\n    )\n    doc_command = ('make', '-C', 'docs', 'html', 'SPHINXOPTS=-W')\n\n    def run(self):\n        errOne = call(self.apidoc_command)\n        errTwo = call(self.doc_command)\n        sys.exit(errOne or errTwo)\n\n\n# Generate API documentation only if we are running on readthedocs.io\non_rtd = getenv('READTHEDOCS', None) is not None\nif on_rtd:\n    call(BuildDocsCommand.apidoc_command)\n    if 'dev' in VERSION:\n        current_version = datetime.datetime.now().strftime('%Y%m%d%H%M%S')\n        call(['python3', '.misc/adjust_version_number.py', 'coalib/VERSION',\n              '-b {}'.format(current_version)])\n        VERSION = get_version()\n\nwith open('requirements.txt') as requirements:\n    required = requirements.read().splitlines()\n\nwith open('test-requirements.txt') as requirements:\n    test_required = requirements.read().splitlines()\n\nwith open('README.rst') as readme:\n    long_description = readme.read()\n\n\nif __name__ == '__main__':\n    if platform.system() != 'Windows':\n        data_files = [('.', ['coala.1'])]\n    else:\n        data_files = [('.', [])]\n\n    setup(name='coala',\n          version=VERSION,\n          description='Linting and Fixing Code for All Languages',\n          author='The coala developers',\n          author_email='coala.analyzer@gmail.com',\n          maintainer='Lasse Schuirmann, Fabian Neuschmidt, Mischa Kr\\xfcger'\n                     if not on_rtd else 'L.S., F.N., M.K.',\n          maintainer_email=('lasse.schuirmann@gmail.com, '\n                            'fabian@neuschmidt.de, '\n                            'makman@alice.de'),\n          url='http://coala.io/',\n          platforms='any',\n          packages=find_packages(exclude=['build.*', 'tests', 'tests.*']),\n          install_requires=required,\n          tests_require=test_required,\n          package_data={'coalib': ['system_coafile', 'VERSION',\n                                   'bearlib/languages/documentation/*.coalang']\n                        },\n          license='AGPL-3.0',\n          data_files=data_files,\n          long_description=long_description,\n          entry_points={\n              'console_scripts': [\n                  'coala = coalib.coala:main',\n                  'coala-ci = coalib.coala_ci:main',\n                  'coala-json = coalib.coala_json:main',\n                  'coala-format = coalib.coala_format:main',\n                  'coala-delete-orig = coalib.coala_delete_orig:main']},\n          # from http://pypi.python.org/pypi?%3Aaction=list_classifiers\n          classifiers=[\n              'Development Status :: 4 - Beta',\n\n              'Environment :: Console',\n              'Environment :: MacOS X',\n              'Environment :: Win32 (MS Windows)',\n              'Environment :: X11 Applications :: Gnome',\n\n              'Intended Audience :: Science/Research',\n              'Intended Audience :: Developers',\n\n              'License :: OSI Approved :: GNU Affero General Public License '\n              'v3 or later (AGPLv3+)',\n\n              'Operating System :: OS Independent',\n\n              'Programming Language :: Python :: Implementation :: CPython',\n              'Programming Language :: Python :: 3.4',\n              'Programming Language :: Python :: 3.5',\n              'Programming Language :: Python :: 3 :: Only',\n\n              'Topic :: Scientific/Engineering :: Information Analysis',\n              'Topic :: Software Development :: Quality Assurance',\n              'Topic :: Text Processing :: Linguistic'],\n          cmdclass={'build_manpage': BuildManPage,\n                    'build_py': BuildPyCommand,\n                    'docs': BuildDocsCommand,\n                    'test': PyTestCommand})\n", "path": "setup.py"}]}