parameters: (package)
return_statement: return {package: filepaths}
docstring: Return all files under the root package, that are not in a
      package themselves.
docstring_summary: Return all files under the root package, that are not in a
      package themselves.
docstring_tokens: Return all files under the root package that are not in a package themselves .
function: def get_package_data(package):
      """
      Return all files under the root package, that are not in a
      package themselves.
      """
      walk = [(dirpath.replace(package + os.sep, '', 1), filenames)
              for dirpath, dirnames, filenames in os.walk(package)
              if not os.path.exists(os.path.join(dirpath, '__init__.py'))]
  
      filepaths = []
      for base, filenames in walk:
          filepaths.extend([os.path.join(base, filename)
                            for filename in filenames])
      return {package: filepaths}
function_tokens: def get_package_data ( package ) : walk = [ ( dirpath . replace ( package + os . sep , '' , 1 ) , filenames ) for dirpath , dirnames , filenames in os . walk ( package ) if not os . path . exists ( os . path . join ( dirpath , '__init__.py' ) ) ] filepaths = [ ] for base , filenames in walk : filepaths . extend ( [ os . path . join ( base , filename ) for filename in filenames ] ) return { package : filepaths }