<commit_before># adapted from http://djangosnippets.org/snippets/2236/
import math
from itertools import chain
from django.forms.util import flatatt

from django import forms
from django.forms import widgets
from django.utils.encoding import force_unicode
from django.utils.html import conditional_escape
from django.utils.safestring import mark_safe

class ColumnCheckboxSelectMultiple(forms.CheckboxSelectMultiple):
    """
    Widget that renders multiple-select checkboxes in columns.
    Constructor takes number of columns and css class to apply<commit_msg>Changes references to django.forms.utils.<commit_after># adapted from http://djangosnippets.org/snippets/2236/
import math
from itertools import chain
from django.forms.utils import flatatt

from django import forms
from django.forms import widgets
from django.utils.encoding import force_unicode
from django.utils.html import conditional_escape
from django.utils.safestring import mark_safe

class ColumnCheckboxSelectMultiple(forms.CheckboxSelectMultiple):
    """
    Widget that renders multiple-select checkboxes in columns.
    Constructor takes number of columns and css class to apply
{'fraction_non_alphanumeric': 0.05281385281385281, 'fraction_numerical': 0.006926406926406926, 'mean_word_length': 5.531073446327683, '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': '749635', 'n_tokens_mistral': 306, 'n_tokens_neox': 289, 'n_words': 108}