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

public class RotationDemo : MonoBehaviour
{

    private MeshRenderer mesh;

    void Start()
    {
        mesh = this.GetComponent<MeshRenderer>();
        mesh.material.color = new Color(1.0f, 0.0f, 0.0f);
    }

    void Update()
    {

    }


    public void NetworkIt_Message(object m)
    {
        //TODO your code here
        Message message = (Message) m;

        int count = 0;
        int.TryParse(message.GetField("count"), out count);

        this.transform.rotation = Quaternion.Euler(0, count * 10, 0);
    }

    public void NetworkIt_Connect(object args)
    {
        EventArgs eventArgs = (EventArgs) args;
        mesh.material.color = new Color(0.0f, 1.0f, 0.0f);
    }

    public void NetworkIt_Disconnect(object args)
    {
        EventArgs eventArgs = (EventArgs)args;
        mesh.material.color = new Color(1.0f, 0.0f, 0.0f);
    }

    public void NetworkIt_Error(object err)
    {
        System.IO.ErrorEventArgs error = (System.IO.ErrorEventArgs) err;
        Debug.LogError(error);
    }<commit_msg>Made ErrorEventARgs less annoying<commit_after>﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using NetworkIt;
using System;
using System.IO;

public class RotationDemo : MonoBehaviour
{

    private MeshRenderer mesh;

    void Start()
    {
        mesh = this.GetComponent<MeshRenderer>();
        mesh.material.color = new Color(1.0f, 0.0f, 0.0f);
    }

    void Update()
    {

    }


    public void NetworkIt_Message(object m)
    {
        //TODO your code here
        Message message = (Message) m;

        int count = 0;
        int.TryParse(message.GetField("count"), out count);

        this.transform.rotation = Quaternion.Euler(0, count * 10, 0);
    }

    public void NetworkIt_Connect(object args)
    {
        EventArgs eventArgs = (EventArgs) args;
        mesh.material.color = new Color(0.0f, 1.0f, 0.0f);
    }

    public void NetworkIt_Disconnect(object args)
    {
        EventArgs eventArgs = (EventArgs)args;
        mesh.material.color = new Color(1.0f, 0.0f, 0.0f);
    }

    public void NetworkIt_Error(object err)
    {
        ErrorEventArgs error = (ErrorEventArgs) err;
        Debug.LogError(error);
    }
{'fraction_non_alphanumeric': 0.10746268656716418, 'fraction_numerical': 0.019616204690831557, 'mean_word_length': 2.5172413793103448, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3099096', 'n_tokens_mistral': 770, 'n_tokens_neox': 719, 'n_words': 175}