third_party/google_input_tools/builder.py
def process_file(filename):
  """Extracts provided and required namespaces.

  Description:
    Scans Javascript file for provided and required namespaces.

  Args:
    filename: name of the file to process.

  Returns:
    Pair of lists, where the first list contains namespaces provided by the file
    and the second contains a list of requirements.
  """

  provides = []
  requires = []
  with open(filename, 'r') as file_handle:
    for line in file_handle:
      if re.match(require_regex, line):
        requires.append(re.search(require_regex, line).group(1))
      if re.match(provide_regex, line):
        provides.append(re.search(provide_regex, line).group(1))
  return provides, requires
Extracts provided and required namespaces.

  Description:
    Scans Javascript file for provided and required namespaces.

  Args:
    filename: name of the file to process.

  Returns:
    Pair of lists, where the first list contains namespaces provided by the file
    and the second contains a list of requirements.
  
Extracts provided and required namespaces.
Description:
Scans Javascript file for provided and required namespaces.
Extracts provided and required namespaces . Description : Scans Javascript file for provided and required namespaces .
def process_file(filename):
  provides = []
  requires = []
  with open(filename, 'r') as file_handle:
    for line in file_handle:
      if re.match(require_regex, line):
        requires.append(re.search(require_regex, line).group(1))
      if re.match(provide_regex, line):
        provides.append(re.search(provide_regex, line).group(1))
  return provides, requires
def process_file ( filename ) : provides = [ ] requires = [ ] with open ( filename , 'r' ) as file_handle : for line in file_handle : if re . match ( require_regex , line ) : requires . append ( re . search ( require_regex , line ) . group ( 1 ) ) if re . match ( provide_regex , line ) : provides . append ( re . search ( provide_regex , line ) . group ( 1 ) ) return provides , requires
Extracts provided and required namespaces.
Extracts provided and required namespaces .
"""Extracts provided and required namespaces.

  Description:
    Scans Javascript file for provided and required namespaces.

  Args:
    filename: name of the file to process.

  Returns:
    Pair of lists, where the first list contains namespaces provided by the file
    and the second contains a list of requirements.
  """
Pair of lists, where the first list contains namespaces provided by the file
and the second contains a list of requirements.
Pair of lists where the first list contains namespaces provided by the file and the second contains a list of requirements .
filename
name of the file to process.
name of the file to process .