parameters: (properties, context)
return_statement: return result
docstring: Removes all conditional properties which conditions are not met
          For those with met conditions, removes the condition. Properies
          in conditions are looked up in 'context'
docstring_summary: Removes all conditional properties which conditions are not met
          For those with met conditions, removes the condition. Properies
          in conditions are looked up in 'context'
docstring_tokens: Removes all conditional properties which conditions are not met For those with met conditions removes the condition . Properies in conditions are looked up in context
function: def evaluate_conditionals_in_context (properties, context):
      """ Removes all conditional properties which conditions are not met
          For those with met conditions, removes the condition. Properies
          in conditions are looked up in 'context'
      """
      base = []
      conditional = []
  
      for p in properties:
          if p.condition():
              conditional.append (p)
          else:
              base.append (p)
  
      result = base[:]
      for p in conditional:
  
          # Evaluate condition
          # FIXME: probably inefficient
          if all(x in context for x in p.condition()):
              result.append(Property(p.feature(), p.value()))
  
      return result
function_tokens: def evaluate_conditionals_in_context ( properties , context ) : base = [ ] conditional = [ ] for p in properties : if p . condition ( ) : conditional . append ( p ) else : base . append ( p ) result = base [ : ] for p in conditional : # Evaluate condition # FIXME: probably inefficient if all ( x in context for x in p . condition ( ) ) : result . append ( Property ( p . feature ( ) , p . value ( ) ) ) return result