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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
34,266 | completion_menu.hpp | supercollider_supercollider/editors/sc-ide/widgets/code_editor/completion_menu.hpp | /*
SuperCollider Qt IDE
Copyright (c) 2012 Jakob Leben & Tim Blechmann
http://www.audiosynth.com
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 Licens... | 2,459 | C++ | .h | 67 | 33.059701 | 101 | 0.754526 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
34,267 | tokens.hpp | supercollider_supercollider/editors/sc-ide/widgets/code_editor/tokens.hpp | /*
SuperCollider Qt IDE
Copyright (c) 2012 Jakob Leben & Tim Blechmann
http://www.audiosynth.com
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 Licens... | 8,553 | C++ | .h | 232 | 27.866379 | 114 | 0.587551 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
34,268 | general_page.hpp | supercollider_supercollider/editors/sc-ide/widgets/settings/general_page.hpp | /*
SuperCollider Qt IDE
Copyright (c) 2012 Jakob Leben & Tim Blechmann
http://www.audiosynth.com
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 Licens... | 1,304 | C++ | .h | 37 | 31.594595 | 81 | 0.753392 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
34,269 | shortcuts_page.hpp | supercollider_supercollider/editors/sc-ide/widgets/settings/shortcuts_page.hpp | /*
SuperCollider Qt IDE
Copyright (c) 2012 Jakob Leben & Tim Blechmann
http://www.audiosynth.com
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 Licens... | 1,964 | C++ | .h | 56 | 30.767857 | 96 | 0.751454 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
34,270 | sclang_page.hpp | supercollider_supercollider/editors/sc-ide/widgets/settings/sclang_page.hpp | /*
SuperCollider Qt IDE
Copyright (c) 2012 Jakob Leben & Tim Blechmann
http://www.audiosynth.com
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 Licens... | 1,785 | C++ | .h | 50 | 31.64 | 81 | 0.756112 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
34,271 | dialog.hpp | supercollider_supercollider/editors/sc-ide/widgets/settings/dialog.hpp | /*
SuperCollider Qt IDE
Copyright (c) 2012 Jakob Leben & Tim Blechmann
http://www.audiosynth.com
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 Licens... | 1,375 | C++ | .h | 41 | 29.731707 | 81 | 0.738438 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
34,272 | editor_page.hpp | supercollider_supercollider/editors/sc-ide/widgets/settings/editor_page.hpp | /*
SuperCollider Qt IDE
Copyright (c) 2012 Jakob Leben & Tim Blechmann
http://www.audiosynth.com
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 Licens... | 2,422 | C++ | .h | 63 | 33.857143 | 110 | 0.751286 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
34,273 | style.hpp | supercollider_supercollider/editors/sc-ide/widgets/style/style.hpp | /*
SuperCollider Qt IDE
Copyright (c) 2010-2012 Jakob Leben
Copyright (c) 2012 Tim Blechmann
http://www.audiosynth.com
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; eith... | 1,995 | C++ | .h | 37 | 49.513514 | 117 | 0.757732 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | true | false | false | true | false | false |
34,274 | SCDoc.h | supercollider_supercollider/SCDoc/SCDoc.h | #pragma once
#include <stdint.h>
#include <string.h>
#include <string>
#define SCDOC_PARSE_FULL 0
#define SCDOC_PARSE_PARTIAL 1
#define SCDOC_PARSE_METADATA 2
extern const char* NODE_TEXT;
extern const char* NODE_NL;
typedef struct DocNode {
const char* id;
char* text;
int n_childs;
struct DocNode**... | 1,161 | C++ | .h | 32 | 34.3125 | 87 | 0.741964 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,275 | SCDoc.tab.hpp | supercollider_supercollider/SCDoc/SCDoc.tab.hpp | /* A Bison parser, made by GNU Bison 3.8.2. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as pub... | 5,777 | C++ | .h | 136 | 38.830882 | 80 | 0.552571 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,276 | getopt.h | supercollider_supercollider/platform/windows/compat_stuff/getopt/getopt.h | /* Declarations for getopt.
Copyright (C) 1989-1994, 1996-1999, 2001 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Softw... | 6,524 | C++ | .h | 137 | 44.065693 | 120 | 0.716131 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | true | true | false | false | false | false | false | false |
34,302 | multiple_exceptions.ipp | supercollider_supercollider/external_libraries/boost/boost/asio/impl/multiple_exceptions.ipp | //
// impl/multiple_exceptions.ipp
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2024 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef BOO... | 1,140 | C++ | .ipp | 36 | 30.083333 | 79 | 0.734675 | supercollider/supercollider | 5,424 | 745 | 915 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,381 | TimeControl.cpp | leela-zero_leela-zero/src/TimeControl.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 12,257 | C++ | .cpp | 315 | 31.409524 | 79 | 0.603057 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,386 | SGFTree.cpp | leela-zero_leela-zero/src/SGFTree.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 16,706 | C++ | .cpp | 463 | 28.650108 | 79 | 0.581028 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,388 | CPUPipe.cpp | leela-zero_leela-zero/src/CPUPipe.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 18,317 | C++ | .cpp | 389 | 35.773779 | 81 | 0.506127 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | true | false |
34,390 | UCTNodeRoot.cpp | leela-zero_leela-zero/src/UCTNodeRoot.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2018-2019 Gian-Carlo Pascutto
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opti... | 7,244 | C++ | .cpp | 195 | 30.430769 | 79 | 0.626551 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,391 | UCTNodePointer.cpp | leela-zero_leela-zero/src/UCTNodePointer.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2018-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 4,851 | C++ | .cpp | 136 | 30.970588 | 79 | 0.676979 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,392 | NNCache.cpp | leela-zero_leela-zero/src/NNCache.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Michael O and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... | 3,616 | C++ | .cpp | 92 | 34.782609 | 80 | 0.692571 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | true | false |
34,393 | FullBoard.cpp | leela-zero_leela-zero/src/FullBoard.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 6,424 | C++ | .cpp | 173 | 30.456647 | 80 | 0.614194 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,396 | Random.cpp | leela-zero_leela-zero/src/Random.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 2,915 | C++ | .cpp | 76 | 34.276316 | 76 | 0.693017 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | true | false |
34,397 | GameState.cpp | leela-zero_leela-zero/src/GameState.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 9,145 | C++ | .cpp | 253 | 30.474308 | 80 | 0.641124 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,398 | Training.cpp | leela-zero_leela-zero/src/Training.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 13,507 | C++ | .cpp | 355 | 30.729577 | 80 | 0.600412 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,399 | KoState.cpp | leela-zero_leela-zero/src/KoState.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 2,352 | C++ | .cpp | 57 | 37.263158 | 72 | 0.72935 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,400 | FastBoard.cpp | leela-zero_leela-zero/src/FastBoard.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 16,953 | C++ | .cpp | 497 | 26.410463 | 80 | 0.536164 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,404 | Tuner.cpp | leela-zero_leela-zero/src/Tuner.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 23,847 | C++ | .cpp | 638 | 27.819749 | 80 | 0.511575 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | true | false |
34,406 | Timing.cpp | leela-zero_leela-zero/src/Timing.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 1,728 | C++ | .cpp | 35 | 45.114286 | 76 | 0.746881 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,407 | utils_unittest.cpp | leela-zero_leela-zero/src/tests/utils_unittest.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2018-2019 Seth Troisi and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at ... | 5,034 | C++ | .cpp | 114 | 39.350877 | 79 | 0.6852 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,408 | gtests.cpp | leela-zero_leela-zero/src/tests/gtests.cpp | /*
This file is part of Leela Zero.
Copyright (C) 2018-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 14,817 | C++ | .cpp | 323 | 38.773994 | 80 | 0.627606 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | true | false | false |
34,419 | FullBoard.h | leela-zero_leela-zero/src/FullBoard.h | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 2,067 | C++ | .h | 47 | 39.659574 | 72 | 0.744012 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,422 | CPUPipe.h | leela-zero_leela-zero/src/CPUPipe.h | /*
This file is part of Leela Zero.
Copyright (C) 2018-2019 Junhee Yoo and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at y... | 2,886 | C++ | .h | 61 | 38.540984 | 78 | 0.663105 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,423 | TimeControl.h | leela-zero_leela-zero/src/TimeControl.h | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 2,956 | C++ | .h | 65 | 40.538462 | 79 | 0.710609 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,426 | SGFTree.h | leela-zero_leela-zero/src/SGFTree.h | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 2,872 | C++ | .h | 69 | 37.347826 | 72 | 0.735727 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,427 | Timing.h | leela-zero_leela-zero/src/Timing.h | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 1,698 | C++ | .h | 38 | 40.421053 | 72 | 0.753034 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,432 | UCTNodePointer.h | leela-zero_leela-zero/src/UCTNodePointer.h | /*
This file is part of Leela Zero.
Copyright (C) 2018-2019 Gian-Carlo Pascutto
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opti... | 4,572 | C++ | .h | 111 | 36.18018 | 84 | 0.69373 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,434 | KoState.h | leela-zero_leela-zero/src/KoState.h | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 1,721 | C++ | .h | 40 | 39 | 72 | 0.755995 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,435 | Random.h | leela-zero_leela-zero/src/Random.h | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 2,821 | C++ | .h | 73 | 33.410959 | 77 | 0.687294 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,438 | Tuner.h | leela-zero_leela-zero/src/Tuner.h | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 3,038 | C++ | .h | 63 | 42.492063 | 78 | 0.711532 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,444 | NNCache.h | leela-zero_leela-zero/src/NNCache.h | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Michael O and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at yo... | 3,314 | C++ | .h | 85 | 32.870588 | 78 | 0.67875 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,445 | FastBoard.h | leela-zero_leela-zero/src/FastBoard.h | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 4,884 | C++ | .h | 116 | 37.077586 | 97 | 0.666315 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,446 | config.h | leela-zero_leela-zero/src/config.h | /*
This file is part of Leela Zero.
Copyright (C) 2017-2019 Gian-Carlo Pascutto and contributors
Leela Zero is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
... | 4,476 | C++ | .h | 121 | 34.636364 | 80 | 0.759289 | leela-zero/leela-zero | 5,332 | 1,013 | 373 | GPL-3.0 | 9/20/2024, 9:26:25 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
34,448 | stereomanager.cpp | OpenMW_openmw/components/stereo/stereomanager.cpp | #include "stereomanager.hpp"
#include "frustum.hpp"
#include "multiview.hpp"
#include <osg/DisplaySettings>
#include <osg/Texture2D>
#include <osg/Texture2DArray>
#include <osg/Texture2DMultisample>
#include <osg/io_utils>
#include <osgUtil/CullVisitor>
#include <osgUtil/RenderStage>
#include <osgViewer/Renderer>
#i... | 14,707 | C++ | .cpp | 350 | 33.011429 | 116 | 0.649867 | 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 |
34,449 | frustum.cpp | OpenMW_openmw/components/stereo/frustum.cpp | #include "multiview.hpp"
#include <osg/DisplaySettings>
#include <osg/Texture2D>
#include <osg/Texture2DArray>
#include <osg/Texture2DMultisample>
#include <osg/io_utils>
#include <osgUtil/CullVisitor>
#include <osgUtil/RenderStage>
#include <osgViewer/Renderer>
#include <osgViewer/Viewer>
#include <map>
#include <... | 4,507 | C++ | .cpp | 119 | 29.621849 | 113 | 0.646277 | 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 |
34,450 | types.cpp | OpenMW_openmw/components/stereo/types.cpp | #include "types.hpp"
#include <osg/io_utils>
namespace Stereo
{
Pose Pose::operator+(const Pose& rhs)
{
Pose pose = *this;
pose.position += this->orientation * rhs.position;
pose.orientation = rhs.orientation * this->orientation;
return pose;
}
const Pose& Pose::opera... | 4,408 | C++ | .cpp | 137 | 23.605839 | 100 | 0.533098 | 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 |
34,451 | multiview.cpp | OpenMW_openmw/components/stereo/multiview.cpp | #include "multiview.hpp"
#include <osg/FrameBufferObject>
#include <osg/GLExtensions>
#include <osg/Texture2D>
#include <osg/Texture2DArray>
#include <osg/Texture2DMultisample>
#include <osgUtil/CullVisitor>
#include <osgUtil/RenderStage>
#ifdef OSG_HAS_MULTIVIEW
#include <osg/Texture2DMultisampleArray>
#endif
#incl... | 32,948 | C++ | .cpp | 754 | 33.108753 | 120 | 0.626896 | 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 |
34,452 | serialization.cpp | OpenMW_openmw/components/detournavigator/serialization.cpp | #include "serialization.hpp"
#include "agentbounds.hpp"
#include "dbrefgeometryobject.hpp"
#include "preparednavmeshdata.hpp"
#include "recast.hpp"
#include "recastmesh.hpp"
#include "settings.hpp"
#include "tilebounds.hpp"
#include <components/serialization/binaryreader.hpp>
#include <components/serialization/binary... | 11,674 | C++ | .cpp | 257 | 31.610895 | 113 | 0.561447 | 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 |
34,453 | recastmeshobject.cpp | OpenMW_openmw/components/detournavigator/recastmeshobject.cpp | #include "recastmeshobject.hpp"
#include <BulletCollision/CollisionShapes/btCompoundShape.h>
#include <cassert>
namespace DetourNavigator
{
namespace
{
bool updateCompoundObject(
const btCompoundShape& shape, const AreaType areaType, std::vector<ChildRecastMeshObject>& children)
{... | 2,919 | C++ | .cpp | 73 | 30.60274 | 118 | 0.624736 | 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 |
34,454 | makenavmesh.cpp | OpenMW_openmw/components/detournavigator/makenavmesh.cpp | #include "makenavmesh.hpp"
#include "debug.hpp"
#include "exceptions.hpp"
#include "flags.hpp"
#include "navmeshdata.hpp"
#include "navmeshdb.hpp"
#include "navmeshtilescache.hpp"
#include "offmeshconnection.hpp"
#include "preparednavmeshdata.hpp"
#include "recastcontext.hpp"
#include "recastmesh.hpp"
#include "recastm... | 26,266 | C++ | .cpp | 529 | 36.969754 | 119 | 0.612942 | 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 |
34,455 | navigatorutils.cpp | OpenMW_openmw/components/detournavigator/navigatorutils.cpp | #include "navigatorutils.hpp"
#include "debug.hpp"
#include "findrandompointaroundcircle.hpp"
#include "navigator.hpp"
#include "raycast.hpp"
#include <components/debug/debuglog.hpp>
namespace DetourNavigator
{
std::optional<osg::Vec3f> findRandomPointAroundCircle(const Navigator& navigator, const AgentBounds& ag... | 3,557 | C++ | .cpp | 71 | 41.169014 | 118 | 0.689675 | 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 |
34,456 | collisionshapetype.cpp | OpenMW_openmw/components/detournavigator/collisionshapetype.cpp | #include "collisionshapetype.hpp"
#include <stdexcept>
#include <string>
namespace DetourNavigator
{
CollisionShapeType toCollisionShapeType(int value)
{
switch (static_cast<CollisionShapeType>(value))
{
case CollisionShapeType::Aabb:
case CollisionShapeType::RotatingBo... | 624 | C++ | .cpp | 20 | 24.1 | 66 | 0.651163 | 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 |
34,457 | recast.cpp | OpenMW_openmw/components/detournavigator/recast.cpp | #include "recast.hpp"
#include <Recast.h>
#include <RecastAlloc.h>
#include <cstring>
#include <new>
namespace DetourNavigator
{
void* permRecastAlloc(std::size_t size)
{
void* const result = rcAlloc(size, RC_ALLOC_PERM);
if (result == nullptr)
throw std::bad_alloc();
retu... | 2,685 | C++ | .cpp | 75 | 28.186667 | 88 | 0.634896 | 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 |
34,458 | navmeshmanager.cpp | OpenMW_openmw/components/detournavigator/navmeshmanager.cpp | #include "navmeshmanager.hpp"
#include "debug.hpp"
#include "gettilespositions.hpp"
#include "makenavmesh.hpp"
#include "navmeshcacheitem.hpp"
#include "settings.hpp"
#include "settingsutils.hpp"
#include "waitconditiontype.hpp"
#include <components/debug/debuglog.hpp>
#include <components/esm/util.hpp>
#include <os... | 11,129 | C++ | .cpp | 240 | 37.641667 | 119 | 0.678124 | 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 |
34,459 | recastmeshbuilder.cpp | OpenMW_openmw/components/detournavigator/recastmeshbuilder.cpp | #include "recastmeshbuilder.hpp"
#include "exceptions.hpp"
#include <components/bullethelpers/heightfield.hpp>
#include <components/bullethelpers/processtrianglecallback.hpp>
#include <components/bullethelpers/transformboundingbox.hpp>
#include <components/misc/convert.hpp>
#include <BulletCollision/CollisionShapes/b... | 15,236 | C++ | .cpp | 293 | 42.860068 | 118 | 0.653175 | 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 |
34,460 | raycast.cpp | OpenMW_openmw/components/detournavigator/raycast.cpp | #include "raycast.hpp"
#include <DetourNavMesh.h>
#include <DetourNavMeshQuery.h>
#include <array>
namespace DetourNavigator
{
std::optional<osg::Vec3f> raycast(const dtNavMeshQuery& navMeshQuery, const osg::Vec3f& halfExtents,
const osg::Vec3f& start, const osg::Vec3f& end, const Flags includeFlags)
... | 1,258 | C++ | .cpp | 31 | 32.645161 | 120 | 0.642623 | 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 |
34,461 | settings.cpp | OpenMW_openmw/components/detournavigator/settings.cpp | #include "settings.hpp"
#include <components/misc/constants.hpp>
#include <components/settings/values.hpp>
#include <algorithm>
#include <stdexcept>
#include <string>
namespace DetourNavigator
{
namespace
{
struct NavMeshLimits
{
int mMaxTiles;
int mMaxPolys;
}... | 4,834 | C++ | .cpp | 91 | 43.021978 | 113 | 0.686005 | 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 |
34,462 | tilecachedrecastmeshmanager.cpp | OpenMW_openmw/components/detournavigator/tilecachedrecastmeshmanager.cpp | #include "tilecachedrecastmeshmanager.hpp"
#include "changetype.hpp"
#include "gettilespositions.hpp"
#include "recastmeshbuilder.hpp"
#include "settingsutils.hpp"
#include "stats.hpp"
#include "updateguard.hpp"
#include <components/bullethelpers/aabb.hpp>
#include <components/misc/convert.hpp>
#include <boost/geome... | 21,628 | C++ | .cpp | 499 | 31.651303 | 120 | 0.599222 | 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 |
34,463 | navmeshtileview.cpp | OpenMW_openmw/components/detournavigator/navmeshtileview.cpp | #include "navmeshtileview.hpp"
#include "ref.hpp"
#include <DetourCommon.h>
#include <DetourNavMesh.h>
#include <algorithm>
#include <cassert>
#include <stdexcept>
#include <tuple>
inline bool operator==(const dtMeshHeader& lhs, const dtMeshHeader& rhs) noexcept
{
const auto makeTuple = [](const dtMeshHeader& v)... | 5,388 | C++ | .cpp | 107 | 43.570093 | 151 | 0.706005 | 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 |
34,464 | stats.cpp | OpenMW_openmw/components/detournavigator/stats.cpp | #include "stats.hpp"
#include <osg/Stats>
namespace DetourNavigator
{
namespace
{
void reportStats(const AsyncNavMeshUpdaterStats& stats, unsigned int frameNumber, osg::Stats& out)
{
out.setAttribute(frameNumber, "NavMesh Jobs", static_cast<double>(stats.mJobs));
out.se... | 2,778 | C++ | .cpp | 43 | 53.953488 | 120 | 0.687683 | 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 |
34,465 | navmeshcacheitem.cpp | OpenMW_openmw/components/detournavigator/navmeshcacheitem.cpp | #include "navmeshcacheitem.hpp"
#include "debug.hpp"
#include "makenavmesh.hpp"
#include "navmeshdata.hpp"
#include "navmeshtilescache.hpp"
#include "navmeshtileview.hpp"
#include "settings.hpp"
#include "tileposition.hpp"
#include <DetourNavMesh.h>
#include <ostream>
#include <sstream>
namespace
{
using DetourN... | 5,441 | C++ | .cpp | 145 | 28.158621 | 105 | 0.612909 | 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 |
34,466 | navmeshdbutils.cpp | OpenMW_openmw/components/detournavigator/navmeshdbutils.cpp | #include "navmeshdbutils.hpp"
#include "navmeshdb.hpp"
#include "recastmesh.hpp"
#include "components/debug/debuglog.hpp"
#include "components/misc/strings/conversion.hpp"
#include <cassert>
#include <optional>
#include <string_view>
namespace DetourNavigator
{
namespace
{
std::optional<ShapeId> find... | 2,770 | C++ | .cpp | 64 | 32.1875 | 113 | 0.596296 | 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 |
34,467 | recastmesh.cpp | OpenMW_openmw/components/detournavigator/recastmesh.cpp | #include "recastmesh.hpp"
#include "exceptions.hpp"
namespace DetourNavigator
{
Mesh::Mesh(std::vector<int>&& indices, std::vector<float>&& vertices, std::vector<AreaType>&& areaTypes)
{
if (indices.size() / 3 != areaTypes.size())
throw InvalidArgument("Number of flags doesn't match number ... | 1,335 | C++ | .cpp | 32 | 34.15625 | 108 | 0.640277 | 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 |
34,468 | navigatorimpl.cpp | OpenMW_openmw/components/detournavigator/navigatorimpl.cpp | #include "navigatorimpl.hpp"
#include "makenavmesh.hpp"
#include "settingsutils.hpp"
#include "stats.hpp"
#include <components/esm3/loadpgrd.hpp>
#include <components/misc/convert.hpp>
#include <components/misc/coordinateconverter.hpp>
namespace DetourNavigator
{
NavigatorImpl::NavigatorImpl(const Settings& setti... | 8,015 | C++ | .cpp | 187 | 35.101604 | 117 | 0.691538 | 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 |
34,469 | gettilespositions.cpp | OpenMW_openmw/components/detournavigator/gettilespositions.cpp | #include "gettilespositions.hpp"
#include "settings.hpp"
#include "settingsutils.hpp"
#include "tilebounds.hpp"
#include "tileposition.hpp"
#include <components/misc/convert.hpp>
#include <BulletCollision/CollisionShapes/btCollisionShape.h>
namespace DetourNavigator
{
TilesPositionsRange makeTilesPositionsRange(... | 3,600 | C++ | .cpp | 72 | 42.611111 | 115 | 0.677107 | 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 |
34,470 | preparednavmeshdata.cpp | OpenMW_openmw/components/detournavigator/preparednavmeshdata.cpp | #include "preparednavmeshdata.hpp"
#include "preparednavmeshdatatuple.hpp"
#include "recast.hpp"
#include <Recast.h>
#include <cstring>
namespace
{
void initPolyMeshDetail(rcPolyMeshDetail& value) noexcept
{
value.meshes = nullptr;
value.verts = nullptr;
value.tris = nullptr;
... | 1,133 | C++ | .cpp | 40 | 22.85 | 92 | 0.703499 | 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 |
34,471 | navmeshtilescache.cpp | OpenMW_openmw/components/detournavigator/navmeshtilescache.cpp | #include "navmeshtilescache.hpp"
#include "stats.hpp"
#include <cstring>
namespace DetourNavigator
{
NavMeshTilesCache::NavMeshTilesCache(const std::size_t maxNavMeshDataSize)
: mMaxNavMeshDataSize(maxNavMeshDataSize)
, mUsedNavMeshDataSize(0)
, mFreeNavMeshDataSize(0)
, mHitCount(... | 3,948 | C++ | .cpp | 94 | 33.265957 | 119 | 0.659002 | 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 |
34,472 | recastcontext.cpp | OpenMW_openmw/components/detournavigator/recastcontext.cpp | #include "recastcontext.hpp"
#include "debug.hpp"
#include "components/debug/debuglog.hpp"
#include <sstream>
namespace DetourNavigator
{
namespace
{
Debug::Level getLogLevel(rcLogCategory category)
{
switch (category)
{
case RC_LOG_PROGRESS:
... | 1,437 | C++ | .cpp | 41 | 25.536585 | 106 | 0.576978 | 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 |
34,473 | findrandompointaroundcircle.cpp | OpenMW_openmw/components/detournavigator/findrandompointaroundcircle.cpp | #include "findrandompointaroundcircle.hpp"
#include <DetourNavMesh.h>
#include <DetourNavMeshQuery.h>
namespace DetourNavigator
{
std::optional<osg::Vec3f> findRandomPointAroundCircle(const dtNavMeshQuery& navMeshQuery,
const osg::Vec3f& halfExtents, const osg::Vec3f& start, const float maxRadius, const F... | 1,063 | C++ | .cpp | 25 | 35 | 112 | 0.689622 | 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 |
34,474 | offmeshconnectionsmanager.cpp | OpenMW_openmw/components/detournavigator/offmeshconnectionsmanager.cpp | #include "offmeshconnectionsmanager.hpp"
#include "objectid.hpp"
#include "offmeshconnection.hpp"
#include "settings.hpp"
#include "settingsutils.hpp"
#include "tileposition.hpp"
#include <algorithm>
#include <set>
#include <vector>
namespace DetourNavigator
{
OffMeshConnectionsManager::OffMeshConnectionsManager(... | 3,023 | C++ | .cpp | 70 | 34.314286 | 111 | 0.653242 | 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 |
34,475 | generatenavmeshtile.cpp | OpenMW_openmw/components/detournavigator/generatenavmeshtile.cpp | #include "generatenavmeshtile.hpp"
#include "dbrefgeometryobject.hpp"
#include "makenavmesh.hpp"
#include "preparednavmeshdata.hpp"
#include "serialization.hpp"
#include "settings.hpp"
#include <components/debug/debuglog.hpp>
#include <osg/io_utils>
#include <functional>
#include <memory>
#include <optional>
#inclu... | 3,271 | C++ | .cpp | 83 | 29.795181 | 115 | 0.623856 | 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 |
34,476 | asyncnavmeshupdater.cpp | OpenMW_openmw/components/detournavigator/asyncnavmeshupdater.cpp | #include "asyncnavmeshupdater.hpp"
#include "dbrefgeometryobject.hpp"
#include "debug.hpp"
#include "makenavmesh.hpp"
#include "navmeshdbutils.hpp"
#include "serialization.hpp"
#include "settings.hpp"
#include "version.hpp"
#include <components/debug/debuglog.hpp>
#include <components/loadinglistener/loadinglistener.h... | 37,246 | C++ | .cpp | 879 | 30.649602 | 120 | 0.572233 | 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 |
34,477 | navigator.cpp | OpenMW_openmw/components/detournavigator/navigator.cpp | #include "navigator.hpp"
#include "navigatorimpl.hpp"
#include "navigatorstub.hpp"
#include "recastglobalallocator.hpp"
#include <components/debug/debuglog.hpp>
#include <components/files/conversion.hpp>
namespace DetourNavigator
{
std::unique_ptr<Navigator> makeNavigator(const Settings& settings, const std::file... | 1,188 | C++ | .cpp | 32 | 29.46875 | 113 | 0.636838 | 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 |
34,478 | commulativeaabb.cpp | OpenMW_openmw/components/detournavigator/commulativeaabb.cpp | #include "commulativeaabb.hpp"
#include <components/bullethelpers/aabb.hpp>
namespace DetourNavigator
{
CommulativeAabb::CommulativeAabb(std::size_t lastChangeRevision, const btAABB& aabb)
: mLastChangeRevision(lastChangeRevision)
, mAabb(aabb)
{
}
bool CommulativeAabb::update(std::si... | 775 | C++ | .cpp | 24 | 25 | 88 | 0.65508 | 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 |
34,479 | navmeshdb.cpp | OpenMW_openmw/components/detournavigator/navmeshdb.cpp | #include "navmeshdb.hpp"
#include <components/debug/debuglog.hpp>
#include <components/misc/compression.hpp>
#include <components/misc/strings/format.hpp>
#include <components/sqlite3/db.hpp>
#include <components/sqlite3/request.hpp>
#include <DetourAlloc.h>
#include <sqlite3.h>
#include <cstddef>
#include <string_... | 16,461 | C++ | .cpp | 363 | 34.917355 | 120 | 0.611686 | 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 |
34,480 | debug.cpp | OpenMW_openmw/components/detournavigator/debug.cpp | #include "debug.hpp"
#include "exceptions.hpp"
#include "recastmesh.hpp"
#include "settings.hpp"
#include "settingsutils.hpp"
#include "tilespositionsrange.hpp"
#include "version.hpp"
#include <components/debug/writeflags.hpp>
#include <DetourNavMesh.h>
#include <DetourStatus.h>
#include <osg/io_utils>
#include <ar... | 11,295 | C++ | .cpp | 272 | 31.591912 | 120 | 0.556425 | 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 |
34,481 | cellborder.cpp | OpenMW_openmw/components/terrain/cellborder.cpp | #include "cellborder.hpp"
#include <osg/Geometry>
#include <osg/Material>
#include <osg/PolygonMode>
#include "world.hpp"
#include <components/esm/util.hpp>
#include <components/esm3/loadland.hpp>
#include <components/resource/scenemanager.hpp>
#include <components/terrain/storage.hpp>
namespace Terrain
{
Cell... | 3,872 | C++ | .cpp | 84 | 37.690476 | 118 | 0.644758 | 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 |
34,482 | quadtreenode.cpp | OpenMW_openmw/components/terrain/quadtreenode.cpp | #include "quadtreenode.hpp"
#include <cassert>
#include <osgUtil/CullVisitor>
#include "defs.hpp"
#include "viewdata.hpp"
namespace Terrain
{
float distance(const osg::BoundingBox& box, const osg::Vec3f& v)
{
if (box.contains(v))
return 0;
else
{
osg::Vec3f m... | 4,330 | C++ | .cpp | 127 | 25.267717 | 116 | 0.552978 | 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 |
34,483 | viewdata.cpp | OpenMW_openmw/components/terrain/viewdata.cpp | #include "viewdata.hpp"
#include "quadtreenode.hpp"
#include <algorithm>
namespace Terrain
{
ViewData::ViewData()
: mNumEntries(0)
, mLastUsageTimeStamp(0.0)
, mChanged(false)
, mHasViewPoint(false)
, mWorldUpdateRevision(0)
{
}
ViewData::~ViewData() {}
... | 6,602 | C++ | .cpp | 205 | 22.346341 | 116 | 0.550165 | 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 |
34,484 | chunkmanager.cpp | OpenMW_openmw/components/terrain/chunkmanager.cpp | #include "chunkmanager.hpp"
#include <osg/Material>
#include <osg/Texture2D>
#include <osgUtil/IncrementalCompileOperation>
#include <components/resource/objectcache.hpp>
#include <components/resource/scenemanager.hpp>
#include <components/sceneutil/lightmanager.hpp>
#include "compositemaprenderer.hpp"
#include "m... | 13,247 | C++ | .cpp | 246 | 42.821138 | 120 | 0.638393 | 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 |
34,485 | texturemanager.cpp | OpenMW_openmw/components/terrain/texturemanager.cpp | #include "texturemanager.hpp"
#include <osg/Texture2D>
#include <components/resource/imagemanager.hpp>
#include <components/resource/objectcache.hpp>
#include <components/resource/scenemanager.hpp>
namespace Terrain
{
TextureManager::TextureManager(Resource::SceneManager* sceneMgr, double expiryDelay)
:... | 1,976 | C++ | .cpp | 48 | 34.25 | 117 | 0.689457 | 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 |
34,486 | world.cpp | OpenMW_openmw/components/terrain/world.cpp | #include "world.hpp"
#include <osg/Camera>
#include <osg/Group>
#include <components/resource/resourcesystem.hpp>
#include <components/resource/scenemanager.hpp>
#include <components/settings/values.hpp>
#include "chunkmanager.hpp"
#include "compositemaprenderer.hpp"
#include "heightcull.hpp"
#include "storage.hpp"
... | 5,164 | C++ | .cpp | 132 | 31.318182 | 117 | 0.678329 | 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 |
34,487 | quadtreeworld.cpp | OpenMW_openmw/components/terrain/quadtreeworld.cpp | #include "quadtreeworld.hpp"
#include <osg/Material>
#include <osg/PolygonMode>
#include <osg/ShapeDrawable>
#include <osgUtil/CullVisitor>
#include <limits>
#include <components/esm/util.hpp>
#include <components/loadinglistener/reporter.hpp>
#include <components/misc/constants.hpp>
#include <components/misc/mathut... | 24,151 | C++ | .cpp | 540 | 33.431481 | 120 | 0.590695 | 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 |
34,488 | material.cpp | OpenMW_openmw/components/terrain/material.cpp | #include "material.hpp"
#include <osg/BlendFunc>
#include <osg/Capability>
#include <osg/Depth>
#include <osg/Fog>
#include <osg/TexEnvCombine>
#include <osg/TexMat>
#include <osg/Texture2D>
#include <components/resource/scenemanager.hpp>
#include <components/sceneutil/depth.hpp>
#include <components/sceneutil/util.h... | 11,463 | C++ | .cpp | 289 | 27.595156 | 118 | 0.556195 | 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 |
34,489 | compositemaprenderer.cpp | OpenMW_openmw/components/terrain/compositemaprenderer.cpp | #include "compositemaprenderer.hpp"
#include <osg/FrameBufferObject>
#include <osg/RenderInfo>
#include <osg/Texture2D>
#include <algorithm>
namespace Terrain
{
CompositeMapRenderer::CompositeMapRenderer()
: mTargetFrameRate(120)
, mMinimumTimeAvailable(0.0025)
{
setSupportsDisplayLi... | 5,882 | C++ | .cpp | 141 | 32.375887 | 114 | 0.639186 | 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 |
34,490 | buffercache.cpp | OpenMW_openmw/components/terrain/buffercache.cpp | #include "buffercache.hpp"
#include <cassert>
#include <osg/PrimitiveSet>
#include "defs.hpp"
namespace
{
template <typename IndexArrayType>
osg::ref_ptr<IndexArrayType> createIndexBuffer(unsigned int flags, unsigned int verts)
{
// LOD level n means every 2^n-th vertex is kept, but we currentl... | 10,093 | C++ | .cpp | 220 | 32.390909 | 120 | 0.51027 | 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 |
34,491 | terraindrawable.cpp | OpenMW_openmw/components/terrain/terraindrawable.cpp | #include "terraindrawable.hpp"
#include <osg/ClusterCullingCallback>
#include <osgUtil/CullVisitor>
#include <components/sceneutil/lightmanager.hpp>
#include "compositemaprenderer.hpp"
namespace Terrain
{
TerrainDrawable::TerrainDrawable() {}
TerrainDrawable::~TerrainDrawable() {}
TerrainDrawable::Te... | 5,378 | C++ | .cpp | 135 | 31.02963 | 100 | 0.614425 | 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 |
34,492 | terraingrid.cpp | OpenMW_openmw/components/terrain/terraingrid.cpp | #include "terraingrid.hpp"
#include <memory>
#include <osg/ComputeBoundsVisitor>
#include <osg/Group>
#include "chunkmanager.hpp"
#include "heightcull.hpp"
#include "storage.hpp"
#include "view.hpp"
#include <components/sceneutil/positionattitudetransform.hpp>
namespace Terrain
{
class MyView : public View
... | 4,358 | C++ | .cpp | 111 | 30.891892 | 120 | 0.625444 | 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 |
34,493 | storage.cpp | OpenMW_openmw/components/esmterrain/storage.cpp | #include "storage.hpp"
#include <algorithm>
#include <optional>
#include <stdexcept>
#include <osg/Image>
#include <osg/Plane>
#include <components/debug/debuglog.hpp>
#include <components/esm/esmterrain.hpp>
#include <components/esm/util.hpp>
#include <components/esm3/loadland.hpp>
#include <components/esm4/loadlan... | 23,908 | C++ | .cpp | 529 | 33.979206 | 120 | 0.566525 | 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 |
34,494 | sdlcursormanager.cpp | OpenMW_openmw/components/sdlutil/sdlcursormanager.cpp | #include "sdlcursormanager.hpp"
#include <stdexcept>
#include <SDL_endian.h>
#include <SDL_hints.h>
#include <SDL_mouse.h>
#include <SDL_render.h>
#include <osg/Geometry>
#include <osg/GraphicsContext>
#include <osg/TexMat>
#include <osg/Texture2D>
#include <osg/Version>
#include <osgViewer/GraphicsWindow>
#include... | 4,747 | C++ | .cpp | 122 | 31.352459 | 114 | 0.655781 | 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 |
34,495 | sdlmappings.cpp | OpenMW_openmw/components/sdlutil/sdlmappings.cpp | #include "sdlmappings.hpp"
#include <map>
#include <MyGUI_MouseButton.h>
#include <SDL_gamecontroller.h>
#include <SDL_mouse.h>
namespace SDLUtil
{
std::string sdlControllerButtonToString(int button)
{
switch (button)
{
case SDL_CONTROLLER_BUTTON_A:
return "A Butt... | 9,989 | C++ | .cpp | 225 | 32.622222 | 109 | 0.565654 | 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 |
34,496 | sdlvideowrapper.cpp | OpenMW_openmw/components/sdlutil/sdlvideowrapper.cpp | #include "sdlvideowrapper.hpp"
#include <components/debug/debuglog.hpp>
#include <components/sdlutil/sdlgraphicswindow.hpp>
#include <components/settings/settings.hpp>
#include <osgViewer/Viewer>
#include <SDL_video.h>
namespace SDLUtil
{
VideoWrapper::VideoWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::V... | 4,261 | C++ | .cpp | 114 | 28.175439 | 120 | 0.583899 | 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 |
34,497 | imagetosurface.cpp | OpenMW_openmw/components/sdlutil/imagetosurface.cpp | #include "imagetosurface.hpp"
#include <SDL_surface.h>
#include <osg/Image>
namespace SDLUtil
{
SurfaceUniquePtr imageToSurface(osg::Image* image, bool flip)
{
int width = image->s();
int height = image->t();
SDL_Surface* surface
= SDL_CreateRGBSurface(0, width, height, 32... | 1,025 | C++ | .cpp | 24 | 32.791667 | 120 | 0.548744 | 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 |
34,498 | sdlgraphicswindow.cpp | OpenMW_openmw/components/sdlutil/sdlgraphicswindow.cpp | #include "sdlgraphicswindow.hpp"
#include <SDL_video.h>
#ifdef OPENMW_GL4ES_MANUAL_INIT
#include "gl4es_init.h"
#endif
namespace SDLUtil
{
GraphicsWindowSDL2::~GraphicsWindowSDL2()
{
close(true);
}
GraphicsWindowSDL2::GraphicsWindowSDL2(osg::GraphicsContext::Traits* traits, VSyncMode vsyncM... | 8,077 | C++ | .cpp | 230 | 26.191304 | 108 | 0.608573 | 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 |
34,499 | gl4es_init.cpp | OpenMW_openmw/components/sdlutil/gl4es_init.cpp | // EGL does not work reliably for feature detection.
// Instead, we initialize gl4es manually.
#ifdef OPENMW_GL4ES_MANUAL_INIT
#include "gl4es_init.h"
// For glHint
#include <GL/gl.h>
extern "C"
{
#include <gl4es/gl4eshint.h>
#include <gl4es/gl4esinit.h>
static SDL_Window* gWindow;
void openmw_gl4es_GetMai... | 876 | C++ | .cpp | 28 | 26.392857 | 60 | 0.686532 | 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 |
34,500 | sdlinputwrapper.cpp | OpenMW_openmw/components/sdlutil/sdlinputwrapper.cpp | #include "sdlinputwrapper.hpp"
#include <components/debug/debuglog.hpp>
#include <components/settings/values.hpp>
#include <osgViewer/Viewer>
namespace SDLUtil
{
InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::Viewer> viewer, bool grab)
: mSDLWindow(window)
, mViewer(std::... | 15,974 | C++ | .cpp | 387 | 27.142119 | 120 | 0.53332 | 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 |
34,502 | ba2dx10file.cpp | OpenMW_openmw/components/bsa/ba2dx10file.cpp | #include "ba2dx10file.hpp"
#include <cassert>
#include <filesystem>
#include <fstream>
#include <lz4frame.h>
#if defined(_MSC_VER)
// why is this necessary? These are included with /external:I
#pragma warning(push)
#pragma warning(disable : 4706)
#pragma warning(disable : 4702)
#include <boost/iostreams/copy.hpp>
#i... | 26,314 | C++ | .cpp | 632 | 30.286392 | 118 | 0.58863 | 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 |
34,503 | bsa_file.cpp | OpenMW_openmw/components/bsa/bsa_file.cpp | /*
OpenMW - The completely unofficial reimplementation of Morrowind
Copyright (C) 2008-2010 Nicolay Korslund
Email: < korslund@gmail.com >
WWW: https://openmw.org/
This file (bsa_file.cpp) is part of the OpenMW package.
OpenMW is distributed as free software: you can redistribute it
and/or modify it un... | 11,116 | C++ | .cpp | 292 | 32.160959 | 111 | 0.6311 | 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 |
34,504 | ba2gnrlfile.cpp | OpenMW_openmw/components/bsa/ba2gnrlfile.cpp | #include "ba2gnrlfile.hpp"
#include <cassert>
#include <filesystem>
#include <fstream>
#include <lz4frame.h>
#if defined(_MSC_VER)
// why is this necessary? These are included with /external:I
#pragma warning(push)
#pragma warning(disable : 4706)
#pragma warning(disable : 4702)
#include <boost/iostreams/copy.hpp>
#i... | 8,303 | C++ | .cpp | 203 | 31.945813 | 118 | 0.618227 | 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 |
34,505 | compressedbsafile.cpp | OpenMW_openmw/components/bsa/compressedbsafile.cpp | /*
OpenMW - The completely unofficial reimplementation of Morrowind
Copyright (C) 2008-2010 Nicolay Korslund
Email: < korslund@gmail.com >
WWW: http://openmw.sourceforge.net/
This file (compressedbsafile.cpp) is part of the OpenMW package.
OpenMW is distributed as free software: you can redistribute it
... | 13,943 | C++ | .cpp | 319 | 32.815047 | 118 | 0.578331 | 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 |
34,506 | npcstate.cpp | OpenMW_openmw/components/esm3/npcstate.cpp | #include "npcstate.hpp"
namespace ESM
{
void NpcState::load(ESMReader& esm)
{
ObjectState::load(esm);
if (mHasCustomState)
{
mInventory.load(esm);
mNpcStats.load(esm);
mCreatureStats.load(esm);
}
}
void NpcState::save(ESMWriter& e... | 726 | C++ | .cpp | 31 | 15.483871 | 63 | 0.555556 | 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 |
34,507 | loadlock.cpp | OpenMW_openmw/components/esm3/loadlock.cpp | #include "loadlock.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
#include <components/misc/concepts.hpp>
namespace ESM
{
template <Misc::SameAsWithoutCvref<Lockpick::Data> T>
void decompose(T&& v, const auto& f)
{
f(v.mWeight, v.mValue, v.mQuality, v.mUses);
}
void Lockpick::loa... | 2,502 | C++ | .cpp | 83 | 18.409639 | 61 | 0.475083 | 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 |
34,508 | weatherstate.cpp | OpenMW_openmw/components/esm3/weatherstate.cpp | #include "weatherstate.hpp"
#include "esmreader.hpp"
#include "esmwriter.hpp"
namespace ESM
{
namespace
{
constexpr NAME currentRegionRecord = "CREG";
constexpr NAME timePassedRecord = "TMPS";
constexpr NAME fastForwardRecord = "FAST";
constexpr NAME weatherUpdateTimeRecord = "... | 2,644 | C++ | .cpp | 68 | 30.191176 | 67 | 0.662904 | 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.