<commit_before># -*- coding: utf-8 -*-
# Copyright (c) 2015, Frappe Technologies and contributors
# For license information, please see license.txt

from __future__ import unicode_literals
import frappe
from frappe.model.document import Document

class EmailGroupMember(Document):
	def after_delete(self):
		print("*"*50, "delete")
		email_group = frappe.get_doc('Email Group', self.email_group)
		email_group.update_total_subscribers()

	def after_insert(self):
		print("*"*50, "add")
		email_group = frappe.get_doc('Email Group', self.email_group)
		email_group.update_total_subscribers()

def after_doctype_insert():
	frappe.db.add_unique("Email Group Member", ("email_group", "email"))
<commit_msg>fix: remove print statements<commit_after># -*- coding: utf-8 -*-
# Copyright (c) 2015, <NAME> and contributors
# For license information, please see license.txt

from __future__ import unicode_literals
import frappe
from frappe.model.document import Document

class EmailGroupMember(Document):
	def after_delete(self):
		email_group = frappe.get_doc('Email Group', self.email_group)
		email_group.update_total_subscribers()

	def after_insert(self):
		email_group = frappe.get_doc('Email Group', self.email_group)
		email_group.update_total_subscribers()

def after_doctype_insert():
	frappe.db.add_unique("Email Group Member", ("email_group", "email"))

{'fraction_non_alphanumeric': 0.11717022844509949, 'fraction_numerical': 0.010316875460574797, 'mean_word_length': 6.420765027322404, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3748919', 'n_tokens_mistral': 451, 'n_tokens_neox': 433, 'n_words': 104}