<commit_before>from django.conf import settings
from django.db import models
from meetup.api import MeetupClient
import datetime

STATUSES = [(s, s) for s in ('past','pending','upcoming')]
API_KEY = getattr(settings, 'MEETUP_KEY', None)

class Account(models.Model):
    key = models.CharField(max_length=128)
    description = models.CharField(max_length=128)
    slug = models.SlugField()
    container_id = models.CharField(max_length=16, blank=True)
    sync = models.BooleanField(default=True)
    
    def __unicode__(self):
        return self.slug
    
    def past_events(self):
        return self.events.filter(status='past')
    
    def upcoming_events(self):
        return self.events.filter(status='upcoming')

class EventManager(models.Manager):
    def past(self):
        return Event.objects.filter(status='past')
    def upcoming(self):
        return Event.objects.filter(status='upcoming')
<commit_msg>update models to add meetup_url on account<commit_after>from django.conf import settings
from django.db import models
from meetup.api import MeetupClient
import datetime

STATUSES = [(s, s) for s in ('past','pending','upcoming')]
API_KEY = getattr(settings, 'MEETUP_KEY', None)

class Account(models.Model):
    key = models.CharField(max_length=128)
    description = models.CharField(max_length=128)
    slug = models.SlugField()
    container_id = models.CharField(max_length=16, blank=True)
    meetup_url = models.URLField(verify_exists=False, blank=True)
    sync = models.BooleanField(default=True)
    
    def __unicode__(self):
        return self.slug
    
    def past_events(self):
        return self.events.filter(status='past')
    
    def upcoming_events(self):
        return self.events.exclude(status='past')

class EventManager(models.Manager):
    def past(self):
        return Event.objects.filter(status='past')
    def upcoming(self):
        return Event.objects.exclude(status='past')

{'fraction_non_alphanumeric': 0.11397627643115008, 'fraction_numerical': 0.008251676121712223, 'mean_word_length': 4.052083333333333, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6839356', 'n_tokens_mistral': 608, 'n_tokens_neox': 583, 'n_words': 129}