<commit_before># coding=utf-8
__author__ = "AstroPrint Product Team <<EMAIL>>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'

try:
	import gi
	gi.require_version('Gst', '1.0')
except ValueError:
	raise ImportError

import logging

from collections import deque

from threading import Event, Thread, Condition, Lock

from gi.repository import Gst

from .bins.photo_capture import PhotoCaptureBin
from .util import waitToReachState

#
#  Base Class for GStreamer Pipeline management
#

class GstBasePipeline(object):
	def __init__(self, device, size, onFatalError, mainLoop, debugLevel):

		if not Gst.init_check(None):
			raise ImportError

		if debugLevel > 0:<commit_msg>added documentation link<commit_after># coding=utf-8
__author__ = "AstroPrint Product Team <<EMAIL>>"
__license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'

#Gst Documenation at: https://lazka.github.io/pgi-docs/

try:
	import gi
	gi.require_version('Gst', '1.0')
except ValueError:
	raise ImportError

import logging

from collections import deque

from threading import Event, Thread, Condition, Lock

from gi.repository import Gst

from .bins.photo_capture import PhotoCaptureBin
from .util import waitToReachState

#
#  Base Class for GStreamer Pipeline management
#

class GstBasePipeline(object):
	def __init__(self, device, size, onFatalError, mainLoop, debugLevel):

		if not Gst.init_check(None):
			raise ImportError

		if debugLevel > 0:
{'fraction_non_alphanumeric': 0.08957219251336898, 'fraction_numerical': 0.0053475935828877, 'mean_word_length': 5.211618257261411, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '4229150', 'n_tokens_mistral': 492, 'n_tokens_neox': 471, 'n_words': 147}