<commit_before># coding=utf-8

"""This module, lines_of_code.py, works with the abstraction of a single line of code."""

from quasar_source_code.universal_code import useful_file_operations as ufo


class LineOfCode(object):
	"""Represents a single line of code."""

	def __init__(self, line_of_code_as_text):
		self._text = line_of_code_as_text

	@property
	def text(self):
		"""Returns the text representation of this line of code."""
		return self._text

	def is_blank_line(self) -> bool:
		"""Returns a boolean indicating if this line of code is actually just an empty line."""
		print('LINE : ')
		print(self._text)
		print(len(self._text))
		if self._text and self._text.strip():
			return False
		return True


def get_lines_of_code_from_file(file_path):
	"""Returns a list of LineOfCode objects representing the contents of the file."""
	x = []
	with open(file_path) as file:
		for l in file:
			x.append(l)
	return x<commit_msg>building code management tools 13<commit_after># coding=utf-8

"""This module, lines_of_code.py, works with the abstraction of a single line of code."""

from quasar_source_code.universal_code import useful_file_operations as ufo


class LineOfCode(object):
	"""Represents a single line of code."""

	def __init__(self, line_of_code_as_text):
		self._text = line_of_code_as_text

	@property
	def text(self):
		"""Returns the text representation of this line of code."""
		return self._text

	def is_blank_line(self) -> bool:
		"""Returns a boolean indicating if this line of code is actually just an empty line."""
		if self._text and self._text.strip():
			return False
		return True


def get_lines_of_code_from_file(file_path):
	"""Returns a list of LineOfCode objects representing the contents of the file."""
	x = []
	with open(file_path) as file:
		for l in file:
			x.append(LineOfCode(l))
	return x
{'fraction_non_alphanumeric': 0.09815618221258135, 'fraction_numerical': 0.0021691973969631237, 'mean_word_length': 4.590909090909091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2327482', 'n_tokens_mistral': 621, 'n_tokens_neox': 575, 'n_words': 206}