<commit_before>// ConstrainedObject.cpp
// Copyright (c) 2009, <NAME>
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"

#include "Constraint.h"

Constraint::Constraint(){
	
}

Constraint::Constraint(EnumConstraintType type,EnumAbsoluteAngle angle, HeeksObj* obj)
{
    m_type = type;
	m_angle = angle;
	m_obj1 = obj;
	m_obj2 = NULL;
	m_obj1_point = PointA;
	m_obj2_point = PointA;
	m_length = 0;
}

Constraint::Constraint(EnumConstraintType type,HeeksObj* obj1,HeeksObj* obj2)
{
    m_type = type;
	m_angle = (EnumAbsoluteAngle)0;
	m_obj1 = obj1;
	m_obj2 = obj2;
	m_obj1_point = PointA;
	m_obj2_point = PointA;
	m_length = 0;
}


Constraint::Constraint(EnumConstraintType type,EnumPoint point1,EnumPoint point2,HeeksObj* obj1, HeeksObj* obj2)
{
    m_type = type;
	m_angle = (EnumAbsoluteAngle)0;
	m_obj1 = obj1;
	m_obj2 = obj2;
	m_obj1_point = point1;
	m_obj2_point = point2;
	m_length = 0;
}

Constraint::Constraint(EnumConstraintType type,double length,HeeksObj* obj1)
{
    m_type = type;
	m_angle = (EnumAbsoluteAngle)0;
	m_obj1 = obj1;
	m_obj2 = 0;
	m_obj1_point = (EnumPoint)0;
	m_obj2_point = (EnumPoint)0;
	m_length = length;
}


Constraint::~Constraint(){
}

void Constraint::render_text(const wxChar* str)
{<commit_msg>fixed issue 169<commit_after>// ConstrainedObject.cpp
// Copyright (c) 2009, <NAME>
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"

#include "Constraint.h"

Constraint::Constraint(){
	
}

Constraint::Constraint(EnumConstraintType type,EnumAbsoluteAngle angle, HeeksObj* obj)
{
    m_type = type;
	m_angle = angle;
	m_obj1 = obj;
	m_obj2 = NULL;
	m_obj1_point = PointA;
	m_obj2_point = PointA;
	m_length = 0;
}

Constraint::Constraint(EnumConstraintType type,HeeksObj* obj1,HeeksObj* obj2)
{
    m_type = type;
	m_angle = (EnumAbsoluteAngle)0;
	m_obj1 = obj1;
	m_obj2 = obj2;
	m_obj1_point = PointA;
	m_obj2_point = PointA;
	m_length = 0;
}


Constraint::Constraint(EnumConstraintType type,EnumPoint point1,EnumPoint point2,HeeksObj* obj1, HeeksObj* obj2)
{
    m_type = type;
	m_angle = (EnumAbsoluteAngle)0;
	m_obj1 = obj1;
	m_obj2 = obj2;
	m_obj1_point = point1;
	m_obj2_point = point2;
	m_length = 0;
}

Constraint::Constraint(EnumConstraintType type,double length,HeeksObj* obj1)
{
    m_type = type;
	m_angle = (EnumAbsoluteAngle)0;
	m_obj1 = obj1;
	m_obj2 = 0;
	m_obj1_point = (EnumPoint)0;
	m_obj2_point = (EnumPoint)0;
	m_length = length;
}


Constraint::~Constraint(){
}

void Constraint::render_text(const wxChar* str)
{
	wxGetApp().create_font();
{'fraction_non_alphanumeric': 0.11764705882352941, 'fraction_numerical': 0.03421760861207228, 'mean_word_length': 5.136792452830188, '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': '3261523', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1030, 'n_words': 215}