<commit_before>/*******************************************************************************
 * Copyright (c) 2014-2015 UT-Battelle, LLC.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Initial API and implementation and/or initial documentation - <NAME>,
 *   <NAME>, <NAME>, <NAME>, <NAME>,
 *   <NAME>, <NAME>, <NAME>
 *   <NAME>
 *******************************************************************************/
package org.eclipse.ice.viz.service.mesh.datastructures.test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.ice.viz.service.mesh.datastructures.BoundaryCondition;
import org.eclipse.ice.viz.service.mesh.datastructures.BoundaryConditionType;
import org.eclipse.ice.viz.service.mesh.datastructures.NekPolygonController;
import org.eclipse.ice.viz.service.mesh.datastructures.NekPolygonMesh;
import org.eclipse.ice.viz.service.mesh.datastructures.PolygonProperties;
import org.eclipse.ice.viz.service.modeling.AbstractController;
import org.eclipse.ice.viz.service.modeling.AbstractView;
import org.eclipse.ice.viz.service.modeling.EdgeController;
import org.eclipse.ice.viz.service.modeling.EdgeMesh;
import org.eclipse.ice.viz.service.modeling.FaceMesh;
import org.eclipse.ice.viz.service.modeling.VertexController;
import org.eclipse.ice.viz.service.modeling.VertexMesh;
import org.junit.Test;

/**
 * <p>
 * Tests the NekPolygon class.
 * </p>
 * 
 * @author <NAME>
 * @author <NAME>
 */
public class NekPolygonTester {

	/**
	 * <p>
	 * This operation tests the construction of the Polygon class and the
	 * functionality inherited from ICEObject.
	 * </p>
	 * 
	 */
	@Test
	public void checkCreation() {

		VertexController vertex;
		EdgeController edge;

		// We need edges and vertices to supply to created Polygons.
		ArrayList<EdgeController> edges = new ArrayList<EdgeController>();
		ArrayList<VertexController> vertices = new ArrayList<VertexController>();

		// For our test, we'll just make a triangle with one point at the origin
		// and the other two on the x and z axes at a distance of 5.
		vertices.add(new VertexController(new VertexMesh(0f, 0f, 0f),
				new AbstractView()));
		vertices.add(new VertexController(new VertexMesh(5f, 0f, 0f),
				new AbstractView()));
		vertices.add(new VertexController(new VertexMesh(0f, 0f, 5f),
				new AbstractView()));

		// Set the IDs for the vertices.<commit_msg>Ignored failing test<commit_after>/*******************************************************************************
 * Copyright (c) 2014-2015 UT-Battelle, LLC.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *   Initial API and implementation and/or initial documentation - <NAME>,
 *   <NAME>, <NAME>, <NAME>, <NAME>,
 *   <NAME>, <NAME>, <NAME>
 *   <NAME>
 *******************************************************************************/
package org.eclipse.ice.viz.service.mesh.datastructures.test;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

import java.util.ArrayList;
import java.util.List;

import org.eclipse.ice.viz.service.mesh.datastructures.BoundaryCondition;
import org.eclipse.ice.viz.service.mesh.datastructures.BoundaryConditionType;
import org.eclipse.ice.viz.service.mesh.datastructures.NekPolygonController;
import org.eclipse.ice.viz.service.mesh.datastructures.NekPolygonMesh;
import org.eclipse.ice.viz.service.mesh.datastructures.PolygonProperties;
import org.eclipse.ice.viz.service.modeling.AbstractController;
import org.eclipse.ice.viz.service.modeling.AbstractView;
import org.eclipse.ice.viz.service.modeling.EdgeController;
import org.eclipse.ice.viz.service.modeling.EdgeMesh;
import org.eclipse.ice.viz.service.modeling.FaceMesh;
import org.eclipse.ice.viz.service.modeling.VertexController;
import org.eclipse.ice.viz.service.modeling.VertexMesh;
import org.junit.Ignore;
import org.junit.Test;

/**
 * <p>
 * Tests the NekPolygon class.
 * </p>
 * 
 * @author <NAME>
 * @author <NAME>
 */
@Ignore
public class NekPolygonTester {

	/**
	 * <p>
	 * This operation tests the construction of the Polygon class and the
	 * functionality inherited from ICEObject.
	 * </p>
	 * 
	 */
	@Test
	public void checkCreation() {

		VertexController vertex;
		EdgeController edge;

		// We need edges and vertices to supply to created Polygons.
		ArrayList<EdgeController> edges = new ArrayList<EdgeController>();
		ArrayList<VertexController> vertices = new ArrayList<VertexController>();

		// For our test, we'll just make a triangle with one point at the origin
		// and the other two on the x and z axes at a distance of 5.
		vertices.add(new VertexController(new VertexMesh(0f, 0f, 0f),
				new AbstractView()));
		vertices.add(new VertexController(new VertexMesh(5f, 0f, 0f),
				new AbstractView()));
		vertices.add(new VertexController(new VertexMesh(0f, 0f, 5f),
				new AbstractView()));

		// Set the IDs for the vertices.
{'fraction_non_alphanumeric': 0.16348195329087048, 'fraction_numerical': 0.00778485491861288, 'mean_word_length': 4.864107883817427, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4829835', 'n_tokens_mistral': 1768, 'n_tokens_neox': 1633, 'n_words': 428}