original_docstring: this filter code for example demo
docstring: this filter code for example demo
docstring_tokens: this filter code for example demo
code: def filters(cls, sex=None, email=None, page_number=1, items_per_page=20):
          """this filter code for example demo"""
          if not sex and not email:
              qs = cls.select()
          elif sex and email:
              qs = cls.select().where(cls.sex == sex, cls.email.contains(email))
          elif sex:
              qs = cls.select().where(cls.sex == sex)
          elif email:
              qs = cls.select().where(cls.email.contains(email))
          cls.result = qs.order_by(cls.id).paginate(page_number, items_per_page)
          return cls
code_tokens: def filters ( cls , sex = None , email = None , page_number = 1 , items_per_page = 20 ) : if not sex and not email : qs = cls . select ( ) elif sex and email : qs = cls . select ( ) . where ( cls . sex == sex , cls . email . contains ( email ) ) elif sex : qs = cls . select ( ) . where ( cls . sex == sex ) elif email : qs = cls . select ( ) . where ( cls . email . contains ( email ) ) cls . result = qs . order_by ( cls . id ) . paginate ( page_number , items_per_page ) return cls
short_docstring: this filter code for example demo
short_docstring_tokens: this filter code for example demo
comment: """this filter code for example demo"""