<commit_before>﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class TopicManager : MonoBehaviour 
{
	public static TopicManager instance;

	public int maxLinksPerTopic;

	public List<TopicList> topicLinks = new List<TopicList>();

	//public Dictionary<TopicName, List<TopicName>> topicLinks = new Dictionary<TopicName, List<TopicName>>();

	//public Dictionary<TopicName, Sprite> topicSprites = new Dictionary<TopicName, Sprite>();

	public List<Sprite> topicSprites = new List<Sprite>();

	void Awake(){
		instance = this;
	}
	
	public Sprite SpriteForTopic(TopicName topic){
		return topicSprites [(int)topic];
	}
}<commit_msg>Added functions to get topics<commit_after>﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class TopicManager : MonoBehaviour 
{
	public static TopicManager instance;

	public int maxLinksPerTopic;

	public List<TopicList> topicLinks = new List<TopicList>();

	//public Dictionary<TopicName, List<TopicName>> topicLinks = new Dictionary<TopicName, List<TopicName>>();

	//public Dictionary<TopicName, Sprite> topicSprites = new Dictionary<TopicName, Sprite>();

	public List<Sprite> topicSprites = new List<Sprite>();

	void Awake(){
		instance = this;
	}
	
	public Sprite SpriteForTopic(TopicName topic){
		return topicSprites [(int)topic];
	}

	public TopicList GetRelatedTopics (TopicName topic) {
		TopicList relatedTopics = topicLinks[(int)topic];
		for (int i=(relatedTopics.list.Count - 4); i > 0; i--) {
			relatedTopics.list.Add(TopicName.NOTHING);
		}
		return relatedTopics;
	}

	public TopicName GetStartingTopic() {
		return (TopicName) UnityEngine.Random.Range(1, (int)TopicName.MAX);
	}
}
{'fraction_non_alphanumeric': 0.1138353765323993, 'fraction_numerical': 0.0017513134851138354, 'mean_word_length': 5.774703557312253, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 24, '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': '7312597', 'n_tokens_mistral': 550, 'n_tokens_neox': 513, 'n_words': 133}