id int64 0 755k | 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 65 | repo_stars int64 100 47.3k | repo_forks int64 0 12k | repo_open_issues int64 0 3.4k | repo_license stringclasses 9
values | repo_extraction_date stringclasses 92
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
753,634 | constexp.h | copperspice_doxypress/src/constexp.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,132 | C++ | .h | 29 | 37.862069 | 79 | 0.696721 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,640 | reflist.h | copperspice_doxypress/src/reflist.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 2,899 | C++ | .h | 79 | 33.620253 | 104 | 0.674768 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,644 | perlmodgen.h | copperspice_doxypress/src/perlmodgen.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 930 | C++ | .h | 23 | 39.26087 | 74 | 0.673311 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,653 | conceptdef.h | copperspice_doxypress/src/conceptdef.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 3,683 | C++ | .h | 101 | 30.673267 | 102 | 0.6708 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,654 | htmldocvisitor.h | copperspice_doxypress/src/htmldocvisitor.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 6,058 | C++ | .h | 147 | 37.632653 | 105 | 0.743168 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,655 | emoji_entity.h | copperspice_doxypress/src/emoji_entity.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,314 | C++ | .h | 38 | 32.263158 | 74 | 0.683215 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,662 | rtfdocvisitor.h | copperspice_doxypress/src/rtfdocvisitor.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 6,166 | C++ | .h | 150 | 37.573333 | 121 | 0.743414 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,665 | docbookvisitor.h | copperspice_doxypress/src/docbookvisitor.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 6,705 | C++ | .h | 159 | 38.333333 | 110 | 0.737237 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,666 | portable.h | copperspice_doxypress/src/portable.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,773 | C++ | .h | 43 | 39.837209 | 107 | 0.681792 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,670 | entry.h | copperspice_doxypress/src/entry.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 14,917 | C++ | .h | 397 | 31.423174 | 101 | 0.584963 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,671 | doxy_setup.h | copperspice_doxypress/src/doxy_setup.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,792 | C++ | .h | 54 | 31.037037 | 101 | 0.733295 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,673 | parse_lib_tooling.h | copperspice_doxypress/src/parse_lib_tooling.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,491 | C++ | .h | 37 | 38.405405 | 94 | 0.714088 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,677 | msc.h | copperspice_doxypress/src/msc.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,378 | C++ | .h | 33 | 39.69697 | 115 | 0.703815 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,679 | dia.h | copperspice_doxypress/src/dia.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,014 | C++ | .h | 27 | 35.888889 | 74 | 0.673802 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,680 | rtfstyle.h | copperspice_doxypress/src/rtfstyle.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 2,648 | C++ | .h | 68 | 36.632353 | 81 | 0.725781 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,682 | xmldocvisitor.h | copperspice_doxypress/src/xmldocvisitor.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 5,529 | C++ | .h | 141 | 35.695035 | 82 | 0.72541 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,683 | code_xml.h | copperspice_doxypress/src/code_xml.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,347 | C++ | .h | 31 | 41.193548 | 132 | 0.701299 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,685 | cite.h | copperspice_doxypress/src/cite.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,740 | C++ | .h | 48 | 33.791667 | 101 | 0.692857 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,686 | types.h | copperspice_doxypress/src/types.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 11,277 | C++ | .h | 272 | 37.25 | 103 | 0.655616 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,691 | xmlgen.h | copperspice_doxypress/src/xmlgen.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 2,386 | C++ | .h | 60 | 36.033333 | 111 | 0.69948 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,694 | commentcnv.h | copperspice_doxypress/src/commentcnv.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 929 | C++ | .h | 22 | 41 | 81 | 0.674058 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,695 | language.h | copperspice_doxypress/src/language.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,238 | C++ | .h | 33 | 36.030303 | 86 | 0.690317 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,698 | code_cstyle_internal.h | copperspice_doxypress/src/code_cstyle_internal.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 2,025 | C++ | .h | 64 | 27.921875 | 75 | 0.660982 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,707 | textdocvisitor.h | copperspice_doxypress/src/textdocvisitor.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 5,472 | C++ | .h | 139 | 35.76259 | 74 | 0.703857 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,709 | declinfo.h | copperspice_doxypress/src/declinfo.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,070 | C++ | .h | 25 | 40.88 | 95 | 0.670192 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,712 | cmdmapper.h | copperspice_doxypress/src/cmdmapper.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 7,199 | C++ | .h | 228 | 27.982456 | 74 | 0.51236 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,713 | translator_cs.h | copperspice_doxypress/src/translator_cs.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 80,114 | C++ | .h | 1,754 | 38.235462 | 139 | 0.656376 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,716 | pre.h | copperspice_doxypress/src/pre.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,017 | C++ | .h | 26 | 37.961538 | 74 | 0.683891 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,717 | rtfgen.h | copperspice_doxypress/src/rtfgen.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 13,377 | C++ | .h | 325 | 36.563077 | 120 | 0.725143 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,721 | logos.h | copperspice_doxypress/src/logos.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,023 | C++ | .h | 25 | 39.76 | 74 | 0.685111 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,722 | mandocvisitor.h | copperspice_doxypress/src/mandocvisitor.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 5,465 | C++ | .h | 139 | 35.81295 | 76 | 0.735821 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,724 | example.h | copperspice_doxypress/src/example.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 953 | C++ | .h | 27 | 33.814815 | 74 | 0.660521 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,733 | a_define.h | copperspice_doxypress/src/a_define.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
* Copyright (c) 1997-2014 Dimitri van Heesch
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* a... | 1,618 | C++ | .h | 50 | 29.8 | 100 | 0.669241 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,737 | enum.h | copperspice_doxypress/test_build/input_test/commands/enum.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 2,060 | C++ | .h | 67 | 27.61194 | 77 | 0.65213 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,738 | test_cmd.h | copperspice_doxypress/test_build/input_test/commands/test_cmd.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,055 | C++ | .h | 34 | 29.617647 | 74 | 0.660433 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,739 | version.h | copperspice_doxypress/test_build/input_test/api/version.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,229 | C++ | .h | 36 | 30.916667 | 109 | 0.638119 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,741 | qstring8.h | copperspice_doxypress/test_build/input_test/api/qstring8.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,894 | C++ | .h | 47 | 36.06383 | 99 | 0.660656 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,743 | qmap.h | copperspice_doxypress/test_build/input_test/api/qmap.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,374 | C++ | .h | 42 | 29.095238 | 74 | 0.610144 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,744 | qglobal.h | copperspice_doxypress/test_build/input_test/api/qglobal.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 857 | C++ | .h | 22 | 37.863636 | 74 | 0.661465 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,745 | file_floor_two.h | copperspice_doxypress/test_build/input_test/api/level_2/file_floor_two.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 827 | C++ | .h | 24 | 32.916667 | 74 | 0.64375 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,746 | file_floor_three.h | copperspice_doxypress/test_build/input_test/api/level_2/level_3/file_floor_three.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 833 | C++ | .h | 24 | 33.166667 | 74 | 0.646402 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,749 | test_group3.h | copperspice_doxypress/test_build/input_test/extended/test_group3.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,784 | C++ | .h | 49 | 31.428571 | 74 | 0.622029 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,751 | test_brief.h | copperspice_doxypress/test_build/input_test/extended/test_brief.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 831 | C++ | .h | 23 | 34.173913 | 74 | 0.629492 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,752 | test_parameters.h | copperspice_doxypress/test_build/input_test/extended/test_parameters.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,502 | C++ | .h | 40 | 34.5 | 100 | 0.671929 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,753 | user_a.h | copperspice_doxypress/test_build/input_test/extended/user_a.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,044 | C++ | .h | 33 | 29.727273 | 74 | 0.66137 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,754 | test_generic.h | copperspice_doxypress/test_build/input_test/extended/test_generic.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,234 | C++ | .h | 39 | 29.25641 | 99 | 0.655172 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,758 | test_return.h | copperspice_doxypress/test_build/input_test/extended/test_return.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,097 | C++ | .h | 33 | 30.181818 | 74 | 0.624174 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,759 | test_ssl_dup_enum.h | copperspice_doxypress/test_build/input_test/extended/test_ssl_dup_enum.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 935 | C++ | .h | 29 | 29.793103 | 74 | 0.636667 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,760 | test_endif.h | copperspice_doxypress/test_build/input_test/extended/test_endif.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,070 | C++ | .h | 27 | 37.777778 | 101 | 0.655072 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,761 | test_undoc_warning.h | copperspice_doxypress/test_build/input_test/extended/test_undoc_warning.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,260 | C++ | .h | 34 | 34.764706 | 85 | 0.668847 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,762 | test_cmd_example.h | copperspice_doxypress/test_build/examples/test_cmd_example.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 829 | C++ | .h | 23 | 34.130435 | 74 | 0.635236 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,763 | function.h | copperspice_doxypress/test_build/input_clang/function.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 1,036 | C++ | .h | 25 | 39.84 | 79 | 0.677291 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,764 | kitchen.h | copperspice_doxypress/test_build/input_clang/kitchen.h | /************************************************************************
*
* Copyright (c) 2014-2024 Barbara Geller & Ansel Sermersheim
*
* DoxyPress is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
... | 11,961 | C++ | .h | 301 | 34.976744 | 127 | 0.662507 | copperspice/doxypress | 148 | 14 | 22 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,765 | main.cpp | ColinPitrat_caprice32/main.cpp | #include "cap32.h"
int main(int argc, char **argv)
{
return cap32_main(argc, argv);
}
| 89 | C++ | .cpp | 5 | 16.2 | 32 | 0.698795 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,766 | CapriceDevTools.cpp | ColinPitrat_caprice32/test/CapriceDevTools.cpp | #include <gtest/gtest.h>
#include <gmock/gmock.h>
#include "SDL.h"
#include "CapriceDevTools.h"
#include "cap32.h"
extern t_CPC CPC;
using namespace wGui;
class CapriceDevToolsTest : public testing::Test {
public:
CapriceDevToolsTest() : app(/*pWindow=*/nullptr) {}
void SetUp() {
CPC.resources_pat... | 10,290 | C++ | .cpp | 226 | 41.955752 | 109 | 0.744251 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,767 | green_palette.cpp | ColinPitrat_caprice32/test/green_palette.cpp | #include <gtest/gtest.h>
#include "cap32.h"
TEST(GreenPalette, ValuesMatchFormula)
{
double precision = 0.0001;
double G_LUMA_R = 0.2427;
double G_LUMA_G = 0.6380;
double G_LUMA_B = 0.1293;
double G_LUMA_BASE = 0.071;
double G_LUMA_COEF = 0.100;
double G_LUMA_PRIM = 0.050;
//test the... | 879 | C++ | .cpp | 24 | 32.625 | 74 | 0.627358 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,768 | slothandler.cpp | ColinPitrat_caprice32/test/slothandler.cpp | #include <gtest/gtest.h>
#include "cap32.h"
#include "slotshandler.h"
#include <string>
TEST(SlotHandlerTest, fillSlotsNoArg)
{
std::vector<std::string> slot_list;
t_CPC CPC;
fillSlots(slot_list, CPC);
ASSERT_EQ("", CPC.cart_path);
ASSERT_EQ("", CPC.cart_file);
ASSERT_EQ("", CPC.dsk_path);
ASSERT_EQ("... | 6,016 | C++ | .cpp | 195 | 28.061538 | 196 | 0.654099 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,769 | phazer.cpp | ColinPitrat_caprice32/test/phazer.cpp | #include <gtest/gtest.h>
#include "phazer.h"
TEST(PhazerTest, Next)
{
PhazerType none(PhazerType::None);
PhazerType trojan(PhazerType::TrojanLightPhazer);
ASSERT_EQ(PhazerType::AmstradMagnumPhaser, none.Next());
ASSERT_EQ(PhazerType::None, trojan.Next());
}
TEST(PhazerTest, operator_bool)
{
ASSERT_FALSE(P... | 747 | C++ | .cpp | 21 | 33.380952 | 93 | 0.782247 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,770 | cartridge.cpp | ColinPitrat_caprice32/test/cartridge.cpp | #include <gtest/gtest.h>
#include "cartridge.h"
#include "types.h"
#include "errors.h"
extern byte* pbGPBuffer;
extern byte* pbCartridgeImage;
class Cartridge : public testing::Test {
public:
void SetUp() {
// attempt to allocate the general purpose buffer
pbGPBuffer = new byte [128*1024];
... | 2,091 | C++ | .cpp | 66 | 28 | 63 | 0.675622 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,771 | keyboard.cpp | ColinPitrat_caprice32/test/keyboard.cpp | #include <gtest/gtest.h>
#include <filesystem>
#include "keyboard.h"
TEST(KeyboardTest, parseAllLayoutFiles)
{
InputMapper mapper(/*CPC=*/nullptr);
for (const auto & entry : std::filesystem::directory_iterator("./resources"))
{
auto path = entry.path().string();
if (path.substr(path.length()-4, 4) == ".m... | 412 | C++ | .cpp | 14 | 26.5 | 79 | 0.667506 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,772 | CapriceLoadSave.cpp | ColinPitrat_caprice32/test/CapriceLoadSave.cpp | #include <gtest/gtest.h>
#include "SDL.h"
#include "CapriceGuiView.h"
#include "CapriceLoadSave.h"
#include "cap32.h"
#include <string>
extern t_CPC CPC;
using namespace wGui;
class CapriceLoadSaveTest : public testing::Test {
public:
CapriceLoadSaveTest() : app(/*pWindow=*/nullptr) {}
void SetUp() {
... | 2,722 | C++ | .cpp | 73 | 33.794521 | 98 | 0.729586 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,773 | video.cpp | ColinPitrat_caprice32/test/video.cpp | #include <gtest/gtest.h>
#include "video.h"
#include "cap32.h"
extern SDL_Surface* pub;
extern SDL_Surface* scaled;
namespace
{
class ComputeRectsTest : public testing::Test {
public:
// Verifies that src corresponds to the whole screen
void ExpectFullSrc(bool half_pixels) {
EXPECT_EQ(src.x, 0);
... | 5,316 | C++ | .cpp | 142 | 32.950704 | 117 | 0.671265 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,774 | zip.cpp | ColinPitrat_caprice32/test/zip.cpp | #include <gtest/gtest.h>
#include "zip.h"
#include "errors.h"
/*
* These tests are not really unit tests as they use files that can be found
* in test/zip/
* The files content are the following:
* - test1.zip
* - README.txt
* - empty.dsk
* - hello.dsk
*/
TEST(Zip, DirOnFileWithNoMatchingEntry)
{
... | 2,158 | C++ | .cpp | 66 | 30.106061 | 84 | 0.705147 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,775 | symfile.cpp | ColinPitrat_caprice32/test/symfile.cpp | #include <gtest/gtest.h>
#include "symfile.h"
#include <fstream>
#include <iostream>
#include <map>
#include <string>
class SymfileTest : public testing::Test
{
public:
void TearDown()
{
for(auto f : tmpFilenames_)
{
ASSERT_EQ(0, unlink(f.c_str()));
}
}
protected:
std::st... | 2,267 | C++ | .cpp | 75 | 25.813333 | 86 | 0.665903 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,776 | z80_disassembly.cpp | ColinPitrat_caprice32/test/z80_disassembly.cpp | #include <gtest/gtest.h>
#include "z80_disassembly.h"
#include "cap32.h"
#include "z80_macros.h"
extern byte *membank_read[4];
extern t_CPC CPC;
namespace
{
TEST(DisassembledLine, Comparisons)
{
DisassembledLine l1(1, 0, "nop");
DisassembledLine l1_identical(1, 0, "nop");
DisassembledLine l1bis(1, 0xc9, "ret"... | 3,140 | C++ | .cpp | 88 | 32.954545 | 121 | 0.695235 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,777 | fileutils.cpp | ColinPitrat_caprice32/test/fileutils.cpp | #include <gtest/gtest.h>
#include "fileutils.h"
#include <string>
TEST(FileUtils, Listdirectory)
{
std::string directory = "test/zip";
std::vector<std::string> result = listDirectory(directory);
ASSERT_EQ(1, result.size());
}
TEST(FileUtils, ListdirectoryMatchingExtension)
{
std::string directory = "test/... | 636 | C++ | .cpp | 21 | 27.714286 | 71 | 0.741667 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,778 | crtc.cpp | ColinPitrat_caprice32/test/crtc.cpp | #include <gtest/gtest.h>
#include "crtc.h"
class CrtcTest : public testing::Test {
public:
private:
};
TEST_F(CrtcTest, ShiftLittleEndianDwordTriplet)
{
dword val;
val = shiftLittleEndianDwordTriplet(0x01234567, 0x89ABCDEF, 0x01020304, 0);
EXPECT_EQ(0x01020304, val);
val = shiftLittleEndianDwordTri... | 1,169 | C++ | .cpp | 28 | 38.357143 | 78 | 0.773087 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,779 | asic.cpp | ColinPitrat_caprice32/test/asic.cpp | #include <gtest/gtest.h>
#include "asic.h"
#include "cap32.h"
#include <vector>
extern byte *membank_config[8][4];
extern byte *membank_write[4];
extern t_GateArray GateArray;
namespace
{
class AsicTest : public testing::Test {
public:
AsicTest() : lockSeq({0x00, 0xff, 0x77, 0xb3, 0x51, 0xa8, 0xd4, 0x62, ... | 5,300 | C++ | .cpp | 161 | 29.559006 | 127 | 0.696982 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,780 | configuration.cpp | ColinPitrat_caprice32/test/configuration.cpp | #include <gtest/gtest.h>
#include "cap32.h"
#include "slotshandler.h"
#include "configuration.h"
#include <stdlib.h>
#include <unistd.h>
#include <fstream>
#include <cstring>
#include <errno.h>
#include <string>
// TODO(cpitrat): Cleaner way to handle this
extern char chAppPath[_MAX_PATH + 1];
// TODO(cpitrat): Make t... | 13,358 | C++ | .cpp | 332 | 35.879518 | 113 | 0.676407 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,781 | z80.cpp | ColinPitrat_caprice32/test/z80.cpp | #include <gtest/gtest.h>
#include "z80.h"
#include "cap32.h"
#include "z80_macros.h"
extern byte *membank_read[4];
extern t_z80regs z80;
namespace
{
class Z80Test : public testing::Test {
public:
static void SetUpTestCase() {
z80_init_tables();
}
};
TEST_F(Z80Test, ExecuteNOP)
{
byte membank0[1] ... | 2,039 | C++ | .cpp | 88 | 20.136364 | 115 | 0.584798 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,782 | disk.cpp | ColinPitrat_caprice32/test/disk.cpp | #include <gtest/gtest.h>
#include "disk.h"
namespace
{
class SectorReadTest : public testing::Test
{
public:
SectorReadTest()
{
data[0] = 1;
data[512] = 2;
sector.setData(data);
}
protected:
t_sector sector;
unsigned char data[1024] = {0};
};
TEST_F(SectorReadTest, NormalS... | 1,285 | C++ | .cpp | 47 | 24.297872 | 104 | 0.694444 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,783 | wg_application.cpp | ColinPitrat_caprice32/test/wg_application.cpp | #include <gtest/gtest.h>
#include "wg_error.h"
#include "wg_application.h"
#include "cap32.h"
#include <string>
extern t_CPC CPC;
TEST(CApplicationTest, InitThrowExceptionWhenFailToFindResources)
{
wGui::CApplication app(/*pWindow=*/nullptr);
CPC.resources_path = "does_not_exist";
try {
app.Init();
FA... | 805 | C++ | .cpp | 22 | 33.545455 | 97 | 0.709512 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,784 | psg.cpp | ColinPitrat_caprice32/test/psg.cpp | #include <gtest/gtest.h>
#include "cap32.h"
#include "types.h"
// Validate that alignment is correct between bytes & words structs (cf issue #104)
TEST(PsgTest, RegisterAYAlignment)
{
t_PSG psg;
psg.RegisterAY.TonALo = 3;
psg.RegisterAY.TonAHi = 5;
EXPECT_EQ(*reinterpret_cast<word *>(&psg.RegisterAY.TonAL... | 802 | C++ | .cpp | 20 | 37.05 | 93 | 0.734615 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,785 | InputMapper.cpp | ColinPitrat_caprice32/test/InputMapper.cpp | #include <gtest/gtest.h>
#include "cap32.h"
#include "keyboard.h"
#include <string>
extern t_CPC CPC;
class InputMapperTest : public testing::Test {
public:
void SetUp() {
CPC.resources_path = "resources";
CPC.InputMapper = new InputMapper(&CPC);
CPC.InputMapper->init();
}
};
TEST_F(InputMappe... | 3,872 | C++ | .cpp | 111 | 31.81982 | 82 | 0.700482 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,786 | stringutils.cpp | ColinPitrat_caprice32/test/stringutils.cpp | #include <gtest/gtest.h>
#include "stringutils.h"
#include <string>
TEST(StringUtils, SplitOnEmptyStringReturnsEmptyVector)
{
std::string toSplit = "";
std::vector<std::string> result = stringutils::split(toSplit, ',');
ASSERT_EQ(0, result.size());
}
TEST(StringUtils, SplitOnStringWithoutDelimiterReturnsOneEl... | 6,742 | C++ | .cpp | 205 | 30.360976 | 99 | 0.719554 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,787 | argparse.cpp | ColinPitrat_caprice32/test/argparse.cpp | #include <gtest/gtest.h>
#include "cap32.h"
#include "argparse.h"
#include "keyboard.h"
#include <string>
TEST(ArgParseTest, parseArgsNoArg)
{
const char *argv[] = {"./cap32"};
CapriceArgs args;
std::vector<std::string> slot_list;
parseArguments(1, const_cast<char **>(argv), slot_list, args);
ASSERT_... | 3,078 | C++ | .cpp | 80 | 35.55 | 167 | 0.675067 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,788 | phazer.cpp | ColinPitrat_caprice32/src/phazer.cpp | #include "phazer.h"
std::string PhazerType::ToString()
{
switch(value)
{
case None: return "off";
case AmstradMagnumPhaser: return "Amstrad Magnum Phaser";
case TrojanLightPhazer: return "Trojan Light Phazer";
default: return "Unimplemented";
}
}
PhazerType PhazerType::Next()
{
auto new_value ... | 446 | C++ | .cpp | 20 | 19.4 | 61 | 0.712264 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,789 | cartridge.cpp | ColinPitrat_caprice32/src/cartridge.cpp | #include "cartridge.h"
#include "types.h"
#include "errors.h"
#include "log.h"
#include <iostream>
#include <stdio.h>
#include <cstring>
#include <algorithm>
#include <memory>
#include <string>
const uint32_t CARTRIDGE_NB_PAGES = 32;
const uint32_t CARTRIDGE_PAGE_SIZE = 16*1024;
const uint32_t CARTRIDGE_MAX_SIZE = CAR... | 4,851 | C++ | .cpp | 127 | 32.645669 | 110 | 0.647759 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,790 | keyboard.cpp | ColinPitrat_caprice32/src/keyboard.cpp | #include "keyboard.h"
#include <iostream>
#include <fstream>
#include <map>
#include <set>
#include <string>
#include "cap32.h"
#include "fileutils.h"
#include "log.h"
extern byte bit_values[8];
extern t_CPC CPC;
const CPCScancode InputMapper::cpc_kbd[CPC_KEYBOARD_NUM][CPC_KEY_NUM] = {
{ // original CPC keyboard
... | 63,092 | C++ | .cpp | 1,685 | 32.544807 | 168 | 0.48465 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,791 | ipf.cpp | ColinPitrat_caprice32/src/ipf.cpp | // IPF disk image support (http://www.softpres.org/)
// Contributed by softpres.org
#ifdef WITH_IPF
#ifdef WINDOWS
#include <windows.h>
#else
#include <dlfcn.h>
#endif
#include "cap32.h"
#include "disk.h"
#include "errors.h"
#include "fileutils.h"
#include "memutils.h"
#include "ipf.h"
#include "log.h"
#include "slo... | 17,839 | C++ | .cpp | 467 | 33.640257 | 144 | 0.651246 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,792 | glfuncs.cpp | ColinPitrat_caprice32/src/glfuncs.cpp | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 2 of the License, or
(at your option) any late... | 1,504 | C++ | .cpp | 42 | 33.285714 | 72 | 0.733103 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,793 | video.cpp | ColinPitrat_caprice32/src/video.cpp | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 2 of the License, or
(at your option) any late... | 43,861 | C++ | .cpp | 1,250 | 30.14 | 169 | 0.56318 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,794 | zip.cpp | ColinPitrat_caprice32/src/zip.cpp | #include "zip.h"
#include <cstring>
#include <strings.h>
#include <zlib.h>
#include <errno.h>
#include <cstdio>
#include <string>
#include "errors.h"
#include "log.h"
#include "memutils.h"
// TODO(cpitrat): refactoring
namespace zip
{
int dir (t_zip_info *zi)
{
FILE *pfileObject;
byte pbGPBuffer[32768];
... | 7,675 | C++ | .cpp | 181 | 36.342541 | 117 | 0.638466 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,795 | fdc.cpp | ColinPitrat_caprice32/src/fdc.cpp | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 2 of the License, or
(at your option) any late... | 37,103 | C++ | .cpp | 860 | 34.031395 | 138 | 0.571915 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,796 | symfile.cpp | ColinPitrat_caprice32/src/symfile.cpp | #include "symfile.h"
#include <fstream>
#include <iomanip>
#include <string>
#include "stringutils.h"
#include "log.h"
Symfile::Symfile(const std::string& filename)
{
std::ifstream infile(filename);
std::string line;
while (std::getline(infile, line))
{
// Remove any comment
line = stringutils::trim(l... | 2,302 | C++ | .cpp | 76 | 26.315789 | 108 | 0.574324 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,797 | z80_disassembly.cpp | ColinPitrat_caprice32/src/z80_disassembly.cpp | #include "z80_disassembly.h"
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include "z80.h"
#include "cap32.h"
#include "log.h"
extern t_z80regs z80;
#include "z80_macros.h"
extern t_CPC CPC;
OpCode::OpCode(int value, int length, int... | 8,087 | C++ | .cpp | 206 | 35.169903 | 137 | 0.64412 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
753,798 | fileutils.cpp | ColinPitrat_caprice32/src/fileutils.cpp | // Caprice 32
// File IO functions
#include <dirent.h>
#include <string>
#include <vector>
#include <algorithm>
#include <stdio.h>
#include <sys/stat.h>
#include <unistd.h>
#include <ctime>
int file_size (int fd) {
struct stat s;
if (!fstat(fd, &s)) {
return s.st_size;
}
return 0;
}
bool file_copy... | 2,284 | C++ | .cpp | 77 | 26.077922 | 91 | 0.649203 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,799 | cap32.cpp | ColinPitrat_caprice32/src/cap32.cpp | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2005 Ulrich Doewich
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 2 of the License, or
(at your option) any late... | 122,285 | C++ | .cpp | 2,844 | 33.962025 | 426 | 0.574401 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,800 | crtc.cpp | ColinPitrat_caprice32/src/crtc.cpp | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 2 of the License, or
(at your option) any late... | 64,015 | C++ | .cpp | 1,261 | 44.518636 | 139 | 0.741769 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,801 | asic.cpp | ColinPitrat_caprice32/src/asic.cpp | #include "asic.h"
#include "log.h"
#include "cap32.h"
#include "SDL.h"
#include "crtc.h"
byte *pbRegisterPage;
extern SDL_Color colours[32];
extern t_GateArray GateArray;
extern t_CRTC CRTC;
extern t_CPC CPC;
extern t_PSG PSG;
extern SDL_Surface *back_surface;
extern dword dwXScale;
extern byte *membank_config[8][4];
... | 17,909 | C++ | .cpp | 424 | 34.068396 | 206 | 0.554302 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,802 | configuration.cpp | ColinPitrat_caprice32/src/configuration.cpp | #include "configuration.h"
#include "log.h"
#include <sstream>
#include <cstring>
#include <fstream>
#include <iostream>
#include <string>
namespace config
{
bool hasValue(const ConfigMap& config, const std::string& section, const std::string& key)
{
if(config.find(section) != config.end())
{
auto co... | 3,745 | C++ | .cpp | 130 | 23.669231 | 127 | 0.632251 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,803 | z80.cpp | ColinPitrat_caprice32/src/z80.cpp | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 2 of the License, or
(at your option) any late... | 144,549 | C++ | .cpp | 2,853 | 44.442692 | 148 | 0.481688 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,804 | disk.cpp | ColinPitrat_caprice32/src/disk.cpp | #include "disk.h"
#include <sstream>
#include <string>
#include "log.h"
std::string chrn_to_string(unsigned char* chrn) {
std::ostringstream oss;
oss << static_cast<int>(chrn[0]) << "-"
<< static_cast<int>(chrn[1]) << "-"
<< static_cast<int>(chrn[2]) << "-"
<< static_cast<int>(chrn[3]);
return oss.... | 661 | C++ | .cpp | 20 | 30.3 | 86 | 0.625786 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,805 | savepng.cpp | ColinPitrat_caprice32/src/savepng.cpp | /*
* SDL_SavePNG -- libpng-based SDL_Surface writer.
*
* This code is free software, available under zlib/libpng license.
* http://www.libpng.org/pub/png/src/libpng-LICENSE.txt
* Code was copied and slightly adapted from driedfruit savepng.
* See https://github.com/driedfruit/SDL_SavePNG
*/
#include <SDL.h>
#inc... | 4,959 | C++ | .cpp | 146 | 30.869863 | 135 | 0.681211 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,806 | tape.cpp | ColinPitrat_caprice32/src/tape.cpp | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 2 of the License, or
(at your option) any late... | 23,589 | C++ | .cpp | 522 | 32.994253 | 142 | 0.561094 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,807 | slotshandler.cpp | ColinPitrat_caprice32/src/slotshandler.cpp | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2005 Ulrich Doewich
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 2 of the License, or
(at your option) any late... | 49,541 | C++ | .cpp | 1,306 | 30.956355 | 184 | 0.591557 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,808 | devtools.cpp | ColinPitrat_caprice32/src/devtools.cpp | #include "devtools.h"
#include <string>
#include "log.h"
#include "video.h"
#include "wg_error.h"
bool DevTools::Activate(int scale) {
ShowCursor(true);
try {
// TODO: This position only makes sense for me. Ideally we would probably want to find where current window is, find display size and place
// the ... | 2,266 | C++ | .cpp | 55 | 38.072727 | 157 | 0.72323 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,809 | psg.cpp | ColinPitrat_caprice32/src/psg.cpp | /* Caprice32 - Amstrad CPC Emulator
(c) Copyright 1997-2004 Ulrich Doewich
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 2 of the License, or
(at your option) any late... | 16,582 | C++ | .cpp | 662 | 19.697885 | 147 | 0.570345 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
753,810 | stringutils.cpp | ColinPitrat_caprice32/src/stringutils.cpp | #include "stringutils.h"
#include <algorithm>
#include <cstring>
#include <sstream>
#include <string>
namespace stringutils
{
std::vector<std::string> split(const std::string& s, char delim, bool ignore_empty)
{
std::vector<std::string> elems;
std::stringstream ss(s);
std::string item;
whi... | 2,164 | C++ | .cpp | 77 | 23.467532 | 91 | 0.604427 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
753,811 | argparse.cpp | ColinPitrat_caprice32/src/argparse.cpp | #include "argparse.h"
#include <getopt.h>
#include <iostream>
#include <fstream>
#include <map>
#include <string>
#include "SDL.h"
#include "cap32.h"
#include "keyboard.h"
#include "stringutils.h"
#include "log.h"
#include "video.h"
#include "glfuncs.h" // For HAVE_GL
const struct option long_options[] =
{
{"auto... | 7,582 | C++ | .cpp | 188 | 32.702128 | 222 | 0.571041 | ColinPitrat/caprice32 | 146 | 32 | 52 | GPL-2.0 | 9/20/2024, 9:42:21 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.