old_contents: #!/usr/bin/env python
  """Generate fixtures."""
  
  import os
  import json
  import numpy as np
  from scipy import special
  
  # Get the file path:
  FILE = os.path.realpath( __file__ )
  
  # Extract the directory in which this file resides:
  DIR = os.path.dirname( FILE )
  
  def gen( x, name ):
      """Generates fixture data and writes them to file.
  
      # Arguments
  
      * `x`: domain
      * `name::str`: output filename
  
      # Examples
  
      ``` python
      python> x = linspace( -1000, 1000, 2001 );
      python> gen( x, \"./data.json\" );
      ```
      """
      y = special.logit( x )
  
      # Store data to be written to file as a dictionary:
      data = {
          "x": x.tolist(),
          "expected": y.tolist()
      }
  
      # Based on the script directory, create an output filepath:
      filepath = os.path.join( DIR, name )
  
      with open( filepath, 'w' ) as outfile:
          json.dump( data, outfile )
  
  def main():
      """Generate fixture data."""
      x = np.linspace( 0.0001, 0.25, 500 )
      gen( x, "small.json" )
  
      x = np.linspace( 0.25, 0.75, 500 )
      gen( x, "medium.json" )
  
      x = np.linspace( 0.75, 0.9999, 500 )
      gen( x, "large.json" )
  
  
  if __name__=="__main__":
      main()
  
new_contents: #!/usr/bin/env python
  """Generate fixtures."""
  
  import os
  import json
  import numpy as np
  from scipy import special
  
  
  # Get the file path:
  FILE = os.path.realpath(__file__)
  
  # Extract the directory in which this file resides:
  DIR = os.path.dirname(FILE)
  
  
  def gen(x, name):
      """Generates fixture data and writes them to file.
  
      # Arguments
  
      * `x`: domain
      * `name::str`: output filename
  
      # Examples
  
      ``` python
      python> x = linspace( -1000, 1000, 2001 );
      python> gen( x, \"./data.json\" );
      ```
      """
      y = special.logit(x)
  
      # Store data to be written to file as a dictionary:
      data = {
          "x": x.tolist(),
          "expected": y.tolist()
      }
  
      # Based on the script directory, create an output filepath:
      filepath = os.path.join(DIR, name)
  
      with open(filepath, 'w') as outfile:
          json.dump(data, outfile)
  
  def main():
      """Generate fixture data."""
      x = np.linspace(0.0001, 0.25, 500)
      gen(x, "small.json")
  
      x = np.linspace(0.25, 0.75, 500)
      gen(x, "medium.json")
  
      x = np.linspace(0.75, 0.9999, 500)
      gen(x, "large.json")
  
  
  if __name__ == "__main__":
      main()
  
subject: Remove whitespace