<commit_before># -*- coding: utf-8 -*-

import clare.common
from . import scraping


class Marshalled(object):

    def __init__(self, scraper, record_factory):

        """
        Wrap the scrape behavior to return a sequence of marshalled
        records instead.

        Parameters
        ----------
        scraper : clare.watching.scraping.interfaces.IDisposable and
                  clare.watching.scraping.interfaces.IScraper
        record_factory : clare.application.factories.Record
        """

        self._scraper = scraper
        self._record_factory = record_factory

    def scrape(self, url):

        """
        Returns<commit_msg>ME-653: Changed Marshalled scraper name to "Marshalling".<commit_after># -*- coding: utf-8 -*-

import clare.common
from . import scraping


class Marshalling(object):

    def __init__(self, scraper, record_factory):

        """
        Wrap the scrape behavior to return a sequence of marshalled
        records instead.

        Parameters
        ----------
        scraper : clare.watching.scraping.interfaces.IDisposable and
                  clare.watching.scraping.interfaces.IScraper
        record_factory : clare.application.factories.Record
        """

        self._scraper = scraper
        self._record_factory = record_factory

    def scrape(self, url):

        """
        Returns
{'fraction_non_alphanumeric': 0.09653647752394989, 'fraction_numerical': 0.0036845983787767134, 'mean_word_length': 2.12183908045977, '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': '955259', 'n_tokens_mistral': 393, 'n_tokens_neox': 362, 'n_words': 87}