parameters: (log_str)
return_statement: return (images, errors)
docstring: From:
      Errors for mydir/009151.jpg: 1e+06 m
      extract the image name and the error value.
docstring_summary: From:
      Errors for mydir/009151.jpg: 1e+06 m
      extract the image name and the error value.
docstring_tokens: From : Errors for mydir / 009151 . jpg : 1e + 06 m extract the image name and the error value .
function: def parse_localization_log_str(log_str):
      """From:
      Errors for mydir/009151.jpg: 1e+06 m
      extract the image name and the error value.
      """
  
      images = []
      errors = []
      for line in log_str.split("\n"):
          m = re.match("^Errors\s+for\s+(.*?.jpg):\s*(.*?)\s", line)
          if not m:
              continue
          image = m.group(1)
          error = float(m.group(2))
          images.append(image)
          errors.append(error)
  
      return (images, errors)
function_tokens: def parse_localization_log_str ( log_str ) : images = [ ] errors = [ ] for line in log_str . split ( "\n" ) : m = re . match ( "^Errors\s+for\s+(.*?.jpg):\s*(.*?)\s" , line ) if not m : continue image = m . group ( 1 ) error = float ( m . group ( 2 ) ) images . append ( image ) errors . append ( error ) return ( images , errors )