prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Update and unify a number of metrics in `torchmetrics` docs
  ## 📚 Documentation
  
  Before the next feature release, it'd be nice to update the number of implemented metrics and unify this number over all occurrences within the docs/pages.
  
  **Additional context:** It looks like we've already had almost 80 metrics, so it'd be pity to underestimate these before another feature release O:]
  
  ```bash
  $ grep -w docs/source/references/functional.rst -e "func" | wc -l
        78
  ```
  
  
  </issue>
  <code>
  [start of torchmetrics/__about__.py]
  1 __version__ = "0.8.0dev"
  2 __author__ = "PyTorchLightning et al."
  3 __author_email__ = "name@pytorchlightning.ai"
  4 __license__ = "Apache-2.0"
  5 __copyright__ = f"Copyright (c) 2020-2022, {__author__}."
  6 __homepage__ = "https://github.com/PyTorchLightning/metrics"
  7 __docs__ = "PyTorch native Metrics"
  8 __docs_url__ = "https://torchmetrics.readthedocs.io/en/stable/"
  9 __long_doc__ = """
  10 Torchmetrics is a metrics API created for easy metric development and usage in both PyTorch and
  11 [PyTorch Lightning](https://pytorch-lightning.readthedocs.io/en/stable/). It was originally a part of
  12 Pytorch Lightning, but got split off so users could take advantage of the large collection of metrics
  13 implemented without having to install Pytorch Lightning (even though we would love for you to try it out).
  14 We currently have around 60+ metrics implemented and we continuously are adding more metrics, both within
  15 already covered domains (classification, regression ect.) but also new domains (object detection ect.).
  16 We make sure that all our metrics are rigorously tested such that you can trust them.
  17 """
  18 
  19 __all__ = [
  20     "__author__",
  21     "__author_email__",
  22     "__copyright__",
  23     "__docs__",
  24     "__homepage__",
  25     "__license__",
  26     "__version__",
  27 ]
  28
  [end of torchmetrics/__about__.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/torchmetrics/__about__.py b/torchmetrics/__about__.py
  --- a/torchmetrics/__about__.py
  +++ b/torchmetrics/__about__.py
  @@ -11,7 +11,7 @@
   [PyTorch Lightning](https://pytorch-lightning.readthedocs.io/en/stable/). It was originally a part of
   Pytorch Lightning, but got split off so users could take advantage of the large collection of metrics
   implemented without having to install Pytorch Lightning (even though we would love for you to try it out).
  -We currently have around 60+ metrics implemented and we continuously are adding more metrics, both within
  +We currently have around 80+ metrics implemented and we continuously are adding more metrics, both within
   already covered domains (classification, regression ect.) but also new domains (object detection ect.).
   We make sure that all our metrics are rigorously tested such that you can trust them.
   """
  
verification_info: {"golden_diff": "diff --git a/torchmetrics/__about__.py b/torchmetrics/__about__.py\n--- a/torchmetrics/__about__.py\n+++ b/torchmetrics/__about__.py\n@@ -11,7 +11,7 @@\n [PyTorch Lightning](https://pytorch-lightning.readthedocs.io/en/stable/). It was originally a part of\n Pytorch Lightning, but got split off so users could take advantage of the large collection of metrics\n implemented without having to install Pytorch Lightning (even though we would love for you to try it out).\n-We currently have around 60+ metrics implemented and we continuously are adding more metrics, both within\n+We currently have around 80+ metrics implemented and we continuously are adding more metrics, both within\n already covered domains (classification, regression ect.) but also new domains (object detection ect.).\n We make sure that all our metrics are rigorously tested such that you can trust them.\n \"\"\"\n", "issue": "Update and unify a number of metrics in `torchmetrics` docs\n## \ud83d\udcda Documentation\r\n\r\nBefore the next feature release, it'd be nice to update the number of implemented metrics and unify this number over all occurrences within the docs/pages.\r\n\r\n**Additional context:** It looks like we've already had almost 80 metrics, so it'd be pity to underestimate these before another feature release O:]\r\n\r\n```bash\r\n$ grep -w docs/source/references/functional.rst -e \"func\" | wc -l\r\n      78\r\n```\r\n\n", "before_files": [{"content": "__version__ = \"0.8.0dev\"\n__author__ = \"PyTorchLightning et al.\"\n__author_email__ = \"name@pytorchlightning.ai\"\n__license__ = \"Apache-2.0\"\n__copyright__ = f\"Copyright (c) 2020-2022, {__author__}.\"\n__homepage__ = \"https://github.com/PyTorchLightning/metrics\"\n__docs__ = \"PyTorch native Metrics\"\n__docs_url__ = \"https://torchmetrics.readthedocs.io/en/stable/\"\n__long_doc__ = \"\"\"\nTorchmetrics is a metrics API created for easy metric development and usage in both PyTorch and\n[PyTorch Lightning](https://pytorch-lightning.readthedocs.io/en/stable/). It was originally a part of\nPytorch Lightning, but got split off so users could take advantage of the large collection of metrics\nimplemented without having to install Pytorch Lightning (even though we would love for you to try it out).\nWe currently have around 60+ metrics implemented and we continuously are adding more metrics, both within\nalready covered domains (classification, regression ect.) but also new domains (object detection ect.).\nWe make sure that all our metrics are rigorously tested such that you can trust them.\n\"\"\"\n\n__all__ = [\n    \"__author__\",\n    \"__author_email__\",\n    \"__copyright__\",\n    \"__docs__\",\n    \"__homepage__\",\n    \"__license__\",\n    \"__version__\",\n]\n", "path": "torchmetrics/__about__.py"}]}