code: def prepare_all_data(data_dir, block_pct_tokens_thresh=0.1):
      
      gs_blocks_dir = os.path.join(data_dir, GOLD_STANDARD_BLOCKS_DIRNAME)
      gs_blocks_filenames = get_filenames(
          gs_blocks_dir, full_path=False, match_regex=re.escape(GOLD_STANDARD_BLOCKS_EXT))
      gs_blocks_fileroots = (
          re.search(r'(.+)' + re.escape(GOLD_STANDARD_BLOCKS_EXT), gs_blocks_filename).group(1)
          for gs_blocks_filename in gs_blocks_filenames)
  
      return [prepare_data(data_dir, fileroot, block_pct_tokens_thresh)
              for fileroot in gs_blocks_fileroots]
docs: Prepare data for all HTML + gold standard blocks examples in ``data_dir``.
  
      Args:
          data_dir (str)
          block_pct_tokens_thresh (float): must be in [0.0, 1.0]
  
      Returns:
          List[Tuple[str, List[float, int, List[str]], List[float, int, List[str]]]]
  
      See Also:
          :func:`prepare_data`