repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
null
endure-main/extern/rocksdb/include/rocksdb/slice_transform.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // Copyright (c) 2012 The LevelDB Authors. All rights reser...
4,508
42.355769
79
h
null
endure-main/extern/rocksdb/include/rocksdb/trace_reader_writer.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #include "rocksdb/env.h" namespace ROCKSDB...
1,734
34.408163
80
h
null
endure-main/extern/rocksdb/include/rocksdb/metadata.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #include <stdint.h> #include <limits> #incl...
6,221
37.171779
80
h
null
endure-main/extern/rocksdb/include/rocksdb/data_structure.h
// Copyright (c) Facebook, Inc. and its affiliates. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #include <assert.h> #include <cstdint...
1,491
29.44898
78
h
null
endure-main/extern/rocksdb/include/rocksdb/io_status.h
// Copyright (c) 2019-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // // An IOStatus encapsulates the result of an operation. ...
8,240
29.522222
79
h
null
endure-main/extern/rocksdb/include/rocksdb/concurrent_task_limiter.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // // Copyright (c) 2011 The LevelDB Authors. All rights r...
1,619
33.468085
79
h
null
endure-main/extern/rocksdb/include/rocksdb/env_encryption.h
// Copyright (c) 2016-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #if !defined(ROCKSDB_LITE) #include <strin...
18,881
41.147321
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/transaction_db.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #ifndef ROCKSDB_LITE #include <string> #inc...
17,550
39.533487
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/transaction_db_mutex.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #ifndef ROCKSDB_LITE #include <memory> #in...
3,247
33.924731
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/ldb_cmd.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // #pragma once #ifndef ROCKSDB_LITE #include <stdio.h> ...
9,312
31.003436
79
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/db_ttl.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #ifndef ROCKSDB_LITE #include <string> #inc...
2,896
38.684932
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/stackable_db.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #pragma once #include <map> #i...
17,987
34.619802
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/options_util.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // This file contains utility functions for RocksDB Option...
5,754
43.612403
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/leveldb_options.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // // Copyright (c) 2011 The LevelDB Authors. All rights r...
5,281
35.178082
78
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/env_mirror.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2015, Red Hat, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directo...
5,833
31.232044
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/ldb_cmd_execute_result.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // #pragma once #ifdef FAILED #undef FAILED #endif names...
1,656
22.013889
71
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/debug.h
// Copyright (c) 2017-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #ifndef ROCKSDB_LITE #include "rocksdb/db....
1,947
37.96
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/optimistic_transaction_db.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #ifndef ROCKSDB_LITE #include <string> #inc...
3,746
36.09901
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/env_librados.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #include <memory> #include <string> #includ...
7,581
42.079545
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/write_batch_with_index.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // Copyright (c) 2011 The LevelDB Authors. All rights reser...
10,803
37.585714
79
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/table_properties_collectors.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #ifndef ROCKSDB_LITE #include <atomic> #incl...
3,742
37.989583
73
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/memory_util.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #ifndef ROCKSDB_LITE #pragma once #include <map> #includ...
1,627
30.921569
73
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/object_registry.h
// Copyright (c) 2016-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #ifndef ROCKSDB_LITE #include <functional> ...
9,449
36.058824
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/sim_cache.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #include <stdint.h> #include <memory> #inclu...
3,747
38.452632
80
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/utility_db.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #pragma once #ifndef ROCKSDB_L...
1,066
29.485714
77
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/checkpoint.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // // A checkpoint is an openable snapshot of a database at...
2,606
41.048387
78
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/option_change_migration.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #include <string> #include "rocksdb/options...
740
36.05
73
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/backupable_db.h
// Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // This is a DEPRECATED header for API backward comp...
715
25.518519
73
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/info_log_finder.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #include <string> #include <vector> #includ...
588
28.45
71
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/lua/rocks_lua_custom_library.h
// Copyright (c) 2016, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once #ifdef LUA // lua headers extern "C" { #include <la...
1,510
33.340909
76
h
null
endure-main/extern/rocksdb/include/rocksdb/utilities/lua/rocks_lua_util.h
// Copyright (c) 2016, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). #pragma once // lua headers extern "C" { #include <lauxlib.h> #in...
1,499
25.785714
77
h
null
endure-main/extern/rocksdb/hdfs/env_hdfs.h
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // #pragma once #include <algorithm> #include <stdio.h> #...
12,274
30.718346
80
h
null
endure-main/extern/spdlog/tests/includes.h
#pragma once #include "catch.hpp" #include "utils.h" #include <chrono> #include <cstdio> #include <exception> #include <fstream> #include <iostream> #include <ostream> #include <sstream> #include <string> #include <iomanip> #include <stdlib.h> #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG #include "spdlog/spdlog.h"...
633
23.384615
46
h
null
endure-main/extern/spdlog/tests/test_sink.h
// // Copyright(c) 2018 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "spdlog/details/null_mutex.h" #include "spdlog/sinks/base_sink.h" #include "spdlog/fmt/fmt.h" #include <chrono> #include <mutex> #include <thread> namespace spdlog { namespace sinks...
1,893
22.675
78
h
null
endure-main/extern/spdlog/include/spdlog/logger-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/logger.h> #endif #include <spdlog/sinks/sink.h> #include <spdlog/details/backtracer.h> #include <spdlog/pattern_formatter...
7,010
26.174419
128
h
null
endure-main/extern/spdlog/include/spdlog/tweakme.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once /////////////////////////////////////////////////////////////////////////////// // // Edit this file to squeeze more performance, and to customize supported // featur...
5,331
44.57265
96
h
null
endure-main/extern/spdlog/include/spdlog/stopwatch.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/fmt/fmt.h> // Stopwatch support for spdlog (using std::chrono::steady_clock). // Displays elapsed seconds since construction as double. // // Usage...
1,654
25.693548
127
h
null
endure-main/extern/spdlog/include/spdlog/spdlog-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/spdlog.h> #endif #include <spdlog/common.h> #include <spdlog/pattern_formatter.h> namespace spdlog { SPDLOG_INLINE void...
3,094
23.563492
108
h
null
endure-main/extern/spdlog/include/spdlog/common-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/common.h> #endif namespace spdlog { namespace level { static string_view_t level_string_views[] SPDLOG_LEVEL_NAMES; stat...
1,791
22.272727
89
h
null
endure-main/extern/spdlog/include/spdlog/async.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once // // Async logging using global thread pool // All loggers created here share same global thread pool. // Each log message is pushed to a queue along with a shared p...
3,358
34.734043
129
h
null
endure-main/extern/spdlog/include/spdlog/async_logger.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once // Fast asynchronous logger. // Uses pre allocated queue. // Creates a single back thread to pop messages from the queue and log them. // // Upon each log write the l...
2,272
31.942029
109
h
null
endure-main/extern/spdlog/include/spdlog/details/log_msg.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/common.h> #include <string> namespace spdlog { namespace details { struct SPDLOG_API log_msg { log_msg() = default; log_msg(log_clock::time_...
1,094
28.594595
129
h
null
endure-main/extern/spdlog/include/spdlog/details/periodic_worker-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/details/periodic_worker.h> #endif namespace spdlog { namespace details { SPDLOG_INLINE periodic_worker::periodic_worker(...
1,230
23.62
120
h
null
endure-main/extern/spdlog/include/spdlog/details/registry.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once // Loggers registry of unique name->logger pointer // An attempt to create a logger with an already existing name will result with spdlog_ex exception. // If user req...
3,688
30.801724
102
h
null
endure-main/extern/spdlog/include/spdlog/details/tcp_client.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifdef _WIN32 #error include tcp_client-windows.h instead #endif // tcp client helper #include <spdlog/common.h> #include <spdlog/details/os.h> #include <sys/socket...
3,891
25.47619
101
h
null
endure-main/extern/spdlog/include/spdlog/details/backtracer.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/details/log_msg_buffer.h> #include <spdlog/details/circular_q.h> #include <atomic> #include <mutex> #include <functional> // Store log messages in ...
1,134
24.222222
73
h
null
endure-main/extern/spdlog/include/spdlog/details/periodic_worker.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once // periodic worker thread - periodically executes the given callback function. // // RAII over the owned thread: // creates the thread on construction. // stops...
1,129
26.560976
117
h
null
endure-main/extern/spdlog/include/spdlog/details/thread_pool.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/details/log_msg_buffer.h> #include <spdlog/details/mpmc_blocking_q.h> #include <spdlog/details/os.h> #include <chrono> #include <memory> #include <t...
3,238
25.768595
117
h
null
endure-main/extern/spdlog/include/spdlog/details/registry-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/details/registry.h> #endif #include <spdlog/common.h> #include <spdlog/details/periodic_worker.h> #include <spdlog/logger...
8,635
26.503185
101
h
null
endure-main/extern/spdlog/include/spdlog/details/file_helper-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/details/file_helper.h> #endif #include <spdlog/details/os.h> #include <spdlog/common.h> #include <cerrno> #include <chro...
3,360
24.270677
105
h
null
endure-main/extern/spdlog/include/spdlog/details/fmt_helper.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <chrono> #include <type_traits> #include <spdlog/fmt/fmt.h> #include <spdlog/common.h> // Some fmt helpers to efficiently format and pad ints and strings nam...
3,081
25.34188
107
h
null
endure-main/extern/spdlog/include/spdlog/details/os.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/common.h> #include <ctime> // std::time_t namespace spdlog { namespace details { namespace os { SPDLOG_API spdlog::log_clock::time_point now() SPDL...
3,456
29.866071
100
h
null
endure-main/extern/spdlog/include/spdlog/details/log_msg-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/details/log_msg.h> #endif #include <spdlog/details/os.h> namespace spdlog { namespace details { SPDLOG_INLINE log_msg::...
1,100
27.973684
123
h
null
endure-main/extern/spdlog/include/spdlog/details/mpmc_blocking_q.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once // multi producer-multi consumer blocking queue. // enqueue(..) - will block until room found to put the new message. // enqueue_nowait(..) - will return immediately ...
3,529
28.173554
94
h
null
endure-main/extern/spdlog/include/spdlog/details/log_msg_buffer-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/details/log_msg_buffer.h> #endif namespace spdlog { namespace details { SPDLOG_INLINE log_msg_buffer::log_msg_buffer(con...
1,652
27.016949
134
h
null
endure-main/extern/spdlog/include/spdlog/details/tcp_client-windows.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #define WIN32_LEAN_AND_MEAN // tcp client helper #include <spdlog/common.h> #include <spdlog/details/os.h> #include <winsock2.h> #include <windows.h> #include <ws2tc...
4,655
25.454545
108
h
null
endure-main/extern/spdlog/include/spdlog/details/file_helper.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/common.h> #include <tuple> namespace spdlog { namespace details { // Helper class for file sinks. // When failing to open a file, retry several tim...
1,625
26.1
90
h
null
endure-main/extern/spdlog/include/spdlog/details/synchronous_factory.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include "registry.h" namespace spdlog { // Default logger factory- creates synchronous loggers class logger; struct synchronous_factory { template<typename S...
752
30.375
100
h
null
endure-main/extern/spdlog/include/spdlog/details/log_msg_buffer.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/details/log_msg.h> namespace spdlog { namespace details { // Extend log_msg with internal buffer to store its payload. // This is needed since log_...
929
26.352941
77
h
null
endure-main/extern/spdlog/include/spdlog/details/circular_q.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // circular q view of std::vector. #pragma once #include <vector> #include <cassert> namespace spdlog { namespace details { template<typename T> class circular_q { size_t max...
3,434
23.190141
80
h
null
endure-main/extern/spdlog/include/spdlog/details/backtracer-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/details/backtracer.h> #endif namespace spdlog { namespace details { SPDLOG_INLINE backtracer::backtracer(const backtracer ...
1,880
25.871429
93
h
null
endure-main/extern/spdlog/include/spdlog/sinks/dup_filter_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include "dist_sink.h" #include <spdlog/details/null_mutex.h> #include <spdlog/details/log_msg.h> #include <mutex> #include <string> #include <chrono> // Duplicate ...
2,825
30.054945
108
h
null
endure-main/extern/spdlog/include/spdlog/sinks/base_sink-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/sinks/base_sink.h> #endif #include <spdlog/common.h> #include <spdlog/pattern_formatter.h> #include <memory> template<t...
1,774
26.734375
117
h
null
endure-main/extern/spdlog/include/spdlog/sinks/android_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifdef __ANDROID__ #include <spdlog/details/fmt_helper.h> #include <spdlog/details/null_mutex.h> #include <spdlog/details/os.h> #include <spdlog/sinks/base_sink.h> #...
3,380
27.411765
115
h
null
endure-main/extern/spdlog/include/spdlog/sinks/tcp_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/common.h> #include <spdlog/sinks/base_sink.h> #include <spdlog/details/null_mutex.h> #ifdef _WIN32 #include <spdlog/details/tcp_client-windows.h> #el...
2,139
25.097561
116
h
null
endure-main/extern/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/sinks/stdout_color_sinks.h> #endif #include <spdlog/logger.h> #include <spdlog/common.h> namespace spdlog { template<ty...
1,209
30.842105
102
h
null
endure-main/extern/spdlog/include/spdlog/sinks/wincolor_sink-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/sinks/wincolor_sink.h> #endif #include <spdlog/common.h> #include <spdlog/pattern_formatter.h> namespace spdlog { namesp...
5,687
32.263158
117
h
null
endure-main/extern/spdlog/include/spdlog/sinks/ansicolor_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/details/console_globals.h> #include <spdlog/details/null_mutex.h> #include <spdlog/sinks/sink.h> #include <memory> #include <mutex> #include <string>...
3,950
32.201681
83
h
null
endure-main/extern/spdlog/include/spdlog/sinks/stdout_sinks.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/details/console_globals.h> #include <spdlog/details/synchronous_factory.h> #include <spdlog/sinks/sink.h> #include <cstdio> #ifdef _WIN32 #include <...
2,415
26.454545
83
h
null
endure-main/extern/spdlog/include/spdlog/sinks/stdout_sinks-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/sinks/stdout_sinks.h> #endif #include <spdlog/details/console_globals.h> #include <spdlog/pattern_formatter.h> #include <...
3,779
29.483871
117
h
null
endure-main/extern/spdlog/include/spdlog/sinks/wincolor_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/common.h> #include <spdlog/details/console_globals.h> #include <spdlog/details/null_mutex.h> #include <spdlog/sinks/sink.h> #include <memory> #inclu...
3,010
30.694737
89
h
null
endure-main/extern/spdlog/include/spdlog/sinks/null_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/details/null_mutex.h> #include <spdlog/sinks/base_sink.h> #include <spdlog/details/synchronous_factory.h> #include <mutex> namespace spdlog { names...
1,229
26.333333
82
h
null
endure-main/extern/spdlog/include/spdlog/sinks/msvc_sink.h
// Copyright(c) 2016 Alexander Dalshov. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #if defined(_WIN32) #include <spdlog/details/null_mutex.h> #include <spdlog/sinks/base_sink.h> #include <mutex> #include <string> // Avoid including windows.h (https://stackoverflow.com/a...
1,124
21.5
95
h
null
endure-main/extern/spdlog/include/spdlog/sinks/ansicolor_sink-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/sinks/ansicolor_sink.h> #endif #include <spdlog/pattern_formatter.h> #include <spdlog/details/os.h> namespace spdlog { n...
4,500
30.256944
118
h
null
endure-main/extern/spdlog/include/spdlog/sinks/stdout_color_sinks.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifdef _WIN32 #include <spdlog/sinks/wincolor_sink.h> #else #include <spdlog/sinks/ansicolor_sink.h> #endif #include <spdlog/details/synchronous_factory.h> namespac...
1,614
34.108696
113
h
null
endure-main/extern/spdlog/include/spdlog/sinks/rotating_file_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/sinks/base_sink.h> #include <spdlog/details/file_helper.h> #include <spdlog/details/null_mutex.h> #include <spdlog/details/synchronous_factory.h> #i...
2,444
29.949367
132
h
null
endure-main/extern/spdlog/include/spdlog/sinks/base_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once // // base sink templated over a mutex (either dummy or real) // concrete implementation should override the sink_it_() and flush_() methods. // locking is taken care...
1,550
28.264151
83
h
null
endure-main/extern/spdlog/include/spdlog/sinks/ringbuffer_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include "spdlog/sinks/base_sink.h" #include "spdlog/details/circular_q.h" #include "spdlog/details/log_msg_buffer.h" #include "spdlog/details/null_mutex.h" #include...
2,104
27.066667
84
h
null
endure-main/extern/spdlog/include/spdlog/sinks/dist_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include "base_sink.h" #include <spdlog/details/log_msg.h> #include <spdlog/details/null_mutex.h> #include <spdlog/pattern_formatter.h> #include <algorithm> #include...
2,410
23.602041
84
h
null
endure-main/extern/spdlog/include/spdlog/sinks/basic_file_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/details/file_helper.h> #include <spdlog/details/null_mutex.h> #include <spdlog/sinks/base_sink.h> #include <spdlog/details/synchronous_factory.h> #i...
1,643
27.344828
129
h
null
endure-main/extern/spdlog/include/spdlog/sinks/ostream_sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/details/null_mutex.h> #include <spdlog/sinks/base_sink.h> #include <mutex> #include <ostream> namespace spdlog { namespace sinks { template<typenam...
1,250
23.529412
89
h
null
endure-main/extern/spdlog/include/spdlog/sinks/basic_file_sink-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/sinks/basic_file_sink.h> #endif #include <spdlog/common.h> #include <spdlog/details/os.h> namespace spdlog { namespace s...
1,020
22.204545
96
h
null
endure-main/extern/spdlog/include/spdlog/sinks/sink.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/details/log_msg.h> #include <spdlog/formatter.h> namespace spdlog { namespace sinks { class SPDLOG_API sink { public: virtual ~sink() = default...
887
23.666667
86
h
null
endure-main/extern/spdlog/include/spdlog/sinks/sink-inl.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #ifndef SPDLOG_HEADER_ONLY #include <spdlog/sinks/sink.h> #endif #include <spdlog/common.h> SPDLOG_INLINE bool spdlog::sinks::sink::should_log(spdlog::level::level_...
721
26.769231
93
h
null
endure-main/extern/spdlog/include/spdlog/fmt/bin_to_hex.h
// // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include <cctype> // // Support for logging binary data as hex // format flags, any combination of the followng: // {:X} - print in uppercase. // {:s} - don't separate each byte with space. ...
6,296
28.018433
123
h
null
endure-main/extern/spdlog/include/spdlog/fmt/fmt.h
// // Copyright(c) 2016-2018 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once // // Include a bundled header-only copy of fmtlib or an external one. // By default spdlog include its own copy. // #if !defined(SPDLOG_FMT_EXTERNAL) #if !defined(SPDLOG_COMPILED_LIB) ...
732
26.148148
73
h
null
endure-main/extern/spdlog/include/spdlog/fmt/bundled/compile.h
// Formatting library for C++ - experimental format string compilation // // Copyright (c) 2012 - present, Victor Zverovich and fmt contributors // All rights reserved. // // For the license information refer to format.h. #ifndef FMT_COMPILE_H_ #define FMT_COMPILE_H_ #include <vector> #include "format.h" FMT_BEGIN_...
22,733
33.135135
80
h
null
endure-main/extern/spdlog/include/spdlog/fmt/bundled/os.h
// Formatting library for C++ - optional OS-specific functionality // // Copyright (c) 2012 - present, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. #ifndef FMT_OS_H_ #define FMT_OS_H_ #if defined(__MINGW32__) || defined(__CYGWIN__) // Workaround MinGW bug https://sourc...
13,011
27.851441
79
h
null
endure-main/extern/spdlog/include/spdlog/fmt/bundled/locale.h
// Formatting library for C++ - std::locale support // // Copyright (c) 2012 - present, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. #ifndef FMT_LOCALE_H_ #define FMT_LOCALE_H_ #include <locale> #include "format.h" FMT_BEGIN_NAMESPACE namespace detail { template <ty...
2,824
34.759494
76
h
null
endure-main/extern/spdlog/include/spdlog/fmt/bundled/ranges.h
// Formatting library for C++ - experimental range support // // Copyright (c) 2012 - present, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. // // Copyright (c) 2018 - present, Remotion (Igor Schulz) // All Rights Reserved // {fmt} support for ranges, containers and types...
12,324
30.847545
80
h
null
endure-main/extern/spdlog/include/spdlog/fmt/bundled/color.h
// Formatting library for C++ - color support // // Copyright (c) 2018 - present, Victor Zverovich and fmt contributors // All rights reserved. // // For the license information refer to format.h. #ifndef FMT_COLOR_H_ #define FMT_COLOR_H_ #include "format.h" FMT_BEGIN_NAMESPACE enum class color : uint32_t { alice...
22,363
38.442681
80
h
null
endure-main/extern/spdlog/include/spdlog/fmt/bundled/ostream.h
// Formatting library for C++ - std::ostream support // // Copyright (c) 2012 - present, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. #ifndef FMT_OSTREAM_H_ #define FMT_OSTREAM_H_ #include <ostream> #include "format.h" FMT_BEGIN_NAMESPACE template <typename Char> cl...
5,521
31.869048
80
h
null
endure-main/extern/spdlog/include/spdlog/fmt/bundled/printf.h
// Formatting library for C++ - legacy printf implementation // // Copyright (c) 2012 - 2016, Victor Zverovich // All rights reserved. // // For the license information refer to format.h. #ifndef FMT_PRINTF_H_ #define FMT_PRINTF_H_ #include <algorithm> // std::max #include <limits> // std::numeric_limits #inclu...
23,272
29.948138
80
h
null
endure-main/extern/spdlog/include/spdlog/cfg/argv.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/cfg/helpers.h> #include <spdlog/details/registry.h> // // Init log levels using each argv entry that starts with "SPDLOG_LEVEL=" // // set all logger...
1,229
26.333333
73
h
null
endure-main/extern/spdlog/include/spdlog/cfg/helpers.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/common.h> #include <unordered_map> namespace spdlog { namespace cfg { namespace helpers { // // Init levels from given string // // Examples: // // ...
710
22.7
88
h
null
endure-main/extern/spdlog/include/spdlog/cfg/env.h
// Copyright(c) 2015-present, Gabi Melman & spdlog contributors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) #pragma once #include <spdlog/cfg/helpers.h> #include <spdlog/details/registry.h> #include <spdlog/details/os.h> // // Init levels and patterns from env variables SPDLOG_LEVEL // ...
988
24.358974
81
h
HDN
HDN-master/toolkit/utils/src/region.c
#include <stdio.h> #include <float.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <assert.h> #include <ctype.h> #include "region.h" #include "buffer.h" #if defined(__OS2__) || defined(__WINDOWS__) || defined(WIN32) || defined(_MSC_VER) #ifndef isnan #define isnan(x) _isnan(x) #endif #ifndef is...
23,877
22.092843
134
c
HDN
HDN-master/toolkit/utils/src/buffer.h
#ifndef __STRING_BUFFER_H #define __STRING_BUFFER_H // Enable MinGW secure API for _snprintf_s #define MINGW_HAS_SECURE_API 1 #ifdef _MSC_VER #define __INLINE __inline #else #define __INLINE inline #endif #include <string.h> #include <stdlib.h> #include <stdarg.h> typedef struct string_buffer { char* buffer; int...
4,551
22.832461
101
h
HDN
HDN-master/training_dataset/coco14/pycocotools/common/maskApi.c
/************************************************************************** * Microsoft COCO Toolbox. version 2.0 * Data, paper, and tutorials available at: http://mscoco.org/ * Code written by Piotr Dollar and Tsung-Yi Lin, 2015. * Licensed under the Simplified BSD License [see coco/license.txt] ****************...
8,249
34.714286
75
c
HDN
HDN-master/training_dataset/coco14/pycocotools/common/gason.h
// https://github.com/vivkin/gason - pulled January 10, 2016 #pragma once #include <stdint.h> #include <stddef.h> #include <assert.h> enum JsonTag { JSON_NUMBER = 0, JSON_STRING, JSON_ARRAY, JSON_OBJECT, JSON_TRUE, JSON_FALSE, JSON_NULL = 0xF }; struct JsonNode; #define JSON_VALUE_PAYLOA...
3,483
24.430657
104
h