original_docstring: Make the solvers prepare for the problems and return available solvers.
docstring: Make the solvers prepare for the problems and return available solvers.
docstring_tokens: Make the solvers prepare for the problems and return available solvers .
code: def prepare_solvers(
      solvers: Sequence[Solver], problems: ProblemSet
  ) -> Sequence[Solver]:
      """Make the solvers prepare for the problems and return available solvers."""
      available_solvers = []
  
      for s in solvers:
          v = s.prepare(problems)
          if v:
              available_solvers.append(s)
              s.logger.info(v)
          else:
              s.logger.warning("not available")
  
      return tuple(available_solvers)
code_tokens: def prepare_solvers ( solvers : Sequence [ Solver ] , problems : ProblemSet ) -> Sequence [ Solver ] : available_solvers = [ ] for s in solvers : v = s . prepare ( problems ) if v : available_solvers . append ( s ) s . logger . info ( v ) else : s . logger . warning ( "not available" ) return tuple ( available_solvers )
short_docstring: Make the solvers prepare for the problems and return available solvers.
short_docstring_tokens: Make the solvers prepare for the problems and return available solvers .
comment: """Make the solvers prepare for the problems and return available solvers."""