<commit_before>from abc import ABCMeta, abstractmethod

import requests

from bs4 import BeautifulSoup


def make_soup(url):
		response = requests.get(url)
		soup = BeautifulSoup(response.text, 'html.parser')
		return soup


class Aggregator(metaclass=ABCMeta):

	base_url = ''

	@abstractmethod
	def extract(self):
		pass

	@abstractmethod
	def generate_url(self):
		pass

<commit_msg>Define new abstract methods and namedtuple<commit_after>import collections
from abc import ABCMeta, abstractmethod

import requests
from bs4 import BeautifulSoup


Article = collections.namedtuple('Article', ['source', 'title', 'url', 'author',
											 'date_published'])


def make_soup(url):
		response = requests.get(url)
		soup = BeautifulSoup(response.text, 'html.parser')
		return soup


class Aggregator(metaclass=ABCMeta):

	base_url = ''
	source = ''

	@abstractmethod
	def extract(self):
		pass

	@abstractmethod
	def generate_url(self):
		pass

	@abstractmethod
	def crawl(self, *args, **kwargs):
		pass

	@abstractmethod
	def get_author(self, *args, **kwargs):
		pass

	@abstractmethod
	def get_date_published(self, *args, **kwargs):
		pass

	@abstractmethod
	def get_title(self, *args, **kwargs):
		pass

    
{'fraction_non_alphanumeric': 0.10726072607260725, 'fraction_numerical': 0.0016501650165016502, 'mean_word_length': 4.831730769230769, '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': '6372387', 'n_tokens_mistral': 436, 'n_tokens_neox': 391, 'n_words': 101}