def list_example_ids()

in project/paperbench/paperbench/judge/judge_eval/registry.py [0:0]


    def list_example_ids(self) -> list[str]:
        """
        List all example run IDs available in the registry, sorted alphabetically.
        Returns IDs in format "paper_id/example_name".
        """
        examples_dir = self.get_examples_dir()
        example_ids = []

        # Iterate through paper directories
        for paper_dir in sorted(examples_dir.iterdir()):
            if not paper_dir.is_dir() or paper_dir.name.startswith("."):
                continue

            # Iterate through example directories within each paper
            for example_dir in sorted(paper_dir.iterdir()):
                if not example_dir.is_dir() or example_dir.name.startswith("."):
                    continue

                example_ids.append(f"{paper_dir.name}/{example_dir.name}")

        return example_ids