<commit_before># Copyright (c) 2011, Enthought, Ltd.
# Author: <NAME> <<EMAIL>>
# License: Modified BSD license (2-clause)

"""Entry point for pyanno UI application.

At present, the application is based on the wx backend of the traitsui library.
It also supports 2 screen formats:

* for large displays (larger than 1300x850), the main window will be
  1300 x 850 pixels large

* for small displays it will be 1024x768
"""


from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = 'wx'

import pyanno.ui.appbase.wx_utils as wx_utils
wx_utils.set_background_color_to_white()

from pyanno.ui.pyanno_ui_application import pyanno_application
import numpy

import logging

def main():
    """Create and start the application."""

    # deactivate warnings for operations like log(0.) and log(-inf), which
    # are handled correctly by pyanno
    numpy.seterr(divide='ignore', invalid='ignore')

    with pyanno_application(logging_level=logging.DEBUG) as app:
        app.open()

if __name__ == '__main__':
    main()<commit_msg>OTH: final cleanup -- logging at INFO level<commit_after># Copyright (c) 2011, Enthought, Ltd.
# Author: <NAME> <<EMAIL>>
# License: Modified BSD license (2-clause)

"""Entry point for pyanno UI application.

At present, the application is based on the wx backend of the traitsui library.
It also supports 2 screen formats:

* for large displays (larger than 1300x850), the main window will be
  1300 x 850 pixels large

* for small displays it will be 1024x768
"""


from traits.etsconfig.api import ETSConfig
ETSConfig.toolkit = 'wx'

import pyanno.ui.appbase.wx_utils as wx_utils
wx_utils.set_background_color_to_white()

from pyanno.ui.pyanno_ui_application import pyanno_application
import numpy

import logging

def main():
    """Create and start the application."""

    # deactivate warnings for operations like log(0.) and log(-inf), which
    # are handled correctly by pyanno
    numpy.seterr(divide='ignore', invalid='ignore')

    with pyanno_application(logging_level=logging.INFO) as app:
        app.open()

if __name__ == '__main__':
    main()
{'fraction_non_alphanumeric': 0.09212410501193317, 'fraction_numerical': 0.02673031026252983, 'mean_word_length': 4.430051813471502, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '4073130', 'n_tokens_mistral': 674, 'n_tokens_neox': 618, 'n_words': 233}