prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  JuliaLintBear: Use JuliaRequirement
  `REQUIREMENTS` should be a `JuliaRequirement` instead of a `DistributionRequirement`.
  
  </issue>
  <code>
  [start of bears/julia/JuliaLintBear.py]
  1 from coala_utils.string_processing.Core import escape
  2 from coalib.bearlib.abstractions.Linter import linter
  3 from dependency_management.requirements.DistributionRequirement import (
  4     DistributionRequirement)
  5 from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
  6 
  7 
  8 @linter(executable='julia',
  9         output_format='regex',
  10         output_regex=r'.+:(?P<line>\d+) (?P<severity>.)\d+ (?P<message>.*)',
  11         severity_map={'E': RESULT_SEVERITY.MAJOR,
  12                       'W': RESULT_SEVERITY.NORMAL,
  13                       'I': RESULT_SEVERITY.INFO},
  14         prerequisite_check_command=('julia', '-e', 'import Lint.lintfile'),
  15         prerequisite_check_fail_message='Lint package not installed. Run '
  16                                         '`Pkg.add("Lint")` from Julia to '
  17                                         'install Lint.')
  18 class JuliaLintBear:
  19     """
  20     Provide analysis related to common bugs and potential issues in Julia like
  21     dead code, undefined variable usage, duplicate keys in dicts, incorrect
  22     ADT usage, wrongfully using ellipsis, and much more.
  23 
  24     See <https://lintjl.readthedocs.org/en/stable/> for more information
  25     on the analysis provided.
  26     """
  27     LANGUAGES = {'Julia'}
  28     REQUIREMENTS = {DistributionRequirement(apt_get='julia')}
  29     AUTHORS = {'The coala developers'}
  30     AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}
  31     LICENSE = 'AGPL-3.0'
  32     CAN_DETECT = {'Unused Code', 'Syntax', 'Redundancy', 'Duplication',
  33                   'Unreachable Code', 'Security', 'Formatting'}
  34 
  35     @staticmethod
  36     def create_arguments(filename, file, config_file):
  37         lintcode = ('import Lint.lintfile; display(lintfile("' +
  38                     escape(filename, '"\\') + '"))')
  39         return '-e', lintcode
  40
  [end of bears/julia/JuliaLintBear.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/bears/julia/JuliaLintBear.py b/bears/julia/JuliaLintBear.py
  --- a/bears/julia/JuliaLintBear.py
  +++ b/bears/julia/JuliaLintBear.py
  @@ -1,7 +1,7 @@
   from coala_utils.string_processing.Core import escape
   from coalib.bearlib.abstractions.Linter import linter
  -from dependency_management.requirements.DistributionRequirement import (
  -    DistributionRequirement)
  +from dependency_management.requirements.JuliaRequirement import (
  +    JuliaRequirement)
   from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY
   
   
  @@ -25,7 +25,7 @@
       on the analysis provided.
       """
       LANGUAGES = {'Julia'}
  -    REQUIREMENTS = {DistributionRequirement(apt_get='julia')}
  +    REQUIREMENTS = {JuliaRequirement('Lint')}
       AUTHORS = {'The coala developers'}
       AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}
       LICENSE = 'AGPL-3.0'
  
verification_info: {"golden_diff": "diff --git a/bears/julia/JuliaLintBear.py b/bears/julia/JuliaLintBear.py\n--- a/bears/julia/JuliaLintBear.py\n+++ b/bears/julia/JuliaLintBear.py\n@@ -1,7 +1,7 @@\n from coala_utils.string_processing.Core import escape\n from coalib.bearlib.abstractions.Linter import linter\n-from dependency_management.requirements.DistributionRequirement import (\n-    DistributionRequirement)\n+from dependency_management.requirements.JuliaRequirement import (\n+    JuliaRequirement)\n from coalib.results.RESULT_SEVERITY import RESULT_SEVERITY\n \n \n@@ -25,7 +25,7 @@\n     on the analysis provided.\n     \"\"\"\n     LANGUAGES = {'Julia'}\n-    REQUIREMENTS = {DistributionRequirement(apt_get='julia')}\n+    REQUIREMENTS = {JuliaRequirement('Lint')}\n     AUTHORS = {'The coala developers'}\n     AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}\n     LICENSE = 'AGPL-3.0'\n", "issue": "JuliaLintBear: Use JuliaRequirement\n`REQUIREMENTS` should be a `JuliaRequirement` instead of a `DistributionRequirement`.\n", "before_files": [{"content": "from coala_utils.string_processing.Core import escape\nfrom coalib.bearlib.abstractions.Linter import linter\nfrom dependency_management.requirements.DistributionRequirement import (\n    DistributionRequirement)\nfrom coalib.results.RESULT_SEVERITY import RESULT_SEVERITY\n\n\n@linter(executable='julia',\n        output_format='regex',\n        output_regex=r'.+:(?P<line>\\d+) (?P<severity>.)\\d+ (?P<message>.*)',\n        severity_map={'E': RESULT_SEVERITY.MAJOR,\n                      'W': RESULT_SEVERITY.NORMAL,\n                      'I': RESULT_SEVERITY.INFO},\n        prerequisite_check_command=('julia', '-e', 'import Lint.lintfile'),\n        prerequisite_check_fail_message='Lint package not installed. Run '\n                                        '`Pkg.add(\"Lint\")` from Julia to '\n                                        'install Lint.')\nclass JuliaLintBear:\n    \"\"\"\n    Provide analysis related to common bugs and potential issues in Julia like\n    dead code, undefined variable usage, duplicate keys in dicts, incorrect\n    ADT usage, wrongfully using ellipsis, and much more.\n\n    See <https://lintjl.readthedocs.org/en/stable/> for more information\n    on the analysis provided.\n    \"\"\"\n    LANGUAGES = {'Julia'}\n    REQUIREMENTS = {DistributionRequirement(apt_get='julia')}\n    AUTHORS = {'The coala developers'}\n    AUTHORS_EMAILS = {'coala-devel@googlegroups.com'}\n    LICENSE = 'AGPL-3.0'\n    CAN_DETECT = {'Unused Code', 'Syntax', 'Redundancy', 'Duplication',\n                  'Unreachable Code', 'Security', 'Formatting'}\n\n    @staticmethod\n    def create_arguments(filename, file, config_file):\n        lintcode = ('import Lint.lintfile; display(lintfile(\"' +\n                    escape(filename, '\"\\\\') + '\"))')\n        return '-e', lintcode\n", "path": "bears/julia/JuliaLintBear.py"}]}