This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!python | |
| from google.appengine.api import mail | |
| from google.appengine.api import urlfetch | |
| try: | |
| import json | |
| except ImportError: | |
| try: | |
| import simplejson as json | |
| except ImportError: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def report_memory_leaked(f): | |
| """ Counts objects allocated in memory before and after the | |
| decorated function and reports the results. If you decorate | |
| a function like | |
| @report_memory_leaked | |
| def myfunc(): | |
| pass # do stuff | |
| It will report objects by type that were leaked or created. | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {'query': {'bool': {'must': | |
| [{'field': | |
| {'abstract': | |
| {'query': 'Kyle AND "body odor"'}}}, | |
| {'field': | |
| {'title': | |
| {'query': 'heat OR wave'}}}]}}} |
NewerOlder