<commit_before>#!/usr/bin/env python2
"""
Imports python packages from pypi.org

This Azure Automation runbook runs in Azure to remove a package from Azure Automation.
It requires the subscription id, resource group of the Automation account, Automation name, and package name as arguments.
Passing in * for the package name will remove all packages from the account.

Args:
    subscription_id (-s) - Subscription id of the Automation account
    resource_group (-g) - Resource group name of the Automation account
    automation_account (-a) - Automation account name
    module_name (-m) - Name of module delete. Use * to remove all packages

    Removes module pytz
    Example:
        remove_python2package.py -s xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx -g contosogroup -a contosoaccount -m pytz

Changelog:
    2018-10-04 AutomationTeam:
    -initial script

"""
import requests
import sys
import json
import getopt

def get_automation_runas_token():
    """ Returs a token that can be used to authenticate against Azure resources """<commit_msg>Fix typos<commit_after>#!/usr/bin/env python2
"""
This Azure Automation runbook runs in Azure to remove a package from Azure Automation.
It requires the subscription id, resource group of the Automation account, Automation name, and package name as arguments.
Passing in * for the package name will remove all packages from the account.

Args:
    subscription_id (-s) - Subscription id of the Automation account
    resource_group (-g) - Resource group name of the Automation account
    automation_account (-a) - Automation account name
    module_name (-m) - Name of module delete. Use * to remove all packages

    Removes module pytz
    Example:
        remove_python2package.py -s xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx -g contosogroup -a contosoaccount -m pytz

Changelog:
    2018-10-04 AutomationTeam:
    -initial script

"""
import requests
import sys
import json
import getopt

def get_automation_runas_token():
    """ Returs a token that can be used to authenticate against Azure resources """
{'fraction_non_alphanumeric': 0.0629575402635432, 'fraction_numerical': 0.009760858955588092, 'mean_word_length': 3.869358669833729, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '1545158', 'n_tokens_mistral': 587, 'n_tokens_neox': 559, 'n_words': 248}