prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Improve examples documentation to make it clear that they are standalone
  ## 🚀 Feature
  
  Tangentially to #532, I think it would be good to add a "Usage" section to examples/README.md that makes it clear that these example scripts can be used through pip-installed CompilerGym, and possibly split the examples rules out of the top level makefile into an examples/Makefile file for standalone usage.
  
  ## Motivation
  
  It is not clear whether the included examples require building from source (they don't) or can be used on their own (they can).
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `examples/setup.py`
  Content:
  ```
  1 #!/usr/bin/env python3
  2 #
  3 # Copyright (c) Facebook, Inc. and its affiliates.
  4 #
  5 # This source code is licensed under the MIT license found in the
  6 # LICENSE file in the root directory of this source tree.
  7 
  8 import distutils.util
  9 
  10 import setuptools
  11 
  12 with open("../VERSION") as f:
  13     version = f.read().strip()
  14 with open("requirements.txt") as f:
  15     requirements = [ln.split("#")[0].rstrip() for ln in f.readlines()]
  16 
  17 setuptools.setup(
  18     name="compiler_gym_examples",
  19     version=version,
  20     description="Example code for CompilerGym",
  21     author="Facebook AI Research",
  22     url="https://github.com/facebookresearch/CompilerGym",
  23     license="MIT",
  24     install_requires=requirements,
  25     packages=[
  26         "llvm_autotuning",
  27         "llvm_autotuning.autotuners",
  28         "llvm_rl",
  29         "llvm_rl.model",
  30     ],
  31     python_requires=">=3.8",
  32     platforms=[distutils.util.get_platform()],
  33     zip_safe=False,
  34 )
  35
  ```
  --- 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/examples/setup.py b/examples/setup.py
  --- a/examples/setup.py
  +++ b/examples/setup.py
  @@ -13,6 +13,8 @@
       version = f.read().strip()
   with open("requirements.txt") as f:
       requirements = [ln.split("#")[0].rstrip() for ln in f.readlines()]
  +with open("../tests/requirements.txt") as f:
  +    requirements += [ln.split("#")[0].rstrip() for ln in f.readlines()]
   
   setuptools.setup(
       name="compiler_gym_examples",
  
verification_info: {"golden_diff": "diff --git a/examples/setup.py b/examples/setup.py\n--- a/examples/setup.py\n+++ b/examples/setup.py\n@@ -13,6 +13,8 @@\n     version = f.read().strip()\n with open(\"requirements.txt\") as f:\n     requirements = [ln.split(\"#\")[0].rstrip() for ln in f.readlines()]\n+with open(\"../tests/requirements.txt\") as f:\n+    requirements += [ln.split(\"#\")[0].rstrip() for ln in f.readlines()]\n \n setuptools.setup(\n     name=\"compiler_gym_examples\",\n", "issue": "Improve examples documentation to make it clear that they are standalone\n## \ud83d\ude80 Feature\r\n\r\nTangentially to #532, I think it would be good to add a \"Usage\" section to examples/README.md that makes it clear that these example scripts can be used through pip-installed CompilerGym, and possibly split the examples rules out of the top level makefile into an examples/Makefile file for standalone usage.\r\n\r\n## Motivation\r\n\r\nIt is not clear whether the included examples require building from source (they don't) or can be used on their own (they can).\n", "before_files": [{"content": "#!/usr/bin/env python3\n#\n# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nimport distutils.util\n\nimport setuptools\n\nwith open(\"../VERSION\") as f:\n    version = f.read().strip()\nwith open(\"requirements.txt\") as f:\n    requirements = [ln.split(\"#\")[0].rstrip() for ln in f.readlines()]\n\nsetuptools.setup(\n    name=\"compiler_gym_examples\",\n    version=version,\n    description=\"Example code for CompilerGym\",\n    author=\"Facebook AI Research\",\n    url=\"https://github.com/facebookresearch/CompilerGym\",\n    license=\"MIT\",\n    install_requires=requirements,\n    packages=[\n        \"llvm_autotuning\",\n        \"llvm_autotuning.autotuners\",\n        \"llvm_rl\",\n        \"llvm_rl.model\",\n    ],\n    python_requires=\">=3.8\",\n    platforms=[distutils.util.get_platform()],\n    zip_safe=False,\n)\n", "path": "examples/setup.py"}], "after_files": [{"content": "#!/usr/bin/env python3\n#\n# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nimport distutils.util\n\nimport setuptools\n\nwith open(\"../VERSION\") as f:\n    version = f.read().strip()\nwith open(\"requirements.txt\") as f:\n    requirements = [ln.split(\"#\")[0].rstrip() for ln in f.readlines()]\nwith open(\"../tests/requirements.txt\") as f:\n    requirements += [ln.split(\"#\")[0].rstrip() for ln in f.readlines()]\n\nsetuptools.setup(\n    name=\"compiler_gym_examples\",\n    version=version,\n    description=\"Example code for CompilerGym\",\n    author=\"Facebook AI Research\",\n    url=\"https://github.com/facebookresearch/CompilerGym\",\n    license=\"MIT\",\n    install_requires=requirements,\n    packages=[\n        \"llvm_autotuning\",\n        \"llvm_autotuning.autotuners\",\n        \"llvm_rl\",\n        \"llvm_rl.model\",\n    ],\n    python_requires=\">=3.8\",\n    platforms=[distutils.util.get_platform()],\n    zip_safe=False,\n)\n", "path": "examples/setup.py"}]}