
from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline


def get_pipeline_names() -> Iterator[str]:
    """ Iterator with all the names of available data pipelines """
    for item in (SRC / "pipelines").iterdir():
        if not item.name.startswith("_") and not item.is_file() and item.name == "epidemiology":
            yield item.name


def get_table_names() -> Iterator[str]:
    """ Iterator with all the available table names """
    for pipeline_name in get_pipeline_names():
        yield pipeline_name.replace("_", "-")


def get_pipelines() -> Iterator[DataPipeline]:
    """ Iterator with all the available data pipelines """
    for pipeline_name in get_pipeline_names():
        yield DataPipeline.load(pipeline_name)


def get_schema() -> Dict[str, type]:
    """ Outputs all known column schemas """
    schema: Dict[str, type] = {}
    for pipeline in get_pipelines():
        schema.update(pipeline.schema)
    return schema


from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline


def get_pipeline_names() -> Iterator[str]:
    """ Iterator with all the names of available data pipelines """
    for item in (SRC / "pipelines").iterdir():
        if not item.name.startswith("_") and not item.is_file():
            yield item.name


def get_table_names() -> Iterator[str]:
    """ Iterator with all the available table names """
    for pipeline_name in get_pipeline_names():
        yield pipeline_name.replace("_", "-")


def get_pipelines() -> Iterator[DataPipeline]:
    """ Iterator with all the available data pipelines """
    for pipeline_name in get_pipeline_names():
        yield DataPipeline.load(pipeline_name)


def get_schema() -> Dict[str, type]:
    """ Outputs all known column schemas """
    schema: Dict[str, type] = {}
    for pipeline in get_pipelines():
        schema.update(pipeline.schema)
    return schema

Fix a debug line in a test lib
Fix a debug line in a test lib

  
  from typing import Iterator, Dict
  from lib.constants import SRC
  from lib.pipeline import DataPipeline
  
  
  def get_pipeline_names() -> Iterator[str]:
      """ Iterator with all the names of available data pipelines """
      for item in (SRC / "pipelines").iterdir():
-         if not item.name.startswith("_") and not item.is_file() and item.name == "epidemiology":
+         if not item.name.startswith("_") and not item.is_file():
              yield item.name
  
  
  def get_table_names() -> Iterator[str]:
      """ Iterator with all the available table names """
      for pipeline_name in get_pipeline_names():
          yield pipeline_name.replace("_", "-")
  
  
  def get_pipelines() -> Iterator[DataPipeline]:
      """ Iterator with all the available data pipelines """
      for pipeline_name in get_pipeline_names():
          yield DataPipeline.load(pipeline_name)
  
  
  def get_schema() -> Dict[str, type]:
      """ Outputs all known column schemas """
      schema: Dict[str, type] = {}
      for pipeline in get_pipelines():
          schema.update(pipeline.schema)
      return schema
  
Fix a debug line in a test lib
## Code Before:

from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline


def get_pipeline_names() -> Iterator[str]:
    """ Iterator with all the names of available data pipelines """
    for item in (SRC / "pipelines").iterdir():
        if not item.name.startswith("_") and not item.is_file() and item.name == "epidemiology":
            yield item.name


def get_table_names() -> Iterator[str]:
    """ Iterator with all the available table names """
    for pipeline_name in get_pipeline_names():
        yield pipeline_name.replace("_", "-")


def get_pipelines() -> Iterator[DataPipeline]:
    """ Iterator with all the available data pipelines """
    for pipeline_name in get_pipeline_names():
        yield DataPipeline.load(pipeline_name)


def get_schema() -> Dict[str, type]:
    """ Outputs all known column schemas """
    schema: Dict[str, type] = {}
    for pipeline in get_pipelines():
        schema.update(pipeline.schema)
    return schema

## Instruction:
Fix a debug line in a test lib
## Code After:

from typing import Iterator, Dict
from lib.constants import SRC
from lib.pipeline import DataPipeline


def get_pipeline_names() -> Iterator[str]:
    """ Iterator with all the names of available data pipelines """
    for item in (SRC / "pipelines").iterdir():
        if not item.name.startswith("_") and not item.is_file():
            yield item.name


def get_table_names() -> Iterator[str]:
    """ Iterator with all the available table names """
    for pipeline_name in get_pipeline_names():
        yield pipeline_name.replace("_", "-")


def get_pipelines() -> Iterator[DataPipeline]:
    """ Iterator with all the available data pipelines """
    for pipeline_name in get_pipeline_names():
        yield DataPipeline.load(pipeline_name)


def get_schema() -> Dict[str, type]:
    """ Outputs all known column schemas """
    schema: Dict[str, type] = {}
    for pipeline in get_pipelines():
        schema.update(pipeline.schema)
    return schema
