prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  config: option for `--jobs` value
  Several DVC commands have a `--jobs` option that has default values (e.g, https://dvc.org/doc/commands-reference/gc).
  
  Afaik there is no way to change the default value. Having the option to change it through `dvc config` would be useful.
  
  Can you consider adding it?
  
  Thanks
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `dvc/fs/__init__.py`
  Content:
  ```
  1 from urllib.parse import urlparse
  2 
  3 # pylint: disable=unused-import
  4 from dvc_objects.fs import utils  # noqa: F401
  5 from dvc_objects.fs import (  # noqa: F401
  6     FS_MAP,
  7     AzureFileSystem,
  8     GDriveFileSystem,
  9     GSFileSystem,
  10     HDFSFileSystem,
  11     HTTPFileSystem,
  12     HTTPSFileSystem,
  13     LocalFileSystem,
  14     MemoryFileSystem,
  15     OSSFileSystem,
  16     S3FileSystem,
  17     Schemes,
  18     SSHFileSystem,
  19     WebDAVFileSystem,
  20     WebDAVSFileSystem,
  21     WebHDFSFileSystem,
  22     generic,
  23     get_fs_cls,
  24     system,
  25 )
  26 from dvc_objects.fs.base import AnyFSPath, FileSystem  # noqa: F401
  27 from dvc_objects.fs.errors import (  # noqa: F401
  28     AuthError,
  29     ConfigError,
  30     RemoteMissingDepsError,
  31 )
  32 from dvc_objects.fs.implementations.azure import AzureAuthError  # noqa: F401
  33 from dvc_objects.fs.implementations.gdrive import GDriveAuthError  # noqa: F401
  34 from dvc_objects.fs.implementations.local import localfs  # noqa: F401
  35 from dvc_objects.fs.implementations.ssh import (  # noqa: F401
  36     DEFAULT_PORT as DEFAULT_SSH_PORT,
  37 )
  38 from dvc_objects.fs.path import Path  # noqa: F401
  39 
  40 from .data import DataFileSystem  # noqa: F401
  41 from .dvc import DvcFileSystem  # noqa: F401
  42 from .git import GitFileSystem  # noqa: F401
  43 
  44 # pylint: enable=unused-import
  45 
  46 
  47 def get_fs_config(repo, config, **kwargs):
  48     name = kwargs.get("name")
  49     if name:
  50         try:
  51             remote_conf = config["remote"][name.lower()]
  52         except KeyError:
  53             from dvc.config import RemoteNotFoundError
  54 
  55             raise RemoteNotFoundError(f"remote '{name}' doesn't exist")
  56     else:
  57         remote_conf = kwargs
  58     return _resolve_remote_refs(repo, config, remote_conf)
  59 
  60 
  61 def _resolve_remote_refs(repo, config, remote_conf):
  62     # Support for cross referenced remotes.
  63     # This will merge the settings, shadowing base ref with remote_conf.
  64     # For example, having:
  65     #
  66     #       dvc remote add server ssh://localhost
  67     #       dvc remote modify server user root
  68     #       dvc remote modify server ask_password true
  69     #
  70     #       dvc remote add images remote://server/tmp/pictures
  71     #       dvc remote modify images user alice
  72     #       dvc remote modify images ask_password false
  73     #       dvc remote modify images password asdf1234
  74     #
  75     # Results on a config dictionary like:
  76     #
  77     #       {
  78     #           "url": "ssh://localhost/tmp/pictures",
  79     #           "user": "alice",
  80     #           "password": "asdf1234",
  81     #           "ask_password": False,
  82     #       }
  83     parsed = urlparse(remote_conf["url"])
  84     if parsed.scheme != "remote":
  85         return remote_conf
  86 
  87     base = get_fs_config(repo, config, name=parsed.netloc)
  88     cls, _, _ = get_cloud_fs(repo, **base)
  89     relpath = parsed.path.lstrip("/").replace("/", cls.sep)
  90     url = cls.sep.join((base["url"], relpath))
  91     return {**base, **remote_conf, "url": url}
  92 
  93 
  94 def get_cloud_fs(repo, **kwargs):
  95     from dvc.config import ConfigError as RepoConfigError
  96     from dvc.config_schema import SCHEMA, Invalid
  97 
  98     repo_config = repo.config if repo else {}
  99     core_config = repo_config.get("core", {})
  100 
  101     remote_conf = get_fs_config(repo, repo_config, **kwargs)
  102     try:
  103         remote_conf = SCHEMA["remote"][str](remote_conf)
  104     except Invalid as exc:
  105         raise RepoConfigError(str(exc)) from None
  106 
  107     if "jobs" not in remote_conf:
  108         jobs = core_config.get("jobs")
  109         if jobs:
  110             remote_conf["jobs"] = jobs
  111 
  112     if "checksum_jobs" not in remote_conf:
  113         checksum_jobs = core_config.get("checksum_jobs")
  114         if checksum_jobs:
  115             remote_conf["checksum_jobs"] = checksum_jobs
  116 
  117     cls = get_fs_cls(remote_conf)
  118 
  119     if cls == GDriveFileSystem and repo:
  120         remote_conf["gdrive_credentials_tmp_dir"] = repo.tmp_dir
  121 
  122     url = remote_conf.pop("url")
  123     if issubclass(cls, WebDAVFileSystem):
  124         # For WebDAVFileSystem, provided url is the base path itself, so it
  125         # should be treated as being a root path.
  126         fs_path = cls.root_marker
  127     else:
  128         fs_path = cls._strip_protocol(url)  # pylint:disable=protected-access
  129 
  130     extras = cls._get_kwargs_from_urls(url)  # pylint:disable=protected-access
  131     conf = {**extras, **remote_conf}  # remote config takes priority
  132     return cls, conf, fs_path
  133
  ```
  --- 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()
  
  ```
  
golden_diff: diff --git a/dvc/fs/__init__.py b/dvc/fs/__init__.py
  --- a/dvc/fs/__init__.py
  +++ b/dvc/fs/__init__.py
  @@ -104,11 +104,6 @@
       except Invalid as exc:
           raise RepoConfigError(str(exc)) from None
   
  -    if "jobs" not in remote_conf:
  -        jobs = core_config.get("jobs")
  -        if jobs:
  -            remote_conf["jobs"] = jobs
  -
       if "checksum_jobs" not in remote_conf:
           checksum_jobs = core_config.get("checksum_jobs")
           if checksum_jobs:
  
verification_info: {"golden_diff": "diff --git a/dvc/fs/__init__.py b/dvc/fs/__init__.py\n--- a/dvc/fs/__init__.py\n+++ b/dvc/fs/__init__.py\n@@ -104,11 +104,6 @@\n     except Invalid as exc:\n         raise RepoConfigError(str(exc)) from None\n \n-    if \"jobs\" not in remote_conf:\n-        jobs = core_config.get(\"jobs\")\n-        if jobs:\n-            remote_conf[\"jobs\"] = jobs\n-\n     if \"checksum_jobs\" not in remote_conf:\n         checksum_jobs = core_config.get(\"checksum_jobs\")\n         if checksum_jobs:\n", "issue": "config: option for `--jobs` value\nSeveral DVC commands have a `--jobs` option that has default values (e.g, https://dvc.org/doc/commands-reference/gc).\r\n\r\nAfaik there is no way to change the default value. Having the option to change it through `dvc config` would be useful.\r\n\r\nCan you consider adding it?\r\n\r\nThanks\n", "before_files": [{"content": "from urllib.parse import urlparse\n\n# pylint: disable=unused-import\nfrom dvc_objects.fs import utils  # noqa: F401\nfrom dvc_objects.fs import (  # noqa: F401\n    FS_MAP,\n    AzureFileSystem,\n    GDriveFileSystem,\n    GSFileSystem,\n    HDFSFileSystem,\n    HTTPFileSystem,\n    HTTPSFileSystem,\n    LocalFileSystem,\n    MemoryFileSystem,\n    OSSFileSystem,\n    S3FileSystem,\n    Schemes,\n    SSHFileSystem,\n    WebDAVFileSystem,\n    WebDAVSFileSystem,\n    WebHDFSFileSystem,\n    generic,\n    get_fs_cls,\n    system,\n)\nfrom dvc_objects.fs.base import AnyFSPath, FileSystem  # noqa: F401\nfrom dvc_objects.fs.errors import (  # noqa: F401\n    AuthError,\n    ConfigError,\n    RemoteMissingDepsError,\n)\nfrom dvc_objects.fs.implementations.azure import AzureAuthError  # noqa: F401\nfrom dvc_objects.fs.implementations.gdrive import GDriveAuthError  # noqa: F401\nfrom dvc_objects.fs.implementations.local import localfs  # noqa: F401\nfrom dvc_objects.fs.implementations.ssh import (  # noqa: F401\n    DEFAULT_PORT as DEFAULT_SSH_PORT,\n)\nfrom dvc_objects.fs.path import Path  # noqa: F401\n\nfrom .data import DataFileSystem  # noqa: F401\nfrom .dvc import DvcFileSystem  # noqa: F401\nfrom .git import GitFileSystem  # noqa: F401\n\n# pylint: enable=unused-import\n\n\ndef get_fs_config(repo, config, **kwargs):\n    name = kwargs.get(\"name\")\n    if name:\n        try:\n            remote_conf = config[\"remote\"][name.lower()]\n        except KeyError:\n            from dvc.config import RemoteNotFoundError\n\n            raise RemoteNotFoundError(f\"remote '{name}' doesn't exist\")\n    else:\n        remote_conf = kwargs\n    return _resolve_remote_refs(repo, config, remote_conf)\n\n\ndef _resolve_remote_refs(repo, config, remote_conf):\n    # Support for cross referenced remotes.\n    # This will merge the settings, shadowing base ref with remote_conf.\n    # For example, having:\n    #\n    #       dvc remote add server ssh://localhost\n    #       dvc remote modify server user root\n    #       dvc remote modify server ask_password true\n    #\n    #       dvc remote add images remote://server/tmp/pictures\n    #       dvc remote modify images user alice\n    #       dvc remote modify images ask_password false\n    #       dvc remote modify images password asdf1234\n    #\n    # Results on a config dictionary like:\n    #\n    #       {\n    #           \"url\": \"ssh://localhost/tmp/pictures\",\n    #           \"user\": \"alice\",\n    #           \"password\": \"asdf1234\",\n    #           \"ask_password\": False,\n    #       }\n    parsed = urlparse(remote_conf[\"url\"])\n    if parsed.scheme != \"remote\":\n        return remote_conf\n\n    base = get_fs_config(repo, config, name=parsed.netloc)\n    cls, _, _ = get_cloud_fs(repo, **base)\n    relpath = parsed.path.lstrip(\"/\").replace(\"/\", cls.sep)\n    url = cls.sep.join((base[\"url\"], relpath))\n    return {**base, **remote_conf, \"url\": url}\n\n\ndef get_cloud_fs(repo, **kwargs):\n    from dvc.config import ConfigError as RepoConfigError\n    from dvc.config_schema import SCHEMA, Invalid\n\n    repo_config = repo.config if repo else {}\n    core_config = repo_config.get(\"core\", {})\n\n    remote_conf = get_fs_config(repo, repo_config, **kwargs)\n    try:\n        remote_conf = SCHEMA[\"remote\"][str](remote_conf)\n    except Invalid as exc:\n        raise RepoConfigError(str(exc)) from None\n\n    if \"jobs\" not in remote_conf:\n        jobs = core_config.get(\"jobs\")\n        if jobs:\n            remote_conf[\"jobs\"] = jobs\n\n    if \"checksum_jobs\" not in remote_conf:\n        checksum_jobs = core_config.get(\"checksum_jobs\")\n        if checksum_jobs:\n            remote_conf[\"checksum_jobs\"] = checksum_jobs\n\n    cls = get_fs_cls(remote_conf)\n\n    if cls == GDriveFileSystem and repo:\n        remote_conf[\"gdrive_credentials_tmp_dir\"] = repo.tmp_dir\n\n    url = remote_conf.pop(\"url\")\n    if issubclass(cls, WebDAVFileSystem):\n        # For WebDAVFileSystem, provided url is the base path itself, so it\n        # should be treated as being a root path.\n        fs_path = cls.root_marker\n    else:\n        fs_path = cls._strip_protocol(url)  # pylint:disable=protected-access\n\n    extras = cls._get_kwargs_from_urls(url)  # pylint:disable=protected-access\n    conf = {**extras, **remote_conf}  # remote config takes priority\n    return cls, conf, fs_path\n", "path": "dvc/fs/__init__.py"}], "after_files": [{"content": "from urllib.parse import urlparse\n\n# pylint: disable=unused-import\nfrom dvc_objects.fs import utils  # noqa: F401\nfrom dvc_objects.fs import (  # noqa: F401\n    FS_MAP,\n    AzureFileSystem,\n    GDriveFileSystem,\n    GSFileSystem,\n    HDFSFileSystem,\n    HTTPFileSystem,\n    HTTPSFileSystem,\n    LocalFileSystem,\n    MemoryFileSystem,\n    OSSFileSystem,\n    S3FileSystem,\n    Schemes,\n    SSHFileSystem,\n    WebDAVFileSystem,\n    WebDAVSFileSystem,\n    WebHDFSFileSystem,\n    generic,\n    get_fs_cls,\n    system,\n)\nfrom dvc_objects.fs.base import AnyFSPath, FileSystem  # noqa: F401\nfrom dvc_objects.fs.errors import (  # noqa: F401\n    AuthError,\n    ConfigError,\n    RemoteMissingDepsError,\n)\nfrom dvc_objects.fs.implementations.azure import AzureAuthError  # noqa: F401\nfrom dvc_objects.fs.implementations.gdrive import GDriveAuthError  # noqa: F401\nfrom dvc_objects.fs.implementations.local import localfs  # noqa: F401\nfrom dvc_objects.fs.implementations.ssh import (  # noqa: F401\n    DEFAULT_PORT as DEFAULT_SSH_PORT,\n)\nfrom dvc_objects.fs.path import Path  # noqa: F401\n\nfrom .data import DataFileSystem  # noqa: F401\nfrom .dvc import DvcFileSystem  # noqa: F401\nfrom .git import GitFileSystem  # noqa: F401\n\n# pylint: enable=unused-import\n\n\ndef get_fs_config(repo, config, **kwargs):\n    name = kwargs.get(\"name\")\n    if name:\n        try:\n            remote_conf = config[\"remote\"][name.lower()]\n        except KeyError:\n            from dvc.config import RemoteNotFoundError\n\n            raise RemoteNotFoundError(f\"remote '{name}' doesn't exist\")\n    else:\n        remote_conf = kwargs\n    return _resolve_remote_refs(repo, config, remote_conf)\n\n\ndef _resolve_remote_refs(repo, config, remote_conf):\n    # Support for cross referenced remotes.\n    # This will merge the settings, shadowing base ref with remote_conf.\n    # For example, having:\n    #\n    #       dvc remote add server ssh://localhost\n    #       dvc remote modify server user root\n    #       dvc remote modify server ask_password true\n    #\n    #       dvc remote add images remote://server/tmp/pictures\n    #       dvc remote modify images user alice\n    #       dvc remote modify images ask_password false\n    #       dvc remote modify images password asdf1234\n    #\n    # Results on a config dictionary like:\n    #\n    #       {\n    #           \"url\": \"ssh://localhost/tmp/pictures\",\n    #           \"user\": \"alice\",\n    #           \"password\": \"asdf1234\",\n    #           \"ask_password\": False,\n    #       }\n    parsed = urlparse(remote_conf[\"url\"])\n    if parsed.scheme != \"remote\":\n        return remote_conf\n\n    base = get_fs_config(repo, config, name=parsed.netloc)\n    cls, _, _ = get_cloud_fs(repo, **base)\n    relpath = parsed.path.lstrip(\"/\").replace(\"/\", cls.sep)\n    url = cls.sep.join((base[\"url\"], relpath))\n    return {**base, **remote_conf, \"url\": url}\n\n\ndef get_cloud_fs(repo, **kwargs):\n    from dvc.config import ConfigError as RepoConfigError\n    from dvc.config_schema import SCHEMA, Invalid\n\n    repo_config = repo.config if repo else {}\n    core_config = repo_config.get(\"core\", {})\n\n    remote_conf = get_fs_config(repo, repo_config, **kwargs)\n    try:\n        remote_conf = SCHEMA[\"remote\"][str](remote_conf)\n    except Invalid as exc:\n        raise RepoConfigError(str(exc)) from None\n\n    if \"checksum_jobs\" not in remote_conf:\n        checksum_jobs = core_config.get(\"checksum_jobs\")\n        if checksum_jobs:\n            remote_conf[\"checksum_jobs\"] = checksum_jobs\n\n    cls = get_fs_cls(remote_conf)\n\n    if cls == GDriveFileSystem and repo:\n        remote_conf[\"gdrive_credentials_tmp_dir\"] = repo.tmp_dir\n\n    url = remote_conf.pop(\"url\")\n    if issubclass(cls, WebDAVFileSystem):\n        # For WebDAVFileSystem, provided url is the base path itself, so it\n        # should be treated as being a root path.\n        fs_path = cls.root_marker\n    else:\n        fs_path = cls._strip_protocol(url)  # pylint:disable=protected-access\n\n    extras = cls._get_kwargs_from_urls(url)  # pylint:disable=protected-access\n    conf = {**extras, **remote_conf}  # remote config takes priority\n    return cls, conf, fs_path\n", "path": "dvc/fs/__init__.py"}]}