old_contents: from saw import Saw
  from saw.item import Item
  
  text = "The next JavaScript specification is moving towards completion. \
  TC39, the technical committee charged with creating ES.next (also known \
  as ES Harmony, and sometimes ES 6) has already tentatively approved \
  a number of proposals and there are a bunch more straw men awaiting approval. \
  TC39 includes some of the finest minds in JavaScript (not least, Brendan Eich himself) \
  but as Jeremy Ashkenas famously cautioned \"JavaScript is too important to be left \
  to the experts\". They need our help."
  
  #text = 'First sentence. Two, serios text?'
  
  saw = Saw.load(text)
  """
  for p in saw.paragraphs:
  	for s in p.sentences:
  		for b in s.blocks:
  			for w in b.words:
  				print '-----'
  
  for a in saw.words:
  	print '*-----'
  
  for a in saw.sentences.words:
  	print '&&----'
  
  for a in saw.sentences[0].words:
  	print '0----'
  """
  #print saw
  
  #print result
  
  
  import datetime
  
  with open('test.txt', 'r') as content_file:
      text = content_file.read()
  
  st = datetime.datetime.now()
  
  tr = text * 1
  #Sentences.parse(tr)
  saw = Saw.load(tr)
  et = datetime.datetime.now()
  print saw.sentences[2:6].blocks[2:].words
  print '-------'
  print saw.blocks[12]
  print '-------'
  print saw.blocks[12].words[:-2]
  print '-------'
  print saw.blocks[12].words[:-2:2]
  
  if str(saw.blocks.words) == str(saw.words):
  	print 'FUCK ME'
  
  
  print ' ---- each ---'
  kt = saw.sentences.each().blocks.pure().words[:3].get()
  for s in kt:
  	print '** ' + str(s)
  print ' ------- '
  
  
  import sys
  
  st = datetime.datetime.now()
  a = []
  _size = 0
  for k in xrange(10000):
  	i = Item()
  	_size += sys.getsizeof(i)
  	a.append(i)
  et = datetime.datetime.now()
  
  print "Memory: %s" % str(sys.getsizeof(a) + _size)
  print "Time: %s" % str(et - st)
  #print repr(saw)
new_contents: from saw import Saw
  from saw.item import Item
  import datetime
  import sys
  
  with open('test.txt', 'r') as content_file:
      text = content_file.read()
  
  start_time = datetime.datetime.now()
  
  saw = Saw.load(text)
  
  end_time = datetime.datetime.now()
  print 'Time of text load - ' + str(end_time - start_time)
  
  print saw.sentences[2:6].blocks[2:].words
  print '-------'
  print saw.blocks[12]
  print '-------'
  print saw.blocks[12].words[:-2]
  print '-------'
  print saw.blocks[12].words[:-2:2]
  
  if str(saw.blocks.words) == str(saw.words):
  	print 'str(saw.blocks.words) == str(saw.words)'
  print '-------'
  
  print ' ---- each ---'
  kt = saw.sentences.each().blocks.pure().words[:3].get()
  for s in kt:
  	print '** ' + str(s)
  print ' ------- '
  
  start_time = datetime.datetime.now()
  a = []
  _size = 0
  for k in xrange(10000):
  	i = Item()
  	_size += sys.getsizeof(i)
  	a.append(i)
  end_time = datetime.datetime.now()
  
  print "Memory: %s" % str(sys.getsizeof(a) + _size)
  print "Time: %s" % str(end_time - start_time)
  print '---------'
  
  # should work
  saw.sentences.lower().words == saw.sentences.each().this.lower().get().words == saw.sentences.each().lower().get().words
  
  # get first block each paragraphs, save to variable, and lower it and save to another variable
  result = None
  result2 = saw.paragraphs.each().blocks[0].save_to(result).lower().get()
subject: Clean sample.py