id int64 0 877k | file_name stringlengths 3 109 | file_path stringlengths 13 185 | content stringlengths 31 9.38M | size int64 31 9.38M | language stringclasses 1
value | extension stringclasses 11
values | total_lines int64 1 340k | avg_line_length float64 2.18 149k | max_line_length int64 7 2.22M | alphanum_fraction float64 0 1 | repo_name stringlengths 6 66 | repo_stars int64 94 47.3k | repo_forks int64 0 12k | repo_open_issues int64 0 3.4k | repo_license stringclasses 11
values | repo_extraction_date stringclasses 197
values | exact_duplicates_redpajama bool 2
classes | near_duplicates_redpajama bool 2
classes | exact_duplicates_githubcode bool 2
classes | exact_duplicates_stackv2 bool 1
class | exact_duplicates_stackv1 bool 2
classes | near_duplicates_githubcode bool 2
classes | near_duplicates_stackv1 bool 2
classes | near_duplicates_stackv2 bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,542,934 | cv_target_rect.cpp | edman007_chiton/cv_target_rect.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 3,279 | C++ | .cpp | 108 | 26.185185 | 112 | 0.624525 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,935 | motion_controller.cpp | edman007_chiton/motion_controller.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 4,702 | C++ | .cpp | 129 | 32.387597 | 112 | 0.675516 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,936 | motion_cvresize.cpp | edman007_chiton/motion_cvresize.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 2,270 | C++ | .cpp | 66 | 31.227273 | 134 | 0.65267 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,937 | database_manager.cpp | edman007_chiton/database_manager.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 14,354 | C++ | .cpp | 368 | 31.100543 | 182 | 0.584546 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,938 | config.cpp | edman007_chiton/config.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 4,956 | C++ | .cpp | 145 | 29.096552 | 151 | 0.579124 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,939 | event.cpp | edman007_chiton/event.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 3,122 | C++ | .cpp | 119 | 22.512605 | 143 | 0.611985 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,940 | stream_writer.cpp | edman007_chiton/stream_writer.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 38,768 | C++ | .cpp | 912 | 34.080044 | 167 | 0.59111 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,941 | event_db.cpp | edman007_chiton/event_db.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 2,671 | C++ | .cpp | 64 | 36.765625 | 133 | 0.569888 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,942 | motion_cvdetect.cpp | edman007_chiton/motion_cvdetect.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 6,336 | C++ | .cpp | 170 | 30.141176 | 134 | 0.591574 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,943 | util.cpp | edman007_chiton/util.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 8,939 | C++ | .cpp | 289 | 25.581315 | 124 | 0.601604 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,944 | json_encoder.cpp | edman007_chiton/json_encoder.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 3,492 | C++ | .cpp | 116 | 24.698276 | 75 | 0.561143 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,945 | camera.cpp | edman007_chiton/camera.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 16,179 | C++ | .cpp | 379 | 31.978892 | 154 | 0.549524 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,946 | main.cpp | edman007_chiton/main.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 6,035 | C++ | .cpp | 184 | 26.11413 | 132 | 0.576943 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,947 | image_util.cpp | edman007_chiton/image_util.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 7,604 | C++ | .cpp | 196 | 32.438776 | 178 | 0.61081 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,948 | motion_cvbackground.cpp | edman007_chiton/motion_cvbackground.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 2,667 | C++ | .cpp | 76 | 30.671053 | 142 | 0.634354 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,949 | event_console.cpp | edman007_chiton/event_console.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 1,948 | C++ | .cpp | 53 | 33.54717 | 135 | 0.600212 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,950 | stream_unwrap.cpp | edman007_chiton/stream_unwrap.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 23,719 | C++ | .cpp | 541 | 35.561922 | 172 | 0.612029 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,951 | export.cpp | edman007_chiton/export.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 9,392 | C++ | .cpp | 249 | 30.610442 | 170 | 0.581852 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,952 | config_parser.cpp | edman007_chiton/config_parser.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 6,226 | C++ | .cpp | 182 | 22.472527 | 132 | 0.442901 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,953 | motion_cvmask.cpp | edman007_chiton/motion_cvmask.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 4,071 | C++ | .cpp | 107 | 33.121495 | 170 | 0.638298 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,954 | chiton_ffmpeg.cpp | edman007_chiton/chiton_ffmpeg.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 32,008 | C++ | .cpp | 877 | 30.521095 | 149 | 0.610433 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,955 | file_manager.cpp | edman007_chiton/file_manager.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 19,603 | C++ | .cpp | 471 | 34.726115 | 186 | 0.590644 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,956 | system_controller.cpp | edman007_chiton/system_controller.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 10,141 | C++ | .cpp | 315 | 25.669841 | 131 | 0.588422 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,957 | camera_status.cpp | edman007_chiton/camera_status.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 3,436 | C++ | .cpp | 90 | 34.755556 | 131 | 0.685697 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,958 | motion_cvdebugshow.cpp | edman007_chiton/motion_cvdebugshow.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 2,985 | C++ | .cpp | 76 | 36.105263 | 140 | 0.676897 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,959 | mariadb_result.cpp | edman007_chiton/mariadb_result.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 4,311 | C++ | .cpp | 139 | 25.661871 | 98 | 0.575574 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,960 | remote.cpp | edman007_chiton/remote.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 17,547 | C++ | .cpp | 512 | 27.363281 | 118 | 0.570443 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,961 | motion_opencv.cpp | edman007_chiton/motion_opencv.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 12,498 | C++ | .cpp | 305 | 33.901639 | 155 | 0.618828 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,962 | motion_algo.cpp | edman007_chiton/motion_algo.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 934 | C++ | .cpp | 22 | 40.545455 | 75 | 0.607456 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,963 | filter.cpp | edman007_chiton/filter.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 11,099 | C++ | .cpp | 307 | 29.355049 | 148 | 0.598884 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,964 | event_notification.cpp | edman007_chiton/event_notification.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 941 | C++ | .cpp | 22 | 40.863636 | 75 | 0.610446 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,966 | mariadb.cpp | edman007_chiton/mariadb.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 2,948 | C++ | .cpp | 85 | 30.458824 | 164 | 0.622136 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,967 | event_controller.cpp | edman007_chiton/event_controller.cpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 1,891 | C++ | .cpp | 53 | 32.264151 | 160 | 0.644809 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,968 | cfmp4.cpp | edman007_chiton/io/cfmp4.cpp | #include "cfmp4.hpp"
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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... | 5,299 | C++ | .cpp | 159 | 27.08805 | 157 | 0.575639 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,969 | event_notification.hpp | edman007_chiton/event_notification.hpp | #ifndef __EVENT_NOTIFICATION_HPP__
#define __EVENT_NOTIFICATION_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pub... | 1,574 | C++ | .h | 36 | 41.722222 | 178 | 0.677966 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,970 | mariadb_result.hpp | edman007_chiton/mariadb_result.hpp | #ifndef __MARIADB_RESULT_HPP__
#define __MARIADB_RESULT_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... | 2,096 | C++ | .h | 49 | 39.571429 | 107 | 0.670113 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,971 | event.hpp | edman007_chiton/event.hpp | #ifndef __EVENT_HPP__
#define __EVENT_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 So... | 2,563 | C++ | .h | 62 | 38.241935 | 122 | 0.678844 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,972 | module.hpp | edman007_chiton/module.hpp | #ifndef __MODULE_HPP__
#define __MODULE_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 ... | 2,911 | C++ | .h | 57 | 48.631579 | 153 | 0.700843 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,973 | motion_cvresize.hpp | edman007_chiton/motion_cvresize.hpp | #ifndef __MOTION_ALGO_CVRESIZE_HPP__
#define __MOTION_ALGO_CVRESIZE_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as... | 1,989 | C++ | .h | 46 | 40.76087 | 106 | 0.684889 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,974 | stream_unwrap.hpp | edman007_chiton/stream_unwrap.hpp | #ifndef __STREAM_UNWRAP_HPP__
#define __STREAM_UNWRAP_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | 5,062 | C++ | .h | 86 | 54.988372 | 137 | 0.728814 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,975 | config_parser.hpp | edman007_chiton/config_parser.hpp | #ifndef __CONFIG_PARSER_HPP__
#define __CONFIG_PARSER_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | 1,878 | C++ | .h | 56 | 29.428571 | 75 | 0.630846 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,976 | database_result.hpp | edman007_chiton/database_result.hpp | #ifndef __DATABASE_RESULT_HPP__
#define __DATABASE_RESULT_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published... | 1,884 | C++ | .h | 39 | 45.692308 | 160 | 0.668295 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,977 | chiton_ffmpeg.hpp | edman007_chiton/chiton_ffmpeg.hpp | #ifndef __CHITON_FFMPEG_HPP__
#define __CHITON_FFMPEG_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | 6,843 | C++ | .h | 153 | 42.130719 | 182 | 0.741157 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,979 | chiton_config.hpp | edman007_chiton/chiton_config.hpp | #ifndef __CHITON_CONFIG_HPP__
#define __CHITON_CONFIG_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | 2,450 | C++ | .h | 53 | 43.54717 | 114 | 0.686555 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,980 | setting.hpp | edman007_chiton/setting.hpp | /**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 L... | 15,369 | C++ | .h | 173 | 86.289017 | 198 | 0.730397 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,981 | mariadb.hpp | edman007_chiton/mariadb.hpp | #ifndef __MARIADB_HPP__
#define __MARIADB_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fre... | 1,668 | C++ | .h | 43 | 36.116279 | 159 | 0.650588 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,982 | event_console.hpp | edman007_chiton/event_console.hpp | #ifndef __EVENT_CONSOLE_HPP__
#define __EVENT_CONSOLE_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | 1,343 | C++ | .h | 34 | 37.352941 | 75 | 0.653905 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,983 | json_encoder.hpp | edman007_chiton/json_encoder.hpp | #ifndef __JSON_ENCODER_HPP__
#define __JSON_ENCODER_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*... | 1,910 | C++ | .h | 49 | 36.183673 | 75 | 0.658051 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,984 | file_manager.hpp | edman007_chiton/file_manager.hpp | #ifndef __FILE_MANAGER_HPP__
#define __FILE_MANAGER_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*... | 5,663 | C++ | .h | 85 | 62.917647 | 181 | 0.718525 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,985 | database.hpp | edman007_chiton/database.hpp | #ifndef __DATABASE_HPP__
#define __DATABASE_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the F... | 2,078 | C++ | .h | 46 | 41.891304 | 171 | 0.657256 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,986 | system_controller.hpp | edman007_chiton/system_controller.hpp | #ifndef __SYSTEM_CONTROLLER_HPP__
#define __SYSTEM_CONTROLLER_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publi... | 3,994 | C++ | .h | 102 | 35.803922 | 125 | 0.694946 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,987 | motion_cvdebugshow.hpp | edman007_chiton/motion_cvdebugshow.hpp | #ifndef __MOTION_ALGO_CVDEBUGSHOW_HPP__
#define __MOTION_ALGO_CVDEBUGSHOW_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Lice... | 2,186 | C++ | .h | 52 | 39.75 | 106 | 0.705772 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,988 | filter.hpp | edman007_chiton/filter.hpp | #ifndef __HWLOAD_HPP__
#define __HWLOAD_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 ... | 2,889 | C++ | .h | 64 | 41.75 | 184 | 0.697056 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,989 | event_controller.hpp | edman007_chiton/event_controller.hpp | #ifndef __EVENT_CONTROLLER_HPP__
#define __EVENT_CONTROLLER_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publish... | 2,233 | C++ | .h | 47 | 45.191489 | 163 | 0.70696 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,990 | export.hpp | edman007_chiton/export.hpp | #ifndef __EXPORT_HPP__
#define __EXPORT_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 ... | 2,449 | C++ | .h | 65 | 34.584615 | 122 | 0.678722 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,991 | remote.hpp | edman007_chiton/remote.hpp | #ifndef __REMOTE_HPP__
#define __REMOTE_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 ... | 6,182 | C++ | .h | 158 | 36.21519 | 150 | 0.695059 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,992 | image_util.hpp | edman007_chiton/image_util.hpp | #ifndef __IMAGE_UTIL_HPP__
#define __IMAGE_UTIL_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... | 2,460 | C++ | .h | 50 | 46.22 | 156 | 0.6804 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,993 | cv_target_rect.hpp | edman007_chiton/cv_target_rect.hpp | #ifndef __CV_TARGET_RECT_HPP__
#define __CV_TARGET_RECT_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published b... | 2,368 | C++ | .h | 51 | 43.647059 | 164 | 0.692308 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,994 | camera_status.hpp | edman007_chiton/camera_status.hpp | #ifndef __CAMERA_STATUS_HPP__
#define __CAMERA_STATUS_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | 1,989 | C++ | .h | 53 | 34.54717 | 81 | 0.669259 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,995 | motion_controller.hpp | edman007_chiton/motion_controller.hpp | #ifndef __MOTION_CONTROLLER_HPP__
#define __MOTION_CONTROLLER_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publi... | 3,031 | C++ | .h | 59 | 48.627119 | 167 | 0.721417 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,996 | stream_writer.hpp | edman007_chiton/stream_writer.hpp | #ifndef __STREAM_WRITER_HPP__
#define __STREAM_WRITER_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
... | 7,455 | C++ | .h | 118 | 59.025424 | 187 | 0.729818 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,997 | system_controller.fwd.hpp | edman007_chiton/system_controller.fwd.hpp | #ifndef __SYSTEM_CONTROLLER_FWD_HPP__
#define __SYSTEM_CONTROLLER_FWD_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License ... | 1,078 | C++ | .h | 26 | 39.692308 | 75 | 0.635932 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,998 | database_manager.hpp | edman007_chiton/database_manager.hpp | #ifndef __DATABASE_MANAGER_HPP__
#define __DATABASE_MANAGER_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publish... | 2,108 | C++ | .h | 47 | 42 | 116 | 0.688748 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,542,999 | module_controller.hpp | edman007_chiton/module_controller.hpp | #ifndef __MODULE_CONTROLLER_HPP__
#define __MODULE_CONTROLLER_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as publi... | 5,988 | C++ | .h | 144 | 35.763889 | 174 | 0.631308 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,000 | motion_opencv.hpp | edman007_chiton/motion_opencv.hpp | #ifndef __MOTION_ALGO_OPENCV_HPP__
#define __MOTION_ALGO_OPENCV_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pub... | 2,390 | C++ | .h | 59 | 37.711864 | 106 | 0.688172 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,001 | motion_cvbackground.hpp | edman007_chiton/motion_cvbackground.hpp | #ifndef __MOTION_ALGO_CVBACKGROUND_HPP__
#define __MOTION_ALGO_CVBACKGROUND_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Li... | 1,939 | C++ | .h | 46 | 39.695652 | 106 | 0.687302 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,002 | motion_cvmask.hpp | edman007_chiton/motion_cvmask.hpp | #ifndef __MOTION_ALGO_CVMASK_HPP__
#define __MOTION_ALGO_CVMASK_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as pub... | 2,289 | C++ | .h | 51 | 42.176471 | 106 | 0.698434 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,003 | event_db.hpp | edman007_chiton/event_db.hpp | #ifndef __EVENT_DB_HPP__
#define __EVENT_DB_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the F... | 1,339 | C++ | .h | 35 | 36.142857 | 75 | 0.647963 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,004 | camera.hpp | edman007_chiton/camera.hpp | #ifndef __CAMERA_HPP__
#define __CAMERA_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 ... | 3,106 | C++ | .h | 75 | 37.933333 | 143 | 0.691951 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,005 | motion_cvdetect.hpp | edman007_chiton/motion_cvdetect.hpp | #ifndef __MOTION_ALGO_CVDETECT_HPP__
#define __MOTION_ALGO_CVDETECT_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as... | 2,466 | C++ | .h | 57 | 40.508772 | 106 | 0.70104 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,006 | motion_algo.hpp | edman007_chiton/motion_algo.hpp | #ifndef __MOTION_ALGO_HPP__
#define __MOTION_ALGO_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* ... | 1,847 | C++ | .h | 38 | 46.473684 | 166 | 0.6866 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,007 | util.hpp | edman007_chiton/util.hpp | #ifndef __UTIL_HPP__
#define __UTIL_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton 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 Soft... | 4,331 | C++ | .h | 102 | 39.068627 | 142 | 0.698787 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,008 | io_wrapper.hpp | edman007_chiton/io/io_wrapper.hpp | #ifndef __IO_WRAPPER_HPP__
#define __IO_WRAPPER_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* t... | 1,420 | C++ | .h | 38 | 35.289474 | 104 | 0.648041 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,009 | cfmp4.hpp | edman007_chiton/io/cfmp4.hpp | #ifndef __IO_CFMP4_HPP__
#define __IO_CFMP4_HPP__
/**************************************************************************
*
* This file is part of Chiton.
*
* Chiton is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the F... | 2,026 | C++ | .h | 50 | 37.54 | 88 | 0.667006 | edman007/chiton | 38 | 13 | 0 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,010 | util.cpp | mullvad_win-split-tunnel/leaktest/util.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#include <libcommon/network/adapters.h>
#include "util.h"
#include <libcommon/process/process.h>
#include <libcommon/error.h>
#include <libcommon/memory.h>
#include <libcommon/string.h>
#include <iostream>
#include <vector>
#include <filesystem>
#include <ws2tcpip.h>
namespace
{
st... | 8,975 | C++ | .cpp | 329 | 24.723404 | 102 | 0.724368 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,011 | sockutil.cpp | mullvad_win-split-tunnel/leaktest/sockutil.cpp | #include "sockutil.h"
#include "util.h"
#include <libcommon/error.h>
#include <libcommon/string.h>
#include <stdexcept>
#include <sstream>
#include <iomanip>
#include <cassert>
std::string FormatWsaError(int errorCode)
{
std::stringstream ss;
ss << "0x" << std::setw(8) << std::setfill('0') << std::hex << errorCode;... | 7,763 | C++ | .cpp | 259 | 27.586873 | 118 | 0.727175 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,012 | settings.cpp | mullvad_win-split-tunnel/leaktest/settings.cpp | #include "settings.h"
#include <fstream>
#include <stdexcept>
#include <vector>
//static
Settings Settings::FromFile(const std::filesystem::path &filename)
{
std::ifstream source(filename);
if (!source.is_open())
{
throw std::runtime_error("Failed to open settings file");
}
std::vector<std::wstring> intermedi... | 726 | C++ | .cpp | 25 | 27.08 | 94 | 0.737374 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,013 | runtimesettings.cpp | mullvad_win-split-tunnel/leaktest/runtimesettings.cpp | #include "runtimesettings.h"
#include "util.h"
#include <libcommon/error.h>
#include <ws2tcpip.h>
#include <vector>
namespace
{
std::filesystem::path g_SettingsFilePathOverride;
} // anonymous namespace
RuntimeSettings::RuntimeSettings(Settings settings)
: m_settings(std::move(settings))
{
}
//static
std::filesys... | 4,127 | C++ | .cpp | 167 | 22.51497 | 84 | 0.750964 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,014 | leaktest.cpp | mullvad_win-split-tunnel/leaktest/leaktest.cpp | #include <ws2tcpip.h> // include before windows.h
#include "general/gen1.h"
#include "split-tunnel/st1.h"
#include "split-tunnel/st2.h"
#include "split-tunnel/st3.h"
#include "split-tunnel/st4.h"
#include "split-tunnel/st5.h"
#include "split-tunnel/st6.h"
#include "split-tunnel/st7.h"
#include "util.h"
#include "sockut... | 3,096 | C++ | .cpp | 137 | 20.394161 | 98 | 0.688653 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,015 | st2.cpp | mullvad_win-split-tunnel/leaktest/split-tunnel/st2.cpp | #include "st2.h"
#include <iostream>
#include <ws2tcpip.h>
#include "../util.h"
#include "../runtimesettings.h"
#include "../sockutil.h"
#include <libcommon/memory.h>
constexpr auto SocketRecvTimeoutValue = std::chrono::milliseconds(2000);
bool TestCaseSt2(const std::vector<std::wstring> &arguments)
{
std::wcout << ... | 2,551 | C++ | .cpp | 67 | 35.626866 | 110 | 0.721091 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,016 | st1.cpp | mullvad_win-split-tunnel/leaktest/split-tunnel/st1.cpp | #define _WINSOCK_DEPRECATED_NO_WARNINGS 1
#include "st1.h"
#include <iostream>
#include <optional>
#include <ws2tcpip.h> // include before windows.h
#include <libcommon/security.h>
#include <libcommon/error.h>
#include <libcommon/string.h>
#include "../util.h"
#include "../runtimesettings.h"
#include "../sockutil.h"
#... | 3,629 | C++ | .cpp | 120 | 27.925 | 104 | 0.722318 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,017 | st4.cpp | mullvad_win-split-tunnel/leaktest/split-tunnel/st4.cpp | #include "st4.h"
#include <iostream>
#include <ws2tcpip.h>
#include <windns.h>
#include "../util.h"
#include "../runtimesettings.h"
#include "../sockutil.h"
#include <libcommon/error.h>
#include <libcommon/process/applicationrunner.h>
using Runner = common::process::ApplicationRunner;
namespace
{
std::wstring GetPkt... | 4,070 | C++ | .cpp | 165 | 22.29697 | 95 | 0.707608 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,018 | st5.cpp | mullvad_win-split-tunnel/leaktest/split-tunnel/st5.cpp | #include "st5.h"
#include <iostream>
#include <ws2tcpip.h>
#include "../util.h"
#include "../runtimesettings.h"
#include "../sockutil.h"
#include "../leaktest.h"
#include <libcommon/memory.h>
#include <chrono>
namespace
{
class WaitAssistant
{
public:
WaitAssistant(DWORD maxWaitTimeMs)
: m_maxWaitTime(maxWaitTime... | 7,296 | C++ | .cpp | 235 | 28.421277 | 109 | 0.723288 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,019 | st6.cpp | mullvad_win-split-tunnel/leaktest/split-tunnel/st6.cpp | #define _WINSOCK_DEPRECATED_NO_WARNINGS 1
#include "st6.h"
#include <iostream>
#include <ws2tcpip.h> // include before windows.h
#include <libcommon/security.h>
#include <libcommon/error.h>
#include <libcommon/string.h>
#include "../util.h"
#include "../sockutil.h"
#include "../leaktest.h"
bool TestCaseSt6(const std:... | 7,755 | C++ | .cpp | 244 | 29.147541 | 115 | 0.701605 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,020 | st7.cpp | mullvad_win-split-tunnel/leaktest/split-tunnel/st7.cpp | #define _WINSOCK_DEPRECATED_NO_WARNINGS 1
#include "st7.h"
#include <iostream>
#include <ws2tcpip.h>
#include <libcommon/security.h>
#include <libcommon/error.h>
#include <libcommon/string.h>
#include "../runtimesettings.h"
#include "../util.h"
#include "../sockutil.h"
#include "../leaktest.h"
// Signalled by child t... | 5,866 | C++ | .cpp | 172 | 31.569767 | 107 | 0.739409 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,021 | st3.cpp | mullvad_win-split-tunnel/leaktest/split-tunnel/st3.cpp | #include "st3.h"
#include <iostream>
#include <ws2tcpip.h>
#include "../util.h"
#include "../runtimesettings.h"
#include "../sockutil.h"
#include <libcommon/memory.h>
constexpr auto SocketRecvTimeoutValue = std::chrono::milliseconds(2000);
bool TestCaseSt3(const std::vector<std::wstring> &arguments)
{
std::wcout << ... | 2,161 | C++ | .cpp | 58 | 34.87931 | 114 | 0.723425 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,022 | gen1.cpp | mullvad_win-split-tunnel/leaktest/general/gen1.cpp | #include "gen1.h"
#include "../util.h"
#include "../sockutil.h"
#include "../runtimesettings.h"
#include <libcommon/memory.h>
#include <libcommon/error.h>
#include <iostream>
namespace
{
std::vector<uint8_t> GenerateEchoBuffer()
{
return { 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16, 0x17 };
}
void LoopSendReceive(SOC... | 4,081 | C++ | .cpp | 157 | 23.10828 | 103 | 0.708473 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,023 | proc.cpp | mullvad_win-split-tunnel/testing/proc.cpp | #include <vector>
#include <iterator>
#include <cstdint>
#include <windows.h>
#include <tlhelp32.h>
#include <libcommon/error.h>
#include <libcommon/memory.h>
#include <map>
#include "../src/public.h"
#define PSAPI_VERSION 2
#include <psapi.h>
#include "proc.h"
using common::memory::UniqueHandle;
struct ProcessInf... | 6,079 | C++ | .cpp | 219 | 25.09589 | 91 | 0.736116 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,024 | stconsole.cpp | mullvad_win-split-tunnel/testing/stconsole.cpp | #include <libcommon/network/adapters.h>
#include <libcommon/string.h>
#include <libcommon/error.h>
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <iomanip>
#include <windows.h>
#include <conio.h>
#include <ip2string.h>
#include <winternl.h>
#include <ws2ipdef.h>
#include <process.h... | 21,107 | C++ | .cpp | 688 | 27.78343 | 116 | 0.696406 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,025 | driverentry.cpp | mullvad_win-split-tunnel/src/driverentry.cpp | #include "win64guard.h"
#include <ntddk.h>
#include <wdf.h>
#include <wdmsec.h>
#include <mstcpip.h>
#include "devicecontext.h"
#include "util.h"
#include "ioctl.h"
#include "firewall/firewall.h"
#include "defs/ioctl.h"
#include "eventing/eventing.h"
#include "trace.h"
#include "driverentry.tmh"
extern "C"
DRIVER_I... | 16,184 | C++ | .cpp | 550 | 22.407273 | 98 | 0.645193 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,026 | util.cpp | mullvad_win-split-tunnel/src/util.cpp | #include <ntifs.h>
#include "util.h"
namespace util
{
void
ReparentList
(
LIST_ENTRY *Dest,
LIST_ENTRY *Src
)
{
//
// If it's an empty list there is nothing to reparent.
//
if (Src->Flink == Src)
{
InitializeListHead(Dest);
return;
}
//
// Replace root node.
//
*Dest = *Src;
//
// Update links o... | 5,811 | C++ | .cpp | 306 | 16.732026 | 97 | 0.736009 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,027 | ioctl.cpp | mullvad_win-split-tunnel/src/ioctl.cpp | #include "ioctl.h"
#include "devicecontext.h"
#include "util.h"
#include "ipaddr.h"
#include "firewall/firewall.h"
#include "defs/config.h"
#include "defs/process.h"
#include "defs/queryprocess.h"
#include "validation.h"
#include "eventing/eventing.h"
#include "eventing/builder.h"
#include "trace.h"
#include "ioctl.tm... | 37,782 | C++ | .cpp | 1,310 | 23.416794 | 118 | 0.679268 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,028 | ipaddr.cpp | mullvad_win-split-tunnel/src/ipaddr.cpp | #include <wdm.h>
#include "ipaddr.h"
#include "util.h"
namespace ip
{
bool
ValidTunnelIpv4Address
(
const ST_IP_ADDRESSES *IpAddresses
)
{
return !util::IsEmptyRange(&IpAddresses->TunnelIpv4, sizeof(IpAddresses->TunnelIpv4));
}
bool
ValidInternetIpv4Address
(
const ST_IP_ADDRESSES *IpAddresses
)
{
return !util::... | 746 | C++ | .cpp | 38 | 18.263158 | 91 | 0.81339 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,029 | validation.cpp | mullvad_win-split-tunnel/src/validation.cpp | #include "validation.h"
#include "defs/config.h"
#include "defs/process.h"
#include "util.h"
#include <ntintsafe.h>
bool
ValidateUserBufferConfiguration
(
void *Buffer,
size_t BufferLength
)
{
auto bufferEnd = (UCHAR*)Buffer + BufferLength;
if (BufferLength < sizeof(ST_CONFIGURATION_HEADER)
|| ... | 2,894 | C++ | .cpp | 107 | 21.224299 | 109 | 0.630033 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,030 | procmon.cpp | mullvad_win-split-tunnel/src/procmon/procmon.cpp | #include <ntddk.h>
#include "procmon.h"
#include "context.h"
#include "../util.h"
#include "../defs/types.h"
#include "../trace.h"
#include "procmon.tmh"
namespace procmon
{
namespace
{
//
// PsSetCreateProcessNotifyRoutineEx() is broken so you can't pass context.
//
// This isn't ideal, especially considering crea... | 9,537 | C++ | .cpp | 297 | 25.784512 | 126 | 0.661084 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,031 | procmgmt.cpp | mullvad_win-split-tunnel/src/procmgmt/procmgmt.cpp | #include "procmgmt.h"
#include "context.h"
#include "../util.h"
#include "../defs/events.h"
#include "../eventing/builder.h"
#include "../trace.h"
#include "procmgmt.tmh"
namespace procmgmt
{
namespace
{
//
// EmitAddEntryErrorEvents()
//
// During process arrival event processing, it may happen that `procregistry:... | 14,525 | C++ | .cpp | 450 | 26.588889 | 103 | 0.686716 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,032 | eventing.cpp | mullvad_win-split-tunnel/src/eventing/eventing.cpp | #include "eventing.h"
#include "context.h"
#include "builder.h"
#include "../defs/types.h"
#include "../trace.h"
#include "eventing.tmh"
namespace eventing
{
namespace
{
void EnqueueEvent
(
CONTEXT *Context,
RAW_EVENT *evt
)
{
WdfSpinLockAcquire(Context->EventQueueLock);
const SIZE_T MAX_QUEUED_EVE... | 5,633 | C++ | .cpp | 230 | 18.878261 | 101 | 0.646539 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,033 | builder.cpp | mullvad_win-split-tunnel/src/eventing/builder.cpp | #include "builder.h"
namespace eventing
{
namespace
{
bool
BuildSplittingEvent
(
HANDLE ProcessId,
ST_SPLITTING_STATUS_CHANGE_REASON Reason,
LOWER_UNICODE_STRING *ImageName,
bool Start,
void **Buffer,
size_t *BufferSize
)
{
auto headerSize = FIELD_OFFSET(ST_EVENT_HEADER, EventData);
auto eventSize = FIELD_OF... | 4,801 | C++ | .cpp | 190 | 23.210526 | 114 | 0.77124 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,034 | procbroker.cpp | mullvad_win-split-tunnel/src/procbroker/procbroker.cpp | #include "procbroker.h"
#include "context.h"
#include "../defs/types.h"
#include "../trace.h"
#include "procbroker.tmh"
namespace procbroker
{
NTSTATUS
Initialize
(
CONTEXT **Context
)
{
auto context = (CONTEXT*)ExAllocatePoolUninitialized(PagedPool, sizeof(CONTEXT), ST_POOL_TAG);
if (NULL == context)
... | 2,663 | C++ | .cpp | 106 | 20.933962 | 104 | 0.709012 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 PM (Europe/Amsterdam) | false | false | false | false | false | false | false | false |
1,543,035 | procregistry.cpp | mullvad_win-split-tunnel/src/containers/procregistry.cpp | #include <ntifs.h>
#include "procregistry.h"
#include "../util.h"
namespace procregistry
{
struct CONTEXT
{
RTL_AVL_TABLE Tree;
ST_PAGEABLE Pageable;
};
namespace
{
RTL_GENERIC_COMPARE_RESULTS
TreeCompareRoutine
(
__in struct _RTL_AVL_TABLE *Table,
__in PVOID FirstStruct,
__in PVOID SecondStruct
)
{
UNREFER... | 6,557 | C++ | .cpp | 325 | 18.181538 | 106 | 0.758525 | mullvad/win-split-tunnel | 37 | 9 | 1 | GPL-3.0 | 9/20/2024, 10:45:34 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.