<commit_before>#
from ifind.search.engine import EngineFactory
from ifind.search.query import Query
import ifind.search.engines as engines

#
engine = EngineFactory('twitter', cache_type='engine')
engine2 = EngineFactory('twitter', cache_type='engine')
#
#
query3 = Query("court", top=5, result_type='recent')
#
#
#

print engines.__path__[0]<commit_msg>made basic tests to demonstrate new Factory functionality<commit_after>from ifind.search import EngineFactory
from ifind.search import Query
from ifind.search import Response


engine = EngineFactory('twitter')
query = Query("test harness", top=3)
#response = engine.search(query)

# iterate through supported engines
for engine in EngineFactory():
    print engine

# list of supported engines
print EngineFactory().engines()

# supported engine containment
print 'twitter' in EngineFactory()
print 'yahoo' in EngineFactory()
{'fraction_non_alphanumeric': 0.10227272727272728, 'fraction_numerical': 0.005681818181818182, 'mean_word_length': 6.594827586206897, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '117039', 'n_tokens_mistral': 244, 'n_tokens_neox': 237, 'n_words': 78}