<commit_before>from scrapy.command import ScrapyCommand
from scrapy.core.manager import scrapymanager
from scrapy.replay import Replay
from scrapy.conf import settings


class Command(ScrapyCommand):
    def syntax(self):
        return "[options] [domain|url] ..."

    def short_desc(self):
        return "Run the web scraping engine from the command line"

    def add_options(self, parser):
        ScrapyCommand.add_options(self, parser)
        parser.add_option("--restrict", dest="restrict", action="store_true", help="restrict crawling only to the given urls")<commit_msg>moved options nocache and nopipeline from decobot to scrapy<commit_after>from scrapy.command import ScrapyCommand
from scrapy.core.manager import scrapymanager
from scrapy.replay import Replay
from scrapy.conf import settings


class Command(ScrapyCommand):
    def syntax(self):
        return "[options] [domain|url] ..."

    def short_desc(self):
        return "Run the web scraping engine from the command line"

    def add_options(self, parser):
        ScrapyCommand.add_options(self, parser)
        parser.add_option("--nocache", dest="nocache", action="store_true", help="disable HTTP cache")
        parser.add_option("--nopipeline", dest="nopipeline", action="store_true", help="disable scraped item pipeline")
        parser.add_option("--restrict", dest="restrict", action="store_true", help="restrict crawling only to the given urls")
{'fraction_non_alphanumeric': 0.104675505931612, 'fraction_numerical': 0.0, 'mean_word_length': 4.431818181818182, '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': '5891403', 'n_tokens_mistral': 413, 'n_tokens_neox': 393, 'n_words': 120}