text
stringlengths
24
1.04M
metadata
stringlengths
233
497
### File: src/wkt2_grammar.y %{ /****************************************************************************** * Project: PROJ * Purpose: WKT2 parser grammar * Author: Even Rouault, <even.rouault at spatialys.com> * ****************************************************************************** * Copyright (c...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Yacc", "repo_name": "minhanghuang/PROJ", "path": "src/wkt2_grammar.y", "license": "mit", "size": 65428}
### File: src/wkt2_parser.cpp /****************************************************************************** * Project: PROJ * Purpose: WKT2 parser grammar * Author: Even Rouault, <even.rouault at spatialys.com> * ****************************************************************************** * Copyright (c) ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "src/wkt2_parser.cpp", "license": "mit", "size": 9784}
### File: src/wkt2_parser.h /****************************************************************************** * Project: PROJ * Purpose: WKT2 parser grammar * Author: Even Rouault, <even.rouault at spatialys.com> * ****************************************************************************** * Copyright (c) 20...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "src/wkt2_parser.h", "license": "mit", "size": 2067}
### File: src/wkt_parser.cpp /****************************************************************************** * Project: PROJ * Purpose: WKT parser common routines * Author: Even Rouault, <even.rouault at spatialys.com> * ****************************************************************************** * Copyrigh...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "src/wkt_parser.cpp", "license": "mit", "size": 2534}
### File: src/wkt_parser.hpp /****************************************************************************** * Project: PROJ * Purpose: WKT parser common routines * Author: Even Rouault, <even.rouault at spatialys.com> * ****************************************************************************** * Copyrigh...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "src/wkt_parser.hpp", "license": "mit", "size": 2089}
### File: src/zpoly1.cpp /* evaluate complex polynomial */ #include "proj.h" #include "proj_internal.h" /* note: coefficients are always from C_1 to C_n ** i.e. C_0 == (0., 0) ** n should always be >= 1 though no checks are made */ COMPLEX pj_zpoly1(COMPLEX z, const COMPLEX *C, int n) { COMPLEX a; double t; ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "src/zpoly1.cpp", "license": "mit", "size": 1199}
### File: test/CMakeLists.txt option(TESTING_USE_NETWORK "Permit use of network to fetch test requirements (if needed) \ and run network-dependent tests. Default ON." ON ) set(HAS_NETWORK OFF) # evaluate if ON below if(TESTING_USE_NETWORK) if(NOT CMAKE_REQUIRED_QUIET) # CMake 3.17+ use CHECK_START/CHECK_PA...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/PROJ", "path": "test/CMakeLists.txt", "license": "mit", "size": 5197}
### File: test/benchmark/CMakeLists.txt option(BUILD_BENCHMARKS "Build PROJ benchmark applications" ON) if(NOT BUILD_BENCHMARKS) return() endif() add_compile_options(${PROJ_CXX_WARN_FLAGS}) add_executable(bench_proj_trans bench_proj_trans.cpp) target_link_libraries(bench_proj_trans PRIVATE ${PROJ_LIBRARIES})
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/PROJ", "path": "test/benchmark/CMakeLists.txt", "license": "mit", "size": 277}
### File: test/benchmark/bench_proj_trans.cpp /****************************************************************************** * Project: PROJ * Purpose: Benchmark * Author: Even Rouault, <even.rouault at spatialys.com> * ****************************************************************************** * Copyrigh...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/benchmark/bench_proj_trans.cpp", "license": "mit", "size": 6682}
### File: test/cli/CMakeLists.txt # # test # if(BUILD_CCT) set(CCT_EXE "$<TARGET_FILE:cct>") endif() if(BUILD_CS2CS) set(CS2CS_EXE "$<TARGET_FILE:cs2cs>") endif() if(BUILD_PROJ) set(PROJ_EXE "$<TARGET_FILE:binproj>") if(UNIX) # invproj is a symlink # set(INVPROJ_EXE "$<TARGET_PROPERTY:invproj,DEPENDS>")...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/PROJ", "path": "test/cli/CMakeLists.txt", "license": "mit", "size": 4273}
### File: test/cli/run_cli_test.py #!/usr/bin/env python3 """Run a CLI test provided as a YAML file. Requirements ------------ - Python 3.7 or later - Either ruamel.yaml (preferred) or pyyaml, from pip, conda or similar - Self-testing needs pytest (`python3 -m pytest`) Usage ----- A minimal example to run all tests...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/PROJ", "path": "test/cli/run_cli_test.py", "license": "mit", "size": 52827}
### File: test/cli/test_cs2cs_locale.sh #!/bin/bash # Script to do some locale testing. # See test_cs2cs_various.yaml for general CLI testing. set -e TEST_CLI_DIR=$(dirname $0) EXE=$1 if test -z "${EXE}"; then echo "Usage: ${0} <path to 'cs2cs' program>" exit 1 fi if test ! -x ${EXE}; then echo "*** ERRO...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/cli/test_cs2cs_locale.sh", "license": "mit", "size": 3492}
### File: test/cli/test_projinfo.sh #!/bin/bash # Test projinfo using specific sh commands # See test_projinfo.yaml for general CLI testing. set -e TEST_CLI_DIR=$(dirname $0) EXE=$1 if test -z "${EXE}"; then echo "Usage: ${0} <path to 'projinfo' program>" exit 1 fi if test ! -x ${EXE}; then echo "*** ERR...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/cli/test_projinfo.sh", "license": "mit", "size": 1334}
### File: test/cli/test_projsync.sh #!/bin/bash # Test projsync set -e TEST_CLI_DIR=$(dirname $0) EXE=$1 if test -z "${EXE}"; then echo "Usage: ${0} <path to 'projsync' program>" exit 1 fi if test ! -x ${EXE}; then echo "*** ERROR: Can not find '${EXE}' program!" exit 1 fi echo "====================...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/cli/test_projsync.sh", "license": "mit", "size": 9384}
### File: test/fuzzers/CMakeLists.txt if(NOT WIN32) add_compile_options(${PROJ_CXX_WARN_FLAGS}) add_executable(proj_crs_to_crs_fuzzer proj_crs_to_crs_fuzzer.cpp) target_compile_definitions(proj_crs_to_crs_fuzzer PRIVATE -DSTANDALONE) target_link_libraries(proj_crs_to_crs_fuzzer PRIVATE ${PROJ_LIBRARIES}) endi...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/PROJ", "path": "test/fuzzers/CMakeLists.txt", "license": "mit", "size": 286}
### File: test/fuzzers/build.sh #!/bin/bash # This script is meant to be run by # https://github.com/google/oss-fuzz/blob/master/projects/proj.4/Dockerfile set -e if [ "$SRC" == "" ]; then echo "SRC env var not defined" exit 1 fi if [ "$OUT" == "" ]; then echo "OUT env var not defined" exit 1 fi if...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/fuzzers/build.sh", "license": "mit", "size": 2314}
### File: test/fuzzers/proj_crs_to_crs_fuzzer.cpp /****************************************************************************** * * Project: proj.4 * Purpose: Fuzzer * Author: Even Rouault, even.rouault at spatialys.com * ****************************************************************************** * Copy...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/fuzzers/proj_crs_to_crs_fuzzer.cpp", "license": "mit", "size": 4355}
### File: test/postinstall/c_app/CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(C_APP LANGUAGES C) set(USE_PROJ_NAME "PROJ" CACHE STRING "Either PROJ (default) or PROJ4") find_package(${USE_PROJ_NAME} REQUIRED CONFIG) include(CMakePrintHelpers) cmake_print_properties( TARGETS ${USE_PROJ_NAME}::proj ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/c_app/CMakeLists.txt", "license": "mit", "size": 916}
### File: test/postinstall/c_app/Makefile.am bin_PROGRAMS = c_app c_app_SOURCES = c_app.c c_app_CFLAGS = $(PROJ_CFLAGS) c_app_LDADD = $(PROJ_LIBS) TESTS = \ test_libpath.sh \ test_transform.sh \ test_searchpath.sh \ test_version.sh
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/c_app/Makefile.am", "license": "mit", "size": 195}
### File: test/postinstall/c_app/c_app.c #include <proj.h> #include <stdio.h> int test_transform() { PJ *P; PJ_COORD a, b; P = proj_create_crs_to_crs( PJ_DEFAULT_CTX, "EPSG:4326", "+proj=utm +zone=32 +datum=WGS84", /* or EPSG:32632 */ NULL); if (0 == P) { fprintf(stderr,...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/c_app/c_app.c", "license": "mit", "size": 1113}
### File: test/postinstall/c_app/configure.ac AC_INIT([c_app], [0.1]) AM_INIT_AUTOMAKE AC_PROG_CC AC_CONFIG_MACRO_DIR([../m4]) PKG_CHECK_MODULES([PROJ], [proj]) AC_ARG_ENABLE([static-proj], AS_HELP_STRING([--enable-static-proj], [Enable linking to static PROJ library])) # If enabled, force static linking for L...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "M4Sugar", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/c_app/configure.ac", "license": "mit", "size": 478}
### File: test/postinstall/c_app/makefile.mak PROGRAM = c_app OBJECTS = $(addsuffix .o,$(PROGRAM)) TESTS = \ test_libpath.sh \ test_transform.sh \ test_searchpath.sh \ test_version.sh override CFLAGS += -g -Wall -Werror $(shell ${PKG_CONFIG} proj --cflags) ifeq ($(BUILD_MODE),static) UNAME_S := $(shell unam...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/c_app/makefile.mak", "license": "mit", "size": 813}
### File: test/postinstall/c_app/test_libpath.sh #!/bin/sh . ../common.sh EXPECTED_LIBPATH="$(pkg-config proj --variable=libdir)" test_libpath c_app "${EXPECTED_LIBPATH}" libproj
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/c_app/test_libpath.sh", "license": "mit", "size": 132}
### File: test/postinstall/c_app/test_searchpath.sh #!/bin/sh . ../common.sh PROGRAM_SEARCHPATH="$(./c_app -s)" EXPECTED_SEARCHPATH="$(pkg-config proj --variable=datadir)" test_searchpath "${PROGRAM_SEARCHPATH}" "${EXPECTED_SEARCHPATH}"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/c_app/test_searchpath.sh", "license": "mit", "size": 187}
### File: test/postinstall/c_app/test_transform.sh #!/bin/sh . ../common.sh PROGRAM_TRANSFORM="$(./c_app -t)" test_transform "${PROGRAM_TRANSFORM}"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/c_app/test_transform.sh", "license": "mit", "size": 99}
### File: test/postinstall/c_app/test_version.sh #!/bin/sh . ../common.sh PROGRAM_VERSION=$(./c_app -v) EXPECTED_VERSION=$(pkg-config proj --modversion) test_version ${PROGRAM_VERSION} ${EXPECTED_VERSION}
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/c_app/test_version.sh", "license": "mit", "size": 158}
### File: test/postinstall/common.cmake # Common CMake macros for post-install tests include(CTest) macro(add_test_libpath EXE) set(EXEPATH ${CMAKE_BINARY_DIR}/${EXE}) set(HAS_TOOL TRUE) if(APPLE) set(EXPECTED_SUBSTR "${CMAKE_PREFIX_PATH}/lib") elseif(UNIX) set(EXPECTED_SUBSTR "${CMAKE_PREFIX_PATH}/li...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/common.cmake", "license": "mit", "size": 2491}
### File: test/postinstall/common.sh #!/bin/sh # Common shell functions for post-install tests main_setup(){ # usage: main_setup $1 $2 export prefix=$1 if [ -z "${prefix}" ]; then echo "First positional argument to the the installed prefix is required" exit 1 fi case $2 in "" | shared) export BU...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/common.sh", "license": "mit", "size": 2985}
### File: test/postinstall/cpp_app/CMakeLists.txt cmake_minimum_required(VERSION 3.5) project(CPP_APP LANGUAGES CXX) # Required for (e.g.) g++-4.8 # can be refactored for CMake 3.22 # https://github.com/OSGeo/PROJ/issues/1924 set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/cpp_app/CMakeLists.txt", "license": "mit", "size": 873}
### File: test/postinstall/cpp_app/Makefile.am bin_PROGRAMS = cpp_app cpp_app_SOURCES = cpp_app.cpp cpp_app_CXXFLAGS = $(PROJ_CFLAGS) cpp_app_LDADD = $(PROJ_LIBS) TESTS = \ test_libpath.sh \ test_transform.sh \ test_searchpath.sh \ test_version.sh
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/cpp_app/Makefile.am", "license": "mit", "size": 209}
### File: test/postinstall/cpp_app/configure.ac AC_INIT([cpp_app], [0.1]) AM_INIT_AUTOMAKE AC_PROG_CXX dnl Required for (e.g.) g++-4.8 AC_CONFIG_MACRO_DIR([../m4]) AX_CXX_COMPILE_STDCXX_11([noext],[mandatory]) PKG_CHECK_MODULES([PROJ], [proj]) AC_ARG_ENABLE([static-proj], AS_HELP_STRING([--enable-static-proj], ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "M4Sugar", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/cpp_app/configure.ac", "license": "mit", "size": 559}
### File: test/postinstall/cpp_app/cpp_app.cpp #include <iostream> #include <proj.h> int test_transform() { PJ *P; PJ_COORD a, b; P = proj_create_crs_to_crs( PJ_DEFAULT_CTX, "EPSG:4326", "+proj=utm +zone=32 +datum=WGS84", // or EPSG:32632 NULL); if (0 == P) { std::cerr <...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/cpp_app/cpp_app.cpp", "license": "mit", "size": 1302}
### File: test/postinstall/cpp_app/makefile.mak PROGRAM = cpp_app OBJECTS = $(addsuffix .o,$(PROGRAM)) TESTS = \ test_libpath.sh \ test_transform.sh \ test_searchpath.sh \ test_version.sh override CXXFLAGS += -std=c++11 -fvisibility=hidden -g -Wall -Werror $(shell pkg-config proj --cflags) ifeq ($(BUILD_MODE)...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Makefile", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/cpp_app/makefile.mak", "license": "mit", "size": 840}
### File: test/postinstall/cpp_app/test_libpath.sh #!/bin/sh . ../common.sh EXPECTED_LIBPATH="$(pkg-config proj --variable=libdir)" test_libpath cpp_app "${EXPECTED_LIBPATH}" libproj
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/cpp_app/test_libpath.sh", "license": "mit", "size": 134}
### File: test/postinstall/cpp_app/test_searchpath.sh #!/bin/sh . ../common.sh PROGRAM_SEARCHPATH="$(./cpp_app -s)" EXPECTED_SEARCHPATH="$(pkg-config proj --variable=datadir)" test_searchpath "${PROGRAM_SEARCHPATH}" "${EXPECTED_SEARCHPATH}"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/cpp_app/test_searchpath.sh", "license": "mit", "size": 189}
### File: test/postinstall/cpp_app/test_transform.sh #!/bin/sh . ../common.sh PROGRAM_TRANSFORM="$(./cpp_app -t)" test_transform "${PROGRAM_TRANSFORM}"
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/cpp_app/test_transform.sh", "license": "mit", "size": 101}
### File: test/postinstall/cpp_app/test_version.sh #!/bin/sh . ../common.sh PROGRAM_VERSION=$(./cpp_app -v) EXPECTED_VERSION=$(pkg-config proj --modversion) test_version ${PROGRAM_VERSION} ${EXPECTED_VERSION}
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/cpp_app/test_version.sh", "license": "mit", "size": 160}
### File: test/postinstall/m4/ax_cxx_compile_stdcxx.m4 # =========================================================================== # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html # =========================================================================== # # SYNOPSIS # # AX_CXX_COMPILE...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "M4Sugar", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/m4/ax_cxx_compile_stdcxx.m4", "license": "mit", "size": 13789}
### File: test/postinstall/m4/ax_cxx_compile_stdcxx_11.m4 # ============================================================================ # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html # ============================================================================ # # SYNOPSIS # # AX_CXX_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "M4Sugar", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/m4/ax_cxx_compile_stdcxx_11.m4", "license": "mit", "size": 1674}
### File: test/postinstall/m4/pkg.m4 # pkg.m4 - Macros to locate and utilize pkg-config. -*- Autoconf -*- # # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as publishe...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "M4Sugar", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/m4/pkg.m4", "license": "mit", "size": 5221}
### File: test/postinstall/test_autotools.sh #!/bin/sh # Post-install tests with autotools/pkg-config # # First required argument is the installed prefix, which # is used to set PKG_CONFIG_PATH and rpath for shared. # Second argument is either shared (default) or static cd $(dirname $0) . ./common.sh main_setup $1 $2 ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/test_autotools.sh", "license": "mit", "size": 1270}
### File: test/postinstall/test_cmake.bat @echo off :: Post-install tests with CMake :: :: First required argument is the installed prefix, which :: is used to set CMAKE_PREFIX_PATH :: Second argument is either shared (default) or static :: Additionally, several environment variable are required :: - CMAKE_GENERATOR -...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Batchfile", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/test_cmake.bat", "license": "mit", "size": 2056}
### File: test/postinstall/test_cmake.sh #!/bin/sh -e # Post-install tests with CMake # # First required argument is the installed prefix, which # is used to set CMAKE_PREFIX_PATH # Second argument is either shared (default) or static # Third argument is either BOTH_CONFIG (default), to test both PROJ and PROJ4 # CMak...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/test_cmake.sh", "license": "mit", "size": 1239}
### File: test/postinstall/test_pkg-config.sh #!/bin/sh # Post-install tests with pkg-config and a Makefile # # First required argument is the installed prefix, which # is used to set PKG_CONFIG_PATH and rpath for shared. # Second argument is either shared (default) or static cd $(dirname $0) . ./common.sh main_setup ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "test/postinstall/test_pkg-config.sh", "license": "mit", "size": 901}
### File: test/unit/CMakeLists.txt # CMake configuration for PROJ unit tests # External GTest provided by (e.g.) libgtest-dev set(MIN_GTest_VERSION "1.8.1") if(NOT CMAKE_REQUIRED_QUIET) # CMake 3.17+ use CHECK_START/CHECK_PASS/CHECK_FAIL message(STATUS "Looking for GTest") endif() find_package(GTest QUIET) set(US...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "CMake", "repo_name": "minhanghuang/PROJ", "path": "test/unit/CMakeLists.txt", "license": "mit", "size": 7820}
### File: test/unit/gie_self_tests.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/gie_self_tests.cpp", "license": "mit", "size": 51932}
### File: test/unit/gtest_include.h /****************************************************************************** * * Project: PROJ * Purpose: Wrapper for gtest/gtest.h * Author: Even Rouault <even dot rouault at spatialys dot com> * **************************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/PROJ", "path": "test/unit/gtest_include.h", "license": "mit", "size": 1695}
### File: test/unit/include_proj_h_from_c.c /****************************************************************************** * * Project: PROJ * Purpose: Dummy test to check that we can include proj.h from a pure C file * Author: Even Rouault * ******************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/PROJ", "path": "test/unit/include_proj_h_from_c.c", "license": "mit", "size": 1555}
### File: test/unit/main.cpp /****************************************************************************** * * Project: PROJ * Purpose: gtest main * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/main.cpp", "license": "mit", "size": 1762}
### File: test/unit/pj_phi2_test.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test pj_phi2 function. * Author: Kurt Schwehr <schwehr@google.com> * ****************************************************************************** * Copyright (c)...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/pj_phi2_test.cpp", "license": "mit", "size": 4244}
### File: test/unit/proj_angular_io_test.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test that in- and output units behave correctly, especially * angular units that need special treatment. * Author: Kristian Evers <kristianevers@gm...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/proj_angular_io_test.cpp", "license": "mit", "size": 4206}
### File: test/unit/proj_context_test.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test functions in proj_context namespae * Author: Even Rouault <even dot rouault at spatialys dot com> * ******************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/proj_context_test.cpp", "license": "mit", "size": 6872}
### File: test/unit/proj_errno_string_test.cpp /****************************************************************************** * * Project: PROJ * Purpose: Unit test for proj_errno_string() * Author: Kristian Evers <kristianevers@gmail.com> * *******************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/proj_errno_string_test.cpp", "license": "mit", "size": 2527}
### File: test/unit/test_c_api.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * *******************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_c_api.cpp", "license": "mit", "size": 261837}
### File: test/unit/test_common.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ******************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_common.cpp", "license": "mit", "size": 9023}
### File: test/unit/test_coordinates.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * *************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_coordinates.cpp", "license": "mit", "size": 9545}
### File: test/unit/test_crs.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * *********************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_crs.cpp", "license": "mit", "size": 338833}
### File: test/unit/test_datum.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * *******************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_datum.cpp", "license": "mit", "size": 26078}
### File: test/unit/test_defmodel.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test deformation model * Author: Even Rouault <even dot rouault at spatialys dot com> * ***************************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_defmodel.cpp", "license": "mit", "size": 58377}
### File: test/unit/test_factory.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * *****************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_factory.cpp", "license": "mit", "size": 224824}
### File: test/unit/test_fork.c /****************************************************************************** * * Project: PROJ * Purpose: Test behavior of database access across fork() * Author: Even Rouault <even dot rouault at spatialys dot com> * *********************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_fork.c", "license": "mit", "size": 3470}
### File: test/unit/test_grids.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test grids.hpp * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copy...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_grids.cpp", "license": "mit", "size": 13676}
### File: test/unit/test_io.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * **********************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_io.cpp", "license": "mit", "size": 766283}
### File: test/unit/test_metadata.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_metadata.cpp", "license": "mit", "size": 21728}
### File: test/unit/test_misc.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * Copyright (c) 2...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_misc.cpp", "license": "mit", "size": 2274}
### File: test/unit/test_network.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test networking * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * C...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_network.cpp", "license": "mit", "size": 77601}
### File: test/unit/test_operation.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ***************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_operation.cpp", "license": "mit", "size": 284252}
### File: test/unit/test_operationfactory.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ********************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_operationfactory.cpp", "license": "mit", "size": 536720}
### File: test/unit/test_primitives.hpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2018 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * **************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_primitives.hpp", "license": "mit", "size": 4218}
### File: test/unit/test_tinshift.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test TIN shift * Author: Even Rouault <even dot rouault at spatialys dot com> * ****************************************************************************** * C...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_tinshift.cpp", "license": "mit", "size": 9854}
### File: test/unit/test_util.cpp /****************************************************************************** * * Project: PROJ * Purpose: Test ISO19111:2019 implementation * Author: Even Rouault <even dot rouault at spatialys dot com> * ********************************************************************...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "C++", "repo_name": "minhanghuang/PROJ", "path": "test/unit/test_util.cpp", "license": "mit", "size": 2819}
### File: travis/before_install_apt.sh #!/bin/bash # All Debian-like before_install scripts starts by running this # "global" before_install script. sudo apt-get update -qq sudo apt-get install -qq python3-pip python3-setuptools
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "travis/before_install_apt.sh", "license": "mit", "size": 192}
### File: travis/before_install_pip.sh #!/bin/bash # All platform-specific before_install scripts starts by running this # "global" before_install script. # Configure Python pip python3 -m pip config --user set global.progress_bar off python3 -m pip install --user --upgrade pip python3 -m pip install --user jsonschem...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "travis/before_install_pip.sh", "license": "mit", "size": 297}
### File: travis/install.sh #!/bin/bash set -e UNAME="$(uname)" || UNAME="" if test "x${NPROC}" = "x"; then if test "${UNAME}" = "Linux" ; then NPROC=$(nproc); elif test "${UNAME}" = "Darwin" ; then NPROC=$(sysctl -n hw.ncpu); fi if test "x${NPROC}" = "x"; then NPROC=2; fi ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "travis/install.sh", "license": "mit", "size": 10325}
### File: travis/linux_generic/after_success.sh #!/bin/bash set -e # nothing
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "travis/linux_generic/after_success.sh", "license": "mit", "size": 31}
### File: travis/linux_generic/before_install.sh #!/bin/bash set -e ./travis/before_install_apt.sh ./travis/before_install_pip.sh sudo apt-get install -qq \ sqlite3 zip \ libsqlite3-dev \ libtiff-dev libwebp-dev \ libcurl4-openssl-dev libnghttp2-dev libidn2-dev librtmp-dev libssh-dev \ libpsl-dev...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "travis/linux_generic/before_install.sh", "license": "mit", "size": 333}
### File: travis/linux_generic/install.sh #!/bin/bash set -e # -fno-use-cxa-atexit is needed to build with -coverage CFLAGS="-Werror" CXXFLAGS="-Werror" ./travis/install.sh
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PROJ", "path": "travis/linux_generic/install.sh", "license": "mit", "size": 133}
### File: .travis/codestyle/clang_format.hook #!/bin/bash set -e clang-format $@
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PaddleDetection", "path": ".travis/codestyle/clang_format.hook", "license": "apache-2.0", "size": 36}
### File: .travis/codestyle/cpplint_pre_commit.hook #!/bin/bash TOTAL_ERRORS=0 if [[ ! $TRAVIS_BRANCH ]]; then # install cpplint on local machine. if [[ ! $(which cpplint) ]]; then pip install cpplint fi # diff files on local machine. files=$(git diff --cached --name-status | awk '$1 != "D" {print $2}')...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PaddleDetection", "path": ".travis/codestyle/cpplint_pre_commit.hook", "license": "apache-2.0", "size": 841}
### File: .travis/precommit.sh #!/bin/bash function abort(){ echo "Your commit not fit PaddlePaddle code style" 1>&2 echo "Please use pre-commit scripts to auto-format your code" 1>&2 exit 1 } trap 'abort' 0 set -e cd `dirname $0` cd .. export PATH=/usr/bin:$PATH pre-commit install if ! pre-commit run -a ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PaddleDetection", "path": ".travis/precommit.sh", "license": "apache-2.0", "size": 351}
### File: .travis/unittest.sh #!/bin/bash abort(){ echo "Run unittest failed" 1>&2 echo "Please check your code" 1>&2 echo " 1. you can run unit tests by 'bash .travis/unittest.sh' locally" 1>&2 echo " 2. you can add python requirements in .travis/requirements.txt if you use new requirements in unit ...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PaddleDetection", "path": ".travis/unittest.sh", "license": "apache-2.0", "size": 1089}
### File: benchmark/prepare.sh #!/usr/bin/env bash pip install -U pip Cython pip install -r requirements.txt mv ./dataset/coco/download_coco.py . && rm -rf ./dataset/coco/* && mv ./download_coco.py ./dataset/coco/ # prepare lite train data wget -nc -P ./dataset/coco/ https://paddledet.bj.bcebos.com/data/coco_benchmar...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PaddleDetection", "path": "benchmark/prepare.sh", "license": "apache-2.0", "size": 639}
### File: benchmark/run_all.sh # Use docker: paddlepaddle/paddle:latest-gpu-cuda10.1-cudnn7 paddle=2.1.2 python3.7 # # Usage: # git clone https://github.com/PaddlePaddle/PaddleDetection.git # cd PaddleDetection # bash benchmark/run_all.sh log_path=${LOG_PATH_INDEX_DIR:-$(pwd)} # benchmark系统指定该参数,不需要跑profile时,...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PaddleDetection", "path": "benchmark/run_all.sh", "license": "apache-2.0", "size": 1988}
### File: benchmark/run_benchmark.sh #!/usr/bin/env bash set -xe # Usage:CUDA_VISIBLE_DEVICES=0 bash benchmark/run_benchmark.sh ${run_mode} ${batch_size} ${fp_item} ${max_epoch} ${model_name} python="python3.7" # Parameter description function _set_params(){ run_mode=${1:-"sp"} # sp|mp batch_size=${2...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PaddleDetection", "path": "benchmark/run_benchmark.sh", "license": "apache-2.0", "size": 4215}
### File: configs/mot/mtmct/gen_aicity_mtmct_data.py # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # 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....
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/PaddleDetection", "path": "configs/mot/mtmct/gen_aicity_mtmct_data.py", "license": "apache-2.0", "size": 1960}
### File: configs/mot/pedestrian/tools/visdrone/visdrone2mot.py # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # 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": "Python", "repo_name": "minhanghuang/PaddleDetection", "path": "configs/mot/pedestrian/tools/visdrone/visdrone2mot.py", "license": "apache-2.0", "size": 12052}
### File: configs/mot/vehicle/tools/bdd100kmot/bdd100k2mot.py # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # 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://ww...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/PaddleDetection", "path": "configs/mot/vehicle/tools/bdd100kmot/bdd100k2mot.py", "license": "apache-2.0", "size": 15042}
### File: configs/mot/vehicle/tools/bdd100kmot/gen_bdd100kmot_vehicle.sh data_path=bdd100k img_dir=${data_path}/images/track label_dir=${data_path}/labels/box_track_20 save_path=${data_path}/bdd100kmot_vehicle phasetrain=train phaseval=val classes=2,3,4,9,10 # gen mot dataset python bdd100k2mot.py --data_path=${data_...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Shell", "repo_name": "minhanghuang/PaddleDetection", "path": "configs/mot/vehicle/tools/bdd100kmot/gen_bdd100kmot_vehicle.sh", "license": "apache-2.0", "size": 694}
### File: configs/mot/vehicle/tools/bdd100kmot/gen_labels_MOT.py # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # 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": "Python", "repo_name": "minhanghuang/PaddleDetection", "path": "configs/mot/vehicle/tools/bdd100kmot/gen_labels_MOT.py", "license": "apache-2.0", "size": 2589}
### File: configs/mot/vehicle/tools/visdrone/visdrone2mot.py # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # 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...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/PaddleDetection", "path": "configs/mot/vehicle/tools/visdrone/visdrone2mot.py", "license": "apache-2.0", "size": 11936}
### File: configs/rotate/tools/convert.py # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # 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/PaddleDetection", "path": "configs/rotate/tools/convert.py", "license": "apache-2.0", "size": 5182}
### File: configs/rotate/tools/generate_result.py # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # 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": "Python", "repo_name": "minhanghuang/PaddleDetection", "path": "configs/rotate/tools/generate_result.py", "license": "apache-2.0", "size": 7867}
### File: configs/rotate/tools/inference_benchmark.py # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # 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...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/PaddleDetection", "path": "configs/rotate/tools/inference_benchmark.py", "license": "apache-2.0", "size": 12985}
### File: configs/rotate/tools/onnx_infer.py # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # 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/PaddleDetection", "path": "configs/rotate/tools/onnx_infer.py", "license": "apache-2.0", "size": 9823}
### File: configs/rotate/tools/prepare_data.py # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # 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/li...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/PaddleDetection", "path": "configs/rotate/tools/prepare_data.py", "license": "apache-2.0", "size": 3636}
### File: configs/rotate/tools/slicebase.py # Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # 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/PaddleDetection", "path": "configs/rotate/tools/slicebase.py", "license": "apache-2.0", "size": 9976}
### File: configs/semi_det/_base_/voc2coco.py # convert VOC xml to COCO format json import xml.etree.ElementTree as ET import os import json import argparse # create and init coco json, img set, and class set def init_json(): # create coco json coco = dict() coco['images'] = [] coco['type'] = 'instanc...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/PaddleDetection", "path": "configs/semi_det/_base_/voc2coco.py", "license": "apache-2.0", "size": 6959}
### File: dataset/coco/download_coco.py # Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. # # 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/PaddleDetection", "path": "dataset/coco/download_coco.py", "license": "apache-2.0", "size": 1023}
### File: dataset/mot/gen_labels_MOT.py # Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved. # # 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/PaddleDetection", "path": "dataset/mot/gen_labels_MOT.py", "license": "apache-2.0", "size": 2158}
### File: dataset/roadsign_voc/download_roadsign_voc.py # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # 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.apac...
{"idx": "gitee_code", "domain": "code", "domain2": "gitee-permissive", "header_footer": "", "lang": "en", "source": "gitee_code-0.jsonl", "prog_lang": "Python", "repo_name": "minhanghuang/PaddleDetection", "path": "dataset/roadsign_voc/download_roadsign_voc.py", "license": "apache-2.0", "size": 1031}