old_contents: """Bazel rule for loading external repository deps for J2CL."""
  
  load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  
  def load_j2cl_repo_deps():
      _github_repo(
          name = "io_bazel_rules_closure",
          repo = "bazelbuild/rules_closure",
          tag = "0.10.0",
      )
  
      _github_repo(
          name = "bazel_skylib",
          repo = "bazelbuild/bazel-skylib",
          tag = "0.7.0",
          sha256 = "bce240a0749dfc52fab20dce400b4d5cf7c28b239d64f8fd1762b3c9470121d8",
  
      )
  
  def _github_repo(name, repo, tag, sha256 = None):
      if native.existing_rule(name):
          return
  
      _, project_name = repo.split("/")
      http_archive(
          name = name,
          strip_prefix = "%s-%s" % (project_name, tag),
          url = "https://github.com/%s/archive/%s.zip" % (repo, tag),
          sha256 = sha256,
      )
  
new_contents: """Bazel rule for loading external repository deps for J2CL."""
  
  load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  
  def load_j2cl_repo_deps():
      _github_repo(
          name = "io_bazel_rules_closure",
          repo = "bazelbuild/rules_closure",
          tag = "0.10.0",
          sha256 = "9d4b3af0efb86b4f3b1658d12ad485e089587b537bfee0474f2a8549ad1d7f2c",
      )
  
      _github_repo(
          name = "bazel_skylib",
          repo = "bazelbuild/bazel-skylib",
          tag = "0.7.0",
          sha256 = "bce240a0749dfc52fab20dce400b4d5cf7c28b239d64f8fd1762b3c9470121d8",
  
      )
  
  def _github_repo(name, repo, tag, sha256 = None):
      if native.existing_rule(name):
          return
  
      _, project_name = repo.split("/")
      http_archive(
          name = name,
          strip_prefix = "%s-%s" % (project_name, tag),
          url = "https://github.com/%s/archive/%s.zip" % (repo, tag),
          sha256 = sha256,
      )
  
subject: Convert the io_bazel_rules_closure rule to a canonical reproducible form