<commit_before>import os
import logging
import requests
from .processor import OmniPathLiganReceptorProcessor, \
    OmniPathModificationProcessor
try:
    from pypath import main as pypath_main, data_formats
    has_pypath = True
except ImportError:
    has_pypath = False

logger = logging.getLogger("omnipath")


op_url = 'http://omnipathdb.org'


def process_from_web():
    ptm_json = _get_modifications()
    return OmniPathModificationProcessor(ptm_json)
<commit_msg>Inform user PyPath is not available<commit_after>import os
import logging
import requests
from .processor import OmniPathLiganReceptorProcessor, \
    OmniPathModificationProcessor

logger = logging.getLogger("omnipath")

try:
    from pypath import main as pypath_main, data_formats
    has_pypath = True
except ImportError:
    logger.info('PyPath is not available')
    pypath_main, data_formats = None, None
    has_pypath = False


op_url = 'http://omnipathdb.org'


def process_from_web():
    ptm_json = _get_modifications()
    return OmniPathModificationProcessor(ptm_json)

{'fraction_non_alphanumeric': 0.06811731315042574, 'fraction_numerical': 0.0, 'mean_word_length': 4.977401129943503, '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': '3195230', 'n_tokens_mistral': 347, 'n_tokens_neox': 338, 'n_words': 83}