<commit_before>import logging
import os
from collections import Mapping, defaultdict
from copy import deepcopy
from itertools import chain

from funcy import first

from dvc import dependency, output

from ..dependency import ParamsDependency
from .exceptions import StageNameUnspecified, StageNotFound

logger = logging.getLogger(__name__)


DEFAULT_PARAMS_FILE = ParamsDependency.DEFAULT_PARAMS_FILE


def resolve_paths(path, wdir=None):
    path = os.path.abspath(path)<commit_msg>Import ABC from collections.abc for Python 3 compatibility. (#3772)<commit_after>import logging
import os
from collections import defaultdict
from collections.abc import Mapping
from copy import deepcopy
from itertools import chain

from funcy import first

from dvc import dependency, output

from ..dependency import ParamsDependency
from .exceptions import StageNameUnspecified, StageNotFound

logger = logging.getLogger(__name__)


DEFAULT_PARAMS_FILE = ParamsDependency.DEFAULT_PARAMS_FILE


def resolve_paths(path, wdir=None):
    path = os.path.abspath(path)
{'fraction_non_alphanumeric': 0.052430886558627265, 'fraction_numerical': 0.004766444232602479, 'mean_word_length': 6.241379310344827, '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': '3994222', 'n_tokens_mistral': 292, 'n_tokens_neox': 281, 'n_words': 98}