<commit_before>from __future__ import absolute_import
from __future__ import print_function
from __future__ import division

from ds_queue import Queue


def breadth_first_search(graph_dict, start_vertex):
	queue = Queue()
	queue.enqueue(start_vertex)

    visited_set = set()

	while queue:
		path = queue.dequeue()
		vertex = path[-1]
		yield vertex, path
		for neighbor in graph_dict[vertex] - visited_set:
			visited_set.add(neighbor)
			queue.enqueue(neighbor)



def main():
	pass

if __name__ == '__main__':
	main()<commit_msg>Add traverse()<commit_after>from __future__ import absolute_import
from __future__ import print_function
from __future__ import division

from ds_queue import Queue


def breadth_first_search(graph_dict, start_vertex):
	queue = Queue()
	queue.enqueue(start_vertex)

    visited_set = set()

	while queue:
		path = queue.dequeue()
		vertex = path[-1]
		yield vertex, path
		for neighbor in graph_dict[vertex] - visited_set:
			visited_set.add(neighbor)
			queue.enqueue(neighbor)


def traverse():
	pass


def main():
	pass

if __name__ == '__main__':
	main()
{'fraction_non_alphanumeric': 0.08882783882783883, 'fraction_numerical': 0.0018315018315018315, 'mean_word_length': 4.8449197860962565, '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': '40564', 'n_tokens_mistral': 391, 'n_tokens_neox': 360, 'n_words': 97}