<commit_before>#!/usr/bin/python

"""
Convert Microsoft project(s) solution file converter to cmake.
The tool designed to convert Microsoft Visual Studio .sln files with Linux C++ projects to cmake compatible file tree.
You can customize operation by overwriting Setup object with your methods.
"""

import sys
import re
import os
import os.path
import traceback

__author__  = "OpenLab: https://github.com/openlab-vn-ua"
__license__ = "MIT"
__version__ = "1.0.5"

if os.path.exists('sln2cmake_config_user.py'):
    # use sln2cmake_config_user if it exists
    from sln2cmake_config_user import Setup
else:
    # import empty setup file
    from sln2cmake_config import Setup

from mssln.Solution import Solution<commit_msg>Added ability to load user config from parent folder<commit_after>#!/usr/bin/python

"""
Convert Microsoft project(s) solution file converter to cmake.
The tool designed to convert Microsoft Visual Studio .sln files with Linux C++ projects to cmake compatible file tree.
You can customize operation by overwriting Setup object with your methods.
"""

import sys
import re
import os
import os.path
import traceback

__author__  = "OpenLab: https://github.com/openlab-vn-ua"
__license__ = "MIT"
__version__ = "1.0.5"

if os.path.exists('sln2cmake_config_user.py'):
    # use sln2cmake_config_user if it exists
    from sln2cmake_config_user import Setup
elif os.path.exists('../sln2cmake_config_user.py'):
    # use ../sln2cmake_config_user if it exists
    import imp
    SetupMod = imp.load_source('sln2cmake_config_user', '../sln2cmake_config_user.py')
    Setup = SetupMod.Setup
else:
    # import empty setup file
    from sln2cmake_config import Setup

from mssln.Solution import Solution
{'fraction_non_alphanumeric': 0.08041958041958042, 'fraction_numerical': 0.01048951048951049, 'mean_word_length': 4.485623003194888, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6363991', 'n_tokens_mistral': 544, 'n_tokens_neox': 530, 'n_words': 181}