<commit_before>﻿using UnityEngine;
using System.Collections;
using Voxelgon;
using Voxelgon.EventSystems;
using Voxelgon.ShipEditor;

namespace Voxelgon.ShipEditor {

public class ShipEditor : MonoBehaviour, IModeChangeHandler {

		private Wall tempWall;

		private ArrayList nodes = new ArrayList();


		public void OnModeChange (ModeChangeEventData eventData) {
		}

		public void Start() {
			tempWall = new Wall();
		}

		public void Update() {
			if (Input.GetButtonDown("ChangeFloor")) {
				transform.Translate(Vector3.up * 2 * (int) Input.GetAxis("ChangeFloor"));
			}
		}



		public bool AddNode(Vector3 node) {
			if (ValidNode(node) && !ContainsNode(node)) {
				nodes.Add(node);
				return true;
			}
			return false;
		}

		public bool RemoveNode(Vector3 node) {
			if (nodes.Contains(node)) {
				nodes.Remove(node);
				return true;
			}
			return false;

		}

		public bool ValidNode(Vector3 node) {
			return tempWall.ValidVertex(node);
		}
<commit_msg>simplify AddNode method<commit_after>﻿using UnityEngine;
using System.Collections;
using Voxelgon;
using Voxelgon.EventSystems;
using Voxelgon.ShipEditor;

namespace Voxelgon.ShipEditor {

public class ShipEditor : MonoBehaviour, IModeChangeHandler {

		private Wall tempWall;

		private ArrayList nodes = new ArrayList();


		public void OnModeChange (ModeChangeEventData eventData) {
		}

		public void Start() {
			tempWall = new Wall();
		}

		public void Update() {
			if (Input.GetButtonDown("ChangeFloor")) {
				transform.Translate(Vector3.up * 2 * (int) Input.GetAxis("ChangeFloor"));
			}
		}



		public bool AddNode(Vector3 node) {
			if (ValidNode(node)) {
				nodes.Add(node);
				return true;
			}
			return false;
		}

		public bool RemoveNode(Vector3 node) {
			if (nodes.Contains(node)) {
				nodes.Remove(node);
				return true;
			}
			return false;

		}

		public bool ValidNode(Vector3 node) {
			return (tempWall.ValidVertex(node) && !ContainsNode(node));
		}

{'fraction_non_alphanumeric': 0.1105424769703173, 'fraction_numerical': 0.00511770726714432, 'mean_word_length': 3.75669099756691, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5661452', 'n_tokens_mistral': 747, 'n_tokens_neox': 629, 'n_words': 150}