<commit_before># -*- coding: utf-8 -*-
#	Some properties of the graph. 
#	Most of these operations are taken from the basic Networkx package. 

import networkx as nx
import operator


class Analysis:
	"""
	Some important properties of the graph. 

	Arguments:
		graph -  A networkx graph or digraph. 
	"""
	def __init__(self, graph):
		self.g = graph

	def ConnectedComponents(self):
		"""
		Compute the connected components of the graph.

		Returns:
			a list containing lists of nodes in each connected components. 
		"""	

		gr = self.g
		conn_comps = nx.connected_component_subgraphs(gr, copy=True)<commit_msg>Update properties.py<commit_after># -*- coding: utf-8 -*-
#	Some properties of the graph. 
#	Most of these operations are taken from the basic Networkx package. 

import networkx as nx
import operator


class Properties:
	"""
	Some important properties of the graph. 

	Arguments:
		graph -  A networkx graph or digraph. 
	"""
	def __init__(self, graph):
		self.g = graph

	def ConnectedComponents(self):
		"""
		Compute the connected components of the graph.

		Returns:
			a list containing lists of nodes in each connected components. 
		"""	

		gr = self.g
		conn_comps = nx.connected_component_subgraphs(gr, copy=True)
{'fraction_non_alphanumeric': 0.08649959579628133, 'fraction_numerical': 0.0016168148746968471, 'mean_word_length': 3.5347985347985347, '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': '4873295', 'n_tokens_mistral': 404, 'n_tokens_neox': 364, 'n_words': 140}