<commit_before>from django.contrib.sitemaps import Sitemap

from tours.models import Tour
from contacts.models import Contact
from gallery.models import Gallery
from review.models import Review
from offer.models import Offer


class TodoSitemap(Sitemap):
    changefreq = "weekly"
    priority = 0.5

    def items(self):
        return Tour.objects.all()


class ContactSitemap(Sitemap):
    changefreq = "weekly"
    priority = 0.5

    def items(self):
        return Contact.objects.all()


class GallerySitemap(Sitemap):
    changefreq = "weekly"
    priority = 0.5

    def items(self):
        return Gallery.objects.all()


class OfferSitemap(Sitemap):
    changefreq = "weekly"
    priority = 0.5

    def items(self):
        return Offer.objects.all()


class ReviewSitemap(Sitemap):
    changefreq = "weekly"
    priority = 0.5

    def items(self):
        return Review.objects.all()


sitemaps = {
    'tour': TodoSitemap(),
    'contact': ContactSitemap(),
    'gallery': GallerySitemap(),
    'offer': OfferSitemap(),
    'review': ReviewSitemap(),
}<commit_msg>sitremap<commit_after>from django.contrib.sitemaps import Sitemap
from django.core.urlresolvers import reverse

from tours.models import Tour
from contacts.models import Contact
from gallery.models import Gallery
from review.models import Review
from offer.models import Offer


class StaticSitemap(Sitemap):
    priority = 0.6
    changefreq = 'weekly'

    def items(self):
        return ['home']

    def location(self, item):
        return reverse(item)


class TourSitemap(Sitemap):
    changefreq = "weekly"
    priority = 0.5

    def items(self):
        return Tour.objects.all()


class ContactSitemap(Sitemap):
    changefreq = "weekly"
    priority = 0.5

    def items(self):
        return Contact.objects.all()


class GallerySitemap(Sitemap):
    changefreq = "weekly"
    priority = 0.5

    def items(self):
        return Gallery.objects.all()


class OfferSitemap(Sitemap):
    changefreq = "weekly"
    priority = 0.5

    def items(self):
        return Offer.objects.all()


class ReviewSitemap(Sitemap):
    changefreq = "weekly"
    priority = 0.5

    def items(self):
        return Review.objects.all()


sitemaps = {
    'static': StaticSitemap(),
    'tour': TourSitemap(),
    'contact': ContactSitemap(),
    'gallery': GallerySitemap(),
    'offer': OfferSitemap(),
    'review': ReviewSitemap(),
}
{'fraction_non_alphanumeric': 0.10986733001658375, 'fraction_numerical': 0.00912106135986733, 'mean_word_length': 3.153184165232358, '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': '7519256', 'n_tokens_mistral': 807, 'n_tokens_neox': 753, 'n_words': 191}