<commit_before>"""
Functions common to both the weconnect and fitbit modules.\n
Created by <NAME> on 2/16/2018\n
Last modified by <NAME> on 2/20/2018
"""

import logging, requests

logging.basicConfig(filename="pt.log", level=logging.DEBUG, 
		format="%(asctime)s: %(message)s", datefmt="%m/%d/%Y %I:%M:%S %p")

def is_valid(response):
	"""
	Return a Boolean value indicating the success of an HTTP request.
	"""
	if response.status_code >= 300:<commit_msg>I think I just made cosmetic changes.<commit_after>"""
Functions common to both the weconnect and fitbit modules.\n
Created by <NAME> on 2/16/2018\n
Last modified by <NAME> on 2/20/2018
"""

import requests

def is_valid(response):
	"""
	Return a Boolean value indicating the success of an HTTP request.
	"""
	if response.status_code >= 300:
{'fraction_non_alphanumeric': 0.13283208020050125, 'fraction_numerical': 0.042606516290726815, 'mean_word_length': 4.748201438848921, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '1736101', 'n_tokens_mistral': 285, 'n_tokens_neox': 254, 'n_words': 91}