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

public class CustomLobbyManager : NetworkLobbyManager
{
    public ObjectCollection playerCollection;

    public override void OnStartHost()
    {
        base.OnStartHost();

        // When we have started ourself as a host we need to transition to the players view..
        var go = transform.Find("MainView").gameObject;
        go.SetActive(false);
        var po = transform.Find("PlayersView").gameObject;
        po.SetActive(true);
    }

    public override GameObject OnLobbyServerCreateLobbyPlayer(NetworkConnection conn, short playerControllerId)
    {
        GameObject lobbyPlayer = Instantiate(lobbyPlayerPrefab.gameObject) as GameObject;

        var cn = new ObjectCollection.CollectionNode();
        cn.transform = lobbyPlayer.transform;
        playerCollection.NodeList.Add(cn);
        playerCollection.UpdateCollection();
        return lobbyPlayer;
    }

    // Use this for initialization
    void Start ()
    {
		
	}
	
	// Update is called once per frame
	void Update ()
    {
		
	}
}<commit_msg>added some overrides in networklobbymanager<commit_after>﻿using HUX.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Networking;

public class CustomLobbyManager : NetworkLobbyManager
{
    public ObjectCollection playerCollection;

    public override void OnStartHost()
    {
        base.OnStartHost();
        SwitchToPlayerVIew();
    }

    private void SwitchToPlayerVIew()
    {
        // When we have started ourself as a host we need to transition to the players view..
        var go = transform.Find("MainView").gameObject;
        go.SetActive(false);
        var po = transform.Find("PlayersView").gameObject;
        po.SetActive(true);
    }

    private void SwitchToMainVIew()
    {
        // When we have started ourself as a host we need to transition to the players view..
        var go = transform.Find("PlayersView").gameObject;
        go.SetActive(false);
        var po = transform.Find("MainView").gameObject;
        po.SetActive(true);
    }

    public override GameObject OnLobbyServerCreateLobbyPlayer(NetworkConnection conn, short playerControllerId)
    {
        GameObject lobbyPlayer = Instantiate(lobbyPlayerPrefab.gameObject) as GameObject;

        var cn = new ObjectCollection.CollectionNode();
        cn.transform = lobbyPlayer.transform;
        playerCollection.NodeList.Add(cn);
        playerCollection.UpdateCollection();
        return lobbyPlayer;
    }

    public override void OnLobbyStartClient(NetworkClient lobbyClient)
    {
        SwitchToPlayerVIew();
    }

    // Use this for initialization
    void Start ()
    {
		
	}
	
	// Update is called once per frame
	void Update ()
    {
		
	}
}
{'fraction_non_alphanumeric': 0.08157621845834774, 'fraction_numerical': 0.0, 'mean_word_length': 2.9698216735253773, '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': '5882581', 'n_tokens_mistral': 780, 'n_tokens_neox': 749, 'n_words': 205}