          return converted
      return url
  
  
  
      name (str): Name of the directory to clone from the repo.
      dest (Path): Local destination of cloned directory.
      repo (str): URL of the repo to clone from.
 
</s> remove def check_clone_dest(dest: Path) -> None:
    """Check and validate that the destination path can be used to clone."""
 </s> add     name (str): Name of the directory to clone from the repo.
    dest (Path): Local destination of cloned directory.
    repo (str): URL of the repo to clone from.
    """
    try:
        subprocess.run(["git", "--version"], stdout=subprocess.DEVNULL)
    except Exception:
        msg.fail(
            f"Cloning spaCy project templates requires Git and the 'git' command. ",
            f"To clone a project without Git, copy the files from the '{name}' "
            f"directory in the {repo} to {dest} manually and then run:",
            f"{COMMAND} project init {dest}",
            exits=1,
        ) </s> remove         # url.replace("github.com", "raw.githubusercontent.com").replace("/blob/", "/").replace("/tree/", "/")
 </s> add         return converted
    return url
 </s> remove     check_clone_dest(dest)
    # When cloning a subdirectory with DVC, it will create a folder of that name
    # within the destination dir, so we use a tempdir and then copy it into the
    # parent directory to create the cloned directory
    dest = dest.resolve()
 </s> add     check_clone(name, dest, repo)
    project_dir = dest.resolve()
    # We're using Git and sparse checkout to only clone the files we need </s> remove def check_asset(url: str) -> None:
 </s> add def convert_asset_url(url: str) -> str:
    """Check and convert the asset URL if needed.

    url (str): The asset URL.
    RETURNS (str): The converted URL.
    """
def check_clone(name: str, dest: Path, repo: str) -> None:
    """Check and validate that the destination path can be used to clone. Will
    check that Git is available and that the destination path is suitable.
          return converted
      return url
  
  
def check_clone(name: str, dest: Path, repo: str) -> None:
    """Check and validate that the destination path can be used to clone. Will
    check that Git is available and that the destination path is suitable.
  
      name (str): Name of the directory to clone from the repo.
      dest (Path): Local destination of cloned directory.
      repo (str): URL of the repo to clone from.
keep keep keep add keep keep keep keep
 Tidy up, document and add custom clone logic 
spacy/cli/project.py