<commit_before># imports - compatibility imports
from __future__ import absolute_import

# imports - third-party imports
import cv2

# imports - module imports
from spockpy.config import BaseConfig

class Capture(cv2.VideoCapture):
	def __init__(self, device = BaseConfig.DEFAULT_CAPTURE_DEVICE_ID, *args, **kwargs):
		self.super    = super(Capture, self)
		self.deviceID = device

		self.super.__init__(device = device, *args, **kwargs)

	def read(self):
		_, frame = self.super.read()

		return frame
<commit_msg>removed video capture extensions<commit_after># imports - compatibility imports
from __future__ import absolute_import

# imports - third-party imports
import cv2

# imports - module imports
from spockpy.config import BaseConfig

class Capture(object):
	def __init__(self, device = BaseConfig.DEFAULT_CAPTURE_DEVICE_ID, *args, **kwargs):
		self.super    = super(Capture, self)
		self.deviceID = device

		self.capture  = cv2.VideoCapture(self.deviceID)

	def read(self):
		_, frame = self.capture.read()

		return frame

{'fraction_non_alphanumeric': 0.09565217391304348, 'fraction_numerical': 0.003864734299516908, 'mean_word_length': 4.787709497206704, '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': '7281557', 'n_tokens_mistral': 326, 'n_tokens_neox': 310, 'n_words': 87}