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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
35,121 | lightingnight.cpp | OpenMW_openmw/apps/opencs/view/render/lightingnight.cpp | #include "lightingnight.hpp"
#include <osg/Group>
#include <osg/Light>
#include <osg/LightSource>
#include <osg/ref_ptr>
void CSVRender::LightingNight::activate(osg::Group* rootNode, bool isExterior)
{
mRootNode = rootNode;
mLightSource = new osg::LightSource;
osg::ref_ptr<osg::Light> light(new osg::Lig... | 1,051 | C++ | .cpp | 31 | 30.032258 | 81 | 0.694362 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,122 | terrainselection.cpp | OpenMW_openmw/apps/opencs/view/render/terrainselection.cpp | #include "terrainselection.hpp"
#include <algorithm>
#include <cmath>
#include <osg/GL>
#include <osg/Geometry>
#include <osg/Group>
#include <osg/PositionAttitudeTransform>
#include <osg/PrimitiveSet>
#include <osg/StateAttribute>
#include <osg/StateSet>
#include <osg/Vec3f>
#include <apps/opencs/model/doc/document... | 14,135 | C++ | .cpp | 300 | 36.776667 | 117 | 0.62169 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,123 | tagbase.cpp | OpenMW_openmw/apps/opencs/view/render/tagbase.cpp | #include "tagbase.hpp"
#include <apps/opencs/view/render/mask.hpp>
CSVRender::TagBase::TagBase(Mask mask)
: mMask(mask)
{
}
CSVRender::Mask CSVRender::TagBase::getMask() const
{
return mMask;
}
QString CSVRender::TagBase::getToolTip(bool hideBasics, const WorldspaceHitResult& /*hit*/) const
{
return "";... | 323 | C++ | .cpp | 14 | 20.928571 | 97 | 0.747541 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,124 | lightingbright.cpp | OpenMW_openmw/apps/opencs/view/render/lightingbright.cpp | #include "lightingbright.hpp"
#include <osg/Group>
#include <osg/Light>
#include <osg/LightSource>
#include <osg/ref_ptr>
CSVRender::LightingBright::LightingBright() {}
void CSVRender::LightingBright::activate(osg::Group* rootNode, bool /*isExterior*/)
{
mRootNode = rootNode;
mLightSource = (new osg::LightS... | 1,021 | C++ | .cpp | 29 | 31.793103 | 86 | 0.698574 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,125 | pathgridmode.cpp | OpenMW_openmw/apps/opencs/view/render/pathgridmode.cpp | #include "pathgridmode.hpp"
#include <QIcon>
#include <components/misc/scalableicon.hpp>
#include <components/sceneutil/pathgridutil.hpp>
#include "../../model/prefs/state.hpp"
#include "../../model/world/commandmacro.hpp"
#include "../widget/scenetoolbar.hpp"
#include "cell.hpp"
#include "mask.hpp"
#include "pat... | 10,043 | C++ | .cpp | 246 | 29.630081 | 119 | 0.580983 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,126 | terrainshapemode.cpp | OpenMW_openmw/apps/opencs/view/render/terrainshapemode.cpp | #include "terrainshapemode.hpp"
#include <algorithm>
#include <cmath>
#include <memory>
#include <string>
#include <QComboBox>
#include <QDropEvent>
#include <QEvent>
#include <QIcon>
#include <QWidget>
#include <osg/Camera>
#include <osg/Vec3f>
#include <apps/opencs/model/doc/document.hpp>
#include <apps/opencs/mo... | 81,331 | C++ | .cpp | 1,542 | 42.297017 | 120 | 0.651174 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,127 | editmode.cpp | OpenMW_openmw/apps/opencs/view/render/editmode.cpp | #include "editmode.hpp"
#include <apps/opencs/view/widget/modebutton.hpp>
#include "worldspacewidget.hpp"
class QMouseEvent;
class QWidget;
namespace CSVWidget
{
class SceneToolbar;
}
CSVRender::WorldspaceWidget& CSVRender::EditMode::getWorldspaceWidget()
{
return *mWorldspaceWidget;
}
CSVRender::EditMode... | 2,323 | C++ | .cpp | 64 | 33.984375 | 118 | 0.800538 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,129 | instanceselectionmode.cpp | OpenMW_openmw/apps/opencs/view/render/instanceselectionmode.cpp | #include "instanceselectionmode.hpp"
#include <cmath>
#include <string>
#include <vector>
#include <apps/opencs/model/doc/document.hpp>
#include <apps/opencs/model/world/data.hpp>
#include <apps/opencs/model/world/universalid.hpp>
#include <apps/opencs/view/render/mask.hpp>
#include <apps/opencs/view/render/selection... | 16,089 | C++ | .cpp | 350 | 36.934286 | 120 | 0.626669 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,130 | orbitcameramode.cpp | OpenMW_openmw/apps/opencs/view/render/orbitcameramode.cpp | #include "orbitcameramode.hpp"
#include <QMenu>
#include <memory>
#include "../../model/prefs/shortcut.hpp"
#include <apps/opencs/view/widget/modebutton.hpp>
#include "worldspacewidget.hpp"
namespace CSVWidget
{
class SceneToolbar;
}
namespace CSVRender
{
OrbitCameraMode::OrbitCameraMode(
Worldsp... | 1,635 | C++ | .cpp | 47 | 28.829787 | 119 | 0.713651 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,131 | recordfilterbox.cpp | OpenMW_openmw/apps/opencs/view/filter/recordfilterbox.cpp | #include "recordfilterbox.hpp"
#include <variant>
#include <QHBoxLayout>
#include <QLabel>
#include <QVariant>
#include "editwidget.hpp"
#include "filterdata.hpp"
CSVFilter::RecordFilterBox::RecordFilterBox(CSMWorld::Data& data, QWidget* parent)
: QWidget(parent)
{
QHBoxLayout* layout = new QHBoxLayout(this... | 995 | C++ | .cpp | 29 | 31.103448 | 120 | 0.749476 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | true | false |
35,132 | editwidget.cpp | OpenMW_openmw/apps/opencs/view/filter/editwidget.cpp | #include "editwidget.hpp"
#include <sstream>
#include <variant>
#include <QAction>
#include <QApplication>
#include <QContextMenuEvent>
#include <QMenu>
#include <QRegularExpression>
#include <QString>
#include <QVariant>
#include "filterdata.hpp"
#include <apps/opencs/model/filter/parser.hpp>
#include <apps/opencs... | 7,753 | C++ | .cpp | 236 | 25.898305 | 120 | 0.616765 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,133 | filterbox.cpp | OpenMW_openmw/apps/opencs/view/filter/filterbox.cpp | #include "filterbox.hpp"
#include <string>
#include <utility>
#include <variant>
#include <vector>
#include <QDragEnterEvent>
#include <QHBoxLayout>
#include <QVariant>
#include "filterdata.hpp"
#include "recordfilterbox.hpp"
#include <apps/opencs/model/world/tablemimedata.hpp>
#include <apps/opencs/model/world/uni... | 2,175 | C++ | .cpp | 57 | 34.789474 | 114 | 0.75798 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,134 | sdlinit.cpp | OpenMW_openmw/apps/launcher/sdlinit.cpp | #include <signal.h>
#include <SDL.h>
bool initSDL()
{
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "software");
SDL_SetMainReady();
// Required for determining screen resolution and such on the Graphics tab
if (SDL_Init(SDL_INIT_VIDEO) != 0)
{
return false;
}
signal(SIGINT, SIG_DFL); // We ... | 540 | C++ | .cpp | 20 | 23.2 | 88 | 0.676357 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,135 | main.cpp | OpenMW_openmw/apps/launcher/main.cpp | #include <iostream>
#include <QDir>
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/variables_map.hpp>
#include <components/debug/debugging.hpp>
#include <components/files/configurationmanager.hpp>
#include <components/files/qtconversion.hpp>
#include <components/l10n/qttrans... | 2,152 | C++ | .cpp | 53 | 35.433962 | 113 | 0.724784 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,136 | importpage.cpp | OpenMW_openmw/apps/launcher/importpage.cpp | #include "importpage.hpp"
#include <QDebug>
#include <QDir>
#include <QFileDialog>
#include <QMessageBox>
#include <components/files/configurationmanager.hpp>
#include <components/files/qtconversion.hpp>
using namespace Process;
Launcher::ImportPage::ImportPage(const Files::ConfigurationManager& cfg, Config::GameSe... | 6,667 | C++ | .cpp | 187 | 29.684492 | 119 | 0.682574 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,137 | datafilespage.cpp | OpenMW_openmw/apps/launcher/datafilespage.cpp | #include "datafilespage.hpp"
#include "maindialog.hpp"
#include <QDebug>
#include <QFileDialog>
#include <QList>
#include <QMessageBox>
#include <QPair>
#include <QPushButton>
#include <algorithm>
#include <mutex>
#include <thread>
#include <unordered_set>
#include <apps/launcher/utils/cellnameloader.hpp>
#include ... | 38,650 | C++ | .cpp | 890 | 36.779775 | 119 | 0.69566 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,138 | settingspage.cpp | OpenMW_openmw/apps/launcher/settingspage.cpp | #include "settingspage.hpp"
#include <array>
#include <cmath>
#include <string>
#include <QCompleter>
#include <QFileDialog>
#include <QString>
#include <components/config/gamesettings.hpp>
#include <components/settings/values.hpp>
#include "utils/openalutil.hpp"
namespace
{
void loadSettingBool(const Setting... | 27,864 | C++ | .cpp | 504 | 47.156746 | 119 | 0.737236 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,139 | maindialog.cpp | OpenMW_openmw/apps/launcher/maindialog.cpp | #include "maindialog.hpp"
#include <QCloseEvent>
#include <QDir>
#include <QMessageBox>
#include <QStringList>
#include <QTime>
#include <components/debug/debugging.hpp>
#include <components/debug/debuglog.hpp>
#include <components/files/configurationmanager.hpp>
#include <components/files/conversion.hpp>
#include <c... | 19,084 | C++ | .cpp | 500 | 31.38 | 120 | 0.665404 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,140 | graphicspage.cpp | OpenMW_openmw/apps/launcher/graphicspage.cpp | #include "graphicspage.hpp"
#include "sdlinit.hpp"
#include <components/misc/display.hpp>
#include <components/settings/values.hpp>
#include <QMessageBox>
#include <QScreen>
#ifdef MAC_OS_X_VERSION_MIN_REQUIRED
#undef MAC_OS_X_VERSION_MIN_REQUIRED
// We need to do this because of Qt: https://bugreports.qt-project.o... | 8,559 | C++ | .cpp | 234 | 30.602564 | 115 | 0.685152 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,141 | profilescombobox.cpp | OpenMW_openmw/apps/launcher/utils/profilescombobox.cpp | #include <QApplication>
#include <QString>
#include "profilescombobox.hpp"
ProfilesComboBox::ProfilesComboBox(QWidget* parent)
: ContentSelectorView::ComboBox(parent)
{
connect(this, qOverload<int>(&ProfilesComboBox::activated), this, &ProfilesComboBox::slotIndexChangedByUser);
setInsertPolicy(QComboBox:... | 2,575 | C++ | .cpp | 73 | 30.246575 | 113 | 0.71025 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | true | false |
35,142 | textinputdialog.cpp | OpenMW_openmw/apps/launcher/utils/textinputdialog.cpp | #include "textinputdialog.hpp"
#include <QApplication>
#include <QDialogButtonBox>
#include <QLabel>
#include <QPushButton>
#include <QVBoxLayout>
#include <QValidator>
Launcher::TextInputDialog::TextInputDialog(const QString& title, const QString& text, QWidget* parent)
: QDialog(parent)
{
setWindowFlags(win... | 1,929 | C++ | .cpp | 58 | 29.155172 | 105 | 0.73319 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,143 | openalutil.cpp | OpenMW_openmw/apps/launcher/utils/openalutil.cpp | #include <cstring>
#include <vector>
#include "apps/openmw/mwsound/alext.h"
#include "openalutil.hpp"
#ifndef ALC_ALL_DEVICES_SPECIFIER
#define ALC_ALL_DEVICES_SPECIFIER 0x1013
#endif
std::vector<std::string> Launcher::enumerateOpenALDevices()
{
std::vector<std::string> devlist;
const ALCchar* devnames;
... | 1,640 | C++ | .cpp | 52 | 24.384615 | 93 | 0.625949 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,144 | lineedit.cpp | OpenMW_openmw/apps/launcher/utils/lineedit.cpp | #include "lineedit.hpp"
LineEdit::LineEdit(QWidget* parent)
: QLineEdit(parent)
{
setupClearButton();
}
void LineEdit::setupClearButton()
{
mClearButton = new QToolButton(this);
mClearButton->setIcon(QIcon::fromTheme("edit-clear"));
mClearButton->setCursor(Qt::ArrowCursor);
mClearButton->setAu... | 890 | C++ | .cpp | 26 | 31.076923 | 106 | 0.726744 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | true | false |
35,145 | cellnameloader.cpp | OpenMW_openmw/apps/launcher/utils/cellnameloader.cpp | #include "cellnameloader.hpp"
#include <fstream>
#include <components/debug/debuglog.hpp>
#include <components/esm/format.hpp>
#include <components/esm3/loadcell.hpp>
#include <components/files/openfile.hpp>
#include <components/files/qtconversion.hpp>
QSet<QString> CellNameLoader::getCellNames(const QStringList& co... | 2,209 | C++ | .cpp | 62 | 26.225806 | 115 | 0.598407 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,146 | importer.cpp | OpenMW_openmw/apps/mwiniimporter/importer.cpp | #include "importer.hpp"
#include <components/esm3/esmreader.hpp>
#include <components/files/conversion.hpp>
#include <components/misc/strings/algorithm.hpp>
#include <components/misc/strings/lower.hpp>
#include <components/misc/timeconvert.hpp>
#include <filesystem>
#include <fstream>
#include <iostream>
namespace sf... | 32,562 | C++ | .cpp | 550 | 50.945455 | 120 | 0.666823 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | true | false |
35,147 | main.cpp | OpenMW_openmw/apps/mwiniimporter/main.cpp | #include "importer.hpp"
#include <filesystem>
#include <fstream>
#include <iostream>
#include <boost/program_options.hpp>
#include <components/files/configurationmanager.hpp>
#include <components/files/conversion.hpp>
namespace bpo = boost::program_options;
namespace sfs = std::filesystem;
#ifndef _WIN32
int main(... | 5,861 | C++ | .cpp | 136 | 33.161765 | 120 | 0.58585 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | true | false |
35,148 | bsatool.cpp | OpenMW_openmw/apps/bsatool/bsatool.cpp | #include <filesystem>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <vector>
#include <boost/program_options.hpp>
#include <components/bsa/ba2dx10file.hpp>
#include <components/bsa/ba2gnrlfile.hpp>
#include <components/bsa/compressedbsafile.hpp>
#include <components/files/configurationmanager.hpp... | 11,368 | C++ | .cpp | 293 | 31.389078 | 120 | 0.60924 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,149 | main.cpp | OpenMW_openmw/apps/navmeshtool/main.cpp | #include "navmesh.hpp"
#include "worldspacedata.hpp"
#include <components/debug/debugging.hpp>
#include <components/debug/debuglog.hpp>
#include <components/detournavigator/agentbounds.hpp>
#include <components/detournavigator/collisionshapetype.hpp>
#include <components/detournavigator/navmeshdb.hpp>
#include <compon... | 11,335 | C++ | .cpp | 215 | 41.451163 | 120 | 0.639017 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,150 | worldspacedata.cpp | OpenMW_openmw/apps/navmeshtool/worldspacedata.cpp | #include "worldspacedata.hpp"
#include <components/bullethelpers/aabb.hpp>
#include <components/debug/debugging.hpp>
#include <components/debug/debuglog.hpp>
#include <components/detournavigator/debug.hpp>
#include <components/detournavigator/gettilespositions.hpp>
#include <components/detournavigator/objectid.hpp>
#i... | 16,708 | C++ | .cpp | 312 | 39.99359 | 120 | 0.584058 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,151 | navmesh.cpp | OpenMW_openmw/apps/navmeshtool/navmesh.cpp | #include "navmesh.hpp"
#include "worldspacedata.hpp"
#include <components/debug/debugging.hpp>
#include <components/debug/debuglog.hpp>
#include <components/detournavigator/generatenavmeshtile.hpp>
#include <components/detournavigator/gettilespositions.hpp>
#include <components/detournavigator/navmeshdb.hpp>
#include... | 12,590 | C++ | .cpp | 271 | 33.166052 | 120 | 0.583788 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,152 | importnpcc.cpp | OpenMW_openmw/apps/essimporter/importnpcc.cpp | #include "importnpcc.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void NPCC::load(ESM::ESMReader& esm)
{
esm.getHNT("NPDT", mNPDT.mDisposition, mNPDT.unknown, mNPDT.mReputation, mNPDT.unknown2, mNPDT.mIndex);
while (esm.isNextSub("AI_W") || esm.isNextSub("AI_E") || esm... | 476 | C++ | .cpp | 13 | 30.538462 | 111 | 0.643326 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,153 | convertplayer.cpp | OpenMW_openmw/apps/essimporter/convertplayer.cpp | #include "convertplayer.hpp"
#include <cmath>
#include <components/esm3/loadcell.hpp>
#include <components/misc/constants.hpp>
#include <components/misc/strings/lower.hpp>
namespace ESSImport
{
void convertPCDT(const PCDT& pcdt, ESM::Player& out, std::vector<ESM::RefId>& outDialogueTopics,
bool& firstPe... | 4,139 | C++ | .cpp | 69 | 50.362319 | 115 | 0.68434 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,154 | convertcrec.cpp | OpenMW_openmw/apps/essimporter/convertcrec.cpp | #include "convertcrec.hpp"
#include "convertinventory.hpp"
namespace ESSImport
{
void convertCREC(const CREC& crec, ESM::CreatureState& state)
{
convertInventory(crec.mInventory, state.mInventory);
}
}
| 226 | C++ | .cpp | 9 | 21.444444 | 65 | 0.746479 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,155 | importcntc.cpp | OpenMW_openmw/apps/essimporter/importcntc.cpp | #include "importcntc.hpp"
#include <components/esm3/esmreader.hpp>
#include <cstdint>
namespace ESSImport
{
void CNTC::load(ESM::ESMReader& esm)
{
mIndex = 0;
esm.getHNT(mIndex, "INDX");
mInventory.load(esm);
}
}
| 254 | C++ | .cpp | 12 | 16.75 | 40 | 0.654008 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,156 | importer.cpp | OpenMW_openmw/apps/essimporter/importer.cpp | #include "importer.hpp"
#include <filesystem>
#include <fstream>
#include <iomanip>
#include <osg/ImageUtils>
#include <osgDB/ReadFile>
#include <components/esm/defs.hpp>
#include <components/esm3/esmreader.hpp>
#include <components/esm3/esmwriter.hpp>
#include <components/esm3/player.hpp>
#include <components/esm3... | 16,668 | C++ | .cpp | 368 | 33.483696 | 120 | 0.553063 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,157 | main.cpp | OpenMW_openmw/apps/essimporter/main.cpp | #include <filesystem>
#include <iostream>
#include <boost/program_options.hpp>
#include <components/files/configurationmanager.hpp>
#include "importer.hpp"
namespace bpo = boost::program_options;
int main(int argc, char** argv)
{
try
{
bpo::options_description desc(R"(Syntax: openmw-essimporter <op... | 2,581 | C++ | .cpp | 59 | 35.186441 | 113 | 0.618022 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,158 | importklst.cpp | OpenMW_openmw/apps/essimporter/importklst.cpp | #include "importklst.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void KLST::load(ESM::ESMReader& esm)
{
while (esm.isNextSub("KNAM"))
{
std::string refId = esm.getHString();
int32_t count;
esm.getHNT(count, "CNAM");
mKill... | 437 | C++ | .cpp | 17 | 18.529412 | 49 | 0.578313 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,159 | importdial.cpp | OpenMW_openmw/apps/essimporter/importdial.cpp | #include "importdial.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void DIAL::load(ESM::ESMReader& esm)
{
// See ESM::Dialogue::Type enum, not sure why we would need this here though
int32_t type = 0;
esm.getHNOT(type, "DATA");
// Deleted dialogue in a s... | 600 | C++ | .cpp | 17 | 29 | 109 | 0.637782 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,160 | importcrec.cpp | OpenMW_openmw/apps/essimporter/importcrec.cpp | #include "importcrec.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void CREC::load(ESM::ESMReader& esm)
{
esm.getHNT(mIndex, "INDX");
// equivalent of ESM::Creature XSCL? probably don't have to convert this,
// since the value can't be changed
float scal... | 584 | C++ | .cpp | 17 | 27.529412 | 111 | 0.610714 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,161 | convertnpcc.cpp | OpenMW_openmw/apps/essimporter/convertnpcc.cpp | #include "convertnpcc.hpp"
#include "convertinventory.hpp"
namespace ESSImport
{
void convertNPCC(const NPCC& npcc, ESM::NpcState& npcState)
{
npcState.mNpcStats.mDisposition = npcc.mNPDT.mDisposition;
npcState.mNpcStats.mReputation = npcc.mNPDT.mReputation;
convertInventory(npcc.mIn... | 359 | C++ | .cpp | 11 | 28 | 66 | 0.75 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,162 | importinventory.cpp | OpenMW_openmw/apps/essimporter/importinventory.cpp | #include "importinventory.hpp"
#include <stdexcept>
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void Inventory::load(ESM::ESMReader& esm)
{
while (esm.isNextSub("NPCO"))
{
ContItem contItem;
esm.getHT(contItem.mCount, contItem.mItem.mData);
... | 2,347 | C++ | .cpp | 61 | 25.655738 | 105 | 0.524019 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,163 | importgame.cpp | OpenMW_openmw/apps/essimporter/importgame.cpp | #include "importgame.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void GAME::load(ESM::ESMReader& esm)
{
esm.getSubNameIs("GMDT");
esm.getSubHeader();
bool hasSecundaPhase = esm.getSubSize() == 96;
esm.getT(mGMDT.mCellName);
esm.getT(mGMDT.mFogCo... | 793 | C++ | .cpp | 24 | 25.833333 | 54 | 0.65445 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,164 | importscri.cpp | OpenMW_openmw/apps/essimporter/importscri.cpp | #include "importscri.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void SCRI::load(ESM::ESMReader& esm)
{
mScript = esm.getHNOString("SCRI");
int32_t numShorts = 0, numLongs = 0, numFloats = 0;
if (esm.isNextSub("SLCS"))
{
esm.getSubHeader();... | 1,342 | C++ | .cpp | 49 | 16.55102 | 90 | 0.447552 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,165 | importproj.cpp | OpenMW_openmw/apps/essimporter/importproj.cpp | #include "importproj.h"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void ESSImport::PROJ::load(ESM::ESMReader& esm)
{
while (esm.isNextSub("PNAM"))
{
PNAM pnam;
esm.getHT(pnam.mAttackStrength, pnam.mSpeed, pnam.mUnknown, pnam.mFlightTime, pnam.mSplmI... | 561 | C++ | .cpp | 16 | 27.3125 | 116 | 0.648799 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,166 | convertcntc.cpp | OpenMW_openmw/apps/essimporter/convertcntc.cpp | #include "convertcntc.hpp"
#include "convertinventory.hpp"
namespace ESSImport
{
void convertCNTC(const CNTC& cntc, ESM::ContainerState& state)
{
convertInventory(cntc.mInventory, state.mInventory);
}
}
| 227 | C++ | .cpp | 9 | 21.555556 | 66 | 0.747664 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,167 | importplayer.cpp | OpenMW_openmw/apps/essimporter/importplayer.cpp | #include "importplayer.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void PCDT::load(ESM::ESMReader& esm)
{
while (esm.isNextSub("DNAM"))
{
mKnownDialogueTopics.push_back(esm.getHString());
}
mHasMark = false;
if (esm.isNextSub("MNAM"... | 2,804 | C++ | .cpp | 70 | 29.657143 | 116 | 0.58947 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,168 | convertacdt.cpp | OpenMW_openmw/apps/essimporter/convertacdt.cpp | #include <iostream>
#include <limits>
#include <string>
#include <components/misc/strings/lower.hpp>
#include "convertacdt.hpp"
namespace ESSImport
{
int translateDynamicIndex(int mwIndex)
{
if (mwIndex == 1)
return 2;
else if (mwIndex == 2)
return 1;
return m... | 4,976 | C++ | .cpp | 88 | 46.863636 | 120 | 0.624897 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,169 | convertscri.cpp | OpenMW_openmw/apps/essimporter/convertscri.cpp | #include "convertscri.hpp"
namespace
{
template <typename T, ESM::VarType VariantType>
void storeVariables(const std::vector<T>& variables, ESM::Locals& locals, const std::string& scriptname)
{
for (const auto& variable : variables)
{
ESM::Variant val(variable);
val... | 857 | C++ | .cpp | 24 | 29.458333 | 108 | 0.663845 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,170 | importsplm.cpp | OpenMW_openmw/apps/essimporter/importsplm.cpp | #include "importsplm.h"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void SPLM::load(ESM::ESMReader& esm)
{
while (esm.isNextSub("NAME"))
{
ActiveSpell spell;
esm.getHT(spell.mIndex);
esm.getHNT("SPDT", spell.mSPDT.mType, spell.mSPDT.mId.m... | 1,452 | C++ | .cpp | 35 | 29.228571 | 110 | 0.572139 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,171 | importscpt.cpp | OpenMW_openmw/apps/essimporter/importscpt.cpp | #include "importscpt.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void SCPT::load(ESM::ESMReader& esm)
{
esm.getHNT("SCHD", mSCHD.mName.mData, mSCHD.mNumShorts, mSCHD.mNumLongs, mSCHD.mNumFloats,
mSCHD.mScriptDataSize, mSCHD.mStringTableSize);
mSCRI.load(es... | 515 | C++ | .cpp | 19 | 19.684211 | 98 | 0.597959 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,172 | converter.cpp | OpenMW_openmw/apps/essimporter/converter.cpp | #include "converter.hpp"
#include <algorithm>
#include <cstdint>
#include <stdexcept>
#include <osgDB/WriteFile>
#include <components/esm3/containerstate.hpp>
#include <components/esm3/creaturestate.hpp>
#include <components/misc/constants.hpp>
#include "convertcntc.hpp"
#include "convertcrec.hpp"
#include "conver... | 19,818 | C++ | .cpp | 443 | 32.171558 | 118 | 0.563268 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,173 | importinfo.cpp | OpenMW_openmw/apps/essimporter/importinfo.cpp | #include "importinfo.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void INFO::load(ESM::ESMReader& esm)
{
mInfo = esm.getHNString("INAM");
mActorRefId = esm.getHNString("ACDT");
}
}
| 236 | C++ | .cpp | 10 | 19.4 | 46 | 0.675676 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,174 | importques.cpp | OpenMW_openmw/apps/essimporter/importques.cpp | #include "importques.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void QUES::load(ESM::ESMReader& esm)
{
while (esm.isNextSub("DATA"))
mInfo.push_back(esm.getHString());
}
}
| 233 | C++ | .cpp | 10 | 18.7 | 46 | 0.6621 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,175 | importjour.cpp | OpenMW_openmw/apps/essimporter/importjour.cpp | #include "importjour.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
void JOUR::load(ESM::ESMReader& esm)
{
mText = esm.getHNString("NAME");
}
}
| 189 | C++ | .cpp | 9 | 17.333333 | 40 | 0.6875 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,176 | importcellref.cpp | OpenMW_openmw/apps/essimporter/importcellref.cpp | #include "importcellref.hpp"
#include <components/esm3/esmreader.hpp>
#include <components/misc/concepts.hpp>
#include <cstdint>
namespace ESSImport
{
template <Misc::SameAsWithoutCvref<ACDT> T>
void decompose(T&& v, const auto& f)
{
f(v.mUnknown, v.mFlags, v.mBreathMeter, v.mUnknown2, v.mDynamic... | 5,719 | C++ | .cpp | 142 | 30.126761 | 117 | 0.58234 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,177 | convertscpt.cpp | OpenMW_openmw/apps/essimporter/convertscpt.cpp | #include "convertscpt.hpp"
#include "convertscri.hpp"
#include <components/misc/strings/lower.hpp>
namespace ESSImport
{
void convertSCPT(const SCPT& scpt, ESM::GlobalScript& out)
{
out.mId = ESM::RefId::stringRefId(scpt.mSCHD.mName.toString());
out.mRunning = scpt.mRunning;
out.mTar... | 450 | C++ | .cpp | 13 | 29.846154 | 90 | 0.703704 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,178 | convertinventory.cpp | OpenMW_openmw/apps/essimporter/convertinventory.cpp | #include "convertinventory.hpp"
#include <components/misc/strings/lower.hpp>
#include <cstdlib>
namespace ESSImport
{
void convertInventory(const Inventory& inventory, ESM::InventoryState& state)
{
uint32_t index = 0;
for (const auto& item : inventory.mItems)
{
ESM::Objec... | 1,026 | C++ | .cpp | 25 | 31.68 | 101 | 0.625502 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,179 | main.cpp | OpenMW_openmw/apps/bulletobjecttool/main.cpp | #include <components/debug/debugging.hpp>
#include <components/debug/debuglog.hpp>
#include <components/esm/defs.hpp>
#include <components/esm3/loadcell.hpp>
#include <components/esm3/readerscache.hpp>
#include <components/esmloader/esmdata.hpp>
#include <components/esmloader/load.hpp>
#include <components/fallback/fal... | 8,697 | C++ | .cpp | 166 | 43.126506 | 120 | 0.655989 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,180 | esmtool.cpp | OpenMW_openmw/apps/esmtool/esmtool.cpp | #include <cmath>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <memory>
#include <optional>
#include <unordered_set>
#include <vector>
#include <boost/program_options.hpp>
#include <components/esm/format.hpp>
#include <components/esm3/esmreader.hpp>
#include <compo... | 21,595 | C++ | .cpp | 506 | 30.950593 | 120 | 0.512956 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,181 | record.cpp | OpenMW_openmw/apps/esmtool/record.cpp | #include "record.hpp"
#include "labels.hpp"
#include <iostream>
#include <numeric>
#include <sstream>
#include <components/esm3/cellstate.hpp>
#include <components/esm3/esmreader.hpp>
#include <components/misc/strings/conversion.hpp>
#include <components/misc/strings/format.hpp>
namespace
{
void printAIPackage(... | 60,164 | C++ | .cpp | 1,262 | 36.840729 | 120 | 0.493035 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,182 | tes4.cpp | OpenMW_openmw/apps/esmtool/tes4.cpp | #include "tes4.hpp"
#include "arguments.hpp"
#include "labels.hpp"
#include <array>
#include <fstream>
#include <iostream>
#include <type_traits>
#include <components/debug/writeflags.hpp>
#include <components/esm/esmcommon.hpp>
#include <components/esm/refid.hpp>
#include <components/esm/typetraits.hpp>
#include <co... | 23,182 | C++ | .cpp | 562 | 24.375445 | 120 | 0.46257 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,183 | labels.cpp | OpenMW_openmw/apps/esmtool/labels.cpp | #include "labels.hpp"
#include <components/esm3/dialoguecondition.hpp>
#include <components/esm3/loadalch.hpp>
#include <components/esm3/loadbody.hpp>
#include <components/esm3/loadcell.hpp>
#include <components/esm3/loadcont.hpp>
#include <components/esm3/loadcrea.hpp>
#include <components/esm3/loadench.hpp>
#include... | 28,714 | C++ | .cpp | 964 | 21.279046 | 118 | 0.541557 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | true | false |
35,184 | navmeshtilescache.cpp | OpenMW_openmw/apps/benchmarks/detournavigator/navmeshtilescache.cpp | #include <benchmark/benchmark.h>
#include <components/detournavigator/navmeshtilescache.hpp>
#include <components/detournavigator/stats.hpp>
#include <components/esm3/loadland.hpp>
#include <algorithm>
#include <iterator>
#include <random>
namespace
{
using namespace DetourNavigator;
struct Key
{
... | 9,752 | C++ | .cpp | 245 | 32.261224 | 117 | 0.652936 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,185 | access.cpp | OpenMW_openmw/apps/benchmarks/settings/access.cpp | #include <benchmark/benchmark.h>
#include "components/misc/strings/conversion.hpp"
#include "components/settings/parser.hpp"
#include "components/settings/settings.hpp"
#include "components/settings/values.hpp"
namespace
{
void settingsManager(benchmark::State& state)
{
for (auto _ : state)
{
... | 5,368 | C++ | .cpp | 145 | 29.489655 | 114 | 0.640385 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,186 | benchrefid.cpp | OpenMW_openmw/apps/benchmarks/esm/benchrefid.cpp | #include <benchmark/benchmark.h>
#include "components/esm/refid.hpp"
#include <algorithm>
#include <cstddef>
#include <random>
#include <string>
#include <vector>
namespace
{
constexpr std::size_t refIdsCount = 64 * 1024;
template <class Random>
std::string generateText(std::size_t size, Random& random)... | 8,674 | C++ | .cpp | 224 | 30.736607 | 118 | 0.631691 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,187 | main.cpp | OpenMW_openmw/apps/components_tests/main.cpp | #include <components/debug/debugging.hpp>
#include <components/misc/strings/conversion.hpp>
#include <components/settings/parser.hpp>
#include <components/settings/values.hpp>
#include <gtest/gtest.h>
#include <filesystem>
int main(int argc, char** argv)
{
Log::sMinDebugLevel = Debug::getDebugLevel();
const... | 858 | C++ | .cpp | 19 | 41.368421 | 114 | 0.763855 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,188 | recastmeshobject.cpp | OpenMW_openmw/apps/components_tests/detournavigator/recastmeshobject.cpp |
#include <components/detournavigator/recastmeshobject.hpp>
#include <components/misc/convert.hpp>
#include <BulletCollision/CollisionShapes/btBoxShape.h>
#include <BulletCollision/CollisionShapes/btCompoundShape.h>
#include <gtest/gtest.h>
namespace
{
using namespace testing;
using namespace DetourNavigator... | 3,551 | C++ | .cpp | 70 | 44.042857 | 119 | 0.749928 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,189 | settingsutils.cpp | OpenMW_openmw/apps/components_tests/detournavigator/settingsutils.cpp |
#include <components/detournavigator/settingsutils.hpp>
#include <gtest/gtest.h>
namespace
{
using namespace testing;
using namespace DetourNavigator;
struct DetourNavigatorGetTilePositionTest : Test
{
RecastSettings mSettings;
DetourNavigatorGetTilePositionTest()
{
... | 2,094 | C++ | .cpp | 54 | 32.037037 | 119 | 0.684107 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,190 | recastmeshbuilder.cpp | OpenMW_openmw/apps/components_tests/detournavigator/recastmeshbuilder.cpp | #include "operators.hpp"
#include <components/detournavigator/recastmesh.hpp>
#include <components/detournavigator/recastmeshbuilder.hpp>
#include <BulletCollision/CollisionDispatch/btCollisionObject.h>
#include <BulletCollision/CollisionShapes/btBoxShape.h>
#include <BulletCollision/CollisionShapes/btBvhTriangleMesh... | 26,599 | C++ | .cpp | 530 | 39.801887 | 119 | 0.601652 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,191 | tilecachedrecastmeshmanager.cpp | OpenMW_openmw/apps/components_tests/detournavigator/tilecachedrecastmeshmanager.cpp |
#include <components/detournavigator/debug.hpp>
#include <components/detournavigator/settingsutils.hpp>
#include <components/detournavigator/tilecachedrecastmeshmanager.hpp>
#include <BulletCollision/CollisionShapes/btBoxShape.h>
#include <osg/io_utils>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace
{... | 25,746 | C++ | .cpp | 453 | 48.14128 | 120 | 0.700594 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,192 | gettilespositions.cpp | OpenMW_openmw/apps/components_tests/detournavigator/gettilespositions.cpp | #include <components/detournavigator/debug.hpp>
#include <components/detournavigator/gettilespositions.hpp>
#include <components/detournavigator/settings.hpp>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace
{
using namespace testing;
using namespace DetourNavigator;
struct CollectTilesPositio... | 6,969 | C++ | .cpp | 134 | 43.880597 | 118 | 0.660935 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,193 | navmeshtilescache.cpp | OpenMW_openmw/apps/components_tests/detournavigator/navmeshtilescache.cpp | #include "generate.hpp"
#include <components/detournavigator/navmeshtilescache.hpp>
#include <components/detournavigator/preparednavmeshdata.hpp>
#include <components/detournavigator/recast.hpp>
#include <components/detournavigator/recastmesh.hpp>
#include <osg/Vec3f>
#include <RecastAlloc.h>
#include <gtest/gtest.... | 17,500 | C++ | .cpp | 306 | 49.143791 | 120 | 0.717455 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,194 | asyncnavmeshupdater.cpp | OpenMW_openmw/apps/components_tests/detournavigator/asyncnavmeshupdater.cpp | #include "settings.hpp"
#include <components/detournavigator/asyncnavmeshupdater.hpp>
#include <components/detournavigator/dbrefgeometryobject.hpp>
#include <components/detournavigator/makenavmesh.hpp>
#include <components/detournavigator/navmeshdbutils.hpp>
#include <components/detournavigator/serialization.hpp>
#inc... | 28,172 | C++ | .cpp | 506 | 46.539526 | 120 | 0.687366 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,195 | navigator.cpp | OpenMW_openmw/apps/components_tests/detournavigator/navigator.cpp | #include "operators.hpp"
#include "settings.hpp"
#include <components/bullethelpers/heightfield.hpp>
#include <components/detournavigator/navigatorimpl.hpp>
#include <components/detournavigator/navigatorutils.hpp>
#include <components/detournavigator/navmeshdb.hpp>
#include <components/esm3/loadland.hpp>
#include <com... | 57,871 | C++ | .cpp | 1,058 | 45.045369 | 120 | 0.659185 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,196 | navmeshdb.cpp | OpenMW_openmw/apps/components_tests/detournavigator/navmeshdb.cpp | #include "generate.hpp"
#include <components/detournavigator/navmeshdb.hpp>
#include <DetourAlloc.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <limits>
#include <random>
namespace
{
using namespace testing;
using namespace DetourNavigator;
using namespace DetourNavigator::Tests;
s... | 7,602 | C++ | .cpp | 160 | 39.16875 | 116 | 0.638556 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,197 | testgridsampling.cpp | OpenMW_openmw/apps/components_tests/esmterrain/testgridsampling.cpp | #include <components/esmterrain/gridsampling.hpp>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
namespace ESMTerrain
{
namespace
{
using namespace testing;
struct Sample
{
std::size_t mCellX = 0;
std::size_t mCellY = 0;
std::size_t mLocalX = 0;
... | 28,953 | C++ | .cpp | 453 | 49.302428 | 119 | 0.516829 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,198 | testbulletnifloader.cpp | OpenMW_openmw/apps/components_tests/nifloader/testbulletnifloader.cpp | #include "../nif/node.hpp"
#include <components/bullethelpers/processtrianglecallback.hpp>
#include <components/nif/data.hpp>
#include <components/nif/extra.hpp>
#include <components/nif/node.hpp>
#include <components/nifbullet/bulletnifloader.hpp>
#include <BulletCollision/CollisionShapes/btBoxShape.h>
#include <Bul... | 56,997 | C++ | .cpp | 1,103 | 43.157752 | 120 | 0.664191 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,199 | toutf8.cpp | OpenMW_openmw/apps/components_tests/toutf8/toutf8.cpp | #include <components/misc/strings/conversion.hpp>
#include <components/to_utf8/to_utf8.hpp>
#include <gtest/gtest.h>
#include <filesystem>
#include <fstream>
#ifndef OPENMW_PROJECT_SOURCE_DIR
#define OPENMW_PROJECT_SOURCE_DIR "."
#endif
namespace
{
using namespace testing;
using namespace ToUTF8;
struc... | 6,031 | C++ | .cpp | 144 | 34.645833 | 119 | 0.67468 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,200 | testesmwriter.cpp | OpenMW_openmw/apps/components_tests/esm3/testesmwriter.cpp | #include <components/esm3/esmwriter.hpp>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <algorithm>
#include <memory>
#include <random>
namespace ESM
{
namespace
{
using namespace ::testing;
struct Esm3EsmWriterTest : public Test
{
std::minstd_rand mRandom;
... | 2,881 | C++ | .cpp | 70 | 30.485714 | 118 | 0.610236 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,201 | testsaveload.cpp | OpenMW_openmw/apps/components_tests/esm3/testsaveload.cpp | #include <components/esm/fourcc.hpp>
#include <components/esm3/aipackage.hpp>
#include <components/esm3/aisequence.hpp>
#include <components/esm3/effectlist.hpp>
#include <components/esm3/esmreader.hpp>
#include <components/esm3/esmwriter.hpp>
#include <components/esm3/loadcont.hpp>
#include <components/esm3/loaddial.h... | 32,394 | C++ | .cpp | 684 | 34.214912 | 120 | 0.585673 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,202 | testcstringids.cpp | OpenMW_openmw/apps/components_tests/esm3/testcstringids.cpp | #include <components/esm3/esmreader.hpp>
#include <components/esm3/esmwriter.hpp>
#include <components/esm3/loaddial.hpp>
#include <gtest/gtest.h>
namespace ESM
{
namespace
{
TEST(Esm3CStringIdTest, dialNameShouldBeNullTerminated)
{
std::unique_ptr<std::istream> stream;
... | 1,804 | C++ | .cpp | 50 | 22.78 | 69 | 0.51059 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,203 | testinfoorder.cpp | OpenMW_openmw/apps/components_tests/esm3/testinfoorder.cpp | #include <components/esm3/infoorder.hpp>
#include <gtest/gtest.h>
namespace ESM
{
namespace
{
struct Value
{
RefId mId;
RefId mPrev;
Value() = default;
Value(const Value&) = delete;
Value(Value&&) = default;
Value& operat... | 581 | C++ | .cpp | 23 | 16.782609 | 61 | 0.537906 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,204 | readerscache.cpp | OpenMW_openmw/apps/components_tests/esm3/readerscache.cpp | #include <components/esm3/readerscache.hpp>
#include <components/files/collections.hpp>
#include <components/files/multidircollection.hpp>
#include <gtest/gtest.h>
#ifndef OPENMW_DATA_DIR
#error "OPENMW_DATA_DIR is not defined"
#endif
namespace
{
using namespace testing;
using namespace ESM;
TEST(ESM3Re... | 3,259 | C++ | .cpp | 82 | 31.414634 | 120 | 0.657513 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,205 | conversion_tests.cpp | OpenMW_openmw/apps/components_tests/files/conversion_tests.cpp | #include <components/files/conversion.hpp>
#include <components/misc/strings/conversion.hpp>
#include <gtest/gtest.h>
namespace
{
using namespace testing;
using namespace Files;
constexpr auto test_path_u8 = u8"./tmp/ÒĎƎɠˠΏЌԹעڨ/ऊঋਐઊଊ/ஐఋಋഊ/ฎນ༈ႩᄇḮὯ⁂₁₩ℒ/Ⅷ↝∑/☝✌〥ぐズ㌎丕.갔3갛";
constexpr auto test_path = "./tm... | 975 | C++ | .cpp | 20 | 36.3 | 120 | 0.709273 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,206 | hash.cpp | OpenMW_openmw/apps/components_tests/files/hash.cpp | #include <components/files/constrainedfilestream.hpp>
#include <components/files/conversion.hpp>
#include <components/files/hash.hpp>
#include <components/testing/util.hpp>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <algorithm>
#include <array>
#include <fstream>
#include <sstream>
#include <string>
... | 2,701 | C++ | .cpp | 62 | 37 | 103 | 0.68365 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,207 | test_configuration.cpp | OpenMW_openmw/apps/components_tests/lua/test_configuration.cpp | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <fstream>
#include <components/esm3/esmreader.hpp>
#include <components/esm3/esmwriter.hpp>
#include <components/esm3/formatversion.hpp>
#include <components/esm3/readerscache.hpp>
#include <components/lua/configuration.hpp>
#include <components/lua/serializa... | 12,970 | C++ | .cpp | 231 | 46.212121 | 118 | 0.633703 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,208 | test_inputactions.cpp | OpenMW_openmw/apps/components_tests/lua/test_inputactions.cpp | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <components/lua/inputactions.hpp>
#include <components/lua/scriptscontainer.hpp>
#include <components/testing/util.hpp>
namespace
{
using namespace testing;
using namespace TestingOpenMW;
TEST(LuaInputActionsTest, MultiTree)
{
{
... | 2,566 | C++ | .cpp | 59 | 34.813559 | 115 | 0.590328 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,209 | test_l10n.cpp | OpenMW_openmw/apps/components_tests/lua/test_l10n.cpp | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <components/files/fixedpath.hpp>
#include <components/l10n/manager.hpp>
#include <components/lua/l10n.hpp>
#include <components/lua/luastate.hpp>
#include <components/testing/util.hpp>
namespace
{
using namespace testing;
using namespace TestingOpenMW... | 8,333 | C++ | .cpp | 154 | 45.194805 | 119 | 0.597377 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,210 | test_serialization.cpp | OpenMW_openmw/apps/components_tests/lua/test_serialization.cpp | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <osg/Matrixf>
#include <osg/Quat>
#include <osg/Vec2f>
#include <osg/Vec3f>
#include <osg/Vec4f>
#include <components/lua/serialization.hpp>
#include <components/lua/utilpackage.hpp>
#include <components/misc/color.hpp>
#include <components/misc/endianness.h... | 10,789 | C++ | .cpp | 252 | 32.547619 | 111 | 0.563178 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,211 | test_async.cpp | OpenMW_openmw/apps/components_tests/lua/test_async.cpp | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <components/lua/asyncpackage.hpp>
#include <components/lua/luastate.hpp>
#include <components/testing/expecterror.hpp>
namespace
{
using namespace testing;
struct LuaCoroutineCallbackTest : Test
{
void SetUp() override
{
... | 1,916 | C++ | .cpp | 52 | 26.653846 | 117 | 0.560818 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,212 | test_lua.cpp | OpenMW_openmw/apps/components_tests/lua/test_lua.cpp | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <components/lua/luastate.hpp>
#include <components/testing/expecterror.hpp>
#include <components/testing/util.hpp>
namespace
{
using namespace testing;
constexpr VFS::Path::NormalizedView counterPath("aaa/counter.lua");
TestingOpenMW::VFSTestFil... | 10,111 | C++ | .cpp | 219 | 38.091324 | 117 | 0.617103 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,213 | test_yaml.cpp | OpenMW_openmw/apps/components_tests/lua/test_yaml.cpp | #include <gtest/gtest.h>
#include <sol/object.hpp>
#include <sol/state.hpp>
#include <sol/table.hpp>
#include <yaml-cpp/yaml.h>
#include <components/lua/yamlloader.hpp>
namespace
{
template <typename T>
bool checkNumber(sol::state_view& lua, const std::string& inputData, T requiredValue)
{
sol::... | 13,191 | C++ | .cpp | 296 | 34.638514 | 119 | 0.569113 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,214 | test_storage.cpp | OpenMW_openmw/apps/components_tests/lua/test_storage.cpp | #include <filesystem>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <components/lua/asyncpackage.hpp>
#include <components/lua/storage.hpp>
namespace
{
using namespace testing;
template <typename T>
T get(sol::state_view& lua, std::string luaCode)
{
return lua.safe_script("return... | 5,263 | C++ | .cpp | 105 | 39.07619 | 110 | 0.567089 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,215 | test_ui_content.cpp | OpenMW_openmw/apps/components_tests/lua/test_ui_content.cpp | #include <gtest/gtest.h>
#include <sol/sol.hpp>
#include <components/lua/luastate.hpp>
#include <components/lua_ui/content.hpp>
namespace
{
using namespace testing;
struct LuaUiContentTest : Test
{
LuaUtil::LuaState mLuaState{ nullptr, nullptr };
sol::protected_function mNew;
LuaU... | 4,727 | C++ | .cpp | 132 | 27.55303 | 107 | 0.597031 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,216 | test_scriptscontainer.cpp | OpenMW_openmw/apps/components_tests/lua/test_scriptscontainer.cpp | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <components/esm/luascripts.hpp>
#include <components/lua/asyncpackage.hpp>
#include <components/lua/luastate.hpp>
#include <components/lua/scriptscontainer.hpp>
#include <components/lua/scripttracker.hpp>
#include <components/testing/util.hpp>
namespace
{
... | 23,709 | C++ | .cpp | 570 | 32.492982 | 120 | 0.616429 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,217 | test_utilpackage.cpp | OpenMW_openmw/apps/components_tests/lua/test_utilpackage.cpp | #include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <components/lua/luastate.hpp>
#include <components/lua/utilpackage.hpp>
#include <components/testing/expecterror.hpp>
namespace
{
using namespace testing;
template <typename T>
T get(sol::state& lua, const std::string& luaCode)
{
retu... | 13,018 | C++ | .cpp | 200 | 56.715 | 119 | 0.561256 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,218 | testpathutil.cpp | OpenMW_openmw/apps/components_tests/vfs/testpathutil.cpp | #include <components/vfs/pathutil.hpp>
#include <gtest/gtest.h>
#include <sstream>
namespace VFS::Path
{
namespace
{
using namespace testing;
TEST(NormalizedTest, shouldSupportDefaultConstructor)
{
const Normalized value;
EXPECT_EQ(value.value(), "");
... | 6,964 | C++ | .cpp | 170 | 30.205882 | 100 | 0.605353 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,219 | testnifloader.cpp | OpenMW_openmw/apps/components_tests/nifosg/testnifloader.cpp | #include "../nif/node.hpp"
#include <components/nif/node.hpp>
#include <components/nif/property.hpp>
#include <components/nifosg/nifloader.hpp>
#include <components/resource/bgsmfilemanager.hpp>
#include <components/resource/imagemanager.hpp>
#include <components/sceneutil/serialize.hpp>
#include <components/vfs/manag... | 8,657 | C++ | .cpp | 279 | 22.641577 | 120 | 0.610745 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,220 | test_endianness.cpp | OpenMW_openmw/apps/components_tests/misc/test_endianness.cpp | #include "components/misc/endianness.hpp"
#include <gtest/gtest.h>
struct EndiannessTest : public ::testing::Test
{
};
TEST_F(EndiannessTest, test_swap_endianness_inplace1)
{
uint8_t zero = 0x00;
uint8_t ff = 0xFF;
uint8_t fortytwo = 0x42;
uint8_t half = 128;
Misc::swapEndiannessInplace(zero);
... | 3,264 | C++ | .cpp | 97 | 29.319588 | 63 | 0.728662 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
35,221 | test_stringops.cpp | OpenMW_openmw/apps/components_tests/misc/test_stringops.cpp | #include <gtest/gtest.h>
#include <components/misc/strings/algorithm.hpp>
#include <components/misc/strings/format.hpp>
#include <components/misc/strings/lower.hpp>
#include <components/misc/algorithm.hpp>
#include <string>
#include <string_view>
#include <type_traits>
struct PartialBinarySearchTest : public ::test... | 8,051 | C++ | .cpp | 190 | 36.484211 | 117 | 0.67413 | OpenMW/openmw | 5,318 | 933 | 0 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.