<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
code to create an HTML proof sheet from a folder full of isaw.image packages
"""

from arglogger import arglogger
import datetime
import dominate
from dominate.tags import *
import logging
import os
import package
import pytz
import sys
from validate_path import validate_path

METAKEYS = [
    'status',
    'isaw-publish-cleared',
    'license',
    'license-release-verified'
    'flickr-url'
]

class Proof():
    """
    HTML proof sheet for isaw.images
    """

    @arglogger
    def __init__(self, path=None):
        logger = logging.getLogger(sys._getframe().f_code.co_name)
        if path is not None:
            self.__generate__(path)
        else:
            logger.warning("Proof.init called with path=None")
<commit_msg>fix logic bug dealing with flickr url<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
code to create an HTML proof sheet from a folder full of isaw.image packages
"""

from arglogger import arglogger
import datetime
import dominate
from dominate.tags import *
import logging
import os
import package
import pytz
import sys
from validate_path import validate_path

METAKEYS = [
    'status',
    'isaw-publish-cleared',
    'license',
    'license-release-verified',
    'flickr-url'
]

class Proof():
    """
    HTML proof sheet for isaw.images
    """

    @arglogger
    def __init__(self, path=None):
        logger = logging.getLogger(sys._getframe().f_code.co_name)
        if path is not None:
            self.__generate__(path)
        else:
            logger.warning("Proof.init called with path=None")

{'fraction_non_alphanumeric': 0.10349050826699327, 'fraction_numerical': 0.001224739742804654, 'mean_word_length': 3.0147420147420148, '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': '3485158', 'n_tokens_mistral': 498, 'n_tokens_neox': 487, 'n_words': 152}