<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""mqaprna.py - a script for running all wrapers on each PDB file in a specified directory
saves results to a CSV file.

ss_agreement is ...

The code is full of # hack and tricks.

.. warning:: Uses global variables
"""
MP_VERBOSE = False
DEBUG_MODE = False

################################################################################
import sys
sys.path.insert(0, "/Users/magnus/work/src/rna-tools/rna_tools/tools/mq/")  # ugly!
import lib.shellgraphics.shellgraphics as sg
# import mqaprna_score as mqs
import time
import os
import copy
sg.color_mode = False
from csvsort import csvsort
from lib.timex import timex
import mqaprna_config as Config
################################################################################

try:
    __file__
except:
    __file__ = 'mqaprna.py'

try:
    __version__ = get_version(__file__)
except NameError:
    __version__ = 'interactive'

import os
import sys
DIRNAME = os.path.dirname(__file__)
PARENT_DIRNAME = os.path.abspath(os.path.join(DIRNAME, os.path.pardir))
sys.path.append(DIRNAME)
sys.path.append(PARENT_DIRNAME)
import csv
import imp

from optparse import OptionParser, OptionGroup
from ctypes import c_int

#import lib.rmsd_calc.rmsd_calc as rmsd_calc
from multiprocessing import Pool, Lock, Value

try:
    from wrappers.mqap_score.mqap_score import MqapScore
except ImportError:
    pass

# super-verbose logging
if MP_VERBOSE:
    import multiprocessing
    logger = multiprocessing.log_to_stderr()
    logger.setLevel(multiprocessing.SUBDEBUG)

# create wrappers for all the methods
MODULES = {}<commit_msg>mq/mqaprnascore.py: take version number from RT<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""mqaprna.py - a script for running all wrapers on each PDB file in a specified directory
saves results to a CSV file.

ss_agreement is ...

The code is full of # hack and tricks.

.. warning:: Uses global variables
"""
MP_VERBOSE = False
DEBUG_MODE = False

################################################################################
import sys
sys.path.insert(0, "/Users/magnus/work/src/rna-tools/rna_tools/tools/mq/")  # ugly!
import lib.shellgraphics.shellgraphics as sg
# import mqaprna_score as mqs
import time
import os
import copy
sg.color_mode = False
from csvsort import csvsort
from lib.timex import timex
import mqaprna_config as Config
################################################################################

try:
    __file__
except:
    __file__ = 'mqaprna.py'

#try:
#    __version__ = get_version(__file__)
#except NameError:
#    __version__ = 'interactive'

import rna_tools
__version__ = rna_tools.__version__


import os
import sys
DIRNAME = os.path.dirname(__file__)
PARENT_DIRNAME = os.path.abspath(os.path.join(DIRNAME, os.path.pardir))
sys.path.append(DIRNAME)
sys.path.append(PARENT_DIRNAME)
import csv
import imp

from optparse import OptionParser, OptionGroup
from ctypes import c_int

#import lib.rmsd_calc.rmsd_calc as rmsd_calc
from multiprocessing import Pool, Lock, Value

try:
    from wrappers.mqap_score.mqap_score import MqapScore
except ImportError:
    pass

# super-verbose logging
if MP_VERBOSE:
    import multiprocessing
    logger = multiprocessing.log_to_stderr()
    logger.setLevel(multiprocessing.SUBDEBUG)

# create wrappers for all the methods
MODULES = {}
{'fraction_non_alphanumeric': 0.17276241451085342, 'fraction_numerical': 0.0011894142134998512, 'mean_word_length': 4.98576512455516, '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': '346068', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1063, 'n_words': 301}