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

namespace EPTUI
{
    public static class TransportUtil
    {
        private static readonly TransportManager Tm = Singleton<TransportManager>.instance;

        public static bool IsTransportLineHidden(ushort lineID)
        {
            if ((Tm.m_lines.m_buffer[lineID].m_flags & TransportLine.Flags.Hidden) != TransportLine.Flags.None)
                return true;
            return false;
        }

        public static void HideTransportLine(ushort lineID)
        {
            Tm.m_lines.m_buffer[lineID].m_flags |= TransportLine.Flags.Hidden;
			Tm.m_lines.m_buffer[lineID].m_flags &= ~TransportLine.Flags.Created;
        }
        public static void ShowTransportLine(ushort lineID)
        {
            Tm.m_lines.m_buffer[lineID].m_flags &= ~TransportLine.Flags.Hidden;
			Tm.m_lines.m_buffer[lineID].m_flags |= TransportLine.Flags.Created;
        }

        public static void SelectTransportLine(ushort lineID)
        {
            Tm.m_lines.m_buffer[lineID].m_flags |= TransportLine.Flags.Selected;
        }

        public static void DeselectTransportLine(ushort lineID)
        {
            Tm.m_lines.m_buffer[lineID].m_flags &= ~TransportLine.Flags.Selected;
        }
        public static TransportInfo.TransportType GetTransportLineType(ushort lineID)
        {
            return Tm.m_lines.m_buffer[lineID].Info.m_transportType;
        }

        public static string GetLineName(ushort lineID)
        {
            return Tm.GetLineName(lineID);
        }

        public static Color GetLineColor(ushort lineID)
        {
            return Tm.GetLineColor(lineID);
        }

        public static uint GetStopCount(ushort lineID)
        {
            return (uint)Tm.m_lines.m_buffer[lineID].CountStops(lineID);
        }<commit_msg>Minor fixups.<commit_after>﻿using ColossalFramework;
using System.Collections.Generic;
using UnityEngine;

namespace EPTUI
{
    public static class TransportUtil
    {
        private static readonly TransportManager Tm = Singleton<TransportManager>.instance;

        public static bool IsTransportLineHidden(ushort lineID)
        {
            if ((Tm.m_lines.m_buffer[lineID].m_flags & TransportLine.Flags.Hidden) != TransportLine.Flags.None)
                return true;
            return false;
        }

        public static void HideTransportLine(ushort lineID)
        {
            Tm.m_lines.m_buffer[lineID].m_flags |= TransportLine.Flags.Hidden;
            Tm.m_lines.m_buffer[lineID].m_flags &= ~TransportLine.Flags.Created;
        }

        public static void ShowTransportLine(ushort lineID)
        {
            Tm.m_lines.m_buffer[lineID].m_flags &= ~TransportLine.Flags.Hidden;
            Tm.m_lines.m_buffer[lineID].m_flags |= TransportLine.Flags.Created;
        }

        public static void SelectTransportLine(ushort lineID)
        {
            Tm.m_lines.m_buffer[lineID].m_flags |= TransportLine.Flags.Selected;
        }

        public static void DeselectTransportLine(ushort lineID)
        {
            Tm.m_lines.m_buffer[lineID].m_flags &= ~TransportLine.Flags.Selected;
        }
        public static TransportInfo.TransportType GetTransportLineType(ushort lineID)
        {
            return Tm.m_lines.m_buffer[lineID].Info.m_transportType;
        }

        public static string GetLineName(ushort lineID)
        {
            return Tm.GetLineName(lineID);
        }

        public static Color GetLineColor(ushort lineID)
        {
            return Tm.GetLineColor(lineID);
        }

        public static uint GetStopCount(ushort lineID)
        {
            return (uint)Tm.m_lines.m_buffer[lineID].CountStops(lineID);
        }
{'fraction_non_alphanumeric': 0.08481786758840734, 'fraction_numerical': 0.0, 'mean_word_length': 2.3469750889679717, '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': '5313338', 'n_tokens_mistral': 1105, 'n_tokens_neox': 1084, 'n_words': 183}