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

public class AtmosphericAnalyser : MonoBehaviour, IInteractable<HandActivate>
{
	public void ServerPerformInteraction(HandActivate interaction)
	{
		string toShow = "";
		var metaDataLayer = MatrixManager.AtPoint(interaction.PerformerPlayerScript.registerTile.WorldPositionServer, true).MetaDataLayer;
		if (metaDataLayer != null)
		{
			var node = metaDataLayer.Get(interaction.Performer.transform.localPosition.RoundToInt());
			if(node != null)
			{
				toShow = $"Pressure : {node.GasMix.Pressure:0.###} kPa \n"
				         + $"Temperature : {node.GasMix.Temperature:0.###} K {node.GasMix.Temperature-Atmospherics.Reactions.KOffsetC:0.###} C)" + " \n" //You want Fahrenheit? HAHAHAHA
				         + $"Total Moles of gas : {node.GasMix.Moles:0.###} \n"
				         + $"Oxygen : {node.GasMix.GasRatio(Atmospherics.Gas.Oxygen) * 100:0.###} %\n"
				         + $"Plasma : {node.GasMix.GasRatio(Atmospherics.Gas.Plasma) * 100:0.###} %\n"
				         + $"Nitrogen : {node.GasMix.GasRatio(Atmospherics.Gas.Nitrogen) * 100:0.###} %\n"
				         + $"Carbon dioxide : {node.GasMix.GasRatio(Atmospherics.Gas.CarbonDioxide) * 100:0.###} %\n";
			}
		} // $"{node.GasMix.Pressure:0.###}",
		Chat.AddExamineMsgFromServer(interaction.Performer, toShow);
	}
}<commit_msg>* removed temporary comment<commit_after>﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class AtmosphericAnalyser : MonoBehaviour, IInteractable<HandActivate>
{
	public void ServerPerformInteraction(HandActivate interaction)
	{
		string toShow = "";
		var metaDataLayer = MatrixManager.AtPoint(interaction.PerformerPlayerScript.registerTile.WorldPositionServer, true).MetaDataLayer;
		if (metaDataLayer != null)
		{
			var node = metaDataLayer.Get(interaction.Performer.transform.localPosition.RoundToInt());
			if(node != null)
			{
				toShow = $"Pressure : {node.GasMix.Pressure:0.###} kPa \n"
				         + $"Temperature : {node.GasMix.Temperature:0.###} K {node.GasMix.Temperature-Atmospherics.Reactions.KOffsetC:0.###} C)" + " \n" //You want Fahrenheit? HAHAHAHA
				         + $"Total Moles of gas : {node.GasMix.Moles:0.###} \n"
				         + $"Oxygen : {node.GasMix.GasRatio(Atmospherics.Gas.Oxygen) * 100:0.###} %\n"
				         + $"Plasma : {node.GasMix.GasRatio(Atmospherics.Gas.Plasma) * 100:0.###} %\n"
				         + $"Nitrogen : {node.GasMix.GasRatio(Atmospherics.Gas.Nitrogen) * 100:0.###} %\n"
				         + $"Carbon dioxide : {node.GasMix.GasRatio(Atmospherics.Gas.CarbonDioxide) * 100:0.###} %\n";
			}
		}
		Chat.AddExamineMsgFromServer(interaction.Performer, toShow);
	}
}
{'fraction_non_alphanumeric': 0.16296296296296298, 'fraction_numerical': 0.015185185185185185, 'mean_word_length': 3.8666666666666667, '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': '3518063', 'n_tokens_mistral': 1107, 'n_tokens_neox': 956, 'n_words': 142}