<commit_before>// SimpleIntersector.cpp
// Copyright (c) 2009, <NAME>
// This program is released under the BSD license. See the file COPYING for details.

#include "stdafx.h"
#include "Intersector.h"
#include "SimpleIntersector.h"

extern double tol; 

std::map<MyLine*, std::vector<Intersection> > SimpleIntersector::Intersect(std::vector<MyLine> &lines)
{
	tol = wxGetApp().m_geom_tol;
	std::map<MyLine*, std::vector<Intersection> > intersections;

	for(int i=0; i < lines.size(); i++)
	{
		for(int j=i+1; j < lines.size(); j++)
		{
			IntResult ir = Intersects(&lines[i],&lines[j]);
			if(ir.exists)
			{
				intersections[&lines[i]].push_back(Intersection(&lines[j],ir.atX,ir.atY));
				intersections[&lines[j]].push_back(Intersection(&lines[i],ir.atX,ir.atY));
			}
		}
	}<commit_msg>fix warning comparison signed to unsigned<commit_after>// SimpleIntersector.cpp
// Copyright (c) 2009, <NAME>
// This program is released under the BSD license. See the file COPYING for details.

#include "stdafx.h"
#include "Intersector.h"
#include "SimpleIntersector.h"

extern double tol; 

std::map<MyLine*, std::vector<Intersection> > SimpleIntersector::Intersect(std::vector<MyLine> &lines)
{
	tol = wxGetApp().m_geom_tol;
	std::map<MyLine*, std::vector<Intersection> > intersections;

	for(unsigned i=0; i < lines.size(); i++)
	{
		for(unsigned j=i+1; j < lines.size(); j++)
		{
			IntResult ir = Intersects(&lines[i],&lines[j]);
			if(ir.exists)
			{
				intersections[&lines[i]].push_back(Intersection(&lines[j],ir.atX,ir.atY));
				intersections[&lines[j]].push_back(Intersection(&lines[i],ir.atX,ir.atY));
			}
		}
	}
{'fraction_non_alphanumeric': 0.1792336217552534, 'fraction_numerical': 0.007416563658838072, 'mean_word_length': 5.275193798449612, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 15, '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': '5906572', 'n_tokens_mistral': 656, 'n_tokens_neox': 594, 'n_words': 113}