How to use the proximity.calc_proximity function in proximity

To help you get started, we’ve selected a few proximity examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github adamtornhill / maat-scripts / miner / git_proximity_analysis.py View on Github external
def read_proximities_from(revision_range):
	start_rev, end_rev = revision_range
	revs = git_interactions.read_revs(start_rev, end_rev)
	proximities = []
	for i in range(len(revs) - 1):
		first_revision = revs[i]
		revision_to_compare = revs[i+1]
		git_diff = git_interactions.read_diff_for(first_revision, revision_to_compare)
		changes = parse_changes_per_file_in(git_diff)
		proximities.append(proximity.calc_proximity(changes))
	return proximities

proximity

Mesh proximity queries based on libspatialindex and rtree, extracted from Trimesh

MIT
Latest version published 2 years ago

Package Health Score

39 / 100
Full package analysis