prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Add more strings to Constants
  Our Constants are located in coala/coalib/misc/Constants.py and there we hold options for `TRUE_STRINGS`. I think we should expand these true strings with more options, such as : `yep`,`ja` or even `hell yeah` (who knows what the user might come up with). Feel free to add your own suggestions if you think they fit.
  
  
  </issue>
  <code>
  [start of coalib/misc/Constants.py]
  1 # -*- coding: utf-8 -*-
  2 
  3 import appdirs
  4 import os
  5 import re
  6 
  7 # Start ignoring PyImportSortBear, PyLintBear as BUS_NAME is imported as a
  8 # constant from other files.
  9 from coalib import BUS_NAME
  10 from coalib import VERSION
  11 # Stop ignoring
  12 
  13 
  14 THIS_IS_A_BUG = ('This is a bug. We are sorry for the inconvenience. '
  15                  'Please contact the developers for assistance.')
  16 
  17 CRASH_MESSAGE = ('An unknown error occurred. This is a bug. We are '
  18                  'sorry for the inconvenience. Please contact the '
  19                  'developers for assistance. During execution of '
  20                  'coala an exception was raised. This should never '
  21                  'happen. When asked for, the following information '
  22                  'may help investigating:')
  23 
  24 VERSION_CONFLICT_MESSAGE = ('There is a conflict in the version of a '
  25                             'dependency you have installed and the '
  26                             'requirements of coala. This may be resolved by '
  27                             'creating a separate virtual environment for '
  28                             'coala or running `pip install "%s"`. Be aware '
  29                             'that the latter solution might break other '
  30                             'python packages that depend on the currently '
  31                             'installed version.')
  32 
  33 OBJ_NOT_ACCESSIBLE = '{} is not accessible and will be ignored!'
  34 
  35 TRUE_STRINGS = ['1',
  36                 'on',
  37                 'y',
  38                 'yes',
  39                 'yeah',
  40                 'sure',
  41                 'true',
  42                 'definitely',
  43                 'yup',
  44                 'right',
  45                 'aye',
  46                 'positive']
  47 
  48 FALSE_STRINGS = ['0',
  49                  'off',
  50                  'n',
  51                  'no',
  52                  'nope',
  53                  'nah',
  54                  'false',
  55                  'wrong',
  56                  'none',
  57                  'nay',
  58                  'negative']
  59 
  60 # This string contains many unicode characters to challenge tests.
  61 COMPLEX_TEST_STRING = ('4 r34l ch4ll3n63: 123 ÄÖü ABc @€¥ §&% {[( ←↓→↑ '
  62                        'ĦŊħ ß°^ \\\n\u2192')
  63 
  64 # Path to the coalib directory
  65 coalib_root = os.path.join(os.path.dirname(__file__),
  66                            os.path.pardir)
  67 
  68 # Path to the language definition files
  69 language_definitions = os.path.join(coalib_root,
  70                                     'bearlib',
  71                                     'languages',
  72                                     'definitions')
  73 
  74 system_coafile = os.path.join(coalib_root, 'default_coafile')
  75 
  76 user_coafile = os.path.join(os.path.expanduser('~'), '.coarc')
  77 
  78 default_coafile = '.coafile'
  79 
  80 USER_DATA_DIR = appdirs.user_data_dir('coala', version=VERSION)
  81 
  82 GLOBBING_SPECIAL_CHARS = '()[]|?*'
  83 
  84 URL_REGEX = re.compile(
  85     r'^(?:(?:http|ftp)[s]?://)?'  # scheme
  86     r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+'  # domain name
  87     r'(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|'
  88     r'localhost|'  # OR localhost
  89     r'(?:\d{1,3}\.){3}\d{1,3})'  # OR an ip
  90     r'(?::\d+)?'  # optional port number
  91     r'(?:/?|[/?]\S+)$',  # path
  92     re.IGNORECASE)
  93
  [end of coalib/misc/Constants.py]
  </code>
  
  I need you to solve this issue by generating a single patch file that I can apply directly to this repository using git apply. Please respond with a single patch file in the following format.
  <patch>
  diff --git a/file.py b/file.py
  --- a/file.py
  +++ b/file.py
  @@ -1,27 +1,35 @@
   def euclidean(a, b):
  -    while b:
  -        a, b = b, a % b
  -    return a
  +    if b == 0:
  +        return a
  +    return euclidean(b, a % b)
   
   
   def bresenham(x0, y0, x1, y1):
       points = []
       dx = abs(x1 - x0)
       dy = abs(y1 - y0)
  -    sx = 1 if x0 < x1 else -1
  -    sy = 1 if y0 < y1 else -1
  -    err = dx - dy
  +    x, y = x0, y0
  +    sx = -1 if x0 > x1 else 1
  +    sy = -1 if y0 > y1 else 1
   
  -    while True:
  -        points.append((x0, y0))
  -        if x0 == x1 and y0 == y1:
  -            break
  -        e2 = 2 * err
  -        if e2 > -dy:
  -            err -= dy
  -            x0 += sx
  -        if e2 < dx:
  -            err += dx
  -            y0 += sy
  +    if dx > dy:
  +        err = dx / 2.0
  +        while x != x1:
  +            points.append((x, y))
  +            err -= dy
  +            if err < 0:
  +                y += sy
  +                err += dx
  +            x += sx
  +    else:
  +        err = dy / 2.0
  +        while y != y1:
  +            points.append((x, y))
  +            err -= dx
  +            if err < 0:
  +                x += sx
  +                err += dy
  +            y += sy
  +
  +    points.append((x, y))
       return points
  
  </patch>
