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
752,567
Image.h
Wargus_stargus/src/dat/Image.h
/* * Image.h * * Author: Andreas Volz */ #ifndef IMAGE_H #define IMAGE_H // project #include "ObjectAccess.h" #include "PropertyNotAvailableException.h" #include "IScript.h" namespace dat { /** * Wrapper interface for Kaitai parser images_dat.ksy, but with easier access in the game logic. * New functions...
1,424
C++
.h
53
24.226415
96
0.729027
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,568
ObjectAccess.h
Wargus_stargus/src/dat/ObjectAccess.h
/* * ObjectAccess.h * * Author: Andreas Volz */ #ifndef OBJECTACCESS_H #define OBJECTACCESS_H // project #include "DataHub.h" namespace dat { class ObjectAccess { public: ObjectAccess(DataHub &datahub, unsigned int id) : mDatahub(datahub), mId(id) {} virtual ~ObjectAccess() {} virtual unsigned int i...
488
C++
.h
24
18.291667
81
0.714286
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,569
Techdata.h
Wargus_stargus/src/dat/Techdata.h
/* * Techdata.h * * Author: Andreas */ #ifndef TECHDATA_H #define TECHDATA_H #include "ObjectAccess.h" namespace dat { class Techdata : public ObjectAccess { public: Techdata(DataHub &datahub, unsigned int id); virtual ~Techdata(); uint16_t mineral_cost(); uint16_t vespene_cost(); uint16_t res...
653
C++
.h
32
17.71875
46
0.691542
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,570
Tbl.h
Wargus_stargus/src/dat/Tbl.h
/* * Tbl.h * * Author: Andreas Volz */ #ifndef TBL_H #define TBL_H // Local #include "kaitai/file_tbl.h" #include "TblEntry.h" // System #include <memory> namespace dat { class Tbl { public: Tbl(); virtual ~Tbl(); std::vector<TblEntry> convertFromStream(std::shared_ptr<kaitai::kstream> ks); priv...
416
C++
.h
24
15.375
79
0.692913
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,571
Unit.h
Wargus_stargus/src/dat/Unit.h
/* * Unit.h * * Author: Andreas Volz */ #ifndef UNIT_H #define UNIT_H // project #include "Flingy.h" #include "ObjectAccess.h" #include "Portrait.h" #include "Sfx.h" #include "PropertyNotAvailableException.h" #include "Weapon.h" #include "Order.h" namespace dat { class Unit : public ObjectAccess { public: ...
3,061
C++
.h
105
25.92381
81
0.708102
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,572
Sfx.h
Wargus_stargus/src/dat/Sfx.h
/* * Sound.h * * Author: Andreas Volz */ #ifndef SFX_H #define SFX_H // project #include "ObjectAccess.h" //system #include <memory> namespace dat { class Sfx : public ObjectAccess { public: Sfx(DataHub &datahub, unsigned int id); virtual ~Sfx(); uint32_t sound_file(); TblEntry sound_file_tbl();...
470
C++
.h
28
14.535714
41
0.686183
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,573
Order.h
Wargus_stargus/src/dat/Order.h
/* * Order.h * * Author: Andreas Volz */ #ifndef ORDER_H #define ORDER_H // project #include "ObjectAccess.h" #include "Weapon.h" #include "Techdata.h" namespace dat { class Order : public ObjectAccess { public: Order(DataHub &datahub, unsigned int id); virtual ~Order(); uint16_t label(); TblEntry...
1,001
C++
.h
45
19.4
93
0.697524
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,574
PropertyNotAvailableException.h
Wargus_stargus/src/dat/PropertyNotAvailableException.h
/* * PropertyNotAvailableException.h * * Author: Andreas Volz */ #ifndef PROPERTYNOTAVAILABLEEXCEPTION_H #define PROPERTYNOTAVAILABLEEXCEPTION_H #include <string> namespace dat { /** * This Exception is thrown if a property isn't available for a specific item, but requested by the caller */ class Propert...
732
C++
.h
27
24.814815
106
0.761494
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,575
Flingy.h
Wargus_stargus/src/dat/Flingy.h
/* * Flingy.h * * Author: andreas */ #ifndef FLINGY_H #define FLINGY_H // project #include "ObjectAccess.h" #include "Sprite.h" namespace dat { class Flingy : public ObjectAccess { public: Flingy(DataHub &datahub, unsigned int id); virtual ~Flingy(); uint16_t sprite(); Sprite sprite_obj(); uint...
529
C++
.h
29
15.896552
44
0.696907
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,576
Weapon.h
Wargus_stargus/src/dat/Weapon.h
/* * Weapon.h * * Author: Andreas Volz */ #ifndef WEAPON_H #define WEAPON_H #include "DataHub.h" #include "ObjectAccess.h" #include "PropertyNotAvailableException.h" #include "Flingy.h" #include "Upgrade.h" namespace dat { class Weapon : public ObjectAccess { public: Weapon(DataHub &datahub, unsigned in...
1,371
C++
.h
57
21.087719
44
0.702111
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,577
IScript.h
Wargus_stargus/src/dat/IScript.h
/* * IScript.h * * Author: Andreas Volz */ #ifndef ISCRIPT_H #define ISCRIPT_H // project #include "ObjectAccess.h" namespace dat { class IScript: public ObjectAccess { public: IScript(DataHub &datahub, unsigned int id); virtual ~IScript(); enum AnimationType { Init, // Initial animation ...
3,012
C++
.h
58
47.224138
265
0.745665
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,578
DataHub.h
Wargus_stargus/src/dat/DataHub.h
/* * DataHub.h * * Author: Andreas Volz */ #ifndef DATAHUB_H #define DATAHUB_H // project #include "KaitaiConverter.h" #include "Palette.h" #include "Palette2D.h" #include "Tbl.h" #include "kaitai/units_dat.h" #include "kaitai/weapons_dat.h" #include "kaitai/flingy_dat.h" #include "kaitai/sprites_dat.h" #in...
5,105
C++
.h
155
30.380645
110
0.725442
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,579
Sprite.h
Wargus_stargus/src/dat/Sprite.h
/* * Sprite.h * * Author: Andreas */ #ifndef SPRITE_H #define SPRITE_H // project #include "ObjectAccess.h" #include "Image.h" #include "PropertyNotAvailableException.h" namespace dat { class Sprite : public ObjectAccess { public: Sprite(DataHub &datahub, unsigned int id); virtual ~Sprite(); uint16_...
562
C++
.h
29
17.137931
44
0.712909
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,580
TblEntry.h
Wargus_stargus/src/dat/TblEntry.h
/* * TblEntry.h * * Author: Andreas Volz */ #ifndef TBLENTRY_H #define TBLENTRY_H // system #include <string> namespace dat { class TblEntry { public: TblEntry(); virtual ~TblEntry(); std::string name1(); std::string name2(); std::string name3(); int shortcut_pos(); std::string shortcut(); ...
519
C++
.h
31
14.451613
28
0.6841
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,588
FuzzerInterface.h
Wargus_stargus/subprojects/nlohmann_json/test/thirdparty/Fuzzer/FuzzerInterface.h
//===- FuzzerInterface.h - Interface header for the Fuzzer ------*- C++ -* ===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
2,685
C++
.h
55
45.236364
80
0.671123
Wargus/stargus
127
24
9
GPL-2.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,619
runner.cpp
byronknoll_lstm-compress/src/runner.cpp
#include <fstream> #include <ctime> #include <stdio.h> #include <cstdlib> #include <vector> #include <valarray> #include "preprocess/preprocessor.h" #include "coder/encoder.h" #include "coder/decoder.h" #include "predictor.h" namespace { const int kMinVocabFileSize = 10000; inline float Rand() { return stati...
10,924
C++
.cpp
333
28.843844
81
0.616121
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,620
predictor.cpp
byronknoll_lstm-compress/src/predictor.cpp
#include "predictor.h" #include "lstm/byte-model.h" #include "lstm/lstm.h" Predictor::Predictor(const std::vector<bool>& vocab) : vocab_(vocab) { srand(0xDEADBEEF); unsigned int vocab_size = 0; for (unsigned int i = 0; i < vocab_.size(); ++i) { if (vocab_[i]) ++vocab_size; } lstm_.reset(new ByteModel(voc...
502
C++
.cpp
18
25.388889
70
0.659044
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,621
lstm-layer.cpp
byronknoll_lstm-compress/src/lstm/lstm-layer.cpp
#include "lstm-layer.h" #include "sigmoid.h" #include <math.h> #include <algorithm> #include <numeric> LstmLayer::LstmLayer(unsigned int input_size, unsigned int auxiliary_input_size, unsigned int output_size, unsigned int num_cells, int horizon, float learning_rate, float gradient_clip) : state_(num_cells),...
7,064
C++
.cpp
151
41.576159
80
0.619386
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,622
byte-model.cpp
byronknoll_lstm-compress/src/lstm/byte-model.cpp
#include "byte-model.h" #include "lstm.h" #include <numeric> ByteModel::ByteModel(const std::vector<bool>& vocab, Lstm* lstm) : top_(255), mid_(0), bot_(0), byte_map_(0, 256), probs_(1.0 / 256, 256), bit_context_(1), lstm_(lstm), vocab_(vocab) { int offset = 0; for (int i = 0; i < 256; ++i) { byte_map...
1,144
C++
.cpp
43
22.55814
77
0.538321
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,623
lstm.cpp
byronknoll_lstm-compress/src/lstm/lstm.cpp
#include "lstm.h" #include <numeric> #include <stdlib.h> Lstm::Lstm(unsigned int input_size, unsigned int output_size, unsigned int num_cells, unsigned int num_layers, int horizon, float learning_rate, float gradient_clip) : input_history_(horizon), hidden_(num_cells * num_layers + 1), hidden_error_(num_c...
4,042
C++
.cpp
99
35.686869
78
0.593091
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,624
sigmoid.cpp
byronknoll_lstm-compress/src/lstm/sigmoid.cpp
#include "sigmoid.h" #include <math.h> Sigmoid::Sigmoid(int logit_size) : logit_size_(logit_size), logit_table_(logit_size, 0) { for (int i = 0; i < logit_size_; ++i) { logit_table_[i] = SlowLogit((i + 0.5) / logit_size_); } } float Sigmoid::Logit(float p) const { return logit_table_[p * logit_size_]; ...
454
C++
.cpp
17
24.352941
59
0.631944
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,625
preprocessor.cpp
byronknoll_lstm-compress/src/preprocess/preprocessor.cpp
// This preprocessor is adapted from paq8l, paq8hp12any and paq8px. #include <vector> #include <cstdlib> #include <string.h> #include "preprocessor.h" #include "dictionary.h" namespace preprocessor { typedef unsigned char U8; typedef unsigned short U16; typedef unsigned int U32; inline int min(int a, int b) {re...
16,846
C++
.cpp
511
27.125245
170
0.544103
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,626
predictor.h
byronknoll_lstm-compress/src/predictor.h
#ifndef PREDICTOR_H #define PREDICTOR_H #include "lstm/byte-model.h" class Predictor { public: Predictor(const std::vector<bool>& vocab); float Predict(); void Perceive(int bit); private: std::unique_ptr<ByteModel> lstm_; std::vector<bool> vocab_; }; #endif
274
C++
.h
13
18.846154
44
0.7393
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,627
lstm.h
byronknoll_lstm-compress/src/lstm/lstm.h
#ifndef LSTM_COMPRESS_H #define LSTM_COMPRESS_H #include <valarray> #include <vector> #include <memory> #include "lstm-layer.h" class Lstm { public: Lstm(unsigned int input_size, unsigned int output_size, unsigned int num_cells, unsigned int num_layers, int horizon, float learning_rate, float gradient...
870
C++
.h
25
31.88
75
0.736591
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,628
byte-model.h
byronknoll_lstm-compress/src/lstm/byte-model.h
#ifndef BYTE_MODEL_H #define BYTE_MODEL_H #include "lstm.h" #include <valarray> #include <memory> class ByteModel { public: ByteModel(const std::vector<bool>& vocab, Lstm* lstm); float Predict(); void Perceive(int bit); protected: int top_, mid_, bot_; std::valarray<int> byte_map_; std::valarray<float...
436
C++
.h
19
20.631579
56
0.713592
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,629
lstm-layer.h
byronknoll_lstm-compress/src/lstm/lstm-layer.h
#ifndef LSTM_LAYER_H #define LSTM_LAYER_H #include <valarray> #include <stdlib.h> #include <math.h> class LstmLayer { public: LstmLayer(unsigned int input_size, unsigned int auxiliary_input_size, unsigned int output_size, unsigned int num_cells, int horizon, float learning_rate, float gradient_clip); ...
1,317
C++
.h
29
41.689655
80
0.719408
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,630
preprocessor.h
byronknoll_lstm-compress/src/preprocess/preprocessor.h
#ifndef PREPROCESSOR_H #define PREPROCESSOR_H #include <stdio.h> #include <string> #include "../predictor.h" namespace preprocessor { typedef enum {DEFAULT, HDR, JPEG, EXE, TEXT, IMAGE1, IMAGE4, IMAGE8, IMAGE8GRAY, IMAGE24, IMAGE32, AUDIO} Filetype; inline bool HasInfo(Filetype ft) { return ft==TEXT || ft==IMA...
606
C++
.h
16
35.5
80
0.715517
byronknoll/lstm-compress
124
16
0
GPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,631
HotkeybarGUI.cpp
ipatix_agbplay/src/HotkeybarGUI.cpp
#include "HotkeybarGUI.h" #include "ColorDef.h" #include "Xcept.h" #include <string> #include <cstdint> HotkeybarGUI::HotkeybarGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos) : CursesWin(height, width, yPos, xPos) { if (height == 0) throw Xcept("Hotkeybar can't be empty"); up...
987
C++
.cpp
30
28.933333
94
0.647679
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,632
SoundChannel.cpp
ipatix_agbplay/src/SoundChannel.cpp
#include <cmath> #include <cassert> #include <string> #include <algorithm> #include "Constants.h" #include "Debug.h" #include "SoundChannel.h" #include "Util.h" #include "Xcept.h" #include "ConfigManager.h" /* * public SoundChannel */ SoundChannel::SoundChannel(SampleInfo sInfo, ADSR env, const Note& note, bool fi...
16,084
C++
.cpp
419
30.835322
150
0.613073
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,633
CGBChannel.cpp
ipatix_agbplay/src/CGBChannel.cpp
#include <cmath> #include <cassert> #include <algorithm> #include "CGBChannel.h" #include "CGBPatterns.h" #include "Xcept.h" #include "Debug.h" #include "Util.h" #include "Constants.h" #include "ConfigManager.h" /* * public CGBChannel */ CGBChannel::CGBChannel(ADSR env, Note note, bool useStairstep) : env(env)...
26,992
C++
.cpp
745
28.405369
144
0.590878
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,634
GameConfig.cpp
ipatix_agbplay/src/GameConfig.cpp
#include "GameConfig.h" #include "Util.h" #include <algorithm> /* * public GameConfig */ GameConfig::GameConfig(const std::string& gameCode) { gameCodes.push_back(gameCode); } GameConfig::GameConfig(const std::vector<std::string>& gameCodes) { this->gameCodes = gameCodes; } const std::vector<std::string>...
2,375
C++
.cpp
110
19.372727
65
0.775145
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,635
SongEntry.cpp
ipatix_agbplay/src/SongEntry.cpp
#include "SongEntry.h" /* * SongEntry */ SongEntry::SongEntry(const std::string& name, uint16_t uid) : name(name), uid(uid) { } const std::string& SongEntry::GetName() const { return name; } uint16_t SongEntry::GetUID() const { return uid; }
261
C++
.cpp
16
14.125
60
0.692946
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,636
Debug.cpp
ipatix_agbplay/src/Debug.cpp
#include <cstdio> #include <cstdarg> #include <string> #include <mutex> #include <cstdarg> #include "Debug.h" static FILE *debug_file = nullptr; bool Debug::open(const char *file) { if (!file) return true; debug_file = fopen(file, "w"); if (debug_file == nullptr) { perror("fopen"); ...
1,091
C++
.cpp
45
19.822222
77
0.610039
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,637
Resampler.cpp
ipatix_agbplay/src/Resampler.cpp
#include <boost/math/special_functions/sinc.hpp> #include "Resampler.h" #include "Util.h" #include "Debug.h" Resampler::~Resampler() { } bool Resampler::ResamplerChainSampleFetchCB(std::vector<float>& fetchBuffer, size_t samplesRequired, void *cbdata) { if (fetchBuffer.size() >= samplesRequired) return t...
15,795
C++
.cpp
426
31.544601
119
0.623137
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,638
ConfigManager.cpp
ipatix_agbplay/src/ConfigManager.cpp
#include <fstream> #include <regex> #include <cstring> #include <iostream> #include <cstdlib> // sorry, for some reason multiple versions of jsoncpp use different paths :/ #if __has_include(<json/json.h>) #include <json/json.h> #include <json/writer.h> #else #include <jsoncpp/json/json.h> #include <jsoncpp/json/writer...
8,223
C++
.cpp
207
34.289855
117
0.676106
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,639
PlaylistGUI.cpp
ipatix_agbplay/src/PlaylistGUI.cpp
#include <algorithm> #include <cstring> #include "PlaylistGUI.h" #include "ColorDef.h" #include "Util.h" #include "Xcept.h" #include "Debug.h" #include "ConfigManager.h" /* * public */ PlaylistGUI::PlaylistGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos) : SonglistGUI(height, width, yPos, xP...
4,531
C++
.cpp
165
22.866667
105
0.631567
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,640
OS.cpp
ipatix_agbplay/src/OS.cpp
#include "OS.h" #include "Xcept.h" #include <filesystem> #include <iostream> #if defined(_WIN32) // if we compile for Windows native #include <windows.h> #include <shlobj.h> void OS::LowerThreadPriority() { // ignore errors if this fails SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_LOWEST); } con...
4,402
C++
.cpp
126
30.468254
152
0.680556
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,641
LoudnessCalculator.cpp
ipatix_agbplay/src/LoudnessCalculator.cpp
#include <cmath> #include <cassert> #include "LoudnessCalculator.h" #include "Constants.h" #include "Util.h" LoudnessCalculator::LoudnessCalculator(const float lowpassFreq) : lpAlpha(calcAlpha(lowpassFreq)) { } void LoudnessCalculator::CalcLoudness(const sample *audio, size_t numSamples) { do { float...
1,257
C++
.cpp
44
24.386364
77
0.653942
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,642
TrackviewGUI.cpp
ipatix_agbplay/src/TrackviewGUI.cpp
#include <cstring> #include <algorithm> #include <cassert> #include "Util.h" #include "TrackviewGUI.h" #include "ColorDef.h" #include "Debug.h" #include "Xcept.h" const std::vector<const char *> TrackviewGUI::noteNames = { "C-2", "C#-2", "D-2", "D#-2", "E-2", "F-2", "F#-2", "G-2", "G#-2", "A-2", "A#-2", "B-2", ...
12,915
C++
.cpp
316
32.658228
150
0.539546
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,643
ReverbEffect.cpp
ipatix_agbplay/src/ReverbEffect.cpp
#include <algorithm> #include <cassert> #include "ReverbEffect.h" #include "Debug.h" #include "Util.h" #include "Constants.h" /* * public ReverbEffect */ ReverbEffect::ReverbEffect(uint8_t intensity, size_t streamRate, uint8_t numAgbBuffers) : reverbBuffer((streamRate / AGB_FPS) * numAgbBuffers, sample{0.0f, 0...
8,050
C++
.cpp
233
28.55794
119
0.622248
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,644
SonglistGUI.cpp
ipatix_agbplay/src/SonglistGUI.cpp
#include "SonglistGUI.h" #include "Xcept.h" #include "ColorDef.h" #include "Debug.h" #include <cstring> #include <string> #include <vector> #include <algorithm> /* * -- public -- */ SonglistGUI::SonglistGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos, bool upd) : CursesWin(height, width, yPos...
3,842
C++
.cpp
152
20.894737
98
0.628338
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,645
CursesWin.cpp
ipatix_agbplay/src/CursesWin.cpp
#include <cstdint> #include <iostream> #include <cstdlib> #include "ColorDef.h" #include "CursesWin.h" #include "Xcept.h" CursesWin::CursesWin(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos) { if ((winPtr = newwin((int)height, (int)width, (int)yPos, (int)xPos)) == nullptr) { throw Xcept("Er...
1,208
C++
.cpp
35
30.171429
89
0.652397
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,646
SequenceReader.cpp
ipatix_agbplay/src/SequenceReader.cpp
#include <cmath> #include <cassert> #include "SequenceReader.h" #include "Xcept.h" #include "Util.h" #include "Debug.h" #include "Rom.h" #include "PlayerContext.h" #include "ConfigManager.h" #define NOTE_TIE -1 #define NOTE_ALL 0xFE #define LOOP_ENDLESS -1 /* * SequenceReader data */ const std::vector<uint32_t> S...
20,383
C++
.cpp
663
21.05279
129
0.516526
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,647
SoundExporter.cpp
ipatix_agbplay/src/SoundExporter.cpp
#include <filesystem> #include <boost/algorithm/string/replace.hpp> #include <chrono> #include <climits> #include <cmath> #include <atomic> #include <thread> #include <mutex> #include "SoundExporter.h" #include "Util.h" #include "Xcept.h" #include "Constants.h" #include "Debug.h" #include "ConfigManager.h" #include "P...
8,090
C++
.cpp
204
29.27451
145
0.553335
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,648
CGBPatterns.cpp
ipatix_agbplay/src/CGBPatterns.cpp
#include "CGBPatterns.h" // square wave LUT const float CGBPatterns::pat_sq12[] = { 0.875f, -0.125f, -0.125f, -0.125f, -0.125f, -0.125f, -0.125f, -0.125f }; const float CGBPatterns::pat_sq25[] = { 0.75f, 0.75f, -0.25f, -0.25f, -0.25f, -0.25f, -0.25f, -0.25f }; const float CGBPatterns::pat_sq50[] = { 0.50f...
480
C++
.cpp
14
32
73
0.601293
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,649
TitlebarGUI.cpp
ipatix_agbplay/src/TitlebarGUI.cpp
#include <cstring> #include <string> #include <vector> #include "Constants.h" #include "TitlebarGUI.h" #include "ColorDef.h" #include "Xcept.h" static const std::vector<std::string> bannerText = { " _ _ ", " __ _ __ _| |__ _ __| |__ _ _ _ ", "/ _` / _` | '_ \\ '_ \\ / _` | || |...
2,123
C++
.cpp
63
28.777778
126
0.570872
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,650
ConsoleGUI.cpp
ipatix_agbplay/src/ConsoleGUI.cpp
#include <string> #include <mutex> #include "ConsoleGUI.h" #include "Debug.h" #include "WindowGUI.h" #include "Xcept.h" #include "ColorDef.h" /* * -- public -- */ ConsoleGUI::ConsoleGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos) : CursesWin(height, width, yPos, xPos), msgQueue(32) { te...
1,902
C++
.cpp
73
21.520548
88
0.620804
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,651
RomviewGUI.cpp
ipatix_agbplay/src/RomviewGUI.cpp
#include "RomviewGUI.h" #include "ColorDef.h" #include "Util.h" #include "Debug.h" #include "Rom.h" /* * public */ RomviewGUI::RomviewGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos, SongTable& songTable) : CursesWin(height, width, yPos, xPos) { gameName = Rom::Instance().ReadString(0xA0,...
2,073
C++
.cpp
56
33.375
107
0.671478
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,652
PlayerInterface.cpp
ipatix_agbplay/src/PlayerInterface.cpp
#include <thread> #include <chrono> #include <cstdlib> #include <algorithm> #include <cmath> #include <cassert> #include <cstring> #if __has_include(<pa_win_wasapi.h>) #include <pa_win_wasapi.h> #endif #include "PlayerInterface.h" #include "Xcept.h" #include "Debug.h" #include "Util.h" #include "ConfigManager.h" /* ...
13,005
C++
.cpp
368
27.546196
160
0.623045
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,653
WindowGUI.cpp
ipatix_agbplay/src/WindowGUI.cpp
#include <string> #include <algorithm> #include <sstream> #include <cstdlib> #include <stdexcept> #include <thread> #include <chrono> #include <cstring> #include <iomanip> #include "Constants.h" #include "Xcept.h" #include "Debug.h" #include "ColorDef.h" #include "WindowGUI.h" #include "Util.h" #include "SoundExporter...
22,158
C++
.cpp
711
21.676512
124
0.528048
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,654
Xcept.cpp
ipatix_agbplay/src/Xcept.cpp
#include <cstdarg> #include "Xcept.h" Xcept::Xcept(const char *format, ...) { va_list args; va_start(args, format); char msg_buf[MAX_EXCEPTION_LENGTH]; vsnprintf(msg_buf, MAX_EXCEPTION_LENGTH, format, args); msg = msg_buf; va_end(args); } Xcept::~Xcept() { } const char *Xcept::what() const t...
355
C++
.cpp
15
20.533333
59
0.651786
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,655
agbplay.cpp
ipatix_agbplay/src/agbplay.cpp
#include <iostream> #include <cstring> #include <cstdio> #include <curses.h> #include <portaudio.h> #include <clocale> #include "SoundData.h" #include "Debug.h" #include "WindowGUI.h" #include "Xcept.h" #include "ConfigManager.h" #include "OS.h" static void usage(); static void help(); int main(int argc, char *argv[...
3,990
C++
.cpp
108
29.666667
93
0.572056
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,656
Rom.cpp
ipatix_agbplay/src/Rom.cpp
#include <string> #include <cstdio> #include <cstring> #include <fstream> #include "Rom.h" #include "Xcept.h" #include "Debug.h" #include "Util.h" std::unique_ptr<Rom> Rom::global_instance; /* * public */ Rom::Rom(const std::filesystem::path& filePath) { loadFile(filePath); verify(); } void Rom::CreateIn...
3,221
C++
.cpp
98
27.918367
110
0.637359
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,657
VUMeterGUI.cpp
ipatix_agbplay/src/VUMeterGUI.cpp
#include <string> #include <cstring> #include <cmath> #include <algorithm> #include "VUMeterGUI.h" #include "ColorDef.h" #include "Util.h" #include "Xcept.h" #include "Debug.h" /* * public VUMeterGUI */ VUMeterGUI::VUMeterGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos) : CursesWin(height, wi...
5,351
C++
.cpp
158
28.221519
90
0.604871
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,658
Types.cpp
ipatix_agbplay/src/Types.cpp
#include "Types.h" ReverbType str2rev(const std::string& str) { if (str == "gs1") return ReverbType::GS1; else if (str == "gs2") return ReverbType::GS2; else if (str == "mgat") return ReverbType::MGAT; else if (str == "test") return ReverbType::TEST; else if (str == ...
2,887
C++
.cpp
116
20.267241
116
0.620602
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,659
SoundData.cpp
ipatix_agbplay/src/SoundData.cpp
#include <cstring> #include <iostream> #include <cassert> #include <algorithm> #include "AgbTypes.h" #include "SoundData.h" #include "Xcept.h" #include "Debug.h" #include "Util.h" #include "Rom.h" /* * public SoundBank */ void SoundBank::Init(size_t bankPos) { this->bankPos = bankPos; } InstrType SoundBank::G...
10,912
C++
.cpp
356
25.160112
108
0.619552
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,660
SoundMixer.cpp
ipatix_agbplay/src/SoundMixer.cpp
#include <algorithm> #include <cmath> #include <cassert> #include "SoundMixer.h" #include "Xcept.h" #include "Debug.h" #include "Util.h" #include "ConfigManager.h" #include "PlayerContext.h" /* * public SoundMixer */ SoundMixer::SoundMixer(PlayerContext& ctx, uint32_t sampleRate, float masterVolume) : ctx(ctx)...
6,622
C++
.cpp
166
33.036145
121
0.642524
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,661
PlayerContext.cpp
ipatix_agbplay/src/PlayerContext.cpp
#include "PlayerContext.h" #include "ConfigManager.h" PlayerContext::PlayerContext(int8_t maxLoops, uint8_t maxTracks, EnginePars pars) : reader(*this, maxLoops), mixer(*this, STREAM_SAMPLERATE, 1.0f), seq(maxTracks), pars(pars) { } void PlayerContext::Process(std::vector<std::vector<sample>>& trackAudio) { r...
1,460
C++
.cpp
44
29.340909
96
0.710021
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
true
false
false
752,662
Ringbuffer.cpp
ipatix_agbplay/src/Ringbuffer.cpp
#include <algorithm> #include "Ringbuffer.h" /* * public Ringbuffer */ Ringbuffer::Ringbuffer(size_t elementCount) : bufData(elementCount), freeCount(elementCount) { } void Ringbuffer::Put(sample *inData, size_t nElements) { std::unique_lock<std::mutex> lock(countLock); while (freeCount < nElements){ ...
2,180
C++
.cpp
85
20.541176
69
0.612656
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
true
false
false
true
false
false
752,663
LoudnessCalculator.h
ipatix_agbplay/src/LoudnessCalculator.h
#pragma once #include <cstddef> #include "Types.h" class LoudnessCalculator { public: LoudnessCalculator(const float lowpassFreq); LoudnessCalculator(const LoudnessCalculator&) = delete; LoudnessCalculator(LoudnessCalculator&&) = default; LoudnessCalculator& operator=(const LoudnessCalculator&) = del...
651
C++
.h
21
27.238095
70
0.746795
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,664
OS.h
ipatix_agbplay/src/OS.h
#pragma once #include <string> #include <filesystem> namespace OS { void LowerThreadPriority(); void CheckTerminal(); const std::filesystem::path GetMusicDirectory(); const std::filesystem::path GetLocalConfigDirectory(); const std::filesystem::path GetGlobalConfigDirectory(); };
303
C++
.h
10
27.1
59
0.75945
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,665
PlayerInterface.h
ipatix_agbplay/src/PlayerInterface.h
#pragma once #include <cstdint> #include <vector> #include <thread> #include <memory> #include <portaudio.h> #include "TrackviewGUI.h" #include "DisplayContainer.h" #include "Constants.h" #include "GameConfig.h" #include "Ringbuffer.h" #include "LoudnessCalculator.h" #include "PlayerContext.h" class PlayerInterface ...
1,891
C++
.h
57
28.894737
97
0.731908
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,666
SongEntry.h
ipatix_agbplay/src/SongEntry.h
#pragma once #include <cstdint> #include <string> class SongEntry { public: SongEntry(const std::string& name, uint16_t uid); const std::string& GetName() const; uint16_t GetUID() const; std::string name; private: uint16_t uid; };
256
C++
.h
13
16.769231
53
0.702929
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,667
SonglistGUI.h
ipatix_agbplay/src/SonglistGUI.h
#pragma once #include <cstdint> #include <string> #include <vector> #include "CursesWin.h" #include "SongEntry.h" class SonglistGUI : public CursesWin { public: SonglistGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos, bool upd); virtual ~SonglistGUI() override; void Resize(uint32_t hei...
1,020
C++
.h
36
24.555556
89
0.720693
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,668
HotkeybarGUI.h
ipatix_agbplay/src/HotkeybarGUI.h
#pragma once #include "CursesWin.h" class HotkeybarGUI : public CursesWin { public: HotkeybarGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos); ~HotkeybarGUI() override; void Resize(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos) override; private: void update() overr...
328
C++
.h
10
29.8
88
0.745223
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,669
ConfigManager.h
ipatix_agbplay/src/ConfigManager.h
#pragma once #include <vector> #include <string> #include <filesystem> #include "GameConfig.h" class ConfigManager { public: static ConfigManager& Instance(); GameConfig& GetCfg(); const GameConfig& GetCfg() const; void SetGameCode(const std::string& gameCode); void Load(); void Save(); ...
1,232
C++
.h
39
27.512821
60
0.746846
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,670
GameConfig.h
ipatix_agbplay/src/GameConfig.h
#pragma once #include <vector> #include <string> #include "SongEntry.h" #include "Types.h" class GameConfig { public: GameConfig(const std::string& gameCode); GameConfig(const std::vector<std::string>& gameCodes); GameConfig(const GameConfig&) = delete; GameConfig(GameConfig&&) = default; GameCon...
1,884
C++
.h
52
31.884615
58
0.74644
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,671
TrackviewGUI.h
ipatix_agbplay/src/TrackviewGUI.h
#pragma once #include <vector> #include <string> #include "CursesWin.h" #include "SoundData.h" #include "DisplayContainer.h" class TrackviewGUI : public CursesWin { public: TrackviewGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos); ~TrackviewGUI() override; void Resize(uint32_t height...
1,016
C++
.h
33
26.909091
95
0.720859
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,672
SoundMixer.h
ipatix_agbplay/src/SoundMixer.h
#pragma once #include <vector> #include <list> #include <cstdint> #include <bitset> #include <memory> #include "ReverbEffect.h" #include "SoundChannel.h" #include "CGBChannel.h" #include "Constants.h" struct PlayerContext; class SoundMixer { public: SoundMixer(PlayerContext& ctx, uint32_t sampleRate, float mast...
1,271
C++
.h
39
28.948718
114
0.743653
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,673
SoundChannel.h
ipatix_agbplay/src/SoundChannel.h
#pragma once #include <cstdint> #include <cstddef> #include <memory> #include "Types.h" #include "Resampler.h" class SoundChannel { private: struct ProcArgs { float lVol; float rVol; float lVolStep; float rVolStep; float interStep; }; public: SoundChannel(Sampl...
2,166
C++
.h
63
29.730159
116
0.705293
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,674
Resampler.h
ipatix_agbplay/src/Resampler.h
#pragma once #include <vector> /* * res_data_fetch_cb fetches samplesRequired samples to fetchBuffer * so that the buffer can provide exactly samplesRequired samples * * returns false in case of 'end of stream' */ typedef bool (*res_data_fetch_cb)(std::vector<float>& fetchBuffer, size_t samplesRequired, void *c...
2,509
C++
.h
72
31.041667
118
0.727872
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,675
Ringbuffer.h
ipatix_agbplay/src/Ringbuffer.h
#pragma once #include <mutex> #include <condition_variable> #include <vector> #include <cstddef> #include "Types.h" class Ringbuffer { public: Ringbuffer(size_t elementCount); Ringbuffer(const Ringbuffer&) = delete; Ringbuffer& operator=(const Ringbuffer&) = delete; void Put(sample *inData, size_t n...
712
C++
.h
26
23.884615
56
0.712188
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,676
CursesWin.h
ipatix_agbplay/src/CursesWin.h
#pragma once #include <curses.h> #include <cstdint> class CursesWin { public: CursesWin(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos); CursesWin(const CursesWin&) = delete; CursesWin& operator=(const CursesWin&) = delete; virtual ~CursesWin(); virtual void Resize(uint32_t height, ...
457
C++
.h
15
27.133333
87
0.719818
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,677
ConsoleGUI.h
ipatix_agbplay/src/ConsoleGUI.h
#pragma once #define CONSOLE_BORDER_WIDTH 2 #include <vector> #include <string> #include <mutex> #include <boost/lockfree/spsc_queue.hpp> #include "CursesWin.h" class ConsoleGUI : public CursesWin { public: ConsoleGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos); ~ConsoleGUI(...
765
C++
.h
24
27.75
63
0.712925
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,678
WindowGUI.h
ipatix_agbplay/src/WindowGUI.h
#pragma once /* window size definition * (h,w) = height and width of stdscr */ #define TITLEBAR_HEIGHT(h,w) 5 #define TITLEBAR_WIDTH(h,w) 33 #define TITLEBAR_YPOS(h,w) 0 #define TITLEBAR_XPOS(h,w) 0 #define VUMETER_HEIGHT(h,w) TITLEBAR_HEIGHT(h,w) #define VUMETER_WIDTH(h,w) (w - TITLEBAR_WIDTH(h,w)) #define VUMETER...
3,553
C++
.h
104
30.942308
102
0.70245
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,679
Rom.h
ipatix_agbplay/src/Rom.h
#pragma once #include <cstdint> #include <string> #include <vector> #include <filesystem> #include <memory> #include "AgbTypes.h" #include "Xcept.h" class Rom { public: Rom(const std::filesystem::path& filePath); Rom(const Rom&) = delete; Rom& operator=(const Rom&) = delete; static void CreateInstanc...
2,207
C++
.h
75
23.12
74
0.593661
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,680
CGBPatterns.h
ipatix_agbplay/src/CGBPatterns.h
#pragma once namespace CGBPatterns { // sample patterns extern const float pat_sq12[]; extern const float pat_sq25[]; extern const float pat_sq50[]; extern const float pat_sq75[]; };
204
C++
.h
9
19.333333
34
0.701031
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,681
Types.h
ipatix_agbplay/src/Types.h
#pragma once #include <cstdint> #include <string> enum class CGBType : int { SQ1 = 0, SQ2, WAVE, NOISE }; enum class EnvState : int { INIT = 0, ATK, DEC, SUS, REL, PSEUDO_ECHO, DIE, DEAD }; enum class WaveDuty : int { D12 = 0, D25, D50, D75 }; enum class NoisePatt : int { FINE = 0, ROUGH }; enum class ReverbType { NO...
2,074
C++
.h
86
20.918605
109
0.705823
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,682
TitlebarGUI.h
ipatix_agbplay/src/TitlebarGUI.h
#pragma once #include <cstdint> #include "CursesWin.h" class TitlebarGUI : public CursesWin { public: TitlebarGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos); ~TitlebarGUI() override; void Resize(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos) override; in...
372
C++
.h
13
25
79
0.711485
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,683
Util.h
ipatix_agbplay/src/Util.h
#pragma once #include <stdexcept> #ifndef M_PI #define M_PI 3.14159265358979323846 #endif #define PI_F (float(M_PI)) inline void CStrAppend(char *dest, size_t *index, const char *src) { char ch; const char *copyChar = src; while ((ch = *copyChar++) != '\0') dest[(*index)++] = ch; }
307
C++
.h
13
20.769231
66
0.655172
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,684
PlayerContext.h
ipatix_agbplay/src/PlayerContext.h
#pragma once #include <vector> #include "SequenceReader.h" #include "SoundMixer.h" /* Instead of defining lots of global objects, we define * a context with all the things we need. So anything which * needs anything out of this context only needs a reference * to a PlayerContext */ struct PlayerContext { Pla...
1,034
C++
.h
29
31.655172
71
0.744233
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,685
Constants.h
ipatix_agbplay/src/Constants.h
#pragma once #define NUM_NOTES 128 #define PROG_UNDEFINED 0xFF #define MIN_SONG_NUM 4 // lowest seen one is 7 in Tetris World #define BPM_PER_FRAME 150 #define AGB_FPS 60 // for increased quality we process in subframes (including the base frame) #define INTERFRAMES 4 #define STREAM_SAMPLERATE 48000 #define SO...
845
C++
.h
22
37.090909
75
0.710784
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,686
SequenceReader.h
ipatix_agbplay/src/SequenceReader.h
#pragma once #include <map> #include <vector> #include "Constants.h" #include "SoundData.h" #include "SoundMixer.h" struct PlayerContext; class SequenceReader { public: SequenceReader(PlayerContext& ctx, int8_t maxLoops); SequenceReader(const SequenceReader&) = delete; SequenceReader& operator=(const Se...
1,233
C++
.h
35
31.257143
118
0.735245
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,687
SoundData.h
ipatix_agbplay/src/SoundData.h
#pragma once #include <vector> #include <bitset> #include "Types.h" #include "Constants.h" enum class InstrType { PCM, PCM_FIXED, SQ1, SQ2, WAVE, NOISE, INVALID }; class SoundBank { public: SoundBank() = default; SoundBank(const SoundBank&) = delete; SoundBank& operator=(const SoundBank&) = delete; ...
2,997
C++
.h
97
26.793814
79
0.687825
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,688
PlaylistGUI.h
ipatix_agbplay/src/PlaylistGUI.h
#pragma once #include "SonglistGUI.h" #include "GameConfig.h" class PlaylistGUI : public SonglistGUI { public: PlaylistGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos); ~PlaylistGUI() override; void AddSong(SongEntry) override; void RemoveSong() override; void ClearSongs() overr...
762
C++
.h
27
24.111111
79
0.703146
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,689
RomviewGUI.h
ipatix_agbplay/src/RomviewGUI.h
#pragma once #include <cstdint> #include <string> #include "CursesWin.h" #include "Rom.h" #include "SoundData.h" class RomviewGUI : public CursesWin { public: RomviewGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos, SongTable& songTable); ~RomviewGUI() override; void Resize(uint32_t heig...
518
C++
.h
18
25.833333
100
0.734406
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,690
ReverbEffect.h
ipatix_agbplay/src/ReverbEffect.h
#pragma once #include <cstdint> #include <cstddef> #include <vector> #include "Types.h" class ReverbEffect { public: ReverbEffect(uint8_t intesity, size_t streamRate, uint8_t numAgbBuffers); virtual ~ReverbEffect(); void ProcessData(sample *buffer, size_t numSamples); protected: virtual size_t proces...
1,453
C++
.h
50
25.78
77
0.750895
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,691
DisplayContainer.h
ipatix_agbplay/src/DisplayContainer.h
#pragma once #include <bitset> #include <vector> #include "Constants.h" struct DisplayData { uint32_t trackPtr = 0; bool isCalling = false; bool isMuted = false; uint8_t vol = 100; // range 0 to 127 uint8_t mod = 0; // range 0 to 127 uint8_t prog = PROG_UNDEFINED;...
884
C++
.h
26
30.269231
66
0.590856
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,692
Xcept.h
ipatix_agbplay/src/Xcept.h
#pragma once #include <exception> #include <string> #define MAX_EXCEPTION_LENGTH 1024 class Xcept : public std::exception { public: Xcept(const char *format, ...); ~Xcept() override; const char *what() const throw() override; private: std::string msg; };
299
C++
.h
12
20.25
50
0.650177
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,693
CGBChannel.h
ipatix_agbplay/src/CGBChannel.h
#pragma once #include <cstdint> #include <cstddef> #include <memory> #include "Types.h" #include "Resampler.h" #define INVALID_TRACK_IDX 0xFF #define NOISE_SAMPLING_FREQ 65536.0f class CGBChannel { public: CGBChannel(ADSR env, Note note, bool useStairstep = false); CGBChannel(const CGBChannel&) = delete; ...
3,763
C++
.h
108
30.712963
107
0.723749
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,694
ColorDef.h
ipatix_agbplay/src/ColorDef.h
#pragma once // color sets enum class Color : int { DEF_DEF = 1, // default on default BANNER_TEXT, WINDOW_FRAME, LIST_ENTRY, LIST_SEL, VU_LOW, VU_MID, VU_HIGH, TRK_NUM, TRK_NUM_MUTED, TRK_LOC, TRK_LOC_CALL, TRK_DEL, TRK_NOTE, TRK_VOICE, TRK_PAN, ...
918
C++
.h
36
20.722222
52
0.592677
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,695
AgbTypes.h
ipatix_agbplay/src/AgbTypes.h
#pragma once #define AGB_MAP_ROM 0x08000000 #define AGB_MAP_ROM_END 0x0A000000 #define AGB_ROM_SIZE (AGB_MAP_ROM_END-AGB_MAP_ROM)
132
C++
.h
4
31.5
50
0.793651
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,696
SoundExporter.h
ipatix_agbplay/src/SoundExporter.h
#pragma once #include <sndfile.h> #include <string> #include <vector> #include <cstdint> #include <filesystem> #include "SongEntry.h" #include "GameConfig.h" #include "ConsoleGUI.h" #include "SoundData.h" class SoundExporter { public: SoundExporter(SongTable& songTable, bool benchmarkOnly, bool seperate); So...
740
C++
.h
24
28.083333
75
0.764789
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,697
Debug.h
ipatix_agbplay/src/Debug.h
#pragma once #include <string> namespace Debug { void print(const char *str, ...); bool open(const char *file); bool close(); void set_callback(void (*cb)(const std::string&, void *), void *obj); }
216
C++
.h
8
23.75
73
0.650485
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,698
VUMeterGUI.h
ipatix_agbplay/src/VUMeterGUI.h
#pragma once #include "CursesWin.h" class VUMeterGUI : public CursesWin { public: VUMeterGUI(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos); ~VUMeterGUI() override; void Resize(uint32_t height, uint32_t width, uint32_t yPos, uint32_t xPos) override; void SetVol(float left, float right)...
467
C++
.h
17
23.882353
88
0.7287
ipatix/agbplay
118
21
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,703
Coder.cpp
Orvid_Champollion/Decompiler/Coder.cpp
#include "Coder.hpp" #include <cassert> /** * @brief Constructor * Builds an coder associated with an output writer. * * @param writer Pointer to the writer managing the output. The ownership is transferred. */ Decompiler::Coder::Coder(Decompiler::OutputWriter *writer) : m_Writer(writer) { assert(writer ...
1,494
C++
.cpp
55
24.818182
120
0.701326
Orvid/Champollion
106
20
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,704
PscCodeGenerator.cpp
Orvid_Champollion/Decompiler/PscCodeGenerator.cpp
#include "PscCodeGenerator.hpp" #include <cassert> #include "Node/Nodes.hpp" #include "PscCoder.hpp" static bool isTempVar(const Pex::StringTable::Index& var) { auto& name = var.asString(); return name.length() > 6 && name.substr(0, 6) == "::temp" && name.substr(name.length() - 4, 4) != "_var"; } static std...
12,361
C++
.cpp
391
26.452685
121
0.620649
Orvid/Champollion
106
20
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,708
main.cpp
Orvid_Champollion/Champollion/main.cpp
#include <iostream> #include <boost/program_options.hpp> namespace options = boost::program_options; #include <fmt/format.h> #include <filesystem> namespace fs = std::filesystem; #include <chrono> #include <future> #include <ctime> #include "Pex/Binary.hpp" #include "Pex/FileReader.hpp" #include "Decompiler/AsmC...
17,795
C++
.cpp
430
31.762791
175
0.571255
Orvid/Champollion
106
20
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,716
Binary.cpp
Orvid_Champollion/Pex/Binary.cpp
#include "Binary.hpp" #include <algorithm> #include <iostream> #include "FileReader.hpp" /** * @brief Default constructor. * * This constructor provides a Binary file with empty elements. */ Pex::Binary::Binary(): m_ScriptType(Unknown) { } /** * @brief Default destructor. * */ Pex::Binary::~Binary() { } ...
3,905
C++
.cpp
144
23.701389
148
0.668803
Orvid/Champollion
106
20
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false
752,727
Version.hpp
Orvid_Champollion/Decompiler/Version.hpp
#pragma once #define CHAMPOLLION_VERSION_MAJOR 1 #define CHAMPOLLION_VERSION_MINOR 3 #define CHAMPOLLION_VERSION_PATCH 2 #define MAKE_STR_HELPER(a_str) #a_str #define MAKE_STR(a_str) MAKE_STR_HELPER(a_str) #define CHAMPOLLION_VERSION_STRING "v" MAKE_STR(CHAMPOLLION_VERSION_MAJOR) "." MAKE_STR(CHAMPOLLION_VERSION_MIN...
364
C++
.h
7
50.571429
154
0.79661
Orvid/Champollion
106
20
11
LGPL-3.0
9/20/2024, 9:42:05 PM (Europe/Amsterdam)
false
false
false
false
false
false
false
false