<commit_before>__author__ = 'leif'


def take_screen_shot(url, path, name, height, width):
    """ given the url, take a screen shot and save it to the path/name with dimensions (height, width)

    Args:
        url: string to url of web page
        path: string of where to save the image
        height: integer (size of screen shot)
        width: integer

    Returns:
        None
    """

    pass



def perform_query(query_terms):
    """ issue the query terms to bing
    Args:
        query_terms: string contain the query

    Returns:
        result: list of titles and urls in rank order

    """

    pass




<commit_msg>Added some changes to utils.<commit_after>__author__ = 'leif'

from selenium import webdriver

def take_screen_shot(url, path, name, height, width):
    """ given the url, take a screen shot and save it to the path/name with dimensions (height, width)

    Args:
        url: string to url of web page
        path: string of where to save the image
        height: integer (size of screen shot)
        width: integer

    Returns:
        None
    """


    driver = webdriver.PhantomJS()
    driver.set_window_size(width,height)
    driver.get(url)
    driver.save_screenshot(path)
    driver.quit()



def perform_query(query_terms):
    """ issue the query terms to bing
    Args:
        query_terms: string contain the query

    Returns:
        result: list of titles and urls in rank order

    """

    pass





{'fraction_non_alphanumeric': 0.07392197125256673, 'fraction_numerical': 0.0, 'mean_word_length': 2.431924882629108, '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': '5356516', 'n_tokens_mistral': 442, 'n_tokens_neox': 409, 'n_words': 167}