<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
gallerize
~~~~~~~~~

Create a static HTML/CSS image gallery from a bunch of images.

See README for details.

:Copyright: 2007-2013 <NAME>
:License: MIT, see LICENSE for details.
"""

from __future__ import print_function
import argparse
import codecs
from collections import defaultdict, namedtuple
import copy
try:
    from future_builtins import filter, map  # Python 2.6+
except ImportError:
    pass  # Python 3+
from itertools import islice
import os
import shutil
import subprocess
import sys

from jinja2 import Environment, FileSystemLoader


ARGS_DEFAULT_MAX_IMAGE_SIZE = '1024x1024'
ARGS_DEFAULT_MAX_THUMBNAIL_SIZE = '120x120'

IMAGE_CAPTION_EXTENSION = '.txt'
TEMPLATE_EXTENSION = '.html'
OUTPUT_HTML_EXTENSION = '.html'

PATH = os.path.dirname(os.path.abspath(__file__))
PATH_STATIC = os.path.join(PATH, 'static')
TEMPLATE_ENVIRONMENT = Environment(
    autoescape=True,
    loader=FileSystemLoader(os.path.join(PATH, 'templates')),<commit_msg>Removed unused import.<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
gallerize
~~~~~~~~~

Create a static HTML/CSS image gallery from a bunch of images.

See README for details.

:Copyright: 2007-2013 <NAME>
:License: MIT, see LICENSE for details.
"""

from __future__ import print_function
import argparse
import codecs
from collections import defaultdict, namedtuple
try:
    from future_builtins import filter, map  # Python 2.6+
except ImportError:
    pass  # Python 3+
from itertools import islice
import os
import shutil
import subprocess
import sys

from jinja2 import Environment, FileSystemLoader


ARGS_DEFAULT_MAX_IMAGE_SIZE = '1024x1024'
ARGS_DEFAULT_MAX_THUMBNAIL_SIZE = '120x120'

IMAGE_CAPTION_EXTENSION = '.txt'
TEMPLATE_EXTENSION = '.html'
OUTPUT_HTML_EXTENSION = '.html'

PATH = os.path.dirname(os.path.abspath(__file__))
PATH_STATIC = os.path.join(PATH, 'static')
TEMPLATE_ENVIRONMENT = Environment(
    autoescape=True,
    loader=FileSystemLoader(os.path.join(PATH, 'templates')),
{'fraction_non_alphanumeric': 0.10230053842388644, 'fraction_numerical': 0.02643171806167401, 'mean_word_length': 5.269938650306749, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1008561', 'n_tokens_mistral': 711, 'n_tokens_neox': 674, 'n_words': 187}