<commit_before>#! /usr/bin/env python
"""WebTAG Parser - functionality for extracting from the Data Book.

This class parses the databook to a more convenient JSON format for
use by :py:class:`~.WebTagData`.

"""
import argparse
import datetime
import json
from os import path<commit_msg>Explicit import for __future__.print_function<commit_after>#! /usr/bin/env python
"""WebTAG Parser - functionality for extracting from the Data Book.

This class parses the databook to a more convenient JSON format for
use by :py:class:`~.WebTagData`.

"""
from __future__ import print_function
import argparse
import datetime
import json
from os import path
{'fraction_non_alphanumeric': 0.07585139318885449, 'fraction_numerical': 0.0, 'mean_word_length': 5.281553398058253, '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': '5421974', 'n_tokens_mistral': 183, 'n_tokens_neox': 178, 'n_words': 80}