<commit_before>from __future__ import absolute_import
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from django.utils.translation import ugettext_lazy as _

from . import admin
from . import models


class CMSGalleryPlugin(CMSPluginBase):

    model = models.GalleryPlugin
    inlines = [admin.ImageInline, ]
    name = _('Image gallery Plugin')
    module = 'Generiek'
    render_template = 'cmsplugin_gallery/gallery.html'

    def render(self, context, instance, placeholder):
        images = instance.image_set.all()
        grouped_images = [images[i:i + 4] for i in xrange(0, len(images.values_list('src')), 4)]<commit_msg>fix typo<commit_after>from __future__ import absolute_import
from cms.plugin_base import CMSPluginBase
from cms.plugin_pool import plugin_pool
from django.utils.translation import ugettext_lazy as _

from . import admin
from . import models


class CMSGalleryPlugin(CMSPluginBase):

    model = models.GalleryPlugin
    inlines = [admin.ImageInline, ]
    name = _('Image gallery Plugin')
    module = 'Generiek'
    render_template = 'cmsplugin_gallery/gallery.html'

    def render(self, context, instance, placeholder):
        images = instance.image_set.all()
        grouped_images = [images[i:i + 4] for i in xrange(0, len(images.values_list('image_src')), 4)]
{'fraction_non_alphanumeric': 0.09152288072018004, 'fraction_numerical': 0.00450112528132033, 'mean_word_length': 4.4227642276422765, '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': '2208636', 'n_tokens_mistral': 415, 'n_tokens_neox': 400, 'n_words': 106}