<commit_before>from cms.utils.compat.dj import python_2_unicode_compatible
from django.db import models
from django.utils.translation import ugettext_lazy as _
from cms.models import CMSPlugin


@python_2_unicode_compatible
class GoogleMap(CMSPlugin):
    """
    A google maps integration
    """
    title = models.CharField(_("map title"), max_length=100, blank=True,
                             null=True)

    address = models.CharField(_("address"), max_length=150)
    zipcode = models.CharField(_("zip code"), max_length=30)
    city = models.CharField(_("city"), max_length=100)

    content = models.CharField(_("additional content"), max_length=255,
                         blank=True,
                         help_text=_('Displayed under address in the bubble.'))
    ZOOM_LEVELS = map(lambda c: (c, str(c)), range(22))
    zoom = models.PositiveSmallIntegerField(_("zoom level"),
                                            choices=ZOOM_LEVELS, default=13)

    lat = models.DecimalField(_('latitude'), max_digits=10, decimal_places=6,
                              null=True, blank=True,
                              help_text=_('Use latitude & longitude to fine '
                                          'tune the map position.'))
    lng = models.DecimalField(_('longitude'), max_digits=10, decimal_places=6,
                              null=True, blank=True)

    route_planer_title = models.CharField(_("route planer title"),
                               max_length=150, blank=True, null=True,
                               default=_('Calculate your fastest way to here'))
    route_planer = models.BooleanField(_("route planer"), default=False)

    width = models.CharField(_('width'), max_length=6, default='100%',
                           help_text=_('Plugin width (in pixels or percent).'))
    height = models.CharField(_('height'), max_length=6, default='400px',
                              help_text=_('Plugin height (in pixels).'))

    info_window = models.BooleanField(_('info window'), default=True,
                                      help_text=_('Show textbox over marker'))
    scrollwheel = models.BooleanField(_('scrollsheel zooming'), default=True)<commit_msg>Google Maps: Fixed typo and added help text for scrollwheel option<commit_after>from cms.utils.compat.dj import python_2_unicode_compatible
from django.db import models
from django.utils.translation import ugettext_lazy as _
from cms.models import CMSPlugin


@python_2_unicode_compatible
class GoogleMap(CMSPlugin):
    """
    A google maps integration
    """
    title = models.CharField(_("map title"), max_length=100, blank=True,
                             null=True)

    address = models.CharField(_("address"), max_length=150)
    zipcode = models.CharField(_("zip code"), max_length=30)
    city = models.CharField(_("city"), max_length=100)

    content = models.CharField(_("additional content"), max_length=255,
                         blank=True,
                         help_text=_('Displayed under address in the bubble.'))
    ZOOM_LEVELS = map(lambda c: (c, str(c)), range(22))
    zoom = models.PositiveSmallIntegerField(_("zoom level"),
                                            choices=ZOOM_LEVELS, default=13)

    lat = models.DecimalField(_('latitude'), max_digits=10, decimal_places=6,
                              null=True, blank=True,
                              help_text=_('Use latitude & longitude to fine '
                                          'tune the map position.'))
    lng = models.DecimalField(_('longitude'), max_digits=10, decimal_places=6,
                              null=True, blank=True)

    route_planer_title = models.CharField(_("route planer title"),
                               max_length=150, blank=True, null=True,
                               default=_('Calculate your fastest way to here'))
    route_planer = models.BooleanField(_("route planer"), default=False)

    width = models.CharField(_('width'), max_length=6, default='100%',
                           help_text=_('Plugin width (in pixels or percent).'))
    height = models.CharField(_('height'), max_length=6, default='400px',
                              help_text=_('Plugin height (in pixels).'))

    info_window = models.BooleanField(_('info window'), default=True,
                                      help_text=_('Show textbox over marker'))
    scrollwheel = models.BooleanField(_('scrollwheel'), default=True,
                          help_text=_('Enable scrollwheel zooming on the map'))
{'fraction_non_alphanumeric': 0.11228301472203911, 'fraction_numerical': 0.016260162601626018, 'mean_word_length': 2.3129548762736536, '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': '6589392', 'n_tokens_mistral': 1248, 'n_tokens_neox': 1175, 'n_words': 274}