<commit_before>#!/usr/bin/python

"""
callfileexceptions.py

@author:	<NAME>
@email:		<EMAIL>
@date:		10-19-09
@license:	GPLv3 (http://www.gnu.org/licenses/gpl-3.0.txt)

This file contains all of the custom exceptions defined to help users deal with errors in
their code.
"""

import exceptions

class NoTrunkTypeDefined(exceptions.Exception):
	"""
	Exception for use with the CallFile class.
	"""

	def __str__(self):
		print ': No trunk_type was defined!'

class NoTrunkNameDefined(exceptions.Exception):
	"""
	Exception for use with the CallFile class.
	"""

	def __str__(self):
		print ': No trunk_name was defined!'

class NoNumberDefined(exceptions.Exception):
	"""
	Exception for use with the CallFile class.
	"""

	def __str__(self):
		print ': No number was defined!'

class NoActionDefined(exceptions.Exception):
	"""
	Exception for use with the CallFile class.
	"""

	def __str__(self):
		print ': No action was defined! (You must choose either an application or context to execute when the call is answered.)'

class IncorrectTime(exceptions.Exception):
	"""
	Exception for use with the CallFile class.
	"""

	def __str__(self):
		print ': Incorrect time specified! (The time must be a legitimate datetime object.)'

class NoAsteriskPermission(exceptions.Exception):
	"""
	Exception for use with the CallFile class.
	"""

	def __str__(self):
		print ': Unable to send the callfile to Asterisk!'

class NoPermissionException(exceptions.Exception):
	"""
	Exception for use with the CallFile class.
	"""

	def __str__(self):
		print ': No permissions to change ownership of the file!'

class NoUserException(exceptions.Exception):
	"""
	Exception for use with the CallFile class.
	"""

	def __str__(self):
		print ': No user found! (You must choose a legitimate user on the system to change the callfile ownership to.)'

# Just incase someone runs this file as a standalone.
if __name__ == '__main__':
	print 'You have gotten the pycall library installed. Check the demos/ directory for help getting started with pycall!'<commit_msg>Removing redundant comments.<commit_after>#!/usr/bin/python
##
# @author	<NAME>
# @email	<EMAIL>
# @license	GPLv3 (http://www.gnu.org/licenses/gpl-3.0.txt)
#
# This file contains all of the custom exceptions defined to help users deal
# with errors in their code.
##

import exceptions

class NoTrunkTypeDefined(exceptions.Exception):
	def __str__(self):
		print ': No trunk_type was defined!'

class NoTrunkNameDefined(exceptions.Exception):
	def __str__(self):
		print ': No trunk_name was defined!'

class NoNumberDefined(exceptions.Exception):
	def __str__(self):
		print ': No number was defined!'

class NoActionDefined(exceptions.Exception):
	def __str__(self):
		print ': No action was defined! (You must choose either an application or context to execute when the call is answered.)'

class IncorrectTime(exceptions.Exception):
	def __str__(self):
		print ': Incorrect time specified! (The time must be a legitimate datetime object.)'

class NoAsteriskPermission(exceptions.Exception):
	def __str__(self):
		print ': Unable to send the callfile to Asterisk!'

class NoPermissionException(exceptions.Exception):
	def __str__(self):
		print ': No permissions to change ownership of the file!'

class NoUserException(exceptions.Exception):
	def __str__(self):
		print ': No user found! (You must choose a legitimate user on the system to change the callfile ownership to.)'

if __name__ == '__main__':
	print 'You have gotten the pycall library installed. Check the demos/ directory for help getting started with pycall!'
{'fraction_non_alphanumeric': 0.09890725693471561, 'fraction_numerical': 0.0033622863547212102, 'mean_word_length': 4.814332247557004, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4526263', 'n_tokens_mistral': 1092, 'n_tokens_neox': 1040, 'n_words': 397}