id
int64
0
877k
file_name
stringlengths
3
109
file_path
stringlengths
13
185
content
stringlengths
31
9.38M
size
int64
31
9.38M
language
stringclasses
1 value
extension
stringclasses
11 values
total_lines
int64
1
340k
avg_line_length
float64
2.18
149k
max_line_length
int64
7
2.22M
alphanum_fraction
float64
0
1
repo_name
stringlengths
6
66
repo_stars
int64
94
47.3k
repo_forks
int64
0
12k
repo_open_issues
int64
0
3.4k
repo_license
stringclasses
11 values
repo_extraction_date
stringclasses
197 values
exact_duplicates_redpajama
bool
2 classes
near_duplicates_redpajama
bool
2 classes
exact_duplicates_githubcode
bool
2 classes
exact_duplicates_stackv2
bool
1 class
exact_duplicates_stackv1
bool
2 classes
near_duplicates_githubcode
bool
2 classes
near_duplicates_stackv1
bool
2 classes
near_duplicates_stackv2
bool
1 class
1,543,141
dockingResource.h
shriprem_FWDataViz/src/NPP/dockingResource.h
// This file is part of Notepad++ project // Copyright (C)2006 Jens Lorenz <jens.plugin.npp@gmx.de> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // at ...
2,507
C++
.h
54
44
73
0.617623
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,143
menuCmdID.h
shriprem_FWDataViz/src/NPP/menuCmdID.h
// This file is part of Notepad++ project // Copyright (C)2024 Don HO <don.h@free.fr> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // at your option an...
38,710
C++
.h
599
59.776294
127
0.53099
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
1,543,144
PluginInterface.h
shriprem_FWDataViz/src/NPP/PluginInterface.h
// This file is part of Notepad++ project // Copyright (C)2024 Don HO <don.h@free.fr> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // at your option an...
2,368
C++
.h
55
41.509091
119
0.75817
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,145
Docking.h
shriprem_FWDataViz/src/NPP/Docking.h
// This file is part of Notepad++ project // Copyright (C)2024 Don HO <don.h@free.fr> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // at your option an...
2,975
C++
.h
57
50.649123
129
0.715517
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,146
StaticDialog.h
shriprem_FWDataViz/src/NPP/StaticDialog.h
// This file is part of Notepad++ project // Copyright (C)2024 Don HO <don.h@free.fr> // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // at your option an...
2,920
C++
.h
74
36.743243
105
0.743626
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,147
control_ids.h
shriprem_FWDataViz/src/Resources/control_ids.h
#pragma once #define IDD_VISUALIZER_DOCKPANEL 9000 #define IDC_VIZPANEL_FILETYPE_LABEL 9001 #define IDC_VIZPANEL_FILE_SAMPLES_BTN 9002 #define IDC_VIZPANEL_FILETYPE_CONFIG 9003 #define IDC_VIZPANEL_FILETYPE_SELECT 9004 #define IDC_VIZPANEL_THEME_LABEL 9005 #define IDC_VIZPANEL_THEME_CONFIG ...
18,723
C++
.h
415
44.06988
45
0.717863
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,148
SamplesMenuDefs.h
shriprem_FWDataViz/src/Resources/SamplesMenuDefs.h
#pragma once #include <string> using std::wstring; const enum SampleFileTypes { SINGLE_REC, MULTI_REC, MULTI_LINE }; struct SampleFileInfo { SampleFileTypes sample_type; string display_name; wstring file_name; string file_type; }; const SampleFileInfo gSampleFiles[] = { { SINGLE_REC, ...
2,095
C++
.h
89
17.921348
69
0.607794
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,149
localization.h
shriprem_FWDataViz/src/Resources/localization.h
#pragma once // Common #define MENU_PANEL_NAME L"Fixed-Width Data Visualizer" #define MENU_SHOW_PANEL L"Show FWData&Viz Panel" #define MENU_CONFIG_FILE_TYPES L"Configure &File Types" #define MENU_CONFIG_THEMES L"Configure Color &Themes" #define MENU_FIELD_JUMP L"&Jump ...
24,906
C++
.h
326
75.104294
570
0.743138
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,150
FWVIZ_messages.h
shriprem_FWDataViz/src/Resources/FWVIZ_messages.h
#pragma once #define FWVIZMSG 0x1000 /// <summary> /// Used by EximFileTypeDialog to Append File Type / Theme / Fold Struct data /// </summary> /// <param name="WPARAM">: 0 - Not Used</param> /// <param name="LAPRAM">: LPTSTR to the temp file name with data to be appended</param> #define FWVIZMSG_A...
354
C++
.h
8
42.875
88
0.673469
shriprem/FWDataViz
37
6
0
GPL-2.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,152
texmark.cpp
jgain_EcoLearn/UnderSim/clh/texmark.cpp
/** * @file * * Report the image formats supported by the OpenCL implementation. */ #include "clhpp.h" #include <common/debug_vector.h> #include <common/debug_unordered_map.h> #include <string> #include <iostream> #include <iomanip> #include <sstream> #include <boost/program_options.hpp> #include "clh.h" namespac...
3,897
C++
.cpp
101
29.534653
107
0.564069
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,153
climgformats.cpp
jgain_EcoLearn/UnderSim/clh/climgformats.cpp
/** * @file * * Report the image formats supported by the OpenCL implementation. */ #include "clhpp.h" #include <common/debug_vector.h> #include <common/debug_string.h> #include <iostream> #include <iomanip> #include <sstream> static uts::string orderToString(cl_channel_order order) { switch (order) { #de...
2,879
C++
.cpp
103
20.514563
97
0.566269
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,154
timer.cpp
jgain_EcoLearn/UnderSim/clh/timer.cpp
/** * @file * * Timing of OpenCL operations. */ #include <memory> #include <utility> #include <chrono> #include <common/timer.h> #include "clhpp.h" #include "timer.h" namespace CLH { Timer::Timer(const cl::CommandQueue &queue, const stats::TimeInit &t, double *out) : stats::TimerBase(t, out) { if (stats:...
1,524
C++
.cpp
57
22.508772
95
0.651816
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,155
clh.cpp
jgain_EcoLearn/UnderSim/clh/clh.cpp
/** * @file */ #if HAVE_CONFIG_H # include <config.h> #endif #include <boost/program_options.hpp> #include <boost/lexical_cast.hpp> #include "clhpp.h" #include <iostream> #include <common/debug_vector.h> #include <common/debug_string.h> #include <common/debug_unordered_map.h> #include <sstream> #include <utility> #i...
12,401
C++
.cpp
357
26.439776
107
0.571904
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,156
eco.cpp
jgain_EcoLearn/UnderSim/sim/eco.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
30,947
C++
.cpp
823
28.345079
222
0.530546
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,160
main.cpp
jgain_EcoLearn/UnderSim/sim/main.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
6,701
C++
.cpp
158
34.85443
158
0.59387
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,161
sim.cpp
jgain_EcoLearn/UnderSim/sim/sim.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
71,305
C++
.cpp
1,833
29.142935
247
0.520331
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,164
glwidget.cpp
jgain_EcoLearn/UnderSim/sim/glwidget.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
47,865
C++
.cpp
1,343
29.400596
221
0.611033
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,165
main_sunsim.cpp
jgain_EcoLearn/UnderSim/sim/main_sunsim.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
5,523
C++
.cpp
137
35.80292
137
0.649823
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,166
stroke.cpp
jgain_EcoLearn/UnderSim/sim/stroke.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
57,881
C++
.cpp
1,810
23.903315
153
0.511662
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,168
typemap.cpp
jgain_EcoLearn/UnderSim/sim/typemap.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
25,839
C++
.cpp
703
26.035562
114
0.481536
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,169
moisture.cpp
jgain_EcoLearn/UnderSim/sim/moisture.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
10,773
C++
.cpp
235
36.944681
242
0.565553
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,171
window.cpp
jgain_EcoLearn/UnderSim/sim/window.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
27,446
C++
.cpp
678
35.457227
156
0.692481
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,172
sun.cpp
jgain_EcoLearn/UnderSim/sim/sun.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
27,248
C++
.cpp
736
29.599185
196
0.565013
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,173
grass.cpp
jgain_EcoLearn/UnderSim/sim/grass.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
1,601
C++
.cpp
47
28.829787
85
0.565526
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,174
vecpnt.cpp
jgain_EcoLearn/UnderSim/sim/vecpnt.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
8,919
C++
.cpp
293
24.194539
106
0.524548
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,175
trenderer.cpp
jgain_EcoLearn/UnderSim/sim/trenderer.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
69,033
C++
.cpp
1,412
42.861898
165
0.645393
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,176
terrain.cpp
jgain_EcoLearn/UnderSim/sim/terrain.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
15,326
C++
.cpp
519
23.379576
134
0.550657
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,177
pft.cpp
jgain_EcoLearn/UnderSim/sim/pft.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
22,425
C++
.cpp
708
23.323446
155
0.518368
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,179
shape.cpp
jgain_EcoLearn/UnderSim/sim/shape.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
39,773
C++
.cpp
924
31.19697
142
0.502299
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,181
waterfill.cpp
jgain_EcoLearn/UnderSim/sim/waterfill.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
13,904
C++
.cpp
383
27.180157
140
0.510421
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,182
descriptor.cpp
jgain_EcoLearn/UnderSim/sim/descriptor.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems (Undergrowth simulator) * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the term...
2,808
C++
.cpp
81
27.567901
87
0.52965
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,184
exrrewrite.cpp
jgain_EcoLearn/UnderSim/common/exrrewrite.cpp
#include <iostream> #include <algorithm> #include <common/debug_vector.h> #include <utility> #include <memory> #include <cstddef> #include <thread> #include <boost/program_options.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/fusion/include/std_pair.hpp> #include <ImfFrameBuffer.h> #include <ImfInputFile....
7,946
C++
.cpp
207
29.599034
124
0.56267
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,185
heighttool.cpp
jgain_EcoLearn/UnderSim/common/heighttool.cpp
#include <stdexcept> #include <cstddef> #include <map> #include <common/debug_string.h> #include <common/debug_vector.h> #include <boost/lexical_cast.hpp> #include <boost/program_options.hpp> #include <boost/spirit/include/qi.hpp> #include "str.h" #include "map.h" #include "map_rgba.h" #include "initialize.h" namespac...
11,636
C++
.cpp
289
31.910035
127
0.548798
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,186
region.cpp
jgain_EcoLearn/UnderSim/common/region.cpp
/** * @file * * Data structure representing a rectangular region of 2D space. */ #include <cassert> #include <algorithm> #include "region.h" Region::Region() : x0(0), y0(0), x1(0), y1(0) { } Region::Region(int x0, int y0, int x1, int y1) : x0(x0), y0(y0), x1(x1), y1(y1) { assert(x0 <= x1); assert...
2,312
C++
.cpp
104
18.307692
84
0.588504
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,187
map2exr.cpp
jgain_EcoLearn/UnderSim/common/map2exr.cpp
#include <iostream> #include <locale> #include <stdexcept> #include "debug_string.h" #include "map.h" #include "initialize.h" static void usage() { std::cerr << "Usage: map2exr input.map output.exr\n"; } static MemMap<height_tag> loadMap(const uts::string &filename) { std::ifstream in(filename); if (!in) ...
1,335
C++
.cpp
55
18.254545
81
0.523511
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,192
utsclassify.cpp
jgain_EcoLearn/UnderSim/common/utsclassify.cpp
/** * @file * * Automatically classifies terrain types. */ #include <boost/program_options.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/fusion/include/std_pair.hpp> #include <string> #include <algorithm> #include <utility> #include <limits> #include <random> #include <cmath> #include <sstream> #incl...
22,389
C++
.cpp
605
29.046281
125
0.564108
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,193
map_rgba.cpp
jgain_EcoLearn/UnderSim/common/map_rgba.cpp
/** * @file * * Specialization of @ref MapTraits for color images. */ #include <cmath> #include <ImfFrameBuffer.h> #include <thread> #include "map.h" #include "map_rgba.h" #include "str.h" #include <Magick++.h> static constexpr Magick::Quantum getQuantumRange() { using namespace Magick; // otherwise the macro...
5,371
C++
.cpp
133
33.857143
108
0.609279
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,194
progress.cpp
jgain_EcoLearn/UnderSim/common/progress.cpp
/** * @file * * A thread-safe progress meter, modelled on boost::progress_display. */ #include "progress.h" template class ProgressDisplay<std::uint64_t>;
161
C++
.cpp
7
21.142857
69
0.736842
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,196
maputils.cpp
jgain_EcoLearn/UnderSim/common/maputils.cpp
/** * @file * * Some utility functions for dealing with maps. */ #include <utility> #include "map.h" #include "maputils.h" std::pair<MemMap<height_tag>, MemMap<mask_tag> > demultiplex(const MemMap<height_and_mask_tag> &in) { std::pair<MemMap<height_tag>, MemMap<mask_tag> > out; const Region region = in.re...
809
C++
.cpp
28
24.428571
80
0.623711
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,197
terragen.cpp
jgain_EcoLearn/UnderSim/common/terragen.cpp
/** * @file * * Terragen format import and export. * @see http://www.planetside.co.uk/terragen/dev/tgterrain.html */ #include <fstream> #include <algorithm> #include <limits> #include <cstring> #include <utility> #include <stdexcept> #include <locale> #include <cstdint> #include <cmath> #include <common/debug_str...
8,594
C++
.cpp
223
29.345291
114
0.546053
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,198
gdal2exr.cpp
jgain_EcoLearn/UnderSim/common/gdal2exr.cpp
#include <iostream> #include <locale> #include <common/debug_string.h> #include <common/debug_vector.h> #include <stack> #include <stdexcept> #include <cstdint> #include <limits> #include <cstring> #include <cmath> #include <boost/program_options.hpp> #include "map.h" #include "initialize.h" #include "gdal_priv.h" #inc...
9,450
C++
.cpp
258
27.620155
124
0.542549
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,199
map.cpp
jgain_EcoLearn/UnderSim/common/map.cpp
/** * @file * * Classes for 2D arrays of data. */ #include <ImfFrameBuffer.h> #include <ImfInputFile.h> #include <ImfFloatAttribute.h> #include <algorithm> #include <string> #include <utility> #include <cassert> #include "map.h" #include "str.h" #include "terragen.h" #include "obj.h" namespace detail { float get...
10,938
C++
.cpp
300
31.22
117
0.605875
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,200
initialize.cpp
jgain_EcoLearn/UnderSim/common/initialize.cpp
/** * @file * * Startup code that must be called by @c main. */ #include <thread> #include <eigen3/Eigen/Core> #include <ImfThreading.h> #include "initialize.h" void utsInitialize() { Eigen::initParallel(); Imf::setGlobalThreadCount(std::thread::hardware_concurrency()); }
287
C++
.cpp
14
18.5
67
0.723247
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,201
color2gray.cpp
jgain_EcoLearn/UnderSim/common/color2gray.cpp
#include <stdexcept> #include <array> #include <cstddef> #include <type_traits> #include <ImfFrameBuffer.h> #include "map.h" #include "map_rgba.h" #include "initialize.h" int main(int argc, char **argv) { utsInitialize(); if (argc != 3) { std::cerr << "Usage: color2gray input.exr output.exr\n"; ...
545
C++
.cpp
28
14.964286
64
0.568932
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,202
palette.cpp
jgain_EcoLearn/EcoSynth/viewer/palette.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) and K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * i...
8,067
C++
.cpp
257
26.229572
139
0.605053
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,203
test_specassign.cpp
jgain_EcoLearn/EcoSynth/viewer/test_specassign.cpp
#include "canopy_placement/basic_types.h" #include "canopy_placement/species_assign.h" #include "canopy_placement/misc.h" #include "canopy_placement/extract_png.h" #include <functional> #include <algorithm> int main(int argc, char * argv []) { int width, height; int mwidth, mheight; std::vector<basic_tree...
2,062
C++
.cpp
51
35.196078
147
0.638319
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,204
ipc.cpp
jgain_EcoLearn/EcoSynth/viewer/ipc.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
9,367
C++
.cpp
234
32.452991
148
0.560123
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,205
eco.cpp
jgain_EcoLearn/EcoSynth/viewer/eco.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) and K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * i...
50,210
C++
.cpp
1,287
29.431235
260
0.529687
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,206
convertpaintingdialog.cpp
jgain_EcoLearn/EcoSynth/viewer/convertpaintingdialog.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
1,752
C++
.cpp
49
32.204082
82
0.628538
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,207
main.cpp
jgain_EcoLearn/EcoSynth/viewer/main.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) and K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it...
6,213
C++
.cpp
149
35.268456
126
0.614888
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,208
synth.cpp
jgain_EcoLearn/EcoSynth/viewer/synth.cpp
// synth.h: generate plant distributions interactively. Recoded from Harry Longs original generator. // author: James Gain // date: 1 August 2016 #include "synth.h" #include "eco.h" #include <radialDistribution/reproducer/file_utils.h> #include <radialDistribution/reproducer/analysis_point.h> #include <radialDistribut...
61,647
C++
.cpp
1,313
39.093679
274
0.635489
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,209
speciesColoursWindow.cpp
jgain_EcoLearn/EcoSynth/viewer/speciesColoursWindow.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
2,178
C++
.cpp
57
33.789474
100
0.642315
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,210
sim.cpp
jgain_EcoLearn/EcoSynth/viewer/sim.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
35,352
C++
.cpp
1,006
26.759443
156
0.536418
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,211
clusters.cpp
jgain_EcoLearn/EcoSynth/viewer/clusters.cpp
#include "clusters.h" #include "grass.h" #include <stdio.h> #include <iostream> #include <fstream> #include <list> using namespace std; void Clusters::mapColours() { int maxval, maxind; colmapping.resize((int) climits.size(), 0); // put all cluster indices in a list std::list<int> indices; for(...
9,550
C++
.cpp
268
27.776119
144
0.564638
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,212
palette_base.cpp
jgain_EcoLearn/EcoSynth/viewer/palette_base.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) and K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it...
8,336
C++
.cpp
211
33.222749
196
0.620114
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,213
specpalette_window.cpp
jgain_EcoLearn/EcoSynth/viewer/specpalette_window.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
1,714
C++
.cpp
50
31.98
82
0.67411
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,214
glwidget.cpp
jgain_EcoLearn/EcoSynth/viewer/glwidget.cpp
// Authors: K.P. Kapp and J.E. Gain /******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) and J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you c...
92,145
C++
.cpp
2,404
31.671381
237
0.625398
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,215
stroke.cpp
jgain_EcoLearn/EcoSynth/viewer/stroke.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
58,002
C++
.cpp
1,812
23.934327
153
0.511369
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,216
typemap.cpp
jgain_EcoLearn/EcoSynth/viewer/typemap.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) and K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it...
45,331
C++
.cpp
1,124
30.474199
197
0.4783
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,217
moisture.cpp
jgain_EcoLearn/EcoSynth/viewer/moisture.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
11,418
C++
.cpp
243
36.794239
243
0.550311
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,218
ConfigReader.cpp
jgain_EcoLearn/EcoSynth/viewer/ConfigReader.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
4,405
C++
.cpp
115
31.156522
104
0.599813
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,219
window.cpp
jgain_EcoLearn/EcoSynth/viewer/window.cpp
/**************************************************************************** ** ** Copyright (C) 2012 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** You may use this file under the terms of th...
48,708
C++
.cpp
1,227
32.533007
156
0.651564
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,220
sun.cpp
jgain_EcoLearn/EcoSynth/viewer/sun.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
23,831
C++
.cpp
644
30.40528
196
0.591238
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,221
grass.cpp
jgain_EcoLearn/EcoSynth/viewer/grass.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
15,652
C++
.cpp
379
30.973615
150
0.519761
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,222
trenderer.cpp
jgain_EcoLearn/EcoSynth/viewer/trenderer.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
83,655
C++
.cpp
1,737
41.217041
165
0.627565
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,223
terrain.cpp
jgain_EcoLearn/EcoSynth/viewer/terrain.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
16,751
C++
.cpp
556
24.001799
134
0.555832
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,224
pft.cpp
jgain_EcoLearn/EcoSynth/viewer/pft.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) and K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * i...
9,571
C++
.cpp
260
28.407692
155
0.526089
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,226
shape.cpp
jgain_EcoLearn/EcoSynth/viewer/shape.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
40,462
C++
.cpp
947
30.99472
132
0.504978
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,227
specselect_window.cpp
jgain_EcoLearn/EcoSynth/viewer/specselect_window.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Gener...
3,020
C++
.cpp
97
25.649485
98
0.604467
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,228
fill.cpp
jgain_EcoLearn/EcoSynth/viewer/fill.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 J.E. Gain (jgain@cs.uct.ac.za) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Publ...
10,850
C++
.cpp
362
22.740331
92
0.523481
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,229
histcomp_window.cpp
jgain_EcoLearn/EcoSynth/viewer/histcomp_window.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
6,010
C++
.cpp
172
26.598837
139
0.523793
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,230
interp.cpp
jgain_EcoLearn/EcoSynth/viewer/interp.cpp
#include "interp.h" #include <iostream> #include <fstream> #include <vector> #include <cassert> #include <limits> #include <math.h> using namespace std; float Interpolator::max(const Histogram& h) { float ans = std::numeric_limits<float>::min(); for(float f : h) ans = std::max(ans, f); return ans...
14,583
C++
.cpp
344
33.424419
186
0.579074
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,231
test_canopy_placement.cpp
jgain_EcoLearn/EcoSynth/viewer/tests/test_canopy_placement.cpp
#include "canopy_placement/gpu_procs.h" #include "data_importer.h" #include <string> #include "canopy_placement/basic_types.h" #include <sqlite3.h> #include <boost/filesystem.hpp> #include <boost/range/iterator_range.hpp> void test_local_maxima_find() { std::cerr << "test_find_local_maxima_gpu: " << std::endl; ...
3,549
C++
.cpp
94
31.840426
107
0.639091
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,232
main.cpp
jgain_EcoLearn/EcoSynth/undersample/main.cpp
#include <canopy_placement/gl_wrapper.h> #include <data_importer.h> #include <canopy_placement/basic_types.h> #include <canopy_placement/gpu_procs.h> #include <chrono> #include <random> int main(int argc, char * argv []) { const int w = 128; const int h = 128; std::default_random_engine generator(std::chr...
4,270
C++
.cpp
113
29.548673
129
0.568665
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,233
map_rgba.cpp
jgain_EcoLearn/EcoSynth/common/map_rgba.cpp
/** * @file * * Specialization of @ref MapTraits for color images. */ #include <cmath> #include <Magick++.h> #include <ImfFrameBuffer.h> #include <thread> #include "map.h" #include "map_rgba.h" #include "str.h" static constexpr Magick::Quantum getQuantumRange() { using namespace Magick; // otherwise the macro...
5,371
C++
.cpp
133
33.857143
108
0.609279
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,234
kmeans.cpp
jgain_EcoLearn/EcoSynth/kmeans/src/kmeans.cpp
#include "kmeans.h" // #include <QObject> // #include <QTimer> //#include <QVector2D> #include <iostream> #include <fstream> #include <chrono> #include <random> // uncomment to disable assert() // #define NDEBUG #include <cassert> using namespace std; bool kMeans::close(int k, std::vector<std::array<float,kMeans::nd...
11,035
C++
.cpp
283
28.508834
165
0.524986
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,235
main.cpp
jgain_EcoLearn/EcoSynth/kmeans/src/main.cpp
#include "kmeans.h" int main(int argc, char **argv) { kMeans * km = new kMeans(); km->unitTest(5); // km->search(); // to perform an actual clustering, will need to pass in a feature vector with data to be clustered. The assigns (mapping from each feature to a cluster id) and clusters (cluster ce...
380
C++
.cpp
8
43
244
0.705556
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,236
data_importer.cpp
jgain_EcoLearn/data_importer/data_importer.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
36,596
C++
.cpp
1,156
22.378028
242
0.514309
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,237
extract_png.cpp
jgain_EcoLearn/data_importer/extract_png.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
10,455
C++
.cpp
338
27.159763
124
0.612135
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,238
convert_to_bin.cpp
jgain_EcoLearn/data_importer/convert_to_bin.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
1,617
C++
.cpp
44
34.636364
82
0.654952
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,239
AbioticMapper.cpp
jgain_EcoLearn/data_importer/AbioticMapper.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
5,137
C++
.cpp
108
41.240741
171
0.620841
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,241
validate_canopytree_mod.cpp
jgain_EcoLearn/tests/validator/validate_canopytree_mod.cpp
#include "ClusterMatrices.h" int main(int argc, char * argv []) { std::string targetdir, db_pathname, pdb_pathname; if (argc < 3 || argc > 4) { std::cout << "Usage: validate_addremove <targetdir> <db pathname> [pdb pathname]" << std::endl; return 1; } else if (argc >= 3) { ...
1,192
C++
.cpp
33
30.090909
212
0.642671
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,242
validate_underdensity.cpp
jgain_EcoLearn/tests/validator/validate_underdensity.cpp
#include "ClusterMatrices.h" #include "data_importer.h" int main(int argc, char * argv []) { /* auto canopytrees = data_importer::read_pdb("/home/konrad/PhDStuff/abioticfixed/S4500-4500-1024/S4500-4500-1024_canopy0.pdb"); abiotic_maps_package amaps(data_importer::data_dir("/home/konrad/PhDStuff/abioticfixe...
926
C++
.cpp
13
67.538462
258
0.745055
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,243
main.cpp
jgain_EcoLearn/tests/validator/main.cpp
#include <iostream> #include <experimental/filesystem> #include "validator.h" #include "data_importer.h" #include <ctype.h> #include <cassert> void print_result(std::string category, int result) { std::cout << category << ": "; if (result > 0) { std::cout << "SUCCESS"; } else if (result == ...
5,746
C++
.cpp
167
24.005988
231
0.485426
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,244
validate_addremove.cpp
jgain_EcoLearn/tests/validator/validate_addremove.cpp
#include "ClusterMatrices.h" #include "data_importer.h" int main(int argc, char * argv []) { std::string targetdir, db_pathname, pdb_pathname; if (argc < 3 || argc > 4) { std::cout << "Usage: validate_addremove <targetdir> <db pathname> [pdb pathname]" << std::endl; return 1; } else...
1,194
C++
.cpp
33
30.272727
201
0.644156
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,245
validator.cpp
jgain_EcoLearn/tests/validator/validator.cpp
#include "validator.h" #include "canopy_placement/basic_types.h" #include "data_importer.h" validator::validator(std::string pdbfilename, std::string datadir) : validator(data_importer::read_pdb(pdbfilename), datadir) { } validator::validator(const std::vector<basic_tree> &plants, std::string datadir) : plan...
4,047
C++
.cpp
128
25.328125
179
0.598512
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,246
validate_commondata.cpp
jgain_EcoLearn/tests/validator/validate_commondata.cpp
#include "data_importer.h" #include <fstream> #include <chrono> int main(int argc, char * argv []) { if (argc != 3) { std::cout << "Usage: validate_commondata <db pathname> <output_pathname>" << std::endl; return 1; } std::string dbpathname = argv[1]; std::string output_pathname =...
1,112
C++
.cpp
30
30.933333
118
0.573694
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,247
validate_clusterfile.cpp
jgain_EcoLearn/tests/validator/validate_clusterfile.cpp
#include "data_importer.h" #include "ClusterMatrices.h" int main(int argc, char * argv []) { ClusterMatrices::AllClusterInfo clinfo = ClusterMatrices::import_clusterinfo({"/home/konrad/PhDStuff/data/clusters1024.clm"}, "/home/konrad/EcoSynth/ecodata/sonoma.db"); std::cout << "Number of clusters in all_distrib...
429
C++
.cpp
9
44.555556
173
0.724221
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,248
rw_sampler.cpp
jgain_EcoLearn/tests/validator/rw_sampler.cpp
#include "rw_sampler.h" #include <iostream> int main(int argc, char * argv []) { rw_sampler rws = rw_sampler({2.0, 5.0, 8.2, 9.3}); bool success = rws.test_sample(); if (success) { std::cout << "SUCCESS: RW sampler passed test" << std::endl; } else std::cout << "FAIL: RW sampler...
364
C++
.cpp
14
21.785714
68
0.584527
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,249
main_read.cpp
jgain_EcoLearn/tests/test_binary_readwrite/main_read.cpp
#include "../data_importer/data_importer.h" #include <chrono> int main(int argc, char * argv []) { std::string mapname = "/home/konrad/PhDStuff/S1000-1000-3072_sun_landscape.txt"; std::string mapold = "/home/konrad/PhDStuff/abioticfixed/S1000-1000-3072/S1000-1000-3072_wet.txt"; std::string bininname = "/home/kon...
1,467
C++
.cpp
24
58.583333
148
0.691228
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,250
main.cpp
jgain_EcoLearn/tests/test_binary_readwrite/main.cpp
#include "../data_importer/data_importer.h" int main(int argc, char * argv []) { std::string mapname = "/home/konrad/PhDStuff/abioticfixed/S1000-1000-3072/S1000-1000-3072_wet.txt"; std::string outname = "/home/konrad/PhDStuff/binwet_out.bin"; auto mmap = data_importer::read_monthly_map<ValueGridMap<float> >(mapn...
398
C++
.cpp
9
42
100
0.749347
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,251
test_add2.cpp
jgain_EcoLearn/tests/test_hashmap/src/test_add2.cpp
#include "PlantSpatialHashmap.h" int main(int argc, char * argv []) { PlantSpatialHashmap map(10.0f, 10.0f, 100.0f, 100.0f); if (map.test_add()) { return 0; } else return 1; }
214
C++
.cpp
11
15
58
0.59204
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,252
test_add1.cpp
jgain_EcoLearn/tests/test_hashmap/src/test_add1.cpp
#include "PlantSpatialHashmap.h" int main(int argc, char * argv []) { PlantSpatialHashmap map(10.0f, 10.0f, 90.0f, 90.0f); if (map.test_add()) { return 0; } else return 1; }
185
C++
.cpp
11
14.818182
53
0.680233
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,253
constants.cpp
jgain_EcoLearn/common/constants.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
1,459
C++
.cpp
36
37.805556
82
0.638478
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,254
custom_exceptions.cpp
jgain_EcoLearn/common/custom_exceptions.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
1,142
C++
.cpp
28
38.714286
82
0.643243
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,255
main.cpp
jgain_EcoLearn/data_preproc/grass_sim/main.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
2,913
C++
.cpp
68
38.147059
92
0.636107
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,256
grass_sim.cpp
jgain_EcoLearn/data_preproc/grass_sim/grass_sim.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
13,759
C++
.cpp
351
30.68661
147
0.543596
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,257
compute_normals.cpp
jgain_EcoLearn/data_preproc/slope_compute/compute_normals.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
3,239
C++
.cpp
94
29.680851
96
0.602753
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,258
main.cpp
jgain_EcoLearn/data_preproc/temp_compute/main.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
2,785
C++
.cpp
69
35.449275
142
0.612509
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
1,543,259
main.cpp
jgain_EcoLearn/data_preproc/tests/sunlight_sim/main.cpp
/******************************************************************************* * * EcoSynth - Data-driven Authoring of Large-Scale Ecosystems * Copyright (C) 2020 K.P. Kapp (konrad.p.kapp@gmail.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Genera...
2,933
C++
.cpp
65
41.523077
159
0.635121
jgain/EcoLearn
35
4
1
GPL-3.0
9/20/2024, 10:45:34 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false