prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Remove defunct entry_points
  These scripts no longer exist. We should remove the entry_points.
  
  * [insights.tools.generate_api_config](https://github.com/RedHatInsights/insights-core/blob/master/setup.py#L23)
  * [insights.tools.perf](https://github.com/RedHatInsights/insights-core/blob/master/setup.py#L24)
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `setup.py`
  Content:
  ```
  1 import os
  2 import sys
  3 from setuptools import setup, find_packages
  4 
  5 __here__ = os.path.dirname(os.path.abspath(__file__))
  6 
  7 package_info = dict.fromkeys(["RELEASE", "COMMIT", "VERSION", "NAME"])
  8 
  9 for name in package_info:
  10     with open(os.path.join(__here__, "insights", name)) as f:
  11         package_info[name] = f.read().strip()
  12 
  13 entry_points = {
  14     'console_scripts': [
  15         'insights-collect = insights.collect:main',
  16         'insights-run = insights:main',
  17         'insights = insights.command_parser:main',
  18         'insights-cat = insights.tools.cat:main',
  19         'insights-dupkeycheck = insights.tools.dupkeycheck:main',
  20         'insights-inspect = insights.tools.insights_inspect:main',
  21         'insights-info = insights.tools.query:main',
  22         'insights-ocpshell= insights.ocpshell:main',
  23         'gen_api = insights.tools.generate_api_config:main',
  24         'insights-perf = insights.tools.perf:main',
  25         'client = insights.client:run',
  26         'mangle = insights.util.mangle:main'
  27     ]
  28 }
  29 
  30 runtime = set([
  31     'six',
  32     'requests',
  33     'redis',
  34     'cachecontrol',
  35     'cachecontrol[redis]',
  36     'cachecontrol[filecache]',
  37     'defusedxml',
  38     'lockfile',
  39     'jinja2',
  40 ])
  41 
  42 if (sys.version_info < (2, 7)):
  43     runtime.add('pyyaml>=3.10,<=3.13')
  44 else:
  45     runtime.add('pyyaml')
  46 
  47 
  48 def maybe_require(pkg):
  49     try:
  50         __import__(pkg)
  51     except ImportError:
  52         runtime.add(pkg)
  53 
  54 
  55 maybe_require("importlib")
  56 maybe_require("argparse")
  57 
  58 
  59 client = set([
  60     'requests'
  61 ])
  62 
  63 develop = set([
  64     'futures==3.0.5',
  65     'wheel',
  66 ])
  67 
  68 docs = set([
  69     'Sphinx<=3.0.2',
  70     'nbsphinx',
  71     'sphinx_rtd_theme',
  72     'ipython',
  73     'colorama',
  74     'jinja2',
  75     'Pygments'
  76 ])
  77 
  78 testing = set([
  79     'coverage==4.3.4',
  80     'pytest==3.0.6',
  81     'pytest-cov==2.4.0',
  82     'mock==2.0.0',
  83 ])
  84 
  85 cluster = set([
  86     'ansible',
  87     'pandas',
  88     'colorama',
  89 ])
  90 
  91 openshift = set([
  92     'openshift'
  93 ])
  94 
  95 linting = set([
  96     'flake8==2.6.2',
  97 ])
  98 
  99 optional = set([
  100     'python-cjson',
  101     'python-logstash',
  102     'python-statsd',
  103     'watchdog',
  104 ])
  105 
  106 if __name__ == "__main__":
  107     # allows for runtime modification of rpm name
  108     name = os.environ.get("INSIGHTS_CORE_NAME", package_info["NAME"])
  109 
  110     setup(
  111         name=name,
  112         version=package_info["VERSION"],
  113         description="Insights Core is a data collection and analysis framework",
  114         long_description=open("README.rst").read(),
  115         url="https://github.com/redhatinsights/insights-core",
  116         author="Red Hat, Inc.",
  117         author_email="insights@redhat.com",
  118         packages=find_packages(),
  119         install_requires=list(runtime),
  120         package_data={'': ['LICENSE']},
  121         license='Apache 2.0',
  122         extras_require={
  123             'develop': list(runtime | develop | client | docs | linting | testing | cluster),
  124             'develop26': list(runtime | develop | client | linting | testing | cluster),
  125             'client': list(runtime | client),
  126             'client-develop': list(runtime | develop | client | linting | testing),
  127             'cluster': list(runtime | cluster),
  128             'openshift': list(runtime | openshift),
  129             'optional': list(optional),
  130             'docs': list(docs),
  131             'linting': list(linting | client),
  132             'testing': list(testing | client)
  133         },
  134         classifiers=[
  135             'Development Status :: 5 - Production/Stable',
  136             'Intended Audience :: Developers',
  137             'Natural Language :: English',
  138             'License :: OSI Approved :: Apache Software License',
  139             'Programming Language :: Python',
  140             'Programming Language :: Python :: 2.6',
  141             'Programming Language :: Python :: 2.7',
  142             'Programming Language :: Python :: 3.3',
  143             'Programming Language :: Python :: 3.4',
  144             'Programming Language :: Python :: 3.5',
  145             'Programming Language :: Python :: 3.6'
  146         ],
  147         entry_points=entry_points,
  148         include_package_data=True
  149     )
  150
  ```
  --- 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/setup.py b/setup.py
  --- a/setup.py
  +++ b/setup.py
  @@ -20,8 +20,6 @@
           'insights-inspect = insights.tools.insights_inspect:main',
           'insights-info = insights.tools.query:main',
           'insights-ocpshell= insights.ocpshell:main',
  -        'gen_api = insights.tools.generate_api_config:main',
  -        'insights-perf = insights.tools.perf:main',
           'client = insights.client:run',
           'mangle = insights.util.mangle:main'
       ]
  
verification_info: {"golden_diff": "diff --git a/setup.py b/setup.py\n--- a/setup.py\n+++ b/setup.py\n@@ -20,8 +20,6 @@\n         'insights-inspect = insights.tools.insights_inspect:main',\n         'insights-info = insights.tools.query:main',\n         'insights-ocpshell= insights.ocpshell:main',\n-        'gen_api = insights.tools.generate_api_config:main',\n-        'insights-perf = insights.tools.perf:main',\n         'client = insights.client:run',\n         'mangle = insights.util.mangle:main'\n     ]\n", "issue": "Remove defunct entry_points\nThese scripts no longer exist. We should remove the entry_points.\r\n\r\n* [insights.tools.generate_api_config](https://github.com/RedHatInsights/insights-core/blob/master/setup.py#L23)\r\n* [insights.tools.perf](https://github.com/RedHatInsights/insights-core/blob/master/setup.py#L24)\n", "before_files": [{"content": "import os\nimport sys\nfrom setuptools import setup, find_packages\n\n__here__ = os.path.dirname(os.path.abspath(__file__))\n\npackage_info = dict.fromkeys([\"RELEASE\", \"COMMIT\", \"VERSION\", \"NAME\"])\n\nfor name in package_info:\n    with open(os.path.join(__here__, \"insights\", name)) as f:\n        package_info[name] = f.read().strip()\n\nentry_points = {\n    'console_scripts': [\n        'insights-collect = insights.collect:main',\n        'insights-run = insights:main',\n        'insights = insights.command_parser:main',\n        'insights-cat = insights.tools.cat:main',\n        'insights-dupkeycheck = insights.tools.dupkeycheck:main',\n        'insights-inspect = insights.tools.insights_inspect:main',\n        'insights-info = insights.tools.query:main',\n        'insights-ocpshell= insights.ocpshell:main',\n        'gen_api = insights.tools.generate_api_config:main',\n        'insights-perf = insights.tools.perf:main',\n        'client = insights.client:run',\n        'mangle = insights.util.mangle:main'\n    ]\n}\n\nruntime = set([\n    'six',\n    'requests',\n    'redis',\n    'cachecontrol',\n    'cachecontrol[redis]',\n    'cachecontrol[filecache]',\n    'defusedxml',\n    'lockfile',\n    'jinja2',\n])\n\nif (sys.version_info < (2, 7)):\n    runtime.add('pyyaml>=3.10,<=3.13')\nelse:\n    runtime.add('pyyaml')\n\n\ndef maybe_require(pkg):\n    try:\n        __import__(pkg)\n    except ImportError:\n        runtime.add(pkg)\n\n\nmaybe_require(\"importlib\")\nmaybe_require(\"argparse\")\n\n\nclient = set([\n    'requests'\n])\n\ndevelop = set([\n    'futures==3.0.5',\n    'wheel',\n])\n\ndocs = set([\n    'Sphinx<=3.0.2',\n    'nbsphinx',\n    'sphinx_rtd_theme',\n    'ipython',\n    'colorama',\n    'jinja2',\n    'Pygments'\n])\n\ntesting = set([\n    'coverage==4.3.4',\n    'pytest==3.0.6',\n    'pytest-cov==2.4.0',\n    'mock==2.0.0',\n])\n\ncluster = set([\n    'ansible',\n    'pandas',\n    'colorama',\n])\n\nopenshift = set([\n    'openshift'\n])\n\nlinting = set([\n    'flake8==2.6.2',\n])\n\noptional = set([\n    'python-cjson',\n    'python-logstash',\n    'python-statsd',\n    'watchdog',\n])\n\nif __name__ == \"__main__\":\n    # allows for runtime modification of rpm name\n    name = os.environ.get(\"INSIGHTS_CORE_NAME\", package_info[\"NAME\"])\n\n    setup(\n        name=name,\n        version=package_info[\"VERSION\"],\n        description=\"Insights Core is a data collection and analysis framework\",\n        long_description=open(\"README.rst\").read(),\n        url=\"https://github.com/redhatinsights/insights-core\",\n        author=\"Red Hat, Inc.\",\n        author_email=\"insights@redhat.com\",\n        packages=find_packages(),\n        install_requires=list(runtime),\n        package_data={'': ['LICENSE']},\n        license='Apache 2.0',\n        extras_require={\n            'develop': list(runtime | develop | client | docs | linting | testing | cluster),\n            'develop26': list(runtime | develop | client | linting | testing | cluster),\n            'client': list(runtime | client),\n            'client-develop': list(runtime | develop | client | linting | testing),\n            'cluster': list(runtime | cluster),\n            'openshift': list(runtime | openshift),\n            'optional': list(optional),\n            'docs': list(docs),\n            'linting': list(linting | client),\n            'testing': list(testing | client)\n        },\n        classifiers=[\n            'Development Status :: 5 - Production/Stable',\n            'Intended Audience :: Developers',\n            'Natural Language :: English',\n            'License :: OSI Approved :: Apache Software License',\n            'Programming Language :: Python',\n            'Programming Language :: Python :: 2.6',\n            'Programming Language :: Python :: 2.7',\n            'Programming Language :: Python :: 3.3',\n            'Programming Language :: Python :: 3.4',\n            'Programming Language :: Python :: 3.5',\n            'Programming Language :: Python :: 3.6'\n        ],\n        entry_points=entry_points,\n        include_package_data=True\n    )\n", "path": "setup.py"}], "after_files": [{"content": "import os\nimport sys\nfrom setuptools import setup, find_packages\n\n__here__ = os.path.dirname(os.path.abspath(__file__))\n\npackage_info = dict.fromkeys([\"RELEASE\", \"COMMIT\", \"VERSION\", \"NAME\"])\n\nfor name in package_info:\n    with open(os.path.join(__here__, \"insights\", name)) as f:\n        package_info[name] = f.read().strip()\n\nentry_points = {\n    'console_scripts': [\n        'insights-collect = insights.collect:main',\n        'insights-run = insights:main',\n        'insights = insights.command_parser:main',\n        'insights-cat = insights.tools.cat:main',\n        'insights-dupkeycheck = insights.tools.dupkeycheck:main',\n        'insights-inspect = insights.tools.insights_inspect:main',\n        'insights-info = insights.tools.query:main',\n        'insights-ocpshell= insights.ocpshell:main',\n        'client = insights.client:run',\n        'mangle = insights.util.mangle:main'\n    ]\n}\n\nruntime = set([\n    'six',\n    'requests',\n    'redis',\n    'cachecontrol',\n    'cachecontrol[redis]',\n    'cachecontrol[filecache]',\n    'defusedxml',\n    'lockfile',\n    'jinja2',\n])\n\nif (sys.version_info < (2, 7)):\n    runtime.add('pyyaml>=3.10,<=3.13')\nelse:\n    runtime.add('pyyaml')\n\n\ndef maybe_require(pkg):\n    try:\n        __import__(pkg)\n    except ImportError:\n        runtime.add(pkg)\n\n\nmaybe_require(\"importlib\")\nmaybe_require(\"argparse\")\n\n\nclient = set([\n    'requests'\n])\n\ndevelop = set([\n    'futures==3.0.5',\n    'wheel',\n])\n\ndocs = set([\n    'Sphinx<=3.0.2',\n    'nbsphinx',\n    'sphinx_rtd_theme',\n    'ipython',\n    'colorama',\n    'jinja2',\n    'Pygments'\n])\n\ntesting = set([\n    'coverage==4.3.4',\n    'pytest==3.0.6',\n    'pytest-cov==2.4.0',\n    'mock==2.0.0',\n])\n\ncluster = set([\n    'ansible',\n    'pandas',\n    'colorama',\n])\n\nopenshift = set([\n    'openshift'\n])\n\nlinting = set([\n    'flake8==2.6.2',\n])\n\noptional = set([\n    'python-cjson',\n    'python-logstash',\n    'python-statsd',\n    'watchdog',\n])\n\nif __name__ == \"__main__\":\n    # allows for runtime modification of rpm name\n    name = os.environ.get(\"INSIGHTS_CORE_NAME\", package_info[\"NAME\"])\n\n    setup(\n        name=name,\n        version=package_info[\"VERSION\"],\n        description=\"Insights Core is a data collection and analysis framework\",\n        long_description=open(\"README.rst\").read(),\n        url=\"https://github.com/redhatinsights/insights-core\",\n        author=\"Red Hat, Inc.\",\n        author_email=\"insights@redhat.com\",\n        packages=find_packages(),\n        install_requires=list(runtime),\n        package_data={'': ['LICENSE']},\n        license='Apache 2.0',\n        extras_require={\n            'develop': list(runtime | develop | client | docs | linting | testing | cluster),\n            'develop26': list(runtime | develop | client | linting | testing | cluster),\n            'client': list(runtime | client),\n            'client-develop': list(runtime | develop | client | linting | testing),\n            'cluster': list(runtime | cluster),\n            'openshift': list(runtime | openshift),\n            'optional': list(optional),\n            'docs': list(docs),\n            'linting': list(linting | client),\n            'testing': list(testing | client)\n        },\n        classifiers=[\n            'Development Status :: 5 - Production/Stable',\n            'Intended Audience :: Developers',\n            'Natural Language :: English',\n            'License :: OSI Approved :: Apache Software License',\n            'Programming Language :: Python',\n            'Programming Language :: Python :: 2.6',\n            'Programming Language :: Python :: 2.7',\n            'Programming Language :: Python :: 3.3',\n            'Programming Language :: Python :: 3.4',\n            'Programming Language :: Python :: 3.5',\n            'Programming Language :: Python :: 3.6'\n        ],\n        entry_points=entry_points,\n        include_package_data=True\n    )\n", "path": "setup.py"}]}