text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: bench/p7-bench-mt.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #include <atomic> #include <chrono> #include <functional> #include <iostream> #include <memory> #include <thread> #include <vector> #include "P7_Trace.h" int main(int argc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "bench/p7-bench-mt.cpp", "license": "mit", "size": 2465}
### File: bench/p7-bench.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #include <chrono> #include <functional> #include <iostream> #include <memory> #include "P7_Trace.h" int main(int, char *[]) { using namespace std::chrono; using clock...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "bench/p7-bench.cpp", "license": "mit", "size": 1738}
### File: bench/plog-bench-mt.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #include <atomic> #include <chrono> #include <iostream> #include <thread> #include <vector> #include "plog/Log.h" using namespace std; int main(int argc, char *argv[]) ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "bench/plog-bench-mt.cpp", "license": "mit", "size": 1429}
### File: bench/plog-bench.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #include <chrono> #include <iostream> #include <memory> #include "plog/Log.h" int main(int, char *[]) { using namespace std::chrono; using clock = steady_clock; ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "bench/plog-bench.cpp", "license": "mit", "size": 837}
### File: bench/spdlog-async.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #include <atomic> #include <chrono> #include <cstdlib> #include <iostream> #include <thread> #include <vector> #include "spdlog/spdlog.h" using namespace std; int main(i...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "bench/spdlog-async.cpp", "license": "mit", "size": 2004}
### File: bench/spdlog-bench-mt.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #include <atomic> #include <chrono> #include <cstdlib> #include <iostream> #include <thread> #include <vector> #include "spdlog/spdlog.h" using namespace std; int mai...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "bench/spdlog-bench-mt.cpp", "license": "mit", "size": 1609}
### File: bench/spdlog-bench.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #include <chrono> #include <iostream> #include "spdlog/spdlog.h" int main(int, char *[]) { using namespace std::chrono; using clock = steady_clock; int howma...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "bench/spdlog-bench.cpp", "license": "mit", "size": 968}
### File: bench/spdlog-null-async.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // // // bench.cpp : spdlog benchmarks // #include "spdlog/async_logger.h" #include "spdlog/sinks/null_sink.h" #include "spdlog/spdlog.h" #include "utils.h" #include <ato...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "bench/spdlog-null-async.cpp", "license": "mit", "size": 2857}
### File: bench/utils.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include <iomanip> #include <locale> #include <sstream> namespace utils { template<typename T> inline std::string format(const T &value) { static std::locale loc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "bench/utils.h", "license": "mit", "size": 625}
### File: cmake/Config.cmake.in # *************************************************************************/ # * Copyright (c) 2015 Ruslan Baratov. */ # * */ # * Permission is hereby granted, free of charge, to a...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/spdlog", "path": "cmake/Config.cmake.in", "license": "mit", "size": 1784}
### File: example/CMakeLists.txt # *************************************************************************/ # * Copyright (c) 2015 Ruslan Baratov. */ # * */ # * Permission is hereby granted, free of charge, to any...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/spdlog", "path": "example/CMakeLists.txt", "license": "mit", "size": 2428}
### File: example/Makefile CXX ?= g++ CXXFLAGS = CXX_FLAGS = -Wall -Wshadow -Wextra -pedantic -std=c++11 -pthread -I../include CXX_RELEASE_FLAGS = -O3 -march=native CXX_DEBUG_FLAGS= -g all: example bench debug: example-debug bench-debug example: example.cpp $(CXX) example.cpp -o example $(CXX_FLAGS) $(CXX_RELEASE_F...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/spdlog", "path": "example/Makefile", "license": "mit", "size": 731}
### File: example/bench.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // // // bench.cpp : spdlog benchmarks // #include "spdlog/async_logger.h" #include "spdlog/sinks/file_sinks.h" #include "spdlog/sinks/null_sink.h" #include "spdlog/spdlog.h" #incl...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "example/bench.cpp", "license": "mit", "size": 4478}
### File: example/example.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // // // spdlog usage example // // #define SPDLOG_TRACE_ON #define SPDLOG_DEBUG_ON #include "spdlog/spdlog.h" #include <iostream> #include <memory> void async_example(); void...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "example/example.cpp", "license": "mit", "size": 5308}
### File: example/jni/Android.mk # Setup a project LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := example LOCAL_SRC_FILES := example.cpp LOCAL_CPPFLAGS += -Wall -Wshadow -Wextra -pedantic -std=c++11 -fPIE -pie LOCAL_LDFLAGS += -fPIE -pie # Add exception support and set path for spdlog's headers L...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/spdlog", "path": "example/jni/Android.mk", "license": "mit", "size": 410}
### File: example/jni/Application.mk # Exceptions are used in spdlog. Link to an exception-ready C++ runtime. APP_STL = gnustl_static
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/spdlog", "path": "example/jni/Application.mk", "license": "mit", "size": 97}
### File: example/jni/example.cpp // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // // // spdlog usage example // // #define SPDLOG_TRACE_ON #define SPDLOG_DEBUG_ON #include "spdlog/spdlog.h" #include <iostream> #include <memory> void async_example(); ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "example/jni/example.cpp", "license": "mit", "size": 5250}
### File: example/multisink.cpp #include "spdlog/spdlog.h" #include <iostream> #include <memory> namespace spd = spdlog; int main(int, char *[]) { bool enable_debug = true; try { // This other example use a single logger with multiple sinks. // This means that the same log_msg is forwarded...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "example/multisink.cpp", "license": "mit", "size": 1921}
### File: example/utils.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include <iomanip> #include <locale> #include <sstream> namespace utils { template<typename T> inline std::string format(const T &value) { static std::locale l...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "example/utils.h", "license": "mit", "size": 625}
### File: format.sh #!/bin/bash echo -n "Running dos2unix " find . -name "*\.h" -o -name "*\.cpp"|xargs -I {} sh -c "dos2unix '{}' 2>/dev/null; echo -n '.'" echo echo -n "Running clang-format " find . -name "*\.h" -o -name "*\.cpp"|xargs -I {} sh -c "clang-format -i {}; echo -n '.'" echo
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/spdlog", "path": "format.sh", "license": "mit", "size": 275}
### File: include/spdlog/async_logger.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once // Very fast asynchronous logger (millions of logs per second on an average desktop) // Uses pre allocated lockfree queue for maximum throughput even u...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/async_logger.h", "license": "mit", "size": 2894}
### File: include/spdlog/common.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #define SPDLOG_VERSION "0.17.0" #include "tweakme.h" #include <atomic> #include <chrono> #include <exception> #include <functional> #include <initializer_l...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/common.h", "license": "mit", "size": 5698}
### File: include/spdlog/contrib/sinks/step_file_sink.h #pragma once #include "../../details/file_helper.h" #include "../../details/null_mutex.h" #include "../../fmt/fmt.h" #include "../../sinks/base_sink.h" #include <algorithm> #include <cerrno> #include <chrono> #include <cstdio> #include <ctime> #include <mutex> #...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/contrib/sinks/step_file_sink.h", "license": "mit", "size": 7285}
### File: include/spdlog/details/async_log_helper.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // // async log helper : // Process logs asynchronously using a back thread. // // If the internal queue of log messages reaches its max size, // then the c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/async_log_helper.h", "license": "mit", "size": 9246}
### File: include/spdlog/details/async_logger_impl.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once // Async Logger implementation // Use an async_sink (queue per logger) to perform the logging in a worker thread #include "../async_logge...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/async_logger_impl.h", "license": "mit", "size": 3242}
### File: include/spdlog/details/file_helper.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once // Helper class for file sink // When failing to open a file, retry several times(5) with small delay between the tries(10 ms) // Throw spdlog_e...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/file_helper.h", "license": "mit", "size": 3881}
### File: include/spdlog/details/log_msg.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../common.h" #include "../details/os.h" #include <string> #include <utility> namespace spdlog { namespace details { struct log_msg { ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/log_msg.h", "license": "mit", "size": 1066}
### File: include/spdlog/details/logger_impl.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../logger.h" #include <memory> #include <string> // create logger with given name, sinks and the default pattern formatter // all ot...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/logger_impl.h", "license": "mit", "size": 8333}
### File: include/spdlog/details/mpmc_blocking_q.h #pragma once // // Copyright(c) 2018 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // // async log helper : // multi producer-multi consumer blocking queue // enqueue(..) - will block until room found to put the new message //...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/mpmc_blocking_q.h", "license": "mit", "size": 2233}
### File: include/spdlog/details/null_mutex.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include <atomic> // null, no cost dummy "mutex" and dummy "atomic" int namespace spdlog { namespace details { struct null_mutex { void lock...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/null_mutex.h", "license": "mit", "size": 683}
### File: include/spdlog/details/os.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../common.h" #include <algorithm> #include <chrono> #include <cstdio> #include <cstdlib> #include <cstring> #include <ctime> #include <function...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/os.h", "license": "mit", "size": 10996}
### File: include/spdlog/details/pattern_formatter_impl.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../details/log_msg.h" #include "../details/os.h" #include "../fmt/fmt.h" #include "../formatter.h" #include <array> #inclu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/pattern_formatter_impl.h", "license": "mit", "size": 19567}
### File: include/spdlog/details/registry.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once // Loggers registy of unique name->logger pointer // An attempt to create a logger with an already existing name will be ignored // If user request...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/registry.h", "license": "mit", "size": 8082}
### File: include/spdlog/details/spdlog_impl.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once // // Global registry functions // #include "../details/registry.h" #include "../sinks/file_sinks.h" #include "../sinks/stdout_sinks.h" #include...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/details/spdlog_impl.h", "license": "mit", "size": 10341}
### File: include/spdlog/fmt/bundled/format.cc /* Formatting library for C++ Copyright (c) 2012 - 2016, Victor Zverovich All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of sour...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/bundled/format.cc", "license": "mit", "size": 15958}
### File: include/spdlog/fmt/bundled/format.h /* Formatting library for C++ Copyright (c) 2012 - 2016, Victor Zverovich All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of sourc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/bundled/format.h", "license": "mit", "size": 153344}
### File: include/spdlog/fmt/bundled/ostream.cc /* Formatting library for C++ - std::ostream support Copyright (c) 2012 - 2016, Victor Zverovich All rights reserved. For the license information refer to format.h. */ #include "ostream.h" namespace fmt { namespace internal { FMT_FUNC void write(std::ostream &os...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/bundled/ostream.cc", "license": "mit", "size": 893}
### File: include/spdlog/fmt/bundled/ostream.h /* Formatting library for C++ - std::ostream support Copyright (c) 2012 - 2016, Victor Zverovich All rights reserved. For the license information refer to format.h. */ #ifndef FMT_OSTREAM_H_ #define FMT_OSTREAM_H_ #include "format.h" #include <ostream> namespace ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/bundled/ostream.h", "license": "mit", "size": 3078}
### File: include/spdlog/fmt/bundled/posix.cc /* A C++ interface to POSIX functions. Copyright (c) 2012 - 2016, Victor Zverovich All rights reserved. For the license information refer to format.h. */ // Disable bogus MSVC warnings. #ifndef _CRT_SECURE_NO_WARNINGS # define _CRT_SECURE_NO_WARNINGS #endif #includ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/bundled/posix.cc", "license": "mit", "size": 6818}
### File: include/spdlog/fmt/bundled/posix.h /* A C++ interface to POSIX functions. Copyright (c) 2012 - 2016, Victor Zverovich All rights reserved. For the license information refer to format.h. */ #ifndef FMT_POSIX_H_ #define FMT_POSIX_H_ #if defined(__MINGW32__) || defined(__CYGWIN__) // Workaround MinGW bu...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/bundled/posix.h", "license": "mit", "size": 10599}
### File: include/spdlog/fmt/bundled/printf.cc /* Formatting library for C++ Copyright (c) 2012 - 2016, Victor Zverovich All rights reserved. For the license information refer to format.h. */ #include "format.h" #include "printf.h" namespace fmt { template <typename Char> void printf(BasicWriter<Char> &w, Bas...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/bundled/printf.cc", "license": "mit", "size": 752}
### File: include/spdlog/fmt/bundled/printf.h /* Formatting library for C++ 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::fill_n #include <limits> // std::numeric_lim...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/bundled/printf.h", "license": "mit", "size": 18852}
### File: include/spdlog/fmt/bundled/time.h /* Formatting library for C++ - time formatting Copyright (c) 2012 - 2016, Victor Zverovich All rights reserved. For the license information refer to format.h. */ #ifndef FMT_TIME_H_ #define FMT_TIME_H_ #include "format.h" #include <ctime> #ifdef _MSC_VER #pragma wa...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/bundled/time.h", "license": "mit", "size": 4378}
### File: include/spdlog/fmt/fmt.h // // Copyright(c) 2016 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...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/fmt.h", "license": "mit", "size": 613}
### File: include/spdlog/fmt/ostr.h // // Copyright(c) 2016 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once // // include bundled or external copy of fmtlib's ostream support // #if !defined(SPDLOG_FMT_EXTERNAL) #ifndef FMT_HEADER_ONLY #define FMT_HEADER_ONLY #end...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/fmt/ostr.h", "license": "mit", "size": 371}
### File: include/spdlog/formatter.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "details/log_msg.h" #include <memory> #include <string> #include <vector> namespace spdlog { namespace details { class flag_formatter; } class...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/formatter.h", "license": "mit", "size": 1205}
### File: include/spdlog/logger.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once // Thread safe logger (except for set_pattern(..), set_formatter(..) and set_error_handler()) // Has name, log level, vector of std::shared sink pointers and...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/logger.h", "license": "mit", "size": 4729}
### File: include/spdlog/sinks/android_sink.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #if defined(__ANDROID__) #include "../details/os.h" #include "sink.h" #include <android/log.h> #include <chrono> #include <mutex> #include <str...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/android_sink.h", "license": "mit", "size": 2277}
### File: include/spdlog/sinks/ansicolor_sink.h // // Copyright(c) 2017 spdlog authors. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../common.h" #include "../details/os.h" #include "base_sink.h" #include <string> #include <unordered_map> namespace spdlog { nam...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/ansicolor_sink.h", "license": "mit", "size": 4415}
### File: include/spdlog/sinks/base_sink.h // // Copyright(c) 2015 Gabi Melman. // 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 only override the _sink_it method. // all locking is ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/base_sink.h", "license": "mit", "size": 1112}
### File: include/spdlog/sinks/dist_sink.h // // Copyright (c) 2015 David Schury, Gabi Melman // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../details/log_msg.h" #include "../details/null_mutex.h" #include "base_sink.h" #include "sink.h" #include <algorithm> #inc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/dist_sink.h", "license": "mit", "size": 1714}
### File: include/spdlog/sinks/file_sinks.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../details/file_helper.h" #include "../details/null_mutex.h" #include "../fmt/fmt.h" #include "base_sink.h" #include <algorithm> #includ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/file_sinks.h", "license": "mit", "size": 7782}
### File: 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 "../details/null_mutex.h" #include "base_sink.h" #include <winbase.h> #include <mutex> #include <string> name...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/msvc_sink.h", "license": "mit", "size": 782}
### File: include/spdlog/sinks/null_sink.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../details/null_mutex.h" #include "base_sink.h" #include <mutex> namespace spdlog { namespace sinks { template<class Mutex> class null_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/null_sink.h", "license": "mit", "size": 562}
### File: include/spdlog/sinks/ostream_sink.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../details/null_mutex.h" #include "base_sink.h" #include <mutex> #include <ostream> namespace spdlog { namespace sinks { template<cla...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/ostream_sink.h", "license": "mit", "size": 1068}
### File: include/spdlog/sinks/sink.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../details/log_msg.h" namespace spdlog { namespace sinks { class sink { public: virtual ~sink() = default; virtual void log(const det...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/sink.h", "license": "mit", "size": 936}
### File: include/spdlog/sinks/stdout_sinks.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../details/null_mutex.h" #include "base_sink.h" #include <cstdio> #include <memory> #include <mutex> namespace spdlog { namespace sin...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/stdout_sinks.h", "license": "mit", "size": 1689}
### File: include/spdlog/sinks/syslog_sink.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../common.h" #ifdef SPDLOG_ENABLE_SYSLOG #include "../details/log_msg.h" #include "sink.h" #include <array> #include <string> #includ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/syslog_sink.h", "license": "mit", "size": 2059}
### File: include/spdlog/sinks/wincolor_sink.h // // Copyright(c) 2016 spdlog // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #include "../common.h" #include "../details/null_mutex.h" #include "base_sink.h" #include <mutex> #include <string> #include <unordered_map> #include...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/wincolor_sink.h", "license": "mit", "size": 4369}
### File: include/spdlog/sinks/windebug_sink.h // // Copyright(c) 2017 Alexander Dalshov. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once #if defined(_WIN32) #include "msvc_sink.h" namespace spdlog { namespace sinks { /* * Windows debug sink (logging using OutputDebugStri...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/sinks/windebug_sink.h", "license": "mit", "size": 498}
### File: include/spdlog/spdlog.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // // spdlog main header file. // see example.cpp for usage example #pragma once #include "common.h" #include "logger.h" #include <chrono> #include <functional> #include <m...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/spdlog.h", "license": "mit", "size": 8155}
### File: include/spdlog/tweakme.h // // Copyright(c) 2015 Gabi Melman. // Distributed under the MIT License (http://opensource.org/licenses/MIT) // #pragma once /////////////////////////////////////////////////////////////////////////////// // // Edit this file to squeeze more performance, and to customize supported...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/spdlog", "path": "include/spdlog/tweakme.h", "license": "mit", "size": 6732}
### File: tests/CMakeLists.txt project(spdlog-utests CXX) enable_testing() find_package(Threads REQUIRED) set(SPDLOG_UTESTS_SOURCES errors.cpp file_helper.cpp file_log.cpp test_misc.cpp test_pattern_formatter.cpp test_async.cpp includes.h registry.cpp test_macros.cpp utils.cpp ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/spdlog", "path": "tests/CMakeLists.txt", "license": "mit", "size": 602}
### File: tests/Makefile CXX ?= g++ ifeq ($(STYLE),printf) $(info *** PRINTF STYLE ***) CXXFLAGS = -DSPDLOG_FMT_PRINTF -Wall -pedantic -std=c++11 -pthread -O3 -I../include else $(info *** FORMAT STYLE ***) CXXFLAGS = -Wall -pedantic -std=c++11 -pthread -O3 -I../include endif LDPFALGS = -pthr...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/spdlog", "path": "tests/Makefile", "license": "mit", "size": 608}
### File: tests/catch.hpp /* * CATCH v1.1 build 1 (master branch) * Generated: 2015-03-27 18:00:16.346230 * ---------------------------------------------------------- * This file has been merged from multiple headers. Please don't edit it directly * Copyright (c) 2012 Two Blue Cubes Ltd. All rights reser...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/catch.hpp", "license": "mit", "size": 345489}
### File: tests/errors.cpp /* * This content is released under the MIT License as specified in https://raw.githubusercontent.com/gabime/spdlog/master/LICENSE */ #include "includes.h" #include <iostream> class failing_sink : public spdlog::sinks::sink { void log(const spdlog::details::log_msg &) override { ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/errors.cpp", "license": "mit", "size": 4145}
### File: tests/file_helper.cpp /* * This content is released under the MIT License as specified in https://raw.githubusercontent.com/gabime/spdlog/master/LICENSE */ #include "includes.h" using spdlog::details::file_helper; using spdlog::details::log_msg; static const std::string target_filename = "logs/file_helper...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/file_helper.cpp", "license": "mit", "size": 3671}
### File: tests/file_log.cpp /* * This content is released under the MIT License as specified in https://raw.githubusercontent.com/gabime/spdlog/master/LICENSE */ #include "includes.h" TEST_CASE("simple_file_logger", "[simple_logger]]") { prepare_logdir(); std::string filename = "logs/simple_log"; auto ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/file_log.cpp", "license": "mit", "size": 7568}
### File: tests/includes.h #pragma once #include "catch.hpp" #include "utils.h" #include <chrono> #include <cstdio> #include <exception> #include <fstream> #include <ostream> #include <string> #define SPDLOG_TRACE_ON #define SPDLOG_DEBUG_ON #include "../include/spdlog/sinks/null_sink.h" #include "../include/spdlog/s...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/includes.h", "license": "mit", "size": 352}
### File: tests/install_libcxx.sh #!/bin/bash # # Install libc++ under travis svn --quiet co http://llvm.org/svn/llvm-project/libcxx/trunk libcxx mkdir libcxx/build (cd libcxx/build && cmake .. -DLIBCXX_CXX_ABI=libstdc++ -DLIBCXX_CXX_ABI_INCLUDE_PATHS="/usr/include/c++/4.6;/usr/include/c++/4.6/x86_64-linux-gnu")...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/spdlog", "path": "tests/install_libcxx.sh", "license": "mit", "size": 541}
### File: tests/main.cpp #define CATCH_CONFIG_MAIN #include "catch.hpp"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/main.cpp", "license": "mit", "size": 46}
### File: tests/registry.cpp #include "includes.h" static const char *tested_logger_name = "null_logger"; static const char *tested_logger_name2 = "null_logger2"; TEST_CASE("register_drop", "[registry]") { spdlog::drop_all(); spdlog::create<spdlog::sinks::null_sink_mt>(tested_logger_name); REQUIRE(spdlog:...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/registry.cpp", "license": "mit", "size": 2552}
### File: tests/test_async.cpp #include "includes.h" #include "test_sink.h" template<class T> std::string log_info(const T &what, spdlog::level::level_enum logger_level = spdlog::level::info) { std::ostringstream oss; auto oss_sink = std::make_shared<spdlog::sinks::ostream_sink_mt>(oss); spdlog::logger o...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/test_async.cpp", "license": "mit", "size": 4085}
### File: tests/test_macros.cpp /* * This content is released under the MIT License as specified in https://raw.githubusercontent.com/gabime/spdlog/master/LICENSE */ #include "includes.h" TEST_CASE("debug and trace w/o format string", "[macros]]") { prepare_logdir(); std::string filename = "logs/simple_log"...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/test_macros.cpp", "license": "mit", "size": 1500}
### File: tests/test_misc.cpp #include "includes.h" template<class T> std::string log_info(const T &what, spdlog::level::level_enum logger_level = spdlog::level::info) { std::ostringstream oss; auto oss_sink = std::make_shared<spdlog::sinks::ostream_sink_mt>(oss); spdlog::logger oss_logger("oss", oss_sin...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/test_misc.cpp", "license": "mit", "size": 3197}
### File: tests/test_pattern_formatter.cpp #include "includes.h" // log to str and return it static std::string log_to_str(const std::string &msg, const std::shared_ptr<spdlog::formatter> &formatter = nullptr) { std::ostringstream oss; auto oss_sink = std::make_shared<spdlog::sinks::ostream_sink_mt>(oss); ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/test_pattern_formatter.cpp", "license": "mit", "size": 4490}
### File: 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 <mutex> namespace spdlog { namespace sinks { template<class Mutex> class tes...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/test_sink.h", "license": "mit", "size": 880}
### File: tests/utils.cpp #include "includes.h" void prepare_logdir() { spdlog::drop_all(); #ifdef _WIN32 system("if not exist logs mkdir logs"); system("del /F /Q logs\\*"); #else auto rv = system("mkdir -p logs"); (void)rv; rv = system("rm -f logs/*"); (void)rv; #endif } std::string file...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/utils.cpp", "license": "mit", "size": 1334}
### File: tests/utils.h #pragma once #include <cstddef> #include <string> std::size_t count_lines(const std::string &filename); void prepare_logdir(); std::string file_contents(const std::string &filename); std::size_t count_lines(const std::string &filename); std::size_t get_filesize(const std::string &filename)...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/spdlog", "path": "tests/utils.h", "license": "mit", "size": 367}
### File: sros2/setup.py import glob import os from setuptools import find_packages from setuptools import setup def package_files(directory): paths = [] for (path, directories, filenames) in os.walk(directory): for filename in filenames: paths.append(os.path.join('..', path, filename)) ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/setup.py", "license": "apache-2.0", "size": 2656}
### File: sros2/sros2/__init__.py # Copyright 2019 Apex.AI, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appl...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/__init__.py", "license": "apache-2.0", "size": 1129}
### File: sros2/sros2/_utilities.py # Copyright 2020 Canonical Ltd # Copyright 2016-2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://w...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/_utilities.py", "license": "apache-2.0", "size": 6216}
### File: sros2/sros2/api/_artifact_generation.py # Copyright 2016-2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lic...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/api/_artifact_generation.py", "license": "apache-2.0", "size": 1966}
### File: sros2/sros2/api/_policy.py # Copyright 2016-2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/api/_policy.py", "license": "apache-2.0", "size": 1250}
### File: sros2/sros2/command/security.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/command/security.py", "license": "apache-2.0", "size": 1367}
### File: sros2/sros2/errors.py # Copyright 2020 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/errors.py", "license": "apache-2.0", "size": 2602}
### File: sros2/sros2/keystore/__init__.py # Copyright 2020 Canonical Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless require...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/keystore/__init__.py", "license": "apache-2.0", "size": 843}
### File: sros2/sros2/keystore/_enclave.py # Copyright 2019-2020 Canonical Ltd # Copyright 2016-2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/keystore/_enclave.py", "license": "apache-2.0", "size": 5786}
### File: sros2/sros2/keystore/_keystore.py # Copyright 2020 Canonical Ltd # Copyright 2016-2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/keystore/_keystore.py", "license": "apache-2.0", "size": 5314}
### File: sros2/sros2/keystore/_permission.py # Copyright 2016-2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/keystore/_permission.py", "license": "apache-2.0", "size": 3658}
### File: sros2/sros2/policy/__init__.py # Copyright 2018-2019 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LIC...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/policy/__init__.py", "license": "apache-2.0", "size": 3136}
### File: sros2/sros2/policy/defaults/__init__.py # Copyright 2020 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/policy/defaults/__init__.py", "license": "apache-2.0", "size": 1063}
### File: sros2/sros2/policy/defaults/dds/__init__.py # Copyright 2020 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lice...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/policy/defaults/dds/__init__.py", "license": "apache-2.0", "size": 1063}
### File: sros2/sros2/policy/schemas/__init__.py # Copyright 2020 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/policy/schemas/__init__.py", "license": "apache-2.0", "size": 1063}
### File: sros2/sros2/policy/schemas/dds/__init__.py # Copyright 2020 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licen...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/policy/schemas/dds/__init__.py", "license": "apache-2.0", "size": 1063}
### File: sros2/sros2/policy/templates/__init__.py # Copyright 2020 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/license...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/policy/templates/__init__.py", "license": "apache-2.0", "size": 1063}
### File: sros2/sros2/policy/templates/dds/__init__.py # Copyright 2020 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/lic...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/policy/templates/dds/__init__.py", "license": "apache-2.0", "size": 1063}
### File: sros2/sros2/policy/templates/dds/permissions.xsl <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ext="http://exslt.org/common" exclude-result-prefixes="ext"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:strip-space ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "XSLT", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/policy/templates/dds/permissions.xsl", "license": "apache-2.0", "size": 10820}
### File: sros2/sros2/policy/templates/policy.xsl <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ext="http://exslt.org/common" exclude-result-prefixes="ext"> <xsl:output omit-xml-declaration="yes" indent="yes"/> <xsl:strip-space elements=...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "XSLT", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/policy/templates/policy.xsl", "license": "apache-2.0", "size": 1090}
### File: sros2/sros2/verb/__init__.py # Copyright 2017 Open Source Robotics Foundation, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/sros2", "path": "sros2/sros2/verb/__init__.py", "license": "apache-2.0", "size": 1333}