text stringlengths 24 1.04M | metadata stringlengths 233 497 |
|---|---|
### File: exercises/2/structured.binding.cpp
//
// structured.binding.cpp
//
// exercise solution - chapter 2
// modern cpp tutorial
//
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial
//
#include <iostream>
#include <map>
#include <string>
#include <functional>
template <typen... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/2/structured.binding.cpp", "license": "mit", "size": 729} |
### File: exercises/6/Makefile
#
# Makefile
# web_server
#
# created by changkun at changkun.de/modern-cpp
#
CXX = g++
EXEC_HTTP = server.http
EXEC_HTTPS = server.https
SOURCE_HTTP = main.http.cpp
SOURCE_HTTPS = main.https.cpp
OBJECTS_HTTP = main.http.o
OBJECTS_HTTPS = main.https.o
LDFLAGS_COMMON = -std=c++2a -O3 ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/6/Makefile", "license": "mit", "size": 880} |
### File: exercises/6/handler.hpp
//
// handler.hpp
// web_server
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial/
//
#include "server.base.hpp"
#include <fstream>
using namespace std;
using namespace Web;
template<typename SERVER_TYPE>
void start_server(SERVER_TYPE &server) ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/6/handler.hpp", "license": "mit", "size": 3516} |
### File: exercises/6/main.http.cpp
//
// main_http.cpp
// web_server
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial/
//
#include <iostream>
#include "server.http.hpp"
#include "handler.hpp"
using namespace Web;
int main() {
// HTTP server runs in port 12345 HTTP, enable... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/6/main.http.cpp", "license": "mit", "size": 450} |
### File: exercises/6/main.https.cpp
//
// main_https.cpp
// web_server
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial/
//
#include <iostream>
#include "server.https.hpp"
#include "handler.hpp"
using namespace Web;
int main() {
// HTTPS server runs in port 12345, enable 4 ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/6/main.https.cpp", "license": "mit", "size": 513} |
### File: exercises/6/server.base.hpp
//
// server_base.hpp
// web_server
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial/
//
#ifndef SERVER_BASE_HPP
#define SERVER_BASE_HPP
#include <boost/asio.hpp>
#include <regex>
#include <unordered_map>
#include <thread>
namespace Web {... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/6/server.base.hpp", "license": "mit", "size": 8120} |
### File: exercises/6/server.http.hpp
//
// server_http.hpp
// web_server
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial/
//
#ifndef SERVER_HTTP_HPP
#define SERVER_HTTP_HPP
#include "server.base.hpp"
namespace Web {
typedef boost::asio::ip::tcp::socket HTTP;
template... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/6/server.http.hpp", "license": "mit", "size": 1297} |
### File: exercises/6/server.https.hpp
//
// server_https.hpp
// web_server
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial/
//
#ifndef SERVER_HTTPS_HPP
#define SERVER_HTTPS_HPP
#include "server.http.hpp"
#include <boost/asio/ssl.hpp>
namespace Web {
// define HTTPS type... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/6/server.https.hpp", "license": "mit", "size": 2428} |
### File: exercises/6/www/index.html
<html>
<head>
<title>Web Server Test</title>
</head>
<body>
Hello world in index.html.
</body>
</html>
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/6/www/index.html", "license": "mit", "size": 135} |
### File: exercises/6/www/test.html
<html>
<head>
<title>Web Server Test</title>
</head>
<body>
Hello world in test.html.
</body>
</html>
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/6/www/test.html", "license": "mit", "size": 134} |
### File: exercises/7/7.1/Makefile
#
# Makefile
#
# exercise solution 7.1 - chapter 7
# modern cpp tutorial
#
# created by changkun at changkun.de/modern-cpp
#
all: $(patsubst %.cpp, %.out, $(wildcard *.cpp))
%.out: %.cpp Makefile
clang++ $< -o $@ -std=c++2a -pedantic
clean:
rm *.out | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/7/7.1/Makefile", "license": "mit", "size": 254} |
### File: exercises/7/7.1/main.cpp
//
// main.cpp
//
// exercise solution - chapter 7
// modern cpp tutorial
//
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial/
//
#include <iostream> // std::cout, std::endl
#include <vector> // std::vector
#include <string> // std::string... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/7/7.1/main.cpp", "license": "mit", "size": 1421} |
### File: exercises/7/7.1/thread_pool.hpp
//
// thread_pool.hpp
//
// exercise solution - chapter 7
// modern cpp tutorial
//
// created by changkun at changkun.de
// https://github.com/changkun/modern-cpp-tutorial/
//
#ifndef THREAD_POOL_H
#define THREAD_POOL_H
#include <vector> // std::vector
#include... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/7/7.1/thread_pool.hpp", "license": "mit", "size": 4496} |
### File: exercises/7/7.2.mutex.cpp
#include <atomic>
#include <thread>
#include <iostream>
class mutex {
std::atomic<bool> flag{false};
public:
void lock()
{
while (flag.exchange(true, std::memory_order_relaxed));
std::atomic_thread_fence(std::memory_order_acquire);
}
void unlock... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/7/7.2.mutex.cpp", "license": "mit", "size": 734} |
### File: exercises/7/Makefile
#
# Makefile
#
# exercise solution - chapter 7
# modern cpp tutorial
#
# created by changkun at changkun.de/modern-cpp
#
all: $(patsubst %.cpp, %.out, $(wildcard *.cpp))
%.out: %.cpp Makefile
clang++ $< -o $@ -std=c++2a -pedantic
clean:
rm *.out | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "exercises/7/Makefile", "license": "mit", "size": 250} |
### File: pdf/en-us/aggregator.py
# !/usr/bin/env python3
# author: changkun<hi[at]changkun.de>
import os
chapters = ['00-preface.md', '01-intro.md', '02-usability.md', '03-runtime.md', '04-containers.md', '05-pointers.md', '06-regex.md', '07-thread.md', '08-filesystem.md', '09-others.md', '10-cpp20.md', 'appendix1.... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "pdf/en-us/aggregator.py", "license": "mit", "size": 921} |
### File: pdf/en-us/meta/template.tex
\documentclass[a4paper, 10pt]{article}
\usepackage{geometry}
\geometry{
top=1in,
inner=1in,
outer=1in,
bottom=1in,
headheight=3ex,
headsep=2ex
}
\usepackage{tabu}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{booktabs}
\usepackage{amssymb,amsmath}
\usepackag... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "TeX", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "pdf/en-us/meta/template.tex", "license": "mit", "size": 5125} |
### File: pdf/zh-cn/aggregator.py
# !/usr/bin/env python3
# author: changkun<hi[at]changkun.de>
import os, io
chapters = ['00-preface.md', '01-intro.md', '02-usability.md', '03-runtime.md', '04-containers.md', '05-pointers.md', '06-regex.md', '07-thread.md', '08-filesystem.md', '09-others.md', '10-cpp20.md', 'append... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "pdf/zh-cn/aggregator.py", "license": "mit", "size": 951} |
### File: pdf/zh-cn/meta/template.tex
\documentclass[a4paper, 10pt]{ctexart}
\usepackage{geometry}
\geometry{
top=1in,
inner=1in,
outer=1in,
bottom=1in,
headheight=3ex,
headsep=2ex
}
\usepackage{tabu}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{booktabs}
\usepackage{amssymb,amsmath}
\usepackag... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "TeX", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "pdf/zh-cn/meta/template.tex", "license": "mit", "size": 5620} |
### File: website/Makefile
all: clean
node install.js
python3 filter.py
cp ../assets/cover-2nd.png ./src/modern-cpp/assets/cover-2nd.png
cp ../assets/cover-2nd-logo.png ./src/modern-cpp/assets/cover-2nd-logo.png
cp ../assets/cover-2nd-en.png ./src/modern-cpp/assets/cover-2nd-en.png
cp ../assets/cover-2nd-en-logo.... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/Makefile", "license": "mit", "size": 1222} |
### File: website/filter.py
# !/usr/bin/env python3
# author: changkun<hi[at]changkun.de>
import os
import re
source_dir = [
'../book/zh-cn/',
'../book/en-us/'
]
destination_dir = [
'./src/modern-cpp/zh-cn/',
'./src/modern-cpp/en-us/'
]
chapters = ['00-preface.md', '01-intro.md', '02-usability.md', ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/filter.py", "license": "mit", "size": 1213} |
### File: website/install.js
var fs = require('fs')
var execSync = require('child_process').execSync
var deps = require('./package.json').dependencies
var depFolders = Object.keys(deps)
for (var depFolder in deps) {
if (!fs.existsSync('./node_modules/' + depFolder)) {
console.log('Dependency "' + depFolder + '" ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/install.js", "license": "mit", "size": 440} |
### File: website/themes/moderncpp/source/modern-cpp/css/_animations.styl
.rotating-clockwise
animation: 3s rotating-clockwise linear infinite
i.rotating-clockwise
display: inline-block
animation-duration: 2s
@keyframes rotating-clockwise
from
transform: rotate(0)
to
transform: rotate(360deg)
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Stylus", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/themes/moderncpp/source/modern-cpp/css/_animations.styl", "license": "mit", "size": 240} |
### File: website/themes/moderncpp/source/modern-cpp/css/_common.styl
@import "_settings"
@import "_syntax"
body
font-family: $body-font
font-size: $body-font-size
-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
color: $medium
background-color: white
margin: 0
&.docs
padding-... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Stylus", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/themes/moderncpp/source/modern-cpp/css/_common.styl", "license": "mit", "size": 3488} |
### File: website/themes/moderncpp/source/modern-cpp/css/_header.styl
$header-height = 40px
#header
background-color: $theme
height: $header-height
padding: $heading-padding-vertical 60px
position: relative
z-index: 2
body.docs
#header
position: fixed
width: 100%
top: 0
left: 0
right: ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Stylus", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/themes/moderncpp/source/modern-cpp/css/_header.styl", "license": "mit", "size": 2822} |
### File: website/themes/moderncpp/source/modern-cpp/css/_settings.styl
// font faces
$body-font = "Source Sans Pro", "Helvetica Neue", Arial, sans-serif
$logo-font = "Dosis", "Source Sans Pro", "Helvetica Neue", Arial, sans-serif
$code-font = "Roboto Mono", Monaco, courier, monospace
// font sizes
$body-font-size = 1... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Stylus", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/themes/moderncpp/source/modern-cpp/css/_settings.styl", "license": "mit", "size": 871} |
### File: website/themes/moderncpp/source/modern-cpp/css/_sidebar.styl
@import "_settings"
.sidebar
position: fixed
z-index: 10
top: $header-height
left: 0
bottom: 0
overflow-x: hidden
overflow-y: auto
-webkit-overflow-scrolling: touch
-ms-overflow-style: none
h2
margin-top: .2em
ul
list-... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Stylus", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/themes/moderncpp/source/modern-cpp/css/_sidebar.styl", "license": "mit", "size": 1902} |
### File: website/themes/moderncpp/source/modern-cpp/css/_syntax.styl
.gutter pre
color: #999
pre
color: #525252
.function .keyword,
.constant
color: #0092db
.keyword,
.attribute
color: #e96900
.number,
.literal
color: #AE81FF
.tag,
.tag .title,
.change,
.winutils,
.flow,
.lisp ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Stylus", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/themes/moderncpp/source/modern-cpp/css/_syntax.styl", "license": "mit", "size": 1215} |
### File: website/themes/moderncpp/source/modern-cpp/css/index.styl
@import "_common"
@import "_header"
@import "_sidebar"
$width = 900px
body
background-color: #fff
margin-bottom: 200px
#logo
span
font-size: 1.2em
img
display: none
.sidebar
display: none
#mobile-bar
&.top
background-color: ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Stylus", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/themes/moderncpp/source/modern-cpp/css/index.styl", "license": "mit", "size": 2623} |
### File: website/themes/moderncpp/source/modern-cpp/css/page.styl
@import "_common"
@import "_animations"
@import "_header"
@import "_sidebar"
#header
box-shadow: 0 0 1px rgba(0,0,0,.25)
transition: background-color .3s ease-in-out
.image-caption
display: table;
margin: 0 auto;
color: #7f8c8d;
margin-top... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Stylus", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/themes/moderncpp/source/modern-cpp/css/page.styl", "license": "mit", "size": 4893} |
### File: website/themes/moderncpp/source/modern-cpp/js/common.js
(function () {
initMobileMenu()
if (PAGE_TYPE) {
initVersionSelect()
initSubHeaders()
}
/**
* Mobile burger menu button and gesture for toggling sidebar
*/
function initMobileMenu () {
var mobileBa... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "JavaScript", "repo_name": "minhanghuang/modern-cpp-tutorial", "path": "website/themes/moderncpp/source/modern-cpp/js/common.js", "license": "mit", "size": 8340} |
### File: CMakeLists.txt
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
###################################################################################################
## These variables are passed to oatpp-module-install.cmake script
## use these variables to configure module installation
set(OATPP_THIS_MODULE_... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/oatpp-swagger", "path": "CMakeLists.txt", "license": "apache-2.0", "size": 4308} |
### File: cmake/module-config.cmake.in
@PACKAGE_INIT@
if(NOT TARGET oatpp::@OATPP_MODULE_NAME@)
include("${CMAKE_CURRENT_LIST_DIR}/@OATPP_MODULE_NAME@Targets.cmake")
endif()
set_and_check(@OATPP_MODULE_NAME@_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include/oatpp-@OATPP_MODULE_VERSION@/@OATPP_MODULE_NAME@/")
set_and_ch... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/oatpp-swagger", "path": "cmake/module-config.cmake.in", "license": "apache-2.0", "size": 540} |
### File: cmake/module-install.cmake
#######################################################################################
## Set module properties
## all oatpp modules should have the same installation procedure
##
## installation tree:
##
## prefix/
## |
## |- include/oatpp-<version>/<module-name>
## - lib/
## ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/oatpp-swagger", "path": "cmake/module-install.cmake", "license": "apache-2.0", "size": 4200} |
### File: cmake/module-utils.cmake
macro(target_link_oatpp target)
if(TARGET oatpp::oatpp) ## OATPP_MODULES_LOCATION == INSTALLED
message("target_link_oatpp(${target}) to installed oatpp lib")
target_link_libraries(${target}
PRIVATE oatpp::oatpp
PRIVATE oatpp::oatp... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/oatpp-swagger", "path": "cmake/module-utils.cmake", "license": "apache-2.0", "size": 698} |
### File: cmake/msvc-runtime.cmake
macro(configure_msvc_runtime)
if(MSVC)
# Set compiler options.
set(variables
CMAKE_C_FLAGS
CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_MINS... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/oatpp-swagger", "path": "cmake/msvc-runtime.cmake", "license": "apache-2.0", "size": 1079} |
### File: res/index.html
<!-- HTML for static distribution bundle build -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Swagger UI</title>
<link rel="stylesheet" type="text/css" href="./swagger-ui.css" >
<link rel="icon" type="image/png" href="./favicon-32x32.png" sizes="32x3... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/oatpp-swagger", "path": "res/index.html", "license": "apache-2.0", "size": 1437} |
### File: res/oauth2-redirect.html
<!doctype html>
<html lang="en-US">
<head>
<title>Swagger UI: OAuth2 Redirect</title>
</head>
<body>
</body>
</html>
<script>
'use strict';
function run () {
var oauth2 = window.opener.swaggerUIRedirectOauth2;
var sentState = oauth2.state;
var redir... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "HTML", "repo_name": "minhanghuang/oatpp-swagger", "path": "res/oauth2-redirect.html", "license": "apache-2.0", "size": 2519} |
### File: src/CMakeLists.txt
add_library(${OATPP_THIS_MODULE_NAME}
oatpp-swagger/AsyncController.hpp
oatpp-swagger/Controller.hpp
oatpp-swagger/Generator.cpp
oatpp-swagger/Generator.hpp
oatpp-swagger/Model.hpp
oatpp-swagger/Resources.cpp
oatpp-swagger/Resources.h... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/CMakeLists.txt", "license": "apache-2.0", "size": 1503} |
### File: src/oatpp-swagger/AsyncController.hpp
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/oatpp-swagger/AsyncController.hpp", "license": "apache-2.0", "size": 5240} |
### File: src/oatpp-swagger/Controller.hpp
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/oatpp-swagger/Controller.hpp", "license": "apache-2.0", "size": 5206} |
### File: src/oatpp-swagger/Generator.cpp
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/oatpp-swagger/Generator.cpp", "license": "apache-2.0", "size": 26586} |
### File: src/oatpp-swagger/Generator.hpp
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/oatpp-swagger/Generator.hpp", "license": "apache-2.0", "size": 5399} |
### File: src/oatpp-swagger/Model.hpp
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/oatpp-swagger/Model.hpp", "license": "apache-2.0", "size": 17181} |
### File: src/oatpp-swagger/Resources.cpp
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/oatpp-swagger/Resources.cpp", "license": "apache-2.0", "size": 3754} |
### File: src/oatpp-swagger/Resources.hpp
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/oatpp-swagger/Resources.hpp", "license": "apache-2.0", "size": 4241} |
### File: src/oatpp-swagger/Types.cpp
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/oatpp-swagger/Types.cpp", "license": "apache-2.0", "size": 1158} |
### File: src/oatpp-swagger/Types.hpp
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| |_|
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/oatpp-swagger/Types.hpp", "license": "apache-2.0", "size": 2115} |
### File: src/oatpp-swagger/oas3/Model.hpp
/***************************************************************************
*
* Project _____ __ ____ _ _
* ( _ ) /__\ (_ _)_| |_ _| |_
* )(_)( /(__)\ )( (_ _)(_ _)
* (_____)(__)(__)(__) |_| ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "src/oatpp-swagger/oas3/Model.hpp", "license": "apache-2.0", "size": 13442} |
### File: test/CMakeLists.txt
## define path to swagger-ui res folder
add_definitions(-DOATPP_SWAGGER_RES_PATH="${CMAKE_CURRENT_LIST_DIR}/../res")
add_executable(module-tests
oatpp-swagger/tests.cpp
oatpp-swagger/test-controllers/TestController.hpp
oatpp-swagger/test-controllers/TestAsyncContr... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/oatpp-swagger", "path": "test/CMakeLists.txt", "license": "apache-2.0", "size": 1080} |
### File: test/oatpp-swagger/AsyncControllerTest.cpp
//
// Created by Leonid on 2019-03-09.
//
#include "AsyncControllerTest.hpp"
#include "test-controllers/TestAsyncController.hpp"
#include "oatpp-swagger/AsyncController.hpp"
#include "oatpp/parser/json/mapping/ObjectMapper.hpp"
#include <iostream>
namespace oatp... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "test/oatpp-swagger/AsyncControllerTest.cpp", "license": "apache-2.0", "size": 2010} |
### File: test/oatpp-swagger/AsyncControllerTest.hpp
//
// Created by Leonid on 2019-03-09.
//
#ifndef OATPP_SWAGGER_ASYNCCONTROLLERTEST_HPP
#define OATPP_SWAGGER_ASYNCCONTROLLERTEST_HPP
#include "oatpp-test/UnitTest.hpp"
namespace oatpp { namespace test { namespace swagger {
class AsyncControllerTest : public Unit... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "test/oatpp-swagger/AsyncControllerTest.hpp", "license": "apache-2.0", "size": 439} |
### File: test/oatpp-swagger/ControllerTest.cpp
//
// Created by Leonid on 2019-03-09.
//
#include "ControllerTest.hpp"
#include "test-controllers/TestController.hpp"
#include "oatpp-swagger/Controller.hpp"
#include "oatpp/parser/json/mapping/ObjectMapper.hpp"
#include "oatpp/core/data/stream/BufferStream.hpp"
#inc... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "test/oatpp-swagger/ControllerTest.cpp", "license": "apache-2.0", "size": 3610} |
### File: test/oatpp-swagger/ControllerTest.hpp
//
// Created by Leonid on 2019-03-09.
//
#ifndef OATPP_SWAGGER_CONTROLLERTEST_HPP
#define OATPP_SWAGGER_CONTROLLERTEST_HPP
#include "oatpp-test/UnitTest.hpp"
namespace oatpp { namespace test { namespace swagger {
class ControllerTest : public UnitTest {
public:
Co... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "test/oatpp-swagger/ControllerTest.hpp", "license": "apache-2.0", "size": 408} |
### File: test/oatpp-swagger/test-controllers/TestAsyncController.hpp
//
// Created by Leonid on 2/12/18.
// Copyright © 2018 oatpp. All rights reserved.
//
#ifndef oatpp_swagger_test_TestAsyncController_hpp
#define oatpp_swagger_test_TestAsyncController_hpp
#include "oatpp/web/server/api/ApiController.hpp"
#includ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "test/oatpp-swagger/test-controllers/TestAsyncController.hpp", "license": "apache-2.0", "size": 5022} |
### File: test/oatpp-swagger/test-controllers/TestController.hpp
//
// Created by Leonid on 2019-03-01.
//
#ifndef OATPP_SWAGGER_TESTCONTROLLER_HPP
#define OATPP_SWAGGER_TESTCONTROLLER_HPP
#include "oatpp/web/server/api/ApiController.hpp"
#include "oatpp/parser/json/mapping/ObjectMapper.hpp"
#include "oatpp/core/dat... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "test/oatpp-swagger/test-controllers/TestController.hpp", "license": "apache-2.0", "size": 8242} |
### File: test/oatpp-swagger/tests.cpp
#include "./AsyncControllerTest.hpp"
#include "./ControllerTest.hpp"
#include <iostream>
void runTests() {
OATPP_RUN_TEST(oatpp::test::swagger::ControllerTest);
OATPP_RUN_TEST(oatpp::test::swagger::AsyncControllerTest);
}
int main() {
oatpp::base::Environment::init();
... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/oatpp-swagger", "path": "test/oatpp-swagger/tests.cpp", "license": "apache-2.0", "size": 860} |
### File: utility/module-uninstall.sh
#!/bin/sh
MODULE_NAME="oatpp-swagger"
MODULE_VERSION="0.19.1"
echo "remove include folder: '/usr/local/include/oatpp-$MODULE_VERSION/$MODULE_NAME'"
rm -rf "/usr/local/include/oatpp-$MODULE_VERSION/$MODULE_NAME"
echo "remove cmake package: '/usr/local/lib/cmake/$MODULE_NAME-$MODU... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/oatpp-swagger", "path": "utility/module-uninstall.sh", "license": "apache-2.0", "size": 696} |
### File: CMakeLists.txt
cmake_minimum_required(VERSION 3.5)
project(performance_test_fixture CXX)
# Default to C++17
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
add_compile_options(-Wall ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/performance_test_fixture", "path": "CMakeLists.txt", "license": "apache-2.0", "size": 2627} |
### File: cmake/add_performance_test.cmake
# 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/LICENS... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/performance_test_fixture", "path": "cmake/add_performance_test.cmake", "license": "apache-2.0", "size": 4121} |
### File: include/performance_test_fixture/performance_test_fixture.hpp
// 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
//
// h... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/performance_test_fixture", "path": "include/performance_test_fixture/performance_test_fixture.hpp", "license": "apache-2.0", "size": 24... |
### File: include/performance_test_fixture/visibility_control.hpp
// 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://... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/performance_test_fixture", "path": "include/performance_test_fixture/visibility_control.hpp", "license": "apache-2.0", "size": 2081} |
### File: performance_test_fixture-extras.cmake
# 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/L... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/performance_test_fixture", "path": "performance_test_fixture-extras.cmake", "license": "apache-2.0", "size": 1592} |
### File: src/performance_test_fixture.cpp
// 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": "C++", "repo_name": "minhanghuang/performance_test_fixture", "path": "src/performance_test_fixture.cpp", "license": "apache-2.0", "size": 3818} |
### File: test/benchmark/benchmark_malloc_realloc.cpp
// 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.o... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/performance_test_fixture", "path": "test/benchmark/benchmark_malloc_realloc.cpp", "license": "apache-2.0", "size": 5412} |
### File: test/benchmark/benchmark_malloc_realloc_no_memory_tools.cpp
// 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
//
// htt... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/performance_test_fixture", "path": "test/benchmark/benchmark_malloc_realloc_no_memory_tools.cpp", "license": "apache-2.0", "size": 3758... |
### File: test/benchmark/benchmark_pause_resume.cpp
// 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... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/performance_test_fixture", "path": "test/benchmark/benchmark_pause_resume.cpp", "license": "apache-2.0", "size": 2936} |
### File: test/benchmark/macros.h
// 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/LICENSE-... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/performance_test_fixture", "path": "test/benchmark/macros.h", "license": "apache-2.0", "size": 1557} |
### File: data/OpenLane-V2/preprocess-ls.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# preprocess.py The OpenLane-V2 Dataset Authors Apa... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "data/OpenLane-V2/preprocess-ls.py", "license": "apache-2.0", "size": 1869} |
### File: data/OpenLane-V2/preprocess.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# preprocess.py The OpenLane-V2 Dataset Authors Apache... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "data/OpenLane-V2/preprocess.py", "license": "apache-2.0", "size": 1768} |
### File: openlanev2/centerline/dataset/__init__.py
from .collection import Collection
from .frame import Frame | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/dataset/__init__.py", "license": "apache-2.0", "size": 59} |
### File: openlanev2/centerline/dataset/collection.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# collection.py The OpenLane-V2 Dataset Auth... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/dataset/collection.py", "license": "apache-2.0", "size": 2574} |
### File: openlanev2/centerline/dataset/frame.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# frame.py The OpenLane-V2 Dataset Authors Apa... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/dataset/frame.py", "license": "apache-2.0", "size": 5502} |
### File: openlanev2/centerline/evaluation/__init__.py
from .evaluate import evaluate | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/evaluation/__init__.py", "license": "apache-2.0", "size": 30} |
### File: openlanev2/centerline/evaluation/distance.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# distance.py The OpenLane-V2 Dataset Autho... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/evaluation/distance.py", "license": "apache-2.0", "size": 4563} |
### File: openlanev2/centerline/evaluation/evaluate.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# evaluate.py The OpenLane-V2 Dataset Autho... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/evaluation/evaluate.py", "license": "apache-2.0", "size": 22278} |
### File: openlanev2/centerline/evaluation/f_score.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# f_score.py The OpenLane-V2 Dataset Authors... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/evaluation/f_score.py", "license": "apache-2.0", "size": 18609} |
### File: openlanev2/centerline/io/__init__.py
from .io import io | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/io/__init__.py", "license": "apache-2.0", "size": 18} |
### File: openlanev2/centerline/io/io.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# io.py The OpenLane-V2 Dataset Authors Apache License... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/io/io.py", "license": "apache-2.0", "size": 2493} |
### File: openlanev2/centerline/preprocessing/__init__.py
from .collect import collect
from .check import check_results | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/preprocessing/__init__.py", "license": "apache-2.0", "size": 61} |
### File: openlanev2/centerline/preprocessing/check.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# check.py The OpenLane-V2 Dataset Authors ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/preprocessing/check.py", "license": "apache-2.0", "size": 6475} |
### File: openlanev2/centerline/preprocessing/collect.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# collect.py The OpenLane-V2 Dataset Auth... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/preprocessing/collect.py", "license": "apache-2.0", "size": 4847} |
### File: openlanev2/centerline/visualization/__init__.py
from .bev import draw_annotation_bev
from .pv import draw_annotation_pv
from .sdmap import draw_sd_map
from .utils import assign_attribute, assign_topology | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/visualization/__init__.py", "license": "apache-2.0", "size": 155} |
### File: openlanev2/centerline/visualization/bev.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# bev.py The OpenLane-V2 Dataset Authors A... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/visualization/bev.py", "license": "apache-2.0", "size": 2974} |
### File: openlanev2/centerline/visualization/pv.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# pv.py The OpenLane-V2 Dataset Authors Apa... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/visualization/pv.py", "license": "apache-2.0", "size": 4720} |
### File: openlanev2/centerline/visualization/sdmap.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# pv.py The OpenLane-V2 Dataset Authors ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/visualization/sdmap.py", "license": "apache-2.0", "size": 1873} |
### File: openlanev2/centerline/visualization/utils.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# utils.py The OpenLane-V2 Dataset Authors ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/centerline/visualization/utils.py", "license": "apache-2.0", "size": 4641} |
### File: openlanev2/lanesegment/dataset/__init__.py
from .collection import Collection
from .frame import Frame | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/dataset/__init__.py", "license": "apache-2.0", "size": 59} |
### File: openlanev2/lanesegment/dataset/collection.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# collection.py The OpenLane-V2 Dataset Aut... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/dataset/collection.py", "license": "apache-2.0", "size": 2574} |
### File: openlanev2/lanesegment/dataset/frame.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# frame.py The OpenLane-V2 Dataset Authors Ap... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/dataset/frame.py", "license": "apache-2.0", "size": 5676} |
### File: openlanev2/lanesegment/evaluation/__init__.py
from .evaluate import evaluate | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/evaluation/__init__.py", "license": "apache-2.0", "size": 30} |
### File: openlanev2/lanesegment/evaluation/distance.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# distance.py The OpenLane-V2 Dataset Auth... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/evaluation/distance.py", "license": "apache-2.0", "size": 4072} |
### File: openlanev2/lanesegment/evaluation/evaluate.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# evaluate.py The OpenLane-V2 Dataset Auth... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/evaluation/evaluate.py", "license": "apache-2.0", "size": 24627} |
### File: openlanev2/lanesegment/io/__init__.py
from ...centerline.io.io import io
| {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/io/__init__.py", "license": "apache-2.0", "size": 35} |
### File: openlanev2/lanesegment/preprocessing/__init__.py
from .collect import collect | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/preprocessing/__init__.py", "license": "apache-2.0", "size": 28} |
### File: openlanev2/lanesegment/preprocessing/collect.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# collect.py The OpenLane-V2 Dataset Aut... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/preprocessing/collect.py", "license": "apache-2.0", "size": 5799} |
### File: openlanev2/lanesegment/visualization/__init__.py
from .bev import draw_annotation_bev
from .pv import draw_annotation_pv
from .sdmap import draw_sd_map
from .utils import assign_attribute, assign_topology | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/visualization/__init__.py", "license": "apache-2.0", "size": 155} |
### File: openlanev2/lanesegment/visualization/bev.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# bev.py The OpenLane-V2 Dataset Authors ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/visualization/bev.py", "license": "apache-2.0", "size": 4217} |
### File: openlanev2/lanesegment/visualization/pv.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# pv.py The OpenLane-V2 Dataset Authors Ap... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/visualization/pv.py", "license": "apache-2.0", "size": 4596} |
### File: openlanev2/lanesegment/visualization/sdmap.py
# ==============================================================================
# Binaries and/or source for the following packages or projects
# are presented under one or more of the following open source licenses:
# pv.py The OpenLane-V2 Dataset Authors ... | {"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/OpenLane-V2", "path": "openlanev2/lanesegment/visualization/sdmap.py", "license": "apache-2.0", "size": 1873} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.