<commit_before># -*- coding: utf-8 -*-
"""
pen.core - the basic ingredients to a great battery
"""

import sys

from clint.textui import puts, indent

from .storage import store


class ExitStatus:
    """Exit status code constants."""
    OK = 0
    ERROR = 1


def show_error(msg):
    sys.stdout.flush()
    sys.stderr.write(msg + '\n')


def cmd_list(args):
    """List all element in pen"""
    with indent(2):
        for penlist in store.data:
            puts(penlist + " (" + str(len(store.data[penlist])) + ")")


def cmd_all(args):
    """List everything recursively"""
    with indent(2):
        for penlist in store.data:
            puts(penlist)
            with indent(4, '  -'):
                for penfile in store.data[penlist]:
                    puts(penfile)


def cmd_create_list(args):
    """Creates a list"""
    name = args.get(0)
    if name:<commit_msg>changed formatting for listing notes<commit_after># -*- coding: utf-8 -*-
"""
pen.core - the basic ingredients to a great battery
"""

import sys

from clint.textui import puts, indent

from .storage import store


class ExitStatus:
    """Exit status code constants."""
    OK = 0
    ERROR = 1


def show_error(msg):
    sys.stdout.flush()
    sys.stderr.write(msg + '\n')


def cmd_list(args):
    """List all element in pen"""
    for penlist in store.data:
        puts(penlist + " (" + str(len(store.data[penlist])) + ")")


def cmd_all(args):
    """List everything recursively"""
    for penlist in store.data:
        puts(penlist)
        with indent(4, '  -'):
            for penfile in store.data[penlist]:
                puts(penfile)


def cmd_create_list(args):
    """Creates a list"""
    name = args.get(0)
    if name:
{'fraction_non_alphanumeric': 0.13929193267556586, 'fraction_numerical': 0.006964596633778294, 'mean_word_length': 2.4549098196392785, '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': '5468091', 'n_tokens_mistral': 559, 'n_tokens_neox': 544, 'n_words': 159}