golden_diff: diff --git a/coalib/misc/Constants.py b/coalib/misc/Constants.py
  --- a/coalib/misc/Constants.py
  +++ b/coalib/misc/Constants.py
  @@ -34,27 +34,69 @@
   
   TRUE_STRINGS = ['1',
                   'on',
  +                'okay',
  +                'ok',
  +                'okey-dokey',
                   'y',
                   'yes',
                   'yeah',
  +                'yea',
  +                'ya',
  +                'ye',
  +                'yessir',
                   'sure',
                   'true',
  +                'tru',
  +                'uh-huh',
                   'definitely',
                   'yup',
  +                'yep',
                   'right',
                   'aye',
  +                'alright',
  +                'alrighty',
  +                'hell yeah',
  +                'affirmative',
  +                'certainly',
  +                'definitely',
  +                'absolutely',
  +                'roger',
  +                'righto',
  +                'ja',
  +                'da',
  +                'si',
  +                'oui',
  +                'amen',
  +                'totally',
  +                '10-4',
                   'positive']
   
   FALSE_STRINGS = ['0',
                    'off',
                    'n',
                    'no',
  +                 'nix',
                    'nope',
  +                 'nop',
                    'nah',
  +                 'nay',
                    'false',
  +                 'uh-uh',
                    'wrong',
                    'none',
                    'nay',
  +                 'hell no',
  +                 'fat chance',
  +                 'not a chance in hell',
  +                 'not in a million years',
  +                 'out of the question',
  +                 'no siree',
  +                 'no way',
  +                 'nein',
  +                 'njet',
  +                 'nee',
  +                 'non',
  +                 'hakuna',
                    'negative']
   
   # This string contains many unicode characters to challenge tests.
  
verification_info: {"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@@ -34,27 +34,69 @@\n \n TRUE_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 \n FALSE_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.\n", "issue": "Add more strings to Constants\nOur Constants are located in coala/coalib/misc/Constants.py and there we hold options for `TRUE_STRINGS`. I think we should expand these true strings with more options, such as : `yep`,`ja` or even `hell yeah` (who knows what the user might come up with). Feel free to add your own suggestions if you think they fit.\n\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\nimport appdirs\nimport os\nimport re\n\n# Start ignoring PyImportSortBear, PyLintBear as BUS_NAME is imported as a\n# constant from other files.\nfrom coalib import BUS_NAME\nfrom coalib import VERSION\n# Stop ignoring\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 `pip 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                'y',\n                'yes',\n                'yeah',\n                'sure',\n                'true',\n                'definitely',\n                'yup',\n                'right',\n                'aye',\n                'positive']\n\nFALSE_STRINGS = ['0',\n                 'off',\n                 'n',\n                 'no',\n                 'nope',\n                 'nah',\n                 'false',\n                 'wrong',\n                 'none',\n                 'nay',\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"}]}