prompt: You will be provided with a partial code base and an issue statement explaining a problem to resolve.
  <issue>
  Use main instead of master to load the datasets
  The main branch in https://github.com/huggingface/datasets is now `main`, not `master` anymore. Note that it's backward compatible, so no need to hurry
  
  </issue>
  <code>
  [start of services/worker/src/worker/constants.py]
  1 from typing import Optional
  2 
  3 DEFAULT_ASSETS_BASE_URL: str = "assets"
  4 DEFAULT_ASSETS_DIRECTORY: None = None
  5 DEFAULT_DATASETS_REVISION: str = "master"
  6 DEFAULT_HF_TOKEN: Optional[str] = None
  7 DEFAULT_LOG_LEVEL: str = "INFO"
  8 DEFAULT_MAX_JOB_RETRIES: int = 3
  9 DEFAULT_MAX_JOBS_PER_DATASET: int = 1
  10 DEFAULT_MAX_LOAD_PCT: int = 70
  11 DEFAULT_MAX_MEMORY_PCT: int = 80
  12 DEFAULT_MAX_SIZE_FALLBACK: int = 100_000_000
  13 DEFAULT_MIN_CELL_BYTES: int = 100
  14 DEFAULT_MONGO_CACHE_DATABASE: str = "datasets_server_cache"
  15 DEFAULT_MONGO_QUEUE_DATABASE: str = "datasets_server_queue"
  16 DEFAULT_MONGO_URL: str = "mongodb://localhost:27018"
  17 DEFAULT_ROWS_MAX_BYTES: int = 1_000_000
  18 DEFAULT_ROWS_MAX_NUMBER: int = 100
  19 DEFAULT_ROWS_MIN_NUMBER: int = 10
  20 DEFAULT_WORKER_SLEEP_SECONDS: int = 15
  21 DEFAULT_WORKER_QUEUE: str = "datasets"
  22
  [end of services/worker/src/worker/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/services/worker/src/worker/constants.py b/services/worker/src/worker/constants.py
  --- a/services/worker/src/worker/constants.py
  +++ b/services/worker/src/worker/constants.py
  @@ -2,7 +2,7 @@
   
   DEFAULT_ASSETS_BASE_URL: str = "assets"
   DEFAULT_ASSETS_DIRECTORY: None = None
  -DEFAULT_DATASETS_REVISION: str = "master"
  +DEFAULT_DATASETS_REVISION: str = "main"
   DEFAULT_HF_TOKEN: Optional[str] = None
   DEFAULT_LOG_LEVEL: str = "INFO"
   DEFAULT_MAX_JOB_RETRIES: int = 3
  
verification_info: {"golden_diff": "diff --git a/services/worker/src/worker/constants.py b/services/worker/src/worker/constants.py\n--- a/services/worker/src/worker/constants.py\n+++ b/services/worker/src/worker/constants.py\n@@ -2,7 +2,7 @@\n \n DEFAULT_ASSETS_BASE_URL: str = \"assets\"\n DEFAULT_ASSETS_DIRECTORY: None = None\n-DEFAULT_DATASETS_REVISION: str = \"master\"\n+DEFAULT_DATASETS_REVISION: str = \"main\"\n DEFAULT_HF_TOKEN: Optional[str] = None\n DEFAULT_LOG_LEVEL: str = \"INFO\"\n DEFAULT_MAX_JOB_RETRIES: int = 3\n", "issue": "Use main instead of master to load the datasets\nThe main branch in https://github.com/huggingface/datasets is now `main`, not `master` anymore. Note that it's backward compatible, so no need to hurry\n", "before_files": [{"content": "from typing import Optional\n\nDEFAULT_ASSETS_BASE_URL: str = \"assets\"\nDEFAULT_ASSETS_DIRECTORY: None = None\nDEFAULT_DATASETS_REVISION: str = \"master\"\nDEFAULT_HF_TOKEN: Optional[str] = None\nDEFAULT_LOG_LEVEL: str = \"INFO\"\nDEFAULT_MAX_JOB_RETRIES: int = 3\nDEFAULT_MAX_JOBS_PER_DATASET: int = 1\nDEFAULT_MAX_LOAD_PCT: int = 70\nDEFAULT_MAX_MEMORY_PCT: int = 80\nDEFAULT_MAX_SIZE_FALLBACK: int = 100_000_000\nDEFAULT_MIN_CELL_BYTES: int = 100\nDEFAULT_MONGO_CACHE_DATABASE: str = \"datasets_server_cache\"\nDEFAULT_MONGO_QUEUE_DATABASE: str = \"datasets_server_queue\"\nDEFAULT_MONGO_URL: str = \"mongodb://localhost:27018\"\nDEFAULT_ROWS_MAX_BYTES: int = 1_000_000\nDEFAULT_ROWS_MAX_NUMBER: int = 100\nDEFAULT_ROWS_MIN_NUMBER: int = 10\nDEFAULT_WORKER_SLEEP_SECONDS: int = 15\nDEFAULT_WORKER_QUEUE: str = \"datasets\"\n", "path": "services/worker/src/worker/constants.py"}]}