<commit_before>import roadmaptools.inout
import geojson.feature
import networkx as nx

from typing import List, Dict
from roadmaptools.init import config

_computations = []


def compute_edge_parameters(input_filename: str, output_filename: str):
	geojson_content = roadmaptools.inout.load_geojson(input_filename)

	graph = roadmaptools.inout.load_graph(geojson_content)

	edge_map = _create_edge_map(graph)

	graph_multi_test(graph)

	_computations.append(compute_centrality)

	for computation in _computations:
		computation(graph, geojson_content, edge_map)

	roadmaptools.inout.save_geojson(geojson_content, output_filename)

<commit_msg>edge params computation  - in progress<commit_after>import roadmaptools.inout
import geojson.feature
import networkx as nx

from typing import List, Dict
from roadmaptools.init import config

_computations = []


def compute_edge_parameters(input_filename: str, output_filename: str):
	geojson_content = roadmaptools.inout.load_geojson(input_filename)

	for item in geojson_content['features']:


	# graph = roadmaptools.inout.load_graph(geojson_content)

	# edge_map = _create_edge_map(graph)

	# graph_multi_test(graph)

	# _computations.append(compute_centrality)

	# for computation in _computations:
	# 	computation(graph, geojson_content, edge_map)

	roadmaptools.inout.save_geojson(geojson_content, output_filename)


{'fraction_non_alphanumeric': 0.07315288953913679, 'fraction_numerical': 0.0, 'mean_word_length': 7.0, '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': '5436757', 'n_tokens_mistral': 462, 'n_tokens_neox': 448, 'n_words': 88}