<commit_before>﻿
// Game shared data & core communication between important stuff.

// @matnesis
// 2015/10/19 04:29 PM


using UnityEngine;

public class Game : MonoBehaviour
{
    // ~
    // Important default data.
    public static float defaultOrthographicSize = 0;


    // ~
    // Tag.Player
    private static Transform _player;
    public static Transform player
    {
        get
        {
            if (_player == null)
            {
                GameObject go = GameObject.FindGameObjectWithTag(Tag.Player);
                if (go) _player = go.transform;
            }

            return _player;
        }
    }


    // ~
    private static Camera2D _camera2d;
    public static Camera2D camera2D
    {
        get
        {
            if (_camera2d == null) _camera2d = GameObject.FindObjectOfType<Camera2D>();
            return _camera2d;
        }
    }


    // ~
    private static Whitescreen _whitescreen;
    public static Whitescreen whitescreen
    {
        get
        {
            if (_whitescreen == null) _whitescreen = GameObject.FindObjectOfType<Whitescreen>();
            return _whitescreen;
        }
    }


    // ~
    private static Sounds _sounds;
    public static Sounds sounds
    {
        get
        {
            if (_sounds == null) _sounds = GameObject.FindObjectOfType<Sounds>();
            return _sounds;
        }
    }


    // ~
    private static Palette _palette;
    public static Palette palette
    {
        get
        {
            if (_palette == null) _palette = GameObject.FindObjectOfType<Palette>();
            return _palette;
        }
    }


    // ~
    private static Statistics _statistics;
    public static Statistics statistics
    {
        get
        {
            if (_statistics == null) _statistics = GameObject.FindObjectOfType<Statistics>();
            return _statistics;
        }
    }


    // ~
    private static Timeflux _timeflux;
    public static Timeflux timeflux
    {
        get
        {
            if (_timeflux == null) _timeflux = GameObject.FindObjectOfType<Timeflux>();
            return _timeflux;
        }
    }
}
<commit_msg>A particles manager is needed, of course<commit_after>﻿
// Game shared data & core communication between important stuff.

// @matnesis
// 2015/10/19 04:29 PM


using UnityEngine;

public class Game : MonoBehaviour
{
    // ^
    // Important default data.
    public static float defaultOrthographicSize = 0;


    // ^
    // Tag.Player
    private static Transform _player;
    public static Transform player
    {
        get
        {
            if (_player == null)
            {
                GameObject go = GameObject.FindGameObjectWithTag(Tag.Player);
                if (go) _player = go.transform;
            }

            return _player;
        }
    }


    // ^
    private static Main _main;
    public static Main main
    {
        get
        {
            if (_main == null) _main = GameObject.FindObjectOfType<Main>();
            return _main;
        }
    }


    // ^
    private static Camera2D _camera2d;
    public static Camera2D camera2D
    {
        get
        {
            if (_camera2d == null) _camera2d = GameObject.FindObjectOfType<Camera2D>();
            return _camera2d;
        }
    }


    // ^
    private static Whitescreen _whitescreen;
    public static Whitescreen whitescreen
    {
        get
        {
            if (_whitescreen == null) _whitescreen = GameObject.FindObjectOfType<Whitescreen>();
            return _whitescreen;
        }
    }


    // ^
    private static Sounds _sounds;
    public static Sounds sounds
    {
        get
        {
            if (_sounds == null) _sounds = GameObject.FindObjectOfType<Sounds>();
            return _sounds;
        }
    }


    // ^
    private static Palette _palette;
    public static Palette palette
    {
        get
        {
            if (_palette == null) _palette = GameObject.FindObjectOfType<Palette>();
            return _palette;
        }
    }


    // ^
    private static Statistics _statistics;
    public static Statistics statistics
    {
        get
        {
            if (_statistics == null) _statistics = GameObject.FindObjectOfType<Statistics>();
            return _statistics;
        }
    }


    // ^
    private static Timeflux _timeflux;
    public static Timeflux timeflux
    {
        get
        {
            if (_timeflux == null) _timeflux = GameObject.FindObjectOfType<Timeflux>();
            return _timeflux;
        }
    }


    // ^
    private static Particles _particles;
    public static Particles particles
    {
        get
        {
            if (_particles == null) _particles = GameObject.FindObjectOfType<Particles>();
            return _particles;
        }
    }
}

{'fraction_non_alphanumeric': 0.08227452614038742, 'fraction_numerical': 0.008748177463028535, 'mean_word_length': 1.5998917162966972, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '5785039', 'n_tokens_mistral': 1397, 'n_tokens_neox': 1310, 'n_words': 328}