<commit_before>using FmbLib;
using System;
using System.IO;
using FezEngine.Structure;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using System.Collections.Generic;

namespace FmbLib.TypeHandlers.Fez {
	public class TrileInstanceHandler : TypeHandler<TrileInstance> {

		public override object Read(BinaryReader reader, bool xnb) {
			TrileInstance obj = new TrileInstance();

			obj.Position = FmbUtil.ReadObject<Vector3>(reader, xnb, false);
			obj.TrileId = reader.ReadInt32();
			byte pPhi = reader.ReadByte();
			if (pPhi != 137) {
			obj.SetPhiLight(reader.ReadByte());
			} else {
			obj.Phi = reader.ReadSingle();
			}
			if (reader.ReadBoolean()) {
			obj.ActorSettings = FmbUtil.ReadObject<InstanceActorSettings>(reader, xnb);
			}
			obj.OverlappedTriles = FmbUtil.ReadObject<List<TrileInstance>>(reader, xnb);

			return obj;<commit_msg>TrileInstance Phi fix via GitHub webpage - 3/3<commit_after>using FmbLib;
using System;
using System.IO;
using FezEngine.Structure;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using System.Collections.Generic;

namespace FmbLib.TypeHandlers.Fez {
	public class TrileInstanceHandler : TypeHandler<TrileInstance> {

		public override object Read(BinaryReader reader, bool xnb) {
			TrileInstance obj = new TrileInstance();

			obj.Position = FmbUtil.ReadObject<Vector3>(reader, xnb, false);
			obj.TrileId = reader.ReadInt32();
			byte pPhi = reader.ReadByte();
			if (pPhi != 137) {
			obj.SetPhiLight(pPhi);
			} else {
			obj.Phi = reader.ReadSingle();
			}
			if (reader.ReadBoolean()) {
			obj.ActorSettings = FmbUtil.ReadObject<InstanceActorSettings>(reader, xnb);
			}
			obj.OverlappedTriles = FmbUtil.ReadObject<List<TrileInstance>>(reader, xnb);

			return obj;
{'fraction_non_alphanumeric': 0.11694915254237288, 'fraction_numerical': 0.007909604519774011, 'mean_word_length': 4.80655737704918, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '6950967', 'n_tokens_mistral': 642, 'n_tokens_neox': 565, 'n_words': 119}