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

public class SessionText : MonoBehaviour
{

	// Use this for initialization
	void Start ()
	{
		m_pSession = H5Manager.Instance().GetServerSession();
		//pSession.m_pfOnConnect += OnConnect;
		//pSession.m_pfOnRecv += OnRecv;
		//pSession.m_pfOnError += OnError;
		//pSession.m_pfOnClose += OnClose;
		m_pSession.m_pfOnConnect.Add(OnConnect);
		//m_pSession.m_pfOnRecv.Add(OnRecv);
		m_pSession.m_pfOnError.Add(OnError);
		m_pSession.m_pfOnClose.Add(OnClose);

		//m_pSession.RegistMessage(GameProto.PlayerRequestGameTest.Descriptor.FullName, OnTest);
		m_pSession.RegistMessage(typeof(GameProto.PlayerRequestGameTest).FullName, OnTest);
	}
	
	// Update is called once per frame
	void Update ()
	{
		
	}

	public void OnConnect()
	{
		m_textText.text = "onconnect";

		GameProto.PlayerRequestGameTest oTest = new GameProto.PlayerRequestGameTest();

		oTest.SzTest = String.Format("{0}, {1}, {2}, {3}, {4}",
			"sessionobject.cs", 83, "SessionObject::OnConnect",
			ToString(), DateTime.Now.ToLocalTime().ToString());
<commit_msg>只能手写了<commit_after>﻿using System;
using System.Collections.Generic;
using System.Text;
using UnityEngine;

public class SessionText : MonoBehaviour
{

	// Use this for initialization
	void Start ()
	{
		m_pSession = H5Manager.Instance().GetServerSession();
		//pSession.m_pfOnConnect += OnConnect;
		//pSession.m_pfOnRecv += OnRecv;
		//pSession.m_pfOnError += OnError;
		//pSession.m_pfOnClose += OnClose;
		m_pSession.m_pfOnConnect.Add(OnConnect);
		//m_pSession.m_pfOnRecv.Add(OnRecv);
		m_pSession.m_pfOnError.Add(OnError);
		m_pSession.m_pfOnClose.Add(OnClose);

		//m_pSession.RegistMessage(GameProto.PlayerRequestGameTest.Descriptor.FullName, OnTest);
		//m_pSession.RegistMessage(typeof(GameProto.PlayerRequestGameTest).FullName, OnTest);
		m_pSession.RegistMessage("GameProto.PlayerRequestGameTest", OnTest);
	}
	
	// Update is called once per frame
	void Update ()
	{
		
	}

	public void OnConnect()
	{
		m_textText.text = "onconnect";

		GameProto.PlayerRequestGameTest oTest = new GameProto.PlayerRequestGameTest();

		oTest.SzTest = String.Format("{0}, {1}, {2}, {3}, {4}",
			"sessionobject.cs", 83, "SessionObject::OnConnect",
			ToString(), DateTime.Now.ToLocalTime().ToString());

{'fraction_non_alphanumeric': 0.137398024903392, 'fraction_numerical': 0.006869901245169601, 'mean_word_length': 5.0835509138381205, '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': '3516874', 'n_tokens_mistral': 877, 'n_tokens_neox': 816, 'n_words': 130}