<commit_before># -*- coding: utf-8 -*-

from django.db import models
from django.db.models.fields import FieldDoesNotExist
from django.utils.translation import ugettext_lazy as _

import reversion


class WatcherMixin(object):
    NOTIFY_LEVEL_CHOICES = (
        ("all_owned_projects", _(u"All events on my projects")),
        ("only_watching", _(u"Only events for objects i watch")),
        ("only_assigned", _(u"Only events for objects assigned to me")),
        ("only_owner", _(u"Only events for objects owned by me")),
        ("no_events", _(u"No events")),
    )

    notify_level = models.CharField(max_length=32, null=False, blank=False,
                                    default="all_owned_projects",
                                    choices=NOTIFY_LEVEL_CHOICES,
                                    verbose_name=_(u"notify level"))
    notify_changes_by_me = models.BooleanField(null=True, blank=True, default=True,
                                               verbose_name=_(u"notify changes by me"))
<commit_msg>Change default value for notify_changes_by_me for WatcherMixin<commit_after># -*- coding: utf-8 -*-

from django.db import models
from django.db.models.fields import FieldDoesNotExist
from django.utils.translation import ugettext_lazy as _

import reversion


class WatcherMixin(object):
    NOTIFY_LEVEL_CHOICES = (
        ("all_owned_projects", _(u"All events on my projects")),
        ("only_watching", _(u"Only events for objects i watch")),
        ("only_assigned", _(u"Only events for objects assigned to me")),
        ("only_owner", _(u"Only events for objects owned by me")),
        ("no_events", _(u"No events")),
    )

    notify_level = models.CharField(max_length=32, null=False, blank=False,
                                    default="all_owned_projects",
                                    choices=NOTIFY_LEVEL_CHOICES,
                                    verbose_name=_(u"notify level"))
    notify_changes_by_me = models.BooleanField(null=True, blank=True, default=False,
                                               verbose_name=_(u"notify changes by me"))

{'fraction_non_alphanumeric': 0.10377358490566038, 'fraction_numerical': 0.002830188679245283, 'mean_word_length': 2.4264943457189014, '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': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2634111', 'n_tokens_mistral': 592, 'n_tokens_neox': 573, 'n_words': 144}