original_docstring: Filter plants according to filtered data
docstring: Filter plants according to filtered data
docstring_tokens: Filter plants according to filtered data
code: def filter_plants(rich_plants: list, filter_data: dict) -> list:
      """Filter plants according to filtered data"""
      plant_pass_grade = {}
      
      # pass grade calculation
      for plant in rich_plants:
          plant_pass_grade[plant] = 0
          for attr_name in filter_data:
              for val in filter_data[attr_name]:
                  if getattr(plant.attrs, attr_name) == val:
                      plant_pass_grade[plant] += 1
      
      # check grade 
      filter_plants = []
      for plant in plant_pass_grade:
          if plant_pass_grade[plant] == len(filter_data):
              filter_plants.append(plant)
  
      return filter_plants
code_tokens: def filter_plants ( rich_plants : list , filter_data : dict ) -> list : plant_pass_grade = { } for plant in rich_plants : plant_pass_grade [ plant ] = 0 for attr_name in filter_data : for val in filter_data [ attr_name ] : if getattr ( plant . attrs , attr_name ) == val : plant_pass_grade [ plant ] += 1 filter_plants = [ ] for plant in plant_pass_grade : if plant_pass_grade [ plant ] == len ( filter_data ) : filter_plants . append ( plant ) return filter_plants
short_docstring: Filter plants according to filtered data
short_docstring_tokens: Filter plants according to filtered data
comment: """Filter plants according to filtered data"""$SEP$# pass grade calculation$SEP$# check grade 