original_docstring: 
      Filter function filtering by file ending
      :param ftypes: whitelist of filetypes
      :return:
      
docstring: Filter function filtering by file ending
docstring_tokens: Filter function filtering by file ending
code: def filter_file_by_ending(ftypes):
      """
      Filter function filtering by file ending
      :param ftypes: whitelist of filetypes
      :return:
      """
  
      def _filter(file_path, category):
          ftype = file_path.rsplit('.', 1)[-1]
          if ftype.lower() in ftypes:
              return dict(path=file_path, category=(category,) if isinstance(category, str) else tuple(category))
          else:
              return None
  
      return _filter
code_tokens: def filter_file_by_ending ( ftypes ) : def _filter ( file_path , category ) : ftype = file_path . rsplit ( '.' , 1 ) [ - 1 ] if ftype . lower ( ) in ftypes : return dict ( path = file_path , category = ( category , ) if isinstance ( category , str ) else tuple ( category ) ) else : return None return _filter
short_docstring: Filter function filtering by file ending
short_docstring_tokens: Filter function filtering by file ending
comment: """
      Filter function filtering by file ending
      :param ftypes: whitelist of filetypes
      :return:
      """