2009-05-15 00:24:39 +08:00
|
|
|
|
// The majority of the application is dedicated to building the
|
|
|
|
|
// current contribitors list by parsing the ChangeLog, it just takes
|
|
|
|
|
// one line in the main itself to report the version number.
|
|
|
|
|
|
|
|
|
|
#include <set>
|
|
|
|
|
#include <vector>
|
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
|
|
#include <OpenThreads/Version>
|
|
|
|
|
|
|
|
|
|
#include <osg/Notify>
|
|
|
|
|
#include <osg/Version>
|
|
|
|
|
#include <osg/ArgumentParser>
|
|
|
|
|
#include <osg/ApplicationUsage>
|
|
|
|
|
|
|
|
|
|
#include <osg/Matrix>
|
|
|
|
|
#include <osg/Plane>
|
|
|
|
|
#include <osg/BoundingBox>
|
|
|
|
|
#include <osg/BoundingSphere>
|
|
|
|
|
|
|
|
|
|
#include <osgDB/fstream>
|
|
|
|
|
|
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#if defined(_MSC_VER)
|
|
|
|
|
#pragma setlocale("C")
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
typedef pair<string, string> NamePair;
|
|
|
|
|
typedef map<NamePair, unsigned int> NameMap;
|
|
|
|
|
typedef vector<string> Words;
|
|
|
|
|
|
|
|
|
|
NamePair EmptyNamePair;
|
|
|
|
|
NamePair NameRobertOsfield("Robert", "Osfield");
|
|
|
|
|
NamePair NameDonBurns ("Don", "Burns");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const char* validNames[] =
|
|
|
|
|
{
|
|
|
|
|
"de",
|
|
|
|
|
"den",
|
2011-02-10 22:09:04 +08:00
|
|
|
|
"van",
|
|
|
|
|
"von"
|
2009-05-15 00:24:39 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const char* invalidNames[] =
|
|
|
|
|
{
|
|
|
|
|
"Added",
|
|
|
|
|
"AnimationPath",
|
|
|
|
|
"AnimationPathCallback",
|
|
|
|
|
"AnimationPathManipulator",
|
|
|
|
|
"ArgumentParser",
|
|
|
|
|
"AttrData",
|
|
|
|
|
"AutoTransform",
|
|
|
|
|
"AutoTransform.",
|
|
|
|
|
"Azimuth",
|
|
|
|
|
"BlenColour(Vec4",
|
|
|
|
|
"Camera",
|
|
|
|
|
"CameraBarrierCallback",
|
|
|
|
|
"CameraNode",
|
|
|
|
|
"Canvas",
|
|
|
|
|
"CluserCullingCallback",
|
|
|
|
|
"ClusterCullingCallback",
|
|
|
|
|
"CoordinateSystem",
|
|
|
|
|
"CoordinateSystemNode",
|
|
|
|
|
"CoordinateSystemNode&",
|
|
|
|
|
"CopyOp",
|
|
|
|
|
"Copyright",
|
|
|
|
|
"Core",
|
|
|
|
|
"Creator",
|
|
|
|
|
"CullCallbacks",
|
|
|
|
|
"CullingSettngs",
|
|
|
|
|
"CullVisitor",
|
|
|
|
|
"CullVistor",
|
|
|
|
|
"Cygwin",
|
|
|
|
|
"DatabasePager",
|
|
|
|
|
"DataSet",
|
|
|
|
|
"DataVariance",
|
|
|
|
|
"DeleteHandler",
|
|
|
|
|
"DisplaySettings",
|
|
|
|
|
"Drawable",
|
|
|
|
|
"DrawElementsUByte",
|
|
|
|
|
"Endian",
|
|
|
|
|
"Escape",
|
|
|
|
|
"EventQueue",
|
|
|
|
|
"Face",
|
|
|
|
|
"Files",
|
|
|
|
|
"Fixed",
|
|
|
|
|
"Fixes",
|
|
|
|
|
"FluidProgram",
|
|
|
|
|
"FontImplementation",
|
|
|
|
|
"FrameStats",
|
|
|
|
|
"Framstamp",
|
|
|
|
|
"FreeBSD",
|
|
|
|
|
"Geode",
|
|
|
|
|
"GeoemtryTechnique",
|
|
|
|
|
"GeometryTechnique",
|
|
|
|
|
"GeoSet",
|
|
|
|
|
"GraphicsContext",
|
|
|
|
|
"GraphicsContextImplementation",
|
|
|
|
|
"GraphicsThread",
|
|
|
|
|
"GraphicsWindowX11",
|
2009-12-10 20:13:13 +08:00
|
|
|
|
"GraphicsHandleX11",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"Group",
|
|
|
|
|
"Image",
|
|
|
|
|
"ImageOptions",
|
|
|
|
|
"Images",
|
|
|
|
|
"Images/SolarSystem",
|
|
|
|
|
"ImageStream",
|
|
|
|
|
"Improved",
|
|
|
|
|
"IndexBlock",
|
|
|
|
|
"IndexFaceSets",
|
|
|
|
|
"IntersectVisitor",
|
|
|
|
|
"Inventor",
|
|
|
|
|
"KdTree",
|
|
|
|
|
"KeyboardMouse",
|
|
|
|
|
"KeyboardMouseCallback",
|
|
|
|
|
"LightModel",
|
|
|
|
|
"LightPointNode",
|
|
|
|
|
"LineSegment",
|
|
|
|
|
"LineStipple",
|
|
|
|
|
"Logos",
|
|
|
|
|
"LongIDRecord",
|
2012-02-10 01:45:23 +08:00
|
|
|
|
"InputIterator",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"Make",
|
|
|
|
|
"Makefile",
|
|
|
|
|
"Material",
|
|
|
|
|
"Matrix",
|
|
|
|
|
"Matrix*",
|
|
|
|
|
"MatrixManipulator",
|
|
|
|
|
"MatrixTransform",
|
|
|
|
|
"MemoryManager",
|
|
|
|
|
"MergeGeometryVisitor",
|
|
|
|
|
"MeshRecord",
|
|
|
|
|
"Mode",
|
|
|
|
|
"Mr",
|
|
|
|
|
"Multigen",
|
|
|
|
|
"New",
|
|
|
|
|
"NewCullVisitor",
|
|
|
|
|
"NodeVisitor",
|
|
|
|
|
"Object",
|
|
|
|
|
"OpenDX",
|
|
|
|
|
"OpenSceneGraph",
|
|
|
|
|
"OpenSceneGraph-2",
|
|
|
|
|
"OpenSceneGraph-osgWidget-dev",
|
|
|
|
|
"OpenThreads",
|
|
|
|
|
"OperationThread",
|
|
|
|
|
"Optimizer",
|
|
|
|
|
"OrientationConverter",
|
|
|
|
|
"Osfields",
|
|
|
|
|
"Ouput",
|
|
|
|
|
"Output",
|
|
|
|
|
"OveralyNode",
|
|
|
|
|
"PagedLOD",
|
|
|
|
|
"PageLOD",
|
|
|
|
|
"Paging",
|
|
|
|
|
"ParentList",
|
|
|
|
|
"Performer",
|
|
|
|
|
"PickHandler",
|
|
|
|
|
"PixelDataBufferObject",
|
|
|
|
|
"PolygonStipple",
|
|
|
|
|
"PolytopeVisitor",
|
|
|
|
|
"PrimitiveIndexFunctor",
|
|
|
|
|
"Prodcuer",
|
|
|
|
|
"Producer",
|
|
|
|
|
"ProducerEventCallback",
|
|
|
|
|
"Program",
|
|
|
|
|
"Proxy",
|
|
|
|
|
"ProxyNode",
|
|
|
|
|
"Quake3",
|
|
|
|
|
"Quicktime",
|
|
|
|
|
"ReaderWriters",
|
2010-02-19 17:32:15 +08:00
|
|
|
|
"ReaderWriterTXP",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"ReentrantMutex",
|
|
|
|
|
"Referenced",
|
|
|
|
|
"ReferenceFrame",
|
|
|
|
|
"Removed",
|
|
|
|
|
"RemoveLoadedProxyNodes",
|
|
|
|
|
"RenderStage",
|
|
|
|
|
"RenderTargetFallback",
|
|
|
|
|
"RenderToTextureStage",
|
|
|
|
|
"SceneGraphBuilder",
|
|
|
|
|
"SceneView",
|
|
|
|
|
"Sequence",
|
|
|
|
|
"Shape",
|
|
|
|
|
"SimpleViewer",
|
|
|
|
|
"SimpleViewer",
|
|
|
|
|
"SmokeTrailEffect",
|
|
|
|
|
"Source",
|
2010-04-22 19:20:31 +08:00
|
|
|
|
"SoftImage",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"SpotExponent",
|
|
|
|
|
"State",
|
|
|
|
|
"StateAttribute",
|
|
|
|
|
"Stats",
|
2009-12-10 20:13:13 +08:00
|
|
|
|
"StateSet",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"StatsVisitor",
|
|
|
|
|
"Studio",
|
|
|
|
|
"Support",
|
|
|
|
|
"Switch",
|
|
|
|
|
"TechniqueEventHandler",
|
|
|
|
|
"TerraPage",
|
|
|
|
|
"TessellationHints",
|
|
|
|
|
"TestManipulator",
|
|
|
|
|
"TestSupportCallback",
|
2010-12-02 04:14:34 +08:00
|
|
|
|
"Text",
|
2009-05-15 00:24:39 +08:00
|
|
|
|
"TexEnv",
|
|
|
|
|
"TexMat(Matrix",
|
|
|
|
|
"Texture",
|
|
|
|
|
"Texture2DArray",
|
|
|
|
|
"Texture3D",
|
|
|
|
|
"TextureCubeMap",
|
|
|
|
|
"TextureObjectManager",
|
|
|
|
|
"TextureRectangle",
|
|
|
|
|
"TextureRectangle(Image*",
|
|
|
|
|
"TextureType",
|
|
|
|
|
"Texuture",
|
|
|
|
|
"TriStripVisitor",
|
|
|
|
|
"TrPageViewer",
|
|
|
|
|
"Uniform",
|
|
|
|
|
"UseFarLineSegments",
|
|
|
|
|
"UserData",
|
|
|
|
|
"Valve",
|
|
|
|
|
"Vec*",
|
|
|
|
|
"Vec2d",
|
|
|
|
|
"Vec3d",
|
|
|
|
|
"Vec4ub",
|
|
|
|
|
"Version",
|
|
|
|
|
"VertexData",
|
|
|
|
|
"View",
|
|
|
|
|
"Viewer",
|
|
|
|
|
"ViewPoint",
|
|
|
|
|
"Viewport",
|
|
|
|
|
"Viewport",
|
|
|
|
|
"Visual",
|
|
|
|
|
"VisualStudio",
|
|
|
|
|
"WindowData",
|
|
|
|
|
"Windows",
|
|
|
|
|
"X",
|
|
|
|
|
"Xcode",
|
2009-06-22 21:08:06 +08:00
|
|
|
|
"GraphicsWindowWin32",
|
|
|
|
|
"ImageLayer",
|
|
|
|
|
"Xml",
|
2009-10-10 22:50:16 +08:00
|
|
|
|
"Y",
|
2010-12-02 04:14:34 +08:00
|
|
|
|
"UpdateSkeleton",
|
|
|
|
|
"IncementalCompileOperation",
|
|
|
|
|
"Billboard",
|
2011-02-10 22:09:04 +08:00
|
|
|
|
"UpdateSkeleton",
|
|
|
|
|
"Vec3",
|
2011-06-23 19:26:51 +08:00
|
|
|
|
"Plugin",
|
2012-02-10 01:45:23 +08:00
|
|
|
|
"Get",
|
2013-02-07 16:46:44 +08:00
|
|
|
|
"LightSource",
|
|
|
|
|
"SlideEventHandler",
|
|
|
|
|
"GraphicsContext*",
|
2013-06-20 18:42:24 +08:00
|
|
|
|
"Apple",
|
2013-07-01 20:16:32 +08:00
|
|
|
|
"GeometryNew",
|
2013-10-02 03:31:48 +08:00
|
|
|
|
"FrameBufferObject",
|
|
|
|
|
"Lua",
|
|
|
|
|
"VolumeTile"
|
2009-05-15 00:24:39 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct TypoCorrection
|
|
|
|
|
{
|
|
|
|
|
const char* original;
|
|
|
|
|
const char* corrected;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
TypoCorrection typoCorrections[] =
|
|
|
|
|
{
|
2013-06-21 22:29:00 +08:00
|
|
|
|
{"Cheaev", "Chebaev"},
|
2010-12-02 04:14:34 +08:00
|
|
|
|
{"Alaxandre", "Alexandre"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Aderian", "Adrian"},
|
|
|
|
|
{"Adndre", "Andre"},
|
|
|
|
|
{"Adrain", "Adrian"},
|
|
|
|
|
{"Amueller", "Aumueller"},
|
|
|
|
|
{"Andew", "Andrew"},
|
|
|
|
|
{"André", "Andr<EFBFBD>"},
|
|
|
|
|
{"Antione", "Antoine"},
|
|
|
|
|
{"Antonoine", "Antoine"},
|
2013-02-07 16:46:44 +08:00
|
|
|
|
{"Aurelein", "Aurelien"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Atr", "Art"},
|
|
|
|
|
{"Baverage", "Beverage"},
|
|
|
|
|
{"Bistroviae", "Bistrovic"},
|
|
|
|
|
{"Callue", "Callu"},
|
|
|
|
|
{"Christaiansen", "Christiansen"},
|
|
|
|
|
{"Cobin", "Corbin"},
|
|
|
|
|
{"Comporesi", "Camporesi"},
|
|
|
|
|
{"Connel", "Connell"},
|
|
|
|
|
{"Cullu", "Callu"},
|
|
|
|
|
{"Daneil", "Daniel"},
|
|
|
|
|
{"Daust", "Daoust"},
|
|
|
|
|
{"Daved", "David"},
|
|
|
|
|
{"Drederic", "Frederic"},
|
|
|
|
|
{"Eileman", "Eilemann"},
|
|
|
|
|
{"Elgi", "Egli"},
|
|
|
|
|
{"Fabian", "Fabien"},
|
|
|
|
|
{"Fautre", "Fautr<EFBFBD>"},
|
|
|
|
|
{"Frashid", "Farshid"},
|
2012-02-10 01:45:23 +08:00
|
|
|
|
{"Farshild", "Farshid"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Fred", "Frederic"},
|
|
|
|
|
{"Fredrick", "Frederic"},
|
|
|
|
|
{"Fredric", "Frederic"},
|
|
|
|
|
{"Froechlich", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Froehilch", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Froehlich", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Froelich", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Froenlich", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Fröhlich", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Fruciel", "Frauciel"},
|
|
|
|
|
{"García", "Garcea"},
|
|
|
|
|
{"Garrat", "Garrett"},
|
|
|
|
|
{"Garret", "Garrett"},
|
|
|
|
|
{"Geof", "Geoff"},
|
|
|
|
|
{"Giatan", "Gaitan"},
|
|
|
|
|
{"Gronenger", "Gronager"},
|
|
|
|
|
{"Gronger", "Gronager"},
|
|
|
|
|
{"Haritchablaet", "Haritchabalet"},
|
|
|
|
|
{"Hebelin", "Herbelin"},
|
|
|
|
|
{"Heirtlein", "Hertlein"},
|
|
|
|
|
{"Heirtlein", "Hertlein"},
|
|
|
|
|
{"Hertleinm", "Hertlein"},
|
2009-06-22 21:08:06 +08:00
|
|
|
|
{"Happalahti", "Haapalahti"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Hertlien", "Hertlein"},
|
2010-06-18 23:46:10 +08:00
|
|
|
|
{"Hatwig", "Hartwig"},
|
2012-02-10 01:45:23 +08:00
|
|
|
|
{"Hauknes", "Haukness"},
|
2013-02-07 16:46:44 +08:00
|
|
|
|
{"Hunber", "Huber"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Hi", "He"},
|
|
|
|
|
{"Hooper", "Hopper"},
|
|
|
|
|
{"Inverson", "Iverson"},
|
|
|
|
|
{"Iversion", "Iverson"},
|
2011-06-23 20:24:47 +08:00
|
|
|
|
{"Jean-Sebastein", "Jean-S<>bastien"},
|
|
|
|
|
{"Jean-Sebastian", "Jean-S<>bastien"},
|
|
|
|
|
{"Jean-Sebastirn", "Jean-S<>bastien"},
|
|
|
|
|
{"Jea-Sebastien", "Jean-S<>bastien"},
|
|
|
|
|
{"Jean-Sebasien", "Jean-S<>bastien"},
|
|
|
|
|
{"Jean-Sebastien", "Jean-S<>bastien"},
|
2011-06-28 15:54:00 +08:00
|
|
|
|
{"Jean-Sebestien", "Jean-S<>bastien"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Johhansen", "Johansen"},
|
|
|
|
|
{"Johnansen", "Johansen"},
|
|
|
|
|
{"Johnasen", "Johansen"},
|
|
|
|
|
{"Jolly", "Jolley"},
|
|
|
|
|
{"Jose", "Jos<EFBFBD>"},
|
|
|
|
|
{"José", "Jos<EFBFBD>"},
|
|
|
|
|
{"Joson", "Jason"},
|
|
|
|
|
{"J", "Jos<EFBFBD>"},
|
|
|
|
|
{"Keuhne", "Kuehne"},
|
|
|
|
|
{"Kheune", "Kuehne"},
|
2009-12-10 20:13:13 +08:00
|
|
|
|
{"Krulthof", "Kruithof"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Lagrade", "Lagarde"},
|
2009-06-22 20:46:51 +08:00
|
|
|
|
{"Largade", "Lagarde"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Larshkari", "Lashkari"},
|
|
|
|
|
{"Lashakari", "Lashkari"},
|
|
|
|
|
{"Lashari", "Lashkari"},
|
|
|
|
|
{"Lasharki", "Lashkari"},
|
|
|
|
|
{"Laskari", "Lashkari"},
|
|
|
|
|
{"Leandowski", "Lewandowski"},
|
|
|
|
|
{"Lawandowski", "Lewandowski"},
|
2009-06-22 21:08:06 +08:00
|
|
|
|
{"Luacas", "Luaces"},
|
|
|
|
|
{"Luacas", "Luaces"},
|
|
|
|
|
{"Liech", "Leich"},
|
2010-04-22 19:20:31 +08:00
|
|
|
|
{"Lownman", "Lowman"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Lugi", "Luigi"},
|
|
|
|
|
{"Lweandowski", "Lewandowski"},
|
2010-12-02 04:14:34 +08:00
|
|
|
|
{"Lavingotte", "Lavignotte"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Maceij", "Maciej"},
|
|
|
|
|
{"Machler", "M<EFBFBD>chler"},
|
|
|
|
|
{"Macro", "Marco"},
|
|
|
|
|
{"Maechler", "M<EFBFBD>chler"},
|
|
|
|
|
{"Mahai", "Mihai"},
|
2010-12-02 04:14:34 +08:00
|
|
|
|
{"Magnes", "Magnus"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Mammond", "Marmond"},
|
|
|
|
|
{"March", "Marco"},
|
|
|
|
|
{"Martsz", "Martz"},
|
|
|
|
|
{"Marz", "Martz"},
|
|
|
|
|
{"Matz", "Martz"},
|
|
|
|
|
{"Melchoir", "Melchior"},
|
|
|
|
|
{"Mellis", "Melis"},
|
|
|
|
|
{"Messerschimdt", "Messerschmidt"},
|
|
|
|
|
{"Micheal", "Michael"},
|
|
|
|
|
{"Mihair", "Mihai"},
|
|
|
|
|
{"Molishtan", "Moloshtan"},
|
|
|
|
|
{"Molishtan", "Moloshtan"},
|
|
|
|
|
{"Moloshton", "Moloshtan"},
|
|
|
|
|
{"Morné", "Morn<EFBFBD>"},
|
|
|
|
|
{"Morne", "Morn<EFBFBD>"},
|
|
|
|
|
{"Moule", "Moiule"},
|
|
|
|
|
{"Narache", "Marache"},
|
|
|
|
|
{"Nicklov", "Nikolov"},
|
|
|
|
|
{"Nickolov", "Nikolov"},
|
2010-02-19 17:32:15 +08:00
|
|
|
|
{"Nilson", "Nilsson"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Olad", "Olaf"},
|
|
|
|
|
{"Olar", "Olaf"},
|
|
|
|
|
{"Oritz", "Ortiz"},
|
|
|
|
|
{"Osfeld", "Osfield"},
|
|
|
|
|
{"Osfied", "Osfield"},
|
2012-02-10 01:45:23 +08:00
|
|
|
|
{"Paulk", "Paul"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Pail", "Paul"},
|
2010-06-18 23:46:10 +08:00
|
|
|
|
{"Perciva", "Peciva"},
|
|
|
|
|
{"Pecvia", "Peciva"},
|
|
|
|
|
{"Priyadashi", "Priyadarshi"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Rajce", "Trajce"},
|
2010-04-22 19:20:31 +08:00
|
|
|
|
{"Raymon", "Raymond"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Randal", "Randall"},
|
|
|
|
|
{"Robet", "Robert"},
|
|
|
|
|
{"Rodger", "Roger"},
|
|
|
|
|
{"Rolad", "Roland"},
|
2009-07-16 18:13:13 +08:00
|
|
|
|
{"Riddel", "Riddell"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Rucard", "Richard"},
|
|
|
|
|
{"Sekender", "Sukender"},
|
|
|
|
|
{"Sewel", "Sewell"},
|
|
|
|
|
{"Simmonson", "Simonsson"},
|
|
|
|
|
{"Simmonsson", "Simonsson"},
|
|
|
|
|
{"Sjolie", "Sj<EFBFBD>lie"},
|
|
|
|
|
{"Sjölie", "Sj<EFBFBD>lie"},
|
|
|
|
|
{"Skinnder", "Skinner"},
|
2010-02-19 17:32:15 +08:00
|
|
|
|
{"Seberion", "Seberino"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Sokolosky", "Sokolowsky"},
|
|
|
|
|
{"Sokolowky", "Sokolowsky"},
|
|
|
|
|
{"Sokolowki", "Sokolowsky"},
|
|
|
|
|
{"Sokolowski", "Sokolowsky"},
|
|
|
|
|
{"Sokolsky", "Sokolowsky"},
|
|
|
|
|
{"Sokolwsky", "Sokolowsky"},
|
|
|
|
|
{"Sonda", "Sondra"},
|
|
|
|
|
{"Stansilav", "Stanislav"},
|
|
|
|
|
{"Stefan", "Stephan"},
|
|
|
|
|
{"Stell", "Steel"},
|
|
|
|
|
{"Sylvan", "Sylvain"},
|
|
|
|
|
{"Takeahei", "Takahei"},
|
|
|
|
|
{"Takehei", "Takahei"},
|
2009-07-16 18:13:13 +08:00
|
|
|
|
{"Tery", "Terry"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Tarantilils", "Tarantilis"},
|
|
|
|
|
{"Trastenjak", "Trstenjak"},
|
|
|
|
|
{"Urlich", "Ulrich"},
|
|
|
|
|
{"Vines", "Vine"},
|
|
|
|
|
{"Waldrom", "Waldron"},
|
|
|
|
|
{"Wedner", "Weidner"},
|
|
|
|
|
{"Weidemann", "Wiedemann"},
|
|
|
|
|
{"Wieblen", "Weiblen"},
|
|
|
|
|
{"Woesnner", "Woessner"},
|
|
|
|
|
{"Wojchiech", "Wojciech"},
|
2010-04-22 19:20:31 +08:00
|
|
|
|
{"Wojcoech", "Wojciech"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Wojiech", "Wojciech"},
|
|
|
|
|
{"Xennon", "Hanson"},
|
|
|
|
|
{"Yefrei", "Yefei"},
|
2009-10-10 22:50:16 +08:00
|
|
|
|
{"Yfei", "Yefei"},
|
|
|
|
|
{"Gurhrie", "Guthrie"},
|
2010-09-17 22:26:27 +08:00
|
|
|
|
{"Byran", "Bryan"},
|
|
|
|
|
{"Fielder", "Fiedler"},
|
2010-12-02 04:14:34 +08:00
|
|
|
|
{"Mathia", "Mathias"},
|
|
|
|
|
{"Halgarth", "Hogarth"},
|
2011-02-10 22:09:04 +08:00
|
|
|
|
{"Katherina", "Katharina"},
|
|
|
|
|
{"Biyfarguine", "Boufarguine"},
|
2011-04-26 22:55:19 +08:00
|
|
|
|
{"Dickenson", "Dickinson"},
|
|
|
|
|
{"Jahannes","Johannes"},
|
2011-06-27 23:43:33 +08:00
|
|
|
|
{"Eskland","Ekstrand"},
|
2011-04-26 22:55:19 +08:00
|
|
|
|
{"Baeuerele","Baeuerle"},
|
2012-02-29 22:01:44 +08:00
|
|
|
|
{"Bauerle","Baeuerle"},
|
2013-10-04 00:20:29 +08:00
|
|
|
|
{"Baeurele","Baeuerle"},
|
|
|
|
|
{"Nillson","Nilsson"},
|
|
|
|
|
{"Bjorn","Bj<EFBFBD>rn"},
|
|
|
|
|
{"Björn","Bj<EFBFBD>rn"}
|
2009-05-15 00:24:39 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
struct NameCorrection
|
|
|
|
|
{
|
|
|
|
|
const char* originalFirst;
|
|
|
|
|
const char* originalSecond;
|
|
|
|
|
const char* correctedFirst;
|
|
|
|
|
const char* correctedSecond;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
NameCorrection nameCorrections[] =
|
|
|
|
|
{
|
2013-06-21 22:29:00 +08:00
|
|
|
|
{"FrancoisTigeot","",
|
|
|
|
|
"Francois", "Tigeot"},
|
2013-06-20 18:42:24 +08:00
|
|
|
|
{"Juan","Manuel",
|
|
|
|
|
"Juan", "Manuel Alvarez"},
|
2013-02-07 16:46:44 +08:00
|
|
|
|
{"Jaap","Gas",
|
|
|
|
|
"Jaap", "Glas"},
|
2011-07-21 17:55:03 +08:00
|
|
|
|
{"Philip","Lamp",
|
|
|
|
|
"Philip", "Lamb"},
|
2011-06-23 19:26:51 +08:00
|
|
|
|
{"Dimi","Christop",
|
|
|
|
|
"Dimi", "Christopoulos"},
|
2011-06-17 19:47:33 +08:00
|
|
|
|
{"Jorge","Ciges",
|
2013-05-26 18:44:11 +08:00
|
|
|
|
"Jorge", "Izquierdo Ciges"},
|
|
|
|
|
{"Jorge","Izquierdo",
|
|
|
|
|
"Jorge", "Izquierdo Ciges"},
|
2011-05-30 23:43:18 +08:00
|
|
|
|
{"Rafa","Gata",
|
|
|
|
|
"Rafa", "Gaitan"},
|
2011-04-26 22:55:19 +08:00
|
|
|
|
{"Sukender","I",
|
|
|
|
|
"Sukender", ""},
|
|
|
|
|
{"Sukender","Here",
|
|
|
|
|
"Sukender", ""},
|
2013-05-27 17:07:53 +08:00
|
|
|
|
{"Sukender","Fix",
|
|
|
|
|
"Sukender", ""},
|
2011-02-24 00:49:38 +08:00
|
|
|
|
{"Ewe","Woessner",
|
|
|
|
|
"Uwe", "Woessner"},
|
2011-02-10 22:09:04 +08:00
|
|
|
|
{"Martin","von",
|
|
|
|
|
"Martin", "von Gargern"},
|
2010-12-02 04:14:34 +08:00
|
|
|
|
{"Alexandre","Irion",
|
|
|
|
|
"Alexander", "Irion"},
|
|
|
|
|
{"WojciechLewandowski","",
|
|
|
|
|
"Wojciech", "Lewandowski"},
|
|
|
|
|
{"Marin", "Platings",
|
|
|
|
|
"Michael", "Platings"},
|
|
|
|
|
{"Tomas", "Holgarth",
|
|
|
|
|
"Thomas", "Hogarth"},
|
2010-09-17 22:26:27 +08:00
|
|
|
|
{"Marin", "Lavery",
|
|
|
|
|
"Martin", "Lavery"},
|
2013-05-29 00:39:48 +08:00
|
|
|
|
{"Michael", "Bach",
|
|
|
|
|
"Michael", "Bach Jensen"},
|
2010-06-18 23:46:10 +08:00
|
|
|
|
{"Nguyen", "Van",
|
|
|
|
|
"Nguyen", "Van Truong"},
|
2009-10-10 22:50:16 +08:00
|
|
|
|
{"Thom", "Carlo",
|
|
|
|
|
"Thom", "DeCarlo"},
|
|
|
|
|
{"Stephan", "Lamoliatte",
|
|
|
|
|
"Stephane", "Lamoliatte"},
|
|
|
|
|
{"Ronald", "van",
|
|
|
|
|
"Ronald", "van Maarseveen"},
|
|
|
|
|
{"Lee", "Bulter",
|
|
|
|
|
"Lee", "Butler"},
|
|
|
|
|
{"Tery", "Welsh",
|
|
|
|
|
"Terry", "Welsh"},
|
|
|
|
|
{"Cesar", "L",
|
2009-10-10 19:28:42 +08:00
|
|
|
|
"C<EFBFBD>sar", "L. B. Silveira"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Marc", "Sciabica",
|
|
|
|
|
"Mark", "Sciabica"},
|
2009-10-10 22:50:16 +08:00
|
|
|
|
{"Tom", "Moore",
|
|
|
|
|
"Tim", "Moore"},
|
2010-04-22 19:20:31 +08:00
|
|
|
|
{"Time", "Moore",
|
|
|
|
|
"Tim", "Moore"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Jean", "Sebastien",
|
2011-06-23 20:24:47 +08:00
|
|
|
|
"Jean-S<>bastien", "Guay"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Michale", "Platings",
|
|
|
|
|
"Michael", "Platings"},
|
|
|
|
|
{"Mick", "",
|
|
|
|
|
"Maik", "Keller"},
|
|
|
|
|
{"Gary", "Quin",
|
|
|
|
|
"Gary", "Quinn"},
|
|
|
|
|
{"BjornHein", "",
|
|
|
|
|
"Bj<EFBFBD>rn", "Hein"},
|
|
|
|
|
{"Bjorn", "Hein",
|
|
|
|
|
"Bj<EFBFBD>rn", "Hein"},
|
|
|
|
|
{"Erik", "van",
|
|
|
|
|
"Erik", "den Dekker"},
|
|
|
|
|
{"Erik", "den",
|
|
|
|
|
"Erik", "den Dekker"},
|
|
|
|
|
{"Jeoen", "den",
|
|
|
|
|
"Jeroen", "den Dekker"},
|
|
|
|
|
{"John", "Vidar",
|
|
|
|
|
"John", "Vidar Larring"},
|
|
|
|
|
{"John", "Vida",
|
|
|
|
|
"John", "Vidar Larring"},
|
|
|
|
|
{"Sebastien", "Messerschmidt",
|
|
|
|
|
"Sebastian", "Messerschmidt"},
|
|
|
|
|
{"Mattias", "Fr<EFBFBD>hlich",
|
|
|
|
|
"Mathias", "Fr<EFBFBD>hlich"},
|
|
|
|
|
{"Mathias", "Helsing",
|
|
|
|
|
"Mattias", "Helsing"},
|
|
|
|
|
{"Jose", "Delport",
|
|
|
|
|
"J.P.", "Delport"},
|
|
|
|
|
{"Jos<EFBFBD>", "Delport",
|
|
|
|
|
"J.P.", "Delport"},
|
|
|
|
|
{"Franz", "Melchior",
|
|
|
|
|
"Melchior", "Franz"},
|
|
|
|
|
{"Glen", "Waldon",
|
|
|
|
|
"Glenn", "Waldron"},
|
|
|
|
|
{"Ralf", "Karn",
|
|
|
|
|
"Ralf", "Kern"},
|
|
|
|
|
{"Donny", "Cipperly",
|
|
|
|
|
"Donald", "Cipperly"},
|
|
|
|
|
{"Gino", "van",
|
|
|
|
|
"Gino", "van den Bergen"},
|
|
|
|
|
{"Radu", "Mihai",
|
|
|
|
|
"Mihai", "Radu"},
|
|
|
|
|
{"Art", "Trevs",
|
|
|
|
|
"Art", "Tevs"},
|
|
|
|
|
{"Tim", "More",
|
|
|
|
|
"Tim", "Moore"},
|
|
|
|
|
{"Andre", "Garneau",
|
|
|
|
|
"Andr<EFBFBD>", "Garneau"},
|
|
|
|
|
{"Eric", "Hammil",
|
|
|
|
|
"Chris", "Hanson"},
|
|
|
|
|
{"Paul", "de",
|
|
|
|
|
"Paul", "de Repentigny"},
|
|
|
|
|
{"Raymond", "de",
|
|
|
|
|
"Raymond", "de Vries"},
|
|
|
|
|
{"Nick", "",
|
|
|
|
|
"Trajce", "Nikolov"},
|
|
|
|
|
{"Daniel", "",
|
|
|
|
|
"Daniel", "Sj<EFBFBD>lie"},
|
|
|
|
|
{"Julia", "Ortiz",
|
|
|
|
|
"Julian", "Ortiz"},
|
|
|
|
|
{"Rune", "Schmidt",
|
|
|
|
|
"Rune", "Schmidt Jensen"},
|
|
|
|
|
{"Romano", "Jos<EFBFBD>",
|
|
|
|
|
"Romano", "Jos<EFBFBD> Magacho da Silva"},
|
|
|
|
|
{"Rommano", "Silva",
|
|
|
|
|
"Romano", "Jos<EFBFBD> Magacho da Silva"},
|
2013-10-04 00:20:29 +08:00
|
|
|
|
{"Romano", "Magacho",
|
|
|
|
|
"Romano", "Jos<EFBFBD> Magacho da Silva"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"Leandro", "Motta",
|
|
|
|
|
"Leandro", "Motta Barros"},
|
2012-02-10 01:45:23 +08:00
|
|
|
|
{"Leandro", "Motto",
|
|
|
|
|
"Leandro", "Motta Barros"},
|
2009-05-15 00:24:39 +08:00
|
|
|
|
{"A", "Botorabi",
|
|
|
|
|
"Ali", "Botorabi"},
|
|
|
|
|
{"Waltice", "",
|
|
|
|
|
"Walter", "J. Altice"},
|
|
|
|
|
{"Drew", "",
|
|
|
|
|
"Drew", "Whitehouse"},
|
|
|
|
|
{"Douglas", "A",
|
|
|
|
|
"Douglas", "A. Pouk"},
|
|
|
|
|
{"Colin", "MacDonald",
|
|
|
|
|
"Colin", "McDonald"},
|
|
|
|
|
{"Nikolov", "Trajce",
|
|
|
|
|
"Trajce", "Nikolov"},
|
|
|
|
|
{"Frauciel", "Luc",
|
|
|
|
|
"Luc", "Frauciel"},
|
2009-06-22 21:08:06 +08:00
|
|
|
|
{"Alberto", "Lucas",
|
|
|
|
|
"Alberto", "Luaces"},
|
2012-02-10 01:45:23 +08:00
|
|
|
|
{"Alberto", "Luacus",
|
|
|
|
|
"Alberto", "Luaces"},
|
2010-06-18 23:46:10 +08:00
|
|
|
|
{"Tyge", "",
|
2010-09-17 22:26:27 +08:00
|
|
|
|
"Tyge", "L<EFBFBD>vset"},
|
|
|
|
|
{"Ricard", "Schmidt",
|
|
|
|
|
"Richard", "Schmidt"}
|
2009-05-15 00:24:39 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool validName(const string& first)
|
|
|
|
|
{
|
|
|
|
|
// Check for valid names
|
|
|
|
|
for (unsigned int i = 0; i < sizeof(validNames) / sizeof(char*); ++i)
|
|
|
|
|
{
|
|
|
|
|
if (first == validNames[i])
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (first.empty()) return false;
|
|
|
|
|
|
|
|
|
|
if (first[0] < 'A' || first[0] > 'Z') return false;
|
|
|
|
|
|
|
|
|
|
if (first.size() >= 2 && (first[1] < 'a' || first[1] > 'z') && (first[1] != '.') && (first[1] != ',')) return false;
|
|
|
|
|
|
|
|
|
|
// Check for invalid names
|
|
|
|
|
for (unsigned int i = 0; i < sizeof(invalidNames) / sizeof(char*); ++i)
|
|
|
|
|
{
|
|
|
|
|
if (first == invalidNames[i])
|
|
|
|
|
{
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Default to a valid name
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string typoCorrection(const string& name)
|
|
|
|
|
{
|
|
|
|
|
// Loop over all known typo corrections
|
|
|
|
|
for (unsigned int i = 0; i < sizeof(typoCorrections) / sizeof(TypoCorrection); ++i)
|
|
|
|
|
{
|
|
|
|
|
// If a typo is found
|
|
|
|
|
if (name == typoCorrections[i].original)
|
|
|
|
|
{
|
|
|
|
|
// Return the correction
|
|
|
|
|
return typoCorrections[i].corrected;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return name;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void nameCorrection(NamePair& name)
|
|
|
|
|
{
|
|
|
|
|
// Loop over all known name corrections
|
|
|
|
|
for (unsigned int i = 0; i < sizeof(nameCorrections) / sizeof(NameCorrection); ++i)
|
|
|
|
|
{
|
|
|
|
|
// If a matching name is found
|
|
|
|
|
if (name.first == nameCorrections[i].originalFirst &&
|
|
|
|
|
name.second == nameCorrections[i].originalSecond)
|
|
|
|
|
{
|
|
|
|
|
// Return the correction
|
|
|
|
|
name.first = nameCorrections[i].correctedFirst;
|
|
|
|
|
name.second = nameCorrections[i].correctedSecond;
|
|
|
|
|
|
|
|
|
|
// Early out, since we don't want corrections of corrections
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void lastValidCharacter(const string& name, unsigned int& pos, char c)
|
|
|
|
|
{
|
|
|
|
|
for (unsigned int i = 0; i < pos; ++i)
|
|
|
|
|
{
|
|
|
|
|
if (name[i] == c)
|
|
|
|
|
{
|
|
|
|
|
pos = i;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void lastValidCharacter(const string& name, unsigned int& last)
|
|
|
|
|
{
|
|
|
|
|
lastValidCharacter(name, last, '.');
|
|
|
|
|
lastValidCharacter(name, last, ',');
|
|
|
|
|
lastValidCharacter(name, last, '\'');
|
|
|
|
|
lastValidCharacter(name, last, '/');
|
|
|
|
|
lastValidCharacter(name, last, '\\');
|
|
|
|
|
lastValidCharacter(name, last, ':');
|
|
|
|
|
lastValidCharacter(name, last, ';');
|
|
|
|
|
lastValidCharacter(name, last, ')');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
NamePair createName(const string& first, const string& second)
|
|
|
|
|
{
|
|
|
|
|
if (first.empty()) return EmptyNamePair;
|
|
|
|
|
|
|
|
|
|
// cout << "first = " << first << " second = " << second << endl;
|
|
|
|
|
|
|
|
|
|
unsigned int last = first.size();
|
|
|
|
|
lastValidCharacter(first, last);
|
|
|
|
|
|
|
|
|
|
if (last == 0) return EmptyNamePair;
|
|
|
|
|
|
|
|
|
|
string name;
|
|
|
|
|
|
|
|
|
|
name.append(first.begin(), first.begin() + last);
|
|
|
|
|
|
|
|
|
|
if (!validName(name)) return EmptyNamePair;
|
|
|
|
|
|
|
|
|
|
name = typoCorrection(name);
|
|
|
|
|
|
|
|
|
|
if (second.empty() ||
|
|
|
|
|
!validName(second))
|
|
|
|
|
{
|
|
|
|
|
// filter any single or two letter words as unlike to be names.
|
|
|
|
|
if (name.size() <= 2) return EmptyNamePair;
|
|
|
|
|
|
|
|
|
|
return NamePair(name, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
last = second.size();
|
|
|
|
|
|
|
|
|
|
lastValidCharacter(second, last);
|
|
|
|
|
|
|
|
|
|
if (last > 0)
|
|
|
|
|
{
|
|
|
|
|
string surname(second.begin(), second.begin() + last);
|
|
|
|
|
|
|
|
|
|
if (validName(surname))
|
|
|
|
|
{
|
|
|
|
|
surname = typoCorrection(surname);
|
|
|
|
|
return NamePair(name, surname);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// filter any single or two letter words as unlike to be names.
|
|
|
|
|
if (name.size() <= 2) return EmptyNamePair;
|
|
|
|
|
|
|
|
|
|
return NamePair(name, "");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool submissionsSequence(const Words& words, unsigned int& i)
|
|
|
|
|
{
|
|
|
|
|
if (i + 1 >= words.size()) return false;
|
|
|
|
|
|
|
|
|
|
if (words[i] == "From" ||
|
|
|
|
|
words[i] == "from" ||
|
|
|
|
|
words[i] == "From:" ||
|
|
|
|
|
words[i] == "from:" ||
|
|
|
|
|
words[i] == "Merged" ||
|
|
|
|
|
words[i] == "Integrated") return true;
|
|
|
|
|
|
|
|
|
|
if (i + 2 >= words.size()) return false;
|
|
|
|
|
|
|
|
|
|
if (words[i] == "submitted" && words[i + 1] == "by")
|
|
|
|
|
{
|
|
|
|
|
i += 1;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (words[i] == "Folded" && words[i + 1] == "in")
|
|
|
|
|
{
|
|
|
|
|
i += 1;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (words[i] == "Rolled" && words[i + 1] == "in")
|
|
|
|
|
{
|
|
|
|
|
i += 1;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (words[i] == "Checked" && words[i + 1] == "in")
|
|
|
|
|
{
|
|
|
|
|
i += 1;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (i + 3 >= words.size()) return false;
|
|
|
|
|
|
|
|
|
|
if (words[i] == "sent" && words[i + 1] == "in" && words[i + 2] == "by")
|
|
|
|
|
{
|
|
|
|
|
i += 2;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void readContributors(NameMap& names, const string& file)
|
|
|
|
|
{
|
|
|
|
|
osgDB::ifstream fin(file.c_str());
|
|
|
|
|
|
|
|
|
|
Words words;
|
|
|
|
|
while(fin)
|
|
|
|
|
{
|
|
|
|
|
string keyword;
|
|
|
|
|
fin >> keyword;
|
|
|
|
|
words.push_back(keyword);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string blank_string;
|
|
|
|
|
|
|
|
|
|
for(unsigned int i = 0; i < words.size(); ++i)
|
|
|
|
|
{
|
|
|
|
|
if (submissionsSequence(words, i))
|
|
|
|
|
{
|
|
|
|
|
if (i + 2 < words.size() && validName(words[i + 1]))
|
|
|
|
|
{
|
|
|
|
|
NamePair name = createName(words[i + 1], words[i + 2]);
|
|
|
|
|
nameCorrection(name);
|
|
|
|
|
if (!name.first.empty()) ++names[name];
|
|
|
|
|
i += 2;
|
|
|
|
|
}
|
|
|
|
|
else if (i + 1 < words.size() && validName(words[i + 1]))
|
|
|
|
|
{
|
|
|
|
|
NamePair name = createName(words[i + 1], blank_string);
|
|
|
|
|
nameCorrection(name);
|
|
|
|
|
if (!name.first.empty()) ++names[name];
|
|
|
|
|
i += 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
if (words[i] == "robert")
|
|
|
|
|
{
|
|
|
|
|
++names[NameRobertOsfield];
|
|
|
|
|
}
|
|
|
|
|
else if (words[i] == "don")
|
|
|
|
|
{
|
|
|
|
|
++names[NameDonBurns];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// reassign fisrt name entries to their full names entries
|
|
|
|
|
if (names.size() > 1)
|
|
|
|
|
{
|
|
|
|
|
for (NameMap::iterator itr = names.begin(); itr != names.end(); )
|
|
|
|
|
{
|
|
|
|
|
if (itr->first.second.empty())
|
|
|
|
|
{
|
|
|
|
|
NameMap::iterator next_itr = itr;
|
|
|
|
|
++next_itr;
|
|
|
|
|
|
|
|
|
|
if (next_itr != names.end() && itr->first.first == next_itr->first.first)
|
|
|
|
|
{
|
|
|
|
|
next_itr->second += itr->second;
|
|
|
|
|
names.erase(itr);
|
|
|
|
|
itr = next_itr;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
++itr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
++itr;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// remove the double entries from Robert's contributions
|
|
|
|
|
if (names.size() > 1)
|
|
|
|
|
{
|
|
|
|
|
for (NameMap::iterator itr = names.begin(); itr != names.end(); ++itr)
|
|
|
|
|
{
|
|
|
|
|
if (itr->first != NameRobertOsfield && itr->first != NameDonBurns)
|
|
|
|
|
{
|
|
|
|
|
names[NameRobertOsfield] -= itr->second;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void buildContributors(NameMap& names)
|
|
|
|
|
{
|
|
|
|
|
// top five contributors
|
|
|
|
|
++names[NamePair("Robert", "Osfield")];
|
|
|
|
|
++names[NamePair("Don", "Burns")];
|
|
|
|
|
++names[NamePair("Marco", "Jez")];
|
|
|
|
|
++names[NamePair("Mike", "Weiblen")];
|
|
|
|
|
++names[NamePair("Geoff", "Michel")];
|
|
|
|
|
++names[NamePair("Ben", "van Basten")];
|
|
|
|
|
|
|
|
|
|
// contributors that don't appear in the ChangeLog due to their contributions
|
|
|
|
|
// being before CVS started for the OSG, or before the name logging began.
|
|
|
|
|
++names[NamePair("Karsten", "Weiss")];
|
|
|
|
|
++names[NamePair("Graeme", "Harkness")];
|
|
|
|
|
++names[NamePair("Axel", "Volley")];
|
|
|
|
|
++names[NamePair("Nikolaus", "Hanekamp")];
|
|
|
|
|
++names[NamePair("Kristopher", "Bixler")];
|
|
|
|
|
++names[NamePair("Tanguy", "Fautr<EFBFBD>")];
|
|
|
|
|
++names[NamePair("J.E.", "Hoffmann")];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void printContributors(const std::string& changeLog, bool printNumEntries)
|
|
|
|
|
{
|
|
|
|
|
NameMap names;
|
|
|
|
|
buildContributors(names);
|
|
|
|
|
if (!changeLog.empty())
|
|
|
|
|
{
|
|
|
|
|
readContributors(names, changeLog);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
typedef multimap<unsigned int, NamePair> SortedNameMap;
|
|
|
|
|
|
|
|
|
|
SortedNameMap sortedNames;
|
|
|
|
|
for (NameMap::iterator itr = names.begin(); itr != names.end(); ++itr)
|
|
|
|
|
{
|
|
|
|
|
sortedNames.insert(SortedNameMap::value_type(itr->second, itr->first));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
cout << names.size() << " Contributors:" << endl << endl;
|
|
|
|
|
|
|
|
|
|
if (printNumEntries)
|
|
|
|
|
{
|
|
|
|
|
cout << "Entries Firstname Surname" << endl;
|
|
|
|
|
cout << "-------------------------" << endl;
|
|
|
|
|
for (SortedNameMap::reverse_iterator sitr = sortedNames.rbegin(); sitr != sortedNames.rend(); ++sitr)
|
|
|
|
|
{
|
|
|
|
|
cout << sitr->first << "\t" << sitr->second.first << " " << sitr->second.second << endl;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
cout << "Firstname Surname" << endl;
|
|
|
|
|
cout << "-----------------" << endl;
|
|
|
|
|
for (SortedNameMap::reverse_iterator sitr = sortedNames.rbegin(); sitr != sortedNames.rend(); ++sitr)
|
|
|
|
|
{
|
|
|
|
|
cout << sitr->second.first << " " << sitr->second.second << endl;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|